1import{d as V,a2 as Y,s as k,a6 as q,U as A,o,J as _,t as P,u as e,k as l,a as s,c as r,b as C,l as w,m as a,v as d,R as i,x as R,C as m,f as T}from"./index-BmtSQApv.js";import{_ as U}from"./OrderCompleteLayout.vue_vue_type_style_index_0_lang-CxzEZ54W.js";import"./index161-xj70qxwp.js";const $={key:0},D={key:0},O={key:0},E={key:0,class:"checkout-complete__cta-button"},F={key:1,class:"checkout-complete__cta-button"},J=["src"],z=V({__name:"CheckoutComplete",setup(L){const x=Y(),{account:u}=k(x),S=q(),{productMetaData:n,orderCompleteCtaLink:h,isOrderRegrade:f,dashboardUrl:p}=k(S),N=A(),{isStaff:c}=k(N),B=T(()=>{if(f.value){if(c.value)return"Successful regrade"}else return"Thank you for your purchase";return"Thank you for upgrading"}),G=T(()=>{var y;return(y=n.value)!=null&&y.cta.text?n.value.cta.text:f.value?c.value?"Continue to their new package":"Continue to your new package":"Continue to setup"});return(y,t)=>{var v,g;return o(),_(U,{"main-class":"checkout-complete","banner-title":((v=e(n))==null?void 0:v.title)||"Thank you","main-title":B.value,"use-product-title":""},P({mainContent:l(()=>[e(f)?e(c)?(o(),r(i,{key:1},[t[5]||(t[5]=s("p",null," The regrade has been processed successfully. The customer will be able to utilise their new service within their Control Panel. ",-1)),e(u)?(o(),r("p",D,[t[3]||(t[3]=a(" The customer will receive an invoice confirmation containing the information respective of their new service to ",-1)),s("strong",null,d(e(u).email),1),t[4]||(t[4]=a(". ",-1))])):m("",!0)],64)):(o(),r(i,{key:2},[t[8]||(t[8]=s("p",null," The upgrade has been processed successfully. You will be able to utilise your new service within your Control Panel. ",-1)),e(u)?(o(),r("p",O,[t[6]||(t[6]=a(" You will also receive an invoice confirmation containing the information respective of the new service to ",-1)),s("strong",null,d(e(u).email),1),t[7]||(t[7]=a(". ",-1))])):m("",!0)],64)):(o(),r(i,{key:0},[t[2]||(t[2]=s("p",null," Weâve processed your order and payment. You can head over to your Control Panel to start using your services. ",-1)),e(u)?(o(),r("p",$,[t[0]||(t[0]=a(" Youâll also receive a confirmation email containing your order and payment details to ",-1)),s("strong",null,d(e(u).email),1),t[1]||(t[1]=a(". ",-1))])):m("",!0)],64))]),mainCTA:l(()=>[e(h)!==e(p)&&e(n)?(o(),r("div",E,[C(e(w),{href:e(h),primary:"",target:e(n).cta.openNewTab?"_blank":"_self","data-qa-id":"go-to-overview-button"},{default:l(()=>[a(d(G.value),1)]),_:1},8,["href","target"])])):(o(),r("div",F,[C(e(w),{href:e(p),primary:"","data-qa-id":"go-to-dashboard-button"},{default:l(()=>[e(c)?(o(),r(i,{key:1},[a("Go to customerâs dashboard")],64)):(o(),r(i,{key:0},[a("Go to your dashboard")],64))]),_:1},8,["href"])])),e(n)?(o(),_(e(R),{key:2,href:e(p),"data-qa-id":"go-to-dashboard"},{default:l(()=>[e(c)?(o(),r(i,{key:1},[a("Go to customerâs dashboard")],64)):(o(),r(i,{key:0},[a("Go to your dashboard")],64))]),_:1},8,["href"])):m("",!0)]),_:2},[(g=e(n))!=null&&g.img?{name:"mainAfter",fn:l(()=>{var b;return[s("img",{class:"checkout-complete__img",src:(b=e(n))==null?void 0:b.img},null,8,J)]}),key:"0"}:void 0]),1032,["banner-title","main-title"])}}});export{z as default};
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.