"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3363,3180],{21846:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var n=r(66204),a=r(43306),o=r.n(a),s=r(86636),i=r(80846),u=r(44047);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function l({value:e}){const[t,r]=(0,n.useState)(!1),[a,s]=(0,n.useState)(!1),i=String(e);return i.length>100?n.createElement(n.Fragment,null,n.createElement("button",{type:"button",onClick:()=>{o()(i),s(!0),setTimeout((()=>{s(!1)}),700)}},a?"Copied to clipboard":"Copy"),n.createElement("button",{type:"button",onClick:()=>r((e=>!e))},t?"Show less":"Show more"),n.createElement("div",null,t?i:`${i.slice(0,100)}...`)):n.createElement("div",null,i)}function d(e){return n.createElement(u.BaseAttributes,c({},e,{formatter:e=>n.createElement(l,{value:e})}))}const m=(0,i.observer)((({model:e})=>{const{feature1:t,feature2:r}=JSON.parse(JSON.stringify(e.featureData));return n.createElement(s.Z,{"data-testid":"alignment-side-drawer"},n.createElement(u.BaseCoreDetails,{title:"Feature 1",feature:t}),n.createElement(u.BaseCoreDetails,{title:"Feature 2",feature:r}),n.createElement(d,{feature:t}),n.createElement(d,{feature:r}))}))},6816:(e,t,r)=>{r.d(t,{d:()=>c});var n=r(66204),a=r(52682),o=r(76734),s=r(26074),i=r(43188);function u(e){return e.substring(2).toLowerCase()}function c(e){const{children:t,disableReactTree:r=!1,mouseEvent:c="onClick",onClickAway:l,touchEvent:d="onTouchEnd"}=e,m=n.useRef(!1),f=n.useRef(null),v=n.useRef(!1),p=n.useRef(!1);n.useEffect((()=>(setTimeout((()=>{v.current=!0}),0),()=>{v.current=!1})),[]);const b=(0,a.Z)(t.ref,f),g=(0,o.Z)((e=>{const t=p.current;p.current=!1;const n=(0,s.Z)(f.current);if(!v.current||!f.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(m.current)return void(m.current=!1);let a;a=e.composedPath?e.composedPath().indexOf(f.current)>-1:!n.documentElement.contains(e.target)||f.current.contains(e.target),a||!r&&t||l(e)})),E=e=>r=>{p.current=!0;const n=t.props[e];n&&n(r)},h={ref:b};return!1!==d&&(h[d]=E(d)),n.useEffect((()=>{if(!1!==d){const e=u(d),t=(0,s.Z)(f.current),r=()=>{m.current=!0};return t.addEventListener(e,g),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,g),t.removeEventListener("touchmove",r)}}}),[g,d]),!1!==c&&(h[c]=E(c)),n.useEffect((()=>{if(!1!==c){const e=u(c),t=(0,s.Z)(f.current);return t.addEventListener(e,g),()=>{t.removeEventListener(e,g)}}}),[g,c]),(0,i.jsx)(n.Fragment,{children:n.cloneElement(t,h)})}},96987:(e,t,r)=>{r.d(t,{Z:()=>v});var n=r(55559),a=r(30984),o=r(66204),s=r(56317),i=r(58029),u=r(57369),c=r(61125),l=r(41666),d=r(43188);const m=["className","component","disableGutters","variant"],f=(0,c.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((({theme:e,ownerState:t})=>(0,a.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),v=o.forwardRef((function(e,t){const r=(0,u.Z)({props:e,name:"MuiToolbar"}),{className:o,component:c="div",disableGutters:v=!1,variant:p="regular"}=r,b=(0,n.Z)(r,m),g=(0,a.Z)({},r,{component:c,disableGutters:v,variant:p}),E=(e=>{const{classes:t,disableGutters:r,variant:n}=e,a={root:["root",!r&&"gutters",n]};return(0,i.Z)(a,l.N,t)})(g);return(0,d.jsx)(f,(0,a.Z)({as:c,className:(0,s.Z)(E.root,o),ref:t,ownerState:g},b))}))},41666:(e,t,r)=>{r.d(t,{N:()=>o,Z:()=>s});var n=r(58109),a=r(95201);function o(e){return(0,a.Z)("MuiToolbar",e)}const s=(0,n.Z)("MuiToolbar",["root","gutters","regular","dense"])}}]);
//# sourceMappingURL=3363.cbaecc0b.chunk.js.map