PageSourceSearch

https://nodeland.io/_next/static/chunks/3621-9fba29828e0938a1.js

js nodeland.io collected 2026-10-04 01:49:06 UTC 55,649 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3621],{59763:function(e,t,a){"use strict";var r=a(85893),o=a(67294),i=a(54271),s=a.n(i),n=a(35092),l=a(11079),d=a(11163);let c=["Did you know that mind maps are a powerful tool for learning?","More than a third of your brain is dedicated to vision. That's more than any other sense!","The human brain is the most complex object in the known universe.","The average person has about 60,000 thoughts a day.","The brain is 73% water. Stay hydrated!","Visual thinking is a powerful tool for problem solving.","Learning happens when new information is connected to existing knowledge.","Visual thinking can help you remember more information.","Mind maps can help you organize your thoughts and ideas.","Mind maps can help you see connections between different ideas."],p=["Sabia que mapas mentais s\xe3o uma ferramenta poderosa para aprender?","Mais de um ter\xe7o do seu c\xe9rebro \xe9 dedicado \xe0 vis\xe3o. Isso \xe9 mais do que qualquer outro sentido!","O c\xe9rebro humano \xe9 o objeto mais complexo do universo conhecido.","A pessoa m\xe9dia tem cerca de 60.000 pensamentos por dia.","O c\xe9rebro \xe9 73% \xe1gua. Mantenha-se hidratado!","O pensamento visual \xe9 uma ferramenta poderosa para resolver problemas.","A aprendizagem ocorre quando novas informa\xe7\xf5es s\xe3o conectadas ao conhecimento existente.","O pensamento visual pode ajud\xe1-lo a lembrar mais informa\xe7\xf5es.","Mapas mentais podem ajud\xe1-lo a organizar seus pensamentos e ideias.","Mapas mentais podem ajud\xe1-lo a ver conex\xf5es entre diferentes ideias."];t.Z=e=>{let{title:t,desiredTime:a,...i}=e,[u,m]=(0,o.useState)(0),[g,f]=(0,o.useState)(c[Math.floor(Math.random()*c.length)]),{userLanguage:x,theme:h}=(0,n.bN)(),b=(0,d.useRouter)(),y=(0,l.d)();(0,o.useEffect)(()=>{"pt"===x?f(p[Math.floor(Math.random()*p.length)]):f(c[Math.floor(Math.random()*c.length)])},[x]);let v=1e3/(100/a);return(0,o.useEffect)(()=>{if(u>=100)return;if(void 0!==i.progress&&null!==i.progress){m(i.progress);return}let e=setInterval(()=>m(e=>e+1),v);return()=>clearInterval(e)},[u,i.progress,v]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:s().loadingContainer,"data-theme":h,children:(0,r.jsxs)("div",{className:s().contentCard,children:[(0,r.jsx)("h1",{className:s().title,children:t}),(0,r.jsxs)("div",{className:s().progressSection,children:[(0,r.jsx)("div",{className:s().loadingAnimation,children:(0,r.jsx)("div",{className:s().spinner})}),(0,r.jsx)("div",{className:s().progressBar,children:(0,r.jsx)("div",{className:s().progressFill,style:{width:"".concat(u,"%")}})}),(0,r.jsxs)("div",{className:s().progressText,children:[u,"%"]})]})]})}),!y&&"/create"===b.pathname&&(0,r.jsx)("div",{className:s().phraseContainer,children:(0,r.jsx)("div",{className:s().phrase,"data-theme":h,children:g})})]})}},93621:function(e,t,a){"use strict";a.d(t,{b:function(){return M}});var r=a(85893),o=a(40645),i=a.n(o),s=a(62192),n=a(53483),l=a(59763),d=a(11079),c=a(11163),p=a(74455),u=a(30211),m=a(33299),g=a(67294),f=a(35092),x=a(97384),h=a.n(x),b=a(39332),y=a(25675),v=a.n(y),_=a(4298),j=a.n(_),w=a(71925);let k=e=>{let{onFileSelect:t}=e,[a,o]=(0,g.useState)(!1),[s,n]=(0,g.useState)(!1),l=(0,g.useRef)(null),d=e=>{if(!e)return;n(!0);let a=new FileReader;a.onload=()=>{let r=a.result,o=r.split(",")[1],i=e.name,s=e.type;if(!i.includes(".")){let e=(0,w.U)(o);e&&(i+=".".concat(e),s="image/".concat(e))}t(r,i,s,e.size),n(!1)},a.onerror=()=>{n(!1)},a.readAsDataURL(e)};return(0,r.jsxs)("div",{onClick:()=>{var e;null===(e=l.current)||void 0===e||e.click()},onDragOver:e=>{e.preventDefault(),o(!0)},onDragLeave:e=>{e.preventDefault(),o(!1)},onDrop:e=>{e.preventDefault(),o(!1);let t=e.dataTransfer.files;t.length>0&&d(t[0])},style:{border:"2px dashed ".concat(a?"#A9CE17":"#ddd"),borderRadius:"12px",padding:"15px 20px",textAlign:"center",cursor:"pointer",transition:"all 0.3s ease",backgroundColor:a?"#f8fff8":"#fafafa",margin:"20px 0px 0px 0px",position:"relative"},className:"jsx-ff161281ed666c63",children:[(0,r.jsx)("input",{ref:l,type:"file",style:{display:"none"},onChange:e=>{let t=e.target.files;t&&t.length>0&&d(t[0]),e.target.value=""},accept:".pdf,.doc,.docx,.txt,.rtf,.xlsx,.xls,.csv,.ods",className:"jsx-ff161281ed666c63"}),s?(0,r.jsxs)("div",{className:"jsx-ff161281ed666c63",children:[(0,r.jsx)("div",{style:{width:"40px",height:"40px",border:"3px solid #f3f3f3",borderTop:"3px solid #A9CE17",borderRadius:"50%",animation:"spin 1s linear infinite",margin:"0 auto 15px"},className:"jsx-ff161281ed666c63"}),(0,r.jsx)("div",{style:{fontSize:"16px",fontFamily:'"Inter", sans-serif',color:"#666",marginBottom:"8px"},className:"jsx-ff161281ed666c63",children:"Processing file..."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{fontSize:"48px",marginBottom:"15px",color:a?"#A9CE17":"#ccc",transition:"color 0.3s ease"},className:"jsx-ff161281ed666c63",children:"\uD83D\uDCC1"}),(0,r.jsx)("div",{style:{fontSize:"18px",fontFamily:'"Bricolage Grotesque", sans-serif',fontWeight:600,color:"#333",marginBottom:"8px"},className:"jsx-ff161281ed666c63",children:a?(0,r.jsx)(f.xv,{tid:"maps_page_create_new_drop_your_file_here"}):(0,r.jsx)(f.xv,{tid:"maps_page_create_new_drag_and_drop_your_file_here"})}),(0,r.jsx)("div",{style:{fontSize:"14px",fontFamily:'"Inter", sans-serif',color:"#666",marginBottom:"15px"},className:"jsx-ff161281ed666c63",children:(0,r.jsx)(f.xv,{tid:"maps_page_create_new_or_click_to_browse_files"})}),(0,r.jsx)("div",{style:{fontSize:"12px",fontFamily:'"Inter", sans-serif',color:"#999",marginTop:"15p
1x"},className:"jsx-ff161281ed666c63",children:(0,r.jsx)(f.xv,{tid:"maps_page_create_new_file_upload_instructions"})})]}),(0,r.jsx)(i(),{id:"ff161281ed666c63",children:"@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}"})]})};var S=a(33874),C=a(13913),N=a(55678),z=a(70385);a.g.prisma||new z.PrismaClient;let I=e=>e?e.toLowerCase().trim().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,100):"";var E=a(42579),F=a(34155);let A=["ai","file","web","youtube","flashcards"],T={"ar-SA":"Arabic","bg-BG":"Bulgarian","zh-CN":"Chinese (Simplified)","zh-TW":"Chinese (Traditional)","hr-HR":"Croatian","nl-NL":"Dutch (Netherlands)","en-US":"English (United States)","en-GB":"English (United Kingdom)","fr-FR":"French (France)","de-DE":"German (Germany)","id-ID":"Indonesian","it-IT":"Italian","ja-JP":"Japanese","ko-KR":"Korean","nb-NO":"Norwegian","pl-PL":"Polish","pt-BR":"Portugu\xeas","ru-RU":"Russian","es-ES":"Spanish (Spain)","es-MX":"Spanish (Mexico)","tr-TR":"Turkish","vi-VN":"Vietnamese"},R=e=>{let t=["The meaning of life","The history of the Roman Empire","Benefits of eating healthy","Cool facts about the universe","English grammar rules","Best Movies of all time","The art of painting","Artificial Intelligence","Music theory","My Family Tree","The history of the internet","The best programming languages","Animals in the wild","How to build a treehouse","Routine of successful people","Mysteries of the Deep Ocean","Guide to Meditation","The Rise and Fall of Ancient Civilizations","The Science Behind Climate Change","Mastering the Art of French Cooking"],a=["O significado da vida","A hist\xf3ria do Imp\xe9rio Romano","Benef\xedcios da alimenta\xe7\xe3o saud\xe1vel","Curiosidades legais sobre o universo","Regras gramaticais do portugu\xeas","Filmes incr\xedveis","A arte da pintura","Intelig\xeancia Artificial","Teoria da M\xfasica","Minha \xc1rvore Geneal\xf3gica","A hist\xf3ria da internet","O que s\xe3o linguagens de programa\xe7\xe3o","Animais na natureza","Mist\xe9rios do Oceano Profundo","Guia para Medita\xe7\xe3o","A Ci\xeancia por Tr\xe1s das Mudan\xe7as Clim\xe1ticas","Civiliza\xe7\xf5es Antigas","Rotinas de pessoas bem-sucedidas"];return"pt"===e?a[Math.floor(Math.random()*a.length)]:t[Math.floor(Math.random()*t.length)]},M=e=>{let{setIsOpen:t,onMapCreated:a}=e,{data:o}=(0,m.useSession)(),{userPlan:x,setErrorMessage:y,userLanguage:_,workspaceId:w,theme:z,error:M,setError:D,refreshUserPlan:B,refreshAvailableMaps:L}=(0,f.bN)(),U=(0,b.useSearchParams)(),q=U.get("mode"),P=(0,d.d)(),[W,O]=(0,g.useState)("pt"===_?"pt-BR":"en-US"),[G,K]=(0,g.useState)(""),[Z,H]=(0,g.useState)(""),[Y,V]=(0,g.useState)(U.get("topic")||""),[$,Q]=(0,g.useState)(null),[J,X]=(0,g.useState)(R(_)),[ee,et]=(0,g.useState)(U.get("sourceUrl")||""),[ea,er]=(0,g.useState)(!1),[eo,ei]=(0,g.useState)(null),[es,en]=(0,g.useState)(!1),[el,ed]=(0,g.useState)(null),[ec,ep]=(0,g.useState)(!1),[eu,em]=(0,g.useState)(U.get("step")?parseInt(U.get("step")):1),[eg,ef]=(0,g.useState)(!1),[ex,eh]=(0,g.useState)(!1),[eb,ey]=(0,g.useState)(!1),[ev,e_]=(0,g.useState)(!1),[ej,ew]=(0,g.useState)(""),[ek,eS]=(0,g.useState)(q||"blank-board"),[eC,eN]=(0,g.useState)(null),[ez,eI]=(0,g.useState)(null),[eE,eF]=(0,g.useState)(!1),[eA,eT]=(0,g.useState)(!1),[eR,eM]=(0,g.useState)(null),[eD,eB]=(0,g.useState)(null),[eL,eU]=(0,g.useState)(null),[eq,eP]=(0,g.useState)(null),[eW,eO]=(0,g.useState)(null),[eG,eK]=(0,g.useState)("horizontal"),[eZ,eH]=(0,g.useState)(""),[eY,eV]=(0,g.useState)(!1),[e$,eQ]=(0,g.useState)(!1),[eJ,eX]=(0,g.useState)(""),[e0,e1]=(0,g.useState)(""),{handleInputChange:e5,input:e2,complete:e6}=(0,s.GO)({api:"/api/documents/create/usingAI",body:{language:W,customInstru
1ctions:Y,mode:ek}}),e3=(0,c.useRouter)(),e4=(0,g.useRef)(null),e8=[{id:"blank-board",emoji:"\uD83D\uDCCB",image:"/icons/plus.png",titleKey:"maps_page_create_empty_board",requiresAdvanced:!1,credits:0},{id:"ai",emoji:"\uD83E\uDD16",image:"/icons/mind-map.png",titleKey:"maps_page_create_from_topic",requiresAdvanced:!0,credits:5},{id:"file",emoji:"\uD83D\uDCC4",image:null,titleKey:"maps_page_create_file_summarization",requiresAdvanced:!0,credits:7},{id:"web",emoji:"\uD83C\uDF10",image:null,titleKey:"maps_page_create_web_page_summarization",requiresAdvanced:!0,credits:5},{id:"youtube",emoji:null,image:"/icons/youtube.svg",titleKey:"maps_page_create_from_youtube",requiresAdvanced:!0,credits:7}],e7=[{id:"mind-map-scratch",emoji:"\uD83E\uDDE0",image:"/icons/mind-map.png",titleKey:"maps_page_create_mind_map",requiresAdvanced:!1,credits:0},{id:"flashcards",emoji:"\uD83C\uDCCF",image:null,titleKey:"maps_page_create_flashcards",requiresAdvanced:!0,credits:5},{id:"organogram",emoji:"\uD83C\uDF33",image:"/icons/organogram.png",titleKey:"maps_page_create_organogram",requiresAdvanced:!1,credits:0},{id:"swot_analysis",emoji:null,image:"/icons/swot-analysis.png",titleKey:"maps_page_create_swot_analysis",requiresAdvanced:!1,credits:0},{id:"sales_funnel",emoji:null,image:"/icons/funnel.svg",titleKey:"maps_page_create_sales_funnel",requiresAdvanced:!1,credits:0}],e9=[...e8,...e7].find(e=>e.id===ek),te=(0,g.useCallback)(()=>{if(G.trim())return G.trim();let e=(Y||eW||"").trim();if("ai"===ek||"flashcards"===ek)return e.slice(0,200);if("file"===ek&&(null==$?void 0:$.name))return $.name.replace(/\.[^/.]+$/,"").replace(/[._-]+/g," ").trim();if("web"===ek){if(eJ.trim())return eJ.trim().slice(0,200);if(ee.trim()){let e=function(e){try{let t=e.trim(),a=new URL(t.startsWith("http")?t:"https://".concat(t)),r=a.pathname.replace(/^\/+|\/+$/g,"");if(r){let e=r.split("/").filter(Boolean),t=(e[e.length-1]||"").replace(/\.[a-z0-9]+$/i,""),a=I(t);if(a)return a}let o=a.hostname.replace(/^www\./i,"");return I(o)}catch(e){return""}}(ee);return e?e.replace(/-/g," "):""}}return"youtube"===ek&&e0.trim()?e0.trim().slice(0,200):""},[ek,G,Y,eW,null==$?void 0:$.name,ee,eJ,e0]);(0,g.useEffect)(()=>{eV(!1),eH(""),eQ(!1),eX(""),e1("")},[ek]),(0,g.useEffect)(()=>{if(!A.includes(ek)||eY)return;let e=te();e&&eH(I(e))},[ek,eY,te]),(0,g.useEffect)(()=>{var e;null==e4||null===(e=e4.current)||void 0===e||e.focus()},[e4]),(0,g.useEffect)(()=>{try{let e=localStorage.getItem("youtube-to-mindmap-source-url");e&&et(e);let t=localStorage.getItem("topic-to-mindmap-topic");t&&!U.get("topic")&&V(t);let a=localStorage.getItem("creation-mode");a&&eS(a);let r=localStorage.getItem("creation-step");r&&em(parseInt(r)),localStorage.removeItem("youtube-to-mindmap-source-url"),localStorage.removeItem("topic-to-mindmap-topic"),localStorage.removeItem("creation-mode"),localStorage.removeItem("creation-step")}catch(e){console.log("localStorage not available, relying on URL parameters")}},[]),(0,g.useEffect)(()=>{if("youtube"!==ek){ew("");return}if(ee&&ee.includes("v=")){var e;ew(null===(e=ee.split("v=")[1])||void 0===e?void 0:e.split("&")[0])}else ee&&ee.includes("youtu.be/")?ew(ee.split("youtu.be/")[1].split("?")[0]):11===ee.length?ew(ee):ew("")},[ee]),(0,g.useEffect)(()=>{let e=async()=>{console.log("refreshing user plan");let e=await B();console.log("userPlan",e);let t=(null==e9?void 0:e9.credits)||0,a=(null==e?void 0:e.availableCredits)||0;t>0&&a>=t&&(ey(!1),await tb())};if(!eb)return;let t=setInterval(async()=>{e()},2500);return()=>clearInterval(t)},[eb]);let tt=async()=>{var e,t,a,r,i,s,l;if(null==o?void 0:null===(e=o.user)||void 0===e?void 0:e.email){"ai"===ek&&eO(Y),eF(!0);try{let e={outputLanguage:W,sourceType:"ai"===ek?"topic":ek};if("file"===ek){if(!$)return;let t=te(),a=eY?I(eZ):I(t||"map"),r=(await n.Z.post("/api/s3/saveMap",{title:t,description:Z,content:{nodes:[],edges:[]},workspaceId:w,creationMode:ek,language:W,layout:eG,slug:a})).data.id,i=$.name.split(".").pop()||"txt",s=($.name||"file").replace(/[^a-zA-Z0-9.]/g,""),l=await n.Z.post("/api/s3/getSignedUrl",{objectOwnerEmail:o.user.email,contentType:i,isPublic:!1,documentId:r,method:"PUT",resourcePath:"source/".concat(s)}),d=null==l?void 0:l.data.signedUrl,c=$.fileb64.split(";")[0].split(":")[1],p=$.fileb64.replace(/^data:[^;]+;base64,/,""),u=atob(p),m=new Uint8Array(u.length);for(let e=0;e<u.length;e++)m[e]=u.charCodeAt(e);let g=m.length/1048576;await n.Z.put(d,m,{headers:{"Content-Type":c,"Content-Length":m.byteLength}});let f="".concat(o.user.email,"/").concat(r,"/source/").concat(s);eM(f),eB(c),eU(g),eT(!0),eP(r),e={...e,fileKey:f,fileType:c}}else if("ai"===ek){if(!(null==Y?void 0:Y.trim())){eF(!1);return}e={...e,rawText:Y.trim()}}else if("web"===ek){let t=await n.Z.post("/api/documents/extractWebPageText",{url:ee});eX(t.data.title||""),e={...e,rawText:t.data.rawText}}else if("youtube"===ek){let t=W.split("-")[0],a=await n.Z.post("/api/documents/extractYoutubeTranscript",{url:ee,languageHint:t});e1(a.data.title||""),e={...e,rawText:a.data.rawText}}let t=(await n.Z.post("/api/documents/analyze",e)).data.suggestions||[];eN(t),t.length>0&&eI(t[0]),eF(!1),ef(!0),setTimeout(()=>{em(2.5),ef(!1)},200)}catch(e){console.error("Error analyzing content:",e),eF(!1),(null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.status)===400&&(null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(a=r.data)||void 0===a?void 0:a.message)==="Insufficient credits"?D(p.N.INSUFFICIENT_CREDITS):(null==e?void 0:null===(i=e.response)||void 0===i?void 0:i.status)===400&&(null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(s=l.data)||void 0===s?void 0:s.message)==="You've reached the maps limit"?D(p.N.TOO_MANY_MAPS):N.Am.error("pt"===_?"Erro ao analisar o conte\xfado. Tente novamente.":"Error analyzing content. Please try again.")}}},ta=()=>
1{if(!(null==e9?void 0:e9.requiresAdvanced)){to();return}if(1===eu){ef(!0),setTimeout(()=>{em(2),ef(!1)},200);return}if(2===eu&&("file"===ek||"web"===ek||"youtube"===ek||"ai"===ek)){tt();return}to()},tr=()=>{ef(!0),setTimeout(()=>{3===eu?em(2):2.5===eu?(em(2),eN(null),eI(null),eO(null),eW&&"ai"===ek&&V(eW)):em(1),ef(!1)},200)},to=()=>{let e=(null==e9?void 0:e9.credits)||0,t=(null==x?void 0:x.availableCredits)||0;if(e>0&&t<e){ey(!0),ef(!0),setTimeout(()=>{em(3),ef(!1)},200);return}tb()},ti=()=>{var e;let t=(null==o?void 0:null===(e=o.user)||void 0===e?void 0:e.username)||"your-username",a=I(eZ||te()||"map")||"map";return(0,r.jsxs)("div",{style:{marginTop:"8px"},children:[(0,r.jsx)("label",{style:{fontWeight:600,textAlign:"left",fontSize:14,fontFamily:'"Bricolage Grotesque", sans-serif',display:"block",marginBottom:"10px",color:"dark"===z?"rgba(255, 255, 255, 0.8)":"inherit"},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_custom_url_label"})}),(0,r.jsx)("input",{type:"text",value:eZ,placeholder:I(te()||"my-map"),onChange:e=>{eV(!0),eH(e.target.value)},style:{fontSize:16,width:"100%",margin:"0 0 10px",padding:"0.8rem 1rem",borderRadius:"12px",textAlign:"left",fontFamily:'"Inter", sans-serif',backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:"dark"===z?"#fff":"inherit",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd")}}),(0,r.jsxs)("p",{style:{fontSize:12,color:"dark"===z?"rgba(255,255,255,0.55)":"rgba(0,0,0,0.55)",margin:0,fontFamily:'"Inter", sans-serif'},children:[(0,r.jsx)(f.xv,{tid:"maps_page_create_custom_url_preview"})," ",(0,r.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,E.lY)(),"/",t,"/",a,"/info"]})]})]})},ts=()=>(0,r.jsxs)("div",{style:{marginTop:"20px"},children:[(0,r.jsxs)("button",{type:"button",onClick:()=>eQ(e=>!e),"aria-expanded":e$,style:{background:"none",border:"none",padding:0,cursor:"pointer",fontSize:14,fontWeight:600,fontFamily:'"Bricolage Grotesque", sans-serif',color:"dark"===z?"#8ab4ff":"#0141E3",textAlign:"left",display:"flex",alignItems:"center",gap:"6px"},children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{fontSize:12,opacity:.85},children:e$?"▼":"▶"}),(0,r.jsx)(f.xv,{tid:e$?"maps_page_create_new_hide_advanced_options":"maps_page_create_new_show_advanced_options"})]}),e$&&(0,r.jsxs)("div",{style:{marginTop:"14px"},children:[tx(),th(),A.includes(ek)&&ti()]})]}),[tn,tl]=(0,g.useState)(""),[td,tc]=(0,g.useState)(!1),[tp,tu]=(0,g.useState)(0),tm=(0,g.useRef)(null),tg=(0,g.useRef)(null);(0,g.useEffect)(()=>{let e=e=>{tm.current&&!tm.current.contains(e.target)&&(tc(!1),tl(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,g.useEffect)(()=>{tg.current&&td&&tg.current.scrollIntoView({block:"nearest",behavior:"smooth"})},[tp,td]);let tf=["ai","file","web","youtube","flashcards","mind-map-scratch"],tx=()=>tf.includes(ek)?(0,r.jsxs)("div",{style:{marginTop:"20px"},children:[(0,r.jsx)("label",{style:{fontWeight:600,textAlign:"left",fontSize:14,fontFamily:'"Bricolage Grotesque", sans-serif',display:"block",marginBottom:"10px",color:"dark"===z?"rgba(255, 255, 255, 0.8)":"inherit"},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_layout_style"})}),(0,r.jsxs)("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"},children:[(0,r.jsxs)("div",{onClick:()=>eK("horizontal"),style:{flex:1,minWidth:"120px",padding:"12px 16px",borderRadius:"12px",border:"2px solid ".concat("horizontal"===eG?"#0141E3":"dark"===z?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.1)"),backgroundColor:"horizontal"===eG?"dark"===z?"rgba(1, 65, 227, 0.15)":"rgba(1, 65, 227, 0.05)":"transparent",cursor:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"10px"},children:[(0,r.jsx)("span",{style:{fontSize:"20px"},children:"↔"}),(0,r.jsx)("span",{style:{fontSize:"14px",fontWeight:500},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_layout_horizontal"})})]}),(0,r.jsxs)("div",{onClick:()=>eK("radial"),style:{flex:1,minWidth:"120px",padding:"12px 16px",borderRadius:"12px",border:"2px solid ".concat("radial"===eG?"#0141E3":"dark"===z?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.1)"),backgroundColor:"radial"===eG?"dark"===z?"rgba(1, 65, 227, 0.15)":"rgba(1, 65, 227, 0.05)":"transparent",curs
1or:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"10px"},children:[(0,r.jsx)("span",{style:{fontSize:"20px"},children:"◎"}),(0,r.jsx)("span",{style:{fontSize:"14px",fontWeight:500},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_layout_radial"})})]})]})]}):null,th=()=>{let e=Object.entries(T).filter(e=>{let[t,a]=e;return a.toLowerCase().includes(tn.toLowerCase())});return(0,r.jsxs)("div",{style:{marginTop:"20px",position:"relative"},ref:tm,children:[(0,r.jsx)("label",{style:{fontWeight:600,textAlign:"left",fontSize:14,fontFamily:'"Bricolage Grotesque", sans-serif',display:"block",marginBottom:"10px",color:"dark"===z?"rgba(255, 255, 255, 0.8)":"inherit"},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_new_output_language"})}),(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsx)("input",{type:"text",value:td?tn:T[W]||"English (United States)",onChange:e=>{tl(e.target.value),tc(!0),tu(0)},onFocus:()=>{tc(!0),tl(""),tu(0)},onKeyDown:t=>{if("Enter"===t.key&&e.length>0){t.preventDefault();let[a]=e[tp];O(a),tc(!1),tl(""),tu(0)}else"Escape"===t.key?(tc(!1),tl(""),tu(0)):"ArrowDown"===t.key?(t.preventDefault(),tu(t=>t<e.length-1?t+1:t)):"ArrowUp"===t.key&&(t.preventDefault(),tu(e=>e>0?e-1:0))},placeholder:"Search languages...",style:{fontSize:16,width:"100%",margin:"0",padding:"0.8rem 1rem",borderRadius:"12px",textAlign:"left",fontFamily:'"Inter", sans-serif',backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:"dark"===z?"#fff":"inherit",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd"),cursor:"text",outline:td?"2px solid ".concat("dark"===z?"rgba(1, 65, 227, 0.5)":"#0141E3"):"none"}}),td&&(0,r.jsx)("div",{style:{position:"absolute",top:"calc(100% + 4px)",left:0,right:0,maxHeight:"180px",overflowY:"auto",backgroundColor:"dark"===z?"#2a2a2d":"#fff",background:"#fff",opacity:1,border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd"),borderRadius:"12px",boxShadow:"dark"===z?"0 8px 16px rgba(0, 0, 0, 0.4)":"0 8px 16px rgba(0, 0, 0, 0.1)",zIndex:1e3},children:e.length>0?e.map((e,t)=>{let[a,o]=e,i=W===a,s=t===tp;return(0,r.jsx)("div",{ref:s?tg:null,onClick:()=>{O(a),tc(!1),tl(""),tu(0)},onMouseEnter:()=>tu(t),style:{padding:"0.8rem 1rem",cursor:"pointer",fontFamily:'"Inter", sans-serif',fontSize:15,backgroundColor:i?"dark"===z?"rgba(1, 65, 227, 0.3)":"rgba(1, 65, 227, 0.2)":s?"dark"===z?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)":"transparent",color:"dark"===z?"#fff":"inherit",transition:"background-color 0.1s ease",zIndex:1e3},children:o},a)}):(0,r.jsx)("div",{style:{padding:"0.8rem 1rem",fontFamily:'"Inter", sans-serif',fontSize:15,color:"dark"===z?"rgba(255, 255, 255, 0.5)":"#999",textAlign:"center"},children:"No languages found"})})]})]})},tb=async()=>{var e,r,i,s,l,d,c,u;let m;if(!(null==o?void 0:null===(e=o.user)||void 0===e?void 0:e.email))return D(p.N.USER_NOT_AUTHENTICATED),!1;let g=A.includes(ek),f=te(),x=g?eY?I(eZ):I(f||"map"):void 0;if("file"===ek&&eA&&eq)m=eq;else{let e;try{e=await n.Z.post("/api/s3/saveMap",{title:f,description:Z,content:{nodes:[],edges:[]},workspaceId:w,creationMode:ek,language:W,layout:eG,...void 0!==x?{slug:x}:{}})}catch(e){console.log("error",e),400===e.response.status&&"Insufficient credits"===e.response.data.message&&D(p.N.INSUFFICIENT_CREDITS),400===e.response.status&&"You've reached the maps limit"===e.response.data.message&&D(p.N.TOO_MANY_MAPS);return}m=e.data.id}switch(ed(0),er(!0),ek){case"ai":{let e=null!=eW?eW:Y,t=Y.trim()||(null==ez?void 0:ez.prompt)||void 0;await e6(e2,{body:{mapId:m,mode:ek,language:W,customInstructions:e,customPrompt:t}});break}case"flashcards":await e6(e2,{body:{mapId:m,mode:ek}});break;case"file":if(eA&&eR){let e=Y.trim()||(null==ez?void 0:ez.prompt)||void 0;await n.Z.post("/api/documents/create/summarizeDocument",{fileKey:eR,fileType:eD,outputLanguage:W,fileName:(null==$?void 0:null===(i=$.name)||void 0===i?void 0:i.replace(/[^a-zA-Z0-9.]/g,""))||"file",fileSize:eL||0,customPrompt:e})}else{let e,t;let a=(null==$?void 0:$.name.split(".").pop())||"txt",r=((null==$?void 0:$.name)||"file").replace(/[^a-zA-Z0-9.]/g,""),i=await n.Z.post("/api/s3/getSignedUrl",{objectOwnerEmail:null==o?void 0:null===(s=o.user)||void 0===s?void 0:s.email,contentType:a,isPublic:!1,documentId:m,method:"PUT",resourcePath:"source/".concat(r)}),d=null==i?void 0:i.data.signedUrl,c=null==$?void 0:$.fileb64.split(";")[0].split(":")[1],u=$.fileb64.replace(/^data:[^;]+;base64,/,"");try{t=atob(u),e=new Uint8Array(t.length)}catch(e){er(!1),ei(null),ed(null),D(p.N.INVALID_FILE);break}for(let a=0;a<t.length;a++)e[a]=t.charCodeAt(a);let g=e.length;await n.Z.put(d,e,{headers:{"Content-Type":c,"Content-Length":e.byteLength}}),await n.Z.post("/api/documents/create/summarizeDocument",{fileKey:"".concat(null==o?void 0:null===(l=o.user)||void 0===l?void 0:l.email,"/").concat(m,"/source/").concat(r),fileType:c,outputLanguage:W,fileName:r,fileSize:g/1048576})}break;case"mind-map-scratch":await n.Z.post("/api/documents/create/fromScratch",{mapId:m});break;case"blank-board":case"organogram":case"swot_analysis":case"sales_funnel":await n.Z.post("/api/documents/create/fromScratch",{mapId:m,mode:ek});break;case"web":{let e=Y.trim()||(null==ez?void 0:ez.prompt)||void 0;await n.Z.post("/api/documents/create/summarizeWebPage",{documentPath:"".concat(null==o?void 0:null===(d=o.user)||void 0===d?void 0:d.email,"/").concat(m),url:ee,outputLanguage:W,customPrompt:e});break}case"youtube":{let e=Y.trim()||(null==ez?void 0:ez.prompt)||void 0;await n.Z.post("/api/documents/create/fromYoutube",{documentPath:"".concat(null==o?void 0:null===(c=o.user)||void 0===c?void 0:c.email,"/").concat(m),url:ee,outputLanguage:W,customPrompt:e});break}default:throw Error("Not implemented")}let h=await n.Z.post("/api/s3/getSignedUrl",{objectOwnerEmail:null==o?void 0:null===(r=o.user)||void 0===r?void 0:r.email,contentType:"txt",documentId:m,method:"GET",resourcePath:"source/progress"}),b=f;for(;;){let e=await n.Z.get(h.data.signedUrl),r=e.data.status,i=e.data.message;if(e.data.documentTitle&&(b=e.data.documentTitle),e.data.error){er(!1),ei(null),ed(null),t(!0),D(p.N.UNKNOWN_ERROR),y(e.data.error);try{await n.Z.post("/api/s3/deleteMap",{id:m})}catch(e){console.error("Error deleting map",e)}break}if(ei(i),ed(Math.floor(100*r)),e.data.documentTitle&&K(e.data.documentTitle),1===r){let e=await n.Z.post("/api/s3/getSignedUrl",{objectOwnerEmail:null==o?void 0:null===(u=o.user)||void 0===u?void 0:u.email,contentType:"txt",documentId:m,method:"GET",resourcePath:"source/result"}),t=await n.Z.get(e.data.signedUrl);try{let e=eY&&g?I(eZ):I(b),{path:r}=(await n.Z.post("/api/s3/saveMap",{title:b,description:Z,content:t.data,creationMode:ek,language:W,workspaceId:w,id:m,layout:eG,slug:e})).data;a?a(m):e3.push("".concat(r))}catch(e){console.error("Unknown error",e.response.status),D(p.N.UNKNOWN_ERROR)}B(),L();break}await new Promise(e=>setTimeout(e,2e3))}},ty=async e=>{e.preventDefault(),2===eu&&["file","web","youtube","ai"].includes(ek)?ta():2!==eu||["file","web","youtube","ai"].includes(ek)?2.5===eu?to():await tb():to()},tv=e=>{var t,a;if(console.log("handling payment option: ".concat(e)),console.log("session user email: ".concat(null==o?void 0:null===(t=o.user)||void 0===t?void 0:t.email)),!(null==o?void 0:null===(a=o.user)||void 0===a?void 0:a.email)){console.error("Paddle not loaded or user not authenticated");return}if("subscription"===e)e3.push("".concat("https://nodeland.io","/pricing"));else{let e=(null==e9?void 0:e9.credits)||0;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"initiate_checkout"}),Paddle.Checkout.open({items:[{priceId:F.env.NEXT_PUBLIC_PADDLE_CREDITS_ONETIME_PRICE_ID||"pri_01k79r862aq561qytpzd83mwnv",quantity:e}],settings:{showAddDiscounts:!0,locale:"pt"===_?"pt":"en",allowLogout:!1,variant:"multi-page"},customer:{email:o.user.email}})}};return ea?(0,r.jsx)(l.Z,{title:eo||({pt:"Criando...",en:"Creating..."})[_]||"Creating...",desiredTime:{ai:30,file:40,wikipedia:30,web:30}[ek]||3,progress:el}):(0,r.jsxs)(r.Fragment,{children:[M&&(0,r.jsxs)("div",{style:{position:"absolute",top:20,left:2
10,cursor:"pointer",display:"flex",alignItems:"center",color:"#A9CE17",zIndex:3},onClick:()=>{D(null)},children:[(0,r.jsx)(v(),{src:"/icons/left-arrow.png",alt:"menu",width:20,color:"#A9CE17",height:20}),(0,r.jsx)("span",{style:{fontFamily:'"Bricolage Grotesque", sans-serif',fontSize:16,marginLeft:5},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_new_cancel_button"})})]}),M===p.N.PREMIUM_FEATURE&&(0,r.jsx)(u.IA,{showCancelButton:!1}),M===p.N.TOO_MANY_MAPS&&(0,r.jsx)(u.w8,{showCancelButton:!1}),M===p.N.USER_NOT_AUTHENTICATED&&(0,r.jsx)(u.o1,{showCancelButton:!1}),M===p.N.INSUFFICIENT_CREDITS&&(0,r.jsx)(u.MM,{showCancelButton:!1}),M===p.N.UNKNOWN_ERROR&&(0,r.jsx)(u.Ko,{showCancelButton:!1}),!M&&(0,r.jsxs)("form",{onSubmit:ty,style:{background:"dark"===z?"rgba(42, 42, 45, 0.95)":"#ffffff",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"),borderRadius:P?"0px":"24px",padding:P?"24px 20px 84px 20px":"20px",width:"100%",maxWidth:P?"100%":"750px",height:P?"100dvh":void 0,maxHeight:P?"100dvh":"min(calc(100dvh - 120px), 860px)",display:"flex",flexDirection:"column",position:"relative",boxShadow:"dark"===z?"0 20px 40px rgba(0, 0, 0, 0.5)":"0 20px 40px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(10px)",overflow:"hidden"},children:[(0,r.jsxs)("div",{style:{textAlign:"center",marginBottom:"16px",flexShrink:0},children:[(0,r.jsxs)("div",{className:h()["step-indicator"],children:[(0,r.jsx)("div",{className:"".concat(h()["step-dot"]," ").concat(eu>=1?h().active:"")}),(0,r.jsx)("div",{className:"".concat(h()["step-dot"]," ").concat(eu>=2?h().active:"")}),("file"===ek||"web"===ek||"youtube"===ek||"ai"===ek)&&(0,r.jsx)("div",{className:"".concat(h()["step-dot"]," ").concat(eu>=2.5?h().active:"")}),eb&&(0,r.jsx)("div",{className:"".concat(h()["step-dot"]," ").concat(eu>=3?h().active:"")})]}),(0,r.jsx)("h2",{style:{fontWeight:"600",fontSize:"24px",marginBottom:"8px",color:"dark"===z?"#fff":"#000",fontFamily:'"Bricolage Grotesque", sans-serif'},children:1===eu?(0,r.jsx)(f.xv,{tid:"maps_page_create_new_document_header"}):2===eu?(0,r.jsx)(f.xv,{tid:"maps_page_create_new_advanced_options_header"}):2.5===eu?(0,r.jsx)(f.xv,{tid:"maps_page_create_choose_processing"}):"pt"===_?"Escolha como prosseguir":"Choose a Plan"})]}),(0,r.jsx)("div",{className:"".concat(h()["step-container"]," ").concat(eg?h()["transitioning-out"]:h().active),style:{flex:1,overflowY:"auto",WebkitOverflowScrolling:"touch",paddingTop:10},children:1===eu?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:h()["document-type-grid"],children:e8.map(e=>(0,r.jsxs)("div",{className:"".concat(h()["document-type-card"]," ").concat(ek===e.id?h().selected:""),onClick:()=>eS(e.id),style:{backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:ek===e.id?"#0141E3":"dark"===z?"#fff":"inherit"},children:[(null==o?void 0:o.user)&&e.credits>0&&(0,r.jsxs)("span",{className:h()["credit-badge"],children:[e.credits," ",(0,r.jsx)(f.xv,{tid:"maps_page_create_new_credits"})]}),e.image?(0,r.jsx)(v(),{src:e.image,alt:e.titleKey,className:h().emoji,unoptimized:!0,width:24,height:24}):(0,r.jsx)("span",{className:h().emoji,children:e.emoji}),(0,r.jsx)("span",{className:h().title,children:(0,r.jsx)(f.xv,{tid:e.titleKey})})]},e.id))}),(0,r.jsx)("div",{className:h()["templates-divider"],children:(0,r.jsx)("span",{style:{color:"dark"===z?"rgba(255,255,255,0.45)":"rgba(0,0,0,0.4)"},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_templates_label"})})}),(0,r.jsx)("div",{className:h()["document-type-grid"],children:e7.map(e=>(0,r.jsxs)("div",{className:"".concat(h()["document-type-card-small"]," ").concat(ek===e.id?h().selected:""),onClick:()=>eS(e.id),style:{backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:ek===e.id?"#0141E3":"dark"===z?"#fff":"inherit"},children:[(null==o?void 0:o.user)&&e.credits>0&&(0,r.jsxs)("span",{className:h()["credit-badge"],children:[e.credits," ",(0,r.jsx)(f.xv,{tid:"maps_page_create_new_credits"})]}),e.image?(0,r.jsx)(v(),{src:e.image,alt:e.titleKey,className:h().emoji,width:20,height:20}):(0,r.jsx)("span",{className:h().emoji,children:e.emoji}),(0,r.jsx)("span",{className:h().title,children:(0,r.jsx)(f.xv,{tid:e.titleKey})})]},e.id))}),"mind-map-scratch"===ek&&(0,r.jsx)("div",{style:{marginTop:"24px"},children:tx()})]}):2===eu?(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px",padding:"12px 20px",backgroundColor:"dark"===z?"rgba(255, 255, 255, 0.05)":"rgba(1, 65, 227, 0.05)",borderRadius:"12px",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.1)":"rgba(1, 65, 227, 0.1)")},children:[(0,r.jsx)("span",{style:{fontSize:"20px",marginRight:"12px"},children:null==e9?void 0:e9.emoji}),(0,r.jsx)("span",{style:{fontSize:"16px",fontWeight:"500",color:"dark"===z?"#fff":"#0141E3",fontFamily:'"Bricolage Grotesque", sans-serif'},children:(0,r.jsx)(f.xv,{tid:null==e9?void 0:e9.titleKey})})]}),(()=>{switch(ek){case"ai":return(0,r.jsxs)("div",{children:[(0,r.jsx)("textarea",{style:{fontSize:16,width:"100%",margin:"15px 0px 10px",padding:"0.8rem 1rem",borderRadius:"12px",minHeight:"100px",textAlign:"left",fontFamily:'"Inter", sans-serif',backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:"dark"===z?"#fff":"inherit",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd")},id:"map-custom-prompt",value:Y,placeholder:{en:"What is the main topic of your mind map?",pt:"Qual ser\xe1 o t\xf3pico principal do seu mapa mental?"}[_]+"\n\nEx: "+J,onChange:e=>{V(e.target.value)}}),ts()]});case"file":return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{margin:"15px 0px"}
1,children:$?(0,r.jsxs)("div",{style:{border:"2px solid #A9CE17",borderRadius:"8px",padding:"15px",backgroundColor:"dark"===z?"rgba(169, 206, 23, 0.1)":"#f8fff8",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)("div",{style:{width:"40px",height:"40px",backgroundColor:"#A9CE17",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px"},children:(0,r.jsx)("span",{style:{color:"white",fontSize:"18px"},children:"\uD83D\uDCC4"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{fontSize:14,fontFamily:"Inter",fontWeight:600,color:"dark"===z?"#fff":"#333",marginBottom:"2px"},children:$.name}),(0,r.jsx)("div",{style:{fontSize:12,fontFamily:"Inter",color:"dark"===z?"rgba(255, 255, 255, 0.7)":"#666"},children:"File uploaded successfully"})]})]}),(0,r.jsx)("button",{onClick:()=>Q(null),style:{fontSize:12,fontFamily:"Inter",backgroundColor:"dark"===z?"rgba(255, 255, 255, 0.1)":"#fff",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd"),color:"dark"===z?"rgba(255, 255, 255, 0.7)":"#666",borderRadius:"4px",padding:"6px 12px",cursor:"pointer",transition:"all 0.2s ease"},children:"Remove"})]}):(0,r.jsx)(k,{onFileSelect:(e,t,a,r)=>{Q({name:t,fileb64:e})}})}),ts()]});case"web":return(0,r.jsxs)("div",{children:[(0,r.jsx)("input",{style:{fontSize:16,width:"100%",margin:"15px 0px 10px",padding:"0.8rem 1rem",borderRadius:"12px",textAlign:"left",fontFamily:'"Inter", sans-serif',backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:"dark"===z?"#fff":"inherit",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd")},id:"map-url",value:ee,placeholder:(0,S.i0)("maps_page_create_new_source_url","URL"),onChange:e=>{et(e.target.value)}}),ts()]});case"youtube":return(0,r.jsxs)("div",{children:[ej&&(0,r.jsx)(C.Z,{videoId:ej,className:h()["youtube-video"],style:{borderRadius:12,width:"100%",height:"100%"},opts:{width:"100%",height:"100%",borderRadius:12,playerVars:{autoplay:0}}}),(0,r.jsx)("input",{style:{fontSize:16,width:"100%",margin:"15px 0px 10px",padding:"0.8rem 1rem",borderRadius:"12px",textAlign:"left",fontFamily:'"Inter", sans-serif',backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:"dark"===z?"#fff":"inherit",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd")},id:"map-youtube-url",value:ee,placeholder:(0,S.i0)("maps_page_create_new_youtube_url","Youtube URL"),onChange:e=>{et(e.target.value)}}),ts()]});case"flashcards":return(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{style:{fontWeight:400,textAlign:"center",fontSize:12,margin:"30px 0px",fontFamily:'"Bricolage Grotesque", sans-serif',color:"dark"===z?"rgba(255, 255, 255, 0.7)":"inherit"},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_flashcards_description"})}),(0,r.jsx)("textarea",{style:{fontSize:16,width:"100%",margin:"15px 0px 10px",padding:"0.8rem 1rem",borderRadius:"12px",minHeight:"100px",textAlign:"left",fontFamily:'"Inter", sans-serif',backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:"dark"===z?"#fff":"inherit",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd")},id:"map-custom-prompt",value:Y,placeholder:{en:"What is the main topic of your flashcards?",pt:"Qual ser\xe1 o t\xf3pico principal dos seus flashcards?"}[_]+"\n\nEx: "+J,onChange:e=>{V(e.target.value)}}),ts()]});default:return null}})()]}):2.5===eu?(0,r.jsx)("div",{children:eE?(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px 20px",gap:"16px"},children:[(0,r.jsx)("div",{style:{width:"40px",height:"40px",border:"3px solid rgba(1, 65, 227, 0.2)",borderTopColor:"#0141E3",borderRadius:"50%",animation:"spin 0.8s linear infinite"}}),(0,r.jsx)("span",{style:{fontSize:"16px",fontFamily:'"Inter", sans-serif',color:"dark"===z?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.6)"},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_analyzing_document"})})]}):eC&&eC.length>0?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:eC.length<=2?"1fr":"1fr 1fr",gap:"12px",marginBottom:"20px"},children:eC.map(e=>(0,r.jsxs)("div",{onClick:()=>{eI(e),V("")}
1,style:{padding:"16px",borderRadius:"12px",border:"2px solid ".concat((null==ez?void 0:ez.id)===e.id?"#0141E3":"dark"===z?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.1)"),backgroundColor:(null==ez?void 0:ez.id)===e.id?"dark"===z?"rgba(1, 65, 227, 0.15)":"rgba(1, 65, 227, 0.05)":"dark"===z?"#2a2a2d":"#fff",cursor:"pointer",transition:"all 0.2s ease"},children:[(0,r.jsx)("div",{style:{fontSize:"15px",fontWeight:"600",fontFamily:'"Bricolage Grotesque", sans-serif',color:(null==ez?void 0:ez.id)===e.id?"#0141E3":"dark"===z?"#fff":"#333",marginBottom:"6px"},children:e.title}),(0,r.jsx)("div",{style:{fontSize:"13px",fontFamily:'"Inter", sans-serif',color:"dark"===z?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.55)",lineHeight:"1.4"},children:e.description})]},e.id))}),(0,r.jsxs)("div",{style:{marginTop:"8px"},children:[(0,r.jsx)("label",{style:{fontSize:"13px",fontFamily:'"Inter", sans-serif',color:"dark"===z?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.45)",display:"block",marginBottom:"8px"},children:(0,r.jsx)(f.xv,{tid:"maps_page_create_or_describe_custom"})}),(0,r.jsx)("textarea",{style:{fontSize:14,width:"100%",padding:"0.7rem 1rem",borderRadius:"12px",minHeight:"70px",textAlign:"left",fontFamily:'"Inter", sans-serif',backgroundColor:"dark"===z?"#2a2a2d":"#fff",color:"dark"===z?"#fff":"inherit",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"#ddd"),resize:"vertical"},value:Y,placeholder:"pt"===_?"Instru\xe7\xf5es customizadas":"Provide custom instructions",onChange:e=>{V(e.target.value),e.target.value.trim()?eI(null):eC&&eC.length>0&&eI(eC[0])}})]})]}):null}):(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px",padding:"12px 20px",backgroundColor:"dark"===z?"rgba(255, 255, 255, 0.05)":"rgba(1, 65, 227, 0.05)",borderRadius:"12px",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.1)":"rgba(1, 65, 227, 0.1)")},children:[(null==e9?void 0:e9.image)?(0,r.jsx)(v(),{src:e9.image,alt:e9.titleKey,style:{marginRight:"12px"},width:24,height:24}):(0,r.jsx)("span",{style:{fontSize:"20px",marginRight:"12px"},children:null==e9?void 0:e9.emoji}),(0,r.jsx)("span",{style:{fontSize:"16px",fontWeight:"500",color:"dark"===z?"#fff":"#0141E3",fontFamily:'"Bricolage Grotesque", sans-serif'},children:(0,r.jsx)(f.xv,{tid:null==e9?void 0:e9.titleKey})})]}),(()=>{let e=(null==e9?void 0:e9.credits)||0,t=(null==x?void 0:x.availableCredits)||0;return es?(0,r.jsxs)("div",{style:{marginTop:"20px",padding:"40px 24px",backgroundColor:"dark"===z?"rgba(169, 206, 23, 0.1)":"#f8fff8",border:"2px solid ".concat("dark"===z?"rgba(169, 206, 23, 0.3)":"#A9CE17"),borderRadius:"16px",textAlign:"center",position:"relative",overflow:"hidden"},className:"jsx-882f64bc2c90e897",children:[(0,r.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"150px",height:"150px",borderRadius:"50%",backgroundColor:"dark"===z?"rgba(169, 206, 23, 0.15)":"rgba(169, 206, 23, 0.1)",animation:"pulse 2s ease-in-out infinite",zIndex:0},className:"jsx-882f64bc2c90e897"}),(0,r.jsx)("div",{style:{width:"50px",height:"50px",margin:"0 auto 24px",border:"4px solid ".concat("rgba(169, 206, 23, 0.2)"),borderTop:"4px solid #A9CE17",borderRadius:"50%",animation:"spin 1s linear infinite",position:"relative",zIndex:1},className:"jsx-882f64bc2c90e897"}),(0,r.jsx)("div",{style:{width:"60px",height:"60px",margin:"0 auto 20px",backgroundColor:"#A9CE17",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",zIndex:1},className:"jsx-882f64bc2c90e897",children:(0,r.jsx)("span",{style:{fontSize:"32px",color:"white"},className:"jsx-882f64bc2c90e897",children:"✓"})}),(0,r.jsx)("p",{style:{fontSize:"15px",lineHeight:"1.6",color:"dark"===z?"rgba(255, 255, 255, 0.8)":"#4A5568",fontFamily:'"Inter", sans-serif',marginBottom:"16px",maxWidth:"400px",margin:"0 auto",position:"relative",zIndex:1},className:"jsx-882f64bc2c90e897",children:"pt"===_?"Estamos processando seus cr\xe9ditos. Isso leva apenas alguns segundos. Voc\xea ser\xe1 redirecionado automaticamente.":"We're processing your credits. This only takes a few seconds. You'll be automatically redirected to continue creating your map."}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",marginTop:"24px",position:"relative",zIndex:1},className:"jsx-882f64bc2c90e897",children:[(0,r.jsx)("div",{style:{width:"8px",height:"8px",backgroundColor:"#A9CE17",borderRadius:"50%",animation:"bounce 1.4s infinite ease-in-out both",animationDelay:"-0.32s"},className:"jsx-882f64bc2c90e897"}),(0,r.jsx)("div",{style:{width:"8px",height:"8px",backgroundColor:"#A9CE17",borderRadius:"50%",animation:"bounce 1.4s infinite ease-in-out both",animationDelay:"-0.16s"},className:"jsx-882f64bc2c90e897"}),(0,r.jsx)("div",{style:{width:"8px",height:"8px",backgroundColor:"#A9CE17",borderRadius:"50%",animation:"bounce 1.4s infinite ease-in-out both"},className:"jsx-882f64bc2c90e897"})]}),(0,r.jsx)(i(),{id:"882f64bc2c90e897",children:"@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pulse{0%,100%{-webkit-transform:translate(-50%,-50%)scale(1);transform:translate(-50%,-50%)scale(1);opacity:.5}50%{-webkit-transform:translate(-50%,-50%)scale(1.1);transform:translate(-50%,-50%)scale(1.1);opacity:.3}}@-moz-keyframes pulse{0%,100%{-moz-transform:translate(-50%,-50%)scale(1);transform:translate(-50%,-50%)scale(1);opacity:.5}50%{-moz-transform:translate(-50%,-50%)scale(1.1);transform:translate(-50%,-50%)scale(1.1);opacity:.3}}@-o-keyframes pulse{0%,100%{-o-transform:translate(-50%,-50%)scale(1);transform:translate(-50%,-50%)scale(1);opacity:.5}50%{-o-transform:translate(-50%,-50%)scale(1.1);transform:translate(-50%,-50%)scale(1.1);opacity:.3}}@keyframes pulse{0%,100%{-webkit-transform:translate(-50%,-50%)scale(1);-moz-transform:translate(-50%,-50%)scale(1);-o-transform:translate(-50%,-50%)scale(1);transform:translate(-50%,-50%)scale(1);opacity:.5}50%{-webkit-transform:translate(-50%,-50%)scale(1.1);-moz-transform:translate(-50%,-50%)scale(1.1);-o-transform:translate(-50%,-50%)scale(1.1);transform:translate(-50%,-50%)scale(1.1);opacity:.3}}@-webkit-keyframes bounce{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0);opacity:.5}40%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-moz-keyframes bounce{0%,80%,100%{-moz-transform:scale(0);transform:scale(0);opacity:.5}40%{-moz-transform:scale(1);transform:scale(1);opacity:1}}@-o-keyframes bounce{0%,80%,100%{-o-transform:scale(0);transform:scale(0);opacity:.5}40%{-o-transform:scale(1);transform:scale(1);opacity:1}}@keyframes bounce{0%,80%,100%{-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);transform:scale(0);opacity:.5}40%{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1);opacity:1}}"})]}):(0,r.jsxs)("div",{style:{marginTop:"20px"},children:[(0,r.jsxs)("div",{style:{padding:"24px",backgroundColor:"dark"===z?"rgba(66, 153, 225, 0.1)":"#EBF8FF",border:"1px solid ".concat("dark"===z?"rgba(66, 153, 225, 0.3)":"#90CDF4"),borderRadius:"12px",marginBottom:"32px",textAlign:"left"},children:[(0,r.jsx)("div",{style:{fontSize:"15px",lineHeight:"1.8",color:"dark"===z?"rgba(255, 255, 255, 0.9)":"#2D3748",fontFamily:'"Inter", sans-serif'},children:"pt"===_?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("p",{style:{margin:"0",fontWeight:600,fontSize:"16px"},children:["Voc\xea tem ",(0,r.jsxs)("span",{style:{color:"#0141E3"},children:[t," cr\xe9dito",1!==t?"s":""]})," — escolha como continuar:"]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{style:{margin:"0 0 12px 0",fontWeight:500},children:"This feature uses AI processing to create your map."}),(0,r.jsx)("p",{style:{margin:"0 0 16px 0"},children:"Because of that, it consumes credits to cover AI costs."}),(0,r.jsxs)("p",{style:{margin:"0",fontWeight:600,fontSize:"16px"},children:["You have ",(0,r.jsxs)("span",{style:{color:"#0141E3"},children:[t," credit",1!==t?"s":""]})," — choose how to continue:"]})]})}),(0,r.jsxs)("div",{style:{marginTop:"16px",paddingTop:"16px",borderTop:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)"),display:"flex",alignItems:"center",flexWrap:"wrap",gap:"8px"},children:[(0,r.jsxs)("div",{onClick:e=>{e.preventDefault(),eh(!ex)},style:{fontSize:"13px",color:"#0141E3",textDecoration:"none",fontFamily:'"Inter", sans-serif',fontWeight:500,width:"100%",cursor:"pointer"},onMouseEnter:e=>{e.target.style.textDecoration="underline"},onMouseLeave:e=>{e.target.style.textDecoration="none"},children:["\uD83D\uDCA1 ","pt"===_?"Por que preciso de cr\xe9ditos?":"Why do I need credits?"]}),ex&&(0,r.jsx)("div",{style:{fontSize:"13px",textDecoration:"none",fontFamily:'"Inter", sans-serif',fontWeight:500},children:"pt"===_?"Cr\xe9ditos s\xe3o necess\xe1rios porque utilizamos modelos de IA avan\xe7ados para processar e gerar conte\xfado. Cada processamento tem um custo computacional que repassamos de forma justa aos usu\xe1rios.":"Credits are needed because we use advanced AI models (like GPT) to process and generate content. Each processing has a computational cost that we fairly pass on to users."})]})]}),(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:P?"1fr":"1fr 1fr",gap:"16px"},children:[(0,r.jsxs)("div",{onClick:()=>tv("onetime"),className:h()["payment-option-card"],children:[(0,r.jsx)("div",{style:{fontSize:"17px",fontWeight:"600",marginBottom:"16
1px",color:"dark"===z?"#fff":"#2D3748",fontFamily:'"Bricolage Grotesque", sans-serif'},children:"pt"===_?"Compra \xfanica":"One-time purchase"}),(0,r.jsx)("div",{style:{fontSize:"14px",color:"dark"===z?"rgba(255, 255, 255, 0.7)":"#718096",fontFamily:'"Inter", sans-serif',marginBottom:"16px",lineHeight:"1.5",boxShadow:"none"},children:"pt"===_?"Adquira os cr\xe9ditos necess\xe1rios":"Get the needed credits"}),(0,r.jsxs)("div",{style:{fontSize:"36px",fontWeight:"700",marginBottom:"4px",color:"#0141E3",fontFamily:'"Bricolage Grotesque", sans-serif'},children:["R$ ",e.toFixed(2)]}),(0,r.jsx)("div",{style:{fontSize:"13px",color:"dark"===z?"rgba(255, 255, 255, 0.6)":"#A0AEC0",fontFamily:'"Inter", sans-serif'},children:"pt"===_?"(R$1 por cr\xe9dito)":"(R$1 per credit)"})]}),(0,r.jsxs)("div",{onClick:()=>tv("subscription"),style:{padding:"28px 24px",background:"linear-gradient(135deg, #0141E3 0%, #0158ff 100%)",border:"2px solid #0141E3",borderRadius:"16px",cursor:"pointer",transition:"all 0.2s ease",textAlign:"center",position:"relative",boxShadow:"0 4px 16px rgba(1, 65, 227, 0.3)"},onMouseEnter:e=>{e.target.style.transform="translateY(-4px)",e.target.style.boxShadow="0 12px 28px rgba(1, 65, 227, 0.4)"},onMouseLeave:e=>{e.target.style.transform="translateY(0)",e.target.style.boxShadow="0 4px 16px rgba(1, 65, 227, 0.3)"},children:[(0,r.jsx)("div",{style:{position:"absolute",top:"-12px",right:"12px",backgroundColor:"#FFD700",color:"#000",padding:"6px 14px",borderRadius:"16px",fontSize:"11px",fontWeight:"700",fontFamily:'"Inter", sans-serif',letterSpacing:"0.5px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"},children:"pt"===_?"MELHOR VALOR":"BEST VALUE"}),(0,r.jsx)("div",{style:{fontSize:"17px",fontWeight:"600",marginBottom:"16px",color:"#fff",fontFamily:'"Bricolage Grotesque", sans-serif'},children:"pt"===_?"Plano mensal":"Monthly plan"}),(0,r.jsx)("div",{style:{fontSize:"14px",color:"rgba(255, 255, 255, 0.9)",fontFamily:'"Inter", sans-serif',marginBottom:"16px",lineHeight:"1.5"},children:"pt"===_?"500 cr\xe9ditos todo m\xeas":"500 credits every month"}),(0,r.jsx)("div",{style:{fontSize:"36px",fontWeight:"700",marginBottom:"4px",color:"#fff",fontFamily:'"Bricolage Grotesque", sans-serif'},children:"R$ 24,90"}),(0,r.jsx)("div",{style:{fontSize:"13px",color:"rgba(255, 255, 255, 0.8)",fontFamily:'"Inter", sans-serif'},children:"pt"===_?"/m\xeas":"/month"})]})]})]})})()]})}),(0,r.jsxs)("div",{style:{display:"flex",width:"100%",gap:"16px",justifyContent:1===eu?"space-between":3===eu?"flex-start":"flex-end",marginTop:"24px",paddingTop:"16px",flexShrink:0,borderTop:"1px solid ".concat("dark"===z?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)")},children:[(0,r.jsx)("button",{type:"button",onClick:()=>{3===eu||2===eu||2.5===eu?tr():(e3.push("/maps"),t(!1))},style:{background:"transparent",color:"dark"===z?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)",border:"1px solid ".concat("dark"===z?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.2)"),borderRadius:"12px",padding:"16px 24px",fontSize:"16px",fontWeight:"500",cursor:"pointer",fontFamily:'"Bricolage Grotesque", sans-serif',transition:"all 0.2s ease",width:1===eu?"100%":"auto",minWidth:"120px"},onMouseEnter:e=>{e.target.style.backgroundColor="dark"===z?"rgba(255, 255, 255, 0.05)":"rgba(0, 0, 0, 0.05)"},onMouseLeave:e=>{e.target.style.backgroundColor="transparent"},children:3===eu||2===eu||2.5===eu?(0,r.jsxs)("span",{children:["← ",(0,r.jsx)(f.xv,{tid:"maps_page_create_new_cancel_button"})]}):(0,r.jsx)(f.xv,{tid:"maps_page_create_new_cancel_button"})}),3!==eu&&(()=>{let e=1===eu||2===eu&&["file","web","youtube","ai"].includes(ek),t=eE||"string"!=typeof ek||""===ek||2===eu&&("ai"===ek&&!Y||"file"===ek&&!$||"web"===ek&&!ee||"youtube"===ek&&!ee||"flashcards"===ek&&!Y)||2.5===eu&&!ez&&!Y.trim();return(0,r.jsx)("button",{disabled:t,type:e?"button":"submit",onClick:e?ta:void 0,style:{background:"linear-gradient(135deg, #0141E3 0%, #0158ff 100%)",color:"#fff",border:"none",borderRadius:"12px",padding:"16px 32px",fontSize:"16px",fontWeight:"600",cursor:"pointer",fontFamily:'"Bricolage Grotesque", sans-serif',transition:"all 0.2s ease",boxShadow:"0 4px 16px rgba(1, 65, 227, 0.3)",width:"100%",opacity:t?.5:1},onMouseEnter:e=>{t||(e.target.style.transform="translateY(-2px)",e.target.style.boxShadow="0 6px 24px rgba(1, 65, 227, 0.4)")},onMouseLeave:e=>{t||(e.target.style.transform="translateY(0px)",e.target.style.boxShadow="0 4px 16px rgba(1, 65, 227, 0.3)")},children:e?eE?(0,r.jsx)(f.xv,{tid:"maps_page_create_analyzing_document"}):(null==e9?void 0:e9.requiresAdvanced)?(0,r.jsx)(f.xv,{tid:"maps_page_create_new_next_button"}):(0,r.jsx)(f.xv,{tid:"maps_page_create_new_create_button"}):(0,r.jsx)(f.xv,{tid:"maps_page_create_new_create_button"})})})()]})]}),(0,r.jsx)(j(),{src:"https://cdn.paddle.com/paddle/v2/paddle.js",strategy:"afterInteractive",onReady:async()=>{"undefined"!=typeof Paddle&&(console.log("paddle script loaded"),"live_d7809cc7d277384c3ae04cf7c18".includes("test_")&&Paddle.Environment.set("sandbox"),console.log("paddle environment set to","live_d7809cc7d277384c3ae04cf7c18".includes("test_")?"sandbox":"production"),Paddle.Initialize({token:"live_d7809cc7d277384c3ae04cf7c18",eventCallback:e=>{switch(e.name){case"checkout.loaded":break;case"checkout.closed":console.log("Checkout closed");break;case"checkout.completed":console.log("Checkout completed"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"transaction_success"}),Promise.resolve().then(()=>en(!0)),Paddle.Checkout.close();break;default:console.log(e)}}}),console.log("paddle initialized"),console.log("setting paddle loaded to true"))}})]})}},54271:function(e){e.exports={loadingContainer:"Loading_loadingContainer__VrHn9",fadeIn:"Loading_fadeIn__MG9Uj",contentCard:"Loading_contentCard__mLEmi",slideUp:"Loading_slideUp__hjl_9",title:"Loading_title__K9QRw",progressSection:"Loading_progressSection__dyp6e",progressBar:"Loading_progressBar___pEmq",progressFill:"Loading_progressFill__fgzUz",shimmer:"Loading_shimmer__MStz_",progressShine:"Loading_progressShine__Hvn1G",loadingAnimation:"Loading_loadingAnimation__HhNdP",spinner:"Loading_spinner__tG_ge",spin:"Loading_spin__n95MB",progressText:"Loading_progressText__HaUhw",phraseContainer:"Loading_phraseContainer__xVmSQ",fadeInUp:"Loading_fadeInUp__7r49E",phrase:"Loading_phrase__N3C5j"}},97384:function(e){e.exports={menu:"NewMapForm_menu__mq3J3","menu-option":"NewMapForm_menu-option__i__2p","call-to-action":"NewMapForm_call-to-action__eEMzi",move:"NewMapForm_move__whwaW",modal:"NewMapForm_modal__s_jQa","create-map-button":"NewMapForm_create-map-button__qHnRo","cancel-button":"NewMapForm_cancel-button__elQWF","step-container":"NewMapForm_step-container__mdO1c","transitioning-out":"NewMapForm_transitioning-out__WqH27","transitioning-in":"NewMapForm_transitioning-in__p_kSD",active:"NewMapForm_active__j006E","document-type-grid":"NewMapForm_document-type-grid__Vkq2x","document-type-card":"NewMapForm_document-type-card__xlXDm",selected:"NewMapForm_selected__v8GVU",emoji:"NewMapForm_emoji__cG4AP",title:"NewMapForm_title__JZuDO","credit-badge":"NewMapForm_credit-badge__D6BYO","templates-divider":"NewMapForm_templates-divider__Ab8KJ","document-type-card-small":"NewMapForm_document-type-card-small__1bAla","step-indicator":"NewMapForm_step-indicator__XoxkG","step-dot":"NewMapForm_step-dot__YV57o",completed:"NewMapForm_completed__E5IRV","payment-option-card":"NewMapForm_payment-option-card__9xgqf","youtube-video":"NewMapForm_youtube-video__BnO3F"}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.