1"use strict";(self.webpackChunklanding_v3=self.webpackChunklanding_v3||[]).push([[6994],{41512(e,t,n){n.d(t,{UpsellScreens:()=>J});var a,l=n(89379),r=n(5544),s=n(9950),i=n(11531),c=n(8130),o=n(29579),u=n(74088),d=n(59313),p=n(73629);const m=["title","titleId"];function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_.apply(null,arguments)}function h(e,t){let n=e.title,l=e.titleId,r=function(e,t){if(null==e)return{};var n,a,l=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,m);return s.createElement("svg",_({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":l},r),n?s.createElement("title",{id:l},n):null,a||(a=s.createElement("path",{d:"M18 6L6 18M6 6l12 12",stroke:"var(--text-color-tertiary, #a4a2c6)",strokeWidth:2,strokeLinecap:"round"})))}const f=s.forwardRef(h),y=(n.p,n.p+"static/media/upsell-main.51bf4c54081ffffcb498.webp"),v=n.p+"static/media/upsell-discount.c9c9d3c1370a62b13eb4.webp",g="UpsellScreens_page__S8JBr",b="UpsellScreens_screen__Tt4f5",x="UpsellScreens_toolbar__Edu9q",w="UpsellScreens_close__mTUd3",S="UpsellScreens_content__20PQa",j="UpsellScreens_title__qx745",U="UpsellScreens_subtitle__TR8gi",N="UpsellScreens_image__gRuub",k="UpsellScreens_features__mXsEn",P="UpsellScreens_feature__awxW7",A="UpsellScreens_featureTitle__F2hRf",E="UpsellScreens_featureText__ZvA3F",C="UpsellScreens_highlight__diCwQ",F="UpsellScreens_headline__9n4mB",O="UpsellScreens_footer__1eQJl",T="UpsellScreens_error__d5a8Z",L="UpsellScreens_disclaimer__pAu6h",R="UpsellScreens_cta__1Ygvc";var I=n(44414);const W={main:{image:y,priceLabel:e=>e,highlight:e=>"Add it to my plan just for ".concat(e)},discount:{image:v,priceLabel:e=>e,highlight:e=>"Today only \u2014 ".concat(e)}},q=[{title:"\ud83d\udd1e NSFW Chat",text:"Flirty, bold, provocative conversations \u2014 without censorship."},{title:"\ud83d\udd1e Adult Topics & Roleplay",text:"Fantasies, intimacy, domination, romance \u2014 you choose the vibe."},{title:"\ud83d\udd1e 100% Personalized",text:"She adapts to your tone, desires, and boundaries."},{title:"\ud83d\udd1e Exclusive Photos & Videos",text:"Private photos and videos, fully personalized to your desires and preferences."}],B={usd:"$",eur:"\u20ac"},z="Something went wrong. Please try again.",J=e=>{var t,n;let a=e.prices,m=e.onDone,_=e.onSkipAll;const h=(0,s.useState)("main"),y=(0,r.A)(h,2),v=y[0],J=y[1],Q=(0,s.useState)(!1),Z=(0,r.A)(Q,2),M=Z[0],Y=Z[1],D=(0,s.useState)(null),K=(0,r.A)(D,2),V=K[0],X=K[1],$=(0,s.useRef)(!1);(0,s.useEffect)(()=>{c._w.paywallLoaded({paywall_name:"v2_with_card_details"})},[]);const G=null!==(t=a[1])&&void 0!==t?t:null,H=null!==(n="main"===v?a[0]:G)&&void 0!==n?n:null,ee=(e=>{if(!e)return null;if(e.formattedAmount)return e.formattedAmount;if("number"!==typeof e.amount||!Number.isFinite(e.amount)||!e.currency)return null;const t=e.currency.toLowerCase(),n=e.amount.toFixed(2),a=B[t];return a?"".concat(a).concat(n):"".concat(e.currency.toUpperCase()," ").concat(n)})(H),te=W[v];(0,s.useEffect)(()=>{ee||console.error("Upsell price has no displayable amount:",H)},[ee,H]);const ne=(0,s.useCallback)(()=>{$.current||($.current=!0,m())},[m]),ae=(0,s.useCallback)(()=>{if(!M)return"main"===v&&G?(X(null),void J("discount")):void($.current||($.current=!0,(null!==_&&void 0!==_?_:m)()))},[M,v,G,_,m]),le=(0,s.useCallback)(async()=>{if(M)return;if(!H||!ee)return void ne();Y(!0),X(null),o.E.paywallPurchaseStarted(),c._w.paywallPurchaseStarted({product_id:H.id,product_name:"one_time_purchase",paywall_name:"v2_with_card_details"});const e=e=>{(0,d.YJ)(),c._w.paywallPurchaseSuccess((0,l.A)((0,l.A)({product_id:H.id,product_name:"one_time_purchase",revenue:H.amount},e?{transaction_id:e}:{}),{},{paywall_name:"v2_with_card_details"})),o.E.markExistingCustomer(),o.E.paywallPurchaseSuccess((0,l.A)((0,l.A)({revenue:H.amount,currency:H.currency},e?{transaction_id:e}:{}),{},{item_id:H.id,item_name:"one_time_purchase"}))};try{const n=await i.d.chargeUpsell({priceId:H.id});if("succeeded"===n.status||"processing"===n.status)return e(n.paymentUid),void ne();if("requires_action"===n.status&&n.clientSecret){var t;const a=(0,u.n)(n.publishableKey),l=a?await a:null;if(!l)return void X("Payment is temporarily unavailable. Please try again later.");const r=await l.handleNextAction({clientSecret:n.clientSecret});if(r.error)return void X(r.error.message||z);const s=null===(t=r.paymentIntent)||void 0===t?void 0:t.status;return"succeeded"===s||"processing"===s||"requires_capture"===s?(e(n.paymentUid),void ne()):void X("The payment was not completed. Please try again.")}X(z)}catch(n){console.error("Failed to charge upsell:",n),X(z)}finally{$.current||Y(!1)}},[M,H,ee,ne]);return(0,I.jsx)("div",{className:g,children:(0,I.jsxs)("div",{className:b,children:[(0,I.jsx)("div",{className:x,children:(0,I.jsx)("button",{type:"button",className:w,onClick:ae,disabled:M,"aria-label":"Skip this offer",children:(0,I.jsx)(f,{})})}),(0,I.jsxs)("div",{className:S,children:[(0,I.jsx)("h1",{className:j,children:"Unlock NSFW Experience \ud83d\udd13"}),(0,I.jsx)("p",{className:U,children:"Exclusive offer"}),(0,I.jsx)("img",{className:N,src:te.image,width:1080,height:1080,alt:""}),"main"===v?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("ul",{className:k,children:q.map(e=>(0,I.jsxs)("li",{className:P,children:[(0,I.jsx)("span",{className:A,children:e.title}
1),(0,I.jsx)("span",{className:E,children:e.text})]},e.title))}),(0,I.jsx)("p",{className:C,children:te.highlight(null!==ee&&void 0!==ee?ee:"")})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:C,children:te.highlight(null!==ee&&void 0!==ee?ee:"")}),(0,I.jsx)("p",{className:F,children:"We saved your spot. Unlock everything now at 60% off"})]})]}),(0,I.jsxs)("div",{className:O,children:[V&&(0,I.jsx)("p",{className:T,children:V}),(0,I.jsx)("button",{type:"button",className:R,onClick:le,disabled:M||!ee,children:M?(0,I.jsx)(p.Zu,{size:22}):"Continue"}),(0,I.jsxs)("p",{className:L,children:["By tapping \u201cContinue,\u201d you agree to a one-time charge of"," ",te.priceLabel(null!==ee&&void 0!==ee?ee:""),", automatically deducted from your linked payment method"]})]})]})})}}}]);
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.