1import{as as Z,b5 as G,aK as Q,b6 as K,aQ as P,b7 as X,aL as J,b8 as W,b9 as $,ba as ee,bb as se,bc as E,bd as ie,be as te,ah as re,_ as T,m as h,c as l,o,a as d,b as p,t as g,F as H,r as U,n as ne,s as m,N as w,d as b,W as ae,h as z,ao as oe,v as le,f as F,w as ue}from"./index-F2gfJemj.js";import"./fp-lfxFO2SJ.js";import{a as de,b as fe}from"./find-BAXZ7c1q.js";import{U as ce}from"./Upsell30x-DwZSkv4j.js";var y,O;function pe(){if(O)return y;O=1;var s=Z(),e=G(),t=Q();function u(a,r){var i={};return r=t(r,3),e(a,function(n,c,f){s(i,c,r(n,c,f))}),i}return y=u,y}pe();var k,N;function me(){if(N)return k;N=1;function s(e){return e!==e}return k=s,k}var A,x;function he(){if(x)return A;x=1;function s(e,t,u){for(var a=u-1,r=e.length;++a<r;)if(e[a]===t)return a;return-1}return A=s,A}var C,V;function ge(){if(V)return C;V=1;var s=de(),e=me(),t=he();function u(a,r,i){return r===r?t(a,r,i):s(a,e,i)}return C=u,C}var R,B;function be(){if(B)return R;B=1;var s=K(),e=P(),t=X(),u="[object String]";function a(r){return typeof r=="string"||!e(r)&&t(r)&&s(r)==u}return R=a,R}var q,D;function ve(){if(D)return q;D=1;var s=ge(),e=J(),t=be(),u=fe(),a=W(),r=Math.max;function i(n,c,f,j){n=e(n)?n:a(n),f=f&&!j?u(f):0;var v=n.length;return f<0&&(f=r(v+f,0)),t(n)?f<=v&&n.indexOf(c,f)>-1:!!v&&s(n,c,f)>-1}return q=i,q}ve();var _,L;function we(){if(L)return _;L=1;var s=$(),e=ee(),t=se(),u=E(),a=t(function(r,i){if(r==null)return[];var n=i.length;return n>1&&u(r,i[0],i[1])?i=[]:n>2&&u(i[0],i[1],i[2])&&(i=[i[0]]),e(r,s(i,1),[])});return _=a,_}we();var I,M;function ye(){if(M)return I;M=1;var s=ie();function e(t,u){var a;return s(t,function(r,i,n){return a=u(r,i,n),!a}),!!a}return I=e,I}var S,Y;function ke(){if(Y)return S;Y=1;var s=te(),e=Q(),t=ye(),u=P(),a=E();function r(i,n,c){var f=u(i)?s:t;return c&&a(i,n,c)&&(n=void 0),f(i,e(n,3))}return S=r,S}var Ae=ke();const Ce=re(Ae),Re={props:{fileType:String,fileDescription:String,fileImage:String,fileSize:String,links:Array,type:String},methods:{restoreFile(s,e=null){this.$emit("restore-click",s,e)},linkClick(s,e,t){this.$emit("link-click",{type:s,fileType:e,fileLink:t})}},computed:{...h(["user"]),isAnyRestoring(){return Ce(this.links,"isRestoring")}}},qe={class:"card"},_e={class:"card-body"},Ie=["src"],Se={key:0,class:"restore-note"},Te={class:"card-footer"},Fe={key:0,class:"btn btn-primary",id:"download-disabled"},Oe={key:1,class:"btn btn-primary",id:"download-disabled"},Ne=["onClick","disabled"],xe={key:0},Ve={key:1},Be={key:2},De=["onClick","href"],Le={key:0};function Me(s,e,t,u,a,r){return o(),l("div",qe,[d("div",_e,[d("img",{src:t.fileImage,width:"46",height:"46"},null,8,Ie),d("h5",null,g(t.fileType),1),d("p",null,g(t.fileDescription),1),r.isAnyRestoring?(o(),l("p",Se," File restore in progress, would be restored within 48 hours. You will receive an email notification once completed. ")):p("",!0)]),d("div",Te,[s.user.product.name==="imputation"||typeof t.links=="object"&&Object.keys(t.links).length<1?(o(),l("a",Fe," Unavailable")):t.links?(o(!0),l(H,{key:2},U(t.links,(i,n)=>(o(),l("div",{key:i.link},[i.isArchived?(o(),l("a",{key:0,onClick:c=>r.restoreFile(i.s3Key,i.type),class:ne(["btn btn-primary download",{disabled:i.isRestoring}]),disabled:i.isRestoring},[i.isRestoring?(o(),l("span",Ve,"Restoring...")):(o(),l("span",xe,"Restore")),t.links.length>1?(o(),l("span",Be," p"+g(n+1),1)):p("",!0)],10,Ne)):(o(),l("a",{key:1,onClick:c=>r.linkClick(t.type,t.fileType,i.link),href:i.link,target:"new",class:"btn btn-primary download"},[e[0]||(e[0]=m(" Download",-1)),t.links.length>1?(o(),l("span",Le," p"+g(n+1),1)):p("",!0)],8,De))]))),128)):(o(),l("a",Oe,"Coming Soon!"))])])}const Ye=T(Re,[["render",Me],["__scopeId","data-v-6b9ec557"]]),Qe={components:{DownloadLink:Ye},data(){return{links:null,restoreInitiated:!1,files:[]}},async created(){await this.loadLinks()},methods:{async loadLinks(){if(this.is30x=!1,this.user.product.name==="imputation")this.links={VCF:null};else{const{data:s}=await w.getUserDownloadLinks30x();this.links={VCF:[],CRAM:[],CRAI:[]},s.forEach(e=>{if(typeof e=="string"&&e.includes(".vcf.gz")&&!e.includes(".g.vcf.gz"))this.links.VCF.push({link:e,isArchived:!1,isRestoring:!1});else if(typeof e=="string"&&e.includes(".cram")&&!e.includes(".cram.crai"))this.links.CRAM.push({link:e,isArchived:!1,isRestoring:!1});else if(typeof e=="string"&&e.includes(".cram.crai"))this.links.CRAI.push({link:e,isArchived:!1,isRestoring:!1});else if(typeof e=="object"&&e.isArchived&&e.fileType&&e.fileType.includes(".cram")){const t=e.fileType.includes(".cram.crai")?"CRAI":"CRAM";this.links[t].push({...e,isRestoring:e.status==="restore-initiated"})}}),this.filterFiles()}},async restoreFile(s,e=null){if(window.confirm("Due to the size of this type of file, a special download must be prepared. You will be notified within 48 hours when your download is ready. Would you like to proceed?")){const t=this.links;try{this.links=null,this.restoreInitiated=!0,await w.postArchiveRestoreRequest(s,e),await this.loadLinks()}catch{window.alert("File restore request failed!"),this.links=t}finally{this.restoreInitiated=!1}}},async linkClick({type:s,fileType:e,fileLink:t}){await w.postFileDownloadClickEvent(s,e,t)},filterFiles(){const s=this.snpSource;this.files=[{fileType:"VCF",fileDescription:"A text file that contains a list of your genetic variants.",fileImage:new URL("data:image/png;
1base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAABeCAYAAACq0qNuAAAABGdBTUEAALGPC/xhBQAACLxJREFUeAHtnVls3EQYgP/xeo9c2yZlS1MgBZqAOIpAtJwVpKJQhIQEDzwVIcQDEgLxQnlBgApI8IC4D3FJIMQhIR544JAQUgv0oVBa7qNAKC2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j2kzecG2ed2PUO7lk7CezzRcPZqJW7/nxd3mDHJaYVRmP7tAQzPRa5iSpK/D3Qvu51PITuh0zNkZvQts2rL7psCnmYqtSJf11MFxg88Gc3u/wDGt66D2fFPrWeEs3KlsBcmf94AB7+7zaluWZnt2zQ4jCvJNrXsGXqdGE6wxToGMOws4xNeNPJp9SkCsxn4t0I2L107sqYpMd48iXnv6asTwqbteE1NCTXHK6woz1uCj5LmHHxJ8HOAFaWpYihsLEqH0lcwAYPBfrJQ+q9YvxOftNWzScF1ZekxEFAY499Acb9RR/B3HoMvWTUkAfwQv2NJesGrZM5jfP/aP98HiF2DH+hxUoR5T/2FdC7NvAiwvUj6hXhSHWYrt/Op15rfwDE2DatZyNq/9DT4+uoKW/SJlzup8yBgaF+qf954nVlS6UnpS1dunzHz5r7mBYqt2UxfHvKmwb59pxTwa4SZlfs6BDCcaIvX/Gzx8zOXw0k/Mg3WS/ANBuznXoL3I9NgvQTfYMB+7iV4PzIN1kvwDQbs574uePz76nIux4+et57PxXgX2dq64Pv7+3fi2FTO5djM6kn2evQAy7rgETotsZJzOQEQHUU7lixZwudiHDpPsS54qoW9/v1YjOZyGM7lgJzLcaFELntxewH/1dEw7u1lcC47Z7ZmrsZZ6CVjzFezWcdcjpdRG+kymYyOsGvmYtoIwfHV1P8ANzBSaELUm+QAAAAASUVORK5CYII=",import.meta.url).href,fileSize:"300 MB - 600 MB",type:s}],this.links.CRAM&&this.links.CRAM.length&&this.files.unshift({fileType:"CRAM",fileDescription:"A compressed BAM file that contains your reconstructed genome.",fileImage:new URL("/assets/[email protected]",import.meta.url).href,fileSize:"~50 GB (lower bound)",type:s},{fileType:"CRAI",fileDescription:"A file that includes indexing information for your CRAM file.",fileImage:new URL("/assets/[email protected]",import.meta.url).href,fileSize:"2 MB",type:s})}},computed:{...h(["user"]),...h("userReporting",["snpSource","refresh"])},watch:{async refresh(s){s&&(this.links=null,await this.loadLinks())}}},Pe={key:0,class:"text-center"},Ee={key:0},He={key:1,class:"card-grid"};function Ue(s,e,t,u,a,r){const i=b("DownloadLink");return a.links?(o(),l("div",He,[(o(!0),l(H,null,U(a.files,n=>(o(),z(i,oe({key:n.fileType,links:a.links[n.fileType]},{ref_for:!0},n,{onRestoreClick:r.restoreFile,onLinkClick:r.linkClick}),null,16,["links","onRestoreClick","onLinkClick"]))),128))])):(o(),l("div",Pe,[e[0]||(e[0]=d("img",{src:ae,width:"100",height:"100"},null,-1)),a.restoreInitiated?(o(),l("p",Ee," Preparing file download. You will be notified via email when your file is available ... ")):p("",!0)]))}const ze=T(Qe,[["render",Ue],["__scopeId","data-v-1156b98c"]]),je="/assets/OasisLabs_Primary_Logo_Red_RGB-BQm5ntnC.png",Ze={components:{DownloadLinks:ze,Upsell30x:ce},mounted(){document.title="Download - "+this.$config.subText},computed:{...h(["user"]),...h("userReporting",["snpSource"]),...h("subscriptions",["subscriptionStatus"])},methods:{...le(["setModal"])}},Ge={class:"container body"},Ke={class:"row"},Xe={class:"component download"},Je={class:"component-body"},We={key:0,class:"no-subscription"},$e={key:1,class:"oasis-warning"},es={key:0,class:"oasis-logo",src:je},ss={class:"disclaimer"},is={key:0},ts={key:2,class:"only-30x"};function rs(s,e,t,u,a,r){const i=b("Upsell30x"),n=b("router-link"),c=b("DownloadLinks");return o(),l("div",null,[s.user.product.name!=="lowPass"?(o(),z(i,{key:0})):p("",!0),d("div",Ge,[d("div",Ke,[d("div",Xe,[d("div",Je,[["past_due","unpaid","canceled"].includes(s.subscriptionStatus)?(o(),l("div",We,[e[2]||(e[2]=m(" Your subscription is no longer active, all functionality has been limited to downloading your raw data. Your subscription fee has not been paid, go ",-1)),F(n,{to:{name:"EditProfile",query:{tab:"Subscription"}}},{default:ue(()=>[...e[1]||(e[1]=[m("here",-1)])],void 0,!0),_:1}),e[3]||(e[3]=m(" to update your payment information or ",-1)),d("a",{href:"javascript:void(0);",onClick:e[0]||(e[0]=f=>s.setModal({name:"SupportModal",active:!0}))},"contact support"),e[4]||(e[4]=m(" for further assistance. ",-1))])):p("",!0),s.user.oasisIdentityNew?(o(),l("div",$e,[s.user.oasisIdentityNew?(o(),l("img",es)):p("",!0),e[5]||(e[5]=m(" Your VCF data is being managed and protected by Oasis Labs. To download your genomic data and manage your privacy settings, visit the ",-1)),e[6]||(e[6]=d("a",{href:"https://steward.oasiscloud.io/apps/ba4fed15-12b2-4e0c-8d47-11839810f2e8/"},"Oasis Steward Application.",-1))])):p("",!0),e[10]||(e[10]=d("h1",null,"Your Genome Belongs To You",-1)),e[11]||(e[11]=d("p",{class:"page-description"}," We believe your genome belongs to you. Because of this, we provide your genomic data in a number of different file formats so that you can download and use that data as you see fit. ",-1)),e[12]||(e[12]=d("h4",null,"Your Files",-1)),d("p",ss,[e[7]||(e[7]=d("b",null,"Important:",-1)),e[8]||(e[8]=m(" These files can be very large, we recommend that you do not download them on your mobile device. ",-1)),["bgi","g42","prph"].includes(s.snpSource)?p("",!0):(o(),l("span",is,"Additionally, if you intend to use your raw data with a 3rd party interpretation service, we recommend only using your imputed VCF files provided below.")),e[9]||(e[9]=d("span",null,`The larger files ('CRAM') will be archived after the first 14 days of the report availability. These files can still be downloaded, but will take a maximum of 48 hours to prepare. You can initiate this process by clicking "Restore". When your download is ready you will recieve an email notification.`,-1))]),s.user.product.name==="imputation"?(o(),l("div",ts," Downloading data is available with 30x Whole Genomce Sequencing data only! Click to learn more. ")):p("",!0),F(c)])])])])])}const us=T(Ze,[["render",rs],["__scopeId","data-v-90cf0b55"]]);export{us as default};
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.