PageSourceSearch

https://www.myposter.de/_nuxt/B261r8Jy.js

js myposter.de collected 2026-10-01 12:20:21 UTC 2,760 bytes, 1 lines download raw bytes

1import{a as e}from"./BsfI1waD.js";import{Ht as t}from"./DBq4UlV4.js";import{m as n}from"./BQ3X4EG0.js";import{t as r}from"./DmnLAU2j.js";import{t as i}from"./C06xcKA_.js";import{E as a,G as o,w as s,wt as c}from"./ChQdSMSK.js";import{r as l}from"./D2AZapgy.js";import"./BUbSHu5v.js";import{t as u}from"./CbRJQYM5.js";import{C as d}from"./DlTq1xPB.js";var f=()=>{let f=i(`customer-initial-load`,()=>!0),p=i(`customer-initializing`,()=>!0),m=i(`customer-data-loaded`,()=>!1),{$fetchShop:h}=e(),g=u(c()),_=i(`customer`,()=>({emailHash:``,firstName:``,fullName:``,isLoggedIn:!1,isNewsletterSubscriber:!1,isWhitelabelCustomer:!1,lastName:``,number:``,order:null,type:0})),v=e=>({body:e,credentials:`include`,method:s.POST}),y=n(),b=r(`referer`)||document?.referrer,x=({emailHash:e,firstName:t,isLoggedIn:n=!1,isNewsletterSubscriber:r,isWhitelabelCustomer:i,lastName:a,number:o,order:s,type:c})=>{_.value={..._.value,emailHash:e??``,firstName:t??``,fullName:n?`${t??``} ${a??``}`:``,isLoggedIn:n,isNewsletterSubscriber:r??!1,isWhitelabelCustomer:i??!1,lastName:a??``,number:o??``,order:s??_.value.order,type:c??0}},S=async()=>{try{let{payload:{emailHash:e,firstName:t,isLoggedIn:n,isNewsletterSubscriber:r,isWhitelabelCustomer:i,lastName:a,number:s,order:c,type:l}}=await h(o.CUSTOMER_DATA_API_URL,{credentials:`include`,headers:{"X-Referrer":b},query:y.query});x({emailHash:e,firstName:t,isLoggedIn:n,isNewsletterSubscriber:r,isWhitelabelCustomer:i,lastName:a,number:s,order:c,type:l}),m.value=!0}catch{}},C=async e=>{await S(),_.value.isLoggedIn||x({...e,isLoggedIn:!0})},w=async e=>{try{let{payload:t}=await h(o.CUSTOMER_LOGIN_API_URL,v(e));return x({...t,isLoggedIn:!0}),await C(t),{error:!1}}catch(e){return e.statusCode!==400&&a.error(l.LOG_IN,{error:e}),{error:!0,errorMessage:e.data?.message.text}}},T=async e=>{try{let{payload:t}=await h(o.CUSTOMER_SIGN_UP_API_URL,v(e));return x({...t,isLoggedIn:!0}),await C(t),{error:!1}}catch(e){return e.statusCode!==400&&a.error(l.SIGN_UP,{error:e}),{error:!0,errorFields:e.data?.payload.errors,errorMessage:e.data?.message.text}}},E=async e=>{try{return await h(o.CUSTOMER_PASSWORD_RESET_API_URL,v({email:e})),{error:!1}}catch(e){return a.error(l.PASSWORD_RESET,{error:e}),{error:!0,errorMessage:e.data?.message.text}}},D=e=>{_.value.order?_.value.order.isWhitelabelOrder=e:_.value.order={isWhitelabelOrder:e}},O=async()=>{f.value&&(f.value=!1,await S(),p.value=!1,window.dataLayer?.push({customer:{isLoggedIn:_.value.isLoggedIn}}))};return d(()=>{O()}),t(()=>_.value.number,e=>{window?.FS?.(`setIdentity`,{properties:{displayName:_.value.fullName},uid:e})}),{customer:_,isCustomerDataLoaded:m,isInitializing:p,logIn:w,resetPassword:E,sessionId:g,setIsWhitelabelOrder:D,signUp:T,updateCustomerData:S}};export{f 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.