1"use strict";(self["webpackChunkcustomer_portal"]=self["webpackChunkcustomer_portal"]||[]).push([[3535],{45560:function(e,t,a){a.d(t,{I:function(){return L}});var r=a(92261),s=a(94373),l=a(59177),i={fitnessReports:["enduranceBloodVessel","enduranceCardiacResponse","enduranceTrainability","injuryRisk","flexiblity","recoveryTime","strength"],activeReports:["enduranceBloodVessel","enduranceCardiacResponse","enduranceTrainability","injuryRisk","recoveryTime","strength","carbohydrates","gluten","lactose","omega3and6","vitaminA","vitaminB12","vitaminC","vitaminD"]},n=a(78626),o=a(13173);const c=e=>"wellbeing"===e.group,d=e=>e.purchased,u=e=>e.purchased&&!e.complete,p=e=>!e.complete,v=(e,t)=>t.includes(e),f=e=>e.purchased?-1:1,g=e=>null===e.totalPhenotypeSlug||"snpsNotFound"===e.totalPhenotypeSlug?-1:1,k=e=>t=>{const a=e.find((e=>e.traitCmsData.slug===t.type));return{...t,...a}},m=e=>Object.assign(e,{traitCmsData:JSON.parse(e.traitCmsData),phenotypeCmsData:JSON.parse(e.phenotypeCmsData)}),y={async get(e){const{data:t}=await o.A.get(l.A.wellbeingPreview(e));return t},async getReport(e,t){try{const{data:a}=await s.A.get(l.A.wellbeingTrait(e,t));return a}catch(a){throw console.error(a),a}},mergeTestsAndCmsData(e,t){const a=e.map(m);return Object.values(t).filter(c).filter((e=>v(e.type,i.activeReports))).map(k(a)).sort(g).sort(f)},hasPurchased(e){return Object.values(e).filter(d).length>2},isFullPending(e){return Object.values(e).filter(u).length>2},hasCompleted(e){return!(0,n.isEmpty)(e)&&(0===e.filter(p).length&&e.filter(d).length>0)},completeWellbeingReports(e){return e.filter((e=>e.complete))},filterToFitnessReports(e){return e.filter((e=>i.fitnessReports.includes(e.type)))},filterOutFitnessReports(e){return e.filter((e=>!i.fitnessReports.includes(e.type)))}};var b=y,h=a(78629);const L=(0,r.nY)("wellbeing",{state:()=>({wellbeing:[]}),actions:{async fetchWellbeingData(e){try{const t=await b.get(e),a=await b.mergeTestsAndCmsData(t,h["default"].getters.kitTests);this.wellbeing=a}catch(t){console.log(t)}}}})},64447:function(e,t,a){a.d(t,{A:function(){return W}});var r=a(56768),s=a(24232),l=a(83569),i=a(78629),n=a(90144);const o=e=>((0,r.Qi)("data-v-3a61ec27"),e=e(),(0,r.jt)(),e),c={class:"container d-flex flex-column align-items-center justify-content-center"},d={class:"col-md-10 col-lg-9 col-xl-8 m-5 mx-auto"},u={class:"card mb-3 rounded-4 overflow-hidden"},p={class:"row g-0"},v={class:"col-sm-5 d-flex align-items-end position-relative overflow-hidden"},f=o((()=>(0,r.Lk)("div",{class:"bg-gradient-circle position-absolute z-0 w-75 h-100"},null,-1))),g=["src"],k={class:"col-sm-7"},m={class:"card-body d-flex flex-column align-items-start justify-content-center h-100 p-4"},y={key:0,class:"card-title text-start my-3"},b={class:"card-text text-start"},h={class:"card-text text-start"},L={class:"text-muted"},w={class:"btn btn-primary"};var C={__name:"NoDataModal",props:{type:String},setup(e){const t=e,o=(0,n.Kh)({});return(0,r.wB)((()=>t.type),(()=>{Object.assign(o,l.Q[t.type]??{}),o.route.params&&"barcode"in o.route.params&&(o.route.params.barcode=i["default"].getters.profile.profile.barcode)}),{immediate:!0}),(e,t)=>{const l=(0,r.g2)("router-link");return(0,r.uX)(),(0,r.CE)("div",c,[(0,r.Lk)("div",d,[(0,r.Lk)("div",u,[(0,r.Lk)("div",p,[(0,r.Lk)("div",v,[f,(0,r.Lk)("img",{src:a(1597)(`./${o.image}`),class:"img-fluid mt-5 mx-auto z-1",alt:"Health"},null,8,g)]),(0,r.Lk)("div",k,[(0,r.Lk)("div",m,[o.title?((0,r.uX)(),(0,r.CE)("h5",y,(0,s.v_)(o.title),1)):(0,r.Q3)("",!0),(0,r.Lk)("p",b,(0,s.v_)(o.heading),1),(0,r.Lk)("p",h,[(0,r.Lk)("small",L,(0,s.v_)(o.content),1)]),o.route.name?((0,r.uX)(),(0,r.Wv)(l,{key:1,to:{name:o.route.name,params:o.route.params,query:o.route.query}},{default:(0,r.k6)((()=>[(0,r.Lk)("button",w,(0,s.v_)(o.route.text??"Explore"),1)])),_:1},8,["to"])):(0,r.Q3)("",!0)])])])])])])}}},A=a(71241);const x=(0,A.A)(C,[["__scopeId","data-v-3a61ec27"]]);var W=x},63535:function(e,t,a){a.r(t),a.d(t,{default:function(){return T}});var r=a(56768),s=a(45130),l=a(93964),i=a(78296),n=a(13290),o=a(96670),c=a(90144),d=a(84511),u=a(78629),p=a(71123),v=a(45560),f=a(64447),g=a(11619),k=a(72283);const m={class:"container-fluid max-container"},y={class:"row"},b={key:0,class:"container"},h={class:"add-profile-section"},L=(0,r.Lk)("div",{class:"add-profile-label"},[(0,r.Lk)("span",{class:"text-center"},"Wellbeing reports require an ancestry kit. It looks like you don't have one associated to your account.")],-1),w={class:"profile-cards-grid"},C=(0,r.Lk)("div",{class:"add-profile-cards"},[(0,r.Lk)("div",{class:"profile-card"},[(0,r.Lk)("div",null,[(0,r.Lk)("img",{src:l,alt:"Change Profile"})])]),(0,r.Lk)("div",{class:"profile-card-description"},[(0,r.Lk)("label",null,"Change Profile")])],-1),A=[C],x=(0,r.Lk)("div",{class:"add-profile-cards"},[(0,r.Lk)("div",{class:"profile-card"},[(0,r.Lk)("div",null,[(0,r.Lk)("img",{src:i,alt:"Buy Ancestry Kit"})])]),(0,r.Lk)("div",{class:"profile-card-description"},[(0,r.Lk)("label",null,"Buy an ancestry kit")])],-1),W=(0,r.Lk)("div",{class:"add-profile-cards"},[(0,r.Lk)("div",{class:"profile-card"},[(0,r.Lk)("div",null,[(0,r.Lk)("img",{src:n,alt:"DNA"})])]),(0,r.Lk)("div",{class:"profile-card-description"},[(0,r.Lk)("label",null,"Upload DNA")])],-1),_=(0,r.Lk)("div",{class:"add-profile-cards"},[(0,r.Lk)("div",{class:"profile-card"},[(0,r.Lk)("div",null,[(0,r.Lk)("img",{src:o,alt:"ActivateDNAKit"})])]),(0,r.Lk)("div",{class:"profile-card-description"},[(0,r.Lk)("label",null,"Activate DNA kit")])],-1);var D={__name:"HealthWellbeing",setup(e){const t=(0,k.l)(),a=(0,v.I)(),l=(0,c.KR)(!1),i=(0,r.EW)((()=>!0===u["default"].getters.profile?.profile?.barcode?.endsWith("E"))),n=(0,r.EW)((()=>u["default"].getters.accountTests||[])),o=(0,r.EW)((()=>n.value.some((e=>!e.barcode?.endsWith("E"))))),C=()=>t.openChangeProfileModal();(0,r.sV)((async()=>{i.value&&await u["default"].dispatch("SET_ACCOUNT_TESTS")})),(0,r.wB)((()=>u["default"].getters.profile.profile.barcode),(async e=>{i.value||(l.value=!0,await a.fetchWellbeingData(e),l.value=!1)}),{immediate:!0});const D=(0,r.EW)((()=>!!Object.values(u["default"].getters?.kitTests).some((e=>"wellbeing"===e.group&&e.purchased)))),E=(0,r.EW)((()=>"failed"===u["default"].getters?.kitTests?.strength?.status));return(e,t)=>{const a=(0,r.g2)("router-link"),n=(0,r.g2)("router-view");return(0,r.uX)(),(0,r.CE)("div",m,[(0,r.Lk)("div",y,[(0,r.bF)(d.A),i.value?((0,r.uX)(),(0,r.CE)("div",b,[(0,r.Lk)("div",h,[L,(0,r.Lk)("div",w,[o.value?((0,r.uX)(),(0,r.CE)("a",{key:0,href:"#",onClick:(0,s.D$)(C,["prevent"])},A)):((0,r.uX)(),(0,r.Wv)(a,{key:1,to:{name:"HealthStore",query:{tab:"ancestrykits"}}},{default:(0,r.k6)((()=>[x])),_:1})),(0,r.bF)(a,{to:{name:"profile-who-does-this-dna-belong-to"}},{default:(0,r.k6)((()=>[W])),_:1}),(0,r.bF)(a,{to:{name:"profile-activate-dna-kit"}},{default:(0,r.k6)((()=>[_])),_:1})])])])):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[D.value?E.value?((0,r.uX)(),(0,r.Wv)(g.A,{key:1,class:"max-w-md",icon:"info",type:"error"},{title:(0,r.k6)((()=>[(0,r.eW)(" We've encountered an error ")])),body:(0,r.k6)((()=>[(0,r.eW)(" An issue has occurred in retrieving DNA information from your upload. Please review Living DNA's accepted file types and try uploading again. ")])),_:1})):((0,r.uX)(),(0,r.Wv)(n,{key:2}
1)):((0,r.uX)(),(0,r.Wv)(f.A,{key:0,type:"wellbeingNotPurchased"}))],64))]),l.value?((0,r.uX)(),(0,r.Wv)(p.A,{key:0})):(0,r.Q3)("",!0)])}}};const E=D;var T=E},13290:function(e,t,a){e.exports=a.p+"img/dna.9d8288eb.svg"},96670:function(e,t,a){e.exports=a.p+"img/dnaKit.e8c8764b.svg"}}]); 2//# sourceMappingURL=3535.4a334788.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.