PageSourceSearch

https://agora.gentlemenoftheroad.com/_next/static/chunks/1423-786afcbb1e0154aa.js

js gentlemenoftheroad.com collected 2026-10-02 09:57:14 UTC 8,777 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1423],{4778:(e,r,t)=>{t.d(r,{U:()=>u});var o=t(26514),n=t(47977),a=t.n(n);t(75834);var i=t(30681),s=t(61525),l=t(57355);let d=e=>{let{message:r,mailSubject:t}=e,{t:n}=(0,s.Bd)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:a().dynamic([["4ae554d383061ed5",[l.Jy.white]]]),children:r})," ",n("common:support.needHelp")," ",(0,o.jsx)("a",{href:(0,i.H)({subject:t,to:"[email protected]"}),target:"_blank",rel:"noopener noreferrer",className:a().dynamic([["4ae554d383061ed5",[l.Jy.white]]]),children:n("common:support.contactSupport")}),(0,o.jsx)(a(),{id:"4ae554d383061ed5",dynamic:[l.Jy.white],children:"a.__jsx-style-dynamic-selector{color:".concat(l.Jy.white,"}")})]})},u=(e,r)=>(0,o.jsx)(d,{message:e,mailSubject:r})},42717:(e,r,t)=>{t.d(r,{j0:()=>l});var o=t(61471);function n(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.Ay.warn(e,{"security.event":!0,"page.url":window.location.href,...r})}function a(e,r){n("security.redirect.rejected",{"redirect.requested_url":e,"redirect.sanitized_url":r})}function i(e){n("security.path.blocked",{"request.blocked_path":e})}function s(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("security.suspicious_activity",{"security.activity":e,...r})}function l(){return{logSecurityEvent:n,logInvalidRedirect:a,logBlockedPathAccess:i,logSuspiciousActivity:s}}},49978:(e,r,t)=>{t.d(r,{n:()=>n});var o=t(75834);let n=()=>{let[e,r]=(0,o.useState)("undefined"==typeof navigator||"boolean"!=typeof navigator.onLine||navigator.onLine),t=()=>r(!0),n=()=>r(!1);return(0,o.useEffect)(()=>(window.addEventListener("online",t),window.addEventListener("offline",n),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}),[]),e}},50061:(e,r,t)=>{t.d(r,{X:()=>h});var o=t(61471),n=t(75834),a=t(50812),i=t(66405),s=t(54681),l=t(61525);function d(e){return"ValidationError"===e.__typename}var u=t(48745),c=t(84497),m=t(4778),f=t(84539);function h(e){let{mutation:r,defaultValues:t,validationSchema:h,getMutationVariables:v,getMutationResponse:g,beforeSubmit:p,onSuccess:w,handleResponse:y=()=>!1}=e,{endSession:b}=(0,c.w)(),{t:E}=(0,l.Bd)(["forms","common"]),[j,x]=(0,n.useState)(),[k,_]=(0,n.use
1State)(null),[S,{error:L,loading:C,data:z}]=(0,a.n_)(r,{onError:e=>{o.Ay.error("mutation_form.submit_failed",{...(0,o.eM)(e)})}}),M=g&&g(z),{register:A,handleSubmit:N,setValue:q,formState:B,clearErrors:K,getValues:I,watch:R}=(0,i.mN)({...h&&{resolver:(0,s.t)(h)},defaultValues:t}),T=B.errors,D=(0,f.A)();(0,n.useEffect)(()=>{if(L){let e=null==L?void 0:L.message.replace(/GraphQL error\: /g,"");(null==L?void 0:L.networkError)&&(e=E("common:errors.networkError")),(0,u.wA)(L)&&(e=E("common:errors.internalError")),x((0,m.U)(e,"Form support - ".concat(e))),(0,u.HY)(L)&&b()}},[L]),(0,n.useEffect)(()=>{T&&Object.keys(T).length&&x(E("formErrors.validation"))},[T]),(0,n.useEffect)(()=>{let e=null==M?void 0:M.code;if(M&&e&&!y(M,x,_))switch(e){case 200:case 201:M&&w(M);break;case 401:b();break;default:x((null==M?void 0:M.message)?D(M.message):E("formErrors.validation")),_(null==M?void 0:M.errors)}},[null==M?void 0:M.code]),(0,n.useEffect)(()=>{Object.keys(t).forEach(e=>{A(e)})},[A]);let F=e=>{S({variables:v(e)})};return{formError:j,handleSubmit:e=>{null==p||p(),Object.keys(t).forEach(e=>{K(e)}),_(null),x(void 0),N(F)(e)},loading:C,data:z,handleChange:e=>r=>{if(!(e in t))return void o.Ay.warn("mutation_form.field_not_in_defaults",{"form.field_name":e});q(e,r,{shouldValidate:!1,shouldDirty:!0}),K&&K(e),_(k?k.filter(r=>!d(r)||r.path!==e):null)},getErrorsForField:e=>{var r;return(null==T?void 0:T[e])?[null==(r=T[e])?void 0:r.message]:((e,r)=>{if(e)return e.filter(e=>!!d(e)&&e.path===r).map(e=>e.message)})(k,e)},setValue:(e,r,t)=>{q(e,r,t)},getValues:I,watch:R,formState:B}}},61423:(e,r,t)=>{t.d(r,{Q:()=>_});var o=t(26514),n=t(47977),a=t.n(n),i=t(75834),s=t(61525),l=t(57355),d=t(46225),u=t(93260),c=t(99113),m=t(92263),f=t(50061),h=t(84497),v=t(5588),g=t(70611),p=t(42717),w=t(87931),y=t(246);let b=y.Ik().shape({email:y.Yj().email("i18n:fieldErrors.email.invalid").required("i18n:fieldErrors.email.required"),password:y.Yj().required("i18n:fieldErrors.password.required")});var E=t(4778),j=t(65219),x=t(41652),k=t(17347);let _=e=>{let{themeColor:r,artistName:t,dark:n=!1,darkButtonText:y=!1,setSessionRedirectEnabled:_,hotjarValue:S,defaultSuccessHref:L="/my-profile"}=e,{t:C}=(0,s.Bd)(["forms","common"]),z=(0,d.useRouter)(),M=(0,v.R)(),A="string"==typeof z.query.slug?z.query.slug:void 0,{trackEvent:N}=(0,x.$)(),q=n||!r,B=y||!r,{updateLanguage:K}=(0,j.o)(),{startSession:I}=(0,h.w)(),{logInvalidRedirect:R}=(0,p.j0)(),[T,D]=(0,i.useState)(!1),{loading:F,formError:V,getErrorsForField:O,handleChange:P,handleSubmit:J}=(0,f.X)({validationSchema:b,mutation:w.CO,defaultValues:{email:"",password:""},getMutationVariables:e=>({input:e}),getMutationResponse:e=>null==e?void 0:e.login,beforeSubmit:()=>{null==_||_(!1)},onSuccess:e=>{var r,t,o;if(!(null==e?void 0:e.token)||!(null==e||null==(r=e.fan)?void 0:r.id)||!(null==e||null==(t=e.fan)?void 0:t.email))throw Error("Login missing token of fan id");I({token:e.token}),(0,k.nK)(e.fan.email),(0,k.ls)(e.fan.email,{email:e.fan.email,user_id:e.fan.id}),(0,k.u4)(k.qY.LOGIN_SUCCEEDED,{artist:A,method:"password"});let n=(null==e||null==(o=e.fan)?void 0:o.language)||"en";if(K(n),M){let e=(0,g.z6)(M.nextHref,L,{logInvalidRedirect:R});z.replace(e,e,{locale:n})}else z.replace(L,L,{locale:n})},handleResponse:(e,r,o)=>{switch(null==e?void 0:e.code){case 401:return r(C("formErrors.validation")),o(e.errors),(0,k.u4)(k.qY.LOGIN_FAILED,{artist:A,error_type:"unauthorized"}),!0;case 422:return r((0,E.U)(null==e?void 0:e.message,C("signIn.supportSubject",{artistName:t}))),o(e.errors),D(!0),(0,k.u4)(k.qY.LOGIN_FAILED,{artist:A,error_type:"validation"}),!0}return!1}}),Y=()=>{J(),N(S)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("form",{onSubmit:Y,className:a().dynamic([["6474fa239b02d858",[l.Kz.M]]]),children:[V&&(0,o.jsx)("div",{className:a().dynamic([["6474fa239b02d858",[l.Kz.M]]])+" form-content-row",children:(0,o.jsx)(c.C,{children:V})}),(0,o.jsx)("div",{className:a().dynamic([["6474fa239b02d858",[l.Kz.M]]])+" form-content-row",children:(0,o.jsx)(m.ks,{themeColor:r,labelText:C("fields.email"),id:"signInFormEmail",dark:q,onSubmitEditing:Y,errors:O("email"),onChangeText:P("email"),keyboardType:"email-address",autoComplete:"email"})}),(0,o.jsx)("div",{className:a().dynamic([["6474fa239b02d858",[l.Kz.M]]])+" form-content-row",children:(0,o.jsx)(m.ks,{themeColor:r,labelText:C("fields.password"),id:"signInFormPassword",dark:q,secureTextEntry:!0,showSecureText:!0,showButtonText:C("showPasswordLabelShort"),hideButtonText:C("hidePasswordLabelShort"),showButtonA11yLabel:C("showPasswordLabelLong"),autoComplete:"current-password",onSubmitEditing:Y,errors:O("password"),onChangeText:P("password")})}),(0,o.jsx)("div",{className:a().dynamic([["6474fa239b02d858",[l.Kz.M]]])+" form-content-row",children:(0,o.jsx)(u.b,{onPress:Y,dark:B,loading:F,theme
1Color:r,disabled:T,children:C("signIn.submitButton")})})]}),(0,o.jsx)(a(),{id:"6474fa239b02d858",dynamic:[l.Kz.M],children:".form-content-row.__jsx-style-dynamic-selector{margin-bottom:".concat(l.Kz.M,"px}")})]})}},84539:(e,r,t)=>{t.d(r,{A:()=>a});var o=t(61525);let n="i18n:",a=()=>{let{t:e}=(0,o.Bd)("forms");return r=>r.startsWith(n)?e(r.substr(n.length)):r}},92263:(e,r,t)=>{t.d(r,{ks:()=>i,yL:()=>s});var o=t(26514);t(75834);var n=t(5148),a=t(84539);let i=e=>{let r=(0,a.A)();return(0,o.jsx)(n.ks,{...e,formatError:r})},s=e=>{let r=(0,a.A)();return(0,o.jsx)(n.yL,{...e,formatError:r})}},93260:(e,r,t)=>{t.d(r,{b:()=>s});var o=t(26514);t(75834);var n=t(66720),a=t(49978),i=t(61525);let s=e=>{let{children:r,onPress:t,dark:s,loading:l,disabled:d,themeColor:u,buttonRef:c,loadingText:m,progressBarColor:f}=e,h=(0,a.n)(),{t:v}=(0,i.Bd)("forms");return(0,o.jsx)(n.pS,{onPress:t,loadingText:m||v("buttons.loadingMessage"),offlineMessage:v("buttons.offlineMessage"),dark:s,offline:!h,loading:l,disabled:d,themeColor:u,buttonRef:c,progressBarColor:f,children:r})}},99113:(e,r,t)=>{t.d(r,{C:()=>u});var o=t(26514),n=t(75834),a=t(77535),i=t(86780),s=t(99518),l=t(57355);let d=a.A.create({messageView:{backgroundColor:l.Jy.errorRed,borderRadius:4,paddingVertical:l.Kz.XS,paddingHorizontal:l.Kz.M,flexDirection:"row"},emoji:{marginRight:l.Kz.XS}}),u=e=>{let{children:r}=e,t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{t.current&&t.current.focus()},[]),(0,o.jsxs)(i.A,{style:d.messageView,ref:t,focusable:!1,children:[(0,o.jsx)(s.E,{size:l.s.S,style:d.emoji,children:"\uD83D\uDC4B"}),(0,o.jsx)(s.E,{color:l.Jy.white,size:l.s.XS,textProps:{accessibilityRole:"alert"},children:r})]})}}}]);

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.