PageSourceSearch

https://datingprofiles.ai/assets/DatingApp.JHQ5Tqhm.js

js datingprofiles.ai collected 2026-10-05 11:57:00 UTC 16,352 bytes, 2 lines download raw bytes

1import{j as e,m as t,g as s,q as a,r as i,L as l,f as n,l as r,z as o,S as c,H as d,b as m,c as x}from"./ui-vendor.u_kZjLxs.js";import{R as p,d as h,u as g,L as u}from"./react-vendor.KItYxd1x.js";import{s as f,a as j,u as v,H as y,w as N,x as w,m as b,S as _}from"./blog.DcrcJPdH.js";import{g as S,a as k}from"./dating-apps.Uax-2Q52.js";import"./supabase.BjH2kG0y.js";const I=new Map,$=3e5;function L(e){return e.replace(/-profile-pictures$/,"")}async function C(e,t){const s=L(e),{data:a,error:i}=await f.from("dating_app_pages").select("*").eq("app_slug",s).eq("language",t).maybeSingle();return i?null:a}async function P(e,t){const s=Date.now(),a=L(e),i=`${a}::${t}`,l=I.get(i);if(l&&s-l.ts<$)return{content:l.data,isFallback:!1};const n=await C(e,t);if(n)return I.set(i,{data:n,ts:s}),{content:n,isFallback:!1};if("en"!==t){const t=`${a}::en`,i=I.get(t);if(i&&s-i.ts<$)return{content:i.data,isFallback:!0};const l=await C(e,"en");return I.set(t,{data:l,ts:s}),{content:l,isFallback:!0}}return I.set(i,{data:null,ts:s}),{content:null,isFallback:!1}}const q=({beforeImage:t,afterImage:a,isHovered:i})=>e.jsxs("div",{className:"relative aspect-[3/4] overflow-hidden rounded-xl",children:[e.jsx("img",{src:t,alt:"Before",className:"absolute inset-0 h-full w-full object-cover transition-transform duration-500"}),e.jsx("img",{src:a,alt:"After",className:"absolute inset-0 h-full w-full object-cover transition-all duration-500 "+(i?"opacity-100":"opacity-0")}),e.jsx("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/60 via-black/30 to-transparent pb-4 pt-20",children:e.jsxs("div",{className:"flex items-center justify-center space-x-2 text-white",children:[e.jsx("span",{className:"text-sm font-medium transition-opacity "+(i?"opacity-0":"opacity-100"),children:"Before"}),e.jsx(s,{className:"h-4 w-4 transition-opacity "+(i?"opacity-0":"opacity-100")}),e.jsx("span",{className:"text-sm font-medium transition-opacity "+(i?"opacity-100":"opacity-0"),children:"After"})]})})]});function M({appName:s,testimonials:a}){const[i,l]=p.useState(null);return(null==a?void 0:a.length)?e.jsxs("div",{className:"py-12",children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("h2",{className:"text-3xl font-bold text-gray-900",children:["Success Stories on ",s]}),e.jsxs("p",{className:"mt-4 text-gray-600",children:["See how our AI-enhanced photos transformed dating profiles on ",s]})]}),e.jsx("div",{className:"mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-3",children:a.map(((s,a)=>e.jsxs(t.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1*a},className:"group relative flex flex-col overflow-hidden rounded-2xl bg-white shadow-lg transition-shadow hover:shadow-xl",onMouseEnter:()=>l(s.id),onMouseLeave:()=>l(null),children:[e.jsx(q,{beforeImage:s.before_image,afterImage:s.after_image,isHovered:i===s.id}),e.jsxs("div",{className:"flex flex-1 flex-col p-6",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:s.name}),e.jsxs("p",{className:"text-sm text-gray-500",children:[s.age," • ",s.location]})]}),e.jsx("p",{className:"flex-1 text-gray-600",children:s.quote}),e.jsxs("div",{className:"mt-6 grid grid-cols-3 gap-4 border-t border-gray-100 pt-4",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-lg font-bold text-primary-600",children:s.stats_matches}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"More Matches"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-lg font-bold text-primary-600",children:s.stats_responses}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"More Responses"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-lg font-bold text-primary-600",children:s.stats_dates}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"More Dates"})]})]})]})]},s.id)))})]}):null}function H({appName:s,items:l}){const[n,r]=p.useState(0),{translate:o}=j();return l.length?e.jsxs("div",{className:"py-12",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:o("dating_app.section.faq_title")}),e.jsx("p",{className:"mt-4 text-gray-600",children:o("dating_app.section.faq_subtitle").replace(/\{name\}/g,s)})]}),e.jsx("div",{className:"mx-auto mt-10 max-w-3xl divide-y divide-gray-200 overflow-hidden rounded-2xl bg-white shadow-md ring-1 ring-gray-100",children:l.map(((s,l)=>e.jsxs("div",{children:[e.jsxs("button",{className:"flex w-full items-center justify-between gap-4 px-6 py-5 text-left",onClick:()=>r(n===l?null:l),"aria-expanded":n===l,children:[e.jsx("span",{className:"font-semibold text-gray-900",children:s.question}),e.jsx(a,{className:"h-5 w-5 flex-shrink-0 text-primary-600 transition-transform duration-200 "+(n===l?"rotate-180":"")})]}),e.jsx(i,{initial:!1,children:n===l&&e.jsx(t.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:e.jsx("p",{className:"px-6 pb-6 text-gray-600 leading-relaxed",children:s.answer})},"body")})]},l)))})]}):null}function T(e,t){return e.replace(/\{name\}/g,t)}function z(){var a,i,f;const{id:I}=h(),$=g(),{user:L}=v(),{language:C,getLocalizedPath:q,translate:z}=j(),[A,D]=p.useState(null),[F,B]=p.useState(null),[V,U]=p.useState([]),[E,R]=p.useState([]),[G,Y]=p.useState(null),[J,O]=p.useState(!0);p.useEffect((()=>{I&&(O(!0),async function(){var e;const[t,s,a,i]=await Promise.all([P(I,C),S(I,C),k(I),N(I)]);D(t.content),B(s),U(a),Y(i);const l=((null==(e=t.content)?void 0:e.app_name)||(null==s?void 0:s.name)||I).toLowerCase(),n=Array.from(new Set([l,I.toLowerCase(),I.replace(/-/g," ").toLowerCase(),l.replace(/\s+/g,""),l.replace(/\s+/g,"-")]));let r=await w(C,n,9);if((null==r?void 0:r.length)||"en"===C||(r=await w("en",n,9)),!(null==r?void 0:r.length))try{const e=await b("en",1,100),t=e=>(e||"").toLowerCase().replace(/<[^>]*>/g,"").replace(/&[a-z]+;/g," ").replace(/[^a-z0-9]+/g," ").trim(),s=n.map(t).filter(Boolean);r=(e.posts||[]).filter((e=>{var a;const i=` ${t(null==(a=null==e?void 0:e.title)?void 0:a.rendered)} `;return s.some((e=>i.includes(` ${e} `)))})).slice(0,9)}catch{}R(r||[]),O(!1)}().catch((e=>{O(!1)})))}),[I,C]);const K=()=>{L&&L.onboarding_completed?$("/dashboard"):$("en"===C?"/onboarding":`/${C}/onboarding`)};if(J)return e.jsx("div",{className:"flex min-h-[50vh] items-center justify-center",children:e.jsx(l,{className:"h-8 w-8 animate-spin text-primary-600"})});const Q=(null==A?void 0:A.app_name)||(null==F?void 0:F.name)||"",W=`${_}/dating-apps/${I}`;if(!A&&!F)return e.jsxs(e.Fragment,{children:[e.jsx(y,{title:`${Q||I} Profile Pictures | DatingProfiles.ai`,description:"AI-enhanced profile pictures. Get more matches.",canonicalUrl:W}),e.jsx("div",{className:"mx-auto max-w-7xl px-6 py-24 text-center lg:px-8",children:e.jsxs("div",{className:"mx-auto max-w-lg rounded-2xl border border-gray-200 bg-white p-10 shadow-sm",children:[e.jsx(n,{className:"mx-auto h-12 w-12 text-primary-400"}),e.jsx("h1",{className:"mt-6 text-2xl font-bold text-gray-900",children:z("dating_app.coming_soon.title")}),e.jsx("p",{className:"mt-4 text-gray-600",children:z("dating_app.coming_soon.description")}),e.jsxs("button",{onClick:K,className:"mt-8 inline-flex items-center rounded-lg bg-primary-600 px-5 py-2.5 text-sm font-semibold text-white hover:bg-primary-500",children:[z("dating_app.cta.get_started")," ",e.jsx(s,{className:"ml-2 h-4 w-4"})]})]})})]});const X=(null==A?void 0:A.meta_title)||`${Q} Profile Pictures | DatingProfiles.ai`,Z=(null==A?void 0:A.meta_description)||`Create stunning profile photos for ${Q}. Get more matches with AI-enhanced photos.`,ee=(null==A?void 0:A.h1)||`Enhance Your ${Q} Profile Photos`,te=(null==A?void 0:A.intro_text)||(null==F?void 0:F.description)||"",se=(null==A?void 0:A.cta_text)||`Transform Your ${Q} Photos Now`,ae=(null==(a=null==A?void 0:A.tips_section)?void 0:a.length)?A.tips_section:((null==F?void 0:F.features)||[]).map((e=>({title:e,body:""}))),ie=(null==(i=null==A?void 0:A.tips_section)?void 0:i.length)?[]:(null==F?void 0:F.photoTips)||[],le=(null==A?void 0:A.faq_section)||[],ne=(null==F?void 0:F.testimonials)||[];return e.jsxs("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:[e.jsx(y,{title:X,description:Z,image:(null==(f=ne[0])?void 0:f.afterImage)||void 0,type:"website",canonicalUrl:W}),e.jsx("div",{className:"py-12 lg:py-20",children:e.jsxs(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-center",children:[e.jsx("h1",{className:"text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl lg:text-6xl",children:ee}),te&&e.jsx("div",{className:"mx-auto mt-6 max-w-2xl text-lg text-gray-600",dangerouslySetInnerHTML:{__html:te}}),e.jsxs("div",{className:"mt-8 flex flex-col items-center justify-center gap-4 sm:flex-row",children:[e.jsxs("button",{onClick:K,className:"inline-flex items-center rounded-lg bg-primary-600 px-6 py-3 text-lg font-semibold text-white shadow-lg transition-colors hover:bg-primary-500",children:[se,e.jsx(s,{className:"ml-2 h-5 w-5"})]}),(null==F?void 0:F.url)&&e.jsxs("a",{href:F.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-gray-600 hover:text-gray-900",children:[T(z("dating_app.visit"),Q),e.jsx(r,{className:"ml-1 h-4 w-4"})]})]})]})}),ne.length>0&&e.jsx(M,{appName:Q,testimonials:ne}),ae.length>0&&e.jsxs("div",{className:"py-12",children:[e.jsx("div",{className:"text-center",children:e.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:T(z("dating_app.section.why_photos_matter"),Q)})}),e.jsx("div",{className:"mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-3",children:ae.map(((s,a)=>e.jsx(t.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.07*a},className:"rounded-xl bg-white p-6 shadow-md ring-1 ring-gray-100",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(o,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary-600"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:s.title}),s.body&&e.jsx("p",{className:"mt-1 text-sm text-gray-600",children:s.body})]})]})},a)))})]}),ie.length>0&&e.jsx("div",{className:"py-12",children:e.jsxs("div",{className:"rounded-2xl bg-primary-50 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:T(z("dating_app.section.photo_tips"),Q)}),e.jsx("p",{className:"mt-4 text-gray-600",children:T(z("dating_app.section.photo_tips_subtitle"),Q)}),e.jsx("div",{className:"mt-8 grid gap-6 sm:grid-cols-2",children:ie.map(((s,a)=>e.jsxs(t.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.07*a},className:"flex items-start gap-3",children:[e.jsx(n,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary-600"}),e.jsx("p",{className:"text-gray-700",children:s})]},a)))})]})}),le.length>0&&e.jsx(H,{appName:Q,items:le}),e.jsx("div",{className:"py-12",children:e.jsxs(t.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"rounded-2xl bg-gradient-to-br from-primary-600 to-primary-800 p-8 text-center text-white",children:[e.jsx("h2",{className:"text-3xl font-bold",children:T(z("dating_app.cta.transform_profile"),Q)}),e.jsx("p",{className:"mt-4 text-lg text-white/90",children:z("dating_app.cta.photos_de
1scription")}),e.jsxs("div",{className:"mt-8 flex flex-col items-center justify-center gap-6 sm:flex-row",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-3xl font-bold",children:"$29"}),e.jsx("div",{className:"text-sm text-white/80",children:z("dating_app.cta.one_time_payment")})]}),e.jsx("button",{onClick:K,className:"rounded-lg bg-white px-6 py-3 text-lg font-semibold text-primary-600 shadow-lg transition-colors hover:bg-gray-50",children:se}),G&&e.jsxs(u,{to:q(G.tool_href,C),className:"inline-flex items-center rounded-lg border border-white/40 bg-white/10 px-6 py-3 text-base font-semibold text-white transition-colors hover:bg-white/20",children:[G.tool_label,e.jsx(s,{className:"ml-2 h-4 w-4"})]})]}),e.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-6 text-sm",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(n,{className:"mr-1.5 h-4 w-4"}),z("dating_app.feature.unique_photos")]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(c,{className:"mr-1.5 h-4 w-4"}),z("dating_app.feature.reroll_credits")]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(d,{className:"mr-1.5 h-4 w-4"}),T(z("dating_app.feature.perfect_for"),Q)]})]})]})}),E.length>0&&e.jsxs("div",{className:"py-12",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:T(z("dating_app.section.expert_tips"),Q)}),e.jsx("p",{className:"mt-4 text-gray-600",children:T(z("dating_app.section.expert_tips_subtitle"),Q)})]}),e.jsx("div",{className:"mt-12 grid gap-8 sm:grid-cols-2 lg:grid-cols-3",children:E.map(((a,i)=>{var l,n,r,o,c,d,p,h,g,f;return e.jsxs(t.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"group relative flex flex-col overflow-hidden rounded-2xl bg-white shadow-lg transition-shadow hover:shadow-xl",children:[e.jsx(u,{to:q(`/blog/${a.slug}`,C),className:"absolute inset-0 z-10","aria-label":(null==(l=a.title)?void 0:l.rendered)||"Blog post"}),e.jsx("div",{className:"aspect-video overflow-hidden",children:e.jsx("img",{src:(null==(o=null==(r=null==(n=a._embedded)?void 0:n["wp:featuredmedia"])?void 0:r[0])?void 0:o.source_url)||a.featured_image_url||"https://images.unsplash.com/photo-1516035069371-29a1b244cc32?w=800&q=80",alt:(null==(c=a.title)?void 0:c.rendered)||"",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-105"})}),e.jsxs("div",{className:"flex flex-1 flex-col p-6",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-500",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(m,{className:"mr-1 h-4 w-4"}),e.jsx("time",{dateTime:a.date,children:new Date(a.date).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(x,{className:"mr-1 h-4 w-4"}),e.jsx("span",{children:a.author_name||(null==(h=null==(p=null==(d=a._embedded)?void 0:d.author)?void 0:p[0])?void 0:h.name)||"Thomas Jentzsch"})]})]}),e.jsx("h3",{className:"mt-4 text-xl font-semibold tracking-tight text-gray-900",children:e.jsx("span",{dangerouslySetInnerHTML:{__html:(null==(g=a.title)?void 0:g.rendered)||""}})}),e.jsx("div",{className:"mt-2 line-clamp-3 text-gray-600",dangerouslySetInnerHTML:{__html:((null==(f=a.excerpt)?void 0:f.rendered)||"").replace(/<[^>]+>/g,"")}}),e.jsxs("div",{className:"mt-4 text-sm font-medium text-primary-600 group-hover:text-primary-500",children:[z("dating_app.blog.read_more")," ",e.jsx(s,{className:"ml-1 inline-block h-4 w-4"})]})]})]},a.id||i)}))}),e.jsx("div",{className:"mt-10 text-center",children:e.jsxs(u,{to:q(`/blog?app=${encodeURIComponent(Q.toLowerCase())}`,C),className:"inline-flex items-center font-medium text-primary-600 hover:text-primary-500",children:[T(z("dating_app.blog.view_all"),Q)," ",e.jsx(s,{className:"ml-1 h-4 w-4"})]})})]}),V.length>0&&e.jsxs("div",{className:"py-12",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:z("dating_app.section.related_apps")}),e.jsx("div",{className:"mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:V.map((t=>e.jsxs(u,{to:q(`/dating-apps/${t.slug}`,C),className:"group rounded-xl bg-white p-6 shadow-md ring-1 ring-gray-100 transition-shadow hover:shadow-lg",children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:t.name}),e.jsx("p",{className:"mt-2 text-sm text-gray-600",children:t.description}),e.jsxs("div",{className:"mt-4 flex items-center text-primary-600",children:[z("dating_app.related.learn_more"),e.jsx(s,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})]},t.id)))})]})]})}export{z as default};
2//# sourceMappingURL=DatingApp.JHQ5Tqhm.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.