1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8584],{64354:function(e,t,n){"use strict";n.d(t,{_Z:function(){return f},rf:function(){return l},vQ:function(){return u}});var r,s=n(50029),o=n(87794),i=n.n(o),a=n(29496);n(36866);var c=n(85893),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&e.preventDefault();var t=window.location.href,n="".concat("https://api.datingai.pro","/auth/google?next=").concat(encodeURIComponent(t));window.location.href=n},u=function(e){var t=e.text,n=e.successMessage,r=void 0===n?"Copied":n,s=e.suppressSuccessSnackbar,o=void 0!==s&&s;navigator.clipboard.writeText(t).then(function(){o||(0,a.yv)(r,{content:function(e){return(0,c.jsxs)("div",{className:"flex min-w-[180px] max-w-[260px] items-center gap-2 rounded-2xl border border-[#d9c2ff] bg-[linear-gradient(135deg,#f8f4ff_0%,#f3edff_100%)] px-4 py-3 shadow-[0_14px_40px_rgba(103,0,253,0.14)]",children:[(0,c.jsx)("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#6700fd] text-white shadow-sm",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M20 6 9 17l-5-5"})})}),(0,c.jsx)("span",{className:"whitespace-nowrap text-sm font-semibold text-[#3b1a78]",children:r})]},e)}})}).catch(function(e){console.error("Could not copy text: ",e)})},f=(r=(0,s.Z)(i().mark(function e(t){var n,r,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.title,r=t.text,s=t.url,e.prev=1,!navigator.canShare){e.next=7;break}return e.next=5,navigator.share({title:n,text:r,url:s});case 5:e.next=8;break;case 7:(0,a.yv)("Unable to share");case 8:e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),console.error("Error sharing content:",e.t0),(0,a.yv)("Unable to share");case 14:case"end":return e.stop()}},e,null,[[1,10]])})),function(e){return r.apply(this,arguments)})},57864:function(e,t,n){"use strict";n(67294);var r=n(85893);t.Z=function(){return(0,r.jsxs)("div",{className:"dots",children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{}),(0,r.jsx)("span",{})]})}},52911:function(e,t,n){"use strict";n.r(t),n.d(t,{Preferences:function(){return y}});var r=n(27812),s=n(59499),o=n(50029),i=n(87794),a=n.n(i),c=n(9008),l=n.n(c),u=n(29496),f=n(67294),d=n(99030),x=n(36866),h=n(3032),p=n(57864),g=n(3552),b=n(64354),m=n(85893),v=function(e){var t,n,i=e.currentNumber,c=e.setCurrentNumber,l=e.isLoading,d=e.totalQuestions,p=e.savePreferences,g=e.isLoggedIn,b=e.setIsGeneratingBioF,v=e.setProfileCompleted,w=x.V3[i],y=w.KEY,j=w.QUESTION,N=w.TYPE,k=w.PLACEHOLDER,O=w.OPTIONS,C=void 0===O?[]:O,P=(0,f.useState)(""),S=P[0],D=P[1],E=(0,f.useState)([]),I=E[0],_=E[1];(0,f.useEffect)(function(){D(""),_([])},[i]);var L=(t=(0,o.Z)(a().mark(function e(){var t;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!1,!("INPUT"===N||"SINGLE_CHOICE"===N)){e.next=10;break}if(!(!S||!S.trim())){e.next=5;break}return(0,u.yv)("Please enter a value"),e.abrupt("return");case 5:return e.next=7,p((0,s.Z)({},y,S));case 7:t=e.sent,e.next=16;break;case 10:if(I.length){e.next=13;break}return(0,u.yv)("Please select some options"),e.abrupt("return");case 13:return e.next=15,p((0,s.Z)({},y,I));case 15:t=e.sent;case 16:if(t){e.next=27;break}if(Number(i)!==Object.keys(x.V3).length){e.next=26;break}if(!g){e.next=21;break}return window.location.href="/bio",e.abrupt("return");case 21:return b(!0),e.next=24,(0,h.$R)(4e3);case 24:return v(!0),e.abrupt("return");case 26:c(function(e){return Number(e)+1});case 27:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),A=(n=(0,o.Z)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Number(i)!==Object.keys(x.V3).length){e.next=9;break}if(!g){e.next=4;break}return window.location.href="/bio",e.abrupt("return");case 4:return b(!0),e.next=7,(0,h.$R)(4e3);case 7:return v(!0),e.abrupt("return");case 9:c(function(e){return Number(e)+1});case 10:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),T=i>3;return(0,m.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,m.jsx)("div",{className:"flex flex-1 w-full text-2xl font-semibold text-left text-gray-800 ",children:j}),(0,m.jsxs)("div",{className:"flex flex-col flex-wrap justify-start w-full h-full gap-2 overflow-x-hidden overflow-y-auto scroll-custom",style:{flex:"8 1 0"},children:["INPUT"===N&&(0,m.jsx)("input",{type:"text",className:"w-full px-4 py-2 mr-2 text-black border border-gray-300 rounded-lg focus:outline-none focus:border-blue-500",placeholder:void 0===k?"":k,value:S,onChange:1===i?function(e){var t=e.target.value;!isNaN(t)&&Number(t)>=0&&100>Number(t)&&D(t)}:function(e){return D(e.target.value)},onKeyDown:function(e){if("Enter"===e.key)return L()},required:!0}),"TAGS"===N&&(0,m.jsx)("div",{className:"flex flex-row flex-wrap h-full gap-2 p-2 justify-evenly",children:C.map(function(e,t){var n=I.includes(e);return(0,m.jsx)("button",{type:"submit",className:"border-[#6700fd] border font-medium py-2 px-4 h-19 rounded-lg focus:outline-none ".concat(n?"bg-[#6700fd] text-white hover:bg-[#5e00e6] hover:text-white":"text-gray-800"),onClick:function(){I.includes(e)?_(function(t){return t.filter(function(t){return t!==e})}):_(function(t){return[].concat((0,r.Z)(t),[e])})},children:e},t)})}),"SINGLE_CHOICE"===N&&(0,m.jsx)("div",{className:"flex flex-col flex-wrap items-center justify-center w-full h-full gap-2",children:C.map(function(e){return(0,m.jsx)("button",{type:"submit",className:"border-[#6700fd] hover:bg-[#5e00e6] border hover:text-white font-medium py-2 px-4 w-full h-19 rounded-lg focus:outline-none\n ".concat(S===e?"bg-[#6700fd] text-white":"text-gray-800"),onClick:function(){return D(e)},children:e},e)})})]}),(0,m.jsxs)("div",{className:"flex flex-row flex-1 w-full gap-2 py-10",children:[(0,m.jsxs)("button",{type:"submit",className:"bg-[#FB4570] hover:bg-[#FB4570] text-white font-medium py-2 px-4 ".concat(T?"w-4/5":"w-full"," rounded-lg focus:outline-none"),onClick:L,disabled:l,children:[l&&"Saving...",!l&&(0,m.jsx)(m.Fragment,{children:i===d?"Done":"Next"})]}),T&&(0,m.jsx)("button",{type:"submit",className:"bg-gray-300 text-gray-800 font-medium py-2 px-4 w-1/5 rounded-lg focus:outline-none",onClick:A,disabled:l,children:"Skip"})]})]})},w=function(e){var t=e.progress;return(0,m.jsx)("div",{className:"relative h-2 w-full bg-[#cccccc] rounded-full",children:(0,m.jsx)("div",{className:"absolute top-0 left-0 h-full rounded-full brand-gradient-diagonal",style:{width:"".concat(t,"%")}})})},y=function(){var e=(0,f.useContext)(g.Il).isLoggedIn,t=(0,f.useState)(1),n=t[0],r=t[1],s=(0,f.useState)(!1),o=s[0],i=s[1],a=(0,f.useState)(!1),c=a[0],u=a[1],h=(0,d.Z)(),y=h.savePreferences,j=h.isLoading,N=Object.keys(x.V3).length,k=Number(n/N*100);return n<=N-1&&(k=Number((n/N+.1)*100)),(0,m.jsxs)("main",{className:"flex h-screen w-full flex-col items-center justify-between text-l bg-white",children:[(0,m.jsx)(l(),{children:(0,m.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,m.jsxs)("div",{className:"flex flex-col w-full h-full max-w-lg mx-auto overflow-hidden bg-white rounded-lg shadow-lg",children:[(0,m.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 text-black",children:[(0,m.jsx)("div",{}),(0,m.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,m.jsx)("h1",{className:"mt-6 text-3xl font-bold brand-name-gradient",children:"DatingAI.pro"}),(0,m.jsx)("h2",{className:"text-xs font-normal brand-name-gradient",children:"#1 AI Dating Assistant"})]}),(0,m.jsx)("div",{})]}),!e&&o&&!c&&n===N&&(0,m.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4 px-6",children:[(0,m.jsx)(p.Z,{}),(0,m.jsx)("div",{className:"text-lg font-semibold text-gray-800",children:"Generating"})]}),!e&&c&&(0,m.jsxs)("div",{className:"flex flex-col items-center h-full gap-4 px-6 mt-32",children:[(0,m.jsx)("div",{className:"text-lg font-semibold text-gray-800",children:"Your bio is ready"}),(0,m.jsxs)("div",{className:"text-center text-gray-800",children:["Swipe right if you're ready for an exciting adventure! \uD83C\uDFA5 Netflix and chill? More like Netflix and thrill \uD83D\uDE08"," ",(0,m.jsx)("span",{className:"blur-sm",children:"Let's indulge in cinematic pleasures while exploring the chemistry between us. \uD83C\uDF39 Whispering sweet nothings during moonlit strolls or getting lost in each other's eyes at cozy bookstores, \uD83D\uDCAB our story will be a page-turner. Coffee and you? It's the perfect blend âï¸"})]}),(0,m.jsx)("button",{className:"bg-[#6700fd] hover:bg-[#5e00e6] text-white font-medium py-2 px-4 h-19 cursor-pointer rounded-lg focus:outline-none mt-[-110px] z-10",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},onClick:b.rf,children:"Signup to get your free profile"})]}),!c&&!o&&n<=N&&(0,m.jsxs)("div",{className:"flex flex-col h-full gap-4 px-6",children:[(0,m.jsx)("div",{className:"text-sm font-semibold text-gray-500",children:x.V3[n].ONE_LINER}),(0,m.jsx)(w,{progress:k}),(0,m.jsx)(v,{currentNumber:n,setCurrentNumber:r,isLoading:j,totalQuestions:N,savePreferences:y,isLoggedIn:e,setIsGeneratingBioF:i,setProfileCompleted:u})]})]})]})};t.default=y},3032:function(e,t,n){"use strict";n.d(t,{$R:function(){return c},c8:function(){return f},tq:function(){return l},xn:function(){return u}});var r=n(59499),s=n(27812),o=n(29496);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c=function(e){return new Promise(function(t){return setTimeout(t,e)})},l=function(){return navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i)},u=function(e,t){return(0,s.Z)(e).sort(function(){return .5-Math.random()}).slice(0,t)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a(a({},{title:"DatingAI.pro",text:"Check out DatingAI.pro - The #1 AI Dating Assistant that helps you get more matches!",url:"https://datingai.pro"}),e);navigator.share&&navigator.canShare&&navigator.canShare(t)?navigator.share(t).then(function(){return console.log("Shared successfully")}).catch(function(e){return console.log("Error sharing:",e)}):navigator.clipboard.writeText(t.url).then(function(){(0,o.yv)("Link copied to clipboard! Share it with your friends.")}).catch(function(e){console.error("Failed to copy: ",e)})}},9857:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/preferences",function(){return n(52911)}])}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=9857)}),_N_E=e.O()}]);
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.