"use strict";var _liveDescription=require("../../utils/live-description"),_theme=require("../../utils/theme"),_utils=require("../../utils/utils");Component({properties:{sdkInstance:{type:Object,value:null},isLandscape:{type:Boolean,value:!1}},data:{description:"",descriptionPopupVisible:!1,isDarkTheme:!1},observers:{sdkInstance:function(i){var e=this;i&&("function"==typeof this.unsub&&this.unsub(),this.unsub=null,this.unsub=i.store.get({liveInfo:function(i){var t=(0,_liveDescription.resolveLiveDescription)(i),s=e.data.isLandscape&&(0,_theme.isUseDarkTheme)(null==i?void 0:i.Basic),n={};t!==e.data.description&&(n.description=t,n.descriptionPopupVisible=!!t&&e.data.descriptionPopupVisible),s!==e.data.isDarkTheme&&(n.isDarkTheme=s),(0,_utils.setDataIfChanged)(e,n)}}))}},lifetimes:{detached:function(){"function"==typeof this.unsub&&this.unsub(),this.unsub=null}},methods:{openDescriptionPopup:function(){this.data.description&&this.setData({descriptionPopupVisible:!0})},closeDescriptionPopup:function(){this.data.descriptionPopupVisible&&this.setData({descriptionPopupVisible:!1})},catchNone:function(){}}});