@sinytra/wiki-previewer 0.1.113 → 0.1.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +40 -39
- package/.next/app-path-routes-manifest.json +2 -2
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +19 -19
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/page.js +1 -1
- package/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
- package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
- package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +2 -2
- package/.next/server/chunks/177.js +1 -1
- package/.next/server/chunks/2337.js +1 -0
- package/.next/server/chunks/2744.js +1 -1
- package/.next/server/chunks/4510.js +1 -0
- package/.next/server/chunks/{4471.js → 7707.js} +2 -2
- package/.next/server/chunks/{3999.js → 7781.js} +2 -2
- package/.next/server/middleware-manifest.json +10 -10
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/2124-df062eb31fe11c5d.js +1 -0
- package/.next/static/chunks/4425-96ba570f5d33c132.js +1 -0
- package/.next/static/chunks/595-54e3fd782ef53c18.js +1 -0
- package/.next/static/chunks/8616-5b19a69bdb5404cf.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-9ef33853f8158cdd.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-6ca2ad1ab7d721c3.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-7cae71bc802d1314.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-84fb2a34569578d4.js +1 -0
- package/.next/static/chunks/app/[locale]/{layout-607fb3570f758fcf.js → layout-15866ddd5dedf3b2.js} +1 -1
- package/.next/static/css/0cade3faa049b2e9.css +1 -0
- package/package.json +1 -1
- package/.next/server/chunks/3040.js +0 -1
- package/.next/static/chunks/1147-8ed692aeadda111f.js +0 -1
- package/.next/static/chunks/4536-b2658d4e93fb12b4.js +0 -1
- package/.next/static/chunks/4874-3e09f112ef80ea5d.js +0 -1
- package/.next/static/chunks/595-cf5d990ad2ea8d1a.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-f917d61dfe842550.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-e96ff6c62d9c7f0e.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-61b026af43fa6493.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-2d40733903300974.js +0 -1
- package/.next/static/css/292ace91b735b152.css +0 -1
- /package/.next/static/{InP_oo14OdOd9yLMgqv6u → pi-uZfzqwaSehEbQs-l2a}/_buildManifest.js +0 -0
- /package/.next/static/{InP_oo14OdOd9yLMgqv6u → pi-uZfzqwaSehEbQs-l2a}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7589],{18622:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var s=r(7893),n=r(95745),l=r(34882);let i=(0,r(28081).forwardRef)(function(e,t){let{prefetch:r=!1,...n}=e;return(0,s.jsx)(l.XO,{prefetch:r,...n,ref:t})});function o(e){let{href:t,children:r}=e,o=(0,l.a8)();return(0,s.jsx)(i,{href:t,className:(0,n.cn)("flex items-center rounded-md px-3 py-2 text-sm text-secondary hover:bg-secondary hover:text-primary-alt",o===t&&"bg-secondary text-primary-alt"),children:r})}},33951:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var s=r(7893),n=r(85466),l=r(28081),i=r(95745),o=r(34882),a=r(40491);function c(e){let{name:t,path:r,icon:c,level:d,children:h}=e,{folderStates:m,setFolderStates:u}=(0,l.useContext)(a.$),f=(0,o.a8)().split("/").slice(5).join("/"),x=f.length>0&&f.startsWith(r+"/"),v=(0,l.useRef)(!1),[p,b]=(0,l.useState)(!v.current&&x||m[d]===r);return(0,l.useEffect)(()=>{!v.current&&x&&(v.current=!0,u(e=>{let t={...e,[d]:r};return Object.keys(t).filter(e=>Number(e)>d&&!f.startsWith(t[e])).forEach(e=>delete t[e]),t}))},[]),(0,l.useEffect)(()=>{b(m[d]===r)},[m]),(0,s.jsxs)("div",{className:(0,i.cn)("accordion flex flex-col",p&&"open"),children:[(0,s.jsxs)("button",{onClick:function(){u(e=>{let t={...e,[d]:p?void 0:r};return p&&Object.keys(t).filter(e=>Number(e)>d).forEach(e=>delete t[e]),t})},"data-state":p?"open":"closed",className:(0,i.cn)("flex items-center rounded-md px-3 py-2 text-sm text-secondary hover:bg-secondary","hover:text-primary-alt [&[data-state=open]>svg:last-child]:rotate-180"),children:[c,t,(0,s.jsx)(n.A,{className:"ml-auto h-4 w-4 shrink-0 transition-transform duration-200"})]}),(0,s.jsx)("div",{className:"accordion-body",style:{paddingLeft:"".concat(d,"rem")},children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"mt-2 flex flex-col gap-2",children:h})})})]})}},40491:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,default:()=>i});var s=r(7893),n=r(28081);let l=(0,n.createContext)(null);function i(e){let{children:t}=e,[r,i]=(0,n.useState)(!1),[o,a]=(0,n.useState)({}),[c,d]=(0,n.useState)(0);return(0,s.jsx)(l.Provider,{value:{open:r,setOpen:i,folderStates:o,setFolderStates:a,scrollPos:c,setScrollPos:d},children:t})}},41752:(e,t,r)=>{Promise.resolve().then(r.bind(r,1273)),Promise.resolve().then(r.bind(r,73744)),Promise.resolve().then(r.bind(r,57370)),Promise.resolve().then(r.bind(r,55605)),Promise.resolve().then(r.bind(r,8511)),Promise.resolve().then(r.t.bind(r,19957,23)),Promise.resolve().then(r.t.bind(r,63914,23)),Promise.resolve().then(r.bind(r,83457)),Promise.resolve().then(r.bind(r,33951)),Promise.resolve().then(r.bind(r,66495)),Promise.resolve().then(r.bind(r,68308)),Promise.resolve().then(r.bind(r,72103)),Promise.resolve().then(r.bind(r,18526)),Promise.resolve().then(r.bind(r,80123)),Promise.resolve().then(r.bind(r,28663)),Promise.resolve().then(r.bind(r,44064)),Promise.resolve().then(r.bind(r,78890)),Promise.resolve().then(r.bind(r,92014)),Promise.resolve().then(r.bind(r,65066)),Promise.resolve().then(r.bind(r,57850)),Promise.resolve().then(r.bind(r,24989)),Promise.resolve().then(r.bind(r,93656)),Promise.resolve().then(r.bind(r,18622)),Promise.resolve().then(r.bind(r,41736)),Promise.resolve().then(r.bind(r,55242)),Promise.resolve().then(r.bind(r,28139)),Promise.resolve().then(r.bind(r,39389)),Promise.resolve().then(r.bind(r,20826)),Promise.resolve().then(r.bind(r,96090))},45478:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(26182).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},57850:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(7893),n=r(28081),l=r(41574),i=r(40491),o=r(21559);function a(e){let{scrollPos:t,setScrollPos:r}=(0,n.useContext)(i.$),a=(0,n.useRef)(null),c=(0,l.usePathname)();return(0,n.useEffect)(()=>{let e=()=>{a.current&&r(a.current.scrollTop)},t=a.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}},[]),(0,n.useEffect)(()=>{a.current&&(a.current.scrollTop=t)},[c]),(0,s.jsx)(o.default,{...e,ref:a})}},60285:(e,t,r)=>{"use strict";function s(e,t){if(null==t)throw Error("Missing environment variable ".concat(e));return t}function n(e,t){let r=new URLSearchParams;if(e){for(let s in e)if(null!=e[s]){let n=t?t(s,e[s]):e[s];n&&r.set(s,n)}}return r.toString()}r.d(t,{cT:()=>n,no:()=>s}),r(16298)},65066:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(7893),n=r(76365);function l(e){let{headings:t}=e;return(0,s.jsx)(n.A,{headings:t,type:"right",className:"right-0 w-[96vw] sm:w-64"})}},66495:(e,t,r)=>{"use strict";r.d(t,{default:()=>p});var s=r(7893);r(28081);var n=r(35865),l=r(20826),i=r(82601),o=r(26182);let a=(0,o.A)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]);var c=r(95745),d=r(60285),h=r(37040);function m(e){var t;let{local:r,type:o,project:m,path:u,preview:f,full:x}=e,v=(0,n.c)("PageEditControls"),p=function(e,t,r){let s=(0,d.cT)({project:e,type:t,path:r});return"/report?".concat(s)}(m,o,null!=(t=null==u?void 0:u.join("/"))?t:null),b=(0,s.jsx)(i.$,{asChild:!0,variant:"outline",size:"sm",className:"font-normal text-secondary hover:bg-transparent sm:h-fit sm:border-none sm:p-0",children:(0,s.jsxs)(h.k,{href:p,children:[(0,s.jsx)(a,{className:(0,c.cn)("mr-2 h-4 w-4",!x&&"sm:mr-0")}),(0,s.jsx)("span",{className:(0,c.cn)(!x&&"sm:hidden"),children:v("report_button")})]})});return!f&&!r&&m&&u&&(x?b:(0,s.jsx)(l.TooltipProvider,{children:(0,s.jsxs)(l.Tooltip,{children:[(0,s.jsx)(l.TooltipTrigger,{asChild:!0,children:b}),(0,s.jsx)(l.TooltipContent,{children:v("report")})]})}))}let u=(0,o.A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);function f(e){let{editUrl:t}=e,r=(0,n.c)("PageEditControls");return t&&(0,s.jsxs)(h.k,{href:t,className:"flex items-center rounded-md border border-quaternary px-3 py-2 text-sm text-secondary hover:text-primary-alt sm:border-none sm:p-0",children:[(0,s.jsx)(u,{className:"mr-2 h-4 w-4"}),r("edit_gh")]})}function x(e){let{slug:t,path:r,editUrl:n,local:l,preview:i}=e;return(0,s.jsxs)("div",{className:"flex w-full flex-row justify-between sm:max-w-5xl",children:[(0,s.jsx)("div",{className:"hidden flex-row flex-nowrap items-center justify-start gap-4 sm:flex",children:(0,s.jsx)(m,{type:"docs",local:l,project:t,path:r,preview:i})}),(0,s.jsx)("div",{className:"hidden flex-row flex-nowrap items-center justify-start gap-4 sm:flex",children:(0,s.jsx)("div",{className:"flex flex-col items-end gap-y-3 sm:flex-row sm:items-center sm:gap-x-4 sm:gap-y-0",children:(0,s.jsx)(f,{editUrl:n})})})]})}function v(e){let{local:t,slug:r,path:n,editUrl:l,preview:i}=e;return(0,s.jsx)("div",{className:"flex flex-col gap-3 sm:hidden",children:(0,s.jsxs)("div",{className:"flex flex-row flex-wrap justify-between gap-2",children:[(0,s.jsx)(m,{type:"docs",local:t,project:r,path:n,preview:i}),(0,s.jsx)(f,{editUrl:l})]})})}function p(e){return(0,s.jsxs)("footer",{className:"relative flex w-full shrink-0 flex-col-reverse justify-between gap-y-3 border-t border-border bg-primary px-1 py-3 text-sm text-secondary sm:h-16 sm:flex-row sm:items-center sm:justify-center sm:gap-y-0 sm:px-4",children:[(0,s.jsx)(x,{...e}),(0,s.jsx)(v,{...e})]})}},68308:(e,t,r)=>{"use strict";r.d(t,{default:()=>h});var s=r(7893),n=r(28081),l=r(45585),i=r(45478),o=r(26182);let a=(0,o.A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),c=(0,o.A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var d=r(95745);function h(e){let{showRightSidebar:t,children:r}=e,{open:o,setOpen:h}=(0,n.useContext)(l.p);return(0,s.jsxs)("header",{className:"flex w-full items-center justify-between border-b border-tertiary px-0 pt-1 pb-2 lg:hidden",children:[(0,s.jsx)("button",{onClick:()=>h("left"==o?"none":"left"),className:"text-primary",children:"left"===o?(0,s.jsx)(i.A,{className:"h-6 w-6"}):(0,s.jsx)(a,{className:"h-6 w-6"})}),(0,s.jsx)("h1",{className:"text-lg font-bold",children:r}),(0,s.jsx)("button",{onClick:()=>h("right"==o?"none":"right"),className:(0,d.cn)("text-primary",!1===t&&"invisible"),children:"right"===o?(0,s.jsx)(i.A,{className:"h-6 w-6"}):(0,s.jsx)(c,{className:"h-6 w-6"})})]})}}},e=>{e.O(0,[7138,5369,9957,739,4193,2709,5383,3386,103,8616,7411,9029,7358],()=>e(e.s=41752)),_N_E=e.O()}]);
|
package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-84fb2a34569578d4.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[622],{5903:(e,s,t)=>{"use strict";t.d(s,{default:()=>l});var r=t(28081),a=t(71678);function l(e){let{project:s,children:t}=e,{setProject:l}=(0,r.useContext)(a.o);return(0,r.useEffect)(()=>(l(s),()=>l(null)),[]),t}},34882:(e,s,t)=>{"use strict";t.d(s,{XO:()=>i,a8:()=>d});var r=t(85151),a=t(37588),l=t(3192);let n=(0,r.A)({locales:l.Ay.getInternalCodes(),defaultLocale:l.nQ,localePrefix:{mode:"always",prefixes:l.Ay.getPathPrefixes()}}),{Link:i,redirect:o,usePathname:d,useRouter:c}=(0,a.A)(n)},40491:(e,s,t)=>{"use strict";t.d(s,{$:()=>l,default:()=>n});var r=t(7893),a=t(28081);let l=(0,a.createContext)(null);function n(e){let{children:s}=e,[t,n]=(0,a.useState)(!1),[i,o]=(0,a.useState)({}),[d,c]=(0,a.useState)(0);return(0,r.jsx)(l.Provider,{value:{open:t,setOpen:n,folderStates:i,setFolderStates:o,scrollPos:d,setScrollPos:c},children:s})}},45585:(e,s,t)=>{"use strict";t.d(s,{default:()=>i,p:()=>n});var r=t(7893),a=t(28081),l=t(34882);let n=(0,a.createContext)(null);function i(e){let{children:s}=e,t=(0,l.a8)(),[i,o]=(0,a.useState)("none");return(0,a.useEffect)(()=>{"none"===i?window.document.body.classList.remove("no-scroll"):window.document.body.classList.add("no-scroll")},[i]),(0,a.useEffect)(()=>{o("none")},[t]),(0,r.jsx)(n.Provider,{value:{open:i,setOpen:o},children:s})}},76836:(e,s,t)=>{Promise.resolve().then(t.bind(t,1273)),Promise.resolve().then(t.bind(t,73744)),Promise.resolve().then(t.bind(t,57370)),Promise.resolve().then(t.bind(t,55605)),Promise.resolve().then(t.bind(t,8511)),Promise.resolve().then(t.t.bind(t,19957,23)),Promise.resolve().then(t.t.bind(t,63914,23)),Promise.resolve().then(t.bind(t,83457)),Promise.resolve().then(t.bind(t,95301)),Promise.resolve().then(t.bind(t,72103)),Promise.resolve().then(t.bind(t,18526)),Promise.resolve().then(t.bind(t,80123)),Promise.resolve().then(t.bind(t,28663)),Promise.resolve().then(t.bind(t,44064)),Promise.resolve().then(t.bind(t,78890)),Promise.resolve().then(t.bind(t,92014)),Promise.resolve().then(t.bind(t,45585)),Promise.resolve().then(t.bind(t,40491)),Promise.resolve().then(t.bind(t,5903)),Promise.resolve().then(t.bind(t,41736)),Promise.resolve().then(t.bind(t,55242)),Promise.resolve().then(t.bind(t,28139)),Promise.resolve().then(t.bind(t,39389)),Promise.resolve().then(t.bind(t,96090))},95301:(e,s,t)=>{"use strict";t.d(s,{default:()=>D});var r=t(7893),a=t(82601),l=t(74994),n=t(24194),i=t(59333),o=t(34882),d=t(95745),c=t(41574),m=t(48902),h=t(28081),x=t(97461),u=t(85466),f=t(13621),p=t(1990);let j=x.bL;x.YJ;let v=h.forwardRef((e,s)=>{let{placeholder:t,children:a,...l}=e;return(0,r.jsx)(x.WT,{ref:s,placeholder:(0,r.jsx)("span",{className:"text-secondary",children:t}),...l,children:a})});v.displayName=x.WT.displayName;let b=h.forwardRef((e,s)=>{let{className:t,children:a,...l}=e;return(0,r.jsxs)(x.l9,{ref:s,className:(0,d.cn)("border-quaternary bg-primary-dim flex h-10 w-full items-center justify-between rounded-sm border px-3 py-2 text-left text-sm ring-offset-background placeholder:text-secondary focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...l,children:[a,(0,r.jsx)(x.In,{asChild:!0,children:(0,r.jsx)(u.A,{className:"h-4 w-4 opacity-50"})})]})});b.displayName=x.l9.displayName;let y=h.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(x.PP,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,r.jsx)(f.A,{className:"h-4 w-4"})})});y.displayName=x.PP.displayName;let w=h.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(x.wn,{ref:s,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,r.jsx)(u.A,{className:"h-4 w-4"})})});w.displayName=x.wn.displayName;let N=h.forwardRef((e,s)=>{let{className:t,children:a,position:l="popper",...n}=e;return(0,r.jsx)(x.ZL,{children:(0,r.jsxs)(x.UC,{ref:s,className:(0,d.cn)("border-tertiary bg-primary-alt text-primary-alt relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...n,children:[(0,r.jsx)(y,{}),(0,r.jsx)(x.LM,{className:(0,d.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,r.jsx)(w,{})]})})});N.displayName=x.UC.displayName,h.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(x.JU,{ref:s,className:(0,d.cn)("py-1.5 pr-2 pl-8 text-sm font-semibold",t),...a})}).displayName=x.JU.displayName;let g=h.forwardRef((e,s)=>{let{className:t,children:a,...l}=e;return(0,r.jsxs)(x.q7,{ref:s,className:(0,d.cn)("focus:text-primary-alt relative flex w-full cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-secondary data-disabled:pointer-events-none data-disabled:opacity-50",t),...l,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(x.VF,{children:(0,r.jsx)(p.A,{className:"h-4 w-4"})})}),(0,r.jsx)(x.p4,{children:a})]})});g.displayName=x.q7.displayName,h.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,r.jsx)(x.wv,{ref:s,className:(0,d.cn)("bg-primary-alt -mx-1 my-1 h-px",t),...a})}).displayName=x.wv.displayName;var P=t(27018),A=t(37613);function C(e){let{value:s,defaultValue:t,children:a}=e,l=(0,A.rd)(),n=(0,c.usePathname)();return(0,r.jsx)(j,{value:s,defaultValue:t,onValueChange:e=>{let s=n.split("/");s[4]=e,l.replace("/"+s.filter(e=>e.length>0).join("/"))},children:a})}var k=t(35865);function L(e){let{version:s,versions:t}=e,a=(0,k.c)("DocsVersionSelector");return(0,r.jsxs)(C,{value:s,defaultValue:m.j4,children:[(0,r.jsxs)(b,{className:"h-8 w-full justify-start rounded-sm border-none bg-transparent py-0 whitespace-nowrap hover:bg-secondary sm:h-7 sm:w-fit sm:max-w-32 sm:min-w-24 [&>span]:mr-auto [&>span]:block [&>span]:text-sm [&>span]:text-ellipsis [&>span]:sm:mr-0 [&>svg:last-child]:hidden",children:[(0,r.jsx)(P.A,{className:"mr-auto size-3.5 shrink-0 sm:mr-2.5"}),(0,r.jsx)(v,{placeholder:a("placeholder")})]}),(0,r.jsxs)(N,{children:[(0,r.jsx)(g,{value:m.j4,className:"py-1 [&>span]:text-sm",children:a("latest")}),t.map(e=>(0,r.jsx)(g,{value:e,className:"py-1 [&>span]:text-sm",children:e},e))]})]})}var _=t(28243),R=t(71422),z=t(67321);function E(e){let{children:s}=e,[t,a]=(0,h.useState)(!1),l=(0,c.usePathname)();return(0,h.useEffect)(()=>{a(!1)},[l]),(0,r.jsxs)("div",{className:"pointer-events-auto! sm:hidden",children:[(0,r.jsx)(R.A,{active:t,setOpen:a}),(0,r.jsx)(z.A,{className:"top-nav-height-ext bg-primary-dim",isVisible:t,children:s})]})}var S=t(87257);function V(e){let{title:s,icon:t,path:l,disabled:n}=e,i=(0,o.a8)(),m=(0,c.useParams)(),h=i.split("/"),x=4==h.length&&0==l.length||h.length>=5&&h[4]==l;return(0,r.jsx)(o.XO,{href:"/project/".concat(m.slug,"/").concat(m.version,"/").concat(l),className:(0,d.cn)("w-full sm:w-fit",n&&"pointer-events-none"),children:(0,r.jsxs)(a.$,{variant:"ghost",size:"sm",className:(0,d.cn)("h-8! w-full rounded-sm px-2! sm:h-7! sm:w-fit",x&&"bg-secondary"),disabled:n,children:[(0,r.jsx)(t,{className:"mr-auto h-4 w-4 sm:mr-2"}),(0,r.jsx)("span",{className:"mr-auto text-sm sm:mr-0",children:s})]})})}function O(e){let{project:s,platformProject:t}=e;return(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2 overflow-hidden",children:[(0,r.jsx)(S.default,{src:t.icon_url,alt:"Logo",className:"h-6 rounded-sm",width:24,height:24}),(0,r.jsx)("span",{className:"overflow-hidden text-base font-medium text-ellipsis whitespace-nowrap text-primary",children:s.name})]})}function q(e){let{project:s,platformProject:t}=e;return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2 overflow-hidden",children:[(0,r.jsx)("img",{src:t.icon_url,alt:"Logo",className:"mb-2 size-12 rounded-sm"}),(0,r.jsx)("span",{className:"overflow-hidden text-base font-medium text-ellipsis whitespace-nowrap text-primary",children:s.name}),(0,r.jsx)("blockquote",{className:"line-clamp-2 text-sm text-secondary",children:t.summary})]})}function U(e){let{project:s,locale:t,version:a}=e,o=s.versions&&s.versions.length>0,d=s.locales&&s.locales.length>0;return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:gap-2",children:[(0,r.jsx)(V,{title:"Home",icon:l.A,path:""}),(0,r.jsx)(V,{title:"Documentation",icon:n.A,path:"docs"}),s.info.content_count>0&&(0,r.jsx)(V,{title:"Content",icon:i.A,path:"content"}),(o||d)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"verticalSeparator hidden! sm:inline-flex!"}),(0,r.jsx)("hr",{className:"w-full border-tertiary sm:hidden"})]}),o&&(0,r.jsx)(L,{version:a,versions:s.versions}),d&&(0,r.jsx)(_.default,{locale:t,shownLocaleCodes:s.locales,minimal:!0})]})}function J(e){let{project:s,platformProject:t,locale:a,version:l}=e;return(0,r.jsx)("div",{className:"fixed left-0 z-40 w-full border-y border-tertiary border-t-tertiary-dim bg-primary-dim",children:(0,r.jsxs)("div",{className:"mx-auto flex w-full max-w-[120rem] flex-row items-center justify-between px-4 py-2 sm:py-1.5",children:[(0,r.jsx)(O,{project:s,platformProject:t}),(0,r.jsx)("div",{className:"hidden sm:block",children:(0,r.jsx)(U,{project:s,locale:a,version:l})}),(0,r.jsx)(E,{children:(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,r.jsx)(q,{project:s,platformProject:t}),(0,r.jsx)(U,{project:s,locale:a,version:l})]})})]})})}function D(e){let{project:s,platformProject:t,locale:a,version:l,children:n}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"h-subnav",children:(0,r.jsx)(J,{project:s,platformProject:t,locale:a,version:l})}),(0,r.jsx)("div",{className:"flex flex-1 flex-col items-center bg-primary text-primary",children:n})]})}}},e=>{e.O(0,[7138,5369,9957,739,4193,2709,5383,7671,4425,2124,103,595,7411,9029,7358],()=>e(e.s=76836)),_N_E=e.O()}]);
|
package/.next/static/chunks/app/[locale]/{layout-607fb3570f758fcf.js → layout-15866ddd5dedf3b2.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{2938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,o:()=>s});let s="minecraft";function n(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}let a={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:n,extractPath:function(e){var t,r;return null!=(r=null==(t=n(e))?void 0:t.path)?r:e}}},7208:(e,t,r)=>{"use strict";r.d(t,{AM:()=>l,Wv:()=>i,hl:()=>c});var s=r(7893),n=r(28081),a=r(63082),o=r(95745);let l=a.bL,i=a.l9,c=n.forwardRef((e,t)=>{let{className:r,align:n="center",sideOffset:l=4,...i}=e;return(0,s.jsx)(a.ZL,{children:(0,s.jsx)(a.UC,{ref:t,align:n,sideOffset:l,className:(0,o.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 w-72 rounded-sm border p-4 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",r),...i})})});c.displayName=a.UC.displayName},16715:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(7893),n=r(8295);r(28081);var a=r(95745);let o=(0,n.F)("inline-flex items-center rounded-sm border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{project:"border-info bg-secondary text-secondary-alt hover:bg-secondary/80",documentation:"border-secondary-alt bg-secondary text-secondary-alt hover:bg-secondary/80",content:"border-warning bg-secondary text-secondary-alt hover:bg-secondary/80"}}});function l(e){let{className:t,variant:r,...n}=e;return(0,s.jsx)("div",{className:(0,a.cn)(o({variant:r}),t),...n})}},17715:()=>{},17784:()=>{},17789:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(7893);function n(e){let{width:t,height:r,className:n}=e;return(0,s.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:r,className:n,children:[(0,s.jsx)("title",{children:"GitHub"}),(0,s.jsx)("path",{fill:"currentColor",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}},20249:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(7893),n=r(28081),a=r(86373),o=r(35865);function l(){let e=(0,o.c)("ManageCookiesButton"),t=(0,n.useContext)(a.ww);return t&&t.enableCookieManagement?(0,s.jsx)("button",{type:"button","data-cc":"show-preferencesModal",className:"text-sm",children:e("text")}):null}},25782:(e,t,r)=>{Promise.resolve().then(r.bind(r,57370)),Promise.resolve().then(r.bind(r,55605)),Promise.resolve().then(r.bind(r,8511)),Promise.resolve().then(r.t.bind(r,19957,23)),Promise.resolve().then(r.bind(r,86373)),Promise.resolve().then(r.bind(r,20249)),Promise.resolve().then(r.bind(r,60784)),Promise.resolve().then(r.bind(r,73517)),Promise.resolve().then(r.t.bind(r,65028,23)),Promise.resolve().then(r.bind(r,28243)),Promise.resolve().then(r.bind(r,52643)),Promise.resolve().then(r.bind(r,92434)),Promise.resolve().then(r.bind(r,71678)),Promise.resolve().then(r.bind(r,58453)),Promise.resolve().then(r.bind(r,62598))},27849:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var s=r(54703),n=r(52800),a=r(95054),o=r(48902),l=r(2938),i=r(59871),c=r(60285),d=r(16298);let u={getBackendEndpointUrl:function(){let e=d.env.NEXT_PUBLIC_BACKEND_SERVICE_URL;return(0,c.no)("NEXT_PUBLIC_BACKEND_SERVICE_URL",e)},getBuiltinAssetSource:function(){return"https://r2.sinytra.org/"},getAssetsBaseURL:function(){var e;return null!=(e=d.env.NEXT_PUBLIC_ASSETS_BASE_URL)?e:null}},f={getAssetResource:function(e){var t;let r=null!=(t=u.getAssetsBaseURL())?t:u.getBuiltinAssetSource();if(!r)return null;let s=new URL(r);s.pathname+="/.assets/"+e.namespace+"/"+e.path+(e.path.includes(".")?"":".png");let n=(0,i.A)(s.toString());return null===n?null:{id:l.A.toString(e),src:n}}};var h=r(3192);function p(e,t){return"locale"==e?h.Ay.actualLocale(t):"version"==e?function(e){return e==o.j4?null:e}(t):t}let m={constructAssetsUrl:function(e,t){var r;let s=null!=(r=u.getAssetsBaseURL())?r:u.getBackendEndpointUrl(),n=(0,c.cT)(t,p);return"".concat(s,"/api/v1/").concat(e,"?").concat(n)}},x={getRemoteAsset:function(e,t){let r=l.A.parse(e);if(!r)return null;let s=function(e,t,r){if(!r||t.namespace===l.o){let t=e.includes("/")?e:function(e){let t=l.A.parse(e);return t?l.A.toString({namespace:t.namespace,path:"item/"+t.path}):e}(e),r=l.A.parse(t);return r?f.getAssetResource(r):null}return null}(e,r,t);return null!=s?s:function(e,t){let{id:r,version:s}=t,n=m.constructAssetsUrl("docs/".concat(r,"/asset/").concat(e),{version:s});return{id:e,src:n}}(e,t)}};var v=r(16298);async function y(e,t,r){var n;let l=v.env.NEXT_PUBLIC_SEARCH_ENDPOINT,i=v.env.NEXT_PUBLIC_SEARCH_COLLECTION,c=v.env.NEXT_PUBLIC_SEARCH_API_KEY;if(!l||!i||!c)return{total:0,hits:[]};let d=new s._t({nodes:[{url:l}],apiKey:c,connectionTimeoutSeconds:2,timeoutSeconds:5,numRetries:3,retryIntervalSeconds:1,cacheSearchResultsForSeconds:120}),u=await g(d,i,{q:e,query_by:"title,item_ids,project_id,project_name,page_ref",filter_by:r?"project_id:=".concat(r):void 0,per_page:8,page:1});if(!u||0===u.found||!(null==(n=u.hits)?void 0:n.length))return null;let f=u.hits.map(e=>{var r,s;let n=e.document,l=(r=n,s=t,"project"===r.entry_type?(0,a.gZ)(s,r.project_id):"documentation"===r.entry_type?(0,a.M$)(r.page_ref,{id:r.project_id,locale:s,version:o.j4}):"content"===r.entry_type?(0,a.sw)(r.page_ref,{locale:s,version:o.j4,id:r.project_id}):(console.error("Unknown search result",r),"")),i=function(e,t){if("project"===e.entry_type&&null!=e.project_icon_url)return{src:e.project_icon_url,id:e.project_id};if(null==e.icon)return null;let r={id:e.project_id,locale:t,version:o.j4};return x.getRemoteAsset(e.icon,r)}(n,t);return{...n,href:l,icon_asset:i}});return{total:u.found,hits:f}}async function g(e,t,r){try{return await e.collections(t).documents().search(r,{})}catch(e){if(e instanceof n.RequestMalformed)console.error("Bad search params:",e.httpBody);else if(e instanceof n.RequestUnauthorized)console.error("Auth failed — check apiKey");else if(e instanceof n.ObjectNotFound)console.error("Collection does not exist");else if(e instanceof n.ServerError)console.error("Typesense server error",e.httpStatus);else if(e instanceof n.TypesenseError)console.error("Typesense error",e.httpStatus,e.httpBody);else throw e;return null}}let b={searchWiki:async function e(e,t,r){try{let s=await y(e,t,r);if(null!=s)return s}catch(e){console.error("Error running search",e)}return{total:0,hits:[]}}}},37040:(e,t,r)=>{"use strict";r.d(t,{k:()=>l});var s=r(7893),n=r(28081),a=r(19957),o=r.n(a);let l=(0,n.forwardRef)(function(e,t){let{prefetch:r=!1,...n}=e;return(0,s.jsx)(o(),{prefetch:r,...n,ref:t})})},52643:(e,t,r)=>{"use strict";r.d(t,{default:()=>N});var s=r(7893),n=r(47570),a=r(28081),o=r(87257),l=r(90648),i=r(43160),c=r(74994),d=r(72053),u=r(3072),f=r(41574),h=r(95745),p=r(35865),m=r(37040),x=r(27849),v=r(71678),y=r(16715);function g(e){var t;let{result:r}=e,n=(0,p.c)("ProjectTypes"),a=(0,p.c)("SearchResultType");return(0,s.jsxs)(m.k,{href:r.href,className:(0,h.cn)("z-50 flex cursor-pointer flex-row gap-2 bg-primary-alt px-1 py-1.5 text-primary","first:rounded-t-sm last:rounded-b-sm hover:bg-tertiary"),children:[(0,s.jsx)("div",{className:"size-[48px] shrink-0 overflow-hidden rounded-xs p-1",children:(0,s.jsx)(o.default,{src:null==(t=r.icon_asset)?void 0:t.src,width:48,height:48,alt:r.project_id,fbIcon:l.A,fixedSize:!0})}),(0,s.jsxs)("div",{className:"flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden [&_span]:text-ellipsis",children:[(0,s.jsx)("span",{children:r.title}),"project"==r.entry_type?(0,s.jsx)("span",{className:"text-secondary",children:n(r.project_type)}):(0,s.jsx)("div",{className:"flex flex-row gap-2",children:(0,s.jsx)("span",{className:"text-secondary",children:r.project_name})})]}),(0,s.jsx)("div",{className:"mx-1",children:(0,s.jsx)(y.A,{variant:r.entry_type,children:a(r.entry_type)})})]})}function b(){let e=(0,p.c)("DocsSearchBar");return(0,s.jsx)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary first:rounded-t-sm last:rounded-b-sm",children:e("no_results")})}function j(){let e=(0,p.c)("DocsSearchBar");return(0,s.jsxs)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary first:rounded-t-sm last:rounded-b-sm",children:[(0,s.jsx)(i.A,{className:"mr-2 h-5 w-5 animate-spin"}),e("loading")]})}function w(e){let{canChangeScope:t,visible:r,total:n}=e,a=(0,p.c)("DocsSearchBar");return(0,s.jsxs)("div",{className:(0,h.cn)("flex w-full flex-row items-center justify-between bg-primary-alt p-2 text-secondary",r>0?"rounded-b-sm":"rounded-sm"),children:[(0,s.jsx)("div",{className:"text-sm font-light",children:a.rich("results",{highlight:e=>(0,s.jsx)("span",{className:"font-normal",children:e}),count:r,total:n})}),(0,s.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t&&(0,s.jsx)("span",{className:"text-sm",children:a.rich("switch",{kbd:e=>(0,s.jsx)("kbd",{children:e})})}),(0,s.jsx)("span",{className:"text-sm",children:a.rich("close",{kbd:e=>(0,s.jsx)("kbd",{children:e})})})]})]})}function N(e){var t,r,o;let{locale:l}=e,i=(0,p.c)("DocsSearchBar"),[m,y]=(0,a.useState)(""),[N,_]=(0,a.useState)(null),[S,A]=(0,a.useState)(!1),{project:E}=(0,a.useContext)(v.o),[C,k]=(0,a.useState)(null!=E),B=(0,n.YQ)(async e=>{let t=!0;setTimeout(()=>{m&&t&&A(!0)},500),_(await x.A.searchWiki(e,l,C&&E?E.id:null)),t=!1,A(!1)},200),[L,P]=(0,a.useState)(!1);(0,a.useEffect)(()=>{k(null!=E)},[E]),(0,a.useEffect)(()=>{m.length>0&&B(m),B.flush()},[C]);let R=(0,a.useRef)(null),T=(0,f.usePathname)();(0,a.useEffect)(()=>{var e;null==(e=R.current)||e.blur()},[T]);let[z,U]=(0,a.useState)(!0),I=()=>{"visible"===document.visibilityState?setTimeout(()=>U(!0),500):U(!1)};(0,a.useLayoutEffect)(()=>(document.addEventListener("visibilitychange",I),()=>document.removeEventListener("visibilitychange",I)),[]);let M=C?c.A:d.A;return(0,s.jsxs)("div",{className:(0,h.cn)("relative mx-2 hidden w-full transition-none duration-200 ease-[cubic-bezier(.27,.17,.43,.98)]",z&&"md:focus-within:transition-[max-width] lg:transition-[max-width]","md:flex md:max-w-sm md:focus-within:fixed md:focus-within:left-1/2 md:focus-within:max-w-lg md:focus-within:-translate-x-1/2 md:focus-within:shadow-lg","lg:max-w-[40rem] lg:focus-within:static lg:focus-within:flex lg:focus-within:max-w-2xl lg:focus-within:translate-x-0"),children:[(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)(u.A,{className:"inset absolute top-1/2 left-2 h-4 w-4 -translate-y-1/2 text-neutral-500"}),E&&L&&(0,s.jsxs)("div",{className:(0,h.cn)("inset absolute top-1/2 left-8 -translate-y-1/2 rounded-sm","flex flex-row items-center gap-1","border border-secondary bg-secondary px-1 py-[1.5px]"),children:[(0,s.jsx)(M,{className:"size-3.5 stroke-2 text-primary"}),(0,s.jsx)("span",{className:"text-xs",children:i("scope.".concat(C?"local":"global"))})]}),(0,s.jsx)("input",{type:"text",value:m,ref:R,className:(0,h.cn)("w-full cursor-pointer rounded-sm border border-secondary bg-primary-alt px-8 py-[0.2rem]","text-center text-sm text-ellipsis placeholder:text-neutral-500","focus:cursor-text focus:border-secondary-alt focus:shadow-md focus:outline-none"),onChange:e=>(e=>{if(y(e),!e||0===e.length){_(null),A(!1);return}return B(e)})(e.target.value),placeholder:i("placeholder"),onFocus:()=>{P(!0),_(null),document.querySelectorAll("html, body").forEach(e=>e.classList.add("scrollLock"))},onBlur:()=>{P(!1),A(!1),y(""),document.querySelectorAll("html, body").forEach(e=>e.classList.remove("scrollLock"))},onKeyDown:e=>{null!=E&&"Tab"===e.key&&(e.preventDefault(),k(!C)),"Escape"===e.key&&e.target.blur()}})]}),L&&(0,s.jsxs)("div",{onMouseDown:e=>e.preventDefault(),className:(0,h.cn)("absolute top-8 flex w-full flex-col divide-y divide-tertiary rounded-sm border","border-secondary bg-primary-alt shadow-lg"),children:[S&&(0,s.jsx)(j,{}),!S&&N&&N.hits.map(e=>(0,s.jsx)(g,{result:e},e.id)),!S&&N&&0===N.hits.length&&(0,s.jsx)(b,{}),(0,s.jsx)(w,{canChangeScope:null!=E,visible:null!=(r=null==N||null==(t=N.hits)?void 0:t.length)?r:0,total:null!=(o=null==N?void 0:N.total)?o:0})]})]})}},58453:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var s=r(7893),n=r(99302),a=r(95745),o=r(82601),l=r(17789);function i(e){let{width:t,height:r,className:n}=e;return(0,s.jsx)("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:t||24,height:r||24,className:n,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"currentColor",d:"M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"})})}function c(e){let{enableSharing:t,shareData:r,large:a}=e,c="undefined"!=typeof navigator&&"function"==typeof navigator.share,u=a?"h-5 w-5":"h-4 w-4 sm:h-5 sm:w-5";return(0,s.jsxs)("div",{className:"flex flex-wrap gap-2 sm:gap-4",children:[(0,s.jsx)(d,{href:"https://github.com/Sinytra",large:a,icon:(0,s.jsx)(l.A,{className:u})}),(0,s.jsx)(d,{href:"https://discord.sinytra.org",large:a,icon:(0,s.jsx)(i,{className:u})}),t&&c&&(0,s.jsxs)(o.$,{onClick:()=>{navigator.share?navigator.share(r).catch(e=>{console.error("Error sharing:",e)}):alert("Sharing is not supported on this browser.")},size:"sm",className:"flex h-8 w-8 items-center justify-center gap-2 sm:h-10 sm:w-auto sm:justify-start sm:px-4",children:[(0,s.jsx)(n.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Share"})]})]})}function d(e){let{href:t,icon:r,large:n,className:l}=e;return(0,s.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)(o.$,{variant:"outline",size:"icon",className:(0,a.cn)(l,n?"h-10 w-10":"h-8 w-8 sm:h-10 sm:w-10"),children:r})})}},60285:(e,t,r)=>{"use strict";function s(e,t){if(null==t)throw Error("Missing environment variable ".concat(e));return t}function n(e,t){let r=new URLSearchParams;if(e){for(let s in e)if(null!=e[s]){let n=t?t(s,e[s]):e[s];n&&r.set(s,n)}}return r.toString()}r.d(t,{cT:()=>n,no:()=>s}),r(16298)},60784:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var s=r(7893),n=r(28081),a=r(95745);function o(e){let{unfix:t,children:r}=e,o=(0,n.useRef)(null),[l,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>{i(window.scrollY>0)};return document.addEventListener("scroll",e),()=>document.removeEventListener("scroll",e)},[l]),(0,s.jsx)("header",{className:(0,a.cn)(!t&&"fixed left-0 w-[100vw]","z-50 border-b border-tertiary bg-primary-alt",!t&&l&&"motion-reduce:transition-none"),ref:o,children:r})}},62598:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>a});var s=r(7893),n=r(43875);let a=e=>{let{...t}=e;return(0,s.jsx)(n.l$,{theme:"dark",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-primary group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-secondary",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-inverse",cancelButton:"group-[.toast]:bg-primary-alt group-[.toast]:text-secondary"}},...t})}},73517:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var s=r(7893),n=r(71422),a=r(67321),o=r(28081),l=r(41574);function i(e){let{children:t}=e,[r,i]=(0,o.useState)(!1),c=(0,l.usePathname)();return(0,o.useEffect)(()=>{i(!1)},[c]),(0,s.jsxs)("div",{className:"sm:hidden",children:[(0,s.jsx)(n.A,{active:r,setOpen:i}),(0,s.jsx)(a.A,{className:"top-nav-height bg-primary",isVisible:r,children:t})]})}},82601:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var s=r(7893),n=r(28081),a=r(85126),o=r(8295),l=r(95745);let i=(0,o.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:r,variant:n,size:o,asChild:c=!1,...d}=e,u=c?a.DX:"button";return(0,s.jsx)(u,{className:(0,l.cn)(i({variant:n,size:o,className:r})),ref:t,...d})});c.displayName="Button"},86373:(e,t,r)=>{"use strict";r.d(t,{GL:()=>c,ww:()=>i,YE:()=>d,default:()=>u});var s=r(7893),n=r(28081);r(3317);var a=r(76089);r(82637);let o={userRequiresCookieConsent:function(){return!1}};var l=r(35865);let i=(0,n.createContext)(null),c="experience",d="yt_embeds";function u(e){let{children:t}=e,[r,u]=(0,n.useState)(!0),[f,h]=(0,n.useState)(!1),p=(0,l.c)("CookieConsent");function m(){h(a.tj(d,c))}return(0,n.useEffect)(()=>{let e=o.userRequiresCookieConsent();u(e),e&&a.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{m()},onChange:()=>{m()},categories:{necessary:{enabled:!0,readOnly:!0},[c]:{services:{[d]:{label:p("sections.experience.services.embeds"),onAccept:()=>h(!0),onReject:()=>h(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:p("popup.title"),description:p("popup.description"),acceptAllBtn:p("actions.accept_all"),acceptNecessaryBtn:p("actions.reject_all"),showPreferencesBtn:p("popup.show_preferences")},preferencesModal:{title:p("modal.title"),acceptAllBtn:p("actions.accept_all"),acceptNecessaryBtn:p("actions.reject_all"),savePreferencesBtn:p("modal.save"),closeIconLabel:p("modal.close"),sections:[{title:p("sections.summary.title"),description:p("sections.summary.description")},{title:p("sections.necessary.title"),description:p("sections.necessary.description"),linkedCategory:"necessary"},{title:p("sections.experience.title"),description:p("sections.experience.description"),linkedCategory:"experience"},{title:p("sections.more_info.title"),description:p.raw("sections.more_info.description")}]}}}}})},[]),(0,s.jsx)(i.Provider,{value:{enableCookieManagement:r,hasConsentToEmbeddedVideos:f},children:t})}},87257:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(7893),n=r(28081),a=r(59333),o=r(95745);function l(e){let{src:t,alt:r,width:l,height:i,fbWidth:c,fbHeight:d,className:u,title:f,strokeWidth:h=1,fixedSize:p,wrapper:m,fbIcon:x=a.A,fallback:v=(0,s.jsx)(x,{strokeWidth:h,className:(0,o.cn)(u,"text-secondary opacity-20"),width:c||l||32,height:d||i||32}),...y}=e,[g,b]=(0,n.useState)(!1);return(0,s.jsxs)("span",{title:f,style:p?{width:"".concat(l,"px"),height:"".concat(i,"px")}:void 0,...m,className:(0,o.cn)("shrink-0 overflow-hidden",null==m?void 0:m.className),children:[t&&!g&&(0,s.jsx)("img",{src:t,alt:r||"",width:l,height:i,className:u,onError:()=>b(!0),...y}),(!t||g)&&v]})}},88523:()=>{},92434:(e,t,r)=>{"use strict";r.d(t,{default:()=>A});var s=r(7893),n=r(35865),a=r(90648),o=r(43160),l=r(74994),i=r(72053),c=r(36999),d=r(3072),u=r(82601),f=r(28081),h=r(87257),p=r(47570),m=r(61341),x=r(41574),v=r(37040),y=r(27849),g=r(71678),b=r(95745),j=r(16715);function w(e){var t;let{result:r}=e,o=(0,n.c)("ProjectTypes"),l=(0,n.c)("SearchResultType");return(0,s.jsxs)(v.k,{href:r.href,className:"z-50 flex cursor-pointer flex-row gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-primary",children:[(0,s.jsx)("div",{className:"size-[48px] shrink-0 overflow-hidden rounded-xs p-1",children:(0,s.jsx)(h.default,{src:null==(t=r.icon_asset)?void 0:t.src,width:48,height:48,alt:r.project_id,fbIcon:a.A,fixedSize:!0})}),(0,s.jsxs)("div",{className:"flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden [&_span]:text-ellipsis",children:[(0,s.jsx)("span",{children:r.title}),"project"==r.entry_type?(0,s.jsx)("span",{className:"text-secondary",children:(0,s.jsx)("span",{className:"text-secondary",children:o(r.project_type)})}):(0,s.jsx)("div",{className:"flex flex-col gap-1",children:(0,s.jsx)("span",{className:"text-secondary",children:r.project_name})})]}),(0,s.jsx)("div",{className:"mx-1",children:(0,s.jsx)(j.A,{variant:r.entry_type,children:l(r.entry_type)})})]})}function N(){let e=(0,n.c)("DocsSearchBar");return(0,s.jsxs)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-secondary",children:[(0,s.jsx)(o.A,{className:"mr-2 h-5 w-5 animate-spin"}),e("loading")]})}function _(){let e=(0,n.c)("DocsSearchBar");return(0,s.jsx)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-secondary",children:e("no_results")})}function S(e){let{locale:t,isOpen:r,setOpen:a}=e,o=(0,n.c)("DocsSearchBar"),d=(0,f.useRef)(null),[u,h]=(0,f.useState)(""),[x,v]=(0,f.useState)(null),[j,S]=(0,f.useState)(!1),{project:A}=(0,f.useContext)(g.o),[E,C]=(0,f.useState)(null!=A);(0,f.useEffect)(()=>{h(""),v(null),S(!1)},[r]);let k=(0,p.YQ)(async e=>{let r=!0;setTimeout(()=>{u&&r&&S(!0)},500),v(await y.A.searchWiki(e,t,E&&A?A.id:null)),r=!1,S(!1)},200);(0,f.useEffect)(()=>{C(null!=A)},[A]),(0,f.useEffect)(()=>{u.length>0&&k(u),k.flush()},[E]);let B=E?l.A:i.A;return(0,s.jsx)(m.A,{nodeRef:d,in:r,timeout:200,classNames:"fade",unmountOnExit:!0,children:(0,s.jsx)("div",{ref:d,className:"fixed top-0 right-0 bottom-0 left-0 z-50 h-[100vh] w-full overflow-hidden bg-primary",children:(0,s.jsxs)("div",{className:"innerFadeContainer flex flex-col gap-4 p-4",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{onClick:()=>a(!1),children:(0,s.jsx)(c.A,{className:"absolute top-1/2 left-2 h-5 w-5 -translate-y-1/2 text-secondary"})}),A&&(0,s.jsxs)("button",{className:(0,b.cn)("inset absolute top-1/2 right-2 -translate-y-1/2 rounded-sm","flex flex-row items-center gap-1","border border-secondary bg-secondary px-1.5 py-1"),onClick:()=>C(!E),children:[(0,s.jsx)(B,{className:"size-3.5 stroke-2 text-primary"}),(0,s.jsx)("span",{className:"text-xs",children:o("scope.".concat(E?"local":"global"))})]}),(0,s.jsx)("input",{type:"text",value:u,onChange:e=>(e=>{if(h(e),!e||0===e.length){v(null),S(!1);return}return k(e)})(e.target.value),className:"w-full cursor-pointer rounded-xs border border-neutral-700 bg-primary-alt p-2 px-8 text-center text-sm text-ellipsis placeholder:text-neutral-500 focus:cursor-text focus:outline-1 focus:outline-secondary",placeholder:o("placeholder"),autoFocus:!0})]}),j&&(0,s.jsx)(N,{}),!j&&x&&(x.hits.length>0?(0,s.jsxs)("div",{className:"slim-scrollbar flex h-[90vh] flex-col gap-2 overflow-y-auto",children:[...x.hits.map(e=>(0,s.jsx)(w,{result:e},e.id))]}):(0,s.jsx)(_,{}))]})})})}function A(e){let{locale:t}=e,[r,n]=(0,f.useState)(!1),a=(0,x.usePathname)();return(0,f.useEffect)(()=>{n(!1)},[a]),(0,f.useEffect)(()=>{r?document.querySelectorAll("html, body").forEach(e=>e.classList.add("navScrollLock")):document.querySelectorAll("html, body").forEach(e=>e.classList.remove("navScrollLock"))},[r]),(0,s.jsxs)("div",{className:"sm:hidden",children:[(0,s.jsx)(u.$,{variant:"ghost",size:"icon",onClick:()=>n(!r),children:(0,s.jsx)(d.A,{className:"h-4 w-4 text-[var(--vp-c-text-1)]"})}),(0,s.jsx)(S,{isOpen:r,setOpen:n,locale:t})]})}},95054:(e,t,r)=>{"use strict";r.d(t,{M$:()=>i,MZ:()=>n,cT:()=>l,gZ:()=>o,sw:()=>a});var s=r(2938);function n(e,t){var r;return null!=(r=l(t.id))?r:null!=t.page_ref?a(t.page_ref,e):null}function a(e,t){let r="slug"in t?t.slug:t.id;return"/".concat(t.locale,"/project/").concat(r,"/").concat(t.version,"/content/").concat(e)}function o(e,t){return"/".concat(e,"/project/").concat(t,"/latest")}function l(e){let t=s.A.parse(e);return(null==t?void 0:t.namespace)===s.o&&e.startsWith(s.o+":")?"https://minecraft.wiki/w/".concat(t.path):null}function i(e,t){return"/".concat(t.locale,"/project/").concat(t.id,"/").concat(t.version,"/docs/").concat(e)}},95745:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(3135),n=r(96915);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,s.$)(t))}}},e=>{e.O(0,[7138,5369,9957,739,4193,2709,7671,4874,8287,595,7411,9029,7358],()=>e(e.s=25782)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{2938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,o:()=>s});let s="minecraft";function n(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}let a={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:n,extractPath:function(e){var t,r;return null!=(r=null==(t=n(e))?void 0:t.path)?r:e}}},7208:(e,t,r)=>{"use strict";r.d(t,{AM:()=>l,Wv:()=>i,hl:()=>c});var s=r(7893),n=r(28081),a=r(63082),o=r(95745);let l=a.bL,i=a.l9,c=n.forwardRef((e,t)=>{let{className:r,align:n="center",sideOffset:l=4,...i}=e;return(0,s.jsx)(a.ZL,{children:(0,s.jsx)(a.UC,{ref:t,align:n,sideOffset:l,className:(0,o.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 w-72 rounded-sm border p-4 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",r),...i})})});c.displayName=a.UC.displayName},16715:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(7893),n=r(8295);r(28081);var a=r(95745);let o=(0,n.F)("inline-flex items-center rounded-sm border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{project:"border-info bg-secondary text-secondary-alt hover:bg-secondary/80",documentation:"border-secondary-alt bg-secondary text-secondary-alt hover:bg-secondary/80",content:"border-warning bg-secondary text-secondary-alt hover:bg-secondary/80"}}});function l(e){let{className:t,variant:r,...n}=e;return(0,s.jsx)("div",{className:(0,a.cn)(o({variant:r}),t),...n})}},17715:()=>{},17784:()=>{},17789:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(7893);function n(e){let{width:t,height:r,className:n}=e;return(0,s.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:r,className:n,children:[(0,s.jsx)("title",{children:"GitHub"}),(0,s.jsx)("path",{fill:"currentColor",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}},20249:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(7893),n=r(28081),a=r(86373),o=r(35865);function l(){let e=(0,o.c)("ManageCookiesButton"),t=(0,n.useContext)(a.ww);return t&&t.enableCookieManagement?(0,s.jsx)("button",{type:"button","data-cc":"show-preferencesModal",className:"text-sm",children:e("text")}):null}},25782:(e,t,r)=>{Promise.resolve().then(r.bind(r,57370)),Promise.resolve().then(r.bind(r,55605)),Promise.resolve().then(r.bind(r,8511)),Promise.resolve().then(r.t.bind(r,19957,23)),Promise.resolve().then(r.bind(r,86373)),Promise.resolve().then(r.bind(r,20249)),Promise.resolve().then(r.bind(r,60784)),Promise.resolve().then(r.bind(r,73517)),Promise.resolve().then(r.t.bind(r,65028,23)),Promise.resolve().then(r.bind(r,28243)),Promise.resolve().then(r.bind(r,52643)),Promise.resolve().then(r.bind(r,92434)),Promise.resolve().then(r.bind(r,71678)),Promise.resolve().then(r.bind(r,58453)),Promise.resolve().then(r.bind(r,62598))},27849:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var s=r(54703),n=r(52800),a=r(95054),o=r(48902),l=r(2938),i=r(59871),c=r(60285),d=r(16298);let u={getBackendEndpointUrl:function(){let e=d.env.NEXT_PUBLIC_BACKEND_SERVICE_URL;return(0,c.no)("NEXT_PUBLIC_BACKEND_SERVICE_URL",e)},getBuiltinAssetSource:function(){return"https://r2.sinytra.org/"},getAssetsBaseURL:function(){var e;return null!=(e=d.env.NEXT_PUBLIC_ASSETS_BASE_URL)?e:null}},f={getAssetResource:function(e){var t;let r=null!=(t=u.getAssetsBaseURL())?t:u.getBuiltinAssetSource();if(!r)return null;let s=new URL(r);s.pathname+="/.assets/"+e.namespace+"/"+e.path+(e.path.includes(".")?"":".png");let n=(0,i.A)(s.toString());return null===n?null:{id:l.A.toString(e),src:n}}};var h=r(3192);function p(e,t){return"locale"==e?h.Ay.actualLocale(t):"version"==e?function(e){return e==o.j4?null:e}(t):t}let m={constructAssetsUrl:function(e,t){var r;let s=null!=(r=u.getAssetsBaseURL())?r:u.getBackendEndpointUrl(),n=(0,c.cT)(t,p);return"".concat(s,"/api/v1/").concat(e,"?").concat(n)}},x={getRemoteAsset:function(e,t){let r=l.A.parse(e);if(!r)return null;let s=function(e,t,r){if(!r||t.namespace===l.o){let t=e.includes("/")?e:function(e){let t=l.A.parse(e);return t?l.A.toString({namespace:t.namespace,path:"item/"+t.path}):e}(e),r=l.A.parse(t);return r?f.getAssetResource(r):null}return null}(e,r,t);return null!=s?s:function(e,t){let{id:r,version:s}=t,n=m.constructAssetsUrl("docs/".concat(r,"/asset/").concat(e),{version:s});return{id:e,src:n}}(e,t)}};var v=r(16298);async function y(e,t,r){var n;let l=v.env.NEXT_PUBLIC_SEARCH_ENDPOINT,i=v.env.NEXT_PUBLIC_SEARCH_COLLECTION,c=v.env.NEXT_PUBLIC_SEARCH_API_KEY;if(!l||!i||!c)return{total:0,hits:[]};let d=new s._t({nodes:[{url:l}],apiKey:c,connectionTimeoutSeconds:2,timeoutSeconds:5,numRetries:3,retryIntervalSeconds:1,cacheSearchResultsForSeconds:120}),u=await g(d,i,{q:e,query_by:"title,item_ids,project_id,project_name,page_ref",filter_by:r?"project_id:=".concat(r):void 0,per_page:8,page:1});if(!u||0===u.found||!(null==(n=u.hits)?void 0:n.length))return null;let f=u.hits.map(e=>{var r,s;let n=e.document,l=(r=n,s=t,"project"===r.entry_type?(0,a.gZ)(s,r.project_id):"documentation"===r.entry_type?(0,a.M$)(r.page_ref,{id:r.project_id,locale:s,version:o.j4}):"content"===r.entry_type?(0,a.sw)(r.page_ref,{locale:s,version:o.j4,id:r.project_id}):(console.error("Unknown search result",r),"")),i=function(e,t){if("project"===e.entry_type&&null!=e.project_icon_url)return{src:e.project_icon_url,id:e.project_id};if(null==e.icon)return null;let r={id:e.project_id,locale:t,version:o.j4};return x.getRemoteAsset(e.icon,r)}(n,t);return{...n,href:l,icon_asset:i}});return{total:u.found,hits:f}}async function g(e,t,r){try{return await e.collections(t).documents().search(r,{})}catch(e){if(e instanceof n.RequestMalformed)console.error("Bad search params:",e.httpBody);else if(e instanceof n.RequestUnauthorized)console.error("Auth failed — check apiKey");else if(e instanceof n.ObjectNotFound)console.error("Collection does not exist");else if(e instanceof n.ServerError)console.error("Typesense server error",e.httpStatus);else if(e instanceof n.TypesenseError)console.error("Typesense error",e.httpStatus,e.httpBody);else throw e;return null}}let b={searchWiki:async function e(e,t,r){try{let s=await y(e,t,r);if(null!=s)return s}catch(e){console.error("Error running search",e)}return{total:0,hits:[]}}}},37040:(e,t,r)=>{"use strict";r.d(t,{k:()=>l});var s=r(7893),n=r(28081),a=r(19957),o=r.n(a);let l=(0,n.forwardRef)(function(e,t){let{prefetch:r=!1,...n}=e;return(0,s.jsx)(o(),{prefetch:r,...n,ref:t})})},52643:(e,t,r)=>{"use strict";r.d(t,{default:()=>N});var s=r(7893),n=r(47570),a=r(28081),o=r(87257),l=r(90648),i=r(43160),c=r(74994),d=r(72053),u=r(3072),f=r(41574),h=r(95745),p=r(35865),m=r(37040),x=r(27849),v=r(71678),y=r(16715);function g(e){var t;let{result:r}=e,n=(0,p.c)("ProjectTypes"),a=(0,p.c)("SearchResultType");return(0,s.jsxs)(m.k,{href:r.href,className:(0,h.cn)("z-50 flex cursor-pointer flex-row gap-2 bg-primary-alt px-1 py-1.5 text-primary","first:rounded-t-sm last:rounded-b-sm hover:bg-tertiary"),children:[(0,s.jsx)("div",{className:"size-[48px] shrink-0 overflow-hidden rounded-xs p-1",children:(0,s.jsx)(o.default,{src:null==(t=r.icon_asset)?void 0:t.src,width:48,height:48,alt:r.project_id,fbIcon:l.A,fixedSize:!0})}),(0,s.jsxs)("div",{className:"flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden [&_span]:text-ellipsis",children:[(0,s.jsx)("span",{children:r.title}),"project"==r.entry_type?(0,s.jsx)("span",{className:"text-secondary",children:n(r.project_type)}):(0,s.jsx)("div",{className:"flex flex-row gap-2",children:(0,s.jsx)("span",{className:"text-secondary",children:r.project_name})})]}),(0,s.jsx)("div",{className:"mx-1",children:(0,s.jsx)(y.A,{variant:r.entry_type,children:a(r.entry_type)})})]})}function b(){let e=(0,p.c)("DocsSearchBar");return(0,s.jsx)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary first:rounded-t-sm last:rounded-b-sm",children:e("no_results")})}function j(){let e=(0,p.c)("DocsSearchBar");return(0,s.jsxs)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary first:rounded-t-sm last:rounded-b-sm",children:[(0,s.jsx)(i.A,{className:"mr-2 h-5 w-5 animate-spin"}),e("loading")]})}function w(e){let{canChangeScope:t,visible:r,total:n}=e,a=(0,p.c)("DocsSearchBar");return(0,s.jsxs)("div",{className:(0,h.cn)("flex w-full flex-row items-center justify-between bg-primary-alt p-2 text-secondary",r>0?"rounded-b-sm":"rounded-sm"),children:[(0,s.jsx)("div",{className:"text-sm font-light",children:a.rich("results",{highlight:e=>(0,s.jsx)("span",{className:"font-normal",children:e}),count:r,total:n})}),(0,s.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[t&&(0,s.jsx)("span",{className:"text-sm",children:a.rich("switch",{kbd:e=>(0,s.jsx)("kbd",{children:e})})}),(0,s.jsx)("span",{className:"text-sm",children:a.rich("close",{kbd:e=>(0,s.jsx)("kbd",{children:e})})})]})]})}function N(e){var t,r,o;let{locale:l}=e,i=(0,p.c)("DocsSearchBar"),[m,y]=(0,a.useState)(""),[N,_]=(0,a.useState)(null),[S,A]=(0,a.useState)(!1),{project:E}=(0,a.useContext)(v.o),[C,k]=(0,a.useState)(null!=E),B=(0,n.YQ)(async e=>{let t=!0;setTimeout(()=>{m&&t&&A(!0)},500),_(await x.A.searchWiki(e,l,C&&E?E.id:null)),t=!1,A(!1)},200),[L,P]=(0,a.useState)(!1);(0,a.useEffect)(()=>{k(null!=E)},[E]),(0,a.useEffect)(()=>{m.length>0&&B(m),B.flush()},[C]);let R=(0,a.useRef)(null),T=(0,f.usePathname)();(0,a.useEffect)(()=>{var e;null==(e=R.current)||e.blur()},[T]);let[z,U]=(0,a.useState)(!0),I=()=>{"visible"===document.visibilityState?setTimeout(()=>U(!0),500):U(!1)};(0,a.useLayoutEffect)(()=>(document.addEventListener("visibilitychange",I),()=>document.removeEventListener("visibilitychange",I)),[]);let M=C?c.A:d.A;return(0,s.jsxs)("div",{className:(0,h.cn)("relative mx-2 hidden w-full transition-none duration-200 ease-[cubic-bezier(.27,.17,.43,.98)]",z&&"md:focus-within:transition-[max-width] lg:transition-[max-width]","md:flex md:max-w-sm md:focus-within:fixed md:focus-within:left-1/2 md:focus-within:max-w-lg md:focus-within:-translate-x-1/2 md:focus-within:shadow-lg","lg:max-w-[40rem] lg:focus-within:static lg:focus-within:flex lg:focus-within:max-w-2xl lg:focus-within:translate-x-0"),children:[(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)(u.A,{className:"inset absolute top-1/2 left-2 h-4 w-4 -translate-y-1/2 text-neutral-500"}),E&&L&&(0,s.jsxs)("div",{className:(0,h.cn)("inset absolute top-1/2 left-8 -translate-y-1/2 rounded-sm","flex flex-row items-center gap-1","border border-secondary bg-secondary px-1 py-[1.5px]"),children:[(0,s.jsx)(M,{className:"size-3.5 stroke-2 text-primary"}),(0,s.jsx)("span",{className:"text-xs",children:i("scope.".concat(C?"local":"global"))})]}),(0,s.jsx)("input",{type:"text",value:m,ref:R,className:(0,h.cn)("w-full cursor-pointer rounded-sm border border-secondary bg-primary-alt px-8 py-[0.2rem]","text-center text-sm text-ellipsis placeholder:text-neutral-500","focus:cursor-text focus:border-secondary-alt focus:shadow-md focus:outline-none"),onChange:e=>(e=>{if(y(e),!e||0===e.length){_(null),A(!1);return}return B(e)})(e.target.value),placeholder:i("placeholder"),onFocus:()=>{P(!0),_(null),document.querySelectorAll("html, body").forEach(e=>e.classList.add("scrollLock"))},onBlur:()=>{P(!1),A(!1),y(""),document.querySelectorAll("html, body").forEach(e=>e.classList.remove("scrollLock"))},onKeyDown:e=>{null!=E&&"Tab"===e.key&&(e.preventDefault(),k(!C)),"Escape"===e.key&&e.target.blur()}})]}),L&&(0,s.jsxs)("div",{onMouseDown:e=>e.preventDefault(),className:(0,h.cn)("absolute top-8 flex w-full flex-col divide-y divide-tertiary rounded-sm border","border-secondary bg-primary-alt shadow-lg"),children:[S&&(0,s.jsx)(j,{}),!S&&N&&N.hits.map(e=>(0,s.jsx)(g,{result:e},e.id)),!S&&N&&0===N.hits.length&&(0,s.jsx)(b,{}),(0,s.jsx)(w,{canChangeScope:null!=E,visible:null!=(r=null==N||null==(t=N.hits)?void 0:t.length)?r:0,total:null!=(o=null==N?void 0:N.total)?o:0})]})]})}},58453:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var s=r(7893),n=r(99302),a=r(95745),o=r(82601),l=r(17789);function i(e){let{width:t,height:r,className:n}=e;return(0,s.jsx)("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:t||24,height:r||24,className:n,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{fill:"currentColor",d:"M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"})})}function c(e){let{enableSharing:t,shareData:r,large:a}=e,c="undefined"!=typeof navigator&&"function"==typeof navigator.share,u=a?"h-5 w-5":"h-4 w-4 sm:h-5 sm:w-5";return(0,s.jsxs)("div",{className:"flex flex-wrap gap-2 sm:gap-4",children:[(0,s.jsx)(d,{href:"https://github.com/Sinytra",large:a,icon:(0,s.jsx)(l.A,{className:u})}),(0,s.jsx)(d,{href:"https://discord.sinytra.org",large:a,icon:(0,s.jsx)(i,{className:u})}),t&&c&&(0,s.jsxs)(o.$,{onClick:()=>{navigator.share?navigator.share(r).catch(e=>{console.error("Error sharing:",e)}):alert("Sharing is not supported on this browser.")},size:"sm",className:"flex h-8 w-8 items-center justify-center gap-2 sm:h-10 sm:w-auto sm:justify-start sm:px-4",children:[(0,s.jsx)(n.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Share"})]})]})}function d(e){let{href:t,icon:r,large:n,className:l}=e;return(0,s.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)(o.$,{variant:"outline",size:"icon",className:(0,a.cn)(l,n?"h-10 w-10":"h-8 w-8 sm:h-10 sm:w-10"),children:r})})}},60285:(e,t,r)=>{"use strict";function s(e,t){if(null==t)throw Error("Missing environment variable ".concat(e));return t}function n(e,t){let r=new URLSearchParams;if(e){for(let s in e)if(null!=e[s]){let n=t?t(s,e[s]):e[s];n&&r.set(s,n)}}return r.toString()}r.d(t,{cT:()=>n,no:()=>s}),r(16298)},60784:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var s=r(7893),n=r(28081),a=r(95745);function o(e){let{unfix:t,children:r}=e,o=(0,n.useRef)(null),[l,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>{i(window.scrollY>0)};return document.addEventListener("scroll",e),()=>document.removeEventListener("scroll",e)},[l]),(0,s.jsx)("header",{className:(0,a.cn)(!t&&"fixed left-0 w-[100vw]","z-50 border-b border-tertiary bg-primary-alt",!t&&l&&"motion-reduce:transition-none"),ref:o,children:r})}},62598:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>a});var s=r(7893),n=r(43875);let a=e=>{let{...t}=e;return(0,s.jsx)(n.l$,{theme:"dark",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-primary group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-secondary",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-inverse",cancelButton:"group-[.toast]:bg-primary-alt group-[.toast]:text-secondary"}},...t})}},73517:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var s=r(7893),n=r(71422),a=r(67321),o=r(28081),l=r(41574);function i(e){let{children:t}=e,[r,i]=(0,o.useState)(!1),c=(0,l.usePathname)();return(0,o.useEffect)(()=>{i(!1)},[c]),(0,s.jsxs)("div",{className:"sm:hidden",children:[(0,s.jsx)(n.A,{active:r,setOpen:i}),(0,s.jsx)(a.A,{className:"top-nav-height bg-primary",isVisible:r,children:t})]})}},82601:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var s=r(7893),n=r(28081),a=r(85126),o=r(8295),l=r(95745);let i=(0,o.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:r,variant:n,size:o,asChild:c=!1,...d}=e,u=c?a.DX:"button";return(0,s.jsx)(u,{className:(0,l.cn)(i({variant:n,size:o,className:r})),ref:t,...d})});c.displayName="Button"},86373:(e,t,r)=>{"use strict";r.d(t,{GL:()=>c,ww:()=>i,YE:()=>d,default:()=>u});var s=r(7893),n=r(28081);r(3317);var a=r(76089);r(82637);let o={userRequiresCookieConsent:function(){return!1}};var l=r(35865);let i=(0,n.createContext)(null),c="experience",d="yt_embeds";function u(e){let{children:t}=e,[r,u]=(0,n.useState)(!0),[f,h]=(0,n.useState)(!1),p=(0,l.c)("CookieConsent");function m(){h(a.tj(d,c))}return(0,n.useEffect)(()=>{let e=o.userRequiresCookieConsent();u(e),e&&a.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{m()},onChange:()=>{m()},categories:{necessary:{enabled:!0,readOnly:!0},[c]:{services:{[d]:{label:p("sections.experience.services.embeds"),onAccept:()=>h(!0),onReject:()=>h(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:p("popup.title"),description:p("popup.description"),acceptAllBtn:p("actions.accept_all"),acceptNecessaryBtn:p("actions.reject_all"),showPreferencesBtn:p("popup.show_preferences")},preferencesModal:{title:p("modal.title"),acceptAllBtn:p("actions.accept_all"),acceptNecessaryBtn:p("actions.reject_all"),savePreferencesBtn:p("modal.save"),closeIconLabel:p("modal.close"),sections:[{title:p("sections.summary.title"),description:p("sections.summary.description")},{title:p("sections.necessary.title"),description:p("sections.necessary.description"),linkedCategory:"necessary"},{title:p("sections.experience.title"),description:p("sections.experience.description"),linkedCategory:"experience"},{title:p("sections.more_info.title"),description:p.raw("sections.more_info.description")}]}}}}})},[]),(0,s.jsx)(i.Provider,{value:{enableCookieManagement:r,hasConsentToEmbeddedVideos:f},children:t})}},87257:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(7893),n=r(28081),a=r(59333),o=r(95745);function l(e){let{src:t,alt:r,width:l,height:i,fbWidth:c,fbHeight:d,className:u,title:f,strokeWidth:h=1,fixedSize:p,wrapper:m,fbIcon:x=a.A,fallback:v=(0,s.jsx)(x,{strokeWidth:h,className:(0,o.cn)(u,"text-secondary opacity-20"),width:c||l||32,height:d||i||32}),...y}=e,[g,b]=(0,n.useState)(!1);return(0,s.jsxs)("span",{title:f,style:p?{width:"".concat(l,"px"),height:"".concat(i,"px")}:void 0,...m,className:(0,o.cn)("shrink-0 overflow-hidden",null==m?void 0:m.className),children:[t&&!g&&(0,s.jsx)("img",{src:t,alt:r||"",width:l,height:i,className:u,onError:()=>b(!0),...y}),(!t||g)&&v]})}},88523:()=>{},92434:(e,t,r)=>{"use strict";r.d(t,{default:()=>A});var s=r(7893),n=r(35865),a=r(90648),o=r(43160),l=r(74994),i=r(72053),c=r(36999),d=r(3072),u=r(82601),f=r(28081),h=r(87257),p=r(47570),m=r(61341),x=r(41574),v=r(37040),y=r(27849),g=r(71678),b=r(95745),j=r(16715);function w(e){var t;let{result:r}=e,o=(0,n.c)("ProjectTypes"),l=(0,n.c)("SearchResultType");return(0,s.jsxs)(v.k,{href:r.href,className:"z-50 flex cursor-pointer flex-row gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-primary",children:[(0,s.jsx)("div",{className:"size-[48px] shrink-0 overflow-hidden rounded-xs p-1",children:(0,s.jsx)(h.default,{src:null==(t=r.icon_asset)?void 0:t.src,width:48,height:48,alt:r.project_id,fbIcon:a.A,fixedSize:!0})}),(0,s.jsxs)("div",{className:"flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden [&_span]:text-ellipsis",children:[(0,s.jsx)("span",{children:r.title}),"project"==r.entry_type?(0,s.jsx)("span",{className:"text-secondary",children:(0,s.jsx)("span",{className:"text-secondary",children:o(r.project_type)})}):(0,s.jsx)("div",{className:"flex flex-col gap-1",children:(0,s.jsx)("span",{className:"text-secondary",children:r.project_name})})]}),(0,s.jsx)("div",{className:"mx-1",children:(0,s.jsx)(j.A,{variant:r.entry_type,children:l(r.entry_type)})})]})}function N(){let e=(0,n.c)("DocsSearchBar");return(0,s.jsxs)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-secondary",children:[(0,s.jsx)(o.A,{className:"mr-2 h-5 w-5 animate-spin"}),e("loading")]})}function _(){let e=(0,n.c)("DocsSearchBar");return(0,s.jsx)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-secondary",children:e("no_results")})}function S(e){let{locale:t,isOpen:r,setOpen:a}=e,o=(0,n.c)("DocsSearchBar"),d=(0,f.useRef)(null),[u,h]=(0,f.useState)(""),[x,v]=(0,f.useState)(null),[j,S]=(0,f.useState)(!1),{project:A}=(0,f.useContext)(g.o),[E,C]=(0,f.useState)(null!=A);(0,f.useEffect)(()=>{h(""),v(null),S(!1)},[r]);let k=(0,p.YQ)(async e=>{let r=!0;setTimeout(()=>{u&&r&&S(!0)},500),v(await y.A.searchWiki(e,t,E&&A?A.id:null)),r=!1,S(!1)},200);(0,f.useEffect)(()=>{C(null!=A)},[A]),(0,f.useEffect)(()=>{u.length>0&&k(u),k.flush()},[E]);let B=E?l.A:i.A;return(0,s.jsx)(m.A,{nodeRef:d,in:r,timeout:200,classNames:"fade",unmountOnExit:!0,children:(0,s.jsx)("div",{ref:d,className:"fixed top-0 right-0 bottom-0 left-0 z-50 h-[100vh] w-full overflow-hidden bg-primary",children:(0,s.jsxs)("div",{className:"innerFadeContainer flex flex-col gap-4 p-4",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{onClick:()=>a(!1),children:(0,s.jsx)(c.A,{className:"absolute top-1/2 left-2 h-5 w-5 -translate-y-1/2 text-secondary"})}),A&&(0,s.jsxs)("button",{className:(0,b.cn)("inset absolute top-1/2 right-2 -translate-y-1/2 rounded-sm","flex flex-row items-center gap-1","border border-secondary bg-secondary px-1.5 py-1"),onClick:()=>C(!E),children:[(0,s.jsx)(B,{className:"size-3.5 stroke-2 text-primary"}),(0,s.jsx)("span",{className:"text-xs",children:o("scope.".concat(E?"local":"global"))})]}),(0,s.jsx)("input",{type:"text",value:u,onChange:e=>(e=>{if(h(e),!e||0===e.length){v(null),S(!1);return}return k(e)})(e.target.value),className:"w-full cursor-pointer rounded-xs border border-neutral-700 bg-primary-alt p-2 px-8 text-center text-sm text-ellipsis placeholder:text-neutral-500 focus:cursor-text focus:outline-1 focus:outline-secondary",placeholder:o("placeholder"),autoFocus:!0})]}),j&&(0,s.jsx)(N,{}),!j&&x&&(x.hits.length>0?(0,s.jsxs)("div",{className:"slim-scrollbar flex h-[90vh] flex-col gap-2 overflow-y-auto",children:[...x.hits.map(e=>(0,s.jsx)(w,{result:e},e.id))]}):(0,s.jsx)(_,{}))]})})})}function A(e){let{locale:t}=e,[r,n]=(0,f.useState)(!1),a=(0,x.usePathname)();return(0,f.useEffect)(()=>{n(!1)},[a]),(0,f.useEffect)(()=>{r?document.querySelectorAll("html, body").forEach(e=>e.classList.add("navScrollLock")):document.querySelectorAll("html, body").forEach(e=>e.classList.remove("navScrollLock"))},[r]),(0,s.jsxs)("div",{className:"sm:hidden",children:[(0,s.jsx)(u.$,{variant:"ghost",size:"icon",onClick:()=>n(!r),children:(0,s.jsx)(d.A,{className:"h-4 w-4 text-[var(--vp-c-text-1)]"})}),(0,s.jsx)(S,{isOpen:r,setOpen:n,locale:t})]})}},95054:(e,t,r)=>{"use strict";r.d(t,{M$:()=>i,MZ:()=>n,cT:()=>l,gZ:()=>o,sw:()=>a});var s=r(2938);function n(e,t){var r;return null!=(r=l(t.id))?r:null!=t.page_ref?a(t.page_ref,e):null}function a(e,t){let r="slug"in t?t.slug:t.id;return"/".concat(t.locale,"/project/").concat(r,"/").concat(t.version,"/content/").concat(e)}function o(e,t){return"/".concat(e,"/project/").concat(t,"/latest")}function l(e){let t=s.A.parse(e);return(null==t?void 0:t.namespace)===s.o&&e.startsWith(s.o+":")?"https://minecraft.wiki/w/".concat(t.path):null}function i(e,t){return"/".concat(t.locale,"/project/").concat(t.id,"/").concat(t.version,"/docs/").concat(e)}},95745:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var s=r(3135),n=r(96915);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,s.$)(t))}}},e=>{e.O(0,[7138,5369,9957,739,4193,2709,7671,4425,8287,595,7411,9029,7358],()=>e(e.s=25782)),_N_E=e.O()}]);
|