PageSourceSearch

https://www.dipseastories.com/_next/static/chunks/pages/gift/checkout-bb9c12680a769264.js

js dipseastories.com collected 2026-10-02 05:11:25 UTC 27,969 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8005],{34537:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>ef});var n=t(37876),r=t(14232),a=t(35988),o=t(28484),s=t(33494),l=t(89099),d=t(82479),c=t(78463),p=t(76551),m=t(32264),u=t(38673),h=t(28888),f=t(61902),g=t(85463),x=t(66227),y=t(58766),j=t(57698),v=t(65661),w=t(89467),C=t(12996),T=t(50803),S=t(35940);function b(){let e=(0,h._)(["\n    margin-bottom: 16px;\n  "]);return b=function(){return e},e}function E(){let e=(0,h._)(["\n    margin-bottom: 40px;\n  "]);return E=function(){return e},e}function N(){let e=(0,h._)(["\n    font-size: 20px;\n    line-height: 20px;\n  "]);return N=function(){return e},e}function k(){let e=(0,h._)(["\n    font-size: 30px;\n    line-height: 30px;\n  "]);return k=function(){return e},e}function G(){let e=(0,h._)(["\n    font-size: 40px;\n    line-height: 40px;\n  "]);return G=function(){return e},e}function P(){let e=(0,h._)(["\n    padding: 30px 22px 30px 22px;\n  "]);return P=function(){return e},e}function I(){let e=(0,h._)(["\n    font-size: 14px;\n    line-height: 18px;\n  "]);return I=function(){return e},e}function A(){let e=(0,h._)(["\n     font-size: 14px;\n    line-height: 18px;\n  "]);return A=function(){return e},e}let R={iconStyle:"solid",style:{base:{iconColor:c.T.sand,color:c.T.sand,fontWeight:500,fontFamily:"Good Sans Light, Roboto, Open Sans, Segoe UI, sans-serif",fontSize:"12px",lineHeight:"18px",fontSmoothing:"antialiased","::placeholder":{color:c.T.sand,textTransform:"capitalize"},":focus":{color:c.T.midnightBlue,"::placeholder":{color:c.T.midnightBlue}}},invalid:{iconColor:c.T.orange,color:c.T.orange}}},z=(0,o.default)(d.c$).withConfig({displayName:"HeaderText",componentId:"sc-f2fed7d3-0"})(["color:",";text-align:center;span{text-decoration:line-through;color:",";}"],c.T.sand,c.T.sand70),M=o.default.div.withConfig({displayName:"HeaderContainer",componentId:"sc-f2fed7d3-1"})(["margin-top:70px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;z-index:1;"," ",""],e=>(0,g.config)(e).media.sm(b()),e=>(0,g.config)(e).media.lg(E())),_=(0,o.default)(d.c$).withConfig({displayName:"SubHeaderText",componentId:"sc-f2fed7d3-2"})(["color:",";text-align:center;span{text-decoration:line-through;color:",";}font-size:18px;line-height:36px;font-style:italic;margin-top:12px;"," "," ",""],c.T.sand,c.T.sand70,e=>(0,g.config)(e).media.sm(N()),e=>(0,g.config)(e).media.lg(k()),e=>(0,g.config)(e).media.xl(G())),B=(o.default.a.withConfig({displayName:"GiftCTA",componentId:"sc-f2fed7d3-3"})(["z-index:1;border-radius:32px;color:",";text-transform:uppercase;font-size:12px;line-height:18px;padding:9px 0px 9px 0px;font-family:'Good Sans Bold';font-weight:700;background:transparent;border:1px solid ",";margin-top:20px;width:100%;text-align:center;flex-grow:1;cursor:pointer;",""],c.T.sand,c.T.sand,e=>e.isActive?"\n        background-color: ".concat(c.T.orange,";\n        border: 1px solid ").concat(c.T.white,";\n        color: ").concat(c.T.white,";\n\n      "):""),o.default.div.withConfig({displayName:"StepBox",componentId:"sc-f2fed7d3-4"})(["padding:30px 22px 30px 22px;border:1px solid ",";border-radius:10px;margin-bottom:32px;"," z-index:1;"],c.T.sand,e=>(0,g.config)(e).media.sm(P()))),O=o.default.div.withConfig({displayName:"MailImgContainer",componentId:"sc-f2fed7d3-5"})(["width:100%;border-radius:39px;margin-top:32px;margin-bottom:32px;img{border-radius:26px;}"]),D=o.default.div.withConfig({displayName:"GiftTextContainer",componentId:"sc-f2fed7d3-6"})(["margin-bottom:55px;"]),L=o.default.div.withConfig({displayName:"InputContainer",componentId:"sc-f2fed7d3-7"})(["position:relative;width:100%;margin-bottom:24px;"]),F=o.default.div.withConfig({displayName:"CardNameContainer",componentId:"sc-f2fed7d3-8"})(["width:100%;display:flex;justify-content:space-between;margin-bottom:24px;align-items:center;"]),H=o.default.div.withConfig({displayName:"StateContainer",componentId:"sc-f2fed7d3-9"})(["position:relative;width:25%;margin-bottom:24px;margin-right:16px;"]),U=o.default.div.withConfig({displayName:"CityContainer",componentId:"sc-f2fed7d3-10"})(["position:relative;width:50%;margin-bottom:24px;margin-right:16px;"]),W=o.default.div.withConfig({displayName:"ZipContainer",componentId:"sc-f2fed7d3-11"})(["position:relative;width:25%;margin-bottom:24px;"]),Y=e=>(0,n.jsx)(Z,{children:(0,n.jsx)(V,{role:"alert",creditCard:e.creditCard,children:e.message})}),V=o.default.p.withConfig({displayName:"ErrorMessage",componentId:"sc-f2fed7d3-12"})(["color:",";font-family:Good Sans Regular;font-size:12px;line-height:12px;"],c.T.white),Z=o.default.div.withConfig({displayName:"ErrorMessageContainer",componentId:"sc-f2fed7d3-13"})(["text-align:left;"]),X=o.default.input.withConfig({displayName:"Input",componentId:"sc-f2fed7d3-14"})(["border:1px solid ",";border-radius:8px;box-sizing:border-box;color:",';font-family:"Good Sans Light";font-style:normal;font-weight:normal;font-size:12px;line-height:150%;padding:10px 0px 10px 12px;width:100%;background:transparent;::placeholder{color:',";}&:focus{background:",";outline:none;color:",";::placeholder{color:",";}}"," ",""],c.T.sand,c.T.sand,c.T.sand,c.T.white,c.T.midnightBlue,c.T.midnightBlue,e=>e.valid?"":"\n          border: 1px solid ".concat(c.T.orange,";\n        "),e=>e.styles||""),q=o.default.div.withConfig({displayName:"CityStateZipContainer",componentId:"sc-f2fed7d3-15"})(["display:flex;"]),K=o.default.div.withConfig({displayName:"LoadingButtonStyle",componentId:"sc-f2fed7d3-16"})(["align-items:center;background-color:rgba(236,60,9,0.5);display:flex;height:40px;justify-content:center;margin-top:32px;width:100%;border-radius:32px;p{color:white;font-family:'Good Sans Regular';line-height:40px;font-size:12px;font-weight:800;letter-spacing:0.5px;text-transform:uppercase;}"]),$=o.default.div.withConfig({displayName:"DisabledButtonStyle",componentId:"sc-f2fed7d3-17"})(["align-items:center;background-color:rgba(236,60,9,0.8);display:flex;height:40px;justify-content:center;margin-top:32px;width:100%;border-radius:32px;.required-text{color:red;font-family:'Good Sans Regular';font-size:12px;font-weight:800;letter-spacing:0.5px;text-transform:uppercase;}p{color:white;font-family:'Good Sans Regular';font-size:12px;font-weight:800;line-height:40px;letter-spacing:0.5px;text-transform:uppercase;}"]),Q=o.default.button.withConfig({displayName:"SubmitButtonStyle",componentId:"sc-f2fed7d3-18"})(["border:none;color:white;background-color:#ec3c09;flex:1;font-family:'Good Sans Regular';font-size:12px;font-weight:800;height:40px;letter-spacing:0.5px;margin-top:32px;line-height:40px;text-transform:uppercase;width:100%;cursor:pointer;outline:none;border-radius:32px;"]),J=e=>e.purchasingGift?(0,n.jsx)(K,{children:(0,n.jsx)("p",{children:"PROCESSING"})}):e.disabled?(0,n.jsx)("div",{children:(0,n.jsx)($,{children:(0,n.jsx)("p",{children:"SUBMIT ORDER"})})}):(0,n.jsx)(Q,{children:"SUBMIT ORDER"}),ee=o.default.div.withConfig({displayName:"CircularCheckBoxContainer",componentId:"sc-f2fed7d3-19"})(["display:flex;color:",";margin-top:20px;"],c.T.sand),ei=o.default.div.withConfig({displayName:"OrderSummaryBodyText",componentId:"sc-f2fed7d3-20"})(["flex-grow:1;text-align:left;font-family:'Good Sans Regular';font-size:12px;line-height:18px;color:",";"," ",""],e=>e.color||c.T.sand,e=>(0,g.config)(e).media.lg(I()),e=>e.isRed&&"color: rgb(236,60,9); font-weight: bold;"),et=o.default.div.withConfig({displayName:"OrderSummaryPriceText",componentId:"sc-f2fed7d3-21"})(["font-family:'Good Sans Regular';font-weight:bold;text-align:right;min-width:75px;color:",";margin:0;font-size:12px;line-height:18px;"," "," ",""],e=>e.color||c.T.sand,e=>(0,g.config)(e).media.lg(A()),e=>e.isStrikethough&&"\n    text-decoration: line-through;\n  ",e=>e.isRed&&"\n    color: rgb(236,60,9);\n  "),en=o.default.div.withConfig({displayName:"OrderSummaryRow",componentId:"sc-f2fed7d3-22"})(["display:flex;margin-bottom:20px;"]),er=o.default.div.withConfig({displayName:"SectionTitle",componentId:"sc-f2fed7d3-23"})(["margin-top:8px;margin-bottom:20px;"]),ea=o.default.div.withConfig({displayName:"StripeElementsContainer",componentId:"sc-f2fed7d3-24"})(['div.StripeElement{font-family:"Good Sans Light";font-style:normal;font-weight:normal;font-size:12px;line-height:150%;border:1px solid ',";border-radius:7px;padding:10px 0 10px 12px;overflow:hidden;}div.StripeElement--focus{background-color:",";}.StripeElement--invalid{background-color:",";}.StripeElement--webkit-autofill{background-color:",";}"],c.T.sand,c.T.white,c.T.white,c.T.white),eo=o.default.div.withConfig({displayName:"PromoCodeContainer",componentId:"sc-f2fed7d3-25"})(["margin:32px 0;"]),es=o.default.div.withConfig({displayName:"TermsContainer",componentId:"sc-f2fed7d3-26"})(["margin:32px 0;"]),el=o.default.p.withConfig({displayName:"TermsText",componentId:"sc-f2fed7d3-27"})(["color:",";font-family:'Good Sans Regular';font-size:14px;letter-spacing:0;line-height:21px;text-align:center;"],c.T.sand),ed=o.default.a.withConfig({displayName:"StyledLink",componentId:"sc-f2fed7d3-28"})(["color:",";font-family:'Good Sans Regular';font-size:14px;letter-spacing:0;line-height:21px;text-align:center;font-weight:bold;text-decoration:underline;border:1px solid :read-only;:link{color:",";}:visited{color:",";}:hover{color:",";}:active{color:",";}"],c.T.sand,c.T.sand,c.T.sand,c.T.sand,c.T.sand);var ec=t(42222);let ep=(0,a.Ng)((e,i)=>({...i,subscriptionText:e.subscriptionText,featurePrideGift:e.featurePrideGift}),e=>({setPlanLength:i=>e((0,ec.WK)(i,!1,!0))}))(function(e){var i;let t=(0,f.useStripe)(),a=(0,f.useElements)(),[o,s]=r.useState(C.ej.ANNUAL);r.useEffect(()=>{if(!T.S$){var i;if(((null==(i=window.location)?void 0:i.search)||"").includes("length=six"))return e.setPlanLength(C.ej.SIX_MONTHS),s(C.ej.SIX_MONTHS)}e.setPlanLength(C.ej.ANNUAL),s(C.ej.ANNUAL)},[]);let[l,p]=r.useState(!1),[m,u]=r.useState(),[h,b]=r.useState(),[E,N]=r.useState(),[k,G]=r.useState(),[P,I]=r.useState(),[A,V]=r.useState(),[Z,K]=r.useState(!1),[$,Q]=r.useState(),[ec,ep]=r.useState(),[em,eu]=r.useState(),[eh,ef]=r.useState(),[eg,ex]=r.useState(),[ey,ej]=r.useState(),[ev,ew]=r.useState(),[eC,eT]=r.useState(),[eS,eb]=r.useState(),[eE,eN]=r.useState(),[ek,eG]=r.useState(),[eP,eI]=r.useState(),[eA,eR]=r.useState(),[ez,eM]=r.useState(),[e_,eB]=r.useState(),[eO,eD]=r.useState(),[eL,eF]=r.useState(),[eH,eU]=r.useState(),[eW,eY]=r.useState(),[eV,eZ]=r.useState(),[eX,eq]=r.useState(),[eK,e$]=r.useState(!1),eQ={mailGift:l,purchaserName:m,purchaserEmail:E,confirmPurchaserEmail:P,sendToSelf:Z,recipientEmail:$,confirmRecipientEmail:em,recipientName:eg,address1:ev,address2:eS,city:eE,state:eP,zipCode:ez,cardTo:eO,cardFrom:eH,nameOnCard:eV,subscriptionGiftType:o},eJ=e=>!!e&&e.length>0,e0=e=>!e,e2="",e1="1 Year of Access",e3="".concat(S.Yr," USD");if(e.subscriptionText.plan===C.ej.SIX_MONTHS&&(e1="6 Months of Access",e3="".concat(S.Z5," USD")),e.subscriptionText&&e.subscriptionText.promoHeaderText){let i=e.subscriptionText.promoHeaderText[0],t=e.subscriptionText.promoHeaderText[1];e2="".concat(i," ").concat(t?"<span>".concat(t,"</span>"):"")}let e7=d.kp["gifting-desktop-email_2x.png"],e4=d.kp["gifting-mobile-email_2x.png"];return e.featurePrideGift&&(e7=d.kp.giftEmailPrideMobile,e4=d.kp.giftEmailPrideDeskop),(0,n.jsxs)(g.Container,{children:[(0,n.jsx)(g.Row,{children:(0,n.jsx)(g.Col,{children:(0,n.jsxs)(M,{children:[(0,n.jsx)(z,{dangerouslySetInnerHTML:{__html:e2}}),(0,n.jsx)(_,{children:"(\uD83D\uDE09yeah, seriously)"})]})})}),null,(0,n.jsx)(g.Row,{children:(0,n.jsx)(g.Col,{align:"center",xs:4,sm:8,md:6,lg:12,xl:10,offset:{xl:1,lg:0,sm:0,md:1,xs:0},children:(0,n.jsxs)("div",{style:{zIndex:1,width:"100%"},children:[l?(0,n.jsxs)(O,{children:[(0,n.jsx)(g.Hidden,{xs:!0,sm:!0,md:!0,lg:!1,xl:!1,children:(0,n.jsx)(w.D,{loader:v.I,src:d.kp["gifting-desktop-mail_2x.png"],alt:"Dipsea | Gift by Mail",width:2188,height:1134})}),(0,n.jsx)(g.Hidden,{xs:!1,sm:!1,md:!1,lg:!0,xl:!0,children:(0,n.jsx)(w.D,{loader:v.I,src:d.kp["gifting-mobile-mail_2x.png"],alt:"Dipsea | Gift by Mail",width:932,he
1ight:480})})]}):(0,n.jsxs)(O,{children:[(0,n.jsx)(g.Hidden,{xs:!0,sm:!0,md:!0,lg:!1,xl:!1,children:(0,n.jsx)(w.D,{loader:v.I,src:e7,alt:"Dipsea | Gift by Email",width:2188,height:1134})}),(0,n.jsx)(g.Hidden,{xs:!1,sm:!1,md:!1,lg:!0,xl:!0,children:(0,n.jsx)(w.D,{loader:v.I,src:e4,alt:"Dipsea | Gift by Email",width:932,height:480})})]}),(0,n.jsx)(D,{children:l?(0,n.jsx)(d.yV,{color:c.T.sand,textAlign:"center",children:"Dipsea's limited edition signature gift with easy instructions on how to unlock unlimited access to hundreds of sexy stories and wellness sessions. It can be mailed directly to your recipient, or to your doorstep."}):(0,n.jsx)(d.yV,{color:c.T.sand,textAlign:"center",children:"An email with a gift code will be sent directly to your lucky recipient. Want to hand-deliver? You can email to yourself to print at home, too."})})]})})}),(0,n.jsx)(d.lV,{id:"checkoutForm",onSubmit:i=>{i.preventDefault();let n=null==a?void 0:a.getElement(f.CardElement);if(!n)return void console.error("Card element not available");let r={};Object.keys(eQ).forEach(e=>{void 0!==eQ[e]&&(r[e]=eQ[e])}),eV&&e.completeOrder(r,eV,t,n)},children:(0,n.jsxs)(g.Row,{children:[(0,n.jsxs)(g.Col,{xl:5,lg:6,xs:4,md:6,offset:{md:1,lg:0,xl:1},children:[(0,n.jsxs)(B,{children:[(0,n.jsx)(d.kw,{fontSize:"14px",color:c.T.sand,children:"STEP 1"}),(0,n.jsx)(er,{children:(0,n.jsx)(d.WT,{color:c.T.sand,children:"Your information"})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{name:"purchaserName",placeholder:"Your Full Name","aria-label":"Your Full Name",autocomplete:"name",value:m,onBlur:()=>{m&&0!==m.length||b("Missing your full name")},onChange:e=>{u(e.target.value),b(void 0)},valid:!h}),h&&(0,n.jsx)(Y,{message:h})]}),(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{name:"purchaserEmail",placeholder:"Your Email","aria-label":"Your Email",autocomplete:"email",value:E,onBlur:()=>{(0,x.x)(E)||G("Your email is not valid")},onChange:e=>{N(e.target.value),G(void 0)},valid:!k}),k&&(0,n.jsx)(Y,{message:k})]}),(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{name:"confirm-your-email",placeholder:"Confirm Your Email","aria-label":"Confirm Your Email",autocomplete:"email",value:P,onBlur:()=>{E&&P&&E.toLowerCase()===P.toLowerCase()||V("Your emails do not match")},onChange:e=>{I(e.target.value),V(void 0)},valid:!A}),A&&(0,n.jsx)(Y,{message:A})]})]})]}),l&&(0,n.jsxs)(B,{children:[(0,n.jsx)(d.kw,{color:c.T.sand,children:"STEP 2"}),(0,n.jsx)(er,{children:(0,n.jsx)(d.WT,{color:c.T.sand,children:"Shipping information"})}),(0,n.jsxs)(d.kw,{color:c.T.sand,styles:"margin-bottom: 32px;",children:["Shipping in the continental US only.",(0,n.jsx)("br",{}),"Estimated shipping time: 2 weeks."]}),(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{name:"recipientName",placeholder:"Recipient's Full Name","aria-label":"Recipient's Full Name",value:eg,onChange:e=>{ex(e.target.value),ej(void 0)},valid:!ey}),ey&&(0,n.jsx)(Y,{message:ey})]}),(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{name:"address1",placeholder:"Street Address","aria-label":"Street Address",autocomplete:"address-line-1",value:ev,onChange:e=>{ew(e.target.value),eT(void 0)},valid:!eC}),eC&&(0,n.jsx)(Y,{message:eC})]}),(0,n.jsx)(L,{children:(0,n.jsx)(X,{name:"address2",placeholder:"Street Address 2","aria-label":"Street Address 2",autocomplete:"address-line-2",value:eS,onChange:e=>{eb(e.target.value)},valid:!0})}),(0,n.jsxs)(q,{children:[(0,n.jsxs)(U,{children:[(0,n.jsx)(X,{name:"city",placeholder:"City","aria-label":"City",autocomplete:"city",value:eE,onChange:e=>{eN(e.target.value),eG(void 0)},valid:!ek}),ek&&(0,n.jsx)(Y,{message:ek})]}),(0,n.jsxs)(H,{children:[(0,n.jsx)(X,{name:"state",placeholder:"State","aria-label":"State",autocomplete:"address-level1",value:eP,onChange:e=>{eI(e.target.value),eR(void 0)},valid:!eA}),eA&&(0,n.jsx)(Y,{message:eA})]}),(0,n.jsxs)(W,{children:[(0,n.jsx)(X,{name:"zipCode",placeholder:"Zip","aria-label":"Zip Code",autocomplete:"postal-code",value:ez,onChange:e=>{eM(e.target.value),eB(void 0)},valid:!e_}),e_&&(0,n.jsx)(Y,{message:e_})]})]})]}),l&&(0,n.jsxs)(B,{children:[(0,n.jsx)(d.kw,{color:c.T.sand,children:"STEP 3"}),(0,n.jsx)(d.WT,{color:c.T.sand,styles:"margin-top: 8px;",children:"Recipient’s information for card"}),(0,n.jsx)(ee,{children:(0,n.jsx)(d.oV,{theme:c.T.sand,text:"Send to Myself",onChange:()=>{K(!Z),eD(void 0),eF(void 0),eU(void 0),eY(void 0)}})}),!Z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F,{children:[(0,n.jsx)(d.kw,{color:c.T.sand,styles:"min-width: 55px;",children:"TO:"})," ",(0,n.jsx)(X,{name:"card-to",placeholder:"Recipient's Name","aria-label":"Recipient's Name",value:eO,onCh
1ange:e=>{eD(e.target.value),eF(void 0)},valid:!eL,styles:"width: 90%; margin-left: 10px;"}),eL&&(0,n.jsx)(Y,{message:eL})]}),(0,n.jsxs)(F,{children:[(0,n.jsx)(d.kw,{color:c.T.sand,styles:"min-width: 55px;",children:"FROM:"}),(0,n.jsx)(X,{name:"card-from",placeholder:"Your Name","aria-label":"Your Name",value:eH,onChange:e=>{eU(e.target.value),eY(void 0)},valid:!eW,styles:"width: 90%; margin-left: 10px;"}),eW&&(0,n.jsx)(Y,{message:eW})]})]})]}),!l&&(0,n.jsxs)(B,{children:[(0,n.jsx)(d.kw,{fontSize:"14px",color:c.T.sand,children:"STEP 2"}),(0,n.jsx)(d.WT,{color:c.T.sand,styles:"margin-top: 8px;",children:"Recipient's information"}),(0,n.jsxs)("div",{children:[(0,n.jsx)(ee,{children:(0,n.jsx)(d.oV,{text:"Send to Myself",onChange:()=>{K(!Z),eD(void 0),eF(void 0),eU(void 0),eY(void 0)}})}),!Z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{name:"recipientName",placeholder:"Recipient Full Name","aria-label":"Recipient Full Name",value:eg,onBlur:()=>{eg&&0!==eg.length||b("Missing recipient name")},onChange:e=>{ex(e.target.value),ej(void 0)},valid:!ey}),ey&&(0,n.jsx)(Y,{message:ey})]}),(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{name:"recipientEmail",placeholder:"Recipient Email","aria-label":"Recipient Email",value:$,onBlur:()=>{(0,x.x)($)?ep(void 0):ep("Email is not valid")},onChange:e=>{Q(e.target.value),ep(void 0)},valid:!ec}),ec&&(0,n.jsx)(Y,{message:ec})]}),(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{name:"confirm-recipient-email",placeholder:"Confirm Recipient Email","aria-label":"Confirm Recipient Email",value:em,onBlur:()=>{$&&em&&$.toLowerCase()===em.toLowerCase()?ef(void 0):ef("Emails do not match")},onChange:e=>{eu(e.target.value),ef(void 0)},valid:!eh}),eh&&(0,n.jsx)(Y,{message:eh})]})]})]})]})]}),(0,n.jsx)(g.Col,{xl:5,xs:4,md:6,lg:6,offset:{md:1,lg:0},children:(0,n.jsxs)(B,{children:[(0,n.jsx)(d.kw,{color:c.T.sand,children:l?"STEP 4":"STEP 3"}),(0,n.jsx)(er,{children:(0,n.jsx)(d.WT,{color:c.T.sand,children:"Complete order"})}),(0,n.jsxs)(en,{bottomBorder:!0,children:[(0,n.jsx)(ei,{children:e1}),(0,n.jsx)(et,{isStrikethough:!!e.newPrice,children:e3})]}),e.newPrice&&(0,n.jsxs)(en,{bottomBorder:!0,children:[(0,n.jsx)(ei,{color:c.T.tintOrange,children:e.promoText}),(0,n.jsxs)(et,{color:c.T.tintOrange,children:[e.newPrice," USD"]})]}),(0,n.jsx)(eo,{children:(0,n.jsx)(y.A,{theme:"sand",isGift:!0})}),(0,n.jsxs)(L,{children:[(0,n.jsx)(X,{className:"checkout-name-on-card",name:"name-on-card",placeholder:"Name on Credit Card","aria-label":"Name on Credit Card",value:eV,onChange:e=>{eZ(e.target.value),eq(void 0)},onBlur:e=>{eV||eq("Missing Name")},valid:!eX}),eX&&(0,n.jsx)(Y,{message:eX})]}),(0,n.jsx)(L,{children:(0,n.jsx)(ea,{children:(0,n.jsx)(f.CardElement,{options:R,onChange:e=>e$(e.complete)})})}),(0,n.jsx)(J,{disabled:!((i={mailGift:l,purchaserName:m,purchaserNameError:h,purchaserEmail:E,purchaserEmailError:k,confirmPurchaserEmail:P,confirmPurchaserEmailError:A,sendToSelf:Z,recipientEmail:$,recipientEmailError:ec,confirmRecipientEmail:em,confirmRecipientEmailError:eh,recipientName:eg,recipientNameError:ey,address1:ev,address1Error:eC,address2:eS,city:eE,cityError:ek,state:eP,stateError:eA,zipCode:ez,zipCodeError:e_,cardTo:eO,cardToError:eL,cardFrom:eH,cardFromError:eW,nameOnCard:eV}).mailGift||i.sendToSelf?!i.mailGift&&i.sendToSelf?eJ(i.purchaserName)&&e0(i.purchaserNameError)&&eJ(i.purchaserEmail)&&e0(i.purchaserEmailError)&&eJ(i.confirmPurchaserEmail)&&e0(i.confirmPurchaserEmailError)&&eJ(i.nameOnCard)&&e0(i.nameOnCardError)&&eK:i.mailGift&&!i.sendToSelf?eJ(i.purchaserName)&&e0(i.purchaserNameError)&&eJ(i.purchaserEmail)&&e0(i.purchaserEmailError)&&eJ(i.confirmPurchaserEmail)&&e0(i.confirmPurchaserEmailError)&&eJ(i.nameOnCard)&&e0(i.nameOnCardError)&&eJ(eg)&&e0(ey)&&eJ(ev)&&e0(eC)&&eJ(eE)&&e0(ek)&&eJ(eP)&&e0(eA)&&eJ(ez)&&e0(e_)&&eJ(eO)&&e0(eL)&&eJ(eH)&&e0(eW)&&eK:!!i.mailGift&&!!i.sendToSelf&&eJ(i.purchaserName)&&e0(i.purchaserNameError)&&eJ(i.purchaserEmail)&&e0(i.purchaserEmailError)&&eJ(i.confirmPurchaserEmail)&&e0(i.confirmPurchaserEmailError)&&eJ(i.nameOnCard)&&e0(i.nameOnCardError)&&eJ(eg)&&e0(ey)&&eJ(ev)&&e0(eC)&&eJ(eE)&&e0(ek)&&eJ(eP)&&e0(eA)&&eJ(ez)&&e0(e_)&&eK:eJ(i.purchaserName)&&e0(i.purchaserNameError)&&eJ(i.purchaserEmail)&&e0(i.purchaserEmailError)&&eJ(i.confirmPurchaserEmail)&&e0(i.confirmPurchaserEmailError)&&eJ(i.recipientName)&&e0(i.recipientNameError)&&eJ(i.recipientEmail)&&e0(i.recipientEmailError)&&eJ(i.confirmRecipientEmail)&&e0(i.confirmRecipientEmailError)&&eJ(i.nameOnCard)&&e0(i.nameOnCardError)&&eK),purchasingGift:e.purchasingGift}),(0,n.jsx)(es,{children:(0,n.jsxs)(el,{children:["By purchasing a gift, you agree to Dipsea's ",(0,n.jsx)(ed,{href:"/terms",target:"_blank",rel:"noopener noreferrer",children:"Terms & Conditions"})]})}),(0,n.jsx)(j.A,{color:c.T.sand,textAlign:"center"})]})})]})})]})});var em=t(22427),eu=t(47490),eh=t(54407);let ef=(0,l.withRouter)((0,a.Ng)(e=>{var i,t,n,r;return{purchasingGift:e.purchasingGift,giftCode:e.giftCode,purchasingGiftErrorMessage:e.purchasingGiftErrorMessage,newPrice:(null==(i=e.subscriptionText)?void 0:i.promoText)&&!(null==(t=e.subscriptionText)?void 0:t.promoError)?(e.subscriptionText||{}).price:void 0,promoText:(null==(n=e.subscriptionText)?void 0:n.promoText)&&!(null==(r=e.subscriptionText)?void 0:r.promoError)?(e.subscriptionText||{}).promoText:void 0,featureValentinesGift:e.featureValentinesGift,featurePrideGift:e.featurePrideGift}},e=>({completeOrder:(i,t,n,r)=>e((0,u.oW)(i,t,n,r))}))(function(e){let[i,t]=r.useState(null),[a,o]=r.useState(!1);r.useEffect(()=>{o(!0);let e=(0,T.KJ)().STRIPE_KEY;e&&(0,em.c)(e).then(e=>{t(e)}).catch(e=>{console.error("Failed to load Stripe:",e),window.Bugsnag&&window.Bugsnag.notify(e,e=>{e.addMetadata("context",{component:"GiftCheckout",action:"loadStripe"})})})},[]);let l="Dipsea | The Perfectly Sexy Gift";return e.featurePrideGift?l="Dipsea | The Perfectly Sexy Gift For Pride":e.featureValentinesGift&&(l="Dipsea | The Perfectly Sexy Valentines Day Gift"),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eg,{children:(0,n.jsx)(eh.A,{quadrant:1,gradientColor:c.T.midnightBlue,gradientPosition:"bottom",parallax:!0})}),(0,n.jsx)(s.A,{title:l,description:"Gift a loved one a year of sexy audio stories, intimate wellness sessions, and sleep scenes."}),(0,n.jsx)(d.zy,{backgroundColor:c.T.midnightBlue}),(0,n.jsx)(p.A,{backgroundColor:c.T.midnightBlue95,isAssetLoaded:!0}),(0,n.jsx)(eu.A,{backgroundColor:c.T.midnightBlue95,isAssetLoaded:!0}),a?i?(0,n.jsx)(f.Elements,{stripe:i,children:(0,n.jsx)(ep,{purchasingGift:e.purchasingGift,completeOrder:e.completeOrder,purchasingGiftErrorMessage:e.purchasingGiftErrorMessage,giftCode:e.giftCode,newPrice:e.newPrice,promoText:e.promoText})}):(0,n.jsxs)("div",{style:{padding:"40px",textAlign:"center",color:c.T.
1white},children:[(0,n.jsx)("h2",{children:"Payment processing is temporarily unavailable"}),(0,n.jsx)("p",{children:"Please try again later or contact support."})]}):(0,n.jsx)("div",{style:{padding:"40px",textAlign:"center",color:c.T.white},children:(0,n.jsx)("h2",{children:"Loading payment form..."})}),(0,n.jsx)(m.A,{backgroundColor:c.T.midnightBlue})]})})),eg=o.default.div.withConfig({displayName:"Container",componentId:"sc-78516b8d-0"})(["height:100vh;left:0;position:absolute;top:0;width:100%;"])},38673:(e,i,t)=>{"use strict";t.d(i,{oW:()=>x,yM:()=>f});var n=t(87087);async function r(e){if(e)return(0,n._V)("/giftCardCodes/".concat(e))}async function a(e,i){return(0,n.F7)("/users/".concat(e),{isSubscribed:!0,redeemed:{code:i,timestamp:Date.now()}})}let o={purchaserName:"Missing purchaser name",purchaserEmail:"Missing purchaser email",recipientName:"Missing recipient name",recipientEmail:"Missing recipient email",address1:"Missing address1",city:"Missing city",state:"Missing state",zipCode:"Missing zipcode",cardTo:"Missing card to name",cardFrom:"Missing card from name"};async function s(e){if(!e.token)throw Error("No token for gift purchase");return["purchaserName","purchaserEmail"].forEach(i=>{if(!e[i])throw Error(o[i])}),e.mailGift&&!e.sendToSelf&&["recipientName","address1","city","state","zipCode","cardTo","cardFrom"].forEach(i=>{if(!e[i])throw Error(o[i])}),e.mailGift&&e.sendToSelf&&["recipientName","address1","city","state","zipCode"].forEach(i=>{if(!e[i])throw Error(o[i])}),e.mailGift||e.sendToSelf||["recipientName","recipientEmail"].forEach(i=>{if(!e[i])throw Error(o[i])}),e.paymentSource&&e.quantity||(e.paymentSource=e.token,e.quantity=1),await (0,n.EV)("/giftCardPurchases/",e)}var l=t(62797),d=t(16202),c=t(48280),p=t(5392),m=t(73343),u=t(42222);function h(e){return{type:l.blW,msg:e}}function f(e){return async i=>{try{i({type:l.uxn});let t=(0,c.Ny)();if(!t||!t.id)return i(h("Please sign in or create an account first"));await r(e)&&e?(await a(t.id,e),p.AZ.redeemCode({gift_code:e,redeemed_at:Math.round(new Date().getTime()/1e3)}),i({type:l.ikQ}),i((0,m.Ir)())):i(h("Uh oh! Seems like that isn't a valid code... If you're having trouble, let us know at [email protected]"))}catch(e){i(h("Uh oh! we had some sort of problem redeeming this gift.")),(0,d.N7)(e)}}}function g(e){return{type:l.I9g,message:e}}function x(e,i,t,r){return async(a,o)=>{try{var c;let d=o();a({type:l.XQj});let h=await t.createToken(r,{name:i,email:e.purchaserEmail});if(!h)return a(g("credit card is not valid"));e.token=h.token,d.subscriptionPromo&&d.subscriptionPromo.valid&&(null==(c=d.subscriptionText)?void 0:c.price)&&(e.promo=d.subscriptionPromo.userEnteredPromo,e.discount=d.subscriptionPromo.promo,e.price=parseInt(d.subscriptionText.price.replace("$","").replace(".","")));let f=await s(e);window.purchaseErrorListener=(0,n.h)("/giftCardPurchases/".concat(f,"/error"),e=>{a(g(e)),(0,n._W)(["purchaseGiftCodeListener","purchaseErrorListener"])}),window.purchaseGiftCodeListener=(0,n.h)("/giftCardPurchases/".concat(f,"/giftCode"),i=>{a({type:l.PAE,giftCode:i}),(0,n._W)(["purchaseGiftCodeListener","purchaseErrorListener"]),a((0,m.aV)()),a((0,u.Wq)());let t={};t.giftCode=i,e.promo&&(t.promoCode=e.promo),e.subscriptionGiftType&&(t.giftType=e.subscriptionGiftType),e.price&&(t.price=e.price),e.discount&&(t.discount=e.discount),p.AZ.purchasedGiftCode(t)})}catch(e){return(0,d.N7)(e),a(g("We had an error processing this gift purchase"))}}}},57698:(e,i,t)=>{"use strict";t.d(i,{A:()=>o});var n=t(37876);t(14232);var r=t(82479),a=t(78463);function o(e){return(0,n.jsxs)(r.P,{color:e.color||a.T.midnightBlue,fontSize:"12px",textAlign:e.textAlign||"left",lineHeight:"18px",children:[(0,n.jsx)(r.B,{color:e.color,fontSize:"12px",lineHeight:"18px",children:"Dipsea is available on iOS, Android, and online in the following countries:"})," Argentina, Australia, Austria, Belgium, Brazil, Bulgaria, Canada, Croatia, Cyprus, Czech Republic, Denmark, Ecuador, Estonia, Finland, France, Germany, Greece, Hungary, India, Ireland, Italy, Latvia, Malta, Mexico, Netherlands, New Zealand, Norway, Poland, Portugal, Romania, Slovakia, South Africa, Spain, Sweden, Switzerland, United Kingdom, United States, and Uruguay."]})}},75304:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/gift/checkout",function(){return t(34537)}])}},e=>{var i=i=>e(e.s=i);e.O(0,[4e3,4085,4284,9878,7490,2264,8766,636,6593,8792],()=>i(75304)),_N_E=e.O()}]);
2//# sourceMappingURL=checkout-bb9c12680a769264.js.map

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.