1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3852],{34162:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/[websiteId]/custom-chatbot",function(){return l(80500)}])},44705:function(e,t,l){"use strict";l.r(t);var a=l(85893),n=l(20891),r=l(67294);let s=e=>{let{websiteId:t}=e,[l,s]=(0,r.useState)([]),[i,o]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{let e=async()=>{o(!0);let{data:e}=await (0,n.pN)(t);s(e),o(!1)};e()},[t]),(0,a.jsx)("div",{className:"overflow-x-auto max-h-96 overflow-y-auto px-4 sm:px-0",children:(0,a.jsxs)("table",{className:"min-w-full bg-white border rounded-lg",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:(0,a.jsx)("th",{className:"px-4 py-3 border-b text-left text-sm font-semibold sm:px-6",children:"Email/Phone Number"})})}),(0,a.jsx)("tbody",{children:i?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{className:"px-4 py-4 border-b sm:px-6",children:"Loading..."})}):0===l.length?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{className:"px-4 py-4 border-b sm:px-6",children:"No data found."})}):l.map(e=>(0,a.jsx)("tr",{children:(0,a.jsx)("td",{className:"px-4 py-4 border-b sm:px-6",children:e.phone||e.email||"-"})},e._id))})]})})};t.default=s},37435:function(e,t,l){"use strict";l.r(t);var a=l(85893),n=l(86893),r=l(64712),s=l(67294);let i=e=>{var t;let{inputFields:l,uploadedImage:i,setUploadedImage:o,file:d,setFile:u,handleInputChange:c,handleSave:x,guidelineInputFields:m,setGuidelineInputFields:p,errors:v,setErrors:h,trainChatbot:f,trainingChatbot:b}=e,g=(0,s.useRef)(null),w=()=>{(null==g?void 0:g.current)&&g.current.click()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"my-4 flex flex-row flex-wrap items-center gap-3 px-4 sm:px-0",children:[(0,a.jsx)("div",{className:"text-base font-semibold",children:"Logo:"}),(0,a.jsx)("img",{src:i||(null==l?void 0:l.logo),className:"max-w-[40px] max-h-10 w-full h-full object-cover object-center sm:max-w-[48px] sm:max-h-12",alt:"logo"}),(0,a.jsx)("span",{className:"py-1 rounded-md text-[#5959FF] cursor-pointer",onClick:w,children:(0,a.jsx)(n.vPQ,{})}),(0,a.jsx)("input",{ref:g,type:"file",className:"invisible max-w-[1%] px-4 py-6 mx-auto flex items-center",accept:".jpg, .jpeg, .png,",onChange:e=>{let t=e.target.files[0],l=t.type;if(l&&["/jpg","/jpeg","/png","/svg"].some(e=>l.endsWith(e))){let e=new FileReader;e.onload=()=>{let t=e.result;o(t)},u(t),e.readAsDataURL(t)}else e.target.value=null,r.Am.error("Please select a valid image file (JPEG,JPG,PNG) .")}})]}),(0,a.jsx)("div",{className:"flex flex-col sm:flex-row items-center gap-4 mb-4 px-4 sm:px-0",children:(0,a.jsxs)("div",{className:"flex items-center gap-3 w-full sm:w-1/2",children:[(0,a.jsx)("div",{className:"text-base font-semibold min-w-[90px] sm:min-w-[100px]",children:"Popup Title:"}),(0,a.jsx)("input",{className:"flex-1 px-3 py-2 placeholder:text-[#52525B] text-sm border rounded-lg focus:outline-none focus:border-blue-500",name:"popupTitle",value:null==l?void 0:l.popupTitle,onChange:e=>{c("popupTitle",0,e)}})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-center gap-4 px-4 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 w-full sm:w-1/2",children:[(0,a.jsx)("div",{className:"text-base font-semibold min-w-[90px] sm:min-w-[100px]",children:"Title:"}),(0,a.jsx)("input",{className:"flex-1 px-3 py-2 placeholder:text-[#52525B] text-sm border rounded-lg focus:outline-none focus:border-blue-500",name:"title",value:null==l?void 0:l.title,onChange:e=>{c("title",0,e)}})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 w-full sm:w-1/2 mt-4 sm:mt-0",children:[(0,a.jsx)("div",{className:"text-base font-semibold min-w-[90px] sm:min-w-[100px]",children:"Description:"}),(0,a.jsx)("input",{className:"flex-1 px-3 py-2 placeholder:text-[#52525B] text-sm border rounded-lg focus:outline-none focus:border-blue-500",name:"description",value:null==l?void 0:l.description,onChange:e=>{c("description",0,e)}})]})]}),(0,a.jsx)("div",{className:"flex flex-col gap-2 mt-5 px-4 sm:px-0",children:null==l?void 0:null===(t=l.questions)||void 0===t?void 0:t.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("div",{className:"text-base font-semibold min-w-[90px] sm:min-w-[100px]",children:["Question ",t+1,":"]}),(0,a.jsx)("input",{className:"flex-1 px-3 py-2 placeholder:text-[#52525B] text-sm border rounded-lg focus:outline-none focus:border-blue-500",name:"questions",value:e,onCh
1ange:e=>{c("questions",t,e)}})]},t))}),(0,a.jsx)("div",{className:"flex justify-end items-center mt-5 px-4 sm:px-0",children:(0,a.jsx)("button",{className:"bg-butternut-button text-white font-semibold px-6 py-2 rounded-md text-sm",onClick:x,children:"Save"})}),(0,a.jsxs)("div",{className:"my-5 text-[#131332] flex flex-col px-4 sm:px-0",children:[(0,a.jsx)("div",{className:"text-lg font-semibold mt-2",children:"Add Specific Information"}),(0,a.jsx)("div",{className:"text-sm font-medium mt-1 opacity-80",children:"The chatbot understands your website, business and target audience. But if you would like to add some additional knowledge for your chatbot you can input it in the text box below."}),(0,a.jsx)("textarea",{name:"guidelines",className:"w-full px-4 py-3 placeholder:text-[#52525B] placeholder:text-base border rounded-2xl focus:outline-none focus:border-blue-500 my-3",placeholder:"Add your abstract here..",rows:6,value:null==m?void 0:m.guidelines,onChange:e=>{h({guidelines:""}),p({guidelines:e.target.value})}}),(null==v?void 0:v.guidelines)&&(0,a.jsx)("span",{className:"text-red-400 text-sm my-0",children:null==v?void 0:v.guidelines}),(0,a.jsx)("button",{className:"bg-butternut-button text-white font-semibold px-6 py-2 rounded-md ml-auto text-sm",onClick:f,children:b?"Training Chatbot...":"Train Chatbot"})]})]})};t.default=i},80500:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return w},default:function(){return y}});var a=l(85893),n=l(24457),r=l(67294),s=l(90422),i=l(64712),o=l(72028),d=l(11163),u=l(76396),c=l(6970),x=l(73935);let m=e=>{let{children:t}=e,l=(0,r.useRef)(null);return l.current||(l.current=document.createElement("div")),(0,r.useEffect)(()=>{let e=document.getElementById("portal-root");if(e)return l.current&&e.appendChild(l.current),()=>{e&&l.current&&e.removeChild(l.current)}},[]),(0,x.createPortal)(t,l.current)};var p=l(5434);let v=e=>{let{showModal:t,handleClose:l,modalTitle:n,children:r,showHeader:s=!0,showCloseIcon:i=!0}=e;return(0,a.jsx)(a.Fragment,{children:t?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(m,{children:[(0,a.jsx)("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto fixed inset-0 z-[9999] outline-none focus:outline-none",children:(0,a.jsx)("div",{className:"relative my-6 mx-auto w-[85%] lg:max-w-[500px] xl:max-w-[600px]",children:(0,a.jsxs)("div",{className:"border-0 rounded shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none ",children:[s&&(0,a.jsxs)("div",{className:"flex items-start justify-center p-5 px-7 border-b border-solid border-blueGray-200",children:[(0,a.jsx)("h3",{className:"text-xl lg:text-2xl font-bold mb-0",children:n||"Popup"}),i&&(0,a.jsx)("button",{className:"p-1 ml-auto bg-transparent border-0 text-black float-right text-3xl leading-none font-semibold outline-none focus:outline-none",onClick:l,children:(0,a.jsx)(p.FU5,{className:"text-2xl text-gray-600"})})]}),r]})})}),(0,a.jsx)("div",{className:"opacity-25 fixed inset-0 z-[999] bg-black"})]})}):null})};var h=l(19821),f=l(37435),b=l(44705);let g=e=>{var t,l,x,m,p,g,w;let{websiteId:y,user:j,data:N}=e,[Z,_]=(0,r.useState)(!0),[C,k]=(0,r.useState)(N),[F,S]=(0,r.useState)(),[P,A]=(0,r.useState)(!1),[E,I]=(0,r.useState)(!1),[T,H]=(0,r.useState)({}),[q,B]=(0,r.useState)("edit"),{popupTitle:R="AI Assistant",title:G="AI Assistant",description:U="",questions:D=[],logo:J="/favicon.png"}=(null==F?void 0:F.blockProps)||{},[O,$]=(0,r.useState)({title:G,description:U,questions:D,logo:J,popupTitle:R}),[L,Q]=(0,r.useState)({guidelines:""}),[z,V]=(0,r.useState)({guidelines:""}),W=(0,d.useRouter)(),[X,K]=(0,r.useState)([]),M=async()=>{try{let{data:e}=await o.Z.getDomainConfig(y);H(e),_(!1)}catch(e){_(!1),console.log(e)}},Y=async()=>{try{var e;let{data:t}=await o.Z.fetchGuidelines({website_id:y});Q({guidelines:null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.guidelines})}catch(e){console.log(e)}},ee=async()=>{let{data:e}=await (0,h.sc)();e&&K(e)};(0,r.useEffect)(()=>{M(),Y(),ee(),C||et()},[]),(0,r.useEffect)(()=>{if(null==C?void 0:C.global_sections){var e,t,l,a,n,r;let s=null==C?void 0:null===(e=C.global_sections)||void 0===e?void 0:e.find(e=>{var t;return(null===(t=e.type)||void 0===t?void 0:t.split("_v")[0])==="chatbot"});S(s),s&&$({popupTitle:(null===(t=s.blockProps)||void 0===t?void 0:t.popupTitle)||"AI Assistant",title:(null===(l=s.blockProps)||void 0===l?void 0:l.title)||"AI Assistant",description:(null===(a=s.blockProps)||void 0===a?void 0:a.description)||"Type a message to begin the chat",questions:(null===(n=s.blockProps)||void 0===n?void 0:n.questions)||[],logo:(null===(r=s.blockProps)||void 0===r?void 0:r.logo)||"/fav
1icon.png"})}},[null==C?void 0:C.global_sections]);let et=async()=>{let{data:e}=await (0,c.pV)(y);e&&k(e)},el=async()=>{var e,t;if(F){let{data:t}=await (null===o.Z||void 0===o.Z?void 0:o.Z.updateSectionApi({website_id:null==C?void 0:null===(e=C._id)||void 0===e?void 0:e.$oid,section_id:null==F?void 0:F.id,slot:"global_sections",data:{...F,active:!(null==F?void 0:F.active)}}));await et()}else{A(!0);try{await er();let{data:e}=await (null===o.Z||void 0===o.Z?void 0:o.Z.addSectionApi({website_id:null==C?void 0:null===(t=C._id)||void 0===t?void 0:t.$oid,section:"chatbot",slot:"global_sections",index:0}));await et(),A(!1)}catch(e){A(!1)}}},ea=()=>!0,en=async()=>{if(ea()){var e,t;let l=JSON.parse(JSON.stringify(O));if(ed){let e=await (null===o.Z||void 0===o.Z?void 0:o.Z.uploadImage(ed,y));eu(null),l.logo=e}let{data:a}=await (null===o.Z||void 0===o.Z?void 0:o.Z.updateSectionApi({website_id:null==C?void 0:null===(e=C._id)||void 0===e?void 0:e.$oid,section_id:null==F?void 0:F.id,slot:"global_sections",data:{...F,blockProps:{...null==F?void 0:F.blockProps,...l}}})),{data:n}=await (null===o.Z||void 0===o.Z?void 0:o.Z.updateGuidelines({website_id:null==C?void 0:null===(t=C._id)||void 0===t?void 0:t.$oid,section:"chatbot",section_id:null==F?void 0:F.id,data:{guidelines:null==L?void 0:L.guidelines}}));n?i.Am.success("Chatbot updated successfully"):i.Am.error("Failed to update chatbot")}},er=async()=>{var e;I(!0);let{data:t}=await (null===o.Z||void 0===o.Z?void 0:o.Z.trainChatbot({website_id:null==C?void 0:null===(e=C._id)||void 0===e?void 0:e.$oid,abstract:(null==L?void 0:L.guidelines)||""}));N?i.Am.success("Chatbot trained successfully"):i.Am.error("Failed to update chatbot"),I(!1)},es=(e,t,l)=>{"questions"===e?$(e=>{let a=JSON.parse(JSON.stringify(e.questions));return a[t]=l.target.value,{...e,questions:a}}):$(t=>({...t,[e]:l.target.value}))},[ei,eo]=(0,r.useState)(null),[ed,eu]=(0,r.useState)(null),ec=((null==C?void 0:null===(t=C.license_details)||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.tier)?null!==n.H4&&void 0!==n.H4&&null!==(x=n.H4.tier)&&void 0!==x&&!!x[null==C?void 0:null===(m=C.license_details)||void 0===m?void 0:null===(p=m[0])||void 0===p?void 0:p.tier]:(null==T?void 0:T.plan)?null!==n.H4&&void 0!==n.H4&&!!n.H4[null==T?void 0:T.plan]:(null==T?void 0:T.status)!=="active"||(null==T?void 0:T.plan)?null!==n.H4&&void 0!==n.H4&&!!n.H4.free:!!n.H4["plan-1"])||(null===(g=null==X?void 0:X.find(e=>(null==e?void 0:e.app_id)==="3"))||void 0===g?void 0:null===(w=g.subscription)||void 0===w?void 0:w.status)==="active";return(0,a.jsx)(s.Z,{user:j,websiteId:y,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{showHeader:!1,showModal:P||E,handleClose:()=>{},children:(0,a.jsxs)("div",{className:"w-full py-12 flex flex-col justify-center items-center sm:px-6",children:[(0,a.jsx)("img",{className:"w-12 h-12 object-cover object-center sm:w-16 sm:h-16",src:"/favicon.png",alt:"Butternut.ai"}),(0,a.jsx)("div",{className:"px-5 text-lg font-semibold mx-auto w-full max-w-md text-center mt-4 sm:text-xl",children:P?"Creating a chatbot with trained on website data":E?"Training your chatbot with updated website data and provided abstract":""})]})}),(0,a.jsxs)("div",{className:"py-8 lg:py-14 lg:px-11 overflow-hidden relative min-h-[600px] max-w-7xl mx-auto",children:[(null==T?void 0:T.status)==="active"&&ec||Z?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("div",{className:"absolute inset-0 z-10 bg-white",children:(0,a.jsx)("div",{className:"w-full h-full",style:{background:"linear-gradient(180deg, #E1E2FF 0%, #E2E3FF 5%, #FFFFFF 100%)"},children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"py-8 lg:py-14 px-4 lg:px-11",children:[(0,a.jsx)("div",{className:"flex flex-col lg:flex-row justify-between items-start gap-4 w-full px-5 lg:px-0",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("h1",{className:"text-xl sm:text-2xl font-medium mb-0",children:"Custom Chatbot"}),(0,a.jsx)("div",{className:"text-sm font-normal mt-2",children:"Integrate a custom chatbot."})]})}),(0,a.jsx)("div",{className:"mt-7 mb-3 lg:mb-9 lg:border-t border-[#13133229] h-[1px] w-full"})]}),(0,a.jsxs)("div",{className:"text-lg lg:text-xl font-normal flex flex-col items-center justify-center gap-5 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 text-center w-full px-4 sm:px-6",children:[(0,a.jsxs)("span",{children:["Upgrade to ",(0,a.jsx)("span",{className:"",children:"Paid plan"})," to view and edit settings"]}),(0,a.jsx)("button",{className:"bg-[#f64a00] text-white font-semibold text-base sm:text-lg rounded-md py-2 px-8 sm:px-10",onClick:()=>{ec||(null==T?void 0:T.status)!=="active"?W.push("/dashboard/".concat(y,"/go-live")):W.push("/contact")},children:ec||(null==T?void 0:T.status)!=="active"?"Upgrade":"Contact us"})]})]})})}),Z?(0,a.jsx)("div",{className:"mx-auto flex justify-center items-center min-h-[400px]",children:(0,a.jsx)(u.Z,{})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between items-start gap-4 w-full px-4 lg:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("h1",{className:"text-xl sm:text-2xl font-medium mb-0",children:"Custom Chatbot"}),(0,a.jsx)("div",{className:"text-sm font-normal mt-2",children:"Integrate a custom chatbot."})]}),(0,a.jsx)("button",{className:"".concat(F&&(null==F?void 0:F.active)?"bg-[#f64a00]":"bg-butternut-button"," text-white px-4 py-2.5 rounded-md text-sm font-bold disabled:cursor-not-allowed whitespace-nowrap"),disabled:P,onClick:el,children:F&&(null==F?void 0:F.active)?"Disable Chatbot":P?"Adding Chatbot...":"Enable Chatbot"})]}),(0,a.jsx)("div",{className:"mt-7 mb-3 lg:mb-8 lg:border-t border-[#13133229] h-[1px]"}),F&&(0,a.jsxs)("div",{className:"px-4",children:[(0,a.jsxs)("div",{className:"flex gap-4 mb-6",children:[(0,a.jsx)("button",{className:"px-4 py-2 rounded-t-md font-semibold text-sm sm:text-base ".concat("edit"===q?"bg-butternut-button text-white":"bg-gray-100 text-gray-700"),onClick:()=>B("edit"),children:"Edit"}),(0,a.jsx)("button",{className:"px-4 py-2 rounded-t-md font-semibold text-sm sm:text-base ".concat("data"===q?"bg-butternut-button text-white":"bg-gray-100 text-gray-700"),onClick:()=>B("data"),children:"Data"})]}),"edit"===q?(0,a.jsx)(f.default,{inputFields:O,uploadedImage:ei,setUploadedImage:eo,file:ed,setFile:eu,handleInputChange:es,handleSave:en,guidelineInputFields:L,setGuidelineInputFields:Q,errors:z,setErrors:V,trainChatbot:er,trainingChatbot:E}):(0,a.jsx)(b.default,{websiteId:y})]})]})]})]})})};var w=!0,y=g},19821:function(e,t,l){"use strict";l.d(t,{F7:function(){return u},PD:function(){return o},RQ:function(){return c},Rr:function(){return h},Tk:function(){return f},UP:function(){return j},Un:function(){return N},Wi:function(){return b},ZP:function(){return g},_n:function(){return v},aQ:function(){return w},c0:function(){return s},jL:function(){return y},l5:function(){return i},l_:function(){return p},oR:function(){return x},pK:function(){return d},qi:function(){return Z},ri:function(){return n},sc:function(){return r},uo:function(){return m}});var a=l(48842);let n=async e=>{try{let t=await a.Z.post("/v2/apps/create-app",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},r=async e=>{try{let t=await a.Z.get("/v2/apps/list",{params:e?{website_id:e}:{}});return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},s=async e=>{try{var t;let l=await a.Z.get("/v2/apps/fetch-app",{params:{id:e}});return{data:null==l?void 0:null===(t=l.data)||void 0===t?void 0:t[0],error:null}}catch(e){return{data:null,error:e}}},i=async e=>{try{let t=await a.Z.post("/v2/facebook/auth-callback",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},o=async e=>{try{let t=await a.Z.post("/v2/facebook/switch-page",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},d=async e=>{try{let t=await a.Z.post("/v2/apps/confirm-payment",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},u=async e=>{try{let t=await a.Z.get("/v2/apps/payment-methods",{params:e});return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},c=async e=>{try{let t=await a.Z.post("/v2/apps/settings",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},x=async e=>{try{let t=await a.Z.get("/v2/apps/settings",{params:e});return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},m=async e=>{try{let t=await a.Z.post("/v2/linkedin/auth-callback",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},p=async e=>{try{let t=await a.Z.post("/v2/instagram/auth-callback",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},v=async e=>{try{let t=await a.Z.post("/v2/scheduled-posts",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},h=async(e,t)=>{try{let l=await a.Z.put("/v2/scheduled-posts/".concat(e),t);return{data:null==l?void 0:l.data,error:null}}catch(e){return{data:null,error:e}}},f=async e=>{try{let t=await a.Z.post("/v2/scheduled-posts/generate-image",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},b=async e=>{try{let t=await a.Z.del("/v2/scheduled-posts/".concat(e));return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},g=async e=>{try{let t=await a.Z.post("/v2/scheduled-posts/".concat(e,"/publish"));return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},w=async e=>{try{let t=await a.Z.post("/v2/scheduled-posts/".concat(e,"/publish-story"));return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},y=async e=>{try{let t=await a.Z.post("/v2/apps/social-credential/remove",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},j=async e=>{try{let t=await a.Z.post("/v2/apps/delete-app-complete",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},N=async e=>{try{let t=await a.Z.get("/v2/facebook/posts",{params:e});return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},Z=async e=>{try{let t=await a.Z.get("/v2/instagram/posts",{params:e});return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}}},20891:function(e,t,l){"use strict";l.d(t,{AA:function(){return r},Vw:function(){return n},Zx:function(){return i},fd:function(){return o},m8:function(){return s},pN:function(){return d}});var a=l(48842);let n=async e=>{try{let t=await a.Z.get("/v2/custom-code-fetch-data",{params:{website_id:e}});return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},r=async e=>{try{let t=await a.Z.post("/v2/chatbot-response",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},s=(e,t)=>a.Z.get("/v2/custom-code-download-csv",{params:{website_id:e,elementName:t}}),i=async e=>{try{let t=await a.Z.post("/v2/regenerate-html-section",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},o=async e=>{try{let t=await a.Z.post("/v2/add-website-customer",e);return{data:null==t?void 0:t.data,error:null}}catch(e){return{data:null,error:e}}},d=async e=>{try{var t;let l=await a.Z.get("/v2/get-website-customers",{params:{website_id:e}});return{data:(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.customers)||[],error:null}}catch(e){return{data:[],error:e}}}}},function(e){e.O(0,[5445,2013,1664,3873,6893,9415,15,9774,2888,179],function(){return e(e.s=34162)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.