1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8326],{66361:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app-web/account",function(){return s(76854)}])},76854:function(e,t,s){"use strict";s.r(t);var n=s(85893),l=s(67294),i=s(41664),a=s.n(i),c=s(77058),r=s(29238),o=s(28359);function MenuItem(e){let{title:t,onClick:s=()=>{},link:l}=e;return l?(0,n.jsxs)(a(),{href:l,className:"flex w-full items-center justify-between border-b border-gray-200 px-4 py-3",children:[(0,n.jsx)("span",{className:"font-circular text-base font-book text-squid-ink",children:t}),(0,n.jsx)("span",{className:"text-xl text-chia-seed",children:"âº"})]}):(0,n.jsxs)("button",{type:"button",onClick:s,className:"flex w-full items-center justify-between border-b border-gray-200 px-4 py-3",children:[(0,n.jsx)("span",{className:"font-circular text-base font-book text-squid-ink",children:t}),(0,n.jsx)("span",{className:"text-xl text-chia-seed",children:"âº"})]})}function BottomMenuItem(e){let{title:t,link:s}=e;return(0,n.jsx)(a(),{href:s,className:"flex w-full items-center justify-between px-4 py-3",children:(0,n.jsx)("span",{className:"font-circular text-sm font-book text-kale",children:t})})}t.default=function(){let{webViewState:e}=(0,l.useContext)(c.Z),[t,s]=(0,l.useState)(""),[i,m]=(0,l.useState)("");(0,l.useEffect)(()=>{o.ZP.isNativeApiAvailable(o.RU.getAppVersion)&&o.ZP.getAppVersion().then(e=>{m(e)}).catch(e=>{console.error(e)})},[]),(0,l.useEffect)(()=>{(null==e?void 0:e.isWebView)&&(null==e?void 0:e.isWebViewAuthenticated)&&o.ZP.isNativeApiAvailable(o.RU.getCustomerName)&&o.ZP.getCustomerName().then(e=>{s(e)}).catch(e=>{console.error(e)})},[null==e?void 0:e.isWebView,null==e?void 0:e.isWebViewAuthenticated]);let u=!!(null==e?void 0:e.isWebViewAuthenticated);return(null==e?void 0:e.isWebView)?(0,n.jsxs)("div",{className:"flex min-h-screen flex-col bg-gray-50 font-circular",children:[(0,n.jsx)("div",{className:"border-b border-gray-200 bg-gray-50 px-4 py-10",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-gray-200",children:(0,n.jsx)("span",{className:"text-gray-600",children:"\uD83D\uDC64"})}),u?(0,n.jsxs)("div",{className:"ml-3 flex flex-col",children:[(0,n.jsxs)("p",{className:"text-base font-medium text-squid-ink",children:["Hi, ",t||"there"]}),(0,n.jsx)("button",{type:"button",onClick:()=>{o.ZP.logoutFromApp().catch(e=>{console.error(e)})},className:"text-base font-medium text-kale",children:"Sign out"})]}):(0,n.jsx)("div",{className:"ml-3 flex flex-col",children:(0,n.jsx)("button",{type:"button",onClick:()=>{let e=(0,r.sanitize)(window.location.href),t=new URL(e);t.searchParams.set("source","webApp"),t.searchParams.set("authenticated","yes"),o.ZP.loginFromApp(t.href).catch(e=>{console.error(e)})},className:"text-base font-medium text-kale",children:"Sign in"})})]})}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"bg-white",children:[u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(MenuItem,{title:"Use my mobile number",link:"https://www.amazon.com/wholefoodsapp/app/v1/content/phonenumbermanagement/index.html"}),(0,n.jsx)(MenuItem,{title:"Notifications",onClick:()=>{o.ZP.openNotificationSettings().catch(e=>{console.error(e)})}}),(0,n.jsx)(MenuItem,{title:"Your Orders",link:"/account/orders"}),(0,n.jsx)(MenuItem,{title:"Receipt Preferences",link:"https://www.amazon.com/wwgs/customer-contact-preferences/wwgs-contact-preferences"})]}):null,(0,n.jsx)(MenuItem,{title:"Help & Legal",link:"https://www.amazon.com/wholefoodsapp/app/v1/content/account/help.html"})]}),(0,n.jsxs)("div",{className:"mt-4 bg-gray-50",children:[u?(0,n.jsx)(BottomMenuItem,{title:"Close Your Amazon Account",link:"https://www.amazon.com/gp/help/customer/display.html?nodeId=GDK92DNLSGWTV6MP&browser=true"}):null,(0,n.jsx)(BottomMenuItem,{title:"Your Ads Privacy Choices",link:"https://www.amazon.com/privacyprefs?browser=true"})]})]}),(0,n.jsx)("div",{className:"p-4 text-right",children:(0,n.jsx)("span",{className:"font-circular text-xs text-chia-seed",children:i})})]}):(0,n.jsx)("div",{className:"flex min-h-screen flex-col items-center bg-gray-50 p-6 font-circular",children:(0,n.jsxs)("div",{className:"max-w-md rounded-lg bg-white p-8 text-center shadow-md",children:[(0,n.jsx)("h2",{className:"mb-4 text-2xl font-medium text-squid-ink",children:"Not Supported"}),(0,n.jsx)("p",{className:"mb-6 text-gray-600",children:"The platform is not supported."}),(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(a(),{href:"/",className:"rounded-md bg-kale px-6 py-2 text-salt",children:"Go to homepage"})})]})})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=66361)}),_N_E=e.O()}]);
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.