PageSourceSearch

https://chatterdocs.ai/_next/static/chunks/pages/p/[pageId]-781914ba87c278f2.js

js chatterdocs.ai collected 2026-10-05 11:55:08 UTC 7,284 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8168f875-858c-4370-843d-e2dc87422117",e._sentryDebugIdIdentifier="sentry-dbid-8168f875-858c-4370-843d-e2dc87422117")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2829],{19880:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/p/[pageId]",function(){return s(58913)}])},7338:function(e,t,s){"use strict";var n=s(85893);t.Z=e=>{let{width:t=25,height:s=25}=e;return(0,n.jsx)("div",{className:"w-full h-full",children:(0,n.jsx)("svg",{className:"loading-spinner animate-spin m-auto left-0 right-0",xmlns:"http://www.w3.org/2000/svg",width:t||25,height:s||25,viewBox:"0 0 48 48",children:(0,n.jsxs)("g",{fill:"none",children:[(0,n.jsx)("path",{id:"track",fill:"#C6CCD2",d:"M24,48 C10.745166,48 0,37.254834 0,24 C0,10.745166 10.745166,0 24,0 C37.254834,0 48,10.745166 48,24 C48,37.254834 37.254834,48 24,48 Z M24,44 C35.045695,44 44,35.045695 44,24 C44,12.954305 35.045695,4 24,4 C12.954305,4 4,12.954305 4,24 C4,35.045695 12.954305,44 24,44 Z"}),(0,n.jsx)("path",{id:"section",fill:"#3F4850",d:"M24,0 C37.254834,0 48,10.745166 48,24 L44,24 C44,12.954305 35.045695,4 24,4 L24,0 Z"})]})})})}},97977:function(e,t,s){"use strict";var n=s(85893);t.Z=e=>{let{width:t,height:s,className:i,darkness:a=100}=e;return(0,n.jsx)("span",{className:"".concat(s?"h-"+s:"h-8"," ").concat(t?"w-"+t:"w-full","  block items-center ").concat(i),children:(0,n.jsx)("span",{className:"block w-full h-full rounded animate-pulse bg-gray-".concat(a)})})}},65673:function(e,t,s){"use strict";var n=s(85893),i=s(78190),a=s(84053),l=s(44975);t.Z=e=>{let{children:t}=e,s=(0,a.useUser)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Z,{user:s}),(0,n.jsx)("div",{children:t}),(0,n.jsx)(l.Z,{})]})}},58913:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return p}});var n=s(85893),i=s(11163),a=s(67294),l=s(65673),r=s(9008),o=s.n(r),d=s(42890),c=s(23275),u=s(7338),m=s(97977),x=s(9428),h=s(38600);let g={type:"spring",damping:16,stiffness:100};function p(){var e,t,s,r,p,f;let v=(0,i.useRouter)(),{pageId:w}=v.query,[b,j]=(0,a.useState)(null),[y,N]=(0,a.useState)(!0),[k,C]=(0,a.useState)(!1),[Z,_]=(0,a.useState)(null);(0,a.useEffect)(()=>{w&&(async()=>{var e;let t=await fetch("/api/destinations/landingpage/".concat(w));if(200!==t.status)return v.push("/404");let s=await t.json();(null===(e=s.config)||void 0===e?void 0:e.passwordSet)&&C(!0),j(s),N(!1)})()},[w]);let E=async()=>{var e;(null===(e=(await h.Z.post("/api/destinations/landingpage/checkPassword",{id:w,password:Z})).data)||void 0===e?void 0:e.success)?C(!1):(document.getElementById("password-box").classList.add("ring-2","ring-red-500","animate-shake"),setTimeout(()=>{document.getElementById("password-box").classList.remove("ring-2","ring-red-500","animate-shake")},1100))};return(0,n.jsxs)(l.Z,{children:[(0,n.jsx)(d.Z,{title:"".concat((null==b?void 0:b.name)||"Chatterdocs chatbot")}),(0,n.jsxs)(o(),{children:[(0,n.jsx)("meta",{property:"og:title",content:"".concat((null==b?void 0:b.name)||"Chatterdocs chatbot")}),(0,n.jsx)("meta",{property:"og:description",content:"".concat((null==b?void 0:null===(e=b.config)||void 0===e?void 0:e.description)||"A custom bot by CHatterdocs")})]}),(0,n.jsx)("section",{className:"flex flex-col pb-8 border-b border-gray-200",children:(0,n.jsx)("div",{className:"grid w-full grid-cols-1 gap-12 px-4 pt-20 mx-auto md:max-w-3xl md:justify-items-center md:gap-16 md:pb-0 lg:max-w-4xl lg:px-8 xl:max-w-5xl 2xl:max-w-6xl",children:(0,n.jsxs)("div",{className:"text-center w-full",children:[(0,n.jsx)("h1",{className:"max-w-3xl mx-auto text-3xl",children:(null==b?void 0:b.name)||(0,n.jsx)(m.Z,{height:"8",darkness:200})}),(0,n.jsx)("p",{className:"max-w-4xl mx-auto mt-4 text-base font-normal text-gray-500",children:(null==b?void 0:null===(t=b.config)||void 0===t?void 0:t.description)||(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z,{height:"4",darkness:200}),(0,n.jsx)(m.Z,{height:"4",darkness:200,className:"mt-2"})]})})]})})}),(0,n.jsx)("section",{className:"pb-8 bg-white",children:(0,n.jsx)("div",{className:"",children:(0,n.jsx)("div",{className:"bg-white py-4",children:(0,n.jsxs)("div",{className:"max-w-6xl mx-auto md:px-6 lg:px-8 px-4 mt-8",children:[y&&(0,n.jsx)("div",{className:"border border-gray-200 rounded h-[55vh] overflow-y-scroll bg-white",children:(0,n.jsx)("div",{className:"mt-[25vh]",children:(0,n.jsx)(u.Z,{})})}),!y&&(0,n.jsxs)(n.Fragment,{children:[k&&(0,n.jsx)("div",{className:"relative border border-gray-200 rounded h-[55vh] overflow-y-scroll bg-gray-50",children:(0,n.jsx)("div",{className:"mt-12 absolute top-20 left-1/2 transform -translate-x-1/2",children:(0,n.jsx)(x.E.div,{transition:g,initial:{scale:.9,opacity:0}
1,animate:{scale:1,opacity:1},children:(0,n.jsxs)("div",{className:"max-w-lg p-4 mx-auto bg-white border border-gray-200 rounded transition-all",id:"password-box",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:"Password required"}),(0,n.jsx)("p",{className:"text-sm text-gray-500",children:"This bot is protected. Please enter the password to continue."}),(0,n.jsxs)("div",{className:"mt-4 flex gap-x-2 items-center",children:[(0,n.jsx)("input",{type:"password",name:"password",id:"password",className:"block w-full border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",placeholder:"****",onChange:e=>{_(e.target.value)},onKeyUp:e=>{"Enter"===e.key&&E()}}),(0,n.jsx)("button",{onClick:()=>{E()},className:"btn-default",children:"Submit"})]})]})})})}),!k&&(0,n.jsx)(c.Z,{is_public:!0,is_studio:!1,prompt:null==b?void 0:null===(s=b.prompt)||void 0===s?void 0:s.id,sources:null==b?void 0:null===(r=b.chatbot)||void 0===r?void 0:r.source_ids.map(e=>({id:e})),limitQueries:!1,config:null==b?void 0:b.config,chatbotConfig:null==b?void 0:null===(p=b.chatbot)||void 0===p?void 0:p.config,chatbotId:null==b?void 0:null===(f=b.chatbot)||void 0===f?void 0:f.id})]})]})})})})]})}},43749:function(e,t,s){"use strict";var n=s(67294);let i=n.forwardRef(function(e,t){let{title:s,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),s?n.createElement("title",{id:i},s):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=i},43982:function(e,t,s){"use strict";var n=s(67294);let i=n.forwardRef(function(e,t){let{title:s,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),s?n.createElement("title",{id:i},s):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});t.Z=i}},function(e){e.O(0,[4740,5936,9428,3275,2888,9774,179],function(){return e(e.s=19880)}),_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.