1(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1674:function(e,t,o){"use strict";o.r(t);var r=o(9),n=o(40),l={name:"TixlyInit",data(){return{iframeSrc:`https://ticket.konzerthaus.at/${this.$i18n.locale}/itix`,allowedOrigins:["https://ticket.konzerthaus.at"],authTimeout:null}},mounted(){window.addEventListener("message",this.handleMessage),Object(n.c)(this.startAuthentication)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},methods:{...Object(r.d)({setTixlyLoginData:"selfcare/setTixlyLoginData"}),...Object(r.b)({fetchCustomer:"selfcare/fetchCustomer"}),startAuthentication(){this.authTimeout=setTimeout((()=>{this.$store.state.selfcare.authInitialized||this.$store.commit("selfcare/setField",{field:"authInitialized",value:!0})}),3e3)},onIframeLoad(){setTimeout((()=>{this.requestSession()}),100)},requestSession(){const iframe=this.$refs.tixlyIframe;iframe&&iframe.contentWindow&&iframe.contentWindow.postMessage("GetSession","*")},handleMessage(e){this.allowedOrigins.some((t=>e.origin.startsWith(t)))&&e.data&&"object"==typeof e.data&&this.processSessionData(e.data)},processSessionData(e){var t;clearTimeout(this.authTimeout),null!==(t=e.order)&&void 0!==t&&t.items&&Array.isArray(e.order.items)&&(this.$store.commit("selfcare/setField",{field:"tixlyCartItems",value:e.order.items}),this.$store.dispatch("selfcare/startCountdown",e.order.expires)),e.user&&(this.$store.commit("selfcare/setField",{field:"tixlyLoginName",value:e.user.name}),this.setTixlyLoginData({tixlyID:e.user.id,tixlyHash:e.user.hash}),this.fetchCustomer()),this.$store.commit("selfcare/setField",{field:"authInitialized",value:!0})}}},d=o(1),component=Object(d.a)(l,(function(){var e=this,t=e._self._c;return t("div",[t("iframe",{ref:"tixlyIframe",staticStyle:{display:"none"},attrs:{id:"tixly-session",src:e.iframeSrc,title:"Tixly Session"},on:{load:e.onIframeLoad}})])}),[],!1,null,null,null);t.default=component.exports}}]);
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.