1"use strict";(self.webpackChunk_treo_app=self.webpackChunk_treo_app||[]).push([[117],{48738(t,e,n){n.r(e),n.d(e,{AuthButtons:()=>y,AuthContainer:()=>M,AuthTitle:()=>D,default:()=>v});var o=n(98067),i=n(24385),a=n(45527),r=n(91032),s=n(33175),c=n(56064),u=n(50364),l=n(33912),h=n(86195);const d=t=>(0,h.jsx)(l.I,{viewBox:"0 0 512 512",...t,children:(0,h.jsx)("path",{d:"M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9 1.4.3 2.6.4 3.8.4 8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1-8.4 1.9-15.9 2.7-22.6 2.7-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1 10.5 0 20-3.4 25.6-6 2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8 0 0 1.6-.5 5-.5 8.1 0 26.4 3.1 56.6 24.1 17.9-5.1 37-7.6 56.1-7.7 19 .1 38.2 2.6 56.1 7.7 30.2-21 48.5-24.1 56.6-24.1 3.4 0 5 .5 5 .5 12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5 1.2 0 2.6-.1 4-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"})}),f=t=>{const e=(0,o.useId)();return(0,h.jsxs)(l.I,{viewBox:"0 0 48 48",...t,children:[(0,h.jsx)("defs",{children:(0,h.jsx)("path",{id:`${e}g`,d:"M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"})}),(0,h.jsx)("clipPath",{id:`${e}clip`,children:(0,h.jsx)("use",{href:`#${e}g`,overflow:"visible"})}),(0,h.jsx)("path",{clipPath:`url(#${e}clip)`,fill:"#FBBC05",d:"M0 37V11l17 13z"}),(0,h.jsx)("path",{clipPath:`url(#${e}clip)`,fill:"#EA4335",d:"M0 11l17 13 7-6.1L48 14V0H0z"}),(0,h.jsx)("path",{clipPath:`url(#${e}clip)`,fill:"#34A853",d:"M0 37l30-23 7.9 1L48 0v48H0z"}),(0,h.jsx)("path",{clipPath:`url(#${e}clip)`,fill:"#4285F4",d:"M48 48L17 24l-4-3 35-10z"})]})};var g=n(7727);const x="b1mti62q";function m({provider:t,action:e="login",href:n,onClick:o,className:a,children:r}){const s="github"===t?"GitHub":"Google";return(0,h.jsxs)(u.M,{...(0,g.B)("auth-button",{provider:t}),className:(0,i.cx)(x,a),href:n,rel:t?"nofollow":void 0,onClick:o,children:["github"===t?(0,h.jsx)(d,{size:"1.9rem"}):"google"===t?(0,h.jsx)(f,{size:"1.9rem"}):null,t?`${"signup"===e?"Sign up":"Log in"} with ${s}`:r]})}var p=n(95510),j=n(48251);function v({isInvite:t,isSignup:e,path:n,initialState:o}){return(0,r.lQ)("auth"),(0,r.ZY)({title:e?"Create a free Treo account and monitor your page speed":t?"Join team at Treo":"Log in to your Treo account",noFullTitle:!0,canonical:n,desc:e?"Create a free Treo account and start monitoring your page speed.":t?"":"Log in to Treo using your Google or GitHub account. Explore interactive Core Web Vitals dashboards."}),t?(0,h.jsx)(b,{initialState:o}):(0,h.jsx)(c.e,{className:C.block,contentClassName:C.root,children:(0,h.jsxs)(M,{children:[(0,h.jsx)(D,{children:e?"Create your free account and start monitoring site speed.":t?"Join your team at Treo using your Google or GitHub account.":"Welcome back! Log in to Treo using your Google or GitHub account."}),(0,h.jsx)(y,{isSignup:e,prefix:e?"/free":""})]})})}function b({initialState:t}){const{isAuthenticated:e,inviteExpireAt:n,inviteKey:o,serverTime:r,isInviteNotFound:s,userName:u}=t,{companyName:l,companyHandle:d,isCompanyUser:f}=t;(0,j.N8)(s?404:200);const g=n&&new Date(n)<=new Date(r),x=g||s;return(0,h.jsx)(c.e,{className:C.block,contentClassName:C.root,children:(0,h.jsxs)(M,{children:[(0,h.jsx)(D,{children:s?"The invite is not found. Please check with your team about the Treo account.":g?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("span",{className:"isRed",children:["The invite link expired ",(0,a.B)(new Date(r),new Date(n))," ago."]}),(0,h.jsx)("br",{}),(0,h.jsx)("br",{}),"Please contact ",u,' to get a new invite to join the "',l,'" team.']}):f?`You have already joined the "${l}" team.`:`${u} has invited you to join the "${l}" team.`}),x?null:f?(0,h.jsx)(m,{href:`/a/${d}`,children:"Go to the team"}):e?(0,h.jsx)(m,{href:`/invite/${o}/accept`,children:"Accept invitation"}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{className:(0,i.cx)(C.text,"isLarge"),children:"To accept the invitation, please authenticate using your Google or GitHub account."}),(0,h.jsx)(y,{isSignup:!e,prefix:`/invite/${o}`})]})]})})}function M({children:t,className:e,onLogoClick:n}){return(0,h.jsxs)("div",{className:(0,i.cx)(C.container,e),children:[(0,h.jsx)(p.g,{className:C.logo,onClick:n}),t]})}function D({children:t}){return(0,h.jsx)("h1",{className:C.text,elementtiming:"hero-text",children:t})}function y({prefix:t,isSignup:e,returnUrl:n}){const[a,r]=(0,o.useState)(!1),c=()=>r(!0);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(m,{provider:"google",action:e?"signup":"login",href:`${t}/auth/google${n?`?returnUrl=${encodeURIComponent(n)}`:""}`,onClick:c,className:(0,i.cx)(C.authButton,a&&"isHidden")}),(0,h.jsx)(m,{provider:"github",action:e?"signup":"login",href:`${t}/auth/github${n?`?returnUrl=${encodeURIComponent(n)}`:""}`,onClick:c,className:(0,i.cx)(C.authButton,a&&"isHidden")}),e?(0,h.jsxs)(s.P3,{className:C.signUpNotice,children:["By signing up, you agree to the ",(0,h.jsx)(u.M,{to:"/legal/terms",children:"Terms of Service"})," and"," ",(0,h.jsx)(u.M,{to:"/legal/privacy",children:"Privacy Policy"}),"."]}):null]})}const C={block:"bbrfvnu",root:"r1edbqlo",container:"c1sz30us",logo:"l1wkvo7h",text:(0,i.cx)(s.I.p2,"tlmybyj"),authButton:"a1w01vum",signUpNotice:(0,i.cx)(s.I.s4,"s141tsj8")}},83281(t,e,n){function o(t){return e=>{const n=(t?Math[t]:Math.trunc)(e);return 0===n?0:n}}n.d(e,{u:()=>
1o})},89977(t,e,n){n.d(e,{b:()=>i});var o=n(85774);function i(t,e){return+(0,o.a)(t)-+(0,o.a)(e)}},70630(t,e,n){n.d(e,{O:()=>a});var o=n(83281),i=n(89977);function a(t,e,n){const a=(0,i.b)(t,e)/1e3;return(0,o.u)(n?.roundingMethod)(a)}},91801(t,e,n){n.d(e,{p:()=>i});var o=n(85774);function i(t,e){const n=(0,o.a)(t,e?.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}},45527(t,e,n){n.d(e,{B:()=>x});var o=n(53027),i=n(12771),a=n(6445),r=n(7278),s=n(85774);function c(t,e){const n=+(0,s.a)(t)-+(0,s.a)(e);return n<0?-1:n>0?1:n}function u(t,e,n){const[o,i]=(0,r.x)(n?.in,t,e);return 12*(o.getFullYear()-i.getFullYear())+(o.getMonth()-i.getMonth())}function l(t,e){const n=(0,s.a)(t,e?.in);return n.setHours(23,59,59,999),n}var h=n(91801);function d(t,e){const n=(0,s.a)(t,e?.in);return+l(n,e)===+(0,h.p)(n,e)}function f(t,e,n){const[o,i,a]=(0,r.x)(n?.in,t,t,e),s=c(i,a),l=Math.abs(u(i,a));if(l<1)return 0;1===i.getMonth()&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-s*l);let h=c(i,a)===-s;d(o)&&1===l&&1===c(o,a)&&(h=!1);const f=s*(l-+h);return 0===f?0:f}var g=n(70630);function x(t,e,n){const s=(0,i.q)(),u=n?.locale??s.locale??o.c,l=c(t,e);if(isNaN(l))throw new RangeError("Invalid time value");const h=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:l}),[d,x]=(0,r.x)(n?.in,...l>0?[e,t]:[t,e]),m=(0,g.O)(x,d),p=((0,a.G)(x)-(0,a.G)(d))/1e3,j=Math.round((m-p)/60);let v;if(j<2)return n?.includeSeconds?m<5?u.formatDistance("lessThanXSeconds",5,h):m<10?u.formatDistance("lessThanXSeconds",10,h):m<20?u.formatDistance("lessThanXSeconds",20,h):m<40?u.formatDistance("halfAMinute",0,h):m<60?u.formatDistance("lessThanXMinutes",1,h):u.formatDistance("xMinutes",1,h):0===j?u.formatDistance("lessThanXMinutes",1,h):u.formatDistance("xMinutes",j,h);if(j<45)return u.formatDistance("xMinutes",j,h);if(j<90)return u.formatDistance("aboutXHours",1,h);if(j<1440){const t=Math.round(j/60);return u.formatDistance("aboutXHours",t,h)}if(j<2520)return u.formatDistance("xDays",1,h);if(j<43200){const t=Math.round(j/1440);return u.formatDistance("xDays",t,h)}if(j<86400)return v=Math.round(j/43200),u.formatDistance("aboutXMonths",v,h);if(v=f(x,d),v<12){const t=Math.round(j/43200);return u.formatDistance("xMonths",t,h)}{const t=v%12,e=Math.trunc(v/12);return t<3?u.formatDistance("aboutXYears",e,h):t<9?u.formatDistance("overXYears",e,h):u.formatDistance("almostXYears",e+1,h)}}}}]);
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.