1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{136:e=>{e.exports={modalContainer:"SingleSectionModal_modalContainer__tF4iu"}},145:(e,s,a)=>{"use strict";a.d(s,{ChildLayout:()=>sc});var t=a(21161),i=a(93072),r=a(88637);function l(e){let{space:s}=e,[a,l]=(0,r.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-sm text-gray-400 hover:text-gray-900 cursor-pointer underline",onClick:()=>l(!0),children:"Login"}),"?",a&&(0,t.jsx)(i.default,{space:s,open:a,onClose:()=>l(!1),showSemiTransparentBg:!0})]})}var n=a(24602),o=a(27828),d=a(97817),c=a.n(d),m=a(83242),u=a(5200);function h(e){let{space:s}=e,a=(0,m.usePathname)(),{data:i}=(0,u.useSession)();return s.type!==n.Q.TidbitsSite&&s.type!==n.Q.AcademySite||"/"!==a||s.id===o.W.DODAO_HOME||s.id===o.W.TIDBITS_HUB?null:(0,t.jsx)("footer",{children:(0,t.jsxs)("div",{className:"flex justify-center text-sm my-4 pb-4 text-gray-400",children:[(0,t.jsxs)("p",{className:"mr-4",children:["Crafted with Passion by"," ",(0,t.jsx)(c(),{href:s.type===n.Q.TidbitsSite?"https://tidbitshub.org":"https://dodao.io/",className:"underline",children:"DoDAO"}),"."]}),!(null==i?void 0:i.username)&&(0,t.jsx)(l,{space:s})]})})}var x=a(31301),p=a(23158),f=a(88717),g=a(71084),v=a(80251),b=a(68729),j=a(1501),y=a(66816),N=a(23888),w=a(89893),C=a(61598),k=a(26732),A=a(25108),S=a(94948),T=a(73706);let _=[{name:"KoalaGains",description:"AI Agents that read filings, score projects, and give clear investing insights on crowdfunding and REITs.",href:"/home-section/dodao-io/products/koalagains",icon:p.A},{name:"Ketchup HPLC Workflow",description:"Gazebo simulation of the HPLC sample prep workflow for ketchup",href:"/home-section/dodao-io/products/ketchup-hplc-workflow",icon:f.A},{name:"DeFi Alerts",description:"Real-time alerts on yields, rates, and position health across leading DeFi protocols and chains.",href:"/home-section/dodao-io/products/defi-alerts",icon:g.A}],D=[{name:"AI Agent Bootcamp",description:"Hands-on training in AI agent design and deployment.",href:"/home-section/dodao-io/education/ai-agent-bootcamp",icon:v.A},{name:"Prompt Engineering Guide",description:"Learn prompt crafting and optimization techniques.",href:"/home-section/dodao-io/education/prompt-engineering-guide",icon:b.A},{name:"Blockchain Bootcamp",description:"Comprehensive training from basics to advanced blockchain technologies.",href:"/home-section/dodao-io/education/blockchain-bootcamp",icon:j.A},{name:"Educational Content",description:"Customized educational websites to enhance learning.",href:"/home-section/dodao-io/education/educational-content",icon:y.A}],F=[{name:"Real World Assets",description:"Explore the integration of real-world assets on blockchain.",href:"/home-section/dodao-io/research/real-world-assets",icon:N.A},{name:"How Credit Unions Can Attract Gen Z",description:"Strategies for credit unions to connect with Gen Z members.",href:"/home-section/dodao-io/research/credit-union",icon:w.A}
1],B=[{name:"Simulation Setup",description:"Gazebo and Isaac Sim worlds, modeled for your exact usecase.",href:"/robotics#simulation-setup",icon:f.A},{name:"Synthetic Data",description:"Labeled images from simulation to train YOLO and other vision models.",href:"/robotics#synthetic-data",icon:C.A}],I=[{name:"AI Agent Development",description:"Production AI agents that automate finance and ops workflows.",href:"/home-section/dodao-io/services/custom-ai-agent-dev",icon:v.A},{name:"Maintenance & Support",description:"Ongoing monitoring and support for AI agents in production.",href:"/home-section/dodao-io/services/maintenance-support",icon:k.A}],E=[{name:"Smart Contracts & DeFi Tooling",description:"Secure smart contracts and custom DeFi tooling for protocols and DAOs.",href:"/home-section/dodao-io/services/smart-contract",icon:A.A},{name:"DeFi Analytics",description:"Dashboards that turn on-chain data into clear, real-time decisions.",href:"/home-section/dodao-io/services/defi-analytics",icon:p.A}];function G(e){let{item:s}=e;return(0,t.jsxs)("div",{className:"group relative flex gap-x-6 rounded-lg p-4 text-sm leading-6 hover:bg-surface-2",children:[(0,t.jsx)("div",{className:"mt-1 flex h-11 w-11 flex-none items-center justify-center rounded-lg bg-surface-2 group-hover:bg-primary/20",children:(0,t.jsx)(s.icon,{"aria-hidden":"true",className:"h-6 w-6 text-muted group-hover:text-primary"})}),(0,t.jsxs)("div",{className:"flex-auto",children:[(0,t.jsxs)("a",{href:s.href,className:"block font-semibold text-heading",children:[s.name,(0,t.jsx)("span",{className:"absolute inset-0"})]}),(0,t.jsx)("p",{className:"mt-1 text-body",children:s.description})]})]})}function L(e){let{item:s}=e;return(0,t.jsxs)("div",{className:"group relative mb-2 flex gap-x-4 rounded-lg p-4 hover:bg-surface-2",children:[(0,t.jsx)("div",{className:"mt-1 flex h-10 w-10 flex-none items-center justify-center rounded-lg bg-surface-2 group-hover:bg-primary/20",children:(0,t.jsx)(s.icon,{"aria-hidden":"true",className:"h-6 w-6 text-muted group-hover:text-primary"})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("a",{href:s.href,className:"font-semibold text-heading",children:[s.name,(0,t.jsx)("span",{className:"absolute inset-0"})]}),(0,t.jsx)("p",{className:"mt-1 text-body",children:s.description})]})]})}function M(e){let{label:s}=e;return(0,t.jsxs)("button",{type:"button",className:"flex items-center gap-x-1 rounded-md p-1 text-sm font-semibold leading-6 text-heading transition-colors duration-200 group-hover/nav:bg-surface group-hover/nav:text-primary group-focus-within/nav:bg-surface group-focus-within/nav:text-primary",children:[s,(0,t.jsx)(x.A,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-muted transition-all duration-200 group-hover/nav:rotate-180 group-hover/nav:text-primary group-focus-within/nav:rotate-180 group-focus-within/nav:text-primary"})]})}function O(){return(0,t.jsx)("header",{className:"bg-bg",children:(0,t.jsxs)("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[(0,t.jsx)("div",{className:"flex lg:flex-1",children:(0,t.jsxs)("a",{href:"/",className:"-m-1.5 p-1.5",children:[(0,t.jsx)("span",{className:"sr-only",children:"DoDAO"}),(0,t.jsx)("img",{alt:"DoDAO logo",src:"/dodao_2.png",className:"h-10 w-auto"})]})}),(0,t.jsxs)("details",{className:"group/mobile flex lg:hidden",children:[(0,t.jsxs)("summary",{className:"relative z-20 -m-2.5 inline-flex cursor-pointer list-none items-center justify-center rounded-md p-2.5 text-body [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,t.jsx)(S.A,{"aria-hidden":"true",className:"h-6 w-6 group-open/mobile:hidden"}),(0,t.jsx)(T.A,{"aria-hidden":"true",className:"hidden h-6 w-6 group-open/mobile:block"})]}),(0,t.jsxs)("div",{className:"fixed inset-y-0 right-0 z-10 w-full overflow-y-auto bg-surface px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-border",children:[(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5",children:[(0,t.jsx)("span",{className:"sr-only",children:"DoDAO"}),(0,t.jsx)("img",{alt:"DoDAO logo",src:"/dodao_2.png",className:"h-8 w-auto"})]})}),(0,t.jsx)("div",{className:"mt-6 flow-root",children:(0,t.jsxs)("div",{className:"-my-6 divide-y divide-border",children:[(0,t.jsxs)("div",{className:"space-y-2 py-6",children:[(0,t.jsxs)("details",{className:"group -mx-3",children:[(0,t.jsxs)("summary",{className:"flex w-full cursor-pointer list-none items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold leading-7 text-heading hover:bg-surface-2 [&::-webkit-details-marker]:hidden",children:["Product",(0,t.jsx)(x.A,{"aria-hidden":"true",className:"h-5 w-5 flex-none group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"mt-2 space-y-2",children:_.map(e=>(0,t.jsx)("a",{href:e.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold leading-7 text-heading hover:bg-surface-2",children:e.name},e.name))})]}),(0,t.jsxs)("details",{className:"group -mx-3",children:[(0,t.jsxs)("summary",{className:"flex w-full cursor-pointer list-none items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold leading-7 text-heading hover:bg-surface-2 [&::-webkit-details-marker]:hidden",children:["Services",(0,t.jsx)(x.A,{"aria-hidden":"true",className:"h-5 w-5 flex-none group-open:rotate-180"})]}),(0,t.jsxs)("div",{className:"mt-2 space-y-2",children:[(0,t.jsx)("a",{href:"/robotics",className:"block rounded-lg px-3 pb-2 pt-2 text-sm font-semibold text-heading hover:bg-surface-2",children:"Robotics"}),B.map(e=>(0,t.jsx)("a",{href:e.href,className:"block rounded-lg py-1 pl-6 pr-3 text-sm leading-7 text-body hover:bg-surface-2",children:e.name},e.name)),(0,t.jsx)("div",{className:"px-3 pb-2 pt-2 text-sm font-semibold text-heading",children:"AI Agents"}),I.map(e=>(0,t.jsx)("a",{href:e.href,className:"block rounded-lg py-1 pl-6 pr-3 text-sm leading-7 text-body hover:bg-surface-2",children:e.name},e.name)),(0,t.jsx)("div",{className:"px-3 pb-2 pt-2 text-sm font-semibold text-heading",children:"Blockchain"}),E.map(e=>(0,t.jsx)("a",{href:e.href,className:"block rounded-lg py-1 pl-6 pr-3 text-sm leading-7 text-body hover:bg-surface-2",children:e.name},e.name))]})]}),(0,t.jsxs)("details",{className:"group -mx-3",children:[(0,t.jsxs)("summary",{className:"flex w-full cursor-pointer list-none items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold leading-7 text-heading hover:bg-surface-2 [&::-webkit-details-marker]:hidden",children:["Education",(0,t.jsx)(x.A,{"aria-hidden":"true",className:"h-5 w-5 flex-none group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"mt-2 space-y-2",children:D.map(e=>(0,t.jsx)("a",{href:e.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold leading-7 text-heading hover:bg-surface-2",children:e.name},e.name))})]}),(0,t.jsxs)("details",{className:"group -mx-3",children:[(0,t.jsxs)("summary",{className:"flex w-full cursor-pointer list-none items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold leading-7 text-heading hover:bg-surface-2 [&::-webkit-details-marker]:hidden",children:["Research",(0,t.jsx)(x.A,{"aria-hidden":"true",className:"h-5 w-5 flex-none group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"mt-2 space-y-2",children:F.map(e=>(0,t.jsx)("a",{href:e.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold leading-7 text-heading hover:bg-surface-2",children:e.name},e.name))})]})]}),(0,t.jsx)("div",{className:"py-6",children:(0,t.jsx)("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-heading hover:bg-surface-2",children:"Log in"})})]})})]})]}),(0,t.jsxs)("div",{className:"hidden lg:flex lg:gap-x-12",children:[(0,t.jsxs)("div",{className:"group/nav relative",children:[(0,t.jsx)(M,{label:"Products"}),(0,t.jsx)("div",{className:"absolute -left-8 top-full z-10 hidden w-screen max-w-md pt-3 group-hover/nav:block group-focus-within/nav:block",children:(0,t.jsx)("div",{className:"overflow-hidden rounded-3xl bg-surface shadow-lg ring-1 ring-border",children:(0,t.jsx)("div",{className:"p-4",children:_.map(e=>(0,t.jsx)(G,{item:e},e.name))})})})]}),(0,t.jsxs)("div",{className:"group/nav relative",children:[(0,t.jsx)(M,{label:"Services"}),(0,t.jsx)("div",{className:"absolute left-1/2 top-full z-10 hidden w-screen max-w-max -translate-x-1/2 px-4 pt-3 group-hover/nav:flex group-focus-within/nav:flex",children:(0,t.jsx)("div",{className:"w-screen max-w-5xl flex-auto overflow-hidden rounded-3xl bg-surface text-sm/6 shadow-lg ring-1 ring-border",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-6 p-4 lg:grid-cols-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-2 text-base font-semibold text-heading text-center",children:(0,t.jsx)("a",{href:"/robotics",className:"hover:text-primary transition-colors",children:"Robotics"})}),B.map(e=>(0,t.jsx)(L,{item:e},e.name))]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-2 text-base font-semibold text-heading text-center",children:"AI Agents"}),I.map(e=>(0,t.jsx)(L,{item:e},e.name))]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-2 text-base font-semibold text-heading text-center",children:"Blockchain"}),E.map(e=>(0,t.jsx)(L,{item:e},e.name))]})]})})})]}),(0,t.jsxs)("div",{className:"group/nav relative",children:[(0,t.jsx)(M,{label:"Education"}),(0,t.jsx)("div",{className:"absolute -left-8 top-full z-10 hidden w-screen max-w-md pt-3 group-hover/nav:block group-focus-within/nav:block",children:(0,t.jsx)("div",{className:"overflow-hidden rounded-3xl bg-surface shadow-lg ring-1 ring-border",children:(0,t.jsx)("div",{className:"p-4",children:D.map(e=>(0,t.jsx)(G,{item:e},e.name))})})})]}),(0,t.jsxs)("div",{className:"group/nav relative",children:[(0,t.jsx)(M,{label:"Research"}),(0,t.jsx)("div",{className:"absolute -left-8 top-full z-10 hidden w-screen max-w-md pt-3 group-hover/nav:block group-focus-within/nav:block",children:(0,t.jsx)("div",{className:"overflow-hidden rounded-3xl bg-surface shadow-lg ring-1 ring-border",children:(0,t.jsx)("div",{className:"p-4",children:F.map(e=>(0,t.jsx)(G,{item:e},e.name))})})})]})]}),(0,t.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end"})]})})}var P=a(84108),z=a(83263);function R(e){let{hideModal:s,space:a}=e,i=(0,m.useRouter)(),r=e=>{i.push(e),s()};return(0,t.jsx)("div",{className:"pt-4 flex flex-col justify-center items-center w-full h-max",children:(0,t.jsx)("div",{className:"p-4 mb-[100%] sm:mb-0",children:(0,t.jsxs)(z.Y,{children:[(0,t.jsx)(P.A,{variant:"outlined",primary:!0,className:"p-2 w-full",onClick:()=>r("/tidbits/edit"),children:"Create Tidbit"}),(0,t.jsx)(P.A,{variant:"outlined",primary:!0,className:"p-2 w-full",onClick:()=>r("/guides/edit"),children:"Create Guide"}),(0,t.jsx)(P.A,{variant:"outlined",primary:!0,className:"p-2 w-full",onClick:()=>r("/timelines/edit"),children:"Create timeline"})]})})})}var H=a(11224),W=a(84652),U=a(25122),Y=a(95271);let q=(e,s)=>s&&e&&((0,Y.j)(e)||s.adminUsernamesV1.map(e=>e.username.toLowerCase()).some(s=>{var a;return s===(null==e||null==(a=e.username)?void 0:a.toLowerCase())}));var Q=a(4729),V=a(31639),J=a(42160),K=a(54934),X=a.n(K);function Z(e){let{label:s,href:a,onClick:i}=e;return(0,t.jsx)(V.W1.Item,{children:e=>{let{active:r}=e;return(0,t.jsx)(c(),{href:a||"#",onClick:i,style:{backgroundColor:r?"var(--block-bg)":""},className:(0,Q.A)("block px-4 py-2 text-sm"),children:s})}})}function $(e){let{session:s,space:a}=e,{logout:i}=(0,U.A)(a.id);return(0,t.jsxs)(V.W1,{as:"div",className:"relative ml-3",children:[(0,t.jsx)("div",{children:(0,t.jsxs)(V.W1.Button,{className:"flex rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"sr-only",children:"Open user menu"}),(0,t.jsx)("span",{className:"inline-block h-10 w-10 overflow-hidden rounded-full bg-gray-100",children:(0,t.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",className:"h-full w-full text-gray-300",children:(0,t.jsx)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})})]})}),(0,t.jsx)(J.e,{as:r.Fragment,enter:"transition ease-out duration-200",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,t.jsxs)(V.W1.Items,{className:"".concat(X().menuItems," absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"),children:[(0,Y.j)(s)&&(0,t.jsx)(Z,{label:"Your Profile"}),(0,Y.j)(s)&&(0,t.jsx)(Z,{label:"Manage Space",href:"/space/manage"}),(0,Y.j)(s)&&(0,t.jsx)(Z,{label:"Edit User Space",href:"/space/edit"}),q(s,a)&&(0,t.jsx)(Z,{label:"Edit Space",href:"/spaces/finish-space-setup"}),(0,t.jsx)(Z,{label:"Sign out",onClick:()=>i()})]})})]})}var ee=a(24136);function es(e){let{label:s,href:a}=e;return(0,t.jsx)(c(),{href:a||"#",children:(0,t.jsx)(ee.EN.Button,{as:"a",className:"block px-4 py-2 font-medium hover:bg-gray-100 hover:text-gray-800 sm:px-6",children:s})})}function ea(e){let{session:s,space:a}=e;return(0,t.jsxs)("div",{className:"border-t border-gray-200 pb-3 pt-4",children:[(0,t.jsx)("div",{className:"flex items-center px-4 sm:px-6",children:(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)("span",{className:"inline-block h-10 w-10 overflow-hidden rounded-full bg-gray-100",children:(0,t.jsx)("svg",{fill:"currentColor",viewBox:"0 0 24 24",className:"h-full w-full text-gray-300",children:(0,t.jsx)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})})})}),(0,t.jsxs)("div",{className:"mt-3 space-y-1",children:[(0,Y.j)(s)&&(0,t.jsx)(es,{label:"Your Profile"}),(0,Y.j)(s)&&(0,t.jsx)(es,{label:"Manage Space",href:"/space/manage"}),(0,Y.j)(s)&&(0,t.jsx)(es,{label:"Edit User Space",href:"/space/edit"}),q(s,a)&&(0,t.jsx)(es,{label:"Edit Space",href:"/spaces/finish-space-setup"}),(0,t.jsx)(es,{label:"Sign out"})]})]})}var et=a(958),ei=a(93653),er=a(49588),el=function(e){return e.Courses="Courses",e.Chatbot="Chatbot",e.Bytes="Bytes",e.ByteCollections="ByteCollections",e.Guides="Guides",e.Shorts="Shorts",e.Simulations="Simulations",e.Timelines="Timelines",e.ClickableDemos="ClickableDemos",e}({});let en=[{featureName:el.ByteCollections,enabled:!0,details:{priority:90}},{featureName:el.Guides,enabled:!0,details:{priority:80}},{featureName:el.ClickableDemos,enabled:!0,details:{priority:70}},{featureName:el.Timelines,enabled:!0,details:{priority:60}}],eo=[{featureName:el.Guides,enabled:!0,details:{priority:90}},{featureName:el.Bytes,enabled:!0,details:{priority:80}},{featureName:el.Courses,enabled:!0,details:{priority:70}}],ed=[{featureName:el.Guides,enabled:!0,details:{priority:90}},{featureName:el.Courses,enabled:!0,details:{priority:80}},{featureName:el.Bytes,enabled:!0,details:{priority:70}},{featureName:el.Timelines,enabled:!0,details:{priority:60}}],ec=[],em=[{featureName:el.Guides,enabled:!0,details:{priority:90}},{featureName:el.Bytes,enabled:!0,details:{priority:80}},{featureName:el.Simulations,enabled:!0,details:{priority:70}}],eu=[{featureName:el.ByteCollections,enabled:!0,details:{priority:90}},{featureName:el.Shorts,enabled:!0,details:{priority:85}}],eh=[{featureName:el.Guides,enabled:!0,details:{priority:90}},{featureName:el.ByteCollections,enabled:!0,details:{priority:70}},{featureName:el.ClickableDemos,enabled:!0,details:{priority:60}},{featureName:el.Timelines,enabled:!0,details:{priority:55}},{featureName:el.Courses,enabled:!0,details:{priority:50}}],ex=[{featureName:el.Guides,enabled:!0,details:{priority:90}},{featureName:el.ByteCollections,enabled:!0,details:{priority:70}},{featureName:el.ClickableDemos,enabled:!0,details:{priority:60}},{featureName:el.Timelines,enabled:!0,details:{priority:55}},{featureName:el.Courses,enabled:!0,details:{priority:50}}],ep=[{featureName:el.Guides,enabled:!0,details:{priority:90}},{featureName:el.Bytes,enabled:!0,details:{priority:80}},{featureName:el.ByteCollections,enabled:!0,details:{priority:75}},{featu
1reName:el.ByteCollections,enabled:!0,details:{priority:70}},{featureName:el.Simulations,enabled:!0,details:{priority:65}},{featureName:el.ClickableDemos,enabled:!0,details:{priority:60}},{featureName:el.Timelines,enabled:!0,details:{priority:55}},{featureName:el.Courses,enabled:!0,details:{priority:50}},{featureName:el.Shorts,enabled:!0,details:{priority:40}}],ef=[{featureName:el.Guides,enabled:!0,details:{priority:90}},{featureName:el.ByteCollections,enabled:!0,details:{priority:80}},{featureName:el.ClickableDemos,enabled:!0,details:{priority:70}},{featureName:el.Courses,enabled:!0,details:{priority:50}}];var eg=a(86923),ev=a.n(eg),eb=a(80398);function ej(e){if((null==e?void 0:e.type)===n.Q.TidbitsSite||(null==e?void 0:e.id)===o.W.TIDBITS_HUB)return[];let s=function(e){if("dodao-academy-eth-1"===e)return ed;if("dodao-academy"===e)return ec;if("compound-eth-1"===e)return en;if(e===eb.env.DODAO_DEFAULT_SPACE_ID)return ep;if("uniswap-eth-1"===e)return ef;else if("credit-union-academy"===e)return eo;else if("fuse"===e)return em;else if("optimism-university"===e)return eh;else if("arbitrum-university"===e)return ex;else if("life-insurance-tips"===e)return eu;return[{featureName:el.Guides,enabled:!0,details:{priority:90}},{featureName:el.Courses,enabled:!0,details:{priority:80}}]}(e.id);return ev()(s,[e=>-e.details.priority])}var ey=a(48807),eN=a.n(ey);function ew(e){let{label:s,href:a}=e,i=(0,m.usePathname)()===a;return(0,t.jsx)(c(),{href:a,className:i?"".concat(eN().isActive," inline-flex items-center border-b-2 px-1 pt-1 text-sm font-medium"):"".concat(eN().isInactive," inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium hover:border-gray-300 hover:text-gray-700"),children:s})}function eC(e){let{space:s}=e,a=ej(s);return(0,t.jsx)("div",{className:"hidden md:ml-6 md:flex md:space-x-8",children:a.map(e=>e.featureName===el.Courses?(0,t.jsx)(ew,{href:"/courses",label:"Courses"},"courses"):e.featureName===el.Guides?(0,t.jsx)(ew,{href:"/guides",label:"Guides"},"guides"):e.featureName===el.Bytes?(0,t.jsx)(ew,{href:"/tidbits",label:"Tidbits"},"tidbits"):e.featureName===el.ByteCollections?(0,t.jsx)(ew,{href:"/tidbit-collections",label:"Tidbits"},"tidbitCollections"):e.featureName===el.Simulations?(0,t.jsx)(ew,{href:"/simulations",label:"Simulations"},"simulations"):e.featureName===el.ClickableDemos?(0,t.jsx)(ew,{href:"/clickable-demos",label:"Clickable Demos"},"clickableDemos"):e.featureName===el.Timelines?(0,t.jsx)(ew,{href:"/timelines",label:"Timelines"},"timelines"):e.featureName===el.Chatbot?(0,t.jsx)(ew,{href:"/nema",label:"Chatbot"},"ai_chatbot"):e.featureName===el.Shorts?(0,t.jsx)(ew,{href:"/shorts",label:"Short Videos"},"shorts"):void 0)})}var ek=a(50475),eA=a.n(ek);function eS(e){let{label:s,href:a}=e,i=(0,m.usePathname)()===a;return(0,t.jsx)(ee.EN.Button,{as:r.Fragment,children:(0,t.jsx)("a",{href:a,className:i?"".concat(eA().isActive," block border-l-4 bg-gray-100 py-2 pl-3 pr-4 text-base font-medium sm:pl-5 sm:pr-6"):"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700 sm:pl-5 sm:pr-6",children:s})})}function eT(e){let{space:s}=e,a=ej(s);return(0,t.jsx)("div",{className:"space-y-1 pb-3 pt-2",children:a.map(e=>e.featureName===el.Courses?(0,t.jsx)(eS,{href:"/courses",label:"Courses"},"courses"):e.featureName===el.Guides?(0,t.jsx)(eS,{href:"/guides",label:"Guides"},"guides"):e.featureName===el.Bytes?(0,t.jsx)(eS,{href:"/tidbits",label:"Tidbits"},"tidbits"):e.featureName===el.ByteCollections?(0,t.jsx)(eS,{href:"/tidbit-collections",label:"Tidbits"},"tidbitCollections"):e.featureName===el.Simulations?(0,t.jsx)(eS,{href:"/simulations",label:"Simulations"},"simulations"):e.featureName===el.Timelines?(0,t.jsx)(eS,{href:"/timelines",label:"Timelines"},"timelines"):e.featureName===el.Chatbot?(0,t.jsx)(eS,{href:"/nema",label:"Chatbot"},"ai_chatbot"):e.featureName===el.Shorts?(0,t.jsx)(eS,{href:"/shorts",label:"Short Videos"},"shorts"):void 0)})}let e_={backgroundColor:"var(--bg-color)",color:"var(--text-color)"};function eD(e){var s,a;return e.session&&e.space&&(0,H.q)(e.session,e.space)&&(null==(s=e.space)?void 0:s.type)!=n.Q.TidbitsSite?(0,t.jsxs)(P.A,{type:"button",variant:"contained",primary:!0,onClick:e.onClickCreate,children:[(0,t.jsx)(er.A,{className:"-ml-0.5 h-5 w-5","aria-hidden":"true"}),"Create"]}):e.session&&e.space||(null==(a=e.space)?void 0:a.type)===n.Q.TidbitsSite?null:(0,t.jsx)(P.A,{variant:"contained",primary:!0,onClick:e.onClickLogin,children:"Login"})}function eF(e){let{data:s}=(0,u.useSession)(),{setShowLoginModal:a}=(0,et.v)(),[i,l]=(0,r.useState)(!1),{space:o}=e;return(0,t.jsxs)("div",{style:e_,id:"academy-top-nav",children:[(0,t.jsx)(W.A,{open:i,onClose:()=>l(!1),title:"Create",showCloseButton:!1,children:(0,t.jsx)(R,{space:e.space,hideModal:()=>l(!1)})}),(0,t.jsx)(ee.EN,{as:"nav",className:"shadow",style:{backgroundColor:"var(--bg-color)",color:"var(--text-color)",borderBottom:"0.5px solid var(--border-color)",boxShadow:"0px 50px 50px 0px red"},children:e=>{let{open:i}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"flex h-16 justify-between",children:[(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)("div",{className:"-ml-2 mr-2 flex items-center md:hidden",children:(0,t.jsxs)(ee._q,{className:"inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500",children:[(0,t.jsx)("span",{className:"sr-only",children:"Open main menu"}),i?(0,t.jsx)(T.A,{className:"block h-6 w-6","aria-hidden":"true"}):(0,t.jsx)(S.A,{className:"block h-6 w-6","aria-hidden":"true"})]})}),(0,t.jsxs)("div",{className:"flex flex-shrink-0 items-center",children:[(0,t.jsx)(c(),{href:"/",children:(0,t.jsx)("img",{className:"block h-8 w-auto lg:hidden",src:(null==o?void 0:o.avatar)?(0,ei.A)(o.avatar):"https://tailwindui.com/img/logos/mark.svg",alt:"Your Company",height:50})}),(0,t.jsx)(c(),{href:"/",children:(0,t.jsx)("img",{className:"hidden h-8 w-auto lg:block",src:(null==o?void 0:o.avatar)?(0,ei.A)(o.avatar):"https://tailwindui.com/img/logos/mark.svg",alt:"Your Company",height:50})})]}),o&&o.type!==n.Q.TidbitsSite&&(0,t.jsx)(eC,{space:o})]}),(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(eD,{session:s,space:o,onClickCreate:()=>l(!0),onClickLogin:()=>a(!0)})}),s&&o&&(0,t.jsx)("div",{className:"hidden md:ml-4 md:flex md:flex-shrink-0 md:items-center",children:(0,t.jsx)($,{session:s,space:o})})]})]})}),(0,t.jsxs)(ee.kS,{className:"md:hidden",children:[o&&o.type!==n.Q.TidbitsSite&&(0,t.jsx)(eT,{space:o}),s&&o&&(0,t.jsx)(ea,{session:s,space:o})]})]})}})]})}function eB(e){let{space:s}=e;return s.id===o.W.DODAO_HOME?(0,t.jsx)(O,{}):(0,t.jsx)(eF,{space:s})}var eI=a(53754);let eE=function(e){var s,a,l,n,o,d,c;let{space:m}=e,{loginWithMetamask:u,loginWithCoinbase:h,loginWithGoogle:x,loginWithDiscord:p,loginWithNear:f,processing:g,processingMetaMask:v,processingCoinbase:b,processingGoogle:j,processingDiscord:y,processingNear:N}=(0,U.A)(m.id),w=0===((null==(s=m.authSettings.loginOptions)?void 0:s.length)||0),C=!!(null==(a=m.authSettings.loginOptions)?void 0:a.includes(eI.wr.MetaMask)),k=!!(null==(l=m.authSettings.loginOptions)?void 0:l.includes(eI.wr.Coinbase)),A=!!(null==(n=m.authSettings.loginOptions)?void 0:n.includes(eI.wr.Google)),S=!!(null==(o=m.authSettings.loginOptions)?void 0:o.includes(eI.wr.Discord)),T=!!(null==(d=m.authSettings.loginOptions)?void 0:d.includes(eI.wr.Near)),_=!!(null==(c=m.authSettings.loginOptions)?void 0:c.includes(eI.wr.Email)),[D,F]=r.useState(!1),B=()=>{F(!0)},I=[C,k,A,S,T,_].filter(e=>e).length;return(0,r.useEffect)(()=>{1===I&&(C&&u(),k&&h(),A&&x(),S&&p(),T&&f(),_&&B())},[I]),console.log({isMetamaskEnabled:C,isCoinbaseEnabled:k,isGoogleEnabled:A,isDiscordEnabled:S,isNearEnabled:T,isEmailEnabled:_}),(0,t.jsxs)("div",{className:"flex-col max-w-md",children:[w||C?(0,t.jsx)("div",{className:"mt-2 w-full",children:(0,t.jsx)(P.A,{variant:"outlined",primary:!0,onClick:u,className:"w-full",disabled:g,loading:v,children:"Login with Metamask"})}):null,w||k?(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(P.A,{variant:"outlined",primary:!0,onClick:h,className:"w-full",disabled:g,loading:b,children:"Login with Coinbase"})}):null,w||A?(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(P.A,{variant:"outlined",primary:!0,onClick:x,className:"w-full",disabled:g,loading:j,children:"Login with Google"})}):null,w||S?(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(P.A,{variant:"outlined",primary:!0,onClick:p,className:"w-full",disabled:g,loading:y,children:"Login with Discord"})}):null,T?(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(P.A,{variant:"outlined",primary:!0,onClick:f,className:"w-full",disabled:g,loading:N,children:"Login with NEAR"})}):null,_?(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(P.A,{variant:"outlined",primary:!0,onClick:B,className:"w-full",disabled:g,loading:N,children:"Login with Email"})}):null,D&&(0,t.jsx)(i.default,{space:m,open:D,onClose:()=>{F(!1),e.onCloseEmailModal()}})]})};var eG=a(38391),eL=a(95151);let eM=e=>{let{space:s}=e,{showLoginModal:a,setShowLoginModal:r}=(0,et.v)();return a?s.id===o.W.TIDBITS_HUB?(0,t.jsx)(t.Fragment,{children:a&&(0,t.jsx)(i.default,{space:s,open:a,onClose:()=>{r(!1)},showSemiTransparentBg:!0})}):(0,t.jsx)(eG.A,{open:a,onClose:()=>r(!1),title:"Login",showCloseButton:!0,children:(0,t.jsx)(eL.A,{children:(0,t.jsx)("div",{className:"flex justify-center items-center h-full",children:(0,t.jsx)(eE,{space:s,onCloseEmailModal:()=>r(!1)})})})}):null},eO={backgroundColor:"var(--bg-color)",color:"var(--text-color)",minHeight:"calc(100vh - 118px)"};function eP(e){return window.location.href.includes("embedded-tidbit-collections")?null:(0,t.jsx)(eB,{space:e.space})}function ez(e){return window.location.href.includes("embedded-tidbit-collections")?null:(0,t.jsx)(h,{space:e.space})}function eR(e){return(0,t.jsxs)(et.o,{children:[(0,t.jsx)(eM,{space:e.space}),(0,t.jsx)(eP,{space:e.space}),(0,t.jsx)("main",{style:eO,children:e.children}),(0,t.jsx)(ez,{space:e.space})]})}var eH=a(17011);function eW(){return(0,t.jsxs)("main",{className:"relative isolate min-h-full",children:[(0,t.jsx)("img",{src:"https://images.unsplash.com/photo-1516822003754-cca485356ecb?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3050&q=80&exp=8&con=-15&sat=-75",alt:"Something seems to be broken.",className:"absolute inset-0 -z-10 h-screen w-full object-cover object-top"}),(0,t.jsx)("div",{style:{minHeight:"100vh"},className:"pt-4 flex flex-col justify-center items-center byte-container w-full",children:(0,t.jsx)("div",{className:"mx-auto max-w-7xl px-6 py-32 text-center sm:py-40 lg:px-8",children:(0,t.jsxs)("div",{style:{backgroundColor:"rgba(127, 127, 127, 0.7)",borderRadius:"2rem",padding:"100px"},children:[(0,t.jsx)("h1",{className:"mt-4 text-3xl font-bold tracking-tight text-white sm:text-5xl",children:"Something is Broken"}),(0,t.jsx)("p",{className:"mt-4 text-base text-white/70 sm:mt-6",children:"Please don't hate us. We are working hard to fix the issue."}),(0,t.jsx)("div",{className:"mt-10 flex justify-center",children:(0,t.jsx)("a",{href:"/",className:"text-base font-semibold leading-7 text-white",children:"Reload"})})]})})})]})}var eU=a(64255),eY=a(39103),eq=a(17097),eQ=a(60907),eV=a(30697);let eJ=eV.Ay.div.withConfig({componentId:"sc-6d77a2a2-0"})(["background-color:var(--bg-color);border:1px solid var(--border-color);color:var(--text-color);"]),eK=eV.Ay.button.withConfig({componentId:"sc-6d77a2a2-1"})(["background-color:var(--bg-color);color:var(--text-color);&:hover{color:var(--link-color);}&:focus{outline:none;box-shadow:0 0 0 2px var(--link-color);}"]),eX=eV.Ay.p.withConfig({componentId:"sc-6d77a2a2-2"})(["color:var(--text-color);"]);function eZ(e){let{heading:s,message:a,duration:i=3e3,type:l="success",onClose:n}=e,[o,d]=(0,r.useState)(!0),c=s;return(c||("success"===l&&(c="Success \uD83C\uDF89"),"error"===l&&(c="Error â"),"info"===l&&(c="Info â¹ï¸")),(0,r.useEffect)(()=>{let e=setTimeout(()=>{d(!1),n&&n()},i);return()=>{clearTimeout(e)}},[i,n]),o)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex items-end px-4 py-6 sm:items-start sm:p-6 z-50",children:(0,t.jsx)("div",{className:"flex w-full flex-col items-center space-y-4 sm:items-end",children:(0,t.jsx)(J.e,{show:o,as:r.Fragment,enter:"transform ease-
1out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)(eJ,{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 z-50",children:(0,t.jsx)("div",{className:"p-4",children:(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsxs)("div",{className:"flex-shrink-0",children:["success"===l&&(0,t.jsx)(eU.A,{className:"h-6 w-6 text-green-400","aria-hidden":"true"})," ","error"===l&&(0,t.jsx)(eY.A,{className:"h-6 w-6 text-red-400","aria-hidden":"true"}),"info"===l&&(0,t.jsx)(eq.A,{className:"h-6 w-6 text-blue-400","aria-hidden":"true"})]}),(0,t.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,t.jsx)(eX,{className:"text-sm font-medium text-[var(--heading-color)]",children:s}),(0,t.jsx)(eX,{className:"mt-1 text-sm text-[var(--text-color)]",children:a})]}),(0,t.jsx)("div",{className:"ml-4 flex flex-shrink-0",children:(0,t.jsxs)(eK,{type:"button",className:"inline-flex rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--primary-color)] focus:ring-offset-2",onClick:()=>{d(!1),n&&n()},children:[(0,t.jsx)("span",{className:"sr-only",children:"Close"}),(0,t.jsx)(eQ.A,{className:"h-5 w-5","aria-hidden":"true"})]})})]})})})})})})}):null}var e$=a(40979);let e0=()=>{let{notification:e,hideNotification:s}=(0,e$.M)();if(!e)return null;let a="".concat(e.heading,"_").concat(e.type,"_").concat(e.duration,"_").concat(Date.now());return(0,t.jsx)(eZ,{type:e.type,duration:e.duration,heading:e.heading,message:e.message,onClose:s},a)};var e1=a(97379),e2=a(77701),e5=a(63569),e6=a(81541),e3=a(36819),e4=a(2325);let[e7,e8]=(0,e2.initializeConnector)(e=>new e3.Network({actions:e,urlMap:e4.tl}));a(54577),a(24086);let e9=[[e6.e,e6.J],[e5.m,e5.J],[e7,e8]];function se(e){let{children:s}=e;return(0,t.jsx)(e2.Web3ReactProvider,{connectors:e9,children:s})}var ss=a(86105),sa=a(52942),st=a(23726),si=a(20020),sr=a(63870),sl=a(49164);let sn=new ss.C((e,s)=>(e.setContext(e=>{let{headers:s}=e,a=null==s?void 0:s["dodao-auth-token"];return a=a||localStorage.getItem(eI.Xv)||"",{headers:{...s||{},"dodao-auth-token":a}}}),s(e)));var so=a(94211),sd=a(79017);function sc(e){let{children:s,session:a,space:i,spaceError:l}=e,n=(0,r.useMemo)(()=>(e=>{let s={},a=null==e?void 0:e.dodaoAccessToken;(a=a||localStorage.getItem(eI.Xv)||"")&&(s["dodao-auth-token"]=a);let t=(0,sa.H)([new sl.z,sn,new st.P({uri:"https://v2-api.dodao.io/graphql"})]);return new si.R({uri:"https://v2-api.dodao.io/graphql",cache:new sr.D,headers:s,link:t})})(a),[a]);(0,r.useEffect)(()=>{i&&!sd.Ay.isInitialized&&sd.Ay.initialize("uniswap-eth-1"===i.id?"G-GHYGJ5DYRF":"dodao-1"===i.id?"G-4WB58RV063":"G-BJX2V8FE7L")},[i]),(0,r.useEffect)(()=>{(null==a?void 0:a.userId)?(localStorage.setItem(e1.K,null==a?void 0:a.userId),(0,so.G)(a)):localStorage.setItem(e1.K,"anonymous")},[a]);var o=e=>{console.log("page_view",e),sd.Ay.event("page_view",{page_title:e,page_location:e})};let d=(0,m.usePathname)(),c=(0,r.useRef)(d);return((0,r.useEffect)(()=>{c.current!==d&&(o(d),c.current=d)},[d,o]),l)?(0,t.jsx)(eW,{}):(0,t.jsx)(se,{children:(0,t.jsxs)(eH.X,{client:n,children:[(0,t.jsx)(u.SessionProvider,{session:a,children:(0,t.jsx)(eR,{space:i,children:s})}),(0,t.jsx)(e0,{})]})})}},958:(e,s,a)=>{"use strict";a.d(s,{o:()=>n,v:()=>l});var t=a(21161),i=a(88637);let r=(0,i.createContext)({showLoginModal:!1,setShowLoginModal:()=>{}}),l=()=>(0,i.useContext)(r),n=e=>{let{children:s}=e,[a,l]=(0,i.useState)(!1);return(0,t.jsx)(r.Provider,{value:{showLoginModal:a,setShowLoginModal:l},children:s})}},2949:()=>{},4729:(e,s,a)=>{"use strict";function t(){for(var e=arguments.length,s=Array(e),a=0;a<e;a++)s[a]=arguments[a];return s.filter(Boolean).join(" ")}a.d(s,{A:()=>t})},11224:(e,s,a)=>{"use strict";a.d(s,{q:()=>i});var t=a(95271);let i=(e,s)=>s&&e&&((0,t.j)(e)||s.adminUsernamesV1.map(e=>e.username.toLowerCase()).some(s=>{var a;return s===(null==e||null==(a=e.username)?void 0:a.toLowerCase())}))},24602:(e,s,a)=>{"use strict";a.d(s,{Q:()=>t});var t=function(e){return e.AcademySite="ACADEMY_SITE",e.TidbitsSite="TidbitsSite",e}({})},27828:(e,s,a)=>{"use strict";a.d(s,{W:()=>t,x:()=>i});let t={TIDBITS_HUB:"tidbitshub",DODAO_HOME:"dodao-academy"};var i=function(e){return e.loginAndGoToSpaces="loginAndGoToSpaces",e.setupNewSpace="setupNewSpace",e.loginAndRedirectToHome="loginAndRedirectToHome",e.finishSetup="finishSetup",e}({})},35996:e=>{e.exports={dialogMargin:"FullScreenModal_dialogMargin__8ND4l",modalContainer:"FullScreenModal_modalContainer__FaE27",modalTitle:"FullScreenModal_modalTitle__FCHPZ"}},38391:(e,s,a)=>{"use strict";a.d(s,{A:()=>m});var t=a(21161),i=a(35996),r=a.n(i),l=a(42160),n=a(17675),o=a(60907),d=a(88637);let c=a(30697).Ay.div.withConfig({componentId:"sc-5170cb39-0"})(["background-color:var(--bg-color);"]);function m(e){let{open:s,title:a,children:i,onClose:m,showCloseButton:u=!0,showTitleBg:h=!0}=e;return(0,t.jsx)(l.e.Root,{show:s,as:d.Fragment,children:(0,t.jsxs)(n.lG,{as:"div",className:"relative z-10",onClose:m,children:[(0,t.jsx)(l.e.Child,{as:d.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"h-screen bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,t.jsx)("div",{className:"fixed inset-0 z-10 ".concat(r().modalContainer),children:(0,t.jsx)("div",{className:"flex min--hflul items-end justify-center text-center sm:items-center sm:p-0 h-full",children:(0,t.jsx)(l.e.Child,{as:d.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,t.jsx)(n.lG.Panel,{className:"relative transform overflow-hidden text-left transition-all w-full h-full "+r().dialogMargin,children:(0,t.jsx)(c,{className:"w-full h-full",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)(n.lG.Title,{as:"h3",className:"flex text-base font-semibold leading-6 justify-between p-2 z-50 relative ".concat(h?r().modalTitle:""),children:[(0,t.jsx)("div",{className:"w-full align-center text-center text-xl mt-1",children:a}),u&&(0,t.jsx)("div",{className:"flex justify-end pr-2",children:(0,t.jsxs)("button",{type:"button",className:"rounded-md ".concat(h?"border-2 border-color":""),onClick:()=>{m()},children:[(0,t.jsx)("span",{className:"sr-only",children:"Close"}),(0,t.jsx)(o.A,{className:"h-8 w-8"})]})})]}),(0,t.jsx)("div",{className:"overflow-y-auto max-h-screen pb-6",children:i})]})})})})})})]})})}},42155:(e,s,a)=>{"use strict";a.d(s,{A:()=>d});var t=a(21161),i=a(35959),r=a(88637),l=a(45728),n=a.n(l),o=a(71500);function d(e){let{modelValue:s,placeholder:a,id:l,error:d,number:c,password:m,disabled:u,maxLength:h,min:x,max:p,required:f=!0,onUpdate:g,label:v,info:b,children:j,className:y,helpText:N,onBlur:w}=e,[C,k]=(0,r.useState)(!1),A=(0,r.useRef)(null),S=(0,o.A)();return(0,t.jsxs)("div",{className:"my-2 "+(y||""),children:[(0,t.jsxs)("label",{htmlFor:l||S,className:"block text-sm font-semibold leading-6",children:[v," ",j]}),(0,t.jsxs)("div",{className:"relative mt-2 rounded-md shadow-sm",children:[(0,t.jsx)("input",{id:l||S,ref:A,className:"block w-full rounded-md border-0 p-1.5 pr-10 ring-1 ring-inset ring-[var(--border-color)] shadow-sm focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6 ".concat(n().styledInput," ").concat(d?n().error:""),value:s||"",onChange:e=>{let s=e.target.value;c?null==g||g(s?parseFloat(s):void 0):null==g||g(s)},placeholder:a,type:c?"number":m?"password":"text",disabled:u,required:f,maxLength:h||void 0,min:x||void 0,max:p||void 0,onFocus:()=>k(!0),onBlur:()=>{k(!1),w&&w()}}),d&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:(0,t.jsx)(i.A,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),N&&(0,t.jsx)("p",{className:"ml-1 mt-2 mb-2 italic text-xs",children:N}),b&&(0,t.jsx)("p",{className:"mt-1 text-xs",children:b}),"string"==typeof d&&(0,t.jsx)("p",{className:"ml-1 mt-2 text-sm text-red-600",children:d})]})}},45728:e=>{e.exports={styledInput:"Input_styledInput__1qtjR",error:"Input_error__xAy6a"}},48807:e=>{e.exports={isActive:"DesktopNavLink_isActive__Qb_oR",isInactive:"DesktopNavLink_isInactive__WipPR"}},50475:e=>{e.exports={isActive:"MobileNavLink_isActive__oR4Ps"}},54934:e=>{e.exports={menuItems:"DesktopProfileMenu_menuItems__T0tPp"}},63421:(e,s,a)=>{"use strict";a.d(s,{default:()=>n});var t=a(21161),i=a(88637),r=a(83242),l=a(30697);function n(e){let{children:s}=e,[a]=(0,i.useState)(()=>new l.E);return(0,r.useServerInsertedHTML)(()=>{let e=a.getStyleElement();return a.instance.clearTag(),(0,t.jsx)(t.Fragment,{children:e})}),(0,t.jsx)(t.Fragment,{children:s})}},83263:(e,s,a)=>{"use strict";a.d(s,{Y:()=>i});var t=a(21161);a(88637);let i=e=>{let{children:s,className:a}=e;return(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 ".concat(a||""),children:s})}},84652:(e,s,a)=>{"use strict";a.d(s,{A:()=>m});var t=a(21161),i=a(42160),r=a(17675),l=a(60907),n=a(88637),o=a(30697);let d=o.Ay.div.withConfig({componentId:"sc-d998c77a-0"})(["color:var(--text-color);"]),c=o.Ay.div.withConfig({componentId:"sc-d998c77a-1"})(["background-color:var(--bg-color);"]);function m(e){let{open:s,title:a,children:o,onClose:m,showCloseButton:u=!0,fullWidth:h=!1,className:x}=e;return(0,t.jsx)(i.e.Root,{show:s,as:n.Fragment,children:(0,t.jsxs)(r.lG,{as:"div",className:"relative z-10",onClose:m,children:[(0,t.jsx)(i.e.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,t.jsx)(d,{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full justify-center text-center sm:items-center sm:p-0 items-center",children:(0,t.jsx)(i.e.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,t.jsx)(r.lG.Panel,{className:"relative transform text-left transition-all sm:my-8 ".concat(x||"w-full"),children:(0,t.jsx)(c,{className:h?"":"mx-auto max-w-7xl rounded-lg pb-4 pt-2",children:(0,t.jsxs)("div",{className:"text-center overflow-y-auto",children:[(0,t.jsxs)(r.lG.Title,{as:"h3",className:"flex text-base font-semibold leading-6 justify-between",children:[(0,t.jsx)("div",{className:"w-full align-center text-center",children:a}),u&&(0,t.jsx)("div",{className:"flex justify-end pr-2",children:(0,t.jsxs)("button",{type:"button",className:"inline-flex rounded-md hover:text-[var(--text-color)]",onClick:()=>{m()},children:[(0,t.jsx)("span",{className:"sr-only",children:"Close"}),(0,t.jsx)(l.A,{className:"h-8 w-8"})]})})]}),o]})})})})})})]})})}},87811:(e,s,a)=>{"use strict";a.d(s,{A:()=>c});var t=a(21161),i=a(42160),r=a(17675),l=a(60907),n=a(88637),o=a(136),d=a.n(o);function c(e){let{open:s,title:a,children:o,onClose:c,showCloseButton:m=!0,showSemiTransparentBg:u=!1}=e;return(0,t.jsx)(i.e,{show:s,as:n.Fragment,children:(0,t.jsxs)(r.lG,{as:"div",className:"relative z-10",onClose:c,children:[(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-0 transition-opacity"})}),(0,t.jsx)("div",{className:"".concat(u?d().modalContainer:"background-color"," text-color fixed inset-0 z-10 overflow-y-auto flex min-h-full items-center justify-center p-4 text-center sm:items-center sm:p-0"),children:(0,t.jsx)(i._,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,t.jsxs)(r.Lj,{className:"background-color z-15 border border-color relative transform overflow-hidden rounded-lg p-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-sm sm:p-6",children:[m&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)("button",{type:"button",className:"inline-flex rounded-md",onClick:()=>{c()},children:[(0,t.jsx)("span",{className:"sr-only",children:"Close"}),(0,t.jsx)(l.A,{className:"h-5 w-5","aria-hidden":"true"})]})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(r.L3,{as:"h3",className:"text-base font-semibold leading-6",children:a}),(0,t.jsx)("div",{className:"mt-2",children:o})]})]})})})]})})}},90982:(e,s,a)=>{"use strict";a.d(s,{R:()=>t});let t=e=>{switch(e.split("@")[1]){case"gmail.com":return"https://mail.google.com/";case"yahoo.com":return"https://mail.yahoo.com/";case"outlook.com":case"hotmail.com":return"https://outlook.live.com/";case"icloud.com":return"https://www.icloud.com/mail";default:return null}}},93072:(e,s,a)=>{"use strict";a.d(s,{default:()=>c});var t=a(21161),i=a(84108),r=a(42155),l=a(87811),n=a(90982),o=a(27828),d=a(88637);let c=function(e){let{open:s,onClose:a,space:c,showSemiTransparentBg:m}=e,[u,h]=(0,d.useState)(""),[x,p]=(0,d.useState)(!1),[f,g]=(0,d.useState)(!1),v=async e=>{e.preventDefault(),g(!0);let s=await fetch("/api/auth/custom-email/login-signup-by-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,spaceId:c.id,context:"".concat(c.id===o.W.TIDBITS_HUB?o.x.loginAndGoToSpaces:o.x.loginAndRedirectToHome)})});g(!1),(null==s?void 0:s.ok)?p(!0):alert("Failed to send verification email. Please try again.")},b=u?(0,n.R)(u):null;return(0,t.jsx)(l.A,{open:s,onClose:a,title:"Login with Email",showSemiTransparentBg:m,children:(0,t.jsx)("div",{className:"text-left py-4",children:x?(0,t.jsx)("div",{className:"text-center",children:(0,t.jsxs)("p",{children:["A verification link has been sent to"," ",(0,t.jsx)("span",{onClick:b?()=>{b&&window.open(b,"_blank")}:void 0,className:"".concat(b?"link-color underline cursor-pointer":""),children:"your email"}),". Click on the link provided in the email to log in."]})}):(0,t.jsxs)("form",{onSubmit:v,children:[(0,t.jsx)(r.A,{id:"email",modelValue:u,placeholder:"[email protected]",onUpdate:e=>e?h(e.toString()):h(""),required:!0,label:"Email Address"}),(0,t.jsx)("div",{className:"w-full flex justify-center",children:(0,t.jsx)(i.A,{type:"submit",primary:!0,variant:"contained",className:"mt-4",loading:f,children:"Login"})})]})})})}},93653:(e,s,a)=>{"use strict";function t(e){return e?e.startsWith("https://d31h13bdjwgzxs.cloudfront.net")?e:e.includes("cloudflare-ipfs.com")?e.replace("cloudflare-ipfs.com/ipfs","d31h13bdjwgzxs.cloudfront.net"):e.includes("ipfs://")?e.replace("ipfs://","https://d31h13bdjwgzxs.cloudfront.net/"):e:""}a.d(s,{A:()=>t})},95151:(e,s,a)=>{"use strict";a.d(s,{A:()=>r});var t=a(21161);function i(e){let{children:s}=e;return(0,t.jsx)("div",{className:"w-full mx-auto max-w-7xl sm:px-2 lg:px-8",children:s})}function r(e){let{children:s,className:a}=e;return(0,t.jsx)(i,{children:(0,t.jsx)("div",{className:"py-4 md:py-6 lg:py-10 px-1 sm:px-2 ".concat(a||""),children:s})})}},95271:(e,s,a)=>{"use strict";a.d(s,{j:()=>r});var t=a(80398);let i=[...t.env.DODAO_SUPERADMINS?t.env.DODAO_SUPERADMINS.split(","):[],"0x470579d16401a36BF63b1428eaA7189FBdE5Fee9","[email protected]","0xda878e846d2df54e10224e45587c302dedd02292"].map(e=>e.toLowerCase().trim()),r=e=>e.username&&i.includes(e.username.toLowerCase())},97379:(e,s,a)=>{"use strict";a.d(s,{K:()=>t});let t="dodao_user_id"},98530:(e,s,a)=>{Promise.resolve().then(a.bind(a,145)),Promise.resolve().then(a.bind(a,65882)),Promise.resolve().then(a.t.bind(a,58740,23)),Promise.resolve().then(a.t.bind(a,78969,23)),Promise.resolve().the
1n(a.t.bind(a,2949,23)),Promise.resolve().then(a.bind(a,40979)),Promise.resolve().then(a.bind(a,63421))}},e=>{e.O(0,[4006,7972,1634,4868,5328,3964,697,5200,7817,2774,4784,1257,7146,4118,2870,9001,1639,3105,5672,1872,1930,1560,15,9280,2593,7358],()=>e(e.s=98530)),_N_E=e.O()}]); 2//# sourceMappingURL=layout-0f830bef5b5c17e1.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.