1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4942],{25832:(e,s,t)=>{"use strict";t.d(s,{A:()=>x});var i=t(37876),l=t(75285),n=t(90331),a=t(19969),d=t(22991),r=t(12506),c=t(2171);let{Text:o}=a.A,x=(0,c.connect)(function(e){return{auth:e.auth,pages:e.pages}})((0,r.Tl)()(e=>{let{...s}=e,{pages:{currentPageId:t,currentPageName:a},auth:r,t:c}=s;return(0,i.jsxs)("div",{className:"flex flex-col gap-8 items-center justify-center",children:[(0,i.jsx)(d.A,{id:t,size:[44,44],name:a}),(0,i.jsxs)("div",{className:"flex flex-col gap-2 items-center max-w-full",children:[(0,i.jsx)(o,{ellipsis:{tooltip:!0},className:"text-sm font-medium",children:a}),(0,i.jsx)("span",{className:"text-secondary",style:{fontSize:10,lineHeight:"16px"},children:c("mainMenu.replyInMinute")}),(0,i.jsx)("span",{className:"text-fields",style:{fontSize:10,lineHeight:"16px"},children:c("mainMenu.bussinessChatAndUrPrivacy")})]}),(0,i.jsxs)("div",{className:"flex items-center gap-12",children:[(0,i.jsxs)("div",{className:"flex flex-col items-center",style:{minWidth:42},children:[(0,i.jsx)("div",{className:"flex items-center justify-center p-4 rounded-full bg-neutral-100",children:(0,i.jsx)(l.t,{size:16,weight:"fill",className:"text-neutral-500"})}),(0,i.jsx)("span",{className:"decoration-underline",style:{fontSize:10,lineHeight:"18px"},children:"Like page"})]}),(0,i.jsxs)("div",{className:"flex flex-col items-center",style:{minWidth:42},children:[(0,i.jsx)("div",{className:"flex items-center justify-center p-4 rounded-full bg-neutral-100",children:(0,i.jsx)(n.R,{size:16,weight:"fill",className:"text-neutral-500"})}),(0,i.jsx)("span",{className:"decoration-underline",style:{fontSize:10,lineHeight:"18px"},children:"Info"})]})]})]})}))},37884:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/chatbot/asked_questions",function(){return t(89602)}])},89602:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>Q});var i=t(4902),l=t(37876),n=t(14232),a=t(97661),d=t(30325),r=t(82583),c=t(4552),o=t(75597),x=t(19969),u=t(79501),h=t(12506),m=t(49566),f=t.n(m),p=t(69402),g=t.n(p);t(62688);var j=t(6576),v=t(33435);t(37218),t(80145);var N=t(90684),y=t(54409),k=t(60216),w=t(41825),_=t(25832),A=t(49643);let{Text:b,Title:C}=x.A;class q extends n.Component{static async getInitialProps(e){let{store:{dispatch:s,getState:t},query:{pageUrlId:i,contentId:l},isServer:n,pathname:a,res:d,accessToken:o}=e;if(n){let e=[s((0,c.vI)("asked_questions")),s((0,c.nj)(0))];e=o&&i?[...e,s((0,r.D75)(o,i)),s((0,r.HhZ)(o,i)),s((0,r.ajI)(o,i,"asked_questions")),s((0,r.crS)(o,i)),s((0,w.sU)(o,i))]:e,await Promise.all(e)}else{let{currentPageId:e}=t().pages,i=[s((0,c.vI)("asked_questions")),s((0,c.nj)(0))];i=o&&e?[...i,s((0,r.D75)(o,e)),s((0,r.HhZ)(o,e)),s((0,r.ajI)(o,e,"asked_questions")),s((0,r.crS)(o,e)),s((0,w.sU)(o,e))]:i,await Promise.all(i)}await s((0,v.i)(!1))}componentDidUpdate(e){if(e.navigation?.editAskedQuestions&&e.navigation.editAskedQuestions!==this.props.navigation.editAskedQuestions){let{cards:e,dispatch:s}=this.props,{askedQuestions:t,selectedPost:i}=e,l=t.findIndex(e=>e.id===i.id);-1!==l&&(t[l]={...i}),s((0,r.gMi)(t))}}render(){let{navigation:{editAskedQuestions:e,goToFlowBuilder:s},cards:t,pages:i,t:n,auth:{locale:a}}=this.props,{askedQuestions:d,selectedPost:r}=t,{currentSettings:c}=i,x=(0,o.Xy6)(i.currentPageId,i.activated);if(e)return(0,l.jsx)(A.W,{});let h=(0,o.XXh)(i.roleInBot,"editor");return this.state.isFirstTimes&&d&&0==d.length?(0,l.jsx)("div",{className:"flex flex-col gap-24 items-center justify-center w-full h-full py-24 rounded-3xl overflow-hidden border border-neutral-250 bg-white overflow-hidden",children:(0,l.jsxs)("div",{className:"flex flex-col gap-24 items-center justify-center h-full",style:{maxWidth:704},children:[(0,l.jsx)("div",{className:"flex flex-auto overflow-hidden max-h-fit",children:(0,l.jsx)("img",{style:{height:"auto",maxWidth:270},src:(0,o.QpR)("components/ask_questions/ask_questions_en.svg"),alt:"botcake ask questions"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-12 items-center flex-none",children:[(0,l.jsx)("span",{className:"text-lg font-medium",children:n("mainMenu.mainTitle2")}),(0,l.jsx)("span",{className:"text-sm text-subtitle text-center",children:n("mainMenu.subTitle2")}),(0,l.jsx)(u.Ay,{onClick:()=>{this.handleCreateAskedQuestions(null),this.setState({isFirstTimes:!1})},shape:"round",type:"primary",icon:(0,l.jsx)(N.F,{}),children:n("custom.new")})]})]})}):(0,l.jsxs)("div",{className:"flex flex-col gap-24 items-start w-full h-full rounded-3xl border border-neutral-250 bg-white pl-24 py-24",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("span",{className:"text-xl font-medium",children:n("usePage.askedQuestions")}),(0,l.jsx)("span",{className:"text-xs text-neutral-500",children:n("usePage.askedQuestionsDesc")})]}),(0,l.jsxs)("div",{className:"flex items-start w-full h-full overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-16 w-full",style:{maxWidth:610},children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,l.jsx)("span",{className:"text-xs font-medium text-uppercase",children:n("statistic.editQuestion")}),(0,l.jsx)("span",{className:"text-xs text-neutral-500",children:n("statistic.editQuestionDesc",{max:4})})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-12",children:[(0,l.jsx)(f(),{onChange:()=>{},options:{onEnd:e=>this.onDragEnd(e),handle:".handle",animation:150,swapThreshold:.5,ghostClass:"ghost-drag-quick-reply-setting",chosenClass:"chosen-drag-quick-reply"},children:(0,l.jsx)("div",{className:"flex flex-col gap-12",children:d.map((e,s)=>(0,l.jsx)("div",{className:"flex rounded-lg",style:{maxWidth:453},children:(0,l.jsx)(j.A,{index:s,menu_key:e.asked_question_id,level:1,indexCard:e.id,button:e,isMainMenu:!0,isAskedQuestions:!0,discount:45},s)},s))})}),d.length<4&&(0,l.jsx)("div",{children:(0,l.jsx)(u.Ay,{disabled:!x||!h,icon:(0,l.jsx)(y.f,{}),className:"w-fit",shape:"round",onClick:this.handleCreateAskedQuestions,children:n("custom.new")})})]})]}),(0,l.jsx)("div",{className:"flex items-start w-full h-full justify-center",children:(0,l.jsx)(k.Ay,{askedQuestions:d?.length>0?d:null,extraContent:d?.length>0?null:(0,l.jsx)(_.A,{}),cards:t})})]})]})}constructor(...e){super(...e),this.state={isFirstTimes:!this.props.pages.currentSettings?.asked_questions?.length},this.handleCreateAskedQuestions=()=>{let{dispatch:e,cards:s,auth:{accessToken:t},pages:{currentPageId:i}}=this.props;e((0,r.GA6)(t,i))},this.onDragEnd=e=>{let{dispatch:s,cards:t}=this.props,{askedQuestions:i}=t,l=g()(i,e.oldIndex,e.newIndex);s((0,r.gMi)(l))}}}q=(0,i.Cg)([(0,h.Tl)()],q);let Q=(0,a.U)(function(e){return{auth:e.auth,pages:e.pages,cards:e.cards,navigation:e.navigation}},null)((0,d.A)(q))}},e=>{e.O(0,[2437,1765,3105,888,4705,9254,8722,4428,1657,6423,4587,5201,2550,8230,8917,3007,5538,9570,3758,8145,8867,9367,4579,9590,620,4718,4897,9196,6931,6426,2117,2170,5542,8282,3468,3571,2113,113,6439,1143,8279,2583,6147,7661,5487,384,9644,7886,325,3172,9172,9643,7218,2526,2688,636,6593,8792],()=>e(e.s=37884)),_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.