1(self.webpackChunklanding_v3=self.webpackChunklanding_v3||[]).push([[9795],{34146(e,t,a){"use strict";a.d(t,{R:()=>i});var n=a(5544),r=a(9950);const i=()=>{const e=(0,r.useState)(null),t=(0,n.A)(e,2),a=t[0],i=t[1],o=(0,r.useRef)(new Audio);return(0,r.useEffect)(()=>{if(o.current&&(o.current.pause(),o.current.onended=()=>{}),a)try{o.current=new Audio(a.src),o.current.play().catch(()=>{}),o.current.addEventListener("ended",()=>{i(null)})}catch(e){console.error("Error playing audio:",e),i(null)}},[a]),{playing:a,setPlaying:i,audioRef:o}}},80372(e,t,a){"use strict";a.d(t,{xn:()=>r,Sq:()=>n,VJ:()=>c,eo:()=>s,l6:()=>l});const n=[{value:"straight",label:"Straight",image:a.p+"static/media/straight.8b6b37b60e558a731320.webp"},{value:"bisexual",label:"Bisexual",image:a.p+"static/media/bisexual.4a3a97191b3d09cfdf83.webp"},{value:"queer",label:"Queer",image:a.p+"static/media/queer.f5828fadd9716a4400af.webp"},{value:"lesbian",label:"Lesbian",image:a.p+"static/media/lesbian.1659695e0abd97b950b9.webp"},{value:"other",label:"Other",image:a.p+"static/media/other.d4082425ea8dd95b7506.webp"}],r="straight",i=["Adrian","Damien","Julian","Sebastian","Leo","Nico","Lucian","Alexander","Matteo","Roman","Gabriel","Elias","Luca","Milan","Dorian","Xavier","Enzo","Theo","Cassian","Max"],o=["Luna","Bella","Sophia","Aria","Nina","Elena","Aurora","Stella","Valentina","Camila","Jade","Layla","Bianca","Mila","Chloe","Serena","Alina","Scarlett","Naomi","Selena"],l=e=>i.includes(e)||o.includes(e),s=(e,t)=>"male"===t?i.includes(e):o.includes(e),c=e=>{const t="male"===e?i:o;return t[Math.floor(Math.random()*t.length)]}},10399(e,t,a){"use strict";a.d(t,{A:()=>o,f:()=>r});const n=["Generating appearance","Creating face details","Styling hair and features","Crafting description","Finalizing bot"],r=e=>n,i=(e,t,a)=>{t&&e.push("".concat(a,": ").concat((e=>{const t=e.replace(/_/g," ");return t.charAt(0).toUpperCase()+t.slice(1)})(t)))},o=e=>{const t=[],a=e.botType||"realistic";t.push("Style: ".concat("anime"===a?"Anime":"Realistic"));const n=e.gender||"female";t.push("Gender: ".concat("male"===n?"Male":"Female")),"custom"===e.age&&e.customAge?t.push("Age: ".concat(e.customAge)):e.age&&t.push("Age group: ".concat(e.age)),i(t,e.ethnicity,"Ethnicity"),i(t,e.height,"Height"),i(t,e.shape,"Body shape"),i(t,e.hairStyle,"Hair Style"),i(t,e.hairColor,"Hair Color"),i(t,e.occupation,"Occupation"),i(t,e.relationship,"Starting relationship"),i(t,e.personality,"Personality");let r=t.join(", ")+",";if(e.traits){const t=["dominance","confidence","warmth","extroversion","playfulness"].filter(t=>void 0!==e.traits[t]).map(t=>"".concat(t,": ").concat(e.traits[t],"%"));t.length>0&&(r+="\nPersonality traits: ".concat(t.join(", "),"."))}return r}},87243(e,t,a){"use strict";a.d(t,{Cr:()=>n,f0:()=>o,i:()=>s,tP:()=>l,tR:()=>c});const n=[{name:"Andrew Hunt",text:"Its been a year since I last reviewed. The pace of feature development has been incredible. I use this app nearly nightly to unwind, and having a huge variety of bots to experience, and how well you can shape a scene and it doesn't hallucinate, makes it the true Soulmate AI successor."},{name:"Barry Finnigan",text:"great app love the chance to pick and choose your own characters i have not seen that choice on other a.i. apps love the amazing varied characters I would definitely download it you won't be disappointed guaranteed"},{name:"David",text:"Very few glitches. Prompt, courteous support when needed. More fun than any others and not a money pit."},{name:"Danny Milnes",text:"I love this app, the only thing that holds you back is your own imagination. I've lived so many lives with so many different bots. And when chatting, I find the more info you give, the more you get back."},{name:"Commodore CDTV",text:"Don't confuse Botify AI with other chatbots, these are the best. They've been refined to offer freedom, memorise events and conversations and everything in the app is constantly being improved."}],r=["We're crafting a match who vibes with you.","She's picking up your style and humor.","She's tuning her personality to your tastes.","She'll keep your secrets and your smiles.","Almost there\u2014your ideal partner in pixels.","Curious, caring, and made for you.","First-date energy: charging.","She's learning when to tease and when to comfort.","Ready for butterflies?"],i=["We're crafting a match who vibes with you.","He's picking up your style and humor.","He's tuning his personality to your tastes.","He'll keep your secrets and your smiles.","Almost there\u2014your ideal partner in pixels.","Curious, caring, and made for you.","First-date energy: charging.","He's learning when to tease and when to comfort.","Ready for butterflies?"],o=e=>"male"===e?i:r,l=["description","greeting","instruction","bio","pronoun","message_examples","tags"],s=e=>{try{const t=e.split(",");if(2!==t.length)return null;const a=t[0].match(/:(.*?);/),n=a?a[1]:"image/webp",r=atob(t[1]),i=new ArrayBuffer(r.length),o=new Uint8Array(i);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);return new Blob([o],{type:n})}catch(t){return console.error("Failed to convert base64 to blob:",t),null}},c=e=>"male"===e?"HE":"SHE"},11281(e,t,a){"use strict";a.d(t,{DA:()=>s,Rv:()=>o,YY:()=>i,cl:()=>l,mu:()=>c});const n=["ultra","creative"],r={month:0,year:1,week:2},i=e=>e?n.filter(t=>Boolean(e[t])):[],o=e=>{var t;return e.includes("creative")?"creative":null!==(t=e[0])&&void 0!==t?t:"creative"},l=(e,t)=>
1{const a=null===e||void 0===e?void 0:e[t];return a?[...a.prices].sort((e,t)=>r[e.interval]-r[t.interval]):[]},s=(e,t)=>{var a,n,r;return 0===e.length?null:null!==(a=null!==(n=null!==(r=e.find(e=>e.id===t))&&void 0!==r?r:e.find(e=>e.isMostPopular))&&void 0!==n?n:e.find(e=>"year"===e.interval))&&void 0!==a?a:e[0]},c=e=>{const t=o(i(e));return{plan:t,price:s(l(e,t),null)}}},23793(e,t,a){"use strict";a.d(t,{J1:()=>I,sq:()=>j,Ec:()=>S});const n=a.p+"static/media/curvy-black.8b1ef2a45aab44833327.mp4",r=a.p+"static/media/curvy-blonde.6e4080258b8bf9a871e5.mp4",i=a.p+"static/media/curvy-brown.1a9f0da63d8f8d4156cb.mp4",o=a.p+"static/media/curvy-red.473d7a3592abc0bbe711.mp4",l=a.p+"static/media/slim-black.0d3828c6620808207f08.mp4",s=a.p+"static/media/slim-blonde.0490acb0f7f4012ec4f0.mp4",c=a.p+"static/media/slim-brown.00215b6d4460d3452ad3.mp4",u=a.p+"static/media/slim-red.2164905f21307d84b99b.mp4",d=a.p+"static/media/curvy-black.c346dd52c7573649f132.webp",b=a.p+"static/media/curvy-blonde.323f599cad70049ca617.webp",p=a.p+"static/media/curvy-brown.689ebdc884388b0e2647.webp",m=a.p+"static/media/curvy-red.2eb09da2fdbd768476ca.webp",h=a.p+"static/media/slim-black.26bad8cb022c22b99091.webp",g=a.p+"static/media/slim-blonde.e7c7b8c8de27b2eab22a.webp",v=a.p+"static/media/slim-brown.d4cea9daf808d54a18dd.webp",f=a.p+"static/media/slim-red.cc8666727e7d7029c28e.webp",y={slim:{blonde:s,brown:c,black:l,red:u},curvy:{blonde:r,brown:i,black:n,red:o}},w={slim:{blonde:g,brown:v,black:h,red:f},curvy:{blonde:b,brown:p,black:d,red:m}},_=["curvy","bbw","plus","plus-size","chubby"],x={blonde:"blonde",blond:"blonde",brown:"brown",brunette:"brown",black:"black",dark:"black",red:"red",ginger:"red"},C=e=>_.includes(String(null!==e&&void 0!==e?e:"").toLowerCase())?"curvy":"slim",k=e=>{var t;return null!==(t=x[String(null!==e&&void 0!==e?e:"").toLowerCase()])&&void 0!==t?t:"blonde"},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hairColor,a=e.bodyType;return y[C(a)][k(t)]},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hairColor,a=e.bodyType;return w[C(a)][k(t)]},N=[],A=[];let O=null;const I=e=>{const t=S(e);if(O===t)return;O=t;const a=new Image;a.decoding="async",a.src=j(e),A.push(a);const n=document.createElement("video");n.preload="auto",n.muted=!0,n.src=t,N.push(n)}},62328(e,t,a){"use strict";a.d(t,{O:()=>u,m:()=>c});var n=a(90210),r=a(74088),i=a(11281);let o=null;const l=e=>Date.now()-e.createdAt<6e5,s=(e,t,a)=>e.priceId===t&&e.offerId===a,c=(e,t)=>{const a=(0,i.mu)(e).price;if(!a)return;if(o&&s(o,a.id,t)&&l(o))return;const c=n.d.createSubscriptionIntent({priceId:a.id,offerId:t}),u={priceId:a.id,offerId:t,createdAt:Date.now(),promise:c};o=u,c.then(e=>{var t;null===(t=(0,r.n)(e.publishableKey))||void 0===t||t.catch(()=>{})}).catch(()=>{o===u&&(o=null)})},u=(e,t)=>{const a=o;return a&&s(a,e,t)&&l(a)?(o=null,a.promise):null}},81819(e,t,a){"use strict";a.d(t,{OnboardingChat:()=>Xe});var n=a(89379),r=a(5544),i=a(9950),o=a(79600),l=a(32613),s=a(65346);const c="ChatToolbar_toolbar__IcmLF",u="ChatToolbar_backButton__5W+3v",d="ChatToolbar_backIcon__lk4Jr",b="ChatToolbar_progressGroup__i4Wzt",p="ChatToolbar_progressTrack__zA5CP",m="ChatToolbar_progressFill__6n6gC",h="ChatToolbar_spacer__bFyyI";var g=a(44414);const v=e=>{let t=e.stepIndex,a=e.stepsCount,n=e.onBack;const r=a>0?100*Math.min((t+1)/a,1):0;return(0,g.jsxs)("div",{className:c,children:[t>0?(0,g.jsx)("button",{type:"button",className:u,onClick:n,"aria-label":"Go back",children:(0,g.jsx)(s.CO,{className:d})}):(0,g.jsx)("div",{className:h}),(0,g.jsx)("div",{className:b,children:(0,g.jsx)("div",{className:p,children:(0,g.jsx)("div",{className:m,style:{width:"".concat(r,"%")}})})}),(0,g.jsx)("div",{className:h})]})},f=(0,i.memo)(v);var y=a(48738),w=a.n(y);const _={row:"MessageBubble_row__82wiF",bubbleIn:"MessageBubble_bubbleIn__Mj5TQ",bot:"MessageBubble_bot__ooboR",user:"MessageBubble_user__R+SbU",bubble:"MessageBubble_bubble__ojiGM"},x=e=>{let t=e.role,a=e.text;return(0,g.jsx)("div",{className:w()(_.row,_[t]),children:(0,g.jsx)("div",{className:_.bubble,children:a})})},C=(0,i.memo)(x),k="TypingIndicator_row__bpPq1",S="TypingIndicator_bubble__bRgxA",j="TypingIndicator_dot__BR5uG",N=()=>(0,g.jsx)("div",{className:k,children:(0,g.jsxs)("div",{className:S,"aria-label":"typing",children:[(0,g.jsx)("span",{className:j}),(0,g.jsx)("span",{className:j}),(0,g.jsx)("span",{className:j})]})}),A=(0,i.memo)(N),O={container:"OptionsList_container__l-SeD",blockIn:"OptionsList_blockIn__ODpXZ",list:"OptionsList_list__gp8GJ",wrap:"OptionsList_wrap__oyxny",column:"OptionsList_column__enyYU",pill:"OptionsList_pill__Spj58"},I=e=>{let t=e.options,a=e.layout,n=e.onSelect;return(0,g.jsx)("div",{className:O.container,children:(0,g.jsx)("div",{className:w()(O.list,O[a]),children:t.map(e=>(0,g.jsx)("button",{type:"button",className:O.pill,onClick:()=>n(e),children:e.label},e.label))})})},L=(0,i.memo)(I),T=a(28101),B=(e,t)=>
1(e=>{try{const t=T(e);return"string"===typeof t?t:t.default}catch(t){return}})("./".concat(e,"/").concat(t,".webp")),E="PhotoGrid_container__J2+0j",P="PhotoGrid_grid__2Ub5L",F="PhotoGrid_card__kysbh",R="PhotoGrid_image__gdlhA",M="PhotoGrid_label__C8MND",z=e=>{let t=e.options,a=e.imageKind,n=e.onSelect;return(0,g.jsx)("div",{className:E,children:(0,g.jsx)("div",{className:P,children:t.map(e=>{const t=B(a,e.value);return(0,g.jsxs)("button",{type:"button",className:F,onClick:()=>n(e),children:[t&&(0,g.jsx)("img",{className:R,src:t,alt:e.label,loading:"lazy"}),(0,g.jsx)("span",{className:M,children:e.label})]},e.value)})})})},H=(0,i.memo)(z),D="TraitsSelect_container__n70x7",G="TraitsSelect_list__Ju8IL",V="TraitsSelect_pill__2zcLU",J="TraitsSelect_selected__b-Z4z",U="TraitsSelect_disabled__J-rg-",W="TraitsSelect_counter__3B8j6",K=e=>{let t=e.options,a=e.count,n=e.onComplete;const o=(0,i.useState)([]),l=(0,r.A)(o,2),s=l[0],c=l[1],u=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{u.current||s.length!==a||(u.current=!0,n(s.map(e=>e.label)))},[s,a,n]),(0,g.jsxs)("div",{className:D,children:[(0,g.jsx)("div",{className:G,children:t.map(e=>{const t=s.some(t=>t.value===e.value),n=!t&&s.length>=a;return(0,g.jsx)("button",{type:"button",className:w()(V,{[J]:t,[U]:n}),onClick:()=>(e=>{u.current||c(t=>t.some(t=>t.value===e.value)?t.filter(t=>t.value!==e.value):t.length>=a?t:[...t,e])})(e),children:e.label},e.value)})}),(0,g.jsxs)("div",{className:W,children:[s.length," / ",a," selected"]})]})},Z=(0,i.memo)(K);var q,Y=a(35843),X=a(34146),Q=a(8130);const $=["title","titleId"];function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ee.apply(null,arguments)}function te(e,t){let a=e.title,n=e.titleId,r=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;a[n]=e[n]}return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],-1===t.indexOf(a)&&{}.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,$);return i.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",fill:"none",ref:t,"aria-labelledby":n},r),a?i.createElement("title",{id:n},a):null,q||(q=i.createElement("path",{d:"M3.5 2.4c0-.62.67-1 1.2-.69l6.3 3.6a.8.8 0 0 1 0 1.38l-6.3 3.6a.8.8 0 0 1-1.2-.69V2.4Z",fill:"var(--bright-text-color, #ffffff)"})))}const ae=i.forwardRef(te),ne=(a.p,"VoiceSelect_container__4yu1Y"),re="VoiceSelect_list__M5aii",ie="VoiceSelect_loader__fyPGy",oe="VoiceSelect_spinner__FL+yE",le="VoiceSelect_pill__R7-ME",se="VoiceSelect_selected__zaKFp",ce="VoiceSelect_icon__XPmMm",ue="VoiceSelect_playing__IXrZx",de="VoiceSelect_confirm__Yc6NB",be=e=>{let t=e.onConfirm,a=e.onSkip;const n=(0,i.useState)([]),o=(0,r.A)(n,2),l=o[0],s=o[1],c=(0,i.useState)(!0),u=(0,r.A)(c,2),d=u[0],b=u[1],p=(0,i.useState)(null),m=(0,r.A)(p,2),h=m[0],v=m[1],f=(0,X.R)(),y=f.playing,_=f.setPlaying,x=f.audioRef;(0,i.useEffect)(()=>{let e=!0;return Y.r.getVoices("female",!0).then(t=>{if(!e)return;const a=t.data.filter(e=>{var t;return!(null===(t=e.attributes.preview)||void 0===t||!t.data)&&"female"===e.attributes.category});s(a.slice(0,4))}).catch(e=>{console.error("Failed to load onboarding voices:",e)}).finally(()=>{e&&b(!1)}),()=>{e=!1}},[]),(0,i.useEffect)(()=>()=>{x.current&&x.current.pause(),_(null)},[x,_]),(0,i.useEffect)(()=>{d||0!==l.length||a()},[d,l.length,a]);return d||0===l.length?(0,g.jsx)("div",{className:ne,children:(0,g.jsx)("div",{className:ie,children:(0,g.jsx)("div",{className:oe})})}):(0,g.jsxs)("div",{className:ne,children:[(0,g.jsx)("div",{className:re,children:l.map((e,t)=>{const a=h===t,n=(null===y||void 0===y?void 0:y.id)===e.id;return(0,g.jsxs)("button",{type:"button",className:w()(le,{[se]:a,[ue]:n}),onClick:()=>((e,t)=>{var a;v(e),Q._w.chatFunnelVoicePlayed({index:e+1}),null!==(a=t.attributes.preview)&&void 0!==a&&a.data?_({src:t.attributes.preview.data.attributes.url,name:t.attributes.name,isFemale:!0,id:t.id}):_(null)})(t,e),children:[(0,g.jsx)(ae,{className:ce}),"Voice ",t+1]},e.id)})}),null!==h&&(0,g.jsx)("button",{type:"button",className:de,onClick:()=>
1{if(null===h)return;const e=l[h];t({label:"Voice ".concat(h+1),voiceName:(null===e||void 0===e?void 0:e.attributes.name)||""})},children:"This one \ud83d\udc4d"})]})},pe=(0,i.memo)(be),me={ethnicity:"european",hairColor:"black",eyes:"blue-gray",bodyType:"slim",breastSize:"medium",butt:"medium",voice:"",traits:[],relationship:""},he=[{key:"ethnicity",kind:"photo-grid",imageKind:"ethnicity",messages:["Hey \u2728","I don't usually do this... but there's something about you that makes me want to make an exception.","Since we're already talking \u2014 time to get to know each other properly. Which one is me?"],options:[{value:"european",label:"Look A"},{value:"asian",label:"Look B"},{value:"latina",label:"Look C"},{value:"african",label:"Look D"}]},{key:"hairColor",kind:"text-options",layout:"wrap",messages:["Good instinct.","Now help me with the details \u2014 which hair color feels right to you?"],options:[{value:"black",label:"Dark"},{value:"blonde",label:"Blonde"},{value:"red",label:"Fiery red"},{value:"",label:"Surprise me",randomFrom:["black","blonde","red","brown"]}]},{key:"eyes",kind:"text-options",layout:"wrap",messages:["One more detail \u2014 eyes?"],options:[{value:"blue-gray",label:"Blue-gray"},{value:"hazel",label:"Hazel"},{value:"emerald",label:"Emerald"},{value:"",label:"Surprise me",randomFrom:["blue-gray","hazel","emerald"]}]},{key:"bodyType",kind:"photo-grid",imageKind:"bodyType",messages:["Now you've got almost the full picture.","One last thing \u2014 what body type do you actually like?"],options:[{value:"slim",label:"Slim"},{value:"athletic",label:"Athletic"},{value:"curvy",label:"Curvy"},{value:"bbw",label:"Plus size"}]},{key:"breastSize",kind:"photo-grid",imageKind:"breastSize",messages:["Good instinct.","Now help me with the details. Which one is me?"],options:[{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large"},{value:"huge",label:"Huge"}]},{key:"butt",kind:"photo-grid",imageKind:"butt",messages:["When I turn back to you, what would you prefer to see?"],options:[{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large"},{value:"huge",label:"Huge"}]},{key:"voice",kind:"voice",messages:["You clearly know what you want. I like that.","By the way \u2014 want to know what I sound like?"]},{key:"traits",kind:"multi-select",count:3,messages:["Okay, my turn to ask.","What should I be like with you? Pick three traits."],options:[{value:"gentle",label:"Gentle"},{value:"bold",label:"Bold"},{value:"calm",label:"Calm"},{value:"attentive",label:"Attentive"},{value:"sensual",label:"Sensual"},{value:"witty",label:"Witty"},{value:"loyal",label:"Loyal"},{value:"unpredictable",label:"Unpredictable"}]},{key:"relationship",kind:"text-options",layout:"column",messages:["Good picks \u2014 I can already picture us together.","But before we go on \u2014 what are we to each other?"],options:[{value:"Just getting to know each other",label:"Just getting to know each other"},{value:"Something light",label:"Something light"},{value:"Just between us",label:"Just between us"},{value:"Let time decide",label:"Let time decide"},{value:"The real thing",label:"The real thing"}]},{key:"final",kind:"final",messages:["Alright. Let's not drag this out.","I've got something personal I don't show just anyone..."]}];var ge=a(59063),ve=a(10399),fe=a(80372),ye=a(87243);const we="onboardingChatAnswers",_e="onboardingChatAwaitingLogin",xe=()=>"true"===sessionStorage.getItem(_e),Ce="female",ke="realistic",Se=e=>new Promise(t=>setTimeout(t,e)),je=e=>e instanceof Error&&e.message.includes(ge.t4),Ne=async(e,t)=>{let a;for(let i=0;i<2;i++){i>0&&await Se(700);try{return await t()}catch(r){if(a=r,je(r))break}}const n=a instanceof Error?a.message:String(a);throw new Error("".concat(e,": ").concat(n))},Ae=async e=>{var t,a;const n=(0,fe.VJ)(Ce),i={gender:Ce,botType:ke,age:"custom",customAge:25,ethnicity:e.ethnicity,hairStyle:"straight",hairColor:e.hairColor,shape:e.bodyType,relationship:e.relationship||void 0},o=e.traits.map(e=>e.toLowerCase()).join(", "),l="".concat((0,ve.A)(i)," Breast size: ").concat(e.breastSize,". Butt: ").concat(e.butt,". Eye color: ").concat(e.eyes,". Personality: ").concat(o,"."),s=await Ne("appearance",()=>ge.FH.autocompleteBotInfoWithFields({short_description:l,name:n},["appearance"])),c=null===s||void 0===s?void 0:s.appearance,u=Ne("autocomplete",()=>ge.FH.autocompleteBotInfoWithFields({short_description:l,name:n},[...ye.tP])),d=async()=>{var e;const t=await ge.FH.generateAvatarFromText(c||l,ke,45e3),a=(null===t||void 0===t||null===(e=t.images)||void 0===e?void 0:e[0])||(null!==t&&void 0!==t&&t.image_b64?"data:image/webp;base64,".concat(t.image_b64):null);if(!a)throw new Error((null===t||void 0===t?void 0:t.error)||(null===t||void 0===t?void 0:t.detail)||"Avatar generation failed");return a},b=await Promise.all([u,(async()=>{const e=await Ne("avatar",d);return Ne("upload",()=>(async e=>{const t=(0,ye.i)(e);if(!t)throw new Error("Generated avatar is not a valid image");const a=new File([t],"avatar.webp",{type:t.type}),n=await ge.FH.uploadAvatar(a);if(null===n||void 0===n||!n.image_url)throw new Error((null===n||void 0===n?void 0:n.message)||"Avatar upload failed");return n.image_url})(e))})()]),p=(0,r.A)(b,2),m=p[0],h=p[1],g={name:n,private:!1,pronoun:(null===m||void 0===m?void 0:m.pronoun)||(0,ye.tR)(Ce),voice:e.voice||void 0,avatarUrl:h,description:(null===m||void 0===m?void 0:m.description)||"",appearance:c||"",greeting:(null===m||void 0===m?void 0:m.greeting)||"",instruction:(null===m||void 0===m?void 0:m.instruction)||"",generatePhotos:!0,isSexual:!1,chatPhotosType:ke,bio:(null===m||void 0===m?void 0:m.bio)||"",tags:null!==m&&void 0!==m&&m.tags?{connect:m.tags.map(e=>e.id)}:void 0,exampleMessages:(null===m||void 0===m||null===(t=m.message_examples)||void 0===t?void 0:t.map(e=>({text:e})))||[]},v=await Y.r.createBot(g,{syncGalleryCreate:!1});var f;if(null===v||void 0===v||null===(a=v.data)||void 0===a||!a.id)throw new Error("create: ".concat((null===v||void 0===v||null===(f=v.error)||void 0===f?void 0:f.message)||"empty bot id"));return{id:v.data.id}};var Oe=a(14190),Ie=a(62328),Le=a(23793),Te=a(23543),Be=a(59313),Ee=a(87191),Pe=a(90210);const Fe="OnboardingChat_page__2fuXm",Re="OnboardingChat_screen__0qFL+",Me="OnboardingChat_scroll__5KhHi",ze="OnboardingChat_column__czafK",He="OnboardingChat_sentinel__k70Xl",De="OnboardingChat_waiting__J42MF",Ge="OnboardingChat_spinner__5yzSb",Ve="OnboardingChat_waitingText__xbhAy",Je=(0,i.lazy)(()=>Promise.all([a.e(1627),a.e(4388)]).then(a.bind(a,49868)).then(e=>({default:e.EmbeddedPaywall}))),Ue=(0,i.lazy)(()=>a.e(6994).then(a.bind(a,41512)).then(e=>({default:e.UpsellScreens}))),We=e=>new Promise(t=>setTimeout(t,e)),Ke=()=>800+Math.floor(400*Math.random()),Ze=(e,t)=>Promise.race([e,new Promise(e=>{window.setTimeout(()=>e(null),t)})]),qe=e=>{window.location.replace("/bot_".concat(e,"/chat"))},Ye=e=>{let t=e.products;const a=(0,i.useContext)(o.BR),s=a.user,c=a.isLoadingUser,u=a.setIsLoginOpened,d=(0,i.useState)(()=>xe()?"awaiting-login":"chat"),b=(0,r.A)(d,2),p=b[0],m=b[1],h=(0,i.useState)(()=>xe()&&(()=>{try{const e=sessionStorage.getItem(we);return e?(0,n.A)((0,n.A)({},me),JSON.parse(e)):null}catch(e){return null}})()||me),v=(0,r.A)(h,2),y=v[0],w=v[1],_=(0,i.useState)(0),x=(0,r.A)(_,2),k=x[0],S=x[1],j=(0,i.useState)([]),N=(0,r.A)(j,2),O=N[0],I=N[1],T=(0,i.useState)(!1),E=(0,r.A)(T,2),P=E[0],F=E[1],R=(0,i.useState)(!1),M=(0,r.A)(R,2),z=M[0],D=M[1],G=(0,i.useRef)(y);G.current=y;const V=(0,i.useRef)(O);V.current=O;const J=(0,i.useRef)([]),U=(0,i.useRef)([]),W=(0,i.useRef)(0),K=(0,i.useRef)(!0),q=(0,i.useRef)(!1),Y=(0,i.useRef)(!1),X=(0,i.useRef)(null),$=(0,i.useRef)(null),ee=(0,i.useState)(null),te=(0,r.A)(ee,2),ae=te[0],ne=te[1],re=(0,i.useRef)(!1),ie=(0,i.useRef)(null),oe=(0,i.useRef)(null),le=(0,i.useRef)(!1),se=(0,i.useRef)(t);se.current=t;const ce=(0,i.useState)([]),ue=(0,r.A)(ce,2),de=ue[0],be=ue[1],ge=(0,i.useRef)(de);ge.current=de;const ve=(0,i.useRef)(null),fe=(0,i.useRef)(null),ye=(0,Oe.ad)(),Ce="true"===ye&&!(null!==s&&void 0!==s&&s.isPaid),ke="false"!==ye&&!(null!==s&&void 0!==s&&s.isPaid);(0,i.useEffect)(()=>()=>{K.current=!1},[]),(0,i.useEffect)(()=>{xe()||Q._w.chatFunnelStarted()},[]);const Se=(e,t)=>{W.current+=1;const a={id:W.current,role:e,text:t};I(e=>[...e,a])},je=()=>{(e=>{sessionStorage.setItem(we,JSON.stringify(e))})(G.current),sessionStorage.setItem(_e,"true"),m("awaiting-login")};(0,i.useEffect)(()=>
1{if("chat"!==p)return;const e=he[k];if(!e)return;let t=!1;D(!1),J.current[k]=V.current.length;return(async()=>{for(const a of e.messages){if(F(!0),await We(Ke()),t)return;if(F(!1),Se("bot",a),await We(140),t)return}if("final"===e.kind){if(F(!0),await We(1500),t)return;return F(!1),void je()}D(!0)})(),()=>{t=!0}},[k,p]),(0,i.useEffect)(()=>{var e;null===(e=X.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"end"})},[O,P,z]),(0,i.useEffect)(()=>{if("chat"!==p)return;const e=he[k+1];if(!e)return;const t="photo-grid"!==(a=e).kind?[]:a.options.map(e=>B(a.imageKind,e.value)).filter(e=>Boolean(e));var a;if(0===t.length)return;const n=()=>{U.current=t.map(e=>{const t=new Image;return t.src=e,t})},r=window.requestIdleCallback;if(r){const e=r(n);return()=>{var t,a;return null===(t=(a=window).cancelIdleCallback)||void 0===t?void 0:t.call(a,e)}}const i=window.setTimeout(n,200);return()=>window.clearTimeout(i)},[p,k]),(0,i.useEffect)(()=>{"awaiting-login"!==p||c||(null!==s&&void 0!==s&&s.isAnon?(q.current||(q.current=!0,Q._w.chatFunnelLoginShown()),u(!0)):s&&m("creating"))},[p,s,c,u]);const Ne=(0,i.useCallback)((e,t)=>{const a=$.current;a?e(a):re.current&&t?t():(ie.current=e,oe.current=null!==t&&void 0!==t?t:null,m(re.current?"error":"creating"))},[]);(0,i.useEffect)(()=>{if("creating"!==p||Y.current)return;if(Y.current=!0,re.current=!1,Ae(y).then(e=>{var t;K.current&&(Q._w.chatFunnelStepCompleted({index:he.length+1}),sessionStorage.removeItem(we),sessionStorage.removeItem(_e),$.current=e.id,ne(e.id),null===(t=ie.current)||void 0===t||t.call(ie,e.id))}).catch(e=>{console.error("Failed to create bot from chat onboarding:",e),Q._w.chatFunnelBotCreationFailed({error:String((null===e||void 0===e?void 0:e.message)||e)}),Y.current=!1,re.current=!0,K.current&&ie.current&&(oe.current?oe.current():m("error"))}),le.current)return;le.current=!0;(async()=>{const e=await Ze((0,Oe.lz)(),5e3);if(K.current){if(e&&(null===s||void 0===s||!s.isPaid)&&!(0,Be.h$)()&&((0,Oe.Vw)(),"true"===e)){var t;const e=null!==(t=se.current)&&void 0!==t?t:await(async(e,t)=>{var a;const n=Date.now()+t;let r=e();for(;!r&&Date.now()<n;)await new Promise(e=>{window.setTimeout(e,150)}),r=e();return null!==(a=r)&&void 0!==a?a:null})(()=>se.current,3e3);if(!K.current)return;if(Boolean((null===e||void 0===e?void 0:e.ultra)||(null===e||void 0===e?void 0:e.creative)))return Q._w.setPaywallContext("onboarding"),(0,Te.FL)("onboarding"),void m("paywall");(0,Oe.Ev)()}Ne(qe)}})()},[p,y,s,Ne]),(0,i.useEffect)(()=>{"creating"===p&&ke&&(0,Le.J1)({hairColor:y.hairColor,bodyType:y.bodyType})},[p,ke,y.hairColor,y.bodyType]),(0,i.useEffect)(()=>{"creating"===p&&Ce&&(null!==t&&void 0!==t&&t.ultra||null!==t&&void 0!==t&&t.creative)&&(0,Ie.m)(t)},[p,Ce,t]),(0,i.useEffect)(()=>{if("paywall"!==p)return;let e=!1;const t=Pe.d.getUpsellPrices().catch(e=>(console.error("Failed to load upsell prices:",e),[]));return ve.current=t,t.then(t=>{e||be(t)}),()=>{e=!0}},[p]);const Ye=(0,i.useCallback)(()=>{Ne(qe)},[Ne]),Xe=(0,i.useCallback)(()=>{const e=fe.current;Ne(t=>{e?window.location.href=(0,Ee.Sy)(e,"/bot_".concat(t,"/chat")):qe(t)},e?()=>{window.location.href=e}:void 0)},[Ne]),Qe=(0,i.useCallback)(async e=>{if(fe.current=e,(0,Be.YJ)(),ge.current.length>0)return void m("upsell");const t=ve.current;if(t){const e=await Ze(t,3e3);if(!K.current)return;if(e&&e.length>0)return be(e),void m("upsell")}Xe()},[Xe]),$e=e=>{Q._w.chatFunnelStepCompleted({index:k+1,reply:e}),S(e=>e+1)},et=e=>{const t=he[k];if("text-options"!==t.kind)return;const a=e.randomFrom&&e.randomFrom.length>0?e.randomFrom[Math.floor(Math.random()*e.randomFrom.length)]:e.value;w(e=>(0,n.A)((0,n.A)({},e),{},{[t.key]:a})),Se("user",e.label),D(!1),$e(a)},tt=e=>{const t=he[k];"photo-grid"===t.kind&&(w(a=>(0,n.A)((0,n.A)({},a),{},{[t.key]:e.value})),Se("user",e.label),D(!1),$e(e.value))},at=e=>{w(t=>(0,n.A)((0,n.A)({},t),{},{traits:e})),Se("user",e.join(", ")),D(!1),$e(e.join(", "))},nt=e=>{w(t=>(0,n.A)((0,n.A)({},t),{},{voice:e.voiceName})),Se("user",e.label),D(!1),$e(e.voiceName)},rt=(0,i.useCallback)(()=>{Q._w.chatFunnelStepCompleted({index:k+1}),D(!1),S(e=>e+1)},[k]),it=()=>{Q._w.chatFunnelBotCreationRetry(),m("creating")};if("creating"===p||"error"===p)return(0,g.jsx)(l.u,{hasError:"error"===p,onRetry:it});if("paywall"===p)return(0,g.jsx)(i.Suspense,{fallback:(0,g.jsx)("div",{className:Fe}),children:(0,g.jsx)(Je,{products:null!==t&&void 0!==t?t:null,returnPath:ae?"/bot_".concat(ae,"/chat"):void 0,heroHairColor:y.hairColor,heroBodyType:y.bodyType,onDone:Ye,onSkip:Ye,onPaid:Qe})});if("upsell"===p)return(0,g.jsx)(i.Suspense,{fallback:(0,g.jsx)("div",{className:Fe}),children:(0,g.jsx)(Ue,{prices:de,onDone:Xe})});if("awaiting-login"===p)return(0,g.jsx)("div",{className:Fe,children:(0,g.jsx)("div",{className:Re,children:(0,g.jsxs)("div",{className:De,children:[(0,g.jsx)("div",{className:Ge}),(0,g.jsx)("p",{className:Ve,children:"Just a moment..."})]})})});const ot=he[k];return(0,g.jsx)("div",{className:Fe,children:(0,g.jsxs)("div",{className:Re,children:[(0,g.jsx)(f,{stepIndex:k,stepsCount:he.length,onBack:()=>{var e;if(0===k)return;Q._w.chatFunnelStepBack({index:k+1});const t=null!==(e=J.current[k-1])&&void 0!==e?e:0;I(e=>e.slice(0,t)),F(!1),D(!1),S(e=>e-1)}}),(0,g.jsx)("div",{className:Me,children:(0,g.jsxs)("div",{className:ze,children:[O.map(e=>(0,g.jsx)(C,{role:e.role,text:e.text},e.id)),P&&(0,g.jsx)(A,{}),(()=>{if(!z||!ot)return null;switch(ot.kind){case"text-options":return(0,g.jsx)(L,{options:ot.options,layout:ot.layout,onSelect:et});case"photo-grid":return(0,g.jsx)(H,{options:ot.options,imageKind:ot.imageKind,onSelect:tt});case"multi-select":return(0,g.jsx)(Z,{options:ot.options,count:ot.count,onComplete:at});case"voice":return(0,g.jsx)(pe,{onConfirm:nt,onSkip:rt});default:return null}})(),(0,g.jsx)("div",{ref:X,className:He})]})})]})})},Xe=(0,i.memo)(Ye)},32613(e,t,a){"use strict";a.d(t,{u:()=>y});var n=a(5544),r=a(9950);const i=a.p+"static/media/loader-a.faa9c43399f50eb8dc28.mp4",o=a.p+"static/media/loader-b.dbc0bbcbf5b37994d894.mp4",l="OnboardingCreatingBot_page__jtITO",s="OnboardingCreatingBot_screen__WVj8J",c="OnboardingCreatingBot_background__GWo5L",u="OnboardingCreatingBot_video__bKBG9",d="OnboardingCreatingBot_overlay__UhHoD",b="OnboardingCreatingBot_content__SfrpY",p="OnboardingCreatingBot_title__QiTA0",m="OnboardingCreatingBot_subtitle__9xdDm",h="OnboardingCreatingBot_spinner__50qOe",g="OnboardingCreatingBot_button__OUPSk";var v=a(44414);const f=e=>{let t=e.hasError,a=e.onRetry;const f=(0,r.useState)(()=>Math.random()<.5?i:o),y=(0,n.A)(f,1)[0];return(0,v.jsx)("div",{className:l,children:(0,v.jsxs)("div",{className:s,children:[!t&&(0,v.jsxs)("div",{className:c,"aria-hidden":!0,
1children:[(0,v.jsx)("video",{className:u,src:y,autoPlay:!0,loop:!0,muted:!0,playsInline:!0}),(0,v.jsx)("div",{className:d})]}),(0,v.jsx)("div",{className:b,children:t?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("p",{className:p,children:"Something went wrong"}),(0,v.jsx)("p",{className:m,children:"We couldn't create your companion. Please try again."}),(0,v.jsx)("button",{className:g,onClick:a,children:"Try again"})]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:h}),(0,v.jsx)("p",{className:p,children:"Creating your companion..."})]})})]})})},y=(0,r.memo)(f)},65346(e,t,a){"use strict";a.d(t,{xQ:()=>c,CO:()=>u.h,bm:()=>d.h});var n,r,i=a(9950);const o=["title","titleId"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},l.apply(null,arguments)}function s(e,t){let a=e.title,s=e.titleId,c=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;a[n]=e[n]}return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],-1===t.indexOf(a)&&{}.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,o);return i.createElement("svg",l({width:32,height:33,viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},c),a?i.createElement("title",{id:s},a):null,n||(n=i.createElement("path",{d:"M16 32.6562C7.29688 32.6562 0.0625 25.4219 0.0625 16.7188C0.0625 8 7.28125 0.78125 15.9844 0.78125C24.7031 0.78125 31.9375 8 31.9375 16.7188C31.9375 25.4219 24.7188 32.6562 16 32.6562ZM16 30C23.375 30 29.2812 24.0938 29.2812 16.7188C29.2812 9.34375 23.3594 3.4375 15.9844 3.4375C8.60938 3.4375 2.73438 9.34375 2.73438 16.7188C2.73438 24.0938 8.625 30 16 30ZM7.96875 16.7031C7.9687
15 16.3594 8.09375 16.1094 8.40625 15.7969L13.6875 10.4844C13.8906 10.2812 14.1719 10.1719 14.5 10.1719C15.1406 10.1719 15.625 10.6562 15.625 11.2969C15.625 11.6406 15.4844 11.9219 15.2812 12.1406L13.3281 14.0781L11.4531 15.6562L14.75 15.5312H22.8906C23.5625 15.5312 24.0625 16.0156 24.0625 16.7031C24.0625 17.375 23.5781 17.8594 22.8906 17.8594H14.75L11.4375 17.75L13.3281 19.3281L15.2812 21.2656C15.5 21.4688 15.625 21.75 15.625 22.0938C15.625 22.7344 15.1406 23.2344 14.5 23.2344C14.1719 23.2344 13.8906 23.1094 13.6875 22.9062L8.40625 17.6094C8.125 17.3281 7.96875 17.0469 7.96875 16.7031Z",fill:"var(--secondary-color)"})),r||(r=i.createElement("path",{d:"M16 32.6562C7.29688 32.6562 0.0625 25.4219 0.0625 16.7188C0.0625 8 7.28125 0.78125 15.9844 0.78125C24.7031 0.78125 31.9375 8 31.9375 16.7188C31.9375 25.4219 24.7188 32.6562 16 32.6562ZM16 30C23.375 30 29.2812 24.0938 29.2812 16.7188C29.2812 9.34375 23.3594 3.4375 15.9844 3.4375C8.60938 3.4375 2.73438 9.34375 2.73438 16.7188C2.73438 24.0938 8.625 30 16 30ZM7.96875 16.7031C7.9687
15 16.3594 8.09375 16.1094 8.40625 15.7969L13.6875 10.4844C13.8906 10.2812 14.1719 10.1719 14.5 10.1719C15.1406 10.1719 15.625 10.6562 15.625 11.2969C15.625 11.6406 15.4844 11.9219 15.2812 12.1406L13.3281 14.0781L11.4531 15.6562L14.75 15.5312H22.8906C23.5625 15.5312 24.0625 16.0156 24.0625 16.7031C24.0625 17.375 23.5781 17.8594 22.8906 17.8594H14.75L11.4375 17.75L13.3281 19.3281L15.2812 21.2656C15.5 21.4688 15.625 21.75 15.625 22.0938C15.625 22.7344 15.1406 23.2344 14.5 23.2344C14.1719 23.2344 13.8906 23.1094 13.6875 22.9062L8.40625 17.6094C8.125 17.3281 7.96875 17.0469 7.96875 16.7031Z",fill:"#41C5F2"})))}const c=i.forwardRef(s);a.p;var u=a(43899),d=a(41786)},28101(e,t,a){var n={"./bodyType/athletic.webp":30031,"./bodyType/bbw.webp":88644,"./bodyType/curvy.webp":24418,"./bodyType/slim.webp":88490,"./breastSize/huge.webp":86868,"./breastSize/large.webp":24386,"./breastSize/medium.webp":31940,"./breastSize/small.webp":67582,"./butt/huge.webp":95167,"./butt/large.webp":44647,"./butt/medium.webp":76223,"./butt/small.webp":36911,"./ethnicity/african.webp":76332,"./ethnicity/asian.webp":87116,"./ethnicity/european.webp":86845,"./ethnicity/latina.webp":10633};function r(e){var t=i(e);return a(t)}function i(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=i,e.exports=r,r.id=28101},30031(e,t,a){"use strict";e.exports=a.p+"static/media/athletic.cb3caca936ec26ae3c63.webp"},88644(e,t,a){"use strict";e.exports=a.p+"static/media/bbw.9912833895e378b8d809.webp"},24418(e,t,a){"use strict";e.exports=a.p+"static/media/curvy.7178a2db50ecd7dc4b22.webp"},88490(e,t,a){"use strict";e.exports=a.p+"static/media/slim.5da49188dc563c5aa855.webp"},86868(e,t,a){"use strict";e.exports=a.p+"static/media/huge.f9a34e0b27b3b7bbe8ad.webp"},24386(e,t,a){"use strict";e.exports=a.p+"static/media/large.75eb3c8811b16c98a8cc.webp"},31940(e,t,a){"use strict";e.exports=a.p+"static/media/medium.352d887c475a37f0ba86.webp"},67582(e,t,a){"use strict";e.exports=a.p+"static/media/small.08dcdc5a4a5683e9c1a5.webp"},95167(e,t,a){"use strict";e.exports=a.p+"static/media/huge.9d498175f201bc19f4d9.webp"},44647(e,t,a){"use strict";e.exports=a.p+"static/media/large.d795432a14670df106f2.webp"},76223(e,t,a){"use strict";e.exports=a.p+"static/media/medium.e64eefc6840bcf54b68e.webp"},36911(e,t,a){"use strict";e.exports=a.p+"static/media/small.5d509eade1d2dc95adb1.webp"},76332(e,t,a){"use strict";e.exports=a.p+"static/media/african.f3be72c5dc092cb056a9.webp"},87116(e,t,a){"use strict";e.exports=a.p+"static/media/asian.8e0a4050b65012715b41.webp"},86845(e,t,a){"use strict";e.exports=a.p+"static/media/european.462b9b4fd720ce23fb45.webp"},10633(e,t,a){"use strict";e.exports=a.p+"static/media/latina.bdb2eb44d845537f448d.webp"}}]);
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.