PageSourceSearch

https://app.adcero.io/_next/static/chunks/47489.e66f7d86763c8618.js

js adcero.io collected 2026-10-02 02:02:17 UTC 2,249 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47489],{47489:(e,t,a)=>{a.r(t),a.d(t,{ChoosePlatformModal:()=>u,getChoosePlatformOptions:()=>g});var l=a(95155),r=a(12115),o=a(73155),n=a(35299),s=a(54679),c=a(97003),i=a(18953),b=a(81104),m=a(28694),h=a(67501);let d=[{platform:"meta",label:"Connect Facebook",icon:(0,l.jsx)(o.A,{className:"h-4 w-4 mr-2"}),buttonClass:"bg-blue-600 hover:bg-blue-700 text-white"},{platform:"tiktok",label:"Connect TikTok",icon:(0,l.jsx)(i.cw,{className:"h-4 w-4 mr-2"}),buttonClass:"bg-black hover:bg-gray-800 text-white"},{platform:"google",label:"Connect Google",icon:(0,l.jsx)(i.NR,{className:"h-4 w-4 mr-2"}),buttonClass:"bg-white dark:bg-card hover:bg-gray-100 text-gray-800 dark:text-foreground border border-gray-300 dark:border-border"},{platform:"twitter",label:"Connect X",icon:(0,l.jsx)(i.uv,{className:"h-4 w-4 mr-2"}),buttonClass:"bg-black hover:bg-gray-800 text-white dark:bg-white dark:hover:bg-gray-200 dark:text-black"},{platform:"linkedin",label:"Connect LinkedIn",icon:(0,l.jsx)(i.ky,{className:"h-4 w-4 mr-2"}),buttonClass:"bg-blue-700 hover:bg-blue-800 text-white"},{platform:"pinterest",label:"Connect Pinterest",icon:(0,l.jsx)(i.yY,{className:"h-4 w-4 mr-2"}),buttonClass:"bg-[#E60023] hover:bg-[#AD081B] text-white"}];function g(e){return d.filter(t=>"linkedin"===t.platform?(0,b.LW)(e):"twitter"===t.platform?(0,h.yE)(e):"pinterest"!==t.platform||(0,m.nh)(e))}function u(e){let{isOpen:t,onOpenChange:a,onConnectPlatform:o,isConnecting:i,organizationId:b,organizationName:m}=e,h=g({organizationId:b,organizationName:m}),[d,u]=(0,r.useState)(null),p=async e=>{u(e);try{await o(e)}finally{u(null)}};return(0,l.jsx)(s.lG,{open:t,onOpenChange:a,children:(0,l.jsxs)(s.Cf,{className:"sm:max-w-md",children:[(0,l.jsxs)(s.c7,{children:[(0,l.jsx)(s.L3,{children:"Connect a platform"}),(0,l.jsx)(s.rr,{children:"Choose an ad platform to connect to your organization."})]}),(0,l.jsx)("div",{className:"space-y-3 pt-2",children:h.map(e=>{let t=d===e.platform;return(0,l.jsxs)(c.$,{type:"button",onClick:()=>p(e.platform),disabled:i,className:"w-full ".concat(e.buttonClass),children:[t?(0,l.jsx)(n.A,{className:"h-4 w-4 mr-2 animate-spin"}):e.icon,e.label]},e.platform)})})]})})}}}]);

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.