"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[2e3],{72e3:function(e,t,r){r.r(t);var n=r(33028),u=r(96234),s=r(96902),a=r(21051),i=r.n(a),o=r(6880),c=r(4782),l=r(67461),f=r(29938);function d(e){var t=e.value,r=(0,s.useState)(!1),n=(0,u.Z)(r,2),a=n[0],o=n[1],c=(0,s.useState)(!1),l=(0,u.Z)(c,2),d=l[0],j=l[1],b=String(t);return b.length>100?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("button",{type:"button",onClick:function(){i()(b),j(!0),setTimeout((function(){j(!1)}),700)},children:d?"Copied to clipboard":"Copy"}),(0,f.jsx)("button",{type:"button",onClick:function(){return o((function(e){return!e}))},children:a?"Show less":"Show more"}),(0,f.jsx)("div",{children:a?b:"".concat(b.slice(0,100),"...")})]}):(0,f.jsx)("div",{children:b})}function j(e){return(0,f.jsx)(l.BaseAttributes,(0,n.Z)((0,n.Z)({},e),{},{formatter:function(e){return(0,f.jsx)(d,{value:e})}}))}var b=(0,c.observer)((function(e){var t=e.model,r=JSON.parse(JSON.stringify(t.featureData)),n=r.feature1,u=r.feature2;return(0,f.jsxs)(o.Z,{"data-testid":"alignment-side-drawer",children:[(0,f.jsx)(l.BaseCoreDetails,{title:"Feature 1",feature:n}),(0,f.jsx)(l.BaseCoreDetails,{title:"Feature 2",feature:u}),(0,f.jsx)(j,{feature:n}),(0,f.jsx)(j,{feature:u})]})}));t.default=b}}]);
//# sourceMappingURL=2000.58c5f0ee.chunk.js.map