(window.webpackJsonpvtexventures_livestreaming_free_0_37_0=window.webpackJsonpvtexventures_livestreaming_free_0_37_0||[]).push([["ClientLivestreaming"],{0:function(e,n){e.exports=React},1:function(e,n){e.exports=ReactIntl},100:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtexventures.livestreaming-utils@0.x/useLivestreaming"]},13:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},153:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getLiveStreamingsLive"},variableDefinitions:[],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtexventures.livestreaming-free@0.37.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"liveStreamingsLive"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"574578b7221eb24ea74c57a6c6dc3edf7670588dce3b9a05509a6e2edbb40462",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"eventName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:241}};i.loc.source={body:'query getLiveStreamingsLive @context(sender: "vtexventures.livestreaming-free@0.37.0") {\n liveStreamingsLive @runtimeMeta(hash: "574578b7221eb24ea74c57a6c6dc3edf7670588dce3b9a05509a6e2edbb40462") {\n id\n eventName\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function a(e,n){for(var i=0;i0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(i,"getLiveStreamingsLive")},175:function(e,n,i){"use strict";i.r(n),function(e){var n=i(10);i.p=Object(n.getPublicPath)("vtexventures.livestreaming-free@0.37.0");var t=Object(n.register)((function(){return i(176)}),e,"vtexventures.livestreaming-free@0.37.0","vtexventures.livestreaming-free@0.x","ClientLivestreaming");t.renderHotReload,t.setupHMR}.call(this,i(30)(e))},176:function(e,n,i){"use strict";i.r(n),i.d(n,"schema",(function(){return g}));var t=i(25),a=i(0),r=i.n(a),o=i(7),s=i(1),u=i(54),d=i(8),c=i(153),l=i.n(c),v=i(85),m=Object(s.defineMessages)({id:{id:"admin/editor.live-streaming.id"},title:{id:"admin/editor.live-streaming.title"},showComponent:{id:"admin/editor.live-streaming.show-component"}}),f={title:m.id.id,type:"string",default:"__default__",enum:[""],enumNames:[""]},_=function(e){var n=e.showComponent,i=Object(d.useRuntime)().query,s=null==i?void 0:i.__siteEditor,c=Object(o.useQuery)(l.a,{fetchPolicy:"network-only",ssr:!1,skip:!s}),m=c.loading,_=c.data;return Object(a.useEffect)((function(){var e;if(!(m||!(null===(e=null==_?void 0:_.liveStreamingsLive)||void 0===e?void 0:e.length)||(null==f?void 0:f.enum.length)>1||(null==f?void 0:f.enumNames.length)>1)){var n=null==_?void 0:_.liveStreamingsLive,i=n.map((function(e){return e.id})),a=n.map((function(e){return e.eventName}));f=Object.assign(Object.assign({},f),{enum:[].concat(Object(t.a)(f.enum),Object(t.a)(i)),enumNames:[].concat(Object(t.a)(f.enumNames),Object(t.a)(a))})}}),[_,m]),n?r.a.createElement(u.OrderFormProvider,null,r.a.createElement(v.a,{livestreamingId:e.idLiveStreamingLive})):null},g=function(){return{title:m.title.id,type:"object",properties:{showComponent:{title:m.showComponent.id,type:"boolean"},idLiveStreamingLive:Object.assign({},f)}}};_.displayName="ConfigureLiveStreaming",_.getSchema=g,n.default=_},28:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.session-client@1.x/useFullSession"]},35:function(e,n){e.exports=regeneratorRuntime},42:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.session-client@1.x/useRenderSession"]},54:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},7:function(e,n){e.exports=ReactApollo},72:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},8:function(e,n){e.exports=__RENDER_8_RUNTIME__}},[[175,"common",2,0,1,10]]]);