comand-component-library 4.0.32 → 4.0.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -15500,13 +15500,6 @@ function wy(e, n, t, s, o, i) {
15500
15500
  const ub = /* @__PURE__ */ M(Wg, [["render", wy]]), ky = {
15501
15501
  name: "CmdWidthLimitationWrapper",
15502
15502
  props: {
15503
- numberOfColumns: {
15504
- type: Number,
15505
- default: 1,
15506
- validator(e) {
15507
- return e >= 0;
15508
- }
15509
- },
15510
15503
  contentType: {
15511
15504
  type: String,
15512
15505
  default: "flex"
@@ -15562,7 +15555,7 @@ const ub = /* @__PURE__ */ M(Wg, [["render", wy]]), ky = {
15562
15555
  },
15563
15556
  contentTypeOrientation: {
15564
15557
  type: String,
15565
- default: "horizontal"
15558
+ default: "vertical"
15566
15559
  },
15567
15560
  /**
15568
15561
  * properties for CmdHeadline-component
@@ -15592,12 +15585,19 @@ const ub = /* @__PURE__ */ M(Wg, [["render", wy]]), ky = {
15592
15585
  setOuterId() {
15593
15586
  return this.innerComponent === "header" ? "site-header" : this.innerComponent === "footer" ? "site-footer" : "";
15594
15587
  }
15588
+ },
15589
+ methods: {
15590
+ oneSlotItem() {
15591
+ const e = this.$slots.default();
15592
+ return e.length === 1 && typeof e[0].type == "symbol" && Array.isArray(e[0].children) ? e[0].children.length === 1 : e.length === 1;
15593
+ }
15595
15594
  }
15596
15595
  }, vy = ["id"], Ty = ["id"];
15597
15596
  function Sy(e, n, t, s, o, i) {
15598
15597
  const r = G;
15599
15598
  return l(), a("div", {
15600
- class: y(["cmd-width-limitation-wrapper", { sticky: t.sticky }])
15599
+ class: y(["cmd-width-limitation-wrapper", { sticky: t.sticky }]),
15600
+ ref: "width-limitation-wrapper"
15601
15601
  }, [
15602
15602
  t.useInnerSection ? (l(), a("section", {
15603
15603
  key: 0,
@@ -15610,7 +15610,7 @@ function Sy(e, n, t, s, o, i) {
15610
15610
  "headline-text": t.cmdHeadline.headlineText,
15611
15611
  "headline-level": t.cmdHeadline.headlineLevel
15612
15612
  }, null, 8, ["pre-headline-text", "headline-text", "headline-level"])) : d("", !0),
15613
- t.numberOfColumns === 1 ? V(e.$slots, "default", { key: 1 }) : (l(), a("div", {
15613
+ i.oneSlotItem() ? V(e.$slots, "default", { key: 1 }) : (l(), a("div", {
15614
15614
  key: 2,
15615
15615
  class: y(i.setInnerClass)
15616
15616
  }, [
@@ -6,4 +6,4 @@
6
6
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...o){const a=new this(n);return o.forEach(i=>a.set(i)),a}static accessor(n){const a=(this[an]=this[an]={accessors:{}}).accessors,i=this.prototype;function l(s){const r=_e(s);a[r]||(_p(i,s),a[r]=!0)}return g.isArray(n)?n.forEach(l):l(n),this}}R.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),g.reduceDescriptors(R.prototype,({value:t},n)=>{let o=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(a){this[o]=a}}}),g.freezeMethods(R);function Tt(t,n){const o=this||we,a=n||o,i=R.from(a.headers);let l=a.data;return g.forEach(t,function(r){l=r.call(o,l,i.normalize(),n?n.status:void 0)}),i.normalize(),l}function sn(t){return!!(t&&t.__CANCEL__)}function fe(t,n,o){V.call(this,t??"canceled",V.ERR_CANCELED,n,o),this.name="CanceledError"}g.inherits(fe,V,{__CANCEL__:!0});function rn(t,n,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?t(o):n(new V("Request failed with status code "+o.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function xp(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function Ep(t,n){t=t||10;const o=new Array(t),a=new Array(t);let i=0,l=0,s;return n=n!==void 0?n:1e3,function(c){const h=Date.now(),d=a[l];s||(s=h),o[i]=c,a[i]=h;let m=l,p=0;for(;m!==i;)p+=o[m++],m=m%t;if(i=(i+1)%t,i===l&&(l=(l+1)%t),h-s<n)return;const f=d&&h-d;return f?Math.round(p*1e3/f):void 0}}function Sp(t,n){let o=0;const a=1e3/n;let i=null;return function(){const s=this===!0,r=Date.now();if(s||r-o>a)return i&&(clearTimeout(i),i=null),o=r,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,o=Date.now(),t.apply(null,arguments)),a-(r-o)))}}const Ke=(t,n,o=3)=>{let a=0;const i=Ep(50,250);return Sp(l=>{const s=l.loaded,r=l.lengthComputable?l.total:void 0,c=s-a,h=i(c),d=s<=r;a=s;const m={loaded:s,total:r,progress:r?s/r:void 0,bytes:c,rate:h||void 0,estimated:h&&r&&d?(r-s)/h:void 0,event:l,lengthComputable:r!=null};m[n?"download":"upload"]=!0,t(m)},o)},Vp=K.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let a;function i(l){let s=l;return n&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=i(window.location.href),function(s){const r=g.isString(s)?i(s):s;return r.protocol===a.protocol&&r.host===a.host}}():function(){return function(){return!0}}(),Tp=K.hasStandardBrowserEnv?{write(t,n,o,a,i,l){const s=[t+"="+encodeURIComponent(n)];g.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),g.isString(a)&&s.push("path="+a),g.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Np(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ip(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function cn(t,n){return t&&!Np(n)?Ip(t,n):n}const dn=t=>t instanceof R?{...t}:t;function se(t,n){n=n||{};const o={};function a(h,d,m){return g.isPlainObject(h)&&g.isPlainObject(d)?g.merge.call({caseless:m},h,d):g.isPlainObject(d)?g.merge({},d):g.isArray(d)?d.slice():d}function i(h,d,m){if(g.isUndefined(d)){if(!g.isUndefined(h))return a(void 0,h,m)}else return a(h,d,m)}function l(h,d){if(!g.isUndefined(d))return a(void 0,d)}function s(h,d){if(g.isUndefined(d)){if(!g.isUndefined(h))return a(void 0,h)}else return a(void 0,d)}function r(h,d,m){if(m in n)return a(h,d);if(m in t)return a(void 0,h)}const c={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(h,d)=>i(dn(h),dn(d),!0)};return g.forEach(Object.keys(Object.assign({},t,n)),function(d){const m=c[d]||i,p=m(t[d],n[d],d);g.isUndefined(p)&&m!==r||(o[d]=p)}),o}const mn=t=>{const n=se({},t);let{data:o,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:r}=n;n.headers=s=R.from(s),n.url=tn(cn(n.baseURL,n.url),t.params,t.paramsSerializer),r&&s.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):"")));let c;if(g.isFormData(o)){if(K.hasStandardBrowserEnv||K.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[h,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([h||"multipart/form-data",...d].join("; "))}}if(K.hasStandardBrowserEnv&&(a&&g.isFunction(a)&&(a=a(n)),a||a!==!1&&Vp(n.url))){const h=i&&l&&Tp.read(l);h&&s.set(i,h)}return n},Fp=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,a){const i=mn(t);let l=i.data;const s=R.from(i.headers).normalize();let{responseType:r}=i,c;function h(){i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(i.method.toUpperCase(),i.url,!0),d.timeout=i.timeout;function m(){if(!d)return;const f=R.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!r||r==="text"||r==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:f,config:t,request:d};rn(function(C){o(C),h()},function(C){a(C),h()},y),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(a(new V("Request aborted",V.ECONNABORTED,i,d)),d=null)},d.onerror=function(){a(new V("Network Error",V.ERR_NETWORK,i,d)),d=null},d.ontimeout=function(){let u=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const y=i.transitional||nn;i.timeoutErrorMessage&&(u=i.timeoutErrorMessage),a(new V(u,y.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,i,d)),d=null},l===void 0&&s.setContentType(null),"setRequestHeader"in d&&g.forEach(s.toJSON(),function(u,y){d.setRequestHeader(y,u)}),g.isUndefined(i.withCredentials)||(d.withCredentials=!!i.withCredentials),r&&r!=="json"&&(d.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&d.addEventListener("progress",Ke(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ke(i.onUploadProgress)),(i.cancelToken||i.signal)&&(c=f=>{d&&(a(!f||f.type?new fe(null,t,d):f),d.abort(),d=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const p=xp(i.url);if(p&&K.protocols.indexOf(p)===-1){a(new V("Unsupported protocol "+p+":",V.ERR_BAD_REQUEST,t));return}d.send(l||null)})},Op=(t,n)=>{let o=new AbortController,a;const i=function(c){if(!a){a=!0,s();const h=c instanceof Error?c:this.reason;o.abort(h instanceof V?h:new fe(h instanceof Error?h.message:h))}};let l=n&&setTimeout(()=>{i(new V(`timeout ${n} of ms exceeded`,V.ETIMEDOUT))},n);const s=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",i):c.unsubscribe(i))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",i));const{signal:r}=o;return r.unsubscribe=s,[r,()=>{l&&clearTimeout(l),l=null}]},Mp=function*(t,n){let o=t.byteLength;if(!n||o<n){yield t;return}let a=0,i;for(;a<o;)i=a+n,yield t.slice(a,i),a=i},Dp=async function*(t,n,o){for await(const a of t)yield*Mp(ArrayBuffer.isView(a)?a:await o(String(a)),n)},hn=(t,n,o,a,i)=>{const l=Dp(t,n,i);let s=0;return new ReadableStream({type:"bytes",async pull(r){const{done:c,value:h}=await l.next();if(c){r.close(),a();return}let d=h.byteLength;o&&o(s+=d),r.enqueue(new Uint8Array(h))},cancel(r){return a(r),l.return()}},{highWaterMark:2})},fn=(t,n)=>{const o=t!=null;return a=>setTimeout(()=>n({lengthComputable:o,total:t,loaded:a}))},Ze=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",un=Ze&&typeof ReadableStream=="function",Nt=Ze&&(typeof TextEncoder=="function"?(t=>n=>t.encode(n))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Lp=un&&(()=>{let t=!1;const n=new Request(K.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n})(),pn=64*1024,It=un&&!!(()=>{try{return g.isReadableStream(new Response("").body)}catch{}})(),Ye={stream:It&&(t=>t.body)};Ze&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Ye[n]&&(Ye[n]=g.isFunction(t[n])?o=>o[n]():(o,a)=>{throw new V(`Response type '${n}' is not supported`,V.ERR_NOT_SUPPORT,a)})})})(new Response);const Pp=async t=>{if(t==null)return 0;if(g.isBlob(t))return t.size;if(g.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(g.isArrayBufferView(t))return t.byteLength;if(g.isURLSearchParams(t)&&(t=t+""),g.isString(t))return(await Nt(t)).byteLength},Ap=async(t,n)=>{const o=g.toFiniteNumber(t.getContentLength());return o??Pp(n)},Ft={http:ap,xhr:Fp,fetch:Ze&&(async t=>{let{url:n,method:o,data:a,signal:i,cancelToken:l,timeout:s,onDownloadProgress:r,onUploadProgress:c,responseType:h,headers:d,withCredentials:m="same-origin",fetchOptions:p}=mn(t);h=h?(h+"").toLowerCase():"text";let[f,u]=i||l||s?Op([i,l],s):[],y,k;const C=()=>{!y&&setTimeout(()=>{f&&f.unsubscribe()}),y=!0};let S;try{if(c&&Lp&&o!=="get"&&o!=="head"&&(S=await Ap(d,a))!==0){let x=new Request(n,{method:"POST",body:a,duplex:"half"}),T;g.isFormData(a)&&(T=x.headers.get("content-type"))&&d.setContentType(T),x.body&&(a=hn(x.body,pn,fn(S,Ke(c)),null,Nt))}g.isString(m)||(m=m?"cors":"omit"),k=new Request(n,{...p,signal:f,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",withCredentials:m});let w=await fetch(k);const _=It&&(h==="stream"||h==="response");if(It&&(r||_)){const x={};["status","statusText","headers"].forEach(M=>{x[M]=w[M]});const T=g.toFiniteNumber(w.headers.get("content-length"));w=new Response(hn(w.body,pn,r&&fn(T,Ke(r,!0)),_&&C,Nt),x)}h=h||"text";let F=await Ye[g.findKey(Ye,h)||"text"](w,t);return!_&&C(),u&&u(),await new Promise((x,T)=>{rn(x,T,{data:F,headers:R.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:k})})}catch(w){throw C(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,t,k),{cause:w.cause||w}):V.from(w,w&&w.code,t,k)}})};g.forEach(Ft,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const gn=t=>`- ${t}`,qp=t=>g.isFunction(t)||t===null||t===!1,yn={getAdapter:t=>{t=g.isArray(t)?t:[t];const{length:n}=t;let o,a;const i={};for(let l=0;l<n;l++){o=t[l];let s;if(a=o,!qp(o)&&(a=Ft[(s=String(o)).toLowerCase()],a===void 0))throw new V(`Unknown adapter '${s}'`);if(a)break;i[s||"#"+l]=a}if(!a){const l=Object.entries(i).map(([r,c])=>`adapter ${r} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?l.length>1?`since :
7
7
  `+l.map(gn).join(`
8
8
  `):" "+gn(l[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a},adapters:Ft};function Ot(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fe(null,t)}function kn(t){return Ot(t),t.headers=R.from(t.headers),t.data=Tt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),yn.getAdapter(t.adapter||we.adapter)(t).then(function(a){return Ot(t),a.data=Tt.call(t,t.transformResponse,a),a.headers=R.from(a.headers),a},function(a){return sn(a)||(Ot(t),a&&a.response&&(a.response.data=Tt.call(t,t.transformResponse,a.response),a.response.headers=R.from(a.response.headers))),Promise.reject(a)})}const Cn="1.7.2",Mt={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Mt[t]=function(a){return typeof a===t||"a"+(n<1?"n ":" ")+t}});const bn={};Mt.transitional=function(n,o,a){function i(l,s){return"[Axios v"+Cn+"] Transitional option '"+l+"'"+s+(a?". "+a:"")}return(l,s,r)=>{if(n===!1)throw new V(i(s," has been removed"+(o?" in "+o:"")),V.ERR_DEPRECATED);return o&&!bn[s]&&(bn[s]=!0,console.warn(i(s," has been deprecated since v"+o+" and will be removed in the near future"))),n?n(l,s,r):!0}};function Hp(t,n,o){if(typeof t!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let i=a.length;for(;i-- >0;){const l=a[i],s=n[l];if(s){const r=t[l],c=r===void 0||s(r,l,t);if(c!==!0)throw new V("option "+l+" must be "+c,V.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new V("Unknown option "+l,V.ERR_BAD_OPTION)}}const Dt={assertOptions:Hp,validators:Mt},oe=Dt.validators;class re{constructor(n){this.defaults=n,this.interceptors={request:new on,response:new on}}async request(n,o){try{return await this._request(n,o)}catch(a){if(a instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{a.stack?l&&!String(a.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(a.stack+=`
9
- `+l):a.stack=l}catch{}}throw a}}_request(n,o){typeof n=="string"?(o=o||{},o.url=n):o=n||{},o=se(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:l}=o;a!==void 0&&Dt.assertOptions(a,{silentJSONParsing:oe.transitional(oe.boolean),forcedJSONParsing:oe.transitional(oe.boolean),clarifyTimeoutError:oe.transitional(oe.boolean)},!1),i!=null&&(g.isFunction(i)?o.paramsSerializer={serialize:i}:Dt.assertOptions(i,{encode:oe.function,serialize:oe.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=l&&g.merge(l.common,l[o.method]);l&&g.forEach(["delete","get","head","post","put","patch","common"],u=>{delete l[u]}),o.headers=R.concat(s,l);const r=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(o)===!1||(c=c&&y.synchronous,r.unshift(y.fulfilled,y.rejected))});const h=[];this.interceptors.response.forEach(function(y){h.push(y.fulfilled,y.rejected)});let d,m=0,p;if(!c){const u=[kn.bind(this),void 0];for(u.unshift.apply(u,r),u.push.apply(u,h),p=u.length,d=Promise.resolve(o);m<p;)d=d.then(u[m++],u[m++]);return d}p=r.length;let f=o;for(m=0;m<p;){const u=r[m++],y=r[m++];try{f=u(f)}catch(k){y.call(this,k);break}}try{d=kn.call(this,f)}catch(u){return Promise.reject(u)}for(m=0,p=h.length;m<p;)d=d.then(h[m++],h[m++]);return d}getUri(n){n=se(this.defaults,n);const o=cn(n.baseURL,n.url);return tn(o,n.params,n.paramsSerializer)}}g.forEach(["delete","get","head","options"],function(n){re.prototype[n]=function(o,a){return this.request(se(a||{},{method:n,url:o,data:(a||{}).data}))}}),g.forEach(["post","put","patch"],function(n){function o(a){return function(l,s,r){return this.request(se(r||{},{method:n,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:s}))}}re.prototype[n]=o(),re.prototype[n+"Form"]=o(!0)});class Lt{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(l){o=l});const a=this;this.promise.then(i=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](i);a._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(r=>{a.subscribe(r),l=r}).then(i);return s.cancel=function(){a.unsubscribe(l)},s},n(function(l,s,r){a.reason||(a.reason=new fe(l,s,r),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const o=this._listeners.indexOf(n);o!==-1&&this._listeners.splice(o,1)}static source(){let n;return{token:new Lt(function(i){n=i}),cancel:n}}}function zp(t){return function(o){return t.apply(null,o)}}function Rp(t){return g.isObject(t)&&t.isAxiosError===!0}const Pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pt).forEach(([t,n])=>{Pt[n]=t});function Bn(t){const n=new re(t),o=Ho(re.prototype.request,n);return g.extend(o,re.prototype,n,{allOwnKeys:!0}),g.extend(o,n,null,{allOwnKeys:!0}),o.create=function(i){return Bn(se(t,i))},o}const D=Bn(we);D.Axios=re,D.CanceledError=fe,D.CancelToken=Lt,D.isCancel=sn,D.VERSION=Cn,D.toFormData=Ge,D.AxiosError=V,D.Cancel=D.CanceledError,D.all=function(n){return Promise.all(n)},D.spread=zp,D.isAxiosError=Rp,D.mergeConfig=se,D.AxiosHeaders=R,D.formToJSON=t=>ln(g.isHTMLForm(t)?new FormData(t):t),D.getAdapter=yn.getAdapter,D.HttpStatusCode=Pt,D.default=D;const jp={name:"CmdUploadForm",emits:["click","error","upload-complete","upload-file-success"],mixins:[j,wu],data(){return{comment:"",allowDrop:!1,listOfFiles:[],systemMessages:[],defaultSystemMessageStatus:"",showListOfFileExtensions:!1,resetForm:{},uploadInitiated:!1,errors:{}}},created(){this.resetForm.comment=this.presetComment,this.resetForm.allowDrop=this.allowDrop,this.resetForm.listOfFiles=JSON.parse(JSON.stringify(this.listOfFiles)),this.resetForm.systemMessages=this.systemMessages,this.resetForm.systemMessageStatus=this.systemMessageStatus},props:{showTotalUpload:{type:Boolean,default:!0},componentHandlesUpload:{type:Boolean,default:!0},allowedFileExtensions:{type:Array,required:!0},commentRequired:{type:Boolean,default:!0},commentStatusMessage:{type:String,default:""},enableDragAndDrop:{type:Boolean,default:!1},enableComment:{type:Boolean,default:!0},presetComment:{type:String,default:""},maxTotalUploadSize:{type:Number,default:5242880},maxFileUploadSize:{type:Number,default:10485760},allowMultipleFileUploads:{type:Boolean,default:!1},uploadOptions:{type:Object,required:!1},advancedMode:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},textLegend:{type:String,required:!1},iconDelete:{type:Object,default(){return{iconClass:"icon-delete",iconType:"auto"}}},iconFileUpload:{type:Object,default(){return{iconClass:"icon-file-upload",iconType:"auto"}}},iconFile:{type:Object,default(){return{iconClass:"icon-file",iconType:"auto"}}},iconInvisible:{type:Object,default(){return{iconClass:"icon-not-visible",iconType:"auto"}}},iconVisible:{type:Object,default(){return{iconClass:"icon-visible",iconType:"auto"}}},iconImage:{type:Object,default(){return{iconClass:"icon-image",iconType:"auto"}}},iconUpload:{type:Object,default(){return{iconClass:"icon-upload",iconType:"auto"}}},iconDragAndDrop:{type:Object,default(){return{iconClass:"icon-drag-and-drop",iconType:"auto"}}},iconCancel:{type:Object,default(){return{iconClass:"icon-cancel",iconType:"auto"}}},cmdHeadlineFieldset:{type:Object,required:!1},cmdHeadlineNoFilesToUpload:{type:Object,required:!1},cmdHeadlineNoFileToUpload:{type:Object,required:!1},cmdHeadlineSummaryOfAllFiles:{type:Object,required:!1},cmdHeadlineListOfSelectedFiles:{type:Object,required:!1},cmdHeadlineSelectAdditionalFiles:{type:Object,required:!1},cmdHeadlineSelectNewFile:{type:Object,required:!1}},computed:{headlineTextNoFilesToUpload(){return this.allowMultipleFileUploads?this.getMessage("cmduploadform.no_files_to_upload"):this.this.getMessage("cmduploadform.no_file_to_upload")},fileTypeImage(){return this.allowedFileExtensions.some(t=>t.includes("jpg"))},failedUpload(){return this.listOfFiles.some(t=>t.error)},totalBytesUploaded(){const t=this.listOfFiles.map(n=>[n.file.size,(n.progress||0)*n.file.size/100]).reduce((n,o)=>[n[0]+o[0],n[1]+o[1]]);return this.formatSize(t[1])+"/"+this.formatSize(t[0])},totalSize(){let t=0;for(let n=0;n<this.listOfFiles.length;n++)t=t+this.listOfFiles[n].file.size;return t},allSystemMessages(){return this.maxTotalUploadSize>0&&this.totalSize>this.maxTotalUploadSize?[this.getMessage("cmduploadform.system_message_total_size_of_files_too_large"),...this.systemMessages]:this.systemMessages},systemMessageStatus(){return this.defaultSystemMessageStatus||(this.allSystemMessages.length?"error":"")},dragAndDropHandler(){return this.enableDragAndDrop?{dragenter:this.dragEnter,dragover:this.dragOver,dragleave:this.dragLeave,drop:this.drop}:{}},totalUploadProgress(){const t=this.listOfFiles.map(n=>[n.file.size,(n.progress||0)*n.file.size/100]).reduce((n,o)=>[n[0]+o[0],n[1]+o[1]]);return t[1]/t[0]*100}},watch:{presetComment:{handler(t){this.comment=t},immediate:!0}},methods:{getPercentage(t){return t?t.toFixed(2)+"%":"0.00%"},getFileExtension(t){return de(t)},selectFiles(){this.$refs.formElement.getDomElement().querySelector("input[type='file']").click()},dragEnter(t){this.dragOver(t)},dragOver(t){if(t.dataTransfer&&t.dataTransfer.items&&t.dataTransfer.items.length>0){t.dataTransfer.dropEffect="none";let n=!0;for(let o=0,a=t.dataTransfer.items.length;o<a;++o)if(t.dataTransfer.items[o].kind!=="file"){n=!1;break}n&&(t.preventDefault(),t.dataTransfer.dropEffect="copy",this.allowDrop=!0)}},dragLeave(){this.allowDrop=!1},drop(t){this.allowDrop=!1,t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length>0&&(t.preventDefault(),this.checkFiles(t.dataTransfer.files))},cancelUpload(){this.listOfFiles.forEach(t=>{t.abortController&&t.abortController.abort()}),this.errors={},this.listOfFiles=[],this.hideAllSystemMessages(),this.uploadInitiated=!1},cancel(){this.cancelUpload(),this.$emit("click","cancel")},filesSelected(t){this.checkFiles(t.target.files)},checkFiles(t){if(t.length){this.defaultSystemMessageStatus="",this.systemMessages=[],this.errors={};for(let n=0;n<t.length;n++){const o={file:t[n],progress:null,uploadedBytes:0};if(t[n].size>this.maxFileUploadSize){this.errors.fileSize=!0,this.systemMessages.push(this.getMessage("cmduploadform.system_message.file_size_too_large",t[n].name,t[n].size));continue}if(!this.allowedFileExtensions.includes(de(t[n].name))){this.showListOfFileExtensions=!0,this.errors.fileType=!0,this.systemMessages.push(this.getMessage("cmduploadform.system_message.not_allowed_file_type",t[n].name,de(t[n].name)));continue}if(this.allowMultipleFileUploads&&this.listOfFiles.some(a=>this.compareFiles(a.file,t[n]))){this.systemMessages.push(this.getMessage("cmduploadform.system_message.duplicate_file",t[n].name,de(t[n].name)));continue}if(this.allowMultipleFileUploads)this.listOfFiles.push(o);else{t.length>1&&this.systemMessages.push(this.getMessage("cmduploadform.system_message.only_one_file_allowed")),this.listOfFiles=[o];break}}if(!this.advancedMode){if(this.systemMessages.length){this.$emit("error",{messages:this.systemMessages});return}this.listOfFiles.length&&this.uploadFiles()}}},compareFiles(t,n){return t.name===n.name&&t.lastModified===n.lastModified&&t.size===n.size},removeFile(t){this.listOfFiles.splice(t,1),this.listOfFiles.length||(this.uploadInitiated=!1),this.hideAllSystemMessages()},hideAllSystemMessages(){this.listOfFiles.length||(this.systemMessages=[])},formatSize(t){return t<1024?t:t<1048576?t=Math.round(t/1024*100)/100+" KB":t=Math.round(t/1048576*100)/100+" MB"},uploadFiles(){if(this.systemMessages=[],this.errors={},this.defaultSystemMessageStatus="",this.enableComment&&!this.comment&&this.commentRequired&&this.commentStatusMessage)this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.fill_required"));else if(this.uploadInitiated=!0,this.componentHandlesUpload&&this.uploadOptions&&this.uploadOptions.url){const t=new URL(this.uploadOptions.url,location.href),n=new FormData;Object.entries(this.uploadOptions.additionalParams||{}).forEach(([a,i])=>n.append(a,i)),this.enableComment&&n.append("comment",this.comment);const o=[];this.listOfFiles.forEach(a=>{o.push(this.uploadSingleFile(t,a,n))}),Promise.allSettled(o).then(a=>{const i=a.filter(l=>l.status==="rejected");this.uploadInitiated=!1,i.length?(this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.some_files_are_not_uploaded_successfully"))):(this.defaultSystemMessageStatus="success",this.systemMessages.push(this.getMessage("cmduploadform.system_message.all_files_are_uploaded_successfully"))),this.$emit("upload-complete",{success:!i.length})})}else{let t={};t.listOfFiles=this.listOfFiles,t.type="upload",t.comment=this.comment,this.$emit("click",t,this.showMessage)}},onUploadProgress(t,n){t.lengthComputable?(n.progress=t.loaded/t.total*100,n.uploadedBytes=t.loaded):(n.progress=null,n.uploadedBytes=0),this.$forceUpdate()},uploadSingleFile(t,n,o){return n.abortController=new AbortController,o.set(this.uploadOptions.filesParam?this.uploadOptions.filesParam:"files",n.file),D.post(t,o,{signal:n.abortController.signal,onUploadProgress:a=>this.onUploadProgress(a,n)}).then(a=>(this.$emit("upload-file-success",n),a)).then(a=>{const i=this.listOfFiles.indexOf(n);return i!==-1&&this.listOfFiles.splice(i,1),a}).catch(a=>{throw this.defaultSystemMessageStatus="error",this.systemMessages.push(a),n.error=!0,new Error})},showMessage(t){t===!0?(this.defaultSystemMessageStatus="success",this.systemMessages.push(this.getMessage("cmduploadform.system_message.upload_success"))):t===!1&&(this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.upload_failed")))},resetFields(){if(typeof this.resetForm=="object"){const t=Object.keys(this.resetForm);for(let n of t)typeof this.resetForm[n]=="object"?this[n]=JSON.parse(JSON.stringify(this.resetForm[n])):this[n]=this.resetForm[n]}}}},Up={key:0},Wp={key:1,class:"flex-container vertical"},Gp={key:0,class:"flex-container vertical list-files-wrapper"},Jp={key:0,class:"list-of-files total-files"},Kp={class:"flex-container no-flex"},Zp=["title"],Yp={key:0,class:"progressbar"},Xp=["value","title"],Qp=e.createElementVNode("hr",null,null,-1),$p={class:"flex-container vertical list-files-wrapper"},vp={class:"list-of-files"},eg=["title","onClick"],tg={key:0,class:"progressbar"},og=["value","title"],ng=["title"],lg=e.createElementVNode("hr",null,null,-1),ig={class:"upload-conditions"},ag={class:"small"},sg=["title"],rg={key:0,class:"list-of-file-extensions"},cg={class:"flex-container vertical no-gap"},dg=["disabled"],mg={key:0},hg={key:1},fg={class:"button-wrapper no-flex"},ug=["disabled"],pg={key:0},gg={key:1},yg={key:0,class:"progressbar"},kg=["value","title"];function Cg(t,n,o,a,i,l){const s=O,r=qo,c=N,h=A;return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.advancedMode?(e.openBlock(),e.createElementBlock("fieldset",{key:0,class:e.normalizeClass(["cmd-upload-form flex-container",{"upload-initiated":i.uploadInitiated}])},[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),o.cmdHeadlineFieldset?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadlineFieldset)),null,16)):e.createCommentVNode("",!0),l.systemMessageStatus&&l.allSystemMessages.length?(e.openBlock(),e.createBlock(r,{key:1,iconClose:{show:!1},validationStatus:l.systemMessageStatus,systemMessage:l.allSystemMessages.length===1?l.allSystemMessages[0]:t.getMessage("cmduploadform.system_message.the_following_errors_occurred")},{default:e.withCtx(()=>[l.allSystemMessages.length>1?(e.openBlock(),e.createElementBlock("ul",Up,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.allSystemMessages,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m},e.toDisplayString(d),1))),128))])):e.createCommentVNode("",!0)]),_:1},8,["validationStatus","systemMessage"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.mergeProps({class:["box flex-container vertical",{"drop-area":o.enableDragAndDrop,"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0)),[i.listOfFiles.length?(e.openBlock(),e.createElementBlock("div",Wp,[o.showTotalUpload&&i.listOfFiles.length!==1?(e.openBlock(),e.createElementBlock("div",Gp,[e.createVNode(s,e.mergeProps(o.cmdHeadlineSummaryOfAllFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.summary_of_all_files")),1)]),_:1},16),o.showTotalUpload&&i.listOfFiles.length!==1?(e.openBlock(),e.createElementBlock("ul",Jp,[e.createElementVNode("li",Kp,[e.createElementVNode("a",{href:"#",title:t.getMessage("cmduploadform.labeltext.remove_all_files_from_list"),onClick:n[0]||(n[0]=e.withModifiers((...d)=>l.cancelUpload&&l.cancelUpload(...d),["prevent"]))},[e.createVNode(c,{iconClass:t.deleteIcon.iconClass,type:t.deleteIcon.iconClass},null,8,["iconClass","type"])],8,Zp),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(i.listOfFiles.length)+" ",1),o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.labeltext.files_uploading")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.labeltext.file_uploading")),1)],64))]),e.createElementVNode("small",{class:e.normalizeClass(["text-align-right",{error:o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize}])}," ("+e.toDisplayString(l.formatSize(l.totalSize))+") ",3),i.uploadInitiated?(e.openBlock(),e.createElementBlock("span",Yp,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(l.totalUploadProgress)),1),e.createElementVNode("progress",{max:"100",value:l.totalUploadProgress,title:l.totalBytesUploaded},null,8,Xp)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),Qp])):e.createCommentVNode("",!0),e.createElementVNode("div",$p,[e.createVNode(s,e.mergeProps(o.cmdHeadlineListOfSelectedFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.list_of_selected_files")),1)]),_:1},16),e.createElementVNode("ul",vp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.listOfFiles,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:"flex-container no-flex"},[e.createElementVNode("a",{href:"#",title:t.getMessage("cmduploadform.labeltext.remove_file_from_list",d.file.name),onClick:e.withModifiers(p=>l.removeFile(m),["prevent"])},[e.createVNode(c,{iconClass:o.iconDelete.iconClass,type:o.iconDelete.iconType},null,8,["iconClass","type"])],8,eg),e.createElementVNode("span",{class:e.normalizeClass(["text-align-right",d.allowedType?"allowed":"not-allowed",{error:d.error}])},[e.createTextVNode(e.toDisplayString(d.file.name)+" ",1),e.createElementVNode("small",null,"("+e.toDisplayString(l.formatSize(d.file.size))+")",1)],2),i.uploadInitiated&&!d.error?(e.openBlock(),e.createElementBlock("span",tg,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(d.progress)),1),e.createElementVNode("progress",{max:"100",value:d.progress,title:l.formatSize(d.uploadedBytes)+"/"+l.formatSize(d.file.size)},null,8,og)])):e.createCommentVNode("",!0)]))),128))]),l.failedUpload?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[1]||(n[1]=e.withModifiers((...d)=>l.cancel&&l.cancel(...d),["prevent"])),title:t.getMessage("cmduploadform.all_files_will_be_removed")},e.toDisplayString(t.getMessage("cmduploadform.reset_upload")),9,ng)):e.createCommentVNode("",!0),lg])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.allowMultipleFileUploads?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdHeadlineNoFilesToUpload,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.headlineTextNoFilesToUpload),1)]),_:1},16)):e.createCommentVNode("",!0)],64)),e.createElementVNode("div",ig,[o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdHeadlineSelectAdditionalFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.select_additional_files")),1)]),_:1},16)):e.createCommentVNode("",!0),!o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createBlock(s,e.mergeProps({key:1},o.cmdHeadlineSelectNewFile,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.select_new_file")),1)]),_:1},16)):e.createCommentVNode("",!0),e.createElementVNode("dl",ag,[o.maxTotalUploadSize>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("dt",{class:e.normalizeClass({error:l.totalSize>o.maxTotalUploadSize})},e.toDisplayString(t.getMessage("cmduploadform.max_total_upload_size")),3),e.createElementVNode("dd",{class:e.normalizeClass(["text-align-right",{error:l.totalSize>o.maxTotalUploadSize}])},e.toDisplayString(l.formatSize(o.maxTotalUploadSize)),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("dt",{class:e.normalizeClass({error:i.errors.fileSize})},e.toDisplayString(t.getMessage("cmduploadform.max_file_upload_size")),3),e.createElementVNode("dd",{class:e.normalizeClass(["text-align-right",{error:i.errors.fileSize}])},e.toDisplayString(l.formatSize(o.maxFileUploadSize)),3),e.createElementVNode("dt",{class:e.normalizeClass({error:i.errors.fileType})},e.toDisplayString(t.getMessage("cmduploadform.allowed_file_types")),3),e.createElementVNode("dd",null,[e.createElementVNode("a",{href:"#",onClick:n[2]||(n[2]=e.withModifiers(d=>i.showListOfFileExtensions=!i.showListOfFileExtensions,["prevent"])),title:t.getMessage("cmduploadform.tooltip.toggle_list_of_allowed_file_types")},[e.createVNode(c,{iconClass:i.showListOfFileExtensions?o.iconInvisible.iconClass:o.iconVisible.iconClass,type:i.showListOfFileExtensions?o.iconInvisible.iconType:o.iconVisible.iconType},null,8,["iconClass","type"])],8,sg),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showListOfFileExtensions?(e.openBlock(),e.createElementBlock("ul",rg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.allowedFileExtensions,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:e.normalizeClass({error:i.errors.fileType})},e.toDisplayString(d),3))),128))])):e.createCommentVNode("",!0)]),_:1})])])]),e.createElementVNode("div",cg,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["button upload primary",{disabled:i.uploadInitiated}]),disabled:i.uploadInitiated,onClick:n[3]||(n[3]=d=>l.selectFiles())},[e.createVNode(c,{iconClass:o.iconFileUpload.iconClass,type:o.iconFileUpload.iconType},null,8,["iconClass","type"]),o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock("span",mg,e.toDisplayString(t.getMessage("cmduploadform.labeltext.select_files")),1)):(e.openBlock(),e.createElementBlock("span",hg,e.toDisplayString(t.getMessage("cmduploadform.labeltext.select_file")),1))],10,dg),o.enableDragAndDrop?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["text-drag-and-drop",{disabled:i.uploadInitiated}])},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.or")),1),e.createElementVNode("strong",null,[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.drag_and_drop"))+" ",1),o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.additional")),1)],64)):e.createCommentVNode("",!0),!o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.new")),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.getMessage("cmduploadform.files_to_this_area")),1)])],2)):e.createCommentVNode("",!0)])],16),o.enableComment?(e.openBlock(),e.createBlock(h,{key:2,element:"textarea",labelText:t.getMessage("cmduploadform.labeltext.comment"),modelValue:i.comment,"onUpdate:modelValue":n[4]||(n[4]=d=>i.comment=d),required:o.commentRequired,validationMessage:o.commentStatusMessage,placeholder:t.getMessage("cmduploadform.placeholder.comment"),status:o.commentStatusMessage?"error":""},null,8,["labelText","modelValue","required","validationMessage","placeholder","status"])):e.createCommentVNode("",!0),e.createElementVNode("div",fg,[e.createElementVNode("button",{class:e.normalizeClass(["button primary",{disabled:i.listOfFiles.length===0||o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize||i.uploadInitiated}]),disabled:i.listOfFiles.length===0||o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize||i.uploadInitiated,onClick:n[5]||(n[5]=(...d)=>l.uploadFiles&&l.uploadFiles(...d))},[e.createVNode(c,{iconClass:o.iconUpload.iconClass,type:o.iconUpload.iconType},null,8,["iconClass","type"]),i.listOfFiles.length===1||!o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock("span",pg,e.toDisplayString(t.getMessage("cmduploadform.buttontext.upload_file")),1)):(e.openBlock(),e.createElementBlock("span",gg,e.toDisplayString(t.getMessage("cmduploadform.buttontext.upload_files")),1))],10,ug),e.createElementVNode("button",{class:e.normalizeClass(["button",{disabled:i.listOfFiles.length===0}]),onClick:n[6]||(n[6]=(...d)=>l.cancel&&l.cancel(...d))},[e.createVNode(c,{iconClass:o.iconCancel.iconClass,type:o.iconCancel.iconType},null,8,["iconClass","type"]),e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.buttontext.cancel")),1)],2)])],2)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:1,href:"#",onClick:n[7]||(n[7]=e.withModifiers((...d)=>l.selectFiles&&l.selectFiles(...d),["prevent"])),class:["cmd-upload-form box",{"drop-area":o.enableDragAndDrop,"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0)),[i.uploadInitiated?(e.openBlock(),e.createElementBlock("span",yg,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(l.totalUploadProgress)),1),e.createElementVNode("progress",{max:"100",value:l.totalUploadProgress,title:l.totalBytesUploaded},null,8,kg)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[o.enableDragAndDrop?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.drag_and_drop_file_here")),1),e.createVNode(c,{iconClass:o.iconDragAndDrop.iconClass,type:o.iconDragAndDrop.iconType},null,8,["iconClass","type"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.fileTypeImage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.select_image")),1),e.createVNode(c,{iconClass:o.iconImage.iconClass,type:o.iconImage.iconType},null,8,["iconClass","type"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.select_file")),1),e.createVNode(c,{iconClass:o.iconFileUpload.iconClass,type:o.iconFileUpload.iconType},null,8,["iconClass","type"])],64))],64)),e.createElementVNode("small",null,e.toDisplayString(t.getMessage("cmduploadform.max_upload_size"))+" "+e.toDisplayString(l.formatSize(o.maxFileUploadSize)),1),e.createElementVNode("small",null,e.toDisplayString(t.getMessage("cmduploadform.allowed_file_types"))+" "+e.toDisplayString(o.allowedFileExtensions),1)])],16)),e.createVNode(h,{element:"input",type:"file",labelText:t.getMessage("cmduploadform.labeltext.select_files"),disabled:i.uploadInitiated,multiple:o.allowMultipleFileUploads,onChange:l.filesSelected,ref:"formElement"},null,8,["labelText","disabled","multiple","onChange"])],64)}const bg=B(jp,[["render",Cg]]),Bg={name:"CmdWidthLimitationWrapper",props:{numberOfColumns:{type:Number,default:1,validator(t){return t>=0}},contentType:{type:String,default:"flex"},innerComponent:{type:String,default:"section",validator(t){return t}},useInnerSection:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1},sectionClass:{type:String,required:!1},anchorId:{type:String,required:!1},contentTypeOrientation:{type:String,default:"horizontal"},cmdHeadline:{type:Object,required:!1}},computed:{setSectionClass(){return this.sectionClass?this.sectionClass:this.innerComponent==="header"?"grid-container-create-columns":this.innerComponent==="footer"?"flex-container":""},setInnerClass(){if(this.contentType==="grid")return"grid-container-create-columns";if(this.contentType==="flex"){if(this.contentTypeOrientation==="horizontal")return"flex-container";if(this.contentTypeOrientation==="vertical")return"flex-container vertical"}return""},setOuterId(){return this.innerComponent==="header"?"site-header":this.innerComponent==="footer"?"site-footer":""}}},wg=["id"],_g=["id"];function xg(t,n,o,a,i,l){const s=O;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-width-limitation-wrapper",{sticky:o.sticky}])},[o.useInnerSection?(e.openBlock(),e.createElementBlock("section",{key:0,class:e.normalizeClass(l.setSectionClass),id:o.anchorId},[o.cmdHeadline?(e.openBlock(),e.createBlock(s,{key:0,"pre-headline-text":o.cmdHeadline.preHeadlineText,"headline-text":o.cmdHeadline.headlineText,"headline-level":o.cmdHeadline.headlineLevel},null,8,["pre-headline-text","headline-text","headline-level"])):e.createCommentVNode("",!0),o.numberOfColumns===1?e.renderSlot(t.$slots,"default",{key:1}):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.setInnerClass)},[e.renderSlot(t.$slots,"default")],2))],10,wg)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.anchorId?(e.openBlock(),e.createElementBlock("a",{key:0,id:o.anchorId},null,8,_g)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],64))],2)}const Eg=B(Bg,[["render",xg]]),Sg={name:"ContactInformation",props:{cmdBasicForm:{type:Object,default:null},cmdAddressData:{type:Object,default:null},cmdGoogleMaps:{type:Object,default:null}},computed:{contactFormOnly(){return!(this.cmdAddressData||this.cmdGoogleMaps||!this.isSlotEmpty)},isSlotEmpty(){return!this.$scopedSlots["custom-info"]}}},Vg={key:1,class:"flex-container"},Tg={class:"flex-container vertical"};function Ng(t,n,o,a,i,l){const s=yo,r=po,c=Fo;return l.contactFormOnly?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},t.basicForm)),null,16)):(e.openBlock(),e.createElementBlock("div",Vg,[e.createVNode(s,e.normalizeProps(e.guardReactiveProps(t.basicForm)),null,16),e.createElementVNode("div",Tg,[o.cmdAddressData?(e.openBlock(),e.createBlock(r,e.normalizeProps(e.mergeProps({key:0},o.cmdAddressData)),null,16)):e.createCommentVNode("",!0),o.cmdGoogleMaps?(e.openBlock(),e.createBlock(c,e.normalizeProps(e.mergeProps({key:1},o.cmdGoogleMaps)),null,16)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"additional-info")])]))}const Ig=B(Sg,[["render",Ng]]),Fg={name:"MultipleBoxWrapper",props:{segments:{type:Array,default:null}}},Og={class:"cmd-page-multiple-box-wrapper flex-container vertical"};function Mg(t,n,o,a,i,l){const s=Ct,r=So;return e.openBlock(),e.createElementBlock("div",Og,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.segments,(c,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createVNode(r,{boxesPerRow:c.boxesPerRow,useRowViewAsDefault:c.useRowViewAsDefault,useGap:c.useGap,cmdHeadline:c.cmdHeadline},{default:e.withCtx(d=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.boxes,(m,p)=>(e.openBlock(),e.createBlock(s,e.mergeProps({"use-slots":["box-body"],key:p},m,{rowView:d.rowView}),{default:e.withCtx(()=>[e.createTextVNode(" box "+e.toDisplayString(m),1)]),_:2},1040,["rowView"]))),128))]),_:2},1032,["boxesPerRow","useRowViewAsDefault","useGap","cmdHeadline"]),e.renderSlot(t.$slots,"multiple-box-wrapper-slot-${index}")],64))),128))])}const Dg=B(Fg,[["render",Mg]]),Lg={name:"MultipleListsOfLinks",props:{segments:{type:Array,default:null}}},Pg={class:"cmd-page-multiple-lists-of-links flex-container vertical"};function Ag(t,n,o,a,i,l){const s=yt;return e.openBlock(),e.createElementBlock("div",Pg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.segments,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[e.createVNode(s,{links:r.links,orientation:r.orientation,largeIcons:r.largeIcons,cmdHeadline:r.headline},null,8,["links","orientation","largeIcons","cmdHeadline"]),e.renderSlot(t.$slots,"multiple-lists-of-links-slot-${index}")],64))),128))])}const qg=B(Lg,[["render",Ag]]),Hg={mounted(t){if(t.tagName==="INPUT"||t.tagName==="SELECT"||t.tagName==="TEXTAREA"||t.tagName==="A")t.focus();else{const n=t.querySelector("input, select, textarea");n?n.focus():console.warn("No input-element for focus-directive on element "+t.tagName+" found!")}}},zg={mounted(t,n){if(n.value&&typeof n.value=="string"){let o=/[^\d]/g,a=n.value.replace(/^\s*\+/,"00");t.href="tel:"+a.replace(o,"")}}};function Rg(){const t={};e.onBeforeUpdate(a);function n(i="defaultSequence"){const l=t[i]||0;return t[i]=l+1,t[i]}function o(i="defaultSequence"){return t[i]||0}function a(i="defaultSequence"){t[i]&&(t[i]=0)}return{nextSequenceValue:n,currentSequenceValue:o,resetSequence:a}}b.CmdAddressData=po,b.CmdBackToTopButton=Ha,b.CmdBankAccountData=Ja,b.CmdBasicForm=yo,b.CmdBox=Ct,b.CmdBoxWrapper=So,b.CmdBreadcrumbs=Vo,b.CmdCompanyLogo=To,b.CmdContainer=Tc,b.CmdCookieDisclaimer=Wc,b.CmdCopyrightInformation=Yc,b.CmdFakeSelect=No,b.CmdFancyBox=$s,b.CmdForm=go,b.CmdFormElement=A,b.CmdFormFilters=Io,b.CmdGoogleMaps=Fo,b.CmdHeadline=O,b.CmdIcon=N,b.CmdImage=ae,b.CmdImageGallery=Md,b.CmdImageZoom=jd,b.CmdInputGroup=Do,b.CmdLink=Bo,b.CmdListOfLinks=yt,b.CmdLoginForm=gm,b.CmdMainNavigation=Lo,b.CmdMultistepFormProgressBar=Rm,b.CmdNewsletterSubscription=Jm,b.CmdOpeningHours=Ch,b.CmdPageFooter=Gh,b.CmdPageHeader=Xh,b.CmdPagination=Ih,b.CmdProgressBar=nf,b.CmdSidebar=mf,b.CmdSiteFooter=pf,b.CmdSiteHeader=Cf,b.CmdSiteSearch=Tf,b.CmdSlideButton=ke,b.CmdSlideshow=Pf,b.CmdSocialNetworks=Ao,b.CmdSwitchLanguage=Wf,b.CmdSystemMessage=qo,b.CmdTable=ou,b.CmdTabs=du,b.CmdTextImageBlock=yu,b.CmdThumbnailScroller=Co,b.CmdToggleDarkMode=Bu,b.CmdTooltip=uo,b.CmdUploadForm=bg,b.CmdWidthLimitationWrapper=Eg,b.ContactInformation=Ig,b.DirFocus=Hg,b.DirTelephone=zg,b.EditComponentWrapper=te,b.MultipleBoxWrapper=Dg,b.MultipleListsOfLinks=qg,b.createHtmlId=ft,b.createUuid=ce,b.getFileExtension=de,b.openFancyBox=Ce,b.useSequence=Rg,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
9
+ `+l):a.stack=l}catch{}}throw a}}_request(n,o){typeof n=="string"?(o=o||{},o.url=n):o=n||{},o=se(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:l}=o;a!==void 0&&Dt.assertOptions(a,{silentJSONParsing:oe.transitional(oe.boolean),forcedJSONParsing:oe.transitional(oe.boolean),clarifyTimeoutError:oe.transitional(oe.boolean)},!1),i!=null&&(g.isFunction(i)?o.paramsSerializer={serialize:i}:Dt.assertOptions(i,{encode:oe.function,serialize:oe.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=l&&g.merge(l.common,l[o.method]);l&&g.forEach(["delete","get","head","post","put","patch","common"],u=>{delete l[u]}),o.headers=R.concat(s,l);const r=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(o)===!1||(c=c&&y.synchronous,r.unshift(y.fulfilled,y.rejected))});const h=[];this.interceptors.response.forEach(function(y){h.push(y.fulfilled,y.rejected)});let d,m=0,p;if(!c){const u=[kn.bind(this),void 0];for(u.unshift.apply(u,r),u.push.apply(u,h),p=u.length,d=Promise.resolve(o);m<p;)d=d.then(u[m++],u[m++]);return d}p=r.length;let f=o;for(m=0;m<p;){const u=r[m++],y=r[m++];try{f=u(f)}catch(k){y.call(this,k);break}}try{d=kn.call(this,f)}catch(u){return Promise.reject(u)}for(m=0,p=h.length;m<p;)d=d.then(h[m++],h[m++]);return d}getUri(n){n=se(this.defaults,n);const o=cn(n.baseURL,n.url);return tn(o,n.params,n.paramsSerializer)}}g.forEach(["delete","get","head","options"],function(n){re.prototype[n]=function(o,a){return this.request(se(a||{},{method:n,url:o,data:(a||{}).data}))}}),g.forEach(["post","put","patch"],function(n){function o(a){return function(l,s,r){return this.request(se(r||{},{method:n,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:s}))}}re.prototype[n]=o(),re.prototype[n+"Form"]=o(!0)});class Lt{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(l){o=l});const a=this;this.promise.then(i=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](i);a._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(r=>{a.subscribe(r),l=r}).then(i);return s.cancel=function(){a.unsubscribe(l)},s},n(function(l,s,r){a.reason||(a.reason=new fe(l,s,r),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const o=this._listeners.indexOf(n);o!==-1&&this._listeners.splice(o,1)}static source(){let n;return{token:new Lt(function(i){n=i}),cancel:n}}}function zp(t){return function(o){return t.apply(null,o)}}function Rp(t){return g.isObject(t)&&t.isAxiosError===!0}const Pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pt).forEach(([t,n])=>{Pt[n]=t});function Bn(t){const n=new re(t),o=Ho(re.prototype.request,n);return g.extend(o,re.prototype,n,{allOwnKeys:!0}),g.extend(o,n,null,{allOwnKeys:!0}),o.create=function(i){return Bn(se(t,i))},o}const D=Bn(we);D.Axios=re,D.CanceledError=fe,D.CancelToken=Lt,D.isCancel=sn,D.VERSION=Cn,D.toFormData=Ge,D.AxiosError=V,D.Cancel=D.CanceledError,D.all=function(n){return Promise.all(n)},D.spread=zp,D.isAxiosError=Rp,D.mergeConfig=se,D.AxiosHeaders=R,D.formToJSON=t=>ln(g.isHTMLForm(t)?new FormData(t):t),D.getAdapter=yn.getAdapter,D.HttpStatusCode=Pt,D.default=D;const jp={name:"CmdUploadForm",emits:["click","error","upload-complete","upload-file-success"],mixins:[j,wu],data(){return{comment:"",allowDrop:!1,listOfFiles:[],systemMessages:[],defaultSystemMessageStatus:"",showListOfFileExtensions:!1,resetForm:{},uploadInitiated:!1,errors:{}}},created(){this.resetForm.comment=this.presetComment,this.resetForm.allowDrop=this.allowDrop,this.resetForm.listOfFiles=JSON.parse(JSON.stringify(this.listOfFiles)),this.resetForm.systemMessages=this.systemMessages,this.resetForm.systemMessageStatus=this.systemMessageStatus},props:{showTotalUpload:{type:Boolean,default:!0},componentHandlesUpload:{type:Boolean,default:!0},allowedFileExtensions:{type:Array,required:!0},commentRequired:{type:Boolean,default:!0},commentStatusMessage:{type:String,default:""},enableDragAndDrop:{type:Boolean,default:!1},enableComment:{type:Boolean,default:!0},presetComment:{type:String,default:""},maxTotalUploadSize:{type:Number,default:5242880},maxFileUploadSize:{type:Number,default:10485760},allowMultipleFileUploads:{type:Boolean,default:!1},uploadOptions:{type:Object,required:!1},advancedMode:{type:Boolean,default:!0},showLegend:{type:Boolean,default:!0},textLegend:{type:String,required:!1},iconDelete:{type:Object,default(){return{iconClass:"icon-delete",iconType:"auto"}}},iconFileUpload:{type:Object,default(){return{iconClass:"icon-file-upload",iconType:"auto"}}},iconFile:{type:Object,default(){return{iconClass:"icon-file",iconType:"auto"}}},iconInvisible:{type:Object,default(){return{iconClass:"icon-not-visible",iconType:"auto"}}},iconVisible:{type:Object,default(){return{iconClass:"icon-visible",iconType:"auto"}}},iconImage:{type:Object,default(){return{iconClass:"icon-image",iconType:"auto"}}},iconUpload:{type:Object,default(){return{iconClass:"icon-upload",iconType:"auto"}}},iconDragAndDrop:{type:Object,default(){return{iconClass:"icon-drag-and-drop",iconType:"auto"}}},iconCancel:{type:Object,default(){return{iconClass:"icon-cancel",iconType:"auto"}}},cmdHeadlineFieldset:{type:Object,required:!1},cmdHeadlineNoFilesToUpload:{type:Object,required:!1},cmdHeadlineNoFileToUpload:{type:Object,required:!1},cmdHeadlineSummaryOfAllFiles:{type:Object,required:!1},cmdHeadlineListOfSelectedFiles:{type:Object,required:!1},cmdHeadlineSelectAdditionalFiles:{type:Object,required:!1},cmdHeadlineSelectNewFile:{type:Object,required:!1}},computed:{headlineTextNoFilesToUpload(){return this.allowMultipleFileUploads?this.getMessage("cmduploadform.no_files_to_upload"):this.this.getMessage("cmduploadform.no_file_to_upload")},fileTypeImage(){return this.allowedFileExtensions.some(t=>t.includes("jpg"))},failedUpload(){return this.listOfFiles.some(t=>t.error)},totalBytesUploaded(){const t=this.listOfFiles.map(n=>[n.file.size,(n.progress||0)*n.file.size/100]).reduce((n,o)=>[n[0]+o[0],n[1]+o[1]]);return this.formatSize(t[1])+"/"+this.formatSize(t[0])},totalSize(){let t=0;for(let n=0;n<this.listOfFiles.length;n++)t=t+this.listOfFiles[n].file.size;return t},allSystemMessages(){return this.maxTotalUploadSize>0&&this.totalSize>this.maxTotalUploadSize?[this.getMessage("cmduploadform.system_message_total_size_of_files_too_large"),...this.systemMessages]:this.systemMessages},systemMessageStatus(){return this.defaultSystemMessageStatus||(this.allSystemMessages.length?"error":"")},dragAndDropHandler(){return this.enableDragAndDrop?{dragenter:this.dragEnter,dragover:this.dragOver,dragleave:this.dragLeave,drop:this.drop}:{}},totalUploadProgress(){const t=this.listOfFiles.map(n=>[n.file.size,(n.progress||0)*n.file.size/100]).reduce((n,o)=>[n[0]+o[0],n[1]+o[1]]);return t[1]/t[0]*100}},watch:{presetComment:{handler(t){this.comment=t},immediate:!0}},methods:{getPercentage(t){return t?t.toFixed(2)+"%":"0.00%"},getFileExtension(t){return de(t)},selectFiles(){this.$refs.formElement.getDomElement().querySelector("input[type='file']").click()},dragEnter(t){this.dragOver(t)},dragOver(t){if(t.dataTransfer&&t.dataTransfer.items&&t.dataTransfer.items.length>0){t.dataTransfer.dropEffect="none";let n=!0;for(let o=0,a=t.dataTransfer.items.length;o<a;++o)if(t.dataTransfer.items[o].kind!=="file"){n=!1;break}n&&(t.preventDefault(),t.dataTransfer.dropEffect="copy",this.allowDrop=!0)}},dragLeave(){this.allowDrop=!1},drop(t){this.allowDrop=!1,t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length>0&&(t.preventDefault(),this.checkFiles(t.dataTransfer.files))},cancelUpload(){this.listOfFiles.forEach(t=>{t.abortController&&t.abortController.abort()}),this.errors={},this.listOfFiles=[],this.hideAllSystemMessages(),this.uploadInitiated=!1},cancel(){this.cancelUpload(),this.$emit("click","cancel")},filesSelected(t){this.checkFiles(t.target.files)},checkFiles(t){if(t.length){this.defaultSystemMessageStatus="",this.systemMessages=[],this.errors={};for(let n=0;n<t.length;n++){const o={file:t[n],progress:null,uploadedBytes:0};if(t[n].size>this.maxFileUploadSize){this.errors.fileSize=!0,this.systemMessages.push(this.getMessage("cmduploadform.system_message.file_size_too_large",t[n].name,t[n].size));continue}if(!this.allowedFileExtensions.includes(de(t[n].name))){this.showListOfFileExtensions=!0,this.errors.fileType=!0,this.systemMessages.push(this.getMessage("cmduploadform.system_message.not_allowed_file_type",t[n].name,de(t[n].name)));continue}if(this.allowMultipleFileUploads&&this.listOfFiles.some(a=>this.compareFiles(a.file,t[n]))){this.systemMessages.push(this.getMessage("cmduploadform.system_message.duplicate_file",t[n].name,de(t[n].name)));continue}if(this.allowMultipleFileUploads)this.listOfFiles.push(o);else{t.length>1&&this.systemMessages.push(this.getMessage("cmduploadform.system_message.only_one_file_allowed")),this.listOfFiles=[o];break}}if(!this.advancedMode){if(this.systemMessages.length){this.$emit("error",{messages:this.systemMessages});return}this.listOfFiles.length&&this.uploadFiles()}}},compareFiles(t,n){return t.name===n.name&&t.lastModified===n.lastModified&&t.size===n.size},removeFile(t){this.listOfFiles.splice(t,1),this.listOfFiles.length||(this.uploadInitiated=!1),this.hideAllSystemMessages()},hideAllSystemMessages(){this.listOfFiles.length||(this.systemMessages=[])},formatSize(t){return t<1024?t:t<1048576?t=Math.round(t/1024*100)/100+" KB":t=Math.round(t/1048576*100)/100+" MB"},uploadFiles(){if(this.systemMessages=[],this.errors={},this.defaultSystemMessageStatus="",this.enableComment&&!this.comment&&this.commentRequired&&this.commentStatusMessage)this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.fill_required"));else if(this.uploadInitiated=!0,this.componentHandlesUpload&&this.uploadOptions&&this.uploadOptions.url){const t=new URL(this.uploadOptions.url,location.href),n=new FormData;Object.entries(this.uploadOptions.additionalParams||{}).forEach(([a,i])=>n.append(a,i)),this.enableComment&&n.append("comment",this.comment);const o=[];this.listOfFiles.forEach(a=>{o.push(this.uploadSingleFile(t,a,n))}),Promise.allSettled(o).then(a=>{const i=a.filter(l=>l.status==="rejected");this.uploadInitiated=!1,i.length?(this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.some_files_are_not_uploaded_successfully"))):(this.defaultSystemMessageStatus="success",this.systemMessages.push(this.getMessage("cmduploadform.system_message.all_files_are_uploaded_successfully"))),this.$emit("upload-complete",{success:!i.length})})}else{let t={};t.listOfFiles=this.listOfFiles,t.type="upload",t.comment=this.comment,this.$emit("click",t,this.showMessage)}},onUploadProgress(t,n){t.lengthComputable?(n.progress=t.loaded/t.total*100,n.uploadedBytes=t.loaded):(n.progress=null,n.uploadedBytes=0),this.$forceUpdate()},uploadSingleFile(t,n,o){return n.abortController=new AbortController,o.set(this.uploadOptions.filesParam?this.uploadOptions.filesParam:"files",n.file),D.post(t,o,{signal:n.abortController.signal,onUploadProgress:a=>this.onUploadProgress(a,n)}).then(a=>(this.$emit("upload-file-success",n),a)).then(a=>{const i=this.listOfFiles.indexOf(n);return i!==-1&&this.listOfFiles.splice(i,1),a}).catch(a=>{throw this.defaultSystemMessageStatus="error",this.systemMessages.push(a),n.error=!0,new Error})},showMessage(t){t===!0?(this.defaultSystemMessageStatus="success",this.systemMessages.push(this.getMessage("cmduploadform.system_message.upload_success"))):t===!1&&(this.defaultSystemMessageStatus="error",this.systemMessages.push(this.getMessage("cmduploadform.system_message.upload_failed")))},resetFields(){if(typeof this.resetForm=="object"){const t=Object.keys(this.resetForm);for(let n of t)typeof this.resetForm[n]=="object"?this[n]=JSON.parse(JSON.stringify(this.resetForm[n])):this[n]=this.resetForm[n]}}}},Up={key:0},Wp={key:1,class:"flex-container vertical"},Gp={key:0,class:"flex-container vertical list-files-wrapper"},Jp={key:0,class:"list-of-files total-files"},Kp={class:"flex-container no-flex"},Zp=["title"],Yp={key:0,class:"progressbar"},Xp=["value","title"],Qp=e.createElementVNode("hr",null,null,-1),$p={class:"flex-container vertical list-files-wrapper"},vp={class:"list-of-files"},eg=["title","onClick"],tg={key:0,class:"progressbar"},og=["value","title"],ng=["title"],lg=e.createElementVNode("hr",null,null,-1),ig={class:"upload-conditions"},ag={class:"small"},sg=["title"],rg={key:0,class:"list-of-file-extensions"},cg={class:"flex-container vertical no-gap"},dg=["disabled"],mg={key:0},hg={key:1},fg={class:"button-wrapper no-flex"},ug=["disabled"],pg={key:0},gg={key:1},yg={key:0,class:"progressbar"},kg=["value","title"];function Cg(t,n,o,a,i,l){const s=O,r=qo,c=N,h=A;return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.advancedMode?(e.openBlock(),e.createElementBlock("fieldset",{key:0,class:e.normalizeClass(["cmd-upload-form flex-container",{"upload-initiated":i.uploadInitiated}])},[e.createElementVNode("legend",{class:e.normalizeClass({hidden:!o.showLegend})},e.toDisplayString(o.textLegend),3),o.cmdHeadlineFieldset?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.cmdHeadlineFieldset)),null,16)):e.createCommentVNode("",!0),l.systemMessageStatus&&l.allSystemMessages.length?(e.openBlock(),e.createBlock(r,{key:1,iconClose:{show:!1},validationStatus:l.systemMessageStatus,systemMessage:l.allSystemMessages.length===1?l.allSystemMessages[0]:t.getMessage("cmduploadform.system_message.the_following_errors_occurred")},{default:e.withCtx(()=>[l.allSystemMessages.length>1?(e.openBlock(),e.createElementBlock("ul",Up,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.allSystemMessages,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m},e.toDisplayString(d),1))),128))])):e.createCommentVNode("",!0)]),_:1},8,["validationStatus","systemMessage"])):e.createCommentVNode("",!0),e.createElementVNode("div",e.mergeProps({class:["box flex-container vertical",{"drop-area":o.enableDragAndDrop,"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0)),[i.listOfFiles.length?(e.openBlock(),e.createElementBlock("div",Wp,[o.showTotalUpload&&i.listOfFiles.length!==1?(e.openBlock(),e.createElementBlock("div",Gp,[e.createVNode(s,e.mergeProps(o.cmdHeadlineSummaryOfAllFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.summary_of_all_files")),1)]),_:1},16),o.showTotalUpload&&i.listOfFiles.length!==1?(e.openBlock(),e.createElementBlock("ul",Jp,[e.createElementVNode("li",Kp,[e.createElementVNode("a",{href:"#",title:t.getMessage("cmduploadform.labeltext.remove_all_files_from_list"),onClick:n[0]||(n[0]=e.withModifiers((...d)=>l.cancelUpload&&l.cancelUpload(...d),["prevent"]))},[e.createVNode(c,{iconClass:t.deleteIcon.iconClass,type:t.deleteIcon.iconClass},null,8,["iconClass","type"])],8,Zp),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(i.listOfFiles.length)+" ",1),o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.labeltext.files_uploading")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.labeltext.file_uploading")),1)],64))]),e.createElementVNode("small",{class:e.normalizeClass(["text-align-right",{error:o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize}])}," ("+e.toDisplayString(l.formatSize(l.totalSize))+") ",3),i.uploadInitiated?(e.openBlock(),e.createElementBlock("span",Yp,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(l.totalUploadProgress)),1),e.createElementVNode("progress",{max:"100",value:l.totalUploadProgress,title:l.totalBytesUploaded},null,8,Xp)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),Qp])):e.createCommentVNode("",!0),e.createElementVNode("div",$p,[e.createVNode(s,e.mergeProps(o.cmdHeadlineListOfSelectedFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.list_of_selected_files")),1)]),_:1},16),e.createElementVNode("ul",vp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.listOfFiles,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:"flex-container no-flex"},[e.createElementVNode("a",{href:"#",title:t.getMessage("cmduploadform.labeltext.remove_file_from_list",d.file.name),onClick:e.withModifiers(p=>l.removeFile(m),["prevent"])},[e.createVNode(c,{iconClass:o.iconDelete.iconClass,type:o.iconDelete.iconType},null,8,["iconClass","type"])],8,eg),e.createElementVNode("span",{class:e.normalizeClass(["text-align-right",d.allowedType?"allowed":"not-allowed",{error:d.error}])},[e.createTextVNode(e.toDisplayString(d.file.name)+" ",1),e.createElementVNode("small",null,"("+e.toDisplayString(l.formatSize(d.file.size))+")",1)],2),i.uploadInitiated&&!d.error?(e.openBlock(),e.createElementBlock("span",tg,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(d.progress)),1),e.createElementVNode("progress",{max:"100",value:d.progress,title:l.formatSize(d.uploadedBytes)+"/"+l.formatSize(d.file.size)},null,8,og)])):e.createCommentVNode("",!0)]))),128))]),l.failedUpload?(e.openBlock(),e.createElementBlock("a",{key:0,href:"#",onClick:n[1]||(n[1]=e.withModifiers((...d)=>l.cancel&&l.cancel(...d),["prevent"])),title:t.getMessage("cmduploadform.all_files_will_be_removed")},e.toDisplayString(t.getMessage("cmduploadform.reset_upload")),9,ng)):e.createCommentVNode("",!0),lg])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.allowMultipleFileUploads?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdHeadlineNoFilesToUpload,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.headlineTextNoFilesToUpload),1)]),_:1},16)):e.createCommentVNode("",!0)],64)),e.createElementVNode("div",ig,[o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0},o.cmdHeadlineSelectAdditionalFiles,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.select_additional_files")),1)]),_:1},16)):e.createCommentVNode("",!0),!o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createBlock(s,e.mergeProps({key:1},o.cmdHeadlineSelectNewFile,{headlineLevel:"4"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.headline.select_new_file")),1)]),_:1},16)):e.createCommentVNode("",!0),e.createElementVNode("dl",ag,[o.maxTotalUploadSize>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("dt",{class:e.normalizeClass({error:l.totalSize>o.maxTotalUploadSize})},e.toDisplayString(t.getMessage("cmduploadform.max_total_upload_size")),3),e.createElementVNode("dd",{class:e.normalizeClass(["text-align-right",{error:l.totalSize>o.maxTotalUploadSize}])},e.toDisplayString(l.formatSize(o.maxTotalUploadSize)),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("dt",{class:e.normalizeClass({error:i.errors.fileSize})},e.toDisplayString(t.getMessage("cmduploadform.max_file_upload_size")),3),e.createElementVNode("dd",{class:e.normalizeClass(["text-align-right",{error:i.errors.fileSize}])},e.toDisplayString(l.formatSize(o.maxFileUploadSize)),3),e.createElementVNode("dt",{class:e.normalizeClass({error:i.errors.fileType})},e.toDisplayString(t.getMessage("cmduploadform.allowed_file_types")),3),e.createElementVNode("dd",null,[e.createElementVNode("a",{href:"#",onClick:n[2]||(n[2]=e.withModifiers(d=>i.showListOfFileExtensions=!i.showListOfFileExtensions,["prevent"])),title:t.getMessage("cmduploadform.tooltip.toggle_list_of_allowed_file_types")},[e.createVNode(c,{iconClass:i.showListOfFileExtensions?o.iconInvisible.iconClass:o.iconVisible.iconClass,type:i.showListOfFileExtensions?o.iconInvisible.iconType:o.iconVisible.iconType},null,8,["iconClass","type"])],8,sg),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showListOfFileExtensions?(e.openBlock(),e.createElementBlock("ul",rg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.allowedFileExtensions,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:e.normalizeClass({error:i.errors.fileType})},e.toDisplayString(d),3))),128))])):e.createCommentVNode("",!0)]),_:1})])])]),e.createElementVNode("div",cg,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["button upload primary",{disabled:i.uploadInitiated}]),disabled:i.uploadInitiated,onClick:n[3]||(n[3]=d=>l.selectFiles())},[e.createVNode(c,{iconClass:o.iconFileUpload.iconClass,type:o.iconFileUpload.iconType},null,8,["iconClass","type"]),o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock("span",mg,e.toDisplayString(t.getMessage("cmduploadform.labeltext.select_files")),1)):(e.openBlock(),e.createElementBlock("span",hg,e.toDisplayString(t.getMessage("cmduploadform.labeltext.select_file")),1))],10,dg),o.enableDragAndDrop?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["text-drag-and-drop",{disabled:i.uploadInitiated}])},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.or")),1),e.createElementVNode("strong",null,[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.drag_and_drop"))+" ",1),o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.additional")),1)],64)):e.createCommentVNode("",!0),!o.allowMultipleFileUploads&&i.listOfFiles.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.getMessage("cmduploadform.new")),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.getMessage("cmduploadform.files_to_this_area")),1)])],2)):e.createCommentVNode("",!0)])],16),o.enableComment?(e.openBlock(),e.createBlock(h,{key:2,element:"textarea",labelText:t.getMessage("cmduploadform.labeltext.comment"),modelValue:i.comment,"onUpdate:modelValue":n[4]||(n[4]=d=>i.comment=d),required:o.commentRequired,validationMessage:o.commentStatusMessage,placeholder:t.getMessage("cmduploadform.placeholder.comment"),status:o.commentStatusMessage?"error":""},null,8,["labelText","modelValue","required","validationMessage","placeholder","status"])):e.createCommentVNode("",!0),e.createElementVNode("div",fg,[e.createElementVNode("button",{class:e.normalizeClass(["button primary",{disabled:i.listOfFiles.length===0||o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize||i.uploadInitiated}]),disabled:i.listOfFiles.length===0||o.maxTotalUploadSize>0&&l.totalSize>o.maxTotalUploadSize||i.uploadInitiated,onClick:n[5]||(n[5]=(...d)=>l.uploadFiles&&l.uploadFiles(...d))},[e.createVNode(c,{iconClass:o.iconUpload.iconClass,type:o.iconUpload.iconType},null,8,["iconClass","type"]),i.listOfFiles.length===1||!o.allowMultipleFileUploads?(e.openBlock(),e.createElementBlock("span",pg,e.toDisplayString(t.getMessage("cmduploadform.buttontext.upload_file")),1)):(e.openBlock(),e.createElementBlock("span",gg,e.toDisplayString(t.getMessage("cmduploadform.buttontext.upload_files")),1))],10,ug),e.createElementVNode("button",{class:e.normalizeClass(["button",{disabled:i.listOfFiles.length===0}]),onClick:n[6]||(n[6]=(...d)=>l.cancel&&l.cancel(...d))},[e.createVNode(c,{iconClass:o.iconCancel.iconClass,type:o.iconCancel.iconType},null,8,["iconClass","type"]),e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.buttontext.cancel")),1)],2)])],2)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:1,href:"#",onClick:n[7]||(n[7]=e.withModifiers((...d)=>l.selectFiles&&l.selectFiles(...d),["prevent"])),class:["cmd-upload-form box",{"drop-area":o.enableDragAndDrop,"allow-drop":i.allowDrop}]},e.toHandlers(l.dragAndDropHandler,!0)),[i.uploadInitiated?(e.openBlock(),e.createElementBlock("span",yg,[e.createElementVNode("span",null,e.toDisplayString(l.getPercentage(l.totalUploadProgress)),1),e.createElementVNode("progress",{max:"100",value:l.totalUploadProgress,title:l.totalBytesUploaded},null,8,kg)])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default",{},()=>[o.enableDragAndDrop?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.drag_and_drop_file_here")),1),e.createVNode(c,{iconClass:o.iconDragAndDrop.iconClass,type:o.iconDragAndDrop.iconType},null,8,["iconClass","type"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.fileTypeImage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.select_image")),1),e.createVNode(c,{iconClass:o.iconImage.iconClass,type:o.iconImage.iconType},null,8,["iconClass","type"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString(t.getMessage("cmduploadform.select_file")),1),e.createVNode(c,{iconClass:o.iconFileUpload.iconClass,type:o.iconFileUpload.iconType},null,8,["iconClass","type"])],64))],64)),e.createElementVNode("small",null,e.toDisplayString(t.getMessage("cmduploadform.max_upload_size"))+" "+e.toDisplayString(l.formatSize(o.maxFileUploadSize)),1),e.createElementVNode("small",null,e.toDisplayString(t.getMessage("cmduploadform.allowed_file_types"))+" "+e.toDisplayString(o.allowedFileExtensions),1)])],16)),e.createVNode(h,{element:"input",type:"file",labelText:t.getMessage("cmduploadform.labeltext.select_files"),disabled:i.uploadInitiated,multiple:o.allowMultipleFileUploads,onChange:l.filesSelected,ref:"formElement"},null,8,["labelText","disabled","multiple","onChange"])],64)}const bg=B(jp,[["render",Cg]]),Bg={name:"CmdWidthLimitationWrapper",props:{contentType:{type:String,default:"flex"},innerComponent:{type:String,default:"section",validator(t){return t}},useInnerSection:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1},sectionClass:{type:String,required:!1},anchorId:{type:String,required:!1},contentTypeOrientation:{type:String,default:"vertical"},cmdHeadline:{type:Object,required:!1}},computed:{setSectionClass(){return this.sectionClass?this.sectionClass:this.innerComponent==="header"?"grid-container-create-columns":this.innerComponent==="footer"?"flex-container":""},setInnerClass(){if(this.contentType==="grid")return"grid-container-create-columns";if(this.contentType==="flex"){if(this.contentTypeOrientation==="horizontal")return"flex-container";if(this.contentTypeOrientation==="vertical")return"flex-container vertical"}return""},setOuterId(){return this.innerComponent==="header"?"site-header":this.innerComponent==="footer"?"site-footer":""}},methods:{oneSlotItem(){const t=this.$slots.default();return t.length===1&&typeof t[0].type=="symbol"&&Array.isArray(t[0].children)?t[0].children.length===1:t.length===1}}},wg=["id"],_g=["id"];function xg(t,n,o,a,i,l){const s=O;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cmd-width-limitation-wrapper",{sticky:o.sticky}]),ref:"width-limitation-wrapper"},[o.useInnerSection?(e.openBlock(),e.createElementBlock("section",{key:0,class:e.normalizeClass(l.setSectionClass),id:o.anchorId},[o.cmdHeadline?(e.openBlock(),e.createBlock(s,{key:0,"pre-headline-text":o.cmdHeadline.preHeadlineText,"headline-text":o.cmdHeadline.headlineText,"headline-level":o.cmdHeadline.headlineLevel},null,8,["pre-headline-text","headline-text","headline-level"])):e.createCommentVNode("",!0),l.oneSlotItem()?e.renderSlot(t.$slots,"default",{key:1}):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.setInnerClass)},[e.renderSlot(t.$slots,"default")],2))],10,wg)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.anchorId?(e.openBlock(),e.createElementBlock("a",{key:0,id:o.anchorId},null,8,_g)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],64))],2)}const Eg=B(Bg,[["render",xg]]),Sg={name:"ContactInformation",props:{cmdBasicForm:{type:Object,default:null},cmdAddressData:{type:Object,default:null},cmdGoogleMaps:{type:Object,default:null}},computed:{contactFormOnly(){return!(this.cmdAddressData||this.cmdGoogleMaps||!this.isSlotEmpty)},isSlotEmpty(){return!this.$scopedSlots["custom-info"]}}},Vg={key:1,class:"flex-container"},Tg={class:"flex-container vertical"};function Ng(t,n,o,a,i,l){const s=yo,r=po,c=Fo;return l.contactFormOnly?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},t.basicForm)),null,16)):(e.openBlock(),e.createElementBlock("div",Vg,[e.createVNode(s,e.normalizeProps(e.guardReactiveProps(t.basicForm)),null,16),e.createElementVNode("div",Tg,[o.cmdAddressData?(e.openBlock(),e.createBlock(r,e.normalizeProps(e.mergeProps({key:0},o.cmdAddressData)),null,16)):e.createCommentVNode("",!0),o.cmdGoogleMaps?(e.openBlock(),e.createBlock(c,e.normalizeProps(e.mergeProps({key:1},o.cmdGoogleMaps)),null,16)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"additional-info")])]))}const Ig=B(Sg,[["render",Ng]]),Fg={name:"MultipleBoxWrapper",props:{segments:{type:Array,default:null}}},Og={class:"cmd-page-multiple-box-wrapper flex-container vertical"};function Mg(t,n,o,a,i,l){const s=Ct,r=So;return e.openBlock(),e.createElementBlock("div",Og,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.segments,(c,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createVNode(r,{boxesPerRow:c.boxesPerRow,useRowViewAsDefault:c.useRowViewAsDefault,useGap:c.useGap,cmdHeadline:c.cmdHeadline},{default:e.withCtx(d=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.boxes,(m,p)=>(e.openBlock(),e.createBlock(s,e.mergeProps({"use-slots":["box-body"],key:p},m,{rowView:d.rowView}),{default:e.withCtx(()=>[e.createTextVNode(" box "+e.toDisplayString(m),1)]),_:2},1040,["rowView"]))),128))]),_:2},1032,["boxesPerRow","useRowViewAsDefault","useGap","cmdHeadline"]),e.renderSlot(t.$slots,"multiple-box-wrapper-slot-${index}")],64))),128))])}const Dg=B(Fg,[["render",Mg]]),Lg={name:"MultipleListsOfLinks",props:{segments:{type:Array,default:null}}},Pg={class:"cmd-page-multiple-lists-of-links flex-container vertical"};function Ag(t,n,o,a,i,l){const s=yt;return e.openBlock(),e.createElementBlock("div",Pg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.segments,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[e.createVNode(s,{links:r.links,orientation:r.orientation,largeIcons:r.largeIcons,cmdHeadline:r.headline},null,8,["links","orientation","largeIcons","cmdHeadline"]),e.renderSlot(t.$slots,"multiple-lists-of-links-slot-${index}")],64))),128))])}const qg=B(Lg,[["render",Ag]]),Hg={mounted(t){if(t.tagName==="INPUT"||t.tagName==="SELECT"||t.tagName==="TEXTAREA"||t.tagName==="A")t.focus();else{const n=t.querySelector("input, select, textarea");n?n.focus():console.warn("No input-element for focus-directive on element "+t.tagName+" found!")}}},zg={mounted(t,n){if(n.value&&typeof n.value=="string"){let o=/[^\d]/g,a=n.value.replace(/^\s*\+/,"00");t.href="tel:"+a.replace(o,"")}}};function Rg(){const t={};e.onBeforeUpdate(a);function n(i="defaultSequence"){const l=t[i]||0;return t[i]=l+1,t[i]}function o(i="defaultSequence"){return t[i]||0}function a(i="defaultSequence"){t[i]&&(t[i]=0)}return{nextSequenceValue:n,currentSequenceValue:o,resetSequence:a}}b.CmdAddressData=po,b.CmdBackToTopButton=Ha,b.CmdBankAccountData=Ja,b.CmdBasicForm=yo,b.CmdBox=Ct,b.CmdBoxWrapper=So,b.CmdBreadcrumbs=Vo,b.CmdCompanyLogo=To,b.CmdContainer=Tc,b.CmdCookieDisclaimer=Wc,b.CmdCopyrightInformation=Yc,b.CmdFakeSelect=No,b.CmdFancyBox=$s,b.CmdForm=go,b.CmdFormElement=A,b.CmdFormFilters=Io,b.CmdGoogleMaps=Fo,b.CmdHeadline=O,b.CmdIcon=N,b.CmdImage=ae,b.CmdImageGallery=Md,b.CmdImageZoom=jd,b.CmdInputGroup=Do,b.CmdLink=Bo,b.CmdListOfLinks=yt,b.CmdLoginForm=gm,b.CmdMainNavigation=Lo,b.CmdMultistepFormProgressBar=Rm,b.CmdNewsletterSubscription=Jm,b.CmdOpeningHours=Ch,b.CmdPageFooter=Gh,b.CmdPageHeader=Xh,b.CmdPagination=Ih,b.CmdProgressBar=nf,b.CmdSidebar=mf,b.CmdSiteFooter=pf,b.CmdSiteHeader=Cf,b.CmdSiteSearch=Tf,b.CmdSlideButton=ke,b.CmdSlideshow=Pf,b.CmdSocialNetworks=Ao,b.CmdSwitchLanguage=Wf,b.CmdSystemMessage=qo,b.CmdTable=ou,b.CmdTabs=du,b.CmdTextImageBlock=yu,b.CmdThumbnailScroller=Co,b.CmdToggleDarkMode=Bu,b.CmdTooltip=uo,b.CmdUploadForm=bg,b.CmdWidthLimitationWrapper=Eg,b.ContactInformation=Ig,b.DirFocus=Hg,b.DirTelephone=zg,b.EditComponentWrapper=te,b.MultipleBoxWrapper=Dg,b.MultipleListsOfLinks=qg,b.createHtmlId=ft,b.createUuid=ce,b.getFileExtension=de,b.openFancyBox=Ce,b.useSequence=Rg,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.0.32",
3
+ "version": "4.0.34",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -1926,7 +1926,7 @@
1926
1926
  ref="CmdWidthLimitationWrapper"
1927
1927
  v-bind="cmdWidthLimitationWrapperSettingsData"
1928
1928
  >
1929
- Slot-content placed in inner section
1929
+ <p>Slot-content</p>
1930
1930
  </CmdWidthLimitationWrapper>
1931
1931
  </CmdWidthLimitationWrapper>
1932
1932
  <!-- end upload-form ------------------------------------------------------------------------------------------------------------------------------------------------------->
@@ -773,7 +773,6 @@ data() {
773
773
  allowedFileExtensions: ["jpg", "eps"]
774
774
  },
775
775
  cmdWidthLimitationWrapperSettingsData: {
776
- numberOfColumns: 1,
777
776
  contentType: "flex",
778
777
  innerComponent: "section",
779
778
  useInnerSection: true,
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="cmd-width-limitation-wrapper" :class="{'sticky': sticky}">
2
+ <div class="cmd-width-limitation-wrapper" :class="{'sticky': sticky}" ref="width-limitation-wrapper">
3
3
  <!-- begin slot-content in section -->
4
4
  <section v-if="useInnerSection" :class="setSectionClass" :id="anchorId">
5
5
  <!-- begin cmd-headline -->
@@ -11,9 +11,9 @@
11
11
  />
12
12
  <!-- end cmd-headline -->
13
13
 
14
- <!-- begin slot-content (one column only) -->
15
- <slot v-if="numberOfColumns === 1"></slot>
16
- <!-- end slot-content (one column only) -->
14
+ <!-- begin slot-content (one column/slot-item only) -->
15
+ <slot v-if="oneSlotItem()"></slot>
16
+ <!-- end slot-content (one column/slot-item only) -->
17
17
 
18
18
  <!-- begin grid-/flex-container to wrap multiple columns/items -->
19
19
  <div v-else :class="setInnerClass">
@@ -40,13 +40,6 @@
40
40
  export default {
41
41
  name: "CmdWidthLimitationWrapper",
42
42
  props: {
43
- numberOfColumns: {
44
- type: Number,
45
- default: 1,
46
- validator(value) {
47
- return value >= 0
48
- }
49
- },
50
43
  contentType: {
51
44
  type: String,
52
45
  default: "flex"
@@ -102,7 +95,7 @@ export default {
102
95
  },
103
96
  contentTypeOrientation: {
104
97
  type: String,
105
- default: "horizontal"
98
+ default: "vertical"
106
99
  },
107
100
  /**
108
101
  * properties for CmdHeadline-component
@@ -150,6 +143,15 @@ export default {
150
143
  }
151
144
  return ""
152
145
  }
146
+ },
147
+ methods: {
148
+ oneSlotItem() {
149
+ const vnodes = this.$slots.default();
150
+ if (vnodes.length === 1 && typeof vnodes[0].type === "symbol" && Array.isArray(vnodes[0].children)) {
151
+ return vnodes[0].children.length === 1
152
+ }
153
+ return vnodes.length === 1
154
+ }
153
155
  }
154
156
  }
155
157
  </script>