PageSourceSearch

https://cypherscribe.com/_next/static/chunks/pages/customize-2845ce7d87643575.js

js cypherscribe.com collected 2026-10-04 13:30:55 UTC 70,881 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1951],{98624:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customize",function(){return a(34992)}])},69999:function(e,t,a){"use strict";a.d(t,{I:function(){return i}});var s=a(85893),r=a(67294),l=a(59923);let i=r.forwardRef((e,t)=>{let{className:a,type:r,...i}=e;return(0,s.jsx)("input",{type:r,autoComplete:"off",className:(0,l.cn)("flex h-10 w-full rounded-md border border-slate-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-slate-500  disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-600 dark:bg-slate-950 dark:ring-offset-slate-950 dark:placeholder:text-slate-400 dark:focus-visible:ring-slate-300",a),ref:t,...i})});i.displayName="Input"},1614:function(e,t,a){"use strict";a.d(t,{J2:function(){return o},xo:function(){return n},yk:function(){return c}});var s=a(85893),r=a(67294),l=a(64510),i=a(59923);let o=l.fC,n=l.xz,c=r.forwardRef((e,t)=>{let{className:a,align:r="center",sideOffset:o=4,...n}=e;return(0,s.jsx)(l.h_,{children:(0,s.jsx)(l.VY,{ref:t,align:r,sideOffset:o,className:(0,i.cn)("z-50 w-72 rounded-md border border-slate-200 bg-white p-4 text-slate-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",a),...n})})});c.displayName=l.VY.displayName},77412:function(e,t,a){"use strict";a.d(t,{E:function(){return o},m:function(){return n}});var s=a(85893),r=a(67294),l=a(94801),i=a(59923);let o=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.fC,{className:(0,i.cn)("grid gap-2",a),...r,ref:t})});o.displayName=l.fC.displayName;let n=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.ck,{ref:t,className:(0,i.cn)("aspect-square h-4 w-4 rounded-full border border-slate-200 border-slate-900 text-slate-900 ring-offset-white focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-800 dark:border-slate-50 dark:text-slate-50 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300",a),...r,children:(0,s.jsx)(l.z$,{className:"flex items-center justify-center",children:(0,s.jsx)(c,{})})})});n.displayName=l.ck.displayName;let c=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","stroke-linejoin":"round",className:"h-[0.5rem] w-2 fill-current text-current",children:(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"})})},24576:function(e,t,a){"use strict";a.d(t,{r:function(){return o}});var s=a(85893),r=a(67294),l=a(22512),i=a(59923);let o=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.fC,{className:(0,i.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-300 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",a),...r,ref:t,children:(0,s.jsx)(l.bU,{className:(0,i.cn)("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950")})})});o.displayName=l.fC.displayName},96398:function(e,t,a){"use strict";var s=a(85893),r=a(67294),l=a(82968),i=a(59923);l.fC,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.aV,{ref:t,className:(0,i.cn)("inline-flex h-10 items-center justify-center rounded-md bg-slate-100 p-1 text-slate-500 dark:bg-slate-800 dark:text-slate-400",a),...r})}).displayName=l.aV.displayName,r.forwardRef((e,t)=>
1{let{className:a,...r}=e;return(0,s.jsx)(l.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-slate-950 data-[state=active]:shadow-sm dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300 dark:data-[state=active]:bg-slate-950 dark:data-[state=active]:text-slate-50",a),...r})}).displayName=l.xz.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset focus-visible:outline-none  focus-visible:ring-slate-950 focus-visible:ring-offset-2 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300",a),...r})}).displayName=l.VY.displayName},82328:function(e,t,a){"use strict";a.d(t,{T:function(){return s}});let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=new CustomEvent(e,{detail:t});a&&localStorage.setItem(e,JSON.stringify(t)),window.dispatchEvent(s)}},98107:function(e,t,a){"use strict";a.d(t,{K:function(){return s}});let s=e=>e.map(e=>{let t={href:e.href,title:e.title,description:""},a=e.content.filter(e=>("paragraph"===e.type||"heading"===e.type)&&e.content&&e.content.length>0&&e.content[0].text);return a.sort((e,t)=>t.content[0].text.length-e.content[0].text.length),a.length>0&&(t.description=a[0].content[0].text),t})},27269:function(e,t,a){"use strict";function s(e){return!!e&&null!==e.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)}a.d(t,{pM:function(){return s}})},34992:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eC}});var s=a(85893),r=a(16431),l=a(67294),i=a(1614),o=a(2759),n=a(74098),c=a(23279),d=a.n(c),h=a(49364),m=a(55651),u=a(45152),x=a(22473),g=a(84304);let A=(0,l.memo)(e=>{var t;let{item:a,depth:r=0,activeItem:l,setActiveItem:i,accumulatedHref:o="",isPreview:n,cusTheme:c,colors:d,index:h}=e,m=(e,t)=>{if(!t)return e;let a=(0,g.q)(t);return e?"".concat(e,"/").concat(a):a},x=(e,t)=>e?d.activeText:t?d.hoverText:d.inactiveText,v=m(o,a.href),p=a.href&&l===v,f=a.href&&l===v,b=e=>{i(m(o,e))};function w(e,t){let a=0,s=0,r=0;return 4===e.length?(a=parseInt(e[1]+e[1],16),s=parseInt(e[2]+e[2],16),r=parseInt(e[3]+e[3],16)):7===e.length&&(a=parseInt(e[1]+e[2],16),s=parseInt(e[3]+e[4],16),r=parseInt(e[5]+e[6],16)),"rgba(".concat(a,", ").concat(s,", ").concat(r,", ").concat(t,")")}return(null==a?void 0:null===(t=a.children)||void 0===t?void 0:t.length)>0?(0,s.jsx)(u.UQ,{type:"single",collapsible:!0,className:r>0?"pl-4 border-l":"",style:{borderColor:w(d.inactiveText,.4)},children:(0,s.jsxs)(u.Qd,{value:a.title,className:"border-none",children:[(0,s.jsx)(u.o4,{accessedFrom:"docs",size:"4",className:"text-sm 5xl:text-base min-h-9 h-auto !py-0 transition-colors ease-linear duration-100",style:{color:x(f,!1)},onClick:()=>a.href&&b(a.href),onMouseEnter:e=>{f||(e.currentTarget.style.color=d.hoverText)},onMouseLeave:e=>{f||(e.currentTarget.style.color=d.inactiveText)},children:(0,s.jsx)("div",{className:"",children:a.title})}),(0,s.jsx)(u.vF,{children:a.children.map((e,t)=>(0,s.jsx)(A,{item:e,depth:r+1,activeItem:l,setActiveItem:i,accumulatedHref:v,isPreview:n,cusTheme:c,colors:d,index:t},t))})]})}):(null==a?void 0:a.href)?(0,s.jsx)("div",{className:"min-h-9 h-auto flex items-center justify-start ".concat(r>0?"border-l  pr-2 pl-4":"pr-2"," cursor-pointer transition-all ease-linear duration-100"),style:{color:x(p,!1),borderColor:p?d.activeText:w(d.inactiveText,.4)},onClick:()=>b((0,g.q)(a.href)),onMouseEnter:e=>{p||(e.currentTarget.style.color=d.hoverText)},onMouseLeave:e=>{p||(e.currentTarget.style.color=d.inactiveText)},children:(0,s.jsx)("span",{children:a.title})}):(0,s.jsx)("div",{className:"min-h-9 h-auto flex items-center justify-start ".concat(r>0?"border-l pr-2 pl-4":"pr-2"),style:{color:d.inactiveText,borderColor:w(d.inactiveText,.4)},children:a.title})});A.displayName="MenuItem";let v=(0,l.memo)(e=>{var t;let{menuItems:a,isPreview:r,colors:i,cusTheme:o}=e,[n,c]=(0,l.useState)((null===(t=a[0])||void 0===t?void 0:t.href)||"");return(0,s.jsx)("nav",{className:"mt-5 px-2 space-y-2",children:a.map((e,t)=>(0,s.jsx)(A,{item:e,activeItem:n,setActiveItem:c,isPreview:r,colors:i,index:t,cusTheme:o},t))})});v.displayName="NestedAccordionMenu";let p=(0,l.memo)(e=>{let{leftNavbarData:t,toggleMenu:a,isMenuOpen:r,isPreview:l,cusTheme:i,colors:o}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"hidden lg:block lg:w-80 lg:max-h-[80vh] lg:mx-auto noScrollbar lg:sticky top-0 lg:top-[72px] self-start overflow-y-hidden border border-gray-700 rounded-md p-5",children:(0,s.jsx)(v,{menuItems:t,cusTheme:i,isPreview:l,colors:o})}),(0,s.jsx)(x.yo,{open:r,onOpenChange:a,children:(0,s.jsxs)(x.ue,{side:"left",className:"w-72 !border-none p-0 ".concat("dark"===i?"universalDarkTheme":"universalLightTheme"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between h-16 px-4 ".concat("dark"===i?"universalDarkTheme":"universalLightTheme"),children:[(0,s.jsx)("h1",{className:"text-[#EDEDED] text-xl font-bold",children:"Docs"}),(0,s.jsx)(x.aM,{asChild:!0,children:(0,s.jsx)("button",{onClick:a,className:"text-[#EDEDED]"})})]}),(0,s.jsx)("div",{className:"h-[85vh] noScrollbar overflow-y-auto",children:(0,s.jsx)(v,{menuItems:t})})]})})]})});p.displayName="LeftPanelStaticForWebFlowEditor_Vercel";var f=a(69554),b=a.n(f);let w=(0,l.memo)(e=>{var t,a;let{item:r,depth:l=0,activeItem:i,setActiveItem:o,accumulatedHref:n="",cusTheme:c,colors:d}=e,h=(e,t)=>(0,g.q)(t),m=(e,t,a)=>e?d.activeText:t?d.hoverText:d.inactiveText,x=(e,t,a)=>e?d.activeBg:t?d.hoverBg:"transparent",A=h(n,r.href),v=r.href&&i===A,p=r.href&&i===A,f=e=>{o(h(n,e))};if(!((null==r?void 0:null===(t=r.children)||void 0===t?void 0:t.length)>0))return(null==r?void 0:r.href)&&(0,s.jsx)("div",{className:"min-h-9 h-auto mt-1 rounded-md px-2 transition-colors ease-in duration-100 flex items-center justify-start ".concat(l>0?"pl-4":"pr-2"," cursor-pointer menu-item ").concat(v?"active":""),style:{color:m(v,!1,!1),backgroundColor:x(v,!1,!1)},onClick:()=>f((0,g.q)(r.href)),onMouseEnter:e=>{v||(e.currentTarget.style.color=d.hoverText,e.currentTarget.style.backgroundColor=d.hoverBg)},onMouseLeave:e=>{v||(e.currentTarget.style.color=d.inactiveText,e.currentTarget.style.backgroundColor="transparent")},children:(0,s.jsx)("span",{children:r.title})});{let e=null===(a=r.children)||void 0===a?void 0:a.some(e=>e.href&&i.startsWith(h(A,e.href)));return(0,s.jsx)(u.UQ,{type:"multiple",collapsible:!0,className:l>0?"pl-4":"",children:(0,s.jsxs)(u.Qd,{value:r.title,className:"border-none mt-2",children:[(0,s.jsx)(u.o4,{accessedFrom:"docs",size:"4",onMouseEnter:e=>{p||(e.currentTarget.style.color=d.hoverText,e.currentTarget.style.backgroundColor=d.hoverBg)},onMouseLeave:e=>{p||(e.currentTarget.style.color=d.inactiveText,e.currentTarget.style.backgroundColor="transparent")},className:"text-sm 5xl:text-base min-h-9 h-auto !py-0 rounded-md px-2 transition-colors ease-in duration-100 menu-item ".concat(p||e?"active":""),style:{color:m(p,!1,e),backgroundColor:x(p,!1,e)},onClick:()=>r.href&&f(r.href),children:(0,s.jsx)("div",{className:"w-full text-left cursor-default",children:r.title})}),(0,s.jsx)(u.vF,{children:r.children.map((e,t)=>(0,s.jsx)(w,{item:e,depth:l+1,activeItem:i,setActiveItem:o,accumulatedHref:A,cusTheme:c,colors:d},t))})]})})}});w.displayName="MenuItem";let j=(0,l.memo)(e=>{let{colors:t,leftNavbarData:a,cusTheme:r}=e,[i,o]=(0,l.useState)(a[0].href||"");return(0,s.jsx)(n.Zb,{className:"w-[300px] ".concat("dark"===r?"!bg-black":"!bg-white !border-slate-100"),children:(0,s.jsxs)(n.aY,{className:"p-4",children:[(0,s.jsx)(b(),{id:"fdb0347b1ac44c0c",children:".menu-item.jsx-fdb0347b1ac44c0c{margin-bottom:.5rem;padding:.5rem;-webkit-border-radius:.25rem;-moz-border-radius:.25rem;border-radius:.25rem;-webkit-transition:background-color.2s ease-in-out,color.2s ease-in-out;-moz-transition:background-color.2s ease-in-out,color.2s ease-in-out;-o-transition:background-color.2s ease-in-out,color.2s ease-in-out;transition:background-color.2s ease-in-out,color.2s ease-in-out;cursor:pointer}.menu-item.active.jsx-fdb0347b1ac44c0c{font-weight:bold}"}),a.map((e,a)=>(0,s.jsx)(w,{item:e,activeItem:i,setActiveItem:o,cusTheme:r,colors:t},a))]})})});j.displayName="LeftPanelStaticForWebFlowEditor_Generic";var k=a(41664),C=a.n(k),y=a(74304);let N=(0,l.memo)(e=>{let{headings:t,cusTheme:a,colors:r}=e,[i,o]=(0,l.useState)("heading-1"),[c,d]=(0,l.useState)(null),h=(0,l.useCallback)((e,t)=>
1e?(null==r?void 0:r.activeText)||("dark"===a?"#ffffff":"#000000"):t?(null==r?void 0:r.hoverText)||("dark"===a?"#ffffff":"#000000"):(null==r?void 0:r.inactiveText)||("dark"===a?"#999999":"#6c6c6c"),[r,a]),m=(0,l.useCallback)((e,t)=>e?(null==r?void 0:r.activeBg)||"transparent":t&&(null==r?void 0:r.hoverBg)||"transparent",[r]);return(0,s.jsx)(n.Zb,{className:"w-[300px] ".concat("dark"===a?"!bg-black":"!bg-white !border-slate-100"),children:(0,s.jsx)(n.aY,{children:(0,s.jsxs)("div",{className:"w-64 p-4 pt-[2.8rem] overflow-y-auto max-h-[calc(100vh-2rem)]",children:[(0,s.jsxs)("div",{className:"flex items-center mb-6",style:{color:h(!1,!1)},children:[(0,s.jsx)(T,{className:"mr-[6px]",size:20}),(0,s.jsx)("p",{className:"text-lg font-semibold",children:"On This Page"})]}),(0,s.jsx)("nav",{children:t.map(e=>{let t=i===e.id,a=c===e.id;return(0,s.jsx)("p",{onClick:()=>o(e.id),onMouseEnter:()=>d(e.id),onMouseLeave:()=>d(null),className:"block py-2 transition-colors ease-linear duration-100 text-sm cursor-pointer ".concat(t?"font-semibold":""),style:{color:h(t,a),backgroundColor:m(t,a)},children:e.text},e.id)})})]})})})});N.displayName="GenericToc_Static_ForThemeSelection";let T=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","stroke-linejoin":"round",className:"mr-[6px]",children:[(0,s.jsx)("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),(0,s.jsx)("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]}),E=(0,l.memo)(e=>{var t;let{headings:a,cusTheme:r,colors:i}=e,[o,c]=(0,l.useState)(null===(t=a[0])||void 0===t?void 0:t.id),d=(0,l.useRef)(null),h=(0,l.useRef)({}),m=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(d.current&&h.current[o]){let{offsetTop:e,offsetHeight:t}=h.current[o];d.current.style.transform="translateY(".concat(e,"px)"),d.current.style.height="".concat(t,"px")}},[o]);let u=(e,t)=>{e.preventDefault(),c(t)},x=(e,t)=>e?(null==i?void 0:i.activeText)||("dark"===r?"#FFFFFF":"#000000"):t?(null==i?void 0:i.hoverText)||("dark"===r?"#FFFFFF":"#000000"):(null==i?void 0:i.inactiveText)||("dark"===r?"#999999":"#666666e2"),g=e=>{if(e)return(null==i?void 0:i.activeText)||("dark"===r?"#FFFFFF":"#000000");let t=((null==i?void 0:i.inactiveText)||("dark"===r?"#999999":"#666666e2")).match(/\w\w/g).map(e=>parseInt(e,16));return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", 0.3)")};return(0,s.jsx)(n.Zb,{className:"".concat("dark"===r?"!bg-black":"!bg-white !border-slate-100"),children:(0,s.jsx)(n.aY,{children:(0,s.jsxs)("div",{ref:m,className:"w-64 p-4 pt-[2.8rem] overflow-y-auto max-h-[calc(100vh-3rem)]",children:[(0,s.jsxs)("div",{className:"flex items-center mb-6 ".concat("dark"===r?"text-gray-400":"text-gray-800"),children:[(0,s.jsx)(S,{className:"mr-2"}),(0,s.jsx)("p",{className:"text-lg font-semibold",children:"On This Page"})]}),(0,s.jsxs)("nav",{className:"relative",children:[(0,s.jsx)("div",{ref:d,className:"absolute left-0 w-[1px] rounded-md transition-all duration-300 ease-in-out",style:{zIndex:1,backgroundColor:g(!0)}}),a.map(e=>{let t=o===e.id;return(0,s.jsx)("a",{ref:t=>h.current[e.id]=t,onClick:t=>u(t,e.id),className:"block py-2 pl-4 transition-colors duration-200 text-[13px] border-l relative ".concat(t?"font-medium":""),style:{color:x(t,!1),borderColor:g(!1),cursor:"pointer"},onMouseEnter:e=>{t||(e.currentTarget.style.color=x(!1,!0))},onMouseLeave:e=>{t||(e.currentTarget.style.color=x(!1,!1))},children:e.text},e.id)})]})]})})})});E.displayName="VercelToc_Static_ForThemeSelection";let S=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","stroke-linejoin":"round",className:"mr-[6px]",children:[(0,s.jsx)("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),(0,s.jsx)("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]});var B=a(86551),I=a(69999),M=a(98107),O=a(51526),L=a(18079);let R=(0,l.memo)(e=>{let{colors:t,customText:a,isZoomedOut:r,cusTheme:i="dark",cardsData:o,isGradient:n,getGradientClass:c,selectedGradient:d,customGradient:h}=e,[m,u]=(0,l.useState)(0),x=(0,l.useRef)(null),[g,A]=(0,l.useState)(""),[v,p]=(0,l.useState)(o),[f,b]=(0,l.useState)(()=>({mainClass:w(),cardClass:j(),searchInputClass:k()}));function w(){return"dark"!==i||n?"light"!==i||n?c():"bg-white text-black":"bg-black text-white"}function j(){return"dark"!==i||n?"light"!==i||n?"bg-transparent border":"bg-white border":"knowledgeBaseCardGradient"}function k(){return"dark"!==i||n?"light"!==i||n?"bg-transparent border-gray-500":"bg-white border-slate-400":"bg-black border-gray-500"}(0,l.useEffect)(()=>{b({mainClass:w(),cardClass:j(),searchInputClass:k()})},[n,d,h,i]);let[C,y]=(0,l.useState)(t);(0,l.useEffect)(()=>{t&&y({primaryText:null==t?void 0:t.primaryText,secondaryText:null==t?void 0:t.secondaryText,borderColorHover:null==t?void 0:t.borderColorHover})},[t]);
1let N=["Search documentation...","Search guides and tutorials...","Find your answers here...","Explore documentation topics..."];return(0,l.useEffect)(()=>(x.current=setInterval(()=>{u(e=>(e+1)%N.length)},3e3),()=>{x.current&&clearInterval(x.current)}),[]),(0,l.useEffect)(()=>{let e=()=>{document.hidden?x.current&&clearInterval(x.current):(x.current&&clearInterval(x.current),x.current=setInterval(()=>{u(e=>(e+1)%N.length)},3e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),(0,s.jsx)("div",{className:"min-h-screen ".concat(f.mainClass),children:(0,s.jsxs)("main",{style:{transform:r?"scale(0.9)":"scale(1)",transformOrigin:"top center",transition:"transform 0.3s ease",width:"100%",height:"100%"},className:"container -mt-10 mx-auto px-4 pb-16",children:[(0,s.jsxs)("section",{className:"text-center mb-16",children:[(0,s.jsx)("h1",{className:"text-3xl md:text-5xl font-bold mb-4",style:{color:C.primaryText},children:(null==a?void 0:a.title)||"Welcome to SuperU Docs"}),(0,s.jsx)("p",{className:"text-lg mb-8",style:{color:C.secondaryText},children:(null==a?void 0:a.description)||""}),(0,s.jsx)("div",{className:"max-w-md mx-auto",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:g,onChange:e=>A(e.target.value),className:"w-full rounded-3xl pl-11 py-2 focus:outline-none border ".concat(f.searchInputClass)}),(0,s.jsx)(F,{}),!g&&(0,s.jsx)("div",{className:"absolute top-1/2 left-11 transform pointer-events-none -translate-y-1/2 text-gray-400 overflow-hidden h-6",children:(0,s.jsx)(O.M,{initial:!1,mode:"wait",children:(0,s.jsx)(L.E.span,{initial:{y:"100%"},animate:{y:0},exit:{y:"-100%"},transition:{duration:.5,ease:"easeInOut"},className:"block",children:N[m]},m)})})]})})]}),(0,s.jsx)("section",{className:"grid grid-cols-1 md:grid-cols-3 gap-10 mt-28 gap-y-16",children:null==v?void 0:v.map((e,t)=>(0,s.jsxs)("div",{className:"".concat(f.cardClass," cursor-pointer p-6 rounded-lg border transition-colors group relative flex flex-col justify-between"),style:{borderColor:e.isHovered?C.borderColorHover:"dark"===i?n?"rgb(37,42,49)":"transparent":"#e2e8f0"},onMouseEnter:()=>{p(e=>e.map((e,a)=>a===t?{...e,isHovered:!0}:e))},onMouseLeave:()=>{p(e=>e.map((e,a)=>a===t?{...e,isHovered:!1}:e))},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-semibold mb-2 lowercase first-letter:uppercase",style:{color:C.primaryText},children:e.title}),e.description&&(0,s.jsx)("p",{style:{color:C.secondaryText},children:e.description.slice(0,80)})]}),(0,s.jsx)("div",{className:"flex w-full justify-end mt-4 relative",children:(0,s.jsx)("div",{className:"absolute -bottom-1 right-0 opacity-0 group-hover:opacity-100 transform group-hover:translate-y-0 translate-y-4 transition-all duration-300 ease-out",children:(0,s.jsx)(U,{})})})]},t))})]})})});R.displayName="StaticKBForWebflow";let F=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"absolute text-gray-400 top-[10px] left-4",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("path",{d:"m21 21-4.3-4.3"})]}),U=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-arrow-right",children:[(0,s.jsx)("path",{d:"M5 12h14"}),(0,s.jsx)("path",{d:"m12 5 7 7-7 7"})]});a(96398);var D=a(77412),V=a(24576),G=a(33299),H=a(34798);let z=(0,l.memo)(e=>{let{color:t,onChange:a,label:r,smallerMargin:l}=e;return(0,s.jsxs)("div",{className:"flex items-center justify-between ".concat(l?"mb-1":"mb-4"),children:[(0,s.jsx)("label",{className:"text-sm font-medium text-gray-300",children:r}),(0,s.jsxs)(i.J2,{children:[(0,s.jsx)(i.xo,{children:(0,s.jsx)("div",{className:"w-8 h-8 rounded-md cursor-pointer border border-gray-600",style:{backgroundColor:t}})}),(0,s.jsxs)(i.yk,{className:"p-6 border border-gray-500 bg-black",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,s.jsxs)("p",{className:"text-[13px] text-gray-400",children:["Current color - ",t]}),(0,s.jsx)("div",{className:"w-6 h-6 rounded-full border border-gray-600",style:{backgroundColor:t}})]}),(0,s.jsx)(m.gW,{color:t,onChange:a})]})]})]})});z.displayName="ColorPicker";let P=(0,l.memo)(e=>{var t,a;let{cusTheme:r,isKb:i}=e,[c,m]=(0,l.useState)(!0),{data:u}=(0,G.useSession)(),x={activeText:"dark"===r?"#FFFFFF":"#000000",inactiveText:"#999999",activeBg:"dark"===r?"#000000":"#F1F5F9",hoverBg:"dark"===r?"#1F2937":"#F1F5F9",hoverText:"dark"===r?"#FFFFFF":"#000000"},A={activeText:"dark"===r?"#FFFFFF":"#000000",inactiveText:"#999999",hoverText:"dark"===r?"#FFFFFF":"#000000"},v={primaryText:"dark"===r?"#11aadc":"#000000",secondaryText:"#999999",borderColorHover:"dark"===r?"#0dade8":"#000000"},f={title:"Welcome to our Docs",description:"Discover everything you need to build amazing projects."},[b,w]=(0,l.useState)({...x}),[k,T]=(0,l.useState)({...A}),[S,B]=(0,l.useState)({...v}),[O,L]=(0,l.useState)({...f}),[F,U]=(0,l.useState)("dark"===r),[P,Y]=(0,l.useState)("ocean"),[Q,Z]=(0,l.useState)({}),[J,q]=(0,l.useState)(!1),[$,ee]=(0,l.useState)(""),[et,ea]=(0,l.useState)(""),[es,er]=(0,l.useState)(i?"KB":"LP"),[el,ei]=(0,l.useState)(!1),[eo,en]=(0,l.useState)(!1),[ec,ed]=(0,l.useState)([]);(0,l.useEffect)(()=>{"KB"===es?en(!0):en(!1)},[es]),(0,l.useEffect)(()=>{let e=JSON.parse(localStorage.getItem("kbGradientInfo"));if("light"===r)U(!1),localStorage.setItem("kbGradientInfo",JSON.stringify({isGradient:!1,gradinetTemplate:(null==e?void 0:e.gradinetTemplate)||"ocean"}));else if("dark"===r){let t=(null==e?void 0:e.isGradient)||!1;U(t),localStorage.setItem("kbGradientInfo",JSON.stringify({isGradient:t,gradinetTemplate:(null==e?void 0:e.gradinetTemplate)||"ocean"}))}},[r]);let eh=(0,l.useRef)([{id:"heading-1",text:"these are"},{id:"heading-2",text:"some sample"},{id:"heading-3",text:"words for"},{id:"heading-4",text:"table of contents"},{id:"heading-5",text:"options"}]);(0,l.useEffect)(()=>{var e,t;let a=localStorage.getItem("savedColors");a&&w(JSON.parse(a));let s=localStorage.getItem("savedColorsToc");s&&T(JSON.parse(s));let r=localStorage.getItem("savedColorsKB");r&&B(JSON.parse(r));let l=localStorage.getItem("savedCustomTextKB");l&&L(JSON.parse(l));let i=localStorage.getItem("kbGradientInfo");if(i){let e=JSON.parse(i);U(null==e?void 0:e.isGradient),Y(e.gradinetTemplate)}let o=JSON.parse(localStorage.getItem("templateChoices"));ee((null==o?void 0:null===(e=o.usersChoseTemplateOptions)||void 0===e?void 0:e.leftPanel)||"vercelLP"),ea((null==o?void 0:null===(t=o.usersChoseTemplateOptions)||void 0===t?void 0:t.toc)||"vercelTOC");let n=async()=>{let e=await h.Z.getItem("pageIDsWithNames");e&&Z(e)};return n(),()=>{n()}},[]),(0,l.useEffect)(()=>{(async()=>{try{let t=await h.Z.getItem("pageIDsWithNames");if(t){var e;let a=(0,M.K)(null==t?void 0:null===(e=t.pages_content)||void 0===e?void 0:e.slice(0,6));ed(a)}}catch(e){console.log("in catch bkloc",e)}})()},[]);let em=(0,l.useCallback)(d()((e,t,a)=>{m(!1),"LP"===a?w(a=>({...a,[e]:t})):"TOC"===a?T(a=>({...a,[e]:t})):"KB"===a&&B(a=>({...a,[e]:t}))},300),[]),eu=(0,l.useCallback)((e,t)=>{L(a=>({...a,[e]:t}))}),[ex,eg]=(0,l.useState)({loading_savingCustomData:!1,loading_savingDefaultState:!1}),eA=async()=>{var e;let t=JSON.parse(localStorage.getItem("templateChoices"))||{usersChoseTemplateOptions:{leftPanel:"genericColor",toc:"vercelTOC",navbar:"DarkNavbar_LogoAndLinksLeft_RestAllRight"},otherData:{socials:{github:"",reddit:"",twitter:"",linkedin:""},links:[{text:"",url:""},{text:"",url:""},{text:"",url:""}],logo:null}},a={userId:null==u?void 0:null===(e=u.user)||void 0===e?void 0:e.id,colorsLP:b,colorsTOC:k,colorsKB:S,customTextKB:O,kbGradientInfo:{isGradient:F,gradinetTemplate:P},templates:t,theme:r};eg({...ex,loading_savingCustomData:!0}
1);try{let e=await fetch("".concat((0,H.D)(),"/save-style-choices"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});(await e.json()).success&&eg({...ex,loading_savingCustomData:!1})}catch(e){(0,y.Am)({title:"Oops, templates data could not be saved"})}},ev=(0,l.useRef)({midnight:"bg-gradient-to-br from-black via-gray-950 to-blue-950",cosmic:"bg-gradient-to-br from-black via-gray-950 to-purple-950",ocean:"bg-gradient-to-br from-black via-gray-950 to-cyan-950",twilight:"bg-gradient-to-br from-black via-gray-950 to-violet-900",sunset:"bg-gradient-to-br from-black via-gray-950 to-orange-950/50",graphite:"bg-gradient-to-br from-black via-gray-950 to-gray-900"}),ep=(0,l.useCallback)(()=>ev.current[P],[P]);return $&&et&&0!==Object.keys(Q).length?0!==ec.length?(0,s.jsxs)("div",{className:"flex h-screen pt-20 ".concat("dark"===r?"bg-black text-gray-100":"bg-white text-gray-900"),children:[(0,s.jsx)(X,{isSaved:c}),(0,s.jsx)("div",{className:"flex-1 pt-10 noScrollbar flex justify-center max-h-[95vh] overflow-auto",children:(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsx)("div",{className:"text-4xl w-fit mb-16 -mt-4 relative",children:(0,s.jsxs)("p",{className:"border-b ".concat("dark"===r?"border-gray-300":"border-gray-600"),children:["KB"!==es&&"Let's Style Your","LP"===es?"Left Panel":"TOC"===es?"Table of Contents":""]})}),"LP"===es?"vercelLP"===$&&(null===(t=Q.pages_hierarchy)||void 0===t?void 0:t.length)>0?(0,s.jsx)(p,{leftNavbarData:Q.pages_hierarchy,toggleMenu:()=>{q(!J)},isMenuOpen:J,isPreview:!0,cusTheme:r,colors:b,fromPreviewPage:!0}):(0,s.jsx)(j,{leftNavbarData:Q.pages_hierarchy,cusTheme:r,colors:b}):"TOC"===es?"vercelTOC"===et&&(null===(a=Q.pages_hierarchy)||void 0===a?void 0:a.length)>0?(0,s.jsx)(E,{headings:eh.current,cusTheme:r,colors:k}):(0,s.jsx)(N,{headings:eh.current,cusTheme:r,colors:k}):(0,s.jsx)(R,{colors:S,customText:O,dontShpwNavbar:!0,isZoomedOut:eo,cusTheme:r,cardsData:ec,isGradient:F,getGradientClass:ep,selectedGradient:P})]})}),(0,s.jsx)(n.Zb,{className:"w-80 ".concat("dark"!==r&&"!rounded-none"," bg-gray-800 border-gray-700"),children:(0,s.jsxs)(n.aY,{className:"p-6 space-y-6 h-full",children:[(0,s.jsx)("h2",{className:"text-xl font-bold mb-6",children:"Customize the colors"}),(0,s.jsxs)("div",{className:"flex flex-col justify-between ".concat("KB"==es?"h-[94%]":"h-[90%]"),children:["LP"===es&&(0,s.jsxs)("div",{children:[(0,s.jsx)(z,{label:"Active Text",color:b.activeText,onChange:e=>em("activeText",e,"LP")}),(0,s.jsx)(z,{label:"Inactive Text",color:b.inactiveText,onChange:e=>em("inactiveText",e,"LP")}),"vercelLP"!==$&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{label:"Active Backgroun
1d",color:b.activeBg,onChange:e=>em("activeBg",e,"LP")}),(0,s.jsx)(z,{label:"Hover Background",color:b.hoverBg,onChange:e=>em("hoverBg",e,"LP")})]}),(0,s.jsx)(z,{label:"Hover Text",color:b.hoverText,onChange:e=>em("hoverText",e,"LP")})]}),"TOC"===es&&(0,s.jsxs)("div",{children:[(0,s.jsx)(z,{label:"Active Text",color:k.activeText,onChange:e=>em("activeText",e,"TOC")}),(0,s.jsx)(z,{label:"Inactive Text",color:k.inactiveText,onChange:e=>em("inactiveText",e,"TOC")}),(0,s.jsx)(z,{label:"Hover Text",color:k.hoverText,onChange:e=>em("hoverText",e,"TOC")})]}),"KB"===es&&(0,s.jsxs)(s.Fragment,{children:["dark"===r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2 mb-4",children:[(0,s.jsx)(V.r,{id:"gradient-mode",checked:F,onCheckedChange:U}),(0,s.jsx)("label",{htmlFor:"gradient-mode",children:"Enable Gradient"})]}),F&&(0,s.jsx)("div",{className:"space-y-4",children:(0,s.jsx)(D.E,{value:P,onValueChange:e=>{Y(e),U(!0)},className:"flex gap-4 flex-wrap",children:Object.keys(ev.current).map(e=>(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(D.m,{value:e,id:e}),(0,s.jsx)("label",{className:"text-sm",htmlFor:e,children:e})]},e))})})]}),(0,s.jsxs)("div",{className:"mt-7",children:[(0,s.jsx)(z,{smallerMargin:F,label:"Primary Text",color:S.primaryText,onChange:e=>em("primaryText",e,"KB")}),(0,s.jsx)(z,{smallerMargin:F,label:"Secondary Text",color:S.secondaryText,onChange:e=>em("secondaryText",e,"KB")}),(0,s.jsx)(z,{smallerMargin:F,label:"Border Color Hover",color:S.borderColorHover,onChange:e=>em("borderColorHover",e,"KB")})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(I.I,{label:"Title",className:"rounded-3xl text-gray-400",value:O.title,onChange:e=>eu("title",e.target.value),placeholder:"Enter custom title"}),(0,s.jsx)(I.I,{label:"Description",className:"rounded-3xl text-gray-400",value:O.description,onChange:e=>eu("description",e.target.value),placeholder:"Enter custom description"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)(o.z,{disabled:ex.loading_savingCustomData,onClick:()=>{var e,t,a;eA(),localStorage.setItem("savedColors",JSON.stringify(b)),localStorage.setItem("savedColorsToc",JSON.stringify(k)),localStorage.setItem("savedColorsKB",JSON.stringify(S)),localStorage.setItem("savedCustomTextKB",JSON.stringify(O)),localStorage.setItem("kbGradientInfo",JSON.stringify({isGradient:F,gradinetTemplate:P})),m(!0),(0,y.Am)({title:"All your changes have been saved",action:(0,s.jsx)(C(),{href:"/preview/".concat(null!==(a=null==Q?void 0:null===(e=Q.pages_hierarchy[0])||void 0===e?void 0:e.href)&&void 0!==a?a:(0,g.q)(null==Q?void 0:null===(t=Q.pages_hierarchy[0])||void 0===t?void 0:t.href)),children:(0,s.jsx)(o.z,{children:"Go to Preview"})})})},className:"w-full",children:["Save All Changes"," ",ex.loading_savingCustomData&&(0,s.jsx)(K,{})]}),"TOC"===es&&(0,s.jsx)(o.z,{onClick:()=>{var e;let t={activeText:b.activeText,inactiveText:b.inactiveText,hoverText:b.hoverText};T(e=>({...e,...t})),localStorage.setItem("savedColorsToc",JSON.stringify({...k,...t})),(0,y.Am)({title:"Left Panel colors synced with Table of Contents",action:(0,s.jsx)(C(),{href:"/preview/".concat(null==Q?void 0:null===(e=Q.pages_hierarchy[0])||void 0===e?void 0:e.href),children:(0,s.jsx)(o.z,{children:"Go to Preview"})})})},children:"Use Same colors as Leftpanel"}),(0,s.jsx)(o.z,{onClick:()=>{ei(!0)},className:"w-full",variant:"secondary",children:"Reset Colors"}),(0,s.jsx)(C(),{href:"/customize?stage=0",children:(0,s.jsx)(o.z,{className:"w-full",variant:"secondary",children:"Change Template"})}),(0,s.jsxs)(o.z,{variant:"secondary",onClick:()=>er(e=>"LP"===e?"TOC":"TOC"===e?"KB":"LP"),children:["LP"===es?"Modify Table of Contents":"TOC"===es?"Modify Knowledge Base":"Modify Left Panel",(0,s.jsx)(W,{})]})]})]})]})}),(0,s.jsx)(_,{handleReset:()=>{w({...x}),T({...A}),B({...v}),L({...f}),U(!1),Y("midnight"),localStorage.setItem("cusTheme","dark"),localStorage.removeItem("savedColors"),localStorage.removeItem("savedColorsToc"),localStorage.removeItem("savedColorsKB"),localStorage.removeItem("savedCustomTextKB"),window.location.reload()},openResetColorsConfirmModal:el,setopenResetColorsConfirmModal:ei})]}):void 0:null});P.displayName="WebflowEditor";let W=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"ml-1",children:(0,s.jsx)("path",{d:"m9 18 6-6-6-6"})}),_=(0,l.memo)(e=>{let{handleReset:t,openResetColorsConfirmModal:a,setopenResetColorsConfirmModal:r}=e;return(0,s.jsxs)(B.aR,{open:a,onOpenChange:r,children:[(0,s.jsx)(B.vW,{}),(0,s.jsxs)(B._T,{children:[(0,s.jsxs)(B.fY,{children:[(0,s.jsx)("div",{onClick:()=>{r(!1)},className:"relative flex w-full justify-end cursor-pointer -top-3 left-3 mb-2",children:(0,s.jsx)(Y,{})}),(0,s.jsx)(B.yT,{className:"text-white text-base",children:"Are your sure you want to reset all your colors and fallback to the default colors and themes"})]}),(0,s.jsx)(B.xo,{className:"gap-6 flex w-full mt-4 items-center justify-end",children:(0,s.jsx)(o.z,{className:"w-full",onClick:()=>{t(),r(!1)},children:"Reset Colors"})})]})]})});_.displayName=_;let X=(0,l.memo)(e=>{let{isSaved:t}=e;return(0,s.jsxs)("div",{className:"fixed bottom-4 left-4 flex flex-col items-start",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2 rounded-full px-3 py-1.5 w-fit border ".concat(t?"border-green-700":"border-yellow-700"),children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"w-2 h-2 ".concat(t?"bg-green-600":"bg-yellow-600"," rounded-full")}),(0,s.jsx)("div",{className:"absolute inset-0 ".concat(t?"bg-green-500":"bg-yellow-500"," rounded-full animate-ping opacity-75"),style:{animationDuration:"3s"}})]}),(0,s.jsx)("span",{className:"".concat(t?"text-green-500":"text-yellow-500"," text-sm font-medium"),children:t?"Changes Saved":"Unsaved Changes"})]}),!t&&(0,s.jsx)("span",{className:"text-[10px] mt-[6px] text-gray-400",children:'Click "Save All Changes" to save'})]})});X.displayName="SaveIndicator";let Y=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"absolute",children:[(0,s.jsx)("path",{d:"M18 6 6 18"}),(0,s.jsx)("path",{d:"m6 6 12 12"})]}),K=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"animate-spin ml-1",children:(0,s.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})});var Q=a(11163),Z={src:"/_next/static/media/LeftPanel.a2523cc7.png",height:703,width:495,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAADFBMVEUBAgYMECAFCBcfIy52emJrAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAJUlEQVR4nGNgYGRkYmJgYGBmZmIEU4wgipEJLAiVY2RkRKLAAAAGOwAv0uIpvwAAAABJRU5ErkJggg==",blurWidth:6,blurHeight:8},J={src:"/_next/static/media/Navbar.91c34a60.png",height:901,width:1919,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAADFBMVEUFBQQQEBAVFhYsLC3mI9I8AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAHklEQVR4nCWHgQkAAAiDdPv/56gEQcEIZg3HzodAOwG4ABjZb8A1AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},q={src:"/_next/static/media/main1.64c75893.png",height:910,width:1918,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEUEBAQUFBRrT8LKAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGUlEQVR4nGNgYGBkZGRgZGAAMUAkCgNMAQAA8wAK0pJ9dgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},$={src:"/_next/static/media/main2.1646fc2f.png",height:923,width:1919,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEUEAwQQEBHKYIeNAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAFUlEQVR4nGNgYGBkgGAGRjAJ4yEYAACmAAedQSNkAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},ee={src:"/_next/static/media/main3.ac960a97.png",height:918,width:1919,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEUOEhwFBgjByBklAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAEklEQVR4nGNgQAKMjIxwFpIIAACLAAn2x9jjAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},et={src:"/_next/static/media/mixpanel1.edddeed7.png",height:911,width:1909,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEUEBAQPDg8dHB6wCd7aAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAHUlEQVR4nGNgYGBkZGBgZGBgYGBiAjFBDCgNZQAAAVkAEv6X2DgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},ea={src:"/_next/static/media/mixpanel2.1e4ba761.png",height:922,width:1906,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEUEBAQWFha08xUKAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAFUlEQVR4nGNgQABGRkZGJC5IBEwBAACEAAZARRqbAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},es={src:"/_next/static/media/mixpanel3.58ecfee9.png",height:911,width:1909,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEUEBAQTEhA/N7fQAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAG0lEQVR4nGNgYGBkZGRkAAEoxcAAo0FSDAwMAADvAAtusNhbAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},er={src:"/_next/static/media/main1.4487f07b.png",height:925,width:1919,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEX+/v739/fv7/Dn5+eIiIm1tbWLi4tduAVuAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIklEQVR4nDXFuREAMAzDMFJ+9h/ZlyJogCYagYq8P6u3xxwClAAtby5PVwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},el={src:"/_next/static/media/main2.43cb1a41.png",height:922,width:1919,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAHlBMVEX////6+vrz8/ORkZFcXGC/v77k5OdJSEqVlJaLi4rHeUerAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIklEQVR4nEXBwQEAIAjEsPZA0f0X9mmCu3uOgVTdhXxGhQcGVQA/+FeyggAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},ei={src:"/_next/static/media/main3.e13f10c8.png",height:927,width:1919,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEVARVHIysz////w8PDT1NducXpbX2llaHK9v8J4PM+pAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAHUlEQVR4nGNgYGBjZWVnAAFGJiYWVAYHMzMjA
1wMABIAAOU3c+PgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},eo={src:"/_next/static/media/mixpanel1.cb565f18.png",height:916,width:1905,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEX5+fn////v7/Dm5uanpK+uq7XQztRXkPOgAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIUlEQVR4nGNgYGBigGAGZmYwxcjIwAjCDIwMrCwsbIyMAAIKACn9QW9nAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},en={src:"/_next/static/media/mixpanel2.1fda8f41.png",height:917,width:1905,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEX+/v739/i7vLvd3d3n5+jf39/U1NS1InewAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAHElEQVR4nGNgZAABEMnIzMrMAuYwMTGxgYUhAAACegAgXB67ngAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},ec={src:"/_next/static/media/mixpanel3.4d7b3360.png",height:915,width:1907,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEX+/v329vb08+yxTX0KAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAH0lEQVR4nCXIwQ0AAAiDwGv3H9qoHyCIJgku1p57WgwBogAU59fnXwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},ed={src:"/_next/static/media/themeSwitch.6f5d8f50.png",height:551,width:968,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEUAAAAXGBrDd20ZAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAEElEQVR4nGNgwAYYsYoyAAAARAACoPbeQAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5},eh={src:"/_next/static/media/knowledgeBaseImage.da21f7ea.png",height:1784,width:3410,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEUXFxoLCwywxw2EAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAGElEQVR4nGNgZGRkYAARUAYDAyMDFMAYAAFuAA7NG59KAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},em={src:"/_next/static/media/Toc1.6a72ca15.png",height:539,width:438,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAMAAAAC2hU0AAAABlBMVEUBAQEVFRWrYkfbAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAFElEQVR4nGNgYGBkZGQAAShFGgAAAV0ABqyB5VMAAAAASUVORK5CYII=",blurWidth:7,blurHeight:8},eu=a(47530),ex=a(30994),eg=a(98489),eA=a(51362),ev=a(62627),ep=a(28927),ef=a(79440),eb=a(82328),ew=a(72690),ej=a(27269),ek=a(87066),eC=()=>{let e=(0,Q.useRouter)(),[t,a]=(0,l.useState)(null),[i,o]=(0,l.useState)("dark"),[n,c]=(0,l.useState)(),{data:d}=(0,G.useSession)();(0,l.useEffect)(()=>{var e,t;(null==d?void 0:null===(e=d.user)||void 0===e?void 0:e.id)&&c(null==d?void 0:null===(t=d.user)||void 0===t?void 0:t.id)},[d]);let[m,u]=(0,l.useState)({leftPanel:"genericColor",toc:"vercelTOC",navbar:"DarkNavbar_LogoAndLinksLeft_RestAllRight"});return(0,l.useEffect)(()=>{o(localStorage.getItem("cusTheme")||"dark");let e=JSON.parse(localStorage.getItem("templateChoices"));console.log(e),e&&u(e.usersChoseTemplateOptions);let t=async()=>{let e=await h.Z.getItem("pageIDsWithNames");e&&a(e)};return t(),()=>{t()}},[]),(0,s.jsxs)("div",{className:"".concat("dark"===i?"bg-black text-white":"bg-white text-black"," min-h-screen"),children:[(0,s.jsx)(r.Z,{}),(0,s.jsxs)(O.M,{mode:"wait",children:["0"===e.query.stage&&(0,s.jsx)(L.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,s.jsx)(ey,{})},"stage0"),"themeSelection"===e.query.stage&&(0,s.jsx)(L.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,s.jsx)(eS,{cusTheme:i,setCusTheme:o})},"stageThemeSelection"),"LP"===e.query.stage&&(0,s.jsx)(L.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,s.jsx)(eN,{data:t,cusTheme:i,usersChoseTemplateOptions:m,setUsersChoseTemplateOptions:u})},"stageLP"),"TOC"===e.query.stage&&(0,s.jsx)(L.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,s.jsx)(eT,{data:t,cusTheme:i,usersChoseTemplateOptions:m,setUsersChoseTemplateOptions:u})},"stageTOC"),"navbar"===e.query.stage&&(0,s.jsx)(L.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,s.jsx)(eE,{cusTheme:i,usersChoseTemplateOptions:m,setUsersChoseTemplateOptions:u,userId:n})},"stageNavbar"),"customize"===e.query.stage&&(0,s.jsx)(L.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,s.jsx)(P,{cusTheme:i})},"stageCustomize"),"kb"===e.query.stage&&(0,s.jsx)(L.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,s.jsx)(P,{cusTheme:i,isKb:!0})},"stageCustomize")]})]})};let ey=()=>{let[e,t]=(0,l.useState)([{title:"Choose theme for your app",description:"Choose the theme for your app and customize it",img:ed,link:"/customize?stage=themeSelection"},{title:"Select Your Left Panel Style",description:"and modify colors and themes",img:Z,link:"/customize?stage=LP",isZoomedIn:!1},{title:"Select Your Navbar Style",description:"and modify colors and themes",img:J,link:"/customize?stage=navbar"},{title:"Select Your Table-of-Contents Style",description:"and modify colors and themes",img:em,link:"/customize?stage=TOC",isZoomedIn:!1},{title:"Customize the index page of your docs",description:"style your knowledge base page",link:"/customize?stage=kb",isZoomedIn:!1,img:eh}]),a=(0,Q.useRouter)();return(0,s.jsxs)("div",{className:"pt-28",children:[(0,s.jsx)("div",{className:"text-4xl w-full flex justify-center mb-20",children:(0,s.jsx)("span",{className:"border-b border-gray-300 transform translate-y-full opacity-0 transition-all delay-150 duration-700 ease-out animate-slide-in ",children:"Style Your Navbar, Left Panel And Table of Contents"})}),(0,s.jsx)("div",{className:"flex justify-start gap-16 flex-wrap w-[80rem] mx-auto",children:e.map((e,r)=>(0,s.jsxs)(n.Zb,{className:"w-full max-w-[24rem] overflow-hidden rounded-xl",onMouseEnter:()=>{t(e=>e.map((e,t)=>t===r?{...e,isZoomedIn:!0}:{...e,isZoomedIn:!1}))},onMouseLeave:()=>{t(e=>e.map((e,t)=>({...e,isZoomedIn:!1})))},children:[(0,s.jsxs)(n.aY,{className:"p-0 relative",children:[(0,s.jsxs)("div",{className:"relative h-80 overflow-hidden",children:[(0,s.jsx)(L.E.img,{src:e.img.src,alt:"Left Panel",className:"w-full h-full object-cover px-7 pt-10",initial:{scale:1},animate:{scale:e.isZoomedIn?1.05:1},transition:{duration:.3}}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 to-transparent"})]}),(0,s.jsxs)(L.E.div,{className:"p-2 text-white",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-gray-400",children:e.description})]})]}),(0,s.jsx)(n.eW,{className:"border-t border-gray-700 p-4",children:(0,s.jsx)(o.z,{className:"w-full mt-1",onClick:()=>a.push(e.link),children:"Choose theme for your app"===e.title?"Choose Theme":"Choose Template"})})]},r))})]})},eN=e=>{let{data:t,cusTheme:a,usersChoseTemplateOptions:r,setUsersChoseTemplateOptions:i}=e,n=(0,Q.useRouter)(),[c,d]=(0,l.useState)(!1),h=()=>{d(!c)};return(0,s.jsxs)("div",{className:"".concat("dark"===a?"pt-20":"pt-28"),children:[(0,s.jsx)("div",{className:"text-4xl w-full flex justify-center",children:(0,s.jsx)("p",{className:"border-b border-gray-300 transform translate-y-full opacity-0 transition-all delay-150 duration-700 ease-out animate-slide-in",children:"Choose A left panel template"})}),(0,s.jsx)("p",{className:"text-sm text-gray-400 text-center mt-3",children:"On the next step you choose themes"}),(0,s.jsx)("div",{className:"mt-8 max-h-[430px] overflow-y-auto noScrollbar ",children:t&&(0,s.jsxs)(D.E,{value:r.leftPanel,onValueChange:e=>{i(t=>{let a={...t};return a.leftPanel=e,a})},className:"flex gap-16 justify-center",children:[(0,s.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center mt-8 mb-4 gap-2",children:[(0,s.jsx)(D.m,{value:"genericColor",id:"genericColor",className:"".concat("dark"===a?"!text-white !border-white":"!border-black !text-black")}),(0,s.jsx)("label",{htmlFor:"genericColor",className:"text-sm ".concat("dark"===a?"text-gray-400":"text-black"),children:"Minmal Left panel"})]}),(0,s.jsx)("div",{className:"hidden lg:block lg:w-[20rem] border ".concat("dark"===a?"border-gray-800":"border-slate-200"," rounded-md px-2 pt-5"),children:(0,s.jsx)(eu.Z,{leftNavbarData:t.pages_hierarchy,isMenuOpen:c,toggleMenu:h,isPreview:!0,cusTheme:a,fromPreviewPage:!0})})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center mt-8 mb-4 gap-2",children:[(0,s.jsx)(D.m,{value:"vercelLP",id:"vercelLP",className:"".concat("dark"===a?"!text-white !border-white":"!border-black !text-black")}),(0,s.jsx)("label",{htmlFor:"vercelLP",className:"text-sm ".concat("dark"===a?"text-gray-400":"text-black"),children:"Active border Left Panel "})]}),(0,s.jsx)("div",{className:"hidden lg:block lg:w-[20rem] border ".concat("dark"===a?"border-gray-800":"border-slate-200"," rounded-md px-2 pt-5"),children:(0,s.jsx)(ex.Z,{leftNavbarData:t.pages_hierarchy,isMenuOpen:c,toggleMenu:h,isPreview:!0,cusTheme:a,fromPreviewPage:!0})})]})]})}),(0,s.jsxs)("div",{className:"mx-auto w-[44rem] mt-16 pb-8 flex items-center gap-10",children:[(0,s.jsx)(o.z,{variant:"secondary",onClick:()=>{n.push("/customize?stage=TOC")},className:"w-full",children:"Go Back"}),(0,s.jsx)(o.z,{onClick:()=>{n.push("/customize?stage=navbar")},className:"w-full",children:"Choose Navbar"})]})]})},eT=e=>{let{data:t,cusTheme:a,usersChoseTemplateOptions:r,setUsersChoseTemplateOptions:i}=e,n=(0,Q.useRouter)(),c=(0,l.useRef)([{id:"heading-1",text:"these are"},{id:"heading-2",text:"some sample"},{id:"heading-3",text:"words for"},{id:"heading-4",text:"table of contents"},{id:"heading-6",text:"to show"},{id:"heading-7",text:"how it"},{id:"heading-8",text:"looks"}]);return(0,s.jsxs)("div",{className:"".concat("dark"===a?"pt-20":"pt-28"),children:[(0,s.jsx)("div",{className:"text-4xl w-full flex justify-center",children:(0,s.jsx)("p",{className:"text-4xl text-center border-b border-gray-300 transform translate-y-full opacity-0 transition-all delay-150 duration-700 ease-out animate-slide-in",children:"Choose A Table Of Contents template"})}),(0,s.jsx)("p",{className:"text-sm text-gray-400 text-center mt-3",children:"On the next step you choose themes"}),(0,s.jsx)("div",{className:"mt-8 ",children:t&&(0,s.jsxs)(D.E,{value:null==r?void 0:r.toc,onValueChange:e=>{i({...r,toc:e})},className:"flex gap-16 justify-center",children:[(0,s.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center mt-8 mb-4 gap-2",children:[(0,s.jsx)(D.m,{value:"vercelTOC",id:"vercelTOC",className:" ".concat("dark"===a?"!text-white !border-white":"!border-black !text-black")}),(0,s.jsx)("label",{htmlFor:"vercelTOC",className:"text-sm ".concat("dark"===a?"text-gray-400":"text-black"),children:"Active border TOC"})]}),(0,s.jsx)("div",{className:"hidden lg:block lg:w-[20rem] border ".concat("dark"===a?"border-gray-700":"border-slate-100"," rounded-md px-2 pt-5"),children:(0,s.jsx)(eg.Z,{headings:c.current,activeId:"heading-1",isPreview:!0,cusTheme:a})})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center mt-8 mb-4 gap-2",children:[(0,s.jsx)(D.m,{value:"genericColorTOC",id:"genericColorTOC",className:"".concat("dark"===a?"!text-white !border-white":"!border-black !text-black")}),(0,s.jsx)("label",{htmlFor:"genericColorTOC",className:"text-sm ".concat("dark"===a?"text-gray-400":"text-black"),children:"Minmal TOC"})]}),(0,s.jsx)("div",{className:"hidden lg:block lg:w-[20rem] border ".concat("dark"===a?"border-gray-700":"border-slate-100"," rounded-md px-2 pt-5"),children:(0,s.jsx)(eA.Z,{headings:c.current,activeId:"heading-1",isPreview:!0,cusTheme:a})})]})]})}),(0,s.jsxs)("div",{className:"mx-auto w-[44rem] mt-16 flex items-center gap-10",children:[(0,s.jsx)(o.z,{variant:"secondary",onClick:()=>{n.push("/customize?stage=LP")},className:"w-full",children:"Go Back"}),(0,s.jsx)(o.z,{onClick:()=>{n.push("/customize?stage=LP")},className:"w-full",children:"Next Step"})]})]})},eE=e=>{let{cusTheme:t,usersChoseTemplateOptions:a,setUsersChoseTemplateOptions:r,userId:i}=e,c=(0,Q.useRouter)(),[d,h]=(0,l.useState)(1),[m,u]=(0,l.useState)(!1),[x,g]=(0,l.useState)(null),[A,v]=(0,l.useState)(),[p,f]=(0,l.useState)([,,,].fill({text:"",url:""})),[b,w]=(0,l.useState)({github:"",reddit:"",twitter:"",linkedin:""});(0,l.useEffect)(()=>{let e=JSON.parse(localStorage.getItem("templateChoices"));e&&(g(e.otherData.logo),w(e.otherData.socials),f(e.otherData.links))},[]);let j={reddit:(0,s.jsx)(eI,{className:"h-5 w-5"}),github:(0,s.jsx)(eM,{className:"h-5 w-5"}),twitter:(0,s.jsx)(eL,{className:"h-5 w-5"}),linkedin:(0,s.jsx)(eB,{className:"h-5 w-5"}),discord:(0,s.jsx)(eO,{className:"h-5 w-5"})},k=(0,l.useRef)(null),C=async()=>
1{if(!A)return null;try{let e=new FormData;e.append("file",A),e.append("userId",i);let t=await ek.Z.post("".concat((0,H.D)(),"/upload-logo"),e,{headers:{"Content-Type":"multipart/form-data"}});if(t.data.success)return t.data.url;return null}catch(e){return console.log(e),(0,y.Am)({title:"Failed to upload image"}),null}},N=(0,l.useCallback)((e,t,a)=>{f(s=>{let r=[...s];return r[e]={...r[e],[t]:a},r})},[]),T=(0,l.useCallback)((e,t)=>{w(a=>({...a,[e]:t}))},[]),E=e=>(0,ej.pM)(e),S=(e,t)=>"twitter"===e?t.includes("twitter.com")||t.includes("x.com"):t.includes({github:"github.com",reddit:"reddit.com",twitter:"twitter.com",linkedin:"linkedin.com"}[e]),B=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;try{u(!0);let s=await C(),r=s||x||null;console.log(r,"finalLogoUrl"),s&&g(s),localStorage.setItem("templateChoices",JSON.stringify({usersChoseTemplateOptions:a,otherData:{socials:t,links:e,logo:r}})),(0,eb.T)("templateChoices",{usersChoseTemplateOptions:a,otherData:{socials:t,links:e,logo:r}})}catch(e){console.log("problem saving data")}};return(0,s.jsxs)("div",{className:"space-y-8 mt-10 pt-12 ".concat(2===d&&"pb-10"),children:[(0,s.jsx)("div",{className:"flex items-center flex-col gap-8",children:1===d?(0,s.jsx)("div",{className:"transform translate-y-full opacity-0 transition-all delay-150 duration-700 ease-out animate-slide-in",children:(0,s.jsx)("h2",{className:"text-4xl border-b border-gray-300 mb-6 ".concat("dark"===t?"text-white":"text-black"," text-left"),children:"Choose A Navbar Template"})}):(0,s.jsxs)("div",{className:"transform translate-y-full opacity-0 transition-all mb-10 delay-150 flex flex-col items-center duration-700 ease-out animate-slide-in",children:[(0,s.jsx)("h2",{className:"text-4xl border-b w-fit border-gray-300 ".concat("dark"===t?"text-white":"text-black"," text-left"),children:"Upload Logo and Add Links"}),(0,s.jsx)("p",{className:"text-sm mt-3 text-red-500",children:"Note: Only the socials and external links added here will be shown in the production version of your app."})]})}),(0,s.jsxs)(O.M,{mode:"wait",children:[1===d&&(0,s.jsxs)(L.E.section,{className:"",children:[(0,s.jsx)("div",{className:"4xl:max-w-[1800px] 4xl:mx-auto",children:(0,s.jsxs)(D.E,{value:a.navbar,onValueChange:e=>{r(t=>{let a={...t};return a.navbar=e,a})},className:"flex flex-col gap-20 mx-20",children:[(0,s.jsxs)("div",{className:"flex items-center pb-4 border-b border-gray-400",children:[(0,s.jsx)("div",{children:(0,s.jsx)(D.m,{value:"DarkNavbarLogo_Left_SearchMiddle",id:"DarkNavbarLogo_Left_SearchMiddle",className:"mr-4 ".concat("dark"===t?"!text-white !border-white":"!border-black !text-black")})}),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(ev.Z,{userNavbarData:{socials:b,links:p,logo:x},cusTheme:t,preview:!0})})]}),(0,s.jsxs)("div",{className:"flex items-center pb-4 border-b border-gray-400",children:[(0,s.jsx)("div",{children:(0,s.jsx)(D.m,{value:"DarkNavbar_LogoAndLinksLeft_RestAllRight",id:"DarkNavbar_LogoAndLinksLeft_RestAllRight",className:"mr-4 ".concat("dark"===t?"!text-white !border-white":"!border-black !text-black")})}),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(ep.Z,{cusTheme:t,userNavbarData:{socials:b,links:p,logo:x},preview:!0})})]}),(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)(D.m,{value:"DarkNavbar_LogoLeft_RestAllRight",id:"DarkNavbar_LogoLeft_RestAllRight",className:"mr-4 ".concat("dark"===t?"!text-white !border-white":"!border-black !text-black")})}),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(ef.Z,{cusTheme:t,userNavbarData:{socials:b,links:p,logo:x},preview:!0})})]})]})}),(0,s.jsx)("div",{className:"flex w-[35rem] mx-auto mt-[5.5rem]",children:(0,s.jsx)(o.z,{onClick:()=>{h(2)},className:"w-full ".concat("dark"===t?"!bg-white":"!bg-slate-200/90"),children:"Add Logo and links"})})]},1),2===d&&(0,s.jsxs)(L.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"space-y-8 px-24  !mt-2",children:[(0,s.jsxs)(n.Zb,{className:"mx-auto w-1/2",children:[(0,s.jsx)(n.Ol,{children:(0,s.jsx)(n.ll,{children:"Upload Logo"})}),(0,s.jsx)(n.aY,{children:(0,s.jsxs)("div",{className:"border-2 border-dashed border-muted-foreground rounded-lg p-8 text-center w-full relative",children:[x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{src:x,alt:"Uploaded logo",className:"max-h-32 mx-auto"}),(0,s.jsx)("button",{onClick:()=>{g(null)},className:"absolute top-2 right-2 p-1 bg-red-500 text-white rounded-full",children:(0,s.jsx)(eF,{})})]}):(0,s.jsx)("div",{className:"flex flex-col items-center",children:(0,s.jsx)(eU,{className:"h-12 w-12 text-muted-foreground"})}),(0,s.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",onChange:e=>{let t=e.target.files[0];if(t&&t.size>2097152){alert("File size exceeds 2 MB. Note the larger the image the more time it takes to load it");return}v(t),g(URL.createObjectURL(t))},className:"hidden",ref:k}),(0,s.jsxs)(o.z,{onClick:()=>{k.current.click()},variant:"outline",className:"mt-4 cursor-pointer",children:[(0,s.jsx)(eR,{className:"mr-2"})," Choose File"]})]})})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsxs)(n.Zb,{className:"!w-[43%]",children:[(0,s.jsx)(n.Ol,{children:(0,s.jsxs)(n.ll,{children:["Add external Links ",(0,s.jsx)("span",{className:"text-gray-500 text-sm",children:"(Optional)"})]})}),(0,s.jsx)(n.aY,{className:"mt-4",children:(0,s.jsx)("div",{className:"space-y-4",children:p.map((e,t)=>(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"link-text-".concat(t),className:"text-xs",children:"Link Text"}),(0,s.jsx)(I.I,{id:"link-text-".concat(t),value:e.text,onChange:e=>N(t,"text",e.target.value),placeholder:"".concat(0===t?"link text, home":"link text, contact"),className:"mt-1"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"link-url-".concat(t),className:"text-xs",children:"URL"}),(0,s.jsx)(I.I,{id:"link-url-".concat(t),value:e.url,onChange:e=>N(t,"url",e.target.value),placeholder:"".concat(0===t?"link URL, home.com":"link URL, conatct.com"),className:"mt-1"})]})]},t))})})]}),(0,s.jsxs)(n.Zb,{className:"!w-[43%]",children:[(0,s.jsx)(n.Ol,{children:(0,s.jsxs)(n.ll,{children:["Add Your Socials ",(0,s.jsx)("span",{className:"text-gray-500 text-sm",children:"(Optional)"})]})}),(0,s.jsx)(n.aY,{className:"mt-4",children:(0,s.jsx)("div",{className:"space-y-8",children:Object.entries(b).map(e=>{let[t,a]=e;return(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsx)("div",{className:"w-8 h-8 flex items-center justify-center",children:j[t]}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(I.I,{id:"social-".concat(t),value:a,onChange:e=>T(t,e.target.value),placeholder:"Enter ".concat(t," URL")})})]},t)})})})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-5",children:[(0,s.jsx)(o.z,{variant:"secondary",className:"w-48",onClick:()=>{h(1)},children:"Back"}),(0,s.jsx)(o.z,{onClick:()=>{var e;let t=!0;if(p.forEach(e=>{e.text&&!E(e.url)&&((0,y.Am)({title:"Invalid URL for link: ".concat(e.text)}),t=!1)}),Object.entries(b).forEach(e=>{let[a,s]=e;s&&!S(a,s)&&((0,y.Am)({title:"Invalid URL for ".concat(a)}),t=!1)}),!x&&!(null===(e=Object.values(b))||void 0===e?void 0:e.some(e=>e))&&!(null==p?void 0:p.some(e=>e.text&&e.url))){(0,y.Am)({title:"You have not added a logo or links for your brand, continue?",action:(0,s.jsx)(o.z,{onClick:()=>{B(),c.push("/customize?stage=customize")},children:"Continue"})});return}t&&(B(p.map(e=>e.url&&!e.url.startsWith("https://")?{...e,url:"https://".concat(e.url)}:e),Object.fromEntries(Object.entries(b).map(e=>{let[t,a]=e;return a&&!a.startsWith("https://")?[t,"https://".concat(a)]:[t,a]}))),(0,y.Am)({title:"Template Choices Saved"}),c.push("/customize?stage=customize"))},className:"w-56 ".concat("dark"===t?"!bg-white":"!bg-slate-200/90"),children:" Save and Choose Theme"})]})]},2)]})]})},eS=e=>{let{cusTheme:t,setCusTheme:a}=e,r=(0,Q.useRouter)(),i=[{title:"Dark Mode",description:"Choose dark mode for your app",images:[q,et,ea,$,es,ee],btnText:"Cho
1ose Dark Mode"},{title:"Light Mode",description:"Choose light mode for your app",images:[er,eo,en,el,ec,ei],btnText:"Choose Light Mode"}];(0,l.useEffect)(()=>{let e=document.createElement("style");return e.textContent="dark"===t?ew.m:ew.n,document.head.appendChild(e),()=>{document.head.removeChild(e)}},[t]);let[c,d]=(0,l.useState)(i.map(()=>0)),[h,m]=(0,l.useState)(i.map(()=>0)),[u,x]=(0,l.useState)(i.map(()=>0)),g=(0,l.useRef)(i.map(()=>l.createRef())),A=e=>{d(t=>{let a=[...t];return a[e]=(a[e]+1)%i[e].images.length,a})},v=e=>{d(t=>{let a=[...t];return a[e]=(a[e]-1+i[e].images.length)%i[e].images.length,a})},p=(e,t)=>{m(a=>{let s=[...a];return s[t]=e.targetTouches[0].clientX,s})},f=(e,t)=>{x(a=>{let s=[...a];return s[t]=e.targetTouches[0].clientX,s})},b=e=>{h[e]-u[e]>75&&A(e),h[e]-u[e]<-75&&v(e)};return(0,l.useEffect)(()=>{c.forEach((e,t)=>{let a=g.current[t].current;a&&(a.style.transition="transform 0.3s ease-in-out",a.style.transform="translateX(-".concat(100*e,"%)"))})},[c]),(0,s.jsx)("div",{className:"min-h-screen pt-28",children:(0,s.jsxs)("div",{className:"container mx-auto",children:[(0,s.jsx)("div",{className:"mb-14",children:(0,s.jsx)("div",{className:"text-4xl w-full flex justify-center",children:(0,s.jsx)("span",{className:"border-b border-gray-300 transform translate-y-full opacity-0 transition-all delay-150 duration-700 ease-out animate-slide-in",children:"Choose a theme for your app"})})}),(0,s.jsx)("div",{className:"flex flex-col md:flex-row items-center gap-16",children:i.map((e,t)=>(0,s.jsxs)(n.Zb,{className:"w-full max-w-3xl",children:[(0,s.jsx)(n.Ol,{children:(0,s.jsx)(n.ll,{children:e.title})}),(0,s.jsxs)(n.aY,{className:"mt-2 relative overflow-hidden",children:[(0,s.jsx)("div",{className:"aspect-w-16 aspect-h-9 overflow-hidden",children:(0,s.jsx)("div",{className:"flex h-full",ref:g.current[t],onTouchStart:e=>p(e,t),onTouchMove:e=>f(e,t),onTouchEnd:()=>b(t),children:e.images.map((e,t)=>(0,s.jsx)("div",{className:"w-full flex-shrink-0",children:(0,s.jsx)("img",{src:e.src,alt:"Preview ".concat(t+1),className:"w-full h-full object-contain rounded-md border border-gray-800"})},t))})}),(0,s.jsx)("button",{onClick:()=>v(t),className:"absolute left-6 top-1/2 transform -translate-y-1/2 bg-black bg-opacity-50 text-white p-2 rounded-full","aria-label":"Previous image",children:(0,s.jsx)(eV,{className:"h-6 w-6"})}),(0,s.jsx)("button",{onClick:()=>A(t),className:"absolute right-6 top-1/2 transform -translate-y-1/2 bg-black bg-opacity-50 text-white p-2 rounded-full","aria-label":"Next image",children:(0,s.jsx)(eD,{className:"h-6 w-6"})}),(0,s.jsx)("div",{className:"absolute -bottom-0 left-1/2 transform -translate-x-1/2 flex space-x-2",children:e.images.map((e,a)=>(0,s.jsx)("span",{className:"h-2 w-2 rounded-full ".concat(a===c[t]?"bg-white":"bg-gray-400")},a))})]}),(0,s.jsx)(n.eW,{className:"w-full mt-10",children:(0,s.jsx)(o.z,{onClick:()=>{0===t?(localStorage.setItem("cusTheme","dark"),a("dark")):(localStorage.setItem("cusTheme","light"),a("light")),r.push("/customize?stage=TOC")},className:"w-full",children:e.btnText})})]},t))})]})})},eB=()=>(0,s.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 448 512",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"})}),eI=()=>(0,s.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 
117.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})}),eM=()=>(0,s.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 496 512",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"})}),eO=()=>(0,s.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 640 512",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"})}),eL=()=>(0,s.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})}),eR=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","stroke-linejoin":"round",className:"mr-2 h-4 w-4",children:[(0,s.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,s.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,s.jsx)("line",{x1:"12",x2:"12",y1:"3",y2:"15"})]}),eF=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","stroke-linejoin":"round",class:"lucide lucide-x",children:[(0,s.jsx)("path",{d:"M18 6 6 18"}),(0,s.jsx)("path",{d:"m6 6 12 12"})]}),eU=()=>(0,s.jsx)("svg",{width:"50",height:"36",viewBox:"0 0 50 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M22.75 36H12.625C9.2125 36 6.29725 34.8187 3.87925 32.4562C1.45975 30.0937 0.25 27.2062 0.25 23.7937C0.25 20.8687 1.13125 18.2625 2.89375 15.975C4.65625 13.6875 6.9625 12.225 9.8125 11.5875C10.75 8.1375 12.625 5.34375 15.4375 3.20625C18.25 1.06875 21.4375 0 25 0C29.3875 0 33.109 1.52775 36.1645 4.58325C39.2215 7.64025 40.75 11.3625 40.75 15.75C43.3375 16.05 45.4848 17.1653 47.1918 
119.0958C48.8973 21.0278 49.75 23.2875 49.75 25.875C49.75 28.6875 48.766 31.0785 46.798 33.048C44.8285 35.016 42.4375 36 39.625 36H27.25V19.9125L30.85 23.4L34 20.25L25 11.25L16 20.25L19.15 23.4L22.75 19.9125V36Z",fill:"#F8F8F8"})}),eD=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-chevron-right",children:(0,s.jsx)("path",{d:"m9 18 6-6-6-6"})}),eV=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-chevron-left",children:(0,s.jsx)("path",{d:"m15 18-6-6 6-6"})})}},function(e){e.O(0,[9483,1664,1446,7699,7222,7066,1930,4605,3541,6908,8079,4816,4510,9892,9527,9128,6431,7690,2888,9774,179],function(){return e(e.s=98624)}),_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.