PageSourceSearch

https://www.wovar.nl/assets/WvCustomerLayout-CEBM-W21.js

js wovar.nl collected 2026-09-28 06:47:42 UTC 4,661 bytes, 2 lines download raw bytes

1import{r as m,j as e,N as g,a as f,u as y,c as j}from"./components-DnchwV6p.js";import{u as h,y as b,c as v,l as N,B as w,W as k,A as E}from"./blogs-D72JHPRX.js";import{u as L}from"./useErrorAlert-rrX2bY8u.js";import{W as p}from"./WvLink-2yczwrc_.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"99f1f37daa57ff822cb85b50dd6ead78faae7cfb"},s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[new s.Error().stack]=function(a){for(var n=1;n<arguments.length;n++){var t=arguments[n];if(t!=null)for(var o in t)t.hasOwnProperty(o)&&(a[o]=t[o])}return a}({},s._sentryModuleMetadata[new s.Error().stack],{"_sentryBundlerPluginAppKey:wovar-webshop":!0});var r=new s.Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="0f5299c1-38c5-4322-a570-f2f4a3cbc405",s._sentryDebugIdIdentifier="sentry-dbid-0f5299c1-38c5-4322-a570-f2f4a3cbc405")}catch{}})();const W=({Link:s,Loading:r,disabled:a,loading:n,link:t,as:o="button",children:i,...l})=>{const d=e.jsxs(e.Fragment,{children:[i,n&&r?e.jsx(r,{}):null]});return t&&s?m.createElement(s,t,e.jsx("span",{...l,children:d})):m.createElement(o,{...l,disabled:a||n},d)},C=({tabs:s})=>{const{$pt:r}=h();return e.jsx("div",{className:"customer__menu",children:s==null?void 0:s.map(a=>{var n;return e.jsxs("div",{children:[e.jsx(g,{to:a.link,className:({isActive:t})=>t?"active":"",end:!0,children:a.name}),(n=a.subs)==null?void 0:n.map(t=>e.jsx("div",{className:"customer__group mt-3",children:e.jsx("strong",{children:r(t)})},t))]},a.name)})})},M=({bgColor:s="bg-black/40",className:r})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:b("absolute top-0 left-0 right-0 bottom-0 z-10",s)}),e.jsx("div",{className:b("absolute top-1/2 left-1/2 -mt-3.25 -ml-3.25 h-6.5 w-6.5 z-10 animate-spin rounded-full border-4 border-white border-t-blue-light",r)})]}),I=({className:s,theme:r="primary",...a})=>{const n=b("inline-block text-xsm uppercase vertical-middle font-gotham text-center relative disabled:!cursor-not-allowed",{"leading-11 px-6.25 text-blue-light hover:underline":r==="link"},{"text-white bg-blue-light rounded px-4 py-2.5 leading-6":r==="primary"},{"text-blue-light rounded px-4 py-2 leading-6 border border-blue-light border-2":r==="secondary"},{"text-blue-light rounded px-4 py-2 leading-6 border border-gray-lighter border-1":r==="tertiary"},{"text-white bg-darkblue rounded px-4 py-2.5 leading-6":r==="darkblue"},{"text-darkblue bg-white rounded px-4 py-2.5 leading-6":r==="simple"},s);return e.jsx(W,{Link:p,Loading:()=>e.jsx(M,{}),className:n,...a})},P=({children:s,breadcrumbs:r})=>{const{show:a}=L(),n=f(),{$pt:t}=h(),{customer:o}=y(),i=j(),l=v(),d=l("/customer/login"),{isLoading:c,fetcher:{Form:x}}=N();m.useEffect(()=>{!o&&i.pathname==="/customer/"&&(c||(a(t("profile_session_expired_message"),"warning",800),setTimeout(()=>{n("/customer/login/")},800)))},[o,a,n,c,t,i.pathname]);const _=[{name:t("profile_side_tab_account_name"),link:"/customer",subs:[`customer_type_label_${o.type.toLowerCase()}`,o.payByInvoice==="true"?"can_pay_by_invoice_label":"cannot_pay_by_invoice_label"]},{name:t("profile_side_tab_order_name"),link:"/customer/orders"}];return e.jsx(w,{customer:o,children:e.jsx("div",{className:"customer",children:e.jsxs("div",{className:"container",children:[e.jsx("div",{className:"py-3 mb-3 breadcrumbs",children:r!=null&&r.length?r.map(u=>e.jsxs("span",{className:"breadcrumbs__crumb",children:[e.jsx("span",{className:"breadcrumbs__sep","aria-hidden":"true",children:"‹"}),e.jsx(p,{to:l(u.link),children:u.name})]},u.name)):e.jsxs(e.Fragment,{children:[e.jsxs(p,{to:"/",className:"first","data-icon-before":"",children:[e.jsx("i",{className:"mobile d-lg-none","data-icon-before":"",children:t("order_detail_label_breadcrumb")}),e.jsxs("span",{className:"show",children:[" ",t("order_detail_label_breadcrumb")]})]}),e.jsx("i",{"data-icon-after":""})]})}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"mb-4 border col-12 col-sm-4 col-md-3 mb-sm-0",children:[e.jsx("h1",{className:"customer__title",children:"Wovar"}),e.jsxs("div",{children:[e.jsx(C,{tabs:_}),e.jsxs(x,{action:l("/customer/logout"),method:"post",reloadDocument:!0,children:[e.jsx(k,{data:{_action:E.LOGOUT,redirect:d,_root_refresh:!0}}),e.jsx(I,{className:`${c?"js-cm-logout":""}
1 mt-5 btn`,type:"submit","data-icon-before":"",disabled:c,children:t("profile_logout_cta_name")})]})]})]}),e.jsx("div",{className:"border col-12 col-sm-8 col-md-9",children:s})]})]})})})};export{P as W};
2//# sourceMappingURL=WvCustomerLayout-CEBM-W21.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.