1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7482],{76489:function(e,t){"use strict";/*! 2 * cookie 3 * Copyright(c) 2012-2014 Roman Shtylman 4 * Copyright(c) 2015 Douglas Christopher Wilson 5 * MIT Licensed 6 */t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},o=(t||{}).decode||n,i=0;i<e.length;){var s=e.indexOf("=",i);if(-1===s)break;var a=e.indexOf(";",i);if(-1===a)a=e.length;else if(a<s){i=e.lastIndexOf(";",s-1)+1;continue}var c=e.slice(i,s).trim();if(void 0===r[c]){var l=e.slice(s+1,a).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),r[c]=function(e,t){try{return t(e)}catch(t){return e}}(l,o)}i=a+1}return r},t.serialize=function(e,t,n){var s=n||{},a=s.encode||i;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var c=a(t);if(c&&!o.test(c))throw TypeError("argument val is invalid");var l=e+"="+c;if(null!=s.maxAge){var d=s.maxAge-0;if(isNaN(d)||!isFinite(d))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(d)}if(s.domain){if(!o.test(s.domain))throw TypeError("option domain is invalid");l+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw TypeError("option path is invalid");l+="; Path="+s.path}if(s.expires){var p=s.expires;if("[object Date]"!==r.call(p)&&!(p instanceof Date)||isNaN(p.valueOf()))throw TypeError("option expires is invali
6d");l+="; Expires="+p.toUTCString()}if(s.httpOnly&&(l+="; HttpOnly"),s.secure&&(l+="; Secure"),s.partitioned&&(l+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():s.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l};var r=Object.prototype.toString,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}},47041:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},n=this&&this.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var i=r(76489),s=function(){return"undefined"!=typeof window},a=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set},c=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&a(null==e?void 0:e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&a(null==e?void 0:e.res.cookies)||!!(null==e?void 0:e.cookies)&&a(e.cookies())},l=function(e){var t={};return e.getAll().forEach(function(e){var r=e.name,o=e.value;t[r]=o}),t},d=function(e){try{if("string"==typeof e)return e;return JSON.stringify(e)}catch(t){return e}};t.getCookies=function(e){if(c(e)){if(null==e?void 0:e.req)return l(e.req.cookies);if(null==e?void 0:e.cookies)return l(e.cookies())}if(e&&(t=e.req),!s())return t&&t.cookies?t.cookies:t&&t.headers.cookie?(0,i.parse)(t.headers.cookie):{};for(var t,r={},o=document.cookie?document.cookie.split("; "):[],n=0,a=o.length;n<a;n++){var d=o[n].split("="),p=d.slice(1).join("=");r[d[0]]=p}return r},t.getCookie=function(e,r){var o=(0,t.getCookies)(r)[e];if(void 0!==o)return o?o.replace(/(%[0-9A-Z]{2}
6)+/g,decodeURIComponent):o},t.setCookie=function(e,t,r){if(c(r)){var a,l,p,u=r.req,m=r.res,h=r.cookies,f=n(r,["req","res","cookies"]),y=o({name:e,value:d(t)},f);u&&u.cookies.set(y),m&&m.cookies.set(y),h&&h().set(y);return}if(r){var u=r.req,m=r.res,g=n(r,["req","res"]);l=u,p=m,a=g}var x=(0,i.serialize)(e,d(t),o({path:"/"},a));if(s())document.cookie=x;else if(p&&l){var v=p.getHeader("Set-Cookie");if(Array.isArray(v)||(v=v?[String(v)]:[]),p.setHeader("Set-Cookie",v.concat(x)),l&&l.cookies){var w=l.cookies;""===t?delete w[e]:w[e]=d(t)}if(l&&l.headers&&l.headers.cookie){var w=(0,i.parse)(l.headers.cookie);""===t?delete w[e]:w[e]=d(t),l.headers.cookie=Object.entries(w).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.deleteCookie=function(e,r){return(0,t.setCookie)(e,"",o(o({},r),{maxAge:-1}))},t.hasCookie=function(e,r){return!!e&&(0,t.getCookies)(r).hasOwnProperty(e)}},4179:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/preview/[...slug]",function(){return r(78039)}])},59873:function(e,t,r){"use strict";var o=r(85893),n=r(74278),i=r.n(n);t.Z=e=>{let{render:t}=e;return(0,o.jsx)("div",{children:t&&(0,o.jsx)(i(),{autorun:{duration:.4},width:"1300px",height:"1000px"})})}},44667:function(e,t,r){"use strict";var o=r(85893),n=r(9008),i=r.n(n);let s=(0,r(67294).memo)(e=>{let{title:t,description:r,keywords:n,canonicalUrl:s}=e;return(0,o.jsxs)(i(),{children:[(0,o.jsx)("title",{children:t}),(0,o.jsx)("meta",{name:"description",content:r}),(0,o.jsx)("meta",{name:"keywords",content:n.join(", ")}),(0,o.jsx)("link",{rel:"canonical",href:s}),(0,o.jsx)("meta",{property:"og:title",content:t}),(0,o.jsx)("meta",{property:"og:description",content:r}),(0,o.jsx)("meta",{property:"og:url",content:s}),(0,o.jsx)("meta",{property:"og:site_name",content:t}),(0,o.jsx)("meta",{property:"og:title",content:t}),(0,o.jsx)("meta",{property:"og:description",content:r}),(0,o.jsx)("meta",{property:"og:url",content:s}),(0,o.jsx)("meta",{property:"og:type",content:"saas"}),(0,o.jsx)("meta",{property:"og:image",content:"https://cypherscribe-tenant-images.s3.ap-south-1.amazonaws.com/Screenshot+2024-11-15+at+00.55.06.png"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"CypherScribe documentation"}),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,o.jsx)("meta",{name:"twitter:site",content:"@cypherscribe"}),(0,o.jsx)("meta",{name:"twitter:creator",content:"@govind755"}),(0,o.jsx)("meta",{name:"twitter:title",content:t}),(0,o.jsx)("meta",{name:"twitter:description",content:r}),(0,o.jsx)("link",{rel:"icon",href:"https://cypherscribe-tenant-images.s3.ap-south-1.amazonaws.com/cs-large2.png",type:"image/png"}),(0,o.jsx)("meta",{property:"og:image",content:"https://cypherscribe-tenant-images.s3.ap-south-1.amazonaws.com/Screenshot+2024-11-15+at+00.55.06.png"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"Cypher Scribe Logo"}),(0,o.jsx)("meta",{name:"twitter:image",content:"https://cypherscribe-tenant-images.s3.ap-south-1.amazonaws.com/Screenshot+2024-11-15+at+00.55.06.png"}),(0,o.jsx)("meta",{name:"twitter:image:alt",content:"Cypher Scribe Logo"})]})});s.displayName="seo",t.Z=s},96782:function(e,t,r){"use strict";r.d(t,{Df:function(){return c},LM:function(){return a},Vq:function(){return h},Ws:function(){return m},X2:function(){return i},ZC:function(){return p},_S:function(){return o},dY:function(){return u},j0:function(){return s},tj:function(){return f},xF:function(){return d},y6:function(){return n},yW:function(){return l}});let o={title:"Affordable Pricing Plans for CypherScribe Docs Platform",description:"Unlock the full potential of CypherScribeâs no-code documentation platform at flexible and budget-friendly pricing. Choose the perfect plan for your team and streamline your documentation workflow.",keywords:["CypherScribe pricing plans","affordable documentation pricing","best no-code docs platform","developer documentation pricing","interactive docs pricing"],canonicalUrl:"https://cypherscribe.com/pricing"},n={title:"Get in Touch with CypherScribe - Weâre Here to Help",description:"Need assistance or have questions? Contact CypherScribeâs supp
6ort team for expert guidance on using our interactive documentation platform.",keywords:["contact CypherScribe support","CypherScribe help desk","documentation support","no-code docs assistance","CypherScribe customer service"],canonicalUrl:"https://cypherscribe.com/contact"},i={title:"CypherScribe Terms of Service - Understand Our Policies",description:"Review CypherScribeâs Terms of Service for clear guidance on using our no-code documentation solution. Know your rights and responsibilities.",keywords:["CypherScribe Terms of Service","documentation platform policies","no-code documentation terms","user agreement for docs platform"],canonicalUrl:"https://cypherscribe.com/tos"},s={title:"CypherScribe Privacy Policy - Your Data, Our Commitment",description:"Learn how CypherScribe prioritizes your privacy and protects your data. Review our comprehensive privacy policy to stay informed.",keywords:["CypherScribe privacy policy","data protection policy","documentation data security","user privacy assurance","no-code platform privacy"],canonicalUrl:"https://cypherscribe.com/privacy-policy"},a={title:"CypherScribe Account Settings - Personalize Your Experience",description:"Access and customize your CypherScribe account settings for a seamless and tailored documentation experience. Manage preferences and updates easily.",keywords:["CypherScribe account settings","customize documentation settings","user preferences for docs","personalized no-code platform","manage CypherScribe account"],canonicalUrl:"https://cypherscribe.com/settings"},c={title:"Your CypherScribe Workspace - Centralized Documentation Hub",description:"Explore your CypherScribe workspace where you can build, manage, and customize your documentation projects efficiently with our no-code tools.",keywords:["CypherScribe workspace","documentation project dashboard","manage docs projects","no-code workspace for docs","interactive docs management"],canonicalUrl:"https://cypherscribe.com/workspace"},l={title:"Live Docs Preview - CypherScribeâs Real-Time Review Tool",description:"Preview your documentation in real-time before going live. Ensure accuracy and seamless functionality with CypherScribeâs advanced preview features.",keywords:["real-time docs preview","CypherScribe documentation review","live document preview","check documentation before publishing","interactive preview for docs"],canonicalUrl:"https://cypherscribe.com/preview"},d={title:"Effortless Editing for Your Docs - CypherScribeâs No-Code Tools",description:"Make changes and updates to your documentation seamlessly with CypherScribeâs user-friendly editing tools. Keep content relevant and precise.",keywords:["edit documentation","no-code document editing","CypherScribe editor","update docs easily","edit docs platform"],canonicalUrl:"https://cypherscribe.com/edit"},p={title:"Seamless Notion Integration - Convert and Import Effortlessly",description:"Transform your Notion pages into comprehensive, interactive documentation with CypherScribeâs seamless integration tools.",keywords:["Notion to documentation","CypherScribe Notion import","convert Notion pages to docs","Notion integration for docs","Notion to interactive documentation"],canonicalUrl:"https://cypherscribe.com/notion-integration"},u={title:"Get Started with CypherScribe - Smooth Onboarding Experience",description:"Join CypherScribe and experience a hassle-free onboarding process. Set up your interactive documentation in minutes.",keywords:["CypherScribe onboarding","start with documentation platform","onboarding for docs creation","quick start guide for CypherScribe","setup interactive docs"],canonicalUrl:"https://cypherscribe.com/onboarding"},m={title:"Payment Confirmation - CypherScribe Docs Platform",description:"Check your payment status and enjoy uninterrupted access to CypherScribeâs powerful documentation tools.",keywords:["CypherScribe payment status","confirm payment for docs platform","billing status for CypherScribe","subscription payment confirmation","verify docs platform payment"],canonicalUrl:"https://cypherscribe.com/payment-status"},h={title:"Your Documentation Index - Explore and Navigate",description:"Access and manage your documentation index with CypherScribe. Organize and view your interactive documents effortlessly.",keywords:["CypherScribe docs index","documentation management","view interactive documents","navigate docs platform","index page for documentation"]},f={title:"CypherScribe - Transform Data into Developer Docs Instantly",description:"Create, customize, and launch interactive, SEO-optimized Developer documentation in 18 seconds with CypherScribe. Experience the ultimate no-code documentation solution for teams and businesses.",keywords:["no-code documentation platform","developer-friendly docs","interactive docs builder","CypherScribe platform","fast documentation creation","customizable documentation","SEO-friendly docs","best docs tool","developer documentation solution","instant documentation builder"],canonicalUrl:"https://cypherscribe.com"}},71112:function(e,t,r){"use strict";r.d(t,{$N:function(){return h},Be:function(){return f},Vq:function(){return a},cN:function(){return m},cZ:function(){return p},fK:function(){return u},hg:function(){return c}});var o=r(85893),n=r(67294),i=r(89056),s=r(59923);let a=i.fC,c=i.xz,l=i.h_;i.x8;let d=n.forwardRef((e,t)=>
6{let{className:r,...n}=e;return(0,o.jsx)(i.aV,{ref:t,className:(0,s.cn)("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n})});d.displayName=i.aV.displayName;let p=n.forwardRef((e,t)=>{let{className:r,children:n,...a}=e;return(0,o.jsxs)(l,{children:[(0,o.jsx)(d,{}),(0,o.jsxs)(i.VY,{ref:t,className:(0,s.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-slate-200 bg-white p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-slate-800 dark:bg-slate-950",r),...a,children:[n,!1!==a.showCross&&(0,o.jsxs)(i.x8,{className:"absolute right-4 top-4 roun
6ded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-slate-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 data-[state=open]:text-slate-500 dark:ring-offset-slate-950 dark:focus:ring-slate-300 dark:data-[state=open]:bg-slate-800 dark:data-[state=open]:text-slate-400",children:[(0,o.jsx)(y,{}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=i.VY.displayName;let u=e=>{let{className:t,...r}=e;return(0,o.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};u.displayName="DialogHeader";let m=e=>{let{className:t,...r}=e;return(0,o.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};m.displayName="DialogFooter";let h=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,o.jsx)(i.Dx,{ref:t,className:(0,s.cn)("text-lg font-semibold leading-none tracking-tight",r),...n})});h.displayName=i.Dx.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,o.jsx)(i.dk,{ref:t,className:(0,s.cn)("text-sm text-slate-500 dark:text-slate-400",r),...n})});f.displayName=i.dk.displayName;let y=()=>(0,o.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",className:"h-4 w-4",children:[(0,o.jsx)("path",{d:"M18 6 6 18"}),(0,o.jsx)("path",{d:"m6 6 12 12"})]})},1614:function(e,t,r){"use strict";r.d(t,{J2:function(){return a},xo:function(){return c},yk:function(){return l}});var o=r(85893),n=r(67294),i=r(64510),s=r(59923);let a=i.fC,c=i.xz,l=n.forwardRef((e,t)=>{let{className:r,align:n="center",sideOffset:a=4,...c}=e;return(0,o.jsx)(i.h_,{children:(0,o.jsx)(i.VY,{ref:t,align:n,sideOffset:a,className:(0,s.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",r),...c})})});l.displayName=i.VY.displayName},80908:function(e,t,r){"use strict";r.d(t,{DB:function(){return i},dg:function(){return n},m5:function(){return s}});var o=r(47041);let n=(e,t)=>{let r=new Date;return r.setDate(r.getDate()+30),(0,o.setCookie)(e,t,{expires:r,sameSite:"None",secure:!0})},i=e=>(0,o.getCookie)(e),s=()=>{for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var r=e[t],o=r.indexOf("="),n=o>-1?r.substr(0,o):r;document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"}}},78039:function(e,t,r){"use strict";r.r(t);var o=r(85893),n=r(2759),i=r(84304),s=r(41664),a=r.n(s),c=r(11163),l=r(67294),d=r(1486),p=r(94937),u=r(49364),m=r(59873),h=r(33299),f=r(87066),y=r(34798),g=r(74304),x=r(71112),v=r(44667),w=r(96782),b=r(1614),j=r(80908);t.default=()=>{var e;let t=(0,c.useRouter)(),[s,x]=(0,l.useState)(),[S,O]=(0,l.useState)(),[z,_]=(0,l.useState)({previousPageTitle:"",nextPageTitle:"",previousPagePath:"",nextPagePath:""}),[E,T]=(0,l.useState)(!1),[q,A]=(0,l.useState)(!1),M=(0,l.useRef)(null),{data:I}=(0,h.useSession)(),[U,W]=(0,l.useState)(),[R,Z]=(0,l.useState)(),[L]=(0,l.useState)(!0),[B,F]=(0,l.useState)(!1),[V,Y]=(0,l.useState)(!1),[H,J]=(0,l.useState)(0),[K,$]=(0,l.useState)({loading:!0,error:!1,success:!1});(0,l.useEffect)(()=>{var e;Z(null==I?void 0:null===(e=I.user)||void 0===e?void 0:e.id)},[null==I?void 0:null===(e=I.user)||void 0===e?void 0:e.id]),(0,l.useEffect)(()=>(W(localStorage.getItem("cusTheme")||"dark"),M.current=new Worker(r.tu(new URL(r.p+r.u(2407),r.b))),()=>{M.current&&(M.current.terminate(),M.current=null)}),[]),(0,l.useEffect)(()=>{(async()=>{let e=await u.Z.getItem("pageIDsWithNames");x(e),O(e.pages_content[0])})()},[]),(0,l.useEffect)(()=>{(async()=>
6{if(t.query.slug){let o=await u.Z.getItem("pageIDsWithNames");if(o){var e,r;let n=await (e=o.pages_content,r=t.query.slug,new Promise(t=>{M.current.onmessage=function(e){"findPage"===e.data.type&&t(e.data.result)},M.current.postMessage({type:"findPage",pages:e,slug:r})})),{previousPageTitle:s,nextPageTitle:a,previousPagePath:c,nextPagePath:l}=await G(o.pages_content,t.query.slug);_({previousPageTitle:s?(0,i.q)(s):"",nextPageTitle:a?(0,i.q)(a):"",previousPagePath:c,nextPagePath:l}),n?O(n):console.error("Page not found")}}})()},[t.query]);let G=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return new Promise(o=>{M.current.onmessage=function(e){"identifyNextAndPreviousPageTitle_OF_ActivePage"===e.data.type&&o(e.data.result)},M.current.postMessage({type:"identifyNextAndPreviousPageTitle_OF_ActivePage",pages:e,slug:t,parentPath:r,isDocsOrPreivew:"/preview/"})})};(0,l.useEffect)(()=>{T("https://cypherscribe.com"===window.location.hostname||"cypherscribe.com"===window.location.hostname||"localhost"===window.location.hostname)},[]);let X=()=>new Promise(async(e,t)=>{try{let r=await u.Z.getItem("pageIDsWithNames"),o=Date.now(),n={pages_content:r.pages_content,pages_hierarchy:r.pages_hierarchy,user_id:I.user.id,version:o};(await f.Z.post("".concat((0,y.D)(),"/save-docs-data"),n,{headers:{"Content-Type":"application/json"}})).data.success?e(!0):t(Error("Failed to save content"))}catch(e){console.error("Error saving content:",e),t(e)}}),Q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return e.forEach(e=>{if(e.href){let o=[...t,(0,i.q)(e.title)];r.push(o.join("/"))}if(e.children&&e.children.length>0){let o=Q(e.children,e.href?[...t,(0,i.q)(e.title)]:t);r=[...r,...o]}}),r},ee=async()=>new Promise(async(e,t)=>{try{let t=await u.Z.getItem("pageIDsWithNames");if(!t||!t.pages_hierarchy)throw Error("No pages data found");let r=(0,j.DB)("cypherDomain");console.log(r,"site client log");let o=Q(t.pages_hierarchy).map(async e=>{try{return(await f.Z.post("/api/revalidate",{site:null==r?void 0:r.split(".cypherscribe.com")[0],slug:e})).data}catch(t){throw console.error("Failed to revalidate path: ".concat(e),t),t}});await Promise.all(o),e(!0)}catch(e){console.error("Revalidation failed:",e),t(e)}}),et=async()=>{F(!1),Y(!0),J(0);try{if($({loading:!0,error:!1,success:!1}),!await X())throw Error("Failed to save content");if(J(1),!await ee())throw Error("Failed to revalidate pages");J(2),$({loading:!1,error:!1,success:!0}),J(3)}catch(e){console.error("Deployment failed:",e),$({loading:!1,error:!0,success:!1}),(0,g.Am)({title:"Deployment failed",description:e.message,variant:"destructive"})}};if(U)return(0,o.jsxs)("div",{className:"min-h-screen ".concat("dark"===U?"universalDarkTheme":"universalLightTheme"),children:[(0,o.jsx)(v.Z,{title:w.yW.title,description:w.yW.description,keywords:w.yW.keywords,canonicalUrl:"https://cypherscribe.com/setings"}),(0,o.jsx)(m.Z,{render:!0}),s&&(0,o.jsx)(p.Z,{data:s,actualDocsContent:S,previousAND_NextPageTitlesState:z,cusTheme:U,fromPreviewPage:L,user_id:R,prodSubDomainForSearch:!1}),E&&s&&(0,o.jsx)("div",{className:"px-4 pb-4 pt-2 rounded-md ".concat("dark"===U?"border-gray-700 bg-black":"border-gray-300 bg-white"," border fixed z-[1] right-0 bottom-2"),children:(0,o.jsxs)("div",{className:"w-[280px] h-48 flex flex-col items-start justify-center gap-5 p-2 pt-10",children:[(0,o.jsx)(d.pn,{delayDuration:0,children:(0,o.jsxs)(d.u,{children:[(0,o.jsx)(d.aJ,{className:"w-full",children:(0,o.jsx)("div",{className:"w-full",children:(0,o.jsx)("a",{onClick:()=>A(!0),className:"w-full",href:"/edit/".concat((0,i.q)(s.pages_hierarchy[0].title)),children:(0,o.jsxs)(n.z,{disabled:q,className:"w-full flex h-10 px-4 py-2 text-sm justify-center rounded-md ".concat("dark"===U?"hover:!bg-slate-50/90 text-slate-900":"hover:!bg-slate-200/90 !bg-slate-200 text-black "," items-center gap-2"),children:["Edit Content",q?(0,o.jsx)(P,{className:"animate-spin ml-1",size:20}):(0,o.jsx)(D,{className:"ml-[3px]",size:20})]})})})}),(0,o.jsx)(d._v,{side:"top",children:(0,o.jsx)("p",{className:"text-sm",children:"Write content for your app, create pages and more"})})]})}
6),(0,o.jsx)(d.pn,{delayDuration:0,children:(0,o.jsxs)(d.u,{children:[(0,o.jsx)(d.aJ,{className:"w-full",children:(0,o.jsx)("div",{className:"w-full",children:(0,o.jsx)(a(),{href:"/customize?stage=0",children:(0,o.jsxs)(n.z,{className:"w-full flex h-10 px-4 py-2 text-sm justify-center rounded-md ".concat("dark"===U?"hover:!bg-slate-50/90 text-slate-900":"hover:!bg-slate-200/90 !bg-slate-200 text-black "," items-center gap-2"),children:["Customize Template",(0,o.jsx)(N,{className:"ml-[3px]",size:20})]})})})}),(0,o.jsx)(d._v,{side:"top",children:(0,o.jsx)("p",{className:"text-sm",children:"choose your theme, template, and modify styling"})})]})}),(0,o.jsxs)(b.J2,{children:[(0,o.jsx)(b.xo,{className:"w-full",children:(0,o.jsx)(C,{isOpen:B,setIsOpen:F,saveContent:X,deployChangesHandler:et})}),(0,o.jsx)(b.yk,{className:"w-full",children:(0,o.jsxs)("div",{className:"flex items-center gap-5 p-4 border !border-gray-600 rounded-md",children:[(0,o.jsx)(n.z,{onClick:()=>F(!0),children:"Deploy Changes"}),(0,o.jsx)(a(),{href:"/workspace",children:(0,o.jsx)(n.z,{variant:"borderWhite",children:"Workspace"})})]})})]})]})}),(0,o.jsx)(k,{isDeployMenyModalOpen:V,setIsDeploymentModalOpen:Y,steps:["Saving template choices and styling","Saving and deploying new content","Revalidating cache and old versions","All done!"],currentStep:H,statucOfDeployemnt:K,setStatusOfDeployment:$})]})};let k=e=>{let{isDeployMenyModalOpen:t,setIsDeploymentModalOpen:r,steps:i,currentStep:s,statucOfDeployemnt:a,setStatusOfDeployment:c}=e,{data:d}=(0,h.useSession)(),[p,u]=(0,l.useState)(!1),m=(0,l.useCallback)(async()=>{d&&window.open("https://".concat((0,j.DB)("cypherDomain")),"_blank")},[d,r]);return(0,o.jsxs)(x.Vq,{open:t,onOpenChange:()=>{r(!1),c({...a,success:!1,error:!1,loading:!1})},children:[(0,o.jsx)(x.hg,{}),(0,o.jsx)(x.cZ,{showCross:!1,children:(0,o.jsxs)(x.fK,{children:[(0,o.jsxs)(x.$N,{children:["Deployment ",a.success?"Completed \uD83C\uDF89":"Started"]}),(0,o.jsxs)(x.Be,{className:"!mt-8",children:[(0,o.jsx)("div",{className:"space-y-6 py-4",children:i.map((e,t)=>(0,o.jsxs)("div",{className:"flex items-center space-x-4",children:[t<s||t===i.length-1&&a.success?(0,o.jsx)(z,{}):t===s?(0,o.jsx)(O,{}):(0,o.jsx)("div",{className:"w-6 h-6 rounded-full border-2 border-slate-700"}),(0,o.jsx)("span",{className:t<=s?"text-white":"text-slate-500",children:e})]},t))}),a.success&&(0,o.jsxs)("div",{className:"flex flex-col w-full mt-8 gap-4",children:[(0,o.jsx)("p",{className:"text-sm text-gray-400 my-2",children:"Your content has been saved and build process has been started please be patient the new content should reflect on your website in about 3 minutes"}),(0,o.jsxs)(n.z,{onClick:m,disabled:p,children:["Visit Site ",p&&(0,o.jsx)(P,{})]}),(0,o.jsx)(n.z,{variant:"secondary",onClick:()=>r(!1),children:"Close"})]})]})]})})]})},C=(0,l.memo)(e=>{let{deployChangesHandler:t,saveContent:r,setIsOpen:i,isOpen:s}=e;return(0,o.jsxs)(x.Vq,{open:s,onOpenChange:i,children:[(0,o.jsxs)(n.z,{className:"w-full",variant:"secondary",children:["More",(0,o.jsx)(S,{className:"ml-[3px]",size:22})]}),(0,o.jsx)(x.hg,{className:"w-full"}),(0,o.jsxs)(x.cZ,{children:[(0,o.jsxs)(x.fK,{children:[(0,o.jsx)(x.$N,{className:"text-2xl font-bold",children:"Deploy Changes"}),(0,o.jsx)(x.Be,{className:"text-slate-400",children:"Are you sure you want to deploy your changes to production?"})]}),(0,o.jsxs)("div",{className:"flex justify-end space-x-4 mt-6",children:[(0,o.jsx)(n.z,{onClick:t,className:"bg-blue-600 text-white hover:bg-blue-700",children:"Deploy Changes"}),(0,o.jsx)(n.z,{variant:"outline",onClick:()=>i(!1),className:"bg-transparent border-slate-700 text-white hover:bg-slate-800",children:"Cancel"})]})]})]})});C.displayName="DeployMentConfirmationModal";let S=()=>(0,o.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","stroke-linejoin":"round",className:"ml-[3px]",children:[(0,o.jsx)("path",{d:"M7 7h10v10"}),(0,o.jsx)("path",{d:"M7 17 17 7"})]}),N=()=>(0,o.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",class:"lucide lucide-sliders-horizontal",children:[(0,o.jsx)("line",{x1:"21",x2:"14",y1:"4",y2:"4"}),(0,o.jsx)("line",{x1:"10",x2:"3",y1:"4",y2:"4"}),(0,o.jsx)("line",{x1:"21",x2:"12",y1:"12",y2:"12"}),(0,o.jsx)("line",{x1:"8",x2:"3",y1:"12",y2:"12"}),(0,o.jsx)("line",{x1:"21",x2:"16",y1:"20",y2:"20"}),(0,o.jsx)("line",{x1:"12",x2:"3",y1:"20",y2:"20"}),(0,o.jsx)("line",{x1:"14",x2:"14",y1:"2",y2:"6"}),(0,o.jsx)("line",{x1:"8",x2:"8",y1:"10",y2:"14"}),(0,o.jsx)("line",{x1:"16",x2:"16",y1:"18",y2:"22"})]}),D=()=>(0,o.jsxs)("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:"ml-[3px]",children:[(0,o.jsx)("path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,o.jsx)("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"})]}),P=()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","stroke-linecap":"round","stroke-linejoin":"round",className:"animate-spin ml-2",children:(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),O=()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","stroke-linecap":"round","stroke-linejoin":"round",className:"animate-spin",children:(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),z=()=>(0,o.jsxs)("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-circle-check",children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,o.jsx)("path",{d:"m9 12 2 2 4-4"})]})}},function(e){e.O(0,[9483,1664,1446,7699,7222,7066,1930,4605,6908,4816,6368,970,5675,4510,4278,9128,5337,7690,4231,6500,2888,9774,179],function(){return e(e.s=4179)}),_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.