(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[9803,1921],{3132:function(e,r,t){"use strict";t.r(r);var n=t(33028),o=t(96234),u=t(30969),a=t(34760),i=t.n(a),s=t(46672),l=t(90550),c=t(83534),f=t(37574);function p(e){var r=e.value,t=(0,u.useState)(!1),n=(0,o.Z)(t,2),a=n[0],s=n[1],l=(0,u.useState)(!1),c=(0,o.Z)(l,2),p=c[0],d=c[1],h=String(r);return h.length>100?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("button",{type:"button",onClick:function(){i()(h),d(!0),setTimeout((function(){d(!1)}),700)},children:p?"Copied to clipboard":"Copy"}),(0,f.jsx)("button",{type:"button",onClick:function(){return s((function(e){return!e}))},children:a?"Show less":"Show more"}),(0,f.jsx)("div",{children:a?h:"".concat(h.slice(0,100),"...")})]}):(0,f.jsx)("div",{children:h})}function d(e){return(0,f.jsx)(c.BaseAttributes,(0,n.Z)((0,n.Z)({},e),{},{formatter:function(e){return(0,f.jsx)(p,{value:e})}}))}var h=(0,l.observer)((function(e){var r=e.model,t=JSON.parse(JSON.stringify(r.featureData)),n=t.feature1,o=t.feature2;return(0,f.jsxs)(s.Z,{"data-testid":"alignment-side-drawer",children:[(0,f.jsx)(c.BaseCoreDetails,{title:"Feature 1",feature:n}),(0,f.jsx)(c.BaseCoreDetails,{title:"Feature 2",feature:o}),(0,f.jsx)(d,{feature:n}),(0,f.jsx)(d,{feature:o})]})}));r.default=h},51921:function(e,r,t){!function(e,r){"use strict";function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(r);function o(e,r){return o=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},o(e,r)}function u(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,o(e,r)}var a=function(e,r){return void 0===e&&(e=[]),void 0===r&&(r=[]),e.length!==r.length||e.some((function(e,t){return!Object.is(e,r[t])}))},i={error:null},s=function(e){function r(){for(var r,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(r=e.call.apply(e,[this].concat(n))||this).state=i,r.resetErrorBoundary=function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];null==r.props.onReset||(e=r.props).onReset.apply(e,n),r.reset()},r}u(r,e),r.getDerivedStateFromError=function(e){return{error:e}};var t=r.prototype;return t.reset=function(){this.setState(i)},t.componentDidCatch=function(e,r){var t,n;null==(t=(n=this.props).onError)||t.call(n,e,r)},t.componentDidUpdate=function(e,r){var t,n,o=this.state.error,u=this.props.resetKeys;null!==o&&null!==r.error&&a(e.resetKeys,u)&&(null==(t=(n=this.props).onResetKeysChange)||t.call(n,e.resetKeys,u),this.reset())},t.render=function(){var e=this.state.error,r=this.props,t=r.fallbackRender,o=r.FallbackComponent,u=r.fallback;if(null!==e){var a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(u))return u;if("function"===typeof t)return t(a);if(o)return n.createElement(o,a);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},r}(n.Component);function l(e,r){var t=function(t){return n.createElement(s,r,n.createElement(e,t))},o=e.displayName||e.name||"Unknown";return t.displayName="withErrorBoundary("+o+")",t}function c(e){var r=n.useState(null),t=r[0],o=r[1];if(null!=e)throw e;if(null!=t)throw t;return o}e.ErrorBoundary=s,e.useErrorHandler=c,e.withErrorBoundary=l,Object.defineProperty(e,"__esModule",{value:!0})}(r,t(30969))}}]);
//# sourceMappingURL=9803.c12752cf.chunk.js.map