1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7877],{423:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/select-adroll-account",function(){return l(13471)}])},13471:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return A}});var n=l(85893),c=l(14157),o=l(64310),s=l(5152),a=l.n(s),r=l(11163),i=l(67294),u=l(28837),d=l(78633),h=l(9473),y=l(65459),f=l(85010),p=l(78240),_=l(91698),j=l(45332);let v=a()(()=>l.e(2918).then(l.t.bind(l,12918,23)),{loadableGenerated:{webpack:()=>[12918]}}),m=e=>{var t;let{tokenValue:l}=e,s=(0,c.t)(l,"AdRoll"),a=(0,h.I0)(),{adrollAccountsList:m}=(0,_.Aj)(),[A,x]=(0,i.useState)(!0),b=(0,r.useRouter)(),{redirected:k}=b.query,w=async()=>{x(!0);try{let e=l&&await a((0,f.kI)(l));(null==e?void 0:e.success)&&x(!1),(null==e?void 0:e.error)&&console.log("Error in loadAdRollAccountsList",e),x(!1)}catch(t){console.log("Error in loadAdRollAccountsList",t)}};(0,i.useEffect)(()=>{l&&k&&w()},[b.query]),(0,i.useEffect)(()=>{m&&Object.keys(m).length>=12&&fetch("/api/accounts/updateBulkConnect",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bulk_connect_enabled:!0,auto:!0})}).catch(()=>{})},[m]);let N=async(e,t)=>{b.push({pathname:j._j.setUp,query:{info:"".concat(e),name:null==t?void 0:t.name,type:"AdRoll"}})};return s?(0,n.jsx)(o.Z,{type:"Oval",style:{top:"50%",left:"50%"}}):"false"===k?(0,n.jsx)(v,{statusCode:400}):A?(0,n.jsx)(o.Z,{type:"Oval",style:{top:"50%",left:"50%"}}):(0,n.jsx)(p.Z,{title:"Adzviser | Select an AdRoll Account",content:"Pick an AdRoll account from the list below to connect your AdRoll data to ChatGPT with Adzviser.",children:(0,n.jsx)("div",{className:"card-outer",children:(0,n.jsxs)(u.Z,{style:{minWidth:"30%"},children:[(0,n.jsx)(u.Z.Header,{as:"h5",style:{display:"flex",justifyContent:"center",color:y.w.Primary},children:"Choose your AdRoll account"}),(0,n.jsx)(u.Z.Body,{className:"select-account",children:m&&(null===(t=Object.entries(m))||void 0===t?void 0:t.map(e=>{let[t,l]=e;return(0,n.jsx)("div",{className:"select-account",children:(0,n.jsx)("div",{className:"select-account__child",children:(0,n.jsxs)(n.Fragment,{children:[null==l?void 0:l.name,(0,n.jsx)(d.Mcl,{size:24,style:{cursor:"pointer"},onClick:()=>N(t,l)})]})},t)},t)}))})]})})})};var A=!0;t.default=m}},function(e){e.O(0,[4738,6660,7473,3662,4817,4321,2290,7423,3481,533,7509,4610,5332,2427,8240,6295,9774,2888,179],function(){return e(e.s=423)}),_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.