PageSourceSearch

https://chatfuel.com/_next/static/chunks/1890-7dbc24aacc1164bf.js

js chatfuel.com collected 2026-09-24 08:26:41 UTC 11,995 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1890],{62241:function(e,t,a){"use strict";a.d(t,{w:function(){return BlogHeader}});var l=a(85893),n=a(67294),o=a(85813),r=a(69826),s=a(94184),i=a.n(s),c=a(45545),d=a(51175),m=a(27561),h=a(11163),g=a(18563),u=a.n(g),f=a(13446),p=a(6561);let BlogSpoiler=e=>{let{title:t,children:a}=e,[o,r]=(0,n.useState)(!1);return(0,l.jsxs)("div",{className:"-mx-2.5 cursor-pointer bg-[#121E36]",onClick:()=>r(e=>!e),children:[(0,l.jsxs)("div",{className:"flex cursor-pointer items-center justify-between px-5",children:[(0,l.jsx)("div",{className:"py-6",children:t}),(0,l.jsx)("div",{className:i()("flex items-center",{"rotate-180":o}),children:(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.12668 10.0371L11.5486 14.7604C11.748 15.0357 12.1118 15.0803 12.3611 14.8601C12.3945 14.8306 12.4247 14.7972 12.4514 14.7604L15.8733 10.0371C16.0727 9.76183 16.0323 9.36012 15.783 9.13988C15.6805 9.04933 15.5532 9 15.4219 9L8.57809 9C8.25882 9 8 9.2858 8 9.63835C8 9.7833 8.04467 9.92393 8.12668 10.0371Z"})})})]}),(0,l.jsx)("div",{className:"duration-400 overflow-hidden bg-cobalt-standard transition-[max-height]",style:{maxHeight:o?2e3:0},children:a})]})},menu=e=>[{label:e("common:blogHeader.news"),href:"/blog/category/news"},{key:e("common:blogHeader.platforms"),children:[{href:"/blog/tags/facebook",label:e("common:facebook")},{href:"/blog/tags/instagram",label:e("common:instagram")},{href:"/blog/tags/website",label:e("common:website")},{href:"/blog/tags/whatsapp",label:e("common:whatsapp")}]},{key:e("common:blogHeader.useCases"),children:[{href:"/blog/tags/customer-support",label:e("common:blogHeader.customerSupport")},{href:"/blog/tags/engagement",label:e("common:blogHeader.engagement")},{href:"/blog/tags/customer-stories",label:e("common:blogHeader.customerStories")},{href:"/blog/tags/re-engagement",label:e("common:blogHeader.reEngagement")}]},{key:e("common:blogHeader.industries"),children:[{href:"/blog/tags/e-commerce",label:e("common:blogHeader.eCommerce")},{href:"/blog/tags/healthcare",label:e("common:blogHeader.healthcare")},{href:"/blog/tags/marketing",label:e("common:blogHeader.marketing")},{href:"/blog/tags/edtech",label:e("common:blogHeader.edtech")},{href:"/blog/tags/entertainment",label:e("common:blogHeader.entertainment")},{href:"/blog/tags/agency",label:e("common:blogHeader.agency")}]},{label:e("common:chatfuelAi"),href:"/blog/category/chatfuel-ai"}],BlogHeader=e=>{let{transparent:t=!0,isTop:a,locale:s}=e,{t:g}=(0,m.$G)(),[x,b]=(0,n.useState)(!1),v=(0,n.useRef)(null);(0,c.r)(x?["overflow-hidden","lg:overflow-initial"]:[]);let[w,y]=(0,n.useState)(!1),{i18n:j}=(0,m.$G)(),{push:C}=(0,h.useRouter)(),k=(0,n.useRef)(null),N=t&&!x&&a?"":"bg-cobalt-standard",H=s&&s!==d.i18n.defaultLocale?"/".concat(s):"";return(0,l.jsxs)("header",{className:"fixed top-[var(--announcement-bar-height,0px)] z-10 flex h-16 w-full items-center bg-cobalt-standard text-white",children:[(0,l.jsxs)("nav",{className:"container flex flex-1 items-center",children:[(0,l.jsx)(o.p,{href:"".concat(H,"/blog"),"aria-current":"page",className:"hover:opacity-80",children:(0,l.jsx)("img",{src:"/assets/logo.svg",height:23,width:107,alt:"logo"})}),(0,l.jsxs)("div",{className:"ml-10 flex flex-1 items-center justify-end",children:[menu(g).map(e=>Array.isArray(e.children)?(0,l.jsxs)("button",{className:"group relative hidden h-16 rounded px-4 text-[15px] font-medium xl:inline-block",ref:v,children:[(0,l.jsx)("span",{className:"group-hover:opacity-60",children:e.key}),(0,l.jsx)("nav",{className:"fixed left-0 right-0 top-[calc(var(--announcement-bar-height,0px)+64px)] hidden w-screen flex-row justify-center bg-cobalt-standard hover:flex group-hover:flex",children:e.children.map(e=>(0,l.jsx)(r.Z,{href:e.href,type:"text",className:"flex h-auto items-center px-5 py-4 hover:bg-dark hover:opacity-100",children:(0,l.jsx)("span",{className:"text-left font-medium leading-normal",children:e.label})},e.label))})]},e.key):(0,l.jsx)(r.Z,{href:e.href,type:"text",className:"hidden h-auto items-center px-5 py-4 hover:bg-dark hover:opacity-100 xl:flex",children:(0,l.jsx)("span",{className:"text-left font-medium leading-normal",children:e.label})},e.label)),(0,l.jsx)(r.Z,{href:p.AU,type:"secondary","data-category":"landing-page-button-click","data-ga-label":"en-start-free-trial-click-main","data-bag-position":"header","data-action":"en-start-free-trial-click-main",color:"white",className:"rounded-2 mx-2.5 inline-block hidden font-medium text-cobalt-standard lg:inline-block",children:g("common:startFreeTrial")}),(0,l.jsxs)("button",{"aria-label":"menu","aria-controls":"w-nav-overlay-0","aria-haspopup":"menu","aria-expanded":"false",className:"ml-auto inline-block hover:opacity-80 lg:ml-5 xl:hidden",onClick:()=>{b(!x)},children:[x&&(0,l.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M8.28503 9.70422C7.89457 9.31363 7.89457 8.68036 8.28503 8.28977C8.67549 7.899
118 9.30855 7.89918 9.69901 8.28977L15.9946 14.5875L22.2902 8.28977C22.6807 7.89918 23.3138 7.89918 23.7042 8.28977C24.0947 8.68036 24.0947 9.31363 23.7042 9.70422L17.4086 16.002L23.6979 22.2934C24.0884 22.684 24.0884 23.3173 23.6979 23.7079C23.3075 24.0985 22.6744 24.0985 22.284 23.7079L15.9946 17.4164L9.70529 23.7079C9.31483 24.0985 8.68177 24.0985 8.29131 23.7079C7.90085 23.3173 7.90085 22.684 8.29131 22.2934L14.5806 16.002L8.28503 9.70422Z"})}),!x&&(0,l.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M10 28.3337H30V25.5559H10V28.3337ZM10 11.667V14.4448H30V11.667H10ZM10 21.3892H30V18.6114H10V21.3892Z"})})]}),(0,l.jsxs)("button",{className:"relative inline-block h-9 rounded pl-5 font-medium",style:{fontSize:"15px"},onClick:()=>y(!w),ref:k,children:[(0,l.jsx)("span",{className:"uppercase",children:j.language||s}),(0,l.jsx)("nav",{className:i()(u().dropdown,"absolute mt-7 rounded-sm bg-cobalt-standard",w?"block":"hidden"),style:{width:65,top:"100%",left:0},children:d.i18n.locales.map(e=>(0,l.jsx)(r.Z,{href:e===d.i18n.defaultLocale?"/blog":"/".concat(e,"/blog"),onClick:t=>{t.preventDefault(),j.language!==e&&(j.changeLanguage(e),e===d.i18n.defaultLocale?(C("/blog"),(0,f.A)(e)):C("/".concat(e,"/blog")))},className:"flex h-auto items-center px-5 py-4 hover:bg-dark hover:opacity-100",type:"text",children:(0,l.jsx)("span",{className:"text-left font-medium uppercase leading-normal",children:e})},e))})]})]})]}),(0,l.jsx)("nav",{role:"navigation",className:i()("fixed bottom-0 left-0 right-0 top-[calc(var(--announcement-bar-height,0px)+64px)] overflow-y-auto px-2.5 pb-12 xl:hidden",N),style:{opacity:x?1:0,pointerEvents:x?"auto":"none",transition:"opacity .3s ease"},children:(0,l.jsxs)("div",{className:"mx-auto flex h-full max-w-screen-xs flex-col",children:[menu(g).map(e=>Array.isArray(e.children)?(0,l.jsx)(BlogSpoiler,{title:e.key,children:e.children.map(e=>(0,l.jsx)(r.Z,{href:e.href,type:"text",className:"block h-auto py-3 font-medium",onClick:()=>b(!1),children:e.label},e.href))},e.key):(0,l.jsx)(r.Z,{href:e.href,type:"text",className:"block h-auto py-3 font-medium",onClick:()=>b(!1),children:e.label},e.href)),(0,l.jsx)(r.Z,{href:p.AU,type:"primary","data-category":"landing-page-button-click","data-ga-label":"en-start-free-trial-click-main","data-bag-position":"header","data-action":"en-start-free-trial-click-main",color:"blue",className:"rounded-2 m-3 flex h-14 items-center justify-center text-center font-medium",children:g("common:startFreeTrial")}),(0,l.jsx)(r.Z,{type:"outline","data-bag-position":"header",href:p.AU,className:"m-3 flex h-14 items-center justify-center font-medium",icon:(0,l.jsx)("span",{className:"h-[32px] w-[32px]",children:(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"#F3F8FD",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M11.9816 4C7.57254 4 3.99414 7.584 3.99414 12C3.99414 16.416 7.57254 20 11.9816 20C16.3907 20 19.9691 16.416 19.9691 12C19.9691 7.584 16.3907 4 11.9816 4ZM17.0617 15.864C15.9195 14.472 13.1478 14 11.9816 14C10.8155 14 8.0438 14.472 6.90159 15.864C6.08687 14.792 5.59164 13.456 5.59164 12C5.59164 8.472 8.45915 5.6 11.9816 5.6C15.5041 5.6 18.3716 8.472 18.3716 12C18.3716 13.456 17.8764 14.792 17.0617 15.864ZM11.9816 7.2C10.4321 7.2 9.18602 8.448 9.18602 10C9.18602 11.552 10.4321 12.8 11.9816 12.8C13.5312 12.8 14.7773 11.552 14.7773 10C14.7773 8.448 13.5312 7.2 11.9816 7.2Z"})})}),children:(0,l.jsx)("span",{children:g("common:signIn")})})]})})]})}},50956:function(e,t,a){"use strict";a.d(t,{L:function(){return getFormatImage}});let getFormatImage=(e,t)=>{let a=null,l=0,n=0;try{var o,r,s;let i=null!==(s=null!==(r=null!==(o=e["".concat(t,"_webp")])&&void 0!==o?o:e[t])&&void 0!==r?r:e.original_webp)&&void 0!==s?s:e.original;a=i.url,l=i.width,n=i.height}catch(e){}return{src:a,width:l,height:n}}},98123:function(e,t,a){"use strict";a.d(t,{t:function(){return Pagination}});var l=a(85893);a(67294);var n=a(69826),o=a(94184),r=a.n(o),s=a(11163);let i=(0,l.jsx)("svg",{height:12,width:12,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",stroke:"currentColor",children:(0,l.jsx)("path",{fill:"none",fillRule:"evenodd",d:"M4 2l4 4-4 4"})}),c=(0,l.jsx)("svg",{height:12,width:12,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",stroke:"currentColor",children:(0,l.jsx)("path",{fill:"none",fillRule:"evenodd",d:"M8 10L4 6l4
1-4"})}),Pagination=e=>{let{className:t,page:a,pageCount:o}=e,{asPath:d,query:m}=(0,s.useRouter)(),{pathname:h}=new URL("https://chatfuel.com".concat(d));if(1===o)return null;let g={...m};delete g.page,delete g.slug,delete g.locale;let u=Object.entries(g).map(e=>{let[t,a]=e;return"".concat(t,"=").concat(a)}).join("&"),f=u?"&".concat(u):"",p="".concat(h,"?page=").concat(a-1).concat(f),x="".concat(h,"?page=").concat(a+1).concat(f);return(0,l.jsxs)("div",{className:r()("flex flex-1 justify-center gap-8",t),children:[(0,l.jsx)(n.Z,{href:p,size:"m",type:"secondary",color:"blue",icon:c,className:"flex w-[140px] items-center justify-center gap-2 font-medium",disabled:a<=1,children:"Previous"}),a>=o?null:(0,l.jsx)(n.Z,{href:x,size:"m",type:"secondary",color:"blue",iconRight:!0,icon:i,className:"flex w-[140px] items-center justify-center gap-2 font-medium",children:"Next"})]})}},28187:function(e,t,a){"use strict";a.d(t,{G:function(){return PostPreview}});var l=a(85893);a(67294);var n=a(85813),o=a(94184),r=a.n(o),s=a(25675),i=a.n(s),c=a(34991),d=a(50956);let PostPreview=e=>{var t,a,o,s;let{post:m,className:h}=e;return(0,l.jsxs)(n.p,{href:(0,c.o)(m.slug,m.locale),className:r()("relative block overflow-hidden rounded-md bg-white shadow hover:shadow-xl",h),children:[(0,l.jsx)(i(),{priority:!0,src:null!==(s=(0,d.L)(null===(o=m.cover)||void 0===o?void 0:null===(a=o.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.formats,"sm").src)&&void 0!==s?s:"",alt:"".concat(m.title," preview"),placeholder:"empty",height:1123,width:2e3,className:"rounded-md",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw"}),(0,l.jsx)("div",{className:"px-6 pb-14 pt-2 font-body text-xl font-semibold md:pb-16 md:pt-5 lg:text-2xl",children:m.title})]})}},34991:function(e,t,a){"use strict";a.d(t,{o:function(){return postUrl}});var l=a(51175),n=a.n(l);let postUrl=(e,t)=>{let a=e.split("/").at(-1);return t!==n().i18n.defaultLocale?"/".concat(t,"/blog/").concat(a):"/blog/".concat(a)}},45545:function(e,t,a){"use strict";a.d(t,{r:function(){return useBodyClass}});var l=a(67294);let addBodyClass=e=>document.body.classList.add(e),removeBodyClass=e=>document.body.classList.remove(e),useBodyClass=e=>{(0,l.useEffect)(()=>(e instanceof Array?e.map(addBodyClass):addBodyClass(e),()=>{e instanceof Array?e.map(removeBodyClass):removeBodyClass(e)}),[e])}},18563:function(e){e.exports={dropdown:"BlogHeader_dropdown__GDNqt"}}}]);

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.