PageSourceSearch

https://www.thetakeoff.ai/_next/static/chunks/app/layout-36ca12476…?dpl=dpl_9yhK9FYnEJKW3eA61S4mqZq5qUbn

js thetakeoff.ai collected 2026-10-05 12:49:17 UTC 15,015 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{10394:(e,t,n)=>{"use strict";n.d(t,{AV:()=>d,Nc:()=>f,O5:()=>s,UE:()=>u});var r=n(67867),a=n(11470),i="takeoff:ancestor-page",o=["/request-demo","/demo"];function s(e){return o.some(function(t){return e===t||e.startsWith("".concat(t,"/"))})}function c(){try{var e=window.sessionStorage.getItem(i);if(!e)return null;var t=JSON.parse(e);if(!(null==t?void 0:t.page))return null;return{page:t.page,section:t.section||void 0}}catch(e){return null}}function l(e){try{window.sessionStorage.setItem(i,JSON.stringify(e))}catch(e){}}function u(e){!e||s(e.split("?")[0])||l({page:e})}function d(e){var t=c();t&&e&&l((0,a._)((0,r._)({},t),{section:e}))}function f(){return c()||function(){if("undefined"==typeof document||!document.referrer)return null;try{var e=new URL(document.referrer);if(e.origin===window.location.origin){if(s(e.pathname))return null;return{page:"".concat(e.pathname).concat(e.search)}}return{page:"".concat(e.origin).concat(e.pathname)}}catch(e){return null}}()}},13673:()=>{},21090:(e,t,n)=>{"use strict";n.d(t,{iB:()=>m,KL:()=>g,PU:()=>p,gO:()=>b,Tf:()=>y,Lr:()=>_,sx:()=>d});var r=n(26614),a=n(39487),i=[],o=null,s=0,c=[],l=null,u=0;function d(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"==typeof window.gtag){try{window.gtag("event",e,t)}catch(e){}return}c.length<100&&c.push({eventName:e,properties:t}),l||(u=Date.now(),l=setInterval(function(){((function(){var e=window.gtag;if("function"!=typeof e)return!1;var t=!0,n=!1,r=void 0;try{for(var a,i=c[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;try{e("event",o.eventName,o.properties)}catch(e){}}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}return c=[],!0})()||Date.now()-u>3e4)&&l&&(clearInterval(l),l=null)},250))}(e,n);try{null===r.Ay||void 0===r.Ay||null==(t=r.Ay.capture)||t.call(r.Ay,e,n)}catch(e){}!function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if("function"==typeof window.clarity){try{(e=window).clarity.apply(e,(0,a._)(n))}catch(e){}return}i.length<50&&i.push(n),o||(s=Date.now(),o=setInterval(function(){((function(){var e=window.clarity;if("function"!=typeof e)return!1;var t=!0,n=!1,r=void 0;try{for(var o,s=i[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var c=o.value;try{e.apply(void 0,(0,a._)(c))}catch(e){}}}catch(e){n=!0,r=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw r}}return i=[],!0})()||Date.now()-s>3e4)&&o&&(clearInterval(o),o=null)},250))}("event",e)}var f="cv_ph_form_identity",v=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/,h=function(){return!!r.Ay.__loaded};function p(){try{return"1"===localStorage.getItem(f)}catch(e){return!1}}function m(){try{localStorage.removeItem(f)}catch(e){}}function g(){if(!h())return"";try{return r.Ay.get_session_id()||""}catch(e){return""}}function y(e){return v.test(e)}function _(e){if(h())try{if(r.Ay._isIdentified()&&!p())return;r.Ay.setPersonProperties(e)}catch(e){}}function b(e){if(h()&&y(e))try{if(r.Ay._isIdentified())return;r.Ay.identify(e,{email:e}),localStorage.setItem(f,"1")}catch(e){}}},80510:(e,t,n)=>{"use strict";n.d(t,{default:()=>O});var r=n(95155),a=n(28686),i=n(85886),o=n(36489);function s(e){var t=e.children,n=e.session;return(0,r.jsx)(o.SessionProvider,{session:n,children:t})}var c=n(80542),l=n(12115),u=n(10924),d=(0,l.createContext)(void 0);function f(e){var t=e.children,n=(0,u.j)(),a=n.isOpen,i=n.onOpen,o=n.onClose,s=(0,c._)((0,l.useState)("/"),2),f=s[0],v=s[1],h=(0,c._)((0,l.useState)(!1),2),p=h[0],m=h[1];return(0,r.jsx)(d.Provider,{value:{isAuthModalOpen:a,openAuthModal:function(e,t){var n;e&&v(e),m(null!=(n=null==t?void 0:t.whatsappOnly)&&n),i()},closeAuthModal:o,callbackUrl:f,whatsappOnly:p},children:t})}var v=n(20063),h=n(26614),p=(0,l.createContext)(null);function m(){var e=(0,v.usePathname)(),t=(0,v.useSearchParams)(),n=(0,c._)((0,l.useState)(g),2),r=n[0],a=n[1];return(0,l.useEffect)(function(){if(!r){var e=window.setInterval(function(){g&&(a(!0),window.clearInterval(e))},100);return function(){return window.clearInterval(e)}}},[r]),(0,l.useEffect)(function(){if(r){var n=window.origin+e,a=(null==t?void 0:t.toString())?"".concat(n,"?").concat(t.toString()):n;h.Ay.capture("$pageview",{$current_url:a})}},[r,e,t]),null}var g=!1,y=function(){if(g)return!0;var e="phc_od5tckUboFCbFyzcJZxJCVQ9T2t4LZEEiyBrcR8xGzjd";return!(!e||["undefined","null"].includes(e.trim().toLowerCase()))&&
1(h.Ay.init(e,{api_host:"https://us.i.posthog.com",ui_host:"https://us.posthog.com",capture_pageview:!1,capture_pageleave:!0,person_profiles:"always",opt_out_capturing_by_default:!1,persistence:"localStorage+cookie",disable_session_recording:!1,session_recording:{recordCrossOriginIframes:!0,maskAllInputs:!1,blockSelector:"[data-ph-block]",minimumDurationMilliseconds:0,consoleLogRecordingEnabled:!1,recordHeaders:!0,recordBody:!1,recordCanvas:!0,inlineStylesheet:!0},autocapture:{dom_event_allowlist:["click","submit","change"],element_allowlist:["a","button","form","input","select","textarea"],css_selector_allowlist:["[data-ph-capture]"]},capture_scroll_depth:!0,capture_performance:!0,bootstrap:{featureFlags:{}},cross_subdomain_cookie:!0,secure_cookie:!0,property_denylist:["password","secret","credit_card","creditCard","ssn","cvv"],request_batching:!0,debug:!1,loaded:function(e){e.startSessionRecording()}}),g=!0,!0)};let _=function(e){var t=e.children;(0,l.useEffect)(function(){y()},[]);var n=(0,l.useCallback)(function(){g||y(),h.Ay.opt_in_capturing(),h.Ay.startSessionRecording(),h.Ay.capture("$pageview")},[]),a=(0,l.useCallback)(function(){g&&(h.Ay.stopSessionRecording(),h.Ay.opt_out_capturing())},[]),i=(0,l.useCallback)(function(){return!!g},[]),o=(0,l.useCallback)(function(e,t){g&&h.Ay.capture(e,t)},[]),s=(0,l.useCallback)(function(){g&&h.Ay.startSessionRecording()},[]),c=(0,l.useCallback)(function(){g&&h.Ay.stopSessionRecording()},[]);return(0,r.jsxs)(p.Provider,{value:{optIn:n,optOut:a,isOptedIn:i,captureEvent:o,startSessionRecording:s,stopSessionRecording:c},children:[(0,r.jsx)(l.Suspense,{fallback:null,children:(0,r.jsx)(m,{})}),t]})};var b=n(81494),w=n(71450),A=function(){var e=(0,o.useSession)(),t=e.data,n=e.status,r=e.update;(0,v.useRouter)();var a=function(){var e=(0,l.useContext)(d);if(void 0===e)throw Error("useAuthModal must be used within an AuthModalProvider");return e}(),i=a.isAuthModalOpen,s=a.openAuthModal,c=a.closeAuthModal,u=a.callbackUrl,f=a.whatsappOnly,h=(null==t?void 0:t.error)==="SessionExpired",p="authenticated"===n&&!!t&&!h,m=null==t?void 0:t.user,g=(0,l.useCallback)(function(){return(0,b._)(function(){var e,t;return(0,w.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),c(),t=e=window.location.pathname,e.startsWith("/analysis")?t="/":e.startsWith("/analysis")&&(t="/"),[4,(0,o.signOut)({redirect:!0,callbackUrl:t})];case 1:return n.sent(),[3,3];case 2:return console.error("Sign out error:",n.sent()),window.location.reload(),[3,3];case 3:return[2]}})})()},[c]);(0,l.useEffect)(function(){if((null==t?void 0:t.error)==="SessionExpired"){c();var e=window.location.pathname,n=e.startsWith("/analysis")?"/":e;(0,o.signOut)({redirect:!0,callbackUrl:n})}},[c,null==t?void 0:t.error]);var y=(0,l.useCallback)(function(e){p?null==e||e():s()},[p,s]),_=(0,l.useCallback)(function(){return(0,b._)(function(){return(0,w.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r()];case 1:return e.sent(),[3,3];case 2:return console.error("Failed to refresh session:",e.sent()),[3,3];case 3:return[2]}})})()},[r]),A=(0,l.useCallback)(function(e){if(!m)return!1;switch(e){case"admin":var t;return(null==(t=m.permission)?void 0:t.isAdmin)||!1;case"tester":return m.isTester||!1;case"paid":return m.isPaidUser||!1;case"folder_upload":return m.folderUploadAccess||!1;case"advanced_search":return m.advancedSearchAccess||!1;case"multi_doc":return m.multiDocAccess||!1;case"multilingual":return m.multilingualAccess||!1;case"prebid":return m.prebid_access||!1;case"help_center":return m.helpCenterAccess||!1;case"translate":return m.translateAccess||!1;case"compare":return m.compareAccess||!1;case"index":return m.indexAccess||!1;case"contradictions":return m.contradictionsAccess||!1;case"form_extraction":return m.formExtAccess||!1;case"amendment_upload":return m.amendmentUploadAccess||!1;case"all_checklist":return m.allChecklistAccess||!1;case"dashboard":return m.dashboardAccess||!1;case"rfp_shredding":return m.rfpShreddingAccess||!1;case"risks":return m.risksAccess||!1;
1case"tender_hunt":return m.tenderHuntAccess||!1;default:return!1}},[m]),k=(0,l.useCallback)(function(){return(console.log("\uD83C\uDFAF useAuth.getUserDisplayName called with user:",{hasUser:!!m,name:null==m?void 0:m.name,username:null==m?void 0:m.username,email:null==m?void 0:m.email,phone:null==m?void 0:m.phone}),m)?(m.phone&&!m.email,m.username&&m.username.trim()||m.name&&m.name.trim()||"User"):"User"},[m]),S=(0,l.useCallback)(function(){return m?(m.phone&&!m.email,(m.username&&m.username.trim()||m.name&&m.name.trim()||"User").split(" ")[0]):"User"},[m]),C=(0,l.useCallback)(function(){if(!m)return"U";var e=m.username&&m.username.trim()||m.name&&m.name.trim()||m.email||"User",t=e.split(" ");return t.length>=2?(t[0][0]+t[1][0]).toUpperCase():e[0].toUpperCase()},[m]);return{session:t,user:m,status:n,isAuthenticated:p,isLoading:"loading"===n,isUnauthenticated:"unauthenticated"===n||h,isAuthModalOpen:i,openAuthModal:s,closeAuthModal:c,callbackUrl:u,whatsappOnly:f,signOut:g,requireAuth:y,refreshSession:_,hasPermission:A,getUserDisplayName:k,getUserFirstName:S,getUserInitials:C}},k=n(21090),S=function(){return!!h.Ay.__loaded};let C=function(){var e=A(),t=e.user,n=e.isAuthenticated;return(0,l.useEffect)(function(){var e=function(){n&&(null==t?void 0:t.email)?((0,k.iB)(),h.Ay.identify(t.email,{email:t.email,name:t.name,role:t.role})):(0,k.PU)()||h.Ay.reset()};if(S())return void e();var r=window.setInterval(function(){S()&&(window.clearInterval(r),e())},100);return function(){return window.clearInterval(r)}},[n,null==t?void 0:t.email,null==t?void 0:t.name,null==t?void 0:t.role]),null};var E=n(8582);function x(e){return e.trim().toLowerCase().replace(/&/g," and ").replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")}function U(e){var t=e.getAttribute("aria-labelledby");return t?t.split(/\s+/).map(function(e){var t,n;return(null==(n=document.getElementById(e))||null==(t=n.textContent)?void 0:t.trim())||""}).filter(Boolean).join(" "):""}function I(){var e=(0,v.usePathname)();return(0,l.useEffect)(function(){if(!e.startsWith("/studio")){var t=function(e){var t,n=(0,E._)(e.target,Element)?e.target:null,r=null!=(t=null==n?void 0:n.closest("button, a[href], input[type='button'], input[type='submit'], input[type='reset'], [role='button']"))?t:null;if(r&&"true"!==r.getAttribute("aria-disabled")&&(!((0,E._)(r,HTMLButtonElement)||(0,E._)(r,HTMLInputElement))||!r.disabled)){var a,i=function(e){var t,n=e.dataset.analyticsName;if(n)return n;var r=(0,E._)(e,HTMLInputElement)?e:null;return(null==(t=[e.getAttribute("aria-label"),U(e),null==r?void 0:r.value,e.textContent,e.getAttribute("title"),e.getAttribute("href"),e.id,e.getAttribute("name"),"".concat(e.tagName.toLowerCase()," ").concat(e.getAttribute("type")||"")].find(function(e){return null==e?void 0:e.trim()}))?void 0:t.trim().slice(0,120))||"unnamed_control"}(r),o=function(e){var t,n=e.dataset.analyticsLocation||(null==(t=e.closest("[data-analytics-section]"))?void 0:t.dataset.analyticsSection);if(n)return n;var r=e.closest("nav");if(r)return r.getAttribute("aria-label")||U(r)||"navigation";var a=e.closest("section");if(a)return a.id||U(a)||a.getAttribute("aria-label")||"section";var i=e.closest("form");return i?i.dataset.analyticsSection||i.getAttribute("aria-label")||i.id||i.getAttribute("name")||"form":e.closest("footer")?"footer":e.closest("header")?"header":e.closest("main")?"main":"page"}(r),s=function(e){var t=e.getAttribute("href")||e.getAttribute("formaction");if(t)try{var n=new URL(t,window.location.href);if(n.origin===window.location.origin)return"".concat(n.pathname).concat(n.hash);return"".concat(n.origin).concat(n.pathname)}catch(e){return t.slice(0,200)}}(r),c=r.dataset.analyticsEvent||function(e,t){var n=["click",x(e),x(t)].filter(Boolean).join("_");if(n.length<=40)return n;var r=function(e){for(var t=0x811c9dc5,n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,0x1000193);return(t>>>0).toString(36).slice(0,5)}(n);return"".concat(n.slice(0,40-r.length-1),"_").concat(r)}(i,o);(0,k.sx)(c,{interaction_name:x(i).slice(0,100),interaction_label:i.slice(0,100),interaction_location:x(o).slice(0,100),interaction_type:(0,E._)(r,HTMLAnchorElement)?"link":(0,E._)(r,HTMLInputElement)?r.type||"input_button":(0,E._)(r,HTMLButtonElement)?r.type||"button":"role_button",destination_url:s,page_path:window.location.pathname,element_id:r.id||void 0,is_cta:"true"===r.dataset.analyticsCta||null!=(a=null==s?void 0:s.startsWith("/request-demo"))&&a,mouse_button:e.button})}};return document.addEventListener("click",t,!0),function(){return document.removeEventListener("click",t,!0)}}},[e]),null}var P=n(10394);function L(){var e=(0,v.usePathname)();return(0,l.useEffect)(function(){(0,P.UE)("".concat(e).concat(window.location.search))},[e]),(0,l.useEffect)(function(){var e=function(e){var t=function(e){var t=null==e?void 0:e.closest("a[href]");if(!t)return null;var n=t.getAttribute("href");if(!n)return null;
1try{var r=new URL(n,window.location.href);if(r.origin!==window.location.origin)return null;return(0,P.O5)(r.pathname)?t:null}catch(e){return null}}((0,E._)(e.target,Element)?e.target:null);if(t){var n=function(e){var t,n=e.dataset.analyticsLocation||(null==(t=e.closest("[data-analytics-section]"))?void 0:t.dataset.analyticsSection);if(n)return n;var r=e.closest("nav");if(r)return r.getAttribute("aria-label")||"navigation";var a=e.closest("section");if(a){var i=a.id||a.getAttribute("aria-label");if(i)return i}return e.closest("footer")?"footer":e.closest("header")?"header":void 0}(t);n&&(0,P.AV)(n)}};return document.addEventListener("click",e,!0),function(){return document.removeEventListener("click",e,!0)}},[]),null}function O(e){var t=e.children;return(0,r.jsx)(i.y,{children:(0,r.jsx)(a.M,{children:(0,r.jsx)(s,{children:(0,r.jsx)(f,{children:(0,r.jsxs)(_,{children:[(0,r.jsx)(C,{}),(0,r.jsx)(I,{}),(0,r.jsx)(L,{}),t]})})})})})}},91088:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,41402,23)),Promise.resolve().then(n.t.bind(n,65442,23)),Promise.resolve().then(n.t.bind(n,94337,23)),Promise.resolve().then(n.t.bind(n,9139,23)),Promise.resolve().then(n.t.bind(n,42892,23)),Promise.resolve().then(n.t.bind(n,73935,23)),Promise.resolve().then(n.t.bind(n,11018,23)),Promise.resolve().then(n.t.bind(n,13673,23)),Promise.resolve().then(n.t.bind(n,77994,23)),Promise.resolve().then(n.bind(n,80510))}},e=>{e.O(0,[3730,2978,2997,8229,2160,8441,9342,1255,7358],()=>e(e.s=91088)),_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.