PageSourceSearch

https://www.pizzahut.com.au/assets/PaymentPlaceOrder-qHTgvoiK.js

js pizzahut.com.au collected 2026-10-02 07:03:49 UTC 4,451 bytes, 1 lines download raw bytes

1import{A as S}from"./Agreement-Bd98yRA_.js";import C from"./Snippet-Begr0MKR.js";import O from"./PaymentButton-BJ8kFIZC.js";import{O as w}from"./OptInPreferences-BCu88mvB.js";import{_ as v,r as l,o as r,i as d,c as T,w as o,b as a,d as s,a as c,k as _,F as D,aC as B,S as b,at as E,Y as u,av as V,a0 as A,$ as F}from"./bootstrap-BvNtpzca.js";import"./useAnnouncementCountdown-aTqRrTrl.js";import"./screen-m7vyGxBf.js";import"./scrollTo-VjOXRCQ9.js";import"./LoadingDots-hT5pBuN0.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c3f69e94-30de-4e9e-a665-1ef95e636b82",t._sentryDebugIdIdentifier="sentry-dbid-c3f69e94-30de-4e9e-a665-1ef95e636b82")}catch(f){}})();const x={name:"AppPaymentPlaceOrder",components:{Agreement:S,Snippet:C,PaymentButton:O,OptInPreferences:w},inject:["checkoutState"],props:{formValid:{type:Boolean,default:!0},paymentId:{type:String,default:""},contactless:{type:Boolean,default:!1}},emits:["placeOrder","update:acceptTerms","update:acceptContactless"],data(){return{acceptTerms:!1,acceptContactless:!1,forceFeedback:!1,hideEmailOptIn:!1,hideSmsOptIn:!1}},computed:{...u(F,["basketTotal","customerInfo","basketServiceType","isDelivery","isContactless"]),...u(A,["expressPayCheckout","isAuth","callCenter"]),...u(V,["getFeatureFlag"]),paymentMethod(){return Object.values(E).find(t=>t.id===this.paymentId)},instructionsLength(){return this.contactless?92:100}},created(){this.expressPayCheckout.active&&this.onAcceptTerms(!0),b.$on("prefillData",this.handlePrefillData)},beforeUnmount(){b.$off("prefillData",this.handlePrefillData)},methods:{handlePrefillData(t){B(t.userId)&&(this.hideEmailOptIn=t.optinEmail,this.hideSmsOptIn=t.optinSms)},doPlaceOrder(t){this.$emit("placeOrder",t)},onAcceptTerms(t){this.$emit("update:acceptTerms",t)}}},M={class:"app-payment-place-order"},U={key:1,class:"agreement"},N={key:0},j={key:1},G={key:2},L={class:"payment-btn-group"};function Y(t,e,f,q,i,n){var h;const y=l("Snippet"),I=l("OptInPreferences"),p=l("router-link"),k=l("agreement"),g=l("snippet"),P=l("payment-button");return r(),d("section",M,[!t.callCenter.mode&&!(i.hideEmailOptIn&&i.hideSmsOptIn)?(r(),T(I,{key:0,email:n.checkoutState.orderInfo.customerInfo.optinEmail,"onUpdate:email":e[0]||(e[0]=m=>n.checkoutState.orderInfo.customerInfo.optinEmail=m),sms:n.checkoutState.orderInfo.customerInfo.optinSms,"onUpdate:sms":e[1]||(e[1]=m=>n.checkoutState.orderInfo.customerInfo.optinSms=m),class:"opt-in-preferences mb-3 pb-3","hide-email":i.hideEmailOptIn,"hide-sms":i.hideSmsOptIn,stacked:""},{label:o(()=>[a(y,{id:"email-sms-subscribe-title",path:"checkout"})]),"label:email":o(()=>[...e[3]||(e[3]=[s("Send me hot offers and news via ",-1),c("strong",null,"Email",-1)])]),"label:sms":o(()=>[...e[4]||(e[4]=[s("Send me hot offers and news via ",-1),c("strong",null,"SMS",-1)])]),description:o(()=>[a(y,{id:"email-sms-subscribe-description",path:"checkout"})]),_:1},8,["email","sms","hide-email","hide-sms"])):_("",!0),t.expressPayCheckout.active&&((h=n.paymentMethod)!=null&&h.id)?(r(),d("p",U,[e[7]||(e[7]=s(" By selecting ",-1)),n.paymentMethod.id==="applepay"?(r(),d("span",N,' "Check out with Apple Pay"')):n.paymentMethod.id==="paypal"?(r(),d("span",j,' "Check out with PayPal"')):(r(),d("span",G,' "Buy with Google Pay"')),e[8]||(e[8]=s(", I agree with the ",-1)),a(p,{to:"/terms"},{default:o(()=>[...e[5]||(e[5]=[s("Terms & Conditions",-1)])]),_:1}),e[9]||(e[9]=s(" and ",-1)),a(p,{to:"/privacy"},{default:o(()=>[...e[6]||(e[6]=[s("Privacy Policy",-1)])]),_:1}),e[10]||(e[10]=s(". ",-1))])):(r(),d(D,{key:2},[a(k,{modelValue:i.acceptTerms,"onUpdate:modelValue":e[2]||(e[2]=m=>i.acceptTerms=m),condition:"terms",onChange:n.onAcceptTerms},{label:o(()=>[e[13]||(e[13]=s(" I have read and agree with the ",-1)),a(p,{to:"/terms"},{default:o(()=>[...e[11]||(e[11]=[s("Terms & Conditions",-1)])]),_:1}),e[14]||(e[14]=s(" and ",-1)),a(p,{to:"/privacy"},{default:o(()=>[...e[12]||(e[12]=[s("Privacy Policy",-1)])]),_:1})]),_:1},8,["modelValue","onChange"]),a(g,{id:"below-t-c",class:"mt-3",path:"checkout"})],64)),c("div",L,[a(P,{"payment-method":n.paymentMethod,disabled:!f.formValid,"show-default-btn":!0,"show-loading":!0,onPlaceOrder:n.doPlaceOrder},null,8,["payment-method","disabled","onPlaceOrder"])])])}const $=v(x,[["render",Y]]);export{$ 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.