PageSourceSearch

https://bushride.com/_next/static/chunks/pages/settings-9d440a6ce9e70bf1.js

js bushride.com collected 2026-10-02 00:30:30 UTC 41,808 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{52837:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings",function(){return t(20542)}])},72685:function(e,s,t){"use strict";var a=t(85893),n=t(9191);s.Z=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,a.jsx)("circle",{className:"opacity-25",cx:12,cy:12,r:10,stroke:n.Z["bushride-primary-300"],strokeWidth:4}),(0,a.jsx)("path",{className:"opacity-75",fill:n.Z["bushride-primary-500"],d:"M4 12a8 8 0 0 1 8-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})},34820:function(e,s,t){"use strict";t.d(s,{Z:function(){return c}});var a=t(85893),n=t(9008),r=t.n(n),i=t(75063),l=t(82210);function c(e){let{children:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r(),{children:[(0,a.jsx)("meta",{property:"og:image",content:"https://".concat("ea.cdn.bushride.com","/bushride-og.png")}),(0,a.jsx)("meta",{name:"apple-itunes-app",content:"app-id=6459408637"})]}),(0,a.jsx)(i.Z,{isFocusMode:!1}),(0,a.jsx)("main",{children:s}),(0,a.jsx)(l.Z,{isFocusMode:!1})]})}},52208:function(e,s,t){"use strict";t.d(s,{Z:function(){return o}});var a=t(85893),n=t(67294),r=t(40962),i=t(54763),l=t(77426),c=t(30120),d=t(61076);function o(e){let{emailAddress:s,resendAction:t,router:o,data:u,disabled:m}=e,{tempUser2faSession:h,setTempUser2faSession:x}=(0,n.useContext)(r.c),[p,f]=(0,n.useState)(!1),[g,b]=(0,n.useState)(!1),[v,j]=(0,n.useState)(c.ou.now().plus({seconds:60}).diff(c.ou.now())),[y,N]=(0,n.useState)(null);async function w(e){if(e.preventDefault(),!1==g&&(f(!0),"updateEmail"==t&&await i.g.verifyCurrentUserAttribute("email").then(()=>{b(!0),f(!1)},e=>{console.error(e),f(!1)}),"signUp"==t&&await i.g.resendSignUp(s).then(()=>{b(!0),f(!1)},e=>{console.error(e),f(!1)}),("payIdAccount"==t||"bankAccount"==t||"payPalAccount"==t)&&await k(t),"login2fa"==t))try{let e=await i.g.signIn(u.username,u.password);if("CUSTOM_CHALLENGE"==e.challengeName){x({...h,cognitoUser:e}),b(!0),f(!1);return}f(!1)}catch(e){console.error(e),f(!1)}}async function k(e){let s,t,a,n,r;try{t=await i.g.currentAuthenticatedUser({bypassCache:!1})}catch(e){console.error(e),o.push({pathname:"/login",query:{redirect:o.asPath}});return}if(s=t.signInUserSession.idToken.jwtToken,"payIdAccount"==e)a="UPDATE_PAYID",n={payIdAccountAus:u.pendingPayIdAccountAus};else if("bankAccount"==e)a="UPDATE_BANK_ACCOUNT",n={bankStateBranchAus:u.pendingBankStateBranchAus,bankAccountNumberAus:u.pendingBankAccountNumberAus};else{if("payPalAccount"!=e)return;a="UPDATE_PAYPAL",n={payPalAccount:u.pendingPayPalAccount}}let c={action:a,content:n};try{r=await l.b.post("challengeapi","/create",{headers:{Authorization:s},body:c}),"SUCCESS"==r.result?b(!0):console.error(r),f(!1)}catch(e){console.error(e),f(!1)}}return(0,n.useEffect)(()=>{let e=setInterval(()=>j(e=>e.minus({second:1})),1e3);return()=>clearInterval(e)},[]),(0,n.useEffect)(()=>{N(v.toFormat("s"))},[v]),(0,a.jsx)("div",{className:"col-span-6 sm:col-span-6 text-sm leading-5",children:!0==g?(0,a.jsxs)("div",{className:"font-medium text-gray-500",children:["Successfully resent 6 digit verification to ",s]}):(0,a.jsxs)("span",{className:"font-medium text-gray-500",children:["Didn't get a code?\xa0",(0,a.jsx)("span",{onClick:e=>w(e),className:(0,d.Z)("focus:outline-none focus:underline transition ease-in-out duration-150",v.values.seconds>=-59||null==v.toObject().seconds?"font-normal text-gray-300":"font-medium text-bushride-primary-500 hover:text-bushride-primary-700",p||m||v.toObject().seconds>=-59||null==v.toObject().seconds?"pointer-events-none text-gray-300":"cursor-pointer"),children:v.toObject().seconds<-59&&null!=v.toObject().seconds?"Click to resend":"Resend in ".concat(y)})]})})}},50327:function(e,s,t){"use strict";var a=t(85893),n=t(67294),r=t(61076),i=t(84282),l=t(72685);let c=(0,n.forwardRef)((e,s)=>(0,a.jsxs)("button",{id:e.id,ref:s,type:e.type,hidden:e.hidden,disabled:e.disabled,className:(0,r.Z)(e.hidden?"":"flex ","w-full justify-center items-center rounded-md border border-transparent bg-bushride-primary-500 py-2 px-4 text-sm font-medium text-white shadow-sm transition-colors hover:bg-bushride-primary-600 disabled:bg-bushride-primary-300 focus:outline-none focus:ring-2 focus:ring-bushride-primary-400 focus:ring-offset-2",e.extendClassName),onClick:e.onClick,children:[(0,a.jsx)(l.Z,{className:(0,r.Z)("pointer-events-none animate-spin h-5 w-5",e.loading?"absolute":"hidden"),"aria-hidden":"true"}),(0,a.jsx)("span",{className:e.loading?"flex pointer-events-none shrink-0 invisible":"flex visible",children:e.children}),e.showChevron?(0,a.jsx)(i.Z,{className:(0,r.Z)("h-4 w-4 mt-0.5 ml-2 text-white stroke-white stroke-1",e.loading?"flex pointer-events-none shrink-0 invisible":"flex visible")}):""]}));c.displayName="BaseButton",s.Z=c},98789:function(e,s,t){"use strict";t.d(s,{Z:function(){return r}});var a=t(85893),n=t(61076);function r(e){let{maxWidthSize:s,children:t}=e;return(0,a.jsx)("div",{className:"bg-slate-100 min-h-[calc(100vh-192px)] sm:min-h-[calc(100vh-200px)] md:min-
1h-[calc(100vh-11rem-4px)]",children:(0,a.jsx)("div",{className:(0,n.Z)(s,"mx-auto px-4 sm:px-6 lg:px-8"),children:t})})}},20870:function(e,s,t){"use strict";t.d(s,{Z:function(){return i}});var a=t(85893),n=t(98789),r=t(72685);function i(){return(0,a.jsx)(n.Z,{maxWidthSize:"max-w-xl",children:(0,a.jsx)("div",{className:"flex flex-col pt-24 items-center justify-items-center",children:(0,a.jsx)(r.Z,{className:"animate-spin h-12 w-12","aria-hidden":"true"})})})}},20542:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return O}});var a=t(85893),n=t(9008),r=t.n(n),i=t(34820),l=t(11163),c=t(67294),d=t(54763),o=t(77426),u=t(9589),m=t(1545),h=t(52208),x=t(9191),p=e=>(0,a.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 625.7 504.3",style:{enableBackground:"new 0 0 625.7 504.3"},xmlSpace:"preserve",...e,children:[(0,a.jsx)("style",{children:".st0{fill:#e6e6e6}.st1{fill:#fff}.st3{fill:#2f2e41}.st4{fill:#ffb6b6}.st5{fill:".concat(x.Z["bushride-secondary-500"],"}.st6{fill:#ffb8b8}.st7{fill:#f2f2f2}")}),(0,a.jsx)("path",{className:"st0",d:"M532.3 488.5c1.5 5.4 5.3 10 9.9 13.3.8.5 1.5 1 2.3 1.5.2.1.5.3.7.4.3.2.5.3.8.5h21.6l1.2-2.4c9.3-19.5 15.8-40.5 14.7-61.9-.4-8.3-2.2-16.5-5.2-24.2-5.9-15.5-16.8-28.9-31.7-35.6-.4-.2-.8-.3-1.1-.5.1.4.2.8.4 1.3 1.6 5.8 2.7 11.6 3.4 17.6.1.5.1.9.2 1.4 1.4 14.3.2 28.8-3.7 42.7v.1c-.9 3.1-1.8 6.1-3 9.1-.9 2.3-1.8 4.7-2.9 7-4.5 9.4-10.3 19.6-7.6 29.7z"}),(0,a.jsx)("path",{className:"st1",d:"M545.1 380c.2.3.4.5.6.8 4.4 5.8 8.1 12.1 11.1 18.8.2.3.3.7.4 1 4.1 9.3 6.7 19.1 7.8 29.2v.2c.2 2.4.4 4.7.5 7.1.2 4.5-.3 8.9-1.4 13.2-1.1 3.5-2.9 6.7-5.5 9.4-.2.3-.5.5-.8.8l-.6.6c-2 1.9-4.2 3.7-6.1 5.8-.9.9-1.7 1.9-2.3 3-2.2 3.6-2.8 8-1.6 12.1 1.4 5.1 4.5 9.3 7.7 13.4 1.6 2 3.2 4.1 4.7 6.3.5.8 1 1.6 1.4 2.4h1.3c-.4-.8-.9-1.6-1.4-2.4-3.7-5.8-8.8-10.7-11.5-17-1.8-4.3-2.4-9.1-.1-13.3.7-1.2 1.5-2.4 2.4-3.4 1.8-2.1 4-3.8 6-5.7l1.5-1.5c2.5-2.5 4.4-5.6 5.6-8.9 1.4-4.2 2-8.7 1.9-13.1 0-2.8-.2-5.7-.4-8.5 0-.4-.1-.7-.1-1.1-2-17.9-8.8-34.9-19.7-49.2-.2-.3-.4-.5-.6-.8-.4-.5-1.2.3-.8.8z"}),(0,a.jsx)("path",{className:"st1",d:"M565.8 430.5c7.2-1.2 12.4-7.4 12.4-14.7 0-.3-.3-.5-.6-.5s-.5.2-.5.5c0 6.8-4.8 12.5-11.5 13.6-.8.1-.5 1.2.2 1.1zM559 460c-5.9-4.1-10-10.3-11.5-17.3-.2-.7-1.2-.4-1.1.3 1.6 7.3 5.9 13.7 12 18 .6.4 1.2-.6.6-1zM557.2 399.5c-2.6 1-5.6.7-7.9-1-.6-.4-1.1.5-.6.9 2.5 1.8 5.8 2.2 8.7 1.1.3-.1.5-.4.4-.7 0-.2-.3-.4-.6-.3z"}),(0,a.jsx)("path",{className:"st0",d:"M470.1 418.7c.3.3.7.5 1.1.8 4.7 3.6 9.2 7.6 13.3 12 .3.3.6.7 1 1 9.7 10.5 17.4 22.8 22.7 36.1v.2c2.1 5.3 3.8 10.8 5 16.4 1.2 5.5 2.2 11.3 4.1 16.6l.9 2.4h44.5c-.2-.8-.3-1.6-.5-2.4-2.3-11.6-5.8-22.9-10.5-33.7-.2-.4-.3-.7-.5-1.1-2.4-5.3-5.3-10.5-8.6-15.3-1.8-2.7-3.7-5.2-5.8-7.7-5.3-6.4-11.7-11.8-18.7-16.2 0 0-.1 0-.1-.1-14-8.7-30.7-12.9-46.6-9.3-.5.1-.9.2-1.3.3z"}),(0,a.jsx)("path",{className:"st1",d:"M470.2 419.2c.3.1.7.2 1 .3 7 2 13.8 4.8 20.2 8.3.3.2.6.3 1 .5 8.8 4.9 16.9 11.2 23.8 18.6l.2.2c1.6 1.7 3.1 3.5 4.6 5.3 2.9 3.4 5.2 7.3 6.8 11.4 1.3 3.5 1.7 7.2 1.3 10.8 0 .4-.1.7-.1 1.1 0 .3-.1.6-.1.9-.7 4-1.8 8-1.5 12.1.4 4.2 2.6 8.1 6 10.6 1.2.9 2.4 1.7 3.7 2.3 1.9 1 3.8 1.8 5.8 2.4h3.9c-.5-.2-1-.3-1.6-.5-1.9-.5-3.7-1.2-5.5-1.9-1-.4-2-.9-3-1.5-4-2.3-7.4-5.8-8.1-10.6-.6-4.1.6-8.3 1.3-12.3l.3-2.1c.5-3.5.2-7.1-.8-10.5-1.4-4.2-3.6-8.2-6.4-11.7-1.7-2.3-3.5-4.5-5.5-6.5-.2-.3-.5-.5-.8-.8-7.1-7.4-15.2-13.8-24.2-18.7-6.7-3.7-13.8-6.6-21.1-8.7-.3-.1-.7-.2-1-.3-.8 0-.9 1.1-.2 1.3z"}),(0,a.jsx)("path",{className:"st1",d:"M517.1 447.1c5-5.3 5.4-13.4 1-19.1-.4-.6-1.3.1-.9.6 4.1 5.4 3.7 12.9-1 17.8-.5.5.4 1.2.9.7zM529.4 474.7c-7.2.3-14.2-2.2-19.6-6.9-.5-.5-1.2.4-.7.9 5.7 4.9 13 7.4 20.4 7.1.7 0 .6-1.1-.1-1.1zM491.5 427.5c-1.5 2.4-4.1 3.9-6.9 4-.7 0-.6 1.1.1 1.1 3.1-.1 6-1.7 7.6-4.4.2-.2.1-.6-.1-.8-.1-.2-.5-.2-.7.1z"}),(0,a.jsx)("path",{className:"st0",d:"M108.7 477c-2.5 9.5-9.2 17.3-17.2 23.1-1.3.9-2.6 1.8-4 2.6-.4.2-.8.5-1.3.7-.5.3-.9.5-1.4.8H47.2c-.7-1.4-1.3-2.8-2-4.1-16.1-33.9-27.5-70.5-25.5-107.7.8-14.4 3.8-28.7 9-42.2C39 323.3 57.9 300 83.8 288.3c.6-.3 1.3-.6 2-.9-.2.7-.4 1.5-.6 2.2-2.8 10-4.7 20.3-5.9 30.6l-.3 2.4c-2.5 24.9-.3 50.1 6.5 74.3 0 .1 0 .1.1.2 1.5 5.3 3.2 10.6 5.2 15.8 1.5 4.1 3.2 8.1 5 12.1 7.4 16.6 17.6 34.3 12.9 52z"}),(0,a.jsx)("path",{className:"st1",d:"M86.3 288.1c-.4.5-.7 1-1.1 1.4-7.6 10.1-14.1 21.1-19.3 32.6-.3.6-.5 1.1-.8 1.7-7.1 16.1-11.7 33.3-13.6 50.9v.4c-.4 4.1-.7 8.2-.8 12.4-.2 7.7.3 15.6 2.5 23 1.9 6.1 5.1 11.7 9.5 16.4.4.5.9.9 1.3 1.4.3.4.7.7 1.1 1.1 3.5 3.4 7.4 6.5 10.7 10.1 1.5 1.6 2.9 3.4 4.1 5.2 4.1 6.4 4.7 13.8 2.8 21.1-2.4 8.8-7.8 16.2-13.3 23.3-2.8 3.5-5.6 7.1-8.1 10.9-.9 1.4-1.7 2.7-2.5 4.1h-2.2c.7-1.4 1.5-2.8 2.4-4.1 6.4-10 15.4-18.6 20.1-29.6 3.2-7.4 4.1-15.9.1-23.1-1.2-2.1-2.6-4.1-4.2-5.9-3.2-3.6-7-6.7-10.5-9.9-.9-.8-1.7-1.7-2.5-2.5-4.3-4.4-7.7-9.7-9.8-15.5-2.6-7.3-3.4-15.2-3.4-22.8 0-4.9.3-9.9.7-14.9.1-.6.1-1.3.2-1.9 3.6-31.1 15.4-60.7 34.2-85.7.3-.5.7-1 1.1-1.4.6-1 2 .4 1.3 1.3z"}),(0,a.jsx)("path",{className:"st1",d:"M50.3 375.9c-12.4-2.1-21.5-12.9-21.5-25.5 0-.5.4-1 1-.9.5 0 .9.4.9.9-.1 11.8 8.4 21.8 20 23.7 1.3.2.8 2-.4 1.8zM62.1 427.3c10.2-7.2 17.4-17.9 20.1-30.1.3-1.2 2.1-.7 1.9.5-2.8 12.7-10.3 23.9-20.9 31.3-1.1.7-2.1-1-1.1-1.7zM65.2 322c4.6 1.8 9.7 1.1 13.7-1.7 1-.7 2 .9 1 1.7-4.4 3.1-10.1 3.8-15.2 
11.9-.5-.1-.8-.7-.7-1.2.2-.5.7-.8 1.2-.7z"}),(0,a.jsx)("path",{className:"st0",d:"M216.8 355.4c-.6.5-1.2.9-1.8 1.4-8.3 6.3-16 13.3-23.1 20.9-.6.6-1.1 1.2-1.7 1.8-16.9 18.4-30.3 39.7-39.4 62.9l-.1.2c0 .1 0 .1-.1.1-3.6 9.3-6.6 18.8-8.8 28.6-2.1 9.5-3.9 19.7-7.2 28.8-.5 1.4-1.1 2.8-1.7 4.1H55.7c.3-1.4.5-2.8.8-4.1 4.1-20.2 10-40.1 18.3-58.6.3-.6.6-1.3.9-1.9 4.3-9.3 9.3-18.2 15-26.7 3.1-4.6 6.5-9.1 10.1-13.4 9.3-11.1 20.3-20.6 32.6-28.3.1-.1.2-.1.2-.1 24.4-15.2 53.4-22.4 81.1-16.1.7.1 1.4.2 2.1.4z"}),(0,a.jsx)("path",{className:"st1",d:"M216.7 356.3c-.6.2-1.2.3-1.8.5-12.2 3.5-24 8.3-35.1 14.4-.6.3-1.1.6-1.7.9-15.4 8.6-29.3 19.5-41.4 32.3l-.4.4c-2.8 3-5.5 6.1-8 9.3-4.8 6.1-9.2 12.6-11.9 19.9-2.2 6-3 12.4-2.3 18.8.1.6.1 1.3.2 1.9.1.5.1 1 .2 1.5 1.1 7 3.1 14 2.6 21.1-.6 7.5-4.6 13.9-10.5 18.5-2 1.6-4.1 2.9-6.4 4.1-3.2 1.7-6.6 3-10 4.1h-6.8c.9-.3 1.8-.5 2.7-.8 3.3-.9 6.5-2 9.6-3.4 1.8-.7 3.5-1.6 5.2-2.6 7-4 12.8-10.2 14-18.4 1.1-7.2-1-14.4-2.2-21.5-.2-1.2-.4-2.4-.5-3.6-.8-6.1-.3-12.3 1.5-18.2 2.3-7.4 6.4-14.1 11.1-20.3 3-4 6.2-7.8 9.5-11.4.4-.5.9-.9 1.3-1.4 12.3-12.9 26.5-23.9 42.1-32.6 11.6-6.5 23.9-11.6 36.7-15.2.6-.2 1.2-.3 1.7-.5 1.5 0 1.8 1.9.6 2.2z"}),(0,a.jsx)("path",{className:"st1",d:"M135.1 404.8c-8.7-9.2-9.4-23.3-1.8-33.3.8-1 2.3.1 1.6 1.1-7.1 9.3-6.4 22.5 1.7 31 .9.9-.6 2.1-1.5 1.2zM113.6 452.9c12.5.5 24.7-3.8 34.2-12 .9-.8 2.1.7 1.2 1.5a51.55 51.55 0 0 1-35.6 12.4c-1.2 0-1-1.9.2-1.9zM179.5 370.7c2.6 4.2 7.1 6.8 12 6.9 1.2 0 1 1.9-.2 1.9-5.4-.2-10.4-3-13.3-7.6-.3-.4-.3-1 .1-1.4.5-.3 1.1-.2 1.4.2z"}),(0,a.jsx)("path",{d:"M625.7 503.1c0 .7-.5 1.2-1.2 1.2H1.2c-.7 0-1.2-.5-1.2-1.2s.5-1.2 1.2-1.2h623.3c.6 0 1.2.5 1.2 1.2z",style:{fill:"#ccc"}}),(0,a.jsx)("path",{className:"st3",d:"M385.1 59.4h-78c-3.5-6.5-8.7-12 0-24.9 0-17.9 14.2-32.6 32-33.2 16.9-5 29 5.2 32.3 21.6l13.7 36.5z"}),(0,a.jsx)("path",{className:"st4",d:"M230.4 73c5.4.6 9.2 5.4 8.6 10.8-.1.6-.2 1.1-.3 1.7l60.5 50.3-16.8 6.5L225.9 92c-5.1-1.9-7.7-7.5-5.8-12.6 1.6-4.3 5.8-6.9 10.3-6.4z"}),(0,a.jsx)("path",{className:"st5",d:"M300.6 157.5c-13.4 0-65.7-54.8-68-57.2l-.6-.6 19.4-5.2 46.5 33.7 16.9-28.7c3.8-6.5 11.3-9.8 18.7-8.4 9.6 1.9 15.9 11.2 14.1 20.9-.7 3.6-2.5 6.9-5.1 9.4l-32 30.9c-2.5 2.4-5.5 4.1-8.7 5.1-.5.1-.9.1-1.2.1z"}),(0,a.jsx)("path",{className:"st6",d:"m301.6 149.9 6.5 24.5 54 12-3.5-12.5 10.1-10.7-11.1-18.3zM296.8 484.1h-10.5l-5.1-40.7h15.6z"}),(0,a.jsx)("path",{className:"st3",d:"M302.4 502.4h-7.6l-1.4-7.1-3.5 7.1h-20.1c-2.5 0-4.5-2-4.5-4.5 0-1.5.7-2.9 1.9-3.7l16-11.1v-7.2l16.9 1 2.3 25.5z"}),(0,a.jsx)("path",{className:"st6",d:"m429 475.2-9.8 3.9-19.7-36 14.5-5.7z"}),(0,a.jsx)("path",{className:"st3",d:"m441 490.1-7 2.8-3.9-6.1-.6 7.9-18.6 7.4c-2.3.9-4.9-.2-5.9-2.5-.5-1.4-.4-2.9.4-4.2l10.8-16.2-2.7-6.7 16-5.3 11.5 22.9z"}),(0,a.jsx)("path",{className:"st5",d:"m368.4 166.1-1-.9c-.3-.3-29.9-25.2-66.8-1.9l-1.2.8-7.6-33.3c-1.8-7.8 1-15.9 7.1-21.1l26.7-22.2 9.3-4.7-1.2-7.7c-.5-3.1 1.3-6.2 4.3-7.3l14.5-5.4c3.4-1.3 7.2.4 8.5 3.7l1.5 3.7 3.3-1.2c4-1.5 8.5-1.3 12.4.6s6.8 5.4 8 9.5c5.7 19.2 4.1 39.7-4.3 57.9l-13.5 29.5z"}),(0,a.jsx)("path",{className:"st3",d:"M300.9 465.4h-21.8l6-102.5-4.4-69.5v-.1l16.4-99.6c1.3-7.9 4.8-15.2 10.1-21.1l.2-.2 55 13.6 5.5 12.6c18.9 11.2 24.9 74.6 25.1 77.3l8 79 19.6 96.8-13.8 7.4-.2-.5-43.5-86.5-27.5-91.2-17.5 82.1-17.2 102.4z"}),(0,a.jsx)("path",{className:"st4",d:"M388.9 248.6c-3.8-3.8-3.8-10 0-13.8.4-.4.8-.8 1.3-1.1l-15.5-77.2 17.2 5.5 12.4 74.7c2.8 4.6 1.3 10.7-3.4 13.5-3.8 2.3-8.8 1.7-12-1.6z"}),(0,a.jsx)("path",{className:"st5",d:"m366 85.3 10.6-8s9.4-.7 11.1 16.3 5.1 50 5.1 50L409 219l-22.6 5-17.4-81.5-10.5-24.2 7.5-33z"}),(0,a.jsx)("circle",{className:"st6",cx:334.1,cy:32.6,r:26}),(0,a.jsx)("path",{className:"st3",d:"M348.9 7.4C344.4 3 338.4.5 332 .5h-5c-13.3 0-24 10.7-24 24 4.4 3.8 25.5 3 38 2-.9 13-12 25.8-9 33h50v-5c4.4-22-11.6-40.4-33.1-47.1z"}),(0,a.jsx)("circle",{className:"st7",cx:123.6,cy:329.9,r:16}),(0,a.jsx)("circle",{className:"st7",cx:518.1,cy:395.4,r:13}),(0,a.jsx)("circle",{className:"st7",cx:457.1,cy:124.4,r:13}),(0,a.jsx)("circle",{className:"st1",cx:194.1,cy:36.5,r:31}),(0,a.jsx)("path",{className:"st7",d:"M222.1 36.5c0 15.5-12.5 28-28 28-8.4 0-16.3-3.8-21.7-10.3-.8-1-1.6-2.1-2.3-3.2-.7-1.2-1.3-2.4-1.9-3.7-.6-1.4-1-2.8-1.4-4.3-.3-1.3-.6-2.7-.7-4.1-1-11.9 5.6-23.1 16.4-28 14.1-6.3 30.7 0 37 14.1 1 2.3 1.7 4.7 2.1 7.2.1.4.1.4.1.6 0 .4.1.8.1 1.2.3.9.3 1.7.3 2.5 0 3.9 6 3.9 6 0 0-18.8-15.2-34.1-34-34.2-18.8 0-34.1 15.2-34.2 34 0 18.8 15.2 34.1 34 34.2 16.7 0 30.9-12 33.7-28.4.3-1.9.5-3.7.5-5.6 0-3.8-6-3.8-6 0z"}),(0,a.jsx)("path",{d:"m201 39.8.9-6.2H196c-.2-5.1-.4-8 6.2-7.3V2
11c-9.8-2.2-13.9 2.8-12.8 12.6H184v6.2h5.4v14.3c2.2.5 4.5.5 6.7 0V39.8h4.9z",style:{fill:"#1877f2"}})]}),f=e=>(0,a.jsx)("svg",{width:1024,height:1024,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",style:{enableBackground:"new 0 0 1024 1024"},xmlSpace:"preserve",...e,children:(0,a.jsx)("path",{d:"M1024 512C1024 229.2 794.8 0 512 0S0 229.2 0 512c0 255.6 187.2 467.4 432 505.8V660H302V512h130V399.2C432 270.9 508.4 200 625.4 200c56 0 114.6 10 114.6 10v126h-64.6c-63.6 0-83.4 39.5-83.4 80v96h142l-22.7 148H592v357.8c244.8-38.4 432-250.2 432-505.8z",style:{fill:"#fff"}})});function g(e){let{heading:s,subHeading:t}=e;return(0,l.useRouter)(),(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center py-12",children:[(0,a.jsx)("h1",{className:"w-full text-3xl mb-2 mx-auto font-bold tracking-tight md:text-center md:text-4xl text-gray-600",children:s}),(0,a.jsx)("h2",{className:"w-full mx-auto text-gray-600 md:text-center",children:t}),(0,a.jsx)("div",{className:"mt-8 sm:mt-12 mb-12",children:(0,a.jsx)(p,{className:"h-full w-64 sm:w-72"})}),(0,a.jsx)("a",{href:"https://www.facebook.com",rel:"noreferrer",target:"_blank",children:(0,a.jsxs)("button",{type:"submit",className:"flex w-fit justify-center rounded-md border border-transparent bg-fb-blue-500 py-2 px-4 text-sm font-medium text-white shadow-sm transition-colors hover:bg-fb-blue-400 disabled:bg-fb-blue-200",children:[(0,a.jsx)(f,{className:"flex visible h-5 w-5 mr-2"}),(0,a.jsx)("span",{children:"Go to Facebook"})]})})]})}var b=t(20870),v=t(50327),j=t(83619),y=t(59656),N=t(71237),w=t(67257),k=t(57110),C=t(40947),S=t(68354);let z=(0,c.createContext)(null),E=(0,j.yV)(function(e,s){let t=(0,y.M)(),{id:a="headlessui-label-".concat(t),passive:n=!1,...r}=e,i=function e(){let s=(0,c.useContext)(z);if(null===s){let s=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(s,e),s}return s}(),l=(0,C.T)(s);(0,k.e)(()=>i.register(a),[a,i.register]);let d={ref:l,...i.props,id:a};return n&&("onClick"in d&&delete d.onClick,"onClick"in r&&delete r.onClick),(0,j.sY)({ourProps:d,theirProps:r,slot:i.slot||{},defaultTag:"label",name:i.name||"Label"})});var A=t(29138),U=t(91034),M=t(51228),T=t(22983),F=t(89327),P=t(5655);let D=(0,c.createContext)(null);D.displayName="GroupContext";let L=c.Fragment,R=Object.assign((0,j.yV)(function(e,s){let t=(0,y.M)(),{id:a="headlessui-switch-".concat(t),checked:n,defaultChecked:r=!1,onChange:i,name:l,value:d,...o}=e,u=(0,c.useContext)(D),m=(0,c.useRef)(null),h=(0,C.T)(m,s,null===u?null:u.setSwitch),[x,p]=(0,F.q)(n,i,r),f=(0,S.z)(()=>null==p?void 0:p(!x)),g=(0,S.z)(e=>{if((0,w.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),f()}),b=(0,S.z)(e=>{e.key===N.R.Space?(e.preventDefault(),f()):e.key===N.R.Enter&&(0,T.g)(e.currentTarget)}),v=(0,S.z)(e=>e.preventDefault()),k=(0,c.useMemo)(()=>({checked:x}),[x]),z={id:a,ref:h,role:"switch",type:(0,U.f)(e,m),tabIndex:0,"aria-checked":x,"aria-labelledby":null==u?void 0:u.labelledby,"aria-describedby":null==u?void 0:u.describedby,onClick:g,onKeyUp:b,onKeyPress:v},E=(0,P.G)();return(0,c.useEffect)(()=>{var e;let s=null==(e=m.current)?void 0:e.closest("form");s&&void 0!==r&&E.addEventListener(s,"reset",()=>{p(r)})},[m,p]),c.createElement(c.Fragment,null,null!=l&&x&&c.createElement(M._,{features:M.A.Hidden,...(0,j.oA)({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:x,name:l,value:d})}),(0,j.sY)({ourProps:z,theirProps:o,slot:k,defaultTag:"button",name:"Switch"}))}),{Group:function(e){let[s,t]=(0,c.useState)(null),[a,n]=function(){let[e,s]=(0,c.useState)([]);return[e.length>0?e.join(" "):void 0,(0,c.useMemo)(()=>function(e){let t=(0,S.z)(e=>(s(s=>[...s,e]),()=>s(s=>{let t=s.slice(),a=t.indexOf(e);return -1!==a&&t.splice(a,1),t}))),a=(0,c.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props}),[t,e.slot,e.name,e.props]);return c.createElement(z.Provider,{value:a},e.children)},[s])]}(),[r,i]=(0,A.f)(),l=(0,c.useMemo)(()=>({switch:s,setSwitch:t,labelledby:a,describedby:r}),[s,t,a,r]);return c.createElement(i,{name:"Switch.Description"},c.createElement(n,{name:"Switch.Label",props:{onClick(){s&&(s.click(),s.focus({preventScroll:!0}))}}},c.createElement(D.Provider,{value:l},(0,j.sY)({ourProps:{},theirProps:e,defaultTag:L,name:"Switch.Group"}))))},Label:E,Description:A.d});var Z=t(61466),B=t(61076);function _(){let e=(0,l.useRouter)(),{user:s,setUser:t}=(0,c.useContext)(u.S),{userPrivate:n,setUserPrivate:r}=(0,c.useContext)(m.u),[i,x]=(0,c.useState)(!0),[p,f]=(0,c.useState)(!1),[j,y]=(0,c.useState)(!1),[N,w]=(0,c.useState)(""),[k,C]=(0,c.useState)(!1),[S,z]=(0,c.useState)(!1),[E,A]=(0,c.useState)("Lo
1ading..."),[U,M]=(0,c.useState)(""),[T,F]=(0,c.useState)(!1),[P,D]=(0,c.useState)(""),[L,_]=(0,c.useState)(""),[I,O]=(0,c.useState)(!1),[V,H]=(0,c.useState)(!1),[Y,G]=(0,c.useState)(""),[q,W]=(0,c.useState)(""),[K,X]=(0,c.useState)(""),[J,Q]=(0,c.useState)(""),[$,ee]=(0,c.useState)(!1),[es,et]=(0,c.useState)(!1),ea=(0,c.useRef)(null),[en,er]=(0,c.useState)("Default");async function ei(s){let t,a,i;s.preventDefault(),z(!0),C(!1),w("");try{a=await d.g.currentAuthenticatedUser({bypassCache:!1})}catch(s){console.error(s),e.push({pathname:"/login",query:{redirect:e.asPath}});return}if(t=a.signInUserSession.idToken.jwtToken,n.messageEmailNotifications==p&&n.marketingEmailNotifications==j){C(!0),z(!1);return}let l={id:a.signInUserSession.idToken.payload.sub,attributeToUpdate:"emailNotifications",messageEmailNotifications:p,marketingEmailNotifications:j};try{i=await o.b.post("userapi","/update",{headers:{Authorization:t},body:l}),"SUCCESS"==i.result&&(r({...n,messageEmailNotifications:p,marketingEmailNotifications:j}),C(!0),z(!1))}catch(e){w(e.message),z(!1)}}async function el(e){if(e.preventDefault(),H(!0),O(!1),_(""),F(!0),"Verification"!=en){if(""==U){F(!1),H(!1),ea.current.focus();return}if(E.toLowerCase()==U.toLowerCase()){_("Emails are the same. Please update to a new one."),F(!1),H(!1);return}}if("Default"==en)await d.g.updateUserAttributes(s,{email:U.toLowerCase()}).then(e=>{er("Verification"),F(!1),H(!1)},e=>{console.error(e),_(e.message),F(!1),H(!1)});else try{let e,s;await d.g.verifyCurrentUserAttributeSubmit("email",P);let a=await d.g.currentAuthenticatedUser({bypassCache:!0});e=a.signInUserSession.idToken.jwtToken;let i={id:a.signInUserSession.idToken.payload.sub,attributeToUpdate:"email"};s=await o.b.post("userapi","/update",{headers:{Authorization:e},body:i}),"SUCCESS"==s.result&&(t(a),r({...n,email:U.toLowerCase()}),O(!0),D(""),A(U.toLowerCase()),M(""),er("Default"),F(!1),H(!1))}catch(e){console.error(e),_(e.message),H(!1)}}async function ec(e){if(e.preventDefault(),et(!0),Q(""),ee(!1),q!=K){Q("Confirm password doesn't match"),X(""),et(!1);return}await d.g.changePassword(s,Y,q).then(e=>{G(""),W(""),X(""),"SUCCESS"==e&&ee(!0),et(!1)},e=>{"NotAuthorizedException"==e.code?(G(""),Q("Incorrect old password")):(Q(e.message),W(""),X("")),et(!1)})}return((0,c.useEffect)(()=>{(async()=>{let s,t;try{t=await d.g.currentAuthenticatedUser({bypassCache:!1})}catch(s){console.error(s),e.push({pathname:"/login",query:{redirect:e.asPath}});return}if(s=t.signInUserSession.idToken.jwtToken,0==Object.keys(n).length)try{let e;let a={id:t.signInUserSession.idToken.payload.sub,consistentRead:!1};if(e=await o.b.post("userapi","/get",{headers:{Authorization:s},body:a}),null==e.data.getUser)return;let n=e.data.getUser.reviewsReceivedOneStarCount+e.data.getUser.reviewsReceivedTwoStarCount+e.data.getUser.reviewsReceivedThreeStarCount+e.data.getUser.reviewsReceivedFourStarCount+e.data.getUser.reviewsReceivedFiveStarCount,i=null;0!=n&&(i=e.data.getUser.reviewsReceivedOneStarCount/n*1+e.data.getUser.reviewsReceivedTwoStarCount/n*2+e.data.getUser.reviewsReceivedThreeStarCount/n*3+e.data.getUser.reviewsReceivedFourStarCount/n*4+e.data.getUser.reviewsReceivedFiveStarCount/n*5);let l=e.data.getUser.ridesCompletedAsDriverCount+e.data.getUser.ridesCompletedAsPassengerCount;r({...e.data.getUser,totalReviews:n,averageRating:i,totalTrips:l,...null!=e.data.getUser.picture&&""!=e.data.getUser.picture&&{picture:"".concat(Z.Z.bushride_assets.profile_picture_live_bucket.endpoint,"/").concat(t.signInUserSession.idToken.payload.sub,".jpg?").concat(Date.now())}}),x(!1)}catch(e){console.error(e)}else x(!1)})()},[]),(0,c.useEffect)(()=>{null!=s&&(A(s.signInUserSession.idToken.payload.email.toLowerCase()),!1==s.attributes.email_verified?null!=s.signInUserSession.idToken.payload.email?(er("Verification"),M(s.signInUserSession.idToken.payload.email.toLowerCase())):(er("AddEmail"),M("")):er("Default"))},[s]),(0,c.useEffect)(()=>{0!=Object.keys(n).length&&(f(n.messageEmailNotifications),y(n.marketingEmailNotifications))},[n]),!0==i)?(0,a.jsx)(b.Z,{}):null!=s&&null!=s.signInUserSession.idToken.payload.identities&&"Facebook"==s.signInUserSession.idToken.payload.identities[0].providerName?(0,a.jsx)(g,{heading:"Facebook manages your settings",subHeading:"If you would like to update your settings, please head to Facebook."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"py-12 md:grid md:grid-cols-3 md:gap-6",children:[(0,a.jsx)("div",{className:"md:col-span-1",children:(0,a.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,a.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Email notifications"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-5 text-gray-600",children:"Change your notification preferences."})]})}),(0,a.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:(0,a.jsx)("form",{children:(0,a.jsxs)("div",{className:"shadow-lg overflow-hidden rounded-md",children:[(0,a.jsx)("div",{className:"px-4 py-5 bg-white sm:p-6",children:(0,a.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[(0,a.jsxs)("div",{className:"col-span-6 sm:col-span-6",children:[(0,a.jsxs)("div",{className:"flex flex-row",children:[(0,a.jsx)("label",{className:"flex flex-grow text-sm leading-5 font-medium text-gray-700",children:(0,a.jsx)("strong",{children:"Messages"})}),0!=Object.keys(n).length?(0,a.jsxs)(R,{checked:p,onChange:f,className:(0,B.Z)(p?"bg-bushride-primary-500":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-bushride-primary-500 focus:ring-offset-2"),children:[(0,a.jsx)("span",{className:"sr-only",children:"Enable message email notifications"}),(0,a.jsx)("span",{"aria-hidden":"true",className:(0,B.Z)(p?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})]}):(0,a.jsx)("div",{className:"my-2 h-2.5 bg-slate-200 w-12 rounded-full animate-wave"})]}),(0,a.jsx)("label",{className:"mt-4 block text-sm leading-5 font-medium text-gray-700",children:'Anna messaged: "I have the perfect roadtrip playlist \uD83D\uDE0E"'})]}),(0,a.jsxs)("div",{className:"col-span-6 sm:col-span-6 border-t pt-5",children:[(0,a.jsxs)("div",{className:"flex flex-row",children:[(0,a.jsx)("label",{className:"flex flex-grow text-sm leading-5 font-medium text-gray-700",children:(0,a.jsx)("strong",{children:"Newsletter"})}),0!=Object.keys(n).length?(0,a.jsxs)(R,{checked:j,onChange:y,className:(0,B.Z)(j?"bg-bushride-primary-500":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-bushride-primary-500 focus:ring-offset-2"),children:[(0,a.jsx)("span",{className:"sr-only",children:"Enable newsletter email notifications"}),(0,a.jsx)("span",{"aria-hidden":"true",className:(0,B.Z)(j?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})]}):(0,a.jsx)("div",{className:"my-2 h-2.5 bg-slate-200 w-8 rounded-full animate-wave animation-delay-[200ms]"})]}),(0,a.jsx)("label",{className:"mt-4 block text-sm leading-5 font-medium text-gray-700",children:"Learn about new rewards and features."})]}),""!=N?(0,a.jsx)("div",{className:"col-span-6 sm:col-span-6",children:(0,a.jsx)("div",{className:"rounded-md bg-red-50 p-4",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,a.jsxs)("div",{className:"ml-3",children:[(0,a.jsx)("h3",{className:"text-sm leading-5 font-medium text-red-800",children:"An error has occurred"}),(0,a.jsx)("div",{className:"mt-2 text-sm leading-5 text-red-700",children:N})]})]})})}):"",!0==k?(0,a.jsx)("div",{className:"col-span-6 sm:col-span-6",children:(0,a.jsx)("div",{className:"rounded-md bg-green-50 p-4",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)("svg",{className:"h-5 w-5 text-green-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),(0,a.jsx)("div",{className:"ml-3",children:(0,a.jsx)("h3",{className:"text-sm leading-5 font-medium text-green-800",children:"Notification preferences updated"})})]})})}):""]})}),(0,a.jsx)("div",{className:"flex flex-row justify-end px-4 py-3 bg-slate-100 text-right sm:px-6",children:0!=Object.keys(n).length?(0,a.jsx)(v.Z,{extendClassName:"w-fit",disabled:S,loading:S,onClick:e=>ei(e),children:"Save"}):(0,a.jsx)("div",{className:"my-3.5 h-2.5 bg-slate-200 w-20 rounded-full animate-wave animation-delay-[400ms]"})})]})})})]}),(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)("div",{className:"py-8",children:(0,a.jsx)("div",{className:"border-t border-gray-200"})})}),(0,a.jsx)("div",{className:"mt-10 pb-12 sm:mt-0",children:(0,a.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[(0,a.jsx)("div",{className:"md:col-span-1",children:(0,a.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,a.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Personal Information"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-5 text-gray-600",children:"Update your personal details."})]})}),(0,a.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:(0,a.jsx)("form",{children:(0,a.jsxs)("div",{className:"shadow-lg overflow-hidden rounded-md",children:[(0,a.jsx)("div",{className:"px-4 py-5 bg-white sm:p-6",children:(0,a.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[(0,a.jsxs)("div",{className:"col-span-6 sm:col-span-6",children:[(0,a.jsxs)("label",{className:"block text-sm leading-5 font-medium text-gray-700",children:[(0,a.jsx)("strong",{children:"Email address"}),"Verification"==en?(0,a.jsx)("span",{className:"text-red-500",children:" (unverified)"}):(0,a.jsx)("span",{className:"text-green-500",children:" (verified)"})]}),(0,a.jsx)("label",{className:"block text-sm leading-5 font-medium text-gray-700",children:"Verification"==en?U:E}),"Verification"==en?(0,a.jsx)("label",{className:"block text-xs leading-5 font-medium text-red-300",children:"Without verification, you cannot reset your password"}):""]}),"Verification"!=en?(0,a.jsxs)("div",{className:"col-span-6 sm:col-span-4",children:[(0,a.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Update email address"}),(0,a.jsx)("input",{type:"email",id:"email_address",disabled:T,ref:ea,onChange:e=>M(e.target.value),value:U,className:"mt-1 form-input block w-full py-2 px-3 border disabled:bg-gray-100 border-gray-300 rounded-md shadow-sm focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out text-base sm:text-sm sm:leading-5"})]}):"","Verification"==en?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"col-span-6 sm:col-span-3",children:[(0,a.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Please check your new email for a confirmation code"}),(0,a.jsx)("input",{id:"verification_code",onChange:e=>D(e.target.value),value:P,className:"mt-1 form-input block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out text-base sm:text-sm sm:leading-5"})]}),(0,a.jsx)(h.Z,{emailAddress:U,resendAction:"updateEmail",disabled:T})]}):"",""!=L?(0,a.jsx)("div",{className:"col-span-6 sm:col-span-6",children:(0,a.jsx)("div",{className:"rounded-md bg-red-50 p-4",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,a.jsxs)("div",{className:"ml-3",children:[(0,a.jsx)("h3",{className:"text-sm leading-5 font-medium text-red-800",children:"An error has occurred"}),(0,a.jsx)("div",{className:"mt-2 text-sm leading-5 text-red-700",children:L})]})]})})}):"",!0==I?(0,a.jsx)("div",{className:"col-span-6 sm:col-span-6",children:(0,a.jsx)("div",{className:"rounded-md bg-green-50 p-4",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)("svg",{className:"h-5 w-5 text-green-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),(0,a.jsx)("div",{className:"ml-3",children:(0,a.jsx)("h3",{className:"text-sm leading-5 font-medium text-green-800",children:"Email changed successfully"})})]})})}):""]})}),(0,a.jsx)("div",{className:"flex flex-row justify-end px-4 py-3 bg-slate-100 text-right sm:px-6",children:(0,a.jsx)(v.Z,{extendClassName:"w-fit",disabled:V,loading:V,onClick:e=>el(e),children:"Update"})})]})})})]})}),(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)("div",{className:"py-8",children:(0,a.jsx)("div",{className:"border-t border-gray-200"})})}),(0,a.jsx)("div",{className:"mt-10 pb-12 sm:mt-0",children:(0,a.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[(0,a.jsx)("div",{className:"md:col-span-1",children:(0,a.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,a.jsx)("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"Security"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-5 text-gray-600",children:"Manage your credentials."})]})}),(0,a.jsx)("div",{className:"mt-5 md:mt-0 md:col-span-2",children:(0,a.jsx)("form",{children:(0,a.jsxs)("div",{className:"shadow-lg overflow-hidden rounded-md",children:[(0,a.jsxs)("div",{className:"px-4 py-5 bg-white sm:p-6",children:[(0,a.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[(0,a.jsxs)("div",{className:"col-span-6 sm:col-span-4",children:[(0,a.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Old password"}),(0,a.jsx)("input",{type:"password",id:"old_password",onChange:e=>G(e.target.value),value:Y,className:"mt-1 form-input block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out text-base sm:text-sm sm:leading-5"})]}),(0,a.jsxs)("div",{className:"col-span-6 sm:col-span-3",children:[(0,a.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"New password"}),(0,a.jsx)("input",{type:"password",id:"new_password",onChange:e=>W(e.target.value),value:q,className:"mt-1 form-input block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out text-base sm:text-sm sm:leading-5"})]}),(0,a.jsxs)("div",{className:"col-span-6 sm:col-span-3",children:[(0,a.jsx)("label",{className:"block text-sm font-medium leading-5 text-gray-700",children:"Confirm new password"}),(0,a.jsx)("input",{type:"password",id:"new_password_confirm",onCh
1ange:e=>X(e.target.value),value:K,className:"mt-1 form-input block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out text-base sm:text-sm sm:leading-5"})]})]}),""!=J?(0,a.jsx)("div",{className:"col-span-6 sm:col-span-6 mt-6",children:(0,a.jsx)("div",{className:"rounded-md bg-red-50 p-4",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,a.jsxs)("div",{className:"ml-3",children:[(0,a.jsx)("h3",{className:"text-sm leading-5 font-medium text-red-800",children:"An error has occurred"}),(0,a.jsx)("div",{className:"mt-2 text-sm leading-5 text-red-700",children:J})]})]})})}):"",!0==$?(0,a.jsx)("div",{className:"col-span-6 sm:col-span-6 mt-6",children:(0,a.jsx)("div",{className:"rounded-md bg-green-50 p-4",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)("svg",{className:"h-5 w-5 text-green-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),(0,a.jsx)("div",{className:"ml-3",children:(0,a.jsx)("h3",{className:"text-sm leading-5 font-medium text-green-800",children:"Password changed successfully"})})]})})}):""]}),(0,a.jsx)("div",{className:"flex flex-row justify-end px-4 py-3 bg-slate-100 text-right sm:px-6",children:(0,a.jsx)(v.Z,{extendClassName:"w-fit",disabled:es,loading:es,onClick:e=>ec(e),children:"Change"})})]})})})]})})]})}var I=t(98789);function O(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r(),{children:[(0,a.jsx)("title",{children:"Bushride - settings"}),(0,a.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,a.jsx)(I.Z,{maxWidthSize:"max-w-7xl",children:(0,a.jsx)(_,{})})]})}O.getLayout=function(e){return(0,a.jsx)(i.Z,{children:e})}},9191:function(e,s){"use strict";s.Z={"bushride-primary-negative-200":"#F2FAF6","bushride-primary-negative-100":"#D4F0E0","bushride-primary-negative-50":"#C5EAD4","bushride-primary-0":"#B6E5C9","bushride-primary-50":"#A7E0BE","bushride-primary-100":"#98DBB3","bushride-primary-200":"#7AD09D","bushride-primary-300":"#5BC587","bushride-primary-400":"#41B772","bushride-primary-500":"#36995F","bushride-primary-600":"#2A774A","bushride-primary-700":"#1E5535","bushride-primary-800":"#123320","bushride-primary-900":"#06110B","bushride-secondary-50":"#FFF3F5","bushride-secondary-100":"#FFEBEF","bushride-secondary-200":"#FFDCE2","bushride-secondary-300":"#FFCDD6","bushride-secondary-400":"#FFBDC9","bushride-secondary-500":"#FFAEBD","bushride-secondary-600":"#FF95A8","bushride-secondary-700":"#FF7B93","bushride-secondary-800":"#FF627F","bushride-secondary-900":"#FF486A"}},29138:function(e,s,t){"use strict";t.d(s,{d:function(){return u},f:function(){return o}});var a=t(67294),n=t(59656),r=t(83619),i=t(57110),l=t(40947),c=t(68354);let d=(0,a.createContext)(null);function o(){let[e,s]=(0,a.useState)([]);return[e.length>0?e.join(" "):void 0,(0,a.useMemo)(()=>function(e){let t=(0,c.z)(e=>(s(s=>[...s,e]),()=>s(s=>{let t=s.slice(),a=t.indexOf(e);return -1!==a&&t.splice(a,1),t}))),n=(0,a.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props}),[t,e.slot,e.name,e.props]);return a.createElement(d.Provider,{value:n},e.children)},[s])]}let u=(0,r.yV)(function(e,s){let t=(0,n.M)(),{id:c="headlessui-description-".concat(t),...o}=e,u=function e(){let s=(0,a.useContext)(d);if(null===s){let s=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(s,e),s}return s}(),m=(0,l.T)(s);(0,i.e)(()=>u.register(c),[c,u.register]);let h={ref:m,...u.props,id:c};return(0,r.sY)({ourProps:h,theirProps:o,slot:u.slot||{},defaultTag:"p",name:u.name||"Description"})})},89327:function(e,s,t){"use strict";t.d(s,{q:function(){return r}});var a=t(67294),n=t(68354);function r(e,s,t){let[r,i]=(0,a.useState)(t),l=void 0!==e,c=(0,a.useRef)(l),d=(0,a.useRef)(!1),o=(0,a.useRef)(!1);return!l||c.current||d.current?l||!c.current||o.current||(o.current=!0,
1c.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(d.current=!0,c.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:r,(0,n.z)(e=>(l||i(e),null==s?void 0:s(e)))]}},22983:function(e,s,t){"use strict";function a(e,s){return e?e+"["+s+"]":s}function n(e){var s;let t=null!=(s=null==e?void 0:e.form)?s:e.closest("form");if(t){for(let e of t.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type){e.click();return}}}t.d(s,{g:function(){return n},t:function(){return function e(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[r,i]of Object.entries(s))!function s(t,n,r){if(Array.isArray(r))for(let[e,i]of r.entries())s(t,a(n,e.toString()),i);else r instanceof Date?t.push([n,r.toISOString()]):"boolean"==typeof r?t.push([n,r?"1":"0"]):"string"==typeof r?t.push([n,r]):"number"==typeof r?t.push([n,"".concat(r)]):null==r?t.push([n,""]):e(r,n,t)}(n,a(t,r),i);return n}}})}},function(e){e.O(0,[4883,120,8574,2888,9774,179],function(){return e(e.s=52837)}),_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.