1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[345],{3321:(e,s,t)=>{"use strict";var r=t(4645);t.o(r,"usePathname")&&t.d(s,{usePathname:function(){return r.usePathname}}),t.o(r,"useRouter")&&t.d(s,{useRouter:function(){return r.useRouter}}),t.o(r,"useSearchParams")&&t.d(s,{useSearchParams:function(){return r.useSearchParams}})},6477:(e,s,t)=>{Promise.resolve().then(t.bind(t,7145))},7145:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>l});var r=t(5155),a=t(3321),n=t(2115);function l(){let[e,s]=(0,n.useState)(null),t=(0,a.useRouter)(),l=(0,a.usePathname)().replace(/^\//,"");(0,n.useEffect)(()=>{if(!window.parent||window.parent===window)return;let e=t=>{"sandbox:sitemap"===t.data.type&&(window.removeEventListener("message",e),s(t.data.sitemap))};return window.parent.postMessage({type:"sandbox:sitemap"},"*"),window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[]);let i=(0,n.useCallback)(()=>{window.parent.postMessage({type:"sandbox:web:create",path:l,view:"web"},"*")},[l]);return(0,r.jsxs)("div",{className:"flex sm:w-full w-screen sm:min-w-[850px] flex-col",children:[(0,r.jsxs)("div",{className:"flex w-full items-center gap-2 p-5",children:[(0,r.jsx)("button",{type:"button",onClick:()=>t.push("/"),className:"flex items-center justify-center w-10 h-10 rounded-md",children:(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Back",role:"img",children:[(0,r.jsx)("path",{d:"M8.5957 2.65435L2.25005 9L8.5957 15.3457",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M2.25007 9L15.75 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,r.jsxs)("div",{className:"flex flex-row divide-x divide-gray-200 rounded-[8px] h-8 w-[300px] border border-gray-200 bg-gray-50 text-gray-500",children:[(0,r.jsx)("div",{className:"flex items-center px-[14px] py-[5px]",children:(0,r.jsx)("span",{children:"/"})}),(0,r.jsx)("div",{className:"flex items-center min-w-0",children:(0,r.jsx)("p",{className:"border-0 bg-transparent px-3 py-2 focus:outline-none truncate max-w-[300px]",style:{minWidth:0},title:l,children:l})})]})]}),(0,r.jsxs)("div",{className:"flex flex-grow flex-col items-center justify-center pt-[100px] text-center gap-[20px]",children:[(0,r.jsx)("h1",{className:"text-4xl font-medium text-gray-900 px-2",children:"Uh-oh! This page doesn't exist (yet)."}),(0,r.jsxs)("p",{className:"pt-4 pb-12 px-2 text-gray-500",children:['Looks like "',(0,r.jsxs)("span",{className:"font-bold",children:["/",l]}),"\" isn't part of your project. But no worries, you've got options!"]}),(0,r.jsx)("div",{className:"px-[20px] w-full",children:(0,r.jsxs)("div",{className:"flex flex-row justify-center items-center w-full max-w-[800px] mx-auto border border-gray-200 rounded-lg p-[20px] mb-[40px] gap-[20px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-[5px] items-start self-start w-1/2",children:[(0,r.jsx)("p",{className:"text-sm text-black text-left",children:"Build it from scratch"}),(0,r.jsxs)("p",{className:"text-sm text-gray-500 text-left",children:['Create a new page to live at "',(0,r.jsxs)("span",{children:["/",l]}),'"']})]}),(0,r.jsx)("div",{className:"flex flex-row items-center justify-end w-1/2",children:(0,r.jsx)("button",{type:"button",className:"bg-black text-white px-[10px] py-[5px] rounded-md",onClick:i,children:"Create Page"})})]})}),e?.webPages&&e.webPages.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"pb-20 lg:pb-[80px]",children:(0,r.jsx)("p",{className:"flex items-center text-gray-500",children:"Check out all your project's routes here â "})}),(0,r.jsx)("div",{className:"flex flex-col justify-center items-center w-full px-[50px]",children:(0,r.jsxs)("div",{className:"flex flex-col justify-between items-center w-full max-w-[600px] gap-[10px]",children:[(0,r.jsx)("p",{className:"text-sm text-gray-300 pb-[10px] self-start p-4",children:"PAGES"}),e.webPages.map(s=>(0,r.jsxs)("button",{type:"button",onClick:()=>{var r;return r=s.cleanRoute||"",void t.push(e?r:`/${r}`)},className:"flex flex-row justify-between text-center items-center p-4 rounded-lg bg-white shadow-sm w-full hover:bg-gray-50",children:[(0,r.jsx)("h3",{className:"font-medium text-gray-900",children:s.name}),(0,r.jsx)("p",{className:"text-sm text-gray-400",children:s.cleanRoute})]},s.id))]})})]})]})]})}}},e=>{e.O(0,[441,794,358],()=>e(e.s=6477)),_N_E=e.O()}]);
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.