comand-component-library 4.1.9 → 4.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -4045,6 +4045,16 @@ const NP = /* @__PURE__ */ N(qy, [["render", Wy]]), Gy = {
4045
4045
  type: String,
4046
4046
  required: !1
4047
4047
  },
4048
+ /**
4049
+ * define method to send form
4050
+ */
4051
+ formMethod: {
4052
+ type: String,
4053
+ default: "POST",
4054
+ validator(e) {
4055
+ return e === "POST" || e === "GET";
4056
+ }
4057
+ },
4048
4058
  /**
4049
4059
  * legend for form
4050
4060
  *
@@ -4145,7 +4155,7 @@ const NP = /* @__PURE__ */ N(qy, [["render", Wy]]), Gy = {
4145
4155
  deep: !0
4146
4156
  }
4147
4157
  }
4148
- }, Jy = ["action", "data-use-validation", "novalidate"], Ky = { class: "flex-container" }, Zy = ["type"], Xy = { key: 1 }, Qy = {
4158
+ }, Jy = ["action", "data-use-validation", "novalidate", "method"], Ky = { class: "flex-container" }, Zy = ["type"], Xy = { key: 1 }, Qy = {
4149
4159
  key: 0,
4150
4160
  class: "button-wrapper"
4151
4161
  }, Yy = ["type"], $y = { key: 1 };
@@ -4156,7 +4166,8 @@ function eb(e, t, n, o, i, r) {
4156
4166
  action: n.formAction,
4157
4167
  "data-use-validation": n.useValidation,
4158
4168
  onSubmit: t[0] || (t[0] = (...a) => r.onSubmit && r.onSubmit(...a)),
4159
- novalidate: n.novalidate
4169
+ novalidate: n.novalidate,
4170
+ method: n.formMethod
4160
4171
  }, [
4161
4172
  n.useFieldset ? (d(), h(O, { key: 0 }, [
4162
4173
  w("fieldset", Ky, [
@@ -1,4 +1,4 @@
1
- (function(O,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(O=typeof globalThis<"u"?globalThis:O||self,o(O["comand-component-library"]={},O.Vue))})(this,function(O,o){"use strict";var CP=Object.defineProperty;var wP=(O,o,Oe)=>o in O?CP(O,o,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):O[o]=Oe;var en=(O,o,Oe)=>wP(O,typeof o!="symbol"?o+"":o,Oe);const Oe=/^[a-z0-9]+(-[a-z0-9]+)*$/,tn=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),d=i.pop(),c={provider:i.length>0?i[0]:r,prefix:d,name:l};return t&&!nn(c)?null:c}const s=i[0],a=s.split("-");if(a.length>1){const l={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!nn(l)?null:l}if(n&&r===""){const l={provider:r,prefix:"",name:s};return t&&!nn(l,n)?null:l}return null},nn=(e,t)=>e?!!((e.provider===""||e.provider.match(Oe))&&(t&&e.prefix===""||e.prefix.match(Oe))&&e.name.match(Oe)):!1,ra=Object.freeze({left:0,top:0,width:16,height:16}),on=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),rn=Object.freeze({...ra,...on}),Go=Object.freeze({...rn,body:"",hidden:!1});function Xf(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ia(e,t){const n=Xf(e,t);for(const r in Go)r in on?r in e&&!(r in n)&&(n[r]=on[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Qf(e,t){const n=e.icons,r=e.aliases||{},i=Object.create(null);function s(a){if(n[a])return i[a]=[];if(!(a in i)){i[a]=null;const l=r[a]&&r[a].parent,d=l&&s(l);d&&(i[a]=[l].concat(d))}return i[a]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Yf(e,t,n){const r=e.icons,i=e.aliases||{};let s={};function a(l){s=ia(r[l]||i[l],s)}return a(t),n.forEach(a),ia(e,s)}function sa(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=Qf(e);for(const i in r){const s=r[i];s&&(t(i,Yf(e,i,s)),n.push(i))}return n}const $f={provider:"",aliases:{},not_found:{},...ra};function Jo(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function aa(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Jo(e,$f))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(Oe)||typeof s.body!="string"||!Jo(s,Go))return null}const r=t.aliases||{};for(const i in r){const s=r[i],a=s.parent;if(!i.match(Oe)||typeof a!="string"||!n[a]&&!r[a]||!Jo(s,Go))return null}return t}const la=Object.create(null);function vf(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function je(e,t){const n=la[e]||(la[e]=Object.create(null));return n[t]||(n[t]=vf(e,t))}function Ko(e,t){return aa(t)?sa(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function eh(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let pt=!1;function ca(e){return typeof e=="boolean"&&(pt=e),pt}function th(e){const t=typeof e=="string"?tn(e,!0,pt):e;if(t){const n=je(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function nh(e,t){const n=tn(e,!0,pt);if(!n)return!1;const r=je(n.provider,n.prefix);return eh(r,n.name,t)}function da(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),pt&&!t&&!e.prefix){let i=!1;return aa(e)&&(e.prefix="",sa(e,(s,a)=>{a&&nh(s,a)&&(i=!0)})),i}const n=e.prefix;if(!nn({provider:t,prefix:n,name:"a"}))return!1;const r=je(t,n);return!!Ko(r,e)}const ua=Object.freeze({width:null,height:null}),ma=Object.freeze({...ua,...on}),oh=/(-?[0-9.]*[0-9]+[0-9.]*)/g,rh=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fa(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(oh);if(r===null||!r.length)return e;const i=[];let s=r.shift(),a=rh.test(s);for(;;){if(a){const l=parseFloat(s);isNaN(l)?i.push(s):i.push(Math.ceil(l*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");a=!a}}function ih(e,t){const n={...rn,...e},r={...ma,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(f=>{const h=[],y=f.hFlip,p=f.vFlip;let C=f.rotate;y?p?C+=2:(h.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),h.push("scale(-1 1)"),i.top=i.left=0):p&&(h.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),h.push("scale(1 -1)"),i.top=i.left=0);let T;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:T=i.height/2+i.top,h.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:h.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:T=i.width/2+i.left,h.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}C%2===1&&(i.left!==i.top&&(T=i.left,i.left=i.top,i.top=T),i.width!==i.height&&(T=i.width,i.width=i.height,i.height=T)),h.length&&(s='<g transform="'+h.join(" ")+'">'+s+"</g>")});const a=r.width,l=r.height,d=i.width,c=i.height;let u,m;return a===null?(m=l===null?"1em":l==="auto"?c:l,u=fa(m,d/c)):(u=a==="auto"?d:a,m=l===null?fa(u,c/d):l==="auto"?c:l),{attributes:{width:u.toString(),height:m.toString(),viewBox:i.left.toString()+" "+i.top.toString()+" "+d.toString()+" "+c.toString()},body:s}}const sh=/\sid="(\S+)"/g,ah="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let lh=0;function ch(e,t=ah){const n=[];let r;for(;r=sh.exec(e);)n.push(r[1]);return n.length&&n.forEach(i=>{const s=typeof t=="function"?t(i):t+(lh++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+"$3")}),e}const Zo=Object.create(null);function dh(e,t){Zo[e]=t}function Xo(e){return Zo[e]||Zo[""]}function Qo(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Yo=Object.create(null),gt=["https://api.simplesvg.com","https://api.unisvg.com"],sn=[];for(;gt.length>0;)gt.length===1||Math.random()>.5?sn.push(gt.shift()):sn.push(gt.pop());Yo[""]=Qo({resources:["https://api.iconify.design"].concat(sn)});function uh(e,t){const n=Qo(t);return n===null?!1:(Yo[e]=n,!0)}function $o(e){return Yo[e]}let ha=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function mh(e,t){const n=$o(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(a=>{i=Math.max(i,a.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function fh(e){return e===404}const hh=(e,t,n)=>{const r=[],i=mh(e,t),s="icons";let a={type:s,provider:e,prefix:t,icons:[]},l=0;return n.forEach((d,c)=>{l+=d.length+1,l>=i&&c>0&&(r.push(a),a={type:s,provider:e,prefix:t,icons:[]},l=d.length),a.icons.push(d)}),r.push(a),r};function ph(e){if(typeof e=="string"){const t=$o(e);if(t)return t.path}return"/"}const gh={prepare:hh,send:(e,t,n)=>{if(!ha){n("abort",424);return}let r=ph(t.provider);switch(t.type){case"icons":{const s=t.prefix,l=t.icons.join(","),d=new URLSearchParams({icons:l});r+=s+".json?"+d.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;ha(e+r).then(s=>{const a=s.status;if(a!==200){setTimeout(()=>{n(fh(a)?"abort":"next",a)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})}};function yh(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,a=i.prefix,l=i.name,d=n[s]||(n[s]=Object.create(null)),c=d[a]||(d[a]=je(s,a));let u;l in c.icons?u=t.loaded:a===""||c.missing.has(l)?u=t.missing:u=t.pending;const m={provider:s,prefix:a,name:l};u.push(m)}),t}function pa(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function bh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const a=s.icons,l=a.pending.length;a.pending=a.pending.filter(d=>{if(d.prefix!==i)return!0;const c=d.name;if(e.icons[c])a.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),a.pending.length!==l&&(n||pa([e],s.id),s.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),s.abort))})}))}let kh=0;function Ch(e,t,n){const r=kh++,i=pa.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(s)}),i}function wh(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?tn(i,t,n):i;s&&r.push(s)}),r}var xh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bh(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let b=e.resources.slice(0);for(a=[];b.length>1;){const S=Math.floor(Math.random()*b.length);a.push(b[S]),b=b.slice(0,S).concat(b.slice(S+1))}a=a.concat(b)}else a=e.resources.slice(s).concat(e.resources.slice(0,s));const l=Date.now();let d="pending",c=0,u,m=null,g=[],f=[];typeof r=="function"&&f.push(r);function h(){m&&(clearTimeout(m),m=null)}function y(){d==="pending"&&(d="aborted"),h(),g.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),g=[]}function p(b,S){S&&(f=[]),typeof b=="function"&&f.push(b)}function C(){return{startTime:l,payload:t,status:d,queriesSent:c,queriesPending:g.length,subscribe:p,abort:y}}function T(){d="failed",f.forEach(b=>{b(void 0,u)})}function k(){g.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),g=[]}function A(b,S,F){const q=S!=="success";switch(g=g.filter(L=>L!==b),d){case"pending":break;case"failed":if(q||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=F,T();return}if(q){u=F,g.length||(a.length?N():T());return}if(h(),k(),!e.random){const L=e.resources.indexOf(b.resource);L!==-1&&L!==e.index&&(e.index=L)}d="completed",f.forEach(L=>{L(F)})}function N(){if(d!=="pending")return;h();const b=a.shift();if(b===void 0){if(g.length){m=setTimeout(()=>{h(),d==="pending"&&(k(),T())},e.timeout);return}T();return}const S={status:"pending",resource:b,callback:(F,q)=>{A(S,F,q)}};g.push(S),c++,m=setTimeout(N,e.rotate),n(b,t,S.callback)}return setTimeout(N),C}function ga(e){const t={...xh,...e};let n=[];function r(){n=n.filter(l=>l().status==="pending")}function i(l,d,c){const u=Bh(t,l,d,(m,g)=>{r(),c&&c(m,g)});return n.push(u),u}function s(l){return n.find(d=>l(d))||null}return{query:i,find:s,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:r}}function ya(){}const vo=Object.create(null);function _h(e){if(!vo[e]){const t=$o(e);if(!t)return;const n=ga(t),r={config:t,redundancy:n};vo[e]=r}return vo[e]}function Eh(e,t,n){let r,i;if(typeof e=="string"){const s=Xo(e);if(!s)return n(void 0,424),ya;i=s.send;const a=_h(e);a&&(r=a.redundancy)}else{const s=Qo(e);if(s){r=ga(s);const a=e.resources?e.resources[0]:"",l=Xo(a);l&&(i=l.send)}}return!r||!i?(n(void 0,424),ya):r.query(t,i,n)().abort}const ba="iconify2",yt="iconify",ka=yt+"-count",Ca=yt+"-version",wa=36e5,Sh=168;function er(e,t){try{return e.getItem(t)}catch{}}function tr(e,t,n){try{return e.setItem(t,n),!0}catch{}}function xa(e,t){try{e.removeItem(t)}catch{}}function nr(e,t){return tr(e,ka,t.toString())}function or(e){return parseInt(er(e,ka))||0}const an={local:!0,session:!0},Ba={local:new Set,session:new Set};let rr=!1;function Th(e){rr=e}let ln=typeof window>"u"?{}:window;function _a(e){const t=e+"Storage";try{if(ln&&ln[t]&&typeof ln[t].length=="number")return ln[t]}catch{}an[e]=!1}function Ea(e,t){const n=_a(e);if(!n)return;const r=er(n,Ca);if(r!==ba){if(r){const l=or(n);for(let d=0;d<l;d++)xa(n,yt+d.toString())}tr(n,Ca,ba),nr(n,0);return}const i=Math.floor(Date.now()/wa)-Sh,s=l=>{const d=yt+l.toString(),c=er(n,d);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}xa(n,d)}};let a=or(n);for(let l=a-1;l>=0;l--)s(l)||(l===a-1?(a--,nr(n,a)):Ba[e].add(l))}function Sa(){if(!rr){Th(!0);for(const e in an)Ea(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=je(r,i);if(!Ko(s,n).length)return!1;const a=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,a):a,!0})}}function Oh(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in an)Ea(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Nh(e,t){rr||Sa();function n(r){let i;if(!an[r]||!(i=_a(r)))return;const s=Ba[r];let a;if(s.size)s.delete(a=Array.from(s).shift());else if(a=or(i),!nr(i,a+1))return;const l={cached:Math.floor(Date.now()/wa),provider:e.provider,data:t};return tr(i,yt+a.toString(),JSON.stringify(l))}t.lastModified&&!Oh(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ta(){}function Vh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,bh(e)}))}function Fh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=Xo(n)))return;s.prepare(n,r,i).forEach(l=>{Eh(n,l,(d,c)=>{if(typeof d!="object"){if(c!==404)return;l.icons.forEach(u=>{e.missing.add(u)})}else try{const u=Ko(e,d);if(!u.length)return;const m=e.pendingIcons;m&&u.forEach(g=>{m.delete(g)}),Nh(e,d)}catch(u){console.error(u)}Vh(e)})})}))}const Ah=(e,t)=>{const n=wh(e,!0,ca()),r=yh(n);if(!r.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(r.loaded,r.missing,r.pending,Ta)}),()=>{d=!1}}const i=Object.create(null),s=[];let a,l;return r.pending.forEach(d=>{const{provider:c,prefix:u}=d;if(u===l&&c===a)return;a=c,l=u,s.push(je(c,u));const m=i[c]||(i[c]=Object.create(null));m[u]||(m[u]=[])}),r.pending.forEach(d=>{const{provider:c,prefix:u,name:m}=d,g=je(c,u),f=g.pendingIcons||(g.pendingIcons=new Set);f.has(m)||(f.add(m),i[c][u].push(m))}),s.forEach(d=>{const{provider:c,prefix:u}=d;i[c][u].length&&Fh(d,i[c][u])}),t?Ch(t,r,s):Ta};function Ph(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in ua?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Lh=/[\s,]+/;function Ih(e,t){t.split(Lh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Mh(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function Rh(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Dh(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function jh(e){return'url("data:image/svg+xml,'+Dh(e)+'")'}const Oa={...ma,inline:!1},qh={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zh={display:"inline-block"},ir={backgroundColor:"currentColor"},Na={backgroundColor:"transparent"},Va={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Fa={webkitMask:ir,mask:ir,background:Na};for(const e in Fa){const t=Fa[e];for(const n in Va)t[e+n]=Va[n]}const cn={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";cn[e+"-flip"]=t,cn[e.slice(0,1)+"-flip"]=t,cn[e+"Flip"]=t});function Aa(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Pa=(e,t)=>{const n=Ph(Oa,t),r={...qh},i=t.mode||"svg",s={},a=t.style,l=typeof a=="object"&&!(a instanceof Array)?a:{};for(let y in t){const p=t[y];if(p!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[y]=p===!0||p==="true"||p===1;break;case"flip":typeof p=="string"&&Ih(n,p);break;case"color":s.color=p;break;case"rotate":typeof p=="string"?n[y]=Mh(p):typeof p=="number"&&(n[y]=p);break;case"ariaHidden":case"aria-hidden":p!==!0&&p!=="true"&&delete r["aria-hidden"];break;default:{const C=cn[y];C?(p===!0||p==="true"||p===1)&&(n[C]=!0):Oa[y]===void 0&&(r[y]=p)}}}const d=ih(e,n),c=d.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),i==="svg"){r.style={...s,...l},Object.assign(r,c);let y=0,p=t.id;return typeof p=="string"&&(p=p.replace(/-/g,"_")),r.innerHTML=ch(d.body,p?()=>p+"ID"+y++:"iconifyVue"),o.h("svg",r)}const{body:u,width:m,height:g}=e,f=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),h=Rh(u,{...c,width:m+"",height:g+""});return r.style={...s,"--svg":jh(h),width:Aa(c.width),height:Aa(c.height),...zh,...f?ir:Na,...l},o.h("span",r)};if(ca(!0),dh("",gh),typeof document<"u"&&typeof window<"u"){Sa();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!da(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;uh(n,i)||console.error(r)}catch{console.error(r)}}}}const Hh={...rn,body:""},Uh=o.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(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=tn(e,!1,!0))===null)return this.abortLoading(),null;const r=th(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:Ah([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const i=["iconify"];return n.prefix!==""&&i.push("iconify--"+n.prefix),n.provider!==""&&i.push("iconify--"+n.provider),{data:r,classes:i}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return Pa(Hh,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Pa({...rn,...t.data},n)}}),V=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Wh={name:"CmdIcon",components:{Icon:Uh},props:{type:{type:String,default:"auto",validator(e){return e==="auto"||e==="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}}},Gh=["title"];function Jh(e,t,n,r,i,s){const a=o.resolveComponent("Icon");return s.isIconify?(o.openBlock(),o.createBlock(a,{key:0,icon:n.iconClass,title:n.tooltip,class:o.normalizeClass(e.$attrs.class)},null,8,["icon","title","class"])):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass([n.iconClass,e.$attrs.class]),title:n.tooltip},null,10,Gh))}const z=V(Wh,[["render",Jh]]);function Ve(e,t){return dn(e,"EditComponentWrapper",t)}function Kh(e){return dn(e,"EditModeSettingsSidebar")}function Zh(e){return dn(e,"EditModeMainSidebar")}function dn(e,t,n){var r;return((r=e==null?void 0:e.$options)==null?void 0:r.name)===t&&(n==null||n(e))?e:e!=null&&e.$parent?dn(e.$parent,t,n):null}function Fe(e,...t){const n=[];for(let r=Ve(e);r;r=Ve(r.$parent))r.componentPath&&n.unshift(...r.componentPath);return n.push(...t),n}function Xh(e){return Array.isArray(e)&&e.length>0?JSON.stringify(e):""}function Q(e,t){var n;return(n=e==null?void 0:e.$options)!=null&&n.name?{name:e.$options.name,...t}:t}const Qh={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!Ve(this.$parent,e=>(e==null?void 0:e.componentName)!=="CmdContainer")},active(){return this.editModeContext?Ve(this.$parent,t=>(t==null?void 0:t.componentName)!=="CmdContainer")?!!this.editModeContext.system.isActiveChildComponent(me(this)):!!this.editModeContext.system.isActiveComponent(me(this)):!1},editing(){var e;return(e=this.editModeContext)==null?void 0:e.content.isEditing(this.componentIdentifier)},hasSettings(){const e=`${this.componentName}Settings`;return!!o.getCurrentInstance().appContext.components[e]}},methods:{addHighlightRelatedComponent(e){e.target.parentNode.classList.add("highlight")},removeHighlightRelatedComponent(e){e.target.parentNode.classList.remove("highlight")},showActionButtons(){const e=Ve(this.$parent,t=>(t==null?void 0:t.componentName)!=="CmdContainer");this.editModeContext.system.setActiveComponent(me(e),me(this))},deleteComponent(){var e;!this.editing&&this.allowDeleteComponent&&confirm("Delete this component and its content?")&&((e=this.editModeContext)==null||e.store.deleteContent(me(this)),this.editModeContext.settings.stopEditing())},deleteInnerComponent(){this.editModeContext.store.deleteContent(me(this)),this.editModeContext.settings.stopEditing()},cancelComponent(e){this.editing&&(e.stopPropagation(),this.editModeContext.content.stopEditing())},editComponent(e){e==null||e.stopPropagation(),e||this.showActionButtons();const t=this.$refs.editComponent;this.editModeContext.content.startEditing(this.componentIdentifier),this.$nextTick(()=>{var n;return(n=t.querySelector("input"))==null?void 0:n.focus()})},saveComponent(){this.editModeContext.store.updateContent(me(this),this.updateHandlerProviders.map(e=>e())),this.editModeContext.content.stopEditing()},editSettings(e,t){e.stopPropagation(),!this.editing&&this.hasSettings&&this.editModeContext.settings.startEditing(this.componentIdentifier,this.componentName,this.componentProps,this.allowedComponentTypes,me(this),this.saveSettings,this.deleteInnerComponent,t||"edit")},addEntry(e){this.itemProvider?this.editModeContext.content.addContent(me(this),this.itemProvider):this.editSettings(e,"add")},saveSettings(e){this.editModeContext.store.updateSettings(me(this),e),this.editModeContext.settings.stopEditing()},addEditStateListener(e){this.editStateListeners.push(e),e(this.editing)},addUpdateHandlerProvider(e){this.updateHandlerProviders.push(e)},setAddHandlerProvider(e){e&&(this.addHandlerProvider=e)}},watch:{componentPath:{handler(){this.componentIdentifier=Xh(me(this))},immediate:!0,deep:!0},editing(e){this.editStateListeners.forEach(t=>t(e))}}};function me(e){const t=[];for(let n=e;n;n=Ve(n.$parent))n.componentPath&&t.unshift(...n.componentPath);return t}const Yh={key:0,class:"action-buttons-wrapper"},$h=["data-component"],vh=["title"],ep=["href"],tp={key:0},np={key:1},op={key:0,class:"component-name"},rp=["data-component"],ip=["title"],sp=["href","title"],ap=["title"],lp={key:0},cp={key:1},dp=["title"],up=["title"];function mp(e,t,n,r,i,s){const a=z;return o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.componentTag||"div"),{class:o.normalizeClass(["edit-component-wrapper",{active:s.active}]),tabindex:"0",onClick:o.withModifiers(s.showActionButtons,["stop"]),ref:"editComponent",title:s.active?"Select an action from the buttons in the top-left corner":"Click to select this element","data-identifier":i.componentIdentifier},{default:o.withCtx(()=>[n.componentTag==="ul"?(o.openBlock(),o.createElementBlock("li",Yh,[o.withDirectives(o.createElementVNode("ul",{class:"flex-container no-flex action-buttons","data-component":n.componentName},[o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon button confirm",{disabled:!i.addHandlerProvider&&!n.itemProvider&&!n.allowAddComponent}]),href:"#",onClick:t[0]||(t[0]=o.withModifiers(l=>s.addEntry(l),["prevent"])),title:s.isOuterComponent?"Add new component":"Add new item/entry"},[o.createVNode(a,{iconClass:(s.isOuterComponent,"icon-plus")},null,8,["iconClass"])],10,vh)]),o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon button primary",{disabled:s.editing||!s.hasSettings}]),href:s.editing?null:"#",onClick:t[1]||(t[1]=o.withModifiers((...l)=>s.editSettings&&s.editSettings(...l),["prevent"])),title:"Edit settings of this component"},[o.createVNode(a,{iconClass:s.isOuterComponent?"icon-cogs":"icon-cog"},null,8,["iconClass"])],10,ep)]),o.createElementVNode("li",null,[o.createElementVNode("a",{class:"icon-hexagon button-delete",href:"#",onClick:t[2]||(t[2]=o.withModifiers((...l)=>s.deleteComponent&&s.deleteComponent(...l),["prevent"])),title:"Delete this component (and its content)"},[o.createVNode(a,{iconClass:"icon-trash"})])]),s.isOuterComponent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("li",tp,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon button-cancel",{disabled:!s.editing}]),href:"#",onClick:t[3]||(t[3]=o.withModifiers((...l)=>s.cancelComponent&&s.cancelComponent(...l),["prevent"])),title:"Cancel editing (changes will not be saved)"},[o.createVNode(a,{iconClass:"icon-cancel"})],2)])),s.isOuterComponent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("li",np,[s.editing?(o.openBlock(),o.createElementBlock("a",{key:0,class:"icon-hexagon button-save",href:"#",onClick:t[4]||(t[4]=o.withModifiers((...l)=>s.saveComponent&&s.saveComponent(...l),["prevent"])),title:"Save changes of this component"},[o.createVNode(a,{iconClass:"icon-check"})])):(o.openBlock(),o.createElementBlock("a",{key:1,class:o.normalizeClass(["icon-hexagon button",{disabled:s.editModeContext.settings.isEditing(i.componentIdentifier)}]),href:"#",onClick:t[5]||(t[5]=o.withModifiers((...l)=>s.editComponent&&s.editComponent(...l),["prevent"])),title:"Edit content of this component"},[o.createVNode(a,{iconClass:"icon-edit"})],2))]))],8,$h),[[o.vShow,s.active]])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[s.isOuterComponent?(o.openBlock(),o.createElementBlock("p",op,o.toDisplayString(n.componentName),1)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("ul",{class:"flex-container no-flex action-buttons","data-component":n.componentName,onMouseenter:t[12]||(t[12]=(...l)=>s.addHighlightRelatedComponent&&s.addHighlightRelatedComponent(...l)),onMouseleave:t[13]||(t[13]=(...l)=>s.removeHighlightRelatedComponent&&s.removeHighlightRelatedComponent(...l))},[o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon use-icon-as-background button confirm",{disabled:!i.addHandlerProvider&&!n.itemProvider&&!n.allowAddComponent}]),href:"#",onClick:t[6]||(t[6]=o.withModifiers((...l)=>s.addEntry&&s.addEntry(...l),["prevent"])),title:s.isOuterComponent?"Add new component":"Add new item/entry"},[o.createVNode(a,{iconClass:(s.isOuterComponent,"icon-plus")},null,8,["iconClass"])],10,ip)]),o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon use-icon-as-background button primary",{disabled:s.editing||!s.hasSettings}]),href:s.editing?null:"#",onClick:t[7]||(t[7]=o.withModifiers((...l)=>s.editSettings&&s.editSettings(...l),["prevent"])),title:"Edit settings for "+n.componentName},[o.createVNode(a,{iconClass:s.isOuterComponent?"icon-cogs":"icon-cog"},null,8,["iconClass"])],10,sp)]),o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon use-icon-as-background button button-delete",{disabled:s.editing||!n.allowDeleteComponent}]),href:"#",onClick:t[8]||(t[8]=o.withModifiers((...l)=>s.deleteComponent&&s.deleteComponent(...l),["prevent"])),title:"Delete "+n.componentName+" (and its content)"},[o.createVNode(a,{iconClass:"icon-trash"})],10,ap)]),s.isOuterComponent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("li",lp,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon use-icon-as-background button cancel",{disabled:!s.editing}]),href:"#",onClick:t[9]||(t[9]=o.withModifiers((...l)=>s.cancelComponent&&s.cancelComponent(...l),["prevent"])),title:"Cancel editing (changes will not be saved)"},[o.createVNode(a,{iconClass:"icon-cancel"})],2)])),s.isOuterComponent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("li",cp,[s.editing?(o.openBlock(),o.createElementBlock("a",{key:0,class:"icon-hexagon use-icon-as-background button confirm",href:"#",onClick:t[10]||(t[10]=o.withModifiers((...l)=>s.saveComponent&&s.saveComponent(...l),["prevent"])),title:"Save changes of "+n.componentName},[o.createVNode(a,{iconClass:"icon-check"})],8,dp)):(o.openBlock(),o.createElementBlock("a",{key:1,class:o.normalizeClass(["icon-hexagon use-icon-as-background button confirm",{disabled:s.editModeContext.settings.isEditing(i.componentIdentifier)}]),href:"#",onClick:t[11]||(t[11]=o.withModifiers((...l)=>s.editComponent&&s.editComponent(...l),["prevent"])),title:"Edit content for "+n.componentName},[o.createVNode(a,{iconClass:"icon-edit"})],10,up))]))],40,rp),[[o.vShow,s.active]])],64)),o.renderSlot(e.$slots,"default",{editing:s.editing})]),_:3},8,["class","onClick","title","data-identifier"])}const Ae=V(Qh,[["render",mp]]),Y={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 e;if(this.$refs.editComponentWrapper)(e=this.$refs.editComponentWrapper)==null||e.addUpdateHandlerProvider(this.updateHandlerProvider);else{const t=Ve(this.$parent);t&&(t.addEditStateListener(n=>this.editing=n),t.addUpdateHandlerProvider(this.updateHandlerProvider),t.setAddHandlerProvider(this.addHandlerProvider))}this.mainSidebarContext=!!Zh(this),this.settingsContext=!!Kh(this)},updateHandlerProvider(){return{}}}},fp={name:"CmdHeadline",mixins:[Y],data(){return{editableHeadlineText:null,editablePreHeadlineText:null}},props:{headlineText:{type:String,required:!1},headlineLevel:{type:[String,Number],default:"2"},preHeadlineText:{type:String,required:!1},textAlign:{type:String,default:null,validator(e){return e==="left"||e==="center"||e==="right"}},cmdIcon:{type:Object,required:!1}},computed:{componentActive(){var e;return(e=this.editModeContext)==null?void 0:e.system.isActiveComponent(Fe(Ve(this)))},headlineComponentPath(){return this.componentPath||["props","cmdHeadline"]},headlineTag(){return this.headlineLevel?"h"+this.headlineLevel:""},headlineTextAlign(){return this.textAlign?"text-"+this.textAlign:""}},methods:{updateHandlerProvider(){const e=this.editableHeadlineText,t=this.editablePreHeadlineText,n=this.headlineLevel;return Q(this,{update(r){r.headlineText=e,r.preHeadlineText=t,r.headlineLevel=n}})},onAddItem(){this.$refs.editComponentWrapper.editComponent()}},watch:{headlineText:{handler(){this.editableHeadlineText=this.headlineText},immediate:!0},preHeadlineText:{handler(){this.editablePreHeadlineText=this.preHeadlineText},immediate:!0}}},hp={class:"pre-headline-text-wrapper"},pp=["innerHTML"],gp=["innerHTML"],yp={key:1},bp=["innerHTML"],kp={key:2},Cp={class:"pre-headline-text"},wp=[o.createElementVNode("span",{class:"icon-plus"},null,-1),o.createElementVNode("span",null,"Add new headline",-1)];function xp(e,t,n,r,i,s){var c;const a=z,l=X,d=Ae;return!e.editModeContext||e.settingsContext||e.mainSidebarContext||n.headlineText?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["cmd-headline",{"has-pre-headline-text":n.preHeadlineText,"has-icon":(c=n.cmdIcon)==null?void 0:c.iconClass},s.headlineTextAlign])},[n.preHeadlineText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.headlineText?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.headlineTag),{key:0},{default:o.withCtx(()=>[n.cmdIcon?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdIcon)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("span",hp,[o.createElementVNode("span",{class:"pre-headline-text",innerHTML:n.preHeadlineText},null,8,pp),n.headlineText?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.headlineText},null,8,gp)):(o.openBlock(),o.createElementBlock("span",yp,[o.renderSlot(e.$slots,"default")]))])]),_:3})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.headlineTag),{key:1},{default:o.withCtx(()=>[n.cmdIcon?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdIcon)),null,16)):o.createCommentVNode("",!0),n.headlineText?(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:n.headlineText},null,8,bp)):(o.openBlock(),o.createElementBlock("span",kp,[o.renderSlot(e.$slots,"default")]))]),_:3}))],2)):(o.openBlock(),o.createBlock(d,{key:1,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdHeadline",componentProps:{headlineText:n.headlineText,headlineLevel:n.headlineLevel},componentPath:s.headlineComponentPath,allowDeleteComponent:!!n.headlineText},{default:o.withCtx(u=>[u.editing?(o.openBlock(),o.createBlock(l,{key:0,element:"input",type:"text",class:o.normalizeClass(["edit-mode","headline","h"+n.headlineLevel,s.headlineTextAlign]),labelText:"Headline",showLabel:!1,placeholder:"Headline",modelValue:i.editableHeadlineText,"onUpdate:modelValue":t[0]||(t[0]=m=>i.editableHeadlineText=m)},null,8,["class","modelValue"])):n.headlineText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.cmdIcon?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdIcon)),null,16)):o.createCommentVNode("",!0),n.preHeadlineText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.headlineText?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.headlineTag),{key:0},{default:o.withCtx(()=>[n.cmdIcon?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdIcon)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("span",Cp,o.toDisplayString(n.preHeadlineText),1),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(n.headlineText),1)])]),_:3})):o.createCommentVNode("",!0)],64)):n.headlineText?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.headlineTag),{key:2},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(n.headlineText),1)])]),_:3})):o.createCommentVNode("",!0)],64)):s.componentActive?(o.openBlock(),o.createElementBlock("button",{key:2,type:"button",class:"button confirm",onClick:t[1]||(t[1]=(...m)=>s.onAddItem&&s.onAddItem(...m))},wp)):o.createCommentVNode("",!0)]),_:3},8,["componentProps","componentPath","allowDeleteComponent"]))}const U=V(fp,[["render",xp]]),Bp={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(e){return e===""||e==="error"||e==="warning"||e==="success"||e==="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 e=document.getElementById(this.relatedId);e&&(document.querySelector(this.scrollContainer).addEventListener("scroll",this.hideTooltip),document.addEventListener("keyup",this.hideTooltipOnEsc),this.toggleVisibilityByClick?e.addEventListener("click",this.toggleTooltipVisibility):(e.addEventListener("mouseenter",this.showTooltip),e.addEventListener("mouseleave",this.hideTooltip)))}},methods:{toggleTooltipVisibility(e){this.getPointerPosition(e),this.tooltipVisibility=!this.tooltipVisibility},showTooltip(e){this.delayToShowTooltip>0?setTimeout(()=>{this.toggleVisibility(e)},this.delayToShowTooltip):this.toggleVisibility(e)},toggleVisibility(e){this.toggleVisibilityByClick||(this.tooltipVisibility=!0),this.getPointerPosition(e)},hideTooltipOnEsc(e){this.allowEscapeKey&&(e.key==="Escape"||e.key==="Esc")&&this.hideTooltip()},hideTooltip(){this.tooltipVisibility=!1},getPointerPosition(e){this.pointerX=e.clientX,this.pointerY=e.clientY}},unmounted(){if(this.relatedId){const e=document.getElementById(this.relatedId);e&&(document.removeEventListener("scroll",this.hideTooltip),document.removeEventListener("keyup",this.hideTooltipOnEsc),this.toggleVisibilityByClick?e.removeEventListener("click",this.toggleTooltipVisibility):(e.removeEventListener("mouseenter",this.showTooltip),e.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"})}}},_p={key:0,class:"headline-wrapper"},Ep=["title"];function Sp(e,t,n,r,i,s){const a=U,l=z;return i.tooltipVisibility?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["cmd-tooltip",n.validationStatus]),ref:"tooltip"},[n.cmdHeadline||n.iconClose.show?(o.openBlock(),o.createElementBlock("div",_p,[n.cmdHeadline?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdHeadline)),null,16)):o.createCommentVNode("",!0),n.iconClose.show&&n.toggleVisibilityByClick?(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",onClick:t[0]||(t[0]=o.withModifiers((...d)=>s.hideTooltip&&s.hideTooltip(...d),["prevent"])),title:n.iconClose.tooltip},[o.createVNode(l,{iconClass:n.iconClose.iconClass,type:n.iconClose.iconType},null,8,["iconClass","type"])],8,Ep)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(n.tooltipText),1)])],2)):o.createCommentVNode("",!0)}const La=V(Bp,[["render",Sp]]),oe={props:{i18n:{type:[Object,Function],default:()=>({})}},methods:{getMessage(e,...t){if(!e)return"";let n=this.i18n;if(typeof this.i18n=="function"&&(n=this.i18n.call(this,e,t),typeof n!="object"))return n;let r=n[e]||this.getDefaultMessageProperty(e)||e;return typeof r=="function"?r.call(this,t||[]):(Array.isArray(t)&&t.length&&t.forEach((i,s)=>r=r.replace("{"+s+"}",i)),r)},getDefaultMessageProperty(e){var n;if(Object.hasOwn(this,"defaultMessageProperties")&&this.defaultMessageProperties&&this.defaultMessageProperties[e])return this.defaultMessageProperties[e];const t=Object.hasOwn(this,"fieldValidationDefaultMessageProperties")?"fieldValidationDefaultMessageProperties":null;return t&&((n=this[t])!=null&&n[e])?this[t][e]:null}}},Tp={name:"CmdListOfRequirements",mixins:[oe,{data(){return{defaultMessageProperties:{"list_of_requirements.headline.requirement_for_input":"Requirement for input","list_of_requirements.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("list_of_requirements.headline.requirements_for_input"):this.getMessage("list_of_requirements.headline.requirement_for_input")}}},Op={class:"cmd-list-of-requirements"},Np=o.createElementVNode("br",null,null,-1),Vp=o.createElementVNode("hr",null,null,-1),Fp=["href","target"],Ap={key:1};function Pp(e,t,n,r,i,s){var d,c,u;const a=U,l=z;return o.openBlock(),o.createElementBlock("div",Op,[n.showHeadline?(o.openBlock(),o.createBlock(a,{key:0,"headline-level":n.cmdHeadline.headlineLevel},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.headlineRequirements),1),n.labelText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Np,o.createElementVNode("em",null,o.toDisplayString(n.labelText),1)],64)):o.createCommentVNode("",!0)]),_:1},8,["headline-level"])):o.createCommentVNode("",!0),o.createElementVNode("dl",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.inputRequirements,(m,g)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:g},[o.createElementVNode("dt",{"aria-live":"assertive",class:o.normalizeClass(m.valid(n.inputModelValue,n.inputAttributes)?"success":"error")},o.toDisplayString(m.message)+":",3),o.createElementVNode("dd",{class:o.normalizeClass(m.valid(n.inputModelValue,n.inputAttributes)?"success":"error")},[o.createVNode(l,{"aria-live":"assertive",iconClass:m.valid(n.inputModelValue,n.inputAttributes)?n.iconSuccess.iconClass:n.iconError.iconClass,type:m.valid(n.inputModelValue,n.inputAttributes)?n.iconSuccess.iconType:n.iconError.iconType,title:m.valid(n.inputModelValue,n.inputAttributes)?n.iconSuccess.tooltip:n.iconError.tooltip},null,8,["iconClass","type","title"])],2)],64))),128))]),n.helplink&&n.helplink.show?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Vp,n.helplink.url?(o.openBlock(),o.createElementBlock("a",{key:0,href:n.helplink.url,target:n.helplink.target,onClick:t[0]||(t[0]=o.withModifiers(()=>{},["prevent"]))},[(d=n.helplink.icon)!=null&&d.iconClass?(o.openBlock(),o.createBlock(l,{key:0,class:o.normalizeClass((c=n.helplink.icon)==null?void 0:c.iconClass),title:(u=n.helplink.icon)==null?void 0:u.tooltip},null,8,["class","title"])):o.createCommentVNode("",!0),n.helplink.text?(o.openBlock(),o.createElementBlock("span",Ap,o.toDisplayString(n.helplink.text),1)):o.createCommentVNode("",!0)],8,Fp)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)])}const Lp=V(Tp,[["render",Pp]]),Ip={name:"CmdTooltipForFormElements",props:{relatedId:{type:String,default:""},validationStatus:{type:String,default:"",validator(e){return e===""||e==="error"||e==="warning"||e==="success"||e==="info"}},cmdListOfRequirements:{type:Object,required:!1}},computed:{cmdListOfRequirementsProperties(){return{showRequirements:!0,validationTooltip:"",inputRequirements:[],inputAttributes:{},showHeadline:!0,inputModelValue:"",helplink:{},labelText:"",...this.cmdListOfRequirements}}},methods:{hideTooltip(){this.$refs.tooltip.hideTooltip()}}};function Mp(e,t,n,r,i,s){const a=Lp,l=La;return o.openBlock(),o.createBlock(l,{ref:"tooltip",class:o.normalizeClass(["cmd-tooltip-for-form-elements box",n.validationStatus]),relatedId:n.relatedId,"toggle-visibility-by-click":!0},{default:o.withCtx(()=>[s.cmdListOfRequirementsProperties.showRequirements?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},s.cmdListOfRequirementsProperties)),null,16)):o.createCommentVNode("",!0)]),_:1},8,["class","relatedId"])}const sr=V(Ip,[["render",Mp]]),ar={data(){return{defaultMessageProperties:{"form_element.validation_tooltip.an_error_occurred":"An error occurred!","form_element.validation_tooltip.information_is_filled_correctly":"This information is filled correctly!","form_element.validation_tooltip.caps_lock_is_activated":"Attention: Caps lock is activated!","form_element.validation_tooltip.open_field_requirements":"Open field requirements!","form_element.validation_tooltip.is_valid_email":"Is valid e-mail-address"}}}},lr={data(){return{validationStatus:"",capsLockActivated:!1}},mixins:[oe,{data(){return{fieldValidationDefaultMessageProperties:{"field_validation.open_detailed_help":"Open detailed help!","field_validation.information_not_filled_correctly":"This information is not filled correctly!","field_validation.information_filled_correctly":"This information is filled correctly!","field_validation.caps_lock_is_activated":"Attention: Caps lock is activated!","field_validation.required_field_is_filled":"Required field is filled!","field_validation.field_contains_special_character":"Field contains special character","field_validation.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{validationTooltip:this.validationTooltip,inputRequirements:this.inputRequirements,inputAttributes:this.$attrs,inputModelValue:this.modelValue,labelText:this.labelText,i18n:this.i18n,...this.cmdListOfRequirements}},getValidationMessage(){if(this.validationStatus!==""){if(this.validationStatus==="error")return this.validationMessage?this.validationMessage:this.getMessage("field_validation.information_not_filled_correctly");if(this.validationStatus==="warning"&&this.capsLockActivated)return this.getMessage("field_validation.caps_lock_is_activated");if(this.validationStatus==="success")return this.getMessage("field_validation.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 e=[];if(this.$attrs.required||Object.hasOwn(this,"required")&&this.required){const t=Object.hasOwn(this,"required")?this.required:this.$attrs.required;e.push({message:this.getRequirementMessage(),valid(n,r){return!r.required&&!t||n!=null&&String(n).length>0}})}return this.$attrs.minlength&&e.push({message:this.getMessage("field_validation.input_has_minimum_length")+" ("+this.modelValue.length+"/"+this.$attrs.minlength+")",valid(t,n){return t.length>=n.minlength}}),[...e,...this.additionalStandardRequirements()||[],...this.customRequirements||[]]}},methods:{checkForCapsLock(e){["password","number","url","email"].includes(this.$attrs.type)&&e.getModifierState("CapsLock")?(this.capsLockActivated=!0,this.validationStatus="warning"):this.capsLockActivated&&this.validationStatus==="warning"&&(this.capsLockActivated=!1,this.validationStatus="")},additionalStandardRequirements(){return[]},getRequirementMessage(){return this.getMessage("field_validation.required_field_is_filled")}},watch:{validationStatus:{handler(){this.$emit("validation-status-change",this.validationStatus)}}}};function tt(){let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t==="x"?n:n&3|8).toString(16)})}function cr(){return"cmd-"+tt()}const un={props:{id:{type:String,required:!1}},computed:{htmlId(){return this.id||cr()}},methods:{buildHtmlId(...e){return e.map(t=>t.replace(/\s/g,"")).join("")}}},dr={};function Rp(e="defaultSequence"){const t=dr[e]||0;return dr[e]=t+1,dr[e]}const ur={data(){return{tooltip:!1,tooltipId:"tooltip-"+Rp()}},props:{useCustomTooltip:{type:Boolean,default:!0},allowEscapeKey:{type:Boolean,default:!0}}},Dp=["color","date","datetime-local","file","number","range"],jp={inheritAttrs:!1,name:"CmdFormElement",mixins:[oe,ar,lr,un,ur],data(){return{errorOccurred:0}},props:{modelValue:{type:[String,Boolean,Array,Number],default:""},element:{type:String,validator(e){return e==="input"||e==="select"||e==="textarea"||e==="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},stretchField:{type:Boolean,default:!1},status:{type:String,required:!1,validator(e){return e===""||e==="error"||e==="warning"||e==="success"||e==="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 e=["name","required","readonly","disabled","autofocus"],t={input:[...e,"type","minlength","pattern","min","max","multiple","step","autocomplete","placeholder"],select:[...e,"multiple"],textarea:[...e,"placeholder"]},n={};return t[this.element]&&Object.entries(this.$attrs).filter(([r])=>t[this.element].includes(r)).forEach(([r,i])=>n[r]=i),n},buttonAttrs(){var t,n;const e={...this.$attrs};return(t=this.nativeButton.icon)!=null&&t.tooltip&&(e.title=(n=this.nativeButton.icon)==null?void 0:n.tooltip),e},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("form_element.validation_tooltip.an_error_occurred"):this.validationStatus==="success"?this.getMessage("form_element.validation_tooltip.information_is_filled_correctly"):this.capsLockActivated?this.getMessage("form_element.validation_tooltip.caps_lock_is_activated"):this.getMessage("form_element.validation_tooltip.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 e;(e=this.$refs.label.querySelector("input, select, textarea"))==null||e.focus()},additionalStandardRequirements(){const e=[];return this.$attrs.type==="email"&&e.push({message:this.getMessage("form_element.validation_tooltip.is_valid_email"),valid:()=>this.$refs.input.checkValidity()}),e},getDomElement(){return this.$refs.label},getMaxLength(){return this.$attrs.element==="textarea"?this.$attrs.maxlength>0?this.$attrs.maxlength:5e3:Dp.includes(this.$attrs.type)?null:this.$attrs.maxlength>0?this.$attrs.maxlength:255},validateInput(e){var n;((n=e.target.closest("form"))==null?void 0:n.dataset.useValidation)==="true"&&(!["checkbox","radio"].includes(this.$attrs.type)&&this.modelValue&&(this.validationStatus="success"),typeof e.target.checkValidity=="function"&&!e.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(e){this.validateInput(e),this.closeTooltipOnBlur(),this.$emit("blur",e)},onInput(e){this.validateInput(e),this.$emit("update:modelValue",e.target.value)},onChange(e){if(typeof this.modelValue=="boolean")this.$emit("update:modelValue",e.target.checked);else if(typeof this.modelValue=="string")this.$emit("update:modelValue",e.target.value);else if(this.modelValue!==void 0){let t=[...this.modelValue];e.target.checked?t.push(e.target.value):t=t.filter(n=>n!==e.target.value),this.$emit("update:modelValue",t)}},datalistFocus(){this.datalist&&this.$refs.label.focus()},showPassword(){const e=this.$refs.input,t=e.value;e.nextElementSibling.classList.replace(this.iconPasswordVisible.iconClass,this.iconPasswordInvisible.iconClass),e.setAttribute("type","text"),e.setAttribute("value",t)},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(e){this.$emit("submit",e)}},watch:{status:{handler(){this.validationStatus=this.status||""},immediate:!0}}},qp=["for","title"],zp=["innerHTML"],Hp={key:2,"aria-hidden":"true"},Up=["title","aria-errormessage","id"],Wp={key:1,class:"flex-container inner-input-wrapper"},Gp=["id","autocomplete","list","value","maxlength"],Jp=["title"],Kp=["id"],Zp=["value"],Xp=["checked","value","id","disabled","aria-invalid"],Qp=["innerHTML"],Yp={key:2},$p={class:"switch-label-wrapper"},vp=["checked","value","id","disabled","aria-invalid"],eg={class:"label-text"},tg={class:"label-text"},ng=["innerHTML"],og={key:0},rg=["id"],ig=["value","selected"],sg=["id","value","maxlength"],ag={key:6,class:"characters-left-wrapper"},lg={key:0},cg={key:7,class:"search-field-wrapper flex-container no-gap"},dg=["id","maxlength","value"],ug=["title"],mg=["title"],fg={key:1};function hg(e,t,n,r,i,s){var d,c,u,m,g,f,h,y,p,C,T,k,A,N,b,S,F,q,L,Be,_e,Ee,Se,Te;const a=z,l=sr;return n.element==="input"||n.element==="select"||n.element==="textarea"?(o.openBlock(),o.createElementBlock("label",{key:0,class:o.normalizeClass(["cmd-form-element",e.validationStatus,e.$attrs.class,{disabled:e.$attrs.disabled,inline:n.displayLabelInline,"stretch-field":n.stretchField,"toggle-switch":n.toggleSwitch,colored:n.colored,"has-state":e.validationStatus}]),for:e.htmlId,title:e.$attrs.title,ref:"label"},[(n.labelText||e.$slots.labeltext)&&e.$attrs.type!=="checkbox"&&e.$attrs.type!=="radio"?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["label-text",{hidden:!n.showLabel}])},[o.createElementVNode("span",null,[n.labelText?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.labelText},null,8,zp)):o.renderSlot(e.$slots,"labeltext",{key:1}),e.$attrs.required!=null&&e.$attrs.required!==!1?(o.openBlock(),o.createElementBlock("sup",Hp,"*")):o.createCommentVNode("",!0)]),(e.$attrs.required||e.inputRequirements.length)&&n.showStatusIcon?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",onClick:t[0]||(t[0]=o.withModifiers(()=>{},["prevent"])),title:s.validationTooltip,"aria-errormessage":e.tooltipId,"aria-live":"assertive",id:e.tooltipId},[o.createVNode(a,{iconClass:e.getStatusIconClass},null,8,["iconClass"])],8,Up)):o.createCommentVNode("",!0),e.useCustomTooltip&&(e.validationStatus===""||e.validationStatus==="error")?(o.openBlock(),o.createBlock(l,{key:1,ref:"tooltip",validationStatus:e.validationStatus,relatedId:e.tooltipId,cmdListOfRequirements:e.listOfRequirements,role:e.validationStatus==="error"?"alert":"dialog"},null,8,["validationStatus","relatedId","cmdListOfRequirements","role"])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),e.$attrs.type!=="checkbox"&&e.$attrs.type!=="radio"&&e.$attrs.type!=="search"?(o.openBlock(),o.createElementBlock("span",Wp,[n.fieldIconClass?(o.openBlock(),o.createBlock(a,{key:0,class:"place-inside",iconClass:n.fieldIconClass},null,8,["iconClass"])):o.createCommentVNode("",!0),n.element==="input"&&e.$attrs.type!=="search"?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:1},s.elementAttributes,{id:e.htmlId,class:n.inputClass,onFocus:t[1]||(t[1]=P=>e.tooltip=!0),onBlur:t[2]||(t[2]=(...P)=>s.onBlur&&s.onBlur(...P)),onInput:t[3]||(t[3]=(...P)=>s.onInput&&s.onInput(...P)),onMouseover:t[4]||(t[4]=(...P)=>s.datalistFocus&&s.datalistFocus(...P)),onKeyup:t[5]||(t[5]=(...P)=>e.checkForCapsLock&&e.checkForCapsLock(...P)),onChange:t[6]||(t[6]=P=>e.$emit("change",P)),autocomplete:s.autocomplete,list:n.datalist?n.datalist.id:null,value:n.modelValue,maxlength:s.getMaxLength(),ref:"input"}),null,16,Gp)):o.createCommentVNode("",!0),e.$attrs.type==="password"?(o.openBlock(),o.createElementBlock("a",{key:2,href:"#",class:"place-inside",onMousedown:t[7]||(t[7]=o.withModifiers((...P)=>s.showPassword&&s.showPassword(...P),["prevent"])),onMouseup:t[8]||(t[8]=o.withModifiers((...P)=>s.hidePassword&&s.hidePassword(...P),["prevent"])),onMouseleave:t[9]||(t[9]=o.withModifiers((...P)=>s.hidePassword&&s.hidePassword(...P),["prevent"])),onClick:t[10]||(t[10]=o.withModifiers(()=>{},["prevent"])),title:n.iconPasswordVisible.tooltip},[o.createVNode(a,{iconClass:n.iconPasswordVisible.iconClass},null,8,["iconClass"])],40,Jp)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.datalist&&n.datalist.options.length?(o.openBlock(),o.createElementBlock("datalist",{key:2,id:n.datalist.id},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.datalist.options,(P,de)=>(o.openBlock(),o.createElementBlock("option",{key:de,value:P},null,8,Zp))),128))],8,Kp)):n.element==="input"&&(e.$attrs.type==="checkbox"||e.$attrs.type==="radio")?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[n.onLabel&&n.offLabel?n.onLabel&&n.offLabel?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("span",$p,[o.createElementVNode("input",o.mergeProps(s.elementAttributes,{onChange:t[13]||(t[13]=(...P)=>s.onChange&&s.onChange(...P)),onBlur:t[14]||(t[14]=(...P)=>s.onBlur&&s.onBlur(...P)),checked:s.isChecked,value:n.inputValue,class:{inputClass:n.inputClass,validationStatus:e.validationStatus},id:e.htmlId,disabled:e.$attrs.disabled,"aria-invalid":e.validationStatus==="error"}),null,16,vp),o.createElementVNode("span",eg,o.toDisplayString(n.onLabel),1),o.createElementVNode("span",tg,o.toDisplayString(n.offLabel),1)]),n.labelText?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["label-text",{hidden:!n.showLabel}])},[o.createElementVNode("span",{innerHTML:n.labelText},null,8,ng),e.$attrs.required?(o.openBlock(),o.createElementBlock("sup",og,"*")):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0)],64)):o.renderSlot(e.$slots,"default",{key:2}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("input",o.mergeProps(s.elementAttributes,{onChange:t[11]||(t[11]=(...P)=>s.onChange&&s.onChange(...P)),onBlur:t[12]||(t[12]=(...P)=>s.onBlur&&s.onBlur(...P)),checked:s.isChecked,value:n.inputValue,class:[n.inputClass,e.validationStatus,s.toggleSwitchIconClass,{"replace-input-type":n.replaceInputType}],id:e.htmlId,disabled:e.$attrs.disabled,"aria-invalid":e.validationStatus==="error"}),null,16,Xp),n.labelText||e.$slots.labeltext?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["label-text",{hidden:!n.showLabel}])},[o.createElementVNode("span",null,[n.labelText?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.labelText},null,8,Qp)):o.renderSlot(e.$slots,"labeltext",{key:1}),e.$attrs.required?(o.openBlock(),o.createElementBlock("sup",Yp,"*")):o.createCommentVNode("",!0)])],2)):o.createCommentVNode("",!0)],64))],64)):o.createCommentVNode("",!0),n.element==="select"?(o.openBlock(),o.createElementBlock("select",o.mergeProps({key:4},s.elementAttributes,{id:e.htmlId,onBlur:t[15]||(t[15]=(...P)=>s.onBlur&&s.onBlur(...P)),onChange:t[16]||(t[16]=P=>e.$emit("update:modelValue",P.target.value))}),[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.selectOptions,(P,de)=>(o.openBlock(),o.createElementBlock("option",{key:de,value:P.value,selected:P.value===n.modelValue},o.toDisplayString(P.text),9,ig))),128))],16,rg)):o.createCommentVNode("",!0),n.element==="textarea"?(o.openBlock(),o.createElementBlock("textarea",o.mergeProps({key:5},s.elementAttributes,{id:e.htmlId,value:n.modelValue,maxlength:s.getMaxLength(),onInput:t[17]||(t[17]=(...P)=>s.onInput&&s.onInput(...P)),onFocus:t[18]||(t[18]=P=>e.tooltip=!0),onBlur:t[19]||(t[19]=(...P)=>s.onBlur&&s.onBlur(...P))}),null,16,sg)):o.createCommentVNode("",!0),n.element==="textarea"&&n.showCharactersTextarea?(o.openBlock(),o.createElementBlock("span",ag,[n.textCharactersLeft?(o.openBlock(),o.createElementBlock("span",lg,o.toDisplayString(n.textCharactersLeft),1)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:o.normalizeClass(["characters-left",{error:s.charactersLeft===0}])},o.toDisplayString(s.charactersLeft),3)])):n.element==="input"&&e.$attrs.type==="search"?(o.openBlock(),o.createElementBlock("span",cg,[n.fieldIconClass?(o.openBlock(),o.createBlock(a,{key:0,class:"place-inside",iconClass:n.fieldIconClass},null,8,["iconClass"])):o.createCommentVNode("",!0),o.createElementVNode("input",o.mergeProps(s.elementAttributes,{id:e.htmlId,onInput:t[20]||(t[20]=(...P)=>s.onInput&&s.onInput(...P)),maxlength:s.getMaxLength(),value:n.modelValue}),null,16,dg),n.showSearchButton?(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:o.normalizeClass(["button no-flex",{disabled:e.$attrs.disabled}]),title:n.iconSearch.tooltip,onClick:t[21]||(t[21]=o.withModifiers((...P)=>s.executeSearch&&s.executeSearch(...P),["prevent"]))},[o.createVNode(a,{iconClass:n.iconSearch.iconClass},null,8,["iconClass"])],10,ug)):o.createCommentVNode("",!0),(d=n.iconDelete)!=null&&d.show?(o.openBlock(),o.createElementBlock("a",{key:2,href:"#",onClick:t[22]||(t[22]=o.withModifiers(P=>e.$emit("update:modelValue",""),["prevent"])),title:(c=n.iconDelete)==null?void 0:c.tooltip},[o.createVNode(a,{iconClass:(u=n.iconDelete)==null?void 0:u.iconClass,type:(m=n.iconDelete)==null?void 0:m.iconType},null,8,["iconClass","type"])],8,mg)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],10,qp)):n.element==="button"?(o.openBlock(),o.createElementBlock("button",o.mergeProps({key:1,class:"button"},s.buttonAttrs,{onClick:t[23]||(t[23]=(...P)=>s.submit&&s.submit(...P))}),[(f=(g=n.nativeButton)==null?void 0:g.icon)!=null&&f.show&&(((y=(h=n.nativeButton)==null?void 0:h.icon)==null?void 0:y.position)==="before"||!((C=(p=n.nativeButton)==null?void 0:p.icon)!=null&&C.position))?(o.openBlock(),o.createBlock(a,{key:0,iconClass:(k=(T=n.nativeButton)==null?void 0:T.icon)==null?void 0:k.iconClass,type:(N=(A=n.nativeButton)==null?void 0:A.icon)==null?void 0:N.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0),(b=n.nativeButton)!=null&&b.icon&&((S=n.nativeButton)!=null&&S.text)?(o.openBlock(),o.createElementBlock("span",fg,o.toDisplayString(n.nativeButton.text),1)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(n.nativeButton.text),1)],64)),(q=(F=n.nativeButton)==null?void 0:F.icon)!=null&&q.show&&((Be=(L=n.nativeButton)==null?void 0:L.icon)==null?void 0:Be.position)==="after"?(o.openBlock(),o.createBlock(a,{key:3,iconClass:(Ee=(_e=n.nativeButton)==null?void 0:_e.icon)==null?void 0:Ee.iconClass,type:(Te=(Se=n.nativeButton)==null?void 0:Se.icon)==null?void 0:Te.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0)],16)):o.createCommentVNode("",!0)}const X=V(jp,[["render",hg]]),pg={name:"CmdAddressDataItem",mixins:[Y],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(e){if(e.type==="company")return"org";if(e.type==="address"){if(e.streetNo)return"street-address";if(e.zip)return"postal-code";if(e.city)return"locality";if(e.country)return"country-name"}return null},inputType(e){return e.type==="phone"?"tel":e.type==="email"?"email":e.type==="url"?"url":"text"},locateAddress(e){return"https://www.google.com/maps/place/"+e.streetNo+", "+e.zip+" "+e.city},getHref(e){return e.type==="phone"?"tel:"+e.href:e.type==="email"?"mailto:"+e.href:e.type==="url"?e.href:null},addHandlerProvider(){const e={type:"default",iconClass:"icon-mail",data:"Your data",labelText:"Labeltext",tooltip:"Tooltip",href:"#"};return Q(this,{item(){return e}})},updateHandlerProvider(){const e=this.editableAddressEntry;return Q(this,{update(t){typeof e=="object"?Object.entries(e).forEach(([n,r])=>t[n]=r):t.href==null?t.data=e:t.href=e}})}},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}}},gg=["id"],yg={key:1},bg=["href","target","title","data-type"],kg=["innerHTML"],Cg={key:1},wg=["href","title"],xg={class:"street-address"},Bg=o.createElementVNode("br",null,null,-1),_g={key:0,class:"postal-code"},Eg={key:1,class:"locality"},Sg=o.createElementVNode("br",null,null,-1),Tg={key:0},Og={key:3,class:"country-name"},Ng={class:"street-address"},Vg=o.createElementVNode("br",null,null,-1),Fg={key:0,class:"postal-code"},Ag={key:1,class:"locality"},Pg=o.createElementVNode("br",null,null,-1),Lg=o.createElementVNode("br",null,null,-1),Ig={key:3,class:"country-name"};function Mg(e,t,n,r,i,s){const a=z,l=X,d=o.resolveDirective("telephone");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("dt",{class:o.normalizeClass(["cmd-address-data-item",{address:n.addressEntry.type==="address"}]),id:n.addressEntry.id},[n.addressEntry.iconClass&&n.showLabelIcons?(o.openBlock(),o.createBlock(a,{key:0,iconClass:n.addressEntry.iconClass,type:n.addressEntry.iconType,tooltip:n.addressEntry.labelText},null,8,["iconClass","type","tooltip"])):o.createCommentVNode("",!0),n.showLabelTexts?(o.openBlock(),o.createElementBlock("span",yg,o.toDisplayString(n.addressEntry.labelText),1)):o.createCommentVNode("",!0)],10,gg),n.addressEntry.type!=="address"&&(n.addressEntry.data||n.addressEntry.href)?(o.openBlock(),o.createElementBlock("dd",{key:0,class:o.normalizeClass(s.vCardClass(n.addressEntry))},[e.editing?(o.openBlock(),o.createBlock(l,{key:1,element:"input",type:s.inputType(n.addressEntry),class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry,"onUpdate:modelValue":t[0]||(t[0]=c=>i.editableAddressEntry=c)},null,8,["type","labelText","placeholder","modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.addressEntry.href?o.withDirectives((o.openBlock(),o.createElementBlock("a",{key:0,href:s.getHref(n.addressEntry),target:n.addressEntry.type==="url"?"_blank":null,title:n.addressEntry.tooltip,"data-type":n.addressEntry.type},[o.createTextVNode(o.toDisplayString(n.addressEntry.data||n.addressEntry.href),1)],8,bg)),[[d,n.addressEntry.href]]):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:n.addressEntry.data},null,8,kg))],64))],2)):n.addressEntry.name==="address"?(o.openBlock(),o.createElementBlock("dd",Cg,[n.linkGoogleMaps&&!e.editing?(o.openBlock(),o.createElementBlock("a",{key:0,href:s.locateAddress(n.addressEntry),target:"google-maps",title:n.addressEntry.tooltip},[n.addressEntry.streetNo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",xg,o.toDisplayString(n.addressEntry.streetNo),1),Bg],64)):o.createCommentVNode("",!0),n.addressEntry.zip||n.addressEntry.city?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(n.showCityBeforeZip?"city-zip":"zip-city")},[n.addressEntry.zip?(o.openBlock(),o.createElementBlock("span",_g,o.toDisplayString(n.addressEntry.zip),1)):o.createCommentVNode("",!0),n.addressEntry.city?(o.openBlock(),o.createElementBlock("span",Eg,[o.createTextVNode(o.toDisplayString(n.addressEntry.city),1),n.addressEntry.state?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(n.addressEntry.state),1)],64)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),Sg,n.addressEntry.miscInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",null,o.toDisplayString(n.addressEntry.miscInfo),1),n.addressEntry.country?(o.openBlock(),o.createElementBlock("br",Tg)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),n.addressEntry.country?(o.openBlock(),o.createElementBlock("span",Og,o.toDisplayString(n.addressEntry.country),1)):o.createCommentVNode("",!0)],8,wg)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.editing?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(l,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry.streetNo,"onUpdate:modelValue":t[1]||(t[1]=c=>i.editableAddressEntry.streetNo=c)},null,8,["labelText","placeholder","modelValue"]),o.createElementVNode("div",{class:o.normalizeClass([n.showCityBeforeZip?"city-zip":"zip-city","input-wrapper"])},[o.createVNode(l,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry.zip,"onUpdate:modelValue":t[2]||(t[2]=c=>i.editableAddressEntry.zip=c)},null,8,["labelText","placeholder","modelValue"]),o.createVNode(l,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry.city,"onUpdate:modelValue":t[3]||(t[3]=c=>i.editableAddressEntry.city=c)},null,8,["labelText","placeholder","modelValue"])],2),o.createVNode(l,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry.miscInfo,"onUpdate:modelValue":t[4]||(t[4]=c=>i.editableAddressEntry.miscInfo=c)},null,8,["labelText","placeholder","modelValue"]),o.createVNode(l,{element:"select",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,selectOptions:[{text:"Germany",value:"de"},{text:"United Kingdom",value:"uk"}],modelValue:i.editableAddressEntry.country,"onUpdate:modelValue":t[5]||(t[5]=c=>i.editableAddressEntry.country=c)},null,8,["labelText","modelValue"])],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.addressEntry.streetNo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",Ng,o.toDisplayString(n.addressEntry.streetNo),1),Vg],64)):o.createCommentVNode("",!0),n.addressEntry.zip||n.addressEntry.city?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(n.showCityBeforeZip?"city-zip":"zip-city")},[n.addressEntry.zip?(o.openBlock(),o.createElementBlock("span",Fg,o.toDisplayString(n.addressEntry.zip),1)):o.createCommentVNode("",!0),n.addressEntry.city?(o.openBlock(),o.createElementBlock("span",Ag,[o.createTextVNode(o.toDisplayString(n.addressEntry.city),1),n.addressEntry.state?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(" "+o.toDisplayString(n.addressEntry.state),1)],64)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),Pg,n.addressEntry.miscInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",null,o.toDisplayString(n.addressEntry.miscInfo),1),Lg],64)):o.createCommentVNode("",!0),n.addressEntry.country?(o.openBlock(),o.createElementBlock("span",Ig,o.toDisplayString(n.addressEntry.country),1)):o.createCommentVNode("",!0)],64))],64))])):o.createCommentVNode("",!0)],64)}const Rg=V(pg,[["render",Mg]]),Dg={name:"CmdAddressData",mixins:[Y],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 e;return(e=this.addressData.website)==null?void 0:e.text.replace("https://","")}},methods:{onAddItem(){this.editModeContext.content.addContent(Fe(this,"props","addressData",-1),this.itemProvider)},itemProvider(){return{name:"name",iconClass:"icon-company",data:"Your data",labelText:"Label"}},locateAddress(e){return"https://www.google.com/maps/place/"+e.streetNo+", "+e.zip+" "+e.city},getHref(e){return e.name==="phone"?"tel:"+e.href:e.name==="email"?"mailto:"+e.href:e.name==="url"?e.href:null},updateHandlerProvider(){return Q(this,{update(e,t){const n=t==null?void 0:t.find(r=>r.name==="CmdHeadline");n&&(e.cmdHeadline=e.cmdHeadline||{},n.update(e.cmdHeadline))}})}},watch:{}},jg={class:"cmd-address-data vcard"},qg={class:"adr"},zg={key:0},Hg=[o.createElementVNode("span",{class:"icon-plus"},null,-1),o.createElementVNode("span",null,"Add new entry",-1)],Ug=["href","target","title"],Wg=["innerHTML"],Gg=["href","title"],Jg={class:"street-address"},Kg=o.createElementVNode("br",null,null,-1),Zg={key:0,class:"postal-code"},Xg={key:1,class:"locality"},Qg=o.createElementVNode("br",null,null,-1),Yg=o.createElementVNode("br",null,null,-1),$g=o.createElementVNode("br",null,null,-1),vg={key:4,class:"country-name"},ey={class:"street-address"},ty=o.createElementVNode("br",null,null,-1),ny={key:0,class:"postal-code"},oy={key:1,class:"locality"},ry=o.createElementVNode("br",null,null,-1),iy=o.createElementVNode("br",null,null,-1),sy=o.createElementVNode("br",null,null,-1),ay={key:4,class:"country-name"};function ly(e,t,n,r,i,s){var u;const a=U,l=Rg,d=Ae,c=z;return o.openBlock(),o.createElementBlock("div",jg,[n.useSlot?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[(u=n.cmdHeadline)!=null&&u.headlineText||e.editModeContext?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdHeadline)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("address",qg,[n.showLabels&&(n.showLabelTexts||n.showLabelIcons)&&!n.showIconsOnly?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.editModeContext?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.addressData.length===0?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"button confirm small",onClick:t[0]||(t[0]=(...m)=>s.onAddItem&&s.onAddItem(...m))},Hg)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.addressData,(m,g)=>(o.openBlock(),o.createBlock(d,{key:"x"+g,class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdAddressDataItem",componentProps:m,componentPath:["props","addressData",g]},{default:o.withCtx(()=>[o.createElementVNode("dl",null,[o.createVNode(l,{addressEntry:m,showLabelIcons:n.showLabelIcons,showLabelTexts:n.showLabelTexts},null,8,["addressEntry","showLabelIcons","showLabelTexts"])])]),_:2},1032,["componentProps","componentPath"]))),128))],64)):(o.openBlock(),o.createElementBlock("dl",zg,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.addressData,(m,g)=>(o.openBlock(),o.createBlock(l,{key:g,addressEntry:m,showLabelIcons:n.showLabelIcons,showLabelTexts:n.showLabelTexts,showCityBeforeZip:n.showCityBeforeZip},null,8,["addressEntry","showLabelIcons","showLabelTexts","showCityBeforeZip"]))),128))]))],64)):(o.openBlock(),o.createElementBlock("ul",{key:1,class:o.normalizeClass(["flex-container",{vertical:!n.showIconsOnly}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.addressData,(m,g)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:g},[m.href||m.name==="address"&&m.linkGoogleMaps||!n.showIconsOnly?(o.openBlock(),o.createElementBlock("li",{key:0,class:o.normalizeClass({"no-flex":n.showIconsOnly})},[m.href?(o.openBlock(),o.createElementBlock("a",{key:0,href:s.getHref(m),target:m.name==="url"?"_blank":null,title:m.tooltip},[n.showIconsOnly?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[m.iconClass?(o.openBlock(),o.createBlock(c,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(m.href),1)],64))],8,Ug)):n.showIconsOnly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:m.data},null,8,Wg)),m.name==="address"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[m.linkGoogleMaps?(o.openBlock(),o.createElementBlock("a",{key:0,href:s.locateAddress(m),target:"google-maps",title:m.tooltip},[n.showIconsOnly?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[m.iconClass?(o.openBlock(),o.createBlock(c,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[m.streetNo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",Jg,o.toDisplayString(m.streetNo),1),Kg],64)):o.createCommentVNode("",!0),m.zip||m.city?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(n.showCityBeforeZip?"order-city-zip":"order-zip-city")},[m.zip?(o.openBlock(),o.createElementBlock("span",Zg,o.toDisplayString(m.zip)+" ",1)):o.createCommentVNode("",!0),m.city?(o.openBlock(),o.createElementBlock("span",Xg,[o.createTextVNode(o.toDisplayString(m.city),1),m.state?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(m.state),1)],64)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),Qg],2)):o.createCommentVNode("",!0),m.pobox?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",null,o.toDisplayString(m.pobox),1),Yg],64)):o.createCommentVNode("",!0),m.miscInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createElementVNode("span",null,o.toDisplayString(m.miscInfo),1),$g],64)):o.createCommentVNode("",!0),m.country?(o.openBlock(),o.createElementBlock("span",vg,o.toDisplayString(m.country),1)):o.createCommentVNode("",!0)],64))],8,Gg)):o.createCommentVNode("",!0),!m.linkGoogleMaps&&!n.showIconsOnly?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[m.streetNo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",ey,o.toDisplayString(m.streetNo),1),ty],64)):o.createCommentVNode("",!0),m.zip||m.city?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(n.showCityBeforeZip?"order-city-zip":"order-zip-city")},[m.zip?(o.openBlock(),o.createElementBlock("span",ny,o.toDisplayString(m.zip)+" ",1)):o.createCommentVNode("",!0),m.city?(o.openBlock(),o.createElementBlock("span",oy,[o.createTextVNode(o.toDisplayString(m.city),1),m.state?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(m.state),1)],64)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),ry],2)):o.createCommentVNode("",!0),m.pobox?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",null,o.toDisplayString(m.pobox),1),iy],64)):o.createCommentVNode("",!0),m.miscInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createElementVNode("span",null,o.toDisplayString(m.miscInfo),1),sy],64)):o.createCommentVNode("",!0),m.country?(o.openBlock(),o.createElementBlock("span",ay,o.toDisplayString(m.country),1)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0)],64))),128))],2))])],64))])}const Ia=V(Dg,[["render",ly]]),cy={name:"CmdBackToTopButton",data(){var e;return{windowInnerHeight:window.innerHeight,windowScrollY:this.getScrollY(),scrollHeight:((e=document.querySelector(this.scrollContainer))==null?void 0:e.scrollHeight)||0}},props:{scrollContainer:{type:String,default:"body"},cmdIcon:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-up",tooltip:"Back to top",iconType:"auto"}}}},mounted(){var e;window.addEventListener("resize",this.onViewportChange),this.scrollContainer==="body"?window.addEventListener("scroll",this.onViewportChange):(e=document.querySelector(this.scrollContainer))==null||e.addEventListener("scroll",this.onViewportChange)},unmounted(){var e;window.removeEventListener("resize",this.onViewportChange),this.scrollContainer==="body"?window.addEventListener("scroll",this.onViewportChange):(e=document.querySelector(this.scrollContainer))==null||e.removeEventListener("scroll",this.onViewportChange)},computed:{show(){return this.windowScrollY>0&&this.windowInnerHeight<this.scrollHeight}},methods:{getScrollY(){var e;return this.scrollContainer==="body"?window.scrollY:((e=document.querySelector(this.scrollContainer))==null?void 0:e.scrollTop)||0},onViewportChange(){var e;this.windowInnerHeight=window.innerHeight,this.windowScrollY=this.getScrollY(),this.scrollHeight=((e=document.querySelector(this.scrollContainer))==null?void 0:e.scrollHeight)||0},onBackToTop(){var e;this.scrollContainer==="body"?window.scrollTo({top:0,left:0,behavior:"smooth"}):(e=document.querySelector(this.scrollContainer))==null||e.scrollTo({top:0,left:0,behavior:"smooth"})}}},dy=["title"];function uy(e,t,n,r,i,s){const a=z;return o.openBlock(),o.createBlock(o.Transition,{name:"fade"},{default:o.withCtx(()=>[s.show?(o.openBlock(),o.createElementBlock("a",{key:0,class:"cmd-back-to-top-button button",id:"back-to-top-button",href:"#",role:"button",title:n.cmdIcon.tooltip,onClick:t[0]||(t[0]=o.withModifiers((...l)=>s.onBackToTop&&s.onBackToTop(...l),["prevent"]))},[o.createVNode(a,{iconClass:n.cmdIcon.iconClass,type:n.cmdIcon.iconType},null,8,["iconClass","type"])],8,dy)):o.createCommentVNode("",!0)]),_:1})}const my=V(cy,[["render",uy]]),fy={name:"CmdBankAccountData",props:{useSlot:{type:Boolean,default:!1},accountData:{type:Array,required:!0},allowCopyByClick:{type:Boolean,default:!0},additionalInformation:{type:String,required:!1},cmdIcon:{type:Object,default(){return{iconClass:"icon-file-copy",tooltip:"Copy data to clipboard!",iconType:"auto"}}},cmdHeadline:{type:Object,required:!1}},methods:{copyToClipboard(e){const t=e.replace(/\s/g,"");navigator.clipboard.writeText(t),alert(t+" was copied to clipboard")}}},hy={class:"cmd-bank-account-data"},py={key:0},gy=["onClick","title"],yy={key:1};function by(e,t,n,r,i,s){const a=U,l=z;return o.openBlock(),o.createElementBlock("div",hy,[n.useSlot?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.cmdHeadline?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdHeadline)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("dl",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.accountData,(d,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:c},[o.createElementVNode("dt",null,o.toDisplayString(d.text),1),n.allowCopyByClick&&d.allowCopy?(o.openBlock(),o.createElementBlock("dd",py,[o.createElementVNode("span",null,o.toDisplayString(d.value),1),o.createElementVNode("a",{href:"#",onClick:o.withModifiers(u=>s.copyToClipboard(d.value),["prevent"]),title:n.cmdIcon.tooltip},[o.createVNode(l,{iconClass:n.cmdIcon.iconClass,type:n.cmdIcon.iconType},null,8,["iconClass","type"])],8,gy)])):(o.openBlock(),o.createElementBlock("dd",{key:c},o.toDisplayString(d.value),1))],64))),128))]),n.additionalInformation?(o.openBlock(),o.createElementBlock("p",yy,o.toDisplayString(n.additionalInformation),1)):o.createCommentVNode("",!0)],64))])}const ky=V(fy,[["render",by]]),Cy={name:"CmdForm",emits:["submit"],data(){return{errorOccurred:!1,formValues:{}}},props:{formAction:{type:String,required:!1},legend:{type:Object,default(){return{show:!0,align:"left",text:"Legend"}}},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},submitButton:{type:Object,required:!1}},computed:{submitButtonOptions(){return{iconClass:"icon-check",text:"Submit",type:"submit",position:"insideFieldset",primary:!0,...this.submitButton}}},methods:{createHtmlId:cr,submitFormData(e){let t={};this.formElements&&this.formElements.forEach(n=>{t[n.name]=this.formValues[n.name]}),this.$emit("submit",{originalEvent:e,formdata:t})},onSubmit(e){this.useValidation?e.target.checkValidity()?(this.errorOccurred=!1,this.submitFormData(e)):(e.preventDefault(),this.errorOccurred=!0):this.submitFormData(e)}},watch:{formElements:{handler(){var e;this.formValues={},(e=this.formElements)==null||e.forEach(t=>{t.type==="checkbox"?(this.formValues[t.name]||(this.formValues[t.name]=[]),t.value!=null&&this.formValues[t.name].push(t.value)):this.formValues[t.name]=t.value??""})},immediate:!0,deep:!0}}},wy=["action","data-use-validation","novalidate"],xy={class:"flex-container"},By=["type"],_y={key:1},Ey={key:0,class:"button-wrapper"},Sy=["type"],Ty={key:1};function Oy(e,t,n,r,i,s){const a=X;return o.openBlock(),o.createElementBlock("form",{class:o.normalizeClass(["cmd-form",{error:i.errorOccurred}]),action:n.formAction,"data-use-validation":n.useValidation,onSubmit:t[0]||(t[0]=(...l)=>s.onSubmit&&s.onSubmit(...l)),novalidate:n.novalidate},[n.useFieldset?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("fieldset",xy,[o.createElementVNode("legend",{class:o.normalizeClass({hidden:!n.legend.show,"align-left":n.legend.align==="left"})},o.toDisplayString(n.legend.text),3),n.useSlot?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(n.formElements,(l,d)=>(o.openBlock(),o.createBlock(a,{key:d,element:l.element||"input",type:l.type||"text",name:l.name,class:o.normalizeClass(l.htmlClass),id:l.id||s.createHtmlId(),modelValue:i.formValues[l.name],"onUpdate:modelValue":c=>i.formValues[l.name]=c,inputValue:l.inputValue,fieldIconClass:l.innerIconClass,selectOptions:l.selectOptions,labelText:l.labelText,placeholder:l.placeholder,required:l.required,disabled:l.disabled,autocomplete:l.autocomplete,minlength:l.minlength,maxlength:l.maxlength,nativeButton:l.nativeButton},null,8,["element","type","name","class","id","modelValue","onUpdate:modelValue","inputValue","fieldIconClass","selectOptions","labelText","placeholder","required","disabled","autocomplete","minlength","maxlength","nativeButton"]))),128)),s.submitButtonOptions&&(s.submitButtonOptions.position==="insideFieldset"||s.submitButtonOptions.position===null)?(o.openBlock(),o.createElementBlock("button",{key:2,class:o.normalizeClass(["button",{primary:s.submitButtonOptions.primary}]),type:s.submitButtonOptions.type},[s.submitButtonOptions.iconClass?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(s.submitButtonOptions.iconClass)},null,2)):o.createCommentVNode("",!0),s.submitButtonOptions.text?(o.openBlock(),o.createElementBlock("span",_y,o.toDisplayString(s.submitButtonOptions.text),1)):o.createCommentVNode("",!0)],10,By)):o.createCommentVNode("",!0)]),s.submitButtonOptions&&s.submitButtonOptions.position==="belowFieldset"?(o.openBlock(),o.createElementBlock("div",Ey,[o.createElementVNode("button",{class:o.normalizeClass(["button",{primary:s.submitButtonOptions.primary}]),type:s.submitButtonOptions.type||"submit"},[s.submitButtonOptions.iconClass?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(s.submitButtonOptions.iconClass)},null,2)):o.createCommentVNode("",!0),s.submitButtonOptions.text?(o.openBlock(),o.createElementBlock("span",Ty,o.toDisplayString(s.submitButtonOptions.text),1)):o.createCommentVNode("",!0)],10,Sy)])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"button-row")],64)):o.renderSlot(e.$slots,"default",{key:1})],42,wy)}const Ma=V(Cy,[["render",Oy]]),Ny={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.text.characters_left":"Characters left","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>."}}}},De=class De{constructor(t){en(this,"label");this.label=t}validate(t){return[t.lastName.error,t.lastName.errorMessage]=this.validateRequired(t.lastName.value,De.PATTERN_SURNAME,this.label("form_error_invalid_surname"))[t.email.error,t.email.errorMessage]=this.validateRequired(t.email.value,De.PATTERN_EMAIL,this.label("form_error_invalid_email"))[t.additionalText.error,t.additionalText.errorMessage]=this.validateRequired(t.additionalText.value,De.PATTERN_MESSAGE,this.label("form_error_invalid_message")),t.acceptPrivacy.error=!1,t.error=t.lastName.error||t.email.error||t.additionalText.error,t}validatePrivacy(t){return t.acceptPrivacy.error=!t.acceptPrivacy.value,t.acceptPrivacy.errorMessage=t.acceptPrivacy.error?this.label("form_error_missing_privacy_consent"):"",t.error=t.error||t.acceptPrivacy.error,t}validateRequired(t,n,r){return!t||t.trim().length===0?[!0,this.label("form_error_empty")]:n&&!n.test(t)?[!0,r||this.label("form_error_invalid")]:[!1,""]}};en(De,"PATTERN_SURNAME",/^[a-züöäßáéíóàèìòêîô '-]+$/i),en(De,"PATTERN_EMAIL",/^[a-z\d._%+-]+@[a-z\d._%+-]+\.[a-z]{2,}$/i),en(De,"PATTERN_MESSAGE",/^.{2,500}$/);let mr=De;function nt(e){if(e){const t=e.lastIndexOf(".");if(t>-1)return e.substring(t+1)}return""}function Ra(e,t,n,r,i){const s=[];if(e.size>r&&s.push("file too large"),t.includes(nt(e.name))||s.push("disallowed file extension"),s.length){alert(s);return}const a=new Image;a.onload=()=>{if(a.width<n&&!confirm("width ("+a.width+" px) too small - at least "+n+" px required! Use trotzdem!")){alert("Cancel");return}URL.revokeObjectURL(a.src),typeof i=="function"?i(a.src):i.src=a.src},a.src=URL.createObjectURL(e)}const Vy={name:"CmdImage",mixins:[Y],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},useFigureTag:{type:Boolean,default:!0},figcaption:{type:Object,required:!1},maxFileUploadSize:{type:Number,default:5e5},minImageWidth:{type:Number,default:600}},created(){window.addEventListener("resize",this.updateWindowWidth);const e=getComputedStyle(document.documentElement);this.mediumMaxWidth=parseInt(e.getPropertyValue("--medium-max-width")),this.smallMaxWidth=parseInt(e.getPropertyValue("--small-max-width"))},beforeUnmount(){window.removeEventListener("resize",this.updateWindowWidth)},computed:{imageComponentPath(){return this.componentPath||["props","cmdImage"]},imageSource(){var n;if(this.newImageSource)return this.newImageSource;const e=(n=this.image)==null?void 0:n.src;if(!e)return null;if(typeof e=="string")return e;const t=this.currentWindowWidth;return e.small&&t<=this.smallMaxWidth?e.small:e.medium&&t<=this.mediumMaxWidth?e.medium:e.large},textAlign(){var e;return(e=this.figcaption)!=null&&e.textAlign?"text-"+this.figcaption.textAlign:""},dragAndDropHandler(){return{dragenter:this.dragEnter,dragover:this.dragOver,dragleave:this.dragLeave,drop:this.drop}},editableFigcaptionText:{get(){var e;return this.figcaptionText==null?(e=this.figcaption)==null?void 0:e.text:this.figcaptionText},set(e){this.figcaptionText=e}}},methods:{onImageLoaded(e){this.$emit("image-loaded",e)},itemProvider(){var t,n;const e=(n=(t=this.editModeConfig)==null?void 0:t.itemProviderOverwrite)==null?void 0:n.call(t);return{image:{src:"/media/images/demo-images/medium/landscape-01.jpg",alt:"Alternative Text",...(e==null?void 0:e.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(e){e.target.files.length>0&&Ra(e.target.files[0],this.allowedFileExtensions,this.minImageWidth,this.maxFileUploadSize,t=>this.newImageSource=t)},updateWindowWidth(){this.currentWindowWidth=window.innerWidth},getImage(){return{image:{...this.image},figcaption:{show:this.showFigcaption,position:this.figcaptionPosition,textAlign:this.figcaptionTextAlign,text:this.figcaptionText}}},dragEnter(e){this.dragOver(e)},dragOver(e){e.dataTransfer&&e.dataTransfer.items&&e.dataTransfer.items.length>0&&(e.dataTransfer.dropEffect="none",e.dataTransfer.items[0].kind==="file"&&(e.preventDefault(),e.dataTransfer.dropEffect="copy",this.allowDrop=!0))},dragLeave(){this.allowDrop=!1},drop(e){this.allowDrop=!1,e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length>0&&(e.preventDefault(),Ra(e.dataTransfer.files[0],this.allowedFileExtensions,this.minImageWidth,this.maxFileUploadSize,t=>this.newImageSource=t))},addHandlerProvider(){const e={image:{id:tt(),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 e}})},updateHandlerProvider(){const e=this.figcaptionText;return this.figcaptionText=null,Q(this,{update(t){t.figcaption||(t.figcaption={}),t.figcaption.text=e}})}},watch:{figcaption:{handler(){var e,t,n,r;this.showFigcaption=(e=this.figcaption)==null?void 0:e.show,this.figcaptionText=(t=this.figcaption)==null?void 0:t.text,this.figcaptionPosition=(n=this.figcaption)==null?void 0:n.position,this.figcaptionTextAlign=(r=this.figcaption)==null?void 0:r.textAlign},immediate:!0,deep:!0}}},Fy=["innerHTML"],Ay=o.createElementVNode("span",{class:"icon-image"},null,-1),Py=["src","alt","title"],Ly=["src","alt","title"],Iy=["innerHTML"],My=[o.createElementVNode("span",{class:"icon-add"},null,-1),o.createElementVNode("span",null,"Add new image",-1)],Ry=["innerHTML"],Dy=["src","alt","title"],jy=["innerHTML"],qy=["src","alt","title"];function zy(e,t,n,r,i,s){var d,c,u,m,g,f,h,y,p,C,T,k,A;const a=X,l=Ae;return e.editModeContext?(o.openBlock(),o.createBlock(l,{key:0,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdImage",componentProps:{image:n.image,figcaption:n.figcaption},componentPath:s.imageComponentPath,allowDeleteComponent:!!s.imageSource,itemProvider:((d=e.editModeConfig)==null?void 0:d.allowAddItem)!==!1?s.itemProvider:null},{default:o.withCtx(N=>{var b,S,F,q,L,Be,_e,Ee,Se,Te,P,de;return[o.createElementVNode("figure",{class:o.normalizeClass(["cmd-image flex-container no-gap vertical",s.textAlign])},[(b=n.figcaption)!=null&&b.show&&((S=n.figcaption)==null?void 0:S.position)==="top"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[N.editing?(o.openBlock(),o.createBlock(a,{key:0,element:"input",type:"text",class:o.normalizeClass([s.textAlign,"edit-mode"]),required:!0,labelText:"Text figcaption",modelValue:s.editableFigcaptionText,"onUpdate:modelValue":t[0]||(t[0]=re=>s.editableFigcaptionText=re)},null,8,["class","modelValue"])):(F=n.figcaption)!=null&&F.text?(o.openBlock(),o.createElementBlock("figcaption",{key:1,innerHTML:(q=n.figcaption)==null?void 0:q.text},null,8,Fy)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),N.editing?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("a",o.mergeProps({href:"#",class:["box drop-area flex-container vertical",{"allow-drop":i.allowDrop}]},o.toHandlers(s.dragAndDropHandler,!0),{onClick:t[1]||(t[1]=o.withModifiers((...re)=>s.selectFiles&&s.selectFiles(...re),["prevent"])),title:"Drag new image to this area to replace old one!"}),[Ay,o.createElementVNode("img",{src:s.imageSource,alt:(L=n.image)==null?void 0:L.alt,title:(Be=n.image)==null?void 0:Be.tooltip},null,8,Py)],16),o.createVNode(a,{class:"hidden",element:"input",type:"file",labelText:"Select new image",disabled:i.uploadInitiated,onChange:s.fileSelected,ref:"formElement"},null,8,["disabled","onChange"])],64)):s.imageSource?(o.openBlock(),o.createElementBlock("img",{key:2,src:s.imageSource,alt:(_e=n.image)==null?void 0:_e.alt,title:(Ee=n.image)==null?void 0:Ee.tooltip},null,8,Ly)):o.createCommentVNode("",!0),(Se=n.figcaption)!=null&&Se.show&&((Te=n.figcaption)==null?void 0:Te.position)!=="top"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[N.editing?(o.openBlock(),o.createBlock(a,{key:0,element:"input",type:"text",class:o.normalizeClass([s.textAlign,"edit-mode"]),required:!0,labelText:"Text figcaption",showLabel:!1,modelValue:s.editableFigcaptionText,"onUpdate:modelValue":t[2]||(t[2]=re=>s.editableFigcaptionText=re),placeholder:"figcaption"},null,8,["class","modelValue"])):(P=n.figcaption)!=null&&P.text?(o.openBlock(),o.createElementBlock("figcaption",{key:1,innerHTML:(de=n.figcaption)==null?void 0:de.text},null,8,Iy)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),!N.editing&&!s.imageSource?(o.openBlock(),o.createElementBlock("button",{key:4,type:"button",class:"button confirm",onClick:t[3]||(t[3]=(...re)=>s.onAddItem&&s.onAddItem(...re))},My)):o.createCommentVNode("",!0)],2)]}),_:1},8,["componentProps","componentPath","allowDeleteComponent","itemProvider"])):n.useFigureTag?(o.openBlock(),o.createElementBlock("figure",{key:1,class:o.normalizeClass(["cmd-image",s.textAlign])},[((c=n.figcaption)==null?void 0:c.position)==="top"&&((u=n.figcaption)!=null&&u.text)&&((m=n.figcaption)!=null&&m.show)?(o.openBlock(),o.createElementBlock("figcaption",{key:0,innerHTML:(g=n.figcaption)==null?void 0:g.text},null,8,Ry)):o.createCommentVNode("",!0),o.createElementVNode("img",{src:s.imageSource,alt:(f=n.image)==null?void 0:f.alt,title:(h=n.image)==null?void 0:h.tooltip,onLoad:t[4]||(t[4]=(...N)=>s.onImageLoaded&&s.onImageLoaded(...N))},null,40,Dy),((y=n.figcaption)==null?void 0:y.position)!=="top"&&((p=n.figcaption)!=null&&p.text)&&((C=n.figcaption)!=null&&C.show)?(o.openBlock(),o.createElementBlock("figcaption",{key:1,innerHTML:(T=n.figcaption)==null?void 0:T.text},null,8,jy)):o.createCommentVNode("",!0)],2)):(o.openBlock(),o.createElementBlock("img",{key:2,src:s.imageSource,alt:(k=n.image)==null?void 0:k.alt,title:(A=n.image)==null?void 0:A.tooltip,onLoad:t[5]||(t[5]=(...N)=>s.onImageLoaded&&s.onImageLoaded(...N))},null,40,qy))}const Ne=V(Vy,[["render",zy]]),Hy={name:"CmdSlideButton",props:{slideButtonType:{type:String,default:"next",validator(e){return e==="next"||e==="prev"||e==="up"||e==="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"),{})}}},Uy=["title"];function Wy(e,t,n,r,i,s){const a=z;return o.openBlock(),o.createElementBlock("a",{href:"#",onClick:t[0]||(t[0]=o.withModifiers(()=>{},["prevent"])),class:o.normalizeClass(["cmd-slide-button","button","keep-behavior-on-small-devices",n.slideButtonType]),title:s.getDirection.tooltip},[o.createVNode(a,{type:s.getDirection.iconType||"auto",iconClass:s.getDirection.iconClass||"next"},null,8,["type","iconClass"])],10,Uy)}const bt=V(Hy,[["render",Wy]]),Gy={name:"CmdThumbnailScroller",emits:["click"],mixins:[oe,{data(){return{defaultMessageProperties:{"thumbnail_scroller.tooltip.open_large_image":"Open large image","thumbnail_scroller.tooltip.open_url":"Open URL in a new tab","thumbnail_scroller.tooltip.open":"Open"}}}},Y],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(e){return e==="image"||e==="text"}},executeOnClick:{type:String,default:"fancybox",validator(e){return e==="fancybox"||e==="url"||e==="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 e=this.$refs["thumbnail-scroller"],t=e.querySelector("ul");new ResizeObserver(()=>this.toggleSlideButtons(t)).observe(e)},computed:{tooltip(){return this.contentType==="image"?this.getMessage("thumbnail_scroller.tooltip.open_large_image"):this.executeOnClick==="url"?this.getMessage("thumbnail_scroller.tooltip.open_url"):this.getMessage("thumbnail_scroller.tooltip.open")},fullWidthClass(){return this.orientation==="horizontal"?"full-width":null}},methods:{itemProvider(){return{image:{id:tt(),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(Fe(this,"props","thumbnailScrollerItems",-1),this.itemProvider)},imageStructure(){return{itemProviderOverwrite:()=>({image:{id:tt(),src:"/media/images/demo-images/small/landscape-01.jpg",srcImageLarge:"/media/images/demo-images/large/landscape-01.jpg",tooltip:"Tooltip DE"}})}},toggleSlideButtons(e){this.showSlidebuttons=e.scrollWidth>e.clientWidth},showNextItem(){const e=this.items.shift();e&&this.items.push(e)},showPrevItem(){const e=this.items.pop();e&&this.items.unshift(e)},showFancyBox(e){this.allowOpenFancyBox&&qe({fancyBoxGallery:this.items,defaultGalleryIndex:e}),this.emitCurrentItemId(e)},emitCurrentItemId(e){if(this.contentType==="image"){this.$emit("click",this.items[e].image.id);return}this.$emit("click",this.items[e].id)},executeLink(e,t){this.executeOnClick==="emit"?(t.preventDefault(),this.emitCurrentItemId(e)):this.executeOnClick==="fancybox"&&(t.preventDefault(),this.showFancyBox(e))}},watch:{thumbnailScrollerItems:{handler(){this.items=this.thumbnailScrollerItems.map(e=>{let t;return this.contentType==="image"?(t={image:{...e.image},figcaption:{...e.figcaption}},t.image.srcImageSmall&&(t.image.src=t.image.srcImageSmall)):t={...e},t})},immediate:!0,deep:!0}}},Jy={class:"inner-thumbnail-wrapper"},Ky=["href","onClick","title","target"],Zy={key:1},Xy={key:1},Qy={key:0},Yy=[o.createElementVNode("span",{class:"icon-plus"},null,-1),o.createElementVNode("span",null,"Add new thumbnail-scroller-image",-1)];function $y(e,t,n,r,i,s){var u;const a=U,l=bt,d=Ne,c=z;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["cmd-thumbnail-scroller",{"gallery-scroller":n.useGalleryScroller,"large-icons":n.largeIcons,vertical:n.orientation==="vertical"},s.fullWidthClass]),ref:"thumbnail-scroller"},[(u=n.cmdHeadline)!=null&&u.headlineText||e.editModeContext?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdHeadline)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("div",Jy,[i.showSlidebuttons?(o.openBlock(),o.createBlock(l,{key:0,onClick:o.withModifiers(s.showPrevItem,["prevent"]),slideButtonType:"prev"},null,8,["onClick"])):o.createCommentVNode("",!0),o.createVNode(o.TransitionGroup,{name:"slide",tag:"ul"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.items,(m,g)=>(o.openBlock(),o.createElementBlock("li",{key:g},[e.editModeContext?n.contentType==="image"?(o.openBlock(),o.createBlock(d,{key:1,image:m.image,figcaption:m.figcaption,componentPath:["props","thumbnailScrollerItems",g],editModeConfig:s.imageStructure()},null,8,["image","figcaption","componentPath","editModeConfig"])):n.contentType==="text"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[m.iconClass?(o.openBlock(),o.createBlock(c,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0),m.text?(o.openBlock(),o.createElementBlock("span",Xy,o.toDisplayString(m.text),1)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("a",{key:0,href:n.executeOnClick==="url"?m.url:"#",onClick:f=>s.executeLink(g,f),class:o.normalizeClass([{active:n.activeItemIndex===g},m.id?"item-"+m.id:""]),title:s.tooltip,target:n.executeOnClick==="url"?"_blank":null},[n.contentType==="image"?(o.openBlock(),o.createBlock(d,{key:0,image:m.image,figcaption:m.figcaption},null,8,["image","figcaption"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[m.iconClass?(o.openBlock(),o.createBlock(c,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0),m.text?(o.openBlock(),o.createElementBlock("span",Zy,o.toDisplayString(m.text),1)):o.createCommentVNode("",!0)],64))],10,Ky))]))),128)),!i.items.length&&n.contentType==="image"?(o.openBlock(),o.createElementBlock("li",Qy,[o.createElementVNode("button",{type:"button",class:"button confirm",onClick:t[0]||(t[0]=(...m)=>s.onAddItem&&s.onAddItem(...m))},Yy)])):o.createCommentVNode("",!0)]),_:1}),i.showSlidebuttons?(o.openBlock(),o.createBlock(l,{key:1,onClick:o.withModifiers(s.showNextItem,["prevent"]),slideButtons:n.cmdSlideButtons.next},null,8,["onClick","slideButtons"])):o.createCommentVNode("",!0)])],2)}const Da=V(Gy,[["render",$y]]),qe=e=>{const t=document.createElement("div");document.querySelector("body").appendChild(t),o.createApp(ja,{...e,show:!0}).mount(t)},ja=o.defineComponent({name:"CmdFancyBox",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,required:!1},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:{fancyBoxOptionsProperties(){var e,t,n,r,i,s,a,l,d;return{closeIcon:{iconClass:"icon-cancel",iconType:"auto",tooltip:"Close",...(e=this.fancyBoxOptions)==null?void 0:e.closeIcon},printButtons:{color:{iconClass:"icon-print",iconType:"auto",tooltip:"print in color",...(n=(t=this.fancyBoxOptions)==null?void 0:t.printButtons)==null?void 0:n.color},grayscale:{iconClass:"icon-print",iconType:"auto",tooltip:"print in grayscale",...(i=(r=this.fancyBoxOptions)==null?void 0:r.printButtons)==null?void 0:i.grayscale}},submitButtons:{cancel:{iconClass:"icon-cancel",iconType:"auto",tooltip:"Cancel",buttonText:"Cancel",...(a=(s=this.fancyBoxOptions)==null?void 0:s.submitButtons)==null?void 0:a.cancel},confirm:{iconClass:"icon-check",iconType:"auto",buttonText:"Confirm",tooltip:"Confirm",buttonType:"primary",...(d=(l=this.fancyBoxOptions)==null?void 0:l.submitButtons)==null?void 0:d.confirm}}}},largeGalleryImage(){const e={...this.fancyBoxGallery[this.index].image};return e.src=e.srcImageLarge,e},largeSingleImage(){var t;const e={...((t=this.cmdImage)==null?void 0:t.image)||{}};return this.fancyBoxImageUrl&&(e.src=this.fancyBoxImageUrl),e},ariaLabelText(){var e;return(e=this.fancyBoxGallery)!=null&&e.length?this.fancyBoxGallery[this.index].figcaption.text:this.defaultAriaLabelText}},methods:{printDialogContent(){const e=window.open("","","width=1000,height=600"),t=this.elements.map(i=>i.outerHTML).join("");let n=Array.from(document.head.querySelectorAll("style, link[rel='stylesheet']")).map(i=>i.outerHTML).join("");this.printInGrayscale&&(n+="<style>body { filter: grayscale(1)}</style>");const r=document.head.querySelector("title").innerText;e.document.write(`
1
+ (function(O,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(O=typeof globalThis<"u"?globalThis:O||self,o(O["comand-component-library"]={},O.Vue))})(this,function(O,o){"use strict";var CP=Object.defineProperty;var wP=(O,o,Oe)=>o in O?CP(O,o,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):O[o]=Oe;var en=(O,o,Oe)=>wP(O,typeof o!="symbol"?o+"":o,Oe);const Oe=/^[a-z0-9]+(-[a-z0-9]+)*$/,tn=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),d=i.pop(),c={provider:i.length>0?i[0]:r,prefix:d,name:l};return t&&!nn(c)?null:c}const s=i[0],a=s.split("-");if(a.length>1){const l={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!nn(l)?null:l}if(n&&r===""){const l={provider:r,prefix:"",name:s};return t&&!nn(l,n)?null:l}return null},nn=(e,t)=>e?!!((e.provider===""||e.provider.match(Oe))&&(t&&e.prefix===""||e.prefix.match(Oe))&&e.name.match(Oe)):!1,ra=Object.freeze({left:0,top:0,width:16,height:16}),on=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),rn=Object.freeze({...ra,...on}),Go=Object.freeze({...rn,body:"",hidden:!1});function Xf(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ia(e,t){const n=Xf(e,t);for(const r in Go)r in on?r in e&&!(r in n)&&(n[r]=on[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Qf(e,t){const n=e.icons,r=e.aliases||{},i=Object.create(null);function s(a){if(n[a])return i[a]=[];if(!(a in i)){i[a]=null;const l=r[a]&&r[a].parent,d=l&&s(l);d&&(i[a]=[l].concat(d))}return i[a]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Yf(e,t,n){const r=e.icons,i=e.aliases||{};let s={};function a(l){s=ia(r[l]||i[l],s)}return a(t),n.forEach(a),ia(e,s)}function sa(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=Qf(e);for(const i in r){const s=r[i];s&&(t(i,Yf(e,i,s)),n.push(i))}return n}const $f={provider:"",aliases:{},not_found:{},...ra};function Jo(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function aa(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Jo(e,$f))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(Oe)||typeof s.body!="string"||!Jo(s,Go))return null}const r=t.aliases||{};for(const i in r){const s=r[i],a=s.parent;if(!i.match(Oe)||typeof a!="string"||!n[a]&&!r[a]||!Jo(s,Go))return null}return t}const la=Object.create(null);function vf(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function je(e,t){const n=la[e]||(la[e]=Object.create(null));return n[t]||(n[t]=vf(e,t))}function Ko(e,t){return aa(t)?sa(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function eh(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let pt=!1;function ca(e){return typeof e=="boolean"&&(pt=e),pt}function th(e){const t=typeof e=="string"?tn(e,!0,pt):e;if(t){const n=je(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function nh(e,t){const n=tn(e,!0,pt);if(!n)return!1;const r=je(n.provider,n.prefix);return eh(r,n.name,t)}function da(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),pt&&!t&&!e.prefix){let i=!1;return aa(e)&&(e.prefix="",sa(e,(s,a)=>{a&&nh(s,a)&&(i=!0)})),i}const n=e.prefix;if(!nn({provider:t,prefix:n,name:"a"}))return!1;const r=je(t,n);return!!Ko(r,e)}const ua=Object.freeze({width:null,height:null}),ma=Object.freeze({...ua,...on}),oh=/(-?[0-9.]*[0-9]+[0-9.]*)/g,rh=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fa(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(oh);if(r===null||!r.length)return e;const i=[];let s=r.shift(),a=rh.test(s);for(;;){if(a){const l=parseFloat(s);isNaN(l)?i.push(s):i.push(Math.ceil(l*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");a=!a}}function ih(e,t){const n={...rn,...e},r={...ma,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(f=>{const h=[],y=f.hFlip,p=f.vFlip;let C=f.rotate;y?p?C+=2:(h.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),h.push("scale(-1 1)"),i.top=i.left=0):p&&(h.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),h.push("scale(1 -1)"),i.top=i.left=0);let T;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:T=i.height/2+i.top,h.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:h.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:T=i.width/2+i.left,h.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}C%2===1&&(i.left!==i.top&&(T=i.left,i.left=i.top,i.top=T),i.width!==i.height&&(T=i.width,i.width=i.height,i.height=T)),h.length&&(s='<g transform="'+h.join(" ")+'">'+s+"</g>")});const a=r.width,l=r.height,d=i.width,c=i.height;let u,m;return a===null?(m=l===null?"1em":l==="auto"?c:l,u=fa(m,d/c)):(u=a==="auto"?d:a,m=l===null?fa(u,c/d):l==="auto"?c:l),{attributes:{width:u.toString(),height:m.toString(),viewBox:i.left.toString()+" "+i.top.toString()+" "+d.toString()+" "+c.toString()},body:s}}const sh=/\sid="(\S+)"/g,ah="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let lh=0;function ch(e,t=ah){const n=[];let r;for(;r=sh.exec(e);)n.push(r[1]);return n.length&&n.forEach(i=>{const s=typeof t=="function"?t(i):t+(lh++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+"$3")}),e}const Zo=Object.create(null);function dh(e,t){Zo[e]=t}function Xo(e){return Zo[e]||Zo[""]}function Qo(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Yo=Object.create(null),gt=["https://api.simplesvg.com","https://api.unisvg.com"],sn=[];for(;gt.length>0;)gt.length===1||Math.random()>.5?sn.push(gt.shift()):sn.push(gt.pop());Yo[""]=Qo({resources:["https://api.iconify.design"].concat(sn)});function uh(e,t){const n=Qo(t);return n===null?!1:(Yo[e]=n,!0)}function $o(e){return Yo[e]}let ha=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function mh(e,t){const n=$o(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(a=>{i=Math.max(i,a.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function fh(e){return e===404}const hh=(e,t,n)=>{const r=[],i=mh(e,t),s="icons";let a={type:s,provider:e,prefix:t,icons:[]},l=0;return n.forEach((d,c)=>{l+=d.length+1,l>=i&&c>0&&(r.push(a),a={type:s,provider:e,prefix:t,icons:[]},l=d.length),a.icons.push(d)}),r.push(a),r};function ph(e){if(typeof e=="string"){const t=$o(e);if(t)return t.path}return"/"}const gh={prepare:hh,send:(e,t,n)=>{if(!ha){n("abort",424);return}let r=ph(t.provider);switch(t.type){case"icons":{const s=t.prefix,l=t.icons.join(","),d=new URLSearchParams({icons:l});r+=s+".json?"+d.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;ha(e+r).then(s=>{const a=s.status;if(a!==200){setTimeout(()=>{n(fh(a)?"abort":"next",a)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})}};function yh(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,a=i.prefix,l=i.name,d=n[s]||(n[s]=Object.create(null)),c=d[a]||(d[a]=je(s,a));let u;l in c.icons?u=t.loaded:a===""||c.missing.has(l)?u=t.missing:u=t.pending;const m={provider:s,prefix:a,name:l};u.push(m)}),t}function pa(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function bh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const a=s.icons,l=a.pending.length;a.pending=a.pending.filter(d=>{if(d.prefix!==i)return!0;const c=d.name;if(e.icons[c])a.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),a.pending.length!==l&&(n||pa([e],s.id),s.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),s.abort))})}))}let kh=0;function Ch(e,t,n){const r=kh++,i=pa.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(s)}),i}function wh(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?tn(i,t,n):i;s&&r.push(s)}),r}var xh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bh(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let b=e.resources.slice(0);for(a=[];b.length>1;){const S=Math.floor(Math.random()*b.length);a.push(b[S]),b=b.slice(0,S).concat(b.slice(S+1))}a=a.concat(b)}else a=e.resources.slice(s).concat(e.resources.slice(0,s));const l=Date.now();let d="pending",c=0,u,m=null,g=[],f=[];typeof r=="function"&&f.push(r);function h(){m&&(clearTimeout(m),m=null)}function y(){d==="pending"&&(d="aborted"),h(),g.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),g=[]}function p(b,S){S&&(f=[]),typeof b=="function"&&f.push(b)}function C(){return{startTime:l,payload:t,status:d,queriesSent:c,queriesPending:g.length,subscribe:p,abort:y}}function T(){d="failed",f.forEach(b=>{b(void 0,u)})}function k(){g.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),g=[]}function A(b,S,F){const q=S!=="success";switch(g=g.filter(L=>L!==b),d){case"pending":break;case"failed":if(q||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=F,T();return}if(q){u=F,g.length||(a.length?N():T());return}if(h(),k(),!e.random){const L=e.resources.indexOf(b.resource);L!==-1&&L!==e.index&&(e.index=L)}d="completed",f.forEach(L=>{L(F)})}function N(){if(d!=="pending")return;h();const b=a.shift();if(b===void 0){if(g.length){m=setTimeout(()=>{h(),d==="pending"&&(k(),T())},e.timeout);return}T();return}const S={status:"pending",resource:b,callback:(F,q)=>{A(S,F,q)}};g.push(S),c++,m=setTimeout(N,e.rotate),n(b,t,S.callback)}return setTimeout(N),C}function ga(e){const t={...xh,...e};let n=[];function r(){n=n.filter(l=>l().status==="pending")}function i(l,d,c){const u=Bh(t,l,d,(m,g)=>{r(),c&&c(m,g)});return n.push(u),u}function s(l){return n.find(d=>l(d))||null}return{query:i,find:s,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:r}}function ya(){}const vo=Object.create(null);function _h(e){if(!vo[e]){const t=$o(e);if(!t)return;const n=ga(t),r={config:t,redundancy:n};vo[e]=r}return vo[e]}function Eh(e,t,n){let r,i;if(typeof e=="string"){const s=Xo(e);if(!s)return n(void 0,424),ya;i=s.send;const a=_h(e);a&&(r=a.redundancy)}else{const s=Qo(e);if(s){r=ga(s);const a=e.resources?e.resources[0]:"",l=Xo(a);l&&(i=l.send)}}return!r||!i?(n(void 0,424),ya):r.query(t,i,n)().abort}const ba="iconify2",yt="iconify",ka=yt+"-count",Ca=yt+"-version",wa=36e5,Sh=168;function er(e,t){try{return e.getItem(t)}catch{}}function tr(e,t,n){try{return e.setItem(t,n),!0}catch{}}function xa(e,t){try{e.removeItem(t)}catch{}}function nr(e,t){return tr(e,ka,t.toString())}function or(e){return parseInt(er(e,ka))||0}const an={local:!0,session:!0},Ba={local:new Set,session:new Set};let rr=!1;function Th(e){rr=e}let ln=typeof window>"u"?{}:window;function _a(e){const t=e+"Storage";try{if(ln&&ln[t]&&typeof ln[t].length=="number")return ln[t]}catch{}an[e]=!1}function Ea(e,t){const n=_a(e);if(!n)return;const r=er(n,Ca);if(r!==ba){if(r){const l=or(n);for(let d=0;d<l;d++)xa(n,yt+d.toString())}tr(n,Ca,ba),nr(n,0);return}const i=Math.floor(Date.now()/wa)-Sh,s=l=>{const d=yt+l.toString(),c=er(n,d);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}xa(n,d)}};let a=or(n);for(let l=a-1;l>=0;l--)s(l)||(l===a-1?(a--,nr(n,a)):Ba[e].add(l))}function Sa(){if(!rr){Th(!0);for(const e in an)Ea(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=je(r,i);if(!Ko(s,n).length)return!1;const a=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,a):a,!0})}}function Oh(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in an)Ea(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Nh(e,t){rr||Sa();function n(r){let i;if(!an[r]||!(i=_a(r)))return;const s=Ba[r];let a;if(s.size)s.delete(a=Array.from(s).shift());else if(a=or(i),!nr(i,a+1))return;const l={cached:Math.floor(Date.now()/wa),provider:e.provider,data:t};return tr(i,yt+a.toString(),JSON.stringify(l))}t.lastModified&&!Oh(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ta(){}function Vh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,bh(e)}))}function Fh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=Xo(n)))return;s.prepare(n,r,i).forEach(l=>{Eh(n,l,(d,c)=>{if(typeof d!="object"){if(c!==404)return;l.icons.forEach(u=>{e.missing.add(u)})}else try{const u=Ko(e,d);if(!u.length)return;const m=e.pendingIcons;m&&u.forEach(g=>{m.delete(g)}),Nh(e,d)}catch(u){console.error(u)}Vh(e)})})}))}const Ah=(e,t)=>{const n=wh(e,!0,ca()),r=yh(n);if(!r.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(r.loaded,r.missing,r.pending,Ta)}),()=>{d=!1}}const i=Object.create(null),s=[];let a,l;return r.pending.forEach(d=>{const{provider:c,prefix:u}=d;if(u===l&&c===a)return;a=c,l=u,s.push(je(c,u));const m=i[c]||(i[c]=Object.create(null));m[u]||(m[u]=[])}),r.pending.forEach(d=>{const{provider:c,prefix:u,name:m}=d,g=je(c,u),f=g.pendingIcons||(g.pendingIcons=new Set);f.has(m)||(f.add(m),i[c][u].push(m))}),s.forEach(d=>{const{provider:c,prefix:u}=d;i[c][u].length&&Fh(d,i[c][u])}),t?Ch(t,r,s):Ta};function Ph(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in ua?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Lh=/[\s,]+/;function Ih(e,t){t.split(Lh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Mh(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function Rh(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Dh(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function jh(e){return'url("data:image/svg+xml,'+Dh(e)+'")'}const Oa={...ma,inline:!1},qh={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zh={display:"inline-block"},ir={backgroundColor:"currentColor"},Na={backgroundColor:"transparent"},Va={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Fa={webkitMask:ir,mask:ir,background:Na};for(const e in Fa){const t=Fa[e];for(const n in Va)t[e+n]=Va[n]}const cn={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";cn[e+"-flip"]=t,cn[e.slice(0,1)+"-flip"]=t,cn[e+"Flip"]=t});function Aa(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Pa=(e,t)=>{const n=Ph(Oa,t),r={...qh},i=t.mode||"svg",s={},a=t.style,l=typeof a=="object"&&!(a instanceof Array)?a:{};for(let y in t){const p=t[y];if(p!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[y]=p===!0||p==="true"||p===1;break;case"flip":typeof p=="string"&&Ih(n,p);break;case"color":s.color=p;break;case"rotate":typeof p=="string"?n[y]=Mh(p):typeof p=="number"&&(n[y]=p);break;case"ariaHidden":case"aria-hidden":p!==!0&&p!=="true"&&delete r["aria-hidden"];break;default:{const C=cn[y];C?(p===!0||p==="true"||p===1)&&(n[C]=!0):Oa[y]===void 0&&(r[y]=p)}}}const d=ih(e,n),c=d.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),i==="svg"){r.style={...s,...l},Object.assign(r,c);let y=0,p=t.id;return typeof p=="string"&&(p=p.replace(/-/g,"_")),r.innerHTML=ch(d.body,p?()=>p+"ID"+y++:"iconifyVue"),o.h("svg",r)}const{body:u,width:m,height:g}=e,f=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),h=Rh(u,{...c,width:m+"",height:g+""});return r.style={...s,"--svg":jh(h),width:Aa(c.width),height:Aa(c.height),...zh,...f?ir:Na,...l},o.h("span",r)};if(ca(!0),dh("",gh),typeof document<"u"&&typeof window<"u"){Sa();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!da(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;uh(n,i)||console.error(r)}catch{console.error(r)}}}}const Hh={...rn,body:""},Uh=o.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(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=tn(e,!1,!0))===null)return this.abortLoading(),null;const r=th(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:Ah([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const i=["iconify"];return n.prefix!==""&&i.push("iconify--"+n.prefix),n.provider!==""&&i.push("iconify--"+n.provider),{data:r,classes:i}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return Pa(Hh,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Pa({...rn,...t.data},n)}}),V=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Wh={name:"CmdIcon",components:{Icon:Uh},props:{type:{type:String,default:"auto",validator(e){return e==="auto"||e==="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}}},Gh=["title"];function Jh(e,t,n,r,i,s){const a=o.resolveComponent("Icon");return s.isIconify?(o.openBlock(),o.createBlock(a,{key:0,icon:n.iconClass,title:n.tooltip,class:o.normalizeClass(e.$attrs.class)},null,8,["icon","title","class"])):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass([n.iconClass,e.$attrs.class]),title:n.tooltip},null,10,Gh))}const z=V(Wh,[["render",Jh]]);function Ve(e,t){return dn(e,"EditComponentWrapper",t)}function Kh(e){return dn(e,"EditModeSettingsSidebar")}function Zh(e){return dn(e,"EditModeMainSidebar")}function dn(e,t,n){var r;return((r=e==null?void 0:e.$options)==null?void 0:r.name)===t&&(n==null||n(e))?e:e!=null&&e.$parent?dn(e.$parent,t,n):null}function Fe(e,...t){const n=[];for(let r=Ve(e);r;r=Ve(r.$parent))r.componentPath&&n.unshift(...r.componentPath);return n.push(...t),n}function Xh(e){return Array.isArray(e)&&e.length>0?JSON.stringify(e):""}function Q(e,t){var n;return(n=e==null?void 0:e.$options)!=null&&n.name?{name:e.$options.name,...t}:t}const Qh={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!Ve(this.$parent,e=>(e==null?void 0:e.componentName)!=="CmdContainer")},active(){return this.editModeContext?Ve(this.$parent,t=>(t==null?void 0:t.componentName)!=="CmdContainer")?!!this.editModeContext.system.isActiveChildComponent(me(this)):!!this.editModeContext.system.isActiveComponent(me(this)):!1},editing(){var e;return(e=this.editModeContext)==null?void 0:e.content.isEditing(this.componentIdentifier)},hasSettings(){const e=`${this.componentName}Settings`;return!!o.getCurrentInstance().appContext.components[e]}},methods:{addHighlightRelatedComponent(e){e.target.parentNode.classList.add("highlight")},removeHighlightRelatedComponent(e){e.target.parentNode.classList.remove("highlight")},showActionButtons(){const e=Ve(this.$parent,t=>(t==null?void 0:t.componentName)!=="CmdContainer");this.editModeContext.system.setActiveComponent(me(e),me(this))},deleteComponent(){var e;!this.editing&&this.allowDeleteComponent&&confirm("Delete this component and its content?")&&((e=this.editModeContext)==null||e.store.deleteContent(me(this)),this.editModeContext.settings.stopEditing())},deleteInnerComponent(){this.editModeContext.store.deleteContent(me(this)),this.editModeContext.settings.stopEditing()},cancelComponent(e){this.editing&&(e.stopPropagation(),this.editModeContext.content.stopEditing())},editComponent(e){e==null||e.stopPropagation(),e||this.showActionButtons();const t=this.$refs.editComponent;this.editModeContext.content.startEditing(this.componentIdentifier),this.$nextTick(()=>{var n;return(n=t.querySelector("input"))==null?void 0:n.focus()})},saveComponent(){this.editModeContext.store.updateContent(me(this),this.updateHandlerProviders.map(e=>e())),this.editModeContext.content.stopEditing()},editSettings(e,t){e.stopPropagation(),!this.editing&&this.hasSettings&&this.editModeContext.settings.startEditing(this.componentIdentifier,this.componentName,this.componentProps,this.allowedComponentTypes,me(this),this.saveSettings,this.deleteInnerComponent,t||"edit")},addEntry(e){this.itemProvider?this.editModeContext.content.addContent(me(this),this.itemProvider):this.editSettings(e,"add")},saveSettings(e){this.editModeContext.store.updateSettings(me(this),e),this.editModeContext.settings.stopEditing()},addEditStateListener(e){this.editStateListeners.push(e),e(this.editing)},addUpdateHandlerProvider(e){this.updateHandlerProviders.push(e)},setAddHandlerProvider(e){e&&(this.addHandlerProvider=e)}},watch:{componentPath:{handler(){this.componentIdentifier=Xh(me(this))},immediate:!0,deep:!0},editing(e){this.editStateListeners.forEach(t=>t(e))}}};function me(e){const t=[];for(let n=e;n;n=Ve(n.$parent))n.componentPath&&t.unshift(...n.componentPath);return t}const Yh={key:0,class:"action-buttons-wrapper"},$h=["data-component"],vh=["title"],ep=["href"],tp={key:0},np={key:1},op={key:0,class:"component-name"},rp=["data-component"],ip=["title"],sp=["href","title"],ap=["title"],lp={key:0},cp={key:1},dp=["title"],up=["title"];function mp(e,t,n,r,i,s){const a=z;return o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.componentTag||"div"),{class:o.normalizeClass(["edit-component-wrapper",{active:s.active}]),tabindex:"0",onClick:o.withModifiers(s.showActionButtons,["stop"]),ref:"editComponent",title:s.active?"Select an action from the buttons in the top-left corner":"Click to select this element","data-identifier":i.componentIdentifier},{default:o.withCtx(()=>[n.componentTag==="ul"?(o.openBlock(),o.createElementBlock("li",Yh,[o.withDirectives(o.createElementVNode("ul",{class:"flex-container no-flex action-buttons","data-component":n.componentName},[o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon button confirm",{disabled:!i.addHandlerProvider&&!n.itemProvider&&!n.allowAddComponent}]),href:"#",onClick:t[0]||(t[0]=o.withModifiers(l=>s.addEntry(l),["prevent"])),title:s.isOuterComponent?"Add new component":"Add new item/entry"},[o.createVNode(a,{iconClass:(s.isOuterComponent,"icon-plus")},null,8,["iconClass"])],10,vh)]),o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon button primary",{disabled:s.editing||!s.hasSettings}]),href:s.editing?null:"#",onClick:t[1]||(t[1]=o.withModifiers((...l)=>s.editSettings&&s.editSettings(...l),["prevent"])),title:"Edit settings of this component"},[o.createVNode(a,{iconClass:s.isOuterComponent?"icon-cogs":"icon-cog"},null,8,["iconClass"])],10,ep)]),o.createElementVNode("li",null,[o.createElementVNode("a",{class:"icon-hexagon button-delete",href:"#",onClick:t[2]||(t[2]=o.withModifiers((...l)=>s.deleteComponent&&s.deleteComponent(...l),["prevent"])),title:"Delete this component (and its content)"},[o.createVNode(a,{iconClass:"icon-trash"})])]),s.isOuterComponent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("li",tp,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon button-cancel",{disabled:!s.editing}]),href:"#",onClick:t[3]||(t[3]=o.withModifiers((...l)=>s.cancelComponent&&s.cancelComponent(...l),["prevent"])),title:"Cancel editing (changes will not be saved)"},[o.createVNode(a,{iconClass:"icon-cancel"})],2)])),s.isOuterComponent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("li",np,[s.editing?(o.openBlock(),o.createElementBlock("a",{key:0,class:"icon-hexagon button-save",href:"#",onClick:t[4]||(t[4]=o.withModifiers((...l)=>s.saveComponent&&s.saveComponent(...l),["prevent"])),title:"Save changes of this component"},[o.createVNode(a,{iconClass:"icon-check"})])):(o.openBlock(),o.createElementBlock("a",{key:1,class:o.normalizeClass(["icon-hexagon button",{disabled:s.editModeContext.settings.isEditing(i.componentIdentifier)}]),href:"#",onClick:t[5]||(t[5]=o.withModifiers((...l)=>s.editComponent&&s.editComponent(...l),["prevent"])),title:"Edit content of this component"},[o.createVNode(a,{iconClass:"icon-edit"})],2))]))],8,$h),[[o.vShow,s.active]])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[s.isOuterComponent?(o.openBlock(),o.createElementBlock("p",op,o.toDisplayString(n.componentName),1)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("ul",{class:"flex-container no-flex action-buttons","data-component":n.componentName,onMouseenter:t[12]||(t[12]=(...l)=>s.addHighlightRelatedComponent&&s.addHighlightRelatedComponent(...l)),onMouseleave:t[13]||(t[13]=(...l)=>s.removeHighlightRelatedComponent&&s.removeHighlightRelatedComponent(...l))},[o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon use-icon-as-background button confirm",{disabled:!i.addHandlerProvider&&!n.itemProvider&&!n.allowAddComponent}]),href:"#",onClick:t[6]||(t[6]=o.withModifiers((...l)=>s.addEntry&&s.addEntry(...l),["prevent"])),title:s.isOuterComponent?"Add new component":"Add new item/entry"},[o.createVNode(a,{iconClass:(s.isOuterComponent,"icon-plus")},null,8,["iconClass"])],10,ip)]),o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon use-icon-as-background button primary",{disabled:s.editing||!s.hasSettings}]),href:s.editing?null:"#",onClick:t[7]||(t[7]=o.withModifiers((...l)=>s.editSettings&&s.editSettings(...l),["prevent"])),title:"Edit settings for "+n.componentName},[o.createVNode(a,{iconClass:s.isOuterComponent?"icon-cogs":"icon-cog"},null,8,["iconClass"])],10,sp)]),o.createElementVNode("li",null,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon use-icon-as-background button button-delete",{disabled:s.editing||!n.allowDeleteComponent}]),href:"#",onClick:t[8]||(t[8]=o.withModifiers((...l)=>s.deleteComponent&&s.deleteComponent(...l),["prevent"])),title:"Delete "+n.componentName+" (and its content)"},[o.createVNode(a,{iconClass:"icon-trash"})],10,ap)]),s.isOuterComponent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("li",lp,[o.createElementVNode("a",{class:o.normalizeClass(["icon-hexagon use-icon-as-background button cancel",{disabled:!s.editing}]),href:"#",onClick:t[9]||(t[9]=o.withModifiers((...l)=>s.cancelComponent&&s.cancelComponent(...l),["prevent"])),title:"Cancel editing (changes will not be saved)"},[o.createVNode(a,{iconClass:"icon-cancel"})],2)])),s.isOuterComponent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("li",cp,[s.editing?(o.openBlock(),o.createElementBlock("a",{key:0,class:"icon-hexagon use-icon-as-background button confirm",href:"#",onClick:t[10]||(t[10]=o.withModifiers((...l)=>s.saveComponent&&s.saveComponent(...l),["prevent"])),title:"Save changes of "+n.componentName},[o.createVNode(a,{iconClass:"icon-check"})],8,dp)):(o.openBlock(),o.createElementBlock("a",{key:1,class:o.normalizeClass(["icon-hexagon use-icon-as-background button confirm",{disabled:s.editModeContext.settings.isEditing(i.componentIdentifier)}]),href:"#",onClick:t[11]||(t[11]=o.withModifiers((...l)=>s.editComponent&&s.editComponent(...l),["prevent"])),title:"Edit content for "+n.componentName},[o.createVNode(a,{iconClass:"icon-edit"})],10,up))]))],40,rp),[[o.vShow,s.active]])],64)),o.renderSlot(e.$slots,"default",{editing:s.editing})]),_:3},8,["class","onClick","title","data-identifier"])}const Ae=V(Qh,[["render",mp]]),Y={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 e;if(this.$refs.editComponentWrapper)(e=this.$refs.editComponentWrapper)==null||e.addUpdateHandlerProvider(this.updateHandlerProvider);else{const t=Ve(this.$parent);t&&(t.addEditStateListener(n=>this.editing=n),t.addUpdateHandlerProvider(this.updateHandlerProvider),t.setAddHandlerProvider(this.addHandlerProvider))}this.mainSidebarContext=!!Zh(this),this.settingsContext=!!Kh(this)},updateHandlerProvider(){return{}}}},fp={name:"CmdHeadline",mixins:[Y],data(){return{editableHeadlineText:null,editablePreHeadlineText:null}},props:{headlineText:{type:String,required:!1},headlineLevel:{type:[String,Number],default:"2"},preHeadlineText:{type:String,required:!1},textAlign:{type:String,default:null,validator(e){return e==="left"||e==="center"||e==="right"}},cmdIcon:{type:Object,required:!1}},computed:{componentActive(){var e;return(e=this.editModeContext)==null?void 0:e.system.isActiveComponent(Fe(Ve(this)))},headlineComponentPath(){return this.componentPath||["props","cmdHeadline"]},headlineTag(){return this.headlineLevel?"h"+this.headlineLevel:""},headlineTextAlign(){return this.textAlign?"text-"+this.textAlign:""}},methods:{updateHandlerProvider(){const e=this.editableHeadlineText,t=this.editablePreHeadlineText,n=this.headlineLevel;return Q(this,{update(r){r.headlineText=e,r.preHeadlineText=t,r.headlineLevel=n}})},onAddItem(){this.$refs.editComponentWrapper.editComponent()}},watch:{headlineText:{handler(){this.editableHeadlineText=this.headlineText},immediate:!0},preHeadlineText:{handler(){this.editablePreHeadlineText=this.preHeadlineText},immediate:!0}}},hp={class:"pre-headline-text-wrapper"},pp=["innerHTML"],gp=["innerHTML"],yp={key:1},bp=["innerHTML"],kp={key:2},Cp={class:"pre-headline-text"},wp=[o.createElementVNode("span",{class:"icon-plus"},null,-1),o.createElementVNode("span",null,"Add new headline",-1)];function xp(e,t,n,r,i,s){var c;const a=z,l=X,d=Ae;return!e.editModeContext||e.settingsContext||e.mainSidebarContext||n.headlineText?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["cmd-headline",{"has-pre-headline-text":n.preHeadlineText,"has-icon":(c=n.cmdIcon)==null?void 0:c.iconClass},s.headlineTextAlign])},[n.preHeadlineText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.headlineText?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.headlineTag),{key:0},{default:o.withCtx(()=>[n.cmdIcon?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdIcon)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("span",hp,[o.createElementVNode("span",{class:"pre-headline-text",innerHTML:n.preHeadlineText},null,8,pp),n.headlineText?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.headlineText},null,8,gp)):(o.openBlock(),o.createElementBlock("span",yp,[o.renderSlot(e.$slots,"default")]))])]),_:3})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.headlineTag),{key:1},{default:o.withCtx(()=>[n.cmdIcon?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdIcon)),null,16)):o.createCommentVNode("",!0),n.headlineText?(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:n.headlineText},null,8,bp)):(o.openBlock(),o.createElementBlock("span",kp,[o.renderSlot(e.$slots,"default")]))]),_:3}))],2)):(o.openBlock(),o.createBlock(d,{key:1,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdHeadline",componentProps:{headlineText:n.headlineText,headlineLevel:n.headlineLevel},componentPath:s.headlineComponentPath,allowDeleteComponent:!!n.headlineText},{default:o.withCtx(u=>[u.editing?(o.openBlock(),o.createBlock(l,{key:0,element:"input",type:"text",class:o.normalizeClass(["edit-mode","headline","h"+n.headlineLevel,s.headlineTextAlign]),labelText:"Headline",showLabel:!1,placeholder:"Headline",modelValue:i.editableHeadlineText,"onUpdate:modelValue":t[0]||(t[0]=m=>i.editableHeadlineText=m)},null,8,["class","modelValue"])):n.headlineText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.cmdIcon?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdIcon)),null,16)):o.createCommentVNode("",!0),n.preHeadlineText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.headlineText?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.headlineTag),{key:0},{default:o.withCtx(()=>[n.cmdIcon?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdIcon)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("span",Cp,o.toDisplayString(n.preHeadlineText),1),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(n.headlineText),1)])]),_:3})):o.createCommentVNode("",!0)],64)):n.headlineText?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.headlineTag),{key:2},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(n.headlineText),1)])]),_:3})):o.createCommentVNode("",!0)],64)):s.componentActive?(o.openBlock(),o.createElementBlock("button",{key:2,type:"button",class:"button confirm",onClick:t[1]||(t[1]=(...m)=>s.onAddItem&&s.onAddItem(...m))},wp)):o.createCommentVNode("",!0)]),_:3},8,["componentProps","componentPath","allowDeleteComponent"]))}const U=V(fp,[["render",xp]]),Bp={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(e){return e===""||e==="error"||e==="warning"||e==="success"||e==="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 e=document.getElementById(this.relatedId);e&&(document.querySelector(this.scrollContainer).addEventListener("scroll",this.hideTooltip),document.addEventListener("keyup",this.hideTooltipOnEsc),this.toggleVisibilityByClick?e.addEventListener("click",this.toggleTooltipVisibility):(e.addEventListener("mouseenter",this.showTooltip),e.addEventListener("mouseleave",this.hideTooltip)))}},methods:{toggleTooltipVisibility(e){this.getPointerPosition(e),this.tooltipVisibility=!this.tooltipVisibility},showTooltip(e){this.delayToShowTooltip>0?setTimeout(()=>{this.toggleVisibility(e)},this.delayToShowTooltip):this.toggleVisibility(e)},toggleVisibility(e){this.toggleVisibilityByClick||(this.tooltipVisibility=!0),this.getPointerPosition(e)},hideTooltipOnEsc(e){this.allowEscapeKey&&(e.key==="Escape"||e.key==="Esc")&&this.hideTooltip()},hideTooltip(){this.tooltipVisibility=!1},getPointerPosition(e){this.pointerX=e.clientX,this.pointerY=e.clientY}},unmounted(){if(this.relatedId){const e=document.getElementById(this.relatedId);e&&(document.removeEventListener("scroll",this.hideTooltip),document.removeEventListener("keyup",this.hideTooltipOnEsc),this.toggleVisibilityByClick?e.removeEventListener("click",this.toggleTooltipVisibility):(e.removeEventListener("mouseenter",this.showTooltip),e.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"})}}},_p={key:0,class:"headline-wrapper"},Ep=["title"];function Sp(e,t,n,r,i,s){const a=U,l=z;return i.tooltipVisibility?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["cmd-tooltip",n.validationStatus]),ref:"tooltip"},[n.cmdHeadline||n.iconClose.show?(o.openBlock(),o.createElementBlock("div",_p,[n.cmdHeadline?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdHeadline)),null,16)):o.createCommentVNode("",!0),n.iconClose.show&&n.toggleVisibilityByClick?(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",onClick:t[0]||(t[0]=o.withModifiers((...d)=>s.hideTooltip&&s.hideTooltip(...d),["prevent"])),title:n.iconClose.tooltip},[o.createVNode(l,{iconClass:n.iconClose.iconClass,type:n.iconClose.iconType},null,8,["iconClass","type"])],8,Ep)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(n.tooltipText),1)])],2)):o.createCommentVNode("",!0)}const La=V(Bp,[["render",Sp]]),oe={props:{i18n:{type:[Object,Function],default:()=>({})}},methods:{getMessage(e,...t){if(!e)return"";let n=this.i18n;if(typeof this.i18n=="function"&&(n=this.i18n.call(this,e,t),typeof n!="object"))return n;let r=n[e]||this.getDefaultMessageProperty(e)||e;return typeof r=="function"?r.call(this,t||[]):(Array.isArray(t)&&t.length&&t.forEach((i,s)=>r=r.replace("{"+s+"}",i)),r)},getDefaultMessageProperty(e){var n;if(Object.hasOwn(this,"defaultMessageProperties")&&this.defaultMessageProperties&&this.defaultMessageProperties[e])return this.defaultMessageProperties[e];const t=Object.hasOwn(this,"fieldValidationDefaultMessageProperties")?"fieldValidationDefaultMessageProperties":null;return t&&((n=this[t])!=null&&n[e])?this[t][e]:null}}},Tp={name:"CmdListOfRequirements",mixins:[oe,{data(){return{defaultMessageProperties:{"list_of_requirements.headline.requirement_for_input":"Requirement for input","list_of_requirements.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("list_of_requirements.headline.requirements_for_input"):this.getMessage("list_of_requirements.headline.requirement_for_input")}}},Op={class:"cmd-list-of-requirements"},Np=o.createElementVNode("br",null,null,-1),Vp=o.createElementVNode("hr",null,null,-1),Fp=["href","target"],Ap={key:1};function Pp(e,t,n,r,i,s){var d,c,u;const a=U,l=z;return o.openBlock(),o.createElementBlock("div",Op,[n.showHeadline?(o.openBlock(),o.createBlock(a,{key:0,"headline-level":n.cmdHeadline.headlineLevel},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.headlineRequirements),1),n.labelText?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Np,o.createElementVNode("em",null,o.toDisplayString(n.labelText),1)],64)):o.createCommentVNode("",!0)]),_:1},8,["headline-level"])):o.createCommentVNode("",!0),o.createElementVNode("dl",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.inputRequirements,(m,g)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:g},[o.createElementVNode("dt",{"aria-live":"assertive",class:o.normalizeClass(m.valid(n.inputModelValue,n.inputAttributes)?"success":"error")},o.toDisplayString(m.message)+":",3),o.createElementVNode("dd",{class:o.normalizeClass(m.valid(n.inputModelValue,n.inputAttributes)?"success":"error")},[o.createVNode(l,{"aria-live":"assertive",iconClass:m.valid(n.inputModelValue,n.inputAttributes)?n.iconSuccess.iconClass:n.iconError.iconClass,type:m.valid(n.inputModelValue,n.inputAttributes)?n.iconSuccess.iconType:n.iconError.iconType,title:m.valid(n.inputModelValue,n.inputAttributes)?n.iconSuccess.tooltip:n.iconError.tooltip},null,8,["iconClass","type","title"])],2)],64))),128))]),n.helplink&&n.helplink.show?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Vp,n.helplink.url?(o.openBlock(),o.createElementBlock("a",{key:0,href:n.helplink.url,target:n.helplink.target,onClick:t[0]||(t[0]=o.withModifiers(()=>{},["prevent"]))},[(d=n.helplink.icon)!=null&&d.iconClass?(o.openBlock(),o.createBlock(l,{key:0,class:o.normalizeClass((c=n.helplink.icon)==null?void 0:c.iconClass),title:(u=n.helplink.icon)==null?void 0:u.tooltip},null,8,["class","title"])):o.createCommentVNode("",!0),n.helplink.text?(o.openBlock(),o.createElementBlock("span",Ap,o.toDisplayString(n.helplink.text),1)):o.createCommentVNode("",!0)],8,Fp)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)])}const Lp=V(Tp,[["render",Pp]]),Ip={name:"CmdTooltipForFormElements",props:{relatedId:{type:String,default:""},validationStatus:{type:String,default:"",validator(e){return e===""||e==="error"||e==="warning"||e==="success"||e==="info"}},cmdListOfRequirements:{type:Object,required:!1}},computed:{cmdListOfRequirementsProperties(){return{showRequirements:!0,validationTooltip:"",inputRequirements:[],inputAttributes:{},showHeadline:!0,inputModelValue:"",helplink:{},labelText:"",...this.cmdListOfRequirements}}},methods:{hideTooltip(){this.$refs.tooltip.hideTooltip()}}};function Mp(e,t,n,r,i,s){const a=Lp,l=La;return o.openBlock(),o.createBlock(l,{ref:"tooltip",class:o.normalizeClass(["cmd-tooltip-for-form-elements box",n.validationStatus]),relatedId:n.relatedId,"toggle-visibility-by-click":!0},{default:o.withCtx(()=>[s.cmdListOfRequirementsProperties.showRequirements?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},s.cmdListOfRequirementsProperties)),null,16)):o.createCommentVNode("",!0)]),_:1},8,["class","relatedId"])}const sr=V(Ip,[["render",Mp]]),ar={data(){return{defaultMessageProperties:{"form_element.validation_tooltip.an_error_occurred":"An error occurred!","form_element.validation_tooltip.information_is_filled_correctly":"This information is filled correctly!","form_element.validation_tooltip.caps_lock_is_activated":"Attention: Caps lock is activated!","form_element.validation_tooltip.open_field_requirements":"Open field requirements!","form_element.validation_tooltip.is_valid_email":"Is valid e-mail-address"}}}},lr={data(){return{validationStatus:"",capsLockActivated:!1}},mixins:[oe,{data(){return{fieldValidationDefaultMessageProperties:{"field_validation.open_detailed_help":"Open detailed help!","field_validation.information_not_filled_correctly":"This information is not filled correctly!","field_validation.information_filled_correctly":"This information is filled correctly!","field_validation.caps_lock_is_activated":"Attention: Caps lock is activated!","field_validation.required_field_is_filled":"Required field is filled!","field_validation.field_contains_special_character":"Field contains special character","field_validation.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{validationTooltip:this.validationTooltip,inputRequirements:this.inputRequirements,inputAttributes:this.$attrs,inputModelValue:this.modelValue,labelText:this.labelText,i18n:this.i18n,...this.cmdListOfRequirements}},getValidationMessage(){if(this.validationStatus!==""){if(this.validationStatus==="error")return this.validationMessage?this.validationMessage:this.getMessage("field_validation.information_not_filled_correctly");if(this.validationStatus==="warning"&&this.capsLockActivated)return this.getMessage("field_validation.caps_lock_is_activated");if(this.validationStatus==="success")return this.getMessage("field_validation.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 e=[];if(this.$attrs.required||Object.hasOwn(this,"required")&&this.required){const t=Object.hasOwn(this,"required")?this.required:this.$attrs.required;e.push({message:this.getRequirementMessage(),valid(n,r){return!r.required&&!t||n!=null&&String(n).length>0}})}return this.$attrs.minlength&&e.push({message:this.getMessage("field_validation.input_has_minimum_length")+" ("+this.modelValue.length+"/"+this.$attrs.minlength+")",valid(t,n){return t.length>=n.minlength}}),[...e,...this.additionalStandardRequirements()||[],...this.customRequirements||[]]}},methods:{checkForCapsLock(e){["password","number","url","email"].includes(this.$attrs.type)&&e.getModifierState("CapsLock")?(this.capsLockActivated=!0,this.validationStatus="warning"):this.capsLockActivated&&this.validationStatus==="warning"&&(this.capsLockActivated=!1,this.validationStatus="")},additionalStandardRequirements(){return[]},getRequirementMessage(){return this.getMessage("field_validation.required_field_is_filled")}},watch:{validationStatus:{handler(){this.$emit("validation-status-change",this.validationStatus)}}}};function tt(){let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t==="x"?n:n&3|8).toString(16)})}function cr(){return"cmd-"+tt()}const un={props:{id:{type:String,required:!1}},computed:{htmlId(){return this.id||cr()}},methods:{buildHtmlId(...e){return e.map(t=>t.replace(/\s/g,"")).join("")}}},dr={};function Rp(e="defaultSequence"){const t=dr[e]||0;return dr[e]=t+1,dr[e]}const ur={data(){return{tooltip:!1,tooltipId:"tooltip-"+Rp()}},props:{useCustomTooltip:{type:Boolean,default:!0},allowEscapeKey:{type:Boolean,default:!0}}},Dp=["color","date","datetime-local","file","number","range"],jp={inheritAttrs:!1,name:"CmdFormElement",mixins:[oe,ar,lr,un,ur],data(){return{errorOccurred:0}},props:{modelValue:{type:[String,Boolean,Array,Number],default:""},element:{type:String,validator(e){return e==="input"||e==="select"||e==="textarea"||e==="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},stretchField:{type:Boolean,default:!1},status:{type:String,required:!1,validator(e){return e===""||e==="error"||e==="warning"||e==="success"||e==="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 e=["name","required","readonly","disabled","autofocus"],t={input:[...e,"type","minlength","pattern","min","max","multiple","step","autocomplete","placeholder"],select:[...e,"multiple"],textarea:[...e,"placeholder"]},n={};return t[this.element]&&Object.entries(this.$attrs).filter(([r])=>t[this.element].includes(r)).forEach(([r,i])=>n[r]=i),n},buttonAttrs(){var t,n;const e={...this.$attrs};return(t=this.nativeButton.icon)!=null&&t.tooltip&&(e.title=(n=this.nativeButton.icon)==null?void 0:n.tooltip),e},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("form_element.validation_tooltip.an_error_occurred"):this.validationStatus==="success"?this.getMessage("form_element.validation_tooltip.information_is_filled_correctly"):this.capsLockActivated?this.getMessage("form_element.validation_tooltip.caps_lock_is_activated"):this.getMessage("form_element.validation_tooltip.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 e;(e=this.$refs.label.querySelector("input, select, textarea"))==null||e.focus()},additionalStandardRequirements(){const e=[];return this.$attrs.type==="email"&&e.push({message:this.getMessage("form_element.validation_tooltip.is_valid_email"),valid:()=>this.$refs.input.checkValidity()}),e},getDomElement(){return this.$refs.label},getMaxLength(){return this.$attrs.element==="textarea"?this.$attrs.maxlength>0?this.$attrs.maxlength:5e3:Dp.includes(this.$attrs.type)?null:this.$attrs.maxlength>0?this.$attrs.maxlength:255},validateInput(e){var n;((n=e.target.closest("form"))==null?void 0:n.dataset.useValidation)==="true"&&(!["checkbox","radio"].includes(this.$attrs.type)&&this.modelValue&&(this.validationStatus="success"),typeof e.target.checkValidity=="function"&&!e.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(e){this.validateInput(e),this.closeTooltipOnBlur(),this.$emit("blur",e)},onInput(e){this.validateInput(e),this.$emit("update:modelValue",e.target.value)},onChange(e){if(typeof this.modelValue=="boolean")this.$emit("update:modelValue",e.target.checked);else if(typeof this.modelValue=="string")this.$emit("update:modelValue",e.target.value);else if(this.modelValue!==void 0){let t=[...this.modelValue];e.target.checked?t.push(e.target.value):t=t.filter(n=>n!==e.target.value),this.$emit("update:modelValue",t)}},datalistFocus(){this.datalist&&this.$refs.label.focus()},showPassword(){const e=this.$refs.input,t=e.value;e.nextElementSibling.classList.replace(this.iconPasswordVisible.iconClass,this.iconPasswordInvisible.iconClass),e.setAttribute("type","text"),e.setAttribute("value",t)},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(e){this.$emit("submit",e)}},watch:{status:{handler(){this.validationStatus=this.status||""},immediate:!0}}},qp=["for","title"],zp=["innerHTML"],Hp={key:2,"aria-hidden":"true"},Up=["title","aria-errormessage","id"],Wp={key:1,class:"flex-container inner-input-wrapper"},Gp=["id","autocomplete","list","value","maxlength"],Jp=["title"],Kp=["id"],Zp=["value"],Xp=["checked","value","id","disabled","aria-invalid"],Qp=["innerHTML"],Yp={key:2},$p={class:"switch-label-wrapper"},vp=["checked","value","id","disabled","aria-invalid"],eg={class:"label-text"},tg={class:"label-text"},ng=["innerHTML"],og={key:0},rg=["id"],ig=["value","selected"],sg=["id","value","maxlength"],ag={key:6,class:"characters-left-wrapper"},lg={key:0},cg={key:7,class:"search-field-wrapper flex-container no-gap"},dg=["id","maxlength","value"],ug=["title"],mg=["title"],fg={key:1};function hg(e,t,n,r,i,s){var d,c,u,m,g,f,h,y,p,C,T,k,A,N,b,S,F,q,L,Be,_e,Ee,Se,Te;const a=z,l=sr;return n.element==="input"||n.element==="select"||n.element==="textarea"?(o.openBlock(),o.createElementBlock("label",{key:0,class:o.normalizeClass(["cmd-form-element",e.validationStatus,e.$attrs.class,{disabled:e.$attrs.disabled,inline:n.displayLabelInline,"stretch-field":n.stretchField,"toggle-switch":n.toggleSwitch,colored:n.colored,"has-state":e.validationStatus}]),for:e.htmlId,title:e.$attrs.title,ref:"label"},[(n.labelText||e.$slots.labeltext)&&e.$attrs.type!=="checkbox"&&e.$attrs.type!=="radio"?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["label-text",{hidden:!n.showLabel}])},[o.createElementVNode("span",null,[n.labelText?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.labelText},null,8,zp)):o.renderSlot(e.$slots,"labeltext",{key:1}),e.$attrs.required!=null&&e.$attrs.required!==!1?(o.openBlock(),o.createElementBlock("sup",Hp,"*")):o.createCommentVNode("",!0)]),(e.$attrs.required||e.inputRequirements.length)&&n.showStatusIcon?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",onClick:t[0]||(t[0]=o.withModifiers(()=>{},["prevent"])),title:s.validationTooltip,"aria-errormessage":e.tooltipId,"aria-live":"assertive",id:e.tooltipId},[o.createVNode(a,{iconClass:e.getStatusIconClass},null,8,["iconClass"])],8,Up)):o.createCommentVNode("",!0),e.useCustomTooltip&&(e.validationStatus===""||e.validationStatus==="error")?(o.openBlock(),o.createBlock(l,{key:1,ref:"tooltip",validationStatus:e.validationStatus,relatedId:e.tooltipId,cmdListOfRequirements:e.listOfRequirements,role:e.validationStatus==="error"?"alert":"dialog"},null,8,["validationStatus","relatedId","cmdListOfRequirements","role"])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),e.$attrs.type!=="checkbox"&&e.$attrs.type!=="radio"&&e.$attrs.type!=="search"?(o.openBlock(),o.createElementBlock("span",Wp,[n.fieldIconClass?(o.openBlock(),o.createBlock(a,{key:0,class:"place-inside",iconClass:n.fieldIconClass},null,8,["iconClass"])):o.createCommentVNode("",!0),n.element==="input"&&e.$attrs.type!=="search"?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:1},s.elementAttributes,{id:e.htmlId,class:n.inputClass,onFocus:t[1]||(t[1]=P=>e.tooltip=!0),onBlur:t[2]||(t[2]=(...P)=>s.onBlur&&s.onBlur(...P)),onInput:t[3]||(t[3]=(...P)=>s.onInput&&s.onInput(...P)),onMouseover:t[4]||(t[4]=(...P)=>s.datalistFocus&&s.datalistFocus(...P)),onKeyup:t[5]||(t[5]=(...P)=>e.checkForCapsLock&&e.checkForCapsLock(...P)),onChange:t[6]||(t[6]=P=>e.$emit("change",P)),autocomplete:s.autocomplete,list:n.datalist?n.datalist.id:null,value:n.modelValue,maxlength:s.getMaxLength(),ref:"input"}),null,16,Gp)):o.createCommentVNode("",!0),e.$attrs.type==="password"?(o.openBlock(),o.createElementBlock("a",{key:2,href:"#",class:"place-inside",onMousedown:t[7]||(t[7]=o.withModifiers((...P)=>s.showPassword&&s.showPassword(...P),["prevent"])),onMouseup:t[8]||(t[8]=o.withModifiers((...P)=>s.hidePassword&&s.hidePassword(...P),["prevent"])),onMouseleave:t[9]||(t[9]=o.withModifiers((...P)=>s.hidePassword&&s.hidePassword(...P),["prevent"])),onClick:t[10]||(t[10]=o.withModifiers(()=>{},["prevent"])),title:n.iconPasswordVisible.tooltip},[o.createVNode(a,{iconClass:n.iconPasswordVisible.iconClass},null,8,["iconClass"])],40,Jp)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.datalist&&n.datalist.options.length?(o.openBlock(),o.createElementBlock("datalist",{key:2,id:n.datalist.id},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.datalist.options,(P,de)=>(o.openBlock(),o.createElementBlock("option",{key:de,value:P},null,8,Zp))),128))],8,Kp)):n.element==="input"&&(e.$attrs.type==="checkbox"||e.$attrs.type==="radio")?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[n.onLabel&&n.offLabel?n.onLabel&&n.offLabel?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("span",$p,[o.createElementVNode("input",o.mergeProps(s.elementAttributes,{onChange:t[13]||(t[13]=(...P)=>s.onChange&&s.onChange(...P)),onBlur:t[14]||(t[14]=(...P)=>s.onBlur&&s.onBlur(...P)),checked:s.isChecked,value:n.inputValue,class:{inputClass:n.inputClass,validationStatus:e.validationStatus},id:e.htmlId,disabled:e.$attrs.disabled,"aria-invalid":e.validationStatus==="error"}),null,16,vp),o.createElementVNode("span",eg,o.toDisplayString(n.onLabel),1),o.createElementVNode("span",tg,o.toDisplayString(n.offLabel),1)]),n.labelText?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["label-text",{hidden:!n.showLabel}])},[o.createElementVNode("span",{innerHTML:n.labelText},null,8,ng),e.$attrs.required?(o.openBlock(),o.createElementBlock("sup",og,"*")):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0)],64)):o.renderSlot(e.$slots,"default",{key:2}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("input",o.mergeProps(s.elementAttributes,{onChange:t[11]||(t[11]=(...P)=>s.onChange&&s.onChange(...P)),onBlur:t[12]||(t[12]=(...P)=>s.onBlur&&s.onBlur(...P)),checked:s.isChecked,value:n.inputValue,class:[n.inputClass,e.validationStatus,s.toggleSwitchIconClass,{"replace-input-type":n.replaceInputType}],id:e.htmlId,disabled:e.$attrs.disabled,"aria-invalid":e.validationStatus==="error"}),null,16,Xp),n.labelText||e.$slots.labeltext?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["label-text",{hidden:!n.showLabel}])},[o.createElementVNode("span",null,[n.labelText?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.labelText},null,8,Qp)):o.renderSlot(e.$slots,"labeltext",{key:1}),e.$attrs.required?(o.openBlock(),o.createElementBlock("sup",Yp,"*")):o.createCommentVNode("",!0)])],2)):o.createCommentVNode("",!0)],64))],64)):o.createCommentVNode("",!0),n.element==="select"?(o.openBlock(),o.createElementBlock("select",o.mergeProps({key:4},s.elementAttributes,{id:e.htmlId,onBlur:t[15]||(t[15]=(...P)=>s.onBlur&&s.onBlur(...P)),onChange:t[16]||(t[16]=P=>e.$emit("update:modelValue",P.target.value))}),[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.selectOptions,(P,de)=>(o.openBlock(),o.createElementBlock("option",{key:de,value:P.value,selected:P.value===n.modelValue},o.toDisplayString(P.text),9,ig))),128))],16,rg)):o.createCommentVNode("",!0),n.element==="textarea"?(o.openBlock(),o.createElementBlock("textarea",o.mergeProps({key:5},s.elementAttributes,{id:e.htmlId,value:n.modelValue,maxlength:s.getMaxLength(),onInput:t[17]||(t[17]=(...P)=>s.onInput&&s.onInput(...P)),onFocus:t[18]||(t[18]=P=>e.tooltip=!0),onBlur:t[19]||(t[19]=(...P)=>s.onBlur&&s.onBlur(...P))}),null,16,sg)):o.createCommentVNode("",!0),n.element==="textarea"&&n.showCharactersTextarea?(o.openBlock(),o.createElementBlock("span",ag,[n.textCharactersLeft?(o.openBlock(),o.createElementBlock("span",lg,o.toDisplayString(n.textCharactersLeft),1)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:o.normalizeClass(["characters-left",{error:s.charactersLeft===0}])},o.toDisplayString(s.charactersLeft),3)])):n.element==="input"&&e.$attrs.type==="search"?(o.openBlock(),o.createElementBlock("span",cg,[n.fieldIconClass?(o.openBlock(),o.createBlock(a,{key:0,class:"place-inside",iconClass:n.fieldIconClass},null,8,["iconClass"])):o.createCommentVNode("",!0),o.createElementVNode("input",o.mergeProps(s.elementAttributes,{id:e.htmlId,onInput:t[20]||(t[20]=(...P)=>s.onInput&&s.onInput(...P)),maxlength:s.getMaxLength(),value:n.modelValue}),null,16,dg),n.showSearchButton?(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:o.normalizeClass(["button no-flex",{disabled:e.$attrs.disabled}]),title:n.iconSearch.tooltip,onClick:t[21]||(t[21]=o.withModifiers((...P)=>s.executeSearch&&s.executeSearch(...P),["prevent"]))},[o.createVNode(a,{iconClass:n.iconSearch.iconClass},null,8,["iconClass"])],10,ug)):o.createCommentVNode("",!0),(d=n.iconDelete)!=null&&d.show?(o.openBlock(),o.createElementBlock("a",{key:2,href:"#",onClick:t[22]||(t[22]=o.withModifiers(P=>e.$emit("update:modelValue",""),["prevent"])),title:(c=n.iconDelete)==null?void 0:c.tooltip},[o.createVNode(a,{iconClass:(u=n.iconDelete)==null?void 0:u.iconClass,type:(m=n.iconDelete)==null?void 0:m.iconType},null,8,["iconClass","type"])],8,mg)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],10,qp)):n.element==="button"?(o.openBlock(),o.createElementBlock("button",o.mergeProps({key:1,class:"button"},s.buttonAttrs,{onClick:t[23]||(t[23]=(...P)=>s.submit&&s.submit(...P))}),[(f=(g=n.nativeButton)==null?void 0:g.icon)!=null&&f.show&&(((y=(h=n.nativeButton)==null?void 0:h.icon)==null?void 0:y.position)==="before"||!((C=(p=n.nativeButton)==null?void 0:p.icon)!=null&&C.position))?(o.openBlock(),o.createBlock(a,{key:0,iconClass:(k=(T=n.nativeButton)==null?void 0:T.icon)==null?void 0:k.iconClass,type:(N=(A=n.nativeButton)==null?void 0:A.icon)==null?void 0:N.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0),(b=n.nativeButton)!=null&&b.icon&&((S=n.nativeButton)!=null&&S.text)?(o.openBlock(),o.createElementBlock("span",fg,o.toDisplayString(n.nativeButton.text),1)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(n.nativeButton.text),1)],64)),(q=(F=n.nativeButton)==null?void 0:F.icon)!=null&&q.show&&((Be=(L=n.nativeButton)==null?void 0:L.icon)==null?void 0:Be.position)==="after"?(o.openBlock(),o.createBlock(a,{key:3,iconClass:(Ee=(_e=n.nativeButton)==null?void 0:_e.icon)==null?void 0:Ee.iconClass,type:(Te=(Se=n.nativeButton)==null?void 0:Se.icon)==null?void 0:Te.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0)],16)):o.createCommentVNode("",!0)}const X=V(jp,[["render",hg]]),pg={name:"CmdAddressDataItem",mixins:[Y],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(e){if(e.type==="company")return"org";if(e.type==="address"){if(e.streetNo)return"street-address";if(e.zip)return"postal-code";if(e.city)return"locality";if(e.country)return"country-name"}return null},inputType(e){return e.type==="phone"?"tel":e.type==="email"?"email":e.type==="url"?"url":"text"},locateAddress(e){return"https://www.google.com/maps/place/"+e.streetNo+", "+e.zip+" "+e.city},getHref(e){return e.type==="phone"?"tel:"+e.href:e.type==="email"?"mailto:"+e.href:e.type==="url"?e.href:null},addHandlerProvider(){const e={type:"default",iconClass:"icon-mail",data:"Your data",labelText:"Labeltext",tooltip:"Tooltip",href:"#"};return Q(this,{item(){return e}})},updateHandlerProvider(){const e=this.editableAddressEntry;return Q(this,{update(t){typeof e=="object"?Object.entries(e).forEach(([n,r])=>t[n]=r):t.href==null?t.data=e:t.href=e}})}},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}}},gg=["id"],yg={key:1},bg=["href","target","title","data-type"],kg=["innerHTML"],Cg={key:1},wg=["href","title"],xg={class:"street-address"},Bg=o.createElementVNode("br",null,null,-1),_g={key:0,class:"postal-code"},Eg={key:1,class:"locality"},Sg=o.createElementVNode("br",null,null,-1),Tg={key:0},Og={key:3,class:"country-name"},Ng={class:"street-address"},Vg=o.createElementVNode("br",null,null,-1),Fg={key:0,class:"postal-code"},Ag={key:1,class:"locality"},Pg=o.createElementVNode("br",null,null,-1),Lg=o.createElementVNode("br",null,null,-1),Ig={key:3,class:"country-name"};function Mg(e,t,n,r,i,s){const a=z,l=X,d=o.resolveDirective("telephone");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("dt",{class:o.normalizeClass(["cmd-address-data-item",{address:n.addressEntry.type==="address"}]),id:n.addressEntry.id},[n.addressEntry.iconClass&&n.showLabelIcons?(o.openBlock(),o.createBlock(a,{key:0,iconClass:n.addressEntry.iconClass,type:n.addressEntry.iconType,tooltip:n.addressEntry.labelText},null,8,["iconClass","type","tooltip"])):o.createCommentVNode("",!0),n.showLabelTexts?(o.openBlock(),o.createElementBlock("span",yg,o.toDisplayString(n.addressEntry.labelText),1)):o.createCommentVNode("",!0)],10,gg),n.addressEntry.type!=="address"&&(n.addressEntry.data||n.addressEntry.href)?(o.openBlock(),o.createElementBlock("dd",{key:0,class:o.normalizeClass(s.vCardClass(n.addressEntry))},[e.editing?(o.openBlock(),o.createBlock(l,{key:1,element:"input",type:s.inputType(n.addressEntry),class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry,"onUpdate:modelValue":t[0]||(t[0]=c=>i.editableAddressEntry=c)},null,8,["type","labelText","placeholder","modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.addressEntry.href?o.withDirectives((o.openBlock(),o.createElementBlock("a",{key:0,href:s.getHref(n.addressEntry),target:n.addressEntry.type==="url"?"_blank":null,title:n.addressEntry.tooltip,"data-type":n.addressEntry.type},[o.createTextVNode(o.toDisplayString(n.addressEntry.data||n.addressEntry.href),1)],8,bg)),[[d,n.addressEntry.href]]):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:n.addressEntry.data},null,8,kg))],64))],2)):n.addressEntry.name==="address"?(o.openBlock(),o.createElementBlock("dd",Cg,[n.linkGoogleMaps&&!e.editing?(o.openBlock(),o.createElementBlock("a",{key:0,href:s.locateAddress(n.addressEntry),target:"google-maps",title:n.addressEntry.tooltip},[n.addressEntry.streetNo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",xg,o.toDisplayString(n.addressEntry.streetNo),1),Bg],64)):o.createCommentVNode("",!0),n.addressEntry.zip||n.addressEntry.city?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(n.showCityBeforeZip?"city-zip":"zip-city")},[n.addressEntry.zip?(o.openBlock(),o.createElementBlock("span",_g,o.toDisplayString(n.addressEntry.zip),1)):o.createCommentVNode("",!0),n.addressEntry.city?(o.openBlock(),o.createElementBlock("span",Eg,[o.createTextVNode(o.toDisplayString(n.addressEntry.city),1),n.addressEntry.state?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(n.addressEntry.state),1)],64)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),Sg,n.addressEntry.miscInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",null,o.toDisplayString(n.addressEntry.miscInfo),1),n.addressEntry.country?(o.openBlock(),o.createElementBlock("br",Tg)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),n.addressEntry.country?(o.openBlock(),o.createElementBlock("span",Og,o.toDisplayString(n.addressEntry.country),1)):o.createCommentVNode("",!0)],8,wg)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.editing?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(l,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry.streetNo,"onUpdate:modelValue":t[1]||(t[1]=c=>i.editableAddressEntry.streetNo=c)},null,8,["labelText","placeholder","modelValue"]),o.createElementVNode("div",{class:o.normalizeClass([n.showCityBeforeZip?"city-zip":"zip-city","input-wrapper"])},[o.createVNode(l,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry.zip,"onUpdate:modelValue":t[2]||(t[2]=c=>i.editableAddressEntry.zip=c)},null,8,["labelText","placeholder","modelValue"]),o.createVNode(l,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry.city,"onUpdate:modelValue":t[3]||(t[3]=c=>i.editableAddressEntry.city=c)},null,8,["labelText","placeholder","modelValue"])],2),o.createVNode(l,{element:"input",type:"text",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,placeholder:n.addressEntry.labelText,modelValue:i.editableAddressEntry.miscInfo,"onUpdate:modelValue":t[4]||(t[4]=c=>i.editableAddressEntry.miscInfo=c)},null,8,["labelText","placeholder","modelValue"]),o.createVNode(l,{element:"select",class:"edit-mode","show-label":!1,labelText:n.addressEntry.labelText,selectOptions:[{text:"Germany",value:"de"},{text:"United Kingdom",value:"uk"}],modelValue:i.editableAddressEntry.country,"onUpdate:modelValue":t[5]||(t[5]=c=>i.editableAddressEntry.country=c)},null,8,["labelText","modelValue"])],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.addressEntry.streetNo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",Ng,o.toDisplayString(n.addressEntry.streetNo),1),Vg],64)):o.createCommentVNode("",!0),n.addressEntry.zip||n.addressEntry.city?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(n.showCityBeforeZip?"city-zip":"zip-city")},[n.addressEntry.zip?(o.openBlock(),o.createElementBlock("span",Fg,o.toDisplayString(n.addressEntry.zip),1)):o.createCommentVNode("",!0),n.addressEntry.city?(o.openBlock(),o.createElementBlock("span",Ag,[o.createTextVNode(o.toDisplayString(n.addressEntry.city),1),n.addressEntry.state?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(" "+o.toDisplayString(n.addressEntry.state),1)],64)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),Pg,n.addressEntry.miscInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",null,o.toDisplayString(n.addressEntry.miscInfo),1),Lg],64)):o.createCommentVNode("",!0),n.addressEntry.country?(o.openBlock(),o.createElementBlock("span",Ig,o.toDisplayString(n.addressEntry.country),1)):o.createCommentVNode("",!0)],64))],64))])):o.createCommentVNode("",!0)],64)}const Rg=V(pg,[["render",Mg]]),Dg={name:"CmdAddressData",mixins:[Y],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 e;return(e=this.addressData.website)==null?void 0:e.text.replace("https://","")}},methods:{onAddItem(){this.editModeContext.content.addContent(Fe(this,"props","addressData",-1),this.itemProvider)},itemProvider(){return{name:"name",iconClass:"icon-company",data:"Your data",labelText:"Label"}},locateAddress(e){return"https://www.google.com/maps/place/"+e.streetNo+", "+e.zip+" "+e.city},getHref(e){return e.name==="phone"?"tel:"+e.href:e.name==="email"?"mailto:"+e.href:e.name==="url"?e.href:null},updateHandlerProvider(){return Q(this,{update(e,t){const n=t==null?void 0:t.find(r=>r.name==="CmdHeadline");n&&(e.cmdHeadline=e.cmdHeadline||{},n.update(e.cmdHeadline))}})}},watch:{}},jg={class:"cmd-address-data vcard"},qg={class:"adr"},zg={key:0},Hg=[o.createElementVNode("span",{class:"icon-plus"},null,-1),o.createElementVNode("span",null,"Add new entry",-1)],Ug=["href","target","title"],Wg=["innerHTML"],Gg=["href","title"],Jg={class:"street-address"},Kg=o.createElementVNode("br",null,null,-1),Zg={key:0,class:"postal-code"},Xg={key:1,class:"locality"},Qg=o.createElementVNode("br",null,null,-1),Yg=o.createElementVNode("br",null,null,-1),$g=o.createElementVNode("br",null,null,-1),vg={key:4,class:"country-name"},ey={class:"street-address"},ty=o.createElementVNode("br",null,null,-1),ny={key:0,class:"postal-code"},oy={key:1,class:"locality"},ry=o.createElementVNode("br",null,null,-1),iy=o.createElementVNode("br",null,null,-1),sy=o.createElementVNode("br",null,null,-1),ay={key:4,class:"country-name"};function ly(e,t,n,r,i,s){var u;const a=U,l=Rg,d=Ae,c=z;return o.openBlock(),o.createElementBlock("div",jg,[n.useSlot?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[(u=n.cmdHeadline)!=null&&u.headlineText||e.editModeContext?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdHeadline)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("address",qg,[n.showLabels&&(n.showLabelTexts||n.showLabelIcons)&&!n.showIconsOnly?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.editModeContext?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.addressData.length===0?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"button confirm small",onClick:t[0]||(t[0]=(...m)=>s.onAddItem&&s.onAddItem(...m))},Hg)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.addressData,(m,g)=>(o.openBlock(),o.createBlock(d,{key:"x"+g,class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdAddressDataItem",componentProps:m,componentPath:["props","addressData",g]},{default:o.withCtx(()=>[o.createElementVNode("dl",null,[o.createVNode(l,{addressEntry:m,showLabelIcons:n.showLabelIcons,showLabelTexts:n.showLabelTexts},null,8,["addressEntry","showLabelIcons","showLabelTexts"])])]),_:2},1032,["componentProps","componentPath"]))),128))],64)):(o.openBlock(),o.createElementBlock("dl",zg,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.addressData,(m,g)=>(o.openBlock(),o.createBlock(l,{key:g,addressEntry:m,showLabelIcons:n.showLabelIcons,showLabelTexts:n.showLabelTexts,showCityBeforeZip:n.showCityBeforeZip},null,8,["addressEntry","showLabelIcons","showLabelTexts","showCityBeforeZip"]))),128))]))],64)):(o.openBlock(),o.createElementBlock("ul",{key:1,class:o.normalizeClass(["flex-container",{vertical:!n.showIconsOnly}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.addressData,(m,g)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:g},[m.href||m.name==="address"&&m.linkGoogleMaps||!n.showIconsOnly?(o.openBlock(),o.createElementBlock("li",{key:0,class:o.normalizeClass({"no-flex":n.showIconsOnly})},[m.href?(o.openBlock(),o.createElementBlock("a",{key:0,href:s.getHref(m),target:m.name==="url"?"_blank":null,title:m.tooltip},[n.showIconsOnly?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[m.iconClass?(o.openBlock(),o.createBlock(c,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(m.href),1)],64))],8,Ug)):n.showIconsOnly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:m.data},null,8,Wg)),m.name==="address"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[m.linkGoogleMaps?(o.openBlock(),o.createElementBlock("a",{key:0,href:s.locateAddress(m),target:"google-maps",title:m.tooltip},[n.showIconsOnly?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[m.iconClass?(o.openBlock(),o.createBlock(c,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[m.streetNo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",Jg,o.toDisplayString(m.streetNo),1),Kg],64)):o.createCommentVNode("",!0),m.zip||m.city?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(n.showCityBeforeZip?"order-city-zip":"order-zip-city")},[m.zip?(o.openBlock(),o.createElementBlock("span",Zg,o.toDisplayString(m.zip)+" ",1)):o.createCommentVNode("",!0),m.city?(o.openBlock(),o.createElementBlock("span",Xg,[o.createTextVNode(o.toDisplayString(m.city),1),m.state?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(m.state),1)],64)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),Qg],2)):o.createCommentVNode("",!0),m.pobox?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",null,o.toDisplayString(m.pobox),1),Yg],64)):o.createCommentVNode("",!0),m.miscInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createElementVNode("span",null,o.toDisplayString(m.miscInfo),1),$g],64)):o.createCommentVNode("",!0),m.country?(o.openBlock(),o.createElementBlock("span",vg,o.toDisplayString(m.country),1)):o.createCommentVNode("",!0)],64))],8,Gg)):o.createCommentVNode("",!0),!m.linkGoogleMaps&&!n.showIconsOnly?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[m.streetNo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",ey,o.toDisplayString(m.streetNo),1),ty],64)):o.createCommentVNode("",!0),m.zip||m.city?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(n.showCityBeforeZip?"order-city-zip":"order-zip-city")},[m.zip?(o.openBlock(),o.createElementBlock("span",ny,o.toDisplayString(m.zip)+" ",1)):o.createCommentVNode("",!0),m.city?(o.openBlock(),o.createElementBlock("span",oy,[o.createTextVNode(o.toDisplayString(m.city),1),m.state?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(m.state),1)],64)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),ry],2)):o.createCommentVNode("",!0),m.pobox?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",null,o.toDisplayString(m.pobox),1),iy],64)):o.createCommentVNode("",!0),m.miscInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createElementVNode("span",null,o.toDisplayString(m.miscInfo),1),sy],64)):o.createCommentVNode("",!0),m.country?(o.openBlock(),o.createElementBlock("span",ay,o.toDisplayString(m.country),1)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0)],64))),128))],2))])],64))])}const Ia=V(Dg,[["render",ly]]),cy={name:"CmdBackToTopButton",data(){var e;return{windowInnerHeight:window.innerHeight,windowScrollY:this.getScrollY(),scrollHeight:((e=document.querySelector(this.scrollContainer))==null?void 0:e.scrollHeight)||0}},props:{scrollContainer:{type:String,default:"body"},cmdIcon:{type:Object,default:function(){return{iconClass:"icon-chevron-one-stripe-up",tooltip:"Back to top",iconType:"auto"}}}},mounted(){var e;window.addEventListener("resize",this.onViewportChange),this.scrollContainer==="body"?window.addEventListener("scroll",this.onViewportChange):(e=document.querySelector(this.scrollContainer))==null||e.addEventListener("scroll",this.onViewportChange)},unmounted(){var e;window.removeEventListener("resize",this.onViewportChange),this.scrollContainer==="body"?window.addEventListener("scroll",this.onViewportChange):(e=document.querySelector(this.scrollContainer))==null||e.removeEventListener("scroll",this.onViewportChange)},computed:{show(){return this.windowScrollY>0&&this.windowInnerHeight<this.scrollHeight}},methods:{getScrollY(){var e;return this.scrollContainer==="body"?window.scrollY:((e=document.querySelector(this.scrollContainer))==null?void 0:e.scrollTop)||0},onViewportChange(){var e;this.windowInnerHeight=window.innerHeight,this.windowScrollY=this.getScrollY(),this.scrollHeight=((e=document.querySelector(this.scrollContainer))==null?void 0:e.scrollHeight)||0},onBackToTop(){var e;this.scrollContainer==="body"?window.scrollTo({top:0,left:0,behavior:"smooth"}):(e=document.querySelector(this.scrollContainer))==null||e.scrollTo({top:0,left:0,behavior:"smooth"})}}},dy=["title"];function uy(e,t,n,r,i,s){const a=z;return o.openBlock(),o.createBlock(o.Transition,{name:"fade"},{default:o.withCtx(()=>[s.show?(o.openBlock(),o.createElementBlock("a",{key:0,class:"cmd-back-to-top-button button",id:"back-to-top-button",href:"#",role:"button",title:n.cmdIcon.tooltip,onClick:t[0]||(t[0]=o.withModifiers((...l)=>s.onBackToTop&&s.onBackToTop(...l),["prevent"]))},[o.createVNode(a,{iconClass:n.cmdIcon.iconClass,type:n.cmdIcon.iconType},null,8,["iconClass","type"])],8,dy)):o.createCommentVNode("",!0)]),_:1})}const my=V(cy,[["render",uy]]),fy={name:"CmdBankAccountData",props:{useSlot:{type:Boolean,default:!1},accountData:{type:Array,required:!0},allowCopyByClick:{type:Boolean,default:!0},additionalInformation:{type:String,required:!1},cmdIcon:{type:Object,default(){return{iconClass:"icon-file-copy",tooltip:"Copy data to clipboard!",iconType:"auto"}}},cmdHeadline:{type:Object,required:!1}},methods:{copyToClipboard(e){const t=e.replace(/\s/g,"");navigator.clipboard.writeText(t),alert(t+" was copied to clipboard")}}},hy={class:"cmd-bank-account-data"},py={key:0},gy=["onClick","title"],yy={key:1};function by(e,t,n,r,i,s){const a=U,l=z;return o.openBlock(),o.createElementBlock("div",hy,[n.useSlot?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.cmdHeadline?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdHeadline)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("dl",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.accountData,(d,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:c},[o.createElementVNode("dt",null,o.toDisplayString(d.text),1),n.allowCopyByClick&&d.allowCopy?(o.openBlock(),o.createElementBlock("dd",py,[o.createElementVNode("span",null,o.toDisplayString(d.value),1),o.createElementVNode("a",{href:"#",onClick:o.withModifiers(u=>s.copyToClipboard(d.value),["prevent"]),title:n.cmdIcon.tooltip},[o.createVNode(l,{iconClass:n.cmdIcon.iconClass,type:n.cmdIcon.iconType},null,8,["iconClass","type"])],8,gy)])):(o.openBlock(),o.createElementBlock("dd",{key:c},o.toDisplayString(d.value),1))],64))),128))]),n.additionalInformation?(o.openBlock(),o.createElementBlock("p",yy,o.toDisplayString(n.additionalInformation),1)):o.createCommentVNode("",!0)],64))])}const ky=V(fy,[["render",by]]),Cy={name:"CmdForm",emits:["submit"],data(){return{errorOccurred:!1,formValues:{}}},props:{formAction:{type:String,required:!1},formMethod:{type:String,default:"POST",validator(e){return e==="POST"||e==="GET"}},legend:{type:Object,default(){return{show:!0,align:"left",text:"Legend"}}},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},submitButton:{type:Object,required:!1}},computed:{submitButtonOptions(){return{iconClass:"icon-check",text:"Submit",type:"submit",position:"insideFieldset",primary:!0,...this.submitButton}}},methods:{createHtmlId:cr,submitFormData(e){let t={};this.formElements&&this.formElements.forEach(n=>{t[n.name]=this.formValues[n.name]}),this.$emit("submit",{originalEvent:e,formdata:t})},onSubmit(e){this.useValidation?e.target.checkValidity()?(this.errorOccurred=!1,this.submitFormData(e)):(e.preventDefault(),this.errorOccurred=!0):this.submitFormData(e)}},watch:{formElements:{handler(){var e;this.formValues={},(e=this.formElements)==null||e.forEach(t=>{t.type==="checkbox"?(this.formValues[t.name]||(this.formValues[t.name]=[]),t.value!=null&&this.formValues[t.name].push(t.value)):this.formValues[t.name]=t.value??""})},immediate:!0,deep:!0}}},wy=["action","data-use-validation","novalidate","method"],xy={class:"flex-container"},By=["type"],_y={key:1},Ey={key:0,class:"button-wrapper"},Sy=["type"],Ty={key:1};function Oy(e,t,n,r,i,s){const a=X;return o.openBlock(),o.createElementBlock("form",{class:o.normalizeClass(["cmd-form",{error:i.errorOccurred}]),action:n.formAction,"data-use-validation":n.useValidation,onSubmit:t[0]||(t[0]=(...l)=>s.onSubmit&&s.onSubmit(...l)),novalidate:n.novalidate,method:n.formMethod},[n.useFieldset?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("fieldset",xy,[o.createElementVNode("legend",{class:o.normalizeClass({hidden:!n.legend.show,"align-left":n.legend.align==="left"})},o.toDisplayString(n.legend.text),3),n.useSlot?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(n.formElements,(l,d)=>(o.openBlock(),o.createBlock(a,{key:d,element:l.element||"input",type:l.type||"text",name:l.name,class:o.normalizeClass(l.htmlClass),id:l.id||s.createHtmlId(),modelValue:i.formValues[l.name],"onUpdate:modelValue":c=>i.formValues[l.name]=c,inputValue:l.inputValue,fieldIconClass:l.innerIconClass,selectOptions:l.selectOptions,labelText:l.labelText,placeholder:l.placeholder,required:l.required,disabled:l.disabled,autocomplete:l.autocomplete,minlength:l.minlength,maxlength:l.maxlength,nativeButton:l.nativeButton},null,8,["element","type","name","class","id","modelValue","onUpdate:modelValue","inputValue","fieldIconClass","selectOptions","labelText","placeholder","required","disabled","autocomplete","minlength","maxlength","nativeButton"]))),128)),s.submitButtonOptions&&(s.submitButtonOptions.position==="insideFieldset"||s.submitButtonOptions.position===null)?(o.openBlock(),o.createElementBlock("button",{key:2,class:o.normalizeClass(["button",{primary:s.submitButtonOptions.primary}]),type:s.submitButtonOptions.type},[s.submitButtonOptions.iconClass?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(s.submitButtonOptions.iconClass)},null,2)):o.createCommentVNode("",!0),s.submitButtonOptions.text?(o.openBlock(),o.createElementBlock("span",_y,o.toDisplayString(s.submitButtonOptions.text),1)):o.createCommentVNode("",!0)],10,By)):o.createCommentVNode("",!0)]),s.submitButtonOptions&&s.submitButtonOptions.position==="belowFieldset"?(o.openBlock(),o.createElementBlock("div",Ey,[o.createElementVNode("button",{class:o.normalizeClass(["button",{primary:s.submitButtonOptions.primary}]),type:s.submitButtonOptions.type||"submit"},[s.submitButtonOptions.iconClass?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(s.submitButtonOptions.iconClass)},null,2)):o.createCommentVNode("",!0),s.submitButtonOptions.text?(o.openBlock(),o.createElementBlock("span",Ty,o.toDisplayString(s.submitButtonOptions.text),1)):o.createCommentVNode("",!0)],10,Sy)])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"button-row")],64)):o.renderSlot(e.$slots,"default",{key:1})],42,wy)}const Ma=V(Cy,[["render",Oy]]),Ny={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.text.characters_left":"Characters left","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>."}}}},De=class De{constructor(t){en(this,"label");this.label=t}validate(t){return[t.lastName.error,t.lastName.errorMessage]=this.validateRequired(t.lastName.value,De.PATTERN_SURNAME,this.label("form_error_invalid_surname"))[t.email.error,t.email.errorMessage]=this.validateRequired(t.email.value,De.PATTERN_EMAIL,this.label("form_error_invalid_email"))[t.additionalText.error,t.additionalText.errorMessage]=this.validateRequired(t.additionalText.value,De.PATTERN_MESSAGE,this.label("form_error_invalid_message")),t.acceptPrivacy.error=!1,t.error=t.lastName.error||t.email.error||t.additionalText.error,t}validatePrivacy(t){return t.acceptPrivacy.error=!t.acceptPrivacy.value,t.acceptPrivacy.errorMessage=t.acceptPrivacy.error?this.label("form_error_missing_privacy_consent"):"",t.error=t.error||t.acceptPrivacy.error,t}validateRequired(t,n,r){return!t||t.trim().length===0?[!0,this.label("form_error_empty")]:n&&!n.test(t)?[!0,r||this.label("form_error_invalid")]:[!1,""]}};en(De,"PATTERN_SURNAME",/^[a-züöäßáéíóàèìòêîô '-]+$/i),en(De,"PATTERN_EMAIL",/^[a-z\d._%+-]+@[a-z\d._%+-]+\.[a-z]{2,}$/i),en(De,"PATTERN_MESSAGE",/^.{2,500}$/);let mr=De;function nt(e){if(e){const t=e.lastIndexOf(".");if(t>-1)return e.substring(t+1)}return""}function Ra(e,t,n,r,i){const s=[];if(e.size>r&&s.push("file too large"),t.includes(nt(e.name))||s.push("disallowed file extension"),s.length){alert(s);return}const a=new Image;a.onload=()=>{if(a.width<n&&!confirm("width ("+a.width+" px) too small - at least "+n+" px required! Use trotzdem!")){alert("Cancel");return}URL.revokeObjectURL(a.src),typeof i=="function"?i(a.src):i.src=a.src},a.src=URL.createObjectURL(e)}const Vy={name:"CmdImage",mixins:[Y],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},useFigureTag:{type:Boolean,default:!0},figcaption:{type:Object,required:!1},maxFileUploadSize:{type:Number,default:5e5},minImageWidth:{type:Number,default:600}},created(){window.addEventListener("resize",this.updateWindowWidth);const e=getComputedStyle(document.documentElement);this.mediumMaxWidth=parseInt(e.getPropertyValue("--medium-max-width")),this.smallMaxWidth=parseInt(e.getPropertyValue("--small-max-width"))},beforeUnmount(){window.removeEventListener("resize",this.updateWindowWidth)},computed:{imageComponentPath(){return this.componentPath||["props","cmdImage"]},imageSource(){var n;if(this.newImageSource)return this.newImageSource;const e=(n=this.image)==null?void 0:n.src;if(!e)return null;if(typeof e=="string")return e;const t=this.currentWindowWidth;return e.small&&t<=this.smallMaxWidth?e.small:e.medium&&t<=this.mediumMaxWidth?e.medium:e.large},textAlign(){var e;return(e=this.figcaption)!=null&&e.textAlign?"text-"+this.figcaption.textAlign:""},dragAndDropHandler(){return{dragenter:this.dragEnter,dragover:this.dragOver,dragleave:this.dragLeave,drop:this.drop}},editableFigcaptionText:{get(){var e;return this.figcaptionText==null?(e=this.figcaption)==null?void 0:e.text:this.figcaptionText},set(e){this.figcaptionText=e}}},methods:{onImageLoaded(e){this.$emit("image-loaded",e)},itemProvider(){var t,n;const e=(n=(t=this.editModeConfig)==null?void 0:t.itemProviderOverwrite)==null?void 0:n.call(t);return{image:{src:"/media/images/demo-images/medium/landscape-01.jpg",alt:"Alternative Text",...(e==null?void 0:e.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(e){e.target.files.length>0&&Ra(e.target.files[0],this.allowedFileExtensions,this.minImageWidth,this.maxFileUploadSize,t=>this.newImageSource=t)},updateWindowWidth(){this.currentWindowWidth=window.innerWidth},getImage(){return{image:{...this.image},figcaption:{show:this.showFigcaption,position:this.figcaptionPosition,textAlign:this.figcaptionTextAlign,text:this.figcaptionText}}},dragEnter(e){this.dragOver(e)},dragOver(e){e.dataTransfer&&e.dataTransfer.items&&e.dataTransfer.items.length>0&&(e.dataTransfer.dropEffect="none",e.dataTransfer.items[0].kind==="file"&&(e.preventDefault(),e.dataTransfer.dropEffect="copy",this.allowDrop=!0))},dragLeave(){this.allowDrop=!1},drop(e){this.allowDrop=!1,e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length>0&&(e.preventDefault(),Ra(e.dataTransfer.files[0],this.allowedFileExtensions,this.minImageWidth,this.maxFileUploadSize,t=>this.newImageSource=t))},addHandlerProvider(){const e={image:{id:tt(),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 e}})},updateHandlerProvider(){const e=this.figcaptionText;return this.figcaptionText=null,Q(this,{update(t){t.figcaption||(t.figcaption={}),t.figcaption.text=e}})}},watch:{figcaption:{handler(){var e,t,n,r;this.showFigcaption=(e=this.figcaption)==null?void 0:e.show,this.figcaptionText=(t=this.figcaption)==null?void 0:t.text,this.figcaptionPosition=(n=this.figcaption)==null?void 0:n.position,this.figcaptionTextAlign=(r=this.figcaption)==null?void 0:r.textAlign},immediate:!0,deep:!0}}},Fy=["innerHTML"],Ay=o.createElementVNode("span",{class:"icon-image"},null,-1),Py=["src","alt","title"],Ly=["src","alt","title"],Iy=["innerHTML"],My=[o.createElementVNode("span",{class:"icon-add"},null,-1),o.createElementVNode("span",null,"Add new image",-1)],Ry=["innerHTML"],Dy=["src","alt","title"],jy=["innerHTML"],qy=["src","alt","title"];function zy(e,t,n,r,i,s){var d,c,u,m,g,f,h,y,p,C,T,k,A;const a=X,l=Ae;return e.editModeContext?(o.openBlock(),o.createBlock(l,{key:0,ref:"editComponentWrapper",class:"edit-items",showComponentName:!1,allowedComponentTypes:[],componentName:"CmdImage",componentProps:{image:n.image,figcaption:n.figcaption},componentPath:s.imageComponentPath,allowDeleteComponent:!!s.imageSource,itemProvider:((d=e.editModeConfig)==null?void 0:d.allowAddItem)!==!1?s.itemProvider:null},{default:o.withCtx(N=>{var b,S,F,q,L,Be,_e,Ee,Se,Te,P,de;return[o.createElementVNode("figure",{class:o.normalizeClass(["cmd-image flex-container no-gap vertical",s.textAlign])},[(b=n.figcaption)!=null&&b.show&&((S=n.figcaption)==null?void 0:S.position)==="top"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[N.editing?(o.openBlock(),o.createBlock(a,{key:0,element:"input",type:"text",class:o.normalizeClass([s.textAlign,"edit-mode"]),required:!0,labelText:"Text figcaption",modelValue:s.editableFigcaptionText,"onUpdate:modelValue":t[0]||(t[0]=re=>s.editableFigcaptionText=re)},null,8,["class","modelValue"])):(F=n.figcaption)!=null&&F.text?(o.openBlock(),o.createElementBlock("figcaption",{key:1,innerHTML:(q=n.figcaption)==null?void 0:q.text},null,8,Fy)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),N.editing?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("a",o.mergeProps({href:"#",class:["box drop-area flex-container vertical",{"allow-drop":i.allowDrop}]},o.toHandlers(s.dragAndDropHandler,!0),{onClick:t[1]||(t[1]=o.withModifiers((...re)=>s.selectFiles&&s.selectFiles(...re),["prevent"])),title:"Drag new image to this area to replace old one!"}),[Ay,o.createElementVNode("img",{src:s.imageSource,alt:(L=n.image)==null?void 0:L.alt,title:(Be=n.image)==null?void 0:Be.tooltip},null,8,Py)],16),o.createVNode(a,{class:"hidden",element:"input",type:"file",labelText:"Select new image",disabled:i.uploadInitiated,onChange:s.fileSelected,ref:"formElement"},null,8,["disabled","onChange"])],64)):s.imageSource?(o.openBlock(),o.createElementBlock("img",{key:2,src:s.imageSource,alt:(_e=n.image)==null?void 0:_e.alt,title:(Ee=n.image)==null?void 0:Ee.tooltip},null,8,Ly)):o.createCommentVNode("",!0),(Se=n.figcaption)!=null&&Se.show&&((Te=n.figcaption)==null?void 0:Te.position)!=="top"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[N.editing?(o.openBlock(),o.createBlock(a,{key:0,element:"input",type:"text",class:o.normalizeClass([s.textAlign,"edit-mode"]),required:!0,labelText:"Text figcaption",showLabel:!1,modelValue:s.editableFigcaptionText,"onUpdate:modelValue":t[2]||(t[2]=re=>s.editableFigcaptionText=re),placeholder:"figcaption"},null,8,["class","modelValue"])):(P=n.figcaption)!=null&&P.text?(o.openBlock(),o.createElementBlock("figcaption",{key:1,innerHTML:(de=n.figcaption)==null?void 0:de.text},null,8,Iy)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),!N.editing&&!s.imageSource?(o.openBlock(),o.createElementBlock("button",{key:4,type:"button",class:"button confirm",onClick:t[3]||(t[3]=(...re)=>s.onAddItem&&s.onAddItem(...re))},My)):o.createCommentVNode("",!0)],2)]}),_:1},8,["componentProps","componentPath","allowDeleteComponent","itemProvider"])):n.useFigureTag?(o.openBlock(),o.createElementBlock("figure",{key:1,class:o.normalizeClass(["cmd-image",s.textAlign])},[((c=n.figcaption)==null?void 0:c.position)==="top"&&((u=n.figcaption)!=null&&u.text)&&((m=n.figcaption)!=null&&m.show)?(o.openBlock(),o.createElementBlock("figcaption",{key:0,innerHTML:(g=n.figcaption)==null?void 0:g.text},null,8,Ry)):o.createCommentVNode("",!0),o.createElementVNode("img",{src:s.imageSource,alt:(f=n.image)==null?void 0:f.alt,title:(h=n.image)==null?void 0:h.tooltip,onLoad:t[4]||(t[4]=(...N)=>s.onImageLoaded&&s.onImageLoaded(...N))},null,40,Dy),((y=n.figcaption)==null?void 0:y.position)!=="top"&&((p=n.figcaption)!=null&&p.text)&&((C=n.figcaption)!=null&&C.show)?(o.openBlock(),o.createElementBlock("figcaption",{key:1,innerHTML:(T=n.figcaption)==null?void 0:T.text},null,8,jy)):o.createCommentVNode("",!0)],2)):(o.openBlock(),o.createElementBlock("img",{key:2,src:s.imageSource,alt:(k=n.image)==null?void 0:k.alt,title:(A=n.image)==null?void 0:A.tooltip,onLoad:t[5]||(t[5]=(...N)=>s.onImageLoaded&&s.onImageLoaded(...N))},null,40,qy))}const Ne=V(Vy,[["render",zy]]),Hy={name:"CmdSlideButton",props:{slideButtonType:{type:String,default:"next",validator(e){return e==="next"||e==="prev"||e==="up"||e==="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"),{})}}},Uy=["title"];function Wy(e,t,n,r,i,s){const a=z;return o.openBlock(),o.createElementBlock("a",{href:"#",onClick:t[0]||(t[0]=o.withModifiers(()=>{},["prevent"])),class:o.normalizeClass(["cmd-slide-button","button","keep-behavior-on-small-devices",n.slideButtonType]),title:s.getDirection.tooltip},[o.createVNode(a,{type:s.getDirection.iconType||"auto",iconClass:s.getDirection.iconClass||"next"},null,8,["type","iconClass"])],10,Uy)}const bt=V(Hy,[["render",Wy]]),Gy={name:"CmdThumbnailScroller",emits:["click"],mixins:[oe,{data(){return{defaultMessageProperties:{"thumbnail_scroller.tooltip.open_large_image":"Open large image","thumbnail_scroller.tooltip.open_url":"Open URL in a new tab","thumbnail_scroller.tooltip.open":"Open"}}}},Y],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(e){return e==="image"||e==="text"}},executeOnClick:{type:String,default:"fancybox",validator(e){return e==="fancybox"||e==="url"||e==="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 e=this.$refs["thumbnail-scroller"],t=e.querySelector("ul");new ResizeObserver(()=>this.toggleSlideButtons(t)).observe(e)},computed:{tooltip(){return this.contentType==="image"?this.getMessage("thumbnail_scroller.tooltip.open_large_image"):this.executeOnClick==="url"?this.getMessage("thumbnail_scroller.tooltip.open_url"):this.getMessage("thumbnail_scroller.tooltip.open")},fullWidthClass(){return this.orientation==="horizontal"?"full-width":null}},methods:{itemProvider(){return{image:{id:tt(),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(Fe(this,"props","thumbnailScrollerItems",-1),this.itemProvider)},imageStructure(){return{itemProviderOverwrite:()=>({image:{id:tt(),src:"/media/images/demo-images/small/landscape-01.jpg",srcImageLarge:"/media/images/demo-images/large/landscape-01.jpg",tooltip:"Tooltip DE"}})}},toggleSlideButtons(e){this.showSlidebuttons=e.scrollWidth>e.clientWidth},showNextItem(){const e=this.items.shift();e&&this.items.push(e)},showPrevItem(){const e=this.items.pop();e&&this.items.unshift(e)},showFancyBox(e){this.allowOpenFancyBox&&qe({fancyBoxGallery:this.items,defaultGalleryIndex:e}),this.emitCurrentItemId(e)},emitCurrentItemId(e){if(this.contentType==="image"){this.$emit("click",this.items[e].image.id);return}this.$emit("click",this.items[e].id)},executeLink(e,t){this.executeOnClick==="emit"?(t.preventDefault(),this.emitCurrentItemId(e)):this.executeOnClick==="fancybox"&&(t.preventDefault(),this.showFancyBox(e))}},watch:{thumbnailScrollerItems:{handler(){this.items=this.thumbnailScrollerItems.map(e=>{let t;return this.contentType==="image"?(t={image:{...e.image},figcaption:{...e.figcaption}},t.image.srcImageSmall&&(t.image.src=t.image.srcImageSmall)):t={...e},t})},immediate:!0,deep:!0}}},Jy={class:"inner-thumbnail-wrapper"},Ky=["href","onClick","title","target"],Zy={key:1},Xy={key:1},Qy={key:0},Yy=[o.createElementVNode("span",{class:"icon-plus"},null,-1),o.createElementVNode("span",null,"Add new thumbnail-scroller-image",-1)];function $y(e,t,n,r,i,s){var u;const a=U,l=bt,d=Ne,c=z;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["cmd-thumbnail-scroller",{"gallery-scroller":n.useGalleryScroller,"large-icons":n.largeIcons,vertical:n.orientation==="vertical"},s.fullWidthClass]),ref:"thumbnail-scroller"},[(u=n.cmdHeadline)!=null&&u.headlineText||e.editModeContext?(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:0},n.cmdHeadline)),null,16)):o.createCommentVNode("",!0),o.createElementVNode("div",Jy,[i.showSlidebuttons?(o.openBlock(),o.createBlock(l,{key:0,onClick:o.withModifiers(s.showPrevItem,["prevent"]),slideButtonType:"prev"},null,8,["onClick"])):o.createCommentVNode("",!0),o.createVNode(o.TransitionGroup,{name:"slide",tag:"ul"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.items,(m,g)=>(o.openBlock(),o.createElementBlock("li",{key:g},[e.editModeContext?n.contentType==="image"?(o.openBlock(),o.createBlock(d,{key:1,image:m.image,figcaption:m.figcaption,componentPath:["props","thumbnailScrollerItems",g],editModeConfig:s.imageStructure()},null,8,["image","figcaption","componentPath","editModeConfig"])):n.contentType==="text"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[m.iconClass?(o.openBlock(),o.createBlock(c,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0),m.text?(o.openBlock(),o.createElementBlock("span",Xy,o.toDisplayString(m.text),1)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("a",{key:0,href:n.executeOnClick==="url"?m.url:"#",onClick:f=>s.executeLink(g,f),class:o.normalizeClass([{active:n.activeItemIndex===g},m.id?"item-"+m.id:""]),title:s.tooltip,target:n.executeOnClick==="url"?"_blank":null},[n.contentType==="image"?(o.openBlock(),o.createBlock(d,{key:0,image:m.image,figcaption:m.figcaption},null,8,["image","figcaption"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[m.iconClass?(o.openBlock(),o.createBlock(c,{key:0,iconClass:m.iconClass,type:m.iconType},null,8,["iconClass","type"])):o.createCommentVNode("",!0),m.text?(o.openBlock(),o.createElementBlock("span",Zy,o.toDisplayString(m.text),1)):o.createCommentVNode("",!0)],64))],10,Ky))]))),128)),!i.items.length&&n.contentType==="image"?(o.openBlock(),o.createElementBlock("li",Qy,[o.createElementVNode("button",{type:"button",class:"button confirm",onClick:t[0]||(t[0]=(...m)=>s.onAddItem&&s.onAddItem(...m))},Yy)])):o.createCommentVNode("",!0)]),_:1}),i.showSlidebuttons?(o.openBlock(),o.createBlock(l,{key:1,onClick:o.withModifiers(s.showNextItem,["prevent"]),slideButtons:n.cmdSlideButtons.next},null,8,["onClick","slideButtons"])):o.createCommentVNode("",!0)])],2)}const Da=V(Gy,[["render",$y]]),qe=e=>{const t=document.createElement("div");document.querySelector("body").appendChild(t),o.createApp(ja,{...e,show:!0}).mount(t)},ja=o.defineComponent({name:"CmdFancyBox",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,required:!1},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:{fancyBoxOptionsProperties(){var e,t,n,r,i,s,a,l,d;return{closeIcon:{iconClass:"icon-cancel",iconType:"auto",tooltip:"Close",...(e=this.fancyBoxOptions)==null?void 0:e.closeIcon},printButtons:{color:{iconClass:"icon-print",iconType:"auto",tooltip:"print in color",...(n=(t=this.fancyBoxOptions)==null?void 0:t.printButtons)==null?void 0:n.color},grayscale:{iconClass:"icon-print",iconType:"auto",tooltip:"print in grayscale",...(i=(r=this.fancyBoxOptions)==null?void 0:r.printButtons)==null?void 0:i.grayscale}},submitButtons:{cancel:{iconClass:"icon-cancel",iconType:"auto",tooltip:"Cancel",buttonText:"Cancel",...(a=(s=this.fancyBoxOptions)==null?void 0:s.submitButtons)==null?void 0:a.cancel},confirm:{iconClass:"icon-check",iconType:"auto",buttonText:"Confirm",tooltip:"Confirm",buttonType:"primary",...(d=(l=this.fancyBoxOptions)==null?void 0:l.submitButtons)==null?void 0:d.confirm}}}},largeGalleryImage(){const e={...this.fancyBoxGallery[this.index].image};return e.src=e.srcImageLarge,e},largeSingleImage(){var t;const e={...((t=this.cmdImage)==null?void 0:t.image)||{}};return this.fancyBoxImageUrl&&(e.src=this.fancyBoxImageUrl),e},ariaLabelText(){var e;return(e=this.fancyBoxGallery)!=null&&e.length?this.fancyBoxGallery[this.index].figcaption.text:this.defaultAriaLabelText}},methods:{printDialogContent(){const e=window.open("","","width=1000,height=600"),t=this.elements.map(i=>i.outerHTML).join("");let n=Array.from(document.head.querySelectorAll("style, link[rel='stylesheet']")).map(i=>i.outerHTML).join("");this.printInGrayscale&&(n+="<style>body { filter: grayscale(1)}</style>");const r=document.head.querySelector("title").innerText;e.document.write(`
2
2
  <html>
3
3
  <head>
4
4
  <title>${r}</title>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.1.9",
3
+ "version": "4.1.11",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <form class="cmd-form" :action="formAction" :data-use-validation="useValidation" @submit="onSubmit"
3
- :class="{error: errorOccurred}" :novalidate="novalidate">
3
+ :class="{error: errorOccurred}" :novalidate="novalidate" :method="formMethod">
4
4
  <template v-if="useFieldset">
5
5
  <fieldset class="flex-container">
6
6
  <legend :class="{hidden : !legend.show, 'align-left': legend.align === 'left'}">{{
@@ -89,6 +89,16 @@ export default {
89
89
  type: String,
90
90
  required: false
91
91
  },
92
+ /**
93
+ * define method to send form
94
+ */
95
+ formMethod: {
96
+ type: String,
97
+ default: "POST",
98
+ validator(value) {
99
+ return value === "POST" || value === "GET"
100
+ }
101
+ },
92
102
  /**
93
103
  * legend for form
94
104
  *
@@ -282,7 +282,7 @@ export default {
282
282
  }
283
283
  }
284
284
 
285
- /* begin inline-navigation (shares spaces with company-logo */
285
+ /* begin inline-navigation (shares spaces with company-logo) */
286
286
  &.navigation-inline {
287
287
  header {
288
288
  &.has-navigation {