"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7238,3902],{80877:function(e,a,t){t.d(a,{Z:function(){return o}});var s=t(57437),l=t(74291),i=t(53902),r=t(86484);let n=new r.QueryClient;function o(e){let{open:a,setOpen:t,tip:o}=e;return(0,s.jsx)(l.Vq,{open:a,onOpenChange:t,children:(0,s.jsx)(l.cZ,{className:"max-w-[600px] max-sm:w-[400px]",children:(0,s.jsx)(r.QueryClientProvider,{client:n,children:(0,s.jsx)(i.Z,{tip:o,callbackurl:"/new/ai-comic-strips"})})})})}},30563:function(e,a,t){t.d(a,{o:function(){return Y}});var s=t(57437),l=t(13717),i=t(74291),r=t(75368),n=t(71488),o=t(69174),c=t(23664),m=t(18852),d=t(2265),u=t(12381),x=t(15291),h=t(10149),p=t(83464),g=t(54072),f=t(69658),y=t(32489),b=t(54887),j=t(93448),w=t(90665),N=t(77598),v=t(70387),k=t(93772),S=t(20653);let A={Free:5242880,STANDARD:10485760,PRO:20971520,UNLIMITED:104857600},C={initial:{x:0,y:0},animate:{x:20,y:-20,opacity:.9}},_={initial:{opacity:0},animate:{opacity:1}},P=(0,s.jsxs)("div",{className:"p-2",children:[(0,s.jsx)("p",{className:"font-semibold mb-2",children:"File size limits per plan:"}),(0,s.jsxs)("table",{className:"w-full text-sm",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"text-left font-semibold pb-1 border-b",children:"Plan"}),(0,s.jsx)("th",{className:"text-right font-semibold pb-1 border-b",children:"Limit"})]})}),(0,s.jsx)("tbody",{children:Object.entries(A).map((e,a)=>{let[t,l]=e;return(0,s.jsxs)("tr",{className:(0,j.cn)(a%2==0?"bg-gray-50":"bg-white"),children:[(0,s.jsx)("td",{className:"py-1",children:t}),(0,s.jsxs)("td",{className:"text-right py-1",children:[l/1048576," MB"]})]},t)})})]})]}),D=e=>{let{onChange:a}=e,[t,l]=(0,d.useState)([]),{profile:i}=(0,v.S)(),{getRootProps:r,isDragActive:o}=(0,N.uI)({multiple:!1,onDrop:e=>{l(a=>[...a,...e]),a&&a(e)},onDropRejected:e=>{e.forEach(e=>{if(e.file.size>A[i.subscriptions[0].planName]){let a=A[i.subscriptions[0].planName]/1048576;k.Am.warning('File "'.concat(e.file.name,'" exceeds the ').concat(a,"MB limit for your ").concat(i.subscriptions[0].planName," plan."))}else k.Am.warning('File "'.concat(e.file.name,'" was rejected. Please check file type and size.'))})},accept:{"application/pdf":[".pdf"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"text/plain":[".txt"],"text/markdown":[".md"]},maxSize:A[i.subscriptions[0].planName]}),c=i.subscriptions[0].planName,m=A[c]/1048576;return(0,s.jsx)("div",{className:"w-full",...r(),children:(0,s.jsxs)(g.E.label,{htmlFor:"file-upload-handle",whileHover:"animate",className:"p-10 group/file block rounded-lg cursor-pointer  w-full relative overflow-hidden",children:[(0,s.jsx)("input",{id:"file-upload-handle",type:"file",accept:".pdf,.docx,.txt,.md",onChange:e=>{let t=Array.from(e.target.files||[]);l(e=>[...e,...t]),a&&a(t)},className:"hidden"}),(0,s.jsx)("div",{className:"absolute inset-0 [mask-image:radial-gradient(ellipse_at_center,white,transparent)]",children:(0,s.jsx)(I,{})}),(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,s.jsx)("p",{className:"relative z-20 font-sans font-bold text-neutral-700 dark:text-neutral-300 text-base",children:"Upload file"}),(0,s.jsx)("p",{className:"relative z-20 font-sans font-normal text-neutral-400 dark:text-neutral-400 text-base mt-2",children:"Drag or drop your files here or click to upload .pdf,.docx,.txt,.md"}),(0,s.jsxs)("div",{className:"relative z-20 font-sans font-normal text-neutral-400 dark:text-neutral-400 text-sm mt-2 flex items-center",children:[(0,s.jsxs)("span",{children:["Max file size: ",m," MB (",c," plan)"]}),(0,s.jsx)(n.pn,{children:(0,s.jsxs)(n.u,{children:[(0,s.jsx)(n.aJ,{asChild:!0,children:(0,s.jsx)(S.pjG,{className:"ml-1 h-4 w-4 cursor-help"})}),(0,s.jsx)(n._v,{children:P})]})})]}),(0,s.jsxs)("div",{className:"relative w-full mt-10 max-w-xl mx-auto",children:[t.length>0&&t.map((e,a)=>(0,s.jsxs)(g.E.div,{layoutId:0===a?"file-upload":"file-upload-"+a,className:(0,j.cn)("relative overflow-hidden z-40 bg-white dark:bg-neutral-900 flex flex-col items-start justify-start md:h-24 p-4 mt-4 w-full mx-auto rounded-md","shadow-sm"),children:[(0,s.jsxs)("div",{className:"flex justify-between w-full items-center gap-4",children:[(0,s.jsx)(g.E.p,{initial:{opacity:0},animate:{opacity:1},layout:!0,className:"text-base text-neutral-700 dark:text-neutral-300 truncate max-w-xs",children:e.name}),(0,s.jsxs)(g.E.p,{initial:{opacity:0},animate:{opacity:1},layout:!0,className:"rounded-lg px-2 py-1 w-fit flex-shrink-0 text-sm text-neutral-600 dark:bg-neutral-800 dark:text-white shadow-input",children:[(e.size/1048576).toFixed(2)," MB"]})]}),(0,s.jsxs)("div",{className:"flex text-sm md:flex-row flex-col items-start md:items-center w-full mt-2 justify-between text-neutral-600 dark:text-neutral-400",children:[(0,s.jsx)(g.E.p,{initial:{opacity:0},animate:{opacity:1},layout:!0,className:"px-1 py-0.5 rounded-md bg-gray-100 dark:bg-neutral-800 ",children:e.type}),(0,s.jsxs)(g.E.p,{initial:{opacity:0},animate:{opacity:1},layout:!0,children:["modified"," ",new Date(e.lastModified).toLocaleDateString()]})]})]},"file"+a)),!t.length&&(0,s.jsx)(g.E.div,{layoutId:"file-upload",variants:C,transition:{type:"spring",stiffness:300,damping:20},className:(0,j.cn)("relative group-hover/file:shadow-2xl z-40 bg-white dark:bg-neutral-900 flex items-center justify-center h-32 mt-4 w-full max-w-[8rem] mx-auto rounded-md","shadow-[0px_10px_50px_rgba(0,0,0,0.1)]"),children:o?(0,s.jsxs)(g.E.p,{initial:{opacity:0},animate:{opacity:1},className:"text-neutral-600 flex flex-col items-center",children:["Drop it",(0,s.jsx)(w.Z,{className:"h-4 w-4 text-neutral-600 dark:text-neutral-400"})]}):(0,s.jsx)(w.Z,{className:"h-4 w-4 text-neutral-600 dark:text-neutral-300"})}),!t.length&&(0,s.jsx)(g.E.div,{variants:_,className:"absolute opacity-0 border border-dashed border-sky-400 inset-0 z-30 bg-transparent flex items-center justify-center h-32 mt-4 w-full max-w-[8rem] mx-auto rounded-md"})]})]})]})})};function I(){return(0,s.jsx)("div",{className:"flex bg-gray-100 dark:bg-neutral-900 flex-shrink-0 flex-wrap justify-center items-center gap-x-px gap-y-px  scale-105",children:Array.from({length:11}).map((e,a)=>Array.from({length:41}).map((e,t)=>{let l=41*a+t;return(0,s.jsx)("div",{className:"w-10 h-10 flex flex-shrink-0 rounded-[2px] ".concat(l%2==0?"bg-gray-50 dark:bg-neutral-950":"bg-gray-50 dark:bg-neutral-950 shadow-[0px_0px_1px_3px_rgba(255,255,255,1)_inset] dark:shadow-[0px_0px_1px_3px_rgba(0,0,0,1)_inset]")},"".concat(t,"-").concat(a))}))})}let z=e=>{let{uploading:a,beforeUpload:t,afterUpload:l}=e,[i,r]=(0,d.useState)([]),n=async e=>{let a=null==e?void 0:e[0];if(!a)return;t();let s=new FormData;s.append("files",a),s.set("tags","story");let i=await fetch("/api/files/upload",{method:"POST",body:s}),r=await i.json();console.log(r),l(r.userFile)};return(0,s.jsx)("div",{className:"w-full max-w-4xl mx-auto min-h-48 border border-dashed bg-white dark:bg-black border-neutral-200 dark:border-neutral-800 rounded-lg",children:(0,s.jsx)(D,{onChange:n})})};var E=t(99376),F=t(71108);let T=e=>{let{selected:a,onSelect:t}=e,[l,i]=(0,d.useState)(!1),[r,n]=(0,d.useState)(!1),{profile:o}=(0,v.S)();(0,E.useRouter)(),(0,E.usePathname)();let[m,x]=(0,d.useState)([]),h=F.T0.find(e=>"PRO"===e.name);null==h||h.yearlyPayLink,(0,c.U0)();let[w,N]=(0,d.useState)(null),k=(0,d.useCallback)(e=>{console.log(" setUploading(false);"),i(!1),N(e),t(e.id)},[t]),S=(0,d.useCallback)(()=>{w&&(N(null),t(""),p.Z.post("/api/files/delete",{id:w.id}).then(()=>{}))},[w,t]);return(0,s.jsxs)("div",{children:[w?(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 border rounded-lg bg-gray-50 dark:bg-gray-800 shadow-sm",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)(f.Z,{className:"w-6 h-6 text-blue-500"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-medium text-sm truncate max-w-[200px]",children:w.rawFileName}),(0,s.jsxs)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:[(w.fileSize/1024).toFixed(2)," KB"]})]})]}),(0,s.jsx)(u.z,{onClick:S,variant:"ghost",size:"sm",className:"text-red-500 hover:text-red-700 hover:bg-red-100 dark:hover:bg-red-900",children:(0,s.jsx)(y.Z,{className:"w-4 h-4"})})]}):(0,s.jsx)(z,{uploading:l,beforeUpload:()=>i(!0),afterUpload:e=>{k(e)}}),(0,b.createPortal)((0,s.jsx)("div",{className:(0,j.cn)("fixed z-[999999] top-0 left-0 right-0 bottom-0 inset-0 bg-black bg-opacity-50 flex items-center justify-center rounded-lg",l?"":"hidden"),children:(0,s.jsxs)("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg shadow-lg",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,s.jsx)(g.E.div,{animate:{scale:[1,1.2,1],opacity:[1,.5,1]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut"},className:"w-4 h-4 bg-blue-500 rounded-full"}),(0,s.jsx)("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:"Uploading..."})]}),(0,s.jsx)(g.E.div,{initial:{width:0},animate:{width:"100%"},transition:{duration:2,repeat:1/0},className:"h-1 bg-blue-500 mt-2 rounded-full"})]})}),document.body)]})},O=e=>{let{isNewFile:a,selected:t,onSelect:l}=e;return(0,s.jsx)(T,{selected:t,onSelect:l})};var R=t(93340),M=t(80605),B=t(84908),Z=t(20517),L=t(55788),U=t(41671),q=t(76858),V=t(94589),G=t(90641),H=t(58621);let W=[{title:"Story Script",description:"Create a detailed script that outlines the story.",image:"/ai-comic-agent/story_script.png",templateId:"StorySketch",dialog:!1,agentName:"Scriptwriter",agentAvatar:"/ai-agents/scriptwriter.png",agentDescription:"Expert in crafting compelling narratives"},{title:"Storyboard",description:"Visualize the story with a series of sketches.",image:"/ai-comic-agent/storyboard.png",templateId:"StorySketch",dialog:!1,agentName:"Storyboard Artist",agentAvatar:"/ai-agents/storyboard_artist.png",agentDescription:"Creates visual representations of the story"},{title:"Refined Sketches",description:"Refine the sketches based on the storyboard.",image:"/ai-comic-agent/refined_sketches.png",templateId:"StoryDraft",dialog:!1,agentName:"Sketch Refiner",agentAvatar:"/ai-agents/sketch_refiner.png",agentDescription:"Improves the quality of sketches"},{title:"Line Art",description:"Create clean line art from the refined sketches.",image:"/ai-comic-agent/line_art.png",templateId:"StoryLineArt",dialog:!1,agentName:"Line Artist",agentAvatar:"/ai-agents/line_artist.png",agentDescription:"Creates clean and detailed line art"},{title:"Base Colors",description:"Add base colors to the line art.",image:"/ai-comic-agent/base_colors.webp",templateId:"StoryBaseColor",dialog:!1,agentName:"Colorist",agentAvatar:"/ai-agents/colorist.png",agentDescription:"Adds base colors to the line art"},{title:"Post-Production",description:"Enhance the artwork with effects and adjustments.",image:"/ai-comic-agent/post_production.png",templateId:"StoryEnhance",dialog:!1,agentName:"Post-Production Artist",agentAvatar:"/ai-agents/post_production_artist.png",agentDescription:"Enhances the artwork with effects and adjustments"},{title:"Text Insertion",description:"Add dialogue and captions to the comic panels.",image:"/ai-comic-agent/text_insertion.png",templateId:"StoryEnhance",dialog:!0,agentName:"Text Inserter",agentAvatar:"/ai-agents/text_inserter.png",agentDescription:"Adds dialogue and captions to the comic panels"}],J=[{name:"Basic",key:"basic",example:"A basic story with a clear beginning, middle, and end"},{name:"Comedy & Social Commentary",key:"comedy_social",example:"16 details about patriarchal and feminist comedy"},{name:"Romantic Gesture",key:"romantic_gesture",example:"A couple hugging"},{name:"Education & Teacher",key:"education_teacher",example:"Book Title: 'The Teacher is One of a Kind'"},{name:"Animal Morality Lesson",key:"animal_morality",example:"A buffalo teaching friends to respect"},{name:"Real World Crisis",key:"real_crisis",example:"COVID-19 in Hawaii"},{name:"Embarrassing Moments",key:"embarrassing_moment",example:"A girl steps in dog poop in the office, another woman looks disgusted"},{name:"Mystery & Treasure Hunt",key:"mystery_treasure",example:"The lost treasure of Oak Island"},{name:"Fantasy with Superpowers",key:"fantasy_superpowers",example:"Korean fantasy with a heart-shaped hairstyle woman who kills those who break her heart"},{name:"Adventure & Exploration",key:"adventure_exploration",example:"A boy finding pirate treasure"},{name:"Office Drama",key:"office_drama",example:"Conflict between coworkers over a mistake in the office"},{name:"Science Fiction",key:"sci_fi",example:"A robot uprising threatens humanity's future"},{name:"Historical Fiction",key:"historical_fiction",example:"A story set during the American Revolution"},{name:"Slice of Life",key:"slice_of_life",example:"A day in the life of a small town librarian"},{name:"Dark Fantasy",key:"dark_fantasy",example:"A cursed kingdom ruled by a vampire queen"},{name:"Supernatural Thriller",key:"supernatural_thriller",example:"A haunted house that drives people mad"},{name:"Action & Martial Arts",key:"action_martial_arts",example:"A skilled fighter defending their village from invaders"},{name:"Cyberpunk",key:"cyberpunk",example:"A hacker in a dystopian city battles corrupt corporations"},{name:"Post-Apocalyptic",key:"post_apocalyptic",example:"Survivors of a nuclear war rebuilding society"},{name:"Western",key:"western",example:"A lone gunslinger seeking revenge in the Old West"},{name:"Detective Mystery",key:"detective_mystery",example:"A private investigator solving a high-profile murder"},{name:"Psychological Thriller",key:"psychological_thriller",example:"A person questioning their own sanity after strange events"},{name:"Magical Realism",key:"magical_realism",example:"A normal town where strange, magical things occur without explanation"},{name:"Time Travel",key:"time_travel",example:"A scientist accidentally travels to the future"},{name:"Hero's Journey",key:"heros_journey",example:"A young warrior sets out on a quest to find a legendary sword"},{name:"Steampunk",key:"steampunk",example:"An inventor in an alternate Victorian era builds a steam-powered airship"},{name:"Horror",key:"horror",example:"A group of friends being hunted by a mysterious creature"},{name:"Space Opera",key:"space_opera",example:"A galactic war between rival planets"},{name:"Political Intrigue",key:"political_intrigue",example:"A royal family dealing with betrayal and power struggles"},{name:"Sports Drama",key:"sports_drama",example:"An underdog team striving to win a championship"},{name:"Survival Story",key:"survival_story",example:"A group stranded on a desert island must work together to survive"}];var Q=e=>{let{onCreateSuccess:a}=e,[t,i]=(0,d.useState)(4),[c,m]=(0,d.useState)(4),[g,f]=(0,d.useState)("basic"),[y,b]=(0,d.useState)("STANDARD"),[w,N]=(0,d.useState)(0),[S,A]=(0,d.useState)(""),[C,_]=(0,d.useState)(null),{data:P}=(0,M.useSession)(),[D,I]=(0,d.useState)(!1),[z,F]=(0,d.useState)(!1),[T,Q]=(0,d.useState)("en"),K=(0,E.useRouter)(),{t:Y}=(0,L.$G)(),{profile:$}=(0,v.S)(),{onOpen:X}=(0,H.r)(),[ee,ea]=(0,d.useState)(!1),[et,es]=(0,d.useState)("render"),el=e=>{N(e)},ei=async()=>{if(!D){let e;if(!S)return k.Am.warning(Y("Please select a file"));let s=new FormData;C&&s.append("name",C.rawFileName),s.append("tags",'["comic"]'),s.append("prompt",""),s.append("linkFileId",S),s.append("font",B.Df);let l=W[w].templateId;if(s.append("name",""),s.append("preset",l),s.append("layout",Z.oT),s.append("lang",T),s.append("extendPreset",et),s.append("showCaption","true"),s.append("useCase",R.ArtworkUseCase.COMIC),s.append("dialog",W[w].dialog+""),"basic"!=g){let e=J.find(e=>e.key==g);e&&s.append("llmPrompt",e.name+",for example: "+e.example)}let i=Array.from({length:t},(e,a)=>({page:a,prompt:"",beginPageIndex:0,totalPages:t,panelsPerPage:c,sourceFileId:S,layout:Z.oT,panels:Array.from({length:c},(e,a)=>({assetUrl:"",panel:a,instructions:"",prompt:"",caption:"",status:R.ArtworkStatus.LOADING,failedCode:0}))}));s.append("comicData",JSON.stringify(i)),s.append("comicFile","true"),s.append("comicCompletedSteps",w.toString()),s.append("comicTotalPages",t.toString()),s.append("comicPanelsPerPage",c.toString()),s.append("comicCharacterConsistency",ee+""),I(!0);let r=null;try{r=k.Am.loading(Y("Generating..."));let a=await fetch("/api/artworks",{method:"POST",body:s});e=await a.json()}catch(a){k.Am.warning(e.message||Y("Failed to generate comic"));return}finally{r&&k.Am.dismiss(r)}200===e.code?(K.push("/new/ai-comic-strips?id=".concat(e.artwork.id)),k.Am.success(Y("{{name}} generated successfully",{name:"comic"})),a&&a()):401===e.code||k.Am.warning(e.message),I(!1)}};return(0,d.useEffect)(()=>{S&&p.Z.get("/api/files/info?id=".concat(S)).then(e=>{_(e.data)})},[S]),(0,s.jsxs)("div",{className:"bg-grid-small-black/[0.1] max-sm:w-screen max-sm:p-4 max-sm:pb-10",children:[(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)("p",{className:"text-gray-600 mb-4",children:"Select the steps you want to complete for your comic."})}),(0,s.jsxs)(G.ScrollArea,{className:"py-4 w-[calc(100vw-2rem)] ",children:[(0,s.jsx)("div",{className:"flex flex-row items-center space-x-2",children:W.map((e,a)=>(0,s.jsxs)(d.Fragment,{children:[(0,s.jsxs)("div",{className:"relative flex flex-col bg-white rounded-lg shadow-md transition p-4 w-52 ".concat(a<=w?"border-2 border-blue-400 cursor-pointer hover:shadow-lg":a===w+1?"cursor-pointer hover:shadow-lg":"opacity-50"),onClick:()=>{a>=3&&"Free"===$.subscriptions[0].planName?X("","","You've reached the limit of stream flow in Comic Copilot"):el(a)},children:[(0,s.jsxs)("div",{className:"relative mb-4 h-40 overflow-hidden rounded-lg bg-gray-100",children:[(0,s.jsx)(l.Z,{src:e.image,alt:e.title,width:176,height:160,className:"w-full h-full object-contain transition-transform duration-300 hover:scale-105"}),(0,s.jsx)("div",{className:"absolute top-2 left-2 bg-white rounded-full w-8 h-8 flex items-center justify-center text-sm font-bold shadow",children:a+1}),a>=3&&(0,s.jsx)(o.C,{className:"absolute top-2 right-2 bg-brand text-white rounded-full px-2 py-1 text-xs font-semibold",children:"PRO"})]}),(0,s.jsx)("h3",{className:"font-bold text-lg mb-2",children:e.title}),(0,s.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:e.description}),a<=w&&(0,s.jsx)("div",{className:"absolute top-2 right-2",children:(0,s.jsx)("div",{className:"bg-blue-500 rounded-full p-1",children:(0,s.jsx)(U.Z,{className:"text-white w-5 h-5"})})})]}),a<W.length-1&&(0,s.jsx)("div",{className:"flex items-center justify-center w-8 ".concat(a<w?"text-blue-500":"text-gray-300"),children:(0,s.jsx)(q.Z,{size:24})})]},a))}),(0,s.jsx)(G.B,{orientation:"horizontal"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,s.jsxs)("div",{className:"mb-2 flex flex-row items-center space-x-2",children:[(0,s.jsx)("label",{htmlFor:"total-pages",className:"block font-medium w-48 text-sm",children:"Total Pages"}),(0,s.jsx)("div",{className:"flex-grow",children:(0,s.jsxs)(x.Ph,{value:t.toString(),onValueChange:e=>{if(Number(e)>=8&&"STANDARD"!==$.subscriptions[0].planName&&"PRO"!==$.subscriptions[0].planName&&"UNLIMITED"!==$.subscriptions[0].planName){X("","");return}i(Number(e))},defaultValue:t.toString(),children:[(0,s.jsx)(x.i4,{className:"w-64",children:(0,s.jsx)(x.ki,{placeholder:"Select total pages"})}),(0,s.jsx)(x.Bw,{children:(0,s.jsx)(x.DI,{children:Array.from({length:100},(e,a)=>a+4).map(e=>(0,s.jsx)(x.Ql,{value:e.toString(),children:(0,s.jsxs)("div",{className:"flex flex-row space-x-2 items-center",children:[(0,s.jsxs)("div",{children:[" ",e," Pages"]}),(0,s.jsx)(o.C,{className:(0,j.cn)("bg-brand rounded-sm text-xs",["4","5","6","7"].includes(e.toString())?"hidden":""),children:"PRO"})]})},e))})})]})})]}),(0,s.jsxs)("div",{className:"mb-2  flex flex-row items-center space-x-2",children:[(0,s.jsx)("label",{htmlFor:"panels-per-page",className:"block font-medium w-48 text-sm",children:"Panels per Page"}),(0,s.jsx)("div",{className:"flex-grow",children:(0,s.jsxs)(x.Ph,{value:c.toString(),onValueChange:e=>{if(4!=Number(e)&&5!=Number(e)&&"STANDARD"!==$.subscriptions[0].planName&&"PRO"!==$.subscriptions[0].planName&&"UNLIMITED"!==$.subscriptions[0].planName){X("","");return}m(Number(e))},defaultValue:c.toString(),children:[(0,s.jsx)(x.i4,{className:"w-64",children:(0,s.jsx)(x.ki,{placeholder:"Select panels per page"})}),(0,s.jsx)(x.Bw,{children:(0,s.jsx)(x.DI,{children:Array.from({length:64},(e,a)=>a+1).map(e=>(0,s.jsx)(x.Ql,{value:e.toString(),children:(0,s.jsxs)("div",{className:"flex flex-row space-x-2 items-center",children:[(0,s.jsxs)("div",{children:[" ",e," Panels Per Page"]}),(0,s.jsx)(o.C,{className:(0,j.cn)("bg-brand rounded-sm text-xs",["4","5"].includes(e.toString())?"hidden":""),children:"PRO"})]})},e))})})]})})]}),(0,s.jsxs)("div",{className:"mb-2  flex flex-row items-center space-x-2",children:[(0,s.jsxs)("label",{htmlFor:"panels-per-page",className:"block font-medium w-48 text-sm flex flex-row items-center space-x-2",children:[(0,s.jsx)("span",{children:"AI Story Architect"}),(0,s.jsx)("span",{children:(0,s.jsx)(n.pn,{delayDuration:0,children:(0,s.jsxs)(n.u,{children:[(0,s.jsx)(n.aJ,{asChild:!0,children:(0,s.jsx)(r.Z,{className:"w-4 h-4 text-muted-foreground"})}),(0,s.jsxs)(n._v,{side:"right",className:"z-50 max-w-2xl dark",children:[(0,s.jsx)("p",{children:"AI Story Architect helps you create stories in different styles:"}),(0,s.jsxs)("ul",{className:"list-disc list-inside",children:[(0,s.jsx)("li",{children:"Each option represents a unique story type or genre"}),(0,s.jsx)("li",{children:"It uses specialized knowledge about that genre's typical elements"}),(0,s.jsx)("li",{children:"This includes common plots, character types, and themes"}),(0,s.jsx)("li",{children:"It helps you craft stories that fit well within your chosen genre"}),(0,s.jsx)("li",{children:"Great for inspiration or staying true to genre conventions!"})]})]})]})})})]}),(0,s.jsx)("div",{className:"flex-grow",children:(0,s.jsxs)(x.Ph,{value:g,onValueChange:e=>{if("default"!=e&&"STANDARD"!==$.subscriptions[0].planName&&"PRO"!==$.subscriptions[0].planName&&"UNLIMITED"!==$.subscriptions[0].planName){X("","");return}f(e)},defaultValue:g,children:[(0,s.jsx)(x.i4,{className:"w-64",children:(0,s.jsx)(x.ki,{placeholder:"Select story architect"})}),(0,s.jsx)(x.Bw,{children:(0,s.jsx)(x.DI,{children:J.map(e=>(0,s.jsx)(x.Ql,{value:e.key,className:"block",children:(0,s.jsxs)("div",{className:"flex flex-row space-x-2 items-center justify-between",children:[(0,s.jsxs)("div",{children:[" ",e.name]}),(0,s.jsx)(o.C,{className:(0,j.cn)("bg-brand rounded-sm text-xs",["basic"].includes(e.key)?"hidden":""),children:"PRO"})]})},e.key))})})]})})]}),(0,s.jsxs)("div",{className:"mb-2 flex flex-row items-center space-x-2 text-sm",children:[(0,s.jsx)("label",{htmlFor:"character-consistency",className:"block font-medium w-48",children:"Character Consistency Enhancement"}),(0,s.jsxs)("div",{className:"flex-grow flex items-center space-x-2",children:[(0,s.jsx)(V.r,{id:"character-consistency",checked:ee,onCheckedChange:e=>{if("STANDARD"!==$.subscriptions[0].planName&&"PRO"!==$.subscriptions[0].planName&&"UNLIMITED"!==$.subscriptions[0].planName){X("","");return}ea(e)}}),(0,s.jsx)("span",{className:"text-sm text-gray-500",children:ee?"Enabled":"Disabled"}),(0,s.jsx)(o.C,{className:"bg-brand rounded-sm text-xs",children:"PRO"})]})]}),(0,s.jsxs)("div",{className:(0,j.cn)("mb-2  flex flex-row items-center space-x-2",w>3?"":"hidden"),children:[(0,s.jsx)("label",{htmlFor:"panels-per-page",className:"block font-medium w-48 text-sm",children:"Comic Book Style"}),(0,s.jsx)("div",{className:"flex-grow",children:(0,s.jsxs)(x.Ph,{value:et,onValueChange:e=>{es(e)},defaultValue:et,children:[(0,s.jsx)(x.i4,{className:"w-64",children:(0,s.jsx)(x.ki,{placeholder:"Select comic book style"})}),(0,s.jsx)(x.Bw,{children:(0,s.jsx)(x.DI,{children:h.vJ.map(e=>(0,s.jsx)(x.Ql,{value:e,children:(0,s.jsxs)("div",{className:"flex flex-row space-x-2 items-center",children:[(0,s.jsx)("div",{className:"w-48 text-left",children:h.um[e].label}),(0,s.jsx)("div",{className:"w-16",children:(0,s.jsx)(l.Z,{className:"rounded-md",src:h.um[e].exampleImageSrc,alt:h.um[e].label,width:28,height:28})})]})},e))})})]})})]})]}),(0,s.jsx)("div",{className:"mb-4 mt-12",children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(O,{isNewFile:!0,selected:"",onSelect:e=>{A(e)}})})}),(0,s.jsxs)("div",{className:"mt-6 flex max-sm:flex-col max-sm:space-y-2 justify-end ",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center space-x-4 mr-2",children:[(0,s.jsx)("span",{className:"font-medium",children:"Total Credits:"}),(0,s.jsxs)("span",{className:" line-through",children:[t*c*300," Credits, 50% off"]}),(0,s.jsxs)("span",{children:[t*c*150," Credits"]})]}),(0,s.jsx)(u.z,{className:" bg-brand text-brand-black hover:bg-brand hover:text-brand-black w-72 ",onClick:ei,children:"Generate Comics"})]})]})},K=t(82023);let Y=e=>{let{children:a}=e,t=(0,c.U0)(),[u,x]=(0,d.useState)(!1);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(n.u,{children:[(0,s.jsx)(n.aJ,{children:(0,s.jsxs)(i.Vq,{open:u,onOpenChange:x,children:[(0,s.jsx)("div",{onClick:()=>{t.capture("click_comic_copilot"),m.Z.capture("click_comic_copilot",{}),x(!0)},children:a||(0,s.jsx)(l.Z,{width:20,height:20,src:"/icons/magic.svg",alt:"magic1"})}),(0,s.jsxs)(i.cZ,{className:"max-w-screen max-h-screen  overflow-auto h-full sm:rounded-none rounded-none max-sm:p-0",children:[(0,s.jsxs)(i.$N,{className:"flex items-center space-x-2 text-2xl font-bold",children:[(0,s.jsx)(K.Z,{className:"h-6 w-6 text-yellow-500"}),(0,s.jsx)("span",{children:"Comic Copilot"}),(0,s.jsx)(o.C,{className:"ml-2 bg-gradient-to-r from-purple-400 to-pink-500 text-white",children:"Beta"}),(0,s.jsx)(n.pn,{children:(0,s.jsxs)(n.u,{children:[(0,s.jsx)(n.aJ,{asChild:!0,children:(0,s.jsx)(r.Z,{className:"w-4 h-4"})}),(0,s.jsx)(n._v,{className:"w-[540px] dark",children:(0,s.jsxs)("div",{className:"p-2",children:[(0,s.jsx)("h2",{className:" font-semibold mb-2",children:"How to use Comic Copilot:"}),(0,s.jsxs)("ol",{className:"list-decimal list-inside",children:[(0,s.jsx)("li",{children:"Select the number of pages and panels per page for your comic."}),(0,s.jsx)("li",{children:"Choose whether to enable Character Consistency Enhancement (PRO feature)."}),(0,s.jsx)("li",{children:"Upload or select a script file describing your comic story."}),(0,s.jsx)("li",{children:"Click through each step of the comic creation process."}),(0,s.jsx)("li",{children:'Review the credit cost and click "Generate Comics" when ready.'})]})]})})]})})]})," ",(0,s.jsx)(Q,{onCreateSuccess:()=>{x(!1)}})]})]})}),(0,s.jsxs)(n._v,{className:"dark w-56",side:"bottom",children:[(0,s.jsx)("h2",{className:"text-sm",children:"Comic Copilot"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Upload your script and let our AI agents bring your comic to life. "})]})]})})}},53902:function(e,a,t){t.d(a,{Z:function(){return b}});var s=t(57437),l=t(64913),i=t(80605),r=t(2265),n=t(5674),o=t(77763),c=t(86484),m=t(24319),d=t(99376),u=t(55788),x=t(12381),h=t(27648),p=t(93772),g=t(34072),f=t(92451),y=t(49322);function b(e){let{presetEmail:a,callbackurl:t,tip:b}=e,[j,w]=(0,r.useState)("required"),[N,v]=(0,r.useState)(null),[k,S]=(0,r.useState)(null),[A,C]=(0,r.useState)(a),[_,P]=(0,r.useState)(""),[D,I]=(0,r.useState)(1),[z,E]=(0,r.useState)(!1),[F,T]=(0,r.useState)(!1),O=t||"/app/dashboard",R=(0,d.useSearchParams)(),M=null==R?void 0:R.get("reason"),{t:B}=(0,u.$G)(),{mutate:Z}=(0,c.useMutation)("login",()=>(0,i.signIn)("email",{email:A,redirect:!1,callbackUrl:O},{captchaToken:k})),L=async e=>{if(e.preventDefault(),E(!0),"success"!==j){v("Please verify you are not a robot"),E(!1);return}try{let e=await fetch("/api/users/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:A,password:_,captchaToken:k})});if(e.ok&&200===e.status){let a=await e.json();200===a.code?window.location.href=O:(p.Am.warning(a.error||"Failed to login"),S(null),w("required"))}else p.Am.warning("Failed to login"),S(null),w("required")}catch(e){p.Am.warning("Failed to login"),S(null),w("required")}finally{E(!1)}};if(F){let{name:e,url:a}=(0,l.W)(A);return(0,s.jsxs)("div",{className:"w-full mx-auto max-w-xl py-12 px-4",children:[(0,s.jsxs)("h1",{className:"text-2xl font-bold flex flex-row items-center",children:[(0,s.jsx)("span",{className:"mr-2",children:B("Check your email")})," ",(0,s.jsx)(o.Tcr,{className:"text-green-500"})]}),(0,s.jsxs)("p",{className:"max-w-30rem mt-3 text-2xl",children:[B("A sign in link has been sent to your email address. "),e&&a&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("a",{className:"underline",target:"_blank",href:a,children:B("Check your {{name}} inbox.",{name:e})})})]}),(0,s.jsx)("p",{className:"mt-3 text-sm text-muted-foreground",children:B("If you haven't received the email, please check your spam folder.")}),(0,s.jsxs)(x.z,{variant:"ghost",onClick:()=>T(!1),className:"mt-8 flex flex-row items-center space-x-1 px-0  ",children:[(0,s.jsx)(f.Z,{className:"w-3 h-3"}),(0,s.jsxs)("span",{className:"text-muted-foreground",children:[" ",B("Back")]})]})]})}return(0,s.jsxs)("div",{className:"w-full mx-auto lg:w-[480px] px-4 py-12",children:[(0,s.jsx)("h1",{className:"md:text-3xl text-xl text-center font-semibold mb-14",style:{fontFamily:"AutourOne",fontWeight:400},children:B("Welcome to LlamGen.Ai")}),b,"generate"===M&&(0,s.jsx)("div",{className:"border-yellow-500 mb-8 border rounded-lg txt-sm  p-2 font-bold text-muted-foreground",children:B("It seems that you need to sign in to generate artwork.")}),"comment"===M&&(0,s.jsx)("div",{className:"border-yellow-500 mb-8 border rounded-lg txt-sm  p-2 font-bold text-muted-foreground",children:B("It seems that you need to sign in to comment artwork.")}),(0,s.jsxs)("div",{children:[(0,s.jsx)("form",{className:"space-y-5",onSubmit:1===D?e=>{e.preventDefault(),console.log("email",A),A&&I(2)}:L,children:1===D?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsx)("input",{required:!0,value:A,onChange:e=>C(e.currentTarget.value),placeholder:B("Enter your E-mail address"),type:"email",id:"email",className:"text-black h-[48px] rounded-xl dark:bg-zinc-800 dark:text-white block w-full py-2 px-3 border border-gray-300 shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"})}),(0,s.jsx)("div",{children:(0,s.jsx)(x.z,{className:"w-full h-12",style:{background:"linear-gradient(88.66deg, #FCAF1B 1.22%, #F26525 122.99%)"},disabled:z||"success"!==j,type:"submit",children:B("Continue with email")})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsx)("input",{disabled:!0,value:A,placeholder:B("Enter your E-mail address"),type:"email",id:"email",className:"text-black h-[48px] rounded-xl dark:bg-zinc-800 dark:text-white block w-full py-2 px-3 border border-gray-300 shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"})}),(0,s.jsx)("div",{children:(0,s.jsx)("input",{required:!0,value:_,onChange:e=>P(e.currentTarget.value),placeholder:B("Enter your password"),type:"password",id:"password",className:"text-black h-[48px] rounded-xl dark:bg-zinc-800 dark:text-white block w-full py-2 px-3 border border-gray-300 shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"})}),(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{onClick:()=>{if(A){if("success"!==j){v("Please verify you are not a robot"),E(!1);return}T(!0),Z()}},className:"text-blue-500 text-2xs cursor-pointer",children:B("Sign in with magic link")})}),(0,s.jsx)("div",{children:(0,s.jsxs)(x.z,{className:"w-full h-12",style:{background:"linear-gradient(88.66deg, #FCAF1B 1.22%, #F26525 122.99%)"},disabled:z||"success"!==j,type:"submit",children:[z&&(0,s.jsx)(m.P.spinner,{className:"mr-2 h-4 w-4 animate-spin"}),B(z?"Loading...":"Sign in")]})})]})}),(0,s.jsx)("div",{className:"mt-3 text-center",children:(0,s.jsxs)("span",{className:"text-muted-foreground text-sm ",children:[B("By signing in, you agree to our "),(0,s.jsxs)("a",{className:"underline",target:"_blank",href:"/privacy",children:[B("Privacy")," "]}),B("and "),(0,s.jsx)("a",{className:"underline",target:"_blank",href:"/terms",children:B("Terms")}),"."]})}),(0,s.jsx)(g.Nc,{siteKey:"0x4AAAAAAAx6WV4rtBD_-I_Q",onError:()=>w("error"),onExpire:()=>w("expired"),onSuccess:e=>{S(e),w("success"),v(null)}}),N&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-red-500 text-sm mb-2","aria-live":"polite",children:[(0,s.jsx)(y.Z,{size:16}),(0,s.jsx)("span",{children:N})]}),(0,s.jsxs)("div",{className:"my-8 text-center text-sm flex flex-row items-center",style:{color:"rgba(32, 35, 52, 0.64)"},children:[(0,s.jsx)("div",{className:"w-1/3",style:{height:"1px",background:"linear-gradient(270deg, rgba(32, 35, 52, 0.5) -0.15%, rgba(32, 35, 52, 0) 96.4%)"}}),(0,s.jsx)("div",{className:"w-1/3",children:B("or login in with other")}),(0,s.jsx)("div",{className:"w-1/3 rotate-180",style:{height:"1px",background:"linear-gradient(270deg, rgba(32, 35, 52, 0.5) 0%, rgba(32, 35, 52, 0) 100%)"}})]}),(0,s.jsxs)("div",{className:"space-y-5",children:[(0,s.jsxs)(x.z,{onClick:()=>(0,i.signIn)("google"),className:"w-full h-12 rounded-full ",variant:"outline",style:{border:" 1px solid rgba(32, 35, 52, 0.48)"},children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"24",width:"24",className:"mr-2",children:[(0,s.jsx)("path",{fill:"#4285f4",d:"M386 400c45-42 65-112 53-179H260v74h102c-4 24-18 44-38 57z"}),(0,s.jsx)("path",{fill:"#34a853",d:"M90 341a192 192 0 0 0 296 59l-62-48c-53 35-141 22-171-60z"}),(0,s.jsx)("path",{fill:"#fbbc02",d:"M153 292c-8-25-8-48 0-73l-63-49c-23 46-30 111 0 171z"}),(0,s.jsx)("path",{fill:"#ea4335",d:"M153 219c22-69 116-109 179-50l55-54c-78-75-230-72-297 55z"})]}),B("Sign in with Google")]}),(0,s.jsxs)(x.z,{onClick:()=>(0,i.signIn)("discord"),className:"w-full h-12 rounded-full ",style:{border:" 1px solid rgba(32, 35, 52, 0.48)"},variant:"outline",children:[(0,s.jsx)(n.j2d,{className:"mr-2 text-[#404eed] text-xl"}),B("Sign in with Discord")]}),(0,s.jsxs)(x.z,{onClick:()=>(0,i.signIn)("twitter"),className:"w-full h-12 rounded-full ",style:{border:" 1px solid rgba(32, 35, 52, 0.48)"},variant:"outline",children:[(0,s.jsx)(n.fWC,{className:"mr-2 text-blue-400 text-xl"}),B("Sign in with Twitter")]})]}),(0,s.jsxs)("p",{className:"text-sm  text-center mt-5",children:[(0,s.jsxs)("span",{className:"text-[#292440]",children:[B("Don't have an account?")," "]}),(0,s.jsxs)(h.default,{href:"/signup",className:"text-[#F26525]",children:[B("Sign up")," "]})]})]})]})}},3713:function(e,a,t){t.d(a,{f:function(){return c}});var s=t(57437),l=t(2265),i=t(13717),r=t(54072),n=t(5095),o=t(93448);let c=e=>{let{imageUrl:a,children:t,childrenClassName:c,imageClassName:u,className:x}=e,h=(0,l.useRef)(null),[p,g]=(0,l.useState)("left"),f=(e,a)=>{let{width:t,height:s,left:l,top:i}=a.getBoundingClientRect(),r=e.clientX-l-t/2*(t>s?s/t:1);return Math.round(Math.atan2(e.clientY-i-s/2*(s>t?t/s:1),r)/1.57079633+5)%4};return(0,s.jsx)(r.E.div,{onMouseEnter:e=>{if(h.current)switch(f(e,h.current)){case 0:g("top");break;case 1:g("right");break;case 2:g("bottom");break;default:g("left")}},ref:h,className:(0,o.cn)("md:h-96 w-60 h-60 md:w-96 bg-transparent rounded-lg overflow-hidden group/card relative",x),children:(0,s.jsx)(n.M,{mode:"wait",children:(0,s.jsxs)(r.E.div,{className:"relative h-full w-full",initial:"initial",whileHover:p,exit:"exit",children:[t&&(0,s.jsx)(r.E.div,{className:"group-hover/card:block hidden absolute inset-0 w-full h-full z-10 transition duration-500"}),(0,s.jsx)(r.E.div,{variants:m,className:"h-full w-full relative bg-gray-50 dark:bg-black",transition:{duration:.2,ease:"easeOut"},children:(0,s.jsx)(i.Z,{alt:"image",className:(0,o.cn)("h-full w-full object-cover scale-[1.15]",u),width:"1000",height:"1000",src:a,unoptimized:!0})}),t&&(0,s.jsx)(r.E.div,{variants:d,transition:{duration:.5,ease:"easeOut"},className:(0,o.cn)("text-white absolute bottom-4 left-4 z-40",c),children:t})]})})})},m={initial:{x:0},exit:{x:0,y:0},top:{y:20},bottom:{y:-20},left:{x:20},right:{x:-20}},d={initial:{y:0,x:0,opacity:0},exit:{y:0,x:0,opacity:0},top:{y:-20,opacity:1},bottom:{y:2,opacity:1},left:{x:-2,opacity:1},right:{x:20,opacity:1}}},90641:function(e,a,t){t.d(a,{B:function(){return o},ScrollArea:function(){return n}});var s=t(57437),l=t(2265),i=t(43643),r=t(93448);let n=l.forwardRef((e,a)=>{let{className:t,children:l,...n}=e;return(0,s.jsxs)(i.fC,{ref:a,className:(0,r.cn)("relative overflow-hidden",t),...n,children:[(0,s.jsx)(i.l_,{className:"h-full w-full rounded-[inherit]",children:l}),(0,s.jsx)(o,{}),(0,s.jsx)(i.Ns,{})]})});n.displayName=i.fC.displayName;let o=l.forwardRef((e,a)=>{let{className:t,orientation:l="vertical",...n}=e;return(0,s.jsx)(i.gb,{ref:a,orientation:l,className:(0,r.cn)("flex touch-none select-none transition-colors","vertical"===l&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===l&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...n,children:(0,s.jsx)(i.q4,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=i.gb.displayName},69140:function(e,a,t){t.d(a,{O:function(){return i}});var s=t(57437),l=t(93448);function i(e){let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-muted",a),...t})}},64913:function(e,a,t){t.d(a,{W:function(){return l}});let s=[{name:"Gmail",url:"https://mail.google.com/",hosts:["gmail.com","googlemail.com"]},{name:"Yahoo!",url:"https://mail.yahoo.com/",hosts:["yahoo.com","yahoo.es","yahoo.it","yahoo.de","yahoo.fr","yahoo.in","yahoo.ca","yahoo.com.br","yahoo.com.au","yahoo.com.ar","yahoo.com.mx","yahoo.com.sg","yahoo.co.id","yahoo.co.in","yahoo.co.jp","yahoo.co.uk"]},{name:"Fastmail",url:"https://www.fastmail.com/mail/",hosts:["123mail.org","150mail.com","150ml.com","16mail.com","2-mail.com","4email.net","50mail.com","airpost.net","allmail.net","bestmail.us","cluemail.com","elitemail.org","emailcorner.net","emailengine.net","emailengine.org","emailgroups.net","emailplus.org","emailuser.net","eml.cc","f-m.fm","fast-email.com","fast-mail.org","fastem.com","fastemail.us","fastemailer.com","fastest.cc","fastimap.com","fastmail.cn","fastmail.co.uk","fastmail.com","fastmail.com.au","fastmail.de","fastmail.es","fastmail.fm","fastmail.fr","fastmail.im","fastmail.in","fastmail.jp","fastmail.mx","fastmail.net","fastmail.nl","fastmail.org","fastmail.se","fastmail.to","fastmail.tw","fastmail.uk","fastmail.us","fastmailbox.net","fastmessaging.com","fea.st","fmail.co.uk","fmailbox.com","fmgirl.com","fmguy.com","ftml.net","h-mail.us","hailmail.net","imap-mail.com","imap.cc","imapmail.org","inoutbox.com","internet-e-mail.com","internet-mail.org","internetemails.net","internetmailing.net","jetemail.net","justemail.net","letterboxes.org","mail-central.com","mail-page.com","mailandftp.com","mailas.com","mailbolt.com","mailc.net","mailcan.com","mailforce.net","mailftp.com","mailhaven.com","mailingaddress.org","mailite.com","mailmight.com","mailnew.com","mailsent.net","mailservice.ms","mailup.net","mailworks.org","ml1.net","mm.st","myfastmail.com","mymacmail.com","nospammail.net","ownmail.net","petml.com","postinbox.com","postpro.net","proinbox.com","promessage.com","realemail.net","reallyfast.biz","reallyfast.info","rushpost.com","sent.as","sent.at","sent.com","speedpost.net","speedymail.org","ssl-mail.com","swift-mail.com","the-fastest.net","the-quickest.com","theinternetemail.com","veryfast.biz","veryspeedy.net","warpmail.net","xsmail.com","yepmail.net","your-mail.com"]},{name:"ProtonMail",url:"https://mail.protonmail.com/",hosts:["protonmail.com","protonmail.ch","pm.me"]},{name:"Apple iCloud",url:"https://www.icloud.com/mail/",hosts:["icloud.com","me.com","mac.com"]},{name:"Mail.ru",url:"https://mail.ru/",hosts:["mail.ru","bk.ru","inbox.ru","list.ru"]},{name:"Mail.ru",url:"https://mail.ru/",hosts:["mail.ru","bk.ru","inbox.ru","list.ru"]},{name:"AOL",url:"https://aol.com/",hosts:["aol.com"]},{name:"Zoho",url:"https://mail.zoho.com/",hosts:["zohomail.com","zoho.com"]},{name:"BOL",url:"https://email.bol.uol.com.br/",hosts:["bol.com.br"]},{name:"UOL",url:"https://email.uol.com.br/",hosts:["uol.com.br"]}];function l(e){var a;let[,t]=e.split("@");return null!==(a=s.find(e=>e.hosts.includes(t)))&&void 0!==a?a:{name:"",url:"",hosts:[]}}},84908:function(e,a,t){t.d(a,{Df:function(){return y},Rq:function(){return f}});var s=t(92030),l=t.n(s),i=t(76010),r=t.n(i),n=t(54730),o=t.n(n),c=t(81338),m=t.n(c),d=t(76710),u=t.n(d),x=t(95729),h=t.n(x),p=t(58308),g=t.n(p);let f={crimsontext:h(),avenirnext:g(),cartoonist:u(),digitalstrip:m(),indieflower:l(),thegirlnextdoor:o(),Caveat:r()};Object.keys(f);let y="cartoonist";Object.values(f).map(e=>e.className).join(" ")}}]);
//# sourceMappingURL=7238-424c4d7d362a5f14.js.map