1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5423],{73044:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/klaviyo-connection-ready",function(){return n(28288)}])},28288:function(e,t,n){"use strict";n.r(t);var r=n(85893),o=n(67294),a=n(11163),i=n(78240),c=n(97334),u=n.n(c),s=n(16513),l=n(87066),p=n(48764).Buffer;let f=()=>{let e=(0,a.useRouter)(),t=e.query;return(0,o.useEffect)(()=>{let n;if(!e.isReady)return;let r=async()=>{let{token_value:r,...o}=t,a=null;if("string"==typeof r?a=decodeURIComponent(r):Array.isArray(r)&&r.length>0&&(a=decodeURIComponent(r[0])),a){let i=p.from(a,"base64").toString("utf-8");try{await l.Z.post("/api/setTokenValueCookie",{tokenValue:i},s.g)}catch(f){var c;console.error("Error setting token value:",(null===(c=f.response)||void 0===c?void 0:c.data)||f.message)}}n=setTimeout(()=>{let t=u().stringify(o);e.push("/set-up?".concat(t,"&klaviyo_connected=true"))},800)};return r(),()=>{n&&clearTimeout(n)}},[t,e.isReady]),(0,r.jsx)(i.Z,{title:"Adzviser | Klaviyo Connection Ready",content:"Your Klaviyo connection is now ready. Please proceed to the next step and save your workspace.",children:(0,r.jsx)("div",{className:"activePage mx-auto",children:(0,r.jsx)("h1",{style:{padding:20},children:"Connecting to your Klaviyo account. Hang on for a second!"})})})};t.default=f},97334:function(e){!function(){"use strict";var t,n={815:function(e){e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var i=/\+/g;e=e.split(n);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var s=0;s<u;++s){var l,p,f,d,y=e[s].replace(i,"%20"),v=y.indexOf(r);(v>=0?(l=y.substr(0,v),p=y.substr(v+1)):(l=y,p=""),f=decodeURIComponent(l),d=decodeURIComponent(p),Object.prototype.hasOwnProperty.call(a,f))?t(a[f])?a[f].push(d):a[f]=[a[f],d]:a[f]=d}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,i,c){return(a=a||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e)?r(o(e),function(o){var c=encodeURIComponent(t(o))+i;return n(e[o])?r(e[o],function(e){return c+encodeURIComponent(t(e))}).join(a):c+encodeURIComponent(t(e[o]))}).join(a):c?encodeURIComponent(t(c))+i+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}},i=!0;try{n[e](a,a.exports,o),i=!1}finally{i&&delete r[e]}return a.exports}o.ab="//";var a={};(t=a).decode=t.parse=o(815),t.encode=t.stringify=o(577),e.exports=a}()}},function(e){e.O(0,[4738,6660,7473,3662,4817,4321,2290,7423,3481,4610,5332,2427,8240,9774,2888,179],function(){return e(e.s=73044)}),_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.