PageSourceSearch

https://www.masterworks.com/assets/useLogin.zNhQ_uIv.js

js masterworks.com collected 2026-10-02 03:10:41 UTC 1,408 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime.B0Z9INg1.js";import{c as t}from"./AuthStore.CbPSMg8S.js";import{r as n}from"./extractUtmTags.0B0gzb8e.js";import{t as r}from"./react.Cb6SgrTu.js";import{d as i}from"./dist.DkwgUMUW.js";import{n as a}from"./AuthContext.Cn_HxtCv.js";import{n as o}from"./Store.jhRTdxJZ.js";import{t as s}from"./getRedirectUrlParams.Bs1z2lWS.js";var c=e(r(),1),l=[`linkedin`,`google`,`facebook`,`apple`],u=(e,t)=>{let r=t?.last,i=new URLSearchParams(e.search),a=i.get(`invitee_full_name`),o=i.get(`mw_phone_hint`),s=i.get(`kc_idp_hint`),c=i.get(`id_token_hint`),u=i.get(`login_hint`),d=i.get(`name_hint`),f=i.get(`invited_by`),p=i.get(`sidebar`),m=r?n(r):{};return c&&(m.id_token_hint=c),u&&(m.login_hint=u),d&&(m.name_hint=d),a&&(m.invitee_full_name=a),f&&(m.invited_by=f),o&&(m.mw_phone_hint=o),p&&(m.sidebar=p),s&&l.find(e=>e===s)&&(m.kc_idp_hint=s),m},d=()=>{let e=new URLSearchParams(location.search).getAll(`scopes`);if(e.push(`mw-user-attribution`),e.push(`phone`),e.length)return e.join(` `)},f=()=>{let e=o(`attributionStore`,!0),n=a(),r=i();return{login:(0,c.useCallback)(async i=>{let a;if(i?.redirectUrl){let e=new URL(i.redirectUrl,window.location.origin);a={redirectPathname:e.pathname,redirectSearch:e.search}}else a=s(r);await n.authenticate({memo:a,additionalParams:{...u(r,e),...i?.additionalParams},additionalScope:d()}).catch(t)},[e,n,r])}};export{d as n,f as r,u as t};

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.