PageSourceSearch

https://www.refine.bio/_next/static/chunks/247-94576b5d6068bca3.js

js refine.bio collected 2026-09-24 19:38:13 UTC 41,638 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[247],{9900:function(e,n,r){r.d(n,{V:function(){return u},h:function(){return m}});var t=r(9521),o=r(975),i=r(8087),a=r(253),s=r(4288),l=r(6034),c=r(1640),d=r(5893),u=(0,t.default)(s.l).withConfig({displayName:"InformationList",componentId:"sc-wv5ut7-0"})(["",""],function(e){var n=e.theme;return(0,t.css)(["> div:nth-of-type(odd){background:",";}"],n.global.colors["gray-shade-5"])}),m=function(e){var n=e.field,r=e.value,t=e.fallback,s=e.forceFallback,u=(0,a.F)().setResponsive;return(0,d.jsxs)(l.X,{direction:u("column","column","row"),justify:"start",pad:{horizontal:u("basex7","basex7","basex12"),vertical:"small"},children:[(0,d.jsx)(o.x,{margin:{right:"medium"},width:{min:"192px"},children:(0,d.jsx)(i.x,{margin:{bottom:u("xxsmall","xxsmall","none")},textAlign:u("start","start","end"),weight:"bold",children:n})}),(0,d.jsx)(o.x,{children:r&&!(void 0!==s&&s)?(0,d.jsx)(i.x,{style:{overflowWrap:"break-word"},children:r}):(0,d.jsx)(c.M,{text:void 0===t?"N/A":t})})]})}},9247:function(e,n,r){r.d(n,{P:function(){return e7}});var t=r(7812),o=r(7294),i=r(975),a=r(8087),s=r(4915),l=r(9802),c=r(9499),d=r(932);function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function m(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){(0,c.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var p=function(){var e=(0,o.useContext)(d.I),n=e.loading,r=e.hasError,t=e.samples,i=e.samplesQuery,a=e.hasSamples,s=e.totalSamples,l=e.setSamplesQuery;return{loading:n,hasError:r,samples:t,samplesQuery:i,hasSamples:a,totalSamples:s,getExperimentAccessionCodes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.experiment_accession_code,r=i.organism__name;return n?[n]:e.experiments.filter(function(e){return e.organism_names.includes(r)}).map(function(e){return e.accession_code})},getSamplesMetadata:function(){return["age","cell_line","compound","developmental_stage","disease","disease_stage","genetic_information","race","sex","specimen_part","subject","treatment"].filter(function(e){return t.some(function(n){return""!==n[e]&&null!==n[e]})})},refreshSamples:function(){l(m({},i))},updateFilterBy:function(e){l(function(n){if(e===n.filter_by)return n;var r=m({},n);return e?r.filter_by=e:delete r.filter_by,r.offset=0,r})},updatePage:function(e){var n=(e-1)*i.limit;l(function(e){if(n===e.offset)return e;var r=m({},e);return r.offset=n,r})},updatePageSize:function(e){l(function(n){if(e===n.limit)return n;var r=m({},n);return r.limit=e,r.offset=0,r})},updateDatasetId:function(e){l(function(n){var r=m({},n);return e?r.dataset_id=e:delete r.dataset_id,r.offset=0,r})},updateSortBy:function(e){l(function(n){if(e===n.ordering)return n;var r=m({},n);return r.ordering=e||"accession_code",r})}}},x=r(253),f=r(209),h=r(4281),g=r(1311),b=r(9419),j=r(4784),v=r(4288),y=r(2871),w=r(6835),_=function(e,n){var r=(0,o.useState)(!1),t=r[0],i=r[1];return(0,o.useEffect)(function(){var r=new IntersectionObserver(function(e){i((0,w.Z)(e,1)[0].isIntersecting)},n);return e.current&&r.observe(e.current),function(){r.disconnect()}},[e,n]),t},S=r(4730),O=r(5893),k=["isResizing"];function C(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?C(Object(r),!0).forEach(function(n){(0,c.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var z=function(e){var n=e.isResizing,r=(0,S.Z)(e,k);return(0,O.jsx)(i.x,P(P({},r),{},{style:{boxShadow:"none",cursor:"col-resize",display:"inline-block",position:"absolute",right:0,top:0,touchAction:"none",transform:" translateX(50%)",zIndex:1},width:n?"100%":"24px",height:"100%",onClick:function(e){return e.stopPropagation()}}))},F=r(1464),I=(0,o.memo)(function(e){var n=e.isSorted;return(0,O.jsx)(i.x,{background:n?"gray-shade-70":"transparent",height:"3px",width:"100%",style:{position:"absolute",left:0,bottom:0}})}),A=function(e){var n=e.isSorted,r=e.isSortedDesc,t="12px";return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(i.x,{fill:!0,justify:"center",margin:{top:"-2px"},style:{position:"absolute",top:0,left:0},children:(0,O.jsxs)(i.x,{fill:!0,align:"end",pad:{right:"xsmall"},children:[(0,O.jsxs)(i.x,{margin:{top:"small"},children:[n&&!r&&(0,O.jsx)(F.J,{name:"ChevronUp",size:t,color:"black"}),n&&r&&(0,O.jsx)(F.J,{name:"ChevronDown",size:t,color:"black"})]}),!n&&(0,O.jsxs)(i.x,{margin:{top:"-6px"},children:[(0,O.jsx)(F.J,{name:"ChevronUp",size:t,color:"gray-shade-40"}),(0,O.jsx)(F.J,{name:"ChevronDown",size:t,color:"gray-shade-40"})]})]})}),(0,O.jsx)(I,{isSorted:n})]})},E=r(9521),D="gray-shade-20",R=(0,E.default)(i.x).withConfig({displayName:"Table",componentId:"sc-ra1yqo-0"})(["display:block;min-width:auto;overflow:auto;position:relative;right:-15px;[data-sticky-td]{position:sticky;}",""],function(e){var n=e.theme;return(0,E.css)(["[data-sticky-last-left-td]{box-shadow:5px 2px 15px ",";}[data-sticky-first-right-td]{box-shadow:-2px 0px 3px ",";}"],n.global.colors[D],n.global.colors[D])}),T=(0,E.default)(i.x).withConfig({displayName:"Table__TableHeader",componentId:"sc-ra1yqo-1"})(["position:sticky;top:0;width:100%;z-index:1;"]),N=(0,E.default)(i.x).withConfig({displayName:"Table__TableBody",componentId:"sc-ra1yqo-2"})(["position:relative;z-index:0;"]),M=(0,E.default)(i.x).withConfig({displayName:"Table__TableRow",componentId:"sc-ra1yqo-3"})(["flex-direction:row;",""],function(e){var n=e.theme;return(0,E.css)(["&:last-child div{border-bottom:0;}&:nth-child(even){> div{background:",";}}&:hover > div{background:",";cursor:pointer;}"],n.global.colors["gray-shade-5"],"#E2E2E2")}),B=(0,E.default)(i.x).withConfig({displayName:"Table__TableCell",componentId:"sc-ra1yqo-4"})(["overflow:hidden;padding:8px 16px;position:relative;overflow:hidden;&:last-child{border-right:0;}span{font-size:14px;overflow:hidden;text-overflow:ellipsis;}"," ",""],function(e){var n=e.theme;return(0,E.css)(["background:",";border-bottom:1px solid ",";border-right:1px solid ",";"],n.global.colors.white,n.global.colors[D],n.global.colors[D])},function(e){var n=e.theme;return"th"===e.type&&(0,E.css)(["border-bottom:1px solid ","!important;box-shadow:5px 2px 15px ",";height:44px;"],n.global.colors[D],n.global.colors[D])}),q=r(6432),L=function(e){var n=e.isFirstCellVisible,r=e.isLastCellVisible,t=e.target,o=(0,x.F)().viewport,a=function(e){t.scrollBy({top:0,left:e,behavior:"smooth"})};return(0,O.jsxs)(O.Fragment,{children:["large"!==o&&(0,O.jsx)(i.x,{align:"center",animation:{type:n?"fadeOut":"fadeIn",duration:n?500:800},background:"gradientLeft",justify:"center",height:"100%",style:{overflow:"visible",position:"absolute",left:0,top:0,zIndex:3},width:"30px",children:(0,O.jsx)(q.z,{"aria-label":"Scroll to left",disabled:n,gap:"none",icon:(0,O.jsx)(F.J,{name:"ChevronLeft",size:"xsmall"}),primary:!0,style:{cursor:n?"default":"pointer",padding:"10px 4px",position:"absolute",left:"-50%",top:"50%",transform:"translateY(-50%)"},onClick:function(){return a(-200)}})}),(0,O.jsx)(i.x,{align:"center",animation:{type:r?"fadeOut":"fadeIn",duration:r?500:800},background:"gradientRight",justify:"center",height:"100%",style:{overflow:"visible",position:"absolute",right:0,top:0,zIndex:3},width:"30px",children:(0,O.jsx)(q.z,{"aria-label":"Scroll to right",disabled:r,gap:"none",icon:(0,O.jsx)(F.J,{name:"ChevronRight",size:"xsmall"}),primary:!0,style:{cursor:r?"default":"pointer",padding:"10px 4px",position:"absolute",right:"-50%",top:"50%",transform:"translateY(-50%)"},onClick:function(){return a(200)}})})]})};function Z(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function H(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?Z(Object(r),!0).forEach(function(n){(0,c.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var J=function(e){var n=e.columns,r=e.data,t=e.defaultColumn,s=e.defaultSortId,c=e.hasTableData,d=e.hiddenColumns,u=e.manualPagination,m=e.tableExpanded,p=e.tableHeight,x=e.modalView,f=e.onSortByChange,h=void 0===f?function(){}:f,g=(0,o.useRef)(null),b=(0,o.useRef)(null),j=(0,o.useRef)(null),w=_(b,{root:g.current,rootMargin:"0px",threshold:.99}),S=_(j,{root:g.current,rootMargin:"0px",threshold:.8}),k=(0,o.useMemo)(function(){return n},[n]),C=(0,o.useMemo)(function(){return r},[r]),P=(0,l.useTable)({columns:k,data:C,defaultColumn:void 0===t?{}:t,initialState:{hiddenColumns:void 0===d?[]:d,sortBy:[{id:void 0===s?"":s,desc:!1}]},manualPagination:void 0!==u&&u,autoResetSortBy:!1},l.useResizeColumns,l.useFlexLayout,y.useSticky,l.useSortBy),F=P.getTableProps,I=P.headerGroups,E=P.getTableBodyProps,D=P.rows,q=P.prepareRow,Z=P.state,J=Z.columnResizing.columnWidths,V=Z.sortBy,W=(0,o.useState)({}),X=W[0],Q=W[1];return(0,o.useEffect)(function(){J&&Q(function(e){return H(H({},e),{},{columnWidths:J})})},[J]),(0,o.useEffect)(function(){h(V.length>0?V[0].desc?"-".concat(V[0].id):V[0].id:"")},[V]),(0,O.jsx)(i.x,{border:{color:"gray-shade-20",side:"all"},height:{min:c?"auto":"160px"},margin:{horizontal:m?"basex6":"none"},style:{overflow:"visible"},children:(0,O.jsxs)(v.l,{children:[(0,O.jsx)(L,{isFirstCellVisible:w,isLastCellVisible:S,target:g.current}),(0,O.jsx)(v.l,{width:{max:"none"},style:{left:"-15px",overflow:"hidden",width:"calc(100% + 15px)"},children:(0,O.jsxs)(R,H(H({},F()),{},{ref:g,height:{max:p||void 0!==x&&x?"60vh":"auto"},children:[(0,O.jsx)(T,{className:"header",children:I.map(function(e){return(0,O.jsx)(M,H(H({},e.getHeaderGroupProps()),{},{children:e.headers.map(function(e,n,r){return(0,O.jsxs)(B,H(H({},e.getHeaderProps(e.getSortByToggleProps())),{},{type:"th",ref:0===n?b:n===r.length-1?j:null,children:[(0,O.jsxs)(i.x,{direction:"row",justify:"between",children:[(0,O.jsx)(a.x,{weight:"bold",children:e.render("Header")}),e.canSort&&(0,O.jsx)(A,{isSorted:e.isSorted,isSortedDesc:e.isSortedDesc})]}),e.canResize&&(0,O.jsx)(z,H(H({},e.getResizerProps()),{},{isResizing:e.isResizing}))]}))})}))})}),(0,O.jsx)(N,H(H({},E()),{},{className:"body",children:D.map(function(e){return q(e),(0,O.jsx)(M,H(H({},e.getRowProps()),{},{children:e.cells.map(function(e){var n,r,t;return(0,O.jsx)(B,H(H({},e.getCellProps()),{},{children:(0,O.jsx)(a.x,{style:{whiteSpace:X&&(null===(n=X.columnWidths)||void 0===n?void 0:null===(r=n.cell)||void 0===r?void 0:null===(t=r.column)||void 0===t?void 0:t.id)<100?"nowrap":"normal"},children:e.render("Cell")})}))})}))})}))]}))})]})})},V=function(e){var n=e.tableExpanded,r=e.setTableExpanded;return(0,O.jsx)(q.z,{icon:(0,O.jsx)(F.J,{color:"brand",name:n?"Collapse":"Expand",size:"16px"}),gap:"xsmall",label:n?"Collaspe Table":"Expand Table",style:{fontWeight:700,paddingRight:0},onClick:function(){return r(!n)}})},W=r(8925),X=r(8792),Q=r(3914),G=r(7208),U=function(e){var n=e.value,r=e.placeholder,t=e.onChange,s=void 0===t?function(){}:t,l=(0,x.F)().setResponsive,c=(0,o.useState)(n),d=c[0],u=c[1],m=function(e){u(e)};return(0,o.useEffect)(function(){s(d)},[d]),(0,O.jsxs)(i.x,{direction:"row",align:"center",gap:"small",children:[(0,O.jsx)(a.x,{children:"Filter"}),(0,O.jsxs)(X.W,{htmlFor:"text-input",a11yTitle:"Text Input Field",role:"search",width:l("100%","auto"),style:{position:"relative"},children:[(0,O.jsx)(Q.o,{id:"text-input",type:"text",value:d||"",placeholder:void 0===r?"":r,style:{paddingRight:"28px"},onChange:function(e){m(e.target.value)}}),d&&(0,O.jsxs)(i.x,{role:"button",style:{boxShadow:"none",position:"absolute",right:"8px",top:"8px"},onClick:function(){u("")},children:[(0,O.jsx)(F.J,{name:"Close",size:"16px"}),(0,O.jsx)(G.o,{children:"Clear text"})]})]})]})},Y=function(e){var n=e.background,r=e.duration,t=e.opacity,o=e.toggle;return(0,O.jsx)(O.Fragment,{children:o&&(0,O.jsx)(i.x,{animation:{type:o?"fadeIn":"fedeOut",duration:void 0===r?150:r},background:void 0===n?"rgba4":n,fill:!0,style:{opacity:void 0===t?0:t,position:"fixed",left:0,top:0,zIndex:2}})})},$=r(4697),K=r(9851),ee=r(6034),en=r(2454),er=r(2725),et=r(3416),eo=r(7670),ei=r(9984),ea=r(1854),es=function(e){return null!=e&&"Object"===e.constructor.name},el=function(e){return null!=e&&"string"==typeof e},ec=function(e){var n=document.createElement("a");return n.href=e,n.host&&n.host!==window.location.host},ed=r(9900),eu=r(5305),em=r(1640),ep=function(e){var n=e.value;return el(n)?ec(n)?(0,O.jsx)(j.e,{href:n,label:n,rel:"nofollow noopener noreferrer",target:"_blank"}):(0,O.jsx)(eu.B,{children:n}):(0,O.jsx)(a.x,{as:"code",children:JSON.stringify(n)})},ex=function(e){var n=e.value;if(el(n))return(0,O.jsx)(ep,{value:n});if((0,ea.Z)(n))return n.map(function(e,n){return(0,O.jsx)(i.x,{direction:"row",margin:{top:n?"xsmall":"none"},children:(0,O.jsx)(ep,{value:e})},(0,et.x0)())});if(es(n)){if(2===Object.keys(n).length&&n.value){var r=Object.keys(n).find(function(e){return"value"!==e});return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ep,{value:n[r]}),": ",(0,O.jsx)(ep,{value:n.value})]})}return Object.keys(n).map(function(e){return(0,O.jsxs)(i.x,{direction:"row",children:[(0,O.jsx)(ep,{value:e}),(0,O.jsx)(ep,{value:n[e]})]},e)})}return(0,O.jsx)(a.x,{as:"code",children:JSON.stringify(n)})},ef=function(e){var n=e.value;if((0,ea.Z)(n)&&1===n.length)return(0,O.jsx)(ep,{value:n[0]});var r=(0,ea.Z)(n)||!es(n);if((0,ea.Z)(n)&&n.length>0&&n.every(function(e){return 2===Object.keys(e).length&&!!e.value})){var t=(0,ei.Z)(n.map(function(e){var n=Object.keys(e).find(function(e){return"value"!==e});return[e[n],e.value]}));return(0,O.jsx)(ex,{value:t})}return(0,O.jsx)(i.x,{children:r?(0,O.jsx)(ex,{value:n}):Object.keys(n).map(function(e){return(0,O.jsxs)(o.Fragment,{children:[(0,O.jsx)("strong",{children:(0,O.jsx)(ep,{value:e})}),(0,O.jsx)(ex,{value:n[e]})]},(0,et.x0)())})})},eh=function(e){var n=e.annotations,r=(0,x.F)().setResponsive,t=(0,o.useState)(""),s=t[0],l=t[1],c=n.map(function(e){for(var n={},r=0,t=Object.entries(e);r<t.length;r++){var o=(0,w.Z)(t[r],2),i=o[0],a=o[1];(a&&JSON.stringify(a).toLocaleLowerCase().includes(s.toLocaleLowerCase())||i.toLocaleLowerCase().includes(s.toLocaleLowerCase()))&&
1(n[i]=a)}return n}),d=c.some(function(e){return Object.keys(e).length>0});return(0,O.jsxs)(f.$,{match:s,children:[(0,O.jsxs)(i.x,{margin:{bottom:"small"},pad:{horizontal:r("xsmall","xsmall","large")},children:[(0,O.jsx)(eo.X,{level:1,margin:{bottom:"large"},children:"Additional Metadata"}),(0,O.jsxs)(ee.X,{align:r("start","center"),width:r("100%","auto"),children:[(0,O.jsx)(i.x,{align:"center",direction:"row",margin:{bottom:r("small","none")},width:r("100%","auto"),children:(0,O.jsx)(U,{value:s,placeholder:"Filter metadata",onChange:l})}),(0,O.jsx)(W.g,{label:"Sample metadata included in download",fontSize:r("small","medium")})]})]}),(0,O.jsx)(i.x,{height:{max:r("85vh","82vh","700px")},margin:{bottom:r("none","none","-24px"),left:"-24px"},width:{min:"calc(100% + 48px)",max:"none"},children:d?(0,O.jsx)(ed.V,{style:{overflow:"auto",overflowX:"hidden"},children:Object.keys(c[0]).map(function(e){return(0,O.jsx)(ed.h,{field:e,value:(0,O.jsx)(ef,{value:c[0][e]})},(0,et.x0)())})}):(0,O.jsx)(i.x,{margin:{vertical:"medium"},pad:{horizontal:r("large","large","basex7")},children:(0,O.jsx)(em.M,{text:(0,O.jsxs)(O.Fragment,{children:["No metadata found matching"," ",(0,O.jsx)(a.x,{color:"black",style:{fontStyle:"normal"},children:(0,O.jsxs)("strong",{children:['"',s,'"']})})]})})})})]})},eg=function(e){var n=e.row.original,r=e.linkFontSize,t=(0,en.d)().openModal,o=(0,x.F)().setResponsive;if(0===n.annotations.length)return(0,O.jsx)(em.M,{text:"N/A"});var i="metadata_".concat(n.id),a=n.annotations.map(function(e){return e.data});return(0,O.jsx)(er.u,{id:i,button:(0,O.jsx)(q.z,{label:"View",link:!0,linkFontSize:void 0===r?"14px":r,onClick:function(){return t(i)}}),center:!1,width:o("100vw","100vw","950px"),children:(0,O.jsx)(eh,{annotations:a})})},eb=r(82);function ej(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function ev(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ej(Object(r),!0).forEach(function(n){(0,c.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ej(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ey=function(e){var n=e.experimentAccessionCodes,r=e.sample,t=n.filter(function(e){return r.experiment_accession_codes.includes(e)}).reduce(function(e,n){return ev(ev({},e),{},(0,c.Z)({},n,[r.accession_code]))},{});return r.is_processed&&(!b.Fs.qnTargets||b.Fs.qnTargets[r.organism.name])?(0,O.jsx)(eb.Y,{data:t,label:"Add",secondary:!0}):(0,O.jsxs)(i.x,{direction:"row",gap:"xsmall",children:[(0,O.jsx)(F.J,{name:"Info",color:"info"}),(0,O.jsxs)(i.x,{children:[(0,O.jsx)(a.x,{children:"Sample not processed"}),(0,O.jsx)(j.e,{href:b.Ok.refinebio_docs_why_can_I_add_certain_samples_to_my_dataset,label:"Learn more",target:"_blank",rel:"noopener noreferrer"})]})]})},ew=function(e){var n=e.value,r=e.nullText;return n?(0,O.jsx)(eu.B,{children:n}):(0,O.jsx)(em.M,{text:void 0===r?"N/A":r})},e_=(0,E.default)(i.x).withConfig({displayName:"SamplesTableEmpty",componentId:"sc-1b0hwqa-0"})(["align-items:center;justify-content:center;padding-top:32px;position:absolute;top:0;width:100%;height:100%;z-index:1;",";"],function(e){var n=e.background;return(0,E.css)(["background:",";"],n)}),eS=function(e){var n=e.onClick;return(0,O.jsx)(e_,{background:"rgbaLight7",children:(0,O.jsxs)(i.x,{direction:"row",gap:"xxsmall",children:[(0,O.jsx)(a.x,{color:"error",children:"Temporarily under heavy traffic load. Please"}),(0,O.jsx)(q.z,{label:"try again",link:!0,linkColor:"error",linkFontSize:"medium",onClick:n}),(0,O.jsx)(a.x,{color:"error",children:"later."})]})})},eO=r(381),ek=r.n(eO),eC=r(5174),eP=r(8207),ez=r(3121),eF=r(6541),eI=(0,E.default)(i.x).withConfig({displayName:"SamplesTableProcessingInformationPipelineSteps__Arrow",componentId:"sc-9xzbj5-0"})(["",""],function(e){var n=e.theme;return(0,E.css)(["border-top:2px solid ",";flex-grow:1;position:relative;&:before,&:after{content:'';border-top:2px solid ",";position:absolute;right:0;width:6px;}&:before{top:-4px;transform:rotate(38deg);}&:after{top:0;transform:rotate(-38deg);}"],n.global.colors["gray-shade-40"],n.global.colors["gray-shade-40"])}),eA=function(e){var n=e.label,r=e.img,t=r.url,o=r.height,s=r.width,l=(0,x.F)().setResponsive;return(0,O.jsxs)(i.x,{align:"center",children:[(0,O.jsx)(i.x,{"aria-hidden":!0,background:{image:"url(/".concat(t,")"),position:"center",repeat:"no-repeat",size:"contain"},margin:{bottom:"xsmall"},height:o,width:s}),(0,O.jsx)(a.x,{textAlign:"center",size:l("small","medium"),children:n})]})},eE=function(e){var n=e.results;return(0,O.jsxs)(i.x,{align:"center",direction:"row",justify:"around",margin:{top:"medium",bottom:"large"},children:[(0,O.jsx)(eA,{label:"Input File",img:{url:"file.svg",height:"25px",width:"30px"}}),(0,O.jsx)(eI,{}),n.map(function(e){var n=e.processor.name;return(0,O.jsxs)(o.Fragment,{children:[(0,O.jsx)(eA,{label:n,img:{url:"processing.svg",height:"38px",width:"34px"}}),(0,O.jsx)(eI,{})]},n)}),(0,O.jsx)(eA,{label:"Gene Expression Matrix",img:{url:"file.svg",height:"25px",width:"30px"}})]})},eD=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",t=new RegExp("(?=[".concat("	\n\v\f\r \xa0 ᠎             \u2028\u2029 \uFEFF","])")),o=e.split(t),i=0,a=o.filter(function(e){return(i+=e.length)<=n}).join("");return a+(a!==e?r:"")},eR=r(7548),eT=r(4794),eN=function(e){var n=function(){return o.Children.count(e.children)},r=(0,o.useState)(Array(n()).fill(!1)),t=r[0],a=r[1],s=!t.includes(!1),l=function(){s?a(Array(n()).fill(!1)):a(Array(n()).fill(!0))},c=function(e){a(function(){return t.map(function(n,r){return r===e?!n:n})})}
1,d=o.Children.map(e.children,function(e,n){return e&&(0,o.cloneElement)(e,{expand:t[n],handleToggle:function(){return c(n)}})});return(0,O.jsxs)(i.x,{margin:{top:"xsmall"},children:[!e.hideExpandAll&&d.length>1&&(0,O.jsx)(i.x,{margin:{bottom:"small"},children:(0,O.jsx)(eR.J,{label:"Expand all",onClick:function(){return l()},checked:s})}),d]})},eM=function(e){var n=e.title,r=e.children,t=e.handleToggle,s=e.expand,l=e.duration,c=e.maxHeight,d=o.Children.count(r)>0;return(0,O.jsxs)(i.x,{border:{side:"horizontal",color:"gray-shade-5"},margin:{bottom:"small"},pad:{top:"small"},children:[(0,O.jsxs)(i.x,{direction:"row",justify:"between",children:[(0,O.jsx)(i.x,{margin:{bottom:"xsmall"},width:{min:"160px"},children:n&&n instanceof Function?n(s):n}),d&&(0,O.jsx)(i.x,{"aria-label":"Expand this list",role:"button",margin:{right:"small"},style:{boxShadow:"none"},onClick:t,children:(0,O.jsx)(a.x,{color:"black",children:s?(0,O.jsx)(F.J,{name:"ChevronUp",size:"xsmall"}):(0,O.jsx)(F.J,{name:"ChevronDown",size:"xsmall"})})})]}),d&&(0,O.jsx)(eT.P,{expand:s,duration:void 0===l?".45s":l,timing:"linear",maxHeight:void 0===c?"99vh":c,children:r})]})},eB=function(e){var n=e.protocol;return function(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(eo.X,{level:5,responsive:!1,weight:"500",children:(0,g.Z)(n.Type)}),(0,O.jsx)(a.x,{children:e?n.Text:eD(n.Text,80)})]})}},eq=function(e){var n=e.protocol_info;return(0,O.jsx)(i.x,{pad:{horizontal:"large"},children:(0,O.jsx)(eN,{children:n.map(function(e){return(0,O.jsx)(eM,{title:eB({protocol:e}),children:(0,O.jsxs)(a.x,{margin:{top:"xsmall"},children:[(0,O.jsx)("strong",{children:"Reference"})," ",(0,O.jsx)(j.e,{label:e.Reference,href:e.Reference,rel:"noopener noreferrer",target:"_blank"})]})},e.Accession)})})})},eL=function(e){var n=e.protocol_info,r=e.isSubmitterProcessed;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(ed.V,{children:[["Extraction protocol","Label protocol","Hybridization protocol","Scan protocol","Data processing"].map(function(e){return n[e]&&(0,O.jsx)(ed.h,{field:e,value:n[e].join(". ")},e)}),n.Reference&&(0,O.jsx)(ed.h,{field:"Reference",value:(0,O.jsx)(j.e,{href:n.Reference,label:n.Reference,rel:"noopener noreferrer",target:"_blank"})})]}),void 0!==r&&r&&(0,O.jsxs)(i.x,{border:{side:"top"},margin:{top:"large"},pad:{horizontal:"large",top:"large"},children:[(0,O.jsx)(i.x,{margin:{bottom:"xsmall"},children:(0,O.jsx)(eo.X,{level:3,children:"Gene Identifier Conversion"})}),(0,O.jsxs)(ez.n,{children:["We have created custom gene mapping files for Affymetrix platforms (see:"," ",(0,O.jsx)(j.e,{href:b.Ok.identifier_refinery_github_repo,label:b.Ok.identifier_refinery_github_repo,target:"_blank",rel:"noopener noreferrer"}),") that support conversion from probe IDs, gene symbols, Entrez IDs, RefSeq and Unigene identifiers to Ensembl gene IDs. We support conversion from Illumina BeadArray probe IDs to Ensembl gene IDs using Bioconductor Illumina BeadArray expression packages."]})]})]})},eZ=function(e){var n=e.protocol_info;return(0,O.jsx)(i.x,{pad:{horizontal:"large"},children:n.map(function(e){return(0,O.jsxs)(i.x,{children:[(0,O.jsx)(ez.n,{children:e.Description}),(0,O.jsxs)(a.x,{margin:{top:"xsmall"},children:[(0,O.jsx)("strong",{children:"Reference"})," ",(0,O.jsx)(j.e,{href:e.Reference,label:e.Reference,rel:"noopener noreferrer",target:"_blank"})]})]},e.Description)})})},eH=function(e){var n=e.sample,r=e.isSubmitterProcessed,t={GEO:eL,SRA:eZ,ARRAY_EXPRESS:eq}[null==n?void 0:n.source_database];return t?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(i.x,{margin:{bottom:"small"},pad:{horizontal:"large"},children:(0,O.jsx)(eo.X,{level:2,size:"small",children:"Submitter Supplied Protocol"})}),(0,O.jsx)(t,{protocol_info:n.protocol_info,isSubmitterProcessed:r})]}):null};function eJ(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var eV=function(e,n){if(!es(e))return null;var r,t={},o=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return eJ(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eJ(e,n)}}(e))){r&&(e=r);var t=0,o=function(){};return{s:o,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;e[i]&&(t[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return t},eW=(0,E.default)(i.x).withConfig({displayName:"SamplesTableProcessingInformationVersion__List",componentId:"sc-1wnilqb-0"})(["",""],function(e){var n=e.theme;return(0,E.css)(["> div:nth-of-type(odd){background:",";}"],n.global.colors["gray-shade-5"])}),eX=function(e){var n=e.title,r=e.version,t=e.versions;return(0,O.jsxs)(i.x,{direction:r?"row":"column",pad:{vertical:"xsmall"},children:[(0,O.jsx)(i.x,{width:{min:"160px"},children:(0,O.jsx)(eo.X,{level:5,responsive:!1,weight:"500",children:n})}
1),t&&Object.keys(t).map(function(e){return(0,O.jsxs)(i.x,{direction:"row",children:[(0,O.jsx)(i.x,{margin:{right:"medium"},width:{min:"160px"},children:(0,O.jsx)(a.x,{textAlign:"end",children:e})}),(0,O.jsx)(i.x,{children:(0,O.jsx)(a.x,{children:t[e]})})]},e)}),r&&(0,O.jsx)(i.x,{margin:{left:"medium"},children:(0,O.jsx)(a.x,{children:r})})]})},eQ=function(e){var n=e.processor,r=[{title:"OS Packages",versions:n.environment.os_pkg},{title:"Python",versions:n.environment.python},{title:"OS Distribution",version:n.environment.os_distribution}];return(0,O.jsx)(eW,{children:r.map(function(e){return(0,O.jsx)(eX,{title:e.title,version:e.version,versions:e.versions},e.title)})})},eG=function(e){var n=e.results,r=function(e){var n;switch(e.name){case"Affymetrix SCAN":return eV(e.environment.R,["SCAN.UPC","Brainarray"]);case"Salmon Quant":return{salmon:null===(n=e.environment.cmd_line["salmon --version"])||void 0===n?void 0:n.replace("salmon ","")};case"Tximport":return eV(e.environment.R,["tximport"]);default:return!1}},t=function(e){var n=r(e);return n?(0,O.jsx)(eM,{title:(0,O.jsx)(eX,{title:e.name,versions:n}),children:(0,O.jsx)(eQ,{processor:e,primaryPackages:n})},e.name):null};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(eo.X,{level:2,size:"small",children:"Version Information"}),(0,O.jsx)(eN,{children:n.map(function(e){return t(e.processor)})}),(0,O.jsx)(i.x,{children:function(){var e=n.find(function(e){return"Salmon Quant"===e.processor.name});if(!e||!e.organism_index||!e.organism_index.assembly_name)return null;var r=[{"genome build":e.organism_index.assembly_name},{"database name":e.organism_index.database_name},{"release version":e.organism_index.release_version}];return(0,O.jsxs)(i.x,{margin:{top:"small"},children:[(0,O.jsx)(eo.X,{level:5,responsive:!1,weight:"500",children:"Genome Build"}),r.map(function(e){return(0,O.jsx)(eX,{versions:e},(0,et.x0)())})]})}()})]})},eU=function(e){var n=e.name,r=e.description;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(i.x,{margin:{bottom:"xsmall"},children:(0,O.jsx)(eo.X,{level:2,size:"small",children:n})}),(0,O.jsx)(ez.n,{children:r})]})},eY=function(){var e=(0,O.jsxs)(O.Fragment,{children:["SCAN (Single Channel Array Normalization) is a normalization method for single channel (Affymetrix) microarrays that allows us to process individual samples. SCAN models and corrects for the effect of technical bias, such as GC content, using a mixture-modeling approach. For more information about this approach, see the primary publication (Piccolo, et al. ",(0,O.jsx)("i",{children:"Genomics"}),". 2012."," ",(0,O.jsx)(j.e,{href:b.Ok.doi_scan,label:"DOI: ".concat(b.Ok.doi_scan.substring(15)),target:"_blank",rel:"noopener noreferrer"}),")"," ",(0,O.jsxs)(a.x,{children:["and the SCAN.UPC bioconductor package documentation (",(0,O.jsx)(j.e,{href:b.Ok.doi_scan_upc_bioconductor_docs,label:"DOI: ".concat(b.Ok.doi_scan_upc_bioconductor_docs.substring(16)),target:"_blank",rel:"noopener noreferrer"}),")."]})]});return(0,O.jsx)(eU,{name:"SCAN",description:e})},e$=function(){var e=(0,O.jsxs)(O.Fragment,{children:["SCAN (Single Channel Array Normalization) is a normalization method for single channel microarrays that allows us to process individual samples. It was originally developed for Affymetrix microarrays. In our system, it has been adapted for Illumina BeadArrays. SCAN models and corrects for the effect of technical bias, such as GC content, using a mixture-modeling approach. For more information about this approach, see the primary publication (Piccolo, et al. ",(0,O.jsx)("i",{children:"Genomics"}),". 2012."," ",(0,O.jsx)(j.e,{href:b.Ok.doi_scan,label:"DOI: ".concat(b.Ok.doi_scan.substring(15)),target:"_blank",rel:"noopener noreferrer"}),")."]});return(0,O.jsx)(eU,{name:"SCAN",description:e})},eK=function(){var e=(0,O.jsxs)(O.Fragment,{children:["Salmon is an alignment-free method for estimating transcript abundances from RNA-Seq data. We use it in quasi-mapping mode, which is significantly faster than alignment-based approaches and requires us to build a Salmon transcriptome index. We build a custom reference transcriptome (using RSEM rsem-prepare-reference) by filtering the Ensembl genomic DNA assembly to remove pseudogenes, which we expect could negatively impact the quantification of protein-coding genes. This means we're obtaining abundance estimates for coding as well as non-coding transcripts. We include the flags ",(0,O.jsx)("i",{children:"--seqBias"})," to correct for random hexamer priming and, if this is a paired-end experiment, ",(0,O.jsx)("i",{children:"--gcBias"})," to correct for GC content when running ",(0,O.jsx)("i",{children:"salmon quant"}),"."," ",(0,O.jsx)(j.e,{href:b.Ok.salmon_quant,label:"Learn more",target:"_blank",rel:"noopener noreferrer"})]});return(0,O.jsx)(eU,{name:"Salmon",description:e})},e0=function(){var e=(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("i",{children:"tximport"})," imports transcript (tx)-level abundance estimates generated by",(0,O.jsx)("i",{children:"salmon quant"})," and summarizes them to the gene-level. We use the tx to gene mapping generated as part of our reference transcriptome processing pipeline. Our tximport implementation generates"," ",(0,O.jsx)(j.e,{href:b.Ok.r_docs_tximport,label:'"lengthScaledTPM"',target:"_blank",rel:"noopener noreferrer"}),", which are gene-level count-scale values that are generated by scaling TPM using the average transcript length across samples and to the library size. Note that tximport is applied at the ",(0,O.jsx)("em",{children:"experiment-level"})," ","rather than to single samples. For additional information, see the"," ",(0,O.jsx)(j.e,{href:b.Ok.bioconductor_tximport,label:"tximport Bioconductor page",target:"_blank",rel:"noopener noreferrer"}),", the"," ",(0,O.jsx)(j.e,{href:b.Ok.bioconductor_tutorial,label:(0,O.jsxs)(O.Fragment,{children:["tximport tutorial"," ",(0,O.jsx)("em",{children:"Importing transcript abundance datasets with tximport"})]}),target:"_blank",rel:"noopener noreferrer"}),", and"," ",(0,O.jsx)(j.e,{href:b.Ok.doi_f100_research_2015,label:(0,O.jsxs)(O.Fragment,{children:["Soneson, et al. ",(0,O.jsx)("em",{children:"F1000Research."})," 2015"]}),target:"_blank",rel:"noopener noreferrer"}),"."]});return(0,O.jsx)(eU,{name:"Tximport",description:e})},e1=function(e){var n=e.isSubmitterProcessed,r=e.pipelinesText,t=e.results,o=e.sample,a={"Affymetrix SCAN":eY,"Illumina SCAN":e$,MultiQC:null,"Salmon Quant":eK,"Submitter-processed":eH,"Transcriptome Index":null,Tximport:e0},s=function(e){var r=a[e];return r?(0,O.jsx)(r,{isSubmitterProcessed:n,results:t,sample:o},e):null};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(i.x,{margin:{bottom:"medium"},children:[(0,O.jsx)(eo.X,{level:2,size:"small",children:1===r.length?r[0]:"".concat(r.slice(0,r.length-1).join(", "),", and ").concat(r[r.length-1])}),(0,O.jsx)(eE,{results:t}),t.map(function(e,n,r){var t=e.processor.name;return(0,O.jsx)(i.x,{margin:{bottom:(0,eF.Z)(n,r)?"xsmall":"medium"},children:s(t)},t)}
1),(0,O.jsxs)(ez.n,{children:["All samples available for download will be"," ",(0,O.jsx)("strong",{children:"quantile normalized"}),". For more information regarding how quantile normalization is performed and its limitations, see"," ",(0,O.jsx)(j.e,{href:b.Ok.refinebio_gitbut_quantile_normalization,label:"our documentation",target:"_blank",rel:"noopener noreferrer"}),"."]})]}),(0,O.jsx)(eG,{results:t})]})},e2=function(e){var n=e.results,r=e.sample,t=n.map(function(e){return e.processor.name}),o=t.every(function(e){return"Submitter-processed"===e});return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(i.x,{margin:{bottom:"small"},pad:{horizontal:"large"},children:(0,O.jsx)(eo.X,{level:1,children:"Processing Information"})}),(0,O.jsxs)(i.x,{margin:{bottom:"small"},children:[o?(0,O.jsx)(i.x,{margin:{bottom:"medium"},pad:{horizontal:"large"},children:(0,O.jsx)(eP.D,{label:(0,O.jsx)(j.e,{href:b.Ok.refinebio_docs_processed_badge,label:"Submitter processed",linkColor:"black",underlineOnHover:!1,target:"_blank",rel:"noopener noreferrer"}),status:"warning"})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(i.x,{pad:{horizontal:"large"},children:[(0,O.jsx)(i.x,{margin:{bottom:"medium"},children:(0,O.jsx)(eP.D,{label:(0,O.jsx)(j.e,{href:b.Ok.refinebio_docs_processed_badge,label:"refine.bio processed",linkColor:"black",underlineOnHover:!1,target:"_blank",rel:"noopener noreferrer"}),status:"success"})}),(0,O.jsx)(e1,{isSubmitterProcessed:o,pipelinesText:t,results:n,sample:r})]}),(0,O.jsx)(i.x,{border:{side:"top"},margin:{top:"medium"},pad:{top:"large"}})]}),!(0,eC.Z)(r.protocol_info)&&(0,O.jsx)(eH,{isSubmitterProcessed:o,protocolInfo:r.protocol_info,sample:r})]})]})},e5=function(e){var n=e.row.original,r=e.linkFontSize,t=(0,en.d)().openModal,o=(0,x.F)().setResponsive;if(!n.is_processed||!n.results||!n.results.length)return(0,O.jsx)(em.M,{text:"N/A"});var i="processing-information_".concat(n.id),a=["MultiQC","Salmontools"],s=n.results.filter(function(e){return!a.includes(e.processor.name)}).filter(function(e,n,r){return r.findIndex(function(n){return n.processor.name===e.processor.name})===n}).sort(function(e,n){return ek()(e.time_start).diff(ek()(n.time_start))}),l=s.map(function(e){return e.processor.name}).join(", ");return(0,O.jsx)(er.u,{id:i,button:(0,O.jsx)(q.z,{label:l,link:!0,linkFontSize:void 0===r?"14px":r,onClick:function(){return t(i)}}),center:!1,width:o("100vw","100vw","950px"),children:(0,O.jsx)(e2,{results:s,sample:n})})},e4=r(4666),e8=r(9858),e9=r(6217),e3=function(e){var n=e.experiment,r=(0,e8.x)().myDataset,t=p(),i=t.updateDatasetId,a=t.samplesQuery,s=(0,(0,e4.J)(r.data,(0,e9.c)(a.experiment_accession_code,n.num_downloadable_samples)).getAnyProcessedInDataset)(),l=(0,o.useState)(!1),c=l[0],d=l[1];return(0,O.jsx)(eR.J,{checked:c,label:"Show only samples in current dataset",disabled:!s,onChange:function(){var e=!c;i(e?r.id:null),d(e)}})},e7=function(e){var n=e.experiment,r=e.dataset,c=e.isImmutable,d=void 0!==c&&c,u=e.modalView,m=e.showMyDatasetFilter,y=p(),w=y.loading,_=y.hasError,S=y.samples,k=y.samplesQuery,C=y.hasSamples,P=y.totalSamples,z=y.getSamplesMetadata,F=y.getExperimentAccessionCodes,I=y.refreshSamples,A=y.updateFilterBy,E=y.updatePage,D=y.updatePageSize,R=y.updateSortBy,T=(0,x.F)(),N=T.viewport,M=T.setResponsive,B=(0,o.useState)(!1),q=B[0],L=B[1],Z=(0,o.useMemo)(function(){return{minWidth:60,width:160,maxWidth:250}},[]),H=(0,o.useMemo)(function(){return S},[S]),X=(0,o.useMemo)(function(){if(!S.length)return[];var e=F(r),n=z(),o=[{Header:"Add/Remove",Cell:function(n){var r=n.row.original;return(0,O.jsx)(ey,{experimentAccessionCodes:e,sample:r})},disableSortBy:!0,id:"add_remove",width:200,maxWidth:200},{Header:"Accession Code",accessor:"accession_code",Cell:ew,maxWidth:160},{Header:"Title",accessor:"title",Cell:ew},{id:"id",accessor:"id",isVisible:!1}].concat((0,t.Z)(n.map(function(e){return{id:e,accessor:e,Header:(0,g.Z)(e),Cell:ew}})),[{Header:"Processing Information",disableSortBy:!0,id:"processing_information",width:180,Cell:e5},{Header:"Additional Metadata",disableSortBy:!0,id:"additional_metadata",width:180,Cell:eg}
1]);if("large"===N){var i=3,a=0;for(d&&(o.shift(),i=2);a<=i;a++)o[a].sticky="left"}return o},[d,N,S]),Q=(0,l.useAsyncDebounce)(function(e){A(e||"")},500),G=X.filter(function(e){return"Add/Remove"!==e.Header&&!1!==e.isVisible}).length>5,en=!(void 0!==u&&u)&&"large"===N&&G;return(0,O.jsxs)(O.Fragment,{children:[q&&(0,O.jsx)(Y,{duration:0,toggle:q}),(0,O.jsxs)(i.x,{animation:q?{type:"zoomIn",duration:250}:{},background:"white",height:q?"100vh":"100%",width:q?"100vw":"100%",style:{position:q?"fixed":"relative",top:0,left:0,zIndex:q?10:"inherit"},children:[(0,O.jsxs)(ee.X,{margin:{bottom:"small"},pad:{top:q?"large":"none",horizontal:q?"basex6":"none"},children:[(0,O.jsxs)(i.x,{align:M("start","start","center"),direction:M("column","column","row"),margin:{bottom:M("medium","none")},children:[(0,O.jsx)($.b,{pageSize:k.limit,totalPages:P,onPageSizeChange:D}),(0,O.jsx)(i.x,{margin:{left:M("none","none","medium"),top:M("small","xsmall","none")},children:void 0!==m&&m&&(0,O.jsx)(e3,{experiment:n})})]}),(0,O.jsxs)(i.x,{direction:"row",children:[(0,O.jsx)(i.x,{direction:"row",justify:"start",align:M("start","center"),children:(0,O.jsx)(U,{filter:k.filter_by,placeholder:"Filter samples",onChange:Q})}),en&&(0,O.jsx)(V,{tableExpanded:q,setTableExpanded:L})]})]}),(0,O.jsxs)(v.l,{children:[(0,O.jsxs)(f.$,{match:k.filter_by,children:[(0,O.jsx)(J,{columns:X,data:H||[],defaultColumn:Z,defaultSortId:"accession_code",hasTableData:C,hiddenColumns:X.filter(function(e){return!1===e.isVisible}).map(function(e){return e.accessor}),manualPagination:!0,tableHeight:q?"75vh":"800px",tableExpanded:q,modalView:!0,onSortByChange:R}),!C&&k.filter_by&&(0,O.jsx)(e_,{children:(0,O.jsx)(em.M,{text:(0,O.jsxs)(O.Fragment,{children:["No rows found matching",(0,O.jsx)(a.x,{color:"black",style:{fontStyle:"normal"},margin:{left:"xsmall"},children:(0,O.jsxs)("strong",{children:['"',k.filter_by,'"']})})]})})})]}),w&&(0,O.jsx)(e_,{background:"rgbaLight7",children:(0,O.jsx)(s.$,{color:"gray-shade-70",message:{start:"Loading data",end:"Data loaded"}})}),_&&(0,O.jsx)(eS,{onClick:I})]}),C&&(0,O.jsxs)(i.x,{children:[(0,O.jsxs)(i.x,{direction:M("column","row"),justify:"start",margin:{top:"small"},children:[(0,O.jsx)(W.g,{label:"Some fields may be harmonized.",fontSize:"medium",margin:{left:q?"basex6":"none",right:"xsmall",bottom:M("xsmall","none")}}),(0,O.jsx)(j.e,{href:b.Ok.refinebio_docs_harmonized_metadata,label:"Learn More",rel:"noopener noreferrer"})]}),(0,O.jsx)(i.x,{align:"center",direction:"row",justify:"center",margin:{top:"medium"},children:(0,O.jsx)(K.t,{page:(0,h.Z)(k.offset,k.limit),pageSize:k.limit,totalPages:P,onPageChange:E})})]})]})]})}},932:function(e,n,r){r.d(n,{I:function(){return m},z:function(){return p}});var t=r(29),o=r(9499),i=r(7794),a=r.n(i),s=r(7294),l=r(2084),c=r(9858),d=r(5893);function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}var m=(0,s.createContext)({}),p=function(e){var n=e.query,r=e.children,i=(0,c.x)().dataset,p=(0,s.useState)({}),x=p[0],f=p[1],h=(0,s.useState)(!1),g=h[0],b=h[1],j=(0,s.useState)(!1),v=j[0],y=j[1],w=(0,s.useState)(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){(0,o.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}({offset:0,limit:10},n)),_=w[0],S=w[1],O=x.results||[],k=O.length>0,C=x.count;(0,s.useEffect)(function(){var e;(e=(0,t.Z)(a().mark(function e(){var n;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),e.next=3,l.h.samples.get(_);case 3:y((null==(n=e.sent)?void 0:n.ok)===!1),f(n),b(!1);case 7:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})()},[null==i?void 0:i.data,_]);var P=(0,s.useMemo)(function(){return{loading:g,hasError:v,samples:O,samplesQuery:_,hasSamples:k,totalSamples:C,setSamplesQuery:S}},[g,v,O,_,k,C,S]);return(0,d.jsx)(m.Provider,{value:P,children:r})}}}]);

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.