1import{aI as a,P as n}from"./BoIX-Qb1.js";const l=a("NewsletterStore",{state:()=>({step1Data:{emailAddress:""},step2Data:{firstName:"",lastName:"",phoneNumber:"",dob:-1,country:"UK",newsletters:[]},profile:{id:"",attributes:{first_name:"",last_name:"",email:"",phone_number:"",properties:{PREF_COUNTRY:"",PREFGENDER_WOMEN:!1,PREFGENDER_MENS:!1,FREQ_SALE:!1,FREQ_REDUCED:!1,DATE_OF_BIRTH:null}}}}),getters:{genders(){const{$i18n:e}=n();return[{label:e.t("Men"),id:"mens",value:"mens"},{label:e.t("Women"),id:"womens",value:"womens"}]},isCustomerEmailSubscribed(){var e,t,s;return((s=(t=(e=this.profile)==null?void 0:e.attributes.subscriptions)==null?void 0:t.email)==null?void 0:s.marketing.can_receive_email_marketing)||!1},activeConsent(){var t,s,r,i;return{email:this.isCustomerEmailSubscribed,sms:((s=(t=this.profile)==null?void 0:t.attributes.properties)==null?void 0:s.PHONE_CONSENT)||!1,mail:((i=(r=this.profile)==null?void 0:r.attributes.properties)==null?void 0:i.MAIL_CONSENT)||!1}},newsletterTypes(){var t,s;const e=[];return(t=this.profile)!=null&&t.attributes.properties.PREFGENDER_MENS&&e.push("mens"),(s=this.profile)!=null&&s.attributes.properties.PREFGENDER_WOMENS&&e.push("womens"),e},newsletterFrequencies(){var t,s;const e=[];return(t=this.profile)!=null&&t.attributes.properties.FREQ_SALE&&e.push("sale"),(s=this.profile)!=null&&s.attributes.properties.FREQ_REDUCED&&e.push("reduced"),e}},actions:{setProfile(e){this.profile=e},resetFormData(){this.$patch({step1Data:{emailAddress:""},step2Data:{firstName:"",lastName:"",phoneNumber:"",dob:-1,country:"UK",newsletters:[]}})}}});export{l as u};
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.