1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f748-95cc-7d63-9a6b-537674836e1f")}catch(e){}}();import{tt as e,y as t}from"./eZUKM4KC.js";import{r as n}from"./CCsN0GcX.js";import{c as r,t as i}from"./BBA8QOMw.js";import{n as a}from"./CJUA_eql.js";import{t as o}from"./CNs_Ozdc.js";import{a as s,i as c,n as l,o as u,r as d,t as f}from"./OrB4jGlC.js";function p(){let t=d(),r=f();e(()=>{r.dispose()});let i=(e,n)=>{t.selectPriceTier(e,n),r.isElementCreated.value&&r.teardownPaymentElement()},a=e=>{t.onCustomAmountInput(e),r.isElementCreated.value&&r.teardownPaymentElement()},o=async()=>{if(!t.isAmountValid.value)return;let{origin:e}=n();await r.proceedToPayment(t.effectiveAmountCents.value,t.recipientEmail.value,t.senderEmail.value,`${e}/gift-card-store`)},s=async()=>{await r.confirmPayment(t.senderEmail.value,t.recipientEmail.value)};return{...t,...r,selectPriceTier:i,onCustomAmountInput:a,proceedToPayment:o,confirmPayment:s}}var m=i({name:`GiftCardStorePage`,setup(){let{t:e}=a();o({layout:`minimal`,minimalLogoTarget:`store`,minimalShowSignOut:!1}),r({title:e(`gift_card_store.title`)});let{isConfirmed:t,isPolling:n,pollError:i,isElementCreated:s,isPaymentLoading:c,isPaymentReady:l,isConfirming:u,paymentError:d,orderError:f,confirmedAmountCents:m,confirmedRecipientEmail:h,selectPriceTier:g,onCustomAmountInput:_,proceedToPayment:v,teardownPaymentElement:y,confirmPayment:b,attachPaymentElement:x,detachPaymentElement:S,resetCheckoutState:C,retryPolling:w}=p();return{isConfirmed:t,isPolling:n,pollError:i,isElementCreated:s,isPaymentLoading:c,isPaymentReady:l,isConfirming:u,paymentError:d,orderError:f,confirmedAmountCents:m,confirmedRecipientEmail:h,selectPriceTier:g,onCustomAmountInput:_,proceedToPayment:v,teardownPaymentElement:y,confirmPayment:b,attachPaymentElement:x,detachPaymentElement:S,resetCheckoutState:C,retryPolling:w}},render(){let e=this.isConfirmed?t(u,{confirmedAmountCents:this.confirmedAmountCents,confirmedRecipientEmail:this.confirmedRecipientEmail},null):this.isPolling||this.pollError?t(c,{isPolling:this.isPolling,pollError:this.pollError,onResetCheckoutState:this.resetCheckoutState,onRetryPolling:this.retryPolling},null):this.isElementCreated||this.isPaymentLoading?t(s,{attachPaymentElement:this.attachPaymentElement,confirmedAmountCents:this.confirmedAmountCents,confirmedRecipientEmail:this.confirmedRecipientEmail,detachPaymentElement:this.detachPaymentElement,isConfirming:this.isConfirming,isPaymentLoading:this.isPaymentLoading,isPaymentReady:this.isPaymentReady,onChangeAmount:this.teardownPaymentElement,onConfirmPayment:this.confirmPayment,orderError:this.orderError,paymentError:this.paymentError},null):t(l,{onSelectBoxType:e=>this.selectPriceTier(e.boxType,e.priceTier),onCustomAmountInput:this.onCustomAmountInput,onProceedToPayment:this.proceedToPayment},null);return t(`div`,{class:`bg-rb-lighter-gray px-4 py-8 md:py-12`},[e])}},`$_nfDrvWZDm`);export{m as default}; 2//# chunkId=01a0f748-95cc-7d63-9a6b-537674836e1f
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.