PageSourceSearch

https://dashboard.cdnvideo.ru/static/js/app.74446350.js

js cdnvideo.ru collected 2026-10-01 10:34:32 UTC 938,011 bytes, 1 lines download raw bytes

1!function(){var t,e,a,s,i,r={60159:function(t,e,a){"use strict";a.d(e,{A:function(){return c}});var s=a(62893),i=a(34445),r=a(33632),n=a(86146),o={__name:"SmartCaptcha",emits:["callBack"],setup(t,{emit:e}){const a=(0,n.D)(),{locale:o}=(0,i.bP)(a),c=(0,s.ref)(null),l=(0,s.computed)((()=>"ru_RU"===o.value?"ru":"en"));async function d(){await(0,r.c4)(),(0,r.ib)(c.value,u,l.value)}function u(t){e("callBack",t)}return(0,s.onMounted)(d),{__sfc:!0,localeStore:a,locale:o,captchaRef:c,captchaLocale:l,emit:e,smartCaptchaInit:d,onCallBack:u}}},c=(0,a(81656).A)(o,(function(){var t=this._self._c;return this._self._setupProxy,t("div",{ref:"captchaRef",staticClass:"smart-captcha"})}),[],!1,null,null,null).exports},46911:function(t,e,a){"use strict";a.d(e,{A:function(){return d}}),a(98992),a(23215),a(81454);var s=a(62893),i=a(10216),r={__name:"CodeInputCell",props:{value:{type:String,default:""},onlyNumbers:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["input"],setup(t,{emit:e}){const a=t,r=(0,s.ref)("");return(0,s.watch)((()=>a.value),(t=>{r.value=t}),{immediate:!0}),{__sfc:!0,props:a,emit:e,currentValue:r,handleInput:function(t){!a.onlyNumbers||/^\d*$/.test(t)?e("input",t):r.value=""},Textbox:i.A}}},n=a(81656),o=(0,n.A)(r,(function(){var t=this._self._c,e=this._self._setupProxy;return t(e.Textbox,{ref:"code-input",attrs:{type:"text",maxlength:"1",disabled:e.props.disabled},on:{input:e.handleInput},model:{value:e.currentValue,callback:function(t){e.currentValue=t},expression:"currentValue"}})}),[],!1,null,null,null).exports;const c={name:"CodeInput"};var l=Object.assign(c,{props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1},length:{type:Number,required:!0},refBasename:{type:String,default:"code_input_cell_"},onlyNumbers:{type:Boolean,default:!0}},emits:["update:value","change","completed"],setup(t,{emit:e}){const a=t,i=(0,s.getCurrentInstance)(),r=(0,s.ref)(Array.from({length:a.length},((t,e)=>a.value?.[e]??"")));(0,s.watch)((()=>[a.value,a.length]),(([t,e])=>{const a=r.value.join("");t===a&&e===r.value.length||(r.value=Array.from({length:e},((e,a)=>t?.[a]??"")))}));const n=t=>{const e=i.proxy.$refs[`${a.refBasename}${t}`];return(Array.isArray(e)?e[0]:e).$refs["code-input"]},c=t=>{t>=0&&t<a.length&&n(t)?.focus()},l=()=>{const t=document.activeElement;for(let e=0;e<a.length;e++){const a=n(e)?.$el;if(a&&(a===t||a.contains(t)))return e}return-1},d=()=>{const t=r.value.join("");e("update:value",t),e("change",t),r.value.every((t=>""!==t))&&e("completed",t)};return{__sfc:!0,props:a,emit:e,instance:i,cells:r,getRef:n,focusCell:c,getFocusedIndex:l,handleChange:d,handleKeydown:t=>{const e=l();"Backspace"===t.key&&!r.value[e]&&e>0&&c(e-1)},handleInput:(t,e)=>{if(t<0||e.length>1)return;const s=[...r.value];s[t]=e,r.value=s,d(),1===e.length&&t<a.length-1&&c(t+1)},handlePaste:t=>{t.preventDefault();const e=(t.clipboardData?.getData("text")||"").replace(/\s/g,""),s=(a.onlyNumbers?e.replace(/\D/g,""):e).slice(0,a.length);if(!s)return;const i=r.value.map(((t,e)=>s[e]??""));r.value=i;const n=Math.min(s.length,a.length-1);c(n),d()},CodeInputCell:o}}}),d=(0,n.A)(l,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"flex gap justify-center code-input-base-component",on:{paste:a.handlePaste,keydown:a.handleKeydown}},t._l(Array(a.props.length).fill(null),(function(s,i){return e(a.CodeInputCell,{key:`${t.refBasename}${i}`,ref:`${t.refBasename}${i}`,refInFor:!0,staticClass:"code-input-cell",attrs:{value:a.cells[i],disabled:t.disabled,onlyNumbers:t.onlyNumbers},on:{input:t=>a.handleInput(i,t)}})})),1)}),[],!1,null,null,null).exports},4311:function(t,e,a){"use strict";var s=a(12556),i=a(3014),r=(a(14462),(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null));e.A=r.exports},56973:function(t,e,a){"use strict";var s=a(28920),i=a(27008),r=(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null);e.A=r.exports},58470:function(t,e,a){"use strict";var s=a(53904),i=a(28341),r=(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null);e.A=r.exports},29910:function(t,e,a){"use strict";var s=a(75593),i=a(62037),r=(a(6991),(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null));e.A=r.exports},30574:function(t,e,a){"use strict";var s=a(78644),i=a(48293),r=(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null);e.A=r.exports},11384:function(t,e,a){"use strict";var s=a(67883),i=a(57619),r=(a(53692),(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null));e.A=r.exports},21278:function(t,e,a){"use strict";var s=a(85766),i=a(70801),r=(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null);e.A=r.exports},72664:function(t,e,a){"use strict";var s=a(72084),i=a(57727),r=(a(50550),(0,a(81656).A)(i.A,s.X,s.Y,!1,null,"d123e694",null));e.A=r.exports},89669:function(t,e,a){"use strict";var s=a(45160),i=a(20976),r=(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null);e.A=r.exports},49271:function(t,e,a){"use strict";a.d(e,{A:function(){return i}}),a(44114);var s={name:"ArrayValueTextField",components:{Textbox:a(10216).A},props:{disabled:{type:Boolean,default:!1},value:{type:Array,required:!0,default:()=>[]},placeholder:{type:String,default:""}},data(){return{localTextValue:this.value.join("\n")}},methods:{emitValue(t){this.$emit("input",t)}},computed:{fieldValue:{get(){return this.localTextValue},set(t){this.localTextValue=t;const e=[];for(let a of t.split("\n"))a&&e.push(a.trim());this.emitValue(e)}}},watch:{value:function(t,e){!t.length&&e.length&&(this.fieldValue="")}}},i=(0,a(81656).A)(s,(function(){var t=this;return(0,t._self._c)("Textbox",{attrs:{multiline:!0,disabled:t.disabled,placeholder:t.placeholder},model:{value:t.fieldValue,callback:function(e){t.fieldValue=e},expression:"fieldValue"}})}),[],!1,null,null,null).exports},46004:function(t,e,a){"use strict";a.d(e,{A:function(){return k}});var s=a(62893),i=a(46894),r=a(7461),n=a(74159),o=(a(98992),a(54520),a(16100)),c={__name:"ContactUsContentBlock",props:{title:{type:String,required:!1}},setup(t){return{__sfc:!0}}},l=a(81656),d=(0,l.A)(c,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[t._t("header",(function(){return[t.title?e("h3",{staticClass:"text-semibold text-underline margin-bottom-2x"},[t._v(" "+t._s(t.title)+" ")]):t._e()]})),e("div",{staticClass:"flex column gap"},[t._t("default")],2)],2)}),[],!1,null,null,null).exports,u={__name:"ContactManager",props:{title:{type:String,default:"Персональный менеджер"}},setup(t){const e=(0,s.inject)("$user"),a=(0,s.computed)((()=>[e.projectManagerInfo?.first_name,e.projectManagerInfo?.last_name].filter(
1Boolean).join(" "))),i=(0,s.computed)((()=>e.projectManagerInfo?.phone)),r=(0,s.computed)((()=>i.value?`tel:${i.value}`:null)),n=(0,s.computed)((()=>e.projectManagerInfo?.email)),c=(0,s.computed)((()=>n.value?`mailto:${n.value}`:null)),l=(0,s.computed)((()=>e.projectManagerInfo?.telegram)),u=(0,s.computed)((()=>l.value?"https://telegram.me/"+l.value.slice(1):null));return{__sfc:!0,user:e,managerName:a,managerPhone:i,managerPhoneHref:r,managerEmail:n,managerEmailHref:c,managerTelegram:l,managerTelegramHref:u,Telegram:o.A,ContactUsContentBlock:d}}},m=(0,l.A)(u,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.ContactUsContentBlock,{attrs:{title:t.$t(t.title)}},[e("p",{staticClass:"text-blue text-regular"},[t._v(" "+t._s(a.managerName)+" ")]),a.managerEmail?e("a",{staticClass:"text-blue text-regular block",attrs:{href:a.managerEmailHref}},[t._v(" "+t._s(a.managerEmail)+" ")]):t._e(),a.managerPhone?e("a",{staticClass:"text-blue text-regular",attrs:{href:a.managerPhoneHref}},[t._v(" "+t._s(a.managerPhone)+" ")]):t._e(),a.managerTelegram?e("div",{staticClass:"flex align-center gap"},[e(a.Telegram),e("a",{staticClass:"text-blue text-regular block",attrs:{href:a.managerTelegramHref,target:"_blank"}},[t._v(" "+t._s(a.managerTelegram)+" ")])],1):t._e()])}),[],!1,null,null,null).exports,p={__name:"ContactSales",props:{title:{type:String,default:"Нужен менеджер"}},setup(t){return{__sfc:!0,Telegram:o.A,SALES_PHONE:n.Og,SALES_EMAIL:n.Gi,SALES_TG_BOT:n.TM,ContactUsContentBlock:d}}},h=(0,l.A)(p,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.ContactUsContentBlock,{attrs:{title:t.$t(t.title)}},[e("a",{staticClass:"text-blue text-regular block",attrs:{href:"mailto:"+a.SALES_EMAIL}},[t._v(" "+t._s(a.SALES_EMAIL)+" ")]),e("a",{staticClass:"text-blue text-regular",attrs:{href:"tel:"+a.SALES_PHONE}},[t._v(" "+t._s(a.SALES_PHONE)+" ")]),e("div",{staticClass:"flex align-center gap"},[e(a.Telegram),e("a",{staticClass:"text-blue text-regular block",attrs:{href:"https://t.me/"+a.SALES_TG_BOT,target:"_blank"}},[t._v(" "+t._s(a.SALES_TG_BOT)+" ")])],1)])}),[],!1,null,null,null).exports,g={__name:"ContactSupportCdn",props:{title:{type:String,default:"Техническая поддержка по решениям CDN"}},setup(t){const e=(0,s.inject)("$branding"),a=(0,s.computed)((()=>e.supportContacts().phone)),i=(0,s.computed)((()=>a.value?`tel:${a.value}`:null)),r=(0,s.computed)((()=>e.supportContacts().emails));return{__sfc:!0,branding:e,supportPhone:a,supportPhoneHref:i,supportEmail:r,ContactUsContentBlock:d}}},v=(0,l.A)(g,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.ContactUsContentBlock,{attrs:{title:t.$t(t.title)}},[t._l(a.supportEmail,(function(a){return e("a",{key:a,staticClass:"text-blue text-regular block",attrs:{href:"mailto:"+a}},[t._v(" "+t._s(a)+" ")])})),a.supportPhone?e("a",{staticClass:"text-blue text-regular",attrs:{href:a.supportPhoneHref}},[t._v(" "+t._s(a.supportPhone)+" ")]):t._e()],2)}),[],!1,null,null,null).exports,f={__name:"ContactSupportS3",props:{title:{type:String,default:"Техническая поддержка по виртуальным машинам и S3"}},setup(t){return{__sfc:!0,TECH_SUPPORT_S3_EMAIL:n.lB,ContactUsContentBlock:d}}},x=(0,l.A)(f,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.ContactUsContentBlock,{attrs:{title:t.$t(t.title)}},[e("a",{staticClass:"text-blue text-regular block",attrs:{href:"mailto:"+a.TECH_SUPPORT_S3_EMAIL}},[t._v(" "+t._s(a.TECH_SUPPORT_S3_EMAIL)+" ")])])}),[],!1,null,null,null).exports,b=a(13855),_=a(59639),C=a(76458),w=a(10216),y={__name:"FeedBackForm",props:{data:{type:Object,required:!0,default:()=>({type:n.zD.PHONE.value,phone:"",email:""})},isValid:{type:Boolean,default:!1}},emits:["update:data","update:isValid"],setup(t,{emit:e}){const a=t,i=(0,s.reactive)({...a.data});(0,s.watch)((()=>a.data),(t=>{Object.assign(i,t)}),{deep:!0}),(0,s.watch)(i,(t=>{e("update:data",{...t})}),{deep:!0});const r=(0,s.computed)((()=>{let t=i.type;return{phone:{required:(0,b.F5)(t===n.zD.PHONE.value),phoneValid(t){return!t||/^\+?[\d\-\s()]{9,}$/.test(t)}},email:{required:(0,b.F5)(t===n.zD.EMAIL.value),email:b.Rp,isASCII:C.kj}}})),o=(0,_.Ay)(r,i);return(0,s.watch)((()=>
1o.value.$invalid),(t=>{e("update:isValid",!t)}),{immediate:!0}),{__sfc:!0,props:a,emit:e,formState:i,rules:r,v$:o,email:b.Rp,isASCII:C.kj,Textbox:w.A,CONTACT_TYPES:n.zD}}},$=(0,l.A)(y,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"flex column gap-2x"},[e("div",{staticClass:"row align-center"},[e("div",{staticClass:"col-xs-4 flex gap align-center"},[e("el-radio",{staticClass:"custom",attrs:{label:a.CONTACT_TYPES.PHONE.value},model:{value:a.formState.type,callback:function(e){t.$set(a.formState,"type",e)},expression:"formState.type"}},[t._v(" "+t._s(t.$t(a.CONTACT_TYPES.PHONE.label))+" ")])],1),e("div",{staticClass:"col-xs"},[e("div",{staticClass:"relative"},[e(a.Textbox,{attrs:{v$:a.v$,placeholder:t.$t("Укажите номер телефона")},model:{value:a.formState.phone,callback:function(e){t.$set(a.formState,"phone",e)},expression:"formState.phone"}}),a.v$.phone.phoneValid.$invalid?e("span",{staticClass:"input-error"},[t._v(" "+t._s(t.$t("Неправильный формат телефона"))+" ")]):t._e()],1)])]),e("div",{staticClass:"row align-center margin-bottom-3x"},[e("div",{staticClass:"col-xs-4 flex gap align-center"},[e("el-radio",{staticClass:"custom",attrs:{label:a.CONTACT_TYPES.EMAIL.value},model:{value:a.formState.type,callback:function(e){t.$set(a.formState,"type",e)},expression:"formState.type"}},[t._v(" "+t._s(t.$t(a.CONTACT_TYPES.EMAIL.label))+" ")])],1),e("div",{staticClass:"col-xs"},[e("div",{staticClass:"relative"},[e(a.Textbox,{attrs:{v$:a.v$,placeholder:t.$t("Укажите адрес электронной почты")},model:{value:a.formState.email,callback:function(e){t.$set(a.formState,"email",e)},expression:"formState.email"}}),a.v$.email.email.$invalid||a.v$.email.isASCII.$invalid?e("span",{staticClass:"input-error"},[t._v(" "+t._s(t.$t("Неправильный формат email"))+" ")]):t._e()],1)])])])}),[],!1,null,null,null).exports,S={__name:"ContactUsModal",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"Связаться с нами"},showContact:{type:Object,default:()=>({manager:!1,sales:!0,supportSdn:!0,supportS3:!1})},showFeedback:{type:Boolean,default:!1},setUserContact:{type:Boolean,default:!1}},emits:["close","sendFeedback"],setup(t,{emit:e}){const a=t,o=(0,s.inject)("$user"),c=(0,s.inject)("$branding"),l=(0,s.computed)((()=>o.isAuth()?"Тарифы, платежи, разблокировка аккаунта":"Нужен менеджер")),u=(0,s.computed)((()=>o.isAuth()&&c.isCurrentCompany("CDNvideo")?"Техническая поддержка по решениям CDN":"Техническая поддержка")),p=(0,s.ref)({type:n.zD.PHONE.value,phone:"",email:""}),g=(0,s.ref)(!1);function f(){o.accountPhone&&(p.value.phone=o.accountPhone),o.personEmail&&(p.value.email=o.personEmail)}return(0,s.onMounted)((()=>{a.setUserContact&&f()})),{__sfc:!0,user:o,branding:c,props:a,emit:e,titleSalesContact:l,titleSupportSdnContact:u,formData:p,isFormValid:g,close:function(){e("close")},handleSendFeedback:function(){g.value&&e("sendFeedback",p.value)},setFormDefaultData:f,Btn:i.A,PureModal:r.A,ContactManager:m,ContactSales:h,ContactSupportCdn:v,ContactSupportS3:x,ContactUsContentBlock:d,FeedBackForm:$}}},k=(0,l.A)(S,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.PureModal,{staticClass:"contact-us-modal",attrs:{visible:t.visible},on:{close:a.close},scopedSlots:t._u([{key:"header",fn:function(){return[e("h2",{staticClass:"text-header-2"},[t._v(t._s(t.$t(t.title)))])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"flex column gap-3x"},[t._t("default"),t.showContact.manager?e(a.ContactManager):t._e(),t.showContact.sales?e(a.ContactSales,{attrs:{title:a.titleSalesContact}}):t._e(),t.showContact.supportSdn?e(a.ContactSupportCdn,{attrs:{title:a.titleSupportSdnContact}}):t._e(),t.showContact.supportS3?e(a.ContactSupportS3):t._e(),t.showFeedback?e(a.ContactUsContentBlock,{staticClass:"contact-us-modal__content-block",attrs:{title:t.$t("Мы можем связаться с Вами")}},[e(a.FeedBackForm,{attrs:{data:a.formData,isValid:a.isFormValid},on:{"update:data":function(t){a.formData=t},"update:isValid":function(t){a.isFormValid=t}}})],1):t._e()],2)]},proxy:!0},t.showFeedback?{key:"footer",fn:function(){return[e(a.Btn,{attrs:{disabled:!a.isFormValid},on:{click:a.handleSendFeedback}},[t._v(t._s(t.$t("Отправить заявку"))+" ")]),e(a.Btn,{attrs:{type:"secondary"},on:{click:a.close}},[t._v(t._s(t.$t("Отмена")))])]},proxy:!0}:null],null,!0)})}),[],!1,null,null,null).exports},42729:function(t,e,a){"use strict";a.d(e,{A:function(){return c}});var s=a(10216),i=a(46894),r=a(33278),n=a(80440),o={name:"FormFooter",components:{Textbox:s.A,Btn:i.A,Spinner:n.A},props:{buttonText:{type:String,default:"Заказать услугу"},isSending:{type:Boolean,default:!1}},data(){return{comment:"",feedbackPhone:""}},created(){this.feedbackPhone=this.$user.accountPhone},validations:{feedbackPhone:{required:r.mw,phone(t){return/^\+?[\d\-\s()]{9,}$/.test(t)}}},methods:{send(){let t={comment:this.comment,phone:this.feedbackPhone};this.$emit("send",t)}}},c=(0,a(81656).A)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"footer form-footer"},[e("div",{staticClass:"row row-gap-3x margin-bottom-3x"},[e("div",{staticClass:"col-sm-6 comment"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Дополнительные пожелания:")))]),e("textbox",{attrs:{maxlength:"1000",multiline:!0,placeholder:t.$t("Введите текст тут...")},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],1),e("div",{staticClass:"col-sm-6 feedback-phone"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Телефон для обратной связи:")))]),e("textbox",{attrs:{name:"feedbackPhone",maxlength:"20",placeholder:t.$t("Введите номер телефона...")},model:{value:t.feedbackPhone,callback:function(e){t.feedbackPhone=e},expression:"feedbackPhone"}}
1),t.$v.feedbackPhone.$invalid?e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Неправильный формат телефона")))]):t._e()],1)]),t.isSending?e("div",{staticClass:"flex full-width 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.$v.$invalid},on:{click:t.send}},[t._v(t._s(t.$t(t.buttonText)))])],1)}),[],!1,null,null,null).exports},11793:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"FormTextBlock",components:{Textbox:a(10216).A},props:{value:{type:[String,Number],required:!0},label:{type:String,required:!0},hint:{type:String},onlyNumbers:{type:Boolean,default:!1},placeholder:{type:String},multiline:{type:Boolean,default:!1}},data(){return{text:this.value}},computed:{tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}}},watch:{text(){this.$emit("input",this.text)}}},i=(0,a(81656).A)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"margin-bottom"},[e("label",[t._v(t._s(t.$t(t.label)))]),t.hint?e("Tooltip",{attrs:{content:t.$t(t.hint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),t.onlyNumbers?e("textbox",{attrs:{type:"number",placeholder:t.$t(t.placeholder),multiline:t.multiline},model:{value:t.text,callback:function(e){t.text=t._n(e)},expression:"text"}}):e("textbox",{attrs:{placeholder:t.$t(t.placeholder),multiline:t.multiline},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1)}),[],!1,null,"4e3910a6",null).exports},40399:function(t,e,a){"use strict";a.d(e,{A:function(){return n}});var s=a(87e3);const i=s.PhoneNumberUtil.getInstance();var r={data(){return{}},methods:{clearErrors(t,e,a=""){let s=e.split(".");if(3===s.length){let e=s.findIndex((t=>-1!==t.indexOf("each")));if(-1!==e){let a=s[e].match(/\d+/);1===e?(this.$v[s[0]].$each[a][s[2]].$reset(),this[s[0]][a][s[2]]=t):(this.$v[s[0]][s[1]].$each[a].$reset(),this[s[0]][s[1]][a]=t)}else this.$v[s[0]][s[1]][s[2]].$reset(),this[s[0]][s[1]][s[2]]=t}else 2===s.length?(this.$v[s[0]][s[1]].$reset(),this[s[0]][s[1]]=t):1===s.length&&s[0]&&(this.$v[s[0]].$reset(),this[s[0]]=t);this.responseErrorMessage=""},applyValue(t,e,a=""){"number"!=typeof t&&(t=t.trim());let s=e.split(".");if(3===s.length){let e=s.findIndex((t=>-1!==t.indexOf("each")));if(-1!==e){let a=s[e].match(/\d+/);1===e?this[s[0]][a][s[2]]=t:this[s[0]][s[1]][a]=t}else this[s[0]][s[1]][s[2]]=t}else 2===s.length?this[s[0]][s[1]]=t:1===s.length&&s[0]&&(this[s[0]]=t)},handleChangePhone(t,e){let a;if(t&&(a=/^[0-9+ ()-]*$/.test(t)?t:t.replace(/[^0-9+ ()-]/g,""),"8"===a[0]?a="+7"+a.substring(1):"+"!==a[0]&&a.length&&(a="+"+a),a.length>1))try{const t=i.parse(a);a=i.format(t,s.PhoneNumberFormat.INTERNATIONAL)}catch(t){}this.clearErrors(a,e)}}},n=(0,a(81656).A)(r,void 0,void 0,!1,null,null,null).exports},63344:function(t,e,a){"use strict";var s=a(81839),i=(0,a(81656).A)(s.A,void 0,void 0,!1,null,null,null);e.A=i.exports},76445:function(t,e,a){"use strict";var s=a(60973),i=a(89266),r=(a(91726),(0,a(81656).A)(i.A,s.X,s.Y,!1,null,"9b4a2508",null));e.A=r.exports},44107:function(t,e,a){"use strict";a.d(e,{A:function(){return r}}),a(98992),a(54520),a(72577),a(81454);var s=a(35325),i={data(){return{formName:"",dataIsSending:!1}},methods:{getCheckboxValuesAsString(t){return t.filter((t=>t.value)).map((t=>t.name)).join(", ")},findElemFromArrayOfObject(t,e){return t.find((t=>t.value===e))},sendFormDataToAmoCrmAndEmail(t){var e;this.dataIsSending=!0,this.sendDataToCrm(t).then((()=>{e=!0})).catch((t=>{e=!1})).finally((()=>{this.$api.orderService({account:this.$user.accountName,isSentToCrm:e},{service:this.formName}).then((t=>{t.data&&200===t.data.status&&"Ok"===t.data.message?this.$toast.show({text:"Заявка успешно отправлена. Мы свяжемся с вами для уточнения деталей."}):this.$toast.show({text:"Ошибка при отправке заявки. Попробуйте позже или свяжитесь с поддержкой. Приносим извинения за доставленные неудобства."})})).catch((t=>{this.$toast.show({text:"Ошибка при отправке заявки. Попробуйте позже или свяжитесь с поддержкой. Приносим извинения за доставленные неудобства."})})).finally((()=>{this.dataIsSending=!1}))}))},sendDataToCrm(t,{account_name:e=this.$user.accountName,client_mail:a=this.$user.personEmail,client_tel:i=this.$user.accountPhone||"-",client_type:r=(this.$user.isCDN1()?"CDN1":"CDN2"),company:n=this.$branding.company.name}){let o={account_name:e,client_mail:a,client_tel:i,client_type:r,company:n};return Object.assign(o,t),o.client_mail_custom||(o.client_mail_custom=this.$user.personEmail),(0,s.A)(o)}}},r=(0,a(81656).A)(i,void 0,void 0,!1,null,null,null).exports},46894:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"Btn",components:{PaidServiceConfirmation:a(21958).A},props:{type:{type:String,default:"primary"},color:String,size:{type:String,default:"large"},disabled:Boolean,requestPaidServiceConfirmation:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},stroked:{type:Boolean,default:!1},noOverrideSvgFill:{type:Boolean,default:!1}},methods:{click(t){this.disabled||(this.requestPaidServiceConfirmation?this.$refs.paidServiceConfirmation.togglePaidServiceConfirmationDialog():this.emitClick(t))},emitClick(t){this.$emit("click",t)}},computed:{classes(){return[this.type,this.color,"link"===this.type?"text-menu":"text-button","icon"===this.type&&this.size,{stroked:!0===this.stroked,"flex gap":"option"===this.type||"link"===this.type,"align-center":"option"===this.type||"link"===this.type,"full-width":this.fullWidth||"option"===this.type,"corners-rounded":"primary"===this.type||"secondary"===this.type||"option"===this.type,"box-shadow":"link"!==this.type&&"option"!==this.type&&!("icon"===this.type&&"small"===this.size),disabled:this.disabled,"no-override-svg-fill":this.noOverrideSvgFill}]}}},i=(0,a(81656).A)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"button-wrapper button-component"},[e("button",{staticClass:"button",class:t.classes,on:{click:t.click}},["primary"===t.type?e("div",{staticClass:"button-darken-mask"}):t._e(),t._t("default")],2),t.requestPaidServiceConfirmation?e("PaidServiceConfirmation",{ref:"paidServiceConfirmation",on:{afterPaidServiceConfirmed:t.emitClick}
1}):t._e()],1)}),[],!1,null,null,null).exports},75939:function(t,e,a){"use strict";var s=a(14956),i=a(32176),r=(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null);e.A=r.exports},7521:function(t,e,a){"use strict";a.d(e,{A:function(){return o}}),a(44114),a(98992),a(54520),a(72577),a(3949),a(81454);var s=a(95093),i=a.n(s);const r={"Янв":"Jan","Фев":"Feb","Мар":"Mar","Апр":"Apr","Май":"May","Июн":"Jun","Июл":"Jul","Авг":"Aug","Сен":"Sep","Окт":"Oct","Ноя":"Nov","Дек":"Dec"};var n={name:"DateTimePicker",data(){return{date:void 0,inputEmit:!1,clear:!1,keys:[],defaultTime:void 0,disableTimeInputs:!1,isMounted:!1,observer:void 0}},props:{value:{type:[String,Array,Object],required:!0},type:{type:String,default:"datetime"},disabled:{type:Boolean,default:!1},withSeconds:{type:Boolean,default:!1},error:{type:Boolean,default:!1},pickerOptions:{type:Object,default:function(){return{}}},fixedTimeZone:{type:String,default:""},statPicker:{type:Boolean,default:!1},range:{type:String,default:""},ranges:{type:Array,default:function(){return[]}},appendToBody:{type:Boolean,default:!1}},created(){this.init()},mounted(){this.isMounted=!0,window.addEventListener("resize",this.calculatePopperOffset)},beforeDestroy(){window.removeEventListener("resize",this.calculatePopperOffset)},computed:{format(){return{valueFormat:this.withSeconds?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd HH:mm",format:this.withSeconds?"dd MMM yyyy HH:mm:ss":"dd MMM yyyy HH:mm"}},isPickerVisible(){return this.isMounted&&this.$refs.dateTimePicker.pickerVisible}},methods:{init(){let t,e;if(!this.fixedTimeZone){t=new Date(this.utcDateTimeToPersonTz((new Date).toISOString(),"YYYY-MM-DD HH:mm:ss"));let a=new Date(i().utc().format("YYYY-MM-DD HH:mm:ss")),s=Math.floor((t-a)/36e5);e=(s>9?s:"0"+s)+":00:00"}if("datetimerange"===this.type){Array.isArray(this.value)?this.date=this.value:this.date=Object.values(this.value),this.date=this.date.map((t=>this.dateFormat(t))).sort(((t,e)=>new Date(t)-new Date(e)));let t=this.getDayDifference(new Date(this.date[0]),new Date(this.date[1]));this.disableTimeInputs=t>3,this.defaultTime=[e||"00:00:00",e||"00:00:00"]}else this.date=this.dateFormat(this.value),this.defaultTime=e||"00:00:00"},dateFormat(t){return t?i()(t).format("YYYY-MM-DD HH:mm:ss"):""},handleInput(){null===this.date&&(this.date="datetimerange"===this.type?[]:"",this.clear=!0);let t=this.date;"datetimerange"===this.type&&this.statPicker&&this.getDayDifference(new Date(this.date[0]),new Date(this.date[1]))>3&&(this.date=this.date.map(((t,e)=>t.replace(/\d{2}:\d{2}/,this.defaultTime[e])))),"datetimerange"!==this.type||Array.isArray(this.value)||(t={},t.start=this.date[0]||null,t.end=this.date[1]||null),this.inputEmit=!0,this.$emit("input",t),this.$emit("change",t)},handleBlur(t){if(this.inputEmit)this.inputEmit=!1;else{let e=[],a=this.withSeconds?"DD MMM YYYY HH:mm:ss":"DD MMM YYYY HH:mm",s=this.withSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if("datetimerange"!==this.type||this.clear){if(!this.clear){let e=[i()(t.$refs.reference.$refs.input.value,"DD.MM.YYYY"),i()(t.$refs.reference.$refs.input.value,a)].find((t=>t.isValid()));e&&(this.date=e.format(s))}}else{let n=[],o={},c=[],l=t.picker.$children.filter((t=>Object.keys(t.$refs)&&-1!==Object.keys(t.$refs).indexOf("input")));t.$refs.reference.childNodes.forEach((t=>{"INPUT"===t.tagName&&c.push(t)})),c.forEach(((t,e)=>{i()(t.value,"DD.MM.YYYY").isValid()?n[e]=i()(t.value,"DD.MM.YYYY"):n[e]=i()(t.value,a)}));for(let t=0;t<l.length;t+=2){let e=l[t].$refs.input.value+" "+l[t+1].$refs.input.value;for(const t in r)if("ru_RU"===this.$i18n.locale&&e.includes(t)){e=e.replace(t,r[t]);break}let o=i()(e,a),c=n[t/2].isSame(i()(this.date[t/2],s))||!n[t/2].isValid(),d=!n[t/2].isSame(o)||!n[t/2].isValid();c&&d&&(n[t/2]=o)}o={start:n[0],end:n[1]},o.start.isValid()&&(e[0]=o.start.format(s),o.end.isValid()||(e[1]=o.start.add(1,"days").format(s))),o.end.isValid()&&(e[1]=o.end.format(s),o.start.isValid()||(e[0]=o.end.subtract(1,"days").format(s))),0!==e.length&&(this.date=e)}this.clear=!1;let n=this.date;"datetimerange"!==this.type||Array.isArray(this.value)||(n={},n.start=this.date[0]||null,n.end=this.date[1]||null),this.$emit("input",n),this.$emit("change",n)}},handleFocus(){this.$nextTick((()=>{this.$nextTick(this.calculatePopperOffset)}))},calculatePopperOffset(){const t=this.$refs.dateTimePicker.popperElm,e=this.getContainerElement(this);let a;if(e){const t=e.getBoundingClientRect();a=t.width+t.left}else a=window.innerWidth||document.documentElement.clientWidth;if(t){const e=t.getBoundingClientRect();let s=null;if(e.left+e.width>=a)s=-1*(e.left+e.width-a+24);else if(this.$refs.dateTimePicker.pickerVisible){const i=t.style.transform&&parseInt(t.style.transform.match(/\d+/));(!t.style.transform||e.left+e.width+i<a)&&(s=0)}null!==s&&(t.style.transform=`translateX(${s}px)`)}},getContainerElement(t){if(t.$parent)return t.$refs["scrolled-content"]?t.$refs["scrolled-content"]:this.getContainerElement(t.$parent)},getDayDifference(t,e){return Math.floor((e-t)/864e5)},handlePick(t){}}
1,watch:{value:{handler:function(){this.init()},deep:!0},range:function(){const t=document.querySelector(".el-picker-panel__body-wrapper"),e=t&&t.querySelector(".range-container");if(e&&this.range)for(let t=0;t<e.children.length;t++)this.range===e.children[t].getAttribute("data-range-name")?e.children[t].firstChild.className+=" text-underline":e.children[t].firstChild.className=e.children[t].firstChild.className.replace("text-underline","")},isPickerVisible:function(t){t?this.$nextTick((()=>{const t=this.$refs.dateTimePicker.picker.$children.filter((t=>Object.keys(t.$refs).includes("input")));this.observer=new MutationObserver((([{target:{value:t}},{target:{value:e}}])=>{let a=new Date(t),s=new Date(e);"ru_RU"===this.$i18n.locale&&Object.keys(r).forEach((i=>{e.includes(i)&&(s=new Date(e.replace(i,r[i]))),t.includes(i)&&(a=new Date(t.replace(i,r[i])))})),this.disableTimeInputs=this.getDayDifference(a,s)>3})),this.observer.observe(t[0].$refs.input,{attributes:!0}),this.observer.observe(t[2].$refs.input,{attributes:!0})})):(this.observer.disconnect(),this.observer=void 0)}}},o=(0,a(81656).A)(n,(function(){var t=this;return(0,t._self._c)("el-date-picker",{ref:"dateTimePicker",staticClass:"custom",class:{error:t.error,disableTimeInputs:t.statPicker&&t.disableTimeInputs},attrs:{type:t.type,format:t.format.format,"value-format":t.format.valueFormat,disabled:t.disabled,clearable:!1,"range-separator":"-",placeholder:t.$t("дд ммм. гггг, чч:мм"),"start-placeholder":t.$t("дд ммм. гггг, чч:мм"),"end-placeholder":t.$t("дд ммм. гггг, чч:мм"),"popper-class":"datetime-custom","unlink-panels":!0,"picker-options":t.pickerOptions,"default-time":t.defaultTime,"append-to-body":t.appendToBody},on:{change:t.handleInput,blur:t.handleBlur,focus:t.handleFocus,pick:t.handlePick},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})}),[],!1,null,null,null).exports},359:function(t,e,a){"use strict";var s=a(34880),i=a(94968),r=(a(83421),a(14111),(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null));e.A=r.exports},21958:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"PaidServiceConfirmation",components:{},data(){return{isPaidServiceConfirmationDialogVisible:!1}},methods:{togglePaidServiceConfirmationDialog(){this.isPaidServiceConfirmationDialogVisible=!this.isPaidServiceConfirmationDialogVisible},afterPaidServiceConfirmed(){this.togglePaidServiceConfirmationDialog(),this.$emit("afterPaidServiceConfirmed")}}},i=(0,a(81656).A)(s,(function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"custom",attrs:{title:t.$t("Платная опция/услуга"),width:"30%",visible:t.isPaidServiceConfirmationDialogVisible},on:{"update:visible":function(e){t.isPaidServiceConfirmationDialogVisible=e}}},[e("div",{staticClass:"description"},[e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Опция/услуга, которую вы планируете подключить, является платной.")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Актуальную цену можно уточнить у менеджера")))]),e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t('Если вы согласны, то нажмите кнопку "Подтвердить".')))])]),e("template",{slot:"footer"},[e("div",{staticClass:"flex justify-between align-center"},[e("el-button",{staticClass:"primary",on:{click:t.afterPaidServiceConfirmed}},[t._v(t._s(t.$t("Подтвердить")))]),e("el-button",{staticClass:"secondary",attrs:{type:"secondary"},on:{click:t.togglePaidServiceConfirmationDialog}},[t._v(t._s(t.$t("Отмена")))])],1)])],2)}),[],!1,null,"35d17dec",null).exports},7461:function(t,e,a){"use strict";var s=a(30924),i=a(16896),r=(a(14558),a(83294),(0,a(81656).A)(i.A,s.X,s.Y,!1,null,null,null));e.A=r.exports},98250:function(t,e,a){"use strict";function s(t,e){if(t.$parent)return t.$refs[e]?t.$refs[e]:s(t.$parent,e)}a.d(e,{A:function(){return o}});var i={name:"FakeBlock",props:{type:{type:String,default:"",required:!0}},mounted(){this.init(),window.addEventListener("resize",this.init)},beforeDestroy(){window.removeEventListener("resize",this.init)},methods:{init(){let t;"header"===this.type?t=s(this,"section-header"):"footer"===this.type&&(t=s(this,"section-footer")),t&&(this.$refs["fake-block"].style.height=t.scrollHeight+"px")}},watch:{$route:function(){this.init()}}},r=a(81656),n={name:"Scrolled",components:{FakeBlock:(0,r.A)(i,(function(){return(0,this._self._c)("div",{ref:"fake-block",staticClass:"fake-block"})}),[],!1,null,"5e8f9618",null).exports}},o=(0,r.A)(n,(function(){var t=this._self._c;return t("div",{staticClass:"scrolled grow flex column overflow-scroll no-scroll-bar full-height"},[t("div",{ref:"scrolled-content",staticClass:"container padding-top-3x"},[t("FakeBlock",{attrs:{type:"header"}}),this._t("default"),t("FakeBlock",{attrs:{type:"footer"}})],2)])}),[],!1,null,null,null).exports},45520:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"SectionNav",props:{links:{type:Array,required:!0}},methods:{isTargetMatched({name:t,params:e}){if(this.$route.name===t)return!0;const{route:{matched:a}}=this.$router.resolve({name:t,params:e});if(!a.length)return!1;const s=a[1];return this.$route.matched[1].path===s.path}}},i=(0,a(81656).A)(s,(function(){var t=this,e=t._self._c;return e("nav",{ref:"section-nav",staticClass:"section-nav flex padding-top-2x padding-bottom-2x wrap"},t._l(t.links,(function({text:a,to:s,callback:i,href:r},n){return e("div",{key:n,staticClass:"nav-link-wrapper corners-rounded overflow-hidden text-menu text-nowrap"},[s?e("router-link",{staticClass:"nav-link",attrs:{to:s,"active-class":t.isTargetMatched(s)?"router-link-active":""}},[t._v(t._s(t.$t(a)))]):i?e("div",{staticClass:"nav-link",on:{click:function(t){return i()}}},[t._v(t._s(t.$t(a)))]):r?e("a",{staticClass:"nav-link",attrs:{href:r,target:"_blank"}},[t._v(t._s(t.$t(a)))]):t._e()],1)})),0)}),[],!1,null,"4d7c8fee",null).exports},80440:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"Spinner",props:{adaptiveHeight:{type:Boolean,default:!1}},data(){return{spinnerHeight:0}},computed:{spinnerStyles(){return{"--spinner-size":`${this.adaptiveHeight?this.spinnerHeight:60}px`}}},mounted(){this.spinnerHeight=this.$refs["spinner-wrapper"].getBoundingClientRect().height}},i=(0,a(81656).A)(s,(function(){var t=this._self._c;return t("div",{ref:"spinner-wrapper",staticClass:"spinner__wrapper"},[t("div",{staticClass:"spinner",style:this.spinnerStyles},[t("div",{staticClass:"spinner__item"}),t("div",{staticClass:"spinner__item"}),t("div",{staticClass:"spinner__item"}),t("div",{staticClass:"spinner__item"}),t("div",{staticClass:"spinner__item"})]),t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[t("defs",[t("filter",{attrs:{id:"goo"}},[t("fegaussianblur",{attrs:{in:"SourceGraphic",stddeviation:"10",result:"blur"}}
1,[t("fecolormatrix",{attrs:{in:"blur",mode:"matrix",values:"1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 18 -7",result:"goo"}},[t("feblend",{attrs:{in:"SourceGraphic",in2:"goo"}})],1)],1)],1)])])])}),[],!1,null,null,null).exports},19196:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"Tabs",props:{tab:{type:String},tabs:{type:Array}},methods:{switchTab(t){this.$emit("switchTab",t)}}},i=(0,a(81656).A)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tabs tabs-ui-component flex column-gap-4x wrap"},t._l(t.tabs,(function(a){return e("div",{staticClass:"tab",class:[{"staff-only-hint":a.isStaffTab,active:t.tab===a.name,has_items:"items"in a}],attrs:{hint:t.$t(a.hint)},on:{click:function(e){"items"in a||t.switchTab(a.name)}}},[t._v(t._s(t.$t(a.text))),"items"in a?e("div",{staticClass:"tabitems"},t._l(a.items,(function(a){return e("div",{staticClass:"tabitem",class:{active:t.tab===a.name},on:{click:function(e){return t.switchTab(a.name)}}},[t._v(t._s(t.$t(a.text)))])})),0):t._e()])})),0)}),[],!1,null,null,null).exports},10216:function(t,e,a){"use strict";var s=a(98289),i=a(74011),r=(a(61800),(0,a(81656).A)(i.A,s.X,s.Y,!1,null,"7ce0830d",null));e.A=r.exports},64996:function(t,e,a){"use strict";a.d(e,{A:function(){return i}}),a(98992),a(72577);var s={name:"Toggle",components:{PaidServiceConfirmation:a(21958).A},props:{disabled:{default:!1},equivalent:{default:!1},white:{default:!1},value:{type:[Boolean,String],default:!1},values:{type:Object,default:function(){return{left:!1,right:!0}}},questionMark:{type:Boolean,default:!1},textLeft:{type:String,default:""},textRight:{type:String,default:""},requestPaidServiceConfirmation:{type:Boolean,default:!1},cancelModal:{type:Boolean,default:!1}},data(){return{toggleValue:"",paidValue:{},falseValue:"",paidConfirmed:!1,modalVisible:!1}},created(){this.toggleValue=Object.keys(this.values).find((t=>this.values[t]===this.value)),this.paidValue=Object.keys(this.values).at(-1),this.falseValue=Object.keys(this.values).find((t=>!this.values[t])),this.toggleValue===this.paidValue&&(this.paidConfirmed=!0)},computed:{cssClasses(){return{equivalent:this.equivalent,white:this.white,"question-mark":this.questionMark}}},methods:{onChange(t){this.requestPaidServiceConfirmation&&!this.paidConfirmed?this.$refs.paidServiceConfirmation.togglePaidServiceConfirmationDialog():this.cancelModal&&!this.values[t]?this.toggleModal():(this.$emit("input",this.values[t]),this.$emit("change",this.values[t]),this.changeToggleValue(t))},afterPaidConfirm(){this.paidConfirmed=!0,this.$emit("input",this.values[this.paidValue]),this.$emit("change",this.values[this.paidValue]),this.changeToggleValue(this.paidValue)},afterModalConfirm(){this.toggleModal(),this.$emit("input",this.values[this.falseValue]),this.$emit("cancel",this.values[this.falseValue]),this.$emit("change",this.values[this.falseValue]),this.changeToggleValue(this.falseValue)},changeToggleValue(t){this.toggleValue=Object.keys(this.values).find((e=>this.values[e]===t))},toggleModal(){this.modalVisible=!this.modalVisible}},watch:{value:function(t){this.changeToggleValue(this.value)}}},i=(0,a(81656).A)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"root"},[e("el-switch",{staticClass:"custom text-regular after-paid-allower-label",class:t.cssClasses,attrs:{value:t.toggleValue,"validate-event":!1,disabled:t.disabled,"active-text":t.textRight,"active-value":"right","inactive-text":t.textLeft,"inactive-value":"left",width:34},on:{change:t.onChange}}),e("el-dialog",{staticClass:"custom",attrs:{title:t.$t("Платная опция/услуга"),width:"30%",visible:t.modalVisible},on:{"update:visible":function(e){t.modalVisible=e}}},[e("template",{slot:"title"},[t._t("modal-title")],2),t._t("modal-content"),e("template",{slot:"footer"},[e("div",{staticClass:"flex justify-between align-center"},[e("el-button",{staticClass:"primary",on:{click:t.afterModalConfirm}},[t._v(t._s(t.$t("Подтвердить")))]),e("el-button",{staticClass:"secondary",attrs:{type:"secondary"},on:{click:t.toggleModal}}
1,[t._v(t._s(t.$t("Отмена")))])],1)])],2),t.requestPaidServiceConfirmation?e("PaidServiceConfirmation",{ref:"paidServiceConfirmation",on:{afterPaidServiceConfirmed:t.afterPaidConfirm}}):t._e()],1)}),[],!1,null,"fc08459e",null).exports},62531:function(t,e,a){"use strict";a.d(e,{A:function(){return r}});var s=a(62107),i={name:"Tooltip",components:{ElTooltip:a.n(s)()},props:{content:{type:String,default:null}},inheritAttrs:!1},r=(0,a(81656).A)(i,(function(){var t=this,e=t._self._c;return t.$slots.content?e("ElTooltip",t._b({scopedSlots:t._u([{key:"content",fn:function(){return[t._t("content")]},proxy:!0}],null,!0)},"ElTooltip",t.$attrs,!1),[t._t("default")],2):e("ElTooltip",t._b({attrs:{content:t.content}},"ElTooltip",t.$attrs,!1),[t._t("default")],2)}),[],!1,null,null,null).exports},25892:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"TriangleArrow",props:{direction:{type:String},size:{type:String,default:"30px"},borderWidth:{type:String,default:"5px"}},computed:{triangleStyle(){return{"border-right":this.borderWidth,"border-bottom":this.borderWidth,width:this.size,height:this.size}}},methods:{click(){this.$emit("clickAction")}}},i=(0,a(81656).A)(s,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"triangle",class:{"triangle-left":"left"===this.direction,"triangle-right":"right"===this.direction},style:t.triangleStyle,on:{click:function(e){return t.click()}}})}),[],!1,null,"17b6dc4c",null).exports},21563:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"WarningText",props:{value:{type:String,default:""}}},i=(0,a(81656).A)(s,(function(){var t=this._self._c;return t("div",{staticClass:"warning-message margin-bottom-2x margin-top-2x flex align-center gap"},[t("div",{staticClass:"warning-icon"},[t("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[t("g",[t("g",[t("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),t("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),t("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g"),t("g")])]),t("div",{staticClass:"text-extralight warning-text-wrapper"},[t("div",{staticClass:"warning-text padding-left"},[this._t("default")],2)])])}),[],!1,null,"fcb1aff4",null).exports},54754:function(t,e,a){"use strict";a.d(e,{A:function(){return i}});var s={name:"Wrench",components:{DataHint:a(75939).A},props:{placement:{type:String,default:"bottom"}},data(){return{tooltip:"Перед включением услуги с Вами свяжется менеджер"}}},i=(0,a(81656).A)(s,(function(){var t=this;return(0,t._self._c)("DataHint",{staticClass:"margin-left-2x",attrs:{"hint-string":t.$t(t.tooltip),iconType:"wrench",placement:t.placement}})}),[],!1,null,null,null).exports},14111:function(t,e,a){"use strict";a(10586)},83294:function(t,e,a){"use strict";a(42907)},14462:function(t,e,a){"use strict";a(14831)},6991:function(t,e,a){"use strict";a(69978)},53692:function(t,e,a){"use strict";a(70999)},50550:function(t,e,a){"use strict";a(29931)},14558:function(t,e,a){"use strict";a(17133)},91726:function(t,e,a){"use strict";a(50169)},83421:function(t,e,a){"use strict";a(90166)},61800:function(t,e,a){"use strict";a(49059)},3014:function(t,e,a){"use strict";var s=a(64675);e.A=s.A},27008:function(t,e,a){"use strict";var s=a(98467);e.A=s.A},28341:function(t,e,a){"use strict";var s=a(79108);e.A=s.A},62037:function(t,e,a){"use strict";var s=a(58952);e.A=s.A},48293:function(t,e,a){"use strict";var s=a(18372);e.A=s.A},57619:function(t,e,a){"use strict";var s=a(68420);e.A=s.A},70801:function(t,e,a){"use strict";var s=a(3178);e.A=s.A},57727:function(t,e,a){"use strict";var s=a(99846);e.A=s.A},20976:function(t,e,a){"use strict";var s=a(64543);e.A=s.A},81839:function(t,e,a){"use strict";var s=a(77302);e.A=s.A},89266:function(t,e,a){"use strict";var s=a(43499);e.A=s.A},32176:function(t,e,a){"use strict";var s=a(67567);e.A=s.A},94968:function(t,e,a){"use strict";var s=a(61605);e.A=s.A},16896:function(t,e,a){"use strict";var s=a(45691);e.A=s.A},74011:function(t,e,a){"use strict";var s=a(35694);e.A=s.A},66710:function(t){t.exports={functional:!0,render(t,e){const{_c:a,_v:s,data:i,children:r=[]}=e,{class:n,staticClass:o,style:c,staticStyle:l,attrs:d={},...u}=i;return a("svg",{class:[n,o],style:[c,l],attrs:Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),...u},r.concat([a("g",{attrs:{fill:"#AAB7BA","clip-path":"url(#clip0_243_2737)"}},[a("path",{attrs:{d:"M6.41 6L5 7.41 9.58 12 5 16.59 6.41 18l6-6-6-6z"}}),a("path",{attrs:{d:"M13 6l-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6-6-6z"}})]),a("defs",[a("clipPath",{attrs:{id:"clip0_243_2737"}},[a("path",{attrs:{fill:"#fff",transform:"rotate(180 12 12)",d:"M0 0h24v24H0z"}})])])]))}}},12556:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"simple-table text-caption",style:`max-width:${t.maxWidth}`},[e("table",[t.showHeader?e(a.TableHeader,{attrs:{columns:t.headers,sortingState:a.sortingState},on:{sort:a.onSorting}}):t._e(),t._l(a.paginatedRows,(function(s,i){return e(a.TableRow,{key:s.key||i,attrs:{columns:t.headers,row:s},on:{rowClick:a.onRowClick,change:t=>a.onChange(i,t)}})}))],2)])},i=[]},28920:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("td",{staticClass:"simple-table-cell",class:a.cellClasses,style:a.cellStyle},[a.loading?e("el-skeleton",{attrs:{rows:1}}):e("div",{staticClass:"flex align-center justify-start"},[e(a.cellComponent,{tag:"component",attrs:{"cell-value":a.formattedValue,disabled:a.disabled},on:{change:a.onChangeCellValue}}),a.tooltipText?e(a.DataHint,{staticClass:"margin-left",attrs:{"hint-string":a.tooltipText,placement:"top"}}):t._e()],1)],1)},i=[]},53904:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("el-checkbox",{staticClass:"custom",attrs:{disabled:t.disabled}
1,model:{value:a.toggleValue,callback:function(t){a.toggleValue=t},expression:"toggleValue"}})},i=[]},75593:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"dropdown-cell",staticStyle:{position:"relative"},attrs:{"data-prevent-row-click":"true"}},[e("div",{ref:"triggerRef",on:{click:a.toggleDropdown}},[e(a.TableIcon,{attrs:{type:"dots"}})],1),a.dropdownOpen?e("div",{ref:"dropdownRef",staticClass:"dropdown-cell__menu content absolute",attrs:{"data-prevent-row-click":"true","data-dropdown-menu-item":"true"}},t._l(a.props.cellValue.actions,(function(s){return e(a.Btn,{key:s.name,staticClass:"flex full-width cursor-pointer",attrs:{"data-prevent-row-click":"true",disabled:s.disabled,type:"option","data-dropdown-menu-item":"true",size:"small",noOverrideSvgFill:!0},on:{click:function(t){return a.handleAction(s)}}},[e(a.DropdownActionsIcon,{attrs:{type:s.icon}}),e("span",{staticClass:"text-light menu-item"},[t._v(t._s(t.$t(s.name)))])],1)})),1):t._e()])},i=[]},78644:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("span",t._b({staticClass:"simple-table-icon__wrapper",on:{click:a.handleIconClick}},"span",a.props.cellValue.icon.callback?{"data-prevent-row-click":"true"}:{},!1),[a.iconMap[a.props.cellValue.icon.type]?e(a.iconMap[a.props.cellValue.icon.type],t._b({tag:"component",staticClass:"simple-table-icon__element"},"component",a.props.cellValue.icon.callback?{"data-prevent-row-click":"true"}:{},!1)):t._e()],1)},i=[]},85766:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("span",{staticClass:"text-nowrap overflow-hidden text-ellipsis",attrs:{title:t.cellValue}},[t._v(" "+t._s(t.cellValue)+" ")])},i=[]},72084:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("tr",t._l(t.columns,(function(s,i){return e("th",{key:i,staticClass:"simple-table-cell-header",style:a.getCellStyle(s.width),attrs:{title:a.getCellValue(s)},on:{click:function(t){return a.onClick(s)}}},[e("div",{staticClass:"simple-table-cell-header__content flex align-center justify-start"},[e("span",{staticClass:"text-nowrap overflow-hidden text-ellipsis text-left"},[t._v(" "+t._s(a.getCellValue(s))+" ")]),Object.hasOwn(t.sortingState,s.key)?e(a.ArrowLong,{staticClass:"simple-table-cell-header__sort-icon",class:{"simple-table-cell-header__sort-icon_descending":"desc"===t.sortingState[s.key]}}):t._e(),a.getTooltipText(s)?e(a.DataHint,{staticClass:"margin-left",attrs:{"hint-string":a.getTooltipText(s)}}):t._e()],1)])})),0)},i=[]},45160:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("tr",{staticClass:"simple-table-row",on:{click:t=>{a.onRowClick({event:t})}}},t._l(t.columns,(function(s){return e(a.BasicCell,{key:s.key,attrs:{"cell-data":s,"cell-value":t.row[s.key]},on:{change:t=>{a.onChangeCellValue({property:s.key,value:t})}}})})),1)},i=[]},30924:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("transition",{attrs:{appear:"","enter-active-class":"animated fadeInModal","leave-active-class":"animated fadeOutModal",mode:"out-in"}},[t.visible?e("div",{staticClass:"modal-wrapper"},[e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:a.closeModal,expression:"closeModal"}],staticClass:"modal content flex column gap-2x",style:"width:"+t.width},[e("div",{staticClass:"modal-close-btn",on:{click:a.closeModal}},[e(a.CloseIcon,{staticClass:"fill-gradient"})],1),a.slots.header?e("div",{staticClass:"modal-header text-sub-header-1 margin-bottom"},[t._t("header")],2):t._e(),e("div",{staticClass:"modal-content"},[t._t("content")],2),a.slots.footer?e("div",{staticClass:"modal-footer"},[e("div",{staticClass:"flex align-center justify-between"},[t._t("footer")],2)]):t._e()])]):t._e()])},i=[]},67883:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"status-indicator-cell relative",class:[t.cellValue.position,t.cellValue.status]},[e("svg",{attrs:{width:"4",height:"26",viewBox:"0 0 4 26",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M0 4C0 1.79086 1.79086 0 4 0V26C1.79086 26 0 24.2091 0 22V4Z"}})])])},i=[]},60973:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"custom",attrs:{title:t.$t("Загрузка файлов"),width:"30%",visible:t.isDialogVisible},on:{"update:visible":function(e){t.isDialogVisible=e}}},[e("el-upload",{ref:"upload",staticClass:"uploader",attrs:{drag:"","auto-upload":!0,action:"http","http-request":t.uploadFile,multiple:"","on-success":t.onSuccess,"on-error":t.onError}},[[e("i",{staticClass:"el-icon-upload"}),e("div",{staticClass:"el-upload__text"},[t._v(t._s(t.$t("Перетащите файл сюда или нажмите, чтобы загрузить")))])]],2),e("template",{slot:"footer"},[e("div",{staticClass:"flex align-center"},[e("btn",{attrs:{type:"secondary"},on:{click:t.toggleDialog}}
1,[t._v(t._s(t.$t("Закрыть")))])],1)])],2)},i=[]},14956:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c;return e("Tooltip",{attrs:{content:t.hintString,placement:t.placement,enterable:t.enterable}},[t.$slots.default?t._t("default",null,{slot:"content"}):t._e(),e(t.iconComponent,t._b({tag:"component",staticClass:"icon-small fill-gradient"},"component",t.iconProps,!1))],2)},i=[]},34880:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c;return e("transition",{attrs:{appear:"","enter-active-class":"animated fadeInModal","leave-active-class":"animated fadeOutModal",mode:"out-in"}},[t.visible?e("div",{staticClass:"modal-wrapper"},[e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.close,expression:"close"}],staticClass:"modal content flex column gap-2x",style:"width:"+this.width},[e("div",{staticClass:"modal-close-btn",on:{click:t.close}},[e("close",{staticClass:"fill-gradient"})],1),t.$slots.header?e("div",{staticClass:"modal-header text-center text-sub-header-1 margin-bottom"},[t._t("header")],2):t._e(),e("div",{staticClass:"modal-content"},[t._t("content")],2),t.$slots.footer?e("div",{staticClass:"modal-footer"},[e("div",{staticClass:"flex align-center justify-between"},[t._t("footer")],2)]):t._e()])]):t._e()])},i=[]},98289:function(t,e,a){"use strict";a.d(e,{X:function(){return s},Y:function(){return i}});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"input",class:Object.keys(this.$slots).length&&"buttoned"},[t.before?e("div",{staticClass:"before",domProps:{textContent:t._s(t.before)}}):t._e(),t.after?e("div",{staticClass:"after",domProps:{textContent:t._s(t.after)}}):t._e(),t.mask?e("masked-input",t._b({ref:"input",class:{error:t.error,[t.size]:t.size,[t.font]:t.font,type:t.type},attrs:{id:t.id,name:""!==t.name?t.name:null,maxlength:t.maxlength,mask:t.mask,"placeholder-char":t.placeholderChar,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,autocomplete:t.autocomplete},on:{input:t.update,blur:t.blur,focus:function(e){return t.$emit("focus")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submit.apply(null,arguments)}},nativeOn:{blur:function(e){return t.blur.apply(null,arguments)}},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}},"masked-input",t.$attrs,!1)):e(t.tag,t._b({ref:"input",tag:"component",class:{error:t.error,[t.size]:t.size,[t.font]:t.font,disabled:t.disabled,[t.type]:t.type,"ym-disable-keys":t.ymDisable},attrs:{type:t.type,placeholder:t.placeholder,id:t.id,name:""!==t.name?t.name:null,maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:t.autocomplete},domProps:{value:t.value},on:{input:t.update,blur:t.blur,focus:function(e){return t.$emit("focus")},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submit.apply(null,arguments)}}},"component",t.$attrs,!1)),Object.keys(this.$slots).length?e("div",{staticClass:"btns flex margin-right"},[t._t("button-1"),t._t("button-2"),t._t("button-3")],2):t._e()],1)},i=[]},50104:function(t,e,a){"use strict";a.d(e,{W:function(){return s}});const s={plainText:"plainText",checkbox:"checkbox",indicator:"indicator",dropdown:"dropdown",icon:"icon",custom:"custom"}},23041:function(t,e,a){"use strict";a.d(e,{A:function(){return c}});var s=a(75374),i=(a(98992),a(23215),a(81454),a(33278)),r=a(30852),n=a(19850),o=a(91865);class c{constructor(){(0,s.A)(this,"state",{isClearCacheInProgress:!1,cacheLinks:[]})}fullLinksValidation(t){return t.every((t=>(0,i.OZ)(t)))}getCacheControlPayload({type:t,host:e,paths:a=[],with_extra_zones:s}){let i={domain:e,action:"delete",with_extra_zones:s};switch(t){case o.I.delete:i={...i,paths:a};break;case o.I.fullDrop:i={...i,action_type:"full"};break;case o.I.upload:i={...i,action:"preload",paths:a}}return i}getFullLinks({host:t,links:e=[]}){const a=`https://${t}`;return e.map((t=>{let{pathname:e,search:s}=new URL(t,a);return`${e}${s}`}))}getHost(t){return t.startsWith("http")?new URL(t).host:t}async cacheControl({accountName:t,domain:e,type:a,with_extra_zones:s}){try{const i=this.getHost(e),c=a===o.I.fullDrop;if(!(c||i||this.fullLinksValidation(this.state.cacheLinks)))return void n.A.error({message:"Пожалуйста, укажите полные ссылки"});this.state.isClearCacheInProgress=!0;const l=c?[]:this.getFullLinks({host:i,links:this.state.cacheLinks}),d=this.getCacheControlPayload({type:a,host:i,paths:l,with_extra_zones:s}),u={accountName:t};await r.A.cacheControl(u,d),this.state.cacheLinks=[];const m=[o.I.delete,o.I.fullDrop].includes(a)?"очистку":"обновление";n.A.success({message:`Задача на ${m} кэша отправлена`})}catch(t){let e="При удалении кэша произошла ошибка";if(429===t?.response?.status){const a=t.response.data?.reason;switch(a){case"requests_limiter":e="Превышено количество запросов. Попробуйте позже";break;case"full_delete_limiter":e="Превышено количество запросов полного удаления кэша. Попробуйте позже";break;case"paths_limiter":e="Превышено количество путей в запросах. Попробуйте уменьшить количество путей и повторите";break;case"extra_zones_limiter":e="Превышено количество путей с дополнительными зонами. Попробуйте позже";break;default:e=t.response.data?.detail||"Превышено разрешенное количество запросов. Попробуйте позже"}}n.A.error({text:e})}finally{this.state.isClearCacheInProgress=!1}}}},91865:function(t,e,a){"use strict";a.d(e,{I:function(){return s}});const s={delete:"delete",upload:"upload",fullDrop:"fullDrop"}},74159:function(t,e,a){"use strict";a.d(e,{Gi:function(){return i},Og:function(){return s},TM:function(){return r},lB:function(){return n},pA:function(){return c},zD:function(){return o}}),a(98992),a(72577);const s="+7 495 782 17 32",i="[email protected]",r="CDNvideoSalesBot",n="[email protected]",o={PHONE:{value:"phone",label:"По телефону"},EMAIL:{value:"email",label:"По email"}};function c(t){return Object.values(o).find((e=>e.value===t))?.label||null}Object.freeze(o)},81284:function(t,e,a){"use strict";a.d(e,{N:function(){return g},v:function(){return p}}),a(44114);var s=a(62893),i=a(18738),r=a(19850),n=a(97029),o=a(35325),c=a(73845),l=a(46004),d=a(74159);const{openGlobalModal:u,closeGlobalModal:m}=(0,c.g)();function p(t={showFeedback:!1,setUserContact:!1}){return{openContactUsModal:(e={})=>{const a=function(t){const e={props:{},emits:{}}
1,a=i.A.isCurrentCompany("CDNvideo");if(n.A.isAuth()){const t=Object.keys(n.A.projectManagerInfo||{}).length>0,s=n.A.isCDN1()?a&&t:t;e.props.showContact={manager:s,sales:!s&&a,supportSdn:!0,supportS3:a}}else e.props.showContact={sales:!0,supportSdn:!0};return t.showFeedback&&a&&(e.props.showFeedback=!0,e.emits.sendFeedback=g,t.setUserContact&&(e.props.setUserContact=n.A.isAuth())),e}(t);u({component:l.A,props:{...a.props,...e.props},emits:{...a.emits,...e.emits}})}}}const h=(0,s.ref)(!1);async function g(t){if(h.value)return;const e=n.A.isAuth()?n.A.isCDN1()?"CDN1":"CDN2":void 0,a=(0,d.pA)(t.type),s=function({clientType:t,phone:e,email:a,preferredContact:s,subject:i}){const r=["Заказ обратной связи",""];return i&&r.push(`Тема: ${i}`,""),r.push(`Тип клиента: ${t||"нет данных"}`,`Телефон: ${e||"не указано"}`,`Email: ${a||"не указано"}`,`Предпочтительный способ связи: ${s?.toLowerCase()||"нет данных"}`),r.join("\n")}({clientType:e,phone:t.phone,email:t.email,preferredContact:a,subject:t.subject}),c={account_name:n.A.accountName,client_mail:t.email||n.A.personEmail,client_mail_custom:n.A.personEmail,client_tel:t.phone||n.A.accountPhone,client_type:e,company:i.A.company.name,other:s};h.value=!0;try{await(0,o.A)(c),r.A.success({message:$t("Форма обратной связи отправлена. Мы с вами свяжемся по указанному email или телефону")})}catch(t){r.A.error({message:$t("При отправке формы произошла ошибка. Попробуйте ещё раз")})}finally{h.value=!1,m()}}},73845:function(t,e,a){"use strict";a.d(e,{g:function(){return n}});var s=a(62893);const i=(0,s.ref)(!1),r=(0,s.ref)({component:null,props:{},emit:{}});function n(){return{visible:i,modalConfig:r,openGlobalModal:t=>{r.value={...t},setTimeout((()=>{i.value=!0}),0)},closeGlobalModal:()=>{i.value=!1,r.value={}}}}},96462:function(t,e,a){"use strict";function s(t=""){return encodeURIComponent(t).replaceAll(/%2F/gi,"/")}function i(t){try{return new URL(t).href}catch(e){if(e instanceof TypeError)return`https://${t}`;throw e}}function r(t,e){return"/"===t?`/${e}`:s(`${t}/${e}`)}a.d(e,{X$:function(){return r},Xq:function(){return s},bO:function(){return i}})},28848:function(t,e,a){"use strict";a.d(e,{BE:function(){return r},Gh:function(){return i},xq:function(){return s}});const s="example.com",i="https://smartcaptcha.cloud.yandex.ru/captcha.js",r="ysc1_mscE9qBk6GjvqpyJpeVnVHuezwxPbNly76bQAg4b2c0b4596"},30112:function(t,e,a){"use strict";a.r(e),e.default=["ru_RU","en_US"]},26257:function(t,e,a){"use strict";a.d(e,{GO:function(){return s},M:function(){return i},jL:function(){return r}});const s={ALREADY_SENT:"Code already sent. You can resend after",TWO_FA_REQUIRED:"Two-factor authentication code is required",WRONG_CODE:"Wrong code."},i=6,r=180},98710:function(t,e,a){"use strict";a(44114),a(98992),a(3949);var s=a(62893),i=a(34445),r=a(80440),n=(a(54520),a(57421)),o={data(){return{isMenuClose:!1,currentActiveMenu:"dashboard"}},created(){this.isMenuClose=!1,this.$emit("chgMenuClose",this.isMenuClose)},computed:{menuItems(){const t=this.$branding.isCurrentCompany("CDNvideo"),e=this.$branding.isCurrentCompany("TurboFlare"),a=this.$branding.isCurrentCompany("inframarket"),s=this.$user.permissionsService.s3.canReadUser,i=this.$user.permissionsService.openstack.projectGet,r=(t||a)&&(i||s),o=this.$branding.company.name&&!a,c=!this.$user.isCDN1(),l=this.$user.canReadStaff(),d=this.$user.canReadProject(),u=this.$user.permissionsService.billing.canReadNomenclature&&t,m=this.$user.canReadCompany(),p=this.$user.permissionsService.dns.canReadDns,h=this.$user.canReadStatusPage();return e?{person:[{name:"turboflare",text:"Сайты",id:"turboflare"}],staff:[l&&{name:"employees",text:"Сотрудники",id:"employees"},d&&{name:"projects",text:"Проекты",id:"projects"},t&&{name:"leads",text:"Лиды",id:"leads"},u&&{name:"nomenclature",text:"Номенклатура",id:"nomenclature"},m&&{name:"brandings",text:"Брендирование",id:"brandings"},d&&{name:"track-projects-traffic",text:"Статистика",id:"statistics"}].filter((t=>!!t))}:{person:[{name:"dashboard",text:"Главная",id:"dashboard"},{name:"stat",text:"Статистика",id:"statistics"}
1,{name:"f-cdn",text:"CDN",id:"cdn"},p&&{name:"dns",text:"DNS"},{name:"streaming",text:"Стриминг",id:"streaming"},c&&(0,n.f)()&&{name:"media",text:"Медиа",id:"media"},c&&{name:"s3-media",text:"Хранилище",id:"storage"},o&&{name:"player",text:"Плеер",id:"player"},r&&{name:"cloud",text:"Облако",id:"cloud"},t&&{name:"security",text:"Безопасность",id:"security"},t&&{name:"talking-head",text:"ИИ Аватар",id:"ai-avatar"}].filter((t=>!!t)),staff:[l&&{name:"employees",text:"Сотрудники",id:"employees"},d&&{name:"projects",text:"Проекты",id:"projects"},t&&{name:"leads",text:"Лиды",id:"leads"},u&&{name:"nomenclature",text:"Номенклатура",id:"nomenclature"},m&&{name:"brandings",text:"Брендирование",id:"brandings"},d&&{name:"track-projects-traffic",text:"Статистика",id:"statistics"},t&&h&&{name:"statuspage",text:"Statuspage",id:"statuspage"}].filter((t=>!!t))}}},methods:{chgSubMenuItems({menuItem:t,params:e}){e?this.$router.push({name:t,params:e}):this.$router.push({name:t})},logout(){this.$user.logout()},chgMenuClose(){this.isMenuClose=!this.isMenuClose,this.$emit("chgMenuClose",this.isMenuClose)},resetSidenavSettings(){this.$emit("chgMenuClose",[]),this.isMenuClose=!1,this.$emit("chgMenuClose",this.isMenuClose),this.currentActiveMenu="dashboard"},truncatedText(t){return t&&t.length<=10?t:t?t.slice(0,10)+"...":void 0}},watch:{$route:function(t){this.currentActiveMenu=t.matched[0].path.slice(1)}}},c=a(81656),l=(0,c.A)(o,void 0,void 0,!1,null,null,null).exports,d=(0,c.A)({name:"MenuHighlight",props:{short:{default:!1}}},(function(){var t=this._self._c;return t("div",{staticClass:"menu-highlight"},[this.short?[t("svg",{attrs:{width:"40",height:"32",viewBox:"0 0 40 32",fill:"none",stroke:"#E3FC72","stroke-width":"2",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M1 8C1 4.13401 4.13401 1 8 1H27.2C29.7852 1 32.1599 2.42484 33.3765 4.70588L38.1735 13.7004C38.6191 14.5359 38.6441 15.5327 38.2409 16.3895L33.2569 26.9806C32.1023 29.434 29.6347 31 26.9232 31H8C4.13401 31 1 27.866 1 24V8Z"}})])]:[t("svg",{attrs:{width:"202",height:"32",viewBox:"0 0 202 32",fill:"none",stroke:"#E3FC72","stroke-width":"2",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M1 8C1 4.13401 4.13401 1 8 1H182.841C184.617 1 186.327 1.67494 187.623 2.8881L188.307 2.15783L187.623 2.8881L198.39 12.9597C199.601 14.0932 199.663 15.9952 198.527 17.2045L187.641 28.7927C186.318 30.2012 184.471 31 182.539 31H8C4.13401 31 1 27.866 1 24V8Z"}})])]],2)}),[],!1,null,null,null).exports,u={name:"MenuItemIcons",props:{iconName:{type:String,required:!0},active:{type:Boolean,required:!0}}},m={name:"MenuItem",components:{MenuHighlight:d,SidenavIcons:(0,c.A)(u,(function(){var t=this,e=t._self._c;return"dashboard"===t.iconName?e("div",{staticClass:"menu-icon"},[t.active?e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"home_FILL0_wght400_GRAD0_opsz48 1"}},[e("path",{attrs:{id:"Vector",d:"M2.66666 14V6L7.99999 2L13.3333 6V14H8.83332V9.83333H7.16666V14H2.66666Z"}})])])]):e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white","fill-opacity":"0.72",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"home_FILL0_wght400_GRAD0_opsz48 1"}},[e("path",{attrs:{id:"Vector",d:"M3.6665 13H6.1665V8.83333H9.83317V13H12.3332V6.5L7.99984 3.25L3.6665 6.5V13ZM2.6665 14V6L7.99984 2L13.3332 6V14H8.83317V9.83333H7.1665V14H2.6665Z"}})])])])]):"f-cdn"===t.iconName?e("div",{staticClass:"menu-icon"},[t.active?e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"dns_black_24dp (2) 2","clip-path":"url(#clip0_1667_9015)"}},[e("path",{attrs:{id:"Vector",d:"M13.3333 8.66667H2.66667C2.3 8.66667 2 8.96667 2 9.33333V13.3333C2 13.7 2.3 14 2.66667 14H13.3333C13.7 14 14 13.7 14 13.3333V9.33333C14 8.96667 13.7 8.66667 13.3333 8.66667ZM4.66667 12.6667C3.93333 12.6667 3.33333 12.0667 3.33333 11.3333C3.33333 10.6 3.93333 10 4.66667 10C5.4 10 6 10.6 6 11.3333C6 12.0667 5.4 12.6667 4.66667 12.6667ZM13.3333 2H2.66667C2.3 2 2 2.3 2 2.66667V6.66667C2 7.03333 2.3 7.33333 2.66667 7.33333H13.3333C13.7 7.33333 14 7.03333 14 6.66667V2.66667C14 2.3 13.7 2 13.3333 2ZM4.66667 6C3.93333 6 3.33333 5.4 3.33333 4.66667C3.33333 3.93333 3.93333 3.33333 4.66667 3.33333C5.4 3.33333 6 3.93333 6 4.66667C6 5.4 5.4 6 4.66667 6Z"}})]),e("defs",[e("clipPath",{attrs:{id:"clip0_1667_9015"}},[e("rect",{attrs:{width:"16",height:"16",fill:"white"}})])])])]):e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white","fill-opacity":"0.72",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"dns_FILL0_wght400_GRAD0_opsz24 (1) 1"}},[e("path",{attrs:{id:"Vector",d:"M5 4C4.72222 4 4.48611 4.09722 4.29167 4.29167C4.09722 4.48611 4 4.72222 4 5C4 5.27778 4.09722 5.51389 4.29167 5.70833C4.48611 5.90278 4.72222 6 5 6C5.27778 6 5.51389 5.90278 5.70833 5.70833C5.90278 5.51389 6 5.27778 6 5C6 4.72222 5.90278 4.48611 5.70833 4.29167C5.51389 4.09722 5.27778 4 5 4ZM5 10.6667C4.72222 10.6667 4.48611 10.7639 4.29167 10.9583C4.09722 11.1528 4 11.3889 4 11.6667C4 11.9444 4.09722 12.1806 4.29167 12.375C4.48611 12.5694 4.72222 12.6667 5 12.6667C5.27778 12.6667 5.51389 12.5694 5.70833 12.375C5.90278 12.1806 6 11.9444 6 11.6667C6 11.3889 5.9
10278 11.1528 5.70833 10.9583C5.51389 10.7639 5.27778 10.6667 5 10.6667ZM2.66667 2H13.3333C13.5222 2 13.6806 2.06389 13.8083 2.19167C13.9361 2.31944 14 2.47778 14 2.66667V7.33333C14 7.52222 13.9361 7.68056 13.8083 7.80833C13.6806 7.93611 13.5222 8 13.3333 8H2.66667C2.47778 8 2.31944 7.93611 2.19167 7.80833C2.06389 7.68056 2 7.52222 2 7.33333V2.66667C2 2.47778 2.06389 2.31944 2.19167 2.19167C2.31944 2.06389 2.47778 2 2.66667 2ZM3.33333 3.33333V6.66667H12.6667V3.33333H3.33333ZM2.66667 8.66667H13.3333C13.5222 8.66667 13.6806 8.73056 13.8083 8.85833C13.9361 8.98611 14 9.14444 14 9.33333V14C14 14.1889 13.9361 14.3472 13.8083 14.475C13.6806 14.6028 13.5222 14.6667 13.3333 14.6667H2.66667C2.47778 14.6667 2.31944 14.6028 2.19167 14.475C2.06389 14.3472 2 14.1889 2 14V9.33333C2 9.14444 2.06389 8.98611 2.19167 8.85833C2.31944 8.73056 2.47778 8.66667 2.66667 8.66667ZM3.33333 10V13.3333H12.6667V10H3.33333Z"}})])])])]):"dns"===t.iconName?e("div",{staticClass:"menu-icon"},[(t.active,e("div",[e("svg",{attrs:{version:"1.1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("defs",[e("linearGradient",{attrs:{id:"gradient",x1:"16.246",x2:"8.2941",y1:"-.80855",y2:"25.2",gradientUnits:"userSpaceOnUse"}},[e("stop",{staticStyle:{"stop-color":"#9f40cc"},attrs:{offset:".042514"}}),e("stop",{staticStyle:{"stop-color":"#f6c444"},attrs:{offset:".95933"}})],1)],1),e("g",[e("path",{attrs:{d:"m12 0a12 12 0 00-1.2598.091797c-.2904.03083-.5775.069936-.86133.12109a12 12 0 00-.81445.17773c-.30537.077368-.60682.16535-.90234.26562a12 12 0 00-.69922.26172c-.32255.13252-.63758.27841-.94531.4375a12 12 0 00-.36719.19922c-1.2282.69041-2.3243 1.5885-3.2363 2.6504-.0068455-.0044539-.012711-.0092086-.019531-.013672a12 12 0 00-.30078.40039l.0019531.0019531c-.38771.49148-.73457 1.0154-1.043 1.5645a12 12 0 00-.083984.15039c-.25824.47561-.48073.97276-.67383 1.4844a12 12 0 00-.12305.32812c-.28427.8262-.48066 1.693-.57812 2.5898a12 12 0 00-.064453.88867c-.0047659.13877-.0097656.27803-.0097656.41797 0 .12367.0040871.24638.0078125.36914a12 12 0 00.064453.89062c.024652.2352.051772.47024.089844.70117a12 12 0 00.24805 1.1387c.053708.20079.11596.39726.17969.59375a12 12 0 00.38672 1.0391c.07732.17951.16235.35443.24805.5293a12 12 0 00.50391.92188c.081324.13466.15776.27315.24414.4043a12 12 0 00.88867 1.1836c.043996.051683.089914.10142.13477.15234a12 12 0 001.1055 1.1055c.020483.017929.041894.034943.0625.052734a12 12 0 007.8164 2.9004 12 12 0 0012-12 12 12 0 00-1.6387-6.0508c-.060481-.10272-.12213-.20395-.18555-.30469a12 12 0 00-.26953-.41211c-.12315-.17896-.25042-.35555-.38281-.52734a12 12 0 00-.55078-.66992c-.04973-.055735-.099643-.11122-.15039-.16602a12 12 0 00-.21875-.22852c-.061501-.063005-.12268-.12586-.18555-.1875a12 12 0 00-.18945-.18164c-1.8953-1.7794-4.3674-2.9516-7.1074-3.2012-.031463-.010018-.064076-.014226-.095703-.023438a12 12 0 00-1.0254-.046875zm-.23047.52344v5.9551c-1.7168-.018967-3.3459-.22404-4.8008-.58789.25222-.78779.55097-1.5125.88867-2.1582.86432-1.6527 1.9675-2.7689 3.1699-3.1699.24528-.02098.49275-.033724.74219-.039062zm.5 0c.24943.0053386.49691.018083.74219.039062 1.2024.40106 2.3056 1.5173 3.1699 3.1699.3377.64571.63645 1.3704.88867 2.1582-1.4549.36385-3.084.56892-4.8008.58789v-5.9551zm-2.6816.25391c-.83132.6304-1.5689 1.5678-2.1738 2.7246-.3556.67995-.66788 1.4375-.92969 2.2578-1.0123-.28416-1.9325-.64222-2.7324-1.0605-.1416-.074056-.26869-.15496-.40234-.23242 1.6-1.8355 3.7709-3.1583 6.2383-3.6895zm4.8633 0c2.4674.53123 4.6384 1.8538 6.2383 3.6895-.13366.077461-.26074.15837-.40234.23242-.79989.41833-1.7201.77638-2.7324 1.0605-.26181-.82032-.57408-1.5779-.92969-2.2578-.60497-1.1568-1.3425-2.0942-2.1738-2.7246zm-11.428 4.0801c.16356.096599.32443.19436.49805.28516.83166.43495 1.7797.80551 2.8164 1.0977-.19141.66737-.34873 1.3741-.4707 2.1094.17336-.061572.35118-.11392.53516-.15039.11356-.63617.25354-1.2482.41992-1.8281 1.5035.37845 3.1807.58852 4.9473.60742v1.1465h.5v-1.1465c1.7666-.018903 3.4437-.22897 4.9473-.60742.16638.57993.30636 1.192.41992 1.8281.18398.036466.3618.088819.53516.15039-.12197-.73531-.27929-1.442-.4707-2.1094 1.0367-.29214 1.9847-.66271 2.8164-1.0977.17311-.090532.33298-.18886.49609-.28516 1.5144 1.8998 2.4384 4.2885 2.498 6.8926h-2.7949c.003999.072158.005859.1436.005859.2168 0 .095113-.003039.18986-.009765.2832h2.8008c-.051467 2.5864-.95638 4.9621-2.4453 6.8594-.1798-.10758-.35862-.21591-.55078-.31641-.82706-.43254-1.7688-.80236-2.7988-1.0938.18961-.67026.34509-1.3793.46484-2.1172-.17274.061981-.34985.11532-.5332.15234-.11166.63919-.25101 1.2528-.41602 1.8359
1-1.5082-.38126-3.1912-.5942-4.9648-.61328v-1.1465h-.5v1.1465c-1.7736.01908-3.4566.23202-4.9648.61328-.16501-.5831-.30435-1.1967-.41602-1.8359-.18335-.037027-.36047-.090363-.5332-.15234.11976.73785.27523 1.4469.46484 2.1172-1.03.29139-1.9718.66121-2.7988 1.0938-.19216.1005-.37098.20882-.55078.31641-1.4891-1.8973-2.3938-4.2727-2.4453-6.8594h2.8008c-.0067261-.09334-.0097657-.18809-.0097657-.2832 0-.073192.0018606-.14464.0058594-.2168h-2.7949c.05966-2.6039.98185-4.9928 2.4961-6.8926zm14.387 4.7676c-.61652 0-1.1221.13478-1.5156.40625-.39137.26942-.58789.6191-.58789 1.0469 0 .31878.087224.58679.25976.80273.17465.21389.45989.38236.85547.50781.17254.055526.35705.10165.55273.13867.19779.034961.3838.0741.56055.11523.16833.039076.29654.095883.38281.16992.088374.071982.13281.15704.13281.25781 0 .109-.030777.19252-.091797.24805-.058916.055528-.13593.10165-.22852.13867-.075749.028796-.17303.048209-.29297.060547s-.21737.019531-.29102.019531c-.28616 0-.58507-.053315-.89648-.1582-.30931-.10489-.5875-.25384-.83789-.44922h-.13281v1.0996c.2525.10283.52228.18994.81055.25781.29037.065811.63026.097657 1.0195.097657.67333 0 1.2063-.14012 1.5977-.42188.39348-.28381.58984-.65301.58984-1.1055 0-.31672-.087224-.57405-.25977-.77148-.17044-.19949-.43511-.35553-.79492-.4707-.18306-.057583-.35376-.10381-.51367-.13672-.15781-.032904-.32355-.066598-.49609-.10156-.26302-.053473-.44242-.11203-.53711-.17578-.094687-.065813-.14062-.15991-.14062-.28125-1e-6-.080209.028974-.15119.08789-.21289.058917-.063752.12888-.10977.21094-.14062.092583-.037021.18821-.06188.28711-.074218.101-.014395.20174-.021485.30273-.021485.28617 0 .5663.049616.83984.15039.27565.098718.50789.22302.69727.37109h.13086v-1.0586c-.22094-.088435-.48411-.16116-.78711-.21875-.3009-.059642-.60475-.089844-.91406-.089844zm-12.715.083984v4.5918h1.6582c.37454 0 .69716-.026606.9707-.080078s.52651-.14747.75586-.2832c.3051-.18098.55792-.44006.75781-.77734.1999-.33934.29883-.72261.29883-1.1504-1e-7-.44423-.09398-.82925-.28125-1.1562-.18517-.32906-.43963-.59183-.76367-.78516-.18937-.11517-.42342-.20197-.70117-.26367-.27775-.063755-.60728-.095703-.99023-.095703h-1.7051zm5.3672 0v4.5918h1.1094v-3.1523l1.9961 3.1523h1.168v-4.5918h-1.1113v2.6309l-1.7148-2.6309h-1.4473zm-4.1543.85742h.30664c.26092 0 .45563.010581.58398.033203.13046.020567.25671.061452.38086.12109.24408.12134.42168.28994.5332.50586.11362.21389.16992.47112.16992.77344 0 .30438-.051193.55986-.1543.76758-.1031.20566-.26539.37074-.48633.49414-.12835.067872-.25986.11584-.39453.14258-.13467.024676-.34454.037109-.63281.037109h-.30664v-2.875zm5.8613 6.8906v6.0547c-.19922-.004264-.39714-.013071-.59375-.027344-1.2602-.35573-2.4184-1.4961-3.3184-3.2168-.34605-.66168-.65017-1.4063-.90625-2.2168 1.4594-.36656 3.0946-.57459 4.8184-.59375zm.5 0c1.7238.019156 3.3589.22719 4.8184.59375-.25608.81047-.5602 1.5551-.90625 2.2168-.89992 1.7207-2.0581 2.8611-3.3184 3.2168-.1966.014273-.39453.02308-.59375.027344v-6.0547zm-5.8027.72461c.26553.84268.58328 1.6204.94727 2.3164.62148 1.1883 1.3829 2.1453 2.2422 2.7754-2.5257-.52745-4.7453-1.8841-6.3652-3.7715.15169-.089236.29881-.18084.46094-.26562.79524-.4159 1.7095-.77131 2.7148-1.0547zm11.105 0c1.0054.28338 1.9196.63879 2.7148 1.0547.16131.084364.308.1749.45898.26367-1.6196 1.8872-3.8362 3.2456-6.3613 3.7734.85878-.63015 1.6191-1.5876 2.2402-2.7754.36398-.69598.68174-1.4737.94727-2.3164z"}})])])]))]):"streaming"===t.iconName?e("div",{staticClass:"menu-icon"},[t.active?e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"live_tv_FILL0_wght400_GRAD0_opsz48 1"}},[e("path",{attrs:{id:"Vector",d:"M5.50001 14V12.6667H2.33334C2.06668 12.6667 1.83334 12.5667 1.63334 12.3667C1.43334 12.1667 1.33334 11.9333 1.33334 11.6667V3C1.33334 2.73333 1.43334 2.5 1.63334 2.3C1.83334 2.1 2.06668 2 2.33334 2H13.6667C13.9333 2 14.1667 2.1 14.3667 2.3C14.5667 2.5 14.6667 2.73333 14.6667 3V11.6667C14.6667 11.9333 14.5667 12.1667 14.3667 12.3667C14.1667 12.5667 13.9333 12.6667 13.6667 12.6667H10.5V14H5.50001Z"}})])])]):e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white","fill-opacity":"0.72",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"live_tv_FILL0_wght400_GRAD0_opsz48 1"}},[e("path",{attrs:{id:"Vector",d:"M5.49998 14V12.6667H2.33331C2.06665 12.6667 1.83331 12.5667 1.63331 12.3667C1.43331 12.1667 1.33331 11.9333 1.33331 11.6667V3C1.33331 2.73333 1.43331 2.5 1.63331 2.3C1.83331 2.1 2.06665 2 2.33331 2H13.6666C13.9333 2 14.1666 2.1 14.3666 2.3C14.5666 2.5 14.6666 2.73333 14.6666 3V11.6667C14.6666 11.9333 14.5666 12.1667 14.3666 12.3667C14.1666 12.5667 13.9333 12.6667 13.6666 12.6667H10.5V14H5.49998ZM2.33331 11.6667H13.6666V3H2.33331V11.6667Z"}})])])])]):"media"===t.iconName||"s3-media"===t.iconName?e("div",{staticClass:"menu-icon"},[t.active?e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"perm_media_FILL1_wght400_GRAD0_opsz24 1"}},[e("path",{attrs:{id:"Vector",d:"M2.00002 14C1.63335 14 1.31946 13.8695 1.05835 13.6084C0.797243 13.3473 0.666687 13.0334 0.666687 12.6667V4.00004H2.00002V12.6667H13.3334V14H2.00002ZM4.66669 11.3334C4.30002 11.3334 3.98613 11.2028 3.72502 10.9417C3.46391 10.6806 3.33335 10.3667 3.33335 10V2.66671C3.33335 2.30004 3.46391 1.98615 3.72502 1.72504C3.98613 1.46393 4.30002 1.33337 4.66669 1.33337H8.00002L9.33335 2.66671H14C14.3667 2.66671 14.6806 2.79726 14.9417 3.05837C15.2028 3.31949 15.3334 3.63337 15.3334 4.00004V10C15.3334 10.3667 15.2028 10.6806 14.9417 10.9417C14.6806 11.2028 14.3667 11.3334 14 11.3334H4.66669ZM6.00002 8.66671H12.6667L10.3667 5.66671L8.83335 7.66671L
17.80002 6.33337L6.00002 8.66671Z"}})])])]):e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white","fill-opacity":"0.72",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"perm_media_black_24dp 1","clip-path":"url(#clip0_171_1908)"}},[e("path",{attrs:{id:"Vector",d:"M1.33333 4.00004H0V7.33337H0.00666667L0 13.3334C0 14.0667 0.6 14.6667 1.33333 14.6667H13.3333V13.3334H1.33333V4.00004ZM4.66667 10H14L11.6667 7.00004L10 9.00671L7.66667 6.00004L4.66667 10ZM14.6667 2.66671H9.33333L8 1.33337H4C3.26667 1.33337 2.67333 1.93337 2.67333 2.66671L2.66667 10.6667C2.66667 11.4 3.26667 12 4 12H14.6667C15.4 12 16 11.4 16 10.6667V4.00004C16 3.26671 15.4 2.66671 14.6667 2.66671ZM14.6667 10.6667H4V2.66671H7.44667L8.38667 3.60671L8.78 4.00004H14.6667V10.6667Z"}})]),e("defs",[e("clipPath",{attrs:{id:"clip0_171_1908"}},[e("rect",{attrs:{width:"16",height:"16",fill:"white"}})])])])])]):"player"===t.iconName?e("div",{staticClass:"menu-icon"},[t.active?e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"play_circle_FILL1_wght400_GRAD0_opsz24 1"}},[e("path",{attrs:{id:"Vector",d:"M6.33331 10.9999L11 7.99992L6.33331 4.99992V10.9999ZM7.99998 14.6666C7.07776 14.6666 6.21109 14.4916 5.39998 14.1416C4.58887 13.7916 3.88331 13.3166 3.28331 12.7166C2.68331 12.1166 2.20831 11.411 1.85831 10.5999C1.50831 9.78881 1.33331 8.92214 1.33331 7.99992C1.33331 7.0777 1.50831 6.21103 1.85831 5.39992C2.20831 4.58881 2.68331 3.88325 3.28331 3.28325C3.88331 2.68325 4.58887 2.20825 5.39998 1.85825C6.21109 1.50825 7.07776 1.33325 7.99998 1.33325C8.9222 1.33325 9.78887 1.50825 10.6 1.85825C11.4111 2.20825 12.1166 2.68325 12.7166 3.28325C13.3166 3.88325 13.7916 4.58881 14.1416 5.39992C14.4916 6.21103 14.6666 7.0777 14.6666 7.99992C14.6666 8.92214 14.4916 9.78881 14.1416 10.5999C13.7916 11.411 13.3166 12.1166 12.7166 12.7166C12.1166 13.3166 11.4111 13.7916 10.6 14.1416C9.78887 14.4916 8.9222 14.6666 7.99998 14.6666Z"}})])])]):e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white","fill-opacity":"0.72",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"play_circle_FILL0_wght400_GRAD0_opsz24 1"}},[e("path",{attrs:{id:"Vector",d:"M6.33337 10.9999L11 7.99992L6.33337 4.99992V10.9999ZM8.00004 14.6666C7.07782 14.6666 6.21115 14.4916 5.40004 14.1416C4.58893 13.7916 3.88337 13.3166 3.28337 12.7166C2.68337 12.1166 2.20837 11.411 1.85837 10.5999C1.50837 9.78881 1.33337 8.92214 1.33337 7.99992C1.33337 7.0777 1.50837 6.21103 1.85837 5.39992C2.20837 4.58881 2.68337 3.88325 3.28337 3.28325C3.88337 2.68325 4.58893 2.20825 5.40004 1.85825C6.21115 1.50825 7.07782 1.33325 8.00004 1.33325C8.92226 1.33325 9.78893 1.50825 10.6 1.85825C11.4112 2.20825 12.1167 2.68325 12.7167 3.28325C13.3167 3.88325 13.7917 4.58881 14.1417 5.39992C14.4917 6.21103 14.6667 7.0777 14.6667 7.99992C14.6667 8.92214 14.4917 9.78881 14.1417 10.5999C13.7917 11.411 13.3167 12.1166 12.7167 12.7166C12.1167 13.3166 11.4112 13.7916 10.6 14.1416C9.78893 14.4916 8.92226 14.6666 8.00004 14.6666ZM8.00004 13.3333C9.48893 13.3333 10.75 12.8166 11.7834 11.7833C12.8167 10.7499 13.3334 9.48881 13.3334 7.99992C13.3334 6.51103 12.8167 5.24992 11.7834 4.21659C10.75 3.18325 9.48893 2.66659 8.00004 2.66659C6.51115 2.66659 5.25004 3.18325 4.21671 4.21659C3.18337 5.24992 2.66671 6.51103 2.66671 7.99992C2.66671 9.48881 3.18337 10.7499 4.21671 11.7833C5.25004 12.8166 6.51115 13.3333 8.00004 13.3333Z"}})])])])]):"cloud"===t.iconName||"turboflare"===t.iconName?e("div",{staticClass:"menu-icon"},[t.active?e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"cloud_black_24dp 1","clip-path":"url(#clip0_1667_9448)"}},[e("path",{attrs:{id:"Vector",d:"M8 2.66675C6.07333 2.66675 4.4 3.76008 3.56667 5.36008C1.56 5.57341 0 7.27342 0 9.33342C0 11.5401 1.79333 13.3334 4 13.3334H12.6667C14.5067 13.3334 16 11.8401 16 10.0001C16 8.24008 14.6333 6.81341 12.9 6.69341C12.4467 4.39341 10.4267 2.66675 8 2.66675Z"}})]),e("defs",[e("clipPath",{attrs:{id:"clip0_1667_9448"}},[e("rect",{attrs:{width:"16",height:"16",fill:"white"}})])])])]):e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white","fill-opacity":"0.72",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"cloud_black_24dp 1","clip-path":"url(#clip0_171_1913)"}},[e("path",{attrs:{id:"Vector",d:"M8 3.99996C9.74667 3.99996 11.2533 5.23996 11.5933 6.95329L11.7933 7.95329L12.8133 8.02663C13.8533 8.09329 14.6667 8.96663 14.6667 9.99996C14.6667 11.1 13.7667 12 12.6667 12H4C2.52667 12 1.33333 10.8066 1.33333 9.33329C1.33333 7.96663 2.35333 6.82663 3.70667 6.68663L4.42 6.61329L4.75333 5.97996C5.38667 4.75996 6.6266
17 3.99996 8 3.99996ZM8 2.66663C6.07333 2.66663 4.4 3.75996 3.56667 5.35996C1.56 5.57329 0 7.27329 0 9.33329C0 11.54 1.79333 13.3333 4 13.3333H12.6667C14.5067 13.3333 16 11.84 16 9.99996C16 8.23996 14.6333 6.81329 12.9 6.69329C12.4467 4.39329 10.4267 2.66663 8 2.66663Z"}})]),e("defs",[e("clipPath",{attrs:{id:"clip0_171_1913"}},[e("rect",{attrs:{width:"16",height:"16",fill:"white"}})])])])])]):"security"===t.iconName?e("div",{staticClass:"menu-icon"},[t.active?e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"shield_black_24dp 1","clip-path":"url(#clip0_1667_9336)"}},[e("g",{attrs:{id:"Group"}},[e("path",{attrs:{id:"Vector",d:"M7.99996 1.33325L2.66663 3.33325V7.39325C2.66663 10.7599 4.93996 13.8999 7.99996 14.6666C11.06 13.8999 13.3333 10.7599 13.3333 7.39325V3.33325L7.99996 1.33325Z"}})])]),e("defs",[e("clipPath",{attrs:{id:"clip0_1667_9336"}},[e("rect",{attrs:{width:"16",height:"16",fill:"white"}})])])])]):e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white","fill-opacity":"0.72",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"shield_black_24dp 1","clip-path":"url(#clip0_171_1918)"}},[e("g",{attrs:{id:"Group"}},[e("path",{attrs:{id:"Vector",d:"M7.99984 1.33337L2.6665 3.33337V7.39337C2.6665 10.76 4.93984 13.9 7.99984 14.6667C11.0598 13.9 13.3332 10.76 13.3332 7.39337V3.33337L7.99984 1.33337ZM11.9998 7.39337C11.9998 10.06 10.2998 12.5267 7.99984 13.28C5.69984 12.5267 3.99984 10.0667 3.99984 7.39337V4.26004L7.99984 2.76004L11.9998 4.26004V7.39337Z"}})])]),e("defs",[e("clipPath",{attrs:{id:"clip0_171_1918"}},[e("rect",{attrs:{width:"16",height:"16",fill:"white"}})])])])])]):"talking-head"===t.iconName?e("div",{staticClass:"menu-icon"},[t.active?e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"account_box_FILL1_wght400_GRAD0_opsz24 1"}},[e("path",{attrs:{id:"Vector",d:"M8 8.66667C8.64444 8.66667 9.19444 8.43889 9.65 7.98333C10.1056 7.52778 10.3333 6.97778 10.3333 6.33333C10.3333 5.68889 10.1056 5.13889 9.65 4.68333C9.19444 4.22778 8.64444 4 8 4C7.35556 4 6.80556 4.22778 6.35 4.68333C5.89444 5.13889 5.66667 5.68889 5.66667 6.33333C5.66667 6.97778 5.89444 7.52778 6.35 7.98333C6.80556 8.43889 7.35556 8.66667 8 8.66667ZM3.33333 14C2.96667 14 2.65278 13.8694 2.39167 13.6083C2.13056 13.3472 2 13.0333 2 12.6667V3.33333C2 2.96667 2.13056 2.65278 2.39167 2.39167C2.65278 2.13056 2.96667 2 3.33333 2H12.6667C13.0333 2 13.3472 2.13056 13.6083 2.39167C13.8694 2.65278 14 2.96667 14 3.33333V12.6667C14 13.0333 13.8694 13.3472 13.6083 13.6083C13.3472 13.8694 13.0333 14 12.6667 14H3.33333ZM3.33333 12.6667H12.6667V11.9C12.0667 11.3111 11.3694 10.8472 10.575 10.5083C9.78056 10.1694 8.92222 10 8 10C7.07778 10 6.21944 10.1694 5.425 10.5083C4.63056 10.8472 3.93333 11.3111 3.33333 11.9V12.6667Z"}})])])]):e("div",[e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white","fill-opacity":"0.72",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"account_box_black_24dp 1","clip-path":"url(#clip0_171_1925)"}},[e("g",{attrs:{id:"Group"}},[e("path",{attrs:{id:"Vector",d:"M12.6667 2H3.33333C2.6 2 2 2.6 2 3.33333V12.6667C2 13.4 2.6 14 3.33333 14H12.6667C13.4 14 14 13.4 14 12.6667V3.33333C14 2.6 13.4 2 12.6667 2ZM11.3333 12.6667H4.66667V12.5067C5.61333 11.7467 6.77333 11.3333 8 11.3333C9.22667 11.3333 10.3867 11.7467 11.3333 12.5067V12.6667ZM12.6667 11.9067C11.4667 10.7267 9.82 10 8 10C6.18 10 4.53333 10.7267 3.33333 11.9067V3.33333H12.6667V11.9067ZM8 8.66667C9.28667 8.66667 10.3333 7.62 10.3333 6.33333C10.3333 5.04667 9.28667 4 8 4C6.71333 4 5.66667 5.04667 5.66667 6.33333C5.66667 7.62 6.71333 8.66667 8 8.66667ZM8 5.33333C8.55333 5.33333 9 5.78 9 6.33333C9 6.88667 8.55333 7.33333 8 7.33333C7.44667 7.33333 7 6.88667 7 6.33333C7 5.78 7.44667 5.33333 8 5.33333Z"}})])]),e("defs",[e("clipPath",{attrs:{id:"clip0_171_1925"}},[e("rect",{attrs:{width:"16",height:"16",fill:"white"}})])])])])]):"stat"===t.iconName?e("div",{staticClass:"menu-icon"},[(t.active,e("div",[e("svg",{staticStyle:{"enable-background":"new 0 0 505.083 505.083"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 505.083 505.083","xml:space":"preserve",fill:"white","fill-opacity":"0.72"}},[e("g",[e("path",{attrs:{d:"M479.744,102.561c-33.785-33.785-89.771-33.785-123.556,0s-33.785,89.771,0,123.556l0.965,0.965   c-15.444,20.271-29.924,41.507-45.368,61.778c-19.306-8.688-41.507-8.688-60.813,0.965c-19.306-22.201-37.646-44.403-56.952-66.604   c19.306-23.167,18.34-58.882-3.861-81.084c-23.167-23.167-61.778-23.167-84.945,0c-22.201,22.201-23.167,57.917-2.896,82.049   c-10.618,13.514-21.236,26.063-31.854,39.577c-18.34-8.688-41.507-4.826-55.986,10.618C4.826,284.034,0,296.582,0,310.
1096   c0,13.514,4.826,26.063,14.479,35.715s23.167,14.479,35.715,14.479s26.063-4.826,35.715-14.479s14.479-22.201,14.479-35.715   c0-11.583-3.861-22.201-10.618-30.889c10.618-13.514,21.236-26.063,31.854-39.577c8.688,3.861,17.375,5.792,27.028,5.792   s18.34-1.931,27.028-6.757c18.34,22.201,37.646,43.438,55.986,65.639c-27.993,27.993-27.993,74.327,0,102.32   c14.479,14.479,32.82,21.236,51.16,21.236c18.34,0,36.681-6.757,51.16-21.236c27.993-27.993,27.993-74.327,0-102.32   c-0.965-0.965-0.965-0.965-1.931-0.965c14.479-20.271,29.924-40.542,44.403-60.813c12.549,6.757,27.028,10.618,41.507,10.618   c22.201,0,44.403-8.688,61.778-25.097C513.529,192.332,513.529,136.346,479.744,102.561z M68.535,327.471   c-10.618,10.618-27.028,10.618-37.646,0c-4.826-4.826-7.722-11.583-7.722-18.34c0-6.757,2.896-13.514,7.722-18.34   s11.583-7.722,18.34-7.722s13.514,2.896,18.34,7.722s7.722,11.583,7.722,18.34S73.361,322.645,68.535,327.471z M122.591,209.707   c-14.479-14.479-14.479-36.681,0-51.16c14.479-14.479,36.681-14.479,51.16,0c14.479,14.479,14.479,36.681,0,51.16   C160.237,224.186,137.07,224.186,122.591,209.707z M316.612,389.249c-18.34,18.34-49.229,18.34-67.57,0   c-18.34-18.34-18.34-49.229,0-67.57c9.653-9.653,21.236-14.479,33.785-14.479c12.549,0,25.097,4.826,33.785,14.479   C335.918,340.02,335.918,369.944,316.612,389.249z M463.335,208.742c-24.132,24.132-64.674,24.132-88.806,0   s-24.132-64.674,0-88.806c12.549-12.549,28.958-18.34,44.403-18.34c16.41,0,31.854,5.792,44.403,18.34   C487.467,144.068,487.467,184.61,463.335,208.742z"}}),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("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")])]))]):"certs"===t.iconName?e("div",{staticClass:"menu-icon"},[(t.active,e("div",[e("svg",{staticStyle:{"enable-background":"new 0 0 471.7 471.7"},attrs:{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 471.7 471.7","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M360.8,200.6v-74.7c0.2-33.8-13.3-66.3-37.4-90C300.1,12.7,269.6,0,237.3,0c-0.5,0-1.1,0-1.6,0\n\t\t\tc-68.9,0.1-124.9,56.5-124.9,125.9v74.7c-26,3.1-45,24.9-45,51.3v167.8c0,28.5,22.8,52,51.3,52h237.5c28.5,0,51.3-23.5,51.3-52\n\t\t\tV251.9C405.8,225.6,386.8,203.7,360.8,200.6z M130.7,125.9h0.1c0-58.4,47.1-106.2,105-106.2h0.1c27.5-0.1,53.9,10.8,73.4,30.2\n\t\t\tc20.3,20.1,31.6,47.5,31.4,76v74.8h-22v-74.8c0.2-22.7-8.8-44.5-24.9-60.5c-15.2-15.2-35.8-23.8-57.3-23.8h-0.6\n\t\t\tc-46,0-83.2,37.8-83.2,84.2v74.9h-22V125.9z M298.8,125.9v74.8h-126v-74.8c0-35.4,28.2-64.2,63.2-64.2h0.6\n\t\t\tc16.2,0,31.8,6.5,43.3,18C292.1,91.9,299,108.6,298.8,125.9z M386.8,420L386.8,420c0,17.5-14.2,31.7-31.7,31.7H117.5\n\t\t\tc-17.5,0-31.7-14.2-31.7-31.7V252.4c0-17.5,14.2-31.7,31.7-31.7h237.6c17.5,0,31.7,14.2,31.7,31.7V420z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M270.4,330c-4.4-15.5-18.5-26.1-34.6-26.1c-19.9,0-36.1,16.1-36.1,36.1c0,16.1,10.6,30.2,26.1,34.6v28c0,5.5,4.5,10,10,10\n\t\t\ts10-4.5,10-10v-28C264.9,369.1,276,349.1,270.4,330z M235.8,356c-8.9,0-16.1-7.2-16.1-16.1c0-8.9,7.2-16.1,16.1-16.1\n\t\t\tc8.9,0,16.1,7.2,16.1,16.1C251.9,348.8,244.7,356,235.8,356z"}})])]),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")])]))]):"statuspage"===t.iconName?e("div",{staticClass:"menu-icon"},[(t.active,e("div",[e("svg",{staticClass:"icon",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M3.58268 14.3001C3.36046 14.389 3.15224 14.3668 2.95802 14.2335C2.76379 14.1001 2.66646 13.9168 2.66602 13.6835V10.7168C2.66602 10.4946 2.7189 10.2835 2.82468 10.0835C2.93046 9.88347 3.07757 9.72236 3.26602 9.60014L3.99935 9.11681C4.07713 10.0168 4.19668 10.7946 4.35802 11.4501C4.51935 12.1057 4.78313 12.8501 5.14935 13.6835L3.58268 14.3001ZM6.53268 13.3335C6.37713 13.3335 6.24379 13.2835 6.13268 13.1835C6.02157 13.0835 5.93824 12.9613 5.88268 12.8168C5.58268 12.0501 5.36046 11.3419 5.21602 10.6921C5.07157 10.0424 4.99935 9.29503 4.99935 8.45014C4.99935 7.2057 5.22157 6.0197 5.66602 4.89214C6.11046 3.76458 6.71602 2.85058 7.48268 2.15014C7.54935 2.08347 7.63002 2.03614 7.72468 2.00814C7.81935 1.98014 7.9109 1.96636 7.99935 1.96681C8.08779 1.96725 8.17957 1.98125 8.27468 2.00881C8.36979 2.03636 8.45024 2.08347 8.51602 2.15014C9.28268 2.85014 9.88824 3.76414 10.3327 4.89214C10.7771 6.02014 10.9993 7.20614 10.9993 8.45014C10.9993 9.3057 10.9271 10.0557 10.7827 10.7001C10.6382 11.3446 10.416 12.0501 10.116 12.8168C10.0605 12.9613 9.97713 13.0835 9.86602 13.1835C9.7549 13.2835 9.62157 13.3335 9.46602 13.3335
1H6.53268ZM7.99935 8.66681C8.36602 8.66681 8.68002 8.53636 8.94135 8.27547C9.20268 8.01459 9.33313 7.70059 9.33268 7.33347C9.33224 6.96636 9.20179 6.65259 8.94135 6.39214C8.6809 6.1317 8.3669 6.00103 7.99935 6.00014C7.63179 5.99925 7.31802 6.12992 7.05802 6.39214C6.79802 6.65436 6.66735 6.96814 6.66602 7.33347C6.66468 7.69881 6.79535 8.01281 7.05802 8.27547C7.32068 8.53814 7.63446 8.66859 7.99935 8.66681ZM12.416 14.3001L10.8493 13.6835C11.216 12.8501 11.48 12.1057 11.6413 11.4501C11.8027 10.7946 11.922 10.0168 11.9993 9.11681L12.7327 9.60014C12.9216 9.72236 13.0689 9.88347 13.1747 10.0835C13.2805 10.2835 13.3331 10.4946 13.3327 10.7168V13.6835C13.3327 13.9168 13.2356 14.1001 13.0413 14.2335C12.8471 14.3668 12.6387 14.389 12.416 14.3001Z"}})])]))]):"employees"===t.iconName?e("div",{staticClass:"menu-icon"},[e("svg",{staticStyle:{"enable-background":"new 0 0 80.13 80.13"},attrs:{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 80.13 80.13","xml:space":"preserve",fill:"white","fill-opacity":"0.72"}},[e("g",[e("path",{attrs:{d:"M48.355,17.922c3.705,2.323,6.303,6.254,6.776,10.817c1.511,0.706,3.188,1.112,4.966,1.112\n\t\tc6.491,0,11.752-5.261,11.752-11.751c0-6.491-5.261-11.752-11.752-11.752C53.668,6.35,48.453,11.517,48.355,17.922z M40.656,41.984\n\t\tc6.491,0,11.752-5.262,11.752-11.752s-5.262-11.751-11.752-11.751c-6.49,0-11.754,5.262-11.754,11.752S34.166,41.984,40.656,41.984\n\t\tz M45.641,42.785h-9.972c-8.297,0-15.047,6.751-15.047,15.048v12.195l0.031,0.191l0.84,0.263\n\t\tc7.918,2.474,14.797,3.299,20.459,3.299c11.059,0,17.469-3.153,17.864-3.354l0.785-0.397h0.084V57.833\n\t\tC60.688,49.536,53.938,42.785,45.641,42.785z M65.084,30.653h-9.895c-0.107,3.959-1.797,7.524-4.47,10.088\n\t\tc7.375,2.193,12.771,9.032,12.771,17.11v3.758c9.77-0.358,15.4-3.127,15.771-3.313l0.785-0.398h0.084V45.699\n\t\tC80.13,37.403,73.38,30.653,65.084,30.653z M20.035,29.853c2.299,0,4.438-0.671,6.25-1.814c0.576-3.757,2.59-7.04,5.467-9.276\n\t\tc0.012-0.22,0.033-0.438,0.033-0.66c0-6.491-5.262-11.752-11.75-11.752c-6.492,0-11.752,5.261-11.752,11.752\n\t\tC8.283,24.591,13.543,29.853,20.035,29.853z M30.589,40.741c-2.66-2.551-4.344-6.097-4.467-10.032\n\t\tc-0.367-0.027-0.73-0.056-1.104-0.056h-9.971C6.75,30.653,0,37.403,0,45.699v12.197l0.031,0.188l0.84,0.265\n\t\tc6.352,1.983,12.021,2.897,16.945,3.185v-3.683C17.818,49.773,23.212,42.936,30.589,40.741z"}})]),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")])]):"projects"===t.iconName||"nomenclature"===t.iconName||"leads"===t.iconName?e("div",{staticClass:"menu-icon"},[e("svg",{attrs:{viewBox:"-39 0 512 512",xmlns:"http://www.w3.org/2000/svg",fill:"white","fill-opacity":"0.72"}},[e("path",{attrs:{d:"m427.546875 123.933594c-1.136719-1.144532-116.585937-116.585938-118.136719-118.136719-3.714844-3.679687-8.785156-5.796875-14.074218-5.796875h-275.335938c-11.046875 0-20 8.953125-20 20v472c0 11.046875 8.953125 20 20 20h393.332031c11.046875 0 20-8.953125 20-20v-354c.003907-5.191406-2.035156-10.277344-5.785156-14.066406zm-112.210937-55.648438 49.714843 49.714844h-49.714843zm-275.335938 403.714844v-432h235.332031v98c0 11.046875 8.953125 20 20 20h98v314zm314.667969-216c0 11.046875-8.953125 20-20 20h-236c-11.046875 0-20-8.953125-20-20s8.953125-20 20-20h236c11.046875 0 20 8.953125 20 20zm-276-157.332031c0-11.046875 8.953125-20 20-20h78.667969c11.042968 0 20 8.953125 20 20s-8.957032 20-20 20h-78.667969c-11.046875 0-20-8.957031-20-20zm276 275.332031c0 11.046875-8.953125 20-20 20h-236c-11.046875 0-20-8.953125-20-20s8.953125-20 20-20h236c11.046875 0 20 8.953125 20 20zm0 0"}})])]):"brandings"===t.iconName?e("div",{staticClass:"menu-icon"},[e("svg",{staticStyle:{"enable-background":"new 0 0 431.985 431.985"},attrs:{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 431.985 431.985","xml:space":"preserve",fill:"white","fill-opacity":"0.72"}},[e("g",[e("path",{attrs:{d:"M423.257,51.829c-0.808-2.045-2.67-3.484-4.853-3.751c-2.177-0.266-4.335,0.682-5.612,2.472\n\t\tc-7.581,10.629-17.529,14.172-29.053,18.275c-9.292,3.31-18.901,6.73-29.286,14.186c-14.687,10.544-21.405,24.917-18.055,38.54\n\t\tl-0.358,0.459c-6.133-8.897-12.806-17.126-19.848-24.474c-32.947-34.378-78.984-55.046-126.311-56.703\n\t\tc-2.085-0.073-4.204-0.11-6.298-0.11c-52.846,0-103.428,23.624-138.775,64.813C9.646,146.512-5.939,199.853,2.051,251.882\n\t\tc0.668,4.349,1.504,8.743,2.487,13.063c12.996,57.202,46.189,100.717,91.069,119.383c11.063,4.602,22.222,6.934,33.163,6.934\n\t\tc27.183,0,50.926-14.539,65.143-39.889c5.404-9.646,8.891-19.621,10.36-29.651c0.866-5.92,0.274-11.835-0.3-17.567\n\t\tc-0.591-5.9-1.149-11.476-0.256-17.09c2.047-12.869,11.036-20.553,24.047-20.553c3.701,0,7.483,0.609,11.26,1.812\n\t\tc-4.422,8.11-8.438,15.854-11.947,23.032c-7.437,15.212-12.567,27.81-15.252,37.44c-1.655,5.939-6.052,21.722,4.67,29.164\n\t\tc3.405,2.363,7.722,3.197,12.215,2.361c4.049-0.752,16.369-3.041,51.378-42.896c9.396-10.695,19.521-23.072,30.104-36.794\n\t\tc27.168-9.15,48.31-31.921,53.903-58.087c1.4-6.541,1.984-13.541,1.735-20.812c10.172-15.72,19.094-30.388,28.072-46.156\n\t\tc0.172-0.304,0.342-0.628,0.51-0.96c13.031-3.569,24.254-13.71,30.842-27.891C434.872,106.028,434.163,79.428,423.257,51.829z\n\t\t M276.385,149.834c-4.713,7.485-12.814,11.954-21.673,11.954c-4.81,0-9.515-1.361-13.605-3.937\n\t\tc-5.782-3.642-9.803-9.317-11.316-15.98s-0.345-13.518,3.298-19.301c4.714-7.485,12.816-11.954,21.675-11.954\n\t\tc4.811,0,9.515,1.361,13.604,3.938c5.782,3.64,9.802,9.315,11.316,15.979C281.197,137.197,280.026,144.051,276.385,149.834z\n\t\t M309.592,196.187c12.934-19.057,26.612-38,39.604-54.85c2.106,1.902,4.461,3.76,7.012,5.53c4.227,2.933,8.648,5.201,13.164,6.754\n\t\tc-10.969,18.758-22.763,37.342-37.043,58.375c-23.463,34.571-47.859,66.684-68.695,90.424\n\t\tc-11.638,13.26-21.823,23.498-29.671,29.839c3.029-9.69,8.818-22.989,16.875-38.746\n\t\tC265.245,265.336,286.111,230.7
172,309.592,196.187z M82.506,196.023c-4.811,0-9.516-1.361-13.607-3.938\n\t\tc-5.782-3.641-9.801-9.314-11.315-15.979c-1.514-6.664-0.342-13.519,3.301-19.302c4.711-7.484,12.813-11.953,21.671-11.953\n\t\tc4.812,0,9.517,1.361,13.607,3.938c11.936,7.518,15.532,23.345,8.019,35.279C99.466,191.554,91.363,196.023,82.506,196.023z\n\t\t M55.688,252.358c4.713-7.486,12.814-11.955,21.673-11.955c4.81,0,9.514,1.362,13.606,3.938c5.782,3.641,9.801,9.315,11.315,15.979\n\t\tc1.515,6.662,0.343,13.516-3.301,19.301c-4.711,7.483-12.813,11.953-21.671,11.953c-4.811,0-9.517-1.361-13.609-3.938\n\t\tc-5.782-3.642-9.8-9.315-11.313-15.979C50.876,264.995,52.049,258.14,55.688,252.358z M137.62,100.414\n\t\tc4.713-7.485,12.815-11.954,21.673-11.954c4.809,0,9.514,1.361,13.604,3.937c11.937,7.516,15.533,23.344,8.019,35.28\n\t\tc-4.715,7.486-12.817,11.955-21.675,11.955c-4.81,0-9.515-1.361-13.605-3.938c-5.781-3.64-9.799-9.314-11.313-15.979\n\t\tC132.807,113.052,133.979,106.198,137.62,100.414z"}})]),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")])]):"track-projects-traffic"===t.iconName?e("div",{staticClass:"menu-icon"},[e("svg",{staticStyle:{"enable-background":"new 0 0 505.083 505.083"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 505.083 505.083","xml:space":"preserve",fill:"white","fill-opacity":"0.72"}},[e("g",[e("path",{attrs:{d:"M479.744,102.561c-33.785-33.785-89.771-33.785-123.556,0s-33.785,89.771,0,123.556l0.965,0.965   c-15.444,20.271-29.924,41.507-45.368,61.778c-19.306-8.688-41.507-8.688-60.813,0.965c-19.306-22.201-37.646-44.403-56.952-66.604   c19.306-23.167,18.34-58.882-3.861-81.084c-23.167-23.167-61.778-23.167-84.945,0c-22.201,22.201-23.167,57.917-2.896,82.049   c-10.618,13.514-21.236,26.063-31.854,39.577c-18.34-8.688-41.507-4.826-55.986,10.618C4.826,284.034,0,296.582,0,310.096   c0,13.514,4.826,26.063,14.479,35.715s23.167,14.479,35.715,14.479s26.063-4.826,35.715-14.479s14.479-22.201,14.479-35.715   c0-11.583-3.861-22.201-10.618-30.889c10.618-13.514,21.236-26.063,31.854-39.577c8.688,3.861,17.375,5.792,27.028,5.792   s18.34-1.931,27.028-6.757c18.34,22.201,37.646,43.438,55.986,65.639c-27.993,27.993-27.993,74.327,0,102.32   c14.479,14.479,32.82,21.236,51.16,21.236c18.34,0,36.681-6.757,51.16-21.236c27.993-27.993,27.993-74.327,0-102.32   c-0.965-0.965-0.965-0.965-1.931-0.965c14.479-20.271,29.924-40.542,44.403-60.813c12.549,6.757,27.028,10.618,41.507,10.618   c22.201,0,44.403-8.688,61.778-25.097C513.529,192.332,513.529,136.346,479.744,102.561z M68.535,327.471   c-10.618,10.618-27.028,10.618-37.646,0c-4.826-4.826-7.722-11.583-7.722-18.34c0-6.757,2.896-13.514,7.722-18.34   s11.583-7.722,18.34-7.722s13.514,2.896,18.34,7.722s7.722,11.583,7.722,18.34S73.361,322.645,68.535,327.471z M122.591,209.707   c-14.479-14.479-14.479-36.681,0-51.16c14.479-14.479,36.681-14.479,51.16,0c14.479,14.479,14.479,36.681,0,51.16   C160.237,224.186,137.07,224.186,122.591,209.707z M316.612,389.249c-18.34,18.34-49.229,18.34-67.57,0   c-18.34-18.34-18.34-49.229,0-67.57c9.653-9.653,21.236-14.479,33.785-14.479c12.549,0,25.097,4.826,33.785,14.479   C335.918,340.02,335.918,369.944,316.612,389.249z M463.335,208.742c-24.132,24.132-64.674,24.132-88.806,0   s-24.132-64.674,0-88.806c12.549-12.549,28.958-18.34,44.403-18.34c16.41,0,31.854,5.792,44.403,18.34   C487.467,144.068,487.467,184.61,463.335,208.742z"}}),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("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")])]):"staffInProject"===t.iconName?e("div",{staticClass:"menu-icon"},[e("svg",{staticClass:"previous",attrs:{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"459px",height:"459px",viewBox:"0 0 459 459","xml:space":"preserve"}},[e("g",[e("g",{attrs:{id:"reply"}},[e("path",{attrs:{d:"M178.5,140.25v-102L0,216.75l178.5,178.5V290.7c127.5,0,216.75,40.8,280.5,130.05C433.5,293.25,357,165.75,178.5,140.25z"}})])]),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,null,null,null).exports},props:{menuClose:{type:Boolean,default:!1},settings:{type:Object,default:function(){return{}}},currentActiveMenu:{type:String,default:""}},methods:{onClick(t,e=void 0){this.$user.isCDN1()&&(e?e.cdn1=!0:e={cdn1:!0});let a={menuItem:t,params:e};this.$emit("click",a)}}},p=(0,c.A)(m,(function(){var t=this,e=t._self._c;return e("Tooltip",{attrs:{disabled:!t.menuClose,"visible-arrow":!1,placement:"right","o
1pen-delay":1e3,content:t.$t(t.settings.text),effect:"light","popper-class":"sidenav-tooltip",id:`sidenav-button_${this.settings.id}`}},[e("div",{staticClass:"menu-item-wrapper flex align-center cursor-pointer",on:{click:function(e){return t.onClick(t.settings.name,t.settings.params)}}},[t.settings.name===t.currentActiveMenu?e("menu-highlight",{attrs:{short:this.menuClose}}):t._e(),e("div",{staticClass:"menu-item text-menu full-width",class:{"menu-item-active":t.settings.name===t.currentActiveMenu}},[e("SidenavIcons",{staticClass:"icon",class:{"margin-right":!t.menuClose},attrs:{iconName:t.settings.name,active:t.settings.name===t.currentActiveMenu}}),this.menuClose?t._e():e("span",[t._v(t._s(t.$t(t.settings.text)))]),"dns"!==t.settings.name||t.menuClose?"s3-media"!==t.settings.name||t.menuClose?t._e():e("div",{staticClass:"text-extralight text-sup text-green"},[t._v("new")]):e("div",{staticClass:"text-extralight text-sup text-green"},[t._v("βeta")])],1)],1)])}),[],!1,null,"87bc7838",null).exports,h={name:"PersonMenuItems",components:{MenuItem:p},props:{isCDN1:{type:Boolean,default:!1},currentActiveMenu:{type:String,default:""},isMenuClose:{type:Boolean,default:!1},menuItems:{type:Array}},data(){return{}},methods:{onElMenuClick(t){this.$emit("chgSubMenuItems",t)},goToStaffDashboard(){this.$user.resetProject(),this.$emit("resetSidenavSettings");const t=this.$localStorage.get("queryParamSearch");this.$localStorage.remove("queryParamSearch"),t?this.$router.push({name:"projects",query:t?{search:t}:{}}):this.$router.push({name:"projects"})}}},g=(0,c.A)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"menu relative flex column gap-3x padding-bottom-4x",class:{"menu-close align-center":t.isMenuClose}},[t._l(t.menuItems,(function(a){return e("menu-item",{attrs:{"menu-close":t.isMenuClose,settings:a,"current-active-menu":t.currentActiveMenu},on:{click:t.onElMenuClick}})})),t.$user.isStaffInProject()?e("menu-item",{attrs:{settings:{name:"staffInProject",icon:"home.svg",text:"Панель управления"},"menu-close":t.isMenuClose},on:{click:t.goToStaffDashboard}}):t._e()],2)}),[],!1,null,null,null).exports,v=a(25892),f=(a(37550),a(13195)),x=a(97029),b={setup(){const{personSubMenuItems:t}=(0,f.o)();return{personSubMenuItems:t}},data(){return{personMenuOpen:!1}},computed:{cdn1StaffSteppedInAccountName:{get:function(){return this.$user.accountName},set:function(t){this.$user.accountNames.length>1&&localStorage.setItem(x.v,t),this.$user.accountNames.includes(t)&&(this.$user.accountName=t,this.$user.accountUtoken=this.$user.accountsInfo[t].utoken)}},hasCustomSettings(){return this.$user.hasCustomSettings&&this.$branding.isCurrentCompany("CDNvideo")},hasProfileEntry(){return this.personSubMenuItems.some((t=>"person-info"===t.id))}},methods:{personMenuOpenHandle(t){this.personMenuOpen=!this.personMenuOpen,t.stopPropagation()},personSubMenuHandle(t){this.personMenuOpen=!1,t.callback(t)}},watch:{"$user.accountName":{handler:function(){this.$user.isCDN1()&&this.$user.getService()},immediate:!0}}},_=(0,c.A)(b,void 0,void 0,!1,null,null,null).exports,C=(0,c.A)({name:"LogoIcon",props:{short:{default:!1}}},(function(){return(0,this._self._c)("div",{staticClass:"logo-icon"},[void this.short],2)}),[],!1,null,null,null).exports,w=a(18738),y=a(64996),$={__name:"LocaleToggle",setup(t){const e=(0,s.getCurrentInstance)(),a=(0,s.ref)("en_US");function i(){"ru_RU"===e.proxy.getLocale()&&(a.value="ru_RU")}return(0,s.watch)(a,(t=>{e.proxy.setLocale(t)})),(0,s.onMounted)(i),{__sfc:!0,currentInstance:e,language:a,initLocaleToggle:i,branding:w.A,Toggle:y.A}}},S=(0,c.A)($,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return a.branding.languages.length>1?e(a.Toggle,{attrs:{values:{left:"en_US",right:"ru_RU"},"text-left":"English","text-right":"Русский",equivalent:!0,"font-size":14},model:{value:a.language,callback:function(t){a.language=t},expression:"language"}}):t._e()}),[],!1,null,null,null).exports,k=a(359),T=a(46894),A=a(16100),R=a(43018),P=a(66710),M={name:"Sidenav",components:{ToggleCloseMenu:a.n(P)(),Btn:T.A,TriangleArrow:v.A,PersonMenuItems:g,MenuItem:p,LocaleToggle:S,Modal:k.A,Logo:C,Telegram:A.A},mixins:[l,_],data(){return{isOverflowHidden:!1}},computed:{userType(){return this.$user.isCDN1()?"cdn1":"Staff"===this.$user.entityType?"staff":"person"},sidenavStyle(){return{"--background":this.$branding.sidenav.background,"--menu-active-color":this.$branding.sidenav.menu.active,"--menu-icon-fill-active-color":this.$branding.sidenav.menu.iconFillActive,"--menu-icon-fill-inactive-color":this.$branding.sidenav.menu.iconFillInactive,"--menu-text-active-color":this.$branding.sidenav.menu.textColorActive,"--menu-text-inactive-color":this.$branding.sidenav.menu.textColorInactive,"--toggle-active-color":this.$branding.sidenav.menu.textColorActive,"--toggle-inactive-color":this.$branding.sidenav.menu.textColorInactive}},isStaffInProject(){return this.$user.isStaffInProject()},isNewYearMode(){return(0,R.L)().isNewYearMode}},methods:{afterEnter(){this.isOverflowHidden=!1},beforeLeave(){this.isOverflowHidden=!0}}},L=(0,c.A)(M,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"navigation",style:t.sidenavStyle},[e("div",{staticClass:"sidenav-wrapper"},[e("div",{staticClass:"sidenav flex overflow-scroll no-scroll-bar gap-4x",class:{"sidenav-close":t.isMenuClose}},[e("div",{staticClass:"toggle-menu-btn",class:{"toggle-menu-btn-close":t.isMenuClose},on:{click:t.chgMenuClose}},[e("toggle-close-menu")],1),e("div",{staticClass:"logo-wrapper",class:{"logo-wrapper-close":t.isMenuClose,"logo-new-year":!t.isMenuClose&&this.$branding.isCurrentCompany("CDNv
1ideo")&&t.isNewYearMode}},[e("a",{staticClass:"logo flex",attrs:{href:"/"}},[e("img",{directives:[{name:"show",rawName:"v-show",value:!t.isMenuClose,expression:"!isMenuClose"}],attrs:{src:this.$branding.logo.url}}),e("img",{directives:[{name:"show",rawName:"v-show",value:this.$branding.logoShort.url&&t.isMenuClose,expression:"this.$branding.logoShort.url && isMenuClose"}],attrs:{src:this.$branding.logoShort.url}})])]),e("PersonMenuItems",{attrs:{"current-active-menu":t.currentActiveMenu,"is-menu-close":t.isMenuClose,"menu-items":t.menuItems[t.cdn1StaffSteppedInAccountName||"staff"!==t.userType?"person":"staff"]},on:{chgSubMenuItems:t.chgSubMenuItems}})],1),e("div",{staticClass:"person relative",class:{"person-close":t.isMenuClose}},[e("div",{staticClass:"menu-blur"}),t.cdn1StaffSteppedInAccountName&&"cdn1"===t.userType&&!t.isMenuClose?e("div",{staticClass:"profile"},[e("div",{staticClass:"title",class:{"overflow-hidden":t.isOverflowHidden}},[e("transition",{attrs:{duration:500},on:{"after-enter":t.afterEnter,"before-leave":t.beforeLeave}},[t.$user.accountName&&t.$user.accountNames.length>1&&!t.isMenuClose?e("div",{staticClass:"account"},[e("div",[t._v(t._s(t.$t("Текущий аккаунт"))+":")]),e("multiselect",{staticClass:"select",attrs:{options:t.$user.accountNames,placeholder:t.$t("Выберите аккаунт"),showLabels:!1,optionsLimit:t.$user.accountNames.length},model:{value:t.cdn1StaffSteppedInAccountName,callback:function(e){t.cdn1StaffSteppedInAccountName=e},expression:"cdn1StaffSteppedInAccountName"}})],1):t._e()]),t.$user.accountName&&!t.isMenuClose&&t.$user.accountNames.length<=1?[e("div",[t._v(t._s(t.$t("Ваш аккаунт"))+": "+t._s(t.cdn1StaffSteppedInAccountName))])]:t._e(),t.$user.accountsInfo[t.cdn1StaffSteppedInAccountName].companyName&&!t.isMenuClose?[e("div",[t._v(t._s(t.$t("Компания"))+": "+t._s(t.$user.accountsInfo[t.cdn1StaffSteppedInAccountName].companyName))])]:t._e(),t.$user.accountsInfo[t.cdn1StaffSteppedInAccountName].contractNumber&&!t.isMenuClose?[e("div",[t._v(t._s(t.$t("Договор"))+": "+t._s(t.$user.accountsInfo[t.cdn1StaffSteppedInAccountName].contractNumber))])]:t._e()],2)]):t._e(),e("div",{staticClass:"menu-item-wrapper flex column",attrs:{id:"sidenav-button_person"}},[e("div",{staticClass:"menu-item text-menu gap-2x justify-between",class:{"menu-item-active":"profile"===this.currentActiveMenu,"menu-item-selected":this.personMenuOpen},on:{click:function(e){return t.personMenuOpenHandle(e)}}},[e("div",{staticClass:"person-item grow"},[e("el-avatar",{staticClass:"avatar",attrs:{icon:"el-icon-user-solid"}}),this.hasProfileEntry&&"staff"===t.userType&&!t.isMenuClose?e("div",[e("p",[t._v(t._s(this.truncatedText(t.$user.staffDetails.first_name)))]),e("p",{staticClass:"menu-item-account"},[t._v(t._s(t.$t(t.$user.staffDetails.rolename)))])]):t._e(),this.isStaffInProject&&"staff"===t.userType&&!t.isMenuClose?e("div",[e("p",[t._v(t._s(this.truncatedText(t.cdn1StaffSteppedInAccountName)))])]):t._e(),t.cdn1StaffSteppedInAccountName&&"cdn1"===t.userType&&!t.isMenuClose?e("div",[e("p",[t._v(t._s(this.truncatedText(t.cdn1StaffSteppedInAccountName)))])]):t._e(),"person"!==t.userType||t.isMenuClose?t._e():e("div",[e("p",[t._v(t._s(this.truncatedText(t.$user.firstName)))]),e("p",{staticClass:"menu-item-account"},[t._v(t._s(this.truncatedText(t.cdn1StaffSteppedInAccountName)))])])],1),t.isMenuClose?t._e():e("TriangleArrow",{attrs:{size:"8px",direction:"right"}})],1),e("transition",{attrs:{name:"menu-subitems"}},[t.personMenuOpen?e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.personMenuOpenHandle,expression:"personMenuOpenHandle"}],staticClass:"menu-blocks"},[t._l(this.personSubMenuItems,(function(a,s){return e("div",{key:s,staticClass:"menu-block text-menu",attrs:{id:`sidenav-button_${a.id}`}},[a.callback?e("div",{on:{click:function(e){return t.personSubMenuHandle(a)}}},[t._v(t._s(t.$t(a.text)))]):a.href?e("a",{attrs:{href:a.href,target:"_blank"},on:{click:t.personMenuOpenHandle}},[t._v(t._s(t.$t(a.text)))]):t._e()])}
1)),e("LocaleToggle")],2):t._e()]),t.hasCustomSettings?e("div",{staticClass:"menu-item custom-settings justify-center"},[e("Tooltip",{attrs:{placement:"right"}},[[e("a",{attrs:{href:"https://z.cdnvideo.ru/projects/su/wiki/_cdn2_admin_settings_",target:"_blank"}},[t._v(t._s("custom setting"))])],e("template",{slot:"content"},[e("div",{staticClass:"text-caption"},[t._v(t._s(t.$t("У данного аккаунта присутствуют кастомные настройки")))])])],2)],1):t._e(),t.$user.companyName&&this.$branding.isCurrentCompany("CDNvideo")?e("div",{staticClass:"menu-item custom-settings justify-center"},[e("Tooltip",{attrs:{placement:"right"}},[[e("span",[t._v(t._s(t.$user.companyName))])],e("template",{slot:"content"},[e("div",{staticClass:"text-caption"},[t._v(t._s(t.$t("White label")))])])],2)],1):t._e()],1)])])])}),[],!1,null,"7490c157",null).exports;let D=[],E=0,z={text:"",html:"",lifetime:4e3},N={show(t){return t=Object.assign({},z,{index:E++},t),D.splice(0,1),D.push(t),t.lifetime&&setTimeout((()=>{this.hide(t)}),t.lifetime),t},hide(t){if(!t)return D.splice(0,1)[0];let e,a=t.index;return D.some((function(t,s){if(t.index===a)return e=s,!0})),void 0!==e&&D.splice(e,1)[0]}};var I={name:"toast",props:{sidenav:{default:!1}},data(){return{toasts:D}},methods:{close(t){N.hide(t)}},install(t,e){(e=Object.assign(z,e)).name=e.name||"toast",t.prototype.$toast=N,t.component(e.name,this)}},O=(0,c.A)(I,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"toasts",class:{sidenav:t.sidenav}},[e("transition-group",{attrs:{appear:"","enter-active-class":"animated fadeInUp","leave-active-class":"animated fadeOutUp",mode:"out-in",duration:{enter:450,leave:150}}},t._l(t.toasts,(function(a){return e("div",{key:a.index,staticClass:"toast content text-regular"},[e("div",{staticClass:"close",on:{click:function(e){return t.close(a)}}},[e("svg",{staticClass:"close-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",width:"512px",height:"512px"}},[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")])]),a.text?e("span",{domProps:{textContent:t._s(t.$t(a.text))}}):t._e(),a.html?e("span",{domProps:{innerHTML:t._s(t.$t(a.html))}}):t._e()])})),0)],1)}),[],!1,null,"236ae35e",null).exports,U=a(96720),V=a(76445);let B=(0,U.A)(),F={uploadPath:"",isVisible:!1},H={show(t){return F.uploadPath=t,F.isVisible=!0,!0},close(){return F.isVisible=!1,!0},on(t,e){B.on(t,e)},off(t,e){B.off(t,e)}};var j={name:"PersistentFilesUploader",components:{FilesUploadDialog:V.A},data(){return F},methods:{emitFileUpload(t){B.emit("file-upload",t)}},install(t,e){(e=e||{}).name=e.name||"PersistentFilesUploader",t.prototype.$filesUploader=H,t.component(e.name,this)}},q=(0,c.A)(j,(function(){var t=this;return(0,t._self._c)("files-upload-dialog",{attrs:{visible:t.isVisible,path:t.uploadPath},on:{"update:visible":function(e){t.isVisible=e},"file-upload":t.emitFileUpload}})}),[],!1,null,null,null).exports,G=a(73845),Y={__name:"GlobalModal",setup(t){const{visible:e,modalConfig:a,closeGlobalModal:s}=(0,G.g)();return{__sfc:!0,visible:e,modalConfig:a,closeGlobalModal:s}}},W=(0,c.A)(Y,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return a.visible?e(a.modalConfig.component,t._g(t._b({tag:"component",attrs:{visible:a.visible},on:{close:a.closeGlobalModal}},"component",a.modalConfig.props,!1),a.modalConfig.emits)):t._e()}),[],!1,null,null,null).exports,Z=a(76458),K={name:"VerifiedAttentionDialog",components:{Btn:T.A},data(){return{dialogVisibility:!1}},computed:{isRussianNumber(){return(0,Z.fM)(this.$user.accountPhone)}},methods:{toggleDialogVisibility(){this.dialogVisibility=!this.dialogVisibility},goToVerifyService(){this.toggleDialogVisibility(),this.$router.push({name:"profile-person"})}},watch:{"$user.serviceVerified":function(t){void 0===t||!1!==t||this.$user.isCDN2Staff()&&this.$user.accountName||this.$user.isCDN1()||this.$user.isCDN1Staff()||this.toggleDialogVisibility()}}},J=(0,c.A)(K,(function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"custom",attrs:{title:t.$t("Ваша учетная запись не подтверждена"),width:"393px",visible:t.dialogVisibility},on:{"update:visible":function(e){t.dialogVisibility=e}}},[e("div",{staticClass:"text-extralight"},[t.isRussianNumber?e("span",[t._v(t._s(t.$t("В соответствии с Постановлением Правительства РФ от 29.11.2023 №2011 вам необходимо пройти обязательную процедуру аутентификации. Просим вас сделать это до 15 сентября 2024 г. Вам нужно верифицировать номер телефона в Учетная запись -> Телефон. Если такой возможности нет, обратитесь пожалуйста к вашему менеджеру или в")))]):e("span",[t._v(t._s(t.$t("Пожалуйста, пройдите процедуру верификации аккаунта. Для этого введите свой номер телефона российского оператора связи или свяжитесь с нами по адресу ")))]),e("a",{attrs:{href:"mailto:sales@
1cdnvideo."+("ru_RU"===this.$i18n.locale?"ru":"com")}},[t._v(t._s(" sales@cdnvideo."+("ru_RU"===this.$i18n.locale?"ru":"com")))])]),e("template",{slot:"footer"},[e("div",{staticClass:"flex align-center gap-2x"},[e("Btn",{on:{click:t.goToVerifyService}},[t._v(t._s(t.$t("Верифицировать")))]),e("Btn",{attrs:{type:"secondary"},on:{click:t.toggleDialogVisibility}},[t._v(t._s(t.$t("Пропустить")))])],1)])],2)}),[],!1,null,null,null).exports;const X="+7 495 782 17 32",Q=["CDNvideo","TurboFlare"],tt={CDNvideo:"2026-04-09T00:00:00Z",TurboFlare:"2026-07-16T00:00:00Z"},et="init",at="phone",st="code",it="manager";a(30670),a(81454);const rt="phone_only",nt="phone_and_manager",ot={[rt]:["TurboFlare"],[nt]:["CDNvideo"]},ct=Object.fromEntries(Object.entries(ot).flatMap((([t,e])=>e.map((e=>[e,t])))));function lt(t){return t===nt}const dt=(0,i.nY)("identification",(()=>{const t=(0,s.computed)((()=>x.A.isAuth())),e=(0,s.computed)((()=>Boolean(w.A&&w.A.company.name))),a=(0,s.computed)((()=>e.value?Q.includes(w.A.company.name):void 0)),i=(0,s.computed)((()=>void 0!==a.value&&t.value?Boolean(!x.A.isCDN1()&&"Staff"!==x.A.entityType&&a.value):void 0)),r=(0,s.computed)((()=>x.A.identified)),n=(0,s.computed)((()=>x.A.accountCreatedAt)),o=(0,s.computed)((()=>tt[w.A.company.name])),c=(0,s.computed)((()=>void 0!==n.value?new Date(n.value)>new Date(o.value):void 0)),l=(0,s.computed)((()=>!!i.value&&(void 0===r.value||void 0===n.value))),d=(0,s.computed)((()=>void 0===i.value||l.value?void 0:i.value&&!0===c.value&&!1===r.value)),u=(0,s.computed)((()=>{return e.value?(t=w.A.company.name,ct[t]??null):void 0;var t}));return{isCheckingIdentification:l,isIdentificationRequired:d,identificationType:u}}));var ut=a(30852),mt=a(19850),pt={__name:"IdentificationInit",emits:["goToStep","userLogOut"],setup(t,{emit:e}){const{isSuccess:a,isLoading:i,sendIdentificationRequest:r}=function(){const t=(0,s.ref)(!1),e=(0,s.ref)(!1),a=(0,s.ref)(!1);return{isSuccess:a,isLoading:t,sendIdentificationRequest:async function(){if(!t.value){t.value=!0,e.value=!1,a.value=!1;try{await ut.A.createIdentificationRequests(),a.value=!0}catch(t){e.value=!0;const a=409===t.response.status?"Учетная запись уже подтверждена":"Произошла ошибка. Попробуйте еще раз";mt.A.error({message:a})}finally{t.value=!1}}}}}(),n=(0,s.computed)((()=>X.replace(/[^+\d]/g,"")));function o(){e("goToStep",it)}return{__sfc:!0,emit:e,isSuccess:a,isLoading:i,sendIdentificationRequest:r,salesFormattedPhone:n,handleSendIdentificationRequest:async function(){await r(),a.value&&o()},goToManagerStep:o,goToPhoneStep:function(){e("goToStep",at)},logOut:function(){e("userLogOut")},Btn:T.A,SALES_EMAIL:"[email protected]",SALES_PHONE:X}}},ht=(0,c.A)(pt,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"content identification-init"},[e("h2",{staticClass:"text-sub-header-1 padding-top padding-bottom-3x"},[t._v(t._s(t.$t("Необходимо подтвердить учетную запись")))]),e("p",{staticClass:"text-menu margin-top"},[t._v(t._s(t.$t("Пожалуйста, подтвердите учетную запись доступным методом.")))]),e("p",{staticClass:"text-menu margin-top-2x"},[t._v(t._s(t.$t("Если у вас нет российского номера телефона, вы можете подтвердить учетную запись"))+" "),e("span",{staticClass:"text-menu text-semibold"},[t._v(" "+t._s(t.$t("через менеджера"))+".")])]),e("p",{staticClass:"text-regular text-underline margin-top-4x"},[t._v(t._s(t.$t("Возникли трудности? Обратитесь к нам")))]),e("a",{staticClass:"text-blue text-regular text-semibold margin-top-2x block width-fit-content",attrs:{href:"mailto:"+a.SALES_EMAIL}},[t._v(" "+t._s(a.SALES_EMAIL)+" ")]),e("a",{staticClass:"text-blue text-regular text-semibold margin-top-2x block width-fit-content",attrs:{href:"tel:"+a.salesFormattedPhone}},[t._v(" "+t._s(a.SALES_PHONE)+" ")]),e(a.Btn,{staticClass:"margin-top-2x",attrs:{type:"link"},on:{click:a.logOut}},[e("span",{staticClass:"text-regular text-semibold"},[t._v(t._s(t.$t("Выйти из учетной записи")))])]),e("div",{staticClass:"flex gap-2x wrap margin-top-3x padding-bottom"},[e(a.Btn,{on:{click:a.goToPhoneStep}},[t._v(t._s(t.$t("Российский номер телефона")))]),e(a.Btn,{attrs:{type:"secondary",disabled:a.isLoading},on:{click:a.handleSendIdentificationRequest}},[t._v(t._s(t.$t("Подтвердить через менеджера")))])],1
1)],1)}),[],!1,null,null,null).exports,gt=a(10216),vt=a(70085),ft=a(60159),xt=a(85838);function bt(){const t=(0,s.ref)(!1),e=(0,s.ref)(!1),a=(0,s.ref)(!1);return{isSuccess:a,isLoading:t,sendSmsCode:async function(s){if(!t.value){t.value=!0,e.value=!1,a.value=!1;try{await ut.A.sendSmsCode({captchaToken:s.captchaToken},{phone:"+"+s.phone.replace(/\D/g,"")}),a.value=!0}catch(t){e.value=!0;const a=t.response.status;let s="Неизвестная ошибка, повторите запрос позже.";429===a?s="Запрос кода с одного IP-адреса возможен не чаще одного раза в минуту.":409===a&&t.response.data.includes("Phone is already in use")&&(s="Телефон уже используется"),mt.A.error({message:s})}finally{t.value=!1}}}}}const _t=(0,i.nY)("identification-phone",(()=>{const t=(0,s.ref)(""),e=(0,s.ref)({}),a=(0,s.ref)(null),i=(0,s.ref)(!1);function r(t){e.value={...e.value,...t},function(){try{localStorage.setItem("identification_send",JSON.stringify(e.value))}catch{}}()}return(0,s.watch)(t,(t=>{localStorage.setItem("identification_phone",t)})),function(){const a=localStorage.getItem("identification_phone");a&&(t.value=a);try{const t=localStorage.getItem("identification_send");t&&(e.value={...e.value,...JSON.parse(t)})}catch{}}(),{captchaToken:a,captchaPassed:i,identificationPhone:t,identificationSendInfo:e,updateSendInfoBySendCode:function(){r({sendTime:(new Date).getTime(),attempt:3,sendCode:!0})},clearSendInfo:function(){r({sendTime:void 0,attempt:void 0,sendCode:!1})},useSendAttempt:function(){r({attempt:e.value.attempt>0?e.value.attempt-1:0})},clearStore:()=>{t.value="",e.value={},localStorage.removeItem("identification_phone"),localStorage.removeItem("identification_send")}}}));var Ct={__name:"IdentificationEnterPhone",emits:["goToStep","userLogOut"],setup(t,{emit:e}){const a=_t(),{identificationPhone:r,identificationSendInfo:n,captchaToken:o,captchaPassed:c}=(0,i.bP)(a),{updateSendInfoBySendCode:l,clearSendInfo:d}=a,u=dt(),{identificationType:m}=(0,i.bP)(u),p=(0,s.computed)((()=>lt(m.value))),{isSuccess:h,isLoading:g,sendSmsCode:v}=bt(),f=(0,s.ref)(r.value),x=(0,s.ref)(null),b=(0,s.ref)(!1),{isShowErrorAllowed:_,handleInputSubmit:C,handleInputFocus:w,handleInputBlur:y,handleInputUpdate:$}=function(t,e={}){const a=(0,s.ref)(!1),i=(0,xt.s)((()=>{a.value=!0}),300);return{isShowErrorAllowed:a,handleInputSubmit:function(){t.value.$refs.input.blur(),a.value=!0,e.submit&&e.submit()},handleInputFocus:function(){a.value=!1},handleInputBlur:function(){a.value=!0},handleInputUpdate:function(t){a.value&&(a.value=!1),e.update&&e.update(t),i()}}}(x,{update:k,submit:A}),S=(0,s.computed)((()=>f.value&&(0,Z.C2)(f.value)&&(0,Z.fM)(f.value)));function k(t){f.value=(0,vt.q)(t)}function A(){S.value&&(r.value!==f.value?(r.value=f.value,c.value=!1,b.value=!0,d()):c.value?n.value.sendCode?P():R():b.value=!0)}async function R(){await v({phone:r.value,captchaToken:o.value}),h.value?(l(),P()):d()}function P(){e("goToStep",st)}return(0,s.onMounted)((()=>{x.value?.focus()})),{__sfc:!0,emit:e,identificationPhoneStore:a,identificationPhone:r,identificationSendInfo:n,captchaToken:o,captchaPassed:c,updateSendInfoBySendCode:l,clearSendInfo:d,identificationStore:u,identificationType:m,hasIdentificationByManager:p,isSuccess:h,isLoading:g,sendSmsCode:v,phone:f,phoneInputRef:x,showCaptcha:b,isShowErrorAllowed:_,handleInputSubmit:C,handleInputFocus:w,handleInputBlur:y,handleInputUpdate:$,isPhoneValid:S,formatPhoneInput:k,handleSendCode:A,onSendSmsCode:R,onCaptchaSuccess:async function(t){c.value=!0,o.value=t,await R(),b.value=!1},goToCodeStep:P,goToInitStep:function(){e("goToStep",et)},logOut:function(){e("userLogOut")},Btn:T.A,Textbox:gt.A,SmartCaptcha:ft.A}}},wt=(0,c.A)(Ct,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"full-height"},[a.showCaptcha?e("div",{staticClass:"flex full-height align-center justify-center padding-left padding-right"},[e(a.SmartCaptcha,{staticClass:"full-width margin-bottom-2x",on:{callBack:a.onCaptchaSuccess}})],1):[e("p",{staticClass:"text-extralight text-on-block-1"},[t._v(" "+t._s(t.$t("Введите свой номер телефона российского оператора связи, чтобы получить код."))+" ")]),e("div",{staticClass:"field relative margin-top-2x"},[e("label",{staticClass:"text-regular margin-bottom"},[t._v(t._s(t.$t("Телефон ")))]),e(a.Textbox,{ref:"phoneInputRef",attrs:{type:"tel",autocomplete:"phone",name:"phone",id:"identify-phone",ymDisable:!0},on:{focus:a.handleInputFocus,blur:a.handleInputBlur,input:a.handleInputUpdate,submit:a.handleInputSubmit}
1,model:{value:a.phone,callback:function(t){a.phone=t},expression:"phone"}}),a.phone&&a.isShowErrorAllowed&&!a.isPhoneValid?e("span",{staticClass:"input-error"},[t._v(t._s(t.$t("Введите валидный номер телефона")))]):t._e()],1),e("div",{staticClass:"flex gap-2x wrap margin-top-3x padding-bottom"},[e(a.Btn,{attrs:{disabled:!a.isPhoneValid||a.isLoading},on:{click:a.handleSendCode}},[t._v(t._s(t.$t("Отправить код")))]),a.hasIdentificationByManager?e(a.Btn,{attrs:{type:"secondary"},on:{click:a.goToInitStep}},[t._v(t._s(t.$t("Назад")))]):e(a.Btn,{attrs:{type:"secondary"},on:{click:a.logOut}},[t._v(t._s(t.$t("Выйти")))])],1)]],2)}),[],!1,null,null,null).exports,yt=a(46911),St=a(90920),kt={__name:"IdentificationSendCode",emits:["goToStep"],setup(t,{emit:e}){const a=(0,s.ref)(""),r=_t(),{identificationPhone:n,identificationSendInfo:o,captchaToken:c}=(0,i.bP)(r),{updateSendInfoBySendCode:l,clearSendInfo:d,useSendAttempt:u}=r,{isSuccess:m,isLoading:p,sendSmsCode:h}=bt(),{isSuccess:g,isLoading:v,phoneVerify:f}=function(){const t=(0,s.ref)(!1),e=(0,s.ref)(!1),a=(0,s.ref)(!1);return{isSuccess:a,isLoading:t,phoneVerify:async function(s){if(!t.value){t.value=!0,e.value=!1,a.value=!1;try{await ut.A.phoneVerify({},{phone:"+"+s.phone.replace(/\D/g,""),code:s.code}),a.value=!0,mt.A.success({message:"Ваша учетная запись подтверждена"})}catch(t){e.value=!0;let a="Неизвестная ошибка, повторите запрос позже.";if(403===t.response.status){const e=t.response.data;e.includes("Wrong code or phone")?a="Код введен неверно":e.includes("Code expired")&&(a="Истёк срок действия кода")}mt.A.error({message:a})}finally{t.value=!1}}}}}(),b=(0,s.ref)(void 0),_=(0,s.computed)((()=>b.value.formatTime)),C=(0,s.computed)((()=>o.value?.attempt>0));return(0,s.watch)(o,(t=>{t.sendTime&&(b.value=new St.A(60,t.sendTime))}),{immediate:!0,deep:!0}),{__sfc:!0,emit:e,refCodeInputBasename:"identification_code_",code:a,identificationPhoneStore:r,identificationPhone:n,identificationSendInfo:o,captchaToken:c,updateSendInfoBySendCode:l,clearSendInfo:d,useSendAttempt:u,isSendSmsCodeSuccess:m,isSendSmsCodeLoading:p,sendSmsCode:h,isPhoneVerifySuccess:g,isPhoneVerifyLoading:v,phoneVerify:f,customTimer:b,formattedTime:_,isCodeInputEnable:C,updateCode:function(t){a.value=t},resendCode:async function(){p.value||v.value||(await h({phone:n.value,captchaToken:c.value}),m.value?l():d())},onCompleted:async function(t){await f({phone:n.value,code:t}),u(),g.value?(await x.A.getPersonData(),r.clearStore()):(a.value="",o.value?.attempt||mt.A.error({message:"Вы использовали 3 попытки, запросите код повторно"}))},goToPhoneStep:function(){e("goToStep",at)},CodeInput:yt.A,IDENTIFICATION_CODE_LENGTH:4}}},Tt=(0,c.A)(kt,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",[e("p",{staticClass:"text-extralight text-on-block-1"},[t._v(" "+t._s(t.$t("Введите полученный код в форму ниже."))+" ")]),e("p",{staticClass:"text-regular margin-top-2x"},[t._v(" "+t._s(t.$t("Код из смс, выслан на номер"))+" "),e("span",[t._v(" "+t._s(a.identificationPhone))])]),e("div",{staticClass:"margin-top-3x margin-bottom-3x"},[e(a.CodeInput,{staticStyle:{"justify-self":"flex-start"},attrs:{value:a.code,length:a.IDENTIFICATION_CODE_LENGTH,refBasename:a.refCodeInputBasename,disabled:!a.isCodeInputEnable||a.isPhoneVerifyLoading,onlyNumbers:""},on:{completed:a.onCompleted,change:a.updateCode}})],1),e("div",{staticClass:"text-caption"},[a.customTimer?.isTimerRunning?e("p",[t._v(t._s(t.$t("Отправить код повторно через"))+" "),e("span",[t._v(" "+t._s(a.formattedTime))])]):e("p",{staticClass:"text-blue cursor-pointer",on:{click:a.resendCode}},[t._v(t._s(t.$t("Отправить код повторно")))]),e("p",{staticClass:"text-blue cursor-pointer",on:{click:a.goToPhoneStep}},[t._v(t._s(t.$t("Изменить номер телефона")))])])])}),[],!1,null,null,null).exports,At={__name:"IdentificationPhone",props:{identificationStep:{type:String,required:!0}},emits:["goToStep","userLogOut"],setup(t,{emit:e}){return{__sfc:!0,emit:e,goToIdentificationStep:function(t){e("goToStep",t)},logOut:function(){e("userLogOut")},IdentificationEnterPhone:wt,IdentificationSendCode:Tt}}},Rt=At,Pt=(0,c.A)(Rt,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"content flex column identification-phone"},[e("h2",{staticClass:"text-header-2 padding-bottom-2x text-center"},[t._v(t._s(t.$t("Подтвердите номер телефона ")))]),e("div",{staticClass:"identification-phone-content"},["phone"===t.identificationStep?e(a.IdentificationEnterPhone,{on:{goToStep:a.goToIdentificationStep,userLogOut:a.logOut}}):e(a.IdentificationSendCode,{on:{goToStep:a.goToIdentificationStep}})],1)])}),[],!1,null,null,null).exports,Mt=a(81284),Lt={__name:"IdentificationManager",emits:["goToStep","userLogOut"],setup(t,{emit:e}){const{openContactUsModal:a}=(0,Mt.v)();return{__sfc:!0,emit:e,openContactUsModal:a,contactSupport:function(){a({props:{showContact:{supportSdn:!0}}})},goToInitStep:function(){e("goToStep",et)},logOut:function(){e("userLogOut")},Btn:T.A}}},Dt=(0,c.A)(Lt,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"content identification-manager"},[e("h2",{staticClass:"text-sub-header-1 padding-top padding-bottom-2x"},[t._v(t._s(t.$t("Заявка на подтверждение отправлена")))]),e("p",{staticClass:"text-menu"},[t._v(t._s(t.$t("Обычно она обрабатывается за 1-2 рабочих дня.")))]),e("p",{staticClass:"text-menu margin-top-2x margin-bottom-2x"},[t._v(t._s(t.$t("Что дальше?")))]),e("ol",{staticClass:"content-list"},[e("li",{staticClass:"text-menu"},[t._v(t._s(t.$t("Менеджер свяжется с вами на email")))]),e("li",{staticClass:"text-menu"},[t._v(t._s(t.$t("После проверки документов активируем ваш аккаунт")))])]),e("div",{staticClass:"flex gap margin-top-4x"},[e("p",{staticClass:"text-menu text-accent"},[t._v(t._s(t.$t("Есть вопросы?")))]),e(a.Btn,{attrs:{type:"link"},on:{click:a.contactSupport}},[e("span",{staticClass:"text-accent"},[t._v(t._s(`<${t.$t("Написать в поддержку")}>
1`))])])],1),e("p",{staticClass:"text-menu margin-top-2x"},[t._v(t._s(t.$t("Или используйте российский номер"))+":")]),e(a.Btn,{staticClass:"margin-top-2x",attrs:{type:"link"},on:{click:a.goToInitStep}},[e("span",{staticClass:"text-accent"},[t._v(t._s(`<${t.$t("Изменить способ подтверждения")}>`))])]),e(a.Btn,{staticClass:"margin-top-2x",attrs:{type:"link"},on:{click:a.logOut}},[e("span",{staticClass:"text-accent"},[t._v(t._s(t.$t("Выйти из учетной записи")))])])],1)}),[],!1,null,null,null).exports;var Et={__name:"IdentificationStepManager",setup(t){const e={[et]:ht,[at]:Pt,[st]:Pt,[it]:Dt},a=_t(),{identificationStep:n,isCurrentStepInitialized:o,initializeCurrentStep:c,setIdentificationStep:l}=function(){const t=(0,s.ref)(),e=(0,s.ref)(!1),a=dt(),{identificationType:r}=(0,i.bP)(a),n=_t(),{identificationPhone:o,identificationSendInfo:c}=(0,i.bP)(n),{identificationRequest:l,getIdentificationRequest:d}=function(){const t=(0,s.ref)(!1),e=(0,s.ref)(!1),a=(0,s.ref)({});return{isLoading:t,identificationRequest:a,getIdentificationRequest:async function(){if(!t.value&&x.A.personId){t.value=!0,e.value=!1;try{const t=await ut.A.getIdentificationRequests({person_id:x.A.personId});a.value=t.data.data[0]}catch(t){e.value=!0,a.value={}}finally{t.value=!1}}}}}();return{isCurrentStepInitialized:e,identificationStep:t,initializeCurrentStep:async function(){const a=lt(r.value),s=a?et:at;try{e.value=!0,a&&await d(),t.value="sent"===l.value?.status?it:o.value?c.value.sendCode?st:at:s}catch{t.value=s}finally{e.value=!1}},setIdentificationStep:e=>t.value=e}}(),d=(0,s.computed)((()=>e[n.value]??null));return(0,s.onMounted)(c),{__sfc:!0,IDENTIFICATION_STEP_TO_MODAL:e,identificationPhoneStore:a,identificationStep:n,isCurrentStepInitialized:o,initializeCurrentStep:c,setIdentificationStep:l,currentModal:d,logOut:function(){x.A.logout(),a.clearStore()},Spinner:r.A}}}
1,zt=(0,c.A)(Et,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"flex column full-height full-width justify-center align-center identification-step"},[a.isCurrentStepInitialized?e(a.Spinner,{staticClass:"identification-step-loader"}):a.currentModal?e("div",{staticClass:"identification-content"},[e("Transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",mode:"out-in"}},[e(a.currentModal,{key:a.identificationStep,tag:"component",attrs:{identificationStep:a.identificationStep},on:{goToStep:a.setIdentificationStep,userLogOut:a.logOut}})],1)],1):t._e()],1)}),[],!1,null,null,null).exports,Nt={__name:"index",setup(t){const e=dt(),{isCheckingIdentification:a,isIdentificationRequired:s}=(0,i.bP)(e);return{__sfc:!0,identificationStore:e,isCheckingIdentification:a,isIdentificationRequired:s,Spinner:r.A,LocaleToggle:S,IdentificationStepManager:zt}}},It=(0,c.A)(Nt,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"container flex column full-height full-width identification"},[a.isCheckingIdentification?e(a.Spinner,{staticClass:"identification-loader"}):e("div",{staticClass:"flex column full-height"},[e("div",{staticClass:"flex column identification-main"},[a.isIdentificationRequired?e(a.IdentificationStepManager):t._e()],1),e("div",{staticClass:"padding-top-3x padding-bottom-3x flex justify-center identification-footer"},[e(a.LocaleToggle)],1)])],1)}),[],!1,null,null,null).exports,Ot=a(30700),Ut={name:"App",provide(){return{$user:this.$user,$branding:this.$branding,$api:this.$api,$message:this.$message,$router:this.$router,currentLocale:this.currentLocale}},components:{Spinner:r.A,Sidenav:L,Toast:O,LocaleToggle:S,GlobalModal:W,VerifiedAttentionDialog:J,PersistentFilesUploader:q,Identification:It},data(){return{isMenuClose:!1,isPhoneVerificationEnabled:!1}},computed:{...(0,i.aH)(dt,["isCheckingIdentification","isIdentificationRequired"]),isNewYearMode(){return(0,R.L)().isNewYearMode},background(){const t=this.$branding.backgroundLoginGlobal.url;return t?`url(${t}) center / cover no-repeat`:this.$branding.mainInterface.background},auth(){return this.$user.isAuth()},sidenav(){return this.auth&&(this.$user.projectId||"Staff"===this.$user.entityType||this.$user.isCDN1())},showSkeleton(){return this.$user.isLoading&&this.auth},showIdentification(){return this.isCheckingIdentification||this.isIdentificationRequired},appStyle(){return{"--background-image":this.background,"--main-color":this.$branding.mainInterface.main,"--button-primary-color":this.$branding.mainInterface.button,"--font-color":this.$branding.mainInterface.font,"--font-color-inactive":this.$branding.mainInterface.fontInactive,"--background-color":this.$branding.mainInterface.background,"--mixed-main-back-color":this.$branding.mainInterface.mixedMainBackground,"--font-family":this.$branding.font.family?`"${this.$branding.font.family}"`:"","--grey-color":this.$branding.mainInterface.grey,"--red-color":this.$branding.mainInterface.red,"--white-color":this.$branding.mainInterface.white,"--dark-color":this.$branding.mainInterface.dark,"--beige-color":this.$branding.mainInterface.beige,"--orange-color":this.$branding.mainInterface.orange,"--purple-color":this.$branding.mainInterface.purple,"--green-color":this.$branding.mainInterface.green,"--yellow-color":this.$branding.mainInterface.yellow,"--link-color":this.$branding.mainInterface.link,"--icon-background":this.$branding.mainInterface.iconBackground,"--toggle-active-color":this.$branding.mainInterface.link,"--toggle-inactive-color":"","--button-primary-font-color":this.$branding.mainInterface.buttonFontColor,"--sidenav-width":this.isMenuClose?"80px":"242px"}},contentStyle(){return{"--font-color":this.auth?this.$branding.mainInterface.font:"#505050"}},toastStyle(){return{"--font-color":this.auth?this.$branding.mainInterface.font:"#505050","--sidenav-width":this.isMenuClose?"80px":"242px"}},isBrandingReady(){return Boolean(this.$branding&&this.$branding.company.name)}},created(){this.$user.checkToken()}
1,async mounted(){this.isPhoneVerificationEnabled=await(0,Ot.FQ)(),this.$branding.jivositeId&&function(t){var e=document,a=window;function s(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//code.jivosite.com/script/widget/"+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}"complete"==e.readyState?s():a.attachEvent?a.attachEvent("onload",s):a.addEventListener("load",s,!1)}(this.$branding.jivositeId)},methods:{chgMenuClose(t){this.isMenuClose=t},setGlobalCssVariables(){Object.keys(this.appStyle).forEach((t=>{document.body.style.setProperty(t,this.appStyle[t])}))}},watch:{appStyle:{immediate:!0,deep:!0,handler(){this.setGlobalCssVariables()}}}},Vt=(0,c.A)(Ut,(function(){var t=this,e=t._self._c;return e("div",{class:{auth:t.auth},attrs:{id:"app"}},[t.isNewYearMode?e("div",{staticClass:"snow-container",attrs:{id:"snow-container"}}):t._e(),e("svg",{staticStyle:{height:"0",width:"0"},attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("defs",[e("linearGradient",{attrs:{id:"common_gradient",x1:"65%",y1:"0%",x2:"35%",y2:"100%"}},[e("stop",{attrs:{"stop-color":"#9F40CC",offset:"0%","stop-opacity":"1"}}),e("stop",{attrs:{"stop-color":"#F6C444",offset:"100%","stop-opacity":"1"}})],1)],1)]),t.isBrandingReady?t.showIdentification&&"login"!==t.$router.currentRoute.name?e("Identification"):[e("transition",{staticClass:"sidenav-grid",attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft",mode:"out-in"}},[e("sidenav",{directives:[{name:"show",rawName:"v-show",value:t.sidenav,expression:"sidenav"}],ref:"sidenav",on:{chgMenuClose:t.chgMenuClose}})],1),e("div",{staticClass:"content-grid flex column full-height full-width justify-end max-width",style:t.contentStyle},[e("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",mode:"out-in"}},[t.showSkeleton?e("div",{staticClass:"container full-height padding-top-3x"},[e("div",{staticClass:"content"},[e("el-skeleton",{key:"skeleton",attrs:{rows:2,animated:""}})],1),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"content"},[e("el-skeleton",{key:"skeleton",attrs:{rows:5,animated:""}})],1)]),e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"content"},[e("el-skeleton",{key:"skeleton",attrs:{rows:5,animated:""}}
1)],1)])])]):e("router-view",{key:"content",staticClass:"grow"})],1),e("transition",{attrs:{appear:"","enter-active-class":"animated-delay fadeIn",mode:"out-in"}},[t.sidenav?t._e():e("div",{staticClass:"footer padding-top-3x padding-bottom-3x flex justify-center"},[e("LocaleToggle")],1)])],1),e("toast",{style:t.toastStyle,attrs:{sidenav:t.auth}}),t.isPhoneVerificationEnabled?e("VerifiedAttentionDialog"):t._e(),e("persistent-files-uploader")]:e("Spinner",{staticClass:"app-loader"}),e("GlobalModal")],2)}),[],!1,null,null,null).exports,Bt=a(69007),Ft=a(86957),Ht=(a(48318),a(38508)),jt=(a(96929),a(42936)),qt=a.n(jt);let Gt={"value invalid name":"Это имя уже занято, введите уникальное имя ресурса.","cname not unique":"Один из CNAME уже занят, введите другой."};var Yt=a(70),Wt=a(86146),Zt=a(82928),Kt=a.n(Zt),Jt=a(43527),Xt=a(75262),Qt=a.n(Xt),te=a(62531);const ee=function(t){let e=parseInt(t/86400),a=parseInt((t-86400*e)/3600),s=parseInt((t-86400*e-3600*a)/60);return{d:e,h:a,m:s,s:parseInt(t-86400*e-3600*a-60*s)}};var ae=a(78514),se=a.n(ae),ie=a(23555),re=a.n(ie),ne=a(1599),oe=a.n(ne),ce=a(16013),le=a.n(ce),de=a(78015),ue=a.n(de),me=a(65266),pe=a.n(me),he=a(13770),ge=a.n(he),ve=a(56690),fe=a.n(ve),xe=a(5167),be=a.n(xe),_e=a(53016),Ce=a.n(_e),we=a(54246),ye=a.n(we),$e=a(92296),Se=a.n($e),ke=a(65239),Te=a.n(ke),Ae=a(60721),Re=a.n(Ae),Pe=a(67093),Me=a.n(Pe),Le=a(75658),De=a.n(Le),Ee=a(32305),ze=a.n(Ee),Ne=a(56820),Ie=a.n(Ne),Oe=a(8343),Ue=a.n(Oe),Ve=a(27949),Be=a.n(Ve),Fe=a(25438),He=a.n(Fe),je=a(881),qe=a.n(je),Ge=a(84535),Ye=a.n(Ge),We=a(10824),Ze=a.n(We),Ke=a(44140),Je=a.n(Ke),Xe=a(20345),Qe=a.n(Xe),ta=a(26619),ea=a.n(ta),aa=a(56800),sa=a.n(aa),ia=a(88181),ra=a.n(ia),na=a(3086),oa=a.n(na),ca=a(33909),la=a.n(ca),da=a(71654),ua=a.n(da),ma=a(45303),pa=a.n(ma),ha=a(58831),ga=a.n(ha),va=a(39463),fa=a.n(va),xa=a(33977),ba=a.n(xa),_a=a(52481),Ca=a(47606),wa=a.n(Ca),ya=a(35973),$a=a.n(ya),Sa=a(51380),ka=a(4180),Ta=a.n(ka),Aa=a(33317);a(23215);var Ra=a(2543),Pa=a(11308),Ma=a(84743),La=a.n(Ma),Da=a(72505),Ea=a.n(Da);function za(t,e){if(t===e)return!0;for(let a=0;a<e.children.length;a++){const s=e.children[a];if(this.isElementInsideContainer(t,s))return!0}return!1}const Na=function(t){return Array.isArray(t)},Ia=function(t){return!!t&&t.constructor===Object&&"object"==typeof t},Oa={color:"#DC2626",userHints:{plan_tier:"free"}};var Ua=new class{constructor(){this.widget=null,this.scriptEl=null}get preset(){return{...Oa}}get isReady(){return Boolean(this.widget)}get isStarted(){return Boolean(this.widget?.isStarted())}install(){return new Promise(((t,e)=>{const a=document.createElement("script");a.src="https://widget-ru.getchat9.live/widget.js",a.defer=!0,a.setAttribute("data-bot-id","ch_f1wlhm22lvqby15xar"),a.onload=()=>{this.scriptEl=a,this.widget=window.Chat9Widget,t()},a.onerror=()=>{e()},document.body.appendChild(a)}))}async start(t){if(this.isStarted)return;this.isReady||await this.install();const e=Object.assign(this.preset.userHints,t),a=Object.assign(this.preset,{userHints:e});this.widget.start(a)}stop(){return this.widget?.stop()}destroy(){this.widget?.destroy()}};Ht.t1.register(Ht.hE,Ht.m_,Ht.s$,Ht.E8,Ht.No,Ht.FN,Ht.Bs,Ht.PP,Ht.kc,Ht.dN,Ht.UA,qt());const{pinia:Va}=function(){s.default.filter("removeMiddleFromLongString",(function(t,e=45){if(t.length>e){let a=parseInt((e-3)/2),s=e-3-a;return`${t.slice(0,a)} ... ${t.slice(t.length-s,t.length)}`}return t})),s.default.filter("prettyBytes",(function(t,e){if("number"!=typeof t||isNaN(t))return"bandwidth"===e?"0 bit/s":"0 B";let a,s,i=t<0;if("bandwidth"===e?(a=["bit/s","kbit/s","Mbit/s","Gbit/s","Tbit/s","Pbit/s","Ebit/s","Zbit/s","Ybit/s"],s=1e3):(a=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],s=1024),i&&(t=-t),t<1)return(i?"-":"")+t+("bandwidth"===e?" bit/s":" B");let r=Math.min(Math.floor(Math.log(t)/Math.log(s)),a.length-1);return(i?"-":"")+(t=1*(t/Math.pow(s,r)).toFixed(2))+" "+a[r]})),s.default.filter("convertSecondsToDurationString",(function(t){let{d:e,h:a,m:s,s:i}=ee(t),r="";return 0!==e&&(a+=24*e),0!==a&&(r+=`${a}:`),r+=`${s<10?"0"+s:s}:`,r+=`${i<10?"0"+i:i}`,r})),s.default.filter("convertSecondsToHourMinSecString",(function(t){let{d:e,h:a,m:s,s:i}=ee(t),r="";return 0!==e&&(r+=`${e} ${$t("д")}. `),0!==a&&(r+=`${a} ${$t("ч")}. `),0!==s&&(r+=`${s<10?"0"+s:s} ${$t("мин")}. `),0!==i&&(r+=`${i<10?"0"+i:i} ${$t("сек")}.`),r})),s.default.filter("prettyNumber",(function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")})),s.default.filter("dateTime",(function(t){return t&&"None"!==t?new Date(t.replace(/-/g,"/").split(".")[0]+" UTC").toLocaleStr
1ing():""})),s.default.directive("click-outside",{bind:function(t,e,a){t.clickOutsideEvent=function(s){if(t!==s.target&&!a.context.isElementInsideContainer(s.target,t)){const t=a.context[e.expression]||a?.context?._setupState[e.expression];t&&t(s)}},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}}),s.default.use(fa()),s.default.use(ga()),s.default.use(pa()),s.default.use(ua()),s.default.use(la()),s.default.use(oa()),s.default.use(ra()),s.default.use(sa()),s.default.use(ea()),s.default.use(Qe()),s.default.use(Je()),s.default.use(Ze()),s.default.use(Ye()),s.default.use(qe()),s.default.use(He()),s.default.use(Be()),s.default.use(Ue()),s.default.use(Ie()),s.default.use(ze()),s.default.use(De()),s.default.use(Me()),s.default.use(Re()),s.default.use(Te()),s.default.use(Se()),s.default.use(ye()),s.default.use(Ce()),s.default.use(be()),s.default.use(fe()),s.default.use(ge()),s.default.use(pe()),s.default.use(ue()),s.default.use(le()),s.default.use(oe()),s.default.use(re()),s.default.use(se()),s.default.use(Kt().directive),s.default.use($a()),s.default.use(Ta()),s.default.use(_a.A),s.default.use(Sa.Ay),s.default.use(O),s.default.use(k.A),s.default.use(Aa.A),s.default.use(ba()),s.default.use(_a.A),s.default.use(wa()),s.default.use(q),s.default.mixin({provide(){return{formDocumentationUrl:this.formDocumentationUrl}},data(){return{$api:ut.A,$user:x.A,$branding:w.A}},computed:{brandingReady(){return!!this.$branding&&""!==this.$branding.mainInterface.main},currentLocale(){return"ru_RU"===this.$i18n.locale?"ru":"en"},datetimeFormatInLists(){let t="YYYY-MM-DD hh:mm A";return"ru_RU"===this.$i18n.locale&&(t="DD-MM-YYYY HH:mm"),t},documentationUrl(){return this.$user.isCDN1()?this.$branding.cdn1DocumentationUrl[this.$i18n.locale]:this.$branding.documentationUrl[this.$i18n.locale]}},beforeCreate(){this.componentCancelToken=Ea().CancelToken.source(),this.$api=ut.A,this.$user=x.A,this.$branding=w.A},beforeDestroy(){this.componentCancelToken.cancel()},mounted(){Object.keys(this.$refs).forEach((t=>{this.registerRef(t,this.$refs[t])}))},methods:{switchLocale(){(0,Ft.Zj)(this)},setLocale(t){(0,Wt.D)().setLocale(t),(0,Ft.xS)(this,t)},getLocale(){return(0,Ft.JK)(this)},timestampToUtcDateTime(t){return La().unix(t).utc()},convertUtcDateToTz(t,e,a){return La().utc(t).tz(e).format(a)},utcDateTimeToPersonTz(t,e){return La().utc(t).tz(this.$user.personTimezone).format(e)},utcDateStartToLocaleTz(t,e,a=new Date){return La().utc(a).startOf(t).tz(La().tz.guess()).format(e)},personTzDateTimeToUtc(t,e){return La().tz(t,this.$user.personTimezone).utc().format(e)},convertLocaleTzToPersonTz(t,e){return La().tz(t,La().tz.guess()).clone().tz(this.$user.personTimezone).format(e)},sendYMTarget(t){let e=t;
1return this.$user.isCDN1()&&(e="cdn1_"+e),"Person"===this.$user.entityType&&!this.$user.isCDN1Staff()&&(0,Pa.k)(this.$branding.ymCounterId,e)},convertKeysToSnakeCase(t){const e={};for(const a of Object.keys(t))if(Object.prototype.hasOwnProperty.call(t,a)){let s;if(Na(t[a])){s=[];for(let e of t[a]){let t;t=Ia(e)?this.convertKeysToSnakeCase(e):e,s.push(t)}}else s=Ia(t[a])?this.convertKeysToSnakeCase(t[a]):t[a];e[(0,Ra.snakeCase)(a)]=s}return e},convertKeysToCamelCase(t){const e={};for(const a of Object.keys(t))if(Object.prototype.hasOwnProperty.call(t,a)){let s;if(Na(t[a])){s=[];for(let e of t[a]){let t;t=Ia(e)?this.convertKeysToCamelCase(e):e,s.push(t)}}else s=Ia(t[a])?this.convertKeysToCamelCase(t[a]):t[a];e[(0,Ra.camelCase)(a)]=s}return e},getCookie(t){let e=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0},formDocumentationUrl(t){const e=this.$branding.documentationUrlOverrides[this.$i18n.locale];if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let a={ru_RU:{"http-cname":"Services_setup/http/#zhelaemyi-cname","hls-pull-cname":"Services_setup/live/#zhelaemyi-cname","http-local-auth":"Services_setup/http/#avtorizatsiia-po-kodovomu-slovu","rtmp-publish-local-auth":"Services_setup/live/#avtorizatsiia-po-kodovomu-slovu","hls-pull-local-auth":"Services_setup/live/#avtorizatsiia-po-kodovomu-slovu_2","rtmp-pull-local-auth":"Services_setup/live/#avtorizatsiia-po-kodovomu-slovu_3","mpeg-ts-publish-local-auth":"Services_setup/live/#avtorizatsiia-po-kodovomu-slovu","srt-publish-local-auth":"Services_setup/live/#avtorizatsiia-po-kodovomu-slovu_1","icecast-pull-local-auth":"Services_setup/live/#avtorizatsiia-po-kodovomu-slovu_3","http-external-auth":"Services_setup/http/#avtorizatsiia-po-vneshnemu-skriptu","rtmp-publish-external-auth":"Services_setup/live/#avtorizatsiia-po-vneshnemu-skriptu","hls-pull-external-auth":"Services_setup/live/#avtorizatsiia-po-vneshnemu-skriptu_2","rtmp-pull-external-auth":"Services_setup/live/#avtorizatsiia-po-vneshnemu-skriptu_3","mpeg-ts-publish-external-auth":"Services_setup/live/#avtorizatsiia-po-vneshnemu-skriptu","srt-publish-external-auth":"Services_setup/live/#avtorizatsiia-po-vneshnemu-skriptu_1","icecast-pull-external-auth":"Services_setup/live/#avtorizatsiia-po-vneshnemu-skriptu_3",cms:"Integration_with_CMS/Drupal/",encoder:"Encoder_settings/OBS/",logs:"api_desc/statistics/#opisanie-log-faila","http-content-cache-time":"Services_setup/http/#keshirovanie"},en_US:{"http-cname":"Services_setup/http/#cname","hls-pull-cname":"Services_setup/live/#cname","http-local-auth":"Services_setup/http/#authorization-by-code-word","rtmp-publish-local-auth":"Services_setup/live/#authorization-by-secret-key","hls-pull-local-auth":"Services_setup/live/#authorization-by-code-word","rtmp-pull-local-auth":"Services_setup/live/#authorization-by-secret-key_2","mpeg-ts-publish-local-auth":"Services_setup/live/#authorization-by-secret-key","srt-publish-local-auth":"Services_setup/live/#authorization-by-secret-key_1","icecast-pull-local-auth":"Services_setup/live/#authorization-by-secret-key_2","http-external-auth":"Services_setup/http/#authorization-by-external-script","rtmp-publish-external-auth":"Services_setup/live/#external-script-authorization","hls-pull-external-auth":"Services_setup/live/#authorization-by-external-script","rtmp-pull-external-auth":"Services_setup/live/#external-script-authorization_2","mpeg-ts-publish-external-auth":"Services_setup/live/#external-script-authorization","srt-publish-external-auth":"Services_setup/live/#external-script-authorization_1","icecast-pull-external-auth":"Services_setup/live/#external-script-authorization_2",cms:"Integration_with_CMS/Drupal/",encoder:"Encoder_settings/OBS/",logs:"api_desc/statistics/#log-file-record-description","http-content-cache-time":"Services_setup/http/#caching"}}[this.$i18n.locale][t]||"",s=this.$branding.documentationUrl[this.$i18n.locale]||$t("https://doc.cdnvideo.ru/");return s.endsWith("/")&&(s=s.slice(0,-1)),`${s}/${a}`},getPasswordErrorText(t){let e;return t.includes("Frequently used password")?e="Часто встречающийся пароль":t.includes("Wrong password length, must be from 8 to 64 characters")?e="Длина должна быть от 8 до 64":t.includes("Password should not be equal to mail")&&(e="Пароль совпадает с почтовым аккаунтом"),e},isElementInsideContainer:za,goToPreviousRoute(){window.history.back()},registerRef(t,e){this.$globalRefs[t]=e},getRef(t){return this.$globalRefs?this.$globalRefs[t]:null},isObjectEmpty(t){return 0===Object.keys(t).length},convertTime(t,e){return e[t%100>4&&t%100<20?2:[2,0,1,1,1,2][Math.min(t%10,5)]]},isObjEqual(t,e,a=!0){const s=Object.keys(t),i=Object.keys(e);if(s.length!==i.length&&a)return!1;for(let a of s){if(!i.includes(a))return!1;{let s;const i=t[a],r=e[a],n=Ia(i)&&Ia(r);if(s=Na(i)&&Na(r)?this.isArrayEqual(i,r):i===r,n&&!this.isObjEqual(i,r)||!n&&!s)return!1}}return!0},isArrayEqual(t,e){let a=!1;if(t.length===e.length){if(0!==t.length)return t.every(((s,i)=>{const r=Ia(t[i])&&Ia(e[i]);return(typeof t[i]==typeof e[i]||r)&&(a=r?this.isObjEqual(t[i],e[i]):t[i]===e[i]),a}));a=!0}return a},deepCopy(t){if("object"!=typeof t||null===t)return t;const e=Array.isArray(t)?[]:{};for(let a in t)e[a]=this.deepCopy(t[a]);return e},getCacheTimes(){return[{value:"0s",text:"не кешировать",textEn:"do not cache"},{value:"1s",text:"1 секунда",textEn:"1 second"},{value:"30s",text:"30 секунд",textEn:"30 seconds"},{value:"1m",text:"1 минута",textEn:"1 minute"},{value:"10m",text:"10 минут",textEn:"10 minutes"},{value:"30m",text:"30 минут",textEn:"30 minutes"},{value:"1h",text:"1 час",textEn:"1 hour"},{value:"4h",text:"4 часа",textEn:"4 hours"},{value:"12h",text:"12 часов",textEn:"12 hours"},{value:"1d",text:"1 день",textEn:"1 day"},{value:"2d",text:"2 дня",textEn:"2 days"},{value:"3d",text:"3 дня",textEn:"3 days"},{value:"7d",text:"7 дней",textEn:"7 days"},{value:"14d",text:"14 дней",textEn:"14 days"},{value:"30d",text:"30 дней",textEn:"30 days"},{value:0,text:"Вручную",textEn:"Handle"},{value:"default",text:"Базовое значение",textEn:"Default"}]}}}),s.default.config.productionTip=!1,window.chartColors={red:"rgba(255, 99, 132, 0.7)",orange:"rgba(255, 159, 64, 0.7)",yellow:"rgba(255, 205, 86, 0.7)",green:"rgba(75, 192, 192, 0.7)",blue:"rgba(54, 162, 235, 0.7)",maroon:"rgba(128, 0, 0, 0.7)",brown:"rgba(170, 110, 40, 0.7)",olive:"rgba(128, 128, 0, 0.7)",teal:"rgba(0, 128, 128, 0.7)",navy:"rgba(0, 0, 128, 0.7)",lime:"rgba(60, 180, 75, 0.7)",cyan:"rgba(70, 240, 240, 0.7)",purple:"rgba(145, 30, 180, 0.7)",magenta:"rgba(240, 50, 230, 0.7)",grey:"rgba(128, 128, 128, 0.7)",pink:"rgba(250, 190, 212, 0.7)",apricot:"rgba(255, 215, 180, 0.7)",beige:"rgba(255, 250, 200, 0.7)",mint:"rgba(170, 255, 195, 0.7)",lavender:"rgba(220, 190, 255, 0.7)"},s.default.prototype.$globalRefs={},s.default.component("multiselect",Qt()),s.default.component("Tooltip",te.A),s.default.use(i.R2);const t=(0,i.Ey)();return Jt.default.i18n(((t,e)=>Ft.Ru.t(t,e))),s.default.prototype.$loading=Kt().service,s.default.prototype.$ELEMENT={i18n:(t,e)=>Ft.Ru.t(t,e)},s.default.prototype.$message=mt.A,{pinia:t}}();new s.default({el:"#app",router:Bt.A,i18n:Ft.Ru,template:'<App v-if="brandingReady" />',components:{App:Vt},pinia:Va,provide(){return{user:x.A}},data(){return{sessionExpiredMessage:void 0}}
1,created(){w.A.init().finally((()=>{let t,e=[];w.A.languages.forEach((a=>{a.locale&&e.push(a.locale),a.isDefault&&(t=a.locale)})),(0,Ft.jz)(this,t,e)}));let t=this;x.A.on("logout",(function(e){if(e.hasTokenExpired()){let e=0;t.sessionExpiredMessage=t.$message.warning({message:"Время сессии истекло. Пожалуйста, войдите заново",duration:e})}Ua.stop()})),x.A.on("authenticate",(function(){t.sessionExpiredMessage&&(t.sessionExpiredMessage.close(),t.sessionExpiredMessage=void 0)})),x.A.init(),ut.A.addHandler((t=>{if(t.data&&"Rate limit exceeded"===t.data.message)return this.$toast.show({text:"Внесение изменений в конфигурацию возможно не чаще раза в минуту."}),1;let e=function(t){if("error"===t.status&&"message"in t)return t.message in Gt?Gt[t.message]:"description"in t&&"string"==typeof t.description?t.description:"Error"}(t.data);if(e)throw this.$message.error({message:$t((0,Yt.A)(e,this.$i18n.locale))}),new Error(e);return 0}),"success").addHandler((t=>t.response&&t.response.status>=500?t.config.url.startsWith("/app/statistic/v3/")?(this.$toast.show({text:"Упс.. Мы не можем обработать Ваш запрос. Попробуйте изменить параметры фильтров."}),1):503===t.response.status&&t.config.url.startsWith("/app/inventory/v1/phone/")||t.config.url.startsWith("/app/dvr-net/v1/")?0:(this.$toast.show({text:"У нас временные проблемы. Мы уже работаем над этим."}),2):0),"error"),(0,Wt.D)().setLocale(Ft.Ru.locale)},methods:{getImageUrl(t){return`/app/inventory/v1/image/${t}`},getFontUrl(t,e){return`/app/inventory/v1/font/${t}/${e}`}},watch:{"$i18n.locale":function(t){if(!this.$user.id)return;let e={id:this.$user.id},a={language:t};"Person"!==this.$user.entityType||this.$user.isCDN1()||this.$api.updateUser(e,a)},"$user.accountName":function(t){w.A.isCurrentCompany("TurboFlare")&&t?Ua.start({name:t,email:this.$user.personEmail,locale:this.$i18n.locale}):Ua.stop()},"$branding.company.name":{handler:function(t){this.$i18n.formatter.companyName=t,document.querySelector("title").textContent=t},immediate:!0},"$branding.logo.guid":{handler:function(t){t&&(this.$branding.logo.url=this.getImageUrl(t))},immediate:!0},"$branding.logoShort.guid":{handler:function(t){t&&(this.$branding.logoShort.url=this.getImageUrl(t))},immediate:!0},"$branding.favicon.guid":{handler:function(t){t&&(document.querySelector("link[rel*='icon']").href=this.getImageUrl(t))},immediate:!0},"$branding.backgroundLoginGlobal.guid":{handler:function(t){t&&(this.$branding.backgroundLoginGlobal.url=this.getImageUrl(t))},immediate:!0},"$branding.backgroundLoginLeft.guid":{handler:function(t){t&&(this.$branding.backgroundLoginLeft.url=this.getImageUrl(t))},immediate:!0},"$branding.font.guid":{handler:function(t,e){if(!t)return void(e&&(this.$branding.font.family=""));let a={guid:t};this.$api.getFont(a).then((e=>{let a=e.data.data.name,s=e.data.data.fonts;for(let e in s){let s=`url(${this.getFontUrl(t,e)})`,i=new FontFace(a,s,{weight:e});document.fonts.add(i),i.load().then((()=>{})).catch((t=>{}))}document.fonts.ready.then((()=>{this.$branding.font.family=a})).catch((t=>{}))})).catch((t=>{}))},immediate:!0}}})},69007:function(t,e,a){"use strict";a.d(e,{A:function(){return ei}}),a(44114),a(98992),a(72577),a(3949);var s=a(62893),i=a(40173),r=a(30700),n=a(97029),o=a(57421),c=a(33696),l=a(28409),d=a(59639),u=a(13855),m=a(76458),p=a(10216),h=a(46894),g=a(43018),v={name:"Action",props:{actionStyle:{type:Object,default:function(){return{}}},actionTitle:{type:String,default:""},actionText:{type:String,default:""},showLogo:{type:Boolean,default:!0}},computed:{isNewYearMode(){return(0,g.L)().isNewYearMode}}},f=a(81656),x=(0,f.A)(v,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"action flex column",style:t.actionStyle},[t.showLogo?[e("div",{staticClass:"logo margin-bottom-3x",class:{"logo-new-year":this.$branding.isCurrentCompany("CDNvideo")&&t.isNewYearMode}},[e("img",{staticClass:"block",attrs:{src:this.$branding.logo.url}})])]:t._e(),e("div",{staticClass:"flex justify-between column full-height grow gap-3x"},[e("div",{staticClass:"flex column gap-2x"},[t._t("title"),t._t("main")],2),t._t("footer")],2)],2)}),[],!1,null,"ae531096",null).exports,b=(a(54520),a(77706)),_=a(26257);const{time:C,startTimer:w}=function(){const t=(0,s.ref)(null),e=(0,s.ref)(null);function a(){clearInterval(e.value),e.value=null,t.value=null}return(0,s.onBeforeUnmount)((()=>{a()})),{time:t,timer:e,startTimer:function(s){t.value=s??undefined,e.value=setInterval((()=>{t.value--,0===t.value&&a()}),1e3)},stopTimer:a}}(),y=(0,s.reactive)({email:"",password:"",code:"",captchaToken:null}),$=(0,s.reactive)({selectedMethod:null,enabledMethods:[]}),S=(0,s.ref)(!1);function k(t){return{loginData:y,userTwofaConfig:$,isCodeInputVisible:S,co
1deLifetimeRemaining:C,changeLoginData:function(t,e){y[e]=t},updateTwofaConfig:function(t){$.enabledMethods=t.enabled,$.selectedMethod=t.selected},showCodeInput:function(){S.value=!0},startCodeLifetimeTimer:function(t){const e=t?(t=>{const e=t.replace(_.GO.ALREADY_SENT,"").replace("seconds.","").trim();return Number(e)})(t):_.jL;w(e)},clearLoginData:function(){y.email="",y.password="",y.code="",y.captchaToken=null,S.value=!1,localStorage.removeItem("twofa-config")}}}var T=a(46911),A=a(60159),R={__name:"index",emits:["login"],setup(t,{expose:e,emit:a}){const{loginData:i,codeLifetimeRemaining:r,userTwofaConfig:n,changeLoginData:o}=k(),c=(0,s.ref)(n.selectedMethod),l=(0,s.ref)(!1),d=(0,s.ref)(0),u=(0,s.ref)(!1),m=(0,s.computed)((()=>"sms"===c.value&&!l.value));function p(){l.value=!1,u.value=!1,o(null,"captchaToken"),d.value++}e({resetCaptcha:p});const h=(0,s.computed)((()=>n?.enabledMethods?n.enabledMethods.filter((t=>t!==n.selectedMethod)):[])),g=(0,s.computed)((()=>null!==r.value&&r.value>0)),v=(0,s.computed)((()=>"totp"===c.value&&0===h.value.length)),f=(0,s.computed)((()=>!g.value&&"totp"!==c.value)),x=(0,s.computed)((()=>!g.value&&h.value.length>0)),C=(0,s.computed)((()=>g.value&&!v.value));function w(){m.value||a("login",c.value)}return{__sfc:!0,TWO_FA_METHOD_MESSAGE:{totp:"Код доступен вам в приложении-аутентификаторе",sms:"Код отправлен вам в СМС"},CHANGE_METHOD_MESSAGE:{totp:"Выбрать другой способ получения кода можно будет через",sms:"Запросить код заново или выбрать другой способ получения кода можно будет через"},METHODS:{totp:"Приложение-аутентификатор",sms:"СМС-сообщение"},emit:a,loginData:i,codeLifetimeRemaining:r,userTwofaConfig:n,changeLoginData:o,selectedMethod:c,captchaPassed:l,captchaKey:d,pendingMethodChange:u,captchaRequired:m,onCaptchaSuccess:function(t){o(t,"captchaToken"),l.value=!0,u.value&&(u.value=!1,a("login",c.value))},resetCaptcha:p,otherMethods:h,isTimerRunning:g,isOnlyTotpAvailable:v,canRequestCodeAgain:f,hasMethodOptions:x,showRunningTimer:C,updateSelectedMethod:function(t){c.value=t,m.value?u.value=!0:w()},refetchLogin:w,handleChangeCode:function(t){o(t,"code")},formatSeconds:b.X,TWO_FA_CODE_LENGTH:_.M,CodeInput:T.A,SmartCaptcha:A.A}}},P=R,M=(0,f.A)(P,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"content form login-two-fa-form"},[e("h1",{staticClass:"text-header-2 margin-bottom-2x"},[t._v(t._s(t.$t("Двухфакторная аутентификация")))]),a.captchaRequired?[e("div",{staticClass:"captcha-wrapper"},[e(a.SmartCaptcha,{key:a.captchaKey,on:{callBack:a.onCaptchaSuccess}})],1)]:[e("h2",{staticClass:"text-regular margin-bottom-2x"},[t._v(t._s(`${t.$t(a.TWO_FA_METHOD_MESSAGE[a.selectedMethod])}. ${t.$t("Введите его в поле ниже, чтобы завершить авторизацию")}`))]),e("div",{staticClass:"relative"},[e(a.CodeInput,{attrs:{value:a.loginData.code,length:a.TWO_FA_CODE_LENGTH,refNameBase:"two_fa_code_"},on:{completed:a.refetchLogin,change:a.handleChangeCode}})],1),a.showRunningTimer?e("p",{staticClass:"text-extralight margin-top-2x"},[t._v(" "+t._s(t.$t(a.CHANGE_METHOD_MESSAGE[a.selectedMethod])+` ${a.formatSeconds(a.codeLifetimeRemaining)}`)+" ")]):[a.canRequestCodeAgain?e("p",{staticClass:"text-extralight margin-top-2x additional-two-fa-option cursor-pointer text-blue",on:{click:a.refetchLogin}},[t._v(" "+t._s(t.$t("Запросить новый код"))+" ")]):t._e(),a.hasMethodOptions?[e("p",{staticClass:"text-regular margin-bottom margin-top-2x"},[t._v(t._s(t.$t("Вы можете выбрать другой способ получения кода"))+":")]),t._l(a.otherMethods,(function(s){return e("p",{key:s,staticClass:"text-extralight margin-top-2x text-blue cursor-pointer",on:{click:()=>a.updateSelectedMethod(s)}},[t._v(" "+t._s(t.$t(a.METHODS[s]))+" ")])}))]:t._e()]]],2)}),[],!1,null,"f3dc8eea",null).exports,L=a(30852),D=a(34445),E=a(18738);const{clearLoginData:z}=k();function N(t){const{path:e,name:a}=t;e?ei.push({path:e}):ei.push({name:a}),localStorage.removeItem("two-fa-method"),localStorage.removeItem("two-fa-additional-options"),z()}var I=a(19850);async function O(t,e,a=!1){try{const s=a?{token:t.token}:{...t};t.twofaMethod&&(s.twofa_type=t.twofaMethod),delete t.twofaMethod;const{data:i}=await L.A.login({captchaToken:t.captchaToken},{...s}),r={token:a?t.token:i.token,lifetime:i.lifetime,type:void 0===i.person_id?"Staff":"Person",id:i.staff_id||i.person_id,sso:a};a||(r.email=t.username),a&&t.returnUrl&&(r.returnUrl=t.returnUrl),await async function(t,e){const a=(0,g.L)(),{isNewYearMode:s}=(0,D.bP)(a);
1E.A.isCurrentCompany("CDNvideo")&&s.value&&function(){const t=document.getElementById("snow-container"),e=setInterval((()=>{const e=document.createElement("div");e.classList.add("snowflake"),e.innerHTML="❄";const a=20*Math.random()+10,s=100*Math.random(),i=5*Math.random()+3;e.style.width=`${a}px`,e.style.height=`${a}px`,e.style.left=`${s}vw`,e.style.fontSize=`${a}px`,e.style.animationDuration=`${i}s`,t.appendChild(e),setTimeout((()=>e.remove()),1e3*i)}),100);setTimeout((()=>clearInterval(e)),1e4)}(),await n.A.authenticate(t);const i=e.value??e;if(n.A.isCDN1()||"Staff"===n.A.entityType)return N(i);n.A.getCDN2Data().then((()=>N(i)))}(r,e)}catch(t){return function(t){const{loginData:e,updateTwofaConfig:a,showCodeInput:s,startCodeLifetimeTimer:i}=k(),r="string"==typeof t.response.data?t.response.data:t.response.data.error,n=function(t){return t.includes(_.GO.TWO_FA_REQUIRED)?"CODE_REQUIRED":t.includes(_.GO.ALREADY_SENT)?"CODE_ALREADY_SENT":t.includes(_.GO.WRONG_CODE)?"WRONG_CODE":void 0}(r),o=!!n&&"WRONG_CODE"!==n,c=403===t.response.status,l=r.includes("Account locked: too many login attempts."),d=r.includes("Access denied. Please contact technical support."),u=r.includes("Account not verified. Please check your email.");if(c){if(o&&s(),"CODE_REQUIRED"===n){i();const e=t.response.data.twofa;return localStorage.setItem("twofa-config",JSON.stringify(e)),void a(e)}return"CODE_ALREADY_SENT"===n?(a(JSON.parse(localStorage.getItem("twofa-config"))),i(r),void I.A.warning({message:$t("Используйте последний полученный код")})):"WRONG_CODE"===n?(I.A.error({message:$t("Неверный код")}),"WRONG_CODE"):l?void I.A.error({message:"Ваша учетная запись заблокирована по соображениям безопасности. Для разблокировки свяжитесь с поддержкой или менеджером."}):d?void I.A.error({message:`${$t("Доступ запрещен. Обратитесь в ")}${E.A.supportContacts().emails[0]}`}):u?void ei.push({name:"register",params:{status:"ready"}}):void I.A.error({message:"Доступ запрещен."})}e.password?I.A.error({message:"Неверно введён логин или пароль."}):I.A.error({message:"Токен недействителен."})}(t)}}var U={__name:"index",setup(t){const{proxy:e}=(0,s.getCurrentInstance)(),{loginData:a,isCodeInputVisible:i,userTwofaConfig:r,changeLoginData:o}=k(),c=(0,s.reactive)({email:"",password:"",twoFaCode:""}),l=(0,s.ref)(!1),g=(0,s.ref)(!1),v=(0,s.ref)(!1),f=(0,s.ref)(!0),b=(0,s.ref)(null),_=(0,s.computed)((()=>({form:{email:{email:u.Rp,isASCII:m.kj}}}))),C={form:c},w=(0,d.Ay)(_,C),y=(0,s.computed)((()=>!g.value&&l.value||!(a.password&&a.email)&&!g.value)),$=(0,s.computed)((()=>{const t=E.A.registerForm?.displayType?.[e.$i18n.locale];return"hidden"!==t})),S=(0,s.computed)((()=>E.A.backgroundLoginLeft.url?{"background-image":`url(${E.A.backgroundLoginLeft.url})`}:{})),T=(0,s.computed)((()=>E.A.loginForm.titleText[e.$i18n.locale])),A=(0,s.computed)((()=>E.A.loginForm.mainText[e.$i18n.locale])),R=(0,s.computed)((()=>{let t="",e="";return ei.currentRoute.params.nextUrl&&"/"!==ei.currentRoute.params.nextUrl?e=ei.currentRoute.params.nextUrl:(t="Staff"===n.A.entityType?"admin-home":void 0,t||(t=n.A.isCDN1()?"cdn1-home":"home")),{path:e,name:t}}));async function P(t,e){v.value=!0,f.value=!1;try{await O({token:t.get("cdnauthtoken"),returnUrl:t.get("return_url"),twofaMethod:e??r.selectedMethod},R,!0)}finally{l.value=!1}}return(0,s.onMounted)((()=>{setTimeout((()=>{const t=e.$refs["login-form-wrapper"];t.value&&(g.value=!!t.value.querySelector('[type="password"]:-webkit-autofill')&&!!t.value.querySelector('[type="email"]:-webkit-autofill'))}),500)})),(0,s.watch)(c,(()=>{c.password||(g.value=!1),c.email||(g.value=!1)}),{deep:!0}),(0,s.onBeforeMount)((()=>{n.A.token&&!n.A.isAuth()&&n.A.logout();const t=new URLSearchParams(window.location.search);t.has("cdnauthtoken")&&P(t),"/talking-head"===ei.currentRoute.params.nextUrl&&localStorage.setItem("TalkingHeadRegistration",!0),localStorage.removeItem("registration_phone"),localStorage.removeItem("registration_email"),localStorage.removeItem("sendSmsCode"),localStorage.removeItem("sendTime")}
1)),{__sfc:!0,proxy:e,loginData:a,isCodeInputVisible:i,userTwofaConfig:r,changeLoginData:o,onLoginFormChange:function(...t){w.value.$reset(),o(...t)},form:c,loading:l,autofill:g,sso:v,formVisible:f,twoFaRef:b,rules:_,validationState:C,v$:w,buttonDisabled:y,showRegLink:$,actionStyle:S,actionTextTitle:T,actionTextMain:A,nextPath:R,applyEmail:function(t){c.email=t.trim()},login:async function(t){l.value=!0,e.$toast.hide();const s={provider_id:E.A?.company?.id,username:a.email,password:a.password,domain:window.location.hostname,code:a.code,captchaToken:a.captchaToken,twofaMethod:t??r.selectedMethod};try{await O(s,R,!1)}finally{l.value=!1}},ssoLogin:P,updateTwoFaCode:function(t){c.twoFaCode=t},Textbox:p.A,Btn:h.A,Action:x,TwoFa:M}}},V=U,B=(0,f.A)(V,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{ref:"login-form-wrapper",staticClass:"content-wrapper flex justify-center align-center full-width full-height absolute"},[a.formVisible?e("div",{staticClass:"login-form overflow-hidden box-shadow"},[e(a.Action,{staticClass:"content",attrs:{"action-style":a.actionStyle},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticClass:"text-regular text-on-black"},[t._v(t._s(a.actionTextTitle??t.$t("Авторизуйтесь в личном кабинете")))])]},proxy:!0},a.actionTextMain?{key:"main",fn:function(){return[e("span",{staticClass:"text-regular text-on-black"},[t._v(t._s(a.actionTextMain))])]},proxy:!0}:null,a.showRegLink?{key:"footer",fn:function(){return[e("router-link",{staticClass:"text-white text-semibold register-link",attrs:{to:{name:"register"}}},[t._v(" "+t._s(t.$t("Зарегистрироваться"))+" ")])]},proxy:!0}:null],null,!0)}),a.isCodeInputVisible?e(a.TwoFa,{ref:"twoFaRef",on:{login:a.login,"update:code":a.updateTwoFaCode}}):e("div",{staticClass:"content form",on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:a.login.apply(null,arguments)}}},[e("h1",{staticClass:"text-header-2 margin-bottom-2x"},[t._v(t._s(t.$t("Вход")))]),e("div",{staticClass:"field relative"},[e("label",{staticClass:"text-regular margin-bottom"},[t._v(t._s(t.$t("E-mail")))]),e(a.Textbox,{staticClass:"margin-bottom-3x",attrs:{value:a.loginData.email,autocomplete:"email",name:"form.email",id:"form-email",ymDisable:!0},on:{input:function(t){return a.onLoginFormChange(t,"email")},blur:function(t){return a.applyEmail(t,"form.email")}}}),a.v$.form.email.$error?e("p",{staticClass:"input-error"},[t._v(t._s(t.$t("Введите валидный email")))]):t._e()],1),e("div",{staticClass:"field padding-bottom-3x"},[e("label",{staticClass:"text-regular margin-bottom"},[t._v(t._s(t.$t("Пароль")))]),e(a.Textbox,{attrs:{value:a.loginData.password,type:"password"},on:{input:function(t){return a.onLoginFormChange(t,"password")}}})],1),e("div",{staticClass:"flex justify-between align-center column gap-2x"},[e(a.Btn,{staticClass:"full-width",attrs:{fullWidth:!0,disabled:a.buttonDisabled},on:{click:()=>a.login()}},[t._v(" "+t._s(t.$t("Войти"))+" ")]),e("router-link",{staticClass:"text-menu text-blue flex",attrs:{to:{name:"restore"}}},[t._v(" "+t._s(t.$t("Забыли пароль?"))+" ")])],1)])],1):t._e()])}),[],!1,null,null,null),F=B.exports,H=a(75939),j=a(18425),q=a(90920),G=a(11308),Y=a(40399),W=a(33278),Z=a(44107),K=a(81284),J={name:"Register",components:{Textbox:p.A,Action:x,ExitIcon:j.A,DataHint:H.A,Btn:h.A,SmartCaptcha:A.A},setup(){const{openContactUsModal:t}=(0,K.v)({showFeedback:!0});return{openContactUsModal:t}},mixins:[Y.A,Z.A],props:{status:{type:String,default:""}},data(){return{firstName:"",email:"",password:"",registered:"ready"===this.status,loading:!1,captchaToken:null,captchaKey:0,referrer:document.referrer,ymTargetName:"customer_register_button",confirmationTime:24,sendEmailAgain:!1,customTimer:void 0}},validations(){return{email:{email:W.Rp,isASCII:m.kj}}},created(){this.startSendEmailTimer(),this.$user.token&&this.$user.logout(),this.email=this.$localStorage.get("registration_email"),this.$localStorage.remove("registration_email"),this.$localStorage.remove("sendSmsCode"),this.$localStorage.remove("sendTime")}
1,computed:{actionStyle(){return this.$branding.backgroundLoginLeft.url?{"background-image":`url(${this.$branding.backgroundLoginLeft.url})`}:{}},actionTextTitle(){return this.$branding.registerForm.titleText[this.$i18n.locale]},actionTextMain(){return this.$branding.registerForm.mainText[this.$i18n.locale]},feedbackEmail(){return this.$branding.contacts.feedback.email||"[email protected]"},registerFormDisplayType(){return this.$branding.registerForm?.displayType?.[this.$i18n.locale]},userAgreementText(){return this.$branding.registerForm?.displayTypeParams?.userAgreementText?.[this.$i18n.locale]},registerFormDisplayTypeParams(){return this.$branding.registerForm?.displayTypeParams},showExternalReg(){return"redirectButton"===this.registerFormDisplayType},showRegForm(){return!this.$branding.registerForm||!this.$branding.registerForm.displayType||"hidden"!==this.$branding.registerForm.displayType[this.$i18n.locale]},redirectButtonText(){if(this.showExternalReg)return this.registerFormDisplayTypeParams?.redirectButtonText?.[this.$i18n.locale]},redirectButtonLink(){if(this.showExternalReg)return this.registerFormDisplayTypeParams?.redirectButtonLink?.[this.$i18n.locale]},buttonDisabled(){return this.loading||!this.email||this.$v.email.$invalid||!this.captchaToken},supportEmail(){return this.$branding.supportContacts().emails},formatedTime(){return this.customTimer.formatTime},renderNeedHelpModal(){return this.$branding.isCurrentCompany("CDNvideo")}},methods:{register(){this.$localStorage.set("registration_email",this.email),this.loading=!0;let t={email:this.email};this.$api.sendRegisterEmail({captchaToken:this.captchaToken},t).then((()=>{(0,G.k)(this.$branding.ymCounterId,this.ymTargetName),this.$localStorage.set("sendRegisterMailTime",(new Date).getTime()),this.registered=!0})).catch((t=>{this.captchaToken=null,this.captchaKey++;let e="Неизвестная ошибка, повторите запрос позже.";429===t.response.status?e="Регистрация с одного IP-адреса возможна не чаще одного раза в минуту.":409===t.response.status&&t.response.data.includes("Email is already in use")&&(e="Пользователь с таким email уже зарегистрирован."),this.$toast.show({text:e})})).finally((()=>{this.loading=!1}))},onCaptchaSuccess(t){this.captchaToken=t},openExternalRegPage(){this.showExternalReg&&this.redirectButtonLink&&window.open(this.redirectButtonLink,"_blank")},enter(){this.$v.$touch(),this.register()},sendRegisterEmail(){if(!this.loading){let t={email:this.email};this.loading=!0,this.$api.sendRegisterEmail({},t).then((t=>{this.sendEmailAgain=!0})).catch((t=>{let e="Неизвестная ошибка, повторите запрос позже.";429===t.response.status?e=this.registered?"Вы не можете запрашивать письмо с подтверждением почты более одного раза в минуту с одного и того же IP-адреса":"Регистрация с одного IP-адреса возможна не чаще одного раза в минуту":409===t.response.status&&t.response.data.includes("Email is already in use")&&(e="Пользователь с таким email уже зарегистрирован."),this.$toast.show({text:e})})).finally((()=>{this.loading=!1}))}},openHelpModal(){this.openContactUsModal()},onNeedHelpClick(){this.openHelpModal()},startSendEmailTimer(){this.registered&&this.$localStorage.get("sendRegisterMailTime")&&(this.customTimer=new q.A(60,this.$localStorage.get("sendRegisterMailTime")||0,(()=>{this.$localStorage.remove("sendRegisterMailTime")})),this.customTimer.start())}},watch:{showRegForm:function(t){t||this.$router.push({name:"login"})},registered:function(){this.startSendEmailTimer()}}},X=(0,f.A)(J,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper flex justify-center align-center full-width full-height absolute"},[t.showRegForm?e("div",{staticClass:"register-form overflow-hidden box-shadow flex"},[e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",mode:"out-in"}},[t.registered?e("div",{key:"back",staticClass:"flip-back overflow-hidden box-shadow flex"},[e("action",{staticClass:"content full-width"},[e("template",{slot:"title"},[t.sendEmailAgain?e("div",{staticClass:"text-on-black"},[e("div",{staticClass:"text-menu margin-bottom-3x"},[t._v(t._s(t.$t("Повторное письмо выслано")))]),e("p",{staticClass:"text-regular margin-bottom-3x"},[t._v(t._s(t.$t("Мы повторно выслали вам письмо для подтверждения почты на адрес {mail}",{mail:this.email})))]),e("p",{staticClass:"text-regular margin-bottom-3x"},[t._v(t._s(t.$t("Если вы не видите это письмо во “Входящих”, попробуйте заглянуть в папку “Спам” - иногда письма попадают туда или обратитесь в теÑ
1…поддержку по номеру телефона:")))]),e("p",{staticClass:"text-regular margin-bottom-3x"},[t._v(t._s("+7 (495) 782-17-32"))]),e("p",{staticClass:"text-regular"},[t._v(t._s(t.$t("или")))])]):e("div",{staticClass:"text-on-black"},[e("div",{staticClass:"text-menu margin-bottom-3x"},[t._v(t._s(t.$t("Подтвердите вашу почту")))]),e("p",{staticClass:"text-regular margin-bottom-3x"},[t._v(t._s(t.$t("Для завершения регистрации вам необходимо подтвердить вашу электронную почту. Чтобы сделать это, перейдите по ссылке из письма, которое мы отправили на {mail}. ",{mail:this.email})))]),e("p",{staticClass:"text-regular"},[t._v(t._s(t.$t("Если вы не видите это письмо во “Входящих”, попробуйте заглянуть в папку “Спам” - иногда письма попадают туда.")))])])]),e("template",{slot:"footer"},[e("div",[t.customTimer&&t.customTimer.isTimerRunning?e("div",{staticClass:"text-underline text-white text-semibold"},[t._v(t._s(t.$t("Вы сможете запросить письмо еще раз через")+" "+t.formatedTime))]):[t.sendEmailAgain?e("a",{staticClass:"send-email-link text-white text-semibold cursor-pointer",attrs:{href:"mailto:"+t.supportEmail[0]}},[t._v(t._s(t.$t("Напишите нам")))]):e("div",{staticClass:"send-email-link text-white text-semibold cursor-pointer",on:{click:t.sendRegisterEmail}},[t._v(t._s(t.$t("Выслать письмо еще раз")))])]],2)])],2)],1):e("div",{key:"front",staticClass:"flip-front overflow-hidden box-shadow"},[e("action",{staticClass:"content",attrs:{actionStyle:t.actionStyle}},[e("template",{slot:"title"},[t.actionTextTitle?e("div",{staticClass:"text-regular text-on-black"},[t._v(t._s(t.actionTextTitle))]):e("div",{staticClass:"text-regular text-on-black"},[t._v(t._s(t.$t("Зарегистрируйтесь, чтобы получить доступ к личному кабинету и начать пользоваться сервисом")))])]),t.actionTextMain?e("template",{slot:"main"},[e("div",{staticClass:"text-regular text-on-black"},[t._v(t._s(t.actionTextMain))])]):t._e(),e("template",{slot:"footer"},[e("div",[e("label",{staticClass:"text-regular text-on-black"},[t._v(t._s(t.$t("У вас уже есть аккаунт?")))]),e("router-link",{staticClass:"login-link text-white text-regular text-semibold block",attrs:{to:{name:"login"}}},[t._v(t._s(t.$t("Войти")))])],1)])],2),e("div",{staticClass:"form content flex column gap-2x"},[e("div",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Регистрация")))]),t.showExternalReg?[e("btn",{staticClass:"full-width",attrs:{fullWidth:!0},on:{click:t.openExternalRegPage}},[t._v(t._s(t.redirectButtonText))])]:[e("div",{staticClass:"field relative"},[e("label",{staticClass:"text-regular margin-bottom"},[t._v(t._s(t.$t("E-mail")))]),e("textbox",{attrs:{autocomplete:"email",name:"email",id:"register-email",ymDisable:!0},on:{input:function(e){return t.clearErrors(e,"email")},submit:t.enter,blur:function(e){return t.applyValue(e,"email")}},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),t.$v.email.$error?e("div",{staticClass:"input-error"},[t._v(t._s(t.$t("Введите валидный email")))]):t._e()],1),t.renderNeedHelpModal?e("Btn",{staticClass:"need-help-button",attrs:{type:"link"},on:{click:t.onNeedHelpClick}},[t._v(t._s(t.$t("Нужна помощь"))),e("DataHint",{attrs:{placement:"bottom",enterable:!0,iconType:"question",iconStyle:"inverted"}},[[e("span",[t._v(t._s(t.$t("Связь с менеджером если")))]),e("div",{staticClass:"margin-left"},[e("li",{staticStyle:{"list-style-type":"disc"}},[e("span",[t._v(t._s(t.$t("что-то непонятно")))])]),e("li",{staticStyle:{"list-style-type":"disc"}},[e("span",[t._v(t._s(t.$t("чего-то не хватает")))])]),e("li",{staticStyle:{"list-style-type":"disc"}},[e("span",[t._v(t._s(t.$t("что-то не работает")))])])])]],2)],1):t._e(),t.userAgreementText?e("div",{staticClass:"policy"},[e("span",{staticClass:"text-caption text-on-block-1",domProps:{innerHTML:t._s(t.userAgreementText)}})]):e("div",{staticClass:"policy"},[e("span",{staticClass:"text-caption text-on-block-1"},[t._v(t._s(t.$t("Регистрируясь на портале {mainCompanyName} вы подтверждаете, что ознакомлены с "))),this.$branding.isCurrentCompany("CDNv
1ideo")?e("a",{staticClass:"text-blue",attrs:{href:t.$t("https://cache-cdnvideo.cdnvideo.ru/cdnvideo/cdnvideo/ru/privacy-policy.pdf"),target:"_blank"}},[t._v(t._s(t.$t("Политикой обработки персональных данных ")))]):e("span",[t._v(t._s(t.$t("Политикой обработки персональных данных ")))]),e("span",[t._v(t._s(t.$t("и даете ")))]),this.$branding.isCurrentCompany("CDNvideo")?e("a",{staticClass:"text-blue",attrs:{href:t.$t("https://cache-cdnvideo.cdnvideo.ru/cdnvideo/cdnvideo/ru/agreement-to-process-personal-data.pdf"),target:"_blank"}},[t._v(t._s(t.$t("Согласие на передачу своих персональных данных.")))]):e("span",[t._v(t._s(t.$t("Согласие на передачу своих персональных данных.")))])])]),e("SmartCaptcha",{key:t.captchaKey,on:{callBack:t.onCaptchaSuccess}}),e("btn",{staticClass:"full-width",attrs:{disabled:t.buttonDisabled,fullWidth:!0},on:{click:t.register}},[t._v(t._s(t.$t("Зарегистрироваться")))])]],2)],1)])],1):t._e()])}),[],!1,null,null,null).exports,Q={name:"SetPassword",components:{Action:x,ExitIcon:j.A,Btn:h.A,Textbox:p.A},mixins:[Y.A],data(){return{formName:"setPasswordForm",isLoading:!1,formVisible:!0,email:new URLSearchParams(window.location.search).get("email")||"",target:new URLSearchParams(window.location.search).get("target")||"",phone:new URLSearchParams(window.location.search).get("phone")||"",componentCode:"",referrer:document.referrer,responseErrorMessage:"",newPassword:""}},props:{code:{required:!0}},validations(){return{newPassword:{minLength:(0,W.Bp)(8),maxLength:(0,W.Ru)(64),sameAsEmail:(0,W.AU)((0,m.EP)(this.email)),sameAsEmailUsername:(0,W.AU)((0,m.EP)(this.email.split("@")[0])),responseError:(0,m.OS)(this.responseErrorMessage)}}},created(){this.code?this.componentCode=this.code:this.componentCode=new URLSearchParams(window.location.search).get("code")||"","registration"!==this.target&&"invitation"!==this.target&&this.checkIfLinkIsInvalid(),this.$localStorage.remove("registration_email"),this.$localStorage.remove("sendSmsCode"),this.$localStorage.remove("sendTime")},computed:{actionStyle(){return this.$branding.backgroundLoginLeft.url?{"background-image":`url(${this.$branding.backgroundLoginLeft.url})`}:{}},passwordErrorText(){const{maxLength:t,minLength:e,sameAsEmail:a,sameAsEmailUsername:s,responseError:i}=this.$v.newPassword;return t&&e?a&&s?i?void 0:this.responseErrorMessage:"Пароль совпадает с почтовым аккаунтом":"Длина должна быть от 8 до 64"},formInvalid(){return this.isLoading||this.newPassword.length<8||this.newPassword.length>64||this.newPassword===this.email||this.$v.$anyError}},methods:{checkIfLinkIsInvalid(){const t={code:this.componentCode,email:this.email.replaceAll("+","%2B")};this.$api.checkIfLinkIsInvalid(t).catch((()=>{this.$message.error({message:"Ссылка недействительна"}),this.$router.push({path:"/login"})}))},next(){this.isLoading=!1,this.nextRoute()},nextRoute(){let t="Staff"===this.$user.entityType?"admin-home":void 0;t||(t=this.$user.isCDN1()?"cdn1-home":"home"),this.$user.isCDN1()||this.$user.isCDN2Staff()?this.$router.push({name:t}):this.$user.getCDN2Data().then((()=>{this.$router.push({name:t})}))},register(){if(!this.formInvalid){this.isLoading=!0;let t={email:this.email,target:this.target,code:this.componentCode,phone:this.phone,password:this.newPassword,language:this.$i18n.locale,referrer:this.referrer};this.$api.register({},t).then((t=>{this.login()})).catch((t=>{let e="Неизвестная ошибка, повторите запрос позже.";400===t.response.status?(e="Нет обязательных параметров/не удалось распарсить запрос",t.response.data.includes("Code is not specified")?e="Не указан код подтверждения":t.response.data.includes("Password is not specified")?e="Не указан пароль для пользователя":t.response.data.includes("Unknown target")&&(e="Неизвестный target")):401===t.response.status?!t.response.data.includes("Record email confirmation not found")||"invitation"!==this.target&&"registration"!==this.target||(e="Неверный код, либо для email-а не запрашивалась верификация"):403===t.response.status?t.response.data.includes("Code expired")&&(e="Истёк срок действия кода"):409===t.response.status&&(t.response.data.includes("Email is already in use")?e="Почта уже используется":t.response.data.includes("Phone is already in use")?e="Телефон уже используется":t.response.data.includes("Invitation not found")&&"invitation"===this.target&&(e=$t("Приглашения для {email} не найдено",{email:this.email}))),this.$message.error({message:e}),this.isLoading=!1}))}},authenticate(t){this.formVisible=!1,this.$user.authenticate(t).then((()=>{this.sendYMTarget(this.ymTargetName),this.$el.style.display="none","registration"===this.target?this.createProject():this.next()}))},createProject(){let t=window.location.hostname.split("."),e=t[t.length-1];this.currency="com"===e?"USD":"RUB";let a={client_type:"individual",credentials:{},currency:this.currency};this.$api.createProject({},a).then((()=>{this.next()})).catch((()=>{this.isLoading=!1,this.$toast.show({text:"Ошибка при создании проекта."})}))},login(){let t={username:this.email,password:this.newPassword,domain:window.location.hostname};this.$api.login({},t).then((t=>{let e={email:this.email,token:t.data.token,lifetime:t.data.lifetime,type:void 0===t.data.person_id?"Staff":"Person",id:t.data.staff_id||t.data.person_id,sso:!1};return this.formVisible=!1,this.$user.authenticate(e)})).then((()=>{this.sendYMTarget(this.ymTargetName),this.$el.style.display="none","registration"===this.target?this.createProject():this.next()})).catch((()=>{this.isLoading=!1,this.$router.push({name:"login"})}))},changePassword(){let t={email:this.email,code:this.componentCode,password:this.newPassword};this.isLoading=!0,this.$api.setPersonPassword({},t).then((()=>{this.$message.success({message:"Пароль успешно изменён."}),this.login()})).catch((t=>{let e;400===t.response.status?(this.responseErrorMessage=this.getPasswordErrorText(t.response.data),t.response.data.includes("Bad Request")?e="Ссылка некорректна. Проверьте правильность ссылки или получите новую":t.response.data.includes("Expired")?e="Срок действия ссылки истек. Получите новую":t.response.data.includes("Wrong code")&&(e="Код в ссылке неверный. Проверьте корректность ссылки")):e=404===t.response.status?"Указан некорректный email, или Вы не запрашивали смену пароля. Получите корректную ссылку":500===t.response.status?"Внутренняя проблема сервера":"Произошла ошибка. Попробуйте еще раз",e&&this.$message.error({message:e}),this.isLoading=!1}))}
1,enter(){this.$v.$touch(),this.submitForm()},submitForm(){this.formInvalid||this.target?this.formInvalid||"registration"!==this.target&&"invitation"!==this.target||this.register():this.changePassword()}}},tt=Q,et=(0,f.A)(tt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper flex justify-center align-center full-width full-height absolute"},[e("div",{staticClass:"set-password overflow-hidden box-shadow"},[e("action",{staticClass:"content",attrs:{actionStyle:t.actionStyle}},[e("template",{slot:"title"},[e("div",{staticClass:"text-regular text-on-black"},[t._v(t._s(t.$t("Задайте пароль не менее 8 символов и не часто используемый")))])])],2),e("div",{staticClass:"form content"},[e("div",{staticClass:"text-header-2 margin-bottom-2x"},[t._v(t._s(t.$t("Задайте пароль")))]),e("div",{staticClass:"field relative padding-bottom-3x"},[e("label",{staticClass:"text-regular margin-bottom"},[t._v(t._s(t.$t("Пароль")))]),e("textbox",{attrs:{autocomplete:"new-password",type:"password",name:"newPassword",id:"new-password",showPasswordButton:!0},on:{input:function(e){return t.clearErrors(e,"newPassword")},blur:function(e){return t.applyValue(e,"newPassword")},submit:t.enter},model:{value:t.newPassword,callback:function(e){t.newPassword=e},expression:"newPassword"}}),e("div",{staticClass:"input-error"},[t.$v.newPassword.$error?e("span",[t._v(t._s(t.$t(t.passwordErrorText)))]):t._e()])],1),e("div",{staticClass:"flex justify-between align-center column gap-2x margin-top"},[e("btn",{staticClass:"full-width",attrs:{disabled:t.formInvalid,fullWidth:!0},on:{click:t.submitForm}},[t._v(t._s(t.$t("Сохранить пароль")))]),e("span",{staticClass:"text-regular text-on-block-1"},[t._v(t._s(t.$t("У вас уже есть аккаунт?")))]),e("router-link",{staticClass:"text-menu text-blue flex justify-center align-center gap",attrs:{to:{name:"login"}}},[t._v(t._s(t.$t("Войти"))),e("ExitIcon")],1)],1)])],1)])}),[],!1,null,"932d209c",null).exports,at={name:"ReportUnsubscribe",components:{Btn:h.A},data(){return{email:new URLSearchParams(window.location.search).get("email")||"",uid:new URLSearchParams(window.location.search).get("uid")||"",code:new URLSearchParams(window.location.search).get("code")||"",isSending:!1,isUnsubscribed:!1,isCancelled:!1}},created(){this.email&&this.uid&&this.code||this.$router.push({name:"login"})},methods:{cancelAction(){this.isCancelled=!0},unsubscribe(){let t={email:this.email,uid:this.uid,code:this.code};this.isSending=!0,this.$api.unsubscribeReport({},t).then((()=>{this.$message.success({message:"Вы успешно отписаны от данной рассылки."}),this.isUnsubscribed=!0})).catch((t=>{let e;e=500===t.response.status?"Внутренняя проблема сервера":400===t.response.status?"Ссылка некорректна. Проверьте правильность ссылки или получите новую":404===t.response.status?"Указан некорректный email, или Вы не были подписаны на такой отчет.":"Произошла ошибка. Попробуйте еще раз",this.$message.error({message:e})})).finally((()=>{this.isSending=!1}))}}},st=(0,f.A)(at,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper flex justify-center align-center full-width full-height absolute"},[e("div",{staticClass:"content flex column gap-6x"},[t.isUnsubscribed?e("p",{staticClass:"text-regular"},[t._v(t._s(t.$t("Вы успешно отписаны от данной рассылки.")))]):t.isCancelled?e("p",{staticClass:"text-regular"},[t._v(t._s(t.$t("Спасибо, что остаетесь с нами!")))]):[e("p",{staticClass:"text-regular"},[t._v(t._s(t.$t("Вы действительно хотите отписаться от получения отчетов по почте?")))]),e("div",{staticClass:"flex align-center justify-between"},[e("btn",{directives:[{name:"loading",rawName:"v-loading",value:t.isSending,expression:"isSending"}],attrs:{type:"secondary",color:"red"},on:{click:function(e){return t.unsubscribe()}}},[t._v(t._s(t.$t("ДА, хочу отписаться")))]),e("btn",{on:{click:function(e){return t.cancelAction()}}},[t._v(t._s(t.$t("НЕТ, оставить подписку")))])],1
1)]],2)])}),[],!1,null,"2cef144f",null).exports,it={name:"Restore",components:{Textbox:p.A,Btn:h.A,Action:x},data(){return{email:"",reseted:!1}},computed:{buttonDisable(){return this.$v.$invalid||!this.email},actionStyle(){return this.$branding.backgroundLoginLeft.url?{"background-image":`url(${this.$branding.backgroundLoginLeft.url})`}:{}}},validations:{email:{email:W.Rp,isASCII:m.kj}},methods:{reset(){let t={email:this.email,domain:window.location.host};this.$api.sendPasswordCode({},t).then((()=>{this.reseted=!0})).catch((t=>this.handleErrors(t)))},handleErrors(t){404===t.response.status&&(this.reseted=!0),429===t.response.status&&this.$message.error({message:"Слишком частый запрос на сброс пароля"})},enter(){this.$v.$touch(),this.reset()}}},rt=(0,f.A)(it,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper flex justify-center align-center full-width full-height absolute"},[e("div",{staticClass:"restore overflow-hidden box-shadow flex"},[e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",mode:"out-in"}},[t.reseted?e("div",{key:"back",staticClass:"flip-back overflow-hidden box-shadow flex"},[e("action",{staticClass:"content"},[e("template",{slot:"title"},[e("div",{staticClass:"text-on-black"},[e("div",{staticClass:"text-menu margin-bottom-3x"},[t._v(t._s(t.$t("Восстановление пароля")))]),e("span",{staticClass:"text-regular margin-bottom-3x"},[t._v(t._s(t.$t("На вашу почту высланы инструкции для восстановления пароля")))])])])],2)],1):e("div",{key:"front",staticClass:"flip-front overflow-hidden box-shadow"},[e("action",{staticClass:"content",attrs:{actionStyle:t.actionStyle}},[e("template",{slot:"title"},[e("span",{staticClass:"text-regular text-on-black"},[t._v(t._s(t.$t("Введите e-mail, который вы указывали при регистрации")))])])],2),e("div",{staticClass:"form content"},[e("div",{staticClass:"text-header-2 margin-bottom-2x"},[t._v(t._s(t.$t("Восстановление пароля")))]),e("div",{staticClass:"field padding-bottom-3x"},[e("label",{staticClass:"text-regular margin-bottom"},[t._v(t._s(t.$t("E-mail")))]),e("textbox",{attrs:{autocomplete:"email",name:"email",id:"restore-email"},on:{submit:t.enter},model:{value:t.email,callback:function(e){t.email="string"==typeof e?e.trim():e},expression:"email"}})],1),e("div",{staticClass:"flex align-center column gap-2x margin-top"},[e("btn",{staticClass:"full-width",attrs:{disabled:t.buttonDisable,fullWidth:!0},on:{click:t.reset}},[t._v(t._s(t.$t("Сбросить")))]),e("router-link",{staticClass:"text-menu text-blue",attrs:{to:{name:"login"}}},[t._v(t._s(t.$t("Я вспомнил пароль")))])],1)])],1)])],1)])}),[],!1,null,"0b47dba7",null).exports,nt={name:"Activate",props:{code:{required:!0}},data(){return{email:new URLSearchParams(window.location.search).get("email")||""}},created(){if(this.code){let t={},e={code:this.code,email:this.email};this.$api.activate(t,e).then((t=>{this.$message.success({message:"Аккаунт успешно активирован"});let e=t.data.data;"code"in e?this.$router.push({name:"set-password",query:{email:this.email,code:e.code}}):this.$router.push({name:"login"})})).catch((t=>{410===t.response.status?this.$message.error({message:"Ссылка недействительна"}):this.$message.error({message:"Ошибка подтверждения email"}),this.$router.push({name:"login"})}))}}},ot=(0,f.A)(nt,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports,ct=(a(37550),a(81454),a(64996)),lt=a(21563),dt={name:"Codes",components:{Textbox:p.A,Toggle:ct.A,WarningText:lt.A},props:{data:{type:Object,default:null},onlyMainCodes:{type:Boolean,default:!1},queryStringCacheCheck:{type:Boolean,default:!1}},data(){return{times:[{value:"0s",text:"не кешировать"},{value:"1s",text:"1 секунда"},{value:"30s",text:"30 секунд"},{value:"1m",text:"1 минута"},{value:"10m",text:"10 минут"},{value:"30m",text:"30 минут"},{value:"1h",text:"1 час"},{value:"4h",text:"4 часа"},{value:"12h",text:"12 часов"},{value:"1d",text:"1 день"},{value:"2d",text:"2 дня"},{value:"3d",text:"3 дня"},{value:"7d",text:"7 дней"},{value:"14d",text:"14 дней"},{value:"30d",text:"30 дней"},{value:0,text:"Вручную"}],success:"1d",successTimeInS:"",redirect:"1d",redirectTimeInS:"",notfound:"1s",notfoundTimeInS:"",servererror:"1s",servererrorTimeInS:"",queryString:!1,disableCache:!1,forceCache:!1,cacheForceHint:"Игнорировать заголовки Expires и Cache-Control при выборе времени кеширования контента"}},computed:{isZeroSecondsCacheSelected(){return[this.success,this.redirect,this.notfound,this.servererror].some((t=>"0s"===t))||[this.successTimeInS,this.redirectTimeInS,this.notfoundTimeInS,this.servererrorTimeInS].some((t=>"0"===t))}},created(){let t={"2xx":"success","3xx":"redirect","4xx":"notfound","5xx":"servererror",force:"forceCache"};this.data&&(this.queryString=this.data.consider_args,this.disableCache=!!this.data.disable,this.data.valid&&Object.keys(this.data.valid).forEac
1h((e=>{let a=this.data.valid[e],s=t[e];"force"===e?this[s]=Boolean(a):this.times.some((t=>t.value===a))?this[s]=a:(this[s]=0,this[s+"TimeInS"]=parseInt(a))})))},validations:{successTimeInS:{numeric:W.sH,requiredIf:(0,W.F5)((t=>!t.success))},redirectTimeInS:{numeric:W.sH,requiredIf:(0,W.F5)((t=>!t.redirect))},notfoundTimeInS:{numeric:W.sH,requiredIf:(0,W.F5)((t=>!t.notfound))},servererrorTimeInS:{numeric:W.sH,requiredIf:(0,W.F5)((t=>!t.servererror))}},watch:{"$v.$invalid":function(t){this.$emit("valid",!t)},success(t,e){this.clearTime(t,e,"successTimeInS")},redirect(t,e){this.clearTime(t,e,"redirectTimeInS")},notfound(t,e){this.clearTime(t,e,"notfoundTimeInS")},servererror(t,e){this.clearTime(t,e,"servererrorTimeInS")}},methods:{clearTime(t,e,a){!e&&t&&(this[a]="")},getData(){return this.disableCache?{disable:!0}:{valid:{force:this.forceCache,"2xx":this.success||this.successTimeInS+"s","3xx":this.redirect||this.redirectTimeInS+"s","4xx":this.notfound||this.notfoundTimeInS+"s","5xx":this.servererror||this.servererrorTimeInS+"s"},consider_args:this.queryString}}}},ut=dt,mt=(0,f.A)(ut,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"caching"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Кеширование")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Деактивируйте, если кеширование необходимо отключить")))]),e("toggle",{staticClass:"margin-bottom",attrs:{values:{left:!0,right:!1}},model:{value:t.disableCache,callback:function(e){t.disableCache=e},expression:"disableCache"}})],1),t.disableCache?t._e():[e("div",[e("div",{staticClass:"margin-bottom-2x text-extralight"},[e("span",[t._v(t._s(t.$t("Если в ответах источника контента (ориджина) уже содержатся заголовки Cache-Control и/или Expires, то кеширование производится на время, указанное в этих заголовках.")))]),e("br"),e("span",[t._v(t._s(t.$t('Чтобы изменить это поведение необходимо включить "Игнорировать заголовки управления кешированием". В этом случае кеширование будет производиться на время, заданное в этом разделе. ')))]),e("span",[t._v(t._s(t.$t("Также заданное время кеширования будет использовано для ответов источника контента (ориджина) в которых не содержатся заголовки управления кешированием.")))])]),e("div",{staticClass:"margin-bottom-2x text-extralight"},[t._v(t._s(t.$t("Укажите время кэширования в зависимости от кода ответа. Для 2хх и 3хх кодов рекомендуется устанавливать одинаковые значения.")))]),e("div",{staticClass:"margin-bottom-2x row align-center"},[e("div",{staticClass:"col-xs-3 text-extralight"},[t._v(t._s("2xx"))]),e("div",{staticClass:"col-xs-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.success,expression:"success"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.success=e.target.multiple?a:a[0]}}},t._l(t.times,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("div",[t.success?t._e():e("textbox",{attrs:{name:"successTimeInS",placeholder:t.$t("Введите своё значение в секундах")},model:{value:t.successTimeInS,callback:function(e){t.successTimeInS=e},expression:"successTimeInS"}}),t.$v.successTimeInS.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите время в секундах.")))]):t._e()],1)])],1)]),e("div",{staticClass:"margin-bottom-2x row align-center"},[e("div",{staticClass:"col-xs-3 text-extralight"},[t._v(t._s("3xx"))]),e("div",{staticClass:"col-xs-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.redirect,expression:"redirect"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.redirect=e.target.multiple?a:a[0]}}},t._l(t.times,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("div",[t.redirect?t._e():e("textbox",{attrs:{name:"redirectTimeInS",placeholder:t.$t("Введите своё значение в секундах")},model:{value:t.redirectTimeInS,callback:function(e){t.redirectTimeInS=e},expression:"redirectTimeInS"}}),t.$v.redirectTimeInS.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите время в секундах.")))]):t._e()],1)])],1)])]),t.onlyMainCodes?t._e():e("div",[e("div",{staticClass:"margin-bottom-2x row align-center"},[e("div",{staticClass:"col-xs-3 text-extralight"},[t._v(t._s("4xx"))]),e("div",{staticClass:"col-xs-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.notfound,expression:"notfound"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.notfound=e.target.multiple?a:a[0]}}},t._l(t.times,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("div",[t.notfound?t._e():e("textbox",{attrs:{name:"notfoundTimeInS",placeholder:t.$t("Введите своё значение в секундах")},model:{value:t.notfoundTimeInS,callback:function(e){t.notfoundTimeInS=e},expression:"notfoundTimeInS"}}
1),t.$v.notfoundTimeInS.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите время в секундах.")))]):t._e()],1)])],1)]),e("div",{staticClass:"margin-bottom-2x row align-center"},[e("div",{staticClass:"col-xs-3 text-extralight"},[t._v(t._s("5xx"))]),e("div",{staticClass:"col-xs-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.servererror,expression:"servererror"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.servererror=e.target.multiple?a:a[0]}}},t._l(t.times,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("div",[t.servererror?t._e():e("textbox",{attrs:{name:"servererrorTimeInS",placeholder:t.$t("Введите своё значение в секундах")},model:{value:t.servererrorTimeInS,callback:function(e){t.servererrorTimeInS=e},expression:"servererrorTimeInS"}}),t.$v.servererrorTimeInS.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите время в секундах.")))]):t._e()],1)])],1)])]),t.isZeroSecondsCacheSelected?e("WarningText",[t._v(t._s(t.$t("Внимание! При выборе времени кеширования 0 секунд возможна нестабильная работа CDN. Распределённая сеть предназначена для работы с кешированием при отдаче контента конечным пользователям.")))]):t._e(),e("WarningText",[t.forceCache?e("span",[t._v(t._s(t.$t("Заголовки кеширования игнорируются при расчете времени кеширования, но не отбрасываются и передаются далее в ответах пользователям.")))]):e("span",[t._v(t._s(t.$t("Некорректные значения заголовков (Expires с прошедшим временем, или Cache-control: private) отключают кеширование, что часто приводит к повышенной нагрузке на источник контента (ориджин).")))])]),e("div",{staticClass:"margin-bottom-2x flex align-center gap-2x"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.forceCache,expression:"forceCache"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.forceCache)?t._i(t.forceCache,null)>-1:t.forceCache},on:{change:function(e){var a=t.forceCache,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.forceCache=a.concat([null])):r>-1&&(t.forceCache=a.slice(0,r).concat(a.slice(r+1)))}else t.forceCache=i}
1}}),e("span",[t._v(t._s(t.$t("Игнорировать заголовки управления кешированием")))])]),e("Tooltip",{attrs:{content:t.$t(t.cacheForceHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.queryStringCacheCheck?e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Query String")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте если нужно учитывать query string при кешировании. Если опция включена, ссылки site.ru/img/1.jpg?id=1 и site.ru/img/1.jpg?id=2 будут разными объектами в кеше.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.queryString,callback:function(e){t.queryString=e},expression:"queryString"}})],1):t._e()]],2)}),[],!1,null,"c0f5ed5a",null),pt=mt.exports,ht=a(7521),gt=a(95093),vt=a.n(gt);function ft(t,e){return t.name.en>e.name.en?1:t.name.en<e.name.en?-1:0}function xt(t,e){return t.name.ru>e.name.ru?1:t.name.ru<e.name.ru?-1:0}var bt={name:"Limitations",components:{Toggle:ct.A,Textbox:p.A,DateTimePicker:ht.A,Btn:h.A},props:{data:{type:Object,default:null}},data(){return{requestPayment:!0,geoEnabled:!1,showLimitations:!1,ipEnabled:!1,refererEnabled:!1,useragentEnabled:!1,geoLimits:[],ipLimits:[],refererLimits:[],useragentLimits:[],actions:[{text:"разрешено",value:"allow"},{text:"запрещено",value:"deny"}],domainExamples:[{example:"example.com",description:"точное соответствие"},{example:"~.*\\.example.com",description:"все поддомены example.com, не включая example.com"},{example:"~.*example.com",description:"все домены 3-го уровня, включая example.com"},{example:"~a\\d+\\.example.com",description:"регулярное выражение"}],useragentExamples:[{example:"Yandex",description:"точное соответствие"},{example:"~[Yy]andex",description:"Yandex или yandex"},{example:"~^(curl)\\.7\\.",description:"регулярное выражение"}],countries:[],regions:[],dateTimePickerFormat:"YYYY-MM-DD HH:mm",dateTimeApiFormat:"YYYY-MM-DDTHH:mm:ssZ",addRuleHint:"Можно задать несколько правил, не пересекающихся во времени",addExcludeHint:"",addTimeHint:"* Если интервалы не заданы, правило действует постоянно"}},computed:{ruSortedCountries:function(){return this.countries.toSorted(xt)},enSortedCountries:function(){return this.countries.toSorted(ft)},ruSortedRegions:function(){return this.regions.toSorted(xt)},enSortedRegions:function(){return this.regions.toSorted(ft)},tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}}},created(){this.data&&("requestPayment"in this.data&&(this.requestPayment=this.data.requestPayment),this.geoLimits=this.data.geo||[],this.geoLimits&&(this.setLocalTime(this.geoLimits),this.showLimitations=!0),this.ipLimits=this.data.ip||[],this.ipLimits&&(this.setLocalTime(this.ipLimits),this.showLimitations=!0),this.refererLimits=this.data.referer||[],this.refererLimits&&(this.setLocalTime(this.refererLimits),this.showLimitations=!0),this.useragentLimits=this.data.useragent||[],this.useragentLimits&&(this.setLocalTime(this.useragentLimits),this.showLimitations=!0),this.geoEnabled=!!this.data.geo,this.ipEnabled=!!this.data.ip,this.refererEnabled=!!this.data.referer,this.useragentEnabled=!!this.data.useragent,this.showLimitations=this.geoEnabled||this.ipEnabled||this.refererEnabled||this.useragentEnabled),this.$api.getCountriesList().then((t=>{this.countries=t.data.data})),this.$api.getRegionsList().then((t=>{this.regions=t.data.data,this.regions.push({country_code:"",code:null,name:{ru:"ВСЕ РЕГИОНЫ",en:"ALL REGIONS"}})}))},validations:{refererLimits:{$each:{exclude:{$each:{validateReferer:function(t){return""!==t.referer&&/^[^а-яА-Я]*$/i.test(t.referer)}}}}},useragentLimits:{$each:{exclude:{$each:{validateUseragent:function(t){return""!==t.useragent&&/^[^а-яА-Я]*$/i.test(t.useragent)}}}}},geoLimits:{$each:{exclude:{$each:{validateCountry:function(t){return null!==t.country}}}}},ipLimits:{$each:{exclude:{$each:{validateIp:function(t){return/^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(\/([1-2][0-9]|3[0-2]|[0-9]))?$/.test(t.ip)}}}}}}
1,watch:{"$v.$invalid":function(t){this.$emit("valid",!t)}},methods:{getDataOrder(){let t=this.getData(),e="";return t.geo&&(e+="\nГео:\n"+this.formLimitations(t.geo)),t.ip&&(e+="\nIP:\n"+this.formLimitations(t.ip)),t.referer&&(e+="\nРеферер:\n"+this.formLimitations(t.referer)),t.useragent&&(e+="\nUser-Agent:\n"+this.formLimitations(t.useragent)),e},formLimitations(t){let e="";for(let a of t){e+="\tпо умолчанию: "+a.default_action,e+="\n\tисключения: ";for(let t of a.exclude)t||(e+="нет"),t.country&&(e+="\n\t\tдействие: "+t.action+" страна: "+t.country,t.region&&(e+=" регион: "+t.region)),t.ip&&(e+="\n\t\tip адресс: "+t.ip),t.referer&&(e+="\n\t\tреферер: "+t.referer),t.useragent&&(e+="\n\t\tuser-agent: "+t.useragent);e+="\n\tвремя действия:",a.times||(e+=" \n\t\tпостоянно");for(let t of a.times)e+="\n\t\t",t.start||t.end||(e+="постоянно"),t.start&&(e+="от: "+vt().tz(t.start,this.dateTimeApiFormat,"UTC").format(this.dateTimePickerFormat)),t.end&&(e+=" до: "+vt().tz(t.end,this.dateTimeApiFormat,"UTC").format(this.dateTimePickerFormat));e+="\n"}return e},setUTCTime(t){t.forEach((t=>{t.times.forEach((t=>{t.start&&(t.start=vt().tz(t.start,this.dateTimeApiFormat,this.$user.personTimezone).utc().format()),t.end&&(t.end=vt().tz(t.end,this.dateTimePickerFormat,this.$user.personTimezone).utc().format())}))}))},setLocalTime(t){t.forEach((t=>{const e=[];t.times.forEach((t=>{const a={start:"",end:""};t.start&&(a.start=vt().tz(t.start,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone).format(this.dateTimePickerFormat)),t.end&&(a.end=vt().tz(t.end,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone).format(this.dateTimePickerFormat)),e.push(a)})),t.times=e}))},clearData(){this.geoEnabled=!1,this.ipEnabled=!1,this.refererEnabled=!1,this.useragentEnabled=!1,this.geoLimits=[],this.ipLimits=[],this.refererLimits=[],this.useragentLimits=[]},toggleLimitations(t){t||this.clearData()},getData(){let t={};return 0!==this.geoLimits.length&&(t.geo=JSON.parse(JSON.stringify(this.geoLimits)),this.setUTCTime(t.geo)),0!==this.ipLimits.length&&(t.ip=JSON.parse(JSON.stringify(this.ipLimits)),this.setUTCTime(t.ip),t.ip.forEach((t=>{t.exclude.forEach((t=>{t.ip.includes("/")||(t.ip+="/32")}))}))),0!==this.refererLimits.length&&(t.referer=JSON.parse(JSON.stringify(this.refererLimits)),this.setUTCTime(t.referer)),0!==this.useragentLimits.length&&(t.useragent=JSON.parse(JSON.stringify(this.useragentLimits)),this.setUTCTime(t.useragent)),t},toggleGeoLimitations(t){this.geoLimits=t?[this.createLimitation()]:[]},addGeoLimitation(){let t=this.createLimitation();t.times.push(this.createTimes()),this.geoLimits.push(t),this.geoLimits[0].times.length||this.geoLimits[0].times.push(this.createTimes())},removeGeoLimitation(t){this.geoLimits.splice(t,1),1===this.geoLimits.length&&1===this.geoLimits[0].times.length&&null===this.geoLimits[0].times[0].end&&null===this.geoLimits[0].times[0].start&&(this.geoLimits[0].times=[])},createGeoExclude(){return{action:"allow",country:null,region:null}},addGeoTime(t){this.geoLimits[t].times.push(this.createTimes())},removeGeoTime(t,e){this.geoLimits[t].times.splice(e,1)},addGeoExclude(t){this.geoLimits[t].exclude.push(this.createGeoExclude())},setAllRegions(t,e){this.geoLimits[t].exclude[e].region=null},removeGeoExclude(t,e){this.geoLimits[t].exclude.splice(e,1)},toggleIpLimitations(t){this.ipLimits=t?[this.createLimitation()]:[]},addIpLimitation(){let t=this.createLimitation();t.times.push(this.createTimes()),this.ipLimits.push(t),this.ipLimits[0].times.length||this.ipLimits[0].times.push(this.createTimes())},removeIpLimitation(t){this.ipLimits.splice(t,1),1===this.ipLimits.length&&1===this.ipLimits[0].times.length&&null===this.ipLimits[0].times[0].end&&null===this.ipLimits[0].times[0].start&&(this.ipLimits[0].times=[])},createIpExclude(){return{ip:""}},addIpTime(t){this.ipLimits[t].times.push(this.createTimes())},removeIpTime(t,e){this.ipLimits[t].times.splice(e,1)},addIpExclude(t){this.ipLimits[t].exclude.push(this.createIpExclude())},removeIpExclude(t,e){this.ipLimits[t].exclude.splice(e,1)},toggleRefererLimitations(t){this.refererLimits=t?[this.createLimitation()]:[]},addRefererLimitation(){let t=this.createLimitation();t.times.push(this.createTimes()),this.refererLimits.push(t),this.refererLimits[0].times.length||this.refererLimits[0].times.push(this.createTimes())},removeRefererLimitation(t){this.refererLimits.splice(t,1),1===this.refererLimits.length&&1===this.refererLimits[0].times.length&&null===this.refererLimits[0].times[0].end&&null===this.refererLimits[0].times[0].start&&(this.refererLimits[0].times=[])},createRefererExclude(){return{referer:""}},addRefererTime(t){this.refererLimits[t].times.push(this.createTimes())},removeRefererTime(t,e){this.refererLimits[t].times.splice(e,1)},addRefererExclude(t){this.refererLimits[t].exclude.push(this.createRefererExclude())},removeRefererExclude(t,e){this.refererLimits[t].exclude.splice(e,1)},toggleUseragentLimitations(t){this.useragentLimits=t?[this.createLimitation()]:[]},addUseragentLimitation(){let t=this.createLimitation();t.times.push(this.createTimes()),this.useragentLimits.push(t),this.useragentLimits[0].times.length||this.useragentLimits[0].times.push(this.createTimes())},removeUseragentLimitation(t){this.useragentLimits.splice(t,1),1===this.useragentLimits.length&&1===this.useragentLimits[0].times.length&&null===this.useragentLimits[0].times[0].end&&null===this.useragentLimits[0].times[0].start&&(this.useragentLimits[0].times=[])},createUseragentExclude(){return{useragent:""}},addUseragentTime(t){this.useragentLimits[t].times.push(this.createTimes())},removeUseragentTime(t,e){this.useragentLimits[t].times.splice(e,1)},addUseragentExclude(t){this.useragentLimits[t].exclude.push(this.createUseragentExclude())},removeUseragentExclude(t,e){this.useragentLimits[t].exclude.splice(e,1)},createLimitation(){return{default_action:"allow",exclude:[],times:[]}},createTimes(){return{start:null,end:null}}}},_t=bt,Ct=(0,f.A)(_t,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"limitations"},[e("div",{staticClass:"s520i"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Ограничения раздачи")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если хотите установить гео, IP, referer или User-Agent ограничения.")))]),e("toggle",{attrs:{requestPaidServiceConfirmation:t.requestPayment&&!this.$user.isCDN1()},on:{input:t.toggleLimitations},model:{value:t.showLimitations,callback:function(e){t.showLimitations=e},expression:"showLimitations"}})],1),t.showLimitations?e("div",{staticClass:"margin-top-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Гео ограничения")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте для ограничения трафика по странам и регионам")))]),e("toggle",{staticClass:"margin-bottom",on:{input:t.toggleGeoLimitations},model:{value:t.geoEnabled,callback:function(e){t.geoEnabled=e},expression:"geoEnabled"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.geoEnabled,expression:"geoEnabled"}],staticClass:"target-enable"},[e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.geoLimits,(function(a,s){return e("div",{key:s,staticClass:"header margin-left"},[s?e("hr",{staticClass:"margin-bottom-2x"}):t._e(),e("div",{staticClass:"row margin-bottom text-regular align-center"},[t._v(t._s(t.$t("По умолчанию:"))),e("select",{directives:[{name:"model",rawName:"v-model",value:a.default_action,expression:"geoLimit.default_action"}],staticClass:"margin-left default-action",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"default_action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),s?t._e():e("Tooltip",{attrs:{content:t.$t(t.addRuleHint),placement:"top"}},[e("div",{staticClass:"add",on:{click:function(e){return t.addGeoLimitation()}}},[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",width:"512px",height:"512px"}},[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")])])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeGeoLimitation(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",width:"512px",height:"512px"}},[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("label",{staticClass:"margin-top text-small"},[t._v(t._s(t.$t("Исключения:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить исключение из правила по умолчанию"))),e("div",{staticClass:"add",on:{click:function(e){return t.addGeoExclude(s)}}},[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",width:"512px",height:"512px"}},[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")])])]),a.exclude.length?e("div",{staticClass:"exclude-wrapper"},[t._l(a.exclude,(function(a,i){return e("div",{key:"geoExclude"+i,staticClass:"target-exclude margin-left"},[e("div",{staticClass:"exclude-action align-center"},[e("select",{directives:[{name:"model",rawName:"v-model",value:a.action,expression:"geoExclude.action"}],on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),e("div",{staticClass:"exclude-country"},["ru_RU"===t.$i18n.locale?e("select",{directives:[{name:"model",rawName:"v-model",value:a.country,expression:"geoExclude.country"}],on:{blur:function(e){return t.$v.geoLimits.$each[s].exclude.$each[i].$touch()},change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"country",e.target.multiple?s:s[0])},function(e){return t.setAllRegions(s,i)}]}},[e("option",{attrs:{disabled:""},domProps:{value:null,textContent:t._s(t.$t("Выберите страну"))}}),t._l(t.ruSortedCountries,(function(a){return e("option",{domProps:{value:a.code,textContent:t._s(t.$t(a.name.ru))}})}))],2):e("select",{directives:[{name:"model",rawName:"v-model",value:a.country,expression:"geoExclude.country"}],on:{blur:function(e){return t.$v.geoLimits.$each[s].exclude.$each[i].$touch()},change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"country",e.target.multiple?s:s[0])},function(e){return t.setAllRegions(s,i)}]}},[e("option",{attrs:{disabled:""},domProps:{value:null,textContent:t._s(t.$t("Select country"))}}),t._l(t.enSortedCountries,(function(a){return e("option",{domProps:{value:a.code,textContent:t._s(t.$t(a.name.en))}})}))],2)]),e("div",{staticClass:"exclude-region"},["ru_RU"===t.$i18n.locale?e("select",{directives:[{name:"model",rawName:"v-model",value:a.region,expression:"geoExclude.region"}],on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"region",e.target.multiple?s:s[0])}}},t._l(t.ruSortedRegions.filter((t=>t.country_code===a.country||null===t.code)),(function(a){return e("option",{domProps:{value:a.code,textContent:t._s(t.$t(a.name.ru))}})})),0):e("select",{directives:[{name:"model",rawName:"v-model",value:a.region,expression:"geoExclude.region"}],on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"region",e.target.multiple?s:s[0])}}},t._l(t.enSortedRegions.filter((t=>t.country_code===a.country||null===t.code)),(function(a){return e("option",{domProps:{value:a.code,textContent:t._s(t.$t(a.name.en))}})})),0)]),e("div",{staticClass:"remove",on:{click:function(e){return t.removeGeoExclude(s,i)}}},[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",width:"512px",height:"512px"}},[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.$v.geoLimits.$each[s].exclude.$each[i].$error?e("div",{staticClass:"has-error"},[e("span",{domProps:{textContent:t._s(t.$t("Выберите страну или удалите исключение"))}})]):t._e()])})),e("div",{staticClass:"text-extralight domain-memo margin-left"},[t._v(t._s(t.$t("* Исключения в которых задан регион применяются в первую очередь")))])],2):t._e(),e("label",{staticClass:"margin-top-2x text-small"},[t._v(t._s(t.$t("Интервалы времени:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить время действия ограничения"))),e("div",{staticClass:"add simptip-multiline",class:t.tipObjectTop,on:{click:function(e){return t.addGeoTime(s)}}},[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",width:"512px",height:"512px"}},[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")])]),a.times.length?t._e():e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))])]),e("div",{staticClass:"flex column gap"},t._l(a.times,(function(i,r){return e("div",{key:"geotime"+r,staticClass:"schedule margin-left"},[e("div",{staticClass:"flex align-center gap-2x"},[e("DateTimePicker",{attrs:{type:"datetimerange"},model:{value:a.times[r],callback:function(e){t.$set(a.times,r,e)},expression:"geoLimit.times[k]"}}),1===t.geoLimits.length||r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeGeoTime(s,r)}}},[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",width:"512px",height:"512px"}},[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),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))]):t._e(),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))]):t._e()])})),0)])})),0)],1),e("label",{staticClass:"margin-bottom margin-top"},[t._v(t._s(t.$t("Ограничения по IP")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте для ограничения трафика по IP адресам")))]),e("toggle",{staticClass:"margin-bottom",on:{input:t.toggleIpLimitations},model:{value:t.ipEnabled,callback:function(e){t.ipEnabled=e},expression:"ipEnabled"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.ipEnabled,expression:"ipEnabled"}],staticClass:"target-enable"},[e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.ipLimits,(function(a,s){return e("div",{key:s,staticClass:"header margin-left"},[s?e("hr",{staticClass:"margin-bottom-2x"}):t._e(),e("div",{staticClass:"row margin-bottom align-center text-regular"},[e("label",[t._v(t._s(t.$t("По умолчанию:")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:a.default_action,expression:"ipLimit.default_action"}],staticClass:"margin-left default-action",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"default_action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),s?t._e():e("Tooltip",{attrs:{content:t.$t(t.addRuleHint),placement:"top"}},[e("div",{staticClass:"add",on:{click:function(e){return t.addIpLimitation()}}},[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",width:"512px",height:"512px"}},[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")])])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeIpLimitation(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",width:"512px",height:"512px"}},[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("label",{staticClass:"margin-top text-small"},[t._v(t._s(t.$t("Исключения:")))]),e("div",{staticClass:"text-extralight margin-bottom"},["deny"===t.ipLimits[s].default_action?e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Разрешить"))}}):e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Запретить"))}}),e("span",{staticClass:"referer-exclude",domProps:{textContent:t._s(t.$t(" доступ c IP адресов:"))}}),e("div",{staticClass:"add",on:{click:function(e){return t.addIpExclude(s)}}},[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",width:"512px",height:"512px"}},[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._l(a.exclude,(function(a,i){return e("div",{key:"ipExclude"+i,staticClass:"margin-left target-exclude"},[e("div",{staticClass:"exclude-ip"},[e("textbox",{attrs:{placeholder:t.$t("192.168.100.1/24")},on:{blur:function(e){return t.$v.ipLimits.$each[s].exclude.$each[i].$touch()}},model:{value:t.ipLimits[s].exclude[i].ip,callback:function(e){t.$set(t.ipLimits[s].exclude[i],"ip",e)},expression:"ipLimits[i].exclude[j].ip"}})],1),e("div",{staticClass:"remove",on:{click:function(e){return t.removeIpExclude(s,i)}}},[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",width:"512px",height:"512px"}},[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.$v.ipLimits.$each[s].exclude.$each[i].$error?e("div",{staticClass:"has-error"},[e("span",{domProps:{textContent:t._s(t.$t("Укажите корректный IP адрес"))}})]):t._e()])})),e("label",{staticClass:"margin-top-2x text-small"},[t._v(t._s(t.$t("Интервалы времени:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить время действия ограничения"))),e("div",{staticClass:"add simptip-multiline",class:t.tipObjectTop,on:{click:function(e){return t.addIpTime(s)}}},[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",width:"512px",height:"512px"}},[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")])]),a.times.length?t._e():e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))])]),t._l(a.times,(function(i,r){return e("div",{key:r,staticClass:"schedule margin-left"},[e("div",{staticClass:"flex align-center gap-2x"},[e("DateTimePicker",{attrs:{type:"datetimerange"},model:{value:a.times[r],callback:function(e){t.$set(a.times,r,e)},expression:"ipLimit.times[k]"}}),1===t.ipLimits.length||r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeIpTime(s,r)}}},[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",width:"512px",height:"512px"}},[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),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))]):t._e()])}))],2)})),0)],1),e("label",{staticClass:"margin-bottom margin-top"},[t._v(t._s(t.$t("Ограничения по домену")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Ограничить доступность контента на других сайтах")))]),e("toggle",{staticClass:"margin-bottom",on:{input:t.toggleRefererLimitations},model:{value:t.refererEnabled,callback:function(e){t.refererEnabled=e},expression:"refererEnabled"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.refererEnabled,expression:"refererEnabled"}],staticClass:"target-enable"},[e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.refererLimits,(function(a,s){return e("div",{key:s,staticClass:"header margin-left"},[s?e("hr",{staticClass:"margin-bottom-2x"}):t._e(),e("div",{staticClass:"row margin-bottom align-center text-regular"},[e("label",[t._v(t._s(t.$t("По умолчанию:")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:a.default_action,expression:"refererLimit.default_action"}],staticClass:"margin-left default-action",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"default_action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),s?t._e():e("Tooltip",{attrs:{content:t.$t(t.addRuleHint),placement:"top"}},[e("div",{staticClass:"add",on:{click:function(e){return t.addRefererLimitation()}}},[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",width:"512px",height:"512px"}},[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")])])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeRefererLimitation(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",width:"512px",height:"512px"}},[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("label",{staticClass:"margin-bottom text-small"},[t._v(t._s(t.$t("Исключения:")))]),e("div",{staticClass:"text-extralight margin-bottom"},["deny"===t.refererLimits[s].default_action?e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Разрешить"))}}):e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Запретить"))}}),e("span",{staticClass:"referer-exclude",domProps:{textContent:t._s(t.$t(" доступ для доменов:"))}}),e("div",{staticClass:"add",on:{click:function(e){return t.addRefererExclude(s)}}},[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",width:"512px",height:"512px"}},[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")])])]),a.exclude.length?e("div",{staticClass:"exclude-wrapper"},[t._l(a.exclude,(function(a,i){return e("div",{key:"refererExclude"+i,staticClass:"margin-left target-exclude"},[e("div",{staticClass:"exclude-referer"},[e("textbox",{attrs:{placeholder:t.$t("example.com")},on:{blur:function(e){return t.$v.refererLimits.$each[s].exclude.$each[i].$touch()}},model:{value:a.referer,callback:function(e){t.$set(a,"referer",e)},expression:"refererExclude.referer"}})],1),e("div",{staticClass:"remove",on:{click:function(e){return t.removeRefererExclude(s,i)}}},[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",width:"512px",height:"512px"}},[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.$v.refererLimits.$each[s].exclude.$each[i].$error?e("div",{staticClass:"has-error"},[e("span",{domProps:{textContent:t._s(t.$t("Заполните поле, либо удалите исключение"))}})]):t._e()])})),e("div",{staticClass:"text-extralight domain-memo margin-left"},[t._v(t._s(t.$t("Значение можно задавать одним из следующих способов:")))]),e("ol",{staticClass:"margin-bottom"},t._l(t.domainExamples,(function(a){return e("li",{staticClass:"text-extralight domain-memo"},[e("i",[t._v(t._s(a.example))]),t._v(t._s(" - "+t.$t(a.description)))])})),0)],2):t._e(),e("label",{staticClass:"margin-top-2x text-small"},[t._v(t._s(t.$t("Интервалы времени:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить время действия ограничения"))),e("div",{staticClass:"add simptip-multiline",class:t.tipObjectTop,on:{click:function(e){return t.addRefererTime(s)}}},[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",width:"512px",height:"512px"}},[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")])]),a.times.length?t._e():e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))])]),t._l(a.times,(function(i,r){return e("div",{key:r,staticClass:"schedule margin-left"},[e("div",{staticClass:"flex align-center gap-2x"},[e("DateTimePicker",{attrs:{type:"datetimerange"},model:{value:a.times[r],callback:function(e){t.$set(a.times,r,e)},expression:"refererLimit.times[k]"}}),1===t.refererLimits.length||r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeRefererTime(s,r)}}},[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",width:"512px",height:"512px"}},[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),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))]):t._e(),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))]):t._e()])}))],2)})),0)],1),e("label",{staticClass:"margin-bottom margin-top"},[t._v(t._s(t.$t("Ограничения по User-Agent")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("User-Agent - это строка, по которой сервера могут определить тип приложения, операционную систему, производителя и/или версию пользовательского агента")))]),e("toggle",{staticClass:"margin-bottom",on:{input:t.toggleUseragentLimitations},model:{value:t.useragentEnabled,callback:function(e){t.useragentEnabled=e},expression:"useragentEnabled"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.useragentEnabled,expression:"useragentEnabled"}],staticClass:"target-enable margin-bottom-2x"},[e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.useragentLimits,(function(a,s){return e("div",{key:s,staticClass:"header margin-left"},[s?e("hr",{staticClass:"margin-bottom-2x"}):t._e(),e("div",{staticClass:"row margin-bottom align-center text-regular"},[e("label",[t._v(t._s(t.$t("По умолчанию:")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:a.default_action,expression:"useragentLimit.default_action"}],staticClass:"margin-left default-action",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"default_action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),s?t._e():e("Tooltip",{attrs:{content:t.$t(t.addRuleHint),placement:"top"}},[e("div",{staticClass:"add",on:{click:function(e){return t.addUseragentLimitation()}}},[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",width:"512px",height:"512px"}},[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")])])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeUseragentLimitation(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",width:"512px",height:"512px"}},[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("label",{staticClass:"margin-top text-small"},[t._v(t._s(t.$t("Исключения:")))]),e("div",{staticClass:"text-extralight margin-bottom"},["deny"===t.useragentLimits[s].default_action?e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Разрешить"))}}):e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Запретить"))}}),e("span",{staticClass:"referer-exclude",domProps:{textContent:t._s(t.$t(" доступ для useragent:"))}}),e("div",{staticClass:"add",on:{click:function(e){return t.addUseragentExclude(s)}}},[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",width:"512px",height:"512px"}},[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")])])]),a.exclude.length?e("div",{staticClass:"exclude-wrapper"},[t._l(a.exclude,(function(a,i){return e("div",{key:"useragentExclude"+i,staticClass:"margin-left target-exclude"},[e("div",{staticClass:"exclude-useragent"},[e("textbox",{attrs:{placeholder:t.$t("User-Agent")},on:{blur:function(e){return t.$v.useragentLimits.$each[s].exclude.$each[i].$touch()}},model:{value:t.useragentLimits[s].exclude[i].useragent,callback:function(e){t.$set(t.useragentLimits[s].exclude[i],"useragent",e)},expression:"useragentLimits[i].exclude[j].useragent"}})],1),e("div",{staticClass:"remove",on:{click:function(e){return t.removeUseragentExclude(s,i)}}},[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",width:"512px",height:"512px"}},[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.$v.useragentLimits.$each[s].exclude.$each[i].$error?e("div",{staticClass:"has-error"},[e("span",{domProps:{textContent:t._s(t.$t("Заполните поле, либо удалите исключение"))}})]):t._e()])})),e("div",{staticClass:"text-extralight domain-memo"},[t._v(t._s(t.$t("Значение можно задавать одним из следующих способов:")))]),e("ol",{staticClass:"margin-bottom"},t._l(t.useragentExamples,(function(a){return e("li",{staticClass:"text-extralight domain-memo"},[e("i",[t._v(t._s(a.example))]),t._v(t._s(" - "+t.$t(a.description)))])})),0)],2):t._e(),e("label",{staticClass:"margin-top-2x text-small"},[t._v(t._s(t.$t("Интервалы времени:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить время действия ограничения"))),e("div",{staticClass:"add simptip-multiline",class:t.tipObjectTop,on:{click:function(e){return t.addUseragentTime(s)}}},[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",width:"512px",height:"512px"}},[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")])]),a.times.length?t._e():e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))])]),t._l(a.times,(function(i,r){return e("div",{key:r,staticClass:"schedule margin-left"},[e("div",{staticClass:"flex align-center gap-2x"},[e("DateTimePicker",{attrs:{type:"datetimerange"},model:{value:a.times[r],callback:function(e){t.$set(a.times,r,e)},expression:"useragentLimit.times[k]"}}),1===t.useragentLimits.length||r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeUseragentTime(s,r)}}},[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",width:"512px",height:"512px"}},[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),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))]):t._e()])}))],2)})),0)],1)],1):t._e()])}),[],!1,null,"79d53d68",null).exports,wt={name:"Others",components:{Textbox:p.A,Toggle:ct.A,WarningText:lt.A},props:{data:{type:Object,default:null},showWarnings:{type:Boolean,default:!0}},data(){return{useBrotli:!1,useGzip:void 0,useIoss:!1,usePackaging:!1,packagingOutputProtocols:["HLS","MPEG-DASH"]}},computed:{tipObjectRight(){return{"simptip-position-right":!0,"simptip-fade":!0,"simptip-smooth":!0}}},created(){this.data&&(this.data.compress&&(this.useBrotli=!!this.data.compress.brotli,Object.prototype.hasOwnProperty.call(this.data.compress,"gzip")&&(this.useGzip=!!this.data.compress.gzip)),this.useIoss=!!this.data.ioss,this.usePackaging=!!(this.data.packaging&&this.data.packaging.mp4&&this.data.packaging.mp4.output_protocols&&this.data.packaging.mp4.output_protocols.length),this.usePackaging&&(this.packagingOutputProtocols=this.data.packaging.mp4.output_protocols))},validations:{},watch:{"$v.$invalid":function(t){this.$emit("valid",!t)}},methods:{getData(){let t={compress:{brotli:this.useBrotli,gzip:this.useGzip}};return this.usePackaging&&this.packagingOutputProtocols&&this.packagingOutputProtocols.length&&(t.packaging={mp4:{output_protocols:this.packagingOutputProtocols}}),this.useIoss&&(t.ioss=this.useIoss),t}}},yt=(0,f.A)(wt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"others"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Сжатие Brotli")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать алгоритм сжатия данных Brotli.")))]),e("toggle",{staticClass:"margin-bottom",attrs:{requestPaidServiceConfirmation:!0},model:{value:t.useBrotli,callback:function(e){t.useBrotli=e},expression:"useBrotli"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Оптимизация и модификация изображений")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать конвертацию в WebP или модификацию (resize, progressive jpeg) изображений стандартных типов (jpeg, jpg, png, gif).")))]),e("toggle",{staticClass:"margin-bottom",attrs:{requestPaidServiceConfirmation:!0},model:{value:t.useIoss,callback:function(e){t.useIoss=e},expression:"useIoss"}}),t.useIoss?e("div",{staticClass:"margin-bottom"},[e("WarningText",[t._v(t._s(t.$t("В сервисе есть ограничение на размер файла - до 2 Мб. Файлы больше 2 Мб не обрабатываются и будут отдаваться в неизменном виде. Если вам нужно обрабатывать файлы тяжелее 2 Мб, обратитесь к вашему менеджеру или в саппорт.")))]),t.showWarnings?e("WarningText",[t._v(t._s(t.$t('Данная опция несовместима с опцией "Конвертация видео". Если вам требуется использовать обе опции, то необходимо включить их для разных правил (путей к файлам).')))]):t._e()],1):t._e()],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Конвертация видео")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если у вас видео в формате MP4-файла и требуется его раздача с использованием стриминговых протоколов (HLS, MPEG-DASH).")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.usePackaging,callback:function(e){t.usePackaging=e},expression:"usePackaging"}}),t.usePackaging?e("div",{staticClass:"margin-bottom"},[t.showWarnings?e("WarningText",[t._v(t._s(t.$t('Данная опция несовместима с опцией "Оптимизация и модификация изображений". Если вам требуется использовать обе опции, то необходимо включить их для разных правил (путей к файлам).')))]):t._e(),e("WarningText",[t._v(t._s(t.$t('Мы не поддерживаем контейнер Fragmented MP4 для данной услуги. Проверить контейнер файла вы можете с помощью команды "MP4Box -info test.mp4".')))])],1
1):t._e()],1)])}),[],!1,null,"c08403d6",null).exports,St=a(29939),kt=a(80440),Tt=a(359),At={name:"FormCheckboxBlock",props:{value:{type:Array,required:!0},label:{type:String,required:!0},hint:{type:String}},data(){return{checkboxElems:this.value}},computed:{tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}}}},Rt=(0,f.A)(At,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",[t._v(t._s(t.$t(t.label)))]),t.hint?e("Tooltip",{attrs:{content:t.$t(t.hint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),t._l(t.checkboxElems,(function(a){return e("div",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.value,expression:"elem.value"}],attrs:{type:"checkbox",id:t.label+a.name},domProps:{checked:Array.isArray(a.value)?t._i(a.value,null)>-1:a.value},on:{change:function(e){var s=a.value,i=e.target,r=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&t.$set(a,"value",s.concat([null])):n>-1&&t.$set(a,"value",s.slice(0,n).concat(s.slice(n+1)))}else t.$set(a,"value",r)}}}),e("label",{attrs:{for:t.label+a.name}},[t._v(t._s(t.$t(a.name)))])])}))],2)}),[],!1,null,"70392a61",null).exports,Pt=a(54754),Mt={name:"OptionOrderModal",components:{Textbox:p.A,Btn:h.A,Toggle:ct.A,Modal:Tt.A,FormCheckboxBlock:Rt,Wrench:Pt.A},mixins:[Z.A],props:{optionName:{type:String,required:!0},optionDescription:{type:String,required:!0},modalName:{type:String,required:!0},orderFormName:{type:String,required:!0},modalButtonSendText:{type:String,default:"Отправить заявку"},modalButtonCancelText:{type:String,default:"Отмена"},checkboxLabel:{type:String,default:""},checkboxElements:{type:Array,default:()=>[]},supLabelText:{type:String,default:""}},data(){return{switcher:!1,feedbackPhone:"",feedbackEmail:"",contactType:"phone",contactPossibleValues:[{name:"По телефону",value:"phone"},{name:"По email",value:"email"}]}},created(){this.feedbackPhone=this.$user.accountPhone,this.feedbackEmail=this.$user.personEmail,this.formName=this.optionName},validations:{feedbackPhone:{required:(0,W.F5)((function(){return"phone"===this.contactType})),phone(t){return/^\+?[\d\-\s()]{9,}$/.test(t)}},feedbackEmail:{required:(0,W.F5)((function(){return"email"===this.contactType})),email:W.Rp,isASCII:m.kj}},methods:{showModal(t){this.switcher&&this.$modal.show(t)},closeModal(){this.$modal.hide()},cancel(){this.switcher=!1,this.closeModal()},send(){var t="";0!==this.checkboxElements.length&&(t+=`<p>${this.checkboxLabel}: ${this.getCheckboxValuesAsString(this.checkboxElements)}</p>`);let e=`<h2>Заказ услуги "${this.formName} (${this.orderFormName})"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Предпочтительный способ связи: ${this.findElemFromArrayOfObject(this.contactPossibleValues,this.contactType).name}</p>\n      <p>Телефон: ${this.feedbackPhone}</p>\n      <p>Email: ${this.feedbackEmail}</p>\n      ${t}`,a={client_mail_custom:this.feedbackEmail,client_tel_custom:this.feedbackPhone||"-",other:e.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(a,e),this.closeModal()}},computed:{isButtonDisabled(){switch(this.contactType){case"phone":return this.$v.feedbackPhone.$invali
1d;case"email":return this.$v.feedbackEmail.$invalid;default:return}}}},Lt=(0,f.A)(Mt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"switcher-order-modal"},[e("div",{staticClass:"margin-bottom text-regular"},[e("label",[t._v(t._s(t.$t(t.optionName)))]),t.supLabelText?e("sup",[t._v(t._s(t.$t(t.supLabelText)))]):t._e(),e("Wrench",{staticClass:"wrench",attrs:{placement:"right"}})],1),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(t.optionDescription)))]),e("Toggle",{on:{input:function(e){return t.showModal(t.modalName)}},model:{value:t.switcher,callback:function(e){t.switcher=e},expression:"switcher"}}),e("modal",{staticClass:"modal-order",attrs:{name:t.modalName},on:{close:t.cancel}},[e("template",{slot:"header"},[e("div",{staticClass:"text-sub-header-1"},[t._v(t._s(t.$t("Заказ опции")+' "'+t.$t(t.optionName)+'"'))])]),e("template",{slot:"content"},[e("div",{staticClass:"margin-bottom-3x"},[e("div",{staticClass:"text-regular margin-bottom-2x margin-top"},[t._v(t._s(t.$t('Выберите предпочтительный способ связи и нажмите кнопку "Отправить заявку".'))+" "+t._s(t.$t("Менеджер свяжется с Вами для уточнения деталей.")))]),t._l(t.contactPossibleValues,(function(a){return e("div",{staticClass:"radio margin-bottom-2x"},[e("div",{staticClass:"select margin-bottom"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.contactType,expression:"contactType"}],attrs:{type:"radio",id:a.value},domProps:{value:a.value,checked:t._q(t.contactType,a.value)},on:{change:function(e){t.contactType=a.value}}}),e("label",{attrs:{for:a.value}},[t._v(t._s(t.$t(a.name)))])]),t.contactType===a.value?["phone"===a.value?e("div",{staticClass:"select-textbox"},[e("textbox",{attrs:{maxlength:"20",placeholder:t.$t("Укажите номер телефона")},model:{value:t.feedbackPhone,callback:function(e){t.feedbackPhone=e},expression:"feedbackPhone"}}),t.$v.feedbackPhone.$invalid?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Неправильный формат телефона")))]):t._e()],1):t._e(),"email"===a.value?e("div",{staticClass:"select-textbox"},[e("textbox",{attrs:{maxlength:"100",placeholder:t.$t("Укажите адрес электронной почты")},model:{value:t.feedbackEmail,callback:function(e){t.feedbackEmail=e},expression:"feedbackEmail"}}),t.$v.feedbackEmail.$invalid?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Неправильный формат email")))]):t._e()],1):t._e()]:t._e()],2)})),0!==t.checkboxElements.length?e("FormCheckboxBlock",{staticClass:"margin-bottom-2x margin-top checkbox-block",attrs:{label:t.checkboxLabel},model:{value:t.checkboxElements,callback:function(e){t.checkboxElements=e},expression:"checkboxElements"}}):t._e()],2)]),e("template",{slot:"footer"},[e("btn",{attrs:{disabled:t.isButtonDisabled},on:{click:t.send}},[t._v(t._s(t.$t(t.modalButtonSendText)))]),e("btn",{attrs:{type:"secondary"},on:{click:t.cancel}},[t._v(t._s(t.$t(t.modalButtonCancelText)))])],1)],2)],1)}),[],!1,null,"0baaa051",null).exports,Dt=a(25892),Et=a(42729),zt=a(28848);function Nt(t){return{backup:!1,netloc:"",weight:"",required:t}}function It(t){return/^[a-zA-Zа-яА-ЯёЁ0-9\-_ .]+$/i.test(t)}function Ot(t){return/^[\w\d]*$/i.test(t)}function Ut(t){return/^[\w\d\-.]*$/i.test(t)}function Vt(t){let e=(t=t.split(":")[0]).split(".");if(4!==e.length)return!0;let a=function(t){let e=!0;return t.forEach((t=>{let a=Number(t);isNaN(a)&&(e=!1)})),e}(e),s=!0;return a&&e.forEach((t=>{let e=Number(t);(e>255||e<0)&&(s=!1)})),s}function Bt(t){return t.length>0&&"/"!==t}function Ft(t){return/^([\w\d\-.]*\.[\w\d\-.]*)+(|:[0-9]{1,5})$/i.test(t)}function Ht(t){return/^[\w\d\-.$]*$/i.test(t)}function jt(t){let e=!1;return t.forEach((function(t){t.backup||(e=!0)})),e}function qt(t){return function(t){return/^[^.]+\.amazonaws\.com$/.test(t.split(":")[0])}(t)||function(t){return-1!==["storage.yandexcloud.net","s3.amazon.com"].indexOf(t.split(":")[0])}(t)}function Gt(t){var e=!1;return t.forEach((t=>{qt(t.netloc)&&(e=!0)})),e}function Yt(t){return!qt(t)||Bt(this.s3Bucket)}function Wt(t){return!Gt(this.sources)||Bt(t)}function Zt(t){return/^[\w-/.?&:%()]*$/i.test(t)}var Kt={name:"ResourceFormHttp",components:{Btn:h.A,Textbox:p.A,Toggle:ct.A,Codes:pt,Others:yt,Spinner:kt.A,OptionOrderModal:Lt,TriangleArrow:Dt.A,QuestionIcon:St.A,FormFooter:Et.A,Limitations:Ct,WarningText:lt.A},mixins:[Z.A],props:{buttonText:{type:String},resource:{type:Object},processing:{type:Boolean},saving:{type:Boolean,default:!1},active:{type:String,default:"true"},edit:{type:Boolean,default:!1}},exampleDomain:zt.xq,data(){return{formName:"HTTP кеширование",type:"http",forms:{codes:{valid:!0,data:void 0},others:{valid:!0,data:void 0}},limitationsData:void 0,hadLimitations:!1,validLimitations:!0,auth:{md5:{secret:"",forever:!1,anywhere:!1},url:""},cert:void 0,cdn1SslCertificate:!1,cdn1Cert:"Использовать существующий",cdn1CertOptions:["Использовать существующий","Выпустить новый"],name:"",cnames:[{name:""}],modernTlsOnly:!1,strongSSLCiphers:!1,followRedirects:!1,https:!0,originSslVerify:!1,http2https:!1,awsEnabled:!1,accessKey:"",secretKey:"",httpsOnly:!1,http2:!0,hostnameEnabled:!1,s3Bucket:"",hostname:"",ownCert:!1,indexing:"deny",cacheTime:void 0,s3DomainsTexts:["Через ваш аккаунт могут быть доступны все файлы в S3 хранилище (даже не принадлежащие вам).","Это может привести к раздаче лишнего трафика.","Поэтому сейчас настроено правило, которое запрещает раздачу с s3-домена без указания бакета","Настройте разрешение для нужного вам бакета.","Пример: mybucket"],indexingTypes:[{value:"deny",text:"Скрывать использование CDN (рекомендуемое значение)"},{value:"cached",text:"Проксировать robots.txt"},{value:"custom",text:"Загрузить свой robots.txt"}
1],robotsContent:"",sources:[Nt(!0)],certs:[],letsencryptStatus:void 0,letsencryptStatusText:{processed:"Сертификат успешно выпущен",accepted:"Задача на выпуск сертификата отправлена",failed:"Произошла ошибка при выпуске сертификата"},geo:{grant:1,grants:[{text:"Разрешить",value:1},{text:"Запретить",value:2}],objects:[],objectsList:[{label:"Афганистан",value:1},{label:"Албания",value:2},{label:"Алжир",value:3},{label:"Андорра",value:4}]},showOptions:"true"!==this.active,mobile:/android|ip(hone|od|ad)/i.test(navigator.userAgent),isLoading:!1,authHint:"Используйте комбинацию из букв латинского алфавита (a-z/A-Z) и цифр (0-9). Максимальное количество символов - 100.",locations:void 0,needAuthorization:!1,authorizationTypes:[{value:"local",text:"Локальная авторизация (на основе подписи)"},{value:"external",text:"Внешняя авторизация"}],authorizationType:"local",cncConfigurationTimer:"",updateCertStatusTimer:"",send_timeout:void 0,read_timeout:void 0,connect_timeout:void 0,validCodes:!0,convertProtocols:[{name:"HLS",value:!1},{name:"MSS",value:!1},{name:"MPEG-DASH",value:!1}],cdn1Options:[{name:"Оптимизация изображений (WebP)",supLabelText:"beta",modalName:"webp",cdn1Value:!1,description:"Активируйте, если планируете использовать конвертацию изображений в WebP."},{name:"Модификация изображений",supLabelText:"beta",modalName:"resize",cdn1Value:!1,description:"Активируйте, если планируете использовать модификацию (resize) изображений."},{name:"Конвертация видео",modalName:"convert",cdn1Value:!1,checkboxElements:[{name:"HLS",value:!1},{name:"MSS",value:!1},{name:"MPEG-DASH",value:!1}],checkboxLabel:"Выберите необходимые протоколы",description:"Активируйте, если у вас видео в формате MP4-файла и требуется его раздача с использованием стриминговых протоколов (HLS, MPEG-DASH)."},{name:"Защита видео от пиратов (DRM)",modalName:"drm",cdn1Value:!1,description:"Активируйте, если планируете использовать DRM (Digital Rights Management) — технические средства защиты авторских прав, которые ограничивают пиратский доступ к видео."}],tuning:null,defaultTuning:"default",tuningOptions:[{value:"default",text:"Статика (по-умолчанию)",description:"Базовые оптимизации для раздачи картинок, видео-файлов, JavaScript-файлов, CSS-файлов и т.п.. Текстовые файлы сжимаются (gzip по умолчанию) перед отдачей пользователям."},{value:"large",text:"Большие файлы (> 20 МБайт)",description:"Оптимизация раздачи больших файлов. Файлы с ориджина загружаются по-частям (HTTP Range-запросы). Сжатие на стороне CDN не производится.",warning:'Данная опция несовместима с опциями "Оптимизация и модификация изображений" и "Конвертация видео".'},{value:"live",text:"Сегментированный видеопоток",description:"Оптимизация раздачи HTTP LIVE потоков (HLS, MPEG-DASH, MSS).",warning:'Данная опция несовместима с опциями "Оптимизация и модификация изображений" и "Конвертация видео".'}],sliceSize:16,defaultSliceSize:16,initialSliceSize:16}},validations:{name:{required:W.mw,isValidResourceName:It},s3Bucket:{isValidBucket:Wt},sources:{required:W.mw,atLeastOnePrimary:jt,$each:{netloc:{required:W.mw,netloc:Ft,isValidDomain:Yt,isValidDomainOrIp:Vt},weight:{minValue:(0,W.Ww)(1)}}},hostname:{hostnameRegexp:Ht},tuning:{required:W.mw},sliceSize:{required:W.mw,integer:W.nd,minValue:(0,W.Ww)(1),maxValue:(0,W.cG)(1024)},cnames:{$each:{name:{domain:Ut}}},cacheTime:{numeric:W.sH},auth:{md5:{secret:{latinNumeric:Ot}},url:{externalAuthLink:Zt}}},computed:{triangleArrowStyle(){return{transform:this.showOptions?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showOptions?"-2px":"2px"}},showRobots(){return"custom"===this.indexing},robotsTxt(){return"https://"+this.resource.id+".a.trbcdn.net/robots.txt"},cdn2Options(){return this.cdn1Options.slice(3)},isResourceCreationForm(){return!!this.resource}},created(){if(this.processing&&this.$toast.show({text:"Мы применяем настройки Вашего ресурса. Подождите чуть-чуть."}),this.resource){this.init(this.resource);let t={accountName:this.$user.accountName,id:this.resource.id};this.$api.getCncConfiguration(t).then((t=>{200===t.data.code?t.data.data.is_changes_apply||(this.isLoading=!0,this.$toast.show({text:"Мы конфигурируем Ваш ресурс. Подождите чуть-чуть."})):this.error=!0})),this.cncConfigurationTimer=setInterval(this.updateCncConfigurationStatus,6e4),"cache"in this.resource&&(this.forms.codes.data=this.resource.cache)}this.loadCerts()},mounted(){let t=this.$el.querySelector('input[name="robots"]'),e=this;t.addEventListener("click",(function(){e.indexing="deny"})),t.addEventListener("change",(function(t){let a,s;t.target.value?(a=this.files[0],a&&(s=new FileReader,s.addEventListener("load",(function(t){e.robotsContent=t.target.result})),s.readAsText(a)),e.indexing="custom"):e.robotsContent=""}))},watch:{letsencryptStatus(t,e){if(!e||t===e||"no"===t)return;let a=this.letsencryptStatusText[t];a&&this.$toast.show({text:a}),"processed"===t&&this.loadCerts(!0)},https(t){t||(this.originSslVerify=!1)}},beforeDestroy(){clearInterval(this.cncConfigurationTimer),clearInterval(this.updateCertStatusTimer)},methods:{addDefaultPort(t){let e=this.https?"443":"80",a=this.$v.sources.$each[t].netloc.isValidDomain&&this.$v.sources.$each[t].netloc.netloc;!this.sources[t].netloc.split(":")[1]&&this.sources[t].netloc.split(":")[0]&&a&&(":"===this.sources[t].netloc.substr(this.sources[t].netloc.length-1)?this.sources[t].netloc+=e:this.sources[t].netloc+=":"+e)},setValidCodes(t){this.validCodes=t},setValidLimitations(t){this.validLimitations=t},updateCncConfigurationStatus(){let t={accountName:this.$user.accountName,id:this.resource.id};this.$api.getCncConfiguration(t).then((t=>{200===t.data.code&&(this.isLoading=!t.data.data.is_changes_apply)}))},save(){this.getData();let t={},e=[],a=this.hostnameEnabled&&this.hostname||void 0;
1this.sources.forEach((e=>{let a=e.netloc.split(":")[0],i=e.netloc.split(":")[1];t[a]={},s.default.set(t[a],"port",+i),s.default.set(t[a],"backup",e.backup),""!==e.weight&&s.default.set(t[a],"weight",+e.weight)})),this.cnames.forEach((function(t){t.name&&e.push(t.name)})),this.s3Bucket.startsWith("/")&&(this.s3Bucket=this.s3Bucket.slice(1)),this.s3Bucket.endsWith("/")&&(this.s3Bucket=this.s3Bucket.slice(0,-1));const i={name:this.name,certificate:this.ownCert&&this.cert||void 0,http2https:this.http2https||void 0,https_only:this.httpsOnly||void 0,follow_redirects:this.followRedirects||void 0,modern_tls_only:this.modernTlsOnly||void 0,strong_ssl_ciphers:(this.modernTlsOnly?this.strongSSLCiphers:void 0)||void 0,no_http2:!this.http2||void 0,names:e,origin:{https:this.https,ssl_verify:this.https&&this.originSslVerify||void 0,hostname:a,servers:t},cache:this.forms.codes.data,robots:{type:this.indexing,robotsContent:this.robotsContent||void 0},locations:JSON.parse(JSON.stringify(this.locations||{})),tuning:this.tuning||this.defaultTuning};"large"===i.tuning&&this.sliceSize!==this.defaultSliceSize&&(i.slice_size_megabytes=this.sliceSize),Gt(this.sources)&&(i.origin.s3_bucket=this.s3Bucket),this.awsEnabled&&(i.origin.aws={auth:{access_key:this.accessKey,secret_key:this.secretKey}}),(Object.keys(this.limitationsData).length>0||this.hadLimitations)&&(i.limitations=this.limitationsData),this.read_timeout&&(i.origin.read_timeout=this.read_timeout),this.send_timeout&&(i.origin.send_timeout=this.send_timeout),this.connect_timeout&&(i.origin.connect_timeout=this.connect_timeout),this.needAuthorization&&("local"===this.authorizationType?(this.auth.md5.secret||this.auth.md5.forever||this.auth.md5.anywhere)&&(i.auth={md5:{secret:this.auth.md5.secret||void 0,forever:this.auth.md5.forever||void 0,anywhere:this.auth.md5.anywhere||void 0}}):"external"===this.authorizationType&&this.auth.url&&(i.auth={url:this.auth.url||void 0}));const r=parseInt(this.cacheTime);isNaN(r)||(i.client_cache={expires:r}),this.resource&&"headers"in this.resource&&(i.headers=this.resource.headers),this.resource&&"cors"in this.resource&&(i.cors=this.resource.cors);let n=this.forms.others.data;n&&0!==Object.keys(n).length&&(n.compress&&(i.compress=n.compress),n.packaging&&(i.packaging=n.packaging),n.ioss&&(i.ioss=n.ioss)),this.$emit("save",this.type,i)},activate(){let t=this.resource;t.active=!0,this.$emit("save",this.type,t,"Ресурс активирован.")},init(t){t.robots=t.robots||{},t.cache=t.cache||{},this.name=t.name,this.cnames=[],this.limitationsData=t.limitations||{},Object.keys(this.limitationsData).length>0&&(this.hadLimitations=!0),this.locations=t.locations||{},t.names&&t.names.length?t.names.forEach((t=>{this.cnames.push({name:t})})):this.cnames.push({name:""}),this.sources=[],Object.keys(t.origin.servers).forEach((e=>{let a=Nt(!0),s=t.origin.servers[e];a.netloc=e+":"+String(s.port),a.backup=!!s.backup,s.weight?a.weight=String(s.weight):a.weight="",this.sources.push(a)}));let e=this.resource.origin;"send_timeout"in e&&(this.send_timeout=e.send_timeout),"connect_timeout"in e&&(this.connect_timeout=e.connect_timeout),"read_timeout"in e&&(this.read_timeout=e.read_timeout),Object.assign(this.auth,t.auth),JSON.stringify(this.auth.md5)!==JSON.stringify({secret:"",forever:!1,anywhere:!1})?(this.needAuthorization=!0,this.authorizationType="local"):""!==this.auth.url&&(this.needAuthorization=!0,this.authorizationType="external"),this.modernTlsOnly=t.modern_tls_only,this.strongSSLCiphers=t.strong_ssl_ciphers,this.followRedirects=t.follow_redirects,this.http2=!t.no_http2,this.https=t.origin.https,this.originSslVerify=t.origin.ssl_verify,this.http2https=t.http2https,this.httpsOnly=t.https_only,this.cert=t.certificate,this.ownCert=!!this.cert,this.hostname=t.origin.hostname,this.hostnameEnabled=!!this.hostname,this.indexing=t.robots.type,this.robotsContent=t.robots.robotsContent,Gt(this.sources)?this.s3Bucket=t.origin.s3_bucket:this.s3Bucket="";try{this.awsEnabled=!!t.origin.aws.auth.access_key&&!!t.origin.aws.auth.secret_key}catch(t){this.awsEnabled=!1}this.awsEnabled&&(this.accessKey=t.origin.aws.auth.access_key,this.secretKey=t.origin.aws.auth.secret_key),t.client_cache&&(this.cacheTime=t.client_cache.expires),this.cnames[0].name&&(this.updateCertStatus(!0),this.updateCertStatusTimer=setInterval(this.updateCertStatus,5e3)),this.forms.others.data={compress:t.compress,packaging:t.packaging,ioss:t.ioss},this.tuning=t.tuning||this.defaultTuning,this.sliceSize=t.slice_size_megabytes||this.defaultSliceSize,this.initialSliceSize=this.sliceSize},isS3Domain(t){return qt(t)},addSource(){this.sources.push(Nt())},removeSource(t){this.sources.splice(t,1)},addCname(){this.cnames.push({name:""})},removeCname(t){this.cnames.splice(t,1)},toggleOptions(){this.showOptions=!this.showOptions},loadCerts(t){let e={accountName:this.$user.accountName};this.$api.getCerts(e).then((e=>{let a=e.data.data;this.certs=this.certs.concat(a),this.resource&&!t||!this.certs.length||this.cert||(this.cert=this.certs[0].seq)}))},updateCertStatus(t){if(!(t=t||!1)&&!this.ownCert)return;let e={name:this.$user.accountName,id:this.resource.id};this.$api.getCertLetsEncryptStatus(e).then((t=>{this.letsencryptStatus=t.data.task_status}))},issueCert(){let t={name:this.$user.accountName,id:this.resource.id};this.$api.createCertLetsEncrypt(t).then((()=>{this.letsencryptStatus="accepted"}))},getData(){"limitations"in this.$refs&&(this.limitationsData=this.$refs.limitations.getData()),"codes"in this.$refs&&(this.forms.codes.data=this.$refs.codes.getData()),"others"in this.$refs&&(this.forms.others.data=this.$refs.others.getData())},sendFormData(t){this.getData();let e=[];
1this.sources.forEach((t=>{e.push(`(Бэкап: ${t.backup}, домен: ${t.netloc.split(":")[0]}, вес: ${t.weight}, порт: ${t.netloc.split(":")[1]})`)}));var a="";this.needAuthorization?(a=this.findElemFromArrayOfObject(this.authorizationTypes,this.authorizationType).text,"local"===this.authorizationType?(a+=`( секретное слово: ${this.auth.md5.secret}`,this.auth.md5.forever&&(a+=", не ограничивать по времени"),this.auth.md5.anywhere&&(a+=", не учитывать IP адрес"),a+=" )"):a+=`( внешний скрипт: ${this.auth.url} )`):a="Нет";let s=this.$refs.limitations.getDataOrder(),i="";this.cdn1Options.forEach((t=>{i+=`<p>${t.name}: ${t.cdn1Value?"Да":"Нет"}</p>\n`}));let r=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p>Источник данных: ${e.join(", ")}</p>\n      <p>Использовать HTTPS при запросе к источникам: ${this.https?"Да":"Нет"}</p>\n      <p>Проверять сертификат ориджина: ${this.https&&this.originSslVerify?"Да":"Нет"}</p>\n      <p>Использовать AWS авторизацию при запросе к источникам: ${this.awsEnabled?"Да":"Нет"}</p>\n      <p>Использовать Hostname при обращении к источнику: ${this.hostnameEnabled?this.hostname:"Нет"}</p>\n      <p>SSL-сертификат: ${this.cdn1SslCertificate?this.cdn1Cert:"Не нужен"}</p>\n      <p>Желаемый CNAME: ${this.cnames.map((t=>t.name))}</p>\n      <p>Следовать редиректам: ${this.followRedirects?"Да":"Нет"}</p>\n      <p>Использовать HTTP2: ${this.http2?"Да":"Нет"}</p>\n      <p>Использовать только современные версии TLS: ${this.modernTlsOnly?"Да":"Нет"}</p>\n      <p>Использовать сильные SSL шифры: ${this.modernTlsOnly&&this.strongSSLCiphers?"Да":"Нет"}</p>\n      <p>Автоматически перенаправлять HTTP на HTTPS: ${this.http2https?"Да":"Нет"}</p>\n      <p>Использовать только HTTPS: ${this.httpsOnly?"Да":"Нет"}</p>\n      <p>Поисковая индексация: ${this.findElemFromArrayOfObject(this.indexingTypes,this.indexing).text}</p>\n      <p>Время кеширования контента: 2xx-${this.forms.codes.data.valid["2xx"]}, 3xx-${this.forms.codes.data.valid["3xx"]}</p>\n      <p>Игнорировать заголовки управления кешированием: ${this.forms.codes.data.valid.force?"Да":"Нет"}</p>\n      <p>Учитывать query string при кешировании: ${this.forms.codes.data.consider_args?"Да":"Нет"}</p>\n      <p>Авторизация: ${a}</p>\n      ${i}\n      <p>Ограничения раздачи: ${s||"Нет"}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,n={client_mail_custom:t.email,client_tel_custom:t.phone,other:r.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(n,r)}},netloc:Ft,domain:Ut,bucket:Bt,isValidDomain:Yt,isValidDomainOrIp:Vt,isValidBucket:Wt,isValidResourceName:It,latinNumeric:Ot,sourceModel:Nt,isS3Domain:qt,isS3Domains:Gt,atLeastOnePrimary:jt,externalAuthLink:Zt,defaultAuth:function(){return{md5:{secret:"",forever:!1,anywhere:!1},url:""}},hostnameRegexp:Ht},Jt=Kt,Xt=(0,f.A)(Jt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper resource-form-http"},[e("div",{staticClass:"blur",class:{"blur-5px":t.isLoading||t.processing,"blur-1px":"false"===t.active}},[e("div",{class:{"enable-overlay overlay":t.isLoading||t.processing||"false"===t.active,"disable-overlay overlay":!t.isLoading&&!t.processing&&"false"!==t.active}}),e("div",{staticClass:"content-block",class:{first:!this.edit}},[this.$user.isCDN1()?t._e():e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom",attrs:{for:"name"}},[t._v(t._s(t.$t("Название ресурса")))]),e("textbox",{attrs:{id:"name",name:"name"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t.$v.name.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите имя ресурса.")))]):t._e()],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom",attrs:{for:"source"}},[t._v(t._s(t.$t("Источник данных")))]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Укажите доменное имя или IP-адрес, по которому доступен ваш контент.")))]),e("div",{staticClass:"text-extralight example-text"},[t._v(t._s(`${t.$t("Пример")}: ${t.$options.exampleDomain}:443`))])]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.sources,(function(a,s){return e("div",{key:s,staticClass:"source-wrapper"},[e("div",{staticClass:"source margin-bottom flex align-center gap-2x"},[e("div",{staticClass:"domain-settings align-center grow"},[e("label",{attrs:{for:s+"netloc"}},[t._v(t._s(t.$t("Адрес")))]),e("textbox",{staticClass:"domain",attrs:{id:s+"netloc",placeholder:`${t.$options.exampleDomain}:443`},on:{blur:function(e){t.$v.sources.$each[s].$touch(),t.addDefaultPort(s)}},model:{value:a.netloc,callback:function(e){t.$set(a,"netloc",e)},expression:"source.netloc"}}),e("label",{attrs:{for:s+"weight"}},[t._v(t._s(t.$t("Вес")))]),e("textbox",{staticClass:"weight",attrs:{id:s+"weight",mask:"111",placeholder:t.$t("(1-999)")},on:{blur:function(e){return t.$v.sources.$each[s].$touch()}},model:{value:a.weight,callback:function(e){t.$set(a,"weight","string"==typeof e?e.trim():e)},expression:"source.weight"}}),e("label",{attrs:{for:s+"backup"}},[t._v(t._s("Backup"))]),e("input",{directives:[{name:"model",rawName:"v-model",value:a.backup,expression:"source.backup"}],staticClass:"backup",attrs:{id:s+"backup",type:"checkbox"},domProps:{checked:Array.isArray(a.backup)?t._i(a.backup,null)>-1:a.backup},on:{change:function(e){var s=a.backup,i=e.target,r=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&t.$set(a,"backup",s.concat([null])):n>-1&&t.$set(a,"backup",s.slice(0,n).concat(s.slice(n+1)))}else t.$set(a,"backup",r)}}}),t.$v.sources.$each[s].$error?e("div",{staticClass:"has-error error-container"},[t.$v.sources.$each[s].netloc.netloc?t._e():e("span",[t._v(t._s(t.$t("Введите валидный домен")))]),t.$v.sources.$each[s].netloc.isValidDomainOrIp?t._e():e("span",[t._v(t._s(t.$t("Введите валидный IP-адрес.")))]),t.$v.sources.$each[s].netloc.required?t.$v.sources.$each[s].weight.$error?e("span",[t._v(t._s(t.$t("Вес не может принимать нулевое значение.")))]):t._e():e("span",[t._v(t._s(t.$t("Введите домен.")))])]):t._e()],1),s?t._e():e("div",{staticClass:"add",on:{click:t.addSource}},[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")])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeSource(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()]),t.isS3Domain(t.$v.sources.$each[s].netloc.$model)?e("div",{staticClass:"margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Настройте разрешение для нужного вам бакета.")))]),e("div",{staticClass:"bucket flex align-center gap-2x"},[e("textbox",{staticClass:"grow",attrs:{placeholder:t.$t("mybucket")},on:{blur:function(e){t.$v.s3Bucket.$touch(),t.addDefaultPort(s)}},model:{value:t.s3Bucket,callback:function(e){t.s3Bucket=e},expression:"s3Bucket"}}),e("Tooltip",{staticClass:"prompt"},[t._l(t.s3DomainsTexts,(function(a){return e("template",{slot:"content"},[t._v(t._s(t.$t(a))),e("br")])})),e("btn",{attrs:{type:"icon",size:"small"}},[e("QuestionIcon")],1)],2)],1),t.$v.s3Bucket.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите бакет.")))]):t._e()]):t._e()])})),0),t.$v.sources.atLeastOnePrimary?t._e():e("div",{staticClass:"has-error"},[e("span",[t._v(t._s(t.$t("Укажите Primary домен.")))])])],1
1),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.https,expression:"https"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.https)?t._i(t.https,null)>-1:t.https},on:{change:function(e){var a=t.https,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.https=a.concat([null])):r>-1&&(t.https=a.slice(0,r).concat(a.slice(r+1)))}else t.https=i}}}),e("span",[t._v(t._s(t.$t("Использовать HTTPS при запросе к источникам.")))])])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox",attrs:{disabled:!t.https}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.originSslVerify,expression:"originSslVerify"}],attrs:{type:"checkbox",disabled:!t.https},domProps:{checked:Array.isArray(t.originSslVerify)?t._i(t.originSslVerify,null)>-1:t.originSslVerify},on:{change:function(e){var a=t.originSslVerify,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.originSslVerify=a.concat([null])):r>-1&&(t.originSslVerify=a.slice(0,r).concat(a.slice(r+1)))}else t.originSslVerify=i}}}),e("span",[t._v(t._s(t.$t("Проверять сертификат источника.")))])])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.awsEnabled,expression:"awsEnabled"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.awsEnabled)?t._i(t.awsEnabled,null)>-1:t.awsEnabled},on:{change:function(e){var a=t.awsEnabled,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.awsEnabled=a.concat([null])):r>-1&&(t.awsEnabled=a.slice(0,r).concat(a.slice(r+1)))}else t.awsEnabled=i}}}),e("span",[t._v(t._s(t.$t("Использовать AWS авторизацию при запросе к источникам.")))])]),t.awsEnabled?e("div",{staticClass:"aws-params"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("access key")))]),e("textbox",{staticClass:"margin-bottom",attrs:{disabled:!t.awsEnabled},model:{value:t.accessKey,callback:function(e){t.accessKey=e},expression:"accessKey"}}),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("secret key")))]),e("textbox",{attrs:{disabled:!t.awsEnabled},model:{value:t.secretKey,callback:function(e){t.secretKey=e},expression:"secretKey"}})],1):t._e()]),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.hostnameEnabled,expression:"hostnameEnabled"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.hostnameEnabled)?t._i(t.hostnameEnabled,null)>-1:t.hostnameEnabled},on:{change:function(e){var a=t.hostnameEnabled,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.hostnameEnabled=a.concat([null])):r>-1&&(t.hostnameEnabled=a.slice(0,r).concat(a.slice(r+1)))}else t.hostnameEnabled=i}}}),e("span",[t._v(t._s(t.$t("Использовать Hostname при обращении к источнику.")))])]),e("textbox",{attrs:{name:"hostname",disabled:!t.hostnameEnabled},model:{value:t.hostname,callback:function(e){t.hostname=e},expression:"hostname"}}),t.$v.hostname.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный Hostname.")))]):t._e()],1),this.$user.isCDN1()?t._e():e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Оптимизация раздачи")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("После выбора типа контента, раздаваемого через CDN, мы сможем улучшить его раздачу.")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.tuning,expression:"tuning"}],staticClass:"select sourceType margin-bottom-2x",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.tuning=e.target.multiple?a:a[0]}}},[e("option",{staticClass:"select-placeholder",attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v(t._s(t.$t("Выберите оптимизацию...")))]),t._l(t.tuningOptions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})}))],2),t.tuning?[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(t.tuningOptions.find((e=>e.value==t.tuning)).description)))]),"large"===t.tuning?e("div",{staticClass:"slice-size"},[e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Укажите размер slice (размер части запроса) в Мб от 1 до 1024:")))]),e("textbox",{attrs:{type:"number"},model:{value:t.sliceSize,callback:function(e){t.sliceSize=t._n(e)},expression:"sliceSize"}})],1):t._e(),t.tuningOptions.find((e=>e.value==t.tuning)).warning?e("WarningText",[t._v(t._s(t.$t(t.tuningOptions.find((e=>e.value==t.tuning)).warning)))]):t._e(),t.isResourceCreationForm&&"large"===t.tuning&&t.initialSliceSize!==t.sliceSize?e("WarningText",[t._v(t._s(t.$t("После изменения размера slice рекомендуем очистить кэш ресурса")))]):t._e()]:t._e(),"large"===t.tuning?e("div",{staticClass:"slice-size-errors"},[t.$v.sliceSize.required?t._e():e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Укажите размер slice")))]),t.$v.sliceSize.minValue&&t.$v.sliceSize.maxValue&&t.$v.sliceSize.integer?t._e():e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Размер slice должен быть целым числом от 1 до 1024")))])]):t._e()],2),this.$user.isCDN1()?e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("SSL-сертификат")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо использовать SSL-сертификат.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.cdn1SslCertificate,callback:function(e){t.cdn1SslCertificate=e},expression:"cdn1SslCertificate"}}),t.cdn1SslCertificate?e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.cdn1Cert,expression:"cdn1Cert"}],staticClass:"text-extralight margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cdn1Cert=e.target.multiple?a:a[0]}}},t._l(t.cdn1CertOptions,(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(t.$t(a)))])})),0)]):t._e()],1):e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("SSL-сертификат")))]),e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("По умолчанию используется сертификат {mainCompanyName}.")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать свой SSL-сертификат.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.ownCert,callback:function(e){t.ownCert=e},expression:"ownCert"}}),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[t.ownCert?e("div",[e("div",{staticClass:"text-extralight margin-bottom"},[e("span",[t._v(t._s(t.certs.length>0?t.$t("Выберите нужный сертификат или создайте "):t.$t("Пока что у вас нет сертификатов, но вы можете создать ")))]),e("router-link",{attrs:{to:{name:"cert-new"},target:"_blank"}},[t._v(t._s(t.$t("новый.")))])],1),t.certs.length>0?e("select",{directives:[{name:"model",rawName:"v-model",value:t.cert,expression:"cert"}],staticClass:"margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cert=e.target.multiple?a:a[0]}}},t._l(t.certs,(function(a,s){return e("option",{domProps:{value:a.seq}},[t._v(t._s(`${a.comment} (${a.alt})`))])})),0):t._e()]):t._e(),t.letsencryptStatus?e("div",{staticClass:"letsencrypt margin-bottom"},[e("btn",{staticClass:"margin-bottom",attrs:{size:"normal",disabled:"no"!=t.letsencryptStatus},on:{click:t.issueCert}},[t._v(t._s(t.$t("Выпустить сертификат Let's Encrypt")))]),"no"!=t.letsencryptStatus?e("div",{staticClass:"tooltip text-extralight margin-bottom"},[t._v(t._s(t.$t(t.letsencryptStatusText[t.letsencryptStatus])))]):t._e()],1):t._e()])],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Желаемый CNAME")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("CNAME - это псевдоним, за которым будет скрываться домен CDN. Потребуется дополнительная настройка DNS. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("http-cname"),target:"_blank"}},[t._v(t._s(t.$t("тут")))]),t._v(t._s(t.$t(". Применение CNAME возможно только с Вашим сертификатом.")))]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.cnames,(function(a,s){return e("div",{key:s,staticClass:"cname margin-bottom flex align-center gap-2x"},[e("textbox",{staticClass:"grow",attrs:{placeholder:t.$t(t.$options.exampleDomain)},on:{blur:function(e){return t.$v.cnames.$each[s].$touch()}},model:{value:a.name,callback:function(e){t.$set(a,"name",e)},expression:"cname.name"}}),t.$v.cnames.$each[s].name.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный CNAME.")))]):t._e(),s?t._e():e("div",{staticClass:"add",on:{click:t.addCname}},[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")])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeCname(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)})),0)],1),e("label",{staticClass:"clickable pseudo-link margin-bottom-2x",on:{click:t.toggleOptions}},[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("div",{directives:[{name:"show",rawName:"v-show",value:t.showOptions,expression:"showOptions"}],staticClass:"margin-bottom-2x"},[e("div",{staticClass:"s520"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Следовать редиректам")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t('По умолчанию кешируются только ответы с кодами "301 Moved Permanently"/"302 Found" при их получении от вашего ориджина. Активируйте эту опцию для возможности перехода по адресам редиректа и кэширования контента.')))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.followRedirects,callback:function(e){t.followRedirects=e},expression:"followRedirects"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Использовать HTTP2")))]),e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("По умолчанию поддерживается протокол HTTP/2.0.")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Отключите эту опцию, если поддержка данного протокола не требуется.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.http2,callback:function(e){t.http2=e},expression:"http2"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Использовать только современные версии TLS")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте эту опцию, если вам требуются только современные версии TLS (v1.2, v1.3)")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.modernTlsOnly,callback:function(e){t.modernTlsOnly=e},expression:"modernTlsOnly"}})],1),t.modernTlsOnly?e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.strongSSLCiphers,expression:"strongSSLCiphers"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.strongSSLCiphers)?t._i(t.strongSSLCiphers,null)>-1:t.strongSSLCiphers},on:{change:function(e){var a=t.strongSSLCiphers,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.strongSSLCiphers=a.concat([null])):r>-1&&(t.strongSSLCiphers=a.slice(0,r).concat(a.slice(r+1)))}else t.strongSSLCiphers=i}}}),e("span",[t._v(t._s(t.$t("Использовать сильные SSL шифры")))])])]):t._e(),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Параметры HTTPS")))]),e("div",[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.http2https,expression:"http2https"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.http2https)?t._i(t.http2https,null)>-1:t.http2https},on:{change:function(e){var a=t.http2https,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.http2https=a.concat([null])):r>-1&&(t.http2https=a.slice(0,r).concat(a.slice(r+1)))}else t.http2https=i}}}),e("span",[t._v(t._s(t.$t("Автоматически перенаправлять HTTP на HTTPS.")))])])]),e("div",[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.httpsOnly,expression:"httpsOnly"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.httpsOnly)?t._i(t.httpsOnly,null)>-1:t.httpsOnly},on:{change:function(e){var a=t.httpsOnly,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.httpsOnly=a.concat([null])):r>-1&&(t.httpsOnly=a.slice(0,r).concat(a.slice(r+1)))}else t.httpsOnly=i}}}),e("span",[t._v(t._s(t.$t("Использовать только HTTPS.")))])])])]),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Поисковая индексация")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("По умолчанию мы исключаем из индексирования CDN-версию вашего сайта, чтобы не создавать дублей. Если вы опытный пользователь и можете правильно настроить файл robots.txt, то выберите нужное значение ниже.")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для проверки правильности robots.txt рекомендуем использовать "))),e("a",{attrs:{href:t.$t("https://www.websiteplanet.com/ru/webtools/robots-txt/"),target:"_blank"}},[t._v(t._s(t.$t("этот сервис")))])]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.indexing,expression:"indexing"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.indexing=e.target.multiple?a:a[0]}}},t._l(t.indexingTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("form",{directives:[{name:"show",rawName:"v-show",value:t.showRobots,expression:"showRobots"}],staticClass:"margin-top text-right"},[e("input",{attrs:{type:"file",name:"robots"}})]),t.resource&&t.showRobots?e("a",{staticClass:"text-extralight",attrs:{href:t.robotsTxt}},[t._v(t._s(t.$t("Ваш текущий файл robots.txt")))]):t._e()]),e("div",{staticClass:"margin-bottom-1x"},[e("codes",{key:"codes",ref:"codes",attrs:{onlyMainCodes:!0,data:t.forms.codes.data,queryStringCacheCheck:!0},on:{valid:t.setValidCodes}})],1)]),e("div",{staticClass:"s520i margin-bottom"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Авторизация")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать дополнительную авторизацию.")))]),e("toggle",{staticClass:"margin-bottom",attrs:{requestPaidServiceConfirmation:!0},model:{value:t.needAuthorization,callback:function(e){t.needAuthorization=e},expression:"needAuthorization"}})],1),t.needAuthorization?e("div",[e("div",{staticClass:"s520"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.authorizationType,expression:"authorizationType"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.authorizationType=e.target.multiple?a:a[0]}}},t._l(t.authorizationTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),"local"===t.authorizationType?e("div",{staticClass:"localAuthorization"},[e("div",{staticClass:"s520i margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к контенту используются специальные ссылки. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("http-local-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"100",placeholder:t.$t("Укажите секретное слово")},model:{value:t.auth.md5.secret,callback:function(e){t.$set(t.auth.md5,"secret",e)},expression:"auth.md5.secret"}})],1),e("Tooltip",{attrs:{content:t.$t(t.authHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.$v.auth.md5.secret.latinNumeric?t._e():e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]),e("div",{staticClass:"margin-bottom-2x"}),e("div",{staticClass:"s520 margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.forever,expression:"auth.md5.forever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.forever)?t._i(t.auth.md5.forever,null)>-1:t.auth.md5.forever},on:{change:function(e){var a=t.auth.md5.forever,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"forever",a.concat([null])):r>-1&&t.$set(t.auth.md5,"forever",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"forever",i)}}}),e("span",[t._v(t._s(t.$t("Не ограничивать по времени.")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.anywhere,expression:"auth.md5.anywhere"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.anywhere)?t._i(t.auth.md5.anywhere,null)>-1:t.auth.md5.anywhere},on:{change:function(e){var a=t.auth.md5.anywhere,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"anywhere",a.concat([null])):r>-1&&t.$set(t.auth.md5,"anywhere",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"anywhere",i)}}}),e("span",[t._v(t._s(t.$t("Не учитывать IP адрес.")))])])])])],1
1):t._e(),"external"===t.authorizationType?e("div",{staticClass:"externalAuthorization"},[e("div",{staticClass:"s520i margin-top margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к контенту используется внешний скрипт авторизации. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("http-external-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"200",placeholder:t.$t("Укажите ссылку на внешний скрипт")},model:{value:t.auth.url,callback:function(e){t.$set(t.auth,"url",e)},expression:"auth.url"}})],1),t.$v.auth.url.externalAuthLink?t._e():e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))])]):t._e()]):t._e(),e("Limitations",{key:"limitations",ref:"limitations",attrs:{data:t.limitationsData},on:{valid:t.setValidLimitations}}),this.$user.isCDN1()?t._e():e("others",{key:"others",ref:"others",staticClass:"margin-top",attrs:{data:t.forms.others.data,showWarnings:!1}}),this.$branding.isCurrentCompany("CDNvideo")?[this.$user.isCDN1()?e("div",{staticClass:"s520"},t._l(t.cdn1Options,(function(a){return e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t(a.name)))]),a.supLabelText?e("sup",[t._v(t._s(t.$t(a.supLabelText)))]):t._e(),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(a.description)))]),e("toggle",{staticClass:"margin-bottom",model:{value:a.cdn1Value,callback:function(e){t.$set(a,"cdn1Value",e)},expression:"option.cdn1Value"}})],1)})),0):e("div",{staticClass:"s520 margin-top"},t._l(t.cdn2Options,(function(a){return e("OptionOrderModal",{staticClass:"margin-bottom-2x",attrs:{optionName:a.name,modalName:a.modalName,optionDescription:a.description,checkboxElements:a.checkboxElements,checkboxLabel:a.checkboxLabel,orderFormName:t.formName,supLabelText:a.supLabelText}})})),1)]:t._e()],2)])],1),this.$user.isCDN1()?e("div",{staticClass:"content-block last"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.sendFormData}})],1):["true"===t.active?e("div",{staticClass:"content-block last"},[t.saving?e("div",{staticClass:"flex full-width 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.$v.$invalid||!this.validCodes||!this.validLimitations,texta:t.$t(t.buttonText)},on:{click:t.save}},[t._v(t._s(t.$t(t.buttonText)))])],1):t._e()]],2),"false"===t.active?e("div",{staticClass:"content-block last"},[t.saving?e("div",{staticClass:"flex full-width 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:"activate",attrs:{size:"big",disabled:t.$v.$invalid},on:{click:t.activate}},[t._v(t._s(t.$t(t.buttonText)))])],1):t._e()])}),[],!1,null,null,null).exports,Qt=(a(23215),a(49271)),te=a(23041),ee=a(91865),ae={name:"Cdn1CacheClearForm",components:{Btn:h.A,Modal:Tt.A,ArrayValueTextField:Qt.A,Textbox:p.A,Toggle:ct.A,Spinner:kt.A},mixins:[Y.A],modeSwitchValues:{left:ee.I.delete,right:ee.I.upload},data(){return{model:new te.A,domain:"",mode:ee.I.delete,withExtraZones:!1}},validations(){return{links:{maxLength:(0,W.Ru)(50),containsDomain:(0,W.or)(m.VP,(t=>t.every((t=>t.startsWith("/")||t.includes("://"+this.domain+"/"))))),firstSymbols:(0,W.or)(m.VP,(t=>t.every((t=>["/","http://","https://"].some((e=>t.startsWith(e)))))))},domain:{domainValidator:(0,W.or)(m.bl,m.jw)}}},computed:{links:{get(){return this.model.state.cacheLinks},set(t){this.model.state.cacheLinks=t}},buttonDisabled(){return!this.links?.length||this.model.state.isClearCacheInProgress||!this.domain||this.$v.$invalid},isUpload(){return this.mode===ee.I.upload},hintInstruction(){return this.$t("Введите ссылки для управления кэшем (по одной в строке)\n Можно использовать как полные URL (https://...), так и относительные пути (/assets/...)")},hintText(){return this.$t('- В режиме "Очистка кеша" указанные ресурсы будут удалены из кеша CDN\n- В режиме "Предзагрузка" указанные ресурсы будут заранее загружены в кеш CDN')},domainHint(){return $t("Укажите CNAME или CDN-домен")}},methods:{async cacheControlAction(){await this.model.cacheControl({domain:this.domain,accountName:this.$user.accountName,type:this.mode,with_extra_zones:this.withExtra
1Zones}),this.$v.$touch()}}},se=(0,f.A)(ae,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"cache-form"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"content flex column gap-2x"},[e("div",{staticClass:"text-sub-header-1"},[t._v(t._s(t.$t("Управление кэшем")))]),e("Toggle",{attrs:{disabled:t.model.state.isClearCacheInProgress,textLeft:t.$t("Очистка кэша"),textRight:t.$t("Предзагрузка"),values:t.$options.modeSwitchValues,equivalent:!0},model:{value:t.mode,callback:function(e){t.mode=e},expression:"mode"}}),e("div",{staticClass:"hint"},[t._v(t._s(t.hintText))]),e("div",{staticClass:"flex column gap"},[e("label",[t._v(t._s(t.$t("Домен")))]),e("div",{staticClass:"hint"},[t._v(t._s(t.domainHint))]),e("div",{staticClass:"field relative"},[e("textbox",{attrs:{name:"domain",disabled:t.model.state.isClearCacheInProgress},on:{input:function(e){return t.clearErrors(e,"domain")},blur:function(e){return t.applyValue(e,"domain")}},model:{value:t.domain,callback:function(e){t.domain=e},expression:"domain"}}),t.$v.domain.$error?e("div",{staticClass:"input-error"},[t._v(t._s(t.$t("Введите валидный домен")))]):t._e()],1)]),e("div",{staticClass:"flex column gap"},[e("label",[t._v(t._s(t.isUpload?t.$t("Файлы для предзагрузки"):t.$t("Файлы для очистки")))]),e("div",{staticClass:"hint"},[t._v(t._s(t.hintInstruction))]),e("div",{staticClass:"hint"},[t._v(t._s(t.$t("Например"))+":"),e("br"),t._m(0),t._m(1),e("span",{staticClass:"padding-left-3x"},[t._v("/folder/file3.jpg")])]),e("div",{staticClass:"field relative"},[e("ArrayValueTextField",{attrs:{name:"links",multiline:!0,disabled:!t.domain||t.$v.domain.$error||t.model.state.isClearCacheInProgress},on:{input:function(e){return t.clearErrors(e,"links")},blur:function(e){return t.applyValue(e,"links")}},model:{value:t.links,callback:function(e){t.links=e},expression:"links"}}
1),t.$v.links.$error?e("div",{staticClass:"input-error"},[t.$v.links.maxLength?t.$v.links.containsDomain?e("span",[t._v(t._s(t.$t("Введите валидное значение")))]):e("span",[t._v(t._s(t.$t("Абсолютные ссылки должны содержать домен {domain}",{domain:this.domain})))]):e("span",[t._v(t._s(t.$t("Максимальное количество ссылок - 50.")))])]):t._e()],1),e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.withExtraZones,expression:"withExtraZones"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.withExtraZones)?t._i(t.withExtraZones,null)>-1:t.withExtraZones},on:{change:function(e){var a=t.withExtraZones,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.withExtraZones=a.concat([null])):r>-1&&(t.withExtraZones=a.slice(0,r).concat(a.slice(r+1)))}else t.withExtraZones=i}}}),e("span",[t._v(t._s(t.$t("Сбросить кэш в дополнительных зонах раздачи контента")))])])]),e("btn",{attrs:{disabled:t.buttonDisabled},on:{click:t.cacheControlAction}},[t._v(t._s(t.$t("Подтвердить")))]),t.model.state.isClearCacheInProgress?e("Spinner",{staticClass:"flex justify-center align-center"}):t._e()],1)])])])}),[function(){var t=this._self._c;return t("span",{staticClass:"padding-left-3x"},[this._v("https://domain.com/file1.jpg"),t("br")])},function(){var t=this._self._c;return t("span",{staticClass:"padding-left-3x"},[this._v("/file2.jpg"),t("br")])}],!1,null,null,null).exports,ie={name:"ResourceDeactivate",components:{Modal:Tt.A,Btn:h.A,Spinner:kt.A},props:{resource:Object,saving:{type:Boolean,default:!1},type:String},data(){return{modalName:"deactivateResource",isLoading:!1}},created(){let t={accountName:this.$user.accountName,id:this.resource.id};"http"===this.type&&this.$api.getCncConfiguration(t).then((t=>{200===t.data.code?t.data.data.is_changes_apply||(this.isLoading=!0):this.error=!0}))},methods:{deactivate(){let t={};["RTMP-publish","SRT-publish"].includes(this.type)?(Object.keys(this.resource.streams).forEach((t=>{this.resource.streams[t].transcode?delete this.resource.streams[t]:delete this.resource.streams[t].stream_name})),t={type:this.resource.type,name:this.resource.name,streams:this.resource.streams}):"HLS-cache"===this.type?t={name:this.resource.name,type:this.resource.type,streams:this.resource.streams,certificate:this.resource.certificate,http2https:this.resource.http2https,https_only:this.resource.https_only,names:this.resource.names,origin:this.resource.origin}:"restream"===this.type?(t=this.resource.data,s.default.delete(t,"creation_ts"),s.default.delete(t,"modification_ts"),s.default.delete(t,"resource_id")):t=this.resource,t.active=!1,this.$emit("save",this.type,t,"Ресурс деактивирован.")},showModal(){this.$modal.show(this.modalName)},closeModal(){this.$modal.hide()}}},re=(0,f.A)(ie,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"deactivate resource-edit-deactivate"},[e("div",{class:{"enable-overlay overlay":t.isLoading,"disable-overlay overlay":!t.isLoading}}),e("div",{class:{"blur-5px":t.isLoading}},[e("div",{staticClass:"text-extralight margin-bottom-3x"},["HLS-cache"===t.type?e("div",[t._v(t._s(t.$t("При деактивации ресурса публикация потока прекратится.")))]):"restream"===t.type?e("div",[t._v(t._s(t.$t("При деактивации ресурса рестриминг потоков прекратится.")))]):e("div",[t._v(t._s(t.$t("При деактивации ресурса узлы сети CDN перестанут отдавать контент.")))]),"http"===t.type?e("div",[t._v(t._s(t.$t("Прежде чем деактивировать ресурс, убедитесь, что на сайте не осталось CDN-ссылок.")))]):t._e()]),t.saving?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",[e("btn",{attrs:{size:"big"},on:{click:t.showModal}},[t._v(t._s(t.$t("Деактивировать")))]),e("modal",{attrs:{name:t.modalName},on:{close:t.closeModal}},[e("template",{slot:"header"},[t._v(t._s(t.$t("Вы уверены?")))]),e("template",{slot:"content"},["http"===t.type?e("div",{staticClass:"text-regular"},[t._v(t._s(t.$t("Вы собираетесь деактивировать свой ресурс и связанные с ним правила."))+" "+t._s(t.$t("Перед деактивацией убедитесь, что на сайте не осталось CDN-ссылок.")))]):e("div",{staticClass:"text-regular"},[t._v(t._s(t.$t("Вы собираетесь деактивировать CDN ресурс.")))]),e("div",{staticClass:"text-regular"},[t._v(t._s(t.$t("При необходимости вы сможете активировать его снова.")))])]),e("template",{slot:"footer"},[e("btn",{on:{click:t.deactivate}},[t._v(t._s(t.$t("Деактивировать")))]),e("btn",{attrs:{type:"secondary"},on:{click:t.closeModal}}
1,[t._v(t._s(t.$t("Отмена")))])],1)],2)],1)])])}),[],!1,null,"037eaf72",null).exports,ne={name:"ResourceConfigHttp",components:{Textbox:p.A},props:{id:{type:String},domain:{type:String},source:{type:String},cname:{type:String},cnameDomain:{type:String},shortDomain:String,isPackagingEnabled:{type:Boolean,default:!1}},data(){return{}},computed:{from(){return`<img src="${this.source}/path-to-image/image.jpg" />`},to(){return`<img src="${this.domain}/path-to-image/image.jpg" />`},cnameConfig(){return`${this.cname}. IN CNAME ${this.shortDomain}.`},cnameTo(){return`<img src="${this.cnameDomain}/path-to-image/image.jpg" />`},mp4FilePath(){return`${this.domain}/path-to-video/test-video.mp4`},mp4FilePathAsHls(){return`${this.mp4FilePath}/playlist.m3u8`},mp4FilePathAsMpegDash(){return`${this.mp4FilePath}/manifest.mpd`}}},oe=(0,f.A)(ne,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"config-http"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom",attrs:{for:"domain"}},[t._v(t._s(t.$t("Ваш CDN-домен")))]),e("textbox",{attrs:{id:"name",value:t.domain,readonly:""}})],1),t.cname?e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom",attrs:{for:"cname"}},[t._v(t._s(t.$t("Настройка CNAME")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Перед внесением изменений на ресурсе, нужно применить изменения на Вашем DNS-сервере. Добавьте следующую запись:")))]),e("textbox",{attrs:{id:"cname",value:t.cnameConfig,readonly:""}})],1):t._e(),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Замена ссылок")))]),e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Чтобы контент начал отдаваться с узлов CDN-сети, нужно заменить в пути до статических объектов Ваш оригинальный домен на созданный на сети {mainCompanyName}."))+" "+t._s(t.$t("Обратите внимание, что если Вы используете CNAME, то в первую очередь нужно произвести изменения на стороне DNS-сервера, в противном случае контент будет недоступен.")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"path-label margin-bottom",attrs:{for:"from"}},[t._v(t._s(t.$t("Пример пути до файла с Вашего ресурса")))]),e("textbox",{attrs:{id:"from",value:t.from,readonly:""}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"path-label margin-bottom",attrs:{for:"to"}},[t._v(t._s(t.$t("Нужно заменить на")))]),e("textbox",{attrs:{id:"to",value:t.to,readonly:""}})],1),t.cname?e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom",attrs:{for:"dns"}},[t._v(t._s(t.$t("Если внесены изменения на DNS-сервере:")))]),e("textbox",{attrs:{id:"dns",value:t.cnameTo,readonly:""}})],1):t._e(),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Если Вы используете CMS")))]),e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Существует множество плагинов для популярных CMS-систем. Некоторые мы разработали сами."))+" "+t._s(t.$t("Пожалуйста, ознакомьтесь с ними в разделе "))),e("a",{attrs:{href:this.formDocumentationUrl("cms"),target:"_blank"}},[t._v(t._s(t.$t("«Интеграция с CMS»")))])])]),t.isPackagingEnabled?e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Конвертация MP4-файлов в стриминговые протоколы")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t('После включения опции "Конвертация видео" вы можете конвертировать MP4-файлы в HLS или MPEG-DASH.'))+" "+t._s(t.$t('Для этого необходимо добавить в конец пути файла "/playlist.m3u8" или "/manifest.mpd".')))]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"path-label margin-bottom",attrs:{for:"mp4FilePath"}},[t._v(t._s(t.$t("Пример пути до MP4-файла")))]),e("textbox",{attrs:{id:"mp4FilePath",value:t.mp4FilePath,readonly:""}})],1),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"path-label margin-bottom",attrs:{for:"mp4FilePathAsHls"}},[t._v(t._s(t.$t("Просмотр MP4-файла как HLS")))]),e("textbox",{attrs:{id:"mp4FilePathAsHls",value:t.mp4FilePathAsHls,readonly:""}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"path-label margin-bottom",attrs:{for:"mp4FilePathAsMpegDash"}},[t._v(t._s(t.$t("Просмотр MP4-файла как MPEG-DASH")))]),e("textbox",{attrs:{id:"mp4FilePathAsMpegDash",value:t.mp4FilePathAsMpegDash,readonly:""}})],1)]):t._e()])}),[],!1,null,null,null).exports,ce=a(99281),le=a(19196),de=a(33317);function ue(t){if(new RegExp(t.replace(".","\\.").replace("*",".*")).test(this.hostname))return!0}var me={name:"CncResourceEdit",components:{Btn:h.A,Toggle:ct.A,Modal:Tt.A},props:{id:{type:String},processing:{type:Boolean},hostnames:{type:Array}},data(){return{buttonsDisabled:!1,cncEnabled:!1,cert:void 0,error:!1,certs:[],isLoading:!1,httpsSupport:!1,cncAreas:[{value:"emea",text:"EMEA",description:" ",comment:"Европа, Средний Восток и Африка"},{value:"apac",text:"APAC",description:" ",comment:"Азиатско-Тихоокеанский регион и Япония"},{value:"am",text:"AM",description:" ",comment:"Америка"}],cncAreasOptions:[],selectedAreas:[],timer:""}},created(){this.processing&&this.$toast.show({text:"Мы применяем настройки Вашего ресурса. Подождите чуть-чуть."});let t={accountName:this.$user.accountName,id:this.id};this.$api.getCncConfiguration(t).then((t=>{200===t.data.code?(t.data.data.is_changes_apply||this.showLoadingPushMessage("Подключение дополнительных зон раздачи."),this.buttonsDisabled=!(t.data.data.cnc_configured&&t.data.data.areas.length>0),t.data.data.cnc_configured&&t.data.data.areas.length>0?this.cncEnabled=!0:this.cncEnabled=!1,this.setCerts(t.data.data.certificate),t.data.data.certificate&&(this.httpsSupport=!0),this.setCncAreas(t.data.data.areas)):(this.setCncAreas([]),this.error=!0)})),this.cncAreasOptions.push(this.cncAreas.slice()),this.startTimer()},computed:{getDomains(){let t=[],e=[];
1if(this.cert&&this.certs){let a=[];this.certs.forEach((s=>{s.seq===this.cert&&(a=s.alt.split(", "),this.hostnames.forEach((s=>{a.some(ue,{hostname:s})?t.push(s):e.push(s)})))}))}return{certificated:t.join(", "),uncertificated:e.join(", ")}},buttonDisabled(){return this.selectedAreas.some((t=>""===t.data))||!this.cncEnabled}},beforeDestroy(){this.stopTimer()},methods:{startTimer(){this.timer=setInterval((()=>{let t={accountName:this.$user.accountName,id:this.id};this.$api.getCncConfiguration(t).then((t=>{200===t.data.code&&(this.isLoading=!t.data.data.is_changes_apply,this.buttonsDisabled=!(t.data.data.cnc_configured&&t.data.data.areas.length>0))}))}),6e4)},stopTimer(){clearInterval(this.timer)},createAreaSelector(){let t=this.getAreasData(this.selectedAreas),e=de._.difference(this.cncAreas,t);this.cncAreasOptions.push(e.slice())},setCerts(t){let e={accountName:this.$user.accountName};this.$api.getCerts(e).then((e=>{let a=e.data.data;this.certs=this.certs.concat(a),!this.resource&&this.certs.length&&t&&this.certs.forEach((e=>{e.seq===t&&(this.cert=t)}))}))},setCncAreas(t){0!==t.length?t.forEach(((t,e,a)=>{this.cncAreas.forEach((s=>{if(s.value===t){let t={data:""};t.data=s,this.selectedAreas.push(t),e!==a.length-1&&this.createAreaSelector()}}))})):this.selectedAreas.push({data:""})},getAreasData(t){var e=[];return t.forEach((function(t){e.push(t.data)})),e},addAreaSelector(){this.cncAreas.length>this.selectedAreas.length&&(this.selectedAreas.push({data:""}),this.createAreaSelector())},removeAllFollowing(t){this.selectedAreas.splice(t+1),this.cncAreasOptions.splice(t+1)},removeAreaSelector(t){this.selectedAreas.splice(t,1),this.cncAreasOptions.splice(-1,1)},showLoadingPushMessage(t){this.$toast.show({text:t}),this.isLoading=!0},save(t){let e;t?e={areas:[],certificate:null}:(e={areas:[],certificate:this.httpsSupport&&this.cert||null},this.selectedAreas.forEach((function(t){e.areas.push(t.data.value)})));let a={name:this.$user.accountName,id:this.id};this.$api.setCncConfiguration(a,e).then((e=>{t?this.showLoadingPushMessage("Отключение дополнительных зон раздачи."):this.showLoadingPushMessage("Подключение дополнительных зон раздачи. Это может занять несколько часов. Ждать применения настроек необязательно.")})).catch((()=>{this.$toast.show({text:"Неправильный формат входных данных"})})),this.closeModal()},showModal(t){this.$modal.show(t)},closeModal(){this.$modal.hide()}}},pe=me,he=(0,f.A)(pe,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"cnc-edit"},[e("div",{class:{"enable-overlay overlay":t.isLoading||t.processing,"disable-overlay overlay":!t.isLoading&&!t.processing}}),e("div",{class:{"blur-5px":t.isLoading||t.processing}},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Управление зонами раздачи")))]),e("div",{staticClass:"text-extralight"},[e("span",[t._v(t._s(t.$t("Дополнительные зоны раздачи трафика администрируются в зарубежном сегменте сети {mainCompanyName}. По умолчанию ваш трафик раздается преимущественно в РФ и СНГ по стандартным тарифам.")))])]),this.$branding.isCurrentCompany("CDNvideo")?e("div",{staticClass:"text-extralight margin-bottom"},[e("span",[t._v(t._s(t.$t("С географией покрытия сети Вы можете ознакомиться на ")))]),e("a",{attrs:{href:t.$t("https://www.cdnvideo.ru/#map"),target:"_blank"}},[t._v(t._s(t.$t("нашем сайте.")))])]):t._e(),e("toggle",{staticClass:"margin-bottom",attrs:{requestPaidServiceConfirmation:!0},model:{value:t.cncEnabled,callback:function(e){t.cncEnabled=e},expression:"cncEnabled"}}),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[t.cncEnabled?e("div",[e("div",{staticClass:"text-extralight"},["ru_RU"===this.$i18n.locale?e("div",{staticClass:"margin-bottom"},[e("span",[t._v(t._s(t.$t("Вы можете подключить дополнительные зоны раздачи: EMEA (Европа, Ближний Восток и Африка), APAC (Азиатско-Тихоокеанский регион и Япония), AM (Америка).")))])]):t._e(),e("div",{staticClass:"margin-bottom"},[e("span",[t._v(t._s(t.$t("Обратите внимание, что дополнительные зоны раздачи тарифицируются отдельно.")))])])]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.selectedAreas,(function(a,s){return e("div",{key:s,staticClass:"area margin-bottom"},[e("div",{staticClass:"flex align-center gap-2x"},[e("div",{staticClass:"type grow"},[e("select",{directives:[{name:"model",rawName:"v-model",value:a.data,expression:"area.data"}],on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"data",e.target.multiple?s:s[0])},function(e){return t.removeAllFollowing(s)}]}},t._l(t.cncAreasOptions[s],(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(`${t.$t(a.text)} (${t.$t(a.comment)})`))])})),0),a.data.description?e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t(a.data.description)))]):t._e()]),s||""===a.data||s!==t.selectedAreas.length-1?t._e():e("div",{staticClass:"add add-first",on:{click:t.addAreaSelector}},[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")])]),s&&s<t.cncAreas.length-1&&""!==a.data&&s===t.selectedAreas.length-1?e("div",{staticClass:"add",on:{click:t.addAreaSelector}},[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(),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeAreaSelector(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()])])})),0),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Поддержка HTTPS")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать протокол HTTPS")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.httpsSupport,callback:function(e){t.httpsSupport=e},expression:"httpsSupport"}}),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[t.httpsSupport?e("div",[e("div",{staticClass:"text-extralight margin-bottom"},[e("span",[t._v(t._s(t.$t("Выберите нужный сертификат или создайте ")))]),e("router-link",{attrs:{to:{name:"cert-new"}}}
1,[t._v(t._s(t.$t("новый.")))])],1),e("select",{directives:[{name:"model",rawName:"v-model",value:t.cert,expression:"cert"}],staticClass:"margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cert=e.target.multiple?a:a[0]}}},t._l(t.certs,(function(a,s){return e("option",{domProps:{value:a.seq}},[t._v(t._s(`${a.comment} (${a.alt})`))])})),0),e("div",{staticClass:"div",class:{"enable-overlay":t.getDomains.certificated.length>0,"disable-overlay":0===t.getDomains.certificated.length}},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("сертификат распространяется на:"))+" "+t._s(`${t.getDomains.certificated}`))])]),e("div",{staticClass:"div",class:{"enable-overlay":t.getDomains.uncertificated.length>0,"disable-overlay":0===t.getDomains.uncertificated.length}},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("сертификат не распространяется на:"))+" "+t._s(`${t.getDomains.uncertificated}`))])])]):t._e()])],1),e("div",{staticClass:"flex align-center gap-2x"},[e("btn",{attrs:{size:"big",disabled:t.buttonDisabled},on:{click:function(e){return t.showModal("saveCncConfiguration")}}},[t._v(t._s(t.$t("Сохранить")))]),e("btn",{attrs:{type:"secondary",size:"big",disabled:t.buttonsDisabled},on:{click:function(e){return t.showModal("disableCncConfiguration")}}},[t._v(t._s(t.$t("Отключить")))])],1)],1):t._e()]),e("modal",{attrs:{name:"disableCncConfiguration"},on:{close:t.closeModal}},[e("template",{slot:"header"},[t._v(t._s(t.$t("Уверены?")))]),e("template",{slot:"content"},[e("div",{staticClass:"text-regular"},[t._v(t._s(t.$t("Вы собираетесь отключить дополнительные зоны раздачи трафика. Ваш контент будет раздаваться только с узлов сети {mainCompanyName}.")))])]),e("template",{slot:"footer"},[e("btn",{on:{click:function(e){return t.save(!0)}}},[t._v(t._s(t.$t("Отключить")))]),e("btn",{attrs:{type:"secondary"},on:{click:t.closeModal}},[t._v(t._s(t.$t("Отмена")))])],1)],2),e("modal",{attrs:{name:"saveCncConfiguration"},on:{close:t.closeModal}},[e("template",{slot:"header"},[t._v(t._s(t.$t("Уверены?")))]),e("template",{slot:"content"},[e("div",{staticClass:"text-regular"},[t._v(t._s(t.$t("Вы собираетесь сохранить настройки дополнительных зон раздачи. Ваш контент будет раздаваться через CNC.")))]),e("div",{staticClass:"margin-top text-regular"},[t._v(t._s(t.$t("Подключение дополнительных зон раздачи - довольно продолжительный процесс. Вам не обязательно ждать, пока настройки применятся. Всё произойдёт автоматически.")))])]),e("template",{slot:"footer"},[e("btn",{on:{click:function(e){return t.save(!1)}}},[t._v(t._s(t.$t("Сохранить")))]),e("btn",{attrs:{type:"secondary"},on:{click:t.closeModal}},[t._v(t._s(t.$t("Отмена")))])],1)],2)],1)])}),[],!1,null,"4c154c47",null).exports,ge={name:"Rules",components:{Btn:h.A},props:["resource","type"],data(){return{baseRules:[],individualRules:[],isLoading:!1}},beforeDestroy(){clearInterval(this.cncConfigurationTimer)},created(){let t={accountName:this.$user.accountName,id:this.resource.id};this.$api.getCncConfiguration(t).then((t=>{200===t.data.code?t.data.data.is_changes_apply||(this.isLoading=!0,this.$toast.show({text:"Мы конфигурируем Ваш ресурс. Подождите чуть-чуть."})):this.error=!0})),this.cncConfigurationTimer=setInterval(this.updateCncConfigurationStatus,6e4),this.formRules(this.resource,this.type)},methods:{newRule(){this.$router.push({name:"rule-new",params:{id:this.resource.id,type:this.t
1ype}})},formRules(t,e){this.baseRules.push({id:t.id,type:e}),t.locations&&Object.keys(t.locations).forEach((a=>{this.individualRules.push({path:a,id:t.id,type:e})}))},updateCncConfigurationStatus(){let t={accountName:this.$user.accountName,id:this.resource.id};this.$api.getCncConfiguration(t).then((t=>{200===t.data.code&&(this.isLoading=!t.data.data.is_changes_apply)}))}}},ve=(0,f.A)(ge,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"rules"},[e("div",{staticClass:"blur",class:{"blur-5px":t.isLoading}},[e("div",{class:{"enable-overlay overlay":t.isLoading,"disable-overlay overlay":!t.isLoading}}),e("div",{staticClass:"margin-bottom-2x"},[e("btn",{attrs:{size:"normal"},on:{click:t.newRule}},[t._v(t._s(t.$t("Создать новое правило")))])],1),e("div",{staticClass:"table"},[t.individualRules.length||t.baseRules.length?e("table",[e("thead",{staticClass:"text-regular"},[e("tr",[e("th",[t._v("№")]),e("th",[t._v(t._s(t.$t("Тип")))]),e("th",[t._v(t._s(t.$t("Путь")))])])]),e("tbody",{staticClass:"text-extralight"},[t._l(t.baseRules,(function(a,s){return t.baseRules.length?e("tr",{key:s},[e("td",[e("router-link",{attrs:{to:{name:"base-rule",params:{id:a.id,type:a.type}}},domProps:{textContent:t._s(s+1)}})],1),e("td",[t._v(t._s(t.$t("Базовое для ресурса")))]),e("td",[t._v("-")])]):t._e()})),t._l(t.individualRules,(function(a,s){return t.individualRules.length?e("tr",{key:t.baseRules.length+s},[e("td",[e("router-link",{attrs:{to:{name:"individual-rule",params:{path:a.path,id:a.id,type:a.type}}},domProps:{textContent:t._s(t.baseRules.length+s+1)}})],1),e("td",[t._v(t._s(t.$t("Индивидуальное")))]),e("td",[t._v(t._s(a.path))])]):t._e()}))],2)]):t._e()])])])}),[],!1,null,"f4d40c14",null).exports,fe=a(98250),xe={name:"ResourceEditHttp",components:{Tabs:le.A,ResourceForm:Xt,Cache:se,Btn:h.A,ArrowCircleIcon:ce.A,Deactivate:re,Config:oe,CncEdit:he,Rules:ve,Scrolled:fe.A},props:{id:{required:!0},active:{type:String,default:"true"},target:{type:String}},data(){return{type:"http",tab:this.target||"edit",resource:void 0,processing:!1,error:!1,timeout:void 0,saving:!1}},computed:{source(){if(!this.resource)return;let t=Object.keys(this.resource.origin.servers)[0];return`${this.protocol}://${t}`},protocol(){return this.resource&&"https"},domain(){if(!this.resource)return;let t=this.resource.cdn_domain;return`${this.protocol}://${t}`},cname(){if(this.resource&&this.resource.names)return this.resource.names[0]},cnameDomain(){if(this.resource)return`${this.protocol}://${this.cname}`},resourceHostnames(){if(!this.resource)return;let t=[];return this.resource.names&&(t=this.resource.names.slice()),t.push(this.resource.cdn_domain),t},isPackagingEnabled(){if(!this.resource)return!1;let t=!!(this.resource.packaging&&this.resource.packaging.mp4&&this.resource.packaging.mp4.output_protocols&&this.resource.packaging.mp4.output_protocols.length),e=!1;return this.resource.locations&&(e=Object.values(this.resource.locations).some((t=>!!(t.packaging&&t.packaging.mp4&&t.packaging.mp4.output_protocols&&t.packaging.mp4.output_protocols.length)))),t||e},tabs(){let t=[{name:"edit",text:"Настройки ресурса"},{name:"cache",text:"Очистка кэша"},{name:"config",text:"Инструкция по настройке"},{name:"rules",text:"Правила"},{name:"deactivate",text:"Деактивация"}];return this.$branding.cncEnabled&&t.splice(3,0,{name:"cncedit",text:"Расширение зон раздачи"}),t}},created(){this.getResource()},destroyed(){clearTimeout(this.timeout)},methods:{getResource(){let t={accountName:this.$user.accountName,id:this.id,active:this.active,type:this.type};this.$api.getResourceStatus(t).then((e=>{let a=e.data.status;return"Processing"===a?(this.processing=!0,this.timeout=setTimeout((()=>{this.getResource()}),5e3)):"Error"===a?this.error=!0:this.processing=!1,this.$api.getResource(t)})).then((t=>{t&&(this.resource=t.data)}))},switchTab(t){this.tab=t,this.$router.push({params:{target:t}})},save(t,e,a){this.saving=!0,e.id=this.id;let s=a||"Ресурс сохранён",i=t.startsWith("live-")?"live":"http",r={accountName:this.$user.accountName,id:this.id,type:i},n=e;this.$api.updateResource(r,n).then((t=>{this.$toast.show({text:s}),this.$router.push({name:"http-resources"})})).finally((()=>{this.saving=!1}))},goBack(){this.$router.push({name:"http-resources"})}}},be=xe,_e=(0,f.A)(be,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex column full-height"},[e("Scrolled",[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goBack}
1},[e("ArrowCircleIcon")],1),"true"===t.active?e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Редактирование HTTP ресурса")))]):e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Активация HTTP ресурса")))])],1),t.error?e("div",{staticClass:"content"},[e("p",{staticClass:"text-regular"},[t._v(t._s(t.$t("При создании ресурса произошла ошибка Попробуйте ещё раз.")))])]):t.resource&&"true"===t.active?[e("div",{staticClass:"first content-block"},[e("tabs",{attrs:{tab:t.tab,tabs:t.tabs},on:{switchTab:t.switchTab}})],1),e("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",mode:"out-in"}},["edit"===t.tab?e("resource-form",{key:"edit",attrs:{saving:t.saving,processing:t.processing,buttonText:"Сохранить",resource:t.resource,edit:!0},on:{save:t.save}}):t._e(),"cache"===t.tab?e("cache",{key:"cache",staticClass:"content-block last",attrs:{domain:t.domain}}):t._e(),"config"===t.tab?e("config",{key:"config",staticClass:"content-block last",attrs:{id:t.resource.id,domain:t.domain,source:t.source,cname:t.cname,cnameDomain:t.cnameDomain,shortDomain:t.resource.cdn_domain,isPackagingEnabled:t.isPackagingEnabled}}):t._e(),"deactivate"===t.tab?e("deactivate",{key:"deactivate",staticClass:"content-block last",attrs:{saving:t.saving,resource:t.resource,type:this.type},on:{save:t.save}}):t._e(),"cncedit"===t.tab?e("cncEdit",{key:"cncedit",staticClass:"content-block last",attrs:{id:t.resource.id,hostnames:t.resourceHostnames,processing:t.processing}}):t._e(),"rules"===t.tab?e("rules",{staticClass:"content-block last",attrs:{resource:t.resource,type:t.type}}):t._e()],1)]:t.resource?[e("div",{staticClass:"content"},["edit"===t.tab?e("resource-form",{key:"edit",attrs:{saving:t.saving,processing:t.processing,buttonText:"Активировать",resource:t.resource,active:"false"},on:{save:t.save}}):t._e()],1)]:t._e()],2)],1)}),[],!1,null,null,null).exports;function Ce(t){return/^[\w\d\-._]*$/i.test(t)}function we(t){return!t||/^((?!.*\.smil)(rtmp|rtmps|http|https):\/\/.{1,}\/.{1,}\/.{1,}(\/.{1,})?)$/i.test(t)}function ye(t){return!t||/^((rtmp|rtmps):\/\/[^/]{1,}\/[^/]{1,}[/]?)|(srt:\/\/[^/:]{1,}:[0-9]{1,5}[/]?)$/i.test(t)}function $e(t){return!t||/^([-a-zA-Z0-9@:%_+.~#?&=]*)$/i.test(t)}var Se={name:"FormRestreamMixin",props:{buttonText:{type:String},saving:{type:Boolean,default:!1},resource:{type:Object}},data(){return{name:"restream-"+Math.random().toString(36).substring(2,15),active:!0,inputHint:"Используйте комбинацию из букв латинского алфавита (a-z/A-Z), цифр (0-9), символов подчеркивания (_), точки (.) и дефисов (-). Максимальное количество символов - 40, минимальное - 5.",backupHint:"Указать резервный URL для данной точки рестриминга",settingsHint:"Указать дополнительные настройки для точки рестриминга",targetTypes:[{text:"YouTube",value:"youtube"},{text:"ВКонтакте",value:"vk"},{text:"Одноклассники",value:"ok"},{text:"Rutube",value:"rutube"},{text:"Telegram",value:"telegram"},{text:"Foreign Socials",value:"facebook"},{text:"Custom RTMP",value:"customRTMP"},{text:"SRT",value:"SRT"}],targetTemplateURL:{youtube:[/^rtmp:\/\/a.rtmp.youtube.com\/live2[/]?$/i,/^rtmp:\/\/b.rtmp.youtube.com\/live2\?backup=[\d]*[/]?$/i],vk:[/^rtmp:\/\/stream[\d]+.vkuserlive.com:443\/vlive/i,/^rtmp:\/\/ovsu.mycdn.me\/input[/]?$/i],ok:[/^rtmp:\/\/vsu.mycdn.me\/input[/]?$/i],facebook:[/^rtmps:\/\/live-api-s.facebook.com:443\/rtmp[/]?$/i]},dateTimePickerFormat:"YYYY-MM-DD HH:mm",dateTimeApiFormat:"YYYY-MM-DDTHH:mm:ssZ",isLoading:!1,restreamTypes:[{text:"Разовый рестриминг",value:"short"},{text:"Постоянный рестриминг 24/7",value:"long"}],restreamType:"long",restreamTypeDisabled:!1,restreamTypeInfo:{short:{description:"Данный тип рестриминга подходит для трансляций спортивных мероприятий, вебинаров.",tariffDescription:"Оплачивается каждый факт рестриминга сета (непрерывный рестриминг от 30 мин. до 10 часов). Рестриминг с перерывом более 30 минут учитывается как несколько фактов рестриминга."},long:{description:"Данный тип рестриминга подходит для длительных трансляций телеканалов.",tariffDescription:"Выставляется ежемесячная абонентская плата за каждый заведенный сет рестриминга."}}}},computed:{tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}},tipObjectRight(){return{"simptip-position-right":!0,"simptip-fade":!0,"simptip-smooth":!0}}},methods:{formTargetFromRestream(t){let e={url:"",login:"",password:""};t.backup&&0!==Object.keys(t.backup).length&&(e={url:t.backup.target_url,login:t.backup.login,password:t.backup.password});let a=[];t.schedule.forEach((t=>{t.start&&t.stop&&a.push({start:vt().tz(t.start,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone).format(this.dateTimePickerFormat),stop:vt().tz(t.stop,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone).format(this.dateTimePickerFormat)})})),0===t.schedule.length&&(a=[{start:null,stop:null}]);let s={type:t.target_type,url:t.target_url,showOptions:!1,showBackup:!1,schedule:a,comment:t.target_comment};return this.isSrtTargetType(s)?t.target_passphrase&&(s.passphrase=t.target_passphrase):s={...s,key:t.target_key,login:t.login,password:t.password,backup:e},s},formRestream(t,e,a){let s=[];a.schedule.forEach((t=>{null!==t.start&&null!==t.end&&null!==t.stop&&s.push({start:vt().tz(t.start,this.dateTimePickerFormat,this.$user.personTimezone).utc().format(),stop:vt().tz(t.end||t.stop,this.dateTimePickerFormat,this.$user.personTimezone).utc().format()})}));let i={schedule:s,source:t,transcoded:Boolean(e),transcode_quality:e,target_type:a.type,target_url:a.url,target_comment:a.comment};return this.isSrtTargetType(a)?a.passphrase&&(i.target_passphrase=a.passphrase):(i={...i,target_key:a.key,login:a.login,password:a.password,backup:{}},a.backup.url&&(i.backup={target_url:a.backup.url,login:a.backup.login,password:a.backup.password})),i},activate(){let t=this.resource.data;delete t.creation_ts,delete t.modification_ts,delete t.resource_id,t.active=!0,this.$emit("save",t,"Ресурс активирован.")},checkTemplateTargetUrl(t,e){return""===t||!(e in this.targetTemplateURL)||this.targetTemplateURL[e].some((e=>e.test(t)))},isSrtTargetType(t){return"SRT"===t.type}}},ke=(0,f.A)(Se,void 0,void 0,!1,null,null,null).exports,Te={name:"CallbackOrderModal",components:{Textbox:p.A,Btn:h.A,Modal:Tt.A},mixins:[Z.A],props:{modalButtonSendText:{type:String,default:"Отправить заявку"},modalButtonCancelText:{type:String,default:"Отмена"},problemType:{type:String,default:""},modalName:{type:String,default:"callback-order"}},data(){return{formName:"Обратная связь",feedbackPhone:"",feedbackEmail:"",contactType:"phone",contactPossibleValues:[{name:"По телефону",value:"phone"},{name:"По email",value:"email"}]}},created(){this.feedbackPhone=this.$user.accountPhone,this.feedbackEmail=this.$user.personEmail},validations:{feedbackPhone:{required:(0,W.F5)((function(){return"phone"===this.contactType})),phone(t){return/^\+?[\d\-\s()]{9,}$/.test(t)}},feedbackEmail:{required:(0,W.F5)((function(){return"email"===this.contactType})),email:W.Rp,isASCII:m.kj}},methods:{closeModal(){this.$modal.hide()},cancel(){this.closeModal()},send(){let t=`<h2>Заказ обратной связи</h2>\n      <h3>Причина</h3>\n      <p>Тип проблемы: ${this.problemType}</p>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Предпочтительный способ связи: ${this.findElemFromArrayOfObject(this.contactPossibleValues,this.contactType).name}</p>\n      <p>Телефон: ${this.feedbackPhone}</p>\n      <p>Email: ${this.feedbackEmail}</p>`,e={client_mail_custom:this.feedbackEmail,client_tel_custom:this.feedbackPhone||"-",other:t.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(e,t),this.closeModal()}},computed:{isButtonDisabled(){return"phone"===this.contactType?this.$v.feedbackPhone.$invali
1d:"email"===this.contactType?this.$v.feedbackEmail.$invalid:void 0}}},Ae=(0,f.A)(Te,(function(){var t=this,e=t._self._c;return e("modal",{staticClass:"modal-order",attrs:{name:t.modalName},on:{close:t.cancel}},[e("template",{slot:"header"},[t._v(t._s(t.$t("Заказ обратной связи")))]),e("template",{slot:"content"},[e("div",{staticClass:"margin-bottom-3x"},[e("div",{staticClass:"text-extralight margin-bottom-2x margin-top"},[t._v(t._s(t.$t('Выберите предпочтительный способ связи и нажмите кнопку "Отправить заявку".'))+" "+t._s(t.$t("Менеджер свяжется с Вами для уточнения деталей.")))]),t._l(t.contactPossibleValues,(function(a){return e("div",{staticClass:"radio margin-bottom-2x flex align-center"},[e("div",{staticClass:"select flex align-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.contactType,expression:"contactType"}],attrs:{type:"radio",id:a.value},domProps:{value:a.value,checked:t._q(t.contactType,a.value)},on:{change:function(e){t.contactType=a.value}}}),e("label",{attrs:{for:a.value}},[t._v(t._s(t.$t(a.name)))])]),t.contactType===a.value?["phone"===a.value?e("div",{staticClass:"select-textbox"},[e("textbox",{attrs:{maxlength:"20",placeholder:t.$t("Укажите номер телефона")},model:{value:t.feedbackPhone,callback:function(e){t.feedbackPhone=e},expression:"feedbackPhone"}}),t.$v.feedbackPhone.$invalid?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Неправильный формат телефона")))]):t._e()],1):t._e(),"email"===a.value?e("div",{staticClass:"select-textbox"},[e("textbox",{attrs:{maxlength:"100",placeholder:t.$t("Укажите адрес электронной почты")},model:{value:t.feedbackEmail,callback:function(e){t.feedbackEmail=e},expression:"feedbackEmail"}}),t.$v.feedbackEmail.$invalid?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Неправильный формат email")))]):t._e()],1):t._e()]:t._e()],2)}))],2)]),e("template",{slot:"footer"},[e("btn",{attrs:{disabled:t.isButtonDisabled},on:{click:t.send}},[t._v(t._s(t.$t(t.modalButtonSendText)))]),e("btn",{attrs:{type:"secondary",color:"black"},on:{click:t.cancel}},[t._v(t._s(t.$t(t.modalButtonCancelText)))])],1)],2)}),[],!1,null,"3a8201f0",null).exports,Re={name:"ResourceFormRestreamCdn1",components:{Btn:h.A,Textbox:p.A,Modal:Tt.A,DateTimePicker:ht.A,Spinner:kt.A,CallbackOrderModal:Ae},mixins:[ke],data(){return{restreams:[{source:"",targets:[{type:"youtube",url:"",key:"",passphrase:"",showOptions:!1,showBackup:!1,schedule:[{start:null,stop:null}],login:"",password:"",comment:"",backup:{url:"",login:"",password:""}}]}],fnlGroup:"",fnlGroups:Array.from({length:11},((t,e)=>`fnl${e+1}`)),fnlGroupRegexp:/\/(\d{1})(fnl\d{1,2})/,callbackModalName:"callback-order"}},props:{edit:{type:Boolean,default:!1}},validations(){let t={$each:{url:{checkTargetUrl:ye},key:{checkTargetKey:$e},comment:{maxLength:(0,W.Ru)(100)},backup:{url:{checkTargetUrl:ye}}}};return{name:{checkResourceName:Ce,minLength:(0,W.Bp)(5)},restreams:{$each:{source:{checkSourceUrl:we},targets:t}}}},created(){this.resource&&this.resource.data&&(this.init(this.resource.data),this.restreamTypeDisabled=!0)},methods:{init(t){if(this.restreams=[],this.name=t.name,this.active=t.active,this.restreamType=t.type,t.restreams.forEach((t=>{let e=this.restreams.findIndex((e=>e.source===t.source));-1===e?this.restreams.push({source:t.source,targets:[this.formTargetFromRestream(t)]}):this.restreams[e].targets.push(this.formTargetFromRestream(t))})),"fnl"===this.$user.accountName&&0!==this.restreams.length){let t=this.restreams[0].source.match(this.fnlGroupRegexp);t&&t.length>2&&(this.fnlGroup=t[2])}},addRestream(){this.restreams.push({source:"",targets:[{type:"youtube",url:"",key:"",passphrase:"",showOptions:!1,showBackup:!1,schedule:[{start:null,stop:null}],login:"",password:"",comment:"",backup:{url:"",login:"",password:""}}]})},removeRestream(t){this.restreams.splice(t,1)},addTarget(t){this.restreams[t].targets.push({type:"youtube",url:"",ke
1y:"",passphrase:"",showOptions:!1,showBackup:!1,schedule:[{start:null,stop:null}],login:"",password:"",comment:"",backup:{url:"",login:"",password:""}})},removeTarget(t,e){this.restreams[t].targets.splice(e,1)},addSchedule(t,e){this.restreams[t].targets[e].schedule.push({start:null,stop:null})},removeSchedule(t,e,a){this.restreams[t].targets[e].schedule.splice(a,1)},getTargetsCount(t){return this.restreams[t].targets.length},getScheduleCount(t,e){return this.restreams[t].targets[e].schedule.length},getRestreamCount(){return this.restreams.length},save(){let t=[];if(0!==this.restreams.length)if(this.restreams.forEach((e=>{e.source&&e.targets.forEach((a=>{(a.url&&a.key||this.isSrtTargetType(a)&&a.url)&&t.push(this.formRestream(e.source,"",a))}))})),0===t.length)this.$toast.show({text:"Не указан URL/ключ для точек рестриминга."});else{let e={name:this.name,active:this.active,type:this.restreamType,restreams:t};this.$emit("save",e)}},showModal(t){this.$modal.show(t)}},watch:{fnlGroup(t,e){e&&t&&this.restreams.forEach((e=>{e.source=e.source.replace(this.fnlGroupRegexp,`/$1${t}`)}))}}},Pe=(0,f.A)(Re,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form form-restream-cdn1"},[t.isLoading?e("div",{staticClass:"flex align-center justify-center",class:t.edit?"content-block last":"content"},[e("Spinner",{staticClass:"flex justify-center align-center margin-top margin-bottom"})],1):e("div",{staticClass:"content-block restreaming",class:{first:!this.edit}},[e("div",{staticClass:"relative",class:t.active?"":"blur-1px"},[e("div",{staticClass:"overlay",class:t.active?"disable-overlay":"enable-overlay"}),e("div",{staticClass:"s520i"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Название ресурса")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Название ресурса генерируется автоматически при создании ресурса рестриминга. Если Вы хотите назвать ресурс самостоятельно, измените название в поле.")))])]),e("div",{staticClass:"flex gap-2x align-center margin-bottom"},[e("textbox",{staticClass:"name",attrs:{maxlength:"40",placeholder:t.$t("Название ресурса")},on:{blur:function(e){return t.$v.name.$touch()}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),e("Tooltip",{attrs:{content:t.$t(t.inputHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.$v.name.$error?e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]):t._e(),e("div",{staticClass:"margin-top"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Тип рестриминга")))]),t.restreamTypeDisabled?e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выбранный тип рестриминга (после создания ресурса изменить тип невозможно).")))]):e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите подходящий тип рестриминга (после создания ресурса изменить тип невозможно).")))]),e("div",{staticClass:"flex gap-2x align-center margin-bottom"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.restreamType,expression:"restreamType"}],staticClass:"s520i",attrs:{disabled:t.restreamTypeDisabled},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.restreamType=e.target.multiple?a:a[0]}}},t._l(t.restreamTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("Tooltip",{attrs:{content:t.$t("При тарификации используется понятие сет - это рестриминг одного исходного потока в 1-3 точки рестриминга (резервные точки не учитываются)."),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),e("div",{staticClass:"s520 margin-bottom-2x"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(t.restreamTypeInfo[t.restreamType].description)))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(t.restreamTypeInfo[t.restreamType].tariffDescription)))])])]),e("div",{staticClass:"margin-top"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Исходный поток")))]),"fnl"===this.$user.accountName&&this.resource?[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите группу.")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.fnlGroup,expression:"fnlGroup"}],staticClass:"s520i margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.fnlGroup=e.target.multiple?a:a[0]}}},t._l(t.fnlGroups,(function(a){return e("option",{domProps:{value:a,textContent:t._s(a)}})})),0)]:t._e(),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Введите HLS или RTMP ссылку на исходный поток, для которого необходим рестриминг.")))]),t._l(t.restreams,(function(a,s){return e("div",{key:s,staticClass:"margin-bottom"},[e("div",{staticClass:"flex gap-2x align-center margin-bottom"},[e("textbox",{staticClass:"source",attrs:{placeholder:"https://domain.com/app/stream/playlist.m3u8"},on:{blur:function(e){return t.$v.restreams.$each[s].source.$touch()}},model:{value:a.source,callback:function(e){t.$set(a,"source",e)},expression:"restream.source"}}),0===s&&t.getRestreamCount()<10?e("div",{staticClass:"add",on:{click:t.addRestream}},[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(),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeRestream(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),t.$v.restreams.$each[s].source.$error?e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]):t._e()])})),e("div",{staticClass:"text-extralight problem-text",on:{click:function(e){return t.showModal(t.callbackModalName)}}},[t._v(t._s(t.$t("Еще нет заведенной трансляции или не получается заполнить?")))])],2),e("div",{staticClass:"margin-top-2x"}),e("label",{staticClass:"margin-bottom",attrs:{for:"target"}},[t._v(t._s(t.$t("Точки рестриминга")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите URL и ключи точек, на которые необходимо рестримить выбранный поток.")))]),t._l(t.restreams,(function(a,s){return e("div",{staticClass:"margin-bottom-2x"},[t.getRestreamCount()>1?e("div",{staticClass:"source-label"},[t._v(t._s(`${t.$t("Для потока")} ${a.source}:`))]):t._e(),t._l(a.targets,(function(i,r){return e("div",{key:r,staticClass:"target margin-bottom"},[e("div",{staticClass:"flex gap-2x align-center margin-bottom"},[e("div",{staticClass:"s520"},[e("div",{staticClass:"flex gap-2x"},[e("div",{staticClass:"type grow"},[e("select",{directives:[{name:"model",rawName:"v-model",value:i.type,expression:"target.type"}],staticClass:"targetType",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(i,"type",e.target.multiple?a:a[0])}}},t._l(t.targetTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),t.isSrtTargetType(i)?[e("textbox",{staticClass:"grow target-srt-url",attrs:{placeholder:"srt://0.0.0.0:10110"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.url,callback:function(e){t.$set(i,"url",e)},expression:"target.url"}})]:[e("textbox",{staticClass:"grow target-url",attrs:{placeholder:"rtmp://domain.com/app"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.url,callback:function(e){t.$set(i,"url",e)},expression:"target.url"}}),e("textbox",{staticClass:"grow target-key",attrs:{placeholder:"stream_key"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.key,callback:function(e){t.$set(i,"key",e)},expression:"target.key"}})]],2)]),0===r&&t.getTargetsCount(s)<50?e("div",{staticClass:"add",on:{click:function(e){return t.addTarget(s)}}},[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(),r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeTarget(s,r)}}},[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(),e("Tooltip",{attrs:{content:t.$t(t.settingsHint),placement:"right"}},[e("div",{staticClass:"settings",on:{click:function(t){i.showOptions=!i.showOptions}}},[e("svg",{staticClass:"settings-icon",staticStyle:{"enable-background":"new 0 0 478.703 478.703"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 478.703 478.703","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M454.2,189.101l-33.6-5.7c-3.5-11.3-8-22.2-13.5-32.6l19.8-27.7c8.4-11.8,7.1-27.9-3.2-38.1l-29.8-29.8\n\t\t\tc-5.6-5.6-13-8.7-20.9-8.7c-6.2,0-12.1,1.9-17.1,5.5l-27.8,19.8c-10.8-5.7-22.1-10.4-33.8-13.9l-5.6-33.2\n\t\t\tc-2.4-14.3-14.7-24.7-29.2-24.7h-42.1c-14.5,0-26.8,10.4-29.2,24.7l-5.8,34c-11.2,3.5-22.1,8.1-32.5,13.7l-27.5-19.8\n\t\t\tc-5-3.6-11-5.5-17.2-5.5c-7.9,0-15.4,3.1-20.9,8.7l-29.9,29.8c-10.2,10.2-11.6,26.3-3.2,38.1l20,28.1\n\t\t\tc-5.5,10.5-9.9,21.4-13.3,32.7l-33.2,5.6c-14.3,2.4-24.7,14.7-24.7,29.2v42.1c0,14.5,10.4,26.8,24.7,29.2l34,5.8\n\t\t\tc3.5,11.2,8.1,22.1,13.7,32.5l-19.7,27.4c-8.4,11.8-7.1,27.9,3.2,38.1l29.8,29.8c5.6,5.6,13,8.7,20.9,8.7c6.2,0,12.1-1.9,17.1-5.5\n\t\t\tl28.1-20c10.1,5.3,20.7,9.6,31.6,13l5.6,33.6c2.4,14.3,14.7,24.7,29.2,24.7h42.2c14.5,0,26.8-10.4,29.2-24.7l5.7-33.6\n\t\t\tc11.3-3.5,22.2-8,32.6-13.5l27.7,19.8c5,3.6,11,5.5,17.2,5.5l0,0c7.9,0,15.3-3.1,20.9-8.7l29.8-29.8c10.2-10.2,11.6-26.3,3.2-38.1\n\t\t\tl-19.8-27.8c5.5-10.5,10.1-21.4,13.5-32.6l33.6-5.6c14.3-2.4,24.7-14.7,24.7-29.2v-42.1\n\t\t\tC478.9,203.801,468.5,191.501,454.2,189.101z M451.9,260.401c0,1.3-0.9,2.4-2.2,2.6l-42,7c-5.3,0.9-9.5,4.8-10.8,9.9\n\t\t\tc-3.8,14.7-9.6,28.8-17.4,41.9c-2.7,4.6-2.5,10.3,0.6,14.7l24.7,34.8c0.7,1,0.6,2.5-0.3,3.4l-29.8,29.8c-0.7,0.7-1.4,0.8-1.9,0.8\n\t\t\tc-0.6,0-1.1-0.2-1.5-0.5l-34.7-24.7c-4.3-3.1-10.1-3.3-14.7-0.6c-13.1,7.8-27.2,13.6-41.9,17.4c-5.2,1.3-9.1,5.6-9.9,10.8l-7.1,42\n\t\t\tc-0.2,1.3-1.3,2.2-2.6,2.2h-42.1c-1.3,0-2.4-0.9-2.6-2.2l-7-42c-0.9-5.3-4.8-9.5-9.9-10.8c-14.3-3.7-28.1-9.4-41-16.8\n\t\t\tc-2.1-1.2-4.5-1.8-6.8-1.8c-2.7,0-5.5,0.8-7.8,2.5l-35,24.9c-0.5,0.3-1,0.5-1.5,0.5c-0.4,0-1.2-0.1-1.9-0.8l-29.8-29.8\n\t\t\tc-0.9-0.9-1-2.3-0.3-3.4l24.6-34.5c3.1-4.4,3.3-10.2,0.6-14.8c-7.8-13-13.8-27.1-17.6-41.8c-1.4-5.1-5.6-9-10.8-9.9l-42.3-7.2\n\t\t\tc-1.3-0.2-2.2-1.3-2.2-2.6v-42.1c0-1.3,0.9-2.4,2.2-2.6l41.7-7c5.3-0.9,9.6-4.8,10.9-10c3.7-14.7,9.4-28.9,17.1-42\n\t\t\tc2.7-4.6,2.4-10.3-0.7-14.6l-24.9-35c-0.7-1-0.6-2.5,0.3-3.4l29.8-29.8c0.7-0.7,1.4-0.8,1.9-0.8c0.6,0,1.1,0.2,1.5,0.5l34.5,24.6\n\t\t\tc4.4,3.1,10.2,3.3,14.8,0.6c13-7.8,27.1-13.8,41.8-17.6c5.1-1.4,9-5.6,9.9-10.8l7.2-42.3c0.2-1.3,1.3-2.2,2.6-2.2h42.1\n\t\t\tc1.3,0,2.4,0.9,2.6,2.2l7,41.7c0.9,5.3,4.8,9.6,10,10.9c15.1,3.8,29.5,9.7,42.9,17.6c4.6,2.7,10.3,2.5,14.7-0.6l34.5-24.8\n\t\t\tc0.5-0.3,1-0.5,1.5-0.5c0.4,0,1.2,0.1,1.9,0.8l29.8,29.8c0.9,0.9,1,2.3,0.3,3.4l-24.7,34.7c-3.1,4.3-3.3,10.1-0.6,14.7\n\t\t\tc7.8,13.1,13.6,27.2,17.4,41.9c1.3,5.2,5.6,9.1,10.8,9.9l42,7.1c1.3,0.2,2.2,1.3,2.2,2.6v42.1H451.9z"}}),e("path",{attrs:{d:"M239.4,136.001c-57,0-103.3,46.3-103.3,103.3s46.3,103.3,103.3,103.3s103.3-46.3,103.3-103.3S296.4,136.001,239.4,136.001\n\t\t\tz M239.4,315.601c-42.1,0-76.3-34.2-76.3-76.3s34.2-76.3,76.3-76.3s76.3,34.2,76.3,76.3S281.5,315.601,239.4,315.601z"}})])]),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.isSrtTargetType(i)?t._e():e("Tooltip",{attrs:{content:t.$t(t.backupHint),placement:"top"}},[e("div",{staticClass:"cdn1-restream-icon cdn1-backup",on:{click:function(t){i.showBackup=!i.showBackup}}},[e("svg",{staticClass:"backup-icon",staticStyle:{"enable-background":"new 0 0 512 512"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"}},[e("g",[e("g",[e("g",[e("path",{attrs:{d:"M74.667,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667\n\t\t\t\tC68.771,85.333,64,90.104,64,96v64C64,165.896,68.771,170.667,74.667,170.667z"}}
1),e("path",{attrs:{d:"M117.333,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667\n\t\t\t\tc-5.896,0-10.667,4.771-10.667,10.667v64C106.667,165.896,111.438,170.667,117.333,170.667z"}}),e("path",{attrs:{d:"M160,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667S149.333,90.104,149.333,96v64\n\t\t\t\tC149.333,165.896,154.104,170.667,160,170.667z"}}),e("circle",{attrs:{cx:"384",cy:"128",r:"21.333"}}),e("circle",{attrs:{cx:"320",cy:"128",r:"21.333"}}),e("path",{attrs:{d:"M74.667,234.667c-5.896,0-10.667,4.771-10.667,10.667v64C64,315.229,68.771,320,74.667,320\n\t\t\t\tc5.896,0,10.667-4.771,10.667-10.667v-64C85.333,239.438,80.563,234.667,74.667,234.667z"}}),e("path",{attrs:{d:"M117.333,234.667c-5.896,0-10.667,4.771-10.667,10.667v64c0,5.896,4.771,10.667,10.667,10.667\n\t\t\t\tc5.896,0,10.667-4.771,10.667-10.667v-64C128,239.438,123.229,234.667,117.333,234.667z"}}),e("path",{attrs:{d:"M160,234.667c-5.896,0-10.667,4.771-10.667,10.667v64c0,5.896,4.771,10.667,10.667,10.667s10.667-4.771,10.667-10.667\n\t\t\t\tv-64C170.667,239.438,165.896,234.667,160,234.667z"}}),e("path",{attrs:{d:"M469.333,261.561v-26.895c0-12.805-5.784-24.174-14.741-32c8.957-7.826,14.741-19.195,14.741-32V85.333\n\t\t\t\tc0-23.531-19.135-42.667-42.667-42.667h-384C19.135,42.667,0,61.802,0,85.333v85.333c0,12.805,5.784,24.174,14.741,32\n\t\t\t\tC5.784,210.492,0,221.862,0,234.667V320c0,23.531,19.135,42.667,42.667,42.667h235.207\n\t\t\t\tc5.414,59.711,55.695,106.667,116.793,106.667C459.365,469.333,512,416.698,512,352C512,315.643,495.376,283.1,469.333,261.561z\n\t\t\t\t M21.333,85.333C21.333,73.573,30.906,64,42.667,64h384C438.427,64,448,73.573,448,85.333v85.333\n\t\t\t\tc0,11.76-9.573,21.333-21.333,21.333h-384c-11.76,0-21.333-9.573-21.333-21.333V85.333z M42.667,341.333\n\t\t\t\tc-11.76,0-21.333-9.573-21.333-21.333v-85.333c0-11.76,9.573-21.333,21.333-21.333h384c11.76,0,21.333,9.573,21.333,21.333\n\t\t\t\tv12.953c-16.023-8.22-34.121-12.953-53.333-12.953c-61.098,0-111.379,46.956-116.793,106.667H42.667z M394.667,448\n\t\t\t\tc-52.938,0-96-43.063-96-96s43.063-96,96-96s96,43.063,96,96S447.604,448,394.667,448z"}}),e("path",{attrs:{d:"M368.583,339.542c4.906-3.271,6.229-9.885,2.958-14.792c-3.271-4.917-9.896-6.229-14.792-2.958l-9.906,6.604\n\t\t\t\tc8.729-17.604,26.885-29.729,47.823-29.729c17.75,0,34.281,8.792,44.24,23.521c3.281,4.875,9.938,6.177,14.802,2.865\n\t\t\t\tc4.885-3.292,6.167-9.927,2.865-14.802c-13.917-20.615-37.063-32.917-61.906-32.917C353.5,277.333,320,310.833,320,352\n\t\t\t\tc0,3.938,2.167,7.552,5.635,9.406c1.573,0.844,3.302,1.26,5.031,1.26c2.073,0,4.135-0.604,5.917-1.792L368.583,339.542z"}}),e("path",{attrs:{d:"M463.698,342.594c-3.469-1.854-7.698-1.646-10.948,0.531l-32,21.333c-4.906,3.271-6.229,9.885-2.958,14.792\n\t\t\t\tc3.25,4.896,9.865,6.198,14.792,2.958l9.906-6.604c-8.729,17.604-26.885,29.729-47.823,29.729\n\t\t\t\tc-17.75,0-34.281-8.792-44.24-23.521c-3.292-4.885-9.948-6.167-14.802-2.865c-4.885,3.292-6.167,9.927-2.865,14.802\n\t\t\t\tc13.917,20.615,37.063,32.917,61.906,32.917c41.167,0,74.667-33.5,74.667-74.667\n\t\t\t\tC469.333,348.063,467.167,344.448,463.698,342.594z"}})])])]),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.checkTemplateTargetUrl(i.url,i.type)?t._e():e("Tooltip",{attrs:{content:t.$t("Введён нестандартный URL точки рестриминга."),placement:"right"}},[e("div",{staticClass:"cdn1-restream-icon cdn1-info"},[e("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),e("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),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
1),"facebook"===i.type?e("div",{staticClass:"important text-regular"},[e("span",{staticClass:"bold"},[t._v(t._s(t.$t("Важно: ")))]),e("span",[t._v(t._s(t.$t("используйте постоянный ключ трансляции.")))])]):t._e(),e("div",{staticClass:"s520"},[t.$v.restreams.$each[s].targets.$each[r].$error?e("div",{staticClass:"has-error"},[t.$v.restreams.$each[s].targets.$each[r].url.$error?e("span",{staticClass:"error"},[t._v(t._s(t.$t("Введите валидный URL точки рестриминга.")))]):t._e(),t.$v.restreams.$each[s].targets.$each[r].key.$error?e("span",{staticClass:"error"},[t._v(t._s(t.$t("Введите валидный ключ точки рестриминга.")))]):t._e()]):t._e()]),t.isSrtTargetType(i)?[e("div",{directives:[{name:"show",rawName:"v-show",value:i.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите пароль точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-passphrase",attrs:{placeholder:"Passphrase"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.passphrase,callback:function(e){t.$set(i,"passphrase",e)},expression:"target.passphrase"}})],1)])])]:[e("div",{directives:[{name:"show",rawName:"v-show",value:i.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите логин и пароль точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-auth",attrs:{placeholder:"Login"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.login,callback:function(e){t.$set(i,"login",e)},expression:"target.login"}}),e("textbox",{staticClass:"target-auth",attrs:{placeholder:"Password"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.password,callback:function(e){t.$set(i,"password",e)},expression:"target.password"}})],1)])]),e("div",{directives:[{name:"show",rawName:"v-show",value:i.showBackup,expression:"target.showBackup"}]},[e("div",{staticClass:"target-options margin-bottom"},[e("div",{staticClass:"text-extralight margin-top margin-bottom"},[t._v(t._s(t.$t("Укажите резервный URL для точки рестриминга.")))]),e("div",{staticClass:"flex align-center gap-2x"},[e("textbox",{staticClass:"target-backup-url",attrs:{placeholder:"rtmp://backup.domain.com/app"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.backup.url,callback:function(e){t.$set(i.backup,"url",e)},expression:"target.backup.url"}}),t.checkTemplateTargetUrl(i.backup.url,i.type)?t._e():e("Tooltip",{attrs:{content:t.$t("Введён нестандартный резервный URL для точки рестриминга."),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),e("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),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)]),e("div",{staticClass:"s520 margin-bottom"},[t.$v.restreams.$each[s].targets.$each[r].backup.url.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный резервный URL.")))]):t._e()])]),e("div",{directives:[{name:"show",rawName:"v-show",value:i.showBackup&&i.showOptions,expression:"target.showBackup && target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите логин и пароль резервной точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-backup-auth",attrs:{placeholder:"Login"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.backup.login,callback:function(e){t.$set(i.backup,"login",e)},expression:"target.backup.login"}}),e("textbox",{staticClass:"target-backup-auth",attrs:{placeholder:"Password"},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.backup.password,callback:function(e){t.$set(i.backup,"password",e)},expression:"target.backup.password"}})],1)])],e("div",{directives:[{name:"show",rawName:"v-show",value:i.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите временные интервалы для рестриминга по расписанию.")))]),e("div",{staticClass:"flex column gap"},t._l(a.targets[r].schedule,(function(i,n){return e("div",{key:n,staticClass:"schedule"},[e("div",{staticClass:"flex align-center gap-2x"},[e("div",{staticClass:"time-pickers"},[e("DateTimePicker",{attrs:{type:"datetimerange"}
1,model:{value:a.targets[r].schedule[n],callback:function(e){t.$set(a.targets[r].schedule,n,e)},expression:"restream.targets[j].schedule[p]"}})],1),0===n&&t.getScheduleCount(s,r)<5?e("div",{staticClass:"add",on:{click:function(e){return t.addSchedule(s,r)}}},[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(),n?e("div",{staticClass:"remove",on:{click:function(e){return t.removeSchedule(s,r,n)}}},[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()])])})),0),e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указываются в часовом поясе")} ${t.$user.personTimezone}`))])]),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите комментарий к точке рестриминга.")))]),e("textbox",{staticClass:"target-comment",attrs:{rows:"3",placeholder:t.$t("Комментарий"),multiline:!0},on:{blur:function(e){return t.$v.restreams.$each[s].targets.$each[r].$touch()}},model:{value:i.comment,callback:function(e){t.$set(i,"comment",e)},expression:"target.comment"}})],1)]),e("div",{staticClass:"s520"},[t.$v.restreams.$each[s].targets.$each[r].comment.$error?e("div",{staticClass:"has-error"},[e("span",{staticClass:"error"},[t._v(t._s(t.$t("Комментарий должен быть меньше 100 символов.")))])]):t._e()])],2)}))],2)}))],2)]),e("div",{staticClass:"content-block last"},[t.isLoading?t._e():e("div",{staticClass:"margin-bottom-2x"},[t.saving?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",[e("div",{staticClass:"margin-bottom"},[t.active?e("btn",{attrs:{size:"big",disabled:t.$v.$invalid},on:{click:t.save}},[t._v(t._s(t.$t(t.buttonText)))]):e("btn",{attrs:{size:"big",disabled:t.$v.$invalid},on:{click:t.activate}}
1,[t._v(t._s(t.$t(t.buttonText)))])],1),e("div",{staticClass:"text-extralight problem-text margin-top-2x",on:{click:function(e){return t.showModal(t.callbackModalName)}}},[t._v(t._s(t.$t("Не получилось создать ресурс?")))])])])]),e("CallbackOrderModal",{attrs:{modalName:t.callbackModalName,problemType:"Заведение рестриминга"}})],1)}),[],!1,null,"3800f05b",null).exports,Me={name:"ResourceFormRestreamCdn2",components:{Btn:h.A,Textbox:p.A,Modal:Tt.A,DateTimePicker:ht.A,Spinner:kt.A},mixins:[ke],data(){return{targets:[{type:"youtube",url:"",key:"",passphrase:"",showOptions:!1,showBackup:!1,schedule:[{start:null,stop:null}],login:"",password:"",comment:"",backup:{url:"",login:"",password:""}}],transcodedStreams:!1,selectedLiveResourceStreamId:"",selectedLiveResourceTranscodedStreams:{},selectedLiveResourceNotTranscodedStreams:{},selectedLiveResource:{},liveResources:[],transcodeTargets:{}}},props:{edit:{type:Boolean,default:!1}},validations(){let t={$each:{url:{checkTargetUrl:ye},key:{checkTargetKey:$e},comment:{maxLength:(0,W.Ru)(100)},backup:{url:{checkTargetUrl:ye}}}},e={name:{checkResourceName:Ce,minLength:(0,W.Bp)(5)},targets:t};return this.transcodedStreams&&(e.transcodeTargets={},this.transcodeResolutions.forEach((a=>{e.transcodeTargets[a]=t}))),e},created(){this.isLoading=!0;let t={accountName:this.$user.accountName,type:"live"};this.$api.getResources(t).then((t=>{t.data.forEach(((t,e)=>{["RTMP-publish","SRT-publish"].includes(t.type)&&this.liveResources.push({text:t.name,value:t.name,id:t.id,data:t})})),this.resource&&this.resource.data?(this.init(this.resource.data),this.restreamTypeDisabled=!0):this.selectedLiveResource=this.liveResources[0],this.isLoading=!1}))},computed:{transcodeResolutions(){return Object.keys(this.selectedLiveResourceTranscodedStreams).sort(((t,e)=>parseInt(t)-parseInt(e)))}},methods:{init(t){let e="";this.targets=[],this.name=t.name,this.active=t.active,this.restreamType=t.type,t.restreams.forEach((t=>{t.transcoded?(this.transcodedStreams=!0,Object.prototype.hasOwnProperty.call(this.transcodeTargets,t.transcode_quality)?this.transcodeTargets[t.transcode_quality].push(this.formTargetFromRestream(t)):s.default.set(this.transcodeTargets,t.transcode_quality,[this.formTargetFromRestream(t)])):(e=t.source.split("/").reverse()[0],this.targets.push(this.formTargetFromRestream(t)))})),e||0===t.restreams.length||(this.targets.push({type:"youtube",url:"",key:"",passphrase:"",showOptions:!1,showBackup:!1,schedule:[{start:null,stop:null}],login:"",password:"",comment:"",backup:{url:"",login:"",password:""}}),e=t.restreams[0].source.split("/").reverse()[0].split("_tcode")[0]),this.liveResources.forEach((t=>{for(let[a,s]of Object.entries(t.data.streams))s.stream_name===e&&(this.selectedLiveResource=t,this.selectedLiveResourceStreamId=a)}))},addTarget(){this.targets.push({type:"youtube",url:"",key:"",passphrase:"",showOptions:!1,showBackup:!1,schedule:[{start:null,stop:null}],login:"",password:"",comment:"",backup:{url:"",login:"",password:""}})},removeTarget(t){this.targets.splice(t,1)},addSchedule(t){this.targets[t].schedule.push({start:null,stop:null})},removeSchedule(t,e){this.targets[t].schedule.splice(e,1)},getTargetsCount(){return Object.keys(this.targets).length},getScheduleCount(t){return Object.keys(this.targets[t].schedule).length},save(){let t,e,a,s=[];if(0!==this.targets.length)if(t=this.selectedLiveResource.data.settings[this.selectedLiveResource.data.type],e=this.selectedLiveResourceNotTranscodedStreams[this.selectedLiveResourceStreamId].stream_name,a=`${t.pub_protocol}://${t.primary}/${t.application}/${e}`,this.targets.forEach((t=>{(t.url&&t.key||this.isSrtTargetType(t)&&t.url)&&s.push(this.formRestream(a,"",t))})),0!==this.transcodeResolutions.length&&this.transcodedStreams&&this.transcodeResolutions.forEach((a=>{e=this.selectedLiveResourceTranscodedStreams[a].stream_name;let i=`${t.pub_protocol}://${t.primary}/${t.application}/${e}`;this.transcodeTargets[a].forEach((t=>{t.url&&s.push(this.formRestream(i,a,t))}))})),0===s.length)this.$toast.show({text:"Не указан URL/ключ для точек рестриминга."});else{let t={name:this.name,active:this.active,type:this.restreamType,restreams:s};this.$emit("save",t)}},addTranscodeTarget(t){this.transcodeTargets[t].push({type:"youtube",url:"",ke
1y:"",passphrase:"",showOptions:!1,showBackup:!1,schedule:[{start:null,stop:null}],login:"",password:"",comment:"",backup:{url:"",login:"",password:""}})},removeTranscodeTarget(t,e){this.transcodeTargets[t].splice(e,1)},addTranscodeSchedule(t,e){this.transcodeTargets[t][e].schedule.push({start:null,stop:null})},removeTranscodeSchedule(t,e,a){this.transcodeTargets[t][e].schedule.splice(a,1)},getTranscodeTargetCount(t){return Object.keys(this.transcodeTargets[t]).length},getTranscodeScheduleCount(t,e){return Object.keys(this.transcodeTargets[t][e].schedule).length},checkTemplateTargetUrl(t,e){return""===t||!(e in this.targetTemplateURL)||this.targetTemplateURL[e].some((e=>e.test(t)))},newRtmpPublishResource(){this.$router.push({name:"streaming-resource-new-rtmp"})},newSrtPublishResource(){this.$router.push({name:"streaming-resource-new-srt"})}},watch:{selectedLiveResource(){this.selectedLiveResourceTranscodedStreams={},this.selectedLiveResourceNotTranscodedStreams={};for(let t in this.selectedLiveResource.data.streams){let e=this.selectedLiveResource.data.streams[t];e.transcode?this.selectedLiveResourceTranscodedStreams[e.resolution]=e:this.selectedLiveResourceNotTranscodedStreams[t]=e}Object.prototype.hasOwnProperty.call(this.selectedLiveResourceNotTranscodedStreams,this.selectedLiveResourceStreamId)||(this.selectedLiveResourceStreamId=Object.keys(this.selectedLiveResourceNotTranscodedStreams)[0])},transcodeResolutions(){this.transcodeResolutions.forEach((t=>{Object.prototype.hasOwnProperty.call(this.transcodeTargets,t)||s.default.set(this.transcodeTargets,t,[{type:"youtube",url:"",key:"",passphrase:"",showOptions:!1,showBackup:!1,schedule:[{start:null,stop:null}],login:"",password:"",comment:"",backup:{url:"",login:"",password:""}}])}))}}},Le={name:"ResourceFormRestream",components:{FormRestreamCdn1:Pe,FormRestreamCdn2:(0,f.A)(Me,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form form-restream-cdn2"},[t.isLoading?e("div",{class:t.edit?"content-block last":"content"},[e("Spinner",{staticClass:"flex justify-center align-center margin-top margin-bottom"})],1):this.resource||0!==this.liveResources.length?e("div",{staticClass:"restreaming content-block",class:{first:!this.edit}},[e("div",{staticClass:"relative",class:t.active?"":"blur-1px"},[e("div",{staticClass:"overlay",class:t.active?"disable-overlay":"enable-overlay"}),e("div",{staticClass:"s520i"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Название ресурса")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Название ресурса генерируется автоматически при создании ресурса рестриминга. Если Вы хотите назвать ресурс самостоятельно, измените название в поле.")))])]),e("div",{staticClass:"flex gap-2x align-center margin-bottom"},[e("textbox",{staticClass:"name full-width s520",attrs:{maxlength:"40",placeholder:t.$t("Название ресурса")},on:{blur:function(e){return t.$v.name.$touch()}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),e("Tooltip",{attrs:{content:t.$t(t.inputHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.$v.name.$error?e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]):t._e(),e("div",{staticClass:"margin-top"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Тип рестриминга")))]),t.restreamTypeDisabled?e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выбранный тип рестриминга (после создания ресурса изменить тип невозможно).")))]):e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите подходящий тип рестриминга (после создания ресурса изменить тип невозможно).")))]),e("div",{staticClass:"flex gap-2x align-center margin-bottom"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.restreamType,expression:"restreamType"}],staticClass:"full-width s520",attrs:{disabled:t.restreamTypeDisabled},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.restreamType=e.target.multiple?a:a[0]}}},t._l(t.restreamTypes,(function(a,s){return e("option",{key:s,domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("Tooltip",{attrs:{content:t.$t("При тарификации используется понятие сет - это рестриминг одного исходного потока в 1-3 точки рестриминга (резервные точки не учитываются)."),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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)]),e("div",{staticClass:"s520 margin-bottom-2x"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(t.restreamTypeInfo[t.restreamType].description)))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(t.restreamTypeInfo[t.restreamType].tariffDescription)))])]),e("div",{staticClass:"s520 margin-top"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Исходный поток")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите ресурс c исходным потоком.")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedLiveResource,expression:"selectedLiveResource"}],staticClass:"margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selectedLiveResource=e.target.multiple?a:a[0]}}},t._l(t.liveResources,(function(a,s){return e("option",{domProps:{value:a,textContent:t._s(a.text)}})})),0),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите исходный поток, для которого необходим рестриминг.")))]),t.selectedLiveResourceStreamId?e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedLiveResourceStreamId,expression:"selectedLiveResourceStreamId"}],staticClass:"margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selectedLiveResourceStreamId=e.target.multiple?a:a[0]}}},t._l(t.selectedLiveResourceNotTranscodedStreams,(function(a,s,i){return e("option",{domProps:{value:s,textContent:t._s(a.name)}})})),0):e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedLiveResourceStreamId,expression:"selectedLiveResourceStreamId"}],staticClass:"margin-bottom",attrs:{disabled:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selectedLiveResourceStreamId=e.target.multiple?a:a[0]}}}),0!==Object.keys(t.selectedLiveResourceTranscodedStreams).length?e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.transcodedStreams,expression:"transcodedStreams"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.transcodedStreams)?t._i(t.transcodedStreams,null)>-1:t.transcodedStreams},on:{change:function(e){var a=t.transcodedStreams,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.transcodedStreams=a.concat([null])):r>-1&&(t.transcodedStreams=a.slice(0,r).concat(a.slice(r+1)))}else t.transcodedStreams=i}}}),e("span",[t._v(t._s(t.$t("Учитывать транскодированные потоки")))])]):t._e()]),e("div",{staticClass:"margin-top-2x"},[e("label",{staticClass:"margin-bottom",attrs:{for:"target"}},[t._v(t._s(t.$t("Точки рестриминга")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите URL и ключи точек, на которые необходимо рестримить выбранный поток.")))]),t._l(t.targets,(function(a,s){return e("div",{key:s,staticClass:"target margin-bottom"},[e("div",{staticClass:"flex gap-2x align-center"},[e("div",{staticClass:"full-width s520"},[e("div",{staticClass:"flex gap-2x"},[e("div",{staticClass:"type grow"},[e("select",{directives:[{name:"model",rawName:"v-model",value:a.type,expression:"target.type"}],staticClass:"targetType",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"type",e.target.multiple?s:s[0])}}},t._l(t.targetTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),t.isSrtTargetType(a)?[e("textbox",{staticClass:"grow target-srt-url",attrs:{placeholder:"srt://0.0.0.0:10110"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.url,callback:function(e){t.$set(a,"url",e)},expression:"target.url"}})]:[e("textbox",{staticClass:"grow target-url",attrs:{placeholder:"rtmp://domain.com/app"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.url,callback:function(e){t.$set(a,"url",e)},expression:"target.url"}}),e("textbox",{staticClass:"grow target-key",attrs:{placeholder:"stream_key"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.key,callback:function(e){t.$set(a,"key",e)},expression:"target.key"}})]],2)]),0===s&&t.getTargetsCount()<50?e("div",{staticClass:"add",on:{click:t.addTarget}},[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(),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeTarget(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(),e("Tooltip",{attrs:{content:t.$t(t.settingsHint),placement:"top"}},[e("div",{staticClass:"settings",on:{click:function(t){a.showOptions=!a.showOptions}}},[e("svg",{staticClass:"settings-icon",staticStyle:{"enable-background":"new 0 0 478.703 478.703"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 478.703 478.703","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M454.2,189.101l-33.6-5.7c-3.5-11.3-8-22.2-13.5-32.6l19.8-27.7c8.4-11.8,7.1-27.9-3.2-38.1l-29.8-29.8\n\t\t\tc-5.6-5.6-13-8.7-20.9-8.7c-6.2,0-12.1,1.9-17.1,5.5l-27.8,19.8c-10.8-5.7-22.1-10.4-33.8-13.9l-5.6-33.2\n\t\t\tc-2.4-14.3-14.7-24.7-29.2-24.7h-42.1c-14.5,0-26.8,10.4-29.2,24.7l-5.8,34c-11.2,3.5-22.1,8.1-32.5,13.7l-27.5-19.8\n\t\t\tc-5-3.6-11-5.5-17.2-5.5c-7.9,0-15.4,3.1-20.9,8.7l-29.9,29.8c-10.2,10.2-11.6,26.3-3.2,38.1l20,28.1\n\t\t\tc-5.5,10.5-9.9,21.4-13.3,32.7l-33.2,5.6c-14.3,2.4-24.7,14.7-24.7,29.2v42.1c0,14.5,10.4,26.8,24.7,29.2l34,5.8\n\t\t\tc3.5,11.2,8.1,22.1,13.7,32.5l-19.7,27.4c-8.4,11.8-7.1,27.9,3.2,38.1l29.8,29.8c5.6,5.6,13,8.7,20.9,8.7c6.2,0,12.1-1.9,17.1-5.5\n\t\t\tl28.1-20c10.1,5.3,20.7,9.6,31.6,13l5.6,33.6c2.4,14.3,14.7,24.7,29.2,24.7h42.2c14.5,0,26.8-10.4,29.2-24.7l5.7-33.6\n\t\t\tc11.3-3.5,22.2-8,32.6-13.5l27.7,19.8c5,3.6,11,5.5,17.2,5.5l0,0c7.9,0,15.3-3.1,20.9-8.7l29.8-29.8c10.2-10.2,11.6-26.3,3.2-38.1\n\t\t\tl-19.8-27.8c5.5-10.5,10.1-21.4,13.5-32.6l33.6-5.6c14.3-2.4,24.7-14.7,24.7-29.2v-42.1\n\t\t\tC478.9,203.801,468.5,191.501,454.2,189.101z M451.9,260.401c0,1.3-0.9,2.4-2.2,2.6l-42,7c-5.3,0.9-9.5,4.8-10.8,9.9\n\t\t\tc-3.8,14.7-9.6,28.8-17.4,41.9c-2.7,4.6-2.5,10.3,0.6,14.7l24.7,34.8c0.7,1,0.6,2.5-0.3,3.4l-29.8,29.8c-0.7,0.7-1.4,0.8-1.9,0.8\n\t\t\tc-0.6,0-1.1-0.2-1.5-0.5l-34.7-24.7c-4.3-3.1-10.1-3.3-14.7-0.6c-13.1,7.8-27.2,13.6-41.9,17.4c-5.2,1.3-9.1,5.6-9.9,10.8l-7.1,42\n\t\t\tc-0.2,1.3-1.3,2.2-2.6,2.2h-42.1c-1.3,0-2.4-0.9-2.6-2.2l-7-42c-0.9-5.3-4.8-9.5-9.9-10.8c-14.3-3.7-28.1-9.4-41-16.8\n\t\t\tc-2.1-1.2-4.5-1.8-6.8-1.8c-2.7,0-5.5,0.8-7.8,2.5l-35,24.9c-0.5,0.3-1,0.5-1.5,0.5c-0.4,0-1.2-0.1-1.9-0.8l-29.8-29.8\n\t\t\tc-0.9-0.9-1-2.3-0.3-3.4l24.6-34.5c3.1-4.4,3.3-10.2,0.6-14.8c-7.8-13-13.8-27.1-17.6-41.8c-1.4-5.1-5.6-9-10.8-9.9l-42.3-7.2\n\t\t\tc-1.3-0.2-2.2-1.3-2.2-2.6v-42.1c0-1.3,0.9-2.4,2.2-2.6l41.7-7c5.3-0.9,9.6-4.8,10.9-10c3.7-14.7,9.4-28.9,17.1-42\n\t\t\tc2.7-4.6,2.4-10.3-0.7-14.6l-24.9-35c-0.7-1-0.6-2.5,0.3-3.4l29.8-29.8c0.7-0.7,1.4-0.8,1.9-0.8c0.6,0,1.1,0.2,1.5,0.5l34.5,24.6\n\t\t\tc4.4,3.1,10.2,3.3,14.8,0.6c13-7.8,27.1-13.8,41.8-17.6c5.1-1.4,9-5.6,9.9-10.8l7.2-42.3c0.2-1.3,1.3-2.2,2.6-2.2h42.1\n\t\t\tc1.3,0,2.4,0.9,2.6,2.2l7,41.7c0.9,5.3,4.8,9.6,10,10.9c15.1,3.8,29.5,9.7,42.9,17.6c4.6,2.7,10.3,2.5,14.7-0.6l34.5-24.8\n\t\t\tc0.5-0.3,1-0.5,1.5-0.5c0.4,0,1.2,0.1,1.9,0.8l29.8,29.8c0.9,0.9,1,2.3,0.3,3.4l-24.7,34.7c-3.1,4.3-3.3,10.1-0.6,14.7\n\t\t\tc7.8,13.1,13.6,27.2,17.4,41.9c1.3,5.2,5.6,9.1,10.8,9.9l42,7.1c1.3,0.2,2.2,1.3,2.2,2.6v42.1H451.9z"}}),e("path",{attrs:{d:"M239.4,136.001c-57,0-103.3,46.3-103.3,103.3s46.3,103.3,103.3,103.3s103.3-46.3,103.3-103.3S296.4,136.001,239.4,136.001\n\t\t\tz M239.4,315.601c-42.1,0-76.3-34.2-76.3-76.3s34.2-76.3,76.3-76.3s76.3,34.2,76.3,76.3S281.5,315.601,239.4,315.601z"}})])]),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.isSrtTargetType(a)?t._e():e("Tooltip",{attrs:{content:t.$t(t.backupHint),placement:"top"}},[e("div",{staticClass:"backup",on:{click:function(t){a.showBackup=!a.showBackup}}},[e("svg",{staticClass:"backup-icon",staticStyle:{"enable-background":"new 0 0 512 512"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"}},[e("g",[e("g",[e("g",[e("path",{attrs:{d:"M74.667,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667\n\t\t\t\tC68.771,85.333,64,90.104,64,96v64C64,165.896,68.771,170.667,74.667,170.667z"}}
1),e("path",{attrs:{d:"M117.333,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667\n\t\t\t\tc-5.896,0-10.667,4.771-10.667,10.667v64C106.667,165.896,111.438,170.667,117.333,170.667z"}}),e("path",{attrs:{d:"M160,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667S149.333,90.104,149.333,96v64\n\t\t\t\tC149.333,165.896,154.104,170.667,160,170.667z"}}),e("circle",{attrs:{cx:"384",cy:"128",r:"21.333"}}),e("circle",{attrs:{cx:"320",cy:"128",r:"21.333"}}),e("path",{attrs:{d:"M74.667,234.667c-5.896,0-10.667,4.771-10.667,10.667v64C64,315.229,68.771,320,74.667,320\n\t\t\t\tc5.896,0,10.667-4.771,10.667-10.667v-64C85.333,239.438,80.563,234.667,74.667,234.667z"}}),e("path",{attrs:{d:"M117.333,234.667c-5.896,0-10.667,4.771-10.667,10.667v64c0,5.896,4.771,10.667,10.667,10.667\n\t\t\t\tc5.896,0,10.667-4.771,10.667-10.667v-64C128,239.438,123.229,234.667,117.333,234.667z"}}),e("path",{attrs:{d:"M160,234.667c-5.896,0-10.667,4.771-10.667,10.667v64c0,5.896,4.771,10.667,10.667,10.667s10.667-4.771,10.667-10.667\n\t\t\t\tv-64C170.667,239.438,165.896,234.667,160,234.667z"}}),e("path",{attrs:{d:"M469.333,261.561v-26.895c0-12.805-5.784-24.174-14.741-32c8.957-7.826,14.741-19.195,14.741-32V85.333\n\t\t\t\tc0-23.531-19.135-42.667-42.667-42.667h-384C19.135,42.667,0,61.802,0,85.333v85.333c0,12.805,5.784,24.174,14.741,32\n\t\t\t\tC5.784,210.492,0,221.862,0,234.667V320c0,23.531,19.135,42.667,42.667,42.667h235.207\n\t\t\t\tc5.414,59.711,55.695,106.667,116.793,106.667C459.365,469.333,512,416.698,512,352C512,315.643,495.376,283.1,469.333,261.561z\n\t\t\t\t M21.333,85.333C21.333,73.573,30.906,64,42.667,64h384C438.427,64,448,73.573,448,85.333v85.333\n\t\t\t\tc0,11.76-9.573,21.333-21.333,21.333h-384c-11.76,0-21.333-9.573-21.333-21.333V85.333z M42.667,341.333\n\t\t\t\tc-11.76,0-21.333-9.573-21.333-21.333v-85.333c0-11.76,9.573-21.333,21.333-21.333h384c11.76,0,21.333,9.573,21.333,21.333\n\t\t\t\tv12.953c-16.023-8.22-34.121-12.953-53.333-12.953c-61.098,0-111.379,46.956-116.793,106.667H42.667z M394.667,448\n\t\t\t\tc-52.938,0-96-43.063-96-96s43.063-96,96-96s96,43.063,96,96S447.604,448,394.667,448z"}}),e("path",{attrs:{d:"M368.583,339.542c4.906-3.271,6.229-9.885,2.958-14.792c-3.271-4.917-9.896-6.229-14.792-2.958l-9.906,6.604\n\t\t\t\tc8.729-17.604,26.885-29.729,47.823-29.729c17.75,0,34.281,8.792,44.24,23.521c3.281,4.875,9.938,6.177,14.802,2.865\n\t\t\t\tc4.885-3.292,6.167-9.927,2.865-14.802c-13.917-20.615-37.063-32.917-61.906-32.917C353.5,277.333,320,310.833,320,352\n\t\t\t\tc0,3.938,2.167,7.552,5.635,9.406c1.573,0.844,3.302,1.26,5.031,1.26c2.073,0,4.135-0.604,5.917-1.792L368.583,339.542z"}}),e("path",{attrs:{d:"M463.698,342.594c-3.469-1.854-7.698-1.646-10.948,0.531l-32,21.333c-4.906,3.271-6.229,9.885-2.958,14.792\n\t\t\t\tc3.25,4.896,9.865,6.198,14.792,2.958l9.906-6.604c-8.729,17.604-26.885,29.729-47.823,29.729\n\t\t\t\tc-17.75,0-34.281-8.792-44.24-23.521c-3.292-4.885-9.948-6.167-14.802-2.865c-4.885,3.292-6.167,9.927-2.865,14.802\n\t\t\t\tc13.917,20.615,37.063,32.917,61.906,32.917c41.167,0,74.667-33.5,74.667-74.667\n\t\t\t\tC469.333,348.063,467.167,344.448,463.698,342.594z"}})])])]),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.checkTemplateTargetUrl(a.url,a.type)?t._e():e("Tooltip",{attrs:{content:t.$t("Введён нестандартный URL точки рестриминга."),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),e("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),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
1),"facebook"===a.type?e("div",{staticClass:"important text-regular margin-top"},[e("span",{staticClass:"bold"},[t._v(t._s(t.$t("Важно: ")))]),e("span",[t._v(t._s(t.$t("используйте постоянный ключ трансляции.")))])]):t._e(),e("div",{staticClass:"s520"},[t.$v.targets.$each[s].$error?e("div",{staticClass:"has-error"},[t.$v.targets.$each[s].url.$error?e("span",{staticClass:"error"},[t._v(t._s(t.$t("Введите валидный URL точки рестриминга.")))]):t._e(),t.$v.targets.$each[s].key.$error?e("span",{staticClass:"error"},[t._v(t._s(t.$t("Введите валидный ключ точки рестриминга.")))]):t._e()]):t._e()]),t.isSrtTargetType(a)?[e("div",{directives:[{name:"show",rawName:"v-show",value:a.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите пароль точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-passphrase",attrs:{placeholder:"Passphrase"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.passphrase,callback:function(e){t.$set(a,"passphrase",e)},expression:"target.passphrase"}})],1)])])]:[e("div",{directives:[{name:"show",rawName:"v-show",value:a.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите логин и пароль точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-auth",attrs:{placeholder:"Login"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.login,callback:function(e){t.$set(a,"login",e)},expression:"target.login"}}),e("textbox",{staticClass:"target-auth",attrs:{placeholder:"Password"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.password,callback:function(e){t.$set(a,"password",e)},expression:"target.password"}})],1)])]),e("div",{directives:[{name:"show",rawName:"v-show",value:a.showBackup,expression:"target.showBackup"}]},[e("div",{staticClass:"target-options margin-bottom"},[e("div",{staticClass:"text-extralight margin-top margin-bottom"},[t._v(t._s(t.$t("Укажите резервный URL для точки рестриминга.")))]),e("div",{staticClass:"flex align-center gap-2x"},[e("textbox",{staticClass:"target-backup-url",attrs:{placeholder:"rtmp://backup.domain.com/app"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.backup.url,callback:function(e){t.$set(a.backup,"url",e)},expression:"target.backup.url"}}),t.checkTemplateTargetUrl(a.backup.url,a.type)?t._e():e("Tooltip",{attrs:{content:t.$t("Введён нестандартный резервный URL для точки рестриминга."),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),e("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),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)]),e("div",{staticClass:"s520 margin-bottom"},[t.$v.targets.$each[s].backup.$error?e("div",{staticClass:"has-error"},[t.$v.targets.$each[s].backup.url.targetUrl?t._e():e("span",{staticClass:"error"},[t._v(t._s(t.$t("Введите валидный резервный URL.")))])]):t._e()])]),e("div",{directives:[{name:"show",rawName:"v-show",value:a.showBackup&&a.showOptions,expression:"target.showBackup && target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите логин и пароль резервной точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-backup-auth",attrs:{placeholder:"Login"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.backup.login,callback:function(e){t.$set(a.backup,"login",e)},expression:"target.backup.login"}}),e("textbox",{staticClass:"target-backup-auth",attrs:{placeholder:"Password"},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.backup.password,callback:function(e){t.$set(a.backup,"password",e)},expression:"target.backup.password"}})],1)])],e("div",{directives:[{name:"show",rawName:"v-show",value:a.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите временные интервалы для рестриминга по расписанию.")))]),t._l(t.targets[s].schedule,(function(a,i){return e("div",{key:i,staticClass:"schedule"},[e("div",{staticClass:"flex align-center gap-2x"},[e("div",{staticClass:"time-pickers"},[e("DateTimePicker",{attrs:{type:"datetimerange"},model:{value:t.targets[s].schedule[i],callback:function(e){t.$set(t.targets[s].schedule,i,e)},expression:"targets[i].schedule[j]"}})],1),0===i&&t.getScheduleCount(s)<5?e("div",{staticClass:"add",on:{click:function(e){return t.addSchedule(s)}}},[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(),i?e("div",{staticClass:"remove",on:{click:function(e){return t.removeSchedule(s,i)}}},[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()])])})),e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))])],2),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите комментарий к точке рестриминга.")))]),e("textbox",{staticClass:"target-comment",attrs:{rows:"3",placeholder:t.$t("Комментарий"),multiline:!0},on:{blur:function(e){return t.$v.targets.$each[s].$touch()}},model:{value:a.comment,callback:function(e){t.$set(a,"comment",e)},expression:"target.comment"}})],1)]),e("div",{staticClass:"s520"},[t.$v.targets.$each[s].comment.$error?e("div",{staticClass:"has-error"},[e("span",{staticClass:"error"},[t._v(t._s(t.$t("Комментарий должен быть меньше 100 символов.")))])]):t._e()])],2)}))],2),t.transcodedStreams?e("div",{staticClass:"margin-top-2x"},[e("label",{staticClass:"margin-bottom",attrs:{for:"target"}},[t._v(t._s(t.$t("Точки рестриминга транскодированных потоков")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите URL и ключи точек, на которые необходимо рестримить транскодированные потоки.")))]),t._l(t.transcodeResolutions,(function(a,s){return e("div",{key:s,staticClass:"resolutions margin-bottom"},[e("div",{staticClass:"resolution-label"},[t._v(t._s(`${t.$t("Качество ")} ${a}:`))]),t._l(t.transcodeTargets[a],(function(s,i){return t.transcodeTargets[a]?e("div",{key:i,staticClass:"target margin-bottom"},[e("div",{staticClass:"type"},[e("select",{directives:[{name:"model",rawName:"v-model",value:s.type,expression:"target.type"}],staticClass:"targetType",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(s,"type",e.target.multiple?a:a[0])}}},t._l(t.targetTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),t.isSrtTargetType(s)?[e("textbox",{staticClass:"target-srt-url",attrs:{placeholder:"srt://0.0.0.0:10110"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.url,callback:function(e){t.$set(s,"url",e)},expression:"target.url"}})]:[e("textbox",{staticClass:"target-url",attrs:{placeholder:"rtmp://domain.com/app"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.url,callback:function(e){t.$set(s,"url",e)},expression:"target.url"}}),e("textbox",{staticClass:"target-key",attrs:{placeholder:"stream_key"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.key,callback:function(e){t.$set(s,"key",e)},expression:"target.key"}})],0===i&&t.getTranscodeTargetCount(a)<50?e("div",{staticClass:"add",on:{click:function(e){return t.addTranscodeTarget(a)}}},[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(),i?e("div",{staticClass:"remove",on:{click:function(e){return t.removeTranscodeTarget(a,i)}}},[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(),e("Tooltip",{attrs:{content:t.$t(t.settingsHint),placement:"top"}},[e("div",{staticClass:"settings",on:{click:function(t){s.showOptions=!s.showOptions}}},[e("svg",{staticClass:"settings-icon",staticStyle:{"enable-background":"new 0 0 478.703 478.703"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 478.703 478.703","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M454.2,189.101l-33.6-5.7c-3.5-11.3-8-22.2-13.5-32.6l19.8-27.7c8.4-11.8,7.1-27.9-3.2-38.1l-29.8-29.8\n\t\t\tc-5.6-5.6-13-8.7-20.9-8.7c-6.2,0-12.1,1.9-17.1,5.5l-27.8,19.8c-10.8-5.7-22.1-10.4-33.8-13.9l-5.6-33.2\n\t\t\tc-2.4-14.3-14.7-24.7-29.2-24.7h-42.1c-14.5,0-26.8,10.4-29.2,24.7l-5.8,34c-11.2,3.5-22.1,8.1-32.5,13.7l-27.5-19.8\n\t\t\tc-5-3.6-11-5.5-17.2-5.5c-7.9,0-15.4,3.1-20.9,8.7l-29.9,29.8c-10.2,10.2-11.6,26.3-3.2,38.1l20,28.1\n\t\t\tc-5.5,10.5-9.9,21.4-13.3,32.7l-33.2,5.6c-14.3,2.4-24.7,14.7-24.7,29.2v42.1c0,14.5,10.4,26.8,24.7,29.2l34,5.8\n\t\t\tc3.5,11.2,8.1,22.1,13.7,32.5l-19.7,27.4c-8.4,11.8-7.1,27.9,3.2,38.1l29.8,29.8c5.6,5.6,13,8.7,20.9,8.7c6.2,0,12.1-1.9,17.1-5.5\n\t\t\tl28.1-20c10.1,5.3,20.7,9.6,31.6,13l5.6,33.6c2.4,14.3,14.7,24.7,29.2,24.7h42.2c14.5,0,26.8-10.4,29.2-24.7l5.7-33.6\n\t\t\tc11.3-3.5,22.2-8,32.6-13.5l27.7,19.8c5,3.6,11,5.5,17.2,5.5l0,0c7.9,0,15.3-3.1,20.9-8.7l29.8-29.8c10.2-10.2,11.6-26.3,3.2-38.1\n\t\t\tl-19.8-27.8c5.5-10.5,10.1-21.4,13.5-32.6l33.6-5.6c14.3-2.4,24.7-14.7,24.7-29.2v-42.1\n\t\t\tC478.9,203.801,468.5,191.501,454.2,189.101z M451.9,260.401c0,1.3-0.9,2.4-2.2,2.6l-42,7c-5.3,0.9-9.5,4.8-10.8,9.9\n\t\t\tc-3.8,14.7-9.6,28.8-17.4,41.9c-2.7,4.6-2.5,10.3,0.6,14.7l24.7,34.8c0.7,1,0.6,2.5-0.3,3.4l-29.8,29.8c-0.7,0.7-1.4,0.8-1.9,0.8\n\t\t\tc-0.6,0-1.1-0.2-1.5-0.5l-34.7-24.7c-4.3-3.1-10.1-3.3-14.7-0.6c-13.1,7.8-27.2,13.6-41.9,17.4c-5.2,1.3-9.1,5.6-9.9,10.8l-7.1,42\n\t\t\tc-0.2,1.3-1.3,2.2-2.6,2.2h-42.1c-1.3,0-2.4-0.9-2.6-2.2l-7-42c-0.9-5.3-4.8-9.5-9.9-10.8c-14.3-3.7-28.1-9.4-41-16.8\n\t\t\tc-2.1-1.2-4.5-1.8-6.8-1.8c-2.7,0-5.5,0.8-7.8,2.5l-35,24.9c-0.5,0.3-1,0.5-1.5,0.5c-0.4,0-1.2-0.1-1.9-0.8l-29.8-29.8\n\t\t\tc-0.9-0.9-1-2.3-0.3-3.4l24.6-34.5c3.1-4.4,3.3-10.2,0.6-14.8c-7.8-13-13.8-27.1-17.6-41.8c-1.4-5.1-5.6-9-10.8-9.9l-42.3-7.2\n\t\t\tc-1.3-0.2-2.2-1.3-2.2-2.6v-42.1c0-1.3,0.9-2.4,2.2-2.6l41.7-7c5.3-0.9,9.6-4.8,10.9-10c3.7-14.7,9.4-28.9,17.1-42\n\t\t\tc2.7-4.6,2.4-10.3-0.7-14.6l-24.9-35c-0.7-1-0.6-2.5,0.3-3.4l29.8-29.8c0.7-0.7,1.4-0.8,1.9-0.8c0.6,0,1.1,0.2,1.5,0.5l34.5,24.6\n\t\t\tc4.4,3.1,10.2,3.3,14.8,0.6c13-7.8,27.1-13.8,41.8-17.6c5.1-1.4,9-5.6,9.9-10.8l7.2-42.3c0.2-1.3,1.3-2.2,2.6-2.2h42.1\n\t\t\tc1.3,0,2.4,0.9,2.6,2.2l7,41.7c0.9,5.3,4.8,9.6,10,10.9c15.1,3.8,29.5,9.7,42.9,17.6c4.6,2.7,10.3,2.5,14.7-0.6l34.5-24.8\n\t\t\tc0.5-0.3,1-0.5,1.5-0.5c0.4,0,1.2,0.1,1.9,0.8l29.8,29.8c0.9,0.9,1,2.3,0.3,3.4l-24.7,34.7c-3.1,4.3-3.3,10.1-0.6,14.7\n\t\t\tc7.8,13.1,13.6,27.2,17.4,41.9c1.3,5.2,5.6,9.1,10.8,9.9l42,7.1c1.3,0.2,2.2,1.3,2.2,2.6v42.1H451.9z"}}),e("path",{attrs:{d:"M239.4,136.001c-57,0-103.3,46.3-103.3,103.3s46.3,103.3,103.3,103.3s103.3-46.3,103.3-103.3S296.4,136.001,239.4,136.001\n\t\t\tz M239.4,315.601c-42.1,0-76.3-34.2-76.3-76.3s34.2-76.3,76.3-76.3s76.3,34.2,76.3,76.3S281.5,315.601,239.4,315.601z"}})])]),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.isSrtTargetType(s)?t._e():e("Tooltip",{attrs:{content:t.$t(t.backupHint),placement:"top"}},[e("div",{staticClass:"backup",on:{click:function(t){s.showBackup=!s.showBackup}}},[e("svg",{staticClass:"backup-icon",staticStyle:{"enable-background":"new 0 0 512 512"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","xml:space":"preserve"}},[e("g",[e("g",[e("g",[e("path",{attrs:{d:"M74.667,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667\n\t\t\t\tC68.771,85.333,64,90.104,64,96v64C64,165.896,68.771,170.667,74.667,170.667z"}}
1),e("path",{attrs:{d:"M117.333,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667\n\t\t\t\tc-5.896,0-10.667,4.771-10.667,10.667v64C106.667,165.896,111.438,170.667,117.333,170.667z"}}),e("path",{attrs:{d:"M160,170.667c5.896,0,10.667-4.771,10.667-10.667V96c0-5.896-4.771-10.667-10.667-10.667S149.333,90.104,149.333,96v64\n\t\t\t\tC149.333,165.896,154.104,170.667,160,170.667z"}}),e("circle",{attrs:{cx:"384",cy:"128",r:"21.333"}}),e("circle",{attrs:{cx:"320",cy:"128",r:"21.333"}}),e("path",{attrs:{d:"M74.667,234.667c-5.896,0-10.667,4.771-10.667,10.667v64C64,315.229,68.771,320,74.667,320\n\t\t\t\tc5.896,0,10.667-4.771,10.667-10.667v-64C85.333,239.438,80.563,234.667,74.667,234.667z"}}),e("path",{attrs:{d:"M117.333,234.667c-5.896,0-10.667,4.771-10.667,10.667v64c0,5.896,4.771,10.667,10.667,10.667\n\t\t\t\tc5.896,0,10.667-4.771,10.667-10.667v-64C128,239.438,123.229,234.667,117.333,234.667z"}}),e("path",{attrs:{d:"M160,234.667c-5.896,0-10.667,4.771-10.667,10.667v64c0,5.896,4.771,10.667,10.667,10.667s10.667-4.771,10.667-10.667\n\t\t\t\tv-64C170.667,239.438,165.896,234.667,160,234.667z"}}),e("path",{attrs:{d:"M469.333,261.561v-26.895c0-12.805-5.784-24.174-14.741-32c8.957-7.826,14.741-19.195,14.741-32V85.333\n\t\t\t\tc0-23.531-19.135-42.667-42.667-42.667h-384C19.135,42.667,0,61.802,0,85.333v85.333c0,12.805,5.784,24.174,14.741,32\n\t\t\t\tC5.784,210.492,0,221.862,0,234.667V320c0,23.531,19.135,42.667,42.667,42.667h235.207\n\t\t\t\tc5.414,59.711,55.695,106.667,116.793,106.667C459.365,469.333,512,416.698,512,352C512,315.643,495.376,283.1,469.333,261.561z\n\t\t\t\t M21.333,85.333C21.333,73.573,30.906,64,42.667,64h384C438.427,64,448,73.573,448,85.333v85.333\n\t\t\t\tc0,11.76-9.573,21.333-21.333,21.333h-384c-11.76,0-21.333-9.573-21.333-21.333V85.333z M42.667,341.333\n\t\t\t\tc-11.76,0-21.333-9.573-21.333-21.333v-85.333c0-11.76,9.573-21.333,21.333-21.333h384c11.76,0,21.333,9.573,21.333,21.333\n\t\t\t\tv12.953c-16.023-8.22-34.121-12.953-53.333-12.953c-61.098,0-111.379,46.956-116.793,106.667H42.667z M394.667,448\n\t\t\t\tc-52.938,0-96-43.063-96-96s43.063-96,96-96s96,43.063,96,96S447.604,448,394.667,448z"}}),e("path",{attrs:{d:"M368.583,339.542c4.906-3.271,6.229-9.885,2.958-14.792c-3.271-4.917-9.896-6.229-14.792-2.958l-9.906,6.604\n\t\t\t\tc8.729-17.604,26.885-29.729,47.823-29.729c17.75,0,34.281,8.792,44.24,23.521c3.281,4.875,9.938,6.177,14.802,2.865\n\t\t\t\tc4.885-3.292,6.167-9.927,2.865-14.802c-13.917-20.615-37.063-32.917-61.906-32.917C353.5,277.333,320,310.833,320,352\n\t\t\t\tc0,3.938,2.167,7.552,5.635,9.406c1.573,0.844,3.302,1.26,5.031,1.26c2.073,0,4.135-0.604,5.917-1.792L368.583,339.542z"}}),e("path",{attrs:{d:"M463.698,342.594c-3.469-1.854-7.698-1.646-10.948,0.531l-32,21.333c-4.906,3.271-6.229,9.885-2.958,14.792\n\t\t\t\tc3.25,4.896,9.865,6.198,14.792,2.958l9.906-6.604c-8.729,17.604-26.885,29.729-47.823,29.729\n\t\t\t\tc-17.75,0-34.281-8.792-44.24-23.521c-3.292-4.885-9.948-6.167-14.802-2.865c-4.885,3.292-6.167,9.927-2.865,14.802\n\t\t\t\tc13.917,20.615,37.063,32.917,61.906,32.917c41.167,0,74.667-33.5,74.667-74.667\n\t\t\t\tC469.333,348.063,467.167,344.448,463.698,342.594z"}})])])]),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.checkTemplateTargetUrl(s.url,s.type)?t._e():e("Tooltip",{attrs:{content:t.$t("Введён нестандартный URL точки рестриминга."),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),e("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),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")])])]),"facebook"===s.type?e("div",{staticClass:"important text-regular"},[e("span",{staticClass:"bold"},[t._v(t._s(t.$t("Важно: ")))]),e("span",[t._v(t._s(t.$t("используйте постоянный ключ трансляции.")))])]):t._e(),e("div",{staticClass:"s520"},[t.$v.transcodeTargets[a].$each[i].$error?e("div",{staticClass:"has-error"},[t.$v.transcodeTargets[a].$each[i].url.$error?e("span",{staticClass:"error"},[t._v(t._s(t.$t("Введите валидный URL точки рестриминга.")))]):t._e(),t.$v.transcodeTargets[a].$each[i].key.$error?e("span",{staticClass:"error"},[t._v(t._s(t.$t("Введите валидный ключ точки рестриминга.")))]):t._e()]):t._e()]),t.isSrtTargetType(s)?[e("div",{directives:[{name:"show",rawName:"v-show",value:s.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите пароль точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-passphrase",attrs:{placeholder:"Passphrase"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.passphrase,callback:function(e){t.$set(s,"passphrase",e)},expression:"target.passphrase"}})],1)])])]:[e("div",{directives:[{name:"show",rawName:"v-show",value:s.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите логин и пароль точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-auth",attrs:{placeholder:"Login"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.login,callback:function(e){t.$set(s,"login",e)},expression:"target.login"}}),e("textbox",{staticClass:"target-auth",attrs:{placeholder:"Password"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.password,callback:function(e){t.$set(s,"password",e)},expression:"target.password"}})],1)])]),e("div",{directives:[{name:"show",rawName:"v-show",value:s.showBackup,expression:"target.showBackup"}]},[e("div",{staticClass:"target-options margin-bottom"},[e("div",{staticClass:"text-extralight margin-top margin-bottom"},[t._v(t._s(t.$t("Укажите резервный URL для точки рестриминга.")))]),e("div",{staticClass:"flex align-center gap-2x"},[e("textbox",{staticClass:"target-backup-url",attrs:{placeholder:"rtmp://backup.domain.com/app"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.backup.url,callback:function(e){t.$set(s.backup,"url",e)},expression:"target.backup.url"}}
1),t.checkTemplateTargetUrl(s.backup.url,s.type)?t._e():e("Tooltip",{attrs:{content:t.$t("Введён нестандартный резервный URL для точки рестриминга."),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),e("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),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)]),e("div",{staticClass:"s520 margin-bottom"},[t.$v.transcodeTargets[a].$each[i].backup.$error?e("div",{staticClass:"has-error"},[t.$v.transcodeTargets[a].$each[i].backup.url.targetUrl?t._e():e("span",{staticClass:"error"},[t._v(t._s(t.$t("Введите валидный резервный URL.")))])]):t._e()])]),e("div",{directives:[{name:"show",rawName:"v-show",value:s.showBackup&&s.showOptions,expression:"target.showBackup && target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"auth margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите логин и пароль резервной точки рестриминга, если требуется.")))]),e("textbox",{staticClass:"target-backup-auth",attrs:{placeholder:"Login"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.backup.login,callback:function(e){t.$set(s.backup,"login",e)},expression:"target.backup.login"}}),e("textbox",{staticClass:"target-backup-auth",attrs:{placeholder:"Password"},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.backup.password,callback:function(e){t.$set(s.backup,"password",e)},expression:"target.backup.password"}})],1)])],e("div",{directives:[{name:"show",rawName:"v-show",value:s.showOptions,expression:"target.showOptions"}],staticClass:"target-options"},[e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите временные интервалы для рестриминга по расписанию.")))]),t._l(t.transcodeTargets[a][i].schedule,(function(s,r){return e("div",{key:r,staticClass:"schedule"},[e("div",{staticClass:"flex align-center gap-2x"},[e("div",{staticClass:"time-pickers"},[e("DateTimePicker",{attrs:{type:"datetimerange"},model:{value:t.transcodeTargets[a][i].schedule[r],callback:function(e){t.$set(t.transcodeTargets[a][i].schedule,r,e)},expression:"transcodeTargets[resolution][i].schedule[j]"}})],1),0===r&&t.getTranscodeScheduleCount(a,i)<5?e("div",{staticClass:"add",on:{click:function(e){return t.addTranscodeSchedule(a,i)}}},[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(),r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeTranscodeSchedule(a,i,r)}}},[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()])])})),e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))])],2),e("div",{staticClass:"margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите комментарий к точке рестриминга.")))]),e("textbox",{staticClass:"target-comment",attrs:{multiline:!0,placeholder:t.$t("Комментарий")},on:{blur:function(e){return t.$v.transcodeTargets[a].$each[i].$touch()}},model:{value:s.comment,callback:function(e){t.$set(s,"comment",e)},expression:"target.comment"}})],1)]),e("div",{staticClass:"s520"},[t.$v.transcodeTargets[a].$each[i].comment.$error?e("div",{staticClass:"has-error"},[e("span",{staticClass:"error"},[t._v(t._s(t.$t("Комментарий должен быть меньше 100 символов.")))])]):t._e()])],2):t._e()}))],2)}))],2):t._e()])]):e("div",{staticClass:"content"},[e("div",{staticClass:"text-regular margin-bottom"},[t._v(t._s(t.$t("Для создания ресурса рестриминга необходимо иметь хотя бы один ресурс публикации.")))]),e("div",{staticClass:"flex align-center gap-2x"},[e("btn",{on:{click:t.newRtmpPublishResource}},[t._v(t._s(t.$t("Создать RTMP/RTSP-publish ресурс")))]),e("btn",{on:{click:t.newSrtPublishResource}},[t._v(t._s(t.$t("Создать SRT-publish ресурс")))])],1)]),t.isLoading||!this.resource&&0===this.liveResources.length?t._e():e("div",{staticClass:"content-block last"},[t.saving?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",[t.active?e("btn",{attrs:{disabled:t.$v.$invalid},on:{click:t.save}},[t._v(t._s(t.$t(t.buttonText)))]):e("btn",{attrs:{disabled:t.$v.$invalid},on:{click:t.activate}},[t._v(t._s(t.$t(t.buttonText)))])],1)])])}),[],!1,null,"03933e90",null).exports},props:{buttonText:{type:String},saving:{type:Boolean,default:!1},resource:{type:Object},edit:{type:Boolean,default:!1}},data(){return{type:"restream"}},methods:{save(t,e){this.$emit("save",this.type,t,e)}}},De=Le,Ee=(0,f.A)(De,(function(){var t=this,e=t._self._c;return this.$user.isCDN1()?e("FormRestreamCdn1",{attrs:{buttonText:t.buttonText,saving:t.saving,resource:t.resource,edit:t.edit},on:{save:t.save}}):e("FormRestreamCdn2",{attrs:{buttonText:t.buttonText,saving:t.saving,resource:t.resource,edit:t.edit},on:{save:t.save}})}),[],!1,null,null,null).exports;let ze={"got dublicate targets":"Указано несколько одинаковых точек рестриминга.","field schedule - stop should be more than a start":"Окончание рестриминга не может быть раньше начала.","field name - unsatisfactory format":"Некорректное имя ресурса.","field restreams - unsatisfactory format":"Некорректный формат параметра restreams.","field source - unsatisfactory format":"Некорректный формат параметра source.","field transcoded - unsatisfactory format":"Некорректный формат параметра transcoded.","field target_type - unsatisfactory format":"Некорректный формат параметра target_type.","field target_url - unsatisfactory format":"Некорректный формат параметра target_url.","field target_key - unsatisfactory format":"Некорректный формат параметра target_key.","fields login, password - unsatisfactory format":"Некорректный формат параметров login, password.","field schedule - unsatisfactory format":"Некорректный формат параметра schedule.","field backup - unsatisfactory format":"Некорректный формат параметра backup.","Client not found":"Клиент не найден.","resource_id not found":"Ресурс с таким идентификатором не найден.","failed to validate sources":"Ошибка при валидации исходных потоков."};function Ne(t){if(!t.success)return"message"in t?t.message in ze?ze[t.message]:t.message:"Error"}var Ie=a(84743),Oe=a.n(Ie);const Ue={0:"active",1:"starting",2:"not found",3:"not published",4:"error",5:"no status changes",6:"unknown",7:"stopped"}
1,Ve={active:"ОК",starting:"Рестриминг запускается","not found":"Поток не найден","not published":"Поток не опубликован",error:"Ошибка","no status changes":"Изменений статусов рестриминга не найдено",unknown:"Неизвестная ошибка",stopped:"Рестриминг остановлен"};function Be(t){return Ve[Ue[t]]??""}var Fe=a(4311),He=a(50104);function je(){return{getStreamNameFromUrl:function(t){if(!t)return"";try{const e=new URL(t).pathname.split("/").filter(Boolean);return n.A.isCDN1()?e.join("/"):e.at(-1)||""}catch(t){return""}}}}var qe=a(62531),Ge={__name:"RestreamStatusIndicatorStatusCell",props:{cellValue:{type:Object,required:!0}},setup(t){const e=t,a={green:["active"],red:["not found","error"],orange:["starting"],purple:["not published","stopped"],yellow:["no status changes","unknown"]},i=(0,s.computed)((()=>Ue[e.cellValue.code])),r=(0,s.computed)((()=>Object.keys(a).find((t=>a[t].includes(i.value))))),n=(0,s.computed)((()=>({green:"background-green",red:"background-red",orange:"background-orange",purple:"background-purple",yellow:"background-yellow"}[r.value]??"")));return{__sfc:!0,STATUS:a,props:e,statusCodeLabel:i,labelColor:r,circleClass:n,Tooltip:qe.A}}},Ye=(0,f.A)(Ge,(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e(a.Tooltip,{attrs:{content:t.cellValue.description,"open-delay":500,placement:"top"}},[e("div",{staticClass:"restream-status-indicator-status-cell circle",class:a.circleClass})])}),[],!1,null,null,null).exports,We={__name:"RestreamStatusTableComponent",props:{statusesData:{type:Array,default:()=>[]}},setup(t){const e=t,{getStreamNameFromUrl:a}=je(),i=(0,s.computed)((()=>[{key:"statusCode",text:" ",controlType:He.W.custom,customComponent:Ye,sortable:!1,width:"20px"},{key:"source",text:$t("Исходный поток"),controlType:He.W.plainText,sortable:!1},{key:"targetUrl",text:$t("URL"),controlType:He.W.plainText,sortable:!1},n.value&&{key:"targetKey",text:$t("Ключ"),controlType:He.W.plainText,sortable:!1},{key:"statusDescriptions",text:$t("Статус"),controlType:He.W.plainText,sortable:!1},{key:"targetComment",text:$t("Комментарий"),controlType:He.W.plainText,sortable:!1}].filter(Boolean))),r=(0,s.computed)((()=>e.statusesData.map((t=>({statusCode:t.status,source:a(t.source),targetUrl:t.target_url,targetKey:t.target_key??"",statusDescriptions:Be(t.status.code),targetComment:t.target_comment}))))),n=(0,s.computed)((()=>!!e.statusesData.some((t=>Object.prototype.hasOwnProperty.call(t,"target_key")))));return{__sfc:!0,props:e,getStreamNameFromUrl:a,tableHeaders:i,tableRows:r,hasTargetKeysInStatusesData:n,SimpleTable:Fe.A}}},Ze=(0,f.A)(We,(function(){var t=this._self._c,e=this._self._setupProxy;return t("div",{staticClass:"restream-status-table"},[t(e.SimpleTable,{attrs:{headers:e.tableHeaders,rows:e.tableRows,pageSize:e.tableRows.length,pageNumber:1}})],1)}),[],!1,null,null,null).exports,Ke={name:"RestreamStatus",props:{resource:Object},setup(){const{getStreamNameFromUrl:t}=je();return{getStreamNameFromUrl:t}},components:{Textbox:p.A,RestreamStatusTableComponent:Ze},data(){return{statusesData:[],statusTimer:"",historyTimer:"",lastStatusUpdated:void 0,lastHistoryUpdated:void 0,selectedRtmpResource:void 0,historyData:void 0,historySource:void 0,historyTargetUrl:void 0,historyTargetKey:void 0,historySourceTargetPairs:{}}},created(){let t=this.firstRestreamSource,e=this.firstRestreamTarget.url,a=this.firstRestreamTarget.key,i={};a?s.default.set(i,e,Array(a)):s.default.set(i,e,[]),s.default.set(this.historySourceTargetPairs,t,i),this.historySource=t,this.startTimer(),this.$user.isCDN1()||this.setSelectedRtmpResource()},beforeDestroy(){this.stopTimer()},methods:{startTimer(){this.getRestreamStatus(),this.setHistoryData(),this.statusTimer=window.setInterval(this.getRestreamStatus,5e3),this.historyTimer=window.setInterval(this.setHistoryData,3e4)},stopTimer(){window.clearInterval(this.statusTimer),window.clearInterval(this.historyTimer)},getRestreamStatus(){let t={name:this.$user.accountName},e={resource_id:this.resource.resource_id};this.$api.getRestreamStatus(t,e).then((t=>{this.statusesData=t.data.data[0].status,this.lastStatusUpdated=Oe()().tz(this.$user.personTimezone).format(this.timeFormat)})).catch((()=>{}))},setSelectedRtmpResource(){let t=this.getStreamNameFromUrl(this.firstRestreamSource),e={accountName:this.$user.accountName,type:"live"};this.$api.getResources(e).then((e=>{e.data.forEach(((e,a)=>
1{"RTMP-publish"===e.type&&Object.values(e.streams).forEach((a=>{a.stream_name===t&&(this.selectedRtmpResource=e)}))}))}))},setHistoryData(){let t=new Date(Date.now()),e=new Date(t);e.setHours(e.getHours()-24);let a={name:this.$user.accountName,id:this.resource.resource_id,start:`${e.toISOString().split(".")[0]}Z`,end:`${t.toISOString().split(".")[0]}Z`};this.$api.getRestreamResourceStatusHistory(a).then((t=>{let e=t.data.data;this.historySourceTargetPairs={},e.forEach((t=>{let e={};Object.keys(t.history).forEach((a=>{Array.isArray(t.history[a])?s.default.set(e,a,[]):s.default.set(e,a,Object.keys(t.history[a]))})),s.default.set(this.historySourceTargetPairs,t.source,e)})),this.historyData=[],this.historyData.push(...e),this.lastHistoryUpdated=Oe()().tz(this.$user.personTimezone).format(this.timeFormat)})).catch((()=>{}))}},computed:{timeFormat(){let t="YYYY-MM-DD hh:mm:ss A";return"ru_RU"===this.$i18n.locale&&(t="YYYY-MM-DD HH:mm:ss"),t},sourceRtmpUrl(){let t="//playercdn.cdnvideo.ru/aloha/players/basic_player2.html";this.$branding.basePlayerLink&&(t=this.$branding.basePlayerLink.replace("http://","//").replace("https://","//"));let e=this.$user.accountUtoken,a="";if(this.selectedRtmpResource){let t=this.selectedRtmpResource.settings["RTMP-publish"];a=`//${t.domain}/${t.application}/${t.master_stream}/playlist.m3u8`}else{if(!this.$user.isCDN1()||!this.firstRestreamSource.endsWith("/playlist.m3u8"))return a;a=this.firstRestreamSource.split(":").slice(1).join(":")}return`${t}?account=${e}&source=${a}&bkgd=${this.$branding.mainInterface.background.replace("#","%23")}`},firstRestreamSource(){return this.resource.data.restreams[0].source},firstRestreamTarget(){return{url:this.resource.data.restreams[0].target_url,key:this.resource.data.restreams[0].target_key}},historyStrings(){let t=[];return this.historyData&&this.historyData.forEach((e=>{if(e.source===this.historySource){let a=[];const s=e.history[this.historyTargetUrl];a=Array.isArray(s)?s:s[this.historyTargetKey],a.forEach((e=>{t.push(`${this.utcDateTimeToPersonTz(1e3*e.time,this.timeFormat)} - ${$t(Be(e.code))}`)}))}})),t.join("\n")},historySourceTargetHasTargetKeys(){let t=this.historySourceTargetPairs[this.historySource][this.historyTargetUrl];return!!t&&t.length}},watch:{historySource(){this.historyTargetUrl=Object.keys(this.historySourceTargetPairs[this.historySource])[0]},historyTargetUrl(){this.historyTargetKey=this.historySourceTargetPairs[this.historySource][this.historyTargetUrl][0]}}},Je=(0,f.A)(Ke,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"restream-status-wrapper"},[e("div",{staticClass:"s520i"},[e("div",{staticClass:"restream-status margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Текущий статус рестриминга")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Ниже представлены исходные потоки, для которых заведен рестриминг, URL, ключи точек рестриминга и статус на текущий момент."))+" "+t._s(t.$t("Статус обновляется каждые 5 секунд.")))]),t.lastStatusUpdated?e("div",{staticClass:"text-extralight margin-bottom-3x"},[t._v(t._s(t.$t("Последнее обновление: "))+" "+t._s(t.lastStatusUpdated))]):t._e(),e("RestreamStatusTableComponent",{attrs:{statusesData:t.statusesData}})],1),t.sourceRtmpUrl?e("div",{staticClass:"player margin-bottom-3x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Плеер с исходным потоком")))]),e("iframe",{staticClass:"corners-rounded",staticStyle:{overflow:"hidden"},attrs:{src:t.sourceRtmpUrl,frameborder:"0",scrolling:"no",allowfullscreen:""}})]):t._e(),e("details",{staticClass:"history margin-bottom-2x"},[e("summary",{staticClass:"margin-bottom text-regular"},[t._v(t._s(t.$t("История изменений статусов")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("История изменений отображается за последние 24 часа и обновляется каждые 30 секунд.")))]),t.lastHistoryUpdated?e("div",{staticClass:"text-extralight margin-bottom-2x"},[t._v(t._s(t.$t("Последнее обновление: "))+" "+t._s(t.lastHistoryUpdated))]):t._e(),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите исходный поток")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.historySource,expression:"historySource"}],staticClass:"margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.historySource=e.target.multiple?a:a[0]}}},t._l(Object.keys(t.historySourceTargetPairs),(function(a,s){return e("option",{domProps:{value:a,textContent:t._s(t.getStreamNameFromUrl(a))}})})),0),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите URL точки рестриминга")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.historyTargetUrl,expression:"historyTargetUrl"}],staticClass:"margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.historyTargetUrl=e.target.multiple?a:a[0]}}},t._l(Object.keys(t.historySourceTargetPairs[t.historySource]),(function(a,s){return e("option",{domProps:{value:a,textContent:t._s(a)}})})),0),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите ключ потока")))]),t.historySourceTargetHasTargetKeys?e("select",{directives:[{name:"model",rawName:"v-model",value:t.historyTargetKey,expression:"historyTargetKey"}],staticClass:"margin-bottom-2x",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.historyTargetKey=e.target.multiple?a:a[0]}}},t._l(t.historySourceTargetPairs[t.historySource][t.historyTargetUrl],(function(a,s){return e("option",{domProps:{value:a,textContent:t._s(a)}})})),0):t._e(),e("textbox",{staticClass:"history-data",attrs:{readonly:"",multiline:"",placeholder:t.$t("Название ресурса")},model:{value:t.historyStrings,callback:function(e){t.historyStrings=e},expression:"historyStrings"}})],1)])])}),[],!1,null,"26f3a725",null).exports,Xe=a(70),Qe={name:"ResourceEditRestream",components:{Scrolled:fe.A,Tabs:le.A,RestreamResourceForm:Ee,RestreamStatus:Je,Btn:h.A,ArrowCircleIcon:ce.A,Deactivate:re},props:{id:{required:!0},active:{type:String,default:"true"},target:{type:String}},data(){return{type:"restream",tab:this.target||"edit",resource:void 0,error:!1,timeout:void 0,processing:!1,saving:!1,tabs:[{name:"edit",text:"Настройки ресурса"},{name:"status",text:"Статус"},{name:"deactivate",text:"Деактивация"}]}},created(){this.getResource()},destroyed(){clearTimeout(this.timeout)},methods:{getResource(){let t={name:this.$user.accountName,id:this.id};this.$api.getRestreamResource(t).then((t=>{t&&(this.resource=t.data)}))},switchTab(t){this.tab=t,this.$router.push({params:{target:t}})},save(t,e,a){this.saving=!0;let s=a||"Ресурс сохранён",i={name:this.$user.accountName,id:this.id},r=e;this.$api.updateRestreamResource(i,r).then((t=>{let e=Ne(t.data);e?(e=$t(e).toString(),this.$toast.show({html:(0,Xe.A)(e,this.$i18n.locale),lifetime:7e3})):this.$toast.show({text:s}),this.saving=!1}))},goBack(){this.$router.push({name:"restreaming",params:{target:"restream"}})}}},ta=Qe,ea=(0,f.A)(ta,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"flex column full-height"},[e("div",{staticClass:"grow relative"},[e("div",{staticClass:"edit-restream-wrapper"},[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goBack}},[e("ArrowCircleIcon")],1),"true"===t.active?e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Редактирование ресурса рестриминга")))]):e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Активация ресурса рестриминга")))])],1),t.error?e("div",{staticClass:"content"},[e("p",[t._v(t._s(t.$t("При создании ресурса произошла ошибка Попробуйте ещё раз.")))])]):t.resource&&t.resource.data&&t.resource.data.active?[e("div",{staticClass:"first content-block"},[e("tabs",{attrs:{tab:t.tab,tabs:this.tabs},on:{switchTab:t.switchTab}})],1),e("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",mode:"out-in"}},["edit"===t.tab?e("restream-resource-form",{key:"edit",attrs:{buttonText:"Cохранить",saving:t.saving,resource:t.resource,edit:!0},on:{save:t.save}}):t._e(),"status"===t.tab?e("restream-status",{key:"status",staticClass:"content-block last",attrs:{resource:t.resource,switchTab:t.switchTab}}):t._e(),"deactivate"===t.tab?e("deactivate",{key:"deactivate",staticClass:"content-block last",attrs:{resource:t.resource,saving:t.saving,type:this.t
1ype},on:{save:t.save}}):t._e()],1)]:t.resource?["edit"===t.tab?e("restream-resource-form",{key:"edit",attrs:{buttonText:"Активировать",saving:t.saving,resource:t.resource},on:{save:t.save}}):t._e()]:t._e()],2)])])])}),[],!1,null,null,null).exports,aa={data(){return{ymTargetName:"",saving:!1}},methods:{resource_route(t){return"live"===t?"resource-live":"restream"===t?"streaming-restream":"resource-http"},save(t,e){this.saving=!0,"restream"===t?this.saveRestreamResource(t,e):this.createResource(t,e)},createResource(t,e){let a=this.$user.accountName,s="http"===t?"http":"live",i={accountName:a,type:s},r=e;this.$api.createResource(i,r).then((i=>{this.$user.resourcesByType[t]+=1,this.$toast.show({text:"Ресурс создан."}),this.sendYMTarget(this.ymTargetName);let r={accountName:a,type:s};this.$api.getResources(r).then((t=>{t.data.forEach((function(t){t.name===e.name&&(e.id=t.id)})),e.id?this.$router.push({name:this.resource_route(s),params:{id:e.id,target:"config"}}):this.$message.error({message:$t("При создании ресурса произошла ошибка"),duration:5e3})}))})).catch((()=>{this.$message.error({message:$t("При создании ресурса произошла ошибка"),duration:5e3})})).finally((()=>{this.saving=!1}))},saveRestreamResource(t,e){let a={name:this.$user.accountName};this.$api.createRestreamResource(a,e).then((e=>{let a=Ne(e.data);if(a)a=$t(a).toString(),this.$toast.show({html:(0,Xe.A)(a,this.$i18n.locale),lifetime:7e3});else{this.$user.resourcesByType[t]+=1;let a="Ресурс создан.",s=4e3;this.$toast.show({text:a,lifetime:s}),this.sendYMTarget(this.ymTargetName),e.data.resource_id?this.$router.push({name:this.resource_route(t),params:{id:e.data.resource_id,target:"edit"}}):this.$router.push({name:"resources",params:{target:"restream"}})}})).catch((()=>{this.$toast.show({text:"При создании ресурса произошла ошибка"})})).finally((()=>{this.saving=!1}))}}},sa=aa,ia=(0,f.A)(sa,void 0,void 0,!1,null,null,null).exports,ra={name:"ResourceNewHttp",mixins:[ia],components:{FormMixin:Xt,Btn:h.A,ArrowCircleIcon:ce.A,Scrolled:fe.A,Wrench:Pt.A},data(){return{ymTargetName:"http_resource_creation_button"}},computed:{buttonText(){return this.$user.isCDN1()?"Заказать услугу":"Создать ресурс"}}},na=(0,f.A)(ra,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex column full-height"},[e("Scrolled",[e("div",{staticClass:"content"},[this.$user.isCDN1()?t._e():e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToPreviousRoute}},[e("ArrowCircleIcon")],1),this.$user.isCDN1()?e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s("HTTP кеширование"))]),e("Wrench")],1):e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Создание HTTP ресурса")))])],1),e("form-mixin",{attrs:{saving:t.saving,buttonText:t.$t(t.buttonText)},on:{save:t.save}})],1)],1)}),[],!1,null,null,null).exports,oa={name:"ResourceNewRestream",mixins:[ia],components:{FormMixin:Ee,Btn:h.A,ArrowCircleIcon:ce.A,Scrolled:fe.A},data(){return{ymTargetName:"restream_resource_creation_button"}}},ca=(0,f.A)(oa,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex column full-height"},[e("Scrolled",[e("div",{staticClass:"content"},[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),e("form-mixin",{attrs:{saving:t.saving,buttonText:"Создать ресурс"},on:{save:t.save}})],1)],1)}),[],!1,null,null,null).exports,la=a(45520),da={name:"Security",components:{Btn:h.A,SectionNav:la.A},props:{target:{type:String}},beforeCreate(){this.navLinks=[{text:"Защита от DDoS атак",to:{name:"security-items",params:{target:"antiddos"}}},{text:"Web Application Firewall",to:{name:"security-items",params:{target:"waf"}}}]}},ua=(0,f.A)(da,(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,ma={name:"FormRadioBlock",props:{value:{required:!0},possibleValues:{type:Array,required:!0},label:{type:String,required:!0},hint:{type:String}},data(){return{radioValue:this.value}},computed:{tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}}},watch:{radioValue(){this.$emit("input",this.radioValue)}}},pa=(0,f.A)(ma,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",[t._v(t._s(t.$t(this.label)))]),t.hint?e("Tooltip",{attrs:{content:t.$t(t.hint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),t._l(t.possibleValues,(function(a){return e("div",{staticClass:"radio"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.radioValue,expression:"radioValue"}],attrs:{type:"radio",id:t.label+a.name},domProps:{value:a.value,checked:t._q(t.radioValue,a.value)},on:{change:function(e){t.radioValue=a.value}}}),e("label",{attrs:{for:t.label+a.name}},[t._v(t._s(t.$t(a.name)))])])}))],2)}),[],!1,null,"bb96970a",null).exports,ha={name:"AntiDdosForm",components:{Toggle:ct.A,Textbox:p.A,FormRadioBlock:pa,FormFooter:Et.A,TriangleArrow:Dt.A,Scrolled:fe.A,Wrench:Pt.A},mixins:[Z.A],exampleDomain:zt.xq,data(){return{formName:"Защита от DDoS атак",domain:void 0,ips:[{name:""}],sslCertificate:!1,certOptions:["Использовать существующий","Выпустить новый"],cert:"Использовать существующий",showOptions:!1,email:void 0,tls:"old",tlsPossibleValues:[{name:"v1.0 и v1.1",value:"old"},{name:"v1.2 и v1.3",value:"new"}],ajax:!0,ajaxPossibleValues:[{name:"Да",value:!0},{name:"Нет",value:!1}],websocket:!0,websocketPossibleValues:[{name:"Да",value:!0},{name:"Нет",value:!1}],botKiller:!1}},created(){this.email=this.$user.personEmail},validations:{domain:{required:W.mw,domain:function(t){return/^[\w\d\-.]*$/i.test(t)}},email:{required:W.mw,email:W.Rp,isASCII:m.kj},ips:{$each:{name:{required:W.mw,ipCheck:function(t){return/^[\d.]*$/i.test(t)}}}}},computed:{triangleArrowStyle(){return{transform:this.showOptions?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showOptions?"-2px":"2px"}}},methods:{send(t){let e=[];this.ips.forEach((function(t){t.name&&e.push(t.name)}));let a=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p>Доменное имя: ${this.domain}</p>\n      <p>IP-адреса ресурса: ${e.join(", ")}</p>\n      <p>SSL-сертификат: ${this.sslCertificate?this.cert:"Не нужен"}</p>\n      <p>Email для управления услугой: ${this.email}</p>\n      <p>Версии TLS: ${this.findElemFromArrayOfObject(this.tlsPossibleValues,this.tls).name}</p>\n      <p>Используете ли ajax запросы?: ${this.ajax?"Да":"Нет"}</p>\n      <p>Используете ли websocket?: ${this.websocket?"Да":"Нет"}</p>\n      <p>Технология Ultimate-Bot-Killer: ${this.botKiller?"Да":"Нет"}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,s={client_mail_custom:t.email,client_tel_custom:t.phone,other:a.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(s,a)},addIp(){this.ips.push({name:""})},removeIp(t){this.ips.splice(t,1)},toggleOptions(){this.showOptions=!this.showOptions}}},ga=(0,f.A)(ha,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"content"},[e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t(t.formName)))]),e("Wrench")],1)]),e("div",{staticClass:"content"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Доменное имя *")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите доменное имя защищаемого ресурса.")))]),e("textbox",{staticClass:"text-input",attrs:{placeholder:t.$t(t.$options.exampleDomain)},on:{blur:function(e){return t.$v.domain.$touch()}},model:{value:t.domain,callback:function(e){t.domain=e},expression:"domain"}}),t.$v.domain.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный домен")))]):t._e()],1),e("div",{staticClass:"content"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("IP-адреса ресурса *")))]),e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Укажите Origin IP-адреса защищаемого ресурса.")))]),e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Если используется балансировка - укажите несколько IP адресов.")))]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.ips,(function(a,s){return e("div",{key:s,staticClass:"flex gap-2x align-center margin-top-3x"},[e("div",{staticClass:"relative grow"},[e("textbox",{staticClass:"text-input",attrs:{placeholder:t.$t("127.0.0.1")},on:{blur:function(e){return t.$v.ips.$each[s].$touch()}},model:{value:a.name,callback:function(e){t.$set(a,"name",e)},expression:"ip.name"}}),t.$v.ips.$each[s].name.$error?e("div",{staticClass:"text-error bottom-right"},[t._v(t._s(t.$t("Введите валидный IP-адрес.")))]):t._e()],1),s?t._e():e("div",{staticClass:"add",on:{click:t.addIp}},[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")])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeIp(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()])})),0)],1),e("div",{staticClass:"content"},[e("div",{staticClass:"margin-bottom-3x flex column"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("SSL-сертификат")))]),e("Toggle",{staticClass:"margin-bottom-2x",attrs:{"text-right":t.$t("Активируйте, если необходимо использовать SSL-сертификат.")},model:{value:t.sslCertificate,callback:function(e){t.sslCertificate=e},expression:"sslCertificate"}}),t.sslCertificate?e("select",{directives:[{name:"model",rawName:"v-model",value:t.cert,expression:"cert"}],staticClass:"text-extralight",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cert=e.target.multiple?a:a[0]}}},t._l(t.certOptions,(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(t.$t(a)))])})),0):t._e()],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"clickable pseudo-link",on:{click:t.toggleOptions}},[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("div",{directives:[{name:"show",rawName:"v-show",value:t.showOptions,expression:"showOptions"}],staticClass:"margin-bottom-2x"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Email для управления услугой *")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Измените, если необходимо")))]),e("textbox",{staticClass:"text-input",attrs:{placeholder:t.$t("[email protected]")},on:{blur:function(e){return t.$v.email.$touch()}},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),t.$v.email.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный email")))]):t._e()],1),e("div",{staticClass:"blocks margin-bottom-2x clearfix"},[e("FormRadioBlock",{staticClass:"text-regular",attrs:{label:"Версии TLS",possibleValues:t.tlsPossibleValues},model:{value:t.tls,callback:function(e){t.tls=e},expression:"tls"}}),e("FormRadioBlock",{staticClass:"text-regular",attrs:{label:"Используете ли ajax запросы?",possibleValues:t.ajaxPossibleValues},model:{value:t.ajax,callback:function(e){t.ajax=e},expression:"ajax"}}),e("FormRadioBlock",{staticClass:"text-regular",attrs:{label:"Используете ли websocket?",possibleValues:t.websocketPossibleValues},model:{value:t.websocket,callback:function(e){t.websocket=e},expression:"websocket"}})],1)])]),e("div",{staticClass:"bot-check margin-bottom-2x"},[e("div",{staticClass:"check-icon"},[e("svg",{attrs:{viewBox:"0 0 384 384",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"m192 384c105.863281 0 192-86.128906 192-192 0-18.273438-2.550781-36.28125-7.601562-53.527344-2.488282-8.480468-11.34375-13.351562-19.847657-10.863281-8.488281 2.480469-13.34375 11.367187-10.863281 19.847656 4.183594 14.328125 6.3125 29.320313 6.3125 44.542969 0 88.222656-71.777344 160-160 160s-160-71.777344-160-160 71.777344-160 160-160c32.0625 0 62.910156 9.375 89.207031 27.105469 7.320313 4.941406 17.273438 3 22.207031-4.320313 4.9375-7.328125 3.011719-17.273437-4.316406-22.210937-31.601562-21.308594-68.632812-32.574219-107.097656-32.574219-105.863281 0-192 86.128906-192 192s86.136719 192 192 192zm0 0"}}),e("path",{attrs:{d:"m356.6875 36.6875-164.6875 164.679688-52.6875-52.679688c-6.25-6.246094-16.375-6.246094-22.625 0-6.246094 6.25-6.246094 16.375 0 22.625l64 64c3.128906 3.128906 7.214844 4.6875 11.3125 4.6875s8.183594-1.558594 11.3125-4.6875l176-176c6.246094-6.25 6.246094-16.375 0-22.625-6.25-6.246094-16.375-6.246094-22.625 0zm0 0"}})])]),e("div",{staticClass:"text text-small"},[t._v(t._s(t.$t("Мы знаем, что Вы не робот")))])]),e("div",{staticClass:"margin-bottom-2x flex column"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Технология Ultimate-Bot-Killer")))]),e("Toggle",{staticClass:"margin-bottom",attrs:{"text-right":t.$t("Активируйте, если хотите использовать технологию, позволяющую избавиться от CAPTCHA и ботов.")},model:{value:t.botKiller,callback:function(e){t.botKiller=e},expression:"botKiller"}})],1)],1),e("div",{staticClass:"content"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.send}})],1)])}),[],!1,null,"4d889b5f",null).exports,va={name:"FormCheckboxBlock",props:{value:{type:Array,required:!0},label:{type:String,required:!0},hint:{type:String}},data(){return{checkboxElems:this.value}},computed:{tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}}}},fa={name:"WafForm",components:{FormRadioBlock:pa,FormCheckboxBlock:(0,f.A)(va,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",[t._v(t._s(t.$t(t.label)))]),t.hint?e("Tooltip",{attrs:{content:t.$t(t.hint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),t._l(t.checkboxElems,(function(a){return e("div",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.value,expression:"elem.value"}],attrs:{type:"checkbox",id:t.label+a.name},domProps:{checked:Array.isArray(a.value)?t._i(a.value,null)>-1:a.value},on:{change:function(e){var s=a.value,i=e.target,r=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&t.$set(a,"value",s.concat([null])):n>-1&&t.$set(a,"value",s.slice(0,n).concat(s.slice(n+1)))}else t.$set(a,"value",r)}}}),e("label",{attrs:{for:t.label+a.name}},[t._v(t._s(t.$t(a.name)))])])}))],2)}),[],!1,null,"69f8872e",null).exports,FormTextBlock:a(11793).A,FormFooter:Et.A,Scrolled:fe.A,Wrench:Pt.A},mixins:[Z.A],data(){return{formName:"Web Application Firewall",params:["SQL инъекции, XSS, XXE, RCE и другие угрозы OWASP Top-10;","Брутфорс, кражи учетных записей и других атак данного типа;","Атаки на логику приложения;","Интернет-боты."],website:"",fieldOfActivity:"",minRps:"",maxRps:"",maxBandwidth:"",balancingDescription:"",topLevelNetworkScheme:!0,topLevelNetworkSchemePossibleValues:[{name:"Да",value:!0},{name:"Нет",value:!1}],balancersCount:"",integration:[{name:"Вариант установки после балансировщика в виде Reverse-Proxy",value:!1},{name:"Вариант установки петлей (когда запросы от балансирощика поступают на WAF, обрабатываются и отправляются обратно на баÐ
1»Ð°Ð½ÑÐ¸Ñ€Ð¾Ñ‰Ð¸Ðº)",value:!1},{name:"Вариант установки в виде динамически подключаемого модуля к Nginx",value:!1},{name:"Вариант установки для работы с копией HTTP-трафика",value:!1},{name:"Вариант установки для K8s",value:!1},{name:"Вариант установки для Sidecar",value:!1},{name:"Установка на облачные платформы",value:!1},{name:"Иной",value:!1}]}},methods:{send(t){let e=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p>Веб-сайт: ${this.website}</p>\n      <p>Сфера деятельности: ${this.fieldOfActivity}</p>\n      <p>Минимальное значение запросов в секунду, RPS: ${this.minRps}</p>\n      <p>Максимальное значение запросов в секунду, RPS: ${this.maxRps}</p>\n      <p>Максимальная пропускная способность канала: ${this.maxBandwidth}</p>\n      <p style="white-space: pre-wrap">Какие средства и схема балансировки нагрузки?: ${this.balancingDescription}</p>\n      <p>Наличие верхнеуровневой сетевой схемы: ${this.topLevelNetworkScheme?"Да":"Нет"}</p>\n      <p>Количество балансировщиков: ${this.balancersCount}</p>\n      <p>Вариант интеграции: ${this.getCheckboxValuesAsString(this.integration)}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,a={client_mail_custom:t.email,client_tel_custom:t.phone,other:e.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(a,e)}}},xa={name:"SecurityForms",components:{AntiDdosForm:ga,WafForm:(0,f.A)(fa,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"content"},[e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t(t.formName)))]),e("Wrench")],1)]),e("div",{staticClass:"content"},[e("div",{staticClass:"text-extralight text-light"},[e("p",[t._v(t._s(t.$t("Web application firewall обладает неограниченным горизонтальным масштабированием и защищает от всех видов угроз веб-приложения и API:")))]),e("ul",t._l(t.params,(function(a){return e("li",{key:a},[t._v(t._s(t.$t(a)))])})),0),e("p",[t._v(t._s(t.$t("Обеспечивает точность распознавания атак и минимизирует ложные срабатывания. Не требует значительных ресурсов для эксплуатации и может работать как по лицензионной, так и по сервисной модели.")))]),e("p",[t._v(t._s(t.$t("Для понимания задач, нас будет интересовать информация на основании брифа ниже, если Вы затрудняетесь дать ответы сразу, мы организуем онлайн-встречу, все расскажем и поможем подготовиться к интеграции.")))])])]),e("div",{staticClass:"content"},[e("div",{staticClass:"blocks margin-bottom-2x clearfix"},[e("FormTextBlock",{staticClass:"margin-bottom-2x",attrs:{label:"Веб-сайт *",placeholder:"Введите адрес"},model:{value:t.website,callback:function(e){t.website=e},expression:"website"}}),e("FormTextBlock",{staticClass:"margin-bottom-2x",attrs:{label:"Сфера деятельности",placeholder:"Введите описание"},model:{value:t.fieldOfActivity,callback:function(e){t.fieldOfActivity=e},expression:"fieldOfActivity"}}),e("FormTextBlock",{staticClass:"margin-bottom-2x min-rps",attrs:{label:"Минимальное значение запросов в секунду, RPS",onlyNumbers:!0,placeholder:"Введите число"},model:{value:t.minRps,callback:function(e){t.minRps=e},expression:"minRps"}}),e("FormTextBlock",{staticClass:"margin-bottom-2x max-rps",attrs:{label:"Максимальное значение запросов в секунду, RPS",onlyNumbers:!0,placeholder:"Введите число"},model:{value:t.maxRps,callback:function(e){t.maxRps=e},expression:"maxRps"}}),e("FormTextBlock",{staticClass:"margin-bottom-2x max-bandwidth",attrs:{label:"Максимальная пропускная способность канала",placeholder:"Введите значение"},model:{value:t.maxBandwidth,callback:function(e){t.maxBandwidth=e},expression:"maxBandwidth"}}),e("FormTextBlock",{staticClass:"margin-bottom-2x balancing-description",attrs:{label:"Какие средства и схема балансировки нагрузки?",multiline:!0,placeholder:"Введите описание"},model:{value:t.balancingDescription,callback:function(e){t.balancingDescription=e},expression:"balancingDescription"}}),e("FormRadioBlock",{staticClass:"margin-bottom-2x text-regular",attrs:{label:"Наличие верхнеуровневой сетевой схемы",possibleValues:t.topLevelNetworkSchemePossibleValues},model:{value:t.topLevelNetworkScheme,callback:function(e){t.topLevelNetworkScheme=e},expression:"topLevelNetworkScheme"}}),e("FormTextBlock",{staticClass:"margin-bottom-2x",attrs:{label:"Количество балансировщиков",onlyNumbers:!0,placeholder:"Введите число"},model:{value:t.balancersCount,callback:function(e){t.balancersCount=e},expression:"balancersCount"}}),e("FormCheckboxBlock",{staticClass:"margin-bottom-2x integration text-regular",attrs:{label:"Выберите вариант интеграции в зависимости от Вашей инфраструктуры"},model:{value:t.integration,callback:function(e){t.integration=e},expression:"integration"}})],1)]),e("div",{staticClass:"content"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.send}})],1)])}),[],!1,null,"5cd7ebfc",null).exports},props:{target:{type:String}}},ba=(0,f.A)(xa,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"full-height flex column"},["antiddos"===t.target?e("AntiDdosForm"):t._e(),"waf"===t.target?e("WafForm"):t._e()],1)}),[],!1,null,"509371d5",null).exports,_a={name:"stat",computed:{src(){return`//my.cdnvideo.ru/${this.locale}/stat/${this.$user.accountName}/short_stat/`},locale(){return this.$i18n.locale.slice(0,2)}}},Ca=(0,f.A)(_a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"stat"},[e("h1",{staticClass:"margin-bottom-7x"},[t._v(t._s(t.$t("Статистика")))]),e("div",{staticClass:"text-small margin-bottom-3x"},[t._v(t._s(t.$t("Раздел всё ещё находится в разработке. Временно отображается старая версия интерфейса статистики. Приносим свои извинения за возможные неудобства.")))]),e("iframe",{attrs:{src:t.src}})])}),[],!1,null,"03f6c922",null).exports,wa={name:"Cdn1CacheClear",components:{Scrolled:fe.A,CacheForm:se}},ya=(0,f.A)(wa,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"cdn1-cache-wrapper"},[e("div",{staticClass:"content"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Очистка кэша CDN")))])]),e("cache-form")],1)])}),[],!1,null,null,null).exports,$a={name:"NewLiveResourceSelect",components:{Btn:h.A,Scrolled:fe.A,ArrowCircleIcon:ce.A,Wrench:Pt.A},data(){return{ymTargetName:"resource_creation_button"}},created(){this.$user.isCDN1()&&this.sendYMTarget(this.ymTargetName)},methods:{next(t,e){this.$router.push({name:t,params:e})}}},Sa=(0,f.A)($a,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"flex column full-height"},[e("div",{staticClass:"grow relative"},[e("div",{staticClass:"content"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Создание Live ресурса")))])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"service content",on:{click:function(e){return t.next("streaming-rtmp-cdn-1")}}},[this.$user.isCDN1()?e("Wrench",{staticClass:"float",attrs:{placement:"top"}}):t._e(),e("div",{staticClass:"icon"},[e("svg",{staticClass:"live-icon",staticStyle:{"enable-background":"new -21 -50 682.66669 682"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"-21 -50 682.66669 682","xml:space":"preserve"}},[e("g",[e("path",{attrs:{d:"m640 483.800781v-485.382812h-640v485.382812h247.328125l-14.65625 60.105469h-35.664063v37.5h245.992188v-37.5h-35.671875l-14.652344-60.105469zm-110-37.5v-52.882812h72.5v52.882812zm72.5-410.382812v320h-565v-320zm-565 357.5h455v52.882812h-455zm331.230469 150.480469h-97.460938l14.660157-60.097657h68.140624zm0 0"}}),e("path",{attrs:{d:"m214.394531 233.988281h-67.007812v-112.375h-40.574219v147.75h107.582031zm0 0"}}
1),e("path",{attrs:{d:"m228.546875 121.613281h40.574219v147.75h-40.574219zm0 0"}}),e("path",{attrs:{d:"m368.796875 269.363281 54.3125-147.75h-42.660156l-28.503907 96.769531-28.929687-96.769531h-42.867187l54.9375 147.75zm0 0"}}),e("path",{attrs:{d:"m539.644531 233.988281h-64.71875v-23.304687h53.6875v-32.882813h-53.6875v-20.808593h62.847657v-35.378907h-103.421876v147.75h105.292969zm0 0"}})])])]),e("div",{staticClass:"title text-regular margin-top"},[t._v(t._s(t.$t("RTMP/RTSP-publish")))])],1)]),e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"service content",on:{click:function(e){return t.next("streaming-srt-cdn-1")}}},[this.$user.isCDN1()?e("Wrench",{staticClass:"float",attrs:{placement:"top"}}):t._e(),e("div",{staticClass:"icon"},[e("svg",{staticClass:"srt-icon",staticStyle:{"enable-background":"new 0 0 512 512"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",version:"1.1",x:"0",y:"0",viewBox:"0 0 550.801 550.801","xml:space":"preserve"}},[e("g",[e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M488.426,197.014H475.2v-63.817c0-0.401-0.063-0.799-0.116-1.205c-0.021-2.534-0.827-5.023-2.562-6.993L366.325,3.694   c-0.032-0.034-0.063-0.045-0.085-0.076c-0.633-0.707-1.371-1.298-2.151-1.804c-0.231-0.158-0.464-0.287-0.706-0.422   c-0.676-0.366-1.393-0.675-2.131-0.896c-0.2-0.053-0.38-0.135-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2   c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.87v160.542   c0,17.044,13.824,30.876,30.873,30.876h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601   V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.832,505.47,197.014,488.426,197.014z M97.2,21.601   h250.193v110.51c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.601z M324.105,341.762   c4.968,17.982,9.94,38.791,13.016,44.939h-36.904c-2.6-4.492
1-6.386-17.497-11.121-37.125   c-4.256-19.886-11.114-25.317-25.774-25.555h-10.887v62.68H216.72V229.413c11.588-1.901,28.862-3.309,48.022-3.309   c23.652,0,40.21,3.541,51.564,12.527c9.46,7.559,14.66,18.689,14.66,33.349c0,20.348-14.423,34.301-28.145,39.264v0.712   C313.938,316.459,320.093,327.102,324.105,341.762z M82.864,379.371l7.333-29.795c9.698,4.957,24.598,9.925,39.97,9.925   c16.559,0,25.31-6.86,25.31-17.265c0-9.936-7.565-15.609-26.723-22.465c-26.494-9.229-43.756-23.899-43.756-47.082   c0-27.189,22.708-48.012,60.312-48.012c17.977,0,31.224,3.784,40.685,8.045l-8.042,29.091c-6.383-3.066-17.745-7.56-33.349-7.56   c-15.612,0-23.182,7.09-23.182,15.367c0,10.178,8.991,14.67,29.563,22.475c28.146,10.399,41.396,25.07,41.396,47.535   c0,26.736-20.577,49.434-64.333,49.434C109.833,389.064,91.855,384.339,82.864,379.371z M453.601,523.347H97.2V419.302h356.4   V523.347z M467.428,257.553H423.9v129.148h-36.187V257.553h-42.814v-30.268h122.518v30.268H467.428z","data-original":"#000000"}}),e("path",{attrs:{d:"M268.759,252.827c-8.751,0-13.717,0.707-16.319,1.184v43.991h14.196c17.972,0,28.624-8.985,28.624-22.952   C295.26,260.402,285.325,253.06,268.759,252.827z","data-original":"#000000"}})]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}})])])]),e("div",{staticClass:"title text-regular margin-top"},[t._v(t._s(t.$t("SRT-publish")))])],1)]),e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"service content",on:{click:function(e){return t.next("streaming-hls-cdn-1")}}},[this.$user.isCDN1()?e("Wrench",{staticClass:"float",attrs:{placement:"top"}}):t._e(),e("div",{staticClass:"icon"},[e("svg",{staticClass:"monitor-icon",staticStyle:{"enable-background":"new -21 -50 682.66669 682"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"-21 -50 682.66669 682","xml:space":"preserve"}},[e("g",[e("path",{attrs:{d:"m640 483.800781v-485.382812h-640v485.382812h247.328125l-14.65625 60.105469h-35.664063v37.5h245.992188v-37.5h-35.671875l-14.65625-60.105469zm-110-37.5v-52.882812h72.5v52.882812zm72.5-410.382812v320h-565v-320zm-565 410.382812v-52.882812h455v52.882812zm331.230469 97.597657h-97.460938l14.660157-60.097657h68.140624zm0 0"}}),e("path",{attrs:{d:"m242.921875 256.582031c11.226563 0 21.742187-3.160156 30.6875-8.632812l39 19.675781c-.480469 3.007812-.730469 6.089844-.730469 9.230469 0 32.527343 26.464844 58.992187 58.996094 58.992187 32.527344 0 58.992188-26.464844 58.992188-58.992187 0-32.53125-26.460938-58.996094-58.992188-58.996094-15.867188 0-30.28125 6.304687-40.890625 16.527344l-31.84375-16.0625c2.429687-6.460938 3.773437-13.441407 3.773437-20.742188 0-6.71875-1.148437-13.167969-3.222656-19.191406l32.542969-16.417969c10.484375 9.519532 24.394531 15.335938 39.640625 15.335938 32.527344 0 58.992188-26.464844 58.992188-59 0-32.527344-26.460938-58.992188-58.992188-58.992188s-58.996094 26.464844-58.996094 58.992188c0 3.726562.3
163282 7.367187 1.027344 10.910156l-37.707031 19.023438c-9.28125-6.09375-20.371094-9.65625-32.277344-9.65625-32.53125 0-59 26.464843-59 58.996093 0 32.535157 26.464844 59 59 59zm127.953125-1.222656c11.855469 0 21.492188 9.644531 21.492188 21.496094 0 11.855469-9.636719 21.496093-21.492188 21.496093-11.851562 0-21.496094-9.640624-21.496094-21.496093 0-11.851563 9.644532-21.496094 21.496094-21.496094zm0-158.542969c11.855469 0 21.492188 9.640625 21.492188 21.492188 0 11.855468-9.636719 21.5-21.492188 21.5-11.851562 0-21.496094-9.644532-21.496094-21.5 0-11.851563 9.644532-21.492188 21.496094-21.492188zm-127.953125 79.269532c11.847656 0 21.492187 9.644531 21.492187 21.496093 0 11.855469-9.644531 21.5-21.492187 21.5-11.859375 0-21.5-9.644531-21.5-21.5 0-11.851562 9.640625-21.496093 21.5-21.496093zm0 0"}})])])]),e("div",{staticClass:"title text-regular margin-top"},[t._v(t._s(t.$t("HLS-pull")))])],1)]),this.$branding.isCurrentCompany("CDNvideo")?[e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"service content",on:{click:function(e){return t.next("streaming-other-cdn-1",{target:"rtmp-pull"})}}},[e("Wrench",{staticClass:"float",attrs:{placement:"top"}}),e("div",{staticClass:"icon"},[e("svg",{staticClass:"live-icon",attrs:{viewBox:"0 0 57 38",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"025---Live-Recording",transform:"translate(0 -1)"}},[e("path",{attrs:{id:"Shape",d:"m27.941 18h-24.941c-1.65685425 0-3 1.3431458-3 3v15c0 1.6568542 1.34314575 3 3 3h34c1.6568542 0 3-1.3431458 3-3v-5.941c-.0016561-6.6593157-5.3996843-12.0573439-12.059-12.059zm-18.941 18h-5c-.55228475 0-1-.4477153-1-1v-13c0-.5522847.44771525-1 1-1s1 .4477153 1 1v12h4c.55228475 0 1 .4477153 1 1s-.44771525 1-1 1zm5-1c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1v-13c0-.5522847.4477153-1 1-1s1 .4477153 1 1zm10.975-12.775-3 13c-.1048143.4538972-.5091582.7752987-.975.775h-1c-.4658418.0002987-.8701857-.3211028-.975-.775l-3-13c-.1242641-.5384776.2115224-1.0757359.75-1.2s1.0757359.2115224 1.2.75l2.525 10.944 2.525-10.944c.0803848-.348334.3404973-.627323.6823557-.7318748.3418584-.1045517.7135263-.0187822.975.225s.3730291.6085408.2926443.9568748zm8.025 5.775c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1h-4v4h4c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1h-5c-.5522847 0-1-.4477153-1-1v-13c0-.5522847.4477153-1 1-1h5c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1h-4v5z"}}),e("path",{attrs:{id:"Shape",d:"m28.337 9.94c3.3780934-3.989024 8.6979002-5.76260526 13.7939123-4.59878055 5.0960121 1.1638247 9.1184542 5.07098415 10.4299301 10.13100965 1.311476 5.0600255-.3067068 10.4291427-4.1958424 13.9217709-.5791942.4617158-.8557781 1.2057318-.7188308 1.9336692s.664997 1.3205773 1.3723809 1.5402484c.707384.219671 1.4782494.0303964 2.0034499-.4919176 5.0030014-4.4881465 7.0865489-11.3910607 5.4021687-17.8976992-1.6843803-6.50663857-6.8556791-11.53148318-13.4080112-13.02828852-6.5523321-1.49680535-13.392556.78414424-17.7351575 5.91398772-.4945364.5416244-.6529423 1.31048769-.4127695 2.00348137.2401728.69299363.8403924 1.19893793 1.5640346 1.31837473.7236423.1194368 1.4546102-.1667957 1.9047349-.7458561z"}}),e("path",{attrs:{id:"Shape",d:"m35.494 14.129c2.3969688-1.7184461 5.6874269-1.440015 7.7615598.6567657 2.074133 2.0967807 2.3168149 5.3900683.5724402 7.7682343-.4550265.6330904-.4903941 1.4760178-.09 2.145.3346867.5791293.9367272.9526088 1.6042534.9952083.6675263.0425995 1.3121582-.2513211 1.7177466-.7832083 2.9116097-3.9619339 2.5093232-9.4530339-.9486143-12.9483249-3.4579375-3.49529099-8.9443984-3.9565501-12.9373857-1.0876751-.5513071.4163884-.8470492 1.089036-.7811912 1.7767725.065858.6877366.4838808 1.2920337 1.1041912 1.5962275.6363204.3333027 1.4047647.2875116 1.997-.119z"}}),e("circle",{attrs:{id:"Oval",cx:"39",cy:"19",r:"2"}})])])]),e("div",{staticClass:"title text-regular margin-top"},[t._v(t._s(t.$t("RTMP/RTSP-pull")))])],1)]),e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"service content",on:{click:function(e){return t.next("streaming-other-cdn-1",{target:"mpeg-ts"})}}},[e("Wrench",{staticClass:"float",attrs:{placement:"top"}}),e("div",{staticClass:"icon"},[e("svg",{staticClass:"mpeg-icon",staticStyle:{"enable-background":"new 0 0 512 512"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",version:"1.1",x:"0",y:"0",viewBox:"0 0 416 416","xml:space":"preserve"}},[e("g",[e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{d:"M91.8,73.008l-8.16,22.48l-3,8.824h-0.336l
1-2.992-8.824l-8.496-22.48H53.992v54.112h13.16v-15.984    c0-5.496-1.168-13.904-1.832-19.312h0.336l4.328,12.656l7.496,18.232h5.328l7.496-18.232l4.504-12.656h0.328    c-0.664,5.408-1.832,13.816-1.832,19.312v15.984h13.32V73.008H91.8z","data-original":"#000000"}})])]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{d:"M139.528,73.008h-20.976v54.112h14.32v-17.144h6.656c11.328,0,21.648-5.744,21.648-18.984    C161.176,77.336,151.184,73.008,139.528,73.008z M138.864,98.656h-5.992V84.328h5.992c5.328,0,8.328,1.832,8.328,6.664    C147.192,95.824,144.528,98.656,138.864,98.656z","data-original":"#000000"}})])]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("polygon",{attrs:{points:"184.288,115.136 184.288,105.48 201.944,105.48 201.944,93.488 184.288,93.488 184.288,85 204.936,85     204.936,73.008 169.976,73.008 169.976,127.12 205.776,127.12 205.776,115.136   ","data-original":"#000000"}})])]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{d:"M238.872,95.648v11.656h7.992v7.496c-1,0.664-2.664,1-4.168,1c-9.656,0-14.152-5.664-14.152-15.824    c0-9.824,5.496-15.656,12.824-15.656c4.328,0,6.656,1.336,9.32,3.664l7.832-8.824c-3.832-3.832-9.656-7.16-17.32-7.16    c-14.816,0-27.304,10.328-27.304,28.472c0,18.488,12.16,27.648,26.976,27.648c7.656,0,14.648-3.336,18.648-6.664V95.648H238.872z","data-original":"#000000"}})])]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("rect",{attrs:{x:"32",y:"112",width:"16",height:"16","data-original":"#000000"}})])]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{d:"M413.656,82.344l-80-80C332.16,0.84,330.128,0,328,0h-8H120C97.944,0,80,17.944,80,40H40C17.944,40,0,57.944,0,80v40    c0,22.056,17.944,40,40,40h40v184c0,22.056,17.944,40,40,40h24c4.424,0,8-3.584,8-8c0-4.416-3.576-8-8-8h-24    c-13.232,0-24-10.768-24-24V160h152c22.056,0,40-17.944,40-40V80c0-22.056-17.944-40-40-40H96c0-13.232,10.768-24,24-24h192v48    c0,22.056,17.944,40,40,40h48v240c0,13.232-10.768,24-24,24h-24c-4.424,0-8,3.584-8,8c0,4.416,3.576,8,8,8h24    c22.056,0,40-17.944,40-40V96v-8C416,85.88,415.16,83.84,413.656,82.344z M248,56c13.232,0,24,10.768,24,24v40    c0,13.232-10.768,24-24,24H40c-13.232,0-24-10.768-24-24V80c0-13.232,10.768-24,24-24H248z M352,88c-13.232,0-24-10.768-24-24    V19.312L396.688,88H352z","data-original":"#000000"}})])]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{d:"M296,256h-96c-22.056,0-40,17.944-40,40v80c0,22.056,17.944,40,40,40h96c22.056,0,40-17.944,40-40v-80    C336,273.944,318.056,256,296,256z M320,376c0,13.232-10.768,24-24,24h-96c-13.232,0-24-10.768-24-24v-80    c0-13.232,10.768-24,24-24h96c13.232,0,24,10.768,24,24V376z","data-original":"#000000"}})])]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("path",{attrs:{d:"M224,297.872v76.256L287.544,336L224,297.872z M240,326.128L256.456,336L240,345.872V326.128z","data-original":"#000000"}})])]),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),e("g",{attrs:{xmlns:"http://www.w3.org/2000/svg"}})])])]),e("div",{staticClass:"title text-regular margin-top"},[t._v(t._s(t.$t("MPEG-TS-publish")))])],1)]),e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"service content",on:{click:function(e){return t.next("streaming-other-cdn-1",{target:"icecast-pull"})}}},[e("Wrench",{staticClass:"float",attrs:{placement:"top"}}),e("div",{staticClass:"icon"},[e("svg",{staticClass:"live-icon",attrs:{viewBox:"0 0 57 38",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"025---Live-Recording",transform:"translate(0 -1)"}},[e("path",{attrs:{id:"Shape",d:"m27.941 18h-24.941c-1.65685425 0-3 1.3431458-3 3v15c0 1.6568542 1.34314575 3 3 3h34c1.6568542 0 3-1.3431458 3-3v-5.941c-.0016561-6.6593157-5.3996843-12.0573439-12.059-12.059zm-18.941 18h-5c-.55228475 0-1-.4477153-1-1v-13c0-.5522847.44771525-1 1-1s1 .4477153 1 1v12h4c.55228475 0 1 .4477153 1 1s-.44771525 1-1 1zm5-1c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1v-13c0-.5522847.4477153-1 1-1s1 .4477153 1 1zm10.975-12.775-3 13c-.1048143.4538972-.5091582.7752987-.975.775h-1c-.4658418.0002987-.8701857-.3211028-.975-.775l-3-13c-.1242641-.5384776.2115224-1.0757359.75-1.2s1.0757359.2115224 1.2.75l2.525 10.944 2.525-10.944c.0803848-.348334.3404973-.627323.6823557-.7318748.3418584-.1045517.7135263-.0187822.975.225s.3730291.6085408.2926443.9568748zm8.025 5.775c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1h-4v4h4c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1h-5c-.5522847 0-1-.4477153-1-1v-13c0-.5522847.4477153-1 1-1h5c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1h-4v5z"}}),e("path",{attrs:{id:"Shape",d:"m28.337 9.94c3.3780934-3.989024 8.6979002-5.76260526 13.7939123-4.59878055 5.0960121 1.1638247 9.1184542 5.07098415 10.4299301 10.13100965 1.311476 5.0600255-.3067068 10.4291427-4.1958424 13.9217709-.5791942.4617158-.8557781 1.2057318-.7188308 1.9336692s.664997 1.3205773 1.3723809 1.5402484c.707384.219671 1.4782494.0303964 2.0034499-.4919176 5.0030014-4.4881465 7.0865489-11.3910607 5.4021687-17.8976992-1.6843803-6.50663857-6.8556791-11.53148318-13.4080112-13.02828852-6.5523321-1.49680535-13.392556.78414424-17.7351575 5.91398772-.4945364.5416244-.6529423 1.31048769-.4127695 2.00348137.2401728.69299363.8403924 1.19893793 1.5640346 1.31837473.7236423.1194368 1.4546102-.1667957 1.9047349-.7458561z"}}),e("path",{attrs:{id:"Shape",d:"m35.494 14.129c2.3969688-1.7184461 5.6874269-1.440015 7.7615598.6567657 2.074133 2.0967807 2.3168149 5.3900683.5724402 7.7682343-.4550265.6330904-.4903941 1.4760178-.09 2.145.3346867.5791293.9367272.9526088 1.6042534.9952083.6675263.0425995 1.3121582-.2513211 1.7177466-.7832083 2.9116097-3.9619339 2.5093232-9.4530339-.9486143-12.9483249-3.4579375-3.49529099-8.9443984-3.9565501-12.9373857-1.0876751-.5513071.4163884-.8470492 1.089036-.7811912 1.7767725.065858.6877366.4838808 1.2920337 1.1041912 1.5962275.6363204.3333027 1.4047647.2875116 1.997-.119z"}}),e("circle",{attrs:{id:"Oval",cx:"39",cy:"19",r:"2"}})])])]),e("div",{staticClass:"title text-regular margin-top"}
1,[t._v(t._s(t.$t("Icecast-pull")))])],1)])]:t._e()],2)])])])}),[],!1,null,"0ff5a1a8",null).exports,ka=a(70385),Ta=a.n(ka),Aa={name:"Codes",components:{Textbox:p.A,Toggle:ct.A,WarningText:lt.A},props:{data:{type:Object,default:null},onlyMainCodes:{type:Boolean,default:!1},queryStringCacheCheck:{type:Boolean,default:!1}},data(){return{times:[{value:"0s",text:"не кешировать"},{value:"1s",text:"1 секунда"},{value:"30s",text:"30 секунд"},{value:"1m",text:"1 минута"},{value:"10m",text:"10 минут"},{value:"30m",text:"30 минут"},{value:"1h",text:"1 час"},{value:"4h",text:"4 часа"},{value:"12h",text:"12 часов"},{value:"1d",text:"1 день"},{value:"2d",text:"2 дня"},{value:"3d",text:"3 дня"},{value:"7d",text:"7 дней"},{value:"14d",text:"14 дней"},{value:"30d",text:"30 дней"},{value:0,text:"Вручную"}],success:"1d",successTimeInS:"",redirect:"1d",redirectTimeInS:"",notfound:"1s",notfoundTimeInS:"",servererror:"1s",servererrorTimeInS:"",queryString:!1,disableCache:!1,forceCache:!1,cacheForceHint:"Игнорировать заголовки Expires и Cache-Control при выборе времени кеширования контента"}},computed:{isZeroSecondsCacheSelected(){return[this.success,this.redirect,this.notfound,this.servererror].some((t=>"0s"===t))||[this.successTimeInS,this.redirectTimeInS,this.notfoundTimeInS,this.servererrorTimeInS].some((t=>"0"===t))}},created(){let t={"2xx":"success","3xx":"redirect","4xx":"notfound","5xx":"servererror",force:"forceCache"};this.data&&(this.queryString=this.data.consider_args,this.disableCache=!!this.data.disable,this.data.valid&&Object.keys(this.data.valid).forEach((e=>{let a=this.data.valid[e],s=t[e];"force"===e?this[s]=Boolean(a):this.times.some((t=>t.value===a))?this[s]=a:(this[s]=0,this[s+"TimeInS"]=parseInt(a))})))},validations:{successTimeInS:{numeric:W.sH,requiredIf:(0,W.F5)((t=>!t.success))},redirectTimeInS:{numeric:W.sH,requiredIf:(0,W.F5)((t=>!t.redirect))},notfoundTimeInS:{numeric:W.sH,requiredIf:(0,W.F5)((t=>!t.notfound))},servererrorTimeInS:{numeric:W.sH,requiredIf:(0,W.F5)((t=>!t.servererror))}},watch:{"$v.$invalid":function(t){this.$emit("valid",!t)},success(t,e){this.clearTime(t,e,"successTimeInS")},redirect(t,e){this.clearTime(t,e,"redirectTimeInS")},notfound(t,e){this.clearTime(t,e,"notfoundTimeInS")},servererror(t,e){this.clearTime(t,e,"servererrorTimeInS")}},methods:{clearTime(t,e,a){!e&&t&&(this[a]="")},getData(){return this.disableCache?{disable:!0}:{valid:{force:this.forceCache,"2xx":this.success||this.successTimeInS+"s","3xx":this.redirect||this.redirectTimeInS+"s","4xx":this.notfound||this.notfoundTimeInS+"s","5xx":this.servererror||this.servererrorTimeInS+"s"},consider_args:this.queryString}}}},Ra=Aa,Pa=(0,f.A)(Ra,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"caching"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Кеширование")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Деактивируйте, если кеширование необходимо отключить")))]),e("toggle",{staticClass:"margin-bottom",attrs:{values:{left:!0,right:!1}},model:{value:t.disableCache,callback:function(e){t.disableCache=e},expression:"disableCache"}})],1),t.disableCache?t._e():[e("div",[e("div",{staticClass:"margin-bottom-2x text-extralight"},[e("span",[t._v(t._s(t.$t("Если в ответах источника контента (ориджина) уже содержатся заголовки Cache-Control и/или Expires, то кеширование производится на время, указанное в этих заголовках.")))]),e("br"),e("span",[t._v(t._s(t.$t('Чтобы изменить это поведение необходимо включить "Игнорировать заголовки управления кешированием". В этом случае кеширование будет производиться на время, заданное в этом разделе. ')))]),e("span",[t._v(t._s(t.$t("Также заданное время кеширования будет использовано для ответов источника контента (ориджина) в которых не содержатся заголовки управления кешированием.")))])]),e("div",{staticClass:"margin-bottom-2x text-extralight"},[t._v(t._s(t.$t("Укажите время кэширования в зависимости от кода ответа. Для 2хх и 3хх кодов рекомендуется устанавливать одинаковые значения.")))]),e("div",{staticClass:"margin-bottom-2x row align-center"},[e("div",{staticClass:"col-xs-3 text-extralight"},[t._v(t._s("2xx"))]),e("div",{staticClass:"col-xs-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.success,expression:"success"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.success=e.target.multiple?a:a[0]}}},t._l(t.times,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("div",[t.success?t._e():e("textbox",{attrs:{name:"successTimeInS",placeholder:t.$t("Введите своё значение в секундах")},model:{value:t.successTimeInS,callback:function(e){t.successTimeInS=e},expression:"successTimeInS"}}),t.$v.successTimeInS.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите время в секундах.")))]):t._e()],1)])],1)]),e("div",{staticClass:"margin-bottom-2x row align-center"},[e("div",{staticClass:"col-xs-3 text-extralight"},[t._v(t._s("3xx"))]),e("div",{staticClass:"col-xs-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.redirect,expression:"redirect"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.redirect=e.target.multiple?a:a[0]}}},t._l(t.times,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("div",[t.redirect?t._e():e("textbox",{attrs:{name:"redirectTimeInS",placeholder:t.$t("Введите своё значение в секундах")},model:{value:t.redirectTimeInS,callback:function(e){t.redirectTimeInS=e},expression:"redirectTimeInS"}}),t.$v.redirectTimeInS.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите время в секундах.")))]):t._e()],1)])],1)])]),t.onlyMainCodes?t._e():e("div",[e("div",{staticClass:"margin-bottom-2x row align-center"},[e("div",{staticClass:"col-xs-3 text-extralight"},[t._v(t._s("4xx"))]),e("div",{staticClass:"col-xs-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.notfound,expression:"notfound"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.notfound=e.target.multiple?a:a[0]}}},t._l(t.times,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("div",[t.notfound?t._e():e("textbox",{attrs:{name:"notfoundTimeInS",placeholder:t.$t("Введите своё значение в секундах")},model:{value:t.notfoundTimeInS,callback:function(e){t.notfoundTimeInS=e},expression:"notfoundTimeInS"}}
1),t.$v.notfoundTimeInS.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите время в секундах.")))]):t._e()],1)])],1)]),e("div",{staticClass:"margin-bottom-2x row align-center"},[e("div",{staticClass:"col-xs-3 text-extralight"},[t._v(t._s("5xx"))]),e("div",{staticClass:"col-xs-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.servererror,expression:"servererror"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.servererror=e.target.multiple?a:a[0]}}},t._l(t.times,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[e("div",[t.servererror?t._e():e("textbox",{attrs:{name:"servererrorTimeInS",placeholder:t.$t("Введите своё значение в секундах")},model:{value:t.servererrorTimeInS,callback:function(e){t.servererrorTimeInS=e},expression:"servererrorTimeInS"}}),t.$v.servererrorTimeInS.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите время в секундах.")))]):t._e()],1)])],1)])]),t.isZeroSecondsCacheSelected?e("WarningText",[t._v(t._s(t.$t("Внимание! При выборе времени кеширования 0 секунд возможна нестабильная работа CDN. Распределённая сеть предназначена для работы с кешированием при отдаче контента конечным пользователям.")))]):t._e(),e("WarningText",[t.forceCache?e("span",[t._v(t._s(t.$t("Заголовки кеширования игнорируются при расчете времени кеширования, но не отбрасываются и передаются далее в ответах пользователям.")))]):e("span",[t._v(t._s(t.$t("Некорректные значения заголовков (Expires с прошедшим временем, или Cache-control: private) отключают кеширование, что часто приводит к повышенной нагрузке на источник контента (ориджин).")))])]),e("div",{staticClass:"margin-bottom-2x flex align-center gap-2x"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.forceCache,expression:"forceCache"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.forceCache)?t._i(t.forceCache,null)>-1:t.forceCache},on:{change:function(e){var a=t.forceCache,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.forceCache=a.concat([null])):r>-1&&(t.forceCache=a.slice(0,r).concat(a.slice(r+1)))}else t.forceCache=i}
1}}),e("span",[t._v(t._s(t.$t("Игнорировать заголовки управления кешированием")))])]),e("Tooltip",{attrs:{content:t.$t(t.cacheForceHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.queryStringCacheCheck?e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Query String")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте если нужно учитывать query string при кешировании. Если опция включена, ссылки site.ru/img/1.jpg?id=1 и site.ru/img/1.jpg?id=2 будут разными объектами в кеше.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.queryString,callback:function(e){t.queryString=e},expression:"queryString"}})],1):t._e()]],2)}),[],!1,null,"48e95d0f",null),Ma=Pa.exports;function La(t,e){return t.name.en>e.name.en?1:t.name.en<e.name.en?-1:0}function Da(t,e){return t.name.ru>e.name.ru?1:t.name.ru<e.name.ru?-1:0}var Ea={name:"Limitations",components:{Toggle:ct.A,Textbox:p.A,VueCtkDateTimePicker:Ta(),Btn:h.A},props:{data:{type:Object,default:null}},data(){return{requestPayment:!0,geoEnabled:!1,showLimitations:!1,ipEnabled:!1,refererEnabled:!1,useragentEnabled:!1,geoLimits:[],ipLimits:[],refererLimits:[],useragentLimits:[],actions:[{text:"разрешено",value:"allow"},{text:"запрещено",value:"deny"}],domainExamples:[{example:"example.com",description:"точное соответствие"},{example:"~.*\\.example.com",description:"все поддомены example.com, не включая example.com"},{example:"~.*example.com",description:"все домены 3-го уровня, включая example.com"},{example:"~a\\d+\\.example.com",description:"регулярное выражение"}],useragentExamples:[{example:"Yandex",description:"точное соответствие"},{example:"~[Yy]andex",description:"Yandex или yandex"},{example:"~^(curl)\\.7\\.",description:"регулярное выражение"}],countries:[],regions:[],dateTimePickerFormat:"YYYY-MM-DD HH:mm",dateTimeApiFormat:"YYYY-MM-DDTHH:mm:ssZ",addRuleHint:"Можно задать несколько правил, не пересекающихся во времени",addExcludeHint:"",addTimeHint:"* Если интервалы не заданы, правило действует постоянно"}},computed:{ruSortedCountries:function(){return this.countries.toSorted(Da)},enSortedCountries:function(){return this.countries.toSorted(La)},ruSortedRegions:function(){return this.regions.toSorted(Da)},enSortedRegions:function(){return this.regions.toSorted(La)},tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}}},created(){this.data&&("requestPayment"in this.data&&(this.requestPayment=this.data.requestPayment),this.geoLimits=this.data.geo||[],this.geoLimits&&(this.setLocalTime(this.geoLimits),this.showLimitations=!0),this.ipLimits=this.data.ip||[],this.ipLimits&&(this.setLocalTime(this.ipLimits),this.showLimitations=!0),this.refererLimits=this.data.referer||[],this.refererLimits&&(this.setLocalTime(this.refererLimits),this.showLimitations=!0),this.useragentLimits=this.data.useragent||[],this.useragentLimits&&(this.setLocalTime(this.useragentLimits),this.showLimitations=!0),this.geoEnabled=!!this.data.geo,this.ipEnabled=!!this.data.ip,this.refererEnabled=!!this.data.referer,this.useragentEnabled=!!this.data.useragent,this.showLimitations=this.geoEnabled||this.ipEnabled||this.refererEnabled||this.useragentEnabled),this.$api.getCountriesList().then((t=>{this.countries=t.data.data})),this.$api.getRegionsList().then((t=>{this.regions=t.data.data,this.regions.push({country_code:"",code:null,name:{ru:"ВСЕ РЕГИОНЫ",en:"ALL REGIONS"}})}))},validations:{refererLimits:{$each:{exclude:{$each:{validateReferer:function(t){return""!==t.referer&&/^[^а-яА-Я]*$/i.test(t.referer)}}}}},useragentLimits:{$each:{exclude:{$each:{validateUseragent:function(t){return""!==t.useragent&&/^[^а-яА-Я]*$/i.test(t.useragent)}}}}},geoLimits:{$each:{exclude:{$each:{validateCountry:function(t){return null!==t.country}}}}},ipLimits:{$each:{exclude:{$each:{validateIp:function(t){return/^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(\/([1-2][0-9]|3[0-2]|[0-9]))?$/.test(t.ip)}}}}}}
1,watch:{"$v.$invalid":function(t){this.$emit("valid",!t)}},methods:{getDataOrder(){let t=this.getData(),e="";return t.geo&&(e+="\nГео:\n"+this.formLimitations(t.geo)),t.ip&&(e+="\nIP:\n"+this.formLimitations(t.ip)),t.referer&&(e+="\nРеферер:\n"+this.formLimitations(t.referer)),t.useragent&&(e+="\nUser-Agent:\n"+this.formLimitations(t.useragent)),e},formLimitations(t){let e="";for(let a of t){e+="\tпо умолчанию: "+a.default_action,e+="\n\tисключения: ",a.exclude===[]&&(e+="нет");for(let t of a.exclude)t||(e+="нет"),t.country&&(e+="\n\t\tдействие: "+t.action+" страна: "+t.country,t.region&&(e+=" регион: "+t.region)),t.ip&&(e+="\n\t\tip адресс: "+t.ip),t.referer&&(e+="\n\t\tреферер: "+t.referer),t.useragent&&(e+="\n\t\tuser-agent: "+t.useragent);e+="\n\tвремя действия:",a.times||(e+=" \n\t\tпостоянно");for(let t of a.times)e+="\n\t\t",t.start||t.end||(e+="постоянно"),t.start&&(e+="от: "+vt().tz(t.start,this.dateTimeApiFormat,"UTC").format(this.dateTimePickerFormat)),t.end&&(e+=" до: "+vt().tz(t.end,this.dateTimeApiFormat,"UTC").format(this.dateTimePickerFormat));e+="\n"}return e},setUTCTime(t){t.forEach((t=>{t.times.forEach((t=>{t.start&&(t.start=vt().tz(t.start,this.dateTimeApiFormat,this.$user.personTimezone).utc().format()),t.end&&(t.end=vt().tz(t.end,this.dateTimePickerFormat,this.$user.personTimezone).utc().format())}))}))},setLocalTime(t){t.forEach((t=>{t.times.forEach((t=>{t.start&&(t.start=vt().tz(t.start,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone).format(this.dateTimePickerFormat)),t.end&&(t.end=vt().tz(t.end,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone).format(this.dateTimePickerFormat))}))}))},clearData(){this.geoEnabled=!1,this.ipEnabled=!1,this.refererEnabled=!1,this.useragentEnabled=!1,this.geoLimits=[],this.ipLimits=[],this.refererLimits=[],this.useragentLimits=[]},toggleLimitations(t){t||this.clearData()},getData(){let t={};return 0!==this.geoLimits.length&&(t.geo=JSON.parse(JSON.stringify(this.geoLimits)),this.setUTCTime(t.geo)),0!==this.ipLimits.length&&(t.ip=JSON.parse(JSON.stringify(this.ipLimits)),this.setUTCTime(t.ip),t.ip.forEach((t=>{t.exclude.forEach((t=>{t.ip.includes("/")||(t.ip+="/32")}))}))),0!==this.refererLimits.length&&(t.referer=JSON.parse(JSON.stringify(this.refererLimits)),this.setUTCTime(t.referer)),0!==this.useragentLimits.length&&(t.useragent=JSON.parse(JSON.stringify(this.useragentLimits)),this.setUTCTime(t.useragent)),t},toggleGeoLimitations(t){this.geoLimits=t?[this.createLimitation()]:[]},addGeoLimitation(){let t=this.createLimitation();t.times.push(this.createTimes()),this.geoLimits.push(t),this.geoLimits[0].times.length||this.geoLimits[0].times.push(this.createTimes())},removeGeoLimitation(t){this.geoLimits.splice(t,1),1===this.geoLimits.length&&1===this.geoLimits[0].times.length&&null===this.geoLimits[0].times[0].end&&null===this.geoLimits[0].times[0].start&&(this.geoLimits[0].times=[])},createGeoExclude(){return{action:"allow",country:null,region:null}},addGeoTime(t){this.geoLimits[t].times.push(this.createTimes())},removeGeoTime(t,e){this.geoLimits[t].times.splice(e,1)},addGeoExclude(t){this.geoLimits[t].exclude.push(this.createGeoExclude())},setAllRegions(t,e){this.geoLimits[t].exclude[e].region=null},removeGeoExclude(t,e){this.geoLimits[t].exclude.splice(e,1)},toggleIpLimitations(t){this.ipLimits=t?[this.createLimitation()]:[]},addIpLimitation(){let t=this.createLimitation();t.times.push(this.createTimes()),this.ipLimits.push(t),this.ipLimits[0].times.length||this.ipLimits[0].times.push(this.createTimes())},removeIpLimitation(t){this.ipLimits.splice(t,1),1===this.ipLimits.length&&1===this.ipLimits[0].times.length&&null===this.ipLimits[0].times[0].end&&null===this.ipLimits[0].times[0].start&&(this.ipLimits[0].times=[])},createIpExclude(){return{ip:""}},addIpTime(t){this.ipLimits[t].times.push(this.createTimes())},removeIpTime(t,e){this.ipLimits[t].times.splice(e,1)},addIpExclude(t){this.ipLimits[t].exclude.push(this.createIpExclude())},removeIpExclude(t,e){this.ipLimits[t].exclude.splice(e,1)},toggleRefererLimitations(t){this.refererLimits=t?[this.createLimitation()]:[]},addRefererLimitation(){let t=this.createLimitation();t.times.push(this.createTimes()),this.refererLimits.push(t),this.refererLimits[0].times.length||this.refererLimits[0].times.push(this.createTimes())},removeRefererLimitation(t){this.refererLimits.splice(t,1),1===this.refererLimits.length&&1===this.refererLimits[0].times.length&&null===this.refererLimits[0].times[0].end&&null===this.refererLimits[0].times[0].start&&(this.refererLimits[0].times=[])},createRefererExclude(){return{referer:""}},addRefererTime(t){this.refererLimits[t].times.push(this.createTimes())},removeRefererTime(t,e){this.refererLimits[t].times.splice(e,1)},addRefererExclude(t){this.refererLimits[t].exclude.push(this.createRefererExclude())},removeRefererExclude(t,e){this.refererLimits[t].exclude.splice(e,1)},toggleUseragentLimitations(t){this.useragentLimits=t?[this.createLimitation()]:[]},addUseragentLimitation(){let t=this.createLimitation();t.times.push(this.createTimes()),this.useragentLimits.push(t),this.useragentLimits[0].times.length||this.useragentLimits[0].times.push(this.createTimes())},removeUseragentLimitation(t){this.useragentLimits.splice(t,1),1===this.useragentLimits.length&&1===this.useragentLimits[0].times.length&&null===this.useragentLimits[0].times[0].end&&null===this.useragentLimits[0].times[0].start&&(this.useragentLimits[0].times=[])},createUseragentExclude(){return{useragent:""}},addUseragentTime(t){this.useragentLimits[t].times.push(this.createTimes())},removeUseragentTime(t,e){this.useragentLimits[t].times.splice(e,1)},addUseragentExclude(t){this.useragentLimits[t].exclude.push(this.createUseragentExclude())},removeUseragentExclude(t,e){this.useragentLimits[t].exclude.splice(e,1)},createLimitation(){return{default_action:"allow",exclude:[],times:[]}},createTimes(){return{start:null,end:null}}}},za=Ea,Na=(0,f.A)(za,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"limitations"},[e("div",{staticClass:"s520i"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Ограничения раздачи")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если хотите установить гео, IP, referer или User-Agent ограничения.")))]),e("toggle",{attrs:{requestPaidServiceConfirmation:t.requestPayment&&!this.$user.isCDN1()},on:{input:t.toggleLimitations},model:{value:t.showLimitations,callback:function(e){t.showLimitations=e},expression:"showLimitations"}})],1),t.showLimitations?e("div",{staticClass:"margin-top-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Гео ограничения")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте для ограничения трафика по странам и регионам")))]),e("toggle",{staticClass:"margin-bottom",on:{input:t.toggleGeoLimitations},model:{value:t.geoEnabled,callback:function(e){t.geoEnabled=e},expression:"geoEnabled"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.geoEnabled,expression:"geoEnabled"}],staticClass:"target-enable"},[e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.geoLimits,(function(a,s){return e("div",{key:s,staticClass:"header margin-left"},[s?e("hr",{staticClass:"margin-bottom-2x"}):t._e(),e("div",{staticClass:"row margin-bottom text-regular align-center"},[t._v(t._s(t.$t("По умолчанию:"))),e("select",{directives:[{name:"model",rawName:"v-model",value:a.default_action,expression:"geoLimit.default_action"}],staticClass:"margin-left default-action",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"default_action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),s?t._e():e("Tooltip",{attrs:{content:t.$t(t.addRuleHint),placement:"top"}},[e("div",{staticClass:"add",on:{click:function(e){return t.addGeoLimitation()}}},[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")])])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeGeoLimitation(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("label",{staticClass:"margin-top text-small"},[t._v(t._s(t.$t("Исключения:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить исключение из правила по умолчанию"))),e("div",{staticClass:"add",on:{click:function(e){return t.addGeoExclude(s)}}},[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")])])]),a.exclude.length?e("div",{staticClass:"exclude-wrapper"},[t._l(a.exclude,(function(a,i){return e("div",{key:"geoExclude"+i,staticClass:"target-exclude margin-left"},[e("div",{staticClass:"exclude-action align-center"},[e("select",{directives:[{name:"model",rawName:"v-model",value:a.action,expression:"geoExclude.action"}],on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),e("div",{staticClass:"exclude-country"},["ru_RU"===t.$i18n.locale?e("select",{directives:[{name:"model",rawName:"v-model",value:a.country,expression:"geoExclude.country"}],on:{blur:function(e){return t.$v.geoLimits.$each[s].exclude.$each[i].$touch()},change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"country",e.target.multiple?s:s[0])},function(e){return t.setAllRegions(s,i)}]}},[e("option",{attrs:{disabled:""},domProps:{value:null,textContent:t._s(t.$t("Выберите страну"))}}),t._l(t.ruSortedCountries,(function(a){return e("option",{domProps:{value:a.code,textContent:t._s(t.$t(a.name.ru))}})}))],2):e("select",{directives:[{name:"model",rawName:"v-model",value:a.country,expression:"geoExclude.country"}],on:{blur:function(e){return t.$v.geoLimits.$each[s].exclude.$each[i].$touch()},change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"country",e.target.multiple?s:s[0])},function(e){return t.setAllRegions(s,i)}]}},[e("option",{attrs:{disabled:""},domProps:{value:null,textContent:t._s(t.$t("Select country"))}}),t._l(t.enSortedCountries,(function(a){return e("option",{domProps:{value:a.code,textContent:t._s(t.$t(a.name.en))}})}))],2)]),e("div",{staticClass:"exclude-region"},["ru_RU"===t.$i18n.locale?e("select",{directives:[{name:"model",rawName:"v-model",value:a.region,expression:"geoExclude.region"}],on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"region",e.target.multiple?s:s[0])}}},t._l(t.ruSortedRegions.filter((t=>t.country_code===a.country||null===t.code)),(function(a){return e("option",{domProps:{value:a.code,textContent:t._s(t.$t(a.name.ru))}})})),0):e("select",{directives:[{name:"model",rawName:"v-model",value:a.region,expression:"geoExclude.region"}],on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"region",e.target.multiple?s:s[0])}}},t._l(t.enSortedRegions.filter((t=>t.country_code===a.country||null===t.code)),(function(a){return e("option",{domProps:{value:a.code,textContent:t._s(t.$t(a.name.en))}})})),0)]),e("div",{staticClass:"remove",on:{click:function(e){return t.removeGeoExclude(s,i)}}},[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.$v.geoLimits.$each[s].exclude.$each[i].$error?e("div",{staticClass:"has-error"},[e("span",{domProps:{textContent:t._s(t.$t("Выберите страну или удалите исключение"))}})]):t._e()])})),e("div",{staticClass:"text-extralight domain-memo margin-left"},[t._v(t._s(t.$t("* Исключения в которых задан регион применяются в первую очередь")))])],2):t._e(),e("label",{staticClass:"margin-top-2x text-small"},[t._v(t._s(t.$t("Интервалы времени:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить время действия ограничения"))),e("div",{staticClass:"add simptip-multiline",class:t.tipObjectTop,on:{click:function(e){return t.addGeoTime(s)}}},[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")])]),a.times.length?t._e():e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))])]),t._l(a.times,(function(i,r){return e("div",{key:"geotime"+r,staticClass:"schedule margin-left"},[e("vue-ctk-date-time-picker",{attrs:{format:t.dateTimePickerFormat,color:"var(--link-color)",locale:t.currentLocale,label:t.$t("Начало интервала"),"no-button-now":""},model:{value:i.start,callback:function(e){t.$set(i,"start",e)},expression:"time.start"}}),e("vue-ctk-date-time-picker",{attrs:{format:t.dateTimePickerFormat,color:"var(--link-color)",locale:t.currentLocale,label:t.$t("Окончание интервала"),"no-button-now":""},model:{value:i.end,callback:function(e){t.$set(i,"end",e)},expression:"time.end"}}),1===t.geoLimits.length||r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeGeoTime(s,r)}}},[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(),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))]):t._e(),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))]):t._e()],1)}))],2)})),0)],1),e("label",{staticClass:"margin-bottom margin-top"},[t._v(t._s(t.$t("Ограничения по IP")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте для ограничения трафика по IP адресам")))]),e("toggle",{staticClass:"margin-bottom",on:{input:t.toggleIpLimitations},model:{value:t.ipEnabled,callback:function(e){t.ipEnabled=e},expression:"ipEnabled"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.ipEnabled,expression:"ipEnabled"}],staticClass:"target-enable"},[e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.ipLimits,(function(a,s){return e("div",{key:s,staticClass:"header margin-left"},[s?e("hr",{staticClass:"margin-bottom-2x"}):t._e(),e("div",{staticClass:"row margin-bottom align-center text-regular"},[e("label",[t._v(t._s(t.$t("По умолчанию:")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:a.default_action,expression:"ipLimit.default_action"}],staticClass:"margin-left default-action",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"default_action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),s?t._e():e("Tooltip",{attrs:{content:t.$t(t.addRuleHint),placement:"top"}},[e("div",{staticClass:"add",on:{click:function(e){return t.addIpLimitation()}}},[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")])])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeIpLimitation(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("label",{staticClass:"margin-top text-small"},[t._v(t._s(t.$t("Исключения:")))]),e("div",{staticClass:"text-extralight margin-bottom"},["deny"===t.ipLimits[s].default_action?e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Разрешить"))}}):e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Запретить"))}}),e("span",{staticClass:"referer-exclude",domProps:{textContent:t._s(t.$t(" доступ c IP адресов:"))}}),e("div",{staticClass:"add",on:{click:function(e){return t.addIpExclude(s)}}},[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._l(a.exclude,(function(a,i){return e("div",{key:"ipExclude"+i,staticClass:"margin-left target-exclude"},[e("div",{staticClass:"exclude-ip"},[e("textbox",{attrs:{placeholder:t.$t("192.168.100.1/24")},on:{blur:function(e){return t.$v.ipLimits.$each[s].exclude.$each[i].$touch()}},model:{value:t.ipLimits[s].exclude[i].ip,callback:function(e){t.$set(t.ipLimits[s].exclude[i],"ip",e)},expression:"ipLimits[i].exclude[j].ip"}})],1),e("div",{staticClass:"remove",on:{click:function(e){return t.removeIpExclude(s,i)}}},[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.$v.ipLimits.$each[s].exclude.$each[i].$error?e("div",{staticClass:"has-error"},[e("span",{domProps:{textContent:t._s(t.$t("Укажите корректный IP адрес"))}})]):t._e()])})),e("label",{staticClass:"margin-top-2x text-small"},[t._v(t._s(t.$t("Интервалы времени:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить время действия ограничения"))),e("div",{staticClass:"add simptip-multiline",class:t.tipObjectTop,on:{click:function(e){return t.addIpTime(s)}}},[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")])]),a.times.length?t._e():e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))])]),t._l(a.times,(function(i,r){return e("div",{key:r,staticClass:"schedule margin-left"},[e("vue-ctk-date-time-picker",{attrs:{format:t.dateTimePickerFormat,color:"var(--link-color)",locale:t.currentLocale,label:t.$t("Начало интервала"),"no-button-now":""},model:{value:i.start,callback:function(e){t.$set(i,"start",e)},expression:"time.start"}}),e("vue-ctk-date-time-picker",{attrs:{format:t.dateTimePickerFormat,color:"var(--link-color)",locale:t.currentLocale,label:t.$t("Окончание интервала"),"no-button-now":""},model:{value:i.end,callback:function(e){t.$set(i,"end",e)},expression:"time.end"}}),1===t.ipLimits.length||r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeIpTime(s,r)}}},[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(),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))]):t._e()],1)}))],2)})),0)],1),e("label",{staticClass:"margin-bottom margin-top"},[t._v(t._s(t.$t("Ограничения по домену")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Ограничить доступность контента на других сайтах")))]),e("toggle",{staticClass:"margin-bottom",on:{input:t.toggleRefererLimitations},model:{value:t.refererEnabled,callback:function(e){t.refererEnabled=e},expression:"refererEnabled"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.refererEnabled,expression:"refererEnabled"}],staticClass:"target-enable"},[e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.refererLimits,(function(a,s){return e("div",{key:s,staticClass:"header margin-left"},[s?e("hr",{staticClass:"margin-bottom-2x"}):t._e(),e("div",{staticClass:"row margin-bottom align-center text-regular"},[e("label",[t._v(t._s(t.$t("По умолчанию:")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:a.default_action,expression:"refererLimit.default_action"}],staticClass:"margin-left default-action",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"default_action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),s?t._e():e("Tooltip",{attrs:{content:t.$t(t.addRuleHint),placement:"top"}},[e("div",{staticClass:"add",on:{click:function(e){return t.addRefererLimitation()}}},[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")])])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeRefererLimitation(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("label",{staticClass:"margin-bottom text-small"},[t._v(t._s(t.$t("Исключения:")))]),e("div",{staticClass:"text-extralight margin-bottom"},["deny"===t.refererLimits[s].default_action?e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Разрешить"))}}):e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Запретить"))}}),e("span",{staticClass:"referer-exclude",domProps:{textContent:t._s(t.$t(" доступ для доменов:"))}}),e("div",{staticClass:"add",on:{click:function(e){return t.addRefererExclude(s)}}},[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")])])]),a.exclude.length?e("div",{staticClass:"exclude-wrapper"},[t._l(a.exclude,(function(a,i){return e("div",{key:"refererExclude"+i,staticClass:"margin-left target-exclude"},[e("div",{staticClass:"exclude-referer"},[e("textbox",{attrs:{placeholder:t.$t("example.com")},on:{blur:function(e){return t.$v.refererLimits.$each[s].exclude.$each[i].$touch()}},model:{value:a.referer,callback:function(e){t.$set(a,"referer",e)},expression:"refererExclude.referer"}})],1),e("div",{staticClass:"remove",on:{click:function(e){return t.removeRefererExclude(s,i)}}},[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.$v.refererLimits.$each[s].exclude.$each[i].$error?e("div",{staticClass:"has-error"},[e("span",{domProps:{textContent:t._s(t.$t("Заполните поле, либо удалите исключение"))}})]):t._e()])})),e("div",{staticClass:"text-extralight domain-memo margin-left"},[t._v(t._s(t.$t("Значение можно задавать одним из следующих способов:")))]),e("ol",{staticClass:"margin-bottom"},t._l(t.domainExamples,(function(a){return e("li",{staticClass:"text-extralight domain-memo"},[e("i",[t._v(t._s(a.example))]),t._v(t._s(" - "+t.$t(a.description)))])})),0)],2):t._e(),e("label",{staticClass:"margin-top-2x text-small"},[t._v(t._s(t.$t("Интервалы времени:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить время действия ограничения"))),e("div",{staticClass:"add simptip-multiline",class:t.tipObjectTop,on:{click:function(e){return t.addRefererTime(s)}}},[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")])]),a.times.length?t._e():e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))])]),t._l(a.times,(function(i,r){return e("div",{key:r,staticClass:"schedule margin-left"},[e("vue-ctk-date-time-picker",{attrs:{format:t.dateTimePickerFormat,color:"var(--link-color)",locale:t.currentLocale,label:t.$t("Начало интервала"),"no-button-now":""},model:{value:i.start,callback:function(e){t.$set(i,"start",e)},expression:"time.start"}}),e("vue-ctk-date-time-picker",{attrs:{format:t.dateTimePickerFormat,color:"var(--link-color)",locale:t.currentLocale,label:t.$t("Окончание интервала"),"no-button-now":""},model:{value:i.end,callback:function(e){t.$set(i,"end",e)},expression:"time.end"}}),1===t.refererLimits.length||r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeRefererTime(s,r)}}},[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(),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))]):t._e(),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))]):t._e()],1)}))],2)})),0)],1),e("label",{staticClass:"margin-bottom margin-top"},[t._v(t._s(t.$t("Ограничения по User-Agent")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("User-Agent - это строка, по которой сервера могут определить тип приложения, операционную систему, производителя и/или версию пользовательского агента")))]),e("toggle",{staticClass:"margin-bottom",on:{input:t.toggleUseragentLimitations},model:{value:t.useragentEnabled,callback:function(e){t.useragentEnabled=e},expression:"useragentEnabled"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.useragentEnabled,expression:"useragentEnabled"}],staticClass:"target-enable margin-bottom-2x"},[e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.useragentLimits,(function(a,s){return e("div",{key:s,staticClass:"header margin-left"},[s?e("hr",{staticClass:"margin-bottom-2x"}):t._e(),e("div",{staticClass:"row margin-bottom align-center text-regular"},[e("label",[t._v(t._s(t.$t("По умолчанию:")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:a.default_action,expression:"useragentLimit.default_action"}],staticClass:"margin-left default-action",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"default_action",e.target.multiple?s:s[0])}}},t._l(t.actions,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),s?t._e():e("Tooltip",{attrs:{content:t.$t(t.addRuleHint),placement:"top"}},[e("div",{staticClass:"add",on:{click:function(e){return t.addUseragentLimitation()}}},[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")])])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeUseragentLimitation(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("label",{staticClass:"margin-top text-small"},[t._v(t._s(t.$t("Исключения:")))]),e("div",{staticClass:"text-extralight margin-bottom"},["deny"===t.useragentLimits[s].default_action?e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Разрешить"))}}):e("span",{staticClass:"referer-exclude-type",domProps:{textContent:t._s(t.$t("Запретить"))}}),e("span",{staticClass:"referer-exclude",domProps:{textContent:t._s(t.$t(" доступ для useragent:"))}}),e("div",{staticClass:"add",on:{click:function(e){return t.addUseragentExclude(s)}}},[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")])])]),a.exclude.length?e("div",{staticClass:"exclude-wrapper"},[t._l(a.exclude,(function(a,i){return e("div",{key:"useragentExclude"+i,staticClass:"margin-left target-exclude"},[e("div",{staticClass:"exclude-useragent"},[e("textbox",{attrs:{placeholder:t.$t("User-Agent")},on:{blur:function(e){return t.$v.useragentLimits.$each[s].exclude.$each[i].$touch()}},model:{value:t.useragentLimits[s].exclude[i].useragent,callback:function(e){t.$set(t.useragentLimits[s].exclude[i],"useragent",e)},expression:"useragentLimits[i].exclude[j].useragent"}})],1),e("div",{staticClass:"remove",on:{click:function(e){return t.removeUseragentExclude(s,i)}}},[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.$v.useragentLimits.$each[s].exclude.$each[i].$error?e("div",{staticClass:"has-error"},[e("span",{domProps:{textContent:t._s(t.$t("Заполните поле, либо удалите исключение"))}})]):t._e()])})),e("div",{staticClass:"text-extralight domain-memo"},[t._v(t._s(t.$t("Значение можно задавать одним из следующих способов:")))]),e("ol",{staticClass:"margin-bottom"},t._l(t.useragentExamples,(function(a){return e("li",{staticClass:"text-extralight domain-memo"},[e("i",[t._v(t._s(a.example))]),t._v(t._s(" - "+t.$t(a.description)))])})),0)],2):t._e(),e("label",{staticClass:"margin-top-2x text-small"},[t._v(t._s(t.$t("Интервалы времени:")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Добавить время действия ограничения"))),e("div",{staticClass:"add simptip-multiline",class:t.tipObjectTop,on:{click:function(e){return t.addUseragentTime(s)}}},[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")])]),a.times.length?t._e():e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t(t.addTimeHint)}`))])]),t._l(a.times,(function(i,r){return e("div",{key:r,staticClass:"schedule margin-left"},[e("vue-ctk-date-time-picker",{attrs:{format:t.dateTimePickerFormat,color:"var(--link-color)",locale:t.currentLocale,label:t.$t("Начало интервала"),"no-button-now":""},model:{value:i.start,callback:function(e){t.$set(i,"start",e)},expression:"time.start"}}),e("vue-ctk-date-time-picker",{attrs:{format:t.dateTimePickerFormat,color:"var(--link-color)",locale:t.currentLocale,label:t.$t("Окончание интервала"),"no-button-now":""},model:{value:i.end,callback:function(e){t.$set(i,"end",e)},expression:"time.end"}}),1===t.useragentLimits.length||r?e("div",{staticClass:"remove",on:{click:function(e){return t.removeUseragentTime(s,r)}}},[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(),r===a.times.length-1?e("div",{staticClass:"text-extralight timezone"},[t._v(t._s(`${t.$t("* Временные интервалы указ
1ываются в часовом поясе")} ${t.$user.personTimezone}`))]):t._e()],1)}))],2)})),0)],1)],1):t._e()])}),[],!1,null,"17105303",null),Ia=Na.exports,Oa={name:"TranscodeProfile",components:{Btn:h.A},data(){return{featuresOpen:!1}},props:["tcprofile","active"],methods:{toggleFeatures(){this.featuresOpen=!this.featuresOpen},orderTranscodeProfile(){this.$emit("order")}}},Ua=(0,f.A)(Oa,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tcprofile"},[e("div",{staticClass:"content-wrapper relative",class:{active:this.active}},[e("div",{staticClass:"content flex column align-center relative"},[e("div",{staticClass:"tcprofile-header margin-bottom-2x"},[e("h2",{staticClass:"text-semibold"},[t._v(t._s(t.$t(t.tcprofile.name)))]),e("div",{staticClass:"tcprofile-description text-extralight"},[t._v("("+t._s(t.$t(t.tcprofile.description))+")")])]),e("div",{staticClass:"tcprofile-content flex column align-center"},[e("ul",{directives:[{name:"show-slide",rawName:"v-show-slide:500:ease-in",value:t.featuresOpen,expression:"featuresOpen",arg:"500:ease-in"}],staticClass:"features-wrap"},[e("div",{staticClass:"features margin-bottom-2x"},t._l(t.tcprofile.features,(function(a){return e("li",{staticClass:"margin-bottom"},[e("span",{staticClass:"text-extralight"},[t._v(t._s(t.$t(a)))])])})),0)]),e("div",{staticClass:"toggle-features margin-bottom-2x",on:{click:t.toggleFeatures}},[t._v(t._s(t.featuresOpen?t.$t("Скрыть"):t.$t("Подробности")))]),e("btn",{attrs:{size:"big"},on:{click:t.orderTranscodeProfile}},[t._v(t._s(t.$t("Выбрать")))]),e("svg",{staticClass:"check-mark",staticStyle:{"enable-background":"new 0 0 24 24"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 24 24","xml:space":"preserve",width:"512px",height:"512px"}},[e("g",[e("path",{attrs:{d:"M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"}})])])],1)])])])}),[],!1,null,"bcd60bc2",null).exports,Va={name:"FormFooter",components:{Textbox:p.A,Btn:h.A,Spinner:kt.A},props:{buttonText:{type:String,default:"Заказать услугу"},isSending:{type:Boolean,default:!1}},data(){return{comment:"",feedbackPhone:""}},created(){this.feedbackPhone=this.$user.accountPhone},validations:{feedbackPhone:{required:W.mw,phone(t){return/^\+?[\d\-\s()]{9,}$/.test(t)}}},methods:{send(){let t={comment:this.comment,phone:this.feedbackPhone};this.$emit("send",t)}}},Ba=(0,f.A)(Va,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"footer live-cdn1-order-form-footer"},[e("div",{staticClass:"row row-gap-3x margin-bottom-3x"},[e("div",{staticClass:"col-sm-6 comment"},[e("label",{staticClass:"margin-bottom-2x"},[t._v(t._s(t.$t("Дополнительные пожелания:")))]),e("textbox",{attrs:{maxlength:"1000",multiline:!0,placeholder:t.$t("Введите текст тут...")},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],1),e("div",{staticClass:"col-sm-6 feedback-phone"},[e("label",{staticClass:"margin-bottom-2x"},[t._v(t._s(t.$t("Телефон для обратной связи:")))]),e("textbox",{attrs:{name:"feedbackPhone",maxlength:"20",placeholder:t.$t("Введите номер телефона...")},model:{value:t.feedbackPhone,callback:function(e){t.feedbackPhone=e},expression:"feedbackPhone"}}),t.$v.feedbackPhone.$invalid?e("div",{staticClass:"text-error"},[t._v(t._s(t.$t("Неправильный формат телефона")))]):t._e()],1)]),t.isSending?e("div",{staticClass:"flex full-width 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.$v.$invalid},on:{click:t.send}},[t._v(t._s(t.$t(t.buttonText)))])],1)}),[],!1,null,null,null).exports;function Fa(t){return/^[\w-/.?&:%()]*$/i.test(t)}function Ha(t){return/^[\w\d]*$/i.test(t)}function ja(){return Math.random().toString(36).substring(2,12)}function qa(){return Math.random().toString(36).substring(2,15)}function Ga(t,e,a){let i={};return s.default.set(i,"name",t||""),s.default.set(i,"password",e||""),s.default.set(i,"resolution",a||"720p"),i}function Ya(){let t=ja(),e=Ga(),a={};return s.default.set(a,t,e),a}function Wa(t){return/^((?!_tcode)[\w\d\-._])*$/i.test(t)}function Za(t){let e=Number(t),a=e%100,s=Math.floor(e%1e4/100);return 60*Math.floor(e/1e4)*60+60*s+a}function Ka(t){let e=Math.floor(t/3600),a=Math.floor(t%3600%60),s=Math.floor(t%3600/60),i="";
1return[String(e),String(s),String(a)].forEach((t=>{let e=t;for(;e.length<2;)e="0"+e;i+=e})),i}function Ja(t){return t.split("_")}function Xa(t){return""===t||void 0===t||t.trim().length>0}function Qa(){return"/records/"+vt().utc().local().format("YYYYMMDDTHHmmss")+".m3u8"}var ts={name:"FormLiveRtmp",components:{Btn:h.A,Textbox:p.A,Modal:Tt.A,Codes:Ma,VueCtkDateTimePicker:Ta(),TranscodeProfile:Ua,Spinner:kt.A,TriangleArrow:Dt.A,FormFooter:Ba,OptionOrderModal:Lt,Limitations:Ia,Toggle:ct.A},mixins:[Z.A],props:{buttonText:{type:String},resource:{type:Object},saving:{type:Boolean,default:!1},dvrRestarting:{type:Boolean,default:!1},active:{type:String,default:"true"},streamRecords:{type:Array,default:()=>[]},edit:{type:Boolean,default:!1}},validations:{name:{domain:Wa,minLength:(0,W.Bp)(5)},streams:{$each:{name:{domain:Wa,minLength:(0,W.Bp)(5)}}},auth:{md5:{secret:{latinNumeric:Ha}},url:{externalAuthLink:Fa}},streamRecordsData:{$each:{streamRecordTimeout:{correctInterval(t){return!1===this.showStreamRecordAndDVR||""===t||!(t.trim().length<6)&&Za(t)<=7200},requiredIf:(0,W.F5)((t=>!0===t.needStreamRecord))},DVRTimeout:{correctInterval(t){return!1===this.showStreamRecordAndDVR||""===t||!(t.trim().length<6)&&Za(t)<=7200},requiredIf:(0,W.F5)((t=>!0===t.showStreamRecord))},customDVRDuration:{correctDuration:Xa,requiredIf:(0,W.F5)((function(t){return!0===t.showStreamRecord&&"custom"===t.DVRDuration}))},customStorageTime:{correctDuration:Xa,requiredIf:(0,W.F5)((function(t){return!0===this.showStreamRecordAndDVR&&!0===t.needStreamRecord&&"custom"===t.storageTimeType}))},streamRecordPath:{correctEndFile(t){return!1===this.showStreamRecordAndDVR||".m3u8"===t.slice(-5)&&!t.includes(":")}},schedulesValidator:function(t){let e=!0;return!1===this.showStreamRecordAndDVR||(t.schedules.forEach((a=>{"schedule"===t.streamRecordStartType&&(null!==a.start&&null!==a.stop||void 0!==t.recordId||(e=!1))})),e)}}}},data(){return{formName:"RTMP/RTSP-publish",resourceType:"RTMP-publish",name:"live-"+qa(),inputHint:"Используйте комбинацию из букв латинского алфавита (a-z/A-Z), цифр (0-9), символов подчеркивания (_), точки (.) и дефисов (-). Максимальное количество символов - 40, минимальное - 5.",showOptions:"true"!==this.active,resolutions:["144p","240p","360p","480p","720p","1080p"],streams:Ya(),showTranscodeProfiles:!1,transcodeProfiles:[{id:"360_480_720",name:"Базовый",description:"3 качества",features:["Качества:\n360p, 480p, 720p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]},{id:"480_720_1080",name:"Оптимальный",description:"3 качества",features:["Качества:\n480p, 720p, 1080p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]},{id:"360_480_720_1080",name:"Расширенный",description:"4 качества",features:["Качества:\n360p, 480p, 720p, 1080p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]}],selectedTranscodeProfile:"",showStreamProperties:!1,streamProperties:["протокол: RTMP, RTSP;","кодек для видео: h.264;","кодек для аудио: AAC/mp3."],DVRModalName:"restartDVRWindow",modalName:"streamRecordUpdateConfirmation",modalTextTypes:{schedule:"После сохранений изменений запись потоков будет идти в новый файл, и окно DVR будет накапливаться заново.",button:"После сохранений изменений запись потоков придется запустить заново, и окно DVR будет накапливаться заново.",stream_start:"После сохранений изменений запись потоков будет идти в новый файл, и окно DVR будет накапливаться заново."},modalText:"После сохранений изменений запись потоков будет идти в новый файл, и окно DVR будет накапливаться заново.",streamRecordsData:[],schedules:[{start:null,stop:null}],dateTimePickerFormat:"YYYY-MM-DD HH:mm",dateTimeApiFormat:"YYYY-MM-DDTHH:mm:ssZ",showStreamRecordAndDVR:!1,streamRecordSmilFile:!1,showDVR:!1,showStreamRecord:!1,streamTypes:[{value:"short",text:"Кратковременная трансляция (до 12 часов)"},{value:"long",text:"Постоянная трансляция (24/7)"}],streamType:"short",needDVR:!1,needStreamRecord:!1,storageTimeTypes:[{value:"default",text:"по умолчанию (не удалять)"},{value:"custom",text:"выбрать самостоятельно"}],DVRDurationTypes:[{value:"1",text:"1 час"},{value:"2",text:"2 часа"},{value:"3",text:"3 часа"},{value:"4",text:"4 часа"},{value:"6",text:"6 часов"},{value:"8",text:"8 часов"},{value:"10",text:"10 часов"},{value:"12",text:"12 часов"},{value:"custom",text:"выбрать самостоятельно (до 12 часов)"}],DVRDuration:"1",storageTimeType:"default",defaultStorageTime:-1,maxStreamRecordSchedules:5,customStorageTime:"",customDVRDuration:"",streamRecordPath:Qa(),streamRecordTimeout:"003000",DVRTimeout:"003000",streamRecordStartTypes:[{value:"stream_start",text:"по публикации"},{value:"button",text:"по кнопке"},{value:"schedule",text:"по расписанию"}],streamRecordStartType:"stream_start",DVRStartTypes:[{value:"stream_start",text:"по публикации"},{value:"button",text:"по кнопке"}],DVRStartType:"stream_start",disableDVRStartBtn:!1,disableStreamRecordStartBtn:!1,disableDVRStopBtn:!0,disableStreamRecordStopBtn:!0,disableDVRUpdateBtn:!0,loadedStreamRecords:!1,authHint:"Используйте комбинацию из букв латинского алфавита (a-z/A-Z) и цифр (0-9). Максимальное количество символов - 100.",auth:{md5:{secret:"",forever:!1,anywhere:!1},url:""},needAuthorization:!1,authorizationTypes:[{value:"local",text:"Локальная авторизация (на основе подписи)"},{value:"external",text:"Внешняя авторизация"}
1],authorizationType:"local",cache:void 0,locations:void 0,defaultOptions:[{name:"Протоколы раздачи потока",modalName:"convert",cdn1Value:!1,checkboxElements:[{name:"RTMP",value:!1},{name:"MPEG-DASH",value:!1},{name:"MSS",value:!1},{name:"Low Latency Streaming",value:!1}],checkboxLabel:"Выберите необходимые протоколы",description:"По умолчанию мы предоставляем возможность просмотра трансляции в HLS. Активируйте, если планируете использовать другие протоколы раздачи (RTMP, MPEG-DASH, MSS, Low Latency Streaming)."}],limitationsData:void 0,hadLimitations:!1,validLimitations:!0}},computed:{triangleArrowStyle(){return{transform:this.showOptions?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showOptions?"-2px":"2px"}},tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}},currentLocale(){return"ru_RU"===this.$i18n.locale?"ru":"en"},noNames(){let t=!1;return Object.keys(this.streams).forEach((e=>{0===this.streams[e].name.length&&(t=!0)})),t},activeStreamRecord(){let t=!1,e=vt().utc().local(),a={short:["button"],long:["button"]},s={short:["schedule","stream_start"],long:["stream_start"]};return!!this.showStreamRecordAndDVR&&(this.streamRecordsData.forEach((i=>{let r={short:i.buttons.disableStreamRecordStartBtn,long:i.buttons.disableDVRStartBtn},n={short:i.streamRecordStartType,long:i.DVRStartType},o=i.recordId;if(o){let c=i.id+"_"+i.name,l=i.streamType,d=n[l];this.streamRecords.forEach((n=>{this.newTranscodeOrStreamName(n,c,o,i)&&(s[l].includes(d)?n.records.forEach((a=>{if(a.start){let s,i=vt().tz(a.start,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone);a.stop&&(s=vt().tz(a.stop,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone)),e>=i&&(!s||s>e)&&(t=!0,this.modalText=this.modalTextTypes[d])}})):a[l].includes(d)&&!0===r[l]&&(t=!0,this.modalText=this.modalTextTypes[d]))}))}})),t)}
1,options(){return this.$user.isCDN1()?[{name:"DVR",modalName:"dvr",cdn1Value:!1,description:"Активируйте, если необходимо использовать навигацию по эфиру (DVR)."},{name:"Запись потока",modalName:"record",cdn1Value:!1,description:"Активируйте, если необходимо сохранить запись потока."}].concat(this.defaultOptions):this.defaultOptions}},methods:{removeVisible(t){return t<2?"none":""},removeToolTip(t){return t>0?{"simptip-position-right":!0,"simptip-fade":!0,"simptip-smooth":!0}:this.tipObjectTop},initStreamRecord(t){let e="",a=vt().utc().local();if(t.smil){let t=Object.keys(this.streams)[0];e=t+"_"+this.streams[t].name+"_smil"}else e=t.source_path.split("/")[2];let s={id:e.split("_")[0],name:e.split("_").slice(1).join("_"),recordId:t.id,streamType:t.stream_type,streamRecordPath:t.path,schedules:[],smil:t.smil,buttons:{disableDVRStartBtn:!1,disableStreamRecordStartBtn:!1,disableDVRStopBtn:!0,disableStreamRecordStopBtn:!0,disableDVRUpdateBtn:!0}};if(t.smil){let e=[];Object.keys(t.qualities).forEach((a=>{e.push(t.qualities[a].replace("p",""))})),s.qualities=e}if(t.records.forEach((t=>{if(t.start){let e,i=vt().tz(t.start,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone);t.stop&&(e=vt().tz(t.stop,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone)),a>i&&(!e||e>a)&&(s.buttons.disableDVRUpdateBtn=!1)}})),"button"===t.launch_type&&t.records.forEach((t=>{if(t.start){let e,i=vt().tz(t.start,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone);t.stop&&(e=vt().tz(t.stop,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone)),a>i&&(!e||e>a)&&(s.buttons={disableDVRStartBtn:!0,disableStreamRecordStartBtn:!0,disableDVRStopBtn:!1,disableStreamRecordStopBtn:!1,disableDVRUpdateBtn:!1})}})),"short"===t.stream_type){s.streamRecordTimeout=Ka(t.stop_timeout),s.DVRTimeout="003000",s.needStreamRecord=!0,s.needDVR=t.dvr_enabled,s.showDVR=!1,s.showStreamRecord=!1,s.DVRStartType="stream_start",s.streamRecordStartType=t.launch_type,s.DVRDuration="1",s.customDVRDuration="";let e={start:null,stop:null};if("schedule"===t.launch_type){let i=[];t.records.forEach((t=>{let e=vt().tz(t.start,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone),s=vt().tz(t.stop,this.dateTimeApiFormat,"UTC").tz(this.$user.personTimezone);s>a&&i.push({start:e.format(this.dateTimePickerFormat),stop:s.format(this.dateTimePickerFormat)})})),0!==i.length?s.schedules=i:s.schedules.push(e)}else s.schedules.push(e);t.storage_time===this.defaultStorageTime?(s.storageTimeType="default",s.customStorageTime=""):(s.storageTimeType="custom",s.customStorageTime=String(t.storage_time))}else{s.DVRTimeout=Ka(t.stop_timeout),s.streamRecordTimeout="003000",s.needStreamRecord=!1,s.needDVR=!1,s.showDVR=t.dvr_enabled,s.showStreamRecord=!0,s.streamRecordStartType="stream_start",s.DVRStartType=t.launch_type,s.storageTimeType="default",s.customStorageTime="";let e={start:null,stop:null};s.schedules.push(e);let a=t.dvr_window/60;[1,2,3,4,6,8,10,12].includes(a/60)?(s.DVRDuration=String(a/60),s.customDVRDuration=""):(s.DVRDuration="custom",s.customDVRDuration=String(a))}return s},init(t){this.name=t.name,this.streams={},Object.keys(t.streams).forEach((e=>{if(!t.streams[e].transcode){let a=Ga(t.streams[e].name,t.streams[e].password,t.streams[e].resolution||"720p");s.default.set(this.streams,e,a)}})),this.selectedTranscodeProfile=t.settings["RTMP-publish"].transcode_profile||"",this.showTranscodeProfiles=!!this.selectedTranscodeProfile,Object.assign(this.auth,t.auth),JSON.stringify(this.auth.md5)!==JSON.stringify({secret:"",forever:!1,anywhere:!1})?(this.needAuthorization=!0,this.authorizationType="local"):""!==this.auth.url&&(this.needAuthorization=!0,this.authorizationType="external"),this.cache=t.cache,this.locations=t.locations,this.limitationsData=t.limitations||{},Object.keys(this.limitationsData).length>0&&(this.hadLimitations=!0)},toggleOptions(){this.showOptions=!this.showOptions},transcodeSwitcherInputActions(){let t=Object.keys(this.streams)[0],e=this.streams[t];this.streams={},this.streams[t]=e,this.selectedTranscodeProfile=this.showTranscodeProfiles?this.transcodeProfiles[0].id:"",this.streamRecordsData=[]}
1,smilSwitcherInputActions(){let t=Object.keys(this.streams)[0],e=this.streams[t];if(this.streamRecordsData=[],this.streamRecordSmilFile)this.setStreamRecordData(t,e.name+"_smil");else if(this.showTranscodeProfiles)this.setStreamRecordTranscodeProfiles(t,e);else{let t=[];0!==this.streamRecords.length&&this.streamRecords.forEach((e=>{let a=this.initStreamRecord(e);this.streamRecordsData.push(a),t.push(a.id+"_"+a.name)})),Object.keys(this.streams).forEach((e=>{let a=this.streams[e].name;t.includes(e+"_"+a)||this.setStreamRecordData(e,a)}))}},setStreamRecordTranscodeProfiles(t,e){Ja(this.selectedTranscodeProfile).forEach((a=>{let s=e.name+"_tcode"+a+"p";this.setStreamRecordData(t,s)}))},setEmptyStreamRecordTranscodeProfiles(){let t=Object.keys(this.streams)[0],e=this.streams[t],a=Ja(this.selectedTranscodeProfile),s=[];this.streamRecordsData.forEach((t=>{s.push(t.name)})),a.forEach((a=>{let i=e.name+"_tcode"+a+"p";s.includes(i)||this.setStreamRecordData(t,i)}))},initStreamRecords(){Object.keys(this.streams).forEach((t=>{let e=!1,a=this.streams[t].name;if(a&&(this.streamRecordsData.forEach((s=>{if(s.id===t){if(this.showTranscodeProfiles){let t=s.name.split("_"),e=t[[t.length-1]];this.streamRecordSmilFile?"smil"===e&&(s.name=a+"_smil"):(e=e.slice(5,e.length-1),Ja(this.selectedTranscodeProfile).includes(e)&&(s.name=a+"_tcode"+e+"p"))}else if(this.streamRecordSmilFile){let t=s.name.split("_"),e=t[[t.length-1]];s.name=a+"_"+e}else s.name=a;e=!0}})),!e)){let e=Object.keys(this.streams)[0],s=this.streams[e];this.streamRecordSmilFile?0===this.streamRecordsData.length&&this.setStreamRecordData(e,s.name+"_smil"):this.showTranscodeProfiles?this.setStreamRecordTranscodeProfiles(e,s):this.setStreamRecordData(t,a)}}))},toggleStreamProperties(){this.showStreamProperties=!this.showStreamProperties},removeStreamRecord(t){let e;this.streamRecordsData.some(((a,s)=>{if(a.id===t)return e=s,!0})),this.streamRecordsData.splice(e,1)},addStream(){let t=ja(),e=Ga();s.default.set(this.streams,t,e)},removeStream(t){s.default.delete(this.streams,t),this.removeStreamRecord(t)},getSchedulesCount(t){return Object.keys(this.streamRecordsData[t].schedules).length},addSchedule(t){this.streamRecordsData[t].schedules.push({start:null,stop:null})},removeSchedule(t,e){this.streamRecordsData[t].schedules.splice(e,1)},getStreamsLength(){return Object.keys(this.streams).length},getLastStreamIndex(){return this.getStreamsLength()-1},newTranscodeOrStreamName(t,e,a,s){if(t.id===a){let a=!this.streamRecordSmilFile&&e!==t.source_path.split("/")[2],i=!1;if(this.showTranscodeProfiles){let t=Ja(this.selectedTranscodeProfile);i=this.streamRecordSmilFile&&t!==s.qualities}if(a||i)return!0}return!1},setSelectedTranscodeProfile(t){if(this.selectedTranscodeProfile=t,!this.streamRecordSmilFile){let t=Object.keys(this.streams)[0],e=this.streams[t],a=[],s=Ja(this.selectedTranscodeProfile),i=[];s.forEach((t=>{let a=e.name+"_tcode"+t+"p";i.push(a)})),this.streamRecordsData.forEach((t=>{(t.showStreamRecord||t.needStreamRecord)&&i.includes(t.name)&&a.push(t)})),this.streamRecordsData=[],a?(this.streamRecordsData=a,this.setEmptyStreamRecordTranscodeProfiles()):this.setStreamRecordTranscodeProfiles(t,e)}},generateName(t){this.streams[t].name=Math.random().toString(36).substring(2,15)},setValidLimitations(t){this.validLimitations=t},resetStreamRecordData(t){this.streamRecordsData[t].buttons={disableDVRStartBtn:this.disableDVRStartBtn,disableStreamRecordStartBtn:this.disableStreamRecordStartBtn,disableDVRStopBtn:this.disableDVRStopBtn,disableDVRUpdateBtn:this.disableDVRUpdateBtn,disableStreamRecordStopBtn:this.disableStreamRecordStopBtn},this.streamRecordsData[t].needDVR=this.needDVR,this.streamRecordsData[t].needStreamRecord=this.needStreamRecord,this.streamRecordsData[t].showDVR=this.showDVR,this.streamRecordsData[t].showStreamRecord=this.showStreamRecord,this.streamRecordsData[t].customStorageTime=this.customStorageTime,this.streamRecordsData[t].customDVRDuration=this.customDVRDuration,this.streamRecordsData[t].streamRecordPath=Qa(),this.streamRecordsData[t].streamRecordTimeout=this.streamRecordTimeout,this.streamRecordsData[t].DVRTimeout=this.DVRTimeout,this.streamRecordsData[t].DVRStartType=this.DVRStartType,this.streamRecordsData[t].streamRecordStartType=this.streamRecordStartType,this.streamRecordsData[t].DVRDuration=this.DVRDuration,this.streamRecordsData[t].storageTimeType=this.storageTimeType,this.streamRecordsData[t].schedules=[{start:null,stop:null}]},setStreamRecordData(t,e){let a={buttons:{disableDVRStartBtn:this.disableDVRStartBtn,disableStreamRecordStartBtn:this.disableStreamRecordStartBtn,disableDVRStopBtn:this.disableDVRStopBtn,disableDVRUpdateBtn:this.disableDVRUpdateBtn,disableStreamRecordStopBtn:this.disableStreamRecordStopBtn},streamType:this.streamType,needDVR:this.needDVR,needStreamRecord:this.needStreamRecord,showDVR:this.showDVR,showStreamRecord:this.showStreamRecord,customStorageTime:this.customStorageTime,customDVRDuration:this.customDVRDuration,streamRecordPath:Qa(),streamRecordTimeout:this.streamRecordTimeout,DVRTimeout:this.DVRTimeout,DVRStartType:this.DVRStartType,streamRecordStartType:this.streamRecordStartType,DVRDuration:this.DVRDuration,storageTimeType:this.storageTimeType,schedules:[{start:null,stop:null}],name:e,id:t};this.streamRecordsData.push(a)},setShortStreamRecordSwitcher(t){this.streamRecordsData[t].needStreamRecord=!0},setShortDVRSwitcher(t){this.streamRecordsData[t].needDVR=!1},setLongStreamRecordSwitcher(t){this.streamRecordsData[t].showStreamRecord=!0},setLongDVRSwitcher(t){this.streamRecordsData[t].showDVR=!1},isDVRStartBtnDisabled(t){let e=!1,a=this.streamRecordsData[t].recordId;if(a){let s=!1;this.streamRecords.some((t=>{if(t.id===a)return s=t.launch_type,!0})),this.streamRecordsData[t].DVRStartType===s&&(e=!0)}if("true"===this.active&&this.resource&&e&&!this.streamRecordsData[t].buttons.disableDVRStartBtn){let e=this.$v.streamRecordsData.$each[t].DVRTimeout.$invali
1d||""===this.streamRecordsData[t].DVRTimeout,a="custom"===this.streamRecordsData[t].DVRDuration&&(this.$v.streamRecordsData.$each[t].customDVRDuration.$invalid||""===this.streamRecordsData[t].customDVRDuration);return e||a}return!0},isStreamRecordStartBtnDisabled(t){let e=!1,a=this.streamRecordsData[t].recordId;if(a){let s=!1;this.streamRecords.some((t=>{if(t.id===a)return s=t.launch_type,!0})),this.streamRecordsData[t].streamRecordStartType===s&&(e=!0)}if("true"===this.active&&this.resource&&e&&!this.streamRecordsData[t].buttons.disableStreamRecordStartBtn){let e=this.$v.streamRecordsData.$each[t].streamRecordPath.$invalid,a=this.$v.streamRecordsData.$each[t].streamRecordTimeout.$invalid||""===this.streamRecordsData[t].streamRecordTimeout,s="custom"===this.streamRecordsData[t].storageTimeType&&(this.$v.streamRecordsData.$each[t].customStorageTime.$invalid||""===this.streamRecordsData[t].customStorageTime);return e||a||s}return!0},isDVRStopBtnDisabled(t){if("true"===this.active&&this.resource&&!this.streamRecordsData[t].buttons.disableDVRStopBtn){let e=this.$v.streamRecordsData.$each[t].DVRTimeout.$invalid||""===this.streamRecordsData[t].DVRTimeout,a="custom"===this.streamRecordsData[t].DVRDuration&&(this.$v.streamRecordsData.$each[t].customDVRDuration.$invalid||""===this.streamRecordsData[t].customDVRDuration);return e||a}return!0},isDVRUpdateBtnDisabled(t){if("true"===this.active&&this.resource&&!this.streamRecordsData[t].buttons.disableDVRUpdateBtn){let e=this.$v.streamRecordsData.$each[t].DVRTimeout.$invalid||""===this.streamRecordsData[t].DVRTimeout,a="custom"===this.streamRecordsData[t].DVRDuration&&(this.$v.streamRecordsData.$each[t].customDVRDuration.$invalid||""===this.streamRecordsData[t].customDVRDuration);return e||a}return!0},isUpdateDisabled(t){return!this.isDVRUpdateBtnDisabled(t)},isStreamRecordStopBtnDisabled(t){if("true"===this.active&&this.resource&&!this.streamRecordsData[t].buttons.disableStreamRecordStopBtn){let e=this.$v.streamRecordsData.$each[t].streamRecordPath.$invalid,a=this.$v.streamRecordsData.$each[t].streamRecordTimeout.$invalid||""===this.streamRecordsData[t].streamRecordTimeout,s="custom"===this.streamRecordsData[t].storageTimeType&&(this.$v.streamRecordsData.$each[t].customStorageTime.$invalid||""===this.streamRecordsData[t].customStorageTime);return e||a||s}return!0},getLockedTextbox(t){let e=!1;return 0!==this.streamRecords.length&&t.recordId&&this.streamRecords.some((a=>{if(a.id===t.recordId)return e=!0,!0})),e},save(){let t={type:this.resourceType,name:this.name,streams:this.streams,cache:this.cache,locations:this.locations,transcode_profile:this.selectedTranscodeProfile};this.needAuthorization&&("local"===this.authorizationType?(this.auth.md5.secret||this.auth.md5.forever||this.auth.md5.anywhere)&&(t.auth={md5:{secret:this.auth.md5.secret||void 0,forever:this.auth.md5.forever||void 0,anywhere:this.auth.md5.anywhere||void 0}}):"external"===this.authorizationType&&this.auth.url&&(t.auth={url:this.auth.url||void 0})),this.limitationsData=this.$refs.limitations.getData(),(Object.keys(this.limitationsData).length>0||this.hadLimitations)&&(t.limitations=this.limitationsData),this.saveSettings(t),this.cancelStreamRecordUpdate()},activate(){Object.keys(this.resource.streams).forEach((t=>{this.resource.streams[t].transcode?delete this.resource.streams[t]:delete this.resource.streams[t].stream_name}));let t={type:this.resourceType,name:this.resource.name,streams:this.resource.streams,active:!0};this.saveSettings(t,"Ресурс активирован.")},showModalStreamRecordUpdate(){this.$modal.show(this.modalName)},cancelStreamRecordUpdate(){this.$modal.hide()},saveSettings(t,e){this.resource?(this.updateStreamRecordResource(),this.$emit("save",this.resourceType,t,e)):this.$emit("save",this.resourceType,t,this.formatNewStreamRecord())},actionStreamRecord(t,e,a){let s=t.id+"_"+t.name,i=vt().utc(),r={stream_type:t.streamType};if(e){if(r.resource_id=this.resource.id,r.stream_name=s,r.path=t.streamRecordPath,r.smil=this.streamRecordSmilFile,this.streamRecordSmilFile){let t={};this.showTranscodeProfiles?Ja(this.selectedTranscodeProfile).forEach((e=>{let a=e+"p",i=s.replace("_smil","")+"_tcode"+a;t[i]=a}
1)):Object.keys(this.streams).forEach((e=>{let a=e+"_"+this.streams[e].name;t[a]=this.streams[e].resolution})),r.qualities=t}"short"===t.streamType?r.stop_timeout=Za(t.streamRecordTimeout):(r.stop_timeout=Za(t.DVRTimeout),"custom"===t.DVRDuration?r.dvr_window=60*Number(t.customDVRDuration):r.dvr_window=60*Number(t.DVRDuration)*60)}else r.action=a;if("short"===t.streamType){if(r.launch_type=t.streamRecordStartType,r.dvr_enabled=t.needDVR,r.path=t.streamRecordPath,"schedule"===t.streamRecordStartType){let a=[];t.schedules.forEach((t=>{let s=vt().tz(t.start,this.dateTimePickerFormat,this.$user.personTimezone).utc(),r=vt().tz(t.stop,this.dateTimePickerFormat,this.$user.personTimezone).utc();s>i?a.push({start:s.format(),stop:r.format()}):e&&s<i&&i<r&&a.push({start:i.format(),stop:r.format()})})),r.schedule=a}"default"===t.storageTimeType?r.storage_time=this.defaultStorageTime:"custom"===t.storageTimeType?r.storage_time=Za(t.customStorageTime):r.storage_time=-1}else r.launch_type=t.DVRStartType,r.storage_time=this.defaultStorageTime,r.dvr_enabled=t.showDVR,r.path=t.streamRecordPath;"start"===a?(t.buttons.disableDVRStartBtn=!0,t.buttons.disableStreamRecordStartBtn=!0,t.buttons.disableDVRStopBtn=!1,t.buttons.disableDVRUpdateBtn=!1,t.buttons.disableStreamRecordStopBtn=!1):"stop"===a&&(t.buttons.disableDVRStartBtn=!1,t.buttons.disableStreamRecordStartBtn=!1,t.buttons.disableDVRStopBtn=!0,t.buttons.disableDVRUpdateBtn=!0,t.buttons.disableStreamRecordStopBtn=!0),this.$emit("saveStreamRecord",r,t.recordId,e)},updateStreamRecordResource(){if(this.showStreamRecordAndDVR){let t=[];this.streamRecordsData.forEach((e=>{let a=!1,s=e.needStreamRecord||e.showStreamRecord;this.streamRecords.some((i=>{if(e.recordId&&e.recordId===i.id){if(s){let t=e.id+"_"+e.name,a=!this.streamRecordSmilFile&&t!==i.source_path.split("/")[2],s=!1;if(this.showTranscodeProfiles){let t=Ja(this.selectedTranscodeProfile);s=this.streamRecordSmilFile&&t!==e.qualities}a||s?(this.actionStreamRecord(e,!1,"deactivate"),this.actionStreamRecord(e,!0)):this.actionStreamRecord(e,!1,"change")}else this.actionStreamRecord(e,!1,"deactivate");let r=e.id+"_"+e.name;return t.push(r),a=!0,!0}})),a||s&&this.actionStreamRecord(e,!0)})),this.streamRecords.forEach((t=>{let e=!1;if(this.streamRecordsData.some((a=>{if(a.recordId&&a.recordId===t.id)return e=!0,!0})),!e){let e=this.initStreamRecord(t);this.actionStreamRecord(e,!1,"deactivate")}}))}else this.streamRecords.forEach((t=>{let e=this.initStreamRecord(t);this.actionStreamRecord(e,!1,"deactivate")}))},formatNewStreamRecord(){let t=[],e=vt().utc();return this.streamRecordsData.forEach((a=>{if(!a.needStreamRecord&&!a.showStreamRecord)return!0;let s=a.id+"_"+a.name,i={stream_name:s,stream_type:a.streamType,path:a.streamRecordPath,smil:this.streamRecordSmilFile};if(this.streamRecordSmilFile){let t={};this.showTranscodeProfiles?Ja(this.selectedTranscodeProfile).forEach((e=>{let a=e+"p",i=s.replace("_smil","")+"_tcode"+a;t[i]=a})):Object.keys(this.streams).forEach((e=>{let a=e+"_"+this.streams[e].name;t[a]=this.streams[e].resolution})),i.qualities=t}if("short"===a.streamType){if(i.launch_type=a.streamRecordStartType,i.stop_timeout=Za(a.streamRecordTimeout),i.dvr_enabled=a.needDVR,a.schedules){let t=[];a.schedules.forEach((a=>{let s=vt().tz(a.start,this.dateTimePickerFormat,this.$user.personTimezone).utc(),i=vt().tz(a.stop,this.dateTimePickerFormat,this.$user.personTimezone).utc();s>e&&t.push({start:s.format(),stop:i.format()})})),i.schedule=t}"default"===a.storageTimeType?i.storage_time=this.defaultStorageTime:"custom"===a.storageTimeType?i.storage_time=Za(a.customStorageTime):i.storage_time=-1}else i.launch_type=a.DVRStartType,i.stop_timeout=Za(a.DVRTimeout),i.storage_time=this.defaultStorageTime,i.dvr_enabled=a.showDVR,"custom"===a.DVRDuration?i.dvr_window=60*Number(a.customDVRDuration):i.dvr_window=60*Number(a.DVRDuration)*60;t.push(i)})),t},sendFormData(t){let e=[];for(const[t,a]of Object.entries(this.streams))e.push(`${t}_${a.name}(${a.resolution})`);var a="";this.needAuthorization?(a=this.findElemFromArrayOfObject(this.authorizationTypes,this.authorizationType).text,"local"===this.authorizationType?(a+=`( секретное слово: ${this.auth.md5.secret}`,this.auth.md5.forever&&(a+=", не ограничивать по времени"),this.auth.md5.anywhere&&(a+=", не учитывать IP адрес"),a+=" )"):a+=`( внешний скрипт: ${this.auth.url} )`):a="Нет";let s=this.$refs.limitations.getDataOrder(),i="";this.options.forEach((t=>{i+=`<p>${t.name}: ${t.cdn1Value?"Да":"Нет"}</p>\n`}));let r=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p>Название потоков: ${e.join(", ")}</p>\n      <p>Транскодирование потока: ${this.showTranscodeProfiles?this.selectedTranscodeProfile:"Нет"}</p>\n      <p>Авторизация: ${a}</p>\n      ${i}\n      <p>Ограничения раздачи: ${s||"Нет"}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,n={client_mail_custom:t.email,client_tel_custom:t.phone,other:r.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(n,r)}}},es=ts,as=(0,f.A)(es,(function(){var t=this,e=t._self._c;
1return e("div",{staticClass:"content-wrapper text-justify live-cdn1-order-form-live-rtmp"},[e("div",{staticClass:"blur",class:{"blur-1px":"false"===t.active,"":"false"!==t.active}},[e("div",{class:{"enable-overlay overlay":"false"===t.active,"disable-overlay overlay":"false"!==t.active}}),e("div",{staticClass:"content-block",class:{first:!this.edit}},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Название потока")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t('Укажите желаемое название потока и качество для отображения в плеере при выборе битрейтов. Нажмите "Кубики" для автоматического формирования названия потока. Добавить можно до 10 потоков.')))]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.streams,(function(a,s,i){return e("div",{key:s,staticClass:"stream relative"},[e("div",{staticClass:"flex align-center gap-2x"},[e("div",{staticClass:"stream-name relative"},[e("textbox",{staticClass:"name",attrs:{maxlength:"40",placeholder:t.$t("Название потока")},on:{blur:function(e){return t.$v.streams.$each[s].$touch()}},model:{value:a.name,callback:function(e){t.$set(a,"name",e)},expression:"stream.name"}}),!a.name||t.$v.streams.$each[s].$invalid?e("Tooltip",{attrs:{content:"$t('Сгенерировать название потока')",placement:"top"}},[e("span",{staticClass:"dices",on:{click:function(e){return t.generateName(s)}}},[e("svg",{staticClass:"dices-btn",staticStyle:{"enable-background":"new 0 0 512 512"},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 512 512","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M323.16,55.683c-5.061-6.69-12.04-11.391-20.181-13.571L150.66,1.29C147.479,0.44,144.21,0,140.93,0    c-8.1,0-16.14,2.71-22.63,7.621c-6.69,5.07-11.38,12.051-13.57,20.191L63.91,180.14c-0.851,3.19-1.28,6.46-1.28,9.721    c0,8.11,2.7,16.141,7.62,22.631c5.06,6.69,12.04,11.391,20.18,13.581l152.32,40.812c3.18,0.851,6.45,1.28,9.729,1.28l0.011-0.05    v0.05c8.1,0,16.13-2.7,22.619-7.62c6.69-5.06,11.381-12.041,13.57-20.172c1.07-4-1.31-8.12-5.3-9.19    c-0.64-0.17-1.29-0.26-1.95-0.26c-3.38,0-6.36,2.29-7.24,5.56c-2.62,9.82-11.55,16.681-21.71,16.691c-1.97,0-3.93-0.27-5.84-0.78    L94.31,211.582c-9.819-2.62-16.68-11.55-16.68-21.721c0-1.96,0.26-3.92,0.77-5.84l40.82-152.329    c2.61-9.82,11.54-16.681,21.71-16.691c1.96,0,3.93,0.26,5.85,0.78L299.1,56.593c9.811,2.62,16.67,11.551,16.68,21.721    c0,1.96-0.26,3.93-0.77,5.84l-33.05,123.348c-0.521,1.94-0.26,3.96,0.75,5.69c1,1.74,2.62,2.98,4.55,3.5    c0.64,0.17,1.29,0.26,1.95,0.26c3.38,0,6.359-2.29,7.24-5.56c0-0.01,0-0.01,0-0.02L329.5,88.035    c0.85-3.18,1.279-6.451,1.279-9.721C330.779,70.204,328.08,62.173,323.16,55.683z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M448.09,423.975c-0.01,0-0.01-0.01-0.01-0.01c-0.88-3.27-3.851-5.55-7.24-5.55c-0.65,0-1.311,0.09-1.94,0.26    c-1.939,0.51-3.55,1.76-4.55,3.49c-1.01,1.74-1.27,3.76-0.75,5.69c0.51,1.92,0.771,3.88,0.771,5.84    c-0.011,10.171-6.87,19.101-16.681,21.721l-152.33,40.812c-1.909,0.51-3.88,0.77-5.84,0.78c-10.17-0.01-19.1-6.871-21.71-16.691    l-40.82-152.328c-0.511-1.92-0.771-3.881-0.771-5.841c0-10.171,6.86-19.101,16.68-21.721l152.32-40.812    c1.91-0.51,3.88-0.77,5.84-0.78c10.17,0.01,19.101,6.871,21.72,16.691l33.051,123.347c0.88,3.28,3.859,5.56,7.239,5.56    c0.65,0,1.311-0.08,1.94-0.25c4-1.07,6.38-5.2,5.31-9.19c0,0,0-0.01-0.01-0.01l-33.04-123.337    c-2.189-8.14-6.88-15.121-13.569-20.181c-6.49-4.92-14.521-7.631-22.641-7.631c-3.28,0-6.55,0.44-9.72,1.29l-152.32,40.812    c-8.14,2.19-15.12,6.891-20.18,13.581c-4.92,6.491-7.62,14.531-7.62,22.631c0,3.28,0.43,6.551,1.29,9.731l40.81,152.329    c2.19,8.13,6.881,15.111,13.57,20.181c6.49,4.91,14.521,7.611,22.62,7.611h0.01c3.271,0,6.54-0.43,9.721-1.28l152.329-40.812    c8.141-2.19,15.12-6.89,20.181-13.58c4.91-6.491,7.62-14.521,7.62-22.632C449.37,430.425,448.939,427.155,448.09,423.975z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M376.092,315.042c-4.282-15.979-20.763-25.495-36.742-21.215c-7.74,2.074-14.21,7.039-18.217,13.979    c-4.007,6.94-5.07,15.025-2.996,22.765c2.073,7.741,7.037,14.211,13.978,18.218c4.623,2.669,9.752,4.032,14.951,4.032    c2.605,0,5.229-0.343,7.813-1.035C370.857,347.504,380.373,331.021,376.092,315.042z M350.996,337.295    c-3.871,1.038-7.914,0.503-11.382-1.498c-3.469-2.003-5.952-5.238-6.989-9.109c-1.037-3.87-0.505-7.913,1.498-11.383    c2.004-3.47,5.238-5.952,9.109-6.989c1.295-0.347,2.597-0.513,3.878-0.513c6.622,0,12.699,4.427,14.493,11.12    C363.743,326.913,358.985,335.154,350.996,337.295z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M312.452,425.274c-4.282-15.979-20.761-25.497-36.743-21.214c-15.978,4.282-25.493,20.765-21.212,36.744    c2.073,7.741,7.037,14.21,13.978,18.217c4.623,2.67,9.752,4.033,14.951,4.033c2.605,0,5.229-0.343,7.813-1.035    C307.217,457.737,316.733,441.254,312.452,425.274z M287.356,447.529c-3.872,1.037-7.912,0.504-11.382-1.499    c-3.47-2.004-5.952-5.238-6.989-9.108c-2.14-7.99,2.618-16.231,10.606-18.373c7.984-2.14,16.23,2.617,18.372,10.607    C300.
1104,437.147,295.346,445.388,287.356,447.529z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M315.294,347.92c-16.542,0-30,13.459-30,30.002c0,16.543,13.458,30.002,30,30.002s30-13.459,30-30.002    C345.294,361.379,331.836,347.92,315.294,347.92z M315.294,392.923c-8.271,0-15-6.729-15-15.001c0-8.271,6.729-15.001,15-15.001    s15,6.729,15,15.001C330.294,386.193,323.565,392.923,315.294,392.923z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M190.867,63.97c-4.007-6.94-10.477-11.905-18.217-13.978c-15.975-4.281-32.46,5.235-36.742,21.215    c-4.281,15.979,5.235,32.462,21.213,36.744c2.585,0.692,5.208,1.035,7.813,1.035c5.198,0,10.329-1.363,14.951-4.032    c6.941-4.008,11.905-10.477,13.978-18.218C195.937,78.995,194.874,70.91,190.867,63.97z M179.375,82.853    c-1.037,3.871-3.52,7.106-6.989,9.109c-3.471,2.003-7.513,2.535-11.382,1.498c-7.989-2.141-12.747-10.382-10.607-18.372    c1.794-6.694,7.87-11.12,14.493-11.12c1.281,0,2.583,0.166,3.878,0.513c0,0,0,0,0.001,0c3.87,1.037,7.104,3.519,9.108,6.989    C179.88,74.94,180.412,78.982,179.375,82.853z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M259.584,73.287c-15.975-4.283-32.461,5.235-36.742,21.215c-4.281,15.979,5.235,32.462,21.213,36.744    c2.591,0.694,5.194,1.025,7.758,1.025c13.243,0,25.396-8.852,28.984-22.24C285.078,94.052,275.562,77.569,259.584,73.287z     M266.309,106.148c-2.142,7.99-10.386,12.748-18.371,10.608c-7.989-2.141-12.747-10.382-10.607-18.372    c1.794-6.695,7.87-11.121,14.493-11.121c1.281,0,2.583,0.166,3.878,0.513C263.69,89.917,268.448,98.159,266.309,106.148z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M149.357,136.93c-7.744-2.074-15.826-1.01-22.765,2.997c-6.94,4.007-11.904,10.477-13.978,18.217    c-2.074,7.741-1.011,15.826,2.996,22.766c4.007,6.94,10.476,11.904,18.216,13.979c2.592,0.694,5.193,1.025,7.758,1.025    c13.243,0,25.397-8.853,28.985-22.241C174.852,157.695,165.335,141.212,149.357,136.93z M156.082,169.792    c-2.142,7.989-10.386,12.749-18.372,10.608c-3.87-1.037-7.104-3.519-9.108-6.989c-2.003-3.47-2.535-7.513-1.498-11.383    s3.52-7.105,6.989-9.108c2.312-1.335,4.876-2.016,7.476-2.016c1.303,0,2.614,0.171,3.906,0.518    C153.464,153.561,158.222,161.802,156.082,169.792z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M236.291,160.225c-15.979-4.279-32.462,5.236-36.743,21.215c-4.281,15.979,5.235,32.462,21.213,36.744    c2.585,0.692,5.208,1.035,7.813,1.035c5.198,0,10.329-1.363,14.951-4.032c6.94-4.007,11.904-10.477,13.978-18.217    C261.784,180.991,252.269,164.507,236.291,160.225z M243.015,193.087c-1.037,3.87-3.52,7.105-6.989,9.108    c-3.471,2.003-7.513,2.534-11.382,1.498c-7.989-2.141-12.747-10.382-10.607-18.372c1.794-6.694,7.871-11.12,14.494-11.12    c1.281,0,2.583,0.166,3.879,0.513h-0.001C240.396,176.855,245.155,185.098,243.015,193.087z"}})])]),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("select",{directives:[{name:"model",rawName:"v-model",value:a.resolution,expression:"stream.resolution"}],staticClass:"resolution",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"resolution",e.target.multiple?s:s[0])}}},t._l(t.resolutions,(function(a){return e("option",{domProps:{value:a,textContent:t._s(a)}})})),0),t.showTranscodeProfiles?t._e():e("div",{staticClass:"action-buttons"},[e("Tooltip",{attrs:{content:t.$t("Удалить поток")}},[e("div",{staticClass:"remove",class:t.removeToolTip(i),style:{display:t.removeVisible(t.getStreamsLength())},on:{click:function(e){return t.removeStream(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")])])]),0===i&&t.getStreamsLength()<10?e("Tooltip",{attrs:{content:t.$t("Добавить поток"),placement:"top"}},[e("div",{staticClass:"add",on:{click:t.addStream}},[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()],1),0===i?e
1("Tooltip",{attrs:{content:t.$t(t.inputHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),t.$v.streams.$each[s].$invalid?e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]):t._e()])})),0)],1),e("div",{staticClass:"content-block"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Транскодирование потока")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Во избежание проблем с трансляцией, поток должен обладать "))),e("a",{on:{click:t.toggleStreamProperties}},[t._v(t._s(t.$t("определенными свойствами.")))])]),t.showStreamProperties?e("ol",t._l(this.streamProperties,(function(a){return e("li",{staticClass:"text-extralight"},[t._v(t._s(t.$t(a)))])})),0):t._e(),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Транскодирование необходимо для создания мультибитрейт потоков. На выходе вы получаете несколько потоков разного качества, что позволяет пользователю выбрать подходящий для него вариант вручную или оставить адаптивный поток, который настраивается автоматически в зависимости от ширины канала пользователя. Это исключит проблему буферизации у зрителей с медленным интернетом и улучшит пользовательский опыт.")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если не желаете опубликовывать все качества самостоятельно.")))]),e("toggle",{staticClass:"margin-bottom",attrs:{requestPaidServiceConfirmation:!0},on:{input:t.transcodeSwitcherInputActions},model:{value:t.showTranscodeProfiles,callback:function(e){t.showTranscodeProfiles=e},expression:"showTranscodeProfiles"}}),t.showTranscodeProfiles?e("div",[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите подходящий пакет для преобразования Вашего потока в несколько качеств.")))]),e("div",{staticClass:"transcode-profiles row justify-center flex-wrap"},t._l(t.transcodeProfiles,(function(a){return e("transcode-profile",{key:a.id,staticClass:"col-sm-4",attrs:{active:a.id===t.selectedTranscodeProfile,tcprofile:a},on:{order:function(e){return t.setSelectedTranscodeProfile(a.id)}}})})),1)]):t._e()],1),e("div",{staticClass:"content-block"},[e("label",{staticClass:"margin-top clickable pseudo-link",on:{click:t.toggleOptions}},[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("div",{directives:[{name:"show",rawName:"v-show",value:t.showOptions,expression:"showOptions"}]},[e("div",{staticClass:"s520 margin-top-2x margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Авторизация")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать дополнительную авторизацию.")))]),e("toggle",{staticClass:"margin-bottom",attrs:{requestPaidServiceConfirmation:!0},model:{value:t.needAuthorization,callback:function(e){t.needAuthorization=e},expression:"needAuthorization"}})],1),t.needAuthorization?e("div",{staticClass:"margin-bottom-2x"},[e("div",{staticClass:"s520"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.authorizationType,expression:"authorizationType"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.authorizationType=e.target.multiple?a:a[0]}}},t._l(t.authorizationTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),"local"===t.authorizationType?e("div",{staticClass:"localAuthorization"},[e("div",{staticClass:"s520i margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к HLS потокам используются специальные ссылки. Авторизационные параметры проверяются в момент обращения зрителей за объектами playlist.m3u8 и chunklist.m3u8. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("rtmp-publish-local-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"100",placeholder:t.$t("Укажите секретное слово")},model:{value:t.auth.md5.secret,callback:function(e){t.$set(t.auth.md5,"secret",e)},expression:"auth.md5.secret"}})],1),e("Tooltip",{attrs:{content:t.$t(t.authHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.$v.auth.md5.secret.latinNumeric?t._e():e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]),e("div",{staticClass:"margin-bottom-2x"}),e("div",{staticClass:"s520"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.forever,expression:"auth.md5.forever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.forever)?t._i(t.auth.md5.forever,null)>-1:t.auth.md5.forever},on:{change:function(e){var a=t.auth.md5.forever,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"forever",a.concat([null])):r>-1&&t.$set(t.auth.md5,"forever",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"forever",i)}}}),e("span",[t._v(t._s(t.$t("Не ограничивать по времени.")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.anywhere,expression:"auth.md5.anywhere"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.anywhere)?t._i(t.auth.md5.anywhere,null)>-1:t.auth.md5.anywhere},on:{change:function(e){var a=t.auth.md5.anywhere,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"anywhere",a.concat([null])):r>-1&&t.$set(t.auth.md5,"anywhere",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"anywhere",i)}}}),e("span",[t._v(t._s(t.$t("Не учитывать IP адрес.")))])])])])],1):t._e(),"external"===t.authorizationType?e("div",{staticClass:"externalAuthorization"},[e("div",{staticClass:"s520i margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к HLS потокам используется внешний скрипт авторизации. Авторизационные параметры проверяются в момент обращения зрителей за объектами playlist.m3u8 и chunklist.m3u8. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("rtmp-publish-external-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"200",placeholder:t.$t("Укажите ссылку на внешний скрипт")},model:{value:t.auth.url,callback:function(e){t.$set(t.auth,"url",e)},expression:"auth.url"}})],1),t.$v.auth.url.externalAuthLink?t._e():e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))])]):t._e()]):t._e(),e("Limitations",{key:"limitations",ref:"limitations",attrs:{data:t.limitationsData},on:{valid:t.setValidLimitations}}),this.$user.isCDN1()?e("div",{staticClass:"s520"}
1,t._l(t.options,(function(a){return e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t(a.name)))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(a.description)))]),e("toggle",{staticClass:"margin-bottom",model:{value:a.cdn1Value,callback:function(e){t.$set(a,"cdn1Value",e)},expression:"option.cdn1Value"}})],1)})),0):e("div",{staticClass:"s520 margin-top"},t._l(t.options,(function(a){return e("OptionOrderModal",{staticClass:"margin-bottom-2x",attrs:{optionName:a.name,modalName:a.modalName,optionDescription:a.description,checkboxElements:a.checkboxElements,checkboxLabel:a.checkboxLabel,orderFormName:t.formName}})})),1),e("div",{staticClass:"margin-bottom-2x"}),this.$user.isCDN1()?t._e():[e("div",{staticClass:"s520i"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Название ресурса")))]),e("p",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Название ресурса автоматически генерируется при создании LIVE ресурса. Если Вы хотите назвать ресурс самостоятельно, введите название в поле.")))]),e("div",{staticClass:"flex align-center gap-2x"},[e("textbox",{staticClass:"grow rname",attrs:{maxlength:"40",placeholder:t.$t("Название ресурса")},on:{blur:function(e){return t.$v.name.$touch()}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),e("Tooltip",{attrs:{content:t.$t(t.inputHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.$v.name.$error?e("div",{staticClass:"s520 has-error margin-right-4x"},[t._v(t._s(t.$t("Введите валидное значение")))]):t._e()])]],2)])],1),this.$user.isCDN1()?e("div",{staticClass:"content-block last"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.sendFormData}})],1):["true"===t.active?e("div",{staticClass:"content-block last"},[t.saving?e("div",{staticClass:"flex full-width spinner-btn-wrapper"},[e("Spinner",{staticClass:"grow flex justify-center align-center",attrs:{adaptiveHeight:!0}}),e("btn",{staticClass:"btn-height-source"},[t._v(" ")])],1):[t.activeStreamRecord?t._e():e("btn",{attrs:{disabled:t.$v.$invalid||t.noNames||!this.validLimitations},on:{click:t.save}},[t._v(t._s(t.$t(t.buttonText)))]),t.activeStreamRecord?e("btn",{attrs:{disabled:t.$v.$invalid||t.noNames||!this.validLimitations},on:{click:t.showModalStreamRecordUpdate}},[t._v(t._s(t.$t(t.buttonText)))]):t._e()],e("modal",{attrs:{name:t.modalName},on:{close:t.cancelStreamRecordUpdate}},[e("template",{slot:"header"},[t._v(t._s(t.$t("Уверены?")))]),e("template",{slot:"content"},[t._v(t._s(t.$t(t.modalText)))]),e("template",{slot:"footer"},[e("btn",{on:{click:t.save}},[t._v(t._s(t.$t("Подтвердить")))]),e("btn",{attrs:{type:"secondary"},on:{click:t.cancelStreamRecordUpdate}},[t._v(t._s(t.$t("Отмена")))])],1)],2)],2):t._e()]],2),"false"===t.active?e("div",{staticClass:"content-block last"},[t.saving?e("div",{staticClass:"flex full-width 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.$v.$invalid},on:{click:t.activate}}
1,[t._v(t._s(t.$t(t.buttonText)))])],1):t._e()])}),[],!1,null,null,null).exports;let ss={"got dublicate targets":"Указано несколько одинаковых точек рестриминга.","field schedule - stop should be more than a start":"Окончание рестриминга не может быть раньше начала.","field name - unsatisfactory format":"Некорректное имя ресурса.","field restreams - unsatisfactory format":"Некорректный формат параметра restreams.","field source - unsatisfactory format":"Некорректный формат параметра source.","field transcoded - unsatisfactory format":"Некорректный формат параметра transcoded.","field target_type - unsatisfactory format":"Некорректный формат параметра target_type.","field target_url - unsatisfactory format":"Некорректный формат параметра target_url.","field target_key - unsatisfactory format":"Некорректный формат параметра target_key.","fields login, password - unsatisfactory format":"Некорректный формат параметров login, password.","field schedule - unsatisfactory format":"Некорректный формат параметра schedule.","field backup - unsatisfactory format":"Некорректный формат параметра backup.","Client not found":"Клиент не найден.","resource_id not found":"Ресурс с таким идентификатором не найден.","failed to validate sources":"Ошибка при валидации исходных потоков."};var is={data(){return{ymTargetName:"",saving:!1}},methods:{resource_route(t){return"live"===t?"resource-live":"restream"===t?"resource-restream":"resource-http"},save(t,e,a){this.saving=!0,"restream"===t?this.saveRestreamResource(t,e):this.createResource(t,e,a)},createResource(t,e,a){let s=this.$user.accountName,i="http"===t?"http":"live",r={accountName:s,type:i},n=e;this.$api.createResource(r,n).then((r=>{this.$user.resourcesByType[t]+=1,this.$toast.show({text:"Ресурс создан."}),this.sendYMTarget(this.ymTargetName);let n={name:s,type:i};this.$api.getResources(n).then((t=>{t.data.forEach((function(t){t.name===e.name&&(e.id=t.id)})),e.id?this.$router.push({name:this.resource_route(i),params:{id:e.id,target:"config"}}):this.$message.error({message:$t("При создании ресурса произошла ошибка"),duration:5e3}),a&&this.saveStreamRecord(a,e.id)}))})).catch((()=>{this.$message.error({message:$t("При создании ресурса произошла ошибка"),duration:5e3})})).finally((()=>{this.saving=!1}))},saveRestreamResource(t,e){let a={name:this.$user.accountName};this.$api.createRestreamResource(a,e).then((e=>{let a=function(t){if(!t.success)return"message"in t?t.message in ss?ss[t.message]:t.message:"Error"}(e.data);if(a)a=$t(a).toString(),this.$toast.show({html:(0,Xe.A)(a,this.$i18n.locale),lifetime:7e3});else{this.$user.resourcesByType[t]+=1;let a="Ресурс создан.",s=4e3;this.$toast.show({text:a,lifetime:s}),this.sendYMTarget(this.ymTargetName),e.data.resource_id?this.$router.push({name:this.resource_route(t),params:{id:e.data.resource_id,target:"edit"}}):this.$router.push({name:"resources",params:{target:"restream"}})}})).catch((()=>{this.$toast.show({text:"При создании ресурса произошла ошибка"})})).finally((()=>{this.saving=!1}))}}},rs=is,ns=(0,f.A)(rs,void 0,void 0,!1,null,null,null).exports,os={name:"ResourceNewLive",mixins:[ns],components:{FormLiveRtmp:as,Btn:h.A,Scrolled:fe.A,ArrowCircleIcon:ce.A,Wrench:Pt.A},data(){return{ymTargetName:"rtmp_resource_creation_button"}},computed:{buttonText(){return this.$user.isCDN1()?"Заказать услугу":"Создать ресурс"}},methods:{goToOrderSelect(){this.$router.push({name:"streaming-ne
1w-cdn-1"})}}},cs=(0,f.A)(os,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"flex column full-height"},[e("div",{staticClass:"grow relative"},[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToOrderSelect}},[e("ArrowCircleIcon")],1),this.$user.isCDN1()?e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s("RTMP/RTSP-publish"))]),e("Wrench")],1):e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Создание RTMP/RTSP-publish ресурса")))])],1),e("form-live-rtmp",{attrs:{saving:t.saving,buttonText:t.$t(t.buttonText)},on:{save:t.save}})],1)])])}),[],!1,null,"482261fa",null).exports;function ls(t,e,a){let i={};return s.default.set(i,"name",t||""),s.default.set(i,"password",e||""),s.default.set(i,"resolution",a||"720p"),i}function ds(){let t=ms(),e=ls(),a={};return s.default.set(a,t,e),a}function us(t){return/^((?!_tcode)[\w\d\-._])*$/i.test(t)}function ms(){return Math.random().toString(36).substring(2,12)}function ps(){return Math.random().toString(36).substring(2,15)}var hs={name:"ResourceFormLiveSrt",components:{Btn:h.A,Textbox:p.A,Toggle:ct.A,Modal:Tt.A,Codes:Ma,TranscodeProfile:Ua,Spinner:kt.A,TriangleArrow:Dt.A,FormFooter:Ba,OptionOrderModal:Lt,Limitations:Ia},mixins:[Z.A],props:{buttonText:{type:String},resource:{type:Object},saving:{type:Boolean,default:!1},active:{type:String,default:"true"},edit:{type:Boolean,default:!1}},validations:{name:{domain:us,minLength:(0,W.Bp)(5)},streams:{$each:{name:{domain:us,minLength:(0,W.Bp)(5)}}},auth:{md5:{secret:{latinNumeric:Ha}},url:{externalAuthLink:Fa}}},data(){return{formName:"SRT-publish",resourceType:"SRT-publish",name:"live-"+ps(),inputHint:"Используйте комбинацию из букв латинского алфавита (a-z/A-Z), цифр (0-9), символов подчеркивания (_), точки (.) и дефисов (-). Максимальное количество символов - 40, минимальное - 5.",showOptions:"true"!==this.active,resolutions:["144p","240p","360p","480p","720p","1080p"],streams:ds(),showTranscodeProfiles:!1,transcodeProfiles:[{id:"360_480_720",name:"Базовый",description:"3 качества",features:["Качества:\n360p, 480p, 720p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]},{id:"480_720_1080",name:"Оптимальный",description:"3 качества",features:["Качества:\n480p, 720p, 1080p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]},{id:"360_480_720_1080",name:"Расширенный",description:"4 качества",features:["Качества:\n360p, 480p, 720p, 1080p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]}],selectedTranscodeProfile:"",showStreamProperties:!1,streamProperties:["протокол: SRT;","кодек для видео: h.264;","кодек для аудио: AAC/mp3."],authHint:"Используйте комбинацию из букв латинского алфавита (a-z/A-Z) и цифр (0-9). Максимальное количество символов - 100.",auth:{md5:{secret:"",forever:!1,anywhere:!1},url:""},needAuthorization:!1,authorizationTypes:[{value:"local",text:"Локальная авторизация (на основе подписи)"},{value:"external",text:"Внешняя авторизация"}],authorizationType:"local",cache:void 0,locations:void 0,defaultOptions:[{name:"Протоколы раздачи потока",modalName:"convert",cdn1Value:!1,checkboxElements:[{name:"RTMP",value:!1},{name:"MPEG-DASH",value:!1},{name:"MSS",value:!1},{name:"Low Latency Streaming",value:!1}],checkboxLabel:"Выберите необходимые протоколы",description:"По умолчанию мы предоставляем возможность просмотра трансляции в HLS. Активируйте, если планируете использовать другие протоколы раздачи (RTMP, MPEG-DASH, MSS, Low Latency Streaming)."}],limitationsData:void 0,hadLimitations:!1,validLimitations:!0}},created(){this.resource&&this.init(this.resource)},computed:{triangleArrowStyle(){return{transform:this.showOptions?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showOptions?"-2px":"2px"}},tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}},noNames(){let t=!1;
1return Object.keys(this.streams).forEach((e=>{0===this.streams[e].name.length&&(t=!0)})),t},options(){return this.$user.isCDN1()?[{name:"DVR",modalName:"dvr",cdn1Value:!1,description:"Активируйте, если необходимо использовать навигацию по эфиру (DVR)."},{name:"Запись потока",modalName:"record",cdn1Value:!1,description:"Активируйте, если необходимо сохранить запись потока."}].concat(this.defaultOptions):this.defaultOptions}},methods:{removeVisible(t){return t<2?"none":""},removeToolTip(t){return t>0?{"simptip-position-right":!0,"simptip-fade":!0,"simptip-smooth":!0}:this.tipObjectTop},init(t){this.name=t.name,this.streams={},Object.keys(t.streams).forEach((e=>{if(!t.streams[e].transcode){let a=ls(t.streams[e].name,t.streams[e].password,t.streams[e].resolution||"720p");s.default.set(this.streams,e,a)}})),this.selectedTranscodeProfile=t.settings[t.type].transcode_profile||"",this.showTranscodeProfiles=!!this.selectedTranscodeProfile,Object.assign(this.auth,t.auth),JSON.stringify(this.auth.md5)!==JSON.stringify({secret:"",forever:!1,anywhere:!1})?(this.needAuthorization=!0,this.authorizationType="local"):""!==this.auth.url&&(this.needAuthorization=!0,this.authorizationType="external"),this.cache=t.cache,this.locations=t.locations,this.limitationsData=t.limitations||{},Object.keys(this.limitationsData).length>0&&(this.hadLimitations=!0)},toggleOptions(){this.showOptions=!this.showOptions},transcodeSwitcherInputActions(){let t=Object.keys(this.streams)[0],e=this.streams[t];this.streams={},this.streams[t]=e,this.selectedTranscodeProfile=this.showTranscodeProfiles?this.transcodeProfiles[0].id:""},toggleStreamProperties(){this.showStreamProperties=!this.showStreamProperties},addStream(){let t=ms(),e=ls();s.default.set(this.streams,t,e)},removeStream(t){s.default.delete(this.streams,t)},getStreamsLength(){return Object.keys(this.streams).length},getLastStreamIndex(){return this.getStreamsLength()-1},setSelectedTranscodeProfile(t){this.selectedTranscodeProfile=t},generateName(t){this.streams[t].name=Math.random().toString(36).substring(2,15)},setValidLimitations(t){this.validLimitations=t},save(){let t={type:this.resourceType,name:this.name,streams:this.streams,cache:this.cache,locations:this.locations,transcode_profile:this.selectedTranscodeProfile};this.needAuthorization&&("local"===this.authorizationType?(this.auth.md5.secret||this.auth.md5.forever||this.auth.md5.anywhere)&&(t.auth={md5:{secret:this.auth.md5.secret||void 0,forever:this.auth.md5.forever||void 0,anywhere:this.auth.md5.anywhere||void 0}}):"external"===this.authorizationType&&this.auth.url&&(t.auth={url:this.auth.url||void 0})),this.limitationsData=this.$refs.limitations.getData(),(Object.keys(this.limitationsData).length>0||this.hadLimitations)&&(t.limitations=this.limitationsData),this.$emit("save",this.resourceType,t)},activate(){Object.keys(this.resource.streams).forEach((t=>{this.resource.streams[t].transcode?delete this.resource.streams[t]:delete this.resource.streams[t].stream_name}));let t={type:this.resourceType,name:this.resource.name,streams:this.resource.streams,active:!0};this.$emit("save",this.resourceType,t,"Ресурс активирован.")},sendFormData(t){let e=[];for(const[t,a]of Object.entries(this.streams))e.push(`${t}_${a.name}(${a.resolution})`);var a="";this.needAuthorization?(a=this.findElemFromArrayOfObject(this.authorizationTypes,this.authorizationType).text,"local"===this.authorizationType?(a+=`( секретное слово: ${this.auth.md5.secret}`,this.auth.md5.forever&&(a+=", не ограничивать по времени"),this.auth.md5.anywhere&&(a+=", не учитывать IP адрес"),a+=" )"):a+=`( внешний скрипт: ${this.auth.url} )`):a="Нет";let s=this.$refs.limitations.getDataOrder(),i="";this.options.forEach((t=>{i+=`<p>${t.name}: ${t.cdn1Value?"Да":"Нет"}</p>\n`}));let r=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p>Название потоков: ${e.join(", ")}</p>\n      <p>Транскодирование потока: ${this.showTranscodeProfiles?this.selectedTranscodeProfile:"Нет"}</p>\n      <p>Авторизация: ${a}</p>\n      ${i}\n      <p>Ограничения раздачи: ${s||"Нет"}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,n={client_mail_custom:t.email,client_tel_custom:t.phone,other:r.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(n,r)}},generateResourceName:ps,generateId:ms},gs={name:"ResourceNewLiveSrt",mixins:[ns],components:{ResourceFormLiveSrt:(0,f.A)(hs,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper live-cdn1-order-form-live-srt"},[e("div",{staticClass:"blur",class:{"blur-1px":"false"===t.active,"":"false"!==t.active}},[e("div",{class:{"enable-overlay overlay":"false"===t.active,"disable-overlay overlay":"false"!==t.active}}),e("div",{staticClass:"content-block",class:{first:!this.edit}},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Название потока")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t('Укажите желаемое название потока и качество для отображения в плеере при выборе битрейтов. Нажмите "Кубики" для автоматического формирования названия потока. Добавить можно до 10 потоков.')))]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.streams,(function(a,s,i){return e("div",{key:s,staticClass:"stream"},[e("div",{staticClass:"flex align-center"},[e("div",{staticClass:"flex justify-between gap-2x"},[e("div",{staticClass:"stream-name name"},[e("textbox",{attrs:{maxlength:"40",placeholder:t.$t("Название потока")},on:{blur:function(e){return t.$v.streams.$each[s].$touch()}},model:{value:a.name,callback:function(e){t.$set(a,"name",e)},expression:"stream.name"}},[e("template",{slot:"button-1"},[!a.name||t.$v.streams.$each[s].$invalid?e("Tooltip",{attrs:{content:t.$t("Сгенерировать название потока"),placement:"top"}},[e("span",{staticClass:"dices",on:{click:function(e){return t.generateName(s)}}},[e("svg",{staticClass:"dices-btn",staticStyle:{"enable-background":"new 0 0 512 512"},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 512 512","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M323.16,55.683c-5.061-6.69-12.04-11.391-20.181-13.571L150.66,1.29C147.479,0.44,144.21,0,140.93,0    c-8.1,0-16.14,2.71-22.63,7.621c-6.69,5.07-11.38,12.051-13.57,20.191L63.91,180.14c-0.851,3.19-1.28,6.46-1.28,9.721    c0,8.11,2.7,16.141,7.62,22.631c5.06,6.69,12.04,11.391,20.18,13.581l152.32,40.812c3.18,0.851,6.45,1.28,9.729,1.28l0.011-0.05    v0.05c8.1,0,16.13-2.7,22.619-7.62c6.69-5.06,11.381-12.041,13.57-20.172c1.07-4-1.31-8.12-5.3-9.19    c-0.64-0.17-1.29-0.26-1.95-0.26c-3.38,0-6.36,2.29-7.24,5.56c-2.62,9.82-11.55,16.681-21.71,16.691c-1.97,0-3.93-0.27-5.84-0.78    L94.31,211.582c-9.819-2.62-16.68-11.55-16.68-21.721c0-1.96,0.26-3.92,0.77-5.84l40.82-152.329    c2.61-9.82,11.54-16.681,21.71-16.691c1.96,0,3.93,0.26,5.85,0.78L299.1,56.593c9.811,2.62,16.67,11.551,16.68,21.721    c0,1.96-0.26,3.93-0.77,5.84l-33.05,123.348c-0.521,1.94-0.26,3.96,0.75,5.69c1,1.74,2.62,2.98,4.55,3.5    c0.64,0.17,1.29,0.26,1.95,0.26c3.38,0,6.359-2.29,7.24-5.56c0-0.01,0-0.01,0-0.02L329.5,88.035    c0.85-3.18,1.279-6.451,1.279-9.721C330.779,70.204,328.08,62.173,323.16,55.683z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M448.09,423.975c-0.01,0-0.01-0.01-0.01-0.01c-0.88-3.27-3.851-5.55-7.24-5.55c-0.65,0-1.311,0.09-1.94,0.26    c-1.939,0.51-3.55,1.76-4.55,3.49c-1.01,1.74-1.27,3.76-0.75,5.69c0.51,1.92,0.771,3.88,0.771,5.84    c-0.011,
110.171-6.87,19.101-16.681,21.721l-152.33,40.812c-1.909,0.51-3.88,0.77-5.84,0.78c-10.17-0.01-19.1-6.871-21.71-16.691    l-40.82-152.328c-0.511-1.92-0.771-3.881-0.771-5.841c0-10.171,6.86-19.101,16.68-21.721l152.32-40.812    c1.91-0.51,3.88-0.77,5.84-0.78c10.17,0.01,19.101,6.871,21.72,16.691l33.051,123.347c0.88,3.28,3.859,5.56,7.239,5.56    c0.65,0,1.311-0.08,1.94-0.25c4-1.07,6.38-5.2,5.31-9.19c0,0,0-0.01-0.01-0.01l-33.04-123.337    c-2.189-8.14-6.88-15.121-13.569-20.181c-6.49-4.92-14.521-7.631-22.641-7.631c-3.28,0-6.55,0.44-9.72,1.29l-152.32,40.812    c-8.14,2.19-15.12,6.891-20.18,13.581c-4.92,6.491-7.62,14.531-7.62,22.631c0,3.28,0.43,6.551,1.29,9.731l40.81,152.329    c2.19,8.13,6.881,15.111,13.57,20.181c6.49,4.91,14.521,7.611,22.62,7.611h0.01c3.271,0,6.54-0.43,9.721-1.28l152.329-40.812    c8.141-2.19,15.12-6.89,20.181-13.58c4.91-6.491,7.62-14.521,7.62-22.632C449.37,430.425,448.939,427.155,448.09,423.975z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M376.092,315.042c-4.282-15.979-20.763-25.495-36.742-21.215c-7.74,2.074-14.21,7.039-18.217,13.979    c-4.007,6.94-5.07,15.025-2.996,22.765c2.073,7.741,7.037,14.211,13.978,18.218c4.623,2.669,9.752,4.032,14.951,4.032    c2.605,0,5.229-0.343,7.813-1.035C370.857,347.504,380.373,331.021,376.092,315.042z M350.996,337.295    c-3.871,1.038-7.914,0.503-11.382-1.498c-3.469-2.003-5.952-5.238-6.989-9.109c-1.037-3.87-0.505-7.913,1.498-11.383    c2.004-3.47,5.238-5.952,9.109-6.989c1.295-0.347,2.597-0.513,3.878-0.513c6.622,0,12.699,4.427,14.493,11.12    C363.743,326.913,358.985,335.154,350.996,337.295z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M312.452,425.274c-4.282-15.979-20.761-25.497-36.743-21.214c-15.978,4.282-25.493,20.765-21.212,36.744    c2.073,7.741,7.037,14.21,13.978,18.217c4.623,2.67,9.752,4.033,14.951,4.033c2.605,0,5.229-0.343,7.813-1.035    C307.217,457.737,316.733,441.254,312.452,425.274z M287.356,447.529c-3.872,1.037-7.912,0.504-11.382-1.499    c-3.47-2.004-5.952-5.238-6.989-9.108c-2.14-7.99,2.618-16.231,10.606-18.373c7.984-2.14,16.23,2.617,18.372,10.607    C300.104,437.
1147,295.346,445.388,287.356,447.529z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M315.294,347.92c-16.542,0-30,13.459-30,30.002c0,16.543,13.458,30.002,30,30.002s30-13.459,30-30.002    C345.294,361.379,331.836,347.92,315.294,347.92z M315.294,392.923c-8.271,0-15-6.729-15-15.001c0-8.271,6.729-15.001,15-15.001    s15,6.729,15,15.001C330.294,386.193,323.565,392.923,315.294,392.923z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M190.867,63.97c-4.007-6.94-10.477-11.905-18.217-13.978c-15.975-4.281-32.46,5.235-36.742,21.215    c-4.281,15.979,5.235,32.462,21.213,36.744c2.585,0.692,5.208,1.035,7.813,1.035c5.198,0,10.329-1.363,14.951-4.032    c6.941-4.008,11.905-10.477,13.978-18.218C195.937,78.995,194.874,70.91,190.867,63.97z M179.375,82.853    c-1.037,3.871-3.52,7.106-6.989,9.109c-3.471,2.003-7.513,2.535-11.382,1.498c-7.989-2.141-12.747-10.382-10.607-18.372    c1.794-6.694,7.87-11.12,14.493-11.12c1.281,0,2.583,0.166,3.878,0.513c0,0,0,0,0.001,0c3.87,1.037,7.104,3.519,9.108,6.989    C179.88,74.94,180.412,78.982,179.375,82.853z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M259.584,73.287c-15.975-4.283-32.461,5.235-36.742,21.215c-4.281,15.979,5.235,32.462,21.213,36.744    c2.591,0.694,5.194,1.025,7.758,1.025c13.243,0,25.396-8.852,28.984-22.24C285.078,94.052,275.562,77.569,259.584,73.287z     M266.309,106.148c-2.142,7.99-10.386,12.748-18.371,10.608c-7.989-2.141-12.747-10.382-10.607-18.372    c1.794-6.695,7.87-11.121,14.493-11.121c1.281,0,2.583,0.166,3.878,0.513C263.69,89.917,268.448,98.159,266.309,106.148z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M149.357,136.93c-7.744-2.074-15.826-1.01-22.765,2.997c-6.94,4.007-11.904,10.477-13.978,18.217    c-2.074,7.741-1.011,15.826,2.996,22.766c4.007,6.94,10.476,11.904,18.216,13.979c2.592,0.694,5.193,1.025,7.758,1.025    c13.243,0,25.397-8.853,28.985-22.241C174.852,157.695,165.335,141.212,149.357,136.93z M156.082,169.792    c-2.142,7.989-10.386,12.749-18.372,10.608c-3.87-1.037-7.104-3.519-9.108-6.989c-2.003-3.47-2.535-7.513-1.498-11.383    s3.52-7.105,6.989-9.108c2.312-1.335,4.876-2.016,7.476-2.016c1.303,0,2.614,0.171,3.906,0.518    C153.464,153.561,158.222,161.802,156.082,169.792z"}})])]),e("g",[e("g",[e("path",{attrs:{d:"M236.291,160.225c-15.979-4.279-32.462,5.236-36.743,21.215c-4.281,15.979,5.235,32.462,21.213,36.744    c2.585,0.692,5.208,1.035,7.813,1.035c5.198,0,10.329-1.363,14.951-4.032c6.94-4.007,11.904-10.477,13.978-18.217    C261.784,180.991,252.269,164.507,236.291,160.225z M243.015,193.087c-1.037,3.87-3.52,7.105-6.989,9.108    c-3.471,2.003-7.513,2.534-11.382,1.498c-7.989-2.141-12.747-10.382-10.607-18.372c1.794-6.694,7.871-11.12,14.494-11.12    c1.281,0,2.583,0.166,3.879,0.513h-0.001C240.396,176.855,245.155,185.098,243.015,193.087z"}})])]),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)],2)],1),e("select",{directives:[{name:"model",rawName:"v-model",value:a.resolution,expression:"stream.resolution"}],staticClass:"resolution",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"resolution",e.target.multiple?s:s[0])}}},t._l(t.resolutions,(function(a){return e("option",{domProps:{value:a,textContent:t._s(a)}})})),0)]),t.showTranscodeProfiles?t._e():e("div",{staticClass:"action-buttons"},[e("Tooltip",{attrs:{content:t.$t("Удалить поток")}},[e("div",{staticClass:"remove",class:t.removeToolTip(i),style:{display:t.removeVisible(t.getStreamsLength())},on:{click:function(e){return t.removeStream(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")])])]),0===i&&t.getStreamsLength()<10?e("Tooltip",{attrs:{content:t.$t("Добавить поток"),placement:"top"}},[e("div",{staticClass:"add",on:{click:t.addStream}},[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()],1),0===i?e
1("Tooltip",{attrs:{content:t.$t(t.inputHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),t.$v.streams.$each[s].$invalid?e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]):t._e()])})),0)],1),e("div",{staticClass:"content-block"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Транскодирование потока")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Во избежание проблем с трансляцией, поток должен обладать "))),e("a",{on:{click:t.toggleStreamProperties}},[t._v(t._s(t.$t("определенными свойствами.")))])]),t.showStreamProperties?e("ol",t._l(this.streamProperties,(function(a){return e("li",{staticClass:"text-extralight"},[t._v(t._s(t.$t(a)))])})),0):t._e(),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Транскодирование необходимо для создания мультибитрейт потоков. На выходе вы получаете несколько потоков разного качества, что позволяет пользователю выбрать подходящий для него вариант вручную или оставить адаптивный поток, который настраивается автоматически в зависимости от ширины канала пользователя. Это исключит проблему буферизации у зрителей с медленным интернетом и улучшит пользовательский опыт.")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если не желаете опубликовывать все качества самостоятельно.")))]),e("toggle",{staticClass:"margin-bottom",attrs:{requestPaidServiceConfirmation:!0},on:{input:t.transcodeSwitcherInputActions},model:{value:t.showTranscodeProfiles,callback:function(e){t.showTranscodeProfiles=e},expression:"showTranscodeProfiles"}}),t.showTranscodeProfiles?e("div",[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите подходящий пакет для преобразования Вашего потока в несколько качеств.")))]),e("div",{staticClass:"transcode-profiles"},t._l(t.transcodeProfiles,(function(a){return e("transcode-profile",{key:a.id,staticClass:"col-sm-4",attrs:{active:a.id===t.selectedTranscodeProfile,tcprofile:a},on:{order:function(e){return t.setSelectedTranscodeProfile(a.id)}}})})),1)]):t._e()],1),e("div",{staticClass:"content-block"},[e("label",{staticClass:"margin-top clickable pseudo-link",on:{click:t.toggleOptions}},[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("div",{directives:[{name:"show",rawName:"v-show",value:t.showOptions,expression:"showOptions"}]},[e("div",{staticClass:"s520 margin-top-2x margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Авторизация")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать дополнительную авторизацию.")))]),e("toggle",{staticClass:"margin-bottom",attrs:{requestPaidServiceConfirmation:!0},model:{value:t.needAuthorization,callback:function(e){t.needAuthorization=e},expression:"needAuthorization"}})],1),t.needAuthorization?e("div",{staticClass:"margin-bottom-2x"},[e("div",{staticClass:"s520"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.authorizationType,expression:"authorizationType"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.authorizationType=e.target.multiple?a:a[0]}}},t._l(t.authorizationTypes,(function(a,s){return e("option",{key:s,domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),"local"===t.authorizationType?e("div",{staticClass:"localAuthorization"},[e("div",{staticClass:"s520i margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к HLS потокам используются специальные ссылки. Авторизационные параметры проверяются в момент обращения зрителей за объектами playlist.m3u8 и chunklist.m3u8. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("srt-publish-local-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"100",placeholder:t.$t("Укажите секретное слово")},model:{value:t.auth.md5.secret,callback:function(e){t.$set(t.auth.md5,"secret",e)},expression:"auth.md5.secret"}})],1),e("Tooltip",{attrs:{content:t.$t(t.authHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.$v.auth.md5.secret.latinNumeric?t._e():e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]),e("div",{staticClass:"margin-bottom-2x"}),e("div",{staticClass:"s520"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.forever,expression:"auth.md5.forever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.forever)?t._i(t.auth.md5.forever,null)>-1:t.auth.md5.forever},on:{change:function(e){var a=t.auth.md5.forever,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"forever",a.concat([null])):r>-1&&t.$set(t.auth.md5,"forever",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"forever",i)}}}),e("span",[t._v(t._s(t.$t("Не ограничивать по времени.")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.anywhere,expression:"auth.md5.anywhere"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.anywhere)?t._i(t.auth.md5.anywhere,null)>-1:t.auth.md5.anywhere},on:{change:function(e){var a=t.auth.md5.anywhere,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"anywhere",a.concat([null])):r>-1&&t.$set(t.auth.md5,"anywhere",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"anywhere",i)}}}),e("span",[t._v(t._s(t.$t("Не учитывать IP адрес.")))])])])])],1):t._e(),"external"===t.authorizationType?e("div",{staticClass:"externalAuthorization"},[e("div",{staticClass:"s520i margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к HLS потокам используется внешний скрипт авторизации. Авторизационные параметры проверяются в момент обращения зрителей за объектами playlist.m3u8 и chunklist.m3u8. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("srt-publish-external-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"200",placeholder:t.$t("Укажите ссылку на внешний скрипт")},model:{value:t.auth.url,callback:function(e){t.$set(t.auth,"url",e)},expression:"auth.url"}})],1),t.$v.auth.url.externalAuthLink?t._e():e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))])]):t._e()]):t._e(),e("Limitations",{key:"limitations",ref:"limitations",attrs:{data:t.limitationsData},on:{valid:t.setValidLimitations}}),this.$user.isCDN1()?e("div",{staticClass:"s520"}
1,t._l(t.options,(function(a){return e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t(a.name)))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(a.description)))]),e("toggle",{staticClass:"margin-bottom",model:{value:a.cdn1Value,callback:function(e){t.$set(a,"cdn1Value",e)},expression:"option.cdn1Value"}})],1)})),0):e("div",{staticClass:"s520 margin-top"},t._l(t.options,(function(a){return e("OptionOrderModal",{staticClass:"margin-bottom-2x",attrs:{optionName:a.name,modalName:a.modalName,optionDescription:a.description,checkboxElements:a.checkboxElements,checkboxLabel:a.checkboxLabel,orderFormName:t.formName}})})),1),e("div",{staticClass:"margin-bottom-2x"}),this.$user.isCDN1()?t._e():[e("div",{staticClass:"s520i"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Название ресурса")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Название ресурса автоматически генерируется при создании LIVE ресурса. Если Вы хотите назвать ресурс самостоятельно, введите название в поле."))),e("div",{staticClass:"margin-bottom"}),e("textbox",{staticClass:"rname",attrs:{maxlength:"40",placeholder:t.$t("Название ресурса")},on:{blur:function(e){return t.$v.name.$touch()}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1)]),e("Tooltip",{attrs:{content:t.$t(t.inputHint),placement:"right"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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.$v.name.$error?e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))]):t._e()]],2)])],1),this.$user.isCDN1()?e("div",{staticClass:"content-block last"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.sendFormData}})],1):["true"===t.active?e("div",{staticClass:"content-block last"},[t.saving?e("div",{staticClass:"flex full-width 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.$v.$invalid||t.noNames||!this.validLimitations},on:{click:t.save}},[t._v(t._s(t.$t(t.buttonText)))])],1):t._e()]],2),"false"===t.active?e("div",{staticClass:"content-block last"},[t.saving?e("div",{staticClass:"flex full-width 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.$v.$invalid},on:{click:t.activate}},[t._v(t._s(t.$t(t.buttonText)))])],1):t._e()])}),[],!1,null,null,null).exports,Scrolled:fe.A,Btn:h.A,ArrowCircleIcon:ce.A,Wrench:Pt.A},data(){return{ymTargetName:"srt_resource_creation_button"}},computed:{buttonText(){return this.$user.isCDN1()?"Заказать услугу":"Создать ресурс"}},methods:{goToOrderSelect(){this.$router.push({name:"streaming-ne
1w-cdn-1"})}}},vs=(0,f.A)(gs,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"flex column full-height"},[e("div",{staticClass:"grow relative"},[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToOrderSelect}},[e("ArrowCircleIcon")],1),this.$user.isCDN1()?e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s("SRT-publish"))]),e("Wrench")],1):e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Создание SRT-publish ресурса")))])],1),e("ResourceFormLiveSrt",{attrs:{saving:t.saving,buttonText:t.$t(t.buttonText)},on:{save:t.save}})],1)])])}),[],!1,null,"6bc9c84d",null).exports;function fs(t){return t.length>0&&"/"!==t}function xs(t){return function(t){return/^[^.]+\.amazonaws\.com$/.test(t.split(":")[0])}(t)||function(t){return-1!==["storage.yandexcloud.net","s3.amazon.com"].indexOf(t.split(":")[0])}(t)}function bs(t){var e=!1;return t.forEach((t=>{xs(t.netloc)&&(e=!0)})),e}function _s(t){return{backup:!1,netloc:"",weight:"",required:t}}var Cs={name:"ResourceFormLiveHls",components:{Btn:h.A,Textbox:p.A,Toggle:ct.A,Spinner:kt.A,Modal:Tt.A,TriangleArrow:Dt.A,QuestionIcon:St.A,FormFooter:Ba,OptionOrderModal:Lt,Limitations:Ia},mixins:[Z.A],props:{buttonText:{type:String},resource:{type:Object},saving:{type:Boolean,default:!1},active:{type:String,default:"true"},edit:{type:Boolean,default:!1}},exampleDomain:zt.xq,data(){return{formName:"HLS-pull",resourceType:"HLS-cache",modalName:"modalAuthorization",limitationsData:void 0,hadLimitations:!1,validLimitations:!0,cert:void 0,cdn1SslCertificate:!1,cdn1Cert:"Использовать существующий",cdn1CertOptions:["Использовать существующий","Выпустить новый"],cnames:[{name:""}],https:!0,http2https:!1,awsEnabled:!1,accessKey:"",secretKey:"",httpsonly:!1,hostnameEnabled:!1,s3Bucket:"",hostname:"",httpsSupport:!1,s3DomainsTexts:["Через ваш аккаунт могут быть доступны все файлы в S3 хранилище (даже не принадлежащие вам).","Это может привести к раздаче лишнего трафика.","Поэтому сейчас настроено правило, которое запрещает раздачу с s3-домена без указания бакета","Настройте разрешение для нужного вам бакета.","Пример: mybucket"],sources:[_s(!0)],certs:[],letsencryptStatus:void 0,letsencryptStatusText:{processed:"Сертификат успешно выпущен",accepted:"Задача на выпуск сертификата отправлена",failed:"Произошла ошибка при выпуске сертификата"},showOptions:"true"!==this.active,mobile:/android|ip(hone|od|ad)/i.test(navigator.userAgent),streams:[{id:""}],name:"live-"+qa(),inputHint:"Используйте комбинацию из букв латинского алфавита (a-z/A-Z), цифр (0-9), символов подчеркивания (_), точки (.) и дефисов (-). Максимальное количество символов - 40, минимальное - 5.",authHint:"Используйте комбинацию из букв латинского алфавита (a-z/A-Z) и цифр (0-9). Максимальное количество символов - 100.",hlsPlaylistLinkHint:"Не забудьте, что расширение плейлиста .m3u8",send_timeout:void 0,read_timeout:void 0,connect_timeout:void 0,auth:{md5:{secret:"",forever:!1,anywhere:!1},url:""},needAuthorization:!1,authorizationTypes:[{value:"local",text:"Локальная авторизация (на основе подписи)"},{value:"external",text:"Внешняя авторизация"}],authorizationType:"local",isAuthorizationDialogVisible:!1,cache:void 0,locations:void 0,cncConfigurationTimer:"",updateCertStatusTimer:"",isLoading:!1,options:[{name:"DVR",modal
1Name:"dvr",cdn1Value:!1,description:"Активируйте, если необходимо использовать навигацию по эфиру (DVR)."},{name:"Запись потока",modalName:"record",cdn1Value:!1,description:"Активируйте, если необходимо сохранить запись потока."}]}},validations:{name:{required:W.mw,latinNumericDashes:function(t){return/^[\w\d-]*$/i.test(t)}},s3Bucket:{isValidBucket:function(t){return!bs(this.sources)||fs(t)}},streams:{required:W.mw,$each:{id:{required:W.mw,playlistLink:function(t){return/^\/{1}[\w-/.?&:%()]*$/i.test(t)}}}},sources:{required:W.mw,atLeastOnePrimary:function(t){let e=!1;return t.forEach((function(t){t.backup||(e=!0)})),e},$each:{netloc:{required:W.mw,netloc:function(t){return/^([\w\d\-.]*\.[\w\d\-.]*)+(|:[0-9]{1,5})$/i.test(t)},isValidDomain:function(t){return!xs(t)||fs(this.s3Bucket)},isValidDomainOrIp:function(t){let e=(t=t.split(":")[0]).split(".");if(4!==e.length)return!0;let a=function(t){let e=!0;return t.forEach((t=>{let a=Number(t);isNaN(a)&&(e=!1)})),e}(e),s=!0;return a&&e.forEach((t=>{let e=Number(t);(e>255||e<0)&&(s=!1)})),s}},weight:{minValue:(0,W.Ww)(1)}}},hostname:{hostnameRegexp:function(t){return/^[\w\d\-.$]*$/i.test(t)}},cnames:{$each:{name:{domain:function(t){return/^[\w\d\-.]*$/i.test(t)}}}},auth:{md5:{secret:{latinNumeric:Ha}},url:{externalAuthLink:Fa}}},computed:{triangleArrowStyle(){return{transform:this.showOptions?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showOptions?"-2px":"2px"}},firstSource(){return this.sources[0]}},created(){if(this.resource){this.init(this.resource);let t={name:this.$user.accountName,id:this.resource.id};this.$api.getCncConfiguration(t).then((t=>{200===t.data.code?t.data.data.is_changes_apply||(this.isLoading=!0,this.$toast.show({text:"Мы конфигурируем Ваш ресурс. Подождите чуть-чуть."})):this.error=!0})),this.cncConfigurationTimer=setInterval(this.updateCncConfigurationStatus,6e4)}this.loadCerts()},watch:{letsencryptStatus(t,e){if(!e||t===e||"no"===t)return;let a=this.letsencryptStatusText[t];a&&this.$toast.show({text:a}),"processed"===t&&this.loadCerts(!0)}},beforeDestroy(){clearInterval(this.cncConfigurationTimer),clearInterval(this.updateCertStatusTimer)},methods:{addDefaultPort(t){let e=this.https?"443":"80",a=this.$v.sources.$each[t].netloc.isValidDomain&&this.$v.sources.$each[t].netloc.netloc;!this.sources[t].netloc.split(":")[1]&&this.sources[t].netloc.split(":")[0]&&a&&(":"===this.sources[t].netloc.substr(this.sources[t].netloc.length-1)?this.sources[t].netloc+=e:this.sources[t].netloc+=":"+e)},updateCncConfigurationStatus(){let t={name:this.$user.accountName,id:this.resource.id};this.$api.getCncConfiguration(t).then((t=>{200===t.data.code&&(this.isLoading=!t.data.data.is_changes_apply)}))},setValidLimitations(t){this.validLimitations=t},save(){let t={},e=[],a={},i=this.hostnameEnabled&&this.hostname||void 0;this.sources.forEach((function(e){let a=e.netloc.split(":")[0],i=e.netloc.split(":")[1];t[a]={},s.default.set(t[a],"port",+i),s.default.set(t[a],"backup",e.backup),""!==e.weight&&s.default.set(t[a],"weight",+e.weight)})),this.cnames.forEach((function(t){t.name&&e.push(t.name)})),this.streams.forEach((function(t){let e=ja(),i={};s.default.set(i,"id",t.id||"/"),s.default.set(a,e,i)})),this.s3Bucket.startsWith("/")&&(this.s3Bucket=this.s3Bucket.slice(1)),this.s3Bucket.endsWith("/")&&(this.s3Bucket=this.s3Bucket.slice(0,-1));const r={name:this.name,type:this.resourceType,streams:a,certificate:this.httpsSupport&&this.cert||void 0,http2https:this.httpsSupport&&this.http2https||void 0,https_only:this.httpsSupport&&this.https_only||void 0,names:e,origin:{https:this.https,hostname:i,servers:t},cache:this.cache,locations:JSON.parse(JSON.stringify(this.locations||{}))};bs(this.sources)&&(r.origin.s3_bucket=this.s3Bucket),this.awsEnabled&&(r.origin.aws={auth:{access_key:this.accessKey,secret_key:this.secretKey}}),this.limitationsData=this.$refs.limitations.getData(),(Object.keys(this.limitationsData).length>0||this.hadLimitations)&&(r.limitations=this.limitationsData),this.read_timeout&&(r.origin.read_timeout=this.read_timeout),this.send_timeout&&(r.origin.send_timeout=this.send_timeout),this.connect_timeout&&(r.origin.connect_timeout=this.connect_timeout),this.$emit("save",this.resourceType,r)},activate(){let t={name:this.resource.name,type:this.resourceType,streams:this.resource.streams,certificate:this.resource.certificate,http2https:this.resource.http2https,https_only:this.resource.https_only,names:this.resource.names,origin:this.resource.origin,active:!0};this.$emit("save",this.resourceType,t,"Ресурс активирован.")},init(t){this.name=t.name,this.cnames=[];let e=this.resource.origin;"send_timeout"in e&&(this.send_timeout=e.send_timeout),"connect_timeout"in e&&(this.connect_timeout=e.connect_timeout),"read_timeout"in e&&(this.read_timeout=e.read_timeout),this.locations=t.locations||{}
1,t.names&&t.names.length?t.names.forEach((t=>{this.cnames.push({name:t})})):this.cnames.push({name:""}),this.limitationsData=t.limitations||{},Object.keys(this.limitationsData).length>0&&(this.hadLimitations=!0),this.sources=[],Object.keys(t.origin.servers).forEach((e=>{let a=_s(!0),s=t.origin.servers[e];a.netloc=e+":"+String(s.port),a.backup=!!s.backup,s.weight?a.weight=String(s.weight):a.weight="",this.sources.push(a)})),this.https=t.origin.https,this.http2https=t.http2https,this.https_only=t.https_only,this.cert=t.certificate,this.httpsSupport=!!this.cert||!!this.http2https||!!this.https_only,this.hostname=t.origin.hostname,this.hostnameEnabled=!!this.hostname,bs(this.sources)?this.s3Bucket=t.origin.s3_bucket:this.s3Bucket="";try{this.awsEnabled=!!t.origin.aws.auth.access_key&&!!t.origin.aws.auth.secret_key}catch(t){this.awsEnabled=!1}this.awsEnabled&&(this.accessKey=t.origin.aws.auth.access_key,this.secretKey=t.origin.aws.auth.secret_key),this.cnames[0].name&&(this.updateCertStatus(!0),this.updateCertStatusTimer=setInterval(this.updateCertStatus,5e3)),this.streams=[],Object.keys(t.streams).forEach((e=>{let a={id:""};a.id=t.streams[e].id,this.streams.push(a)})),this.cache=t.cache,this.locations=t.locations},isS3Domain(t){return xs(t)},addSource(){this.sources.push(_s())},removeSource(t){this.sources.splice(t,1)},addCname(){this.cnames.push({name:""})},removeCname(t){this.cnames.splice(t,1)},addStream(){this.streams.push({id:""})},removeStream(t){this.streams.splice(t,1)},getStreamsLength(){return Object.keys(this.streams).length},toggleOptions(){this.showOptions=!this.showOptions},loadCerts(t){let e={accountName:this.$user.accountName};this.$api.getCerts(e).then((e=>{let a=e.data.data;this.certs=this.certs.concat(a),this.resource&&!t||!this.certs.length||this.cert||(this.cert=this.certs[0].seq)}))},updateCertStatus(t){if(!(t=t||!1)&&!this.httpsSupport)return;let e={name:this.$user.accountName,id:this.resource.id};this.$api.getCertLetsEncryptStatus(e).then((t=>{this.letsencryptStatus=t.data.task_status}))},issueCert(){let t={name:this.$user.accountName,id:this.resource.id};this.$api.createCertLetsEncrypt(t).then((()=>{this.letsencryptStatus="accepted"}))},sendFormData(t){let e=[];this.sources.forEach((t=>{e.push(`(Бэкап: ${t.backup}, домен: ${t.netloc.split(":")[0]}, вес: ${t.weight}, порт: ${t.netloc.split(":")[1]})`)}));let a=[];this.streams.forEach((t=>{a.push(t.id)}));var s="";this.needAuthorization?(s=this.findElemFromArrayOfObject(this.authorizationTypes,this.authorizationType).text,"local"===this.authorizationType?(s+=`( секретное слово: ${this.auth.md5.secret}`,this.auth.md5.forever&&(s+=", не ограничивать по времени"),this.auth.md5.anywhere&&(s+=", не учитывать IP адрес"),s+=" )"):s+=`( внешний скрипт: ${this.auth.url} )`):s="Нет";let i=this.$refs.limitations.getDataOrder(),r="";this.options.forEach((t=>{r+=`<p>${t.name}: ${t.cdn1Value?"Да":"Нет"}</p>\n`}));let n=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p>Источник данных: ${e.join(", ")}</p>\n      <p>Использовать HTTPS при запросе к источникам: ${this.https?"Да":"Нет"}</p>\n      <p>Использовать AWS авторизацию при запросе к источникам: ${this.awsEnabled?"Да":"Нет"}</p>\n      <p>Использовать Hostname при обращении к источнику: ${this.hostnameEnabled?this.hostname:"Нет"}</p>\n      <p>Ссылки на HLS-поток: ${a.join(", ")}</p>\n      <p>SSL-сертификат: ${this.cdn1SslCertificate?this.cdn1Cert:"Не нужен"}</p>\n      <p>Желаемый CNAME: ${this.cnames.map((t=>t.name))}</p>\n      <p>Авторизация: ${s}</p>\n      ${r}\n      <p>Ограничения раздачи: ${i||"Нет"}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,o={client_mail_custom:t.email,client_tel_custom:t.phone,other:n.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(o,n)},toggleModalAuthorization(t){t?this.openModal():this.closeModal()},openModal(){this.$modal.show(this.modalName)},closeModal(){this.$modal.hide(this.modalName)}}},ws=Cs,ys={name:"ResourceNewLive",mixins:[ns],components:{FormMixin:(0,f.A)(ws,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper live-cdn1-order-form-live-hls"}
1,[e("div",{staticClass:"blur",class:{"blur-5px":t.isLoading,"blur-1px":"false"===t.active}},[e("div",{class:{"enable-overlay overlay":t.isLoading||"false"===t.active,"disable-overlay overlay":!t.isLoading&&"false"!==t.active}}),e("div",{staticClass:"content-block",class:{first:!this.edit}},[e("div",{staticClass:"row align-stretch row-gap-3x text-justify"},[e("div",{staticClass:"relative col-md-6 flex column gap-3x"},[e("div",{staticClass:"wrapper"},[e("label",{staticClass:"margin-bottom",attrs:{for:"source"}},[t._v(t._s(t.$t("Источник данных")))]),e("div",{staticClass:"margin-bottom"},[e("p",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Укажите доменное имя или IP-адрес, по которому доступен ваш контент.")))]),e("p",{staticClass:"text-extralight"},[t._v(t._s(`${t.$t("Пример")}: ${t.$options.exampleDomain}:443`))])]),e("transition-group",{staticClass:"flex column gap-2x",attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.sources,(function(a,s){return e("div",{key:s,staticClass:"source-wrapper"},[e("div",{staticClass:"source flex align-center gap-2x"},[e("div",{staticClass:"relative domain-settings flex gap align-center grow"},[e("label",{attrs:{for:s+"netloc"}},[t._v(t._s(t.$t("Адрес")))]),e("textbox",{staticClass:"grow",attrs:{id:s+"netloc",placeholder:`${t.$options.exampleDomain}:443`},on:{blur:function(e){t.$v.sources.$each[s].$touch(),t.addDefaultPort(s)}},model:{value:a.netloc,callback:function(e){t.$set(a,"netloc",e)},expression:"source.netloc"}}),e("label",{attrs:{for:s+"weight"}},[t._v(t._s(t.$t("Вес")))]),e("textbox",{staticClass:"weight",attrs:{id:s+"weight",mask:"111",placeholder:t.$t("(1-999)")},on:{blur:function(e){return t.$v.sources.$each[s].$touch()}},model:{value:a.weight,callback:function(e){t.$set(a,"weight","string"==typeof e?e.trim():e)},expression:"source.weight"}}),e("label",{attrs:{for:s+"backup"}},[t._v(t._s("Backup"))]),e("input",{directives:[{name:"model",rawName:"v-model",value:a.backup,expression:"source.backup"}],attrs:{id:s+"backup",type:"checkbox"},domProps:{checked:Array.isArray(a.backup)?t._i(a.backup,null)>-1:a.backup},on:{change:function(e){var s=a.backup,i=e.target,r=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&t.$set(a,"backup",s.concat([null])):n>-1&&t.$set(a,"backup",s.slice(0,n).concat(s.slice(n+1)))}else t.$set(a,"backup",r)}}}),t.$v.sources.$each[s].$error?e("div",{staticClass:"has-error error-container"},[t.$v.sources.$each[s].netloc.netloc?t._e():e("span",[t._v(t._s(t.$t("Введите валидный домен")))]),t.$v.sources.$each[s].netloc.isValidDomainOrIp?t._e():e("span",[t._v(t._s(t.$t("Введите валидный IP-адрес.")))]),t.$v.sources.$each[s].netloc.required?t.$v.sources.$each[s].weight.$error?e("span",[t._v(t._s(t.$t("Вес не может принимать нулевое значение.")))]):t._e():e("span",[t._v(t._s(t.$t("Введите домен.")))])]):t._e()],1),s?t._e():e("div",{staticClass:"add",on:{click:t.addSource}},[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")])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeSource(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()]),t.isS3Domain(t.$v.sources.$each[s].netloc.$model)?e("div",{staticClass:"margin-top relative"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Настройте разрешение для нужного вам бакета.")))]),e("div",{staticClass:"bucket flex align-center gap-2x"},[e("div",{staticClass:"relative grow"},[e("textbox",{attrs:{placeholder:t.$t("mybucket")},on:{blur:function(e){t.$v.s3Bucket.$touch(),t.addDefaultPort(s)}},model:{value:t.s3Bucket,callback:function(e){t.s3Bucket=e},expression:"s3Bucket"}}),t.$v.s3Bucket.$error?e("div",{staticClass:"has-error error-container"},[t._v(t._s(t.$t("Введите бакет.")))]):t._e()],1),e("Tooltip",{staticClass:"prompt"},[t._l(t.s3DomainsTexts,(function(a){return e("template",{slot:"content"},[t._v(t._s(t.$t(a))),e("br")])})),e("btn",{attrs:{type:"icon",size:"small"}},[e("QuestionIcon")],1)],2)],1)]):t._e()])})),0),t.$v.sources.atLeastOnePrimary?t._e():e("div",{staticClass:"has-error"},[e("span",[t._v(t._s(t.$t("Укажите Primary домен.")))])])],1
1),e("div",{staticClass:"wrapper"},[e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.https,expression:"https"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.https)?t._i(t.https,null)>-1:t.https},on:{change:function(e){var a=t.https,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.https=a.concat([null])):r>-1&&(t.https=a.slice(0,r).concat(a.slice(r+1)))}else t.https=i}}}),e("span",[t._v(t._s(t.$t("Использовать HTTPS при запросе к источникам.")))])])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.awsEnabled,expression:"awsEnabled"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.awsEnabled)?t._i(t.awsEnabled,null)>-1:t.awsEnabled},on:{change:function(e){var a=t.awsEnabled,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.awsEnabled=a.concat([null])):r>-1&&(t.awsEnabled=a.slice(0,r).concat(a.slice(r+1)))}else t.awsEnabled=i}}}),e("span",[t._v(t._s(t.$t("Использовать AWS авторизацию при запросе к источникам.")))])]),t.awsEnabled?e("div",{staticClass:"aws-params"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("access key")))]),e("textbox",{staticClass:"margin-bottom",attrs:{disabled:!t.awsEnabled},model:{value:t.accessKey,callback:function(e){t.accessKey=e},expression:"accessKey"}}),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("secret key")))]),e("textbox",{attrs:{disabled:!t.awsEnabled},model:{value:t.secretKey,callback:function(e){t.secretKey=e},expression:"secretKey"}})],1):t._e()]),e("div",{staticClass:"host-name"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.hostnameEnabled,expression:"hostnameEnabled"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.hostnameEnabled)?t._i(t.hostnameEnabled,null)>-1:t.hostnameEnabled},on:{change:function(e){var a=t.hostnameEnabled,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.hostnameEnabled=a.concat([null])):r>-1&&(t.hostnameEnabled=a.slice(0,r).concat(a.slice(r+1)))}else t.hostnameEnabled=i}}}),e("span",[t._v(t._s(t.$t("Использовать Hostname при обращении к источнику.")))])]),e("textbox",{attrs:{name:"hostname",disabled:!t.hostnameEnabled},model:{value:t.hostname,callback:function(e){t.hostname=e},expression:"hostname"}}),t.$v.hostname.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный Hostname.")))]):t._e()],1)])]),e("div",{staticClass:"relative col-md-6 flex column"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Ссылка на HLS-поток")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Загрузите ссылку на плейлист.")))]),e("transition-group",{staticClass:"flex column gap-2x",attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.streams,(function(a,s){return e("div",{key:s,staticClass:"streams flex justify-between align-center gap-2x"},[e("div",{staticClass:"relative input-with-prefix flex align-center grow"},[e("span",{staticClass:"text-regular block"},[t._v(t._s(t.firstSource.netloc))]),e("textbox",{staticClass:"grow prefix-input",attrs:{placeholder:"/stream/playlist.m3u8",maxlength:"249"},on:{blur:function(e){return t.$v.streams.$each[s].$touch()}},model:{value:a.id,callback:function(e){t.$set(a,"id",e)},expression:"stream.id"}}),t.$v.streams.$each[s].$error?e("div",{staticClass:"has-error error-container"},[t._v(t._s(t.$t("Введите валидную ссылку.")))]):t._e()],1),0===s?e("Tooltip",{attrs:{content:t.$t(t.hlsPlaylistLinkHint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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(),!s&&t.getStreamsLength()<100?e("Tooltip",{attrs:{content:"$t('Добавить поток')",placement:"top"}},[e("div",{staticClass:"add"},[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(),s?e("Tooltip",{attrs:{content:t.$t("Удалить поток"),placement:"top"}},[e("div",{staticClass:"remove",on:{click:function(e){return t.removeStream(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)})),0)],1)])]),e("div",{staticClass:"content-block"},[e("label",{staticClass:"clickable pseudo-link",on:{click:t.toggleOptions}},[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("div",{directives:[{name:"show",rawName:"v-show",value:t.showOptions,expression:"showOptions"}],staticClass:"row align-stretch row-gap-3x margin-top-3x text-justify"},[e("div",{staticClass:"relative col-md-6 flex column gap-3x"},[this.$user.isCDN1()?e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("SSL-сертификат")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо использовать SSL-сертификат.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.cdn1SslCertificate,callback:function(e){t.cdn1SslCertificate=e},expression:"cdn1SslCertificate"}}),t.cdn1SslCertificate?e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.cdn1Cert,expression:"cdn1Cert"}],staticClass:"text-extralight margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cdn1Cert=e.target.multiple?a:a[0]}}},t._l(t.cdn1CertOptions,(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(t.$t(a)))])})),0)]):t._e()],1):e("div",{staticClass:"wrapper"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("SSL-сертификат")))]),e("p",{staticClass:"text-extralight"},[t._v(t._s(t.$t("По умолчанию используется сертификат {mainCompanyName}.")))]),e("p",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать свой SSL-сертификат.")))]),e("toggle",{model:{value:t.httpsSupport,callback:function(e){t.httpsSupport=e},expression:"httpsSupport"}}),e("transition",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[t.httpsSupport?e("div",{staticClass:"margin-top-2x"},[e("div",{staticClass:"text-extralight"},[e("span",[t._v(t._s(t.certs.length>0?t.$t("Выберите нужный сертификат или создайте "):t.$t("Пока что у вас нет сертификатов, но вы можете создать ")))]),e("router-link",{staticClass:"text-blue",attrs:{to:{name:"cert-new"},target:"_blank"}},[t._v(t._s(t.$t("новый.")))]),t.certs.length>0?e("select",{directives:[{name:"model",rawName:"v-model",value:t.cert,expression:"cert"}],staticClass:"margin-top",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cert=e.target.multiple?a:a[0]}}},t._l(t.certs,(function(a,s){return e("option",{domProps:{value:a.seq}},[t._v(t._s(`${a.comment} (${a.alt})`))])})),0):t._e()],1),t.letsencryptStatus?e("div",{staticClass:"letsencrypt margin-top-3x"},[e("btn",{staticClass:"margin-bottom-2x",attrs:{disabled:"no"!=t.letsencryptStatus},on:{click:t.issueCert}},[t._v(t._s(t.$t("Выпустить сертификат Let's Encrypt")))]),"no"!=t.letsencryptStatus?e("div",{staticClass:"tooltip text-extralight margin-bottom"},[t._v(t._s(t.$t(t.letsencryptStatusText[t.letsencryptStatus])))]):t._e(),e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.http2https,expression:"http2https"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.http2https)?t._i(t.http2https,null)>-1:t.http2https},on:{change:function(e){var a=t.http2https,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.http2https=a.concat([null])):r>-1&&(t.http2https=a.slice(0,r).concat(a.slice(r+1)))}else t.http2https=i}}}),e("span",[t._v(t._s(t.$t("Автоматически перенаправлять HTTP на HTTPS.")))])]),e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.https_only,expression:"https_only"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.https_only)?t._i(t.https_only,null)>-1:t.https_only},on:{change:function(e){var a=t.https_only,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&(t.https_only=a.concat([null])):r>-1&&(t.https_only=a.slice(0,r).concat(a.slice(r+1)))}else t.https_only=i}}}),e("span",[t._v(t._s(t.$t("Использовать только HTTPS.")))])])],1):t._e()]):t._e()])],1),e("div",{staticClass:"wrapper"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Желаемый CNAME")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("CNAME - это псевдоним, за которым будет скрываться домен CDN. Потребуется дополнительная настройка DNS. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("hls-pull-cname"),target:"_blank"}},[t._v(t._s(t.$t("тут")))]),t._v(t._s(t.$t(". Применение CNAME возможно только с Вашим сертификатом.")))]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.cnames,(function(a,s){return e("div",{key:s,staticClass:"cname flex align-center gap-2x"},[e("textbox",{staticClass:"grow",attrs:{placeholder:t.$t(t.$options.exampleDomain)},on:{blur:function(e){return t.$v.cnames.$each[s].$touch()}},model:{value:a.name,callback:function(e){t.$set(a,"name",e)},expression:"cname.name"}}
1),t.$v.cnames.$each[s].name.$error?e("div",{staticClass:"has-error"},[t._v(t._s(t.$t("Введите валидный CNAME.")))]):t._e(),s?t._e():e("div",{staticClass:"add",on:{click:t.addCname}},[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")])]),s?e("div",{staticClass:"remove",on:{click:function(e){return t.removeCname(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)})),0)],1),e("div",{staticClass:"wrapper"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Авторизация")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать дополнительную авторизацию.")))]),this.$user.isCDN1()?e("toggle",{attrs:{requestPaidServiceConfirmation:!0},model:{value:t.needAuthorization,callback:function(e){t.needAuthorization=e},expression:"needAuthorization"}}):e("toggle",{on:{input:t.toggleModalAuthorization}}),t.needAuthorization?e("div",{staticClass:"margin-top-2x"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.authorizationType,expression:"authorizationType"}],staticClass:"text-extralight margin-bottom-2x",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.authorizationType=e.target.multiple?a:a[0]}}},t._l(t.authorizationTypes,(function(a,s){return e("option",{key:s,domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0),"local"===t.authorizationType?e("div",{staticClass:"localAuthorization"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к HLS потокам используются специальные ссылки. Авторизационные параметры проверяются в момент обращения зрителей за объектами playlist.m3u8 и chunklist.m3u8. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("hls-pull-local-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("div",{staticClass:"flex align-center gap-2x"},[e("textbox",{staticClass:"grow",attrs:{maxlength:"100",placeholder:t.$t("Укажите секретное слово")},model:{value:t.auth.md5.secret,callback:function(e){t.$set(t.auth.md5,"secret",e)},expression:"auth.md5.secret"}}),e("Tooltip",{attrs:{content:t.$t(t.authHint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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
1),t.$v.auth.md5.secret.latinNumeric?t._e():e("div",{staticClass:"has-error margin-right-4x"},[t._v(t._s(t.$t("Введите валидное значение")))]),e("div",{staticClass:"margin-bottom-2x"}),e("div",{staticClass:"s520"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.forever,expression:"auth.md5.forever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.forever)?t._i(t.auth.md5.forever,null)>-1:t.auth.md5.forever},on:{change:function(e){var a=t.auth.md5.forever,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"forever",a.concat([null])):r>-1&&t.$set(t.auth.md5,"forever",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"forever",i)}}}),e("span",[t._v(t._s(t.$t("Не ограничивать по времени.")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.anywhere,expression:"auth.md5.anywhere"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.anywhere)?t._i(t.auth.md5.anywhere,null)>-1:t.auth.md5.anywhere},on:{change:function(e){var a=t.auth.md5.anywhere,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"anywhere",a.concat([null])):r>-1&&t.$set(t.auth.md5,"anywhere",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"anywhere",i)}}}),e("span",[t._v(t._s(t.$t("Не учитывать IP адрес.")))])])])])]):t._e(),"external"===t.authorizationType?e("div",{staticClass:"externalAuthorization"},[e("div",{staticClass:"s520i margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к HLS потокам используется внешний скрипт авторизации. Авторизационные параметры проверяются в момент обращения зрителей за объектами playlist.m3u8 и chunklist.m3u8. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("hls-pull-external-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"200",placeholder:t.$t("Укажите ссылку на внешний скрипт")},model:{value:t.auth.url,callback:function(e){t.$set(t.auth,"url",e)},expression:"auth.url"}})],1),t.$v.auth.url.externalAuthLink?t._e():e("div",{staticClass:"s520 has-error"},[t._v(t._s(t.$t("Введите валидное значение")))])]):t._e()]):t._e()],1)]),e("div",{staticClass:"relative col-md-6 flex column gap-3x"},[e("Limitations",{key:"limitations",ref:"limitations",attrs:{data:t.limitationsData},on:{valid:t.setValidLimitations}}),this.$user.isCDN1()?t._l(t.options,(function(a){return e("div",{staticClass:"wrapper"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t(a.name)))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t(a.description)))]),e("toggle",{model:{value:a.cdn1Value,callback:function(e){t.$set(a,"cdn1Value",e)},expression:"option.cdn1Value"}})],1)})):t._l(t.options,(function(a){return e("OptionOrderModal",{attrs:{optionName:a.name,modalName:a.modalName,optionDescription:a.description,orderFormName:t.formName}})})),this.$user.isCDN1()?t._e():[e("div",{staticClass:"wrapper"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Название ресурса")))]),e("p",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Название ресурса автоматически генерируется при создании LIVE ресурса. Если Вы хотите назвать ресурс самостоятельно, введите название в поле.")))]),e("div",{staticClass:"flex align-center gap-2x"},[e("textbox",{staticClass:"grow rname",attrs:{maxlength:"40",placeholder:t.$t("Название ресурса")},on:{blur:function(e){return t.$v.name.$touch()}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),e("Tooltip",{attrs:{content:t.$t(t.inputHint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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
1),t.$v.name.$error?e("div",{staticClass:"has-error margin-right-4x"},[t._v(t._s(t.$t("Введите валидное значение")))]):t._e()])]],2)])])],1),this.$user.isCDN1()?e("div",{staticClass:"content-block last"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.sendFormData}})],1):["true"===t.active?e("div",{staticClass:"content-block last"},[t.saving?e("div",{staticClass:"flex full-width 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.$v.$invalid||!this.validLimitations},on:{click:t.save}},[t._v(t._s(t.$t(t.buttonText)))])],1):t._e()]],2),"false"===t.active?e("div",{staticClass:"content-block last"},[t.saving?e("div",{staticClass:"flex full-width 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.$v.$invalid},on:{click:t.activate}},[t._v(t._s(t.$t(t.buttonText)))])],1):t._e(),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:"description"},[e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Включение дополнительной авторизации для всего ресурса невозможно.")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t('Вы можете настроить дополнительную авторизацию для определенного пути во вкладке "Правила" на странице редактирования ресурса.')))]),e("div",{staticClass:"text-extralight"},[t._v(t._s(t.$t("Обычно дополнительную авторизацию включают для пути"))+' "~* \\.m3u8$"')])])]),e("template",{slot:"footer"},[e("btn",{attrs:{type:"secondary"},on:{click:t.closeModal}},[t._v(t._s(t.$t("Закрыть")))])],1)],2)],1)}),[],!1,null,null,null).exports,Scrolled:fe.A,Btn:h.A,ArrowCircleIcon:ce.A,Wrench:Pt.A},data(){return{ymTargetName:"hls_resource_creation_button"}},computed:{buttonText(){return this.$user.isCDN1()?"Заказать услугу":"Создать ресурс"}},methods:{goToOrderSelect(){this.$router.push({name:"streaming-ne
1w-cdn-1"})}}},$s=(0,f.A)(ys,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"flex column full-height"},[e("div",{staticClass:"grow relative"},[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToOrderSelect}},[e("ArrowCircleIcon")],1),this.$user.isCDN1()?e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s("HLS-pull"))]),e("Wrench")],1):e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t("Создание HLS-pull ресурса")))])],1),e("form-mixin",{attrs:{saving:t.saving,buttonText:t.$t(t.buttonText)},on:{save:t.save}})],1)])])}),[],!1,null,"179e78d5",null).exports,Ss={name:"FormRadioBlock",props:{value:{required:!0},possibleValues:{type:Array,required:!0},label:{type:String,required:!0},hint:{type:String}},data(){return{radioValue:this.value}},computed:{tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}}},watch:{radioValue(){this.$emit("input",this.radioValue)}}},ks=(0,f.A)(Ss,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",[t._v(t._s(t.$t(this.label)))]),t.hint?e("Tooltip",{attrs:{content:t.$t(t.hint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),t._l(t.possibleValues,(function(a){return e("div",{staticClass:"radio"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.radioValue,expression:"radioValue"}],attrs:{type:"radio",id:t.label+a.name},domProps:{value:a.value,checked:t._q(t.radioValue,a.value)},on:{change:function(e){t.radioValue=a.value}}}),e("label",{attrs:{for:t.label+a.name}},[t._v(t._s(t.$t(a.name)))])])}))],2)}),[],!1,null,"7b202983",null).exports,Ts={name:"FormTextBlock",components:{Textbox:p.A},props:{value:{type:[String,Number],required:!0},label:{type:String,required:!0},hint:{type:String},onlyNumbers:{type:Boolean,default:!1},placeholder:{type:String},multiline:{type:Boolean,default:!1}},data(){return{text:this.value}},computed:{tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}}},watch:{text(){this.$emit("input",this.text)}}},As=(0,f.A)(Ts,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",[t._v(t._s(t.$t(t.label)))]),t.hint?e("Tooltip",{attrs:{content:t.$t(t.hint),placement:"top"}},[e("div",{staticClass:"info"},[e("svg",{staticStyle:{"enable-background":"new 0 0 65 65"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 65 65","xml:space":"preserve"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("circle",{attrs:{cx:"33.018",cy:"19.541",r:"3.345"}}),e("path",{attrs:{d:"M32.137,28.342c-1.104,0-2,0.896-2,2v17c0,1.104,0.896,2,2,2s2-0.896,2-2v-17C34.137,29.237,33.241,28.342,32.137,28.342z    "}})])]),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),t.onlyNumbers?e("textbox",{attrs:{type:"number",placeholder:t.$t(t.placeholder),multiline:t.multiline},model:{value:t.text,callback:function(e){t.text=t._n(e)},expression:"text"}}):e("textbox",{attrs:{placeholder:t.$t(t.placeholder),multiline:t.multiline},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1)}),[],!1,null,"781173fe",null).exports,Rs={name:"FormTranscodeProfilesBlock",components:{TranscodeProfile:Ua,Toggle:ct.A},data(){return{showTranscodeProfiles:!1,transcodeProfiles:[{id:"360_480_720",name:"Базовый",description:"3 качества",features:["Качества:\n360p, 480p, 720p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]},{id:"480_720_1080",name:"Оптимальный",description:"3 качества",features:["Качества:\n480p, 720p, 1080p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]},{id:"360_480_720_1080",name:"Расширенный",description:"4 качества",features:["Качества:\n360p, 480p, 720p, 1080p","Кодек для видео:\nh.264","Кодек для аудио:\nAAC/mp3","Объединение качеств\nв один поток"]}],selectedTranscodeProfile:"360_480_720"}},methods:{setSelectedTranscodeProfile(t){this.selectedTranscodeProfile=t}}},Ps=(0,f.A)(Rs,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"transcode-profiles-block"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Транскодирование потока")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Транскодирование необходимо для создания мультибитрейт потоков. На выходе вы получаете несколько потоков разного качества, что позволяет пользователю выбрать подходящий для него вариант вручную или оставить адаптивный поток, который настраивается автоматически в зависимости от ширины канала пользователя. Это исключит проблему буферизации у зрителей с медленным интернетом и улучшит пользовательский опыт.")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если вам необходимо транскодировать поток в несколько качеств.")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.showTranscodeProfiles,callback:function(e){t.showTranscodeProfiles=e},expression:"showTranscodeProfiles"}}),t.showTranscodeProfiles?e("div",[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Выберите подходящий пакет для преобразования Вашего потока в несколько качеств.")))]),e("div",{staticClass:"transcode-profiles"},t._l(t.transcodeProfiles,(function(a){return e("transcode-profile",{key:a.id,staticClass:"col-sm-4",attrs:{active:a.id===t.selectedTranscodeProfile,tcprofile:a},on:{order:function(e){return t.setSelectedTranscodeProfile(a.id)}}})})),1)]):t._e()],1)}),[],!1,null,"3fd38656",null).exports,Ms={name:"MpegTsPublishForm",components:{Toggle:ct.A,Textbox:p.A,FormRadioBlock:ks,FormCheckboxBlock:Rt,FormTextBlock:As,FormFooter:Ba,FormTranscodeProfilesBlock:Ps,TriangleArrow:Dt.A,Limitations:Ia,Btn:h.A,ArrowCircleIcon:ce.A,Wrench:Pt.A},mixins:[Z.A],exampleDomain:zt.xq,data(){return{formName:"MPEG-TS-publish",description:"",distributionProtocols:[{name:"RTMP",value:!1},{name:"HLS",value:!1},{name:"MPEG-DASH",value:!1},{name:"MSS",value:!1},{name:"Low Latency Streaming",value:!1}],needPlayer:!1,needAuthorization:!1,authorizationTypes:[{value:"local",text:"Локальная авторизация (на основе подписи)"},{value:"external",text:"Внешняя авторизация"}],authorizationType:"local",auth:{md5:{secret:"",forever:!1,anywhere:!1},url:""},needDvr:!1,needRecord:!1,showOptions:!1,https:!0,sslCertificate:!1,certOptions:["Использовать существующий","Выпустить новый"],cert:"Использовать существующий",cors:"allow",corsPossibleValues:[{name:"Разрешить для всех",value:"allow"},{name:"Запретить для всех",value:"deny"},{name:"Добавить список доверенных доменов",value:"custom"}],corsDomains:[""],forms:{limitations:{valid:!0,data:{requestPayment:!1}}},validLimitations:!0}},computed:{triangleArrowStyle(){return{transform:this.showOptions?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showOptions?"-2px":"2px"}},tipObjectTop(){return{"simptip-position-top":!0,"simptip-fade":!0,"simptip-smooth":!0}},tipObjectRight(){return{"simptip-position-right":!0,"simptip-fade":!0,"simptip-smooth":!0}}},methods:{setValidLimitations(t){this.validLimitations=t},send(t){var e="";this.needAuthorization?(e=this.findElemFromArrayOfObject(this.authorizationTypes,this.authorizationType).text,"local"===this.authorizationType?(e+=`( секретное слово: ${this.auth.md5.secret}`,this.auth.md5.forever&&(e+=", не ограничивать по времени"),this.auth.md5.anywhere&&(e+=", не учитывать IP адрес"),e+=" )"):e+=`( внешний скрипт: ${this.auth.url} )`):e="Нет";let a=this.$refs.limitations.getDataOrder();var s=`<p>Домены, запросы с которых нужно разрешить (CORS): ${this.findElemFromArrayOfObject(this.corsPossibleValues,this.cors).name}</p>`;"custom"===this.cors&&(s+=`<p>Доверенные домены: ${this.corsDomains.join(", ")}</p>`);let i=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p style="white-space: pre-wrap">Удобный способ передачи потока: ${this.description}</p>\n      <p>Протоколы раздачи потока: ${this.getCheckboxValuesAsString(this.distributionProtocols)}</p>\n      <p>Транскодирование потока: ${this.$refs.transcodeProfiles.showTranscodeProfiles?this.$refs.transcodeProfiles.selectedTranscodeProfile:"Нет"}</p>\n      <p>Поддержка HTTPS: ${this.https?"Да":"Нет"}</p>\n      <p>SSL-сертификат: ${this.sslCertificate?this.cert:"Не нужен"}</p>\n      <p>Плеер: ${this.needPlayer?"Да":"Нет"}</p>\n      <p>Авторизация: ${e}</p>\n      <p>DVR: ${this.needDvr?"Да":"Нет"}</p>\n      <p>Запись потока: ${this.needRecord?"Да":"Нет"}</p>\n      ${s}\n      <p>Ограничения раздачи: ${a||"Нет"}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,r={client_mail_custom:t.email,client_tel_custom:t.phone,other:i.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(r,i)},toggleOptions(){this.showOptions=!this.showOptions},getCorsDomainsLength(){return this.corsDomains.length},addCorsDomain(){this.corsDomains.push("")},removeCorsDomains(t){this.corsDomains.splice(t,1)}
1,goToOrderSelect(){this.$router.push({name:"streaming-new-cdn-1"})}}},Ls=(0,f.A)(Ms,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mpeg-ts-publish"},[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToOrderSelect}},[e("ArrowCircleIcon")],1),e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t(t.formName)))]),e("Wrench")],1)],1),e("div",{staticClass:"content-block first"},[e("FormTextBlock",{staticClass:"margin-bottom-2x",attrs:{label:"Опишите возможные точки организации стыка (город, датацентр)",placeholder:"Введите описание",multiline:!0},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}}),e("FormCheckboxBlock",{staticClass:"margin-bottom-2x distribution-protocol",attrs:{label:"Протоколы раздачи потока"},model:{value:t.distributionProtocols,callback:function(e){t.distributionProtocols=e},expression:"distributionProtocols"}}),e("FormTranscodeProfilesBlock",{ref:"transcodeProfiles",staticClass:"margin-bottom-2x"}),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"clickable pseudo-link",on:{click:t.toggleOptions}},[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("div",{directives:[{name:"show",rawName:"v-show",value:t.showOptions,expression:"showOptions"}],staticClass:"margin-bottom-2x"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Поддержка HTTPS")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.https,callback:function(e){t.https=e},expression:"https"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("SSL-сертификат")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо использовать SSL-сертификат.")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.sslCertificate,callback:function(e){t.sslCertificate=e},expression:"sslCertificate"}}),t.sslCertificate?e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.cert,expression:"cert"}],staticClass:"text-extralight margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cert=e.target.multiple?a:a[0]}}},t._l(t.certOptions,(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(t.$t(a)))])})),0)]):t._e()],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Плеер")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если Вам необходим плеер.")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.needPlayer,callback:function(e){t.needPlayer=e},expression:"needPlayer"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",[t._v(t._s(t.$t("Авторизация")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать дополнительную авторизацию.")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.needAuthorization,callback:function(e){t.needAuthorization=e},expression:"needAuthorization"}})],1),t.needAuthorization?e("div",{staticClass:"margin-bottom-2x"},[e("div",{staticClass:"margin-bottom"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.authorizationType,expression:"authorizationType"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.authorizationType=e.target.multiple?a:a[0]}}},t._l(t.authorizationTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),"local"===t.authorizationType?e("div",{staticClass:"localAuthorization"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к контенту используются специальные ссылки. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("mpeg-ts-publish-local-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"100",placeholder:t.$t("Укажите секретное слово")},model:{value:t.auth.md5.secret,callback:function(e){t.$set(t.auth.md5,"secret",e)},expression:"auth.md5.secret"}})],1),e("div",{staticClass:"margin-bottom-2x"}),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.forever,expression:"auth.md5.forever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.forever)?t._i(t.auth.md5.forever,null)>-1:t.auth.md5.forever},on:{change:function(e){var a=t.auth.md5.forever,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"forever",a.concat([null])):r>-1&&t.$set(t.auth.md5,"forever",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"forever",i)}}}),e("span",[t._v(t._s(t.$t("Не ограничивать по времени.")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.anywhere,expression:"auth.md5.anywhere"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.anywhere)?t._i(t.auth.md5.anywhere,null)>-1:t.auth.md5.anywhere},on:{change:function(e){var a=t.auth.md5.anywhere,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"anywhere",a.concat([null])):r>-1&&t.$set(t.auth.md5,"anywhere",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"anywhere",i)}}}),e("span",[t._v(t._s(t.$t("Не учитывать IP адрес.")))])])])])]):t._e(),"external"===t.authorizationType?e("div",{staticClass:"externalAuthorization"},[e("div",{staticClass:"margin-top margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к контенту используется внешний скрипт авторизации. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("mpeg-ts-publish-external-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"200",placeholder:t.$t("Укажите ссылку на внешний скрипт")},model:{value:t.auth.url,callback:function(e){t.$set(t.auth,"url",e)},expression:"auth.url"}})],1)]):t._e()]):t._e(),e("Limitations",{key:"limitations",ref:"limitations",attrs:{data:t.forms.limitations.data},on:{valid:t.setValidLimitations}}),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("DVR")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо использовать навигацию по эфиру (DVR).")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.needDvr,callback:function(e){t.needDvr=e},expression:"needDvr"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Запись потока")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо сохранить запись потока.")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.needRecord,callback:function(e){t.needRecord=e},expression:"needRecord"}})],1),e("FormRadioBlock",{staticClass:"cors",attrs:{label:"Домены, запросы с которых нужно разрешить (CORS)",possibleValues:t.corsPossibleValues},model:{value:t.cors,callback:function(e){t.cors=e},expression:"cors"}}),t._l(t.corsDomains,(function(a,s){return"custom"===t.cors?e("div",{key:s,staticClass:"cors-domains margin-top-2x flex align-center gap-2x"},[e("textbox",{staticClass:"cors-domain",attrs:{placeholder:t.$options.exampleDomain,maxlength:"249"},model:{value:t.corsDomains[s],callback:function(e){t.$set(t.corsDomains,s,e)},expression:"corsDomains[i]"}}),!s&&t.getCorsDomainsLength()<30?e("Tooltip",{attrs:{content:t.$t("Добавить домен"),placement:"top"}},[e("div",{staticClass:"add",on:{click:t.addCorsDomain}},[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(),s?e("Tooltip",{attrs:{content:t.$t("Удалить домен"),placement:"right"}},[e("div",{staticClass:"remove",on:{click:function(e){return t.removeCorsDomains(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):t._e()}))],2)])],1),e("div",{staticClass:"content-block last"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.send}})],1)])}),[],!1,null,"28398678",null).exports,Ds={name:"RtmpPullForm",components:{Toggle:ct.A,Textbox:p.A,FormRadioBlock:ks,FormCheckboxBlock:Rt,FormTextBlock:As,FormFooter:Ba,FormTranscodeProfilesBlock:Ps,TriangleArrow:Dt.A,Limitations:Ia,Btn:h.A,ArrowCircleIcon:ce.A,Wrench:Pt.A},mixins:[Z.A],exampleDomain:zt.xq,data(){return{formName:"RTMP/RTSP-pull",streams:[""],distributionProtocols:[{name:"RTMP",value:!1},{name:"HLS",value:!1},{name:"MPEG-DASH",value:!1},{name:"MSS",value:!1},{name:"Low Latency Streaming",value:!1}],needPlayer:!1,needAuthorization:!1,authorizationTypes:[{value:"local",text:"Локальная авторизация (на основе подписи)"},{value:"external",text:"Внешняя авторизация"}],authorizationType:"local",auth:{md5:{secret:"",forever:!1,anywhere:!1},url:""},needDvr:!1,needRecord:!1,showOptions:!1,sslCertificate:!1,certOptions:["Использовать существующий","Выпустить новый"],cert:"Использовать существующий",cors:"allow",corsPossibleValues:[{name:"Разрешить для всех",value:"allow"},{name:"Запретить для всех",value:"deny"},{name:"Добавить список доверенных доменов",value:"custom"}],corsDomains:[""],forms:{limitations:{valid:!0,data:{requestPayment:!1}}},validLimitations:!0}},computed:{triangleArrowStyle(){return{transform:this.showOptions?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showOptions?"-2px":"2px"}}},methods:{getStreamsLength(){return this.streams.length},getCorsDomainsLength(){return this.corsDomains.length},setValidLimitations(t){this.validLimitations=t},send(t){var e="";this.needAuthorization?(e=this.findElemFromArrayOfObject(this.authorizationTypes,this.authorizationType).text,"local"===this.authorizationType?(e+=`( секретное слово: ${this.auth.md5.secret}`,this.auth.md5.forever&&(e+=", не ограничивать по времени"),this.auth.md5.anywhere&&(e+=", не учитывать IP адрес"),e+=" )"):e+=`( внешний скрипт: ${this.auth.url} )`):e="Нет";let a=this.$refs.limitations.getDataOrder();var s=`<p>Домены, запросы с которых нужно разрешить (CORS): ${this.findElemFromArrayOfObject(this.corsPossibleValues,this.cors).name}</p>`;"custom"===this.cors&&(s+=`<p>Доверенные домены: ${this.corsDomains.join(", ")}</p>`);let i=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p>Ссылка на поток: ${this.streams.join(", ")}</p>\n      <p>Протоколы раздачи потока: ${this.getCheckboxValuesAsString(this.distributionProtocols)}</p>\n      <p>Транскодирование потока: ${this.$refs.transcodeProfiles.showTranscodeProfiles?this.$refs.transcodeProfiles.selectedTranscodeProfile:"Нет"}</p>\n      <p>SSL-сертификат: ${this.sslCertificate?this.cert:"Не нужен"}</p>\n      <p>Плеер: ${this.needPlayer?"Да":"Нет"}</p>\n      <p>Авторизация: ${e}</p>\n      <p>DVR: ${this.needDvr?"Да":"Нет"}</p>\n      <p>Запись потока: ${this.needRecord?"Да":"Нет"}</p>\n      ${s}\n      <p>Ограничения раздачи: ${a||"Нет"}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,r={client_mail_custom:t.email,client_tel_custom:t.phone,other:i.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(r,i)},toggleOptions(){this.showOptions=!this.showOptions},addStream(){this.streams.push("")},removeStream(t){this.streams.splice(t,1)},addCorsDomain(){this.corsDomains.push("")},removeCorsDomains(t){this.corsDomains.splice(t,1)}
1,goToOrderSelect(){this.$router.push({name:"streaming-new-cdn-1"})}}},Es=(0,f.A)(Ds,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"rtmp-pull"},[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToOrderSelect}},[e("ArrowCircleIcon")],1),e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t(t.formName)))]),e("Wrench")],1)],1),e("div",{staticClass:"content-block first"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Ссылка на поток")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите ссылку на поток с протоколом RTMP или RTSP.")))]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.streams,(function(a,s){return e("div",{key:s,staticClass:"streams margin-bottom flex align-center gap-2x"},[e("textbox",{staticClass:"stream-url",attrs:{placeholder:"rtmp://192.168.1.1:80/stream1",maxlength:"249"},model:{value:t.streams[s],callback:function(e){t.$set(t.streams,s,e)},expression:"streams[i]"}}),!s&&t.getStreamsLength()<100?e("Tooltip",{attrs:{content:t.$t("Добавить ссылку на поток"),placement:"top"}},[e("div",{staticClass:"add",on:{click:t.addStream}},[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(),s?e("Tooltip",{attrs:{content:t.$t("Удалить ссылку на поток"),placement:"right"}},[e("div",{staticClass:"remove",on:{click:function(e){return t.removeStream(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)})),0)],1),e("FormCheckboxBlock",{staticClass:"margin-bottom-2x distribution-protocol",attrs:{label:"Протоколы раздачи потока"},model:{value:t.distributionProtocols,callback:function(e){t.distributionProtocols=e},expression:"distributionProtocols"}}),e("FormTranscodeProfilesBlock",{ref:"transcodeProfiles",staticClass:"margin-bottom-2x"}),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"clickable pseudo-link",on:{click:t.toggleOptions}},[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("div",{directives:[{name:"show",rawName:"v-show",value:t.showOptions,expression:"showOptions"}],staticClass:"margin-bottom-2x"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("SSL-сертификат")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо использовать SSL-сертификат.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.sslCertificate,callback:function(e){t.sslCertificate=e},expression:"sslCertificate"}}),t.sslCertificate?e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.cert,expression:"cert"}],staticClass:"text-extralight margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cert=e.target.multiple?a:a[0]}}},t._l(t.certOptions,(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(t.$t(a)))])})),0)]):t._e()],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Плеер")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если Вам необходим плеер.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.needPlayer,callback:function(e){t.needPlayer=e},expression:"needPlayer"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Авторизация")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать дополнительную авторизацию.")))]),e("toggle",{model:{value:t.needAuthorization,callback:function(e){t.needAuthorization=e},expression:"needAuthorization"}})],1),t.needAuthorization?e("div",{staticClass:"margin-bottom-2x"},[e("div",{staticClass:"margin-bottom"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.authorizationType,expression:"authorizationType"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.authorizationType=e.target.multiple?a:a[0]}}},t._l(t.authorizationTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),"local"===t.authorizationType?e("div",{staticClass:"localAuthorization"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к контенту используются специальные ссылки. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("rtmp-pull-local-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"100",placeholder:t.$t("Укажите секретное слово")},model:{value:t.auth.md5.secret,callback:function(e){t.$set(t.auth.md5,"secret",e)},expression:"auth.md5.secret"}})],1),e("div",{staticClass:"margin-bottom-2x"}),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.forever,expression:"auth.md5.forever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.forever)?t._i(t.auth.md5.forever,null)>-1:t.auth.md5.forever},on:{change:function(e){var a=t.auth.md5.forever,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"forever",a.concat([null])):r>-1&&t.$set(t.auth.md5,"forever",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"forever",i)}}}),e("span",[t._v(t._s(t.$t("Не ограничивать по времени.")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.anywhere,expression:"auth.md5.anywhere"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.anywhere)?t._i(t.auth.md5.anywhere,null)>-1:t.auth.md5.anywhere},on:{change:function(e){var a=t.auth.md5.anywhere,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"anywhere",a.concat([null])):r>-1&&t.$set(t.auth.md5,"anywhere",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"anywhere",i)}}}),e("span",[t._v(t._s(t.$t("Не учитывать IP адрес.")))])])])])]):t._e(),"external"===t.authorizationType?e("div",{staticClass:"externalAuthorization"},[e("div",{staticClass:"margin-top margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к контенту используется внешний скрипт авторизации. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("rtmp-pull-external-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"200",placeholder:t.$t("Укажите ссылку на внешний скрипт")},model:{value:t.auth.url,callback:function(e){t.$set(t.auth,"url",e)},expression:"auth.url"}})],1)]):t._e()]):t._e(),e("Limitations",{key:"limitations",ref:"limitations",attrs:{data:t.forms.limitations.data},on:{valid:t.setValidLimitations}}),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("DVR")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо использовать навигацию по эфиру (DVR).")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.needDvr,callback:function(e){t.needDvr=e},expression:"needDvr"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Запись потока")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо сохранить запись потока.")))]),e("toggle",{staticClass:"margin-bottom",model:{value:t.needRecord,callback:function(e){t.needRecord=e},expression:"needRecord"}})],1),e("FormRadioBlock",{staticClass:"cors",attrs:{label:"Домены, запросы с которых нужно разрешить (CORS)",possibleValues:t.corsPossibleValues},model:{value:t.cors,callback:function(e){t.cors=e},expression:"cors"}}),t._l(t.corsDomains,(function(a,s){return"custom"===t.cors?e("div",{key:s,staticClass:"cors-domains margin-top-2x flex align-center gap-2x"},[e("textbox",{staticClass:"cors-domain",attrs:{placeholder:t.$options.exampleDomain,maxlength:"249"},model:{value:t.corsDomains[s],callback:function(e){t.$set(t.corsDomains,s,e)},expression:"corsDomains[i]"}}),!s&&t.getCorsDomainsLength()<30?e("Tooltip",{attrs:{content:t.$t("Добавить домен"),placement:"top"}},[e("div",{staticClass:"add",on:{click:t.addCorsDomain}},[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(),s?e("Tooltip",{attrs:{content:t.$t("Удалить домен"),placement:"right"}},[e("div",{staticClass:"remove",on:{click:function(e){return t.removeCorsDomains(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):t._e()}))],2)])],1),e("div",{staticClass:"content-block last"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.send}})],1)])}),[],!1,null,"67fb5d9e",null).exports,zs={name:"IcecastPullForm",components:{Toggle:ct.A,Textbox:p.A,FormRadioBlock:ks,FormCheckboxBlock:Rt,DataHint:H.A,FormTextBlock:As,FormFooter:Ba,TriangleArrow:Dt.A,Limitations:Ct,Btn:h.A,ArrowCircleIcon:ce.A,Wrench:Pt.A},mixins:[Z.A],data(){return{formName:"Icecast-pull",streams:[""],distributionProtocols:[{name:"RTMP",value:!1},{name:"HLS",value:!1},{name:"MPEG-DASH",value:!1},{name:"Icecast",value:!1}],needAuthorization:!1,authorizationTypes:[{value:"local",text:"Локальная авторизация (на основе подписи)"},{value:"external",text:"Внешняя авторизация"}],authorizationType:"local",auth:{md5:{secret:"",forever:!1,anywhere:!1},url:""},needDvr:!1,needRecord:!1,showOptions:!1,sslCertificate:!1,certOptions:["Использовать существующий","Выпустить новый"],cert:"Использовать существующий",warningText:"Опция работает только при HLS раздаче",forms:{limitations:{valid:!0,data:{requestPayment:!1}}},validLimitations:!0}},computed:{triangleArrowStyle(){return{transform:this.showOptions?"rotate(45deg)":"rotate(225deg)","margin-bottom":this.showOptions?"-2px":"2px"}}},methods:{setSelectedTranscodeProfile(t){this.selectedTranscodeProfile=t},getStreamsLength(){return this.streams.length},getCorsDomainsLength(){return this.corsDomains.length},setValidLimitations(t){this.validLimitations=t},send(t){var e="";this.needAuthorization?(e=this.findElemFromArrayOfObject(this.authorizationTypes,this.authorizationType).text,"local"===this.authorizationType?(e+=`( секретное слово: ${this.auth.md5.secret}`,this.auth.md5.forever&&(e+=", не ограничивать по времени"),this.auth.md5.anywhere&&(e+=", не учитывать IP адрес"),e+=" )"):e+=`( внешний скрипт: ${this.auth.url} )`):e="Нет";let a=this.$refs.limitations.getDataOrder(),s=`<h2>Заказ услуги "${this.formName}"</h2>\n\n      <h3>Контакты:</h3>\n      <p>Тип клиента: ${this.$user.isCDN1()?"CDN1":"CDN2"}</p>\n      <p>Телефон: ${t.phone}</p>\n\n      <h3>Выбранные параметры:</h3>\n      <p>Источник данных: ${this.streams.join(", ")}</p>\n      <p>Протоколы раздачи потока: ${this.getCheckboxValuesAsString(this.distributionProtocols)}</p>\n      <p>SSL-сертификат: ${this.sslCertificate?this.cert:"Не нужен"}</p>\n      <p>Авторизация: ${e}</p>\n      <p>DVR: ${this.needDvr?"Да":"Нет"}</p>\n      <p>Запись потока: ${this.needRecord?"Да":"Нет"}</p>\n      <p>Ограничения раздачи: ${a||"Нет"}</p>\n\n      <h3>Дополнительные пожелания:</h3>\n      <p style="white-space: pre-wrap">${t.comment}</p>`,i={client_mail_custom:t.email,client_tel_custom:t.phone,other:s.replace(/(<([^>]+)>)/gi,"")};this.sendFormDataToAmoCrmAndEmail(i,s)},toggleOptions(){this.showOptions=!this.showOptions},addStream(){this.streams.push("")},removeStream(t){this.streams.splice(t,1)},addCorsDomain(){this.corsDomains.push("")},removeCorsDomains(t){this.corsDomains.splice(t,1)}
1,goToOrderSelect(){this.$router.push({name:"streaming-new-cdn-1"})}}},Ns=(0,f.A)(zs,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"icecast-pull"},[e("div",{staticClass:"content"},[e("btn",{staticClass:"content-block-corner-button",attrs:{type:"icon",size:"medium"},on:{click:t.goToOrderSelect}},[e("ArrowCircleIcon")],1),e("div",{staticClass:"header flex align-center"},[e("h1",{staticClass:"text-header-2"},[t._v(t._s(t.$t(t.formName)))]),e("Wrench")],1)],1),e("div",{staticClass:"content-block first"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Источник данных")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Укажите ссылку, по которой доступен ваш контент.")))]),e("transition-group",{attrs:{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",tag:"div"}},t._l(t.streams,(function(a,s){return e("div",{key:s,staticClass:"streams margin-bottom flex align-center gap-2x"},[e("textbox",{staticClass:"stream-url",attrs:{placeholder:"http://icecast.test-customer.com:8000/",maxlength:"249"},model:{value:t.streams[s],callback:function(e){t.$set(t.streams,s,e)},expression:"streams[i]"}}),!s&&t.getStreamsLength()<100?e("Tooltip",{attrs:{content:t.$t("Добавить ссылку"),placement:"top"}},[e("div",{staticClass:"add",on:{click:t.addStream}},[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(),s?e("Tooltip",{attrs:{content:t.$t("Удалить ссылку"),placement:"right"}},[e("div",{staticClass:"remove",on:{click:function(e){return t.removeStream(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)})),0)],1),e("FormCheckboxBlock",{staticClass:"margin-bottom-2x distribution-protocol",attrs:{label:"Протоколы раздачи потока"},model:{value:t.distributionProtocols,callback:function(e){t.distributionProtocols=e},expression:"distributionProtocols"}}),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"clickable pseudo-link",on:{click:t.toggleOptions}},[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("div",{directives:[{name:"show",rawName:"v-show",value:t.showOptions,expression:"showOptions"}],staticClass:"margin-bottom-2x"},[e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("SSL-сертификат")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо использовать SSL-сертификат.")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.sslCertificate,callback:function(e){t.sslCertificate=e},expression:"sslCertificate"}}),t.sslCertificate?e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.cert,expression:"cert"}],staticClass:"text-extralight margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.cert=e.target.multiple?a:a[0]}}},t._l(t.certOptions,(function(a){return e("option",{domProps:{value:a}},[t._v(t._s(t.$t(a)))])})),0)]):t._e()],1),e("div",{staticClass:"margin-bottom-2x"},[e("label",{staticClass:"margin-bottom"},[t._v(t._s(t.$t("Авторизация")))]),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если планируете использовать дополнительную авторизацию.")))]),e("Toggle",{model:{value:t.needAuthorization,callback:function(e){t.needAuthorization=e},expression:"needAuthorization"}})],1),t.needAuthorization?e("div",{staticClass:"margin-bottom-2x"},[e("div",{staticClass:"margin-bottom"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.authorizationType,expression:"authorizationType"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.authorizationType=e.target.multiple?a:a[0]}}},t._l(t.authorizationTypes,(function(a){return e("option",{domProps:{value:a.value,textContent:t._s(t.$t(a.text))}})})),0)]),"local"===t.authorizationType?e("div",{staticClass:"localAuthorization"},[e("div",{staticClass:"margin-top"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к контенту используются специальные ссылки. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("icecast-pull-local-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"100",placeholder:t.$t("Укажите секретное слово")},model:{value:t.auth.md5.secret,callback:function(e){t.$set(t.auth.md5,"secret",e)},expression:"auth.md5.secret"}})],1),e("div",{staticClass:"margin-bottom-2x"}),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.forever,expression:"auth.md5.forever"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.forever)?t._i(t.auth.md5.forever,null)>-1:t.auth.md5.forever},on:{change:function(e){var a=t.auth.md5.forever,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"forever",a.concat([null])):r>-1&&t.$set(t.auth.md5,"forever",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"forever",i)}}}),e("span",[t._v(t._s(t.$t("Не ограничивать по времени.")))])]),e("div",{staticClass:"margin-bottom"},[e("label",{staticClass:"checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.auth.md5.anywhere,expression:"auth.md5.anywhere"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.auth.md5.anywhere)?t._i(t.auth.md5.anywhere,null)>-1:t.auth.md5.anywhere},on:{change:function(e){var a=t.auth.md5.anywhere,s=e.target,i=!!s.checked;if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.auth.md5,"anywhere",a.concat([null])):r>-1&&t.$set(t.auth.md5,"anywhere",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.auth.md5,"anywhere",i)}}}),e("span",[t._v(t._s(t.$t("Не учитывать IP адрес.")))])])])])]):t._e(),"external"===t.authorizationType?e("div",{staticClass:"externalAuthorization"},[e("div",{staticClass:"margin-top margin-bottom"},[e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Для доступа к контенту используется внешний скрипт авторизации. Подробнее об этом можно почитать "))),e("a",{attrs:{href:this.formDocumentationUrl("icecast-pull-external-auth"),target:"_blank"}},[t._v(t._s(t.$t("тут.")))])]),e("textbox",{attrs:{maxlength:"200",placeholder:t.$t("Укажите ссылку на внешний скрипт")},model:{value:t.auth.url,callback:function(e){t.$set(t.auth,"url",e)},expression:"auth.url"}})],1)]):t._e()]):t._e(),e("Limitations",{key:"limitations",ref:"limitations",attrs:{data:t.forms.limitations.data},on:{valid:t.setValidLimitations}}),e("div",{staticClass:"margin-bottom-2x"},[e("div",{staticClass:"flex align-center margin-bottom"},[e("label",[t._v(t._s(t.$t("DVR")))]),e("Tooltip",{attrs:{content:t.$t(t.warningText),placement:"right"}},[e("div",{staticClass:"warning"},[e("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),e("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),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
1),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо использовать навигацию по эфиру (DVR).")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.needDvr,callback:function(e){t.needDvr=e},expression:"needDvr"}})],1),e("div",{staticClass:"margin-bottom-2x"},[e("div",{staticClass:"flex align-center margin-bottom"},[e("label",[t._v(t._s(t.$t("Запись потока")))]),e("Tooltip",{attrs:{content:t.$t(t.warningText),placement:"right"}},[e("div",{staticClass:"warning"},[e("svg",{attrs:{"enable-background":"new 0 0 65 65",version:"1.1",viewBox:"0 0 65 65","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"}},[e("g",[e("g",[e("path",{attrs:{d:"M32.5,0C14.58,0,0,14.579,0,32.5S14.58,65,32.5,65S65,50.421,65,32.5S50.42,0,32.5,0z M32.5,61C16.785,61,4,48.215,4,32.5    S16.785,4,32.5,4S61,16.785,61,32.5S48.215,61,32.5,61z"}}),e("path",{attrs:{d:"m31.862 36.948c1.104 0 2-0.94301 2-2.1049v-17.892c0-1.1619-0.896-2.1049-2-2.1049s-2 0.94301-2 2.1049v17.892c0 1.163 0.896 2.1049 2 2.1049z"}}),e("circle",{attrs:{transform:"scale(-1)",cx:"-31.916",cy:"-47.909",r:"3.345"}})])]),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),e("div",{staticClass:"text-extralight margin-bottom"},[t._v(t._s(t.$t("Активируйте, если необходимо сохранить запись потока.")))]),e("Toggle",{staticClass:"margin-bottom",model:{value:t.needRecord,callback:function(e){t.needRecord=e},expression:"needRecord"}})],1)],1)])],1),e("div",{staticClass:"content-block last"},[e("FormFooter",{attrs:{isSending:t.dataIsSending},on:{send:t.send}})],1)])}),[],!1,null,"52dcd074",null).exports,Is={name:"ResourceForms",components:{Scrolled:fe.A,MpegTsPublishForm:Ls,RtmpPullForm:Es,IcecastPullForm:Ns},props:{target:{type:String}}},Os=(0,f.A)(Is,(function(){var t=this,e=t._self._c;return e("Scrolled",[e("div",{staticClass:"flex column full-height"},[e("div",{staticClass:"grow relative"},["mpeg-ts"===t.target?e("MpegTsPublishForm"):t._e(),"rtmp-pull"===t.target?e("RtmpPullForm"):t._e(),"icecast-pull"===t.target?e("IcecastPullForm"):t._e()],1)])])}),[],!1,null,"13c12516",null).exports;function Us(t,e,a){n.A.canReadStatusPage()?a():a({name:"admin-home"})}const Vs=()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(1920),a.e(236),a.e(809),a.e(8533),a.e(6452),a.e(4140)]).then(a.bind(a,56825)),Bs=()=>Promise.all([a.e(1611),a.e(6452),a.e(8615)]).then(a.bind(a,79573)),Fs=()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,64747)),Hs=()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,77531)),js=()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,40856)),qs=()=>Promise.all([a.e(7125),a.e(1611),a.e(8096),a.e(3669),a.e(187)]).then(a.bind(a,49828));function Gs(t){return{id:Number(t.params.id)}}const Ys=[{name:"dashboard",path:"/dashboard",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(7719),a.e(5787),a.e(945)]).then(a.bind(a,62302)),beforeEnter:async(t,e,a)=>{"TurboFlare"===await(0,r.n4)()?a({name:"turboflare"}):a()},meta:{cdn1:!0}},{name:"home",path:"/",redirect:{name:"dashboard"}},{name:"login",path:"/login",component:F,meta:{guest:!0}},{name:"register",path:"/register/:status(ready)?",component:X,props:!0,meta:{guest:!0}},{name:"set-password",path:"/set-password/:code?",component:et,props:!0,meta:{guest:!0}},{name:"report-unsubscribe",path:"/report-unsubscribe",component:st,meta:{guest:!0}},{name:"restore",path:"/restore",component:rt,meta:{guest:!0}},{name:"activate",path:"/activate/:code?",component:ot,props:!0,meta:{guest:!0}},{name:"nomenclature",path:"/admin/nomenclature",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,19451)),props:!0,meta:{staff:!0,access:(0,r.be)(c.A.billing.nomenclature.read,l.A.DASHBOARD)}},{name:"nomenclature-item-edit",path:"/admin/nomenclature/edit/:id(\\d+)",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,93424)),props:!0,meta:{staff:!0}},{name:"nomenclature-item-add",path:"/admin/nomenclature/add/",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,26230)),meta:{staff:!0}},{name:"statuspage",path:"/statuspage",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,51846)),meta:{staff:!0},redirect:()=>({name:"incidents-list"}),children:[{name:"incidents",path:"incidents",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,948
106)),redirect:()=>({name:"incidents-list"}),meta:{staff:!0},children:[{name:"incidents-list",path:"",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,7007)),meta:{staff:!0}},{name:"incident-new",path:"new",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,16392)),meta:{staff:!0}},{name:"incident-edit",path:"edit/:id",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,12810)),meta:{staff:!0}},{name:"incident-new-version",path:"edit/:id/new/version",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,96288)),meta:{staff:!0}},{name:"incident-edit-version",path:"edit/:incidentId/version/edit/:versionId",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,92010)),meta:{staff:!0}}]},{name:"maintenance",path:"maintenance",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,13853)),redirect:()=>({name:"maintenances-list"}),meta:{staff:!0},children:[{name:"maintenances-list",path:"",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,69658)),meta:{staff:!0}},{name:"maintenance-new",path:"new",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,78895)),meta:{staff:!0}},{name:"maintenance-edit",path:"edit/:id",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,7420)),meta:{staff:!0}},{name:"maintenance-new-version",path:"edit/:id/new/version",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,8910)),meta:{staff:!0}},{name:"maintenance-edit-version",path:"edit/:maintenanceId/version/edit/:versionId",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,93999)),meta:{staff:!0}}]},{name:"components-list",path:"components",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,91340)),meta:{staff:!0}},{name:"subscriptions",path:"subscriptions",beforeEnter:Us,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,1954)),meta:{staff:!0}}]},{name:"f-cdn",path:"/f-cdn",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,47679)),redirect:()=>({name:"http"}),children:[{name:"http",path:"http",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,85558)),props:!0,meta:{cdn1:!0},redirect:r.KU,children:[{name:"http-resources",path:"resources",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,48833)),props:!0,meta:{cdn1:!0}},{name:"cdn-resource-new-http-cdn1",path:"new/cdn1",component:na,meta:{cdn1:!0}},{name:"cdn-resource-new-http",path:"new",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,90759))},{name:"resource-http",path:":id/:target(edit|config|limitations|rules|expert|rule)?/:rule?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,98922)),props:!0}]},{name:"cdn-cache-clear",path:"cache",component:ya,meta:{cdn1:!0}},{name:"cdn-dvr-delete",path:"dvr-delete",component:()=>a.e(7653).then(a.bind(a,40085)),meta:{cdn1:!0}},{name:"cert",path:"cert",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,47707)),meta:{cdn1:!0,access:(0,r.be)(c.A.ssl.certificate.read,l.A.DASHBOARD)},redirect:t=>({name:"certs"}),children:[{name:"certs",path:"certs",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,72133)),meta:{cdn1:!0}},{name:"cert-edit",path:"certs/:id(\\d+)",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,58552)),props:!0},{name:"cert-new",path:"certs/new/:target(upload|letsencrypt)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,52699)),props:!0,meta:{cdn1:!0},beforeEnter:(t,e,a)=>{const{target:s}=t.params;"upload"===s&&(t.meta.access=(0,r.be)(c.A.ssl.certificate.create,l.A.DASHBOARD)),"letsencrypt"===s&&(t.meta.access=(0,r.be)(c.A.ssl.certificate.le.create,l.A.DASHBOARD)),a()}}]},{name:"cdn-stat",path:"statistics",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(236),a.e(2188)]).then(a.bind(a,79268)),props:!0,meta:{cdn1:!0}}],meta:{cdn1:!0}},{name:"streaming",path:"/streaming",component:()=>Promise.all([a.e(8533),a.e(4046)]).then(a.bind(a,26272)),redirect:()=>({name:"live"}),meta:{access:(0,r.be)(c.A.pageBroadcast.read,l.A.DASHBOARD)},children:[{name:"live",path:"live",component:()=>a.e(9374).then(a.bind(a,89374)),redirect:r.Pm,children:[{name:l.A.LIVE_RESOURCES,path:"resources",component:()=>Promise.all([a.e(1611),a.e(2259)]).then(a.bind(a,72259)),props:!0},{name:"streaming-resource-new",path:"new",component:()=>Promise.all([a.e(1611),a.e(1339)]).then(a.bind(a,1339))},{name:l.A.RESOURCE_LIVE_RESTREAM,path:":id/:target(restream)/:rule?",component:Vs,props:!0,meta:{cdn1:!0,access:(0,r.be)(c.A.restream.configuration.read,l.A.LIVE_RESOURCES)}},{name:l.A.RESOURCE_LIVE_RESTREAM_NEW,path:":id/:target(restream-new)",component:Vs,props:!0,meta:{cdn1:!0,access:(0,r.be)(c.A.restream.configuration.update,l.A.LIVE_RESOURCES)}},{name:l.A.RESOURCE_LIVE_RESTREAM_TABLE,path:":id/:target(restream-table)",component:Vs,props:!0,meta:{cdn1:!0,access:(0,r.be)(c.A.restream.configuration.read,l.A.LIVE_RESOURCES)}},{name:l.A.RESOURCE_LIVE,path:":id/:target(edit|config|limitations|rules|rule|expert|config-HLS|limitations-HLS|player)?/:rule?",component:Vs,props:!0}
1,{name:"streaming-new-cdn-1",path:"order",component:Sa,meta:{cdn1:!0}},{name:"streaming-rtmp-cdn-1",path:"order/newrtmp",component:cs,meta:{cdn1:!0}},{name:"streaming-srt-cdn-1",path:"order/newsrt",component:vs,meta:{cdn1:!0}},{name:"streaming-hls-cdn-1",path:"order/newhls",component:$s,meta:{cdn1:!0}},{name:"streaming-other-cdn-1",path:"order/:target(rtmp-pull|mpeg-ts|low-latency|icecast-pull)",component:Os,props:!0,meta:{cdn1:!0}}]},{name:l.A.STREAMING_RECORDS,path:"records/:resourceId?",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(809),a.e(735)]).then(a.bind(a,50809)),meta:{access:(0,r.be)(c.A.record.file.read,l.A.LIVE_RESOURCES)}},{name:"restream-section",path:"/restreaming",component:()=>a.e(1340).then(a.bind(a,81340)),meta:{cdn1:!0,access:(0,r.be)(c.A.restream.configuration.read,l.A.LIVE_RESOURCES)},children:[{name:"restreaming",path:"",component:Bs,props:!0,meta:{cdn1:!0,access:(0,r.be)(c.A.restream.configuration.read,l.A.LIVE_RESOURCES)}},{name:"restreaming-edit",path:":id/:target(restream|restream-new|restream-table)?/:rule?",component:Vs,props:!0,meta:{access:(0,r.be)(c.A.restream.configuration.read,l.A.LIVE_RESOURCES)}},{name:"streaming-restream",path:":id/:target(edit|status|player|deactivate)?",component:ea,props:!0,meta:{cdn1:!0,access:(0,r.be)(c.A.restream.configuration.read,l.A.LIVE_RESOURCES)}},{name:"streaming-restream-new",path:"new",component:ca,meta:{cdn1:!0,access:(0,r.be)(c.A.restream.configuration.update,l.A.LIVE_RESOURCES)}}]},{name:"restreaming-list",path:"restreams/",component:Bs,props:!0,meta:{cdn1:!0,access:(0,r.be)(c.A.restream.configuration.read,l.A.LIVE_RESOURCES)}}]},{name:"media",path:"/media",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(1920),a.e(8201)]).then(a.bind(a,69697)),meta:{access:(0,r.be)(c.A.media.storage.file.read,l.A.CERTS)},redirect:()=>(0,o.f)()?{name:"directory",params:{pathMatch:""}}:{name:"home"},children:[{name:"initialization",path:"init",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(1920),a.e(8201)]).then(a.bind(a,45595))},{name:"directory",path:"files*",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(1920),a.e(8201)]).then(a.bind(a,18277)),props:!0},{name:"overview",path:"file/:path/:id/overview",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(1920),a.e(8201)]).then(a.bind(a,21772)),props:!0},{name:"videofile-actions",path:"file/:path/:id/actions",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(1920),a.e(8201)]).then(a.bind(a,94701)),props:!0,meta:{localizedName:"Действия с медиа файлом"}},{name:"player-settings",path:"file/:path/:id/settings",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(1920),a.e(8201)]).then(a.bind(a,82933)),props:!0,meta:{localizedName:"Настройки плеера"}},{name:"videofile-analytics",path:"file/:path/:id/analytics",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(1920),a.e(8201)]).then(a.bind(a,81727)),props:!0,meta:{localizedName:"Аналитика"}}]},{name:"s3-media",path:"/s3-media",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,7012)),redirect:()=>({name:"storage"}),children:[{name:"storage",path:"storage",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,93155)),props:!0,children:[{name:"media-initialization",path:"init",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,49701))},{name:"file-explorer",path:"files*",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,63102))},{name:"media-cdn-resource",path:"cdn-resource",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,66955)),redirect:{name:"media-cdn-resource-common-settings"},children:[{name:"media-cdn-resource-common-settings",path:"common-settings",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,75809))},{name:"media-cdn-resource-limitations",path:"resource-limitations",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,9096))}]},{name:"media-videofile",path:"video/:id",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,9272)),props:!0,redirect:{name:"media-videofile-overview"},children:[{name:"media-videofile-overview",path:"overview",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,26907)),props:!0}
1,{name:"media-videofile-player-settings",path:"player-settings",props:!0,component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,72154))},{name:"media-videofile-transcode",path:"transcode",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,84260))},{name:"media-videofile-cut",path:"cut",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,14420))},{name:"media-videofile-analytics",path:"analytics",component:()=>Promise.all([a.e(9308),a.e(7125),a.e(1611),a.e(8096),a.e(7719),a.e(1920),a.e(6653)]).then(a.bind(a,10023))}]}]}]},{name:"dns",path:"/dns",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(3669),a.e(9492)]).then(a.bind(a,68601)),redirect:t=>({name:"dns-section"}),meta:{cdn1:!0,access:(0,r.be)(c.A.dns.configuration.read,l.A.DASHBOARD)},children:[{name:"dns-section",path:"section",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(3669),a.e(9492)]).then(a.bind(a,78842)),redirect:{name:"dns-zones"},children:[{name:"dns-zones",path:"zones",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(3669),a.e(9492)]).then(a.bind(a,70097)),meta:{cdn1:!0},props:!0},{name:"add-dns-zone",path:"new-zone",meta:{cdn1:!0,access:(0,r.be)(c.A.dns.configuration.update,l.A.DNS)},component:()=>Promise.all([a.e(7125),a.e(1611),a.e(3669),a.e(9492)]).then(a.bind(a,36044))},{name:"dns-zone",path:"dns-zone/:id",meta:{cdn1:!0},props:!0,component:()=>Promise.all([a.e(7125),a.e(1611),a.e(3669),a.e(9492)]).then(a.bind(a,8224))},{name:"add-dns-rrSet",path:"dns-zone/:zoneId/add-rrSet",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(3669),a.e(9492)]).then(a.bind(a,13917)),meta:{cdn1:!0,access:(0,r.be)(c.A.dns.configuration.update,l.A.DNS)},props:!0},{name:"edit-dns-rrSet",path:"dns-zone/:zoneId/rrSet/:rrSetId",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(3669),a.e(9492)]).then(a.bind(a,96827)),meta:{cdn1:!0,access:(0,r.be)(c.A.dns.configuration.update,l.A.DNS)},props:!0}]}]},{name:"player",path:"/player",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1920),a.e(1088)]).then(a.bind(a,71382)),redirect:{name:"edit-players"},children:[{name:"edit-players",path:"edit-players",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1920),a.e(1088)]).then(a.bind(a,26600)),redirect:{name:"players"},children:[{name:"player-new",path:"new",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1920),a.e(1088)]).then(a.bind(a,16231)),props:!0,meta:{cdn1:!0}},{name:"players",path:"players-list",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1920),a.e(1088)]).then(a.bind(a,68857)),props:!0,meta:{cdn1:!0}},{name:"player-edit",path:":id",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1920),a.e(1088)]).then(a.bind(a,92216)),props:!0,meta:{cdn1:!0}}]}]},{name:l.A.CLOUD,path:"/cloud",beforeEnter:async(t,e,a)=>{const s=await(0,r.n4)();t.matched.at(-1).name===l.A.CLOUD?a("inframarket"===s?{name:l.A.CLOUD_OBJECT_STORAGE}:{name:"virtual-machine"}):a()},component:()=>Promise.all([a.e(1611),a.e(2074)]).then(a.bind(a,84856)),children:[{name:"virtual-machine",path:"virtual-machine",component:()=>Promise.all([a.e(1611),a.e(2074)]).then(a.bind(a,25044)),meta:{cdn1:!0,access:(0,r.be)(c.A.openstack.project.get,l.A.CLOUD_OBJECT_STORAGE)},redirect:{name:"virtual-machines"},children:[{name:"virtual-machines",path:"machines",component:()=>Promise.all([a.e(1611),a.e(2074)]).then(a.bind(a,37678)),meta:{cdn1:!0}},{name:"virtual-machine-new",path:"new",component:()=>Promise.all([a.e(1611),a.e(2074)]).then(a.bind(a,29165)),meta:{cdn1:!0},beforeEnter:(t,e,a)=>{a({name:"virtual-machines"})}}]},{name:l.A.CLOUD_OBJECT_STORAGE,path:"object-storage",component:()=>Promise.all([a.e(1611),a.e(2074)]).then(a.bind(a,60722)),meta:{cdn1:!0,access:(0,r.be)(c.A.s3.user.read,{name:l.A.CLOUD_ITEMS,params:{target:"private-cloud"}})}},{name:"cloud-items",path:":target(iaas-form|private-cloud|remote-workplace)",component:()=>Promise.all([a.e(1611),a.e(2074)]).then(a.bind(a,93215)),props:!0,meta:{cdn1:!0}}],meta:{cdn1:!0}},{name:"security",path:"/security",component:ua,redirect:{name:"security-items",params:{target:"antiddos"}},children:[{name:"security-items",path:":target(antiddos|waf)",component:ba,props:!0,meta:{cdn1:!0}}],meta:{cdn1:!0}},{name:"stat",path:"/stat",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(5787),a.e(8805)]).then(a.bind(a,10008)),children:[{name:"stat-base",path:"base/:target(report|traffic|http-codes|referrers|browsers|customs|partners|get-log|ioss)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(5787),a.e(8805)]).then(a.bind(a,52996)),props:!0,meta:{cdn1:!0}},{name:"stat-stream",path:"stream/:target(views|users|durations|durations-distribution|geo|browsers)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(5787),a.e(8805)]).then(a.bind(a,70415)),props:!0,meta:{cdn1:!0,access:(0,r.be)(c.A.stat.read.streamstat,l.A.STAT)}},{name:"stat-player",path:"player/:target(countable|unique|average)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(5787),a.e(8805)]).then(a.bind(a,19908)),props:!0,meta:{cdn1:!0,access:(0,r.be)(c.A.stat.read.player,l.A.STAT)}},{name:"stat-virtual-machines",path:"virtualMachines/:target(vcpu|ram|disk|data|vgpu)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(5787),a.e(8805)]).then(a.bind(a,93651)),props:!0,meta:{cdn1:!0}},{name:"stat-log",path:"logstat/:target(get-log|upload-log)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(5787),a.e(8805)]).then(a.bind(a,75319)),props:!0,meta:{cdn1:!0}},{name:"stat-reports",path:"reports",component:js,meta:{cdn1:!0}}],meta:{cdn1:!0}},{name:l.A.PROFILE,path:"/profile",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,67454)),redirect:{name:l.A.PROFILE_PERSON},children:[{name:l.A.PROFILE_PERSON,path:"person",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,65658)),props:!0,meta:{cdn1:!0}},{name:l.A.PROFILE_PERSON_ADMIN,path:"person-admin/:target(profile|contract|password|twofa)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,2864)),props:!0,meta:{staff:!0}},{name:"profile-reports",path:"profile-reports",component:js,meta:{cdn1:!0}},{name:l.A.PROFILE_BILLING,path:"billing",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,57195)),beforeEnter:async(t,e,a)=>{if(t.matched.at(-1).name===l.A.PROFILE_BILLING){const t=await(0,r.tO)();a({name:{1:l.A.PROFILE_BILLING_CDN1,2:l.A.PROFILE_BILLING_CDN2}[t]})}else a()},meta:{cdn1:!0},children:[{name:l.A.PROFILE_BILLING_CDN1,path:"cdn1/:target(balance|tariff|contract|charge|payments)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,61254)),beforeEnter:(t,e,a)=>{t.params.target?a():a({name:t.name,params:{target:"balance"},replace:!0})},meta:{cdn1:!0,access:(0,r.be)(c.A.billing.read,l.A.DASHBOARD)},props:!0},{name:l.A.PROFILE_BILLING_CDN2,path:"cdn2/:target(balance|tariff|contract|charge|payments|options-active|options-catalog|balance_admin|tariff_admin|options|entity-form|distribution)?",component:Fs,meta:{access:(0,r.be)(c.A.billing.read,l.A.DASHBOARD)},props:!0},{name:"profile-billing-balance-replenish",path:"cdn2/:target(balance)/replenish",component:Fs,meta:{access:(0,r.be)(c.A.billing.read,l.A.DASHBOARD)},props:t=>({refill:!0,isPaypal:t.params.isPaypal})}]},{name:"profile-service",path:"service",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(8138)]).then(a.bind(a,70088)),props:!0},{name:"user-action-history",path:"account/action-history",component:Hs,meta:{cdn1:!0}},{name:"user-action-history-staff",path:"account/action-history-staff",component:Hs,meta:{staff:!0}}],meta:{cdn1:!0}},{name:"talking-head",path:"/talking-head",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(9122)]).then(a.bind(a,7113)),redirect:{name:"talking-head-videos"},children:[{name:"talking-head-videos",path:":demo(demo|)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(9122)]).then(a.bind(a,44981)),props:!0,meta:{cdn1:!0}},{name:"talking-head-edit",path:"edit/:id",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(9122)]).then(a.bind(a,24434)),props:!0,meta:{cdn1:!0}},{name:"talking-head-new",path:"new",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(9122)]).then(a.bind(a,86017)),props:!0,meta:{cdn1:!0}},{name:"talking-head-create-classic",path:"create-classic/:target(models|backgrounds|voices|text)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(9122)]).then(a.bind(a,18502)),props:!0,meta:{cdn1:!0}},{name:"talking-head-create-by-image",path:"create-by-image/:target(models|backgrounds|voices|text)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(9122)]).then(a.bind(a,61682)),props:!0},{name:"talking-head-create-cartoon",path:"create-cartoon/:target(models|backgrounds|voices|text)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(9122)]).then(a.bind(a,55920)
1),props:!0},{name:"talking-head-result",path:"task/:id",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(9122)]).then(a.bind(a,83920)),props:!0,meta:{cdn1:!0}}],meta:{cdn1:!0}},{name:"cdn1-home",path:"/",redirect:{name:"dashboard"},meta:{cdn1:!0}},{name:"oldstat",path:"/oldstat",component:Ca},{name:"billing-rates",path:"/billingrates",component:_e},{name:"employees",path:"/admin/employees",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,50823)),meta:{staff:!0}},{name:"employee-new",path:"/admin/employees/new",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,29264)),meta:{staff:!0}},{name:"employee",path:"/admin/employees/:id",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,2867)),props:Gs,meta:{staff:!0}},{name:"leads",path:"/admin/leads",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,10900)),meta:{staff:!0}},{name:"projects",path:"/admin/projects/:search?",props:!0,component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,11712)),meta:{staff:!0}},{name:"project-new",path:"/admin/projects/new",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,35171)),meta:{staff:!0}},{name:"track-projects-traffic",path:"/admin/stat",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,77887)),meta:{cdn1:!0,staff:!0}},{name:"project",path:"/admin/projects/:id/:target(profile|contract|contacts|balance|tariff|options|entity-form|distribution|charges|payments|service-billing-options)?",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,90780)),props:t=>({id:Number(t.params.id),target:t.params.target,search:t.params.search||""}),meta:{staff:!0}},{name:"admin-home",path:"/",redirect:{name:"projects"},meta:{staff:!0}},{name:"brandings",path:"/admin/brandings",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,37393)),meta:{staff:!0}},{name:"branding-new",path:"/admin/brandings/new",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,49383)),meta:{staff:!0}},{name:"branding",path:"/admin/brandings/:id",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,46978)),props:Gs,meta:{staff:!0}},{name:"font-new",path:"/admin/fonts/new",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,42519)),meta:{staff:!0}},{name:"font",path:"/admin/fonts/:id",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,48633)),props:Gs,meta:{staff:!0}},{name:"image-new",path:"/admin/images/new",component:()=>Promise.all([a.e(1611),a.e(8096),a.e(1717),a.e(9884)]).then(a.bind(a,97238)),meta:{staff:!0}},{name:"turboflare",path:"/turboflare",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(8096),a.e(3669),a.e(187)]).then(a.bind(a,63618)),redirect:{name:"turboflare-fsd-table"},children:[{name:"turboflare-fsd-table",path:"fsd",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(8096),a.e(3669),a.e(187)]).then(a.bind(a,16584))},{name:"turboflare-create-fsd",path:"new",component:qs,props:!0},{name:"turboflare-editing-fsd",path:"editing/:id",component:qs,props:!0},{name:"turboflare-edit-fsd",path:"edit/:id",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(8096),a.e(3669),a.e(187)]).then(a.bind(a,73493)),props:!0,children:[]},{name:"turboflare-edit-dns-zone",path:"zone/:zoneId",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(8096),a.e(3669),a.e(187)]).then(a.bind(a,85095)),props:!0},{name:"turboflare-add-dns-rr-set",path:":zoneId/rr-set",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(8096),a.e(3669),a.e(187)]).then(a.bind(a,57314)),props:!0},{name:"turboflare-edit-cdn-resource",path:"resource/:resourceId",component:()=>Promise.all([a.e(7125),a.e(1611),a.e(8096),a.e(3669),a.e(187)]).then(a.bind(a,14802)),props:!0}]},{path:"*",redirect:{name:"home"}}];var Ws=Ys;s.default.use(i.A);const Zs=new i.A({mode:"history"}),Ks=Zs.push,Js=Zs.replace,{isNavigationFailure:Xs,NavigationFailureType:{redirected:Qs}}=i.A,ti=t=>Xs(t,Qs)?t:Promise.reject(t);Zs.push=function(t,e,a){return e||a?Ks.call(this,t,e,a):Ks.call(this,t).
1catch(ti)},Zs.replace=function(t,e,a){return e||a?Js.call(this,t,e,a):Js.call(this,t).catch(ti)},n.A.on("authenticate",(function t(){Zs.beforeEach(((t,e,a)=>{window.scrollTo(0,0);let s=n.A.isCDN1(),i=t.meta.cdn1,r=n.A.isStaff(),o=t.meta.staff;const c=t?.meta?.access||function(t){const{matched:e}=t;if(e.length>1){const t=e.find((t=>t.meta.access));return t?t.meta.access:void 0}}(t);let l=n.A.isAuth(),d=!!n.A.accountName,u=n.A.personRole,m=t.meta.guest;if(l){const l=function(t,e){if(!t)return;const{accessKey:a,alternativeCdn1:s,alternativeCdn2:i}=t;return n.A.permissionsService.checkPermission(a)?void 0:e?s:i}(c,s);if(l){if("object"==typeof l)return a(l);a({name:l})}"onlypartialcachedelete"===u&&"/f-cdn/cache"!==t.path?a({name:"cdn-cache-clear"}):s?i?a():a({name:"cdn1-home"}):!r||d||o?r&&d&&o?(n.A.resetProject(),a()):m&&!e.meta.guest||!r&&o?a({name:"home"}):a():a({name:"admin-home"})}else"set-password"!==t.name||""!==e.query.email&&""!==e.params.code?m?a():a({name:"login",params:{nextUrl:e.path}}):a({name:"login"})})),Ws.forEach((t=>Zs.addRoute(t))),n.A.off("authenticate",t)})),n.A.on("logout",(function(t){let e=t.hasTokenExpired()?{nextUrl:Zs.currentRoute.path}:{};"login"===Zs.currentRoute.name||"register"===Zs.currentRoute.name||Zs.push({name:"login",params:e})}));var ei=Zs},28409:function(t,e){"use strict";e.A={LOGIN:"login",REGISTER:"register",SET_PASSWORD:"set-password",REPORT_UNSUBSCRIBE:"report-unsubscribe",RESTORE:"restore",ACTIVATE:"activate",NOMENCLATURE:"nomenclature",NOMENCLATURE_ITEM_EDIT:"nomenclature-item-edit",NOMENCLATURE_ITEM_ADD:"nomenclature-item-add",F_CDN:"f-cdn",HTTP:"f-cdn",HTTP_RESOURCES:"http-resources",CDN_RESOURCES:"cdn-resources",CDN_CACHE_CLEAR:"cdn-cache-clear",CDN_DVR_DELETE:"cdn-dvr-delete",CDN_RESOURCE_NEW_HTTP_CDN1:"cdn-resource-new-http-cdn1",CDN_RESOURCE_NEW_HTTP:"cdn-resource-new-http",RESOURCE_HTTP:"resource-http",RESOURCE_LIVE:"resource-live",RESOURCE_LIVE_RESTREAM_TABLE:"resource-live-restream-table",RESOURCE_LIVE_RESTREAM:"resource-live-restream",RESOURCE_LIVE_RESTREAM_NEW:"resource-live-restream-new",CERTS:"certs",CERT:"cert",CERT_NEW:"cert-new",STREAMING:"streaming",STREAMING_LIST:"streaming-list",LIVE_RESOURCES:"live-resources",STREAMING_RESOURCE:"streaming-resource",STREAMING_RECORDS:"streaming-records",RESTREAMING_LIST:"restreaming-list",STREAMING_RESTREAM:"streaming-restream",STREAMING_RESTREAM_NEW:"streaming-restream-new",STREAMING_RESOURCE_NEW:"streaming-resource-new",STREAMING_NEW_CDN1:"streaming-ne
1w-cdn-1",STREAMING_RTMP_CDN1:"streaming-rtmp-cdn-1",STREAMING_SRT_CDN1:"streaming-srt-cdn-1",STREAMING_HLS_CDN1:"streaming-hls-cdn-1",STREAMING_OTHER_CDN1:"streaming-other-cdn-1",MEDIA:"media",INITIALIZATION:"initialization",DIRECTORY:"directory",OVERVIEW:"overview",VIDEOFILE_ACTIONS:"videofile-actions",PLAYER_SETTINGS:"player-settings",VIDEOFILE_ANALYTICS:"videofile-analytics",PLAYER:"player",PLAYERS:"players",PLAYER_NEW:"player-new",PLAYER_EDIT:"player-edit",CLOUD:"cloud",CLOUD_VIRTUAL_MACHINE:"cloud-virtual-machine",CLOUD_VM_PROJECT_NEW:"cloud-vm-project-new",CLOUD_OBJECT_STORAGE:"cloud-object-storage",CLOUD_ITEMS:"cloud-items",SECURITY:"security",SECURITY_ITEMS:"security-items",STAT:"stat",STAT_BASE:"stat-base",STAT_STREAM:"stat-stream",STAT_PLAYER:"stat-player",STAT_VIRTUAL_MACHINES:"stat-virtual-machines",STAT_LOG:"stat-log",STAT_REPORTS:"stat-reports",PROFILE:"profile",PROFILE_PERSON:"profile-person",PROFILE_PERSON_ADMIN:"profile-person-admin",PROFILE_REPORTS:"profile-reports",PROFILE_BILLING_CDN1:"profile-billing-cdn1",PROFILE_BILLING_CDN2:"profile-billing-cdn2",PROFILE_BILLING:"profile-billing",PROFILE_SERVICE:"profile-service",USER_ACTION_HISTORY:"user-action-history",USER_ACTION_HISTORY_STAFF:"user-action-history-staff",PROFILE_BILLING_BALANCE_REPLENISH:"profile-billing-balance-replenish",DASHBOARD:"dashboard",HOME:"home",TALKING_HEAD:"talking-head",TALKING_HEAD_VIDEOS:"talking-head-videos",TALKING_HEAD_EDIT:"talking-head-edit",TALKING_HEAD_NEW:"talking-head-new",TALKING_HEAD_CREATE_CLASSIC:"talking-head-create-classic",TALKING_HEAD_CREATE_BY_IMAGE:"talking-head-create-by-image",TALKING_HEAD_CREATE_CARTOON:"talking-head-create-cartoon",TALKING_HEAD_RESULT:"talking-head-result",CDN1_HOME:"cdn1-home",OLDSTAT:"oldstat",BILLING_RATES:"billing-rates",EMPLOYEES:"employees",EMPLOYEE_NEW:"employee-new",EMPLOYEE:"employee",LEADS:"leads",PROJECTS:"projects",PROJECT_NEW:"project-new",TRACK_PROJECTS_TRAFFIC:"track-projects-traffic",PROJECT:"project",ADMIN_HOME:"admin-home",BRANDINGS:"brandings",BRANDING_NEW:"branding-new",BRANDING:"branding",FONT_NEW:"font-new",FONT:"font",IMAGE_NEW:"image-new",DNS:"dns"}},30700:function(t,e,a){"use strict";a.d(e,{FQ:function(){return l},KU:function(){return n},Pm:function(){return o},be:function(){return c},n4:function(){return p},tO:function(){return d}});var s=a(18738),i=a(28409),r=a(97029);function n(t){return t.params.cdn1?{name:i.A.CDN_RESOURCE_NEW_HTTP_CDN1}:{name:i.A.HTTP_RESOURCES}}function o(t){return t.params.cdn1?{name:i.A.STREAMING_NEW_CDN1}:{name:i.A.LIVE_RESOURCES}}function c(t,e,a=""){return{accessKey:t,alternativeCdn1:e,alternativeCdn2:a||e}}const l=async()=>"CDNvideo"===await m("companyName"),d=async()=>await m("cdnVersion"),u={companyName:()=>s.A?.company.name||void 0,cdnVersion:()=>{const t=r.A?.isCDN1();switch(t){case!0:return 1;case!1:return 2;default:return}}},m=t=>new Promise((e=>{const a=()=>{const s=u[t]();s?e(s):setTimeout(a,50)};a()})),p=async()=>await m("companyName")},33696:function(t,e){"use strict";e.A={billing:{nomenclature:{create:"billing_create_nomenclature",delete:"billing_delete_nomenclature",read:"billing_read_nomenclature",update:"billing_update_nomenclature"},staff:{read:"billing_read_staff-billing",update:"billing_update_staff-billing"},read:"billing_read_billing",update:"billing_update_billing"},pageBroadcast:{read:"broadcast-page_broadcast_read",update:"broadcast-page_broadcast_update"},cache:{cdnTokenApiV1TokenAccess:"cdn-token-api-v1-token-access",deleteFull:"cache_cache_delete-full",deleteSingle:"cache_cache_delete-single",preload:"cache_cache_preload",api:{delete:"cache_api_delete",deleteFull:"cache_api_delete_full",deleteSingle:"cache_api_delete_single",preload:"cache_api_preload"}},configuration:{read:"configuration_configuration_read",update:"configuration_configuration_update"},core:{account:{create:"core_create_account",read:"core_read_account"},branding:{read:"core_read_branding",update:"core_update_branding",create:"core_create_branding",delete:"core_delete_branding"},person:{read:"core_read_person",update:"core_update_person",create:"core_create_person",delete:"core_delete_person"},project:{create:"core_create_project",read:"core_read_project",update:"core_update_project"},staff:{create:"core_create_staff",read:"core_read_staff",update:"core_update_staff",delete:"core_delete_staff"},provider:{read:"core_read_provider",update:"core_update_provider"},basicActions:{read:"core_read_basic-actions"},fullActions:{read:"core_read_full-actions"},lead:{read:"core_read_lead"},identification:{delete:"core_delete_identification",read:"core_read_identification",create:"core_create_identification"}},dns:{configuration:{read:"dns_configuration_read",update:"dns_configuration_update"}},dvr:{delete:"dvr-net_dvr_delete",read:"dvr-net_dvr_read"},inventory:{companyTraverseFromAllCompanies:"inventory_company_traverse_from_all_companies",companyTraverseFromCompany:"inventory_company_traverse_from_company",projectTraverseFromAllCompanies:"inventory_project_traverse_from_all_companies",projectTraverseFromCompany:"inventory_project_traverse_from_company",readCompany:"inventory_read_company",readStaff:"inventory_read_staff",staffTraverseFromAllCompanies:"inventory_staff_traverse_from_all_companies",staffTraverseFromCompany:"inventory_staff_traverse_from_company"},media:{storage:{file:{cut:"media-storage_file_cut",delete:"media-storage_file_delete",read:"media-storage_file_read",transcode:"media-storage_file_transcode",update:"media-storage_file_update",upload:"media-storage_file_upload"},space:{read:"media-storage_space_read",update:"media-storage_space_update"}}},nodeList:{ip2user:{read:"node-list_ip2user_read"}},openstack:{project:{resourcesGet:"openstack_project-resources_get",create:"openstack_project_create",get:"openstack_project_get"},sso:{login:"openstack_sso_login"}},pcc:{player:{read:"pcc_player_read",update:"pcc_player_update"}},record:{configuration:{read:"record_configuration_read",update:"record_configuration_update"},file:{delete:"record_file_delete",read:"record_file_read"}},restream:{configuration:{read:"restream_configuration_read",update:"restream_configuration_update"}},s3:{user:{read:"s3_user_read",update:"s3_user_update"}},ssl:{certificate:{le:{create:"ssl_certificate-le_create"},create:"ssl_certificate_create",delete:"ssl_certificate_delete",read:"ssl_certificate_read",update:"ssl_certificate_update"}},stat:{read:{capacity:"stat_read_capacity",dns:"stat_read_dns",edgesStat:"stat_read_edges-stat",epg:"stat_read_epg",extStat:"stat_read_ext-stat",ioss:"stat_read_ioss",logs:"stat_read_logs",logsExport:"stat_read_logs-export",metrics:"stat_read_metrics",player:"stat_read_player",realtimeBandwidth:"stat_read_realtime-bandwidth",reportSubscriptions:"stat_read_report-subscriptions",reports:"stat_read_reports",stat:"stat_read_stat",streamstat:"stat_read_streamstat"},update:{logsExport:"stat_update_logs-export",reportSubscriptions:"stat_update_report-subscriptions"}},streams:{status:{read:"streams_status_read"}},thaas:{default:{access:"thaas_default_access"}}}},86146:function(t,e,a){"use strict";a.d(e,{D:function(){return s}});const s=(0,a(34445).nY)("locale",{state:()=>({locale:localStorage.getItem("locale")||"ru_RU"}),actions:{setLocale(t){this.locale=t,localStorage.setItem("locale",t)}}})},43018:function(t,e,a){"use strict";a.d(e,{L:function(){return r}});var s=a(34445),i=a(62893);const r=(0,s.nY)("newYearMode",(()=>{const t=(0,i.ref)(!1);return function(){const e=new Date,a=11===e.getMonth()&&e.getDate()>=20,s=0===e.getMonth()&&e.getDate()<=15;t.value=a||s}(),{isNewYearMode:t}}))},57421:function(t,e,a){"use strict";a.d(e,{f:function(){return r}}),a(98992),a(37550);const s=["qefuduru66","makigapi07","wifeyazi89","ducewuku44","beqoheqe84","syxgyqqg","zesumuru95","panuwove31","mkaonwgm","yknryxsp","pikofidi12","kacexafi16","qifuvixi28","dljpzpci","xozapaza01","qukucuja19","ribokuju57","yemuxawe98"];var i=a(97029);const r=()=>s.some((t=>t===i.A.accountName))},57781:function(t,e,a){"use strict";a.d(e,{Ar:function(){return d},B7:function(){return c},Vg:function(){return m},ew:function(){return l},tD:function(){return p}}),a(44114),a(98992),a(3949);var s=a(55373),i=a.n(s),r=a(84743),n=a.n(r);const o="YYYY-MM-DDTHH:mm:ss";function c(t,e){return n().tz(n()(t).format("YYYY-MM-DD HH:mm:ss"),e).utc().format(
1o)}function l(t,e){return n().utc(t).tz(e).format(o)}function d(t){let e=[];for(var a in t){var s=t[a];s&&(s instanceof Array?s.forEach((t=>{e.push(a+"="+t)})):e.push(a+"="+s))}return e.join("&")}function u(t,e){return i().stringify(e,{arrayFormat:t})}function m(t){return u("brackets",t)}function p(t){return u("repeat",t)}},30852:function(t,e,a){"use strict";a.d(e,{A:function(){return h}}),a(44114),a(98992),a(3949);var s=a(72505),i=a.n(s),r=a(97029),n=a(62893),o=a(57781);const c={register:{getUrl:()=>"/app/inventory/v1/person/",method:"put"},login:{getUrl:()=>"/app/oauth/v1/token/",method:"post",headers:t=>({"Content-Type":"application/x-www-form-urlencoded",...t.captchaToken?{"CDN-Captcha-Token":t.captchaToken}:{}}),withToken:!1},restore:{getUrl:()=>"/app/inventory/v1/password/forgot",method:"post"},logout:{getUrl:()=>"",method:"post"},activate:{getUrl:()=>"/app/inventory/v1/person/activate/"},sendRegisterEmail:{getUrl:()=>"/app/inventory/v1/person/send-verify-email/",method:"post",headers:t=>({...t.captchaToken?{"CDN-Captcha-Token":t.captchaToken}:{}})},sendSmsCode:{getUrl:()=>"/app/inventory/v1/person/send-sms-code/",method:"post",headers:t=>({"CDN-Captcha-Token":t.captchaToken})},phoneVerify:{getUrl:()=>"/app/inventory/v1/person/phone-verify/",method:"post"},updatePhoneCdn1:{getUrl:({action:t})=>`/app/inventory/v1/person/${t}`,method:"post",headers:t=>({"CDN-Captcha-Token":t.captchaToken})},getTotpSecret:{getUrl:({isCdn1:t,isCDN2Staff:e=!1})=>t?"/app/inventory/v1/person/twofa/totp/secret":`/app/inventory/v1/${e?"staff":"person"}/totp/secret`,method:"post"},activateTotp:{getUrl:({isCdn1:t,isCDN2Staff:e=!1})=>t?"/app/inventory/v1/person/twofa/totp":`/app/inventory/v1/${e?"staff":"person"}/totp`,method:"put"},deactivateTotp:{getUrl:({isCdn1:t=!1})=>t?"/app/inventory/v1/person/twofa/totp":"/app/inventory/v1/person/totp",method:"delete"},toggleTwofaMethod:{getUrl:({method:t,isOn:e,isCDN2Staff:a=!1})=>`/app/inventory/v1/${a?"staff":"person"}/twofa/${t}/${e?"disable":"enable"}`,method:"post"},getIdentificationRequests:{getUrl:t=>"/app/inventory/v1/identification-requests/?"+(0,o.Ar)(t)},createIdentificationRequests:{getUrl:()=>"/app/inventory/v1/identification-requests/",method:"put"}},l={getEmployees:{getUrl:()=>"/app/inventory/v1/staff/",paramsSerializer:o.tD},getEmployee:{getUrl:({id:t})=>`/app/inventory/v1/staff/${t}`},createEmployee:{getUrl:()=>"/app/inventory/v1/staff/",method:"put"},updateEmployee:{getUrl:t=>`/app/inventory/v1/staff/${t.id}`,method:"patch"},deleteEmployee:{getUrl:t=>`/app/inventory/v1/staff/${t.id}`,method:"delete"},getManagedProjects:{getUrl:()=>"/app/inventory/v1/projects/"},getEmployeeProjects:{getUrl:t=>`/app/inventory/v1/projects/${t.id}`},getNomenclature:{getUrl:t=>`/app/billing-nomen/v1/${t.providerId}/nomenclature/`},createNomenclature:{getUrl:t=>`/app/billing-nomen/v1/${t.providerId}/nomenclature/`,method:"post"},updateNomenclature:{getUrl:t=>`/app/billing-nomen/v1/${t.providerId}/nomenclature/`,method:"put"},getNomenclatureItems:{getUrl:t=>`/app/billing-nomen/v1/${t.providerId}/nomenclature/items/`},getNomenclatureItem:{getUrl:t=>`/app/billing-nomen/v1/${t.providerId}/nomenclature/items/${t.itemId}/`},insertNomenclatureItem:{getUrl:t=>`/app/billing-nomen/v1/${t.providerId}/nomenclature/items/`,method:"post"},updateNomenclatureItem:{getUrl:t=>`/app/billing-nomen/v1/${t.providerId}/nomenclature/items/${t.itemId}/`,method:"put"},deleteNomenclatureItem:{getUrl:t=>`/app/billing-nomen/v1/${t.providerId}/`,method:"delete"},getLeads:{getUrl:({type:t=""})=>"/app/inventory/v1/leads"+(t?"/?type="+t:"")},getLeadLink:{getUrl:({id:t})=>`/app/inventory/v1/leads/${t}`},createProject:{getUrl:()=>"/app/inventory/v1/project/",method:"put"},getProjects:{getUrl:()=>"/app/inventory/v1/project/"},getProject:{getUrl:t=>`/app/inventory/v1/project/${t.id}/`},updateProject:{getUrl:t=>`/app/inventory/v1/project/${t.id}/`,method:"patch"},getCustomSetting:{getUrl:t=>`/cdn/api/v1/${t.account}/custom-setting/`},getCustomization:{getUrl:()=>"/app/inventory/v1/customization/",withToken:!1},getBrandings:{getUrl:()=>"/app/inventory/v1/branding/"},getBranding:{getUrl:t=>`/app/inventory/v1/branding/${t.id}`},createBranding:{getUrl:()=>"/app/inventory/v1/branding/",method:"put",headers:{"Content-Type":"multipart/form-data"}},updateBranding:{getUrl:t=>`/app/inventory/v1/branding/${t.id}`,method:"patch",headers:{"Content-Type":"multipart/form-data"}},getFonts:{getUrl:()=>"/app/inventory/v1/font/"},getFont:{getUrl:t=>`/app/inventory/v1/font/${t.guid}`,withToken:!1},createFont:{getUrl:()=>"/app/inventory/v1/font/",method:"put"},updateFont:{getUrl:t=>`/app/inventory/v1/font/${t.guid}`,method:"patch"},getImages:{getUrl:()=>"/app/inventory/v1/image/"},createImage:{getUrl:()=>"/app/inventory/v1/image/",method:"put"},getAccounts:{getUrl:()=>"/app/inventory/v1/accounts",headers:{"Cdn-Cache-Control":"No-Cache"}},getProfile:{getUrl:({personId:t,isStaff:e=!1})=>`/app/inventory/v1/${e?"staff":"person"}/${t}/`},updateUser:{getUrl:t=>`/app/inventory/v1/person/${t.id}/`,method:"patch"},updateCdn1User:{getUrl:()=>"/app/inventory/v1/person/change/",method:"patch"},getUsers:{getUrl:()=>"/app/inventory/v1/person/"},removeUser:{getUrl:t=>`/app/inventory/v1/person/${t.id}/`,method:"delete"},inviteUser:{getUrl:()=>"/app/inventory/v1/invitations",method:"put",headers:t=>({...t.captchaToken?{"CDN-Captcha-Token":t.captchaToken}:{}})},inviteUserOld:{getUrl:()=>"/app/inventory/v1/person/",method:"put"},getInvitations:{getUrl:t=>"/app/inventory/v1/invitations/"+(t.project?"?project="+t.project:"")},removeInvite:{getUrl:()=>"/app/inventory/v1/invitations",method:"delete"},getUserIdentification:{getUrl:t=>`/app/inventory/v1/person/${t.id}/identification/`},updateUserIdentification:{getUrl:t=>`/app/inventory/v1/person/${t.id}/identification/`,method:"post"},revokeUserIdentification:{getUrl:t=>`/app/inventory/v1/person/${t.id}/identification/`,method:"delete"}};a(81454);var d="5298aec9a66ada5ae355a97f4314a4b3d0ff2683";const u={...l,...c,getCerts:{getUrl:({accountName:t})=>`/app/ssl/v1/account/${t}/certificate/`},getCert:{getUrl:t=>`/app/ssl/v1/account/${t.name}/certificate/${t.id}/?details`},createCert:{getUrl:t=>`/app/ssl/v1/account/${t.name}/certificate/`,method:"post"},updateCert:{getUrl:t=>`/app/ssl/v1/account/${t.name}/certificate/${t.id}`,method:"patch"},removeCert:{getUrl:t=>`/app/ssl/v1/account/${t.name}/certificate/${t.id}`,method:"delete"},createCertLetsEncrypt:{getUrl:t=>`/app/ssl/v1/account/${t.name}/letsencrypt/${t.id}`,method:"post"},getCertLetsEncryptStatus:{getUrl:t=>`/app/ssl/v1/account/${t.name}/letsencrypt/${t.id}`},createCertLetsEncryptDns:{getUrl:t=>`/app/ssl/v1/account/${t.name}/letsencrypt/`,method:"post"},getResources:{getUrl:({accountName:t,type:e,active:a})=>`/cdn/api/v1/${t}/resource/${e}/?active=${a||"true"}`},getResource:{getUrl:({accountName:t,type:e,id:a,active:s})=>`/cdn/api/v1/${t}/resource/${e}/${a}?active=${s||"true"}`},createResource:{getUrl:({accountName:t,type:e})=>`/cdn/api/v1/${t}/resource/${e}/`,method:"post"},updateResource:{getUrl:({accountName:t,type:e,id:a})=>`/cdn/api/v1/${t}/resource/${e}/${a}`,method:"put"},patchResource:{getUrl:({accountName:t,type:e,id:a})=>`/cdn/api/v1/${t}/resource/${e}/${a}`,method:"patch"},removeResource:{getUrl:t=>
1`/cdn/api/v1/${t.name}/resource/${t.type}/${t.id}`,method:"delete"},getResourceStatus:{getUrl:({accountName:t,type:e,id:a})=>`/cdn/api/v1/${t}/status/${e}/${a}`},getResourcesStatus:{getUrl:({accountName:t,type:e,resources:a})=>`/cdn/api/v1/${t}/status/${e}/?${a.map((t=>`resource_id=${t.id}`)).join("&")}`},getDnsRelatedToResource:{getUrl:({accountName:t,resourceId:e})=>`/app/dns/v1/${t}/cdn?cdn_resource_id=${e}`},getZones:{getUrl:({accountName:t,name:e,briefly:a})=>`/app/dns/v1/${t}/zones${void 0!==e||void 0!==a?"?"+(void 0!==e?"name="+e+"&":"")+(void 0!==a?"briefly="+a:""):""}`},getZone:{getUrl:({accountName:t,zoneId:e,briefly:a})=>`/app/dns/v1/${t}/zones/${e}?briefly=${a}`},getDnsZone:{getUrl:({accountName:t,dnsZoneId:e})=>`/app/dns/v1/${t}/zones/${e}`},deleteZone:{getUrl:({accountName:t,zoneId:e})=>`/app/dns/v1/${t}/zones/${e}`,method:"delete"},patchZone:{getUrl:({accountName:t,zoneId:e})=>`/app/dns/v1/${t}/zones/${e}`,method:"patch"},addZone:{getUrl:({accountName:t})=>`/app/dns/v1/${t}/zones`,method:"post"},addRrSet:{getUrl:({accountName:t,zoneId:e})=>`/app/dns/v1/${t}/zones/${e}/rr_sets`,method:"post"},getRrSet:{getUrl:({accountName:t,zoneId:e,rrSetId:a})=>`/app/dns/v1/${t}/zones/${e}/rr_sets/${a}`},deleteRrSet:{getUrl:({accountName:t,zoneId:e,rrSetId:a})=>`/app/dns/v1/${t}/zones/${e}/rr_sets/${a}`,method:"delete"},editRrSet:{getUrl:({accountName:t,zoneId:e,rrSetId:a})=>`/app/dns/v1/${t}/zones/${e}/rr_sets/${a}`,method:"patch"},getDadataBank:{getUrl:()=>"https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/bank",method:"post",headers:{Authorization:"Token "+d}},getDadataParty:{getUrl:()=>"https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/party",method:"post",headers:{Authorization:"Token "+d}},getDadataAddressByIp:{getUrl:()=>"https://suggestions.dadata.ru/suggestions/api/4_1/rs/detectAddressByIp",method:"get",headers:{Authorization:"Token "+d}},sendYadroAmoCrmData:{getUrl:()=>"https://api.yadrocrm.ru/integration/site?key=a352aec4",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},withToken:!1},getCncConfiguration:{getUrl:({accountName:t,id:e})=>`/cdn/api/v1/${t}/cncconfiguration/${e}`},getCncConfigurations:{getUrl:({accountName:t,resources:e})=>`/cdn/api/v1/${t}/cncconfiguration/?${e.map((t=>`resource_id=${t.id}`)).join("&")}`},setCncConfiguration:{getUrl:t=>
1`/cdn/api/v1/${t.name}/cncconfiguration/${t.id}`,method:"post"},cacheControl:{getUrl:({accountName:t})=>`/app/cache/v3/${t}/tasks`,method:"post"},validateCard:{getUrl:t=>`/app/billing2/v2/${t.serviceId}/cards/`,method:"put"},getCards:{getUrl:t=>`/app/billing2/v2/${t.serviceId}/cards/`},getCard:{getUrl:t=>`/app/billing2/v2/${t.serviceId}/cards/${t.cardId}/`},updateCard:{getUrl:t=>`/app/billing2/v2/${t.serviceId}/cards/${t.cardId}/`,method:"patch"},removeCard:{getUrl:t=>`/app/billing2/v2/${t.serviceId}/cards/${t.cardId}/`,method:"delete"},getService:{getUrl:t=>`/app/billing2/v2/${t.account}/service/`},getBalance:{getUrl:t=>`/app/billing2/v2/${t.id}/balance/`},updateBalance:{getUrl:t=>`/app/billing2/v2/${t.id}/balance/`,method:"post"},patchBalance:{getUrl:t=>`/app/billing2/v2/${t.id}/balance/`,method:"patch"},getBillingInfo:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/billing/`},updateBillingInfo:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/billing/`,method:"post"},getAllTariffs:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/tariffs/`},deleteTariff:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/tariffs/`,method:"delete"},getAllOptions:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/options/`},deleteOption:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/options/`,method:"delete"},makeCharge:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/operations/`,method:"post"},cancelCharge:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/operations/`,method:"patch"},getTraffic:{getUrl:t=>`/app/billing2/v2/${t.id}/traffic/`},getActiveTariff:{getUrl:t=>`/app/billing2/v2/${t.id}/tariff/?active`},updateActiveTariff:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/tariff/`,method:"post"},getStorefront:{getUrl:t=>`/app/billing2/v2/${t.id}/tariff/`},updateAutoprolongation:{getUrl:t=>`/app/billing2/v2/${t.id}/tariff/`,method:"patch"},selectTariff:{getUrl:t=>`/app/billing2/v2/${t.id}/tariff/`,method:"post"},getTestTariff:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/test-tariff/`},addTestTariff:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/test-tariff/`,method:"put"},getTariffTemplates:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/tariff-templates/`},createTariffTemplate:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/tariff-templates/`,method:"post"},setAvailableTariffTemplates:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/service-tariff-templates/`,method:"post"},getOperations:{getUrl:t=>`/app/billing2/v2/${t.id}/operations/`},getBillingServiceStatus:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/service/`},updateBillingServiceStatus:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/service/`,method:"patch"},getBillingOptions:{getUrl:t=>`/app/billing2/v2/${t.id}/options/`},getBillingOptionsActive:{getUrl:t=>`/app/billing2/v2/${t.id}/options/?active=true`},orderBillingOptions:{getUrl:t=>`/app/billing2/v2/${t.id}/options/`,method:"post"},updateBillingOptions:{getUrl:t=>`/app/billing2/v2/${t.id}/options/`,method:"patch"},getBillingOptionTemplates:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/option-templates/`},createBillingOptionTemplate:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/option-templates/`,method:"post"},setAvailableBillingOptions:{getUrl:t=>`/app/billing2/v2/${t.id}/admin/service-option-templates/`,method:"post"},getUserActionLog:{getUrl:({accountName:t,locale:e="ru",isStaff:a=!1,type:s="",limit:i=200})=>`/app/actions/v1/${a?"full":"basic"}?account=${t}&limit=${i}&language=${e}&offset=0${s?"&type="+s:""}`,headers:{"Accept-Language":"enenene"}},getStatistics:{getUrl:t=>"/app/statistic/v3/?"+(0,o.Ar)(t)},getStatisticsAccounts:{getUrl:t=>"/app/statistic/v3/accounts?"+(0,o.Ar)(t)},getStatisticsCountries:{getUrl:t=>"/app/statistic/v3/countries?"+(0,o.Ar)(t)},getStatisticsReferrers:{getUrl:t=>"/app/statistic/v3/referrers?"+(0,o.Ar)(t)},getStatisticsHosts:{getUrl:t=>"/app/statistic/v3/hosts?"+(0,o.Ar)(t)},getStatisticsRegions:{getUrl:t=>"/app/statistic/v3/regions?"+(0,o.Ar)(t)},getStatisticsCodes:{getUrl:t=>"/app/statistic/v3/codes?"+(0,o.Ar)(t)},getStatisticsTimes:{getUrl:t=>"/app/statistic/v3/times?"+(0,o.Ar)(t)},getStatisticsTimesCodes:{getUrl:t=>"/app/statistic/v3/times/codes?"+(0,o.Ar)(t)},getStatisticsResources:{getUrl:t=>"/app/statistic/v3/resources?"+(0,o.Ar)(t)},getStatisticsBrowsers:{getUrl:t=>"/app/statistic/v3/browsers?"+(0,o.Ar)(t)},getStatisticsPlatforms:{getUrl:t=>"/app/statistic/v3/platforms?"+(0,o.Ar)(t)},getStatisticsCustoms:{getUrl:t=>"/app/statistic/v3/customs?"+(0,o.Ar)(t)},getPlayerStatUniqUsers:{getUrl:t=>`/app/playerstat/v1/accounts/${t.account}/report/uniques`},getPlayerStatAverage:{getUrl:t=>`/app/playerstat/v1/accounts/${t.account}/report/times`},getPlayerStatCounts:{getUrl:t=>`/app/playerstat/v1/accounts/${t.account}/report/counts`},getIossStatisticsByAction:{getUrl:t=>`/app/ioss-statistic/v1/times/action?account=${t.account}&resource=${t.resource}&start=${t.start}&end=${t.end}&granularity=${t.granularity}`}
1,getIossResources:{getUrl:t=>`/app/ioss-statistic/v1/resources?account=${t.account}&start=${t.start}&end=${t.end}`},getStreamstat:{getUrl:t=>"/app/streamstat/v2/?"+(0,o.Ar)(t)},getStreamstatStreams:{getUrl:t=>"/app/streamstat/v2/streams?"+(0,o.Ar)(t)},getStreamstatTimesStreams:{getUrl:t=>"/app/streamstat/v2/times/streams?"+(0,o.Ar)(t)},getStreamstatTimes:{getUrl:t=>"/app/streamstat/v2/times?"+(0,o.Ar)(t)},getStreamstatBrowsers:{getUrl:t=>"/app/streamstat/v2/browsers?"+(0,o.Ar)(t)},getStreamstatPlatforms:{getUrl:t=>"/app/streamstat/v2/platforms?"+(0,o.Ar)(t)},getStreamstatCountries:{getUrl:t=>"/app/streamstat/v2/countries?"+(0,o.Ar)(t)},getStreamstatRegions:{getUrl:t=>"/app/streamstat/v2/regions?"+(0,o.Ar)(t)},getStreamstatStreamTypes:{getUrl:t=>"/app/streamstat/v2/stream-types?"+(0,o.Ar)(t)},getStreamstatTimesStreamTypes:{getUrl:t=>"/app/streamstat/v2/times/stream-types?"+(0,o.Ar)(t)},getCompanies:{getUrl:()=>"/app/inventory/v1/companies/"},getCompany:{getUrl:()=>"/app/inventory/v1/company/"},updateCompany:{getUrl:()=>"/app/inventory/v1/company/",method:"patch"},sendEmail:{getUrl:t=>`/app/mailsender/v1/${t.name}/email/send/`,method:"post"},orderService:{getUrl:t=>`/app/mailsender/v1/${t.account}/order?is_sent_to_crm=${t.isSentToCrm}`,method:"post"},cloudUnblock:{getUrl:t=>`/app/mailsender/v1/${t.account}/cloud/unblock?is_sent_to_crm=${t.isSentToCrm}`,method:"post"},getPartnersStatisticsTraffic:{getUrl:t=>"/app/stat-ext-1/v1/p1/traffic?"+(0,o.Ar)(t)},getPartnersStatisticsBandwidth:{getUrl:t=>"/app/stat-ext-1/v1/p1/bandwidth?"+(0,o.Ar)(t)},isLogExists:{getUrl:t=>`/app/logs/v1/accounts/${t.name}/exists?startdate=${t.startdate}&enddate=${t.enddate}&service=${t.service}`},getLoguploadSettings:{getUrl:t=>`/app/cdn-logs-export/v1/${t.account}/`},sendLoguploadSettings:{getUrl:t=>`/app/cdn-logs-export/v1/${t.account}/`,method:"put"},switchLoguploadSettings:{getUrl:t=>`/app/cdn-logs-export/v1/${t.account}/`,method:"patch"},createRestreamResource:{getUrl:t=>`/app/restream/v2/${t.name}/resources`,method:"post"},getRestreamResources:{getUrl:t=>`/app/restream/v2/${t.name}/resources`},getRestreamResource:{getUrl:t=>`/app/restream/v2/${t.name}/resources/${t.id}`},updateRestreamResource:{getUrl:t=>`/app/restream/v2/${t.name}/resources/${t.id}`,method:"put"},getRestreamStatus:{getUrl:t=>`/app/restream/v2/${t.name}/status`},getRestreamResourceStatusHistory:{getUrl:t=>`/app/restream/v2/${t.name}/history?resource_id=${t.id}&start=${t.start}&end=${t.end}`},enableStreamRecord:{getUrl:({accountName:t})=>`/app/record/v1/${t}/tasks`,method:"post"},getStreamRecordTasks:{getUrl:({accountName:t})=>`/app/record/v1/${t}/tasks`},deleteStreamRecordTask:{getUrl:({accountName:t,taskId:e})=>`/app/record/v1/${t}/tasks/${e}`,method:"delete"},patchStreamRecordTask:{getUrl:({accountName:t,taskId:e})=>` /app/record/v1/${t}/tasks/${e}`,method:"patch"},getStreamRecordFiles:{getUrl:({accountName:t})=>`/app/record/v1/${t}/files`},getStreamRecordStatus:{getUrl:({accountName:t,taskId:e})=>`/app/record/v1/${t}/tasks/${e}/status`},deleteStreamRecordFile:{getUrl:({accountName:t,filePath:e})=>`/app/record/v1/${t}/files/${e}`,method:"delete"},getTotalStreamRecordsTime:{getUrl:({accountName:t})=>`/app/record/v1/${t}/files/stats`},getStreamDvrRanges:{getUrl:t=>`/app/dvr-net/v1/${t.account}/streams/${t.stream}`},deleteStreamDvrRanges:{getUrl:t=>`/app/dvr-net/v1/${t.account}/streams/${t.stream}`,method:"delete"},changeCdn1PersonPassword:{getUrl:()=>"/app/inventory/v1/person/password_change/",method:"post"},sendPasswordCode:{getUrl:()=>"/app/oauth/v1/password-code/",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},withToken:!1},checkIfLinkIsInvalid:{getUrl:({code:t,email:e})=>`/app/oauth/v1/password/?code=${t}&email=${e}`,headers:{"Content-Type":"application/x-www-form-urlencoded"}},setPersonPassword:{getUrl:()=>"/app/oauth/v1/password/",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},withToken:!1},getCountriesList:{getUrl:()=>"/app/geolocation/v1/countries"},getRegionsList:{getUrl:()=>"/app/geolocation/v1/regions"},getStoragePath:{getUrl:t=>`/app/storage/v1/${t.account}/files${t.path}`},createStoragePath:{getUrl:t=>`/app/storage/v1/${t.account}/files${t.path}`,method:"post"},updateStoragePath:{getUrl:t=>`/app/storage/v1/${t.account}/files${t.path}`,method:"patch"},deleteStoragePath:{getUrl:t=>`/app/storage/v1/${t.account}/files${t.path}`,method:"delete"},uploadLinkedFile:{getUrl:({accountName:t})=>`/app/storage/v1/${t}/upload/url`,method:"post"},getUploadingFileTaskStatus:{getUrl:({accountName:t,taskId:e})=>`/app/storage/v1/${t}/upload/url/${e}`},getStorageSpace:{getUrl:({accountName:t})=>`/app/storage/v1/${t}/space`},getTranscodeStats:{getUrl:({accountName:t,start:e,end:a})=>`/app/storage/v1/${t}/transcode/stats?start=${e}&end=${a}`},addStorageVideos:{getUrl:t=>`/app/storage/v1/${t.account}/videos/${t.fileId}`,method:"post"},deleteStorageVideo:{getUrl:t=>`/app/storage/v1/${t.account}/videos/${t.fileId}/${t.videoId}`,method:"delete"},getTranscodePresets:{getUrl:t=>`/app/storage/v1/${t.account}/transcode/presets`},createTranscodeTask:{getUrl:t=>`/app/storage/v1/${t.account}/transcode`,method:"post"},checkTranscodeTaskStatus:{getUrl:t=>`/app/storage/v1/${t.account}/transcode/${t.taskId}`},changeStorageSpace:{getUrl:t=>`/app/storage/v1/${t.account}/space`,method:"patch"},updateStorageEntitySettings:{getUrl:({accountName:t,folderName:e})=>`/app/storage/v1/${t}/files/${e}`,method:"patch"},getTHConfigurationsClassic:{getUrl:({accountName:t})=>`/app/th-api/v1/accounts/${t}/configurations`},getTHConfigurationsByPicture:{getUrl:({accountName:t})=>`/app/th-api/v1/accounts/${t}/videos-by-picture/configurations?fields=voices,quota,watermark,models`},generateTHClassic:{getUrl:({accountName:t})=>`/app/th-api/v1/accounts/${t}/generate`,method:"post"},generateTHByPicture:{getUrl:({accountName:t})=>`/app/th-api/v1/accounts/${t}/videos-by-picture/generate`,method:"post"},getTHTaskStatus:{getUrl:t=>
1`/app/th-api/v1/accounts/${t.name}/status/${t.id}`},getTHVideoUrl:{getUrl:t=>`/app/th-api/v1/accounts/${t.name}/video/${t.id}`},scaleTHText:{getUrl:({accountName:t})=>`/app/th-api/v1/accounts/${t}/draft`,method:"post",responseType:"arraybuffer",responseEncoding:"binary"},deleteTHVideo:{getUrl:({accountName:t,videoId:e})=>`/app/th-api/v1/accounts/${t}/video/${e}`,method:"delete"},updateTHVideoName:{getUrl:({accountName:t,videoId:e})=>`/app/th-api/v1/accounts/${t}/video/${e}`,method:"patch"},getTHVideoListClassic:{getUrl:({accountName:t})=>`/app/th-api/v1/accounts/${t}/tasks?fields=background,shot,script,voice_name,actor_name,model_version,video_name,emotion,speech_speed,orientation,crop,shift,scale,circle,type`},getTHVideoListByPicture:{getUrl:({accountName:t})=>`/app/th-api/v1/accounts/${t}/videos-by-picture/tasks?fields=script,model_name,model_version,video_name,parameters`},getTHVideoSpecificClassic:{getUrl:({accountName:t,id:e})=>`/app/th-api/v1/accounts/${t}/tasks?id=${e}&fields=background,shot,script,voice_name,actor_name,model_version,video_name,emotion,speech_speed,orientation,crop,shift,scale,circle,type`},getTHVideoSpecificByPicture:{getUrl:({accountName:t,id:e})=>`/app/th-api/v1/accounts/${t}/videos-by-picture/tasks?id=${e}&fields=script,model_name,model_version,video_name,parameters`},getPlayersList:{getUrl:t=>`/app/player/config/v1/${t.utoken}/client/`},createPlayer:{getUrl:t=>`/app/player/config/v1/${t.utoken}/configuration/`,method:"post"},updateTestPlayer:{getUrl:t=>`/app/player/config/v1/${t.utoken}/configuration/`,method:"put"},updateProdPlayer:{getUrl:t=>`/app/player/config/v1/${t.utoken}/configuration/`,method:"patch"},deletePlayer:{getUrl:t=>`/app/player/config/v1/${t.utoken}/configuration/`,method:"delete"},createOrUpdateTestChat:{getUrl:t=>`/app/player/config/v1/${t.utoken}/chat/configuration/`,method:"post"},updateProdChat:{getUrl:t=>`/app/player/config/v1/${t.utoken}/chat/configuration/`,method:"patch"},getPlayerConfig:{getUrl:t=>`/app/player/config/v1/${t.utoken}/configuration/`},getChatConfig:{getUrl:t=>`/app/player/config/v1/${t.utoken}/chat/configuration/`},getVMProjects:{getUrl:t=>`/app/openstack/v1/${t.account}/projects/`},getVMProjectSso:{getUrl:t=>`/app/openstack/v1/${t.account}/projects/${t.projectId}/sso`,method:"post"},createVMProject:{getUrl:t=>`/app/openstack/v1/${t.account}/projects/`,method:"post"},getVMProjectResources:{getUrl:t=>`/app/openstack/v1/${t.account}/projects/${t.projectId}/resources`},getStatisticByVm:{getUrl:({accountName:t,target:e="",start:a,end:s,granularity:i,fields:r,projects:n="",groupBy:o=""})=>`/app/vm-stat/v1/times/${e}?start=${a}Z&end=${s}Z&granularity=${i}&account=${t}&fields=${r}${n}${o?"&group_by="+o:""}`},deleteSubscription:{getUrl:t=>`/app/reports/v1/subscriptions/${t.subscription}/`,method:"delete"},getSubscriptions:{getUrl:t=>"/app/reports/v1/subscriptions/"},createSubscription:{getUrl:t=>"/app/reports/v1/subscriptions/",method:"post"},updateSubscription:{getUrl:t=>`/app/reports/v1/subscriptions/${t.subscription}/`,method:"patch"},unsubscribeReport:{getUrl:()=>"/app/reports/v1/unsubscribe/",method:"post"},getSavedReports:{getUrl:t=>`/app/reports/v1/${t.account}/saved_reports`},getBroadcastPage:{getUrl:({accountName:t})=>`/app/broadcast-page/v1/${t}/broadcasts`},createBroadcastPage:{getUrl:({accountName:t})=>`/app/broadcast-page/v1/${t}/broadcasts`,method:"post"},setBroadcastPagePassword:{getUrl:({accountName:t,broadcastId:e})=>`/app/broadcast-page/v1/${t}/broadcasts/${e}`,method:"patch"},deleteBroadcastPage:{getUrl:({accountName:t,broadcastId:e})=>` /app/broadcast-page/v1/${t}/broadcasts/${e}`,method:"delete"},getEndpoints:{getUrl:({accountName:t})=>`/app/s3/v1/${t}/endpoints`},createS3Storage:{getUrl:t=>`/app/s3/v1/${t.account}/endpoints/${t.shortName}/users`,method:"post"},getS3Storages:{getUrl:({accountName:t,shortName:e,isMedia:a})=>`/app/s3/v1/${t}/endpoints/${e}/users${a?"?integration=media":"?integration=cdn"}`},getS3StorageData:{getUrl:({accountName:t,shortName:e,id:a,isMedia:s})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}${s?"?integration=media":"?integration=cdn"}`},getS3StoragePeakSize:{getUrl:({accountName:t,shortName:e,id:a,date:s})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/peak-size?month=${s}`},getS3StorageCDNdomain:{getUrl:({accountName:t})=>`/cdn/api/v1/${t}/resource/s3-storage`},getS3BucketData:{getUrl:t=>`/app/s3/v1/${t.accountName}/endpoints/${t.shortName}/users/${t.id}/buckets`}
1,getS3TranscodePresets:{getUrl:({accountName:t})=>`/app/s3/v1/${t}/transcode/presets`},getFilesAttachments:{getUrl:({accountName:t,shortName:e,id:a,bucketName:s})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/files-attachments/search`,method:"post"},createS3TranscodeTask:{getUrl:({accountName:t,shortName:e,storageId:a,bucketName:s})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/transcode/tasks`,method:"post"},createS3URLTask:{getUrl:({accountName:t,shortName:e,storageId:a,bucketName:s})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/url-upload/tasks`,method:"post"},getS3TranscodeStatistics:{getUrl:({accountName:t,shortName:e,id:a,bucketName:s,start:i,end:r})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/transcode/stats?${i&&`start=${i}&`}${r&&`end=${r}`}`},deleteTranscodeQuality:{getUrl:({accountName:t,shortName:e,storageId:a,bucketName:s,qualityId:i})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/files-attachments/quality/${i}`,method:"delete"},getS3TranscodeTasks:{getUrl:({accountName:t,shortName:e,storageId:a,bucketName:s,endpoint:i,source:r})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/transcode/tasks?source_endpoint=${i}&source_bucket=${s}&source_object_key=${r}`},deleteS3Storage:{getUrl:t=>`/app/s3/v1/${t.account}/endpoints/${t.shortName}/users/${t.id}`,method:"delete"},createS3StorageKeys:{getUrl:t=>`/app/s3/v1/${t.account}/endpoints/${t.shortName}/users/${t.id}/keys`,method:"post"},deleteS3StorageKey:{getUrl:t=>`/app/s3/v1/${t.account}/endpoints/${t.shortName}/users/${t.id}/keys/${t.accessKey}`,method:"delete"},editS3Storage:{getUrl:t=>`/app/s3/v1/${t.account}/endpoints/${t.shortName}/users/${t.id}`,method:"patch"},editBucket:{getUrl:({accountName:t,endpointShortName:e,storageId:a,bucketName:s})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}`,method:"patch"},createFileNote:{getUrl:({accountName:t,shortName:e,storageId:a,bucketName:s})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/files-attachments/notes`,method:"post"},editFileNote:{getUrl:({accountName:t,shortName:e,storageId:a,bucketName:s,noteId:i})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/files-attachments/notes/${i}`,method:"patch"},searchFileNotes:{getUrl:({accountName:t,shortName:e,storageId:a,bucketName:s})=>`/app/s3/v1/${t}/endpoints/${e}/users/${a}/buckets/${s}/files-attachments/notes/scan`,method:"post"},createFSD:{getUrl:({accountName:t})=>`/app/turboflare/v1/${t}/sites`,method:"post"},getFSDlist:{getUrl:({accountName:t})=>`/app/turboflare/v1/${t}/sites`},getFSD:{getUrl:({accountName:t,id:e})=>`/app/turboflare/v1/${t}/sites/${e}`},switchTraffic:{getUrl:({accountName:t,fsdId:e})=>`/app/turboflare/v1/${t}/sites/${e}`,method:"patch"},deleteFSD:{getUrl:({accountName:t,fsdId:e})=>`/app/turboflare/v1/${t}/sites/${e}`,method:"delete"},getIncidents:{getUrl:()=>"/app/status-page/v1/incidents"},getIncident:{getUrl:({incidentId:t})=>`/app/status-page/v1/incidents/${t}`},createIncident:{getUrl:()=>"/app/status-page/v1/incidents",method:"post"},updateIncident:{getUrl:({incidentId:t})=>`/app/status-page/v1/incidents/${t}`,method:"patch"},createVersion:{getUrl:()=>"/app/status-page/v1/versions",method:"post"},updateVersion:{getUrl:({versionId:t})=>`/app/status-page/v1/versions/${t}`,method:"patch"},deleteVersion:{getUrl:({versionId:t})=>`/app/status-page/v1/versions/${t}`,method:"delete"},deleteIncident:{getUrl:({incidentId:t})=>`/app/status-page/v1/incidents/${t}`,method:"delete"},getComponents:{getUrl:()=>"/app/status-page/v1/components"},getComponentGroups:{getUrl:()=>"/app/status-page/v1/component-groups"},updateComponentStatus:{getUrl:({componentId:t})=>`/app/status-page/v1/components/${t}`,method:"patch"},getSpSubscriptions:{getUrl:()=>"/app/status-page/v1/subscriptions"},deleteSpSubscriptionById:{getUrl:({subscriptionId:t})=>`/app/status-page/v1/subscriptions/${t}`,method:"delete"},getMaintenance:{getUrl:({maintenanceId:t})=>`/app/status-page/v1/maintenances/${t}`},getMaintenances:{getUrl:()=>"/app/status-page/v1/maintenances"},createMaintenance:{getUrl:()=>"/app/status-page/v1/maintenances",method:"post"},updateMaintenance:{getUrl:({maintenanceId:t})=>`/app/status-page/v1/maintenances/${t}`,method:"patch"},deleteMaintenance:{getUrl:({maintenanceId:t})=>`/app/status-page/v1/maintenances/${t}`,method:"delete"},inviteSpSubscription:{getUrl:()=>"/app/status-page/v1/subscriptions/invite",method:"post"},ackSpSubscription:{getUrl:()=>"/app/status-page/v1/subscriptions/ack",method:"post"},deleteSpSubscription:{getUrl:({code:t})=>`/app/status-page/v1/subscriptions?encoded_email=${t}`,method:"delete"}};let m={success:[],error:[]},p={addHandler(t,e){return m[e].push(t),this},onSuccess(t){let e=!1;return m.success.forEach((a=>{1===a(t)&&(e=!0)})),e?new Promise((()=>{})):t},onError(t){if(i().isCancel(t))return new Promise((()=>{}));{let e=!1,a=!1;if(m.error.forEach((s=>{2===s(t)?e=!0:1===s(t)&&(a=!0)})),a)return{status:500};if(e)return new Promise((()=>{}));throw t}}};Object.keys(u).forEach((function(t){let e=u[t];p[t]=function(t={},a={},s={}
1){let c=s.cancelToken||void 0,l=s.onUploadProgress||void 0,d=s.withCredentials||!1,u={url:e.getUrl(t),method:e.method||"get",headers:"function"==typeof e.headers?e.headers(t):e.headers||{},onUploadProgress:l,paramsSerializer:e.paramsSerializer||o.Vg,responseType:e.responseType,withCredentials:d,withToken:void 0===e.withToken||!!e.withToken};if(c&&(u.cancelToken=c),"get"===u.method)u.params=a;else if(a&&"application/x-www-form-urlencoded"===u.headers["Content-Type"]){let t=new URLSearchParams;Object.keys(a).forEach((function(e){t.append(e,a[e])})),u.data=t}else u.data=a;return function(t){if(t.headers=t.headers||{},Object.assign(t.headers,{"Accept-Language":n.default.localStorage.get("locale")||r.A.language}),r.A.token&&t.withToken){if(r.A.hasTokenExpired())return r.A.logout(),new Promise((()=>{}));Object.assign(t.headers,{"CDN-AUTH-TOKEN":r.A.token,"X-CDN-Sender-App":"dashboard"})}return i().request(t).then(p.onSuccess).catch(p.onError)}(u)}}));var h=p},18738:function(t,e,a){"use strict";a(44114),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(98992),a(3949);var s=a(30852),i=a(14550),r=a(62893);let n={mainInterface:{main:"#E3FC72",button:"#E3FC72",buttonFontColor:"",font:"#051114",fontInactive:"#0511147A",background:"#F2F4F4",mixedMainBackground:"",grey:"#D2D2D2",red:"#F10A26",white:"#FFFFFF",beige:"#FFF7DF",dark:"#051114",orange:"#EECB16",purple:"#8A38F5",green:"#12DC0E",yellow:"#FFFF00",link:"#1770C1",iconBackground:"linear-gradient(190deg, #9F40CC 5.37%, #F6C444 97.53%)",pagination:{hover:""}},sidenav:{background:"#051114",ava:{background:"",font:""},menu:{active:"#E3FC72",iconFillActive:"#FFFFFF",iconFillInactive:"#FFFFFFB2",textColorActive:"#FFFFFF",textColorInactive:"#FFFFFFB2"}},theme:"light",contacts:{support:{emails:[""],phone:""},feedback:{email:""}},company:{name:"",director:{name:""},id:0},loginForm:{titleText:{ru_RU:"",en_US:""},mainText:{ru_RU:"",en_US:""}},registerForm:{titleText:{ru_RU:"",en_US:""},mainText:{ru_RU:"",en_US:""},displayType:{ru_RU:"standardForm",en_US:"standardForm"},displayTypeParams:{redirectButtonText:{ru_RU:"",en_US:""},redirectButtonLink:{ru_RU:"",en_US:""},userAgreementText:{ru_RU:"",en_US:""}}},documentationUrl:{ru_RU:"https://doc.cdnvideo.ru/",en_US:"https://doc.cdnvideo.com/en/"},documentationUrlOverrides:{ru_RU:{},en_US:{}},cdn1DocumentationUrl:{ru_RU:"",en_US:""},languages:[],logo:{guid:void 0},logoShort:{guid:void 0},font:{guid:void 0,family:"Geologica"},favicon:{guid:void 0},backgroundLoginGlobal:{guid:void 0,url:""},backgroundLoginLeft:{guid:void 0,url:""},ymCounterId:49522957,init(){let t=this,e=s.A.getCustomization();return(0,i.A)(e,15e3).then((({data:e})=>{let a=e.colors;if(Object.assign(t.logo,a.logo),Object.assign(t.logoShort,a.logoShort),Object.assign(t.mainInterface,a.mainInterface),Object.assign(t.sidenav,a.sidenav),a.scheme_theme&&(t.theme=a.scheme_theme),Object.assign(t.contacts,e.contacts),Object.assign(t.company,e.company),r.default.localStorage.set("companyName",t.company.name),e.languages){let a=new Set;
1t.languages=[],e.languages.forEach((e=>{a.has(e.locale)?e.isDefault&&t.languages.forEach((t=>{t.isDefault=t.locale===e.locale})):(t.languages.push(e),a.add(e.locale))}))}e.documentation_url&&(e.documentation_url.ru_RU&&(t.documentationUrl.ru_RU=e.documentation_url.ru_RU),e.documentation_url.en_US&&(t.documentationUrl.en_US=e.documentation_url.en_US)),e.documentation_url_overrides&&(e.documentation_url_overrides.ru_RU&&(t.documentationUrlOverrides.ru_RU=e.documentation_url_overrides.ru_RU),e.documentation_url_overrides.en_US&&(t.documentationUrlOverrides.en_US=e.documentation_url_overrides.en_US)),e.cdn_1_documentation_url&&(e.cdn_1_documentation_url.ru_RU&&(t.cdn1DocumentationUrl.ru_RU=e.cdn_1_documentation_url.ru_RU),e.cdn_1_documentation_url.en_US&&(t.cdn1DocumentationUrl.en_US=e.cdn_1_documentation_url.en_US)),t.jivositeId=e.jivosite_id||"",t.offerUrl=e.offer_url||{},t.publicationDomain=e.publication_domain||{},t.cncEnabled=e.cnc_enabled||!1,t.basePlayerLink=e.player_link||"",t.playerDomain=e.player_domain||"playercdn.cdnvideo.ru",t.defaultPlayerRedirectUrl=e.default_player_redirect_url||window.location.origin,t.mailDomain=e.mail_domain||"cdn-video.com",Object.assign(t.loginForm,e.login_form||{});let s={...t.registerForm.displayTypeParams,...e.register_form.displayTypeParams};Object.assign(t.registerForm,e.register_form||{}),r.default.set(t.registerForm,"displayTypeParams",s),a.font&&("own"===a.font.type?t.font.guid=a.font.guid:"websafe"===a.font.type&&(t.font.family=a.font.family)),a.favicon&&(t.favicon.guid=a.favicon.guid),a.backgroundLoginGlobal&&(t.backgroundLoginGlobal.guid=a.backgroundLoginGlobal.guid),a.backgroundLoginLeft&&(t.backgroundLoginLeft.guid=a.backgroundLoginLeft.guid)})).catch((function(e){t.mainInterface.main="#00BB00",t.mainInterface.font="#000000",t.mainInterface.background="#FFFFFF",t.mainInterface.mixedMainBackground="#8CE08C",t.header.background="#848484",t.header.font="#FFFFFF",t.header.dropdown.background="#FFFFFF",t.header.dropdown.font="#000000",t.header.dropdown.mail="#0000FF",t.header.hover="#A7A7A7",t.sidenav.background="#E8E8E8",t.sidenav.ava.background="#000000",t.sidenav.ava.font="#FFFFFF",t.sidenav.menu.inactive="#929292",t.sidenav.menu.active="#000000",t.sidenav.menu.hoverBackground="#9C9C9C",t.sidenav.menu.activeBackground="#FFFFFF",t.company.name="CDN"}))},cloneData(){return{logo:JSON.parse(JSON.stringify(this.logo)),mainInterface:JSON.parse(JSON.stringify(this.mainInterface)),sidenav:JSON.parse(JSON.stringify(this.sidenav)),font:JSON.parse(JSON.stringify(this.font)),theme:this.theme}},isCurrentCompany(t){return this.company.name===t},supportContacts(){return{emails:this.contacts.support.emails,phone:this.contacts.support.phone}}};e.A=n},33632:function(t,e,a){"use strict";a.d(e,{Fu:function(){return r},c4:function(){return i},ib:function(){return n}});var s=a(28848);function i(){return new Promise((t=>{if(window.smartCaptcha)return void t();const e=document.createElement("script");e.src=s.Gh,e.defer=!0,e.onload=t,document.head.appendChild(e)}))}function r(t){window.smartCaptcha&&t.$refs.captcha&&(t.$refs.captcha.innerHTML="",window.smartCaptcha.render(t.$refs.captcha,{sitekey:s.BE,hl:"ru",callback:e=>{t.onCaptchaSuccess(e)}}))}function n(t,e,a="ru"){window.smartCaptcha&&t&&(t.innerHTML="",window.smartCaptcha.render(t,{sitekey:s.BE,hl:a,callback:t=>e(t)}))}},35325:function(t,e,a){"use strict";a.d(e,{A:function(){return r}});var s=a(30852),i=a(83795);function r(t){const e=JSON.parse((0,i.R)("introvert_cookie"));return Object.assign(t,{source_type:"личный кабинет",CID:"cid",status:"unsorted",formid:"818506",formhash:"95bbc6ce27c3d8b4e2e61f1d6e1a251f"},e),s.A.sendYadroAmoCrmData({},t)}},85838:function(t,e,a){"use strict";function s(t,e=300){let a;return function(...s){const i=this;clearTimeout(a),a=setTimeout((function(){a=null,t.apply(i,s)}),e)}}a.d(e,{s:function(){return s}})},70:function(t,e,a){"use strict";a.d(e,{A:function(){return i}}),a(98992),a(3949);const s={"Json is empty":"JSON пуст","Json invalid":"JSON некорректен",name_already_exist:"имя уже существует","service Orchestration is unavailable":"оркестрация сервиса недоступна","Invalid id of resource":"некоррекный id ресурса","Incorrect User Data":"некорректные данные пользователя","Incorrect account":"некоррекный аккаунт","Key incorrect or not found":"ключ некоррекный или не был найден","key not found":"ключ не найден","Request is forbidden":"Запрос запрещён","Invalid or expired token":"Невалидный или просроченный токен","Stream names are not uniq":"имя потока не уникально","id from json and from url are not equal":"id в JSON запросе и в URL не совпадают","this app is existed id":"есть такое же id","stream key should match regexp":"ключ потока должен удовлетворять регулярному выражению","stream key":"ключ потока","stream key length should be between":"длина ключа потока должна быть между","stream name length should be between":"длина имени потока должна быть между","stream value":"значение потока","value invalid":"некорректное значение","required key":"требуемый ключ","isn't provided":"не предоставлен","isn't allowed":"не разрешён","value type":"значение типа","data type":"тип данных",Not:"Не","isn't":"не явÐ
1»ÑÐµÑ‚ся",type:"тип",and:"и","stream id length should be less then":"Длина id потока должна быть меньше, чем","locations : intersecting time intervals":"интервалы времени пересекаются","intersecting time intervals":"интервалы времени пересекаются",end:"конец",start:"начало","locations : Invalid time interval":"неправильный интервал времени"};function i(t,e){var a=t;return"ru_RU"===e&&Object.keys(s).forEach((t=>{a=a.replace(new RegExp(t,"g"),s[t])})),a}},77706:function(t,e,a){"use strict";a.d(e,{Q:function(){return i},X:function(){return s}});const s=(t,e)=>{const a=Math.floor(t/3600),s=Math.floor(t%3600/60),i=t%60;return e?`${a.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`:`${s.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`},i=t=>{let{d:e,h:a,m:s,s:i}=function(t){let e=parseInt(t/86400),a=parseInt((t-86400*e)/3600),s=parseInt((t-86400*e-3600*a)/60);return{d:e,h:a,m:s,s:parseInt(t-86400*e-3600*a-60*s)}}(t),r="";return 0!==e&&(r+=`${e} ${$t("д")}. `),0!==a&&(r+=`${a} ${$t("ч")}. `),0!==s&&(r+=`${s<10?"0"+s:s} ${$t("мин")}. `),0!==i&&(r+=`${i<10?"0"+i:i} ${$t("сек")}.`),r}},83795:function(t,e,a){"use strict";function s(t){let e=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0}a.d(e,{R:function(){return s}})},13195:function(t,e,a){"use strict";a.d(e,{o:function(){return l}}),a(44114),a(98992),a(54520);var s=a(62893),i=a(97029),r=a(18738),n=a(69007),o=a(28409),c=a(81284);function l(){const t=(0,s.getCurrentInstance)(),{openContactUsModal:e}=(0,c.v)({showFeedback:!0,setUserContact:!0}),a=(0,s.computed)((()=>r.A.isCurrentCompany("CDNvideo"))),l=(0,s.computed)((()=>r.A.isCurrentCompany("TurboFlare"))),d=(0,s.computed)((()=>r.A.isCurrentCompany("SberCloud"))),u=(0,s.computed)((()=>i.A.isAuth()&&r.A?.company.name?[{callback:S,to:{name:_.value},text:"Учетная запись",visible:m.value,id:"person-info"},{callback:S,to:{name:o.A.PROFILE_SERVICE},text:"Аккаунт",visible:p.value,id:"account"},{callback:S,to:{name:o.A.PROFILE_BILLING},text:"Биллинг",visible:h.value,id:"billing"},{callback:S,to:{name:o.A.PROFILE_REPORTS},text:"Отчеты",visible:v.value,id:"reports"},{callback:S,to:{name:o.A.USER_ACTION_HISTORY},text:"История действий",visible:f.value,id:"actions-history"},{href:C.value,text:"База знаний",visible:x.value,id:"knowledge-base"},{callback:e,text:"Связаться с нами",visible:b.value,id:"contact-us"},{callback:()=>i.A.logout(),text:"Выход",visible:!0,id:"exit"}].filter((({visible:t})=>t)):[])),m=(0,s.computed)((()=>{if(i.A.isAuth())return i.A.isCDN1()||!i.A.isStaffInProject()})),p=(0,s.computed)((()=>!!i.A.isAuth()&&!i.A.isCDN1()&&(!!i.A.projectId||i.A.isStaffInProject()))),h=(0,s.computed)((()=>!!(i.A.isAuth()&&w.value&&(a.value?i.A.isCDN1()?i.A.serviceId:void 0!==i.A.serviceStatus&&"not_confirmed"!==i.A.serviceStatus&&void 0!==i.A.balance:g.value)))),g=(0,s.computed)((()=>void 0===i.A.balance&&d.value)),v=(0,s.computed)((()=>!!i.A.isAuth()&&!(!r.A?.company.name||l.value)&&!(!$.value&&!y.value)&&(!i.A.isStaff()||i.A.isStaffInProject()))),f=(0,s.computed)((()=>i.A.isCDN1())),x=(0,s.computed)((()=>!(!r.A?.company.name||l.value||!C.value))),b=(0,s.computed)((()=>!(!r.A?.company.name||l.value))),_=(0,s.computed)((()=>i.A.isStaff()&&!i.A.isStaffInProject()?o.A.PROFILE_PERSON_ADMIN:o.A.PROFILE_PERSON)),C=(0,s.computed)((()=>t.proxy.documentationUrl)),w=(0,s.computed)((()=>i.A.permissionsService.billing.canReadBilling)),y=(0,s.computed)((()=>i.A.permissionsService.statistics.readReportSubscriptions)),$=(0,s.computed)((()=>i.A.permissionsService.statistics.readReports));function S(t){n.A.push(t.to)}return{personSubMenuItems:u}}},86957:function(t,e,a){"use strict";a.d(e,{JK:function(){return b},Ru:function(){return p},Zj:function(){return f},jz:function(){return v},xS:function(){return x}}),a(44114);var s=a(62893),i=a(89278),r=a(64789),n=a(1145),o=a(74093),c=a(30112);s.default.use(i.A);const l=c.default[0],d={ru_RU:n.A,en_US:o.A};class u extends r.Ay{constructor(t){super(t),this._companyName=""}get companyName(){return this._companyName}set companyName(t){this._companyName=t}interpolate(t,e,a){return t.includes("{mainCompanyName}")&&(null==e&&(e={}),e.mainCompanyName=this._companyName),super.interpolate(t,e,a)}}const m="locale",p=new i.A({locale:l,silentTranslationWarn:!0,formatter:new u,missing(t,e,a){a.$i18n.mergeLocaleMessage(t,{[e]:e}),a.$nextTick((()=>{a.$forceUpdate()}))}});let h=[],g=[l];function v(t,e,a){let s=t.$localStorage.get(m),i=!!s&&c.default.includes(s)&&a.includes(s),r=!!e&&c.default.includes(e);!i&&r?s=e:i||(s=~window.location.hostname.search(/.ru/i)?c.default[0]:c.default[1]),x(t,s),window.$t=function(e,a){function s(){}return s.toString=()=>t.$t(e,a),s}}function f(t){x(t,c.default[+!c.default.indexOf(p.locale)])}function x(t,e){!function(t){-1===h.indexOf(t)&&(p.mergeLocaleMessage(t,d[t]),h.push(t)),-1===g.indexOf(t)&&a(18030)(`./${t}`).then((e=>{p.mergeLocaleMessage(t,e.default),g.push(t)}))}(e),function(t,e){p.locale=e,t.$localStorage.set(m,e)}
1(t,e)}function b(t){return t.$localStorage.get(m)}},19850:function(t,e,a){"use strict";var s=a(16007),i=a.n(s);let r={duration:5e3,showClose:!0},n=function(t){let e,a,s;"string"==typeof t?(e={},a=t):(e=t,a=t.message||t.text),s="string"==typeof a?window.$t?$t(a):a:"object"==typeof a?window.$t?$t(a.text,a.options):a.text:a;let n={...r,...e,message:s};return i()(n)};["success","warning","info","error"].forEach((t=>{n[t]=function(e){return e.type=t,n(e)}})),e.A=n},70085:function(t,e,a){"use strict";a.d(e,{q:function(){return r}});var s=a(87e3);const i=s.PhoneNumberUtil.getInstance();function r(t){let e;if(t){if(e=/^[0-9+ ()-]*$/.test(t)?t:t.replace(/[^0-9+ ()-]/g,""),"8"===e[0]?e="+7"+e.substring(1):"+"!==e[0]&&e.length&&(e="+"+e),e.length>1)try{const t=i.parse(e);e=i.format(t,s.PhoneNumberFormat.INTERNATIONAL)}catch(t){}return e}}},14550:function(t,e){"use strict";e.A=function(t,e){let a=new Promise(((t,a)=>{let s=setTimeout((()=>{clearTimeout(s),a(`Timed out in ${e} ms.`)}),e)}));return Promise.race([t,a])}},90920:function(t,e,a){"use strict";a.d(e,{A:function(){return s}});class s{constructor(t,e=0,a=void 0,s=void 0){if(this._duration=t,this._remainingTime=t,this._timeoutId=null,this._paused=!1,e){const t=(new Date).getTime(),a=Math.abs(t-e),s=Math.ceil(a/1e3);s<this._duration&&(this._remainingTime=this._duration-s,this.start())}this.onTick=s,this.onComplete=a}start(){this._timeoutId||this.tick()}tick(){this._timeoutId=setTimeout((()=>{this._paused||(this._remainingTime--,this._remainingTime<=0?(this._remainingTime=this.duration,this.stop(),this.onComplete&&this.onComplete()):(this.onTick&&this.onTick(this._remainingTime),this.tick()))}),1e3)}pause(){this._timeoutId&&!this._paused&&(this._paused=!0,clearTimeout(this._timeoutId),this._timeoutId=null)}resume(){this._paused&&(this._paused=!1,this.start())}stop(){clearTimeout(this._timeoutId),this._timeoutId=null,this._remainingTime=this._duration,this._paused=!1}get formatTime(){const t=Math.floor(this._remainingTime/60),e=this._remainingTime%60;return String(t).padStart(2,"0")+":"+String(e).padStart(2,"0")}get isTimerRunning(){return!!this._timeoutId}}},97029:function(t,e,a){"use strict";a.d(e,{v:function(){return P},A:function(){return M}}),a(98992),a(3949);var s=a(62893),i=a(96720),r=a(30852),n=a(69364),o=a(71265),c=a(2245),l=a(33696),d=new WeakMap;class u{constructor(t){(0,n.A)(this,d,void 0),(0,c.A)(d,this,t)}checkPermission(t){if(void 0===(0,o.A)(d,this)[t])throw new Error(`Permission ${t} not found`);return(0,o.A)(d,this)[t]}}class m extends u{constructor(t){super(t)}get canReadBilling(){return this.checkPermission(l.A.billing.read)}get canUpdateBilling(){return this.checkPermission(l.A.billing.update)}get canReadNomenclature(){return this.checkPermission(l.A.billing.nomenclature.read)}}class p extends u{constructor(t){super(t)}get canDeleteCacheFull(){return this.checkPermission(l.A.cache.deleteFull)}get canDeleteCacheSingle(){return this.checkPermission(l.A.cache.deleteSingle)}get canPreloadCache(){return this.checkPermission(l.A.cache.preload)}get manualCacheControlDisabled(){return!this.canPreloadCache&&!this.canDeleteCacheSingle}}class h extends u{constructor(t){super(t)}get canReadConfiguration(){return this.checkPermission(l.A.configuration.read)}get canUpdateConfiguration(){return this.checkPermission(l.A.configuration.update)}}class g extends u{constructor(t){super(t)}get canReadDns(){return this.checkPermission(l.A.dns.configuration.read)}get canUpdateDns(){return this.checkPermission(l.A.dns.configuration.update)}}class v extends u{constructor(t){super(t)}get canDeleteDvr(){return this.checkPermission(l.A.dvr.delete)}get canReadDvr(){return this.checkPermission(l.A.dvr.read)}}class f extends u{constructor(t){super(t)}get canDeleteIdentification(){return this.checkPermission(l.A.core.identification.delete)}get canReadIdentification(){return this.checkPermission(l.A.core.identification.read)}get canCreateIdentification(){return this.checkPermission(l.A.core.identification.create)}}class x extends u{constructor(t){super(t)}get fileCut(){return this.checkPermission(l.A.media.storage.file.cut)}get fileDelete(){return this.checkPermission(l.A.media.storage.file.delete)}get fileRead(){return this.checkPermission(l.A.media.storage.file.read)}get fileTranscode(){return this.checkPermission(l.A.media.storage.file.transcode)}get fileUpdate(){return this.checkPermission(l.A.media.storage.file.update)}get fileUpload(){return this.checkPermission(l.A.media.storage.file.upload)}get spaceRead(){return this.checkPermission(l.A.media.storage.space.read)}get spaceUpdate(){return this.checkPermission(l.A.media.storage.space.update)}get broadcastRead(){return this.checkPermission(l.A.pageBroadcast.read)}get broadcastUpdate(){return this.checkPermission(l.A.pageBroadcast.update)}}class b extends u{constructor(t){super(t)}get canReadPccPlayer(){return this.checkPermission(l.A.pcc.player.read)}get canUpdatePccPlayer(){return this.checkPermission(l.A.pcc.player.update)}}class _ extends u{constructor(t){super(t)}get canReadRecordConfiguration(){return this.checkPermission(l.A.record.configuration.read)}get canUpdateRecordConfiguration(){return this.checkPermission(l.A.record.configuration.update)}get canReadRecordFile(){return this.checkPermission(l.A.record.file.read)}get canDeleteRecordFile(){return this.checkPermission(l.A.record.file.delete)}}class C extends u{constructor(t){super(t)}get canReadRestream(){return this.checkPermission(l.A.restream.configuration.read)}get canUpdateRestream(){return this.checkPermission(l.A.restream.configuration.update)}}class w extends u{constructor(t){super(t)}get certificateLeCreate(){return this.checkPermission(l.A.ssl.certificate.le.create)}get certificateCreate(){return this.checkPermission(l.A.ssl.certificate.create)}get certificateDelete(){return this.checkPermission(l.A.ssl.certificate.delete)}get certificateRead(){return this.checkPermission(l.A.ssl.certificate.read)}get certificateUpdate(){return this.checkPermission(l.A.ssl.certificate.update)}}class y extends u{constructor(t){super(t)}get readExtStat(){return this.checkPermission(l.A.stat.read.extStat)}get readIoss(){return this.checkPermission(l.A.stat.read.ioss)}get readLogs(){return this.checkPermission(l.A.stat.read.logs)}get readLogsExport(){return this.checkPermission(l.A.stat.read.logsExport)}get readPlayer(){return this.checkPermission(l.A.stat.read.player)}get readReportSubscriptions(){return this.checkPermission(l.A.stat.read.reportSubscriptions)}get readReports(){return this.checkPermission(l.A.stat.read.reports)}get readStat(){return this.checkPermission(l.A.stat.read.stat)}get readStreamStat(){return this.checkPermission(l.A.stat.read.streamstat)}get updateLogsExport(){return this.checkPermission(l.A.stat.update.logsExport)}get updateReportSubscriptions(){return this.checkPermission(l.A.stat.update.reportSubscriptions)}}class $ extends u{constructor(t){super(t)}get canReadUser(){return this.checkPermission(l.A.s3.user.read)}get canUpdateUser(){return this.checkPermission(l.A.s3.user.update)}}class S extends u{constructor(t){super(t)}get projectResourcesGet(){return this.checkPermission(l.A.openstack.project.resourcesGet)}get projectCreate(){return this.checkPermission(l.A.openstack.project.create)}get projectGet(){return this.checkPermission(l.A.openstack.project.get)}get ssoLogin(){return this.checkPermission(l.A.openstack.sso.login)}}var k=new WeakMap;class T{constructor(t,e=!1){(0,n.A)(this,k,{}),e?(0,c.A)(k,this,this.generateAllTruePermissions()):(0,c.A)(k,this,function(t,e){const a={},s=t=>{for(const i of Object.values(t))"string"==typeof i?a[i]=e.includes(i):"object"==typeof i&&null!==i&&s(i)};return s(t),a}(l.A,t)),this.billing=new m((0,o.A)(k,this)),this.cache=new p((0,o.A)(k,this)),this.configuration=new h((0,o.A)(k,this)),this.dns=new g((0,o.A)(k,this)),this.dvr=new v((0,o.A)(k,this)),this.identification=new f((0,o.A)(k,this)),this.media=new x((0,o.A)(k,this)),this.player=new b((0,o.A)(k,this)),this.record=new _((0,o.A)(k,this)),this.restream=new C((0,o.A)(k,this)),this.ssl=new w((0,o.A)(k,this)),this.s3=new $((0,o.A)(k,this)),this.openstack=new S((0,o.A)(k,this)),this.statistics=new y((0,o.A)(k,this))}generateAllTruePermissions(){const t={},e=a=>{for(const s of Object.values(a))"string"==typeof s?t[s]=!0:"object"==typeof s&&null!==s&&e(s)};return e(l.A),t}checkPermission(t){if(void 0===(0,o.A)(k,this)[t])throw new Error(`Permission ${t} not found`);return(0,o.A)(k,this)[t]}}let A=(0,i.A)();const R="staff_stepped_in_project",P="cdn1_stepped_in_project";var M={...{authenticate(t){let e;return this.token=t.token,this.id=t.id,this.entityType=t.type,this.sso=t.sso,this.isLoading=!0,s.default.localStorage.set("token",this.token),s.default.localStorage.set("entity_id",this.id),s.default.localStorage.set("entity_type",this.entityType),s.default.localStorage.set("sso",this.sso),this.setTokenExpirationTs(t.lifetime),t.returnUrl&&s.default.localStorage.set("return_url",t.returnUrl),this.personEmail=t.email||"",this.isCDN1()?(this.permissions=[],this.permissionsService=new T([],!0),s.default.localStorage.set("person_email",this.personEmail),e=this.getAccounts().then((()=>{this.getProjectManagerInfo().then((()=>{this.isLoading=!1,A.emit("authenticate",this)}))}))):"Staff"===this.entityType?(this.personRole="",e=this.getEmployee().then((()=>{A.emit("authenticate",this),this.isLoading=!1}))):(this.personId=this.id,e=this.getPersonData().then((()=>{A.emit("authenticate",this),s.default.localStorage.set("phoneConfirmed",this.phoneConfirmed)}))),e.catch((()=>{A.emit("authenticate",this),this.logout()}))},setTokenExpirationTs(t){this.tokenExpirationTs=Date.now()+t},hasTokenExpired(){return this.tokenExpirationTs<=Date.now()},isAuth(){return!!this.token},logout(){this.resetProject(),this.id=!1,this.personId=!1,this.token="",this.entityType=void 0,this.staffDetails={role:"",rolename:""},this.permissions=[],this.permissionsService=new T([]),s.default.localStorage.remove("token"),s.default.localStorage.remove("entity_id"),s.default.localStorage.remove("entity_type"),s.default.localStorage.remove("person_email"),s.default.localStorage.remove("sso"),s.default.localStorage.remove("phoneConfirmed"),s.default.localStorage.remove("sendSmsCode"),s.default.localStorage.remove("registration_email");let t=s.default.localStorage.get("return_url");t&&(s.default.localStorage.remove("return_url"),window.location.href=t),A.emit("logout",this)},resetProject(){this.projectId=!1,this.projectClientType=void 0,this.companyName=void 0,this.projectManagerInfo={},this.projectName=!1,this.accountName=void 0,this.accountPhone=void 0,this.accountNames=[],this.accountsInfo={},this.accountUtoken=void 0,this.accountCreatedAt=void 0,this.identified=void 0,this.resourcesByType={http:0,live:0,restream:0,hls_cache:0},this.serviceId=!1,this.serviceStatus=void 0,this.serviceVerified=void 0,this.isServiceBlocked=void 0,this.balance=void 0,this.traffic=void 0,this.currency=void 0,this.autorecharge=void 0,this.sso=void 0,this.hasCustomSettings=void 0,this.phoneConfirmed=!1,"Staff"===this.entityType&&(this.personId=!1),s.default.localStorage.remove(R)},applySteppedInProjectData(t){this.accountName=t.accountName,this.accountUtoken=t.accountUtoken,this.projectId=t.projectId,this.projectClientType=t.projectClientType,this.serviceId=t.serviceId,1!==t.companyId&&(this.companyName=t.companyName),t.personId&&(this.personId=t.personId),t.accountPhone&&(this.accountPhone=t.accountPhone),t.personEmail&&(this.personEmail=t.personEmail)},stepIntoProject(t){this.applySteppedInProjectData(t),s.default.localStorage.set(R,JSON.stringify(t))},getAndCheckSteppedInProject(){if("Staff"!==this.entityType)return null;const t=JSON.parse(s.default.localStorage.get(R));return t&&t.accountName&&t.projectId?t:null}
1,loadSteppedInProjectContext(){this.getService(),this.getProjectManagerInfo(),this.getBalance(),this.getTraffic(),this.getCustomSetting()},on(t,e){A.on(t,e)},off(t,e){A.off(t,e)},getCDN2Data(){return this.isLoading=!0,this.getAccounts().then((()=>this.getProjects().then((()=>{this.getProjectManagerInfo(),this.getService().then((()=>{Promise.all([this.getBalance(),this.getTraffic()]).finally((()=>{this.isLoading=!1}))}))}))))},getAccounts(){return r.A.getAccounts({}).then((t=>{if(t.data.length)if(this.isCDN1()){this.accountsInfo={},t.data.forEach((t=>{this.accountsInfo[t.name]={utoken:t.utoken,companyName:t.company_name||"",contractNumber:t.contract_number||""}})),this.accountNames=Object.keys(this.accountsInfo),this.accountNames.sort();const e=localStorage.getItem(P);this.accountName=e&&this.accountNames.includes(e)?e:this.accountNames[0],this.accountUtoken=this.accountsInfo[this.accountName].utoken}else this.accountName=t.data[0].name,this.accountUtoken=t.data[0].utoken}))},getEmployee(){return r.A.getEmployee({id:this.id}).then((t=>{let e=t.data.data,{permissions:a,...s}=e;this.permissions=a||[],this.permissionsService=new T(this.permissions),this.staffDetails=s,this.staffDetails.rolename=e.role in this.staffRoles?this.staffRoles[e.role]:"",this.personTimezone=e.timezone||this.personTimezone}))},getProjects(){return r.A.getProjects().then((t=>{let e=t.data.data[0];e&&(this.projectId=e.id,this.projectClientType=e.client_type,this.companyName=e.company,this.projectName=e.name)}))},getProjectManagerInfo(){if(this.isCDN1())return r.A.getUsers().then((t=>{let e=t.data.manager_info;this.personTimezone=t.data.timezone,e&&(this.projectManagerInfo=e)}));if(this.projectId){let t={id:this.projectId};return r.A.getProject(t).then((t=>{let e=t.data.data.manager_info;e&&(this.projectManagerInfo=e)}))}},getService(){if(void 0===this.accountName)return this.serviceId=void 0,this.serviceStatus=void 0,this.isServiceBlocked=void 0,new Promise((t=>{setTimeout((()=>{t()}),0)}));let t={account:this.accountName};return r.A.getService(t).then((({data:{status:t,blocked:e,id:a,verified:s}})=>{this.serviceStatus=t,this.isServiceBlocked=e,this.serviceId=a,this.serviceVerified=s})).catch((()=>{this.serviceId=void 0,this.serviceStatus=void 0,this.isServiceBlocked=void 0,this.serviceVerified=void 0}))},getPersonData(){return r.A.getProfile({personId:this.personId}).then((({data:{data:t}})=>{this.firstName=t.first_name,this.lastName=t.last_name,this.middleName=t.middle_name,this.language=t.language,this.accountPhone=t.phone,this.phoneConfirmed=t.phone_confirmed,this.permissions=t.permissions||[],this.permissionsService=new T(this.permissions),this.personRole=t.role,this.personTimezone=t.timezone||this.personTimezone,this.personEmail=t.email,this.accountCreatedAt=t.created_at,this.identified=t.identified}))},getBalance(t){if(this.serviceId){let e={id:this.serviceId},a={cancelToken:t};return r.A.getBalance(e,{},a).then((t=>{void 0!==t.data.balance&&(this.balance=Number(t.data.balance).toFixed(2),this.balance.endsWith(".00")&&(this.balance=Number(this.balance).toString()),this.currency={RUB:"₽",USD:"USD"}[t.data.currency],this.balance+=" "+this.currency,this.autorecharge=t.data.autorecharge)}))}},getTraffic(t){if(this.serviceId){let e={id:this.serviceId},a={cancelToken:t};return r.A.getTraffic(e,{},a).then((t=>{if(void 0!==t.data.available_traffic){let e=t.data.available_traffic;this.traffic=e<1024?e.toFixed()+" GB":(e/1024).toFixed(1)+" TB"}}))}},getCustomSetting(t){let e={account:this.accountName};return r.A.getCustomSetting(e).then((t=>{this.hasCustomSettings=t.data.has_custom_settings})).catch((()=>{this.hasCustomSettings=!1}))},setPhoneConfirmed(t){this.phoneConfirmed=t,s.default.localStorage.set("phoneConfirmed",t)},isCDN1(){return!!this.token&&this.token.startsWith("cdn1_")},isCDN1Staff(){return!!this.isCDN1()&&this.accountNames.length>this.accountsThresholdForStaffCDN1},isCDN2Staff(){return"Staff"===this.entityType},isStaff(){return this.isCDN1Staff()||this.isCDN2Staff()},isStaffInProject(){return!!this.token&&this.isStaff()&&!!this.accountName},isBlocked(){return!this.isCDN1()&&this.isServiceBlocked},accountStatusIsLoading(){return void 0===this.serviceStatus},checkToken(){if(!this.token)return void A.emit("authenticate",this);let t={token:this.token},e=r.A.login({},t).then((t=>{if("Alive"!==t.data.status)throw A.emit("authenticate",this),Error("Expired token");this.setTokenExpirationTs(t.data.lifetime)}));return"Staff"===this.entityType?e=e.then((()=>this.getEmployee().then((()=>{const t=this.getAndCheckSteppedInProject();t&&(this.applySteppedInProjectData(t),this.loadSteppedInProjectContext()),A.emit("authenticate",this)})))):this.isCDN1()?(this.permissionsService=new T([],!0),e=e.then((()=>this.getAccounts().then((()=>{A.emit("authenticate",this),this.getProjectManagerInfo()}))))):e=e.then((()=>this.getPersonData())).then((()=>this.getAccounts())).then((()=>this.getProjects().then((()=>{A.emit("authenticate",this),this.getProjectManagerInfo()})))).then((()=>this.getService().then((()=>{this.getBalance(),this.getTraffic()})))),e.catch((()=>{A.emit("authenticate",this),this.logout()}))},init(){if(!new URLSearchParams(window.location.search).has("cdnauthtoken")){this.token=s.default.localStorage.get("token"),this.id=s.default.localStorage.get("entity_id"),this.entityType=s.default.localStorage.get("entity_type");let t=s.default.localStorage.get("sso");this.phoneConfirmed=s.default.localStorage.get("phoneConfirmed"),this.sso="string"==typeof t?JSON.parse(t):t,this.isCDN1()&&(this.personEmail=s.default.localStorage.get("person_email"))}"Person"===this.entityType&&(this.personId=this.id)},token:"",isLoading:!1,tokenExpirationTs:void 0,projectId:!1,projectClientType:void 0,companyName:void 0,projectManagerInfo:{},projectName:!1,serviceId:!1,serviceStatus:void 0,serviceVerified:void 0,isServiceBlocked:void 0,hasCustomSettings:void 0,id:!1,personId:!1,firstName:void 0,lastName:void 0,phoneConfirmed:!1,language:void 0,middleName:void 0,accountName:void 0,accountPhone:void 0,accountNames:[],accountsInfo:{},accountUtoken:void 0,accountCreatedAt:void 0,identified:void 0,balance:void 0,autorecharge:void 0,currency:void 0,traffic:void 0,personRole:"",personEmail
1:"",personTimezone:"Europe/Moscow",resourcesByType:{http:0,live:0,restream:0,hls_cache:0},entityType:void 0,sso:void 0,accountsThresholdForStaffCDN1:100,staffDetails:{role:"",rolename:""},staffRoles:{supervisor_all:"Суперуправляющий",supervisor_provider:"Управляющий",admin_all:"Суперадмин",admin_provider:"Администратор",manager_provider:"Менеджер",clientmanager_provider:"Клиент-менеджер"},permissions:[],permissionsService:new T([])},...{canReadStatusPage(){return this.permissions.includes("status-page_status_read")},canUpdateStatusPage(){return this.permissions.includes("status-page_status_update")},canReadCompany(){return this.permissions.includes("core_read_provider")},canUpdateCompany(){return this.permissions.includes("core_update_provider")},canCreateStaff(){return this.permissions.includes("core_create_staff")},canReadStaff(){return this.permissions.includes("core_read_staff")},canReadCompanies(){return this.permissions.includes("core_read_provider")},canUpdateStaff(){return this.permissions.includes("core_update_staff")},canDeleteStaff(){return this.permissions.includes("core_delete_staff")},canCreateProject(){return this.permissions.includes("core_create_project")},canReadProject(){return this.permissions.includes("core_read_project")},canUpdateProject(){return this.permissions.includes("core_update_project")},canUpdatePerson(){return this.permissions.includes("core_update_person")},canDeletePerson(){return this.permissions.includes("core_delete_person")},canReadNomenclature(){return this.permissions.includes("billing_read_nomenclature")}}}},76458:function(t,e,a){"use strict";a.d(e,{BP:function(){return u},C2:function(){return N},D6:function(){return M},DX:function(){return d},EP:function(){return H},Fq:function(){return G},GH:function(){return _},GT:function(){return S},Gp:function(){return h},HE:function(){return O},JP:function(){return r},Kz:function(){return o},Lo:function(){return y},OS:function(){return j},OZ:function(){return p},Px:function(){return T},Q1:function(){return P},SW:function(){return C},UH:function(){return b},VP:function(){return V},Vp:function(){return x},Wq:function(){return D},Y9:function(){return Y},ZM:function(){return m},_L:function(){return g},b6:function(){return w},bl:function(){return l},c3:function(){return R},fI:function(){return k},fM:function(){return I},gD:function(){return $},jc:function(){return B},jo:function(){return F},jw:function(){return U},kj:function(){return L},lN:function(){return n},mU:function(){return A},nF:function(){return q},oh:function(){return W},q:function(){return E},qy:function(){return z},vC:function(){return c},vF:function(){return i}}),a(98992),a(23215),a(3949),a(37550);const s=a(87e3).PhoneNumberUtil.getInstance();function i(t){return/^[а-яА-Я\w\s,.'-]*$/i.test(t)}function r(t){return/^(http|https):\/\/[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*(:[0-9]+)?(\/[a-zA-Z0-9\-_]+)*(\?[a-zA-Z0-9\-_=&]+)?(#.*)?$/.test(t)}function n(t){return/^[a-zA-Zа-яА-ЯёЁ0-9\-_ ]+$/i.test(t)}function o(t){return/^((?!-)[\w\d-]{1,63}(?<!-)\.)+[\w\d-]{2,63}(:\d{1,5})?$/i.test(t)}function c(t){return/^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}(\/[^\s]*)?$/i.test(t)||""===t}function l(t){return/^[\w\d\-.]*$/i.test(t)}function d(t){return/^[a-zA-Z0-9()\-=*.?;,+/\\:&_ ]*$/i.test(t)}function u(t){return 0===t.length||!b(this.listOfDomains)||"/"!==t}function m(t){if(!t)return!1;let e=!0,a=t.split(":")[0].split(".");if(4===a.length){let t=function(t){let e=!0;return t.forEach((t=>{let a=Number(t);isNaN(a)&&(e=!1)})),e}(a);return t&&a.forEach((t=>{let a=Number(t);(a>255||a<0)&&(e=!1)})),e}return function(t){return!!O(t.split(":")[0])||o(t)}(t)}function p(t){if(!t||"string"!=typeof t||t.length>255)return!1;const e=t.split(".");return 2===e.length&&!!isNaN(e.at(-1))&&e.every(f)}function h(t){if(!t||"string"!=typeof t||t.length>255)return!1;const e=t.split(".");return!(e.length<2)&&!!isNaN(e.at(-1))&&e.every(f)}function g(t){if(!t||"string"!=typeof t||t.length>255)return!1;const e=t.split(".");return!(e.length<2)&&!!isNaN(e.at(-1))&&!e.slice(-2).some((t=>t.startsWith("_")))&&e.every((t=>t.startsWith("_")?function(t){return!!v(t)&&/^[a-zA-Z0-9-]*$/.test(t)}(t.slice(1)):f(t)))}function v(t){return!("string"!=typeof t||t.length<1||length>63||t.startsWith("-")||t.endsWith("-"))}function f(t){return!!v(t)&&/^[\p{L}\p{N}-]*$/u.test(t)}function x(t){if(!t)return!1;let e=!1;return t.forEach((function(t){t.backup||(e=!0)})),e}function b(t){var e=!1;return t.forEach((t=>{t.source&&O(t.source)&&(e=!0)})),e}function _(t){let e=!0;return t.split("\n").forEach((t=>{t.split(" ").forEach((t=>{""===t||/^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(\/([1-2][0-9]|3[0-2]|[0-9]))?$/.test(t)||(e=!1)}))})),e}function C(t){return/^(([0-9a-fA-F]{1,4}:){7}([0-9a-fA-F]{1,4}|:)|(([0-9a-fA-F]{1,4}:){1,6}:([0-9a-fA-F]{1,4}|:))|(([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2})|(([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3})|(([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4})|(([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5})|(([0-9a-fA-F]{1,4}:){1}(:[0-9a-fA-F]{1,4}){1,6})|(::([0-9a-fA-F]{1,4}:){0,6}[0-9a-fA-F]{1,4}|:)|(([0-9a-fA-F]{1,4}:){1,7}:|:))$/.test(t)}function w(t){let e=!0;
1return(t=t.split(" ")).forEach((t=>{/^[^а-яА-Я]*$/i.test(t)||""===t||(e=!1)})),e}function y(t){return null!==t.country}function $(t){return/^[\w\d]*$/i.test(t)}function S(t){return/^[a-z\d._,()\s"'+\-№/@]*$/i.test(t)}function k(t){return/^[a-z\d\s-]*$/i.test(t)}function T(t){return/^[a-z\s-]*$/i.test(t)}function A(t){return/^[\w-/.?&:%()]*$/i.test(t)}function R(t){return/^[\w\d-=* ()_/;.]*$/i.test(t)}function P(t){return t.split("\n").every((t=>t.split(" ").every((t=>R(t)))))}function M(t){return/^[^а-яА-Я]*$/i.test(t)}function L(t){return/^[\x20-\x7E]*$/i.test(t)}function D(t){return!["Accept","Accept-Language","Content-Type","Content-Language"].includes(t)}function E(t){return!["Cache-Control","Content-Language","Content-Type","Expires","Last-Modified","Pragma"].includes(t)}function z(t){return!["GET","HEAD","POST"].includes(t)}function N(t){try{const e=s.parse(t);return s.isValidNumber(e)}catch(e){return""===t||!1}}function I(t){let e="";if(t){if(e=/^[0-9+ ()-]*$/.test(t)?t:t.replace(/[^0-9+ ()-]/g,""),"8"===e[0]?e="+7"+e.substring(1):"+"!==e[0]&&e.length&&(e="+"+e),!e)return!1;try{const t=s.parse(e);return"RU"===s.getRegionCodeForNumber(t)}catch(t){return!1}}}function O(t){return function(t){return/^[^.]+\.amazonaws\.com$/.test(t.split(":")[0])}(t)||function(t){return-1!==["storage.yandexcloud.net","s3.amazon.com"].indexOf(t.split(":")[0])}(t)}function U(t){return!t||""===t}function V(t){return!t||0===t.length}function B(t){return t.every((t=>/^[\w-]*$/i.test(t)))}function F(t){return t.every((t=>/^[\w-]*$/i.test(t)))}const H=t=>e=>t===e,j=t=>()=>!t;function q(t){return()=>!t.value}function G(t){return Number.isInteger(Number(t))}function Y(t){if(!t)return!0;if(!/^\d{2}\/\d{2}$/.test(t))return!1;const[e]=t.split("/"),a=parseInt(e,10);return a>=1&&a<=12}function W(t){return t.trim().startsWith("~")}},11308:function(t,e,a){"use strict";function s(t,e){return!(!t||!e||(ym(t,"reachGoal",e),0))}a.d(e,{k:function(){return s}})},10586:function(){},42907:function(){},14831:function(){},69978:function(){},70999:function(){},29931:function(){},17133:function(){},50169:function(){},90166:function(){},49059:function(){},10019:function(t,e,a){var s={"./ru":82271,"./ru.js":82271,"moment/locale/ru":82271,"moment/locale/ru.js":82271};function i(t){var e=r(t);return a(e)}function r(t){if(!a.o(s,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return s[t]}i.keys=function(){return Object.keys(s)},i.resolve=r,t.exports=i,i.id=10019},64675:function(t,e,a){"use strict";a(98992),a(3949),a(81454);var s=a(89669),i=a(72664),r=a(62893);e.A={__name:"index",props:{headers:{type:Array,required:!0},rows:{type:Array,required:!0},maxWidth:{type:String,default:"100%"},pageSize:{type:Number,default:10},pageNumber:{type:Number,default:1},showHeader:{type:Boolean,default:!0}},emits:["change","rowClick","dataChanged"],setup(t,{emit:e}){const a=t,n={asc:"asc",desc:"desc",none:"none"},o=(0,r.ref)({}),c=(0,r.computed)((()=>{const t=Object.keys(o.value)[0],e=o.value[t];return t&&e?[...a.rows].map(((t,e)=>({...t,originalIndex:e}))).sort(((a,s)=>{let i=a[t],r=s[t];if("string"==typeof i&&(i=i.toLowerCase()),"string"==typeof r&&(r=r.toLowerCase()),i===r)return a.originalIndex-s.originalIndex;const o=e===n.asc?1:-1;return i>r?o:-o})):a.rows.map(((t,e)=>({...t,originalIndex:e})))})),l=(0,r.computed)((()=>{const t=(a.pageNumber-1)*a.pageSize,e=t+a.pageSize;return c.value.slice(t,e)}));function d(){Object.keys(o.value).forEach((t=>{r.default.delete(o.value,t)}))}return(0,r.watch)((()=>l.value),(()=>{e("dataChanged",l.value)})),{__sfc:!0,props:a,sortingStates:n,sortingState:o,onSorting:function(t){const e=t.key,a=o.value[e];if(a===n.asc)d(),r.default.set(o.value,e,n.desc);else{if(a===n.desc)return void d();d(),r.default.set(o.value,e,n.asc)}},sortedRows:c,paginatedRows:l,resetSorting:d,emit:e,onChange:function(t,a){e("change",{...a,index:t})},onRowClick:function(t){e("rowClick",t)},TableRow:s.A,TableHeader:i.A}}}},98467:function(t,e,a){"use strict";var s=a(62893),i=a(58470),r=a(21278),n=a(11384),o=a(29910),c=a(30574),l=a(50104),d=a(38221),u=a.n(d),m=a(75939);e.A={__name:"basicCell",props:{cellData:{type:Object,required:!0},cellValue:{type:[String,Number,Boolean,Object],required:!0}},emits:["change"],setup(t,{emit:e}){const a=t,d=(0,s.computed)((()=>p(a.cellData.controlType)));function p(t){switch(t){case l.W.checkbox:return i.A;case l.W.plainText:return r.A;case l.W.indicator:return n.A;case l.W.dropdown:return o.A;case l.W.icon:return c.A;case l.W.custom:return a.cellData.customComponent;default:return r.A}}const h=u()((t=>{e("change",t)}),300);function g(t){return`width: ${t||"auto"};`}function v(t,e){return e?e(t):t}function f(t,e){return t?`${t(e)}`:""}const x=(0,s.computed)((()=>g(a.cellData.width))),b=(0,s.computed)((()=>
1!!a.cellData.loading&&a.cellData.loading(a.cellValue))),_=(0,s.computed)((()=>a.cellData.classes?a.cellData.classes(a.cellValue):"")),C=(0,s.computed)((()=>f(a.cellData.cellTooltipTextFunction,a.cellValue))),w=(0,s.computed)((()=>v(a.cellValue,a.cellData.formatter))),y=(0,s.computed)((()=>!!a.cellData.disabled&&("function"==typeof a.cellData.disabled?a.cellData.disabled(a.cellValue):a.cellData.disabled)));return{__sfc:!0,props:a,emit:e,cellComponent:d,activeComponent:p,onChangeCellValue:h,getCellStyle:g,getCellValue:v,getTooltipText:f,cellStyle:x,loading:b,cellClasses:_,tooltipText:C,formattedValue:w,disabled:y,DataHint:m.A}}}},79108:function(t,e,a){"use strict";var s=a(62893);e.A={__name:"checkbox",props:{cellValue:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const a=t,i=(0,s.computed)({get(){return a.cellValue},set(t){a.disabled||e("change",t)}});return{__sfc:!0,props:a,emit:e,toggleValue:i}}}},58952:function(t,e,a){"use strict";var s=a(62842),i=a(35460),r=a(46894),n=a(62893);e.A={__name:"dropdown",props:{cellValue:{required:!0}},setup(t){const e=t,a=(0,n.ref)(!1),o=(0,n.ref)(null),c=(0,n.ref)(null);function l(t){c.value&&!c.value.contains(t.target)&&o.value&&!o.value.contains(t.target)&&(a.value=!1)}return(0,n.onMounted)((()=>{document.addEventListener("mousedown",l)})),(0,n.onBeforeUnmount)((()=>{document.removeEventListener("mousedown",l)})),{__sfc:!0,props:e,dropdownOpen:a,triggerRef:o,dropdownRef:c,handleAction:function(t){t.callback?.(e.cellValue),t.keepOpen||(a.value=!1)},toggleDropdown:function(){a.value=!a.value},closeDropdown:l,TableIcon:s.A,DropdownActionsIcon:i.A,Btn:r.A}}}},18372:function(t,e,a){"use strict";var s=a(6530),i=a(98011),r=a(31669),n=a(36865),o=a(94298),c=a(29204),l=a.n(c);e.A={__name:"icon",props:{cellValue:{required:!0}},setup(t){const e=t;return{__sfc:!0,iconMap:{copy:s.A,favorite:i.A,delete:r.default,plus:n.A,minus:o.A,lock:l()},props:e,handleIconClick:function(){e.cellValue?.icon?.callback&&e.cellValue.icon.callback(e.cellValue)}}}}},68420:function(t,e){"use strict";e.A={__name:"indicator",props:{cellValue:{required:!0,type:[Object]}},setup(t){return{__sfc:!0}}}},3178:function(t,e){"use strict";e.A={__name:"plainText",props:{cellValue:{required:!0,type:[String,Number,Function]}},setup(t){return{__sfc:!0}}}},99846:function(t,e,a){"use strict";var s=a(86180),i=a(75939);e.A={__name:"tableHeader",props:{columns:{type:Array,required:!0},sortingState:{type:Object,required:!0}},emits:["change"],setup(t,{emit:e}){return{__sfc:!0,emit:e,getCellStyle:function(t){return`width: ${t||"auto"}; padding: 0;`},getCellValue:function(t){return t.text||t.key},onClick:function(t){t.sortable&&e("sort",t)},getTooltipText:function(t){return t.headerTooltip?`${t.headerTooltip}`:""},ArrowLong:s.A,DataHint:i.A}}}},64543:function(t,e,a){"use strict";var s=a(56973),i=a(62893);e.A={__name:"tableRow",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},emits:["change"],setup(t,{emit:e}){const a=t,r=(0,i.computed)((()=>r||""));return{__sfc:!0,props:a,emit:e,rowClasses:r,onChangeCellValue:function({index:t,property:a,value:s}){e("change",{index:t,property:a,value:s})},onRowClick:function({event:t}){let s=t.target;for(;s&&s!==t.currentTarget;){if(s.getAttribute&&"true"===s.getAttribute("data-prevent-row-click"))return;s=s.parentElement}e("rowClick",a.row)},BasicCell:s.A}}}},77302:function(t,e){"use strict";e.A={name:"DialogMixin",props:{visible:{required:!0},width:{default:"30%"}},data(){return{isDialogVisible:this.visible}},methods:{toggleDialog(){this.isDialogVisible=!this.isDialogVisible}},watch:{visible:function(t){this.isDialogVisible=t},isDialogVisible:function(t){this.$emit("update:visible",t)}}}},43499:function(t,e,a){"use strict";a(98992),a(3949);var s=a(90165),i=a.n(s),r=a(63344),n=a(46894),o=a(96462);e.A={name:"FilesUploadDialog",mixins:[r.A],components:{Btn:n.A},props:{path:{required:!0},maxConcurrentUploads:{type:Number,default:3},upstreamUploadShare:{type:Number,default:.75},upstreamToPCBitrate:{type:Number,default:2e7},maxPercentForImitation:{type:Number,default:99}},data(){return{fileField:"file",imitationIntervals:{},uploadLimiter:void 0}},created(){this.uploadLimiter=i()(this.maxConcurrentUploads)},beforeDestroy(){this.uploadLimiter.clearQueue(),this.clearAllImitationIntervals()},methods:{uploadFile(t){let e=t.file.name,a=this.path,s={account:this.$user.accountName,path:(0,o.X$)(a,e)},i=new FormData;i.append(this.fileField,t.file,e);let r=this,n={cancelToken:this.componentCancelToken.token,onUploadProgress:this.getUploadProgressHandler(t)};return this.uploadLimiter((function(){return r.$api.createStoragePath(s,i,n).then((t=>{if(200===t.status)throw{name:"Duplicate error",message:"There already is an object under this path"};r.$emit("file-upload",a)}))}))},getUploadProgressHandler(t){let e=this;return a=>{let s=0,i=0;if(a.total>0&&(s=a.loaded/a.total*100,i=s*e.upstreamUploadShare,a.percent=i),t.onProgress(a),100===s){let a=t.file.size,s=Date.now(),r=setInterval((()=>{let r=e.getImitatedUploadedToPCSize(a,s),n=i+r;t.onProgress({percent:n})}),1e3);e.$set(e.imitationIntervals,t.file.uid,r)}}},getImitatedUploadedToPCSize(t,e){let a=(Date.now()-e)/1e3*this.upstreamToPCBitrate/t*100;return a>this.maxPercentForImitation&&(a=this.maxPercentForImitation),a*(1-this.upstreamUploadShare)},clearImitationInterval(t){clearInterval(this.imitationIntervals[t]),this.$delete(this.imitationIntervals,t)},clearAllImitationIntervals(){Object.keys(this.imitationIntervals).forEac
1h((t=>{this.clearImitationInterval(t)}))},displayFileUploadNotification(t,e){let a=$t("Файл {filename} успешно загружен.",{filename:e.name});this.$message.success({message:a})},onSuccess(t,e){this.clearImitationInterval(e.uid),this.displayFileUploadNotification(t,e)},displayFileUploadError(t,e){let a;a="Duplicate error"===t.name?$t("У вас уже загружен файл {filename}.",{filename:e.name}):$t("Не удалось загрузить файл {filename}.",{filename:e.name}),this.$message.error({message:a})},onError(t,e){this.clearImitationInterval(e.uid),this.displayFileUploadError(t,e)}},watch:{isDialogVisible:function(){this.$refs.upload&&this.$refs.upload.clearFiles()}}}},67567:function(t,e,a){"use strict";var s=a(29939),i=a(33498),r=a(93045);e.A={name:"DataHint",components:{QuestionIcon:s.A,AttentionIcon:i.A,WrenchIcon:r.A},props:{hintString:{type:String,default:""},placement:{type:String,default:"bottom"},iconType:{type:String,default:"question"},iconStyle:{type:String,default:""},enterable:{type:Boolean,default:!0}},computed:{iconComponent(){return{question:"QuestionIcon",wrench:"WrenchIcon",warning:"AttentionIcon"}[this.iconType]||"QuestionIcon"},iconProps(){const t={};return"question"===this.iconType&&(t.type="inverted"===this.iconStyle?"inverted":"in-circle"),t}}}},61605:function(t,e,a){"use strict";a(98992),a(3949);var s=a(72281);let i={};function r(t,e){try{i[t][e]()}catch(t){}}let n={show(t){this.hide(),r(t,"show")},hide(t){t?r(t,"hide"):Object.getOwnPropertyNames(i).forEach((function(t){i[t].hide()}))}};e.A={name:"modal",components:{Close:s.A},props:{name:{type:String,required:!0},width:{type:String,default:"500px"}},data(){return{visible:!1}},methods:{show(){this.visible=!0,event.stopPropagation()},hide(){this.visible=!1},close(){this.$emit("close")}},created(){i[this.name],i[this.name]=this},destroyed(){document.body.classList.remove("overflow-hidden"),delete i[this.name]},install(t){t.prototype.$modal=n}}},45691:function(t,e,a){"use strict";var s=a(99419),i=a.n(s),r=a(62893);e.A={__name:"PureModal",props:{visible:{type:Boolean,default:!1},width:{type:String,default:"500px"}},emits:["close"],setup(t,{emit:e}){const a=(0,r.useSlots)();return{__sfc:!0,emit:e,slots:a,closeModal:function(){e("close")},CloseIcon:i()}}}},35694:function(t,e,a){"use strict";var s=a(63804);e.A={name:"Textbox",components:{MaskedInput:s.A},props:{type:{type:String,default:"text"},placeholder:[String,Function],id:String,name:{type:String,default:""},value:{type:[String,Number],default:""},size:{type:String,default:"small"},maxlength:String,mask:[String,Object],readonly:[String,Boolean],placeholderChar:{type:String,default:" "},multiline:{default:!1},font:{type:String,default:""},disabled:{type:Boolean,default:!1},before:{type:String},after:{type:String},parent:{type:Object},handleError:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},ymDisable:{type:Boolean,default:!1},v$:{type:Object,default:null}},data(){return{val:this.value,paddingCompensation:8+24*Object.keys(this.$slots).length+2*(Object.keys(this.$slots).length-1)+4+"px"}},mounted(){Object.keys(this.$slots).length&&(this.$refs.input.style.paddingRight=this.paddingCompensation)},methods:{update(t,e){this.mask||(e=t.target.value),"number"===this.type&&(e=Number(e)),this.$emit("input",e),this.$v&&this.$v.$dirty&&this.touch()},focus(){let t=this.$el.lastChild;for(;t&&8===t.nodeType;)t=t.previousSibling;t&&t.focus&&t.focus(),this.$refs.input?.focus()},touch(){this.$v&&(this.$v.touch||this.$v.$touch)&&this.$v.$touch()},blur(t){let e=t.target.value;"number"===this.type&&(e=Number(e)),this.name&&this.touch(),this.$emit("blur",e)},submit(t){this.$emit("submit",t)}},computed:{error(){return this.$v&&this.$v.$error||this.handleError},$v(){if(this.v$)return this.name&&this.v$[this.name]?this.v$[this.name]:this.v$;if(!this.name)return{};let t=this.name.split("."),e=this.parent||this.$parent;const a=["Scrolled","PlayerFileSelector","transition-group","el-dialog"];for(;e&&(a.includes(e.$options?.name)||a.includes(e.$options?._componentTag));)e=e.$parent;if(!e||!e.$v)return{};if(3===t.length){let a=t.findIndex((t=>-1!==t.indexOf("each")));if(-1!==a){let s=t[a].match(/\d+/);return 1===a?e.$v[t[0]].$each[s][t[2]]:e.$v[t[0]][t[1]].$each[s]}return e.$v[t[0]][t[1]][t[2]]}return 2===t.length?e.$v[t[0]]?.[t[1]]:1===t.length&&t[0]?e.$v[t[0]]:{}},tag(){return this.multiline?"textarea":"input"}},watch:{value:function(t,e){t!==e&&(this.val=t)}}}},18030:function(t,e,a){var s={"./en_US":[4421,4421],"./en_US.js":[4421,4421],"./locales":[30112],"./locales.js":[30112]};function i(t){if(!a.o(s,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=s[t],i=e[0];return Promise.all(e.slice(1).map(a.e)).then((function(){return a(i)}))}i.keys=function(){return Object.keys(s)},i.id=18030,t.exports=i},42634:function(){}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return r[t].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=r,o.amdD=function(){throw new Error("define cannot be used indirect")},o.amdO={},t=[],o.O=function(e,a,s,i){if(!a){var r=1/0;for(d=0;d<t.length;d++){a=t[d][0],s=t[d][1],i=t[d][2];for(var n=!0,c=0;c<a.length;c++)(!1&i||r>=i)&&Object.keys(o.O).every((function(t){return o.O[t](a[c])}))?a.splice(c--,1):(n=!1,i<r&&(r=i));if(n){t.splice(d--,1);var l=s();void 0!==l&&(e=l)}}return e}i=i||0;for(var d=t.length;d>0&&t[d-1][2]>i;d--)t[d]=t[d-1];t[d]=[a,s,i]},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},a=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var i=Object.create(null);o.r(i);var r={};e=e||[null,a({}),a([]),a(a)];for(var n=2&s&&t;"object"==typeof n&&!~e.indexOf(n);
1n=a(n))Object.getOwnPropertyNames(n).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},o.d(i,r),i},o.d=function(t,e){for(var a in e)o.o(e,a)&&!o.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},o.f={},o.e=function(t){return Promise.all(Object.keys(o.f).reduce((function(e,a){return o.f[a](t,e),e}),[]))},o.u=function(t){return"static/js/"+({187:"turboflare",945:"dashboard",1088:"player",2074:"cloud",2188:"CDN",6653:"s3-storage",7653:"DVR",8138:"profile",8201:"media",8805:"stat",9122:"AIAvatar",9492:"DNS",9884:"admin"}[t]||t)+"."+{187:"d8180f68",236:"f51525d0",246:"a37a237d",326:"c88214b0",375:"97ab2a40",446:"b984ee63",594:"86322703",735:"7b4408a9",747:"510c82bd",809:"d92b01f4",945:"38f7c35a",1088:"51c7541a",1146:"beff417b",1339:"e7feb44d",1340:"75cfa056",1717:"8d88212d",1920:"b09a9dbf",2074:"f627d467",2188:"e47cadb7",2259:"9c8880d1",3669:"505b7a4d",3741:"3057a89e",3896:"cf961769",4046:"ff2bffed",4140:"4bb28ce2",4421:"105f5ac4",4466:"13a5a598",4534:"c3f30717",4598:"bb3dd73d",5098:"a14d84b5",5236:"ade7e88c",5255:"c3b3193f",5787:"1b5fd720",6452:"f9ad3243",6495:"aa259cf3",6653:"282d6180",7653:"ccd8385b",7719:"c37baabb",8138:"14887373",8144:"e6e8888c",8201:"1583ad42",8533:"ea45653b",8541:"8289c7fe",8615:"a74cf3ad",8805:"39642f44",9076:"e8ca8a77",9122:"ea50ff13",9374:"9f30225f",9486:"98e46969",9492:"73c5bcd4",9884:"8f4742f4"}[t]+".js"},o.miniCssF=function(t){return"static/css/"+({187:"turboflare",945:"dashboard",1088:"player",2074:"cloud",2188:"CDN",6653:"s3-storage",8138:"profile",8201:"media",8805:"stat",9122:"AIAvatar",9492:"DNS",9884:"admin"}[t]||t)+"."+{187:"03c04a7d",375:"fc022346",446:"fc022346",594:"fc022346",735:"89e67bcc",945:"5cfd6d47",1088:"3ac8a56d",1146:"1073a6cc",1339:"e8130b33",2074:"ea4e75ec",2188:"58feb06c",2259:"a864c136",3741:"5b5f842f",4140:"8d8f374e",4466:"7350eef7",4598:"e29982b8",5098:"1bd35b42",6495:"28c60c2c",6653:"c43a5e05",8138:"d2ff356c",8201:"1ea1e2a5",8615:"edcdba7a",8805:"3f1e0f75",9076:"6c4bfa37",9122:"f9677aad",9492:"7f7ed20b",9884:"117cfc02"}[t]+".css"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},i="cdnvideo:",o.l=function(t,e,a,r){if(s[t])s[t].push(e);else{var n,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==i+a){n=u;break}}n||(c=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,o.nc&&n.setAttribute("nonce",o.nc),n.setAttribute("data-webpack",i+a),n.src=t),s[t]=[e];var m=function(e,a){n.onerror=n.onload=null,clearTimeout(p);var i=s[t];if(delete s[t],n.parentNode&&n.parentNode.removeChild(n),i&&i.forEach((function(t){return t(a)})),e)return e(a)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=m.bind(null,n.onerror),n.onload=m.bind(null,n.onload),c&&document.head.appendChild(n)}},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},o.j=3524,o.p="/",function(){if("undefined"!=typeof document){var t={3524:0};o.f.miniCss=function(e,a){t[e]?a.push(t[e]):0!==t[e]&&{187:1,375:1,446:1,594:1,735:1,945:1,1088:1,1146:1,1339:1,2074:1,2188:1,2259:1,3741:1,4140:1,4466:1,4598:1,5098:1,6495:1,6653:1,8138:1,8201:1,8615:1,8805:1,9076:1,9122:1,9492:1,9884:1}[e]&&a.push(t[e]=function(t){return new Promise((function(e,a){var s=o.miniCssF(t),i=o.p+s;if(function(t,e){for(var a=document.getElementsByTagName("link"),s=0;s<a.length;s++){var i=(n=a[s]).getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(i===t||i===e))return n}var r=document.getElementsByTagName("style");for(s=0;s<r.length;s++){var n;if((i=(n=r[s]).getAttribute("data-href"))===t||i===e)return n}}(s,i))return e();!function(t,e,a,s,i){var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",o.nc&&(r.nonce=o.nc),r.onerror=r.onload=function(a){if
1(r.onerror=r.onload=null,"load"===a.type)s();else{var n=a&&a.type,o=a&&a.target&&a.target.href||e,c=new Error("Loading CSS chunk "+t+" failed.\n("+n+": "+o+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=n,c.request=o,r.parentNode&&r.parentNode.removeChild(r),i(c)}},r.href=e,document.head.appendChild(r)}(t,i,0,e,a)}))}(e).then((function(){t[e]=0}),(function(a){throw delete t[e],a})))}}}(),function(){var t={3524:0,9308:0};o.f.j=function(e,a){var s=o.o(t,e)?t[e]:void 0;if(0!==s)if(s)a.push(s[2]);else if(9308!=e){var i=new Promise((function(a,i){s=t[e]=[a,i]}));a.push(s[2]=i);var r=o.p+o.u(e),n=new Error;o.l(r,(function(a){if(o.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var i=a&&("load"===a.type?"missing":a.type),r=a&&a.target&&a.target.src;n.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",n.name="ChunkLoadError",n.type=i,n.request=r,s[1](n)}}),"chunk-"+e,e)}else t[e]=0},o.O.j=function(e){return 0===t[e]};var e=function(e,a){var s,i,r=a[0],n=a[1],c=a[2],l=0;if(r.some((function(e){return 0!==t[e]}))){for(s in n)o.o(n,s)&&(o.m[s]=n[s]);if(c)var d=c(o)}for(e&&e(a);l<r.length;l++)i=r[l],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return o.O(d)},a=self.webpackChunkcdnvideo=self.webpackChunkcdnvideo||[];a.forEach(e.bind(null,0)),a.push=e.bind(null,a.push.bind(a))}();var c=o.O(void 0,[9308,7125,1611,8096],(function(){return o(98710)}));c=o.O(c)}();

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.