PageSourceSearch

https://www.jared.com/scripts/account-left-navigation.module-4DKDROID.js

js jared.com collected 2026-09-25 20:43:36 UTC 8,472 bytes, 2 lines download raw bytes

1import{a as W}from"./chunk-PKJ7OSK4.js";import{a as Q}from"./chunk-QIANHNZ3.js";import{a as X}from"./chunk-FYFE7EGY.js";import{a as J}from"./chunk-FTBCFQJG.js";import"./chunk-L2XAKF7E.js";import"./chunk-B7NBARZN.js";import"./chunk-SCJMMS4R.js";import{a as q}from"./chunk-N2OMGYSR.js";import"./chunk-PLWO6N5B.js";import"./chunk-NYVODJB2.js";import{dc as K,gc as G}from"./chunk-JWTTV2TH.js";import"./chunk-HKNOB5YZ.js";import{v as O,wa as z,za as B}from"./chunk-WFKL35DD.js";import"./chunk-2CBKXUP7.js";import{Aa as V,Pa as j,Y as H,_ as P,fa as $}from"./chunk-DM3NC7AB.js";import{$b as I,Ac as R,Bc as l,Cc as u,Db as p,Dc as C,Ec as _,Fa as T,Jb as a,Mc as h,Oe as M,Pc as A,Qa as x,Ra as y,Rc as o,Vb as D,Wb as m,a as N,ac as E,bd as F,be as U,ed as v,fd as g,td as f,uc as c,wc as r,yc as w,zc as k}from"./chunk-WVBH4ZDA.js";import"./chunk-YDOXD4O3.js";function tt(i,e){if(i&1&&(u(0,"div",1),v(1),C()),i&2){let t=o(2);a(),g(t.myAccountUkTitle)}}function it(i,e){if(i&1&&_(0,"img",4),i&2){let t=o(4);l("src",f("",t.SHARED_ASSET_PATH,"/Account.svg"),p)}}function et(i,e){if(i&1&&_(0,"img",5),i&2){let t=o(4);l("src",f("",t.SHARED_ASSET_PATH,"/Icons_24x24_Diamond.svg"),p)}}function nt(i,e){if(i&1&&_(0,"img",6),i&2){let t=o(4);l("src",f("",t.SHARED_ASSET_PATH,"/Icons_24x24_Package.svg"),p)}}function ot(i,e){if(i&1&&_(0,"img",7),i&2){let t=o(4);l("src",f("",t.SHARED_ASSET_PATH,"/Heart_Default.svg"),p)}}function at(i,e){if(i&1&&_(0,"img",8),i&2){let t=o(4);l("src",f("",t.SHARED_ASSET_PATH,"/Heart_Default.svg"),p)}}function ct(i,e){if(i&1&&_(0,"img",9),i&2){let t=o(4);l("src",f("",t.SHARED_ASSET_PATH,"/Icons_24x24_Circle-Check.svg"),p)}}function rt(i,e){if(i&1&&_(0,"img",10),i&2){let t=o(4);l("src",f("",t.SHARED_ASSET_PATH,"/Icons_24x24_Review.svg"),p)}}function lt(i,e){if(i&1&&_(0,"img",11),i&2){let t=o(4);l("src",f("",t.SHARED_ASSET_PATH,"/Ring.svg"),p)}}function st(i,e){if(i&1&&(c(0,it,1,2,"img",4),c(1,et,1,2,"img",5),c(2,nt,1,2,"img",6),c(3,ot,1,2,"img",7),c(4,at,1,2,"img",8),c(5,ct,1,2,"img",9),c(6,rt,1,2,"img",10),c(7,lt,1,2,"img",11)),i&2){let t=o().$implicit,n=o(2);r(t.title==="My Account"?0:-1),a(),r(t.title==="Vault Rewards"&&n.isLoyaltyDashboardEnabled&&n.isLoyaltyEnabled&&n.isLoyaltyEnrolled?1:-1),a(),r(t.title==="My Orders"?2:-1),a(),r(t.title==="Favorites"?3:-1),a(),r(t.title==="Favourites"?4:-1),a(),r(t.title==="Preferences"?5:-1),a(),r(t.title==="Personal Details"?6:-1),a(),r(t.title==="My Items"?7:-1)}}function dt(i,e){if(i&1&&(u(0,"a",12),v(1),C()),i&2){let t=o(2).$implicit;l("routerLink",t.url),a(),g(t.title)}}function mt(i,e){if(i&1){let t=h();u(0,"a",15),A("click",function(){x(t);let s=o(4);return y(s.onMyStoreClick())}),v(1),C()}if(i&2){let t=o(2).$implicit;a(),g(t.title)}}function _t(i,e){i&1&&_(0,"span",14)}function pt(i,e){if(i&1&&(c(0,dt,2,2,"a",12),c(1,mt,2,1,"a",13),c(2,_t,1,0,"span",14)),i&2){let t=o(3);r(t.isMyStoreHome?-1:0),a(),r(t.isMyStoreHome?1:-1),a(),r(t.isUKSite?2:-1)}}function ut(i,e){if(i&1&&(u(0,"cx-generic-link",16),v(1),C()),i&2){let t=o(2).$implicit;l("url",t.url?t.url:""),a(),g(t.title)}}function Ct(i,e){if(i&1&&(u(0,"a",12),v(1),C()),i&2){let t=o(3).$implicit;l("routerLink",t.url),a(),g(t.title)}}function ft(i,e){if(i&1&&c(0,Ct,2,2,"a",12),i&2){let t=o(2).$implicit;r(t.title!=="Vault Rewards"?0:-1)}}function vt(i,e){if(i&1&&(u(0,"a",12),v(1),C()),i&2){let t=o(2).$implicit;l("routerLink",t.url),a(),g(t.title)}}function gt(i,e){i&1&&_(0,"span",14)}function xt(i,e){if(i&1&&(c(0,ut,2,2,"cx-generic-link",16)(1,ft,1,1),c(2,vt,2,2,"a",12),c(3,gt,1,0,"span",14)),i&2){let t=o().$implicit,n=o(2);r(n.isUKSite&&t.title==="Check Gift Card Balance"?0:1),a(2),r(t.title==="Vault Rewards"&&n.isLoyaltyDashboardEnabled&&n.isLoyaltyEnabled&&n.isLoyaltyEnrolled?2:-1),a(),r(n.isUKSite?3:-1)}}function yt(i,e){if(i&1){let t=h();u(0,"li",3),A("click",function(){let s=x(t).$implicit,d=o(2);return y(d.selecteActiveClass(s))})("keydown.enter",function(){let s=x(t).$implicit,d=o(2);return y(d.selecteActiveClass(s))})("keydown.space",function(){let s=x(t).$implicit,d=o(2);return y(d.selecteActiveClass(s))}),c(1,st,8,8),c(2,pt,3,3),c(3,xt,4,3),C()}if(i&2){let t=e.$implicit,n=o(2);F("active",t===n.selectedIndex),a(),r(n.isUKSite?-1:1),a(),r(t.title===n.myStoreUkTitle?2:-1),a(),r(t.title!==n.myStoreUkTitle?3:-1)}}function St(i,e){if(i&1&&(u(0,"ul",0),c(1,tt,2,1,"div",1),k(2,yt,4,5,"li",2,w),C()),i&2){let t=o();a(),r(t.isUKSite?1:-1),a(),R(t.nodeData==null?null:t.nodeData.children)}}var S=class i{constructor(e,t,n,s,d,b,L,bt,ht,At){this.megaService=e;this.changeDetect=t;this.renderer=n;this.windowRef=s;this.siteIdentificationService=d;this.baseSiteCommonDataService=b;this.component=L;this.userService=bt;this.rewardsPageService=ht;this.siteService=At;this.subscriptions$=new N;this.isLoyaltyDashboardEnabled=!1;this.isLoyaltyEnabled=!1;this.isLoyaltyEnrolled=!1;this.myAccountUkTitle=G;this.data$=this.component.data$;this.selectedIndex=0;this.SHARED_ASSET_PATH="scripts/assets/common/images";this.isUKSite=!1;this.myStoreUkTitle=K;this.isMyStoreHome=!1;this.siteNames=["banter","peoples"]}ngOnInit(){this.isUKSite=this.siteIdentificationService.isUKSite;let e=this.megaService.getNavigationNode(this.data$).subscribe(n=>{if(n){this.nodeData=n,this.subscriptions$.add(this.siteService.getActive().subscribe(d=>{this.siteName=d,this.siteNames.includes(this.siteName)&&this.nodeData&&this.nodeData.children&&(this.nodeData.children=this.nodeData.children.filter(L=>L.title!=="Preferences"))})),this.currentURL=this.windowRef.location.href;let s=this.currentURL?.split("/")[4];this.nodeData.children?.forEach((d,b)=>{d?.url&&(s==d.url?.split("/")[2]||s?.includes(d.url?.split("/")[2]))&&this.selecteActiveClass(b)}),this.isMyStoreHome=!s,this.changeDetect.detectChanges()}}),t=this.baseSiteCommonDataService.getSignetBaseSiteCommonData().subscribe(n=>{n.isLoyaltyEnabled&&(this.isLoyaltyEnabled=n.isLoyaltyEnabled),n.loyaltyDashboardEnabled&&(this.isLoyaltyDashboardEnabled=n.loyaltyDashboardEnabled)});this.subscriptions$.add(this.userService.getUserObs().subscribe(n=>{n&&n.loyaltyProfileId&&(this.isLoyaltyEnrolled=!0,this.changeDetect.detectChanges())})),this.subscriptions$.add(this.rewardsPageService.leftNavChange$.subscribe(()=>{this.isLoyaltyEnrolled=!0,this.changeDetect.detectChanges()})),this.subscriptions$.add(e),this.subscriptions$.add(t)}selecteActiveClass(e){this.selectedIndex=e}onMyStoreClick(){let e=this.renderer.selectRootElement("#mystoreheader",!0);e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),e.setAttribute("tabindex","-1"),e.focus()}ngOnDestroy(){this.subscriptions$.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)(m(X),m(U),m(D),m(V),m(q),m(J),m(O),m(Q),m(W),m(j))}}static{this.\u0275cmp=I({type:i,selectors:[["app-account-left-navigation"]],standalone:!1,decls:1,vars:1,consts:[[1,"accLeftnavList"],[1,"uk-my-account-title"],[1,"leftNode",3,"active"],[1,"leftNode",3,"click","keydown.enter","keydown.space"],["alt","My-Account",1,"icon","icon-img","accountNavImg",3,"src"],["alt","Vault-Rewards",1,"icon","icon-img","accountNavImg",3,"src"],["alt","My-Orders",1,"icon","icon-img","accountNavImg",3,"src"],["alt","Favorites",1,"icon","icon-img","accountNavImg",3,"src"],["alt","Favourites",1,"icon","icon-img","accountNavImg",3,"src"],["alt","Preferences",1,"icon","icon-img","accountNavImg",3,"src"],["alt","Personal-Details",1,"icon","icon-img","accountNavImg",3,"src"],["alt","My-Items",1,"icon","icon-img","accountNavImg",3,"src"],[3,"routerLink"],["href","javascript:void(0);",1,"my-store-btn"],["aria-hidden","true",1,"fa","fa-angle-right","uk-favNav-angle-right"],["href","javascript:void(0);",1,"my-store-btn",3,"click"],[3,"url"]],template:function(t,n){t&1&&c(0,St,4,1,"ul",0),t&2&&r(n.nodeData?0:-1)},dependencies:[H,z],styles:[`.accLeftnavList{list-style:none;font-size:13px;line-height:36px;color:#333;width:300px}.accLeftnavList li{padding:5px 0}.accLeftnavList li .accountNavImg{margin-bottom:13px;margin-top:13px;height:15px;width:15px;margin-right:8px}.accLeftnavList li a{text-decoration:none;color:#333}.accLeftnavList li.active{font-weight:700;font-size:13px;line-height:36px}.accLeftnavList li .my-store-btn{cursor:pointer}
2`],encapsulation:2})}};var Y=class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=E({type:i})}static{this.\u0275inj=T({providers:[$({cmsComponents:{AccountNavigationComponent:{component:S}}})],imports:[M,P,B]})}};export{Y as AccountLeftNavigationModule};

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.