PageSourceSearch

https://app.skiline.cc/_nuxt/complete.Q3edPNHT.js

js skiline.cc collected 2026-10-02 05:26:50 UTC 10,631 bytes, 7 lines download raw bytes

1import{L as E,aa as c,b6 as M,a3 as D,x as O,ad as V,as as N,ag as L,an as x,aq as U,a6 as l,N as g,a7 as v,a8 as b,e as G,R as P,U as R,aI as S,aJ as C,aC as _,aH as T,O as W,a9 as A,ab as d}from"./entry.AWzPAgp7.js";import{_ as B}from"./client-only.f-e2uKcs.js";import{g as F}from"./utils.aT-wYfMq.js";import{g as y}from"./getGtmPrice.eO1-nY7L.js";import{g as H,a as q}from"./mapped-ga-4-ecommerce.9BE_Uj6V.js";import{b as j}from"./base64.x-M243iG.js";import"./index.UNxH2UQT.js";import"./browser-atob.ZbxVLjRr.js";const z="checkout-complete",J={name:"CheckoutComplete",components:{WalletsModal:c(()=>d(()=>import("./wallets-modal.7b7Nsv5l.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),Complete:c(()=>d(()=>import("./complete.Yz8oW4UZ.js"),__vite__mapDeps([4,1,2,5]),import.meta.url)),CreateAccount:c(()=>d(()=>import("./create-account.5Cv8iTzT.js"),__vite__mapDeps([6,1,2,7]),import.meta.url)),Recommendations:c(()=>d(()=>import("./recommendations.m0xwjSF4.js"),__vite__mapDeps([8,1,2,9]),import.meta.url)),CheckoutPage:c(()=>d(()=>import("./checkout-page.gFxPwsmN.js"),__vite__mapDeps([10,11,1,2,12,13]),import.meta.url)),TextLink:c(()=>d(()=>import("./text-link.7KAe8VlN.js"),__vite__mapDeps([14,1,2,15]),import.meta.url)),Spinner:c(()=>d(()=>import("./spinner.rFNc_Ix1.js"),__vite__mapDeps([16,1,2,17]),import.meta.url)),StorePaymentConfirmationModal:c(()=>d(()=>import("./store-payment-confirmation-modal.JSbe7WKA.js"),__vite__mapDeps([18,1,2,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url))},beforeRouteEnter(e,a,r){r(n=>{n.referringURL=a.path})},async setup(){const{$store:e}=G(),a=M();let r=null;const{t:n}=D({useScope:"global"});O({title:n("meta.title.checkout-complete","Checkout - Complete")});try{r=await e.dispatch("pages/loadBySlug","checkout-complete")}catch(s){console.error(s)}return{slug:r,waitingRoomStore:a}},data(){return{successVisible:!1,gotTickets:!1,message:"The booking was successful. Tickets are currently being validated, which may take a few minutes. You will be notified as soon as the tickets are available.",messageGuest:"The guest booking was successful. Tickets are currently being validated, which may take a few minutes. You will be notified as soon as the tickets are available.",order:null,oneTrustLoadInterval:null,referringURL:"",storedPaymentInfo:null,loading:!1,showPaymentConfirmationModal:!1}},computed:{...V({__:"config/__",isAuthenticated:"user/index/isAuthenticated",customerObj:"user/index/customerObj",userInitialized:"user/index/initialized",themeName:"theming/name",temporaryPaymentMethod:"customer/temporaryPaymentMethod",pageBySlug:"pages/bySlug",saferpayResponse:"checkout/saferpayResponse"}),pageMessage(){return this.customerObj==null?this.messageGuest:this.message},showCreateAccount(){return!1},loaded(){return this.userInitialized},orderIdFromPaymentResponse(){return(this.storedPaymentInfo?.orderId||this.storedPaymentInfo?.providerSpecific?.transactionId)?.toString()||null},orderId(){return(this.order.orderId||this.order.id)?.toString()},skiDataCovidUrl(){return this.$config.public.SKI_DATA_COVID_URL},page(){return this.pageBySlug(z)}},watch:{isAuthenticated(){this.isAuthenticated&&this.temporaryPaymentMethod&&this.storePaymentMethod()},loaded(){this.loaded&&(this.successVisible=!0)}},beforeUnmount(){this.oneTrustLoadInterval&&clearInterval(this.oneTrustLoadInterval)},async mounted(){this.waitingRoomStore.currentWaitingRoomStatus?.status==="GRANTED"&&await this.waitingRoomStore.releaseWaitingRoom(),this.$dataLayer.push({event:"shop-checkout",action:"load-success-page",label:"success"}),this.coloredHeader();const e=window.localStorage.getItem("paymentInfo");this.storedPaymentInfo=e?JSON.parse(e):{};const a=N("datatransResponse").value,r=a&&a!=="undefined",n=localStorage.getItem(L.PAYMENT_METHOD),s=window.localStorage.getItem("order"),t=s?JSON.parse(s):{};if(r||t?.costs?.total?.value===0||n){if(this.loading=!0,t&&t.items&&t.items.length>0){this.order=t;const i=t.items.map(o=>{const u={name:o.name,item_id:o.productId?j(o.productId):(o.orderItemId||o.itemId).toString(),price:y(o.price.value),category:o.type,quantity:H(o.quantities.ordered)},I=o?.typeSpecific?.location;return o.type==="skischool"&&I&&(u.item_variant=I),u}),p=[],m=[];let h=0;
1this.order.items.forEach(o=>{p.push({productInfo:{productName:o.name,productID:o?.typeSpecific?.options?.length?o?.typeSpecific?.options[0]?.id??o?.typeSpecific?.options[0]?.typeSpecific?.productId:null},category:{primaryCategory:o.type??"",subCategory1:"",subCategory2:"",subCategory3:"",subCategory4:"",subCategory5:""},price:{basePriceTotal:Number.parseFloat(o.price.value.toFixed(2)),currency:o.price.currency}}),m.includes(o.name)||m.push(o.name),h+=Number.parseInt(o.quantities.ordered)});const f=a?.pmethod||n;if(this.$config.public.ONE_TRUST_ID&&!this.$digitalDataLayer){let o=0;this.oneTrustLoadInterval=x(()=>{window.dataLayer&&Array.isArray(window.dataLayer)&&(o>=10?(this.handleDtmEvents(t,f,i,p,h,m),clearInterval(this.oneTrustLoadInterval)):window.dataLayer.forEach(u=>{u&&u.event==="OneTrustLoaded"&&(this.handleDtmEvents(t,f,i,p,h,m),clearInterval(this.oneTrustLoadInterval))})),o+=1},100)}else this.handleDtmEvents(t,f,i,p,h,m)}if(r?.aliasCC){const i=F(r);i&&(await this.$store.commit("customer/setTemporaryPaymentMethod",i),this.isAuthenticated&&this.storePaymentMethod())}this.loading=!1}n&&localStorage.removeItem(L.PAYMENT_METHOD),this.saferpayResponse?.paymentInfo?.paymentAliasId&&(this.showPaymentConfirmationModal=!0)},methods:{...U({coloredHeader:"navigation/coloredHeader"}),clearSaferpayResponse(){this.$store.commit("checkout/clearSaferpayResponse")},showSuccess(){this.successVisible=!0},gotoWallet(){this.$router.push(this.localePath("/wallet"))},ga4Purchase(e,a){this.$dataLayer.push({ecommerce:null});const r=e?.discounts?.find(s=>s.type==="coupon")?.typeSpecific?.couponCode,n={event:"transaction",ecommerce:{transaction_id:(e.orderId||e.id)?.toString(),affiliation:this.themeName,payment_type:a,value:y(e?.costs?.total?.value),tax:y(e?.costs?.tax?.value),shipping:y(e?.costs?.shipping?.value),currency:e?.costs?.total?.currency,items:q(e.items)}};r&&(n.ecommerce.coupon=r),this.$dataLayer.push(n)},handleDtmEvents(e,a,r,n,s,t){const i={cart:{cartID:(this.order.orderId||this.order.id)?.toString(),transactionID:this.storedPaymentInfo?.orderId?.toString(),total:{currency:this.order.costs?.total?.currency??"",quantity:s,nbdistinctproduct:t.length,basePriceTotal:this.order.costs?.total?.value??"",paymentMethod:a},items:n}};this.$nextTick(()=>{this.$digitalDataLayer.pushPage(i,!1,"",this.referringURL!==""&&this.referringURL!=="/"?this.$store.$config.BASE_URL+this.referringURL:"","","","confirmation"),this.$digitalDataLayer.push({product:i})}),this.$dataLayer.pushPage({event:"purchase",ecommerce:{currencyCode:e?.costs?.total?.currency??null,purchase:{actionField:{id:(e.orderId||e.id).toString(),revenue:y(e?.costs?.total?.value),tax:y(e?.costs?.tax?.value)},products:r}}}),this.ga4Purchase(e,a)},storePaymentMethod(){if(this.temporaryPaymentMethod?.isSavedMethod){this.$store.commit("customer/clearTemporaryPaymentMethod");return}this.$store.dispatch("customer/addSavedPaymentMethod",this.temporaryPaymentMethod).then(()=>{this.$store.commit("customer/clearTemporaryPaymentMethod")})}}},Y={style:{display:"flex","flex-direction":"column","container-type":"inline-size"}},$={style:{display:"flex","align-items":"center","flex-direction":"column"}},K={style:{"padding-top":"1rem"}},Q={key:2,class:"container mb-3 mt-3"},X={class:"order-id"};function Z(e,a,r,n,s,t){const i=l("WalletsModal"),p=l("Spinner"),m=l("Complete",!0),h=l("TextLink"),f=l("StorePaymentConfirmationModal"),o=l("CreateAccount"),u=l("CheckoutPage"),I=l("Recommendations"),w=B;return g(),v(w,null,{default:b(()=>[P("div",Y,[e.isAuthenticated&&t.skiDataCovidUrl?(g(),v(i,{key:0,visible:s.successVisible,"order-id":t.orderIdFromPaymentResponse,"complete-message":t.pageMessage,onClose:a[0]||(a[0]=k=>s.successVisible=!1)},null,8,["visible","order-id","complete-message"])):R("",!0),s.loading?(g(),v(p,{key:1})):R("",!0),S(_(u,{loaded:t.loaded,style:{"min-height":"0rem","max-width":"450px"}},{default:b(()=>[P("div",$,[_(m,{message:t.pageMessage,"order-id":t.orderIdFromPaymentResponse},null,8,["message","order-id"]),S(P("span",K,[T(" Tickets may be checked in your "),_(h,{onClick:t.gotoWallet},{default:b(()=>[T("Wallet")]),_:1},8,["onClick"]),T(". ")],512),[[C,s.gotTickets&&e.isAuthenticated]]),e.saferpayResponse?.paymentInfo&&e.saferpayResponse?.paymentInfo?.paymentAliasRequestType==="created"?(g(),v(f,{key:0,modelValue:s.showPaymentConfirmationModal,"onUpdate:modelValue":a[1]||(a[1]=k=>s.showPaymentConfirmationModal=k),"alias-id":e.saferpayResponse.paymentInfo.paymentAliasId,image:e.saferpayResponse.paymentInfo.icon?.url,label:e.saferpayResponse.paymentInfo.name,digits:e.saferpayResponse.paymentInfo.maskedNr,validity:e.saferpayResponse.paymentInfo.validity,onClosed:t.clearSaferpayResponse},null,8,["modelValue","alias-id","image","label","digits","validity","onClosed"])):R("",!0)]),S(_(o,null,null,512),[[C,t.showCreateAccount]])]),_:1},8,["loaded"]),[[C,!t.page&&!s.loading]]),t.page&&t.orderIdFromPaymentResponse?(g
1(),W("div",Q,[P("div",X,A(e.__("Order Number"))+": "+A(t.orderIdFromPaymentResponse),1)])):R("",!0),S(_(I,null,null,512),[[C,t.loaded&&!s.loading]])])]),_:1})}const ce=E(J,[["render",Z],["__scopeId","data-v-dea0b074"]]);export{ce as default};
2function __vite__mapDeps(indexes) {
3  if (!__vite__mapDeps.viteFileDeps) {
4    __vite__mapDeps.viteFileDeps = ["./wallets-modal.7b7Nsv5l.js","./entry.AWzPAgp7.js","./entry.O9KOVcsn.css","./wallets-modal.smFKOVYL.css","./complete.Yz8oW4UZ.js","./complete.iU55VS-j.css","./create-account.5Cv8iTzT.js","./create-account.6xCI4SKV.css","./recommendations.m0xwjSF4.js","./recommendations.4J71tiBW.css","./checkout-page.gFxPwsmN.js","./spinner.MB0djTD6.js","./spinner.YFIbOISJ.css","./checkout-page.A2GkfoBG.css","./text-link.7KAe8VlN.js","./text-link.j1XSmbOP.css","./spinner.rFNc_Ix1.js","./spinner.5Hm6A8TJ.css","./store-payment-confirmation-modal.JSbe7WKA.js","./payment-method-details.LuO__01h.js","./payment-image.r_yb52vH.js","./payment-image.naFLlR8M.css","./payment-method-details.ydYjCUIR.css","./confirmation-modal.LpQb8Xew.js","./use-focus-trap.qMRqAqFV.js","./is-element-visible._LEGGY8N.js","./Button.jIb321Xw.js","./generic-link.2pmPn1M-.js","./index.tsdXPcWo.js","./icon-svg.BIQaVhrQ.js","./icon-svg.3pVHMq3X.css","./Button.eUkKJYuQ.css","./confirmation-modal.n2JyaUNl.css","./store-payment-confirmation-modal.ThFMvPjN.css"]
5  }
6  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7}

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.