"use strict";(self.webpackChunkbit_workspace=self.webpackChunkbit_workspace||[]).push([["889"],{45040(t,e,r){function n(){var t;let e=(t=r(636672))&&t.__esModule?t:{default:t};return n=function(){return e},e}function i(){let t=r(217103);return i=function(){return t},t}function o(){let t=r(210934);return o=function(){return t},t}function u(){let t=r(616301);return u=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.HighlighterWidget=function(){let[t,e]=(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:()=>e(!t),active:t})))}},418001(t,e,r){function n(){let t=r(382600);return n=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactAspect=void 0;let i=e.ReactAspect=n().Aspect.create({id:"teambit.react/react"});e.default=i},957298(t,e,r){function n(){let t=r(209003);return n=function(){return t},t}function i(){var t;let e=(t=r(147245))&&t.__esModule?t:{default:t};return i=function(){return e},e}function o(){let t=r(29462);return o=function(){return t},t}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t,e,r){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0}),e.ReactSchema=void 0;let ReactSchema=class ReactSchema extends n().SchemaNode{getNodes(){return(0,o().compact)([this.props,this.returnType])}toString(t){var e;let r=null!=t&&t.color?i().default.bold:t=>t,n=null==(e=this.props)?void 0:e.toString(),o=this.typeParams?`<${this.typeParams.join(", ")}>`:"";return`${this.modifiersToString()}${o}${r(this.name)}(${n}): ${this.returnType.toString()}`}toFullSignature(t){let e="";this.doc&&null!=t&&t.showDocs&&(e+=`${this.doc.toFullSignature()}
`);let r=this.modifiersToString(),n=this.typeParams?`<${this.typeParams.join(", ")}>`:"",i=this.props?this.props.toFullSignature():"",o=this.returnType.toFullSignature();return e+`${r}const ${this.name}${n} = (${i}): ${o};`}isDeprecated(){var t;return!!(null==(t=this.doc)?void 0:t.hasTag(n().TagName.deprecated))}isPrivate(){var t;return!!(this.modifiers.find(t=>"private"===t)||(null==(t=this.doc)?void 0:t.hasTag(n().TagName.private)))}modifiersToString(){let t=this.modifiers.filter(t=>"export"!==t);return t.length?`${t.join(" ")} `:""}toObject(){var t,e;return c(c({},super.toObject()),{},{name:this.name,props:null==(t=this.props)?void 0:t.toObject(),returnType:this.returnType.toObject(),signature:this.signature,modifiers:this.modifiers,doc:null==(e=this.doc)?void 0:e.toObject(),typeParams:this.typeParams})}static fromObject(t){let e=t.location,r=t.name,i=t.props?n().ParameterSchema.fromObject(t.props):void 0;return new ReactSchema(e,r,n().SchemaRegistry.fromObject(t.returnType),i,t.signature,t.modifiers,t.doc?n().DocSchema.fromObject(t.doc):void 0,t.typeParams)}constructor(t,e,r,i,u,c=[],s,l){super(),this.location=t,this.name=e,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(e,(0,o().compact)([i]),r)}};e.ReactSchema=ReactSchema},191797(t,e,r){function n(t,e,r,n,i,o,u){try{var c=t[o](u),a=c.value}catch(t){r(t);return}c.done?e(a):Promise.resolve(a).then(n,i)}function i(){var t;let e=(t=r(636672))&&t.__esModule?t:{default:t};return i=function(){return e},e}function o(){let t=r(944979);return o=function(){return t},t}function u(){let t=r(136306);return u=function(){return t},t}function c(){let t=r(809869);return c=function(){return t},t}function a(){let t=r(950220);return a=function(){return t},t}function s(){let t=r(211919);return s=function(){return t},t}function l(){let t=r(210814);return l=function(){return t},t}function f(){let t=r(277098);return f=function(){return t},t}function p(){let t=r(418001);return p=function(){return t},t}function d(){let t=r(45040);return d=function(){return t},t}function h(){let t=r(957298);return h=function(){return t},t}function m(t,e,r){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}let ReactUI=class ReactUI{static provider(t){var e;return(e=function*([t,e,r]){let n=new ReactUI;return e.registerEmptyState(()=>i().default.createElement(a().AddingTests,null)),t.registerEmptyState(()=>i().default.createElement(s().AddingCompositions,null)),r.registerSchemaClasses(()=>[h().ReactSchema]),r.registerAPINodeRenderer([f().reactRenderer]),t.registerMenuWidget({location:"start",content:i().default.createElement(d().HighlighterWidget,null)}),n},function(){var t=this,r=arguments;return new Promise(function(i,o){var u=e.apply(t,r);function c(t){n(u,i,o,c,a,"next",t)}function a(t){n(u,i,o,c,a,"throw",t)}c(void 0)})}).apply(this,arguments)}};m(ReactUI,"runtime",u().UIRuntime),m(ReactUI,"slots",[]),m(ReactUI,"dependencies",[o().CompositionsAspect,c().TesterAspect,l().APIReferenceAspect]),p().ReactAspect.addRuntime(ReactUI)},537877(){},501770(){},818804(){},38679(){},714724(){},878220(){},449859(){},309028(){},511692(){},510437(){}},function(t){t.O(0,["712"],function(){return t(t.s=390824)}),t.O()}]);