PageSourceSearch

https://prod-cdn.pathwright.com/static/js/async/2.a9e78062fc.js

js pathwright.com collected 2026-10-02 03:20:09 UTC 6,759 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunk_pathwright_mainclient=self.rspackChunk_pathwright_mainclient||[]).push([[2],{hd(e,t,a){var r=a("r"),n=a("B"),l=a("KY"),o=a("PT"),i=a("P1"),s=a("LtE");a("th1");var d=a("c5");function u(e){let{formStateKey:t,localStorageOptions:a}=e,n=(0,l._)(e,["formStateKey","localStorageOptions"]);return(0,s.A)({keys:[e.name],formStateKey:t,localStorageOptions:a}),(0,o.jsx)(d.A,(0,r._)({},n))}a.d(t,{},{_R:e=>(0,o.jsx)(u,(0,n._)((0,r._)({type:"text"},e),{as:i.p}))})},OP(e,t,a){a.r(t);var r=a("r"),n=a("PT"),l=a("Fr"),o=a("ag"),i=a("th1"),s=a("Zc"),d=a.n(s),u=a("yoh"),c=a("hd"),h=a("ZP9"),m=a("Ad"),x=a("RB"),p=a("vw"),f=a("iy");let g=(0,u.toFormikValidate)(f.authRequestFormSchema);t.default=e=>{let{submitButtonLabel:t,userPropertyDefaults:a,error:s,loading:u,onSubmit:f}=e,{t:w}=(0,h.R)("auth.auth_request_form");t||(t=w("send_sign_in_link"));let v=d()((0,r._)({},a),{email:""});return(0,n.jsx)(i.l1,{initialValues:v,validateOnMount:!!a,validate:g,onSubmit:()=>{},children:(0,n.jsx)(l.B.form,{onSubmit:f,w:"100%",children:(0,n.jsxs)(o.T,{gap:4,width:"100%",children:[(0,n.jsx)(m.default,{error:s}),(0,n.jsx)(c._R,{formStateKey:p.AUTH_EMAIL_STORAGE_KEY,localStorageOptions:{storageType:"session"},name:"email",type:"email",placeholder:w("enter_your_email"),disabled:u,size:"lg"}),(0,n.jsx)(x.default,{size:"lg",loading:u,children:t})]})})})}},qTM(e,t,a){a.r(t);var r=a("PT"),n=a("hk"),l=a("Ad");t.default=e=>{let{authIntentKey:t}=e,a=(0,n.useAuthIntentErrorText)(t);return a?(0,r.jsx)(l.default,{error:a}):null}},RKi(e,t,a){a.r(t);var r=a("PT"),n=a("M7"),l=a("Kx"),o=a("d8"),i=a("BQ"),s=a("ZP9");t.default=()=>{let{t:e}=(0,s.R)("auth.auth_options_divider"),t=(0,i.dU)("contentTextSecondary","white");return(0,r.jsxs)(n.z,{w:"100%",children:[(0,r.jsx)(l.w,{borderBottomWidth:0,borderTopWidth:"1px",w:"full",borderColor:t}),(0,r.jsx)(o.E,{color:t,children:e("or")}),(0,r.jsx)(l.w,{borderBottomWidth:0,borderTopWidth:"1px",w:"full",borderColor:t})]})}},i4(e,t,a){a.r(t);var r=a("PT"),n=a("ag"),l=a("Ca"),o=a("LQ"),i=a("sr");t.default=()=>{var e;let{space:t}=(0,o.useSpaceContext)();return(0,r.jsxs)(n.T,{className:"AuthSpaceHeader",children:[!!(null==(e=t.meta.image)?void 0:e.src)&&(0,r.jsx)(l._,{src:t.meta.image.src,alt:"".concat(t.name," image"),maxW:"100px"}),(0,r.jsx)(i.default,{pt:".5em",pb:"1.5em",className:"theme-heading theme-heading-bold",children:t.name})]})}},Kq(e,t,a){a.r(t);var r=a("PT"),n=a("ag"),l=a("e"),o=a("Gq"),i=a("BQ"),s=a("ZP9"),d=a("BH"),u=a("P"),c=a("xtv"),h=a("Lke"),m=a("Tj"),x=a("J7l");let p=u.z.string().url(),f=["saml2","openid"];t.default=e=>{let{authIntent:t}=e,{inviteToken:a,createMembership:u}=(0,c.useAuthContext)(),{externalAuthMethods:g}=(0,h.useAuthMethods)(),{t:w}=(0,s.R)(),v=(0,i.dU)("brand",void 0),j=(0,i.dU)("outline","solid");return g.length?(0,r.jsxs)(n.T,{gap:4,w:"100%",children:[(0,r.jsx)(x.default,{}),g.map(e=>{let n=f.indexOf(e.meta.type)>-1?"solid":j,i=e.meta.icon?(0,r.jsx)(d.A,{icon:e.meta.icon}):void 0,s=["pathwright","global"].includes(e.meta.type);return(0,r.jsx)(l.$,{asChild:!0,variant:n,colorPalette:v,w:"100%",children:(0,r.jsxs)(o.N,{href:(e=>{let{authMethod:t,authIntent:a,inviteToken:r,createMembership:n}=e,l=t.meta.url,o=encodeURIComponent((0,m.removeNonTransferrableAuthSearchParamsFromUrl)(window.location.href)),i=new URLSearchParams([["intent",a],["failure",o],["next",o]]);if(r&&i.set("invite_token",r),void 0!==n&&i.set("create_membership","".concat(n)),window.location.pathname.startsWith("/auth")){let e=(0,m.getSearchParam)(window.location.href,"next");if(e){let t=[e,window.location.origin+e].map(e=>p.safeParse(e)).find(e=>e.success);(null==t?void 0:t.success)?i.set("next",t.data):i.delete("next")}e||i.delete("next")}return(0,m.mergeSearchParams)(l,i)})({authMethod:e,authIntent:t,inviteToken:a,createMembership:u}),target:"_blank",rel:"nofollow noopener noreferrer",children:[i,s?w(e.meta.title):e.meta.title]})},e.meta.key)})]}):null}},J7l(e,t,a){a.r(t);var r=a("r"),n=a("B"),l=a("PT"),o=a("M7"),i=a("e"),s=a("Gq"),d=a("Jc"),u=a("BQ"),c=a("BH"),h=a("dx"),m=a("YcW");
1t.default=function(e){let[t,a]=(0,h.useState)(0),x=((0,m.getPWAdminSSOOptions)()||[]).slice(0,1),p=(0,u.dU)("brand",void 0),f=e=>{if(e.metaKey){e.preventDefault();let t=prompt("Enter the username/email to proxy into:");null!==t&&(window.location.href=(0,m.default)("admin::".concat(t||"")))}};return x.map(t=>(0,l.jsxs)(o.z,{className:"group",w:"100%",gap:1,pos:"relative",css:{_hover:{"& *":{textDecor:"none"}}},children:[(0,l.jsx)(i.$,(0,n._)((0,r._)({asChild:!0,variant:"solid",colorPalette:p,onClick:f,w:"100%"},e),{children:(0,l.jsxs)(s.N,{href:(0,m.default)("admin::".concat(t)),children:[(0,l.jsx)(c.A,{icon:"avatar-lock"}),t?"PW Admin::".concat(t):"PW Admin"]})})),!!t&&(0,l.jsx)(d.K,{"aria-label":"Remove login option for ".concat(t),children:(0,l.jsx)(c.A,{icon:"x"}),colorPalette:p,onClick:()=>{t&&((0,m.removePWAdminSSOOption)(t),a(e=>e+1))},pos:"absolute",right:"0",display:"none",_groupHover:{display:"block"}})]},t))}},nUS(e,t,a){a.r(t);var r=a("PT"),n=a("ag"),l=a("e"),o=a("P9"),i=a("M7"),s=a("ZP9"),d=a("xM"),u=a("xtv"),c=a("OP"),h=a("qTM"),m=a("BV"),x=a("RKi"),p=a("i4"),f=a("Kq"),g=a("Lke"),w=a("Tj"),v=a("O6");let j="sign_in:without_password";t.default=e=>{let{showPasswordOption:t,error:a,loading:_,onSubmit:P}=e,{t:S}=(0,s.R)("auth.signin_request_view"),{allowSignup:T,userPropertyDefaults:A}=(0,u.useAuthContext)(),{externalAuthMethods:b}=(0,g.useAuthMethods)(),y=(0,v.default)();return(0,r.jsx)(m.default,{children:(0,r.jsxs)(n.T,{gap:4,width:"100%",children:[(0,r.jsx)(p.default,{}),(0,r.jsx)(h.default,{authIntentKey:j}),(0,r.jsx)(c.default,{userPropertyDefaults:A,error:a,loading:_,onSubmit:P}),(t||!!b.length||T)&&(0,r.jsx)(x.default,{}),t&&(0,r.jsx)(l.$,{asChild:!0,variant:"solid",colorPalette:y,w:"full",children:(0,r.jsx)(d.A,{to:(0,w.default)("../password"),w:"full",variant:"plain",textDecor:"none",children:S("sign_in_with_password")})}),!!b.length&&(0,r.jsx)(f.default,{authIntent:j}),!!b.length&&T&&(0,r.jsx)(o.h,{}),T&&(0,r.jsx)(i.z,{justifyContent:"center",children:(0,r.jsx)(d.A,{colorPalette:y,textDecor:"underline",whiteSpace:"normal",display:"inline",to:(0,w.default)("../../sign-up"),children:S("create_account")})})]})})}},A9b(e,t,a){a.r(t);var r=a("PT"),n=a("dx"),l=a("nUS"),o=a("jiP"),i=a("O0");t.default=e=>{var t;let{onSuccess:a}=e,[s,d]=(0,o.useStartAuthRequest)(),u=(null==(t=(0,i.useShowPasswordOption)().value)?void 0:t.showPasswordOption)!==!1,c=async e=>{e.preventDefault();let t=new FormData(e.currentTarget);await d(t)};return(0,n.useEffect)(()=>{s.value&&a(s.value)},[s.value]),(0,r.jsx)(l.default,{showPasswordOption:u,loading:s.loading,success:!!s.value,error:s.error,onSubmit:c})}}}]);
2//# sourceMappingURL=2.a9e78062fc.js.map

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.