PageSourceSearch

https://people-analytics-embedded-demo.vercel.app/_next/static/chu…?dpl=dpl_5JCoLW8GCA4cLPe19iQ54GkRuy5d

js people-analytics-embedded-demo.vercel.app collected 2026-10-03 07:28:53 UTC 6,748 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36308,60305,84469,8440,e=>{"use strict";var t=e.i(71645);let n=(e,t="neuronai",n=e?"dark":"light")=>({colors:((e,t,n=e?"dark":"light")=>{let a="forest"===n?"#10b981":e?"#a78bfa":"#8b5cf6";return"forest"===n?{background:"#ffffff","text-primary":"#0f172a","text-secondary":"#475569",brand:a,filter:"#10b981",summarize:"#34d399",border:"#e2e8f0",charts:["#10b981","#059669","#047857","#065f46","#34d399","#6ee7b7"]}:e?{background:"#1e293b","text-primary":"#ffffff","text-secondary":"#cccccc",brand:a,filter:"#7172AD",summarize:"#88BF4D",border:"#334155","text-tertiary":"#999999",charts:["#a78bfa","#8b5cf6","#7c3aed","#6d28d9","#c4b5fd","#ddd6fe"]}:{background:"#ffffff","text-primary":"#0f172a","text-secondary":"#475569",brand:a,filter:"#7172AD",summarize:"#88BF4D",border:"#e2e8f0",charts:["#8b5cf6","#7c3aed","#6d28d9","#5b21b6","#a78bfa","#c4b5fd"]}})(e,0,n)});function a(){let[e,a]=(0,t.useState)(0),[r,i]=(0,t.useState)(!1),[s,d]=(0,t.useState)(!1),[o,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>
1{l(window.highlightMetabase||!1)},[]),(0,t.useEffect)(()=>{let e=e=>{l(e.detail.highlight)};return window.addEventListener("highlightMetabaseChanged",e),()=>{window.removeEventListener("highlightMetabaseChanged",e)}},[]),(0,t.useEffect)(()=>{let e,t=()=>{if(d(!0),window.metabaseConfig&&window.defineMetabaseConfig){let e=window.currentTenant||"neuronai",t=window.themeMode||"light",a="dark"===t,r=window.getTheme?.(a,e,t)||n(a,e,t),i={...window.metabaseConfig,theme:r};window.defineMetabaseConfig?.(i)}a(e=>e+1),e=setTimeout(()=>d(!1),700)};return window.addEventListener("tenantChanged",t),()=>{window.removeEventListener("tenantChanged",t),e&&clearTimeout(e)}},[]),(0,t.useEffect)(()=>{let e,t=()=>{d(!0),a(e=>e+1),e=setTimeout(()=>d(!1),700)};return window.addEventListener("userChanged",t),()=>{window.removeEventListener("userChanged",t),e&&clearTimeout(e)}},[]),(0,t.useEffect)(()=>{let e,t=t=>{if(i(t.detail.isDark),d(!0),window.metabaseConfig){let r=window.currentTenant||"neuronai",i=t.detail.themeMode||(t.detail.isDark?"dark":"light"),s="dark"===i,o=window.getTheme?.(s,r,i)||n(s,r,i),l={...window.metabaseConfig,theme:o};window.defineMetabaseConfig&&window.defineMetabaseConfig(l),a(e=>e+1),e=setTimeout(()=>d(!1),700)}else e=setTimeout(()=>d(!1),1e3)};return window.addEventListener("darkModeChanged",t),()=>{window.removeEventListener("darkModeChanged",t),e&&clearTimeout(e)}},[]),{tenantKey:e,isDark:r,isLoading:s,highlightMetabase:o}}e.s(["useMetabaseEmbed",()=>a],36308);var r=e.i(43476);let i=t.forwardRef(function({title:e,titleId:n,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},a),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});function s(){return(0,r.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-white dark:bg-slate-950 transition-colors duration-200",children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,r.jsx)(i,{className:"size-8 animate-spin text-brand"}),(0,r.jsx)("p",{className:"text-sm text-gray-600 dark:text-slate-400",children:"Loading..."})]})})}e.s(["default",()=>s],60305),e.i(47167);let d=null,o=null,l=0,c=null,f=()=>{if(window.themeMode)return window.themeMode;let e=localStorage.getItem("themeMode");return e&&("light"===e||"dark"===e||"forest"===e)?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};async function u(){let e=window.currentTenant||"neuronai";window.currentUser||(window.currentUser=({neuronai:{id:"1"},retailco:{id:"1"},finedge:{id:"1"}})[e]||{id:"1"});let t=window.currentUser?.id||"1",n=e+":"+t;return d&&o===n&&Date.now()<l?d:c&&o===n?c:(o=n,c=(async()=>{try{let n=await fetch("/sso/metabase?tenant="+e+"&userId="+t,{credentials:"include"});if(!n.ok)throw Error(`Failed to fetch JWT token: ${n.status} ${n.statusText}`);let a=await n.json();if(!a||!a.jwt)throw Error("Invalid token response from server");return d=a,l=Date.now()+54e4,a}catch(e){if(d)return d;throw e}finally{c=null}})())}function w({metabaseUrl:e,children:a}){let i=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{if(i.current)return;i.current=!0;let t=window.currentTenant||"neuronai",a="dark"===f(),r=f();window.getTheme=(e,t,a)=>n(e,t,a);let s={instanceUrl:e,fetchRequestToken:u,theme:n(a,t,r)};window.metabaseConfig=s,window.defineMetabaseConfig=e=>{window.metabaseConfig={...window.metabaseConfig,...e}}},[e]),(0,r.jsx)(r.Fragment,{children:a})}e.s(["default",()=>w],84469);e.s(["getMetabaseUrl",0,()=>`${window.location.origin}/mb`],8440)},1836,e=>{"use strict";var t=e.i(43476),n=e.i(71645),a=e.i(36308),r=e.i(60305),i=e.i(84469);function s(){return(0,t.jsx)("div",{className:"flex items-center justify-center h-64",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 dark:text-slate-400",children:"Please set NEXT_PUBLIC_METABASE_INSTANCE_URL in your environment variables."})})}var d=e.i(8440);function o({children:e,className:o=""}){let l=(0,d.getMetabaseUrl)(),{tenantKey:c,isDark:f,isLoading:u,highlightMetabase:w}
1=(0,a.useMetabaseEmbed)(),[m,h]=(0,n.useState)(!1),[b,g]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(!l)return;let e=()=>{window.metabaseConfig?h(!0):setTimeout(e,100)};e()},[l,c,b]);let v=(0,n.useCallback)(()=>{h(!1),g(e=>e+1)},[]);return((0,n.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.shiftKey&&"R"===e.key&&(e.preventDefault(),v())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[v]),l)?(0,t.jsx)(i.default,{metabaseUrl:l,children:(0,t.jsx)("div",{className:"relative h-full w-full",children:(0,t.jsxs)("div",{className:`absolute inset-0 -m-4 sm:-m-6 w-[calc(100%+2rem)] sm:w-[calc(100%+3rem)] h-[calc(100%+2rem)] sm:h-[calc(100%+3rem)] min-h-full transition-all duration-200 ${w?"border-4 border-[#509EE3]":""} ${o}`,children:[(u||!m)&&(0,t.jsx)(r.default,{}),(0,t.jsx)("div",{className:`w-full h-full block ${u||!m?"opacity-0":"opacity-100 transition-opacity duration-200"}`,children:m&&e})]},`${c}-${f?"dark":"light"}-${b}`)})}):(0,t.jsx)(s,{})}e.s(["default",()=>o],1836)},66893,e=>{"use strict";var t=e.i(43476),n=e.i(1836);function a(){return(0,t.jsx)(n.default,{children:(0,t.jsx)("metabase-question",{"question-id":"new","is-save-enabled":"false",className:"w-full h-full"})})}e.s(["default",()=>a])}]);

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.