"use strict";(self.webpackChunkbit_workspace=self.webpackChunkbit_workspace||[]).push([["20698"],{657882(e,t,r){function n(){let e=r(701658);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.NodeAspect=void 0;let i=t.NodeAspect=n().Aspect.create({id:"teambit.harmony/node",dependencies:[],defaultConfig:{}});t.default=i},214066(e,t,r){function n(e,t,r,n,i,o,u){try{var c=e[o](u),a=c.value}catch(e){r(e);return}c.done?t(a):Promise.resolve(a).then(n,i)}function i(){var e;let t=(e=r(912888))&&e.__esModule?e:{default:e};return i=function(){return t},t}function o(){let e=r(840848);return o=function(){return e},e}function u(){let e=r(931241);return u=function(){return e},e}function c(){let e=r(666688);return c=function(){return e},e}function a(){let e=r(83839);return a=function(){return e},e}function s(){let e=r(657882);return s=function(){return e},e}function l(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let NodeEnvUI=class NodeEnvUI{static provider(e){var t;return(t=function*([e,t]){let r=new NodeEnvUI;return t.registerEmptyState(()=>i().default.createElement(a().EmptyBox,{title:"This component doesn\u2019t have any tests.",linkText:"Learn how to add tests to your node components",link:"https://bit.dev/reference/dev-services-overview/tester/tester-overview"})),e.registerEmptyState(()=>i().default.createElement(a().EmptyBox,{title:"This component doesn\u2019t have any compositions.",linkText:"Learn how to add compositions to your node components",link:"https://bit.dev/reference/dev-services-overview/compositions/compositions-overview"})),r},function(){var e=this,r=arguments;return new Promise(function(i,o){var u=t.apply(e,r);function c(e){n(u,i,o,c,a,"next",e)}function a(e){n(u,i,o,c,a,"throw",e)}c(void 0)})}).apply(this,arguments)}};l(NodeEnvUI,"runtime",u().UIRuntime),l(NodeEnvUI,"slots",[]),l(NodeEnvUI,"dependencies",[o().CompositionsAspect,c().TesterAspect]),s().NodeAspect.addRuntime(NodeEnvUI)},860528(e,t,r){function n(){var e;let t=(e=r(912888))&&e.__esModule?e:{default:e};return n=function(){return t},t}function i(){let e=r(23647);return i=function(){return e},e}function o(){let e=r(188856);return o=function(){return e},e}function u(){let e=r(189821);return u=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.HighlighterWidget=function(){let[e,t]=(0,u().usePreviewQueryParams)("highlighter");return n().default.createElement(o().Tooltip,{content:"Component Highlighter (beta)"},n().default.createElement("span",null,n().default.createElement(i().OptionButton,{icon:"highlighter-toggle",onClick:()=>t(!e),active:e})))}},829649(e,t,r){function n(){let e=r(163336);return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactAspect=void 0;let i=t.ReactAspect=n().Aspect.create({id:"teambit.react/react"});t.default=i},729842(e,t,r){function n(){let e=r(209003);return n=function(){return e},e}function i(){var e;let t=(e=r(189933))&&e.__esModule?e:{default:e};return i=function(){return t},t}function o(){let e=r(464278);return o=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.ReactSchema=void 0;let ReactSchema=class ReactSchema extends n().SchemaNode{getNodes(){return(0,o().compact)([this.props,this.returnType])}toString(e){var t;let r=(null==e?void 0:e.color)?i().default.bold:e=>e,n=null==(t=this.props)?void 0:t.toString(),o=this.typeParams?`<${this.typeParams.join(", ")}>`:"";return`${this.modifiersToString()}${o}${r(this.name)}(${n}): ${this.returnType.toString()}`}toFullSignature(e){let t="";this.doc&&(null==e?void 0:e.showDocs)&&(t+=`${this.doc.toFullSignature()}
`);let r=this.modifiersToString(),n=this.typeParams?`<${this.typeParams.join(", ")}>`:"",i=this.props?this.props.toFullSignature():"",o=this.returnType.toFullSignature();return t+`${r}const ${this.name}${n} = (${i}): ${o};`}isDeprecated(){var e;return!!(null==(e=this.doc)?void 0:e.hasTag(n().TagName.deprecated))}isPrivate(){var e;return!!(this.modifiers.find(e=>"private"===e)||(null==(e=this.doc)?void 0:e.hasTag(n().TagName.private)))}modifiersToString(){let e=this.modifiers.filter(e=>"export"!==e);return e.length?`${e.join(" ")} `:""}toObject(){var e,t;return c(c({},super.toObject()),{},{name:this.name,props:null==(e=this.props)?void 0:e.toObject(),returnType:this.returnType.toObject(),signature:this.signature,modifiers:this.modifiers,doc:null==(t=this.doc)?void 0:t.toObject(),typeParams:this.typeParams})}static fromObject(e){let t=e.location,r=e.name,i=e.props?n().ParameterSchema.fromObject(e.props):void 0;return new ReactSchema(t,r,n().SchemaRegistry.fromObject(e.returnType),i,e.signature,e.modifiers,e.doc?n().DocSchema.fromObject(e.doc):void 0,e.typeParams)}constructor(e,t,r,i,u,c=[],s,l){super(),this.location=e,this.name=t,this.modifiers=c,this.typeParams=l,a(this,"returnType",void 0),a(this,"props",void 0),a(this,"doc",void 0),a(this,"signature",void 0),a(this,"displaySchemaName","React"),this.props=i,this.returnType=r,this.doc=s,this.signature=u||n().FunctionLikeSchema.createSignature(t,(0,o().compact)([i]),r)}};t.ReactSchema=ReactSchema},451125(e,t,r){function n(e,t,r,n,i,o,u){try{var c=e[o](u),a=c.value}catch(e){r(e);return}c.done?t(a):Promise.resolve(a).then(n,i)}function i(){var e;let t=(e=r(912888))&&e.__esModule?e:{default:e};return i=function(){return t},t}function o(){let e=r(848060);return o=function(){return e},e}function u(){let e=r(456709);return u=function(){return e},e}function c(){let e=r(944552);return c=function(){return e},e}function a(){let e=r(405390);return a=function(){return e},e}function s(){let e=r(770092);return s=function(){return e},e}function l(){let e=r(666746);return l=function(){return e},e}function f(){let e=r(585421);return f=function(){return e},e}function p(){let e=r(829649);return p=function(){return e},e}function d(){let e=r(860528);return d=function(){return e},e}function m(){let e=r(729842);return m=function(){return e},e}function v(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let ReactUI=class ReactUI{static provider(e){var t;return(t=function*([e,t,r]){let n=new ReactUI;return t.registerEmptyState(()=>i().default.createElement(a().AddingTests,null)),e.registerEmptyState(()=>i().default.createElement(s().AddingCompositions,null)),r.registerSchemaClasses(()=>[m().ReactSchema]),r.registerAPINodeRenderer([f().reactRenderer]),e.registerMenuWidget({location:"start",content:i().default.createElement(d().HighlighterWidget,null)}),n},function(){var e=this,r=arguments;return new Promise(function(i,o){var u=t.apply(e,r);function c(e){n(u,i,o,c,a,"next",e)}function a(e){n(u,i,o,c,a,"throw",e)}c(void 0)})}).apply(this,arguments)}};v(ReactUI,"runtime",u().UIRuntime),v(ReactUI,"slots",[]),v(ReactUI,"dependencies",[o().CompositionsAspect,c().TesterAspect,l().APIReferenceAspect]),p().ReactAspect.addRuntime(ReactUI)},592071(){},910533(){},915078(){},868701(){},904682(){},846877(){},782589(){},265372(){},595919(){},194268(){},878220(){},449859(){},309028(){},336001(){},510437(){}},function(e){e.O(0,["11928","20314","24163","26085","27941","27997","3583","38508","4235","48190","63400","63600","70836","75018","82990","84702","91066"],function(){return e(e.s=242513)}),e.O()}]);