PageSourceSearch

https://be.routeco.com/_next/static/chunks/4323.3d12e2da4a301f76.js

js routeco.com collected 2026-10-10 01:48:04 UTC 6,916 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4323],{20329:e=>{e.exports={projectInfoSection:"account-navigation_projectInfoSection__HapN5",projectInfo:"account-navigation_projectInfo__NAVC8",sectionContainer:"account-navigation_sectionContainer__FHDkJ",sectionHeader:"account-navigation_sectionHeader__MWcNy",menuList:"account-navigation_menuList__psHhg"}},66166:e=>{e.exports={sticky:"account-navigation-container_sticky__VnMeK",personalSettingsSection:"account-navigation-container_personalSettingsSection__nuHcu",personalSettingsHeader:"account-navigation-container_personalSettingsHeader__tB1M8"}},83728:e=>{e.exports={switchAccountsLogout:"switch-logout_switchAccountsLogout__v7VmK",icon:"switch-logout_icon__QhuoV"}},89252:e=>{e.exports={skeletonAccountHeader:"account-navigation-skeleton_skeletonAccountHeader__XJ_AM",skeletonAccountInfo:"account-navigation-skeleton_skeletonAccountInfo__01TpN",skeletonAccountSettings:"account-navigation-skeleton_skeletonAccountSettings__kZaBi",wrapperSkeleton:"account-navigation-skeleton_wrapperSkeleton__fm3eM",menuListSkeleton:"account-navigation-skeleton_menuListSkeleton__lpTG7",menuItemSkeleton:"account-navigation-skeleton_menuItemSkeleton__5hl_b"}},94323:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccountNavigation:()=>w,AccountNavigationContainer:()=>B,SwitchAndLogout:()=>C});var i=n(60004),s=n(88088),o=n(82726),a=n(12028),c=n(43207),l=n(68915),r=n(2117),d=n(7976),h=n(26650),u=n(77104),g=n(79526),_=n(35880),p=n(89252),j=n.n(p),x=n(60072);let m=({hasCreditLimitPermission:e,account:t})=>(0,x.jsxs)("div",{"data-testid":"account-navigation-skeleton",children:[(0,x.jsxs)("div",{className:j().skeletonAccountHeader,children:[(0,x.jsxs)("div",{className:j().skeletonAccountInfo,children:[(0,x.jsx)(_.E,{shape:"line",height:20,width:132}),(0,x.jsx)(_.E,{shape:"line",height:17.5,width:248}),(0,x.jsx)(_.E,{shape:"line",height:17.5,width:132})]}),(0,x.jsx)(_.E,{shape:"round",height:30,width:30})]}),(0,x.jsxs)("div",{className:j().skeletonAccountSettings,children:[(0,x.jsx)(_.E,{shape:"line",height:24,width:150}),e&&t?.hasCreditLimit&&(0,x.jsxs)("div",{className:j().wrapperSkeleton,children:[(0,x.jsx)(_.E,{width:"30%",height:16,shape:"line"}),(0,x.jsx)(_.E,{width:"100%",height:8,shape:"line"}),(0,x.jsx)(_.E,{width:"40%",height:16,shape:"line"})]}),(0,x.jsxs)("div",{className:j().menuListSkeleton,children:[(0,x.jsxs)("div",{className:j().menuItemSkeleton,children:[(0,x.jsx)(_.E,{shape:"line",height:15,width:190}),(0,x.jsx)(_.E,{shape:"line",height:17,width:280})]}),(0,x.jsxs)("div",{className:j().menuItemSkeleton,children:[(0,x.jsx)(_.E,{shape:"line",height:15,width:210}),(0,x.jsx)(_.E,{shape:"line",height:17,width:260})]}),(0,x.jsxs)("div",{className:j().menuItemSkeleton,children:[(0,x.jsx)(_.E,{shape:"line",height:15,width:140}),(0,x.jsx)(_.E,{shape:"line",height:17,width:320})]}),(0,x.jsxs)("div",{className:j().menuItemSkeleton,children:[(0,x.jsx)(_.E,{shape:"line",height:15,width:180}),(0,x.jsx)(_.E,{shape:"line",height:17,width:300})]})]})]})]});var v=n(95986),E=n(10468),k=n(20329),S=n.n(k);let w=({settingsItems:e})=>{let{user:t,account:n,userAccounts:i}=(0,l.Z2)(),{sendSubnavGtmTag:_}=(0,r.PB)(),{handleOpenSwitchAccountModal:p}=(0,v.I)(),{isAccountNavigationDrawerOpen:j,closeAccountNavigationDrawer:k}=(0,u.hx)(),{isFlagEnabled:w}=(0,d.h)(),[N]=(0,c.B)(),A=w(E.F3),{hasCreditLimitPermission:I}=(0,l.Sk)(),C=j&&!(n?.id&&t?.userId),L=i?.length>1,b=(e=>{let{addressLine1:t,city:n,country:i,postalCode:s}=e||{};return[t,n,i,s].filter(Boolean).join(", ")})(n?.deliveryAddress);return C?(0,x.jsx)(m,{hasCreditLimitPermission:I,account:n}):(0,x.jsxs)(x.Fragment,{children:[A&&(0,x.jsxs)("div",{className:S().projectInfoSection,children:[(0,x.jsxs)("div",{className:S().projectInfo,children:[(0,x.jsx)(s.E,{weight:"bold",children:n?.name}),(0,x.jsx)(s.E,{size:"body-2",color:"subtle",children:n?.id}),n?.deliveryAddress&&(0,x.jsx)(s.E,{size:"body-2",color:"subtle",children:b})]}),L&&(0,x.jsx)(o.$,{icon:"arrow-double-horiz-in",variant:"ghost",onClick:()=>{p(),_("switch-account")},title:N("accountSwitch.title")})]}),A&&(0,x.jsxs)("div",{className:S().sectionContainer,children:[(0,x.jsxs)("div",{className:S().sectionHeader,children:[(0,x.jsx)(a.I,{icon:"buildings",size:"m"}),(0,x.jsx)(s.E,{size:"body-4",weight:"bold",children:N("header.accountNavigation.accountSettings")})]}),e&&e.length>0&&(0,x.jsxs)(x.Fragment,{children:[I&&n?.hasCreditLimit&&(0,x.jsx)(h.T,{accountId:n.id}),(0,x.jsx)(g.c,{listItems:e,closeDrawer:k,hasBorderBottom:!0})]})]})]})};var N=n(35477),A=n(83728),I=n.n(A);let C=()=>{let[e]=(0,c.B)();return(0,x.jsx)("div",{className:I().switchAccountsLogout,children:(0,x.jsx)(o.$,{className:I().logoutLink,variant:"underlined",onClick:N.lc,"data-testid":"navigate-to-logout",icon:"exit",iconPosition:"right",children:e("common.logout")})})};var L=n(91683),b=n(59100),D=n(10983);let T=function(e){return e.ACCOUNT="account",e.ALREADY_PURCHASED="alreadyPurchased",e.DEFAULT="",e.DELIVERY_ADDRESS="deliveryAddresses",e.INVOICE_CREDIT_LIST="invoiceCreditList",e.LISTS="lists",e.ORDERS="orders",e.PROJECTS="projects",e.QUOTES="quotes",e.SETTINGS="settings",e.TEAM="team",e.PRICE_AND_EXPORT="priceAndExport",e.TO_BE_DELIVERED="toBeDelivered",e.DELIVERY_NOTES="deliveryNotes",e.PACKAGING_RETURNS="packagingReturns",e.BLANKET_ORDERS="blanketOrders",e}({});var R=n(55537),f=n(66166),y=n.n(f);let B=({isTransverse:e=!1,settingsItems:t})=>{let{user:n}=(0,l.Z2)(),{isAccountNavigationDrawerOpen:o,closeAccountNavigationDrawer:r}=(0,u.hx)(),{linkApp:h}=(e=>{let{pathname:t}=(0,D.useRouter)(),n=(0,i.useMemo)(()=>!e||e&&window.location.pathname.includes(T.ACCOUNT)?T.DEFAULT:T.ACCOUNT,[e]),s=(0,i.useCallback)(e=>!n&&("/"!==e&&t.includes(e)||"/"===t&&t===e),[n,t]);return{linkApp:n,isLinkSelected:s}})(e),[_]=(0,c.B)(),{isFlagEnabled:p}=(0,d.h)(),j=p(E.F3),m=[...n?.userId?[{id:"account-users-userid",href:`${R.b.account.users}/${n.userId}`,app:h,title:n.name||"",description:_("accountDrawer.profileLink.description")}]:[],{id:"account-settings-base",href:R.b.account.settings.base,app:h,title:_("accountDrawer.settingsLink.title"),description:_("accountDrawer.settingsLink.description")}];return(0,x.jsx)(L._,{isOpen:o,onClose:r,closeLabel:_("common.close"),children:(0,x.jsxs)("nav",{className:y().sticky,"aria-label":_("associate.account"),children:[(0,x.jsx)(b.D,{size:"body-5",weight:"regular",children:_(j?"header.accountNavigation.accountAndSettings":"accountDrawer.title")}),(0,x.jsx)(w,{settingsItems:t}),(0,x.jsxs)("div",{className:y().personalSettingsSection,children:[j&&(0,x.jsxs)("div",{className:y().personalSettingsHeader,children:[(0,x.jsx)(a.I,{icon:"people",size:"m"}),(0,x.jsx)(s.E,{size:"body-4",weight:"bold",children:_("header.accountNavigation.personalSettings")})]}),(0,x.jsx)("div",{"data-cs-mask":!0,children:(0,x.jsx)(g.c,{listItems:m,hasBorderBottom:!0,closeDrawer:r})})]}),(0,x.jsx)(C,{})]})})}}}]);

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.