PageSourceSearch

https://prod-cdn.pathwright.com/static/js/async/h.de8c1a25dc.js

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

1"use strict";(self.rspackChunk_pathwright_mainclient=self.rspackChunk_pathwright_mainclient||[]).push([["h"],{hd(e,t,a){var r=a("r"),n=a("B"),l=a("KY"),i=a("PT"),o=a("P1"),s=a("LtE");a("th1");var d=a("c5");function c(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,i.jsx)(d.A,(0,r._)({},n))}a.d(t,{},{_R:e=>(0,i.jsx)(c,(0,n._)((0,r._)({type:"text"},e),{as:o.p}))})},OP(e,t,a){a.r(t);var r=a("r"),n=a("PT"),l=a("Fr"),i=a("ag"),o=a("th1"),s=a("Zc"),d=a.n(s),c=a("yoh"),u=a("hd"),h=a("ZP9"),m=a("Ad"),x=a("RB"),p=a("vw"),f=a("iy");let g=(0,c.toFormikValidate)(f.authRequestFormSchema);t.default=e=>{let{submitButtonLabel:t,userPropertyDefaults:a,error:s,loading:c,onSubmit:f}=e,{t:j}=(0,h.R)("auth.auth_request_form");t||(t=j("send_sign_in_link"));let _=d()((0,r._)({},a),{email:""});return(0,n.jsx)(o.l1,{initialValues:_,validateOnMount:!!a,validate:g,onSubmit:()=>{},children:(0,n.jsx)(l.B.form,{onSubmit:f,w:"100%",children:(0,n.jsxs)(i.T,{gap:4,width:"100%",children:[(0,n.jsx)(m.default,{error:s}),(0,n.jsx)(u._R,{formStateKey:p.AUTH_EMAIL_STORAGE_KEY,localStorageOptions:{storageType:"session"},name:"email",type:"email",placeholder:j("enter_your_email"),disabled:c,size:"lg"}),(0,n.jsx)(x.default,{size:"lg",loading:c,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"),i=a("d8"),o=a("BQ"),s=a("ZP9");t.default=()=>{let{t:e}=(0,s.R)("auth.auth_options_divider"),t=(0,o.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)(i.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"),i=a("LQ"),o=a("sr");t.default=()=>{var e;let{space:t}=(0,i.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)(o.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"),i=a("Gq"),o=a("BQ"),s=a("ZP9"),d=a("BH"),c=a("P"),u=a("xtv"),h=a("Lke"),m=a("Tj"),x=a("J7l");let p=c.z.string().url(),f=["saml2","openid"];t.default=e=>{let{authIntent:t}=e,{inviteToken:a,createMembership:c}=(0,u.useAuthContext)(),{externalAuthMethods:g}=(0,h.useAuthMethods)(),{t:j}=(0,s.R)(),_=(0,o.dU)("brand",void 0),w=(0,o.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":w,o=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:_,w:"100%",children:(0,r.jsxs)(i.N,{href:(e=>{let{authMethod:t,authIntent:a,inviteToken:r,createMembership:n}=e,l=t.meta.url,i=encodeURIComponent((0,m.removeNonTransferrableAuthSearchParamsFromUrl)(window.location.href)),o=new URLSearchParams([["intent",a],["failure",i],["next",i]]);if(r&&o.set("invite_token",r),void 0!==n&&o.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)?o.set("next",t.data):o.delete("next")}e||o.delete("next")}return(0,m.mergeSearchParams)(l,o)})({authMethod:e,authIntent:t,inviteToken:a,createMembership:c}),target:"_blank",rel:"nofollow noopener noreferrer",children:[o,s?j(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"),i=a("M7"),o=a("e"),s=a("Gq"),d=a("Jc"),c=a("BQ"),u=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,c.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)(i.z,{className:"group",w:"100%",gap:1,pos:"relative",css:{_hover:{"& *":{textDecor:"none"}}},children:[(0,l.jsx)(o.$,(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)(u.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)(u.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"),i=a("P9"),o=a("M7"),s=a("ZP9"),d=a("xM"),c=a("xtv"),u=a("OP"),h=a("qTM"),m=a("BV"),x=a("RKi"),p=a("i4"),f=a("Kq"),g=a("Lke"),j=a("Tj"),_=a("O6");let w="sign_in:without_password";t.default=e=>{let{showPasswordOption:t,error:a,loading:v,onSubmit:P}=e,{t:T}=(0,s.R)("auth.signin_request_view"),{allowSignup:A,userPropertyDefaults:S}=(0,c.useAuthContext)(),{externalAuthMethods:b}=(0,g.useAuthMethods)(),y=(0,_.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:w}),(0,r.jsx)(u.default,{userPropertyDefaults:S,error:a,loading:v,onSubmit:P}),(t||!!b.length||A)&&(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,j.default)("../password"),w:"full",variant:"plain",textDecor:"none",children:T("sign_in_with_password")})}),!!b.length&&(0,r.jsx)(f.default,{authIntent:w}),!!b.length&&A&&(0,r.jsx)(i.h,{}),A&&(0,r.jsx)(o.z,{justifyContent:"center",children:(0,r.jsx)(d.A,{colorPalette:y,textDecor:"underline",whiteSpace:"normal",display:"inline",to:(0,j.default)("../../sign-up"),children:T("create_account")})})]})})}}}]);
2//# sourceMappingURL=h.de8c1a25dc.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.