PageSourceSearch

https://www.maximal-radio.de/wp-content/plugins/cmms-plugin-vouche…/dist_soylent/1.16/js/voucher.js?ver=1.16

js maximal-radio.de collected 2026-10-10 00:51:31 UTC 138,861 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/Button.js","js/Element.js","js/Checkbox.js","js/Custom.js","js/Date.js","js/Email.js","js/File.js","js/Hidden.js","js/Number.js","js/Password.js","js/Radio.js","js/Select.js","js/Submit.js","js/Text.js","js/Textarea.js","js/Time.js"])))=>i.map(i=>d[i]);
2var nr=e=>{throw TypeError(e)};var $t=(e,t,n)=>t.has(e)||nr("Cannot "+n);var p=(e,t,n)=>($t(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?nr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rt=(e,t,n,r)=>($t(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),it=(e,t,n)=>($t(e,t,"access private method"),n);function $m(){import.meta.url,import("_").catch(()=>1),(async function*(){})().next()}const O=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},po={name:"SoylentLink",props:{url:{type:String,default:""},callback:{default:!1},blank:{type:Boolean,default:null},useRouter:{type:Boolean,default:!0}},computed:{isAnchor(){return this.url&&(this.url.charAt(0)==="#"||this.url.substring(0,2)==="/#")},useRouterLink:function(){return!(this.callback!==!1||this.isExternalLink||this.blank===!0||this.isAnchor)},target:function(){if(this.blank!==!1&&!this.isAnchor||this.blank===null&&this.isExternalLink&&!this.isAnchor)return"_blank"},isExternalLink:function(){return this.useRouter===!1||this.$routerLink(this.url).match(/^(https?:\/\/|mailto:|tel:\/\/)/)||this.url.match(/\.pdf$/i)}}},Bt=window.Vue.renderSlot,go=window.Vue.resolveComponent,vo=window.Vue.withCtx,Mt=window.Vue.openBlock,wo=window.Vue.createBlock;window.Vue.createCommentVNode;const yo=window.Vue.withModifiers,rr=window.Vue.createElementBlock,Eo=["href","target"];function bo(e,t,n,r,i,o){const s=go("router-link");return o.useRouterLink?(Mt(),wo(s,{key:0,to:e.$routerLink(n.url)},{default:vo(()=>[Bt(e.$slots,"default")]),_:3},8,["to"])):n.callback!==!1?(Mt(),rr("a",{key:1,href:"#",onClick:t[0]||(t[0]=yo((...a)=>n.callback&&n.callback(...a),["prevent","stop"]))},[Bt(e.$slots,"default")])):(Mt(),rr("a",{key:2,href:n.url,target:o.target},[Bt(e.$slots,"default")],8,Eo))}const ft=O(po,[["render",bo]]),So={name:"CroppedText",props:{tag:{type:String,default:"div"},text:{type:String,default:""},lines:{type:[Number,String],default:-1},ellipsis:{type:String,default:"…"},hasMinHeight:{type:Boolean,default:!0}},data:function(){return{blocks:-1,maxHeight:1/0,croppedText:"",fineTuned:!1,timer:null,boundResizeHandler:null}},computed:{textArray:function(){return this.$props.text.trim().split(" ")},maxLines:function(){return parseInt(this.$props.lines,10)||-1}},methods:{updateHeight:function(){let e=1/0;this.getLineHeight()>0&&this.maxLines>0&&(e=this.getLineHeight()*this.maxLines),this.maxHeight=e,this.hasMinHeight&&(this.$refs.el.style.minHeight=this.maxHeight+"px"),this.blocks=0,this.fineTuned=!1,this.style={},this.redrawText()},getHeight:function(){return Math.floor(this.$refs.el.getBoundingClientRect().height)},getLineHeight:function(){let e=0;try{e=parseFloat(document.defaultView.getComputedStyle(this.$refs.el,null).getPropertyValue("line-height"),10)||0}catch(t){console.log("error",t)}return e},isVisible:function(){let e="";try{e=document.defaultView.getComputedStyle(this.$refs.el,null).getPropertyValue("display")}catch(t){}return e!=="none"},redrawText:function(){!this.isVisible()||!this.textArray.length||(this.croppedText=this.textArray.slice(0,this.blocks).join(" ")+" ",this.croppedText.length<this.text.length&&this.croppedText.length>1&&(this.croppedText+=this.$props.ellipsis))},onResize:function(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.updateHeight()},150)}},updated(){!this.fineTuned&&this.getHeight()<=this.maxHeight&&this.blocks<this.textArray.length?(this.blocks++,this.redrawText()):this.getHeight()>this.maxHeight&&this.blocks>0?(this.fineTuned=!0,this.blocks--,this.redrawText()):this.fineTuned=!0},mounted(){this.boundResizeHandler=this.onResize.bind(this),window.addEventListener("resize",this.boundResizeHandler,{passive:!0}),this.updateHeight()},beforeUnmount(){this.timer&&clearTimeout(this.timer),window.removeEventListener("resize",this.boundResizeHandler)}},Co=window.Vue.toDisplayString,ko=window.Vue.createTextVNode,Ao=window.Vue.resolveDynamicComponent,Vo=window.Vue.withCtx,To=window.Vue.openBlock,Oo=window.Vue.createBlock;function Ro(e,t,n,r,i,o){return To(),Oo(Ao(e.$props.tag),{ref:"el",style:{overflow:"hidden"}},{default:Vo(()=>
2[ko(Co(e.croppedText),1)]),_:1},512)}const si=O(So,[["render",Ro]]);class Do{constructor(){this.items={},this.observer=new IntersectionObserver(this.observerCallback.bind(this),{threshold:.3})}add(t,n,r){this.items[t]={el:n,cb:r},n.setAttribute("data-uid",t),this.observer.observe(n)}observerCallback(t,n){t.forEach(r=>{if(r.intersectionRatio>0){let i=r.target.getAttribute("data-uid");i in this.items&&(this.items[i].cb(),n.unobserve(r.target),this.remove(i))}})}remove(t){this.items[t]&&delete this.items[t]}}let bt;window.cmmsScrollWatcher?bt=window.cmmsScrollWatcher:(bt=new Do,window.cmmsScrollWatcher=bt);const ir=bt,xo="modulepreload",Io=function(e){return"/wp-content/plugins/cmms-plugin-voucher/assets/dist/1.16/"+e},or={},M=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(d){return Promise.all(d.map(u=>Promise.resolve(u).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=l(n.map(d=>{if(d=Io(d),d in or)return;or[d]=!0;const u=d.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector('link[href="'.concat(d,'"]').concat(c)))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":xo,u||(h.as="script"),h.crossOrigin="",h.href=d,a&&h.setAttribute("nonce",a),document.head.appendChild(h),u)return new Promise((m,w)=>{h.addEventListener("load",m),h.addEventListener("error",()=>w(new Error("Unable to preload CSS for ".concat(d))))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};class No{constructor(t,n){this.selectors=t,this.params=n,this.options=this.getOptions(),this.items=this.getItems(),this.lightBox=null,t.forEach((r,i)=>{let o;n.type==="gallery"?(o=r,o=r):o=r.$el,o.setAttribute("data-pswp-uid",i),o.setAttribute("tabindex","0"),o.addEventListener("keydown",s=>{(s.keyCode===13||s.key==="Enter"||s.keyCode===32||s.key===" ")&&(s.preventDefault(),this.options.galleryUID=i,this.open(this.options.galleryUID))}),o.addEventListener("click",()=>{this.options.galleryUID=i,this.open(this.options.galleryUID)})})}getItems(){const t=[];switch(this.params.type){case"picture":t.push({src:this.params.src,width:this.params.size.width,height:this.params.size.height,alt:this.params.desc});break;case"video":case"videolivestream":case"audio":case"audiolivestream":t.push({html:'<div class="pswp-iframe-player-wrapper"><div class="pswp-iframe-player">'+this.params.html+"</div></div>"});break;case"gallery":this.params.items.forEach(function(n){t.push({src:n.src,width:n.size.width,height:n.size.height,alt:n.desc})});break}return t}getOptions(){return{}}async open(t){const{default:n}=await M(async()=>{const{default:o}=await import("./photoswipe-lightbox.esm.js");return{default:o}},[]),r={dataSource:this.items,showHideAnimationType:"zoom",pswpModule:()=>M(()=>import("./photoswipe.esm.js"),[])},i=new n(r);i.on("uiRegister",()=>{i.pswp.ui.registerElement({name:"caption",order:9,isButton:!1,appendTo:"root",html:"",onInit:(o,s)=>{i.pswp.on("change",()=>{let l='<div class="pswp__caption__content">'+i.pswp.currSlide.data.alt+"</div>";o.innerHTML=l||""})}}),(!("disableDownload"in this.params)||!this.params.disableDownload)&&i.pswp.ui.registerElement({name:"download-button",isButton:!0,title:"Download",order:9,html:'<span style="display: block; filter: drop-shadow(0px 0px 2px black)"><svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#e8eaed"><g><rect fill="none" height="24" width="24"/></g><g><path d="M18,15v3H6v-3H4v3c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2v-3H18z M17,11l-1.41-1.41L13,12.17V4h-2v8.17L8.41,9.59L7,11l5,5 L17,11z"/></g></svg></span>',onClick:async(o,s,a)=>{const l=a.currSlide.data.src,u=await(await fetch(l)).blob(),c=URL.createObjectURL(u),h=document.createElement("a");h.href=c,h.download=l.split("/").pop(),h.click(),URL.revokeObjectURL(c)}})}),i.init(),i.loadAndOpen(parseInt(t,10))}}const ai=()=>{let e=new Date().getTime(),t=performance&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n=="x"?r:r&7|8).toString(16)})};function Po(){return li().__VUE_DEVTOOLS_GLOBAL_HOOK__}function li(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Lo=typeof Proxy=="function",$o="devtools-plugin:setup",Bo="plugin:settings:set";let Me,En;function Mo(){var e;return Me!==void 0||(typeof window<"u"&&window.performance?(Me=!0,En=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Me=!0,En=globalThis.perf_hooks.performance):Me=!1),Me}function Uo(){return Mo()?En.now():Date.now()}let Fo=class{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const a=t.settings[s];r[s]=a.defaultValue}const i="__vue-devtools-plugin-settings__".concat(t.id);let o=Object.assign({},r);try{const s=localStorage.getItem(i),a=JSON.parse(s);Object.assign(o,a)}catch(s){}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch(a){}o=s},now(){return Uo()}},n&&n.on(Bo,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:a,args:l,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}};function Go(e,t){const n=e,r=li(),i=Po(),o=Lo&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit($o,e,t);else{const s=o?new Fo(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}window.Vue.inject;const Ho=window.Vue.effectScope,jo=window.Vue.reactive,ci=window.Vue.watch,zo=window.Vue.computed;var Wo="store";function Xe(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function ui(e){return e!==null&&typeof e=="object"}function qo(e){return e&&typeof e.then=="function"}function Ko(e,t){return function(){return e(t)}}function di(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function hi(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Vt(e,n,[],e._modules.root,!0),Pn(e,n,t)}function Pn(e,t,n){var r=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},a={},l=Ho(!0);l.run(function(){Xe(o,function(d,u){s[u]=Ko(d,e),a[u]=zo(function(){return s[u]()}),Object.defineProperty(e.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),e._state=jo({data:t}),e._scope=l,e.strict&&Zo(e),r&&n&&e._withCommit(function(){r.data=null}),i&&i.stop()}function Vt(e,t,n,r,i){var o=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=r),!o&&!i){var a=Ln(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=r.state})}var d=r.context=Yo(e,s,n);r.forEachMutation(function(u,c){var h=s+c;Qo(e,h,u,d)}),r.forEachAction(function(u,c){var h=u.root?c:s+c,m=u.handler||u;Jo(e,h,m,d)}),r.forEachGetter(function(u,c){var h=s+c;Xo(e,h,u,d)}),r.forEachChild(function(u,c){Vt(e,t,n.concat(c),u,i)})}
2function Yo(e,t,n){var r=t==="",i={dispatch:r?e.dispatch:function(o,s,a){var l=St(o,s,a),d=l.payload,u=l.options,c=l.type;return(!u||!u.root)&&(c=t+c),e.dispatch(c,d)},commit:r?e.commit:function(o,s,a){var l=St(o,s,a),d=l.payload,u=l.options,c=l.type;(!u||!u.root)&&(c=t+c),e.commit(c,d,u)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return mi(e,t)}},state:{get:function(){return Ln(e.state,n)}}}),i}function mi(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Qo(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){n.call(e,r.state,s)})}function Jo(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(s){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},s);return qo(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function Xo(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function Zo(e){ci(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Ln(e,t){return t.reduce(function(n,r){return n[r]},e)}function St(e,t,n){return ui(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var es="vuex bindings",sr="vuex:mutations",Ut="vuex:actions",Ue="vuex",ts=0;function ns(e,t){Go({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[es]},function(n){n.addTimelineLayer({id:sr,label:"Vuex Mutations",color:ar}),n.addTimelineLayer({id:Ut,label:"Vuex Actions",color:ar}),n.addInspector({id:Ue,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ue)if(r.filter){var i=[];gi(i,t._modules.root,r.filter,""),r.rootNodes=i}else r.rootNodes=[pi(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ue){var i=r.nodeId;mi(t,i),r.state=os(as(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ue){var i=r.nodeId,o=r.path;i!=="root"&&(o=i.split("/").filter(Boolean).concat(o)),t._withCommit(function(){r.set(t._state.data,o,r.state.value)})}}),t.subscribe(function(r,i){var o={};r.payload&&(o.payload=r.payload),o.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(Ue),n.sendInspectorState(Ue),n.addTimelineEvent({layerId:sr,event:{time:Date.now(),title:r.type,data:o}})}),t.subscribeAction({before:function(r,i){var o={};r.payload&&(o.payload=r.payload),r._id=ts++,r._time=Date.now(),o.state=i,n.addTimelineEvent({layerId:Ut,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:o}})},after:function(r,i){var o={},s=Date.now()-r._time;o.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},r.payload&&(o.payload=r.payload),o.state=i,n.addTimelineEvent({layerId:Ut,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:o}})}})})}var ar=8702998,rs=6710886,is=16777215,fi={label:"namespaced",textColor:is,backgroundColor:rs};function _i(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function pi(e,t){return{id:t||"root",label:_i(t),tags:e.namespaced?[fi]:[],children:Object.keys(e._children).map(function(n){return pi(e._children[n],t+n+"/")})}}function gi(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[fi]:[]}),Object.keys(t._children).forEach(function(i){gi(e,t._children[i],n,r+i+"/")})}function os(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(r.length){var o=ss(t);i.getters=Object.keys(o).map(function(s){return{key:s.endsWith("/")?_i(s):s,editable:!1,value:bn(function(){return o[s]})}})}return i}function ss(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var i=t,o=r.pop();r.forEach(function(s){i[s]||(i[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),i=i[s]._custom.value}),i[o]=bn(function(){return e[n]})}else t[n]=bn(function(){return e[n]})}),t}function as(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,i,o){var s=r[i];if(!s)throw new Error('Missing module "'+i+'" for path "'+t+'".');return o===n.length-1?s:s._children},t==="root"?e:e.root._children)}function bn(e){try{return e()}catch(t){return t}}var se=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},vi={namespaced:{configurable:!0}};vi.namespaced.get=function(){return!!this._rawModule.namespaced};se.prototype.addChild=function(t,n){this._children[t]=n};se.prototype.removeChild=function(t){delete this._children[t]};se.prototype.getChild=function(t){return this._children[t]};se.prototype.hasChild=function(t){return t in this._children};se.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};se.prototype.forEachChild=function(t){Xe(this._children,t)};se.prototype.forEachGetter=function(t){this._rawModule.getters&&Xe(this._rawModule.getters,t)};se.prototype.forEachAction=function(t){this._rawModule.actions&&Xe(this._rawModule.actions,t)};se.prototype.forEachMutation=function(t){this._rawModule.mutations&&Xe(this._rawModule.mutations,t)};Object.defineProperties(se.prototype,vi);var Le=function(t){this.register([],t,!1)};Le.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Le.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,i){return n=n.getChild(i),r+(n.namespaced?i+"/":"")},"")};Le.prototype.update=function(t){wi([],this.root,t)};Le.prototype.register=function(t,n,r){var i=this;r===void 0&&(r=!0);var o=new se(n,r);if(t.length===0)this.root=o;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],o)}n.modules&&Xe(n.modules,function(a,l){i.register(t.concat(l),a,r)})};Le.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],i=n.getChild(r);i&&i.runtime&&n.removeChild(r)};Le.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function wi(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;wi(e.concat(r),t.getChild(r),n.modules[r])}}function ls(e){return new z(e)}var z=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var i=t.strict;i===void 0&&(i=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Le(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var s=this,a=this,l=a.dispatch,d=a.commit;this.dispatch=function(h,m){return l.call(s,h,m)},this.commit=function(h,m,w){return d.call(s,h,m,w)},this.strict=i;var u=this._modules.root.state;Vt(this,u,[],this._modules.root),Pn(this,u),r.forEach(function(c){return c(n)})},$n={state:{configurable:!0}};z.prototype.install=function(t,n){t.provide(n||Wo,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&ns(t,this)};$n.state.get=function(){return this._state.data};$n.state.set=function(e){};z.prototype.commit=function(t,n,r){var i=this,o=St(t,n,r),s=o.type,a=o.payload,l={type:s,payload:a},d=this._mutations[s];d&&(this._withCommit(function(){d.forEach(function(c){c(a)})}
2),this._subscribers.slice().forEach(function(u){return u(l,i.state)}))};z.prototype.dispatch=function(t,n){var r=this,i=St(t,n),o=i.type,s=i.payload,a={type:o,payload:s},l=this._actions[o];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,r.state)})}catch(u){}var d=l.length>1?Promise.all(l.map(function(u){return u(s)})):l[0](s);return new Promise(function(u,c){d.then(function(h){try{r._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(a,r.state)})}catch(m){}u(h)},function(h){try{r._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(a,r.state,h)})}catch(m){}c(h)})})}};z.prototype.subscribe=function(t,n){return di(t,this._subscribers,n)};z.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return di(r,this._actionSubscribers,n)};z.prototype.watch=function(t,n,r){var i=this;return ci(function(){return t(i.state,i.getters)},n,Object.assign({},r))};z.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};z.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Vt(this,this.state,t,this._modules.get(t),r.preserveState),Pn(this,this.state)};z.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=Ln(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),hi(this)};z.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};z.prototype.hotUpdate=function(t){this._modules.update(t),hi(this,!0)};z.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(z.prototype,$n);var Bn=Ei(function(e,t){var n={};return yi(t).forEach(function(r){var i=r.key,o=r.val;o=e+o,n[i]=function(){if(!(e&&!bi(this.$store,"mapGetters",e)))return this.$store.getters[o]},n[i].vuex=!0}),n}),Mn=Ei(function(e,t){var n={};return yi(t).forEach(function(r){var i=r.key,o=r.val;n[i]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var d=this.$store.dispatch;if(e){var u=bi(this.$store,"mapActions",e);if(!u)return;d=u.context.dispatch}return typeof o=="function"?o.apply(this,[d].concat(a)):d.apply(this.$store,[o].concat(a))}}),n});function yi(e){return cs(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function cs(e){return Array.isArray(e)||ui(e)}function Ei(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function bi(e,t,n){var r=e._modulesNamespaceMap[n];return r}const le=[1920,1328,1024,768,425,320],lr=[480],us={name:"CmmsResponsiveImage",props:{image:{type:Object,required:!0},fill:{type:Boolean,default:!1},blur:{type:Boolean,default:!1},contain:{type:Boolean,default:!1},hAlign:{type:String,default:"center"},vAlign:{type:String,default:"center"},maxHeight:{type:Number,default:0},imageSizeReference:{type:String,default:"width"},zoom:{type:Boolean,default:!1},withScrollWatcher:{type:Boolean,default:!0},updateVisibility:{type:Boolean,default:!1},fetchPriority:{type:String,default:"auto"}},data(){return{imageIndex:0,loadingMode:"eager",loadingPriority:"auto",uid:null,visible:!1,containerWidth:0,containerHeight:0,containerRatio:0,width:0,height:0,ratio:1,maxWidth:le[le.length-1],responsiveStep:-1,domRendered:!1}},computed:{...Bn(["renderedImages"]),style:function(){const e='background-image: url("'.concat(this.src,'");'),t=0<this.maxHeight?"max-height: ".concat(this.maxHeight,"px;"):"";return e+t},src:function(){if(!this.image)return"";if(this.image.src)return this.image.src;if(this.visible&&!this.fill&&this.domRendered)return this.buildSrc(Math.min(this.image.width,this.maxWidth));if(this.visible&&this.fill&&this.domRendered){let r=le.length-1,i=le[r],o=le[r]/this.ratio;for(;(i<=this.containerWidth||o<=this.containerHeight)&&i<=this.image.width&&o<=this.image.height&&r>=0;)r--,i=le[r],o=le[r]/this.ratio;return this.width=i,this.height=o,this.responsiveStep=r,this.buildSrc(this.width,this.height)}const e=20;let t=this.fill?e:Math.round(this.image.height/(this.image.width/e));return'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+t+'">\n</svg>'},dpr:function(){return Math.ceil(window.devicePixelRatio||1)},alt:function(){let e=[this.image.alt||""];return this.image.copyright&&e.push("© "+this.image.copyright),e.join(" — ")}
2,copyright(){return this.image&&this.image.copyright?this.image.copyright:!1}},methods:{...Mn(["increaseRenderedImages"]),update:function(){const e=this.$el.parentNode;if(!e)return;const t=e.getBoundingClientRect();if(this.containerWidth=t.width,this.containerHeight=t.height,this.containerRatio=this.containerWidth/this.containerHeight,this.image.src)return;let n=le.length-1;for(;n>=0&&this.containerWidth>le[n];)n--;this.maxWidth=le[n],this.responsiveStep=n},buildSrc(e,t){let n;if(this.blur===!0)n="200xeb_20x10/";else if(this.imageSizeReference==="height"){this.height=lr[lr.length-1],this.width=Math.round(this.image.width/(this.image.height/this.height));let r=Math.round(this.height*this.dpr);n="x".concat(r,"/")}else{this.width=e,this.height=Math.round(this.image.height/(this.image.width/this.width));let r=Math.round(Number(e)*this.dpr);n="".concat(r,"x/")}return"".concat(window.cmms_thumbs_base).concat(n).concat(this.image.media_id,".webp")},setVisible:function(){this.visible=!0},buildLightBox(){new No([this],{type:"picture",src:"".concat(window.cmms_thumbs_base,"f:webp/").concat(this.image.media_id,".webp"),desc:this.image.copyright,size:{width:this.image.width,height:this.image.height}})}},beforeMount(){this.imageIndex=this.$store.getters.renderedImages,this.loadingMode=this.withScrollWatcher&&this.imageIndex>0?"lazy":"eager",this.loadingPriority=this.imageIndex>2?this.fetchPriority:"high",this.$store.dispatch("increaseRenderedImages")},mounted(){this.ratio=this.image.width/this.image.height,(this.image.src||!this.$props.fill)&&(this.width=this.image.width,this.height=this.image.height),window.addEventListener("resize",this.update,{passive:!0}),this.$nextTick(()=>{this.domRendered=!0,this.update()}),this.withScrollWatcher&&this.fill?(this.uid=ai(),ir.add(this.uid,this.$el,this.setVisible)):this.setVisible(),this.zoom&&this.buildLightBox()},watch:{updateVisibility:function(e){e===!0&&this.setVisible()}},beforeUnmount(){window.removeEventListener("resize",this.update),ir.remove(this.uid)}},ds=window.Vue.normalizeStyle,hs=window.Vue.createElementVNode,ms=window.Vue.toDisplayString,Ft=window.Vue.openBlock,Gt=window.Vue.createElementBlock,cr=window.Vue.createCommentVNode,fs=window.Vue.normalizeClass,_s={key:0,class:"responsive-image-copyright"},ps=["width","height","loading","src","alt","fetchPriority"];function gs(e,t,n,r,i,o){return n.fill&&!n.zoom?(Ft(),Gt("span",{key:0,class:fs(["responsive-image",n.fill?"-fill":"",n.contain?"-contain":"",i.visible?"--visible":"","_align-img-".concat(n.hAlign,"-").concat(n.vAlign)])},[hs("span",{style:ds(o.style)},null,4),o.copyright?(Ft(),Gt("span",_s,ms(o.copyright),1)):cr("",!0)],2)):n.fill?cr("",!0):(Ft(),Gt("img",{key:1,width:i.width,height:i.height,loading:i.loadingMode,src:o.src,alt:o.alt,fetchPriority:i.loadingPriority},null,8,ps))}const Un=O(us,[["render",gs]]),vs="get",ws="post",j={get:(e,t)=>new Ht({...t,url:e}),post:(e,t,n={})=>new Ht({...n,data:t,method:ws,url:e}),request:e=>new Ht(e)},ur=Object.freeze({data:null,headers:{},method:vs,onUploadProgress:null,signal:null,url:""});var I,At,Si;class Ht{constructor(t=ur){J(this,At);J(this,I);return t=Object.assign({},ur,t),rt(this,I,new XMLHttpRequest),p(this,I).open(t.method,t.url),Object.keys(t.headers).forEach(n=>p(this,I).setRequestHeader(n,t.headers[n])),typeof t.onUploadStart=="function"&&(p(this,I).upload.onloadstart=t.onUploadStart()),typeof t.onUploadProgress=="function"&&(p(this,I).upload.onprogress=n=>{n.lengthComputable&&t.onUploadProgress(n.loaded,n.total)}),t.signal&&t.signal.addEventListener&&t.signal.addEventListener("abort",()=>{p(this,I).abort()}),new Promise((n,r)=>{p(this,I).onload=()=>{if(p(this,I).status>=200&&p(this,I).status<300){if(p(this,I).getResponseHeader("Content-Type")==="application/json")try{n(JSON.parse(p(this,I).response))}catch(o){}n(p(this,I).response)}else r({status:p(this,I).status,statusText:p(this,I).statusText})},p(this,I).onerror=()=>{r({status:p(this,I).status,statusText:p(this,I).statusText})},t.data?(t.data.constructor!==FormData&&typeof t.data=="object"&&(t.data=it(this,At,Si).call(this,t.data)),p(this,I).send(t.data)):p(this,I).send()})}}I=new WeakMap,At=new WeakSet,Si=function(t){const n=new FormData;for(const r in t)n.append(r,t[r]);return n};const ys={name:"VoucherCard",components:{CmmsResponsiveImage:Un,SoylentLink:ft,CroppedText:si}
2,data(){return{availableAmount:null}},props:{model:{type:Object},linkCard:{type:Boolean,default:!0}},computed:{getImage(){return this.model.alternative_image?this.model.alternative_image:this.model.image?this.model.image:null},excerpt(){return this.model.teaser&&this.model.teaser.length>0?this.model.teaser:this.model.excerpt},voucherInfo(){return this.model.discount?this.model.discount:"Gutschein"},voucherStatus(){return this.availableAmount<=0?"sold-out":this.model.status},voucherVoid(){if(this.availableAmount<=0)return"AUSVERKAUFT";if(!this.model.available)return this.model.available_text}},mounted(){j.get("/data/cmms-voucher/remaining/".concat(this.model.post_id)).then(e=>{this.availableAmount=e})}},jt=window.Vue.resolveComponent,ce=window.Vue.openBlock,zt=window.Vue.createBlock,fe=window.Vue.createCommentVNode,_e=window.Vue.toDisplayString,Te=window.Vue.createElementBlock,W=window.Vue.createElementVNode,gt=window.Vue.createTextVNode,Es=window.Vue.normalizeClass,bs=window.Vue.withCtx,Ss={class:"voucher-card__img"},Cs={key:1,class:"voucher-card__void"},ks={class:"voucher-card__content"},As={class:"voucher-card__headline"},Vs={key:0,class:"voucher-card__headline__kicker"},Ts={class:"voucher-card__headline__title"},Os={class:"voucher-card__meta"},Rs={class:"voucher-card__meta__row --price"},Ds={key:0,class:"voucher-card__meta__price"},xs={key:1,class:"voucher-card__meta__value"},Is={class:"voucher-card__meta__row --count"},Ns={class:"voucher-card__meta__count"},Ps={key:0},Ls={key:0,class:"voucher-card__meta__seller"},$s={key:0,class:"voucher-card__meta__row --freetext"},Bs={class:"voucher-card__meta__freetext"},Ms={class:"voucher-card__promo"};function Us(e,t,n,r,i,o){const s=jt("CmmsResponsiveImage"),a=jt("CroppedText"),l=jt("SoylentLink");return ce(),zt(l,{url:n.model.url,class:Es(["element","voucher-card",o.voucherVoid?"--void":"",o.voucherStatus?"--"+o.voucherStatus:""])},{default:bs(()=>[W("div",Ss,[o.getImage?(ce(),zt(s,{key:0,image:o.getImage,fill:""},null,8,["image"])):fe("",!0),o.voucherVoid?(ce(),Te("div",Cs,_e(o.voucherVoid),1)):fe("",!0)]),W("div",ks,[W("div",As,[n.model.kicker?(ce(),Te("span",Vs,_e(n.model.kicker),1)):fe("",!0),W("h5",Ts,_e(n.model.title),1)]),o.excerpt?(ce(),zt(a,{key:0,class:"voucher-card__description",tag:"div",text:o.excerpt,lines:2},null,8,["text"])):fe("",!0),W("div",Os,[W("div",Rs,[n.model.price_text?(ce(),Te("div",Ds,[t[0]||(t[0]=gt("Preis: ",-1)),W("b",null,_e(n.model.price_text),1)])):fe("",!0),n.model.price_srp_text?(ce(),Te("div",xs,[t[1]||(t[1]=gt("Wert: ",-1)),W("b",null,_e(n.model.price_srp_text),1)])):fe("",!0)]),W("div",Is,[W("span",Ns,[t[2]||(t[2]=gt("Verfügbar: ",-1)),i.availableAmount?(ce(),Te("b",Ps,_e(i.availableAmount),1)):fe("",!0)]),n.model.issuer?(ce(),Te("span",Ls,[t[3]||(t[3]=gt("Verkäufer: ",-1)),W("b",null,_e(n.model.issuer),1)])):fe("",!0)]),n.model.freetext?(ce(),Te("div",$s,[W("span",Bs,_e(n.model.freetext),1)])):fe("",!0)])]),W("div",Ms,_e(o.voucherInfo),1)]),_:1},8,["url","class"])}const Fs=O(ys,[["render",Us]]),Gs={name:"LoadMoreButton",components:{SoylentLink:ft},props:{url:{type:String,default:""},loading:{type:Boolean,default:!1}},computed:{label(){return this.loading?"Wird geladen ...":"Mehr anzeigen"}}},Hs=window.Vue.toDisplayString,dr=window.Vue.createElementVNode,js=window.Vue.resolveComponent,zs=window.Vue.normalizeClass,Ws=window.Vue.withCtx,qs=window.Vue.createVNode,Ks=window.Vue.openBlock,Ys=window.Vue.createElementBlock,Qs={class:"button-container --load-more"},Js={class:"button__label"},Xs={class:"button__text"};function Zs(e,t,n,r,i,o){const s=js("soylent-link");return Ks(),Ys("div",Qs,[qs(s,{url:n.url,class:zs(["button",n.loading?"--disabled":null])},{default:Ws(()=>[dr("span",Js,[dr("span",Xs,Hs(o.label),1)])]),_:1},8,["url","class"])])}const ea=O(Gs,[["render",Zs]]),ta=(function e(t){function n(i,o,s){var a,l={};if(Array.isArray(i))return i.concat(o);for(a in i)l[s?a.toLowerCase():a]=i[a];for(a in o){var d=s?a.toLowerCase():a,u=o[a];l[d]=d in l&&typeof u=="object"?n(l[d],u,d=="headers"):u}return l}
2function r(i,o,s,a,l){var d=typeof i!="string"?(o=i).url:i,u={config:o},c=n(t,o),h={};a=a||c.data,(c.transformRequest||[]).map(function(m){a=m(a,c.headers)||a}),c.auth&&(h.authorization=c.auth),a&&typeof a=="object"&&typeof a.append!="function"&&typeof a.text!="function"&&(a=JSON.stringify(a),h["content-type"]="application/json");try{h[c.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+c.xsrfCookieName+"=([^;]*)"))[2])}catch(m){}return c.baseURL&&(d=d.replace(/^(?!.*\/\/)\/?/,c.baseURL+"/")),c.params&&(d+=(~d.indexOf("?")?"&":"?")+(c.paramsSerializer?c.paramsSerializer(c.params):new URLSearchParams(c.params))),(c.fetch||fetch)(d,{method:(s||c.method||"get").toUpperCase(),body:a,headers:n(c.headers,h,!0),credentials:c.withCredentials?"include":l}).then(function(m){for(var w in m)typeof m[w]!="function"&&(u[w]=m[w]);return c.responseType=="stream"?(u.data=m.body,u):m[c.responseType||"text"]().then(function(E){u.data=E,u.data=JSON.parse(E)}).catch(Object).then(function(){return(c.validateStatus?c.validateStatus(m.status):m.ok)?u:Promise.reject(u)})})}return t=t||{},r.request=r,r.get=function(i,o){return r(i,o,"get")},r.delete=function(i,o){return r(i,o,"delete")},r.head=function(i,o){return r(i,o,"head")},r.options=function(i,o){return r(i,o,"options")},r.post=function(i,o,s){return r(i,s,"post",o)},r.put=function(i,o,s){return r(i,s,"put",o)},r.patch=function(i,o,s){return r(i,s,"patch",o)},r.all=Promise.all.bind(Promise),r.spread=function(i){return i.apply.bind(i,i)},r.CancelToken=typeof AbortController=="function"?AbortController:Object,r.defaults=t,r.create=e,r})(),na={name:"VoucherGrid",components:{VoucherCard:Fs,LoadMoreButton:ea},data:function(){return{pageItems:[],page:1,archiveUrl:null,loading:!1}},props:["element"],methods:{handleResponse:function(e){let t=!1;if(e.data.template==="not-found"){this.archiveUrl=null;return}e.data.data.blocks.forEach(n=>{n.elements.forEach(r=>{r.subtype==="voucherGrid"&&r.data.items.forEach(i=>{t=!0,this.pageItems.push(i)})})}),(!t||this.pageItems.length>=this.element.data.total)&&(this.archiveUrl=null)},loadMore:function(){this.loading=!0,this.page++;const e=this.archiveUrl+"page/"+this.page+"/";ta.get("/headless"+e).then(t=>this.handleResponse(t)).catch(t=>{if(!t.response){this.archiveUrl=null;return}this.archiveUrl=null}).finally(()=>{this.loading=!1})},setDataSettings:function(){this.pageItems=this.element.data.items,this.page=this.element.data.page,this.pageItems.length<this.element.data.total&&(this.archiveUrl=this.element.data.archive_url)}},mounted(){this.setDataSettings()}},ra=window.Vue.renderList,ia=window.Vue.Fragment,ot=window.Vue.openBlock,Wt=window.Vue.createElementBlock,hr=window.Vue.resolveComponent,mr=window.Vue.createBlock,fr=window.Vue.createCommentVNode,qt=window.Vue.createElementVNode,oa={class:"element voucher-grid"},sa={key:1,class:"loading-state"};function aa(e,t,n,r,i,o){const s=hr("VoucherCard"),a=hr("LoadMoreButton");return ot(),Wt("div",oa,[(ot(!0),Wt(ia,null,ra(e.pageItems,l=>(ot(),mr(s,{key:l.post_id,model:l},null,8,["model"]))),128)),!e.loading&&e.archiveUrl?(ot(),mr(a,{key:0,onClick:o.loadMore},null,8,["onClick"])):fr("",!0),e.loading?(ot(),Wt("div",sa,[...t[0]||(t[0]=[qt("div",{class:"button --disabled"},[qt("span",{class:"button__label"},[qt("span",{class:"button__text"},"WIRD GELADEN")])],-1)])])):fr("",!0)])}const la=O(na,[["render",aa]]);function ca(){return Ci().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ci(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const ua=typeof Proxy=="function",da="devtools-plugin:setup",ha="plugin:settings:set";let Fe,Sn;function ma(){var e;return Fe!==void 0||(typeof window<"u"&&window.performance?(Fe=!0,Sn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fe=!0,Sn=globalThis.perf_hooks.performance):Fe=!1),Fe}function fa(){return ma()?Sn.now():Date.now()}class _a{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const a=t.settings[s];r[s]=a.defaultValue}const i="__vue-devtools-plugin-settings__".concat(t.id);let o=Object.assign({},r);try{const s=localStorage.getItem(i),a=JSON.parse(s);Object.assign(o,a)}catch(s){}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch(a){}o=s},now(){return fa()}},n&&n.on(ha,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:a,args:l,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function pa(e,t){const n=e,r=Ci(),i=ca(),o=ua&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit(da,e,t);else{const s=o?new _a(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}window.Vue.inject;const ga=window.Vue.effectScope,va=window.Vue.reactive,ki=window.Vue.watch,wa=window.Vue.computed;var ya="store";function Ze(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Ai(e){return e!==null&&typeof e=="object"}function Ea(e){return e&&typeof e.then=="function"}function ba(e,t){return function(){return e(t)}}function Vi(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Ti(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Tt(e,n,[],e._modules.root,!0),Fn(e,n,t)}function Fn(e,t,n){var r=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},a={},l=ga(!0);l.run(function(){Ze(o,function(d,u){s[u]=ba(d,e),a[u]=wa(function(){return s[u]()}),Object.defineProperty(e.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),e._state=va({data:t}),e._scope=l,e.strict&&Va(e),r&&n&&e._withCommit(function(){r.data=null}),i&&i.stop()}function Tt(e,t,n,r,i){var o=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=r),!o&&!i){var a=Gn(t,
2n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=r.state})}var d=r.context=Sa(e,s,n);r.forEachMutation(function(u,c){var h=s+c;Ca(e,h,u,d)}),r.forEachAction(function(u,c){var h=u.root?c:s+c,m=u.handler||u;ka(e,h,m,d)}),r.forEachGetter(function(u,c){var h=s+c;Aa(e,h,u,d)}),r.forEachChild(function(u,c){Tt(e,t,n.concat(c),u,i)})}function Sa(e,t,n){var r=t==="",i={dispatch:r?e.dispatch:function(o,s,a){var l=Ct(o,s,a),d=l.payload,u=l.options,c=l.type;return(!u||!u.root)&&(c=t+c),e.dispatch(c,d)},commit:r?e.commit:function(o,s,a){var l=Ct(o,s,a),d=l.payload,u=l.options,c=l.type;(!u||!u.root)&&(c=t+c),e.commit(c,d,u)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return Oi(e,t)}},state:{get:function(){return Gn(e.state,n)}}}),i}function Oi(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Ca(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){n.call(e,r.state,s)})}function ka(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(s){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},s);return Ea(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function Aa(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function Va(e){ki(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Gn(e,t){return t.reduce(function(n,r){return n[r]},e)}function Ct(e,t,n){return Ai(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var Ta="vuex bindings",_r="vuex:mutations",Kt="vuex:actions",Ge="vuex",Oa=0;function Ra(e,t){pa({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Ta]},function(n){n.addTimelineLayer({id:_r,label:"Vuex Mutations",color:pr}),n.addTimelineLayer({id:Kt,label:"Vuex Actions",color:pr}),n.addInspector({id:Ge,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ge)if(r.filter){var i=[];Ii(i,t._modules.root,r.filter,""),r.rootNodes=i}else r.rootNodes=[xi(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ge){var i=r.nodeId;Oi(t,i),r.state=Ia(Pa(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ge){var i=r.nodeId,o=r.path;i!=="root"&&(o=i.split("/").filter(Boolean).concat(o)),t._withCommit(function(){r.set(t._state.data,o,r.state.value)})}}),t.subscribe(function(r,i){var o={};r.payload&&(o.payload=r.payload),o.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(Ge),n.sendInspectorState(Ge),n.addTimelineEvent({layerId:_r,event:{time:Date.now(),title:r.type,data:o}})}),t.subscribeAction({before:function(r,i){var o={};r.payload&&(o.payload=r.payload),r._id=Oa++,r._time=Date.now(),o.state=i,n.addTimelineEvent({layerId:Kt,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:o}})},after:function(r,i){var o={},s=Date.now()-r._time;o.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},r.payload&&(o.payload=r.payload),o.state=i,n.addTimelineEvent({layerId:Kt,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:o}})}})})}var pr=8702998,Da=6710886,xa=16777215,Ri={label:"namespaced",textColor:xa,backgroundColor:Da};function Di(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function xi(e,t){return{id:t||"root",label:Di(t),tags:e.namespaced?[Ri]:[],children:Object.keys(e._children).map(function(n){return xi(e._children[n],t+n+"/")})}}function Ii(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[Ri]:[]}
2),Object.keys(t._children).forEach(function(i){Ii(e,t._children[i],n,r+i+"/")})}function Ia(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(r.length){var o=Na(t);i.getters=Object.keys(o).map(function(s){return{key:s.endsWith("/")?Di(s):s,editable:!1,value:Cn(function(){return o[s]})}})}return i}function Na(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var i=t,o=r.pop();r.forEach(function(s){i[s]||(i[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),i=i[s]._custom.value}),i[o]=Cn(function(){return e[n]})}else t[n]=Cn(function(){return e[n]})}),t}function Pa(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,i,o){var s=r[i];if(!s)throw new Error('Missing module "'+i+'" for path "'+t+'".');return o===n.length-1?s:s._children},t==="root"?e:e.root._children)}function Cn(e){try{return e()}catch(t){return t}}var ae=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},Ni={namespaced:{configurable:!0}};Ni.namespaced.get=function(){return!!this._rawModule.namespaced};ae.prototype.addChild=function(t,n){this._children[t]=n};ae.prototype.removeChild=function(t){delete this._children[t]};ae.prototype.getChild=function(t){return this._children[t]};ae.prototype.hasChild=function(t){return t in this._children};ae.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};ae.prototype.forEachChild=function(t){Ze(this._children,t)};ae.prototype.forEachGetter=function(t){this._rawModule.getters&&Ze(this._rawModule.getters,t)};ae.prototype.forEachAction=function(t){this._rawModule.actions&&Ze(this._rawModule.actions,t)};ae.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ze(this._rawModule.mutations,t)};Object.defineProperties(ae.prototype,Ni);var $e=function(t){this.register([],t,!1)};$e.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};$e.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,i){return n=n.getChild(i),r+(n.namespaced?i+"/":"")},"")};$e.prototype.update=function(t){Pi([],this.root,t)};$e.prototype.register=function(t,n,r){var i=this;r===void 0&&(r=!0);var o=new ae(n,r);if(t.length===0)this.root=o;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],o)}n.modules&&Ze(n.modules,function(a,l){i.register(t.concat(l),a,r)})};$e.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],i=n.getChild(r);i&&i.runtime&&n.removeChild(r)};$e.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function Pi(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;Pi(e.concat(r),t.getChild(r),n.modules[r])}}var Y=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var i=t.strict;i===void 0&&(i=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new $e(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var s=this,a=this,l=a.dispatch,d=a.commit;this.dispatch=function(h,m){return l.call(s,h,m)},this.commit=function(h,m,w){return d.call(s,h,m,w)},this.strict=i;var u=this._modules.root.state;Tt(this,u,[],this._modules.root),Fn(this,u),r.forEach(function(c){return c(n)})},Hn={state:{configurable:!0}};Y.prototype.install=function(t,n){t.provide(n||ya,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&Ra(t,this)};Hn.state.get=function(){return this._state.data};Hn.state.set=function(e){};Y.prototype.commit=function(t,n,r){var i=this,o=Ct(t,n,r),s=o.type,a=o.payload,l={type:s,payload:a},d=this._mutations[s];d&&(this._withCommit(function(){d.forEach(function(c){c(a)})}
2),this._subscribers.slice().forEach(function(u){return u(l,i.state)}))};Y.prototype.dispatch=function(t,n){var r=this,i=Ct(t,n),o=i.type,s=i.payload,a={type:o,payload:s},l=this._actions[o];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,r.state)})}catch(u){}var d=l.length>1?Promise.all(l.map(function(u){return u(s)})):l[0](s);return new Promise(function(u,c){d.then(function(h){try{r._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(a,r.state)})}catch(m){}u(h)},function(h){try{r._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(a,r.state,h)})}catch(m){}c(h)})})}};Y.prototype.subscribe=function(t,n){return Vi(t,this._subscribers,n)};Y.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return Vi(r,this._actionSubscribers,n)};Y.prototype.watch=function(t,n,r){var i=this;return ki(function(){return t(i.state,i.getters)},n,Object.assign({},r))};Y.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Y.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Tt(this,this.state,t,this._modules.get(t),r.preserveState),Fn(this,this.state)};Y.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=Gn(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),Ti(this)};Y.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Y.prototype.hotUpdate=function(t){this._modules.update(t),Ti(this,!0)};Y.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Y.prototype,Hn);var Li=Ba(function(e,t){var n={};return La(t).forEach(function(r){var i=r.key,o=r.val;o=e+o,n[i]=function(){if(!(e&&!Ma(this.$store,"mapGetters",e)))return this.$store.getters[o]},n[i].vuex=!0}),n});function La(e){return $a(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function $a(e){return Array.isArray(e)||Ai(e)}function Ba(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function Ma(e,t,n){var r=e._modulesNamespaceMap[n];return r}const $i="SET_AUTH_DATA",Bi="SET_REDIRECT_PATH",Ua={[$i](e,t){return e.auth=t.auth,e.loginUrl=t.login_url,e.registerUrl=t.register_url,e.logoutUrl=t.logout_url,e.userData=t.data},[Bi](e,t){return e.redirectPath=t}},Fa={auth:e=>e.auth,loginUrl:e=>e.loginUrl,registerUrl:e=>e.registerUrl,logoutUrl:e=>e.logoutUrl,redirectPath:e=>e.redirectPath,userData:e=>e.userData,userName:e=>e.userData!==null&&"username"in e.userData?e.userData.username:"",userMail:e=>e.userData!==null&&"email"in e.userData?e.userData.email:"",userNameReadable:e=>e.userData!==null&&"name"in e.userData?e.userData.name:""},Ga={setAuthData:function({commit:e},t){return e($i,t)},setRedirectPath:function({commit:e},t){return e(Bi,t)}},Ha={state:{auth:!1,loginUrl:"",registerUrl:"",logoutUrl:"",redirectPath:"",userData:null},namespaced:!0,mutations:Ua,getters:Fa,actions:Ga};window.Vue.getCurrentInstance;window.Vue.inject;window.Vue.onActivated;window.Vue.onDeactivated;window.Vue.onUnmounted;window.Vue.watch;const We=typeof document<"u";function Mi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ja(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Mi(e.default)}const k=Object.assign;function Yt(e,t){const n={};for(const r in t){const i=t[r];n[r]=oe(i)?i.map(e):e(i)}return n}const ut=()=>{},oe=Array.isArray;function gr(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Ui=/#/g,za=/&/g,Wa=/\//g,qa=/=/g,Ka=/\?/g,Fi=/\+/g,Ya=/%5B/g,Qa=/%5D/g,Gi=/%5E/g,Ja=/%60/g,Hi=/%7B/g,Xa=/%7C/g,ji=/%7D/g,Za=/%20/g;function jn(e){return e==null?"":encodeURI(""+e).replace(Xa,"|").replace(Ya,"[").replace(Qa,"]")}function el(e){return jn(e).replace(Hi,"{").replace(ji,"}").replace(Gi,"^")}function kn(e){return jn(e).replace(Fi,"%2B").replace(Za,"+").replace(Ui,"%23").replace(za,"%26").replace(Ja,"`").replace(Hi,"{").replace(ji,"}").replace(Gi,"^")}function tl(e){return kn(e).replace(qa,"%3D")}function nl(e){return jn(e).replace(Ui,"%23").replace(Ka,"%3F")}function rl(e){return nl(e).replace(Wa,"%2F")}function mt(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const il=/\/$/,ol=e=>e.replace(il,"");function Qt(e,t,n="/"){let r,i={},o="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),o=t.slice(l,a>0?a:t.length),i=e(o.slice(1))),a>=0&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=cl(r!=null?r:t,n),{fullPath:r+o+s,path:r,query:i,hash:mt(s)}}function sl(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function vr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function al(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ke(t.matched[r],n.matched[i])&&zi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ke(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ll(e[n],t[n]))return!1;return!0}function ll(e,t){return oe(e)?wr(e,t):oe(t)?wr(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function wr(e,t){return oe(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function cl(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,s,a;for(s=0;s<r.length;
vendor: 21,142 bytes, line 2
2s++)if(a=r[s],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s).join("/")}const be={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let An=(function(e){return e.pop="pop",e.push="push",e})({}),Jt=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function ul(e){if(!e)if(We){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ol(e)}const dl=/^[^#]+#/;function hl(e,t){return e.replace(dl,"#")+t}function ml(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Ot=()=>({left:window.scrollX,top:window.scrollY});function fl(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ml(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function yr(e,t){return(history.state?history.state.position-t:-1)+e}const Vn=new Map;function _l(e,t){Vn.set(e,t)}function pl(e){const t=Vn.get(e);return Vn.delete(e),t}function gl(e){return typeof e=="string"||e&&typeof e=="object"}function Wi(e){return typeof e=="string"||typeof e=="symbol"}let N=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const qi=Symbol("");N.MATCHER_NOT_FOUND+"",N.NAVIGATION_GUARD_REDIRECT+"",N.NAVIGATION_ABORTED+"",N.NAVIGATION_CANCELLED+"",N.NAVIGATION_DUPLICATED+"";function Ye(e,t){return k(new Error,{type:e,[qi]:!0},t)}function pe(e,t){return e instanceof Error&&qi in e&&(t==null||!!(e.type&t))}const vl=["params","query","hash"];function wl(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of vl)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function yl(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(Fi," "),o=i.indexOf("="),s=mt(o<0?i:i.slice(0,o)),a=o<0?null:mt(i.slice(o+1));if(s in t){let l=t[s];oe(l)||(l=t[s]=[l]),l.push(a)}else t[s]=a}return t}function Er(e){let t="";for(let n in e){const r=e[n];if(n=tl(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(oe(r)?r.map(i=>i&&kn(i)):[r&&kn(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function El(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=oe(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const bl=Symbol(""),br=Symbol(""),zn=Symbol(""),Wn=Symbol(""),Tn=Symbol("");function st(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ke(e,t,n,r,i,o=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const d=h=>{h===!1?l(Ye(N.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?l(h):gl(h)?l(Ye(N.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(s&&r.enterCallbacks[i]===s&&typeof h=="function"&&s.push(h),a())},u=o(()=>e.call(r&&r.instances[i],t,n,d));let c=Promise.resolve(u);e.length<3&&(c=c.then(d)),c.catch(h=>l(h))})}function Xt(e,t,n,r,i=o=>o()){const o=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Mi(l)){const d=(l.__vccOpts||l)[t];d&&o.push(ke(d,n,r,s,a,i))}else{let d=l();o.push(()=>d.then(u=>{if(!u)throw new Error("Couldn't resolve component \"".concat(a,'" at "').concat(s.path,'"'));const c=ja(u)?u.default:u;s.mods[a]=u,s.components[a]=c;const h=(c.__vccOpts||c)[t];return h&&ke(h,n,r,s,a,i)()}))}}return o}function Sl(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const a=t.matched[s];a&&(e.matched.find(d=>Ke(d,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(d=>Ke(d,l))||i.push(l))}return[n,r,i]}const me=window.Vue.computed,Ki=window.Vue.defineComponent;window.Vue.getCurrentInstance;const Yi=window.Vue.h,Qe=window.Vue.inject,Cl=window.Vue.nextTick,Zt=window.Vue.provide,kl=window.Vue.reactive,Al=window.Vue.ref,Vl=window.Vue.shallowReactive,Tl=window.Vue.shallowRef,dt=window.Vue.unref,Ol=window.Vue.watch;window.Vue.watchEffect;let Rl=()=>location.protocol+"//"+location.host;function Qi(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,a=i.slice(s);return a[0]!=="/"&&(a="/"+a),vr(a,"")}return vr(n,e)+r+i}function Dl(e,t,n,r){let i=[],o=[],s=null;const a=({state:h})=>{const m=Qi(e,location),w=n.value,E=t.value;let R=0;if(h){if(n.value=m,t.value=h,s&&s===w){s=null;return}R=E?h.position-E.position:0}else r(m);i.forEach(D=>{D(n.value,w,{delta:R,type:An.pop,direction:R?R>0?Jt.forward:Jt.back:Jt.unknown})})};function l(){s=n.value}function d(h){i.push(h);const m=()=>{const w=i.indexOf(h);w>-1&&i.splice(w,1)};return o.push(m),m}function u(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(k({},h.state,{scroll:Ot()}),"")}}function c(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:d,destroy:c}}function Sr(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Ot():null}}function xl(e){const{history:t,location:n}=window,r={value:Qi(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,d,u){const c=e.indexOf("#"),h=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+l:Rl()+e+l;try{t[u?"replaceState":"pushState"](d,"",h),i.value=d}catch(m){console.error(m),n[u?"replace":"assign"](h)}}function s(l,d){o(l,k({},t.state,Sr(i.value.back,l,i.value.forward,!0),d,{position:i.value.position}),!0),r.value=l}function a(l,d){const u=k({},i.value,t.state,{forward:l,scroll:Ot()});o(u.current,u,!0),o(l,k({},Sr(r.value,l,null),{position:u.position+1},d),!1),r.value=l}return{location:r,state:i,push:a,replace:s}}function Il(e){e=ul(e);const t=xl(e),n=Dl(e,t.state,t.location,t.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=k({location:"",base:e,go:r,createHref:hl.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let De=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var B=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(B||{});const Nl={type:De.Static,value:""},Pl=/[a-zA-Z0-9_]/;function Ll(e){if(!e)return[[]];if(e==="/")return[[Nl]];if(!e.startsWith("/"))throw new Error('Invalid path "'.concat(e,'"'));function t(m){throw new Error("ERR (".concat(n,')/"').concat(d,'": ').concat(m))}let n=B.Static,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,l,d="",u="";function c(){d&&(n===B.Static?o.push({type:De.Static,value:d}):n===B.Param||n===B.ParamRegExp||n===B.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t("A repeatable param (".concat(d,") must be alone in its segment. eg: '/:ids+.")),o.push({type:De.Param,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function h(){d+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==B.ParamRegExp){r=n,n=B.EscapeNext;continue}switch(n){case B.Static:l==="/"?(d&&c(),s()):l===":"?(c(),n=B.Param):h();break;case B.EscapeNext:h(),n=r;break;case B.Param:l==="("?n=B.ParamRegExp:Pl.test(l)?h():(c(),n=B.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case B.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=B.ParamRegExpEnd:u+=l;break;case B.ParamRegExpEnd:c(),n=B.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===B.ParamRegExp&&t('Unfinished custom RegExp for param "'.concat(d,'"')),c(),s(),i}const Cr="[^/]+?",$l={sensitive:!1,strict:!1,start:!0,end:!0};var F=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(F||{});const Bl=/[.+*?^${}()[\]/\\]/g;function Ml(e,t){const n=k({},$l,t),r=[];let i=n.start?"^":"";const o=[];for(const d of e){const u=d.length?[]:[F.Root];n.strict&&!d.length&&(i+="/");for(let c=0;c<d.length;c++){const h=d[c];let m=F.Segment+(n.sensitive?F.BonusCaseSensitive:0);if(h.type===De.Static)c||(i+="/"),i+=h.value.replace(Bl,"\\$&"),m+=F.Static;else if(h.type===De.Param){const{value:w,repeatable:E,optional:R,regexp:D}=h;o.push({name:w,repeatable:E,optional:R});const C=D||Cr;if(C!==Cr){m+=F.BonusCustomRegExp;try{"".concat(C)}catch(te){throw new Error('Invalid custom RegExp for param "'.concat(w,'" (').concat(C,"): ")+te.message)}}let V=E?"((?:".concat(C,")(?:/(?:").concat(C,"))*)"):"(".concat(C,")");c||(V=R&&d.length<2?"(?:/".concat(V,")"):"/"+V),R&&(V+="?"),i+=V,m+=F.Dynamic,R&&(m+=F.BonusOptional),E&&(m+=F.BonusRepeatable),C===".*"&&(m+=F.BonusWildcard)}u.push(m)}r.push(u)}if(n.strict&&n.end){const d=r.length-1;r[d][r[d].length-1]+=F.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(d){const u=d.match(s),c={};if(!u)return null;for(let h=1;h<u.length;h++){const m=u[h]||"",w=o[h-1];c[w.name]=m&&w.repeatable?m.split("/"):m}return c}function l(d){let u="",c=!1;for(const h of e){(!c||!u.endsWith("/"))&&(u+="/"),c=!1;for(const m of h)if(m.type===De.Static)u+=m.value;else if(m.type===De.Param){const{value:w,repeatable:E,optional:R}=m,D=w in d?d[w]:"";if(oe(D)&&!E)throw new Error('Provided param "'.concat(w,'" is an array but it is not repeatable (* or + modifiers)'));const C=oe(D)?D.join("/"):D;if(!C)if(R)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):c=!0);else throw new Error('Missing required param "'.concat(w,'"'));u+=C}}return u||"/"}return{re:s,score:r,keys:o,parse:a,stringify:l}}function Ul(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===F.Static+F.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===F.Static+F.Segment?1:-1:0}function Ji(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=Ul(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(kr(r))return 1;if(kr(i))return-1}return i.length-r.length}function kr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Fl={strict:!1,end:!0,sensitive:!1};function Gl(e,t,n){const r=Ml(Ll(e.path),n),i=k(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Hl(e,t){const n=[],r=new Map;t=gr(Fl,t);function i(c){return r.get(c)}function o(c,h,m){const w=!m,E=Vr(c);E.aliasOf=m&&m.record;const R=gr(t,c),D=[E];if("alias"in c){const te=typeof c.alias=="string"?[c.alias]:c.alias;for(const Ve of te)D.push(Vr(k({},E,{components:m?m.record.components:E.components,path:Ve,aliasOf:m?m.record:E})))}let C,V;for(const te of D){const{path:Ve}=te;if(h&&Ve[0]!=="/"){const Ee=h.record.path,Q=Ee[Ee.length-1]==="/"?"":"/";te.path=h.record.path+(Ve&&Q+Ve)}if(C=Gl(te,h,R),m?m.alias.push(C):(V=V||C,V!==C&&V.alias.push(C),w&&c.name&&!Tr(C)&&s(c.name)),Xi(C)&&l(C),E.children){const Ee=E.children;for(let Q=0;Q<Ee.length;Q++)o(Ee[Q],C,m&&m.children[Q])}m=m||C}return V?()=>{s(V)}:ut}function s(c){if(Wi(c)){const h=r.get(c);h&&(r.delete(c),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(c);h>-1&&(n.splice(h,1),c.record.name&&r.delete(c.record.name),c.children.forEach(s),c.alias.forEach(s))}}function a(){return n}function l(c){const h=Wl(c,n);n.splice(h,0,c),c.record.name&&!Tr(c)&&r.set(c.record.name,c)}function d(c,h){let m,w={},E,R;if("name"in c&&c.name){if(m=r.get(c.name),!m)throw Ye(N.MATCHER_NOT_FOUND,{location:c});R=m.record.name,w=k(Ar(h.params,m.keys.filter(V=>!V.optional).concat(m.parent?m.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),c.params&&Ar(c.params,m.keys.map(V=>V.name))),E=m.stringify(w)}else if(c.path!=null)E=c.path,m=n.find(V=>V.re.test(E)),m&&(w=m.parse(E),R=m.record.name);else{if(m=h.name?r.get(h.name):n.find(V=>V.re.test(h.path)),!m)throw Ye(N.MATCHER_NOT_FOUND,{location:c,currentLocation:h});R=m.record.name,w=k({},h.params,c.params),E=m.stringify(w)}const D=[];let C=m;for(;C;)D.unshift(C.record),C=C.parent;return{name:R,path:E,params:w,matched:D,meta:zl(D)}}e.forEach(c=>o(c));function u(){n.length=0,r.clear()}return{addRoute:o,resolve:d,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function Ar(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Vr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:jl(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function jl(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Tr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zl(e){return e.reduce((t,n)=>k(t,n.meta),{})}function Wl(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Ji(e,t[o])<0?r=o:n=o+1}const i=ql(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function ql(e){let t=e;for(;t=t.parent;)if(Xi(t)&&Ji(e,t)===0)return t}function Xi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Or(e){const t=Qe(zn),n=Qe(Wn),r=me(()=>{const l=dt(e.to);return t.resolve(l)}),i=me(()=>{const{matched:l}=r.value,{length:d}=l,u=l[d-1],c=n.matched;if(!u||!c.length)return-1;const h=c.findIndex(Ke.bind(null,u));if(h>-1)return h;const m=Rr(l[d-2]);return d>1&&Rr(u)===m&&c[c.length-1].path!==m?c.findIndex(Ke.bind(null,l[d-2])):h}),o=me(()=>i.value>-1&&Xl(n.params,r.value.params)),s=me(()=>i.value>-1&&i.value===n.matched.length-1&&zi(n.params,r.value.params));function a(l={}){if(Jl(l)){const d=t[dt(e.replace)?"replace":"push"](dt(e.to)).catch(ut);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:me(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}function Kl(e){return e.length===1?e[0]:e}const Yl=Ki({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Or,setup(e,{slots:t}){const n=kl(Or(e)),{options:r}=Qe(zn),i=me(()=>({[Dr(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Dr(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Kl(t.default(n));return e.custom?o:Yi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Ql=Yl;function Jl(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xl(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!oe(i)||i.length!==r.length||r.some((o,s)=>o.valueOf()!==i[s].valueOf()))return!1}return!0}function Rr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Dr=(e,t,n)=>e!=null?e:t!=null?t:n,Zl=Ki({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Qe(Tn),i=me(()=>e.route||r.value),o=Qe(br,0),s=me(()=>{let d=dt(o);const{matched:u}=i.value;let c;for(;(c=u[d])&&!c.components;)d++;return d}),a=me(()=>i.value.matched[s.value]);Zt(br,me(()=>s.value+1)),Zt(bl,a),Zt(Tn,i);const l=Al();return Ol(()=>[l.value,a.value,e.name],([d,u,c],[h,m,w])=>{u&&(u.instances[c]=d,m&&m!==u&&d&&d===h&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),d&&u&&(!m||!Ke(u,m)||!h)&&(u.enterCallbacks[c]||[]).forEach(E=>E(d))},{flush:"post"}),()=>{const d=i.value,u=e.name,c=a.value,h=c&&c.components[u];if(!h)return xr(n.default,{Component:h,route:d});const m=c.props[u],w=m?m===!0?d.params:typeof m=="function"?m(d):m:null,R=Yi(h,k({},w,t,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(c.instances[u]=null)},ref:l}));return xr(n.default,{Component:R,route:d})||R}}});function xr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ec=Zl;function tc(e){const t=Hl(e.routes,e),n=e.parseQuery||yl,r=e.stringifyQuery||Er,i=e.history,o=st(),s=st(),a=st(),l=Tl(be);let d=be;We&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Yt.bind(null,f=>""+f),c=Yt.bind(null,rl),h=Yt.bind(null,mt);function m(f,g){let _,v;return Wi(f)?(_=t.getRecordMatcher(f),v=g):v=f,t.addRoute(v,_)}function w(f){const g=t.getRecordMatcher(f);g&&t.removeRoute(g)}function E(){return t.getRoutes().map(f=>f.record)}function R(f){return!!t.getRecordMatcher(f)}function D(f,g){if(g=k({},g||l.value),typeof f=="string"){const y=Qt(n,f,g.path),L=t.resolve({path:y.path},g),nt=i.createHref(y.fullPath);return k(y,L,{params:h(L.params),hash:mt(y.hash),redirectedFrom:void 0,href:nt})}let _;if(f.path!=null)_=k({},f,{path:Qt(n,f.path,g.path).path});else{const y=k({},f.params);for(const L in y)y[L]==null&&delete y[L];_=k({},f,{params:c(y)}),g.params=c(g.params)}const v=t.resolve(_,g),S=f.hash||"";v.params=u(h(v.params));const P=sl(r,k({},f,{hash:el(S),path:v.path})),b=i.createHref(P);return k({fullPath:P,hash:S,query:r===Er?El(f.query):f.query||{}},v,{redirectedFrom:void 0,href:b})}function C(f){return typeof f=="string"?Qt(n,f,l.value.path):k({},f)}function V(f,g){if(d!==f)return Ye(N.NAVIGATION_CANCELLED,{from:g,to:f})}function te(f){return Q(f)}function Ve(f){return te(k(C(f),{replace:!0}))}function Ee(f,g){const _=f.matched[f.matched.length-1];if(_&&_.redirect){const{redirect:v}=_;let S=typeof v=="function"?v(f,g):v;return typeof S=="string"&&(S=S.includes("?")||S.includes("#")?S=C(S):{path:S},S.params={}),k({query:f.query,hash:f.hash,params:S.path!=null?{}:f.params},S)}}function Q(f,g){const _=d=D(f),v=l.value,S=f.state,P=f.force,b=f.replace===!0,y=Ee(_,v);if(y)return Q(k(C(y),{state:typeof y=="object"?k({},S,y.state):S,force:P,replace:b}),g||_);const L=_;L.redirectedFrom=g;let nt;return!P&&al(r,v,_)&&(nt=Ye(N.NAVIGATION_DUPLICATED,{to:L,from:v}),tr(v,v,!0,!1)),(nt?Promise.resolve(nt):Jn(L,v)).catch(G=>pe(G)?pe(G,N.NAVIGATION_GUARD_REDIRECT)?G:Nt(G):It(G,L,v)).then(G=>{if(G){if(pe(G,N.NAVIGATION_GUARD_REDIRECT))return Q(k({replace:b},C(G.to),{state:typeof G.to=="object"?k({},S,G.to.state):S,force:P}),g||L)}else G=Zn(L,v,!0,b,S);return Xn(L,v,G),G})}function mo(f,g){const _=V(f,g);return _?Promise.reject(_):Promise.resolve()}function Dt(f){const g=pt.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(f):f()}function Jn(f,g){let _;const[v,S,P]=Sl(f,g);_=Xt(v.reverse(),"beforeRouteLeave",f,g);for(const y of v)y.leaveGuards.forEach(L=>{_.push(ke(L,f,g))});const b=mo.bind(null,f,g);return _.push(b),Be(_).then(()=>{_=[];for(const y of o.list())_.push(ke(y,f,g));return _.push(b),Be(_)}).then(()=>{_=Xt(S,"beforeRouteUpdate",f,g);for(const y of S)y.updateGuards.forEach(L=>{_.push(ke(L,f,g))});return _.push(b),Be(_)}).then(()=>{_=[];for(const y of P)if(y.beforeEnter)if(oe(y.beforeEnter))for(const L of y.beforeEnter)_.push(ke(L,f,g));else _.push(ke(y.beforeEnter,f,g));return _.push(b),Be(_)}).then(()=>(f.matched.forEach(y=>y.enterCallbacks={}),_=Xt(P,"beforeRouteEnter",f,g,Dt),_.push(b),Be(_))).then(()=>{_=[];for(const y of s.list())_.push(ke(y,f,g));return _.push(b),Be(_)}).catch(y=>pe(y,N.NAVIGATION_CANCELLED)?y:Promise.reject(y))}
2function Xn(f,g,_){a.list().forEach(v=>Dt(()=>v(f,g,_)))}function Zn(f,g,_,v,S){const P=V(f,g);if(P)return P;const b=g===be,y=We?history.state:{};_&&(v||b?i.replace(f.fullPath,k({scroll:b&&y&&y.scroll},S)):i.push(f.fullPath,S)),l.value=f,tr(f,g,_,b),Nt()}let et;function fo(){et||(et=i.listen((f,g,_)=>{if(!tt.listening)return;const v=D(f),S=Ee(v,tt.currentRoute.value);if(S){Q(k(S,{replace:!0,force:!0}),v).catch(ut);return}d=v;const P=l.value;We&&_l(yr(P.fullPath,_.delta),Ot()),Jn(v,P).catch(b=>pe(b,N.NAVIGATION_ABORTED|N.NAVIGATION_CANCELLED)?b:pe(b,N.NAVIGATION_GUARD_REDIRECT)?(Q(k(C(b.to),{force:!0}),v).then(y=>{pe(y,N.NAVIGATION_ABORTED|N.NAVIGATION_DUPLICATED)&&!_.delta&&_.type===An.pop&&i.go(-1,!1)}).catch(ut),Promise.reject()):(_.delta&&i.go(-_.delta,!1),It(b,v,P))).then(b=>{b=b||Zn(v,P,!1),b&&(_.delta&&!pe(b,N.NAVIGATION_CANCELLED)?i.go(-_.delta,!1):_.type===An.pop&&pe(b,N.NAVIGATION_ABORTED|N.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),Xn(v,P,b)}).catch(ut)}))}let xt=st(),er=st(),_t;function It(f,g,_){Nt(f);const v=er.list();return v.length?v.forEach(S=>S(f,g,_)):console.error(f),Promise.reject(f)}function _o(){return _t&&l.value!==be?Promise.resolve():new Promise((f,g)=>{xt.add([f,g])})}function Nt(f){return _t||(_t=!f,fo(),xt.list().forEach(([g,_])=>f?_(f):g()),xt.reset()),f}function tr(f,g,_,v){const{scrollBehavior:S}=e;if(!We||!S)return Promise.resolve();const P=!_&&pl(yr(f.fullPath,0))||(v||!_)&&history.state&&history.state.scroll||null;return Cl().then(()=>S(f,g,P)).then(b=>b&&fl(b)).catch(b=>It(b,f,g))}const Pt=f=>i.go(f);let Lt;const pt=new Set,tt={currentRoute:l,listening:!0,addRoute:m,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:R,getRoutes:E,resolve:D,options:e,push:te,replace:Ve,go:Pt,back:()=>Pt(-1),forward:()=>Pt(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:er.add,isReady:_o,install(f){f.component("RouterLink",Ql),f.component("RouterView",ec),f.config.globalProperties.$router=tt,Object.defineProperty(f.config.globalProperties,"$route",{enumerable:!0,get:()=>dt(l)}),We&&!Lt&&l.value===be&&(Lt=!0,te(i.location).catch(v=>{}));const g={};for(const v in be)Object.defineProperty(g,v,{get:()=>l.value[v],enumerable:!0});f.provide(zn,tt),f.provide(Wn,Vl(g)),f.provide(Tn,l);const _=f.unmount;pt.add(f),f.unmount=function(){pt.delete(f),pt.size<1&&(d=be,et&&et(),et=null,l.value=be,Lt=!1,_t=!1),_()}}};function Be(f){return f.reduce((g,_)=>g.then(()=>Dt(_)),Promise.resolve())}return tt}function nc(e){return Qe(Wn)}var xe;class rc{constructor(){J(this,xe,{})}set(t){if(typeof t!="object"){console.error("[soylent:serviceProvider] set failed, you did not pass a collection",t);return}Object.assign(p(this,xe),t)}has(t){return Object.keys(p(this,xe)).indexOf(t)>=0}get(){return p(this,xe)}getByName(t){return this.has(t)?p(this,xe)[t]:null}}xe=new WeakMap;function en(){return"__soylent"in window||(window.__soylent={}),"serviceProvider"in window.__soylent||(window.__soylent.serviceProvider=new rc),window.__soylent.serviceProvider}var H;class ic{constructor(){J(this,H,{})}on(t,n,r={}){const{priority:i=10}=r;p(this,H)[t]||(p(this,H)[t]=[]),p(this,H)[t]["p".concat(i)]||(p(this,H)[t]["p".concat(i)]=[]),p(this,H)[t]["p".concat(i)].push(n)}off(t,n,r={}){const{priority:i=10}=r;if(console.debug("[SoylentFilterProvider] Unsubscribing "+t),!p(this,H)[t]||!p(this,H)[t]["p".concat(i)])return;const o=p(this,H)[t]["p".concat(i)].indexOf(n);o>=0?(p(this,H)[t]["p".concat(i)].splice(o,1),console.debug("[SoylentFilterProvider] Callback removed ")):(console.debug("[SoylentFilterProvider] Callback not found "),console.debug(n))}filter(t,n,r={},...i){const{once:o=!1}=r;let s=0;if(!p(this,H)[t])return n;const a=p(this,H)[t];return Object.keys(a).sort((l,d)=>parseInt(l.substring(1),10)-parseInt(d.substring(1),10)).forEach(l=>{a[l].forEach(d=>{(o&&s<1||!o)&&(n=d(n,...i)),s++})}),n}}H=new WeakMap;const qn=new ic,oc={RESPONSE_DATA:"BASE_VIEW__RESPONSE_DATA"},Zi={SHOW_RESTRICTED:"BLOCK__SHOW_RESTRICTED"};var ye;class sc{constructor(){J(this,ye)}init(t){rt(this,ye,t),p(this,ye).registerModule("sso",Ha),qn.on(Zi.SHOW_RESTRICTED,(n,r)=>r==="auth"?p(this,ye).state.sso.auth:r==="no_auth"?!p(this,ye).state.sso.auth:n,{priority:1}),this.getAuthData()}getAuthData(){j.get("/cmms-api/v3/sso/profile/status").then(t=>{p(this,ye).dispatch("sso/setAuthData",t)}).catch(t=>{console.error("[auth]",t)})}getLoginUrl(t){const n=nc();return t||(t=p(this,ye).getters["sso/loginUrl"]),typeof t<"u"&&t!==null?n&&"path"in n?t="".concat(t,"?redirect=").concat(encodeURI(n.path)):t="".concat(t,"?redirect=").concat(encodeURI(window.location.pathname)):console.error("[auth] Login url undefined"),t}}ye=new WeakMap;function On(){return en().has("SSOService")||en().set({SSOService:new sc}),en().getByName("SSOService")}
2const ac={name:"User",data:function(){return{iframeSrc:null,showIframe:!1}},computed:{...Bn("sso",["auth","logoutUrl","userName","userMail","userNameReadable"])},methods:{setIframe:function(e){this.iframeSrc=e,this.$refs.profileFrame.onload=()=>{const t=this.$refs.profileFrame.contentWindow.location.toString();(t===window.location.toString()||t===window.location.origin+"/")&&(On().getAuthData(),this.iframeSrc=null)}}}},lc=window.Vue.toDisplayString,at=window.Vue.createElementVNode,cc=window.Vue.vShow,uc=window.Vue.withDirectives,dc=window.Vue.openBlock,hc=window.Vue.createElementBlock,mc={class:"sso-auth__card --profile"},fc={class:"sso-auth__card__headline"},_c=["src"];function pc(e,t,n,r,i,o){return dc(),hc("div",mc,[at("h3",fc,"Hallo "+lc(e.userNameReadable)+"!",1),at("button",{class:"sso-auth__card__button",onClick:t[0]||(t[0]=s=>o.setIframe(e.logoutUrl))},[...t[1]||(t[1]=[at("span",{class:"sso-auth__card__button__label"},[at("span",{class:"sso-auth__card__button__text"},"Abmelden")],-1)])]),uc(at("iframe",{ref:"profileFrame",width:"100%",height:"750px",src:e.iframeSrc,style:{display:"block",border:"0",outline:"0"}},null,8,_c),[[cc,e.showIframe]])])}const gc=O(ac,[["render",pc]]),Kn={name:"VoucherProfile",extends:gc};var Ie;class Yn{constructor(){J(this,Ie,{})}set(t){if(typeof t!="object"){console.error("[soylent:componentProvider] set failed, you did not pass a collection",t);return}Object.assign(p(this,Ie),t)}has(t){return Object.keys(p(this,Ie)).indexOf(t)>=0}get(){return p(this,Ie)}getByName(t,n=null){return this.has(t)?p(this,Ie)[t]:n}}Ie=new WeakMap;const Rt=new Yn,eo=(function e(t){function n(i,o,s){var a,l={};if(Array.isArray(i))return i.concat(o);for(a in i)l[s?a.toLowerCase():a]=i[a];for(a in o){var d=s?a.toLowerCase():a,u=o[a];l[d]=d in l&&typeof u=="object"?n(l[d],u,d=="headers"):u}return l}function r(i,o,s,a,l){var d=typeof i!="string"?(o=i).url:i,u={config:o},c=n(t,o),h={};a=a||c.data,(c.transformRequest||[]).map(function(m){a=m(a,c.headers)||a}),c.auth&&(h.authorization=c.auth),a&&typeof a=="object"&&typeof a.append!="function"&&typeof a.text!="function"&&(a=JSON.stringify(a),h["content-type"]="application/json");try{h[c.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+c.xsrfCookieName+"=([^;]*)"))[2])}catch(m){}return c.baseURL&&(d=d.replace(/^(?!.*\/\/)\/?/,c.baseURL+"/")),c.params&&(d+=(~d.indexOf("?")?"&":"?")+(c.paramsSerializer?c.paramsSerializer(c.params):new URLSearchParams(c.params))),(c.fetch||fetch)(d,{method:(s||c.method||"get").toUpperCase(),body:a,headers:n(c.headers,h,!0),credentials:c.withCredentials?"include":l}).then(function(m){for(var w in m)typeof m[w]!="function"&&(u[w]=m[w]);return c.responseType=="stream"?(u.data=m.body,u):m[c.responseType||"text"]().then(function(E){u.data=E,u.data=JSON.parse(E)}).catch(Object).then(function(){return(c.validateStatus?c.validateStatus(m.status):m.ok)?u:Promise.reject(u)})})}return t=t||{},r.request=r,r.get=function(i,o){return r(i,o,"get")},r.delete=function(i,o){return r(i,o,"delete")},r.head=function(i,o){return r(i,o,"head")},r.options=function(i,o){return r(i,o,"options")},r.post=function(i,o,s){return r(i,s,"post",o)},r.put=function(i,o,s){return r(i,s,"put",o)},r.patch=function(i,o,s){return r(i,s,"patch",o)},r.all=Promise.all.bind(Promise),r.spread=function(i){return i.apply.bind(i,i)},r.CancelToken=typeof AbortController=="function"?AbortController:Object,r.defaults=t,r.create=e,r})(),Rn="soylent_component_data_",vc={state:{headerHeight:64,loading:!1,menuOpen:!1,subMenuOpen:!1,pageData:{},pageDebugData:null,pageTemplate:null,scrollOffset:{x:0,y:0},categoryModalOpen:!1,searchOpen:!1,currentData:{},hasFavorites:!1,componentData:{},loadedScripts:[],renderedFullPage:!1,renderedImages:0},mutations:{SET_HAS_FAVORITES(e,t){e.hasFavorites=t},CLOSE_CATEGORY_MODAL(e){e.categoryModalOpen=!1},CLOSE_MENU(e){e.menuOpen=!1},CLOSE_SUB_MENU(e){e.subMenuOpen=!1},CLOSE_SEARCH(e){e.searchOpen=!1},SET_LOADING(e,t){e.loading=t},SET_CURRENT_DATA(e,t){e.currentData=t},SET_PAGE_DATA(e,t){e.pageData=t},SET_PAGE_DEBUG_DATA(e,t){e.pageDebugData=t},SET_PAGE_TEMPLATE(e,t){e.pageTemplate=t},SET_SCROLL_OFFSET(e,t){e.scrollOffset=t},SET_HEADER_HEIGHT(e,t){e.headerHeight=t},SET_SUB_MENU_OPEN(e,t){e.subMenuOpen=t},TOGGLE_CATEGORY_MODAL(e){e.categoryModalOpen=!e.categoryModalOpen},TOGGLE_MENU(e){e.menuOpen=!e.menuOpen},TOGGLE_SEARCH(e){e.searchOpen=!e.searchOpen},SET_SCRIPT_LOADED(e,t){e.loadedScripts.includes(t)||e.loadedScripts.push(t)},UPDATE_COMPONENT_DATA(e,t){!1 in t||("persistent"in t&&t.persistent===!0&&window.localStorage.setItem(Rn+t.key,JSON.stringify(t.value)),e.componentData[t.key]=t.value)},SET_RENDERED_FULL_PAGE(e,t){e.renderedFullPage=t},SET_RENDERED_IMAGES(e,t){e.renderedImages=t},INCREASE_RENDERED_IMAGES(e){e.renderedImages++},RESET_RENDERED_IMAGES(e){e.renderedImages=0}},getters:{hasFavorites(e){return e.hasFavorites},currentData(e){return e.currentData},headerHeight(e){return e.headerHeight},isLoading(e){return e.loading},isCategoryModalOpen(e){return e.categoryModalOpen},isMenuOpen(e){return e.menuOpen},isSubMenuOpen(e){return e.subMenuOpen},isSearchOpen(e){return e.searchOpen},pageData(e){return e.pageData},pageDebugData(e){return e.pageDebugData},pageTemplate(e){return e.pageTemplate},scrollOffset(e){return e.scrollOffset},isScriptLoaded:e=>t=>e.loadedScripts.includes(t),componentData(e){return e.componentData},renderedFullPage(e){return e.renderedFullPage},renderedImages(e){return e.renderedImages}},actions:{setHasFavorites(e,t){e.commit("SET_HAS_FAVORITES",t)},closeCategoryModal(e){e.commit("CLOSE_CATEGORY_MODAL")},closeMenu(e){e.commit("CLOSE_MENU")},closeSubMenu(e){e.commit("CLOSE_SUB_MENU")},closeSearch(e){e.commit("CLOSE_SEARCH")},setHeaderHeight(e,t){e.commit("SET_HEADER_HEIGHT",t)}
2,setLoading(e,t){e.commit("SET_LOADING",!!t)},getCurrentData(e){eo.get("/cache/soylent/current_data.json").then(t=>{const n=t.data;e.commit("SET_CURRENT_DATA",n)}).catch(t=>{if(!t.response){console.debug(t);return}console.debug(t.response)})},setPageData(e,t){e.commit("SET_PAGE_DATA",t)},setPageDebugData(e,t){e.commit("SET_PAGE_DEBUG_DATA",t)},setPageTemplate(e,t){e.commit("SET_PAGE_TEMPLATE",t)},setScrollOffset(e,t){e.commit("SET_SCROLL_OFFSET",t)},setScriptLoaded(e,t){e.commit("SET_SCRIPT_LOADED",t)},setSubMenuOpen(e){e.commit("SET_SUB_MENU_OPEN",!0)},toggleCategoryModal(e){e.commit("TOGGLE_CATEGORY_MODAL")},toggleMenu(e){e.commit("TOGGLE_MENU")},toggleSearch(e){e.commit("TOGGLE_SEARCH")},setComponentData(e,t){e.commit("UPDATE_COMPONENT_DATA",t)},setRenderedFullPage(e,t){e.commit("SET_RENDERED_FULL_PAGE",t)},setRenderedImages(e,t){e.commit("SET_RENDERED_IMAGES",t)},increaseRenderedImages(e){e.commit("INCREASE_RENDERED_IMAGES")},resetRenderedImages(e){e.commit("RESET_RENDERED_IMAGES")}}};let wc=!1,yc=null;const Ec={state:{modalVisible:wc,modalType:yc},mutations:{SET_MODAL_VISIBLE(e,t){e.modalVisible=t},SET_MODAL_TYPE(e,t){e.modalType=t}},getters:{modalVisible(e){return e.modalVisible},modalType(e){return e.modalType}},actions:{setModalVisible(e,t){e.commit("SET_MODAL_VISIBLE",t)},setModalType(e,t){e.commit("SET_MODAL_TYPE",t)}}},to="SHOW_READER",no="HIDE_READER",ro="SHOW_READER_AUTOPLAY",io="SET_READER_AUTOPLAY",bc={[to](e){return e.show=!0,!0},[ro](e){return e.show=!0,e.autoplay=!0,!0},[io](e,t){return e.autoplay=t,!0},[no](e,t){return e.show=!1,e.autoplay=!1,!0}},Sc={show:e=>e.show,autoplay:e=>e.autoplay},Cc={showReader:function({commit:e},t){return e(to,t)},showReaderAutoplay:function({commit:e},t){return e(ro,t)},setReaderAutoplay:function({commit:e},t){return e(io,t)},hideReader:function({commit:e},t){return e(no,t)}},kc={state:{show:!1,autoplay:!1},namespaced:!0,mutations:bc,getters:Sc,actions:Cc},Ac={app:vc,modal:Ec,reader:kc},Je=ls({modules:Ac});window.soylentRegisterStoreModule=function(e,t){if(Je.hasModule(e)){console.debug("[soylent] Cannot register store module [".concat(e,"] as it already exists"));return}Je.registerModule(e,t)};Object.keys(window.localStorage).forEach(e=>{const t=new RegExp("^".concat(Rn.replace(/\./g,"."),"(.+)$"),"i"),n=e.match(t);n&&Je.dispatch("setComponentData",{key:n[1],value:JSON.parse(window.localStorage.getItem("".concat(Rn).concat(n[1]))),persistant:!1})});var ie;class Vc{constructor(){J(this,ie,{})}on(t,n){p(this,ie)[t]||(p(this,ie)[t]=[]),p(this,ie)[t].push(n)}off(t,n){if(!p(this,ie)[t])return;const r=p(this,ie)[t].indexOf(n);r>=0&&p(this,ie)[t].splice(r,1)}dispatch(t,...n){p(this,ie)[t]&&p(this,ie)[t].forEach(r=>r(...n))}}ie=new WeakMap;const Ir=new Vc,Nr={NAV:"BASE_VIEW_NAV",HANDLE_RESPONSE:"BASE_VIEW_HANDLE_RESPONSE"},Tc={ELEMENT_PROVIDER_READY:"ELEMENT_PROVIDER_READY"};function Oc(e,t=document.body){if(e.substr(0,1)==="<")return document.createElement(e.replace(/[</>]/g,""));const n=Rc(e,t);return n.length>=1?n[0]:null}function Rc(e,t=[document.body]){let n=[];return t=t&&t.constructor===Array?t:[t],t.forEach(function(r){n=n.concat([].slice.call((r||document).querySelectorAll(e)))}),n}function oo(e){let t=(e||"").split("-");return t=t.map(n=>n.substr(0,1).toUpperCase()+n.substr(1)),t.join("")}const Dc={name:"ElementHeader",props:["headline","settings"]},xc=window.Vue.toDisplayString,Ic=window.Vue.openBlock,Nc=window.Vue.createElementBlock,Pc={class:"headline element-header"};function Lc(e,t,n,r,i,o){return Ic(),Nc("h2",Pc,xc(n.headline),1)}const $c=O(Dc,[["render",Lc]]);class He{static isAvailable(){return typeof window<"u"&&!!window.UC_UI}static isInitialized(){return!this.isAvailable()||typeof window.UC_UI.isInitialized!="function"?!1:window.UC_UI.isInitialized()}static getServicesBaseInfo(){if(!this.isInitialized()||typeof window.UC_UI.getServicesBaseInfo!="function")return[];const t=window.UC_UI.getServicesBaseInfo();return Array.isArray(t)?t:[]}static hasConsent(t=[]){if(!Array.isArray(t)||t.length===0)return!0;const n=this.isAvailable(),r=this.isInitialized();if(!n||!r)return!1;const i=t.map(a=>
2String(a).trim().toLowerCase()).filter(Boolean);return i.length===0?!0:this.getServicesBaseInfo().some(a=>{const l=a==null?void 0:a.consent;if(!((l==null?void 0:l.status)===!0||l===!0))return!1;const u=[a==null?void 0:a.name,a==null?void 0:a.serviceName,a==null?void 0:a.dataProcessor,a==null?void 0:a.categoryName].map(c=>String(c!=null?c:"").trim().toLowerCase()).filter(Boolean);return i.some(c=>u.includes(c))})}static hasService(t=[]){if(!Array.isArray(t)||t.length===0)return!0;const n=this.isAvailable(),r=this.isInitialized();if(!n||!r)return null;const i=t.map(a=>String(a).trim().toLowerCase()).filter(Boolean);return i.length===0?!0:this.getServicesBaseInfo().some(a=>{const l=[a==null?void 0:a.name,a==null?void 0:a.serviceName,a==null?void 0:a.dataProcessor,a==null?void 0:a.categoryName].map(d=>String(d!=null?d:"").trim().toLowerCase()).filter(Boolean);return i.some(d=>l.includes(d))})}static getServiceState(t=[]){const n=this.hasService(t);return n===!0?"matched":n===!1?"missing":"unknown"}static onConsentChanged(t){typeof t=="function"&&(window.addEventListener("UC_UI_INITIALIZED",t),window.addEventListener("UC_UI_VIEW_CHANGED",t))}static offConsentChanged(t){typeof t=="function"&&(window.removeEventListener("UC_UI_INITIALIZED",t),window.removeEventListener("UC_UI_VIEW_CHANGED",t))}static openPrivacySettings(){return this.isAvailable()&&typeof window.UC_UI.showSecondLayer=="function"?(window.UC_UI.showSecondLayer(),!0):!1}static findServiceIds(t=[]){if(!Array.isArray(t)||t.length===0)return[];const n=t.map(i=>String(i).trim().toLowerCase()).filter(Boolean);return n.length===0?[]:this.getServicesBaseInfo().filter(i=>{const o=[i==null?void 0:i.name,i==null?void 0:i.serviceName,i==null?void 0:i.dataProcessor,i==null?void 0:i.categoryName].map(s=>String(s!=null?s:"").trim().toLowerCase()).filter(Boolean);return n.some(s=>o.includes(s))}).map(i=>i==null?void 0:i.id).filter(Boolean)}static acceptServices(t=[]){if(!this.isAvailable()||typeof window.UC_UI.acceptService!="function")return Promise.resolve(!1);const n=this.findServiceIds(t);return n.length===0?Promise.resolve(!1):Promise.all(n.map(r=>window.UC_UI.acceptService(r))).then(()=>(window.dispatchEvent(new CustomEvent("consent-changed",{detail:{source:"usercentrics",ids:n}})),!0)).catch(()=>!1)}}const ct="none",Dn="manual",kt="usercentrics",Bc="Content freischalten",Mc="Dieser Inhalt benötigt eine manuelle Freischaltung",Uc="Content freischalten",Fc="Dieser Inhalt benötigt eine manuelle Freischaltung";function Gc(e){return parseInt(e,10)===1}function so(e=[]){return Array.isArray(e)?e.map(t=>String(t).trim()).filter(Boolean):[]}function Hc({consentNeeded:e,usercentricsAvailable:t,usercentricsServices:n}){return Gc(e)?t&&so(n).length>0?kt:Dn:ct}function Pr(e){return e?window.localStorage.getItem(e)==="1":!1}function Lr(e){e&&(window.localStorage.setItem(e,"1"),window.dispatchEvent(new CustomEvent("consent-changed",{detail:{identifier:e}})))}function $r(e){return e===kt?{buttonLabel:Bc,text:Mc}:{buttonLabel:Uc,text:Fc}}const jc={name:"CustomHtmlBlock",props:["element"],data(){return{agreed:!1,forceManualFallback:!1}},computed:{usercentricsDps(){var e;return String((e=this.element.data.usercentrics_dps)!=null?e:"").trim()},usercentricsServices(){return so([this.usercentricsDps])},usercentricsAvailable(){var e,t;return(t=(e=this.element.data)==null?void 0:e.usercentrics_available)!=null?t:!1},consentKey(){return this.element.data.uid},configuredConsentMode(){return Hc({consentNeeded:this.element.data.consent_needed,usercentricsAvailable:this.usercentricsAvailable,usercentricsServices:this.usercentricsServices})},activeConsentMode(){return this.configuredConsentMode===ct?ct:this.forceManualFallback?Dn:this.configuredConsentMode},canLoad:function(){return this.activeConsentMode===ct||this.agreed},consentButtonLabel:function(){return this.element.data.blocker_button_label?this.element.data.blocker_button_label:$r(this.activeConsentMode).buttonLabel},consentText:function(){return this.element.data.blocker_text?this.element.data.blocker_text:$r(this.activeConsentMode).text},elementClasses:function(){return this.element.display_type&&this.element.display_subtype?[this.element.display_type,this.element.display_subtype]:[this.element.type,this.element.subtype]}},methods:{agree(){if(this.activeConsentMode===kt){const e=He.getServiceState(this.usercentricsServices);if(e==="missing")this.forceManualFallback=!0;else if(e==="matched"){He.acceptServices(this.usercentricsServices).then(t=>{if(t){this.refreshConsentState(),this.canLoad&&this.initScripts();return}this.forceManualFallback=!0,this.agreed=!0,Lr(this.consentKey),this.initScripts()});return}else return}this.agreed=!0,Lr(this.consentKey),this.initScripts()},onConsentChanged(e){var t;if(this.activeConsentMode!==kt){const n=(t=e==null?void 0:e.detail)==null?void 0:t.identifier;if(n&&n!==this.consentKey)return}this.refreshConsentState(),this.canLoad&&this.initScripts()},refreshConsentState(){if(this.activeConsentMode===ct){this.agreed=!0;return}if(this.activeConsentMode===Dn){this.agreed=Pr(this.consentKey);return}const e=He.getServiceState(this.usercentricsServices);if(e==="missing"){this.forceManualFallback=!0,this.agreed=Pr(this.consentKey);return}if(e==="unknown"){this.agreed=!1;return}this.agreed=He.hasConsent(this.usercentricsServices)}
2,loadScript(e,t=!0){if(t===!0&&this.$store.getters.isScriptLoaded(e.identifier))return;const n=document.createElement(e.type);if(e.attr)for(const r in e.attr)r==="innerText"?n[r]=e.attr[r]:n.setAttribute(r,e.attr[r]);t?(this.$store.dispatch("setScriptLoaded",e.identifier),document.body.appendChild(n)):this.$refs.html_data.appendChild(n)},initScripts(){this.element.data.scripts_always&&this.element.data.scripts_always.forEach(e=>{this.loadScript(e,!1)}),this.element.data.scripts_once&&this.element.data.scripts_once.forEach(e=>{this.loadScript(e,!0)})}},watch:{canLoad(e,t){e&&!t&&this.initScripts()}},mounted(){He.onConsentChanged(this.onConsentChanged),window.addEventListener("consent-changed",this.onConsentChanged),this.refreshConsentState(),this.canLoad&&this.initScripts()},beforeUnmount(){He.offConsentChanged(this.onConsentChanged),window.removeEventListener("consent-changed",this.onConsentChanged)}},tn=window.Vue.openBlock,nn=window.Vue.createElementBlock;window.Vue.createCommentVNode;const Br=window.Vue.toDisplayString,Mr=window.Vue.createElementVNode,zc=window.Vue.normalizeClass,Wc=["innerHTML"],qc={key:1,class:"consent-wrapper"},Kc={class:"consent-text"};function Yc(e,t,n,r,i,o){return tn(),nn("div",{class:zc(["element",o.elementClasses])},[o.canLoad?(tn(),nn("div",{key:0,innerHTML:n.element.data.html_data,ref:"html_data"},null,8,Wc)):(tn(),nn("div",qc,[Mr("p",Kc,Br(o.consentText),1),Mr("a",{class:"consent-button",onClick:t[0]||(t[0]=(...s)=>o.agree&&o.agree(...s))},Br(o.consentButtonLabel),1)]))],2)}const Qc=O(jc,[["render",Yc]]),Jc={name:"EditorElement",props:{element:{type:Object,default:function(){return{type:null,subtype:null,data:{}}}}}},Xc={name:"Placeholder",extends:Jc},Ur=window.Vue.toDisplayString,Zc=window.Vue.createElementVNode,eu=window.Vue.createTextVNode,tu=window.Vue.openBlock,nu=window.Vue.createElementBlock,ru=window.Vue.createCommentVNode,iu={key:0,class:"element default"};function ou(e,t,n,r,i,o){return this.$production_mode?ru("",!0):(tu(),nu("div",iu,[t[0]||(t[0]=eu(" I am a placeholder, you need to implement me: ",-1)),Zc("code",null,".element."+Ur(e.element.type||"")+"."+Ur(e.element.subtype||""),1)]))}const su=O(Xc,[["render",ou]]);function au(){return window.soylentEditorElementProvider||(window.soylentEditorElementProvider=new Yn,window.soylentEditorElementProvider.set({CustomHtmlBlock:Qc,Placeholder:su})),window.soylentEditorElementProvider}const rn=au(),lu=new Event(Tc.ELEMENT_PROVIDER_READY);window.dispatchEvent(lu);const cu={name:"IdvlEditorSlot",components:rn.get(),props:["element"],data(){return{defaultElement:"placeholder"}},computed:{elementComponent:function(){const e=this.getElementComponentName([this.element.type||"",this.element.subtype||""].join("-"));return this.hasElement(e)?e:this.hasElement(e+"Default")?e+"Default":(console.debug("%c[idvl-editor-slot] Element not found","color:white;background:darkred;",e,this.element,rn.get()),this.getElementComponentName(this.defaultElement))},elementKey:function(){return this.elementComponent==="SoylentPostShortcutListDefault"||this.elementComponent==="SoylentPostShortcutList"?this.element.data.archive_url:this.elementComponent==="SoylentOpenerMedia"?this.element.data.media_id:Date.now()+" _ "+Math.random()},slotHeadline:function(){return this.element.slot_settings.soylent_headline||""},elementHeader:function(){return Rt.getByName("elementHeader",$c)},slotClasses:function(){return this.element.slot_settings.css||""}},methods:{hasElement(e){return rn.has(e)},getElementComponentName(e){return oo(e||"")}}},Fr=window.Vue.resolveDynamicComponent,on=window.Vue.openBlock,Gr=window.Vue.createBlock,Hr=window.Vue.createCommentVNode,uu=window.Vue.normalizeClass,du=window.Vue.createElementBlock;function hu(e,t,n,r,i,o){return on(),du("div",{class:uu(["slot",o.slotClasses])},[o.slotHeadline?(on(),Gr(Fr(o.elementHeader),{key:0,headline:o.slotHeadline,settings:n.element.slot_settings},null,8,["headline","settings"])):Hr("",!0),n.element.type?(on(),Gr(Fr(o.elementComponent),{element:n.element,key:o.elementKey},null,8,["element"])):Hr("",!0)],2)}const mu=O(cu,[["render",hu]]),fu={name:"IdvlEditorBlock",components:{IdvlEditorSlot:mu},props:["block"],data:function(){return{uuid:ai()}},computed:{anchor:function(){let e=null;return this.block.settings&&this.block.settings.soylent_anchor&&this.block.settings.soylent_anchor.length&&(e=this.block.settings.soylent_anchor),e},padding:function(){let e="--padding_default";return this.block.settings&&this.block.settings.soylent_padding&&(e="".concat(this.block.settings.soylent_padding)),e},blockWrapperClass:function(){let e="";return this.block.settings&&this.block.settings.soylent_class&&(e=this.block.settings.soylent_class),e},showBlock(){return this.block.settings&&this.block.settings.soylent_access_restriction?this.block.settings.soylent_access_restriction===""?!0:qn.filter(Zi.SHOW_RESTRICTED,this.block.settings.soylent_access_restriction==="no_auth",{},this.block.settings.soylent_access_restriction,this.block):!0}}
2,methods:{elementKey:function(e){return"el-".concat(this.uuid,"-").concat(e)},retrieveElements:function(){this.block.retrieve_restricted_url&&j.get(this.block.retrieve_restricted_url).then(e=>{this.block.elements=e})}},mounted(){this.showBlock&&this.retrieveElements()},watch:{showBlock:function(e){e===!0&&this.retrieveElements()}}},vt=window.Vue.openBlock,sn=window.Vue.createElementBlock,jr=window.Vue.createCommentVNode,_u=window.Vue.renderList,pu=window.Vue.Fragment,gu=window.Vue.resolveComponent,vu=window.Vue.createBlock,zr=window.Vue.normalizeClass,wu=window.Vue.createElementVNode,yu=["id"];function Eu(e,t,n,r,i,o){const s=gu("idvl-editor-slot");return o.showBlock?(vt(),sn("div",{key:0,class:zr(["block-wrapper",o.padding,o.blockWrapperClass])},[o.anchor?(vt(),sn("div",{key:0,class:"block-anchor",id:o.anchor},null,8,yu)):jr("",!0),wu("div",{class:zr(["block",n.block.block_type])},[(vt(!0),sn(pu,null,_u(n.block.elements,(a,l)=>(vt(),vu(s,{key:o.elementKey(l),element:a},null,8,["element"]))),128))],2)],2)):jr("",!0)}const Wr=O(fu,[["render",Eu]]),bu={name:"IdvlEditor",components:{IdvlEditorBlock:Wr},props:["blocks"],data:function(){return{editorDataVersion:"",maxItems:0}},computed:{elementIdvlEditorBlock:function(){return Rt.getByName("idvlEditorBlock",Wr)},getBlocks(){let e=this.$store.getters.renderedFullPage?this.blocks.length:20,t=this.blocks.filter(n=>n!==null);return t=t.slice(0,e),t}},watch:{blocks(){this.bumpEditorDataVersion()}},methods:{blockKey(e,t){return e!==null?"block_id_"+e.id:"block_index"+t},bumpEditorDataVersion:function(){this.editorDataVersion="".concat(Date.now(),"_").concat(Math.random())}},updated(){this.$nextTick(function(){window.dispatchEvent(new Event("repainted"))})}},Su=window.Vue.renderList,Cu=window.Vue.Fragment,an=window.Vue.openBlock,qr=window.Vue.createElementBlock,ku=window.Vue.resolveDynamicComponent,Au=window.Vue.createBlock;function Vu(e,t,n,r,i,o){return an(),qr("div",{class:"idvl-editor",key:e.editorDataVersion},[(an(!0),qr(Cu,null,Su(o.getBlocks,(s,a)=>(an(),Au(ku(o.elementIdvlEditorBlock),{key:o.blockKey(s,a),block:s},null,8,["block"]))),128))])}const Tu=O(bu,[["render",Vu]]),Ou={name:"IdvlEditorTemplate",components:{IdvlEditor:Tu},props:["data"]},Ru=window.Vue.resolveComponent,Du=window.Vue.openBlock,xu=window.Vue.createBlock;function Iu(e,t,n,r,i,o){const s=Ru("idvl-editor");return Du(),xu(s,{blocks:n.data.blocks},null,8,["blocks"])}const Nu=O(Ou,[["render",Iu]]),xn=new Yn;xn.set({IdvlEditorTemplateDefault:Nu});function ao(e,t=500){e&&setTimeout(()=>{let n=document.querySelector(e);n&&n.scrollIntoView({behavior:"instant",block:"start",inline:"nearest"})},t)}const Pu="soylent_settings"in window&&window.soylent_settings.app_mode||!1;class Lu{static track(t){if("IOMm"in window&&t.ivw)try{IOMm("pageview",{cp:t.ivw})}catch(n){console.debug("[InfOnline] pv exception:",n.getMessage())}else t.ivw&&console.debug("[InfOnline] not loaded")}}var K,qe,Ae,lo,co,uo;class $u{constructor(){J(this,Ae);J(this,K);J(this,qe)}updateMarkup(t){rt(this,K,t),it(this,Ae,lo).call(this),it(this,Ae,co).call(this),it(this,Ae,uo).call(this)}}K=new WeakMap,qe=new WeakMap,Ae=new WeakSet,lo=function(){const t=document.querySelector('link[rel="canonical"]');if(p(this,K).canonical)if(t)t.setAttribute("href",p(this,K).canonical);else{const n=document.createElement("link");n.rel="canonical",n.href=p(this,K).canonical,document.getElementsByTagName("head")[0].appendChild(n)}else t&&t.remove()},co=function(){if(!("meta"in p(this,K)))return;const t=Object.keys(p(this,K).meta);t.forEach(n=>{const r=n.indexOf(":")===-1?"name":"property",i=document.querySelectorAll("meta["+r+'="'+n+'"]')[0],o=p(this,K).meta[n];if(i)o&&o!=="false"?i.setAttribute("content",o):i.remove();else{const s=document.createElement("meta");s.setAttribute(r,n),s.content=p(this,K).meta[n],document.getElementsByTagName("head")[0].appendChild(s)}}),document.querySelectorAll('meta[property^="og:"]').forEach(n=>{t.includes(n.getAttribute("property"))||n.remove()})},uo=function(){if("json_ld"in p(this,K)){if(!p(this,qe)){let t=document.querySelector('script[type="application/ld+json"]');t||(t=document.createElement("script"),t.type="application/ld+json",document.getElementsByTagName("head")[0].appendChild(t)),rt(this,qe,t)}p(this,qe).innerHTML=JSON.stringify(p(this,K).json_ld)}};const Bu=new $u;class Mu{constructor(){this.instance=("0000"+Math.round(Math.random()*1e3)).substring(-4),this.enabled=!1,this.payloadQueue=[],this.callbacks=[],window.ReactNativeWebView&&(window.wlBasePassPayload=this.dispatchPayload.bind(this),this.enabled=!0)}init(){this.sendPayload("launch")}sendPayload(t,n=!1){if(!this.enabled){this.payloadQueue.push(t),console.debug("[bridge] Queued payload",t);return}if(this.payloadQueue.length&&!n&&(this.payloadQueue.forEach(r=>this.sendPayload(r,!0)),this.payloadQueue=[]),t!==null){console.debug("[bridge] Send payload",t);try{t=JSON.stringify(t),window.ReactNativeWebView.postMessage(t)}catch(r){console.debug("[bridge] Could not send payload",r,t)}}}dispatchPayload(t){return console.debug("[bridge] Got payload",t),this.callbacks.forEach(n=>{const{cb:r,type:i}=n;if(!i.length||i===String(t.type))try{r(Object.assign({instance:this.instance},t))}
2catch(o){console.debug("[bridge] Could not fire callback",r,this.callbacks)}}),!0}onPayload(t,n=""){typeof t=="function"&&this.callbacks.push({cb:t,type:String(n)})}}const Uu=new Mu,Fu={name:"BaseView",components:xn.get(),data(){var e;return{lastUri:null,uri:(e=document.location.pathname)!=null?e:null,hash:null,base:document.body.dataset.base,classes:[],title:"",template:null,data:null,debug:null,defaultTemplate:"idvl-editor",firstCall:!0}},computed:{templateComponent:function(){this.template="idvl-editor";let e=this.getTemplateComponentName(this.template);return this.hasTemplate(e)?(this.$store.dispatch("setPageTemplate",e),e):this.hasTemplate(e+"Default")?(this.$store.dispatch("setPageTemplate",e+"Default"),e+"Default"):(this.$store.dispatch("setPageTemplate",null),console.debug("%c[base-view] Template not found","color:white;background:darkred;",e,this.template),this.getTemplateComponentName(this.defaultTemplate,"default"))}},beforeRouteUpdate(e,t,n){n(),this.nav(e.path,e.hash)},beforeUpdate(){this.classes.length>0&&(document.body.className=this.classes.join(" ")),this.maybeAddAppNativeClass()},updated(){this.handleScripts(),this.scrollToAnchor()},methods:{...Mn(["resetRenderedImages"]),nav(e,t="",n=!1){if(this.resetRenderedImages(),this.hash=t,!n&&e===this.uri){this.scrollToAnchor();return}n||(this.lastUri=this.uri,this.uri=e);let r="/headless"+e;"pll_headless_language"in window&&(r="/"+window.pll_headless_language+r.replace(window.pll_headless_language+"/","")),this.$store.dispatch("setLoading",!0),Ir.dispatch(Nr.NAV),eo.get(r).then(i=>this.handleResponse(i)).catch(i=>{if(!i.response){console.debug(i);return}this.handleResponse(i.response)}).finally(()=>{this.$store.dispatch("setLoading",!1),document.title=this.title,this.$nextTick(()=>{if(this.dispatchPageLoadEvent(e,this.title,this.lastUri),window._paq)try{this.lastUri!==null&&window._paq.push(["setReferrerUrl",this.lastUri]),window._paq.push(["setCustomUrl",e]),window._paq.push(["setDocumentTitle",this.title]),window._paq.push(["trackPageView"])}catch(i){}if(window.qy)try{window.qy.tracking.track("fix:view",{identifier:e,type:"web",occurredon:new Date().toISOString()})}catch(i){}})})},reload(){this.nav(this.uri,this.hash,!0)},handleResponse(e){if(!e.data){console.error("[base-view] data node missing in response");return}const t=qn.filter(oc.RESPONSE_DATA,e.data);if(t.redirect&&t.redirect!==this.uri&&this.$router.replace(t.redirect),this.classes=t.classes||[],this.title=t.title||"",this.template=t.template||null,this.data=t.data||null,this.debug=t.debug||null,this.executeTracking(t.data.tracking),t.data.seo&&Bu.updateMarkup(t.data.seo),!this.classes.includes("suppress-cmp"))try{window.cmmsCmpSpawnIfNecessary()}catch(n){}this.template!==null&&this.classes.push(this.template),this.$store.dispatch("setPageData",this.data),this.$store.dispatch("setPageDebugData",this.debug),Ir.dispatch(Nr.HANDLE_RESPONSE)},handleScripts(){},hasTemplate(e){return xn.has(e)},getTemplateComponentName(e,t=""){return oo((e||"")+"-template"+t)},scrollToAnchor(){this.hash&&this.hash.length&&Oc(this.hash)&&ao(this.hash,300)},executeTracking(e){Lu.track(e)},maybeAddAppNativeClass(){Pu&&this.$nextTick(()=>{document.body.classList.add("app-native")})},dispatchPageLoadEvent(e,t,n=null){document.dispatchEvent(new CustomEvent("Page:Load",{cancelable:!0,bubbles:!0,detail:{uri:e,title:t,referer:n}}))}},created(){this.maybeAddAppNativeClass(),this.template=null,this.data=window.soylent_page_data,this.$store.dispatch("setPageData",this.data),this.dispatchPageLoadEvent(this.uri,document.title),Uu.onPayload(e=>{const{eventType:t}=e;t==="reload"&&this.reload()},"event")}},Gu=window.Vue.resolveDynamicComponent,Kr=window.Vue.openBlock,Hu=window.Vue.createBlock,ju=window.Vue.createElementBlock,zu={class:"content"};function Wu(e,t,n,r,i,o){return Kr(),ju("main",zu,[(Kr(),Hu(Gu(o.templateComponent),{data:i.data},null,8,["data"]))])}const qu=O(Fu,[["render",Wu]]),Pe=tc({history:Il(),linkExactActiveClass:"-active --active",linkActiveClass:"-active --active",routes:[{path:"/:pathMatch(.*)*",component:qu}],scrollBehavior:function(e,t,n){try{clearTimeout(Pe.timeout)}catch(i){}n?Je.dispatch("setScrollOffset",n):Je.dispatch("setScrollOffset",{x:0,y:0});let r=300;return e.hash?(t.href||(In=e.hash),!1):e.href===t.href?!1:new Promise((i,o)=>{Pe.timeout=setTimeout(()=>{i({left:0,top:n?n.top:0})},r)})}});Pe.beforeEach((e,t,n)=>{e.hash!==""&&Je.dispatch("setRenderedFullPage",!0),n()});Pe.afterEach(e=>{e.hash!==""&&document.getElementById(e.hash.slice(1)).focus()});Pe.timeout=null;let In=null;window.onload=function(){In!==null&&ao(In)};const Ku={name:"Login",data(){return{iframeSrc:null}},computed:{...Bn("sso",["auth","loginUrl","registerUrl","logoutUrl","redirectPath","userName","userMail","userNameReadable"])},methods:{...Mn("sso",["setRedirectPath"]),setIframe(e){this.iframeSrc=e,this.$refs.loginFrame.onload=()=>{let t=window.location.toString();const n=window.location.origin+"/",r=this.$refs.loginFrame.contentWindow.location.toString();if([t,n].includes(r)&&(On().getAuthData(),this.iframeSrc=null,console.log("[
2SSO] Return to "+this.redirectPath),this.redirectPath)){const i=this.redirectPath;this.setRedirectPath(null),Pe.push(i)}}},getLoginUrl(){return On().getLoginUrl(this.loginUrl)}},mounted(){this.loginUrl&&this.setIframe(this.getLoginUrl())},watch:{loginUrl:{handler(e){e&&this.setIframe(this.getLoginUrl())},immediate:!0}}},Yu=window.Vue.openBlock,Qu=window.Vue.createElementBlock,Ju=["src"];function Xu(e,t,n,r,i,o){return Yu(),Qu("iframe",{ref:"loginFrame",width:"100%",height:"750px",src:i.iframeSrc,style:{display:"block",border:"0",outline:"0"}},null,8,Ju)}const Nn=O(Ku,[["render",Xu]]),Zu={name:"VoucherHistory",components:{VoucherProfile:Kn,Login:Nn,SoylentLink:ft},data(){return{loading:!0,orders:[]}},computed:{...Li("sso",["auth","loginUrl","userNameReadable"]),loginComponent(){return Rt.getByName("profileLogin",Nn)},emptyMessage(){return this.loading?"Inhalte werden geladen":this.orders.length===0?"Sie haben noch keine Bestellungen abgeschlossen.":"Inhalte konnten nicht abgerufen werden"}},mounted(){j.get("/cmms-api/v3/cmms-voucher/order-history").then(e=>{this.orders=e.orders}).catch(e=>{}).finally(()=>{this.loading=!1})}},Yr=window.Vue.resolveComponent,Qr=window.Vue.createVNode,x=window.Vue.createElementVNode,ed=window.Vue.renderList,td=window.Vue.Fragment,lt=window.Vue.openBlock,wt=window.Vue.createElementBlock,Oe=window.Vue.toDisplayString,nd=window.Vue.createTextVNode,rd=window.Vue.withCtx,id=window.Vue.createCommentVNode,od=window.Vue.resolveDynamicComponent,sd=window.Vue.createBlock,ad={key:0,class:"element voucher-history"},ld={class:"voucher-table"},cd={class:"__align-right"},ud={class:"__align-right"},dd={class:"__align-right"},hd={class:"__align-right"},md={class:"__align-right"},fd={key:0},_d=["innerHTML"];function pd(e,t,n,r,i,o){const s=Yr("VoucherProfile"),a=Yr("SoylentLink");return e.auth?(lt(),wt("div",ad,[Qr(s),t[1]||(t[1]=x("div",{class:"headline"},[x("div",{class:"headline__text"},[x("h1",{class:"headline__title"},"Bestellübersicht")])],-1)),x("table",ld,[t[0]||(t[0]=x("thead",null,[x("tr",null,[x("th",null,"Bestellnummer"),x("th",null,"Gutschein"),x("th",{class:"__align-right"},"Bestelldatum"),x("th",{class:"__align-right"},"Wert"),x("th",{class:"__align-right"},"Anzahl"),x("th",{class:"__align-right"},"Preis"),x("th",{class:"__align-right"},"Summe")])],-1)),x("tbody",null,[(lt(!0),wt(td,null,ed(i.orders,l=>(lt(),wt("tr",{key:l.order_number},[x("td",null,Oe(l.order_number),1),x("td",null,[Qr(a,{url:l.items.url},{default:rd(()=>[nd(Oe(l.items.title),1)]),_:2},1032,["url"])]),x("td",cd,Oe(l.date_formatted)+" Uhr",1),x("td",ud,Oe(l.items.price_srp_formatted)+" €",1),x("td",dd,Oe(l.items.quantity),1),x("td",hd,Oe(l.items.price_formatted)+" €",1),x("td",md,Oe(l.total_formatted)+" €",1)]))),128)),i.orders.length===0||i.loading?(lt(),wt("tr",fd,[x("td",{colspan:"5",innerHTML:o.emptyMessage},null,8,_d)])):id("",!0)])])])):(lt(),sd(od(o.loginComponent),{key:1}))}const gd=O(Zu,[["render",pd]]),vd={name:"VoucherMeta",components:{CmmsResponsiveImage:Un,VoucherProfile:Kn,SoylentLink:ft},props:["element"],data:function(){return{amountRemaining:null}},computed:{imageData(){var e,t,n;return(n=(t=(e=this.element)==null?void 0:e.data)==null?void 0:t.model)!=null&&n.image?this.element.data.model.image:null},voucherStatus(){var e,t,n,r;if(this.amountRemaining<=0){const i=document.getElementsByClassName("block-wrapper voucher-sale-btn")[0];return i&&(i.style.display="none"),"sold-out"}return(r=(n=(t=(e=this.element)==null?void 0:e.data)==null?void 0:t.model)==null?void 0:n.status)!=null?r:""}},mounted(){j.get("/data/cmms-voucher/remaining/".concat(this.element.data.model.post_id)).then(e=>{this.amountRemaining=e})}},Jr=window.Vue.resolveComponent,ne=window.Vue.openBlock,Xr=window.Vue.createBlock,ue=window.Vue.createCommentVNode,T=window.Vue.createElementVNode,de=window.Vue.toDisplayString,ge=window.Vue.createElementBlock,wd=window.Vue.withCtx,yd=window.Vue.normalizeClass,Ed={class:"voucher-meta__overlay"},bd={class:"voucher-meta__item-list"},Sd={key:0,class:"voucher-meta__item"},Cd={class:"voucher-meta__item__value"},kd={key:1,class:"voucher-meta__item"},Ad={class:"voucher-meta__item__value"},Vd={key:2,class:"voucher-meta__item"},Td={class:"voucher-meta__item__value"}
2,Od={key:3,class:"voucher-meta__item"},Rd={class:"voucher-meta__item__value"},Dd={key:4,class:"voucher-meta__item"},xd={class:"voucher-meta__item__value"},Id={key:5,class:"voucher-meta__item"},Nd={class:"voucher-meta__item__value"},Pd={key:6,class:"voucher-meta__item"},Ld={class:"voucher-meta__item__value"},$d={key:7,class:"voucher-meta__item"},Bd={class:"voucher-meta__item__value"},Md={class:"voucher-meta__item"},Ud={class:"voucher-meta__item__value"},Fd={class:"voucher-meta__item"},Gd={class:"voucher-meta__item__value"};function Hd(e,t,n,r,i,o){const s=Jr("CmmsResponsiveImage"),a=Jr("SoylentLink");return ne(),ge("div",{class:yd(["element","voucher-meta",o.voucherStatus?"--"+o.voucherStatus:""])},[o.imageData?(ne(),Xr(s,{key:0,class:"voucher-meta__img",image:o.imageData},null,8,["image"])):ue("",!0),T("div",Ed,[T("div",bd,[n.element.data.model.price_text?(ne(),ge("div",Sd,[t[0]||(t[0]=T("span",{class:"voucher-meta__item__label"},"Preis:",-1)),T("span",Cd,de(n.element.data.model.price_text),1)])):ue("",!0),n.element.data.model.price_srp_text?(ne(),ge("div",kd,[t[1]||(t[1]=T("span",{class:"voucher-meta__item__label"},"Wert:",-1)),T("span",Ad,de(n.element.data.model.price_srp_text),1)])):ue("",!0),n.element.data.model.discount?(ne(),ge("div",Vd,[t[2]||(t[2]=T("span",{class:"voucher-meta__item__label"},"Rabatt:",-1)),T("span",Td,de(n.element.data.model.discount),1)])):ue("",!0),n.element.data.model.shipping_costs_text?(ne(),ge("div",Od,[t[3]||(t[3]=T("span",{class:"voucher-meta__item__label"},"Versandkosten:",-1)),T("span",Rd,de(n.element.data.model.shipping_costs_text),1)])):ue("",!0),n.element.data.model.sale_start_date?(ne(),ge("div",Dd,[t[4]||(t[4]=T("span",{class:"voucher-meta__item__label"},"Bestellbar ab:",-1)),T("span",xd,de(n.element.data.model.sale_start_date.date_txt),1)])):ue("",!0),n.element.data.model.sale_end_date?(ne(),ge("div",Id,[t[5]||(t[5]=T("span",{class:"voucher-meta__item__label"},"Bestellbar bis:",-1)),T("span",Nd,de(n.element.data.model.sale_end_date.date_txt),1)])):ue("",!0),n.element.data.model.issuer?(ne(),ge("div",Pd,[t[6]||(t[6]=T("span",{class:"voucher-meta__item__label"},"Aussteller:",-1)),T("span",Ld,de(n.element.data.model.issuer),1)])):ue("",!0),n.element.data.model.freetext?(ne(),ge("div",$d,[t[7]||(t[7]=T("span",{class:"voucher-meta__item__label"},"Angebot:",-1)),T("span",Bd,de(n.element.data.model.freetext),1)])):ue("",!0),T("div",Md,[t[8]||(t[8]=T("span",{class:"voucher-meta__item__label"},"Max. Bestellmenge:",-1)),T("span",Ud,de(n.element.data.model.maximum_order_quantity),1)]),T("div",Fd,[t[9]||(t[9]=T("span",{class:"voucher-meta__item__label"},"Verfügbar:",-1)),T("span",Gd,de(e.amountRemaining),1)])]),n.element.data.model.available&&e.amountRemaining>0?(ne(),Xr(a,{key:0,class:"button",url:n.element.data.order_url},{default:wd(()=>[...t[10]||(t[10]=[T("div",{class:"button__label"},[T("span",{class:"button__icon iconSet"},"shopping_cart"),T("span",{class:"button__text"},"Jetzt bestellen")],-1)])]),_:1},8,["url"])):ue("",!0)])],2)}const jd=O(vd,[["render",Hd]]),zd={name:"VoucherConfirmation",props:{boxHeadline:{Type:String},items:{Type:Object}}},ln=window.Vue.toDisplayString,yt=window.Vue.createElementVNode,Wd=window.Vue.renderList,Zr=window.Vue.Fragment,cn=window.Vue.openBlock,un=window.Vue.createElementBlock,qd={class:"voucher-table"};function Kd(e,t,n,r,i,o){return cn(),un(Zr,null,[yt("h3",null,ln(n.boxHeadline),1),yt("table",qd,[(cn(!0),un(Zr,null,Wd(n.items,s=>(cn(),un("tr",{key:s.label},[yt("td",null,ln(s.label),1),yt("td",null,ln(s.value),1)]))),128))])],64)}const Yd=O(zd,[["render",Kd]]),Qd={name:"VoucherBreadcrumb",props:{step:{Type:Number,Default:1}},data(){return{steps:["Login","Warenkorb","Rechnungsadresse","Lieferadresse","Zahlungsart","Übersicht","Bestätigung"]}}},Jd=window.Vue.renderList,Xd=window.Vue.Fragment,dn=window.Vue.openBlock,hn=window.Vue.createElementBlock,Zd=window.Vue.toDisplayString,eh=window.Vue.normalizeClass,th={class:"element voucher-breadcrumb"};function nh(e,t,n,r,i,o){return dn(),hn("ul",th,[(dn(!0),hn(Xd,null,Jd(i.steps,(s,a)=>(dn(),hn("li",{class:eh(["voucher-breadcrumb__item",{"--active":a+1===n.step}]),key:a},Zd(s),3))),128))])}const rh=O(Qd,[["render",nh]]),ih={name:"VoucherCart",components:{CmmsResponsiveImage:Un,SoylentLink:ft,CroppedText:si},data(){return{selectedAmount:1,maxAmount:null}},props:{model:{type:Object},editable:{type:Boolean,default:!0},quantity:{type:Number},totalSum:{type:Number}},computed:{sum(){return this.selectedAmount*this.model.price},netSumText(){if(this.model.tax){const e=this.sum-this.sum/100*this.model.tax;return new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(e)}return this.sumText},sumText(){return new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(this.sum)},totalSumText(){let e;return this.totalSum?e=this.totalSum:e=this.sum+this.model.shipping_costs,new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(e)}},methods:{retrieveMaximumOrderAmount:function(){j.get("/cmms-api/v3/cmms-voucher/maximum-order-quantity/".concat(this.model.post_id,"/")).then(e=>{this.maxAmount=e.maximum_amount,this.selectedAmount=e.selected_amount}).catch(e=>{})},submitCart:function(){this.$emit("set-cart-quantity",this.selectedAmount)}},mounted(){this.quantity?this.selectedAmount=this.quantity:this.retrieveMaximumOrderAmount()}}
2,A=window.Vue.createElementVNode,oh=window.Vue.resolveComponent,q=window.Vue.openBlock,sh=window.Vue.createBlock,je=window.Vue.createCommentVNode,ve=window.Vue.toDisplayString,ah=window.Vue.renderList,mn=window.Vue.Fragment,X=window.Vue.createElementBlock,lh=window.Vue.vModelSelect,ch=window.Vue.withDirectives,uh={class:"voucher-table"},dh={"data-label":"Beschreibung"},hh={key:0,"data-label":"Anzahl",class:"__align-right"},mh={key:1},fh={key:1,"data-label":"Anzahl",class:"__align-right"},_h={"data-label":"Preis",class:"__align-right"},ph={"data-label":"Summe",class:"__align-right"},gh={class:"__align-right"},vh={key:0},wh={class:"__align-right"},yh={key:1},Eh={class:"__align-right"},bh={class:"__bold"},Sh={class:"__align-right"},Ch={key:0},kh={key:1,class:"button-container"};function Ah(e,t,n,r,i,o){const s=oh("CmmsResponsiveImage");return q(),X(mn,null,[A("table",uh,[t[6]||(t[6]=A("thead",null,[A("tr",null,[A("th",{class:"__colwidth-30"}),A("th",null,"Beschreibung"),A("th",{class:"__align-right"},"Anzahl"),A("th",{class:"__align-right"},"Preis"),A("th",{class:"__align-right"},"Summe")])],-1)),A("tbody",null,[A("tr",null,[A("td",null,[n.model.image?(q(),sh(s,{key:0,image:n.model.image},null,8,["image"])):je("",!0)]),A("td",dh,ve(n.model.title),1),n.editable?(q(),X("td",hh,[i.maxAmount?ch((q(),X("select",{key:0,"onUpdate:modelValue":t[0]||(t[0]=a=>i.selectedAmount=a)},[(q(!0),X(mn,null,ah(i.maxAmount,a=>(q(),X("option",null,ve(a),1))),256))],512)),[[lh,i.selectedAmount]]):i.maxAmount===0?(q(),X("span",mh,"–")):je("",!0)])):(q(),X("td",fh,ve(i.selectedAmount),1)),A("td",_h,ve(n.model.price_text),1),A("td",ph,ve(o.sumText),1)])]),A("tfoot",null,[i.maxAmount||i.selectedAmount?(q(),X(mn,{key:0},[A("tr",null,[t[2]||(t[2]=A("td",{colspan:"4",class:"__align-right"},"Nettobetrag",-1)),A("td",gh,ve(o.netSumText),1)]),n.model.tax?(q(),X("tr",vh,[t[3]||(t[3]=A("td",{colspan:"4",class:"__align-right"},"Umsatzsteuer",-1)),A("td",wh,ve(n.model.tax)+" %",1)])):je("",!0),n.model.shipping_costs_text?(q(),X("tr",yh,[t[4]||(t[4]=A("td",{colspan:"4",class:"__align-right"},"Versandkosten",-1)),A("td",Eh,ve(n.model.shipping_costs_text),1)])):je("",!0),A("tr",bh,[t[5]||(t[5]=A("td",{colspan:"4",class:"__align-right"},"Gesamtsumme",-1)),A("td",Sh,ve(o.totalSumText),1)])],64)):je("",!0)])]),i.maxAmount===0?(q(),X("div",Ch," Die maximale Bestellmenge für diesen Artikel ist leider überschritten. ")):n.editable?(q(),X("div",kh,[A("div",{class:"button",onClick:t[1]||(t[1]=(...a)=>o.submitCart&&o.submitCart(...a))},[...t[7]||(t[7]=[A("div",{class:"button__label"},[A("span",{class:"button__text"},"Weiter")],-1)])])])):je("",!0)],64)}const Vh=O(ih,[["render",Ah]]),Th=Object.freeze({action:"",elements:[],identifier:"",method:""}),Oh=Object.freeze({attributes:{},id:"",callback:()=>{},label:"",options:[],placeholder:"",required:!1,type:"",value:""}),Rh="button",ho="checkbox",Dh="custom",xh="date",Ih="email",Nh="file",Ph="hidden",Lh="number",$h="password",Bh="radio",Mh="select",Uh="submit",Fh="text",Gh="textarea",Hh="time",fn="idle",_n="preparing",pn="uploading",ht="sent",Et="error",U=window.Vue.defineAsyncComponent,jh={[Rh]:U(()=>M(()=>import("./Button.js"),__vite__mapDeps([0,1]))),[ho]:U(()=>M(()=>import("./Checkbox.js"),__vite__mapDeps([2,1]))),[Dh]:U(()=>M(()=>import("./Custom.js"),__vite__mapDeps([3,1]))),[xh]:U(()=>M(()=>import("./Date.js"),__vite__mapDeps([4,1]))),[Ih]:U(()=>M(()=>import("./Email.js"),__vite__mapDeps([5,1]))),[Nh]:U(()=>M(()=>import("./File.js"),__vite__mapDeps([6,1]))),[Ph]:U(()=>M(()=>import("./Hidden.js"),__vite__mapDeps([7,1]))),[Lh]:U(()=>M(()=>import("./Number.js"),__vite__mapDeps([8,1]))),[$h]:U(()=>M(()=>import("./Password.js"),__vite__mapDeps([9,1]))),[Bh]:U(()=>M(()=>import("./Radio.js"),__vite__mapDeps([10,1]))),[Mh]:U(()=>M(()=>import("./Select.js"),__vite__mapDeps([11,1]))),[Uh]:U(()=>M(()=>import("./Submit.js"),__vite__mapDeps([12,1]))),[Fh]:U(()=>M(()=>import("./Text.js"),__vite__mapDeps([13,1]))),[Gh]:U(()=>M(()=>import("./Textarea.js"),__vite__mapDeps([14,1]))),[Hh]:U(()=>M(()=>import("./Time.js"),__vite__mapDeps([15,1])))},zh={name:"CmmsForm",props:{form:{type:Object,required:!0,default:Th},targetUrl:{type:String,default:null}},data(){return{abortController:new AbortController,errorFields:[],formData:{},nonce:null,status:fn,uploadProgress:0,submitSuccessMessage:null,submitErrorMessage:null,skipElementWatch:!0}},computed:{elements(){const e=[];return this.form.elements.constructor!==Array||(this.skipElementWatch=!0,this.form.elements.forEac
2h(t=>{var r,i,o;let n=!1;(i=(r=t.conditions)==null?void 0:r.show)!=null&&i.length&&t.conditions.show.forEach(s=>{s.equals&&this.formData[s.id]!==s.equals&&(n=!0)}),(o=t.conditions)!=null&&o.required&&!t.required&&t.conditions.required.forEach(s=>{s.equals&&this.formData[s.id]===s.equals&&(t.required=!0)}),n||e.push(Object.assign({},Oh,t))}),this.$nextTick(()=>{this.skipElementWatch=!1})),e},isDone(){return this.status===ht},isErrored(){return this.status===Et},isSending(){return this.status===_n||this.status===pn},isUploading(){return this.status===pn},errorMessage(){return this.submitErrorMessage?this.submitErrorMessage:"Ein Fehler ist aufgetreten, bitte versuchen Sie es noch einmal und prüfen Sie Ihre Eingaben."},successMessage(){return this.submitSuccessMessage?this.submitSuccessMessage:"Ihre Daten wurden erfolgreich übermittelt"}},watch:{elements:{deep:!0,handler(){this.skipElementWatch||this.updateFormDataBase()}}},methods:{abort(){this.abortController.abort(),this.status=fn},elementComponent(e){return jh[e.type]||!1},elementHasError(e){return this.errorFields[e]},getNonce(){j.post("/cmms-api/v3/contact_form/get_nonce/",{form_id:this.form.identifier}).then(({nonce:e})=>{e&&(this.nonce=e)}).catch(()=>{console.error("[CmmsForm] Could not retrieve nonce"),this.status=Et})},retry(){this.status=fn,this.getNonce()},submit(){this.uploadProgress=0,this.status=_n,this.submitSuccessMessage=this.submitErrorMessage=null;const e=new FormData;for(const t in this.formData)this.formData[t]!==null&&e.append(t,this.formData[t]);e.append("nonce","".concat(this.form.identifier,".").concat(this.nonce)),j.request({data:e,method:this.form.method,onUploadStart:()=>{this.status=pn},onUploadProgress:(t,n)=>{const r=t/n;r>=1?(this.status=_n,this.uploadProgress=0):this.uploadProgress=r},signal:this.abortController.signal,url:this.form.action}).then(({success:t,successMessage:n,errors:r,errorMessage:i})=>{t?(this.targetUrl&&Pe.push(this.targetUrl),this.status=ht,n&&(this.submitSuccessMessage=n)):(this.status=Et,this.errorFields=r||[],this.submitErrorMessage=i)}).catch(t=>{console.error("[CmmsForm] Could not submit data",t),this.status=Et}).finally(()=>{this.$emit("form-sent",this.status,this.formData)}),this.nonce=null},updateFormDataBase(){const e=[];this.elements.forEach(t=>{var n,r;t.id&&(e.push(t.id),t.type===ho?this.formData[t.id]=(n=t.checked)!=null?n:!1:this.formData[t.id]=(r=t.value)!=null?r:null)}),Object.keys(this.formData).forEach(t=>{e.includes(t)||delete this.formData[t]})}},beforeMount(){this.updateFormDataBase()},mounted(){this.getNonce()}},Z=window.Vue.createElementVNode,Wh=window.Vue.normalizeStyle,ei=window.Vue.normalizeClass,gn=window.Vue.withModifiers,Se=window.Vue.openBlock,Re=window.Vue.createElementBlock;window.Vue.createCommentVNode;const qh=window.Vue.toDisplayString,Kh=window.Vue.renderList,Yh=window.Vue.Fragment,Qh=window.Vue.resolveDynamicComponent,Jh=window.Vue.createBlock,Xh={key:0,class:"cmms_form --sending"},Zh={key:1,class:"cmms_form --error"},em=["innerHTML"],tm={key:2,class:"cmms_form --success"},nm={key:0},rm=["innerHTML"];function im(e,t,n,r,i,o){return o.isSending?(Se(),Re("div",Xh,[t[4]||(t[4]=Z("p",null,"Bitte warten, Ihre Daten werden übermittelt",-1)),Z("div",{class:ei(["cmms_form__sending__progress",o.isUploading?"--uploading":""])},[Z("div",{class:"cmms_form__sending__progress__bar",style:Wh({width:"".concat(i.uploadProgress*100,"%")})},null,4)],2),Z("p",null,[Z("span",{class:"button",onClick:t[0]||(t[0]=gn((...s)=>o.abort&&o.abort(...s),["stop"]))},[...t[3]||(t[3]=[Z("span",{class:"button__label"},[Z("span",{class:"button__text"},"Abbrechen")],-1)])])])])):o.isErrored?(Se(),Re("div",Zh,[Z("p",{innerHTML:o.errorMessage},null,8,em),Z("p",null,[Z("span",{class:"button",onClick:t[1]||(t[1]=gn((...s)=>o.retry&&o.retry(...s),["stop"]))},[...t[5]||(t[5]=[Z("span",{class:"button__label"},[Z("span",{class:"button__text"},"Erneut versuchen")],-1)])])])])):o.isDone?(Se(),Re("div",tm,[i.submitSuccessMessage===null?(Se(),Re("p",nm,qh(o.successMessage),1)):(Se(),Re("div",{key:1,innerHTML:i.submitSuccessMessage},null,8,rm))])):(Se(),Re("form",{key:3,class:"idvl-contactform cmms_form",onSubmit:t[2]||(t[2]=gn((...s)=>o.submit&&o.submit(...s),["prevent"]))},[(Se(!0),Re(Yh,null,Kh(o.elements,s=>{var a;return Se(),Jh(Qh(o.elementComponent(s)),{key:s.id,element:s,class:ei((a=s==null?void 0:s.attributes)==null?void 0:a.class),error:o.elementHasError(s.id),disabled:!i.nonce||s.protected,modelValue:i.formData[s.id],"onUpdate:modelValue":l=>i.formData[s.id]=l},null,8,["element","class","error","disabled","modelValue","onUpdate:modelValue"])}),128))],32))}const om=O(zh,[["render",im]]),sm={name:"VoucherConfirmOrder",data(){return{termsChecked:!1,loading:!1,errorClass:""}},props:{cartIdentifier:{Type:String},termsUrl:{Type:String}},methods:{submitOrder:function(e){this.errorClass="",e.preventDefault(),this.termsChecked&&!this.loading?(this.loading=!0,this.$emit("finish-order",this.cartIdentifier)):this.errorClass="--error"}}},am=window.Vue.vModelCheckbox,ti=window.Vue.normalizeClass,Ce=window.Vue.createElementVNode,lm=window.Vue.withDirectives,ni=window.Vue.createTextVNode,cm=window.Vue.withModifiers,vn=window.Vue.openBlock,wn=window.Vue.createElementBlock;window.Vue.createCommentVNode;const um={class:"element soylent form --align-right"},dm={class:"idvl-contactform"},hm=["href"],mm=["value"],fm={key:1,disabled:"",type:"submit",value:"Bestellung wird abgeschickt",class:"theme__submit"};function _m(e,t,n,r,i,o){return vn(),wn("div",um,[Ce("form",dm,[Ce("p",null,[lm(Ce("input",{class:ti(i.errorClass),type:"checkbox",id:"cf_agb",value:"1","onUpdate:modelValue":t[0]||(t[0]=s=>i.termsChecked=s),required:""},null,2),[[am,i.termsChecked]]),Ce("label",{for:"cf_agb",class:ti(["if-mandatory",["theme__label",i.errorClass]])},[Ce("span",null,[t[2]||(t[2]=ni("Ich habe die ",-1)),Ce("a",{href:n.termsUrl,target:"_blank"},"AGB",8,hm),t[3]||(t[3]=ni(" gelesen und bestätige diese",-1)),t[4]||(t[4]=Ce("sup",null," *",-1))])],2)]),Ce("input",{type:"hidden",id:"cart_identifier",name:"cart_identifier",value:n.cartIdentifier},null,8,mm),i.loading?(vn(),wn("input",fm)):(vn(),wn("input",{key:0,t
2ype:"submit",value:"Zahlungspflichtig bestellen",class:"theme__submit",onClick:t[1]||(t[1]=cm((...s)=>o.submitOrder&&o.submitOrder(...s),["stop"]))}))])])}const pm=O(sm,[["render",_m]]),gm={name:"VoucherOrder",components:{VoucherConfirmOrder:pm,VoucherCart:Vh,VoucherBreadcrumb:rh,VoucherProfile:Kn,VoucherConfirmation:Yd,CmmsForm:om},props:["element"],data(){return{step:1,billingAddressFormData:null,deliveryAddressFormData:null,paymentFormData:null,orderConfirmationData:null,orderFinishedData:null,submissionError:null,ignoreDeliveryAddress:!1}},computed:{...Li("sso",["auth","loginUrl","registerUrl","logoutUrl","userName","userMail","userNameReadable"]),loginComponent(){return Rt.getByName("profileLogin",Nn)}},methods:{retrieveForms:function(){this.retrieveBillingForm(),this.retrieveDeliveryForm(),this.retrievePaymentForm()},retrieveBillingForm(){j.get("/cmms-api/v3/cmms-voucher/order/billing-address/").then(e=>{this.billingAddressFormData=e.form}).catch(e=>{})},retrieveDeliveryForm(){j.get("/cmms-api/v3/cmms-voucher/order/delivery-address/").then(e=>{this.deliveryAddressFormData=e.form}).catch(e=>{})},retrievePaymentForm(){j.get("/cmms-api/v3/cmms-voucher/order/payment/").then(e=>{this.paymentFormData=e.form}).catch(e=>{})},retrieveOrderConfirmation(){j.get("/cmms-api/v3/cmms-voucher/order/confirmation/").then(e=>{this.orderConfirmationData=e}).catch(e=>{})},quantitySubmitted:function(e){j.post("/cmms-api/v3/cmms-voucher/cart/",{id:this.element.data.model.post_id,quantity:e}).then(t=>{t.success&&this.step++}).catch(t=>{})},billingAddressSubmitted:function(e,t){e===ht&&(t.cf_equals_delivery_address?(this.ignoreDeliveryAddress=!0,this.step=5):(this.ignoreDeliveryAddress=!1,this.step=4),this.retrieveBillingForm())},deliveryAddressSubmitted:function(e,t){e===ht&&(this.step++,this.retrieveDeliveryForm())},paymentSubmitted:function(e,t){e===ht&&(this.step++,this.retrieveOrderConfirmation(),this.retrievePaymentForm())},orderSubmitted:function(e){j.post("/cmms-api/v3/cmms-voucher/order/confirmation/submit",{cart_identifier:e}).then(t=>{t.success?(this.step++,this.orderFinishedData=t.order_confirmation):(this.submissionError=t.error_message,this.orderConfirmationData=null,this.retrieveOrderConfirmation())}).catch(t=>{})},stepBack:function(){this.orderConfirmationData=null,this.step--,this.step===4&&this.ignoreDeliveryAddress&&this.step--}},mounted(){this.retrieveForms()},watch:{auth:{handler(e){e?this.step=2:this.step=1},immediate:!0}}},ze=window.Vue.resolveComponent,ri=window.Vue.createVNode,$=window.Vue.openBlock,he=window.Vue.createBlock,re=window.Vue.createCommentVNode,ee=window.Vue.createElementVNode,we=window.Vue.createElementBlock,ii=window.Vue.toDisplayString,yn=window.Vue.createTextVNode,vm=window.Vue.Fragment,wm=window.Vue.resolveDynamicComponent,ym={class:"element voucher-order"},Em={key:1,class:"element soylent form"},bm={key:2,class:"element soylent form"},Sm={key:3,class:"element soylent form"},Cm={key:4,class:"voucher-order__overview"},km={key:0},Am={key:5,class:"voucher-order__confirm"},Vm={key:6,class:"button-container --back"};function Tm(e,t,n,r,i,o){const s=ze("VoucherBreadcrumb"),a=ze("VoucherProfile"),l=ze("VoucherCart"),d=ze("CmmsForm"),u=ze("VoucherConfirmation"),c=ze("VoucherConfirmOrder");return $(),we("div",ym,[ri(s,{step:i.step},null,8,["step"]),e.auth?($(),we(vm,{key:0},[ri(a),i.step===2?($(),he(l,{key:0,model:n.element.data.model,onSetCartQuantity:o.quantitySubmitted},null,8,["model","onSetCartQuantity"])):i.step===3?($(),we("div",Em,[t[1]||(t[1]=ee("h3",null,"Rechnungsadresse",-1)),i.billingAddressFormData?($(),he(d,{key:0,class:"--background",form:i.billingAddressFormData,onFormSent:o.billingAddressSubmitted},null,8,["form","onFormSent"])):re("",!0)])):i.step===4?($(),we("div",bm,[t[2]||(t[2]=ee("h3",null,"Lieferadresse",-1)),i.deliveryAddressFormData?($(),he(d,{key:0,class:"--background",form:i.deliveryAddressFormData,onFormSent:o.deliveryAddressSubmitted},null,8,["form","onFormSent"])):re("",!0)])):i.step===5?($(),we("div",Sm,[t[3]||(t[3]=ee("h3",null,"Bezahlung",-1)),i.paymentFormData?($(),he(d,{key:0,class:"--background",form:i.paymentFormData,onFormSent:o.paymentSubmitted},null,8,["form","onFormSent"])):re("",!0)])):i.step===6?($(),we("div",Cm,[t[4]||(t[4]=ee("h3",null,"Bestellübersicht",-1)),i.submissionError?($(),we("div",km,ii(i.submissionError),1)):re("",!0),i.orderConfirmationData?($(),he(l,{key:1,model:i.orderConfirmationData.model,quantity:i.orderConfirmationData.quantity,editable:!1,"total-sum":i.orderConfirmationData.total_sum},null,8,["model","quantity","total-sum"])):re("",!0),i.orderConfirmationData?($(),he(u,{key:2,"box-headline":"Rechnungsadresse",items:i.orderConfirmationData.billing_address},null,8,["items"])):re("",!0),i.orderConfirmationData?($(),he(u,{key:3,"box-headline":"Lieferadresse",items:i.orderConfirmationData.delivery_address},null,8,["items"])):re("",!0),i.orderConfirmationData?($(),he(u,{key:4,"box-headline":"Bezahlmethode",items:i.orderConfirmationData.payment},null,8,["items"])):re("",!0),i.orderConfirmationData?($(),he(c,{key:5,"cart-identifier":i.orderConfirmationData.cart_identifier,"terms-url":i.orderConfirmationData.terms_url,onFinishOrder:o.orderSubmitted},null,8,["cart-identifier","terms-url","onFinishOrder"])):re("",!0)])):i.step===7?($(),we("div",Am,[t[9]||(t[9]=ee("h3",null,"Bestellbestätigung",-1)),t[10]||(t[10]=ee("p",null,"Vielen Dank für deine Bestellung!",-1)),ee("p",null,[t[5]||(t[5]=yn("Deine Bestellung wird bei uns unter der Nummer ",-1)),ee("strong",null,ii(i.orderFinishedData.order_number),1),t[6]||(t[6]=yn(" geführt.",-1)),t[7]||
2(t[7]=ee("br",null,null,-1)),t[8]||(t[8]=yn("Du erhälst ebenfalls eine Bestätigung per Email.",-1))])])):re("",!0),i.step>2&&i.step<7?($(),we("div",Vm,[ee("div",{class:"button --text-link",onClick:t[0]||(t[0]=(...h)=>o.stepBack&&o.stepBack(...h))},[...t[11]||(t[11]=[ee("div",{class:"button__label"},[ee("span",{class:"button__text"},"Zurück")],-1)])])])):re("",!0)],64)):($(),he(wm(o.loginComponent),{key:1}))])}const Om=O(gm,[["render",Tm]]);var Ne;class Rm{constructor(){J(this,Ne,[])}add(t){if(typeof t!="string"){console.error("[soylent:featureProvider] Cannot add feature, the passed flag is not a string",t);return}p(this,Ne).push(t)}has(t){return p(this,Ne).includes(t)}remove(t){const n=p(this,Ne).indexOf(t);p(this,Ne).splice(n,1)}}Ne=new WeakMap;function Dm(){return"__soylent"in window||(window.__soylent={}),"featureProvider"in window.__soylent||(window.__soylent.featureProvider=new Rm),window.__soylent.featureProvider}const xm="Sso";Dm().add(xm);console.log("[cmms-voucher] Request SSO functionality");const Im=10,Nm=250;let oi=0;window.addEventListener("ELEMENT_PROVIDER_READY",e=>{Qn()});function Pm(){oi<Im&&(setTimeout(Qn,Nm),oi++)}function Qn(){if("soylentEditorElementProvider"in window){const e={SoylentRadioVoucherGridDefault:la,SoylentRadioVoucherHistoryDefault:gd,SoylentRadioVoucherMetaDefault:jd,SoylentRadioVoucherOrderDefault:Om};Object.keys(e).forEach(t=>{window.soylentEditorElementProvider.has(t)||(window.soylentEditorElementProvider.set({[t]:e[t]}),console.debug("[cmms-voucher] Registered Soylent editor element [".concat(t,"]")))})}else console.debug("[cmms-voucher] SoylentEditorElementProvider not available, waiting"),Pm()}Qn();export{Oh as F,O as _,$m as __vite_legacy_guard};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.