PageSourceSearch

https://app.tyra.ai/_next/static/chunks/pages/settings/channels/add-channel/instagram-656c7f97dcfbf77d.js

js tyra.ai collected 2026-10-05 14:32:17 UTC 4,567 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ee6eb308-6622-4219-a38b-ced7fafcb32d",e._sentryDebugIdIdentifier="sentry-dbid-ee6eb308-6622-4219-a38b-ced7fafcb32d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9894],{72688:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/channels/add-channel/instagram",function(){return n(62389)}])},58612:function(e,s,n){"use strict";var t=n(85893),r=n(67294),a=n(11752),i=n.n(a),l=n(50319),c=n(61730),o=n(4455),d=n(27361),u=n.n(d),h=n(41664),f=n.n(h),m=n(11163),x=n(12847);let{publicRuntimeConfig:p}=i()();s.Z=e=>{let{onSuccess:s,test:n}=e,a=(0,m.useRouter)(),[i]=(0,l.D)(c.J),[d,h]=(0,r.useState)(!1),[g,b]=(0,r.useState)(null),[w,y]=(0,r.useState)(null),j=(0,r.useCallback)(e=>new Promise((s,n)=>{i({variables:{input:{description:"Instagram Business Account",gateway:"INSTAGRAM",gatewayIdentifier:e}},refetchQueries:[{query:o.p}]}).then(e=>{let{data:n}=e;s()}).catch(e=>{n(e.message)})}),[i]);return(0,r.useEffect)(()=>{{let e=u()(a,"query.code",null);e&&null===u()(a,"query.error",null)&&(h(!0),j(e).then(()=>{h(!1),s()}).catch(e=>{h(!1),y("Connection with Instagram failed. Make sure you have the right permissions and try again.")}))}},[s,a,j]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-8 space-y-2",children:(0,t.jsx)("h2",{className:"text-xl font-semibold text-neutral-900",children:"Get started with Instagram"})}),n&&(0,t.jsx)("pre",{children:JSON.stringify(g,1,1)}),d&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"mt-20 h-screen flex flex-col items-center space-y-6",children:[(0,t.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-neutral-300 border-t-neutral-900"}),(0,t.jsx)("p",{children:"Connecting to Instagram, please wait..."})]})}),!d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{children:"Instagram is one of the world's most popular social media platforms. To effectively manage your business's online presence, it's essential to connect to Instagram. To get started, your company needs a Meta Business Suite account, and as a user, you need administrator rights. ."}),(0,t.jsx)("p",{children:"To use Instagram for business purposes, you also need a profile. You can either convert an existing personal profile into a business profile or create a new business profile directly.."}),w&&(0,t.jsx)("div",{className:"mb-4 rounded-lg border border-red-300 bg-red-600 px-4 py-3 text-sm text-white",children:w}),(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(f(),{href:p.metaInstagramConnectUrl,passHref:!0,children:(0,t.jsx)(x.z,{disabled:!0,className:"bg-[#1877f2] hover:bg-[#166fe5] text-white font-bold h-10 px-6 rounded",children:"Continue with Instagram"})})})]})]})}},36823:function(e,s,n){"use strict";n.d(s,{a:function(){return a}});var t=n(67294),r=n(2716);let a=()=>{(0,t.useEffect)(()=>{r.w.push({event:"page_view"})},[])}},62389:function(e,s,n){"use strict";n.r(s);var t=n(85893);n(67294);var r=n(58612),a=n(53087),i=n(85169),l=n(11163);let c=()=>{let e=(0,l.useRouter)();return(0,t.jsx)(r.Z,{onSuccess:()=>
1{e.push("/settings/channels",{})}})};c.getLayout=e=>(0,t.jsx)(i.A,{children:(0,t.jsx)(a.default,{children:e})}),s.default=c},53087:function(e,s,n){"use strict";n.r(s);var t=n(85893);n(67294);var r=n(66308),a=n(36823),i=n(11163),l=n(41664),c=n.n(l);s.default=e=>{let{children:s}=e;return(0,i.useRouter)(),(0,a.a)(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.p,{title:"Channels"}),(0,t.jsx)("div",{className:"flex-1 py-6 px-0 -ml-4",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:[(0,t.jsxs)(c(),{href:"/settings/channels",className:"inline-flex items-center text-neutral-900 hover:underline",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5 mr-2",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Channels"})]}),(0,t.jsx)("div",{className:"flex flex-col gap-8",children:(0,t.jsx)("div",{className:"flex-1 py-20 px-0 -ml-4",children:(0,t.jsx)("div",{className:"max-w-3xl mx-auto px-4 sm:px-6",children:s})})})]})})]})}}},function(e){e.O(0,[6837,5169,2888,9774,179],function(){return e(e.s=72688)}),_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.