diff --git a/build/404.html b/build/404.html index 231efb1..202a176 100644 --- a/build/404.html +++ b/build/404.html @@ -1 +1 @@ -404: This page could not be found.Chit Chat - A chatbot Intregation using ChatGPT

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Chit Chat - A chatbot Intregation using ChatGPT

404

This page could not be found.

\ No newline at end of file diff --git a/build/_next/static/chunks/app/addAIData/page-e80d9ee4e28f44c4.js b/build/_next/static/chunks/app/addAIData/page-e66623d080e34e2c.js similarity index 97% rename from build/_next/static/chunks/app/addAIData/page-e80d9ee4e28f44c4.js rename to build/_next/static/chunks/app/addAIData/page-e66623d080e34e2c.js index 05ac936..4066eae 100644 --- a/build/_next/static/chunks/app/addAIData/page-e80d9ee4e28f44c4.js +++ b/build/_next/static/chunks/app/addAIData/page-e66623d080e34e2c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[547],{1785:function(e,t,r){Promise.resolve().then(r.bind(r,3586))},7832:function(e,t,r){"use strict";r.d(t,{Z:function(){return Components_Navbar}});var a=r(7437),i=r(1396),s=r.n(i);r(2265);var n=r(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(s(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(n.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},4608:function(e,t,r){"use strict";var a=r(7437);r(2265);var i=r(1396),s=r.n(i);t.Z=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,a.jsxs)("div",{className:"bg-white bg-opacity-10 rounded-xl p-8 w-96 shadow-lg backdrop-blur-md",children:[(0,a.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Login Is Require !"}),(0,a.jsx)(s(),{href:"/login",className:"px-4 py-2 rounded bg-white bg-opacity-20 hover:bg-opacity-30 focus:outline-none",children:"Sign Up"})]})})})},3586:function(e,t,r){"use strict";r.r(t);var a=r(7437),i=r(2265),s=r(7832),n=r(9947),o=r(2173),l=r(171),d=r(4033),c=r(9150),p=r(4608),u=r(3396);let g=(0,u.K)({Production:!0});t.default=()=>{let e=(0,d.useRouter)(),[t,r]=(0,i.useState)(null);(0,i.useEffect)(()=>{{let e=localStorage.getItem("UserId");r(e)}},[]);let[u,h]=(0,i.useState)(!1),[m,x]=(0,i.useState)(""),[b,f]=(0,i.useState)([]),[v,y]=(0,i.useState)(null),[j,w]=(0,i.useState)(""),[k,N]=(0,i.useState)(""),[A,C]=(0,i.useState)({organization:{userId:"",organizationName:""},url:"",openAIApi:""});(0,i.useEffect)(()=>{!async function(){console.log(t);let e=await (0,n.$9)(t);e&&e.response&&e.response.data&&f(e.response.data)}()},[t]);let isValidOpenAIApi=e=>e.startsWith("sk-")&&e.length>50;(0,i.useEffect)(()=>{C({organization:{organizationName:m,userId:t},url:j,openAIApi:k})},[m,j,t,k]);let fetchFile=async()=>{if(!v){l.Am.error("No file selected",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});return}let e=new FormData;e.append("file",v);try{let t=await o.Z.post(g+"/api/v1/upload",e);return(0,l.Am)("Successfully, Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),w(t.data.data.url),!0}catch(e){return l.Am.error("oops someting went wrong !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),!1}},SubmitAiModel=async()=>{await o.Z.post(g+"/api/v1/addAiTrainingModel",A)};console.log(A);let handleFileSubmit=async e=>{e.preventDefault();let t=await fetchFile();t?(0,l.Am)("File Submmited !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}):l.Am.error("File not Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})},handleSubmit=async t=>{t.preventDefault(),h(!0),await SubmitAiModel().then(t=>{(0,l.Am)("Ai Model Created !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),console.log(t),e.push("/dashboard")}).catch(e=>{l.Am.error("Failed Training",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),console.log(e)}),h(!1)},O=!!v&&!!m&&!!k;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{}),t?u?(0,a.jsx)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white z-20",children:(0,a.jsx)(c.Z7b,{className:"animate-spin text-6xl"})}):(0,a.jsx)("div",{className:"sm:pt-24 pt-44 top-0 left-0 w-full h-full flex items-center justify-center bg-opacity-50",children:(0,a.jsxs)("div",{className:"p-8 bg-white rounded-lg shadow-xl w-96 bg-opacity-10",children:[(0,a.jsx)("h2",{className:"text-xl mb-4 font-bold",children:"Train Data"}),(0,a.jsxs)("form",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"Upload File:"}),(0,a.jsx)("input",{onChange:e=>{var t,r;let a=null===(t=e.target.files)||void 0===t?void 0:t.item(0);a&&a.type;{let t=null===(r=e.target.files)||void 0===r?void 0:r.item(0);t&&y(t)}},type:"file",accept:".txt, .pdf, .csv",className:"mb-4 p-2 file:bg-pink-300 file:rounded-xl file:active:bg-pink-400 file:shadow-lg file:border-pink-600"}),(0,a.jsx)("button",{onClick:handleFileSubmit,className:"bg-pink-700 active:bg-pink-500 text-white px-4 py-2 rounded hover:bg-pink-600",children:"Add File"}),(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"Select Organization:"}),(0,a.jsxs)("select",{value:m,onChange:e=>x(e.target.value),className:"mb-4 border p-2 rounded w-full bg-pink-200",children:[(0,a.jsx)("option",{disabled:!0,value:"",children:"-- Select Organization --"}),b&&b.map((e,t)=>(0,a.jsx)("option",{value:e.OrganizationName,children:e.OrganizationName},t))]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"OpenAi ApiKey"}),(0,a.jsx)("input",{type:"text",name:"openAIApi",required:!0,onChange:e=>{let t=e.target.value;if(!isValidOpenAIApi(t)){l.Am.error("Invalid OpenAI API Key",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});return}N(t)},className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-indigo-500"})]}),(0,a.jsx)("button",{type:"submit",onClick:handleSubmit,className:"bg-pink-700 active:bg-pink-500 text-white px-4 py-2 rounded hover:bg-pink-600 ".concat(!O&&"opacity-50 cursor-not-allowed"),disabled:!O,children:"Submit"})]})]})}):(0,a.jsx)(p.Z,{})]})}},9947:function(e,t,r){"use strict";r.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=r(2173),i=r(3396);let s=(0,i.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(s+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(s+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(s+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(s+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(s+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,r){"use strict";r.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.tech":"http://localhost:8000"},4033:function(e,t,r){e.exports=r(290)}},function(e){e.O(0,[447,712,438,321,971,864,744],function(){return e(e.s=1785)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[547],{1785:function(e,t,r){Promise.resolve().then(r.bind(r,3586))},7832:function(e,t,r){"use strict";r.d(t,{Z:function(){return Components_Navbar}});var a=r(7437),i=r(1396),s=r.n(i);r(2265);var n=r(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(s(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(n.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},4608:function(e,t,r){"use strict";var a=r(7437);r(2265);var i=r(1396),s=r.n(i);t.Z=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,a.jsxs)("div",{className:"bg-white bg-opacity-10 rounded-xl p-8 w-96 shadow-lg backdrop-blur-md",children:[(0,a.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Login Is Require !"}),(0,a.jsx)(s(),{href:"/login",className:"px-4 py-2 rounded bg-white bg-opacity-20 hover:bg-opacity-30 focus:outline-none",children:"Sign Up"})]})})})},3586:function(e,t,r){"use strict";r.r(t);var a=r(7437),i=r(2265),s=r(7832),n=r(9947),o=r(2173),l=r(171),d=r(4033),c=r(9150),p=r(4608),u=r(3396);let g=(0,u.K)({Production:!0});t.default=()=>{let e=(0,d.useRouter)(),[t,r]=(0,i.useState)(null);(0,i.useEffect)(()=>{{let e=localStorage.getItem("UserId");r(e)}},[]);let[u,h]=(0,i.useState)(!1),[m,x]=(0,i.useState)(""),[b,f]=(0,i.useState)([]),[v,y]=(0,i.useState)(null),[j,w]=(0,i.useState)(""),[k,N]=(0,i.useState)(""),[A,C]=(0,i.useState)({organization:{userId:"",organizationName:""},url:"",openAIApi:""});(0,i.useEffect)(()=>{!async function(){console.log(t);let e=await (0,n.$9)(t);e&&e.response&&e.response.data&&f(e.response.data)}()},[t]);let isValidOpenAIApi=e=>e.startsWith("sk-")&&e.length>50;(0,i.useEffect)(()=>{C({organization:{organizationName:m,userId:t},url:j,openAIApi:k})},[m,j,t,k]);let fetchFile=async()=>{if(!v){l.Am.error("No file selected",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});return}let e=new FormData;e.append("file",v);try{let t=await o.Z.post(g+"/api/v1/upload",e);return(0,l.Am)("Successfully, Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),w(t.data.data.url),!0}catch(e){return l.Am.error("oops someting went wrong !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),!1}},SubmitAiModel=async()=>{await o.Z.post(g+"/api/v1/addAiTrainingModel",A)};console.log(A);let handleFileSubmit=async e=>{e.preventDefault();let t=await fetchFile();t?(0,l.Am)("File Submmited !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}):l.Am.error("File not Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})},handleSubmit=async t=>{t.preventDefault(),h(!0),await SubmitAiModel().then(t=>{(0,l.Am)("Ai Model Created !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),console.log(t),e.push("/dashboard")}).catch(e=>{l.Am.error("Failed Training",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),console.log(e)}),h(!1)},O=!!v&&!!m&&!!k;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{}),t?u?(0,a.jsx)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white z-20",children:(0,a.jsx)(c.Z7b,{className:"animate-spin text-6xl"})}):(0,a.jsx)("div",{className:"sm:pt-24 pt-44 top-0 left-0 w-full h-full flex items-center justify-center bg-opacity-50",children:(0,a.jsxs)("div",{className:"p-8 bg-white rounded-lg shadow-xl w-96 bg-opacity-10",children:[(0,a.jsx)("h2",{className:"text-xl mb-4 font-bold",children:"Train Data"}),(0,a.jsxs)("form",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"Upload File:"}),(0,a.jsx)("input",{onChange:e=>{var t,r;let a=null===(t=e.target.files)||void 0===t?void 0:t.item(0);a&&a.type;{let t=null===(r=e.target.files)||void 0===r?void 0:r.item(0);t&&y(t)}},type:"file",accept:".txt, .pdf, .csv",className:"mb-4 p-2 file:bg-pink-300 file:rounded-xl file:active:bg-pink-400 file:shadow-lg file:border-pink-600"}),(0,a.jsx)("button",{onClick:handleFileSubmit,className:"bg-pink-700 active:bg-pink-500 text-white px-4 py-2 rounded hover:bg-pink-600",children:"Add File"}),(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"Select Organization:"}),(0,a.jsxs)("select",{value:m,onChange:e=>x(e.target.value),className:"mb-4 border p-2 rounded w-full bg-pink-200",children:[(0,a.jsx)("option",{disabled:!0,value:"",children:"-- Select Organization --"}),b&&b.map((e,t)=>(0,a.jsx)("option",{value:e.OrganizationName,children:e.OrganizationName},t))]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"OpenAi ApiKey"}),(0,a.jsx)("input",{type:"text",name:"openAIApi",required:!0,onChange:e=>{let t=e.target.value;if(!isValidOpenAIApi(t)){l.Am.error("Invalid OpenAI API Key",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"});return}N(t)},className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-indigo-500"})]}),(0,a.jsx)("button",{type:"submit",onClick:handleSubmit,className:"bg-pink-700 active:bg-pink-500 text-white px-4 py-2 rounded hover:bg-pink-600 ".concat(!O&&"opacity-50 cursor-not-allowed"),disabled:!O,children:"Submit"})]})]})}):(0,a.jsx)(p.Z,{})]})}},9947:function(e,t,r){"use strict";r.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=r(2173),i=r(3396);let s=(0,i.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(s+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(s+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(s+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(s+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(s+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,r){"use strict";r.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.fun":"http://localhost:8000"},4033:function(e,t,r){e.exports=r(290)}},function(e){e.O(0,[447,712,438,321,971,864,744],function(){return e(e.s=1785)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/build/_next/static/chunks/app/dashboard/page-19cca652a963283b.js b/build/_next/static/chunks/app/dashboard/page-19cca652a963283b.js new file mode 100644 index 0000000..9cbc7f0 --- /dev/null +++ b/build/_next/static/chunks/app/dashboard/page-19cca652a963283b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[702],{9129:function(e,t,s){Promise.resolve().then(s.bind(s,1388))},7832:function(e,t,s){"use strict";s.d(t,{Z:function(){return Components_Navbar}});var a=s(7437),r=s(1396),n=s.n(r);s(2265);var i=s(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(n(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(i.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},4608:function(e,t,s){"use strict";var a=s(7437);s(2265);var r=s(1396),n=s.n(r);t.Z=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,a.jsxs)("div",{className:"bg-white bg-opacity-10 rounded-xl p-8 w-96 shadow-lg backdrop-blur-md",children:[(0,a.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Login Is Require !"}),(0,a.jsx)(n(),{href:"/login",className:"px-4 py-2 rounded bg-white bg-opacity-20 hover:bg-opacity-30 focus:outline-none",children:"Sign Up"})]})})})},9947:function(e,t,s){"use strict";s.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=s(2173),r=s(3396);let n=(0,r.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(n+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(n+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(n+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(n+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(n+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,s){"use strict";s.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.fun":"http://localhost:8000"},1388:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return page}});var a=s(7437),r=s(7832),n=s(2265);function OrgTemp(e){let{OrganizationName:t,OrganizationPhone:s,OrganizationWebsite:r,createdAt:n}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex justify-center items-center p-3",children:(0,a.jsxs)("div",{className:"overflow-x-auto scrollbar-hide max-w-xs bg-white bg-opacity-10 backdrop-blur-md p-6 rounded-xl shadow-lg transform hover:scale-105 transition-transform duration-300",children:[(0,a.jsx)("h1",{className:"text-xl font-semibold mb-2",children:t}),(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("span",{className:"font-medium",children:"Phone:"})," ",s]}),(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("span",{className:"font-medium",children:"Website:"})," ",r]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-medium",children:"Created At:"})," ",new Date(n).toLocaleString()]})]})})})}var i=s(6820),l=s(2410),d=s(4606),o=s(171),dashboard_AiModel=e=>{let{organizationName:t,uploadKnowledge:s,embeddedKnowlege:r,apiKey:c,createdAt:x}=e,[m,h]=(0,n.useState)({organizationName:"",uploadKnowledge:"",embeddedKnowlege:"",apiKey:"",createdAt:""}),[p,u]=(0,n.useState)(!1);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex justify-between",children:(0,a.jsx)("div",{className:"rounded-xl p-2 shadow-md w-full",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("div",{className:"flex-none rounded-md mr-2",children:t}),(0,a.jsxs)("div",{className:"flex-grow text-center rounded-md",children:[c.substring(0,4),"...",c.slice(-5),(0,a.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(c.toString()).then(()=>{(0,o.Am)("API Key copied to clipboard!",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}).catch(e=>{o.Am.error("Failed to copy API Key!",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})},className:"p-2 border text-white rounded active:bg-white",children:(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i.fwS,{className:"text-lime-500"})})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{className:"flex-none rounded-md underline pt-3 text-blue-900",onClick:()=>{h({organizationName:t,uploadKnowledge:s,embeddedKnowlege:r,apiKey:c,createdAt:x}),u(!0)},children:(0,a.jsx)(d.xt8,{})}),p&&(0,a.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center z-50",onClick:()=>u(!1),children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-50 backdrop-blur-md"}),(0,a.jsxs)("div",{className:"relative p-6 bg-white bg-opacity-20 rounded-lg backdrop-blur-md max-w-screen-lg mx-auto",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("button",{onClick:()=>u(!1),className:"absolute top-4 right-4 text-gray-500 rounded-full p-2 hover:bg-gray-600 focus:outline-none",children:(0,a.jsx)(l.FMH,{})}),(0,a.jsx)("h2",{className:"text-2xl mb-4",children:"Details"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Organization Name:"})," ",m.organizationName]}),(0,a.jsxs)("p",{className:"flex",children:[(0,a.jsx)("strong",{children:"Upload Knowledge:"})," ",(0,a.jsx)("div",{className:"text-sky-500 underline",children:m.uploadKnowledge})]}),(0,a.jsxs)("p",{className:"flex",children:[(0,a.jsx)("strong",{children:"Embedded Knowledge:"})," ",(0,a.jsx)("div",{className:"text-sky-500 underline",children:m.embeddedKnowlege})]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"API Key:"})," ",m.apiKey]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Created At:"})," ",new Date(m.createdAt).toLocaleString()]})]})]})]})]})})})})},c=s(9947),x=s(4608),m=s(1396),h=s.n(m),page=()=>{let[e,t]=(0,n.useState)(null);(0,n.useEffect)(()=>{{let e=localStorage.getItem("UserId");t(e)}},[]);let[s,i]=(0,n.useState)({response:{data:[]}}),[l,d]=(0,n.useState)({response:{data:[]}}),value=async()=>{if(e){let t=await (0,c.$9)(e);i(t)}};(0,n.useEffect)(()=>{value()},[e]);let valueAi=async()=>{if(e){let t=await (0,c.XU)(e);d(t)}};return(0,n.useEffect)(()=>{valueAi()},[e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{}),e?(0,a.jsxs)("div",{className:"grid md:grid-cols-7 grid-cols-1 sm:pt-20 pt-52 h-screen shadow-2xl",children:[(0,a.jsxs)("div",{className:"md:col-span-3 overflow-y-auto scrollbar-hide max-h-[calc(100vh-64px)]",children:[(0,a.jsx)("div",{className:"flex justify-center p-2 font-serif text-gray-800 font-bold text-2xl",children:"Organizations"}),(0,a.jsx)("div",{className:"grid sm:grid-cols-2 grid-cols-1",children:s&&s.response&&s.response.data&&s.response.data.map((e,t)=>(0,a.jsx)(OrgTemp,{OrganizationName:e.OrganizationName,OrganizationPhone:e.OrganizationPhone,OrganizationWebsite:e.OrganizationWebsite,createdAt:e.createdAt},t))})]}),(0,a.jsxs)("div",{className:"md:col-span-4 overflow-y-auto scrollbar-hide max-h-[calc(100vh-64px)]",children:[(0,a.jsx)("div",{className:"flex justify-center p-2 font-serif text-gray-800 font-bold text-2xl",children:"Ai Trained Models"}),(0,a.jsxs)("div",{className:"flex p-3",children:[(0,a.jsx)("div",{className:"text-start py-2 font-bold font-sans",children:"Name"}),(0,a.jsx)("div",{className:"flex-grow text-center py-2 font-bold font-sans",children:"API Key"})]}),(0,a.jsx)("div",{className:"p-4 overflow-y-auto",children:l&&l.response&&l.response.data&&l.response.data.map((e,t)=>(0,a.jsx)(h(),{href:"/trychatbot",onClick:()=>{localStorage.setItem("apiKey",e.apiKey)},children:(0,a.jsx)(dashboard_AiModel,{organizationName:e.organizationName,uploadKnowledge:e.uploadKnowledge,embeddedKnowlege:e.embeddedKnowlege,apiKey:e.apiKey,createdAt:e.createdAt})},t))})]})]}):(0,a.jsx)(x.Z,{})]})}}},function(e){e.O(0,[447,115,400,438,321,971,864,744],function(){return e(e.s=9129)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/build/_next/static/chunks/app/dashboard/page-d26fd6464b556735.js b/build/_next/static/chunks/app/dashboard/page-d26fd6464b556735.js deleted file mode 100644 index 083313b..0000000 --- a/build/_next/static/chunks/app/dashboard/page-d26fd6464b556735.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[702],{9129:function(e,t,s){Promise.resolve().then(s.bind(s,1388))},7832:function(e,t,s){"use strict";s.d(t,{Z:function(){return Components_Navbar}});var a=s(7437),r=s(1396),n=s.n(r);s(2265);var i=s(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(n(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(i.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},4608:function(e,t,s){"use strict";var a=s(7437);s(2265);var r=s(1396),n=s.n(r);t.Z=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,a.jsxs)("div",{className:"bg-white bg-opacity-10 rounded-xl p-8 w-96 shadow-lg backdrop-blur-md",children:[(0,a.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Login Is Require !"}),(0,a.jsx)(n(),{href:"/login",className:"px-4 py-2 rounded bg-white bg-opacity-20 hover:bg-opacity-30 focus:outline-none",children:"Sign Up"})]})})})},9947:function(e,t,s){"use strict";s.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=s(2173),r=s(3396);let n=(0,r.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(n+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(n+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(n+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(n+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(n+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,s){"use strict";s.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.tech":"http://localhost:8000"},1388:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return page}});var a=s(7437),r=s(7832),n=s(2265);function OrgTemp(e){let{OrganizationName:t,OrganizationPhone:s,OrganizationWebsite:r,createdAt:n}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex justify-center items-center p-3",children:(0,a.jsxs)("div",{className:"overflow-x-auto scrollbar-hide max-w-xs bg-white bg-opacity-10 backdrop-blur-md p-6 rounded-xl shadow-lg transform hover:scale-105 transition-transform duration-300",children:[(0,a.jsx)("h1",{className:"text-xl font-semibold mb-2",children:t}),(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("span",{className:"font-medium",children:"Phone:"})," ",s]}),(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("span",{className:"font-medium",children:"Website:"})," ",r]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-medium",children:"Created At:"})," ",new Date(n).toLocaleString()]})]})})})}var i=s(6820),l=s(2410),d=s(4606),o=s(171),dashboard_AiModel=e=>{let{organizationName:t,uploadKnowledge:s,embeddedKnowlege:r,apiKey:c,createdAt:x}=e,[m,h]=(0,n.useState)({organizationName:"",uploadKnowledge:"",embeddedKnowlege:"",apiKey:"",createdAt:""}),[p,u]=(0,n.useState)(!1);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex justify-between",children:(0,a.jsx)("div",{className:"rounded-xl p-2 shadow-md w-full",children:(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("div",{className:"flex-none rounded-md mr-2",children:t}),(0,a.jsxs)("div",{className:"flex-grow text-center rounded-md",children:[c.substring(0,4),"...",c.slice(-5),(0,a.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(c.toString()).then(()=>{(0,o.Am)("API Key copied to clipboard!",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})}).catch(e=>{o.Am.error("Failed to copy API Key!",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})})},className:"p-2 border text-white rounded active:bg-white",children:(0,a.jsx)("div",{className:"flex",children:(0,a.jsx)(i.fwS,{className:"text-lime-500"})})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{className:"flex-none rounded-md underline pt-3 text-blue-900",onClick:()=>{h({organizationName:t,uploadKnowledge:s,embeddedKnowlege:r,apiKey:c,createdAt:x}),u(!0)},children:(0,a.jsx)(d.xt8,{})}),p&&(0,a.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center z-50",onClick:()=>u(!1),children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-50 backdrop-blur-md"}),(0,a.jsxs)("div",{className:"relative p-6 bg-white bg-opacity-20 rounded-lg backdrop-blur-md max-w-screen-lg mx-auto",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("button",{onClick:()=>u(!1),className:"absolute top-4 right-4 text-gray-500 rounded-full p-2 hover:bg-gray-600 focus:outline-none",children:(0,a.jsx)(l.FMH,{})}),(0,a.jsx)("h2",{className:"text-2xl mb-4",children:"Details"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Organization Name:"})," ",m.organizationName]}),(0,a.jsxs)("p",{className:"flex",children:[(0,a.jsx)("strong",{children:"Upload Knowledge:"})," ",(0,a.jsx)("div",{className:"text-sky-500 underline",children:m.uploadKnowledge})]}),(0,a.jsxs)("p",{className:"flex",children:[(0,a.jsx)("strong",{children:"Embedded Knowledge:"})," ",(0,a.jsx)("div",{className:"text-sky-500 underline",children:m.embeddedKnowlege})]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"API Key:"})," ",m.apiKey]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Created At:"})," ",new Date(m.createdAt).toLocaleString()]})]})]})]})]})})})})},c=s(9947),x=s(4608),m=s(1396),h=s.n(m),page=()=>{let[e,t]=(0,n.useState)(null);(0,n.useEffect)(()=>{{let e=localStorage.getItem("UserId");t(e)}},[]);let[s,i]=(0,n.useState)({response:{data:[]}}),[l,d]=(0,n.useState)({response:{data:[]}}),value=async()=>{if(e){let t=await (0,c.$9)(e);i(t)}};(0,n.useEffect)(()=>{value()},[e]);let valueAi=async()=>{if(e){let t=await (0,c.XU)(e);d(t)}};return(0,n.useEffect)(()=>{valueAi()},[e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{}),e?(0,a.jsxs)("div",{className:"grid md:grid-cols-7 grid-cols-1 sm:pt-20 pt-52 h-screen shadow-2xl",children:[(0,a.jsxs)("div",{className:"md:col-span-3 overflow-y-auto scrollbar-hide max-h-[calc(100vh-64px)]",children:[(0,a.jsx)("div",{className:"flex justify-center p-2 font-serif text-gray-800 font-bold text-2xl",children:"Organizations"}),(0,a.jsx)("div",{className:"grid sm:grid-cols-2 grid-cols-1",children:s&&s.response&&s.response.data&&s.response.data.map((e,t)=>(0,a.jsx)(OrgTemp,{OrganizationName:e.OrganizationName,OrganizationPhone:e.OrganizationPhone,OrganizationWebsite:e.OrganizationWebsite,createdAt:e.createdAt},t))})]}),(0,a.jsxs)("div",{className:"md:col-span-4 overflow-y-auto scrollbar-hide max-h-[calc(100vh-64px)]",children:[(0,a.jsx)("div",{className:"flex justify-center p-2 font-serif text-gray-800 font-bold text-2xl",children:"Ai Trained Models"}),(0,a.jsxs)("div",{className:"flex p-3",children:[(0,a.jsx)("div",{className:"text-start py-2 font-bold font-sans",children:"Name"}),(0,a.jsx)("div",{className:"flex-grow text-center py-2 font-bold font-sans",children:"API Key"})]}),(0,a.jsx)("div",{className:"p-4 overflow-y-auto",children:l&&l.response&&l.response.data&&l.response.data.map((e,t)=>(0,a.jsx)(h(),{href:"/trychatbot",onClick:()=>{localStorage.setItem("apiKey",e.apiKey)},children:(0,a.jsx)(dashboard_AiModel,{organizationName:e.organizationName,uploadKnowledge:e.uploadKnowledge,embeddedKnowlege:e.embeddedKnowlege,apiKey:e.apiKey,createdAt:e.createdAt})},t))})]})]}):(0,a.jsx)(x.Z,{})]})}}},function(e){e.O(0,[447,115,400,438,321,971,864,744],function(){return e(e.s=9129)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/build/_next/static/chunks/app/login/page-a3c73a93dc723f96.js b/build/_next/static/chunks/app/login/page-ecf9fe282b7f96c5.js similarity index 53% rename from build/_next/static/chunks/app/login/page-a3c73a93dc723f96.js rename to build/_next/static/chunks/app/login/page-ecf9fe282b7f96c5.js index dac8bea..37da915 100644 --- a/build/_next/static/chunks/app/login/page-a3c73a93dc723f96.js +++ b/build/_next/static/chunks/app/login/page-ecf9fe282b7f96c5.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[626],{6745:function(e,t,r){Promise.resolve().then(r.bind(r,7621))},7832:function(e,t,r){"use strict";r.d(t,{Z:function(){return Components_Navbar}});var a=r(7437),n=r(1396),s=r.n(n);r(2265);var i=r(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(s(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(i.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},9947:function(e,t,r){"use strict";r.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=r(2173),n=r(3396);let s=(0,n.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(s+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(s+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(s+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(s+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(s+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,r){"use strict";r.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.tech":"http://localhost:8000"},7621:function(e,t,r){"use strict";r.r(t);var a=r(7437),n=r(2265),s=r(7832),i=r(171),l=r(9150),o=r(4033),d=r(9947),c=r(1396),u=r.n(c);t.default=()=>{let e=(0,o.useRouter)(),[t,r]=(0,n.useState)(!1),[c,p]=(0,n.useState)({UserName:"",Password:""}),handleChange=e=>{p({...c,[e.target.name]:e.target.value})},handleSubmit=async t=>{var a;t.preventDefault(),r(!0);let n=await (0,d.gx)(c);r(!1),(null===(a=n.data)||void 0===a?void 0:a.status)!="Failed"?(localStorage.setItem("UserId",n.data.response.data._id),(0,i.Am)("Organization Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),e.push("/dashboard")):i.Am.error("Failed to Login !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{}),(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-opacity-50 sm:pt-24 pt-30",children:(0,a.jsxs)("form",{onSubmit:handleSubmit,className:"p-8 bg-white rounded-lg shadow-xl w-96 bg-opacity-10",style:{backdropFilter:"blur(4px)"},children:[(0,a.jsx)("div",{className:"text-gray-950 flex justify-center text-2xl",children:"Log In"}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"UserName"}),(0,a.jsx)("input",{type:"text",name:"UserName",required:!0,minLength:6,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Password"}),(0,a.jsx)("input",{type:"password",name:"Password",required:!0,minLength:6,maxLength:12,onChange:handleChange,title:"Please enter a 10-digit mobile number",className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),t?(0,a.jsx)("button",{disabled:!0,className:"w-full flex justify-center py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:(0,a.jsx)(l.Z7b,{className:"animate-spin"})}):(0,a.jsx)("button",{className:"w-full py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:"Submit"}),(0,a.jsxs)("p",{className:"font-sans font-normal flex justify-center p-2",children:["Create An Account"," ",(0,a.jsx)(u(),{href:"/sign-up",className:"text-sky-500 underline italic pl-2",children:"Sign Up"})]})]})})]})}},4033:function(e,t,r){e.exports=r(290)}},function(e){e.O(0,[447,712,438,321,971,864,744],function(){return e(e.s=6745)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[626],{6745:function(e,t,r){Promise.resolve().then(r.bind(r,7621))},7832:function(e,t,r){"use strict";r.d(t,{Z:function(){return Components_Navbar}});var a=r(7437),n=r(1396),s=r.n(n);r(2265);var i=r(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(s(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(i.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},9947:function(e,t,r){"use strict";r.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=r(2173),n=r(3396);let s=(0,n.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(s+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(s+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(s+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(s+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(s+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,r){"use strict";r.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.fun":"http://localhost:8000"},7621:function(e,t,r){"use strict";r.r(t);var a=r(7437),n=r(2265),s=r(7832),i=r(171),l=r(9150),o=r(4033),d=r(9947),c=r(1396),u=r.n(c);t.default=()=>{let e=(0,o.useRouter)(),[t,r]=(0,n.useState)(!1),[c,p]=(0,n.useState)({UserName:"",Password:""}),handleChange=e=>{p({...c,[e.target.name]:e.target.value})},handleSubmit=async t=>{var a;t.preventDefault(),r(!0);let n=await (0,d.gx)(c);r(!1),(null===(a=n.data)||void 0===a?void 0:a.status)!="Failed"?(localStorage.setItem("UserId",n.data.response.data._id),(0,i.Am)("Organization Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),e.push("/dashboard")):i.Am.error("Failed to Login !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{}),(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-opacity-50 sm:pt-24 pt-30",children:(0,a.jsxs)("form",{onSubmit:handleSubmit,className:"p-8 bg-white rounded-lg shadow-xl w-96 bg-opacity-10",style:{backdropFilter:"blur(4px)"},children:[(0,a.jsx)("div",{className:"text-gray-950 flex justify-center text-2xl",children:"Log In"}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"UserName"}),(0,a.jsx)("input",{type:"text",name:"UserName",required:!0,minLength:6,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Password"}),(0,a.jsx)("input",{type:"password",name:"Password",required:!0,minLength:6,maxLength:12,onChange:handleChange,title:"Please enter a 10-digit mobile number",className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),t?(0,a.jsx)("button",{disabled:!0,className:"w-full flex justify-center py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:(0,a.jsx)(l.Z7b,{className:"animate-spin"})}):(0,a.jsx)("button",{className:"w-full py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:"Submit"}),(0,a.jsxs)("p",{className:"font-sans font-normal flex justify-center p-2",children:["Create An Account"," ",(0,a.jsx)(u(),{href:"/sign-up",className:"text-sky-500 underline italic pl-2",children:"Sign Up"})]})]})})]})}},4033:function(e,t,r){e.exports=r(290)}},function(e){e.O(0,[447,712,438,321,971,864,744],function(){return e(e.s=6745)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/build/_next/static/chunks/app/organization/page-b632a17153cac7c1.js b/build/_next/static/chunks/app/organization/page-36fd2c3bd12de2b9.js similarity index 51% rename from build/_next/static/chunks/app/organization/page-b632a17153cac7c1.js rename to build/_next/static/chunks/app/organization/page-36fd2c3bd12de2b9.js index 602f36c..2b08d06 100644 --- a/build/_next/static/chunks/app/organization/page-b632a17153cac7c1.js +++ b/build/_next/static/chunks/app/organization/page-36fd2c3bd12de2b9.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{3788:function(e,t,r){Promise.resolve().then(r.bind(r,577))},7832:function(e,t,r){"use strict";r.d(t,{Z:function(){return Components_Navbar}});var a=r(7437),n=r(1396),i=r.n(n);r(2265);var s=r(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(i(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(s.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},4608:function(e,t,r){"use strict";var a=r(7437);r(2265);var n=r(1396),i=r.n(n);t.Z=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,a.jsxs)("div",{className:"bg-white bg-opacity-10 rounded-xl p-8 w-96 shadow-lg backdrop-blur-md",children:[(0,a.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Login Is Require !"}),(0,a.jsx)(i(),{href:"/login",className:"px-4 py-2 rounded bg-white bg-opacity-20 hover:bg-opacity-30 focus:outline-none",children:"Sign Up"})]})})})},9947:function(e,t,r){"use strict";r.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=r(2173),n=r(3396);let i=(0,n.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(i+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(i+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(i+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(i+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(i+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,r){"use strict";r.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.tech":"http://localhost:8000"},577:function(e,t,r){"use strict";r.r(t);var a=r(7437),n=r(2265),i=r(7832),s=r(171),o=r(9150),l=r(4033),d=r(9947),c=r(4608);t.default=()=>{let[e,t]=(0,n.useState)(null);(0,n.useEffect)(()=>{{let e=localStorage.getItem("UserId");t(e)}},[]);let r=(0,l.useRouter)(),[u,g]=(0,n.useState)(!1),[m,p]=(0,n.useState)({userId:"",OrganizationName:"",OrganizationWebsite:"",organizationEmail:"",OrganizationPhone:"",isActive:!0});(0,n.useEffect)(()=>{let e=localStorage.getItem("UserId");p(t=>({...t,userId:e||t.userId}))},[]);let handleChange=e=>{p({...m,[e.target.name]:e.target.value})},handleSubmit=async e=>{e.preventDefault(),g(!0);let t=await (0,d.Fi)(m);g(!1),200==t.status?((0,s.Am)("Organization Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),r.push("/dashboard")):s.Am.error("Failed to Submit !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Z,{}),e?(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-opacity-50 sm:pt-24 pt-48",children:(0,a.jsxs)("form",{onSubmit:handleSubmit,className:"p-8 bg-white rounded-lg shadow-xl w-96 bg-opacity-10",style:{backdropFilter:"blur(4px)"},children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Organization Name"}),(0,a.jsx)("input",{type:"text",name:"OrganizationName",required:!0,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border border-gray-300 bg-opacity-50 bg-pink-50 focus:outline-none focus:border-indigo-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Organization Website"}),(0,a.jsx)("input",{type:"url",name:"OrganizationWebsite",required:!0,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-indigo-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Organization Email"}),(0,a.jsx)("input",{type:"email",name:"organizationEmail",required:!0,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-indigo-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Organization Phone"}),(0,a.jsx)("input",{type:"number",name:"OrganizationPhone",maxLength:10,minLength:10,required:!0,onChange:handleChange,title:"Please enter a 10-digit mobile number",className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-indigo-500"})]}),u?(0,a.jsx)("button",{disabled:!0,className:"w-full flex justify-center py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:(0,a.jsx)(o.Z7b,{className:"animate-spin"})}):(0,a.jsx)("button",{className:"w-full py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:"Submit"})]})}):(0,a.jsx)(c.Z,{})]})}},4033:function(e,t,r){e.exports=r(290)}},function(e){e.O(0,[447,712,438,321,971,864,744],function(){return e(e.s=3788)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{3788:function(e,t,r){Promise.resolve().then(r.bind(r,577))},7832:function(e,t,r){"use strict";r.d(t,{Z:function(){return Components_Navbar}});var a=r(7437),n=r(1396),i=r.n(n);r(2265);var s=r(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(i(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(s.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},4608:function(e,t,r){"use strict";var a=r(7437);r(2265);var n=r(1396),i=r.n(n);t.Z=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,a.jsxs)("div",{className:"bg-white bg-opacity-10 rounded-xl p-8 w-96 shadow-lg backdrop-blur-md",children:[(0,a.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Login Is Require !"}),(0,a.jsx)(i(),{href:"/login",className:"px-4 py-2 rounded bg-white bg-opacity-20 hover:bg-opacity-30 focus:outline-none",children:"Sign Up"})]})})})},9947:function(e,t,r){"use strict";r.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=r(2173),n=r(3396);let i=(0,n.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(i+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(i+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(i+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(i+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(i+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,r){"use strict";r.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.fun":"http://localhost:8000"},577:function(e,t,r){"use strict";r.r(t);var a=r(7437),n=r(2265),i=r(7832),s=r(171),o=r(9150),l=r(4033),d=r(9947),c=r(4608);t.default=()=>{let[e,t]=(0,n.useState)(null);(0,n.useEffect)(()=>{{let e=localStorage.getItem("UserId");t(e)}},[]);let r=(0,l.useRouter)(),[u,g]=(0,n.useState)(!1),[m,p]=(0,n.useState)({userId:"",OrganizationName:"",OrganizationWebsite:"",organizationEmail:"",OrganizationPhone:"",isActive:!0});(0,n.useEffect)(()=>{let e=localStorage.getItem("UserId");p(t=>({...t,userId:e||t.userId}))},[]);let handleChange=e=>{p({...m,[e.target.name]:e.target.value})},handleSubmit=async e=>{e.preventDefault(),g(!0);let t=await (0,d.Fi)(m);g(!1),200==t.status?((0,s.Am)("Organization Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),r.push("/dashboard")):s.Am.error("Failed to Submit !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Z,{}),e?(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-opacity-50 sm:pt-24 pt-48",children:(0,a.jsxs)("form",{onSubmit:handleSubmit,className:"p-8 bg-white rounded-lg shadow-xl w-96 bg-opacity-10",style:{backdropFilter:"blur(4px)"},children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Organization Name"}),(0,a.jsx)("input",{type:"text",name:"OrganizationName",required:!0,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border border-gray-300 bg-opacity-50 bg-pink-50 focus:outline-none focus:border-indigo-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Organization Website"}),(0,a.jsx)("input",{type:"url",name:"OrganizationWebsite",required:!0,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-indigo-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Organization Email"}),(0,a.jsx)("input",{type:"email",name:"organizationEmail",required:!0,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-indigo-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Organization Phone"}),(0,a.jsx)("input",{type:"number",name:"OrganizationPhone",maxLength:10,minLength:10,required:!0,onChange:handleChange,title:"Please enter a 10-digit mobile number",className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-indigo-500"})]}),u?(0,a.jsx)("button",{disabled:!0,className:"w-full flex justify-center py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:(0,a.jsx)(o.Z7b,{className:"animate-spin"})}):(0,a.jsx)("button",{className:"w-full py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:"Submit"})]})}):(0,a.jsx)(c.Z,{})]})}},4033:function(e,t,r){e.exports=r(290)}},function(e){e.O(0,[447,712,438,321,971,864,744],function(){return e(e.s=3788)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/build/_next/static/chunks/app/sign-up/page-1fc6030d94707d3c.js b/build/_next/static/chunks/app/sign-up/page-a9ab3e331b5b54a2.js similarity index 50% rename from build/_next/static/chunks/app/sign-up/page-1fc6030d94707d3c.js rename to build/_next/static/chunks/app/sign-up/page-a9ab3e331b5b54a2.js index 7146021..6e754d6 100644 --- a/build/_next/static/chunks/app/sign-up/page-1fc6030d94707d3c.js +++ b/build/_next/static/chunks/app/sign-up/page-a9ab3e331b5b54a2.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[914],{7290:function(e,t,r){Promise.resolve().then(r.bind(r,9136))},7832:function(e,t,r){"use strict";r.d(t,{Z:function(){return Components_Navbar}});var a=r(7437),n=r(1396),s=r.n(n);r(2265);var i=r(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(s(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(i.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},9947:function(e,t,r){"use strict";r.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=r(2173),n=r(3396);let s=(0,n.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(s+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(s+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(s+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(s+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(s+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,r){"use strict";r.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.tech":"http://localhost:8000"},9136:function(e,t,r){"use strict";r.r(t);var a=r(7437),n=r(2265),s=r(7832),i=r(171),l=r(9150),o=r(4033),d=r(9947),c=r(1396),u=r.n(c);t.default=()=>{let e=(0,o.useRouter)(),[t,r]=(0,n.useState)(!1),[c,p]=(0,n.useState)({UserName:"",UserEmail:"",Password:""}),handleChange=e=>{p({...c,[e.target.name]:e.target.value})},handleSubmit=async t=>{var a;t.preventDefault(),r(!0);let n=await (0,d.Mo)(c);r(!1),console.log(n),(null===(a=n.data)||void 0===a?void 0:a.status)=="Success"?(localStorage.setItem("UserId",n.data.response.data),(0,i.Am)("Organization Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),e.push("/organization")):i.Am.error("User Already Exist!",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{}),(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-opacity-50 sm:pt-24 pt-30",children:(0,a.jsxs)("form",{onSubmit:handleSubmit,className:"p-8 bg-white rounded-lg shadow-xl w-96 bg-opacity-10",style:{backdropFilter:"blur(4px)"},children:[(0,a.jsx)("div",{className:"text-gray-950 flex justify-center text-2xl",children:"Sign Up"}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"UserName"}),(0,a.jsx)("input",{type:"text",name:"UserName",required:!0,minLength:6,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Email"}),(0,a.jsx)("input",{type:"email",name:"UserEmail",required:!0,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Password"}),(0,a.jsx)("input",{type:"password",name:"Password",required:!0,minLength:6,maxLength:12,onChange:handleChange,title:"Please enter a 10-digit mobile number",className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),t?(0,a.jsx)("button",{disabled:!0,className:"w-full flex justify-center py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:(0,a.jsx)(l.Z7b,{className:"animate-spin"})}):(0,a.jsx)("button",{className:"w-full py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:"Submit"}),(0,a.jsxs)("p",{className:"font-sans font-normal flex justify-center p-2",children:["Already Have Account ",(0,a.jsx)(u(),{href:"/login",className:"text-sky-500 underline italic pl-2",children:"Login"})]})]})})]})}},4033:function(e,t,r){e.exports=r(290)}},function(e){e.O(0,[447,712,438,321,971,864,744],function(){return e(e.s=7290)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[914],{7290:function(e,t,r){Promise.resolve().then(r.bind(r,9136))},7832:function(e,t,r){"use strict";r.d(t,{Z:function(){return Components_Navbar}});var a=r(7437),n=r(1396),s=r.n(n);r(2265);var i=r(4606),Components_Logout=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{children:(0,a.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,a.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,a.jsx)(s(),{href:"/dashboard",className:"flex items-center",children:(0,a.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,a.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,a.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,a.jsx)("li",{children:(0,a.jsx)(s(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(i.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,a.jsx)(Components_Logout,{})]})})]})})})})},9947:function(e,t,r){"use strict";r.d(t,{$9:function(){return getOrganizationById},Fi:function(){return addOrganization},Mo:function(){return SignUp},XU:function(){return getAiModelById},gx:function(){return Auth}});var a=r(2173),n=r(3396);let s=(0,n.K)({Production:!0}),getOrganizationById=async e=>{let t=await a.Z.get(s+"/api/v1/getOrganizationById",{params:{UserId:e}});return t.data},getAiModelById=async e=>{let t=await a.Z.get(s+"/api/v1/getAiModelById",{params:{UserId:e}});return t.data},addOrganization=async e=>{let t=await a.Z.post(s+"/api/v1/newOrganization",e);return t},Auth=async e=>{let t=await a.Z.post(s+"/register/login",e,{withCredentials:!0});return t},SignUp=async e=>{let t=await a.Z.post(s+"/register/signup",e,{withCredentials:!0});return t}},3396:function(e,t,r){"use strict";r.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.fun":"http://localhost:8000"},9136:function(e,t,r){"use strict";r.r(t);var a=r(7437),n=r(2265),s=r(7832),i=r(171),l=r(9150),o=r(4033),d=r(9947),c=r(1396),u=r.n(c);t.default=()=>{let e=(0,o.useRouter)(),[t,r]=(0,n.useState)(!1),[c,p]=(0,n.useState)({UserName:"",UserEmail:"",Password:""}),handleChange=e=>{p({...c,[e.target.name]:e.target.value})},handleSubmit=async t=>{var a;t.preventDefault(),r(!0);let n=await (0,d.Mo)(c);r(!1),console.log(n),(null===(a=n.data)||void 0===a?void 0:a.status)=="Success"?(localStorage.setItem("UserId",n.data.response.data),(0,i.Am)("Organization Submitted !",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"}),e.push("/organization")):i.Am.error("User Already Exist!",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{}),(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-opacity-50 sm:pt-24 pt-30",children:(0,a.jsxs)("form",{onSubmit:handleSubmit,className:"p-8 bg-white rounded-lg shadow-xl w-96 bg-opacity-10",style:{backdropFilter:"blur(4px)"},children:[(0,a.jsx)("div",{className:"text-gray-950 flex justify-center text-2xl",children:"Sign Up"}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"UserName"}),(0,a.jsx)("input",{type:"text",name:"UserName",required:!0,minLength:6,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Email"}),(0,a.jsx)("input",{type:"email",name:"UserEmail",required:!0,onChange:handleChange,className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{className:"block text-gray-600",children:"Password"}),(0,a.jsx)("input",{type:"password",name:"Password",required:!0,minLength:6,maxLength:12,onChange:handleChange,title:"Please enter a 10-digit mobile number",className:"mt-1 w-full px-4 py-2 rounded-md border bg-opacity-50 bg-pink-50 border-gray-300 focus:outline-none focus:border-pink-500"})]}),t?(0,a.jsx)("button",{disabled:!0,className:"w-full flex justify-center py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:(0,a.jsx)(l.Z7b,{className:"animate-spin"})}):(0,a.jsx)("button",{className:"w-full py-2 px-4 bg-pink-600 text-white rounded-md hover:bg-pink-700",children:"Submit"}),(0,a.jsxs)("p",{className:"font-sans font-normal flex justify-center p-2",children:["Already Have Account ",(0,a.jsx)(u(),{href:"/login",className:"text-sky-500 underline italic pl-2",children:"Login"})]})]})})]})}},4033:function(e,t,r){e.exports=r(290)}},function(e){e.O(0,[447,712,438,321,971,864,744],function(){return e(e.s=7290)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/build/_next/static/chunks/app/trychatbot/page-7633bf166bbd22ce.js b/build/_next/static/chunks/app/trychatbot/page-7633bf166bbd22ce.js new file mode 100644 index 0000000..3559cde --- /dev/null +++ b/build/_next/static/chunks/app/trychatbot/page-7633bf166bbd22ce.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[819],{9837:function(e,t,n){Promise.resolve().then(n.bind(n,6011))},7832:function(e,t,n){"use strict";n.d(t,{Z:function(){return Components_Navbar}});var s=n(7437),a=n(1396),r=n.n(a);n(2265);var o=n(4606),Components_Logout=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("li",{children:(0,s.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{children:(0,s.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,s.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,s.jsx)(r(),{href:"/dashboard",className:"flex items-center",children:(0,s.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,s.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,s.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,s.jsx)("li",{children:(0,s.jsx)(r(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,s.jsx)("li",{children:(0,s.jsx)(r(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,s.jsx)("li",{children:(0,s.jsx)(r(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,s.jsx)("li",{children:(0,s.jsx)(r(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(o.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,s.jsx)(Components_Logout,{})]})})]})})})})},4608:function(e,t,n){"use strict";var s=n(7437);n(2265);var a=n(1396),r=n.n(a);t.Z=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,s.jsxs)("div",{className:"bg-white bg-opacity-10 rounded-xl p-8 w-96 shadow-lg backdrop-blur-md",children:[(0,s.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Login Is Require !"}),(0,s.jsx)(r(),{href:"/login",className:"px-4 py-2 rounded bg-white bg-opacity-20 hover:bg-opacity-30 focus:outline-none",children:"Sign Up"})]})})})},3396:function(e,t,n){"use strict";n.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.fun":"http://localhost:8000"},6011:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return page}});var s=n(7437),a=n(2265),r=n(1678),o=n(3396);let l=(0,o.K)({Production:!0});var trychatbot_ChatBotComponent=e=>{let{initialMessage:t="Hello! How Can I Assist You ?",chatbotTitle:n="Chat bot",brandImage:o="https://www.kindpng.com/picc/m/179-1798038_chatbots-builder-pricing-crozdesk-free-chatbot-hd-png.png",apiKey:i,switchAPI:c=!1,suggestions:d=[],rateLimitDuration:h=5e3}=e,[u,p]=(0,a.useState)(!1),[m,x]=(0,a.useState)([]),[g,b]=(0,a.useState)(""),[f,j]=(0,a.useState)(!1),v=(0,a.useRef)(null),y=(0,a.useRef)(null),[w,k]=(0,a.useState)(!1),[C,N]=(0,a.useState)(d),handleSuggestionClick=e=>{b(e),sendMessage(),N([])};async function generateAnswers(e){try{let t=l+"/api/v1/QnARetrieval?key=".concat(i);c&&(t="https://your-hosted-domain/api/v1/organization/generateCompletion?key=".concat(i));let n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:e})}),s=await n.json();x(e=>[...e,{type:"bot",text:s.message}]),j(!1)}catch(e){console.error(e),x(e=>[...e,{type:"bot",text:"OOPs! something went wrong"}]),j(!1)}}(0,a.useEffect)(()=>{t&&x([{type:"bot",text:t}])},[t]),(0,a.useEffect)(()=>{if(u){var e;null===(e=v.current)||void 0===e||e.focus()}},[u]),(0,a.useEffect)(()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},[m]),(0,a.useEffect)(()=>{N(d)},[d]);let sendMessage=()=>{if(g.trim()&&!w){let e={type:"user",text:g};x(t=>[...t,e]),b(""),j(!0),N([]),generateAnswers(g),k(!0),setTimeout(()=>k(!1),h)}};return(0,s.jsx)("div",{className:"fixed bottom-10 right-10",children:u?(0,s.jsxs)("div",{className:"w-80 h-96 border p-4 bg-white rounded-lg flex flex-col shadow-lg",children:[(0,s.jsxs)("div",{className:"mb-4 font-bold flex justify-between items-center text-black p-2 rounded-t-lg",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("img",{src:o,alt:"brand",className:"w-6 h-6 rounded-full object-cover mr-2"}),(0,s.jsx)("span",{children:n})]}),(0,s.jsx)("button",{onClick:()=>p(!1),children:(0,s.jsx)(r.ZCS,{})})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto mb-4",children:[m.map((e,t)=>(0,s.jsxs)("div",{className:"p-2 my-2 ".concat("user"===e.type?"ml-auto":""),children:["bot"===e.type&&(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("img",{src:o,alt:"Bot",className:"w-6 h-6 rounded-full mr-2"}),(0,s.jsx)("span",{className:"text-black bg-gray-300 rounded-md pr-4 p-2",children:e.text})]}),"user"===e.type&&(0,s.jsxs)("div",{className:"flex flex-col items-end",children:[(0,s.jsx)("span",{className:"text-gray-600 text-sm mb-1",children:"You"}),(0,s.jsx)("span",{className:"bg-gray-300 pr-4 p-2 rounded-md text-black",children:e.text})]})]},t)),f&&(0,s.jsx)("div",{className:"text-gray-600",children:"Bot is typing..."}),(0,s.jsx)("div",{ref:y}),C.length>0&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex overflow-y-auto",children:[(0,s.jsx)("img",{src:o,alt:"Bot",className:"w-6 h-6 rounded-full mr-2"}),(0,s.jsxs)("div",{className:"bg-gray-300 p-2 rounded-lg",children:[(0,s.jsx)("div",{className:"mt-2",children:"Here are Some Suggestions"}),C.map((e,t)=>(0,s.jsx)("div",{className:"flex items-center mt-2",children:(0,s.jsx)("button",{className:"chatbot-suggestion-label bg-white hover:bg-gray-500 text-black rounded-md px-2 py-1",onClick:()=>handleSuggestionClick(e),children:e})},t))]})]})})]}),(0,s.jsxs)("div",{className:"flex space-x-2",children:[(0,s.jsx)("input",{ref:v,type:"text",value:g,onChange:e=>b(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),sendMessage())},className:"flex-1 p-2 border rounded-md"}),(0,s.jsx)("button",{onClick:sendMessage,disabled:f||w,className:"px-1 py-1 bg-blue-500 hover:bg-blue-600 active:bg-blue-700 text-white rounded-md",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"30px",width:"30px",children:(0,s.jsx)("path",{fill:"#d7d7d7",d:"M22,11.7V12h-0.1c-0.1,1-17.7,9.5-18.8,9.1c-1.1-0.4,2.4-6.7,3-7.5C6.8,12.9,17.1,12,17.1,12H17c0,0,0-0.2,0-0.2c0,0,0,0,0,0c0-0.4-10.2-1-10.8-1.7c-0.6-0.7-4-7.1-3-7.5C4.3,2.1,22,10.5,22,11.7z"})})})]})]}):(0,s.jsx)("div",{onClick:()=>p(!0),className:"w-16 h-16 bg-white rounded-full flex items-center justify-center cursor-pointer shadow-lg",children:(0,s.jsx)("img",{src:o,alt:"Chat Icon",className:"w-full h-full rounded-full object-cover"})})})},i=n(7832),c=n(4608);n(4741);var d=n(6820),h=n(2686),u=n.n(h),Docs_DocsModal=e=>{let{apiKey:t,initialMessage:n,chatbotTitle:r,brandImage:o,suggestions:l,rateLimitDuration:i,onClick:c}=e,h='async function generateAnswer(userQuestion) {\n let chatAPIUrl = "https://chit-chat.fun/api/v1/QnARetrieval?key='.concat(t,'";\n \n const payloadBody = {\n prompt: userQuestion,\n };\n \n try {\n const response = await fetch(chatAPIUrl, {\n method: "POST",\n headers: {\n "Content-Type": "application/json",\n },\n body: JSON.stringify(payloadBody),\n });\n \n if (!response.ok) {\n throw new Error("HTTP error! Status:",response.status);\n }\n \n const jsonData = await response.json();\n return jsonData;\n } catch (error) {\n console.error("Error fetching data:", error);\n throw error; \n }\n }\n \n //generateAnswer("ask your question").then(\n //answer=> console.log(answer)\n //).catch(error=> console.log(error))\n '),[p,m]=(0,a.useState)(h),handleButtonClick=e=>{switch(e){case"API":m("".concat(h));break;case"JS":m('\n\n\n \n \n \n Chat Bot\n\n\n
\n\n\n\n\n\n\n\n "));break;case"REACTJS":m("\n`1. Install this Dependency:`\nnpm i chit-chat-react\n\n`2. Configuration & Usage:`\n\nimport ChatBot from 'chit-chat-react';\n\nexport default function YourComponent() {\n return '"'.concat(e,'"')).join(", "),"]}\n rateLimitDuration = {").concat(i,"} />;\n}\n\n "));break;case"PYTHON":m('\n`1. Install this library:`\npip install requests\n\n`2. Usage:`\n\nimport requests\n\ndef generate_answer(user_question):\n chat_api_url = "https://chit-chat.fun/api/v1/QnARetrieval?key='.concat(t,'"\n\n payload_body = {\n "prompt": user_question,\n }\n\n try:\n response = requests.post(chat_api_url, json=payload_body, headers={"Content-Type": "application/json"})\n\n if response.status_code != 200:\n raise Exception(f"HTTP error! Status: {response.status_code}")\n\n json_data = response.json()\n return json_data\n\n except Exception as e:\n print("Error fetching data:", e)\n raise e\n\n# Usage example\n\nuser_question = "How does this work?"\n\ntry:\n result = generate_answer(user_question)\n print(result)\nexcept Exception as e:\n print("An error occurred:", e)\n '));break;default:m("")}},x=(0,a.useRef)(null);return(0,a.useEffect)(()=>{x.current&&u().highlightAllUnder(x.current)},[p]),(0,s.jsx)("div",{onClick:c,className:"absolute inset-0 flex items-center justify-center p-4 sm:p-28 md:p-32 lg:p-16 xl:p-12",children:(0,s.jsxs)("div",{onClick:e=>{e.stopPropagation()},className:"relative bg-white bg-opacity-20 backdrop-blur-md p-4 sm:p-6 rounded-lg w-full max-w-2xl h-full max-h-screen overflow-y-auto",children:[(0,s.jsxs)("div",{className:"flex space-x-4 mb-4",children:[(0,s.jsx)("button",{onClick:()=>handleButtonClick("API"),className:"px-3 py-2 bg-pink-500 text-white rounded",children:"API"}),(0,s.jsx)("button",{onClick:()=>handleButtonClick("JS"),className:"px-3 py-2 bg-pink-500 text-white rounded",children:"JS"}),(0,s.jsx)("button",{onClick:()=>handleButtonClick("REACTJS"),className:"px-3 py-2 bg-pink-500 text-white rounded",children:"REACTJS"}),(0,s.jsx)("button",{onClick:()=>handleButtonClick("PYTHON"),className:"px-3 py-2 bg-pink-500 text-white rounded",children:"PYTHON"})]}),(0,s.jsx)("button",{onClick:()=>{if(x.current){let e=x.current.innerText;navigator.clipboard.writeText(e)}},className:"absolute top-2 right-2 bg-white p-2 rounded-full active:bg-pink-500 hover:bg-gray-200 transition duration-300 ease-in-out z-10",children:(0,s.jsx)(d.fwS,{className:"text-pink-200 active:text-black"})}),(0,s.jsx)("div",{className:"relative z-0",children:(0,s.jsx)("pre",{ref:x,className:"language-javascript overflow-x-auto rounded-lg shadow-xl hljs p-2 sm:text-base text-sm w-full",children:(0,s.jsx)("code",{children:p})})})]})})};n(171);var page=()=>{var e;let[t,n]=(0,a.useState)(null);(0,a.useEffect)(()=>{{let e=localStorage.getItem("UserId");n(e)}},[]);let[r,o]=(0,a.useState)({apiKey:null!==(e=localStorage.getItem("apiKey"))&&void 0!==e?e:"",initialMessage:"Hello! How Can I Assist You ?",chatbotTitle:"Chat bot",brandImage:"https://www.kindpng.com/picc/m/179-1798038_chatbots-builder-pricing-crozdesk-free-chatbot-hd-png.png",suggestions:[],rateLimitDuration:5e3}),[l,d]=(0,a.useState)({apiKey:"",initialMessage:"Hello! How Can I Assist You ?",chatbotTitle:"Chat bot",brandImage:"https://www.kindpng.com/picc/m/179-1798038_chatbots-builder-pricing-crozdesk-free-chatbot-hd-png.png",suggestions:[],rateLimitDuration:5e3}),[h,u]=(0,a.useState)(!1),closeModal=()=>{u(!1)};return(0,a.useRef)(),(0,a.useEffect)(()=>{let handleClickOutside=e=>{e.target.classList.contains("modal-background")&&closeModal()};return document.addEventListener("mousedown",handleClickOutside),()=>{document.removeEventListener("mousedown",handleClickOutside)}},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Z,{}),t?(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(Docs_DocsModal,{onClick:closeModal,...l}),(0,s.jsxs)("div",{className:"sm:pt-20 pt-48 overflow-y-auto flex items-center justify-center",children:[(0,s.jsx)("div",{className:"bg-white bg-opacity-50 rounded p-8 w-96",children:(0,s.jsxs)("form",{className:"space-y-4",onSubmit:e=>{e.preventDefault(),console.log(r),u(!0),d(r)},children:[(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{className:"font-sans font-semibold text-md p-2",children:"Chatbot Title:"}),(0,s.jsx)("input",{className:"block bg-pink-400 bg-opacity-10 rounded p-2 w-full",placeholder:"Chatbot Title",value:r.chatbotTitle,onChange:e=>o(t=>({...t,chatbotTitle:e.target.value}))})]}),(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{className:"font-sans font-semibold text-md p-2",children:"Brand Image URL:"}),(0,s.jsx)("input",{className:"block bg-pink-400 bg-opacity-10 rounded p-2 w-full",placeholder:"Brand Image URL",value:r.brandImage,onChange:e=>o(t=>({...t,brandImage:e.target.value}))})]}),(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{className:"font-sans font-semibold text-md p-2",children:"Suggestions:"}),(0,s.jsx)("textarea",{className:"block bg-pink-400 bg-opacity-10 rounded p-2 w-full",placeholder:"Enter suggestions (one per line)",value:r.suggestions.join("\n"),onChange:e=>o(t=>({...t,suggestions:e.target.value.split("\n")}))})]}),(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{className:"font-sans font-semibold text-md p-2",children:"Rate Limit Duration (in MS):"}),(0,s.jsx)("input",{className:"block bg-pink-400 bg-opacity-10 rounded p-2 w-full",placeholder:"Rate Limit Duration",type:"number",value:r.rateLimitDuration,onChange:e=>o(t=>({...t,rateLimitDuration:Number(e.target.value)}))})]}),(0,s.jsx)("button",{type:"submit",className:"mt-4 bg-pink-500 text-white rounded p-2",children:"Integrate"})]})}),(0,s.jsx)(trychatbot_ChatBotComponent,{...r})]})]}):(0,s.jsx)(c.Z,{})]})}}},function(e){e.O(0,[447,115,724,438,900,971,864,744],function(){return e(e.s=9837)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/build/_next/static/chunks/app/trychatbot/page-9861d3ec6e868b6e.js b/build/_next/static/chunks/app/trychatbot/page-9861d3ec6e868b6e.js deleted file mode 100644 index 33ce45f..0000000 --- a/build/_next/static/chunks/app/trychatbot/page-9861d3ec6e868b6e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[819],{9837:function(e,t,n){Promise.resolve().then(n.bind(n,6011))},7832:function(e,t,n){"use strict";n.d(t,{Z:function(){return Components_Navbar}});var s=n(7437),a=n(1396),r=n.n(a);n(2265);var o=n(4606),Components_Logout=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("li",{children:(0,s.jsx)("div",{onClick:()=>{localStorage.removeItem("UserId"),window.location.reload()},className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Log Out"})})}),Components_Navbar=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{children:(0,s.jsx)("nav",{className:"fixed top-0 left-0 w-full border-gray-200 px-2 sm:px-4 py-2.5 rounded",children:(0,s.jsxs)("div",{className:"container flex flex-wrap justify-between items-center mx-auto",children:[(0,s.jsx)(r(),{href:"/dashboard",className:"flex items-center",children:(0,s.jsx)("span",{className:"self-center text-xl font-semibold font-serif px-3 whitespace-nowrap text-gray-700",children:"Chit-Chat"})}),(0,s.jsx)("div",{className:"w-full md:w-auto",id:"navbar-default",children:(0,s.jsxs)("ul",{className:"flex flex-row flex-wrap p-4 mt-4 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 dark:border-gray-400",children:[(0,s.jsx)("li",{children:(0,s.jsx)(r(),{href:"/organization",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Organizations"})}),(0,s.jsx)("li",{children:(0,s.jsx)(r(),{href:"/addAIData",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"Train Data"})}),(0,s.jsx)("li",{children:(0,s.jsx)(r(),{href:"https://github.com/apurvjha123",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:"About"})}),(0,s.jsx)("li",{children:(0,s.jsx)(r(),{href:"https://github.com/apurvjha123/chit-chat-nextjs",className:"block py-2 pr-4 pl-3 text-gray-700 hover:text-sky-600 rounded md:bg-transparent md:p-0",children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(o.rFR,{className:"p-1 text-xl"}),"Contribute"]})})}),(0,s.jsx)(Components_Logout,{})]})})]})})})})},4608:function(e,t,n){"use strict";var s=n(7437);n(2265);var a=n(1396),r=n.n(a);t.Z=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,s.jsxs)("div",{className:"bg-white bg-opacity-10 rounded-xl p-8 w-96 shadow-lg backdrop-blur-md",children:[(0,s.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Login Is Require !"}),(0,s.jsx)(r(),{href:"/login",className:"px-4 py-2 rounded bg-white bg-opacity-20 hover:bg-opacity-30 focus:outline-none",children:"Sign Up"})]})})})},3396:function(e,t,n){"use strict";n.d(t,{K:function(){return serverUrl}});let serverUrl=e=>e.Production?"https://chit-chat.tech":"http://localhost:8000"},6011:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return page}});var s=n(7437),a=n(2265),r=n(1678),o=n(3396);let l=(0,o.K)({Production:!0});var trychatbot_ChatBotComponent=e=>{let{initialMessage:t="Hello! How Can I Assist You ?",chatbotTitle:n="Chat bot",brandImage:o="https://www.kindpng.com/picc/m/179-1798038_chatbots-builder-pricing-crozdesk-free-chatbot-hd-png.png",apiKey:i,switchAPI:c=!1,suggestions:d=[],rateLimitDuration:h=5e3}=e,[u,p]=(0,a.useState)(!1),[m,x]=(0,a.useState)([]),[g,b]=(0,a.useState)(""),[f,j]=(0,a.useState)(!1),v=(0,a.useRef)(null),y=(0,a.useRef)(null),[w,k]=(0,a.useState)(!1),[C,N]=(0,a.useState)(d),handleSuggestionClick=e=>{b(e),sendMessage(),N([])};async function generateAnswers(e){try{let t=l+"/api/v1/QnARetrieval?key=".concat(i);c&&(t="https://your-hosted-domain/api/v1/organization/generateCompletion?key=".concat(i));let n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:e})}),s=await n.json();x(e=>[...e,{type:"bot",text:s.message}]),j(!1)}catch(e){console.error(e),x(e=>[...e,{type:"bot",text:"OOPs! something went wrong"}]),j(!1)}}(0,a.useEffect)(()=>{t&&x([{type:"bot",text:t}])},[t]),(0,a.useEffect)(()=>{if(u){var e;null===(e=v.current)||void 0===e||e.focus()}},[u]),(0,a.useEffect)(()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},[m]),(0,a.useEffect)(()=>{N(d)},[d]);let sendMessage=()=>{if(g.trim()&&!w){let e={type:"user",text:g};x(t=>[...t,e]),b(""),j(!0),N([]),generateAnswers(g),k(!0),setTimeout(()=>k(!1),h)}};return(0,s.jsx)("div",{className:"fixed bottom-10 right-10",children:u?(0,s.jsxs)("div",{className:"w-80 h-96 border p-4 bg-white rounded-lg flex flex-col shadow-lg",children:[(0,s.jsxs)("div",{className:"mb-4 font-bold flex justify-between items-center text-black p-2 rounded-t-lg",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("img",{src:o,alt:"brand",className:"w-6 h-6 rounded-full object-cover mr-2"}),(0,s.jsx)("span",{children:n})]}),(0,s.jsx)("button",{onClick:()=>p(!1),children:(0,s.jsx)(r.ZCS,{})})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto mb-4",children:[m.map((e,t)=>(0,s.jsxs)("div",{className:"p-2 my-2 ".concat("user"===e.type?"ml-auto":""),children:["bot"===e.type&&(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("img",{src:o,alt:"Bot",className:"w-6 h-6 rounded-full mr-2"}),(0,s.jsx)("span",{className:"text-black bg-gray-300 rounded-md pr-4 p-2",children:e.text})]}),"user"===e.type&&(0,s.jsxs)("div",{className:"flex flex-col items-end",children:[(0,s.jsx)("span",{className:"text-gray-600 text-sm mb-1",children:"You"}),(0,s.jsx)("span",{className:"bg-gray-300 pr-4 p-2 rounded-md text-black",children:e.text})]})]},t)),f&&(0,s.jsx)("div",{className:"text-gray-600",children:"Bot is typing..."}),(0,s.jsx)("div",{ref:y}),C.length>0&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex overflow-y-auto",children:[(0,s.jsx)("img",{src:o,alt:"Bot",className:"w-6 h-6 rounded-full mr-2"}),(0,s.jsxs)("div",{className:"bg-gray-300 p-2 rounded-lg",children:[(0,s.jsx)("div",{className:"mt-2",children:"Here are Some Suggestions"}),C.map((e,t)=>(0,s.jsx)("div",{className:"flex items-center mt-2",children:(0,s.jsx)("button",{className:"chatbot-suggestion-label bg-white hover:bg-gray-500 text-black rounded-md px-2 py-1",onClick:()=>handleSuggestionClick(e),children:e})},t))]})]})})]}),(0,s.jsxs)("div",{className:"flex space-x-2",children:[(0,s.jsx)("input",{ref:v,type:"text",value:g,onChange:e=>b(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),sendMessage())},className:"flex-1 p-2 border rounded-md"}),(0,s.jsx)("button",{onClick:sendMessage,disabled:f||w,className:"px-1 py-1 bg-blue-500 hover:bg-blue-600 active:bg-blue-700 text-white rounded-md",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"30px",width:"30px",children:(0,s.jsx)("path",{fill:"#d7d7d7",d:"M22,11.7V12h-0.1c-0.1,1-17.7,9.5-18.8,9.1c-1.1-0.4,2.4-6.7,3-7.5C6.8,12.9,17.1,12,17.1,12H17c0,0,0-0.2,0-0.2c0,0,0,0,0,0c0-0.4-10.2-1-10.8-1.7c-0.6-0.7-4-7.1-3-7.5C4.3,2.1,22,10.5,22,11.7z"})})})]})]}):(0,s.jsx)("div",{onClick:()=>p(!0),className:"w-16 h-16 bg-white rounded-full flex items-center justify-center cursor-pointer shadow-lg",children:(0,s.jsx)("img",{src:o,alt:"Chat Icon",className:"w-full h-full rounded-full object-cover"})})})},i=n(7832),c=n(4608);n(4741);var d=n(6820),h=n(2686),u=n.n(h),Docs_DocsModal=e=>{let{apiKey:t,initialMessage:n,chatbotTitle:r,brandImage:o,suggestions:l,rateLimitDuration:i,onClick:c}=e,h='async function generateAnswer(userQuestion) {\n let chatAPIUrl = "https://chit-chat.tech/api/v1/QnARetrieval?key='.concat(t,'";\n \n const payloadBody = {\n prompt: userQuestion,\n };\n \n try {\n const response = await fetch(chatAPIUrl, {\n method: "POST",\n headers: {\n "Content-Type": "application/json",\n },\n body: JSON.stringify(payloadBody),\n });\n \n if (!response.ok) {\n throw new Error("HTTP error! Status:",response.status);\n }\n \n const jsonData = await response.json();\n return jsonData;\n } catch (error) {\n console.error("Error fetching data:", error);\n throw error; \n }\n }\n \n //generateAnswer("ask your question").then(\n //answer=> console.log(answer)\n //).catch(error=> console.log(error))\n '),[p,m]=(0,a.useState)(h),handleButtonClick=e=>{switch(e){case"API":m("".concat(h));break;case"JS":m('\n\n\n \n \n \n Chat Bot\n\n\n
\n\n\n\n\n\n\n\n "));break;case"REACTJS":m("\n`1. Install this Dependency:`\nnpm i chit-chat-react\n\n`2. Configuration & Usage:`\n\nimport ChatBot from 'chit-chat-react';\n\nexport default function YourComponent() {\n return '"'.concat(e,'"')).join(", "),"]}\n rateLimitDuration = {").concat(i,"} />;\n}\n\n "));break;case"PYTHON":m('\n`1. Install this library:`\npip install requests\n\n`2. Usage:`\n\nimport requests\n\ndef generate_answer(user_question):\n chat_api_url = "https://chit-chat.tech/api/v1/QnARetrieval?key='.concat(t,'"\n\n payload_body = {\n "prompt": user_question,\n }\n\n try:\n response = requests.post(chat_api_url, json=payload_body, headers={"Content-Type": "application/json"})\n\n if response.status_code != 200:\n raise Exception(f"HTTP error! Status: {response.status_code}")\n\n json_data = response.json()\n return json_data\n\n except Exception as e:\n print("Error fetching data:", e)\n raise e\n\n# Usage example\n\nuser_question = "How does this work?"\n\ntry:\n result = generate_answer(user_question)\n print(result)\nexcept Exception as e:\n print("An error occurred:", e)\n '));break;default:m("")}},x=(0,a.useRef)(null);return(0,a.useEffect)(()=>{x.current&&u().highlightAllUnder(x.current)},[p]),(0,s.jsx)("div",{onClick:c,className:"absolute inset-0 flex items-center justify-center p-4 sm:p-28 md:p-32 lg:p-16 xl:p-12",children:(0,s.jsxs)("div",{onClick:e=>{e.stopPropagation()},className:"relative bg-white bg-opacity-20 backdrop-blur-md p-4 sm:p-6 rounded-lg w-full max-w-2xl h-full max-h-screen overflow-y-auto",children:[(0,s.jsxs)("div",{className:"flex space-x-4 mb-4",children:[(0,s.jsx)("button",{onClick:()=>handleButtonClick("API"),className:"px-3 py-2 bg-pink-500 text-white rounded",children:"API"}),(0,s.jsx)("button",{onClick:()=>handleButtonClick("JS"),className:"px-3 py-2 bg-pink-500 text-white rounded",children:"JS"}),(0,s.jsx)("button",{onClick:()=>handleButtonClick("REACTJS"),className:"px-3 py-2 bg-pink-500 text-white rounded",children:"REACTJS"}),(0,s.jsx)("button",{onClick:()=>handleButtonClick("PYTHON"),className:"px-3 py-2 bg-pink-500 text-white rounded",children:"PYTHON"})]}),(0,s.jsx)("button",{onClick:()=>{if(x.current){let e=x.current.innerText;navigator.clipboard.writeText(e)}},className:"absolute top-2 right-2 bg-white p-2 rounded-full active:bg-pink-500 hover:bg-gray-200 transition duration-300 ease-in-out z-10",children:(0,s.jsx)(d.fwS,{className:"text-pink-200 active:text-black"})}),(0,s.jsx)("div",{className:"relative z-0",children:(0,s.jsx)("pre",{ref:x,className:"language-javascript overflow-x-auto rounded-lg shadow-xl hljs p-2 sm:text-base text-sm w-full",children:(0,s.jsx)("code",{children:p})})})]})})};n(171);var page=()=>{var e;let[t,n]=(0,a.useState)(null);(0,a.useEffect)(()=>{{let e=localStorage.getItem("UserId");n(e)}},[]);let[r,o]=(0,a.useState)({apiKey:null!==(e=localStorage.getItem("apiKey"))&&void 0!==e?e:"",initialMessage:"Hello! How Can I Assist You ?",chatbotTitle:"Chat bot",brandImage:"https://www.kindpng.com/picc/m/179-1798038_chatbots-builder-pricing-crozdesk-free-chatbot-hd-png.png",suggestions:[],rateLimitDuration:5e3}),[l,d]=(0,a.useState)({apiKey:"",initialMessage:"Hello! How Can I Assist You ?",chatbotTitle:"Chat bot",brandImage:"https://www.kindpng.com/picc/m/179-1798038_chatbots-builder-pricing-crozdesk-free-chatbot-hd-png.png",suggestions:[],rateLimitDuration:5e3}),[h,u]=(0,a.useState)(!1),closeModal=()=>{u(!1)};return(0,a.useRef)(),(0,a.useEffect)(()=>{let handleClickOutside=e=>{e.target.classList.contains("modal-background")&&closeModal()};return document.addEventListener("mousedown",handleClickOutside),()=>{document.removeEventListener("mousedown",handleClickOutside)}},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Z,{}),t?(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(Docs_DocsModal,{onClick:closeModal,...l}),(0,s.jsxs)("div",{className:"sm:pt-20 pt-48 overflow-y-auto flex items-center justify-center",children:[(0,s.jsx)("div",{className:"bg-white bg-opacity-50 rounded p-8 w-96",children:(0,s.jsxs)("form",{className:"space-y-4",onSubmit:e=>{e.preventDefault(),console.log(r),u(!0),d(r)},children:[(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{className:"font-sans font-semibold text-md p-2",children:"Chatbot Title:"}),(0,s.jsx)("input",{className:"block bg-pink-400 bg-opacity-10 rounded p-2 w-full",placeholder:"Chatbot Title",value:r.chatbotTitle,onChange:e=>o(t=>({...t,chatbotTitle:e.target.value}))})]}),(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{className:"font-sans font-semibold text-md p-2",children:"Brand Image URL:"}),(0,s.jsx)("input",{className:"block bg-pink-400 bg-opacity-10 rounded p-2 w-full",placeholder:"Brand Image URL",value:r.brandImage,onChange:e=>o(t=>({...t,brandImage:e.target.value}))})]}),(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{className:"font-sans font-semibold text-md p-2",children:"Suggestions:"}),(0,s.jsx)("textarea",{className:"block bg-pink-400 bg-opacity-10 rounded p-2 w-full",placeholder:"Enter suggestions (one per line)",value:r.suggestions.join("\n"),onChange:e=>o(t=>({...t,suggestions:e.target.value.split("\n")}))})]}),(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{className:"font-sans font-semibold text-md p-2",children:"Rate Limit Duration (in MS):"}),(0,s.jsx)("input",{className:"block bg-pink-400 bg-opacity-10 rounded p-2 w-full",placeholder:"Rate Limit Duration",type:"number",value:r.rateLimitDuration,onChange:e=>o(t=>({...t,rateLimitDuration:Number(e.target.value)}))})]}),(0,s.jsx)("button",{type:"submit",className:"mt-4 bg-pink-500 text-white rounded p-2",children:"Integrate"})]})}),(0,s.jsx)(trychatbot_ChatBotComponent,{...r})]})]}):(0,s.jsx)(c.Z,{})]})}}},function(e){e.O(0,[447,115,724,438,900,971,864,744],function(){return e(e.s=9837)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/build/_next/static/wvxABV6uyDj-cSQ7vdTjn/_buildManifest.js b/build/_next/static/jbZmea4LIOi7kslR-5hng/_buildManifest.js similarity index 100% rename from build/_next/static/wvxABV6uyDj-cSQ7vdTjn/_buildManifest.js rename to build/_next/static/jbZmea4LIOi7kslR-5hng/_buildManifest.js diff --git a/build/_next/static/wvxABV6uyDj-cSQ7vdTjn/_ssgManifest.js b/build/_next/static/jbZmea4LIOi7kslR-5hng/_ssgManifest.js similarity index 100% rename from build/_next/static/wvxABV6uyDj-cSQ7vdTjn/_ssgManifest.js rename to build/_next/static/jbZmea4LIOi7kslR-5hng/_ssgManifest.js diff --git a/build/addAIData.html b/build/addAIData.html index deea384..fa4c49c 100644 --- a/build/addAIData.html +++ b/build/addAIData.html @@ -1 +1 @@ -Chit Chat - A chatbot Intregation using ChatGPT \ No newline at end of file +Chit Chat - A chatbot Intregation using ChatGPT \ No newline at end of file diff --git a/build/addAIData.txt b/build/addAIData.txt index 0ec2845..e83d374 100644 --- a/build/addAIData.txt +++ b/build/addAIData.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/ac9051a7df39f870.css","style",{"crossOrigin":""}] -0:["wvxABV6uyDj-cSQ7vdTjn",[[["",{"children":["addAIData",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +0:["jbZmea4LIOi7kslR-5hng",[[["",{"children":["addAIData",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] 4:I{"id":1443,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 5:I{"id":8639,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 7:I{"id":5146,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} -8:I{"id":3586,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","712:static/chunks/3627521c-4f59a59dd9011818.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","547:static/chunks/app/addAIData/page-e80d9ee4e28f44c4.js"],"name":"","async":false} +8:I{"id":3586,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","712:static/chunks/3627521c-4f59a59dd9011818.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","547:static/chunks/app/addAIData/page-e66623d080e34e2c.js"],"name":"","async":false} 9:I{"id":1712,"chunks":["185:static/chunks/app/layout-987f4fd04686cc54.js"],"name":"","async":false} 2:[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_e66fe9","children":["$","div",null,{"className":"w-screen min-h-screen bg-gradient-to-r from-indigo-200 via-red-200 to-yellow-100","children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","addAIData","children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$L6",["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"addAIData"},"styles":[]}],["$","$L9",null,{}]]}]}]}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","2",{"name":"description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","3",{"name":"theme-color","content":"#FFF"}],["$","meta","4",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","5",{"property":"og:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","6",{"property":"og:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","7",{"property":"og:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","meta","8",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","9",{"name":"twitter:creator","content":"@Apurvjha_eth"}],["$","meta","10",{"name":"twitter:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","11",{"name":"twitter:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","12",{"name":"twitter:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","link","13",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"32x32"}]] diff --git a/build/dashboard.html b/build/dashboard.html index a1db5c4..7988413 100644 --- a/build/dashboard.html +++ b/build/dashboard.html @@ -1 +1 @@ -Chit Chat - A chatbot Intregation using ChatGPT \ No newline at end of file +Chit Chat - A chatbot Intregation using ChatGPT \ No newline at end of file diff --git a/build/dashboard.txt b/build/dashboard.txt index 7292207..851d52f 100644 --- a/build/dashboard.txt +++ b/build/dashboard.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/ac9051a7df39f870.css","style",{"crossOrigin":""}] -0:["wvxABV6uyDj-cSQ7vdTjn",[[["",{"children":["dashboard",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +0:["jbZmea4LIOi7kslR-5hng",[[["",{"children":["dashboard",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] 4:I{"id":1443,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 5:I{"id":8639,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 7:I{"id":5146,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} -8:I{"id":1388,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","115:static/chunks/8dc5345f-0793b9dc01619ce7.js","400:static/chunks/12038df7-5195065eaaa5d370.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","702:static/chunks/app/dashboard/page-d26fd6464b556735.js"],"name":"","async":false} +8:I{"id":1388,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","115:static/chunks/8dc5345f-0793b9dc01619ce7.js","400:static/chunks/12038df7-5195065eaaa5d370.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","702:static/chunks/app/dashboard/page-19cca652a963283b.js"],"name":"","async":false} 9:I{"id":1712,"chunks":["185:static/chunks/app/layout-987f4fd04686cc54.js"],"name":"","async":false} 2:[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_e66fe9","children":["$","div",null,{"className":"w-screen min-h-screen bg-gradient-to-r from-indigo-200 via-red-200 to-yellow-100","children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","dashboard","children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$L6",["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"dashboard"},"styles":[]}],["$","$L9",null,{}]]}]}]}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","2",{"name":"description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","3",{"name":"theme-color","content":"#FFF"}],["$","meta","4",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","5",{"property":"og:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","6",{"property":"og:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","7",{"property":"og:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","meta","8",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","9",{"name":"twitter:creator","content":"@Apurvjha_eth"}],["$","meta","10",{"name":"twitter:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","11",{"name":"twitter:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","12",{"name":"twitter:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","link","13",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"32x32"}]] diff --git a/build/index.html b/build/index.html index 0c14e86..8dc94d6 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1 @@ -Chit Chat - A chatbot Intregation using ChatGPT

Create Your Own Chatbot API Endpoint In Seconds

Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks.
\ No newline at end of file +Chit Chat - A chatbot Intregation using ChatGPT

Create Your Own Chatbot API Endpoint In Seconds

Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks.
\ No newline at end of file diff --git a/build/index.txt b/build/index.txt index ca119ff..7ad6599 100644 --- a/build/index.txt +++ b/build/index.txt @@ -1,5 +1,5 @@ 1:HL["/_next/static/css/ac9051a7df39f870.css","style",{"crossOrigin":""}] -0:["wvxABV6uyDj-cSQ7vdTjn",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +0:["jbZmea4LIOi7kslR-5hng",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] 4:I{"id":1443,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 5:I{"id":8639,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 7:I{"id":5146,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} diff --git a/build/login.html b/build/login.html index 75dc865..e4e26f5 100644 --- a/build/login.html +++ b/build/login.html @@ -1 +1 @@ -Chit Chat - A chatbot Intregation using ChatGPT
Log In

Create An Account Sign Up

\ No newline at end of file +Chit Chat - A chatbot Intregation using ChatGPT
Log In

Create An Account Sign Up

\ No newline at end of file diff --git a/build/login.txt b/build/login.txt index 97204fe..a18b586 100644 --- a/build/login.txt +++ b/build/login.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/ac9051a7df39f870.css","style",{"crossOrigin":""}] -0:["wvxABV6uyDj-cSQ7vdTjn",[[["",{"children":["login",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +0:["jbZmea4LIOi7kslR-5hng",[[["",{"children":["login",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] 4:I{"id":1443,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 5:I{"id":8639,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 7:I{"id":5146,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} -8:I{"id":7621,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","712:static/chunks/3627521c-4f59a59dd9011818.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","626:static/chunks/app/login/page-a3c73a93dc723f96.js"],"name":"","async":false} +8:I{"id":7621,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","712:static/chunks/3627521c-4f59a59dd9011818.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","626:static/chunks/app/login/page-ecf9fe282b7f96c5.js"],"name":"","async":false} 9:I{"id":1712,"chunks":["185:static/chunks/app/layout-987f4fd04686cc54.js"],"name":"","async":false} 2:[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_e66fe9","children":["$","div",null,{"className":"w-screen min-h-screen bg-gradient-to-r from-indigo-200 via-red-200 to-yellow-100","children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","login","children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$L6",["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"login"},"styles":[]}],["$","$L9",null,{}]]}]}]}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","2",{"name":"description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","3",{"name":"theme-color","content":"#FFF"}],["$","meta","4",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","5",{"property":"og:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","6",{"property":"og:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","7",{"property":"og:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","meta","8",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","9",{"name":"twitter:creator","content":"@Apurvjha_eth"}],["$","meta","10",{"name":"twitter:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","11",{"name":"twitter:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","12",{"name":"twitter:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","link","13",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"32x32"}]] diff --git a/build/organization.html b/build/organization.html index 790cc17..9381e19 100644 --- a/build/organization.html +++ b/build/organization.html @@ -1 +1 @@ -Chit Chat - A chatbot Intregation using ChatGPT \ No newline at end of file +Chit Chat - A chatbot Intregation using ChatGPT \ No newline at end of file diff --git a/build/organization.txt b/build/organization.txt index ec8ba71..90dae1c 100644 --- a/build/organization.txt +++ b/build/organization.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/ac9051a7df39f870.css","style",{"crossOrigin":""}] -0:["wvxABV6uyDj-cSQ7vdTjn",[[["",{"children":["organization",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +0:["jbZmea4LIOi7kslR-5hng",[[["",{"children":["organization",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] 4:I{"id":1443,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 5:I{"id":8639,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 7:I{"id":5146,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} -8:I{"id":577,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","712:static/chunks/3627521c-4f59a59dd9011818.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","603:static/chunks/app/organization/page-b632a17153cac7c1.js"],"name":"","async":false} +8:I{"id":577,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","712:static/chunks/3627521c-4f59a59dd9011818.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","603:static/chunks/app/organization/page-36fd2c3bd12de2b9.js"],"name":"","async":false} 9:I{"id":1712,"chunks":["185:static/chunks/app/layout-987f4fd04686cc54.js"],"name":"","async":false} 2:[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_e66fe9","children":["$","div",null,{"className":"w-screen min-h-screen bg-gradient-to-r from-indigo-200 via-red-200 to-yellow-100","children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","organization","children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$L6",["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"organization"},"styles":[]}],["$","$L9",null,{}]]}]}]}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","2",{"name":"description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","3",{"name":"theme-color","content":"#FFF"}],["$","meta","4",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","5",{"property":"og:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","6",{"property":"og:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","7",{"property":"og:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","meta","8",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","9",{"name":"twitter:creator","content":"@Apurvjha_eth"}],["$","meta","10",{"name":"twitter:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","11",{"name":"twitter:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","12",{"name":"twitter:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","link","13",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"32x32"}]] diff --git a/build/robots.txt b/build/robots.txt index c58a211..3c2add3 100644 --- a/build/robots.txt +++ b/build/robots.txt @@ -2,4 +2,4 @@ User-Agent: * Allow: / Disallow: /private/ -Sitemap: https://chit-chat.tech/sitemap.xml +Sitemap: https://chit-chat.fun/sitemap.xml diff --git a/build/sign-up.html b/build/sign-up.html index 083d05e..a249190 100644 --- a/build/sign-up.html +++ b/build/sign-up.html @@ -1 +1 @@ -Chit Chat - A chatbot Intregation using ChatGPT
Sign Up

Already Have Account Login

\ No newline at end of file +Chit Chat - A chatbot Intregation using ChatGPT
Sign Up

Already Have Account Login

\ No newline at end of file diff --git a/build/sign-up.txt b/build/sign-up.txt index f318949..d5a22d9 100644 --- a/build/sign-up.txt +++ b/build/sign-up.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/ac9051a7df39f870.css","style",{"crossOrigin":""}] -0:["wvxABV6uyDj-cSQ7vdTjn",[[["",{"children":["sign-up",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +0:["jbZmea4LIOi7kslR-5hng",[[["",{"children":["sign-up",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] 4:I{"id":1443,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 5:I{"id":8639,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 7:I{"id":5146,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} -8:I{"id":9136,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","712:static/chunks/3627521c-4f59a59dd9011818.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","914:static/chunks/app/sign-up/page-1fc6030d94707d3c.js"],"name":"","async":false} +8:I{"id":9136,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","712:static/chunks/3627521c-4f59a59dd9011818.js","438:static/chunks/438-e3882425300b2931.js","321:static/chunks/321-36d5ca836ba4e866.js","914:static/chunks/app/sign-up/page-a9ab3e331b5b54a2.js"],"name":"","async":false} 9:I{"id":1712,"chunks":["185:static/chunks/app/layout-987f4fd04686cc54.js"],"name":"","async":false} 2:[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_e66fe9","children":["$","div",null,{"className":"w-screen min-h-screen bg-gradient-to-r from-indigo-200 via-red-200 to-yellow-100","children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","sign-up","children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$L6",["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"sign-up"},"styles":[]}],["$","$L9",null,{}]]}]}]}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","2",{"name":"description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","3",{"name":"theme-color","content":"#FFF"}],["$","meta","4",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","5",{"property":"og:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","6",{"property":"og:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","7",{"property":"og:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","meta","8",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","9",{"name":"twitter:creator","content":"@Apurvjha_eth"}],["$","meta","10",{"name":"twitter:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","11",{"name":"twitter:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","12",{"name":"twitter:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","link","13",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"32x32"}]] diff --git a/build/sitemap.xml b/build/sitemap.xml index b304c70..01e41f4 100644 --- a/build/sitemap.xml +++ b/build/sitemap.xml @@ -1,32 +1,32 @@ -https://chit-chat.tech -2024-01-19T12:10:10.792Z +https://chit-chat.fun +2024-10-23T19:05:30.382Z yearly 1 -https://chit-chat.tech/dashboard -2024-01-19T12:10:10.792Z +https://chit-chat.fun/dashboard +2024-10-23T19:05:30.382Z monthly 0.5 -https://chit-chat.tech/organization -2024-01-19T12:10:10.792Z +https://chit-chat.fun/organization +2024-10-23T19:05:30.382Z daily 0.8 -https://chit-chat.tech/docs -2024-01-19T12:10:10.792Z +https://chit-chat.fun/docs +2024-10-23T19:05:30.382Z weekly 0.8 -https://chit-chat.tech/addAIData -2024-01-19T12:10:10.792Z +https://chit-chat.fun/addAIData +2024-10-23T19:05:30.382Z daily 0.8 diff --git a/build/trychatbot.html b/build/trychatbot.html index 43fa2b1..617a5cc 100644 --- a/build/trychatbot.html +++ b/build/trychatbot.html @@ -1 +1 @@ -Chit Chat - A chatbot Intregation using ChatGPT \ No newline at end of file +Chit Chat - A chatbot Intregation using ChatGPT \ No newline at end of file diff --git a/build/trychatbot.txt b/build/trychatbot.txt index 9568e21..1a4886d 100644 --- a/build/trychatbot.txt +++ b/build/trychatbot.txt @@ -1,10 +1,10 @@ 1:HL["/_next/static/css/ac9051a7df39f870.css","style",{"crossOrigin":""}] -0:["wvxABV6uyDj-cSQ7vdTjn",[[["",{"children":["trychatbot",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +0:["jbZmea4LIOi7kslR-5hng",[[["",{"children":["trychatbot",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ac9051a7df39f870.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] 4:HL["/_next/static/css/01def51f7bdb826d.css","style",{"crossOrigin":""}] 5:I{"id":1443,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 6:I{"id":8639,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} 8:I{"id":5146,"chunks":["272:static/chunks/webpack-beb066e6cc455860.js","971:static/chunks/fd9d1056-b49804a1e6f1a9b7.js","864:static/chunks/864-126ae77cc240a619.js"],"name":"","async":false} -9:I{"id":6011,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","115:static/chunks/8dc5345f-0793b9dc01619ce7.js","724:static/chunks/358ff52d-05be8d4fe687e9db.js","438:static/chunks/438-e3882425300b2931.js","900:static/chunks/900-f251ec4b02f2deb2.js","819:static/chunks/app/trychatbot/page-9861d3ec6e868b6e.js"],"name":"","async":false} +9:I{"id":6011,"chunks":["447:static/chunks/00cbbcb7-e0bdca9dee4a6665.js","115:static/chunks/8dc5345f-0793b9dc01619ce7.js","724:static/chunks/358ff52d-05be8d4fe687e9db.js","438:static/chunks/438-e3882425300b2931.js","900:static/chunks/900-f251ec4b02f2deb2.js","819:static/chunks/app/trychatbot/page-7633bf166bbd22ce.js"],"name":"","async":false} a:I{"id":1712,"chunks":["185:static/chunks/app/layout-987f4fd04686cc54.js"],"name":"","async":false} 2:[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_e66fe9","children":["$","div",null,{"className":"w-screen min-h-screen bg-gradient-to-r from-indigo-200 via-red-200 to-yellow-100","children":[["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","trychatbot","children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$L7",["$","$L8",null,{"propsForComponent":{"params":{}},"Component":"$9","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/01def51f7bdb826d.css","precedence":"next","crossOrigin":""}]]}],"segment":"trychatbot"},"styles":[]}],["$","$La",null,{}]]}]}]}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","2",{"name":"description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","3",{"name":"theme-color","content":"#FFF"}],["$","meta","4",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","5",{"property":"og:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","6",{"property":"og:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","7",{"property":"og:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","meta","8",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","9",{"name":"twitter:creator","content":"@Apurvjha_eth"}],["$","meta","10",{"name":"twitter:title","content":"Chit Chat - A chatbot Intregation using ChatGPT"}],["$","meta","11",{"name":"twitter:description","content":"Transform your data into an interactive chatbot with dynamic API endpoints. Seamlessly integrate, engage users, and harness the power of conversational AI. You are one-stop destination for effortlessly bringing intelligent chatbots to your website without any coding hassles in just a few clicks."}],["$","meta","12",{"name":"twitter:image","content":"https://cdn.jsdelivr.net/gh/apurvjha123/chit-chat-nextjs/public/thumbnail.png"}],["$","link","13",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"32x32"}]]