1/*! For license information please see vic.app.js.LICENSE.txt */ 2(()=>{var e={54767(e,t,i){"use strict";i.d(t,{K3:()=>f,Tc:()=>g,_w:()=>p,d9:()=>y,hq:()=>m,rF:()=>v,uA:()=>w});var s=i(64352),a=i(13696),n=i(88045),r=i(91242),o=i(13263);function l(e,t,i,s){return new(i||(i=Promise))(function(a,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function o(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(r,o)}l((s=s.apply(e,t||[])).next())})}const c=Symbol("decorated-props"),h=["type","required","defaultValue","reactions","reactOnInit","attributeName"],d={required:!1,reactions:null,reactOnInit:!1};function u(e){return function(t,i){t[c]=t[c]||{},t[c][i]=e}}function p(e,t){return e instanceof HTMLElement?u(Object.assign({},d))(e,t):u(Object.assign(Object.assign({},d),e))}function g(e,t){return function(i){return customElements.define(e,i,t),i}}function b(e){return e?new Map(Array.from(e.entries()).map(([e,t])=>[e,Object.assign(Object.assign({},t),{events:structuredClone(t.events)})])):new Map}function m(e){return function(t,i){t.hasOwnProperty("decoratedUiEls")||(t.decoratedUiEls=b(t.decoratedUiEls)),t.decoratedUiEls.set(i,{selector:e,justOne:!0,events:new Set})}}function f(e){return function(t,i){t.hasOwnProperty("decoratedUiEls")||(t.decoratedUiEls=b(t.decoratedUiEls)),t.decoratedUiEls.set(i,{selector:e,justOne:!1,events:new Set})}}function v(e,t,i){return function(s,a){s.hasOwnProperty("decoratedUiEls")||(s.decoratedUiEls=s.decoratedUiEls?structuredClone(s.decoratedUiEls):new Map);const n=s.decoratedUiEls.get(e);void 0!==n||"window"!==e&&"this"!==e?(n.events.add({eventName:t,handler:a,options:i}),s.decoratedUiEls.set(e,n)):s.decoratedUiEls.set(e.toString(),{selector:e,justOne:!0,events:new Set([{eventName:t,handler:a,options:i}])})}}function y(e){return function(t){return class extends t{get activeOnMQs(){const e=this.getAttribute("active-on-mq")||!1;if(!e)return!1;let t=[];return(0,r.HO)(e).split(",").forEach(e=>{if(1===e.length)t=(0,a.yG)(t,`MQ${e}`);else if(e.length>1){const i=e.split("-"),s=parseInt(i[0],10),n=parseInt(i[1],10);for(let e=s;e<=n;e++)t=(0,a.yG)(t,`MQ${e.toString()}`)}}),t}get currentMQ(){return(0,n.g8)(e)}get activeOnCurrentMQ(){return this.activeOnMQs&&(0,a.TR)(this.activeOnMQs||[],this.currentMQ)||!this.activeOnMQs}handleMqChange(e){this.activeOnMQs&&(!this.state.initialized&&this.activeOnCurrentMQ?this.mqBasedConnect():this.state.initialized&&!this.activeOnCurrentMQ&&this.disconnectComponent())}mqBasedConnect(){this.activeOnCurrentMQ&&super.connectedCallback()}connectedCallback(){o.Mp.getInstance(e),(0,n.MR)(window,o.Rn,this.handleMqChange,this),this.mqBasedConnect()}}}}class w extends HTMLElement{constructor({ui:e={},events:t=[],initialStates:i={},reactions:s={},props:a={},useShadowDOM:n=!1,preserveChildren:r=!1,asyncRendering:o=!1}={}){super(),this.uiDefinitions={},this.ui={},this.events=[],this.reactions={initialized:[()=>this.onComponentInitialized()]},this._state={},this._initialStates={},this.eventIdMap=new WeakMap,this.eventBindingMap={},this._propReactionsOnInit=[],this.initialStates={initialized:!1},this.useShadowDOM=n,this.preserveChildren=r,this.asyncRendering=o,this.useShadowDOM&&this.attachShadow({mode:"open"}),Object.assign(this.uiDefinitions,e),Object.assign(this.initialStates,i),Object.assign(this.reactions,s),this.addReactions(s),this.mergeEvents(t),this.props=this.normalizeProps(Object.assign(Object.assign({},this[c]||null),a))}get asyncRenderingEnabled(){return this._shouldRenderAsync||this.asyncRendering}connectedCallback(){this.setupComponent()}beforeComponentDisconnects(){}disconnectComponent(){this.beforeComponentDisconnects(),this.destroyComponentProps(),this.destroyComponent(),this.setState({initialized:!1})}renderingTemplate(){return null}renderComponent(){const e=this.renderingTemplate();null!==e&&this.render(e)}renderAsync(){return l(this,void 0,void 0,function*(){console.warn("please override renderAsync-method")})}render(e){this.preserveChildren||(this.getUiRoot().innerHTML=""),e instanceof HTMLTemplateElement?this.getUiRoot().appendChild(e.content.cloneNode(!0)):this.useShadowDOM?this.shadowRoot.innerHTML=e:this.insertAdjacentHTML("beforeend",e)}destroyComponent(){console.warn("please override destroyComponent-method")}afterComponentRender(){}onComponentInitialized(){this.dispatchEvent(new CustomEvent("kl-component-initialized",{bubbles:!1}))}waitForInitialization(){return l(this,void 0,void 0,function*(){if(!this.state.initialized)return yield(0,n.lA)(this,"kl-component-initialized")})}setupComponent(){return l(this,void 0,void 0,function*(){this.initializeProps(),this.asyncRenderingEnabled?yield this.renderAsync():this.renderComponent(),this.setupComponentProps(),this.runPropsReactionOnInit(),this.afterComponentRender(),this.checkForMissingAttributes(),this.setState({initialized:!0})})}setupComponentProps(){this.enableDecoratedProperties(),this.generateUI(),this.generateEvents()}destroyComponentProps(){this.destroyDecoratedProperties(),this.removeEvents(),this.ui={}}generateUI(){const e=this.getUiRoot();
2Object.keys(this.uiDefinitions).forEach(t=>{const i=this.uiDefinitions[t].trim();if(i.endsWith(":-one")){const s=i.replace(/:-one/g,"").trim();this.ui[t]=(0,n.I6)(e,s)}else this.ui[t]=(0,n.JW)(e,i)})}generateEvents(){this.events.forEach(e=>{if("function"==typeof this[e.handler]){const t=this.getEventTargets(e.target);(0,n.MR)(t,e.event,this[e.handler],this,e.options)}})}removeEvents(){this.events.forEach(e=>{if("function"==typeof this[e.handler]){const t=this.getEventTargets(e.target);(0,n.Nn)(t,e.event,this[e.handler],this,e.options)}})}updateUI(){this.destroyDecoratedProperties(),this.enableDecoratedProperties(),this.ui={},this.generateUI()}updateEvents(){this.events.forEach(e=>{if("function"==typeof this[e.handler]){const t=this.getEventTargets(e.target);(0,n.Nn)(t,e.event,this[e.handler],this,e.options),(0,n.MR)(t,e.event,this[e.handler],this,e.options)}})}enableDecoratedProperties(){void 0!==this.decoratedUiEls&&this.decoratedUiEls.forEach((e,t)=>{if("window"===e.selector)e.events.forEach(e=>{(0,n.MR)(window,e.eventName,this[e.handler],this,e.options)});else if("this"===e.selector)e.events.forEach(e=>{(0,n.MR)(this,e.eventName,this[e.handler],this,e.options)});else{const i=e.justOne?(0,n.I6)(this.getUiRoot(),e.selector):(0,n.JW)(this.getUiRoot(),e.selector);this[t]=i,e.events.forEach(e=>{(0,n.MR)(this[t],e.eventName,this[e.handler],this,e.options)})}})}destroyDecoratedProperties(){void 0!==this.decoratedUiEls&&this.decoratedUiEls.forEach((e,t)=>{"window"===e.selector?e.events.forEach(e=>{(0,n.Nn)(window,e.eventName,this[e.handler],this,e.options)}):"this"===e.selector?e.events.forEach(e=>{(0,n.Nn)(this,e.eventName,this[e.handler],this,e.options)}):(null!=this[t]&&e.events.forEach(e=>{(0,n.Nn)(this[t],e.eventName,this[e.handler],this,e.options)}),this[t]=void 0)})}initializeProps(){this.addDefaultValueAndType(this.props),this.addPropAccessors(this.props),this.addPropsReactions(this.props)}normalizeProps(e){const t={};return Object.entries(e).forEach(([e,i])=>{const s="object"==typeof i&&null!==i&&Object.keys(i).length&&Object.keys(i).every(e=>h.includes(e))?i:{defaultValue:i};s.attributeName=s.attributeName||(0,r.fX)(e),t[e]=Object.assign(Object.assign({},d),s)}),t}addDefaultValueAndType(e){Object.entries(e).forEach(([e,t])=>{t.defaultValue=t.hasOwnProperty("defaultValue")?t.defaultValue:this[e],t.type=t.type||(null!==t.defaultValue&&void 0!==t.defaultValue?typeof t.defaultValue:"string")})}addPropAccessors(e){for(const[t,i]of Object.entries(e))Object.defineProperty(this,t,{enumerable:!1,configurable:!0,set(e){null==e?this.removeAttribute(i.attributeName):"boolean"===i.type?e?this.setAttribute(i.attributeName,""):this.removeAttribute(i.attributeName):"object"===i.type?this.setAttribute(i.attributeName,JSON.stringify(e)):this.setAttribute(i.attributeName,String(e))},get(){const e=this.getAttribute(i.attributeName);return null===e&&void 0!==i.defaultValue?i.defaultValue:this.castFromAttribute(e,i.type)}})}addPropsReactions(e){const t=Object.entries(e).filter(([,e])=>Array.isArray(e.reactions)&&e.reactions.length);if(0===t.length)return;const i=e=>{const[i,s]=t.find(([,t])=>t.attributeName===e);s.reactions.forEach(e=>{"function"==typeof e?e.call(this,this[i]):"string"==typeof e&&e in this&&"function"==typeof this[e]?this[e](this[i]):console.error("unknown given reaction callback: ",e)})},s={attributes:!0,attributeFilter:t.map(([,e])=>e.attributeName),attributeOldValue:!0};new MutationObserver(e=>{for(const t of e){const e=t.oldValue;if(this.getAttribute(t.attributeName)===e)return;i(t.attributeName)}}).observe(this,s),this._propReactionsOnInit=t.filter(([,e])=>e.reactOnInit).map(([,e])=>()=>i(e.attributeName))}runPropsReactionOnInit(){this._propReactionsOnInit.forEach(e=>e())}checkForMissingAttributes(){const e=[];for(const t of Object.values(this.props))t.required&&!this.hasAttribute(t.attributeName)&&e.push(t.attributeName);e.length&&console.log(`${this.tagName.toLowerCase()} is missing required attribute(s): ${e.join(", ")}`)}castFromAttribute(e,t="string"){switch(t){case"boolean":return null!==e;case"number":return parseFloat(String(e));case"object":return JSON.parse(String(e));default:return e}}get state(){return(0,s.be)(this._state||{})}set state(e){throw new Error('The state should only be modified via the "setState" method.')}set initialStates(e){this._initialStates=e,this._state=e}get initialStates(){return this._initialStates||{}}setState(e,{merge:t=!0,silent:i=!1}={}){const a=this.state;if(this._state=Object.assign({},t?a:{},e),i||(0,s.n4)(a,this._state))return this;const n=this.state,r=this.reactions||{};return Object.keys(r).forEach(t=>{if("*"===t)this.invokeReaction("*");else if(t in e){const e=(0,s._W)(a,t),i=(0,s._W)(n,t);(0,s.n4)(e,i)||this.invokeReaction(t)}}),this}addReactions(e,t){if("object"==typeof e)Object.entries(e).forEach(([e,t])=>this.addReactions(e,t));else{this.reactions=this.reactions||{};const i=(0,s.$r)(t),n=this.reactions[e]||[];this.reactions[e]=(0,a.iU)(n,i,this.isNewReaction)}return this}isNewReaction(e,t){return!t.some(t=>e===t)}removeReactions(e,t){return"object"==typeof e?(Object.entries(e).forEach(([e,t])=>this.removeReactions(e,t)),this):(this.reactions.hasOwnProperty(e)?t?(t.forEach(t=>{this.reactions[e]=this.reactions[e].filter(e=>e!==t)}),0===this.reactions[e].length&&delete this.reactions[e]):delete this.reactions[e]:console.warn("no such prop found "),this)}invokeReaction(e){((this.reactions||{}
2)[e]||new Set).forEach(e=>{"function"==typeof e?e(this.state):"string"==typeof e&&e in this&&"function"==typeof this[e]?this[e](this.state):console.error("given reaction callback can't be found: ",e)})}mergeEvents(e){this.events=this.events.filter(t=>this.isNewEvent(t,e)).concat(e)}isNewEvent(e,t){return!t.some(t=>t.event===e.event&&t.target===e.target)}getUiRoot(){return this.shadowRoot?this.shadowRoot:this}getEventTargets(e){let t=null;return t="this"===e?this:"window"===e?window:this.ui[e],t}}i.d(t,["cg",0,"kl-component-initialized"])},4525(e,t){"use strict";t.h=(e,t)=>new Promise((i,s)=>{fetch(e,t).then(e=>{e.ok?i(e.json()):s(e)}).catch(e=>s(e))})},13696(e,t){"use strict";const i=(e,t)=>-1!==e.findIndex(e=>e===t);t.TR=i,t.iU=(e,t,i)=>e.filter(e=>i(e,t)).concat(t),t.yG=(e,t)=>(i(e,t)||e.push(t),e)},35175(e,t){"use strict";t.gv=e=>`${e<10?"0":""}${e.toString()}`},88045(e,t){"use strict";const i=(e,t)=>null===e?[]:e instanceof Document||null===e.shadowRoot||void 0===e.shadowRoot?Array.from(e.querySelectorAll(t)):Array.from(e.shadowRoot.querySelectorAll(t)),s=(e,...t)=>{if(void 0!==e&&0!==t.length&&null!==e){e instanceof Element&&(e=[e]),e instanceof NodeList&&(e=Array.from(e));for(const i of e)i.classList.remove(...t)}},a=(e,...t)=>{if(void 0!==e&&0!==t.length&&null!==e){e instanceof Element&&(e=[e]),e instanceof NodeList&&(e=Array.from(e));for(const i of e)i.classList.add(...t)}},n=(e,t)=>e.classList.contains(t);function r(e){return Symbol.iterator in e}function o(e){return"length"in e?e.length>0:!e[Symbol.iterator]().next().done}const l=(e,t,i,s,a)=>{if(null==e||r(e)&&!o(e))return;if(r(e)&&!(e instanceof HTMLElement)){for(const n of e)l(n,t,i,s,a);return}let n;n="string"==typeof t?t.trim().split(" "):t,n.forEach(t=>{const n=c(e,t,i,s);if(!s.eventBindingMap[n]){const r=i.bind(s);return s.eventBindingMap[n]=r,e.addEventListener(t.trim(),r,a)}})};function c(e,t,i,s){return`${h(e,s)}#\n ${t.trim()}#\n ${h(i,s)}#\n ${h(s,s)}`.replace(/\n/gm,"").replace(/\s/g,"")}function h(e,t){let i;if(t.eventIdMap.has(e))i=t.eventIdMap.get(e);else{const s="xxxxxxxx".replace(/x/g,d).toLowerCase();t.eventIdMap.set(e,s),i=s}return i}function d(){return(100*Math.random()%36|0).toString(36)}const u=(e,t,i,s,a)=>{if(null==e||r(e)&&!o(e))return;if(r(e)&&!(e instanceof HTMLElement)){for(const n of e)u(n,t,i,s,a);return}let n;n="string"==typeof t?t.trim().split(" "):t,n.forEach(t=>{const n=c(e,t,i,s),r=s.eventBindingMap[n];r&&(delete s.eventBindingMap[n],e.removeEventListener(t,r,a))})},p=(e,t,i)=>new Promise(s=>{void 0!==i&&setTimeout(()=>s(),i),e.addEventListener(t,()=>s())});t.iQ=a,t.I6=(e,t)=>null===e?null:e instanceof Document||null===e.shadowRoot||void 0===e.shadowRoot?e.querySelector(t):e.shadowRoot.querySelector(t),t.JW=i,t.g8=e=>{let t="";return e.forEach(e=>{!t.length&&window.matchMedia(e.query).matches&&(t=e.name)}),t},t.PA=(e,t)=>e.closest(t),t.Lz=()=>Math.random().toString(36).substr(2,9),t.nB=n,t.MR=l,t.vy=s,t.Nn=u,t.p1=(e,t,i)=>{if(null!=e){e instanceof Element&&(e=[e]),e instanceof NodeList&&(e=Array.from(e));for(const r of e)!0===i?a(r,t):n(r,t)||!1===i?s(r,t):a(r,t)}},t.fm=e=>new Promise(t=>{setTimeout(()=>t(),e)}),t.em=function(e,t){return new Promise((i,s)=>{e.addEventListener("animationend",function s(a){a.target===e&&(t&&a.animationName!==t||(e.removeEventListener("animationend",s),i(a)))})})},t.lA=p,t.db=e=>{var t;return!0===(null===(t=e.state)||void 0===t?void 0:t.initialized)?Promise.resolve():p(e,"kl-component-initialized",3e3)},t.jj=function(e,t){return new Promise((i,s)=>{e.addEventListener("transitionend",function s(a){a.target===e&&(t&&a.propertyName!==t||(e.removeEventListener("transitionend",s),i(a)))})})}},13750(e,t){"use strict";function i(e){return function(...t){return function(i,s,a){return Object.assign(Object.assign({},a),{value:e(a.value,...t)})}}}const s=i(function(e,t=0){let i=-1;const s=function(...s){clearTimeout(i),i=window.setTimeout(()=>{e.call(this,...s)},t)};return s.cancel=function(){clearTimeout(i)},s}),a=i(function(e,t=0){let i,s=[];const a=function(...a){s=a,void 0===i&&(i=window.setTimeout(()=>{i=void 0,e.call(this,...s)},t))};return a.cancel=function(){clearTimeout(i),i=void 0},a});t.sg=s,t.nF=a},64352(e,t){"use strict";const i=e=>"object"==typeof e&&null!==e?JSON.stringify(e):String(e);t._W=(e={},t="")=>{const i=t.split(".");let s=0,a=e;for(;a&&s<i.length;)a=a[i[s]],s++;return a},t.n4=(e,t)=>
2typeof e==typeof t&&("object"==typeof e?0===i(e).localeCompare(i(t)):e===t),t.be=function e(t){return"object"!=typeof t?t:null===t?null:Array.isArray(t)?t.map(t=>e(t)):Object.entries(t).reduce((t,[i,s])=>(t[i]=e(s),t),{})},t.$r=e=>Array.isArray(e)?e:[e]},91242(e,t){"use strict";t.HO=e=>e.replace(/\s/g,""),t.Cb=function(e){return e.toLowerCase().replace(/(-+|\s+)[a-z]/g,e=>e.toUpperCase()).replace(/(-|\s)+/g,"")},t.fX=function(e){return e.replace(/[A-Z]/g,e=>`-${e.toLocaleLowerCase()}`)}},26676(e,t){"use strict";const i=(e,t)=>""===t?e:-1===e.indexOf("?")?`${e}?${t}`:`${e}&${t}`,s=(e,t)=>i(e,t.toString()),a=(e,t="")=>{const i=new URLSearchParams;return Object.keys(e).forEach(s=>{const a=e[s];void 0!==a&&i.append(`${t}${s}`,a)}),i};t.UD=(e,t,i="")=>{const n=a(t,i);return s(e,n)},t.Ne=s,t.m$=i,t.j4=(e,t=!1)=>e.startsWith("https://")||e.startsWith("http://")?e:`http${t?"":"s"}://${e}`,t.ZM=a},8135(e,t,i){"scrollBehavior"in document.documentElement.style||i.e(11523).then(i.t.bind(i,33904,23))},13263(e,t,i){"use strict";i.d(t,{GR:()=>d,KU:()=>f,Mp:()=>l,Oq:()=>w,R$:()=>p,bD:()=>h,dI:()=>y,rD:()=>r,tJ:()=>c});var s=i(13750),a=i(88045),n=(i(4525),i(64352),i(26676));class r{constructor(){}static getInstance(){return void 0===r.instance&&(r.instance=new IntersectionObserver(r.handleIntersectionChange)),r.instance}static handleIntersectionChange(e){Object.keys(e).forEach(t=>{const i=e[t],s=i.target;i.isIntersecting?s.dispatchEvent(new CustomEvent("kl-in-vp",{bubbles:!1})):s.dispatchEvent(new CustomEvent("kl-out-vp",{bubbles:!1}))})}}function o(e,t,i,s){return new(i||(i=Promise))(function(a,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function o(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(r,o)}l((s=s.apply(e,t||[])).next())})}class l{constructor(){this.eventIdMap=new WeakMap,this.eventBindingMap={},this.lastMQ=(0,a.g8)(l.mediaQuerys),(0,a.MR)(window,"resize",this.handleMQChange,this)}static getInstance(e){return void 0===l.instance&&(l.mediaQuerys=e,l.instance=new l),l.instance}handleMQChange(){const e=(0,a.g8)(l.mediaQuerys);e!==this.lastMQ&&(window.dispatchEvent(new CustomEvent("kl-mq-change",{detail:{newMQ:e,oldMQ:this.lastMQ}})),this.lastMQ=e)}}!function(e,t,i,s){var a,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(n<3?a(r):n>3?a(t,i,r):a(t,i))||r);n>3&&r&&Object.defineProperty(t,i,r)}([(0,s.nF)(100)],l.prototype,"handleMQChange",null),Symbol("resolve"),Symbol("reject"),Symbol("pending");var c=new class{constructor(){this.urlSearchParams=new URLSearchParams(window.location.search)}get(e){return this.urlSearchParams.get(e)}getAll(e){return this.urlSearchParams.getAll(e)}getAllKeys(){return Array.from(this.urlSearchParams.keys())}set(e,t){this.urlSearchParams.set(e,t),this.updateUrl()}delete(e){this.urlSearchParams.delete(e),this.updateUrl()}getString(){return this.urlSearchParams.toString()}get curUrl(){return`${window.location.protocol}//${window.location.host}${window.location.pathname}`}updateUrl(){const e=this.getString(),t=this.curUrl,i=window.location.hash,s=""!==e?`${t}?${e}`:t;window.history.replaceState({path:s},"",s),""!==i&&(window.location.hash=i)}},h=new Proxy(console,{get:(e,t)=>null!==c.get("js-debug")?e[t]:()=>{}}),d=new class{constructor(){this.componentMap=new WeakMap,this.intersectionObserver=new IntersectionObserver(e=>this.handleIntersectionChange(e),{rootMargin:"500px 0px"})}subscribe(e,t){this.componentMap.set(e,t),this.intersectionObserver.observe(e)}unsubscribe(e){this.intersectionObserver.unobserve(e),this.componentMap.delete(e)}handleIntersectionChange(e){e.forEach(e=>{const t=e.target;if(!e.isIntersecting||!this.componentMap.has(t))return;const i=this.componentMap.get(t);this.unsubscribe(t),i()})}};const u=new class{constructor(){this.observedItemsMap=new Map,window.addEventListener("storage",e=>this.handleStorageChange(e))}addItem(e,t,i={}
2){this.getStorage(i).setItem(e,t),this.fireCallbacks(e)}getItem(e,t={}){return this.getStorage(t).getItem(e)}removeItem(e,t={}){this.getStorage(t).removeItem(e)}observeItem(e,t){const i=this.getKeyCallbacks(e);i.add(t),this.observedItemsMap.set(e,i)}unobserveItem(e,t){const i=this.getKeyCallbacks(e);i.delete(t),this.observedItemsMap.set(e,i)}clearStorage(e){this.getStorage({storageType:e}).clear()}handleStorageChange(e){const t=e.key,i=e.oldValue,s=e.newValue;null!==t&&i!==s&&this.observedItemsMap.has(t)&&this.fireCallbacks(t)}getKeyCallbacks(e){return this.observedItemsMap.get(e)||new Set}fireCallbacks(e){this.getKeyCallbacks(e).forEach(e=>e())}getStorage(e){const{storageType:t="local"}=e;return"local"===t?localStorage:sessionStorage}};class p{constructor(e){this.runtimeCache=new Map,this.storageService=u,this.storageKeyPrefix="kl-caching-service";const{storageService:t,storageKeyPrefix:i}=null!=e?e:{};void 0!==t&&(this.storageService=t),void 0!==i&&(this.storageKeyPrefix=i)}get shouldCache(){return!0}cacheValue(e,t,i){if(!1===this.shouldCache)return;if(0===i.validFor)return void this.runtimeCache.set(this.getStorageKey(e),t);const s={value:t,validUntil:Date.now()+i.validFor};this.storageService.addItem(this.getStorageKey(e),JSON.stringify(s),this.getStorageServiceOptions(i))}getCachedValue(e,t){if(!1===this.shouldCache)return null;const i=this.getStorageKey(e),s=this.runtimeCache.get(i);if(void 0!==s)return s;const a=this.storageService.getItem(i,this.getStorageServiceOptions(t));if(null===a)return null;try{const e=JSON.parse(a);return e.validUntil<Date.now()?(this.storageService.removeItem(i,this.getStorageServiceOptions(t)),null):e.value}catch(e){return h.warn("CachingService: ",e),this.storageService.removeItem(i,this.getStorageServiceOptions(t)),null}}getCachedJSON(e,t){const i=this.getCachedValue(e,t);if(null===i)return null;try{return JSON.parse(i)}catch(e){return h.error("CachingService: ",e),null}}clearCachedValue(e,t){const i=this.getStorageKey(e);0!==(null==t?void 0:t.validFor)?this.storageService.removeItem(i,this.getStorageServiceOptions(t)):this.runtimeCache.delete(i)}getStorageServiceOptions(e){return{storageType:null==e?void 0:e.storageType}}getStorageKey(e){return`${this.storageKeyPrefix}_${e}`}}const g=new p,b=new class{constructor(e){this.storageService=u,this.requestCacheName="kl-request-cache",this.storageKeyPrefix="kl-request-caching-service";const{storageService:t,requestCacheName:i,storageKeyPrefix:s}=null!=e?e:{};void 0!==t&&(this.storageService=t),void 0!==i&&(this.requestCacheName=i),void 0!==s&&(this.storageKeyPrefix=s)}getCache(){return o(this,void 0,void 0,function*(){try{return void 0===this._cache&&(this._cache=caches.open(this.requestCacheName)),yield this._cache}catch(e){return h.error("RequestCachingService: ",e),null}})}getCachedResponse(e,t){return o(this,void 0,void 0,function*(){const i=yield this.getCache();if(null===i)return null;const s=yield i.match(e);if(void 0===s)return null;const a=this.storageService.getItem(this.getStorageKey(e.url),{storageType:t});return null===a||Date.now()>parseInt(a,10)?(yield i.delete(e),null):s})}getCachedJSON(e,t){return o(this,void 0,void 0,function*(){const i=yield this.getCachedResponse(e,t);if(null===i)return null;try{return yield i.json()}catch(e){return h.error("RequestCachingService: ",e),null}})}cacheRequest(e){return o(this,void 0,void 0,function*(){const{request:t,response:i}=e,s=yield this.getCache();null!==s&&(this.storeExpirationTime(e),yield s.put(t,i))})}clearCachedRequest(e,t){return o(this,void 0,void 0,function*(){const i=yield this.getCache();null!==i&&(yield i.delete(e),this.storageService.removeItem(this.getStorageKey(e.url),{storageType:t}))})}storeExpirationTime(e){const{request:t,maxAge:i}=e,s=Date.now()+i;this.storageService.addItem(this.getStorageKey(t.url),s.toString(),{storageType:e.storage})}getStorageKey(e){return`${this.storageKeyPrefix}_${e}`}};class m extends Error{constructor(e){super(e.statusText),this.response=e}}class f{constructor(e={}){this.requestPipeline=new Map,this.cachingService=g,this.requestCachingService=b;const{cachingService:t,requestCachingService:i}=e;void 0!==t&&(this.cachingService=t),void 0!==i&&(this.requestCachingService=i)}fetchJSON(e,t={}){return o(this,void 0,void 0,function*(){return yield this.fetch(e,f.getJSON,t)})}fetchHTML(e,t={}){return o(this,void 0,void 0,function*(){return yield this.fetch(e,f.getHTML,t)})}fetch(e,t,i={}){return o(this,void 0,void 0,function*(){const{cacheOptions:s}=i;!0===(null==s?void 0:s.forceRefetch)&&this.clearCachedValue(e,s);const a=yield this.getCachedValue(e,s);if(null!==a)return a;try{const a=this.requestPipeline.get(e);if(void 0!==a)return yield t(yield a);const n=this.fetchData(e,i);this.requestPipeline.set(e,n);const r=yield n,o=yield t(r);return this.requestPipeline.delete(e),null===r||null===o?null:(void 0===s||(yield this.cacheResponse(e,r,o,s)),o)}catch(t){if(h.error("APIService.fetch: ",t),this.requestPipeline.delete(e),!0===i.throwError)throw t;return null}})}fetchResponse(e,t={}){var i,s,a;return o(this,void 0,void 0,function*(){const{cacheOptions:n}=t,{forceRefetch:r=!1}=null!=n?n:{};!0===r&&(yield this.requestCachingService.clearCachedRequest(new Request
2(e),null!==(i=null==n?void 0:n.storageType)&&void 0!==i?i:"session"));const o=yield this.requestCachingService.getCachedResponse(new Request(e),null!==(s=null==n?void 0:n.storageType)&&void 0!==s?s:"session");if(null!==o)return o;const l=this.requestPipeline.get(e);if(void 0!==l)return yield l;try{const i=fetch(e,t.fetchOptions);this.requestPipeline.set(e,i);const s=yield i;return this.requestPipeline.delete(e),void 0===n||(yield this.requestCachingService.cacheRequest({request:new Request(e),response:s.clone(),storage:null!==(a=n.storageType)&&void 0!==a?a:"session",maxAge:n.validFor})),s}catch(i){if(h.error("APIService.fetchResponse: ",i),this.requestPipeline.delete(e),!0===t.throwError)throw i;return null}})}fetchData(e,t){return o(this,void 0,void 0,function*(){const i=yield fetch(e,t.fetchOptions);if(!i.ok)throw new m(i);return 204===i.status?null:i})}static getJSON(e){return o(this,void 0,void 0,function*(){if(null===e)return null;const t=e.clone();return yield t.json()})}static getHTML(e){return o(this,void 0,void 0,function*(){if(null===e)return null;const t=e.clone();return yield t.text()})}cacheResponse(e,t,i,s){var a;return o(this,void 0,void 0,function*(){const n=this.getCacheKey(e,s);!0===s.requestBasedCaching?yield this.requestCachingService.cacheRequest({request:new Request(n),response:t,storage:null!==(a=s.storageType)&&void 0!==a?a:"local",maxAge:s.validFor}):this.cachingService.cacheValue(n,JSON.stringify(i),s)})}clearCachedValue(e,t){return o(this,void 0,void 0,function*(){if(void 0===t)return;const{requestBasedCaching:i=!1}=t,s=this.getCacheKey(e,t);!0===i&&(yield this.requestCachingService.clearCachedRequest(new Request(s),t.storageType)),this.cachingService.clearCachedValue(s,t)})}getCachedValue(e,t){return o(this,void 0,void 0,function*(){if(void 0===t)return null;const{requestBasedCaching:i=!1}=t,s=this.getCacheKey(e,t);return!0===i?yield this.requestCachingService.getCachedJSON(new Request(s),t.storageType):this.cachingService.getCachedJSON(s,t)})}getCacheKey(e,t){var i;const s=null!==(i=null==t?void 0:t.cacheKeys)&&void 0!==i?i:[];return 0===s.length?e:(0,n.UD)(e,{klCacheKeys:s.join("_")})}}const v=new f;class y{constructor(e={}){this.abortController=new AbortController,this.abortOptions=null,this.latestOptions=null,this.apiService=v;const{apiService:t}=e;void 0!==t&&(this.apiService=t)}fetchJSON(e){return o(this,void 0,void 0,function*(){return yield this.makeAbortableRequest(e,this.apiService.fetchJSON.bind(this.apiService))})}fetchResponse(e){return o(this,void 0,void 0,function*(){return yield this.makeAbortableRequest(e,this.apiService.fetchResponse.bind(this.apiService))})}makeAbortableRequest(e,t){var i,s,a;return o(this,void 0,void 0,function*(){null!==this.latestOptions&&(this.abortOptions=e,this.abortController.abort(),this.abortController=new AbortController),this.latestOptions=e;try{const a=yield t(e.url,{cacheOptions:null===(i=e.options)||void 0===i?void 0:i.cacheOptions,throwError:!0,fetchOptions:Object.assign(Object.assign({},null===(s=e.options)||void 0===s?void 0:s.fetchOptions),{signal:this.abortController.signal})});return this.latestOptions=null,a}catch(t){if(h.error("AbortableRequestService.makeAbortableRequest: ",t),"AbortError"===t.name)return this.handleAbortError(this.fetchJSON.bind(this));if(!0===(null===(a=e.options)||void 0===a?void 0:a.throwError))throw t;return null}})}handleAbortError(e){return o(this,void 0,void 0,function*(){const t=this.latestOptions||this.abortOptions;return null===t?null:(this.abortOptions=null,this.latestOptions=null,e(t))})}}class w{constructor(){this.observerMap=new Map}observe(e,t){const i=this.getCallbacks(e);i.add(t),this.observerMap.set(e,i)}unobserve(e,t){const i=this.getCallbacks(e);i.delete(t),this.observerMap.set(e,i)}notifyObservers(e,t){this.getCallbacks(e).forEach(e=>e(t))}getCallbacks(e){return this.observerMap.get(e)||new Set}}const S=new w;class C{constructor(e,t){this.stateMap=new Map,this.observerService=new w,this.contextName=e,this.contextElement=t}get name(){return this.contextName}get element(){return this.contextElement}isMatchingContext(e,t){return this.contextName===e&&this.contextElement.contains(t)}setState(e,t){this.stateMap.get(e)!==t&&(this.stateMap.set(e,t),this.observerService.n
2otifyObservers(e))}setStates(e){const t=Object.keys(e).filter(t=>this.stateMap.get(t)!==e[t]);t.forEach(t=>{this.stateMap.set(t,e[t])}),t.forEach(e=>{this.observerService.notifyObservers(e)})}getState(e){return this.stateMap.get(e)}observeState(e,t){this.observerService.observe(e,t)}unobserveState(e,t){this.observerService.unobserve(e,t)}}const A=new class{constructor(){this.contextStateMap=new Map,this.contextInitObserver=new w}getMatchingContextState(e,t){const i=(this.contextStateMap.get(e)||[]).filter(i=>i.isMatchingContext(e,t));return 0===i.length?null:i[0]}getContextState(e,t){const i=this.getMatchingContextState(e,t);return i?Promise.resolve(i):new Promise(i=>{this.contextInitObserver.observe(e,()=>{const s=this.getMatchingContextState(e,t);s&&i(s)})})}createContextState(e,t){const i=new C(e,t),s=this.contextStateMap.get(e)||[];return s.push(i),this.contextStateMap.set(e,s),this.contextInitObserver.notifyObservers(e),i}};i.d(t,["AI",0,"kl-in-vp","ID",0,A,"Rn",0,"kl-mq-change","Wn",0,v,"Xh",0,"kl-out-vp","mB",0,S,"n$",0,u])},37407(e,t,i){"use strict";i.d(t,{G:()=>y});var s,a,n,r,o,l,c,h=i(43439),d=i.n(h),u=i(59649),p=i.n(u),g=(i(52301),i(54767)),b=i(13263),m=i(88045),f=i(69592),v=i(72420);let y=(s=(0,g.hq)(".vic-m-geo-search__map-view-toggle"),a=(0,g.hq)(".vic-m-geo-search-map-overlay"),n=(0,g.rF)("mapViewToggle","click"),c=class e extends g.uA{constructor(...e){super(...e),this._contextState=void 0,this.pagination=void 0,this.paginationLocked=!1,this._currentPageIdx=0,d()(this,"mapViewToggle",o,this),d()(this,"mapOverlay",l,this)}get searchUrl(){return this.getAttribute("search-url")||""}get defaultPageSize(){return 5}get currentPageIdx(){return this._currentPageIdx}set currentPageIdx(e){e!==this._currentPageIdx&&(this._currentPageIdx=e,this.loadPage())}get pageSize(){const e=this.getAttribute("page-size")??this.defaultPageSize.toString(),t=parseInt(e,10);return isNaN(t)?this.defaultPageSize:t}get initialQueryString(){return b.tJ.get("q")??""}get contextState(){return void 0===this._contextState&&(this._contextState=b.ID.createContextState(e.CONTEXT_STATE_NAME,this)),this._contextState}get queryString(){return this.contextState.getState("queryString")}get resultItems(){return this.contextState.getState("resultItems")??[]}get resultCount(){return this.contextState.getState("resultCount")??0}afterComponentRender(){this.init()}
2async init(){await this.initContextState(),await this.triggerInitialSearch()}async initContextState(){await Promise.resolve(),this.contextState.setState("searchUrl",this.searchUrl),this.contextState.setState("overlayOpen",!1);const e=this.initialQueryString;""!==e&&this.contextState.setState("queryString",e),this.contextState.observeState("queryString",()=>this.handleQueryStringChange()),this.contextState.observeState("resultItems",()=>this.renderResultItems()),this.contextState.observeState("resultCount",()=>this.updatePagination()),this.contextState.observeState("overlayOpen",()=>this.handleOverlayOpenStateChange())}async triggerInitialSearch(){throw await Promise.resolve(),new Error("VICGeoSearch.triggerInitialSearch not implemented.")}initPagination(){if(void 0!==this.pagination)return;const e=Math.ceil(this.resultCount/this.pageSize),t=document.createElement("vic-m-pagination");(0,m.iQ)(t,"vic-m-pagination","vic-m-geo-search__pagination"),t.setAttribute("page-count",e.toString()),this.pagination=t,(0,m.MR)(this.pagination,f.i$,this.handlePaginationChanged,this),this.resultCount<=this.pageSize&&(0,m.iQ)(this.pagination,v.F4),this.appendChild(t)}updatePagination(){if(this.paginationLocked=!0,void 0===this.pagination)return this.initPagination(),void(this.paginationLocked=!1);const e=Math.ceil(this.resultCount/this.pageSize);this.pagination?.resetActiveItem(),this.pagination?.setAttribute("page-count",e.toString()),(0,m.p1)(this.pagination,v.F4,this.resultCount<=this.pageSize),this.paginationLocked=!1}handlePaginationChanged(){if(this.paginationLocked)return;const e=this.pagination?.activeItem;void 0!==e&&(this.currentPageIdx=e,this.scrollToTop())}handleMapViewToggleClick(){this.mapOverlay?.open()}resetCurrentPageIdx(){this._currentPageIdx=0,this.pagination?.resetActiveItem()}handleQueryStringChange(){this.searchItems()}handleOverlayOpenStateChange(){!1===(this.contextState.getState("overlayOpen")??!1)&&this.searchItems()}scrollToTop(){window.scrollTo({top:this.offsetTop,behavior:"smooth"})}async searchItems(){throw await Promise.resolve(),new Error("VICGeoSearch.searchItems not implemented.")}async loadPage(){throw await Promise.resolve(),new Error("VICGeoSearch.loadPage not implemented.")}async renderResultItems(){throw await Promise.resolve(),new Error("VICGeoSearch.renderItems n
2ot implemented.")}},c.CONTEXT_STATE_NAME="VICGeoSearch",r=c,o=p()(r.prototype,"mapViewToggle",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=p()(r.prototype,"mapOverlay",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p()(r.prototype,"handleMapViewToggleClick",[n],Object.getOwnPropertyDescriptor(r.prototype,"handleMapViewToggleClick"),r.prototype),r)},56700(e,t,i){"use strict";var s=i(54714),a=i(38894),n=i(38171),r=i(337);const o=(e,t)=>`${e}-${t}`,l=(e,t)=>s.qy` 3 <div 4 class="vic-e-form-field__validation-box vic-e-form-field__validation-box--error" 5 id="${o(t,"error")}" 6 > 7 ${(0,r.s)({cssClasses:"vic-e-form-field__validation-icon",iconId:"vic-icon-close-circle"})} 8 <span class="vic-e-form-field__validation-message">${e}</span> 9 </div> 10 `,c=(e,t,i)=>void 0!==i?s.qy` 11 <span class="vic-e-form-field__description" id="${o(e,"description")}"> 12 ${(0,a._)(i)} 13 </span> 14 `:""===t?s.s6:s.qy` 15 <span class="vic-e-form-field__description" id="${o(e,"description")}"> 16 ${t} 17 </span> 18 `,h=(e,t,i)=>t?l(i,e):s.s6;i.d(t,["Gc",0,e=>s.qy` 19 <div class="vic-e-text-input__info-box"> 20 ${c(e.id,e.description,e.descriptionMarkup)} 21 ${h(e.id,e.showError,e.errorMessage)} 22 </div> 23 `,"Kw",0,(e,t)=>s.qy` 24 <span 25 class="vic-e-form-field__validation-box vic-e-form-field__validation-box--warning" 26 id="${o(t,"warning")}" 27 > 28 ${(0,r.s)({cssClasses:"vic-e-form-field__validation-icon",iconId:"vic-icon-warning-triangle"})} 29 <span class="vic-e-form-field__validation-message">${e}</span> 30 </span> 31 `,"Sz",0,l,"UF",0,o,"gt",0,e=>{const{id:t,showError:i,description:s,descriptionMarkup:a}=e;return!0===i?o(t,"error"):""!==s||void 0!==a?o(t,"description"):void 0},"ky",0,c,"p9",0,({for:e,label:t,top:i=!1,id:a})=>{if(""===t)return"";const r="vic-e-form-field__"+(i?"top-label":"label");return s.qy`<label class="${r}" for="${(0,n.J)(e)}" id="${(0,n.J)(a)}">${t}</label>`},"vG",0,h,"zw",0,()=>(0,r.s)({cssClasses:"vic-e-form-field__valid-icon",iconId:"vic-icon-check-filled"})])},43924(e,t,i){"use strict";i.d(t,{z:()=>h});var s=i(54767),a=i(13263),n=i(21698),r=i(88045),o=i(72420),l=i(69592);const c=["l","m","s","xs"];class h extends s.uA{constructor({ui:e={},events:t=[],initialStates:i={},reactions:s={}}={}){super({ui:{input:".vic-js-form-field__input :-one"},events:[{event:"focusin",handler:"handleFocusIn",target:"input"},{event:"focusout",handler:"handleFocusOut",target:"input"}],asyncRendering:!0,initialStates:{showError:!1,inValidationMode:!1},reactions:{showError:["onErrorChange"],inValidationMode:["onValidationModeChange"]}}),this.formFieldInitPromise=void 0,this.uuid=(0,n.A)(),this._hasExternalError=!1,this._descriptionMarkup=void 0,Object.assign(this.ui,e),Object.assign(this.initialStates,i),Object.assign(this.reactions,s),this.mergeEvents(t)}get DEFAULT_ERROR_MESSAGE(){return"Bitte füllen Sie dieses Feld aus."}get DEFAULT_FIELD_TYPE(){return"text"}get id(){return this.uuid}get name(){return this.getAttribute("name")||""}get type(){return this.getAttribute("type")||this.DEFAULT_FIELD_TYPE}get autocompleteType(){return this.getAttribute("autocomplete")||void 0}get label(){return this.getAttribute("label")||""}get placeholder(){return this.getAttribute("placeholder")||""}get errorMessage(){return this.getAttribute("error-message")||this.DEFAULT_ERROR_MESSAGE}get description(){return this.getAttribute("description")||""}get descriptionMarkup(){return this._descriptionMarkup}get isRequired(){const e="required";return this.hasAttribute(e)&&"false"!==this.getAttribute(e)}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}set isDisabled(e){!0===e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get isReadonly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get inlineValidationDisabled(){const e="inline-validation-disabled";return this.hasAttribute(e)&&"false"!==this.getAttribute(e)}get formFieldSize(){const e=this.getAttribute("field-size");return c.includes(e)?e:"l"}get hasTopLabel(){return"l"!==this.formFieldSize}get formGroup(){return(0,r.PA)(this,".vic-m-form-group")}get formGroupActive(){const e=this.formGroup;return null===e||!1===(0,r.nB)(e,o.F4)}get submitValueType(){return"string"}get submitValue(){if(void 0!==this.ui.input&&void 0!==this.ui.input.value&&""!==this.ui.input.value)return this.ui.input.value}get submitData(){return!1===this.formGroupActive||""===this.name||void 0===this.submitValue?null:{name:this.name,type:this.submitValueType,value:this.submitValue}}
31get submitString(){return a.bD.error("FormField","submitString() is not implemented"),""}get isEmpty(){return void 0===this.submitValue||""===this.submitValue}get hasExternalError(){return this._hasExternalError}set hasExternalError(e){this._hasExternalError!==e&&(this._hasExternalError=e,!0===e&&this.setState({showError:!0}))}get prefillDisabled(){return this.hasAttribute("prefill-disabled")&&"false"!==this.getAttribute("prefill-disabled")}get prefillName(){return this.getAttribute("prefill-name")}get prefillValue(){if(this.prefillDisabled)return null;const e=this.prefillName||this.name;return""===e?null:a.tJ.get(e)}static get observedAttributes(){return["disabled"]}attributeChangedCallback(e,t,i){this.handleAttributeChange(e,t,i)}async handleAttributeChange(e,t,i){t!==i&&this.state.initialized&&(await this.reRenderHook(),"disabled"===e&&(0,r.p1)(this,o.F4,this.isDisabled))}connectedCallback(){this.initDescriptionMarkup(),super.connectedCallback()}afterComponentRender(){this.formFieldInitPromise=this.initFormField()}async initFormField(){await this.prefillInput(),this.dispatchEvent(new CustomEvent(l.ME,{bubbles:!1}))}async waitForFormFieldInit(e){void 0===this.formFieldInitPromise&&await(0,r.lA)(this,l.ME,e),await this.formFieldInitPromise}initDescriptionMarkup(){if(void 0!==this._descriptionMarkup)return;const e=(0,r.I6)(this,".vic-e-form-field__description-markup");null!==e&&(this._descriptionMarkup=e.innerHTML.trim(),this.removeChild(e))}async prefillInput(){const e=this.prefillValue;null!==e&&(this.ui.input.value=e,this.setState({inValidationMode:!0}),await this.reRenderHook())}async reRenderHook(){await this.renderAsync()}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!this.hasExternalError&&this.ui.input?.checkValidity()}async validate(){const e=await this.isValid();this.setState({showError:!e,inValidationMode:!0}),(0,r.p1)(this,o.qO,e)}async onErrorChange({showError:e}){(0,r.p1)(this,o.ff,e),this.dispatchEvent(new CustomEvent(l.yj,{bubbles:!1})),await this.reRenderHook()}async onValidationModeChange({inValidationMode:e}){await Promise.resolve()}async handleFocusIn(){await Promise.resolve(),(0,r.iQ)(this,o.Hc)}async handleFocusOut(){await Promise.resolve(),(0,r.vy)(this,o.Hc)}async reset(){this.setState({showError:!1,inValidationMode:!1}),this.ui.input.value="",(0,r.vy)(this,o.qO),await this.prefillInput()}focus(){this.ui.input.focus()}async validateConditions(e){return await Promise.resolve(),e.some(e=>e===this.submitString)}}},25297(e,t,i){"use strict";i.d(t,{v:()=>y});var s=i(43439),a=i.n(s),n=i(59649),r=i.n(n),o=(i(52301),i(54767)),l=i(88045),c=i(72420);const h=new class{constructor(){this.curOpenContextMenu=null}get hasOpenContextMenu(){return null!==this.curOpenContextMenu}openContextMenu(e){null!==this.curOpenContextMenu&&this.curOpenContextMenu.closeFlyout(),this.curOpenContextMenu=e,this.curOpenContextMenu.openFlyout()}closeContextMenu(e){e.closeFlyout(),this.curOpenContextMenu===e&&(this.curOpenContextMenu=null)}};var d,u,p,g,b,m,f,v;let y=(d=(0,o.hq)(".vic-m-context-menu__toggle"),u=(0,o.hq)(".vic-m-context-menu__flyout"),p=(0,o.rF)("toggleBtn","click"),g=(0,o.rF)("window","click"),b=(0,o.rF)("flyout","click"),m=class extends o.uA{constructor(...e){super(...e),a()(this,"toggleBtn",f,this),a()(this,"flyout",v,this)}get isOpen(){return this.hasAttribute("open")&&"false"!==this.getAttribute("open")}set isOpen(e){e!==this.isOpen&&(!0===e?this.setAttribute("open",""):this.removeAttribute("open"))}get flyoutWidth(){(0,l.iQ)(this.flyout,c.kH);const e=this.flyout.offsetWidth;return(0,l.vy)(this.flyout,c.kH),e}get flyoutHeight(){(0,l.iQ)(this.flyout,c.kH);const e=this.flyout.offsetHeight;return(0,l.vy)(this.flyout,c.kH),e}get flyoutVerticalOffset(){const e=getComputedStyle(this.flyout).getPropertyValue("--vic-context-menu__flyout-vertical-offset");if(""===e)return 8;const t=e.replace("px","");return parseInt(t,10)}get flyoutHorizontalOffset(){const e=getComputedStyle(this.flyout).getPropertyValue("--vic-context-menu__flyout-horizontal-offset");if(""===e)return 8;const t=e.replace("px","");return parseInt(t,10)}handleToggleBtnClick(){this.isOpen?h.closeContextMenu(this):h.openContextMenu(this)}handleWindowClick(e){e.target!==this.toggleBtn&&h.closeContextMenu(this)}handleFlyoutClick(){h.closeContextMenu(this)}openFlyout(){!0!==this.isOpen&&(this.setAttribute("flyout-position",this.getFlyoutPosition()),this.shouldOpenTop()?this.setAttribute("open-top",""):this.removeAttribute("open-top"),this.isOpen=!0)}closeFlyout(){!1!==this.isOpen&&(this.removeAttribute("flyout-position"),this.removeAttribute("open-top"),this.isOpen=!1)}shouldOpenTop(){const{top:e,height:t}=this.toggleBtn.getBoundingClientRect(),i=window.innerHeight,s=this.flyoutVerticalOffset;return e+t+this.flyoutHeight+s>i}getFlyoutPosition(){const{left:e,width:t}=this.toggleBtn.getBoundingClientRect(),i=window.innerWidth,s=this.flyoutHorizontalOffset,a=this.flyoutWidth;return e+t>
31a-s+8?"left":i-e>a-s+8?"right":"left"}},f=r()(m.prototype,"toggleBtn",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=r()(m.prototype,"flyout",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r()(m.prototype,"handleToggleBtnClick",[p],Object.getOwnPropertyDescriptor(m.prototype,"handleToggleBtnClick"),m.prototype),r()(m.prototype,"handleWindowClick",[g],Object.getOwnPropertyDescriptor(m.prototype,"handleWindowClick"),m.prototype),r()(m.prototype,"handleFlyoutClick",[b],Object.getOwnPropertyDescriptor(m.prototype,"handleFlyoutClick"),m.prototype),m)},90259(e,t,i){"use strict";var s=i(54714),a=i(38171),n=i(36908);i.d(t,["q",0,e=>s.qy` 32 <button class="vic-e-a11y-closing-button${(0,n.k)(e.cssClasses)}" @click=${(0,a.J)(e.clickedCb)}> 33 ${e.label} 34 </button> 35 `])},92207(e,t,i){"use strict";var s=i(54714),a=i(38171),n=i(38894),r=i(36908),o=i(337);const l=e=>s.qy`${(e=>void 0===e.iconId||e.iconRight?s.s6:(0,o.s)({iconId:e.iconId,cssClasses:"vic-e-button__icon"}))(e)}${(e=>{if(e.iconOnly)return s.s6;const t=e.label||"",i=!0===e.renderLabelAsHTML?(0,n._)(t):t;return s.qy`<span class="vic-e-button__label">${i}</span>`})(e)}${(e=>void 0===e.iconId||!0!==e.iconRight?s.s6:(0,o.s)({iconId:e.iconId,cssClasse
35s:"vic-e-button__icon"}))(e)}`,c=e=>e.ariaLabel?e.ariaLabel:e.iconOnly?e.label:void 0;i.d(t,["v",0,e=>e.isRealButton??1?(e=>{const t=void 0!==e.isDisabled&&e.isDisabled;return s.qy` 36 <button 37 class="vic-e-button${(0,r.k)(e.cssClasses,e.iconOnly?"vic-e-button--icon-only":void 0)}" 38 type="${e.type?e.type:"button"}" 39 ?disabled="${t}" 40 title="${(0,a.J)(e.title)}" 41 aria-label="${(0,a.J)(c(e))}" 42 aria-controls="${(0,a.J)(e.ariaControls)}" 43 aria-describedby="${(0,a.J)(e.ariaDescribedBy)}" 44 aria-invalid="${(0,a.J)(e.ariaInvalid)}" 45 @click=${(0,a.J)(e.clickCB)} 46 @focusout=${(0,a.J)(e.focusoutCB)} 47 > 48 ${l(e)} 49 </button> 50 `})(e):(e=>{const t=void 0!==e.isDisabled&&e.isDisabled;return s.qy` 51 <a 52 class="vic-e-button${(0,r.k)(e.cssClasses,e.iconOnly?"vic-e-button--icon-only":void 0)}" 53 title="${(0,a.J)(e.title)}" 54 aria-label="${(0,a.J)(c(e))}" 55 href="${e.href||"#"}" 56 ?disabled="${t}" 57 tabindex=${t?"-1":"0"} 58 target=${(0,a.J)(e.target)} 59 > 60 ${l(e)} 61 </a> 62 `})(e)])},47951(e,t,i){"use strict";var s=i(54714),a=i(38171),n=i(337),r=i(36908);i.d(t,["M",0,e=>s.qy` 63 <button 64 class="vic-e-closing-button${(0,r.k)(e.cssClasses)}" 65 type="button" 66 aria-label="${(0,a.J)(e.label)}" 67 aria-controls="${(0,a.J)(e.controls)}" 68 @click=${(0,a.J)(e.clickedCB)} 69 > 70 ${(0,n.s)({cssClasses:"vic-e-closing-button__icon",iconId:"vic-icon-close"})} 71 </button> 72 `])},337(e,t,i){"use strict";var s=i(54714),a=i(38171),n=i(36908);i.d(t,["s",0,e=>s.qy` 73 <vic-e-icon 74 class="vic-e-icon${(0,n.k)(e.cssClasses)}" 75 icon-id="${(0,a.J)(e.iconId)}" 76 icon-src="${(0,a.J)(e.iconSrc)}" 77 aria-label="${(0,a.J)(e.ariaLabel)}" 78 aria-hidden="${(0,a.J)(void 0===e.ariaLabel?"true":void 0)}" 79 @click="${(0,a.J)(e.handleClick)}" 80 ></vic-e-icon> 81 `])},28367(e,t,i){"use strict";i.d(t,{gM:()=>o,m0:()=>l,ZK:()=>c});var s=i(54714),a=i(38171),n=i(337),r=i(36908);const o=e=>s.qy` 82 <style> 83 ${".vic-e-lazy-image__error-placeholder-box{background:radial-gradient(50% 50% at 50% 50%, #fff 42.19%, #f2f2f2 100%)}.vic-e-lazy-image__watermark{font-weight:var(--vic-typo__weight--bold, 600)}.vic-e-lazy-image__watermark{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--vic-typo__body);font-size:12px;line-height:18px}:host{display:block}.vic-e-lazy-image__image-box{position:relative;overflow:hidden;width:inherit;height:inherit;line-height:0}.vic-e-lazy-image__image-box[data-aspect-ratio]{position:var(--vic-image-box-position, absolute);top:0;left:0;width:100%;height:100%}.vic-e-lazy-image__placeholder{transform:scale(1.1);width:inherit;height:inherit;opacity:1;filter:blur(10px);transition:opacity .1s ease-in-out .1s}[data-image-loaded]>.vic-e-lazy-image__placeholder{position:absolute;top:0;left:0;opacity:0}
83[data-aspect-ratio]>.vic-e-lazy-image__placeholder{object-fit:var(--vic-image-object-fit, cover)}[data-aspect-ratio=contain]>.vic-e-lazy-image__placeholder{object-fit:var(--vic-image-object-fit, contain)}.vic-e-lazy-image__image{position:relative;transform-origin:var(--vic-image-transform-origin, 50% 50%);transform:scale(var(--vic-image-scale, 1));width:inherit;height:inherit;opacity:0;transition:opacity .1s ease-in-out}[data-image-loaded]>.vic-e-lazy-image__image{opacity:1}[data-aspect-ratio]>.vic-e-lazy-image__image{object-fit:var(--vic-image-object-fit, cover);object-position:var(--vic-image-object-position, 50% 50%)}[data-aspect-ratio=contain]>.vic-e-lazy-image__image{width:calc(100% - 2*var(--vic-image-padding, 0px));height:calc(100% - 2*var(--vic-image-padding, 0px));padding:var(--vic-image-padding, 0);object-fit:var(--vic-image-object-fit, contain);background:var(--vic-image-background, transparent)}.vic-e-lazy-image__toshiba-logo{--vic-image-toshiba-logo-offset: 24px;position:absolute;width:30%;max-width:260px;height:auto;color:#e61e1e}@container vic-lazy-image (min-width: 680px){.vic-e-lazy-image__toshiba-logo{--vic-image-toshiba-logo-offset: 40px}}.vic-e-lazy-image__toshiba-logo--white{color:#fff}.vic-e-lazy-image__toshiba-logo--black{color:#191e21}.vic-e-lazy-image__toshiba-logo--top-left{top:var(--vic-image-toshiba-logo-offset);left:var(--vic-image-toshiba-logo-offset)}.vic-e-lazy-image__toshiba-logo--top-right{top:var(--vic-image-toshiba-logo-offset);right:var(--vic-image-toshiba-logo-offset)}.vic-e-lazy-image__toshiba-logo--bottom-left{bottom:var(--vic-image-toshiba-logo-offset);left:var(--vic-image-toshiba-logo-offset)}.vic-e-lazy-image__toshiba-logo--bottom-right{right:var(--vic-image-toshiba-logo-offset);bottom:var(--vic-image-toshiba-logo-offset)}.vic-e-lazy-image__watermark{--vic-image-watermark-offset: 12px;position:absolute;display:block;box-sizing:border-box;max-width:calc(100% - 2*var(--vic-image-watermark-offset));color:#101314}.vic-e-lazy-image__watermark--white{color:#fff}.vic-e-lazy-image__watermark--brand{color:var(--vic-color__brand)}.vic-e-lazy-image__watermark--boxed{padding:4px 8px;border-radius:4px;background-color:hsla(0,0%,100%,.8)}.vic-e-lazy-image__watermark--boxed.vic-e-lazy-image__watermark--white{background-color:rgba(0,0,0,.4)}.vic-e-lazy-image__watermark--boxed.vic-e-lazy-image__watermark--brand{background-color:hsla(0,0%,100%,.9)}.vic-e-lazy-image__watermark--top-left{top:var(--vic-image-watermark-offset);left:var(--vic-image-watermark-offset)}.vic-e-lazy-image__watermark--top-right{top:var(--vic-image-watermark-offset);right:var(--vic-image-watermark-offset);text-align:right}.vic-e-lazy-image__watermark--bottom-left{bottom:var(--vic-image-watermark-offset);left:var(--vic-image-watermark-offset)}.vic-e-lazy-image__watermark--bottom-right{right:var(--vic-image-watermark-offset);bottom:var(--vic-image-watermark-offset);text-align:right}.vic-e-lazy-image__error-placeholder-box{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%}[data-image-loaded]>.vic-e-lazy-image__error-placeholder-box{opacity:0}.vic-e-lazy-image__error-placeholder-icon{width:25%;height:auto}"} 84 </style> 85 <div 86 class="vic-e-lazy-image__image-box" 87 data-aspect-ratio="${(0,a.J)(e.aspectRatio)}" 88 ?data-image-loaded="${e.component.imageLoaded}" 89 > 90 ${(e=>!0===e.component.noPlaceholder?s.s6:""===e.component.loadingPlaceholder||!0===e.component.loadingPlaceholderLoadingError?((e,t=!1)=>!1!==t||(e=>!(!1===e.component.hasError||!0===e.component.loadingPlaceholderLoaded))(e)?s.qy` 91 <div class="vic-e-lazy-image__error-placeholder-box"> 92 ${(0,n.s)({iconId:"vic-icon-placeholder",cssClasses:"vic-e-lazy-image__error-placeholder-icon"})} 93 </div> 94 `:"")(e,!0):s.qy` 95 <img 96 draggable="false" 97 class="vic-e-lazy-image__placeholder" 98 src="${e.component.loadingPlaceholder}" 99 alt="${e.alt??""}" 100 @load=${e.handlePlaceholderLoad} 101 @error=${e.handlePlaceholderError} 102 aria-hidden="true" 103 /> 104 `)(e)} ${(e=>s.qy` 105 <img 106 draggable="false" 107 class="vic-e-lazy-image__image" 108 src="${e.src}" 109 srcset="${(0,a.J)(e.srcset)}" 110 alt="${e.alt??""}" 111 sizes="${(0,a.J)(e.sizes)}" 112 /> 113 `)(e)} ${(e=>void 0===e.toshibaLogoPosition?s.s6:(0,n.s)({iconId:"tsb-icon-logo",cssClasse
113s:`vic-e-lazy-image__toshiba-logo vic-e-lazy-image__toshiba-logo--${e.toshibaLogoPosition} vic-e-lazy-image__toshiba-logo--${e.toshibaLogoColor}`}))(e)} ${(e=>void 0===e.watermarkInfo?s.s6:s.qy` 114 <span 115 class="vic-e-lazy-image__watermark vic-e-lazy-image__watermark--${e.watermarkInfo.position} vic-e-lazy-image__watermark--${e.watermarkInfo.color}${e.watermarkInfo.boxed?" vic-e-lazy-image__watermark--boxed":""}" 116 > 117 ${e.watermarkInfo.text} 118 </span> 119 `)(e)} 120 </div> 121 `,l=e=>s.qy` 122 <vic-e-lazy-image 123 class="vic-e-lazy-image${(0,r.k)(e.cssClasses)}" 124 src="${e.src}" 125 alt=${e.alt??""} 126 srcset=${(0,a.J)(e.srcset)} 127 sizes=${(0,a.J)(e.sizes)} 128 ?no-placeholder=${e.noPlaceholder??!1} 129 loading-placeholder=${(0,a.J)(e.loadingPlaceholder)} 130 aspect-ratio=${(0,a.J)(e.aspectRatio)} 131 style=${(0,a.J)(e.inlineStyles)} 132 > 133 </vic-e-lazy-image> 134 `,c=e=>s.qy` 135 <div 136 class="vic-e-lazy-image vic-e-lazy-image--placeholder${(0,r.k)(e.cssClasses)}" 137 aspect-ratio="${e.aspectRatio}" 138 > 139 <div class="vic-e-lazy-image__placeholder-content"> 140 ${(0,n.s)({cssClasses:"vic-e-lazy-image__placeholder-icon",iconId:"vic-icon-placeholder"})} 141 </div> 142 </div> 143 `},35283(e,t,i){"use strict";var s=i(54714),a=i(38171),n=i(337),r=i(36908);const o=e=>s.qy`<span class="vic-e-link__label">${e}</span>`,l=e=>void 0===e?s.s6:(0,n.s)({cssClasses:"vic-e-link__icon",iconId:e});i.d(t,["B",0,e=>s.qy` 144 <a 145 class="vic-e-link${(0,r.k)(e.cssClasses)}" 146 href="${e.href}" 147 ?disabled=${e.disabled||!1} 148 target=${(0,a.J)(e.target)} 149 rel=${(0,a.J)(e.rel)} 150 @click=${(0,a.J)(e.clickedCb)} 151 > 152 ${o(e.label)}${l(e.iconId)} 153 </a> 154 `,"n",0,e=>s.qy` 155 <button 156 class="vic-e-link${(0,r.k)(e.cssClasses)}" 157 ?disabled=${e.disabled||!1} 158 @click=${(0,a.J)(e.clickCB)} 159 @focusout=${(0,a.J)(e.focusoutCB)} 160 > 161 ${o(e.label)}${l(e.iconId)} 162 </button> 163 `])},68565(e,t,i){"use strict";var s=i(54714);i.d(t,["renderLoadingBounceElement",0,()=>s.qy` 164 <div class="vic-e-loading-bounce"> 165 <div class="vic-e-loading-bounce__loading-bounce"></div> 166 <div class="vic-e-loading-bounce__loading-bounce"></div> 167 </div> 168 `])},72133(e,t,i){"use strict";i.d(t,{progressRingTemplate:()=>n,S:()=>r});var s=i(54714),a=i(36908);const n=e=>{const t=2*Math.PI*21;return s.qy` 169 <style> 170 ${":host{position:relative}svg{position:relative;transform:rotate(-90deg)}circle{fill:none;stroke:var(--vic-color__highlight, #fc4257)}circle:first-of-type{stroke:#c9c7c6}"} 171 </style> 172 <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> 173 <circle cx="24" cy="24" r="21" stroke-width="6"></circle> 174 <circle 175 cx="24" 176 cy="24" 177 r="21" 178 stroke-width="6" 179 stroke-dasharray="${t} ${t}" 180 stroke-dashoffset="${t-e.progress/100*t}" 181 ></circle> 182 </svg> 183 `},r=e=>s.qy` 184 <vic-e-progress-ring 185 class="vic-e-progress-ring${(0,a.k)(e.cssClasses)}" 186 progress="${e.progress}" 187 ></vic-e-progress-ring> 188`},60687(e,t,i){"use strict";var s=i(54714),a=i(38171),n=i(56700),r=i(36908);i.d(t,["_",0,e=>s.qy` 189 <vic-e-text-input 190 class="vic-e-text-input vic-e-form-field${(0,r.k)(e.cssClasses)}" 191 type=${(0,a.J)(e.type)} 192 inputmode=${(0,a.J)(e.inputmode)} 193 name=${(0,a.J)(e.name)} 194 label=${(0,a.J)(e.label)} 195 autocomplete=${(0,a.J)(e.autocompleteType)} 196 pattern=${(0,a.J)(e.pattern)} 197 tabindex=${(0,a.J)(e.tabindex)} 198 minlength=${(0,a.J)(e.minlength)} 199 maxlength=${(0,a.J)(e.maxlength)} 200 description=${(0,a.J)(e.description)} 201 error-message=${(0,a.J)(e.errorMessage)} 202 ?required=${e.isRequired} 203 ?disabled=${e.isDisabled} 204 ?readonly=${e.isReadonly} 205 field-size=${e.fieldSize??"l"} 206 ?is-half=${e.isHalf} 207 ?inline-validation-disabled=${void 0!==e.inlineValidationDisabled&&e.inlineValidationDisabled} 208 step="${(0,a.J)(e.step)}" 209 > 210 </vic-e-text-input> 211`,"textInputTemplate",0,e=>s.qy` 212 ${e.hasTopLabel?(0,n.p9)({for:e.id,isRequired:e.isRequired,label:e.label,top:!0}):s.s6} 213 <div class="vic-e-form-field__box"> 214 ${e.hasTopLabel?s.s6:(0,n.p9)({for:e.id,isRequired:e.isRequired,label:e.label})} 215 ${(e=>s.qy` 216 <input 217 type="${e.type}" 218 inputmode=${(0,a.J)(e.inputmode)} 219 class="vic-e-form-field__input vic-js-form-field__input" 220 name="${e.name}" 221 aria-label="${(0,a.J)(e.label)}" 222 aria-describedby="${(0,a.J)((e=>!0===e.showWarning?(0,n.UF)(e.id,"warning"):(0,n.gt)(e))(e))}" 223 aria-invalid="${e.showError}" 224 id="${e.id}" 225 ?required=${e.isRequired} 226 ?disabled=${e.isDisabled} 227 ?readonly=${e.isReadonly} 228 tabindex=${(0,a.J)(e.isReadonly?"-1":e.curTabIndex)} 229 minlength=${e.minlength||"auto"} 230 maxlength=${e.maxlength||"auto"} 231 step=${(0,a.J)(e.step)} 232 autocomplete="${(0,a.J)(e.autocompleteType)}" 233 pattern="${(0,a.J)(e.valuePattern)}" 234 @keyup=${e.keyupCb} 235 /> 236 `)(e)} ${(0,n.zw)()} 237 </div> 238 ${(e=>s.qy` 239 <div class="vic-e-text-input__info-box"> 240 ${(0,n.ky)(e.id,e.description)} ${(e=>{if(e.showWarning)return s.s6;if(!1===e.showError)return s.s6;const t=e.formFieldValid?e.validationMessage:e.errorMessage;return(0,n.Sz)(t,e.id)})(e)} ${(e=>
240!1===e.showWarning?s.s6:(0,n.Kw)(e.validationMessage,e.id))(e)} 241 </div> 242 `)(e)} 243`])},95467(e,t,i){"use strict";var s=i(54714),a=i(72133),n=i(36908),r=i(60804);i.d(t,["A",0,e=>s.qy` 244 <vic-e-timer 245 class="vic-e-timer${(0,n.k)(e.cssClasses)}" 246 duration="${e.duration}" 247 label-template="${e.labelTemplate}" 248 ?auto-start=${e.autoStart??!1} 249 > 250 </vic-e-timer> 251`,"timerTemplate",0,e=>s.qy` 252 ${(0,a.S)({progress:e.progress,cssClasses:"vic-e-timer__progress-ring"})} 253 <span class="vic-e-timer__label"> 254 ${(0,r.F)(e.labelTemplate,{secondsLeft:e.secondsLeft.toString()})} 255 </span> 256`])},39739(e,t,i){"use strict";i.d(t,{X:()=>K});var s,a,n,r,o,l,c,h,d,u,p,g,b,m,f,v,y,w,S,C,A,E,I,k,_,O,x,T,F,P,D,M,R=i(43439),B=i.n(R),L=i(59649),V=i.n(L),N=(i(52301),i(54767)),z=i(88045),q=i(72420),U=i(8844),$=i(66961),j=i(66204),H=i(8543);let K=(s=(0,N.K3)(".vic-m-navigation__navigation-list, .vic-m-navigation__emotional-teaser"),a=(0,N.K3)(".vic-m-navigation__navigation-list > .vic-m-navigation__navigation-item"),n=(0,N.K3)(".vic-m-navigation__emotional-teasers--nested"),r=(0,N.hq)(".vic-m-navigation__close-btn"),o=(0,N.hq)(".vic-m-navigation__a11y-closing-btn"),l=(0,N.hq)(".vic-m-navigation__flyout"),c=(0,N.hq)(".vic-m-navigation__close-subnav-btn"),h=(0,N.K3)(".vic-m-navigation__highlight-cta--iframe-overlay-toggle"),d=(0,N.hq)(".vic-m-navigation__content > .vic-m-navigation__highlight-cta"),u=(0,N.hq)(".vic-m-navigation__content > .vic-m-navigation__emotional-teasers"),p=(0,N.K3)(".vic-m-navigation__navigation-item"),g=(0,N.K3)(".vic-m-navigation__sub-navigation"),b=(0,N.rF)("flyout","click"),m=(0,N.rF)("iframeOverlayToggle","click"),f=(0,N.rF)("a11yCloseBtn","click"),v=(0,N.rF)("closeBtn","click"),y=(0,N.rF)("iframeOverlayToggle","keydown"),w=(0,N.rF)("this","click"),S=(0,N.rF)("closeSubNavBtn","click"),C=class extends N.uA{constructor(...e){super(...e),this.navItemMap=new WeakMap,this.navLinkMap=new WeakMap,this.subNavToggleMap=new WeakMap,this._activeSubNavs=[],B()(this,"rootNavigations",A,this),B()(this,"rootNavItems",E,this),B()(this,"nestedEmotionalTeaserGroups",I,this),B()(this,"closeBtn",k,this),B()(this,"a11yCloseBtn",_,this),B()(this,"flyout",O,this),B()(this,"closeSubNavBtn",x,this),B()(this,"iframeOverlayToggle",T,this),B()(this,"rootHighlightCta",F,this),B()(this,"rootEmotionalTeaserGroup",P,this),B()(this,"navItems",D,this),B()(this,"subnavs",M,this)}get activeSubNavs(){return this._activeSubNavs}set activeSubNavs(e){this.activeSubNavs.forEach(e=>{const t=this.subNavToggleMap.get(e);(0,z.vy)(t||null,q.Hc)}),e.forEach(e=>{const t=this.subNavToggleMap.get(e);(0,z.iQ)(t||null,q.Hc)}),(0,z.vy)(this.activeSubNavs,q.Hc),(0,z.iQ)(e,q.Hc),this._activeSubNavs=e,this.handleActiveSubNavChange()}afterComponentRender(){this.initSubNavigations(),this.initTargetGroupObserver(),this.initEditMode()}initTargetGroupObserver(){j.A.observeGroupChange(()=>this.handleTargetGroupChange())}handleTargetGroupChange(){this.activeSubNavs=[]}initEditMode(){const e=window.vipAemModeService;void 0!==e&&!1!==e.runsOnAuthor&&e.runsInExperienceFragment&&e.observeAemModeChange(()=>{const t=e.currentAemMode===H.n.EDIT;(0,z.p1)(this,"vic-edit-navigation",t),t&&(this.activeSubNavs=[],this.open())})}initSubNavigations(){this.navItems.forEach(e=>{const t=(0,z.I6)(e,":scope > .vic-m-navigation__navigation-link"),i=(0,z.I6)(e,":scope > .vic-m-navigation__sub-navigation");this.initSubNav(t,i)})}initSubNav(e,t){if(null===t||null===e)return;this.navItemMap.set(e,t);const i=(0,z.JW)(t,":scope > .vic-m-navigation__sub-navigation-list > .vic-m-navigation__navigation-item");this.navLinkMap.set(t,i),this.subNavToggleMap.set(t,e),(0,z.MR)(e,"click",this.handleSubNavToggleClick,this)}open(){(0,z.iQ)(this,q.vP),$.A.trapFocusIn(this)}handleFlyoutClick(e){e.stopPropagation()}async close(){(0,z.vy)(this,q.vP),(0,z.vy)(this.nestedEmotionalTeaserGroups,q.G),await(0,z.fm)(300),this.activeSubNavs=[],$.A.unTrapFocusIn(this)}async handleIFrameOverlayToggleKeydown(e){"Enter"===e.key&&await this.close()}showSubnav(e){const t=this.getSubnavById(e);void 0!==t&&(this.activeSubNavs=[t])}handleOutsideClick(){this.close()}handleSubNavCloseBtnClick(){if("MQ4"===(0,z.g8)(U.A))this.activeSubNavs=[];else{const e=[...this.activeSubNavs];e.pop(),this.activeSubNavs=e}}handleSubNavToggleClick(e){e.preventDefault();const t=e.currentTarget,i=this.navItemMap.get(t);if(void 0===i)return;const s=[...this.activeSubNavs];2===s.length&&s.pop(),s.push(i),this.activeSubNavs=s}async handleActiveSubNavChange(){await Promise.resolve();const e=this.activeSubNavs.length;this.setAttribute("active-level",e.toString()),(0,z.p1)(this.closeSubNavBtn,q.f9,e>0),0===e?this.activateRootNavItems():(this.disableRootNavItems(),this.animateSubNav(e)),this.updateFirstLevelNavLinks(e)}activateRootNavItems(){(0,z.iQ)(this.rootNavigations,q.G),(0,z.vy)(this.rootNavItems,q.F4),(0,z.vy)(this.rootHighlightCta,q.F4),(0,z.vy)(this.rootEmotionalTeaserGroup,q.F4)}disableRootNavItems(){(0,z.iQ)(this.rootNavItems,q.F4),(0,z.iQ)(this.rootHighlightCta,q.F4),(0,z.iQ)(this.rootEmotionalTeaserGroup,q.F4),(0,z.vy)(this.rootNavigations,q.G)}updateFirstLevelNavLinks(e){"MQ4"!==(0,z.g8)(U.A)&&2===e?this.disableNavLinks(this.activeSubNavs[0]):this.enableNavLinks(this.activeSubNavs[0])}animateSubNav(e){(0,z.vy)(this.activeSubNavs,q.G),(0,z.iQ)(this.activeSubNavs[e-1],q.G)}disableNavLinks(e){const t=this.navLinkMap.get(e);void 0!==t&&(0,z.iQ)(t,q.RG)}enableNavLinks(e){const t=this.navLinkMap.get(e);void 0!==t&&(0,z.vy)(t,q.RG)}getSubnavById(e){return this.subnavs.find(t=>(t.dataset.id||"")===e)}hasSubnavWithId(e){return void 0!==this.getSubnavById(e)}},A=V()(C.prototype,"rootNavigations",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=V()(C.prototype,"rootNavItems",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=V()(C.prototype,"nestedEmotionalTeaserGroups",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=V()(C.prototype,"closeBtn",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=V()(C.prototype,"a11yCloseBtn",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=V()(C.prototype,"flyout",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=V()(C.prototype,"closeSubNavBtn",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=V()(C.prototype,"iframeOverlayToggle",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=V()(C.prototype,"rootHighlightCta",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=V()(C.prototype,"rootEmotionalTeaserGroup",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=V()(C.prototype,"navItems",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=V()(C.prototype,"subnavs",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V()(C.prototype,"handleFlyoutClick",[b],Object.getOwnPropertyDescriptor(C.prototype,"handleFlyoutClick"),C.prototype),V()(C.prototype,"close",[m,f,v],Object.getOwnPropertyDescriptor(C.prototype,"close"),C.prototype),V()(C.prototype,"handleIFrameOverlayToggleKeydown",[y],Object.getOwnPropertyDescriptor(C.prototype,"handleIFrameOverlayToggleKeydown"),C.prototype),V()(C.prototype,"handleOutsideClick",[w],Object.getOwnPropertyDescriptor(C.prototype,"handleOutsideClick"),C.prototype),V()(C.prototype,"handleSubNavCloseBtnClick",[S],Object.getOwnPropertyDescriptor(C.prototype,"handleSubNavCloseBtnClick"),C.prototype),C);customElements.define("vic-m-navigation",K)},73971(e,t,i){"use strict";i.d(t,{T:()=>c});
256var s=i(54767),a=i(88045),n=i(13263),r=i(54714),o=i(70019),l=i(72420);class c extends s.uA{constructor(...e){super(...e),this._contextState=void 0,this.activeCategoryKey=null}get contextState(){return void 0===this._contextState&&(this._contextState=n.ID.getContextState(o.I.CONTEXT_STATE_NAME,this)),this._contextState}async getCurrentResult(){return(await this.contextState).getState("curResult")}async getSearchType(){return(await this.contextState).getState("searchType")??"ai"}async getCurrentLoadingState(){return(await this.contextState).getState("isLoading")??!1}async updateActiveCategory(e){this.activeCategoryKey=e,(await this.contextState).setState("activeCategoryKey",e),await this.renderCurrentCategories()}afterComponentRender(){this.init()}async init(){await this.renderPlaceholder();const e=await this.contextState;e.observeState("curResult",()=>this.handleResultChange()),e.observeState("activeCategoryKey",()=>this.handleActiveCategoryChange()),e.observeState("searchType",()=>this.handleSearchTypeChange()),e.observeState("isLoading",()=>this.handleLoadingStateChange()),await this.renderCurrentCategories()}async renderPlaceholder(){const{smartSearchCategoryFilterBarPlaceholderTemplate:e}=await i.e(6015).then(i.bind(i,6015));(0,r.XX)(e(),this),(0,a.vy)(this,l.RG)}async renderCategories(e,t){const s=e.map(e=>({label:e.label,categoryKey:e.categoryClusterKey,count:e.items.length})),{smartSearchCategoryFilterBarTemplate:a}=await i.e(6015).then(i.bind(i,6015));(0,r.XX)(await a({categories:s,resultsCount:t,activeCategoryKey:this.activeCategoryKey,onCategoryClick:e=>this.handleCategoryClick(e)}),this)}handleCategoryClick(e){e!==this.activeCategoryKey&&(e===c.ALL_CATEGORY_KEY?this.updateActiveCategory(null):this.updateActiveCategory(e))}handleResultChange(){this.renderCurrentCategories()}async handleLoadingStateChange(){await this.getCurrentLoadingState()?await this.renderPlaceholder():await this.renderCurrentCategories()}async handleActiveCategoryChange(){const e=(await this.contextState).getState("activeCategoryKey")??null;e!==this.activeCategoryKey&&(this.activeCategoryKey=e,await this.renderCurrentCategories())}
256async renderCurrentCategories(){const e=await this.getSearchType(),t=await this.getCurrentResult();void 0!==t&&("ai"===e&&null!==t?((0,a.vy)(this,l.RG),await this.renderCategories(t.categories,t.resultCount)):(0,a.iQ)(this,l.RG))}async handleSearchTypeChange(){await this.renderCurrentCategories()}}c.ALL_CATEGORY_KEY="vic-all-categories",customElements.define("vic-m-smart-search-category-filter-bar",c)},70019(e,t,i){"use strict";i.d(t,{I:()=>I});var s,a,n,r,o,l,c,h,d,u,p=i(43439),g=i.n(p),b=i(59649),m=i.n(b),f=(i(52301),i(54767)),v=i(88045),y=i(54714),w=i(13263),S=i(72420),C=i(69592),A=i(22030),E=i(98645);let I=(s=(0,f.hq)(".vic-m-smart-search__input"),a=(0,f.hq)(".vic-m-smart-search__category-filter-bar"),n=(0,f.hq)(".vic-m-smart-search__summary"),r=(0,f.rF)("input",C._I),o=(0,f.rF)("input",C.pg),u=class e extends f.uA{constructor(){super({asyncRendering:!0}),this._contextState=void 0,g()(this,"input",c,this),g()(this,"filterBar",h,this),g()(this,"summary",d,this)}get initialSearchTerm(){return this.getAttribute("initial-search-term")||""}get isLoading(){return(0,v.nB)(this,S.F5)}set isLoading(e){this.isLoading!==e&&(this.contextState.setState("isLoading",e),(0,v.p1)(this,S.F5,e))}get contextState(){return void 0===this._contextState&&(this._contextState=w.ID.createContextState(e.CONTEXT_STATE_NAME,this)),this._contextState}get curSearchTerm(){return this.input?.curSearchTerm??""}get isSparePartSearch(){return new RegExp("^[0-9]{7}$").test(this.curSearchTerm)}get isSerialNumberSearch(){return new RegExp("^[0-9]{16}$").test(this.curSearchTerm)}get curSmartSearchType(){return this.isSparePartSearch?"sparePart":this.isSerialNumberSearch?"serialNumber":"ai"}async renderAsync(){const{smartSearchTemplate:e}=await i.e(55371).then(i.bind(i,55371));(0,y.XX)(await e(),this)}afterComponentRender(){this.init()}
256async init(){""!==this.initialSearchTerm&&(await(0,v.db)(this.input),this.input.curSearchTerm=this.initialSearchTerm),await this.fetchResults(),this.contextState.observeState("activeCategoryKey",()=>this.handleActiveCategoryChange()),this.handleActiveCategoryChange()}async fetchResults(){if(""===this.curSearchTerm)return;if((0,v.vy)(this,S.ff,"vic-m-smart-search--has-custom-result"),this.contextState.setState("searchType",this.curSmartSearchType),"ai"!==this.curSmartSearchType)return void this.handleCustomResult();this.isLoading=!0;const e=await A.A.getResultsFor({question:this.curSearchTerm});if("ai"===this.curSmartSearchType){if(null===e)return(0,v.iQ)(this,S.ff),void(this.isLoading=!1);this.contextState.setStates({curResult:e,expandedCategories:[],activeCategoryKey:null}),this.isLoading=!1,(0,v.iQ)(this,S.S2)}}handleCustomResult(){this.contextState.setStates({curResult:null,curSearchTerm:this.curSearchTerm,expandedCategories:[],activeCategoryKey:null}),(0,v.iQ)(this.filterBar,S.RG),(0,v.iQ)(this,"vic-m-smart-search--has-custom-result"),E.A.sendEvent("internal_search_result.display",{ise_keyword:`smart-search : ${this.curSearchTerm}`,ise_page:1}),this.isLoading=!1,(0,v.iQ)(this,S.S2)}resetSearch(){this.contextState.setStates({curResult:null,activeCategoryKey:null,curSearchTerm:"",expandedCategories:[]}),(0,v.vy)(this,S.S2),this.dispatchEvent(new CustomEvent(C.pg,{bubbles:!1}))}handleSearchSubmit(){this.fetchResults()}handleSearchChange(){this.resetSearch()}handleActiveCategoryChange(){const e=this.contextState.getState("activeCategoryKey");(0,v.p1)(this.summary,S.F4,null!==e)}},u.CONTEXT_STATE_NAME="smart-search-context-state",l=u,c=m()(l.prototype,"input",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=m()(l.prototype,"filterBar",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m()(l.prototype,"summary",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m()(l.prototype,"handleSearchSubmit",[r],Object.getOwnPropertyDescriptor(l.prototype,"handleSearchSubmit"),l.prototype),m()(l.prototype,"handleSearchChange",[o],Object.getOwnPropertyDescriptor(l.prototype,"handleSearchChange"),l.prototype),l);customElements.define("vic-m-smart-search",I)},8844(e,t,i){"use strict";const s=[{name:"MQ4",query:"(min-width: 1332px)",min:1332,max:Number.MAX_SAFE_INTEGER||1e4,colCount:12},{name:"MQ3",query:"(min-width: 992px)",min:992,max:1331,colCount:12},{name:"MQ2",query:"(min-width: 768px)",min:768,max:991,colCount:612},{name:"MQ1",query:"(min-width: 0px)",min:0,max:767,colCount:12}];i.d(t,["A",0,s])},72420(e,t,i){"use strict";i.d(t,["$2",0,"vic-state-locked","Ag",0,"vic-state-sticky","BL",0,"vic-state-finished","DM",0,"vic-state-hidden-header","DQ",0,"vic-state-has-overflow","Di",0,"vic-h-keyboard-focus","EX",0,"vic-customer-mode-b2b","F4",0,"vic-state-disabled","F5",0,"vic-state-loading","G",0,"vic-state-animate","Hc",0,"vic-state-active","Iy",0,"vic-state-filtered","J1",0,"vic-state-footer-visible","L_",0,"vic-state-focus","Nz",0,"vic-state-warning","PX",0,"vic-state-down","RG",0,"vic-state-hidden","S2",0,"vic-state-loaded","Tr",0,"vic-state-invp","UP",0,"vic-state-up","VR",0,"vic-state-animating","Wb",0,"vic-state-can-scroll-right","XJ",0,"vic-state-even","Ye",0,"vic-state-can-submit","ZB",0,"vic-state-no-animation","_M",0,"vic-state-inactive","dO",0,"vic-state-valid","f9",0,"vic-state-visible","ff",0,"vic-state-error","gN",0,"vic-state-minimal","is",0,"vic-state-initializing","kH",0,"vic-state-invisible","m8",0,"vic-state-dragging","mO",0,"vic-a-appear","nI",0,"vic-a-reversed","q6",0,"vic-state-selected","qO",0,"vic-state-success","qc",0,"vic-state-closing","tg",0,"vic-state-initialized","u$",0,"vic-a-disappear","vP",0,"vic-state-open","xj",0,"vic-customer-mode-b2c","zh",0,"vic-state-can-scroll-left"])},21016(e,t,i){"use strict";i.d(t,["Gf",0,864e5,"W_",0,36e5])},69592(e,t,i){"use strict";i.d(t,["Bg",0,"kl-out-vp","Co",0,"vic-flyout-open","GR",0,"vic-questionnaire-step-submit","Jv",0,"vic-form-step--valid","KL",0,"kl-in-vp","KR",0,"vic-funding-search-details-active","ME",0,"vic-generic-init","Q4",0,"vic-generic-validation-error","QR",0,"vic-generic-change","RQ",0,"vic-form-field-checked","Re",0,"vic-questionnaire-next-step","Rn",0,"kl-mq-change","Sf",0,"vic-generic-finished","TZ",0,"vic-generic-success","UJ",0,"vic-tab-changed","WJ",0,"vup-image-loaded","X1",0,"vic-questionnaire-step-available-change","_I",0,"vic-generic-submit","aA",0,"vic-form-field-changed","aU",0,"vic-video-loaded","b7",0,"vic-state-changed","d4",0,"vic-funding-search-overview-active","eS",0,"vic-search-input-submit","fS",0,"vic-active-marker-changed","fd",0,"vic-header-height-changed","fr",0,"vic-form-field-checked","i$",0,"vic-pagination-changed","kx",0,"vic-filter-changed","lA",0,"vic-image-source-changed","lC",0,"vic-generic-loading-change","oV",0,"vic-generic-error","pg",0,"vic-generic-reset","q$",0,"vic-category-changed","qu",0,"vic-form-step--back","s5",0,"vic-component-reset","tL",0,"vic-gallery-index-change","tZ",0,"vic-partner-login-overlay-loading","uy",0,"vic-map-loaded","wO",0,"vic-questionnaire-step-change","yc",0,"vic-generic-closed","yj",0,"vic-generic-validation-change"])},3312(e,t,i){"use strict";i.d(t,{h:()=>a});var s=i(13263);class a{constructor(e){this.initPromise=void 0,this.i18nMap=new Map,this.initPromise=this.init(e)}async init(e){try{const t=await e();if(void 0===t)throw new Error("i18n config not found");
256Object.keys(t).forEach(e=>{this.i18nMap.set(e,t[e])})}catch(e){this.i18nMap=new Map,s.bD.error("I18nHandler: ",e)}}async getValue(e){return await this.initPromise,this.i18nMap.get(e)}async getValueOrFallback(e,t){return await this.getValue(e)??t??e}async getValues(e){return await Promise.all(e.map(e=>this.getValue(e)))}async getValuesOrFallback(e,t){return await Promise.all(e.map(e=>this.getValueOrFallback(e,t)))}async addLocalOverride(e,t){""!==t&&(await this.initPromise,this.i18nMap.set(e,t))}async addLocalOverrides(e){await Promise.all(Object.keys(e).map(t=>this.addLocalOverride(t,e[t])))}}},56293(e,t,i){"use strict";i.d(t,["h",0,(e,t=100)=>{let i;return new Promise(s=>{e.addEventListener("scroll",()=>{void 0!==i&&(clearTimeout(i),i=setTimeout(()=>s(!0),t))}),i=setTimeout(()=>s(!0),t)})}])},38212(e,t,i){"use strict";i.d(t,["G",0,(e,t)=>void 0===t||t.split(",").some(t=>{const i=t.trim();return i.startsWith(".")?e.fileName.endsWith(i):i.endsWith("/*")?e.fileType.startsWith(i.substring(0,i.length-1)):e.fileType===i})])},36908(e,t,i){"use strict";i.d(t,["k",0,(...e)=>{const t=e.filter(Boolean);return 0===t.length?"":` ${t.join(" ")}`}])},31123(e,t,i){"use strict";var s=i(54714);i.d(t,["X",0,(e,t,i)=>{const{litRenderOptions:a,clearSSRContent:n=!1}=i||{};!0===n&&!0!==t._vicContentCleared&&(t.replaceChildren(),t._vicContentCleared=!0),(0,s.XX)(e,t,a)}])},60804(e,t,i){"use strict";i.d(t,["F",0,(e,t)=>(Object.keys(t).forEach(i=>{e=e.split(`%${i}%`).join(t[i])}),e)])},93252(e,t,i){"use strict";i.d(t,["v",0,e=>{if(null!=e&&""!==e)return e}])},8543(e,t,i){"use strict";i.d(t,{n:()=>s});let s=function(e){return e[e.EDIT=0]="EDIT",e[e.PREVIEW=1]="PREVIEW",e[e.PUBLISH=2]="PUBLISH",e}({})},98477(e,t,i){"use strict";var s=i(13263);const a=new class{constructor(){window.Granite?.author?.MessageChannel&&this.subscribeToMessageChannel()}subscribeToMessageChannel(){new window.Granite.author.MessageChannel("cqauthor",window).subscribeRequestMessage("cmp.panelcontainer",e=>this.handleMessage(e))}handleMessage(e){void 0!==e.data&&s.mB.notifyObservers(this.getObserverKey(e.data.type),e.data)}observeMessages(e,t){s.mB.observe(this.getObserverKey(e),t)}unobserveMessages(e,t){s.mB.unobserve(this.getObserverKey(e),t)}getObserverKey(e){return`vic-panelcontainer-${e}`}};i.d(t,["A",0,a])},87231(e,t,i){"use strict";i.d(t,{A:()=>n});var s=i(13263);const a=new s.R$({storageKeyPrefix:"vic-caching-service"}),n=new s.KU({cachingService:a})},5610(e,t,i){"use strict";i.d(t,{d:()=>n});var s=i(13263),a=i(87231);class n extends s.dI{constructor(...e){super(...e),this.apiService=a.A}}},87819(e,t,i){"use strict";var s=i(88045),a=i(13263),n=i(21016),r=i(87231);class o{constructor(){this.configMap=new Map,this._loaded=!1,this.configElement=void 0,this.configElement=(0,s.I6)(document.body,"#vic-app-config")||void 0,this.initConfigurationMap()}async initConfigurationMap(){const e=this.configElement?.dataset||{};Object.keys(e).forEach(t=>{this.configMap.set(t,e[t])});try{const e=await this.fetchConfiguration();if(null===e)throw new Error("config not found");Object.keys(e).forEach(t=>{this.configMap.set(t,e[t])})}catch(e){a.bD.error("ConfigurationService: ",e)}finally{this.loaded=!0}}get observerKey(){return o.OBSERVER_KEY}get servletUrl(){return this.configElement?.dataset.configUrl||""}get loaded(){return this._loaded}set loaded(e){this._loaded!==e&&(this._loaded=e,!0===e&&a.mB.notifyObservers(o.OBSERVER_KEY))}
256get isToshibaPage(){return(0,s.nB)(document.body,"vic-m-app--toshiba")}get isCarrierPage(){return(0,s.nB)(document.body,"vic-m-app--carrier")}getConfigItemSync(e){return this.configMap.get(e)}async getConfigItem(e){return await this.waitForInit(),this.configMap.get(e)}waitForInit(){return new Promise(e=>{this.loaded?e(!0):a.mB.observe(o.OBSERVER_KEY,()=>e(!0))})}async fetchConfiguration(){return""===this.servletUrl?null:await r.A.fetchJSON(this.servletUrl,{cacheOptions:{validFor:n.W_}})}}o.OBSERVER_KEY="vic-config-service";const l=new o;i.d(t,["A",0,l])},87904(e,t,i){"use strict";i.d(t,{A:()=>o});var s=i(13263),a=i(87819);class n{constructor(){this.initPromise=void 0}get consentAPI(){return window.UC_UI}get isInitialized(){return void 0!==this.consentAPI&&this.consentAPI.isInitialized()}init(){return void 0===this.initPromise&&(this.initPromise=this.waitForInitialization()),this.initPromise}async waitForInitialization(){if(!this.isInitialized)return new Promise(e=>{window.addEventListener(n.INIT_EVENT_NAME,()=>e(),{once:!0})})}async hasConsent(e){await this.waitForInitialization();const t=this.consentAPI.getServicesBaseInfo().find(t=>t.id===e);return void 0!==t&&!0===t.consent.status}async giveConsent(e){await this.waitForInitialization(),await this.consentAPI.acceptService(e)}async revokeConsent(e){await this.waitForInitialization(),await this.consentAPI.rejectService(e)}}n.INIT_EVENT_NAME="UC_UI_INITIALIZED";class r{constructor(){this.latestServiceConsentState=void 0,this.initPromise=void 0,this.handleConsentChangeEvent=async()=>{const e=await this.consentAPI.getConsentDetails();if(Object.keys(e.services).some(t=>this.serviceConsentWasRevoked(t,e.services)))return s.bD.info("Consent revoked, reloading the page."),void await(window.location.reload(),new Promise(()=>{}));this.updateLatestServiceConsentState(e.services)}}get consentAPI(){return window.__ucCmp}async isInitialized(){return void 0!==this.consentAPI&&await this.consentAPI.isInitialized()}init(){return void 0===this.initPromise&&(this.initPromise=this.runInit()),this.initPromise}async runInit(){await this.waitForInitialization();const e=await this.consentAPI.getConsentDetails();this.updateLatestServiceConsentState(e.services),window.addEventListener(r.CONSENT_CHANGE_EVENT_NAME,this.handleConsentChangeEvent)}async waitForInitialization(){if(!await this.isInitialized())return new Promise(e=>{window.addEventListener(r.INIT_EVENT_NAME,()=>e(),{once:!0})})}async hasConsent(e){await this.waitForInitialization();const t=(await this.consentAPI.getConsentDetails()).services[e];return void 0!==t&&!0===t.consent?.given}async giveConsent(e){try{await this.waitForInitialization(),await this.consentAPI.updateServicesConsents([{id:e,consent:!0}]),await this.consentAPI.saveConsents()}catch(t){s.bD.error("Error giving consent for service:",e,t)}}async revokeConsent(e){try{await this.waitForInitialization(),await this.consentAPI.updateServicesConsents([{id:e,consent:!1}]),await this.consentAPI.saveConsents()}catch(t){s.bD.error("Error revoking consent for service:",e,t)}}serviceConsentWasRevoked(e,t){const i=this.latestServiceConsentState?.get(e),s=!0===t[e]?.consent?.given;return!0===i&&!1===s}updateLatestServiceConsentState(e){const t=new Map;Object.entries(e).forEach(([e,i])=>{t.set(e,!0===i.consent?.given)}),this.latestServiceConsentState=t}}r.INIT_EVENT_NAME="UC_UI_INITIALIZED",r.CONSENT_CHANGE_EVENT_NAME="UC_CONSENT";const o=new class{constructor(){this.categoryObserverService=void 0,this._consentManagementApi=void 0,this._apiInitPromise=void 0,this.categoryObserverService=new s.Oq}get apiInitPromise(){return void 0===this._apiInitPromise&&(this._apiInitPromise=this.initConsentManagementApi()),this._apiInitPromise}async init(){if(!1===await this.consentManagementActive())return;const e=await this.getConsentManagementApi();await e.init()}async waitForInitialization(){await this.apiInitPromise}async initConsentManagementApi(){const e=await this.getConsentManagementApi();await e.waitForInitialization()}async hasConsent(e){if(!1===await this.consentManagementActive())return!0;
256const t=await this.getServiceId(e);if(""===t)return!1;const i=await this.getConsentManagementApi();return await i.hasConsent(t)}async acceptCategory(e){this.categoryObserverService.notifyObservers(`${e}-accepted`);const t=await this.getServiceId(e);if(""===t)return;const i=await this.getConsentManagementApi();await i.giveConsent(t)}async rejectCategory(e){this.categoryObserverService.notifyObservers(`${e}-rejected`);const t=await this.getServiceId(e);if(""===t)return;const i=await this.getConsentManagementApi();await i.revokeConsent(t)}async getConsentManagementApi(){if(void 0!==this._consentManagementApi)return this._consentManagementApi;const e=await a.A.getConfigItem("consentManagementApi");return this._consentManagementApi="usercentrics-v3"===e?new r:new n,this._consentManagementApi}async getConsentDataItem(e){return(await a.A.getConfigItem("consentData")||{})[e]}async getConsentText(e){const t=await this.getConsentDataItem(e);return t?t.consentText:""}async getServiceId(e){const t=await this.getConsentDataItem(e);return t?t.consentId:""}async consentManagementActive(){return!1!==await a.A.getConfigItem("consentManagementActive")}observeCategoryAccepted(e,t){this.categoryObserverService.observe(`${e}-accepted`,t)}observeCategoryRejected(e,t){this.categoryObserverService.observe(`${e}-rejected`,t)}}},25917(e,t,i){"use strict";var s=i(88045),a=i(69592);const n=new class{async showConsentOverlay(e,t){const i=document.createElement("vic-m-consent-overlay");(0,s.iQ)(i,"vic-m-consent-overlay"),i.setAttribute("consent-category",e),document.body.appendChild(i),await(0,s.db)(i),i.open(),void 0!==t&&i.addEventListener(a.yc,t,{once:!0})}};i.d(t,["A",0,n])},80466(e,t,i){"use strict";var s=i(88045),a=i(13263),n=i(87904);const r=new class{constructor(){this.PIPELINE_KEY="vic-dl-pipeline"}get pushPipeline(){const e=a.n$.getItem(this.PIPELINE_KEY,{storageType:"session"});if(null===e)return[];try{return JSON.parse(e)}catch(e){return a.bD.error("DataLayerService: Cannot parse stored pipeline",e),[]}}push(e){const t=window.dataLayer;if(void 0===t)return a.bD.warn("DataLayerService: Cannot push to DataLayer, DataLayer is not defined"),void this.pushLater(e,3);a.bD.log("DataLayerService push:",e),t.push(e)}async pushToPipeline(e){if(!1===await n.A.hasConsent("googleAnalytics"))return;const t=this.pushPipeline;t.push(e);try{a.n$.addItem(this.PIPELINE_KEY,JSON.stringify(t),{storageType:"session"})}catch(e){a.bD.error("DataLayerService: Cannot store pipeline",e)}}flushPipeline(){this.pushPipeline.forEach(e=>this.push(e)),a.n$.removeItem(this.PIPELINE_KEY,{storageType:"session"})}async pushLater(e,t){if(!(t<=0)){if(a.bD.warn(`DataLayerService: Try pushLater to DataLayer, ${t} attempts left`),await(0,s.fm)(1500),void 0!==window.dataLayer)return a.bD.log("DataLayerService push:",e),void window.dataLayer.push(e);a.bD.warn("DataLayerService: Cannot push to DataLayer, DataLayer is not defined"),await this.pushLater(e,t-1)}}clearEcommerce(){this.push({ecommerce:null})}};i.d(t,["A",0,r])},66961(e,t,i){"use strict";var s=i(88045),a=i(13263);class n{constructor(){this._focusTrapped=!1,this.tabableElementsMap=new WeakMap,this.trapTargetList=[],this.eventBindingMap={},this.eventIdMap=new WeakMap}get focusTrapped(){return this._focusTrapped}set focusTrapped(e){this._focusTrapped!==e&&(!0===e?(0,s.MR)(document.body,["keydown"],this.handleKeyDown,this):(0,s.Nn)(document.body,["keydown"],this.handleKeyDown,this),this._focusTrapped=e)}get currentTrapTarget(){return 0===this.trapTargetList.length?null:this.trapTargetList[this.trapTargetList.length-1]}get firstTabableElement(){return null===this.currentTrapTarget?null:this.getFirstTabableElementOf(this.currentTrapTarget)}get lastTabableElement(){return null===this.currentTrapTarget?null:this.getLastTabableElementOf(this.currentTrapTarget)}get firstTabableElementActive(){return null!==this.currentTrapTarget&&this.isFirstTabableElementActive(this.currentTrapTarget)}get lastTabableElementActive(){return null!==this.currentTrapTarget&&this.isLastTabableElementActive(this.currentTrapTarget)}trapFocusIn(e,t){const i=this.tabableElementsIn(e,t);0!==i.length&&(this.trapTargetList.push(e),this.tabableElementsMap.set(e,{activeElementBeforeTrapped:document.activeElement,tabableElements:i}),this.focusTrapped=!0,this.firstTabableElement?.focus())}unTrapFocusIn(e){this.trapTargetList=this.trapTargetList.filter(t=>t!==e);const t=this.tabableElementsMap.get(e)?.activeElementBeforeTrapped||null;try{null!==t&&t.focus()}catch(e){a.bD.error("FocusService: ",e)}this.tabableElementsMap.delete(e),0===this.trapTargetList.length&&(this.focusTrapped=!1)}handleKeyDown(e){"Tab"===e.key&&(e.shiftKey&&this.firstTabableElementActive?(this.lastTabableElement?.focus(),e.preventDefault()):!1===e.shiftKey&&this.lastTabableElementActive&&(this.firstTabableElement?.focus(),e.preventDefault()))}tabableElementsIn(e,t={}){const i=t.ignoreElements||[];return(0,s.JW)(e,n.TABABLE_ELEMENTS_SELECTOR).filter(e=>!1===i.includes(e)).filter(e=>{const t=window.getComputedStyle(e);
256return"none"!==t.display&&"hidden"!==t.visibility})}getFirstTabableElementOf(e){const t=this.tabableElementsMap.get(e)?.tabableElements||[];return 0===t.length?null:t[0]}getLastTabableElementOf(e){const t=this.tabableElementsMap.get(e)?.tabableElements||[];return 0===t.length?null:t[t.length-1]}isFirstTabableElementActive(e){const t=this.getFirstTabableElementOf(e);return null!==t&&t===document.activeElement}isLastTabableElementActive(e){const t=this.getLastTabableElementOf(e);return null!==t&&t===document.activeElement}}n.TABABLE_ELEMENTS_SELECTOR='button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])';const r=new n;i.d(t,["A",0,r])},41179(e,t,i){"use strict";var s=i(13263),a=i(87819);class n{constructor(){this._scriptLoaded=!1}async getConfig(){return await a.A.getConfigItem("googleMaps")}async getApiKey(){return(await this.getConfig())?.apiKey}async getInitialLatLng(){const e=await this.getConfig();if(void 0===e?.lat||void 0===e?.lon){const{lat:e,lon:t}=n.FALLBACK_LATLNG;return new google.maps.LatLng(e,t)}return new google.maps.LatLng(e?.lat,e?.lon)}get scriptLoaded(){return this._scriptLoaded}set scriptLoaded(e){e!==this._scriptLoaded&&(this._scriptLoaded=e,!0===e&&s.mB.notifyObservers(n.LOADED_OBSERVER_KEY))}async loadApi(){if(!0===this.scriptLoaded)return;const e=await this.getApiKey();if(void 0===e)throw new Error("no api-key provided");const{Loader:t}=await i.e(28835).then(i.bind(i,28835)),s=new t({apiKey:e,libraries:["geometry","places"]});await s.load(),this.scriptLoaded=!0}waitForAPILoad(){return new Promise(e=>{this.scriptLoaded?e(!0):s.mB.observe(n.LOADED_OBSERVER_KEY,()=>e(!0))})}async getDistance(e,t){return await this.loadApi(),google.maps.geometry.spherical.computeDistanceBetween(e,t)}}n.LOADED_OBSERVER_KEY="vic-google-map-loaded",n.FALLBACK_LATLNG={lat:51.165691,lon:10.451526};const r=new n;i.d(t,["default",0,r])},97203(e,t,i){"use strict";var s=i(3312),a=i(87819);const n=new class{constructor(){this.i18nHandler=void 0,this.i18nHandler=new s.h(()=>this.getI18nData())}async getI18nData(){const e=await a.A.getConfigItem("i18n");if(void 0===e)throw new Error("i18n config not found");return e}async getValue(e){return await this.i18nHandler.getValue(e)}async getValueOrDefault(e,t){return await this.i18nHandler.getValueOrFallback(e,t)}async getValueOrKey(e){return await this.i18nHandler.getValueOrFallback(e)}async getValues(e){return await this.i18nHandler.getValues(e)}async getValuesOrKeys(e){return await this.i18nHandler.getValuesOrFallback(e)}async getValuesOrFallback(e,t){return await this.i18nHandler.getValuesOrFallback(e,t)}};i.d(t,["A",0,n])},49341(e,t,i){"use strict";i.d(t,{m:()=>c});var s=i(13263),a=i(26676),n=i(93252),r=i(21016),o=i(3312),l=i(87231);class c{constructor(e){this.configUrl=void 0,this._i18nHandler=void 0,this.configUrl=e}get i18nHandler(){return void 0===this._i18nHandler&&(this._i18nHandler=new o.h(()=>this.getI18nData())),this._i18nHandler}async getFixedResults(){return(await this.getConfig()||{}).fixed||[]}async getDisabledContactTypes(){return(await this.getConfig()||{}).disabledContactTypes||[]}async getTagGroupsConfig(){return(await this.getConfig()||{}).tagGroups||[]}async getFeedThroughQueryParams(){return(await this.getConfig()??{}).feedThroughQueryParams??[]}async getDynamicLogosConfig(){return(await this.getConfig()||{}).dynamicLogos||[]}async getFilterBoxesConfig(){const e=await this.getConfig();return e?.filters??null}async getGetQuoteUrlKeys(){return(await this.getConfig()||{}).getQuoteUrlKeys||[]}async getBoundingBoxEndpoint(){return(await this.getConfig()||{}).boundingBoxEndpoint||""}async getMaxResultCount(){return(await this.getConfig()||{}).maxResultCount||25}async getResultsFor(e){try{this.validateOptions(e);const t=await this.cleanupSearchOptions(e),i=await this.getQueryUrl(t),s=await l.A.fetchJSON(i,{cacheOptions:{validFor:0}});
256return null===s?null:await this.getSearchResult(t,s)}catch(e){return s.bD.error("InstallerSearchService: ",e),null}}validateOptions(e){if(""===e.endpointUrl)throw new Error("no endpointUrl given");return!0}async cleanupSearchOptions(e){const t=await this.getConfig()||{},i=e.distanceUnit||t.distanceUnit,s=e.locale||t.locale;return{...e,distanceUnit:i,locale:s}}async getSearchResult(e,t){if(void 0===t.dealers)return{results:[]};const i=(await Promise.all(t.dealers.map(t=>this.getRenderInformation(e,t)))).filter(e=>!(0===e.lat&&0===e.lon));return{address:t.search?.address||void 0,results:i}}async getQueryParams(e){let t=new URLSearchParams;const i=e.locale||"en-US",s=this.getEndpointId(e);return t.append("locale",i),t="latlng"===s?await this.appendCoordsQueryParams(t,e):"box"===s?this.appendBoxQueryParams(t,e):await this.appendAddressQueryParams(t,e),void 0!==e.responsibleArea&&(t.append("searchMode","responsibility"),t.append("responsibleArea",e.responsibleArea.split(" ").join("").toUpperCase()),t.append("useDefaultFilter","false"),t.append("filter","PVO_LEADGEN")),t=this.appendFilterQueryParams(t,e),t}getFilterValues(e){const t=[];let i="";
256return void 0!==e.filter_tags&&e.filter_tags.forEach(e=>{"type"===e.groupKey?t.push(e.tagKey):"skill"===e.groupKey&&(i=e.tagKey)}),{filters:t,skill:i}}async getQueryUrl(e){const t=await this.getQueryParams(e),i=`${e.endpointUrl}/${this.getEndpointId(e)}?${t.toString()}`;return e.initialQueryString&&""!==e.initialQueryString?(0,a.m$)(i,e.initialQueryString):i}async getRenderInformation(e,t){const i=await this.getTagGroupsConfig(),s=c.getTagGroups(t,i),a=await this.getDynamicLogosConfig(),n=c.getDynamicLogos(a,t),r=await this.getInstallerInformation(t,s,n);return{...r,getAQuoteUrl:r.showGetAQuote?await this.generateGetAQuoteUrl(e,r):void 0,distance:this.getDistanceData(e,t)}}getDistanceData(e,t){if(null===t.distance)return{};const i="mi"===e.distanceUnit?t.distance?.miles:t.distance?.kilometers;return{displayName:`${Math.round(10*i)/10} ${e.distanceUnit||"km"}`,value:i}}static getTagsFor(e,t){return e.map(e=>"skill"===e.type?void 0!==t.skills?.find(t=>t===e.key)?e.label:"":void 0!==t.properties.find(t=>t.value===e.key)?e.label:"").filter(e=>""!==e)}static getTagGroups(e,t){return t.map(t=>({headline:t.headline,tags:c.getTagsFor(t.tags,e)}))}static getDynamicLogos(e,t){return e.filter(e=>"skill"===e.type?void 0!==t.skills?.find(t=>t===e.key):void 0!==t.properties.find(t=>t.value===e.key)).map(e=>({src:e.src,alt:e.alt,linkUrl:e.linkUrl,width:e.width}))}async getBoundingBoxData(e){try{const{areaId:t}=e,i=await this.getBoundingBoxEndpoint();if(""===i)throw new Error("no endpointUrl given");if(""===t)throw new Error("no areaId given");const s=(0,a.m$)(i,`areaId=${t}&_charset_=UTF-8`);return await l.A.fetchJSON(s,{cacheOptions:{validFor:r.Gf}})}catch(e){return s.bD.error("InstallerSearchService.getBoundingBox: ",e),null}}getEndpointId(e){return e.coordinates?"latlng":void 0!==e.boundingBox?"box":"address"}async getInstallerInformation(e,t,i){return{id:e.uuid,name:e.name,city:(0,n.v)(e.address?.city),zip:(0,n.v)(e.address?.postcode),state:(0,n.v)(e.address?.state),street:(0,n.v)(e.address?.street),country:(0,n.v)(e.address?.country),phone:(0,n.v)(e.contact?.phone),mobilePhone:(0,n.v)(e.contact?.mobilePhone),displayedPhoneNumber:(0,n.v)(e.contact?.displayedPhoneNumber||""),email:(0,n.v)(e.contact?.mail),fax:(0,n.v)(e.contact?.fax),website:(0,n.v)(e.contact?.homepage),dealerLocatorWebsite:(0,n.v)(e.dealerLocatorWebsite),dealerLocatorWebsiteTwo:(0,n.v)(e.dealerLocatorWebsiteTwo),lat:e.position.y,lon:e.position.x,tagGroups:t,dynamicLogos:i,showGetAQuote:await this.showGetAQuote(e),salesforceId:e.salesforceId}}async showGetAQuote(e){const t=await this.getConfig(),i=t?.conditionalQuoteProperties||[];return 0===i.length||i.some(t=>e.properties.some(e=>e.value===t))}async generateGetAQuoteUrl(e,t){if(void 0===e.getAQuoteBaseUrl)return;const i=await this.getGetQuoteUrlKeys();if(0===i.length){const i={name:t.name,email:t.email,street:t.street,phone:t.phone,city:t.city,state:t.state,zip:t.zip,lat:t.lat?.toString(),lon:t.lon?.toString(),salesforceId:t.salesforceId};return(0,a.Ne)(e.getAQuoteBaseUrl,(0,a.ZM)(i,"if_"))}const s=new URLSearchParams;return i.forEach(e=>{const i=e.customKey?e.customKey:`if_${e.dataAttribute}`,a=t[e.dataAttribute]?.toString();if(void 0!==a)return s.append(i,a)}),(0,a.Ne)(e.getAQuoteBaseUrl,s)}async appendCoordsQueryParams(e,t){const i=await this.getMaxResultCount();return void 0!==t.coordinates&&null!==t.coordinates&&(e.append("lat",t.coordinates.lat().toString()),e.append("lng",t.coordinates.lng().toString())),e.append("count",i.toString()),e.append("lookupAddress",t.lookupAddress?"true":"false"),e}appendBoxQueryParams(e,t){return void 0!==t.boundingBox&&(e.append("upperRight",t.boundingBox.northeast.lng.toString()),e.append("upperRight",t.boundingBox.northeast.lat.toString()),e.append("bottomLeft",t.boundingBox.southwest.lng.toString()),e.append("bottomLeft",t.boundingBox.southwest.lat.toString())),e}appendFilterQueryParams(e,t){const i=this.getFilterValues(t);return""!==i.skill&&e.append("skill",i.skill),i.filters.forEach(t=>e.append("filter",t)),e}async appendAddressQueryParams(e,t){const i=await this.getMaxResultCount();return void 0!==t.query&&e.append("query",t.query.toString()),e.append("count",i.toString()),e}async getI18nData(){return(await this.getConfig()??{}).i18n||{}}async getConfig(){try{if(""===this.configUrl)throw new Error("empty configUrl given");return await l.A.fetchJSON(this.configUrl,{cacheOptions:{validFor:r.Gf}})}catch(e){return s.bD.error("InstallerSearchService.getConfig: ",e),null}}}},70001(e,t,i){"use strict";var s=i(88045);const a=new class{constructor(){this.navigationMap=new Map,this.initNavMap()}get navigationId(){return"vic-navigation"}initNavMap(){(0,s.JW)(document.body,".vic-m-navigation").forEach(e
256=>{const t=e.id;this.navigationMap.set(t,e)})}getNavigation(){return this.getNavigationById(this.navigationId)}getNavigationById(e){return this.navigationMap.get(e)}subnavExists(e){const t=this.getNavigation();return void 0!==t&&t.hasSubnavWithId(e)}openNavigation(e){void 0!==e&&this.getNavigation()?.showSubnav(e),this.getNavigation()?.open()}closeNavigation(){this.getNavigation()?.close()}};i.d(t,["A",0,a])},98645(e,t,i){"use strict";const s=new class{sendEvent(e,t){const i=window.pa;void 0!==i&&i.sendEvent(e,t)}};i.d(t,["A",0,s])},85945(e,t,i){"use strict";class s{constructor(){this.pageLocked=!1}lockPage(){if(this.pageLocked)return;const e=s.getScrollbarWidth();document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,this.pageLocked=!0}unlockPage(){!1!==this.pageLocked&&(document.body.style.overflow="",document.body.style.paddingRight="",this.pageLocked=!1)}static getScrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}}const a=new s;i.d(t,["A",0,a])},22030(e,t,i){"use strict";i.d(t,{A:()=>h});var s=i(26676),a=i(21016);const n=e=>`<a href="${e}" target="_blank">${e}</a>`;var r=i(87231),o=i(87819),l=i(98645),c=i(97203);const h=new class{async isFeedbackBoxEnabled(){const e=await this.getConfig();return e?.feedbackBoxEnabled??!1}async getInputSuggestions(){const e=await this.getConfig();return e?.suggestions??[]}async getResultsFor(e){const t=await this.getConfig();if(null===t)return null;const i=[e.question],s={question:e.question||""};void 0!==t.languageCode&&void 0!==t.countryCode&&(s.config={},s.config.language_code=t.languageCode,s.config.country_code=t.countryCode,i.push(t.languageCode,t.countryCode));const n=await r.A.fetchJSON(t.endpointUrl,{fetchOptions:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)},cacheOptions:{validFor:a.W_,requestBasedCaching:!0,cacheKeys:i}});if(null===n)return null;l.A.sendEvent("internal_search_result.display",{ise_keyword:`smart-search : ${n.prompt}`,ise_page:1});const o=this.enrichResultItems(n.all_results,t);return{summary:this.enrichSummary(n.summary,t),prompt:n.prompt,resultCount:n.all_results.length,categories:await this.getResultCategories(o,t),initialResultPerCategory:t?.initialResultPerCategory??5,feedbackBoxEnabled:t?.feedbackBoxEnabled??!1,installerTeaser:await this.getInstallerTeaserConfig()}}enrichResultItems(e,t){return void 0===t.utmParams?e:e.map(e=>({...e,link:(0,s.UD)(e.link,{...t.utmParams,utm_medium:"SmartSearch_Result"})}))}enrichSummary(e,t){return((e,t)=>{const i=t??n,s=new RegExp(/(https:\/\/)([a-zA-Z0-9]+(\.|-){1})+[a-zA-Z0-9]+(\/(([a-zA-Z0-9%@\-=]+(\.|-)?)+[a-zA-Z0-9]+))*(\/|((\.[a-zA-Z0-9]+)*))?((\?[a-zA-Z0-9]+=[a-zA-Z0-9%@\\.\\-]+)?(&[a-zA-Z0-9]+=[a-zA-Z0-9%@\\.\\-]+)*)?(#[a-zA-Z0-9]+)?/gm);return e.replace(s,function(e){return i(e)})})(this.removeResultReferences(e),e=>this.summaryLinkRenderer(e,t.utmParams))}summaryLinkRenderer(e,t){return void 0===t?n(e):`<a href="${(0,s.UD)(e,{...t,utm_medium:"SmartSearch_Summary"})}" target="_blank">${e}</a>`}removeResultReferences(e){const t=new RegExp(/( )?\[\d+(, \d+)*\]/gm,"g");return e.replace(t,"")}async getInstallerTeaserConfig(){const e=await this.getConfig();if(void 0===e?.installerTeaser)return;const t=await this.getInstallerTeaserMarkup();return null!==t?{markup:t,insertAfter:e.installerTeaser.insertAfter}:void 0}async getResultCategories(e,t){const i=(t?.categories??[]).map(t=>({categoryClusterKey:t.clusterKey,label:t.label,fallbackIconId:t.fallbackIconId,items:e.filter(e=>t.categoryKeys.includes(e.clustering_tag))})).filter(e=>e.items.length>0),s=e.filter(e=>!i.some(t=>t.items.includes(e)));return 0===s.length?i:[...i,{categoryClusterKey:"VIC_OTHER",label:await c.A.getValueOrDefault("viessmann.corporate.smartSearch.categories.other","..."),items:s}]}async getConfig(){return await o.A.getConfigItem("smartSearch")??null}async getInstallerTeaserMarkup(){const e=await this.getConfig(),t=e?.installerTeaser?.markupUrl??void 0;return void 0===t?null:await r.A.fetchHTML(t,{cacheOptions:{validFor:a.Gf}})}}},66204(e,t,i){"use strict";i.d(t,{A:()=>g});var s=i(88045),a=i(13263),n=i(72420),r=i(87819),o=i(97203);function l(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)"__proto__"!==s&&(e[s]=i[s])}return e}var c=function e(t,i){function s(e,s,a){if("undefined"!=typeof document){"number"==typeof(a=l({},i,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
256URIComponent).replace(/[()]/g,escape);var n="";for(var r in a)a[r]&&(n+="; "+r,!0!==a[r]&&(n+="="+a[r].split(";")[0]));return document.cookie=e+"="+t.write(s,e)+n}}return Object.create({set:s,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var n=i[a].split("="),r=n.slice(1).join("=");try{var o=decodeURIComponent(n[0]);if(o in s||(s[o]=t.read(r,o)),e===o)break}catch(e){}}return e?s[e]:s}},remove:function(e,t){s(e,"",l({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,l({},this.attributes,t))},withConverter:function(t){return e(l({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const h="vic-cookie-change";class d{constructor(){this._broadCastChannel=void 0,this.observedItemsMap=new Map,"function"==typeof BroadcastChannel&&(this._broadCastChannel=new BroadcastChannel(d.CHANNEL_NAME),this._broadCastChannel.onmessage=e=>{e.data.title===h&&this.handleCookieChange(e.data)})}setCookie(e,t,i){const s=this.getCookie(e);c.set(e,t,{expires:i}),this.fireCallbacks(e),"function"==typeof BroadcastChannel&&this._broadCastChannel.postMessage({title:h,cookieName:e,oldValue:s,newValue:t})}getCookie(e){return c.get(e)}isCookieSet(e){return void 0!==this.getCookie(e)}observeItem(e,t){const i=this.getCookieCallbacks(e);i.add(t),this.observedItemsMap.set(e,i)}unobserveItem(e,t){const i=this.getCookieCallbacks(e);i.delete(t),this.observedItemsMap.set(e,i)}getCookieCallbacks(e){return this.observedItemsMap.get(e)||new Set}handleCookieChange(e){const t=e.cookieName,i=e.oldValue,s=e.newValue;null!==t&&i!==s&&this.observedItemsMap.has(t)&&this.fireCallbacks(t)}fireCallbacks(e){this.getCookieCallbacks(e).forEach(e=>e())}}d.CHANNEL_NAME="vic-cookie";const u=new d;class p{constructor(){this._bodyClassLoaded=!1,this.COOKIE_NAME="vic-target-group"}async getDefaultTargetGroup(){return await r.A.getConfigItem("defaultTargetGroup")||"b2b"}async getCurrentTargetGroup(){return u.getCookie(this.COOKIE_NAME)||await this.getDefaultTargetGroup()}set currentTargetGroup(e){u.setCookie(this.COOKIE_NAME,e,new Date("2038-01-19T04:14:07"))}get bodyClassLoaded(){return this._bodyClassLoaded}set bodyClassLoaded(e){this._bodyClassLoaded!==e&&(this._bodyClassLoaded=e,!0===e&&a.mB.notifyObservers(p.INIT_OBSERVER_KEY))}waitForInit(){return new Promise(e=>{this.bodyClassLoaded?e(!0):a.mB.observe(p.INIT_OBSERVER_KEY,()=>e(!0))})}async initBodyClassUpdater(){await this.updateBodyClass(),this.observeGroupChange(()=>this.updateBodyClass()),this.bodyClassLoaded=!0}async updateBodyClass(){const e=await this.getCurrentTargetGroup();(0,s.p1)(document.body,n.EX,"b2b"===e),(0,s.p1)(document.body,n.xj,"b2c"===e)}async toggleTargetGroup(){const e=await this.getCurrentTargetGroup();this.currentTargetGroup="b2b"===e?"b2c":"b2b"}observeGroupChange(e){u.observeItem(this.COOKIE_NAME,e)}unobserveGroupChange(e){u.unobserveItem(this.COOKIE_NAME,e)}async getI18nValue(e){return await o.A.getValue(await this.getI18nKey(e))||""}async getI18nKey(e){return`viessmann.corporate.targetGroupSwitch.${await this.getCurrentTargetGroup()}.${e}`}}p.INIT_OBSERVER_KEY="vic-target-group-init";const g=new p},33870(e,t,i){"use strict";var s=i(13263);const a=new class{constructor(){this.queryParameterKey="appState"}get globalQueryParam(){const e=s.tJ.get(this.queryParameterKey)||"";return decodeURIComponent(e)}get appState(){const e=new Map,t=this.globalQueryParam;return""===t||t.split("&").forEach(t=>{const i=this.getOptionValue(t);null!==i&&e.set(i.key,i.value)}),e}getOption(e){return this.appState.get(e)}setOption(e,t){const i=this.appState;i.set(e,t),this.updateUrl(i)}deleteOption(e){const t=this.appState;t.delete(e),this.updateUrl(t)}getQueryParamFor(e){const t=[];return e.forEach((e,i)=>{t.push(`${i}=${e}`)}),encodeURIComponent(t.join("&"))}getOptionValue(e){const t=e.split("=");switch(t.length){case 1:return{key:t[0],value:""};case 2:return{key:t[0],value:t[1]};default:return null}}updateUrl(e){const t=this.getQueryParamFor(e);this.removeHash(),""===t?s.tJ.delete(this.queryParameterKey):s.tJ.set(this.queryParameterKey,t)}removeHash(){history.pushState("",document.title,window.location.pathname+window.location.search)}};
256i.d(t,["A",0,a])},35923(e,t,i){"use strict";var s=i(21698);class a{constructor(){this.intersectionObserverMap=new Map,this.rootElementKeyMap=new WeakMap}getIObserverData(e={}){const t=this.getIObserverKey(e),i=this.intersectionObserverMap.get(t);return void 0!==i?i:{iObserverInstance:new IntersectionObserver(e=>this.handleVPChange(e,t),e),callbackMap:new WeakMap}}getIObserverKey(e){return JSON.stringify(this.getSerializableObserverConfig(e))}getSerializableObserverConfig(e){return void 0===e.root||null===e.root?e:{...e,root:this.getRootElementKey(e.root)}}getRootElementKey(e){const t=this.rootElementKeyMap.get(e);if(void 0!==t)return t;const i=(0,s.A)();return this.rootElementKeyMap.set(e,i),i}static removeCallback(e,t){return e.filter(e=>e.type!==t.type||e.callback.toString()!==t.callback.toString()||e.context!==t.context)}static callbackExists(e,t){return void 0!==e.find(e=>e.type===t.type&&e.callback.toString()===t.callback.toString()&&e.context===t.context)}observe(e,t,i={}){const s=this.getIObserverData(i),n=s.callbackMap.get(e)||[];a.callbackExists(n,t)||(n.push(t),s.callbackMap.set(e,n),this.intersectionObserverMap.set(this.getIObserverKey(i),s),s.iObserverInstance.observe(e))}observeIn({targetElement:e,callback:t,context:i,observerConfig:s={}}){this.observe(e,{type:"in",callback:t,context:i},s)}unobserveIn({targetElement:e,callback:t,context:i,observerConfig:s={}}){this.unobserve(e,{type:"in",callback:t,context:i},s)}observeOut({targetElement:e,callback:t,context:i,observerConfig:s={}}){this.observe(e,{type:"out",callback:t,context:i},s)}unobserveOut({targetElement:e,callback:t,context:i,observerConfig:s={}}){this.unobserve(e,{type:"out",callback:t,context:i},s)}observeBoth({targetElement:e,callback:t,context:i,observerConfig:s={}}){this.observe(e,{type:"both",callback:t,context:i},s)}unobserveBoth({targetElement:e,callback:t,context:i,observerConfig:s={}}){this.unobserve(e,{type:"both",callback:t,context:i},s)}unobserve(e,t,i={}){const s=this.getIObserverData(i);let n=s.callbackMap.get(e)||[];!1!==a.callbackExists(n,t)&&(n=a.removeCallback(n,t),s.callbackMap.set(e,n),this.intersectionObserverMap.set(this.getIObserverKey(i),s),s.iObserverInstance.unobserve(e))}handleVPChange(e,t){e.forEach(e=>{const i=e.target,s=this.intersectionObserverMap.get(t);if(void 0===s)return;const a=s.callbackMap.get(i);void 0!==a&&this.fireCallbacks(a,e.isIntersecting)})}fireCallbacks(e,t){const i=["both",t?"in":"out"];e.filter(e=>i.includes(e.type)).forEach(e=>{e.callback.bind(e.context)()})}}const n=new a;i.d(t,["A",0,n])},492(e,t,i){"use strict";var s,a,n,r=i(59649),o=i.n(r),l=i(88045),c=i(13750),h=i(13263),d=i(56293);const u=new(s=(0,c.nF)(100),(n=class e{constructor(){this.eventBindingMap={},this.eventIdMap=new WeakMap,this.preventHeaderShrink=!1,this.preventHeaderGrow=!1,this.lastScrollTop=void 0,this.lastDownScrollTop=void 0,this.lastUpScrollTop=void 0,this._scrollDirection="DOWN",(0,l.MR)(window,"scroll",this.onWindowScroll,this,{passive:!0}),this.lastScrollTop=this.scrollTop,this.lastDownScrollTop=this.scrollTop,this.lastUpScrollTop=this.scrollTop}get scrollDirection(){return this._scrollDirection}get scrollTop(){return window.scrollY||document.documentElement.scrollTop}observeScroll(e){h.mB.observe(this.getObserverKey("both"),e)}unobserveScroll(e){h.mB.unobserve(this.getObserverKey("both"),e)}observeScrollUp(e){h.mB.observe(this.getObserverKey("up"),e)}unobserveScrollUp(e){h.mB.unobserve(this.getObserverKey("up"),e)}observeScrollDown(e){h.mB.observe(this.getObserverKey("down"),e)}unobserveScrollDown(e){h.mB.unobserve(this.getObserverKey("down"),e)}onWindowScroll(){this._scrollDirection=this.scrollTop>this.lastScrollTop?"DOWN":"UP",this.lastScrollTop=this.scrollTop,"DOWN"===this._scrollDirection?this.handleDownScroll():this.handleUpScroll()}handleDownScroll(){const t=this.scrollTop;this.lastDownScrollTop=t,t-e.SCROLL_WHEEL_BUFFER>=this.lastUpScrollTop&&this.triggerCallbacks("DOWN")}handleUpScroll(){const t=this.scrollTop;this.lastUpScrollTop=t,t+e.SCROLL_WHEEL_BUFFER<=this.lastDownScrollTop&&this.triggerCallbacks("UP")}triggerCallbacks(e){"UP"===e&&h.mB.notifyObservers(this.getObserverKey("up")),"DOWN"===e&&h.mB.notifyObservers(this.getObserverKey("down")),h.mB.notifyObservers(this.getObserverKey("both"))}async scrollSmooth(e,t){const{preventHeaderShrink:i=!1}=t||{};this.preventHeaderShrink=i,window.scrollTo({...e,behavior:"smooth"}),await(0,d.h)(window),this.preventHeaderShrink=!1}async scrollToElement(e,t){const{additionalOffset:i=0}=t||{},s=this.getPageTopOffsetHeight(),a=e.getBoundingClientRect().top+window.scrollY-s-i;await this.scrollSmooth({top:a},t)}getObserverKey(e){return`vic-window-scroll-service__${e}`}getPageTopOffsetHeight(){const e=(0,l.I6)(document,".vic-m-header"),t=(0,l.I6)(document,".vic-m-context-navigation");return(e?e.getBoundingClientRect().height:0)+(t?t.getBoundingClientRect().height:0)+40}}).SCROLL_WHEEL_BUFFER=50,a=n,o()(a.prototype,"onWindowScroll",[s],Object.getOwnPropertyDescriptor(a.prototype,"onWindowScroll"),a.prototype),a);i.d(t,["A",0,u])},8748(e,t,i){"use strict";i.d(t,{S:()=>r});var s=i(13263),a=i(26676),n=i(5610);
256class r{constructor(){this.abortableRequestService=new n.d}static getLazyImageArgsFromMediaItem(e){if(void 0===e)return;const t=e.renditions,i=Object.keys(t).map(e=>`${t[Number(e)]} ${e}w`).join(", ");return{src:t[1280],srcset:i,alt:e.alt,loadingPlaceholder:t[60]}}async getResultsFor(e){if(!1===this.validateOptions(e))return null;const t=this.getQueryUrl(e);try{return await this.abortableRequestService.fetchJSON({url:t,options:{cacheOptions:{validFor:0}}})}catch(e){return s.bD.error("SearchService: ",e),null}}validateOptions(e){return""!==e.endpointUrl}getQueryParams(e){const t=new URLSearchParams;void 0!==e.queryString&&t.append("q",e.queryString),t.append("size",e.size.toString());const i=e.offset||0;t.append("offset",i.toString());const s=e.includeMeta||0===i;return t.append("includeMeta",s.toString()),void 0!==e.filter_tags&&e.filter_tags.forEach(e=>{""!==e.groupKey&&""!==e.tagKey&&t.append(`filter_${e.groupKey}`,e.tagKey)}),t.append("_charset_","UTF-8"),t}getQueryUrl(e){return(0,a.Ne)(e.endpointUrl,this.getQueryParams(e))}}},36482(e,t,i){const s={"./ar-dz.js":[70840,[70840]],"./ar.js":[59997,[59997]],"./at.js":[56031,[56031]],"./az.js":[597,[597]],"./be.js":[58487,[58487]],"./bg.js":[89049,[89049]],"./bn.js":[60434,[60434]],"./bs.js":[13989,[13989]],"./cat.js":[80404,[80404]],"./ckb.js":[39176,[39176]],"./cs.js":[45e3,[45e3]],"./cy.js":[88650,[88650]],"./da.js":[70105,[70105]],"./de.js":[75957,[75957]],"./default.js":[79473,[79473]],"./eo.js":[68302,[68302]],"./es.js":[69162,[69162]],"./et.js":[7027,[7027]],"./fa.js":[71407,[71407]],"./fi.js":[41895,[41895]],"./fo.js":[66661,[66661]],"./fr.js":[36402,[36402]],"./ga.js":[67646,[67646]],"./gr.js":[99339,[99339]],"./he.js":[8969,[8969]],"./hi.js":[58957,[58957]],"./hr.js":[64460,[64460]],"./hu.js":[46073,[46073]],"./hy.js":[62909,[62909]],"./id.js":[99831,[99831]],"./index.js":[22640,[22640]],"./is.js":[40966,[40966]],"./it.js":[95879,[95879]],"./ja.js":[79739,[79739]],"./ka.js":[86730,[86730]],"./km.js":[55390,[55390]],"./ko.js":[10932,[10932]],"./kz.js":[40079,[40079]],"./lt.js":[85294,[85294]],"./lv.js":[70884,[70884]],"./mk.js":[30426,[30426]],"./mn.js":[93605,[93605]],"./ms.js":[77074,[77074]],"./my.js":[62624,[62624]],"./nl.js":[82356,[82356]],"./nn.js":[70558,[70558]],"./no.js":[96829,[96829]],"./pa.js":[48557,[48557]],"./pl.js":[35002,[35002]],"./pt.js":[98002,[98002]],"./ro.js":[85137,[85137]],"./ru.js":[45431,[45431]],"./si.js":[90730,[90730]],"./sk.js":[86112,[86112]],"./sl.js":[26261,[26261]],"./sq.js":[47650,[47650]],"./sr-cyr.js":[67724,[67724]],"./sr.js":[93551,[93551]],"./sv.js":[91083,[91083]],"./th.js":[81410,[81410]],"./tr.js":[19872,[19872]],"./uk.js":[81074,[81074]],"./uz.js":[79697,[79697]],"./uz_latn.js":[93245,[93245]],"./vn.js":[83382,[83382]],"./zh-tw.js":[72376,[72376]],"./zh.js":[43644,[43644]]};function a(e){try{if(!i.o(s,e))return Promise.resolve().then(()=>{const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}catch(e){return Promise.reject(e)}const t=s[e],a=t[0];return i.e(t[1][0]).then(()=>i(a))}a.keys=()=>Object.keys(s),a.id=36482,e.exports=a},99890(e,t,i){"use strict";t.Hh=void 0;var s=i(10737);Object.defineProperty(t,"Hh",{enumerable:!0,get:function(){return s.load}});i(91041)},91041(e,t){"use strict";var i=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))(function(a,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function o(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(r,o)}l((s=s.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var i,s,a,n,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return n={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(l){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,o[0]&&(r=0)),r;)try{if(i=1,s&&(a=2&o[0]?s.return:o[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,o[1])).done)return a;switch(s=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,s=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!((a=(a=r.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e],s=0}finally{i=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};
256Object.defineProperty(t,"__esModule",{value:!0}),t.ReCaptchaInstance=void 0;var a=function(){function e(e,t,i){this.siteKey=e,this.recaptchaID=t,this.recaptcha=i,this.styleContainer=null}return e.prototype.execute=function(e){return i(this,void 0,void 0,function(){var t;return s(this,function(i){switch(i.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:e})]:[3,2];case 1:return t=i.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:e})];case 3:t=i.sent(),i.label=4;case 4:return[2,t]}})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();t.ReCaptchaInstance=a},10737(e,t,i){"use strict";var s=this&&this.__assign||function(){return s=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getInstance=t.load=void 0;var a,n=i(91041);!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(a||(a={}));var r=function(){function e(){}return e.load=function(t,i){if(void 0===i&&(i={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===a.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===a.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(t,i){e.successfulLoadingConsumers.push(function(e){return t(e)}),e.errorLoadingRunnable.push(function(e){return i(e)})});e.instanceSiteKey=t,e.setLoadingState(a.LOADING);var s=new e;return new Promise(function(r,o){s.loadScript(t,i.useRecaptchaNet||!1,i.useEnterprise||!1,i.renderParameters?i.renderParameters:{},i.customUrl).then(function(){e.setLoadingState(a.LOADED);var o=s.doExplicitRender(grecaptcha,t,i.explicitRenderParameters?i.explicitRenderParameters:{},i.useEnterprise||!1),l=new n.ReCaptchaInstance(t,o,grecaptcha);e.successfulLoadingConsumers.forEach(function(e){return e(l)}),e.successfulLoadingConsumers=[],i.autoHideBadge&&l.hideBadge(),e.instance=l,r(l)}).catch(function(t){e.errorLoadingRunnable.forEach(function(e){return e(t)}),e.errorLoadingRunnable=[],o(t)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?a.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,i,s,n,r){var o=this;void 0===i&&(i=!1),void 0===s&&(s=!1),void 0===n&&(n={}),void 0===r&&(r="");var l=document.createElement("script");l.setAttribute("recaptcha-v3-script",""),l.setAttribute("async",""),l.setAttribute("defer","");var c="https://www.google.com/recaptcha/api.js";i?c=s?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js":s&&(c="https://www.google.com/recaptcha/enterprise.js"),r&&(c=r),n.render&&(n.render=void 0);var h=this.buildQueryString(n);return l.src=c+"?render=explicit"+h,new Promise(function(t,i){l.addEventListener("load",o.waitForScriptToLoad(function(){t(l)},s),!1),l.onerror=function(t){e.setLoadingState(a.NOT_LOADED),i(t)},document.head.appendChild(l)})},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter(function(t){return!!e[t]}).map(function(t){return t+"="+e[t]}).join("&")},e.prototype.waitForScriptToLoad=function(t,i){var s=this;return function(){void 0===window.grecaptcha?setTimeout(function(){s.waitForScriptToLoad(t,i)},e.SCRIPT_LOAD_DELAY):i?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(e,t,i,a){var n=s({sitekey:t},i);return i.container?a?e.enterprise.render(i.container,n):e.render(i.container,n):a?e.enterprise.render(n):e.render(n)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();t.load=r.load,t.getInstance=r.getInstance},59649(e){e.exports=function(e,t,i,s,a){var n={};
256return Object.keys(s).forEach(function(e){n[e]=s[e]}),n.enumerable=!!n.enumerable,n.configurable=!!n.configurable,("value"in n||n.initializer)&&(n.writable=!0),n=i.slice().reverse().reduce(function(i,s){return s(e,t,i)||i},n),a&&void 0!==n.initializer&&(n.value=n.initializer?n.initializer.call(a):void 0,n.initializer=void 0),void 0===n.initializer?(Object.defineProperty(e,t,n),null):n},e.exports.__esModule=!0,e.exports.default=e.exports},43439(e){e.exports=function(e,t,i,s){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(s):void 0})},e.exports.__esModule=!0,e.exports.default=e.exports},52301(e){e.exports=function(e,t){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")},e.exports.__esModule=!0,e.exports.default=e.exports},44571(e,t,i){"use strict";i.d(t,{O:()=>v});const s="Invalid number",a="iec",n="jedec",r="si",o="byte",l="array",c="object",h="exponent",d={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}}
256,u=[1,1024,1048576,1073741824,1099511627776,0x4000000000000,0x1000000000000000,11805916207174113e5,12089258196146292e8],p=[1,1e3,1e6,1e9,1e12,1e15,1e18,1e21,1e24],g=Math.log(1024),b=Math.log(1e3),m={[r]:{isDecimal:!0,ceil:1e3,actualStandard:n},[a]:{isDecimal:!1,ceil:1024,actualStandard:a},[n]:{isDecimal:!1,ceil:1024,actualStandard:n}};function f(e,t,i,s,a,n=!0){let r;r=i?p[t]:u[t];let o=e/r;return s&&(o*=8,n&&o>=a&&t<8&&(o/=a,t++)),{result:o,e:t}}function v(e,{bits:t=!1,pad:i=!1,base:r=-1,round:u=2,locale:p="",localeOptions:v={},separator:y="",spacer:w=" ",symbols:S={},standard:C="",output:A="string",fullform:E=!1,fullforms:I=[],exponent:k=-1,roundingMethod:_="round",precision:O=0}={}){let x,T=k,F=[],P=0,D="";if("bigint"==typeof e)x=Number(e);else{if(x=Number(e),isNaN(x))throw new TypeError(s);if(!isFinite(x))throw new TypeError(s)}const{isDecimal:M,ceil:R,actualStandard:B}=function(e,t){return m[e]?m[e]:2===t?{isDecimal:!1,ceil:1024,actualStandard:a}:{isDecimal:!0,ceil:1e3,actualStandard:n}}(C,r),L=!0===E,V=x<0,N=Math[_];if("function"!=typeof N)throw new TypeError("Invalid rounding method");if(V&&(x=-x),0===x)return function(e,t,i,s,a,n,r,u,p){let g;return g=e>0?(0).toPrecision(e):0,r===h?0:(p||(p=i?d.symbol[t].bits[0]:d.symbol[t].bytes[0]),s[p]&&(p=s[p]),a&&(n[0]?p=n[0]:(p=d.fullform[t][0],p+=i?"bit":o)),r===l?[g,p]:r===c?{value:g,symbol:p,exponent:0,unit:p}:g+u+p)}(O,B,t,S,L,I,A,w);const{e:z,precision:q}=function(e,t,i,s,a){return(-1===t||isNaN(t))&&(t=s?Math.floor(Math.log(e)/b):Math.floor(Math.log(e)/g))<0&&(t=0),t>8?(a>0&&(a+=8-t),{e:8,precision:a}):{e:t,precision:a}}(x,T,0,M,O);T=z;const U=-1===k||isNaN(k);if(A===h)return T;const{result:$,e:j}=f(x,T,M,t,R,U);P=$,T=j;const H=function(e,t,i,s,a,n){let r,o;return r=i>0&&s>0?Math.pow(10,s):1,o=1===r?a(e):a(e*r)/r,o===t&&i<8&&n&&(o=1,i++),{value:o,e:i}}(P,R,T,u,N,U);if(F[0]=H.value,T=H.e,q>0){const e=function(e,t,i,s,a,n,r,o,l,c){"string"==typeof e&&(e=parseFloat(e));let h=e.toPrecision(t);const d=-1===c||isNaN(c);if(h.includes("e")&&i<8&&d){i++;const{result:e}=f(s,i,a,n,r);let c,d;c=l>0?Math.pow(10,l):1,d=1===c?o(e):o(e*c)/c,h=d.toPrecision(t)}return{value:h,e:i}}(F[0],q,T,x,M,t,R,N,u,k);F[0]=e.value,T=e.e}return D=function(e,t,i,s){const a=d.symbol[e][t?"bits":"bytes"];let n;return n=s&&1===i?t?"kbit":"kB":a[i],n}(B,t,T,M),F[1]=D,function(e,t,i,s,a,n,r,l,c,h,u,p,g,b){if(t&&(e[0]=-e[0]),i[e[1]]&&(e[1]=i[e[1]]),e[0]=function(e,t,i,s,a,n,r){let o=e;const l=a&&n>0?{minimumFractionDigits:n,maximumFractionDigits:n}:void 0;if(!0===t)o=o.toLocaleString(void 0,l);else if(t.length>0)o=o.toLocaleString(t,{...i,...l});else if(s.length>0){if(a&&n>0){const e=Math.pow(10,n);o=r(o*e)/e}o=o.toString().replace(".",s)}if(a&&n>0&&!0!==t&&0===t.length){const e=s||".",t=o.toString().split(e),i=t[1]||"";o=`${t[0]}${e}${i.padEnd(n,"0")}`}return o}(e[0],s,a,n,r,l,b),c){let t,i,s;t=g?"bit":o,i="string"==typeof e[0]?parseFloat(e[0]):e[0],s=1===i?"":"s",h[p]?e[1]=h[p]:e[1]=d.fullform[u][p]+t+s}}(F,V,S,p,v,y,i,u,L,I,B,T,t,N),function(e,t,i,s,a){if(s===l)return e;if(s===c)return{value:e[0],symbol:e[1],exponent:t,unit:i};let n;return n=" "===a?`${e[0]} ${e[1]}`:e.join(a),n}(F,T,D,A,w)}},31926(e,t,i){"use strict";i.d(t,{WL:()=>s});class s{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}i.d(t,["OA",0,{ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},"u$",0,e=>(...t)=>({_$litDirective$:e,values:t})])},38171(e,t,i){"use strict";var s=i(54714);i.d(t,["J",0,e=>e??s.s6])},38894(e,t,i){"use strict";var s=i(54714),a=i(31926);class n extends a.WL{constructor(e){if(super(e),this.it=s.s6,e.type!==a.OA.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===s.s6||null==e)return this._t=void 0,this.it=e;if(e===s.c0)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}n.directiveName="unsafeHTML",n.resultType=1;const r=(0,a.u$)(n);i.d(t,["_",0,r])},54714(e,t,i){"use strict";const s=globalThis,a=e=>
vendor: 6,188 bytes, line 256
256e,n=s.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:e=>e}):void 0,o="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+l,h=`<${c}>`,d=document,u=()=>d.createComment(""),p=e=>null===e||"object"!=typeof e&&"function"!=typeof e,g=Array.isArray,b=e=>g(e)||"function"==typeof e?.[Symbol.iterator],m="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,y=/>/g,w=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),S=/'/g,C=/"/g,A=/^(?:script|style|textarea|title)$/i,E=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),I=E(1),k=(E(2),E(3),Symbol.for("lit-noChange")),_=Symbol.for("lit-nothing"),O=new WeakMap,x=d.createTreeWalker(d,129);function T(e,t){if(!g(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==r?r.createHTML(t):t}const F=(e,t)=>{const i=e.length-1,s=[];let a,n=2===t?"<svg>":3===t?"<math>":"",r=f;for(let t=0;t<i;t++){const i=e[t];let c,d,u=-1,p=0;for(;p<i.length&&(r.lastIndex=p,d=r.exec(i),null!==d);)p=r.lastIndex,r===f?"!--"===d[1]?r=v:void 0!==d[1]?r=y:void 0!==d[2]?(A.test(d[2])&&(a=RegExp("</"+d[2],"g")),r=w):void 0!==d[3]&&(r=w):r===w?">"===d[0]?(r=a??f,u=-1):void 0===d[1]?u=-2:(u=r.lastIndex-d[2].length,c=d[1],r=void 0===d[3]?w:'"'===d[3]?C:S):r===C||r===S?r=w:r===v||r===y?r=f:(r=w,a=void 0);const g=r===w&&e[t+1].startsWith("/>")?" ":"";n+=r===f?i+h:u>=0?(s.push(c),i.slice(0,u)+o+i.slice(u)+l+g):i+l+(-2===u?t:g)}return[T(e,n+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),s]};class P{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let a=0,r=0;const h=e.length-1,d=this.parts,[p,g]=F(e,t);if(this.el=P.createElement(p,i),x.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(s=x.nextNode())&&d.length<h;){if(1===s.nodeType){if(s.hasAttributes())for(const e of s.getAttributeNames())if(e.endsWith(o)){const t=g[r++],i=s.getAttribute(e).split(l),n=/([.?@])?(.*)/.exec(t);d.push({type:1,index:a,name:n[2],strings:i,ctor:"."===n[1]?L:"?"===n[1]?V:"@"===n[1]?N:B}),s.removeAttribute(e)}else e.startsWith(l)&&(d.push({type:6,index:a}),s.removeAttribute(e));if(A.test(s.tagName)){const e=s.textContent.split(l),t=e.length-1;if(t>0){s.textContent=n?n.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],u()),x.nextNode(),d.push({type:2,index:++a});s.append(e[t],u())}}}else if(8===s.nodeType)if(s.data===c)d.push({type:2,index:a});else{let e=-1;for(;-1!==(e=s.data.indexOf(l,e+1));)d.push({type:7,index:a}),e+=l.length-1}a++}}static createElement(e,t){const i=d.createElement("template");return i.innerHTML=e,i}}function D(e,t,i=e,s){if(t===k)return t;let a=void 0!==s?i._$Co?.[s]:i._$Cl;const n=p(t)?void 0:t._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),void 0===n?a=void 0:(a=new n(e),a._$AT(e,i,s)),void 0!==s?(i._$Co??=[])[s]=a:i._$Cl=a),void 0!==a&&(t=D(e,a._$AS(e,t.values),a,s)),t}class M{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,s=(e?.creationScope??d).importNode(t,!0);x.currentNode=s;let a=x.nextNode(),n=0,r=0,o=i[0];for(;void 0!==o;){if(n===o.index){let t;2===o.type?t=new R(a,a.nextSibling,this,e):1===o.type?t=new o.ctor(a,o.name,o.strings,this,e):6===o.type&&(t=new z(a,this,e)),this._$AV.push(t),o=i[++r]}n!==o?.index&&(a=x.nextNode(),n++)}return x.currentNode=d,s}p(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,s){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=D(this,e,t),p(e)?e===_||null==e||""===e?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==k&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):b(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==_&&p(this._$AH)?this._$AA.nextSibling.data=e:this.T(d.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,s="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=P.createElement(T(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(t);else{const e=new M(s,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=O.get(e.strings);return void 0===t&&O.set(e.strings,t=new P(e)),t}k(e){g(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,s=0;for(const a of e)s===t.length?t.push(i=new R(this.O(u()),this.O(u()),this,this.options)):i=t[s],i._$AI(a),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=a(e).nextSibling;a(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class B{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,a){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=a,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(e,t=this,i,s){const a=this.strings;let n=!1;if(void 0===a)e=D(this,e,t,0),n=!p(e)||e!==this._$AH&&e!==k,n&&(this._$AH=e);else{const s=e;let r,o;for(e=a[0],r=0;r<a.length-1;r++)o=D(this,s[i+r],t,r),o===k&&(o=this._$AH[r]),n||=!p(o)||o!==this._$AH[r],o===_?e=_:e!==_&&(e+=(o??"")+a[r+1]),this._$AH[r]=o}n&&!s&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class L extends B{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}}class V extends B{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}}class N extends B{constructor(e,t,i,s,a){super(e,t,i,s,a),this.type=5}
256_$AI(e,t=this){if((e=D(this,e,t,0)??_)===k)return;const i=this._$AH,s=e===_&&i!==_||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==_&&(i===_||s);s&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class z{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){D(this,e)}}const q={M:o,P:l,A:c,C:1,L:F,R:M,D:b,V:D,I:R,H:B,N:V,U:N,B:L,F:z},U=s.litHtmlPolyfillSupport;U?.(P,R),(s.litHtmlVersions??=[]).push("3.3.3"),i.d(t,["XX",0,(e,t,i)=>{const s=i?.renderBefore??t;let a=s._$litPart$;if(void 0===a){const e=i?.renderBefore??null;s._$litPart$=a=new R(t.insertBefore(u(),e),e,void 0,i??{})}return a._$AI(e),a},"c0",0,k,"ge",0,q,"qy",0,I,"s6",0,_])},21698(e,t,i){"use strict";i.d(t,{A:()=>n});const s=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));const n=function(e,t,i){return t||e||!crypto.randomUUID?function(e,t,i){const n=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(s);if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((i=i||0)<0||i+16>t.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[i+e]=n[e];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(n)}(e,t,i):crypto.randomUUID()}}};const t={};function i(s){const a=t[s];if(void 0!==a)return a.exports;const n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,i),n.exports}i.m=e,i.amdO={},(()=>{const e=[];i.O=(t,s,a,n)=>{if(s){n=n||0;for(var r=e.length;r>0&&e[r-1][2]>n;r--)e[r]=e[r-1];return void(e[r]=[s,a,n])}let o=1/0;for(r=0;r<e.length;r++){let[s,a,n]=e[r],c=!0;for(var l=0;l<s.length;l++)(!1&n||o>=n)&&Object.keys(i.O).every(e=>i.O[e](s[l]))?s.splice(l--,1):(c=!1,n<o&&(o=n));if(c){e.splice(r--,1);const i=a();void 0!==i&&(t=i)}}return t}})(),i.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;i.t=function(s,a){if(1&a&&(s=this(s)),8&a)return s;if("object"==typeof s&&s){if(4&a&&s.__esModule)return s;if(16&a&&"function"==typeof s.then)return s}const n=Object.create(null);i.r(n);const r={};t=t||[null,e({}),e([]),e(e)];for(var o=2&a&&s;("object"==typeof o||"function"==typeof o)&&!~t.indexOf(o);o=e(o))Object.getOwnPropertyNames(o).forEach(e=>r[e]=()=>s[e]);return r.default=()=>s,i.d(n,r),n}})(),i.d=(e,t)=>{if(Array.isArray(t))for(var s=0;s<t.length;){var a=t[s++],n=t[s++];i.o(e,a)?0===n&&s++:0===n?Object.defineProperty(e,a,{enumerable:!0,value:t[s++]}):Object.defineProperty(e,a,{enumerable:!0,get:n})}else for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,s)=>(i.f[s](e,t),t),[])),i.u=e=>"resources/js/chunks/"+e+"."+{3:"aeeb4b34f8350df8889b",10:"a1bebbe5b537c8dbaf77",122:"032f0655cc3d765573f6",493:"df72461322bb3437bf64",511:"bb3f89b83fd1ceaf236a",534:"50cd3222421a6f0083e0",597:"e6f19cfa89b36ebbf388",819:"3e0686c71db4f933d126",828:"ac14c57bce32ec538800",893:"8de6bb609e31181ac973",1003:"02487116a919dcae6d5b",1059:"6003b60870d456a681c5",1112:"35b82eeb9579b353920e",1556:"8362b69d00be427dfd61",1732:"9d7246d2dcc970bae66d",1811:"d1344765b2cbeaeec726",1828:"e44068cc6b13739e0a66",1961:"31cbf9c19d9032038031",1984:"1a95312542025c55a9fd",2241:"c3b7bd473077bc629ba1",2354:"6acaecf04d1f9434ad46",2374:"5516f6f1f9e74ad59c55",2410:"9bb2a104579c7413cef6",2550:"09196b9101a97ec1d536",2570:"735e0eab751a24daaf82",2611:"bc01279af518a685aec9",2695:"08ac2cd1339663a966bd",2775:"9a1fbda3b70fc1360384",2785:"10f1307d59b7e81bbcab",2924:"121440602cdc4fd47853",2937:"87ed9a699a47ea3128ab",3055:"32ed5997c82e79130e64",3173:"62ec40e6f6e7f20cba37",3185:"380381a9e4ce6969a980",3262:"23187c3a433a08b701a7",3292:"4fb8f39093d535d586b0",3299:"3c783d3e
256608f0e724dab",3360:"0d7b30751e7a42dc5f10",3464:"08897573e3fe65b55565",3518:"940b0d42867f3bbd2330",3562:"9f8ee77b1c43d40d6bd3",3594:"bc8f95a2c3bf0161c829",3660:"db57c0ca3d1c7de6c4ed",3757:"d59bc32d4a5df85e2dbf",3763:"1adbe842bbead0d78cce",3786:"7167978aa3c81c5bf6b1",3789:"37d0bb03f446b070d1ea",3804:"76e8ab82802e7e798442",3903:"0cf21cd25409a7187598",3989:"6765eae7243b91e0d6bb",4126:"34fe20c5263ba5fac2cb",4197:"c64f330a6a0b389ebc90",4245:"77807ed37a5f02caf811",4332:"3139321941eca15c7f92",4385:"073fa9902376ae502a1a",4435:"f295bdecf0b170f5a910",4528:"2a736a0f5ae5e4bf4093",4642:"fff26bc55788ae9ef6d7",4655:"dcc36d7debcaf62936fc",4788:"33663f330ac7ac5e8d4f",4891:"7f9cb62f3ad494fe843a",5018:"c9ac6f98022cf0f8a607",5084:"7a0e0afec8efa49be1a6",5432:"fab5c92a510e88c57d5e",5455:"1c497fd09fbd8a55d64f",5475:"651a6d3303b86092dbbd",5619:"210874e520c0fbca56c7",5712:"696230df863b0f45b437",5984:"62c124595828fbbd1585",5989:"b5c3cd56b65e1807f9c8",6015:"0f50c6613de57f39f0d7",6250:"77fcfccc5997eea839a7",6383:"babae87b96145fc3debc",6468:"7d70a7f9f11a6d00ea57",6537:"d53ae0852f3682b52d59",6623:"ce68be4cadff644fc82e",6694:"8261d6dd1c579da1af9b",6752:"69753c8d115f24ee4dd0",6753:"37830de6503b16b75f63",6821:"b5170da9de53bf55c3ac",6876:"7e28576c18df30001982",6887:"3f384daf4870f835ca33",6960:"74e0edc2ae0ee2e6744b",6989:"cf0928131a1bda6b61ff",7027:"1f541ea0152f70cf2478",7028:"29e74ff9d7beb64d5281",7052:"f93b98589a9d6e105c21",7062:"36be75642f514f15c26f",7195:"ac1e04da590c39c6870c",7252:"aaf6570d485b01dd201e",7378:"51e224bbe2637913ecb4",7381:"5490e4e6e174aa431777",7458:"74fa2e000059a0228aa5",7477:"26fca1ad29eb84096d74",7500:"a0072dbcf940fbe37030",7580:"30f1a6c8ec401cf20332",7636:"42ba4d91b47b25cf2af3",7656:"0b549428912e8daacde9",7747:"6c31bd553848d1ee0b87",8008:"5999c0e23d00f846821d",8018:"46ab9b0927419fd33945",8048:"14b72ad43bd51c7c673a",8222:"5b6b07b632e6d892918a",8244:"e2de398ad182218e5529",8300:"10ad6ad981ac8936cf25",8316:"36313b0a34e7ceea07c6",8452:"eda53b465b04d6ea5e70",8537:"943020ee739d837274fa",8544:"527ddf6ac5781b656ac5",8552:"dbd862bdeacaf4714aca",8641:"c58e9fa388c469df6c6c",8672:"4f3c5d970283d3489c08",8963:"27e460c7af4131a52997",8969:"7a017d89f4fdf2321e4d",9182:"a0f7cb67828d891b6f1a",9215:"3bb31ea0b3750bd668ff",9263:"9d55fd276a1a03262dbb",9281:"b9255cb7cfbd9714bf4e",9469:"7f6d140067969d80f15b",9528:"9906a3cf230603fca4c8",9584:"e13758b67b221468f058",9595:"d90e1173e6d305da4478",9873:"0223712567f4c2bca6a7",9888:"ff4cfb11b2bb673dd2fd",9901:"cbcd687849f8ed6f197e",10105:"be3b145715d442b0c019",10380:"68deae42ba1d8229d193",10422:"73664b9842fc780fff44",10631:"6d14d6f02e4d688e9be5",10893:"b1ce03a6c5e3a3c6f703",10932:"eb6fef406b53e85ec00f",10985:"23ef4103cb635130cd7e",10994:"d8daf6ebc4a9ce37fa6c",11027:"cc7709f55c0b5313ea44",11136:"ba43a7c7b72edfef5b64",11258:"dbee016540ed455eed69",11262:"daddabe5b622f7cd3752",11523:"725d1a14fa8d3b6b7b84",11537:"9abe91b70eb6e2a7b8b3",11633:"1af48edbafa718aafaf7",11748:"020a0cc7ee2439c547ff",11781:"cd4a81edc32eefaa4edb",12018:"5c5ee21aa07627075420",12126:"6d9290f0fcd4ade140c3",12256:"68c8bd4daa1be5446cc5",12275:"9a018900c94516e00ee6",12279:"3758b26269e192281523",12330:"ff79fd46aa21d1d8b915",12380:"81b5a6c691f667e989e2",12400:"60f414d37f42146102f1",12620:"7fc1e4d38365c38b1f8a",12646:"2568bceb0105bcf9d2ae",12804:"afa6ea02fd7205d867d2",12841:"68a030a1ca74e33069e1",12905:"3f297a46861cf190182f",13060:"ea0f2db94528c2795d9f",13100:"04cbb10d0e0c582a88e8",13231:"f7f865389ea09a147f1e",13278:"da7c0b3c03f6ad085ddb",13339:"61896aa563583b6f13d8",13408:"96629743a2018ab827bd",13769:"ea176e010ebf6958a106",13837:"cba5c4d8b58eb6938906",13989:"64979783075aace20f3c",14001:"4be223e475d475fe6593",14125:"eab05752a19f66c5d736",14208:"5e2cd9cf46633c90cfa2",14215:"06ed0916ca8b787410b7",14287:"aa575460c9c88fc736bb",14297:"817f8c91f0155e9b860b",14347:"7f6d709e3d03bad937c0",14370:"b636637bf8d67dfec3a9",14406:"1301513dc89fb77bf918",14450:"62e1f24c766e9a3eb459",14465:"5bd2f190b99c9d1c851f",14490:"a23c1061d799b64e0072",14610:"2dcfd4df49c50426dbfd",14639:"86162c12cc666af0e5f7",14914:"d8656d392bc68ea5298e",14919:"ff6a0e93ce0e279007a4",14952:"928e1e054282fe6f5606",15130:"9d93908958a8334b3e5e",15289:"5f5247e62fcece1bdc38",15373:"cc30ceecd98a4ececbc1",15399:"f4e6a3a78e12aba2e33a",15417:"17176c770243782e27cb",15419:"a2e99115f849f763b6c7",15433:"2794bf5e56ab0b679acf",15736:"0da46c3405ea7b241ef3",15756:"104d40f15a7e3a4e58ac",15799:"466a11056f60a7a598e9",15890:"f4da50e6094b92366e71",15912:"594791ce0a340ce3367b",16384:"603b976e6691496cad49",16414:"c89dd8b9c62714ba51ed",16439:"0c4a3bdb6491f92ec8b0",16625:"b6cb3b4c464df8379f5f",16666:"bc141d6196e1d62d5c84",16716:"6b6343b8c3730d35f4c4",16818:"05b14f4e6552c54fff82",16969:"57fd8e03928b9cb3a026",17196:"0cef80a9def06237c2d2",17519:"f2323132e00932eb8e71",17555:"1eff81fa36fb8a7885f2",17703:"13827b22ca44b5401798",17809:"27375b5211397e6416a1",17994:"4a8affe0583be9aff853",18094:"b060da7869dc87acdc22",18095:"e27ecafa92954051b92c",18155:"97059dce3da6170d3138",18203:"243d78682952425165d8",18239:"cf88f5ab5b72adea38e2",18335:"653d99fa8ee11838dd2e",18431:"0d1b0ad10bcf1d3966e0",18461:"98092abd1176b66a9126",18509:"c13d97f7bdedeb340bd9",18743:"9cc926475567a7ad4617",18853:"05c9433a621bc71313c2",18939:"6332089c255f780070c7",18986:"9baff253e2df847a01ab",19134:"8aee5007ebd785e4acd0",19159:"51b0ce9043d08fd3f07e",19182:"0c3d3fac959f8fdd3bbd",19450:"c8d575e67d9718616cf5",19695:"b81
256de8502c1f1188ddf6",19702:"eca1932b153f5c4bd5ec",19872:"46cf17ea2775462c6af5",19897:"d19d613fb347f40f83d7",20022:"9752a720de96c9d8317f",20186:"8760ecdae31c11e33e24",20199:"e7f9061e2e2205381edc",20262:"e0beed26b764a886d0fe",20449:"77904933c66928deafc1",20474:"7f31ba25f7a6bfc85b7b",20534:"5fb4474a8b509dbdd15b",20540:"b776ac8a60030a05953b",20603:"58313f1b48b5e5bd1f02",20646:"5f65e576f2cf0fa59c05",20670:"c9e27c68f92f76beef20",20677:"c13368040d243879a2d2",20960:"deffe5d52ba06f09b7bb",21001:"3596946843672de8f3bc",21073:"fce5084f972ccebb9bb0",21075:"eaecf6ae1ad0d48c9f6f",21150:"342e1c5d9c37d1052a8e",21280:"ebd20ce4d1ec8088d5c5",21362:"10936699b1e6166c150b",21363:"12e359961ecd9f6eaecd",21574:"fc5e7bda56fcbf68bd46",21582:"e147a488184f98b096e7",21603:"a7d774f697f75a90ea2e",21638:"eef6430f0a0a2f74ca08",21754:"277913c3403e5b900207",21881:"7f5b92c5730a5fb1b859",21918:"a3eb3cdb7ccfa1ef7585",22035:"adf739b45a0f3abc7407",22081:"ec16110bdac3e1c2f7ce",22101:"533af81c1ba965a3b7b2",22224:"f1212c86708692b40fa3",22363:"2b2d29df2523ab4335dd",22382:"2a209064a981bf62289c",22640:"75143c8cc471c35d4843",22659:"e72cf22cd3c22a72d732",22764:"ba808a7b939ae35fba11",22814:"84ec0dedc860bea7dfee",22886:"93150eb25cb31ee4f4f8",22965:"38bb4fcc7eeab4e746ec",23009:"32cc64dfdf60955563c2",23268:"9ef84ae58f7e05d45b90",23328:"943f3bc5033390f921b3",23430:"40702fc88bc78f5eb441",23503:"be7698ce6fea7e5552e2",23600:"7e699d9714d0302faa4b",23602:"8421856cf5d7863a8033",24e3:"4147fefdcdb532e02dff",24107:"afbe8c4b9a1879ab2aa8",24153:"37df0fe982b2b1e6d628",24267:"445f163327bf1eb1980d",24358:"2303f9f446cae22daa6a",24396:"abb250ba0f661d79f954",24423:"ff8b03ad29ca47769872",24497:"778e1888a763edddcb08",24675:"ee5b7ebdbfad7e6f53bb",24748:"7c77b1b10a1125131fce",24792:"436f65da1492fab582e4",24822:"98b528bbaa826c0be94b",24909:"200a0810d8605cb9fd08",24933:"057569de30e91d145614",25019:"e9694d70312e3d8b0d6c",25068:"55e18c49e2031e6d0275",25138:"91b3c71d06ee8c514acb",25305:"0cef79efd453ea1b9a58",25552:"16ea3510882ebfa10eef",25720:"12efaaf977952d97de76",25829:"fb84fab94bc9a658670e",25914:"866158a1d2535f136c96",25931:"06d4fabf87810b2fdccd",26203:"7059d1fe10e75e23ed47",26246:"1e5ddaf448e433cb1aaf",26250:"6bf6c45af46ee7dba5f2",26261:"ae849592f8c8e445e571",26284:"5f546b2a943f5fca8fb2",26388:"0354fa25b4a8662cf777",26409:"8a6a8adb6d568665fecb",26518:"41c098aee143c069227c",26591:"589c9663de6b6a593c23",26667:"665fc00a9d3714c133c6",26806:"010abd8c39a9f6dff792",26809:"11a66e18df107127cfd8",26815:"11a089e8f84cd31a1b23",26899:"0450425085162d0d3933",26923:"63a6c485eeb63ef58370",26951:"cafb133ff620f3dcbdbd",26961:"d5b4f46023eedde3002c",27020:"2c7e964d0a62a3aa2785",27026:"8121740cc4ee02b00237",27027:"08f96cc1626f9b93c831",27041:"a54fc4d1f8b6a0dfed40",27085:"732cfad54d338ab243e4",27193:"584844d44de7e85a0e75",27230:"4aefbb1e5c03cfa0b6a9",27234:"3f4a8931c2c94cf4baf0",27431:"e004100d51dabccd947c",27467:"9e8f2607974c0e5e7f6a",27560:"135d35dc3e3654f0848b",27579:"a71d0600c1000d716779",27654:"655629182fb857cd61a0",27683:"957b24a41863311c0204",27766:"ca5783f03868c31152bb",27776:"3f54d219a24d27e7a50b",27794:"9d9755868a95387eb0b1",27826:"bbcddde47a8a16a14437",27904:"b8ba86c51528efb34c68",28006:"8cc7b6e868974449d360",28053:"83dab67088068832535c",28150:"97a9e84cedc5518bd815",28596:"74c0bd677215feea9f35",28683:"2acf00a0fdb4d154ae10",28685:"85ca9a60d3e0c777f69c",28835:"d9db4d93a30caa9efd56",28838:"0d8658e1e51a469f551c",28883:"0e2ceee4c4a1dbe70017",28888:"9749678af7c888381da3",29048:"562cf875cbdf92f11031",29185:"0dde6cf4c2d48d9c4658",29190:"8c1567baf6bb68bafcbe",29200:"252c43dd3276ad52e32e",29258:"a982356efc9aa078d97c",29432:"e55c89953c8877cf6b24",29438:"dadc14cf00e72f21d854",29486:"e6fccea183de745ee9c1",29492:"70dc2b26608bad0bb37b",29527:"2d50e6c03f10e41f7033",29680:"e1b4a40cee99c92fb9d9",29722:"acc6a404fe1a53a0a562",29766:"ea9a2d88ec2464ac9f91",29781:"0fb00e63820af12046b1",29983:"d59cc0f93114ef108f81",30067:"ce67124c985985cb614b",30082:"4098c339306c239bc76e",30166:"bf55ee6f0318c2aa986e",30341:"bac2ee8dca643a745d8e",30382:"74f1a4dad916876474a1",30403:"4a5c4c5d3be24beb4a68",30426:"fb7de2898875b958867e",30456:"d135963a77741a017018",30535:"95da2c5f1b653d027b99",30565:"51ebf1eb6b93cecf0072",30613:"175a36358d5be0708cc4",30729:"baf22d5e6a8502ca07d0",30808:"d2adc190bb23aaffa884",30959:"fcaf31b0306e98e18a9d",31053:"13b6a536127bb7aa9620",31169:"3fe645ae371777a476b0",31214:"0930404bedceca2586c7",31561:"0b08fd4c239ea444e97e",31645:"f4cf9ae473a8b5cac8e4",31745:"02417bf7fed725570680",31828:"9bb151def4c513da3ff6",31937:"1fbb5da13e8fea77dc48",31990:"44a3b92446720b21fe7a",32e3:"db06b3bc0df84c6d113a",32093:"96a9ccbbd4e3c6209fe9",32149:"a6b0ab6715a335ec409a",32353:"2bbe63d90e1e471becdd",327
25653:"90556e76096ec41fc4a9",32913:"f424030e7dc1ff308a0e",32998:"c291972ff33cd34ba1dd",32999:"4174a78d5beccede4603",33170:"598fa75c90967c07e017",33177:"da154328052ef672ffc5",33210:"2fd3c46235367ed30173",33224:"79a1d357a44f724a0dc6",33371:"08111131fd5aed28dbd9",33664:"e8ef6016c503c9e8a387",33716:"768bf0d2d7da5212e21c",33841:"cb5dcada39614d4cd24f",33904:"b50b9aca920d2f888339",33967:"9c0851b1f365bb85804d",34104:"fb7a53c61f19f5f63044",34111:"19a02c219f2167baf71d",34210:"89837d64c7ca23510482",34254:"c8984217af52e0c0f04e",34270:"1eda7774e60ba6bc7ddd",34377:"10eb9df98461efc85ef5",34528:"f5283011e4fca30b3d30",34553:"dcdb8eea5e4b02d351f3",34618:"10f0f292c2b7e922b775",34763:"ad61ba8dada3cdf28d7f",34787:"4977447e54ae58058e2a",34814:"cc79f02ca92853840e3d",34816:"6617dec99faa7aecbab7",34835:"97b04047a434a991348e",34847:"5b9ef39edef08e20d3f2",34923:"5f92509ba54038294564",34946:"bca3076fd4714f29928f",35002:"a5d0139e372774c9c9ce",35138:"dd7ff477eeba7c202498",35165:"a79329a6d71d359088b2",35235:"132406a6ae6221c50f8d",35368:"c513af50175b5243aef1",35531:"14f60f991a1f60133e7c",35542:"51bb7fd2c19b6a6524e9",35561:"f6164949676141f2007e",35950:"55bc0ab2927978cb1b8a",35964:"d250384112d33e6bacde",35972:"336a13e12a2e17e32203",36213:"f2309259f458961f4db2",36300:"7069eb270f976a0d9072",36402:"c2699cd6d79ce405bbf4",36422:"cf518fd83cd095890056",36495:"d6de9a40e6eb78132451",36505:"373c8e265e0728187708",36594:"15417946946c1a57ab3e",36707:"38a52b4d30b26b8def9c",36803:"d16106b6d8a6a6d22dab",36833:"3a308530c14ba058d96e",36866:"858e16eb7fd8cb65f659",36891:"d9fe33a40e6fa754a6c5",36911:"5d31132159d7de31e051",36919:"0dc86379bd7c83b25e6a",36920:"5f0041d1a3d79e86f33d",36961:"e48d55c5308e8152c78f",36978:"b57e60ef60c9fdd1fcbe",37286:"13f1f10a3d1abab4e29b",37340:"0cf16a12d29204bd5b43",37352:"a7c77db9bf99ad122fb1",37383:"febf454fce7c9c367881",37396:"838900941e58cfd5ccd2",37415:"a3e4500d9e91c0027832",37431:"132f3415b6f866089939",37621:"1b915c90cf437ad627fa",37666:"750eb49a877e1d9e01dc",37684:"f2da1f2de30330ab014c",37718:"c87273a4b75db1518df1",37771:"c4a64894a2fa98c33fb0",37802:"1d9ab7cc26e3fb1e894f",37957:"8e24d8b45b5c069b898a",37988:"2ca234c204ed683a6c58",38021:"579cb5cb7fc0d1f620bf",38038:"bf92ed281270ea412bdd",38135:"31f6849e095e8639b841",38227:"bb268a135cde4ec13a4a",38330:"813bab2240f3bc85733e",38345:"72b9aa23572ca9b1218c",38353:"5ae1d9a0b57f16176a9b",38372:"bd998de05c2f41b14d31",38427:"f5a3b124405a98cf92e4",38529:"ae106dd27b16c5a3319f",38677:"edd067923f9ec9f7db94",38790:"7be298418f6f2a7f9cdb",39123:"a724b44f067ed5365d4a",39135:"ed7a7f1c0ece75703bfc",39176:"237af84bbb3203ed051b",39220:"91e5c165cd2d401b4e71",39234:"715c56f06898a4aa6e33",39289:"6a950789ff74827e0443",39321:"cacef7811918820751e1",39393:"e446653ef9eb515695e8",39402:"6a1cf6a81c230f747050",39525:"db76ac62a4fd051ad4a7",39561:"f2022668b325e92d05b8",39609:"d0e2cc1a4d2dc6aca172",39627:"c5d604cd821b16afbdd1",39764:"71bea5760c4a3ff99681",39772:"b7209a9f40146e5fdf32",40053:"0dff6e83931811ee3c7b",40069:"ad9f39c26dde52bb30c1",40079:"4c4fbb6ab3ed
2565a529dd3",40085:"f74ad453df4547232be5",40128:"42ce0a8d3f884eb2a2b9",40205:"f2641627c3d8a1bba839",40287:"0650e294a7015876075c",40442:"9c846af1d96fca5deb7d",40480:"2fc5e240f3eda2476e63",40496:"bbb0fdf9d4f41ee69fd6",40567:"8f4b4b6a98bdee6d560a",40800:"7bd8b21eb0733610b4f3",40806:"014c93859e199e68ed38",40818:"40b581dba49f8432d8f6",40863:"58decbf70e3ae809de8f",40966:"03e6153ef572e91408cc",41107:"d87df7b9497013dadc5b",41142:"67cd7accbce4531bde59",41222:"040d50ec07a07f98d73f",41258:"cc17a26c1b5ed2b9b2fc",41300:"0af1b9f5d2d6e207b0fe",41373:"71706a489f505e1e9e8f",41603:"59c812a6e9e1fcac56ce",41637:"620e21961b97879ee003",41649:"4bdf0c75660a40f3b179",41724:"064df5e90545d3ae06e2",41751:"47d5e94f61d593d35235",41895:"68bc918821a28a7792d3",41911:"af1f143b56a3cccdf187",41920:"17415c044471f65fb1d6",42029:"c9444caccf7703575394",42043:"16ac807e4779081793de",42051:"6f3bef618573be2ff0d4",42213:"1db20f6c926c5e6aa5c9",42273:"ec424504b17d6155901b",42377:"3c1427fec51e0947f5a4",42436:"1be2ad7d401beb2072fc",42455:"016d42525a11f1d36dc3",42465:"0b295276a1b258407769",42719:"9f807e4bab46a2e2ed42",42855:"2ccbbfdd211bea57eca6",42944:"75f82acf279e2b9d95d4",43028:"e7eb491f576842d454b5",43227:"6b7e5129135c9e506860",43260:"54b5b810815b4e96ccc4",43644:"e606f981dbd37ff2e893",43789:"4a52285fa19991ccc200",43804:"8537e1acac9ca2e51f1d",43964:"ae54aff398654f6c50ea",44026:"cbe4278190c236a8ecac",44040:"a32ffa194f5891d536ca",44075:"48d7abd50fd4429d8f74",44077:"1d1bffb0e4a8dc16dcf5",44124:"df871152a89dcc73cf91",44237:"3dae941e61e6dac75b6c",44460:"9ca4727a949964b6e99f",44707:"8f827cb91a0beb7aaff5",44723:"3f20508daae72dec0a66",44769:"b784f861a082a55d9513",44966:"cf4071ed845b231a8b97",45e3:"9c293e093172b06b5f14",45001:"3a5471456ca68dbb30d4",45081:"652908d2b9361f545fee",45112:"395022978a27d9a65029",45115:"1909d5cb75ccc83795f4",45213:"f88297c4d73c9265ceba",45316:"0919d83ceb916cbfe71e",45355:"28b10772a7e3076cc827",45398:"ccefe145b14d5c0c9af3",45431:"02715f7a491042c6bb94",45633:"07359624e2826c8a8d1c",45636:"4523f2b5d2e670daad9d",45637:"62d2380ef0b7365dc76c",45658:"76941ca31ee5f677ee20",45741:"3e2b986f45d00b2f57b5",45779:"088410c04c65048c5457",45907:"7e2cdab0bf6318f640ec",45970:"1b7a4e017945004b58f2",46073:"1b8a10da0561d41cd5c0",46167:"d9eae3aaca3f003cfea6",46251:"f3a7d2019467ad1914bf",46397:"d6972176eb8935274d34",46546:"1f5c6071413cc2abb52e",46621:"a2a332b2bc0d1b6cc636",47149:"3d64efa3b8aa0bf0b3dc",47232:"0befd3294c8e75e978d4",47296:"8f960c9a540fa88e7c49",47310:"c69ab55f8c9d7c8deb41",47388:"b203d17c9327051cc540",47408:"cbc61c4e90e1866bce24",47640:"8fd380cda1d21e6520ad",47650:"9be11ae582ed28bcaed0",47653:"535e054e10aabde7d09e",47700:"9adc81179cf39c606415",47780:"5831bf51384ee6bfad44",47801:"2135e47a85ab6d4134e5",47883:"f911642b82f3ac0d5618",48136:"94b8317c6de19ef9095b",48206:"7dfbb0e9094139d1f23e",48273:"055bede9022bcd651236",48283:"46b24c78aadcd91b50e8",48405:"8b7b5f01945f90582bed",48472:"28e29f4d9b0ccd2a5320",48483:"f4ed23cd1f8f6ea7156d",48490:"7c83e2a008244207a97b",48557:"b834e4abed4f0fb7a029",48619:"1e44e0e3293ee70ee775",48717:"c60d9c4bc6c01515b490",48792:"f5360401425f3d8b5547",49157:"8589f8b3f3501a128a81",49197:"41edb59fbacc881f1a6f",49263:"610d227aedf30c27cf21",49432:"307ad167c130c5ff1fb5",49464:"35afd97bb63de7949c11",49624:"2bc227bdcb59c1c8e15e",49848:"7879a4f66c4ca7bb64fc",49933:"bc443fa4c354f38b47a2",49945:"cb14d920c5ab55637e5b",50110:"76194848ad37cf65f312",50231:"9470479554589c61c46e",50406:"ddb8bf4476c63eff69ec",50493:"bc7c97a2ed86eb9dc21a",50543:"6096a54ae01dcd72ceb9",50627:"eac6982708b6ac77827e",50728:"6ea9f4ab82b5cbb24a20",50733:"b55433e93b5de86476fc",50799:"c503724b0f3d61d12770",50835:"86f4755633f9dd5619f6",50931:"a6d76c29bdb74d69604b",50950:"12fb9f853bd7a393b369",51054:"875994618d8400acde38",51093:"0ba8fc910c919e6ed1f7",51122:"1f8263ba527192e6ef77",51185:"16bfb3d58fc59f18a67a",51315:"dba4623d9c4938e020f4",51412:"d1d6d1afceb56280acca",51484:"7aa52709c40f99cc4729",51485:"b4966f5237aea914669c",51513:"107d576749be187678dd",51515:"fdbd0f9815756f3b580e",51665:"cdf06e61659031e43ee8",51827:"bbcf522f0e4fbd10626a",51954:"8130929ffc50d1883c49",52239:"16194047764d9c0e46da",52244:"9b0e5a3f8517b54141f5",52319:"30e647abd773014a3a5c",52351:"0bfc1a65f5288e324454",52398:"bc2bac3a171c24ac8532",52463:"7f3cf3d5c9beb3ea8301",52544:"7b9ecc25d90208e27246",52551:"e32408913bd92163b3f6",52565:"e2cb5879b9267ad28a0a",52593:"74b2947f22d568d35687",52737:"cd4c42efc068323dc138",52801:"162b5b96ac98dfa35d35",52853:"26f91e4206cfe0e2eeb6",52903:"ff978134a98b0f980ae4",52931:"769585313ab4eb18df64",52969:"dfc9bb670d344e74ada2",53107:"dd25d87dadf7fafb7412",53175:"f49744b82f3e78de2015",53568:"500ca3b5a89543c399f9",53582:"37b2494370f17ed570f8",53584:"bcd3cebf84f97c24b89d",53639:"884ade719bd360f0d073",53644:"de0b9272174d65ca2f36",53737:"0638c1cdfcf587f5be78",53834:"ec4e54299aa614e8d78e",53845:"15227ba2d2a0c3452f2f",54528:"14888082c5c0bc6e100d",54544:"034e87b24d6f55a9e28c",54609:"3a688b2cfb276dddc046",54722:"eff304b3ed258bd
2567e34e",54801:"3df25a4686759d819f6d",55047:"b25d5eab5d43e0c810d5",55060:"59f18e12254043edcb07",55310:"56a1e734171cb0d6e2b9",55371:"5f43c972618bb027a7e8",55390:"6a3398b05b69c002e099",55537:"8a8ce06e0f3854539df9",55647:"97220d33f19397c4e2fd",55655:"2dd135bd77b7121b6ed5",55709:"b7236c776185440e7ff7",55921:"463725ee79e577235fd2",56002:"762f3543f5a9b3e8225f",56031:"df7e78203c6a8f4431c8",56095:"a6f2b43999bf5fe77e10",56211:"fd6cc9f97a612450363f",56257:"e6c15b9a98721fc03417",56474:"ccdb4fdd64d03eb4c916",56523:"48c8d8f4506ed0a6be95",56682:"e66ac5189b47d42cb62d",56873:"ca280cb21e6d5acaeb39",56951:"ab8a0eeceb8528750dc9",57129:"2a195c9a61f2ede5d430",57148:"78db8746c9bc80d14240",57395:"9335c9e6412a6e773a3a",57487:"f04f3b80401ffb1ffdec",57680:"ce6df95d8154172e02e9",57805:"33e7c14ac162af88de6d",57807:"1e4746b5076b7f63b49b",57901:"b52d43df6df143650c3a",57940:"316a6ef3e9b0ce035e3b",57962:"a2e77b4c736cef40277e",58100:"5e3e95d37e50b044661b",58126:"a7ffe868e3d19f7726d0",58131:"83ae5c217bf251a0359e",58199:"da887370226fb60df50e",58340:"dbe012bcde05417632be",58487:"413fd9482d2b54824c06",58490:"f7790dc1671007f3af27",58524:"ad5ea6423779cca48cd9",58531:"a104f0558a5e10a26918",58601:"c76c7e303e7f2d8b99b7",58755:"a7f68406113b8916b149",58762:"78721fd308eae1112eab",58838:"f8dfb01c0844c2b8a9fb",58957:"4b12ae6bf73f87d69f59",59006:"c9254db03880bd7c5b04",59020:"2e1e23d4759a3f72fd9b",59046:"34384f45939cfefe67ae",59063:"7d1e94dcc5206886f29c",59099:"120b88abfc9f895ba77f",59155:"f32e10d73aeec524dc77",59157:"245f9b240b47bdee3819",59177:"3b37a8855938b5a6eeaa",59267:"461977541ada001fb0fe",59315:"e19ea1e926bddbe8832a",59318:"67223cebd9c8f915e48a",59474:"6d1dae24ed046b0ec76a",59530:"13b8b40567df74a1e15d",59531:"414409d0516102853924",59612:"2155e0eef34645ca047c",59661:"d28afb2456839cb8cf8f",59701:"70f7a946ee50b2f80efe",59758:"b3cd3538e75c85d12431",59762:"8072e766476db65ba30c",59886:"bb98f5bce8dac576aec3",59916:"5780ffc8135e5c0ca420",59991:"475ac900caba96310d56",59997:"278391119d3b03cf9e91",60007:"f7ced5c257c8bb6f973a",60068:"358de8ef18fd4e775302",60071:"4fe9dde1eea6be96e737",60233:"4af92171bea27fd7da48",60399:"a7a80013f5cf0eb21ba6",60434:"97674828399d746dd89f",60457:"b979e042bcfd304830b8",60492:"b95bd03cf52fdfc6937b",60522:"8506cbaa0cb41bd634a8",60551:"1a8d563a3da74f15badc",60655:"91dd96c142b31b894af9",60662:"c477dfef556716d309a0",60777:"bb98f9bf2fae212b5874",60995:"b2af0aa1353bc8bd96b8",61201:"d2d27eb41a9e98b4bf43",61224:"8a0c02ee2b72fc459423",61275:"c2a52aadf9f96910a83b",61348:"4fbbec8ffedbac517951",61385:"59a557ef1ac2ed144258",61506:"4a52629fcc60d6d30e01",61671:"7910821c3116fe1a8c3e",61709:"8d7e7d78e4ce8cf6911a",61746:"0e3dc15eb9f6138e8a13",61779:"1a31e3f5eb2f8672a5c6",61810:"7c0348623fe36f2ad127",61862:"e95e5ed1147cd72db937",61942:"756de5b0e1acc395216c",61996:"cc37b7e670d8b834d6e7",62076:"7c497fe597e2a778f44d",62149:"30c0de0c5688f08dbcdb",62175:"202addbc427de7162321",62184:"2cd7c565b8cdf6818d87",62272:"45edd8dc94c4c8554567",62463:"d7d470e43e3dff87bd2a",62624:"57090185928b9bd54cc6",62733:"01895089c3964edf3540",62750:"776c0175de22ca26f56b",62833:"45e1cd1a6b878261dcf1",62909:"ebc176e78528357d1712",62917:"eb830f64fba0308eb9e6",62947:"7cdd27518995d208f656",63006:"1c464cad53385fb745b0",63039:"166462012a1ce34678c4",63061:"46a614ea78cbe362828f",63138:"505e53064307da7a8381",63255:"a93fd44a849630dcc22e",63334:"956fc700ef6132363833",63350:"bc10db90de22d098f287",63424:"827ee992e70a357d139b",63638:"48d3522570167885896e",63676:"9675a413e64f5f4ab302",63789:"970ae570921f26adb377",63815:"8e58677d77c7c179c7d7",63856:"b0d54701a8a4fb183570",63960:"70c808b9bdfc42570393",63989:"a650971e0da82b36f981",64018:"01dcbb53bdda9d2773cd",64108:"60d9c6a3d0c48e178026",64115:"78d7f6aaec244811eab7",64140:"806e7a2c737d9274ba05",64233:"a037f299735bc5225bed",64244:"3a05aa20fc36fce1c0fc",64460:"47824d4585131f9eb1f3",64467:"23169aea462933eae847",64637:"fd7bf4ff206bcd98612f",64768:"11fbb2df29b9a2c598a9",64791:"649d7f24ca530243ca7f",65066:"2baa7effbbaca22ebcd2",65152:"cce8ff459d74d3fdf509",65157:"f4d8a837b2e486889820",65211:"98f3caae0db356a076fb",65489:"8df2a87216b35c279145",65495:"adec603a38f81680006c",65536:"67fb55dbe4f05e821f76",65538:"e77d822405e118c3fe2c",65550:"17a2c5edcb5b45d9a76e",65561:"807c4e2b3bd027c9d49e",65697:"b28a0031708918b811be",65751:"41032737e24c314e3e03",65752:"03461f508eac18b4975d",65782:"c66ea49951e3c0b3e4ef",65943:"7b73d77ce86cc735d431",66004:"805c726dc570e5f0eabf",66030:"677e3601bc42b3263d16",66036:"747f0b79c16ea569f70d",66081:"e911ebf08af5ff2f4359",66375:"86bfd91bc26c90d51faa",66511:"f83038aaedbc2d87af89",66576:"b24de5e0ce70f4be9ddb",66661:"573dfc091e47ec5ad70f",66795:"a8984f996ecda39777e8",66813:"d8f7825f82c9b9f1670e",66888:"0e8aae0093d7ffdbcaa9",66984:"6c13a7f2e68a15aacd22",67012:"a0659b34c512afcea06e",67295:"c27996f409877ee3d11c",67301:"e22c909a6486b837cae7",67375:"e45b8f18ae4a3badc82d",67569:"e1b0e0faa7c6ac241051",67594:"7a5d32819e00784af410",67646:"8047154dec473ecf86a0",67683:"cb2430314171a2c928db",67724:"4ba2796d79a7e5c8d64a",68002:"4b349ce3c398c12fd459",68007:"f6079e0e513e74f53a06",68023:"ac1e77bf79c3f985f4db",68302:"0a6fb16f1505ccb57fbb",68434:"c2953be64f3baaf76c64",68633:"095324ebe20109c115d3",68645:"0fc86396ddd67640f135",68776:"e77dc073c1e1d2b49c01",68803:"5ba99d8a0be99f9a54f1",68814:"c74286f027161a94d1e9",68823:"fff9b1156d38b1bd3fff",68925:"57c0650713e0274e652b",69019:"aaba4b99b6ee94e14935",69034:"a40053c904a84924b128",69137:"5376189b2c9c823a8ea9",69151:"d2a745af0f6f817cd366",69162:"b6c316e38ff4be016540",69173:"23111b38ad9306bffa81",69311:"5d69d4a24173e282ad65",69395:"b631a4ae63956889fe0f",69523:"fcc9b4c5bac9cce9b0a4",69527:"e54ff4696eaf7bdb7f43",69543:"ffc55e9b28ec47264343",69671:"fd8a5e167d054f28138f",70029:"6c6fce6639397bf8808b",70105:"ec3a4b8f59bc442df5a2",70112:"d7dffb878ab0c9c0ae4e",70234:"4558dc98eb5d7f9d4058",70329:"aee8dad55d4b9f511ea8",70558:"271dc091e094ab62e3bc",70636:"f08bdef17bada9662013",70840:"cb1bafe8de0fc45b01d4",70884:"53e76efba1ba5ac8b746",70904:"cd27ac4cf92d60a61592",70912:"5306eb6b34a85a76c43a",70913:"7e5310b34e5545f3f5b3",71006:"fe30e30648aaa446b068",71084:"b50c69018723937ce766",71094:"02ece6b21b2b3c03804c",71284:"e0337678179c8f43faaa",71313:"7c8f22a17695bff551e0",71338:"6339ded92b7c7156d5aa",71349:"ad2e8e4069291d8d523e",71353:"73c7310eb5a8c620b0a1",71407:"1ea8ea583fc1b9d5fd0c",71455:"dad643cdf0c4e2705e48",71456:"0fa158d3b2d527eaf6be",71470:"fa187881b7e334663a3e",71473:"aade49acc8f6d606d626",71608:"feeedf259a6d76ff5fda",72016:"01c9cd74fa5aae3746c3",72113:"d560f2280dfa55c28767",72177:"8727dd94de1f7ef8e107",72201:"e3d742ac009c4e27f2a5",72284:"c4e21d5d96f79631875c",72303:"0b15377872a9fcd128bb",72313:"d97a7294b606f82b3c30",72376:"924ac17db9e1018a5b11",72392:"56afe3bd6168c9965004",72609:"dc072
256c5a8b7e649d635b",72699:"f8c32d9bc94bb5840d90",72715:"a8b6c518320d594c92d9",72723:"9664ffacba7786700d59",72750:"691ca871e9e35cb5371c",72883:"a4943d1687449ac491cc",73010:"023405d5e26616bd7fac",73251:"4827a20f222ee4120d55",73302:"cd5ba54622cc172ed63f",73343:"b96f3fcef066b304402a",73501:"43eb70c93f1d71019101",73666:"f7609fcd1604da791a68",73708:"ab0929e9edfb22685524",73751:"539a2d013fe6674d58a4",73763:"e56656b5fe6996a7e08a",73976:"382309c9f33c09045c8a",74258:"0df63080e7389703d00f",74350:"14dc37c904bec190aa35",74371:"1fab38361b4b08da4e5a",74423:"40a0374a11ff7b8282be",74503:"967b8e62a1f7c6d30336",74519:"708978b087de43db6dcd",74594:"fbc27aa0c00cfb6c2530",74613:"d47383d1c77638036dca",74759:"ef6da895c1752f3a8fdf",74810:"9b57c7f8fbec9302e467",74848:"7c4c58ea154b806a2eba",74868:"735d8ba6f20fbb5f2a4b",75034:"08830ec77ccbc8e3b578",75140:"806b7757d61662b08ee8",75368:"4c1436209823510f1498",75413:"65754df2bab834c0a583",75464:"088f526c65b592f7c7eb",75957:"a20f7d552e4823eeafc7",76021:"c7370d461cdffa66c77b",76060:"9fe2058047825e4e0a24",76118:"8de4c943b38d832108a5",76160:"dbf2cb969d2b5c410783",76171:"bad331195cb3e2c0ed04",76459:"4e61d721f27c89c22e20",76465:"f74be7a384ac28384a2e",76548:"a3ec6f20b6d0f8956d61",76582:"5585182923f4d15137c2",76583:"9cd4602f024d89a4f14e",76600:"d6b21ec2c9bd55a3b4d2",76718:"d446c68a0806850a0b79",76828:"777f185b16e1d1e12a67",76834:"17844fda15efe46da51a",77031:"b4bc8b727da1b3f24a64",77071:"8f4c03982176acc9ffd7",77074:"f6d40f6f328e305becc7",77086:"87df6ccc37925834a28d",77136:"d39260060c7c1af6aa23",77227:"6a660c5293630719beec",77245:"c286d2e3b402a7fbd952",77339:"1994a6d0b6753dc0cd9c",77395:"2920f5c924e9af28c363",77398:"af17b1c8ccdd38760807",77417:"3d6fb7c7a0148fec4aad",77476:"117ebace26f434543279",77633:"e8486ad98636b6415e08",77680:"81d08872d9cc7f70f423",77685:"7efdefcb295addaffaba",77824:"69fba7c025a5b9a55f27",77879:"2dd3be634872c393ed06",78144:"4009b59bec12aeadc727",78155:"f657504207d86e509bd3",78203:"53d9d27733a5b9d406af",78245:"8ec1190c7746e785a122",78449:"4564e6420d87425bc96b",78513:"41d23ab145101ccf5e74",78835:"2d01c32a77d2da2cf253",78856:"724e1667ef373c99fabd",79057:"73dc85e1924f33e2fb3e",79098:"123d2cd9252eed3d45d6",79114:"6a3b5dcc94dd27f13c72",79143:"20da2feccb4d4e40f270",79153:"5815e8fc05c96f1be9c5",79355:"37d306418f4101643a84",79389:"6ea0aa80915f2ffccb36",79395:"e96f4e9f567fed491a39",79400:"4b4d6068d1fb7d22b472",79473:"f4df00e990cc78f949cd",79664:"ef8af2808d406a767ec4",79697:"60ba97ab6b38ecd29262",79739:"f33c496989493bc739d7",79805:"d43b2de86d480e025372",79895:"a812235858cc01fd9ba3",80048:"6f4dae9c3379092d3fb9",80064:"54700fe85348972393bc",80196:"640c3db87261162aea55",80241:"4affcb3bff747773f77b",80288:"916ef9b2733aa2a8b329",80319:"5aefac1689c2d761a864",80345:"149fdfff3aeb51bbf910",80404:"83e8d40470d6017cd2c4",80514:"77244438b783f4427b20",80860:"a17d567a82a6159d5efa",80881:"5b816ef5cb589f7fdad2",81074:"1f35c299ec61af08602a",81226:"f4a86f6ea915f0c8de13",81251:"552ed0d0388d48b4e9e4",81270:"d99101636dd0a2332a3c",81357:"88e8f3d1d4f20a0ed77c",81410:"9d3c010f3a3884b77792",81412:"9a80a3d54493b4ccdb5c",81706:"75822564dd5b52e861b1",81709:"82b3d2eca2c38326fdfc",81747:"f2a79dca04211fd47499",81793:"a6186679eba41a442d9b",81855:"f45e20f25fcbf32ad9f3",82068:"a1d688df9ed3717f5b92",82071:"03786b208ec95f320485",82356:"10c00015f908d96ce11f",82388:"52b1599ac795647d9c3d",82412:"0d11231ed99b35e4daeb",82480:"64ff3bd7078dd93c890c",82645:"637ef9e2e6e133ffe7b6",82663:"ecdb5b1755f2de1c7f3f",82812:"0eea49949cb9c77e1db7",82876:"01d5299b2b4c7d90e97a",82915:"e8bac80cd62463575536",82985:"c8dd5d4ec5cda24a521c",83164:"1dc015f706c50b6bb620",83209:"6008296fda42d033b14e",83228:"09966aa65fbd0e11f260",83287:"d93b3a27c5ede65de5cd",83382:"2bd7ad1145f32c9cb64b",83485:"845382117ac61a6bb8b1",83615:"8f8cb0db2c1bbc1078be",83740:"7e41f832be1fc9f341a4",83946:"8805a043021e1dda9450",83950:"b0c29cbd1c4c33f0cd47",83972:"c745f7d20059d711c78e",83988:"ade47390dd0b97b06d94",84030:"ed9372fcb4bd1bd1fcb6",84060:"bf458f5de131035c5cb1",84065:"4be540455999fff25755",84108:"28619e704d4a612ae9c0",84224:"dfb4a3507d2891c5a073",84327:"9442313dfce4a5930058",84451:"94f623c9c1fdca41b148",84860:"e30854c3dffd62e2ff9f",85137:"de0284e12e80fa0976b2",85247:"bebd5becc2d20b1a3a09",85258:"ae36f3b5005777b476f6",85294:"64098054263ee38abf89",85300:"dd9e6e99da6bdc2a261e",85476:"750357aeb6ab5573c9bd",85485:"dcd43543ca5ed1d29e91",85670:"b927a8404c7d0c54010b",85729:"6fdae0ce31709b089264",85777:"b9b5396aa89ab161e793",85787:"8f4624ac7eecc57f2e07",85790:"96d24c5ab31589b9ba23",85798:"5979a850de8451029b3a",85917:"8129fec675dd237919fc",85934:"8f820a3d9b58ade88763",85995:"3de5cd35f43b7b6eb8f1",86078:"5150776e5272812745ab",86112:"9ec69f389fb05e3511bb",86147:"4d62c9e300e9412ef489",86191:"34bddea211f47874af0e",86201:"cc8fd9ea5ea0328e607f",86415:"78a3a4510d3c7fe20128",86456:"e00ce585b237728682ac",86629:"46040869732f0a8876e3",86724:"817e775694028cae3bf4",86730:"004176b954008dbc7fae",86795:"8357d2e7535cbd4693ac",86836:"abeba2044f914a14bb6c",86884:"6f6b6a12d588c1fa80a3",87091:"0f525dc2d59f7e0e0cb5",87205:"436040c320ea3bcd5ba3",87300:"fc9197f5df4dcd416195",87321:"f6f55c41e77b308682a8",87353:"dcfa53efc9b3b797e093",87361:"622d42e801aa05671e11",87421:"9cddcfe9940d67b6f4cc",87430:"7243731d0f2adcaf119e",87431:"1219186242ce2f6d5034",87507:"4a02b1855ee2e6696c50",87508:"bcb7db8462c7e0cfc086",87517:"ff0dbe221636ed01ff08",87676:"eff16ec68effe0631dcb",87713:"f5affd30dfe3c4c333e3",87781:"5de49bb322256cb5b9b1",88054:"72713e5e9801a4a28434",88102:"9946b465d65b41f9f559",88254:"91950c751aa4d1a2cecf",88308:"e54dfd9b059ab2ea96f8",88314:"af4033ba3559844804f8",88339:"60adcd19c9530f34d053",88394:"309baf9c082c5d476037",88588:"4e92675baa831b2f2021",88650:"4b33f3ac0b34c622dea1",88685:"f7fa21ffda7e4111e009",88764:"dfb03b2d5f9d747c5844",88789:"09cb51f037c0407e59f4",88798:"81c8787b25845f1d90f7",88837:"b78fbcb89fad9961282a",88862:"2ab5247883d125528576",89017:"6fbbe89601f2c3d5aea9",89049:"48c67fd92a56602882ed",89165:"3b4fa78141c0b23b1917",89230:"7d2b53c61354195f2e48",89263:"92bbaa7729fa445b16dd",89481:"2c115b2fe01c7a9d45be",89482:"da1e93fffbf4d8d26f54",89539:"c01a298169b32a7032c5",89558:"bb75126723701fae2c03",89728:"afaeb996c9844db3e511",89735:"22339151cc1cb7571ef9",89884:"b8dbcd9d76cf7bb88d75",89995:"7fc8656cdaeb9fa10965",90193:"0ceda168064265c2468e",90215:"d31e612ffe8527854c5c",90504:"4f69d50d1fa88e0f76f1",90508:"b7de68946bf56d3ffc58",90595:"a93f7368c9735547b7d1",90713:"b7589eaafc89ec3017e7",90730:"b8ae8b3c16ad9277210f",90753:"15bddf19ab56a594e60a",90777:"808474133750d1d63949",90829:"fea638e26e29ebce7d1c",90845:"6b0af0dac3dbca2c95e4",90877:"8e077d9947602f115be7",90895:"2f4f15f9e575acf7762a",91083:"2d7f76f32afa47fbc346",91323:"1ca2858d7d3a2c68dc52",91361:"737935d562538b9619b2",91405:"56d57d1be83fc54c62b2",91480:"4b91ba45c4f29427583b",91556:"c90ccd3cf841e33dbb2c",91595:"e4a1c7375fda69a7d6ff",91644:"3d7bf986042b8abdbb20",91786:"467fd334612984641810",91827:"e5d99ebefb969f9cf
2566eb",91836:"366c8dd5a32ef420c897",91896:"477995ae4ac6f865c2fe",92005:"92d6a4ea6a5d384c63bf",92077:"a61e4d22782d4f133dc8",92095:"778736256b3026c2c781",92100:"124c1b2821ee61d2a12a",92312:"5aa13b5bfcce6fad69cb",92428:"bba57cac95875407d687",92703:"4494c443b72eb49d785c",92773:"5468149f8fb5ad9eeda3",92874:"3385cc1c395776e43fd0",92922:"20c76bcf8aa4fcb5afe9",93005:"7b741e458c282e86cbc8",93245:"e3d6b1b494e5d80ac964",93513:"beae871c03364cc9c8ae",93537:"42ed07a9b7c436d0b549",93551:"cdf1e44535ca2d8b50d5",93605:"ad1f51049b1b2ac864db",93714:"4ad7f5bf43f147ba7114",93758:"e3679555f9c06b68e018",93807:"e30892448003d19935fb",93857:"00bc1acd3280db97b668",93973:"c7d063f5dbeb673c7351",94118:"9f30a593b1237e524e06",94584:"378654b43e33d68d521c",94662:"887ff969dce8c03d844c",94696:"6851a4d26ed90c7aa0c6",95080:"5a1696b30006488cf37b",95208:"db5f75a3223a482ed81b",95355:"911493c9424b17440340",95434:"4538f9b65e4b5d1a67cf",95442:"1e06e9f22364fac711ac",95565:"209785e5ce714eb023d5",95574:"0bf88000457c1e82b0a5",95575:"3cf949bb11535e80a2f6",95672:"6162b855464d32abeeef",95682:"0f610bcc2c19b950bbff",95723:"f591d6c352ade50af52d",95879:"afcf22a3adcb82e5b1ae",95915:"4356bb4fb45b20fdca94",96007:"100f25b1fca5e714d8ad",96023:"4f1c878d7f4299ceb8a0",96271:"3560421049d8abff31cb",96327:"b3e05108d3cd9dc5d3dd",96454:"91adec1fb03aad6e4157",96478:"df00860204c2d593186a",96800:"63d9678a5466e2c1b4db",96829:"13d498b404db39252dd8",96885:"0ebaa10c29130cac4a8b",97038:"71f7bd8dd647d30b01d2",97086:"e40a87866ca2b9dad09b",97346:"e8d14be5dc1a2c8a8851",97348:"79c24c275e248c45a31d",97733:"5f52eda2c6325a9e5459",97753:"9cca45bfc00a998b180c",97774:"bd57f656593f595510b6",97841:"e8a7e9c88aaddbd9fb3e",97961:"bc825a09867ca96755f2",98002:"d129e25bf5fcbdccb536",98046:"448935fe38432dc26e28",98061:"d27ca9078539fde64d57",98262:"74b91d4b4ce07fef5a44",98351:"4b8af50f26e684c38e27",98445:"c2ca6a99d3d455a1f7d5",98579:"452d0e426d1d99eae1c2",98601:"77a7de7185829320a5eb",98604:"fdb34c3ee396097a2d03",98607:"0d00750ba1921070c234",98618:"32e95d7a58c6a54ff8e7",98635:"9737f017dfb1e1165567",98643:"97987f3e42db5613e830",98676:"8905b10731847c2c016b",98681:"dc31209e2c699927eb84",98689:"a2c9434eb617fe76c043",98704:"9b1e95bcb180e45f1fe1",98772:"6f07a2fb1cd8f275d23c",98794:"b38ba8cad9ead05fa098",98817:"9e6f1edabd8f6d15ed0f",98855:"5be72cd1f6d6a3d9081f",98899:"d20579b197ba7d749723",98941:"d7939a45cee97ccc5ae8",98960:"5033e07201acdb22d5b3",99018:"bfa3695c78a99b3e2d8c",99133:"f195a34fa5e9ac7e23db",99226:"92f8da7ef93c3bb01ea6",99243:"651d66c2e1b42bdc90e2",99339:"62f5c5d71b309c828de8",99357:"a993ab75aa308ed98543",99592:"28561ddc3a691f5ac032",99601:"aba439036cb1027699e4",99724:"15127d1b19acb3e9912a",99802:"0ddd83f4174f493c6684",99804:"b0363ef8701df8b2c661",99831:"cbcda7458913e9bf8575",99894:"b574a4e0dbd317d13bfd"}[e]+".js",i.miniCssF=e=>"css/"+e+".css",i.miniCssF=e=>"resources/css/"+e+".css",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={};i.l=(t,s,a,n)=>{if(e[t])return void e[t].push(s);let r,o;if(void 0!==a){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const i=e[l];if(i.getAttribute("src")==t){r=i;break}}}r||(o=!0,r=document.createElement("script"),r.charset="utf-8",i.nc&&r.setAttribute("nonce",i.nc),r.src=t),e[t]=[s];const c=(i,s)=>{r.onerror=r.onload=null,clearTimeout(h);const a=e[t];if(delete e[t],r.parentNode?.removeChild(r),a?.forEach(e=>e(s)),i)return i(s)},h=setTimeout(c.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=c.bind(null,r.onerror),r.onload=c.bind(null,r.onload),o&&document.head.appendChild(r)}})(),i.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="/etc.clientlibs/viessmann-corporate/clientlibs/vic.app/",(()=>{if("undefined"!=typeof document){var e={11268:0};i.f.miniCss=(t,s)=>{e[t]?s.push(e[t]):0!==e[t]&&{72284:1}[t]&&s.push(e[t]=(e=>new Promise((t,s)=>{var a=i.miniCssF(e),n=i.p+a;if(((e,t)=>{for(var i=document.getElementsByTagName("link"),s=0;s<i.length;s++){var a=(r=i[s]).getAttribute("data-href")||r.getAttribute("href");
256if("stylesheet"===r.rel&&(a===e||a===t))return r}var n=document.getElementsByTagName("style");for(s=0;s<n.length;s++){var r;if((a=(r=n[s]).getAttribute("data-href"))===e||a===t)return r}})(a,n))return t();((e,t,s,a,n)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",i.nc&&(r.nonce=i.nc),r.onerror=r.onload=i=>{if(r.onerror=r.onload=null,"load"===i.type)a();else{var s=i&&i.type,o=i&&i.target&&i.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+o+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=o,r.parentNode&&r.parentNode.removeChild(r),n(l)}},r.href=t,document.head.appendChild(r)})(e,n,0,t,s)}))(t).then(()=>{e[t]=0},i=>{throw delete e[t],i}))}}})(),(()=>{if("undefined"!=typeof document){var e={11268:0};i.f.miniCss=(t,s)=>{e[t]?s.push(e[t]):0!==e[t]&&{72284:1}[t]&&s.push(e[t]=(e=>new Promise((t,s)=>{var a=i.miniCssF(e),n=i.p+a;if(((e,t)=>{for(var i=document.getElementsByTagName("link"),s=0;s<i.length;s++){var a=(r=i[s]).getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(a===e||a===t))return r}var n=document.getElementsByTagName("style");for(s=0;s<n.length;s++){var r;if((a=(r=n[s]).getAttribute("data-href"))===e||a===t)return r}})(a,n))return t();((e,t,s,a,n)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",i.nc&&(r.nonce=i.nc),r.onerror=r.onload=i=>{if(r.onerror=r.onload=null,"load"===i.type)a();else{var s=i&&i.type,o=i&&i.target&&i.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+o+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=o,r.parentNode&&r.parentNode.removeChild(r),n(l)}},r.href=t,document.head.appendChild(r)})(e,n,0,t,s)}))(t).then(()=>{e[t]=0},i=>{throw delete e[t],i}))}}})(),(()=>{const e={11268:0};i.f.j=(t,s)=>{let a=i.o(e,t)?e[t]:void 0;if(0!==a)if(a)s.push(a[2]);else{const n=new Promise((i,s)=>a=e[t]=[i,s]);s.push(a[2]=n);const r=i.p+i.u(t),o=new Error,l=s=>{if(i.o(e,t)&&(a=e[t],0!==a&&(e[t]=void 0),a)){const e=s&&("load"===s.type?"missing":s.type),i=s&&s.target&&s.target.src;o.message="Loading chunk "+t+" failed.\n("+e+": "+i+")",o.name="ChunkLoadError",o.type=e,o.request=i,a[1](o)}};i.l(r,l,"chunk-"+t,t)}},i.O.j=t=>0===e[t];const t=(t,s)=>{let[a,n,r]=s;var o,l,c=0;if(a.some(t=>0!==e[t])){for(o in n)i.o(n,o)&&(i.m[o]=n[o]);if(r)var h=r(i)}for(t&&t(s);c<a.length;c++)l=a[c],i.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return i.O(h)},s=self["vic.app.globalLoadingChunk"]=self["vic.app.globalLoadingChunk"]||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();let s={};(()=>{"use strict";i(8135);var e=i(88045),t=i(72420);class s{constructor(){this.initialized=!1,this._isKeyboard=void 0,this.eventBindingMap={},this.eventIdMap=new WeakMap}static get NAV_KEYS(){return["Tab","ArrowUp","Up","ArrowDown","Down","ArrowLeft","Left","ArrowRight","Right"]}init(){this.initialized||((0,e.MR)(document.body,["keydown"],this.handleKeyDown,this),this.initialized=!0)}get isKeyboard(){return this._isKeyboard}updateKeyboardState(i){this._isKeyboard=i,(0,e.p1)(document.body,t.Di,i),i?((0,e.MR)(document.body,["mousedown"],this.handleMouseDown,this),(0,e.Nn)(document.body,["keydown"],this.handleKeyDown,this)):((0,e.MR)(document.body,["keydown"],this.handleKeyDown,this),(0,e.Nn)(document.body,["mousedown"],this.handleMouseDown,this))}handleKeyDown(e){s.NAV_KEYS.includes(e.key)&&this.updateKeyboardState(!0)}handleMouseDown(){this.updateKeyboardState(!1)}}const a=new s;var n,r,o=i(66204),l=i(59649),c=i.n(l),h=i(13750);const d=new(n=(0,h.nF)(100),r=class{constructor(){this.rootElement=document.documentElement}init(){window.addEventListener("resize",()=>this.handleResize(),{passive:!0}),this.updateViewportHeight()}handleResize(){this.updateViewportHeight()}updateViewportHeight(){this.rootElement.style.setProperty("--vic-viewport-height",`${window.innerHeight}px`)}},c()(r.prototype,"handleResize",[n],Object.getOwnPropertyDescriptor(r.prototype,"handleResize"),r.prototype),r);var u=i(13263),p=i(87819),g=i(80466);const b=new class{constructor(){this.TRACKING_DATA_STORAGE_KEY="vic-tracking-data",this.pushATInternetProperties(),this.checkUrlForTrackingParams(),g.A.flushPipeline(),this.trackProductView()}get trackingData(){const e=u.n$.getItem(this.TRACKING_DATA_STORAGE_KEY,{storageType:"session"});return null===e?{}:JSON.parse(e)}set trackingData(e){u.n$.addItem(this.TRACKING_DATA_STORAGE_KEY,JSON.stringify(e),{storageType:"session"})}async pushATInternetProperties(){const e=await this.getATInternetData();g.A.push({event:"aem_data_pageview",...e})}async getATInternetData(){return{template:await p.A.getConfigItem("template")||"",contentPath:await p.A.getConfigItem("contentPath")||"",parentPath:await p.A.getConfigItem("parentPath")||"",noIndex:await p.A.getConfigItem("noindex")||"",targetGroup:await o.A.getCurrentTargetGroup()||""}}async checkUrlForTrackingParams(){const e=await p.A.getConfigItem("trackingParams")||[],t=this.trackingData;
256e.forEach(e=>{const i=u.tJ.get(e);null!==i&&(t[e]=i)}),this.trackingData=t}trackProductView(){const t=(0,e.I6)(document.body,"#vic-product-data");if(null===t)return;if(void 0===t.dataset.layerItemId)return;if(void 0===t.dataset.layerItemName)return;const i={item_id:t.dataset.layerItemId,item_name:t.dataset.layerItemName,affiliation:location.hostname,item_brand:t.dataset.layerItemBrand};g.A.clearEcommerce(),g.A.push({event:"view_item",ecommerce:{items:[i]}})}};var m=i(54714),f=i(87231);class v{constructor(){this.currentVariant=void 0}get isWaermepumpeVariant(){return this.currentVariant===v.SCHLAUE_WAERMEPUMPE_VARIANT}get inDebugMode(){return null!==u.tJ.get("debugCountryCheck")}get debugCountry(){return u.tJ.get("countryCheckDebugCountry")}get countryCheckDone(){return"true"===u.n$.getItem(v.STORAGE_KEY,{storageType:this.isWaermepumpeVariant?"session":"local"})}set countryCheckDone(e){u.n$.addItem(v.STORAGE_KEY,e.toString(),{storageType:this.isWaermepumpeVariant?"session":"local"})}async init(){if(!0===window.vipAemModeService?.runsOnAuthor)return;const e=await p.A.getConfigItem("extPage");if(!0==(void 0!==e&&"false"!==e))return;if(this.currentVariant=await p.A.getConfigItem("countryCheckVariant")||"default",!1===this.inDebugMode&&!0===this.countryCheckDone)return;const t=await this.fetchCountryData();if(null===t)return;const i=await this.fetchIpData();if(null===i)return;if(i.country_code===t.currentCountry?.country_code)return;if(t.excludedIpAddresses.includes(i.ip))return void u.bD.log("CountryCheckService: excluded ip detected");const s=t.availableCountries.find(e=>e.country_code===i.country_code);void 0!==s?this.renderOverlay({headline:t.headline,text:t.text,stayHereButtonText:t.stayHereButtonText,currentCountry:t.currentCountry,permanentLink:t.permanentLink,userCountry:s}):u.bD.log("CountryCheckService: user-country not available")}async fetchCountryData(){try{const e=await p.A.getConfigItem("countryCheckServiceUrl");if(void 0===e)throw new Error("countryCheckServiceUrl not defined");return await f.A.fetchJSON(e,{cacheOptions:{validFor:0}})}catch(e){return u.bD.error("CountryCheckService",e),null}}async fetchIpData(){if(this.inDebugMode&&null!==this.debugCountry)return{ip:"",country_code:this.debugCountry};try{const e=await p.A.getConfigItem("ipServiceUrl");if(void 0===e)throw new Error("ipServiceUrl not defined");return await f.A.fetchJSON(e,{cacheOptions:{validFor:0}})}catch(e){return u.bD.error("CountryCheckService",e),null}}async renderOverlay(t){const{renderCountryCheckOverlay:i,renderCountryCheckSchlaueWaermepumpeVariationOverlay:s}=await this.loadOverlayTemplates(),a=document.createElement("div");this.isWaermepumpeVariant?(0,m.XX)(await s(t),a):(0,m.XX)(await i(t),a);const n=(0,e.I6)(a,".vic-m-country-check-overlay");null!==n&&(document.body.appendChild(n),await(0,e.fm)(500),n.open())}async loadOverlayTemplates(){const{renderCountryCheckOverlay:e,renderCountryCheckSchlaueWaermepumpeVariationOverlay:t}=await i.e(96271).then(i.bind(i,96271));return{renderCountryCheckOverlay:e,renderCountryCheckSchlaueWaermepumpeVariationOverlay:t}}}v.STORAGE_KEY="vic-country-check-done",v.SCHLAUE_WAERMEPUMPE_VARIANT="schlaue-waermepumpe";const y=new v;var w=i(87904),S=i(54767);class C extends S.uA{constructor(){super({initialStates:{loaded:!1},useShadowDOM:!0})}connectedCallback(){u.GR.subscribe(this,()=>super.connectedCallback())}get iconId(){return this.getAttribute("icon-id")||""}set iconId(e){this.setAttribute("icon-id",e)}get iconSrc(){return this.getAttribute("icon-src")||""}static get observedAttributes(){return["icon-id"]}attributeChangedCallback(e,t,i){t!==i&&!0===this.state.loaded&&this.loadIcon()}afterComponentRender(){this.state.loaded||this.loadIcon()}async loadIcon(){try{if(""===this.iconId&&""===this.iconSrc)throw new Error("iconId and iconSrc not defined");let e="";e=""!==this.iconId?await this.loadIconFromChunk():await this.loadIconFromSrc(),this.appendIconMarkup(e),this.setState({loaded:!0})}catch(e){u.bD.error("VICIcon:",e),this.remove()}}async loadIconFromChunk(){if(this.iconId.startsWith("car-")){const{carIconLoader:e}=await i.e(92703).then(i.bind(i,92703));return await e(this.iconId)}if(this.iconId.startsWith("tsb-")){const{toshibaIconLoader:e}=await i.e(15912).then(i.bind(i,15912));return await e(this.iconId)}if(this.iconId.startsWith("vic-icon-flag__")){const{flagIconLoader:e}=await i.e(18095).then(i.bind(i,18095));return await e(this.iconId)}const{iconLoader:e}=await i.e(31169).then(i.bind(i,31169));return await e(this.iconId)}async loadIconFromSrc(){const e=await fetch(this.iconSrc);if(!e.ok)throw new Error(e.statusText);const t=e.headers.get("content-type");if(null===t||!t.startsWith("image/svg+xml"))throw Error("wrong response type from service");return await e.text()}appendIconMarkup(e){this.getUiRoot().innerHTML=`<style>:host{display:inline-block}svg{display:inline-block;width:100%;height:100%;fill:currentcolor}</style>${e}`}}customElements.define("vic-e-icon",C);var A,E,I,k,_,O,x=i(43439),T=i.n(x),F=(i(52301),i(8844)),P=i(69592),D=i(28367);let M=(A=(0,S.d9)(F.A),E=(0,S.hq)(".vic-e-lazy-image__image"),I=(0,S.rF)("this",u.AI),A((_=class extends S.uA{constructor(){super({useShadowDOM:!0}),this.viewportObserver=u.rD.getInstance(),this._imageLoaded=!1,this._hasError=!1,this._loadingPlaceholderLoaded=!1,this._loadingPlaceholderLoadingError=!1,T()(this,"image",O,this)}connectedCallback(){"lazy"===this.initType?u.GR.subscribe(this,()=>super.connectedCallback()):super.connectedCallback()}afterComponentRender(){(0,e.iQ)(this,t.tg),"explicit"!==this.initType&&this.viewportObserver.observe(this),this.removePreRenderedPlaceholder()}removePreRenderedPlaceholder(){const e=this.querySelector(".vic-e-lazy-image__loading-placeholder");null!==e&&e.remove()}static get observedAttributes(){return["src","srcset","aspect-ratio"]}attributeChangedCallback(e,t,i){if(t!==i&&this.state.initialized)switch(e){case"src":case"srcset":this.imageLoaded=!1,this.loadImage(),this.dispatchEvent(new CustomEvent(P.lA,{bubbles:!1}));break;case"aspect-ratio":this.renderComponent()}}get initType(){return"explicit"===this.getAttribute("init")?"explicit":"lazy"}get imgSrc(){return this.getAttribute("src")||""}get imgSrcSet(){return this.getAttribute("srcset")||void 0}get imgSizes(){return this.getAttribute("sizes")||void 0}get imgAlt(){return this.getAttribute("alt")||""}get imgAspectRatio(){return this.getAttribute("aspect-ratio")||void 0}get loadingPlaceholder(){return this.getAttribute("loading-placeholder")||""}get noPlaceholder(){return this.hasAttribute("no-placeholder")&&"false"!==this.getAttribute("no-placeholder")}get toshibaLogoPosition(){const e=this.getAttribute("tsb-logo-position");if(e&&["top-left","top-right","bottom-left","bottom-right"].includes(e))return e}get toshibaLogoColor(){const e=this.getAttribute("tsb-logo-color");return e&&["brand","white","black"].includes(e)?e:"brand"}get watermarkPosition(){const e=this.getAttribute("watermark-position");return e&&["top-left","top-right","bottom-left","bottom-right"].includes(e)?e:"bottom-right"}
256get watermarkColor(){const e=this.getAttribute("watermark-color");return e&&["brand","white","black"].includes(e)?e:"black"}get watermarkBoxed(){return this.hasAttribute("watermark-boxed")&&"false"!==this.getAttribute("watermark-boxed")}get watermarkText(){const e=this.getAttribute("watermark-text")||"";return""!==e?e:void 0}get watermarkInfo(){if(void 0!==this.watermarkText)return{position:this.watermarkPosition,color:this.watermarkColor,boxed:this.watermarkBoxed,text:this.watermarkText}}get imageLoaded(){return this._imageLoaded}set imageLoaded(e){this.imageLoaded!==e&&(this._imageLoaded=e,!0===e?this.setAttribute("loaded",""):this.removeAttribute("loaded"),this.updateComponent())}get hasError(){return this._hasError}set hasError(e){this.hasError!==e&&(this._hasError=e,!0===e?this.setAttribute("has-error",""):this.removeAttribute("has-error"),this.updateComponent())}get hasLoadingPlaceholder(){return""!==this.loadingPlaceholder}get loadingPlaceholderLoaded(){return!this.hasLoadingPlaceholder||this._loadingPlaceholderLoaded}set loadingPlaceholderLoaded(e){this.loadingPlaceholderLoaded!==e&&(this._loadingPlaceholderLoaded=e)}get loadingPlaceholderLoadingError(){return!this.hasLoadingPlaceholder||this._loadingPlaceholderLoadingError}set loadingPlaceholderLoadingError(e){this.loadingPlaceholderLoadingError!==e&&(this._loadingPlaceholderLoadingError=e,this.updateComponent())}renderComponent(){(0,m.XX)((0,D.gM)({src:"",alt:this.imgAlt,srcset:"",sizes:this.imgSizes,aspectRatio:this.imgAspectRatio,toshibaLogoPosition:this.toshibaLogoPosition,toshibaLogoColor:this.toshibaLogoColor,watermarkInfo:this.watermarkInfo,component:this,handlePlaceholderLoad:()=>this.handlePlaceholderLoad(),handlePlaceholderError:()=>this.handlePlaceholderError()}),this.getUiRoot())}updateComponent(){(0,m.XX)((0,D.gM)({src:this.imgSrc,alt:this.imgAlt,srcset:this.imgSrcSet,sizes:this.imgSizes,aspectRatio:this.imgAspectRatio,toshibaLogoPosition:this.toshibaLogoPosition,toshibaLogoColor:this.toshibaLogoColor,watermarkInfo:this.watermarkInfo,component:this,handlePlaceholderLoad:()=>this.handlePlaceholderLoad(),handlePlaceholderError:()=>this.handlePlaceholderError()}),this.getUiRoot())}loadImage(){if(this.viewportObserver.unobserve(this),!this.imageLoaded){this.attachImageLoadingEvents();try{this.triggerImageLoad()}catch(e){u.bD.error("LazyImage: ",e)}}}handlePlaceholderLoad(){this.loadingPlaceholderLoaded=!0,this.loadingPlaceholderLoadingError=!1}handlePlaceholderError(){this.loadingPlaceholderLoaded=!1,this.loadingPlaceholderLoadingError=!0}triggerImageLoad(){if(""===this.imgSrc&&void 0===this.imgSrcSet)throw new Error("no src/srcset provided for");""!==this.imgSrc&&this.image.setAttribute("src",this.imgSrc),void 0!==this.imgSrcSet&&this.image.setAttribute("srcset",this.imgSrcSet)}attachImageLoadingEvents(){(0,e.MR)(this.image,"load",this.handleImageLoad,this),(0,e.MR)(this.image,"error",this.handleImageLoadingError,this)}handleImageLoadingError(){(0,e.Nn)(this.image,"error",this.handleImageLoadingError,this),this.hasError=!0,u.bD.error("LazyImage: image loading error",this)}handleImageLoad(){(0,e.Nn)(this.image,"load",this.handleImageLoad,this),this.hasError=!1,this.imageLoaded=!0,this.dispatchEvent(new CustomEvent(P.WJ,{bubbles:!1}))}},O=c()(_.prototype,"image",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(_.prototype,"loadImage",[I],Object.getOwnPropertyDescriptor(_.prototype,"loadImage"),_.prototype),k=_))||k);var R,B;customElements.define("vic-e-lazy-image",M);let L=(R=(0,S.rF)("window",u.Rn),B=class extends S.uA{constructor(){super({asyncRendering:!0}),this.paginationTemplate=void 0,this.mqService=u.Mp.getInstance(F.A),this._activeItem=0,this.silentMode=!1}get pageCount(){const e=this.getAttribute("page-count")||"0";return parseInt(e,10)}get initialPage(){const e=this.getAttribute("initial-page")||"1";return parseInt(e,10)}get activeItem(){return this._activeItem}set activeItem(e){this.isValidItemIndex(e)&&this._activeItem!==e&&(this._activeItem=e,this.updateComponent())}get splitType(){const e=this.pageCount,t=this.activeItem;return e<6?"none":t<3?"right":t>e-4?"left":"middle"}static get observedAttributes(){return["page-count"]}attributeChangedCallback(e,t,i){t!==i&&this.state.initialized&&this.updateComponent()}setInitialActiveItem(){const e=this.initialPage;this.isValidItemIndex(e-1)&&(this._activeItem=e-1)}healActiveItem(){this.isValidItemIndex(this.activeItem)||(this._activeItem=0)}async renderAsync(){const{paginationTemplate:e}=await i.e(58755).then(i.bind(i,58755));this.setInitialActiveItem(),(0,m.XX)(await e(this),this)}async updateComponent(){const{paginationTemplate:e}=await i.e(58755).then(i.bind(i,58755));this.healActiveItem(),(0,m.XX)(await e(this),this),this.dispatchChangedEvent(),this.silentMode=!1}resetActiveItem(){0!==this.activeItem&&(this.silentMode=!0),this.activeItem=0}updatePageCount(e){this.pageCount!==e&&(this.silentMode=!0,this.setAttribute("page-count",e.toString()))}
256handleItemClick(e){this.activeItem=e}handlePrevClick(){this.activeItem-=1}handleNextClick(){this.activeItem+=1}isValidItemIndex(e){return e>=0&&e<this.pageCount}get currentMQ(){return(0,e.g8)(F.A)}handleMQChange({detail:{oldMQ:e,newMQ:t}}){"MQ1"!==e&&"MQ1"!==t||this.updateComponent()}dispatchChangedEvent(){!0!==this.silentMode&&this.dispatchEvent(new CustomEvent(P.i$,{detail:{target:this,activeItem:this.activeItem}}))}},c()(B.prototype,"handleMQChange",[R],Object.getOwnPropertyDescriptor(B.prototype,"handleMQChange"),B.prototype),B);customElements.define("vic-m-pagination",L);const V=new class{constructor(){this.apiMap=new Map,this.activePlayersMap=new Set}registerPlayer(e){this.activePlayersMap.add(e)}videoStarted(e){this.pauseAllOtherVideo(e)}videoStopped(e){u.bD.log("VideoPlayerService video stopped:",e)}pauseAllOtherVideo(e){this.activePlayersMap.forEach(t=>{t!==e&&t.pauseVideo()})}getApiState(e){return this.apiMap.get(e)||this.newApiState(e)}updateApiState(e,t){this.apiMap.set(e,t),u.mB.notifyObservers(this.getObserveKey(e))}getApiIncluded(e){return this.getApiState(e).included}setApiIncluded(e,t=!0){const i=this.getApiState(e);i.included=t,this.updateApiState(e,i)}getApiLoaded(e){return this.getApiState(e).loaded}setApiLoaded(e,t=!0){const i=this.getApiState(e);i.loaded=t,this.updateApiState(e,i)}observeApiStateChanges(e,t){u.mB.observe(this.getObserveKey(e),t)}unobserveApiStateChanges(e,t){u.mB.unobserve(this.getObserveKey(e),t)}getObserveKey(e){return`vic-video-service-${e}`}newApiState(e){return{id:e,loaded:!1,included:!1}}};var N,z,q,U,$,j,H,K=i(21698),Q=i(25917);let G=(N=(0,S.hq)(".vic-m-abstract-video-player__play-cta"),z=(0,S.hq)(".vic-m-abstract-video-player__video-container"),q=(0,S.rF)("playBtn","click"),H=class s extends S.uA{constructor(){super({asyncRendering:!0}),this.playerContainerID=(0,K.A)(),this.playerReady=!1,this.playOnReady=!1,this.progressThresholds=new Set(s.PROGRESS_THRESHOLDS),this.progressPollInterval=void 0,this.consentBlocked=!1,T()(this,"playBtn",$,this),T()(this,"videoContainer",j,this)}get apiId(){return""}get consentCategory(){return""}get videoID(){return this.getAttribute("video-id")||void 0}get videoProvider(){return""}get posterSrc(){return this.getAttribute("poster-src")||""}get posterSrcSet(){return this.getAttribute("poster-srcset")||void 0}get posterSizes(){return this.getAttribute("poster-sizes")||void 0}get posterAlt(){return this.getAttribute("poster-alt")||void 0}get posterLoadingPlaceholder(){return this.getAttribute("poster-loading-placeholder")||void 0}get preventPlayback(){return this.hasAttribute("prevent-playback")&&"false"!==this.getAttribute("prevent-playback")}get apiScriptIncluded(){return V.getApiIncluded(this.apiId)}get apiLoaded(){return V.getApiLoaded(this.apiId)}connectedCallback(){u.GR.subscribe(this,()=>super.connectedCallback())}async hasConsent(){return await w.A.hasConsent(this.consentCategory)}async renderAsync(){if(void 0===this.videoID)return;const{videoPlayerTemplate:e}=await i.e(11262).then(i.bind(i,11262));(0,m.XX)(await e({playerContainerID:this.playerContainerID,posterSrc:this.posterSrc,posterSrcSet:this.posterSrcSet,posterSizes:this.posterSizes,posterAlt:this.posterAlt,posterLoadingPlaceholder:this.posterLoadingPlaceholder,videoID:this.videoID}),this)}afterComponentRender(){V.registerPlayer(this),V.observeApiStateChanges(this.apiId,()=>this.handleApiChanges()),""!==this.videoID&&this.loadApi()}async isPlaying(){return await Promise.resolve(),!1}async getCurProgress(){return await Promise.resolve(),0}async getVideoTitle(){return await Promise.resolve(),""}async getVideoUrl(){return await Promise.resolve(),""}async loadApi(){await this.hasConsent()?this.initApi():(this.consentBlocked=!0,await w.A.waitForInitialization(),this.handleConsentManagementInit())}async handleConsentManagementInit(){!1!==await this.hasConsent()&&(this.consentBlocked=!1,this.initApi())}handleApiChanges(){V.getApiLoaded(this.apiId)&&this.initVideo()}initApi(){this.apiScriptIncluded?this.initVideo():(this.appendApiScript(),V.setApiIncluded(this.apiId))}appendApiScript(){}async initVideo(){}onPlayerReady(){this.playerReady=!0,this.playOnReady&&this.playVideo()}onVideoError(){(0,e.iQ)(this,t.ff)}
256onVideoStarted(){this.hidePoster(!0),(0,e.I6)(this,".vic-m-abstract-video-player__video")?.focus(),V.videoStarted(this),this.startProgressTracking()}onVideoPaused(){V.videoStopped(this),this.stopProgressTracking()}onVideoEnded(){(0,e.iQ)(this,t.BL),V.videoStopped(this),this.stopProgressTracking(),this.progressThresholds=new Set(s.PROGRESS_THRESHOLDS)}disconnectedCallback(){this.stopProgressTracking()}startProgressTracking(){void 0===this.progressPollInterval&&(this.progressPollInterval=window.setInterval(()=>this.updateReachedThresholds(),s.PROGRESS_POLL_INTERVAL_MS))}stopProgressTracking(){window.clearInterval(this.progressPollInterval),this.progressPollInterval=void 0}async updateReachedThresholds(){const e=await this.getCurProgress(),t=Array.from(this.progressThresholds).filter(t=>e>=t);for(const e of t)await this.addReachedProgressThreshold(e)}async addReachedProgressThreshold(e){!1!==this.progressThresholds.delete(e)&&(0===this.progressThresholds.size&&this.stopProgressTracking(),await this.dispatchTrackingEvent("PLAYING",e))}hidePoster(i){(0,e.p1)(this.playBtn,t.RG,i)}async handlePlayBtnClick(){!0!==this.preventPlayback&&((0,e.iQ)(this,t.F5),(0,e.iQ)(this.videoContainer,t.Hc),!0===this.consentBlocked&&!1===this.playerReady&&(await Q.A.showConsentOverlay(this.consentCategory,()=>this.handleConsentAbort()),w.A.observeCategoryAccepted(this.consentCategory,()=>this.initApi())),!1!==this.playerReady?this.playVideo():this.playOnReady=!0)}handleConsentAbort(){(0,e.vy)(this,t.F5),(0,e.vy)(this.videoContainer,t.Hc),this.playOnReady=!1}playVideo(){this.playVideoMethod(),this.consentBlocked&&(0,e.fm)(1500).then(()=>this.hidePoster(!0))}playVideoMethod(){throw new Error("playVideoMethod Method not implemented.")}pauseVideo(){throw new Error("pauseVideo Method not implemented.")}muteVideo(){throw new Error("muteVideo Method not implemented.")}unMuteVideo(){throw new Error("unMuteVideo Method not implemented.")}async getTrackingData(e,t){return{event:"gtm.videoAEM","gtm.videoTitle":await this.getVideoTitle(),"gtm.videoStatus":e,"gtm.videoPercent":t??await this.getCurProgress(),"gtm.videoUrl":await this.getVideoUrl(),"gtm.videoProvider":this.videoProvider}}async dispatchTrackingEvent(e,t){const i=await this.getTrackingData(e,t);g.A.push(i)}},H.PROGRESS_THRESHOLDS=[25,50,75],H.PROGRESS_POLL_INTERVAL_MS=1e3,U=H,$=c()(U.prototype,"playBtn",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=c()(U.prototype,"videoContainer",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(U.prototype,"handlePlayBtnClick",[q],Object.getOwnPropertyDescriptor(U.prototype,"handlePlayBtnClick"),U.prototype),U);customElements.define("vic-m-youtube-video",class extends G{constructor(...e){super(...e),this.playerApi=void 0}get apiId(){return"vic-youtube-video"}get consentCategory(){return"youtube"}get videoProvider(){return"youtube"}get posterSrc(){return this.getAttribute("poster-src")||`https://imp.viessmann-climatesolutions.com/vi/${this.videoID}/0.jpg`}async getCurProgress(){await Promise.resolve();const e=this.playerApi?.getDuration()||1,t=this.playerApi?.getCurrentTime()||0;return Math.round(t/e*100)}async getVideoTitle(){return await Promise.resolve(),this.playerApi?.getVideoData()?.title||""}async getVideoUrl(){await Promise.resolve();const e=this.playerApi?.getVideoUrl();if(void 0===e)return"";const t=new URL(e);return t.searchParams.delete("t"),t.toString()}appendApiScript(){const e=document.createElement("script");e.setAttribute("src","https://www.youtube.com/iframe_api"),e.setAttribute("type","application/javascript"),window.onYouTubeIframeAPIReady=()=>V.setApiLoaded(this.apiId),document.body.appendChild(e)}async initVideo(){await Promise.resolve(),void 0===this.playerApi&&!1!==this.apiLoaded&&(this.playerApi=new YT.Player(this.playerContainerID,{videoId:this.videoID,playerVars:{showinfo:0,disablekb:0,rel:0,playsinline:1,autoplay:0,origin:window.location.origin},host:"http://www.youtube.com",events:{onReady:this.onPlayerReady.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onVideoError.bind(this)}}))}async isPlaying(){return await Promise.resolve(),this.playerApi?.getPlayerState()===YT.PlayerState.PLAYING||!1}onPlayerStateChange(i){if(this.dispatchTrackingEvent(this.getStateString(i.data)),i.data===YT.PlayerState.PLAYING)return this.onVideoStarted(),void(0,e.vy)(this,t.F5);i.data!==YT.PlayerState.PAUSED?i.data!==YT.PlayerState.ENDED||this.onVideoEnded():this.onVideoPaused()}playVideoMethod(){void 0!==this.playerApi&&this.playerApi.playVideo()}pauseVideo(){void 0!==this.playerApi&&this.playerApi.pauseVideo()}muteVideo(){void 0!==this.playerApi&&this.playerApi.mute()}unMuteVideo(){void 0!==this.playerApi&&this.playerApi.unMute()}getStateString(e){switch(e){case YT.PlayerState.UNSTARTED:return"UNSTARTED";case YT.PlayerState.ENDED:return"ENDED";case YT.PlayerState.PLAYING:return"PLAYING";case YT.PlayerState.PAUSED:return"PAUSED";case YT.PlayerState.BUFFERING:return"BUFFERING";case YT.PlayerState.CUED:return"CUED";default:return"UNSTARTED"}}});var W,X,J,Y,Z=i(26676),ee=i(5610),te=i(43924);let ie=(W=(0,S.hq)(".vic-js-form-field__input"),X=(0,S.rF)("input","input"),J=class extends te.z{constructor(...e){super(...e),this._hasServiceValidationError=!1,this._isLoading=!1,this.abortableRequestService=new ee.d,this.externalErrorMessage=void 0,T()(this,"input",Y,this)}get validationUrl(){return this.getAttribute("validation-url")||""}get validationType(){const e=this.getAttribute("validation-type");return e&&["error","warning","trigger","silent-trigger"].includes(e)?e:"error"}get validateAsWarning(){return"error"!==this.validationType}get validationMessage(){return this.getAttribute("validation-message")||""}get minlength(){const e=this.getAttribute("minlength");if(null!==e)return parseInt(e,10)}get maxlength(){const e=this.getAttribute("maxlength");if(null!==e)return parseInt(e,10)}get valuePattern(){return this.getAttribute("pattern")||void 0}get initialValue(){return this.getAttribute("initial-value")||""}get curTabIndex(){return this.getAttribute("tabindex")||void 0}get step(){return this.getAttribute("step")??void 0}get inputmode(){return this.getAttribute("inputmode")??void 0}get isLoading(){return this._isLoading}set isLoading(i){this._isLoading!==i&&(this._isLoading=i,(0,e.p1)(this,t.F5,i))}get hasServiceValidationError(){return this._hasServiceValidationError}set hasServiceValidationError(e){this._hasServiceValidationError!==e&&(this._hasServiceValidationError=e,this.renderAsync())}get currentValue(){return this.input.value||""}get submitString(){return this.submitValue}get formFieldValid(){return!1===this.formGroupActive||!this.hasExternalError&&this.input&&this.input.checkValidity()}async isValid(){if(this.isLoading=!0,!1===this.formFieldValid)return this.isLoading=!1,!1;if(""===this.validationUrl)return this.isLoading=!1,!0;const e=await this.fetchValidation();return this.isLoading=!1,!0===e||!0===this.validateAsWarning}get showWarning(){const e="warning"===this.validationType||"trigger"===this.validationType;return this.hasServiceValidationError&&e}get errorMessage(){return void 0!==this.externalErrorMessage?this.externalErrorMessage:super.errorMessage}async initFormField(){""!==this.initialValue&&(this.input.value=this.initialValue,await this.renderAsync()),await super.initFormField()}async prefillInput(){const e=this.prefillValue;null!==e&&(this.input.value=e,await this.renderAsync(),!0!==this.inl
256ineValidationDisabled&&await this.validate())}async silentReRender(){try{const{textInputTemplate:e}=await Promise.resolve().then(i.bind(i,60687));(0,m.XX)(e(this.renderArgs),this.getUiRoot())}catch(e){u.bD.error("Textinput:",e)}}async renderAsync(){try{const{textInputTemplate:e}=await Promise.resolve().then(i.bind(i,60687));this.state.inValidationMode&&await this.validate(),(0,m.XX)(e(this.renderArgs),this.getUiRoot())}catch(e){u.bD.error("Textinput:",e)}}get renderArgs(){return{component:this,showWarning:this.showWarning,validationMessage:this.validationMessage,showError:this.state.showError,formFieldValid:this.formFieldValid,errorMessage:this.errorMessage,description:this.description,id:this.id,isRequired:this.isRequired,label:this.label,autocompleteType:this.autocompleteType,isDisabled:this.isDisabled,isReadonly:this.isReadonly,name:this.name,type:this.type,minlength:this.minlength,maxlength:this.maxlength,hasTopLabel:this.hasTopLabel,valuePattern:this.valuePattern,curTabIndex:this.curTabIndex}}async handleInput(){this.hasExternalError=!1,await this.renderAsync(),this.dispatchEvent(new CustomEvent(P.aA,{bubbles:!1}))}updateValue(e){this.input.value=e,this.renderAsync()}async validate(){return this.isLoading=!0,!1===this.formFieldValid?(this.clearWarning(),this.setState({showError:!0,inValidationMode:!0}),(0,e.vy)(this,t.qO),void(this.isLoading=!1)):""===this.validationUrl?(this.clearWarning(),this.setState({showError:!1,inValidationMode:!0}),(0,e.iQ)(this,t.qO),void(this.isLoading=!1)):(await this.validateWithService(),void(this.isLoading=!1))}async validateWithService(){if(""===this.validationUrl)return;const i=await this.fetchValidation();if(null===i)return;const s=this.hasServiceValidationError&&"error"===this.validationType;this.setState({showError:s,inValidationMode:!0}),(0,e.p1)(this,t.qO,!0===i||"silent-trigger"===this.validationType),(0,e.p1)(this,t.Nz,this.showWarning)}async fetchValidation(){try{if(""===this.validationUrl)throw new Error("No Validation URL provided");if(""===this.currentValue)return!0;const e=new URLSearchParams,t=this.submitValue||"";e.append("value",t);const i=(0,Z.Ne)(this.validationUrl,e),s=await this.abortableRequestService.fetchJSON({url:i,options:{cacheOptions:{validFor:0}}});if(null===s)throw new Error("No Response from Validation Service");return this.hasServiceValidationError=!1===s.isValid,s.isValid}catch(e){return u.bD.error("VicTextInput: ",e),null}}async handleFocusOut(){await super.handleFocusOut(),""===(this.submitValue||"")&&this.formFieldValid||(!1===this.inlineValidationDisabled&&await this.validate(),await this.renderAsync())}clearInput(){this.input.value="",this.renderAsync()}clearWarning(){this._hasServiceValidationError=!1,(0,e.vy)(this,t.Nz)}async reset(){this.setState({showError:!1,inValidationMode:!1}),this.hasExternalError=!1,this.hasServiceValidationError=!1,this.input.value=this.initialValue,await this.prefillInput(),(0,e.vy)(this,t.qO,t.Nz),await this.renderAsync()}async validateConditions(e){if(void 0===this.submitValue)return!1;const t=await this.isValid();return"trigger"!==this.validationType&&"silent-trigger"!==this.validationType?t:e.every(e=>"validation-failed"===e?this.hasServiceValidationError:t&&!1===this.hasServiceValidationError)}},Y=c()(J.prototype,"input",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(J.prototype,"handleInput",[X],Object.getOwnPropertyDescriptor(J.prototype,"handleInput"),J.prototype),J);customElements.define("vic-e-text-input",ie);var se,ae,ne,re,oe=i(93252);class le extends te.z{constructor(...e){super(...e),this.initialCheckedState=!1,this.initialContentCleared=!1,this.labelMarkup=void 0}get DEFAULT_ERROR_MESSAGE(){return"Please select this Field."}get label(){return this.getAttribute("label")||""}get hasFocus(){return document.activeElement===this.ui.input}get isChecked(){return this.hasAttribute("checked")&&"false"!==this.getAttribute("checked")}set isChecked(e){this.ui.input.checked=e,this.setAttribute("checked",`${e}`)}get submitValueType(){return"boolean"}get submitValue(){return this.isChecked}get submitString(){return this.isChecked?"true":"false"}get isEmpty(){return void 0===this.submitValue||!0!==this.submitValue}static get observedAttributes(){return["checked","disabled"]}connectedCallback(){super.connectedCallback(),this.initLabelMarkup()}async attributeChangedCallback(e,t,i){if("aria-describedby"===e||"aria-is-invalid"===e)return void await this.renderAsync();const s=("true"===i||""===i)&&null!==i;if((("true"===t||""===t)&&null!==t)!==s&&this.state.initialized)switch(e){case"checked":this.ui.input.checked!==s&&(this.ui.input.checked=s,this.handleCheckedChange());break;case"disabled":this.ui.input.disabled=s}}clearInitialContent(){!1===this.initialContentCleared&&(this.innerHTML="",this.initialContentCleared=!0)}initLabelMarkup(){!0!==this.initialContentCleared&&(this.labelMarkup=(0,oe.v)(this.innerHTML.trim()),this.clearInitialContent())}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!this.hasExternalError&&(this.ui.input?.checkValidity()||this.isChecked)}async initFormField(){this.initialCheckedState=this.isChecked,this.ui.input.checked=this.isChecked,await this.prefillInput(),(0,e.iQ)(this,t.tg)}async prefillInput(){await Promise.resolve();const e=this.prefillValue;null!==e&&(this.isChecked="false"!==e)}async handleCheckedChange(){this.hasExternalError=!1;const e=this.ui.input.checked;this.isChecked=e,await this.renderAsync(),this.dispatchEvent(new CustomEvent(P.fr,{detail:{isChecked:e,target:this,name:this.name}}))}healCheckedState(){this.isChecked=this.ui.input.checked}async onValidationModeChange({inValidationMode:t}){await Promise.resolve(),t?(0,e.MR)(this,P.fr,this.validate,this):(0,e.Nn)(this,P.fr,this.validate,this)}async reset(){this.setState({showError:!1,inValidationMode:!1}),this.isChecked=this.initialCheckedState,(0,e.vy)(this,t.qO),await this.prefillInput()}async validateConditions(e){return await Promise.resolve(),!1!==this.isChecked&&e.some(e=>e===this.isChecked.toString())}}class ce extends le{constructor(...e){super(...e),this.skipValidation=!1,this._checkGroup=void 0}get DEFAULT_ERROR_MESSAGE(){return"Please accept this Field."}get DEFAULT_FIELD_TYPE(){return"checkbox"}get onlySelect(){return null!==this.getAttribute("only-select")}get submitString(){if(!1!==this.isChecked)return""!==this.label?this.label:this.name}get checkGroup(){return void 0===this._checkGroup&&(this._checkGroup=this.closest("vic-m-check-group"),(0,e.MR)(this._checkGroup,P.yj,this.handleCheckGroupChange,this)),this._checkGroup}get renderArgs(){return{id:this.id,name:this.name,label:this.label,checkGroup:this.checkGroup,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,showError:this.state.showError,errorMessage:this.errorMessage,isChecked:this.isChecked,labelMarkup:this.labelMarkup,description:this.description,descriptionMarkup:this.descriptionMarkup,
256checkedCb:()=>this.handleCheckedChange()}}async renderAsync(){try{const{checkBoxTemplate:e}=await i.e(30067).then(i.bind(i,30067));(0,m.XX)(e(this.renderArgs),this.getUiRoot())}catch(e){u.bD.error("Checkbox:",e)}}handleCheckGroupChange(){this.renderAsync()}async handleFocusOut(){await super.handleFocusOut();const i=this.submitValue||"",s=await this.isValid();""===i&&s||this.skipValidation||(!1===this.inlineValidationDisabled&&(await this.validate(),(0,e.p1)(this,t.qO,s)),await this.renderAsync())}}customElements.define("vic-e-check-box",ce);let he=(se=(0,S.hq)(".vic-js-form-field__input"),ae=(0,S.rF)("input","keyup"),ne=class extends te.z{constructor(...e){super(...e),T()(this,"input",re,this)}get minlength(){const e=this.getAttribute("minlength");if(null!==e)return parseInt(e,10)}get maxlength(){const e=this.getAttribute("maxlength");if(null!==e)return parseInt(e,10)}get rowsCount(){return this.getAttribute("rows")||void 0}get hasTopLabel(){return this.hasAttribute("has-top-label")&&"false"!==this.getAttribute("has-top-label")}get initialValue(){return this.getAttribute("initial-value")||""}get submitValue(){return this.input?.value||""}get submitString(){return this.submitValue}get renderArgs(){return{id:this.id,name:this.name,label:this.label,hasTopLabel:this.hasTopLabel,showError:this.state.showError,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,minlength:this.minlength,maxlength:this.maxlength,rowsCount:this.rowsCount,submitValueLength:this.submitValue.length,errorMessage:this.errorMessage,description:this.description}}async initFormField(){""!==this.initialValue&&(this.input.value=this.initialValue,await this.renderAsync()),super.initFormField()}async renderAsync(){try{const{textareaTemplate:e}=await i.e(24423).then(i.bind(i,24423));this.state.inValidationMode&&await this.validate(),(0,m.XX)(e(this.renderArgs),this.getUiRoot())}catch(e){u.bD.error("TextArea:",e)}}async handleKeyup(){this.hasExternalError=!1,await this.renderAsync(),this.dispatchEvent(new CustomEvent(P.aA,{bubbles:!1}))}async handleFocusOut(){await super.handleFocusOut();const i=this.submitValue||"",s=await this.isValid();""===i&&s||(await this.validate(),(0,e.p1)(this,t.qO,s),await this.renderAsync())}async reset(){this.setState({showError:!1,inValidationMode:!1}),this.input.value=this.initialValue,(0,e.vy)(this,t.qO),await this.prefillInput()}},re=c()(ne.prototype,"input",[se],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(ne.prototype,"handleKeyup",[ae],Object.getOwnPropertyDescriptor(ne.prototype,"handleKeyup"),ne.prototype),ne);var de,ue,pe,ge,be,me,fe;customElements.define("vic-e-textarea",he);let ve=(de=(0,S.hq)(".vic-e-form-field__label"),ue=(0,S.hq)(".vic-js-form-field__input"),pe=(0,S.K3)(".vic-e-select__option"),ge=class extends te.z{constructor(...e){super(...e),this.optionsInitialized=!1,this.initialSelectedIdx=0,this._selectOptions=void 0,this.initialContentCleared=!1,this.labelResizeObserverInitialized=!1,this._labelTag=void 0,T()(this,"labelElement",be,this),T()(this,"input",me,this),T()(this,"options",fe,this)}get labelTag(){return void 0===this._labelTag&&(this._labelTag=this.querySelector(".vic-e-form-field__label")??void 0),this._labelTag??null}get selectOptions(){return this._selectOptions}get selectedOption(){return this.input.options[this.input.selectedIndex]}get selectedOptionData(){return this.selectOptions[this.input.selectedIndex]}get submitString(){const e=this.selectedOption;if(void 0!==e&&!0!==e.disabled)return this.input.options[this.input.selectedIndex].text}get renderArgs(){return{id:this.id,label:this.label,hasTopLabel:this.hasTopLabel,name:this.name,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,showError:this.state.showError,onSelectionChange:()=>this.onSelectionChange(),selectOptions:this.selectOptions,description:this.description,errorMessage:this.errorMessage}}async initFormField(){await super.initFormField(),"l"===this.formFieldSize&&(this.initResizeObserver(),this.updateLabelSize())}initResizeObserver(){new ResizeObserver(()=>{requestAnimationFrame(()=>{this.updateLabelSize()})}).observe(this)}updateLabelSize(){if(void 0===this.labelElement)return;const e=this.labelElement?.offsetHeight??0;this.style.setProperty("--vic-e-select-label-height",`${e}px`)}
256async renderAsync(){try{this.initSelectOptions(),this.state.inValidationMode&&await this.validate();const{selectTemplate:e}=await i.e(22363).then(i.bind(i,22363));(0,m.XX)(e(this.renderArgs),this.getUiRoot()),this.setLabelHeightCustomProperty(),this.initLabelResizeObserver()}catch(e){u.bD.error("VICSelect:",e)}}initSelectOptions(){if(this.optionsInitialized)return;const t=(0,e.JW)(this,"option");this._selectOptions=t.map(e=>({label:e.innerText,value:e.getAttribute("value")||"",disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"),selected:e.hasAttribute("selected")&&"false"!==e.getAttribute("selected"),dataset:e.dataset}));const i=this._selectOptions.findIndex(e=>e.selected);-1!==i&&(this.initialSelectedIdx=i),this.optionsInitialized=!0,!1===this.initialContentCleared&&(this.innerHTML="",this.initialContentCleared=!0)}setLabelHeightCustomProperty(){this.labelTag&&this.style.setProperty("--vic-label-height",`${this.labelTag.offsetHeight}px`)}initLabelResizeObserver(){this.labelTag&&!this.labelResizeObserverInitialized&&(new ResizeObserver(()=>{this.setLabelHeightCustomProperty()}).observe(this.labelTag),this.labelResizeObserverInitialized=!0)}updateSelectedValue(e){this.hasOption(e)&&(this.input.value=e)}async onSelectionChange(){this.hasExternalError=!1,!1===this.inlineValidationDisabled&&await this.validate(),this.dispatchEvent(new CustomEvent(P.RQ)),this.dispatchEvent(new CustomEvent(P.aA,{bubbles:!1}))}disableOption(e){const t=this.options.find(t=>t.value===e);void 0!==t&&(t.disabled=!0,this.selectedOption===t&&this.selectFirstEnabledOption())}enableOption(e){const t=this.options.find(t=>t.value===e);void 0!==t&&(t.disabled=!1)}enableAllOptions(){this.options.forEach(e=>{e.disabled=!1})}selectFirstEnabledOption(){const e=this.options.find(e=>!1===e.disabled);void 0!==e&&(this.input.selectedIndex=this.options.indexOf(e))}async handleFocusOut(){await super.handleFocusOut();const i=this.submitValue||"",s=await this.isValid();""===i&&s||(!1===this.inlineValidationDisabled&&(await this.validate(),(0,e.p1)(this,t.qO,s)),await this.renderAsync())}hasOption(e){return this.selectOptions.some(t=>t.value===e)}async reset(i=!1){this.setState({showError:!1,inValidationMode:!1}),this.input.selectedIndex=this.initialSelectedIdx,(0,e.vy)(this,t.qO),!1===i&&await this.prefillInput()}async validateConditions(e){if(e.includes("*"))return await this.isValid()&&void 0!==this.submitValue;const t=this.selectedOption?.value||"";return e.some(e=>e===t)}async updateSelectOptions(e,t){const{dispatchChange:i=!1,ignorePrefill:s,addEmptyOption:a=!1}=t??{};await this.reset(s),this._selectOptions=a?[{value:"",label:"",disabled:!0,selected:!0,dataset:{}},...e]:e,await this.renderAsync();const n=this._selectOptions.findIndex(e=>e.selected);-1!==n&&(this.input.selectedIndex=n),i&&await this.onSelectionChange()}},be=c()(ge.prototype,"labelElement",[de],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=c()(ge.prototype,"input",[ue],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=c()(ge.prototype,"options",[pe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge);var ye,we,Se,Ce;customElements.define("vic-e-select",ve);let Ae=(ye=(0,S.K3)(".vic-m-check-group__checkbox"),we=(0,S.rF)("checkBoxes","focusout"),Se=class extends te.z{constructor(...e){super(...e),this.checkGroupItemsInitialized=!1,this.checkGroupItemMap=new Map,this.initialContentCleared=!1,T()(this,"checkBoxes",Ce,this)}get legend(){return this.getAttribute("legend")||""}get label(){return this.legend}get hasFocus(){return this.checkBoxes.some(e=>e.hasFocus)}get checkGroupItems(){return Array.from(this.checkGroupItemMap.values())}get checkGroupElements(){return(0,e.JW)(this,".vic-m-check-group__checkbox")}get allItemsValid(){return void 0===this.checkGroupItems.find(e=>!0===e.required&&!1===e.selected)}get submitValueType(){return"Array<string>"}get submitValue(){return this.checkGroupItems.filter(e=>!0===e.selected).map(e=>e.name)}get selectedLabels(){return this.checkGroupItems.filter(e=>!0===e.selected).map(e=>e.label)}get submitString(){return this.checkGroupItems.filter(e=>!0===e.selected).map(e=>e.label).join(", ")}get isEmpty(){return 0===this.submitValue.length}get prefillValue(){if(this.prefillDisabled)return null;const e=this.prefillName||this.name;
256return""===e?null:u.tJ.getAll(e)?.join(",")||null}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!this.hasExternalError&&(!this.isRequired||this.submitValue.length>0&&this.allItemsValid)}async initFormField(){await Promise.all(this.checkBoxes.map(async t=>{await(0,e.db)(t),t.skipValidation=!0})),await super.initFormField(),(0,e.iQ)(this,t.tg)}async prefillInput(){const e=this.prefillValue;if(null===e)return;const t=e.split(",");await Promise.all(t.map(async e=>{const t=this.checkGroupItems.find(t=>t.name===e);void 0!==t&&await this.setCheckedState(t.idx,!0)}))}async renderAsync(){try{this.initCheckGroupItems();const{checkGroupTemplate:e}=await i.e(8048).then(i.bind(i,8048));(0,m.XX)(e({id:this.id,label:this.label,name:this.name,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,description:this.description,errorMessage:this.errorMessage,showError:this.state.showError,inlineValidationDisabled:this.inlineValidationDisabled,items:this.checkGroupItems,selectionChangeCb:(e,t)=>this.setCheckedState(e,t)}),this)}catch(e){u.bD.error("CheckGroup:",e)}}initCheckGroupItems(){this.checkGroupItemsInitialized||((0,e.JW)(this,"option").forEach((e,t)=>{const i={idx:t,label:e.innerText,name:e.getAttribute("name")||"",required:e.hasAttribute("required")&&"false"!==e.getAttribute("required"),disabled:this.isDisabled||e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"),selected:e.hasAttribute("selected")&&"false"!==e.getAttribute("selected"),readonly:this.isReadonly||e.hasAttribute("readonly")&&"false"!==e.getAttribute("readonly"),onlySelect:e.hasAttribute("data-only-select")&&"false"!==e.getAttribute("data-only-select"),selectAll:e.hasAttribute("data-select-all")&&"false"!==e.getAttribute("data-select-all")};this.checkGroupItemMap.set(t,i)}),!1===this.initialContentCleared&&(this.innerHTML="",this.initialContentCleared=!0),this.checkGroupItemsInitialized=!0)}async updateComponent(){this.state.inValidationMode&&await this.validate();const{checkGroupTemplate:s}=await i.e(8048).then(i.bind(i,8048)),a=await this.isValid();(0,e.p1)(this,t.qO,!this.state.showError&&a&&this.isRequired&&!1===this.inlineValidationDisabled),(0,m.XX)(s({id:this.id,label:this.label,name:this.name,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,description:this.description,errorMessage:this.errorMessage,showError:this.state.showError,inlineValidationDisabled:this.inlineValidationDisabled,items:this.checkGroupItems,selectionChangeCb:(e,t)=>this.setCheckedState(e,t)}),this)}async reRenderHook(){await this.updateComponent()}async onCheckBoxFocusOut(){await(0,e.fm)(250),this.hasFocus||!0!==this.inl
256ineValidationDisabled&&await this.validate()}async setCheckedState(e,t){const i=this.checkGroupItemMap.get(e);void 0!==i&&i.selected!==t&&(this.handleOnlySelect(i,t),this.handleAllSelect(i,t),i.selected=t,this.checkGroupItemMap.set(e,i),this.checkSelectAll(),await this.updateComponent(),this.dispatchChangedEvent())}checkSelectAll(){Array.from(this.checkGroupItemMap.values()).filter(e=>!e.selectAll).every(e=>!0===e.selected)&&this.checkAllItems()}unCheckSelectAllItems(){this.checkGroupItemMap.forEach((e,t)=>{e.selectAll&&(e.selected=!1,this.checkGroupItemMap.set(t,e))})}handleOnlySelect(e,t){if(!1!==t)return e.onlySelect?this.unCheckAllItems():void this.unCheckOnlySelectItems()}handleAllSelect(e,t){if(!1===t&&this.unCheckSelectAllItems(),!1!==e.selectAll)return!0===t?this.checkAllItems():void this.unCheckAllItems()}unCheckAllItems(){this.checkGroupItemMap.forEach((e,t)=>{e.selected=!1,this.checkGroupItemMap.set(t,e)})}checkAllItems(){this.checkGroupItemMap.forEach((e,t)=>{!1===e.onlySelect&&(e.selected=!0,this.checkGroupItemMap.set(t,e))})}unCheckOnlySelectItems(){this.checkGroupItemMap.forEach((e,t)=>{e.onlySelect&&(e.selected=!1,this.checkGroupItemMap.set(t,e))})}dispatchChangedEvent(){this.dispatchEvent(new CustomEvent(P.aA,{detail:this,bubbles:!1}))}async reset(){this.setState({showError:!1,inValidationMode:!1}),await Promise.all(this.checkGroupElements.map(e=>e.reset())),(0,e.vy)(this,t.qO),await this.prefillInput()}async validateConditions(e){await Promise.resolve();const t=this.submitValue;return e.filter(e=>t.includes(e)).length>0}async updateItems(e){await this.reset(),this.checkGroupItemMap.clear(),e.forEach((e,t)=>{this.checkGroupItemMap.set(t,e)}),await this.updateComponent(),this.healCheckedStates()}focus(){this.checkGroupElements[0]?.focus()}async healCheckedStates(){const t=Array.from(this.checkGroupItemMap.values()).filter(e=>!0===e.selected);await Promise.all(this.checkGroupElements.map(t=>(0,e.db)(t))),t.forEach(e=>{this.checkGroupElements[e.idx].isChecked=!0})}},Ce=c()(Se.prototype,"checkBoxes",[ye],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Se.prototype,"onCheckBoxFocusOut",[we],Object.getOwnPropertyDescriptor(Se.prototype,"onCheckBoxFocusOut"),Se.prototype),Se);var Ee,Ie,ke,_e;customElements.define("vic-m-check-group",Ae);let Oe=(Ee=(0,S.K3)(".vic-m-radio-group__item"),Ie=(0,S.rF)("radioButtons","focusout"),ke=class extends te.z{constructor(...e){super(...e),this.radioGroupItemMap=new Map,this.initialContentCleared=!1,T()(this,"radioButtons",_e,this)}get legend(){return this.getAttribute("legend")||""}get label(){return this.legend}get radioGroupItems(){return Array.from(this.radioGroupItemMap.values())}get radioGroupElements(){return(0,e.JW)(this,".vic-m-radio-group__item")}get hasFocus(){return this.radioButtons?.some(e=>e.hasFocus)}get submitValue(){return this.radioButtons?.find(e=>!0===e.isChecked)?.value}get submitString(){return this.radioButtons?.find(e=>!0===e.isChecked)?.innerText}async initFormField(){(0,e.iQ)(this,t.tg),await Promise.all(this.radioButtons?.map(t=>(0,e.db)(t))),await this.prefillInput(),this.handleSelectionChanged()}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!(this.hasExternalError||this.isRequired&&void 0===this.submitValue)}async renderAsync(){try{this.initRadioGroupItems();const{radioGroupTemplate:e}=await i.e(69151).then(i.bind(i,69151));(0,m.XX)(e({id:this.id,name:this.name,label:this.label,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,description:this.description,errorMessage:this.errorMessage,handleSelectionChanged:()=>this.handleSelectionChanged(),items:this.radioGroupItems,showError:this.state.showError}),this)}catch(e){u.bD.error("RadioGroup:",e)}}async updateComponent(){this.state.inValidationMode&&await this.validate();const{radioGroupTemplate:s}=await i.e(69151).then(i.bind(i,69151)),a=await this.isValid();(0,e.p1)(this,t.qO,!this.state.showError&&a&&this.isRequired),(0,m.XX)(s({id:this.id,name:this.name,label:this.label,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,description:this.description,errorMessage:this.errorMessage,handleSelectionChanged:()=>this.handleSelectionChanged(),items:this.radioGroupItems,showError:this.state.showError}),this)}async reRenderHook(){await this.updateComponent()}initRadioGroupItems(){(0,e.JW)(this,"option").forEach((e,t)=>{const i={idx:t,id:(0,K.A)(),label:e.innerText,value:e.getAttribute("value")||"",name:this.name,disabled:this.isDisabled||e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"),selected:e.hasAttribute("selected")&&"false"!==e.getAttribute("selected"),readonly:this.isReadonly||e.hasAttribute("readonly")&&"false"!==e.getAttribute("readonly")};this.radioGroupItemMap.set(t,i)}),!1===this.initialContentCleared&&(this.innerHTML="",this.initialContentCleared=!0)}async prefillInput(){const t=this.prefillValue;null!==t&&await Promise.all(this.radioButtons.map(async i=>{await(0,e.db)(i),i.isChecked=i.value===t}))}
256async onFocusOut(){await(0,e.fm)(10),this.hasFocus||await this.validate()}async handleSelectionChanged(){this.radioButtons.forEach(e=>e.healCheckedState()),await this.updateComponent(),this.dispatchEvent(new CustomEvent(P.aA,{detail:this,bubbles:!1}))}async reset(){this.setState({showError:!1,inValidationMode:!1}),await Promise.all(this.radioGroupElements.map(e=>e.reset())),await this.prefillInput(),(0,e.vy)(this,t.qO),await this.handleSelectionChanged()}focus(){this.radioButtons[0]?.focus()}async validateConditions(e){await Promise.resolve();const t=this.submitValue;return void 0!==t&&e.some(e=>e===t)}},_e=c()(ke.prototype,"radioButtons",[Ee],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(ke.prototype,"onFocusOut",[Ie],Object.getOwnPropertyDescriptor(ke.prototype,"onFocusOut"),ke.prototype),ke);customElements.define("vic-m-radio-group",Oe),customElements.define("vic-e-radio-button",class extends le{constructor(...e){super(...e),this._radioGroup=void 0}get DEFAULT_FIELD_TYPE(){return"radio"}get value(){return this.getAttribute("value")||""}get submitString(){return this.isChecked?this.value:void 0}get radioGroup(){return void 0===this._radioGroup&&(this._radioGroup=this.closest("vic-m-radio-group"),(0,e.MR)(this._radioGroup,P.yj,this.handleRadioGroupChange,this)),this._radioGroup}get renderArgs(){return{value:this.value,label:this.label,radioGroup:this.radioGroup,name:this.name,id:this.id,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,showError:this.state.showError,errorMessage:this.errorMessage,isChecked:this.isChecked,description:this.description,checkedCb:()=>this.handleCheckedChange()}}async renderAsync(){try{const{radioButtonTemplate:e}=await i.e(98855).then(i.bind(i,98855));(0,m.XX)(e(this.renderArgs),this.getUiRoot())}catch(e){u.bD.error("VICRadioButton:",e)}}handleRadioGroupChange(){this.renderAsync()}});var xe=i(68565),Te=i(492),Fe=i(90259),Pe=i(92207),De=i(47951),Me=i(337),Re=i(35283),Be=i(60687),Le=i(95467),Ve=i(60804),Ne=i(97203);const ze=e=>Ne.A.getValueOrDefault(`viessmann.corporate.phoneVerificationOverlay.${e}`,"");var qe=i(99890);const Ue=new class{constructor(){this.recaptchaInstance=void 0}async loadRecaptchaInstance(){if(void 0!==this.recaptchaInstance)return this.recaptchaInstance;const e=await this.getRecaptchaSiteKey();return this.recaptchaInstance=(0,qe.Hh)(e,{renderParameters:{badge:"bottomleft"}}),this.recaptchaInstance}async executeRecaptcha(e){const t=await this.loadRecaptchaInstance();return await t.execute(e)}async getRecaptchaSiteKey(){const e=await p.A.getConfigItem("googleRecaptchaSiteKey");if(void 0===e)throw new Error("Google reCAPTCHA site key is not configured.");return e}};var $e,je,He,Ke,Qe,Ge,We;let Xe=($e=(0,S.hq)(".vic-m-form__form"),je=(0,S.K3)(".vic-m-form__input"),He=(0,S.rF)("this",u.AI),Ke=(0,S.rF)("form","submit"),Qe=class i extends S.uA{constructor(...e){super(...e),this.viewportObserver=u.rD.getInstance(),this.submitBlocked=!1,this._isLoading=!1,this._externalSubmitData=[],this.phoneVerificationOverlay=void 0,this.recaptchaLoaded=!1,T()(this,"form",Ge,this),T()(this,"formFields",We,this),this.loadingBounce=void 0}get isLoading(){return this._isLoading}set isLoading(i){i!==this._isLoading&&(!0===i?(this.renderLoadingBounce(),(0,e.iQ)(this,t.F5)):(0,e.vy)(this,t.F5),this._isLoading=i)}get submitUrl(){return this.getAttribute("submit-url")||""}get recaptchaActive(){return""!==this.recaptchaName}get recaptchaName(){return this.getAttribute("recaptcha-name")??""}get phoneVerificationEnabled(){return""!==this.verificationCodeEndpoint&&""!==this.verificationPhoneNumber}get verificationCodeEndpoint(){return this.getAttribute("verification-code-endpoint")||""}get verificationCodePattern(){return this.getAttribute("verification-code-pattern")||void 0}get verificationPhoneNumberField(){return this.getAttribute("verification-phone-number-field")||""}get verificationPhoneNumber(){if(""===this.verificationPhoneNumberField)return"";const e=this.formFields.find(e=>e.name===this.verificationPhoneNumberField);return void 0===e?"":e.submitString??""}get verificationCodeValidTime(){const e=this.getAttribute("verification-code-valid-time");if(null===e)return 100;const t=parseInt(e,10);return isNaN(t)?100:t}get ipServiceUrl(){return this.getAttribute("ip-service-url")||""}get userIpSubmitName(){const e=this.getAttribute("user-ip-submit-name")||"";if(""!==e)return e;const t=this.formFields.find(e=>!0===e.asIp);return void 0===t?null:t.name}get timestampSubmitName(){const e=this.getAttribute("timestamp-submit-name")||"";if(""!==e)return e;const t=this.formFields.find(e=>!0===e.asTimestamp);return void 0===t?null:t.name}get submitData(){const e=this.formFields.map(e=>e.submitData).filter(e=>null!==e);return[...this.externalSubmitData,...e]}get trackingData(){const e=new Map;return this.submitData.filter(e=>"fileList"!==e.type).forEach(t=>e.set(t.name,t.value.toString())),Object.fromEntries(e)}get externalSubmitData(){return this._externalSubmitData}set externalSubmitData(e){this._externalSubmitData=e.map(e=>({...e,isExternal:!0}))}afterComponentRender(){this.viewportObserver.observe(this)}async handleInViewport(){!1!==this.recaptchaActive&&!0!==this.recaptchaLoaded&&(this.recaptchaLoaded=!0,await Ue.loadRecaptchaInstance())}
256async handleSubmit(e){e.preventDefault(),await this.submitForm()}async submitForm(e=!1){if(!0!==this.submitBlocked){if(this.submitBlocked=!0,!1===await i.validateFormFields(this.formFields)){this.dispatchEvent(new CustomEvent(P.Q4,{bubbles:!1}));const t=await this.findFirstInvalidFormField();if(void 0===t)return;return!1===e&&await Te.A.scrollToElement(t),t.focus(),void(this.submitBlocked=!1)}if(!0===this.phoneVerificationEnabled)return await this.initVerificationOverlay(),void(this.submitBlocked=!1);await this.postData(),this.submitBlocked=!1}}async initVerificationOverlay(){if(void 0!==this.phoneVerificationOverlay)return;const t=await this.renderVerificationOverlay();(0,e.MR)(t,P.yc,this.handleVerificationOverlayClose,this),(0,e.MR)(t,P.yj,this.handleVerificationOverlayChange,this),document.body.appendChild(t),this.phoneVerificationOverlay=t,await(0,e.db)(t),t.open()}async renderVerificationOverlay(){const e=document.createElement("div");return(0,m.XX)(await(async e=>m.qy` 257 <vic-m-phone-verification-overlay 258 class="vic-m-phone-verification-overlay" 259 phone-number=${e.phoneNumber} 260 verification-code-endpoint=${e.verificationCodeEndpoint} 261 > 262 <div class="vic-m-phone-verification-overlay__content"> 263 <div class="vic-m-phone-verification-overlay__header"> 264 <h2 class="vic-m-phone-verification-overlay__title">${await ze("title")}</h2> 265 ${(0,De.M)({cssClasses:"vic-m-phone-verification-overlay__closing-btn",label:await ze("closeOverlay")})} 266 </div> 267 <div class="vic-m-phone-verification-overlay__body"> 268 <p class="vic-m-phone-verification-overlay__text"> 269 ${(0,Ve.F)(await ze("textTemplate"),{phoneNumber:e.phoneNumber})} 270 </p> 271 ${(0,Be._)({cssClasses:"vic-m-phone-verification-overlay__input",type:"text",isRequired:!0,pattern:e.codePattern})} 272 </div> 273 <div class="vic-m-phone-verification-overlay__footer"> 274 <div class="vic-m-phone-verification-overlay__footer-actions"> 275 ${(0,Le.A)({cssClasses:"vic-m-phone-verification-overlay__timer",duration:e.timerDuration,labelTemplate:await ze("timer.labelTemplate"),autoStart:!0})} 276 ${(0,Pe.v)({cssClasses:"vic-e-button--brand vic-e-button--small vic-m-phone-verification-overlay__verify-btn",label:await ze("verifyButton.label"),isDisabled:!0,isRealButton:!0})} 277 </div> 278 279 <div class="vic-m-phone-verification-overlay__error-box"> 280 ${(0,Me.s)({cssClasses:"vic-m-phone-verification-overlay__error-icon",iconId:"vic-icon-warning"})} 281 <div class="vic-m-phone-verification-overlay__error-content"> 282 <p class="vic-m-phone-verification-overlay__error-text">${await ze("timeIsUpError.text")}</p> 283 ${(0,Re.n)({cssClasses:"vic-m-phone-verification-overlay__error-link",label:await ze("timeIsUpError.button.label"),iconId:"vic-icon-arrow-right"})} 284 </div> 285 </div> 286 </div> 287 </div> 288 ${(0,Fe.q)({cssClasses:"vic-m-phone-verification-overlay__a11y-closing-btn",label:await ze("closeOverlay")})} 289 </vic-m-phone-verification-overlay> 290`)({timerDuration:this.verificationCodeValidTime,codePattern:this.verificationCodePattern,verificationCodeEndpoint:this.verificationCodeEndpoint,phoneNumber:this.verificationPhoneNumber}),e),e.querySelector("vic-m-phone-verification-overlay")}handleVerificationOverlayClose(){this.phoneVerificationOverlay=void 0,this.isLoading=!1}async handleVerificationOverlayChange(){if(void 0===this.phoneVerificationOverlay)return;const e=await this.phoneVerificationOverlay.getValidationCodeOptions();void 0!==e&&(this.phoneVerificationOverlay.loading=!0,await this.postData(e))}async findFirstInvalidFormField(){const e=(await Promise.all(this.formFields.map(e=>e.isValid()))).findIndex(e=>!1===e);return this.formFields[e]}static async validateFormFields(e){return 0===(await Promise.all(e.map(async e=>(await e.validate(),await e.isValid())))).filter(e=>!1===e).length}async postData(e){let t=this.submitData;if(0===t.length||""===this.submitUrl)return;void 0===e&&(this.isLoading=!0),t=await this.includeIpData(t),t=await this.includeReCaptchaToken(t);const i=(0,K.A)();t=[...t,{name:"trackingId",type:"string",value:i}],this.dispatchTrackingEvent(i);try{const i=await fetch(this.submitUrl,{method:"POST",body:JSON.stringify({phoneVerificationOptions:e,formData:t}),headers:{"Content-Type":"application/json"}}),s=await i.json();i.ok?this.handleSuccess(s):this.handleError(s)}catch(e){this.handleDefaultError(e)}}async includeIpData(e){if(""===this.ipServiceUrl)return e;try{const t=await this.fetchIpData();e=[...e,...t]}catch(e){u.bD.error("Form.includeIpData: ",e)}return e}async includeReCaptchaToken(e){if(!1===this.recaptchaActive)return e;try{const t=await Ue.executeRecaptcha(this.recaptchaName);e=[...e,{name:"recaptchaToken",type:"string",value:t}]}catch(e){u.bD.error("Form.includeReCaptchaToken: ",e)}return e}dispatchTrackingEvent(e){g.A.push({event:"conversion",trackingId:e,user:this.trackingData})}async reset(){await Promise.all(this.formFields.map(e=>e.reset()))}async fetchIpData(){const e=await fetch(this.ipServiceUrl);if(!e.ok)throw new Error("ip-service error");const t=await e.json(),i=[];return null!==this.userIpSubmitName&&i.push({name:this.userIpSubmitName,type:"string",value:t.ip}),null!==this.timestampSubmitName&&i.push({name:this.timestampSubmitName,type:"string",value:t.current_time||t.time_zone?.current_time||(new Date).toISOString()||""}),i}
290renderLoadingBounce(){void 0===this.loadingBounce&&(this.loadingBounce=document.createElement("div"),(0,m.XX)((0,xe.renderLoadingBounceElement)(),this.loadingBounce),this.appendChild(this.loadingBounce))}handleError(e){"PHONE_VALIDATION_ERROR"!==e.status?"FIELDERROR"!==e.status?this.handleRedirectError(e):this.handleFormFieldError(e):this.handlePhoneValidationError()}handlePhoneValidationError(){void 0!==this.phoneVerificationOverlay&&(this.phoneVerificationOverlay.loading=!1,this.phoneVerificationOverlay.setWrongCodeError(),this.phoneVerificationOverlay.open())}handleDefaultError(i){u.bD.error("Form Default Error: ",i),void 0!==this.phoneVerificationOverlay&&(this.phoneVerificationOverlay.loading=!1,this.phoneVerificationOverlay.close()),this.isLoading=!1,(0,e.iQ)(this,t.ff),this.dispatchEvent(new CustomEvent(P.oV,{bubbles:!1}))}handleRedirectError(e){u.bD.error("Form: ",e.status);const t=e.redirectUrl;t&&""!==t?(this.dispatchSystemErrorMessage(e.debugErrorMessage),window.location.href=t):this.handleDefaultError("RedirectUrl missing")}dispatchSystemErrorMessage(e){void 0!==e&&window.vipSystemMessageService?.addMessage({message:e,type:"error",onNextPage:!0})}handleFormFieldError(e){try{const t=e.errorFields;if(void 0===t||0===t.length)throw new Error("no error-field provided");const i=this.getFormFieldsByNames(t);if(0===i.length)throw new Error("no error-fields with given names found");i.forEach(e=>e.hasExternalError=!0),this.isLoading=!1,this.dispatchEvent(new CustomEvent(P.oV,{bubbles:!1,detail:{isFormFieldError:!0}}))}catch(e){u.bD.error("FormFieldError: ",e),this.handleDefaultError(e)}}handleSuccess(e){const t=e.redirectUrl;t&&""!==t?window.location.href=this.getRedirectUrl(t):this.handleDefaultSuccess()}handleDefaultSuccess(){this.isLoading=!1,(0,e.iQ)(this,t.qO),this.dispatchEvent(new CustomEvent(P.TZ,{bubbles:!1}))}getRedirectUrl(e){const t=Object.keys(b.trackingData).map(e=>`${e}=${b.trackingData[e]}`).join("&");if(""===t)return e;const i=e.includes("?");return`${e}${i?`&${t}`:`?${t}`}`}getFormFieldsByNames(e){return this.formFields.filter(t=>e.includes(t.name))}},Ge=c()(Qe.prototype,"form",[$e],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=c()(Qe.prototype,"formFields",[je],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Qe.prototype,"handleInViewport",[He],Object.getOwnPropertyDescriptor(Qe.prototype,"handleInViewport"),Qe.prototype),c()(Qe.prototype,"handleSubmit",[Ke],Object.getOwnPropertyDescriptor(Qe.prototype,"handleSubmit"),Qe.prototype),Qe);customElements.define("vic-m-form",Xe);class Je extends S.uA{constructor(...e){super(...e),this._overviewData=[]}get overviewData(){return this._overviewData}set overviewData(e){this._overviewData=e,this.renderTagGroup()}async renderTagGroup(){const e=await this.loadTemplate();(0,m.XX)(e({overviewData:this.overviewData}),this)}async loadTemplate(){const{inputOverviewTemplate:e}=await i.e(28883).then(i.bind(i,28883));return e}}var Ye,Ze,et,tt,it,st,at,nt;Je.IGNORED_FIELDS=["vic-e-hidden-input","vic-e-check-box"],customElements.define("vic-m-input-overview",Je);let rt=(Ye=(0,S.K3)(".vic-m-form__input"),Ze=(0,S.hq)(".vic-m-form-step__validation-button"),et=(0,S.K3)(".vic-m-input-overview"),tt=(0,S.rF)("validationButton","click"),it=class extends S.uA{constructor(...e){super(...e),T()(this,"formFields",st,this),T()(this,"validationButton",at,this),T()(this,"inputOverviews",nt,this)}get stepName(){return this.getAttribute("step-name")||""}showStep(){(0,e.iQ)(this,t.f9),this.setAttribute("aria-hidden","false"),(0,e.iQ)(this,"cmp-tabs__tabpanel--active")}hideStep(){(0,e.vy)(this,t.f9),this.setAttribute("aria-hidden","true"),(0,e.vy)(this,"cmp-tabs__tabpanel--active")}async validateStep(){return await Xe.validateFormFields(this.formFields)}async handleValidationButtonClick(t){if(t.preventDefault(),!1===await this.validateStep()){const t=await this.findFirstInvalidFormField();if(void 0===t)return;return await Te.A.scrollToElement(t),void(0,e.I6)(t,".vic-e-form-field__input")?.focus()}this.dispatchEvent(new CustomEvent(P.Jv))}async findFirstInvalidFormField(){const e=(await Promise.all(this.formFields.map(e=>e.isValid()))).findIndex(e=>!1===e);return this.formFields[e]}async getOverviewData(){await Promise.all(this.formFields.map(t=>(0,e.db)(t)));const t=this.formFields.filter(e=>!1===Je.IGNORED_FIELDS.includes(e.tagName.toLowerCase())&&!0===e.formGroupActive).map(e=>({name:e.label,value:e.submitString||""}));return{title:this.stepName,values:t.filter(e=>""!==e.value)}}updateInputOverview(e){this.inputOverviews.forEach(t=>t.overviewData=e)}},st=c()(it.prototype,"formFields",[Ye],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),at=c()(it.prototype,"validationButton",[Ze],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nt=c()(it.prototype,"inputOverviews",[et],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(it.prototype,"handleValidationButtonClick",[tt],Object.getOwnPropertyDescriptor(it.prototype,"handleValidationButtonClick"),it.prototype),it);customElements.define("vic-m-form-step",rt);var ot,lt,ct,ht,dt,ut,pt,gt,bt,mt,ft,vt,yt,wt,St,Ct,At,Et,It,kt,_t,Ot=i(35923),xt=i(98477),Tt=i(56293);let Ft=(ot=(0,S.K3)(".vic-m-slider__slide"),lt=(0,S.hq)(".vic-m-slider__slides"),ct=(0,S.hq)(".vic-m-slider__scroll-bar"),ht=(0,S.hq)(".vic-m-slider__scroll-indicator"),dt=(0,S.hq)(".vic-m-slider__nav-button--prev"),ut=(0,S.hq)(".vic-m-slider__nav-button--next"),pt=(0,S.rF)("window",u.Rn),gt=(0,S.rF)("prevBtn","click"),bt=(0,S.rF)("nextBtn","click"),mt=(0,S.rF)("scrollBar","click"),ft=(0,S.rF)("scrollIndicator","mousedown"),vt=(0,S.rF)("window","mousemove"),yt=(0,S.rF)("window","mouseup"),wt=(0,S.rF)("slidesContainer","scroll"),St=class extends S.uA{constructor(...e){super(...e),this.autoPlayInterval=void 0,this.isTransitioning=!1,T()(this,"slides",Ct,this),T()(this,"slidesContainer",At,this),T()(this,"scrollBar",Et,this),T()(this,"scrollIndicator",It,this),T()(this,"prevBtn",kt,this),T()(this,"nextBtn",_t,this),this.activeSlideIndicator=void 0,this._inDraggingMode=!1,this.initialDragOffset=0,this.lastScrollIndicatorOffset=0,this._activeSlideIdx=0,this._firstSlideVisible=void 0,this._lastSlideVisible=void 0,this.activeSlideMap=new WeakMap,this.mqService=u.Mp.getInstance(F.A)}get hasActiveSlideIndicator(){return this.hasAttribute("has-active-slide-indicator")&&"false"!==this.getAttribute("has-active-slide-indicator")}get autoPlayDelay(){const e=this.getAttribute("auto-play-delay");if(null!==e)return parseInt(e,10)}get activeSlideIdx(){return this._activeSlideIdx}set activeSlideIdx(e){e<0||e>=this.slides.length||(e!==this.activeSlideIdx&&this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1})),this._activeSlideIdx=e,this.hasActiveSlideIndicator&&this.updateActiveSlideIndicator())}get firstActiveSlide(){const e=this.slides.filter(e=>!0===this.activeSlideMap.get(e));return 0===e.length?null:e[0]}get firstSlideVisible(){return this._firstSlideVisible}set firstSlideVisible(i){this._firstSlideVisible!==i&&((0,e.p1)(this.prevBtn,t.f9,!i),this._firstSlideVisible=i,this.updateSliderActive())}get lastSlideVisible(){return this._lastSlideVisible}set lastSlideVisible(i){this._lastSlideVisible!==i&&((0,e.p1)(this.nextBtn,t.f9,!i),this._lastSlideVisible=i,this.updateSliderActive())}updateSliderActive(){!0===this.firstSlideVisible&&!0===this.lastSlideVisible?(0,e.iQ)(this,t._M):(0,e.vy)(this,t._M)}afterComponentRender(){u.GR.subscribe(this,()=>{this.setScrollIndicatorWidth(),this.initControls(),this.initActiveSlideObserver(),this.initEditMode(),this.hasActiveSlideIndicator&&this.renderActiveSlideIndicator(),this.initAutoPlay()})}initAutoPlay(){void 0!==this.autoPlayDelay&&(this.autoPlayInterval=setInterval(()=>{this.showNextSlide()},this.autoPlayDelay))}stopAutoPlay(){void 0!==this.autoPlayInterval&&clearInterval(this.autoPlayInterval)}showNextSlide(){this.lastSlideVisible?this.goToSlide(0):this.moveSliderTo(this.slidesContainer.scrollLeft+this.slidesContainer.offsetWidth)}initEditMode(){xt.A.observeMessages("vip-slider",e=>this.handlePanelcontainerMessage(e))}handlePanelcontainerMessage(t){let i=this.dataset.cmpPanelcontainerId;if(void 0===i){const t=(0,e.PA)(this,"[data-vip-slider='component']");i=t?.dataset.cmpPanelcontainerId||void 0}
290t.id===i&&(this.slides.forEach(e=>e.toggleAttribute("data-vip-slider-active-item",!1)),this.slides[t.index]?.toggleAttribute("data-vip-slider-active-item",!0),this.goToSlide(t.index))}renderActiveSlideIndicator(){const t=document.createElement("span");(0,e.iQ)(t,"vic-m-slider__active-slide-indicator"),t.innerText=`1/${this.slides.length}`,this.activeSlideIndicator=t,this.appendChild(t)}updateActiveSlideIndicator(){void 0!==this.activeSlideIndicator&&(this.activeSlideIndicator.innerText=`${this.activeSlideIdx+1}/${this.slides.length}`)}setScrollIndicatorWidth(){const e=this.slidesContainer.offsetWidth/this.slidesContainer.scrollWidth;this.scrollIndicator.style.width=100*e+"%"}initControls(){0!==this.slides.length&&this.initItemObserver()}initItemObserver(){const e=this.slides[0];Ot.A.observeIn({targetElement:e,callback:()=>this.firstSlideVisible=!0,context:this,observerConfig:this.vpObserverConfig}),Ot.A.observeOut({targetElement:e,callback:()=>this.firstSlideVisible=!1,context:this,observerConfig:this.vpObserverConfig});const t=this.slides[this.slides.length-1];Ot.A.observeIn({targetElement:t,callback:()=>this.lastSlideVisible=!0,context:this,observerConfig:this.vpObserverConfig}),Ot.A.observeOut({targetElement:t,callback:()=>this.lastSlideVisible=!1,context:this,observerConfig:this.vpObserverConfig})}handleFirstSlideInVp(){(0,e.vy)(this.prevBtn,t.f9)}handleFirstSlideOutVp(){(0,e.iQ)(this.prevBtn,t.f9)}initActiveSlideObserver(){this.slides.forEach(e=>{Ot.A.observeIn({targetElement:e,callback:()=>this.handleSlideInVp(e),context:this,observerConfig:this.vpObserverConfig}),Ot.A.observeOut({targetElement:e,callback:()=>this.handleSlideOutVp(e),context:this,observerConfig:this.vpObserverConfig})})}handleSlideInVp(e){this.activeSlideMap.set(e,!0),e.removeAttribute("aria-hidden"),this.updateActiveSlide()}handleSlideOutVp(e){this.activeSlideMap.set(e,!1),e.setAttribute("aria-hidden","true"),this.updateActiveSlide()}updateActiveSlide(){this.activeSlideIdx=this.slides.findIndex(e=>!0===this.activeSlideMap.get(e))}get vpObserverConfig(){return{rootMargin:"0px -100px",root:this.slidesContainer}}get inDraggingMode(){return this._inDraggingMode}set inDraggingMode(e){e!==this.inDraggingMode&&(this._inDraggingMode=e)}get currentScrollIndicatorOffset(){return this.scrollIndicator.getBoundingClientRect().left-this.getBoundingClientRect().left}goToSlide(e){if(this.slides.length<=e)return;const t=this.slides[e].offsetLeft;this.moveSliderTo(t)}async moveSliderTo(e){this.isTransitioning=!0,this.slidesContainer.scrollTo({left:e,behavior:"smooth"}),await(0,Tt.h)(this.slidesContainer),this.isTransitioning=!1}handleMQChange(){this.setScrollIndicatorWidth(),this.handleSlidesContainerScroll()}handlePrevBtnClick(){this.stopAutoPlay(),this.moveSliderTo(this.slidesContainer.scrollLeft-this.slidesContainer.offsetWidth)}handleNextBtnClick(){this.stopAutoPlay(),this.moveSliderTo(this.slidesContainer.scrollLeft+this.slidesContainer.offsetWidth)}async handleScrollBarClick(e){if(e.target===this.scrollIndicator)return;this.stopAutoPlay();const t=(e.pageX-this.getBoundingClientRect().left)/this.scrollBar.offsetWidth;await this.moveSliderTo(t*this.slidesContainer.scrollWidth),this.healSliderPosition()}handleDragStart(i){this.initialDragOffset=i.pageX,this.inDraggingMode=!0,this.stopAutoPlay(),(0,e.iQ)(this,t.m8)}handleDragMove(e){if(!1===this.inDraggingMode)return;const t=this.getRelativeScrollIndicatorOffset(e.pageX);this.updateScrollIndicatorOffset(t),this.updateSlidesContainerOffset(t)}async handleDragEnd(){!1!==this.inDraggingMode&&(this.inDraggingMode=!1,this.lastScrollIndicatorOffset=this.currentScrollIndicatorOffset,await this.healSliderPosition(),(0,e.vy)(this,t.m8))}async healSliderPosition(){const e=this.firstActiveSlide;null!==e&&await this.moveSliderTo(e.offsetLeft)}handleSlidesContainerScroll(){if(!0===this.inDraggingMode)return;!1===this.isTransitioning&&this.stopAutoPlay();const e=this.getRelativeScrollContainerOffset();this.updateScrollIndicatorOffset(e),this.lastScrollIndicatorOffset=this.currentScrollIndicatorOffset}updateScrollIndicatorOffset(e){this.scrollIndicator.style.transform=`translateX(${this.get
290ScrollIndicatorOffset(e)}%)`}getScrollIndicatorOffset(e){return 0===e?0:e*this.scrollBar.offsetWidth/this.scrollIndicator.offsetWidth}updateSlidesContainerOffset(e){this.slidesContainer.scrollLeft=this.getSlidesContainerOffset(e)}getSlidesContainerOffset(e){return 0!==e&&(e/=100),e*this.slidesContainer.scrollWidth}getRelativeScrollContainerOffset(){return this.slidesContainer.scrollLeft/this.slidesContainer.scrollWidth*100}getRelativeScrollIndicatorOffset(e){let t=e-this.initialDragOffset+this.lastScrollIndicatorOffset;return t<0?0:(t+this.scrollIndicator.offsetWidth>this.scrollBar.offsetWidth&&(t=this.scrollBar.offsetWidth-this.scrollIndicator.offsetWidth),t/this.scrollBar.offsetWidth*100)}},Ct=c()(St.prototype,"slides",[ot],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),At=c()(St.prototype,"slidesContainer",[lt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Et=c()(St.prototype,"scrollBar",[ct],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),It=c()(St.prototype,"scrollIndicator",[ht],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=c()(St.prototype,"prevBtn",[dt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_t=c()(St.prototype,"nextBtn",[ut],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(St.prototype,"handleMQChange",[pt],Object.getOwnPropertyDescriptor(St.prototype,"handleMQChange"),St.prototype),c()(St.prototype,"handlePrevBtnClick",[gt],Object.getOwnPropertyDescriptor(St.prototype,"handlePrevBtnClick"),St.prototype),c()(St.prototype,"handleNextBtnClick",[bt],Object.getOwnPropertyDescriptor(St.prototype,"handleNextBtnClick"),St.prototype),c()(St.prototype,"handleScrollBarClick",[mt],Object.getOwnPropertyDescriptor(St.prototype,"handleScrollBarClick"),St.prototype),c()(St.prototype,"handleDragStart",[ft],Object.getOwnPropertyDescriptor(St.prototype,"handleDragStart"),St.prototype),c()(St.prototype,"handleDragMove",[vt],Object.getOwnPropertyDescriptor(St.prototype,"handleDragMove"),St.prototype),c()(St.prototype,"handleDragEnd",[yt],Object.getOwnPropertyDescriptor(St.prototype,"handleDragEnd"),St.prototype),c()(St.prototype,"handleSlidesContainerScroll",[wt],Object.getOwnPropertyDescriptor(St.prototype,"handleSlidesContainerScroll"),St.prototype),St);var Pt,Dt,Mt,Rt,Bt,Lt,Vt;customElements.define("vic-m-slider",Ft);let Nt=(Pt=(0,S.K3)(".vic-m-accordion__section"),Dt=(0,S.K3)(".vic-m-accordion__toggle"),Mt=(0,S.rF)("window","hashchange"),Rt=(0,S.rF)("sectionToggleBtns","click"),Bt=class extends S.uA{constructor(...e){super(...e),T()(this,"sections",Lt,this),T()(this,"sectionToggleBtns",Vt,this),this.sectionMap=new WeakMap}afterComponentRender(){this.init()}activateSectionFromHash(e=!1){const t=window.location.hash;if(t){const i=t.slice(1);this.sectionToggleBtns.forEach(t=>{const s=t.dataset.anchorId;i===s&&(!0===e?this.openSectionByToggle(t,!0):this.openSectionByToggle(t,!1))})}}initSectionMap(){this.sections.forEach(e=>{const t=this.initSectionData(e);null!==t&&this.sectionMap.set(t.toggleBtn,t)})}initSectionData(i){const s=(0,e.I6)(i,".vic-m-accordion__toggle"),a=(0,e.I6)(i,".vic-m-accordion__section-content");if(null===s||null===a)return null;const n=i.dataset.customerMode,r=(0,K.A)();s.id=`toggle-${r}`,s.dataset.anchorId=i.id,s.dataset.customerMode=n,a.id=`content-box-${r}`,s.setAttribute("aria-controls",a.id),a.setAttribute("aria-labelledby",s.id);const o=(0,e.nB)(i,t.Hc);return s.setAttribute("aria-expanded",o.toString()),a.setAttribute("aria-hidden",(!o).toString()),{section:i,toggleBtn:s,contentBox:a,id:r}}handleToggleClick(i){const s=i.target;if(null===s)return;const a=this.sectionMap.get(s);if(void 0===a)return;const n=(0,e.nB)(a.section,t.Hc);n?this.closeSection(a):this.openSection(a),a.toggleBtn.setAttribute("aria-expanded",(!n).toString()),a.contentBox.setAttribute("aria-hidden",n.toString())}async openSectionByToggle(i,s=!0){const a=this.sectionMap.get(i);void 0!==a&&((0,e.nB)(a.section,t.Hc)||(s?this.openSectionFast(a):await this.openSection(a),a.toggleBtn.setAttribute("aria-expanded","true"),a.contentBox.setAttribute("aria-hidden","false")))}async openSectionByToggleLabel(e,t=!0){const i=this.sectionToggleBtns.find(t=>t.innerText.trim()===e.trim());void 0!==i&&await this.openSectionByToggle(i,t)}async closeSectionByToggle(i,s=!0){const a=this.sectionMap.get(i);void 0!==a&&!1!==(0,e.nB)(a.section,t.Hc)&&(s?this.closeSectionFast(a):await this.closeSection(a),a.toggleBtn.setAttribute("aria-expanded","fal
290se"),a.contentBox.setAttribute("aria-hidden","true"))}async closeAllSections(e=!0){await Promise.all(this.sectionToggleBtns.map(t=>this.closeSectionByToggle(t,e)))}async openSection(i){i.contentBox.style.display="block",(0,e.iQ)(i.section,t.G),await(0,e.fm)(100);const s=i.contentBox.scrollHeight;i.contentBox.style.maxHeight=`${s}px`,i.contentBox.style.opacity="1",await(0,e.fm)(300),(0,e.iQ)(i.section,t.Hc),i.contentBox.style.maxHeight="none",i.contentBox.style.display=""}openSectionFast(i){(0,e.iQ)(i.section,t.G),i.contentBox.style.opacity="1",(0,e.iQ)(i.section,t.Hc),i.contentBox.style.maxHeight="none",i.contentBox.style.display=""}async closeSection(i){const s=i.contentBox.scrollHeight;i.contentBox.style.maxHeight=`${s}px`,(0,e.vy)(i.section,t.G),await(0,e.fm)(100),i.contentBox.style.maxHeight="0px",i.contentBox.style.opacity="0",await(0,e.fm)(300),(0,e.vy)(i.section,t.Hc)}closeSectionFast(i){(0,e.vy)(i.section,t.G),i.contentBox.style.maxHeight="0px",i.contentBox.style.opacity="0",(0,e.vy)(i.section,t.Hc)}async init(
290){this.initSectionMap(),await this.updateCustomerBasedActiveSections(),o.A.observeGroupChange(()=>this.updateCustomerBasedActiveSections()),this.activateSectionFromHash(!0)}async updateCustomerBasedActiveSections(){const e=await o.A.getCurrentTargetGroup();this.sectionToggleBtns.forEach(t=>{const i=t.dataset.customerMode;i===e?this.openSectionByToggle(t,!1):void 0!==i&&"undefined"!==i&&this.closeSectionByToggle(t,!1)})}},Lt=c()(Bt.prototype,"sections",[Pt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=c()(Bt.prototype,"sectionToggleBtns",[Dt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Bt.prototype,"activateSectionFromHash",[Mt],Object.getOwnPropertyDescriptor(Bt.prototype,"activateSectionFromHash"),Bt.prototype),c()(Bt.prototype,"handleToggleClick",[Rt],Object.getOwnPropertyDescriptor(Bt.prototype,"handleToggleClick"),Bt.prototype),Bt);var zt,qt,Ut,$t,jt,Ht,Kt,Qt,Gt,Wt,Xt;customElements.define("vic-m-accordion",Nt);let Jt=(zt=(0,S.K3)(".vic-m-testimonials__item"),qt=(0,S.hq)(".vic-m-testimonials__pagination-btn--prev"),Ut=(0,S.hq)(".vic-m-testimonials__pagination-btn--next"),$t=(0,S.hq)(".vic-m-testimonials__pagination-text"),jt=(0,S.rF)("prevBtn","click"),Ht=(0,S.rF)("nextBtn","click"),Kt=class extends S.uA{constructor(){super({initialStates:{activeIndex:0},reactions:{activeIndex:["showItem"]}}
290),T()(this,"items",Qt,this),T()(this,"prevBtn",Gt,this),T()(this,"nextBtn",Wt,this),T()(this,"paginationText",Xt,this)}afterComponentRender(){!0===window.vipAemModeService?.runsOnAuthor&&this.initEditMode()}initEditMode(){xt.A.observeMessages("vip-slider",e=>this.handlePanelcontainerMessage(e))}handlePanelcontainerMessage(t){let i=this.dataset.cmpPanelcontainerId;if(void 0===i){const t=(0,e.PA)(this,"[data-vip-slider='component']");i=t?.dataset.cmpPanelcontainerId||void 0}t.id===i&&(this.setState({activeIndex:t.index}),this.items.forEach(e=>e.toggleAttribute("data-vip-slider-active-item",!1)),this.items[t.index]?.toggleAttribute("data-vip-slider-active-item",!0))}showPrev(){this.setState({activeIndex:(this.state.activeIndex-1+this.items.length)%this.items.length})}showNext(){this.setState({activeIndex:(this.state.activeIndex+1)%this.items.length})}showItem({activeIndex:i}){this.items.length<=i||((0,e.vy)(this.items,t.Hc),(0,e.iQ)(this.items[i],t.Hc),this.paginationText.innerText=`${i+1} / ${this.items.length}`)}},Qt=c()(Kt.prototype,"items",[zt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gt=c()(Kt.prototype,"prevBtn",[qt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=c()(Kt.prototype,"nextBtn",[Ut],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xt=c()(Kt.prototype,"paginationText",[$t],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Kt.prototype,"showPrev",[jt],Object.getOwnPropertyDescriptor(Kt.prototype,"showPrev"),Kt.prototype),c()(Kt.prototype,"showNext",[Ht],Object.getOwnPropertyDescriptor(Kt.prototype,"showNext"),Kt.prototype),Kt);customElements.define("vic-m-testimonials",Jt);var Yt,Zt,ei,ti,ii,si,ai,ni,ri,oi,li,ci,hi,di,ui,pi,gi,bi,mi=i(33870);let fi=(Yt=(0,S.K3)(".vic-m-tabs__toggle"),Zt=(0,S.K3)(".vic-m-tabs__panel"),ei=(0,S.hq)(".vic-m-tabs__navigation"),ti=(0,S.hq)(".vic-m-tabs__nav-btn--left"),ii=(0,S.hq)(".vic-m-tabs__nav-btn--right"),si=(0,S.rF)("leftBtn","click"),ai=(0,S.rF)("rightBtn","click"),ni=(0,S.rF)("window","load"),ri=(0,S.rF)("nav","scroll"),oi=(0,h.nF)(100),li=(0,S.rF)("tabToggles","click"),ci=(0,S.rF)("tabToggles","keydown"),hi=class extends S.uA{constructor(...e){super(...e),this.togglePanelMap=new WeakMap,T()(this,"tabToggles",di,this),T()(this,"tabPanels",ui,this),T()(this,"nav",pi,this),T()(this,"leftBtn",gi,this),T()(this,"rightBtn",bi,this)}get activeTabToggle(){return this.querySelector(".vic-m-tabs__toggle.vic-state-active")}get panelContainerId(){return this.dataset.cmpPanelcontainerId||this.parentElement?.dataset.cmpPanelcontainerId}afterComponentRender(){this.initTabs(),this.moveActiveItemInViewIfNecessary(),this.updateOverflowIndicators(),this.initResizeObserver(),this.initEditMode()}initResizeObserver(){new ResizeObserver(()=>{this.handleResize()}).observe(this.nav)}moveTabNavToLeft(){this.nav.scrollTo({left:this.nav.scrollLeft-this.nav.offsetWidth/2,behavior:"smooth"})}moveTabNavToRight(){this.nav.scrollTo({left:this.nav.scrollLeft+this.nav.offsetWidth/2,behavior:"smooth"})}handleFontLoad(){this.initTabs(),this.moveActiveItemInViewIfNecessary()}handleResize(){this.updateOverflowIndicators()}handleNavScroll(){this.updateOverflowIndicators()}updateOverflowIndicators(){const e=this.nav.getBoundingClientRect().left>this.tabToggles[0].getBoundingClientRect().left+20,t=this.nav.getBoundingClientRect().right+20<this.tabToggles[this.tabToggles.length-1].getBoundingClientRect().right;this.classList.toggle("vic-m-tabs--overflow-left",e),this.classList.toggle("vic-m-tabs--overflow-right",t)}initTabs(){this.tabToggles.forEach((e,t)=>{this.initTab(t,e)}),this.checkInitialActive(),(0,e.iQ)(this,t.tg)}initEditMode(){xt.A.observeMessages("cmp-tabs",e=>this.handlePanelcontainerMessage(e))}handlePanelcontainerMessage(e){if(e.id!==this.panelContainerId||"navigate"!==e.operation)return;const t=e.index,i=this.tabToggles[t];this.activateTab(i)}moveActiveItemInViewIfNecessary(){this.activeTabToggle&&(this.activeTabToggle.getBoundingClientRect().left<0||this.activeTabToggle.getBoundingClientRect().right+50>this.nav.getBoundingClientRect().right)&&this.nav.scrollTo({left:this.activeTabToggle.offsetLeft+this.activeTabToggle.offsetWidth/2-this.nav.offsetWidth/2,behavior:"smooth"})}get name(){return this.getAttribute("name")||""}checkInitialActive(){if(""===this.name)return;const e=mi.A.getOption(this.name);if(void 0===e)return;const t=this.getTabByName(e);void 0!==t&&this.activateTab(t)}getTabByName(e){return this.tabToggles.find(t=>t.dataset.name===e)}updateUrl(e){""!==this.name&&mi.A.setOption(this.name,this.getTabName(e))}initTab(e,t){const i=this.tabPanels[e];void 0!==i&&(this.setTabGroupData(t,i),this.togglePanelMap.set(t,i))}setTabGroupData(e,t){const i=(0,K.A)(),s=`tab-toggle-${i}`,a=`tab-panel-${i}`;e.setAttribute("aria-controls",a),e.setAttribute("id",s),t.setAttribute("aria-labelledby",s),t.setAttribute("id",a)}handleToggleClick(e){const t=e.currentTarget;t&&this.activateTab(t)}
290handleToggleKeydown(i){const s=i.code;if(-1===["ArrowLeft","ArrowRight"].findIndex(e=>e===s))return;const a=this.tabToggles.findIndex(i=>(0,e.nB)(i,t.Hc));switch(s){case"ArrowRight":i.preventDefault(),this.handleKeyboardRight(a);break;case"ArrowLeft":i.preventDefault(),this.handleKeyboardLeft(a)}}getTab(e){return e<0?this.tabToggles[this.tabToggles.length-1]:e>=this.tabToggles.length?this.tabToggles[0]:this.tabToggles[e]}getTabName(e){return e.getAttribute("data-name")||""}handleKeyboardLeft(e){const t=this.getTab(e-1);t.focus(),this.activateTab(t)}handleKeyboardRight(e){const t=this.getTab(e+1);t.focus(),this.activateTab(t)}activateTab(i){const s=this.togglePanelMap.get(i);void 0===s||(0,e.nB)(s,t.Hc)||(this.deactivateTabs(),(0,e.iQ)(i,t.Hc),this.fadeInPanel(s),i.setAttribute("aria-selected","true"),i.removeAttribute("tabindex"),this.updateUrl(i),this.dispatchEvent(new CustomEvent(P.UJ)))}getTabToggleLabel(t){return(0,e.I6)(t,".vic-m-tabs__toggle-label")}deactivateTabs(){this.tabToggles.forEach(e=>{this.deactivateTab(e)})}deactivateTab(i){(0,e.vy)(i,t.Hc),i.setAttribute("aria-selected","false"),i.setAttribute("tabindex","-1");const s=this.togglePanelMap.get(i);void 0!==s&&(0,e.vy)(s,t.Hc,t.G)}async fadeInPanel(i){(0,e.iQ)(i,t.Hc,t.VR),await(0,e.fm)(100),(0,e.iQ)(i,t.G),await(0,e.fm)(300),(0,e.vy)(i,t.VR)}},di=c()(hi.prototype,"tabToggles",[Yt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ui=c()(hi.prototype,"tabPanels",[Zt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pi=c()(hi.prototype,"nav",[ei],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gi=c()(hi.prototype,"leftBtn",[ti],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bi=c()(hi.prototype,"rightBtn",[ii],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(hi.prototype,"moveTabNavToLeft",[si],Object.getOwnPropertyDescriptor(hi.prototype,"moveTabNavToLeft"),hi.prototype),c()(hi.prototype,"moveTabNavToRight",[ai],Object.getOwnPropertyDescriptor(hi.prototype,"moveTabNavToRight"),hi.prototype),c()(hi.prototype,"handleFontLoad",[ni],Object.getOwnPropertyDescriptor(hi.prototype,"handleFontLoad"),hi.prototype),c()(hi.prototype,"handleNavScroll",[ri,oi],Object.getOwnPropertyDescriptor(hi.prototype,"handleNavScroll"),hi.prototype),c()(hi.prototype,"handleToggleClick",[li],Object.getOwnPropertyDescriptor(hi.prototype,"handleToggleClick"),hi.prototype),c()(hi.prototype,"handleToggleKeydown",[ci],Object.getOwnPropertyDescriptor(hi.prototype,"handleToggleKeydown"),hi.prototype),hi);var vi,yi,wi,Si,Ci,Ai,Ei;customElements.define("vic-m-tabs",fi);let Ii=(vi=(0,S.hq)(".vic-m-table__container"),yi=(0,S.hq)(".vic-m-table__wrapper"),wi=(0,h.nF)(250),Si=(0,S.rF)("window","resize"),Ci=class t extends S.uA{constructor(...e){super(...e),T()(this,"container",Ai,this),T()(this,"wrapper",Ei,this)}static get MORE_LEFT_CLASS(){return"vic-m-table__container--more-left"}static get MORE_RIGHT_CLASS(){return"vic-m-table__container--more-right"}get shouldScroll(){const e=this.wrapper;return e.scrollWidth>e.offsetWidth+1}get hasMoreLeft(){return this.wrapper.scrollLeft>0}get hasMoreRight(){const e=this.wrapper;return e.scrollLeft+e.offsetWidth+1<e.scrollWidth}afterComponentRender(){this.updateScrollHandler(),this.updateOverflowClasses()}updateScrollHandler(){this.shouldScroll?(0,e.MR)(this.wrapper,"scroll",this.handleTableScroll,this):(0,e.Nn)(this.wrapper,"scroll",this.handleTableScroll,this)}updateOverflowClasses(){(0,e.p1)(this.container,t.MORE_LEFT_CLASS,this.hasMoreLeft),(0,e.p1)(this.container,t.MORE_RIGHT_CLASS,this.hasMoreRight)}handleTableScroll(){this.updateOverflowClasses()}handleWindowResize(){this.updateScrollHandler(),this.updateOverflowClasses()}},Ai=c()(Ci.prototype,"container",[vi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ei=c()(Ci.prototype,"wrapper",[yi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ci.prototype,"handleWindowResize",[wi,Si],Object.getOwnPropertyDescriptor(Ci.prototype,"handleWindowResize"),Ci.prototype),Ci);customElements.define("vic-m-table",Ii);var ki,_i,Oi,xi,Ti,Fi,Pi,Di,Mi,Ri,Bi,Li=i(4525),Vi=i(35175);let Ni=(ki=(0,S.hq)(".vic-e-search-input__combobox"),_i=(0,S.hq)(".vic-e-search-input__input"),Oi=(0,S.hq)(".vic-e-search-input__listbox"),xi=(0,S.hq)(".vic-e-search-input__label"),Ti=(0,S.rF)("input","keyup"),Fi=(0,S.rF)("input","keydown"),Pi=class extends S.uA{constructor(){super({asyncRendering:!0}),this.UUID=(0,K.A)(),this.suggestionCache=new Map,this.requestedValues=new Set,this.suggestionCache
290Updated=!1,this.curSuggestions=[],this.keyboardIndex=0,this.listBoxOpen=!1,T()(this,"combobox",Di,this),T()(this,"input",Mi,this),T()(this,"listbox",Ri,this),T()(this,"label",Bi,this)}get autoFocusSuggestions(){return!1}get autocompleteUrl(){return this.getAttribute("autocomplete-url")||""}get searchUrl(){return this.getAttribute("search-url")||""}get inputLabel(){return this.getAttribute("input-label")||""}get inputPlaceholder(){return this.getAttribute("input-placeholder")||""}get searchButtonLabel(){return this.getAttribute("search-button-label")||""}get searchButtonTitle(){return this.getAttribute("search-button-title")||""}get minLength(){return parseInt(this.getAttribute("min-length")||"0",10)}get maxSuggestions(){return Number(this.getAttribute("max-suggestions")||"5")}get autocompleteMinLength(){return Number(this.getAttribute("autocomplete-min-length")||"3")}get searchMinLength(){return Number(this.getAttribute("search-min-length")||"3")}get iconId(){return this.getAttribute("icon-id")||"vic-icon-search"}get comboBoxId(){return`combobox-${this.UUID}`}get inputId(){return`input-${this.UUID}`}get listBoxId(){return`listbox-${this.UUID}`}get activeSuggestion(){return(0,e.I6)(this,`#result-item-idx-${(0,Vi.gv)(this.getActiveSuggestionIndex())}-${this.UUID}`)}get currentValue(){return this.input?.value||""}set currentValue(e){void 0!==this.input&&(this.input.value=e,this.updateCanSubmit())}get curSearchTerm(){return this.currentValue}async renderAsync(){try{const e=await this.loadTemplate();(0,m.XX)(e(this),this)}catch(e){u.bD.error("SearchInput:",e)}}async loadTemplate(){const{searchInputTemplate:e}=await i.e(90753).then(i.bind(i,90753));return e}handleKeyUp(e){if(this.updateCanSubmit(),this.currentValue.length<this.autocompleteMinLength&&this.listBoxOpen)this.closeListBox();else switch(e.key){case"ArrowUp":case"ArrowDown":case"Escape":case"Tab":case"Enter":break;default:this.renderListBox()}}handleKeyDown(e){if(!(this.currentValue.length<this.autocompleteMinLength&&this.listBoxOpen))switch(e.key){case"ArrowUp":e.preventDefault(),this.setActiveSuggestion("UP");break;case"ArrowDown":this.setActiveSuggestion("DOWN");break;case"Escape":case"Tab":this.closeListBox();break;case"Enter":this.handleEnter()}}updateCanSubmit(){(0,e.p1)(this,t.Ye,this.currentValue.length>=this.minLength)}handleEnter(){this.listBoxOpen&&0!==this.keyboardIndex&&(this.currentValue=this.activeSuggestion?.dataset.value||""),this.closeListBox(),this.submitSearch()}setActiveSuggestion(i){if(this.removeActiveSuggestions(),void 0===i)return this.setActiveAriaActiveDescendant(),void(0,e.iQ)(this.activeSuggestion,t.L_);"DOWN"===i&&this.keyboardIndex++,"UP"===i&&this.keyboardIndex--,this.setActiveAriaActiveDescendant(),(0,e.iQ)(this.activeSuggestion,t.L_),this.activeSuggestion?.setAttribute("aria-selected","true")}removeActiveSuggestions(){(0,e.JW)(this.listbox,".vic-e-search-input__item").forEach(i=>{i.removeAttribute("aria-selected"),(0,e.vy)(i,t.L_)})}setActiveAriaActiveDescendant(){this.input.setAttribute("aria-activedescendant",this.activeSuggestion?.getAttribute("id")||"")}getActiveSuggestionIndex(){return this.keyboardIndex<0?(this.keyboardIndex=this.curSuggestions.length,this.keyboardIndex):this.keyboardIndex===this.curSuggestions.length+1?(this.keyboardIndex=0,this.keyboardIndex):this.keyboardIndex}focus(){this.input.focus()}async renderListBox(){if(this.currentValue.length<this.autocompleteMinLength)return void this.closeListBox();
290const i=await this.getSuggestionsFor(this.currentValue);0!==i.length?(this.curSuggestions=i.slice(0,this.maxSuggestions),this.keyboardIndex=this.autoFocusSuggestions?1:0,await this.renderAsync(),(0,e.iQ)(this.listbox,t.Hc),(0,e.MR)(window,"click",this.closeListBox,this),this.combobox.setAttribute("aria-expanded","true"),this.setActiveSuggestion(),this.listBoxOpen=!0,this.suggestionCacheUpdated&&(this.renderListBox(),this.suggestionCacheUpdated=!1)):this.closeListBox()}async getSuggestionsFor(e){return this.getCachedSuggestionsFor(e)||await this.fetchSuggestions(e)}getCachedSuggestionsFor(e){const t=Array.from(this.suggestionCache.keys()).find(t=>e.toLowerCase().startsWith(t));if(void 0!==t)return this.suggestionCache.get(t)?.filter(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async fetchSuggestions(e){if(""===this.autocompleteUrl)return[];if(void 0!==Array.from(this.requestedValues).find(t=>e.toLowerCase().startsWith(t)))return[];try{this.requestedValues.add(e.toLowerCase());const{query:t,suggestions:i}=await(0,Li.h)(`${this.appendQueryParam(this.autocompleteUrl,this.currentValue)}&_charset_=UTF-8`);return this.suggestionCache.set(t.toLowerCase(),i),this.suggestionCacheUpdated=!0,i}catch(e){return u.bD.error(e),[]}}closeListBox(){this.curSuggestions=[],this.keyboardIndex=0,(0,e.vy)(this.listbox,t.Hc),this.combobox.setAttribute("aria-expanded","false"),this.input.removeAttribute("aria-activedescendant"),(0,e.Nn)(window,"click",this.closeListBox,this),this.listBoxOpen=!1}handleSuggestionItemClick(e){e.stopPropagation();const t=e.currentTarget;this.currentValue=t.dataset.value||"",this.closeListBox(),this.submitSearch()}submitSearch(){this.currentValue.length<this.minLength||(""===this.searchUrl?this.dispatchEvent(new CustomEvent(P.eS)):this.currentValue.length>=this.searchMinLength&&this.redirectToSearchPage())}redirectToSearchPage(){window.location.href=`${this.appendQueryParam(this.searchUrl,this.currentValue)}&_charset_=UTF-8`}appendQueryParam(e,t){const i=e.includes("?")?"&":"?";return`${e}${i}q=${encodeURIComponent(t)}`}clearInput(){this.input.value=""}},Di=c()(Pi.prototype,"combobox",[ki],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Mi=c()(Pi.prototype,"input",[_i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ri=c()(Pi.prototype,"listbox",[Oi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bi=c()(Pi.prototype,"label",[xi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Pi.prototype,"handleKeyUp",[Ti],Object.getOwnPropertyDescriptor(Pi.prototype,"handleKeyUp"),Pi.prototype),c()(Pi.prototype,"handleKeyDown",[Fi],Object.getOwnPropertyDescriptor(Pi.prototype,"handleKeyDown"),Pi.prototype),Pi);customElements.define("vic-e-search-input",Ni);var zi,qi,Ui,$i,ji,Hi,Ki,Qi,Gi,Wi,Xi,Ji,Yi,Zi,es,ts,is=i(8543);let ss=(zi=(0,S.hq)(".vic-m-floating-cta__toggle-btn"),qi=(0,S.hq)(".vic-m-floating-cta__toggle-icon"),Ui=(0,S.hq)(".vic-m-floating-cta__content"),$i=(0,S.hq)(".vic-m-floating-cta__wrapper"),ji=(0,S.rF)("window",u.Rn),Hi=(0,S.rF)("toggleBtn","click"),Ki=(0,S.rF)("this","mousedown"),Qi=(0,S.rF)("window","click"),Gi=(0,S.rF)("window","keydown"),Wi=(0,S.rF)("this","focusout"),ts=class i extends S.uA{constructor(...e){super(...e),this._isOpen=!1,this._footerVisible=!1,this.isClicked=!1,this.visibilityPromise=void 0,this.mqService=u.Mp.getInstance(F.A),T()(this,"toggleBtn",Ji,this),T()(this,"toggleIcon",Yi,this),T()(this,"ctaContent",Zi,this),T()(this,"ctaContentWithHeader",es,this)}afterComponentRender(){this.setIconId(),this.initTargetGroupBasedVisibility(),this.initFooterVisibilityChecker(),this.initEditMode()}get footerVisible(){return this._footerVisible}set footerVisible(e){this._footerVisible=e,this.updateVisibility()}async customerModeFits(){if(""===this.customerMode)return!0;const e=await o.A.getCurrentTargetGroup();return this.customerMode===e}async shouldBeVisible(){return await this.customerModeFits()&&!1===this.footerVisible}get isOpen(){return this._isOpen}set isOpen(e){e!==this.isOpen&&(this._isOpen=e,!1===e?this.close():(this.open(),u.n$.addItem(i.WAS_OPEN_STORAGE_KEY,"true")))}get isMobileMq(){return(0,e.g8)(F.A)<"MQ2"}get customerMode(){return this.dataset.customerMode||""}get hasFocus(){return this.contains(document.activeElement)}initFooterVisibilityChecker(){const t=(0,e.I6)(document.body,".vic-m-legal-footer");null!==t?(Ot.A.observeIn({targetElement:t,callback:()=>this.footerVisible=!0,context:this}),Ot.A.observeOut({targetElement:t,callback:()=>
290this.footerVisible=!1,context:this})):this.updateVisibility()}initTargetGroupBasedVisibility(){o.A.observeGroupChange(()=>this.updateVisibility())}async updateVisibility(){void 0!==this.visibilityPromise&&await this.visibilityPromise,this.visibilityPromise=this.updateVisibilityClasses()}async updateVisibilityClasses(){!0===await this.shouldBeVisible()?((0,e.vy)(this,t.F4),await(0,e.fm)(100),(0,e.iQ)(this,t.f9),this.triggerAwarenessAnimation()):((0,e.vy)(this,t.f9),await(0,e.fm)(800),(0,e.iQ)(this,t.F4))}initEditMode(){const e=window.vipAemModeService;void 0!==e&&!1!==e.runsOnAuthor&&e.runsInExperienceFragment&&(e.currentAemMode===is.n.EDIT&&(this.isOpen=!0),e.observeAemModeChange(()=>{e.currentAemMode===is.n.EDIT&&(this.isOpen=!0)}))}async triggerAwarenessAnimation(){1==("true"===u.n$.getItem(i.WAS_OPEN_STORAGE_KEY))||!0===window.vipAemModeService?.runsOnAuthor||this.isMobileMq||(await(0,e.fm)(2e3),await this.open(),await(0,e.fm)(3e3),await this.close())}handleMQChange(){this.setIconId()}setIconId(){this.isOpen?this.toggleIcon.setAttribute("icon-id","vic-icon-close"):this.isMobileMq?this.toggleIcon.setAttribute("icon-id","vic-icon-help"):this.toggleIcon.setAttribute("icon-id","vic-icon-chevron-bottom")}handleToggleBtnClick(){this.isOpen=!this.isOpen}async handleClick(){!1!==this.isOpen&&(this.isClicked=!0,await(0,e.fm)(200),this.isClicked=!1)}handleWindowClick(e){this.isOpen&&!this.contains(e.target)&&this.close()}handleKeydown(e){this.isOpen&&"Escape"===e.key&&this.close()}async handleFocusOut(){await(0,e.fm)(100);const t=window.vipAemModeService;t?.runsOnAuthor&&t?.currentAemMode===is.n.EDIT||this.hasFocus||this.isOpen&&this.isClicked||this.footerVisible||(this.isOpen=!1)}async open(){this.isOpen=!0,(0,e.vy)(this.ctaContent,t.RG),(0,e.iQ)(this,t.VR),this.toggleBtn.setAttribute("aria-expanded","true"),this.isMobileMq?await this._openSmallMQs():await this._openBigMQs(),(0,e.vy)(this,t.VR)}async close(){this.isOpen=!1,(0,e.iQ)(this,t.VR),this.toggleBtn.setAttribute("aria-expanded","false"),this.isMobileMq?await this._closeSmallMQs():await this._closeBigMQs(),(0,e.iQ)(this.ctaContent,t.RG),(0,e.vy)(this,t.VR)}getActualHeight(){const t=document.createElement("div");(0,e.iQ)(t,"vic-m-floating-cta","vic-state-visible","vic-state-active"),t.style.opacity="0",t.style.visibility="hidden",t.innerHTML=this.innerHTML,document.body.appendChild(t);const i=t.offsetHeight;return t.remove(),Math.min(i,window.innerHeight)}async _openSmallMQs(){this.toggleIcon.setAttribute("icon-id","vic-icon-close"),this.style.height="auto";const i=this.getActualHeight();this.style.height="",this.getBoundingClientRect(),this.style.height=`${i}px`,(0,e.iQ)(this,t.Hc),await(0,e.jj)(this,"height"),this.style.height=""}async _closeSmallMQs(){this.toggleIcon.setAttribute("icon-id","vic-icon-help"),this.style.height=`${this.offsetHeight}px`,this.getBoundingClientRect(),this.style.height="",(0,e.vy)(this,t.Hc),await(0,e.jj)(this,"height")}async _openBigMQs(){this.toggleIcon.setAttribute("icon-id","vic-icon-close"),(0,e.iQ)(this.ctaContent,t.VR),(0,e.iQ)(this,t.Hc),this.ctaContent.style.maxHeight=`${this.ctaContent.scrollHeight}px`,await(0,e.jj)(this.ctaContent,"max-height"),this.ctaContent.style.maxHeight="",(0,e.vy)(this.ctaContent,t.VR)}async _closeBigMQs(){this.toggleIcon.setAttribute("icon-id","vic-icon-chevron-bottom"),this.ctaContent.style.maxHeight=`${this.ctaContent.scrollHeight}px`,this.ctaContent.getBoundingClientRect(),(0,e.vy)(this,t.Hc),this.ctaContent.style.maxHeight="",await(0,e.jj)(this.ctaContent,"max-height")}},ts.WAS_OPEN_STORAGE_KEY="vic-floating-cta-was-open",Xi=ts,Ji=c()(Xi.prototype,"toggleBtn",[zi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yi=c()(Xi.prototype,"toggleIcon",[qi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zi=c()(Xi.prototype,"ctaContent",[Ui],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),es=c()(Xi.prototype,"ctaContentWithHeader",[$i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Xi.prototype,"handleMQChange",[ji],Object.getOwnPropertyDescriptor(Xi.prototype,"handleMQChange"),Xi.prototype),c()(Xi.prototype,"handleToggleBtnClick",[Hi],Object.getOwnPropertyDescriptor(Xi.prototype,"handleToggleBtnClick"),Xi.prototype),c()(Xi.prototype,"handleClick",[Ki],Object.getOwnPropertyDescriptor(Xi.prototype,"handleClick"),Xi.prototype),c()(Xi.prototype,"handleWindowClick",[Qi],Object.getOwnPropertyDescriptor(Xi.prototype,"handleWindowClick"),Xi.prototype),c()(Xi.prototype,"handleKeydown",[Gi],Object.getOwnPropertyDescriptor(Xi.prototype,"handleKeydown"),Xi.prototype),c()(Xi.prototype,"handleFocusOut",[Wi],Object.getOwnPropertyDescriptor(Xi.prototype,"handleFocusOut"),Xi.prototype),Xi);customElements.define("vic-m-floating-cta",ss);var as=i(8748);class ns extends as.S{getQueryUrl(e){return decodeURI(e.endpointUrl).replace(ns.OFFSET_PLACEHOLDER,String(e.offset)).replace(ns.SIZE_PLACEHOLDER,String(e.size))}}ns.OFFSET_PLACEHOLDER="{OFFSET}",ns.SIZE_PLACEHOLDER="{SIZE}";const rs=new ns;var os,ls,cs,hs,ds,us,ps,gs,bs,ms,fs,vs,ys,ws,Ss,Cs;os=(0,S.Tc)("vic-m-newswall"),ls=(0,S._w)({type:"string",required:!0}),cs=(0,S.hq)(".vic-m-newswall__results"),hs=(0,S.hq)(".vic-m-newswall__load-more-btn"),ds=(0,S.rF)("this",u.AI),us=(0,S.rF)("loadM
290oreBtn","click"),ps=(0,S.rF)("window","resize"),gs=(0,h.nF)(100),os((bs=class extends S.uA{constructor(...e){super(...e),this.initialContentCleared=!1,this.isInitialLoad=!0,this.viewportObserver=u.rD.getInstance(),T()(this,"searchUrl",ms,this),T()(this,"contentContainer",fs,this),T()(this,"loadMoreBtn",vs,this),this.resultItems=[]}get currentMQ(){return(0,e.g8)(F.A)}get pageSize(){return 6}afterComponentRender(){(0,e.iQ)(this,t.S2),this.updateColumnHeight(),this.viewportObserver.observe(this)}handleInViewport(){this.viewportObserver.unobserve(this),this.searchItems()}async handleLoadMoreClick(){this.isInitialLoad=!1,await this.searchItems()}async searchItems(){await this.renderPlaceholders(this.pageSize);try{const i=await rs.getResultsFor({endpointUrl:this.searchUrl,includeMeta:!1,offset:this.resultItems.length,size:this.pageSize});if(null===i)throw new Error("api not responding");const s=this.resultItems.length;this.resultItems=[...this.resultItems,...i.results.items],await this.renderItems(),(0,e.p1)(this.loadMoreBtn,t.RG,this.resultItems.length>=i.results.numberResults),this.isInitialLoad||this.setNewFocus(s)}catch(e){u.bD.error("NewsWall: ",e)}}setNewFocus(t){const i=(0,e.JW)(this.contentContainer,".vic-m-search-result-teaser__headline-link")[t];i&&i.focus()}async renderPlaceholders(e){const t=await this.loadTemplate();!1===this.initialContentCleared&&(this.contentContainer.innerHTML="",this.initialContentCleared=!0),(0,m.XX)(await t({results:this.resultItems,placeholderCount:e}),this.contentContainer),this.updateColumnHeight()}async renderItems(){const e=await this.loadTemplate();(0,m.XX)(await e({results:this.resultItems,placeholderCount:0}),this.contentContainer),this.updateColumnHeight()}async loadTemplate(){const{renderNewsWallTemplate:e}=await i.e(23009).then(i.bind(i,23009));return e}handleResize(){this.updateColumnHeight()}updateColumnHeight(){const t=this.currentMQ,i=(0,e.JW)(this,".vic-m-search-result-teaser");if("MQ1"===t)return this.contentContainer.style.height="",void i.forEach(e=>e.style.order="");const s=new Array("MQ2"===t?2:3).fill(0);i.forEach(e=>{const t=s.indexOf(Math.min(...s));s[t]+=e.offsetHeight+64,e.style.order=String(t+1)}),this.contentContainer.style.height=`${Math.max(...s)+10}px`}},ms=c()(bs.prototype,"searchUrl",[ls],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fs=c()(bs.prototype,"contentContainer",[cs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vs=c()(bs.prototype,"loadMoreBtn",[hs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(bs.prototype,"handleInViewport",[ds],Object.getOwnPropertyDescriptor(bs.prototype,"handleInViewport"),bs.prototype),c()(bs.prototype,"handleLoadMoreClick",[us],Object.getOwnPropertyDescriptor(bs.prototype,"handleLoadMoreClick"),bs.prototype),c()(bs.prototype,"handleResize",[ps,gs],Object.getOwnPropertyDescriptor(bs.prototype,"handleResize"),bs.prototype),bs));let As=(ys=(0,S.hq)(".vic-m-filter-bar__flyout-toggle"),ws=(0,S.rF)("flyoutToggle","click"),Ss=class extends S.uA{constructor(){super({asyncRendering:!0}),this._flyout=void 0,T()(this,"flyoutToggle",Cs,this)}afterComponentRender(){this.init()}init(){(0,e.MR)(this.flyout,P.kx,this.handleActiveFilterChanged,this),(0,e.MR)(this.flyout,P.s5,this.handleFlyoutReset,this)}get flyout(){if(void 0!==this._flyout)return this._flyout;const t=document.createElement("vic-m-filter-flyout");return(0,e.iQ)(t,"vic-m-filter-flyout"),t.setAttribute("id","vic-filter-flyout"),this._flyout=t,document.body.appendChild(t),t}get activeFilters(){return this.flyout.activeFilters}resetFilterList(){this.flyout.categoryData=void 0}updateFilterList(i){this.flyout.categoryData=i,(0,e.p1)(this,t.RG,0===Object.keys(i.filters||{}).length),(0,e.iQ)(this.flyoutToggle,t.Hc)}handleActiveFilterChanged(){this.renderComponent(),this.dispatchEvent(new CustomEvent(P.kx,{bubbles:!1}))}handleFlyoutReset(){this.renderComponent()}async resetFilters(e=!0){await this.flyout.resetAllFilters(e),this.renderComponent()}removeFilter(e){this.flyout.removeFilter(e)}handleFlyoutToggleClick(){this.openFlyout()}openFlyout(){this.flyout.open()}async renderAsync(){await this.renderComponent()}async renderComponent(){const e=await this.loadFilterBarTemplate();(0,m.XX)(await e(this),this)}async loadFilterBarTemplate(){const{filterBarTemplate:e}=await i.e(56095).then(i.bind(i,56095));return e}},Cs=c()(Ss.prototype,"flyoutToggle",[ys],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ss.prototype,"handleFlyoutToggleClick",[ws],Object.getOwnPropertyDescriptor(Ss.prototype,"handleFlyoutToggleClick"),Ss.prototype),Ss);var Es,Is,ks,_s,Os,xs,Ts,Fs,Ps,Ds,Ms,Rs,Bs,Ls;customElements.define("vic-m-filter-bar",As);let Vs=(Es=(0,S.K3)(".vic-m-context-navigation__link"),Is=(0,S.hq)(".vic-m-context-navigation__list"),ks=(0,S.hq)(".vic-m-context-navigation__arrow-prev"),_s=(0,S.hq)(".vic-m-context-navigation__arrow-next"),Os=(0,S.rF)("navigationLinks","click"),xs=(0,S.rF)("navigationList","scroll"),Ts=(0,S.rF)("prevBtn","click"),Fs=(0,S.rF)("nextBtn","click"),(Ls=class extends S.uA{constructor(...e){super(...e),this.waypointMap=void 0,this.targetSection=void 0,this._activeWaypoint=void 0,T()(this,"navigationLinks",Ds,this),T()(this,"navigationList",Ms,this),T()(this,"prevBtn",Rs,this),T()(this,"nextBtn",Bs,this)}get headerOffset(){if((0,e.nB)(this,"vic-m-context-navigation--no-sticky-header"))return 100;let t=document.documentElement.style.getPropertyValue("--vic-header-height");return""===t&&(t="0px"),parseInt(t.replace("px",""),10)+this.offsetHeight}set activeWaypoint(i){void 0!==this._activeWaypoint&&(0,e.vy)(this._activeWaypoint.navigationLink,t.Hc),(0,e.iQ)(i.navigationLink,t.Hc),this._activeWaypoint=i}get activeWaypoint(){return this._activeWaypoint}get activeNavLinkPosition(){return this.activeWaypoint.navigationLink.offsetLeft+this.navigationList.offsetWidth/2+this.activeWaypoint.navigationLink.offsetWidth/2-this.navigationList.offsetWidth-this.navigationList.offsetLeft}get canScrollRight(){return this.navigationList.offsetWidth-this.navigationList.scrollWidth+this.navigationList.scrollLeft!==0}get canScrollLeft(){return 0!==this.navigationList.scrollLeft}afterComponentRender(){this.initializeWaypointMap(),this.initializeWaypointObserver(),this.toggleArrowsVisibility(),this.initFooterVisibilityChecker(),this.goToSectionFromUrlHash()}initializeWaypointMap(){this.waypointMap=this.navigationLinks.filter(e=>"string"==typeof e.getAttribute("href")).map(t=>{const i=(0,e.I6)(document,t.getAttribute("href"));return{navigationLink:t,targetSection:i,label:(t.innerText||t.textContent||"").trim()}})}
290initializeWaypointObserver(){this.waypointMap.forEach(t=>{const i=t.targetSection;null!==i&&(0,e.MR)(i,P.b7,this.updateWaypoint,this)})}initFooterVisibilityChecker(){const i=(0,e.I6)(document.body,".vic-m-legal-footer");null!==i&&(Ot.A.observeIn({targetElement:i,callback:()=>(0,e.iQ)(this,t.J1),context:this}),Ot.A.observeOut({targetElement:i,callback:()=>(0,e.vy)(this,t.J1),context:this}))}async goToSectionFromUrlHash(){const t=window.location.hash;if(null==t)return;const i=(0,e.I6)(this,`[href='${t}']`);if(null===i)return;const s=this.waypointMap.find(e=>e.navigationLink===i);void 0!==s&&(this.targetSection=s?.targetSection),null!==this.targetSection&&void 0!==this.targetSection&&(await(0,e.fm)(100),await this.scrollWindowToSection(this.targetSection))}async updateWaypoint(){const e=this.waypointMap.filter(e=>e.targetSection?.aboveFold);e.length>0?this.activeWaypoint=e[e.length-1]:this.activeWaypoint=this.waypointMap[0],void 0!==this.activeWaypoint&&(await(0,Tt.h)(window),void 0===this.targetSection||null===this.targetSection?this.moveNavigationListTo(this.activeNavLinkPosition):(this.moveNavigationListTo(this.activeNavLinkPosition),this.targetSection=null))}onNavLinkClick(e){const t=e.target,i=t?.getAttribute("href");if(e.preventDefault(),"string"!=typeof i)return;const s=this.waypointMap.find(e=>e.navigationLink===t);void 0!==s&&(this.targetSection=s?.targetSection),null!==this.targetSection&&void 0!==this.targetSection&&(window.location.hash=i,this.scrollWindowToSection(this.targetSection))}handleNavigationListScroll(){this.toggleArrowsVisibility()}handlePrevBtnClick(){this.moveNavigationListTo(this.navigationList.scrollLeft-this.navigationList.offsetWidth/2)}handleNextBtnClick(){this.moveNavigationListTo(this.navigationList.scrollLeft+this.navigationList.offsetWidth/2)}async scrollWindowToSection(e){const t=e.getBoundingClientRect().top+window.scrollY-this.headerOffset;await Te.A.scrollSmooth({top:t},{preventHeaderShrink:!0}),this.waypointMap.forEach(e=>e.targetSection?.updateAboveFold())}moveNavigationListTo(e){this.navigationList.scrollTo({left:e,behavior:"smooth"})}toggleArrowsVisibility(){(0,e.p1)(this,t.zh,this.canScrollLeft),(0,e.p1)(this,t.Wb,this.canScrollRight)}}).WAYPOINT_IN_VP_EVENT="vic-waypoint-in-vp",Ls.WAYPOINT_OUT_VP_EVENT="vic-waypoint-out-vp",Ps=Ls,Ds=c()(Ps.prototype,"navigationLinks",[Es],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ms=c()(Ps.prototype,"navigationList",[Is],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rs=c()(Ps.prototype,"prevBtn",[ks],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bs=c()(Ps.prototype,"nextBtn",[_s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ps.prototype,"onNavLinkClick",[Os],Object.getOwnPropertyDescriptor(Ps.prototype,"onNavLinkClick"),Ps.prototype),c()(Ps.prototype,"handleNavigationListScroll",[xs],Object.getOwnPropertyDescriptor(Ps.prototype,"handleNavigationListScroll"),Ps.prototype),c()(Ps.prototype,"handlePrevBtnClick",[Ts],Object.getOwnPropertyDescriptor(Ps.prototype,"handlePrevBtnClick"),Ps.prototype),c()(Ps.prototype,"handleNextBtnClick",[Fs],Object.getOwnPropertyDescriptor(Ps.prototype,"handleNextBtnClick"),Ps.prototype),Ps);customElements.define("vic-m-context-navigation",Vs);const Ns=new class{constructor(){this.resourcesLoaded=!1}async isAppSwitcherActive(){return await p.A.getConfigItem("appSwitcherActive")||!1}async loadResources(){this.resourcesLoaded||(await Promise.all([this.loadStylesheet(),this.loadElements()]),this.resourcesLoaded=!0)}async getConfiguration(){return await p.A.getConfigItem("globalHeader")}async loadStylesheet(){const e=(await this.getConfiguration())?.css;if(void 0===e)throw new Error("Global header configuration is missing");const t=document.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,new Promise(e=>{t.addEventListener("load",()=>{e(!0)}),document.head.appendChild(t)})}async loadElements(){const e=(await this.getConfiguration())?.js;if(void 0===e)throw new Error("Global header configuration is missing");const t=document.createElement("script");return t.src=e,new Promise(e=>{t.addEventListener("load",()=>{e(!0)}),document.body.appendChild(t)})}};var zs=i(70001),qs=i(85945);class Us{constructor(){this.smartSearchOverlay=void 0}
290async renderSmartSearchOverlay(t){if(void 0!==this.smartSearchOverlay)return this.smartSearchOverlay;const i=document.createElement("vic-m-smart-search-overlay");return(0,e.iQ)(i,"vic-m-smart-search-overlay"),i.setAttribute("initial-search-term",t),i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-label",await Ne.A.getValueOrDefault("viessmann.corporate.smartSearch.overlay.ariaLabel","Smart Search")),document.body.appendChild(i),i.addEventListener(P.yc,()=>this.handleOverlayClosed()),i.addEventListener(P.pg,()=>this.handleSearchReset()),this.smartSearchOverlay=i,i}async openOverlay(t){const i=await this.renderSmartSearchOverlay(t);await(0,e.db)(i),await i.open()}async closeOverlay(){void 0!==this.smartSearchOverlay&&(await this.smartSearchOverlay.close(),this.smartSearchOverlay=void 0)}observeOverlayClose(e){u.mB.observe(Us.CLOSED_OBSERVER_KEY,e)}observeSearchReset(e){u.mB.observe(Us.RESET_OBSERVER_KEY,e)}handleOverlayClosed(){void 0!==this.smartSearchOverlay&&this.smartSearchOverlay.removeEventListener(P.yc,()=>this.handleOverlayClosed()),u.mB.notifyObservers(Us.CLOSED_OBSERVER_KEY),this.smartSearchOverlay=void 0}handleSearchReset(){void 0!==this.smartSearchOverlay&&(this.smartSearchOverlay.removeEventListener(P.pg,()=>this.handleSearchReset()),u.mB.notifyObservers(Us.RESET_OBSERVER_KEY),this.smartSearchOverlay=void 0)}}Us.CLOSED_OBSERVER_KEY="smart-search-overlay-closed",Us.RESET_OBSERVER_KEY="smart-search-overlay-reset";const $s=new Us;var js,Hs,Ks,Qs,Gs,Ws,Xs,Js,Ys,Zs,ea,ta,ia,sa,aa,na,ra;let oa=(js=(0,S.hq)(".vic-m-header__navigation-toggle"),Hs=(0,S.hq)(".vic-m-header__search-btn"),Ks=(0,S.hq)(".vic-m-header__search-bar-close-btn"),Qs=(0,S.hq)(".vic-m-header__search-input"),Gs=(0,S.K3)(".vic-m-header__main-nav-link"),Ws=(0,h.nF)(100),Xs=(0,S.rF)("navToggleBtn","click"),Js=(0,S.rF)("mainNavLinks","click"),Ys=(0,S.rF)("searchBtn","click"),Zs=(0,S.rF)("searchBarCloseBtn","click"),ea=(0,S.rF)("searchInput",P._I),ta=class extends S.uA{constructor(...e){super(...e),this._headerHeight=this.getBoundingClientRect().height,this.appSwitcher=void 0,T()(this,"navToggleBtn",ia,this),T()(this,"searchBtn",sa,this),T()(this,"searchBarCloseBtn",aa,this),T()(this,"searchInput",na,this),T()(this,"mainNavLinks",ra,this)}get headerHeight(){return this._headerHeight}set headerHeight(e){this._headerHeight!==e&&(this._headerHeight=e,this.updateHeaderHeight())}afterComponentRender(){this.waitForTargetGroupInit(),Te.A.observeScroll(()=>this.handleWindowScroll()),window.addEventListener("resize",()=>this.handleResize(),{passive:!0}),this.updateHeaderHeight(),$s.observeOverlayClose(()=>this.disableSearchBar()),$s.observeSearchReset(()=>this.clearSearchInput())}handleResize(){this.headerHeight=this.getBoundingClientRect().height}updateHeaderHeight(){document.documentElement.style.setProperty("--vic-header-height",`${this.headerHeight}px`),window.dispatchEvent(new CustomEvent(P.fd,{bubbles:!1}))}async waitForTargetGroupInit(){await o.A.waitForInit(),await this.initAppSwitcher(),(0,e.iQ)(this,t.S2)}async initAppSwitcher(){"b2b"===await o.A.getCurrentTargetGroup()&&await this.renderAppSwitcher(),o.A.observeGroupChange(()=>this.handleTargetGroupChange())}async renderAppSwitcher(){if(!1!==await Ns.isAppSwitcherActive())try{await Ns.loadResources();const t=document.createElement("vih-app-switcher");(0,e.iQ)(t,"vic-m-header__app-switcher"),this.appSwitcher=t,this.searchBtn?.parentNode?.insertBefore(t,this.searchBtn)}catch(e){u.bD.error("Header",e)}}removeAppSwitcher(){void 0!==this.appSwitcher&&(this.appSwitcher.remove(),this.appSwitcher=void 0)}async handleTargetGroupChange(){const e=await o.A.getCurrentTargetGroup();"b2b"===e&&void 0===this.appSwitcher?await this.renderAppSwitcher():"b2c"===e&&void 0!==this.appSwitcher&&this.removeAppSwitcher()}get isHidden(){const e="UP"===Te.A.scrollDirection;return!!Te.A.preventHeaderGrow||!Te.A.preventHeaderShrink&&!(!0===e||document.documentElement.scrollTop<=90)}handleNavToggleClick(){zs.A.openNavigation()}handleMainNavLinkClick(e){const t=e.currentTarget.dataset.subnavId||"";""!==t&&!1!==zs.A.subnavExists(t)&&(e.preventDefault(),zs.A.openNavigation(t))}handleSearchBtnClick(){this.enableSearchBar()}handleSearchBarCloseBtnClick(){this.disableSearchBar()}handleSearchSubmit(){""!==this.searchInput.curSearchTerm&&$s.openOverlay(this.searchInput.curSearchTerm)}async enableSearchBar(){(0,e.iQ)(this,"vic-m-header--search-bar-active"),qs.A.lockPage(),await(0,e.fm)(100),(0,e.MR)(this,"click",this.handleSearchInputOutClick,this),(0,e.MR)(window,"keyup",this.handleSearchInputKeyup,this),this.searchInput.focus()}disableSearchBar(){(0,e.vy)(this,"vic-m-header--search-bar-active"),qs.A.unlockPage(),(0,e.Nn)(this,"click",this.handleSearchInputOutClick,this),(0,e.Nn)(window,"keyup",this.handleSearchInputKeyup,this)}clearSearchInput(){this.searchInput.clearInput()}handleSearchInputOutClick(t){null===(0,e.PA)(t.target,".vic-m-header__search-bar-box")&&this.disableSearchBar()}handleSearchInputKeyup(e){"Escape"===e.key&&this.disableSearchBar()}handleWindowScroll(){(0,e.p1)(document.body,t.DM,this.isHidden)}},ia=c()(ta.prototype,"navToggleBtn",[js],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sa=c()(ta.prototype,"searchBtn",[Hs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),aa=c()(ta.prototype,"searchBarCloseBtn",[Ks],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),na=c()(ta.prototype,"searchInput",[Qs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ra=c()(ta.prototype,"mainNavLinks",[Gs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(ta.prototype,"handleResize",[Ws],Object.getOwnPropertyDescriptor(ta.prototype,"handleResize"),ta.prototype),c()(ta.prototype,"handleNavToggleClick",[Xs],Object.getOwnPropertyDescriptor(ta.prototype,"handleNavToggleClick"),ta.prototype),c()(ta.prototype,"handleMainNavLinkClick",[Js],Object.getOwnPropertyDescriptor(ta.prototype,"handleMainNavLinkClick"),ta.prototype),c()(ta.prototype,"handleSearchBtnClick",[Ys],Ob
290ject.getOwnPropertyDescriptor(ta.prototype,"handleSearchBtnClick"),ta.prototype),c()(ta.prototype,"handleSearchBarCloseBtnClick",[Zs],Object.getOwnPropertyDescriptor(ta.prototype,"handleSearchBarCloseBtnClick"),ta.prototype),c()(ta.prototype,"handleSearchSubmit",[ea],Object.getOwnPropertyDescriptor(ta.prototype,"handleSearchSubmit"),ta.prototype),ta);var la,ca,ha,da,ua;customElements.define("vic-m-header",oa),i(39739);let pa=(la=(0,S.K3)(".vic-e-target-group-switch__option"),ca=(0,S.rF)("this","click"),ha=(0,S.rF)("this","keydown"),da=class extends S.uA{constructor(...e){super(...e),T()(this,"options",ua,this)}afterComponentRender(){this.init()}async init(){await this.updateActiveOption(),o.A.observeGroupChange(()=>this.updateActiveOption()),(0,e.iQ)(this,t.S2)}async updateActiveOption(){const i=await o.A.getCurrentTargetGroup();(0,e.p1)(this.options[0],t.Hc,"b2c"===i),(0,e.p1)(this.options[1],t.Hc,"b2b"===i)}get activeOption(){return this.options.find(i=>(0,e.nB)(i,t.Hc))||this.options[0]}get inActiveOption(){return this.options.find(i=>!(0,e.nB)(i,t.Hc))||this.options[1]}handleClick(){this.openToast()}handleKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.openToast())}async openToast(){const t=document.createElement("vic-m-target-group-toast");(0,e.iQ)(t,"vic-m-target-group-toast"),t.setAttribute("role","dialog"),document.body.appendChild(t),await(0,e.db)(t),t.open()}},ua=c()(da.prototype,"options",[la],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(da.prototype,"handleClick",[ca],Object.getOwnPropertyDescriptor(da.prototype,"handleClick"),da.prototype),c()(da.prototype,"handleKeydown",[ha],Object.getOwnPropertyDescriptor(da.prototype,"handleKeydown"),da.prototype),da);customElements.define("vic-e-target-group-switch",pa);class ga extends te.z{constructor(...e){super(...e),this.flatpickrInstance=void 0}get curTabIndex(){return this.getAttribute("tabindex")||void 0}get l10n(){return this.getAttribute("l10n")||"default"}get minDateDaysOffset(){const e=this.getAttribute("min-date-days-offset");return null===e?null:parseInt(e,10)}get maxDateDaysOffset(){const e=this.getAttribute("max-date-days-offset");return null===e?null:parseInt(e,10)}get minDate(){if(null!==this.minDateDaysOffset){const e=new Date;return e.setDate(e.getDate()+this.minDateDaysOffset),e.setHours(0,0,0,0),e}const e=this.getAttribute("min-date");if(null!==e)return"today"===e?new Date:new Date(e)}get maxDate(){if(null!==this.maxDateDaysOffset){const e=new Date;return e.setDate(e.getDate()+this.maxDateDaysOffset),e.setHours(23,59,59,999),e}const e=this.getAttribute("max-date");if(null!==e)return"today"===e?new Date:new Date(e)}get initialDate(){const e=this.getAttribute("initial-date");if(null!==e)return"today"===e?new Date:new Date(e)}get defaultDateFormat(){return!0===this.isTimeEnabled?"d.m.Y H:i":"d.m.Y"}get dateFormat(){return this.getAttribute("date-format")||this.defaultDateFormat}get isTimeEnabled(){return this.hasAttribute("time-enabled")&&"false"!==this.getAttribute("time-enabled")}get isAmPm(){return this.hasAttribute("am-pm-enabled")&&"false"!==this.getAttribute("am-pm-enabled")}get selectedDate(){return void 0===this.flatpickrInstance||0===this.flatpickrInstance.selectedDates.length?null:this.flatpickrInstance.selectedDates[0]}get selectedDateString(){return null===this.selectedDate?"":this.ui.input.value}get submitValueType(){return this.isTimeEnabled?"DateTime":"Date"}get submitValue(){const e=this.selectedDate;if(void 0!==this.flatpickrInstance&&null!==e)return!0===this.isTimeEnabled?e.toISOString():`${e.getFullYear()}-${(0,Vi.gv)(e.getMonth()+1)}-${(0,Vi.gv)(e.getDate())}`}get submitString(){return this.submitValue}get renderArgs(){return{id:this.id,name:this.name,label:this.label,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,hasTopLabel:this.hasTopLabel,autocompleteType:this.autocompleteType,curTabIndex:this.curTabIndex,description:this.description,errorMessage:this.errorMessage,showError:this.state.showError}}async renderAsync(){this.state.inValidationMode&&await this.validate();const{datepickerTemplate:e}=await i.e(67375).then(i.bind(i,67375));(0,m.XX)(e(this.renderArgs),this)}async initFormField(){await this.initDatepicker()}async prefillInput(){await Promise.resolve()}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!this.hasExternalError&&(!1===this.isRequired||null!==this.selectedDate)}async initDatepicker(){const e=await this.loadFlatpickr();this.flatpickrInstance=e(this.ui.input,{minDate:this.minDate,maxDate:this.maxDate,defaultDate:this.initialDate,enableTime:this.isTimeEnabled,locale:await this.loadLocale(),dateFormat:this.dateFormat,time_24hr:!this.isAmPm,disableMobile:!0,onChange:()=>this.renderAsync(),onClose:()=>this.handleClose()})}async loadFlatpickr(){await i.e(72284).then(i.bind(i,72284));const{default:e}=await i.e(46397).then(i.bind(i,46397));return e}async loadLocale(){if("default"!==this.l10n)try{const{default:e}=await i(36482)(`./${this.l10n}.js`);return e[this.l10n]||e.default}catch(e){return void u.bD.error("Datepicker:",e)}}async handleClose(){const i=await this.isValid();(0,e.p1)(this,t.qO,i),await this.validate()}async reset(){this.setState({showError:!1,inValidationMode:!1});const i=this.initialDate;void 0===i?this.flatpickrInstance?.clear():this.flatpickrInstance?.
290setDate(i),(0,e.vy)(this,t.qO),await this.prefillInput()}}customElements.define("vic-e-datepicker",ga);class ba{constructor(){this.abortableRequestService=new ee.d}async isRegistered(e){try{const t=await this.abortableRequestService.fetchJSON({url:this.getRequestUrl(e),options:{cacheOptions:{validFor:0}}});return"registered"===t?.status}catch(e){return u.bD.error("EquipmentValidationService: ",e),!1}}getRequestUrl(e){return`${e.endpointUrl}/${e.serialNumber}`}}class ma extends te.z{constructor(...e){super(...e),this.initialized=!1,this._isLoading=!1,this._initialCreationLinkHref="",this.hasRegistrationError=!1,this.equipmentValidationService=new ba,this.registeredMessage="",this.notRegisteredMessage=""}get minlength(){const e=this.getAttribute("minlength");if(null!==e)return parseInt(e,10)}get maxlength(){const e=this.getAttribute("maxlength");if(null!==e)return parseInt(e,10)}get valuePattern(){return this.getAttribute("pattern")||void 0}get initialValue(){return this.getAttribute("initial-value")||""}get curTabIndex(){return this.getAttribute("tabindex")||void 0}get validationUrl(){return this.getAttribute("validation-url")||""}get nonExistingCreationLink(){return(0,e.I6)(this,".vic-e-equipment-input__not-registered-error .vic-e-button")}get initialCreationLinkHref(){return""===this._initialCreationLinkHref&&(this._initialCreationLinkHref=this.nonExistingCreationLink?.href||""),this._initialCreationLinkHref}get currentValue(){return this.ui.input?.value||""}get submitString(){return this.currentValue}get creationLinkUrl(){const e=this.initialCreationLinkHref,t=new URLSearchParams;return t.append("serialnumber",this.currentValue),(0,Z.Ne)(e,t)}get isLoading(){return this._isLoading}set isLoading(e){this._isLoading!==e&&(this._isLoading=e,this._isLoading?this.setAttribute("is-loading",""):this.removeAttribute("is-loading"))}get formFieldValid(){return!1===this.formGroupActive||!this.hasExternalError&&this.ui.input.checkValidity()}async renderAsync(){this.initValidationMessages();try{const{equipmentInputTemplate:e}=await i.e(14639).then(i.bind(i,14639));(0,m.XX)(e(this.renderArgs),this.getUiRoot())}catch(e){u.bD.error("VICEquipmentInput:",e)}}async updateComponent(){if(!1!==this.initialized)try{const{equipmentInputTemplate:e}=await i.e(14639).then(i.bind(i,14639)),t=this.formFieldValid;(0,m.XX)(e({...this.renderArgs,registeredMessage:t&&!this.hasRegistrationError?this.registeredMessage:void 0,notRegisteredMessage:t&&this.hasRegistrationError?this.notRegisteredMessage:void 0}),this.getUiRoot())}catch(e){u.bD.error("VICEquipmentInput:",e)}}get renderArgs(){return{hasTopLabel:this.hasTopLabel,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,autocompleteType:this.autocompleteType,name:this.name,label:this.label,type:this.type,errorMessage:this.errorMessage,minlength:this.minlength,maxlength:this.maxlength,id:this.id,valuePattern:this.valuePattern,curTabIndex:this.curTabIndex,description:this.description,showError:this.state.showError,handleKeyUp:()=>this.handleKeyUp()}}async reRenderHook(){await this.updateComponent()}async prefillInput(){const e=this.prefillValue;null!==e&&(this.ui.input.value=e,await this.validate())}initValidationMessages(){this.registeredMessage=this.getBoxMarkup(".vic-e-equipment-input__validation-message--existing"),this.notRegisteredMessage=this.getBoxMarkup(".vic-e-equipment-input__validation-message--non-existing")}async initFormField(){""!==this.initialValue&&(this.ui.input.value=this.initialValue),""!==this.currentValue&&await this.validate(),this.initialized=!0,await super.initFormField()}async isValid(){const e=this.formFieldValid;return""===this.currentValue?e:!(!e||!1!==this.isRequired)||await this.checkIfRegistered()}async validate(){if(""===this.currentValue&&!1===this.isRequired)return;if(!1===this.formFieldValid)return this.setState({showError:!0,inValidationMode:!0}),(0,e.vy)(this,t.Nz),void await this.updateComponent();this.isLoading=!0;const i=await this.checkIfRegistered();if(!1===this.formFieldValid)return this.isLoading=!1,void await this.validate();this.hasRegistrationError=!i,this.isLoading=!1;const s=this.hasRegistrationError&&!1===this.isRequired;(0,e.p1)(this,t.qO,i),(0,e.p1)(this,t.Nz,s);const a=!i&&!s;this.setState({showError:a,inValidationMode:!0}),await this.updateComponent(),this.updateNonExistingCreationLink()}updateNonExistingCreationLink(){const e=this.nonExistingCreationLink;null!==e&&!0===this.hasRegistrationError&&(e.href=this.creationLinkUrl)}async checkIfRegistered(){return await this.equipmentValidationService.isRegistered({endpointUrl:this.validationUrl,serialNumber:this.currentValue})}async handleKeyUp(){(!1!==this.state.inValidationMode||this.formFieldValid)&&await this.validate()}async handleFocusOut(){await super.handleFocusOut(),!0!==this.state.inValidationMode&&(""===(this.submitValue||"")&&this.formFieldValid||(!1===this.inl
290ineValidationDisabled&&await this.validate(),await this.reRenderHook()))}getBoxMarkup(t){const i=(0,e.I6)(this,t);return null===i?"":i.innerHTML}async reset(){this.setState({showError:!1,inValidationMode:!1}),this.ui.input.value="",await this.initFormField(),(0,e.vy)(this,t.qO)}}customElements.define("vic-e-equipment-input",ma);const fa=e=>new Promise(t=>{const i=new FileReader;i.addEventListener("load",i=>{let s=i.target?.result;"string"!=typeof s&&(s=""),t(""!==s?{id:(0,K.A)(),base64:s,fileName:e.name,fileType:e.type,fileSize:e.size}:null)},{once:!0}),i.readAsDataURL(e)});var va,ya,wa,Sa,Ca,Aa,Ea=i(38212);let Ia=(va=(0,S.hq)(".vic-js-form-field__input"),ya=(0,S.rF)("input","keyup"),wa=(0,S.rF)("input","click"),Sa=(0,S.rF)("input","change"),Ca=class extends te.z{constructor(...e){super(...e),this._fileDialogOpen=!1,this.loadedFile=null,T()(this,"input",Aa,this)}get fileDialogOpen(){return this._fileDialogOpen}set fileDialogOpen(t){t!==this._fileDialogOpen&&(this._fileDialogOpen=t,(0,e.fm)(1e3).then(()=>this._fileDialogOpen=!1))}get accept(){return this.getAttribute("accept")||void 0}get maxFileSize(){return parseInt(this.getAttribute("max-file-size")||"0",10)}get fileSizeErrorMessage(){return this.getAttribute("file-size-error")||""}get fileTypeErrorMessage(){return this.getAttribute("file-type-error")||""}get currentFiles(){return this.input?.files}get submitValueType(){return"fileList"}get loadedFileSize(){return this.loadedFile?.fileSize||0}get hasFileSizeError(){return 0!==this.maxFileSize&&this.loadedFileSize>this.maxFileSize}get hasFileTypeError(){return void 0!==this.accept&&null!==this.loadedFile&&!1===(0,Ea.G)(this.loadedFile,this.accept)}get submitValue(){if(null!==this.loadedFile&&0!==this.loadedFile.fileSize)return[this.loadedFile]}get submitString(){const e=this.submitValue;if(void 0!==e)return e[0].fileName}get renderArgs(){return{id:this.id,name:this.name,label:this.label,accept:this.accept,loadedFile:this.loadedFile,showError:this.state.showError,errorMessage:this.errorMessage,hasFileSizeError:this.hasFileSizeError,fileSizeErrorMessage:this.fileSizeErrorMessage,hasFileTypeError:this.hasFileTypeError,fileTypeErrorMessage:this.fileTypeErrorMessage,description:this.description,descriptionMarkup:this.descriptionMarkup,hasTopLabel:this.hasTopLabel,isRequired:this.isRequired}}async renderAsync(){this.state.inValidationMode&&await this.validate();const{fileInputFieldTemplate:e}=await i.e(60551).then(i.bind(i,60551));(0,m.XX)(e(this.renderArgs),this)}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!this.hasExternalError&&(!1===this.isRequired||null!==this.loadedFile)&&!1===this.hasFileSizeError&&!1===this.hasFileTypeError}handleInputKeyUp(e){"Enter"!==e.key&&" "!==e.key||(this.fileDialogOpen=!0)}handleInputClick(){this.fileDialogOpen=!0}async onFileInput(){this.loadedFile=null,await this.loadCurrentFiles(),this.fileDialogOpen=!1,await this.validate()}async handleFocusOut(){await super.handleFocusOut(),this.fileDialogOpen||await this.validate()}async loadCurrentFiles(){const e=this.currentFiles;null!==e&&0!==e.length?(this.loadedFile=await fa(e[0]),await this.renderAsync()):await this.renderAsync()}},Aa=c()(Ca.prototype,"input",[va],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ca.prototype,"handleInputKeyUp",[ya],Object.getOwnPropertyDescriptor(Ca.prototype,"handleInputKeyUp"),Ca.prototype),c()(Ca.prototype,"handleInputClick",[wa],Object.getOwnPropertyDescriptor(Ca.prototype,"handleInputClick"),Ca.prototype),c()(Ca.prototype,"onFileInput",[Sa],Object.getOwnPropertyDescriptor(Ca.prototype,"onFileInput"),Ca.prototype),Ca);var ka,_a,Oa,xa;customElements.define("vic-e-file-input-field",Ia);let Ta=(ka=(0,S.hq)(".vic-e-file-upload-field__input"),_a=(0,S.rF)("input","change"),Oa=class extends te.z{constructor(...e){super(...e),this.loadedFiles=new Map,T()(this,"input",xa,this)}get accept(){return this.getAttribute("accept")||void 0}get multiple(){return this.hasAttribute("multiple")&&"false"!==this.getAttribute("multiple")}get maxFileSize(){return parseInt(this.getAttribute("max-file-size")||"0",10)}get maxGroupSize(){return parseInt(this.getAttribute("max-group-size")||"0",10)}get fileSizeErrorMessage(){return this.getAttribute("file-size-error")||""}get fileTypeErrorMessage(){return this.getAttribute("file-type-error")||""}get groupSizeErrorMessage(){return this.getAttribute("group-size-error")||""}get dropAreaDescription(){return this.getAttribute("drop-area-description")||void 0}get currentFiles(){return this.input?.files}get loadedFilesSize(){return Array.from(this.loadedFiles.values()).reduce((e,t)=>
290e+t.fileSize,0)}get maxGroupSizeExceeded(){return 0!==this.maxGroupSize&&this.loadedFilesSize>this.maxGroupSize}get hasFileSizeError(){return 0!==this.maxFileSize&&void 0!==Array.from(this.loadedFiles.values()).find(e=>e.fileSize>this.maxFileSize)}get hasFileTypeError(){return void 0!==Array.from(this.loadedFiles.values()).find(e=>!1===(0,Ea.G)(e,this.accept))}get submitValueType(){return"fileList"}get submitValue(){if(0!==this.loadedFiles.size)return Array.from(this.loadedFiles.values()).filter(e=>0===this.maxFileSize||e.fileSize<=this.maxFileSize)}get isEmpty(){return void 0===this.submitValue||0===this.submitValue.length}get submitString(){const e=this.submitValue;if(void 0!==e)return e.map(e=>e.fileName).join(", ")}async onValidationModeChange(){await this.renderAsync()}async renderAsync(){const{fileUploadFieldTemplate:e}=await i.e(18939).then(i.bind(i,18939));(0,m.XX)(await e({id:this.id,name:this.name,label:this.label,isDisabled:this.isDisabled,isReadonly:this.isReadonly,isRequired:this.isRequired,description:this.description,showError:this.state.showError,inValidationMode:this.state.inValidationMode,accept:this.accept,multiple:this.multiple,loadedFiles:this.loadedFiles,maxFileSize:this.maxFileSize,maxGroupSizeExceeded:this.maxGroupSizeExceeded,errorMessage:this.errorMessage,fileSizeErrorMessage:this.fileSizeErrorMessage,fileTypeErrorMessage:this.fileTypeErrorMessage,groupSizeErrorMessage:this.groupSizeErrorMessage,dropAreaDescription:this.dropAreaDescription,handleUploadBtnClick:()=>this.input.click(),handleUploadBtnFocusOut:()=>this.handleUploadBtnFocusOut(),removeFile:e=>this.removeFile(e),handleFileDrop:e=>this.handleFileDrop(e)}),this)}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!this.hasExternalError&&(!1===this.isRequired||this.loadedFiles.size>0)&&!1===this.maxGroupSizeExceeded&&!1===this.hasFileSizeError&&!1===this.hasFileTypeError}async onFileInput(){const e=this.currentFiles;null!==e&&(await this.readFiles(Array.from(e)),this.input.value="",this.dispatchChangedEvent())}async handleFileDrop(e){let t=e.detail.files;0!==t.length&&(!1===this.multiple&&t.length>1&&(t=[t[0]]),await this.readFiles(t),this.dispatchChangedEvent())}async readFiles(e){(await Promise.all(e.map(e=>fa(e)))).forEach(e=>{null!==e&&this.loadedFiles.set(e.id,e)}),await this.renderAsync()}async removeFile(e){this.loadedFiles.delete(e),await this.renderAsync(),this.focus(),this.dispatchChangedEvent()}dispatchChangedEvent(){this.dispatchEvent(new CustomEvent(P.aA,{bubbles:!1}))}async handleUploadBtnFocusOut(){await this.validate()}focus(){const t=(0,e.I6)(this,".vic-e-file-upload-field__upload-btn");if(null!==t&&!(!1===this.multiple&&this.loadedFiles.size>0))return void t.focus();const i=(0,e.I6)(this,".vic-e-loaded-file__delete-btn");i?.focus()}async reset(){this.setState({showError:!1,inValidationMode:!1}),this.input.value="",this.loadedFiles=new Map,(0,e.vy)(this,t.qO),await this.renderAsync()}},xa=c()(Oa.prototype,"input",[ka],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Oa.prototype,"onFileInput",[_a],Object.getOwnPropertyDescriptor(Oa.prototype,"onFileInput"),Oa.prototype),Oa);customElements.define("vic-e-file-upload-field",Ta);class Fa{constructor(e){this.conditionMap=void 0,this._conditionsValid=!1,this.element=void 0,this.attributePrefix=void 0,this.onChange=void 0,this.element=e.element,this.attributePrefix=e.attributePrefix,this.onChange=e.onChange,this.conditionMap=new Map,this.initConditionMap(),this.checkConditions()}get hasConditions(){return this.conditionMap.size>0}get conditionsValid(){return this._conditionsValid}set conditionsValid(e){this._conditionsValid!==e&&(this._conditionsValid=e,this.onChange&&this.onChange())}initConditionMap(){this.initInitialVisibilityConfig();const e=this.element.attributes;for(let t=e.length-1;t>=0;t--)this.initConditionalItemFromAttribute(e[t])}initInitialVisibilityConfig(){const e=this.element.initialVisibilityConfig;void 0!==e&&e.forEach(e=>{this.initConditionalItem(e.formFieldID,e.condition)})}initConditionalItemFromAttribute(e){if(!1===e.name.startsWith(this.attributePrefix))return;const t=this.getFormFieldId(e.name);this.initConditionalItem(t,e.value)}initConditionalItem(t,i){if(this.conditionMap.has(t)){const e=this.conditionMap.get(t);return e.conditions.push(i),void this.conditionMap.set(t,e)}const s=(0,e.I6)(document.body,`[uuid='${t}']`);if(null===s)return;const a={element:s,conditions:[i]};this.conditionMap.set(t,a),this.initChangeEventListener(a)}initChangeEventListener(e){e.element.addEventListener(this.getChangedEventName(e.element),()=>this.checkConditions())}getFormFieldId(e){const t=e.substring(e.lastIndexOf("-"));return e.replace(this.attributePrefix,"").replace(t,"")}getChangedEventName(e){switch(e.tagName){case"VIC-E-SELECT":return P.RQ;case"VIC-E-CHECK-BOX":return P.fr;default:return P.aA}}async checkConditions(){let t=!0;await Promise.all(Array.from(this.conditionMap.values()).map(async i=>{await(0,e.db)(i.element);const s=await i.element.validateConditions(i.conditions);t=t&&s})),this.conditionsValid=t}}var Pa,Da,Ma;let Ra=(Pa=(0,S.K3)(".vic-e-hidden-input__condition"),Da=class extends te.z{constructor(...e){super(...e),this.conditionMap=new WeakMap,T()(this,"conditions",Ma,this)}get value(){return this.getAttribute("value")||void 0}get hasConditions(){return this.conditions.length>0}get asIp(){return this.hasAttribute("as-ip")&&"false"!==this.getAttribute("as-ip")}get asTimestamp(){return this.hasAttribute("as-timestamp")&&"false"!==this.getAttribute("as-timestamp")}get prefillValue(){const e=super.prefillValue;if(null!==e)return e;let t=this.prefillName||this.name;const i=t.startsWith("utm_")||"gclid"===t;return this.prefillDisabled||!1===i?null:(t=t.replace(/^utm_/,"vtm_"),"gclid"===t&&(t="vgadid"),u.tJ.get(t))}get submitValue(){return!0===this.hasConditions?this.conditionalValue:this.value}get submitString(){return this.submitValue}get conditionalValue(){const e=this.conditions.find(e=>{const t=this.conditionMap.get(e);return void 0!==t&&t.conditionChecker.conditionsValid});return void 0===e?this.value:e.value}async initFormField(){await super.initFormField(),this.initConditionMap()}initConditionMap(){!1!==this.hasConditions&&this.conditions.forEach(e
290=>{const t=new Fa({element:e,attributePrefix:"data-valid-when-"});!0===t.hasConditions&&this.conditionMap.set(e,{value:e.value,conditionChecker:t})})}async isValid(){return await Promise.resolve(),!0}async validate(){await Promise.resolve()}async prefillInput(){await Promise.resolve();const e=this.prefillValue;null!==e&&this.setAttribute("value",e)}focus(){}async reset(){await Promise.resolve()}},Ma=c()(Da.prototype,"conditions",[Pa],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Da);var Ba,La,Va,Na;customElements.define("vic-e-hidden-input",Ra);let za=(Ba=(0,S.K3)(".vic-e-icon-select"),La=(0,S.rF)("iconSelects","focusout"),Va=class extends te.z{constructor(...e){super(...e),this.iconMultiSelectItems=[],this.initialContentCleared=!1,T()(this,"iconSelects",Na,this)}get legend(){return this.getAttribute("legend")||""}get label(){return this.legend}get iconSelectElements(){return(0,e.JW)(this,".vic-m-icon-multi-select__option")}get allItemsValid(){return void 0===this.iconMultiSelectItems.find(e=>!0===e.required&&!1===e.selected)}get hasFocus(){return this.iconSelects.some(e=>e.hasFocus)}get submitValueType(){return"Array<string>"}get selectedLabels(){return this.iconMultiSelectItems.filter(e=>!0===e.selected).map(e=>e.label)}get submitValue(){return this.iconMultiSelectItems.filter(e=>!0===e.selected).map(e=>e.name)}get submitString(){const e=this.selectedLabels;if(0!==e.length)return e.join(", ")}get isEmpty(){return 0===this.submitValue.length}get prefillValue(){if(this.prefillDisabled)return null;const e=this.prefillName||this.name;return""===e?null:u.tJ.getAll(e)?.join(",")||null}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!this.hasExternalError&&(!this.isRequired||this.submitValue.length>0&&this.allItemsValid)}async renderAsync(){this.initMultiSelectItems(),await this.renderTemplate()}async updateComponent(){this.state.inValidationMode&&await this.validate();const i=await this.isValid();(0,e.p1)(this,t.qO,!this.state.showError&&i&&this.isRequired),await this.renderTemplate()}async renderTemplate(){try{const{iconMultiSelectTemplate:e}=await i.e(26667).then(i.bind(i,26667));(0,m.XX)(e({id:this.id,label:this.label,name:this.name,description:this.description,errorMessage:this.errorMessage,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,showError:this.state.showError,items:this.iconMultiSelectItems,selectionChangeCb:(e,t)=>this.setSelectedState(e,t)}),this)}catch(e){u.bD.error("VICIconMultiSelect:",e)}}async reRenderHook(){await this.updateComponent()}async initFormField(){await Promise.all(this.iconSelects.map(async t=>{await(0,e.db)(t),t.skipValidation=!0})),await super.initFormField(),(0,e.iQ)(this,t.tg)}async prefillInput(){const e=this.prefillValue;if(null===e)return;const t=e.split(",");await Promise.all(t.map(async e=>{const t=this.iconMultiSelectItems.find(t=>t.name===e);void 0!==t&&await this.setSelectedState(t.idx,!0)}))}initMultiSelectItems(){(0,e.JW)(this,"option").forEach((e,t)=>{const i={idx:t,label:e.innerText.trim(),name:e.getAttribute("name")||"",iconId:e.getAttribute("data-icon-id")||void 0,required:e.hasAttribute("required")&&"false"!==e.getAttribute("required"),disabled:this.isDisabled||e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"),selected:e.hasAttribute("selected")&&"false"!==e.getAttribute("selected"),readonly:this.isReadonly||e.hasAttribute("readonly")&&"false"!==e.getAttribute("readonly"),onlySelect:e.hasAttribute("data-only-select")&&"false"!==e.getAttribute("data-only-select"),selectAll:e.hasAttribute("data-select-all")&&"false"!==e.getAttribute("data-select-all")};this.iconMultiSelectItems.push(i)}),!1===this.initialContentCleared&&(this.innerHTML="",this.initialContentCleared=!0)}async onFocusOut(){await(0,e.fm)(10),this.hasFocus||await this.validate()}async setSelectedState(e,t){const i=this.iconMultiSelectItems[e];void 0!==i&&i.selected!==t&&(this.handleOnlySelect(i,t),this.handleAllSelect(i,t),i.selected=t,this.iconMultiSelectItems[e]=i,this.healSelectAll(),await this.updateComponent(),this.dispatchChangedEvent())}healSelectAll(){this.iconMultiSelectItems.filter(e=>!e.selectAll).every(e=>!0===e.selected)&&this.selectAllItems()}
290deselectSelectAllItems(){this.iconMultiSelectItems.forEach((e,t)=>{e.selectAll&&(e.selected=!1,this.iconMultiSelectItems[t]=e)})}handleOnlySelect(e,t){if(!1!==t)return e.onlySelect?this.deselectAllItems():void this.deselectOnlySelectItems()}handleAllSelect(e,t){if(!1===t&&this.deselectSelectAllItems(),!1!==e.selectAll)return!0===t?this.selectAllItems():void this.deselectAllItems()}deselectAllItems(){this.iconMultiSelectItems.forEach((e,t)=>{e.selected=!1,this.iconMultiSelectItems[t]=e})}selectAllItems(){this.iconMultiSelectItems.forEach((e,t)=>{!1===e.onlySelect&&(e.selected=!0,this.iconMultiSelectItems[t]=e)})}deselectOnlySelectItems(){this.iconMultiSelectItems.forEach((e,t)=>{e.onlySelect&&(e.selected=!1,this.iconMultiSelectItems[t]=e)})}dispatchChangedEvent(){this.dispatchEvent(new CustomEvent(P.aA,{detail:this,bubbles:!1}))}async reset(){this.setState({showError:!1,inValidationMode:!1}),await Promise.all(this.iconSelectElements.map(e=>e.reset())),(0,e.vy)(this,t.qO),await this.prefillInput()}focus(){this.iconSelectElements[0]?.focus()}async validateConditions(e){await Promise.resolve();const t=this.submitValue;return e.filter(e=>t.includes(e)).length>0}},Na=c()(Va.prototype,"iconSelects",[Ba],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Va.prototype,"onFocusOut",[La],Object.getOwnPropertyDescriptor(Va.prototype,"onFocusOut"),Va.prototype),Va);customElements.define("vic-m-icon-multi-select",za);class qa{constructor(e,t){this.stepHeadline=void 0,this.formFields=void 0,this.stepHeadline=e,this.formFields=t}get filledFormFields(){return this.formFields.filter(e=>null!==e.submitData)}get trackingEventData(){const e=this.filledFormFields;if(0===e.length)return null;const t=e.flatMap(e=>qa.getFormFieldSelectionText(e)),i=e.flatMap(e=>qa.getFormFieldSelectionSF(e));return{event:"msfStep",msfStepHeadline:this.stepHeadline,msfStepSelectionText:1===t.length?t[0]:t,msfStepSelectionSF:1===i.length?i[0]:i}}static isUserInputField(e){return e instanceof ie||e instanceof he||e instanceof Ta||e instanceof Ia||e instanceof ga||e instanceof ma}static getFormFieldSelectionText(e){return this.isUserInputField(e)?e.label||e.placeholder||"":e instanceof za||e instanceof Ae?e.selectedLabels:e.submitString||""}static getFormFieldSelectionSF(e){if(this.isUserInputField(e)||e instanceof Ra)return e.name||"";const t=e.submitData?.value;return"boolean"==typeof t?t?"true":"false":t||""}}var Ua,$a,ja,Ha,Ka,Qa,Ga;let Wa=(Ua=(0,S.hq)(".vic-m-form-step-bar"),$a=(0,S.K3)(".vic-m-form-step"),ja=(0,S.rF)("formStepBar",P.qu),Ha=(0,S.rF)("formSteps",P.Jv),Ka=class extends Xe{constructor(...e){super(...e),T()(this,"formStepBar",Qa,this),T()(this,"formSteps",Ga,this)}afterComponentRender(){super.afterComponentRender(),this.init(),this.initEditMode()}
290async init(){await(0,e.db)(this.formStepBar),Promise.all(this.formSteps.map(t=>(0,e.db)(t))),(0,e.iQ)(this,t.tg),this.updateSteps()}updateSteps(){this.formSteps.forEach(e=>e.hideStep());const e=this.formStepBar.activeStepIdx;this.activateStep(e)}async activateStep(e){const t=this.formSteps.slice(0,e),i=await Promise.all(t.map(e=>e.getOverviewData()));this.formSteps[e].updateInputOverview(i),this.formSteps[e].showStep()}scrollFormToTop(){const t=(0,e.I6)(document,".vic-m-header"),i=(0,e.I6)(document,".vic-m-context-navigation"),s=t?t.getBoundingClientRect().height:0,a=i?i.getBoundingClientRect().height:0,n=this.getBoundingClientRect().top+window.pageYOffset-s-a-40;window.scrollTo({top:n,behavior:"smooth"})}initEditMode(){const e=window.vipAemModeService;void 0!==e&&!1!==e.runsOnAuthor&&e.observeAemModeChange(()=>{e.currentAemMode===is.n.EDIT&&xt.A.observeMessages("cmp-tabs",e=>this.handlePanelcontainerMessage(e))})}handlePanelcontainerMessage(t){let i=this.dataset.cmpPanelcontainerId;if(void 0===i){const t=(0,e.PA)(this,".cmp-tabs");i=t?.dataset.cmpPanelcontainerId||void 0}t.id===i&&(this.formStepBar.activeStepIdx=t.index,this.updateSteps())}handleFormStepBarChange(){this.updateSteps()}handleFormStepChange(){this.dispatchMSFTrackingEvent(),this.formStepBar.activeStepIdx+=1,this.updateSteps(),this.scrollFormToTop()}dispatchMSFTrackingEvent(){const e=this.formStepBar.activeStepIdx,t=this.formSteps[e];if(!t)return;const i=new qa(t.stepName,t.formFields).trackingEventData;null!==i&&g.A.push(i)}},Qa=c()(Ka.prototype,"formStepBar",[Ua],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ga=c()(Ka.prototype,"formSteps",[$a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ka.prototype,"handleFormStepBarChange",[ja],Object.getOwnPropertyDescriptor(Ka.prototype,"handleFormStepBarChange"),Ka.prototype),c()(Ka.prototype,"handleFormStepChange",[Ha],Object.getOwnPropertyDescriptor(Ka.prototype,"handleFormStepChange"),Ka.prototype),Ka);var Xa,Ja,Ya,Za,en,tn;customElements.define("vic-m-multistep-form",Wa);let sn=(Xa=(0,S.K3)(".vic-m-form-step-bar__item"),Ja=(0,S.K3)(".vic-m-form-step-bar__button"),Ya=(0,S.rF)("buttons","click"),Za=class extends S.uA{constructor(...e){super(...e),this._activeStepIdx=void 0,T()(this,"items",en,this),T()(this,"buttons",tn,this)}get activeStepIdx(){return this._activeStepIdx}set activeStepIdx(e){this._activeStepIdx!==e&&(this._activeStepIdx=e,this.updateItems(),this.updateButtons())}afterComponentRender(){this.activeStepIdx=0}updateItems(){(0,e.vy)(this.items,t.Hc),(0,e.vy)(this.items,t.BL),(0,e.vy)(this.items,"cmp-tabs__tab--active"),(0,e.iQ)(this.items[this.activeStepIdx],t.Hc),(0,e.iQ)(this.items[this.activeStepIdx],"cmp-tabs__tab--active"),this.items.slice(0,this.activeStepIdx).forEach(i=>{(0,e.iQ)(i,t.BL)})}updateButtons(){this.buttons.forEach((e,t)=>{e.toggleAttribute("disabled",t>=this.activeStepIdx)})}handleFormStepBarLinksClick(e){e.preventDefault(),this.activeStepIdx=this.buttons.indexOf(e.currentTarget),this.dispatchEvent(new CustomEvent(P.qu))}},en=c()(Za.prototype,"items",[Xa],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tn=c()(Za.prototype,"buttons",[Ja],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Za.prototype,"handleFormStepBarLinksClick",[Ya],Object.getOwnPropertyDescriptor(Za.prototype,"handleFormStepBarLinksClick"),Za.prototype),Za);customElements.define("vic-m-form-step-bar",sn);var an,nn,rn,on,ln,cn,hn,dn,un,pn,gn,bn,mn,fn,vn=i(66961);an=(0,S.Tc)("vic-m-language-switch-dialog"),nn=(0,S.hq)(".vic-m-language-switch-dialog__close"),rn=(0,S.hq)(".vic-m-language-switch-dialog__dialog"),on=(0,S.hq)(".vic-m-language-switch-dialog__languages"),ln=(0,S.rF)("closeBtn","click"),cn=(0,S.rF)("this","click"),hn=(0,S.rF)("dialog","click"),dn=(0,S.rF)("languagesRadioGroup",P.aA),an((un=class extends S.uA{constructor(...e){super(...e),T()(this,"closeBtn",pn,this),T()(this,"dialog",gn,this),T()(this,"languagesRadioGroup",bn,this)}async open(){(0,e.iQ)(this,t.vP),await(0,e.fm)(100),(0,e.iQ)(this,t.G),vn.A.trapFocusIn(this)}async close(){(0,e.vy)(this,t.G),await(0,e.fm)(300),(0,e.vy)(this,t.vP),vn.A.unTrapFocusIn(this)}handleButtonCloseClick(){this.close()}handleDialogClick(){this.close()}handleWrapperClick(e){e.stopPropagation()}handleLanguageChange(i){(0,e.nB)(this,t.vP)&&(window.location=i.detail.submitValue)}},pn=c()(un.prototype,"closeBtn",[nn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gn=c()(un.prototype,"dialog",[rn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bn=c()(un.prototype,"languagesRadioGroup",[on],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(un.prototype,"handleButtonCloseClick",[ln],Object.getOwnPropertyDescriptor(un.prototype,"handleButtonCloseClick"),un.prototype),c()(un.prototype,"handleDialogClick",[cn],Object.getOwnPropertyDescriptor(un.prototype,"handleDialogClick"),un.prototype),c()(un.prototype,"handleWrapperClick",[hn],Object.getOwnPropertyDescriptor(un.prototype,"handleWrapperClick"),un.prototype),c()(un.prototype,"handleLanguageChange",[dn],Object.getOwnPropertyDescriptor(un.prototype,"handleLanguageChange"),un.prototype),un));let yn=(mn=(0,S.rF)("this","click"),fn=class extends S.uA{constructor(...e){super(...e),this._isLoading=!1,this._categoryData=void 0,this._footerVisible=!1,this._numberResults=void 0,this.wrapper=void 0,this.activeFilters=new Map,this._activeRangeFilters=new Map}get numberResultsPrefix(){return this.getAttribute("i18n-prefix")||"viessmann.corporate.search.filterFlyout"}get closeBtn(){return(0,e.I6)(this,".vic-m-filter-flyout__close")}get isOpen(){return(0,e.nB)(this,t.vP)}get isLoading(){return this._isLoading}set isLoading(i){i!==this._isLoading&&(this._isLoading=i,(0,e.p1)(this,t.F5,i))}get categoryData(){return this._categoryData}set categoryData(e){e?.category!==this._categoryData?.category&&(this._categoryData=e,this.activeFilters=new Map,this._activeRangeFilters=new Map,this.footerVisible=!1,this.dispatchEvent(new CustomEvent(P.s5,{bubbles:!1})),this.reRenderComponent())}get activeRangeFilters(){return Array.from(this._activeRangeFilters.values()).map(e=>({...e,label:this.getRangeFilterLabel(e)}
290))}getRangeFilterLabel(e){const t=this.categoryData?.rangeFilters;if(void 0===t)return"";const i=t[e.name];return i?.name??""}get numberResults(){return this._numberResults}set numberResults(e){e!==this._numberResults&&(this._numberResults=e,this.updateComponent())}get footerVisible(){return this._footerVisible}set footerVisible(e){e!==this._footerVisible&&(this._footerVisible=e,this.updateComponent())}get renderWrapper(){return void 0!==this.wrapper||(this.wrapper=document.createElement("div"),(0,e.iQ)(this.wrapper,"vic-m-filter-flyout__wrapper"),this.appendChild(this.wrapper)),this.wrapper}reRenderComponent(){void 0!==this.wrapper&&(this.removeChild(this.wrapper),this.wrapper=void 0),this.updateComponent()}async updateComponent(){if(void 0===this.categoryData)return;const{filterFlyoutTemplate:e}=await i.e(73751).then(i.bind(i,73751));(0,m.XX)(await e({component:this,categoryData:this.categoryData,handleRangeFilterChange:()=>this.updateActiveRangeFilters()}),this.renderWrapper)}handleComponentClick(){this.close()}handleCheckBoxChangeEvent(e,t){const i=e.target;this.updateFilteredData(i,t),this.updateFlyoutFooterVisibility(),this.updateComponent()}updateFilteredData(e,t){e.isChecked?this.addFilter(t):this.removeFilter(t)}updateFlyoutFooterVisibility(){this.footerVisible=this.activeFilters.size>0||this.activeRangeFilters.length>0}setActiveFilters(e){e.map(e=>this.getFilterTag(e.categoryKey,e.tag)).filter(e=>void 0!==e).forEach(e=>this.addFilter(e,!0)),this.dispatchEvent(new CustomEvent(P.kx,{bubbles:!1}))}getFilterTag(e,t){const i=this.categoryData?.filters[e]?.items.find(e=>e.tag===t);if(void 0!==i)return{categoryKey:e,...i}}addFilter(e,t=!1){const i=this.getFilterKey(e);!0!==this.activeFilters.has(i)&&(this.activeFilters.set(i,e),this.updateComponent(),!1===t&&this.dispatchEvent(new CustomEvent(P.kx,{bubbles:!1})))}removeFilter(e){const t=this.getFilterKey(e);!1!==this.activeFilters.has(t)&&(this.activeFilters.delete(t),this.updateComponent(),this.dispatchEvent(new CustomEvent(P.kx,{bubbles:!1})))}async removeRangeFilter(e){if(!1===this._activeRangeFilters.has(e.name))return;this._activeRangeFilters.delete(e.name);const t=(await this.getRangeFilterElements()).find(t=>t.name===e.name);t?.clear(),this.dispatchEvent(new CustomEvent(P.kx,{bubbles:!1}))}async getCurrentFilterRanges(){return(await this.getRangeFilterElements()).map(e=>e.currentFilterRange).filter(e=>void 0!==e)}async updateActiveRangeFilters(){const e=await this.getCurrentFilterRanges();this._activeRangeFilters=new Map,e.forEach(e=>{this._activeRangeFilters.set(e.name,e)}),this.updateFlyoutFooterVisibility(),this.dispatchEvent(new CustomEvent(P.kx,{bubbles:!1}))}getFilterKey(e){return e.categoryKey+e.tag}async resetAllFilters(e=!1){this.activeFilters=new Map,this._activeRangeFilters=new Map,(await this.getRangeFilterElements()).forEach(e=>e.clear()),await this.updateComponent(),this.updateFlyoutFooterVisibility(),!1===e&&this.dispatchEvent(new CustomEvent(P.kx,{bubbles:!1}))}async open(i){void 0!==i?.categoryName&&await this.openCategorySection(i.categoryName),(0,e.iQ)(this,t.vP),vn.A.trapFocusIn(this),qs.A.lockPage(),void 0!==i?.rangeFilterId&&await this.focusRangeFilter(i.rangeFilterId)}close(){(0,e.vy)(this,t.vP),vn.A.unTrapFocusIn(this),qs.A.unlockPage()}async openCategorySection(t){const i=(0,e.I6)(this,"vic-m-accordion");null!==i&&(await(0,e.db)(i),await i.closeAllSections(),await i.openSectionByToggleLabel(t))}async focusRangeFilter(e){const t=(await this.getRangeFilterElements()).find(t=>t.name===e);t?.focus()}async getRangeFilterElements(){const t=(0,e.JW)(this,".vic-m-filter-flyout__range-filter");return await Promise.all(t.map(t=>(0,e.db)(t))),t}},c()(fn.prototype,"handleComponentClick",[mn],Object.getOwnPropertyDescriptor(fn.prototype,"handleComponentClick"),fn.prototype),fn);var wn,Sn,Cn,An,En,In,kn,_n,On,xn,Tn,Fn,Pn,Dn;customElements.define("vic-m-filter-flyout",yn);let Mn=(wn=(0,S.hq)(".vic-m-target-group-toast__content"),Sn=(0,S.hq)(".vic-m-target-group-toast__close-btn"),Cn=(0,S.hq)(".vic-m-target-group-toast__selection-cta--switch-and-stay"),An=(0,S.hq)(".vic-m-target-group-toast__stay-cta"),En=(0,S.rF)("this","click"),In=(0,S.rF)("contentBox","click"),kn=(0,S.rF)("closeBtn","click"),_n=(0,S.rF)("stayCta","click"),On=(0,S.rF)("switchAndStayCta","click"),xn=class extends S.uA{constructor(){super({asyncRendering:!0}),T()(this,"contentBox",Tn,this),T()(this,"closeBtn",Fn,this),T()(this,"switchAndStayCta",Pn,this),T()(this,"stayCta",Dn,this)}async renderAsync(){const i=await this.loadTemplate();(0,m.XX)(await i(),this),(0,e.iQ)(this,t.S2)}
290async loadTemplate(){const{targetGroupToastTemplate:e}=await i.e(22101).then(i.bind(i,22101));return e}handleComponentClick(){this.close()}handleContentBoxClick(e){e.stopPropagation()}handleCloseBtnClick(){this.close()}handleStayCtaClick(){this.close()}async handleSwitchAndStayCtaClick(){await o.A.toggleTargetGroup(),this.close()}open(){(0,e.iQ)(this,t.vP),vn.A.trapFocusIn(this)}async close(){(0,e.vy)(this,t.vP),await(0,e.fm)(300),vn.A.unTrapFocusIn(this),this.remove()}},Tn=c()(xn.prototype,"contentBox",[wn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fn=c()(xn.prototype,"closeBtn",[Sn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pn=c()(xn.prototype,"switchAndStayCta",[Cn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dn=c()(xn.prototype,"stayCta",[An],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(xn.prototype,"handleComponentClick",[En],Object.getOwnPropertyDescriptor(xn.prototype,"handleComponentClick"),xn.prototype),c()(xn.prototype,"handleContentBoxClick",[In],Object.getOwnPropertyDescriptor(xn.prototype,"handleContentBoxClick"),xn.prototype),c()(xn.prototype,"handleCloseBtnClick",[kn],Object.getOwnPropertyDescriptor(xn.prototype,"handleCloseBtnClick"),xn.prototype),c()(xn.prototype,"handleStayCtaClick",[_n],Object.getOwnPropertyDescriptor(xn.prototype,"handleStayCtaClick"),xn.prototype),c()(xn.prototype,"handleSwitchAndStayCtaClick",[On],Object.getOwnPropertyDescriptor(xn.prototype,"handleSwitchAndStayCtaClick"),xn.prototype),xn);customElements.define("vic-m-target-group-toast",Mn);var Rn=i(21016);const Bn=new class{async getMetaData(e){try{const t=(await this.getPlayerConfig()).metaApiTemplate;if(void 0===t)throw new Error("Vimeo meta API template not found");const i=(0,Ve.F)(t,{videoId:e}),s=await f.A.fetchJSON(i,{cacheOptions:{storageType:"session",validFor:Rn.Gf}});if(null===s)throw new Error("Vimeo meta API not responding");return 0===s.length?null:s[0]}catch(e){return u.bD.error("Vimeo meta API error",e),null}}async getPlayerConfig(){const e=await p.A.getConfigItem("vimeo");if(void 0===e)throw new Error("Vimeo player config not found");return e}};var Ln,Vn;let Nn=(Ln=(0,S.rF)("this","click"),Vn=class extends S.uA{constructor(){super({asyncRendering:!0}),this.fallbackPosterSrc=void 0}get videoType(){return"vimeo"===this.getAttribute("video-type")?"vimeo":"youtube"}get videoID(){return this.getAttribute("video-id")||""}get posterSrc(){if(void 0!==this.fallbackPosterSrc)return this.fallbackPosterSrc;const e=this.getAttribute("poster-src");return null!==e?e:"youtube"===this.videoType?`https://imp.viessmann-climatesolutions.com/vi/${this.videoID}/0.jpg`:""}get posterLoadingPlaceholder(){return this.getAttribute("poster-loading-placeholder")||void 0}get posterSrcSet(){return this.getAttribute("poster-srcset")||void 0}get posterAlt(){return this.getAttribute("poster-alt")||void 0}get caption(){return this.getAttribute("caption")||""}get renderingArgs(){return{poster:{src:this.posterSrc,alt:this.posterAlt,loadingPlaceholder:this.posterLoadingPlaceholder,srcset:this.posterSrcSet},caption:this.caption}}get videoArgs(){return{videoId:this.videoID,posterLoadingPlaceholder:this.posterLoadingPlaceholder,posterSrc:this.posterSrc,posterSrcset:this.posterSrcSet}}async renderAsync(){""===this.posterSrc&&"vimeo"===this.videoType&&(this.fallbackPosterSrc=await this.getFallbackPosterSrc());const{videoTeaserTemplate:e}=await i.e(57487).then(i.bind(i,57487));(0,m.XX)(e(this.renderingArgs),this)}async getFallbackPosterSrc(){if(void 0===this.videoID)return;const e=await Bn.getMetaData(this.videoID);return null!==e?e.thumbnail_large??e.thumbnail_medium??e.thumbnail_small:void 0}async openLightbox(){const t=document.createElement("vic-m-video-lightbox");(0,e.iQ)(t,"vic-m-video-lightbox"),t.setAttribute("video-type",this.videoType),document.body.appendChild(t),await(0,e.db)(t),await t.setVideoEl(this.videoArgs),t.open()}handleVideoClick(){this.openLightbox()}},c()(Vn.prototype,"handleVideoClick",[Ln],Object.getOwnPropertyDescriptor(Vn.prototype,"handleVideoClick"),Vn.prototype),Vn);var zn,qn;customElements.define("vic-m-video-teaser",Nn);let Un=(zn=(0,S.rF)("window","keyup"),qn=class extends S.uA{constructor(...e){super(...e),this._videoArgs=void 0}get videoType(){return"vimeo"===this.getAttribute("video-type")?"vimeo":"youtube"}get videoArgs(){return this._videoArgs}async setVideoEl(e){this._videoArgs!==e&&(this._videoArgs=e,await this.renderLightbox())}async renderLightbox(){const{videoLightboxTemplate:e}=await i.e(87091).then(i.bind(i,87091)),t=this.videoArgs;void 0!==t&&(0,m.XX)(await e({closingCb:()=>this.close(),videoType:this.videoType,videoArgs:t}),this)}handleKeyup(e){"Escape"===e.code&&this.close()}async open(){(0,e.iQ)(this,t.vP),await(0,e.fm)(300),vn.A.trapFocusIn(this)}async close(){(0,e.vy)(this,t.vP),vn.A.unTrapFocusIn(this),await(0,e.fm)(300),this.remove()}},c()(qn.prototype,"handleKeyup",[zn],Object.getOwnPropertyDescriptor(qn.prototype,"handleKeyup"),qn.prototype),qn);customElements.define("vic-m-video-lightbox",Un);class $n extends S.uA{constructor(...e){super(...e),this.pagination=void 0}get paginationActive(){return this.hasAttribute("pagination-active")&&"false"!==this.getAttribute("pagination-active")}get itemsPerPage(){return 12}get pageCount(){return Math.ceil(this.items.length/this.itemsPerPage)}get items(){throw new Error("VICPageableComponent: override items-getter")}get itemsContainer(){return null}afterComponentRender(){!1===this.paginationActive||this.pageCount<=1||this.initPagination()}initPagination(){const i=document.createElement("vic-m-pagination");(0,e.iQ)(i,"vic-m-pagination"),i.setAttribute("page-count",this.pageCount.toString()),(0,e.MR)(i,P.i$,this.handlePaginationChange,this),this.pagination=i,this.appendChild(i),(0,e.iQ)(this,t.S2),this.updateActiveItems()}async handlePaginationChange(){window.scrollTo({top:window.scrollY+this.getBoundingClientRect().top-50,behavior:"smooth"}),null!==this.itemsContainer&&((0,e.iQ)(this.itemsContainer,t.kH),await(0,e.fm)(300),(0,e.vy)(this.itemsContainer,t.kH)),this.updateActiveItems()}updateActiveItems(){const i=this.pagination.activeItem||0;(0,e.iQ)(this.items,t.RG);const s=this.getItemsByPageIdx(i);(0,e.vy)(s,t.RG)}
290getItemsByPageIdx(e){const t=this.itemsPerPage,i=e*t;return this.items.slice(i,i+t)}}var jn,Hn,Kn,Qn,Gn;let Wn=(jn=(0,S.hq)(".vic-m-video-wall__teasers"),Hn=(0,S.K3)(".vic-m-video-teaser"),Kn=class extends $n{constructor(...e){super(...e),T()(this,"teaserBox",Qn,this),T()(this,"teasers",Gn,this)}get itemsPerPage(){return 12}get items(){return this.teasers}get itemsContainer(){return this.teaserBox}},Qn=c()(Kn.prototype,"teaserBox",[jn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gn=c()(Kn.prototype,"teasers",[Hn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn);customElements.define("vic-m-video-wall",Wn);class Xn extends S.uA{constructor(){super({asyncRendering:!0}),this.historyStateId=`vic-m-iframe-overlay-${(0,e.Lz)()}`,this.historyEntryPushed=!1}get i18nPrefix(){return""}get iframeUrl(){return this.getAttribute("iframe-url")??""}afterComponentRender(){(0,e.MR)(window,"message",this.handleIframeEvent,this)}get iframeUrlString(){const e=this.iframeUrl;if(!1===this.appendQueryParams)return e;const t=window.location.origin+window.location.pathname;return(0,Z.UD)((0,Z.m$)(e,this.curQueryString),{leadFormUrl:t})}get backToHomepageUrl(){return this.getAttribute("back-to-homepage-url")||void 0}get disableHeader(){const e="disable-header";return this.hasAttribute(e)&&"false"!==this.getAttribute(e)}get curQueryString(){let e=window.location.search;return e.startsWith("?")&&(e=e.slice(1)),e}get appendQueryParams(){const e="append-query-params";return this.hasAttribute(e)&&"false"!==this.getAttribute(e)}get isOnOwnHistoryEntry(){const e=window.history.state;return e?.vicIframeOverlayId===this.historyStateId}async getRenderingArgs(){return await Promise.resolve(),{i18nPrefix:this.i18nPrefix,iframeUrl:this.iframeUrlString,backToHomepageUrl:this.backToHomepageUrl,disableHeader:this.disableHeader,handleClose:()=>this.close()}}async renderAsync(){const{iframeOverlayTemplate:e}=await i.e(1732).then(i.bind(i,1732)),t=await this.getRenderingArgs();(0,m.XX)(await e(t),this),this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");const s=await Ne.A.getValue(`${this.i18nPrefix}.arialabel`);s&&this.setAttribute("aria-label",s)}open(){(0,e.iQ)(this,t.vP),vn.A.trapFocusIn(this),qs.A.lockPage();const i={vicIframeOverlayId:this.historyStateId};window.history.pushState(i,"",window.location.href),this.historyEntryPushed=!0,(0,e.MR)(window,"popstate",this.onPopState,this)}async close(){(0,e.Nn)(window,"popstate",this.onPopState,this);const t=this.historyEntryPushed;this.historyEntryPushed=!1,await this.tearDown(),!1!==t&&!1!==this.isOnOwnHistoryEntry&&window.history.back()}async onPopState(){(0,e.Nn)(window,"popstate",this.onPopState,this),this.historyEntryPushed=!1,await this.tearDown()}async tearDown(){(0,e.vy)(this,t.vP),await(0,e.fm)(300),vn.A.unTrapFocusIn(this),qs.A.unlockPage(),(0,e.Nn)(window,"message",this.handleIframeEvent,this),this.remove()}async handleIframeEvent(e){if(await Promise.resolve(),!1===this.iframeUrlString.startsWith("http"))throw new Error("Iframe Overlay: iframe url must have a valid http url")}}class Jn extends Xn{get i18nPrefix(){return"viessmann.corporate.productFinder"}static async renderProductFinder(t){const i=document.createElement("vic-m-product-finder");return(0,e.iQ)(i,"vic-m-iframe-overlay","vic-m-product-finder"),i.setAttribute("iframe-url",t.iframeUrl),i.setAttribute("back-to-homepage-url",t.backToHomepageUrl),!0===t.appendQueryParams&&i.setAttribute("append-query-params",""),document.body.appendChild(i),await(0,e.db)(i),i}}customElements.define("vic-m-product-finder",Jn);class Yn extends Xn{get i18nPrefix(){return"viessmann.corporate.systemFinderOverlay"}get salesforceLeadIdParams(){const e=u.tJ.get("leadSalesforceId");return null===e?null:new URLSearchParams({id:e,prefilled:"true"})}get iframeUrl(){const e=this.salesforceLeadIdParams;return null===e?super.iframeUrl:(0,Z.Ne)(super.iframeUrl,e)}get curQueryString(){const e=new URLSearchParams(window.location.search);return e.delete("leadSalesforceId"),e.toString()}async handleIframeEvent(e){try{await super.handleIframeEvent(e),!0===e.data?.close&&await this.close()}catch(e){u.bD.error("VICSystemFinderOverlay:",e)}}
290static async renderSystemFinderOverlay(t){const i=document.createElement("vic-m-system-finder-overlay");return(0,e.iQ)(i,"vic-m-iframe-overlay","vic-m-system-finder-overlay"),i.setAttribute("iframe-url",t.iframeUrl),i.setAttribute("back-to-homepage-url",t.backToHomepageUrl),!0===t.appendQueryParams&&i.setAttribute("append-query-params",""),document.body.appendChild(i),await(0,e.db)(i),i}}customElements.define("vic-m-system-finder-overlay",Yn);class Zn extends Xn{get i18nPrefix(){return"viessmann.corporate.systemPlannerOverlay"}get instanceId(){return this.getAttribute("instance-id")||""}get apiKey(){return this.getAttribute("api-key")||""}get systemPlannerIframeAppConfigMessage(){return{type:"home-planner-teaser-message",action:"app-config",config:{apiKey:this.apiKey,instanceId:this.instanceId}}}async handleIframeEvent(e){try{if(await super.handleIframeEvent(e),"home-planner-app-message"!==e.data?.type)return;if("app-loaded"===e.data?.action){const e=this.getElementsByTagName("iframe").item(0);e?.contentWindow?.postMessage(this.systemPlannerIframeAppConfigMessage,"*")}else"app-closed"===e.data?.action&&await this.close()}catch(e){u.bD.error("VICSystemPlannerOverlay:",e)}}static async renderSystemPlannerOverlay(t){const i=document.createElement("vic-m-system-planner-overlay"),s=new URL(t.iframeUrl).searchParams.get("instanceId")||"";(0,e.iQ)(i,"vic-m-iframe-overlay","vic-m-system-planner-overlay"),i.setAttribute("iframe-url",t.iframeUrl),i.setAttribute("instance-id",s),i.setAttribute("disable-header","true");
290const a=await this.getSystemPlannerConfig();return i.setAttribute("api-key",a.apiKey),document.body.appendChild(i),await(0,e.db)(i),i}static async getSystemPlannerConfig(){const e=await p.A.getConfigItem("systemPlanner");if(void 0===e)throw new Error("System Planner config not found");return e}}var er,tr,ir;customElements.define("vic-m-system-planner-overlay",Zn);let sr=(er=(0,S.rF)("this","click"),tr=(0,S.rF)("this","keydown"),ir=class extends S.uA{get overlayType(){return this.getAttribute("overlay-type")??""}get iframeUrl(){return this.getAttribute("iframe-url")??""}get backToHomepageUrl(){return this.getAttribute("back-to-homepage-url")||""}get appendQueryParams(){const e="append-query-params";return this.hasAttribute(e)&&"false"!==this.getAttribute(e)}async handleClick(){await this.openOverlay()}async handleKeydown(e){"Enter"===e.key&&await this.openOverlay()}async openOverlay(){"product-finder"===this.overlayType?await this.openProductFinder():"system-finder"===this.overlayType?await this.openSystemFinder():"system-planner"===this.overlayType&&await this.openSystemPlanner()}async openProductFinder(){(await Jn.renderProductFinder({iframeUrl:this.iframeUrl,backToHomepageUrl:this.backToHomepageUrl,appendQueryParams:this.appendQueryParams})).open()}async openSystemFinder(){(await Yn.renderSystemFinderOverlay({iframeUrl:this.iframeUrl,backToHomepageUrl:this.backToHomepageUrl,appendQueryParams:this.appendQueryParams})).open()}async openSystemPlanner(){(await Zn.renderSystemPlannerOverlay({iframeUrl:this.iframeUrl})).open()}},c()(ir.prototype,"handleClick",[er],Object.getOwnPropertyDescriptor(ir.prototype,"handleClick"),ir.prototype),c()(ir.prototype,"handleKeydown",[tr],Object.getOwnPropertyDescriptor(ir.prototype,"handleKeydown"),ir.prototype),ir);var ar,nr,rr,or;customElements.define("vic-e-iframe-overlay-toggle",sr),ar=(0,S.Tc)("vic-m-language-switch-toggle"),nr=(0,S.rF)("this","click"),rr=(0,S.rF)("this","keyup"),ar((or=class extends S.uA{constructor(...e){super(...e),this._languageSwitchDialog=null}get languageSwitchDialog(){return null===this._languageSwitchDialog&&(this._languageSwitchDialog=(0,e.I6)(document,"#vic-m-language-switch-dialog")),this._languageSwitchDialog}handleClick(){this.languageSwitchDialog?.open()}handleKeyup(e){"Enter"===e.key&&this.languageSwitchDialog?.open()}},c()(or.prototype,"handleClick",[nr],Object.getOwnPropertyDescriptor(or.prototype,"handleClick"),or.prototype),c()(or.prototype,"handleKeyup",[rr],Object.getOwnPropertyDescriptor(or.prototype,"handleKeyup"),or.prototype),or));class lr extends S.uA{constructor(...e){super(...e),this.conditionChecker=void 0}afterComponentRender(){this.conditionChecker=new Fa({element:this,attributePrefix:"visible-when-",onChange:()=>this.handleVisibilityChange()})}handleVisibilityChange(){const i=this.conditionChecker.conditionsValid;(0,e.p1)(this,t.F4,!i)}}customElements.define("vic-m-form-group",lr);const cr=new class{async getCurrentPosition(){const{default:e}=await Promise.resolve().then(i.bind(i,41179));await e.loadApi();const t=await new Promise((e,t)=>{navigator.geolocation.getCurrentPosition(e,t)});return new google.maps.LatLng(t.coords.latitude,t.coords.longitude)}};customElements.define("vic-e-place-search-input",class extends Ni{constructor(...e){super(...e),this.autocompleteService=void 0,this.placesService=void 0,this.latestPredictions=[],this.activePlaceId="",this._locationLoading=!1,this.consentAccepted=!1,this._userLocation=null}get locationIconId(){const e=this.getAttribute("location-icon-id")??"";return""!==e?e:"vic-icon-use-my-location"}get autoFocusSuggestions(){return!0}get countries(){const e=this.attributes;return Array.from(e).filter(e=>e.name.startsWith("country-")).map(e=>e.value).slice(0,5)}get locationLoading(){return this._locationLoading}set locationLoading(e){this._locationLoading!==e&&(this._locationLoading=e,this.renderAsync())}get userLocation(){return this._userLocation}get consentCategory(){return"googlePlaceAPI"}async updateUserLocation(e,t=!1){if(this._userLocation=e,null===e)return;const i=await Ne.A.getValue("viessmann.corporate.placeSearchInput.yourLocation");this.input.value=i||"Your Location",this.activePlaceId="",!1===t&&this.submitSearch(),this.updateCanSubmit()}get currentValue(){return this.input?.value||""}set currentValue(e){this.input.value=e,this._userLocation=null,this.activePlaceId=this.latestPredictions.find(t=>t.description===e)?.place_id||"",this.updateCanSubmit()}updateSuggestedValue(e,t){this.input.value=e,this.activePlaceId=t,this._userLocation=null}get componentRestrictions(){const e=this.countries;if(0!==e.length)return{country:1===e.length?e[0]:e}}async renderAsync(){try{const e=await this.loadPlaceInputTemplate();(0,m.XX)(await e(this),this)}catch(e){u.bD.error("PlaceSearchInput:",e)}}async loadPlaceInputTemplate(){const{searchInputTemplate:e}=await i.e(28685).then(i.bind(i,28685));return e}updateCanSubmit(){(0,e.p1)(this,t.Ye,""!==this.activePlaceId||null!==this.userLocation)}async loadGoogleMapsApi(){const{default:e}=await Promise.resolve().then(i.bind(i,41179));await e.loadApi()}async initAutocompleteService(){return await this.loadGoogleMapsApi(),this.autocompleteService=new google.maps.places.AutocompleteService,this.autocompleteService}async getAutocompleteService(){return void 0!==this.autocompleteService?this.autocompleteService:await this.initAutocompleteService()}async initPlacesService(){return await this.loadGoogleMapsApi(),this.placesService=new google.maps.places.PlacesService(document.createElement("div")),this.placesService}async getPlacesService(){return void 0!==this.placesService?this.placesService:await this.initPlacesService()}async hasConsent(){return this.consentAccepted||await w.A.hasConsent(this.consentCategory)}async getSuggestionsFor(e){const t=await this.getAutocompleteService();let i=[];if(!1===await this.hasConsent())return await Q.A.showConsentOverlay(this.consentCategory),w.A.observeCategoryAccepted(this.consentCategory,()=>{this.consentAccepted=!0,this.renderListBox()}),[];try{i=await new Promise((i,s)=>{t.getPlacePredictions({input:e,types:["geocode"],componentRestrictions:this.componentRestrictions},(e,t)=>{t===google.maps.places.PlacesServiceStatus.OK&&null!==e?i(e):s(new Error(t))})})}catch(e){u.bD.error("VICPlaceSearchInput: ",e)}return this.latestPredictions=i,i.map(e=>e.description)}async getCoordinates(){return this.userLocation||await this.getCurrentPlaceLocation()}async getCurrentPlaceLocation(){if(""===this.activePlaceId)return null;await this.loadGoogleMapsApi();const e=await this.getPlacesService();let t=null;try{t=await new Promise((t,i)=>{e.getDetails({placeId:this.activePlaceId},(e,s)=>{s===google.maps.places.PlacesServiceStatus.OK?t(e?.geometry?.location||null):i(new Error(s))})})}catch(e){u.bD.error("VICPlaceSearchInput: ",e)}return t}async useCurrentLocation(){if(this.locationLoading=!0,!1===await this.hasConsent())return await Q.A.showConsentOverlay(this.consentCategory),void w.A.observeCategoryAccepted(this.consentCategory,()=>this.getCurrentLocation());await this.getCurrentLocation()}async getCurrentLocation(){try{const e=await cr.getCurrentPosition();await this.updateUserLocation(e)}catch(e){u.bD.error("PlaceSearchInput: ",e)}finally{this.locationLoading=!1}}redirectToSearchPage(){window.location.href=this.getRedirectUrl()}getRedirectUrl(){const e=`${this.appendQueryParam(this.searchUrl,this.currentValue)}&_charset_=UTF-8`,t=this.userLocation;return null!==t?`${e}&lat=${t.lat()}&lon=${t.lng()}`:""!==this.activePlaceId?`${e}&placeId=${this.activePlaceId}`:e}getActiveSuggestionIndex(){return this.keyboardIndex<1?(this.keyboardIndex=this.curSuggestions.length,this.keyboardIndex):this.keyboardIndex===this.curSuggestions.length+1?(this.keyboardIndex=1,this.keyboardIndex):this.keyboardIndex}});class hr extends S.uA{constructor(...e){super(...e),this._aboveFold=!1}afterComponentRender(){this.initVpObservers()}initVpObservers(){const e={rootMargin:"0px 0px -250px"};Ot.A.observeIn({targetElement:this,callback:()=>{this.aboveFold=!0},context:this,observerConfig:e}),Ot.A.observeOut({targetElement:this,callback:()=>this.handleOutVp(),context:this,observerConfig:e})}handleOutVp(){this.updateAboveFold()}get aboveFold(){return this._aboveFold}set aboveFold(e){this._aboveFold=e,this.dispatchEvent(new CustomEvent(P.b7,{bubbles:!1}))}updateAboveFold(){const e=this.getBoundingClientRect().top;this.aboveFold=e+250<window.innerHeight}}var dr,ur,pr,gr,br,mr,fr;customElements.define("vic-e-context-navigation-waypoint",hr);let vr=(dr=(0,S.hq)(".vic-m-country-check-overlay__closing-btn"),ur=(0,S.hq)(".vic-m-country-check-overlay__cta--stay"),pr=(0,S.rF)("closingBtn","click"),gr=(0,S.rF)("stayCta","click"),br=class extends S.uA{constructor(...e){super(...e),T()(this,"closingBtn",mr,this),T()(this,"stayCta",fr,this)}handleClosingBtnClick(){this.close(),y.countryCheckDone=!0}handleStayCtaClick(){this.close(),y.countryCheckDone=!0}open(){(0,e.iQ)(this,t.vP),vn.A.trapFocusIn(this)}async close(){(0,e.vy)(this,t.vP),await(0,e.fm)(300),vn.A.unTrapFocusIn(this),this.remove()}},mr=c()(br.prototype,"closingBtn",[dr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fr=c()(br.prototype,"stayCta",[ur],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(br.prototype,"handleClosingBtnClick",[pr],Object.getOwnPropertyDescriptor(br.prototype,"handleClosingBtnClick"),br.prototype),c()(br.prototype,"handleStayCtaClick",[gr],Object.getOwnPropertyDescriptor(br.prototype,"handleStayCtaClick"),br.prototype),br);var yr,wr,Sr,Cr,Ar,Er;customElements.define("vic-m-country-check-overlay",vr);let Ir=(yr=(0,S.hq)(".vic-m-parallax-section__image"),wr=(0,S.rF)("window",u.Rn),Sr=(0,S.rF)("this",u.AI),Cr=(0,S.rF)("this",u.Xh),Ar=class extends S.uA{constructor(...e){super(...e),this._animationActive=!1,this._inViewport=!1,this.animationFrameId=void 0,this.mqService=u.Mp.getInstance(F.A),this.viewportObserver=u.rD.getInstance(),T()(this,"image",Er,this)}afterComponentRender(){this.animationActive=this.activeOnCurrentMQ,this.viewportObserver.observe(this)}get activeOnCurrentMQ(){return(0,e.g8)(F.A)>="MQ3"}get animationActive(){return this._animationActive}set animationActive(e){this._animationActive!==e&&(this._animationActive=e,this.updateAnimationFrame())}get imageOffsetHeight(){return window.innerHeight-this.image.offsetHeight}get inViewport(){return this._inViewport}set inViewport(e){this._inViewport!==e&&(this._inViewport=e,this.updateAnimationFrame())}get currentScrollOffset(){return this.getBoundingClientRect().top}get scrollDistance(){return window.innerHeight+this.offsetHeight}
290get componentOffset(){return this.scrollDistance-(this.getBoundingClientRect().top+this.offsetHeight)}get imageScrollDistance(){return this.scrollDistance-this.image.offsetHeight}get imageOffset(){const e=this.componentOffset,t=this.imageScrollDistance/this.scrollDistance*e-e;return-1*(this.image.offsetHeight+t-this.offsetHeight/2)}updateAnimationFrame(){this.animationActive&&this.inViewport?this.addAnimationFrame():void 0!==this.animationFrameId&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0)}addAnimationFrame(){void 0===this.animationFrameId&&(this.animationFrameId=window.requestAnimationFrame(()=>this.updateImageOffset()))}updateImageOffset(){this.style.setProperty("--vic-m-parallax-section__translate-y",`${this.imageOffset}px`),this.animationFrameId=window.requestAnimationFrame(()=>this.updateImageOffset())}handleMQChange(){this.animationActive=this.activeOnCurrentMQ}handleInViewport(){this.inViewport=!0}handleOutViewport(){this.inViewport=!1}},Er=c()(Ar.prototype,"image",[yr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ar.prototype,"handleMQChange",[wr],Object.getOwnPropertyDescriptor(Ar.prototype,"handleMQChange"),Ar.prototype),c()(Ar.prototype,"handleInViewport",[Sr],Object.getOwnPropertyDescriptor(Ar.prototype,"handleInViewport"),Ar.prototype),c()(Ar.prototype,"handleOutViewport",[Cr],Object.getOwnPropertyDescriptor(Ar.prototype,"handleOutViewport"),Ar.prototype),Ar);customElements.define("vic-m-parallax-section",Ir);var kr=i(91242),_r=i(13696);const Or=e=>m.qy` 291 <video class="vic-e-lazy-video__video" 292 @loadeddata=${()=>e.component.handleVideoLoad()} 293 muted 294 ?autoplay=${!e.component.paused} 295 ?loop=${!e.component.noLoop} 296 playsinline> 297 ${(e=>void 0===e.sources?"":e.sources.map(t=>((e,t)=>!1===t?m.qy`<source data-src="${e.src}" type="${e.type}" />`:m.qy`<source src="${e.src}" type="${e.type}" />`)(t,e.inViewport)))(e)} 298 </video> 299 `;var xr,Tr,Fr,Pr,Dr,Mr,Rr,Br,Lr;let Vr=(xr=(0,S.d9)(F.A),Tr=(0,S.hq)(".vic-e-lazy-video__video"),Fr=(0,S.rF)("this",u.AI),Pr=(0,S.rF)("window",u.Rn),Dr=(0,S.rF)("window","beforeunload"),Mr=(0,S.rF)("window","pageshow"),xr((Br=class extends S.uA{constructor(...e){super(...e),this.viewportObserver=u.rD.getInstance(),this.videoSources=new Map,this.inViewport=!1,T()(this,"videoElement",Lr,this)}get noLoop(){return this.hasAttribute("no-loop")&&"false"!==this.getAttribute("no-loop")}get paused(){return this.hasAttribute("paused")&&"false"!==this.getAttribute("paused")}get activeVideoRendition(){const t=parseInt((0,e.g8)(F.A).slice(2),10);return Array.from(this.videoSources.values()).find(e=>(0,_r.TR)(e.mqs,t))}get renderArgs(){return{inViewport:this.inViewport,sources:this.activeVideoRendition?.sources,component:this}}renderComponent(){this.initVideoSourceMap(),(0,m.XX)(Or(this.renderArgs),this)}updateComponent(){(0,m.XX)(Or(this.renderArgs),this),this.loadVideo()}afterComponentRender(){this.initVideoSourceMap(),this.viewportObserver.observe(this)}initVideoSourceMap(){this.initVideoSources(),this.initFallbackImages()}initVideoSources(){(0,e.JW)(this,"source").forEach(e=>{this.addVideoSourceToMap(e)})}addVideoSourceToMap(e){const t=e.dataset.vicMq||"1-4",i=e.dataset.src;if(void 0===i)return;const s={src:i,type:e.type},a=this.videoSources.get(t);if(void 0!==a)return a.sources.push(s),void this.videoSources.set(t,a);this.videoSources.set(t,{sources:[s],mqs:this.getMQs(t)})}initFallbackImages(){(0,e.JW)(this,"img").forEach(e=>{this.addFallbackImageToMap(e)})}addFallbackImageToMap(e){const t=e.dataset.vicMq||"1-4",i=e.dataset.src;if(void 0===i)return;const s=this.videoSources.get(t);void 0!==s&&(s.fallbackSrc=i,this.videoSources.set(t,s))}handleIntersectionChange(){this.viewportObserver.unobserve(this),this.inViewport=!0,(0,e.iQ)(this,t.Tr),(0,e.Nn)(this,u.AI,this.handleIntersectionChange,this),this.updateComponent()}handleMQChange(){this.updateComponent()}handleVideoLoad(){(0,e.iQ)(this,t.S2),(0,e.iQ)(this,t.tg),(0,e.iQ)(this.videoElement,t.S2),this.videoElement.muted=!0,!1===this.paused&&this.videoElement.play(),this.dispatchEvent(new CustomEvent(P.aU))}loadVideo(){null!==this.videoElement&&void 0!==this.activeVideoRendition&&(this.unloadVideo(),this.videoElement.load())}unloadVideo(){(0,e.vy)(this.videoElement,t.S2),(0,e.vy)(this,t.S2),(0,e.vy)(this,t.tg)}handlePageShow(e){!1!==e.persisted&&this.loadVideo()}getMQs(e){let t=[];
299return(0,kr.HO)(e).split(",").forEach(e=>{if(1===e.length)t=(0,_r.yG)(t,parseInt(e,10));else if(e.length>1){const i=e.split("-"),s=parseInt(i[0],10),a=parseInt(i[1],10);for(let e=s;e<=a;e++)t=(0,_r.yG)(t,e)}}),t}muteVideo(){this.videoElement.muted=!0}unMuteVideo(){this.videoElement.muted=!1}},Lr=c()(Br.prototype,"videoElement",[Tr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Br.prototype,"handleIntersectionChange",[Fr],Object.getOwnPropertyDescriptor(Br.prototype,"handleIntersectionChange"),Br.prototype),c()(Br.prototype,"handleMQChange",[Pr],Object.getOwnPropertyDescriptor(Br.prototype,"handleMQChange"),Br.prototype),c()(Br.prototype,"unloadVideo",[Dr],Object.getOwnPropertyDescriptor(Br.prototype,"unloadVideo"),Br.prototype),c()(Br.prototype,"handlePageShow",[Mr],Object.getOwnPropertyDescriptor(Br.prototype,"handlePageShow"),Br.prototype),Rr=Br))||Rr);customElements.define("vic-e-lazy-video",Vr);class Nr extends S.uA{constructor(){super({asyncRendering:!0})}get consentCategory(){return this.getAttribute("consent-category")||""}async renderAsync(){const e=await this.loadTemplate(),t=await w.A.getConsentText(this.consentCategory);(0,m.XX)(await e({component:this,consentText:t}),this)}async loadTemplate(){const{consentOverlayTemplate:e}=await i.e(60655).then(i.bind(i,60655));return e}open(){(0,e.iQ)(this,t.vP),qs.A.lockPage(),vn.A.trapFocusIn(this)}async close(i=!1){(0,e.vy)(this,t.vP),await(0,e.fm)(300),qs.A.unlockPage(),vn.A.unTrapFocusIn(this),!1===i&&this.dispatchEvent(new CustomEvent(P.yc,{bubbles:!1})),this.remove()}async acceptConsent(){await w.A.acceptCategory(this.consentCategory),this.close(!0)}}var zr,qr,Ur,$r,jr;customElements.define("vic-m-consent-overlay",Nr);let Hr=(zr=(0,S.d9)(F.A),qr=(0,S.rF)("this","dragover"),Ur=(0,S.rF)("this","drop"),zr((jr=class extends S.uA{constructor(...e){super(...e),this.hasDragOver=!1}handleWindowDragOver(i){null===i.dataTransfer||this.contains(i.target)||((0,e.Nn)(window,"dragover",this.handleWindowDragOver,this),this.hasDragOver=!1,i.preventDefault(),(0,e.vy)(this,t.Hc),i.dataTransfer.dropEffect="none")}handleDragOver(i){i.preventDefault(),!1===this.hasDragOver&&((0,e.MR)(window,"dragover",this.handleWindowDragOver,this),this.hasDragOver=!0),null!==i.dataTransfer&&((0,e.iQ)(this,t.Hc),i.dataTransfer.dropEffect="copy")}handleFileDrop(i){const s=this.getDataTransferItems(i);if(0===s.length)return;i.preventDefault(),(0,e.vy)(this,t.Hc);const a=s.map(e=>e.getAsFile()).filter(e=>null!==e);this.dispatchEvent(new CustomEvent("vic-new-files",{detail:{files:a},bubbles:!1}))}getDataTransferItems(e){return[...e.dataTransfer?.items??[]].filter(e=>"file"===e.kind)}},c()(jr.prototype,"handleDragOver",[qr],Object.getOwnPropertyDescriptor(jr.prototype,"handleDragOver"),jr.prototype),c()(jr.prototype,"handleFileDrop",[Ur],Object.getOwnPropertyDescriptor(jr.prototype,"handleFileDrop"),jr.prototype),$r=jr))||$r);customElements.define("vic-e-file-drop-area",Hr);class Kr extends S.uA{constructor(){super({asyncRendering:!0}),this.loadingProgressInterval=void 0,this._loadingProgress=0}get fileName(){return this.getAttribute("file-name")||""}get fileSize(){const e=this.getAttribute("file-size");return e?Number(e):0}get fileId(){return this.getAttribute("file-id")||""}get errorMessage(){return this.getAttribute("error-message")||void 0}get errorId(){return this.getAttribute("error-id")||void 0}get staggerDelay(){const e=this.getAttribute("stagger-delay");return e?Number(e):0}get loadingProgress(){return this._loadingProgress}set loadingProgress(e){this.loadingProgress!==e&&(this._loadingProgress=e,this.renderAsync())}static get observedAttributes(){return["error-message"]}attributeChangedCallback(e,t,i){t!==i&&this.state.initialized&&"error-message"===e&&(void 0!==this.errorMessage&&(clearInterval(this.loadingProgressInterval),this._loadingProgress=100),this.renderAsync())}async renderAsync(){const{template:s}=await i.e(71338).then(i.bind(i,71338));(0,m.XX)(await s({fileName:this.fileName,fileSize:this.fileSize,loadingProgress:this.loadingProgress,deleteCB:()=>this.dispatchDeleteEvent(),errorMessage:this.errorMessage,errorId:this.errorId}),this),(0,e.p1)(this,t.ff,void 0!==this.errorMessage)}afterComponentRender(){this.triggerLoadingProgress()}async triggerLoadingProgress(){await(0,e.fm)(this.staggerDelay);const t=300*Math.random()+200;this.loadingProgressInterval=setInterval(()=>{this.loadingProgress>=100?clearInterval(this.loadingProgressInterval):this.loadingProgress+=30},t)}
299dispatchDeleteEvent(){this.dispatchEvent(new CustomEvent("delete-file",{detail:{fileId:this.fileId}}))}}var Qr,Gr,Wr,Xr,Jr,Yr,Zr,eo,to,io;customElements.define("vic-e-loaded-file",Kr);let so=(Qr=(0,S.hq)(".vic-m-points-of-interest__image"),Gr=(0,S.K3)(".vic-m-points-of-interest__pin"),Wr=(0,S.K3)(".vic-m-points-of-interest__toggle"),Xr=(0,S.rF)("window","resize"),Jr=(0,S.rF)("toggles","mouseenter focusin"),Yr=(0,S.rF)("toggles","mouseleave focusout"),Zr=class extends S.uA{constructor(...e){super(...e),this.pinMap=new Map,this.togglePinMap=new Map,T()(this,"image",eo,this),T()(this,"pins",to,this),T()(this,"toggles",io,this)}afterComponentRender(){this.initPinMap(),this.updateAllTooltipPositions(),this.openInitialActiveTooltips()}initPinMap(){this.pins.forEach(t=>{const i=(0,e.I6)(t,".vic-m-points-of-interest__toggle"),s=(0,e.I6)(t,".vic-m-points-of-interest__tooltip");null!==i&&null!==s&&(this.pinMap.set(t,{pin:t,toggle:i,tooltip:s}),this.togglePinMap.set(i,t))})}openInitialActiveTooltips(){this.pins.forEach(e=>{const t=this.pinMap.get(e);void 0!==t&&void 0!==t.pin.dataset.initialActive&&"false"!==t.pin.dataset.initialActive&&this.openTooltip(t)})}handleResize(){this.updateAllTooltipPositions()}handleToggleHover(e){const t=e.currentTarget;if(null===t)return;const i=this.getPinData(t);this.closeAllTooltips(),this.openTooltip(i)}handleToggleUnHover(e){const t=e.currentTarget;if(null===t)return;const i=this.getPinData(t);this.closeTooltip(i)}updateAllTooltipPositions(){this.pins.forEach(e=>{const t=this.pinMap.get(e);this.updateTooltipPosition(t)})}updateTooltipPosition(e){if(void 0===e)return;const t=e.tooltip.getBoundingClientRect(),i=e.toggle.getBoundingClientRect(),s=this.image.getBoundingClientRect(),a=t.width+i.right+16<s.right,n=i.left-t.width-16>s.left,r=i.top-s.top,o=s.bottom-i.bottom;!0===a?this.setTooltipPositionClass(e.tooltip,"vic-m-points-of-interest__tooltip--right"):!0===n?this.setTooltipPositionClass(e.tooltip,"vic-m-points-of-interest__tooltip--left"):r>o?this.setTooltipPositionClass(e.tooltip,"vic-m-points-of-interest__tooltip--top"):this.setTooltipPositionClass(e.tooltip,"vic-m-points-of-interest__tooltip--bottom")}setTooltipPositionClass(t,i=""){(0,e.vy)(t,"vic-m-points-of-interest__tooltip--top"),(0,e.vy)(t,"vic-m-points-of-interest__tooltip--right"),(0,e.vy)(t,"vic-m-points-of-interest__tooltip--bottom"),(0,e.vy)(t,"vic-m-points-of-interest__tooltip--left"),(0,e.iQ)(t,i)}getPinData(e){const t=this.togglePinMap.get(e);if(void 0!==t)return this.pinMap.get(t)}closeAllTooltips(){this.pins.forEach(e=>{const t=this.pinMap.get(e);this.closeTooltip(t)})}openTooltip(i){void 0!==i&&((0,e.iQ)(i.toggle,t.Hc),i.tooltip.setAttribute("aria-hidden","false"))}closeTooltip(i){void 0!==i&&((0,e.vy)(i.toggle,t.Hc),i.tooltip.setAttribute("aria-hidden","true"))}},eo=c()(Zr.prototype,"image",[Qr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),to=c()(Zr.prototype,"pins",[Gr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),io=c()(Zr.prototype,"toggles",[Wr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Zr.prototype,"handleResize",[Xr],Object.getOwnPropertyDescriptor(Zr.prototype,"handleResize"),Zr.prototype),c()(Zr.prototype,"handleToggleHover",[Jr],Object.getOwnPropertyDescriptor(Zr.prototype,"handleToggleHover"),Zr.prototype),c()(Zr.prototype,"handleToggleUnHover",[Yr],Object.getOwnPropertyDescriptor(Zr.prototype,"handleToggleUnHover"),Zr.prototype),Zr);var ao,no;customElements.define("vic-m-points-of-interest",so);let ro=(ao=(0,S.rF)("this","click"),no=class extends S.uA{scrollToTop(){window.scrollTo({top:0,left:0,behavior:"smooth"})}},c()(no.prototype,"scrollToTop",[ao],Object.getOwnPropertyDescriptor(no.prototype,"scrollToTop"),no.prototype),no);var oo,lo,co,ho,uo,po;customElements.define("vic-e-back-to-top",ro);let go=(oo=(0,S.hq)(".vic-m-filterable-table__search-input"),lo=(0,S.hq)("table"),co=(0,S.rF)("searchInput",P.aA),ho=class extends Ii{constructor(...e){super(...e),T()(this,"searchInput",uo,this),T()(this,"table",po,this)}get includeHeader(){return this.hasAttribute("include-header")&&"false"!==this.getAttribute("include-header")}
299get filterColIdx(){if(!1!==this.hasAttribute("filter-col-idx"))return parseInt(this.getAttribute("filter-col-idx")||"0",10)}get tableData(){const i=(0,e.JW)(this.table,"tr");return!1===this.includeHeader&&((0,e.iQ)(i[0],t.XJ,t.Hc),i.shift()),i.map((e,t)=>({idx:this.includeHeader?t:t+1,element:e,cols:this.getCellsContent(e)}))}getCellsContent(t){const i=(0,e.JW)(t,"td, th"),s=[];return i.forEach(e=>{const t=parseInt(e.getAttribute("colspan")||"1",10);s.push(...Array(t).fill(e.innerText))}),s}handleSearchInputChange(){this.filterTable({colIdx:this.filterColIdx,queryString:this.searchInput.currentValue})}filterTable(i){const{colIdx:s,queryString:a}=i,n=this.tableData;n.forEach(i=>(0,e.vy)(i.element,t.Hc)),(0,e.p1)(this,t.Iy,""!==a),""!==a&&n.filter(e=>void 0!==s?(e.cols[s]||"").toLowerCase().includes(a.toLowerCase()):e.cols.some(e=>e.toLowerCase().includes(a.toLowerCase()))).forEach((i,s)=>{(0,e.iQ)(i.element,t.Hc),(0,e.p1)(i.element,t.XJ,s%2!=0)})}},uo=c()(ho.prototype,"searchInput",[oo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),po=c()(ho.prototype,"table",[lo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(ho.prototype,"handleSearchInputChange",[co],Object.getOwnPropertyDescriptor(ho.prototype,"handleSearchInputChange"),ho.prototype),ho);var bo,mo,fo,vo,yo,wo;customElements.define("vic-m-filterable-table",go);let So=(bo=(0,S.hq)(".vic-m-external-search-box__form"),mo=(0,S.K3)(".vic-m-external-search-box__input"),fo=(0,S.rF)("form","submit"),vo=class extends S.uA{constructor(...e){super(...e),T()(this,"form",yo,this),T()(this,"inputs",wo,this)}get searchResultPageUrl(){return this.getAttribute("search-result-page")||""}get searchUrl(){if(""===this.searchResultPageUrl)return"";const e=new URLSearchParams;return this.inputs.forEach(t=>{const{name:i,submitValue:s}=t;void 0!==s&&e.append(i,s)}),`${this.searchResultPageUrl}${-1===this.searchResultPageUrl.indexOf("?")?"?":"&"}${e.toString()}`}async handleSubmit(e){e.preventDefault(),!1!==await this.validateInputs()&&this.submitSearch()}submitSearch(){const e=this.searchUrl;""!==this.searchUrl?window.open(e,"_blank"):u.bD.error("VICExternalSearchBox","No search result page url set")}async validateInputs(){return(await Promise.all(this.inputs.map(async e=>(await e.validate(),await e.isValid())))).every(e=>!0===e)}},yo=c()(vo.prototype,"form",[bo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wo=c()(vo.prototype,"inputs",[mo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(vo.prototype,"handleSubmit",[fo],Object.getOwnPropertyDescriptor(vo.prototype,"handleSubmit"),vo.prototype),vo);customElements.define("vic-m-external-search-box",So);class Co extends S.uA{constructor(){super({asyncRendering:!0}),this._secondsLeft=void 0,this._serverTimeOffset=0,this.countInterval=void 0}get countUntil(){const e=parseInt(this.getAttribute("count-until")||"",10);return Number.isNaN(e)?null:e}get initialSecondsLeft(){if(null!==this.countUntil){const e=(new Date).getTime(),t=this.countUntil-e;return Math.floor(t/1e3)}return parseInt(this.getAttribute("count-for")||"0",10)}get secondsLeft(){return Math.max(0,void 0!==this._secondsLeft?this._secondsLeft:this.initialSecondsLeft)}set secondsLeft(e){this._secondsLeft=e}get serverTimeOffset(){return this._serverTimeOffset}set serverTimeOffset(e){this._serverTimeOffset=e}get renderArgs(){let e=this.secondsLeft;const t=Math.floor(e/86400);e-=86400*t;const i=Math.floor(e/3600);e-=3600*i;const s=Math.floor(e/60);return e-=60*s,{days:t,hours:i,minutes:s,seconds:e}}resyncCountdown(){if(null===this.countUntil)return;const e=(new Date).getTime()+this.serverTimeOffset,t=this.countUntil-e;this.secondsLeft=Math.floor(t/1e3)}async updateComponent(){void 0!==this.countInterval&&(this.secondsLeft%60==0&&this.resyncCountdown(),await this.renderAsync(),0===this.secondsLeft?clearInterval(this.countInterval):this.secondsLeft-=1)}async renderAsync(){const e=await this.loadTemplate();(0,m.XX)(await e(this.renderArgs),this)}async loadTemplate(){const{countdownTemplate:e}=await i.e(4655).then(i.bind(i,4655));return e}afterComponentRender(){this.countInterval=setInterval(()=>this.updateComponent(),1e3)}}var Ao,Eo,Io,ko,_o,Oo,xo,To,Fo,Po;customElements.define("vic-e-countdown",Co);let Do=(Ao=(0,S.hq)(".vic-e-tooltip__icon"),Eo=(0,S.hq)(".vic-e-tooltip__tooltip"),Io=(0,S.rF)("icon","mouseenter focusin"),ko=(0,S.rF)("icon","mouseleave focusout"),_o=(0,S.rF)("icon","click"),Oo=(0,S.rF)("window","keyup"),xo=(0,S.rF)("window","touchend"),To=class extends S.uA{constructor(...e){super(...e),T()(this,"icon",Fo,this),T()(this,"tooltip",Po,this)}handleToggleHover(){this.openTooltip()}handleToggleUnHover(){this.closeTooltip()}handleToggleClick(){this.openTooltip()}handleKeyUp(e){"Escape"===e.key&&this.closeTooltip()}handleOutsideTouch(e){e.target!==this.icon?this.closeTooltip():this.openTooltip()}openTooltip(){this.tooltip.style.display="block",this.updateTooltipPosition(),this.tooltip.setAttribute("aria-hidden","false"),this.tooltip.style.removeProperty("display")}closeTooltip(){this.tooltip.setAttribute("aria-hidden","true"),this.tooltip.style.setProperty("--vic-tooltip-offset","-50%")}updateTooltipPosition(){const t=this.tooltip.getBoundingClientRect(),i=this.icon.getBoundingClientRect();this.fitLeft(i,t),this.fitRight(i,t);const s=i.top,a=t.height+16<s;(0,e.p1)(this.tooltip,"vic-e-tooltip__tooltip--bottom",!a)}fitLeft(e,t){const i=e.left;if(!1==t.width/2-8<i){const t=e.left;this.tooltip.style.setProperty("--vic-tooltip-offset",-1*t+"px")}}fitRight(e,t){const i=window.innerWidth-(e.left+e.width);if(!1==t.width/2<i){const i=window.innerWidth-e.left+e.width,s=t.width+32-(i-32);this.tooltip.style.setProperty("--vic-tooltip-offset",-1*s+"px")}}}
299,Fo=c()(To.prototype,"icon",[Ao],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Po=c()(To.prototype,"tooltip",[Eo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(To.prototype,"handleToggleHover",[Io],Object.getOwnPropertyDescriptor(To.prototype,"handleToggleHover"),To.prototype),c()(To.prototype,"handleToggleUnHover",[ko],Object.getOwnPropertyDescriptor(To.prototype,"handleToggleUnHover"),To.prototype),c()(To.prototype,"handleToggleClick",[_o],Object.getOwnPropertyDescriptor(To.prototype,"handleToggleClick"),To.prototype),c()(To.prototype,"handleKeyUp",[Oo],Object.getOwnPropertyDescriptor(To.prototype,"handleKeyUp"),To.prototype),c()(To.prototype,"handleOutsideTouch",[xo],Object.getOwnPropertyDescriptor(To.prototype,"handleOutsideTouch"),To.prototype),To);var Mo,Ro,Bo,Lo,Vo,No;customElements.define("vic-e-tooltip",Do),customElements.define("vic-e-icon-select",class extends le{constructor(...e){super(...e),this.skipValidation=!1,this._iconSelectGroup=void 0}get DEFAULT_FIELD_TYPE(){return"checkbox"}get iconId(){return this.getAttribute("icon-id")||void 0}get iconSelectGroup(){return void 0===this._iconSelectGroup&&(this._iconSelectGroup=this.closest("vic-m-icon-multi-select"),(0,e.MR)(this._iconSelectGroup,P.yj,this.handleGroupChange,this)),this._iconSelectGroup}get renderArgs(){return{id:this.id,name:this.name,label:this.label,iconSelectGroup:this.iconSelectGroup,isRequired:this.isRequired,isDisabled:this.isDisabled,isReadonly:this.isReadonly,showError:this.state.showError,errorMessage:this.errorMessage,iconId:this.iconId,isChecked:this.isChecked,description:this.description,checkedCb:()=>this.handleCheckedChange()}}async renderAsync(){try{const{iconSelectTemplate:e}=await i.e(68803).then(i.bind(i,68803));(0,m.XX)(e(this.renderArgs),this.getUiRoot())}catch(e){u.bD.error("VICIconSelect:",e)}}handleGroupChange(){this.renderAsync()}async handleFocusOut(){await super.handleFocusOut();const i=this.submitValue||"",s=await this.isValid();""===i&&s||this.skipValidation||(await this.validate(),(0,e.p1)(this,t.qO,s),await this.renderAsync())}});let zo=(Mo=(0,S.hq)(".vic-m-installer-search-box__input"),Ro=(0,S.hq)(".vic-m-installer-search-box__search-btn"),Bo=(0,S.rF)("searchBtn","click"),Lo=class extends S.uA{constructor(...e){super(...e),T()(this,"searchInput",Vo,this),T()(this,"searchBtn",No,this)}handleSearchBtnClick(){this.searchInput.submitSearch()}},Vo=c()(Lo.prototype,"searchInput",[Mo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),No=c()(Lo.prototype,"searchBtn",[Ro],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Lo.prototype,"handleSearchBtnClick",[Bo],Object.getOwnPropertyDescriptor(Lo.prototype,"handleSearchBtnClick"),Lo.prototype),Lo);var qo,Uo,$o,jo,Ho,Ko,Qo;customElements.define("vic-m-installer-search-box",zo);let Go=(qo=(0,S._w)({defaultValue:"",reactions:["renderSubsidies"]}),Uo=(0,S._w)({defaultValue:"",reactions:["renderSubsidies"]}),$o=(0,S._w)({defaultValue:"",reactions:["renderSubsidies"]}),jo=class extends S.uA{constructor(...e){super(...e),T()(this,"endpointUrl",Ho,this),T()(this,"subsidiesTarget",Ko,this),T()(this,"zip",Qo,this)}afterComponentRender(){this.renderSubsidies()}get detailsEndpointUrl(){return`${this.endpointUrl}${this.endpointUrl.endsWith("/")?"":"/"}details/`}async renderSubsidies(){if(""===this.endpointUrl||""===this.subsidiesTarget||""===this.zip)return;await this.renderSubsidiesPlaceholders();const{default:e}=await i.e(26246).then(i.bind(i,26246)),t=await e.getSubsidies({endpointUrl:this.endpointUrl,subsidiesTarget:this.subsidiesTarget,zip:this.zip});if(null===t){const e=await this.loadSubsidiesErrorTemplate();return void(0,m.XX)(await e(),this.getUiRoot())}const s=await this.loadSubsidiesTemplate();(0,m.XX)(await s({component:this,subsidiesTarget:this.subsidiesTarget,zip:this.zip,subsidies:t,resultCount:t.length}),this.getUiRoot()),this.dispatchEvent(new CustomEvent(P.d4,{bubbles:!1}))}async renderSubsidyDetails(e){if(""===this.subsidiesTarget||""===this.zip)return;this.dispatchEvent(new CustomEvent(P.KR,{bubbles:!1}));
299const t=await this.loadSubsidyDetailsTemplate();(0,m.XX)(await t({component:this,subsidy:e,withPlaceholders:!0}),this.getUiRoot());const{default:s}=await i.e(26246).then(i.bind(i,26246)),a=await s.getSubsidyDetails({endpointUrl:this.detailsEndpointUrl,subsidiesTarget:this.subsidiesTarget,zip:this.zip,id:e.id});if(null===a){const e=await this.loadSubsidyDetailsErrorTemplate();return void(0,m.XX)(await e({component:this}),this.getUiRoot())}(0,m.XX)(await t({component:this,subsidy:a,withPlaceholders:!1}),this.getUiRoot())}async renderSubsidiesPlaceholders(){const e=await this.loadSubsidiesPlaceholderTemplate();(0,m.XX)(e(12),this.getUiRoot())}async loadSubsidiesTemplate(){const{fundingSubsidiesTemplate:e}=await i.e(52319).then(i.bind(i,52319));return e}async loadSubsidiesErrorTemplate(){const{fundingSubsidiesErrorTemplate:e}=await i.e(52319).then(i.bind(i,52319));return e}async loadSubsidiesPlaceholderTemplate(){const{fundingSubsidiesPlaceholderTemplate:e}=await i.e(52319).then(i.bind(i,52319));return e}async loadSubsidyDetailsTemplate(){const{fundingSubsidyDetailsTemplate:e}=await i.e(52319).then(i.bind(i,52319));return e}async loadSubsidyDetailsErrorTemplate(){const{fundingSubsidyDetailsErrorTemplate:e}=await i.e(52319).then(i.bind(i,52319));return e}handleSubsidyClick(e,t){e.preventDefault(),void 0!==t.id&&this.renderSubsidyDetails(t)}},Ho=c()(jo.prototype,"endpointUrl",[qo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ko=c()(jo.prototype,"subsidiesTarget",[Uo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qo=c()(jo.prototype,"zip",[$o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jo);var Wo,Xo,Jo,Yo,Zo,el,tl;customElements.define("vic-m-funding-search",Go);let il=(Wo=(0,S._w)({defaultValue:"",reactions:["renderOverlay"]}),Xo=(0,S._w)({defaultValue:"",reactions:["renderOverlay"]}),Jo=(0,S._w)({defaultValue:"",reactions:["renderOverlay"]}),Yo=class extends S.uA{constructor(...e){super(...e),this.lastScrollTop=0,this.overlayRendered=void 0,T()(this,"endpointUrl",Zo,this),T()(this,"subsidiesTarget",el,this),T()(this,"zip",tl,this)}afterComponentRender(){this.overlayRendered=this.renderOverlay()}async renderOverlay(){const e=await this.loadTemplate();return(0,m.XX)(e({component:this}),this.getUiRoot()),!0}async loadTemplate(){const{fundingSearchOverlayTemplate:e}=await i.e(78513).then(i.bind(i,78513));return e}async open(){await this.overlayRendered,(0,e.iQ)(this,t.vP),vn.A.trapFocusIn(this),qs.A.lockPage()}async close(){(0,e.vy)(this,t.vP),await(0,e.fm)(300),vn.A.unTrapFocusIn(this),qs.A.unlockPage(),this.remove()}handleOverviewActive(){this.scrollTop=this.lastScrollTop}handleDetailsActive(){this.lastScrollTop=this.scrollTop,this.scrollTop=0}},Zo=c()(Yo.prototype,"endpointUrl",[Wo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),el=c()(Yo.prototype,"subsidiesTarget",[Xo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tl=c()(Yo.prototype,"zip",[Jo],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yo);var sl,al,nl,rl,ol,ll,cl,hl;customElements.define("vic-m-funding-search-overlay",il);let dl=(sl=(0,S._w)({required:!0,defaultValue:""}),al=(0,S.hq)(".vic-m-funding-search-box__form"),nl=(0,S.K3)(".vic-m-funding-search-box__input"),rl=(0,S.rF)("form","submit"),ol=class extends S.uA{constructor(...e){super(...e),T()(this,"endpointUrl",ll,this),T()(this,"form",cl,this),T()(this,"inputs",hl,this)}get subsidiesTarget(){return this.inputs.find(e=>"subsidiesTarget"===e.name)?.submitValue||""}get zip(){return this.inputs.find(e=>"zip"===e.name)?.submitValue||""}async handleSubmit(e){e.preventDefault(),!1!==await this.validateInputs()&&this.openOverlay()}async validateInputs(){return(await Promise.all(this.inputs.map(async e=>(await e.validate(),await e.isValid())))).every(e=>!0===e)}async openOverlay(){const t=document.createElement("vic-m-funding-search-overlay");(0,e.iQ)(t,"vic-m-funding-search-overlay"),t.setAttribute("endpoint-url",this.endpointUrl),t.setAttribute("subsidies-target",this.subsidiesTarget),t.setAttribute("zip",this.zip),document.body.appendChild(t),await(0,e.db)(t),t.open()}},ll=c()(ol.prototype,"endpointUrl",[sl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cl=c()(ol.prototype,"form",[al],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hl=c()(ol.prototype,"inputs",[nl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(ol.prototype,"handleSubmit",[rl],Object.getOwnPropertyDescriptor(ol.prototype,"handleSubmit"),ol.prototype),ol);customElements.define("vic-m-funding-search-box",dl);const ul=(e,t)=>
299{const i=e.attributes;for(let e=0;e<i.length;e++)if(i[e].name.startsWith(t))return!0;return!1};var pl,gl,bl,ml,fl,vl,yl,wl,Sl;let Cl=(pl=(0,S.hq)(".vic-m-questionnaire-step__headline"),gl=(0,S.hq)(".vic-m-questionnaire-step__form-field"),bl=(0,S.hq)(".vic-m-questionnaire-step__submit-btn"),ml=(0,S.rF)("formField",P.aA),fl=(0,S.rF)("submitBtn","click"),vl=class extends S.uA{constructor(...e){super(...e),this.conditionChecker=void 0,this._isAvailable=!1,this._stepValid=!1,T()(this,"headlineElement",yl,this),T()(this,"formField",wl,this),T()(this,"submitBtn",Sl,this)}afterComponentRender(){this.conditionChecker=new Fa({element:this,attributePrefix:"enabled-when-",onChange:()=>this.handleAvailabilityChange()}),this.initialFormFieldCheck()}get headline(){return this.headlineElement?.innerText.trim()||""}async initialFormFieldCheck(){await(0,e.db)(this.formField),await this.handleFormFieldChanged()}get overviewLabel(){return this.getAttribute("overview-label")}get isAvailable(){return!1===this.optionalAvailabilityActive||this._isAvailable}set isAvailable(e){this._isAvailable!==e&&(this._isAvailable=e,this.dispatchEvent(new CustomEvent(P.X1,{bubbles:!1})))}get optionalAvailabilityActive(){return ul(this,"enabled-when-")}get stepValid(){return this._stepValid}set stepValid(i){this._stepValid!==i&&(this._stepValid=i,(0,e.p1)(this,t.dO,i),this.dispatchEvent(new CustomEvent(P.yj,{bubbles:!1})),!0===this.isDirectSubmitStep&&!0===this.isActiveStep&&this.submitStep())}get isActiveStep(){return(0,e.nB)(this,t.Hc)}get isDirectSubmitStep(){return this.hasAttribute("direct-submit")&&"false"!==this.getAttribute("direct-submit")}get submitData(){return this.formField.submitData}get overviewValue(){const e=this.overviewLabel,t=this.formField.submitString;return null===e||void 0===t?null:`${e}: ${t}`}get trackingData(){return new qa(this.headline,[this.formField])}async handleFormFieldChanged(){this.stepValid=await this.formField.isValid(),this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1}))}handleSubmitBtnClick(){this.submitStep()}handleAvailabilityChange(){this.isAvailable=this.conditionChecker.conditionsValid}submitStep(){!1!==this.stepValid&&this.dispatchEvent(new CustomEvent(P.GR,{detail:this,bubbles:!1}))}async reset(){await this.formField.reset(),this.stepValid=await this.formField.isValid()}},yl=c()(vl.prototype,"headlineElement",[pl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wl=c()(vl.prototype,"formField",[gl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sl=c()(vl.prototype,"submitBtn",[bl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(vl.prototype,"handleFormFieldChanged",[ml],Object.getOwnPropertyDescriptor(vl.prototype,"handleFormFieldChanged"),vl.prototype),c()(vl.prototype,"handleSubmitBtnClick",[fl],Object.getOwnPropertyDescriptor(vl.prototype,"handleSubmitBtnClick"),vl.prototype),vl);customElements.define("vic-m-questionnaire-step",Cl);class Al extends S.uA{constructor(){super({asyncRendering:!0}),this._stepsFinished=0,this._nextBlocked=!1,this._prevBlocked=!1}static get observedAttributes(){return["available-steps"]}attributeChangedCallback(e,t,i){t!==i&&this.renderAsync()}get availableSteps(){return parseInt(this.getAttribute("available-steps")||"0",10)}set availableSteps(e){this.availableSteps!==e&&(this.setAttribute("available-steps",e.toString()),this.renderAsync(),this.dispatchChangeEvent())}get stepsFinished(){return this._stepsFinished}set stepsFinished(e){this._stepsFinished!==e&&(this._stepsFinished=e,this.renderAsync(),this.dispatchChangeEvent(),this.dispatchStepChangeEvent())}get restartDisabled(){return this.hasAttribute("restart-disabled")&&"false"!==this.getAttribute("restart-disabled")}get lastStepActive(){return this.stepsFinished>0&&this.stepsFinished===this.availableSteps}get nextBlocked(){return this._nextBlocked}set nextBlocked(e){this._nextBlocked!==e&&(this._nextBlocked=e,this.renderAsync())}get prevBlocked(){return this._prevBlocked}set prevBlocked(e){this._prevBlocked!==e&&(this._prevBlocked=e,this.renderAsync())}async renderAsync(){const i=await this.loadTemplate();(0,e.p1)(this,t.BL,this.lastStepActive),(0,m.XX)(await i({component:this}),this.getUiRoot())}async loadTemplate(){const{questionnaireNavigationTemplate:e}=await i.e(41751).then(i.bind(i,41751));return e}handlePrevClick(){this.stepsFinished<0||this.stepsFinished--}handleNextClick(){this.stepsFinished>=this.availableSteps||(this.dispatchNextStepEvent(),this.stepsFinished++)}handleStartOverClick(){this.dispatchResetEvent()}dispatchStepChangeEvent(){this.dispatchEvent(new CustomEvent(P.wO,{bubbles:!1}))}dispatchNextStepEvent(){this.dispatchEvent(new CustomEvent(P.Re,{bubbles:!1}))}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1}))}dispatchResetEvent(){this.dispatchEvent(new CustomEvent(P.pg,{bubbles:!1}))}}customElements.define("vic-m-questionnaire-navigation",Al);class El{constructor(e,t){this._inViewport=!1,this.oberserver=void 0,this.oberserver=new IntersectionObserver(this.handleIntersection.bind(this),t),this.oberserver.observe(e)}set inViewport(e){this._inViewport!==e&&(this._inViewport=e)}get inViewport(){return this._inViewport}
299handleIntersection(e){e.forEach(e=>{this.inViewport=e.isIntersecting})}}var Il,kl,_l,Ol,xl,Tl,Fl,Pl,Dl,Ml,Rl,Bl,Ll,Vl,Nl;let zl=(Il=(0,S.K3)(".vic-m-questionnaire__step"),kl=(0,S.hq)(".vic-m-questionnaire-navigation"),_l=(0,S.hq)(".vic-m-questionnaire__summary"),Ol=(0,S.rF)("steps",P.yj),xl=(0,S.rF)("navigation",P.wO),Tl=(0,S.rF)("navigation",P.QR),Fl=(0,S.rF)("steps",P.X1),Pl=(0,S.rF)("navigation",P.pg),Dl=(0,S.rF)("steps",P.GR),Ml=(0,S.rF)("steps",P.QR),Rl=(0,S.rF)("navigation",P.Re),Bl=class extends S.uA{constructor(...e){super(...e),this.inViewportService=new El(this),T()(this,"steps",Ll,this),T()(this,"navigation",Vl,this),T()(this,"summary",Nl,this)}get mobileScrollUpActive(){return this.hasAttribute("mobile-scroll-up-active")&&"false"!==this.getAttribute("mobile-scroll-up-active")}get desktopScrollUpActive(){return this.hasAttribute("desktop-scroll-up-active")&&"false"!==this.getAttribute("desktop-scroll-up-active")}get availableSteps(){return this.steps.filter(e=>!0===e.isAvailable)}get activeStep(){return this.availableSteps[this.navigation.stepsFinished]||null}get questionSubmitData(){return this.availableSteps.map(e=>e.submitData).filter(e=>null!==e)}get overviewValues(){return this.availableSteps.map(e=>e.overviewValue).filter(e=>null!==e)}afterComponentRender(){this.init()}
299async init(){await(0,e.db)(this.navigation),this.navigation.availableSteps=this.availableSteps.length,this.updateActiveStep(),(0,e.iQ)(this,t.tg)}updateNavigationNext(){if(null===this.activeStep)return this.navigation.nextBlocked=!0,void(this.navigation.prevBlocked=!0);this.navigation.nextBlocked=!1===this.activeStep.stepValid,this.navigation.prevBlocked=0===this.navigation.stepsFinished,this.navigation.nextBlocked=!1===this.activeStep.stepValid}handleStepChange(){this.optionalScrollUp()}handleNavigationStepChanged(){this.updateActiveStep(),this.updateNavigationNext()}async handleNavigationReset(){await this.reset()}handleStepSubmit(){this.navigation.handleNextClick()}handleStepDataChange(){this.dispatchEvent(new CustomEvent(P.QR))}handleNextStepInteraction(){const e=this.activeStep?.trackingData.trackingEventData??null;null!==e&&g.A.push(e)}updateActiveStep(){(0,e.vy)(this.steps,t.Hc),(0,e.vy)(this.summary,t.Hc),this.navigation.availableSteps=this.availableSteps.length,null===this.activeStep?((0,e.iQ)(this.summary,t.Hc),this.summary.updateSubmitData(this.questionSubmitData)):(0,e.iQ)(this.activeStep,t.Hc)}async reset(){await Promise.all(this.steps.map(e=>e.reset())),await this.summary.reset(),this.navigation.availableSteps=this.availableSteps.length,this.navigation.stepsFinished=0,this.navigation.prevBlocked=!1,Te.A.scrollToElement(this,{preventHeaderShrink:!0})}async optionalScrollUp(){const t=(0,e.g8)(F.A)<="MQ2";t&&this.mobileScrollUpActive||!t&&this.desktopScrollUpActive?await Te.A.scrollToElement(this,{preventHeaderShrink:!0}):(await(0,e.fm)(300),!0!=(!1===this.inViewportService.inViewport)||await Te.A.scrollToElement(this,{preventHeaderShrink:!0}))}},Ll=c()(Bl.prototype,"steps",[Il],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vl=c()(Bl.prototype,"navigation",[kl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=c()(Bl.prototype,"summary",[_l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Bl.prototype,"updateNavigationNext",[Ol],Object.getOwnPropertyDescriptor(Bl.prototype,"updateNavigationNext"),Bl.prototype),c()(Bl.prototype,"handleStepCh
299ange",[xl],Object.getOwnPropertyDescriptor(Bl.prototype,"handleStepChange"),Bl.prototype),c()(Bl.prototype,"handleNavigationStepChanged",[Tl,Fl],Object.getOwnPropertyDescriptor(Bl.prototype,"handleNavigationStepChanged"),Bl.prototype),c()(Bl.prototype,"handleNavigationReset",[Pl],Object.getOwnPropertyDescriptor(Bl.prototype,"handleNavigationReset"),Bl.prototype),c()(Bl.prototype,"handleStepSubmit",[Dl],Object.getOwnPropertyDescriptor(Bl.prototype,"handleStepSubmit"),Bl.prototype),c()(Bl.prototype,"handleStepDataChange",[Ml],Object.getOwnPropertyDescriptor(Bl.prototype,"handleStepDataChange"),Bl.prototype),c()(Bl.prototype,"handleNextStepInteraction",[Rl],Object.getOwnPropertyDescriptor(Bl.prototype,"handleNextStepInteraction"),Bl.prototype),Bl);var ql,Ul,$l;customElements.define("vic-m-questionnaire",zl);let jl=(ql=(0,S.hq)(".vic-m-form"),Ul=class extends S.uA{constructor(...e){super(...e),T()(this,"form",$l,this)}updateSubmitData(e){this.form.externalSubmitData=e}async reset(){await this.form.reset()}},$l=c()(Ul.prototype,"form",[ql],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ul);customElements.define("vic-m-questionnaire-summary",jl);class Hl extends S.uA{constructor(...e){super(...e),this.questionnaire=void 0}afterComponentRender(){this.init()}get headline(){return this.getAttribute("headline")||""}async init(){const t=(0,e.PA)(this,".vic-m-questionnaire")||(0,e.PA)(this,".vic-m-questionnaire-v2");null!==t?(await(0,e.db)(t),this.questionnaire=t,(0,e.MR)(t,P.QR,this.updateComponent,this),this.updateComponent()):this.destroyComponent()}async updateComponent(){if(void 0===this.questionnaire)return;await(0,e.db)(this.questionnaire);const t=await this.loadTemplate(),i=this.questionnaire.overviewValues;(0,m.XX)(t({headline:this.headline,tags:i}),this)}async loadTemplate(){const{questionnaireAnswerOverviewTemplate:e}=await i.e(33967).then(i.bind(i,33967));return e}destroyComponent(){this.remove()}}var Kl,Ql,Gl,Wl,Xl,Jl,Yl,Zl,ec,tc,ic,sc;customElements.define("vic-m-questionnaire-answer-overview",Hl);let ac=(Kl=(0,S._w)({type:"string"}),Ql=(0,S._w)({type:"string"}),Gl=(0,S.hq)(".vic-m-subsidiary-search-box__form"),Wl=(0,S.hq)(".vic-m-subsidiary-search-box__input"),Xl=(0,S.hq)(".vic-m-subsidiary-search-box__submit-btn"),Jl=(0,S.rF)("form","submit"),Yl=class extends S.uA{constructor(...e){super(...e),T()(this,"redirectUrlEndpoint",Zl,this),T()(this,"redirectUrlTemplate",ec,this),T()(this,"form",tc,this),T()(this,"zipInput",ic,this),T()(this,"submitBtn",sc,this)}get zip(){return this.zipInput.submitValue||""}async handleSubmit(e){e.preventDefault(),!1!==await this.validateInput()&&this.redirectToSalesOffice()}async redirectToSalesOffice(){(0,e.iQ)(this.submitBtn,t.F5);const{default:s}=await i.e(28888).then(i.bind(i,28888)),a=await s.getRedirectUrl({zip:this.zip,redirectUrlEndpoint:this.redirectUrlEndpoint,redirectUrlTemplate:this.redirectUrlTemplate});if(null===a)return this.showErrorMessage(),void(0,e.vy)(this.submitBtn,t.F5);window.location.href=a.redirectUrl}async validateInput(){return await this.zipInput.validate(),this.zipInput.isValid()}async showErrorMessage(){const e=await Ne.A.getValue("viessmann.corporate.searchTeaser.subsidiary.error.message");this.zipInput.externalErrorMessage=e,this.zipInput.setState({showError:!0},{silent:!0}),await this.zipInput.silentReRender(),this.zipInput.externalErrorMessage=void 0}},Zl=c()(Yl.prototype,"redirectUrlEndpoint",[Kl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ec=c()(Yl.prototype,"redirectUrlTemplate",[Ql],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tc=c()(Yl.prototype,"form",[Gl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ic=c()(Yl.prototype,"zipInput",[Wl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sc=c()(Yl.prototype,"submitBtn",[Xl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Yl.prototype,"handleSubmit",[Jl],Object.getOwnPropertyDescriptor(Yl.prototype,"handleSubmit"),Yl.prototype),Yl);var nc,rc,oc,lc,cc,hc,dc,uc,pc,gc,bc,mc,fc,vc,yc,wc;customElements.define("vic-m-subsidiary-search-box",ac);let Sc=(nc=(0,S._w)({required:!0,defaultValue:"%value% %unit% %name%"}),rc=(0,S._w)({required:!0,defaultValue:"%value% %unit% %name%"}),oc=(0,S.K3)(".vic-m-fuel-calculation-box__input"),lc=(0,S.K3)(".vic-m-fuel-calculation-box__select"),cc=(0,S.hq)(".vic-m-fuel-calculation-box__result-from-message"),hc=(0,S.hq)(".vic-m-fuel-calculation-box__result-to-message"),dc=(0,S.rF)("selectBoxes",P.aA),uc=(0,S.rF)("inputs",P.aA),pc=(0,S.rF)("inputs","focusout"),gc=class extends S.uA{constructor(...e){super(...e),T()(this,"fromMessageTemplate",bc,this),T()(this,"toMessageTemplate",mc,this),T()(this,"input
299s",fc,this),T()(this,"selectBoxes",vc,this),T()(this,"fromMessageBox",yc,this),T()(this,"toMessageBox",wc,this)}get fromSelect(){return this.selectBoxes.find(e=>"fuelCalcFromSelect"===e.name)}get toSelect(){return this.selectBoxes.find(e=>"fuelCalcToSelect"===e.name)}get fromInput(){return this.inputs.find(e=>"fuelCalcFromInput"===e.name)}get toInput(){return this.inputs.find(e=>"fuelCalcToInput"===e.name)}get fromInputValue(){return parseFloat(this.fromInput?.submitValue||"0")}get toInputValue(){return parseFloat(this.toInput?.submitValue||"0")}get fromKWH(){return this.fromInputValue*this.fromSelectData.multiplier}get toKWH(){return this.toInputValue*this.toSelectData.multiplier}get fromSelectData(){const e=this.fromSelect?.selectedOptionData?.dataset.multiplier||"1",t=this.fromSelect?.selectedOptionData?.dataset.unit||"",i=this.fromSelect?.selectedOptionData?.dataset.name||"";return{multiplier:parseFloat(e),unit:t,name:i}}get toSelectData(){const e=this.toSelect?.selectedOptionData?.dataset.multiplier||"1",t=this.toSelect?.selectedOptionData?.dataset.unit||"",i=this.toSelect?.selectedOptionData?.dataset.name||"";return{multiplier:parseFloat(e),unit:t,name:i}}afterComponentRender(){this.init()}
299async init(){await this.initSelectBoxes(),this.updateToValue()}async initSelectBoxes(){await Promise.all(this.selectBoxes.map(e.db)),this.toSelect?.disableOption(this.fromSelect?.submitValue||""),this.fromSelect?.disableOption(this.toSelect?.submitValue||"")}handleSelectionChange(e){const t=e.target;"fuelCalcFromSelect"===t.name?this.handleFromSelectChange():"fuelCalcToSelect"===t.name&&this.handleToSelectChange()}handleInputChange(e){const t=e.target;"fuelCalcFromInput"===t.name?this.updateToValue():"fuelCalcToInput"===t.name&&this.updateFromValue()}handleInputFocusOut(e){const t=e.target;""===t.value&&(t.value="0")}handleToSelectChange(){this.fromSelect?.enableAllOptions(),this.fromSelect?.disableOption(this.toSelect?.submitValue||""),this.updateToValue()}handleFromSelectChange(){this.toSelect?.enableAllOptions(),this.toSelect?.disableOption(this.fromSelect?.submitValue||""),this.updateFromValue()}updateFromValue(){const e=this.getRoundedValue(this.toKWH/this.fromSelectData.multiplier);this.fromInput?.updateValue(e.toString()),this.updateResultMessages()}updateToValue(){const e=this.getRoundedValue(this.fromKWH/this.toSelectData.multiplier);this.toInput?.updateValue(e.toString()),this.updateResultMessages()}getRoundedValue(e){return Number(e.toFixed(2))}updateResultMessages(){this.updatedFromMessage(),this.updatedToMessage()}updatedFromMessage(){const e=this.getRoundedValue(this.toKWH/this.fromSelectData.multiplier);this.fromMessageBox.innerHTML=(0,Ve.F)(this.fromMessageTemplate,{value:e.toLocaleString(),unit:this.fromSelectData.unit,name:this.fromSelectData.name})}updatedToMessage(){const e=this.getRoundedValue(this.fromKWH/this.toSelectData.multiplier);this.toMessageBox.innerHTML=(0,Ve.F)(this.toMessageTemplate,{value:e.toLocaleString(),unit:this.toSelectData.unit,name:this.toSelectData.name})}},bc=c()(gc.prototype,"fromMessageTemplate",[nc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mc=c()(gc.prototype,"toMessageTemplate",[rc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fc=c()(gc.prototype,"inputs",[oc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vc=c()(gc.prototype,"selectBoxes",[lc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yc=c()(gc.prototype,"fromMessageBox",[cc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wc=c()(gc.prototype,"toMessageBox",[hc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(gc.prototype,"handleSelectionChange",[dc],Object.getOwnPropertyDescriptor(gc.prototype,"handleSelectionChange"),gc.prototype),c()(gc.prototype,"handleInputChange",[uc],Object.getOwnPropertyDescriptor(gc.prototype,"handleInputChange"),gc.prototype),c()(gc.prototype,"handleInputFocusOut",[pc],Object.getOwnPropertyDescriptor(gc.prototype,"handleInputFocusOut"),gc.prototype),gc);customElements.define("vic-m-fuel-calculation-box",Sc);class Cc{constructor(){this._loadScriptPromise=void 0,this._initPromise=void 0}get loadScriptPromise(){return void 0!==this._loadScriptPromise||(this._loadScriptPromise=this.loadScript()),this._loadScriptPromise}get initPromise(){return void 0!==this._initPromise||(this._initPromise=this.init()),this._initPromise}loadApi(){void 0===this._initPromise&&(this._initPromise=this.init())}
299async init(){if(void 0===window.embeddedservice_bootstrap)try{await this.loadScriptPromise,await this.initChatbot()}catch(e){u.bD.error("Failed to load chatbot script",e)}}async initChatbot(){if(void 0===window.embeddedservice_bootstrap)return;const e=await this.getChatbotConfig();window.embeddedservice_bootstrap.settings={...window.embeddedservice_bootstrap.settings,language:e.language},window.embeddedservice_bootstrap.init(e.orgId,e.eswConfigDevName,e.siteURL,{scrt2URL:e.scrt2URL}),await new Promise(e=>{window.addEventListener("onEmbeddedMessagingReady",()=>{e(!0)})})}async openChatbot(){await this.initPromise,void 0!==window.embeddedservice_bootstrap&&await window.embeddedservice_bootstrap.utilAPI.launchChat()}async loadScript(){const e=await this.getChatbotConfig();return new Promise(t=>{const i=document.createElement("script");i.setAttribute("src",e.embeddedScript),i.onload=()=>t(),document.body.appendChild(i)})}async getChatbotConfig(){const e=await p.A.getConfigItem("salesforceChatbotV2");if(void 0===e)throw new Error("Salesforce chatbot v2 config not found");return e}}Cc.CHATBOT_OPENED_OBSERVER_KEY="vic-salesforce-v2-chatbot-opened";const Ac=new Cc;var Ec,Ic;let kc=(Ec=(0,S.rF)("this","click"),Ic=class extends S.uA{constructor(...e){super(...e),this._loading=!1}get loading(){return this._loading}set loading(i){this._loading=i,(0,e.p1)(this,t.F5,i)}get consentCategory(){return"salesforceChatbot"}async hasConsent(){return await w.A.hasConsent(this.consentCategory)}async afterComponentRender(){await this.loadApi()}async loadApi(){if(await this.hasConsent())return Ac.loadApi(),void this.remove();await w.A.waitForInitialization(),this.handleConsentManagementInit()}async handleConsentManagementInit(){!1!==await this.hasConsent()&&(Ac.loadApi(),this.remove())}async handleClick(){if(!this.loading){if(!await this.hasConsent())return await Q.A.showConsentOverlay(this.consentCategory),void w.A.observeCategoryAccepted(this.consentCategory,async()=>{this.loading=!0,Ac.loadApi(),await Ac.openChatbot()});this.loading=!0,Ac.loadApi(),await Ac.openChatbot()}}},c()(Ic.prototype,"handleClick",[Ec],Object.getOwnPropertyDescriptor(Ic.prototype,"handleClick"),Ic.prototype),Ic);customElements.define("vic-e-chatbot-v2-toggle",kc);const _c=new class{copyText(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}};class Oc extends S.uA{constructor(){super({asyncRendering:!0})}async renderAsync(){await this.renderContent()}async renderContent(e=!1){const t=await this.loadTemplate();(0,m.XX)(await t({showSuccessMessage:e,component:this}),this.getUiRoot())}async handleButtonClick(){await this.copyUrlToClipboard()}async copyUrlToClipboard(){_c.copyText(window.location.href),await this.renderContent(!0),await(0,e.fm)(100),this.updateSuccessBoxPosition(),(0,e.iQ)(this,t.qO),await(0,e.fm)(2e3),(0,e.vy)(this,t.qO),await(0,e.fm)(300),await this.renderContent(!1)}updateSuccessBoxPosition(){const t=(0,e.I6)(this,".vic-e-copy-to-clipboard-button__success-box");if(null===t)return;const i=this.getBoundingClientRect(),s=t.getBoundingClientRect(),a=i.top>s.height+16;(0,e.p1)(t,"vic-e-copy-to-clipboard-button__success-box--bottom",!1===a),i.left+i.width>s.width||(window.innerWidth-i.left>s.width?(0,e.iQ)(t,"vic-e-copy-to-clipboard-button__success-box--right"):(this.style.setProperty("--vic-success-box-width",`${s.width}px`),(0,e.iQ)(t,"vic-e-copy-to-clipboard-button__success-box--center")))}async loadTemplate(){const{copyToClipboardButtonTemplate:e}=await i.e(7381).then(i.bind(i,7381));return e}}var xc,Tc,Fc,Pc,Dc,Mc,Rc;customElements.define("vic-e-copy-to-clipboard-button",Oc);let Bc=(xc=(0,S._w)({defaultValue:"",required:!0}),Tc=(0,S._w)({defaultValue:"",required:!0}),Fc=(0,S.rF)("this","click"),Pc=(0,S.rF)("this","keydown"),Dc=class extends S.uA{constructor(...e){super(...e),T()(this,"b2bLabel",Mc,this),T()(this,"b2cLabel",Rc,this)}afterComponentRender(){this.init()}
299async init(){await this.updateActiveOption(),o.A.observeGroupChange(()=>this.updateActiveOption()),(0,e.iQ)(this,t.S2)}async updateActiveOption(){this.innerText=await this.getActiveLabel()}async getActiveLabel(){return"b2b"===await o.A.getCurrentTargetGroup()?this.b2cLabel:this.b2bLabel}handleClick(){this.openToast()}handleKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.openToast())}async openToast(){const t=document.createElement("vic-m-target-group-toast");(0,e.iQ)(t,"vic-m-target-group-toast"),t.setAttribute("role","dialog"),document.body.appendChild(t),await(0,e.db)(t),t.open()}},Mc=c()(Dc.prototype,"b2bLabel",[xc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rc=c()(Dc.prototype,"b2cLabel",[Tc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Dc.prototype,"handleClick",[Fc],Object.getOwnPropertyDescriptor(Dc.prototype,"handleClick"),Dc.prototype),c()(Dc.prototype,"handleKeydown",[Pc],Object.getOwnPropertyDescriptor(Dc.prototype,"handleKeydown"),Dc.prototype),Dc);var Lc,Vc,Nc,zc,qc,Uc,$c,jc;customElements.define("vic-e-target-group-toggle",Bc),Lc=(0,S.Tc)("vic-m-partner-login-overlay"),Vc=(0,S.rF)("window","keyup"),Lc((Nc=class extends S.uA{constructor(){super({asyncRendering:!0}),this.contentMarkup=void 0,this.renderLoginOverlayTemplate=void 0}get contentUrl(){return this.getAttribute("content-url")||""}get hasError(){return""===this.contentMarkup}async loadTemplate(){const{renderLoginOverlayTemplate:e}=await i.e(18431).then(i.bind(i,18431));return e}isLoading(i){i?((0,e.iQ)(this,t.F5),this.dispatchLoadingEvent(!0)):((0,e.vy)(this,t.F5),this.dispatchLoadingEvent(!1))}dispatchLoadingEvent(e){this.dispatchEvent(new CustomEvent(P.tZ,{detail:{isLoading:e}}))}async renderAsync(){try{return this.isLoading(!0),this.contentMarkup=await this.fetchContent(),this.renderLoginOverlayTemplate=await this.loadTemplate(),(0,m.XX)(await this.renderLoginOverlayTemplate({component:this}),this.getUiRoot()),Promise.resolve()}catch(e){u.bD.error("PartnerLoginOverlay:",e)}}handleKeyUp(e){"Escape"===e.key&&this.close()}async open(){await this.renderAsync(),this.isLoading(!1),(0,e.iQ)(this,t.vP),vn.A.trapFocusIn(this),qs.A.lockPage()}async close(){(0,e.vy)(this,t.vP),await(0,e.fm)(300),vn.A.unTrapFocusIn(this),qs.A.unlockPage(),this.remove()}async fetchContent(){try{const e=await fetch(this.contentUrl);if(!e.ok)throw Error(e.statusText);const t=e.headers.get("content-type");if(null===t||!t.startsWith("text/html"))throw Error("wrong response type from service");return await e.text()}catch(e){return console.error(e),""}}},c()(Nc.prototype,"handleKeyUp",[Vc],Object.getOwnPropertyDescriptor(Nc.prototype,"handleKeyUp"),Nc.prototype),Nc)),zc=(0,S.Tc)("vic-m-partner-login-overlay-toggle"),qc=(0,S.hq)(".vic-m-partner-login-overlay-toggle__button"),Uc=(0,S.rF)("button","click"),zc(($c=class extends S.uA{constructor(...e){super(...e),this.partnerLoginOverlay=void 0,T()(this,"button",jc,this)}get contentUrl(){return this.getAttribute("content-url")||""}handleButtonClick(){this.appendPartnerLoginOverlay()}appendPartnerLoginOverlay(){this.partnerLoginOverlay=document.createElement("vic-m-partner-login-overlay"),(0,e.MR)(this.partnerLoginOverlay,S.cg,this.handleOverlayInit,this),(0,e.MR)(this.partnerLoginOverlay,P.tZ,this.handleOverlayLoading,this),this.partnerLoginOverlay.setAttribute("content-url",this.contentUrl),(0,e.iQ)(this.partnerLoginOverlay,"vic-m-partner-login-overlay"),document.body.appendChild(this.partnerLoginOverlay)}handleOverlayLoading(i){(0,e.p1)(this,t.F5,i.detail.isLoading)}handleOverlayInit(){this.partnerLoginOverlay.open()}},jc=c()($c.prototype,"button",[qc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()($c.prototype,"handleButtonClick",[Uc],Object.getOwnPropertyDescriptor($c.prototype,"handleButtonClick"),$c.prototype),$c));class Hc extends S.uA{constructor(...e){super(...e),this._styleSize="L",this.resizeObserver=new ResizeObserver(()=>{this.handleResize()})}get trustpilotWidget(){return(0,e.I6)(this,".vic-m-trustpilot-flex-widget__widget-container")}get styleSize(){return this._styleSize}set styleSize(e){this._styleSize!==e&&(this._styleSize=e,this.renderTrustpilotFlexWidget())}get headline(){return this.getAttribute("headline")||void 0}get locale(){return this.getAttribute("locale")||""}get businessUnitId(){return this.getAttribute("businessUnitId")||""}get supportText(){return this.getAttribute("supportText")||""}get href(){return this.getAttribute("href")||""}get label(){return this.getAttribute("label")||""}connectedCallback(){u.GR.subscribe(this,()=>super.connectedCallback())}afterComponentRender(){this.init()}
299async init(){await this.loadScript(),await this.renderTrustpilotFlexWidget(),this.trustpilotWidget&&this.resizeObserver.observe(this.trustpilotWidget)}async loadScript(){const e=document.getElementsByTagName("script");for(let t=e.length-1;t>=0;t--)if(e[t].src===Hc.SCRIPT_URL)return;return new Promise(e=>{const t=document.createElement("script");t.setAttribute("src",Hc.SCRIPT_URL),t.setAttribute("type","text/javascript"),t.setAttribute("async",""),t.onload=()=>e(),document.body.appendChild(t)})}async renderTrustpilotFlexWidget(){const{trustpilotFlexWidgetTemplate:e}=await i.e(10893).then(i.bind(i,10893));(0,m.XX)(e({headline:this.headline,styleSize:this.styleSize,locale:this.locale,businessUnitId:this.businessUnitId,supportText:this.supportText,href:this.href,label:this.label}),this),this.reloadTrustpilotWidget()}reloadTrustpilotWidget(){null!==this.trustpilotWidget&&window.Trustpilot?.loadFromElement(this.trustpilotWidget,!0)}handleResize(){requestAnimationFrame(()=>{this.trustpilotWidget&&(this.trustpilotWidget.offsetWidth<744?this.styleSize="S":this.styleSize="L")})}}Hc.SCRIPT_URL="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",customElements.define("vic-m-trustpilot-flex-widget",Hc);class Kc extends S.uA{afterComponentRender(){this.loadScript()}async loadScript(){return new Promise(e=>{const t=document.createElement("script");t.setAttribute("src",Kc.SCRIPT_URL),t.setAttribute("type","text/javascript"),t.setAttribute("async",""),t.onload=()=>e(),document.body.appendChild(t)})}}Kc.SCRIPT_URL="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",customElements.define("vic-m-trustpilot-widget",Kc);var Qc,Gc,Wc=i(25297);let Xc=(Qc=(0,S.rF)("window","scroll"),Gc=class extends Wc.v{handleScroll(){this.closeFlyout()}},c()(Gc.prototype,"handleScroll",[Qc],Object.getOwnPropertyDescriptor(Gc.prototype,"handleScroll"),Gc.prototype),Gc);var Jc,Yc,Zc,eh,th;customElements.define("vic-m-language-switch-flyout",Xc);let ih=(Jc=(0,S.hq)(".vic-m-testimonial-cards__wrapper"),Yc=(0,S.K3)(".vic-m-testimonial-card"),Zc=class extends $n{constructor(...e){super(...e),T()(this,"cardsWrapper",eh,this),T()(this,"cards",th,this)}get itemsPerPage(){return 10}get items(){return this.cards}get itemsContainer(){return this.cardsWrapper}},eh=c()(Zc.prototype,"cardsWrapper",[Jc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),th=c()(Zc.prototype,"cards",[Yc],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zc);var sh,ah,nh,rh,oh,lh,ch,hh,dh;customElements.define("vic-m-testimonial-cards",ih);let uh=(sh=(0,S.hq)(".vic-m-testimonial-card__quote"),ah=(0,S.hq)(".vic-m-testimonial-card__overlay"),nh=(0,S.rF)("this","mouseenter"),rh=(0,S.rF)("this","mouseleave"),oh=(0,S.rF)("this","click"),lh=(0,S.rF)("window",u.Rn),ch=class extends S.uA{constructor(...e){super(...e),this.mqService=u.Mp.getInstance(F.A),this._isActive=!1,this.isHovered=!1,T()(this,"quote",hh,this),T()(this,"overlay",dh,this)}get isActive(){return this._isActive}set isActive(i){i!==this._isActive&&(this._isActive=i,!0===i?this.updateContentOffset(0):this.setDefaultContentOffset(),(0,e.p1)(this,t.Hc,i))}afterComponentRender(){this.initQuoteOffset(),this.initResizeObserver(),(0,e.iQ)(this,t.tg)}initQuoteOffset(){this.setDefaultContentOffset()}initResizeObserver(){new ResizeObserver(()=>{this.handleOverlayResize()}).observe(this.overlay)}handleMouseEnter(){this.isHovered=!0,this.isActive=!0}handleMouseLeave(){this.isHovered=!1,this.isActive=!1}handleClick(){this.isHovered||(this.isActive=!this.isActive)}handleOverlayResize(){(0,e.vy)(this,t.tg),this.setDefaultContentOffset(),(0,e.iQ)(this,t.tg)}handleMQChange(){this.isActive=!1}setDefaultContentOffset(){const e=this.quote.offsetHeight+24;this.updateContentOffset(e)}updateContentOffset(e){this.overlay.style.setProperty("--vic-m-testimonial-card-quote-offset",`${e}px`)}},hh=c()(ch.prototype,"quote",[sh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dh=c()(ch.prototype,"overlay",[ah],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(ch.prototype,"handleMouseEnter",[nh],Object.getOwnPropertyDescriptor(ch.prototype,"handleMouseEnter"),ch.prototype),c()(ch.prototype,"handleMouseLeave",[rh],Object.getOwnPropertyDescriptor(ch.prototype,"handleMouseLeave"),ch.prototype),c()(ch.prototype,"handleClick",[oh],Object.getOwnPropertyDescriptor(ch.prototype,"handleClick"),ch.prototype),c()(ch.prototype,"handleMQChange",[lh],Object.getOwnPropertyDescriptor(ch.prototype,"handleMQChange"),ch.prototype),ch);var ph,gh,bh,mh,fh,vh,yh,wh,Sh,Ch,Ah,Eh,Ih,kh,_h;customElements.define("vic-m-testimonial-card",uh);let Oh=(ph=(0,S.hq)(".vic-m-animated-text-media__media"),gh=(0,S.hq)(".vic-m-animated-text-media__media-overlay"),bh=(0,S.hq)(".vic-m-animated-text-media__sound-toggle"),mh=(0,S.hq)(".vic-m-animated-text-media__content"),fh=(0,S.hq)(".vic-m-animated-text-media__sound-icon"),vh=(0,S.rF)("this",P.KL),yh=(0,S.rF)("this",P.Bg),wh=(0,S.rF)("window",P.Rn),Sh=(0,S.rF)("soundToggle","click"),Ch=class extends S.uA{constructor(...e){super(...e),this._inStickyMode=!1,this._mediaMuted=!0,this.viewportObserver=u.rD.getInstance(),this.mqService=u.Mp.getInstance(F.A),this.resizeObserver=new ResizeObserver(e=>this.handleResize(e)),T()(this,"mediaElement",Ah,this),T()(this,"mediaOverlay",Eh,this),T()(this,"soundToggle",Ih,this),T()(this,"content",kh,this),T()(this,"soundIcon",_h,this)}afterComponentRender(){this.updateStickyMode(),this.resizeObserver.observe(this.content)}get inStickyMode(){return this._inStickyMode}set inStickyMode(t){t!==this._inStickyMode&&(!1===t?((0,e.Nn)(window,"scroll",this.handleScroll,this),this.viewportObserver.unobserve(this)):this.viewportObserver.observe(this),this._inStickyMode=t)}get mediaMuted(){return this._mediaMuted}set mediaMuted(e){if(e!==this.mediaMuted)try{this.mediaMuted?(this.mediaElement.unMuteVideo(),this.soundIcon.iconId="vic-icon-sound-off"):(this.mediaElement.muteVideo(),this.soundIcon.iconId="vic-icon-sound-on")}finally{this._mediaMuted=e}}get currentMQ(){return(0,e.g8)(F.A)}get curScrollPosition(){return window.scrollY}get offsetTopWithHeader(){return this.offsetTop+this.headerHeight}get scrollProgress(){let e=(this.curScrollPosition-this.offsetTopWithHeader)/((this.mediaElement.scrollHeight-200)/2);return e>1&&(e=1),e<0&&(e=0),e}handleResize(e){for(const t of e){if(t.target!==this.content)return;const e=Math.max(this.content.offsetHeight-200,0);this.content.style.setProperty("--vic-animated-text-media--white-bar-height",`${e}px`)}}handleInVp(){(0,e.MR)(window,"scroll",this.handleScroll,this),this.handleScroll()}handleOutVp(){(0,e.Nn)(window,"scroll",this.handleScroll,this),(0,e.vy)(this,t.Ag)}get headerHeight(){const t=(0,e.I6)(document,".vic-m-header");return t?.offsetHeight||0}handleScroll(){const i=1-this.scrollProgress;this.currentMQ>"MQ2"?(this.mediaElement.style.opacity=i.toString(),(0,e.p1)(this,t.Ag,this.curScrollPosition>=this.offsetTopWithHeader)):(this.mediaElement.style.opacity="1",(0,e.vy)(this,t.Ag))}handleMQChange(){this.updateStickyMode()}updateStickyMode(){this.inStickyMode=this.currentMQ>"MQ2"}toggleSound(){this.mediaMuted=!this.mediaMuted}},Ah=c()(Ch.prototype,"mediaElement",[ph],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Eh=c()(Ch.prototype,"mediaOverlay",[gh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}
299),Ih=c()(Ch.prototype,"soundToggle",[bh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kh=c()(Ch.prototype,"content",[mh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_h=c()(Ch.prototype,"soundIcon",[fh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ch.prototype,"handleInVp",[vh],Object.getOwnPropertyDescriptor(Ch.prototype,"handleInVp"),Ch.prototype),c()(Ch.prototype,"handleOutVp",[yh],Object.getOwnPropertyDescriptor(Ch.prototype,"handleOutVp"),Ch.prototype),c()(Ch.prototype,"handleMQChange",[wh],Object.getOwnPropertyDescriptor(Ch.prototype,"handleMQChange"),Ch.prototype),c()(Ch.prototype,"toggleSound",[Sh],Object.getOwnPropertyDescriptor(Ch.prototype,"toggleSound"),Ch.prototype),Ch);var xh,Th,Fh,Ph,Dh;customElements.define("vic-m-animated-text-media",Oh);let Mh=(xh=(0,S.hq)(".vic-m-lottie-animation__animation-box"),Th=(0,S.rF)("this",P.KL),Fh=(0,S.rF)("this",P.Bg),Ph=class extends S.uA{constructor(...e){super(...e),this._inStickyMode=!1,this.animationLoaded=!1,this.animation=void 0,this.viewportObserver=u.rD.getInstance(),this.mqService=u.Mp.getInstance(F.A),T()(this,"animationBox",Dh,this)}get animationPath(){return this.getAttribute("animation-path")||""}get curScrollPosition(){return window.scrollY}get mobileAnimationPath(){return this.getAttribute("mobile-animation-path")||""}get autoplay(){return this.hasAttribute("autoplay")&&"false"!==this.getAttribute("autoplay")}get curAnimationPath(){return""===this.mobileAnimationPath?this.animationPath:"MQ1"===(0,e.g8)(F.A)?this.mobileAnimationPath:this.animationPath}get inStickyMode(){return this._inStickyMode}set inStickyMode(e){e!==this._inStickyMode&&(!0===e&&this.loadAnimation(),this._inStickyMode=e)}get scrollProgress(){const e=this.curScrollPosition,t=window.innerHeight,i=t/10;let s=(e-(this.getBoundingClientRect().top+e-i))/(this.offsetHeight-t/10*8);return s>1&&(s=1),s<0&&(s=0),s}afterComponentRender(){this.viewportObserver.observe(this)}async handleInVp(){if(!0!==window.vipAemModeService?.runsOnAuthor){if(this.autoplay)return await this.loadAnimation(),void Ot.A.observeIn({targetElement:this,callback:()=>{this.playAnimation()},context:this,observerConfig:{rootMargin:"0px 0px -75% 0px"}});(0,e.MR)(window,"scroll",this.handleScroll,this),await this.loadAnimation(),this.handleScroll()}else await this.loadAnimation()}handleOutVp(){!0!==window.vipAemModeService?.runsOnAuthor&&(0,e.Nn)(window,"scroll",this.handleScroll,this)}handleMQChange({detail:e}){"MQ1"!==e.oldMQ&&"MQ1"!==e.newMQ||this.reloadAnimation()}handleScroll(){const e=this.scrollProgress;if(this.inStickyMode&&this.animationLoaded){let t=e*this.animation.totalFrames-1;t<0&&(t=0),this.animation.goToAndStop(t,!0)}this.inStickyMode=e>0&&e<1}async loadAnimation(){if(""===this.animationPath||this.animationLoaded)return;this.animationLoaded=!0;const t=await this.loadLottiePlayer();this.animation=t.loadAnimation({container:this.animationBox,autoplay:!1,loop:!1,renderer:"svg",path:this.curAnimationPath}),this.animation.goToAndStop(0,!0),""!==this.mobileAnimationPath&&(0,e.MR)(window,P.Rn,this.handleMQChange,this)}playAnimation(){void 0!==this.animation&&this.animation.play()}async reloadAnimation(){this.animation.destroy(),this.animationLoaded=!1,await this.loadAnimation(),this.handleScroll()}async loadLottiePlayer(){const{default:e}=await i.e(41911).then(i.t.bind(i,41911,23));return e}},Dh=c()(Ph.prototype,"animationBox",[xh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ph.prototype,"handleInVp",[Th],Object.getOwnPropertyDescriptor(Ph.prototype,"handleInVp"),Ph.prototype),c()(Ph.prototype,"handleOutVp",[Fh],Object.getOwnPropertyDescriptor(Ph.prototype,"handleOutVp"),Ph.prototype),Ph);var Rh,Bh,Lh,Vh,Nh,zh;customElements.define("vic-m-lottie-animation",Mh);let qh=(Rh=(0,S.hq)(".vic-m-video-animation__video"),Bh=(0,S.rF)("video",P.aU),Lh=(0,S.rF)("this",P.KL),Vh=(0,S.rF)("this",P.Bg),Nh=class extends S.uA{constructor(...e){super(...e),this._inStickyMode=!1,this.viewportObserver=u.rD.getInstance(),T()(this,"video",zh,this)}get inStickyMode(){return this._inStickyMode}set inStickyMode(e){e!==this._inStickyMode&&(this._inStickyMode=e)}get animationThrottling(){return parseInt(this.getAttribute("animation-throttling")||"500",10)}get curScrollPosition(){return window.scrollY}get scrollProgress(){const e=this.curScrollPosition,t=window.innerHeight;let i=(e-(this.getBoundingClientRect().top+e))/(this.offsetHeight-t);return i>1&&(i=1),i<0&&(i=0),i}afterComponentRender(){!0!==window.vipAemModeService?.runsOnAuthor&&this.viewportObserver.observe(this)}videoMetaDataLoaded(){!0!==window.vipAemModeService?.runsOnAuthor&&(this.style.height=this.animationThrottling*this.video.videoElement.duration+"px")}handleInVp(){(0,e.MR)(window,"scroll",this.handleScroll,this),this.handleScroll()}handleOutVp(){(0,e.Nn)(window,"scroll",this.handleScroll,this)}updateVideoPosition(e){this.video.videoElement.currentTime=e}handleScroll(){const e=this.scrollProgress;if(this.inStickyMode)if(0===e)this.updateVideoPosition(1);else{const t=e*this.video.videoElement.duration;isNaN(t)||this.updateVideoPosition(t)}this.inStickyMode=e>0&&e<1}},zh=c()(Nh.prototype,"video",[Rh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Nh.prototype,"videoMetaDataLoaded",[Bh],Object.getOwnPropertyDescriptor(Nh.prototype,"videoMetaDataLoaded"),Nh.prototype),c()(Nh.prototype,"handleInVp",[Lh],Object.getOwnPropertyDescriptor(Nh.prototype,"handleInVp"),Nh.prototype),c()(Nh.prototype,"handleOutVp",[Vh],Object.getOwnPropertyDescriptor(Nh.prototype,"handleOutVp"),Nh.prototype),Nh);customElements.define("vic-m-video-animation",qh);class Uh extends HTMLAnchorElement{get trackingData(){return void 0===this.dataset.layerItemId||void 0===this.dataset.layerItemName?null:{item_id:this.dataset.layerItemId,item_name:this.dataset.layerItemName,affiliation:location.hostname,index:void 0!==this.dataset.layerIndex?Number(this.dataset.layerIndex):void 0,item_list_id:this.dataset.layerItemListId,item_list_name:this.dataset.layerItemListName,item_brand:this.dataset.layerItemBrand}}constructor(){super(),this.wasVisible=!1,this.init()}init(){this.initViewportObserver(),this.initParentObserver(),this.initClickObserver()}initViewportObserver(){new IntersectionObserver(e=>this.onVPChange(e),{threshold:.51}).observe(this)}initParentObserver(){const t=(0,e.PA)(this,".vic-m-slider");null!==t&&t.addEventListener(P.QR,()=>this.resetVisible())}initClickObserver(){this.addEventListener("click",()=>this.pushClickEvent())}
299onVPChange(e){e.forEach(e=>{e.isIntersecting&&this.pushVisibleEvent()})}pushVisibleEvent(){!0!==this.wasVisible&&null!==this.trackingData&&(this.wasVisible=!0,g.A.clearEcommerce(),g.A.push({event:"item_visible",ecommerce:{items:[this.trackingData]}}))}async pushClickEvent(){null!==this.trackingData&&(await g.A.pushToPipeline({ecommerce:null}),await g.A.pushToPipeline({event:"select_item",ecommerce:{items:[this.trackingData]}}))}resetVisible(){this.wasVisible=!1}}var $h,jh,Hh,Kh;customElements.define("vic-tracked-product",Uh,{extends:"a"});let Qh=($h=(0,S.hq)(".vic-m-floating-scroll-to-button__button"),jh=(0,S.rF)("button","click"),Hh=class extends S.uA{constructor(...e){super(...e),this._footerVisible=!1,this._scrollTargetVisible=!1,T()(this,"button",Kh,this)}get footerVisible(){return this._footerVisible}set footerVisible(e){this._footerVisible=e,this.updateVisibility()}get scrollTargetVisible(){return this._scrollTargetVisible}set scrollTargetVisible(e){this._scrollTargetVisible=e,this.updateVisibility()}get shouldBeVisible(){return!1===this.footerVisible&&!1===this.scrollTargetVisible}get targetSelector(){return this.getAttribute("target-selector")||""}afterComponentRender(){this.initFooterVisibilityChecker(),this.initScrollTargetVisibilityChecker()}initFooterVisibilityChecker(){const t=(0,e.I6)(document.body,".vic-m-legal-footer");null!==t?(Ot.A.observeIn({targetElement:t,callback:()=>this.footerVisible=!0,context:this}),Ot.A.observeOut({targetElement:t,callback:()=>this.footerVisible=!1,context:this})):this.updateVisibility()}initScrollTargetVisibilityChecker(){if(""===this.targetSelector)return;const t=(0,e.I6)(document.body,this.targetSelector);null!==t?(Ot.A.observeIn({targetElement:t,callback:()=>this.scrollTargetVisible=!0,context:this}),Ot.A.observeOut({targetElement:t,callback:()=>this.scrollTargetVisible=!1,context:this})):this.updateVisibility()}handleClick(){if(""===this.targetSelector)return;const t=(0,e.I6)(document.body,this.targetSelector);null!==t&&Te.A.scrollToElement(t)}async updateVisibility(){!0===this.shouldBeVisible?((0,e.vy)(this,t.F4),await(0,e.fm)(100),(0,e.iQ)(this,t.f9)):((0,e.vy)(this,t.f9),await(0,e.fm)(300),(0,e.iQ)(this,t.F4))}},Kh=c()(Hh.prototype,"button",[$h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Hh.prototype,"handleClick",[jh],Object.getOwnPropertyDescriptor(Hh.prototype,"handleClick"),Hh.prototype),Hh);var Gh,Wh,Xh,Jh,Yh,Zh;customElements.define("vic-m-floating-scroll-to-button",Qh);let ed=(Gh=(0,S.hq)(".vic-m-image-comparison-slider__divider"),Wh=(0,S.rF)("divider","mousedown touchstart"),Xh=(0,S.rF)("this","mousemove touchmove"),Jh=(0,S.rF)("divider","mouseup touchend"),Yh=class extends S.uA{constructor(...e){super(...e),this._isDragging=!1,T()(this,"divider",Zh,this)}get isHorizontal(){return(0,e.nB)(this,"vic-m-image-comparison-slider--horizontal")}get boxOffset(){return this.isHorizontal?this.getBoundingClientRect().top:this.getBoundingClientRect().left}get boxSize(){return this.isHorizontal?this.offsetHeight:this.offsetWidth}get isDragging(){return this._isDragging}set isDragging(i){this._isDragging!==i&&((0,e.p1)(this,t.m8,i),!0===i?(0,e.MR)(window,"mousemove touchmove",this.onGlobalDragMove,this):(0,e.Nn)(window,"mousemove touchmove",this.onGlobalDragMove,this),this._isDragging=i)}onDragStart(){this.isDragging=!0}onDragMove(e){if(!1===this.isDragging)return;let t;e.stopPropagation(),e.preventDefault(),t=this.isHorizontal?e instanceof MouseEvent?e.clientY:e.touches[0].clientY:e instanceof MouseEvent?e.clientX:e.touches[0].clientX,this.updateDividerPosition(t)}onGlobalDragMove(){this.isDragging=!1}onDragEnd(){this.isDragging=!1}updateDividerPosition(e){const t=e-this.boxOffset,i=this.getRelativeDividerOffset(t);this.style.setProperty("--vic-comparison-slider-position",100*i+"%")}getRelativeDividerOffset(e){const t=this.boxSize;return e<4?0:e+4>t?1:e/t}},Zh=c()(Yh.prototype,"divider",[Gh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Yh.prototype,"onDragStart",[Wh],Object.getOwnPropertyDescriptor(Yh.prototype,"onDragStart"),Yh.prototype),c()(Yh.prototype,"onDragMove",[Xh],Object.getOwnPropertyDescriptor(Yh.prototype,"onDragMove"),Yh.prototype),c()(Yh.prototype,"onDragEnd",[Jh],Object.getOwnPropertyDescriptor(Yh.prototype,"onDragEnd"),Yh.prototype),Yh);var td,id,sd,ad,nd;customElements.define("vic-m-image-comparison-slider",ed),customElements.define("vic-m-vimeo-video",class extends G{constructor(...e){super(...e),this.fallbackPosterSrc=void 0,this.playerApi=void 0}get apiId(){return"vic-vimeo-video"}get consentCategory(){return"vimeo"}get videoProvider(){return"vimeo"}get posterSrc(){return this.fallbackPosterSrc||super.posterSrc}async renderAsync(){void 0!==this.videoID&&(""===this.posterSrc&&(this.fallbackPosterSrc=await this.getFallbackPosterSrc()),await super.renderAsync())}async getFallbackPosterSrc(){if(void 0===this.videoID)return;const e=await Bn.getMetaData(this.videoID);return null!==e?e.thumbnail_large??e.thumbnail_medium??e.thumbnail_small:void 0}appendApiScript(){(0,e.fm)(100).then(()=>{V.setApiLoaded(this.apiId)})}async initVideo(){if(void 0===this.videoID||void 0!==this.playerApi||!1===this.apiLoaded)return;const{default:e}=await i.e(92773).then(i.bind(i,92773));this.playerApi=new e(this.playerContainerID,{id:parseInt(this.videoID,10),responsive:!0}),this.playerApi.on("loaded",()=>this.onPlayerReady()),this.playerApi.on("bufferstart",()=>this.dispatchTrackingEvent("BUFFERING")),this.playerApi.on("play",()=>{this.dispatchTrackingEvent("PLAYING"),this.onVideoStarted()}),this.playerApi.on("pause",()=>{this.dispatchTrackingEvent("PAUSED"),this.onVideoPaused()}),this.playerApi.on("ended",()=>{this.dispatchTrackingEvent("ENDED"),this.onVideoEnded()}),this.playerApi.on("error",()=>this.onVideoError())}async isPlaying(){if(void 0===this.playerApi)return!1;try{return await this.playerApi.getPaused()}catch{return!1}}async getCurProgress(){const e=await(this.playerApi?.getDuration())||1;if(0===e)return 0;const t=await(this.playerApi?.getCurrentTime())||0;return Math.round(t/e*100)}async getVideoTitle(){return await(this.playerApi?.getVideoTitle())||""}async getVideoUrl(){try{return await(this.playerApi?.getVideoUrl())||""}catch{return`https://player.vimeo.com/video/${this.videoID}`}}onPlayerReady(){super.onPlayerReady(),!1===this.consentBlocked&&""===this.posterSrc&&(this.hidePoster(!0),(0,e.iQ)(this.videoContainer,t.Hc))}playVideoMethod(){void 0!==this.playerApi&&this.playerApi.play()}pauseVideo(){void 0!==this.playerApi&&this.playerApi.pause()}muteVideo(){void 0!==this.playerApi&&this.playerApi.setMuted(!0)}unMuteVideo(){void 0!==this.playerApi&&this.playerApi.setMuted(!1)}});let rd=(td=(0,S._w)({reactions:["renderAsync"],defaultValue:"%secondsLeft%"}),id=(0,S._w)({}),sd=class extends S.uA{constructor(){super({asyncRendering:!0}),this.curInterval=void 0,this._secondsLeft=void 0,T()(this,"labelTemplate",ad,this),T()(this,"duration",nd,this)}get autoStart(){return this.hasAttribute("auto-start")&&"false"!==this.getAttribute("auto-start")}get secondsLeft(){return void 0===this._secondsLeft&&(this._secondsLeft=this.duration),this._secondsLeft}set secondsLeft(e){e<0||e===this._secondsLeft||(this._secondsLeft=e,this.renderAsync())}get curProgress(){return this.secondsLeft/this.duration*100}async renderAsync(){const{timerTemplate:e}=await Promise.resolve().then(i.bind(i,95467));(0,m.XX)(e({progress:this.curProgress,secondsLeft:this.secondsLeft,labelTemplate:this.labelTemplate}),this)}afterComponentRender(){this.autoStart&&this.startTimer()}startTimer(){void 0===this.curInterval&&(this.curInterval=setInterval(()=>{this.secondsLeft-=1,0===this.secondsLeft&&this.handleTimerFinished()},1e3))}stopTimer(){void 0!==this.curInterval&&(clearInterval(this.curInterval),this.curInterval=void 0)}resetTimer(){this.stopTimer(),this.secondsLeft=this.duration,this.startTimer()}handleTimerFinished(){this.stopTimer(),this.dispatchEvent(new CustomEvent(P.Sf,{bubbles:!1}))}},ad=c()(sd.prototype,"labelTemplate",[td],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nd=c()(sd.prototype,"duration",[id],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sd);var od,ld,cd;customElements.define("vic-e-timer",rd);let hd=(od=(0,S._w)({reactions:["renderAsync"]}),ld=class extends S.uA{constructor(){super({useShadowDOM:!0,asyncRendering:!0}),T()(this,"progress",cd,this)}async renderAsync(){const{progressRingTemplate:e}=await Promise.resolve().then(i.bind(i,72133));(0,m.XX)(e({progress:this.progress}),this.getUiRoot())}},cd=c()(ld.prototype,"progress",[od],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ld);customElements.define("vic-e-progress-ring",hd);const dd=new class{async generateVerificationCode(e){const t=(0,K.A)();try{const i=await fetch(e.verificationCodeEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uuid:t,phoneNumber:e.phoneNumber})});return!1===i.ok?await this.handleErrorResponse(i):await i.json()}catch{return await this.getFallbackErrorMessage()}}async handleErrorResponse(e){try{const t=await e.json();if(void 0===t.errorMessage)throw new Error("Invalid error response");return t.errorMessage}catch(e){return u.bD.error("PhoneVerificationService.handleErrorResponse",e),await this.getFallbackErrorMessage()}}async getFallbackErrorMessage(){return await Ne.A.getValueOrDefault("viessmann.corporate.phoneVerificationOverlay.apiError.message","Service is currently unavailable. Please try again later.")}},ud=new class{constructor(){this.notificationCenter=void 0}async initNotificationCenter(){const t=document.createElement("vic-m-toast-notification-center");return(0,e.iQ)(t,"vic-m-toast-notification-center"),document.body.appendChild(t),await(0,e.db)(t),t}async addNotification(e){void 0===this.notificationCenter&&(this.notificationCenter=this.initNotificationCenter()),(await this.notificationCenter).addNotification(e)}};var pd,gd,bd,md,fd,vd,yd,wd,Sd,Cd,Ad,Ed,Id,kd,_d,Od,xd,Td,Fd,Pd,Dd,Md,Rd,Bd,Ld,Vd;let Nd=(pd=(0,S._w)({defaultValue:""}),gd=(0,S._w)({defaultValue:""}),bd=(0,S.hq)(".vic-m-phone-verification-overlay__closing-btn"),md=(0,S.hq)(".vic-m-phone-verification-overlay__a11y-closing-btn"),fd=(0,S.hq)(".vic-m-phone-verification-overlay__timer"),vd=(0,S.hq)(".vic-m-phone-verification-overlay__input"),yd=(0,S.hq)(".vic-m-phone-verification-overlay__verify-btn"),wd=(0,S.hq)(".vic-m-phone-verification-overlay__error-box"),Sd=(0,S.hq)(".vic-m-phone-verification-overlay__error-link"),Cd=(0,S.rF)("closingBtn","click"),Ad=(0,S.rF)("a11yClosingBtn","click"),Ed=(0,S.rF)("codeInput",P.aA),Id=(0,S.rF)("codeInput","keyup"),kd=(0,S.rF)("verifyBtn","click"),_d=(0,S.rF)("newCodeBtn","click"),Od=(0,S.rF)("timer",P.Sf),xd=class extends S.uA{constructor(...e){super(...e),this._loading=!1,this.loadingContainer=void 0,this.validationCodeTimestamp=void 0,this.validationCodeUUID=void 0,T()(this,"phoneNumber",Td,this),T()(this,"verificationCodeEndpoint",Fd,this),T()(this,"closingBtn",Pd,this),T()(this,"a11yClosingBtn",Dd,this),T()(this,"timer",Md,this),T()(this,"codeInput",Rd,this),T()(this,"verifyBtn",Bd,this),T()(this,"errorBox",Ld,this),T()(this,"newCodeBtn",Vd,this)}afterComponentRender(){this.init()}
299async init(){await this.renderLoader(),await this.requestVerificationCode(),this.removeLoader()}async renderLoader(){if(void 0!==this.loadingContainer)return;(0,e.iQ)(this,t.is);const s=document.createElement("div");(0,e.iQ)(s,"vic-m-phone-verification-overlay__loading-container"),this.loadingContainer=s;const{renderLoadingBounceElement:a}=await Promise.resolve().then(i.bind(i,68565));(0,m.XX)(a(),s),this.appendChild(s)}removeLoader(){void 0!==this.loadingContainer&&(this.removeChild(this.loadingContainer),this.loadingContainer=void 0,(0,e.vy)(this,t.is))}get loading(){return this._loading}set loading(i){this._loading!==i&&(this._loading=i,(0,e.p1)(this,t.F5,i),!0===i&&(this.verifyBtn.disabled=!0))}async getCurrentCode(){return!1===await this.codeInput.isValid()?null:this.codeInput.currentValue}async getValidationCodeOptions(){const e=await this.getCurrentCode();if(null!==e&&void 0!==this.validationCodeTimestamp&&void 0!==this.validationCodeUUID)return{timestamp:this.validationCodeTimestamp,uuid:this.validationCodeUUID,code:e}}async requestVerificationCode(){try{const e=await dd.generateVerificationCode({phoneNumber:this.phoneNumber,verificationCodeEndpoint:this.verificationCodeEndpoint});if("string"==typeof e)throw new Error(e);this.validationCodeTimestamp=e.timestamp,this.validationCodeUUID=e.uuid}catch(e){u.bD.error("VICPhoneVerificationOverlay",e),await this.onClosingBtnClick(),ud.addNotification({text:e.message,type:"error"})}}async onClosingBtnClick(){this.dispatchEvent(new CustomEvent(P.yc,{bubbles:!1})),await this.close(),this.remove()}async handleCodeInputChange(){if(0===this.timer.secondsLeft)return;const e=await this.getValidationCodeOptions();await this.updateCodeInputErrorMessage("default"),this.verifyBtn.disabled=void 0===e}handleCodeInputEnter(e){"Enter"===e.key&&this.onVerifyBtnClick()}async onVerifyBtnClick(){this.verifyBtn.disabled||void 0!==await this.getValidationCodeOptions()&&this.dispatchEvent(new CustomEvent(P.yj,{bubbles:!1}))}async handleNewBtnClick(){this.timer.resetTimer(),this.codeInput.reset(),this.verifyBtn.disabled=!0,this.hideError(),await this.requestVerificationCode()}handleTimerFinished(){this.verifyBtn.disabled=!0,this.showError()}async setWrongCodeError(){await this.updateCodeInputErrorMessage("wrongCode"),this.codeInput.hasExternalError=!0,this.verifyBtn.disabled=!0}open(){(0,e.iQ)(this,t.vP),qs.A.lockPage(),vn.A.trapFocusIn(this)}async close(){(0,e.vy)(this,t.vP),await(0,e.fm)(300),vn.A.unTrapFocusIn(this),qs.A.unlockPage()}showError(){(0,e.iQ)(this.errorBox,t.Hc)}hideError(){(0,e.vy)(this.errorBox,t.Hc)}async updateCodeInputErrorMessage(e){const t=await Ne.A.getValue(`viessmann.corporate.phoneVerificationOverlay.input.errorMessage.${e}`);void 0!==t&&this.codeInput.setAttribute("error-message",t)}},Td=c()(xd.prototype,"phoneNumber",[pd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fd=c()(xd.prototype,"verificationCodeEndpoint",[gd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pd=c()(xd.prototype,"closingBtn",[bd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dd=c()(xd.prototype,"a11yClosingBtn",[md],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Md=c()(xd.prototype,"timer",[fd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rd=c()(xd.prototype,"codeInput",[vd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bd=c()(xd.prototype,"verifyBtn",[yd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ld=c()(xd.prototype,"errorBox",[wd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vd=c()(xd.prototype,"newCodeBtn",[Sd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(xd.prototype,"onClosingBtnClick",[Cd,Ad],Object.getOwnPropertyDescriptor(xd.prototype,"onClosingBtnClick"),xd.prototype),c()(xd.prototype,"handleCodeInputChange",[Ed],Object.getOwnPropertyDescriptor(xd.prototype,"handleCodeInputChange"),xd.prototype),c()(xd.prototype,"handleCodeInputEnter",[Id],Object.getOwnPropertyDescriptor(xd.prototype,"handleCodeInputEnter"),xd.prototype),c()(xd.prototype,"onVerifyBtnClick",[kd],Object.getOwnPropertyDescriptor(xd.prototype,"onVerifyBtnClick"),xd.prototype),c()(xd.prototype,"handleNewBtnClick",[_d],Object.getOwnPropertyDescriptor(xd.prototype,"handleNewBtnClick"),xd.prototype),c()(xd.prototype,"handleTimerFinished",[Od],Object.getOwnPropertyDescriptor(xd.prototype,"handleTimerFinished"),xd.prototype),xd);var zd,qd,Ud,$d;customElements.define("vic-m-phone-verification-overlay",Nd);let jd=(zd=(0,S.hq)(".vic-m-toast-notification__closing-btn"),qd=(0,S.rF)("closingBtn","click"),Ud=class extends S.uA{constructor(...e){super(...e),T()(this,"closingBtn",$d,this)}get autoCloseDelay(){const e=this.getAttribute("auto-close-delay")||"";return""===e?null:parseInt(e,10)}afterComponentRender(){this.initAutoClose()}initAutoClose(){null!==this.autoCloseDelay&&setTimeout(()=>{this.close()},this.autoCloseDelay)}handleClosingBtnClick(){this.close()}async close(){(0,e.iQ)(this,t.qc),await(0,e.em)(this),this.remove()}async open(){(0,e.iQ)(this,t.vP),await(0,e.fm)(300)}},$d=c()(Ud.prototype,"closingBtn",[zd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ud.prototype,"handleClosingBtnClick",[qd],Object.getOwnPropertyDescriptor(Ud.prototype,"handleClosingBtnClick"),Ud.prototype),Ud);customElements.define("vic-m-toast-notification",jd);class Hd extends S.uA{async addNotification(t){const{renderToastNotification:s}=await i.e(66813).then(i.bind(i,66813)),a=document.createElement("div");(0,m.XX)(s(t),a);const n=(0,e.I6)(a,".vic-m-toast-notification");null!==n&&this.appendChild(n)}}var Kd,Qd,Gd,Wd,Xd,Jd,Yd,Zd,eu,tu,iu,su,au,nu,ru,ou,lu;customElements.define("vic-m-toast-notification-center",Hd);let cu=(Kd=(0,S.hq)(".vic-e-range-slider__tooltip"),Qd=(0,S.hq)(".vic-e-range-slider__progress-knob"),Gd=(0,S.hq)(".vic-e-range-slider__track"),Wd=(0,S.hq)(".vic-e-range-slider__input"),Xd=(0,h.sg)(100),Jd=(0,S.rF)("rangeInput","focusin"),Yd=(0,S.rF)("rangeInput","focusout"),Zd=(0,S.rF)("rangeInput","input"),eu=(0,S.rF)("progressKnob","keyup"),tu=(0,S.rF)("progressKnob","mouseenter"),iu=(0,S.rF)("progressKnob","mouseleave"),su=(0,S.rF)("progressKnob","mousedown touchstart"),au=class extends te.z{constructor(){super({asyncRendering:!0}),this._isDragging=!1,this._inputInFocus=!1,this._hasValue=!1,this._curProgress=0,this._knobs=void 0,T()(this,"tooltip",nu,this),T()(this,"progressKnob",ru,this),T()(this,"sliderTrack",ou,this),T()(this,"rangeInput",lu,this)}get submitValue(){if(!1!==this.hasValue)return this.activeKnob.value}get submitData(){return!1===this.formGroupActive||""===this.name||void 0===this.submitValue?null:{name:this.name,type:this.submitValueType,value:this.submitValue}}get submitString(){if(!1!==this.hasValue)return this.activeKnob.label}get initialValue(){return this.getAttribute("initial-value")}get prefillValue(){return this.prefillDisabled?null:super.prefillValue??this.initialValue}get isDragging(){return this._isDragging}set isDragging(i){i!==this._isDragging&&(this._isDragging=i,!0===i?((0,e.MR)(window,"mousemove",this.handleDragMove,this),(0,e.MR)(window,"mouseup",this.handleDragEnd,this),(0,e.MR)(window,"touchmove",this.handleTouchMove,this),(0,e.MR)(window,"touchend",this.handleTouchEnd,this),(0,e.iQ)(this,t.m8)):((0,e.Nn)(window,"mousemove",this.handleDragMove,this),(0,e.Nn)(window,"mouseup",this.handleDragEnd,this),(0,e.Nn)(window,"touchmove",this.handleTouchMove,this),(0,e.Nn)(window,"touchend",this.handleTouchEnd,this),(0,e.vy)(this,t.m8)))}get inputInFocus(){return this._inputInFocus}set inputInFocus(e){e!==this._inputInFocus&&(this._inputInFocus=e,!1===e&&this.updateInputValue())}get hasValue(){return this._hasValue}set hasValue(i){i!==this._hasValue&&(this._hasValue=i,!0===i?(0,e.iQ)(this,t.q6):(0,e.vy)(this,t.q6))}get curProgress(){return this._curProgress}set curProgress(e){this.hasValue&&e===this._curProgress||(this.hasValue=!0,this._curProgress=e,this.style.setProperty("--range-slider-progress",`${e}`),this.renderAsync(),this.dispatchEvent(new CustomEvent(P.aA,{bubbles:!1})))}get activeKnob(){return this.getActiveKnobForOffset(this.curProgress)}get prevKnob(){return this.knobs[this.activeKnob.idx-1]??this.activeKnob}get nextKnob(){return this.knobs[this.activeKnob.idx+1]??this.activeKnob}get min(){const e=this.getAttribute("min");if(null===e)return;const t=Number(e);return isNaN(t)?void 0:t}get step(){const e=this.getAttribute("step");if(null===e)return;const t=Number(e);return isNaN(t)?void 0:t}get max(){const e=this.getAttribute("max");if(null===e)return;const t=Number(e);return isNaN(t)?void 0:t}get labelTemplate(){return this.getAttribute("label-template")??"%value%"}get range(){if(void 0!==this.min&&void 0!==this.max&&!(this.min>=this.max))return{min:this.min,max:this.max,step:this.step??this.max-this.min}}get isNumberRangeSlider(){return void 0!==this.range}get shouldRenderAllKnobs(){const e="render-all-knobs";return this.hasAttribute(e)&&"false"!==this.getAttribute(e)}get knobs(){return void 0===this._knobs&&(this._knobs=this.isNumberRangeSlider?this.getKnobsFromRange():this.getStaticKnobs(),this.removeStaticKnobElements()),this._knobs}async renderAsync(){const{rangeSliderTemplate:e}=await i.e(34377).then(i.bind(i,34377));this.state.inValidationMode&&await this.validate(),(0,m.XX)(e({id:this.id,label:this.label,curProgress:this.curProgress,range:this.range,knobs:this.knobs,handleKnobClick:e=>this.handleKnobClick(e),shouldRenderAllKnobs:this.shouldRenderAllKnobs,hasError:this.state.showError,errorMessage:this.errorMessage}),this),this.updateInputValue(),this.updateTooltipLabel()}async initFormField(){await super.initFormField(),this.updateInputValue(),this.updateTooltipLabel(),new ResizeObserver(()=>this.updateTooltipWidth()).observe(this.tooltip),!1===this.shouldRenderAllKnobs&&(0,e.MR)(this.sliderTrack,"click",this.handleTrackCl
299ick,this)}async prefillInput(){await Promise.resolve();const e=this.prefillValue;if(null===e)return;const t=this.getKnobForValue(e);void 0!==t&&(this.curProgress=t.offset,!0!==this.inlineValidationDisabled&&await this.validate())}updateTooltipWidth(){const e=this.tooltip.offsetWidth;this.style.setProperty("--range-slider-tooltip-width",`${e}px`)}handleTrackClick(e){const t=this.getMouseOffset(e),i=this.getActiveKnobForOffset(t);this.curProgress=i.offset}handleKnobClick(e){this.curProgress=e.offset}handleInputFocus(){this.inputInFocus=!0}handleInputBlur(){this.inputInFocus=!1}handleInputChange(){const e=this.rangeInput?.value??"",t=Number(e);if(isNaN(t))return;const i=this.getKnobForValue(e,!0)?.offset;void 0!==i&&(this.curProgress=i)}handleKeyboardNav(e){"ArrowLeft"===e.key?this.curProgress=this.prevKnob.offset:"ArrowRight"===e.key&&(this.curProgress=this.nextKnob.offset)}handleMouseEnter(){(0,e.iQ)(this.tooltip,t.Hc)}handleMouseLeave(){(0,e.vy)(this.tooltip,t.Hc)}handleDragStart(e){this.isDragging||(e.preventDefault(),this.isDragging=!0)}handleDragMove(e){if(!1===this.isDragging)return;const t=this.getMouseOffset(e);this.curProgress=t}handleTouchMove(e){if(!1===this.isDragging)return;e.preventDefault();const t=this.getTouchOffset(e);this.curProgress=t}handleDragEnd(e){if(!1===this.isDragging)return;const t=this.getMouseOffset(e),i=this.getActiveKnobForOffset(t);this.curProgress=i.offset,this.isDragging=!1}handleTouchEnd(e){if(!1===this.isDragging)return;e.preventDefault();const t=this.getActiveKnobForOffset(this.curProgress);this.curProgress=t.offset,this.isDragging=!1}updateInputValue(){!0!==this.inputInFocus&&null!==this.rangeInput&&void 0!==this.rangeInput&&!1!==this.hasValue&&(this.rangeInput.value=this.activeKnob?.value??"")}updateTooltipLabel(){null!==this.tooltip&&void 0!==this.tooltip&&(this.tooltip.textContent=this.activeKnob?.label??"")}getCursorOffset(e){const{left:t,width:i}=this.getBoundingClientRect(),s=(e-t)/i;return Math.min(1,Math.max(0,s))}getMouseOffset(e){return this.getCursorOffset(e.clientX)}getTouchOffset(e){return this.getCursorOffset(e.touches[0].clientX)}getActiveKnobs(e){return this.knobs.filter(t=>t.offset<=e)}getActiveKnobForOffset(e){const t=this.getActiveKnobs(e);return 0===t.length?this.knobs[0]:t[t.length-1]}getKnobForValue(e,t=!1){const i=this.knobs.find(t=>t.value===e);if(void 0!==i)return i;if(!1===t)return;const s=[...this.knobs].reverse().find(t=>Number(t.value)<Number(e));return s??this.knobs[0]}getStaticKnobs(){const t=(0,e.JW)(this,".vic-e-range-slider__static-knob");return t.map(e=>({value:e.value,label:e.textContent??""})).filter(e=>""!==e.value&&""!==e.label).map((e,i)=>({idx:i,offset:i/(t.length-1),value:e.value,label:e.label}))}removeStaticKnobElements(){(0,e.JW)(this,".vic-e-range-slider__static-knob").forEach(e=>e.remove())}getKnobsFromRange(){if(void 0===this.range)return[];const{min:e,max:t,step:i}=this.range,s=[];let a=0;for(let n=e;n<=t;n+=i)s.push({idx:a,offset:(n-e)/(t-e),value:n.toString(),label:(0,Ve.F)(this.labelTemplate,{value:n.toString()})}),a++;return 0===s.length?[]:(Number(s[s.length-1].value)!==t&&s.push({idx:a,offset:1,value:t.toString(),label:(0,Ve.F)(this.labelTemplate,{value:t.toString()})}),s)}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||!this.hasExternalError&&(!1===this.isRequired||this.hasValue)}async reset(){this.curProgress=0,this.hasValue=!1,this.setState({showError:!1,inValidationMode:!1}),(0,e.vy)(this,t.qO),await this.prefillInput()}focus(){this.progressKnob.focus()}async validateConditions(e){return await Promise.resolve(),e.some(e=>e===this.submitValue)}},nu=c()(au.prototype,"tooltip",[Kd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ru=c()(au.prototype,"progressKnob",[Qd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ou=c()(au.prototype,"sliderTrack",[Gd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lu=c()(au.prototype,"rangeInput",[Wd],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(au.prototype,"updateTooltipWidth",[Xd],Object.getOwnPropertyDescriptor(au.prototype,"updateTooltipWidth"),au.prototype),c()(au.prototype,"handleInputFocus",[Jd],Object.getOwnPropertyDescriptor(au.prototype,"handleInputFocus"),au.prototype),c()(au.prototype,"handleInputBlur",[Yd],Object.getOwnPropertyDescriptor(au.prototype,"handleInputBlur"),au.prototype),c()(au.prototype,"handleInputChange",[Zd],Object.getOwnPropertyDescriptor(au.prototype,"handleInputChange"),au.prototype),c()(au.prototype,"handleKeyboardNav",[eu],Object.getOwnPropertyDescriptor(au.prototype,"handleKeyboardNav"),au.prototype),c()(au.prototype,"handleMouseEnter",[tu],Object.getOwnPropertyDescriptor(au.prototype,"handleMouseEnter"),au.prototype),c()(au.prototype,"handleMouseLeave",[iu],Object.getOwnPropertyDescriptor(au.prototype,"handleMouseLeave"),au.prototype),c()(au.prototype,"handleDragStart",[su],Object.getOwnPropertyDescriptor(au.prototype,"handleDragStart"),au.prototype),au);customElements.define("vic-e-range-slider",cu);var hu,du,uu,pu,gu=i(70019),bu=i(22030);class mu extends S.uA{constructor(...e){super(...e),this._contextState=void 0}get contextState(){return void 0===this._contextState&&(this._contextState=u.ID.getContextState(gu.I.CONTEXT_STATE_NAME,this)),this._contextState}async getCurrentResult(){return(await this.contextState).getState("curResult")}async getCurrentLoadingState(){return(await this.contextState).getState("isLoading")??!1}async getSmartSearchType(){return(await this.contextState).getState("searchType")??"ai"}async getCurrentSearchTerm(){return(await this.contextState).getState("curSearchTerm")??""}afterComponentRender(){this.init()}
299async init(){this.renderPlaceholder();const e=await this.contextState;e.observeState("curResult",()=>this.handleResultChange()),e.observeState("searchType",()=>this.handleResultChange()),e.observeState("curSearchTerm",()=>this.handleSearchTermChange()),e.observeState("isLoading",()=>this.handleLoadingStateChange()),await this.renderCurrentResult()}async renderPlaceholder(){const{smartSearchSummaryPlaceholderTemplate:s}=await i.e(38021).then(i.bind(i,38021));(0,m.XX)(s(),this),(0,e.vy)(this,t.RG)}async renderResult(e){const{smartSearchSummaryTemplate:t}=await i.e(38021).then(i.bind(i,38021));(0,m.XX)(await t({text:e.summary,showFeedbackBox:e.feedbackBoxEnabled}),this)}async renderCurrentResult(){const i=await this.getSmartSearchType();if("sparePart"===i)return(0,e.vy)(this,t.RG),void await this.renderSparePartMessage();if("serialNumber"===i)return(0,e.vy)(this,t.RG),void await this.renderSerialNumberMessage();const s=await this.getCurrentResult();void 0!==s&&(null!==s?((0,e.vy)(this,t.RG),await this.renderResult(s)):(0,e.iQ)(this,t.RG))}async renderSparePartMessage(){const e=await Ne.A.getValueOrDefault("viessmann.corporate.smartSearch.summary.staticMessage.sparePartNumber",""),t=await this.getCurrentSearchTerm(),s=await bu.A.isFeedbackBoxEnabled(),{staticMessageTemplate:a}=await i.e(38021).then(i.bind(i,38021));(0,m.XX)(a((0,Ve.F)(e,{curSearchTerm:t}),s),this)}async renderSerialNumberMessage(){const e=await Ne.A.getValueOrDefault("viessmann.corporate.smartSearch.summary.staticMessage.serialNumber",""),t=await bu.A.isFeedbackBoxEnabled(),{staticMessageTemplate:s}=await i.e(38021).then(i.bind(i,38021));(0,m.XX)(s(e,t),this)}async handleResultChange(){await this.renderCurrentResult()}async handleLoadingStateChange(){await this.getCurrentLoadingState()?await this.renderPlaceholder():await this.renderCurrentResult()}
299async handleSearchTermChange(){"ai"!==await this.getSmartSearchType()&&await this.renderCurrentResult()}}customElements.define("vic-m-smart-search-summary",mu);class fu extends S.uA{constructor(...e){super(...e),this._contextState=void 0}get contextState(){return void 0===this._contextState&&(this._contextState=u.ID.getContextState(gu.I.CONTEXT_STATE_NAME,this)),this._contextState}async getCurrentResult(){return(await this.contextState).getState("curResult")}async getCurrentLoadingState(){return(await this.contextState).getState("isLoading")??!1}async getActiveCategoryKey(){return(await this.contextState).getState("activeCategoryKey")??null}async getExpandedCategories(){return(await this.contextState).getState("expandedCategories")??[]}afterComponentRender(){this.init()}async init(){await this.renderPlaceholder();const e=await this.contextState;e.observeState("curResult",()=>this.handleResultChange()),e.observeState("activeCategoryKey",()=>this.handleCategoryChange()),e.observeState("expandedCategories",()=>this.handleExpandedCategoriesChange()),e.observeState("isLoading",()=>this.handleLoadingStateChange()),await this.renderCurrentResult()}async renderPlaceholder(){const{smartSearchResultListPlaceholderTemplate:s}=await i.e(92077).then(i.bind(i,92077));(0,m.XX)(s(!0),this),(0,e.vy)(this,t.RG)}async renderResult(e){const{smartSearchResultListTemplate:t}=await i.e(92077).then(i.bind(i,92077));let s=e.categories;const a=await this.getActiveCategoryKey();null!==a&&(s=s.filter(e=>e.categoryClusterKey===a)),(0,m.XX)(await t({categories:s,initialResultPerCategory:e.initialResultPerCategory,expandedCategories:await this.getExpandedCategories(),installerTeaserConfig:e.installerTeaser,handleShowAllClick:e=>this.handleShowAllClick(e)}),this)}async renderCurrentResult(){const i=await this.getCurrentResult();void 0!==i&&(null!==i?((0,e.vy)(this,t.RG),await this.renderResult(i)):(0,e.iQ)(this,t.RG))}async handleLoadingStateChange(){await this.getCurrentLoadingState()?await this.renderPlaceholder():await this.renderCurrentResult()}async handleResultChange(){await this.renderCurrentResult()}async handleCategoryChange(){await this.renderCurrentResult()}async handleShowAllClick(e){const t=await this.contextState,i=await this.getExpandedCategories();i.includes(e)||(i.push(e),t.setState("expandedCategories",i),await this.renderCurrentResult())}async handleExpandedCategoriesChange(){await this.renderCurrentResult()}}customElements.define("vic-m-smart-search-result-list",fu);class vu{constructor(){this.valueMappings=void 0}async getAvailableItems(e){try{const t=this.getQueryUrl(e),i=await u.Wn.fetchJSON(t,{cacheOptions:{validFor:Rn.Gf}});return null===i?null:(void 0!==i.mappings&&(this.valueMappings=i.mappings),i.items)}catch(e){return u.bD.error("ApiFilterSelectService: Cannot fetch items",e),null}}getLabelForPath(e,t){const i=this.valueMappings?.[e];return void 0===i?t:i[t]??t}getQueryUrl(e){const t=e.apiUrl;if(""===t)throw new Error("apiUrl is empty");const i=new URLSearchParams;return Object.keys(e.queryOptions).forEach(t=>{i.append(t,e.queryOptions[t])}),void 0===this.valueMappings&&i.append("includeMappings","true"),(0,Z.Ne)(t,i)}}let yu=(hu=(0,S.K3)(".vic-m-api-filter-select-group__select"),du=(0,S.rF)("selectElements",P.RQ),uu=class extends S.uA{constructor(...e){super(...e),this.apiFilterSelectService=new vu,T()(this,"selectElements",pu,this)}get apiUrl(){return this.getAttribute("api-url")??""}async handleSelectChange(e){const t=e.target;if(null===t)return;if(void 0===t.submitValue)return;const i=this.getSelectIdx(t);i<0||i>=this.selectElements.length||(await this.clearAllFollowingSelects(i),await this.loadSelectOptions(i+1))}async loadSelectOptions(i){if(i<=0||i>=this.selectElements.length)return;const s=await this.apiFilterSelectService.getAvailableItems({apiUrl:this.apiUrl,queryOptions:this.getQueryOptions(i)});if(null===s)return;const a=this.selectElements[i].name??"";if(""===a)return;const n=s.map(e=>e[a]??"").filter(e=>""!==e),r=Array.from(new Set(n)).map(e=>({value:e,dataset:{},disabled:!1,label:this.apiFilterSelectService.getLabelForPath(a,e),selected:!1}));(0,e.iQ)(this.selectElements[i],t.f9),await this.selectElements[i].updateSelectOptions(r,{addEmptyOption:!0}),this.selectElements[i].setLabelHeightCustomProperty()}async clearAllFollowingSelects(i){if(i<0||i>=this.selectElements.length)return;const s=this.selectElements.slice(i+1);await Promise.all(s.map(i=>((0,e.vy)(i,t.f9),i.updateSelectOptions([],{dispatchChange:!0}))))}getQueryOptions(e){const t={};return e<=0||e>=this.selectElements.length||this.selectElements.slice(0,e).forEach(e
299=>{const i=e.name??"",s=e.submitValue??"";""!==i&&""!==s&&(t[i]=s)}),t}getSelectIdx(e){return this.selectElements.indexOf(e)}},pu=c()(uu.prototype,"selectElements",[hu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(uu.prototype,"handleSelectChange",[du],Object.getOwnPropertyDescriptor(uu.prototype,"handleSelectChange"),uu.prototype),uu);customElements.define("vic-m-api-filter-select-group",yu);var wu,Su,Cu,Au=i(41179),Eu=i(49341);let Iu=(wu=(0,S.hq)(".vic-m-installer-select__select"),Su=class extends te.z{constructor(...e){super(...e),this._installerSearchService=void 0,this._responsibleAreaField=void 0,this._responsibleCityField=void 0,T()(this,"selectInput",Cu,this)}get configUrl(){return this.getAttribute("config-url")||""}get searchUrl(){return this.getAttribute("search-url")||""}get initialQueryString(){return this.getAttribute("initial-query-string")||""}get noResultsErrorMessage(){return this.getAttribute("no-results-error-message")||""}get serverErrorMessage(){return this.getAttribute("server-error-message")||""}get responsibleAreaFieldId(){return this.getAttribute("responsible-area-field-id")??void 0}get responsibleAreaField(){if(void 0!==this._responsibleAreaField)return this._responsibleAreaField;if(void 0===this.responsibleAreaFieldId)return;const t=document.getElementById(this.responsibleAreaFieldId);return null!==t?(this._responsibleAreaField=t,(0,e.MR)(t,P.aA,this.handleResponsibleAreaChange,this),t):void 0}get responsibleCityFieldId(){return this.getAttribute("responsible-city-field-id")??void 0}get responsibleCityField(){if(void 0!==this._responsibleCityField)return this._responsibleCityField;if(void 0===this.responsibleCityFieldId)return;const t=document.getElementById(this.responsibleCityFieldId);return null!==t?(this._responsibleCityField=t,(0,e.MR)(t,P.aA,this.handleResponsibleAreaChange,this),t):void 0}get responsibleArea(){if(void 0===this.responsibleCityField)return this.responsibleAreaField?.submitValue??this.getAttribute("responsible-area")??void 0;const e=this.responsibleCityField.submitValue??"",t=this.responsibleAreaField?.submitValue??"";return""!==e&&""!==t?`${e.split(" ").join("").toUpperCase()}:${t.split(" ").join("").toUpperCase()}`:void 0}get installerSearchService(){return void 0===this._installerSearchService&&(this._installerSearchService=new Eu.m(this.configUrl)),this._installerSearchService}get submitType(){return"name"===this.getAttribute("submit-type")?"name":"salesforceId"}get submitValue(){return this.selectInput.submitValue}get submitString(){return this.selectInput.submitString}async prefillInput(){}async isValid(){return await Promise.resolve(),!1===this.formGroupActive||this.selectInput.hasExternalError||await this.selectInput.isValid()}async validate(){await this.selectInput.validate()}async renderAsync(){const{installerSelectTemplate:e}=await i.e(81793).then(i.bind(i,81793));(0,m.XX)(e({label:this.label,description:this.description,errorMessage:this.errorMessage,isRequired:this.isRequired,fieldSize:this.formFieldSize}),this)}afterComponentRender(){this.updateSelectOptions()}async handleResponsibleAreaChange(){await this.selectInput.reset(),await this.updateSelectOptions()}async updateSelectOptions(){if(this.selectInput.isDisabled=!0,this.selectInput.setAttribute("error-message",this.errorMessage),this.selectInput.hasExternalError=!1,void 0===this.responsibleArea||""===this.responsibleArea)return;await Au.default.loadApi();const e=await this.installerSearchService.getResultsFor({responsibleArea:this.responsibleArea,initialQueryString:this.initialQueryString,endpointUrl:this.searchUrl,coordinates:new google.maps.LatLng(1,1)});if(null===e)return void this.showErrorMessage(this.serverErrorMessage);if(0===e.results.length)return void this.showErrorMessage(this.noResultsErrorMessage);const t=e.results.map(e=>({value:"name"===this.submitType?e.name:e.salesforceId,label:e.name,selected:!1,disabled:!1,dataset:{}}));await this.selectInput.updateSelectOptions(t,{addEmptyOption:!0}),this.selectInput.isDisabled=!1}showErrorMessage(e){this.selectInput.setAttribute("error-message",e),this.selectInput.hasExternalError=!0}async reset(){await this.selectInput.reset()}focus(){this.selectInput.focus()}async validateConditions(e){return await this.selectInput.validateConditions(e)}},Cu=c()(Su.prototype,"selectInput",[wu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Su);var ku,_u,Ou,xu;customElements.define("vic-m-installer-select",Iu);let Tu=(ku=(0,S.K3)(".vic-m-webinar-select__item"),_u=(0,S.rF)("items",P.QR),Ou=class extends S.uA{constructor(...e){super(...e),T()(this,"items",xu,this)}get selectedItems(){return this.items.reduce((e,t)=>
299[...e,...t.selectedDates],[])}afterComponentRender(){this.init()}init(){1===this.items.length&&(0,e.iQ)(this.items.at(0)??null,t.vP,t.$2)}handleSelectionChange(){this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1}))}},xu=c()(Ou.prototype,"items",[ku],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Ou.prototype,"handleSelectionChange",[_u],Object.getOwnPropertyDescriptor(Ou.prototype,"handleSelectionChange"),Ou.prototype),Ou);customElements.define("vic-m-webinar-select",Tu);const Fu=e=>{const t=new Date;return t.setHours(0,0,0,0),e.setHours(0,0,0,0),e<t};var Pu,Du,Mu,Ru,Bu,Lu;let Vu=(Pu=(0,S.K3)(".vic-m-webinar-select-item__date"),Du=(0,S.rF)("this","click"),Mu=(0,S.rF)("checkBoxes","click"),Ru=(0,S.rF)("checkBoxes",P.fr),Bu=class extends S.uA{constructor(...e){super(...e),T()(this,"checkBoxes",Lu,this)}get selectedDates(){return this.checkBoxes.filter(e=>e.isChecked).map(e=>e.name)}isLocked(){return(0,e.nB)(this,t.$2)}afterComponentRender(){this.disablePastDates()}async disablePastDates(){await Promise.all(this.checkBoxes.map(e.db)),this.checkBoxes.filter(e=>void 0!==e.dataset.date).forEach(e=>{const t=new Date(e.dataset.date??""),i=Fu(t);e.isDisabled=i})}handleClick(){this.isLocked()||(0,e.p1)(this,t.vP)}handleCheckboxClick(e){e.stopPropagation()}handleSelectionChange(){this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1}))}},Lu=c()(Bu.prototype,"checkBoxes",[Pu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Bu.prototype,"handleClick",[Du],Object.getOwnPropertyDescriptor(Bu.prototype,"handleClick"),Bu.prototype),c()(Bu.prototype,"handleCheckboxClick",[Mu],Object.getOwnPropertyDescriptor(Bu.prototype,"handleCheckboxClick"),Bu.prototype),c()(Bu.prototype,"handleSelectionChange",[Ru],Object.getOwnPropertyDescriptor(Bu.prototype,"handleSelectionChange"),Bu.prototype),Bu);var Nu,zu,qu,Uu,$u,ju,Hu,Ku,Qu,Gu,Wu,Xu,Ju,Yu,Zu,ep,tp,ip,sp,ap;customElements.define("vic-m-webinar-select-item",Vu);let np=(Nu=(0,S.hq)(".vic-m-webinar-booking-component__back-btn"),zu=(0,S.hq)(".vic-m-webinar-booking-component__next-btn"),qu=(0,S.hq)(".vic-m-webinar-booking-component__next-btn-label"),Uu=(0,S.hq)(".vic-m-webinar-booking-component__webinar-select"),$u=(0,S.hq)(".vic-m-webinar-booking-component__icon-select"),ju=(0,S.hq)(".vic-m-webinar-booking-component__contact-form"),Hu=(0,S.rF)("webinarSelect",P.QR),Ku=(0,S.rF)("iconSelect",P.aA),Qu=(0,S.rF)("nextBtn","click"),Gu=(0,S.rF)("backBtn","click"),Wu=(0,S.rF)("contactForm",P.TZ),Xu=(0,S.rF)("contactForm",P.oV),Ju=(0,S.rF)("contactForm",P.Q4),Yu=class extends S.uA{constructor(...e){super(...e),T()(this,"backBtn",Zu,this),T()(this,"nextBtn",ep,this),T()(this,"nextBtnLabel",tp,this),T()(this,"webinarSelect",ip,this),T()(this,"iconSelect",sp,this),T()(this,"contactForm",ap,this)}get nextButtonLabel(){return this.getAttribute("next-button-label")??""}get submitButtonLabel(){return this.getAttribute("submit-button-label")??""}get activeStep(){const e=this.getAttribute("active-step")??"0";return parseInt(e,10)}set activeStep(e){e!==this.activeStep&&(this.setAttribute("active-step",e.toString()),this.updateButtonStates(),this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1})))}get selectedWebinars(){return null!==this.webinarSelect?this.webinarSelect?.selectedItems??[]:null!==this.iconSelect?this.iconSelect?.submitValue??[]:[]}get isLoading(){return(0,e.nB)(this,t.F5)}set isLoading(i){i!==this.isLoading&&((0,e.p1)(this,t.F5,i),this.dispatchEvent(new CustomEvent(P.lC,{bubbles:!1})))}get hasError(){return(0,e.nB)(this,t.ff)}get hasSuccess(){return(0,e.nB)(this,t.qO)}get backBtnDisabled(){return 1!==this.activeStep}get nextBtnDisabled(){return this.activeStep>=2||0===this.selectedWebinars.length}afterComponentRender(){this.init()}
299async init(){null!==this.webinarSelect&&await(0,e.db)(this.webinarSelect),null!==this.iconSelect&&await(0,e.db)(this.iconSelect),this.updateButtonStates()}handleWebinarSelectChange(){this.updateButtonStates(),this.contactForm.externalSubmitData=[{name:"selected-webinars",type:"Array<string>",value:this.selectedWebinars}]}handleIconSelectChange(){this.updateButtonStates(),this.contactForm.externalSubmitData=[{name:"selected-webinars",type:"Array<string>",value:this.selectedWebinars}]}handleNextBtnClick(){0!==this.activeStep?(this.contactForm.submitForm(!0),this.isLoading=!0):this.activeStep=1}handleBackBtnClick(){1===this.activeStep&&(this.activeStep=0)}handleFormSuccess(){(0,e.iQ)(this,t.qO),this.activeStep=2,this.isLoading=!1,this.dispatchEvent(new CustomEvent(P.TZ,{bubbles:!1}))}handleFormError(){(0,e.iQ)(this,t.ff),this.activeStep=2,this.isLoading=!1,this.dispatchEvent(new CustomEvent(P.oV,{bubbles:!1}))}handleFormValidationError(){this.isLoading=!1}updateButtonStates(){if(this.backBtn.disabled=this.backBtnDisabled,this.nextBtn.disabled=this.nextBtnDisabled,this.activeStep<2){const e=0===this.activeStep?this.nextButtonLabel:this.submitButtonLabel;this.nextBtnLabel.innerText=e}}},Zu=c()(Yu.prototype,"backBtn",[Nu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ep=c()(Yu.prototype,"nextBtn",[zu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tp=c()(Yu.prototype,"nextBtnLabel",[qu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ip=c()(Yu.prototype,"webinarSelect",[Uu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sp=c()(Yu.prototype,"iconSelect",[$u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ap=c()(Yu.prototype,"contactForm",[ju],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Yu.prototype,"handleWebinarSelectChange",[Hu],Object.getOwnPropertyDescriptor(Yu.prototype,"handleWebinarSelectChange"),Yu.prototype),c()(Yu.prototype,"handleIconSelectChange",[Ku],Object.getOwnPropertyDescriptor(Yu.prototype,"handleIconSelectChange"),Yu.prototype),c()(Yu.prototype,"handleNextBtnClick",[Qu],Object.getOwnPropertyDescriptor(Yu.prototype,"handleNextBtnClick"),Yu.prototype),c()(Yu.prototype,"handleBackBtnClick",[Gu],Object.getOwnPropertyDescriptor(Yu.prototype,"handleBackBtnClick"),Yu.prototype),c()(Yu.prototype,"handleFormSuccess",[Wu],Object.getOwnPropertyDescriptor(Yu.prototype,"handleFormSuccess"),Yu.prototype),c()(Yu.prototype,"handleFormError",[Xu],Object.getOwnPropertyDescriptor(Yu.prototype,"handleFormError"),Yu.prototype),c()(Yu.prototype,"handleFormValidationError",[Ju],Object.getOwnPropertyDescriptor(Yu.prototype,"handleFormValidationError"),Yu.prototype),Yu);var rp,op,lp,cp,hp,dp,up,pp,gp,bp,mp,fp,vp;customElements.define("vic-m-webinar-booking-component",np);let yp=(rp=(0,S.hq)(".vic-e-smart-search-input__input"),op=(0,S.hq)(".vic-e-smart-search-input__input-suggestion"),lp=(0,S.hq)(".vic-e-smart-search-input__icon"),cp=(0,S.hq)(".vic-e-smart-search-input__button"),hp=(0,S.rF)("input","input"),dp=(0,S.rF)("this","keydown"),up=(0,S.rF)("this","keyup"),pp=(0,S.rF)("button","click"),gp=class extends S.uA{constructor(){super({asyncRendering:!0}),this.uuid=(0,K.A)(),this.suggestionsRotationIndex=0,this.suggestions=[],this.suggestionsInterval=void 0,T()(this,"input",bp,this),T()(this,"suggestionBox",mp,this),T()(this,"icon",fp,this),T()(this,"button",vp,this)}get openOverlay(){return this.hasAttribute("open-overlay")&&"false"!==this.getAttribute("open-overlay")}get inputLabel(){return this.getAttribute("input-label")||void 0}get inputPlaceholder(){return this.getAttribute("input-placeholder")||void 0}get searchButtonLabel(){return this.getAttribute("search-button-label")||void 0}get searchButtonTitle(){return this.getAttribute("search-button-title")||void 0}get curSearchTerm(){return this.input?.value??""}set curSearchTerm(e){this.curSearchTerm!==e&&(this.input.value=e,this.handleInputChange())}get suggestionText(){return this.suggestionBox.textContent||""}set suggestionText(e){""!==e?e!==this.inputPlaceholder?this.suggestionBox.textContent=`${e} â¥`:this.suggestionBox.textContent=this.inputPlaceholder:this.suggestionBox.textContent=""}async renderAsync(){const{smartSearchInputTemplate:e}=await i.e(51093).then(i.bind(i,51093));(0,m.XX)(await e({inputPlaceholder:this.inputPlaceholder,inputLabel:this.inputLabel,searchButtonLabel:this.searchButtonLabel,searchButtonTitle:this.searchButtonTitle,uuid:this.uuid}),this)}afterComponentRender(){Ot.A.observeIn({targetElement:this,callback:()=>this.startSuggestionRotation(),context:this}),Ot.A.observeOut({targetElement:this,callback:()=>this.stopSuggestionRotation(!0),context:this}),!0===this.openOverlay&&$s.observeSearchReset(()=>this.clearInput())}async startSuggestionRotation(){if(void 0!==this.suggestionsInterval)return;
299const e=await bu.A.getInputSuggestions();0!==e.length&&""===this.input.value&&(this.suggestions=[...e],this.inputPlaceholder&&this.suggestions.unshift(this.inputPlaceholder),this.suggestions.length<2||(this.input.placeholder="",this.suggestionText=this.suggestions[0],this.suggestionsInterval=setInterval(()=>{this.updateSuggestion()},5e3)))}async updateSuggestion(i){const{newIndex:s,reversed:a=!1,explicit:n=!1}=i||{};this.suggestionsRotationIndex=s||0===s?s:(this.suggestionsRotationIndex+1)%this.suggestions.length,a&&(0,e.iQ)(this.suggestionBox,t.nI),(0,e.iQ)(this.suggestionBox,t.u$),await(0,e.em)(this.suggestionBox),void 0!==this.suggestionsInterval||!1!==n?(this.suggestionText=this.suggestions[this.suggestionsRotationIndex],(0,e.vy)(this.suggestionBox,t.u$),(0,e.iQ)(this.suggestionBox,t.mO),await(0,e.em)(this.suggestionBox),(0,e.vy)(this.suggestionBox,t.mO,t.nI)):(0,e.vy)(this.suggestionBox,t.mO,t.nI)}stopSuggestionRotation(e=!1){clearInterval(this.suggestionsInterval),this.suggestionsInterval=void 0,e&&(this.suggestionsRotationIndex=0,this.suggestionText="")}handleInputChange(){""===this.input.value?this.startSuggestionRotation():this.stopSuggestionRotation(!0),this.updateIcon(),this.dispatchChangeEvent()}handleKeyDown(e){"Tab"===e.key&&""===this.input.value&&this.suggestions[this.suggestionsRotationIndex]!==this.inputPlaceholder&&(this.suggestions.length<1||(e.preventDefault(),this.input.value=this.suggestions[this.suggestionsRotationIndex],this.stopSuggestionRotation(!0),this.updateIcon(),this.dispatchChangeEvent()))}handleKeyUp(e){"Enter"===e.key&&this.submitSearch(),""===this.input.value&&(this.suggestions.length<1||("ArrowDown"===e.key&&(this.updateSuggestion({newIndex:(this.suggestionsRotationIndex+1)%this.suggestions.length,explicit:!0}),this.stopSuggestionRotation()),"ArrowUp"===e.key&&(this.updateSuggestion({newIndex:(this.suggestionsRotationIndex-1+this.suggestions.length)%this.suggestions.length,reversed:!0,explicit:!0}),this.stopSuggestionRotation())))}handleButtonClick(){""!==this.curSearchTerm&&(this.input.value="",this.input.focus(),this.updateIcon(),this.dispatchResetEvent(),this.startSuggestionRotation())}async updateIcon(){const e="viessmann.corporate.smartSearch.input.label";""===this.curSearchTerm?(this.icon.iconId="vic-icon-search",this.icon.ariaLabel=await Ne.A.getValueOrDefault(`${e}.search`,"")):(this.icon.iconId="vic-icon-close-circle",this.icon.ariaLabel=await Ne.A.getValueOrDefault(`${e}.closeSearch`,""))}submitSearch(){""!==this.curSearchTerm&&(!1!==this.openOverlay?$s.openOverlay(this.curSearchTerm):this.dispatchSubmitEvent())}focus(){this.input.focus()}clearInput(){this.input.value="",this.handleInputChange()}dispatchSubmitEvent(){this.dispatchEvent(new CustomEvent(P._I,{bubbles:!1}))}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1}))}dispatchResetEvent(){this.dispatchEvent(new CustomEvent(P.pg,{bubbles:!1}))}},bp=c()(gp.prototype,"input",[rp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mp=c()(gp.prototype,"suggestionBox",[op],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fp=c()(gp.prototype,"icon",[lp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vp=c()(gp.prototype,"button",[cp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(gp.prototype,"handleInputChange",[hp],Object.getOwnPropertyDescriptor(gp.prototype,"handleInputChange"),gp.prototype),c()(gp.prototype,"handleKeyDown",[dp],Object.getOwnPropertyDescriptor(gp.prototype,"handleKeyDown"),gp.prototype),c()(gp.prototype,"handleKeyUp",[up],Object.getOwnPropertyDescriptor(gp.prototype,"handleKeyUp"),gp.prototype),c()(gp.prototype,"handleButtonClick",[pp],Object.getOwnPropertyDescriptor(gp.prototype,"handleButtonClick"),gp.prototype),gp);var wp,Sp,Cp,Ap,Ep,Ip,kp,_p,Op;customElements.define("vic-e-smart-search-input",yp),i(73971);let xp=(wp=(0,S.hq)(".vic-m-smart-search-overlay__content"),Sp=(0,S.hq)(".vic-m-smart-search-overlay__smart-search"),Cp=(0,S.rF)("this","click"),Ap=(0,S.rF)("contentBox","click"),Ep=(0,S.rF)("window","keyup"),Ip=(0,S.rF)("smartSearch",P.pg),kp=class extends S.uA{constructor(){super({asyncRendering:!0}),T()(this,"contentBox",_p,this),T()(this,"smartSearch",Op,this)}get initialSearchTerm(){return this.getAttribute("initial-search-term")??void 0}get isOpen(){return(0,e.nB)(this,t.vP)}async renderAsync(){const{smartSearchOverlayTemplate:e}=await i.e(39561).then(i.bind(i,39561));(0,m.XX)(await e({initialSearchTerm:this.initialSearchTerm,handleClosingBtnClick:()=>this.close()}),this)}handleComponentClick(){this.close()}handleContentBoxClick(e){e.stopPropagation()}handleKeyUp(e){"Escape"===e.key&&this.close()}async handleSearchReset(){this.dispatchEvent(new CustomEvent(P.pg,{bubbles:!1})),await this.close()}async open(){!0!==this.isOpen&&((0,e.iQ)(this,t.vP),await(0,e.fm)(300),vn.A.trapFocusIn(this),qs.A.lockPage())}async close(){!1!==this.isOpen&&((0,e.vy)(this,t.vP),await(0,e.fm)(100),vn.A.unTrapFocusIn(this),qs.A.unlockPage(),this.dispatchEvent(new CustomEvent(P.yc,{bubbles:!1})),this.remove())}},_p=c()(kp.prototype,"contentBox",[wp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Op=c()(kp.prototype,"smartSearch",[Sp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}
299),c()(kp.prototype,"handleComponentClick",[Cp],Object.getOwnPropertyDescriptor(kp.prototype,"handleComponentClick"),kp.prototype),c()(kp.prototype,"handleContentBoxClick",[Ap],Object.getOwnPropertyDescriptor(kp.prototype,"handleContentBoxClick"),kp.prototype),c()(kp.prototype,"handleKeyUp",[Ep],Object.getOwnPropertyDescriptor(kp.prototype,"handleKeyUp"),kp.prototype),c()(kp.prototype,"handleSearchReset",[Ip],Object.getOwnPropertyDescriptor(kp.prototype,"handleSearchReset"),kp.prototype),kp);var Tp,Fp,Pp,Dp,Mp,Rp,Bp,Lp,Vp,Np,zp;customElements.define("vic-m-smart-search-overlay",xp);let qp=(Tp=(0,S.hq)(".vic-m-webinar-booking-overlay__title"),Fp=(0,S.hq)(".vic-m-webinar-booking-overlay__closing-btn"),Pp=(0,S.hq)(".vic-m-webinar-booking-overlay__content"),Dp=(0,S.hq)(".vic-m-webinar-booking-overlay__finish-btn"),Mp=(0,S.rF)("closingBtn","click"),Rp=(0,S.rF)("finishBtn","click"),Bp=class extends S.uA{constructor(){super({asyncRendering:!0}),this.bookingComponent=void 0,T()(this,"titleElement",Lp,this),T()(this,"closingBtn",Vp,this),T()(this,"contentBox",Np,this),T()(this,"finishBtn",zp,this)}get contentUrl(){return this.getAttribute("content-url")??""}get webinarSelectionHeadline(){return this.getAttribute("webinar-selection-headline")??""}get contactFormHeadline(){return this.getAttribute("contact-form-headline")??""}get successHeadline(){return this.getAttribute("success-headline")??""}get errorHeadline(){return this.getAttribute("error-headline")??""}get curHeadline(){return 0===this.activeStep?this.webinarSelectionHeadline:1===this.activeStep?this.contactFormHeadline:this.bookingComponent?.hasSuccess?this.successHeadline:this.bookingComponent?.hasError?this.errorHeadline:""}get activeStep(){return this.bookingComponent?.activeStep??0}async renderAsync(){const{webinarBookingOverlayTemplate:e}=await i.e(6623).then(i.bind(i,6623));(0,m.XX)(await e({title:this.webinarSelectionHeadline}),this)}afterComponentRender(){this.init()}
299async init(){(0,e.iQ)(this,t.is),await this.initBookingComponent(),(0,e.vy)(this,t.is)}async fetchContent(){const e=await f.A.fetchHTML(this.contentUrl,{cacheOptions:{validFor:Rn.Gf,requestBasedCaching:!0}});if(null===e)throw new Error("Failed to fetch content");return e}async initBookingComponent(){try{const t=await this.fetchContent();if(this.contentBox.innerHTML=t,this.bookingComponent=(0,e.I6)(this.contentBox,"vic-m-webinar-booking-component")??void 0,void 0===this.bookingComponent)throw new Error("Failed to initialize booking component");(0,e.MR)(this.bookingComponent,P.QR,this.handleBookingComponentStepChange,this)}catch(e){u.bD.error("Failed to initialize VICWebinarBookingOverlay",e)}}handleBookingComponentStepChange(){(0,e.p1)(this,t.BL,2===this.activeStep),this.titleElement.textContent=this.curHeadline}handleClosingBtnClick(){this.close()}handleFinishBtnClick(){this.close()}async open(){(0,e.iQ)(this,t.vP),await(0,e.fm)(300),vn.A.trapFocusIn(this),qs.A.lockPage()}async close(){(0,e.vy)(this,t.vP),await(0,e.fm)(300),vn.A.unTrapFocusIn(this),qs.A.unlockPage(),this.dispatchEvent(new CustomEvent(P.yc,{bubbles:!1})),this.remove()}},Lp=c()(Bp.prototype,"titleElement",[Tp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vp=c()(Bp.prototype,"closingBtn",[Fp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Np=c()(Bp.prototype,"contentBox",[Pp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zp=c()(Bp.prototype,"finishBtn",[Dp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Bp.prototype,"handleClosingBtnClick",[Mp],Object.getOwnPropertyDescriptor(Bp.prototype,"handleClosingBtnClick"),Bp.prototype),c()(Bp.prototype,"handleFinishBtnClick",[Rp],Object.getOwnPropertyDescriptor(Bp.prototype,"handleFinishBtnClick"),Bp.prototype),Bp);var Up,$p;customElements.define("vic-m-webinar-booking-overlay",qp);let jp=(Up=(0,S.rF)("this","click"),$p=class extends S.uA{constructor(...e){super(...e),this._bookingOverlay=void 0}get bookingOverlay(){return void 0!==this._bookingOverlay||(this._bookingOverlay=this.renderWebinarBookingOverlay()),this._bookingOverlay}get contentUrl(){return this.getAttribute("content-url")??""}get webinarSelectionHeadline(){return this.getAttribute("webinar-selection-headline")??""}get contactFormHeadline(){return this.getAttribute("contact-form-headline")??""}get successHeadline(){return this.getAttribute("success-headline")??""}get errorHeadline(){return this.getAttribute("error-headline")??""}handleClicked(){this.openWebinarBookingOverlay()}async renderWebinarBookingOverlay(){const t=document.createElement("vic-m-webinar-booking-overlay");return(0,e.iQ)(t,"vic-m-webinar-booking-overlay"),t.setAttribute("content-url",this.contentUrl),t.setAttribute("webinar-selection-headline",this.webinarSelectionHeadline),t.setAttribute("contact-form-headline",this.contactFormHeadline),t.setAttribute("success-headline",this.successHeadline),t.setAttribute("error-headline",this.errorHeadline),t.addEventListener(P.yc,()=>this._bookingOverlay=void 0,{once:!0}),document.body.appendChild(t),await(0,e.db)(t),t}async openWebinarBookingOverlay(){const e=await this.bookingOverlay;await e.open()}},c()($p.prototype,"handleClicked",[Up],Object.getOwnPropertyDescriptor($p.prototype,"handleClicked"),$p.prototype),$p);customElements.define("vic-e-webinar-booking-overlay-toggle",jp);var Hp,Kp,Qp,Gp,Wp,Xp,Jp,Yp,Zp,eg,tg,ig,sg=i(98645);class ag extends S.uA{constructor(){super({asyncRendering:!0}),this._hasFeedback=!1,this._contextState=void 0}get hasFeedback(){return this._hasFeedback}set hasFeedback(e){this._hasFeedback!==e&&(this._hasFeedback=e,this.renderAsync())}get contextState(){return void 0===this._contextState&&(this._contextState=u.ID.getContextState(gu.I.CONTEXT_STATE_NAME,this)),this._contextState}async getCurrentResult(){return(await this.contextState).getState("curResult")??null}async getCurrentSearchTerm(){return(await this.contextState).getState("curSearchTerm")??""}async renderAsync(){const{smartSearchFeedbackBoxTemplate:e}=await i.e(24675).then(i.bind(i,24675));(0,m.XX)(await e({showSuccess:this.hasFeedback,onThumbsUpClick:()=>this.onThumbsUpClick(),onThumbsDownClick:()=>this.onThumbsDownClick()}),this)}async sendFeedback(e){const t=await this.getCurrentResult();sg.A.sendEvent("click.action",{click:e,click_chapter1:"smart-search",click_chapter2:e,click_chapter3:t?.prompt??await this.getCurrentSearchTerm()})}onThumbsUpClick(){this.hasFeedback=!0,this.sendFeedback("Good")}onThumbsDownClick(){this.hasFeedback=!0,this.sendFeedback("Bad")}}customElements.define("vic-m-smart-search-feedback-box",ag);let ng=(Hp=(0,S.hq)(".vic-m-webinar-booking-box__cta"),Kp=(0,S.hq)(".vic-m-webinar-booking-box__back-btn"),Qp=(0,S.hq)(".vic-m-webinar-booking-box__booking-component"),Gp=(0,S.rF)("openingCta","click"),Wp=(0,S.rF)("backBtn","click"),Xp=(0,S.rF)("bookingComponent",P.lC),Jp=(0,S.rF)("bookingComponent",P.TZ),Yp=(0,S.rF)("bookingComponent",P.oV),Zp=class extends S.uA{constructor(...e){super(...e),T()(this,"openingCta",eg,this),T()(this,"backBtn",tg,this),T()(this,"bookingComponent",ig,this)}get activeStep(){return this.bookingComponent?.activeStep??0}handleOpeningCtaClick(){(0,e.iQ)(this,t.vP)}handleBackBtnClick(){0===this.activeStep?(0,e.vy)(this,t.vP):this.bookingComponent.handleBackBtnClick()}handleBookingLoading(){(0,e.p1)(this,t.F5,this.bookingComponent.isLoading)}handleBookingSuccess(){(0,e.iQ)(this,t.BL),this.dispatchEvent(new CustomEvent(P.TZ,{bubbles:!1}))}handleBookingError(){(0,e.iQ)(this,t.BL)}},eg=c()(Zp.prototype,"openingCta",[Hp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tg=c()(Zp.prototype,"backBtn",[Kp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ig=c()(Zp.prototype,"bookingComponent",[Qp],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Zp.prototype,"handleOpeningCtaClick",[Gp],Object.getOwnPropertyDescriptor(Zp.prototype,"handleOpeningCtaClick"),Zp.prototype),c()(Zp.prototype,"handleBackBtnClick",[Wp],Object.getOwnPropertyDescriptor(Zp.prototype,"handleBackBtnClick"),Zp.prototype),c()(Zp.prototype,"handleBookingLoading",[Xp],Object.getOwnPropertyDescriptor(Zp.prototype,"handleBookingLoading"),Zp.prototype),c()(Zp.prototype,"handleBookingSuccess",[Jp],Object.getOwnPropertyDescriptor(Zp.prototype,"handleBookingSuccess"),Zp.prototype),c()(Zp.prototype,"handleBookingError",[Yp],Object.getOwnPropertyDescriptor(Zp.prototype,"handleBookingError"),Zp.prototype),Zp);var rg,og,lg,cg;customElements.define("vic-m-webinar-booking-box",ng);let hg=(rg=(0,S.hq)(".vic-m-webinar-booking-teaser__booking-box"),og=(0,S.rF)("bookingBox",P.TZ),lg=class extends S.uA{constructor(...e){super(...e),T()(this,"bookingBox",cg,this)}handleBookingSuccess(){(0,e.iQ)(this,t.BL)}},cg=c()(lg.prototype,"bookingBox",[rg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(lg.prototype,"handleBookingSuccess",[og],Object.getOwnPropertyDescriptor(lg.prototype,"handleBookingSuccess"),lg.prototype),lg);customElements.define("vic-m-webinar-booking-teaser",hg);class dg{constructor(e,t){this.scrollContainer=void 0,this.wrapperContainer=void 0,this.scrollContainer=e,this.wrapperContainer=t,this.scrollContainer.addEventListener("scroll",()=>this.updateScrollClasses()),new ResizeObserver(()=>this.updateScrollClasses()).observe(this.scrollContainer),this.updateScrollClasses()}get scrollClassElement(){return this.wrapperContainer??this.scrollContainer}get canScrollRight(){return this.scrollContainer.offsetWidth-this.scrollContainer.scrollWidth+this.scrollContainer.scrollLeft!==0}get canScrollLeft(){return 0!==this.scrollContainer.scrollLeft}updateScrollClasses(){(0,e.p1)(this.scrollClassElement,t.zh,this.canScrollLeft),(0,e.p1)(this.scrollClassElement,t.Wb,this.canScrollRight)}}var ug,pg,gg,bg,mg,fg,vg,yg,wg,Sg,Cg,Ag,Eg,Ig,kg;let _g=(ug=(0,S.hq)(".vic-m-thumbnail-image-gallery__image"),pg=(0,S.hq)(".vic-m-thumbnail-image-gallery__thumbnails"),gg=(0,S.K3)(".vic-m-thumbnail-image-gallery__thumbnail"),bg=(0,S.hq)(".vic-m-thumbnail-image-gallery__nav-button--prev"),mg=(0,S.hq)(".vic-m-thumbnail-image-gallery__nav-button--next"),fg=(0,S.rF)("thumbnails","mouseover"),vg=(0,S.rF)("thumbnails","click"),yg=(0,S.rF)("prevBtn","click"),wg=(0,S.rF)("nextBtn","click"),Sg=class extends S.uA{constructor(...e){super(...e),this.thumbnailOptionsMap=new WeakMap,this._activeThumbn
299ail=void 0,T()(this,"mainImage",Cg,this),T()(this,"thumbnailsBox",Ag,this),T()(this,"thumbnails",Eg,this),T()(this,"prevBtn",Ig,this),T()(this,"nextBtn",kg,this)}get activeThumbnail(){return this._activeThumbnail??this.thumbnails[0]}set activeThumbnail(i){if(this._activeThumbnail===i)return;const s=this.thumbnailOptionsMap.get(i);void 0!==s&&((0,e.vy)(this.activeThumbnail,t.Hc),(0,e.iQ)(i,t.Hc),void 0!==s.alt&&this.mainImage.setAttribute("alt",s.alt),this.mainImage.setAttribute("src",s.src),void 0!==s.srcset&&this.mainImage.setAttribute("srcset",s.srcset),this._activeThumbnail=i)}afterComponentRender(){this.thumbnails.forEach(e=>{this.addThumbnailOptions(e)}),new dg(this.thumbnailsBox,this)}addThumbnailOptions(t){const i=(0,e.I6)(t,".vic-m-thumbnail-image-gallery__thumbnail-image");if(null===i)return;const s=i.getAttribute("src")??void 0,a=i.getAttribute("srcset")??void 0,n=i.getAttribute("alt")??void 0;void 0!==s&&this.thumbnailOptionsMap.set(t,{src:s,srcset:a,alt:n})}handleThumbnailHover(e){const t=e.target;this.activeThumbnail=t}handleThumbnailClick(e){const t=e.target;this.activeThumbnail=t}handlePrevBtnClick(){const e=.6*this.thumbnailsBox.offsetWidth;this.moveThumbnailsBoxTo(this.thumbnailsBox.scrollLeft-e)}handleNextBtnClick(){const e=.6*this.thumbnailsBox.offsetWidth;this.moveThumbnailsBoxTo(this.thumbnailsBox.scrollLeft+e)}moveThumbnailsBoxTo(e){this.thumbnailsBox.scrollTo({left:e,behavior:"smooth"})}},Cg=c()(Sg.prototype,"mainImage",[ug],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ag=c()(Sg.prototype,"thumbnailsBox",[pg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Eg=c()(Sg.prototype,"thumbnails",[gg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ig=c()(Sg.prototype,"prevBtn",[bg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kg=c()(Sg.prototype,"nextBtn",[mg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Sg.prototype,"handleThumbnailHover",[fg],Object.getOwnPropertyDescriptor(Sg.prototype,"handleThumbnailHover"),Sg.prototype),c()(Sg.prototype,"handleThumbnailClick",[vg],Object.getOwnPropertyDescriptor(Sg.prototype,"handleThumbnailClick"),Sg.prototype),c()(Sg.prototype,"handlePrevBtnClick",[yg],Object.getOwnPropertyDescriptor(Sg.prototype,"handlePrevBtnClick"),Sg.prototype),c()(Sg.prototype,"handleNextBtnClick",[wg],Object.getOwnPropertyDescriptor(Sg.prototype,"handleNextBtnClick"),Sg.prototype),Sg);var Og,xg,Tg;customElements.define("vic-m-thumbnail-image-gallery",_g);let Fg=(Og=(0,S.hq)(".vic-m-system-finder-component__iframe-container"),xg=class extends S.uA{constructor(...e){super(...e),T()(this,"iframeContainer",Tg,this)}get iframeUrlString(){return this.getAttribute("iframe-url")??""}get iframeUrl(){let e=window.location.search;e.startsWith("?")&&(e=e.slice(1));const t=window.location.origin+window.location.pathname;return(0,Z.UD)((0,Z.m$)(this.iframeUrlString,e),{leadFormUrl:t})}afterComponentRender(){this.init()}init(){const t=document.createElement("iframe");(0,e.iQ)(t,"vic-m-system-finder-component__iframe"),t.src=this.iframeUrl,this.iframeC
299ontainer.appendChild(t)}},Tg=c()(xg.prototype,"iframeContainer",[Og],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xg);customElements.define("vic-m-system-finder-component",Fg);var Pg,Dg,Mg,Rg,Bg,Lg,Vg,Ng,zg,qg=i(37407);let Ug=(Pg=(0,S.hq)(".vic-e-icon-filter-toggle__checkbox-input"),Dg=(0,S.hq)(".vic-e-icon-filter-toggle__link"),Mg=(0,S.rF)("this","click"),Rg=(0,S.rF)("this","keydown"),Bg=(0,S.rF)("link","click"),Lg=(0,S.rF)("link","keydown"),Vg=class extends S.uA{constructor(...e){super(...e),this._prefillPromise=void 0,T()(this,"hiddenInput",Ng,this),T()(this,"link",zg,this)}get prefillPromise(){return void 0===this._prefillPromise&&(this._prefillPromise=this.prefillInput()),this._prefillPromise}get name(){return this.getAttribute("name")??""}get prefillDisabled(){return this.hasAttribute("prefill-disabled")&&"false"!==this.getAttribute("prefill-disabled")}get prefillValue(){if(this.prefillDisabled)return null;const e=this.name;return""===e?null:u.tJ.get(e)}get isChecked(){return this.hasAttribute("is-checked")&&"false"!==this.getAttribute("is-checked")}set isChecked(e){e!==this.isChecked&&(e?this.setAttribute("is-checked",""):this.removeAttribute("is-checked"),this.dispatchChangeEvent(),this.updateHiddenInput())}afterComponentRender(){this.init()}
299async init(){await this.prefillPromise,this.updateHiddenInput()}async waitForValueInitialization(){await this.prefillPromise}async prefillInput(){await Promise.resolve();const e=this.prefillValue;null!==e&&(this.isChecked="false"!==e)}handleClick(){this.isChecked=!this.isChecked}handleKeydown(e){"Enter"===e.key&&(e.preventDefault(),this.isChecked=!this.isChecked)}handleLinkClick(e){e.stopPropagation()}handleLinkKeydown(e){e.stopPropagation()}updateHiddenInput(){this.hiddenInput.checked=this.isChecked}dispatchChangeEvent(){this.dispatchEvent(new Event(P.fr,{bubbles:!1}))}},Ng=c()(Vg.prototype,"hiddenInput",[Pg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zg=c()(Vg.prototype,"link",[Dg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Vg.prototype,"handleClick",[Mg],Object.getOwnPropertyDescriptor(Vg.prototype,"handleClick"),Vg.prototype),c()(Vg.prototype,"handleKeydown",[Rg],Object.getOwnPropertyDescriptor(Vg.prototype,"handleKeydown"),Vg.prototype),c()(Vg.prototype,"handleLinkClick",[Bg],Object.getOwnPropertyDescriptor(Vg.prototype,"handleLinkClick"),Vg.prototype),c()(Vg.prototype,"handleLinkKeydown",[Lg],Object.getOwnPropertyDescriptor(Vg.prototype,"handleLinkKeydown"),Vg.prototype),Vg);var $g,jg;customElements.define("vic-e-icon-filter-toggle",Ug);let Hg=($g=(0,h.sg)(100),jg=class t extends S.uA{constructor(...e){super(...e),this.initPromise=void 0,this._installerSearchContextState=void 0,this.filterBoxesConfig=void 0}get filterSelectBoxes(){return(0,e.JW)(this,".vic-m-installer-search-filter-box__filter--select")}get filterMultiSelectBoxes(){return(0,e.JW)(this,".vic-m-installer-search-filter-box__filter--multi-select")}get filterCheckBoxes(){return(0,e.JW)(this,".vic-m-installer-search-filter-box__filter--checkbox")}get filterIconToggles(){return(0,e.JW)(this,".vic-m-installer-search-filter-box__filter--icon-toggle")}get dynamicFilterBox(){return(0,e.I6)(this,".vic-m-installer-search-filter-box__filter--dynamic")}get installerSearchContextState(){return void 0===this._installerSearchContextState&&(this._installerSearchContextState=u.ID.getContextState(qg.G.CONTEXT_STATE_NAME,this)),this._installerSearchContextState}async getSelectedFilters(){return(await this.installerSearchContextState).getState("selectedFilters")??[]}async getInstallerSearchService(){const e=await this.installerSearchContextState,t=e.getState("searchService");return void 0!==t?t:new Promise(t=>{e.observeState("searchService",()=>this.waitForSearchServiceInit(t))})}async waitForSearchServiceInit(e){const t=await this.installerSearchContextState,i=t.getState("searchService");void 0!==i&&(t.unobserveState("searchService",()=>this.waitForSearchServiceInit(e)),e(i))}async getFilterBoxesConfig(){if(void 0===this.filterBoxesConfig){const e=await this.getInstallerSearchService();this.filterBoxesConfig=await(e?.getFilterBoxesConfig())??void 0}return this.filterBoxesConfig}async hasDynamicFilterSlot(){const e=await this.getFilterBoxesConfig();return void 0!==e&&void 0!==e.secondSlot&&"dynamic"===e.secondSlot.type}afterComponentRender(){this.initPromise=this.init()}
299async init(){await this.renderFilterBoxes(),await this.initContextState(),this.dispatchEvent(new CustomEvent(P.ME,{bubbles:!1}))}async initContextState(){const e=await this.installerSearchContextState,t=await this.getSelectedFiltersFromFilterBoxes();e.setState("selectedFilters",t),e.observeState("selectedFilters",()=>this.handleSelectedFiltersChange())}async renderFilterBoxes(){const e=await this.getFilterBoxesConfig();if(void 0===e)return;const{installerSearchFilterBoxTemplate:t}=await i.e(89539).then(i.bind(i,89539));(0,m.XX)(t(await this.getCurrentFilterBoxRenderArgs(e)),this)}waitForInitialization(){return void 0===this.initPromise&&(this.initPromise=new Promise(e=>{this.addEventListener(P.ME,()=>e(),{once:!0})})),this.initPromise}async getCurrentFilterBoxRenderArgs(e){return{firstFilterBox:{...e.firstSlot,isDynamic:!1,isMultiSelect:e.firstSlot.isMultiSelect??!1,options:e.firstSlot.options.map(e=>({label:e.label,value:e.value,iconId:e.iconId,iconSrc:e.iconSrc,iconLink:e.iconLink,selected:!1}))},secondFilterBox:await this.get
299SecondSlotArgs(),handleFilterBoxChange:e=>this.handleFilterBoxChange(e)}}async getSecondSlotArgs(){const e=await this.getFilterBoxesConfig();if(void 0===e)return;const i=e.secondSlot;if(void 0===i)return;if("static"===i.type)return this.getStaticSecondSlotArgs(i);const s=u.tJ.get(e.firstSlot.name);if(null===s)return;const a=t.getFilterTagOptionsFromString(s),n=this.getDynamicSlotOptions([a],i);return 0!==n.filter(e=>""!==e.value).length?{...i,isMultiSelect:!1,isDynamic:!0,options:n.map(e=>({label:e.label,value:e.value,iconId:e.iconId,iconSrc:e.iconSrc,iconLink:e.iconLink,selected:!1}))}:void 0}getStaticSecondSlotArgs(e){return{...e,isDynamic:!1,isMultiSelect:e.isMultiSelect??!1,options:e.options.map(e=>({label:e.label,value:e.value,iconId:e.iconId,iconSrc:e.iconSrc,iconLink:e.iconLink,selected:!1}))}}async renderDynamicFilterBox(e,s){const{renderFilterBox:a}=await i.e(89539).then(i.bind(i,89539)),n=document.createDocumentFragment();(0,m.XX)(a({isDynamic:!0,isMultiSelect:!1,label:e.label,name:e.name,options:e.options.map(e=>({label:e.label,value:e.value,iconId:e.iconId,iconSrc:e.iconSrc,iconLink:e.iconLink,selected:s.some(i=>t.filterTagOptionsToString(i)===e.value)}))},e=>this.handleFilterBoxChange(e),!0),n),this.dynamicFilterBox?.remove(),this.appendChild(n)}async handleSelectedFiltersChange(){await this.updateFilterBoxes()}async handleFilterBoxChange(e){const t=await this.hasDynamicFilterSlot(),i=await this.getFilterBoxesConfig();i?.firstSlot.name===e&&t&&await this.updateDynamicFilterBox(await this.get
299SelectedFiltersFromFilterBoxes());const s=await this.getSelectedFiltersFromFilterBoxes();(await this.installerSearchContextState).setState("selectedFilters",s)}async getSelectedFiltersFromFilterBoxes(){return[...await this.getSelectedFiltersFromSelectBoxes(),...await this.getSelectedFiltersFromMultiSelectBoxes(),...await this.getSelectedFiltersFromCheckBoxes(),...await this.getSelectedFiltersFromIconToggles()]}async getSelectedFiltersFromSelectBoxes(){return await Promise.all(this.filterSelectBoxes.map(async t=>{await(0,e.db)(t),await t.waitForFormFieldInit()})),this.filterSelectBoxes.map(e=>t.getFilterOptionsFromSelect(e)).filter(e=>""!==e.groupKey&&""!==e.tagKey)}async getSelectedFiltersFromMultiSelectBoxes(){return await Promise.all(this.filterMultiSelectBoxes.map(async t=>{await(0,e.db)(t)})),this.filterMultiSelectBoxes.flatMap(e=>t.getFilterOptionsFromMultiSelect(e)).filter(e=>""!==e.groupKey&&""!==e.tagKey)}async getSelectedFiltersFromCheckBoxes(){return await Promise.all(this.filterCheckBoxes.map(async t=>{await(0,e.db)(t),await t.waitForFormFieldInit()})),this.filterCheckBoxes.filter(e=>e.isChecked).map(e=>({selectBoxName:"CHECKBOX",...t.getFilterTagOptionsFromString(e.name??"")}))}async getSelectedFiltersFromIconToggles(){return await Promise.all(this.filterIconToggles.map(async t=>{await(0,e.db)(t),await t.waitForValueInitialization()})),this.filterIconToggles.filter(e=>e.isChecked).map(e=>({selectBoxName:"ICON_TOGGLE",...t.getFilterTagOptionsFromString(e.name??"")}))}
299async updateFilterBoxes(){const e=await this.getSelectedFilters();await this.updateFilterSelectBoxes(e),await this.updateFilterMultiSelectBoxes(e),await this.updateFilterCheckBoxes(e),await this.updateFilterIconToggles(e),await this.hasDynamicFilterSlot()&&await this.updateDynamicFilterBox(e)}async updateFilterSelectBoxes(i){await Promise.all(this.filterSelectBoxes.map(t=>(0,e.db)(t))),await Promise.all(this.filterSelectBoxes.map(e=>t.updateFilterSelectBox(e,i)))}static async updateFilterSelectBox(e,i){const s=e.name||"",a=i.find(e=>e.selectBoxName===s);void 0===a?await e.reset(!0):e.updateSelectedValue(t.filterTagOptionsToString(a))}async updateFilterMultiSelectBoxes(i){await Promise.all(this.filterMultiSelectBoxes.map(t=>(0,e.db)(t))),await Promise.all(this.filterMultiSelectBoxes.map(e=>t.updateFilterMultiSelectBox(e,i)))}static async updateFilterMultiSelectBox(e,i){const s=e.name||"",a=i.filter(e=>e.selectBoxName===s);if(0===a.length)await e.reset();else{const i=a.map(e=>t.filterTagOptionsToString(e));e.updateSelectedValues(i)}}async updateFilterCheckBoxes(i){void 0!==this.filterCheckBoxes&&(await Promise.all(this.filterCheckBoxes.map(t=>(0,e.db)(t))),this.filterCheckBoxes.map(e=>t.updateFilterCheckBox(e,i)))}static updateFilterCheckBox(e,i){const s=i.filter(e=>"CHECKBOX"===e.selectBoxName).find(i=>t.filterTagOptionsToString(i)===e.name);e.isChecked=void 0!==s}async updateFilterIconToggles(i){void 0!==this.filterIconToggles&&(await Promise.all(this.filterIconToggles.map(t=>(0,e.db)(t))),this.filterIconToggles.map(e=>t.updateFilterIconToggle(e,i)))}static updateFilterIconToggle(e,i){const s=i.filter(e=>"ICON_TOGGLE"===e.selectBoxName).find(i=>t.filterTagOptionsToString(i)===e.name);e.isChecked=void 0!==s}static getFilterTagOptionsFromString(e){const[t="",i=""]=e.split(/_(.+)/)||[];return{groupKey:t,tagKey:i}}static filterTagOptionsToString(e){return`${e.groupKey}_${e.tagKey}`}static getFilterOptionsFromSelect(e){return{selectBoxName:e.name,...t.getFilterTagOptionsFromString(e.submitValue??"")}}static getFilterOptionsFromMultiSelect(e){return e.currentSelection.map(i=>({selectBoxName:e.name??"",...t.getFilterTagOptionsFromString(i)}))}async updateDynamicFilterBox(e){if(0===e.length)return void this.dynamicFilterBox?.remove();const t=await this.getFilterBoxesConfig();if("dynamic"!==t?.secondSlot?.type)return;const i=this.getDynamicSlotOptions(e,t.secondSlot),s=i.filter(e=>""!==e.value),a=this.dynamicFilterBox;if(null===a&&0===i.length)return;if(0===s.length)return void a?.remove();const n={...t.secondSlot,options:i};null!==a?a instanceof ve?await this.updateDynamicSelect(a,n,e):(a instanceof ce||a instanceof Ug)&&await this.renderDynamicFilterBox(n,e):await this.renderDynamicFilterBox(n,e)}async updateDynamicSelect(e,i,s){if(1===i.options.filter(e=>""!==e.value).length)return void await this.renderDynamicFilterBox(i,s);await e.updateSelectOptions(i.options.map(e=>({label:e.label,value:e.value,selected:!1,disabled:!1,dataset:{}})),{ignorePrefill:!0});const a=i.options.find(e=>s.some(i=>t.filterTagOptionsToString(i)===e.value));void 0!==a?e.updateSelectedValue(a.value):e.reset(!0)}getDynamicSlotOptions(e,i){return i.options.filter(i=>t.filterConditionsMet(i.conditions??[],e))}static filterConditionsMet(e,i){return 0===e.length||e.some(e=>void 0!==i.find(i=>t.filterTagOptionsToString(i)===e))}},c()(jg.prototype,"handleFilterBoxChange",[$g],Object.getOwnPropertyDescriptor(jg.prototype,"handleFilterBoxChange"),jg.prototype),jg);customElements.define("vic-m-installer-search-filter-box",Hg);const Kg=new class{async getMatchesFor(e){try{const t=await u.Wn.fetchResponse(e.apiUrl,{fetchOptions:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e.searchTerm,token:await this.getReCaptchaToken(e)})}});if(null===t)throw new Error("API not responding");if(404===t.status)return[];if(200!==t.status)throw new Error(`API Error with status code: ${t.status}`);return(await t.json()).matches??[]}catch(e){return u.bD.error("DomainTransitionSearchService","getMatchesFor",e),null}}async getReCaptchaToken(e){const{includeReCaptchaToken:t=!1}=e;if(!1!==t)return await Ue.executeRecaptcha("domain_transition_search")}};var Qg,Gg,Wg,Xg,Jg,Yg;let Zg=(Qg=(0,S.hq)(".vic-m-domain-transition-search__search-input"),Gg=(0,S.hq)(".vic-m-domain-transition-search__search-results"),Wg=(0,S.rF)("searchInput",P.eS),Xg=class extends S.uA{constructor(...e){super(...e),T()(this,"searchInput",Jg,this),T()(this,"resultBox",Yg,this)}get curSearchTerm(){return this.searchInput.currentValue??""}get apiUrl(){return this.getAttribute("api-url")??""}afterComponentRender(){Ue.loadRecaptchaInstance()}async searchForCurrentTerm(){if(""===this.apiUrl)return void u.bD.error("VICDomainTransitionSearch: ","api-url attribute is not set. Please provide a valid API URL.");await this.renderPlaceholders();const e=await Kg.getMatchesFor({searchTerm:this.curSearchTerm,apiUrl:this.apiUrl,includeReCaptchaToken:!0});if(null===e)return void await this.renderDefaultErrorMessage();if(0===e.length)return void await this.renderNoResultErrorMessage();const{renderResults:t}=await i.e(97753).then(i.bind(i,97753));(0,m.XX)(t(e),this.resultBox)}handleSearchInputSubmit(){this.searchForCurrentTerm()}async renderPlaceholders(){const{renderPlaceholders:e}=await i.e(97753).then(i.bind(i,97753));(0,m.XX)(e(),this.resultBox)}async renderNoResultErrorMessage(){const{renderErrorMessage:e}=await i.e(97753).then(i.bind(i,97753)),t=await Ne.A.getValueOrDefault("viessmann.corporate.domainTransitionSearch.errorMessage.noResult","");(0,m.XX)(e(t),this.resultBox)}async renderDefaultErrorMessage(){const{renderErrorMessage:e}=await i.e(97753).then(i.bind(i,97753)),t=await Ne.A.getValueOrDefault("viessmann.corporate.domainTransitionSearch.errorMessage.defaultError","");(0,m.XX)(e(t),this.resultBox)}},Jg=c()(Xg.prototype,"searchInput",[Qg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yg=c()(Xg.prototype,"resultBox",[Gg],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Xg.prototype,"handleSearchInputSubmit",[Wg],Object.getOwnPropertyDescriptor(Xg.prototype,"handleSearchInputSubmit"),Xg.prototype),Xg);customElements.define("vic-m-domain-transition-search",Zg);const eb=new class{async getServiceStatus(e){try{const t=`${await this.getApiBaseUrl()}/${e}/summary`,i=await f.A.fetchJSON(t);if(null===i)throw new Error("Service status API not responding");return i.status}catch(e){return u.bD.error("Error fetching service status:",e),null}}async getApiBaseUrl(){const e=await p.A.getConfigItem("serviceStatusApiBaseUrl");if(void 0===e)throw new Error("serviceStatusApiBaseUrl URL is not configured.");return e}};var tb,ib,sb,ab,nb,rb,ob;let lb=(tb=(0,S.hq)(".vic-m-service-status-tag__icon"),ib=(0,S.hq)(".vic-m-service-status-tag__description"),sb=(0,S.rF)("this","click"),ab=(0,S.rF)("this","keyup"),nb=class extends S.uA{constructor(...e){super(...e),T()(this,"icon",rb,this),T()(this,"descriptionElement",ob,this)}get appId(){return this.getAttribute("app-id")??""}get isLoaded(){return this.hasAttribute("is-loaded")&&"false"!==this.getAttribute("is-loaded")}set isLoaded(e){this.isLoaded!==e&&(!0===e?this.setAttribute("is-loaded",""):this.removeAttribute("is-loaded"))}get isOpen(){return this.hasAttribute("is-open")&&"false"!==this.getAttribute("is-open")}set isOpen(e){this.isOpen!==e&&(!0===e?(this.setAttribute("is-open",""),this.setAttribute("aria-expanded","true")):(this.removeAttribute("is-open"),this.setAttribute("aria-expanded","fal
299se")))}get hasDescription(){return""!==this.descriptionElement.textContent}afterComponentRender(){this.init()}async init(){const e=await eb.getServiceStatus(this.appId);this.icon.iconId=this.getIconIdForStatus(e??void 0),await this.updateDescription(e??void 0),await this.updateIconLabel(e??void 0),null!==e&&this.setAttribute("status",e),this.isLoaded=!0}handleClick(){!1!==this.isLoaded&&!1!==this.hasDescription&&(this.isOpen=!this.isOpen)}handleKeyUp(e){"Enter"===e.key&&this.handleClick()}async updateDescription(e){const t=await Ne.A.getValue(`viessmann.corporate.serviceStatusItem.description.${e??"unknown"}`);this.descriptionElement.textContent=t??"",""!==this.descriptionElement.textContent&&this.setAttribute("tabIndex","0")}async updateIconLabel(e){const t=await Ne.A.getValue(`viessmann.corporate.serviceStatusItem.iconLabel.${e??"unknown"}`);this.icon.ariaLabel=t??""}getIconIdForStatus(e){return"operational"===e?"vic-icon-state-success":"under_maintenance"===e||"degraded_performance"===e||"partial_outage"===e?"vic-icon-state-error":"major_outage"===e?"vic-icon-close-circle":"vic-icon-fullscreen-mode"}},rb=c()(nb.prototype,"icon",[tb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ob=c()(nb.prototype,"descriptionElement",[ib],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(nb.prototype,"handleClick",[sb],Object.getOwnPropertyDescriptor(nb.prototype,"handleClick"),nb.prototype),c()(nb.prototype,"handleKeyUp",[ab],Object.getOwnPropertyDescriptor(nb.prototype,"handleKeyUp"),nb.prototype),nb);var cb,hb,db;customElements.define("vic-m-service-status-tag",lb);let ub=(cb=(0,S.hq)(".vic-m-service-status-category__last-updated"),hb=class extends S.uA{constructor(...e){super(...e),T()(this,"lastUpdatedEl",db,this)}afterComponentRender(){this.setLastUpdated(),this.setAttribute("is-loaded","")}setLastUpdated(){const e=(new Date).toLocaleDateString(navigator.language,{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"});this.lastUpdatedEl.textContent=(0,Ve.F)(this.lastUpdatedEl.textContent??"",{lastUpdated:e})}},db=c()(hb.prototype,"lastUpdatedEl",[cb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hb);var pb,gb,bb,mb,fb,vb,yb,wb,Sb,Cb,Ab,Eb,Ib,kb,_b;customElements.define("vic-m-service-status-category",ub);let Ob=(pb=(0,S.hq)(".vic-e-multi-select__input-box"),gb=(0,S.hq)(".vic-e-multi-select__input"),bb=(0,S.hq)(".vic-e-multi-select__flyout"),mb=(0,S.rF)("inputBox","click"),fb=(0,S.rF)("this","click"),vb=(0,S.rF)("window","click"),yb=(0,S.rF)("window",P.Co),wb=(0,S.rF)("input","focusin"),Sb=(0,S.rF)("input","focusout"),Cb=(0,S.rF)("input","keyup"),Ab=(0,S.rF)("flyout","keyup"),Eb=class extends S.uA{constructor(){super({asyncRendering:!0}),this.uuid=(0,K.A)(),this.optionMap=new Map,this._hasFocus=!1,T()(this,"inputBox",Ib,this),T()(this,"input",kb,this),T()(this,"flyout",_b,this)}get name(){return this.getAttribute("name")||void 0}get label(){return this.getAttribute("label")||void 0}get placeholder(){return this.getAttribute("placeholder")||void 0}get prefilledValues(){return void 0===this.name?[]:u.tJ.getAll(this.name)??[]}get hasFocus(){return this._hasFocus}set hasFocus(i){i!==this._hasFocus&&(this._hasFocus=i,(0,e.p1)(this,t.L_,i))}get isOpen(){return this.hasAttribute("is-open")&&"false"!==this.getAttribute("is-open")}set isOpen(e){e!==this.isOpen&&(e?(this.setAttribute("is-open",""),window.dispatchEvent(new CustomEvent(P.Co,{detail:{target:this}}))):this.removeAttribute("is-open"))}get options(){return Array.from(this.optionMap.values())}get selectedOptions(){return this.options.filter(e=>e.selected)}get currentSelection(){return this.selectedOptions.map(e=>e.value)}get currentDisplayValue(){const e=this.selectedOptions;return 0===e.length?this.placeholder:e[0].label}get filterValue(){return void 0===this.name||0===this.currentSelection.length?null:this.currentSelection}async renderAsync(){this.initOptionMap(),await this.renderCurrentUI()}async renderCurrentUI(){const{multiSelectTemplate:e}=await i.e(35531).then(i.bind(i,35531));(0,m.XX)(e({id:this.uuid,label:this.label,options:this.options,curDisplayValue:this.currentDisplayValue,selectedOptions:this.selectedOptions,closeFlyoutCb:()=>this.closeFlyout(),selectionChangedCb:e=>this.handleSelectionChanged(e)}),this)}initOptionMap(){const t=(0,e.JW)(this,".vic-e-multi-select__option"),i=this.prefilledValues;t.map(e=>{const t=e.getAttribute("value")||"";return{id:e.getAttribute("id")||(0,K.A)(),label:e.innerText.trim()||"",value:t,selected:i.includes(t)||e.hasAttribute("data-selected")&&"false"!==e.getAttribute("data-selected")}}).filter(e=>
299""!==e.label&&""!==e.value).forEach(e=>this.optionMap.set(e.id,e))}handleInputBoxClick(){this.toggleFlyout()}handleComponentClick(e){e.stopPropagation()}handleWindowClick(){this.closeFlyout()}handleGeneralFlyoutOpen({detail:{target:e}}){e!==this&&this.closeFlyout()}handleInputFocusIn(){this.hasFocus=!0}handleInputFocusOut(){this.hasFocus=!1}handleInputKeyup(e){"Enter"===e.key&&this.toggleFlyout()}handleFlyoutEscape(e){"Escape"===e.key&&this.closeFlyout()}handleSelectionChanged(e){this.updateOption({...e})}toggleFlyout(){this.isOpen?this.closeFlyout():this.openFlyout()}openFlyout(){this.isOpen=!0}closeFlyout(){this.isOpen=!1}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent(P.aA,{bubbles:!1}))}async updateOption(e){this.optionMap.set(e.id,e),this.dispatchChangeEvent(),await this.renderCurrentUI()}async updateOptions(e,t=!0){this.optionMap.clear(),e.forEach(e=>this.optionMap.set(e.id,e)),!1===t&&this.dispatchChangeEvent(),await this.renderCurrentUI()}async updateSelectedValues(e,t=!0){this.optionMap.forEach((t,i)=>{this.optionMap.set(i,{...t,selected:e.includes(t.value)})}),!1===t&&this.dispatchChangeEvent(),await this.renderCurrentUI()}async reset(e=!0){this.optionMap.forEach((e,t)=>{this.optionMap.set(t,{...e,selected:!1})}),!1===e&&this.dispatchChangeEvent(),await this.renderCurrentUI()}},Ib=c()(Eb.prototype,"inputBox",[pb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kb=c()(Eb.prototype,"input",[gb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_b=c()(Eb.prototype,"flyout",[bb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Eb.prototype,"handleInputBoxClick",[mb],Object.getOwnPropertyDescriptor(Eb.prototype,"handleInputBoxClick"),Eb.prototype),c()(Eb.prototype,"handleComponentClick",[fb],Object.getOwnPropertyDescriptor(Eb.prototype,"handleComponentClick"),Eb.prototype),c()(Eb.prototype,"handleWindowClick",[vb],Object.getOwnPropertyDescriptor(Eb.prototype,"handleWindowClick"),Eb.prototype),c()(Eb.prototype,"handleGeneralFlyoutOpen",[yb],Object.getOwnPropertyDescriptor(Eb.prototype,"handleGeneralFlyoutOpen"),Eb.prototype),c()(Eb.prototype,"handleInputFocusIn",[wb],Object.getOwnPropertyDescriptor(Eb.prototype,"handleInputFocusIn"),Eb.prototype),c()(Eb.prototype,"handleInputFocusOut",[Sb],Object.getOwnPropertyDescriptor(Eb.prototype,"handleInputFocusOut"),Eb.prototype),c()(Eb.prototype,"handleInputKeyup",[Cb],Object.getOwnPropertyDescriptor(Eb.prototype,"handleInputKeyup"),Eb.prototype),c()(Eb.prototype,"handleFlyoutEscape",[Ab],Object.getOwnPropertyDescriptor(Eb.prototype,"handleFlyoutEscape"),Eb.prototype),Eb);customElements.define("vic-e-multi-select",Ob);var xb=i(44571);const Tb=new class{async getDownloadsFor(e){const t=await this.getEndpointUrl(),i=await f.A.fetchJSON(t,{fetchOptions:{method:"POST",body:JSON.stringify({products:e}),headers:{"Content-Type":"application/json"}},cacheOptions:{validFor:Rn.Gf,cacheKeys:e}});if(null===i)throw new Error("Failed to fetch product downloads");return this.getDownloadsFromResponse(i)}getDownloadsFromResponse(e){return e.flatMap(e=>e.assetReferences.flatMap(e=>e.assets.filter(e=>this.isValidAsset(e)))).filter((e,t,i)=>i.findIndex(t=>t._id===e._id)===t)}isValidAsset(e){if(!1===e.metadata.accessLevels.includes("endUser"))return!1;const{validFrom:t,validTo:i}=e.assetValidity;return!(void 0!==t&&!1===Fu(new Date(t))||void 0!==i&&!0===Fu(new Date(i)))}async getEndpointUrl(){const e=await p.A.getConfigItem("productDownloadsEndpointUrl");if(void 0===e)throw new Error("productDownloadsEndpointUrl is not configured");return e}};var Fb,Pb,Db,Mb=i(31123);let Rb=(Fb=(0,S.hq)(".vic-m-pim-downloads__tiles-box"),Pb=class extends S.uA{constructor(...e){super(...e),this._productIds=void 0,T()(this,"tilesBox",Db,this)}get productIds(){return void 0===this._productIds&&(this._productIds=this.getProductIds()),this._productIds}afterComponentRender(){this.init()}
299async init(){await this.renderContent()}async renderContent(){try{const e=await Tb.getDownloadsFor(this.productIds);if(0===e.length)return void await this.handleNoResults();const{tileListTemplate:t}=await i.e(72303).then(i.bind(i,72303));(0,Mb.X)(t({tiles:e.map((t,i)=>({headline:`${t.assetSubtype.value} ${t.metadata.title}`,text:`${t.fileInfo.extension.toUpperCase()} - ${(0,xb.O)(t.fileInfo.size)}`,url:t.fileInfo.rawUrl,isFullWidth:0===i&&e.length%2==1}))}),this.tilesBox,{clearSSRContent:!0})}catch(e){u.bD.error("VICPimDownloads:",e),await this.handleServerError()}}async handleNoResults(){const e=await Ne.A.getValueOrDefault("viessmann.corporate.pimDownloads.errorMessage.empty","");await this.renderError(e)}async handleServerError(){const e=await Ne.A.getValueOrDefault("viessmann.corporate.pimDownloads.errorMessage.error","");await this.renderError(e)}async renderError(e){const{errorMessageTemplate:t}=await i.e(72303).then(i.bind(i,72303));(0,Mb.X)(t(e),this.tilesBox,{clearSSRContent:!0})}getProductIds(){const e=[],t=this.attributes;for(let i=t.length-1;i>=0;i--){const s=this.getProductId(t[i]);s&&e.push(s)}return e}getProductId(e){if(!1!==e.name.startsWith("product-id-"))return e.value}},Db=c()(Pb.prototype,"tilesBox",[Fb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pb);var Bb,Lb,Vb,Nb,zb,qb;customElements.define("vic-m-pim-downloads",Rb);let Ub=(Bb=(0,S.hq)(".vic-e-range-filter__input:first-of-type"),Lb=(0,S.hq)(".vic-e-range-filter__input:last-of-type"),Vb=(0,h.sg)(300),Nb=class extends S.uA{constructor(){super({asyncRendering:!0}),this.uuid=(0,K.A)(),T()(this,"minInput",zb,this),T()(this,"maxInput",qb,this)}get name(){return this.getAttribute("name")??""}get label(){return this.getAttribute("label")??""}get min(){const e=this.getAttribute("min");return e?Number(e):void 0}get max(){const e=this.getAttribute("max");return e?Number(e):void 0}get step(){const e=this.getAttribute("step");return e?Number(e):void 0}get minInputValue(){const e=this.minInput.value??"";if(""===e)return;const t=Number(e);return isNaN(t)?void 0:t}get maxInputValue(){const e=this.maxInput.value??"";if(""===e)return;const t=Number(e);return isNaN(t)?void 0:t}get currentFilterRange(){if(void 0!==this.minInputValue||void 0!==this.maxInputValue)return{name:this.name,min:this.minInputValue,max:this.maxInputValue}}async renderAsync(){const{template:e}=await i.e(52903).then(i.bind(i,52903));(0,Mb.X)(await e({uuid:this.uuid,label:this.label,minValue:this.min,maxValue:this.max,step:this.step,minPlaceholder:this.min,maxPlaceholder:this.max,handleInputChange:()=>this.handleInputChange()}),this,{clearSSRContent:!0})}focus(e){this.minInput.focus(e)}handleInputChange(){void 0!==this.minInputValue&&(this.maxInput.min=this.minInputValue.toString()),void 0!==this.maxInputValue&&(this.minInput.max=this.maxInputValue.toString()),this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1}))}clear(){this.minInput.value="",this.minInput.max=void 0!==this.max?this.max.toString():"",this.maxInput.value="",this.maxInput.min=void 0!==this.min?this.min.toString():""}},zb=c()(Nb.prototype,"minInput",[Bb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qb=c()(Nb.prototype,"maxInput",[Lb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Nb.prototype,"handleInputChange",[Vb],Object.getOwnPropertyDescriptor(Nb.prototype,"handleInputChange"),Nb.prototype),Nb);customElements.define("vic-e-range-filter",Ub);class $b extends S.uA{constructor(){super({asyncRendering:!0}),this._stepsFinished=0,this._nextBlocked=!1,this._prevBlocked=!1,this._submitActive=!1,this._isLoading=!1,this._nextBtnLabelOverride=void 0}static get observedAttributes(){return["available-steps","skip-allowed"]}attributeChangedCallback(e,t,i){t!==i&&this.renderAsync()}get skipAllowed(){return this.hasAttribute("skip-allowed")&&"false"!==this.getAttribute("skip-allowed")}set skipAllowed(e){this.skipAllowed!==e&&(!0===e?this.setAttribute("skip-allowed","true"):this.removeAttribute("skip-allowed"),this.renderAsync())}get skipDisabled(){return this.hasAttribute("skip-disabled")&&"false"!==this.getAttribute("skip-disabled")}set skipDisabled(e){this.skipDisabled!==e&&(this.toggleAttribute("skip-disabled",e),this.renderAsync())}get nextBtnLabelOverride(){return this._nextBtnLabelOverride}set nextBtnLabelOverride(e){this._nextBtnLabelOverride!==e&&(this._nextBtnLabelOverride=e,this.renderAsync())}get isLoading(){return this._isLoading}set isLoading(e){this._isLoading!==e&&(this._isLoading=e,this.renderAsync())}get availableSteps(){return parseInt(this.getAttribute("available-steps")||"0",10)}set availableSteps(e){this.availableSteps!==e&&(this.setAttribute("available-steps",e.toString()),this.renderAsync(),this.dispatchChangeEvent())}get stepsFinished(){return this._stepsFinished}set stepsFinished(e){this._stepsFinished!==e&&(this._stepsFinished=e,this.renderAsync(),this.dispatchChangeEvent(),this.dispatchStepChangeEvent())}get submitActive(){return this._submitActive}set submitActive(e){this._submitActive!==e&&(this._submitActive=e,this.renderAsync())}get lastStepActive(){return!!this.submitActive||this.stepsFinished>0&&this.stepsFinished===this.availableSteps}get nextBlocked(){return this._nextBlocked}set nextBlocked(e){this._nextBlocked!==e&&(this._nextBlocked=e,this.renderAsync())}get prevBlocked(){return this._prevBlocked}set prevBlocked(e){this._prevBlocked!==e&&(this._prevBlocked=e,this.renderAsync())}async renderAsync(){const{questionnaireNavigationTemplate:e}=await i.e(511).then(i.bind(i,511));(0,m.XX)(await e({stepsFinished:this.stepsFinished,availableSteps:this.availableSteps,submitActive:this.submitActive,nextBlocked:this.nextBlocked,prevBlocked:this.prevBlocked,skipAllowed:this.skipAllowed,skipDisabled:this.skipDisabled,isLoading:this.isLoading,nextBtnLabelOverride:this.nextBtnLabelOverride,handleNextClick:()=>this.handleNextClick(),handlePrevClick:()=>this.handlePrevClick(),handleSkipClick:()=>this.handleSkipClick()}),this.getUiRoot())}handlePrevClick(){this.stepsFinished<0||this.stepsFinished--}handleNextClick(){this.stepsFinished>this.availableSteps||(this.dispatchNextStepEvent(),this.stepsFinished!==this.availableSteps?this.stepsFinished++:this.dispatchSubmitEvent())}handleSkipClick(){this.stepsFinished>=this.availableSteps||this.stepsFinished++}
299dispatchStepChangeEvent(){this.dispatchEvent(new CustomEvent(P.wO,{bubbles:!1}))}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1}))}dispatchNextStepEvent(){this.dispatchEvent(new CustomEvent(P.Re,{bubbles:!1}))}dispatchSubmitEvent(){this.dispatchEvent(new CustomEvent(P._I,{bubbles:!1}))}}var jb,Hb,Kb,Qb,Gb,Wb;customElements.define("vic-m-questionnaire-v2-navigation",$b);let Xb=(jb=(0,S.hq)(".vic-m-questionnaire-v2-step__headline"),Hb=(0,S.K3)(".vic-m-questionnaire-v2-step__form-field"),Kb=(0,S.rF)("formFields",`${P.aA} ${P.fr}`),Qb=class extends S.uA{constructor(...e){super(...e),this.conditionChecker=void 0,this._isAvailable=!1,this._stepValid=!1,T()(this,"headlineElement",Gb,this),T()(this,"formFields",Wb,this)}afterComponentRender(){this.conditionChecker=new Fa({element:this,attributePrefix:"enabled-when-",onChange:()=>this.handleAvailabilityChange()}),this.initialFormFieldCheck()}async initialFormFieldCheck(){await Promise.all(this.formFields.map(e.db)),await this.handleFormFieldChanged()}get headline(){return this.headlineElement?.innerText.trim()||""}get overviewLabel(){return this.getAttribute("overview-label")}get optionalAvailabilityActive(){return ul(this,"enabled-when-")}get isDirectSubmitStep(){return this.hasAttribute("direct-submit")&&"false"!==this.getAttribute("direct-submit")}get isOptionalStep(){return this.hasAttribute("optional-step")&&"false"!==this.getAttribute("optional-step")}get isAvailable(){return!1===this.optionalAvailabilityActive||this._isAvailable}set isAvailable(e){this._isAvailable!==e&&(this._isAvailable=e,this.dispatchEvent(new CustomEvent(P.X1,{bubbles:!1})))}get isActiveStep(){return(0,e.nB)(this,t.Hc)}get stepValid(){return this._stepValid}set stepValid(i){this._stepValid!==i&&(this._stepValid=i,(0,e.p1)(this,t.dO,i),this.dispatchEvent(new CustomEvent(P.yj,{bubbles:!1})),!0===this.isDirectSubmitStep&&this.isActiveStep&&this.submitStep())}get formFieldEmpty(){return this.formFields.every(e=>e.isEmpty)}get submitData(){return this.isOptionalStep&&this.formFieldEmpty?null:this.formFields.map(e=>e.submitData)}get trackingData(){return new qa(this.headline,this.formFields)}get overviewValues(){if(this.isOptionalStep&&this.formFieldEmpty)return null;const e=this.overviewLabel;if(null===e||0===this.formFields.length)return null;if(1===this.formFields.length&&void 0!==this.formFields[0].submitString)return[`${e}: ${this.formFields[0].submitString}`];const t=[];return this.formFields.forEach(i=>{void 0!==i.submitString&&t.push(`${e} - ${i.label}: ${i.submitString}`)}),0===t.length?null:t}async handleFormFieldChanged(){this.stepValid=!1===this.formFieldEmpty&&await this.allFormFieldsValid(),this.dispatchEvent(new CustomEvent(P.QR,{bubbles:!1}))}handleAvailabilityChange(){this.isAvailable=this.conditionChecker.conditionsValid}submitStep(){!1!==this.stepValid&&this.dispatchEvent(new CustomEvent(P.GR,{detail:this,bubbles:!1}))}async allFormFieldsValid(){return(await Promise.all(this.formFields.map(e=>e.isValid()))).every(e=>!0===e)}async reset(){await Promise.all(this.formFields.map(e=>e.reset())),this.isOptionalStep?this.stepValid=!this.formFieldEmpty&&await this.allFormFieldsValid():this.stepValid=await this.allFormFieldsValid()}},Gb=c()(Qb.prototype,"headlineElement",[jb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wb=c()(Qb.prototype,"formFields",[Hb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Qb.prototype,"handleFormFieldChanged",[Kb],Object.getOwnPropertyDescriptor(Qb.prototype,"handleFormFieldChanged"),Qb.prototype),Qb);var Jb,Yb,Zb;customElements.define("vic-m-questionnaire-v2-step",Xb);let em=(Jb=(0,S.hq)(".vic-m-form"),Yb=class extends S.uA{constructor(...e){super(...e),T()(this,"form",Zb,this)}get submitBtnLabel(){return this.getAttribute("submit-btn-label")||"Absenden"}updateSubmitData(e){this.form.externalSubmitData=e}async submitForm(){await this.form.submitForm()}async reset(){await this.form.reset()}},Zb=c()(Yb.prototype,"form",[Jb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yb);var tm,im,sm,am,nm,rm,om,lm,cm,hm,dm,um,pm,gm,bm,mm,fm;customElements.define("vic-m-questionnaire-v2-summary",em);let vm=(tm=(0,S.hq)(".vic-m-questionnaire-v2__progress-bar"),im=(0,S.K3)(".vic-m-questionnaire-v2__step"),sm=(0,S.hq)(".vic-m-questionnaire-v2__navigation"),am=(0,S.hq)(".vic-m-questionnaire-v2__summary"),nm=(0,S.rF)("navigation",P.wO),rm=(0,S.rF)("steps",P.yj),om=(0,S.rF)("navigation",P.QR),lm=(0,S.rF)("steps",P.X1),cm=(0,S.rF)("navigation",P._I),hm=(0,S.rF)("navigation",P.Re),dm=(0,S.rF)("steps",P.GR),um=(0,S.rF)("steps",P.QR),pm=class extends S.uA{constructor(...e){super(...e),this.inViewportService=new El(this),T()(this,"progressBar",gm,this),T()(this,"steps",bm,this),T()(this,"navigation",mm,this),T()(this,"summary",fm,this)}afterComponentRender(){this.init()}get mobileScrollUpActive(){return this.hasAttribute("mobile-scroll-up-active")&&"false"!==this.getAttribute("mobile-scroll-up-active")}get desktopScrollUpActive(){return this.hasAttribute("desktop-scroll-up-active")&&"false"!==this.getAttribute("desktop-scroll-up-active")}get availableSteps(){return this.steps.filter(e=>!0===e.isAvailable)}get activeStep(){return this.availableSteps[this.navigation.stepsFinished]||null}get questionSubmitData(){return this.availableSteps.flatMap(e=>e.submitData).filter(e=>null!==e)}get overviewValues(){return this.availableSteps.flatMap(e=>e.overviewValues).filter(e=>null!==e)}
299async init(){await(0,e.db)(this.navigation),this.navigation.availableSteps=this.availableSteps.length,this.progressBar.max=this.availableSteps.length,this.progressBar.value=0,this.updateActiveStep(),(0,e.iQ)(this,t.tg)}handleStepChange(){this.optionalScrollUp()}updateNavigationNext(){if(null===this.activeStep)return this.navigation.nextBlocked=!1,this.navigation.prevBlocked=!1,void(this.navigation.skipAllowed=!1);this.navigation.prevBlocked=0===this.navigation.stepsFinished,this.navigation.nextBlocked=!1===this.activeStep.stepValid,this.navigation.skipAllowed=this.activeStep.isOptionalStep,this.navigation.skipDisabled=!1===this.activeStep.formFieldEmpty}handleNavigationStepChanged(){this.updateActiveStep(),this.updateNavigationNext()}async handleNavigationSubmit(){this.navigation.isLoading=!0,await(this.summary?.submitForm()),this.navigation.isLoading=!1}handleNextStepInteraction(){this.dispatchMSFTrackingEvent()}handleStepSubmit(){this.navigation.handleNextClick()}handleStepDataChange(){null!==this.activeStep&&(this.navigation.skipDisabled=!1===this.activeStep.formFieldEmpty),this.dispatchEvent(new CustomEvent(P.QR))}updateActiveStep(){(0,e.vy)(this.steps,t.Hc),(0,e.vy)(this.summary,t.Hc),this.navigation.availableSteps=this.availableSteps.length,this.progressBar.max=this.availableSteps.length,this.progressBar.value=this.navigation.stepsFinished,!0==(null===this.activeStep)?((0,e.iQ)(this.summary,t.Hc),this.summary?.updateSubmitData(this.questionSubmitData),this.navigation.nextBtnLabelOverride=this.summary?.submitBtnLabel):(this.navigation.nextBtnLabelOverride=void 0,(0,e.iQ)(this.activeStep,t.Hc))}async reset(){await Promise.all(this.steps.map(e=>e.reset())),await(this.summary?.reset()),this.navigation.availableSteps=this.availableSteps.length,this.navigation.stepsFinished=0,this.progressBar.max=this.availableSteps.length,this.progressBar.value=0,this.navigation.prevBlocked=!1,await Te.A.scrollToElement(this,{preventHeaderShrink:!0})}dispatchMSFTrackingEvent(){const e=this.activeStep;if(null===e)return;const t=e.trackingData?.trackingEventData??null;null!==t&&g.A.push(t)}async optionalScrollUp(){const t=(0,e.g8)(F.A)<="MQ2";t&&this.mobileScrollUpActive||!t&&this.desktopScrollUpActive?await Te.A.scrollToElement(this,{preventHeaderShrink:!0}):(await(0,e.fm)(300),!0!=(!1===this.inViewportService.inViewport)||await Te.A.scrollToElement(this,{preventHeaderShrink:!0}))}},gm=c()(pm.prototype,"progressBar",[tm],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bm=c()(pm.prototype,"steps",[im],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mm=c()(pm.prototype,"navigation",[sm],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fm=c()(pm.prototype,"summary",[am],{configurable:!0,enumerable:!0,writable:!0,initializer:null}
299),c()(pm.prototype,"handleStepChange",[nm],Object.getOwnPropertyDescriptor(pm.prototype,"handleStepChange"),pm.prototype),c()(pm.prototype,"updateNavigationNext",[rm],Object.getOwnPropertyDescriptor(pm.prototype,"updateNavigationNext"),pm.prototype),c()(pm.prototype,"handleNavigationStepChanged",[om,lm],Object.getOwnPropertyDescriptor(pm.prototype,"handleNavigationStepChanged"),pm.prototype),c()(pm.prototype,"handleNavigationSubmit",[cm],Object.getOwnPropertyDescriptor(pm.prototype,"handleNavigationSubmit"),pm.prototype),c()(pm.prototype,"handleNextStepInteraction",[hm],Object.getOwnPropertyDescriptor(pm.prototype,"handleNextStepInteraction"),pm.prototype),c()(pm.prototype,"handleStepSubmit",[dm],Object.getOwnPropertyDescriptor(pm.prototype,"handleStepSubmit"),pm.prototype),c()(pm.prototype,"handleStepDataChange",[um],Object.getOwnPropertyDescriptor(pm.prototype,"handleStepDataChange"),pm.prototype),pm);var ym,wm,Sm,Cm,Am,Em,Im;customElements.define("vic-m-questionnaire-v2",vm);let km=(ym=(0,S.hq)(".vic-e-image-zoom__image"),wm=(0,S.rF)("this","click"),Sm=(0,S.rF)("this","mousemove"),Cm=(0,S.rF)("this","mouseleave"),Am=(0,S.rF)("lazyImage",P.lA),Em=class extends S.uA{constructor(...e){super(...e),T()(this,"lazyImage",Im,this)}get isNonTouchDevice(){return window.matchMedia("(hover: hover) and (pointer: fine)").matches}handleClick(i){this.isNonTouchDevice&&((0,e.nB)(this,t.Hc)?this.resetZoom():(this.updateTransformOrigin(i),(0,e.iQ)(this,t.Hc)))}onPointerMove(i){(0,e.nB)(this,t.Hc)&&this.updateTransformOrigin(i)}onPointerLeave(){this.resetZoom()}onImageSourceChanged(){this.resetZoom()}resetZoom(){(0,e.vy)(this,t.Hc),this.lazyImage.style.removeProperty("--vic-image-transform-origin")}updateTransformOrigin(e){const{left:t,top:i,width:s,height:a}=this.lazyImage.getBoundingClientRect(),n=(e.clientX-t)/s*100,r=(e.clientY-i)/a*100;this.lazyImage.style.setProperty("--vic-image-transform-origin",`${n}% ${r}%`)}},Im=c()(Em.prototype,"lazyImage",[ym],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c()(Em.prototype,"handleClick",[wm],Object.getOwnPropertyDescriptor(Em.prototype,"handleClick"),Em.prototype),c()(Em.prototype,"onPointerMove",[Sm],Object.getOwnPropertyDescriptor(Em.prototype,"onPointerMove"),Em.prototype),c()(Em.prototype,"onPointerLeave",[Cm],Object.getOwnPropertyDescriptor(Em.prototype,"onPointerLeave"),Em.prototype),c()(Em.prototype,"onImageSourceChanged",[Am],Object.getOwnPropertyDescriptor(Em.prototype,"onImageSourceChanged"),Em.prototype),Em);customElements.define("vic-e-image-zoom",km),window._vicApp=new class{constructor(){a.init(),o.A.initBodyClassUpdater(),d.init(),y.init(),w.A.init()}}})(),s=i.O(s)})(); 300//# sourceMappingURL=vic.app.js.map
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.