PageSourceSearch

https://prod-cdn.pathwright.com/static/js/async/o.b3eaad17d8.js

js pathwright.com collected 2026-10-02 03:21:11 UTC 5,678 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunk_pathwright_mainclient=self.rspackChunk_pathwright_mainclient||[]).push([["o"],{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 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,o.jsx)(d.A,(0,r._)({},n))}a.d(t,{},{_R:e=>(0,o.jsx)(c,(0,n._)((0,r._)({type:"text"},e),{as:i.p}))})},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"),c=a("P"),h=a("xtv"),u=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,h.useAuthContext)(),{externalAuthMethods:g}=(0,u.useAuthMethods)(),{t:v}=(0,s.R)(),j=(0,i.dU)("brand",void 0),_=(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":_,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:j,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:c}),target:"_blank",rel:"nofollow noopener noreferrer",children:[i,s?v(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"),c=a("BQ"),h=a("BH"),u=a("dx"),m=a("YcW");t.default=function(e){let[t,a]=(0,u.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)(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)(h.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)(h.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))}},JJ4(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),c=a("yoh"),h=a("hd"),u=a("ZP9"),m=a("Ad"),x=a("RB"),p=a("vw"),f=a("tKy");let g=(0,c.toFormikValidate)(f.schema);t.default=e=>{let{inviteToken:t,userPropertyDefaults:a,allowSignup:s,error:c,loading:f,onSubmit:v}=e,{t:j}=(0,u.R)("auth.sign_in_form"),_=d()((0,r._)({},a),{email:"",allowSignup:s});return(0,n.jsx)(i.l1,{initialValues:_,validateOnMount:!!a,validate:g,onSubmit:()=>{},children:(0,n.jsx)(l.B.form,{onSubmit:v,w:"100%",children:(0,n.jsxs)(o.T,{gap:4,width:"100%",children:[(0,n.jsx)(m.default,{error:c}),(0,n.jsx)(i.D0,{name:"allowSignup",type:"checkbox",checked:!!s,value:s?"true":"false",hidden:!0}),!!t&&(0,n.jsx)(i.D0,{type:"text",name:"inviteToken",value:t,hidden:!0,readOnly:!0}),(0,n.jsx)(h._R,{formStateKey:p.AUTH_EMAIL_STORAGE_KEY,localStorageOptions:{storageType:"session"},name:"email",type:"text",placeholder:"".concat(j("email_placeholder"),"..."),disabled:f,size:"lg"}),(0,n.jsx)(x.default,{size:"lg",loading:f,children:j("continue")})]})})})}},Sqm(e,t,a){a.r(t);var r=a("r"),n=a("B"),l=a("PT"),o=a("ag"),i=a("xtv"),s=a("BV"),d=a("RKi"),c=a("i4"),h=a("Kq"),u=a("Lke"),m=a("JJ4");t.default=e=>{let{inviteToken:t,userPropertyDefaults:a,allowSignup:x}=(0,i.useAuthContext)(),{pathwrightAuthMethod:p,externalAuthMethods:f}=(0,u.useAuthMethods)();return(0,l.jsx)(s.default,{children:(0,l.jsxs)(o.T,{gap:4,w:"100%",children:[(0,l.jsx)(c.default,{}),!!p&&(0,l.jsx)(m.default,(0,n._)((0,r._)({},e),{inviteToken:t,userPropertyDefaults:a,allowSignup:x})),!!p&&!!f.length&&(0,l.jsx)(d.default,{}),!!f.length&&(0,l.jsx)(h.default,{authIntent:"sign_in_or_sign_up"})]})})}}}]);
2//# sourceMappingURL=o.b3eaad17d8.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.