PageSourceSearch

https://theorg.com/_next/static/chunks/pages/hubspot/iframe-e7d67acf8cdd11a0.js

js theorg.com collected 2026-10-01 08:25:53 UTC 6,070 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5096],{31664:(e,n,t)=>{"use strict";t.r(n),t.d(n,{__N_SSG:()=>q,default:()=>Y});var o=t(37876),i=t(14232),r=t(21626),a=t(89099),s=t(33374),c=t(47145),d=t(16973),l=t(85687),p=t(37850),g=t(91867),h=t(57861),f=t(94241),u=t(11606),x=t(95241),m=t(86688),y=t(66299),C=t(26372),b=t(70359),j=t(66412),w=t(60018),I=t(87210),A=t(4871),v=t(3041),k=t(32381),_=t(7347),S=t(73587),E=t(96303),N=t(21459);let H=(0,r.i7)(["from{opacity:0;}to{opacity:1;}"]),O=r.Ay.div.withConfig({componentId:"sc-f079fed2-0"})(["height:100%;min-height:100vh;display:flex;flex-direction:column;border:1px solid ",";border-radius:12px;background-color:",";animation:"," 0.3s ease-in-out;"],({theme:e})=>e.color("border")("primary"),({theme:e})=>e.color("background")("bgSecondary"),H),P=r.Ay.div.withConfig({componentId:"sc-f079fed2-1"})(["height:100%;min-height:100vh;width:100%;",";align-items:center;justify-content:center;"],s.ec),R=r.Ay.div.withConfig({componentId:"sc-f079fed2-2"})(["width:100%;"," justify-content:space-between;gap:16px;align-items:center;padding:32px;"],s.Wh),U=(0,r.Ay)(c.A).withConfig({componentId:"sc-f079fed2-3"})([""," gap:8px;color:",";&:hover{text-decoration:underline;}"],s.Wh,({theme:e})=>e.color("text")("primary")),V=r.Ay.h3.withConfig({componentId:"sc-f079fed2-4"})(["margin:0;padding:0;font-size:20px;font-weight:500;color:",";"],({theme:e})=>e.color("text")("primary")),z=r.Ay.div.withConfig({componentId:"sc-f079fed2-5"})(["padding:32px;"]),M=r.Ay.div.withConfig({componentId:"sc-f079fed2-6"})(["display:flex;flex:1;align-items:center;justify-content:center;"]),T=r.Ay.div.withConfig({componentId:"sc-f079fed2-7"})(["display:flex;flex-direction:column;gap:16px;align-items:center;"]),B=(0,r.Ay)(p.A).withConfig({componentId:"sc-f079fed2-8"})(["width:15px;height:15px;path{stroke:#000000;}"]),W=r.Ay.div.withConfig({componentId:"sc-f079fed2-9"})(["display:flex;flex-direction:column;gap:16px;padding:16px;max-width:200px;"]),$=r.Ay.p.withConfig({componentId:"sc-f079fed2-10"})(["margin:0;padding:0;font-weight:500;font-size:13px;line-height:150%;color:",";"],({theme:e})=>e.color("text")("primary"));var q=!0;let Y=()=>{let e=(0,a.useRouter)(),{notifySuccess:n,notifyError:t}=(0,A.V)(),{visionMe:r,loading:c,refetch:p}=(0,I.Z)(),[H,q]=(0,i.useState)(!1),[Y,{loading:D}]=(0,C.v)({update:(e,{data:n})=>{let t=n?.accountCRMConnectionDelete.integration;r?.me.account?.account&&t&&e.modify({id:e.identify(r.me.account?.account),fields:{integrationsV2:(e,{toReference:n})=>{let o=n(t);return o?e.filter(e=>e.__ref!==o.__ref):e}}})},onCompleted:()=>n("HubSpot successfully disconnected"),onError:()=>t("Failed to disconnect HubSpot")}),{query:{domain:G,portalId:X,userId:F,signature:K}}=e,L="string"==typeof F?F:"",Q=!G||!X||!K,{loading:Z,data:J,error:ee}=(0,E.GU)({errorPolicy:"all",variables:{extension:G,app:u.U8.HubspotCrm,signature:K,userId:L,workspaceId:X},skip:Q}),[en]=(0,v.V)({errorPolicy:"all",onCompleted(e){if(e.loginByCRMSignature){let{user:n,authToken:t}=e.loginByCRMSignature;(0,_.tb)({authToken:t,userId:n.id,impersonation:!1}),p()}}});(0,i.useEffect)(()=>{"string"!=typeof K||"string"!=typeof L||"string"!=typeof X||c||r||en({variables:{input:{app:u.U8.HubspotCrm,signature:K,userId:L,workspaceId:X}}})},[K,L,X,c,r]);let et=J?.companyByExtensionAndCRMSignature,{data:{nodes:eo=[]}={},loading:ei}=(0,N.yz)({variables:{companyId:et?.id||"",app:u.U8.HubspotCrm,signature:K,workspaceId:X,userId:L},skip:!et?.id}),er=Z||ei,ea=!!ee||Q,es=ee&&(0,k.A)(ee),ec=(0,i.useCallback)(e=>{et?.slug&&e.slug&&window.open(`https://theorg.com${(0,S.wL)(et.slug,e.slug)}`,"_blank")},[et]),ed=!er&&!et&&!ea,el=(0,w.V2)(r?.me.account?.account.integrationsV2||[]);return er?(0,o.jsx)(P,{children:(0,o.jsx)(h.A,{})}):(0,o.jsxs)(O,{children:[(0,o.jsxs)(R,{children:[et?(0,o.jsxs)(U,{title:`View ${et?.name} on The Org`,to:`https://theorg.com/org/${et?.slug}`,toBlank:!0,children:[(0,o.jsx)(f.A,{logo:et?.logoImage,companyName:et?.name,size:4}),(0,o.jsx)(V,{children:et?.name})]}):(0,o.jsx)("span",{}),!es&&(0,o.jsxs)(x.S,{open:H,onOpenChange:q,trigger:(0,o.jsx)(y.A,{startIcon:(0,o.jsx)(m.A,{}),variant:"defaultSoft",label:"Settings"}),children:[el&&(0,o.jsxs)(W,{children:[(0,o.jsx)($,{children:(0,w.gn)(el)?"Your HubSpot connection has expired.":"You are connected with an account."}),(0,w.gn)(el)&&(0,o.jsx)(y.A,{label:"Reconnect",variant:"primary",to:(0,w.Q6)(el)}),(0,o.jsx)(y.A,{label:"Disconnect",destructive:!0,onClick:()=>Y({variables:{input:{integrationId:el.id}}}),loading:D})]}),!el&&(0,o.jsxs)(W,{children:[(0,o.jsx)($,{children:"Connect your account to start adding contacts."}),(0,o.jsx)(y.A,{label:"Connect",to:(0,b.Ib)(),variant:"primary",target:"_blank"})]})]})]}),(0,o.jsx)(j.A,{integration:el}),et&&(0,o.jsx)(z,{children:(0,o.jsx)(l.A,{section:g.IY.OrgChart,chartKey:`${et.id}:orgChart`,editMode:!1,nodes:eo.filter(e=>"orgChart"===e.section),company:{...et,extensions:[]},me:null,onPositionCardClick:ec,blockUnAuthed:!1,targetIntegration:el&&{...el,userId:"string"==typeof L?L:void 0},crmParams:"string"==typeof K&&"string"==typeof X&&"string"==typeof L?{app:u.U8.HubspotCrm,signature:K,workspaceId:X,userId:L}:void 0})}),es&&(0,o.jsx)(M,{children:(0,o.jsxs)(T,{children:[(0,o.jsx)(s.o5,{fontWeight:500,children:es}),es.includes('Please click "Connect" to continue')&&(0,o.jsx)(y.A,{label:"Connect",variant:"primary",to:(0,b.Ib)(),target:"_blank"})]})}),ed&&(0,o.jsx)(M,{children:(0,o.jsxs)(T,{children:[(0,o.jsx)(B,{}
1),(0,o.jsx)(s.o5,{fontWeight:500,children:"No org chart found"}),(0,o.jsx)(s.o5,{fontSize:"14px",color:"#999999",children:"Search the 1,3 million org charts on The Org"}),(0,o.jsx)(d.A,{onSelect:n=>{let t={...e.query,domain:n.extension};e.push({query:t})},placeholder:"Search companies on The Org"})]})})]})}},34136:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/hubspot/iframe",function(){return t(31664)}])}},e=>{e.O(0,[8513,8230,5942,9327,9958,3744,2791,874,6736,5124,9848,2838,6238,1606,7652,44,3044,18,3301,8804,6493,6973,3299,636,6593,8792],()=>e(e.s=34136)),_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.