PageSourceSearch

https://dashboard.cdnvideo.ru/static/js/player.51c7541a.js

js cdnvideo.ru collected 2026-09-24 09:03:16 UTC 92,909 bytes, 1 lines download raw bytes

1(self.webpackChunkcdnvideo=self.webpackChunkcdnvideo||[]).push([[1088],{92216:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return k}}),a(44114);var s=a(80440),l=a(46894),i=a(359),r=a(25892),o=a(47783),n=a(89717),c=a.n(n),d={name:"PlayerExample",props:{playerId:{required:!0},doesProdPlayerExist:{required:!0}},data(){return{testPlayer:void 0,prodPlayer:void 0}},beforeDestroy(){this.destroyTestPlayer(),this.destroyProdPlayer()},methods:{createPlayerViaLoader(t=!1){c().vzhooh({test:t,clientId:this.$user.accountUtoken,playerId:this.playerId,chatId:void 0,parentSelector:"#player"+(t?"-test":"-prod"),forceConfigRequest:!0,loadPlayerArgs:{onPlayerCreation:e=>{this[(t?"test":"prod")+"Player"]=e}}})},destroyTestPlayer(){this.testPlayer&&this.testPlayer.destroy()},destroyProdPlayer(){this.prodPlayer&&this.prodPlayer.destroy()},recreateTestPlayerByLoader(){this.destroyTestPlayer(),this.createPlayerViaLoader(!0)},recreateProdPlayerByLoader(){this.destroyProdPlayer(),this.doesProdPlayerExist&&this.createPlayerViaLoader()}}},u=a(81656),p=(0,u.A)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"players-container"},[e("div",{staticClass:"player test-player"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Тестовый плеер")))]),t._m(0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.doesProdPlayerExist,expression:"doesProdPlayerExist"}],staticClass:"player prod-player"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Публичный плеер")))]),t._m(1)])])}),[function(){var t=this._self._c;return t("div",{staticClass:"ratio-container corners-rounded overflow-hidden"},[t("div",{attrs:{id:"player-test"}})])},function(){var t=this._self._c;return t("div",{staticClass:"ratio-container corners-rounded overflow-hidden"},[t("div",{attrs:{id:"player-prod"}})])}],!1,null,"9bfd5bb8",null).exports,m={name:"ChatExample",props:{chatConfiguration:{required:!0}},methods:{createChatViaLoader(t=!1){c().vzhooh({test:t,clientId:this.$user.accountUtoken,chatId:this.chatConfiguration.chat_id,parentSelector:"#chat"+(t?"-test":"-prod"),forceConfigRequest:!0})},createTestChatByLoader(){this.createChatViaLoader(!0)}}},g=(0,u.A)(m,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row chat-container"},[e("div",{staticClass:"col-sm-6 chat-example-wrapper"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Тестовый чат")))]),e("div",{attrs:{id:"chat-test"}})]),e("div",{staticClass:"col-sm-6 chat-example-wrapper chat-accounts"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Авторизационные данные")))]),e("div",{staticClass:"chat-example-info"},[e("div",{staticClass:"chat-accounts-row margin-bottom-2x dotted-underline"},[e("p",[t._v(t._s(t.$t("Чат-рум:")))]),e("p",[t._v(t._s(t.chatConfiguration.chat_room))])]),e("div",{staticClass:"chat-accounts-row moderators"},[e("label",[t._v(t._s(t.$t("Модераторы")))])]),e("div",{staticClass:"chat-accounts-row margin-bottom dotted-underline"},[e("p",[t._v(t._s(t.$t("Имена")))]),e("p",[t._v(t._s(t.$t("Пароли")))])]),t._l(t.chatConfiguration.admins,(function(a,s){return e("div",{key:`admin-${s}`,staticClass:"chat-accounts-row margin-bottom"},[e("p",[t._v(t._s(a.userName))]),e("p",[t._v(t._s(a.password))])])}))],2)])])}),[],!1,null,"3803507c",null).exports,h=a(10216),b=a(50905),v={name:"EmbeddedCode",components:{Textbox:h.A},props:{playerId:{required:!0},doesProdPlayerExist:{required:!0},chatId:{required:!0}},codeTypes:[{type:"html",label:"HTML"},{type:"iframe",label:"iFrame"}],data(){return{type:this.$options.codeTypes[0].type}},computed:{prodCode(){return this.doesProdPlayerExist&&this.chatId?(0,b.xq)({clientId:this.$user.accountUtoken,playerId:this.playerId,chatId:this.chatId,type:this.t
1ype,playerDomain:this.$branding.playerDomain}):null},prodPlayerCode(){return this.doesProdPlayerExist?(0,b.xq)({clientId:this.$user.accountUtoken,playerId:this.playerId,type:this.type,playerDomain:this.$branding.playerDomain}):null},prodChatCode(){return this.chatId?(0,b.xq)({clientId:this.$user.accountUtoken,chatId:this.chatId,type:this.type,playerDomain:this.$branding.playerDomain}):null}},methods:{copy(t){document.getElementById(t).select(),document.execCommand("copy"),this.$message.success({message:"Скопировано"})}}},f=(0,u.A)(v,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"embedded-code"},[e("el-radio-group",{staticClass:"code-type-radio-selector",attrs:{size:"mini",fill:this.$branding.mainInterface.link},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(this.$options.codeTypes,(function(a){return e("el-radio-button",{key:a.type,attrs:{label:a.type}},[t._v(t._s(a.label))])})),1),t.prodCode||t.prodPlayerCode||t.prodChatCode?t._e():e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Для получения кода встраивания необходимо перенести пробные настройки в бой.")))]),t.prodCode?e("div",{staticClass:"player-chat-embedded-code"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Код встраивания публичного плеера и чата")))]),e("div",{staticClass:"relative code-text-area-wrapper"},[e("textbox",{staticClass:"code-text-area",attrs:{id:"prodCode",readonly:"true",multiline:"true"},model:{value:t.prodCode,callback:function(e){t.prodCode=e},expression:"prodCode"}}),e("el-button",{staticClass:"copy-action",attrs:{icon:"el-icon-copy-document",type:"text"},on:{click:()=>this.copy("prodCode")}}
1,[t._v(t._s(t.$t("Копировать код")))])],1)]):t._e(),t.prodPlayerCode?e("div",{staticClass:"player-embedded-code margin-top-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Код встраивания публичного плеера")))]),e("div",{staticClass:"relative code-text-area-wrapper"},[e("textbox",{staticClass:"code-text-area",attrs:{id:"prodPlayerCode",readonly:"true",multiline:"true"},model:{value:t.prodPlayerCode,callback:function(e){t.prodPlayerCode=e},expression:"prodPlayerCode"}}),e("el-button",{staticClass:"copy-action",attrs:{icon:"el-icon-copy-document",type:"text"},on:{click:()=>this.copy("prodPlayerCode")}},[t._v(t._s(t.$t("Копировать код")))])],1)]):t._e(),t.prodChatCode?e("div",{staticClass:"chat-embedded-code margin-top-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Код встраивания публичного чата")))]),e("div",{staticClass:"relative code-text-area-wrapper"},[e("textbox",{staticClass:"code-text-area",attrs:{id:"prodChatCode",readonly:"true",multiline:"true"},model:{value:t.prodChatCode,callback:function(e){t.prodChatCode=e},expression:"prodChatCode"}}),e("el-button",{staticClass:"copy-action",attrs:{icon:"el-icon-copy-document",type:"text"},on:{click:()=>this.copy("prodChatCode")}}
1,[t._v(t._s(t.$t("Копировать код")))])],1)]):t._e()],1)}),[],!1,null,"ec9ea576",null).exports,y=a(99281),C=a(98250),x={name:"EditPlayer",components:{Spinner:s.A,Btn:l.A,TriangleArrow:r.A,FormPlayer:o.A,Modal:i.A,PlayerExample:p,ChatExample:g,EmbeddedCode:f,ArrowCircleIcon:y.A,Scrolled:C.A},props:{id:{required:!0}},data(){return{modalName:"modalDelete",isLoadingPlayerConfiguration:!1,isLoadingChatConfiguration:!1,playerConfiguration:void 0,chatConfiguration:void 0,isSavingPlayerConfiguration:!1,isSavingPlayerProdConfiguration:!1,isSavingChatConfiguration:!1,isSavingChatProdConfiguration:!1,isDeletingPlayer:!1,showEmbeddedCode:!1,isFormValid:!0}},computed:{doesProdPlayerExist(){return!!this.playerConfiguration&&!!this.playerConfiguration.prod_conf},chatId(){if(this.chatConfiguration)return this.chatConfiguration.chat_id},triangleArrowStyle(){return{transform:this.showEmbeddedCode?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showEmbeddedCode?"-2px":"2px"}},isUserBlocked(){return this.$user.isBlocked()}},created(){this.getConfiguration(!0)},methods:{onTestPlayerUpdateSuccess(){this.$message.success({message:"Пробный плеер успешно обновлен!"}),this.getConfiguration()},getConfiguration(t=!1){t&&(this.isLoadingPlayerConfiguration=!0);let e={utoken:this.$user.accountUtoken},a={player_id:this.id};this.$api.getPlayerConfig(e,a).then((a=>{if(this.playerConfiguration=a.data,a.data.model.chat&&a.data.model.chat.enable){t&&(this.isLoadingChatConfiguration=!0);let a={player_id:this.id};this.$api.getChatConfig(e,a).then((t=>{this.chatConfiguration=t.data})).finally((()=>{t&&(this.isLoadingChatConfiguration=!1),setTimeout((()=>{this.$refs.chatExample.createTestChatByLoader()}),500)}))}else this.chatConfiguration=null})).finally((()=>{t&&(this.isLoadingPlayerConfiguration=!1),setTimeout((()=>{this.$refs.playerExample.recreateTestPlayerByLoader(),this.$refs.playerExample.recreateProdPlayerByLoader()}),500)}))},updateTestConfiguration(){let t=this.$refs.editForm.formPlayerModel();this.isSavingPlayerConfiguration=!0;let e={utoken:this.$user.accountUtoken},a={model:t,player_id:this.id};this.$api.updateTestPlayer(e,a).then((s=>{t.chat&&t.chat.enable?(this.isSavingChatConfiguration=!0,a={player_id:this.id,model:t.chat},this.$api.createOrUpdateTestChat(e,a).catch((t=>{this.$message.error({message:"Ошибка при обновлении чата"})})).finally((()=>{this.isSavingChatConfiguration=!1,this.onTestPlayerUpdateSuccess()}))):this.onTestPlayerUpdateSuccess()})).catch((t=>{t.response&&"player with this title already exists"===t.response.statusText?this.$message.error({message:"Плеер с таким названием уже существует"}):this.$message.error({message:"Ошибка при обновлении пробного плеера"})})).finally((()=>{this.isSavingPlayerConfiguration=!1}))},updateProdPlayer(){this.isSavingPlayerProdConfiguration=!0;let t={utoken:this.$user.accountUtoken},e={player_id:this.id};this.$api.updateProdPlayer(t,e).then((t=>{this.$message.success({message:"Пробная конфигурация успешно применена к публичному плееру!"}),this.getConfiguration()})).catch((t=>{this.$message.error({message:"Ошибка применения пробной конфигурации к публичному плееру"})})).finally((()=>{this.isSavingPlayerProdConfiguration=!1}))},updateProdChat(){this.isSavingChatProdConfiguration=!0;let t={utoken:this.$user.accountUtoken},e={chat_id:this.chatId};this.$api.updateProdChat(t,e).then((t=>{this.$message.success({message:"Тестовая конфигурация успешно применена к публичному чату!"}),this.getConfiguration()})).catch((t=>{this.$message.error({message:"Ошибка применения тестовой конфигурации к публичному чату"})})).finally((()=>{this.isSavingChatProdConfiguration=!1}))},deletePlayer(){this.isDeletingPlayer=!0;let t={utoken:this.$user.accountUtoken},e={player_id:this.id};this.$api.deletePlayer(t,e).then((t=>{this.$message.success({message:"Плеер успешно удален!"}),this.$router.push({name:"players"})})).catch((t=>{this.$message.error({message:"Ошибка при удалении плеера"})})).finally((()=>{this.isDeletingPlayer=!1}))},toggleShowEmbeddedCode(){this.showEmbeddedCode=!this.showEmbeddedCode},setFormValid(t){this.isFormValid=t},closeModal(){this.$modal.hide(this.modalName)},openModal(){this.$modal.show(this.modalName)},goToPlayerList(){this.$router.push({name:"players"})}}},k=(0,u.A)(x,(function(){var t=this,e=t._self._c;return e("Scrolled",{staticClass:"edit-player"},[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToPlayerList}},[e("ArrowCircleIcon")],1),e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Редактирование плеера")))])],1
1),t.isLoadingPlayerConfiguration||t.isLoadingChatConfiguration?e("div",{staticClass:"content"},[e("Spinner",{staticClass:"flex justify-center align-center edit-player-loader"})],1):[e("FormPlayer",{key:"edit",ref:"editForm",attrs:{playerConfiguration:t.playerConfiguration,chatConfiguration:t.chatConfiguration},on:{valid:t.setFormValid}},[e("template",{slot:"buttons"},[t.isSavingPlayerConfiguration||t.isSavingChatConfiguration||t.isDeletingPlayer?e("div",{staticClass:"flex spinner-btn-wrapper"},[e("Spinner",{staticClass:"grow flex justify-center align-center",attrs:{adaptiveHeight:!0}}),e("btn",{staticClass:"btn-height-source"},[t._v(" ")])],1):[e("div",{staticClass:"flex gap-2x"},[e("btn",{attrs:{disabled:!t.isFormValid||t.isUserBlocked},on:{click:t.updateTestConfiguration}},[t._v(t._s(t.$t("Применить пробные настройки")))]),e("btn",{attrs:{type:"secondary",disabled:t.isUserBlocked},on:{click:t.openModal}},[t._v(t._s(t.$t("Удалить плеер и чат")))])],1)]],2),e("template",{slot:"examples"},[e("div",{staticClass:"content"},[e("PlayerExample",{ref:"playerExample",staticClass:"margin-bottom-2x",attrs:{playerId:t.id,doesProdPlayerExist:t.doesProdPlayerExist}}),t.isSavingPlayerProdConfiguration?e("div",{staticClass:"flex spinner-btn-wrapper"},[e("Spinner",{staticClass:"grow flex justify-center align-center",attrs:{adaptiveHeight:!0}}),e("btn",{staticClass:"btn-height-source"},[t._v(" ")])],1):e("btn",{staticClass:"update-prod-player-btn",attrs:{disabled:t.isUserBlocked},on:{click:t.updateProdPlayer}},[t._v(t._s(t.$t("Перенести пробные настройки в боевой плеер")))])],1),t.chatId?e("div",{staticClass:"content"},[e("ChatExample",{ref:"chatExample",staticClass:"margin-bottom-2x",attrs:{chatConfiguration:t.chatConfiguration}}),t.isSavingChatProdConfiguration?e("div",{staticClass:"flex spinner-btn-wrapper"},[e("Spinner",{staticClass:"grow flex justify-center align-center",attrs:{adaptiveHeight:!0}}),e("btn",{staticClass:"btn-height-source"},[t._v(" ")])],1):e("btn",{attrs:{disabled:t.isUserBlocked},on:{click:t.updateProdChat}},[t._v(t._s(t.$t("Перенести пробные настройки в боевой чат")))])],1):t._e(),e("div",{staticClass:"content"},[e("label",{staticClass:"clickable pseudo-link",on:{click:t.toggleShowEmbeddedCode}},[t._v(t._s(t.$t("Коды встраивания"))),e("TriangleArrow",{style:t.triangleArrowStyle,attrs:{direction:"right",size:"10px"}})],1),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("EmbeddedCode",{directives:[{name:"show",rawName:"v-show",value:t.showEmbeddedCode,expression:"showEmbeddedCode"}],staticClass:"margin-top-2x",attrs:{playerId:t.id,doesProdPlayerExist:t.doesProdPlayerExist,chatId:t.chatId}})],1)],1)])],2)],e("modal",{attrs:{name:this.modalName,width:"30%"},on:{close:t.closeModal}},[e("template",{slot:"header"},[t._v(t._s(t.$t("Удалить плеер?")))]),e("template",{slot:"content"},[e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Вы собираетесь удалить сконфигурированный плеер. Это действие необратимо.")))])]),e("template",{slot:"footer"},[e("btn",{attrs:{loading:t.isDeletingPlayer,type:"secondary",color:"red"},on:{click:t.deletePlayer}},[t._v(t._s(t.$t("Удалить")))]),e("btn",{attrs:{type:"secondary"},on:{click:t.closeModal}},[t._v(t._s(t.$t("Отмена")))])],1)],2)],2)}),[],!1,null,null,null).exports},47783:function(t,e,a){"use strict";a.d(e,{A:function(){return v}}),a(44114),a(98992),a(54520),a(3949);var s=a(46894),l=a(10216),i=a(5153),r=a(75939),o=a(7521),n=a(95093),c=a.n(n),d={name:"JsonInputField",components:{Textbox:l.A,DataHint:r.A,DateTimePicker:o.A},data(){return{innerValue:"",innerValueTest:"",jsonHintText:"<br>Имя поля в JSON: ",dateTimeFormat:"YYYY-MM-DD HH:mm:ss"}},methods:{handleInput(){if("date"===this.type){let t=c()(this.innerValue);t=t.format(),this.$emit("input",t)}else this.$emit("input",this.innerValue)},onColorChange(t){const e=t.match(/rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)/);this.innerValue="#"+(1<<24|e[1]<<16|e[2]<<8|e[3]).toString(16).slice(1),this.$emit("input",this.innerValue)}},created(){this.initValue&&(this.innerValue=this.initValue)},props:{initValue:{},validator:{type:Boolean},title:{type:String,required:!0},type:{type:String,required:!0},jsonName:{type:String,required:!0},hint:{type:String,default:"HINT"}}},u=a(81656),p=(0,u.A)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"root text-regular"},[e("div",{staticClass:"json-value-container"},[e("div",{staticClass:"json-value-label flex gap-2x align-center margin-bottom"},[e("label",{staticClass:"json-label",attrs:{for:t.jsonName}},[t._v(t._s(t.$t(t.title)))]),e("Tooltip",{staticClass:"tooltip",attrs:{effect:"light"}},[e("div",{staticClass:"hint flex align-center justify-center"}),e("template",{slot:"content"},[e("div",{staticClass:"text-extralight",domProps:{innerHTML:t._s(t.$t(t.hint)+t.$t(t.jsonHintText)+`<b> ${t.jsonName} </b>`)}})])],2)],1),"color"===t.type?[e("el-color-picker",{staticClass:"block color-picker",attrs:{size:"mini","popper-class":"circle-frame-color-picker",id:t.jsonName},on:{"active-change":t.onColorChange},model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}})]:t._e(),"checkbox"===t.type?[e("el-checkbox",{staticClass:"custom",attrs:{id:t.jsonName},on:{input:t.handleInput},model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}})]:t._e(),"string"===t.type?[e("textbox",{attrs:{id:t.jsonName,font:"light"},on:{input:t.handleInput},model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}})]:t._e(),"date"===t.type?[e("DateTimePicker",{model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}})]:t._e()],2),t.validator?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный URL")))]):t._e()])}),[],!1,null,"0e8af766",null).exports,m=a(33278),g=a(64996);function h(t){return/^(?:(?:https?|ftp):\/\/|\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)}var b={name:"FormPlayer",components:{Textbox:l.A,Btn:s.A,JsonInputField:p,Toggle:g.A,PlayerFileSelector:i.A},props:{playerConfiguration:{type:Object},chatConfiguration:{type:Object}},data(){return{playerName:"Player",source:`//${this.$branding.playerDomain}/cdn/caminandes/playlist.m3u8`,autoPlay:!1,mute:!1,branding:!1,brandingParams:[{param:"fullscreenButtonFocus",color:"#ffffff",description:"Цвет кнопки на полный экран при наведении"},{param:"fullscreenButton",color:"#ffffff",description:"Цвет кнопки на полный экран"},{param:"muteButton",color:"#ffffff",description:"Цвет кнопки выключения звука"},{param:"playButton",color:"#ffffff",description:"Цвет кнопки проигрывания"},{param:"playButtonFocus",color:"#ffffff",description:"Цвет кнопки проигрывания при наведении"},{param:"seekbarColor",color:"#ffffff",description:"Цвет полосы проигрывания"},{param:"unmuteButton",color:"#ffffff",description:"Цвет кнопки включения звука"}],poster:!1,posterUrl:`//${this.$branding.playerDomain}/aloha/cdn-demo/static/bg-caminandes.jpg`,posterScheduleUrl:`//${this.$branding.playerDomain}/aloha/cdn-demo/static/schedule-config.json`,logo:!1,logoSrc:`//${this.$branding.playerDomain}${this.$branding.logo.url}`,logoUrl:this.$branding.defaultPlayerRedirectUrl,watermark:!1,watermarkSr
1c:"http://via.placeholder.com/100x100/?text=WATERMARK",watermarkUrl:this.$branding.defaultPlayerRedirectUrl,title:!1,titleText:"Title",levelSelector:!0,playbackRate:!1,ad:!1,adVast:"https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=",adParams:[{param:"preroll",value:!0,description:"Preroll"},{param:"midroll",value:!1,description:"Midroll"},{param:"pauseroll",value:!1,description:"Pauseroll"},{param:"postroll",value:!1,description:"Postroll"}],waitForAdLoaded:!1,markersPlugin:!1,markers:[],subtitles:!1,subtitlesTracks:[{kind:"subtitles",label:"Russian",lang:"ru",src:`//${this.$branding.playerDomain}/test/subtitles_example.vtt`}],maxSubtitlesTracksCount:10,preview:!1,streamSelector:!1,streamSelectorPlaylists:[{source:`//${this.$branding.playerDomain}/cdn/bunny/playlist.m3u8`,name:"bunny"}],maxStreamSelectorPlaylistsCount:10,streamSelectorFullSize:!1,fixMediaControl:!1,disableVideoTagContextMenu:!1,loop:!1,chat:!1,chatJoinBtnText:"Join",chatJoinBtnColor:"#007bff",chatEmojiBtn:!0,countdownConfig:!1,useCountdownUrl:!1,showCountdownCreation:!1,posterScheduleConfig:{startDateTime:{value:"",type:"date",title:"Время начала трансляции",hint:'Строка с датой и временем начала трансляции или время в секундах, по прошествии которого запустится трансляции.<br>Значение должно быть корректной датой по ISO (для включения режима даты) или строкой вида "{number} s"'},text:{value:"",type:"string",title:"Текст",hint:'Текст плашки обратного отсчёта.<br>Поддерживает условные обозначения:<br><br>    {{start}} - вставляет отформатированное время из параметра времени начала отсчета. Указывается один раз.<br>    {{remains}} - вставляет обратный отсчёт. Указывается один раз.<br>    {{lf}} - вставляет перенос строки. Любое количество раз.<br><br>HTML теги из "text" удаляются.'},fontColor:{value:"#000000",type:"color",title:"Цвет текста",hint:"CSS свойство color"},fontSize:{value:"",type:"string",title:"Размер шрифта",hint:"CSS свойство font-size"},fontWeight:{value:"",type:"string",title:"Начертание шрифта",hint:"CSS свойство font-weight"},backgroundColor:{value:"#000000",type:"color",title:"Цвет заднего фона",hint:"CSS свойство color"},blockPlay:{value:"",type:"checkbox",title:"Блокировать воспроизведение",hint:"Запрещает запуск воспроизведения по клику на постере до окончания отсчёта"},startFormat:{value:"",type:"string",title:"Формат вывода даты/времени начала",hint:"Синтаксис шаблона форматирования описан в документации библиотеки moment. (https://momentjs.com/docs/#/displaying/format/)"}},countdownButtonText:"Создать конфигурацию"}},computed:{isUserBlocked(){return this.$user.isBlocked()}},validations:{playerName:{required:m.mw},source:{required:m.mw,urlValidator:h},posterUrl:{posterUrlValidator:function(t){return!this.poster||h(t)}},posterScheduleUrl:{posterScheduleUrlValidator:function(t){return!this.poster||!t||h(t)}},logoSrc:{logoSrcValidator:function(t){return!this.logo||h(t)}},logoUrl:{logoUrlValidator:function(t){return!this.logo||!t||h(t)}},watermarkSrc:{watermarkSrcValidator:function(t){return!this.watermark||h(t)}},watermarkUrl:{watermarkUrlValidator:function(t){return!this.watermark||h(t)}},titleText:{required:(0,m.F5)((function(){return this.title}))}
1,markers:{$each:{time:{required:m.mw,decimal:m._,minValue:(0,m.Ww)(0)},label:{}}},subtitlesTracks:{$each:{src:{subtitlesTracksSrcValidator:function(t){return!this.subtitles||h(t)}}}},streamSelectorPlaylists:{$each:{source:{playlistsSourceValidator:function(t){return!this.streamSelector||h(t)}}}}},created(){this.init()},methods:{init(){if(this.playerConfiguration){let t=this.playerConfiguration.model;if(this.playerName=t.playerName,this.source=t.source,this.autoPlay=t.autoPlay,this.mute=t.mute,this.fixMediaControl=!t.hideMediaControl,this.disableVideoTagContextMenu=t.disableVideoTagContextMenu,this.loop=t.loop,t.stylingPlugin&&(this.branding=!!t.stylingPlugin.enable,this.brandingParams.forEach((e=>{let a=t.stylingPlugin[e.param];a&&(e.color=a)}))),t.posterPlugin&&(this.poster=!!t.posterPlugin.enable,this.posterUrl=t.posterPlugin.url,t.posterPlugin.schedule)){this.countdownConfig=!0;try{let e=JSON.parse(t.posterPlugin.schedule);for(let[t,a]of Object.entries(e))this.posterScheduleConfig[t].value=a;this.useCountdownUrl=!1,this.countdownButtonText="Редактировать конфигурацию"}catch(e){this.posterScheduleUrl=t.posterPlugin.schedule,this.useCountdownUrl=!0}}t.logoPlugin&&(this.logo=!!t.logoPlugin.enable,this.logoSrc=t.logoPlugin.src,this.logoUrl=t.logoPlugin.url),t.watermarkPlugin&&(this.watermark=!!t.watermarkPlugin.enable,this.watermarkSrc=t.watermarkPlugin.watermark,this.watermarkUrl=t.watermarkPlugin.watermarkLink),t.titlePlugin&&(this.title=!!t.titlePlugin.enable,this.titleText=t.titlePlugin.titleText),t.levelSelectorPlugin&&(this.levelSelector=!!t.levelSelectorPlugin.enable),t.playbackRatePlugin&&(this.playbackRate=!!t.playbackRatePlugin.enable),t.adPlugin&&(this.ad=!!t.adPlugin.enable,this.adVast=t.adPlugin.tag[0],this.waitForAdLoaded=!!t.adPlugin.waitForAdLoaded,this.adParams.forEach((e=>{e.value=!!t.adPlugin.ads[e.param]}))),t.markersPlugin&&(this.markersPlugin=!!t.markersPlugin.enable,t.markersPlugin.markers&&(this.markers=t.markersPlugin.markers)),t.subtitlesPlugin&&(this.subtitles=!!t.subtitlesPlugin.enable,t.subtitlesPlugin.playback&&t.subtitlesPlugin.playback.externalTracks&&(this.subtitlesTracks=t.subtitlesPlugin.playback.externalTracks)),t.previewPlugin&&(this.preview=!!t.previewPlugin.enable),t.streamSelectorPlugin&&(this.streamSelector=!!t.streamSelectorPlugin.enable,this.streamSelectorFullSize=!!t.streamSelectorPlugin.fullsize,t.streamSelectorPlugin.playlist&&(this.streamSelectorPlaylists=t.streamSelectorPlugin.playlist)),t.chat&&(this.chat=!!t.chat.enable,this.chatJoinBtnText=t.chat.joinBtnText,this.chatJoinBtnColor=t.chat.joinBtnColor,this.chatEmojiBtn=t.chat.emojiBtn)}},formStylingPluginData(){if(this.branding){let t={enable:!0};return this.brandingParams.forEach((e=>{t[e.param]=e.color})),t}return null},formAdPluginData(){if(this.ad){let t={enable:!0,waitForAdLoaded:this.waitForAdLoaded,tag:[this.adVast],ads:{}};return this.adParams.forEach((e=>{t.ads[e.param]=e.value})),t}return null},formatScheduleConfig(t){let e={};const a=Object.entries(t).filter((t=>""===t[1].value)),s=Object.entries(t).length-2;if(a.length!==s){for(let[a,s]of Object.entries(t))e[a]=s.value;return e}},formPlayerModel(){let t={playerName:this.playerName,source:this.source,autoPlay:this.autoPlay,mute:this.mute,hideMediaControl:!this.fixMediaControl,disableVideoTagContextMenu:this.disableVideoTagContextMenu,markersPlugin:{enable:this.markersPlugin,markers:this.markers},loop:this.loop},e=this.formStylingPluginData();if(e&&(t.stylingPlugin=e),this.poster){let e="";this.countdownConfig&&(e=this.useCountdownUrl?this.posterScheduleUrl:JSON.stringify(this.formatScheduleConfig(this.posterScheduleConfig))),t.posterPlugin={enable:!0,url:this.posterUrl,schedule:e}}this.logo&&(t.logoPlugin={enable:!0,src:this.logoSrc,url:this.logoUrl}),this.watermark&&(t.watermarkPlugin={enable:!0,watermark:this.watermarkSrc,watermarkLink:this.watermarkUrl}),this.title&&(t.titlePlugin={enable:!0,titleText:this.titleText}),this.levelSelector&&(t.levelSelectorPlugin={enable:!0}),this.playbackRate&&(t.playbackRatePlugin={enable:!0});let a=this.formAdPluginData();return a&&(t.adPlugin=a),this.subtitles&&(t.subtitlesPlugin={enable:!0,playback:{externalTracks:this.subtitlesTracks}}),this.preview&&(t.previewPlugin={enable:!0}),this.streamSelector&&(t.streamSelectorPlugin={enable:!0,fullsize:this.streamSelectorFullSize,playlist:this.streamSelectorPlaylists}),this.chat&&(t.chat={enable:!0,emojiBtn:this.chatEmojiBtn,joinBtnColor:this.chatJoinBtnColor,joinBtnText:this.chatJoinBtnText}),t},addMarker(){this.isUserBlocked||this.markers.push({time:"",label:""})},removeMarker(t){this.isUserBlocked||this.markers.splice(t,1)},addSubtitlesTrack(){this.isUserBlocked||this.subtitlesTracks.push({kind:"subtitles",label:"",lang:"ru",src:""})},removeSubtitlesTrack(t){this.isUserBlocked||this.subtitlesTracks.splice(t,1)},getSubtitlesTracksCount(){return this.subtitlesTracks.length},addStreamSelectorPlaylist(){this.isUserBlocked||this.streamSelectorPlaylists.push({source:"",name:""})},removeStreamSelectorPlaylist(t){this.isUserBlocked||this.streamSelectorPlaylists.splice(t,1)},getStreamSelectorPlaylistsCount(){return this.streamSelectorPlaylists.length}},watch:{autoPlay(t){t&&(this.mute=!0)},markersPlugin(t){t?this.markers.length||this.addMarker():this.markers=this.markers.filter(((t,e)=>!this.$v.markers.$each[e].$invalid))},playerConfiguration(t,e){const a=t.model;this.markersPlugin=a.markersPlugin&&!!a.markersPlugin.enable},posterScheduleConfig:{handler:function(){const t=this.formatScheduleConfig(this.posterScheduleConfig);this.countdownButtonText=void 0!==t?"Редактировать конфигурацию":"Создать конфигурацию"},deep:!0}
1,"$v.$invalid":function(t){this.$emit("valid",!t)}}},v=(0,u.A)(b,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper"},[e("div",{staticClass:"content"},[e("div",{staticClass:"text-extralight text-light"},[e("span",[t._v(t._s(t.$t('Здесь вы можете настраивать плеер под свои требования и сразу смотреть результат, нажимая "Применить пробные настройки". Также можете перенести пробные настройки в боевой вариант или удалить плеер. ')))]),e("span",[t._v(t._s(t.$t("В течение недели можете использовать все опции плеера бесплатно!")))])])]),e("div",{staticClass:"content-block first"},[e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Название плеера")))]),e("textbox",{attrs:{disabled:t.isUserBlocked},model:{value:t.playerName,callback:function(e){t.playerName=e},expression:"playerName"}}),t.$v.playerName.required?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите название плеера")))])],1),e("div",[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Поток")))]),e("textbox",{attrs:{disabled:t.isUserBlocked},model:{value:t.source,callback:function(e){t.source=e},expression:"source"}}),t.$v.source.required?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите URL потока")))]),t.$v.source.urlValidator?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите валидный URL")))])],1)]),e("div",{staticClass:"content-block",class:{last:!this.$slots.buttons}},[e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Автовоспроизведение")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.autoPlay,callback:function(e){t.autoPlay=e},expression:"autoPlay"}}),e("label",{class:{"text-blue":t.autoPlay,"text-on-block-1":!t.autoPlay}},[t._v(t._s(t.$t("Включить автоматический старт воспроизведения видео")))])],1)])]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t('Режим "без звука"')))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.mute,callback:function(e){t.mute=e},expression:"mute"}}),e("label",{class:{"text-blue":t.mute,"text-on-block-1":!t.mute}},[t._v(t._s(t.$t("Запускать видео с выключенным звуком (обязательно для автовоспроизведения в связи с политикой браузеров)")))])],1)])]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Брендирование")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.branding,callback:function(e){t.branding=e},expression:"branding"}}),e("label",{class:{"text-blue":t.branding,"text-on-block-1":!t.branding}},[t._v(t._s(t.$t("Настроить цвета элементов интерфейса плеера")))])],1)]),t.branding?e("div",{staticClass:"branding-params margin-left-6x"},t._l(t.brandingParams,(function(a){return e("div",{staticClass:"branding-param text-extralight"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.color,expression:"brandingParam.color"}],attrs:{type:"color",disabled:t.isUserBlocked},domProps:{value:a.color},on:{input:function(e){e.target.composing||t.$set(a,"color",e.target.value)}}}),e("span",{staticClass:"description"},[t._v(t._s(t.$t(a.description)))])])})),0):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Постер")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.poster,callback:function(e){t.poster=e},expression:"poster"}}),e("label",{class:{"text-blue":t.poster,"text-on-block-1":!t.poster}},[t._v(t._s(t.$t("Добавить картинку, отображаемую в плеере до запуска видео")))])],1
1)]),t.poster?e("div",{staticClass:"poster-params margin-left-6x"},[e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("Источник для постера:")))]),e("div",{staticClass:"poster-url relative"},[this.$user.isCDN1()?e("Textbox",{attrs:{disabled:t.isUserBlocked},model:{value:t.posterUrl,callback:function(e){t.posterUrl=e},expression:"posterUrl"}}):e("PlayerFileSelector",{attrs:{objectGroup:"poster",disabled:t.isUserBlocked},model:{value:t.posterUrl,callback:function(e){t.posterUrl=e},expression:"posterUrl"}})],1),t.$v.posterUrl.posterUrlValidator?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите валидный URL")))])]),e("div",{staticClass:"countdown-config-container"},[e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.countdownConfig,callback:function(e){t.countdownConfig=e},expression:"countdownConfig"}}),e("label",{class:{"text-blue":t.countdownConfig,"text-on-block-1":!t.countdownConfig}},[t._v(t._s(t.$t("Добавить обратный отсчет")))])],1)]),t.countdownConfig?e("div",{staticClass:"countdown-fields-container"},[e("div",{staticClass:"clearfix margin-bottom"},[e("el-checkbox",{staticClass:"custom",attrs:{disabled:t.isUserBlocked},model:{value:t.useCountdownUrl,callback:function(e){t.useCountdownUrl=e},expression:"useCountdownUrl"}},[t._v(t._s(t.$t("Использовать ссылку на конфигурацию")))])],1
1),e("div",{staticClass:"countdown-config-body"},[t.useCountdownUrl?[e("Tooltip",{attrs:{content:t.$t("Используемы поля описаны в форме ручного создания JSON."),placement:"top",enterable:!1}},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("Ссылка на JSON конфигурацию таймера обратного отсчета:")))])]),e("div",{staticClass:"poster-url relative"},[e("textbox",{attrs:{font:"light",placeholder:t.$t("Укажите JSON конфиг для таймера"),disabled:t.isUserBlocked},model:{value:t.posterScheduleUrl,callback:function(e){t.posterScheduleUrl=e},expression:"posterScheduleUrl"}})],1),t.$v.posterScheduleUrl.posterScheduleUrlValidator?t._e():e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный URL")))])]:[e("btn",{staticClass:"margin-bottom",attrs:{disabled:t.isUserBlocked},on:{click:function(e){t.showCountdownCreation=!0}}},[t._v(t._s(t.$t(t.countdownButtonText)))])]],2)]):t._e()])]):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Логотип")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.logo,callback:function(e){t.logo=e},expression:"logo"}}),e("label",{class:{"text-blue":t.logo,"text-on-block-1":!t.logo}},[t._v(t._s(t.$t("Отображать логотип на панели управления плеера (для базового тарифа обязателен логотип {mainCompanyName})")))])],1)]),t.logo?e("div",{staticClass:"logo-params margin-left-6x"},[e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("Источник для логотипа:")))]),e("div",{staticClass:"logo-src relative"},[this.$user.isCDN1()?e("Textbox",{attrs:{disabled:t.isUserBlocked},model:{value:t.logoSrc,callback:function(e){t.logoSrc=e},expression:"logoSrc"}}):e("PlayerFileSelector",{attrs:{objectGroup:"logo",disabled:t.isUserBlocked},model:{value:t.logoSrc,callback:function(e){t.logoSrc=e},expression:"logoSrc"}})],1),t.$v.logoSrc.logoSrcValidator?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите валидный URL")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("Ссылка перехода по нажатию на логотип:")))]),e("textbox",{attrs:{placeholder:t.$t("Укажите ссылку перехода по нажатию на логотип"),disabled:t.isUserBlocked},model:{value:t.logoUrl,callback:function(e){t.logoUrl=e},expression:"logoUrl"}}),t.$v.logoUrl.logoUrlValidator?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите валидный URL или оставьте поле пустым")))])],1)]):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Водяной знак")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.watermark,callback:function(e){t.watermark=e},expression:"watermark"}}),e("label",{class:{"text-blue":t.watermark,"text-on-block-1":!t.watermark}},[t._v(t._s(t.$t("Добавить изображение поверх видео в углу плеера")))])],1)]),t.watermark?e("div",{staticClass:"watermark-params margin-left-6x"},[e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("Источник для водяного знака:")))]),e("div",{staticClass:"watermark-src relative"},[this.$user.isCDN1()?e("Textbox",{attrs:{disabled:t.isUserBlocked},model:{value:t.watermarkSrc,callback:function(e){t.watermarkSrc=e},expression:"watermarkSrc"}}):e("PlayerFileSelector",{attrs:{objectGroup:"watermark",disabled:t.isUserBlocked},model:{value:t.watermarkSrc,callback:function(e){t.watermarkSrc=e}
1,expression:"watermarkSrc"}})],1),t.$v.watermarkSrc.watermarkSrcValidator?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите валидный URL")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("Ссылка перехода по нажатию на водяной знак:")))]),e("textbox",{attrs:{placeholder:t.$t("Укажите ссылку перехода по нажатию на водяной знак"),disabled:t.isUserBlocked},model:{value:t.watermarkUrl,callback:function(e){t.watermarkUrl=e},expression:"watermarkUrl"}}),t.$v.watermarkUrl.watermarkUrlValidator?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите валидный URL")))])],1)]):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Заголовок плеера")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}}),e("label",{class:{"text-blue":t.title,"text-on-block-1":!t.title}},[t._v(t._s(t.$t("Разместить заголовок над видео в левом верхнем углу плеера")))])],1)]),t.title?e("div",{staticClass:"title-params margin-left-6x"},[e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("Текст заголовка плеера:")))]),e("textbox",{attrs:{placeholder:t.$t("Укажите текст заголовка плеера"),disabled:t.isUserBlocked},model:{value:t.titleText,callback:function(e){t.titleText=e},expression:"titleText"}}),t.$v.titleText.required?t._e():e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Введите текст заголовка")))])],1)]):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Переключение качеств")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.levelSelector,callback:function(e){t.levelSelector=e},expression:"levelSelector"}}),e("label",{class:{"text-blue":t.levelSelector,"text-on-block-1":!t.levelSelector}},[t._v(t._s(t.$t("Включить ручной выбор качества для мультибитрейтного видео")))])],1)])]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Переключение скорости воспроизведения")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.playbackRate,callback:function(e){t.playbackRate=e},expression:"playbackRate"}}),e("label",{class:{"text-blue":t.playbackRate,"text-on-block-1":!t.playbackRate}},[t._v(t._s(t.$t("Включить возможность выбора скорости воспроизведения видео")))])],1)])]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Рекламный плагин")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.ad,callback:function(e){t.ad=e},expression:"ad"}}),e("label",{class:{"text-blue":t.ad,"text-on-block-1":!t.ad}},[t._v(t._s(t.$t("Вставить рекламный ролик")))])],1)]),t.ad?e("div",{staticClass:"ad-params margin-left-6x"},[e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("VAST:")))]),e("textbox",{staticClass:"margin-bottom",attrs:{placeholder:t.$t("Укажите VAST"),disabled:t.isUserBlocked},model:{value:t.adVast,callback:function(e){t.adVast=e},expression:"adVast"}}),e("div",{staticClass:"flex gap-3x margin-bottom-2x"},t._l(t.adParams,(function(a){return e("el-checkbox",{key:a.param,staticClass:"custom",attrs:{label:t.$t(a.description),disabled:t.isUserBlocked},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"param.value"}})})),1),e("el-checkbox",{staticClass:"custom",attrs:{label:t.$t("Отложенный preroll"),disabled:t.isUserBlocked},model:{value:t.waitForAdLoaded,callback:function(e){t.waitForAdLoaded=e},expression:"waitForAdLoaded"}})],1)]):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Маркеры эпизодов")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.markersPlugin,callback:function(e){t.markersPlugin=e},expression:"markersPlugin"}}),e("label",{class:{"text-blue":t.markersPlugin,"text-on-block-1":!t.markersPlugin}},[t._v(t._s(t.$t("Создать кликабельные маркеры для быстрого перехода между эпизодами видео")))])],1
1)]),t.markersPlugin?e("div",{staticClass:"markers-params margin-left-6x"},[t.markers.length?e("div",{staticClass:"row"},[e("label",{staticClass:"col-xs-4 text-light margin-bottom"},[t._v(t._s(t.$t("Время начала эпизода (сек.)")))]),e("label",{staticClass:"col-xs-8 text-light margin-bottom"},[t._v(t._s(t.$t("Название эпизода")))])]):t._e(),t._l(t.$v.markers.$each.$iter,(function(a,s){return e("div",{staticClass:"marker margin-bottom-3x"},[e("div",{staticClass:"row align-center"},[e("div",{staticClass:"col-xs-4"},[e("textbox",{attrs:{placeholder:t.$t("Время начала эпизода (сек.)"),disabled:t.isUserBlocked},model:{value:a.time.$model,callback:function(e){t.$set(a.time,"$model","string"==typeof e?e.trim():e)},expression:"marker.time.$model"}})],1),e("div",{staticClass:"col-xs-6"},[e("textbox",{attrs:{placeholder:t.$t("Название эпизода"),disabled:t.isUserBlocked},model:{value:a.label.$model,callback:function(e){t.$set(a.label,"$model","string"==typeof e?e.trim():e)},expression:"marker.label.$model"}})],1),e("div",{staticClass:"col-xs-2"},[e("div",{staticClass:"flex align-center gap-3x",class:{disabled:t.isUserBlocked}},[e("Tooltip",{attrs:{content:t.$t("Удалить маркер"),placement:"top",enterable:!1,disabled:t.isUserBlocked}},[e("div",{staticClass:"remove",on:{click:function(e){return t.removeMarker(s)}}},[e("svg",{staticClass:"remove-btn",staticStyle:{"enable-background":"new 0 0 31.059 31.059"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 31.059 31.059","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M15.529,31.059C6.966,31.059,0,24.092,0,15.529C0,6.966,6.966,0,15.529,0    c8.563,0,15.529,6.966,15.529,15.529C31.059,24.092,24.092,31.059,15.529,31.059z M15.529,1.774    c-7.585,0-13.755,6.171-13.755,13.755s6.17,13.754,13.755,13.754c7.584,0,13.754-6.17,13.754-13.754S23.113,1.774,15.529,1.774z"}})]),e("g",[e("path",{attrs:{d:"M21.652,16.416H9.406c-0.49,0-0.888-0.396-0.888-0.887c0-0.49,0.397-0.888,0.888-0.888h12.246    c0.49,0,0.887,0.398,0.887,0.888C22.539,16.02,22.143,16.416,21.652,16.416z"}})]),e("g",[e("path",{attrs:{d:"M15.529,22.539c-0.49,0-0.888-0.397-0.888-0.887V9.406c0-0.49,0.398-0.888,0.888-0.888    c0.49,0,0.887,0.398,0.887,0.888v12.246C16.416,22.143,16.02,22.539,15.529,22.539z"}})])]),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g")])])]),e("Tooltip",{attrs:{content:t.$t("Добавить новый маркер"),placement:"top",enterable:!1,disabled:t.isUserBlocked}},[e("div",{staticClass:"add below",on:{click:t.addMarker}},[e("svg",{staticClass:"add-btn",staticStyle:{"enable-background":"new 0 0 31.059 31.059"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 31.059 31.059","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M15.529,31.059C6.966,31.059,0,24.092,0,15.529C0,6.966,6.966,0,15.529,0    c8.563,0,15.529,6.966,15.529,15.529C31.059,24.092,24.092,31.059,15.529,31.059z M15.529,1.774    c-7.585,0-13.755,6.171-13.755,13.755s6.17,13.754,13.755,13.754c7.584,0,13.754-6.17,13.754-13.754S23.113,1.774,15.529,1.774z"}})]),e("g",[e("path",{attrs:{d:"M21.652,16.416H9.406c-0.49,0-0.888-0.396-0.888-0.887c0-0.49,0.397-0.888,0.888-0.888h12.246    c0.49,0,0.887,0.398,0.887,0.888C22.539,16.02,22.143,16.416,21.652,16.416z"}})]),e("g",[e("path",{attrs:{d:"M15.529,22.539c-0.49,0-0.888-0.397-0.888-0.887V9.406c0-0.49,0.398-0.888,0.888-0.888    c0.49,0,0.887,0.398,0.887,0.888v12.246C16.416,22.143,16.02,22.539,15.529,22.539z"}})])]),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g")])])])],1)]),t.markers.length?t._e():e("div",{staticClass:"text-error text-right"},[t._v(t._s(t.$t("Все метки удалены. Если сейчас применить настройки, не отключив плагин, метки на сервере тоже удалятся")))])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-xs-4"}
1,[a.time.$invalid?e("div",{staticClass:"text-error text-right"},[t._v(t._s(t.$t("Введите число")))]):t._e()]),e("div",{staticClass:"col-xs-6"})])])}))],2):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Субтитры")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.subtitles,callback:function(e){t.subtitles=e},expression:"subtitles"}}),e("label",{class:{"text-blue":t.subtitles,"text-on-block-1":!t.subtitles}},[t._v(t._s(t.$t("Добавить дорожки субтитров")))])],1)]),t.subtitles?e("div",{staticClass:"subtitles-params margin-left-6x"},[e("div",{staticClass:"row"},[e("label",{staticClass:"text-light margin-bottom col-xs-4"},[t._v(t._s(t.$t("Название субтитра")))]),e("label",{staticClass:"text-light margin-bottom col-xs-8"},[t._v(t._s(t.$t("Источник субтитра")))])]),t._l(t.subtitlesTracks,(function(a,s){return e("div",{staticClass:"subtitles-track margin-bottom-3x"},[e("div",{staticClass:"row align-center"},[e("div",{staticClass:"col-xs-4"},[e("textbox",{attrs:{placeholder:t.$t("Название субтитра"),disabled:t.isUserBlocked},model:{value:a.label,callback:function(e){t.$set(a,"label",e)},expression:"subtitlesTrack.label"}})],1),e("div",{staticClass:"col-xs-6"},[e("textbox",{attrs:{placeholder:t.$t("Источник субтитра"),disabled:t.isUserBlocked},model:{value:a.src,callback:function(e){t.$set(a,"src",e)},expression:"subtitlesTrack.src"}})],1),e("div",{staticClass:"col-xs-2"},[e("div",{staticClass:"flex align-center gap-3x",class:{disabled:t.isUserBlocked}},[e("Tooltip",{attrs:{content:t.$t("Добавить новый субтитр"),placement:"top",enterable:!1,disabled:t.isUserBlocked}},[0===s&&t.getSubtitlesTracksCount()<t.maxSubtitlesTracksCount?e("div",{staticClass:"add",on:{click:t.addSubtitlesTrack}},[e("svg",{staticClass:"add-btn",staticStyle:{"enable-background":"new 0 0 31.059 31.059"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 31.059 31.059","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M15.529,31.059C6.966,31.059,0,24.092,0,15.529C0,6.966,6.966,0,15.529,0    c8.563,0,15.529,6.966,15.529,15.529C31.059,24.092,24.092,31.059,15.529,31.059z M15.529,1.774    c-7.585,0-13.755,6.171-13.755,13.755s6.17,13.754,13.755,13.754c7.584,0,13.754-6.17,13.754-13.754S23.113,1.774,15.529,1.774z"}})]),e("g",[e("path",{attrs:{d:"M21.652,16.416H9.406c-0.49,0-0.888-0.396-0.888-0.887c0-0.49,0.397-0.888,0.888-0.888h12.246    c0.49,0,0.887,0.398,0.887,0.888C22.539,16.02,22.143,16.416,21.652,16.416z"}})]),e("g",[e("path",{attrs:{d:"M15.529,22.539c-0.49,0-0.888-0.397-0.888-0.887V9.406c0-0.49,0.398-0.888,0.888-0.888    c0.49,0,0.887,0.398,0.887,0.888v12.246C16.416,22.143,16.02,22.539,15.529,22.539z"}})])]),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g")])]):t._e()]),e("Tooltip",{attrs:{content:t.$t("Удалить субтитр"),placement:"top",enterable:!1,disabled:t.isUserBlocked}},[s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeSubtitlesTrack(s)}}},[e("svg",{staticClass:"remove-btn",staticStyle:{"enable-background":"new 0 0 31.059 31.059"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 31.059 31.059","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M15.529,31.059C6.966,31.059,0,24.092,0,15.529C0,6.966,6.966,0,15.529,0    c8.563,0,15.529,6.966,15.529,15.529C31.059,24.092,24.092,31.059,15.529,31.059z M15.529,1.774    c-7.585,0-13.755,6.171-13.755,13.755s6.17,13.754,13.755,13.754c7.584,0,13.754-6.17,13.754-13.754S23.113,1.774,15.529,1.774z"}})]),e("g",[e("path",{attrs:{d:"M21.652,16.416H9.406c-0.49,0-0.888-0.396-0.888-0.887c0-0.49,0.397-0.888,0.888-0.888h12.246    c0.49,0,0.887,0.398,0.887,0.888C22.539,16.02,22.143,16.416,21.652,16.416z"}})]),e("g",[e("path",{attrs:{d:"M15.529,22.539c-0.49,0-0.888-0.397-0.888-0.887V9.406c0-0.49,0.398-0.888,0.888-0.888    c0.49,0,0.887,0.398,0.887,0.888v12.246C16.416,22.143,16.02,22.539,15.529,22.539z"}})])]),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g")])]):t._e()])],1)])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-xs-4"}),e("div",{staticClass:"col-xs-6"},[t.$v.subtitlesTracks.$each[s].src.subtitlesTracksSrcValidator?t._e():e("div",{staticClass:"text-error text-right"},[t._v(t._s(t.$t("Введите валидный URL")))])])])])}))],2):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Видеопревью")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.preview,callback:function(e){t.preview=e},expression:"preview"}}),e("label",{class:{"text-blue":t.preview,"text-on-block-1":!t.preview}},[t._v(t._s(t.$t("Включить предпоказ момента при навигации мышью по шкале воспроизведения")))])],1
1)])]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Плейлист")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.streamSelector,callback:function(e){t.streamSelector=e},expression:"streamSelector"}}),e("label",{class:{"text-blue":t.streamSelector,"text-on-block-1":!t.streamSelector}},[t._v(t._s(t.$t("Добавить в один плеер несколько видеофайлов или потоков")))])],1)]),t.streamSelector?e("div",{staticClass:"stream-selector-params margin-left-6x"},[e("div",{staticClass:"row"},[e("label",{staticClass:"text-light margin-bottom col-xs-4"},[t._v(t._s(t.$t("Имя потока")))]),e("label",{staticClass:"text-light margin-bottom col-xs-8"},[t._v(t._s(t.$t("Поток")))])]),t._l(t.streamSelectorPlaylists,(function(a,s){return e("div",{staticClass:"stream-selector-playlist margin-bottom-3x"},[e("div",{staticClass:"row align-center"},[e("div",{staticClass:"col-xs-4"},[e("textbox",{attrs:{placeholder:t.$t("Имя потока"),disabled:t.isUserBlocked},model:{value:a.name,callback:function(e){t.$set(a,"name",e)},expression:"elem.name"}})],1),e("div",{staticClass:"col-xs-6"},[e("textbox",{attrs:{placeholder:t.$t("Поток"),disabled:t.isUserBlocked},model:{value:a.source,callback:function(e){t.$set(a,"source",e)},expression:"elem.source"}})],1),e("div",{staticClass:"col-xs-2"},[e("div",{staticClass:"flex align-center gap-2x",class:{disabled:t.isUserBlocked}},[e("Tooltip",{attrs:{content:t.$t("Добавить новый поток"),placement:"top",enterable:!1,disabled:t.isUserBlocked}},[0===s&&t.getStreamSelectorPlaylistsCount()<t.maxStreamSelectorPlaylistsCount?e("div",{staticClass:"add",on:{click:t.addStreamSelectorPlaylist}},[e("svg",{staticClass:"add-btn",staticStyle:{"enable-background":"new 0 0 31.059 31.059"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 31.059 31.059","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M15.529,31.059C6.966,31.059,0,24.092,0,15.529C0,6.966,6.966,0,15.529,0    c8.563,0,15.529,6.966,15.529,15.529C31.059,24.092,24.092,31.059,15.529,31.059z M15.529,1.774    c-7.585,0-13.755,6.171-13.755,13.755s6.17,13.754,13.755,13.754c7.584,0,13.754-6.17,13.754-13.754S23.113,1.774,15.529,1.774z"}})]),e("g",[e("path",{attrs:{d:"M21.652,16.416H9.406c-0.49,0-0.888-0.396-0.888-0.887c0-0.49,0.397-0.888,0.888-0.888h12.246    c0.49,0,0.887,0.398,0.887,0.888C22.539,16.02,22.143,16.416,21.652,16.416z"}})]),e("g",[e("path",{attrs:{d:"M15.529,22.539c-0.49,0-0.888-0.397-0.888-0.887V9.406c0-0.49,0.398-0.888,0.888-0.888    c0.49,0,0.887,0.398,0.887,0.888v12.246C16.416,22.143,16.02,22.539,15.529,22.539z"}})])]),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g")])]):t._e()]),e("Tooltip",{attrs:{content:t.$t("Удалить поток"),placement:"top",enterable:!1,disabled:t.isUserBlocked}},[s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeStreamSelectorPlaylist(s)}}},[e("svg",{staticClass:"remove-btn",staticStyle:{"enable-background":"new 0 0 31.059 31.059"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 31.059 31.059","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M15.529,31.059C6.966,31.059,0,24.092,0,15.529C0,6.966,6.966,0,15.529,0    c8.563,0,15.529,6.966,15.529,15.529C31.059,24.092,24.092,31.059,15.529,31.059z M15.529,1.774    c-7.585,0-13.755,6.171-13.755,13.755s6.17,13.754,13.755,13.754c7.584,0,13.754-6.17,13.754-13.754S23.113,1.774,15.529,1.774z"}})]),e("g",[e("path",{attrs:{d:"M21.652,16.416H9.406c-0.49,0-0.888-0.396-0.888-0.887c0-0.49,0.397-0.888,0.888-0.888h12.246    c0.49,0,0.887,0.398,0.887,0.888C22.539,16.02,22.143,16.416,21.652,16.416z"}})]),e("g",[e("path",{attrs:{d:"M15.529,22.539c-0.49,0-0.888-0.397-0.888-0.887V9.406c0-0.49,0.398-0.888,0.888-0.888    c0.49,0,0.887,0.398,0.887,0.888v12.246C16.416,22.143,16.02,22.539,15.529,22.539z"}})])]),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g")])]):t._e()])],1)])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-xs-4"}),e("div",{staticClass:"col-xs-6"},[t.$v.streamSelectorPlaylists.$each[s].source.playlistsSourceValidator?t._e():e("div",{staticClass:"text-error text-right"},[t._v(t._s(t.$t("Введите валидный URL")))])])])])})),e("div",{staticClass:"clearfix"},[e("el-checkbox",{staticClass:"custom",attrs:{label:t.$t("Включить большую версию плейлиста"),disabled:t.isUserBlocked},model:{value:t.streamSelectorFullSize,callback:function(e){t.streamSelectorFullSize=e},expression:"streamSelectorFullSize"}})],1)],2):t._e()]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Фиксация панели")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.fixMediaControl,callback:function(e){t.fixMediaControl=e},expression:"fixMediaControl"}}),e("label",{class:{"text-blue":t.fixMediaControl,"text-on-block-1":!t.fixMediaControl}},[t._v(t._s(t.$t("Не скрывать панель с кнопками плеера (по умолчанию она прячется через 3 секунды, если не двигать мышью)")))])],1
1)])]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Отключение контекстного меню")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.disableVideoTagContextMenu,callback:function(e){t.disableVideoTagContextMenu=e},expression:"disableVideoTagContextMenu"}}),e("label",{class:{"text-blue":t.disableVideoTagContextMenu,"text-on-block-1":!t.disableVideoTagContextMenu}},[t._v(t._s(t.$t("Отключить контекстное меню, которое обычно открывается по клику правой кнопки мыши над видео")))])],1)])]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Повтор видео")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.loop,callback:function(e){t.loop=e},expression:"loop"}}),e("label",{class:{"text-blue":t.loop,"text-on-block-1":!t.loop}},[t._v(t._s(t.$t("Повторно воспроизводить видео по окончанию ролика")))])],1)])]),e("div",{staticClass:"div"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Чат")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"flex align-center gap"},[e("toggle",{attrs:{disabled:t.isUserBlocked},model:{value:t.chat,callback:function(e){t.chat=e},expression:"chat"}}),e("label",{class:{"text-blue":t.chat,"text-on-block-1":!t.chat}},[t._v(t._s(t.$t("Включить чат")))])],1)]),t.chat?e("div",{staticClass:"chat-params margin-left-6x"},[e("p",{staticClass:"text-semibold margin-bottom-2x"},[t._v(t._s(t.$t("Для использования чата необходимо оплатить услугу через менеджера и получить хэш комнаты - параметр room.")))]),e("div",{staticClass:"margin-bottom-3x"},[e("label",{staticClass:"text-light margin-bottom"},[t._v(t._s(t.$t("Текст кнопки входа в чат:")))]),e("textbox",{attrs:{placeholder:t.$t("Укажите текст кнопки входа в чат"),disabled:t.isUserBlocked},model:{value:t.chatJoinBtnText,callback:function(e){t.chatJoinBtnText=e},expression:"chatJoinBtnText"}})],1),e("div",{staticClass:"chat-join-button-color margin-bottom-3x"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.chatJoinBtnColor,expression:"chatJoinBtnColor"}],staticClass:"vertical-align-middle",attrs:{type:"color",disabled:t.isUserBlocked},domProps:{value:t.chatJoinBtnColor},on:{input:function(e){e.target.composing||(t.chatJoinBtnColor=e.target.value)}}}),e("label",{staticClass:"text-light vertical-align-middle margin-left"},[t._v(t._s(t.$t("Цвет кнопки входа в чат")))])]),e("div",{staticClass:"clearfix"},[e("el-checkbox",{staticClass:"custom",attrs:{label:t.$t("Включить кнопку выбора эмодзи"),disabled:t.isUserBlocked},model:{value:t.chatEmojiBtn,callback:function(e){t.chatEmojiBtn=e},expression:"chatEmojiBtn"}})],1)]):t._e()])]),this.$slots.buttons?e("div",{staticClass:"buttons content-block last"},[t._t("buttons")],2):t._e(),this.$slots.examples?e("div",{staticClass:"examples"},[t._t("examples")],2):t._e(),e("el-dialog",{staticClass:"custom",attrs:{visible:t.showCountdownCreation,title:t.$t("Создание JSON"),width:"60%"},on:{"update:visible":function(e){t.showCountdownCreation=e}},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"dialog-footer"},[e("btn",{on:{click:function(e){t.showCountdownCreation=!1}}},[t._v(t._s(t.$t("Создать")))])],1)]},proxy:!0}])},[e("div",{staticClass:"flex column gap-2x margin-bottom"},t._l(t.posterScheduleConfig,(function(a,s){return e("JsonInputField",{attrs:{type:a.type,jsonName:s,hint:a.hint,title:a.title,initValue:a.value},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"config.value"}})})),1)])],1)}),[],!1,null,"56e4f1cd",null).exports},16231:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return c}}),a(44114);var s=a(46894),l=a(80440),i=a(47783),r=a(99281),o=a(98250),n={name:"NewPlayer",components:{Btn:s.A,Spinner:l.A,FormPlayer:i.A,ArrowCircleIcon:r.A,Scrolled:o.A},props:{initialSource:{type:String},playerName:{type:String},firstUse:{type:Boolean,default:!0}},data(){return{isSavingPlayerConfiguration:!1,isSavingChatConfiguration:!1,isFormValid:!0}},computed:{computedInitialSource(){return this.$route.query.initialSource?this.$route.query.initialSource:this.initialSource}},created(){this.firstUse&&!this.$user.isCDN1()&&this.initializeStorage()},mounted(){this.computedInitialSource&&(this.$refs.form.source=this.computedInitialSource),this.playerName&&(this.$refs.form.playerName=this.playerName)},methods:{onPlayerCreateSuccess(t){this.$message.success({message:"Плеер создан"}),this.$router.push({name:"player-edit",params:{id:t}})},createPlayer(){let t=this.$refs.form.formPlayerModel();this.isSavingPlayerConfiguration=!0;let e={utoken:this.$user.accountUtoken},a={model:t};this.$api.createPlayer(e,a).then((s=>{let l=s.data.player_id;t.chat&&t.chat.enable?(this.isSavingChatConfiguration=!0,a={player_id:l,model:t.chat},this.$api.createOrUpdateTestChat(e,a).catch((t=>{this.$message.error({message:"Ошибка при создании чата"})})).finally((()=>{this.isSavingChatConfiguration=!1,this.onPlayerCreateSuccess(l)}))):this.onPlayerCreateSuccess(l)})).catch((t=>{t.response&&"player with this title already exists"===t.response.statusText?this.$message.error({message:"Плеер с таким названием уже существует"}):this.$message.error({message:"Ошибка при создании плеера"})})).finally((()=>{this.isSavingPlayerConfiguration=!1}))},initializeStorage(){let t={account:this.$user.accountName,path:""},e=new FormData;return e.append("dir",!0),e.append("method","indirect"),this.$api.createStoragePath(t,e).then((()=>{})).catch((()=>{this.$message.error({message:"Не удалось инициализировать хранилище."})}))},goToPlayerList(){this.$router.push({name:"players"})},setFormValid(t){this.isFormValid=t}}},c=(0,a(81656).A)(n,(function(){var t=this,e=t._self._c;return e("Scrolled",{staticClass:"new-player"},[e("div",{staticClass:"content header-block"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToPreviousRoute}},[e("ArrowCircleIcon")],1),e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Создание нового плеера")))])],1
1),e("FormPlayer",{ref:"form",on:{valid:t.setFormValid}},[e("template",{slot:"buttons"},[e("div",{staticClass:"content-bloc last"},[t.isSavingPlayerConfiguration||t.isSavingChatConfiguration?e("div",{staticClass:"flex spinner-btn-wrapper"},[e("Spinner",{staticClass:"grow flex justify-center align-center",attrs:{adaptiveHeight:!0}}),e("btn",{staticClass:"btn-height-source"},[t._v(" ")])],1):e("btn",{attrs:{size:"big",disabled:!t.isFormValid},on:{click:t.createPlayer}},[t._v(t._s(t.$t("Создать плеер")))])],1)])],2)],1)}),[],!1,null,null,null).exports},5153:function(t,e,a){"use strict";a.d(e,{A:function(){return w}});var s=a(96462),l=a(10216),i=a(46894),r=a(359),o=a(62033),n=a(59075),c=a(64710),d=(a(98992),a(54520),a(3949),a(81454),a(62893)),u=a(34445),p=a(2119),m=a(38095),g=a(97029),h=a(19850),b=a(44969),v=a(53402),f=a(28428),y=a(43332),C=a(86738),x=a(54972),k=a(80440),_={__name:"FileUploader",props:{visible:{type:Boolean,required:!0},directory:{type:String,default:""}},emits:["update:visible","select-target"],setup(t,{emit:e}){const a=t,{isModalVisible:s,closeModal:l}=(0,f.$)(a,e),r=(0,p.S)(),{s3Client:n,storageBucket:c}=(0,u.bP)((0,p.S)()),{isSettingClient:_}
1=(0,u.bP)(r),S=(0,m.Q)(),{getStorageCdnDomain:P}=S,$=(0,d.ref)("select"),w=(0,d.ref)([]),U=(0,d.ref)(""),T=(0,d.ref)(!0),B=(0,d.ref)({}),j=(0,d.ref)(!1);async function A(){T.value=!0,_.value=!0;let t=await(0,b.r)({accountName:g.A.accountName});if(await(0,d.nextTick)(),!t.storageId){const e=await(0,C.A)();if(await(0,d.nextTick)(),!e)return void h.A.error({message:"Не удалось инициализировать хранилище"});h.A.success({message:"Хранилище инициализировано"}),await(0,d.nextTick)(),t=await(0,b.r)({accountName:g.A.accountName}),await(0,d.nextTick)()}_.value=!1,t.ok?(await P({accountName:g.A.accountName}),await(0,d.nextTick)(),r.setStorageData({storage:t.storageId,endpoint:t.endpoint,bucket:t.bucket,cdnResource:t.cdnResourceId,keys:{...t.keys}}),r.setS3Client(),I()):h.A.error({message:t.message})}async function I(t){const e=a.directory;return(0,v.k5)(r.s3Client,r.storageBucket,e,!1).then((e=>{w.value=e.map((t=>"file"!==t.type?null:{name:t.name,path:t.key})).filter(Boolean),w.value.length>0&&!t?U.value=w.value[0].path:t&&(U.value=a.directory+"/"+t)})).finally((()=>{T.value=!1}))}function M(t){return t.toLowerCase().trim().replace(/[^a-zа-яё0-9\s]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function V(){document.querySelectorAll(".media-file-upload-modal .el-upload-list .el-upload-list__item").forEach((t=>{let e=B.value[M(t.textContent.substring(0,t.textContent.indexOf("\n")))];void 0===e&&(e=100),t.style.setProperty("--success-icon-display-mode",100===e?"block":"none"),t.style.setProperty("--loading-icon-display-mode",100===e?"none":"block"),t.style.setProperty("--progress-bar-width",e+"%")}))}return(0,d.onMounted)((()=>{A()})),{__sfc:!0,emit:e,props:a,isModalVisible:s,closeModal:l,s3ClientStore:r,s3Client:n,storageBucket:c,isSettingClient:_,cdnResourceStore:S,getStorageCdnDomain:P,modalContent:$,processedStorageItems:w,selectedFilePath:U,isLoadingStorage:T,currentUploads:B,isUploadingFiles:j,getStorageCredentials:A,loadFolder:I,beforeUpload:function(t){const e="image/jpeg"===t.type||"image/png"===t.type,a=t.size/1024/1024<5;return e||h.A.error({message:"Разрешённые форматы: PNG и JPG/JPEG"}),a||h.A.error({message:"Размер ограничен 5МБ"}),e&&a},toMinifiedKebabCase:M,setDataAttrs:V,uploadNewFile:async function(t){const e=a.directory,s={key:e?e+"/"+t.file.name:t.file.name,name:t.file.name};B.value[s.name]=0,j.value=!0;try{const e=new y._({client:n.value,params:{Bucket:c.value,Key:s.key,Body:t.file,ContentType:t.file.type||"application/octet-stream"}});e.on("httpUploadProgress",(t=>{t.total&&(B.value[M(s.name)]=Math.round(t.loaded/t.total*100),V())})),await e.done(),B.value[s.name]=0;const a=$t("Файл {filename} успешно загружен.",{filename:s.name});h.A.success({message:a}),T.value=!0,I(s.name),$.value="select"}catch{const t=$t("Не удалось загрузить файл {filename}.",{filename:s.name});h.A.error({message:t})}finally{j.value=!1}},select:function(){e("select-target",(0,m.Q)().storageDomain+"/"+U.value),l()},toggleUpload:function(){$.value="select"===$.value?"upload":"select"},Btn:i.A,Select:o.A,CloudUploadIcon:x.A,Spinner:k.A}}},S=a(81656),P=(0,S.A)(_,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("ElDialog",{staticClass:"custom",attrs:{width:"30%",title:t.$t("Выбрать ранее загруженный файл"),visible:a.isModalVisible},on:{"update:visible":function(t){a.isModalVisible=t}},scopedSlots:t._u([{key:"footer",fn:function(){return[e("div",{staticClass:"flex align-center gap-2x justify-between"},[e(a.Btn,{attrs:{disabled:null===a.selectedFilePath||"select"!==a.modalContent||a.isLoadingStorage},on:{click:a.select}},[t._v(" "+t._s(t.$t("Выбрать"))+" ")]),e(a.Btn,{attrs:{disabled:a.isLoadingStorage,type:"link"},on:{click:a.toggleUpload}},[t._v(" "+t._s("select"===a.modalContent?t.$t("Загрузить новый файл"):t.$t("Выбрать файл"))+" ")])],1)]},proxy:!0}])},["select"===a.modalContent?[e("p",{staticClass:"text-extralight margin-bottom-2x text-on-block-2"},[t._v(t._s(t.$t("Файлы хранятся в Хранилище в директории /{directory}",{directory:t.directory})))]),a.isLoadingStorage?e("ElSkeleton",{attrs:{animated:"",rows:1}},[e("template",{slot:"template"},[e("section",{staticClass:"el-skeleton__item corners-rounded margin-bottom-2x",staticStyle:{height:"32px"}})])],2):a.processedStorageItems?e(a.Select,{staticClass:"full-width margin-bottom-3x",scopedSlots:t._u([{key:"options",fn:function(){return t._l(a.processedStorageItems,(function(a){return e("el-option",{key:a.name,attrs:{value:a.path,label:t.$t(a.name)}})}))},proxy:!0}],null,!1,2403992152),model:{value:a.selectedFilePath,callback:function(t){a.selectedFilePath=t},expression:"selectedFilePath"}}):t._e()]:t._e(),"upload"===a.modalContent?[e("p",{staticClass:"text-extralight margin-bottom-2x text-on-block-2"},[t._v(t._s(t.$t("Файл будет загружен в Хранилище в директорию /{directory}",{directory:t.directory})))]),e("ElUpload",{ref:"uploader",staticClass:"uploader",attrs:{action:"http",drag:"","before-upload":a.beforeUpload,"auto-upload":!0,"http-request":a.uploadNewFile}},[[e("div",{staticClass:"full-height flex column justify-evenly align-center padding-left-3x padding-right-3x"},[a.isUploadingFiles||a.isLoadingStorage?e(a.Spinner,{staticClass:"flex justify-center align-center"}):[e(a.CloudUploadIcon,{staticStyle:{width:"48px",height:"48px"}}),e("div",{staticClass:"text-light"},[t._v(" "+t._s(t.$t("Перетащите изображение сюда или нажмите, чтобы загрузить"))+" ")]),e("div",{staticClass:"flex justify-between align-self-stretch"},[e("p",[e("span",{staticClass:"text-light"},[t._v(t._s(t.$t("Форматы")+": "))]),e("span",{staticClass:"text-menu"},[t._v("jpg/png")])]),e("p",[e("span",{staticClass:"text-light"},[t._v(t._s(t.$t("Размер до")+": "))]),e("span",{staticClass:"text-menu"},[t._v("5MB")])])])]],2)]],2)]:t._e()],2)}),[],!1,null,null,null).exports,$={name:"PlayerFileSelector",components:{Select:o.A,Modal:r.A,Btn:i.A,Textbox:l.A,FolderOpenIcon:n.A,FileUploader:P,AddDocumentIcon:c.A},props:{value:{type:String,required:!0},objectGroup:{type:String,required:!0},placeholder:{type:String,required:!1},name:{type:String},removeProtocolFromResult:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{textboxValue:this.value,playerFolderName:"player_files",modalVisible:!1}},computed:{objectGroupFolder(){return`${this.playerFolderName}/${this.objectGroup}`}},methods:{openModal(){this.modalVisible=!0},setDownloadUrl(t){this.removeProtocolFromResult&&(t=t.replace(/^(http|https):\/\//,"//")),this.textboxValue=(0,s.Xq)(t),this.$emit("input",t)},selectFile(t){this.setDownloadUrl(t)}}},w=(0,S.A)($,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"player-files-selector"},[e("textbox",{attrs:{name:t.name,placeholder:t.$t(t.placeholder),disabled:t.disabled},model:{value:t.textboxValue,callback:function(e){t.textboxValue=e},expression:"textboxValue"}},[e("template",{slot:"button-1"},[t.disabled?t._e():e("btn",{attrs:{type:"icon",size:"small"},on:{click:function(e){return t.openModal("select")}}},[e("folder-open-icon")],1)],1)],2),e("FileUploader",{attrs:{visible:t.modalVisible,directory:t.objectGroupFolder},on:{"update:visible":function(e){t.modalVisible=e},"select-target":t.selectFile}})],1)}),[],!1,null,"04e01cbc",null).exports},68857:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return v}}),a(44114);var s=a(46894),l=a(98250),i=a(58693),r=(a(98992),a(72577),a(81454),a(62893)),o=a(95093),n=a.n(o),c=a(69007),d=a(50104),u=a(4311),p={__name:"PlayersListTable",props:{players:{type:Array,required:!0},pageNumber:{type:Number},pageSize:{type:Number}},emits:["basePlayerTitleClick","favoriteChooseClick"],setup(t,{emit:e}){const a=t,s=(0,r.getCurrentInstance)().proxy.$user.personTimezone;function l(t){return void 0!==t?n()(t).tz(s).format("YYYY-MM-DD HH:mm"):"-"}function i(t){return t.replace(/^\/\//,"")}function o(t){e("favoriteChooseClick",t)}function p(t){t&&c.A.push({name:"player-edit",params:{id:t}})}function m(t){return t.icon={type:"favorite"},t.favorite||(t.icon.callback=o),t}function g(t){const e=t.player_id;return a.players.find((t=>t.player_id===e)).favorite?"active":"inactive"}const h=[{key:"spacerLeft",text:" ",controlType:d.W.plainText,width:"25px",sortable:!1},{key:"favorite",controlType:d.W.icon,text:$t(" "),formatter:t=>m(t),classes:t=>g(t),width:"25px"},{key:"name",sortable:!0,controlType:d.W.plainText,text:$t("Название"),width:"30%"},{key:"date",sortable:!0,controlType:d.W.plainText,text:$t("Дата изменения"),formatter:t=>l(t),width:"30%"},{key:"source",sortable:!0,controlType:d.W.plainText,text:$t("Видео"),formatter:t=>i(t)},{key:"spacerRight",text:" ",controlType:d.W.plainText,width:"25px",sortable:!1}],b=(0,r.computed)((()=>a.players.map((t=>({spacerLeft:"",name:t.model.playerName,date:t.model.date,source:t.model.source,favorite:t,player_id:t.player_id,spacerRight:""})))));return{__sfc:!0,props:a,emit:e,personTimezone:s,formatDate:l,formatSource:i,setFavoritePlayer:o,goToProject:p,onRowClick:function(t){"Базовый плеер"===t.name?e("basePlayerTitleClick"):p(t.player_id)},formatFavorite:m,formatFavoriteClass:g,tableHeaders:h,tableData:b,simpleTable:u.A}}},m=a(81656),g=(0,m.A)(p,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"players-list-table"},[a.tableData.length?e(a.simpleTable,{attrs:{headers:a.tableHeaders,rows:a.tableData,pageNumber:t.pageNumber,pageSize:t.pageSize},on:{rowClick:a.onRowClick}}):e("div",{staticClass:"flex justify-center align-center full-height s3-storage-bucket-info-text"},[t._v(" "+t._s(t.$t("Ресурсы не найдены"))+" ")])],1)}),[],!1,null,null,null).exports,h=a(47528),b={name:"PlayersList",components:{Btn:s.A,Scrolled:l.A,EmptyTable:i.A,PlayersListTable:g},data(){return{isInfoDialogVisible:!1,players:[],isLoading:!1,pageSize:10,minPageSize:5,page:1}},computed:{isUserBlocked(){return this.$user.isBlocked()},hidePaginationOnSinglePage(){return this.players.length<=this.pageSize}},created(){this.getPlayers()},mounted(){window.addEventListener("resize",this.calculateRows),this.calculateRows()},beforeDestroy(){window.removeEventListener("resize",this.calculateRows)},methods:{calculateRows(){this.pageSize=Math.max((0,h.D)(this.$refs["table-ref"],38),this.minPageSize)},basePlayerTitleClick(){this.$message({message:$t("Это базовый плеер, который доступен всем нашим клиентам бесплатно и Ð
1½Ðµ может быть изменён.")})},favoriteChooseClick(t){if(localStorage.getItem("favorite_player_id")===t.player_id)if("base_player"!==localStorage.getItem("favorite_player_id")){for(let t in this.players)if(this.players[t].player_id===localStorage.getItem("favorite_player_id")){const e={...this.players[t],favorite:!1};r.default.set(this.players,t,e)}let t=this.players[this.players.length-1];t.favorite=!0,r.default.set(this.players,this.players.length-1,t),localStorage.setItem("favorite_player_id","base_player"),this.$message.success({message:$t("Этот плеер теперь не будет использоваться по умолчанию.")})}else this.$message.error({message:$t("Хотя бы один плеер должен быть выбран.")});else t.prod||t.isBasePlayer?(this.setFavoritePlayer(t),this.$message.success({message:$t("Этот плеер будет использоваться по умолчанию для трансляций и видео.")})):this.$message.error({message:$t("Для выбора плеера по умолчанию перенесите пробные настройки в боевой плеер на странице редактирования плеера.")})},setFavoritePlayer(t){localStorage.setItem("favorite_player_id",t.player_id);for(let e in this.players)this.players[e].player_id===localStorage.getItem("favorite_player_id")?(t.favorite=!0,r.default.set(this.players,e,t)):(this.players[e].favorite=!1,r.default.set(this.players,e,this.players[e]))},getPlayers(){localStorage.getItem("favorite_player_id")||localStorage.setItem("favorite_player_id","base_player"),this.isLoading=!0;let t={utoken:this.$user.accountUtoken};this.$api.getPlayersList(t,{},{cancelToken:this.componentCancelToken.token}).then((t=>{this.players=(t.data.players||[]).sort(((t,e)=>{const a=new Date(t.model.date),s=new Date(e.model.date);if(a>s)return-1;if(a<s)return 1;const l=t.model.playerName.toLowerCase(),i=e.model.playerName.toLowerCase();return l<i?-1:l>i?1:0}))})).catch((t=>{this.$message.error({message:$t("Ошибка при получении плееров")})})).finally((()=>{let t={isBasePlayer:!0,player_id:"base_player",model:{playerName:"Базовый плеер",date:"2021-12-31 00:00",source:""},favorite:!1};if("base_player"!==localStorage.getItem("favorite_player_id"))for(let t in this.players)this.players[t].player_id===localStorage.getItem("favorite_player_id")?this.players[t].favorite=!0:this.players[t].favorite=!1;else t.favorite=!0;this.players.push(t),this.isLoading=!1}))},goToNewPlayerPage(){this.$router.push({name:"player-new",params:{firstUse:1===this.players.length}})},formatCreateTime(t,e,a,s){return void 0!==a?a:"-"},formatSource(t,e,a,s){return a.replace(/^\/\//,"")}},watch:{"$user.accountName"(){this.getPlayers()}}},v=(0,m.A)(b,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"content flex align-center justify-between gap-3x"},[e("div",{staticClass:"header-wrapper"},[e("h1",{staticClass:"text-header-2 margin-bottom"},[t._v(t._s(t.$t("Ваши плееры")))]),e("div",{staticClass:"description"},[e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Здесь вы можете перейти к настройкам одного из ваших плееров или создать новый.")))])])]),e("Btn",{attrs:{disabled:t.isUserBlocked,requestPaidServiceConfirmation:!0},on:{click:t.goToNewPlayerPage}},[t._v(t._s(t.$t("Создать плеер")))])],1),e("div",{ref:"table-ref",staticClass:"content no-side-padding"},[t.isLoading?e("div",[e("el-skeleton",{key:"skeleton",staticClass:"padding-left-3x padding-right-3x",attrs:{rows:8,animated:""}})],1):0===t.players.length?e("empty-table",{attrs:{text:"Нет доступных плееров"}},[e("btn",{attrs:{disabled:t.isUserBlocked},on:{click:t.goToNewPlayerPage}},[t._v(t._s(t.$t("Создать плеер")))])],1):e("PlayersListTable",{attrs:{players:t.players,pageNumber:t.page,pageSize:t.pageSize},on:{basePlayerTitleClick:t.basePlayerTitleClick,favoriteChooseClick:t.favoriteChooseClick}})],1),t.isLoading?t._e():e("el-pagination",{staticClass:"custom margin-top-3x",attrs:{layout:"prev, pager, next",total:t.players.length,"page-size":t.pageSize,"current-page":t.page,"hide-on-single-page":t.hidePaginationOnSinglePage},on:{"update:currentPage":function(e){t.page=e},"update:current-page":function(e){t.page=e}}})],1)}),[],!1,null,"fc4c4e4c",null).exports},26600:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return s}});var s=(0,a(81656).A)({name:"EditPlayersSubSection"},(function(){var t=this._self._c;return t("div",{staticClass:"editPlayers-sub-section flex column full-height"},[t("router-view")],1)}),[],!1,null,null,null).exports},71382:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return l}});var s={name:"PlayerSection",components:{SectionNav:a(45520).A},beforeCreate(){this.navLinks=[{text:"Плееры",to:{name:"player"}}]}},l=(0,a(81656).A)(s,(function(){var t=this._self._c;return t("div",{staticClass:"flex column full-height relative"},[t("div",{ref:"section-header",staticClass:"section-header"},[t("div",{staticClass:"section-header-wrapper relative container"},[t("section-nav",{attrs:{links:this.navLinks}})],1)]),t("router-view")],1)}),[],!1,null,null,null).exports},47528:function(t,e,a){"use strict";function s(t,e){const a=t.getBoundingClientRect().top,s=window.innerHeight-(a+56);return Math.floor((s-e-56)/e)}a.d(e,{D:function(){return s}})},89717:function(t,e,a){a(98992),a(54520),a(3949),a(81454),a(8872),t.exp
1orts=function(t){var e={};function a(s){if(e[s])return e[s].exports;var l=e[s]={i:s,l:!1,exports:{}};return t[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var l in t)a.d(s,l,function(e){return t[e]}.bind(null,l));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=1)}([function(t,e,a){"use strict";var s=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===l}(t)}(t)},l="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?c((a=t,Array.isArray(a)?[]:{}),t,e):t;var a}function r(t,e,a){return t.concat(e).map((function(t){return i(t,a)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function n(t,e){try{return e in t}catch(t){return!1}}function c(t,e,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||s,a.cloneUnlessOtherwiseSpecified=i;var l=Array.isArray(e);return l===Array.isArray(t)?l?a.arrayMerge(t,e,a):function(t,e,a){var s={};return a.isMergeableObject(t)&&o(t).forEach((function(e){s[e]=i(t[e],a)})),o(e).forEach((function(l){(function(t,e){return n(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,l)||(n(t,l)&&a.isMergeableObject(e[l])?s[l]=function(t,e){if(!e.customMerge)return c;var a=e.customMerge(t);return"function"==typeof a?a:c}(l,a)(t[l],e[l],a):s[l]=i(e[l],a))})),s}(t,e,a):i(e,a)}c.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,a){return c(t,a,e)}),{})};var d=c;t.exports=d},function(t,e,a){"use strict";a.r(e);var s=a(0),l=a.n(s);const i={ClapprStyling:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-styling.min.js",ClapprTitle:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-title-plugin.min.js",LevelSelector:"//playercdn.cdnvideo.ru/aloha/clappr/level-selector.min.js",AudioTrackSelector:"//playercdn.cdnvideo.ru/aloha/clappr/audio-track-selector.min.js",StreamSelector:"//playercdn.cdnvideo.ru/aloha/clappr/stream-selector.min.js",PlaybackRatePlugin:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-playback-rate-plugin.min.js",ClapprSubtitles:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-subtitles.min.js",ClapprErrorHandler:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-error-handler.min.js",ClapprEvents:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-events.min.js",ClapprStats:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-stats.min.js",ClapprFairplay:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-fairplay.min.js",FLVJSPlayback:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-flvjs-playback.min.js",YoutubePlayback:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-youtube-playback.min.js",DashShakaPlayback:"//playercdn.cdnvideo.ru/aloha/clappr/dash-shaka-playback.min.js",ClapprGoogleImaPlugin:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-google-ima-plugin.min.js",ClapprVodAd:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-vod-ad.min.js",ClapprLogoPlugin:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-logo-plugin.min.js",ClapprPoster:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-poster.min.js",WatermarkPlugin:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-watermark-plugin.min.js",ClapprSeekbarPreview:"//playercdn.cdnvideo.ru/aloha/clappr/seekbar-preview.min.js",ClapprMarkersPlugin:"//playercdn.cdnvideo.ru/aloha/clappr/clappr-markers-plugin.min.js",SourceUpdater:"//playercdn.cdnvideo.ru/aloha/clappr/source-updater.min.js"};function r(t,e){const a={plugins:["ClapprStats","ClapprEvents"],clapprEvents:{account:t,urls:["//plstat01.cdnvideo.ru/","//plstat02.cdnvideo.ru/"],events:{stats:{all:!0}}}};return l()({plugins:["ClapprStyling"],playback:{playInline:!0},mediacontrol:{hideList:["hdIndicator"]}},e||a)}function o(t,e,a,s=!1,l){if(l){const i={app:t,clientId:e,appId:a};return l.replace(/{{(app|clientId|appId)}}/g,((t,e)=>i[e]))+(s?"&version=test":"")}return`//player.cdnvideo.com/app/player/config/v1/${e}/${t}/?${t}_id=${a}
1${s?"&version=test":""}`}function n(t,e){let a;return e||!p[t]?(a=new Promise(((e,a)=>{const s=new XMLHttpRequest;s.open("GET",t),s.onload=()=>{s.status>=200&&s.status<300?e(JSON.parse(s.response)):a({source:t,status:s.status,statusText:s.statusText})},s.onerror=()=>{a({source:t,status:s.status,statusText:s.statusText})},s.send()})),p[t]=a):a=p[t],a}function c(t){let e;return u[t]?e=u[t]:(e=new Promise(((e,a)=>{var s=document.querySelector("head"),l=document.createElement("script");l.type="text/javascript",l.onload=()=>e(t+"script loaded"),l.onerror=t=>a(t),l.src=t,s.append(l)})),u[t]=e),e}function d(t){return!!document.querySelector(t)||!1}const u={},p={},{playerScript:m,manifestScript:g,vendorScript:h,appScript:b,chatStyle:v}={playerScript:"//playercdn.cdnvideo.ru/aloha/clappr/clappr7.min.js",manifestScript:"//playercdn.cdnvideo.ru/aloha/chat/cdn-chat-manifest.js",vendorScript:"//playercdn.cdnvideo.ru/aloha/chat/cdn-chat-vendor.js",appScript:"//playercdn.cdnvideo.ru/aloha/chat/cdn-chat-app.js",chatStyle:"//playercdn.cdnvideo.ru/aloha/chat/cdn-chat-app.css"};e.default={loadPlayer:function({clientId:t,playerId:e,confSrc:a,confSrcTemplate:s,defaultConf:r={},overrideConf:u={},onPlayerCreation:p,createGlobal:g=!0,forceConfigRequest:h,test:b}){if(!(t&&e||a||s))return;const v=c(m),f=n(a||o("player",t,e,!!b,s),h).then((t=>r?l()(r,t):t)).then((t=>u?l()(t,u):t));function y(t){const e=new Clappr.Player(t);return p&&"function"==typeof p?p(e,t.parentId):g&&(window["player_"+Date.now()]=e),e}
1Promise.all([f,v]).then((t=>{const e=t[0];let a=e.parentId;if(a||(a="#player-wrapper"),!d(a))return;const s=(l=e.plugins,r={},l.filter((t=>!r.hasOwnProperty(t)&&(r[t]=!0))));var l,r;s&&s.length?function(t){const e=t.map((t=>i[t]?c(i[t]):null));return Promise.all(e)}(s).then((()=>{const t={...e};t.plugins=s.map((t=>window[t])),y(t)})):y(e)}))},loadChat:function({clientId:t,chatId:e,confSrc:a,confSrcTemplate:s,defaultConf:i={},overrideConf:r={},forceConfigRequest:u,test:p}){if(!(t&&e||a||s))return;const m=document.querySelector("head"),f=document.createElement("link");f.href=v,f.rel="stylesheet",m.prepend(f);const y=n(a||o("chat",t,e,!!p,s),u).then((t=>i?l()(i,t):t)).then((t=>r?l()(t,r):t)),C=c(g).then((()=>c(h))).then((()=>c(b)));Promise.all([y,C]).then((t=>{const e=t[0];let a=e.el;a||(a="#app"),d(a)&&Chat.init(e)}))},vzhooh:function({parentSelector:t="#vzhooh-wrapper",layout:e={},clientId:a,playerId:s,chatId:i,confSrcTemplate:o,forceConfigRequest:n,test:c,commonOverrides:d=!0,loadPlayerArgs:u={},loadChatArgs:p={}}){const m=document.querySelector(t);if(!m)return;m.classList="vzhooh-main";const g={player:null,chat:null},h=Date.now();(s||u.playerId||u.confSrc)&&(g.player={parentId:"player-wrapper-"+h}),(i||p.chatId||p.confSrc)&&(g.chat={parentId:"chat-wrapper-"+h}),m.style.display="flex",m.style.flexDirection="column"===e.direction?"column":"row";const b="number"==typeof e.proportion?e.proportion:65;m.innerHTML=`${g.player?`<div id="${g.player.parentId}" class="vzhooh-app-wrapper" style="flex: 1 1 ${b}%;"></div>`:""}\n    ${g.chat?`<div class="chat-wrapper vzhooh-app-wrapper" style="flex: 1 1 ${100-b}%;"}>\n        <div id="${g.chat.parentId}"></div>\n      </div>`:""}\n    `;const v={clientId:a,confSrcTemplate:o,forceConfigRequest:n,test:c};if(g.player){const t=l.a.all([v,{playerId:s},u,!!d&&{overrideConf:r(a,c)},{overrideConf:{parentId:"#"+g.player.parentId}}]);this.loadPlayer(t),g.player.args=t}if(g.chat){const t=l.a.all([v,{chatId:i},p,{overrideConf:{el:"#"+g.chat.parentId}}]);this.loadChat(t),g.chat.args=t}return g},version:"0.2.5"}}]).default}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.