1"use strict";(globalThis.webpackChunktesa_2016=globalThis.webpackChunktesa_2016||[]).push([[1365],{941:(e,s,t)=>{t.r(s),t.d(s,{default:()=>L});var l=t(5166),r=t(3739),a=t(4905),o=t(7105);const i={class:"profile-summary"},n={class:"headline headline--4"},u={class:"profile-summary__details"},c={class:"profile-summary__labels"},d={class:"profile-summary__values"},m=["href"],_=Object.assign({name:"ProfileSummary"},{__name:"ProfileSummary",props:{routes:{type:Object,default:()=>({})},customerName:{type:String},customerEmail:{type:String}},setup(e){const s=e,{labelStore:t}=(0,o.t)(),r=()=>{window.location.href=s.routes.accountProfile};return(s,o)=>((0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("header",null,[(0,l._)("h3",n,(0,l.zw)((0,l.SU)(t).account_dashboard_profile_headline),1),o[0]||(o[0]=(0,l.Uk)()),(0,l.Wm)((0,l.SU)(a.Z),{class:"profile-summary__edit-button",onClick:r})]),o[8]||(o[8]=(0,l.Uk)()),(0,l._)("div",u,[(0,l._)("div",c,[(0,l._)("div",null,(0,l.zw)((0,l.SU)(t).account_profile_summary_name),1),o[1]||(o[1]=(0,l.Uk)()),(0,l._)("div",null,(0,l.zw)((0,l.SU)(t).account_profile_summary_email),1),o[2]||(o[2]=(0,l.Uk)()),(0,l._)("div",null,(0,l.zw)((0,l.SU)(t).pasaccount_profile_summary_passwordsword),1)]),o[7]||(o[7]=(0,l.Uk)()),(0,l._)("div",d,[(0,l._)("div",null,(0,l.zw)(e.customerName),1),o[5]||(o[5]=(0,l.Uk)()),(0,l._)("div",null,(0,l.zw)(e.customerEmail),1),o[6]||(o[6]=(0,l.Uk)()),(0,l._)("div",null,[o[3]||(o[3]=(0,l._)("span",null,"â¢â¢â¢â¢â¢â¢â¢â¢",-1)),o[4]||(o[4]=(0,l.Uk)()),(0,l._)("a",{href:e.routes.accountProfile+"#change-password=true",class:"account-link"},(0,l.zw)((0,l.SU)(t).account_profile_summary_change_password),9,m)])])])]))}});var w,f=t(6517),p=t(4475),g=t(4245),v=t(6667),b=t(3557),U=t(6192),k=t(2177),S=t(7325);const h={class:"account-newsletter-form__headline headline headline--4"},y={class:"account-newsletter-form__main-grid grid-row marg-t--3 marg-t-sm--4"},D={class:"col-12 col-sm-5"},z=["src"],N={class:"col-12 col-sm-7"},O={class:"account-newsletter-form__form-wrapper"},j={key:0,class:"account-newsletter-form__text-headline headline headline--4"},q={key:1,class:"account-newsletter-form__perks marg-t--2"},A={class:"copy--header"},C=["innerHTML"],F={class:"account-newsletter-form__email-submit grid-row marg-t--4"},H={class:"col-12 col-sm-6"},T={class:"col-12 col-sm-6"},W=["disabled"],Z={key:2,class:"account-newsletter-form__error-message"},x=Object.assign({name:"AccountNewsletterForm"},{__name:"AccountNewsletterForm",props:{image:{type:String},labels:{type:Object,default:()=>({})},newsletterFormTrackingId:{type:String,default:"Newsletter Form | Consumer Account Dashboard"},source:{type:String,default:"dashboard"},addReceiverEndpoint:{type:String,default:null===(w=window.tesaAppData)||void 0===w?void 0:w.newsletter_subscription_endpoint},newsletterSubscriptionCheckEnabled:{type:Boolean,default:!1}},setup(e){const s=e,{labelStore:t}=(0,o.t)(),r=(0,S.Z)(),{newsletterStatusFetched:a,subscribeToNewsletter:i,subscribedToNewsletter:n,trackFormInit:u}=(0,U.g)(s),c=(0,l.iH)(null),d=(0,l.iH)(null),m=(0,l.iH)([]),_=(0,l.iH)(!1),w=(0,l.iH)(!0);(0,l.bv)(()=>{var e;d.value=null===(e=r.customer)||void 0===e?void 0:e.email});const f=async()=>{const e=await c.value.validate();m.value=[],e&&(_.value=!0,await i({email:d.value}).then(()=>{var e;(0,k.jR)({type:"success",emitter:"AccountNewsletterForm",text:null===(e=t.value)||void 0===e?void 0:e.newsletter_form_subscribed_toastbar_message,duration:7.5}),setTimeout(()=>w.value=!1,8e3)}))};return(s,r)=>{const o=(0,l.up)("icon"),i=(0,l.up)("BaseCheckbox");return(0,l.SU)(a)&&!(0,l.SU)(n)&&w.value?((0,l.wg)(),(0,l.j4)(b.Z,{key:0,ref_key:"observer",ref:c,tag:"div",class:"account-newsletter-form"},{default:(0,l.w5)(()=>[(0,l._)("form",{ref:"form",onClick:r[1]||(r[1]=function(){return(0,l.SU)(u)&&(0,l.SU)(u)(...arguments)}),onSubmit:(0,l.iM)(f,["prevent"])},[(0,l._)("h2",h,(0,l.zw)((0,l.SU)(t).newsletter_form_headline),1),r[9]||(r[9]=(0,l.Uk)()),(0,l._)("div",y,[(0,l._)("div",D,[e.image?((0,l.wg)(),(0,l.iD)("img",{key:0,src:e.image,role:"presentation",alt:""},null,8,z)):(0,l.kq)("v-if",!0)]),r[8]||(r[8]=(0,l.Uk)()),(0,l._)("div",N,[(0,l._)("div",O,[(0,l.SU)(t).newsletter_form_text_headline?((0,l.wg)(),(0,l.iD)("p",j,(0,l.zw)((0,l.SU)(t).newsletter_form_text_headline),1)):(0,l.kq)("v-if",!0),r[4]||(r[4]=(0,l.Uk)()),(0,l.SU)(t).newsletter_form_perks?((0,l.wg)(),(0,l.iD)("ul",q,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,l.SU)(t).newsletter_form_perks.split("\n"),(e,s)=>((0,l.wg)(),(0,l.iD)("li",{key:s,class:"marg-t--1"},[(0,l.Wm)(o,{name:"checkmark"}),r[2]||(r[2]=(0,l.Uk)()),(0,l._)("span",A,(0,l.zw)(e),1)]))),128))])):(0,l.kq)("v-if",!0),r[5]||(r[5]=(0,l.Uk)()),(0,l.Wm)(i,{name:"privacy",rules:{required:{allowFalse:!1}},class:"marg-t--4","error-message-type":"tooltip","custom-messages":{required:(0,l.SU)(t).newsletter_form_form_fields_legal_disclaimer_error_message}},{default:(0,l.w5)(()=>[(0,l._)("div",{innerHTML:(0,l.SU)(t).newsletter_form_form_fields_legal_disclaimer},null,8,C)]),_:1},8,["custom-messages"]),r[6]||(r[6]=(0,l.Uk)()),(0,l._)("div",F,[(0,l._)("div",H,[(0,l.Wm)((0,l.SU)(v.default),{name:"email","initial-value":d.value,rules:"required|email",label:(0,l.SU)(t).newsletter_form_form_fields_email_placeholder,maxlength:100,disabled:_.value,"custom-messages":{required:(0,l.SU)(t).newsletter_form_form_fields_email_error_message_required,email:(0,l.SU)(t).newsletter_form_form_fields_email_error_message_syntax},"background-color":"gray",onInput:r[0]||(r[0]=e=>d.value=e?e.trim():e)},null,8,["initial-value","label","disabled","custom-messages"])]),r[3]||(r[3]=(0,l.Uk)()),(0,l._)("div",T,[(0,l._)("button",{type:"submit",class:"button button--cta-2 button--full-width col-12 col-sm-6",disabled:_.value},(0,l.zw)((0,l.SU)(t).newsletter_form_submit_button),9,W)])]),r[7]||(r[7]=(0,l.Uk)()),m.value.length?((0,l.wg)(),(0,l.iD)("div",Z,(0,l.zw)(m.value[0].code),1)):(0,l.kq)("v-if",!0)])])])],544)]),_:1},512)):(0,l.kq)("v-if",!0)}}});var E=t(1223),P=t(7304);const I={class:"account-dashboard"},B={class:"account-dashboard__account-details"},M={class:"grid-row"},L=Object.assign({name:"AccountDashboard"},{__name:"AccountDashboard",props:{routes:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})},enableNewsletterSignup:{type:Boolean,default:!0}},setup(e){const s=e,{onCloseOrderDetails:t,onShowOrder:a,selectedOrderId:o}=(0,P.l)(),i=(0,S.Z)(),{customer:n,customerName:u,billingAddress:c,shippingAddress:d}=(0,E.Jk)(i),m=(0,l.Fl)(()=>{var e;return null===(e=n.value)||void 0===e?void 0:e.email}),w=e=>{window.location.href=`${s.routes.accountProfile}#edit-address=${e}`};return(s,i)=>((0,l.wg)(),(0,l.iD)("section",I,[(0,l.SU)(o)?((0,l.wg)(),(0,l.j4)((0,l.SU)(p.Z),{key:0,"order-id":(0,l.SU)(o),routes:e.routes,onClose:(0,l.SU)(t)},null,8,["order-id","routes","onClose"])):((0,l.wg)(),(0,l.iD)(l.HY,{key:1},[(0,l._)("section",null,[(0,l.Wm)((0,l.SU)(r.Z),{summary:!0,routes:e.routes,onShowOrder:(0,l.SU)(a)},null,8,["routes","onShowOrder"])]),i[3]||(i[3]=(0,l.Uk)()),(0,l._)("section",B,[(0,l._)("div",M,[(0,l.Wm)((0,l.SU)(_),{class:"col-12 col-md-6",routes:e.routes,"customer-name":(0,l.SU)(u),"customer-email":m.value},null,8,["routes","customer-name","customer-email"]),i[0]||(i[0]=(0,l.Uk)()),(0,l.Wm)((0,l.SU)(f.Z),{class:"col-12 col-md-6","billing-address":(0,l.SU)(c),"shipping-address":(0,l.SU)(d),onEditAddress:w},null,8,["billing-address","shipping-address"])]),i[1]||(i[1]=(0,l.Uk)()),(0,l.Wm)((0,l.SU)(g.Z),{routes:e.routes,layout:"slider","has-parent-container":!0,"display-add-all-to-cart":!1},null,8,["routes"]),i[2]||(i[2]=(0,l.Uk)()),e.enableNewsletterSignup?((0,l.wg)(),(0,l.j4)((0,l.SU)(x),(0,l.dG)({key:0},e.data.accountNewsletterForm,{class:"marg-t--6"}),null,16)):(0,l.kq)("v-if",!0)])],64))]))}})}}]);
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.