(()=>{var e={};e.id=1715,e.ids=[1715],e.modules={53524:e=>{"use strict";e.exports=require("@prisma/client")},47849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},55403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},94749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},50852:e=>{"use strict";e.exports=require("async_hooks")},32081:e=>{"use strict";e.exports=require("child_process")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},73292:e=>{"use strict";e.exports=require("fs/promises")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},76224:e=>{"use strict";e.exports=require("tty")},73837:e=>{"use strict";e.exports=require("util")},25178:(e,a,t)=>{"use strict";t.r(a),t.d(a,{GlobalError:()=>n.ZP,__next_app__:()=>m,originalPathname:()=>d,pages:()=>c,routeModule:()=>x,tree:()=>l});var s=t(50482),r=t(69108),n=t(83543),i=t(68300),o={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>i[e]);t.d(a,o);let l=["",{children:["(dashboard)",{children:["create",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(t.bind(t,54165)),"C:\\test2\\pagecraft-ai\\src\\app\\(dashboard)\\create\\page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(t.bind(t,95021)),"C:\\test2\\pagecraft-ai\\src\\app\\(dashboard)\\layout.tsx"]}]},{layout:[()=>Promise.resolve().then(t.bind(t,43625)),"C:\\test2\\pagecraft-ai\\src\\app\\layout.tsx"],error:[()=>Promise.resolve().then(t.bind(t,24117)),"C:\\test2\\pagecraft-ai\\src\\app\\error.tsx"],"not-found":[()=>Promise.resolve().then(t.bind(t,48206)),"C:\\test2\\pagecraft-ai\\src\\app\\not-found.tsx"]}],c=["C:\\test2\\pagecraft-ai\\src\\app\\(dashboard)\\create\\page.tsx"],d="/(dashboard)/create/page",m={require:t,loadChunk:()=>Promise.resolve()},x=new s.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/(dashboard)/create/page",pathname:"/create",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},86379:(e,a,t)=>{Promise.resolve().then(t.bind(t,1792))},96782:(e,a,t)=>{Promise.resolve().then(t.bind(t,26350))},63024:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},91700:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},64290:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},62312:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},71532:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},97751:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},20016:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},42739:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},24105:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("MousePointerClick",[["path",{d:"m9 9 5 12 1.8-5.2L21 14Z",key:"1b76lo"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}]])},70009:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]])},23485:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},3380:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},89895:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},31770:(e,a,t)=>{"use strict";t.d(a,{Z:()=>s});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let s=(0,t(69224).Z)("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},1792:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>S});var s=t(95344),r=t(47983),n=t.n(r),i=t(3729),o=t(8428),l=t(3380),c=t(91700),d=t(89895),m=t(69224);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let x=(0,m.Z)("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);var p=t(70009),u=t(24105);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let g=(0,m.Z)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]]);var f=t(20016),b=t(42739),h=t(30473),y=t(62312),j=t(64290),w=t(31770),k=t(63024),v=t(35299),N=t(9885);let z=[{value:"modern",label:"\uD83D\uDD37 Modern"},{value:"minimal",label:"⬜ Minimal"},{value:"bold",label:"\uD83D\uDFE5 Bold"},{value:"playful",label:"\uD83D\uDFE1 Playful"},{value:"elegant",label:"\uD83D\uDFE3 Elegant"}],C=[{value:"professional",label:"\uD83D\uDCBC Professional"},{value:"friendly",label:"\uD83D\uDE0A Friendly"},{value:"casual",label:"✌️ Casual"},{value:"authoritative",label:"\uD83C\uDFDB️ Authoritative"},{value:"playful",label:"\uD83C\uDF89 Playful"}],P=[l.Z,c.Z,d.Z,x,p.Z,u.Z,g];function S(){let e=(0,o.useRouter)(),{t:a,isRTL:t,lang:r}=(0,N.Z)(),c=[{title:a("uploadImage"),desc:a("uploadImageDesc")},{title:a("businessBasics"),desc:a("reviewAISuggested")},{title:a("targetAudience"),desc:a("reviewAudienceDetails")},{title:a("productsAndServices"),desc:a("reviewWhatYouOffer")},{title:a("brandAndDesign"),desc:a("reviewLookAndFeel")},{title:a("callToAction"),desc:a("reviewYourCTA")},{title:"ar"===r?"صور إضافية":"Additional Photos",desc:"ar"===r?"ارفع حتى 3 صور إضافية (اختياري)":"Upload up to 3 more product photos (optional)"}],d=[a("indTechnology"),a("indEcommerce"),a("indHealthcare"),a("indEducation"),a("indFinance"),a("indRealEstate"),a("indFoodBeverage"),a("indTravel"),a("indFitness"),a("indMarketing"),a("indConsulting"),a("indLegal"),a("indNonprofit"),a("indEntertainment"),a("indOther")],m=[{value:"signup",label:a("ctaSignUp")},{value:"contact",label:a("ctaContactUs")},{value:"purchase",label:a("ctaPurchase")},{value:"download",label:a("ctaDownload")},{value:"learn-more",label:a("ctaLearnMore")}],x=(0,i.useRef)(null),p=(0,i.useRef)(null),[u,g]=(0,i.useState)(0),[S,Z]=(0,i.useState)(!1),[I,_]=(0,i.useState)(!1),[D,A]=(0,i.useState)(!1),[M,q]=(0,i.useState)(null),[O,T]=(0,i.useState)(!1),[R,U]=(0,i.useState)(null),[E,G]=(0,i.useState)([]),[F,$]=(0,i.useState)([]),[L,B]=(0,i.useState)(!1),[V,H]=(0,i.useState)("forward"),[J,W]=(0,i.useState)(null),[Y,X]=(0,i.useState)({designStyle:"modern",toneOfVoice:"professional",ctaGoal:"signup"}),K=(e,a)=>{X(t=>({...t,[e]:a}))},Q=async e=>{if(!J){W(e);try{let a=await fetch("/api/regenerate-field",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({field:e,fieldLabel:{businessName:"business name",description:"brief business description",targetAudience:"target audience description",painPoints:"customer pain points",products:"products and services description",uniqueSellingPoints:"unique selling points",pricingModel:"pricing model",primaryCTA:"call-to-action button text"}[e]||e,currentValue:Y[e]||"",context:{businessName:Y.businessName,industry:Y.industry,description:Y.description,products:Y.products},lang:r})});if(a.ok){let{value:t}=await a.json();t&&K(e,t)}}catch{}W(null)}},ee=()=>{H("forward"),g(e=>e+1)},ea=async e=>{let a=e.target.files?.[0];if(!a)return;let t=new FileReader;t.onload=e=>q(e.target?.result),t.readAsDataURL(a),_(!0);let s=new FileReader;s.onload=async e=>{let t=(e.target?.result).split(",")[1];try{let e=await fetch("/api/analyze-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageBase64:t,mimeType:a.type,lang:r})});if(!e.ok){let a=await e.json();alert(a.error||"Failed to analyze image"),_(!1);return}let{analysis:s}=await e.json();X({businessName:s.businessName||"",industry:s.industry||"",description:s.description||"",targetAudience:s.targetAudience||"",painPoints:s.painPoints||"",products:s.products||"",uniqueSellingPoints:s.uniqueSellingPoints||"",pricingModel:s.pricingModel||"",brandColors:s.brandColors||"",designStyle:s.designStyle||"modern",toneOfVoice:s.toneOfVoice||"professional",primaryCTA:s.primaryCTA||"",ctaGoal:s.ctaGoal||"signup"}),T(!0),g(1);try{let e=await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageBase64:t,mimeType:a.type})});if(e.ok){let{url:a}=await e.json();U(a)}}catch{}}catch{alert("Failed to analyze image. Please try again.")}_(!1)},s.readAsDataURL(a)},et=async e=>{let a=e.target.files?.[0];if(!a||E.length>=3)return;e.target.value="";let t=new FileReader;t.onload=async e=>{let t=e.target?.result,s=t.split(",")[1];B(!0);try{let e=await fetch("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({imageBase64:s,mimeType:a.type,prefix:"secondary"})});if(e.ok){let{url:a}=await e.json();G(e=>[...e,t]),$(e=>[...e,a])}}catch{}B(!1)},t.readAsDataURL(a)},es=e=>{G(a=>a.filter((a,t)=>t!==e)),$(a=>a.filter((a,t)=>t!==e))},er=()=>{switch(u){case 0:return M&&!I;case 1:return Y.businessName&&Y.industry&&Y.description;case 2:return Y.targetAudience&&Y.painPoints;case 3:return Y.products&&Y.uniqueSellingPoints;case 4:return Y.designStyle&&Y.toneOfVoice;case 5:return Y.primaryCTA&&Y.ctaGoal;default:return!0}},en=async()=>{A(!0);try{let a=await fetch("/api/pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:Y.businessName,questionnaireData:Y,pageConfig:{lang:r}})});if(!a.ok){let e=await a.json();alert(e.error||"Failed to create page"),A(!1);return}let t=await a.json(),s=await fetch("/api/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({questionnaireData:{...Y,productImageUrl:R||void 0,secondaryImages:F.length>0?F:void 0},lang:r})});if(!s.ok){e.push(`/pages/${t.id}/edit`);return}let{content:n}=await s.json();await fetch(`/api/pages/${t.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({aiGeneratedContent:n})}),e.push(`/pages/${t.id}/edit`)}catch(e){alert("Something went wrong. Please try again."),A(!1)}};return I?(0,s.jsxs)(s.Fragment,{children:[s.jsx(n(),{id:"7e587c904a0d9de0",children:"@-webkit-keyframes float{0%,100%{-webkit-transform:translatey(0px);transform:translatey(0px)}50%{-webkit-transform:translatey(-20px);transform:translatey(-20px)}}@-moz-keyframes float{0%,100%{-moz-transform:translatey(0px);transform:translatey(0px)}50%{-moz-transform:translatey(-20px);transform:translatey(-20px)}}@-o-keyframes float{0%,100%{-o-transform:translatey(0px);transform:translatey(0px)}50%{-o-transform:translatey(-20px);transform:translatey(-20px)}}@keyframes float{0%,100%{-webkit-transform:translatey(0px);-moz-transform:translatey(0px);-o-transform:translatey(0px);transform:translatey(0px)}50%{-webkit-transform:translatey(-20px);-moz-transform:translatey(-20px);-o-transform:translatey(-20px);transform:translatey(-20px)}}@-webkit-keyframes glowPulse{0%,100%{-webkit-box-shadow:0 0 20px rgba(99,102,241,.2);box-shadow:0 0 20px rgba(99,102,241,.2)}50%{-webkit-box-shadow:0 0 40px rgba(99,102,241,.4);box-shadow:0 0 40px rgba(99,102,241,.4)}}@-moz-keyframes glowPulse{0%,100%{-moz-box-shadow:0 0 20px rgba(99,102,241,.2);box-shadow:0 0 20px rgba(99,102,241,.2)}50%{-moz-box-shadow:0 0 40px rgba(99,102,241,.4);box-shadow:0 0 40px rgba(99,102,241,.4)}}@-o-keyframes glowPulse{0%,100%{box-shadow:0 0 20px rgba(99,102,241,.2)}50%{box-shadow:0 0 40px rgba(99,102,241,.4)}}@keyframes glowPulse{0%,100%{-webkit-box-shadow:0 0 20px rgba(99,102,241,.2);-moz-box-shadow:0 0 20px rgba(99,102,241,.2);box-shadow:0 0 20px rgba(99,102,241,.2)}50%{-webkit-box-shadow:0 0 40px rgba(99,102,241,.4);-moz-box-shadow:0 0 40px rgba(99,102,241,.4);box-shadow:0 0 40px rgba(99,102,241,.4)}}"}),(0,s.jsxs)("div",{className:"jsx-7e587c904a0d9de0 flex flex-col items-center justify-center min-h-[60vh] gap-6",children:[(0,s.jsxs)("div",{className:"jsx-7e587c904a0d9de0 fixed inset-0 pointer-events-none overflow-hidden -z-10",children:[s.jsx("div",{style:{animation:"float 8s ease-in-out infinite"},className:"jsx-7e587c904a0d9de0 absolute top-1/4 -left-32 w-64 h-64 bg-indigo-500/[0.07] rounded-full blur-3xl"}),s.jsx("div",{style:{animation:"float 10s ease-in-out infinite 2s"},className:"jsx-7e587c904a0d9de0 absolute bottom-1/4 -right-32 w-80 h-80 bg-purple-500/[0.05] rounded-full blur-3xl"})]}),(0,s.jsxs)("div",{style:{animation:"glowPulse 2s ease-in-out infinite"},className:"jsx-7e587c904a0d9de0 relative w-32 h-32",children:[s.jsx("div",{style:{animation:"spin 3s linear infinite"},className:"jsx-7e587c904a0d9de0 absolute inset-0 rounded-full border-2 border-indigo-500/30"}),s.jsx("div",{style:{animation:"spin 2s linear infinite reverse"},className:"jsx-7e587c904a0d9de0 absolute inset-2 rounded-full border-2 border-purple-500/20"}),s.jsx("div",{style:{animation:"spin 1.5s linear infinite"},className:"jsx-7e587c904a0d9de0 absolute inset-4 rounded-full border-t-2 border-indigo-400"}),s.jsx(f.Z,{className:"absolute inset-0 m-auto h-12 w-12 text-indigo-400"})]}),(0,s.jsxs)("div",{className:"jsx-7e587c904a0d9de0 text-center",children:[s.jsx("h2",{className:"jsx-7e587c904a0d9de0 text-2xl font-bold text-white mb-2",children:a("aiAnalyzingImage")}),s.jsx("p",{className:"jsx-7e587c904a0d9de0 text-gray-400",children:a("extractingBusiness")})]}),s.jsx(b.Z,{className:"h-8 w-8 animate-spin text-indigo-400"})]})]}):D?(0,s.jsxs)(s.Fragment,{children:[s.jsx(n(),{id:"7e587c904a0d9de0",children:"@-webkit-keyframes float{0%,100%{-webkit-transform:translatey(0px);transform:translatey(0px)}50%{-webkit-transform:translatey(-20px);transform:translatey(-20px)}}@-moz-keyframes float{0%,100%{-moz-transform:translatey(0px);transform:translatey(0px)}50%{-moz-transform:translatey(-20px);transform:translatey(-20px)}}@-o-keyframes float{0%,100%{-o-transform:translatey(0px);transform:translatey(0px)}50%{-o-transform:translatey(-20px);transform:translatey(-20px)}}@keyframes float{0%,100%{-webkit-transform:translatey(0px);-moz-transform:translatey(0px);-o-transform:translatey(0px);transform:translatey(0px)}50%{-webkit-transform:translatey(-20px);-moz-transform:translatey(-20px);-o-transform:translatey(-20px);transform:translatey(-20px)}}@-webkit-keyframes glowPulse{0%,100%{-webkit-box-shadow:0 0 20px rgba(99,102,241,.2);box-shadow:0 0 20px rgba(99,102,241,.2)}50%{-webkit-box-shadow:0 0 40px rgba(99,102,241,.4);box-shadow:0 0 40px rgba(99,102,241,.4)}}@-moz-keyframes glowPulse{0%,100%{-moz-box-shadow:0 0 20px rgba(99,102,241,.2);box-shadow:0 0 20px rgba(99,102,241,.2)}50%{-moz-box-shadow:0 0 40px rgba(99,102,241,.4);box-shadow:0 0 40px rgba(99,102,241,.4)}}@-o-keyframes glowPulse{0%,100%{box-shadow:0 0 20px rgba(99,102,241,.2)}50%{box-shadow:0 0 40px rgba(99,102,241,.4)}}@keyframes glowPulse{0%,100%{-webkit-box-shadow:0 0 20px rgba(99,102,241,.2);-moz-box-shadow:0 0 20px rgba(99,102,241,.2);box-shadow:0 0 20px rgba(99,102,241,.2)}50%{-webkit-box-shadow:0 0 40px rgba(99,102,241,.4);-moz-box-shadow:0 0 40px rgba(99,102,241,.4);box-shadow:0 0 40px rgba(99,102,241,.4)}}"}),(0,s.jsxs)("div",{className:"jsx-7e587c904a0d9de0 flex flex-col items-center justify-center min-h-[60vh] gap-6",children:[(0,s.jsxs)("div",{className:"jsx-7e587c904a0d9de0 fixed inset-0 pointer-events-none overflow-hidden -z-10",children:[s.jsx("div",{style:{animation:"float 8s ease-in-out infinite"},className:"jsx-7e587c904a0d9de0 absolute top-1/4 -left-32 w-64 h-64 bg-indigo-500/[0.07] rounded-full blur-3xl"}),s.jsx("div",{style:{animation:"float 10s ease-in-out infinite 2s"},className:"jsx-7e587c904a0d9de0 absolute bottom-1/4 -right-32 w-80 h-80 bg-purple-500/[0.05] rounded-full blur-3xl"})]}),(0,s.jsxs)("div",{style:{animation:"glowPulse 2s ease-in-out infinite"},className:"jsx-7e587c904a0d9de0 relative w-32 h-32",children:[s.jsx("div",{style:{animation:"spin 3s linear infinite"},className:"jsx-7e587c904a0d9de0 absolute inset-0 rounded-full border-2 border-indigo-500/30"}),s.jsx("div",{style:{animation:"spin 2s linear infinite reverse"},className:"jsx-7e587c904a0d9de0 absolute inset-2 rounded-full border-2 border-purple-500/20"}),s.jsx("div",{style:{animation:"spin 1.5s linear infinite"},className:"jsx-7e587c904a0d9de0 absolute inset-4 rounded-full border-t-2 border-indigo-400"}),s.jsx(h.Z,{className:"absolute inset-0 m-auto h-12 w-12 text-indigo-400"})]}),(0,s.jsxs)("div",{className:"jsx-7e587c904a0d9de0 text-center",children:[(0,s.jsxs)("h2",{className:"jsx-7e587c904a0d9de0 text-2xl font-bold text-white mb-2",children:[a("aiCraftingPage"),s.jsx("span",{style:{animation:"pulse 1.5s ease-in-out infinite"},className:"jsx-7e587c904a0d9de0",children:"."}),s.jsx("span",{style:{animation:"pulse 1.5s ease-in-out infinite 0.3s"},className:"jsx-7e587c904a0d9de0",children:"."}),s.jsx("span",{style:{animation:"pulse 1.5s ease-in-out infinite 0.6s"},className:"jsx-7e587c904a0d9de0",children:"."})]}),s.jsx("p",{className:"jsx-7e587c904a0d9de0 text-gray-400",children:a("generatingCopy")})]}),s.jsx(b.Z,{className:"h-8 w-8 animate-spin text-indigo-400"})]})]}):(0,s.jsxs)(s.Fragment,{children:[s.jsx(n(),{id:"95366a8cc018cbe0",children:"@-webkit-keyframes fadeInUp{from{-webkit-transform:translatey(20px);transform:translatey(20px);opacity:0}to{-webkit-transform:translatey(0);transform:translatey(0);opacity:1}}@-moz-keyframes fadeInUp{from{-moz-transform:translatey(20px);transform:translatey(20px);opacity:0}to{-moz-transform:translatey(0);transform:translatey(0);opacity:1}}@-o-keyframes fadeInUp{from{-o-transform:translatey(20px);transform:translatey(20px);opacity:0}to{-o-transform:translatey(0);transform:translatey(0);opacity:1}}@keyframes fadeInUp{from{-webkit-transform:translatey(20px);-moz-transform:translatey(20px);-o-transform:translatey(20px);transform:translatey(20px);opacity:0}to{-webkit-transform:translatey(0);-moz-transform:translatey(0);-o-transform:translatey(0);transform:translatey(0);opacity:1}}@-webkit-keyframes slideInLeft{from{-webkit-transform:translatex(-30px);transform:translatex(-30px);opacity:0}to{-webkit-transform:translatex(0);transform:translatex(0);opacity:1}}@-moz-keyframes slideInLeft{from{-moz-transform:translatex(-30px);transform:translatex(-30px);opacity:0}to{-moz-transform:translatex(0);transform:translatex(0);opacity:1}}@-o-keyframes slideInLeft{from{-o-transform:translatex(-30px);transform:translatex(-30px);opacity:0}to{-o-transform:translatex(0);transform:translatex(0);opacity:1}}@keyframes slideInLeft{from{-webkit-transform:translatex(-30px);-moz-transform:translatex(-30px);-o-transform:translatex(-30px);transform:translatex(-30px);opacity:0}to{-webkit-transform:translatex(0);-moz-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0);opacity:1}}@-webkit-keyframes slideInRight{from{-webkit-transform:translatex(30px);transform:translatex(30px);opacity:0}to{-webkit-transform:translatex(0);transform:translatex(0);opacity:1}}@-moz-keyframes slideInRight{from{-moz-transform:translatex(30px);transform:translatex(30px);opacity:0}to{-moz-transform:translatex(0);transform:translatex(0);opacity:1}}@-o-keyframes slideInRight{from{-o-transform:translatex(30px);transform:translatex(30px);opacity:0}to{-o-transform:translatex(0);transform:translatex(0);opacity:1}}@keyframes slideInRight{from{-webkit-transform:translatex(30px);-moz-transform:translatex(30px);-o-transform:translatex(30px);transform:translatex(30px);opacity:0}to{-webkit-transform:translatex(0);-moz-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0);opacity:1}}@-webkit-keyframes shimmer{0%{background-position:0%center}100%{background-position:200%center}}@-moz-keyframes shimmer{0%{background-position:0%center}100%{background-position:200%center}}@-o-keyframes shimmer{0%{background-position:0%center}100%{background-position:200%center}}@keyframes shimmer{0%{background-position:0%center}100%{background-position:200%center}}@-webkit-keyframes float{0%,100%{-webkit-transform:translatey(0px);transform:translatey(0px)}50%{-webkit-transform:translatey(-20px);transform:translatey(-20px)}}@-moz-keyframes float{0%,100%{-moz-transform:translatey(0px);transform:translatey(0px)}50%{-moz-transform:translatey(-20px);transform:translatey(-20px)}}@-o-keyframes float{0%,100%{-o-transform:translatey(0px);transform:translatey(0px)}50%{-o-transform:translatey(-20px);transform:translatey(-20px)}}@keyframes float{0%,100%{-webkit-transform:translatey(0px);-moz-transform:translatey(0px);-o-transform:translatey(0px);transform:translatey(0px)}50%{-webkit-transform:translatey(-20px);-moz-transform:translatey(-20px);-o-transform:translatey(-20px);transform:translatey(-20px)}}@-webkit-keyframes glowPulse{0%,100%{-webkit-box-shadow:0 0 20px rgba(99,102,241,.15);box-shadow:0 0 20px rgba(99,102,241,.15)}50%{-webkit-box-shadow:0 0 40px rgba(99,102,241,.3);box-shadow:0 0 40px rgba(99,102,241,.3)}}@-moz-keyframes glowPulse{0%,100%{-moz-box-shadow:0 0 20px rgba(99,102,241,.15);box-shadow:0 0 20px rgba(99,102,241,.15)}50%{-moz-box-shadow:0 0 40px rgba(99,102,241,.3);box-shadow:0 0 40px rgba(99,102,241,.3)}}@-o-keyframes glowPulse{0%,100%{box-shadow:0 0 20px rgba(99,102,241,.15)}50%{box-shadow:0 0 40px rgba(99,102,241,.3)}}@keyframes glowPulse{0%,100%{-webkit-box-shadow:0 0 20px rgba(99,102,241,.15);-moz-box-shadow:0 0 20px rgba(99,102,241,.15);box-shadow:0 0 20px rgba(99,102,241,.15)}50%{-webkit-box-shadow:0 0 40px rgba(99,102,241,.3);-moz-box-shadow:0 0 40px rgba(99,102,241,.3);box-shadow:0 0 40px rgba(99,102,241,.3)}}@-webkit-keyframes borderRotate{0%{--border-angle:0deg}100%{--border-angle:360deg}}@-moz-keyframes borderRotate{0%{--border-angle:0deg}100%{--border-angle:360deg}}@-o-keyframes borderRotate{0%{--border-angle:0deg}100%{--border-angle:360deg}}@keyframes borderRotate{0%{--border-angle:0deg}100%{--border-angle:360deg}}@-webkit-keyframes sparkle{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}50%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(0);transform:scale(0);opacity:0}}@-moz-keyframes sparkle{0%{-moz-transform:scale(0);transform:scale(0);opacity:0}50%{-moz-transform:scale(1);transform:scale(1);opacity:1}100%{-moz-transform:scale(0);transform:scale(0);opacity:0}}@-o-keyframes sparkle{0%{-o-transform:scale(0);transform:scale(0);opacity:0}50%{-o-transform:scale(1);transform:scale(1);opacity:1}100%{-o-transform:scale(0);transform:scale(0);opacity:0}}@keyframes sparkle{0%{-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);transform:scale(0);opacity:0}50%{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);transform:scale(0);opacity:0}}@-webkit-keyframes staggerIn{from{-webkit-transform:translatey(10px);transform:translatey(10px);opacity:0}to{-webkit-transform:translatey(0);transform:translatey(0);opacity:1}}@-moz-keyframes staggerIn{from{-moz-transform:translatey(10px);transform:translatey(10px);opacity:0}to{-moz-transform:translatey(0);transform:translatey(0);opacity:1}}@-o-keyframes staggerIn{from{-o-transform:translatey(10px);transform:translatey(10px);opacity:0}to{-o-transform:translatey(0);transform:translatey(0);opacity:1}}@keyframes staggerIn{from{-webkit-transform:translatey(10px);-moz-transform:translatey(10px);-o-transform:translatey(10px);transform:translatey(10px);opacity:0}to{-webkit-transform:translatey(0);-moz-transform:translatey(0);-o-transform:translatey(0);transform:translatey(0);opacity:1}}@-webkit-keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spin{from{-moz-transform:rotate(0deg);transform:rotate(0deg)}to{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spin{from{-o-transform:rotate(0deg);transform:rotate(0deg)}to{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{from{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes uploadBounce{0%,100%{-webkit-transform:translatey(0);transform:translatey(0)}50%{-webkit-transform:translatey(-8px);transform:translatey(-8px)}}@-moz-keyframes uploadBounce{0%,100%{-moz-transform:translatey(0);transform:translatey(0)}50%{-moz-transform:translatey(-8px);transform:translatey(-8px)}}@-o-keyframes uploadBounce{0%,100%{-o-transform:translatey(0);transform:translatey(0)}50%{-o-transform:translatey(-8px);transform:translatey(-8px)}}@keyframes uploadBounce{0%,100%{-webkit-transform:translatey(0);-moz-transform:translatey(0);-o-transform:translatey(0);transform:translatey(0)}50%{-webkit-transform:translatey(-8px);-moz-transform:translatey(-8px);-o-transform:translatey(-8px);transform:translatey(-8px)}}@-webkit-keyframes scaleIn{from{-webkit-transform:scale(.85);transform:scale(.85);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-moz-keyframes scaleIn{from{-moz-transform:scale(.85);transform:scale(.85);opacity:0}to{-moz-transform:scale(1);transform:scale(1);opacity:1}}@-o-keyframes scaleIn{from{-o-transform:scale(.85);transform:scale(.85);opacity:0}to{-o-transform:scale(1);transform:scale(1);opacity:1}}@keyframes scaleIn{from{-webkit-transform:scale(.85);-moz-transform:scale(.85);-o-transform:scale(.85);transform:scale(.85);opacity:0}to{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes borderGlow{0%{background-position:0%50%}50%{background-position:100%50%}100%{background-position:0%50%}}@-moz-keyframes borderGlow{0%{background-position:0%50%}50%{background-position:100%50%}100%{background-position:0%50%}}@-o-keyframes borderGlow{0%{background-position:0%50%}50%{background-position:100%50%}100%{background-position:0%50%}}@keyframes borderGlow{0%{background-position:0%50%}50%{background-position:100%50%}100%{background-position:0%50%}}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}@-moz-keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}@-o-keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}.glass-input{-webkit-transition:all.2s ease;-moz-transition:all.2s ease;-o-transition:all.2s ease;transition:all.2s ease}.glass-input:focus{-webkit-box-shadow:0 0 12px rgba(99,102,241,.15);-moz-box-shadow:0 0 12px rgba(99,102,241,.15);box-shadow:0 0 12px rgba(99,102,241,.15);border-color:rgba(99,102,241,.4)}"}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 max-w-4xl mx-auto relative",children:[(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 fixed inset-0 pointer-events-none overflow-hidden -z-10",children:[s.jsx("div",{style:{animation:"float 8s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 absolute top-1/4 -left-32 w-64 h-64 bg-indigo-500/[0.07] rounded-full blur-3xl"}),s.jsx("div",{style:{animation:"float 10s ease-in-out infinite 2s"},className:"jsx-95366a8cc018cbe0 absolute bottom-1/4 -right-32 w-80 h-80 bg-purple-500/[0.05] rounded-full blur-3xl"}),s.jsx("div",{style:{animation:"float 7s ease-in-out infinite 4s"},className:"jsx-95366a8cc018cbe0 absolute top-3/4 left-1/3 w-48 h-48 bg-cyan-500/[0.04] rounded-full blur-3xl"})]}),s.jsx("div",{style:{animation:"fadeInUp 0.5s ease-out"},className:"jsx-95366a8cc018cbe0 mb-10",children:(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 relative flex justify-between items-start",children:[s.jsx("div",{style:{left:"calc(100% / 14)",right:"calc(100% / 14)"},className:"jsx-95366a8cc018cbe0 absolute top-4 left-0 right-0 h-0.5 bg-white/[0.06]"}),s.jsx("div",{style:{...t?{right:"calc(100% / 14)",width:`${u/(c.length-1)*(100-100/7)}%`}:{left:"calc(100% / 14)",width:`${u/(c.length-1)*(100-100/7)}%`}},className:"jsx-95366a8cc018cbe0 absolute top-4 h-0.5 bg-gradient-to-r from-indigo-500 to-purple-600 transition-all duration-500"}),c.map((e,a)=>{let t=P[a];return(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex-1 flex flex-col items-center relative z-10",children:[s.jsx("div",{style:a===u?{animation:"glowPulse 2s ease-in-out infinite"}:void 0,className:`jsx-95366a8cc018cbe0 w-8 h-8 rounded-full flex items-center justify-center text-sm transition-all duration-300 ${a<u?"bg-indigo-500 text-white shadow-lg shadow-indigo-500/25":a===u?"bg-indigo-500/20 text-indigo-400 border-2 border-indigo-500":"bg-white/[0.06] text-gray-500 border border-white/[0.1]"}`,children:a<u?s.jsx(y.Z,{className:"h-4 w-4"}):s.jsx(t,{className:"jsx-95366a8cc018cbe0 h-4 w-4"})}),s.jsx("span",{className:`jsx-95366a8cc018cbe0 hidden sm:inline text-xs mt-2 text-center leading-tight max-w-[80px] ${a<=u?"text-indigo-400 font-medium":"text-gray-500"}`,children:e.title})]},a)})]})}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 relative",children:[s.jsx("div",{className:"jsx-95366a8cc018cbe0 absolute -inset-1 bg-gradient-to-r from-indigo-500/[0.06] via-purple-500/[0.04] to-indigo-500/[0.06] rounded-3xl blur-xl"}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 relative backdrop-blur-xl bg-white/[0.04] border border-white/[0.08] rounded-2xl shadow-[0_0_40px_rgba(99,102,241,0.06)] overflow-hidden",children:[(0,s.jsxs)("div",{style:{animation:"fadeInUp 0.5s ease-out"},className:"jsx-95366a8cc018cbe0 px-6 pt-6 pb-2",children:[s.jsx("h2",{className:"jsx-95366a8cc018cbe0 text-xl font-semibold text-white",children:c[u].title}),s.jsx("p",{className:"jsx-95366a8cc018cbe0 text-sm text-gray-400 mt-1",children:c[u].desc})]},`title-${u}`),(0,s.jsxs)("div",{style:{animation:"forward"===V?t?"slideInRight 0.4s ease-out":"slideInLeft 0.4s ease-out":t?"slideInLeft 0.4s ease-out":"slideInRight 0.4s ease-out"},className:"jsx-95366a8cc018cbe0 px-6 pb-6 space-y-4",children:[0===u&&(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 space-y-4",children:[s.jsx("div",{style:{background:M?"linear-gradient(135deg, rgba(34,197,94,0.3), rgba(34,197,94,0.1))":"linear-gradient(var(--border-angle, 0deg), #6366f1, #a855f7, #6366f1)",animation:M?void 0:"borderGlow 3s ease infinite",backgroundSize:"200% 200%"},onClick:()=>x.current?.click(),className:"jsx-95366a8cc018cbe0 relative rounded-xl p-[2px] cursor-pointer",children:(0,s.jsxs)("div",{className:`jsx-95366a8cc018cbe0 rounded-xl p-8 text-center transition-all ${M?"bg-green-500/[0.04]":"bg-[#0a0a14] hover:bg-[#0e0e1a]"}`,children:[s.jsx("input",{ref:x,type:"file",accept:"image/*",onChange:ea,className:"jsx-95366a8cc018cbe0 hidden"}),M?(0,s.jsxs)("div",{style:{animation:"scaleIn 0.4s ease-out"},className:"jsx-95366a8cc018cbe0 space-y-4",children:[s.jsx("img",{src:M,alt:"Uploaded product",className:"jsx-95366a8cc018cbe0 max-h-64 mx-auto rounded-lg shadow-md"}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex items-center justify-center gap-2 text-green-400",children:[s.jsx(j.Z,{className:"h-5 w-5"}),s.jsx("span",{className:"jsx-95366a8cc018cbe0 font-medium",children:a("imageUploaded")})]})]}):(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 space-y-3",children:[s.jsx(l.Z,{className:"h-12 w-12 mx-auto text-indigo-400",style:{animation:"uploadBounce 2s ease-in-out infinite"}}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0",children:[s.jsx("p",{className:"jsx-95366a8cc018cbe0 font-medium text-lg text-white",children:a("uploadProductImage")}),s.jsx("p",{className:"jsx-95366a8cc018cbe0 text-sm text-gray-400",children:a("uploadImageInstructions").split("\n").map((e,a)=>(0,s.jsxs)("span",{className:"jsx-95366a8cc018cbe0",children:[e,0===a&&s.jsx("br",{className:"jsx-95366a8cc018cbe0"})]},a))})]}),s.jsx("p",{className:"jsx-95366a8cc018cbe0 text-xs text-gray-500",children:"PNG, JPG, or WebP — Max 10MB"})]})]})}),!M&&s.jsx("div",{className:"jsx-95366a8cc018cbe0 text-center",children:s.jsx("button",{onClick:()=>{g(1)},className:"jsx-95366a8cc018cbe0 text-indigo-400 hover:text-indigo-300 text-sm underline transition-colors",children:a("skipManual")})})]}),1===u&&(0,s.jsxs)(s.Fragment,{children:[O&&(0,s.jsxs)("div",{style:{animation:"fadeInUp 0.5s ease-out"},className:"jsx-95366a8cc018cbe0 flex items-center gap-2 p-3 rounded-lg bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 text-sm mb-2",children:[s.jsx(h.Z,{className:"h-4 w-4 flex-shrink-0",style:{animation:"sparkle 0.6s ease-out"}}),s.jsx("span",{className:"jsx-95366a8cc018cbe0",children:a("aiPreFilled")})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"0ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("businessName")," *",O&&Y.businessName&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex items-start gap-2",children:[s.jsx("button",{onClick:()=>Q("businessName"),disabled:!!J,title:"ar"===r?"إعادة توليد بالذكاء الاصطناعي":"Regenerate with AI",className:"jsx-95366a8cc018cbe0 mt-2 p-1.5 rounded-lg border border-orange-500/30 text-orange-400 bg-orange-500/10 hover:bg-orange-500/20 hover:border-orange-400/60 hover:shadow-[0_0_12px_rgba(249,115,22,0.3)] transition-all shrink-0 disabled:opacity-30",children:"businessName"===J?s.jsx(b.Z,{className:"h-4 w-4 animate-spin"}):s.jsx(w.Z,{className:"h-4 w-4"})}),s.jsx("input",{placeholder:"e.g., Acme Inc.",value:Y.businessName||"",onChange:e=>K("businessName",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full h-10 bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"100ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("industry")," *",O&&Y.industry&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),(0,s.jsxs)("select",{value:Y.industry||"",onChange:e=>K("industry",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full h-10 bg-[#12121f] border border-white/[0.08] text-white rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30",children:[s.jsx("option",{value:"",className:"jsx-95366a8cc018cbe0",children:a("selectIndustry")}),d.map(e=>s.jsx("option",{value:e,className:"jsx-95366a8cc018cbe0",children:e},e))]})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"200ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("briefDescription")," *",O&&Y.description&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex items-start gap-2",children:[s.jsx("button",{onClick:()=>Q("description"),disabled:!!J,title:"ar"===r?"إعادة توليد بالذكاء الاصطناعي":"Regenerate with AI",className:"jsx-95366a8cc018cbe0 mt-2 p-1.5 rounded-lg border border-orange-500/30 text-orange-400 bg-orange-500/10 hover:bg-orange-500/20 hover:border-orange-400/60 hover:shadow-[0_0_12px_rgba(249,115,22,0.3)] transition-all shrink-0 disabled:opacity-30",children:"description"===J?s.jsx(b.Z,{className:"h-4 w-4 animate-spin"}):s.jsx(w.Z,{className:"h-4 w-4"})}),s.jsx("textarea",{placeholder:a("describeBusinessPlaceholder"),value:Y.description||"",onChange:e=>K("description",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full min-h-[100px] bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]})]})]}),2===u&&(0,s.jsxs)(s.Fragment,{children:[O&&(0,s.jsxs)("div",{style:{animation:"fadeInUp 0.5s ease-out"},className:"jsx-95366a8cc018cbe0 flex items-center gap-2 p-3 rounded-lg bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 text-sm mb-2",children:[s.jsx(h.Z,{className:"h-4 w-4 flex-shrink-0",style:{animation:"sparkle 0.6s ease-out"}}),s.jsx("span",{className:"jsx-95366a8cc018cbe0",children:a("reviewAISuggestionsEdit")})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"0ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("targetAudienceLabel")," *",O&&Y.targetAudience&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex items-start gap-2",children:[s.jsx("button",{onClick:()=>Q("targetAudience"),disabled:!!J,title:"ar"===r?"إعادة توليد بالذكاء الاصطناعي":"Regenerate with AI",className:"jsx-95366a8cc018cbe0 mt-2 p-1.5 rounded-lg border border-orange-500/30 text-orange-400 bg-orange-500/10 hover:bg-orange-500/20 hover:border-orange-400/60 hover:shadow-[0_0_12px_rgba(249,115,22,0.3)] transition-all shrink-0 disabled:opacity-30",children:"targetAudience"===J?s.jsx(b.Z,{className:"h-4 w-4 animate-spin"}):s.jsx(w.Z,{className:"h-4 w-4"})}),s.jsx("textarea",{placeholder:a("whoAreCustomers"),value:Y.targetAudience||"",onChange:e=>K("targetAudience",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full min-h-[80px] bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"100ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("painPoints")," *",O&&Y.painPoints&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex items-start gap-2",children:[s.jsx("button",{onClick:()=>Q("painPoints"),disabled:!!J,title:"ar"===r?"إعادة توليد بالذكاء الاصطناعي":"Regenerate with AI",className:"jsx-95366a8cc018cbe0 mt-2 p-1.5 rounded-lg border border-orange-500/30 text-orange-400 bg-orange-500/10 hover:bg-orange-500/20 hover:border-orange-400/60 hover:shadow-[0_0_12px_rgba(249,115,22,0.3)] transition-all shrink-0 disabled:opacity-30",children:"painPoints"===J?s.jsx(b.Z,{className:"h-4 w-4 animate-spin"}):s.jsx(w.Z,{className:"h-4 w-4"})}),s.jsx("textarea",{placeholder:a("whatProblemsSolved"),value:Y.painPoints||"",onChange:e=>K("painPoints",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full min-h-[80px] bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]})]})]}),3===u&&(0,s.jsxs)(s.Fragment,{children:[O&&(0,s.jsxs)("div",{style:{animation:"fadeInUp 0.5s ease-out"},className:"jsx-95366a8cc018cbe0 flex items-center gap-2 p-3 rounded-lg bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 text-sm mb-2",children:[s.jsx(h.Z,{className:"h-4 w-4 flex-shrink-0",style:{animation:"sparkle 0.6s ease-out"}}),s.jsx("span",{className:"jsx-95366a8cc018cbe0",children:a("aiExtractedProducts")})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"0ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("productsServices")," *",O&&Y.products&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex items-start gap-2",children:[s.jsx("button",{onClick:()=>Q("products"),disabled:!!J,title:"ar"===r?"إعادة توليد بالذكاء الاصطناعي":"Regenerate with AI",className:"jsx-95366a8cc018cbe0 mt-2 p-1.5 rounded-lg border border-orange-500/30 text-orange-400 bg-orange-500/10 hover:bg-orange-500/20 hover:border-orange-400/60 hover:shadow-[0_0_12px_rgba(249,115,22,0.3)] transition-all shrink-0 disabled:opacity-30",children:"products"===J?s.jsx(b.Z,{className:"h-4 w-4 animate-spin"}):s.jsx(w.Z,{className:"h-4 w-4"})}),s.jsx("textarea",{placeholder:a("whatDoYouOffer"),value:Y.products||"",onChange:e=>K("products",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full min-h-[80px] bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"100ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("uniqueSellingPoints")," *",O&&Y.uniqueSellingPoints&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex items-start gap-2",children:[s.jsx("button",{onClick:()=>Q("uniqueSellingPoints"),disabled:!!J,title:"ar"===r?"إعادة توليد بالذكاء الاصطناعي":"Regenerate with AI",className:"jsx-95366a8cc018cbe0 mt-2 p-1.5 rounded-lg border border-orange-500/30 text-orange-400 bg-orange-500/10 hover:bg-orange-500/20 hover:border-orange-400/60 hover:shadow-[0_0_12px_rgba(249,115,22,0.3)] transition-all shrink-0 disabled:opacity-30",children:"uniqueSellingPoints"===J?s.jsx(b.Z,{className:"h-4 w-4 animate-spin"}):s.jsx(w.Z,{className:"h-4 w-4"})}),s.jsx("textarea",{placeholder:a("whatMakesYouDifferent"),value:Y.uniqueSellingPoints||"",onChange:e=>K("uniqueSellingPoints",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full min-h-[80px] bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"200ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("pricingModel"),O&&Y.pricingModel&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex items-start gap-2",children:[s.jsx("button",{onClick:()=>Q("pricingModel"),disabled:!!J,title:"ar"===r?"إعادة توليد بالذكاء الاصطناعي":"Regenerate with AI",className:"jsx-95366a8cc018cbe0 mt-2 p-1.5 rounded-lg border border-orange-500/30 text-orange-400 bg-orange-500/10 hover:bg-orange-500/20 hover:border-orange-400/60 hover:shadow-[0_0_12px_rgba(249,115,22,0.3)] transition-all shrink-0 disabled:opacity-30",children:"pricingModel"===J?s.jsx(b.Z,{className:"h-4 w-4 animate-spin"}):s.jsx(w.Z,{className:"h-4 w-4"})}),s.jsx("input",{placeholder:"e.g., Freemium, Subscription, One-time purchase",value:Y.pricingModel||"",onChange:e=>K("pricingModel",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full h-10 bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]})]})]}),4===u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"0ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300",children:[a("designStyle")," *"]}),s.jsx("div",{className:"jsx-95366a8cc018cbe0 grid grid-cols-2 sm:grid-cols-3 gap-2",children:z.map(e=>(0,s.jsxs)("button",{onClick:()=>K("designStyle",e.value),className:`jsx-95366a8cc018cbe0 p-3 rounded-lg border text-sm text-center transition-all duration-200 ${Y.designStyle===e.value?"border-indigo-500 bg-indigo-500/10 shadow-[0_0_16px_rgba(99,102,241,0.15)] text-white font-medium transform scale-[1.02]":"border-white/[0.08] text-gray-400 hover:border-indigo-500/50 hover:text-white hover:-translate-y-0.5 hover:shadow-lg"}`,children:[e.label,O&&Y.designStyle===e.value&&s.jsx("span",{className:"jsx-95366a8cc018cbe0 block text-xs text-indigo-400 mt-1",children:a("aiPick")})]},e.value))})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"100ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300",children:[a("toneOfVoice")," *"]}),s.jsx("div",{className:"jsx-95366a8cc018cbe0 grid grid-cols-2 sm:grid-cols-3 gap-2",children:C.map(e=>(0,s.jsxs)("button",{onClick:()=>K("toneOfVoice",e.value),className:`jsx-95366a8cc018cbe0 p-3 rounded-lg border text-sm text-center transition-all duration-200 ${Y.toneOfVoice===e.value?"border-indigo-500 bg-indigo-500/10 shadow-[0_0_16px_rgba(99,102,241,0.15)] text-white font-medium transform scale-[1.02]":"border-white/[0.08] text-gray-400 hover:border-indigo-500/50 hover:text-white hover:-translate-y-0.5 hover:shadow-lg"}`,children:[e.label,O&&Y.toneOfVoice===e.value&&s.jsx("span",{className:"jsx-95366a8cc018cbe0 block text-xs text-indigo-400 mt-1",children:a("aiPick")})]},e.value))})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"200ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("brandColors"),O&&Y.brandColors&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),s.jsx("input",{placeholder:"e.g., Blue and white, #1e40af",value:Y.brandColors||"",onChange:e=>K("brandColors",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full h-10 bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]})]}),5===u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"0ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300 flex items-center gap-2",children:[a("primaryCTA")," *",O&&Y.primaryCTA&&s.jsx("span",{style:{animation:"pulse 2s ease-in-out infinite"},className:"jsx-95366a8cc018cbe0 text-xs bg-indigo-500/10 text-indigo-400 px-2 py-0.5 rounded-full",children:a("aiSuggested")})]}),s.jsx("input",{placeholder:"e.g., Start Free Trial, Book a Demo, Shop Now",value:Y.primaryCTA||"",onChange:e=>K("primaryCTA",e.target.value),className:"jsx-95366a8cc018cbe0 glass-input w-full h-10 bg-[#12121f] border border-white/[0.08] text-white placeholder:text-gray-500 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/30"})]}),(0,s.jsxs)("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:"100ms"},className:"jsx-95366a8cc018cbe0 space-y-2",children:[(0,s.jsxs)("label",{className:"jsx-95366a8cc018cbe0 text-sm font-medium text-gray-300",children:[a("ctaGoal")," *"]}),s.jsx("div",{className:"jsx-95366a8cc018cbe0 grid grid-cols-2 sm:grid-cols-3 gap-2",children:m.map(e=>(0,s.jsxs)("button",{onClick:()=>K("ctaGoal",e.value),className:`jsx-95366a8cc018cbe0 p-3 rounded-lg border text-sm text-center transition-all duration-200 ${Y.ctaGoal===e.value?"border-indigo-500 bg-indigo-500/10 shadow-[0_0_16px_rgba(99,102,241,0.15)] text-white font-medium transform scale-[1.02]":"border-white/[0.08] text-gray-400 hover:border-indigo-500/50 hover:text-white hover:-translate-y-0.5 hover:shadow-lg"}`,children:[e.label,O&&Y.ctaGoal===e.value&&s.jsx("span",{className:"jsx-95366a8cc018cbe0 block text-xs text-indigo-400 mt-1",children:a("aiPick")})]},e.value))})]})]}),6===u&&(0,s.jsxs)(s.Fragment,{children:[s.jsx("p",{style:{animation:"fadeInUp 0.5s ease-out"},className:"jsx-95366a8cc018cbe0 text-sm text-gray-400 mb-4",children:"ar"===r?"ارفع حتى 3 صور إضافية للمنتج. سيقوم الذكاء الاصطناعي بتوزيعها على أقسام الصفحة المناسبة.":"Upload up to 3 additional product photos. AI will distribute them across the most relevant page sections."}),s.jsx("input",{ref:p,type:"file",accept:"image/*",onChange:et,className:"jsx-95366a8cc018cbe0 hidden"}),s.jsx("div",{className:"jsx-95366a8cc018cbe0 grid grid-cols-3 gap-4",children:[0,1,2].map(e=>s.jsx("div",{style:{animation:"staggerIn 0.4s ease-out both",animationDelay:`${100*e}ms`},className:"jsx-95366a8cc018cbe0 aspect-square",children:E[e]?(0,s.jsxs)("div",{style:{animation:"scaleIn 0.4s ease-out"},className:"jsx-95366a8cc018cbe0 relative w-full h-full rounded-xl overflow-hidden border border-white/[0.08] group",children:[s.jsx("img",{src:E[e],alt:`Secondary ${e+1}`,className:"jsx-95366a8cc018cbe0 w-full h-full object-cover"}),s.jsx("button",{onClick:()=>es(e),className:"jsx-95366a8cc018cbe0 absolute top-1 right-1 bg-red-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-xs opacity-0 group-hover:opacity-100 transition-opacity",children:"✕"})]}):s.jsx("button",{onClick:()=>p.current?.click(),disabled:L||E.length>=3,className:"jsx-95366a8cc018cbe0 w-full h-full border-2 border-dashed border-white/[0.08] rounded-xl flex flex-col items-center justify-center gap-2 text-gray-500 hover:border-indigo-500 hover:text-indigo-400 transition-all duration-200 disabled:opacity-40 hover:shadow-[0_0_16px_rgba(99,102,241,0.1)]",children:L&&E.length===e?s.jsx(b.Z,{className:"h-6 w-6 animate-spin"}):(0,s.jsxs)(s.Fragment,{children:[s.jsx(l.Z,{className:"h-6 w-6"}),(0,s.jsxs)("span",{className:"jsx-95366a8cc018cbe0 text-xs",children:["ar"===r?"صورة":"Photo"," ",e+1]})]})})},e))}),E.length>0&&(0,s.jsxs)("p",{style:{animation:"fadeInUp 0.3s ease-out"},className:"jsx-95366a8cc018cbe0 text-xs text-gray-400 mt-3 flex items-center gap-1",children:[s.jsx(j.Z,{className:"h-3 w-3 text-green-400"}),E.length," ","ar"===r?"صورة جاهزة للتحليل":`photo${E.length>1?"s":""} ready — AI will assign to best sections`]})]}),(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex justify-between pt-4",children:[(0,s.jsxs)("button",{onClick:()=>{H("backward"),g(e=>e-1)},disabled:0===u,className:"jsx-95366a8cc018cbe0 border border-white/[0.1] text-gray-400 hover:text-white hover:bg-white/[0.06] hover:border-white/[0.2] rounded-lg px-4 py-2 text-sm transition-all duration-200 disabled:opacity-40 inline-flex items-center",children:[s.jsx(k.Z,{className:t?"h-4 w-4 ml-2 rotate-180":"h-4 w-4 mr-2"})," ",a("back")]}),0===u?(0,s.jsxs)("button",{style:{backgroundImage:"linear-gradient(to right, #6366f1 0%, #a855f7 50%, #6366f1 100%)",backgroundSize:"200% auto",animation:"shimmer 2s linear infinite"},onClick:()=>{H("forward"),g(1)},disabled:!M||I,className:"jsx-95366a8cc018cbe0 text-white rounded-lg px-5 py-2 text-sm font-medium disabled:opacity-40 transition-all duration-200 inline-flex items-center",children:[a("next")," ",s.jsx(v.Z,{className:t?"h-4 w-4 mr-2 rotate-180":"h-4 w-4 ml-2"})]}):6===u?(0,s.jsxs)("div",{className:"jsx-95366a8cc018cbe0 flex gap-2",children:[s.jsx("button",{onClick:en,disabled:D,className:"jsx-95366a8cc018cbe0 border border-white/[0.1] text-gray-400 hover:text-white hover:bg-white/[0.06] hover:border-white/[0.2] rounded-lg px-4 py-2 text-sm transition-all duration-200 disabled:opacity-40",children:"ar"===r?"تخطي وإنشاء":"Skip & Generate"}),(0,s.jsxs)("button",{style:{backgroundImage:"linear-gradient(to right, #6366f1 0%, #a855f7 50%, #6366f1 100%)",backgroundSize:"200% auto",animation:"shimmer 2s linear infinite"},onClick:en,disabled:D||L,className:"jsx-95366a8cc018cbe0 text-white rounded-lg px-5 py-2 text-sm font-medium disabled:opacity-40 transition-all duration-200 inline-flex items-center",children:[s.jsx(h.Z,{className:"h-4 w-4 mr-2"}),D?"ar"===r?"جارٍ الإنشاء...":"Generating...":E.length>0?"ar"===r?"إنشاء مع الصور":"Generate with Photos":a("generateWithAI")]})]}):u<c.length-1?(0,s.jsxs)("button",{style:{backgroundImage:"linear-gradient(to right, #6366f1 0%, #a855f7 50%, #6366f1 100%)",backgroundSize:"200% auto",animation:"shimmer 2s linear infinite"},onClick:ee,disabled:!er(),className:"jsx-95366a8cc018cbe0 text-white rounded-lg px-5 py-2 text-sm font-medium disabled:opacity-40 transition-all duration-200 inline-flex items-center",children:[O&&1===u?a("looksGood"):a("next")," ",s.jsx(v.Z,{className:t?"h-4 w-4 mr-2 rotate-180":"h-4 w-4 ml-2"})]}):(0,s.jsxs)("button",{style:{backgroundImage:"linear-gradient(to right, #6366f1 0%, #a855f7 50%, #6366f1 100%)",backgroundSize:"200% auto",animation:"shimmer 2s linear infinite"},onClick:ee,disabled:!er(),className:"jsx-95366a8cc018cbe0 text-white rounded-lg px-5 py-2 text-sm font-medium disabled:opacity-40 transition-all duration-200 inline-flex items-center",children:[a("next")," ",s.jsx(v.Z,{className:t?"h-4 w-4 mr-2 rotate-180":"h-4 w-4 ml-2"})]})]})]},u)]})]})]})]})}},26350:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>C});var s=t(95344),r=t(47674),n=t(8428),i=t(56506),o=t(89410),l=t(3729),c=t(66543),d=t(9885),m=t(2273);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let x=(0,t(69224).Z)("PlusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);var p=t(89895),u=t(13746),g=t(42739),f=t(14513),b=t(98200),h=t(30473),y=t(23485),j=t(48120),w=t(71532),k=t(97751),v=t(93109);let N=[{key:"dashboard",href:"/dashboard",icon:m.Z},{key:"create",href:"/create",icon:x},{key:"leads",href:"/leads",icon:p.Z},{key:"settings",href:"/settings",icon:u.Z}],z={dashboard:{en:"Dashboard",ar:"لوحة التحكم"},create:{en:"Create Page",ar:"إنشاء صفحة"},leads:{en:"Leads",ar:"العملاء المحتملون"},settings:{en:"Settings",ar:"الإعدادات"}};function C({children:e}){let{data:a,status:t}=(0,r.useSession)(),m=(0,n.useRouter)(),x=(0,n.usePathname)(),{lang:p,setLang:u}=(0,d.Z)(),C="ar"===p,[P,S]=(0,l.useState)(!1),[Z,I]=(0,l.useState)(!1),{siteName:_,logoUrl:D,logoSize:A}=(0,v.T)(),{data:M}=(0,c.ZP)("/api/system/maintenance");(0,l.useEffect)(()=>{"unauthenticated"===t&&m.push("/login")},[t,m]);let q=a?.user?.role==="ADMIN",O=x.includes("/edit");if("loading"===t)return s.jsx("div",{className:"flex items-center justify-center min-h-screen bg-[#0a0a0f]",children:s.jsx(g.Z,{className:"h-8 w-8 animate-spin text-gray-500"})});let T=e=>"/dashboard"===e?"/dashboard"===x:x.startsWith(e);return M?.active&&!q?s.jsx("div",{className:"min-h-screen bg-[#0a0a0f] flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center max-w-md px-6",children:[s.jsx("div",{className:"text-6xl mb-4",children:"\uD83D\uDD27"}),s.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"ar"===p?"الموقع تحت الصيانة":"Under Maintenance"}),s.jsx("p",{className:"text-gray-400",children:"ar"===p?M.messageAr:M.message})]})}):(0,s.jsxs)("div",{dir:C?"rtl":"ltr",className:"flex min-h-screen bg-[#0a0a0f]",children:[Z&&s.jsx("div",{className:"fixed inset-0 bg-black/60 z-40 md:hidden",onClick:()=>I(!1)}),(0,s.jsxs)("div",{className:"fixed top-0 left-0 right-0 h-14 bg-[#07070d] border-b border-white/[0.06] flex items-center justify-between px-4 z-30 md:hidden",children:[s.jsx("button",{onClick:()=>I(!Z),className:"text-gray-400 hover:text-white p-1.5 rounded-lg hover:bg-white/[0.06] transition-colors",children:Z?s.jsx(f.Z,{className:"h-5 w-5"}):s.jsx(b.Z,{className:"h-5 w-5"})}),(0,s.jsxs)(i.default,{href:"/",className:"flex items-center gap-2",children:[D?s.jsx(o.default,{src:D,alt:_,width:A,height:A,className:"object-contain",unoptimized:!0}):s.jsx(h.Z,{className:"h-5 w-5 text-indigo-400"}),s.jsx("span",{className:"font-bold text-white",children:_})]}),s.jsx("div",{className:"w-8"})]}),(0,s.jsxs)("aside",{className:`fixed top-0 ${C?"right-0 border-l":"left-0 border-r"} h-full bg-[#07070d] border-white/[0.06] flex flex-col transition-all duration-300 z-50 md:translate-x-0
          ${P?"w-16":"w-64"}
          ${Z?"translate-x-0":C?"translate-x-full":"-translate-x-full"}
        `,children:[s.jsx("div",{className:"flex items-center gap-2 p-4 border-b border-white/[0.06]",children:(0,s.jsxs)(i.default,{href:"/",className:"flex items-center gap-2",children:[D?s.jsx(o.default,{src:D,alt:_,width:A,height:A,className:"object-contain shrink-0",unoptimized:!0}):s.jsx(h.Z,{className:"h-6 w-6 text-indigo-400 shrink-0"}),!P&&s.jsx("span",{className:"font-bold text-lg whitespace-nowrap bg-gradient-to-r from-white to-gray-300 bg-clip-text text-transparent",children:_})]})}),s.jsx("nav",{className:"flex-1 py-4 space-y-1 px-2",children:N.map(e=>{let a=e.icon,t=T(e.href);return(0,s.jsxs)(i.default,{href:e.href,onClick:()=>I(!1),className:`flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors ${t?`bg-indigo-500/10 text-indigo-400 ${C?"border-r-2":"border-l-2"} border-indigo-400`:"text-gray-400 hover:text-white hover:bg-white/[0.06]"} ${P?"justify-center":""}`,title:P?C?z[e.key].ar:z[e.key].en:void 0,children:[s.jsx(a,{className:"h-5 w-5 shrink-0"}),!P&&s.jsx("span",{children:C?z[e.key].ar:z[e.key].en})]},e.key)})}),(0,s.jsxs)("div",{className:"border-t border-white/[0.06] p-3 space-y-2",children:[q&&(0,s.jsxs)(i.default,{href:"/admin",onClick:()=>I(!1),className:`flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-colors text-amber-400 hover:bg-amber-500/[0.06] w-full ${P?"justify-center":""}`,title:P?C?"الإدارة":"Admin Panel":void 0,children:[s.jsx(y.Z,{className:"h-5 w-5 shrink-0"}),!P&&s.jsx("span",{children:C?"الإدارة":"Admin Panel"})]}),(0,s.jsxs)("button",{onClick:()=>u("en"===p?"ar":"en"),className:`flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-400 hover:text-white hover:bg-white/[0.06] transition-colors w-full ${P?"justify-center":""}`,children:[s.jsx("span",{className:"text-xs font-bold shrink-0",children:"en"===p?"ع":"EN"}),!P&&s.jsx("span",{children:"en"===p?"عربي":"English"})]}),(0,s.jsxs)("button",{onClick:()=>(0,r.signOut)({callbackUrl:"/"}),className:`flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-red-400 hover:bg-red-500/[0.06] transition-colors w-full ${P?"justify-center":""}`,children:[s.jsx(j.Z,{className:"h-4 w-4 shrink-0"}),!P&&s.jsx("span",{children:C?"تسجيل الخروج":"Sign Out"})]}),s.jsx("button",{onClick:()=>S(!P),className:"flex items-center justify-center w-full py-1 text-gray-600 hover:text-gray-400 transition-colors",children:P?C?s.jsx(w.Z,{className:"h-4 w-4"}):s.jsx(k.Z,{className:"h-4 w-4"}):C?s.jsx(k.Z,{className:"h-4 w-4"}):s.jsx(w.Z,{className:"h-4 w-4"})})]}),!P&&a?.user&&(0,s.jsxs)("div",{className:"px-4 py-3 border-t border-white/[0.06]",children:[s.jsx("p",{className:"text-xs font-medium truncate text-gray-300",children:a.user.name||(C?"مستخدم":"User")}),s.jsx("p",{className:"text-xs text-gray-500 truncate",children:a.user.email})]})]}),s.jsx("main",{className:`flex-1 transition-all duration-300 text-white pt-14 md:pt-0 bg-[#0a0a0f] min-h-screen ${P?C?"md:mr-16":"md:ml-16":C?"md:mr-64":"md:ml-64"}`,children:O?e:s.jsx("div",{className:"p-4 md:p-6",children:e})})]})}},48096:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),function(e,a){for(var t in a)Object.defineProperty(e,t,{enumerable:!0,get:a[t]})}(a,{DynamicServerError:function(){return s},isDynamicServerError:function(){return r}});let t="DYNAMIC_SERVER_USAGE";class s extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=t}}function r(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===t}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),e.exports=a.default)},72973:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),function(e,a){for(var t in a)Object.defineProperty(e,t,{enumerable:!0,get:a[t]})}(a,{isStaticGenBailoutError:function(){return o},staticGenerationBailout:function(){return c}});let s=t(48096),r=t(45869),n="NEXT_STATIC_GEN_BAILOUT";class i extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}function l(e,a){let{dynamic:t,link:s}=a||{};return"Page"+(t?' with `dynamic = "'+t+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(s?" See more info here: "+s:"")}let c=(e,a)=>{let{dynamic:t,link:n}=void 0===a?{}:a,o=r.staticGenerationAsyncStorage.getStore();if(!o)return!1;if(o.forceStatic)return!0;if(o.dynamicShouldError)throw new i(l(e,{link:n,dynamic:null!=t?t:"error"}));let c=l(e,{dynamic:t,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==o.postpone||o.postpone.call(o,e),o.revalidate=0,o.isStaticGeneration){let a=new s.DynamicServerError(c);throw o.dynamicUsageDescription=e,o.dynamicUsageStack=a.stack,a}return!1};("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),e.exports=a.default)},54165:(e,a,t)=>{"use strict";t.r(a),t.d(a,{$$typeof:()=>n,__esModule:()=>r,default:()=>i});let s=(0,t(86843).createProxy)(String.raw`C:\test2\pagecraft-ai\src\app\(dashboard)\create\page.tsx`),{__esModule:r,$$typeof:n}=s,i=s.default},95021:(e,a,t)=>{"use strict";t.r(a),t.d(a,{$$typeof:()=>n,__esModule:()=>r,default:()=>i});let s=(0,t(86843).createProxy)(String.raw`C:\test2\pagecraft-ai\src\app\(dashboard)\layout.tsx`),{__esModule:r,$$typeof:n}=s,i=s.default}};var a=require("../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[1638,5312,6632,3910],()=>t(25178));module.exports=s})();