1import"./CXHxssQy.js";import{a as Ze,o as rr}from"./Gh7gd8gz.js";import{A as h,C as A,Ct as ge,It as e,J as ft,O as Mt,Ot as U,S as pe,V as st,Y as Ft,Z as s,_t as S,an as w,b as ue,cn as T,et as le,g as It,gt as N,ht as or,k as q,p as H,pt as ce,rt as ir,tt as sr,ut as $t,w as u,x as t}from"./D4iNppRB.js";import{A as ca,C as Lt,D as we,M as re,N as gt,P as We,j as B,k as he,n as pa,t as nr,v as te}from"./jouS0Q8B.js";import{u as Gt}from"./DVsfmBcZ.js";import{n as lr}from"./DWCdiKJM.js";import{n as Bt}from"./B-nR8AQQ.js";import{t as Dt}from"./DoLq-6aO.js";import{t as yt}from"./q_CXofJD.js";import{t as Yt}from"./rcTglCJe.js";import{_ as qt,b as dr}from"./CEyLSJb5.js";import{t as fe}from"./DoOAC5Mf.js";import{A as ur,E as zt,F as cr,N as ma,O as pr,S as mr,c as hr,h as gr,i as Le,j as fr,k as G,l as yr,n as br,s as vr,w as _r,x as wr}from"#entry";import{t as xr}from"./B7yXvd0B.js";import{i as Cr,n as Sr,r as Ut,t as Ge}from"./DMVtF8oE.js";import{t as ha}from"./CY5gFqcf.js";import{t as ia}from"./C07YLgh12.js";import{t as J}from"./DTSTXpRn2.js";import{t as Ar}from"./B5fAIHaJ2.js";import{n as ga,r as fa,t as ya}from"./DpOz7udV2.js";import{t as ba}from"./Bcb9k1pP2.js";import{n as sa,r as na}from"./CHxzXzLD2.js";import{n as va}from"./CZV1guLy2.js";import{t as _a}from"./UiA3TTdR.js";import{t as kr}from"./Di8n_tsb.js";import{t as Ie}from"./CN2h80lf.js";import{t as Tr}from"./D6lltKHS2.js";import{t as Er}from"./DPiF7Yso2.js";import{t as Pr}from"./CwqZ_wDC2.js";import{t as Nr}from"./BBTg-_3x2.js";import{t as Or}from"./DvfhE_wo2.js";import{t as Ir}from"./BzfOqZ8K.js";import{t as Dr}from"./BGt3pJHq.js";import{t as Ur}from"./BQoOBjNj.js";import{i as jt,n as wa,r as ne}from"./VPK4X20i.js";import{t as xa}from"./DSHExRWU.js";import{n as Rr,r as $r,t as Vr}from"./B9ZpxjEs.js";import{n as Ca,t as Lr}from"./7GpDYMdY.js";import{t as Mr}from"./1MfFuz7j.js";import{t as Fr}from"./DjRDgS3-.js";var Br={__name:"TestCheckoutFill",props:{form:{type:Object,required:!0}},emits:["update:form"],setup(r,{emit:d}){const m=r,n=d,f={email:"[email protected]",firstName:"John",lastName:"Doe",companyName:"Skytech Test",streetAddress:"123 Main St",streetAddressOptional:"Apt 4",country:"US",zipCode:"90210",city:"Beverly Hills",phone:"5551234567"},l=async()=>{m.form.useDefaultShippingAddress&&(n("update:form",{useDefaultShippingAddress:!1}),await st()),n("update:form",{...f,email:m.form.email||f.email})};return(c,a)=>(s(),pe(It,{to:"body"},[t("div",{class:"fixed top-4 left-4 z-100000"},[t("button",{type:"button",class:"bg-indigo-700 border-2 border-indigo-900 text-white py-1 px-3 cursor-pointer",onClick:l}," Fill test shipping data ")])]))}},Sa={__name:"PayPalMessage",props:{amount:{type:Number,default:0},placement:{type:String,default:"product",validator:r=>["product","cart","payment","home","category"].includes(r)},layout:{type:String,default:"text",validator:r=>["text","flex"].includes(r)},logoType:{type:String,default:"inline"},textColor:{type:String,default:"black"},textSize:{type:[String,Number],default:"12"},flexColor:{type:String,default:"white-no-border"},flexRatio:{type:String,default:"8x1"}},setup(r){const d=r,m=Ze(),n=U(null),f=async()=>{if(n.value)try{const l=await m.$waitForPaypal();if(!l?.Messages)return;n.value.innerHTML="";const c={amount:d.amount||void 0,placement:d.placement,style:d.layout==="flex"?{layout:"flex",color:d.flexColor,ratio:d.flexRatio}:{layout:"text",logo:{type:d.logoType},text:{color:d.textColor,size:d.textSize}}};l.Messages(c).render(n.value)}catch(l){console.error("PayPal Message render failed:",l)}};return ce(()=>d.amount,()=>f()),ft(()=>f()),(l,c)=>(s(),u("div",{ref_key:"messageContainer",ref:n},null,512))}},zr={},jr={xmlns:"http://www.w3.org/2000/svg",height:"471",width:"752",viewBox:"0 0 752 471"};function Hr(r,d){return s(),u("svg",jr,[...d[0]||(d[0]=[t("g",{fill:"none","fill-rule":"evenodd"},[t("rect",{fill:"#2557d6",height:"471",rx:"40",width:"750",x:"1"}),t("path",{d:"M1.003 221.185h36.024l8.123-19.51h18.185l8.101 19.51h70.88V206.27l6.327 14.98h36.796l6.327-15.202v15.138h176.151l-.082-32.026h3.408c2.386.083 3.083.302 3.083 4.226v27.8h91.106v-7.455c7.349 3.92 18.779 7.455 33.819 7.455h38.328l8.203-19.51h18.185l8.021 19.51h73.86v-18.532l11.186 18.532h59.187V98.678h-58.576v14.468l-8.202-14.468h-60.105v14.468l-7.532-14.468h-81.188c-13.59 0-25.536 1.889-35.186 7.153v-7.153h-56.026v7.153c-6.14-5.426-14.508-7.153-23.812-7.153H180.908l-13.734 31.641-14.104-31.641H88.6v14.468l-7.083-14.468H26.534L1 156.924v64.261zm227.39
16-17.67h-21.614l-.08-68.794-30.573 68.793H157.62l-30.652-68.854v68.854H84.084l-8.101-19.592h-43.9L23.9 203.514H1l37.756-87.837h31.326l35.859 83.164v-83.164h34.412l27.593 59.587 25.347-59.587h35.104v87.837h.003zM68.777 165.692l-14.43-35.017-14.35 35.017zm245.642 37.821h-70.433v-87.837h70.433v18.291h-49.348V149.8h48.165v18.005H265.07v17.542h49.348v18.166zm99.256-64.18c0 14.004-9.386 21.24-14.856 23.412 4.613 1.748 8.553 4.838 10.43 7.397 2.976 4.369 3.49 8.271 3.49 16.116v17.255h-21.266l-.08-11.077c0-5.285.508-12.886-3.328-17.112-3.081-3.09-7.777-3.76-15.368-3.76h-22.633v31.95H328.98v-87.838h48.495c10.775 0 18.714.283 25.53 4.207 6.67 3.924 10.67 9.652 10.67 19.45zm-26.652 13.042c-2.898 1.752-6.324 1.81-10.43 1.81H350.98v-19.51h25.962c3.674 0 7.508.164 9.998 1.584 2.735 1.28 4.427 4.003 4.427 7.765 0 3.84-1.61 6.929-4.344 8.351zm60.466 51.138h-21.513v-87.837h21.513zm249.74 0H667.35l-39.964-65.927v65.927h-42.94l-8.204-19.592h-43.799l-7.96 19.592H499.81c-10.248 0-23.224-2.257-30.572-9.715-7.41-7.458-11.265-17.56-11.265-33.533 0-13.027 2.304-24.936 11.366-34.347 6.816-7.01 17.49-10.242 32.02-10.242h20.412v18.821h-19.984c-7.694 0-12.039 1.14-16.224 5.203-3.594 3.699-6.06 10.69-6.06 19.897 0 9.41 1.878 16.196 5.797 20.628 3.245 3.476 9.144 4.53 14.694 4.53h9.469l29.716-69.076h31.592l35.696 83.081v-83.08h32.103l37.062 61.174V115.68h21.596v87.834zm-128.159-37.82l-14.591-35.017-14.51 35.017h29.1zm181.885 178.074c-5.121 7.458-15.101 11.239-28.611 11.239h-40.718v-18.84h40.553c4.022 0 6.837-.527 8.532-2.175a7.71 7.71 0 0 0 2.493-5.73c0-2.56-1.024-4.592-2.575-5.81-1.53-1.341-3.757-1.95-7.429-1.95-19.797-.67-44.495.609-44.495-27.194 0-12.743 8.125-26.157 30.25-26.157h41.998v-17.48h-39.02c-11.776 0-20.33 2.808-26.388 7.174v-7.175H627.83c-9.23 0-20.063 2.279-25.187 7.175v-7.175H499.578v7.175c-8.203-5.892-22.043-7.175-28.431-7.175h-67.983v7.175c-6.49-6.258-20.92-7.175-29.716-7.175h-76.085l-17.41 18.763-16.307-18.763H149.99v122.592h111.516l17.94-19.06 16.9 19.06 68.739.061v-28.838h6.757c9.12.14 19.878-.226 29.368-4.31v33.085h56.697v-31.952h2.735c3.49 0 3.834.143 3.834 3.616v28.333H636.71c10.935 0 22.365-2.787 28.695-7.845v7.845h54.632c11.369 0 22.471-1.587 30.918-5.651zm-341.503-47.154c0 24.406-18.286 29.445-36.716 29.445H346.43v29.469h-40.98l-25.962-29.085-26.981 29.085H168.99v-87.859h84.8l25.941 28.799 26.819-28.799h67.371c16.732 0 35.532 4.613 35.532 28.945zm-167.625 40.434h-51.839v-17.481h46.289V301.64h-46.289v-15.973h52.86l23.062 25.604zm83.526 10.06l-32.37-35.788 32.37-34.651zm47.873-39.066H345.98v-22.374h27.492c7.612 0 12.896 3.09 12.896 10.773 0 7.598-5.04 11.601-13.14 11.601zm142.744-40.373h70.369v18.17h-49.372v15.973h48.167v17.925h-48.167v17.481l49.372.08v18.23h-70.37v-87.859zm-27.054 47.03c4.693 1.724 8.53 4.816 10.329 7.375 2.977 4.29 3.408 8.293 3.493 16.037v17.417H481.57v-10.992c0-5.286.511-13.112-3.408-17.198-3.08-3.147-7.777-3.9-15.468-3.9h-22.533v32.09h-21.186v-87.859h48.678c10.674 0 18.448.47 25.369 4.146 6.654 4.004 10.839 9.488 10.839 19.51-.003 14.024-9.395 21.18-14.945 23.373zM477 303.59c-2.82 1.667-6.308 1.81-10.41 1.81h-25.614v-19.733h25.962c3.754 0 7.51.08 10.062 1.587 2.732 1.423 4.366 4.144 4.366 7.903 0 3.76-1.634 6.788-4.366 8.433zm190.336 5.597c4.106 4.23 6.306 9.572 6.306 18.614 0 18.9-11.858 27.723-33.122 27.723h-41.065v-18.84h40.9c4 0 6.836-.527 8.613-2.175 1.45-1.359 2.49-3.333 2.49-5.73 0-2.56-1.125-4.592-2.573-5.81-1.612-1.34-3.836-1.95-7.508-1.95-19.717-.67-44.41.61-44.41-27.193 0-12.744 8.04-26.158 30.144-26.158h42.269v18.7h-38.677c-3.834 0-6.327.143-8.447 1.587-2.31 1.422-3.166 3.534-3.166 6.32 0 3.315 1.96 5.57 4.613 6.545 2.224.77 4.613.996 8.205.996l11.35.305c11.446.278 19.303 2.249 24.078 7.066zM751 285.667h-38.427c-3.836 0-6.385.143-8.532 1.587-2.224 1.423-3.081 3.534-3.081 6.322 0 3.314 1.878 5.569 4.61 6.544 2.225.77 4.614.996 8.126.996l11.427.304c11.531.284 19.228 2.258 23.921 7.072.855.67 1.368 1.422 1.956 2.175z",fill:"#fff"})],-1)])])}var Aa=Object.assign(Le(zr,[["render",Hr]]),{__name:"SvgAmericanExpress"}),qr={id:"dropin-container"},Gr={class:"flex justify-center","data-testid":"dropin-loader"},ka={__name:"CheckoutPaymentBraintreeDropin",props:{waitForBraintree:{type:Function,required:!0},getClientToken:{type:Function,required:!0}},emits:["ready","success","error"],setup(r,{expose:d,emit:m}){const n=r,f=m,l=U(!0);let c=null;async function a(){try{await n.waitForBraintree();const _=await n.getClientToken();
1braintree.dropin.create({authorization:_,container:"#dropin-container",cvv:{enabled:!0},card:{cardholderName:{required:!0},vault:{vaultCard:!1}}},(p,C)=>{l.value=!1,p?f("error",p):(c=C,f("ready"))})}catch(_){l.value=!1,f("error",_)}}ft(async()=>{l.value=!0,await a()});async function x(){if(!c)return f("error",new Error("dropin not ready"));c.requestPaymentMethod((_,p)=>{if(_)return f("error",_);f("success",{provider:"braintree",nonce:p.nonce})})}async function g(){try{l.value=!0,c&&(await new Promise(_=>c.teardown(()=>_())),c=null),await a()}catch(_){l.value=!1,f("error",_)}}return d({requestPaymentMethod:x,reset:g}),Ft(()=>{try{c?.teardown?.()}catch{console.error("Failed to close Braintree dropin.")}}),(_,p)=>{const C=yt;return s(),u("div",null,[S(t("div",qr,null,512),[[re,!e(l)]]),S(t("div",Gr,[h(C,{name:"svg-spinners:90-ring-with-bg",class:"text-2xl text-primary"})],512),[[re,e(l)]])])}}},Ta={__name:"CheckoutPaymentAcimaButton",props:{customerData:{type:Object,required:!0},transactionData:{type:Object,required:!0},merchantId:{type:String,required:!0},iframeUrl:{type:String,required:!0},waitForAcima:{type:Function,required:!0},visible:{type:Boolean,required:!0}},emits:["success","error","denied","cancelled","close"],setup(r,{emit:d}){const m=r,n=d;return ce(()=>m.visible,async f=>{if(f)try{await m.waitForAcima(),new Acima.Client({merchantId:m.merchantId,iframeUrl:m.iframeUrl}).checkout({customer:m.customerData,transaction:m.transactionData,onClose(l){n("close",l)},onError(l){n("error",l)},onDenied(l){n("denied",l)},onCancelled(){n("cancelled")}}).then(({leaseId:l,leaseNumber:c,checkoutToken:a})=>{n("success",{leaseId:l,leaseNumber:c,checkoutToken:a})}).catch(({message:l})=>{n("error",new Error(l))})}catch(l){n("error",l)}}),(f,l)=>(s(),u("div"))}},Yr={},Wr={xmlns:"http://www.w3.org/2000/svg",width:"429",height:"171",viewBox:"0 0 429 171",fill:"none"};function Zr(r,d){return s(),u("svg",Wr,[...d[0]||(d[0]=[Mt('<g clip-path="url(#clip0_2525_303)"><path fill-rule="evenodd" clip-rule="evenodd" d="M28.1 156.27C22.8 156.27 20.1 153.66 20.1 149.37C20.1 141.37 29.02 138.68 45.29 136.95C45.29 147.61 38.08 156.27 28.05 156.27H28.1ZM35.1 96.3198C23.47 96.3198 10.1 101.79 2.83998 107.58L9.46998 121.58C15.29 116.25 24.7 111.69 33.19 111.69C41.26 111.69 45.72 114.39 45.72 119.83C45.72 123.48 42.77 125.33 37.19 126.06C16.33 128.76 -0.02
100195 134.52 -0.0200195 150.59C-0.0200195 163.33 9.04998 171.04 23.22 171.04C33.34 171.04 42.34 165.42 46.62 158.04V169.04H65.48V122.95C65.48 103.95 52.29 96.2798 35.11 96.2798L35.1 96.3198Z" fill="black"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M224.39 98.3902V168.95H244.57V134.95C244.57 118.8 254.35 114.05 261.16 114.05C264.226 114.026 267.229 114.914 269.79 116.6L273.48 97.9502C270.62 96.8056 267.559 96.2511 264.48 96.3202C254.11 96.3202 247.59 100.91 243.29 110.25V98.3902H224.39Z" fill="black"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M367 96.3198C356.33 96.3198 348.35 102.62 344.2 108.7C340.35 100.85 332.2 96.3198 322.4 96.3198C311.74 96.3198 304.35 102.24 300.94 109.06V98.3898H281.48V168.95H301.68V132.62C301.68 119.62 308.51 113.33 314.88 113.33C320.65 113.33 325.95 117.06 325.95 126.69V168.95H346.11V132.62C346.11 119.43 352.77 113.33 359.44 113.33C364.78 113.33 370.44 117.21 370.44 126.55V168.95H390.6V120.17C390.6 104.32 379.93 96.3198 367.04 96.3198" fill="black"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M175.28 98.3901H157V91.2201C157 81.8801 162.33 79.2201 166.92 79.2201C170.054 79.261 173.135 80.0313 175.92 81.4701L182.14 67.2401C182.14 67.2401 175.83 63.1201 164.36 63.1201C151.47 63.1201 136.8 70.3901 136.8 93.2001V98.3901H106.25V91.2201C106.25 81.8801 111.57 79.2201 116.17 79.2201C119.309 79.2199 122.4 79.9926 125.17 81.4701L131.39 67.2401C127.68 65.0701 121.71 63.1201 113.62 63.1201C100.73 63.1201 86.0599 70.3901 86.0599 93.2001V98.3901H74.3799V113.95H86.0899V168.95H106.25V113.95H136.84V168.95H157V113.95H175.28V98.3901Z" fill="black"></path><path d="M207.46 98.3901H187.32V168.92H207.46V98.3901Z" fill="black"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M188.06 86.4H207.79C219.3 50.21 258.35 18.4 304.79 18.4C361.27 18.4 410.08 61.4 410.08 128.34C410.252 142.08 408.364 155.769 404.48 168.95H423.63L423.82 168.29C427.047 155.241 428.639 141.842 428.56 128.4C428.56 53.75 374.16 0.0200195 304.83 0.0200195C250.37 0.0200195 201.83 37.82 188.07 86.42L188.06 86.4Z" fill="#4A4AF4"></path></g><defs><clipPath id="clip0_2525_303"><rect width="428.55" height="171" fill="white"></rect></clipPath></defs>',2)])])}var Ea=Object.assign(Le(Yr,[["render",Zr]]),{__name:"SvgAffirm"}),Qr={class:"p-4 text-sm text-gray-600"},Pa={__name:"CheckoutPaymentAffirmButton",props:{checkoutData:{type:Object,required:!0},waitForAffirm:{type:Function,required:!0}},emits:["success","error","cancel","validation-error"],setup(r,{expose:d,emit:m}){const n=r,f=m;async function l(){G.log("start props.checkoutData=>",n.checkoutData);try{const c=await n.waitForAffirm();G.log("affirm=>",c),c.checkout(n.checkoutData),c.checkout.open({onFail(a){f("cancel",a)},onSuccess(a){f("success",a)},onValidationError(a){console.error("[AffirmButton] Validation error",a),f("validation-error",a)}})}catch(c){console.error("[AffirmButton] ERROR",c),f("error",c)}}return d({start:l}),ft(()=>{G.log("onMounted props.checkoutData=>",n.checkoutData)}),(c,a)=>(s(),u("div",Qr,[...a[0]||(a[0]=[t("p",null,"Pay over time with Affirm. A secure pop-up will appear to complete your purchase.",-1)])]))}},Kr={},Jr={id:"G_Pay_Acceptance_Mark",xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 751.1 400"};function Xr(r,d){return s(),u("svg",Jr,[...d[0]||(d[0]=[Mt('<path id="Base" fill="#fff" d="M551.2,0H199.2C89.2,0-.8,90-.8,200h0c0,110,90,200,200,200h352c110,0,200-90,200-200h0C751.2,90,661.2,0,551.2,0Z"></path><path id="Outline" fill="#3c4043" d="M551.2,16.2c24.7,0,48.7,4.9,71.3,14.5,21.9,9.3,41.5,22.6,58.5,39.5,16.9,16.9,30.2,36.6,39.5,58.5,9.6,22.6,14.5,46.6,14.5,71.3s-4.9,48.7-14.5,71.3c-9.3,21.9-22.6,41.5-39.5,58.5-16.9,16.9-36.6,30.2-58.5,39.5-22.6,9.6-46.6,14.5-71.3,14.5H199.2c-24.7,0-48.7-4.9-71.3-14.5-21.9-9.3-41.5-22.6-58.5-39.5-16.9-16.9-30.2-36.6-39.5-58.5-9.6-22.6-14.5-46.6-14.5-71.3s4.9-48.7,14.5-71.3c9.3-21.9,22.6-41.5,39.5-58.5,16.9-16.9,36.6-30.2,58.5-39.5,22.6-9.6,46.6-14.5,71.3-14.5h352M551.2,0H199.2C89.2,0-.8,90-.8,200h0c0,110,90,200,200,200h352c110,0,200-90,200-200h0C751.2,90,661.2,0,551.2,0h0Z"></path><g id="G_Pay_Lockup"><g id="Pay_Typeface"><path id="Letter_p" fill="#3c4043" d="M357.8,214.2v60.5h-19.2V125.3h50.9c12.9,0,23.9,4.3,32.9,12.9,9.2,8.6,13.8,19.1,13.8,31.5s-4.6,23.2-13.8,31.7c-8.9,8.5-19.9,12.7-32.9,12.7h-31.7ZM357.8,143.7v52.1h32.1c7.6,0,14-2.6,19-7.7,5.1-5.1,7.7-11.3,7.7-18.3s-2.6-13-7.7-18.1c-5-5.3-11.3-7.9-19
1-7.9h-32.1Z"></path><path id="Letter_a" fill="#3c4043" d="M486.4,169.1c14.2,0,25.4,3.8,33.6,11.4,8.2,7.6,12.3,18,12.3,31.2v63h-18.3v-14.2h-.8c-7.9,11.7-18.5,17.5-31.7,17.5s-20.7-3.3-28.3-10-11.4-15-11.4-25,4-19,12-25.2c8-6.3,18.7-9.4,32-9.4s20.8,2.1,28.1,6.3v-4.4c0-6.7-2.6-12.3-7.9-17-5.3-4.7-11.5-7-18.6-7-10.7,0-19.2,4.5-25.4,13.6l-16.9-10.6c9.3-13.5,23.1-20.2,41.3-20.2ZM461.6,243.3c0,5,2.1,9.2,6.4,12.5,4.2,3.3,9.2,5,14.9,5,8.1,0,15.3-3,21.6-9s9.5-13,9.5-21.1c-6-4.7-14.3-7.1-25-7.1s-14.3,1.9-19.5,5.6c-5.3,3.9-7.9,8.6-7.9,14.1Z"></path><path id="Letter_y" fill="#3c4043" d="M636.7,172.4l-64,147.2h-19.8l23.8-51.5-42.2-95.7h20.9l30.4,73.4h.4l29.6-73.4h20.9Z"></path></g><g id="G_Mark"><path id="Blue_500" fill="#4285f4" d="M281.5,202c0-6.3-.6-12.2-1.6-18h-80.5v33h46.4c-1.9,11-7.9,20.4-17.2,26.6v21.4h27.6c16.1-14.9,25.3-36.9,25.3-63Z"></path><path id="Green_500" fill="#34a853" d="M228.5,243.6c-7.7,5.2-17.6,8.2-29.1,8.2-22.4,0-41.3-15.1-48.1-35.4h-28.5v22.1c14.1,28,43.1,47.2,76.6,47.2s42.6-7.6,56.7-20.7l-27.6-21.4Z"></path><path id="Yellow_500" fill="#fabb05" d="M148.6,200c0-5.7,1-11.2,2.7-16.4v-22.1h-28.5c-5.8,11.6-9.1,24.6-9.1,38.5s3.3,26.9,9.1,38.5l28.5-22.1c-1.7-5.2-2.7-10.7-2.7-16.4Z"></path><path id="Red_500" fill="#e94235" d="M199.4,148.3c12.6,0,23.9,4.4,32.9,12.9l24.5-24.4c-14.9-13.8-34.2-22.3-57.3-22.3-33.5,0-62.5,19.2-76.6,47.2l28.5,22.1c6.8-20.3,25.8-35.4,48.1-35.4Z"></path></g></g>',3)])])}var Na=Object.assign(Le(Kr,[["render",Xr]]),{__name:"SvgGooglePay"}),eo={},to={xmlns:"http://www.w3.org/2000/svg",height:"471",width:"750",viewBox:"0 0 750 471"};function ao(r,d){return s(),u("svg",to,[...d[0]||(d[0]=[t("g",{fill:"none","fill-rule":"evenodd"},[t("rect",{fill:"#0e4595",height:"471",rx:"40",width:"750"}),t("path",{d:"M278.197 334.228l33.361-195.763h53.36l-33.385 195.763zm246.11-191.54c-10.572-3.966-27.136-8.222-47.822-8.222-52.725 0-89.865 26.55-90.18 64.603-.298 28.13 26.513 43.822 46.753 53.186 20.77 9.594 27.752 15.714 27.654 24.283-.132 13.121-16.587 19.116-31.923 19.116-21.357 0-32.703-2.966-50.226-10.276l-6.876-3.111-7.49 43.824c12.464 5.464 35.51 10.198 59.438 10.443 56.09 0 92.501-26.246 92.916-66.882.2-22.268-14.016-39.216-44.8-53.188-18.65-9.055-30.072-15.099-29.951-24.268 0-8.137 9.667-16.839 30.556-16.839 17.45-.27 30.089 3.535 39.937 7.5l4.781 2.26 7.234-42.43m137.307-4.222h-41.231c-12.774 0-22.332 3.487-27.942 16.234l-79.245 179.404h56.032s9.161-24.123 11.233-29.418c6.124 0 60.554.084 68.337.084 1.596 6.853 6.491 29.334 6.491 29.334h49.513zm-65.418 126.407c4.413-11.279 21.26-54.723 21.26-54.723-.316.522 4.38-11.334 7.075-18.684l3.606 16.879s10.217 46.728 12.352 56.528zM232.904 138.466l-52.24 133.496-5.567-27.13c-9.725-31.273-40.025-65.155-73.898-82.118l47.766 171.203 56.456-.065 84.004-195.386z",fill:"#fff"}),t("path",{d:"M131.92 138.465H45.879l-.681 4.073c66.938 16.204 111.231 55.363 129.618 102.414l-18.71-89.96c-3.23-12.395-12.597-16.094-24.186-16.526",fill:"#fff"})],-1)])])}var Oa=Object.assign(Le(eo,[["render",ao]]),{__name:"SvgVisa"}),ro={},oo={xmlns:"http://www.w3.org/2000/svg",height:"471",width:"750",viewBox:"0 0 750 471"};function io(r,d){return s(),u("svg",oo,[...d[0]||(d[0]=[Mt('<g fill="none" fill-rule="evenodd"><rect fill="#f4f4f4" height="471" rx="40" width="750"></rect><path d="M618.579 422.143c-1.213.03-2.213.432-2.998 1.207-.785.776-1.192 1.746-1.22 2.911.028 1.157.435 2.125 1.22 2.904.785.78 1.785 1.184 2.998 1.215 1.185-.03 2.171-.436 2.96-1.215.787-.78 1.196-1.747 1.226-2.904-.03-1.165-.437-2.135-1.223-2.91-.786-.776-1.774-1.179-2.963-1.208zm0 7.329c-.925-.023-1.687-.336-2.287-.94-.6-.602-.91-1.36-.932-2.27.021-.916.332-1.672.932-2.27.6-.599 1.362-.909 2.287-.93.904.021 1.655.331 2.25.93.596.598.905 1.354.927 2.27-.022.91-.33 1.668-.926 2.27-.596.604-1.347.917-2.251.94zm.242-5.139h-1.766v3.826h.817v-1.433h.374l1.16 1.433h.978l-1.25-1.443c.39-.05.69-.176.901-.38.21-.204.317-.465.32-.781-.004-.378-.137-.675-.4-.891-.264-.216-.642-.326-1.134-.33zm-.01.717c.219 0 .39.043.515.127a.434.434 0 0 1 .19.378.446.446 0 0 1-.19.386c-.124.086-.296.129-.515.129h-.939v-1.02zm-458.605 2.703h-8.755V386.87h8.584v4.982s7.539-6.089 12.017-6.013c8.706.148 13.905 7.559 13.905 7.559s4.217-7.559 13.733-7.559c14.073 0 16.137 12.884 16.137 12.884v28.857h-8.412v-25.422s.03-7.73-9.098-7.73c-9.44 0-10.3 7.73-10.3 7.73v25.423h-8.755v-25.595s-.841-8.073-8.756-8.073c-10.278 0-10.471 8.245-10.471 8.245zm266.254-41.92c-4.478-.075-12.016 6.013-12.016 6.013v-4.971h-8.593v40.874h8.76l-.167-25.593s.193-8.228 10.472-8.228c1.909 0 3.391.463 4.565 1.175v-.033l2.853-7.96c-1.722-.725-3.68-1.239-5.874-1.276zm123.33 0c-4.477-.075-12.015 6.013-12.015 6.013v-4.971h-8.593v40.874h8.76l-.167-25.593s.193-8.228 10.472-8.228c1.909 0 3.391.463 4.565 1.175v-.033l2.853-7.96c-1.722-.725-3.68-1.239-5.874-1.276zm-305.653-.167c-13.103 0-20.037 11.784-20.072 21.629-.036 10.091 7.894 21.73 20.44 21.73 7.32 0 13.334-5.407 13.334-5.407l-.016 4.164h8.618V386.86h-8.648v5.155s-5.647-6.348-13.656-6.348zm1.678 8.33c7.04 0 12.754 6.126 12.754 13.668 0 7.543-5.715 13.636-12.754 13.636-7.04 0-12.721-6.093-12.721-13.636 0-7.542 5.681-13.669 12.72-13.669zm249.646-8.33c-13.103 0-20.037 11.784-20.072 21.629-.036 10.091 7.894 21.73 20.44 21.73 7.32 0 13.334-5.407 13.334-5.407l-.016 4.164h8.618V386.86h-8.648v5.155s-5.647-6.348-13.656-6.348zm1.678 8.33c7.04 0 12.754 6.126 12.754 13.668 0 7.543-5.715 13.636-12.754 13.636-7.04 0-12.721-6.093-12.721-13.636 0-7.542 5.681-13.669 12.72-13.669zm81.066-8.33c-13.102 0-20.036 11.784-20.071 21.629-.036 10.091 7.893 21.73 20.44 21.73 7.32 0 13.334-5.407 13.334-5.407l-.016 4.164h8.618v-57.078h-8.648v21.31s-5.648-6.348-13.657-6.348zm1.678 8.33c7.04 0 12.755 6.126 12.755 13.668 0 7.543-5.715 13.636-12.755 13.636s-12.72-6.093-12.72-13.636c0-7.542 5.68-13.669 12.72-13.669zm-287.148 35.13c-8.926 0-17.167-5.497-17.167-5.497l3.777-5.84s7.797 3.607 13.39 3.607c3.634 0 9.712-1.174 9.785-4.81.078-3.842-10.214-4.981-10.214-4.981s-15.364-.21-15.364-12.883c0-7.97 7.673-13.055 17.51-13.055 5.684 0 16.308 4.981 16.308 4.981l-4.291 6.7s-8.204-3.28-12.532-3.436c-3.655-.132-8.069 1.62-8.069 4.81 0 8.668 25.58-.676 25.58 16.834 0 11.487-10.418 13.57-18.713 13.57zm32.93-54.108v11.892h-7.619v8.597h7.62v20.555s-.675 13.904 14.264 13.904c4.13 0 12.218-3.056 12.218-3.056l-3.457-8.934s-3.217 2.745-6.848 2.653c-6.904-.174-6.713-4.6-6.713-4.6v-20.524h14.233v-8.595h-14.232v-11.891h-9.465zm51.858 11.15c-14.05 0-21.07 11.58-21.012 21.63.06 10.335 6.392 21.965 21.85 21.965 6.617 0 15.91-5.81 15.91-5.81L390.277 417s-6.341 4.5-11.9
115 4.5c-11.16 0-11.882-10.915-11.882-10.915h29.872s2.229-24.416-18.83-24.416zm-1.276 8.028c.331-.02.687 0 1.04 0 10.514 0 10.44 9.94 10.44 9.94H366.48s-.503-9.356 9.767-9.94zm90.132 22.699l4.006 8.017s-6.349 4.13-13.474 4.13c-14.751 0-22.943-11.11-22.943-21.621 0-16.52 13.036-21.378 21.85-21.378 8.001 0 14.931 4.616 14.931 4.616l-4.491 8.016s-2.723-4.25-10.682-4.25c-7.946 0-12.14 6.854-12.14 13.36 0 7.291 4.881 13.483 12.261 13.483 5.79 0 10.682-4.373 10.682-4.373z" fill="#000"></path><path d="M624.508 278.631v-5.52h-1.44l-1.658 3.796-1.657-3.796h-1.44v5.52h1.017v-4.164l1.553 3.59h1.055l1.553-3.6v4.174zm-9.123 0v-4.578h1.845v-.933h-4.698v.933h1.845v4.578zm9.412-82.071c0 85.425-69.077 154.676-154.288 154.676-85.21 0-154.288-69.25-154.288-154.676S385.298 41.883 470.51 41.883c85.21 0 154.288 69.251 154.288 154.677z" fill="#f79f1a"></path><path d="M434.46 196.56c0 85.425-69.078 154.676-154.288 154.676-85.212 0-154.288-69.25-154.288-154.676S194.96 41.883 280.172 41.883c85.21 0 154.287 69.251 154.287 154.677z" fill="#ea001b"></path><path d="M375.34 74.797c-35.999 28.317-59.107 72.318-59.107 121.748s23.108 93.466 59.108 121.782c35.999-28.316 59.107-72.352 59.107-121.782s-23.108-93.431-59.107-121.748z" fill="#ff5f01"></path></g>',1)])])}var Ia=Object.assign(Le(ro,[["render",io]]),{__name:"SvgMasterCard"}),so={},no={xmlns:"http://www.w3.org/2000/svg",height:"501",width:"780",viewBox:"0 0 780 501"};function lo(r,d){return s(),u("svg",no,[...d[0]||(d[0]=[t("g",{fill:"none","fill-rule":"evenodd"},[t("path",{d:"M54.992 0C24.627 0 0 24.63 0 55.004v390.992C0 476.376 24.619 501 54.992 501h670.016C755.373 501 780 476.37 780 445.996V55.004C780 24.624 755.381 0 725.008 0z",fill:"#4d4d4d"}),t("path",{d:"M415.13 161.213c30.941 0 56.022 23.58 56.022 52.709v.033c0 29.13-25.081 52.742-56.021 52.742s-56.022-23.613-56.022-52.742v-.033c0-29.13 25.082-52.71 56.022-52.71zm-87.978.68c8.837 0 16.248 1.784 25.268 6.09v22.751c-8.544-7.863-15.955-11.154-25.756-11.154-19.264 0-34.414 15.015-34.414 34.05 0 20.075 14.681 34.196 35.37 34.196 9.312 0 16.586-3.12 24.8-10.857v22.763c-9.341 4.14-16.911 5.776-25.756 5.776-31.278 0-55.582-22.596-55.582-51.737 0-28.826 24.951-51.878 56.07-51.878zm-97.113.627c11.546 0 22.11 3.72 30.943 10.994l-10.748 13.248c-5.35-5.646-10.41-8.028-16.564-8.028-8.853 0-15.3 4.745-15.3 10.989 0 5.354 3.619 8.188 15.944 12.482 23.365 8.044 30.29 15.176 30.29 30.926 0 19.193-14.976 32.553-36.32 32.553-15.63 0-26.994-5.795-36.458-18.872l13.268-12.03c4.73 8.61 12.622 13.222 22.42 13.222 9.163 0 15.947-5.952 15.947-13.984 0-4.164-2.055-7.734-6.158-10.258-2.066-1.195-6.158-2.977-14.2-5.647-19.291-6.538-25.91-13.527-25.91-27.185 0-16.225 14.214-28.41 32.846-28.41zm234.723 1.728h22.437l28.084 66.592 28.446-66.592h22.267l-45.494 101.686h-11.053zm-397.348.152h30.15c33.312 0 56.534 20.382 56.534 49.641 0 14.59-7.104 28.696-19.118 38.057-10.108 7.901-21.626 11.445-37.574 11.445H67.414zm96.135 0h20.54v99.143h-20.54zm411.734 0h58.252v16.8H595.81v22.005h36.336v16.791H595.81v26.762h37.726v16.785h-58.252V164.4zm71.858 0h30.455c23.69 0 37.265 10.71 37.265 29.272 0 15.18-8.514 25.14-23.986 28.105l33.148 41.766h-25.26l-28.429-39.828h-2.678v39.828h-20.515zm20.515 15.616v30.025h6.002c13.117 0 20.069-5.362 20.069-15.328 0-9.648-6.954-14.697-19.745-14.697zM87.94 181.199v65.559h5.512c13.273 0 21.656-2.394 28.11-7.88 7.103-5.955 11.376-15.465 11.376-24.98 0-9.499-4.273-18.725-11.376-24.681-6.785-5.78-14.837-8.018-28.11-8.018z",fill:"#fff"}),t("path",{d:"M779.982 288.361c-26.05 18.33-221.077 149.34-558.754 212.623H724.99c30.365 0 54.992-24.63 54.992-55.004z",fill:"#f47216"})],-1)])])}var Da=Object.assign(Le(so,[["render",lo]]),{__name:"SvgDiscover"}),uo=(r,d={})=>{const{timeout:m=8e3,errorMessage:n,onTimeout:f}=d,{start:l,stop:c}=dr(()=>{r.value===!0&&(G.error("Loading timeout."),r.value=!1,n&&(n.value="Unable to load payment system"),f&&f("Unable to load payment system"))},m,{immediate:!1});return ce(r,a=>{a?(c(),l()):c()},{immediate:!0}),{clearTimeout:c}},co=()=>{const r=Ze();return{postCybersourceCaptureContextApi:async m=>await r.$apiFetch("/cybersource/generate_token",{method:"POST",useFetch:!1,body:m})}}
1,Nt=class extends Error{};Nt.prototype.name="InvalidTokenError";function po(r){return decodeURIComponent(atob(r).replace(/(.)/g,(d,m)=>{let n=m.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function mo(r){let d=r.replace(/-/g,"+").replace(/_/g,"/");switch(d.length%4){case 0:break;case 2:d+="==";break;case 3:d+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return po(d)}catch{return atob(d)}}function ho(r,d){if(typeof r!="string")throw new Nt("Invalid token specified: must be a string");d||(d={});const m=d.header===!0?0:1,n=r.split(".")[m];if(typeof n!="string")throw new Nt(`Invalid token specified: missing part #${m+1}`);let f;try{f=mo(n)}catch(l){throw new Nt(`Invalid token specified: invalid base64 for part #${m+1} (${l.message})`)}try{return JSON.parse(f)}catch(l){throw new Nt(`Invalid token specified: invalid json for part #${m+1} (${l.message})`)}}var go={id:"buttonPaymentListContainer",ref:"buttonPaymentListContainerRef"},fo={id:"embeddedPaymentContainer",ref:"embeddedPaymentContainerRef"},yo={class:"flex justify-center"},bo={class:"py-4 text-center text-contrast"},Ua={__name:"CheckoutPaymentCyberSourceCheckout",props:{amount:{type:Number,required:!0},currency:{type:String,default:"USD"},onValidateAllForm:{type:Function,required:!0},setCurrentPayment:{type:Function,required:!0}},emits:["success","error","ready"],setup(r,{emit:d}){const m=r,n=d,f=U(!0),l=U("");let c=null;const{clearTimeout:a}=uo(f,{timeout:7e3,errorMessage:l,onTimeout:k=>{n("error",new Error(k))}}),{postCybersourceCaptureContextApi:x}=co(),g=async()=>{if(f.value=!0,l.value="",!await m.onValidateAllForm()){m.setCurrentPayment(null),f.value=!1;return}try{const k={amount:m.amount},E=await x(k);G.log("captureContextData",E);const z=ho(E.capture_context);G.log("decodedJwt",z);const{data:$}=z.ctx[0],{clientLibrary:I,clientLibraryIntegrity:v}=$;G.log("clientLibrary",I),G.log("clientLibraryIntegrity",v);const j=await _(I,v);if(G.log("scriptLoaded",j),!j)throw new Error("[CyberSourceCheckout] Failed to load CyberSource Unified Checkout SDK");await C(E.capture_context)}catch(k){console.error("CyberSource initialization error:",k),l.value=k.message||"Failed to initialize payment system, please try again later",f.value=!1,n("error",k)}},_=(k,E)=>new Promise((z,$)=>{if(window.Accept){z(!0);return}const I=k,v=document.createElement("script");v.src=I,v.async=!0,E&&(v.integrity=E,v.crossOrigin="anonymous"),v.onload=()=>{z(!0)},v.onerror=()=>{$(new Error("Failed to load CyberSource payment system"))},document.head.appendChild(v)}),p=U(null);ce(p,k=>{k?f.value=!1:f.value=!0,a()});const C=async k=>{if(!window.Accept){const E=new Error("CyberSource SDK not loaded");l.value=E.message,f.value=!1,n("error",E);return}try{const E=await window.Accept(k);G.log("accept",E);const z=await E.unifiedPayments(!1);p.value=z;const $={containers:{paymentSelection:"#buttonPaymentListContainer",paymentScreen:"#embeddedPaymentContainer"}};G.log("showArgs",$);const I=await z.show($);I&&n("success",{transientToken:I}),c={accept:E,up:z},f.value=!1,n("ready")}catch(E){console.error("Failed to initialize CyberSource:",E),p.value.initializeButtonList(),l.value=E.message||"Failed to initialize payment system",f.value=!1,n("error",E)}};return ft(async()=>{await g()}),Ft(()=>{if(a(),c)try{c.up&&typeof c.up.destroy=="function"&&c.up.destroy(),c.accept&&typeof c.accept.destroy=="function"&&c.accept.destroy()}catch(k){console.error("Failed to destroy CyberSource instance:",k)}}),(k,E)=>{const z=yt;return s(),u("div",null,[t("div",go,null,512),t("div",fo,null,512),S(t("div",yo,[h(z,{name:"svg-spinners:90-ring-with-bg",class:"text-2xl text-primary"})],512),[[re,e(f)]]),S(t("div",bo,[t("p",null,T(e(l)),1)],512),[[re,e(l)]])])}}};function Wt(){const r=Ge(),d=Dt("affiliateSlug"),m=[];let n;r.localGenerallyCart.length!==0&&(n=ia(r.localGenerallyCart).map(l=>{let c;return l.product_type==="glass_etching"?c={id:l.product_id??l.composite_id,unit_price:new fe(l.quantity).times(l.price??l.unit_price).toNumber(),quantity:l.quantity,source:4,product_type:"glass_etching",product_option_mark:!1}:l.product_type==="warranty"?c={id:l.product_id??l.composite_id,unit_price:new fe(l.warranty_products.unit_price).toNumber(),quantity:l.quantity,source:2,warranty_status:l.warranty_status,purchase_date:l.purchase_date,product_type:"warranty",serial_number:l.serial_number,components:[]}:l.discount_active?c={id:l.id,unit_price:new fe(l.unit_price??0).toNumber(),quantity:l.quantity,source:3,components:[],product_type:l.product_type,discount_active:l.discount_active,discount_type_name:l.discount_type_name,discount_type:l.discount_type,discount_value:l.discount_value}:(c={id:l.product_id??l.composite_id,unit_price:new fe(l.quantity).times(l.price??l.unit_price).toNumber(),product_type:l.product_type,quantity:l.quantity,source:2,components:[]},l.promotion_condition_id&&(c.promotion_condition_id=l.promotion_condition_id,c.trigger_product_ids=l.trigger_product_ids),(l.custom_glass_etching?.etching_text||l.custom_glass_etching?.celebration)&&(c.custom_glass_etching_mark=!0,l.custom_glass_etching.celebration?c.custom_glass_etching={amount:l.custom_glass_etching.amount,celebration:!0}:c.custom_glass_etching=l.custom_glass_etching)),d.value&&(c.affiliate_code=d.value),l.product_option_mark?(c.product_option_mark=!0,c.products=l.products.map(a=>(a.price=a.was_price*a.quantity,a))):c.product_option_mark=!1,l.is_add_on&&(c.is_add_on=!0),c}
1),n.forEach(l=>{m.push(l)}));let f;if(r.localCustomCart.length!==0){const l=ia(r.localCustomCart);f=l.map(c=>{const a=c.products[0];Object.keys(a).forEach(g=>{delete a[g].image,delete a[g].in_stock,a[g].product_name=a[g].name,delete a[g].name,a[g].product_id=a[g].id,delete a[g].id,a[g].quantity===void 0&&(a[g].quantity=1)});const x={id:c.id,unit_price:r.localCustomTotalPrice,quantity:1,source:1,affiliate_product_id:l[0].affiliate_product_id,purchase_url:l[0].purchase_url,product_type:"custom_pc",components:[a],custom_glass_etching_mark:c.custom_glass_etching_mark,custom_glass_etching:c.custom_glass_etching?.celebration?{amount:c.custom_glass_etching.amount,celebration:!0}:c.custom_glass_etching};return d.value&&(x.affiliate_code=d.value),x}),f.forEach(c=>{m.push(c)})}return G.log("useProductsDataFormatCreateOrder.js return:",m),m}var Zt=Bt("upSellProduct",()=>{const{postDataToGetUpSellProductApi:r}=ha(),{getToken:d}=ma(),m=U(!1),n=U({}),f=U(!1);return{postDataToGetUpSellProduct:async()=>{const c=d(),a={method:"POST",useFetch:!1};if(c)try{a.body={add_mark:!1};const x=await r(a);return x?.code===200&&(localStorage.setItem("already-add-offer-product","true"),m.value=x.add_offer_mark,n.value=x?.data??{}),x}catch{}else{const x=Wt(),g=localStorage.getItem("already-add-offer-product");if(g==="true")return;a.body={add_mark:!!g,composites:x};try{const _=await r(a);return _?.code===200&&(localStorage.setItem("already-add-offer-product","true"),m.value=_.add_offer_mark,n.value=_?.data??{}),_}catch{}}},upSellProduct:n,addMark:f}}),vo={class:"flex flex-col bg-white border border-[#eee] rounded-sm shadow-[0_2px_10px_#0000001a]"},_o={class:"p-4 border-b"},wo={class:"flex items-center"},xo={class:"p-4 flex"},Co={class:"w-2/12"},So=["src","alt"],Ao={class:"w-10/12 px-3"},ko={class:"font-bold mb-2 leading-none"},To={class:"leading-[1.1]"},Eo={class:"font-semibold"},Qt={__name:"AddOfferToCartCard",props:{formData:{type:Object,required:!0}},emits:["success"],setup(r,{emit:d}){const m=d,n=r,f=zt(),l=Ge(),c=Zt(),a=Dt("affiliateSlug"),{getProductUrl:x}=_a(),g=ue(()=>x(c.upSellProduct)),_=U(!1);ce(_,k=>{k&&p()});const p=async()=>{if(f.isLogin){const k=[{id:c.upSellProduct.id,quantity:1,source:2,products:[],unit_price:Number(c.upSellProduct.unit_price),is_add_on:!0,product_type:c.upSellProduct.product_type||"accessories"}];a.value&&(k[0].affiliate_code=a.value);const E=await l.addCartCompositeProducts(k);E.success?(await l.getCartCompositeProducts(),m("success",{state:n.formData.state,city:n.formData.city,streetAddress:n.formData.streetAddress,zipCode:n.formData.zipCode}),c.addOfferMark=!1,c.upSellProduct={}):te({message:E.message??"Failed to add product to cart.",type:"error"})}else{const k={product_id:c.upSellProduct.id,slug:c.upSellProduct.slug,product_name:c.upSellProduct.name,image:c.upSellProduct.image,quantity:1,source:2,products:[],price:Number(c.upSellProduct.unit_price),is_add_on:!0,product_type:c.upSellProduct.product_type||"accessories"};a.value&&(k.affiliate_code=a.value),l.addGenerallyProductToLocalStorageCart(k),m("success",{state:n.formData.state,city:n.formData.city,streetAddress:n.formData.streetAddress,zipCode:n.formData.zipCode}),c.addOfferMark=!1,c.upSellProduct={}}},C=ue(()=>c.upSellProduct.description?.replace(/\\n|\n/g,"<br>"));return(k,E)=>{const z=cr,$=ir("safe-html");return s(),u("div",vo,[t("div",_o,[t("label",wo,[S(t("input",{"onUpdate:modelValue":E[0]||(E[0]=I=>ge(_)?_.value=I:null),class:"mr-3 form-check text-black focus:ring-black",type:"checkbox",name:"addToOrderCheckbox",value:"1"},null,512),[[we,e(_)]]),E[1]||(E[1]=t("p",{class:"font-semibold"},"Yes! Please add this offer to my order",-1))])]),t("div",xo,[t("div",Co,[h(z,{to:e(g),external:""},{default:N(()=>[t("img",{width:"60",height:"55",src:e(c).upSellProduct.image,alt:`${e(c).upSellProduct.name} image`},null,8,So)]),_:1},8,["to"])]),t("div",Ao,[t("h2",ko,T(e(c).upSellProduct.name),1),S(t("div",To,null,512),[[$,e(C)]]),t("p",Eo,T(("toCurrency"in k?k.toCurrency:e(J))(e(c).upSellProduct.unit_price)),1)])])])}}},Po={},No={class:"h-66 overflow-y-auto border p-6"};function Oo(r,d){return s(),u("div",No,[...d[0]||(d[0]=[Mt('<div style="max-height:200px;overflow:auto;"><h2>Terms & Conditions</h2><p class="mb-2">Last updated June 16, 2021</p><h3 class="text-2xl font-semibold mb-2">Agreement to Terms</h3><p class="mb-2"> These Terms of Use constitute a legally binding agreement made between you, whether personally or on behalf of an entity (âyouâ) and Skytech Gaming (âCompanyâ, âweâ, âusâ, or âourâ), concerning your access to and use of the https://skytechgaming.com/ website as well as any other media form, media channel, mobile website or mobile application related, linked, or otherwise connected thereto (collectively, the âSiteâ). You agree that by accessing the Site, you have read, understood, and agreed to be bound by all of these Terms of Use. IF YOU DO NOT AGREE WITH ALL OF THESE TERMS OF USE, THEN YOU ARE EXPRESSLY PROHIBITED FROM USING THE SITE AND YOU MUST DISCONTINUE USE IMMEDIATELY. </p><p class="mb-2"> Supplemental terms and conditions or documents that may be posted on the Site from time to time are hereby expressly incorporated herein by reference. We reserve the right, in our sole discretion, to make changes or modifications to these Terms of Use at any time and for any reason. We will alert you about any changes by updating the âLast updatedâ date of these Terms of Use, and you waive any right to re
1ceive specific notice of each such change. It is your responsibility to periodically review these Terms of Use to stay informed of updates. You will be subject to, and will be deemed to have been made aware of and to have accepted, the changes in any revised Terms of Use by your continued use of the Site after the date such revised Terms of Use are posted. </p><p class="mb-2"> The information provided on the Site is not intended for distribution to or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to law or regulation or which would subject us to any registration requirement within such jurisdiction or country. Accordingly, those persons who choose to access the Site from other locations do so on their own initiative and are solely responsible for compliance with local laws, if and to the extent local laws are applicable. </p><p class="mb-6"> The Site is intended for users who are at least 13 years of age. All users who are minors in the jurisdiction in which they reside (generally under the age of 18) must have the permission of, and be directly supervised by, their parent or guardian to use the Site. If you are a minor, you must have your parent or guardian read and agree to these Terms of Use prior to you using the Site. </p><h3 class="text-2xl font-semibold mb-2">INTELLECTUAL PROPERTY RIGHTS</h3><p class="mb-2"> Unless otherwise indicated, the Site is our proprietary property and all source code, databases, functionality, software, website designs, audio, video, text, photographs, and graphics on the Site (collectively, the âContentâ) and the trademarks, service marks, and logos contained therein (the âMarksâ) are owned or c
1ontrolled by us or licensed to us, and are protected by copyright and trademark laws and various other intellectual property rights and unfair competition laws of the United States, foreign jurisdictions, and international conventions. The Content and the Marks are provided on the Site âAS ISâ for your information and personal use only. Except as expressly provided in these Terms of Use, no part of the Site and no Content or Marks may be copied, reproduced, aggregated, republished, uploaded, posted, publicly displayed, encoded, translated, transmitted, distributed, sold, licensed, or otherwise exploited for any commercial purpose whatsoever, without our express prior written permission. </p><p class="mb-6"> Provided that you are eligible to use the Site, you are granted a limited license to access and use the Site and to download or print a copy of any portion of the Content to which you have properly gained access solely for your personal, non-commercial use. We reserve all rights not expressly granted to you in and to the Site, the Content and the Marks. </p><h3 class="text-2xl font-semibold mb-2">USER REPRESENTATIONS</h3><p class="mb-2"> By using the Site, you represent and warrant that: (1) all registration information you submit will be true, accurate, current, and complete; (2) you will maintain the accuracy of such information and promptly update such registration information as necessary; (3) you have the legal capacity and you agree to comply with these Terms of Use; (4) you are not under the age of 13; (5) you are not a minor in the jurisdiction in which you reside, or if a minor, you have received parental permission to use the Site; (6) you will not access the Site through automated or non-human means, whether through a bot, script or otherwise; (7) you will not use the Site for any illegal or unauthorized purpose; and (8) your use of the Site will not violate any applicable law or regulation. </p><p class="mb-6"> If you provide any information that is untrue, inaccurate, not current, or incomplete, we have the right to suspend or terminate your account and refuse any and all current or future use of the Site (or any portion thereof). </p><h3>USER REGISTRATION</h3><p class="mb-2"> You may be required to register with the Site. You agree to keep your password confidential and will be responsible for all use of your account and password. We reserve the right to remove, reclaim, or change a username you select if we determine, in our sole discretion, that such username is inappropriate, obscene, or otherwise objectionable. </p><h3 class="text-2xl font-semibold mb-2">PRODUCTS</h3><p class="mb-6"> We make every effort to display as accurately as possible the colors, features, specifications, and details of the products available on the Site. However, we do not guarantee that the colors, features, specifications, and details of the products will be accurate, complete, reliable, current, or free of other errors, and your electronic display may not accurately reflect the actual colors and details of the products. All products are subject to availability, and we cannot guarantee that items will be in stock. We reserve the right to discontinue any products at any time for any reason. Prices for all products are subject to change. </p><h3 class="text-2xl font-semibold mb-2">PURCHASES AND PAYMENT</h3><p class="mb-2">Through our payment gateway PayPal we accept the following forms of payment:</p><ul class="mb-2"><li>Visa</li><li>Mastercard</li><li>American Express</li><li>Discover</li><li>PayPal</li></ul><p class="mb-2"> We also accept financing options including Affirm and Acima. Please visit our <a class="text-sky-600" href="/financing">financing page</a> for more information. </p><p class="mb-2"> You agree to provide current, complete, and accurate purchase and account information for all purchases made via the Site. You further agree to promptly update account and payment information, including email address, payment method, and payment card expiration date, so that we can complete your transactions and contact you as needed. Sales tax will be added to the price of purchases as deemed required by us. We may change prices at any time. All payments shall be in U.S. dollars. </p><p class="mb-2"> You agree to pay all charges at the prices then in effect for your purchases and any applicable shipping fees, and you authorize us to charge your chosen payment provider for any such amounts upon placing your order. We reserve the right to correct any errors or mistakes in pricing, even if we have already requested or received payment. </p><p class="mb-2"> We reserve the right to refuse any order placed through the Site. We may, in our sole discretion, limit or cancel quantities purchased per person, per household, or per order. These restrictions may include orders placed by or under the same customer account, the same payment method, and/or orders that use the same billing or shipping address. We reserve the right to limit or prohibit orders that, in our sole judgment, appear to be placed by dealers, resellers, or distributors. </p><h3 class="text-2xl font-semibold mb-2">RETURN POLICY</h3><p class="mb-6">Please review our Return Policy posted on the Site prior to making any purchases.</p><h3 class="text-2xl font-semibold mb-2">PROHIBITED ACTIVITIES</h3><p class="mb-2"> You may not access or use the Site for any purpose other than that for which we make the Site available. The Site may not be used in connection with any commercial endeavors except those that are specifically endorsed or approved by us. </p><p class="mb-6">As a user of the Site, you agree not to:</p><ol class="flex flex-col gap-y-3 list-disc pl-4"><li> Systematically retrieve data or other content from the Site to create or compile, directly or indirectly, a collection, compilation, database, or directory without written permission from us. </li><li> Make any unauthorized use of the Site, including collecting usernames and/or email addresses of users by electronic or other means for the purpose of sending unsolicited email, or creating user accounts by automated means or under false pretenses. </li><li>Use the Site to advertise or offer to sell goods and services.</li><li> Circumvent, disable, or otherwise interfere with security-related features of the Site, including features that prevent or restrict the use or copying of any Content or enforce limitations on the use of the Site and/or the Content contained therein. </li><li>Engage in unauthorized framing of or linking to the Site.</li><li>
1 Trick, defraud, or mislead us and other users, especially in any attempt to learn sensitive account information such as user passwords. </li><li>Make improper use of our support services or submit false reports of abuse or misconduct.</li><li> Engage in any automated use of the system, such as using scripts to send comments or messages, or using any data mining, robots, or similar data gathering and extraction tools. </li><li> Interfere with, disrupt, or create an undue burden on the Site or the networks or services connected to the Site. </li><li>Attempt to impersonate another user or person or use the username of another user.</li><li>Sell or otherwise transfer your profile.</li><li>Use any information obtained from the Site in order to harass, abuse, or harm another person.</li><li> Use the Site as part of any effort to compete with us or otherwise use the Site and/or the Content for any revenue-generating endeavor or commercial enterprise. </li><li> Decipher, decompile, disassemble, or reverse engineer any of the software comprising or in any way making up a part of the Site. </li><li> Attempt to bypass any measures of the Site designed to prevent or restrict access to the Site, or any portion of the Site. </li><li> Harass, annoy, intimidate, or threaten any of our employees or agents engaged in providing any portion of the Site to you. </li><li>Delete the copyright or other proprietary rights notice from any Content.</li><li> Copy or adapt the Siteâs software, including but not limited to Flash, PHP, HTML, JavaScript, or other code. </li><li> Upload or transmit (or attempt to upload or to transmit) viruses, Trojan horses, or other material, including excessive use of capital letters and spamming (continuous posting of repetitive text), that interferes with any partyâs uninterrupted use and enjoyment of the Site or modifies, impairs, disrupts, alters, or interferes with the use, features, functions, operation, or maintenance of the Site. </li><li> Upload or transmit (or attempt to upload or to transmit) any material that acts as a passive or active information collection or transmission mechanism, including without limitation, clear graphics interchange formats (âgifsâ), 1Ã1 pixels, web bugs, cookies, or other similar devices (sometimes referred to as âspywareâ or âpassive collection mechanismsâ or âpcmsâ). </li><li> Except as may be the result of standard search engine or Internet browser usage, use, launch, develop, or distribute any automated system, including without limitation, any spider, robot, cheat utility, scraper, or offline reader that accesses the Site, or using or launching any unauthorized script or other software. </li><li>Disparage, tarnish, or otherwise harm, in our opinion, us and/or the Site.</li><li>Use the Site in a manner inconsistent with any applicable laws or regulations.</li></ol><h3 class="text-2xl font-semibold mb-2">GUIDELINES FOR REVIEWS</h3><p class="mb-2"> We may provide you areas on the Site to leave reviews or ratings. When posting a review, you must comply with the following criteria: (1) you should have firsthand experience with the person/entity being reviewed; (2) your reviews should not contain offensive profanity, or abusive, racist, offensive, or hate language; (3) your reviews should not contain discriminatory references based on religion, race, gender, national origin, age, marital status, sexual orientation, or disability; (4) your reviews should not contain references to illegal activity; (5) you should not be affiliated with competitors if posting negative reviews; (6) you should not make any conclusions as to the legality of conduct; (7) you may not post any false or misleading statements; and (8) you may not organize a campaign encouraging others to post reviews, whether positive or negative. </p><p class="mb-6"> We may accept, reject, or remove reviews in our sole discretion. We have absolutely no obligation to screen reviews or to delete reviews, even if anyone considers reviews objectionable or inaccurate. Reviews are not endorsed by us, and do not necessarily represent our opinions or the views of any of our affiliates or partners. We do not assume liability for any review or for any claims, liabilities, or losses resulting from any review. By posting a review, you hereby grant to us a perpetual, non-exclusive, worldwide, royalty-free, fully-paid, assignable, and sublicensable right and license to reproduce, modify, translate, transmit by any means, display, perform, and/or distribute all c
1ontent relating to reviews. </p><h3 class="text-2xl font-semibold mb-2">INVITATION TO SUBMIT REVIEWS</h3><p class="mb-6"> You will be contacted via email within 10 days after order completion to submit your honest review. You are not obligated to submit one, but your honest review would be greatly appreciated. </p><h3 class="text-2xl font-semibold mb-2">SUBMISSIONS</h3><p class="mb-6"> You acknowledge and agree that any questions, comments, suggestions, ideas, feedback, or other information regarding the Site or the Marketplace Offerings (âSubmissionsâ) provided by you to us are non-confidential and shall become our sole property. We shall own exclusive rights, including all intellectual property rights, and shall be entitled to the unrestricted use and dissemination of these Submissions for any lawful purpose, commercial or otherwise, without acknowledgment or compensation to you. You hereby waive all moral rights to any such Submissions, and you hereby warrant that any such Submissions are original with you or that you have the right to submit such Submissions. You agree there shall be no recourse against us for any alleged or actual infringement or misappropriation of any proprietary right in your Submissions. </p><h3 class="text-2xl font-semibold mb-2">THIRD-PARTY WEBSITES AND CONTENT</h3><p class="mb-6"> The Site may contain (or you may be sent via the Site or the Marketplace Offer
1ings) links to other websites (âThird-Party Websitesâ) as well as articles, photographs, text, graphics, pictures, designs, music, sound, video, information, applications, software, and other content or items belonging to or originating from third parties (âThird-Party Contentâ). Such Third-Party Websites and Third-Party Content are not investigated, monitored, or checked for accuracy, appropriateness, or completeness by us, and we are not responsible for any Third Party Websites accessed through the Site or any Third-Party Content posted on, available through, or installed from the Site, including the content, accuracy, offensiveness, opinions, reliability, privacy practices, or other policies of or contained in the Third-Party Websites or the Third-Party Content. Inclusion of, linking to, or permitting the use or installation of any Third-Party Websites or any Third-PartyContent does not imply approval or endorsement thereof by us. If you decide to leave the Site and access the Third-Party Websites or to use or install any Third-Party Content, you do so at your own risk, and you should be aware these Terms of Use no longer govern. You should review the applicable terms and policies, including privacy and data gathering practices, of any website to which you navigate from the Site or relating to any applications you use or install from the Site. Any purchases you make through Third-Party Websites will be through other websites and from other companies, and we take no responsibility whatsoever in relation to such purchases which are exclusively between you and the applicable third party. You agree and acknowledge that we do not endorse the products or services offered on Third-Party Websites and you shall hold us harmless from any harm caused by your purchase of such products or services. Additionally, you shall hold us harmless from any losses sustained by you or harm caused to you relating to or resulting in any way from any Third-Party Content or any contact with Third-Party Websites. </p><h3 class="text-2xl font-semibold mb-2">SITE MANAGEMENT</h3><p class="mb-6"> We reserve the right, but not the obligation, to: (1) monitor the Site for violations of these Terms of Use; (2) take appropriate legal action against anyone who, in our sole discretion, violates the law or these Terms of Use, including without limitation, reporting such user to law enforcement authorities; (3) in our sole discretion and without limitation, refuse, restrict access to, limit the availability of, or disable (to the extent technologically feasible) any of your Contributions or any portion thereof; (4) in our sole discretion and without limitation, notice, or liability, to remove from the Site or otherwise disable all files and content that are excessive in size or are in any way burdensome to our systems; and (5) otherwise manage the Site in a manner designed to protect our rights and property and to facilitate the proper functioning of the Site and the Marketplace Offer
1ings. </p><h3 class="text-2xl font-semibold mb-2">PRIVACY POLICY</h3><p class="mb-6"> We care about data privacy and security. Please review our Privacy Policy:Â <a href="https://skytechgaming.com/privacy-policy/">https://skytechgaming.com/privacy-policy/</a>. By using the Site or the Marketplace Offerings, you agree to be bound by our Privacy Policy, which is incorporated into these Terms of Use. Please be advised the Site and the Marketplace Offerings are hosted in the United States. If you access the Site or the Marketplace Offerings from the European Union, Asia, or any other region of the world with laws or other requirements governing personal data collection, use, or disclosure that differ from applicable laws in the United States, then through your continued use of the Site, you are transferring your data to the United States, and you expressly consent to have your data transferred to and processed in the United States. Further, we do not knowingly accept, request, or solicit information from children or knowingly market to children. Therefore, in accordance with the U.S. Childrenâs Online Privacy Protection Act, if we receive actual knowledge that anyone under the age of 13 has provided personal information to us without the requisite and verifiable parental consent, we will delete that information from the Site as quickly as is reasonably practical. </p><h3 class="text-2xl font-semibold mb-2">TERM AND TERMINATION</h3><p class="mb-2"> These Terms of Use shall remain in full force and effect while you use the Site. WITHOUT LIMITING ANY OTHER PROVISION OF THESE TERMS OF USE, WE RESERVE THE RIGHT TO, IN OUR SOLE DISCRETION AND WITHOUT NOTICE OR LIABILITY, DENY ACCESS TO AND USE OF THE SITE AND THE MARKETPLACE OFFERINGS (INCLUDING BLOCKING CERTAIN IP ADDRESSES), TO ANY PERSON FOR ANY REASON OR FOR NO REASON, INCLUDING WITHOUT LIMITATION FOR BREACH OF ANY REPRESENTATION, WARRANTY, OR COVENANT CONTAINED IN THESE TERMS OF USE OR OF ANY APPLICABLE LAW OR REGULATION. WE MAY TERMINATE YOUR USE OR PARTICIPATION IN THE SITE AND THE MARKETPLACE OFFERINGS OR DELETE YOUR ACCOUNT AND ANY CONTENT OR INFORMATION THAT YOU POSTED AT ANY TIME, WITHOUT WARNING, IN OUR SOLE DISCRETION. </p><p class="mb-6"> If we terminate or suspend your account for any reason, you are prohibited from registering and creating a new account under your name, a fake or borrowed name, or the name of any third party, even if you may be acting on behalf of the third party. In addition to terminating or suspending your account, we reserve the right to take appropriate legal action, including without limitation pursuing civil, criminal, and injunctive redress. </p><h3 class="text-2xl font-semibold mb-2">MODIFICATIONS AND INTERRUPTIONS</h3><p class="mb-2"> We reserve the right to change, modify, or remove the contents of the Site at any time or for any reason at our sole discretion without notice. However, we have no obligation to update any information on our Site. We also reserve the right to modify or discontinue all or part of the Marketplace Offer
1ings without notice at any time. We will not be liable to you or any third party for any modification, price change, suspension, or discontinuance of the Site or the Marketplace Offerings. </p><p class="mb-6"> We cannot guarantee the Site and the Marketplace Offerings will be available at all times. We may experience hardware, software, or other problems or need to perform maintenance related to the Site, resulting in interruptions, delays, or errors. We reserve the right to change, revise, update, suspend, discontinue, or otherwise modify the Site or the Marketplace Offerings at any time or for any reason without notice to you. You agree that we have no liability whatsoever for any loss, damage, or inconvenience caused by your inability to access or use the Site or the Marketplace Offerings during any downtime or discontinuance of the Site or the Marketplace Offerings. Nothing in these Terms of Use will be construed to obligate us to maintain and support the Site or the Marketplace Offerings or to supply any corrections, updates, or releases in connection therewith. </p><h3 class="text-2xl font-semibold mb-2">GOVERNING LAW</h3><p class="mb-6"> These Terms of Use and your use of the Site and the Marketplace Offer
1ings are governed by and construed in accordance with the laws of the State of California applicable to agreements made and to be entirely performed within the State of California, without regard to its conflict of law principles. </p><h3 class="text-2xl font-semibold mb-2">DISPUTE RESOLUTION</h3><h4 class="mb-2">Binding Arbitration</h4><p class="mb-2"> If the Parties are unable to resolve a Dispute through informal negotiations, the Dispute (except those Disputes expressly excluded below) will be finally and exclusively resolved by binding arbitration. YOU UNDERSTAND THAT WITHOUT THIS PROVISION, YOU WOULD HAVE THE RIGHT TO SUE IN COURT AND HAVE A JURY TRIAL. The arbitration shall be commenced and conducted under the Commercial Arbitration Rules of the American Arbitration Association (âAAAâ) and, where appropriate, the AAAâs Supplementary Procedures for Consumer Related Disputes (âAAA Consumer Rulesâ), both of which are available at the AAA website www.adr.org. Your arbitration fees and your share of arbitrator compensation shall be governed by the AAA Consumer Rules and, where appropriate, limited by the AAA Consumer Rules. The arbitration may be conducted in person, through the submission of documents, by phone, or online. The arbitrator will make a decision in writing, but need not provide a statement of reasons unless requested by either Party. The arbitrator must follow applicable law, and any award may be challenged if the arbitrator fails to do so. Except where otherwise required by the applicable AAA rules or applicable law, the arbitration will take place in San Bernardino County, California. Except as otherwise provided herein, the Parties may litigate in court to compel arbitration, stay proceedings pending arbitration, or to confirm, modify, vacate, or enter judgment on the award entered by the arbitrator. </p><p class="mb-2"> If for any reason, a Dispute proceeds in court rather than arbitration, the Dispute shall be commenced or prosecuted in the state and federal courts located in San Bernardino County, California, and the Parties hereby consent to, and waive all defenses of lack of personal jurisdiction, and forum non conveniens with respect to venue and jurisdiction in such state and federal courts. Application of the United Nations Convention on Contracts for the International Sale of Goods and the the Uniform Computer Information Transaction Act (UCITA) are excluded from these Terms of Use. </p><p class="mb-2"> If this provision is found to be illegal or unenforceable, then neither Party will elect to arbitrate any Dispute falling within that portion of this provision found to be illegal or unenforceable and such Dispute shall be decided by a court of competent jurisdiction within the courts listed for jurisdiction above, and the Parties agree to submit to the personal jurisdiction of that court. </p><h4 class="mb-2">Restrictions</h4><p class="mb-2"> The Parties agree that any arbitration shall be limited to the Dispute between the Parties individually. To the full extent permitted by law, (a) no arbitration shall be joined with any other proceeding; (b) there is no right or authority for any Dispute to be arbitrated on a class-action basis or to utilize class action procedures; and (c) there is no right or authority for any Dispute to be brought in a purported representative capacity on behalf of the general public or any other persons. </p><h4 class="mb-2">Exceptions to Arbitration</h4><p class="mb-2"> The Parties agree that the following Disputes are not subject to the above provisions concerning binding arbitration: (a) any Disputes seeking to enforce or protect, or concerning the validity of, any of the intellectual property rights of a Party; (b) any Dispute related to, or arising from, allegations of theft, piracy, invasion of privacy, or unauthorized use; and (c) any claim for injunctive relief. If this provision is found to be illegal or unenforceable, then neither Party will elect to arbitrate any Dispute falling within that portion of this provision found to be illegal or unenforceable and such Dispute shall be decided by a court of competent jurisdiction within the courts listed for jurisdiction above, and the Parties agree to submit to the personal jurisdiction of that court. </p><h3 class="text-2xl font-semibold mb-2">CORRECTIONS</h3><p class="mb-6"> There may be information on the Site that contains typographical errors, inaccuracies, or omissions that may relate to the Marketplace Offer
1ings, including descriptions, pricing, availability, and various other information. We reserve the right to correct any errors, inaccuracies, or omissions and to change or update the information on the Site at any time, without prior notice. </p><h3 class="text-2xl font-semibold mb-2">DISCLAIMER</h3><p class="mb-6"> THE SITE IS PROVIDED ON AN AS-IS AND AS-AVAILABLE BASIS. YOU AGREE THAT YOUR USE OF THE SITE SERVICES WILL BE AT YOUR SOLE RISK. TO THE FULLEST EXTENT PERMITTED BY LAW, WE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, IN CONNECTION WITH THE SITE AND YOUR USE THEREOF, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. WE MAKE NO WARRANTIES OR REPRESENTATIONS ABOUT THE ACCURACY OR COMPLETENESS OF THE SITEâS CONTENT OR THE CONTENT OF ANY WEBSITES LINKED TO THIS SITE AND WE WILL ASSUME NO LIABILITY OR RESPONSIBILITY FOR ANY (1) ERRORS, MISTAKES, OR INACCURACIES OF CONTENT AND MATERIALS, (2) PERSONAL INJURY OR PROPERTY DAMAGE, OF ANY NATURE WHATSOEVER, RESULTING FROM YOUR ACCESS TO AND USE OF THE SITE, (3) ANY UNAUTHORIZED ACCESS TO OR USE OF OUR SECURE SERVERS AND/OR ANY AND ALL PERSONAL INFORMATION AND/OR FINANCIAL INFORMATION STORED THEREIN, (4) ANY INTERRUPTION OR CESSATION OF TRANSMISSION TO OR FROM THE SITE, (5) ANY BUGS, VIRUSES, TROJAN HORSES, OR THE LIKE WHICH MAY BE TRANSMITTED TO OR THROUGH THE SITE BY ANY THIRD PARTY, AND/OR (6) ANY ERRORS OR OMISSIONS IN ANY CONTENT AND MATERIALS OR FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF ANY CONTENT POSTED, TRANSMITTED, OR OTHERWISE MADE AVAILABLE VIA THE SITE. WE DO NOT WARRANT, ENDORSE, GUARANTEE, OR ASSUME RESPONSIBILITY FOR ANY PRODUCT OR SERVICE ADVERTISED OR OFFERED BY A THIRD PARTY THROUGH THE SITE, ANY HYPERLINKED WEBSITE, OR ANY WEBSITE OR MOBILE APPLICATION FEATURED IN ANY BANNER OR OTHER ADVERTISING, AND WE WILL NOT BE A PARTY TO OR IN ANY WAY BE RESPONSIBLE FOR MONITORING ANY TRANSACTION BETWEEN YOU AND ANY THIRD-PARTY PROVIDERS OF PRODUCTS OR SERVICES. AS WITH THE PURCHASE OF A PRODUCT OR SERVICE THROUGH ANY MEDIUM OR IN ANY ENVIRONMENT, YOU SHOULD USE YOUR BEST JUDGMENT AND EXERCISE CAUTION WHERE APPROPRIATE. </p><h3 class="text-2xl font-semibold mb-2">LIMITATIONS OF LIABILITY</h3><p class="mb-6"> IN NO EVENT WILL WE OR OUR DIRECTORS, EMPLOYEES, OR AGENTS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, SPECIAL, OR PUNITIVE DAMAGES, INCLUDING LOST PROFIT, LOST REVENUE, LOSS OF DATA, OR OTHER DAMAGES ARISING FROM YOUR USE OF THE SITE, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. </p><h3 class="text-2xl font-semibold mb-2">INDEMNIFICATION</h3><p class="mb-6"> You agree to defend, indemnify, and hold us harmless, including our subsidiaries, affiliates, and all of our respective officers, agents, partners, and employees, from and against any loss, damage, liability, claim, or demand, including reasonable attorneysâ fees and expenses, made by any third party due to or arising out of: (1) use of the Site; (2) breach of these Terms of Use; (3) any breach of your representations and warranties set forth in these Terms of Use; (4) your violation of the rights of a third party, including but not limited to intellectual property rights; or (5) any overt harmful act toward any other user of the Site with whom you connected via the Site. Notwithstanding the foregoing, we reserve the right, at your expense, to assume the exclusive defense and control of any matter for which you are required to indemnify us, and you agree to cooperate, at your expense, with our defense of such claims. We will use reasonable efforts to notify you of any such claim, action, or proceeding which is subject to this indemnification upon becoming aware of it. </p><h3 class="text-2xl font-semibold mb-2">USER DATA</h3><p class="mb-6"> We will maintain certain data that you transmit to the Site for the purpose of managing the performance of the Site, as well as data relating to your use of the Site. Although we perform regular routine backups of data, you are solely responsible for all data that you transmit or that relates to any activity you have undertaken using the Site. You agree that we shall have no liability to you for any loss or c
1orruption of any such data, and you hereby waive any right of action against us arising from any such loss or corruption of such data. </p><h3 class="text-2xl font-semibold mb-2">ELECTRONIC COMMUNICATIONS, TRANSACTIONS, AND SIGNATURES</h3><p class="mb-6"> Visiting the Site, sending us emails, and completing online forms constitute electronic communications. You consent to receive electronic communications, and you agree that all agreements, notices, disclosures, and other communications we provide to you electronically, via email and on the Site, satisfy any legal requirement that such communication be in writing. YOU HEREBY AGREE TO THE USE OF ELECTRONIC SIGNATURES, CONTRACTS, ORDERS, AND OTHER RECORDS, AND TO ELECTRONIC DELIVERY OF NOTICES, POLICIES, AND RECORDS OF TRANSACTIONS INITIATED OR COMPLETED BY US OR VIA THE SITE. You hereby waive any rights or requirements under any statutes, regulations, rules, ordinances, or other laws in any jurisdiction which require an original signature or delivery or retention of non-electronic records, or to payments or the granting of credits by any means other than electronic means. </p><h3 class="text-2xl font-semibold mb-2">CALIFORNIA USERS AND RESIDENTS</h3><p class="mb-6"> If any complaint with us is not satisfactorily resolved, you can contact the Complaint Assistance Unit of the Division of Consumer Services of the California Department of Consumer Affairs in writing at 1625 North Market Blvd., Suite N 112, Sacramento, California 95834 or by telephone at (800) 952-5210 or (916) 445-1254. </p><h3 class="text-2xl font-semibold mb-2">MISCELLANEOUS</h3><p class="mb-6"> These Terms of Use and any policies or operating rules posted by us on the Site or in respect to the Site constitute the entire agreement and understanding between you and us. Our failure to exercise or enforce any right or provision of these Terms of Use shall not operate as a waiver of such right or provision. These Terms of Use operate to the fullest extent permissible by law. We may assign any or all of our rights and obligations to others at any time. We shall not be responsible or liable for any loss, damage, delay, or failure to act caused by any cause beyond our reasonable control. If any provision or part of a provision of these Terms of Use is determined to be unlawful, void, or unenforceable, that provision or part of the provision is deemed severable from these Terms of Use and does not affect the validity and enforceability of any remaining provisions. There is no joint venture, partnership, employment or agency relationship created between you and us as a result of these Terms of Use or use of the Site. You agree that these Terms of Use will not be construed against us by virtue of having drafted them. You hereby waive any and all defenses you may have based on the electronic form of these Terms of Use and the lack of signing by the parties hereto to execute these Terms of Use. </p><h3 class="text-2xl font-semibold mb-2">CONTACT US</h3><p class="mb-2"> In order to resolve a complaint regarding the Site or to receive further information regarding use of the Site, please contact us at: </p><p class="mb-6"><strong><br>Skytech Gaming<br>1600 Proforma Ave<br>Ontario, CA 91761<br>United States<br>Phone: 888-370-8882<br>[email protected]</strong></p></div>',1)])])}var Ra=Object.assign(Le(Po,[["render",Oo]]),{__name:"TextBlockTermsAndConditions"}),Io={id:"paypal-button",class:"min-w-75"},$a={__name:"CheckoutPaymentPaypalButton",props:{orderData:{type:Object,required:!0},waitForPaypal:{type:Function,required:!0},createPaypalOrder:{type:Function,required:!0},onValidateAllForm:{type:Function,required:!0}},emits:["success","error"],setup(r,{emit:d}){const m=r,n=d;let f=!1;return ft(async()=>{try{if(await m.waitForPaypal(),typeof paypal>"u"||f)return;paypal.Buttons({style:{layout:"vertical",label:"pay",tagline:!1,shape:"pill",height:45},async onClick(){return!!await m.onValidateAllForm()},async createOrder(){try{return await m.createPaypalOrder(m.orderData)}catch(l){n("error",l)}},async onApprove(l,c){try{n("success",{provider:"paypal",data:l})}catch(a){return n("error",a),c.order.void()}},onError(l){n("error",l)}}).render("#paypal-button"),f=!0}catch(l){n("error",l)}}),Ft(()=>{try{paypal&&paypal.Buttons&&paypal.Buttons().close()}catch{console.error("Failed to close PayPal buttons.")}}),(l,c)=>(s(),u("div",Io))}},Do=["aria-busy"],Uo={key:0},Ro={class:"py-4 w-16"},$o={class:"relative w-15 h-15 border border-zinc-200 bg-white p-1.25 flex items-center justify-center"},Vo={class:"font-semibold -top-2.5 -right-2.5 text-xs text-white flex justify-center items-center w-5 h-5 bg-zinc-500 absolute rounded-full"},Lo=["src","alt"],Mo=["src","alt"],Fo={class:"pl-3"},Bo={class:"flex flex-col text-left"},zo={class:"font-normal"},jo={key:0},Ho={key:0,class:"mt-1 text-xs font-normal space-y-0.5"},qo=["src","alt"],Go={class:"pl-3 py-3 text-right"},Yo={key:0},Wo={key:1},Zo={key:2},Qo={key:1},Ko={class:"py-4 w-16"},Jo={class:"relative w-15 h-15 border border-zinc-200 bg-white p-1.25 flex items-center justify-center"},Xo={class:"font-semibold -top-2.5 -right-2.5 text-xs text-white flex justify-center items-center w-5 h-5 bg-zinc-500 absolute rounded-full"},ei=["src","alt"],ti=["src","alt"],ai={class:"pl-3"},ri={class:"flex flex-col text-left"},oi={class:"font-normal"},ii={key:0},si={class:"pl-3 py-3 text-right"},ni={key:0},li={key:1},di={class:"py-4 w-16"},ui={class:"relative w-15 h-15 border border-zinc-200 bg-white p-1 flex items-center justify-center"},ci={class:"font-semibold -top-2.5 -right-2.5 text-xs text-white flex justify-center items-center w-5 h-5 bg-zinc-500 absolute rounded-full"},pi=["src","alt"],mi=["src","alt"],hi={class:"pl-3"},gi={class:"flex flex-col text-left"},fi={class:"font-normal"},yi={key:0},bi={class:"pl-3 py-3 text-right"},vi={class:"border-t border-gray-300"},_i={class:"pl-3"},wi={class:"flex flex-col text-left font-medium"},xi=["href"],Ci={class:"pl-3 py-3 text-right"},Si={class:"py-4 w-16"},Ai={class:"relative w-15 h-15 border border-zinc-200 bg-white p-1.25 flex items-center justify-center"},ki={key:0,class:"font-semibold -top-2.5 -right-2.5 text-xs text-white flex justify-center items-center w-5 h-5 bg-zinc-500 absolute rounded-full"},Ti=["src","alt"],Ei=["src","alt"],Pi={class:"pl-3"},Ni={class:"flex flex-col text-left font-medium"},Oi={class:"capitalize"},Ii={class:"font-normal"},Di={key:0},Ui={key:0},Ri={class:"mr-2"},$i={class:"underline"},Vi={key:1,class:"mt-1 text-xs font-normal space-y-0.5"},Li=["src","alt"],Mi={class:"pl-3 py-3 text-right"},Va={__name:"CartCheckout",setup(r){const d=ue(()=>!1),m=U("a8e99741-e9ba-4b97-b0a0-507ff41c7942"),n=Ge(),f=zt(),l=ue(()=>n.cartIsEmpty),{getCelebrationImage:c}=Nr();return(a,x)=>{const g=xr,_=yt;return s(),u("table",{class:"mb-10 w-full","aria-busy":e(l)},[t("tbody",null,[e(l)?(s(),u(H,{key:0},[(s(),u(H,null,le(3,p=>t("tr",{key:`cart-skeleton-${p}`,class:"animate-pulse","aria-hidden":"true"},[...x[0]||(x[0]=[t("td",{class:"py-4 w-16"},[t("div",{class:"w-15 h-15 border border-zinc-200 bg-zinc-200 rounded-sm"})],-1),t("th",{class:"pl-3"},[t("div",{class:"flex flex-col gap-2 text-left"},[t("div",{class:"h-4 w-3/4 max-w-48 bg-zinc-200 rounded-sm"}),t("div",{class:"h-3 w-1/2 max-w-28 bg-zinc-200 rounded-sm"})])],-1),t("td",{class:"pl-3 py-3 text-right"},[t("div",{class:"h-4 w-16 bg-zinc-200 rounded-sm ml-auto"})],-1)])])),64)),x[1]||(x[1]=t("tr",{class:"sr-only"},[t("td",{colspan:"3"}
1,"Loading cart items")],-1))],64)):A("",!0),e(n).localGenerallyCart.length!==0?(s(!0),u(H,{key:1},le(e(n).localGenerallyCart,(p,C)=>(s(),u(H,{key:`cartItemIndex-${C}`},[p.product_type!=="warranty"?(s(),u("tr",Uo,[t("td",Ro,[t("div",$o,[t("p",Vo,T(p.quantity),1),("isNonEmptyArray"in a?a.isNonEmptyArray:e(Ie))(p.image)?(s(),u("img",{key:0,width:"60",height:"60",src:p.image[0].imgurl,alt:`${p.product_name} image`},null,8,Lo)):p.image?(s(),u("img",{key:1,width:"60",height:"60",src:p.image,alt:`${p.product_name} image`},null,8,Mo)):(s(),pe(g,{key:2}))])]),t("th",Fo,[t("div",Bo,[t("h4",zo,[e(d)?(s(),u("span",jo," (isDev A) ")):A("",!0),q(" "+T(e(kr)(p.product_name??p.composite_name)),1)]),p.custom_glass_etching_mark?(s(),u("div",Ho,[x[3]||(x[3]=t("p",{class:"font-bold"},"Glass Etching:",-1)),p.custom_glass_etching.celebration?(s(),u(H,{key:0},[x[2]||(x[2]=t("p",null,"Type: Preset Design",-1)),t("p",null," Design: "+T(p.custom_glass_etching.preset_label),1),e(c)(p.custom_glass_etching.celebration_id)?(s(),u("img",{key:0,src:e(c)(p.custom_glass_etching.celebration_id),alt:p.custom_glass_etching.preset_label||"Preset Design",class:"mt-2 rounded-sm max-w-40"},null,8,qo)):A("",!0)],64)):(s(),u(H,{key:1},[t("p",null," Text: "+T(p.custom_glass_etching.etching_text),1),t("p",null," Font: "+T(e(sa)(p.custom_glass_etching.font)),1),t("p",null," Position: "+T(e(na)(p.custom_glass_etching.position_on_panel)),1)],64))])):A("",!0)])]),t("td",Go,[e(f).isLogin?(s(),u("span",Yo,T(("toCurrency"in a?a.toCurrency:e(J))(p.unit_price)),1)):p.discount_active?(s(),u("span",Wo,T(("toCurrency"in a?a.toCurrency:e(J))(p.unit_price)),1)):(s(),u("span",Zo,T(("toCurrency"in a?a.toCurrency:e(J))(p.price*p.quantity)),1))])])):A("",!0),p.product_type==="warranty"?(s(),u("tr",Qo,[t("td",Ko,[t("div",Jo,[t("p",Xo,T(p.quantity),1),("isNonEmptyArray"in a?a.isNonEmptyArray:e(Ie))(p.image)?(s(),u("img",{key:0,width:"60",height:"60",src:p.image[0].imgurl,alt:`${p.product_name} image`},null,8,ei)):p.image?(s(),u("img",{key:1,width:"60",height:"60",src:p.image,alt:`${p.product_name} image`},null,8,ti)):(s(),pe(g,{key:2}))])]),t("th",ai,[t("div",ri,[t("h4",oi,[e(d)?(s(),u("span",ii," (isDev B) ")):A("",!0),q(" "+T(p.product_name??p.composite_name),1)])])]),t("td",si,[e(f).isLogin?(s(),u("span",ni,T(("toCurrency"in a?a.toCurrency:e(J))(p.unit_price*p.quantity)),1)):(s(),u("span",li,T(("toCurrency"in a?a.toCurrency:e(J))(p.price*p.quantity)),1))])])):A("",!0),p.product_option||p.product_option_mark?(s(!0),u(H,{key:2},le(p.products,(k,E)=>(s(),u("tr",{key:E,class:"border-gray-300"},[t("td",di,[t("div",ui,[t("p",ci,T(k.quantity),1),("isNonEmptyArray"in a?a.isNonEmptyArray:e(Ie))(k.image)?(s(),u("img",{key:0,width:"60",height:"60",src:k.image[0].imgurl,alt:`${k.product_name} image`},null,8,pi)):k.image?(s(),u("img",{key:1,width:"60",height:"60",src:k.image,alt:`${k.product_name} image`},null,8,mi)):(s(),pe(g,{key:2}))])]),t("th",hi,[t("div",gi,[t("h4",fi,[e(d)?(s(),u("span",yi," (isDev C) ")):A("",!0),q(" "+T(k.product_name??k.composite_name),1)])])]),t("td",bi,[t("span",null,[e(f).isLogin?(s(),u(H,{key:1},[q(T(("toCurrency"in a?a.toCurrency:e(J))(k.was_price*k.quantity)),1)],64)):(s(),u(H,{key:0},[q(T(("toCurrency"in a?a.toCurrency:e(J))(k.was_price*k.quantity)),1)],64))])])]))),128)):A("",!0)],64))),128)):A("",!0),e(n).localCustomCart.length!==0?(s(),u(H,{key:2},[t("tr",vi,[x[6]||(x[6]=t("td",{class:"py-4 w-16"},[t("div",{class:"relative w-15 h-15 border border-zinc-200 bg-white p-1.25 flex items-center justify-center"},[t("p",{class:"font-semibold -top-2.5 -right-2.5 text-xs text-white flex justify-center items-center w-5 h-5 bg-zinc-500 absolute rounded-full"}," 1 "),t("img",{width:"100",height:"100",src:"https://skytechai.s3.us-west-002.backblazeb2.com/qmef9r7v2jiibd43lu7dfmvf52l8_custompcilluatration-100x100pngpng.png",alt:"Custom PC Illustration"})])],-1)),t("th",_i,[t("div",wi,[x[5]||(x[5]=t("h4",null,"Custom Build",-1)),t("div",null,[t("p",null,[x[4]||(x[4]=q(" Edit Computer: ",-1)),t("a",{href:e(n).localCustomCart[0].purchase_url?e(n).localCustomCart[0].purchase_url:`/stg-custom-builder/${e(m)}`},"Click Here",8,xi)])])])]),t("td",Ci,[t("span",null,T(("toCurrency"in a?a.toCurrency:e(J))(e(n).localCustomTotalPrice)),1)])]),(s(!0),u(H,null,le(e(n).localCustomCart[0].products[0],(p,C)=>(s(),u("tr",{key:`cartItemIndex-custom-${C}`},[t("td",Si,[t("div",Ai,[C!=="Fans"?(s(),u("p",ki,T(p.quantity),1)):A("",!0),("isNonEmptyArray"in a?a.isNonEmptyArray:e(Ie))(p.image)?(s(),u("img",{key:1,width:"60",height:"60",src:p.image[0].imgurl,alt:p.name??p.product_name},null,8,Ti)):p.image==="default none"?(s(),pe(_,{key:2,class:"text-[45px] opacity-50",name:"carbon:error"})):p.image?(s(),u("img",{key:3,width:"60",height:"60",src:p.image,alt:p.name??p.product_name},null,8,Ei)):(s(),pe(g,{key:4}))])]),t("th",Pi,[t("div",Ni,[t("p",Oi,T(("renameCategoryName"in a?a.renameCategoryName:e(Or))(C))+":",1),t("h4",Ii,[e(d)?(s(),u("span",Di," (isDev D) ")):A("",!0),q(" "+T(p.name??p.product_name),1)]),p.was_price&&C!=="Fans"?(s(),u("div",Ui,[t("del",Ri,T(("toCurrency"in a?a.toCurrency:e(J))(p.was_price)),1),t("span",$i,T(("toCurrency"in a?a.toCurrency:e(J))(p.price)),1)])):A("",!0),C==="Glass Etching"&&e(n).localCustomCart[0]?.custom_glass_etching_mark?(s(),u("div",Vi,[e(n).localCustomCart[0].custom_glass_etching.celebration?(s(),u(H,{key:0},[x[7]||(x[7]=t("p",null,"Type: Preset Design",-1)),t("p",null," Design: "+T(e(n).localCustomCart[0].custom_glass_etching.preset_label),1),e(c)(e(n).localCustomCart[0].custom_glass_etching.celebration_id)?(s(),u("img",{key:0,src:e(c)(e(n).localCustomCart[0].custom_glass_etching.celebration_id),alt:e(n).localCustomCart[0].custom_glass_etching.preset_label||"Preset Design",class:"mt-2 rounded-sm max-w-40"},null,8,Li)):A("",!0)],64)):(s(),u(H,{key:1},[t("p",null," Text: "+T(e(n).localCustomCart[0].custom_glass_etching.etching_text),1),t("p",null," Font: "+T(e(sa)(e(n).localCustomCart[0].custom_glass_etching.font)),1),t("p",null," Position: "+T(e(na)(e(n).localCustomCart[0].custom_glass_etching.position_on_panel)),1)],64))])):A("",!0)])]),t("td",Mi,[t("span",null,T(C==="Fans"?("toCurrency"in a?a.toCurrency:e(J))(p.price*p.quantity):("toCurrency"in a?a.toCurrency:e(J))(p.price)),1)])]))),128))],64)):A("",!0)])],8,Do)}}},Fi={class:"modal-panel bg-white w-full max-h-[85vh] sm:max-h-[90vh] overflow-y-auto rounded-t-2xl sm:rounded-xl sm:max-w-120 shadow-[0_20px_60px_rgba(0,0,0,0.15)]"},Bi={class:"flex items-center justify-between border-b border-gray-200 px-4 py-5 sm:px-6"},zi={id:"modal-title",class:"montserrat-font text-lg font-bold text-black"},ji={class:"flex w-full items-center justify-center bg-gray-100 p-6 sm:p-8"},Hi=["src","alt"],qi={key:1,class:"flex h-20 w-20 items-center justify-center text-primary sm:h-20 sm:w-20"},Gi={class:"px-4 py-5 sm:px-6 sm:py-6"},Yi={class:"mb-4 flex flex-wrap items-center gap-2"},Wi={key:0,class:"text-base text-gray-400 line-through"},Zi={class:"text-xl font-bold text-primary sm:text-[1.25rem]"}
1,Qi={key:1,class:"rounded-sm bg-primary/10 px-2 py-1 text-xs font-semibold text-primary"},Ki={key:0,class:"mb-5 text-[0.95rem] leading-relaxed text-gray-600"},Ji={class:"mb-6 list-none space-y-0 border-b border-gray-100 last:border-0"},Xi={class:"text-sm text-gray-800"},es={__name:"RecommendedProductItemModal",props:{modelValue:{type:Boolean,default:!1},product:{type:Object,default:null},description:{type:String,default:""},list:{type:Array,default:()=>[]}},emits:["update:modelValue","add-to-order"],setup(r,{emit:d}){const m=r,n=d,f=ue(()=>{if(m.description)return m.description;const g=m.product;return g&&(g.short_description||g.description)||""}),l=ue(()=>{const g=m.product;if(!g||g.regular_price<=g.sale_price)return"";const _=Number(g.regular_price)-Number(g.sale_price);return _>0?`Save ${J(_)}`:""});function c(){n("update:modelValue",!1)}function a(){m.product&&n("add-to-order",m.product),c()}const x=_r(document.body);return ce(()=>m.modelValue,g=>{x.value=g},{immediate:!0}),gr(document,"keydown",g=>{g.key==="Escape"&&m.modelValue&&c()}),(g,_)=>(s(),pe(It,{to:"body"},[h(Lt,{name:"modal-overlay"},{default:N(()=>[S(t("div",{class:"fixed inset-0 z-1000 flex items-end justify-center bg-black/50 sm:p-4 sm:items-center","aria-modal":"true",role:"dialog","aria-labelledby":"modal-title",onClick:We(c,["self"])},[h(Lt,{name:"modal-content"},{default:N(()=>[S(t("div",Fi,[t("div",Bi,[t("h2",zi,T(r.product?.name??""),1),t("button",{type:"button",class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gray-100 text-gray-600 transition-colors hover:bg-gray-200","aria-label":"Close",onClick:c},[..._[0]||(_[0]=[t("svg",{class:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),t("div",ji,[r.product?.image?.imgurl?(s(),u("img",{key:0,src:r.product.image.imgurl,alt:r.product.name,class:"h-32 w-32 object-contain sm:h-32 sm:w-32",width:"128",height:"128"},null,8,Hi)):(s(),u("div",qi,[..._[1]||(_[1]=[t("svg",{viewBox:"0 0 24 24",fill:"currentColor",class:"h-16 w-16 sm:h-20 sm:w-20"},[t("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H4V5h16v14z"})],-1)])]))]),t("div",Gi,[t("div",Yi,[r.product&&r.product.regular_price>r.product.sale_price?(s(),u("span",Wi,T(("toCurrency"in g?g.toCurrency:e(J))(r.product.regular_price)),1)):A("",!0),t("span",Zi,T(r.product?("toCurrency"in g?g.toCurrency:e(J))(r.product.sale_price):""),1),r.product&&r.product.regular_price>r.product.sale_price&&e(l)?(s(),u("span",Qi,T(e(l)),1)):A("",!0)]),e(f)?(s(),u("p",Ki,T(e(f)),1)):A("",!0),t("ul",Ji,[(s(!0),u(H,null,le(r.list,(p,C)=>(s(),u("li",{key:C,class:"flex items-start gap-2 border-b border-gray-100 py-2 last:border-b-0"},[_[2]||(_[2]=t("svg",{class:"mt-0.5 h-4 w-4 shrink-0 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"})],-1)),t("span",Xi,T(p),1)]))),128))])]),t("div",{class:"px-4 pb-6 sm:px-6 sm:pb-6"},[t("button",{type:"button",class:"w-full rounded-lg bg-primary px-6 py-3.5 text-base font-semibold text-white transition-opacity hover:opacity-90",onClick:a}," + Add to Order ")])],512),[[re,r.modelValue]])]),_:1})],512),[[re,r.modelValue]])]),_:1})]))}},ts=Le(es,[["__scopeId","data-v-78f7dd14"]]);function as(r){return Kt(r).map(({source:d,product_id:m,price:n})=>({source:d,product_id:m,price:n}))}function Kt(r){const d=[];return r.forEach(m=>{m.source==="Generally"?d.push({source:m.source,product_id:m.product_id,price:m.unit_price,quantity:m.quantity}):m.source==="Custom"&&Object.values(m.products[0]).forEach(n=>{d.push({source:"Custom",product_id:n.product_id,price:n.price,quantity:n.quantity})})}),d}var rs={key:0,class:"mt-8 pt-6 border-t border-gray-300"},os={class:"flex flex-col gap-3"},is={key:0,class:"bg-white border border-gray-300 rounded-lg p-3 transition-all duration-300 cursor-pointer hover:border-primary/50 hover:shadow-[0_2px_8px_rgba(76,212,151,0.1)] group"},ss={class:"flex items-center gap-3"},ns={class:"w-12 h-12 bg-gray-100 rounded-md flex items-center justify-center shrink-0"},ls=["src","alt"],ds={class:"flex-1 min-w-0"},us={class:"font-semibold text-sm mb-0.5 whitespace-nowrap overflow-hidden text-ellipsis"},cs={class:"text-xs text-gray-600"}
1,ps={key:0,class:"line-through text-gray-400 mr-1"},ms={class:"text-primary font-semibold"},hs={class:"flex flex-col gap-2 font-semibold"},gs=["onClick"],fs=["onClick"],ys={key:0,class:"text-xs text-gray-600 overflow-hidden sm:group-hover:max-h-55 transition-all duration-300 sm:group-hover:mt-3 max-h-0"},bs={class:"border-t border-[#eee] pt-3"},vs={key:0,class:"leading-normal text-[#555] mb-2"},_s={key:1,class:"flex flex-wrap gap-1.5"},La={__name:"RecommendedProductItem",async setup(r){let d,m;const n=zt(),f=Dt("affiliateSlug"),l=Ge(),c=Ut(),{getAddOnProductsApi:a}=ha(),x=U([]),g=U(!1),_=ue(()=>z.value?p(z.value.spec):[]),p=O=>Object.entries(O).filter(([Y])=>/^Spec \d+$/.test(Y)).map(Y=>Y[1]).filter(Y=>Y),C=O=>p(O.spec),k=O=>!!O.description||C(O).length>0,E=U(!1),z=U(null),$=O=>{z.value=O,E.value=!0},I=async()=>{if(!c.couponCodesTemp.length)return;let O=[];if(n.isLogin){const L=await l.getCartCompositeProducts();O=Kt(L)}else l.localGenerallyCart.length&&l.localGenerallyCart.forEach(L=>{O.push({source:"Generally",product_id:L.product_id,quantity:L.quantity})}),l.localCustomCart.length>0&&Object.values(l.localCustomCart[0].products[0]).forEach(L=>{O.push({source:"Custom",product_id:L.id,quantity:L.quantity})});const Y=c.couponCodesTemp[0];await c.addCoupon(Y,l.originSubTotal,O),await c.calculateCoupon()},v=async O=>{const Y=vr(O);if(hr(Y),n.isLogin){const L=[{id:O.product_id??O.id,quantity:1,source:2,products:[],unit_price:Number(O.sale_price)}];f.value&&(L[0].affiliate_code=f.value);const P=await l.addCartCompositeProducts(L);P.success?(g.value=!0,te({message:"Product added to cart.",type:"success"})):te({message:P.message??"Failed to add product to cart.",type:"error"}),await l.getCartCompositeProducts(),await I()}else{let L=!1,P=!1;if(l.localGenerallyCart.forEach(ie=>{(ie.id??ie.product_id)===(O.id??O.product_id)&&(ie.discount_active&&(L=!0),(!ie.discount_active||ie.discount_active===!1)&&(P=!0))}),P||L&&P){te({message:"Product already in cart.",type:"warning"});return}const de={product_id:O.id,slug:O.slug,product_name:O.name,image:O.image.imgurl,quantity:1,source:2,products:[],price:Number(O.sale_price??0),sale_price:Number(O.sale_price??0),unit_price:Number(O.sale_price??0)};f.value&&(de.affiliate_code=f.value),G.log("postData",de),l.addGenerallyProductToLocalStorageCart(de),g.value=!0,te({message:"Product added to cart.",type:"success"}),await I()}},{data:j,error:ye}=([d,m]=or(()=>a()),d=await d,m(),d);return ye.value?console.error("Get add on products error.",ye.value):(x.value=j.value?.data??[],G.log("addOnProducts",x.value)),(O,Y)=>{const L=ts;return s(),u("div",null,[e(x).length?(s(),u("div",rs,[Y[2]||(Y[2]=t("div",{class:"montserrat-font text-base font-bold mb-4 flex items-center gap-2"},[t("svg",{class:"w-5 h-5 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})]),q(" Complete Your Setup ")],-1)),t("ul",os,[(s(!0),u(H,null,le(e(x),P=>(s(),u("li",{key:P.id},[P.published?(s(),u("div",is,[t("div",ss,[t("div",ns,[t("img",{src:P.image.imgurl,alt:P.name,class:"w-12 h-12 object-cover rounded-md"},null,8,ls)]),t("div",ds,[t("div",us,T(P.name),1),t("div",cs,[P.regular_price>P.sale_price?(s(),u("span",ps,T(("toCurrency"in O?O.toCurrency:e(J))(P.regular_price)),1)):A("",!0),t("span",ms,T(("toCurrency"in O?O.toCurrency:e(J))(P.sale_price)),1)])]),t("div",hs,[t("button",{class:"bg-primary text-white border-none px-3 py-2 rounded-md text-xs font-semibold cursor-pointer transition-all duration-300 whitespace-nowrap hover:opacity-85",type:"button",onClick:de=>v(P)}," + Add ",8,gs),t("button",{class:"bg-transparent border border-primary text-primary px-3 py-2 rounded-md text-xs font-semibold cursor-pointer transition-all duration-300 whitespace-nowrap hover:bg-primary hover:text-white",type:"button",onClick:de=>$(P)}," Details ",8,fs)])]),k(P)?(s(),u("div",ys,[t("div",bs,[P.description?(s(),u("p",vs,T(P.description),1)):A("",!0),C(P).length>0?(s(),u("ul",_s,[(s(!0),u(H,null,le(C(P),de=>(s(),u("li",{key:de.name,class:"bg-[#f0f0f0] text-[#333] rounded-sm text-xs py-1 px-2 flex items-center gap-1"},[Y[1]||(Y[1]=t("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",class:"text-primary w-4 h-4"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"})],-1)),q(" "+T(de),1)]))),128))])):A("",!0)])])):A("",!0)])):A("",!0)]))),128))]),h(L,{modelValue:e(E),"onUpdate:modelValue":Y[0]||(Y[0]=P=>ge(E)?E.value=P:null),product:e(z),list:e(_),onAddToOrder:v},null,8,["modelValue","product","list"])])):A("",!0)])}}},ws={class:"w-full lg:w-[40%] before:block before:h-[calc(100vh+60px)] before:fixed before:top-0 before:w-full before:z-[1] lg:before:bg-[#fafafa] lg:before:border-l before:border-[#eee]"},xs={class:"relative pb-6 px-4 z-1 bg-[#fafafa] lg:bg-transparent"},Cs={class:"flex"},Ss={key:0},As={key:1},ks={class:"font-bold text-black"},Ts={key:0,class:"mb-7 hidden lg:block"},Es={class:"flex flex-col w-4/5 sm:w-3/5"},Ps=["disabled"],Ns={key:0},Os={class:""},Is={class:"mt-1"},Ds={key:3},Us={key:4,class:"list-disc pl-4 text-red-600"},Rs={class:"flex justify-between mb-4"},$s={key:0},Vs={class:"mb-4"},Ls={class:"text-sm"},Ms=["onClick"],Fs={class:"flex justify-between mb-4"},Bs={class:"flex justify-between mb-2"},zs={class:"flex justify-between font-bold border-t-2 border-black pt-2 mb-10"},js={__name:"CheckoutOrderSummary",props:{formData:{type:Object,required:!0},promoCode:{type:String,default:""},couponLoading:{type:Boolean,default:!1},isDev:{type:Boolean,default:!1}},emits:["applyCoupon","calculateTax"],setup(r){const d=U(!1),m=Ge(),n=Ut(),f=Zt();return(l,c)=>{const a=yt,x=Va,g=Qt,_=La;return s(),u("div",ws,[c[12]||(c[12]=t("div",{class:"flex justify-center lg:hidden relative z-1 mb-6"},[t("a",{title:"Skytech Gaming",href:"/",class:"block h-16.5"},[t("img",{width:"200",height:"66",src:"https://skytechai.s3.us-west-002.backblazeb2.com/js8pawg1i151nb5hjqnaje3fm86b_logo-skytech-FULLCOLORBlackwebpwebp.webp",alt:"Skytech Gaming Logo",class:"h-full"})])],-1)),t("div",xs,[t("a",{href:"#",class:"lg:hidden flex justify-between items-center hover:text-black text-sky-600 py-6",onClick:c[0]||(c[0]=We(p=>d.value=!e(d),["prevent"]))},[t("div",Cs,[h(a,{class:"text-2xl mr-2",name:"material-symbols:shopping-cart-outline"}),e(d)?(s(),u("p",Ss,[c[3]||(c[3]=q(" Show order summary ",-1)),h(a,{name:"ic:baseline-keyboard-arrow-down"})])):(s(),u("p",As,[c[4]||(c[4]=q(" Hide order summary ",-1)),h(a,{name:"ic:baseline-keyboard-arrow-up"})]))]),t("div",null,[t("p",ks,T(("toCurrency"in l?l.toCurrency:e(J))(e(m).cartTotalCost)),1)])]),t("div",{class:w(["lg:pt-20",{"hidden lg:block":e(d)}])},[h(x)],2),e(f).upSellProduct.id?(s(),u("div",Ts,[h(g,{"form-data":r.formData,onSuccess:c[1]||(c[1]=p=>l.$emit("calculateTax",p))},null,8,["form-data"])])):A("",!0),t("div",{class:w(["flex gap-2 sm:gap-0",{"hidden lg:flex":e(d)}])},[t("div",Es,[sr(l.$slots,"promo-code")]),t("button",{type:"button",class:w(["bg-[#999999] text-white font-medium rounded-sm w-1/5 sm:w-2/6 text-center flex items-center justify-center sm:ml-2 py-2 sm:py-0 gap-2",{"opacity-50 cursor-not-allowed":r.couponLoading||r.promoCode===""}]),disabled:r.couponLoading||r.promoCode==="",onClick:c[2]||(c[2]=p=>l.$emit("applyCoupon"))},[r.couponLoading?A("",!0):(s(),u("span",Ns," Apply ")),S(t("div",Os,[h(a,{class:"text-2xl",name:"svg-spinners:90-ring-with-bg"})],512),[[re,r.couponLoading]])],10,Ps)],2),r.isDev?(s(),u(H,{key:1},[t("p",null,"[couponPrice]: "+T(e(n).couponPrice),1),t("p",null,"[couponDiscount]: "+T(e(n).couponDiscount),1),t("p",null,"[couponCodesTemp]: "+T(e(n).couponCodesTemp),1),t("p",null,[q(" [couponStore.couponMsg]: "+T(e(n).couponMsg)+" ",1),c[5]||(c[5]=t("br",null,null,-1)),q(" "+T(e(n).couponMsg),1)])],64)):A("",!0),e(n).couponMsg.message!=="Coupon code(s) accepted."&&e(n).couponMsg.message!==""?(s(),u("ul",{key:2,class:w(["list-disc pl-4",{"text-primary":e(n).couponMsg.type==="success","text-red-600":e(n).couponMsg.type==="error"}])},[t("li",null,[t("p",Is,T(e(n).couponMsg.message),1)])],2)):A("",!0),r.isDev?(s(),u("p",Ds,"[warningMessages]")):A("",!0),e(n).warningMessages?(s(),u("ul",Us,[(s(!0),u(H,null,le(e(n).warningMessages,p=>(s(),u("li",{key:p},[t("p",null,T(p),1)]))),128))])):A("",!0),t("div",{class:w(["mt-10",{"hidden lg:block":e(d)}])},[t("div",Rs,[c[6]||(c[6]=t("p",{class:"text-sm"},"Subtotal",-1)),t("p",null,T(("toCurrency"in l?l.toCurrency:e(J))(e(m).originSubTotal)),1)]),e(n).appliedCoupons.length?(s(),u("div",$s,[c[8]||(c[8]=t("p",{class:"text-sm mb-1"},"Coupon(s):",-1)),t("div",Vs,[(s(!0),u(H,null,le(e(n).appliedCoupons,p=>(s(),u("div",{key:p.code,class:"flex justify-between"},[t("p",Ls,[q(T(p.code)+" ",1),c[7]||(c[7]=t("span",null,null,-1))]),t("p",null,[q(" -"+T(("toCurrency"in l?l.toCurrency:e(J))(p.discount))+" ",1),t("button",{class:"text-sky-600",type:"button",onClick:C=>e(n).removeThisCoupon(p.code)}," [Remove] ",8,Ms)])]))),128))])])):A("",!0),t("div",Fs,[c[9]||(c[9]=t("p",{class:"text-sm"},"Shipping",-1)),t("p",{class:w({"text-primary font-bold":e(m).shippingCost===0})},T(e(m).shippingCost===0?"Free!":("toCurrency"in l?l.toCurrency:e(J))(e(m).shippingCost)),3)]),t("div",Bs,[c[10]||(c[10]=t("p",{class:"text-sm"},"Tax",-1)),t("p",null,T(("toCurrency"in l?l.toCurrency:e(J))(e(m).taxCost)),1
1)]),t("div",zs,[c[11]||(c[11]=t("p",null,"Total",-1)),t("p",null,T(("toCurrency"in l?l.toCurrency:e(J))(e(m).cartTotalCost)),1)]),h(_)],2)])])}}},Hs={key:0,class:"bg-black rounded-3xl shadow-2xl w-full max-w-sm overflow-hidden relative px-8 pt-10 pb-8"},qs={class:"text-center"},Gs={class:"anim-fade-up font-bold text-white mb-6 uppercase leading-relaxed tracking-wider"},Ys={class:"text-red-500"},Ws={class:"text-red-500"},Zs={class:"anim-fade-up w-[90%] mx-auto bg-neutral-300 rounded-lg py-3 px-4 mb-5",style:{"animation-delay":"0.24s"}},Qs={class:"text-2xl font-bold tracking-widest text-black"},Ks={class:"anim-fade-up font-mono",style:{"animation-delay":"0.48s"}},Js={class:"text-red-500"},Xs={__name:"CheckoutDailyCouponPromo",props:{visible:{type:Boolean,default:!1},couponCode:{type:String,default:""},discountValue:{type:String,default:""},valueUnitDisplay:{type:String,default:"%"}},emits:["close"],setup(r,{emit:d}){const m=r,n=d,f=ue(()=>{const g=parseFloat(m.discountValue);if(Number.isNaN(g))return m.discountValue;const _=Number.isInteger(g)?String(Math.trunc(g)):String(g);return m.valueUnitDisplay==="$"?`$${_}`:`${_}%`}),l=Ar(),c=mr({interval:1e3}),a=ue(()=>{const g=l(c.value).tz("America/Los_Angeles"),_=g.endOf("day"),p=Math.max(0,_.diff(g));return`${String(Math.floor(p/36e5)).padStart(2,"0")}:${String(Math.floor(p%36e5/6e4)).padStart(2,"0")}:${String(Math.floor(p%6e4/1e3)).padStart(2,"0")}`});function x(){n("close")}return(g,_)=>{const p=Yt;return s(),pe(It,{to:"body"},[h(p,null,{default:N(()=>[h(Lt,{name:"fade"},{default:N(()=>[m.visible?(s(),u("div",{key:0,class:"fixed inset-0 z-40 bg-black/60 flex items-center justify-center p-4",onClick:_[1]||(_[1]=We(C=>x(),["self"]))},[h(Lt,{name:"scale"},{default:N(()=>[m.visible?(s(),u("div",Hs,[t("button",{type:"button",class:"absolute top-4 right-4 w-8 h-8 flex items-center justify-center text-white hover:text-white/70 transition-colors",onClick:_[0]||(_[0]=C=>x())},[..._[2]||(_[2]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])]),t("div",qs,[_[7]||(_[7]=t("img",{src:"https://skytechai.s3.us-west-002.backblazeb2.com/9s9u3kk3syqgn8na1qu7xegy2wf2_skytechlogo.webp",alt:"Skytech",width:"80",height:"80",class:"w-20 h-20 mx-auto mb-5 object-contain"},null,-1)),t("p",Gs,[_[3]||(_[3]=q(" USE CODE â",-1)),t("span",Ys,T(m.couponCode),1),_[4]||(_[4]=q("â BEFORE END OF THE DAY TO GET ",-1)),t("span",Ws,T(e(f)),1),_[5]||(_[5]=q(" OFF! ",-1))]),_[8]||(_[8]=t("p",{class:"anim-fade-up text-xl font-bold text-white mb-3",style:{"animation-delay":"0.12s"}}," Your Code ",-1)),t("div",Zs,[t("p",Qs,T(m.couponCode),1)]),_[9]||(_[9]=t("p",{class:"anim-fade-up text-white mb-1 montserrat-font",style:{"animation-delay":"0.36s"}}," Expires today at 11:59 PM PT ",-1)),t("p",Ks,[t("span",Js,T(e(a)),1),_[6]||(_[6]=t("span",{class:"text-white"}," remaining",-1))])])])):A("",!0)]),_:1})])):A("",!0)]),_:1})]),_:1})])}}},Ma=Le(Xs,[["__scopeId","data-v-12f256e0"]]),en=()=>{const r=Ze();return{ceratePaypalOrderIdApi:async({body:m})=>await r.$apiFetch("/paypal/create_paypal_order",{method:"POST",useFetch:!1,body:m})}},tn=()=>{const r=Ze();return{getLiveStreamQuestionApi:async()=>r.$apiFetch("/marketings/pc_build_questions",{method:"GET",useFetch:!1}),getLiveStreamShowApi:async()=>r.$apiFetch("/livestream_show",{method:"GET",useFetch:!1})}},an=()=>{const{$apiFetch:r}=Ze();return{getTaxApi:async({body:m})=>await r("/shipping/get_avatax",{method:"POST",body:m,useFetch:!1})}},rn=Bt("tax",()=>{const{getTaxApi:r}=an(),d=Ge();return{getTax:async n=>{try{const f=await r({body:n});return d.taxCost=f.tax??0,f.tax}catch{return G.error("Get tax api failed."),!1}}}}),on=()=>{const r=Ze();return{getPaymentTypesApi:async()=>await r.$apiFetch("/shipping/payment_types",{method:"GET",useFetch:!1})}},sn=Bt("paymentTypes",()=>{const{getPaymentTypesApi:r}=on(),d=U([]);return{getPaymentTypes:async()=>{try{return(await r())?.data??[]}catch{return[]}},paymentTypes:d}}),nn=Bt("shippingFreightStore",()=>{const r=Ge(),{getShippingCost:d,getShippingMethodApi:m}=Pr(),n=()=>{const g={},_=r.localCustomCart,p=Object.keys(_[0].products[0]),C=Object.values(_[0].products[0]);return p.forEach((k,E)=>{g[k]={...C[E]},g[k].product_id=C[E].product_id??C[E].id}),g}
1,f=async g=>{const _={shipping_state:g,composites:[...r.localGenerallyCart]};return r.localCustomCart.length>0&&_.composites.push({components:[n()]}),d({body:_})},l=U(""),c=U(""),a=U(!0);return{netsuiteShippingMethod:c,shippingMethodDescription:l,isShippingMethodLoading:a,calculateShippingCost:f,getShippingMethod:async()=>{l.value||(a.value=!0);try{const g=await m();l.value=g?.data?.note?.shipping_days_desc??"",c.value=g?.data?.shipping_service??""}catch{G.error("getShippingMethod error")}finally{a.value=!1}}}});function ln(){const r=Ze(),d=U(null);let m=null;if(r.$fingerprintReady)try{m=Fr({immediate:!1}).getData}catch(f){console.warn("[VPN Detection] Failed to initialize useVisitorData:",f)}async function n(){if(!m)return console.warn("[VPN Detection] Fingerprint SDK not available, skipping."),null;try{const f=await m();if(!f.event_id)throw new Error("Fingerprint returned empty event_id");return d.value=f.event_id,d.value}catch(f){const l=f instanceof Error?f.message:"Failed to fetch fingerprint";return console.warn("[VPN Detection] fetchEventId failed:",l),null}}return{eventId:d,fetchEventId:n}}function dn({shippingFreightStore:r,cartStore:d,couponStore:m}){const n=U(!1);return{isCalculatingShipping:n,calculateShipping:async c=>{n.value=!0;try{d.shippingCost=(await r.calculateShippingCost(c)).current_shipping_freight}catch{d.shippingCost=null}finally{n.value=!1}},waitForCalculations:async()=>{const c=[];n.value&&c.push(new Promise(a=>{const x=ce(n,g=>{g||(x(),a(!0))})})),m.isCalculatingCoupon&&c.push(new Promise(a=>{const x=ce(()=>m.isCalculatingCoupon,g=>{g||(x(),a(!0))})})),c.length>0&&await Promise.all(c)}}}function un(r=[],d=[]){const m=[];r.length&&r.forEach(f=>{m.push({destinationCode:"DEFAULT",originCode:"DEFAULT",qty:1,amount:f.unit_price,itemCode:f.sku,description:f.product_name??f.composite_name??""})});const n=[];return d.length&&d.forEach(f=>{const l=f.products[0]||{};Object.values(l).forEach(c=>{const a=new fe(c.quantity).times(c.price).toNumber();n.push({destinationCode:"DEFAULT",originCode:"DEFAULT",qty:1,amount:a,itemCode:c.sku,description:c.name})})}),[...m,...n].map((f,l)=>({...f,line_no:l+1}
1))}function cn(r){return new fe(r??0).toNumber()}function pn(r,d,m,n){const f=d.couponActive?new fe(m.subTotal).plus(m.shippingCost).toNumber():new fe(m.originSubTotal).plus(m.shippingCost).toNumber();return{line1:r.line1,line2:r.line2,city:r.city,state:r.state,postal_code:r.postal_code,country:r.country,order_total:f,discount_total:d.couponDiscount,items:n}}function mn({form:r,cartStore:d,couponStore:m,taxStore:n,waitForCalculations:f}){return{calculateTax:async c=>{if(await f(),!Object.values(c).includes(null)&&!Object.values(c).includes("")&&r.value.zipCode.length===5){const a=un(d.localGenerallyCart,d.localCustomCart),x={line1:r.value.streetAddress,line2:r.value.streetAddressOptional,city:r.value.city,state:r.value.state,postal_code:r.value.zipCode,country:r.value.country},g=pn(x,{couponActive:m.couponActive,couponDiscount:m.couponDiscount},{subTotal:d.subTotal,originSubTotal:d.originSubTotal,shippingCost:d.shippingCost},a);await n.getTax(g)}else d.taxCost=null}}}var hn="Please enter a valid street address.",Vt=(r,d=hn)=>r.test("not-email",d,m=>!Rr(m));function gn({form:r,usStatesCitiesZipCodesStore:d}){const m=U(!1),n=U(!1),f={state:ne().required(()=>""),email:ne().trim().email("Invalid email.").matches(Vr,"Invalid email.").required(()=>"Email is required."),firstName:ne().trim().required(()=>"First name is required."),lastName:ne().trim().required(()=>"Last name is required."),streetAddress:Vt(ne().trim()).min(4,g=>`Street address must be at least ${g.min} characters long.`).required(()=>"Street address is required."),streetAddressOptional:Vt(ne().trim()),country:ne().required(()=>"Country / Region is required."),zipCode:ne().required(()=>"Zip code is required.").matches(/^\d{5}$/,"Zip code must be exactly 5 digits.").test("is-valid-zipcode","Invalid zip code.",async g=>!(m.value&&g===r.value.zipCode)).test({name:"is-restricted-area",test:function(g){const _=(g??"").toString().trim(),p=(d.restrictedAreasZipCodesTemp.zipCodes||"").toString().trim();return p&&_===p?this.createError({message:`We're sorry, but we don't currently ship to this location. (${d.restrictedAreasZipCodesTemp.state})`}):!0}}),city:ne().required(()=>"This field is required."),phone:ne().required(()=>"Phone is required.").matches(/^\d{10}$/,"Please enter a 10-digit phone number."),billingAddressRadio:ne(),billingFirstName:ne().when("billingAddressRadio",{is:"UseADifferentBillingAddress",then:g=>g.required(()=>"First name is required."),otherwise:g=>g.optional()}),billingLastName:ne().when("billingAddressRadio",{is:"UseADifferentBillingAddress",then:g=>g.trim().required(()=>"Last name is required."),otherwise:g=>g.optional()}),billingStreetAddress:ne().when("billingAddressRadio",{is:"UseADifferentBillingAddress",then:g=>Vt(g.trim()).min(4,_=>`Street address must be at least ${_.min} characters long.`).required(()=>"Street address is required."),otherwise:g=>g.optional()}),billingStreetAddressOptional:ne().when("billingAddressRadio",{is:"UseADifferentBillingAddress",then:g=>Vt(g.trim()),otherwise:g=>g.optional()}),billingZipCode:ne().when("billingAddressRadio",{is:"UseADifferentBillingAddress",then:g=>g.required(()=>"Zip code is required.").matches(/^\d{5}$/,"Zip code must be exactly 5 digits.").test("is-valid-zipcode","Invalid zip code.",async _=>!(n.value&&_===r.value.billingZipCode)).test({name:"is-billing-restricted-area",test:function(_){G.log("billingZipCode value",_);const p=(_??"").toString().trim(),C=(d.restrictedBillingAreasZipCodesTemp.zipCodes||"").toString().trim();return C&&p===C?this.createError({message:`We're sorry, but we don't currently ship to this location. (${d.restrictedBillingAreasZipCodesTemp.state})`}):!0}}),otherwise:g=>g.optional()}),billingState:ne().when("billingAddressRadio",{is:"UseADifferentBillingAddress",then:g=>g.required(()=>""),otherwise:g=>g.optional()}),billingCity:ne().when("billingAddressRadio",{is:"UseADifferentBillingAddress",then:g=>g.required(()=>"Town / City is required."),otherwise:g=>g.optional()}),billingPhone:ne().when("billingAddressRadio",{is:"UseADifferentBillingAddress",then:g=>g.required(()=>"Phone is required.").matches(/^\d{10}$/,"Please enter a 10-digit phone number."),otherwise:g=>g.optional()}),agreeCheckbox:jt().oneOf([!0],"You must agree to the terms."),promoCode:ne(),livestream:jt(),acknowledgeCheck:jt().test("conditional-required","Please check this box to acknowledge the live stream build process.",function(){return r.value.livestream?r.value.acknowledgeCheck===!0:!0})},l=U(wa().shape(f)),c=U({});return{shippingSchema:l,shippingSchemaObject:f,liveStreamSchema:c,liveStreamSchemaObject:{},scrollToFirstError:()=>{st(()=>{const g=document.querySelector('.text-contrast[role="alert"], [role="alert"].text-contrast, .text-contrast');
1if(!g)return;const _=g.getAttribute("id")||g.previousElementSibling?.getAttribute("name")||g.previousElementSibling?.getAttribute("for")||g.closest(".flex.flex-col")?.querySelector("input, select, textarea")?.getAttribute("id");if(_){const C=document.getElementById(_)||document.querySelector(`[name="${_}"]`);if(C){C.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});try{C.focus({preventScroll:!0})}catch{C.focus()}return}}const p=g.closest("input, select, textarea")||g;if(p.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),p!==g&&"focus"in p)try{p.focus({preventScroll:!0})}catch{p.focus()}})},apiValidationZipCodeFailed:m,apiValidationBillingZipCodeFailed:n}}function fn({form:r,checkoutForm:d,userAddressStore:m,usStatesCitiesZipCodesStore:n,getZipCodeLookUpApi:f,apiValidationZipCodeFailed:l,apiValidationBillingZipCodeFailed:c}){const a=()=>{const p=m.userShippingAddress||{};r.value.firstName=p.first_name||"",r.value.lastName=p.last_name||"",r.value.companyName=p.company_name||"",r.value.streetAddress=p.addr1||"",r.value.streetAddressOptional=p.addr2||"",r.value.country=p.country||"US",r.value.state=p.state||"",r.value.zipCode=p.zip_code||"",r.value.city=p.city||"",r.value.phone=p.tel||""},x=()=>{r.value.firstName="",r.value.lastName="",r.value.companyName="",r.value.streetAddress="",r.value.streetAddressOptional="",r.value.country="US",r.value.state="",r.value.zipCode="",r.value.city="",r.value.phone=""};ce(()=>r.value.useDefaultShippingAddress,p=>{p?a():x()});const g=()=>{const p=m.defaultBillingAddress||{};r.value.billingFirstName=p.first_name||"",r.value.billingLastName=p.last_name||"",r.value.billingCompanyName=p.company_name||"",r.value.billingStreetAddress=p.addr1||"",r.value.billingStreetAddressOptional=p.addr2||"",r.value.billingState=p.state||"",r.value.billingZipCode=p.zip_code||"",r.value.billingCity=p.city||"",r.value.billingPhone=p.tel||""},_=()=>{r.value.billingFirstName="",r.value.billingLastName="",r.value.billingCompanyName="",r.value.billingStreetAddress="",r.value.billingStreetAddressOptional="",r.value.billingState="",r.value.billingZipCode="",r.value.billingCity="",r.value.billingPhone=""};return ce(()=>r.value.useDefaultBillingAddress,p=>{p?g():_()}),ce(()=>r.value.zipCode,async p=>{if(l.value=!1,p.length===5&&/^\d{5}$/.test(p))try{const C=await f(p,r.value.city);if(C.data.status==="restricted"){n.restrictedAreasZipCodesTemp.zipCodes=C.data.zip_code,n.restrictedAreasZipCodesTemp.state=C.data.full_state,st(()=>{d.value.validateField("zipCode")});return}r.value.state=C.data.full_state,r.value.city=C.data.city,n.currentState=C.data.full_state,n.currentStateAbbreviation=C.data.state}catch(C){r.value.state="",l.value=!0,st(()=>{d.value.setFieldError("zipCode",C?.data?.message??"Invalid zip code")})}else r.value.state="",n.currentState="",n.currentStateAbbreviation=""}),ce(()=>r.value.billingZipCode,async p=>{if(c.value=!1,p.length===5&&/^\d{5}$/.test(p))try{const C=await f(p,r.value.billingCity);if(C.data.status==="restricted"){n.restrictedBillingAreasZipCodesTemp.zipCodes=C.data.zip_code,n.restrictedBillingAreasZipCodesTemp.state=C.data.full_state,st(()=>{d.value.validateField("billingZipCode")});return}r.value.billingState=C.data.full_state,r.value.billingCity=C.data.city,n.currentBillingState=C.data.full_state,n.currentBillingStateAbbreviation=C.data.state}catch{r.value.billingState="",c.value=!0,st(()=>{d.value.validateField("billingZipCode")})}else r.value.billingState="",n.currentBillingState="",n.currentBillingStateAbbreviation=""}),{prefilledShippingAddress:a,clearPrefilledShippingAddress:x,prefilledBillingAddress:g,clearPrefilledBillingAddress:_}}function Ht(r){if(!r)return"";if(typeof window<"u"){const d=window.DOMPurify;if(d)return d.sanitize(r)}return r}function yn(r){return r?.data?.message||r?.message||"Failed to initialize payment form. Please try again or contact our support team."}function bn(r){const{isLogin:d,mailSubscription:m}=r;return d&&m?.id===void 0||d&&m?.subscription_status===!1||!d}function vn(r){if(r.length)return r[0]?.products?.[0]?.["Build Fee"]?.sku==="BLDFEEEXPED"}var la={paypal:"paypalPayment",credit:"creditCardPayment",inquiry:"inquiryPayment",acima:"acimaPayment",affirm:"affirmPayment",cybersource:"cybersourcePayment",stripe:"stripePayment"};function _n(r,d){const m=r.map(n=>n.name&&n.name in la?la[n.name]:null).filter(n=>!!n);return m.length?d&&m.includes(d)?d:m.includes("paypalPayment")?"paypalPayment":m[0]??null:null}var wn="ga4_purchase_tracked_",da=new Set;function Fa(r){return`${wn}${r}`}function xn(r){try{return sessionStorage.getItem(Fa(r))==="1"}catch{return!1}}function Cn(r){try{sessionStorage.setItem(Fa(r),"1")}catch{}}function Sn(r){return!r||typeof r!="string"||da.has(r)||xn(r)?!1:(da.add(r),Cn(r),!0)}var An=()=>({createOrderData:(n={})=>({affiliateConfig:{ranMID:"50067",discountType:"item",includeStatus:"false"},orderid:"",currency:"USD",customerStatus:"New",conversionType:"Sale",customerID:"",discountCode:"",lineitems:[],...n,discountAmount:Number(n.discountAmount??0),taxAmount:Number(n.taxAmount??0)}),createLineItem:(n=[])=>{let f=[];return Array.isArray(n)&&(f=n.map(l=>({quantity:l.quantity,unitPrice:l.sale_price,SKU:l.sku,productName:l.composite_name}))),f},executeConversionScript:n=>{if(window.rakutenConversionTracked&&window.rakutenConversionTracked.includes(n.orderid)){console.warn(`Order ${n.orderid} already tracked, skipping duplicate tracking`);return}const f=document.createElement("script");f.type="text/javascript",f.innerHTML=` 2 var rm_trans = ${JSON.stringify(n)}; 3 4 /*Do not edit any information beneath this line*/ 5 !function(a,b,c){ 6 var d=a.rakutenDataLayerName||"DataLayer";a[d]=a[d]||{},a[d].events=a[d].events||{},a[d].events.SPIVersion="3.4.1",a[d].Sale=a[d].Sale||{},a[d].Sale.Basket=a[d].Sale.Basket||{},c.Ready=a[d].Sale.Basket.Ready&&a[d].Sale.Basket.Ready+1||1,a[d].Sale.Basket=c; 7 var e=function(a){for(var c,d=a+"=",e=b.cookie.split(";"),f=0;f<e.length;f++){for(c=e[f];" "==c.charAt(0);)c=c.substring(1,c.length);if(0==c.indexOf(d))return c.substring(d.length,c.length)}return""},f=function(a){var b=a||"",c={};if(a||(b=e("rmStore")),b){for(;b!==decodeURIComponent(b);)b=decodeURIComponent(b);for(var d=b.split("|"),f=0;f<d.length;f++)c[d[f].split(":")[0]]=d[f].split(":")[1]}return c},g={};g=f();var h=function(a,b,c,d){c=c||"",d=d||{};var e=g[a||""],f=d[b||""],h=d.ignoreCookie||!1;e=h?0:e;var i=e||f||c;return i=("string"!=typeof i||"false"!==i.toLowerCase())&&i,i},k=function(a,c,d,e,f){var g=b.createElement(a),h=-1<b.location.protocol.indexOf("s")?"https:":"http:";
7for(var i in c=c.replace("https:",h),g.src=c,e=e||{},"script"==a?e.type=e.type||"text/javascript":(e.style="display:none;","img"==a&&(e.alt="",e.height="1",e.width="1")),e)e.hasOwnProperty(i)&&g.setAttribute(i,e[i]);var j=b.getElementsByTagName(d);j=j.length?j[0]:b.getElementsByTagName("script")[0].parentElement,f&&(g.onload=f,g.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&f()}),j.appendChild(g)},l=function(a){var b=new Date,c=b.getUTCFullYear()+("0"+(b.getUTCMonth()+1)).slice(-2)+("0"+b.getUTCDate()).slice(-2)+("0"+b.getUTCHours()).slice(-2)+("0"+b.getUTCMinutes()).slice(-2);return"NoOID_"+(a?a+"_":"")+Math.round(1e5*Math.random())+"_"+c},m=function(){var b=a[d]&&a[d].Sale&&a[d].Sale.Basket?a[d].Sale.Basket:{},c=c||b.affiliateConfig||{},f=h("amid","ranMID","",c)||b.ranMID;if(!f)return!1;var g="undefined"==typeof c.allowCommission||"false"!==c.allowCommission;if(!g)return!1;if(!b.orderid&&!(b.lineitems&&b.lineitems.length))return!1;var m=h("adn","domain","track.linksynergy.com",c),o=h("atm","tagType","pixel",c),p=h("adr","discountType","order",c),q=h("acs","includeStatus","false",c),r=h("arto","removeOrderTax","false",c),s=h("artp","removeTaxFromProducts","false",c),t=h("artd","removeTaxFromDiscount","false",c),u=h("atr","taxRate",b.taxRate||0,c),v=h("ald","land",!1,{})||(c.land&&!0===c.land?e("ranLandDateTime"):c.land)||!1,w=h("atrv","tr",!1,{})||(c.tr&&!0===c.tr?e("ranSiteID"):c.tr)||!1,x=h("acv","centValues","true",c),y=h("ancc","nonCentCurrencies","JPY",c);u=Math.abs(+u);var z=(100+u)/100,A=b.orderid||l(f);A=encodeURIComponent(A);var B=b.currency||"";B=encodeURIComponent(B.toUpperCase());var C=!1;if(B&&y){y=(y+"").split(",");for(var D=0;D<y.length;D++)y[D]==B&&(C=!0)}var F=function(a){return C&&(a=Math.round(a)),x&&"false"!==x?(a*=100,a=Math.round(a)):a=Math.round(100*a)/100,a+""},G=b.taxAmount?Math.abs(+b.taxAmount):0,H=b.discountAmount?Math.abs(+b.discountAmount):0,I=b.discountAmountLessTax?Math.abs(+b.discountAmountLessTax):0;!I&&H&&t&&u&&(I=H/z),I=I||H;var J="ep";"mop"===o&&(J="eventnvppixel");var K=(b.customerStatus||"")+"",L="";K&&(q&&"EXISTING"==K.toUpperCase()||q&&"RETURNING"==K.toUpperCase())&&(L="R_");for(var M=[],N=0,O=0;O<(b.lineitems?b.lineitems.length:0);O++)if(b.lineitems[O]){var P=!1,Q=a.JSON?JSON.parse(JSON.stringify(b.lineitems[O])):b.lineitems[O],R=+Q.quantity||0,S=+Q.unitPrice||0,T=+Q.unitPriceLessTax,U=T||S||0;s&&u&&!T&&(U/=z);for(var V,W=R*U,X=0;X<M.length;X++)V=M[X],V.SKU===Q.SKU&&(P=!0,V.quantity+=R,V.totalValue+=W);P||(Q.quantity=R,Q.totalValue=W,M.push(Q)),N+=W}for(var Y="",Z="",$="",_="",aa={},O=0;O<M.length;O++){var Q=M[O],ba=encodeURIComponent(Q.SKU),ca=Q.totalValue,R=Q.quantity,da=encodeURIComponent(Q.productName)||"";"item"===p.toLowerCase()&&I&&(ca-=I*ca/N);var ea=Q.optionalData;for(var fa in ea)ea.hasOwnProperty(fa)&&(aa[fa]=aa[fa]||"",aa[fa]+=encodeURIComponent(ea[fa])+"|");Y+=L+ba+"|",Z+=R+"|",$+=F(ca)+"|",_+=L+da+"|"}Y=Y.slice(0,-1),Z=Z.slice(0,-1),$=$.slice(0,-1),_=_.slice(0,-1),I&&(I=F(I)),G&&(G=F(G)),I&&"order"===p.toLowerCase()&&(Y+="|"+L+"DISCOUNT",_+="|"+L+"DISCOUNT",Z+="|0",$+="|-"+I),r&&G&&(Y+="|"+L+"ORDERTAX",Z+="|0",$+="|-"+G,_+="|"+L+"ORDERTAX");var ga="https://"+m+"/"+J+"?mid="+f;ga+="&ord="+A,ga+=v?"&land="+v:"",ga+=w?"&tr="+w:"",ga+="&cur="+B,ga+="&skulist="+Y,ga+="&qlist="+Z,ga+="&amtlist="+$,ga+="&img=1",ga+="&spi="+a[d].events.SPIVersion,I&&"item"===p.toLowerCase()&&(ga+="&discount="+I);var ea=b.optionalData||{};for(var fa in b.discountCode&&(ea.coupon=b.discountCode),b.customerStatus&&(ea.custstatus=b.customerStatus),b.customerID&&(ea.custid=b.customerID),I&&(ea.disamt=I),ea)ea.hasOwnProperty(fa)&&(ga+="&"+encodeURIComponent(fa)+"="+encodeURIComponent(ea[fa]));for(var fa in aa)aa.hasOwnProperty(fa)&&(ga+="&"+encodeURIComponent(fa)+"list="+aa[fa].slice(0,-1),I&&"order"===p.toLowerCase()&&(ga+="|"),G&&r&&(ga+="|"));ga+="&namelist="+_;if(8000<ga.length){for(var ha=8000;0<ha;)if("&"==ga.charAt(ha)){ga=ga.slice(0,ha);break}else ha--;ga+="&trunc=true"}k("img",ga,"body")},n=function(){var b=a[d]&&a[d].Sale&&a[d].Sale.Basket?a[d].Sale.Basket:{}
7,c=c||b.displayConfig||{},e=h("dmid","rdMID","",c);if(!e)return!1;if(!b.orderid&&!b.conversionType)return!1;var f=h("dtm","tagType","js",c),g=h("ddn","domain","tags.rd.linksynergy.com",c),j=h("dis","includeStatus","false",c),m=h("dcomm","allowCommission","notset",c),n=h("duup","useUnitPrice","false",c),o=h("drtp","removeTaxFromProducts","false",c),p=h("drtd","removeTaxFromDiscount","false",c),q=h("dtr","taxRate",b.taxRate||0,c),r="";"true"===m||!0===m||"1"===m||1===m?r="1":("false"===m||!1===m||"0"===m||0===m)&&(r="0"),f="js"===f||"if"===f||"img"===f?f:"js";var s="script";"if"===f?s="iframe":"img"===f&&(s="img"),("true"===n||!0===n||"1"===n||1===n)&&(n=!0);var t=(b.customerStatus||"")+"",u="";t&&j&&("EXISTING"==t.toUpperCase()||"RETURNING"==t.toUpperCase())&&(u="R_");var v=b.orderid;v||(v=l((b.conversionType+"").toLowerCase()+"_"+e)),v=encodeURIComponent(u+v);var w=encodeURIComponent(b.currency||""),x=0,y="";q=Math.abs(+q);var z=(100+q)/100,A=b.discountAmount?Math.abs(+b.discountAmount):0,B=b.discountAmountLessTax?Math.abs(+b.discountAmountLessTax):0;!B&&A&&p&&q&&(B=A/z),B=B||A,B=isNaN(B)?0:B;for(var C=0;C<(b.lineitems?b.lineitems.length:0);C++)if(b.lineitems[C]){var D=+b.lineitems[C].quantity,E=+b.lineitems[C].unitPriceLessTax*D;(!E||n)&&(o&&q?E=+b.lineitems[C].unitPrice/z*D:E=+b.lineitems[C].unitPrice*D),E=isNaN(E)?0:E,x+=E,y+=encodeURIComponent(b.lineitems[C].SKU)+","}x=Math.round(100*(x-B))/100,y=y.slice(0,-1);var F="https://"+g+"/"+f+"/"+e;F+="/?pt="+"conv",F+="&orderNumber="+v,F+="&spi="+a[d].events.SPIVersion,x&&(F+="&price="+x),w&&(F+="&cur="+w),r&&(F+="&tvalid="+r),y&&(F+="&prodID="+y),k(s,F,"body")},o=function(){var b=a[d]&&a[d].Sale&&a[d].Sale.Basket?a[d].Sale.Basket:{},c=b.searchConfig||{},e=1024,f=encodeURIComponent("...TRUNCATED"),g=h("smid","rsMID","",c);if(!g)return!1;var j=h("said","accountID","113",c),m=h("sclid","clickID","",c),n=encodeURIComponent(h("sct","conversionType",b.conversionType&&"sale"!==(b.conversionType+"").toLowerCase()?b.conversionType:"conv",c));k("script","https://services.xg4ken.com/js/kenshoo.js?cid="+g,"body",null,function(){var a={};if(a.conversionType=n,a.revenue=0,a.currency=encodeURIComponent(b.currency||"USD"),a.orderId=encodeURIComponent(b.orderid||l(n)),a.promoCode=encodeURIComponent(b.discountCode||""),m&&(a.ken_gclid=encodeURIComponent(m)),a.discountAmount=+(b.discountAmount||0),a.discountAmount=isNaN(a.discountAmount)?0:Math.abs(a.discountAmount),a.customerStatus=encodeURIComponent(b.customerStatus||""),a.productIDList="",a.productNameList="",b.lineitems&&b.lineitems.length){for(var c=0;c<b.lineitems.length;c++)b.lineitems[c]&&(a.revenue+=+(b.lineitems[c].unitPrice||0)*+b.lineitems[c].quantity,a.productIDList+=(b.lineitems[c].SKU||"NA")+",",a.productNameList+=(b.lineitems[c].productName||"NA")+",");a.revenue=Math.round(100*(a.revenue-a.discountAmount))/100,a.productIDList=encodeURIComponent(a.productIDList.slice(0,-1)),a.productNameList=encodeURIComponent(a.productNameList.slice(0,-1)),a.productIDList.length>e&&(a.productIDList=a.productIDList.substring(0,e-f.length)+f),a.productNameList.length>e&&(a.productNameList=a.productNameList.substring(0,e-f.length)+f)}kenshoo.trackConversion(j,g,a)})};a[d].SPI={readRMCookie:e,processRMStoreCookie:f,readRMStoreValue:h,sRAN:m,sDisplay:n,sSearch:o,addElement:k,rmStore:g},m(),n(),o() 8 }(window,document,rm_trans); 9 `,document.head.appendChild(f),window.rakutenConversionTracked||(window.rakutenConversionTracked=[]),window.rakutenConversionTracked.push(n.orderid)}});function kn({form:r,cartStore:d,userStore:m,orderStore:n,shippingFreightStore:f,cartInsufficientAlertsStore:l,completeOrderButtonLoading:c,viewDisabled:a,braintreeRef:x,errorDialog:g,checkoutForm:_,liveStreamForm:p,scrollToFirstError:C,setToken:k,fetchEventId:E}){const{executeToken:z,ensureVerified:$}=ba();let I=null;return{postCreateUserOrder:async(O,Y="NavigateToThankYouPage")=>{a.value=!0,I=pa.service({lock:!0,background:"rgba(0, 0, 0, 0.5)"});try{if(!m.isLogin){const me=await z("checkout");if(!me)return;O.recaptcha_token=me}O.netsuite_shipping_method=f.netsuiteShippingMethod,m.raffleMark&&(O.raffle_tokens=m.raffleUsers.map(me=>me.raffle_token));const L=await E();L&&(O.fingerprint_event_id=L);const P=await n.createUserOrder(O);if(P.status>=400){O.payment_type==="credit"?(te.error({title:"Error",message:`Payment processing failed.<br>${Ht(P.message)}. Please try using another payment method instead.`,duration:12e3,dangerouslyUseHTMLString:!0}),x.value?.[0]?.reset?.()):te.error({title:"Error",message:`Payment processing failed.<br>${Ht(P.message)}.`,duration:12e3,dangerouslyUseHTMLString:!0});return}G.log("createUserOrder result",P);try{const me=P.order?.order_no;if(!me?.startsWith("BA-")&&P.gtm_purchase&&(!me||Sn(me))&&yr(P.gtm_purchase),P.aff_code){const{createOrderData:Me,createLineItem:ve,executeConversionScript:xe}=An(),Fe=P.user_coupon_records?.find(Se=>Se.value_unit==="code_for_affiliates");xe(Me({orderid:P.order.order_no,customerStatus:m.isLogin?"Existing":"New",customerID:P.order.user_id,discountCode:Fe??"",discountAmount:P.order.discount_amount||0,taxAmount:P.order.tax_total??0,lineitems:ve(P.products)}))}}catch(me){G.error("Order tracking failed.",me)}const de=Dt("aff_code",{maxAge:604800});
9de.value=P.aff_code,localStorage.removeItem("result_order"),localStorage.removeItem("result_products"),localStorage.removeItem("user_email"),localStorage.removeItem("user_coupon_records"),localStorage.removeItem("order"),localStorage.removeItem("confirmation_token"),localStorage.removeItem("date-of-purchase"),localStorage.removeItem("serial-number"),localStorage.removeItem("order_warrants"),localStorage.removeItem("payment_status"),localStorage.setItem("result_order",JSON.stringify(P.order));const ie=P.authentication_token?.token?P.authentication_token.token:P.authentication_token;ie&&k(ie),P.discount_amount?localStorage.setItem("discount_amount",P.discount_amount):localStorage.removeItem("discount_amount"),P.glass_etching_order_records?.length>0?localStorage.setItem("glass_etching_order_records",JSON.stringify(P.glass_etching_order_records)):localStorage.removeItem("glass_etching_order_records"),localStorage.setItem("result_products",JSON.stringify(P.products??[])),P.payment_status!=null&&localStorage.setItem("payment_status",String(P.payment_status)),P.order_warrants?.id&&localStorage.setItem("order_warrants",JSON.stringify(P.order_warrants)),localStorage.setItem("user_coupon_records",JSON.stringify(P.user_coupon_records??[])),m.isLogin?(ie&&k(ie),localStorage.setItem("user_email",O.billing_email)):(localStorage.removeItem("already-add-offer-product"),ie&&k(ie),P.confirmation_token&&localStorage.setItem("confirmation_token",P.confirmation_token),localStorage.setItem("user_email",P.user_email??"")),d.clearLocalCart(),d.resetTaxAndShippingPrice(),te({title:"Success",message:P.message,type:"success",duration:3e3}),Y==="NavigateToThankYouPage"&&Gt("/thank-you-page",{external:!0})}catch(L){G.error(L?.data?.error||L?.data?.message||L?.message),O.payment_type==="credit"&&x.value?.[0]?.reset?.(),te.error({title:"Error",message:`Payment processing failed.<br>${Ht(L?.data?.error||L?.data?.message||"Unknown error")}`,duration:12e3,dangerouslyUseHTMLString:!0})}finally{c.value=!1,a.value=!1,I?.close()}},checkStock:async()=>{const O=await l.cartInsufficientAlerts();if(O.insufficient_stock_status){const Y=`Sorry, ${O.insufficient_stock_items.map(L=>`"${L}"`).join(", ")} is not in stock. Please edit your cart and try again. We apologize for any inconvenience caused.`;throw g.value.description=Y,g.value.type="error",te({title:"Error",message:Y,type:"error"}),new Error("Product out of stock")}else g.value.description="",g.value.type=""},validateAllForm:async()=>{if(r.value.livestream){const[O,Y]=await Promise.all([_.value.validate(),p.value.validate()]);if(O.valid===!1||Y.valid===!1)return C(),!1}else if((await _.value.validate()).valid===!1)return C(),!1;return!(!m.isLogin&&!await $("checkout"))}}}function nt(r,d){const m=Ge(),n=Ut(),f=Ca(),l=Wt(),c="UseADifferentBillingAddress",{useDefaultShippingAddress:a,useDefaultBillingAddress:x,lastName:g,firstName:_,companyName:p,streetAddress:C,streetAddressOptional:k,city:E,state:z,zipCode:$,phone:I,email:v,billingLastName:j,billingFirstName:ye,billingCompanyName:O,billingStreetAddress:Y,billingStreetAddressOptional:L,billingState:P,billingZipCode:de,billingCity:ie,billingPhone:me,subscribeNewsletter:Me,livestream:ve,livestreamQuestionAnswer:xe,acknowledgeCheck:Fe}=r;function Se(je){const oe=[];for(const[Ae,ke]of Object.entries(je||{})){const _e={};Ae.split("&").forEach(Ye=>{const[Ue,Te]=Ye.split("=");_e[Ue]=Ue==="sort_order"?Number(Te):Te}),_e.answer=ke,oe.push(_e)}return oe.sort((Ae,ke)=>Ae.sort_order-ke.sort_order),oe.map(({answer:Ae,question_id:ke,question_text:_e})=>({answer:Ae,question_id:ke,question_text:_e}))}const Qe=Se(xe),se=f.currentStateAbbreviation,Be=!!n.couponActive,ze=Be?n.appliedCouponsIds:[],De={shipping_count:!0,shipping_default:a,billing_default:x,order_notes:"",shipping_last_name:g,shipping_first_name:_,shipping_company_name:p,shipping_address_1:C,shipping_address_2:k,shipping_city:E,shipping_state:z,shipping_state_abbreviation:se,shipping_postcode:$,shipping_phone:I,shipping_email:v,last_name:g,first_name:_,b
9illing_address_1:C,billing_address_2:k,billing_city:E,billing_state:z,billing_state_abbreviation:se,billing_zip:$,billing_phone:I,billing_email:v,price:m.cartTotalCost,subscription_mark:Me,livestream:ve,custom_pc_build_answer_defaults:Qe,user_acknowledged:Fe,coupon_active:Be,coupon_ids:ze,composites:l};if(d===c){const je={last_name:j,first_name:ye,company_name:O,billing_address_1:Y,billing_address_2:L,billing_state:P,billing_zip:de,billing_state_abbreviation:f.currentBillingStateAbbreviation,billing_city:ie,billing_phone:me};return{...De,...je}}return De}function Tn({form:r,cartStore:d,couponStore:m,usStatesCitiesZipCodesStore:n,invoiceId:f,getToken:l,ceratePaypalOrderIdApi:c,checkStock:a,postCreateUserOrder:x,pushAddPaymentInfoEvent:g}){const _=ue(()=>({price_total:d.cartTotalCost,tax_total:d.taxCost,coupon_value:m.couponDiscount,shipping_cost:d.shippingCost,shipping_last_name:r.value.lastName,shipping_first_name:r.value.firstName,shipping_company_name:r.value.companyName,shipping_address_1:r.value.streetAddress,shipping_address_2:r.value.streetAddressOptional,shipping_city:r.value.city,shipping_state:r.value.state,shipping_state_abbreviation:n.currentStateAbbreviation,shipping_postcode:r.value.zipCode,shipping_phone:r.value.phone,shipping_email:r.value.email}));return{paypalOrderData:_,createPaypalOrder:async()=>{g("paypal"),await a();const k=Wt(),E=l(),z={..._.value};E||(z.composites=k);const $=await c({body:z}),I=$.order_id;return f.value=$.invoice_id,I},handlePaypalSuccess:({data:k})=>{a().then(()=>{const E=nt(r.value,r.value.billingAddressRadio);E.payment_type="paypal",E.order_tax=d.taxCost,E.payment_id=k.paymentID,E.payer_id=k.payerID,E.invoice_id=f.value,f.value="",x(E)}).catch(E=>{te.error({title:"Error",message:E?.data?.message??E?.data?.error??"Unknown error",duration:7500})})}}}function En({form:r,cartStore:d,nuxtApp:m,completeOrderButtonLoading:n,postCreateUserOrder:f}){return{handlePaymentError:x=>{te.error({title:"Error: Third-Party Payment Error",message:yn(x),duration:7500}),n.value=!1},handleBraintreeSuccess:({nonce:x})=>{try{const g=nt(r.value,r.value.billingAddressRadio);g.payment_type="credit",g.payment_method_nonce=x,g.order_tax=new fe(d.taxCost).toNumber(),f(g)}catch(g){G.error("Braintree success handler failed.",g),n.value=!1}},getBraintreeClientToken:async()=>{try{const{token:x,customer_token:g}=await m.$apiFetch("/braintree/client_token",{method:"GET",useFetch:!1})||{},_=g||x;if(!_)throw new Error("Empty braintree client token");return _}catch(x){throw new Error(x?.data?.message||x?.message||"Failed to get braintree client token",{cause:x})}}}}function Ot(r){return new fe(r).times(100).toNumber()}function ua(r,d,m,n,f,l,c,a,x){return{name:{first:r,last:d},address:{line1:m,line2:n||void 0,city:f,state:l,zipcode:c,country:"USA"},phone_number:a,email:x}}function Pn(r=[],d=[],m){const n=r.flatMap(c=>{const a=c.products[0];return Object.entries(a).map(([,x])=>({display_name:x.name||x.product_name||"",sku:x.sku,unit_price:Ot(x.price),qty:x.quantity}))}),{getProductUrl:f}=_a(),l=d.map(c=>({display_name:c.product_name??c.composite_name??"",sku:c.sku,unit_price:Ot(c.unit_price),qty:c.quantity,item_url:`${m}${f({slug:c.sku,...c})}`}));return[...n,...l]}function Nn(r,d,m,n){const f="UseADifferentBillingAddress",l=ua(r.firstName,r.lastName,r.streetAddress,r.streetAddressOptional,r.city,r.state,r.zipCode,r.phone,r.email),c=n===f?ua(r.billingFirstName,r.billingLastName,r.billingStreetAddress,r.billingStreetAddressOptional,r.billingCity,r.billingState,r.billingZipCode,r.billingPhone||r.phone,r.email):l,a=Pn(d.localCustomCart,d.localGenerallyCart,m);return{merchant:{user_confirmation_url:`${m}/checkout`,user_cancel_url:`${m}/checkout`,user_confirmation_url_action:"GET",name:"Skytech Gaming"},shipping:l,billing:c,items:a,metadata:{mode:"modal"},currency:"USD",shipping_amount:Ot(d.shippingCost),tax_amount:Ot(d.taxCost),total:Ot(d.cartTotalCost)}}function On({form:r,cartStore:d,runtimeConfig:m,completeOrderButtonLoading:n,checkStock:f,postCreateUserOrder:l}){return{affirmCheckoutData:ue(()=>Nn(r.value,d,m.public.siteUrl,r.value.billingAddressRadio)),handleAffirmSuccess:async p=>{try{await f();const C=nt(r.value,r.value.billingAddressRadio);C.payment_type="affirm",C.affirm_checkout_token=p.checkout_token,
9C.order_tax=new fe(d.taxCost).toNumber(),await l(C)}catch(C){C.message?.includes?.("Product out of stock")||te.error({title:"Error",message:C?.data?.message||C?.data?.error||"An unexpected error occurred during Affirm checkout. Please try again.",duration:7500})}finally{n.value=!1}},handleAffirmError:p=>{n.value=!1,te.error({title:"Error: Affirm Payment Error",message:p?.message||"Unable to complete Affirm payment. Please try again later or choose another payment method.",duration:7500})},handleAffirmCancel:()=>{n.value=!1},handleAffirmValidationError:p=>{G.log("handleAffirmValidationError error=>",p),n.value=!1,te.error({title:"Error: Affirm Validation Error",message:"Please check your shipping and billing information for accuracy.",duration:7500})}}}function In({form:r,cartStore:d,completeOrderButtonLoading:m,viewDisabled:n,currentPayment:f,cybersourceReady:l,cybersourceKey:c,cybersourceContainerRef:a,checkStock:x,postCreateUserOrder:g,pushAddPaymentInfoEvent:_}){let p=null;const C=()=>{l.value=!0},k=async v=>{try{_("cybersource"),await x();const j=nt(r.value,r.value.billingAddressRadio);j.payment_type="cybersource",j.cybersource_token=v.transientToken,j.order_tax=new fe(d.taxCost).toNumber(),await g(j)}catch(j){G.error("CyberSource payment success handler error:",j),j.message?.includes?.("Product out of stock")||te.error({title:"Error",message:j?.data?.message||j?.data?.error||"Error occurred while creating order. Please try again later or contact our support team.",duration:1e4}),n.value=!1,m.value=!1}},E=v=>{G.error("CyberSource payment error:",v),te.error({title:"Error: Payment Error",message:v?.message||"Payment processing failed. Please try again later.",duration:1e4}),n.value=!1,m.value=!1},z=qt(()=>{const v=a.value;v&&v.children.length===0&&f.value==="cybersourcePayment"&&(c.value+=1,l.value=!1)},300),$=()=>{p&&(p(),p=null),f.value==="cybersourcePayment"&&st(()=>{const v=document.querySelector("#cybersource-checkout-container");if(!v)return;a.value=v;const{stop:j}=wr(a,()=>{v.children.length===0&&f.value==="cybersourcePayment"&&z()},{childList:!0,subtree:!0});p=j})},I=()=>{p&&(p(),p=null)};return ce(f,v=>{v==="cybersourcePayment"?$():I()}),{handleCyberSourceReady:C,handleCyberSourceSuccess:k,handleCyberSourceError:E,debouncedCybersourceReInit:z,setupCyberSourceContainerObserver:$,cleanupCybersourceObserver:I}}function Dn(r=[],d=[]){const m=r.flatMap(f=>{const l=f.products[0];return Object.entries(l).map(([,c])=>({productName:c.name||c.product_name||"",productId:c.sku,quantity:c.quantity,unitPrice:new fe(c.price).times(100).dividedBy(c.quantity).toNumber()}))}),n=d.map(f=>({productName:f.product_name??f.composite_name??"",productId:f.sku,quantity:f.quantity,unitPrice:new fe(f.unit_price).times(100).dividedBy(f.quantity).toNumber()}));return[...m,...n]}function Un({form:r,cartStore:d,couponStore:m,completeOrderButtonLoading:n,acimaVisible:f,postCreateUserOrder:l}){const c=ue(()=>{const $=nt(r.value,r.value.billingAddressRadio);return{firstName:$.first_name,middleName:"",lastName:$.last_name,phone:$.shipping_phone,email:$.shipping_email,address:{street1:$.shipping_address_1,street2:$.shipping_address_2,city:$.shipping_city,state:$.shipping_state_abbreviation,zipCode:$.shipping_postcode}}}),a=ue(()=>({discounts:new fe(m.couponDiscount).times(100).toNumber(),shipping:new fe(d.shippingCost).times(100).toNumber(),salesTax:new fe(d.taxCost).times(100).toNumber(),lineItems:Dn(d.localCustomCart,d.localGenerallyCart)})),x=U("loca-734bf025-68ad-462f-af0a-7ef38ed8d86d"),g=U("https://ecom.sandbox.acimacredit.com"),{environment:_}=fr();return _.value==="production"?(x.value="loca-1ed4f2fe-901f-4b53-ae93-c208bff96f4e",g.value="https://ecom.acimacredit.com"):(x.value="loca-734bf025-68ad-462f-af0a-7ef38ed8d86d",g.value="https://ecom.sandbox.acimacredit.com"),{acimaCustomerData:c,acimaTransactionData:a,acimaMerchantId:x,acimaIframeUrl:g,handleAcimaSuccess:({leaseId:$,leaseNumber:I,checkoutToken:v})=>{try{f.value=!1;const j=nt(r.value,r.value.billingAddressRadio);j.payment_type="acima",j.lease_id=$,j.lease_number=I,j.checkout_token=v,j.order_tax=new fe(d.taxCost).toNumber(),l(j,"DelayNavigateToThankYouPage")}catch(j){G.error("Acima success handler failed.",j),f.value=!1,n.value=!1}},handleAcimaError:$=>{f.value=!1,te.error({title:"Error: Acima Error",message:$?.message||"Acima error",duration:7500}),n.value=!1},handleAcimaDenied:$=>{f.value=!1,te.error({title:"Error: Acima Error",message:$?.message||"Denied",duration:7500}),n.value=!1},handleAcimaCancelled:()=>{f.value=!1,n.value=!1},handleAcimaClose:$=>{f.value=!1,n.value=!1,$?.checkoutToken&&Gt("/thank-you-page")}}}
9function Rn({form:r,cartStore:d,userStore:m,couponStore:n,couponLoading:f,affiliateSlug:l,getAffiliateCouponApi:c,getDailyCouponCodeApi:a}){const x=async p=>{n.couponMsg={type:"",message:""};try{f.value=!0;const C=p||r.value.promoCode.trim();let k=[],E=[];m.isLogin?(k=await d.getCartCompositeProducts(),E=Kt(k)):(d.localGenerallyCart.length&&d.localGenerallyCart.forEach(z=>{E.push({source:"Generally",product_id:z.product_id,quantity:z.quantity})}),d.localCustomCart.length>0&&Object.values(d.localCustomCart[0].products[0]).forEach(z=>{E.push({source:"Custom",product_id:z.id,quantity:z.quantity})})),await n.addCoupon(C,d.originSubTotal,E)}catch{n.couponMsg={type:"error",message:"This promo code has expired or is not applicable."},n.couponActive=!1}finally{f.value=!1}};return{applyCoupon:x,getAffiliateCouponHandler:async()=>{if(l.value){G.log("getAffiliateCouponHandler!!");try{const p=await c(l.value);p.affiliate_coupon_active&&(r.value.promoCode=p.affiliate_coupon_code,await x(p.affiliate_coupon_code))}catch(p){G.error(p?.data??"Failed to get affiliate coupon.")}}},getDailyCouponHandler:async()=>{try{let p=[];if(m.isLogin){const k=await d.getCartCompositeProducts();p=as(k)}else d.localGenerallyCart.length&&d.localGenerallyCart.forEach(k=>{p.push({source:"Generally",product_id:k.product_id,price:k.unit_price??k.price})}),d.localCustomCart.length>0&&Object.values(d.localCustomCart[0].products[0]).forEach(k=>{p.push({source:"Custom",product_id:k.product_id??k.id,price:k.price})});const C=await a({products:p});return!C?.get_coupon_active||!C?.coupon_code?null:(r.value.promoCode=C.coupon_code,await x(C.coupon_code),{coupon_code:C.coupon_code,discount_value:C.discount_value,value_unit:C.value_unit,value_unit_display:C.value_unit_display})}catch{return null}}}}function Ba(){const{hydrateAfterAuth:r,hydrateGuestCart:d}=Tr(),m=rr(),{getToken:n,setToken:f}=ma(),l=ue(()=>!1);lr({title:"Checkout",meta:[{key:"robots",name:"robots",content:"noindex"}]});const c=Ze(),{generateBreadcrumbObject:a}=Ir();Dr({"@context":"https://schema.org","@graph":[a({name:"Checkout"})]}),G.log("checkout page set up.");const{ceratePaypalOrderIdApi:x}=en(),{checkAccountIsExistApi:g}=ur(),{getLiveStreamQuestionApi:_,getLiveStreamShowApi:p}=tn(),{getAffiliateCouponApi:C,getDailyCouponCodeApi:k}=Cr(),{getZipCodeLookUpApi:E}=$r(),z=Dt("affiliateSlug"),$=Ca(),I=Ge(),v=zt(),j=pr(),ye=rn(),O=Lr(),Y=sn(),L=Ut(),P=Sr(),de=Zt(),ie=nn(),me=Mr(),{pushAddShippingInfoEvent:Me,pushAddPaymentInfoEvent:ve}=Er(),xe=U(!1),{fetchEventId:Fe}=ln(),Se=U(!1),Qe=()=>{Se.value=!Se.value},se=U(!1),Be=U(!1),ze=U(!1),De=U(!1),je=U(!1),oe=U(null),Ae=ue(()=>bn({isLogin:v.isLogin,mailSubscription:v.userData?.mail_subscription})),ke=ue(()=>vn(I.localCustomCart)),_e=U(!1),Ye=$t("braintreeRef"),Ue=$t("affirmRef"),Te=$t("checkoutForm"),Ke=$t("liveStreamForm"),He=U(!1),lt=U(!1),dt=U(0),Ee=U(null),bt=U("GroundShipping"),M=U({useDefaultShippingAddress:!1,useDefaultBillingAddress:!1,email:"",firstName:"",lastName:"",companyName:"",streetAddress:"",streetAddressOptional:"",country:"US",state:"",zipCode:"",city:"",phone:"",billingAddressRadio:"BillingAddressSameAsShippingAddress",billingFirstName:"",billingLastName:"",billingCompanyName:"",billingStreetAddress:"",billingStreetAddressOptional:"",billingState:"",billingZipCode:"",billingCity:"",billingPhone:"",agreeCheckbox:!0,promoCode:"",subscribeNewsletter:!1,livestream:!1,livestreamQuestionAnswer:{},acknowledgeCheck:!0}),Je=U([]);ce(()=>M.value.livestream,F=>{F&&(i.value=wa().shape(ee)),F||(Ke.value.resetForm(),M.value.acknowledgeCheck=!0)});const{calculateShipping:Xe,waitForCalculations:vt}=dn({shippingFreightStore:ie,cartStore:I,couponStore:L}),{calculateTax:et}=mn({form:M,cartStore:I,couponStore:L,taxStore:ye,waitForCalculations:vt}),tt=U(""),Re=U(!1),at=qt(async F=>{if(!v.isLogin)try{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(F))return;await g(F),tt.value="",Re.value=!1}catch(Ve){Ve.status===409&&(Re.value=!0,M.value.createAccount=!1,tt.value="It looks like you already have an account. Please enter your login details below.")}},800),ut=F=>{at(F)};ce(()=>M.value.state,Xe),ce(()=>L.appliedCoupons,(F,Ve)=>{F.length!==Ve.length&&L.calculateCoupon()}),ce(()=>M.value.email,ut),ce(()=>[M.value.state,M.value.city,M.value.streetAddress,M.value.zipCode,L.couponActive,I.shippingCost,I.subTotal],async()=>{await et({state:M.value.state,city:M.value.city,streetAddress:M.value.streetAddress,zipCode:M.value.zipCode})});const rt=U({braintreePaymentDisabled:!1,paypalPaymentDisabled:!1}),Ce=U({description:"",type:""}),qe=U(""),{shippingSchema:be,liveStreamSchema:i,liveStreamSchemaObject:ee,scrollToFirstError:ot,apiValidationZipCodeFailed:X,apiValidationBillingZipCodeFailed:o}=gn({form:M,usStatesCitiesZipCodesStore:$});fn({form:M,checkoutForm:Te,userAddressStore:O,usStatesCitiesZipCodesStore:$,getZipCodeLookUpApi:E,apiValidationZipCodeFailed:X,apiValidationBillingZipCodeFailed:o});const K=U(!1),{loadRecaptcha:_t}=ba(),W=U(!1),Z=U(!1),{postCreateUserOrder:Pe,checkStock:Ne,validateAllForm:ct}=kn({form:M,cartStore:I,userStore:v,orderStore:me,shippingFreightStore:ie,cartInsufficientAlertsStore:P,completeOrderButtonLoading:se,viewDisabled:ze,braintreeRef:Ye,errorDialog:Ce,checkoutForm:Te,liveStreamForm:Ke,scrollToFirstError:ot,setToken:f,fetchEventId:Fe}),$e=async()=>
9{if(await ct()){se.value=!0;try{if(oe.value==="paypalPayment")te({title:"Warning",message:"Please click button PayPal",type:"warning",duration:1e4}),se.value=!1;else if(oe.value==="creditCardPayment")try{await Ne(),ve("credit");const F=Ye.value?.[0]?.requestPaymentMethod;if(!F)throw new Error("Braintree payment not ready");F()}catch(F){G.error("Failed to create dropinInstance.",F),te.error({title:"Error: Third-Party Payment Error",message:"Unable to initialize braintree payment service. Please try again later or contact our support team.",duration:7500}),se.value=!1}else if(oe.value==="acimaPayment")await Ne(),ve("acima"),He.value=!0;else if(oe.value==="affirmPayment"){try{await Ne(),ve("affirm"),G.log("affirmRef.value=>",Ue.value),Ue.value?.[0]?.start?Ue.value[0].start():te.error({title:"Error: Third-Party Payment Error",message:"Affirm payment not initialized. Please try again or switch payment method.",duration:7500})}catch{te.error({title:"Error: Third-Party Payment Error",message:"Unable to initialize Affirm payment service. Please try again later or contact our support team.",duration:7500})}se.value=!1}else if(oe.value==="cybersourcePayment")try{await Ne(),lt.value||(te.warning({title:"Please wait",message:"Payment system is loading, please wait...",duration:5e3}),se.value=!1)}catch(F){G.error("CyberSource payment error:",F),te.error({title:"Error: Third-Party Payment Error",message:"Failed to initialize CyberSource payment service. Please try again later or contact our support team.",duration:7500}),se.value=!1}else if(oe.value==="inquiryPayment")try{ve("inquiry"),await et({state:M.value.state,city:M.value.city,streetAddress:M.value.streetAddress,zipCode:M.value.zipCode});const F=nt(M.value,M.value.billingAddressRadio);F.payment_type="inquiry",F.order_tax=cn(I.taxCost),await Pe(F)}catch(F){G.error("Inquiry order failed.",F),te.error({title:"Error",message:"Unable to complete your order. Please try again later or contact our support team.",duration:7500})}finally{se.value=!1}else oe.value===null&&(te({title:"Error",message:"Please select payment method.",type:"error",duration:1e4}),se.value=!1)}catch(F){G.error("submitOrder failed.",F),se.value=!1}}},{paypalOrderData:wt,createPaypalOrder:xt,handlePaypalSuccess:Ct}=Tn({form:M,cartStore:I,couponStore:L,usStatesCitiesZipCodesStore:$,invoiceId:qe,getToken:n,ceratePaypalOrderIdApi:x,checkStock:Ne,postCreateUserOrder:Pe,pushAddPaymentInfoEvent:ve}),{handlePaymentError:St,handleBraintreeSuccess:At,getBraintreeClientToken:kt}=En({form:M,cartStore:I,nuxtApp:c,completeOrderButtonLoading:se,postCreateUserOrder:Pe}),{affirmCheckoutData:Tt,handleAffirmSuccess:pt,handleAffirmError:Et,handleAffirmCancel:mt,handleAffirmValidationError:ht}=On({form:M,cartStore:I,runtimeConfig:m,completeOrderButtonLoading:se,checkStock:Ne,postCreateUserOrder:Pe}),{handleCyberSourceReady:Pt,handleCyberSourceSuccess:R,handleCyberSourceError:b,setupCyberSourceContainerObserver:V,cleanupCybersourceObserver:Q}=In({form:M,cartStore:I,completeOrderButtonLoading:se,viewDisabled:ze,currentPayment:oe,cybersourceReady:lt,cybersourceKey:dt,cybersourceContainerRef:Ee,checkStock:Ne,postCreateUserOrder:Pe,pushAddPaymentInfoEvent:ve}),{acimaCustomerData:ae,acimaTransactionData:y,acimaMerchantId:D,acimaIframeUrl:it,handleAcimaSuccess:za,handleAcimaError:ja,handleAcimaDenied:Ha,handleAcimaCancelled:qa,handleAcimaClose:Ga}=Un({form:M,cartStore:I,couponStore:L,completeOrderButtonLoading:se,acimaVisible:He,postCreateUserOrder:Pe}),{applyCoupon:Jt,getAffiliateCouponHandler:Ya,getDailyCouponHandler:Wa}=Rn({form:M,cartStore:I,userStore:v,couponStore:L,couponLoading:Be,affiliateSlug:z,getAffiliateCouponApi:C,getDailyCouponCodeApi:k}),Xt=U(!1),ea=U(null),Za=qt(async()=>{xe.value||Te.value&&(await Promise.all(["email","firstName","lastName","streetAddress","zipCode","city","state","phone"].map(F=>Te.value.validateField(F)))).every(F=>F.valid)&&!xe.value&&(Me("Ground"),xe.value=!0)},1e3);ce(()=>[M.value.email,M.value.firstName,M.value.lastName,M.value.streetAddress,M.value.zipCode,M.value.city,M.value.state,M.value.phone],F=>{xe.value||F.every(Ve=>Ve&&Ve.trim())&&Za()});const ta=U(!1),Rt=ue(()=>{const F=Y.paymentTypes??[];return v.isLogin||W.value?F:F.filter(Ve=>Ve.name==="inquiry")});ce(Rt,F=>{oe.value=_n(F,oe.value)},{immediate:!0,flush:"sync"});
9const Qa=ue(()=>Rt.value.some(F=>F.name==="paypal")&&oe.value==="paypalPayment"),Ka=ue(()=>Rt.value.length>0&&!!oe.value&&oe.value!=="paypalPayment"&&oe.value!=="cybersourcePayment"),Ja=ue(()=>!v.isLogin&&Z.value&&!W.value),Xa=F=>{oe.value=F};let aa=null;const ra=async()=>{if(z.value){await Ya();return}const F=await Wa();F?(ea.value=F,Xt.value=!0):L.couponCodesTemp.length&&await Jt(L.couponCodesTemp[0])};return ft(async()=>{if(await v.getUserData(),M.value.email=v.userData.email||"",j.clearSystemAlert(),I.resetTaxAndShippingPrice(),L.resetCouponState(),ie.getShippingMethod(),V(),v.isLogin)try{await O.getUserAddress(),await Promise.all([de.postDataToGetUpSellProduct(),r()]),await ra()}catch{G.error("Call api failed.")}else await d(),await de.postDataToGetUpSellProduct(),await ra();I.cartIsEmpty?(aa=pa.service({lock:!0,background:"rgba(0, 0, 0, 0.5)"}),De.value=!1,nr.alert("Cart is empty.","",{confirmButtonText:"OK",callback:()=>{aa.close(),Gt("/prebuilt-gaming-pc")}})):De.value=!0;try{const Oe=await p();ta.value=Oe.status}catch(Oe){G.error(Oe)}const[F,Ve,oa,er,tr]=await Promise.all([$.getStates(),Y.getPaymentTypes(),P.cartInsufficientAlerts(),_(),v.isLogin?!0:_t()]);if(W.value=!!(v.isLogin||tr),Z.value=!0,Je.value=er.data,Je.value.forEach(Oe=>{M.value.livestreamQuestionAnswer[`question_id=${Oe.id}&question_text=${Oe.question}&sort_order=${Oe.sort_order}`]="",Oe.is_required&&(ee[Oe.id]=ne().required(()=>"This field is required."))}),oa.insufficient_stock_status){const Oe=`Sorry, ${oa.insufficient_stock_items.map(ar=>`"${ar}"`).join(", ")} is not in stock. Please edit your cart and try again. We apologize for any inconvenience caused.`;Ce.value.description=Oe,Ce.value.type="error"}else Ce.value.description="",Ce.value.type="";$.states=F,Y.paymentTypes=Ve}),Ft(()=>{Q()}),{viewDisabled:ze,shippingSchema:be,scrollToFirstError:ot,errorDialog:Ce,openLoginModal:K,loginModalMessage:tt,form:M,userStore:v,userAddressStore:O,shippingMethod:bt,shippingFreightStore:ie,cartStore:I,paymentTypesStore:Y,visiblePaymentTypes:Rt,showPaypalCheckoutButton:Qa,showCompleteOrderButton:Ka,guestRecaptchaPassed:W,guestRecaptchaFailed:Ja,recaptchaAttempted:Z,paymentDisabled:rt,currentPayment:oe,isDev:l,nuxtApp:c,creditCardLoading:_e,getBraintreeClientToken:kt,handlePaymentError:St,handleBraintreeSuccess:At,acimaVisible:He,acimaCustomerData:ae,acimaTransactionData:y,acimaMerchantId:D,acimaIframeUrl:it,handleAcimaSuccess:za,handleAcimaError:ja,handleAcimaDenied:Ha,handleAcimaCancelled:qa,handleAcimaClose:Ga,affirmCheckoutData:Tt,handleAffirmSuccess:pt,handleAffirmError:Et,handleAffirmCancel:mt,handleAffirmValidationError:ht,cybersourceKey:dt,setCurrentPayment:Xa,validateAllForm:ct,handleCyberSourceReady:Pt,handleCyberSourceSuccess:R,handleCyberSourceError:b,upSellProductStore:de,calculateTax:et,showSubscription:Ae,showLiveStreamForm:ta,isThreeDaysBuild:ke,liveStreamSchema:i,liveStreamQuestion:Je,showTermsAndConditions:Se,toggleTermsAndConditions:Qe,paypalOrderData:wt,createPaypalOrder:xt,handlePaypalSuccess:Ct,completeOrderButtonLoading:se,submitOrder:$e,couponLoading:Be,applyCoupon:Jt,dailyCouponPromoVisible:Xt,dailyCouponData:ea,showTemplate:De,showOrderSummary:je}}var $n={class:"w-full lg:max-w-285 mx-auto lg:px-2.5"},Vn={class:"flex flex-col-reverse lg:flex-row"},Ln={class:"w-full lg:w-[60%] relative z-2 px-6 lg:px-0"},Mn={class:"lg:pr-5 pt-5 lg:pt-0"},Fn={class:"mb-5"},Bn={key:1,class:"text-xl mb-4 font-medium"},zn={class:"relative"},jn=["readonly"],Hn={key:2,class:"mb-3 mt-2"},qn={class:"mb-5"},Gn={key:0,for:"useDefaultShippingAddress",class:"flex items-center mb-3 py-2"},Yn={class:"grid lg:grid-cols-2 gap-y-3 gap-x-2 mb-4"},Wn={class:"flex flex-col"},Zn={class:"relative"},Qn=["readonly"],Kn={class:"flex flex-col"},Jn={class:"relative"},Xn=["readonly"],el={class:"flex flex-col mb-4"},tl={class:"relative"},al=["readonly"],rl={class:"flex flex-col mb-4"},ol={class:"relative"},il=["readonly"],sl={class:"flex flex-col mb-4"},nl={class:"relative"},ll=["readonly"],dl={class:"flex flex-col mb-4"},ul={class:"relative"},cl=["readonly"],pl={class:"grid lg:grid-cols-3 gap-x-2 gap-y-4 mb-4"},ml={class:"flex flex-col"},hl={class:"relative"},gl=["disabled"],fl={class:"flex flex-col"},yl={class:"relative"},bl=["readonly"],vl={class:"flex flex-col pointer-events-none"},_l={class:"relative"},wl={class:"flex flex-col mb-4"},xl={class:"relative"},Cl=["readonly"],Sl={class:"mb-5"},Al={for:"shippingMethod",class:"flex items-start px-2.5 py-4 w-full text-gray-900 border-gray-300 bg-transparent roun
9ded-sm border"},kl={key:0,class:"inline-block h-[1em] w-36 rounded-sm bg-zinc-200 animate-pulse align-middle","aria-hidden":"true"},Tl={key:0,class:"mt-3 font-bold"},El={class:"mb-5"},Pl={key:0,class:"mb-4 text-sm text-contrast"},Nl={class:"border border-gray-300 rounded-sm flex flex-col border-b-0"},Ol={key:0},Il=["disabled"],Dl={class:"ml-auto shrink-0"},Ul=["src"],Rl={key:1,class:"flex gap-x-3 shrink-0"},$l=["src"],Vl={key:1},Ll=["disabled"],Ml={class:"ml-auto"},Fl={key:0,class:"flex flex-wrap gap-1"},Bl={class:"flex justify-center"},zl={key:2},jl={key:0,class:"bg-[#f4f4f4] border-b border-gray-300 px-2 py-4"},Hl={class:"ml-auto"},ql=["src"],Gl={key:1,class:"flex gap-x-3 shrink-0"},Yl=["src"],Wl={key:3},Zl={class:"ml-auto"},Ql=["src"],Kl={key:1,class:"flex gap-x-3 shrink-0"},Jl=["src"],Xl={key:0},ed={key:4},td={class:"ml-auto"},ad={key:5},rd={class:"flex gap-2 flex-wrap ml-auto"},od={class:"border-gray-300 rounded-sm border mb-5"},id={for:"billingAddressRadio",class:"flex items-center px-2.5 py-4 w-full text-gray-900 bg-transparent border-b border-gray-300"},sd={for:"useDifferentBillingAddress",class:"flex items-center px-2.5 py-4 w-full text-gray-900 bg-transparent"},nd={class:"px-2 py-4 bg-[#f4f4f4] border-t border-gray-300"},ld={key:0,for:"useDefaultBillingAddress",class:"flex items-center mb-3 py-2"},dd={class:"grid lg:grid-cols-2 gap-x-2 gap-y-4 mb-4"},ud={class:"flex flex-col"},cd={class:"relative"},pd=["readonly"],md={class:"flex flex-col"},hd={class:"relative"},gd=["readonly"],fd={class:"flex flex-col mb-4"},yd={class:"relative"},bd=["readonly"],vd={class:"flex flex-col mb-4"},_d={class:"relative"},wd=["readonly"],xd={class:"flex flex-col mb-4"},Cd={class:"relative"},Sd=["readonly"],Ad={class:"grid lg:grid-cols-3 gap-x-2 gap-y-4 mb-4"},kd={class:"flex flex-col"},Td={class:"relative"},Ed=["readonly"],Pd={class:"flex flex-col pointer-events-none"},Nd={class:"relative"},Od={class:"flex flex-col mb-4"},Id={class:"relative"},Dd=["readonly"],Ud={class:"flex flex-col mb-4"},Rd={class:"relative"},$d=["readonly"],Vd={key:0},Ld={class:"lg:hidden my-7"},Md={key:1,for:"subscribeNewsletter",class:"flex items-center mb-3 py-2"},Fd={key:2,class:"border border-gray-300 rounded-sm mb-3 p-5"},Bd={key:1},zd={for:"livestream",class:"flex items-center mb-3"},jd=["disabled"],Hd={class:"grid gap-y-3"},qd={key:0,class:"relative"},Gd=["id","onUpdate:modelValue"],Yd=["for"],Wd={key:1,class:"relative"},Zd=["id","onUpdate:modelValue"],Qd=["for"],Kd={class:"mt-2"},Jd={for:"acknowledgeCheck",class:"flex mb-3"},Xd={for:"agreeCheckbox",class:"flex items-center pr-2.5 py-4 w-full text-gray-900 bg-transparent"},eu={class:"flex flex-col-reverse lg:flex-row justify-between items-center"},tu={key:0},au=["disabled"],ru={key:3,class:"text-xs text-gray-400 mt-3"},ou={class:"relative"},iu={__name:"CheckoutThemeV1",setup(r){const{viewDisabled:d,shippingSchema:m,scrollToFirstError:n,errorDialog:f,openLoginModal:l,loginModalMessage:c,form:a,userStore:x,userAddressStore:g,shippingMethod:_,shippingFreightStore:p,cartStore:C,visiblePaymentTypes:k,showPaypalCheckoutButton:E,showCompleteOrderButton:z,guestRecaptchaFailed:$,paymentDisabled:I,currentPayment:v,isDev:j,nuxtApp:ye,creditCardLoading:O,getBraintreeClientToken:Y,handlePaymentError:L,handleBraintreeSuccess:P,acimaVisible:de,acimaCustomerData:ie,acimaTransactionData:me,acimaMerchantId:Me,acimaIframeUrl:ve,handleAcimaSuccess:xe,handleAcimaError:Fe,handleAcimaDenied:Se,handleAcimaCancelled:Qe,handleAcimaClose:se,affirmCheckoutData:Be,handleAffirmSuccess:ze,handleAffirmError:De,handleAffirmCancel:je,handleAffirmValidationError:oe,cybersourceKey:Ae,setCurrentPayment:ke,validateAllForm:_e,handleCyberSourceReady:Ye,handleCyberSourceSuccess:Ue,handleCyberSourceError:Te,upSellProductStore:Ke,calculateTax:He,showSubscription:lt,showLiveStreamForm:dt,isThreeDaysBuild:Ee,liveStreamSchema:bt,liveStreamQuestion:M,showTermsAndConditions:Je,toggleTermsAndConditions:Xe,paypalOrderData:vt,createPaypalOrder:et,handlePaypalSuccess:tt,completeOrderButtonLoading:Re,submitOrder:
9at,couponLoading:ut,applyCoupon:rt,dailyCouponPromoVisible:Ce,dailyCouponData:qe}=Ba();return(be,i)=>{const ee=Br,ot=xa,X=va,o=ga,K=ya,_t=Sa,W=Yt,Z=Aa,Pe=yt,Ne=ka,ct=Ta,$e=Ea,wt=Pa,xt=Na,Ct=Oa,St=Ia,At=Da,kt=Ua,Tt=Qt,pt=fa,Et=Ra,mt=$a,ht=js,Pt=Ma;return s(),u("div",{class:w(["relative pt-8 text-zinc-800 bg-white inter-font",{"opacity-60 pointer-events-none":e(d)}])},[e(j)?(s(),pe(ee,{key:0,form:e(a),"onUpdate:form":i[0]||(i[0]=R=>Object.assign(e(a),R))},null,8,["form"])):A("",!0),h(pt,{ref:"checkoutForm","validation-schema":e(m),class:"py-5 rounded-sm flex flex-col mx-auto",onKeydown:i[70]||(i[70]=gt(R=>R.preventDefault(),["enter"])),onInvalidSubmit:e(n)},{default:N(({errors:R})=>[t("div",$n,[t("div",Vn,[t("div",Ln,[i[124]||(i[124]=t("div",{class:"hidden lg:flex justify-center lg:justify-start mb-6"},[t("a",{title:"Skytech Gaming",href:"/",class:"block h-16.5"},[t("img",{width:"199",height:"66",src:"https://skytechai.s3.us-west-002.backblazeb2.com/js8pawg1i151nb5hjqnaje3fm86b_logo-skytech-FULLCOLORBlackwebpwebp.webp",alt:"Skytech Gaming Logo",class:"h-full"}),t("h1",{class:"sr-only"},"Checkout")])],-1)),t("div",Mn,[t("div",Fn,[e(f).description?(s(),pe(ot,{key:0,class:"py-6","show-icon":!1,description:e(f).description,closable:!1,type:e(f).type},null,8,["description","type"])):A("",!0),i[74]||(i[74]=t("h3",{class:"text-2xl mb-3 font-medium"},"Information",-1)),(s(),pe(It,{to:"body"},[h(X,{modelValue:e(l),"onUpdate:modelValue":i[1]||(i[1]=b=>ge(l)?l.value=b:null),message:e(c),"form-email":e(a).email},null,8,["modelValue","message","form-email"])])),e(x).isLogin?A("",!0):(s(),u("h3",Bn,"Guest Checkout")),h(o,{modelValue:e(a).email,"onUpdate:modelValue":i[3]||(i[3]=b=>e(a).email=b),name:"email","validate-on-change":!0},{default:N(()=>[t("div",zn,[S(t("input",{id:"email","onUpdate:modelValue":i[2]||(i[2]=b=>e(a).email=b),readonly:e(x).isLogin,type:"text",autocomplete:"email",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.email,"border-gray-300 focus:border-primary":!R.email,"bg-gray-100!":e(x).isLogin}]),placeholder:" "},null,10,jn),[[B,e(a).email]]),i[72]||(i[72]=t("label",{for:"email",class:"input-floating"},"Email Address *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"email"}),e(x).isLogin?A("",!0):(s(),u("p",Hn,[i[73]||(i[73]=q(" Already have an account with us? ",-1)),t("a",{href:"#",class:"text-sky-600",onClick:i[4]||(i[4]=We(b=>l.value=!0,["prevent"]))},"Log in.")]))]),t("div",qn,[i[87]||(i[87]=t("h3",{class:"text-2xl font-medium mb-3"},"Shipping address",-1)),e(x).isLogin&&e(g).defaultShippingAddress?(s(),u("label",Gn,[S(t("input",{id:"useDefaultShippingAddress","onUpdate:modelValue":i[5]||(i[5]=b=>e(a).useDefaultShippingAddress=b),class:"mr-3 form-check text-black focus:ring-black rounded-sm",type:"checkbox",name:"useDefaultShippingAddress",value:""},null,512),[[we,e(a).useDefaultShippingAddress]]),i[75]||(i[75]=t("p",null,"Use default shipping address.",-1))])):A("",!0),t("div",Yn,[t("div",Wn,[h(o,{modelValue:e(a).firstName,"onUpdate:modelValue":i[7]||(i[7]=b=>e(a).firstName=b),name:"firstName","validate-on-change":!0},{default:N(()=>[t("div",Zn,[S(t("input",{id:"firstName","onUpdate:modelValue":i[6]||(i[6]=b=>e(a).firstName=b),type:"text",autocomplete:"shipping given-name",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer",{"border-contrast focus:border-contrast":R.firstName,"border-gray-300 focus:border-primary":!R.firstName}]),readonly:e(a).useDefaultShippingAddress&&e(a).firstName,placeholder:" "},null,10,Qn),[[B,e(a).firstName]]),i[76]||(i[76]=t("label",{for:"firstName",class:"input-floating"},"First Name *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"firstName"})]),t("div",Kn,[h(o,{modelValue:e(a).lastName,"onUpdate:modelValue":i[9]||(i[9]=b=>e(a).lastName=b),name:"lastName","validate-on-change":!0},{default:N(()=>[t("div",Jn,[S(t("input",{id:"lastName","onUpdate:modelValue":i[8]||(i[8]=b=>e(a).lastName=b),readonly:e(a).useDefaultShippingAddress&&e(a).lastName,type:"text",autocomplete:"shipping family-name",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent roun
9ded-sm border appearance-none focus:outline-hidden focus:ring-0 peer",{"border-contrast focus:border-contrast":R.lastName,"border-gray-300 focus:border-primary":!R.lastName}]),placeholder:" "},null,10,Xn),[[B,e(a).lastName]]),i[77]||(i[77]=t("label",{for:"lastName",class:"input-floating"},"Last Name *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"lastName"})])]),t("div",el,[h(o,{modelValue:e(a).companyName,"onUpdate:modelValue":i[11]||(i[11]=b=>e(a).companyName=b),name:"companyName","validate-on-change":!0},{default:N(()=>[t("div",tl,[S(t("input",{id:"companyName","onUpdate:modelValue":i[10]||(i[10]=b=>e(a).companyName=b),readonly:e(a).useDefaultShippingAddress&&e(a).companyName,type:"text",autocomplete:"shipping organization",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.companyName,"border-gray-300 focus:border-primary":!R.companyName}]),placeholder:" "},null,10,al),[[B,e(a).companyName]]),i[78]||(i[78]=t("label",{for:"companyName",class:"input-floating"},"Company name (optional)",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"companyName"})]),t("div",rl,[h(o,{modelValue:e(a).streetAddress,"onUpdate:modelValue":i[13]||(i[13]=b=>e(a).streetAddress=b),name:"streetAddress","validate-on-change":!0},{default:N(()=>[t("div",ol,[S(t("input",{id:"streetAddress","onUpdate:modelValue":i[12]||(i[12]=b=>e(a).streetAddress=b),readonly:e(a).useDefaultShippingAddress&&e(a).streetAddress,type:"text",autocomplete:"shipping address-line1",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.streetAddress,"border-gray-300 focus:border-primary":!R.streetAddress}]),placeholder:" "},null,10,il),[[B,e(a).streetAddress]]),i[79]||(i[79]=t("label",{for:"streetAddress",class:"input-floating"},"Street Address *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"streetAddress"})]),t("div",sl,[h(o,{modelValue:e(a).streetAddressOptional,"onUpdate:modelValue":i[15]||(i[15]=b=>e(a).streetAddressOptional=b),name:"streetAddressOptional","validate-on-change":!0},{default:N(()=>[t("div",nl,[S(t("input",{id:"streetAddressOptional","onUpdate:modelValue":i[14]||(i[14]=b=>e(a).streetAddressOptional=b),readonly:e(a).useDefaultShippingAddress&&e(a).streetAddressOptional,type:"text",autocomplete:"shipping address-line2",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.streetAddressOptional,"border-gray-300 focus:border-primary":!R.streetAddressOptional}]),placeholder:" "},null,10,ll),[[B,e(a).streetAddressOptional]]),i[80]||(i[80]=t("label",{for:"streetAddressOptional",class:"input-floating"},"Apartment, suite, unit, etc. (optional)",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"streetAddressOptional"})]),t("div",dl,[h(o,{modelValue:e(a).city,"onUpdate:modelValue":i[17]||(i[17]=b=>e(a).city=b),name:"city","validate-on-change":!0},{default:N(()=>[t("div",ul,[S(t("input",{id:"city","onUpdate:modelValue":i[16]||(i[16]=b=>e(a).city=b),readonly:e(a).useDefaultShippingAddress&&e(a).city,type:"text",autocomplete:"shipping address-level2",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.city,"border-gray-300 focus:border-primary":!R.city}]),placeholder:" "},null,10,cl),[[B,e(a).city]]),i[81]||(i[81]=t("label",{for:"city",class:"input-floating"},"Town / City *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"city"})]),t("div",pl,[t("div",ml,[h(o,{modelValue:e(a).country,"onUpdate:modelValue":i[19]||(i[19]=b=>e(a).country=b),name:"country","validate-on-change":!0},{default:N(()=>[t("div",hl,[S(t("select",{"onUpdate:modelValue":i[18]||(i[18]=b=>e(a).country=b),disabled:e(a).useDefaultShippingAddress&&e(a).country,autocomplete:"shipping country",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent roun
9ded-sm border appearance-none focus:outline-hidden focus:ring-0 peer",{"border-contrast focus:border-contrast":R.country,"border-gray-300 focus:border-primary":!R.country}]),name:"country"},[...i[82]||(i[82]=[t("option",{selected:"",value:"",disabled:""},"Select a country / region...",-1),t("option",{value:"US"},"United States (US)",-1)])],10,gl),[[ca,e(a).country]]),i[83]||(i[83]=t("label",{for:"country",class:"input-floating"},"Country / Region *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"country"})]),t("div",fl,[h(o,{modelValue:e(a).zipCode,"onUpdate:modelValue":i[21]||(i[21]=b=>e(a).zipCode=b),name:"zipCode","validate-on-change":!0},{default:N(()=>[t("div",yl,[S(t("input",{id:"zipCode","onUpdate:modelValue":i[20]||(i[20]=b=>e(a).zipCode=b),readonly:e(a).useDefaultShippingAddress&&e(a).zipCode,inputmode:"numeric",type:"text",autocomplete:"shipping postal-code",maxLength:"5",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer",{"border-contrast focus:border-contrast":R.zipCode,"border-gray-300 focus:border-primary":!R.zipCode}]),placeholder:" "},null,10,bl),[[B,e(a).zipCode]]),i[84]||(i[84]=t("label",{for:"zipCode",class:"input-floating"},"Zip Code *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"zipCode"})]),t("div",vl,[h(o,{modelValue:e(a).state,"onUpdate:modelValue":i[23]||(i[23]=b=>e(a).state=b),name:"state"},{default:N(()=>[t("div",_l,[S(t("input",{id:"state","onUpdate:modelValue":i[22]||(i[22]=b=>e(a).state=b),readonly:!0,type:"text",autocomplete:"shipping address-level1",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 rounded-sm appearance-none focus:outline-hidden focus:ring-0 peer cursor-pointer border-0",{"border-contrast focus:border-contrast":R.state,"border-gray-300 focus:border-primary":!R.state}]),placeholder:" "},null,2),[[B,e(a).state]]),i[85]||(i[85]=t("label",{for:"state",class:"input-floating bg-transparent"},"State / County *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"state"})])]),t("div",wl,[h(o,{modelValue:e(a).phone,"onUpdate:modelValue":i[25]||(i[25]=b=>e(a).phone=b),name:"phone","validate-on-change":!0},{default:N(()=>[t("div",xl,[S(t("input",{id:"phone","onUpdate:modelValue":i[24]||(i[24]=b=>e(a).phone=b),readonly:e(a).useDefaultShippingAddress&&e(a).phone,type:"tel",autocomplete:"shipping tel",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-transparent rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.phone,"border-gray-300 focus:border-primary":!R.phone}]),maxlength:"10",placeholder:" "},null,10,Cl),[[B,e(a).phone]]),i[86]||(i[86]=t("label",{for:"phone",class:"input-floating"},"Phone *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"phone"})])]),t("div",Sl,[i[89]||(i[89]=t("h3",{class:"text-2xl font-medium mb-3"},"Shipping method",-1)),t("label",Al,[S(t("input",{id:"shippingMethod","onUpdate:modelValue":i[26]||(i[26]=b=>ge(_)?_.value=b:null),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"shippingMethod",value:"GroundShipping"},null,512),[[he,e(_)]]),t("div",null,[t("p",null,[i[88]||(i[88]=q(" Ground Shipping, ",-1)),e(p).isShippingMethodLoading?(s(),u("span",kl)):(s(),u(H,{key:1},[q(T(e(p).shippingMethodDescription),1)],64))]),e(C).hasGlassEtching?(s(),u("p",Tl," Glass Etching service may take additional 2-3 business days. ")):A("",!0)])])]),t("div",El,[i[98]||(i[98]=t("h3",{class:"text-2xl font-medium mb-3"},"Payment",-1)),i[99]||(i[99]=t("p",{class:"mb-4 text-[333] font-light"},"All transactions are secure and encrypted.",-1)),e($)?(s(),u("p",Pl," Online payments are temporarily unavailable. Please refresh the page or contact support for help. ")):A("",!0),t("div",Nl,[(s(!0),u(H,null,le(e(k),(b,V)=>(s(),u(H,{key:b.name},[b.name==="paypal"?(s(),u("div",Ol,[t("label",{for:"paypalPayment",class:w(["flex items-center px-2.5 py-4 w-full text-gray-900 border-gray-300 border-b",{"opacity-30 bg-gray-200 cursor-not-allowed":e(I).paypalPaymentDisabled,"bg-transparent cursor-pointer":!e(I).paypalPaymentDisabled}])},[S(t("input",{id:"paypalPayment","onUpdate:modelValue":i[27]||(i[27]=Q=>ge(v)?v.value=Q:null),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"paypalPayment",disabled:e(I).paypalPaymentDisabled,value:"paypalPayment"}
9,null,8,Il),[[he,e(v)]]),i[90]||(i[90]=t("p",{class:"shrink-0"},"PayPal",-1)),t("div",Dl,[b.image?(s(),u("img",{key:0,width:"32",heigh:"32",src:b.image,class:"h-8",alt:"payment icon image"},null,8,Ul)):("isNonEmptyArray"in be?be.isNonEmptyArray:e(Ie))(b.images)?(s(),u("ul",Rl,[(s(!0),u(H,null,le(b.images,Q=>(s(),u("li",{key:Q.id,class:"h-8"},[t("img",{width:"32",height:"32",src:Q.imgurl,class:"h-8",alt:"payment icon image"},null,8,$l)]))),128))])):A("",!0)])],2),S(t("div",{class:w(["bg-[#f4f4f4] border-b border-gray-300 px-2 py-4",{"border-b-0":V===e(k).length-1}])},[i[91]||(i[91]=t("p",null,"Pay via PayPal.",-1)),h(W,null,{default:N(()=>[h(_t,{amount:Number(e(C).cartTotalCost||0),placement:"payment",class:"mt-2"},null,8,["amount"])]),_:1})],2),[[re,e(v)==="paypalPayment"]])])):A("",!0),b.name==="credit"?(s(),u("div",Vl,[t("label",{for:"creditCardPayment",class:w(["flex items-center px-2.5 py-4 w-full text-gray-900 border-gray-300 border-b",{"opacity-30 bg-gray-200 cursor-not-allowed":e(I).braintreePaymentDisabled,"bg-transparent cursor-pointer":!e(I).braintreePaymentDisabled}])},[S(t("input",{id:"creditCardPayment","onUpdate:modelValue":i[28]||(i[28]=Q=>ge(v)?v.value=Q:null),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"payment",value:"creditCardPayment",disabled:e(I).braintreePaymentDisabled},null,8,Ll),[[he,e(v)]]),i[92]||(i[92]=t("p",{class:"shrink-0 mr-2"},"American Express",-1)),t("div",Ml,[("isNonEmptyArray"in be?be.isNonEmptyArray:e(Ie))(b.images)?(s(),u("div",Fl,[h(Z,{class:"h-7 w-auto"})])):A("",!0)])],2),e(v)==="creditCardPayment"?(s(),u("div",{key:0,class:w(["bg-[#f4f4f4] border-b border-gray-300 px-2 py-4",{"border-b-0":V===e(k).length-1}])},[S(t("div",Bl,[h(Pe,{class:"text-2xl text-primary",name:"svg-spinners:90-ring-with-bg"})],512),[[re,e(O)]]),S(t("div",null,[h(Ne,{ref_for:!0,ref:"braintreeRef","wait-for-braintree":e(ye).$waitForBraintree,"get-client-token":e(Y),onReady:i[29]||(i[29]=Q=>O.value=!1),onError:e(L),onSuccess:e(P)},null,8,["wait-for-braintree","get-client-token","onError","onSuccess"])],512),[[re,!e(O)]])],2)):A("",!0)])):A("",!0),b.name==="inquiry"?(s(),u("div",zl,[t("label",{for:"inquiryPayment",class:w(["flex items-center px-2.5 py-4 w-full text-gray-900 border-gray-300 border-b",{"border-b":V!==e(k).length-1}])},[S(t("input",{id:"inquiryPayment","onUpdate:modelValue":i[30]||(i[30]=Q=>ge(v)?v.value=Q:null),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"payment",value:"inquiryPayment"},null,512),[[he,e(v)]]),i[93]||(i[93]=t("p",{class:"shrink-0"},"Inquire for Price",-1))],2),e(v)==="inquiryPayment"?(s(),u("div",jl,[i[94]||(i[94]=t("p",null," After selecting 'Inquire for Price' and submitting your order, a representative will contact you within a few days. ",-1)),t("div",Hl,[b.image?(s(),u("img",{key:0,width:"40",height:"32",src:b.image,class:"w-10 h-auto",alt:"payment icon image"},null,8,ql)):("isNonEmptyArray"in be?be.isNonEmptyArray:e(Ie))(b.images)?(s(),u("ul",Gl,[(s(!0),u(H,null,le(b.images,Q=>(s(),u("li",{key:Q.id,class:"w-10 h-8"},[t("img",{src:Q.imgurl,width:"40",height:"32",class:"w-10 h-8",alt:"payment icon image"},null,8,Yl)]))),128))])):A("",!0)])])):A("",!0)])):A("",!0),b.name==="acima"?(s(),u("div",Wl,[t("label",{for:"acimaPayment",class:w(["flex items-center px-2.5 py-4 w-full text-gray-900 border-gray-300 border-b",{"border-b":V!==e(k).length-1}])},[S(t("input",{id:"acimaPayment","onUpdate:modelValue":i[31]||(i[31]=Q=>ge(v)?v.value=Q:null),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"payment",value:"acimaPayment"},null,512),[[he,e(v)]]),i[95]||(i[95]=t("p",{class:"shrink-0"},"Acima Digital Payment",-1)),t("div",Zl,[b.image?(s(),u("img",{key:0,width:"556",height:"90",class:"h-10 w-auto object-contain",src:b.image,alt:"payment icon image"},null,8,Ql)):("isNonEmptyArray"in be?be.isNonEmptyArray:e(Ie))(b.images)?(s(),u("ul",Kl,[(s(!0),u(H,null,le(b.images,Q=>(s(),u("li",{key:Q.id},[t("img",{src:Q.imgurl,width:"556",height:"90",class:"h-10 w-auto object-contain",alt:"payment icon image"},null,8,Jl)]))),128))])):A("",!0)])],2),e(v)==="acimaPayment"?(s(),u("div",Xl,[h(ct,{visible:e(de),"customer-data":e(ie),"transaction-data":e(me),"merchant-id":e(Me),"iframe-url":e(ve),"wait-for-acima":e(ye).$waitForAcima,onSuccess:e(xe),onError:e(Fe),onDenied:e(Se),onCancelled:e(Qe),onClose:e(se)},null,8,["visible","customer-data","transaction-data","merchant-id","iframe-url","wait-for-acima","onSuccess","onError","onDenied","onCancelled","onClose"])])):A("",!0)])):A("",!0),b.name==="affirm"?(s(),u("div",ed,[t("label",{for:"affirmPayment",class:w(["flex items-center px-2.5 py-4 w-full text-gray-900 border-gray-300 border-b",{"border-b":V!==e(k).length-1}])},[S(t("input",{id:"affirmPayment","onUpdate:modelValue":i[32]||(i[32]=Q=>ge(v)?v.value=Q:null),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"payment",value:"affirmPayment"}
9,null,512),[[he,e(v)]]),i[96]||(i[96]=t("p",{class:"shrink-0"},"Pay Over Time with Affirm",-1)),t("div",td,[h($e,{class:"h-6 w-auto"})])],2),e(v)==="affirmPayment"?(s(),u("div",{key:0,class:w(["bg-[#f4f4f4] border-b border-gray-300 px-2 py-4",{"border-b-0":V===e(k).length-1}])},[h(wt,{ref_for:!0,ref:"affirmRef","checkout-data":e(Be),"wait-for-affirm":e(ye).$waitForAffirm,onSuccess:e(ze),onError:e(De),onCancel:e(je),onValidationError:e(oe)},null,8,["checkout-data","wait-for-affirm","onSuccess","onError","onCancel","onValidationError"])],2)):A("",!0)])):A("",!0),b.name==="cybersource"?(s(),u("div",ad,[t("label",{for:"cybersourcePayment",class:w(["flex items-center px-2.5 py-4 w-full text-gray-900 border-gray-300 border-b",{"border-b":V!==e(k).length-1}])},[S(t("input",{id:"cybersourcePayment","onUpdate:modelValue":i[33]||(i[33]=Q=>ge(v)?v.value=Q:null),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"payment",value:"cybersourcePayment"},null,512),[[he,e(v)]]),i[97]||(i[97]=t("p",{class:"w-fit mr-2"},"Credit Card / Google Pay",-1)),t("div",rd,[h(xt,{class:"h-7"}),h(Ct,{class:"h-7 w-auto"}),h(St,{class:"h-7 w-auto"}),h(At,{class:"h-7 w-auto"})])],2),e(v)==="cybersourcePayment"?(s(),u("div",{key:0,class:w(["bg-[#f4f4f4] border-b border-gray-300 px-2 py-4",{"border-b-0":V===e(k).length-1}])},[(s(),pe(kt,{key:e(Ae),"set-current-payment":e(ke),amount:e(C).cartTotalCost,currency:"USD","on-validate-all-form":e(_e),onReady:e(Ye),onSuccess:e(Ue),onError:e(Te)},null,8,["set-current-payment","amount","on-validate-all-form","onReady","onSuccess","onError"]))],2)):A("",!0)])):A("",!0)],64))),128))])]),t("div",null,[i[120]||(i[120]=t("h3",{class:"text-2xl font-medium mb-3"},"Billing address",-1)),i[121]||(i[121]=t("p",{class:"mb-3 text-[333] font-light"}," Select the address that matches your card or payment method. ",-1)),t("div",od,[t("div",null,[h(o,{modelValue:e(a).billingAddressRadio,"onUpdate:modelValue":i[35]||(i[35]=b=>e(a).billingAddressRadio=b),name:"billingAddressRadio","validate-on-change":!0},{default:N(()=>[t("label",id,[S(t("input",{id:"billingAddressRadio","onUpdate:modelValue":i[34]||(i[34]=b=>e(a).billingAddressRadio=b),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"billingAddress",value:"BillingAddressSameAsShippingAddress"},null,512),[[he,e(a).billingAddressRadio]]),i[100]||(i[100]=t("p",null,"Same as shipping address",-1))])]),_:1},8,["modelValue"]),h(K,{class:"text-contrast",name:"billingAddressRadio"})]),t("div",null,[t("label",sd,[S(t("input",{id:"useDifferentBillingAddress","onUpdate:modelValue":i[36]||(i[36]=b=>e(a).billingAddressRadio=b),class:"mr-3 form-radio text-black focus:ring-black",type:"radio",name:"billingAddress",value:"UseADifferentBillingAddress"},null,512),[[he,e(a).billingAddressRadio]]),i[101]||(i[101]=t("p",null,"Use a different billing address",-1))]),S(t("div",nd,[e(x).isLogin&&e(g).defaultBillingAddress?(s(),u("label",ld,[S(t("input",{id:"useDefaultBillingAddress","onUpdate:modelValue":i[37]||(i[37]=b=>e(a).useDefaultBillingAddress=b),class:"mr-3 form-check text-black focus:ring-black rounded-sm",type:"checkbox",name:"useDefaultBillingAddress",value:""},null,512),[[we,e(a).useDefaultBillingAddress]]),i[102]||(i[102]=t("p",null,"Use default billing address.",-1))])):A("",!0),t("div",dd,[t("div",ud,[h(o,{modelValue:e(a).billingFirstName,"onUpdate:modelValue":i[39]||(i[39]=b=>e(a).billingFirstName=b),name:"billingFirstName","validate-on-change":!0},{default:N(()=>[t("div",cd,[S(t("input",{id:"billingFirstName","onUpdate:modelValue":i[38]||(i[38]=b=>e(a).billingFirstName=b),readonly:e(a).useDefaultBillingAddress&&e(a).billingFirstName,type:"text",autocomplete:"billing given-name",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer",{"border-contrast focus:border-contrast":R.billingFirstName,"border-gray-300 focus:border-primary":!R.billingFirstName}]),placeholder:" "},null,10,pd),[[B,e(a).billingFirstName]]),i[103]||(i[103]=t("label",{for:"billingFirstName",class:"input-floating top-3.75 peer-focus:top-3.75"},"First Name *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingFirstName"})]),t("div",md,[h(o,{modelValue:e(a).billingLastName,"onUpdate:modelValue":i[41]||(i[41]=b=>e(a).billingLastName=b),name:"billingLastName","validate-on-change":!0},{default:N(()=>[t("div",hd,[S(t("input",{id:"billingLastName","onUpdate:modelValue":i[40]||(i[40]=b=>e(a).billingLastName=b),readonly:e(a).useDefaultBillingAddress&&e(a).billingLastName,type:"text",autocomplete:"billing family-name",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focu
9s:ring-0 peer",{"border-contrast focus:border-contrast":R.billingLastName,"border-gray-300 focus:border-primary":!R.billingLastName}]),placeholder:" "},null,10,gd),[[B,e(a).billingLastName]]),i[104]||(i[104]=t("label",{for:"billingLastName",class:"input-floating top-3.75 peer-focus:top-3.75"},"Last Name *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingLastName"})])]),t("div",fd,[h(o,{modelValue:e(a).billingCompanyName,"onUpdate:modelValue":i[43]||(i[43]=b=>e(a).billingCompanyName=b),name:"billingCompanyName","validate-on-change":!0},{default:N(()=>[t("div",yd,[S(t("input",{id:"billingCompanyName","onUpdate:modelValue":i[42]||(i[42]=b=>e(a).billingCompanyName=b),readonly:e(a).useDefaultBillingAddress&&e(a).billingCompanyName,type:"text",autocomplete:"billing organization",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.billingCompanyName,"border-gray-300 focus:border-primary":!R.billingCompanyName}]),placeholder:" "},null,10,bd),[[B,e(a).billingCompanyName]]),i[105]||(i[105]=t("label",{for:"billingCompanyName",class:"input-floating top-3.75 peer-focus:top-3.75"},"Company name (optional)",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingCompanyName"})]),t("div",vd,[h(o,{modelValue:e(a).billingStreetAddress,"onUpdate:modelValue":i[45]||(i[45]=b=>e(a).billingStreetAddress=b),name:"billingStreetAddress","validate-on-change":!0},{default:N(()=>[t("div",_d,[S(t("input",{id:"billingStreetAddress","onUpdate:modelValue":i[44]||(i[44]=b=>e(a).billingStreetAddress=b),type:"text",autocomplete:"billing address-line1",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.billingStreetAddress,"border-gray-300 focus:border-primary":!R.billingStreetAddress}]),readonly:e(a).useDefaultBillingAddress&&e(a).billingStreetAddress,placeholder:" "},null,10,wd),[[B,e(a).billingStreetAddress]]),i[106]||(i[106]=t("label",{for:"billingStreetAddress",class:"input-floating top-3.75 peer-focus:top-3.75"},"Street Address *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingStreetAddress"})]),t("div",xd,[h(o,{modelValue:e(a).billingStreetAddressOptional,"onUpdate:modelValue":i[47]||(i[47]=b=>e(a).billingStreetAddressOptional=b),name:"billingStreetAddressOptional","validate-on-change":!0},{default:N(()=>[t("div",Cd,[S(t("input",{id:"billingStreetAddressOptional","onUpdate:modelValue":i[46]||(i[46]=b=>e(a).billingStreetAddressOptional=b),type:"text",autocomplete:"billing address-line2",readonly:e(a).useDefaultBillingAddress&&e(a).billingStreetAddressOptional,class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.billingStreetAddressOptional,"border-gray-300 focus:border-primary":!R.billingStreetAddressOptional}]),placeholder:" "},null,10,Sd),[[B,e(a).billingStreetAddressOptional]]),i[107]||(i[107]=t("label",{for:"billingStreetAddressOptional",class:"input-floating top-3.75 peer-focus:top-3.75"},"Apartment, suite, unit, etc. (optional)",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingStreetAddressOptional"})]),t("div",Ad,[t("div",kd,[h(o,{modelValue:e(a).billingZipCode,"onUpdate:modelValue":i[49]||(i[49]=b=>e(a).billingZipCode=b),name:"billingZipCode","validate-on-change":!0},{default:N(()=>[t("div",Td,[S(t("input",{id:"billingZipCode","onUpdate:modelValue":i[48]||(i[48]=b=>e(a).billingZipCode=b),readonly:e(a).useDefaultBillingAddress&&e(a).billingZipCode,inputmode:"numeric",maxlength:"5",type:"text",autocomplete:"billing postal-code",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer",{"border-contrast focus:border-contrast":R.billingZipCode,"border-gray-300 focus:border-primary":!R.billingZipCode}]),placeholder:" "},null,10,Ed),[[B,e(a).billingZipCode]]),i[108]||(i[108]=t("label",{for:"billingZipCode",class:"input-floating top-3.75 peer-focus:top-3.75"},"Zip Code *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingZipCode"})]),t("div",Pd,[h(o,{modelValue:e(a).billingState,"onUpdate:modelValue":i[51]||(i[51]=b=>e(a).billingState=b),name:"billingState"},{default:N(()=>[t("div",Nd,[S(t("input",{id:"billingState","onUpdate:modelValue":i[50]||(i[50]=b=>e(a).billingState=b),readonly:!0,type:"text",autocomplete:"billing address-level1",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 rounded-sm appearance-none focus:outline-hidden focu
9s:ring-0 peer cursor-pointer border-0 bg-gray-100",{"border-contrast focus:border-contrast":R.billingState,"border-gray-300 focus:border-primary":!R.billingState}]),placeholder:" "},null,2),[[B,e(a).billingState]]),i[109]||(i[109]=t("label",{for:"billingState",class:"input-floating bg-transparent"},"State / County *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingState"})])]),t("div",Od,[h(o,{modelValue:e(a).billingCity,"onUpdate:modelValue":i[53]||(i[53]=b=>e(a).billingCity=b),name:"billingCity","validate-on-change":!0},{default:N(()=>[t("div",Id,[S(t("input",{id:"billingCity","onUpdate:modelValue":i[52]||(i[52]=b=>e(a).billingCity=b),readonly:e(a).useDefaultBillingAddress&&e(a).billingCity,type:"text",autocomplete:"billing address-level2",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.billingCity,"border-gray-300 focus:border-primary":!R.billingCity}]),placeholder:" "},null,10,Dd),[[B,e(a).billingCity]]),i[110]||(i[110]=t("label",{for:"billingCity",class:"input-floating top-3.75 peer-focus:top-3.75"},"Town / City *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingCity"})]),t("div",Ud,[h(o,{modelValue:e(a).billingPhone,"onUpdate:modelValue":i[55]||(i[55]=b=>e(a).billingPhone=b),name:"billingPhone","validate-on-change":!0},{default:N(()=>[t("div",Rd,[S(t("input",{id:"billingPhone","onUpdate:modelValue":i[54]||(i[54]=b=>e(a).billingPhone=b),readonly:e(a).useDefaultBillingAddress&&e(a).billingPhone,maxlength:"10",type:"tel",autocomplete:"billing tel",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer mb-1",{"border-contrast focus:border-contrast":R.billingPhone,"border-gray-300 focus:border-primary":!R.billingPhone}]),placeholder:" "},null,10,$d),[[B,e(a).billingPhone]]),i[111]||(i[111]=t("label",{for:"billingCity",class:"input-floating top-3.75 peer-focus:top-3.75"},"Phone *",-1))])]),_:2},1032,["modelValue"]),h(K,{class:"text-contrast",name:"billingPhone"})])],512),[[re,e(a).billingAddressRadio==="UseADifferentBillingAddress"]])])]),e(Ke).upSellProduct.id?(s(),u("div",Vd,[t("div",Ld,[h(Tt,{"form-data":e(a),onSuccess:e(He)},null,8,["form-data","onSuccess"])])])):A("",!0),e(lt)?(s(),u("label",Md,[S(t("input",{id:"subscribeNewsletter","onUpdate:modelValue":i[56]||(i[56]=b=>e(a).subscribeNewsletter=b),class:"mr-3 form-check text-black focus:ring-black rounded-sm",type:"checkbox",name:"subscribeNewsletter",value:""},null,512),[[we,e(a).subscribeNewsletter]]),i[112]||(i[112]=t("p",null,"Subscribe to our newsletter",-1))])):A("",!0),e(C).localCustomCart.length&&e(dt)?(s(),u("div",Fd,[i[115]||(i[115]=t("h3",{class:"text-2xl font-medium mb-3"},"Watch Your Custom PC Built Live on Twitch",-1)),e(Ee)?(s(),pe(ot,{key:0,class:"py-6 -mt-2","show-icon":!1,title:"Expedited Build Unavailable",description:"Orders with the Live Stream Build option cannot use Expedited Build (3 Business Days). Please select Standard Build Speed to proceed.",closable:!1,type:"error"})):A("",!0),e(Ee)?A("",!0):(s(),u("div",Bd,[h(o,{modelValue:e(a).livestream,"onUpdate:modelValue":i[58]||(i[58]=b=>e(a).livestream=b),name:"livestream","validate-on-change":!0},{default:N(()=>[t("label",zd,[S(t("input",{id:"livestream","onUpdate:modelValue":i[57]||(i[57]=b=>e(a).livestream=b),class:"mr-3 form-check text-black focus:ring-black rounded-sm",type:"checkbox",name:"livestream",value:"",disabled:e(Ee)},null,8,jd),[[we,e(a).livestream]]),i[113]||(i[113]=t("p",{class:"font-medium"},"Yes, build my custom PC on a live stream (optional)",-1))])]),_:1},8,["modelValue"]),h(K,{class:"text-contrast",name:"livestream"})])),S(t("div",null,[h(pt,{ref:"liveStreamForm","validation-schema":e(bt),class:"pt-4 pb-3 rounded-sm flex flex-col mx-auto",onKeydown:i[59]||(i[59]=gt(b=>b.preventDefault(),["enter"])),onInvalidSubmit:e(n)},{default:N(({errors:b})=>[t("div",Hd,[(s(!0),u(H,null,le(e(M),V=>(s(),u("div",{key:V.id},[h(o,{modelValue:e(a).livestreamQuestionAnswer[`question_id=${V.id}&question_text=${V.question}&sort_order=${V.sort_order}`],"onUpdate:modelValue":Q=>e(a).livestreamQuestionAnswer[`question_id=${V.id}&question_text=${V.question}&sort_order=${V.sort_order}`]=Q,name:V.id,"validate-on-change":!0},{default:N(()=>[V.question_type==="text"?(s(),u("div",qd,[S(t("input",{id:V.id,"onUpdate:modelValue":Q=>e(a).livestreamQuestionAnswer[`question_id=${V.id}&question_text=${V.question}&sort_order=${V.sort_order}`]=Q,type:"text",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focu
9s:ring-0 peer",{"border-contrast focus:border-contrast":b[V.id],"border-gray-300 focus:border-primary":!b[V.id]}]),placeholder:" "},null,10,Gd),[[B,e(a).livestreamQuestionAnswer[`question_id=${V.id}&question_text=${V.question}&sort_order=${V.sort_order}`]]]),t("label",{for:V.id,class:"input-floating top-3.75 peer-focus:top-3.75"},[q(T(V.question)+" ",1),S(t("span",null,"*",512),[[re,V.is_required]])],8,Yd)])):A("",!0),V.question_type==="textarea"?(s(),u("div",Wd,[S(t("textarea",{id:V.id,"onUpdate:modelValue":Q=>e(a).livestreamQuestionAnswer[`question_id=${V.id}&question_text=${V.question}&sort_order=${V.sort_order}`]=Q,type:"text",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer",{"border-contrast focus:border-contrast":b[V.id],"border-gray-300 focus:border-primary":!b[V.id]}]),placeholder:" "},null,10,Zd),[[B,e(a).livestreamQuestionAnswer[`question_id=${V.id}&question_text=${V.question}&sort_order=${V.sort_order}`]]]),t("label",{for:V.id,class:"input-floating top-3.75 peer-focus:top-3.75"},[q(T(V.question)+" ",1),S(t("span",null,"*",512),[[re,V.is_required]])],8,Qd)])):A("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),h(K,{class:"text-contrast",name:V.id},null,8,["name"])]))),128))])]),_:1},8,["validation-schema","onInvalidSubmit"]),t("div",Kd,[h(o,{modelValue:e(a).acknowledgeCheck,"onUpdate:modelValue":i[61]||(i[61]=b=>e(a).acknowledgeCheck=b),name:"acknowledgeCheck","validate-on-change":!0},{default:N(()=>[t("label",Jd,[S(t("input",{id:"acknowledgeCheck","onUpdate:modelValue":i[60]||(i[60]=b=>e(a).acknowledgeCheck=b),class:"mt-2 mr-3 form-check text-black focus:ring-black rounded-sm",type:"checkbox",name:"acknowledgeCheck"},null,512),[[we,e(a).acknowledgeCheck]]),i[114]||(i[114]=t("p",null," By checking this box, you acknowledge your custom PC will be scheduled to be built live on the first available timeslot. Builds occur every Wed & Fri between 10am-8pm Pacific Time. We will email you the exact time & date so you can join us. Choosing to live stream your PC may increase your turnaround time. After your live stream build has concluded, your PC must go through final testing & packaging before being shipped. ",-1))])]),_:1},8,["modelValue"]),h(K,{class:"text-contrast",name:"acknowledgeCheck"})])],512),[[re,e(a).livestream]])])):A("",!0),t("div",{class:w(["overflow-hidden duration-500",[e(Je)?"h-66":"h-0"]])},[h(Et)],2),t("div",null,[h(o,{modelValue:e(a).agreeCheckbox,"onUpdate:modelValue":i[64]||(i[64]=b=>e(a).agreeCheckbox=b),name:"agreeCheckbox","validate-on-change":!0},{default:N(()=>[t("label",Xd,[S(t("input",{id:"agreeCheckbox","onUpdate:modelValue":i[62]||(i[62]=b=>e(a).agreeCheckbox=b),class:"mr-3 form-check text-black focus:ring-black rounded-sm",type:"checkbox",name:"agreeCheckbox",value:""},null,512),[[we,e(a).agreeCheckbox]]),t("p",null,[i[116]||(i[116]=q(" I have read and agree to the website ",-1)),t("a",{href:"#",class:"text-sky-600",onClick:i[63]||(i[63]=We((...b)=>e(Xe)&&e(Xe)(...b),["prevent"]))}," terms and conditions"),i[117]||(i[117]=q(" * ",-1))])])]),_:1},8,["modelValue"]),h(K,{class:"text-contrast",name:"agreeCheckbox"})]),t("div",eu,[i[119]||(i[119]=t("a",{href:"/cart",class:"text-sky-600"},"« Return to cart",-1)),e(E)?(s(),u("div",tu,[h(mt,{"order-data":e(vt),"wait-for-paypal":e(ye).$waitForPaypal,"create-paypal-order":e(et),"on-validate-all-form":e(_e),onSuccess:e(tt),onError:e(L)},null,8,["order-data","wait-for-paypal","create-paypal-order","on-validate-all-form","onSuccess","onError"])])):A("",!0),S(t("div",null,[t("button",{type:"button",class:w(["bg-[#00ef97] rounded-sm text-white text-lg py-4 px-8 leading-none",{"opacity-50 ":e(Re)}]),disabled:e(Re),onClick:i[65]||(i[65]=(...b)=>e(at)&&e(at)(...b))},[i[118]||(i[118]=t("span",null," Complete Order ",-1)),S(h(Pe,{name:"svg-spinners:180-ring"},null,512),[[re,e(Re)]])],10,au)],512),[[re,e(z)]])]),e(x).isLogin?A("",!0):(s(),u("p",ru," This site is protected by reCAPTCHA. ")),i[122]||(i[122]=t("hr",{class:"mb-5 mt-3"},null,-1)),i[123]||(i[123]=t("p",{class:"text-sm"},"Copyright © 2026, Skytech Gaming. All rights reserved.",-1))])])]),h(ht,{"form-data":e(a),"promo-code":e(a).promoCode,"coupon-loading":e(ut),"is-dev":e(j),onApplyCoupon:i[69]||(i[69]=b=>e(rt)()),onCalculateTax:e(He)},{"promo-code":N(()=>[h(o,{modelValue:e(a).promoCode,"onUpdate:modelValue":i[68]||(i[68]=b=>e(a).promoCode=b),name:"promoCode","validate-on-change":!0},{default:N(()=>[t("div",ou,[S(t("input",{id:"promoCode","onUpdate:modelValue":i[66]||(i[66]=b=>
9e(a).promoCode=b),type:"text",class:w(["block px-2.5 pb-2 pt-5 w-full text-gray-900 bg-white rounded-sm border appearance-none focus:outline-hidden focus:ring-0 peer",{"border-contrast focus:border-contrast":R.promoCode,"border-gray-300 focus:border-primary":!R.promoCode}]),placeholder:" ",onKeyup:i[67]||(i[67]=gt(()=>{e(a).promoCode!==""&&e(rt)()},["enter"]))},null,34),[[B,e(a).promoCode,void 0,{trim:!0}]]),i[125]||(i[125]=t("label",{for:"promoCode",class:"input-floating top-3.75 peer-focus:top-3.75"},"Enter Promo Code",-1))])]),_:2},1032,["modelValue"])]),_:2},1032,["form-data","promo-code","coupon-loading","is-dev","onCalculateTax"])])])]),_:1},8,["validation-schema","onInvalidSubmit"]),h(Pt,{visible:e(Ce),"coupon-code":e(qe)?.coupon_code??"","discount-value":e(qe)?.discount_value??"","value-unit-display":e(qe)?.value_unit_display??"",onClose:i[71]||(i[71]=R=>Ce.value=!1)},null,8,["visible","coupon-code","discount-value","value-unit-display"])],2)}}},su={class:"w-full max-w-265 mx-auto flex flex-col-reverse lg:flex-row min-h-screen"},nu={class:"w-full lg:flex-1 lg:max-w-screen-sm relative z-2 p-6 lg:p-10"},lu={class:"lg:pr-5 pt-5 lg:pt-0"},du={class:"mb-5"},uu={key:1,class:"text-xl mb-4 font-medium"},cu={class:"relative"},pu=["readonly"],mu={key:2,class:"mb-3 mt-2"},hu={class:"mb-5"},gu={key:0,for:"useDefaultShippingAddress",class:"flex items-start gap-3 mb-3 py-2 cursor-pointer group"},fu={class:"grid lg:grid-cols-2 gap-y-3 gap-x-2 mb-4"},yu={class:"flex flex-col"},bu={class:"relative"},vu=["readonly"],_u={class:"flex flex-col"},wu={class:"relative"},xu=["readonly"],Cu={class:"flex flex-col mb-4"},Su={class:"relative"},Au=["readonly"],ku={class:"flex flex-col mb-4"},Tu={class:"relative"},Eu=["readonly"],Pu={class:"flex flex-col mb-4"},Nu={class:"relative"},Ou=["readonly"],Iu={class:"flex flex-col mb-4"},Du={class:"relative"},Uu=["readonly"],Ru={class:"grid lg:grid-cols-3 gap-x-2 gap-y-4 mb-4"},$u={class:"flex flex-col"},Vu={class:"relative"},Lu=["disabled"],Mu={class:"flex flex-col"},Fu={class:"relative"},Bu=["readonly"],zu={class:"flex flex-col pointer-events-none"},ju={class:"relative"},Hu={class:"flex flex-col mb-4"},qu={class:"relative"},Gu=["readonly"],Yu={class:"mb-5"},Wu={class:"flex-1"},Zu={class:"font-bold text-sm text-white block"},Qu={key:0,class:"inline-block h-[1em] w-36 rounded-sm bg-white/20 animate-pulse align-middle","aria-hidden":"true"},Ku={key:0,class:"text-sm text-white font-bold mt-2 block"},Ju={class:"mb-5"},Xu={key:0,class:"mb-4 text-sm text-red-400"},ec={class:"flex flex-col gap-2"},tc={key:0},ac=["disabled"],rc={class:"ml-auto shrink-0 flex items-center"},oc=["src"],ic={key:1,class:"flex gap-x-3 shrink-0"},sc=["src"],nc={class:"bg-gray-800/50 p-4 border border-t-0 border-white/10 rounded-b-lg"},lc={key:1},dc=["disabled"],uc={class:"ml-auto"},cc={key:0,class:"bg-gray-800/50 p-4 border border-t-0 border-white/10 rounded-b-lg"},pc={class:"flex justify-center"},mc={key:2},hc={class:"flex-1"},gc={class:"text-sm text-gray-300 mt-0.5 block"},fc={class:"ml-auto shrink-0 flex items-center"},yc=["src"],bc={key:1,class:"flex gap-x-3 shrink-0"},vc=["src"],_c={key:3},wc={class:"ml-auto shrink-0 flex items-center"},xc=["src"],Cc={key:1,class:"flex gap-x-3 shrink-0"},Sc=["src"],Ac={key:0,class:"bg-gray-800/50 p-4 border border-t-0 border-white/10 rounded-b-lg"},kc={key:4},Tc={class:"ml-auto"},Ec={key:0,class:"bg-gray-800/50 p-4 border border-t-0 border-white/10 rounded-b-lg"},Pc={key:5},Nc={class:"flex gap-2 flex-wrap ml-auto"},Oc={key:0,class:"bg-gray-800/50 p-4 border border-t-0 border-white/10 rounded-b-lg"},Ic={class:"flex flex-col gap-2 mb-5"},Dc={class:"bg-gray-800/50 p-4 border border-t-0 border-white/10 rounded-b-lg"},Uc={key:0,for:"useDefaultBillingAddress",class:"flex items-start gap-3 mb-3 cursor-pointer group"},Rc={class:"grid lg:grid-cols-2 gap-x-2 gap-y-4 mb-4"},$c={class:"flex flex-col"},Vc={class:"relative"},Lc=["readonly"],Mc={class:"flex flex-col"},Fc={class:"relative"},Bc=["readonly"],zc={class:"flex flex-col mb-4"},jc={class:"relative"},Hc=["readonly"],qc={class:"flex flex-col mb-4"},Gc={class:"relative"},Yc=["readonly"],Wc={class:"flex flex-col mb-4"},Zc={class:"relative"},Qc=["readonly"],Kc={class:"grid lg:grid-cols-3 gap-x-2 gap-y-4 mb-4"},Jc={class:"flex flex-col"},Xc={class:"relative"},ep=["readonly"],tp={class:"flex flex-col pointer-events-none"},ap={class:"relative"},rp={class:"flex flex-col mb-4"},op={class:"relative"},ip=["readonly"],sp={class:"flex flex-col mb-4"},np={class:"relative"},lp=["readonly"],dp={key:0},up={class:"lg:hidden my-7"},cp={key:1,for:"subscribeNewsletter",class:"flex items-start gap-3 mb-3 cursor-pointer group"},pp={key:2,class:"border border-gray-300 rounded-sm mb-3 p-5"},mp={key:1},hp={for:"livestream",class:"flex items-start gap-3 mb-3 cursor-pointer group"},gp=["disabled"],fp={class:"grid gap-y-3"},yp={key:0,class:"relative"}
9,bp=["id","onUpdate:modelValue","placeholder"],vp={key:1,class:"relative"},_p=["id","onUpdate:modelValue","placeholder"],wp={class:"mt-2"},xp={for:"acknowledgeCheck",class:"flex items-start gap-3 mb-3 cursor-pointer group"},Cp={for:"agreeCheckbox",class:"flex items-start gap-3 mb-3 cursor-pointer group"},Sp={class:"text-sm text-gray-200 leading-relaxed mt-0.5"},Ap={class:"flex flex-col-reverse lg:flex-row justify-between items-center"},kp={key:0},Tp=["disabled"],Ep={key:3,class:"text-xs text-gray-400 mt-3"},Pp={class:"w-full lg:flex-none lg:w-105 bg-white text-gray-900 lg:sticky lg:top-0"},Np={class:"relative pb-6 px-5 lg:px-10 z-1 bg-[#fafafa] lg:bg-transparent"},Op={class:"flex"},Ip={key:0},Dp={key:1},Up={class:"font-bold text-black"},Rp={class:"flex flex-col w-3/5"},$p={class:"relative"},Vp=["disabled"],Lp={class:"ml-4"},Mp={class:"mt-1"},Fp={key:2},Bp={key:3,class:"list-disc pl-4"},zp={class:"text-red-600"},jp={class:"flex justify-between py-2 text-sm text-gray-500"},Hp={key:0},qp={class:"mb-4"},Gp={class:"text-sm font-bold"},Yp={class:"text-sm"},Wp={class:"text-gray-500"},Zp=["onClick"],Qp={class:"flex justify-between py-2 text-sm text-gray-500"},Kp={class:"flex justify-between py-2 text-sm text-gray-500"},Jp={class:"flex justify-between py-4 mt-2 border-t border-gray-300 text-lg font-bold text-gray-900"},Xp={key:1,class:"mb-7 hidden lg:block"},em={__name:"CheckoutThemeV2",setup(r){const{viewDisabled:d,shippingSchema:m,scrollToFirstError:n,errorDialog:f,openLoginModal:l,loginModalMessage:c,form:a,userStore:x,userAddressStore:g,shippingMethod:_,shippingFreightStore:p,cartStore:C,visiblePaymentTypes:k,showPaypalCheckoutButton:E,showCompleteOrderButton:z,guestRecaptchaFailed:$,paymentDisabled:I,currentPayment:v,isDev:j,nuxtApp:ye,creditCardLoading:O,getBraintreeClientToken:Y,handlePaymentError:L,handleBraintreeSuccess:P,acimaVisible:de,acimaCustomerData:ie,acimaTransactionData:me,acimaMerchantId:Me,acimaIframeUrl:ve,handleAcimaSuccess:xe,handleAcimaError:Fe,handleAcimaDenied:Se,handleAcimaCancelled:Qe,handleAcimaClose:se,affirmCheckoutData:Be,handleAffirmSuccess:ze,handleAffirmError:De,handleAffirmCancel:je,handleAffirmValidationError:oe,cybersourceKey:Ae,setCurrentPayment:ke,validateAllForm:_e,handleCyberSourceReady:Ye,handleCyberSourceSuccess:Ue,handleCyberSourceError:Te,upSellProductStore:Ke,calculateTax:He,showSubscription:lt,showLiveStreamForm:dt,isThreeDaysBuild:Ee,liveStreamSchema:bt,liveStreamQuestion:M,showTermsAndConditions:Je,toggleTermsAndConditions:Xe,paypalOrderData:vt,createPaypalOrder:et,handlePaypalSuccess:tt,completeOrderButtonLoading:Re,submitOrder:
9at,couponLoading:ut,applyCoupon:rt,dailyCouponPromoVisible:Ce,dailyCouponData:qe,showOrderSummary:be}=Ba(),i=Ut(),ee=X=>({"border-primary focus:border-primary":X,"border-white/10 focus:border-white/50":!X}),ot=X=>({"border-primary focus:border-primary":X,"border-gray-300 focus:border-gray-900":!X});return(X,o)=>{const K=xa,_t=va,W=ga,Z=ya,Pe=Sa,Ne=Yt,ct=Aa,$e=yt,wt=ka,xt=Ta,Ct=Ea,St=Pa,At=Na,kt=Oa,Tt=Ia,pt=Da,Et=Ua,mt=Qt,ht=fa,Pt=Ra,R=$a,b=Va,V=La,Q=Ma;return s(),u("div",{class:w(["relative bg-gray-900 text-white min-h-screen lg:before:absolute lg:before:right-0 lg:before:top-0 lg:before:bottom-0 lg:before:w-[calc(50vw-110px)] lg:before:bg-white lg:before:pointer-events-none lg:before:z-0",{"opacity-60 pointer-events-none":e(d)}])},[h(ht,{ref:"checkoutForm","validation-schema":e(m),class:"flex flex-col w-full relative z-10",onKeydown:o[70]||(o[70]=gt(ae=>ae.preventDefault(),["enter"])),onInvalidSubmit:e(n)},{default:N(({errors:ae})=>[t("div",su,[t("div",nu,[o[110]||(o[110]=t("div",{class:"hidden lg:flex justify-center lg:justify-start mb-8"},[t("a",{title:"Skytech Gaming",href:"/",class:"block"},[t("img",{src:"https://skytechai.s3.us-west-002.backblazeb2.com/iilh783ei39k2ufs3ro2yofel47j_logo-skytech-FULLCOLOR.png",alt:"Skytech Gaming Logo",class:"h-16.5 w-auto"})])],-1)),t("div",lu,[t("div",du,[e(f).description?(s(),pe(K,{key:0,class:"py-6","show-icon":!1,description:e(f).description,closable:!1,type:e(f).type},null,8,["description","type"])):A("",!0),o[73]||(o[73]=t("h2",{class:"uppercase font-bold text-lg tracking-wide mt-8 mb-4 text-white"},"Information",-1)),(s(),pe(It,{to:"body"},[h(_t,{modelValue:e(l),"onUpdate:modelValue":o[0]||(o[0]=y=>ge(l)?l.value=y:null),message:e(c),"form-email":e(a).email},null,8,["modelValue","message","form-email"])])),e(x).isLogin?A("",!0):(s(),u("h3",uu,"Guest Checkout")),h(W,{modelValue:e(a).email,"onUpdate:modelValue":o[2]||(o[2]=y=>e(a).email=y),name:"email","validate-on-change":!0},{default:N(()=>[t("div",cu,[S(t("input",{id:"email","onUpdate:modelValue":o[1]||(o[1]=y=>e(a).email=y),readonly:e(x).isLogin,type:"text",autocomplete:"email",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 mb-1 transition-colors",{...ee(ae.email),"bg-gray-700! opacity-70":e(x).isLogin}]),placeholder:"Email Address *"},null,10,pu),[[B,e(a).email]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"email"}),e(x).isLogin?A("",!0):(s(),u("p",mu,[o[72]||(o[72]=q(" Already have an account with us? ",-1)),t("a",{href:"#",class:"text-primary hover:underline",onClick:o[3]||(o[3]=We(y=>l.value=!0,["prevent"]))},"Log in.")]))]),t("div",hu,[o[78]||(o[78]=t("h2",{class:"uppercase font-bold text-lg tracking-wide mt-8 mb-4 text-white"},"Shipping Address",-1)),e(x).isLogin&&e(g).defaultShippingAddress?(s(),u("label",gu,[S(t("input",{id:"useDefaultShippingAddress","onUpdate:modelValue":o[4]||(o[4]=y=>e(a).useDefaultShippingAddress=y),class:"hidden",type:"checkbox",name:"useDefaultShippingAddress",value:""},null,512),[[we,e(a).useDefaultShippingAddress]]),t("div",{class:w(["w-5 h-5 border-2 rounded-sm flex items-center justify-center shrink-0 mt-0.5 transition-colors duration-200",e(a).useDefaultShippingAddress?"bg-primary border-primary":"border-white/12 group-hover:border-white/20"])},[(s(),u("svg",{class:w(["w-3.5 h-3.5 text-white transition-opacity duration-200",e(a).useDefaultShippingAddress?"opacity-100":"opacity-0"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...o[74]||(o[74]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])],2))],2),o[75]||(o[75]=t("p",{class:"text-sm text-gray-300 leading-relaxed"},"Use default shipping address.",-1))])):A("",!0),t("div",fu,[t("div",yu,[h(W,{modelValue:e(a).firstName,"onUpdate:modelValue":o[6]||(o[6]=y=>e(a).firstName=y),name:"firstName","validate-on-change":!0},{default:N(()=>[t("div",bu,[S(t("input",{id:"firstName","onUpdate:modelValue":o[5]||(o[5]=y=>e(a).firstName=y),type:"text",autocomplete:"shipping given-name",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focu
9s:ring-0 transition-colors",ee(ae.firstName)]),readonly:e(a).useDefaultShippingAddress&&e(a).firstName,placeholder:"First Name *"},null,10,vu),[[B,e(a).firstName]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"firstName"})]),t("div",_u,[h(W,{modelValue:e(a).lastName,"onUpdate:modelValue":o[8]||(o[8]=y=>e(a).lastName=y),name:"lastName","validate-on-change":!0},{default:N(()=>[t("div",wu,[S(t("input",{id:"lastName","onUpdate:modelValue":o[7]||(o[7]=y=>e(a).lastName=y),readonly:e(a).useDefaultShippingAddress&&e(a).lastName,type:"text",autocomplete:"shipping family-name",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors",ee(ae.lastName)]),placeholder:"Last Name *"},null,10,xu),[[B,e(a).lastName]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"lastName"})])]),t("div",Cu,[h(W,{modelValue:e(a).companyName,"onUpdate:modelValue":o[10]||(o[10]=y=>e(a).companyName=y),name:"companyName","validate-on-change":!0},{default:N(()=>[t("div",Su,[S(t("input",{id:"companyName","onUpdate:modelValue":o[9]||(o[9]=y=>e(a).companyName=y),readonly:e(a).useDefaultShippingAddress&&e(a).companyName,type:"text",autocomplete:"shipping organization",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 mb-1 transition-colors",ee(ae.companyName)]),placeholder:"Company name (optional)"},null,10,Au),[[B,e(a).companyName]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"companyName"})]),t("div",ku,[h(W,{modelValue:e(a).streetAddress,"onUpdate:modelValue":o[12]||(o[12]=y=>e(a).streetAddress=y),name:"streetAddress","validate-on-change":!0},{default:N(()=>[t("div",Tu,[S(t("input",{id:"streetAddress","onUpdate:modelValue":o[11]||(o[11]=y=>e(a).streetAddress=y),readonly:e(a).useDefaultShippingAddress&&e(a).streetAddress,type:"text",autocomplete:"shipping address-line1",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 mb-1 transition-colors",ee(ae.streetAddress)]),placeholder:"Street Address *"},null,10,Eu),[[B,e(a).streetAddress]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"streetAddress"})]),t("div",Pu,[h(W,{modelValue:e(a).streetAddressOptional,"onUpdate:modelValue":o[14]||(o[14]=y=>e(a).streetAddressOptional=y),name:"streetAddressOptional","validate-on-change":!0},{default:N(()=>[t("div",Nu,[S(t("input",{id:"streetAddressOptional","onUpdate:modelValue":o[13]||(o[13]=y=>e(a).streetAddressOptional=y),readonly:e(a).useDefaultShippingAddress&&e(a).streetAddressOptional,type:"text",autocomplete:"shipping address-line2",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 mb-1 transition-colors",ee(ae.streetAddressOptional)]),placeholder:"Apartment, suite, unit, etc. (optional)"},null,10,Ou),[[B,e(a).streetAddressOptional]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"streetAddressOptional"})]),t("div",Iu,[h(W,{modelValue:e(a).city,"onUpdate:modelValue":o[16]||(o[16]=y=>e(a).city=y),name:"city","validate-on-change":!0},{default:N(()=>[t("div",Du,[S(t("input",{id:"city","onUpdate:modelValue":o[15]||(o[15]=y=>e(a).city=y),readonly:e(a).useDefaultShippingAddress&&e(a).city,type:"text",autocomplete:"shipping address-level2",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 mb-1 transition-colors",ee(ae.city)]),placeholder:"Town / City *"},null,10,Uu),[[B,e(a).city]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"city"})]),t("div",Ru,[t("div",$u,[h(W,{modelValue:e(a).country,"onUpdate:modelValue":o[18]||(o[18]=y=>e(a).country=y),name:"country","validate-on-change":!0},{default:N(()=>[t("div",Vu,[o[77]||(o[77]=t("label",{for:"country",class:"block text-xs text-gray-300 mb-1"},"Country / Region *",-1)),S(t("select",{id:"country","onUpdate:modelValue":o[17]||(o[17]=y=>e(a).country=y),disabled:e(a).useDefaultShippingAddress&&e(a).country,autocomplete:"shipping country",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239a9a9a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 16px center"},class:w(["w-full py-3 px-4 appearance-none cursor-pointer pr-10 bg-gray-800 border rounded-lg text-sm text-white focus:outline-hidden focu
9s:ring-0 transition-colors",ee(ae.country)]),name:"country"},[...o[76]||(o[76]=[t("option",{selected:"",value:"",disabled:""},"Select a country / region...",-1),t("option",{value:"US"},"United States (US)",-1)])],10,Lu),[[ca,e(a).country]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"country"})]),t("div",Mu,[h(W,{modelValue:e(a).zipCode,"onUpdate:modelValue":o[20]||(o[20]=y=>e(a).zipCode=y),name:"zipCode","validate-on-change":!0},{default:N(()=>[t("div",Fu,[S(t("input",{id:"zipCode","onUpdate:modelValue":o[19]||(o[19]=y=>e(a).zipCode=y),readonly:e(a).useDefaultShippingAddress&&e(a).zipCode,inputmode:"numeric",type:"text",autocomplete:"shipping postal-code",maxLength:"5",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mt-5",ee(ae.zipCode)]),placeholder:"Zip Code *"},null,10,Bu),[[B,e(a).zipCode]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"zipCode"})]),t("div",zu,[h(W,{modelValue:e(a).state,"onUpdate:modelValue":o[22]||(o[22]=y=>e(a).state=y),name:"state"},{default:N(()=>[t("div",ju,[S(t("input",{id:"state","onUpdate:modelValue":o[21]||(o[21]=y=>e(a).state=y),readonly:!0,type:"text",autocomplete:"shipping address-level1",class:w(["w-full py-3 px-4 bg-gray-800 rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mt-5 cursor-pointer border-0",ee(ae.state)]),placeholder:"State / County *"},null,2),[[B,e(a).state]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"state"})])]),t("div",Hu,[h(W,{modelValue:e(a).phone,"onUpdate:modelValue":o[24]||(o[24]=y=>e(a).phone=y),name:"phone","validate-on-change":!0},{default:N(()=>[t("div",qu,[S(t("input",{id:"phone","onUpdate:modelValue":o[23]||(o[23]=y=>e(a).phone=y),readonly:e(a).useDefaultShippingAddress&&e(a).phone,type:"tel",autocomplete:"shipping tel",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 mb-1 transition-colors",ee(ae.phone)]),maxlength:"10",placeholder:"Phone *"},null,10,Gu),[[B,e(a).phone]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"phone"})])]),t("div",Yu,[o[80]||(o[80]=t("h2",{class:"uppercase font-bold text-lg tracking-wide mt-8 mb-4 text-white"},"Shipping method",-1)),t("label",{for:"shippingMethod",class:w(["flex items-center gap-3 py-3.5 px-4 mb-2 border rounded-lg cursor-pointer transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6":e(_)==="GroundShipping","border-white/10 hover:border-white/20 bg-transparent":e(_)!=="GroundShipping"}])},[S(t("input",{id:"shippingMethod","onUpdate:modelValue":o[25]||(o[25]=y=>ge(_)?_.value=y:null),class:"hidden",type:"radio",name:"shippingMethod",value:"GroundShipping"},null,512),[[he,e(_)]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200",e(_)==="GroundShipping"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(_)==="GroundShipping"?"opacity-100":"opacity-0"])},null,2)],2),t("span",Wu,[t("span",Zu,[o[79]||(o[79]=q(" Ground Shipping, ",-1)),e(p).isShippingMethodLoading?(s(),u("span",Qu)):(s(),u(H,{key:1},[q(T(e(p).shippingMethodDescription),1)],64))]),e(C).hasGlassEtching?(s(),u("span",Ku," Glass Etching service may take additional 2-3 business days. ")):A("",!0)])],2)]),t("div",Ju,[o[89]||(o[89]=t("h2",{class:"uppercase font-bold text-lg tracking-wide mt-8 mb-4 text-white"},"Payment",-1)),o[90]||(o[90]=t("p",{class:"text-sm text-gray-200 mb-4"},"All transactions are secure and encrypted.",-1)),e($)?(s(),u("p",Xu," Online payments are temporarily unavailable. Please refresh the page or contact support for help. ")):A("",!0),t("div",ec,[(s(!0),u(H,null,le(e(k),y=>(s(),u(H,{key:y.name},[y.name==="paypal"?(s(),u("div",tc,[t("label",{for:"paypalPayment",class:w(["flex items-center gap-3 py-3.5 px-4 border rounded-lg transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6 rounded-b-none":e(v)==="paypalPayment","border-white/10 hover:border-white/20 bg-transparent":e(v)!=="paypalPayment"&&!e(I).paypalPaymentDisabled,"opacity-30 bg-gray-800 cursor-not-allowed border-white/10":e(I).paypalPaymentDisabled,"cursor-pointer":!e(I).paypalPaymentDisabled}])},[S(t("input",{id:"paypalPayment","onUpdate:modelValue":o[26]||(o[26]=D=>ge(v)?v.value=D:null),class:"hidden",type:"radio",name:"paypalPayment",disabled:e(I).paypalPaymentDisabled,value:"paypalPayment"}
9,null,8,ac),[[he,e(v)]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200",e(v)==="paypalPayment"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(v)==="paypalPayment"?"opacity-100":"opacity-0"])},null,2)],2),o[81]||(o[81]=t("span",{class:"flex-1"},[t("span",{class:"font-bold text-sm text-white block"},"PayPal")],-1)),t("div",rc,[y.image?(s(),u("img",{key:0,width:"32",heigh:"32",src:y.image,class:"h-8",alt:"payment icon image"},null,8,oc)):("isNonEmptyArray"in X?X.isNonEmptyArray:e(Ie))(y.images)?(s(),u("ul",ic,[(s(!0),u(H,null,le(y.images,D=>(s(),u("li",{key:D.id,class:"h-8"},[t("img",{width:"32",height:"32",src:D.imgurl,class:"h-8",alt:"payment icon image"},null,8,sc)]))),128))])):A("",!0)])],2),S(t("div",nc,[o[82]||(o[82]=t("p",{class:"text-sm text-gray-300"},"Pay via PayPal.",-1)),h(Ne,null,{default:N(()=>[h(Pe,{amount:Number(e(C).cartTotalCost||0),placement:"payment",class:"mt-2"},null,8,["amount"])]),_:1})],512),[[re,e(v)==="paypalPayment"]])])):A("",!0),y.name==="credit"?(s(),u("div",lc,[t("label",{for:"creditCardPayment",class:w(["flex items-center gap-3 py-3.5 px-4 border rounded-lg transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6 rounded-b-none":e(v)==="creditCardPayment","border-white/10 hover:border-white/20 bg-transparent":e(v)!=="creditCardPayment"&&!e(I).braintreePaymentDisabled,"opacity-30 bg-gray-800 cursor-not-allowed border-white/10":e(I).braintreePaymentDisabled,"cursor-pointer":!e(I).braintreePaymentDisabled}])},[S(t("input",{id:"creditCardPayment","onUpdate:modelValue":o[27]||(o[27]=D=>ge(v)?v.value=D:null),class:"hidden",type:"radio",name:"payment",value:"creditCardPayment",disabled:e(I).braintreePaymentDisabled},null,8,dc),[[he,e(v)]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200",e(v)==="creditCardPayment"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(v)==="creditCardPayment"?"opacity-100":"opacity-0"])},null,2)],2),o[83]||(o[83]=t("span",{class:"flex-1"},[t("span",{class:"font-bold text-sm text-white block"},"American Express")],-1)),t("div",uc,[h(ct,{class:"h-7 w-auto"})])],2),e(v)==="creditCardPayment"?(s(),u("div",cc,[S(t("div",pc,[h($e,{class:"text-2xl text-primary",name:"svg-spinners:90-ring-with-bg"})],512),[[re,e(O)]]),S(t("div",null,[h(wt,{ref_for:!0,ref:"braintreeRef","wait-for-braintree":e(ye).$waitForBraintree,"get-client-token":e(Y),onReady:o[28]||(o[28]=D=>O.value=!1),onError:e(L),onSuccess:e(P)},null,8,["wait-for-braintree","get-client-token","onError","onSuccess"])],512),[[re,!e(O)]])])):A("",!0)])):A("",!0),y.name==="inquiry"?(s(),u("div",mc,[t("label",{for:"inquiryPayment",class:w(["flex items-center gap-3 py-3.5 px-4 border rounded-lg cursor-pointer transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6":e(v)==="inquiryPayment","border-white/10 hover:border-white/20 bg-transparent":e(v)!=="inquiryPayment"}])},[S(t("input",{id:"inquiryPayment","onUpdate:modelValue":o[29]||(o[29]=D=>ge(v)?v.value=D:null),class:"hidden",type:"radio",name:"payment",value:"inquiryPayment"},null,512),[[he,e(v)]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200",e(v)==="inquiryPayment"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(v)==="inquiryPayment"?"opacity-100":"opacity-0"])},null,2)],2),t("span",hc,[o[84]||(o[84]=t("span",{class:"font-bold text-sm text-white block"},"Inquire for Price",-1)),S(t("span",gc," After selecting 'Inquire for Price' and submitting your order, a representative will contact you within a few days. ",512),[[re,e(v)==="inquiryPayment"]])]),t("div",fc,[y.image?(s(),u("img",{key:0,width:"40",height:"32",src:y.image,class:"w-10 h-auto",alt:"payment icon image"},null,8,yc)):("isNonEmptyArray"in X?X.isNonEmptyArray:e(Ie))(y.images)?(s(),u("ul",bc,[(s(!0),u(H,null,le(y.images,D=>(s(),u("li",{key:D.id,class:"w-10 h-8"},[t("img",{src:D.imgurl,width:"40",height:"32",class:"w-10 h-8",alt:"payment icon image"},null,8,vc)]))),128))])):A("",!0)])],2)])):A("",!0),y.name==="acima"?(s(),u("div",_c,[t("label",{for:"acimaPayment",class:w(["flex items-center gap-3 py-3.5 px-4 border rounded-lg cursor-pointer transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6 rounded-b-none":e(v)==="acimaPayment","border-white/10 hover:border-white/20 bg-transparent":e(v)!=="acimaPayment"}])},[S(t("input",{id:"acimaPayment","onUpdate:modelValue":o[30]||(o[30]=D=>ge(v)?v.value=D:null),class:"hidden",type:"radio",name:"payment",value:"acimaPayment"}
9,null,512),[[he,e(v)]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200",e(v)==="acimaPayment"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(v)==="acimaPayment"?"opacity-100":"opacity-0"])},null,2)],2),o[85]||(o[85]=t("span",{class:"flex-1"},[t("span",{class:"font-bold text-sm text-white block"},"Acima Digital Payment")],-1)),t("div",wc,[y.image?(s(),u("img",{key:0,width:"556",height:"90",class:"h-10 w-auto",src:y.image,alt:"payment icon image"},null,8,xc)):("isNonEmptyArray"in X?X.isNonEmptyArray:e(Ie))(y.images)?(s(),u("ul",Cc,[(s(!0),u(H,null,le(y.images,D=>(s(),u("li",{key:D.id},[t("img",{src:D.imgurl,width:"556",height:"90",class:"h-10 w-auto",alt:"payment icon image"},null,8,Sc)]))),128))])):A("",!0)])],2),e(v)==="acimaPayment"?(s(),u("div",Ac,[h(xt,{visible:e(de),"customer-data":e(ie),"transaction-data":e(me),"merchant-id":e(Me),"iframe-url":e(ve),"wait-for-acima":e(ye).$waitForAcima,onSuccess:e(xe),onError:e(Fe),onDenied:e(Se),onCancelled:e(Qe),onClose:e(se)},null,8,["visible","customer-data","transaction-data","merchant-id","iframe-url","wait-for-acima","onSuccess","onError","onDenied","onCancelled","onClose"])])):A("",!0)])):A("",!0),y.name==="affirm"?(s(),u("div",kc,[t("label",{for:"affirmPayment",class:w(["flex items-center gap-3 py-3.5 px-4 border rounded-lg cursor-pointer transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6 rounded-b-none":e(v)==="affirmPayment","border-white/10 hover:border-white/20 bg-transparent":e(v)!=="affirmPayment"}])},[S(t("input",{id:"affirmPayment","onUpdate:modelValue":o[31]||(o[31]=D=>ge(v)?v.value=D:null),class:"hidden",type:"radio",name:"payment",value:"affirmPayment"},null,512),[[he,e(v)]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200",e(v)==="affirmPayment"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(v)==="affirmPayment"?"opacity-100":"opacity-0"])},null,2)],2),o[86]||(o[86]=t("span",{class:"flex-1"},[t("span",{class:"font-bold text-sm text-white block"},"Pay Over Time with Affirm")],-1)),t("div",Tc,[h(Ct,{class:"h-6 w-auto"})])],2),e(v)==="affirmPayment"?(s(),u("div",Ec,[o[87]||(o[87]=t("p",{class:"text-sm text-gray-300 mb-3"}," Pay over time with Affirm. A secure pop-up will appear to complete your purchase. ",-1)),h(St,{ref_for:!0,ref:"affirmRef","checkout-data":e(Be),"wait-for-affirm":e(ye).$waitForAffirm,onSuccess:e(ze),onError:e(De),onCancel:e(je),onValidationError:e(oe)},null,8,["checkout-data","wait-for-affirm","onSuccess","onError","onCancel","onValidationError"])])):A("",!0)])):A("",!0),y.name==="cybersource"?(s(),u("div",Pc,[t("label",{for:"cybersourcePayment",class:w(["flex items-center gap-3 py-3.5 px-4 border rounded-lg cursor-pointer transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6 rounded-b-none":e(v)==="cybersourcePayment","border-white/10 hover:border-white/20 bg-transparent":e(v)!=="cybersourcePayment"}])},[S(t("input",{id:"cybersourcePayment","onUpdate:modelValue":o[32]||(o[32]=D=>ge(v)?v.value=D:null),class:"hidden",type:"radio",name:"payment",value:"cybersourcePayment"},null,512),[[he,e(v)]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200",e(v)==="cybersourcePayment"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(v)==="cybersourcePayment"?"opacity-100":"opacity-0"])},null,2)],2),o[88]||(o[88]=t("span",{class:"flex-1"},[t("span",{class:"font-bold text-sm text-white block"},"Credit Card / Google Pay")],-1)),t("div",Nc,[h(At,{class:"h-7"}),h(kt,{class:"h-7 w-auto"}),h(Tt,{class:"h-7 w-auto"}),h(pt,{class:"h-7 w-auto"})])],2),e(v)==="cybersourcePayment"?(s(),u("div",Oc,[(s(),pe(Et,{key:e(Ae),"set-current-payment":e(ke),amount:e(C).cartTotalCost,currency:"USD","on-validate-all-form":e(_e),onReady:e(Ye),onSuccess:e(Ue),onError:e(Te)},null,8,["set-current-payment","amount","on-validate-all-form","onReady","onSuccess","onError"]))])):A("",!0)])):A("",!0)],64))),128))])]),t("div",null,[o[106]||(o[106]=t("h2",{class:"uppercase font-bold text-lg tracking-wide mt-8 mb-4 text-white"},"Billing address",-1)),o[107]||(o[107]=t("p",{class:"text-sm text-gray-200 mb-4"}," Select the address that matches your card or payment method. ",-1)),t("div",Ic,[t("div",null,[h(W,{modelValue:e(a).billingAddressRadio,"onUpdate:modelValue":o[34]||(o[34]=y=>e(a).billingAddressRadio=y),name:"billingAddressRadio","validate-on-change":!0},{default:N(()=>[t("label",{for:"billingAddressRadio",class:w(["flex items-center gap-3 py-3.5 px-4 border rounded-lg cursor-pointer transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6":e(a).billingAddressRadio==="BillingAddressSameAsShippingAddress","border-white/10 hover:border-white/20 bg-transparent":e(a).billingAddressRadio!=="BillingAddressSameAsShippingAddress"}])},[S(t("input",{id:"billingAddressRadio","onUpdate:modelValue":o[33]||(o[33]=y=>e(a).billingAddressRadio=y),class:"hidden",type:"radio",name:"billingAddress",value:"BillingAddressSameAsShippingAddress"},null,512),[[he,e(a).billingAddressRadio]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200 bg-primary/6",e(a).billingAddressRadio==="BillingAddressSameAsShippingAddress"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(a).billingAddressRadio==="BillingAddressSameAsShippingAddress"?"opacity-100":"opacity-0"])},null,2)],2),o[91]||(o[91]=t("span",{class:"flex-1"},[t("span",{class:"font-bold text-sm text-white block"},"Same as shipping address")],-1))],2)]),_:1},8,["modelValue"]),h(Z,{class:"text-primary",name:"billingAddressRadio"})]),t("div",null,[t("label",{for:"useDifferentBillingAddress",class:w(["flex items-center gap-3 py-3.5 px-4 border rounded-lg cursor-pointer transition-colors duration-200 ease-in-out",{"border-primary bg-primary/6 rounded-b-none":e(a).billingAddressRadio==="UseADifferentBillingAddress","border-white/10 hover:border-white/20 bg-transparent":e(a).billingAddressRadio!=="UseADifferentBillingAddress"}])},[S(t("input",{id:"useDifferentBillingAddress","onUpdate:modelValue":o[35]||(o[35]=y=>
9e(a).billingAddressRadio=y),class:"hidden",type:"radio",name:"billingAddress",value:"UseADifferentBillingAddress"},null,512),[[he,e(a).billingAddressRadio]]),t("span",{class:w(["w-5 h-5 border-2 rounded-full flex items-center justify-center shrink-0 transition-colors duration-200 bg-primary/6",e(a).billingAddressRadio==="UseADifferentBillingAddress"?"border-primary":"border-white/10"])},[t("span",{class:w(["w-2.5 h-2.5 bg-primary rounded-full transition-opacity duration-200",e(a).billingAddressRadio==="UseADifferentBillingAddress"?"opacity-100":"opacity-0"])},null,2)],2),o[92]||(o[92]=t("span",{class:"flex-1"},[t("span",{class:"font-bold text-sm text-white block"},"Use a different billing address")],-1))],2),S(t("div",Dc,[e(x).isLogin&&e(g).defaultBillingAddress?(s(),u("label",Uc,[S(t("input",{id:"useDefaultBillingAddress","onUpdate:modelValue":o[36]||(o[36]=y=>e(a).useDefaultBillingAddress=y),class:"hidden",type:"checkbox",name:"useDefaultBillingAddress",value:""},null,512),[[we,e(a).useDefaultBillingAddress]]),t("div",{class:w(["w-5 h-5 border-2 rounded-sm flex items-center justify-center shrink-0 mt-0.5 transition-colors duration-200",e(a).useDefaultBillingAddress?"bg-primary border-primary":"border-white/12 group-hover:border-white/20"])},[(s(),u("svg",{class:w(["w-3.5 h-3.5 text-white transition-opacity duration-200",e(a).useDefaultBillingAddress?"opacity-100":"opacity-0"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...o[93]||(o[93]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])],2))],2),o[94]||(o[94]=t("span",{class:"text-sm text-gray-300 leading-relaxed"}," Use default billing address. ",-1))])):A("",!0),t("div",Rc,[t("div",$c,[h(W,{modelValue:e(a).billingFirstName,"onUpdate:modelValue":o[38]||(o[38]=y=>e(a).billingFirstName=y),name:"billingFirstName","validate-on-change":!0},{default:N(()=>[t("div",Vc,[S(t("input",{id:"billingFirstName","onUpdate:modelValue":o[37]||(o[37]=y=>e(a).billingFirstName=y),readonly:e(a).useDefaultBillingAddress&&e(a).billingFirstName,type:"text",autocomplete:"billing given-name",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(ae.billingFirstName)]),placeholder:"First Name *"},null,10,Lc),[[B,e(a).billingFirstName]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingFirstName"})]),t("div",Mc,[h(W,{modelValue:e(a).billingLastName,"onUpdate:modelValue":o[40]||(o[40]=y=>e(a).billingLastName=y),name:"billingLastName","validate-on-change":!0},{default:N(()=>[t("div",Fc,[S(t("input",{id:"billingLastName","onUpdate:modelValue":o[39]||(o[39]=y=>e(a).billingLastName=y),readonly:e(a).useDefaultBillingAddress&&e(a).billingLastName,type:"text",autocomplete:"billing family-name",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(ae.billingLastName)]),placeholder:"Last Name *"},null,10,Bc),[[B,e(a).billingLastName]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingLastName"})])]),t("div",zc,[h(W,{modelValue:e(a).billingCompanyName,"onUpdate:modelValue":o[42]||(o[42]=y=>e(a).billingCompanyName=y),name:"billingCompanyName","validate-on-change":!0},{default:N(()=>[t("div",jc,[S(t("input",{id:"billingCompanyName","onUpdate:modelValue":o[41]||(o[41]=y=>e(a).billingCompanyName=y),readonly:e(a).useDefaultBillingAddress&&e(a).billingCompanyName,type:"text",autocomplete:"billing organization",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(ae.billingCompanyName)]),placeholder:"Company name (optional)"},null,10,Hc),[[B,e(a).billingCompanyName]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingCompanyName"})]),t("div",qc,[h(W,{modelValue:e(a).billingStreetAddress,"onUpdate:modelValue":o[44]||(o[44]=y=>e(a).billingStreetAddress=y),name:"billingStreetAddress","validate-on-change":!0},{default:N(()=>[t("div",Gc,[S(t("input",{id:"billingStreetAddress","onUpdate:modelValue":o[43]||(o[43]=y=>e(a).billingStreetAddress=y),type:"text",autocomplete:"billing address-line1",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focu
9s:ring-0 transition-colors mb-1",ee(ae.billingStreetAddress)]),readonly:e(a).useDefaultBillingAddress&&e(a).billingStreetAddress,placeholder:"Street Address *"},null,10,Yc),[[B,e(a).billingStreetAddress]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingStreetAddress"})]),t("div",Wc,[h(W,{modelValue:e(a).billingStreetAddressOptional,"onUpdate:modelValue":o[46]||(o[46]=y=>e(a).billingStreetAddressOptional=y),name:"billingStreetAddressOptional","validate-on-change":!0},{default:N(()=>[t("div",Zc,[S(t("input",{id:"billingStreetAddressOptional","onUpdate:modelValue":o[45]||(o[45]=y=>e(a).billingStreetAddressOptional=y),type:"text",autocomplete:"billing address-line2",readonly:e(a).useDefaultBillingAddress&&e(a).billingStreetAddressOptional,class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(ae.billingStreetAddressOptional)]),placeholder:"Apartment, suite, unit, etc. (optional)"},null,10,Qc),[[B,e(a).billingStreetAddressOptional]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingStreetAddressOptional"})]),t("div",Kc,[t("div",Jc,[h(W,{modelValue:e(a).billingZipCode,"onUpdate:modelValue":o[48]||(o[48]=y=>e(a).billingZipCode=y),name:"billingZipCode","validate-on-change":!0},{default:N(()=>[t("div",Xc,[S(t("input",{id:"billingZipCode","onUpdate:modelValue":o[47]||(o[47]=y=>e(a).billingZipCode=y),readonly:e(a).useDefaultBillingAddress&&e(a).billingZipCode,inputmode:"numeric",maxlength:"5",type:"text",autocomplete:"billing postal-code",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(ae.billingZipCode)]),placeholder:"Zip Code *"},null,10,ep),[[B,e(a).billingZipCode]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingZipCode"})]),t("div",tp,[h(W,{modelValue:e(a).billingState,"onUpdate:modelValue":o[50]||(o[50]=y=>e(a).billingState=y),name:"billingState"},{default:N(()=>[t("div",ap,[S(t("input",{id:"billingState","onUpdate:modelValue":o[49]||(o[49]=y=>e(a).billingState=y),readonly:!0,type:"text",autocomplete:"billing address-level1",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1 cursor-pointer",ee(ae.billingState)]),placeholder:"State / County *"},null,2),[[B,e(a).billingState]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingState"})])]),t("div",rp,[h(W,{modelValue:e(a).billingCity,"onUpdate:modelValue":o[52]||(o[52]=y=>e(a).billingCity=y),name:"billingCity","validate-on-change":!0},{default:N(()=>[t("div",op,[S(t("input",{id:"billingCity","onUpdate:modelValue":o[51]||(o[51]=y=>e(a).billingCity=y),readonly:e(a).useDefaultBillingAddress&&e(a).billingCity,type:"text",autocomplete:"billing address-level2",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(ae.billingCity)]),placeholder:"Town / City *"},null,10,ip),[[B,e(a).billingCity]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingCity"})]),t("div",sp,[h(W,{modelValue:e(a).billingPhone,"onUpdate:modelValue":o[54]||(o[54]=y=>e(a).billingPhone=y),name:"billingPhone","validate-on-change":!0},{default:N(()=>[t("div",np,[S(t("input",{id:"billingPhone","onUpdate:modelValue":o[53]||(o[53]=y=>e(a).billingPhone=y),readonly:e(a).useDefaultBillingAddress&&e(a).billingPhone,maxlength:"10",type:"tel",autocomplete:"billing tel",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(ae.billingPhone)]),placeholder:"Phone *"},null,10,lp),[[B,e(a).billingPhone]])])]),_:2},1032,["modelValue"]),h(Z,{class:"text-primary",name:"billingPhone"})])],512),[[re,e(a).billingAddressRadio==="UseADifferentBillingAddress"]])])]),e(Ke).upSellProduct.id?(s(),u("div",dp,[t("div",up,[h(mt,{"form-data":e(a),onSuccess:e(He)},null,8,["form-data","onSuccess"])])])):A("",!0),e(lt)?(s(),u("label",cp,[S(t("input",{id:"subscribeNewsletter","onUpdate:modelValue":o[55]||(o[55]=y=>e(a).subscribeNewsletter=y),class:"hidden",type:"checkbox",name:"subscribeNewsletter",value:""},null,512),[[we,e(a).subscribeNewsletter]]),t("div",{class:w(["w-5 h-5 border-2 rounded-sm flex items-center justify-center shrink-0 mt-0.5 transition-colors duration-200",e(a).subscribeNewsletter?"bg-primary border-primary":"border-white/12 group-hover:border-white/20"])},[(s(),u("svg",{class:w(["w-3.5 h-3.5 text-white transition-opacity duration-200",e(a).subscribeNewsletter?"opacity-100":"opacity-0"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...o[95]||(o[95]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])],2))],2),o[96]||(o[96]=t("span",{class:"text-sm text-gray-200 leading-relaxed"}," Subscribe to our newsletter ",-1))])):A("",!0),e(C).localCustomCart.length&&e(dt)?(s(),u("div",pp,[o[100]||(o[100]=t("h3",{class:"text-2xl font-medium mb-3"},"Watch Your Custom PC Built Live on Twitch",-1)),e(Ee)?(s(),pe(K,{key:0,class:"py-6 -mt-2","show-icon":!1,title:"Expedited Build Unavailable",description:"Orders with the Live Stream Build option cannot use Expedited Build (3 Business Days). Please select Standard Build Speed to proceed.",closable:!1,type:"error"})):A("",!0),e(Ee)?A("",!0):(s(),u("div",mp,[h(W,{modelValue:e(a).livestream,"onUpdate:modelValue":o[57]||(o[57]=y=>e(a).livestream=y),name:"livestream","validate-on-change":!0},{default:N(()=>[t("label",hp,[S(t("input",{id:"livestream","onUpdate:modelValue":o[56]||(o[56]=y=>e(a).livestream=y),class:"hidden",type:"checkbox",name:"livestream",value:"",disabled:e(Ee)},null,8,gp),[[we,e(a).livestream]]),t("div",{class:w(["w-5 h-5 border-2 rounded-sm flex items-center justify-center shrink-0 mt-0.5 transition-colors duration-200",[e(a).livestream?"bg-primary border-primary":"border-white/12 group-hover:border-white/20",e(Ee)?"opacity-50 cursor-not-allowed":""]])},[(s(),u("svg",{class:w(["w-3.5 h-3.5 text-white transition-opacity duration-200",e(a).livestream?"opacity-100":"opacity-0"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...o[97]||(o[97]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])],2))],2),t("span",{class:w(["text-sm text-gray-300 leading-relaxed font-medium",e(Ee)?"opacity-50":""])}," Yes, build my custom PC on a live stream (optional) ",2)])]),_:1},8,["modelValue"]),h(Z,{class:"text-primary",name:"livestream"}
9)])),S(t("div",null,[h(ht,{ref:"liveStreamForm","validation-schema":e(bt),class:"pt-4 pb-3 rounded-sm flex flex-col mx-auto",onKeydown:o[58]||(o[58]=gt(y=>y.preventDefault(),["enter"])),onInvalidSubmit:e(n)},{default:N(({errors:y})=>[t("div",fp,[(s(!0),u(H,null,le(e(M),D=>(s(),u("div",{key:D.id},[h(W,{modelValue:e(a).livestreamQuestionAnswer[`question_id=${D.id}&question_text=${D.question}&sort_order=${D.sort_order}`],"onUpdate:modelValue":it=>e(a).livestreamQuestionAnswer[`question_id=${D.id}&question_text=${D.question}&sort_order=${D.sort_order}`]=it,name:D.id,"validate-on-change":!0},{default:N(()=>[D.question_type==="text"?(s(),u("div",yp,[S(t("input",{id:D.id,"onUpdate:modelValue":it=>e(a).livestreamQuestionAnswer[`question_id=${D.id}&question_text=${D.question}&sort_order=${D.sort_order}`]=it,type:"text",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(y[D.id])]),placeholder:D.question+(D.is_required?" *":"")},null,10,bp),[[B,e(a).livestreamQuestionAnswer[`question_id=${D.id}&question_text=${D.question}&sort_order=${D.sort_order}`]]])])):A("",!0),D.question_type==="textarea"?(s(),u("div",vp,[S(t("textarea",{id:D.id,"onUpdate:modelValue":it=>e(a).livestreamQuestionAnswer[`question_id=${D.id}&question_text=${D.question}&sort_order=${D.sort_order}`]=it,type:"text",class:w(["w-full py-3 px-4 bg-gray-800 border rounded-lg text-sm text-white placeholder-gray-400 focus:outline-hidden focus:ring-0 transition-colors mb-1",ee(y[D.id])]),placeholder:D.question+(D.is_required?" *":"")},null,10,_p),[[B,e(a).livestreamQuestionAnswer[`question_id=${D.id}&question_text=${D.question}&sort_order=${D.sort_order}`]]])])):A("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","name"]),h(Z,{class:"text-primary",name:D.id},null,8,["name"])]))),128))])]),_:1},8,["validation-schema","onInvalidSubmit"]),t("div",wp,[h(W,{modelValue:e(a).acknowledgeCheck,"onUpdate:modelValue":o[60]||(o[60]=y=>e(a).acknowledgeCheck=y),name:"acknowledgeCheck","validate-on-change":!0},{default:N(()=>[t("label",xp,[S(t("input",{id:"acknowledgeCheck","onUpdate:modelValue":o[59]||(o[59]=y=>e(a).acknowledgeCheck=y),class:"hidden",type:"checkbox",name:"acknowledgeCheck"},null,512),[[we,e(a).acknowledgeCheck]]),t("div",{class:w(["w-5 h-5 border-2 rounded-sm flex items-center justify-center shrink-0 mt-0.5 transition-colors duration-200",e(a).acknowledgeCheck?"bg-primary border-primary":"border-white/12 group-hover:border-white/20"])},[(s(),u("svg",{class:w(["w-3.5 h-3.5 text-white transition-opacity duration-200",e(a).acknowledgeCheck?"opacity-100":"opacity-0"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...o[98]||(o[98]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])],2))],2),o[99]||(o[99]=t("span",{class:"text-sm text-gray-300 leading-relaxed"}," By checking this box, you acknowledge your custom PC will be scheduled to be built live on the first available timeslot. Builds occur every Wed & Fri between 10am-8pm Pacific Time. We will email you the exact time & date so you can join us. Choosing to live stream your PC may increase your turnaround time. After your live stream build has concluded, your PC must go through final testing & packaging before being shipped. ",-1))])]),_:1},8,["modelValue"]),h(Z,{class:"text-primary",name:"acknowledgeCheck"})])],512),[[re,e(a).livestream]])])):A("",!0),t("div",{class:w(["overflow-hidden duration-500",[e(Je)?"h-66":"h-0"]])},[h(Pt)],2),t("div",null,[h(W,{modelValue:e(a).agreeCheckbox,"onUpdate:modelValue":o[63]||(o[63]=y=>e(a).agreeCheckbox=y),name:"agreeCheckbox","validate-on-change":!0},{default:N(()=>[t("label",Cp,[S(t("input",{id:"agreeCheckbox","onUpdate:modelValue":o[61]||(o[61]=y=>e(a).agreeCheckbox=y),class:"hidden",type:"checkbox",name:"agreeCheckbox",value:""},null,512),[[we,e(a).agreeCheckbox]]),t("div",{class:w(["w-5 h-5 border-2 rounded-sm flex items-center justify-center shrink-0 mt-0.5 transition-colors duration-200",e(a).agreeCheckbox?"bg-primary border-primary":"border-white/12 group-hover:border-white/20"])},[(s(),u("svg",{class:w(["w-3.5 h-3.5 text-white transition-opacity duration-200",e(a).agreeCheckbox?"opacity-100":"opacity-0"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...o[101]||(o[101]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M5 13l4 4L19 7"},null,-1)])],2))],2),t("span",Sp,[o[102]||(o[102]=q(" I have read and agree to the website ",-1)),t("a",{href:"#",class:"text-primary hover:underline transition-colors",onClick:o[62]||(o[62]=We((...y)=>e(Xe)&&e(Xe)(...y),["prevent"]))}
9," terms and conditions"),o[103]||(o[103]=q(" * ",-1))])])]),_:1},8,["modelValue"]),h(Z,{class:"text-primary",name:"agreeCheckbox"})]),t("div",Ap,[o[105]||(o[105]=t("a",{href:"/cart",class:"text-primary"},"« Return to cart",-1)),e(E)?(s(),u("div",kp,[h(R,{"order-data":e(vt),"wait-for-paypal":e(ye).$waitForPaypal,"create-paypal-order":e(et),"on-validate-all-form":e(_e),onSuccess:e(tt),onError:e(L)},null,8,["order-data","wait-for-paypal","create-paypal-order","on-validate-all-form","onSuccess","onError"])])):A("",!0),S(t("div",null,[t("button",{type:"button",class:w(["bg-primary rounded-sm text-white text-lg py-4 px-8 leading-none font-bold",{"opacity-50 ":e(Re)}]),disabled:e(Re),onClick:o[64]||(o[64]=(...y)=>e(at)&&e(at)(...y))},[o[104]||(o[104]=t("span",null," Complete Order ",-1)),S(h($e,{name:"svg-spinners:180-ring"},null,512),[[re,e(Re)]])],10,Tp)],512),[[re,e(z)]])]),e(x).isLogin?A("",!0):(s(),u("p",Ep," This site is protected by reCAPTCHA. ")),o[108]||(o[108]=t("hr",{class:"mb-5 mt-3"},null,-1)),o[109]||(o[109]=t("p",{class:"text-sm"},"Copyright © 2026, Skytech Gaming. All rights reserved.",-1))])])]),t("div",null,[t("div",Pp,[o[121]||(o[121]=t("div",{class:"flex justify-center lg:hidden relative z-1 mb-6 p-6 pb-0"},[t("a",{title:"Skytech Gaming",href:"/",class:"block h-16.5"},[t("img",{width:"200",height:"66",src:"https://skytechai.s3.us-west-002.backblazeb2.com/8wmbyegt2dtwszblav91ouzgo0ov_logo-skytech-FULLCOLOR-lightwebpwebp.webp",alt:"Skytech Gaming Logo",class:"h-full"})])],-1)),t("div",Np,[t("a",{href:"#",class:"lg:hidden flex justify-between items-center hover:text-black text-primary py-6 hover:underline",onClick:o[65]||(o[65]=We(y=>be.value=!e(be),["prevent"]))},[t("div",Op,[h($e,{class:"text-2xl mr-2",name:"material-symbols:shopping-cart-outline"}),e(be)?(s(),u("p",Ip,[o[111]||(o[111]=q(" Show order summary ",-1)),h($e,{name:"ic:baseline-keyboard-arrow-down"})])):(s(),u("p",Dp,[o[112]||(o[112]=q(" Hide order summary ",-1)),h($e,{name:"ic:baseline-keyboard-arrow-up"})]))]),t("div",null,[t("p",Up,T(("toCurrency"in X?X.toCurrency:e(J))(e(C).cartTotalCost)),1)])]),t("div",{class:w(["lg:pt-20",{"hidden lg:block":e(be)}])},[h(b)],2),t("div",{class:w(["flex",{"hidden lg:flex":e(be)}])},[t("div",Rp,[h(W,{modelValue:e(a).promoCode,"onUpdate:modelValue":o[68]||(o[68]=y=>e(a).promoCode=y),name:"promoCode","validate-on-change":!0},{default:N(()=>[t("div",$p,[S(t("input",{id:"promoCode","onUpdate:modelValue":o[66]||(o[66]=y=>e(a).promoCode=y),type:"text",class:w(["w-full py-3 px-4 bg-white border border-gray-300 rounded-lg text-sm text-gray-900 placeholder-gray-400 focus:outline-hidden transition-colors",ot(ae.promoCode)]),placeholder:"Enter Promo Code",onKeyup:o[67]||(o[67]=gt(()=>{e(a).promoCode!==""&&e(rt)()},["enter"]))},null,34),[[B,e(a).promoCode,void 0,{trim:!0}]])])]),_:2},1032,["modelValue"])]),t("button",{type:"button",class:"bg-gray-600 hover:bg-red-600 text-white font-bold text-sm rounded-lg px-5 py-3 transition-colors ml-2 w-2/5 flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed",disabled:e(ut)||e(a).promoCode==="",onClick:o[69]||(o[69]=y=>e(rt)())},[o[113]||(o[113]=t("span",null," Apply ",-1)),S(t("div",Lp,[h($e,{class:"text-2xl",name:"svg-spinners:90-ring-with-bg"})],512),[[re,e(ut)]])],8,Vp)],2),e(j)?(s(),u(H,{key:0},[t("p",null,"[couponPrice]: "+T(e(i).couponPrice),1),t("p",null,"[couponDiscount]: "+T(e(i).couponDiscount),1),t("p",null,"[couponCodesTemp]: "+T(e(i).couponCodesTemp),1),t("p",null,[q(" [couponStore.couponMsg]: "+T(e(i).couponMsg)+" ",1),o[114]||(o[114]=t("br",null,null,-1)),q(" "+T(e(i).couponMsg),1)])],64)):A("",!0),e(i).couponMsg.message!=="Coupon code(s) accepted."&&e(i).couponMsg.message!==""?(s(),u("ul",{key:1,class:w(["list-disc pl-4",{"text-primary":e(i).couponMsg.type==="success","text-red-600":e(i).couponMsg.type==="error"}])},[t("li",null,[t("p",Mp,T(e(i).couponMsg.message),1)])],2)):A("",!0),e(j)?(s(),u("p",Fp,"[warningMessages]")):A("",!0),e(i).warningMessages?(s(),u("ul",Bp,[(s(!0),u(H,null,le(e(i).warningMessages,y=>(s(),u("li",{key:y,class:"flex"},[t("p",zp,T(y),1)]))),128))])):A("",!0),t("div",{class:w(["mt-10",{"hidden lg:block":e(be)}])},[t("div",jp,[o[115]||(o[115]=t("span",null,"Subtotal",-1)),t("span",null,T(("toCurrency"in X?X.toCurrency:e(J))(e(C).originSubTotal)),1)]),e(i).appliedCoupons.length?(s(),u("div",Hp,[o[117]||(o[117]=t("p",{class:"text-sm text-gray-500 mb-1"},"Coupon(s):",-1)),t("div",qp,[(s(!0),u(H,null,le(e(i).appliedCoupons,y=>(s(),u("div",{key:y.code,class:"flex justify-between"},[t("p",Gp,[q(T(y.code)+" ",1),o[116]||(o[116]=t("span",null,null,-1))]),t("p",Yp,[t("span",Wp," -"+T(("toCurrency"in X?X.toCurrency:e(J))(y.discount)),1),t("button",{class:"text-sky-600",type:"button",onClick:()=>
9{e(i).removeThisCoupon(y.code)}}," [Remove] ",8,Zp)])]))),128))])])):A("",!0),t("div",Qp,[o[118]||(o[118]=t("span",null,"Shipping",-1)),t("span",{class:w({"text-red-600 font-bold":e(C).shippingCost===0})},T(e(C).shippingCost===0?"Free!":("toCurrency"in X?X.toCurrency:e(J))(e(C).shippingCost)),3)]),t("div",Kp,[o[119]||(o[119]=t("span",null,"Tax",-1)),t("span",null,T(("toCurrency"in X?X.toCurrency:e(J))(e(C).taxCost)),1)]),t("div",Jp,[o[120]||(o[120]=t("span",null,"Total",-1)),t("span",null,T(("toCurrency"in X?X.toCurrency:e(J))(e(C).cartTotalCost)),1)]),e(Ke).upSellProduct.id?(s(),u("div",Xp,[h(mt,{"form-data":e(a),onSuccess:e(He)},null,8,["form-data","onSuccess"])])):A("",!0),h(V)],2)])])])])]),_:1},8,["validation-schema","onInvalidSubmit"]),h(Q,{visible:e(Ce),"coupon-code":e(qe)?.coupon_code??"","discount-value":e(qe)?.discount_value??"","value-unit-display":e(qe)?.value_unit_display??"",onClose:o[71]||(o[71]=ae=>Ce.value=!1)},null,8,["visible","coupon-code","discount-value","value-unit-display"])],2)}}},tm=Le(em,[["__scopeId","data-v-e999da13"]]),jm={__name:"checkout",setup(r){Ur({noChrome:!0});const{version:d}=br();return(m,n)=>e(d)==="v2"?(s(),pe(tm,{key:0})):(s(),pe(iu,{key:1}))}};export{jm 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.