PageSourceSearch

https://www.article.com/assets/AccountPage.5af836a8.js

js article.com collected 2026-09-24 08:50:49 UTC 5,054 bytes, 8 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1dfaca1b-ed1e-4efe-a255-02679c132019",e._sentryDebugIdIdentifier="sentry-dbid-1dfaca1b-ed1e-4efe-a255-02679c132019")}catch(H){}import{c7 as e,c$ as t,c9 as a,ca as o,cs as s,cx as r,cf as n,ce as c,d0 as i,ct as d,cy as l,d1 as u,cc as m,b$ as g,dn as p,cj as y,dJ as h,gZ as f,g_ as v,c1 as b,g$ as w,c2 as k,cN as T,cZ as j,cG as I,cb as A,cJ as R,cI as E,cK as _,cL as C,c3 as P}from"./index.061e774e.js";import{E as D}from"./EcommerceRecommender.27a2969f.js";import{u as L}from"./useAutomatedReturnsExchange.0d47042d.js";import{u as O}from"./useAccount.6f1cf333.js";import"./ProductCarousel.46034838.js";import"./BundleProduct.da5ee774.js";import"./ProductBadgeV2.8a0c29d4.js";import"./Product.35fc4e5d.js";import"./mediaUtils.018d7373.js";import"./AddToCartButton.7aa082a0.js";import"./useAddToCart.5a80e920.js";import"./DeviceUtils.44556013.js";import"./Swipe.0435a3f8.js";import"./ContentfulHeading.326f5d3e.js";import"./slugify.a1a5eaaf.js";import"./useProduct.bdc14900.js";import"./EventAnalytics.7c2eca63.js";const x={key:0,class:"faq"},M={class:"faq-spacing"},U=["href"];const $={key:0,class:"account-page background-grey"},Q={class:"account container"},q={class:"account-heading"},B=["textContent"],F={class:"account-container"},W={class:"account-navigation"},z={class:"account-spacing"};var G=e({components:{TrackingFAQ:e({name:"TrackingFAQ",components:{Typography:t},data:()=>({faqLinks:[{title:"How can I make sure my delivery goes smoothly?",url:"/help-center/delivery#how-can-i-make-sure-my-delivery-goes-smoothly"},{title:"What do the order statuses mean?",url:"/help-center/delivery#what-do-the-order-statuses-mean"},{title:"The first day of my ETA window has passed. Why haven’t I heard anything about my delivery?",url:"/help-center/delivery#the-first-day-of-my-eta-window-has-passed-why-haven-t-i-heard-anything-about-my-delivery"},{title:"My order hasn’t progressed from Processing status. Is there something wrong?",url:"/help-center/delivery#my-order-hasn-t-progressed-from-processing-status-is-there-something-wrong"}]})},[["render",function(e,t,g,p,y,h){const f=a("Typography");return e.$route.fullPath.match(".*/account/orders/.*?/track.*")?(o(),s("div",x,[r("div",M,[n(f,{element:"h2",size:"display6",weight:"light"},{default:c((()=>t[0]||(t[0]=[i("Relevant Topics",-1)]))),_:1,__:[0]}),(o(!0),s(d,null,l(y.faqLinks,((e,t)=>(o(),s("div",{key:t,class:"link"},[r("a",{href:e.url},u(e.title),9,U)])))),128))])])):m("",!0)}],["__scopeId","data-v-6cf65b7d"]]),EcommerceRecommender:D},setup(){const{trackingPage:e,getAccountOrder:t}=O(),a=g(),{setUser:o,setCustomerToken:s}=p(),r=y(!1),{assignedVariant:n}=h(v,f),c=b((()=>n.value===w));L(),a.currentRoute.value.params.orderId&&t(a.currentRoute.value.params.orderId);const i=b((()=>{var t,o;const s=a.currentRoute.value.params.orderId,r=(null==(o=null==(t=e.value)?void 0:t.order)?void 0:o.items)||[];return s&&r.length>0?r.map((e=>e.productId)):[]})),d=b((()=>{var e,t;return!(!(null==(e=a.currentRoute.value.fullPath)?void 0:e.match(".*/account/orders/\\d+/track.*"))||!(null==(t=i.value)?void 0:t.length))}));return k((()=>{r.value=!0})),{mounted:r,logout:async function(){const{mutate:e}=R(E`
2        mutation LOGOUT {
3          logout {
4            success
5          }
6        }
7      `);try{await e(),_.remove(C.QUOTE_ID),_.remove(C.QUOTE_ROOM_ID),T.setCart(null),window.location.href="/"}catch(t){P.sentryCaptureError(t)}o(null),s(null)},isReviewRedesignEnabled:c,getAccountOrder:t,productIds:i,shouldDisplayEcommerceRecommender:d}},data:()=>({myAccountTitle:"My Account"}),beforeMount(){T.isTrade()&&(this.myAccountTitle="My Pro Account")}},[["render",function(e,t,c,i,d,l){const g=a("router-view"),p=a("TrackingFAQ"),y=a("EcommerceRecommender");return i.mounted?(o(),s("div",$,[r("div",Q,[r("div",q,[r("h2",{class:"light uppercase",textContent:u(d.myAccountTitle)},null,8,B),r("div",null,[r("a",{href:"/logout",class:"button small tertiary desktop-only","aria-label":"Logout",onClick:t[0]||(t[0]=j(((...e)=>i.logout&&i.logout(...e)),["prevent"]))}
7,"Logout"),r("a",{href:"/logout",class:"button tiny tertiary mobile-only","aria-label":"Logout",onClick:t[1]||(t[1]=j(((...e)=>i.logout&&i.logout(...e)),["prevent"]))},"Logout")])]),r("div",F,[r("div",W,[n(g,{name:"navigation"})]),r("div",{class:I(["account-content",{"account-content-hidden":"menu"===e.$route.name,"old-2023-07":!i.isReviewRedesignEnabled}])},[r("div",z,[(o(),A(g,{key:e.$route.fullPath,name:"content"}))])],2)]),n(p),i.shouldDisplayEcommerceRecommender?(o(),A(y,{key:0,title:"We think you'll love","title-size":"display5","space-between":20,"slides-per-view":3.5,containerMargin:!1,"product-ids":i.productIds,class:"tracking-recommender"},null,8,["product-ids"])):m("",!0)])])):m("",!0)}]]);export{G as default};
8//# sourceMappingURL=AccountPage.5af836a8.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.