PageSourceSearch

https://www.builder.io/assets/root-YC3CQ6zP.js

js builder.io collected 2026-10-01 07:19:46 UTC 10,223 bytes, 47 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/track-ZcvbLRDO.js","assets/throttle-Bg0sPY_y.js","assets/components-B1hUkot5.js","assets/init-referrer-cookie-D_NPDmuo.js","assets/builder-k01mS64G.js","assets/render-link-DxxMUUGr.js","assets/lib-Cy8yQirQ.js","assets/errorBoundaries-COo4jcDz.js","assets/urls-DUhiVhis.js","assets/builder-react.es5-CVERqqYy.js","assets/index-CYBGsPeg.js","assets/preload-helper-BXl3LOEh.js"])))=>i.map(i=>d[i]);
2import{_ as S}from"./preload-helper-BXl3LOEh.js";import{r as d,b as w,v as E,w as L,W as R,j as f,a as o,O as k,X as _,Y as T}from"./components-B1hUkot5.js";import{M as j,L as x,S as I}from"./errorBoundaries-COo4jcDz.js";import{S as M}from"./lib-Cy8yQirQ.js";import{d as u,a as h}from"./seo-tags-CgmcoHBd.js";import{L as F}from"./LaunchDarklyContext-c9dz_FeU.js";import{i as B}from"./urls-DUhiVhis.js";import{s as C}from"./site-nav-BAlskVRS.js";import{E as P}from"./error-page-B0Navael.js";import"./init-referrer-cookie-D_NPDmuo.js";import"./builder-components-BBzZx2FS.js";import"./index-CYBGsPeg.js";import"./button-Cn22ZYBk.js";import"./IconArrowUpRight-CxTrvIot.js";import"./createReactComponent-zHLSXVVo.js";import"./builder-brand-token-styles-A69Pi-kk.js";import"./builder-image-CAzLzliM.js";import"./brand-logo-svg-DcznpWq3.js";import"./IconCheck-4AwM8nq6.js";import"./IconX-D31ci0wh.js";import"./copy-to-clipboard-D8SewVzt.js";import"./IconCopy-BJ5j0n4L.js";import"./proxy-D3lfW-2b.js";import"./IconVectorBezier-Co-E4hBm.js";import"./site-footer-BXmm4ubk.js";import"./input-DywawW5X.js";import"./IconRss-CfPJJc1h.js";import"./IconChevronRight-BEzRE4Km.js";import"./ErrorHero-MPaAfHbq.js";import"./page-grid-BKFaskEN.js";import"./eyebrow-Bo66AmQ-.js";import"./builder-react.es5-CVERqqYy.js";function y(e){return["builder.io","www.builder.io"].includes(e.hostname)}function g(e){try{return new URL(e,"https://www.builder.io")}catch{return null}}function b(e){return y(e)&&B(e.pathname)}async function A(){const e=new URL("https://cdn.builder.io/api/v3/content/url-redirects");e.searchParams.set("apiKey","YJIGb4i01jvw0SRdL5Bt"),e.searchParams.set("limit","100"),e.searchParams.set("fields","data.sourceUrl,data.destinationUrl");const t=[];let a=0;const s=100;let n={results:[]};do e.searchParams.set("offset",a.toString()),n=await(await fetch(e.toString())).json(),t.push(...n.results),a+=s;while(n.results.length>0&&n.results.length===s);const i=new Map(t.map(r=>[g(r.data.sourceUrl),g(r.data.destinationUrl)]).filter(([r,l])=>r&&l&&y(r)).map(([r,l])=>[r.pathname,l]));for(const[r,l]of i){let c=l;const m=new Set([r]);for(;i.has(c.pathname)&&!m.has(c.pathname);)m.add(c.pathname),c=i.get(c.pathname);i.set(r,c)}return i}function G(e){const t=d.useRef(void 0),a=w(),s=E();d.useEffect(()=>{if(!t.current){A().then(i=>{t.current=i;const r=t.current?.get(a.pathname);r&&(b(r)?(e&&r.pathname!==a.pathname&&(e.current=r.pathname),s(r.pathname+r.search+r.hash,{replace:!0})):window.location.href=r.href)});return}const n=t.current.get(a.pathname);n&&(b(n)?(e&&n.pathname!==a.pathname&&(e.current=n.pathname),s(n.pathname+n.search+n.hash,{replace:!0})):window.location.href=n.href)},[a.pathname,s])}function U(){const e=()=>{const t=Array.from(document.querySelectorAll("iframe"));document.fullscreenElement?t.forEach(a=>a.style.setProperty("filter","none","important")):t.forEach(a=>a.style.removeProperty("filter"))};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}}const W="/assets/global-CdXzWIXt.css",Le=()=>[{rel:"stylesheet",href:W},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Geist:[email protected]&family=Geist+Mono:[email protected]&display=swap"},{rel:"alternate",type:"application/rss+xml",title:"RSS Feed for the Builder.io blog",href:"https://www.builder.io/blog/feed/xml"},{rel:"alternate",type:"application/rss+json",title:"RSS Feed for the Builder.io blog",href:"https://www.builder.io/blog/feed/json"},{rel:"alternate",type:"application/atom+xml",title:"RSS Feed for the Builder.io blog",href:"https://www.builder.io/blog/feed/atom"},{rel:"icon",type:"image/svg+xml",href:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F51a002f4a17f4fc4a829b8891a1c25ee"},{rel:"icon",type:"image/png",sizes:"192x192",href:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F9a4849a1afdf4f439ed82ff05941eae6"},{rel:"icon",type:"image/png",sizes:"512x512",href:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Ffd572a39ff674ec88c50c33f33d9ca02"},{rel:"icon",type:"image/x-icon",href:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F0fc9ccf7b0204544b572152c085bdef7"},{rel:"apple-touch-icon",sizes:"512x512",href:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Ffd572a39ff674ec88c50c33f33d9ca02"},{rel:"manifest",href:"/site.webmanifest"},{rel:"chrome-webstore-item",href:"https://chrome.google.com/webstore/detail/cfldfgibklhmjhnkfighkbafbkbfcmij"}],Re=()=>[{title:u},{name:"description",content:h},{property:"og:type",content:"website"},{property:"og:locale",content:"en_US"},{property:"og:site_name",content:"Builder.io"},{property:"og:title",content:u},{property:"og:description",content:h},{property:"og:image",content:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fb67b5775f3404974afd11dfc54ad61db?width=1200"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@builderio"},{name:"twitter:creator",content:"@builderio"},{property:"fb:app_id",content:"676395883130092"}];function D(e){return e==="/blog"||e.startsWith("/blog/")||e.startsWith("/c/")}const H=`
3(function () {
4  var ua = navigator ? navigator.userAgent.toLowerCase() : '';
5  var isMobile = ua.includes('android') || ua.includes('iphone');
6  if (location.pathname === '/blog' || location.pathname.startsWith('/blog/') || location.pathname.startsWith('/c/')) {
7    if (!isMobile) {
8      var setDarkModeClass = function () {
9        document.documentElement.classList.add('dark-mode');
10      };
11      if (document.cookie.includes('builder.darkMode=true')) {
12        setDarkModeClass();
13      } else if (!document.cookie.includes('builder.darkMode=')) {
14        if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
15          setDarkModeClass();
16        }
17      }
18    }
19  }
20  if (location.pathname === '/brand' || location.pathname.startsWith('/brand/')) {
21    var existing = document.getElementById('brand-pre-hydration');
22    if (!existing) {
23      var style = document.createElement('style');
24      style.id = 'brand-pre-hydration';
25      style.textContent = 'html,body{background:#0A0A0A !important;}';
26      document.head.appendChild(style);
27    }
28  }
29})();
30`,Y=`
vendor: 395 bytes, lines 30-40
30
31(function (w, d, s, l, i) {
32  w[l] = w[l] || [];
33  w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
34  var f = d.getElementsByTagName(s)[0],
35    j = d.createElement(s),
36    dl = l != 'dataLayer' ? '&l=' + l : '';
37  j.async = true;
38  j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
39  f.parentNode.insertBefore(j, f);
40})(window, document, 'script', 'dataLayer', '
40GTM-N3WSTXZ
vendor: 4 bytes, line 40
40');
41`,O=`
42if (location.host === 'app.builder.io') {
43  location.href = location.href.replace('//app.builder.io', '//www.builder.io');
44} else if (location.host === 'builder.io') {
45  location.href = location.href.replace('//builder.io', '//www.builder.io');
46}
47`;function ke({children:e}){return f("html",{lang:"en",suppressHydrationWarning:!0,children:[f("head",{children:[o("meta",{charSet:"UTF-8"}),o("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),o("meta",{name:"theme-color",content:"#f8f8f8"}),o("meta",{name:"mobile-web-app-capable",content:"yes"}),o("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),o("meta",{httpEquiv:"X-UA-Compatible",content:"ie=edge"}),o("script",{dangerouslySetInnerHTML:{__html:O}}),o(j,{}),o(x,{})]}),f("body",{children:[o("script",{dangerouslySetInnerHTML:{__html:H}}),o("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N3WSTXZ" height="0" width="0" style="display:none;visibility:hidden"></iframe>'}}),e,o(M,{}),o(I,{}),o("script",{src:"https://cdn.cookielaw.org/consent/c1ac8074-fbe7-4bc7-b3ac-8daf0e65345f/OtAutoBlock.js"}),o("script",{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",charSet:"UTF-8","data-domain-script":"c1ac8074-fbe7-4bc7-b3ac-8daf0e65345f"}),o("script",{dangerouslySetInnerHTML:{__html:"function OptanonWrapper() {}"}}),o("script",{dangerouslySetInnerHTML:{__html:Y}}),o("script",{src:"//cdn.jsdelivr.net/npm/@builder.io/persist-attribution@latest/dist/persist-attribution.min.js",async:!0,defer:!0})]})]})}const _e=L(function(){const t=w(),a=d.useRef(!0),s=d.useRef(null);return G(s),d.useEffect(()=>{if(a.current)a.current=!1;else if(s.current===t.pathname)s.current=null;else{const n=window.location.origin+t.pathname+t.search+t.hash;S(async()=>{const{track:i}=await import("./track-ZcvbLRDO.js");return{track:i}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(({track:i})=>i("pageView",{url:n})).catch(i=>{console.error("Failed to track pageview",i)})}D(t.pathname)||document.documentElement.classList.remove("dark-mode")},[t.pathname]),d.useEffect(()=>U(),[]),d.useEffect(()=>{const n=()=>
47{if(window.location.hash){const i=window.location.hash.slice(1);if(i.startsWith("text:")){const[,r,l]=i.split("text:");if(r){const c=parseFloat(l)||0,m=p=>p.replace(/\s+/g,"-").toLowerCase().replace(/[^a-z-]/g,"");let v=0;for(const p of Array.from(document.querySelectorAll("*")))if(p instanceof HTMLElement){if(++v<c)continue;if(m(p.innerText)===r){p.scrollIntoView({behavior:C()});break}}}}}};return window.addEventListener("builder:component:load",n),()=>window.removeEventListener("builder:component:load",n)},[]),o(F,{children:o(k,{})})}),Te=R(function(){const t=_();let a="Sorry, something went wrong.",s=500;return T(t)?(s=t.status,a=t.statusText||a):t instanceof Error&&(a=t.message),o(P,{status:s,message:a})});export{Te as ErrorBoundary,ke as Layout,_e as default,Le as links,Re as meta};

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.