PageSourceSearch

https://lazyfoods.netlify.app/_nuxt/_handle_.09439442.js

js lazyfoods.netlify.app collected 2026-10-03 10:59:57 UTC 2,948 bytes, 1 lines download raw bytes

1import{B as p,C as f,y as b,D as g,s as N,E as x,u as t,e as i,j as e,t as u,p as n,k,m as w,H as A,q as C,x as z,o as d,I as B,J as D}from"./entry.40b88509.js";const S={key:0,id:"account"},V={key:0},j=e("h2",{class:"text-3xl mt-6"},"Addresses",-1),E=["value"],I=["value"],P=["value"],$=["value"],q=["value"],F=["value"],H=["value"],L=["value"],M=["value"],R=["value"],T={class:"ctas mt-4"},U=e("button",{type:"submit"},"Update",-1),G={key:1},J=e("div",{class:"flex flex-col justify-center items-center w-full py-10 md:py-20"},[e("h1",{class:"text-5xl-mobile md:text-5xl"},"Loading")],-1),O=[J],Q={__name:"[handle]",setup(Z){const a=p().value;p().value;const _=f(),c=b("form"),s=g("address",()=>null),r=_.currentRoute.value.params.handle;N(`Address ${r}`,"Italian pasta dishes with no perservatives designed by a Sicilian Chef.");const v=()=>{s.value=Object.entries(a.customer.addresses.edges)[r][1].node};x(()=>a.customer,()=>{a.customer&&v()});const h=async m=>{const o=B("lazy_token"),l=new FormData(c.value);await D({address:{firstName:l.get("firstName"),lastName:l.get("lastName"),address1:l.get("address1"),address2:l.get("address2"),city:l.get("city"),company:l.get("company"),country:l.get("country"),phone:l.get("phone"),province:l.get("province"),zip:l.get("zip")},customerAccessToken:o,id:m}).then(y=>{window.location="/account"})};return(m,o)=>{const l=z;return t(a).customer&&t(s)?(d(),i("section",S,[e("h1",null,"Hello: "+u(t(a).customer.firstName)+" "+u(t(a).customer.lastName),1),e("p",null,"Email: "+u(t(a).customer.email),1),e("p",null,"Phone: "+u(t(a).customer.phone||"no phone"),1),t(s)?(d(),i("div",V,[j,e("form",{onSubmit:o[0]||(o[0]=A(y=>h(t(s).id),["prevent"])),ref_key:"form",ref:c},[e("div",null,[e("label",null,[n("First Name: "),e("input",{value:t(s).firstName||"null",name:"firstName"},null,8,E)])]),e("div",null,[e("label",null,[n("Last Name: "),e("input",{value:t(s).lastName||"null",name:"lastName"},null,8,I)])]),e("div",null,[e("label",null,[n("Phone: "),e("input",{value:t(s).phone||"null",name:"phone"},null,8,P)])]),e("div",null,[e("label",null,[n("Address: "),e("input",{value:t(s).address1||"null",name:"address1"},null,8,$)])]),e("div",null,[e("label",null,[n("Address2: "),e("input",{value:t(s).address2||"null",name:"address2"},null,8,q)])]),e("div",null,[e("label",null,[n("Company: "),e("input",{value:t(s).company||"null",name:"company"},null,8,F)])]),e("div",null,[e("label",null,[n("City: "),e("input",{value:t(s).city||"null",name:"city"},null,8,H)])]),e("div",null,[e("label",null,[n("Zip: "),e("input",{value:t(s).zip||"null",name:"zip"},null,8,L)])]),e("div",null,[e("label",null,[n("Province: "),e("input",{value:t(s).province||"null",name:"province"},null,8,M)])]),e("div",null,[e("label",null,[n("Country: "),e("input",{value:t(s).country||"null",name:"country"},null,8,R)])]),e("div",T,[k(l,null,{default:w(()=>[U]),_:1})])],544)])):C("",!0)])):(d(),i("section",G,O))}}};export{Q as default};

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.