"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3300,5246],{71610:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(35300),s=n(87083),a=n(69500);function l(e){const{title:t="Attributes",feature:n}=e;return(0,a.jsx)(s.default,{...e,title:t,children:(0,a.jsx)(r.default,{...e,attributes:n})})}},75246:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(93300),s=n(87083),a=n(95054),l=n(68446),i=n(7552),o=n(99546),u=n(65895),d=n(69500);const f=(0,i.lazy)((()=>n.e(3301).then(n.bind(n,33301)))),c=(0,l.observer)((function({model:e}){const{featureData:t,view:n,level:r,trackId:s}=e;return(0,d.jsxs)("ul",{children:["LinearSyntenyView"===n.type?(0,d.jsx)("li",{children:(0,d.jsx)(u.A,{href:"#",onClick:s=>{s.preventDefault();const{views:a}=n;if(void 0!==r)a[r]?.navTo(t),a[r+1]?.navTo(t.mate);else{const n=t,r=t.mate,s=n.assemblyName,l=r.assemblyName,i=a.find((e=>e.assemblyNames[0]===s)),u=a.find((e=>e.assemblyNames[0]===l));i&&u||(0,o.getSession)(e).notify([i?`Unable to find ${(0,o.assembleLocString)(n)} in synteny view`:"",u?`Unable to find ${(0,o.assembleLocString)(r)} in synteny view`:""].join(" ... ")),i?.navTo(n),u?.navTo(r)}},children:"Center view on this feature"})}):null,(0,d.jsx)("li",{children:(0,d.jsx)(u.A,{href:"#",onClick:n=>{n.preventDefault();const r=new o.SimpleFeature(t),a=(0,o.getSession)(e);a.queueDialog((e=>[f,{session:a,feature:r,trackId:s,handleClose:e}]))},children:"Launch new linear synteny view on this feature"})})]})})),b=(0,l.observer)((function({model:e}){return(0,d.jsxs)(a.A,{children:[(0,d.jsx)(r.default,{title:"Feature",model:e}),(0,d.jsx)(s.default,{title:"Link to view",children:(0,d.jsx)(c,{model:e})})]})}))},93300:(e,t,n)=>{n.r(t),n.d(t,{BaseAttributes:()=>d.default,BaseCard:()=>u.default,BaseCoreDetails:()=>f.default,FeatureDetails:()=>l.default,default:()=>c});var r=n(68446),s=n(1178),a=n(373),l=n(84144),i=n(49823),o=n(69500),u=n(87083),d=n(71610),f=n(94788);const c=(0,r.observer)((function({model:e}){const{error:t,featureData:n}=e;if(t)return(0,o.jsx)(i.ErrorMessage,{error:t});if(n){const t=(0,a.Il)(n);return(0,s.Im)(t)?null:(0,o.jsx)(l.default,{model:e,feature:t})}return null}))},94788:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(87083),s=n(62568),a=n(69500);function l(e){const{title:t="Primary data"}=e;return(0,a.jsx)(r.default,{...e,title:t,children:(0,a.jsx)(s.A,{...e})})}}}]);
//# sourceMappingURL=5246.59e10cff.chunk.js.map