PageSourceSearch

https://driftline.vercel.app/_next/static/chunks/156-b09162d7f705e4c7.js

js driftline.vercel.app collected 2026-10-03 06:48:33 UTC 11,489 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[156],{4766:function(e,t){t.Z={src:"/_next/static/media/dl-logo.a727a457.png",height:66,width:300,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAFVBMVEUA5agB46cB5agA4KYA5KUA46cA5ac1OAfHAAAAB3RSTlNvdmNPOV2hbXoTBgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABpJREFUeJxjYGBgZmJkZGZhYGNiYGBlZGAAAAESAB1CrVB/AAAAAElFTkSuQmCC"}},5347:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(5893),i=n(7294),a=n(9008),o=function(e){var t=e.title,n=void 0===t?"Driftline":t,i=e.scripts,o=void 0===i?[]:i,s=e.metatags,c=void 0===s?[]:s,l=e.links,u=void 0===l?[]:l;return(0,r.jsxs)(a.default,{children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,r.jsx)("link",{rel:"icon",type:"image/ico",sizes:"48x48",href:"/favicon.ico"}),u.length>0&&u,c.length>0&&c,o.length>0&&o]})},s=n(1664),c=n(5675),l=n(2553),u=n(9583),d=n(4766),f={src:"/_next/static/media/ts-logo.8e6f1197.png",height:200,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAGFBMVEX///////////////////////////////8pK8DIAAAACHRSTlMBF2gmNE1BT3sY9MwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAoSURBVHicJYnJDQAwCMNyAftvXEH9iRUDsEQsI+Uk6luyfMmVlvf4PAgAAE4OYzoCAAAAAElFTkSuQmCC"},A={src:"/_next/static/media/euemblemwhite.97948b99.png",height:494,width:550,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAACVBMVEUBAQEhISEVFRWWn42xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVR4nGNgQABGRkZGEM3EyMDAyAQSAIsii8DVQAEAAvQAF1zpVccAAAAASUVORK5CYII="};function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=[{category:"Products",links:[{href:"/racePredictor",title:"Race predictor footer link",text:"The Time Machine"},{href:"/fitsilver",title:"The Fitsilver Eurostars project",text:"Metabolic Tracker"}]},{category:"Company",links:[{href:"/contact",title:"Contact footer link",text:"Contact us"},{href:"/about",title:"About us footer link",text:"About us"},{href:"/posts",title:"Blog footer link",text:"Blog"},{href:"/validation",title:"Validation footer link",text:"Validation"}]},{category:"Legal",links:[{href:"/privacyPolicy",title:"Privacy policy footer link",text:"Privacy policy"},{href:"/termsAndConditions",title:"Terms footer link",text:"Terms of use"}]}],g=[{href:"https://www.facebook.com/driftlineanalytics/",icon:u.Am9},{href:"https://www.linkedin.com/company/driftlineanalytics/",icon:u.ltd}],m=function(e){var t=e.category,n=e.links;return(0,r.jsx)(l.ZP,{xs:6,md:2,children:(0,r.jsxs)(l.ZP.Container,{gap:1,direction:"column",children:[(0,r.jsx)(l.ZP,{children:(0,r.jsx)("h5",{className:"footer-header",children:t})}),n.map((function(e){return(0,r.jsx)(l.ZP,{children:(0,r.jsx)(s.default,{href:e.href,title:e.title,className:"link vertical-padding",children:e.text})},e.href)}))]})})},x=function(){return(0,r.jsx)("footer",{children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsxs)(l.ZP.Container,{gap:2,direction:"row",justify:"center",children:[(0,r.jsx)(l.ZP,{xs:6,md:3,className:"footer-logo",children:(0,r.jsx)("div",{style:{maxWidth:"160px"},children:(0,r.jsx)(s.default,{href:"/",title:"Driftline - Home footer",children:(0,r.jsx)(c.default,{src:d.Z,alt:"Logo not found",layout:"intrinsic",objectFit:"contain"})})})}),p.map((function(e){return(0,r.jsx)(m,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h(e,t,n[t])}))}return e}({},e),e.category)}))]}),(0,r.jsx)(l.ZP.Container,{gap:2.5,direction:"row",justify:"center",className:"footer-social",children:g.map((function(e,t){return(0,r.jsx)(l.ZP,{children:(0,r.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",title:"".concat(e.icon.name," link"),children:i.createElement(e.icon,{size:30,className:"dark"})})},t)}))}),(0,r.jsxs)("div",{className:"footer-backing",style:{padding:"80px 0px",flexDirection:"row",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,r.jsx)("p",{className:"text-body faded light",children:"Backed by"}),(0,r.jsx)("a",{href:"https://www.rannis.is/sjodir/rannsoknir/taeknithrounarsjodur",target:"_blank",rel:"noreferrer",title:"TS link",children:(0,r.jsx)(c.default,{src:f,alt:"Logo T\xe6kni\xfer\xf3unarsj\xf3\xf0s",width:126,height:96})}),(0,r.jsx)("p",{className:"text-body faded light",style:{marginRight:"20px"},children:"and"}),(0,r.jsx)("a",{href:"https://european-union.europa.eu/",target:"_blank",rel:"noreferrer",title:"EU link",children:(0,r.jsx)(c.default,{src:A,alt:"Logo EU",width:126,height:96})})]})]})})},v=n(6893),b={src:"/_next/static/media/dark-logo.f7d44ba1.svg",height:58,width:262},j=n(1163),w=function(e){var t=e.absolute,n=(0,j.useRouter)(),a=(0,i.useState)(!1),o=a[0],l=a[1],u=(0,i.useCallback)((function(e,t){var i=n.pathname===t;return(0,r.jsx)("li",{className:"margin-left",children:(0,r.jsx)(s.default,{href:t,title:e,className:"nav-link"+(i?" highlight":""),children:e})})}),[n.pathname]),d=(0,i.useCallback)((function(e,t){return(0,r.jsx)("li",{className:"nav-mobile-section",children:(0,r.jsx)(s.default,{href:t,title:e+" - sidebar",className:"nav-mobile-section-button",onClick:function(){l(!1)},children:e})})}),[]);return(0,r.jsx)("nav",{role:"navigation","aria-label":"Main Menu",className:"nav"+(t?" absolute":""),children:(0,r.jsxs)("div",{className:"nav-container"+(o?" blurred-background":""),children:[(0,r.jsxs)("div",{className:"nav-main container",children:[(0,r.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:(0,r.jsx)("div",{style:{maxWidth:"140px"},children:(0,r.jsx)(s.default,{href:"/",title:"Driftline - Home",children:(0,r.jsx)(c.default,{src:b,alt:"Logo not found",layout:"intrinsic",objectFit:"contain"})})})}),(0,r.jsxs)("div",{className:"nav-main-content",children:[(0,r.jsxs)("ul",{className:"row nav-main-content-row",style:{paddingLeft:"16px"},children:[u("Theory","/endurance"),u("Race predictor","/racePredictor"),u("Blog","/posts"),u("About","/about"),u("C
1ontact","/contact")]}),(0,r.jsx)("button",{title:"Toggle Menu","aria-label":"Open Website Navigation Menu",className:"nav-menu-button",onClick:function(){l(!o)},children:o?(0,r.jsx)(v.q5L,{size:20}):(0,r.jsx)(v.cur,{size:20})})]})]}),(0,r.jsxs)("ul",{className:"nav-mobile container"+(o?" nav-mobile-active":" hidden"),style:{zIndex:5e3},children:[d("Theory","/endurance"),d("Race predictor","/racePredictor"),d("Blog","/posts"),d("About","/about"),d("Contact","/contact")]})]})})},y=function(e){var t=e.title,n=e.absoluteHeader,i=void 0!==n&&n,a=e.scripts,s=e.metatags,c=e.links,l=e.children,u=e.hasNavbar,d=void 0===u||u,f=e.hasFooter,A=void 0===f||f;return(0,r.jsxs)("div",{className:"layout",children:[(0,r.jsx)(o,{scripts:a,metatags:s,links:c,title:t}),d?(0,r.jsx)(w,{absolute:i}):null,(0,r.jsx)("main",{children:l}),A?(0,r.jsx)(x,{}):null]})}},8742:function(e,t,n){var r=n(3633),i=n(1654),a=(0,r.getAuth)(i.l2),o={signIn:function(e,t,n){(0,r.signInWithEmailAndPassword)(a,e,t).then((function(e){console.log("Signed in: ",e),null===n||void 0===n||n(!0)})).catch((function(e){console.log(e),null===n||void 0===n||n(!1)}))},signOut:function(e){(0,r.signOut)(a).then((function(t){console.log("Signed out: ",t),null===e||void 0===e||e(!0)})).catch((function(t){console.log(t),null===e||void 0===e||e(!1)}))}};t.Z=o},1654:function(e,t,n){n.d(t,{l2:function(){return A}});var r=n(8520),i=n.n(r),a=n(4500),o=n(5503),s=n(6257),c=n(1153);function l(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){l(a,r,i,o,s,"next",e)}function s(e){l(a,r,i,o,s,"throw",e)}o(void 0)}))}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d(e,t,n[t])}))}return e}var A=(0,o.initializeApp)({apiKey:"AIzaSyBvGvFpl3zI5_GkotH3uhVE-FwKwAfis-o",authDomain:"driftline-web.firebaseapp.com",projectId:"driftline-web",storageBucket:"driftline-web.appspot.com",messagingSenderId:"103456223966",appId:"1:103456223966:web:b4e6279b0a5eb956d5084f"}),h=(0,s.ad)(A),p=(0,c.cF)(A),g={addPost:u(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n=(0,s.JU)((0,s.hJ)(h,"posts")),r=f({},t,{id:n.id}),(0,s.pl)(n,r)}catch(i){console.error("Error adding post: ",i)}case 1:case"end":return e.stop()}}),e)}))),updatePost:u(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(0,s.r7)((0,s.JU)(h,"posts",t.id),t)}catch(n){console.error("Error updating post: ",n)}case 1:case"end":return e.stop()}}),e)}))),usePosts:function(){return(0,a.lf)(["posts"],(0,s.hJ)(h,"posts"))},usePost:function(e){var t=void 0===e?"noID":e,n=(0,s.JU)(h,"posts",t),r=(0,a.Kv)(["posts",t],n);return r.isLoading||r.isError?null:r.data},useAuthors:function(){var e=(0,s.hJ)(h,"authors"),t=(0,a.lf)(["authors"],e);return t.isLoading||t.isError?[]:t.data.map((function(e){return e}))},getPost:u(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&0!==(null===t||void 0===t?void 0:t.length)){e.next=2;break}return e.abrupt("return",null);case 2:return n=(0,s.JU)(h,"posts",t),e.next=5,(0,s.QT)(n);case 5:return r=e.sent,e.abrupt("return",r.data());case 7:case"end":return e.stop()}}),e)}))),getPostIDs:u(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.PL)((0,s.hJ)(h,"posts"));case 2:return t=e.sent,n=[],t.forEach((function(e){n.push(e.id)})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),addMessage:u(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(0,s.pl)((0,s.JU)((0,s.hJ)(h,"messages")),t)}catch(n){console.error("Error adding post: ",n)}case 1:case"end":return e.stop()}}),e)}))),addImage:u(i().mark((function e(t,n){var r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,c.KV)((0,c.iH)(p,"images/"+n),t);case 3:return r=e.sent,e.next=6,(0,c.Jt)(r.ref);case 6:return a=e.sent,(0,s.ET)((0,s.hJ)(h,"images"),{name:n,url:a,timestamp:Date.now()}),e.abrupt("return",!0);case 11:return e.prev=11,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[0,11]])}))),useImages:function(){var e=(0,s.hJ)(h,"images"),t=(0,a.lf)(["images"],e);return t.isLoading||t.isError?[]:t.data.map((function(e){return e})).sort((function(e,t){return(t.timestamp||0)-(e.timestamp||0)}))},getImageDownloadURL:u(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Jt)((0,c.iH)(p,"images/"+t.name));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))};t.ZP=g}}]);

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.