PageSourceSearch

https://tempo.fit/_next/static/chunks/app/(header-footer)/layout-6b722d8c792cf8b5.js

js tempo.fit collected 2026-10-02 04:25:37 UTC 16,617 bytes, 132 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4f3931e3-ee77-4232-8bdb-f758e9777107",e._sentryDebugIdIdentifier="sentry-dbid-4f3931e3-ee77-4232-8bdb-f758e9777107")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7796],{18074:(e,t,r)=>{"use strict";r.d(t,{default:()=>k});var a=r(40120),n=r(38644),s=r(46662),i=r(26963),o=r(42077);let l={limit:5,keyName:"navHistory"},d=e=>{try{return JSON.parse(e)}catch(e){return}},c=()=>{let e=window&&window?.sessionStorage,{keyName:t}=l,r=e?e.getItem(t):void 0,a=document&&document?.referrer;return!e||r&&Array.isArray(d(r))||e.setItem(t,JSON.stringify(a?[a]:[])),e||!1},u=()=>{let e=c(),{keyName:t}=l;if(e){let r=e.getItem(t);if(r)return d(r)}};var m=r(52443);let w=(0,m.I)(m.F.local),h=()=>{let e=window;try{if(e){let e="UA-152616747-1";if(window.gaData&&window.gaData[e]?.experiments){let t=Object.keys(window.gaData[e].experiments),r=w?.getItem("trackedExperiments");if(r)try{let a=Object.keys(r),n={};t.forEach(t=>{a.includes(t)||(s.track("Experiment Viewed",{experimentId:t,variantIndex:window.gaData[e].experiments[t]}),n[t]=window.gaData[e].experiments[t])}),w?.setItem("trackedExperiments",{...r,...n})}catch(e){window&&window?.captureException(e,{tags:{area:"analytics",scriptName:"trackNewExperiments"}})}else t.forEach(t=>{s.track("Experiment Viewed",{experimentId:t,variantIndex:window.gaData[e].experiments[t]})}),w?.setItem("trackedExperiments",window.gaData[e].experiments)}}}catch(e){window&&window?.captureException(e,{tags:{area:"analytics",scriptName:"trackNewExperiments"}})}};var p=r(35953);let f=()=>(0,a.jsx)(p.default,{id:"captureUtmPrams",dangerouslySetInnerHTML:{__html:`
2if(window && window.location && window.location.search){
3  const urlSearch = window.location.search
4  if (urlSearch) {
5    try {
6      const decodedUrl = decodeURIComponent(window.location.href)
7      const url = new URL(decodedUrl)
8      const searchParams = url.searchParams
9      const utmParametersKeys = [
10        'utm_source',
11        'utm_medium',
12        'utm_campaign',
13        'utm_term',
14        'utm_content',
15        'utm_id',
16        'gclid',
17      ]
18      const userParametersKeys = ['utm_email']
19      const requiredParams = Object.fromEntries(
20        Array.from(searchParams.entries()).filter((entry) =>
21          utmParametersKeys.includes(entry[0])
22        )
23      )
24
25      const requiredUserParams = Object.fromEntries(
26        Array.from(searchParams.entries()).filter((entry) =>
27        userParametersKeys.includes(entry[0])
28        ).map((entry) => {
29          if (entry[0] === 'utm_email') {
30            return ['utm_email', entry[1].replace(" ", "+")]
31          }
32          return entry
33        })
34      )
35
36      if (Object.keys(requiredParams).length) {
37        const sessionStorage = window.sessionStorage
38        if (sessionStorage) {
39          sessionStorage.setItem('utm_params', JSON.stringify(requiredParams))
40        }
41      }
42
43      if (Object.keys(requiredUserParams).length) {
44        const sessionStorage = window.sessionStorage
45        if (sessionStorage) {
46          sessionStorage.setItem('user_params', JSON.stringify(requiredUserParams))
47        }
48      }
49    } catch (e) {
50      if (typeof window !== 'undefined' && window && window.captureException) {
51        window.captureException(e, {
52          tags: {
53            area: 'analytics',
54            scriptName: 'captureUtmPrams',
55          },
56        })
57      }
58    }
59  }
60}
61`}}),y=()=>(0,a.jsx)(p.default,{id:"klaviyoScript",dangerouslySetInnerHTML:{__html:`
62    window.addEventListener("klaviyoForms", function(e) {
63      if (e && e.detail && e.detail.type == 'submit') {
64        if(window &&
65          window.analytics &&
66          e.detail.metaData &&
67          e.detail.metaData.$email &&
68          e.detail.metaData.$source == 'Footer Email Campture'
69          ){
70          window.analytics.track('Customer Subscribed',{
71            email:  e.detail.metaData.$email
72          })
73          if(window.analytics.identify){
74            window.analytics.identify(e.detail.metaData.$email);
75          }
76        }
77        if(window &&
78          window.dataLayer &&
79          window.dataLayer.push &&
80          e.detail.metaData &&
81          e.detail.metaData.$email)
82          {
83            window.dataLayer.push({
84              event: 'user_email_added',
85              value: e.detail.metaData.$email,
86              source: 'Klaviyo Email Capture Form',
87            })
88          }
89      }
90    });
91    `}});var v=r(47708),g=r(70449),b=r(16943),_=r(37811);let x="",P=()=>{let e=(0,n.useCallback)(h,[]),{kvFetched:t}=(0,v.useUserConfig)(),r=(0,g.Ue)(),{isTargetingCookiesAllowed:d}=(0,b.Ay)();return(0,o.A)((t,r)=>{try{e(),window?.dataLayer?.push({event:"optimize.activate"}),(e=>{let t=c(),r=u(),{keyName:a,limit:n}=l;if(t&&r&&Array.isArray(r)){let s=r.length;return s>=n&&r[s-1]!==e&&r.shift(),r[s-1]!==e&&t.setItem(a,JSON.stringify([...r,e])),u()}})(t);let a=u(),n=document.referrer;a&&Array.isArray(a)&&a.length>=2&&(n=new URL(`${window?.location?.origin}${a[a.length-2]}`).href),"/"===t&&x&&x.indexOf("/referrals/")>-1||s.page(r,{referrer:n}),x=t}catch(e){(0,i.Cp)(e,{tags:{area:"utilities"}})}}),(0,n.useEffect)(()=>{t&&s.initialize({appName:"Website",APIBaseUrl:"https://api.trainwithpivot.com",APIToken:_.env.NEXT_PUBLIC_EVENTS_TOKEN||"d2ViQHRlbXBvLmZpdDp3ZWI=",initialUserIdentity:(()=>{let e={};try{let t=window?.sessionStorage?.getItem("user_params");if(t)return e=JSON.parse(t),e?.utm_email||""}catch(e){return(0,i.Cp)(e,{tags:{area:"utilities"}}),""}})(),blockInitialPageView:!0,getGlobalPropertiesForTrack:r}),window?.addEventListener("load",e)},[t,r]),(0,a.jsxs)(a.Fragment,{children:[d&&(0,a.jsx)(y,{}),d&&(0,a.jsx)(f,{})]})},k=()=>(0,a.jsx)(n.Suspense,{children:(0,a.jsx)(P,{})})},30295:(e,t,r)=>{"use strict";r.d(t,{default:()=>y});var a=r(40120),n=r(38644),s=r(84169),i=r.n(s),o=r(73552),l=r.n(o),d=r(70449),c=r(87108),u=r(82684),m=r(84410),w=r(56476),h=r(26963);let p=async(e,t)=>{try{return await fetch(`/api/content?type=${e}${t?`&q=${JSON.stringify(t)}`:""}`).then(async e=>{if(e.ok)return await e.json();throw e})}catch(e){return(0,h.Cp)(Error(e),{tags:{area:"DatoCMS",api:"fetch-data-from-server"},extra:{error:e,response:e?.response}}),{data:[],total:0}}},f=({content:e})=>
91{let[t,r]=(0,n.useState)(!1),s=(0,c.Y)(),o=(0,n.useMemo)(()=>e?.avoid||"",[e]),w=(({sections:e="",rootMargin:t="0px",threshold:r=0})=>{let[a,s]=(0,n.useState)(!1),i=(0,u.usePathname)();return(0,n.useEffect)(()=>{let a=new IntersectionObserver(([e])=>{s(e.isIntersecting)},{rootMargin:t,threshold:r});return(e?document.querySelectorAll(e):[]).forEach(e=>{a.observe(e)}),()=>{a.disconnect()}},[e,t,r,i]),a})({sections:o,rootMargin:"0px",threshold:0});(0,n.useEffect)(()=>{e?.behaviour==="Down Scroll"&&("down"===s?o&&o.length>0&&w?r(!1):r(!0):r(!1))},[s,e,w,o]);let h=(0,u.usePathname)(),p=(0,n.useMemo)(()=>e?.avoidPages?.split(", ")||[],[e]);return p&&p.includes(h||"")?null:(0,a.jsxs)(a.Fragment,{children:[e?.style&&(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:e.style.replace(/(<style>|<\/style>)/g,"").replace(/\[parent\]/g,`#announcement_bar_${e?.id||e.title}`).replace(/&gt;/g,">")}}),(0,a.jsx)("div",{className:i()(l().wrapper,e?.extraCssClasses,{[l().downScroll]:e?.behaviour==="Down Scroll",[l().visible]:e?.behaviour==="Down Scroll"&&t}),id:`announcement_bar_${e?.id||e.title}`,style:{color:e?.fontColor,backgroundColor:e?.backgroundColor},onClick:e=>{("A"===e.target.tagName||e.target.classList.contains("cursor-pointer"))&&(0,d.kB)("Announcement Bar",window.location.href,document.getElementById("announcement_bar")?.innerText||"",e.target.href||e.target.innerText)},children:(0,a.jsx)(m.A,{document:e?.body,className:"announcementBar"})})]})},y=({page:e,announcementData:t})=>{let{page:r}
91=(0,n.useContext)(w.G),[s,o]=(0,n.useState)(t),[d,u]=(0,n.useState)(t||[]),m=(0,c.Y)(),h=(e??r)?.slug,y=(e??r)?.utmSource||!1,v=(0,n.useRef)(null),g=(0,n.useMemo)(()=>d.every(e=>"Static"===e.behaviour),[d]),b=(0,n.useMemo)(()=>d.every(e=>"Down Scroll"===e.behaviour),[d]),_=!g&&!b;return(0,n.useEffect)(()=>{t||(async()=>{o(await p("announcements"))})()},[t]),(0,n.useEffect)(()=>{s&&u(s?.filter?.(e=>e.defineAsGlobal)?.sort?.((e,t)=>e.title?.localeCompare(t.title||"")||0)||[])},[s,h,y]),(0,n.useEffect)(()=>{let e=(g||_)&&v.current?.offsetHeight||0;document.documentElement.style.setProperty("--base-nav-space",e+"px")}),d&&d.length>0?(0,a.jsx)("div",{className:i()({[l().downScroll]:b,[l().visible]:b&&"down"===m,"sticky top-0 z-10 overflow-hidden":g||_}),id:"announcement_bar_container",ref:v,children:d.map(e=>(0,a.jsx)(f,{content:e},e.id))}):null}},35953:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var a=r(6506),n=r.n(a)},42077:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(38644),n=r(82684);let s=function(e){let t=(0,n.usePathname)(),r=(0,n.useSearchParams)();(0,a.useEffect)(()=>{e(t+(r?.toString()||""),t||"")},[t,,r])}},44946:()=>{},48800:(e,t,r)=>{"use strict";r.d(t,{default:()=>m});var a=r(40120),n=r(38644),s=r(71909),i=r(23345),o=r(79116),l=r(92982),d=r(45194),c=r(64376);let u=()=>{let{activeModals:e,closeModalV2:t}=(0,i.mL)(),r=e[e.length-1],{slug:n,title:l}=r||{};return e.length>0?(0,a.jsx)(s.A,{modalData:r,onClose:()=>{t()},children:(0,a.jsx)(o.A,{blocks:r?.blocks||[],eventParent:`Modal ${n||l}}`})}):null},m=({children:e})=>((0,n.useEffect)(()=>{window?.addEventListener("pageshow",e=>{e.persisted&&(e.preventDefault(),location.reload())})},[]),(0,a.jsx)(i.fw,{children:(0,a.jsxs)(l.b,{children:[(0,a.jsx)(d.F,{features:c.l,children:e}),(0,a.jsx)(u,{})]})}))},53540:(e,t,r)=>{Promise.resolve().then(r.bind(r,18074)),Promise.resolve().then(r.bind(r,59075)),Promise.resolve().then(r.bind(r,48800)),Promise.resolve().then(r.bind(r,51538)),Promise.resolve().then(r.bind(r,59955)),Promise.resolve().then(r.t.bind(r,44946,23)),Promise.resolve().then(r.bind(r,30295)),Promise.resolve().then(r.bind(r,56476)),Promise.resolve().then(r.bind(r,24594)),Promise.resolve().then(r.bind(r,91892)),Promise.resolve().then(r.bind(r,89413)),Promise.resolve().then(r.bind(r,47708)),Promise.resolve().then(r.bind(r,74852)),Promise.resolve().then(r.bind(r,53213)),Promise.resolve().then(r.t.bind(r,6506,23))},59075:(e,t,r)=>{"use strict";r.d(t,{default:()=>m});var a=r(40120),n=r(38644),s=r(35953);let i=`
92  // Dynamically adds the SDK to the page.
93  var script = document.createElement('script');
94  script.src = '//fw-cdn.com/10680825/3494571.js';
95  script.defer = 'true';
96  script.setAttribute('chat', 'true');
97  window.document.body.appendChild(script);
98`,o=()=>(0,a.jsx)(s.default,{defer:!0,id:"FreshChatScript",dangerouslySetInnerHTML:{__html:i}});var l=r(42077),d=r(16943);let c="/,/experience,/core,/move,/studio,/assessment,/assessment/results,/assessment/analyze,/holiday,/shopping,/trainwithtempo,/shop,/train-smart-with-tempo,/tempo-training,/move-gym,/core-gym,/studio-suite,/add-bundle,/byod-monthly,/checkout/shipping/[slug],/checkout/payment/[slug]".split(","),u=()=>{let[e,t]=(0,n.useState)(!1),{isFunctionalCookiesAllowed:r}=(0,d.Ay)();return(0,l.A)((e,r)=>{c.includes(r)?t(!1):t(!0)}),e&&r?(0,a.jsx)(o,{}):null},m=()=>(0,a.jsx)(n.Suspense,{children:(0,a.jsx)(u,{})})},59955:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(40120),n=r(35953),s=r(16943);function i(){let{isFunctionalCookiesAllowed:e}=(0,s.Ay)();return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.default,{src:"https://cdn.userway.org/widget.js","data-account":"JR5ige59vC",strategy:"afterInteractive"}),(0,a.jsx)(n.default,{id:"userway-widget-script",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
99            // Function to attach the event listener to the button
100            function attachListenerToButton() {
101              const button = document.getElementById('cta_accessibility')
102              if (button && !button.hasAttribute('data-listener-attached')) {
103                button.addEventListener('click', () => {
104                  const event = new KeyboardEvent('keydown', {
105                    key: 'u',
106                    code: 'KeyU',
107                    ctrlKey: true,
108                    bubbles: true,
109                  })
110
111                  // Dispatch the event on the document
112                  document.dispatchEvent(event)
113                })
114
115                // Mark the button to prevent duplicate listeners
116                button.setAttribute('data-listener-attached', 'true')
117              }
118            }
119
120            // Function to initialize the MutationObserver
121            function initializeObserver() {
122              const observer = new MutationObserver(() => {
123                attachListenerToButton()
124              })
125
126              // Start observing the DOM for changes
127              observer.observe(document.body, { childList: true, subtree: true })
128            }
129
130            // Initialize the observer immediately
131            initializeObserver()
132            `}})]}):null}},70025:e=>{e.exports={root:"ModalV2_root__Uqtoi",modal:"ModalV2_modal__q_qvz",close:"ModalV2_close__zYlnr",stickyClose:"ModalV2_stickyClose__sJuIB",closeOnLeft:"Mod
132alV2_closeOnLeft__9_Q_v",modalCtas:"ModalV2_modalCtas__8aGa1"}},71909:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var a=r(40120),n=r(38644),s=r(70025),i=r.n(s),o=r(82168);let l=({...e})=>(0,a.jsxs)("svg",{width:"38",height:"38",viewBox:"0 0 38 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M0 19C0 8.50659 8.50659 0 19 0C29.4934 0 38 8.50659 38 19C38 29.4934 29.4934 38 19 38C8.50659 38 0 29.4934 0 19Z",fill:"#E9E9EB"}),(0,a.jsx)("path",{d:"M24.7 14.8005L23.1996 13.3L19 17.5003L14.8005 13.3L13.3 14.8005L17.5003 19L13.3 23.1996L14.8005 24.7001L19 20.4998L23.1996 24.7001L24.7 23.1996L20.4998 19L24.7 14.8005Z",fill:"#20242D"})]});var d=r(84169),c=r.n(d),u=r(93539),m=r(18646),w=r(23049);let h=({children:e,onClose:t,modalData:r,internalModalData:s,customCloseIcon:d,constainerCss:h})=>{let p=r??s,f=p?.title??"",y=p?.backgroundColor??"",v=p?.cssClass??"",g=p?.stickyClose??!1,b=p?.closePosition??!1,_=p?.cta??void 0,x=p?.closeable??!0,P=p?.backdropBackground??"",k=(0,n.useRef)(null),E=(0,m.U)(959),S=void 0===p?.autoFocus||p?.autoFocus,j=(0,n.useCallback)(e=>{if("Escape"===e.key)return t()},[t]);(0,n.useEffect)(()=>(k.current&&(document.body.style.overflowY="hidden",E&&document.body.classList.add("modal-opened"),window.addEventListener("keydown",j)),()=>{document.body.style.overflowY="",document.body.classList.remove("modal-opened"),window.removeEventListener("keydown",j)}),[j,E]),(0,n.useEffect)(()=>(k?.current&&h?.includes("preCheckoutModal")&&((0,w.mh)(k.current,{reserveScrollBarGap:!0}),window.addEventListener("keydown",j)),()=>{k&&k.current&&(0,w.fY)(k.current),(0,w.qY)(),window.removeEventListener("keydown",j)}),[j]);let C=(0,a.jsxs)("div",{className:i().modalCtas,children:[x&&(0,a.jsx)("button",{onClick:t,"aria-label":"Close panel",className:c()(i().close,{[i().closeOnLeft]:b,[i().stickyClose]:g}),children:(0,a.jsx)(d??l,{})}),_&&(0,a.jsx)(u.A,{blocks:[_],eventParent:`${f} Modal`})]});return(0,a.jsx)("div",{className:c()(i().root,v,h),onClick:e=>{e.stopPropagation(),t()},style:{background:P},children:(0,a.jsxs)("div",{className:c()(i().modal,v),role:"dialog",ref:k,style:{backgroundColor:y},onClick:e=>e.stopPropagation(),children:[(g||v.includes("OkendoReviewsPopupList"))&&C,S?(0,a.jsx)(o.A,{focusFirst:!0,children:e}):(0,a.jsx)(a.Fragment,{children:e})]})})}},73552:e=>{e.exports={wrapper:"AnnouncementBar_wrapper___Eskl",downScroll:"AnnouncementBar_downScroll__6IBng",visible:"AnnouncementBar_visible__aAW9O"}},74852:(e,t,r)=>{"use strict";r.d(t,{XavierProvider:()=>i});var a=r(40120),n=r(20613),s=r(9803);function i({children:e}){return(0,a.jsx)(n.Ay,{apiToken:"api",applicationId:"20a4a424-ae83-42d2-9c8c-cbd7877376a7",environment:s.GR,children:e})}},89413:(e,t,r)=>{"use strict";r.d(t,{PreviousPathProvider:()=>l,M:()=>d});var a=r(40120),n=r(38644),s=r(82684);let i=function(e){let[t,r]=(0,n.useState)(e),[a,s]=(0,n.useState)(null);return e!==t&&(s(t),r(e)),a},o=(0,n.createContext)(void 0),l=({children:e})=>{let t=i((0,s.usePathname)());return(0,a.jsx)(o.Provider,{value:{previousPath:t},children:e})},d=()=>{let e=(0,n.useContext)(o);if(void 0===e)throw Error("usePreviousPath must be used within a PreviousPathProvider");return e.previousPath}}},e=>{e.O(0,[3457,152,1419,4978,5609,8166,1414,6006,2354,3201,6562,5831,6588,8597,4420,1270,1404,7774,8564,613,449,74,5361,342,9712,2275,9416,7358],()=>e(e.s=53540)),_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.