PageSourceSearch

https://www.thetakeoff.ai/_next/static/chunks/9240-8367950222d27ebd.js?dpl=dpl_9yhK9FYnEJKW3eA61S4mqZq5qUbn

js thetakeoff.ai collected 2026-10-05 12:49:24 UTC 10,092 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9240],{36962:(e,n,t)=>{t.d(n,{d:()=>u});var a=t(81494),r=t(80542),l=t(71450),o=t(12115),i=t(29270),s="takeoff:geo-timezone",c=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||""}catch(e){return""}};function u(e,n){var t,u,d,f=(u=(t=(0,r._)((0,o.useState)(""),2))[0],d=t[1],(0,o.useEffect)(function(){var e=!1,n=function(n){!e&&n&&d(n)},t="";try{t=sessionStorage.getItem(s)||""}catch(e){}return t?void n(t):((0,a._)(function(){var e,t,a;return(0,l.YH)(this,function(r){switch(r.label){case 0:e="",r.label=1;case 1:return r.trys.push([1,5,,6]),[4,fetch("/api/geo",{cache:"no-store"})];case 2:if(!(t=r.sent()).ok)return[3,4];return[4,t.json()];case 3:e=String((null==(a=r.sent())?void 0:a.timezone)||"").trim(),r.label=4;case 4:return[3,6];case 5:return r.sent(),[3,6];case 6:if(e||(e=c()),!e)return[2];try{sessionStorage.setItem(s,e)}catch(e){}return n(e),[2]}})})(),function(){e=!0})},[]),u),p=(0,r._)((0,o.useState)(n),2),m=p[0],x=p[1],v=(0,o.useRef)(!1);return(0,o.useEffect)(function(){if(!v.current&&f){var n=(0,i.cH)(e,f);n&&x(n)}},[f,e]),[m,(0,o.useCallback)(function(e){v.current=!0,x(e)},[])]}},54670:(e,n,t)=>{t.d(n,{Ay:()=>f,Vy:()=>u,xi:()=>d});var a=t(80542),r=t(95155),l=t(12115),o=t(29270),i="absolute left-0 z-40 overflow-y-auto rounded-[4px] border border-[#dededa] bg-white shadow-[0_12px_32px_-14px_rgba(10,10,10,0.28)] text-left",s=l.useLayoutEffect;function c(e,n){var t=(0,l.useRef)(null),r=(0,a._)((0,l.useState)({up:!1,maxHeight:n}),2),o=r[0],i=r[1];return s(function(){if(e){var a=function(){var e,a=null==(e=t.current)?void 0:e.getBoundingClientRect();if(a){var r=window.innerHeight-a.bottom-18,l=a.top-18,o=r<n&&l>r&&l>=168;i({up:o,maxHeight:Math.max(168,Math.min(n,o?l:r))})}};return a(),window.addEventListener("resize",a),window.addEventListener("scroll",a,!0),function(){window.removeEventListener("resize",a),window.removeEventListener("scroll",a,!0)}}},[e,n]),{anchorRef:t,panelClass:o.up?"bottom-[calc(100%+6px)]":"top-[calc(100%+6px)]",panelStyle:{maxHeight:o.maxHeight}}}function u(e){return e?e.split("-").map(function(e,n){return 0===n?e:e.padStart(2,"0")}).join("-"):""}function d(e){if(!e)return"";var n=(0,a._)(e.split("-").map(Number),3),t=n[0],r=n[1],l=n[2];return"".concat(o.oy[r-1].slice(0,3)," ").concat(l,", ").concat(t)}function f(e){var n=e.zones,t=e.slots,s=void 0===t?o._f:t,u=e.dateKey,f=e.onDateChange,m=e.slot,x=e.onSlotChange,v=e.zone,h=e.onZoneChange,b=e.triggerClassName,g=e.closedClassName,w=void 0===g?"":g,y=e.openClassName,N=void 0===y?"":y,j=e.valueClassName,k=void 0===j?"":j,C=e.placeholderClassName,S=void 0===C?"":C,E=e.labelClassName,_=e.dateLabel,z=void 0===_?"Date":_,L=e.requiredMark,D=void 0===L?null:L,A=e.className,M=(0,a._)((0,l.useState)(null),2),T=M[0],H=M[1],I="date"===T,R=(0,a._)((0,l.useState)(0),2),q=R[0],Z=R[1],B=(0,l.useMemo)(function(){var e;return null!=(e=(0,o.wj)(n,v))?e:""},[n,v]),K=(0,a._)((0,l.useState)(null),2),P=K[0],F=K[1];(0,l.useEffect)(function(){var e=function(){return F((0,o.Ds)(B))};e();var n=window.setInterval(e,3e4);return function(){return window.clearInterval(n)}},[B]),(0,l.useEffect)(function(){if(P&&u){if((0,o.nl)(u)<P.ordinal||!s.some(function(e){return!(0,o.Zq)(u,e,P)})){f(null),x(null);return}null!==m&&(0,o.Zq)(u,s[m],P)&&x(null)}},[P,u,m,s,f,x]);var O=(0,l.useRef)(null);(0,l.useEffect)(function(){if(T){var e=function(e){var n;(null==(n=O.current)?void 0:n.contains(e.target))||H(null)},n=function(e){"Escape"===e.key&&H(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),function(){document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)}}},[T]);var V=(0,l.useMemo)(function(){if(!P)return{cells:[],leadingBlanks:0,monthLabel:""};for(var e=(0,a._)(P.dateKey.split("-").map(Number),2),n=new Date(e[0],e[1]-1+q,1),t=n.getFullYear(),r=n.getMonth(),l=new Date(t,r+1,0).getDate(),i=[],c=1;c<=l;c++)!function(e){var n="".concat(t,"-").concat(r+1,"-").concat(e),a=1e4*t+(r+1)*100+e,l=new Date(t,r,e).getDay();i.push({day:e,key:n,disabled:a<P.ordinal||0===l||6===l||a===P.ordinal&&s.every(function(e){return(0,o.Zq)(n,e,P)})})}(c);return{cells:i,leadingBlanks:new Date(t,r,1).getDay(),monthLabel:"".concat(o.oy[r]," ").concat(t)}},[P,q,s]),W=V.cells,Y=V.leadingBlanks,J=V.monthLabel,U=c(I,380),X=function(e,n){return"flex w-full items-center justify-between gap-1.5 text-left transition-colors ".concat(b," ").concat(e?N:w," ").concat(n?k:S)};return(0,r.jsxs)("div",{ref:O,className:"grid grid-cols-2 gap-x-3 gap-y-4 sm:grid-cols-3 ".concat(void 0===A?"":A),children:[(0,r.jsxs)("div",{className:"col-span-2 min-w-0 sm:col-span-1",children:[(0,r.jsxs)("div",{className:E,
1children:[z," ",D]}),(0,r.jsxs)("div",{className:"relative",ref:U.anchorRef,children:[(0,r.jsxs)("button",{type:"button",onClick:function(){return H(function(e){return"date"===e?null:"date"})},"aria-expanded":I,"aria-haspopup":"dialog","aria-label":z,className:X(I,null!==u),children:[(0,r.jsx)("span",{className:"truncate",children:u?d(u):"Select a date"}),(0,r.jsx)("span",{"aria-hidden":!0,className:"text-[12px] opacity-70",children:I?"▴":"▾"})]}),I&&P&&(0,r.jsxs)("div",{role:"dialog","aria-label":"Choose a date",className:"".concat(i," ").concat(U.panelClass," w-[320px] max-w-full p-4 sm:max-w-none"),style:U.panelStyle,children:[(0,r.jsxs)("div",{className:"mb-3.5 flex items-center justify-between",children:[(0,r.jsx)("button",{type:"button",onClick:function(){return Z(function(e){return Math.max(0,e-1)})},disabled:q<=0,"aria-label":"Previous month",className:"h-7 w-7 rounded-[3px] border border-[#dededa] bg-white text-[15px] leading-none text-[#33332e] disabled:cursor-not-allowed disabled:opacity-35",children:"‹"}),(0,r.jsx)("span",{className:"font-avenir text-[14px] text-[#0a0a0a]",children:J}),(0,r.jsx)("button",{type:"button",onClick:function(){return Z(function(e){return Math.min(3,e+1)})},disabled:q>=3,"aria-label":"Next month",className:"h-7 w-7 rounded-[3px] border border-[#dededa] bg-white text-[15px] leading-none text-[#33332e] disabled:cursor-not-allowed disabled:opacity-35",children:"›"})]}),(0,r.jsx)("div",{className:"mb-1.5 grid grid-cols-7 gap-0.5",children:o.ub.map(function(e){return(0,r.jsx)("div",{className:"font-avenir py-1 text-center text-[9.5px] tracking-[0.06em] text-[#9a9a94]",children:e},e)})}),(0,r.jsxs)("div",{className:"grid grid-cols-7 gap-0.5",children:[Array.from({length:Y}).map(function(e,n){return(0,r.jsx)("span",{className:"py-2"},"blank-".concat(n))}),W.map(function(e){var n=u===e.key;return(0,r.jsx)("button",{type:"button",disabled:e.disabled,"aria-pressed":n,onClick:function(){f(e.key),H(null)},className:"font-avenir rounded-[3px] border py-2 text-[13px] leading-[1.2] transition-colors ".concat(e.disabled?"cursor-not-allowed border-transparent bg-transparent text-[#c4c4be]":n?"border-[#0a0a0a] bg-[#0a0a0a] text-[#f5f5f3]":"border-[#edede9] bg-white text-[#33332e] hover:border-[#9a9a94]"),children:e.day},e.key)})]}),(0,r.jsxs)("div",{className:"font-avenir mt-3.5 flex items-center gap-3.5 border-t border-[#edede9] pt-3 text-[11.5px] text-[#7a7a74]",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"h-[7px] w-[7px] rounded-full bg-[#0a0a0a]"}),"Selected"]}),(0,r.jsx)("span",{children:"Weekdays only"}),(0,r.jsx)("span",{children:"1 hr notice"})]})]})]})]}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsxs)("div",{className:E,children:["Time ",D]}),(0,r.jsx)(p,{label:"Time",placeholder:"Select a time",options:s.map(function(e,n){return{value:String(n),label:e,disabled:!!u&&!!P&&(0,o.Zq)(u,s[n],P)}}),value:null===m?null:String(m),open:"time"===T,onToggle:function(){return H(function(e){return"time"===e?null:"time"})},onPick:function(e){x(Number(e)),H(null)},triggerClass:X})]}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:E,children:"Time zone"}),(0,r.jsx)(p,{label:"Time zone",placeholder:"Select a zone",options:n,value:v,open:"tz"===T,onToggle:function(){return H(function(e){return"tz"===e?null:"tz"})},onPick:function(e){h(e),H(null)},triggerClass:X,scrollAfter:8})]})]})}function p(e){var n,t=e.label,a=e.placeholder,l=e.options,o=e.value,s=e.open,u=e.onToggle,d=e.onPick,f=e.triggerClass,p=e.scrollAfter,m=null!=(n=l.find(function(e){return e.value===o}))?n:null,x=33*l.length+8,v=c(s,void 0!==p&&l.length>p?33*p+8:x);return(0,r.jsxs)("div",{className:"relative",ref:v.anchorRef,children:[(0,r.jsxs)("button",{type:"button",onClick:u,"aria-expanded":s,"aria-haspopup":"listbox","aria-label":t,className:f(s,null!==m),children:[(0,r.jsx)("span",{className:"truncate",children:m?m.label:a}),(0,r.jsx)("span",{"aria-hidden":!0,className:"text-[12px] opacity-70",children:s?"▴":"▾"})]}),s&&(0,r.jsx)("div",{role:"listbox","aria-label":t,className:"".concat(i," ").concat(v.panelClass," w-full min-w-[168px] p-1"),style:v.panelStyle,children:l.map(function(e){var n=e.value===o;return(0,r.jsx)("button",{type:"button",role:"option","aria-selected":n,disabled:e.disabled,onClick:function(){return d(e.value)},className:"font-avenir block w-full truncate rounded-[3px] px-2.5 py-2 text-left text-[13px] transition-colors ".concat(e.disabled?"cursor-not-allowed text-[#c4c4be] line-through":n?"bg-[#0a0a0a] text-[#f5f5f3]":"text-[#33332e] hover:bg-[#f4f4f1]"),children:e.label},e.value)})})]})}},62650:(e,n,t)=>{t.d(n,{l:()=>i});var a=t(80542),r=t(95155),l=t(12115),o=t(27118),i=function(e){var n=e.onVerify,t=e.className,i=e.interactionOnly,s=void 0!==i&&i,c=e.onInteractive,u=e.theme,d=(0,a._)((0,l.useState)(!s),2),f=d[0],p=d[1];return(0,r.jsx)("div",{className:f?"w-full ".concat(void 0===t?"":t):"w-full",children:(0,r.jsx)(o.Xs,{siteKey:"0x4AAAAAADwkoaWJ8KxUjqjz",onSuccess:function(e){return n(e)},onError:function(){return n(null)},onExpire:function(){return n(null)},onBeforeInteractive:function(){p(!0),null==c||c()},options:{theme:void 0===u?"light":u,size:"flexible",appearance:s?"interaction-only":"always"}})})}}}]);

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.