PageSourceSearch

https://botcake.io/_next/static/chunks/pages/chatbot/tools-1f3b9acb152cf2c3.js

js botcake.io collected 2026-10-08 05:26:32 UTC 52,090 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7049],{3773:(e,t,s)=>{"use strict";s.d(t,{G:()=>m});var l=s(14232),a=s(32078);let o=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M180.49,143.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L155,152l-15.52-15.51a12,12,0,1,1,17-17Zm-64-24a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,0,0,17-17L101,152l15.52-15.51A12,12,0,0,0,116.49,119.51ZM220,88V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88ZM160,57V80h23Zm36,155V104H148a12,12,0,0,1-12-12V44H60V212Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),l.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-104,88a8,8,0,0,1-11.32,11.32l-24-24a8,8,0,0,1,0-11.32l24-24a8,8,0,0,1,11.32,11.32L91.31,152Zm72-12.68-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32l24,24A8,8,0,0,1,181.66,157.66ZM152,88V44l44,44Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z"}))]]);var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,s)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;let m=(0,l.forwardRef)((e,t)=>l.createElement(a.A,r(((e,t)=>{for(var s in t||(t={}))h.call(t,s)&&p(e,s,t[s]);if(c)for(var s of c(t))d.call(t,s)&&p(e,s,t[s]);return e})({ref:t},e),i({weights:o}))));m.displayName="FileCode"},8973:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var l=s(4902),a=s(37876),o=s(14232),n=s(2171),r=s(19969),i=s(65538),c=s(9570),h=s(60968),d=s(63235);s(33082),s(82583),s(75597);var p=s(12506);s(12583),s(42040);var m=s(44010),u=s(3773),g=s(63228);let{Text:x}=r.A;i.A.Option;class y extends o.Component{render(){let{name:e,phone_number_id:t}=this.state,{t:s,pages:{currentPlatform:l,phoneNumbers:o},customStyle:n={},handleChangeToolType:r=e=>{},toolSelected:i=null,toolName:p="",handleChangeToolName:y=e=>{},errorToolName:f=!1}=this.props,b=[{label:"Facebook Ads JSON",key:"facebook_json",icon:(0,a.jsx)(m.N,{weight:"duotone",size:20,style:{color:"#667085"}}),subtitle:s("tool.subAdsJson")},{label:"Messenger Ref URL",key:"messenger_ref_url",icon:(0,a.jsx)(u.G,{weight:"duotone",size:20,style:{color:"#667085"}}),subtitle:s("tool.subRefURL")},{label:"QR Code",key:"qr_code",icon:(0,a.jsx)(g.v,{weight:"duotone",size:20,style:{color:"#667085"}}),subtitle:s("tool.subQR")}],j=[{label:"Messenger Ref URL",key:"messenger_ref_url",icon:(0,a.jsx)(u.G,{weight:"duotone",size:20,style:{color:"#667085"}}),subtitle:s("tool.subRefURL")},{label:"QR Code",key:"qr_code",icon:(0,a.jsx)(g.v,{size:20,weight:"duotone",style:{color:"#667085"}}),subtitle:s("tool.subQR")}],A=[{label:"Instagram Ads JSON",key:"igo_json",icon:(0,a.jsx)(m.N,{weight:"duotone",size:20,style:{color:"#667085"}}),subtitle:s("tool.subAdsJson")},{label:"Messenger Ref URL",key:"messenger_ref_url",icon:(0,a.jsx)(u.G,{weight:"duotone",size:20,style:{color:"#667085"}}),subtitle:s("tool.subRefURL")},{label:"QR Code",key:"qr_code",icon:(0,a.jsx)(g.v,{size:20,weight:"duotone",style:{color:"#667085"}}),subtitle:s("tool.subQR")}];return(0,a.jsxs)("div",{style:{...n},className:"flex flex-col gap-24 items-center justify-center w-full",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,a.jsx)(x,{className:"text-xs font-medium text-neutral-500",children:s("setting.enterName").toUpperCase()}),(0,a.jsx)(c.A,{style:{width:"100%",fontSize:14},status:f&&""===p?"error":"",placeholder:s("tool.enterToolName"),value:e,onCh
1ange:e=>this.setState({name:e.target.value}),onBlur:e=>y(e.target.value),size:"large"})]}),(0,a.jsxs)("div",{className:"flex flex-col w-full gap-8",children:[(0,a.jsx)(x,{className:"text-xs font-medium text-neutral-500",children:s("tool.selectToolType").toUpperCase()}),("instagram_official"==l?A:"facebook"!=l?j:b).map(e=>(0,a.jsxs)(h.A,{className:"flex w-full border border-solid border-neutral-250 rounded-md px-14 py-12 items-center justify-between cursor-pointer",style:{height:68},onClick:()=>r(e.key),children:[(0,a.jsxs)("div",{className:"flex gap-12 items-center",children:[e.icon,(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(x,{className:"text-sm font-medium text-neutral-900",children:e.label}),(0,a.jsx)(x,{className:"text-sm text-neutral-500",children:e.subtitle})]})]}),(0,a.jsx)(d.Ay,{className:"custom-antd-radio-keywords",checked:i==e.key})]},e.key))]})]})}constructor(...e){super(...e),this.state={name:this?.props?.toolName||"",phone_number_id:void 0}}}y=(0,l.Cg)([(0,p.Tl)()],y);let f=(0,n.connect)(function(e){return{pages:e.pages,auth:e.auth,cards:e.cards}})(y)},22534:(e,t,s)=>{"use strict";s.d(t,{A:()=>Z});var l=s(4902),a=s(37876),o=s(14232),n=s(2171),r=s(19394),i=s(65538),c=s(19969),h=s(43404),d=s(9570),p=s(97082),m=s(60968),u=s(79501),g=s(92222),x=s(3479),y=s(14579),f=s(82583),b=s(12506),j=s(25702),A=s.n(j),w=s(33082);s(75597);var v=s(62053),C=s(49623),k=s(22991),N=s(77262),S=s(76631);i.A.Option;let{Text:T,Title:V}=c.A;class H extends o.Component{constructor(e){super(e),this.componentDidMount=()=>{let{t:e,dispatch:t,auth:{accessToken:s},pages:{activated:l,currentPageId:a},isBulkAction:o}=this.props,n=l?l.filter(e=>e.id!=a):[],r=n[0]?n[0].id:"";o&&""!=r&&this.getAllFolderPage(r)},this.getAllFolderPage=e=>{let{dispatch:t,auth:{accessToken:s},t:l}=this.props;t((0,f.ERh)(s,e)).then(e=>{e.success?this.setState({listFolder:e.folders}):(0,w.Nh)("error",l("notice.failed"),e.error_code?l(`${e.error_code}`):e.message?e.message:l("notice.unknown"))})},this.onCopy=()=>{let{isBulkAction:e,isSequence:t,onCustomConfirm:s,multiple:l=!1,t:a,isCopyContentMessage:o,typeQuiz:n,typeCard:r}=this.props;if(s){let{selectPage:e,listPageSelect:t}=this.state;l&&t?.length>10?(0,w.Nh)("error",a("notice.error"),`${a("filter.lessThanOrEqual")} 10 ${a("dashboard.page")}`):s(l?t:e);return}r?this.onCopyCard():n?this.onCopyQuiz():o?this.onCopyMessageSequence():t?this.onCopySequence():e?this.onBulkCopyFlow():this.onCopyFlow(),this.setState({selectPage:null,listPageSelect:[]})},this.onCopySequence=()=>{let{dispatch:e,auth:{accessToken:t},pages:{currentPageId:s},sequenceId:l,t:a,isBulkCopy:o,listSelectedSequence:n}=this.props,{selectPage:r,listPageSelect:i}=this.state,c=o?n:[l];this.setState({onCopy:!0},()=>{(l||n)&&i.length>0&&i.length<=30?e((0,f.xZn)(t,s,r,c,i)).then(e=>{e.success?(0,w.Nh)("success",a("notice.success"),a("notice.actionSuccess")):(0,w.Nh)("error",a("notice.failed"),e.error_code?a(`${e.error_code}`):e.message?e.message:a("notice.unknown")),this.props.onCancel(),this.setState({onCopy:!1})}):(i.length>30&&(0,w.Nh)("error","",`${a("filter.lessThanOrEqual")} 10 ${a("dashboard.page")}`),this.setState({onCopy:!1}))})},this.onCopyMessageSequence=()=>{let{dispatch:e,auth:{accessToken:t},pages:{currentPageId:s},sequenceId:l,t:a,isBulkCopy:o,listSelectedSequence:n,selectedMessageIds:r,isCopyContentMessage:i}=this.props,{selectPage:c,listPageSelect:h,is_new_sequence:d}=this.state;this.setState({onCopy:!0},()=>{(l||n)&&h.length>0&&h.length<=30?e((0,f.MLK)(t,s,c,l,h,r,d)).then(e=>{e.success?(0,w.Nh)("success",a("notice.success"),a("notice.actionSuccess")):(0,w.Nh)("error","",a("notice.unknown")),this.props.onCancel(),this.setState({onCopy:!1})}):(h.length>30&&(0,w.Nh)("error","",`${a("filter.lessThanOrEqual")} 10 ${a("dashboard.page")}`),this.setState({onCopy:!1}))})},this.onCopyQuiz=()=>{let{dispatch:e,auth:{accessToken:t},pages:{currentPageId:s},selectedQuizId:l,t:a}=this.props,{listPageSelect:o}=this.state;this.setState({onCopy:!0},()=>{l&&o.length>0&&o.length<=10?e((0,f.Hwb)(t,s,l,o)).then(e=>{e.success?(0,w.Nh)("success",a("notice.success"),a("notice.actionSuccess")):(0,w.Nh)("error","",a("notice.unknown")),this.props.onCancel(),this.setState({onCopy:!1})}):(o.length>30&&(0,w.Nh)("error","",`${a("filter.lessThanOrEqual")} 10 ${a("dashboard.page")}`),this.setState({onCopy:!1}))})},this.onCopyCard=()=>{let{dispatch:e,auth:{accessToken:t},pages:{currentPageId:s},t:l,selectedCardId:a}=this.props,{listPageSelect:o}=this.state;this.setState({onCopy:!0},()=>{a&&o.length>0&&o.length<=10?e((0,f.y2b)(t,s,a,o)).then(e=>{e.success?(0,w.Nh)("success",l("notice.success"),l("notice.actionSuccess")):(0,w.Nh)("error","",l("notice.unknown")),this.props.onCancel(),this.setState({onCopy:!1})}):(o.length>30&&(0,w.Nh)("error","",`${l("filter.lessThanOrEqual")} 10 ${l("dashboard.page")}`),this.setState({onCopy:!1}))})},this.onCopyFlow=()=>{let{dispatch:e,auth:{accessToken:t},pages:{currentPageId:s},flowId:l,t:a,isFolder:o,listSelectFolder:n}=this.props,{selectPage:r,listPageSelect:i}=this.state;o?e({type:N.eeo,payload:{status:!0}}):l&&i&&i.length>1&&e({type:N.uMb,payload:{status:!0}}),this.setState({onCopy:!0,type:o?"folder":"flow",waitingResponse:!l||!i||1!=i.length},()=>{l&&i&&i.length>0&&e((0,f.GJ)(t,s,i,l,o,n)).then(e=>{if(e.success)o||1!=i.length||(0,w.Nh)("success",a("notice.success"),a("notice.actionSuccess"));else if(e.error_code){let t=e.error_code;(0,w.Nh)("error",a("notice.error"),a(t))}else(0,w.Nh)("error",a("notice.error"),a("notice.unknown"));o||1!=i.length||(this.props.onCancel(),this.setState({onCopy:!1}))})})},this.onBulkCopyFlow=()=>{let{dispatch:e,auth:{accessToken:t},pages:{currentPageId:s,isCloningFlow:l},listFlowId:a,t:o,isFolder:n,listSelectFolder:r}=this.props,{selectPage:i,listPageSelect:c}=this.state;n?e({type:N.eeo,payload:{status:!0}}):e({type:N.uMb,payload:{status:!0}}),this.setState({onCopy:!0,type:n?"folder":"flow",waitingResponse:!0},()=>{a&&c&&c.length>0&&e((0,f.Fvd)(t,s,c,a,r,n)).then(e=>{if(e.success);else if(e.error_code){let t=e.error_code;(0,w.Nh)("error",o("notice.error"),o(t))}else(0,w.Nh)("error",o("notice.error"),o("notice.unknown"))})})},this.handleSelectPageCopy=e=>{let{isBulkAction:t}=this.props,{listPageSelect:s}=this.state;t&&this.getAllFolderPage(e);let l=s,a=l.findIndex(t=>t==e);a>-1?l.splice(a,1):l=l.concat([e]),this.setState({selectPage:this.state.selectPage===e?null:e,listPageSelect:l})};let{pages:{activated:t,currentPageId:s,currentPlatform:l,allowAllPlatforms:a},isBulkAction:o}=this.props,n=a?"CREATE_CONTENT":"MANAGE";t&&t.filter(e=>{let t=e.role_in_bot==n||"CREATE_CONTENT"==n&&"MANAGE"==e.role_in_bot,o=!!a||e.platform==l||"facebook"==l&&!e.platform;return t&&e.id!=s&&o}),this.state={selectPage:null,listFolder:[],pagesSearch:null,searchInput:"",copyToFolder:null,onCopy:!1,listPageSelect:[],type:"flow",waitingResponse:!1,is_new_sequence:!1}}onSearch(e){let{pages:{activated:t}}=this.props,s=[...t];if(this.setState({searchInput:e}),""==e)this.setState({pagesSearch:null});else{let t=s.filter(t=>t.id==e),l=s.filter(t=>t.name&&t.name.toLowerCase().includes(e.toLowerCase())),a=A()(t.concat(l),"id");this.setState({pagesSearch:a})}}render(){let{auth:e,pages:{activated:t,currentPageId:s,currentPlatform:l,isCloningFolder:o,isCloningFlow:n},modalCopy:i,isSequence:c,t:f,listCheckboxFlows:j,isBulkActioni:A,isFolder:w,allowAllPlatforms:N,isAgent:H,isFilesLibrary:Z,loading:E,title:_,hideAlert:M=!1,multiple:F=!1,isCopyContentMessage:R,typeQuiz:P,typeCard:O}=this.props,{selectPage:z,listFolder:L,searchInput:I,pagesSearch:D,listPageSelect:W,type:B,waitingResponse:$,is_new_sequence:q}=this.state,Q=N?"CREATE_CONTENT":"MANAGE",G=e=>{let t=e.role_in_bot==Q||"CREATE_CONTENT"==Q&&"MANAGE"==e.role_in_bot,a=!!N||e.platform==l||"facebook"==l&&!e.platform;return t&&e.id!=s&&a}
1,U=null==D?t.filter(G):D.filter(G);return f("setting.flow"),f("overview.folder"),L.map(e=>({value:e.path.concat(e.id).toString(),label:e.name})),h.A,r.A,d.A,f("setting.choose"),(0,a.jsxs)(p.A,{width:800,title:null,classNames:{content:"flex flex-col rounded-2xl border border-neutral-200 p-0 overflow-hidden",footer:"px-24 py-20 border-t border-t-solid border-neutral-200 m-0",body:"h-full flex flex-col p-24"},open:i,onCancel:()=>this.props.onCancel(),cancelButtonProps:{type:"text"},okText:f("templates.button"),onOk:this.onCopy,okButtonProps:{loading:this.state.onCopy},footer:null,closeIcon:!1,children:[$?(0,a.jsx)("div",{children:o||n?(0,a.jsxs)(m.A,{justify:"center",align:"middle",style:{flexDirection:"column",height:"100%",width:"100%",padding:20},children:[(0,a.jsx)("div",{children:(0,a.jsx)(S.A,{})}),(0,a.jsx)(T,{style:{color:"var(--gray-disable)",display:"block",marginTop:-30},children:f("templates.copying")})]}):(0,a.jsx)(m.A,{style:{height:"100%",width:"100%",padding:20},wrap:!1,align:"middle",children:(0,a.jsxs)(m.A,{style:{width:"100%",flexDirection:"column",gap:12},justify:"center",align:"middle",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.A,{align:"middle",justify:"center",style:{width:100,height:100,border:"4px solid #32D583",borderRadius:"50%"},children:(0,a.jsx)(v.J,{size:30,color:"#32D583",weight:"bold"})}),(0,a.jsx)(V,{style:{fontSize:16,fontWeight:500},level:3,children:f("setting.copySuccess")})]}),(0,a.jsx)(u.Ay,{type:"primary",onClick:()=>{this.setState({type:1}),this.props.onCancel()},children:f("tool.finish")})]})})}):(0,a.jsxs)(m.A,{style:{flexDirection:"column",gap:12,padding:"20px 0px"},wrap:!1,children:[(0,a.jsxs)(m.A,{style:{width:"100%",display:"flex",flexDirection:"column",gap:2,padding:"0px 20px"},children:[(0,a.jsx)(T,{style:{color:"#667085",fontWeight:500},children:f("templates.copyFlowDesc1")}),(0,a.jsx)(b.x6,{i18nKey:"templates.copyFlowDesc2",components:[(0,a.jsx)("span",{style:{fontWeight:500},children:"''"})],style:{color:"#98A2B3"}})]}),!H&&!Z&&!M&&!O&&!P&&(0,a.jsx)(g.A,{message:(0,a.jsxs)(T,{style:{fontSize:16,color:"#667085",fontWeight:500},children:[f("tool.note"),": ",(0,a.jsx)("span",{style:{color:"#667085",fontWeight:400},children:f("setting.actionCopy")})]}),description:null,type:"warning",showIcon:!0,style:{backgroundColor:"#F2F4F7",borderColor:"#D0D5DD",width:"calc(100% - 40px)",marginLeft:20}}),(0,a.jsx)(m.A,{style:{width:"100%",padding:"0px 20px 12px 20px"},children:(0,a.jsx)(d.A,{style:{flex:1,maxWidth:248},prefix:(0,a.jsx)(C.e,{size:16,weight:"bold"}),placeholder:f("dashboard.search"),onChange:e=>this.onSearch(e.currentTarget.value)})}),(0,a.jsx)("div",{style:{overflowY:"scroll",maxHeight:256,width:"100%",padding:"8px 14px 0px 20px",display:"grid",gridTemplateColumns:"repeat(2, 1fr)",rowGap:8,columnGap:12,marginTop:-8},children:U.map(e=>(0,a.jsxs)(m.A,{style:{padding:"8px 16px",borderRadius:8,gap:12,cursor:"pointer",border:W.includes(e.id)?"1px solid #5B56E9":"1px solid #EAECF0",position:"relative",boxShadow:"0px 1px 7.5px 0px rgba(0, 0, 0, 0.05)",width:"100%"},align:"middle",onClick:()=>this.handleSelectPageCopy(e.id),className:"hover-bg-neural-100",children:[(0,a.jsx)(k.A,{id:e.id,size:[40,40],name:e.name}),(0,a.jsx)(T,{ellipsis:{tooltip:!0},style:{maxWidth:140},children:e.name}),W.includes(e.id)&&(0,a.jsx)(m.A,{justify:"center",align:"middle",style:{width:20,height:20,borderRadius:"50%",backgroundColor:"white",position:"absolute",top:"-10px",right:"-10px"},children:(0,a.jsx)(m.A,{style:{borderRadius:"50%",width:16,height:16,backgroundColor:"#5B56E9"},justify:"center",align:"middle",children:(0,a.jsx)(v.J,{size:10,color:"white",weight:"bold"})})})]}))})]}),!$&&(0,a.jsx)(x.A,{style:{margin:0}}),!$&&(0,a.jsx)("div",{style:{padding:"12px 16px"},children:(0,a.jsxs)(m.A,{align:"middle",justify:R?"space-between":"end",children:[R&&(0,a.jsx)(y.A,{checked:q,onChange:e=>this.setState({is_new_sequence:e.target.checked}),children:f("setting.createNewSequence")}),(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"end",gap:10},children:[(0,a.jsx)(u.Ay,{type:"text",onClick:()=>this.props.onCancel(),children:f("notice.cancel")}),(0,a.jsx)(u.Ay,{type:"primary",onClick:this.onCopy,loading:E,disabled:E||0==W.length&&F,children:f("templates.button")})]})]})})]})}}H=(0,l.Cg)([(0,b.Tl)()],H);let Z=(0,n.connect)(function(e){return{pages:e.pages,auth:e.auth,cards:e.cards}})(H)},44010:(e,t,s)=>{"use strict";s.d(t,{N:()=>m});var l=s(14232),a=s(32078);let o=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M51.51,104.49l-32-32a12,12,0,0,1,0-17l32-32a12,12,0,1,1,17,17L45,64,68.49,87.51a12,12,0,0,1-17,17Zm48,0a12,12,0,0,0,17,0l32-32a12,12,0,0,0,0-17l-32-32a12,12,0,1,0-17,17L123,64,99.51,87.51A12,12,0,0,0,99.51,104.49ZM200,36H180a12,12,0,0,0,0,24h16V196H60V140a12,12,0,0,0-24,0v60a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M152,32V96a16,16,0,0,1-16,16H32A16,16,0,0,1,16,96V32A16,16,0,0,1,32,16H136A16,16,0,0,1,152,32Z",opacity:"0.2"}),l.createElement("path",{d:"M58.34,101.66l-32-32a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,69.66,37.66L43.31,64,69.66,90.34a8,8,0,0,1-11.32,11.32Zm40,0a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0,0-11.32l-32-32A8,8,0,0,0,98.34,37.66L124.69,64,98.34,90.34A8,8,0,0,0,98.34,101.66
1ZM200,40H176a8,8,0,0,0,0,16h24V200H56V136a8,8,0,0,0-16,0v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M200,40H168a16,16,0,0,0-16-16H32A16,16,0,0,0,16,40v80a16,16,0,0,0,16,16h8v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40ZM106.34,61.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L124.69,80Zm-64,24a8,8,0,0,1,0-11.32l24-24A8,8,0,0,1,77.66,61.66L59.31,80,77.66,98.34a8,8,0,0,1-11.32,11.32ZM200,200H56V136h96a16,16,0,0,0,16-16V56h32Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M59.76,100.24l-32-32a6,6,0,0,1,0-8.48l32-32a6,6,0,1,1,8.48,8.48L40.49,64,68.24,91.76a6,6,0,1,1-8.48,8.48Zm40,0a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0,0-8.48l-32-32a6,6,0,1,0-8.48,8.48L127.51,64,99.76,91.76A6,6,0,0,0,99.76,100.24ZM200,42H176a6,6,0,0,0,0,12h24a2,2,0,0,1,2,2V200a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V136a6,6,0,0,0-12,0v64a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M58.34,101.66l-32-32a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,69.66,37.66L43.31,64,69.66,90.34a8,8,0,0,1-11.32,11.32Zm40,0a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0,0-11.32l-32-32A8,8,0,0,0,98.34,37.66L124.69,64,98.34,90.34A8,8,0,0,0,98.34,101.66ZM200,40H176a8,8,0,0,0,0,16h24V200H56V136a8,8,0,0,0-16,0v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M61.17,98.83l-32-32a4,4,0,0,1,0-5.66l32-32a4,4,0,0,1,5.66,5.66L37.66,64,66.83,93.17a4,4,0,0,1-5.66,5.66Zm40,0a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0,0-5.66l-32-32a4,4,0,0,0-5.66,5.66L130.34,64,101.17,93.17A4,4,0,0,0,101.17,98.83ZM200,44H176a4,4,0,0,0,0,8h24a4,4,0,0,1,4,4V200a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V136a4,4,0,0,0-8,0v64a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Z"}))]]);var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,s)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;let m=(0,l.forwardRef)((e,t)=>l.createElement(a.A,r(((e,t)=>{for(var s in t||(t={}))h.call(t,s)&&p(e,s,t[s]);if(c)for(var s of c(t))d.call(t,s)&&p(e,s,t[s]);return e})({ref:t},e),i({weights:o}))));m.displayName="CodeBlock"},59016:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(44501),a=s(14232);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"};var n=s(80676);let r=a.forwardRef(function(e,t){return a.createElement(n.A,(0,l.A)({},e,{ref:t,icon:o}))})},63228:(e,t,s)=>{"use strict";s.d(t,{v:()=>m});var l=s(14232),a=s(32078);let o=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96Zm4,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-60,76V148a12,12,0,0,1,24,0v24a12,12,0,0,1-24,0Zm84-8a12,12,0,0,1-12,12H196v32a12,12,0,0,1-12,12H148a12,12,0,0,1,0-24h24V148a12,12,0,0,1,24,0v4h12A12,12,0,0,1,220,164Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm-8,88H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96-96H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Z",opacity:"0.2"}),l.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm-16,80H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96-96H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40ZM144,184a8,8,0,0,0,8-8V144a8,8,0,0,0-16,0v32A8,8,0,0,0,144,184Zm64-32H184v-8a8,8,0,0,0-16,0v56H144a8,8,0,0,0,0,16h32a8,8,0,0,0,8-8V168h24a8,8,0,0,0,0-16Zm0,32a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V192A8,8,0,0,0,208,184Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-2,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2ZM200,42H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-64,72V144a6,6,0,0,1,12,0v32a6,6,0,0,1-12,0Zm76-16a6,6,0,0,1-6,6H182v42a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h26V144a6,6,0,0,1,12,0v10h26A6,6,0,0,1,214,160Zm0,32v16a6,6,0,0,1-12,0V192a6,6,0,0,1,12,0Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M104,44H
156A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-4,36H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM200,44H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-64,72V144a4,4,0,0,1,8,0v32a4,4,0,0,1-8,0Zm72-16a4,4,0,0,1-4,4H180v44a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h28V144a4,4,0,0,1,8,0v12h28A4,4,0,0,1,212,160Zm0,32v16a4,4,0,0,1-8,0V192a4,4,0,0,1,8,0Z"}))]]);var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,s)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;let m=(0,l.forwardRef)((e,t)=>l.createElement(a.A,r(((e,t)=>{for(var s in t||(t={}))h.call(t,s)&&p(e,s,t[s]);if(c)for(var s of c(t))d.call(t,s)&&p(e,s,t[s]);return e})({ref:t},e),i({weights:o}))));m.displayName="QrCode"},78188:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>ew});var l=s(37876),a=s(14232),o=s(30325),n=s(97661),r=s(82583),i=s(17317),c=s(4902),h=s(89099),d=s.n(h),p=s(2171),m=s(19394),u=s(85840),g=s(24340),x=s(59016),y=s(97082),f=s(65538),b=s(19969),j=s(31228),A=s(43404),w=s(9570),v=s(25244),C=s(60968),k=s(14579),N=s(54305),S=s(3479),T=s(79501),V=s(41103),H=s(42929),Z=s(20620),E=s(58170),_=s(20916),M=s(18313),F=s(4552),R=s(75597),P=s(12506),O=s(25702),z=s.n(O),L=s(4917),I=s.n(L),D=s(33082),W=s(12583),B=s(51163),$=s(44010),q=s(3773),Q=s(63228),G=s(23217),U=s(90669),J=s(83958),Y=s(52138),X=s(23849),K=s(66724),ee=s(10250),et=s(49623),es=s(54409),el=s(96445),ea=s(77664),eo=s(91650),en=s(16775),er=s(53607),ei=s(19966),ec=s(42040);s(22991);var eh=s(8973);s(22534);var ed=s(14791),ep=s(85835),em=s(9959),eu=s(35318),eg=s(19755);y.A.confirm,f.A.Option;let{Text:ex}=b.A,ey=j.A.TabPane;class ef extends a.Component{static async getInitialProps(e){let{store:{dispatch:t,getState:s},query:{pageUrlId:l},isServer:a,accessToken:o}=e;if(a)o&&l&&await t((0,r.YaE)(o,l));else{let{currentPageId:e}=s().pages;o&&e&&await t((0,r.YaE)(o,e,30,1))}}onSelectedTools(e){let{dispatch:t,pages:{currentPageId:s}}=this.props;e.drafts&&e.drafts,t((0,F.rS)(e)),t((0,F.Ho)(e)),d().push(`/chatbot/tools/setting?toolId=${e.id}`,`/${s}/tools/${e.id}`)}onClickLoadMore(){let{dispatch:e,auth:{accessToken:t},pages:{currentPageId:s},cards:{tools:l}}=this.props,{pagination:a}=this.state,{pageSize:o,current:n}=a;e((0,r.YaE)(t,s,o,n))}handleSelectAllTool(e){let t=e.target.checked,{cards:{tools:s}}=this.props;if(t&&s?.length>0){let e=s.map(e=>e.id);this.setState({listSelectedTool:e})}else this.setState({listSelectedTool:[]})}bulkDeleteTools(){let{dispatch:e,pages:{currentPageId:t,flows:s},auth:{accessToken:a},t:o}=this.props,{listSelectedTool:n}=this.state;ep.A.open({type:"confirm",status:"delete",title:o("setting.delToolTitle"),content:(0,l.jsx)("span",{className:"text-sm text-neutral-500",children:o("notice.bulkDeleteTools")}),okText:o("notice.cf"),cancelText:o("sequence.cancel"),okType:"primary",centeredContent:!0,onOk:()=>{e((0,r.rH$)(a,t,n)),this.setState({listSelectedTool:[]})},onCancel:()=>{}})}onSearch(e){let{pages:{activated:t}}=this.props,s=[...t];if(this.setState({searchInput:e}),""==e)this.setState({pagesSearch:null});else{let t=s.filter(t=>t.id==e),l=s.filter(t=>t.name&&t.name.toLowerCase().includes(e.toLowerCase())),a=z()(t.concat(l),"id");this.setState({pagesSearch:a})}}onSearchTool(e){let{dispatch:t,auth:{accessToken:s},pages:{currentPageId:l},cards:{tools:a}}=this.props,{pageSize:o,page:n,searchType:i}=this.state;t((0,r.YaE)(s,l,o,1,e,i))}onSearchType(e){let{dispatch:t,auth:{accessToken:s},pages:{currentPageId:l},cards:{tools:a}}=this.props,{pageSize:o,page:n,textSearch:i,searchType:c}=this.state;t((0,r.YaE)(s,l,o,1,i,e==c||"All"==e?null:e)),this.setState({searchType:e==c||"All"==e?null:e,key:e==c||"All"==e?"All":e,visibleTitleFilter:!1})}listTools(e,t){let{t:s,pages:{currentPlatform:a}}=this.props;return[{key:"All",label:s("customer.all"),icon:(0,l.jsx)(B.B,{size:e,weight:t})},{key:1,label:"Facebook Ads JSON",icon:(0,l.jsx)($.N,{size:e,weight:t}),hidden:"facebook"!=a&&"instagram_official"!=a},{key:2,label:"Messenger Ref URL",icon:(0,l.jsx)(q.G,{size:e,weight:t})},{key:3,label:"QR code",icon:(0,l.jsx)(Q.v,{size:e,weight:t})},{key:4,label:"Customer Chat",icon:(0,l.jsx)(G.D,{size:e,weight:t}),hidden:!0},{key:5,label:"Checkbox",icon:(0,l.jsx)(U.S,{size:e,weight:t}),hidden:"facebook"!=a},{key:6,label:"Send to Messenger",icon:(0,l.jsx)(G.D,{size:e,weight:t}),hidden:!0},{key:7,label:"Message Us",icon:(0,l.jsx)(G.D,{size:e,weight:t}),hidden:!0},{key:8,label:"Landing Page",icon:(0,l.jsx)(J.P,{size:e,weight:t}),hidden:!0}]}render(){let{cards:e,t,pages:{roleInBot:s,activated:a,currentPageId:o,currentPlatform:n,currentSettings:r},auth:{locale:i,timezone:c}}=this.props,{pageSize:h,showPopoverBulkAction:d,listSelectedTool:p,pagesSearch:u,searchInput:g,modalCopyTool:x,pagination:f,visibleTitle:b,visibleTitleFilter:E,selectPage:_,searchType:M,key:F,showModalCreateTool:P,toolSelected:O,toolName:z,errorToolName:L}=this.state,{tools:I,lengthTools:D}=e,W=(0,R.XXh)(s,"editor");A.A,m.A,w.A,t("setting.choose"),null==u?a.filter(e=>"MANAGE"==e.role_in_bot&&e.id!=o&&(e.platform==n||"facebook"==n&&!e.platform)):u.filter(e=>"MANAGE"==e.role_in_bot&&e.id!=o&&(e.platform==n||"facebook"==n&&!e.platform)),v.A,v.A.Item,t("customer.selectOnPage"),v.A.Item,t("usePage.selectAll"),v.A,this.listTools(17).map(e=>(0,l.jsx)(v.A.Item,{onClick:()=>{this.onSearchType(e.key)},style:{display:"flex",alignItems:"center"},children:(0,l.jsxs)(C.A,{style:{display:"flex",alignItems:"center"},children:[(0,l.jsx)(k.A,{checked:M==e.key,style:{marginRight:10}}
1),e.icon,(0,l.jsx)(ex,{style:{marginLeft:12},children:e.label})]})},e.key));let B=[{title:(0,l.jsx)("div",{onClick:e=>e.stopPropagation(),className:"flex items-center justify-center",style:{maxWidth:68},children:(0,l.jsx)(k.A,{onChange:e=>this.handleSelectAllTool(e),checked:p.length==I.length&&I.length>0,style:{padding:"12px 16px",width:"50px"}})}),key:"checkbox",width:68,maxWidth:68,render:e=>(0,l.jsx)("div",{onClick:e=>e.stopPropagation(),className:"flex items-center justify-center",style:{maxWidth:68},children:(0,l.jsx)(k.A,{checked:p.includes(e.id),onChange:t=>this.handleChangeCheckbox(t,e.id),style:{padding:"12px 16px",width:"50px"}})})},{title:(0,l.jsx)(ex,{className:"text-sm text-neutral-500",children:t("customer.name")}),key:"name",align:"left",ellipsis:!0,width:300,render:e=>(0,l.jsxs)("div",{className:"flex gap-12 items-center w-full",children:[(0,l.jsxs)("div",{className:"flex items-center gap-12",style:{maxWidth:"calc(100% - 20px)"},children:[(0,l.jsx)("div",{style:{width:20},className:"flex items-center justify-center",children:this.listTools(20,"duotone").find(t=>t.key==e.type).icon}),(0,l.jsx)(ex,{style:{maxWidth:"calc(100% - 20px)"},ellipsis:!0,children:e.name})]}),(0,l.jsx)(ec.Zy,{height:8,width:8,className:`${e.is_published?"text-green-400":"text-orange-500"}`})]})},{title:(0,l.jsx)(ex,{className:"text-sm text-neutral-500",children:"Opt-In message"}),key:"key",width:window.screen&&window.screen.width>1900?300:220,align:"left",ellipsis:!0,render:e=>(0,l.jsx)(ex,{children:e.flow_name||"-"})},{title:(0,l.jsx)(ex,{className:"text-sm text-neutral-500",children:t("setting.insertedDate")}),key:"key",width:window.screen&&window.screen.width>1900?300:200,align:"left",ellipsis:!0,render:e=>(0,l.jsx)(ex,{children:e.inserted_at?(0,R.r69)(r.time_zone||c,e.inserted_at,!1,"lll",r?.format_12_hours,!1,i):"-"})},{title:(0,l.jsx)(ex,{style:{fontWeight:500,color:"#667085"},children:""}),width:60,maxWidth:60,key:"action",align:"right",className:"flex justify-end items-center",render:e=>(0,l.jsx)(N.A,{styles:{body:{width:300,padding:0,borderRadius:12,border:"1px solid #EAECF0"}},placement:"bottomRight",trigger:"click",arrow:!1,content:(0,l.jsxs)("div",{className:"flex flex-col w-full",children:[(0,l.jsx)("div",{className:"p-6 flex items-center",children:(0,l.jsx)("div",{className:"px-12 py-6 flex items-center",children:(0,l.jsx)(ex,{children:t("setting.otherSettings")})})}),(0,l.jsx)(S.A,{className:"my-0"}),(0,l.jsxs)("div",{className:"flex flex-col p-6",children:[(0,l.jsxs)("div",{className:"hover:bg-neutral-100 cursor-pointer p-8 rounded-sm gap-12 flex items-center",onClick:t=>{t.stopPropagation(),(0,R.WoR)(e.permission,e.status,e.owned_by_you)&&this.onClickCopy(e.id)},children:[(0,l.jsx)(Y.G,{size:20}),(0,l.jsx)(ex,{children:t("modalCopy.duplicate")})]}),(0,l.jsxs)("div",{className:"hover:bg-neutral-100 cursor-pointer p-8 rounded-sm gap-12 flex items-center",onClick:t=>{t.stopPropagation(),this.handleClickCopyTool(t,e.id)},children:[(0,l.jsx)(X.s,{size:20}),(0,l.jsx)(ex,{children:t("copyToOtherPage")})]})]}),(0,l.jsx)(S.A,{className:"my-0"}),(0,l.jsx)("div",{className:"flex flex-col p-6",children:(0,l.jsxs)("div",{className:"hover:bg-neutral-100 cursor-pointer p-8 rounded-sm gap-12 flex items-center text-red-500",onClick:t=>{t.stopPropagation(),(0,R.WoR)(e.permission,e.status,e.owned_by_you)&&this.onClickDelete(e)},children:[(0,l.jsx)(K.H,{size:20}),(0,l.jsx)(ex,{className:"text-red-500",children:t("templates.delete")})]})})]}),children:(0,l.jsx)(T.Ay,{type:"text",shape:"round",className:"hover:bg-neutral-300 bg-transparent",icon:(0,l.jsx)(ee.P,{size:20}),onClick:e=>e.stopPropagation()})})}],$=this.listTools(20,"regular").filter(e=>!e.hidden);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(V.Ay,{renderEmpty:()=>(0,l.jsx)(ed.S,{description:t("smartSegment.noData")}),children:(0,l.jsx)(H.A,{className:"bg-white w-full h-full overflow-hidden",children:(0,l.jsxs)("div",{className:"flex flex-col w-full h-full gap-24",children:[(0,l.jsx)("div",{className:"flex items-center justify-between",children:(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(ex,{className:"text-xl font-medium",children:t("tool.tool")}),(0,l.jsx)(ex,{className:"text-sm text-neutral-500",children:t("tool.subTool")})]})}),(0,l.jsxs)(C.A,{type:"flex",align:"middle",justify:"space-between",style:{},children:[(0,l.jsx)(w.A,{style:{width:300,borderRadius:30},className:"px-12 py-8",onPressEnter:e=>this.onSearchTool(e.target.value),onChange:e=>{this.setState({textSearch:e.target.value}),this.debounceOnChangeInput(e.target.value)},placeholder:t("components.orderAdvanceFilter.enterSearch"),prefix:(0,l.jsx)(et.e,{size:20})}),(0,l.jsx)(T.Ay,{disabled:!W,type:"primary",shape:"round",icon:(0,l.jsx)(es.f,{size:20}),onClick:this.createNewTools,children:t("tool.createTool")})]}),(0,l.jsx)(j.A,{onTabClick:this.handleSelect,id:"controlled-tab-example",activeKey:F,className:"w-full h-full overflow-hidden",children:$.map((e,s)=>(0,l.jsx)(ey,{tab:(0,l.jsxs)("div",{className:"gap-12 flex items-center cursor-pointer",children:[e.icon,e.label]}),children:$?.length>0?(0,l.jsx)(Z.A,{size:"middle",onRow:(e,t)=>({onClick:()=>this.onSelectedTools(e)}),pagination:{...f,size:32,total:D,showSizeChanger:{suffixIcon:(0,l.jsx)(el.a,{size:16}),optionRender:e=>{let{value:s}=e;return(0,l.jsx)(ex,{className:"text-sm",children:`${s} / ${t("upgrade.page")}`})},labelRender:e=>{let{value:s}=e;return(0,l.jsx)(ex,{className:"text-sm",children:`${s} / ${t("upgrade.page")}`})}},itemRender:(e,t,s)=>"prev"===t?(0,l.jsx)(T.Ay,{type:"text",shape:"round",style:{borderRadius:30},icon:(0,l.jsx)(ea.n,{size:20})}):"next"===t?(0,l.jsx)(T.Ay,{type:"text",shape:"round",style:{borderRadius:30},icon:(0,l.jsx)(eo.Q,{size:20})}
1):s,pageSizeOptions:["30","50","100"],position:["none",I?.length==0&&f?.current==1?"none":"bottomRight"],className:"pagination-customer",showTotal:(e,s)=>(0,l.jsxs)("div",{children:[(0,l.jsxs)(ex,{children:[t("coupon.total")," "]}),(0,l.jsxs)(ex,{className:"font-medium",children:[e," ",t("usePage.tools")]})]})},rowKey:"id",scroll:{y:"100%"},columns:B,dataSource:I,rowClassName:(e,t)=>t%2==0?"white-background":"gray-background",onChange:this.handleTableChange,className:"global-product-table w-full h-full"}):(0,l.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,l.jsx)(ed.S,{icon:(0,l.jsx)("div",{style:{width:80,height:80},className:"flex items-center justify-center",children:(0,l.jsx)("img",{src:(0,R.QpR)("empty-condition.svg"),alt:"Empty action",width:100,height:100})}),description:(0,l.jsx)(ex,{className:"text-neutral-400",children:"Please create new data to use this feature."}),title:(0,l.jsx)(ex,{className:"text-neutral-400",children:"You don't have any data yet."})}),(0,l.jsx)(T.Ay,{style:{marginTop:-12},shape:"round",icon:(0,l.jsx)(es.f,{size:20}),onClick:()=>this.setState({showModalCreateTool:!0}),children:t("tool.createTool")})]})})},e.key))})]})})}),(0,l.jsx)(eg.K,{open:x,onOk:this.handleCopyTools,onCancel:()=>this.setState({modalCopyTool:!1}),title:`${t("copy")} ${t("usePage.tools")}`,subTitle:t("tool.subCopyTool"),icon:(0,l.jsx)("div",{style:{width:48,height:48},className:"flex border border-solid border-neutral-250 rounded-full bg-neutral-100 items-center justify-center",children:(0,l.jsx)("div",{style:{width:40,height:40},className:"flex items-center justify-center bg-white rounded-full",children:(0,l.jsx)(en.Q,{size:20,className:"text-blue-500"})})}),type:"growthTool"}),(0,l.jsx)(em.A,{selectedLabel:t("tool.selected"),selectedCount:p.length,actions:[{onClick:()=>this.setState({isBulkCopy:!0,modalCopyTool:!0}),buttonProps:{type:"text",shape:"round",className:"bg-transparent text-white hover:bg-neutral-700",icon:(0,l.jsx)(eu.q,{Icon:er.B,size:20})},children:`${t("templates.copyFlow")}`},{onClick:()=>this.bulkDeleteTools(),tooltip:t("setting.delete"),buttonProps:{type:"text",shape:"round",className:"bg-transparent text-red-500 hover:bg-red-900 group-icon",icon:(0,l.jsx)(eu.q,{Icon:K.H,size:20})}}],onClear:()=>this.setState({listSelectedTool:[]}),visible:p.length>0}),P&&(0,l.jsx)(y.A,{classNames:{content:"flex flex-col rounded-2xl border border-neutral-200 p-0 overflow-hidden",footer:"px-24 py-20 border-t border-t-solid border-neutral-200 m-0",body:"h-full flex flex-col p-24"},open:P,title:null,closeIcon:null,onOk:()=>{this.onCreateTool(O),this.setState({showModalCreateTool:!1,toolSelected:null,toolName:""})},onCancel:()=>this.setState({showModalCreateTool:!1}),width:498,footer:null,children:(0,l.jsxs)("div",{className:"flex flex-col gap-24",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-12 w-full items-center justify-center",children:[(0,l.jsx)("div",{style:{width:44,height:44,boxShadow:"-3px 4px 13.9px 0 #F2F4F7",border:"1px solid rgba(208, 213, 221, 0.80)"},className:"rounded-md p-4",children:(0,l.jsx)("div",{className:"rounded-sm p-8 gap-10 flex items-center justify-center",style:{boxShadow:"0 0 4px 0 rgba(236, 236, 236, 0.25) inset",background:"linear-gradient(225deg, #EBEEF2 2.23%, rgba(255, 255, 255, 0.00) 97.77%)"},children:(0,l.jsx)(ei.I,{size:20})})}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,l.jsx)(ex,{className:"text-md font-medium",children:t("tool.createTool")}),(0,l.jsx)(ex,{className:"text-xs text-neutral-500",children:t("tool.subCreateTool")})]})]}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center gap-16",children:[(0,l.jsx)(eh.A,{customStyle:{width:"100%"},handleChangeToolType:e=>this.setState({toolSelected:e}),toolSelected:O,errorToolName:L,toolName:z,handleChangeToolName:e=>this.setState({toolName:e})}),(0,l.jsx)(T.Ay,{type:"primary",shape:"round",className:"w-full",style:{height:48},onClick:()=>{this.onCreateTool(O)},children:t("notice.cre")},"submit")]})]})})]})}constructor(...e){var t;super(...e),t=this,this.state={pageSize:30,page:1,showPopoverBulkAction:!1,listSelectedTool:[],pagesSearch:null,searchInput:"",modalCopyTool:!1,selectPage:null,isBulkCopy:!1,selectTool:null,pagination:{pageSize:30,current:1},visibleTitle:!1,textSearch:"",visibleTitleFilter:!1,searchType:null,showModalCreateTool:!1,toolName:"",toolSelected:"facebook_json",key:"All",errorToolName:!1},this.onClickCopy=e=>{let{dispatch:t,auth:{accessToken:s},pages:{currentPageId:l}}=this.props;e&&t((0,r.HeH)(s,l,e))},this.onClickDelete=e=>{let{dispatch:t,auth:{accessToken:s},pages:{currentPageId:a},cards:{tools:o},t:n}=this.props;e?.id&&ep.A.open({type:"confirm",status:"delete",title:n("setting.delToolTitle"),content:(0,l.jsxs)("span",{className:"text-sm text-neutral-500",children:[n("setting.delTool")," ",(0,l.jsx)("span",{className:"text-sm text-neutral-500",children:e?.name||n("dashboard.blankGroupName")})," ?"]}),okText:n("notice.cf"),cancelText:n("sequence.cancel"),okType:"primary",centeredContent:!0,onOk(){if(-1!=o.findIndex(t=>t.id==e.id)){let l=o.filter(t=>t.id!=e.id),n=l?.length;t((0,r.LdB)(s,a,e.id)),t((0,r.JTX)({tools:l,lengthTools:n}))}},onCancel(){}})},this.renderContentPopoverBulkAction=()=>{let{t:e}=this.props;return(0,l.jsxs)(v.A,{children:[(0,l.jsx)(v.A.Item,{style:{display:"flex",alignItems:"center"},onClick:()=>this.setState({isBulkCopy:!0,modalCopyTool:!0}),children:(0,l.jsxs)(C.A,{style:{display:"flex",alignItems:"center"},children:[(0,l.jsx)(er.B,{size:20,style:{marginRight:8}}),(0,l.jsx)("p",{children:e("templates.copyFlow")})]})},"1"),(0,l.jsx)(v.A.Item,{style:{display:"flex",alignItems:"center"},onClick:this.bulkDeleteTools,children:(0,l.jsxs)(C.A,{style:{display:"flex",alignItems:"center"},children:[" ",(0,l.jsx)(K.H,{size:20,style:{color:"#F5222D",marginRight:8}}),(0,l.jsx)(ex,{style:{color:"#F5222D"},children:e("templates.delete")})]})},"2")]})},this.handleClickCopyTool=(e,t)=>{e.stopPropagation(),this.setState({modalCopyTool:!0,selectTool:t})},this.handleChangeCheckbox=(e,t)=>{if(e.target.checked){let e=this.state.listSelectedTool;e.push(t),this.setState({listSelectedTool:e})}else{let e=this.state.listSelectedTool;e=e.filter(e=>e!==t),this.setState({listSelectedTool:e})}},this.renderTools=e=>{let{t,pages:{roleInBot:s}}=this.props,a=(0,R.XXh)(s,"editor"),{listSelectedTool:o}=this.state;return(0,l.jsx)("div",{children:e.map((e,s)=>{let n=(0,R.WoR)(e.permission,e.status,e.owned_by_you);return(0,l.jsxs)(C.A,{onClick:()=>n?this.onSelectedTools(e):"",className:n?"wrap-page-log":"wrap-page-log disable",style:s%2==1?{cursor:"pointer",background:"#FAFAFA",borderColor:"#FAFAFA",borderRadius:0,border:"none",marginTop:0}:{cursor:"pointer",borderColor:"#FFFFFF",borderRadius:0,border:"none",marginTop:0},children:[(0,l.jsxs)(E.A,{span:15,style:{display:"flex",alignItems:"center"},children:[a&&(0,l.jsx)(k.A,{onClick:e=>e.stopPropagation(),onChange:t=>
1this.handleChangeCheckbox(t,e.id),checked:o.includes(e.id),style:{marginRight:10}}),(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",color:"rgba(0, 0, 0, 0.85)",fontWeight:500},children:[(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",height:24,marginRight:10},children:[8===e.type?(0,l.jsx)(W.QS,{style:{marginRight:14}}):(0,l.jsx)("img",{style:{marginRight:14},src:1==e.type?(0,R.QpR)("Frame.svg"):2==e.type?(0,R.QpR)("Frame-1.svg"):3==e.type?(0,R.QpR)("Qrcode.svg"):5==e.type?(0,R.QpR)("checkbox.svg"):(0,R.QpR)("Frame-2.svg")}),e.name]}),!e.is_published&&(0,l.jsx)(_.A,{style:{height:24},children:t("setting.draft")})]})]}),(0,l.jsx)(E.A,{span:6,children:(0,l.jsx)("div",{children:e.config.name})}),(0,l.jsx)(E.A,{span:3,children:(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"center"},children:[(0,l.jsx)(M.A,{title:t("usePage.copy"),children:(0,l.jsx)(T.Ay,{className:(0,R.WoR)(e.permission,e.status,e.owned_by_you)?"":"disable",disabled:!a,size:"small",icon:(0,l.jsx)(u.A,{}),style:{marginRight:3,color:"rgba(0, 0, 0, 0.65)",backgroundColor:"#2dce89",border:"none",height:24,width:24,paddingTop:3,borderRadius:"50%",background:"#F5F5F5"},onClick:t=>{t.stopPropagation(),(0,R.WoR)(e.permission,e.status,e.owned_by_you)&&this.onClickCopy(e.id)}})}),(0,l.jsx)(M.A,{title:t("templates.delete"),children:(0,l.jsx)(T.Ay,{className:(0,R.WoR)(e.permission,e.status,e.owned_by_you)?"":"disable",disabled:!a,size:"small",icon:(0,l.jsx)(g.A,{}),danger:!0,style:{marginLeft:3,height:24,width:24,border:"none",paddingTop:3,borderRadius:"50%",background:"#F5F5F5",color:"#EB5757"},onClick:t=>{t.stopPropagation(),(0,R.WoR)(e.permission,e.status,e.owned_by_you)&&this.onClickDelete(e)}})}),(0,l.jsx)(M.A,{title:t("copyToOtherPage"),children:(0,l.jsx)(T.Ay,{className:(0,R.WoR)(e.permission,e.status,e.owned_by_you)?"":"disable",disabled:!a,size:"small",icon:(0,l.jsx)(x.A,{}),style:{marginLeft:6,color:"rgba(0, 0, 0, 0.65)",backgroundColor:"#2dce89",border:"none",height:24,width:24,paddingTop:3,borderRadius:"50%",background:"#F5F5F5"},onClick:t=>this.handleClickCopyTool(t,e.id)})})]})})]},s)})})},this.handleCopyTools=function(e){let s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{dispatch:l,auth:{accessToken:a},pages:{currentPageId:o},t:n}=t.props,{listSelectedTool:i,selectTool:c,isBulkCopy:h}=t.state;if(e){let d=e.map(e=>e.id);l((0,r.BW4)(a,o,d,h?i:[c],s)).then(e=>{if(e.success)t.setState({modalCopyTool:!1}),(0,D.Nh)("success",n("notice.success"),n("notice.actionSuccess"));else if(e.error_code){let t=e.error_code;(0,D.Nh)("error",n("notice.error"),n(t))}else(0,D.Nh)("error",n("notice.error"),n("notice.unknown"))})}t.setState({isBulkCopy:!1})},this.debounceOnChangeInput=I()(e=>{this.onSearchTool(e)},400),this.handleTableChange=e=>{let{pageSize:t,current:s}=e;this.setState({pagination:e},()=>{this.onClickLoadMore()})},this.handleSelect=e=>{this.setState({key:e}),this.onSearchType(e)},this.createNewTools=()=>{let{pages:{currentPageId:e}}=this.props;this.setState({showModalCreateTool:!0})},this.onCreateTool=(e,t)=>{let{t:s,dispatch:l,pages:{currentPageId:a,currentPlatform:o},auth:{accessToken:n,locale:i,userId:c},cards:h}=this.props,{toolName:d,phone_number_id:p}=this.state;if(!d||""===d)return void this.setState({errorToolName:!0});switch(e){case"facebook_json":let m=(0,R.ppg)(1,h.lengthTools);d&&""!==d&&(m={...m,name:d}),l((0,r.I0r)(n,a,m,1));break;case"igo_json":let u=(0,R.ppg)(1,h.lengthTools,null,"instagram");d&&""!==d&&(u={...u,name:d}),l((0,r.I0r)(n,a,u,1));break;case"messenger_ref_url":let g=(0,R.CV9)(2,h.lengthTools);d&&""!==d&&(g={...g,name:d}),l((0,r.I0r)(n,a,g,2));break;case"qr_code":let x=(0,R.Pgt)(3,h.lengthTools);d&&""!==d&&(x={...x,name:d}),l((0,r.I0r)(n,a,x,3));break;case"customer_chat":let y=(0,R.RJo)(4,h.lengthTools,i);d&&""!==d&&(y={...y,name:d}),l((0,r.I0r)(n,a,y,4));break;case"checkbox_plugin":let f=(0,R.ZX3)(5,h.lengthTools);d&&""!==d&&(f={...f,name:d}),l((0,r.I0r)(n,a,f,5));break;case"send_to_messenger":let b=(0,R.WtW)(6,h.lengthTools);d&&""!==d&&(b={...b,name:d}),l((0,r.I0r)(n,a,b,6));break;case"message_us":let j=(0,R.WtW)(7,h.lengthTools);d&&""!==d&&(j={...j,name:d}),l((0,r.I0r)(n,a,j,7));break;case"lading_page":let A=(0,R.nyj)(8,h.lengthTools,void 0,c);d&&""!==d&&(A={...A,name:d}),l((0,r.I0r)(n,a,A,8))}this.setState({showModalCreateTool:!1,toolSelected:null,toolName:""})}}}ef=(0,c.Cg)([(0,P.Tl)()],ef);let eb=(0,p.connect)(function(e){return{cards:e.cards,pages:e.pages,auth:e.auth}})(ef);var ej=s(21343);class eA extends a.Component{static async getInitialProps(e){let{store:{dispatch:t,getState:s},query:{pageUrlId:l,integrationId:a},isServer:o,accessToken:n}=e;if(o)n&&l&&await t((0,r.YaE)(n,l));else{let{currentPageId:e}=s().pages;n&&e&&await t((0,r.YaE)(n,e))}return{integrationId:a,isServer:o}}render(){let{isServer:e,router:{pathname:t},pages:{currentPlatform:s}}=this.props;return(0,l.jsx)(i.A,{childrenSetting:this.getPushRouter(s),pathname:t})}constructor(...e){super(...e),this.getPushRouter=e=>{let{isServer:t}=this.props;switch(e){case"pke_chat_plugin":case"zalo":return(0,l.jsx)(ej.A,{isServer:t});default:return(0,l.jsx)(eb,{isServer:t})}}}}let ew=(0,n.U)(function(e){return{pages:e.pages,auth:e.auth}},null)((0,o.A)(eA))},83958:(e,t,s)=>{"use strict";s.d(t,{P:()=>m});var l=s(14232),a=s(32078);let o=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",o
1pacity:"0.2"}),l.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"}))]]);var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,s)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;let m=(0,l.forwardRef)((e,t)=>l.createElement(a.A,r(((e,t)=>{for(var s in t||(t={}))h.call(t,s)&&p(e,s,t[s]);if(c)for(var s of c(t))d.call(t,s)&&p(e,s,t[s]);return e})({ref:t},e),i({weights:o}))));m.displayName="Browser"},91886:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/chatbot/tools",function(){return s(78188)}])}},e=>{e.O(0,[2437,1765,3105,888,4705,9254,8722,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,1143,8279,2583,6147,7661,5487,384,9644,7886,325,6667,636,6593,8792],()=>e(e.s=91886)),_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.