PageSourceSearch

https://configure8.io/_next/static/chunks/983-9be61c8e910b948b.js

js configure8.io collected 2026-10-07 08:17:06 UTC 10,666 bytes, 11 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new n.Error).stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="d9ad10d5-3b24-4575-8405-f546a7c960cd",n._sentryDebugIdIdentifier="sentry-dbid-d9ad10d5-3b24-4575-8405-f546a7c960cd")}catch(n){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[983],{31200:function(n,t,e){e.r(t),e.d(t,{InsightsProvider:function(){return p},useTrackEvent:function(){return h}});var r=e(27573),o=e(4489),i=e(7653),a=e(77879),u=e(50939),c=e(43989),s=e(8174);let l=null,f="__gitbook_session";function d(){l&&c.L(f,l)}var g=e(37195);let v=i.createContext(()=>{});function p(n){let{enabled:t,apiHost:e,visitorAuthToken:p,children:h,...y}=n,m=i.useRef(null),w=i.useRef({}),x=(0,a.$0)(()=>{let n=function(){if(l)return l;try{let n=c.r(f,null);if(n&&"object"==typeof n&&"lastActiveAt"in n&&"number"==typeof n.lastActiveAt&&"id"in n&&"string"==typeof n.id&&n.lastActiveAt+18e5>Date.now())return(l=n)&&(l.lastActiveAt=Date.now(),d()),l}catch(n){console.error("Error parsing session",n)}return l={id:(0,s.D)(),lastActiveAt:Date.now()},d(),l}(),r=m.current;if(!r)throw Error("Visitor ID should be set before flushing events");let o=[];for(let t in w.current){let e=w.current[t];if(e&&e.events.length){if(!e.pageContext){console.warn("No page context for flushing events of",t,e);continue}o.push(...function(n){var t,e,r,o;let i={sessionId:n.sessionId,visitorId:n.visitorId,userAgent:window.navigator.userAgent,language:window.navigator.language,cookies:u.go(),referrer:document.referrer||null,visitorAuthToken:null!==(t=n.visitorAuthToken)&&void 0!==t?t:null},a={url:n.url,siteSection:null!==(e=n.context.siteSectionId)&&void 0!==e?e:null,siteSpace:null!==(r=n.context.siteSpaceId)&&void 0!==r?r:null,space:n.context.spaceId,siteShareKey:null!==(o=n.context.siteShareKey)&&void 0!==o?o:null,page:n.pageContext.pageId,revision:n.pageContext.revisionId};return n.events.map(n=>({...n,session:i,location:a}))}({url:e.url,events:e.events,context:y,pageContext:e.pageContext,visitorId:r,sessionId:n.id,visitorAuthToken:p})),w.current[t]={...e,events:[]}}}o.length>0&&(t?(console.log("Sending events",o),function(n){let{apiHost:t,organizationId:e,siteId:r,events:o}=n,i=new URL(t);i.pathname="/v1/orgs/".concat(e,"/sites/").concat(r,"/insights/events"),fetch(i.toString(),{method:"POST",headers:{"Content-Type":"application/json"},keepalive:!0,body:JSON.stringify({events:o})}).catch(n=>{console.error("Error sending events",n)})}({apiHost:e,organizationId:y.organizationId,siteId:y.siteId,events:o})):console.log("Skipping sending events",o))}),b=(0,a.Sf)(async()=>{var n;let t=null!==(n=m.current)&&void 0!==n?n:await (0,g.getVisitorId)();m.current=t,x()},1500),I=(0,a.$0)((n,t,e)=>{var r,o,i;console.log("Logging event",n,t);let a=window.location.pathname,u=w.current[a];w.current[a]={pageContext:null!==(r=null==u?void 0:u.pageContext)&&void 0!==r?r:t,url:null!==(o=null==u?void 0:u.url)&&void 0!==o?o:window.location.href,events:[...null!==(i=null==u?void 0:u.events)&&void 0!==i?i:[],{...n,timestamp:new Date().toISOString()}],context:y},void 0!==w.current[a].pageContext&&((null==e?void 0:e.immediate)&&m.current?(b.cancel(),x()):b())});return i.useEffect(()=>((0,g.getVisitorId)().then(n=>{m.current=n,window.addEventListener("beforeunload",x)}),()=>{window.removeEventListener("beforeunload",x)}),[x]),(0,r.jsx)(v.Provider,{value:I,children:(0,r.jsx)(o.OpenAPIOperationContextProvider,{onOpenClient:n=>{I({type:"api_client_open",operation:n})},children:n.children})})}function h(){return i.useContext(v)}},26700:function(n,t,e){e.r(t),e.d(t,{TrackPageViewEvent:function(){return i}});var r=e(7653),o=e(31200);function i(n){let{pageId:t,revisionId:e}=n,i=(0,o.useTrackEvent)();return r.useEffect(()=>{i({type:"page_view"},{pageId:t,revisionId:e})},[t,e,i]),null}},92884:function(n,t,e){e.r(t),e.d(t,{isCookiesTrackingDisabled:function(){return a},setCookiesTracking:function(){return i}});var r=e(50939);let o="__gitbook_cookie_granted";function i(n){r.t8(o,n?"yes":"no",{expires:365,sameSite:"none",secure:!0})}function a(){let n=r.U2(o);return"yes"!==n&&("no"===n||void 0)}},22551:function(n,t,e){e.d(t,{Bi:function(){return o.isCookiesTrackingDisabled},GQ:function(){return o.setCookiesTracking},Ke:function(){return r.useTrackEvent}});var r=e(31200);e(37195);var o=e(92884);
10e(26700)},8174:function(n,t,e){e.d(t,{D:function(){return r}});function r(){return"undefined"!=typeof crypto&&crypto.randomUUID?"".concat(crypto.randomUUID(),"R"):"".concat(Math.random().toString(36).substring(2),"R")}},37195:function(n,t,e){e.r(t),e.d(t,{getVisitorId:function(){return s}});var r=e(50939),o=e(92884),i=e(8174),a=e(74859);let u=null,c=null;async function s(){return u||(c||(c=l().finally(()=>{c=null})),u=await c),u}async function l(){if((0,o.isCookiesTrackingDisabled)())return(0,i.D)();let n=r.U2("__session");if(n)return n;{var t;let n=(0,i.D)(),e=new URL(null!==(t=a.env.NEXT_PUBLIC_GITBOOK_APP_URL)&&void 0!==t?t:"https://app.gitbook.com");e.pathname="/__session",e.searchParams.set("proposed",n);try{let n=await fetch(e,{method:"GET",credentials:"include",cache:"no-cache",mode:"cors"}),{deviceId:t}=await n.json();return t}catch(t){return console.error("Failed to fetch visitor session ID",t),n}}}},75014:function(n,t,e){e.r(t),e.d(t,{Button:function(){return a}});var r=e(27573),o=e(33298),i=e(22833);function a(n){let{href:t,children:e,variant:a="primary",size:u="default",className:c,insights:s,...l}=n,f={default:["text-base","px-4","py-2"],medium:["text-sm","px-3","py-1.5"],small:["text-xs","px-3 py-2"]},d=f[u]||f.default,g=(0,o.t)("button","inline-block","rounded-md","straight-corners:rounded-none","place-self-start","ring-1","ring-tint","hover:ring-tint-hover","shadow-sm","shadow-tint","dark:shadow-tint-1","hover:shadow-md","active:shadow-none","contrast-more:ring-tint-12","contrast-more:hover:ring-2","contrast-more:hover:ring-tint-12","hover:scale-105","active:scale-100","transition-all","grow-0","shrink-0","truncate","primary"===a?["bg-primary-solid","text-contrast-primary-solid","hover:bg-primary-solid-hover","hover:text-contrast-primary-solid-hover","ring-0","contrast-more:ring-1"]:["bg-tint","text-tint","hover:bg-tint-hover","hover:text-primary","contrast-more:bg-tint-subtle"],d,c);return t?(0,r.jsx)(i.Link,{href:t,className:g,insights:s,...l,children:e}):(0,r.jsx)("button",{type:"button",className:g,...l,children:e})}},22833:function(n,t,e){e.r(t),e.d(t,{Link:function(){return u}});var r=e(27573),o=e(88146),i=e(7653),a=e(22551);let u=i.forwardRef(function(n,t){let{href:e,prefetch:i,children:u,insights:c,...s}=n,l=(0,a.Ke)(),f=URL.canParse?URL.canParse(n.href):n.href.startsWith("http"),d=n=>{var t;c&&l(c,void 0,{immediate:f}),null===(t=s.onClick)||void 0===t||t.call(s,n)};return f?(0,r.jsx)("a",{ref:t,...s,href:e,onClick:d,children:u}):(0,r.jsx)(o.default,{ref:t,href:e,prefetch:i,...s,onClick:d,children:u})})},63530:function(n,t,e){e.d(t,{Ff:function(){return o.F},Xg:function(){return i},ZK:function(){return a},t:function(){return o.t}});var r=e(7653),o=e(80807);let i=r.createContext(null);function a(){let n=r.useContext(i);if(!n)throw Error("The hook useLanguage should be wrapped in a <TranslateContext>");return n}},80807:function(n,t,e){e.d(t,{F:function(){return a},t:function(){return i}});var r=e(27573),o=e(7653);function i(n,t){for(var e=arguments.length,i=Array(e>2?e-2:0),a=2;a<e;a++)i[a-2]=arguments[a];let u=n[t];if(!u)throw Error('Translation not found for "'.concat(t,'"'));let c=[],s=u;return(i.forEach((n,t)=>{if("string"==typeof n)s=s.replace("${".concat(t+1,"}"),n);else{let[e,i]=s.split("${".concat(t+1,"}"));c.push((0,r.jsx)(o.Fragment,{children:e},"string-".concat(t))),c.push((0,r.jsx)(o.Fragment,{children:n},"arg-".concat(t))),s=i}}),c.length)?(0,r.jsxs)(r.Fragment,{children:[c,s]}):s}function a(n,t){for(var e=arguments.length,r=Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return function n(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return"".concat(t);if(null==t)return"";if(Array.isArray(t))return t.map(n).join("");if("object"==typeof t&&"props"in t)return t.props.children.map(n).join("");throw Error("Unsupported type ".concat(typeof t))}(i(n,t,...r))}},50939:function(n,t,e){e.d(t,{U2:function(){return a},go:function(){return i},t8:function(){return u}});var r=e(26066),o=e(75832);function i(){try{return r.Z.get()}catch(n){if((0,o.Y)(n))return{};throw n}}function a(n){try{return r.Z.get(n)}catch(n){if((0,o.Y)(n))return;throw n}}let u=r.Z.set},43989:function(n,t,e){e.d(t,{L:function(){return i},r:function(){return o}});var r=e(75832);function o(n,t){try{if("undefined"!=typeof localStorage&&localStorage&&"getItem"in localStorage){let e=localStorage.getItem(n);return e?JSON.parse(e):t}return t}catch(n){if((0,r.Y)(n))return t;throw n}}function i(n,t){try{"undefined"!=typeof localStorage&&localStorage&&"setItem"in localStorage&&localStorage.setItem(n,JSON.stringify(t))}catch(n){if((0,r.Y)(n))return;throw n}}},75832:function(n,t,e){e.d(t,{Y:function(){return r}});function r(n){return n instanceof Error&&("SecurityError"===n.name||"NS_ERROR_FAILURE"===n.name||"NS_ERROR_ABORT"===n.name)}},33298:function(n,t,e){e.d(t,{t:function(){return o}});var r=e(25579);function o(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return(0,r.m6)(...t)}},4489:function(n,t,e){e.r(t),e.d(t,{OpenAPIOperationContextProvider:function(){return u},useOpenAPIOperationContext:function(){return c}});var r=e(27573),o=e(7653),i=e(77879),a=(0,o.createContext)({onOpenClient:function(){}});function u(n){var t=n.children,e=(0,i.$0)(function(t){var e;null===(e=n.onOpenClient)||void 0===e||e.call(n,t)}),u=(0,o.useMemo)(function(){return{onOpenClient:e}},[e]);return(0,r.jsx)(a.Provider,{value:u,children:t})}function c(){return(0,o.useContext)(a)}}}]);
11}

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.