PageSourceSearch

https://my.livingdna.com/js/1340.9ff42c19.js

js livingdna.com collected 2026-09-24 10:48:31 UTC 6,208 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkcustomer_portal"]=self["webpackChunkcustomer_portal"]||[]).push([[1340],{21340:function(a,e,l){l.r(e),l.d(e,{default:function(){return Q}});l(44114);var t=l(56768),o=l(90144),s=l(45130),n=l(24232),r=l(33622),u=l(78629),i=l(58689),d=l(71123),c=l(28664),p=l(50973),v=l(78626);const m={key:1,class:"edit-personal-information d-flex align-items-center"},b=(0,t.Lk)("h1",null,"Edit Your Family Matching",-1),f={class:"d-flex flex-column w-100 align-content-start"},k=(0,t.Lk)("label",{class:"form-label"},"Opted",-1),y=(0,t.Lk)("span",{class:"form-label-desc"},"Show other users your LivingDNA determined fatherline Haplogroup",-1),g={key:0,class:"form-radio-buttons"},L={class:"form-button-section"},h=(0,t.Lk)("label",{for:"optin"},"Opt In",-1),w={class:"form-button-section"},E=(0,t.Lk)("label",{for:"optout"},"Opt Out",-1),x={key:1,class:"text-start text-danger"},C={class:"d-flex flex-column w-100 align-content-start"},H=(0,t.Lk)("label",{class:"form-label"},"MT Haplogroup",-1),X={key:0,class:"text-start text-danger"},T=(0,t.Lk)("span",{class:"form-label-desc"}," Show other users your LivingDNA determined motherline Haplogroup ",-1),D={class:"form-radio-buttons"},A={class:"form-button-section"},F=(0,t.Lk)("label",{for:"mt-display"},"Displays",-1),K={class:"form-button-section"},S=(0,t.Lk)("label",{for:"mt-hide"},"Hide",-1),_={class:"d-flex flex-column w-100 align-content-start"},N=(0,t.Lk)("label",{class:"form-label"},"Y Haplogroup",-1),R={key:0,class:"text-start text-danger"},U=(0,t.Lk)("span",{class:"form-label-desc"}," Show other users your LivingDNA determined fatherline Haplogroup ",-1),V={class:"form-radio-buttons"},O={class:"form-button-section"},M=(0,t.Lk)("label",{for:"ydna-display"},"Displays",-1),Y={class:"form-button-section"},W=(0,t.Lk)("label",{for:"ydna-hide"},"Hide",-1),P={class:"d-flex flex-column w-100"},B=(0,t.Lk)("label",{for:"bio",class:"form-label"},"Bio",-1),j={class:"form-continue-button upload-action"},q={key:0,class:"spinner-border border-3"},G=(0,t.Lk)("div",{class:"back-button"},[(0,t.Lk)("img",{src:r}),(0,t.Lk)("span",null,"Back")],-1);var I={__name:"EditFamilyMatching",setup(a){const e=(0,o.KR)(!1),l=(0,o.KR)(!1),r=(0,o.Kh)({}),I=(0,p.lq)(),J=(0,p.rd)(),Q=(0,o.KR)(""),$=(0,o.KR)(""),z=(0,o.KR)({}),Z=(0,o.KR)(),aa=(0,t.EW)((()=>u["default"].getters.accountTests||[])),ea=(0,t.EW)((()=>aa.value.find((({barcode:a})=>a===I.params.barcode))));(0,t.sV)((async()=>{e.value=!0;try{Q.value="",$.value="";const a=I.params.barcode;await u["default"].dispatch("GET_TEST",a);const e=await i.Ay.getFullProfile(ea.value.barcode);Object.assign(r,e.profile),await i.Ay.getFamilyNetworkSharingPermissions(ea.value.barcode).then((a=>{z.value=a})).catch((()=>{})),await c.Ay.getKitTests(ea.value.barcode,ea.value.raw_status).then((a=>{Z.value=a,"upload"===ea.value.testType?Q.value="Not available":!1===a.mtdna.purchased&&(Q.value="This feature is only available to people who took a Living DNA test"),2===r.gender?$.value="You do not have a Y chromosome so can't display this result":"upload"===ea.value.testType?$.value="Not available":!1===a.ydna.purchased&&($.value="This feature is only available to people who took a Living DNA test")})).catch((()=>{}))}catch(a){console.log(a)}finally{e.value=!1}}));const la=async()=>{try{l.value=!0,await i.Ay.editProfile(r.barcode,{profile:r}).catch((a=>{console.error(a)})),(0,v.isEmpty)(z.value)||await i.Ay.setFamilyNetworkSharingPermissions(r.barcode,z.value).catch((a=>{console.log(a)})),await u["default"].dispatch("SET_ACCOUNT_TESTS"),J.push({name:"profile-view",params:{barcode:r.barcode}})}catch(a){console.log(a)}finally{l.value=!1}},ta=(0,t.EW)((()=>{const a=ea.value.participantDateOfBirth.date;if(a){const e=new Date,l=new Date(a),t=e.getMonth()-l.getMonth();let o=e.getFullYear()-l.getFullYear();return(t<0||0===t&&e.getDate()<l.getDate())&&o--,o}return null})),oa=(0,o.KR)(!0);return ta.value&&ta.value<18&&(oa.value=!1),(a,u)=>{const i=(0,t.g2)("router-link");return e.value?((0,t.uX)(),(0,t.Wv)((0,o.R1)(d.A),{key:0})):((0,t.uX)(),(0,t.CE)("div",m,[b,(0,t.Lk)("form",{class:"personal-information-form w-75 mob-row-full text-start",onSubmit:(0,s.D$)(la,["prevent"])},[(0,t.Lk)("div",f,[k,y,oa.value?((0,t.uX)(),(0,t.CE)("div",g,[(0,t.Lk)("div",L,[(0,t.bo)((0,t.Lk)("input",{type:"radio",id:"optin",value:!0,name:"optin","onUpdate:modelValue":u[0]||(u[0]=a=>r.fnConsent=a)},null,512),[[s.XL,r.fnConsent]]),h]),(0,t.Lk)("div",w,[(0,t.bo)((0,t.Lk)("input",{type:"radio",id:"optout",value:!1,name:"optout","onUpdate:modelValue":u[1]||(u[1]=a=>r.fnConsent=a)},null,512),[[s.XL,r.fnConsent]]),E])])):((0,t.uX)(),(0,t.CE)("small",x,"Family Matching is only available to those aged 18 and over"))]),(0,t.Lk)("div",C,[H,Q.value?((0,t.uX)(),(0,t.CE)("small",X,(0,n.v_)(Q.value),1)):((0,t.uX)(),(0,t.CE)(t.FK,{key:1},[T,(0,t.Lk)("div",D,[(0,t.Lk)("div",A,[(0,t.bo)((0,t.Lk)("input",{type:"radio",id:"mt-display",value:!0,"onUpdate:modelValue":u[2]||(u[2]=a=>z.value.mtHaplogroup=a)},null,512),[[s.XL,z.value.mtHaplogroup]]),F]),(0,t.Lk)("div",K,[(0,t.bo)((0,t.Lk)("input",{type:"radio",id:"mt-hide",value:!1,"onUpdate:modelValue":u[3]||(u[3]=a=>z.value.mtHaplogroup=a)},null,512),[[s.XL,z.value.mtHaplogroup]]),S])])],64))]),(0,t.Lk)("div",_,[N,$.value?((0,t.uX)(),(0,t.CE)("small",R,(0,n.v_)($.value),1)):((0,t.uX)(),(0,t.CE)(t.FK,{key:1},[U,(0,t.Lk)("div",V,[(0,t.Lk)("div",O,[(0,t.bo)((0,t.Lk)("input",{type:"radio",id:"ydna-display",value:!0,"onUpdate:modelValue":u[4]||(u[4]=a=>z.value.yHaplogroup=a)},null,512),[[s.XL,z.value.yHaplogroup]]),M]),(0,t.Lk)("div",Y,[(0,t.bo)((0,t.Lk)("input",{type:"radio",id:"ydna-hide",value:!1,"onUpdate:modelValue":u[5]||(u[5]=a=>z.value.yHaplogroup=a)},null,512),[[s.XL,z.value.yHaplogroup]]),W])])],64))]),(0,t.Lk)("div",P,[B,(0,t.bo)((0,t.Lk)("textarea",{class:"bio",rows:"5","onUpdate:modelValue":u[6]||(u[6]=a=>r.bio=a)},null,512),[[s.Jo,r.bio]])]),(0,t.Lk)("button",j,[(0,t.eW)("Save Changes "),l.value?((0,t.uX)(),(0,t.CE)("span",q)):(0,t.Q3)("",!0)]),(0,t.bF)(i,{to:{name:"profile-view",params:{barcode:ea.value.barcode}}},{default:(0,t.k6)((()=>[G])),_:1},8,["to"])],32)]))}}};const J=I;var Q=J}}]);
2//# sourceMappingURL=1340.9ff42c19.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.