PageSourceSearch

https://www.pi.co.za/_nuxt/ud_hsq45.js

js pi.co.za collected 2026-10-06 05:42:59 UTC 6,165 bytes, 1 lines download raw bytes

1import{d as M,k as S,l as F,F as w,X as m,o as p,h,ab as z,w as $,j as t,cM as U,a5 as l,a8 as f,a3 as B,aa as C,a4 as x,aq as Y,bK as G,bL as g,bN as N,eT as H,G as b,ae as V}from"./C-jpHxGx.js";import{r as n,M as _,a as u}from"./CTZ9JdIE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"698f8ecba73f9e9b843f2bb48386c051db6d5fdd"};var v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="f9203261-5977-4b26-a9d4-0c9274f83cf7",e._sentryDebugIdIdentifier="sentry-dbid-f9203261-5977-4b26-a9d4-0c9274f83cf7")}catch{}})();const q={class:"mvne-wrapper"},J={class:"mvne-title","data-testid":"app-modal-add-plan-title"},W={class:"mvne-plan-area","data-testid":"app-modal-add-plan-summary"},K=["src"],X={class:"mvne-title-description"},Q={class:"mvne-title"},Z={class:"mvne-description"},ee={key:0,class:"mvne-description"},te={class:"mvne-link"},ne={class:"mvne-description-actions"},ae={class:"mvne-description"},oe={class:"mvne-actions"},le={class:"mvne-labeled-link"},ie=M({__name:"AddPlan",props:{allowFullDialogHeight:{default:!0,type:Boolean},chosenPlan:{default:()=>({}),type:Object},hasCloseBtn:{default:!1,type:Boolean},label:{required:!0,type:String},personIndex:{default:0,type:Number},scrollable:{default:!1,type:Boolean},strapiContent:{default:()=>({}),type:Object}},emits:["close","primaryButtonClick","secondaryButtonClick"],setup(e,{emit:v}){const i=v,{$mtnEvent:s}=S(),{isLoggedIn:d}=F();w(()=>{d.value||s.send({eventName:m.FORM_START,eventParameters:{form_action:"start_account_creation",form_id:u,form_id_type:null,form_name:"add_to_cart",journey_id:_,journey_step:n}})});const T=()=>{d.value||s.send({eventName:m.FORM_ACTION,eventParameters:{form_action:"change_plan",form_id:u,form_id_type:null,form_name:"add_to_cart",form_step:n,journey_id:_,journey_step:n}}),i("close")},P=o=>{d.value||s.send({eventName:m.FORM_OPTION_SELECT,eventParameters:{field_name:"create_account",field_position:1,form_action:"create_account",form_id:u,form_id_type:null,form_name:"add_to_cart",form_step:n,journey_id:_,journey_step:n}}),i("primaryButtonClick",o)},O=o=>{d.value||s.send({eventName:m.FORM_OPTION_SELECT,eventParameters:{field_name:"create_account_later",field_position:2,form_action:"create_account",form_id:u,form_id_type:null,form_name:"add_to_cart",form_step:n,journey_id:_,journey_step:n}}),i("secondaryButtonClick",o)},E=()=>{d.value||s.send({eventName:m.FORM_ERROR,eventParameters:{error_category:"user_abandoned",error_description:"cancellation",field_name:"cancel",field_position:3,form_action:"click_cancel_button",form_id:u,form_id_type:null,form_name:"add_to_cart",form_step:n,journey_id:_,journey_step:n}}),i("close")},I=()=>{d.value||s.send({eventName:m.FORM_ACTION,eventParameters:{form_action:"login",form_id:u,form_id_type:null,form_name:"add_to_cart",form_step:n,journey_id:_,journey_step:n}})},a=e,r=b(()=>({descriptionColor:a.strapiContent.theme?.descriptionColor||"var(--dialog-description-color)",planBackgroundColor:a.strapiContent.theme?.planBackgroundColor||"var(--dialog-add-plan-plan-background-color)",planBorderColor:a.strapiContent.theme?.planBorderColor||"var(--dialog-add-plan-plan-border-color)",planDescriptionColor:a.strapiContent.theme?.planDescriptionColor||"var(--dialog-add-plan-plan-description-color)",planTitleColor:a.strapiContent.theme?.planTitleColor||"var(--dialog-add-plan-plan-title-color)",titleColor:a.strapiContent.theme?.titleColor||"var(--dialog-title-color)"})),A=b(()=>({"--theme-description-color":r.value.descriptionColor,"--theme-plan-background-color":r.value.planBackgroundColor,"--theme-plan-border-color":r.value.planBorderColor,"--theme-plan-description-color":r.value.planDescriptionColor,"--theme-plan-title-color":r.value.planTitleColor,"--theme-title-color":r.value.titleColor})),L=b(()=>{const o=a.strapiContent?.linkToPlanSelection?.to||"";return a.personIndex===0?String(o):`${o}/${a.personIndex+1}`});return(o,c)=>{const R=Y,y=G,D=H,j=z;return p(),h(j,{hasCloseBtn:e.hasCloseBtn,allowFullDialogHeight:e.allowFullDialogHeight,label:e.label,scrollable:e.scrollable,modalName:"add-plan","data-testid":"add-plan-modal",onClose:c[2]||(c[2]=k=>i("close"))},{default:$(()=>[t("div",{class:"mvne-modal-add-plan-content global-container-secondary",style:U(l(A))}
1,[t("div",q,[t("div",J,f(e.strapiContent?.title),1),t("div",W,[e.chosenPlan?.img?(p(),B("img",{key:0,src:e.chosenPlan?.img,alt:"plan image",class:"mvne-img","data-testid":"plan-image"},null,8,K)):C("",!0),t("div",X,[t("div",Q,f(e.chosenPlan?.name),1),t("div",Z,f(e.chosenPlan?.description),1),e.chosenPlan?.addressInfo?(p(),B("div",ee,f(e.chosenPlan?.addressInfo),1)):C("",!0),t("div",te,[x(R,{class:"mvne-link-action",text:e.strapiContent?.linkToPlanSelection?.text,to:l(L),"data-testid":"app-modal-add-plan-change-plan-link",onClick:T},null,8,["text","to"])])])]),t("div",ne,[t("div",ae,f(e.strapiContent?.description),1),t("div",oe,[e.strapiContent?.filledButton?.text?(p(),h(y,{key:0,text:e.strapiContent?.filledButton?.text,size:l(g).LARGE,"data-testid":"app-modal-add-plan-primary-button",onClick:c[0]||(c[0]=k=>P(e.chosenPlan?.id))},null,8,["text","size"])):C("",!0),e.strapiContent?.outlinedButton?.text?(p(),h(y,{key:1,text:e.strapiContent?.outlinedButton?.text,size:l(g).LARGE,variant:l(N).OUTLINED,"data-testid":"app-modal-add-plan-secondary-button",onClick:c[1]||(c[1]=k=>O(e.chosenPlan?.id))},null,8,["text","size","variant"])):C("",!0),e.strapiContent?.cancelButton?.text?(p(),h(y,{key:2,text:e.strapiContent?.cancelButton?.text,size:l(g).LARGE,class:"mvne-button-cancel",variant:l(N).OUTLINED,theme:e.strapiContent?.cancelButton?.theme,"data-testid":"app-modal-add-plan-cancel-button",onClick:E},null,8,["text","size","variant","theme"])):C("",!0)])]),t("div",le,[x(D,{strapiContent:e.strapiContent?.linkToLogin,"data-testid":"app-modal-add-plan-login-link",onClick:I},null,8,["strapiContent"])])])],4)]),_:1},8,["hasCloseBtn","allowFullDialogHeight","label","scrollable"])}}}),re=Object.assign(V(ie,[["__scopeId","data-v-ba2b6722"]]),{__name:"AppModalAddPlan"});export{re as _};

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.