PageSourceSearch

https://hooppy.ru/_nuxt/c1ba774.js

js hooppy.ru collected 2026-10-04 00:17:20 UTC 1,235,782 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[11],[,,,function(t,e,o){"use strict";o.d(e,"k",function(){return y}),o.d(e,"m",function(){return k}),o.d(e,"l",function(){return x}),o.d(e,"e",function(){return w}),o.d(e,"b",function(){return C}),o.d(e,"s",function(){return S}),o.d(e,"g",function(){return T}),o.d(e,"h",function(){return P}),o.d(e,"d",function(){return I}),o.d(e,"r",function(){return A}),o.d(e,"j",function(){return F}),o.d(e,"t",function(){return O}),o.d(e,"o",function(){return L}),o.d(e,"q",function(){return R}),o.d(e,"f",function(){return B}),o.d(e,"c",function(){return D}),o.d(e,"i",function(){return N}),o.d(e,"p",function(){return M}),o.d(e,"a",function(){return G}),o.d(e,"v",function(){return K}),o.d(e,"n",function(){return X}),o.d(e,"u",function(){return Q});var n=o(49),r=o(11),c=o(0),l=o(41),d=(o(24),o(23),o(6),o(39),o(43),o(4),o(31),o(34),o(28),o(22),o(15),o(44),o(137),o(9),o(10),o(7),o(8),o(1),o(138),o(20),o(29),o(48),o(36),o(344),o(38),o(130),o(143),o(32),o(16)),m=o(116);function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function _(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?h(Object(o),!0).forEach(function(e){Object(c.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function f(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return v(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?v(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function v(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function y(t){d.default.config.errorHandler&&d.default.config.errorHandler(t)}function k(t){return t.then(function(t){return t.default||t})}function x(t){return t.$options&&"function"==typeof t.$options.fetch&&!t.$options.fetch.length}function w(t){var e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=f(t.$children||[]);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.$fetch&&o.push(r),r.$children&&w(r,o)}}catch(t){n.e(t)}finally{n.f()}return o}function C(t,e){if(e||!t.options.__hasNuxtData){var o=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=o,t.options.data=function(){var data=o.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),_(_({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function S(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=d.default.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function T(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t[o]).map(function(r){return e&&e.push(n),t[o][r]})}))}function P(t){return T(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"instances")}function I(t,e){return Array.prototype.concat.apply([],t.matched.map(function(t,o){return Object.keys(t.components).reduce(function(n,r){return t.components[r]?n.push(e(t.components[r],t.instances[r],t,r,o)):delete t.components[r],n},[])}))}function A(t,e){return Promise.all(I(t,function(){var t=Object(r.a)(regeneratorRuntime.mark(function t(o,n,r,c){var l,d,m;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof o||o.options){t.next=4;break}return t.prev=1,t.next=2,o();case 2:o=t.sent,t.next=4;break;case 3:if(t.prev=3,(m=t.catch(1))&&"ChunkLoadError"===m.name&&"undefined"!=typeof window&&window.sessionStorage){l=Date.now();try{(!(d=parseInt(window.sessionStorage.getItem("nuxt-reload")))||d+6e4<l)&&(window.sessionStorage.setItem("nuxt-reload",l),window.location.reload(!0))}catch(t){}}throw m;case 4:return r.components[c]=o=S(o),t.abrupt("return","function"==typeof e?e(o,n,r,c):o);case 5:case"end":return t.stop()}},t,null,[[1,3]])}
1));return function(e,o,n,r){return t.apply(this,arguments)}}()))}function F(t){return j.apply(this,arguments)}function j(){return(j=Object(r.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,A(e);case 2:return t.abrupt("return",_(_({},e),{},{meta:T(e).map(function(t,o){return _(_({},t.options.meta),(e.matched[o]||{}).meta)})}));case 3:case"end":return t.stop()}},t)}))).apply(this,arguments)}function O(t,e){return $.apply(this,arguments)}function $(){return($=Object(r.a)(regeneratorRuntime.mark(function t(e,o){var r,c,d,h;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!1,isDev:!1,isHMR:!1,app:e,store:e.store,payload:o.payload,error:o.error,base:e.router.options.base,env:{projectName:"hooppy.ru",domainURL:"https://hooppy.ru",backendURL:"https://api.hooppy.ru/api",yandexPhotosUrl:"https://uploads.hooppy2.ru/photos/",yandexVideosUrl:"https://uploads.hooppy2.ru/videos/",yandexDocumentsUrl:"https://uploads.hooppy2.ru/documents/",yandexWatermarksUrl:"https://uploads.hooppy2.ru/watermarks/",googleMapsApiKey:"AIzaSyAHrZIy9O6BJwoqqSyYBBo1ODxESDGnuw8",binaryImagesUrl:"https://urls.hooppy2.ru/binary/image",gptServiceUrl:"https://gpt.hooppy2.ru",binaryImagesUrlRus:"https://urls.hooppy.ru/binary/image",localFilesUrl:"https://files.hooppy.ru/",config:{lang:"ru",default_lang:"ru",show_auth_legal_links:!0,auth_legal_links_name:"",ru_captcha:!0,chud_gpt:!0,show_help:!0,show_help_videos:!0,source_ids:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37],source_ids_for_parsing:[1,2,6,7,8,11,13,14,17,28],source_ids_for_parsing_by_tags:[1,7],oauth_top_buttons:[2,3,4],oauth_bottom_buttons:[6,14,17],name:"hooppy.ru",logo:"hooppy",navigation:["/posts","/live","/posts-search","/cross-posting","/ai-posting","/rss-import","/team","/smart-tasks","/accounts","/notifications","/settings","/billing","/ord","/watermarks","/smart-tags","/proxies","/partnership"],show_contacts:!0,can_social_auth:!0,vk_widget:!0,vk_private:!0,vk_extended:!0,vk_clips:!1,vk_client_id:"51896902",mm_client_id:"746149",plan_type:1,plan_payment_system:"",posts_counter:!0,help_button:"",partner_param:"p",plans_enabled:!1,plans_slugs:{type_1:["vip","vip_2","vip_3","vip_4","vip_5","vip_6","vip_7"],type_2:["start","pro","vip"]},plans_names:{"hooppy.ru":{vip:"Базовый",vip_2:"Профи",vip_3:"Профи+",vip_4:"Премиум",vip_5:"Ультра",vip_6:"Максимум",vip_7:"Зверь"},"socgun.com":{start:"Start",pro:"Pro",vip:"Base",vip_2:"Pro",vip_3:"Pro+",vip_4:"Premium",vip_5:"Ultra",vip_6:"Maximum",vip_7:"Beast"},"hooppy.net":{start:"Start",pro:"Pro",vip:"Vip"},"noblesseposter.com":{start:"Start",pro:"Pro",vip:"Vip"},"socautoposter.com":{start:"Start",pro:"Base",vip:"Advanced"}}}}},o.req&&(e.context.req=o.req),o.res&&(e.context.res=o.res),o.ssrContext&&(e.context.ssrContext=o.ssrContext),e.context.redirect=function(t,path,o){if(t){e.context._redirected=!0;var r=Object(n.a)(path);if("number"==typeof t||"undefined"!==r&&"object"!==r||(o=path||{},path=t,r=Object(n.a)(path),t=302),"object"===r&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=Object(m.d)(path,o),window.location.assign(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:o,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=1,Promise.all([F(o.route),F(o.from)]);case 1:r=t.sent,c=Object(l.a)(r,2),d=c[0],h=c[1],o.route&&(e.context.route=d),o.from&&(e.context.from=h),o.error&&(e.context.error=o.error),e.context.next=o.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!1,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 2:case"end":return t.stop()}},t)}))).apply(this,arguments)}function L(t,e,o){return!t.length||e._redirected||e._errored||o&&o.aborted?Promise.resolve():R(t[0],e).then(function(){return L(t.slice(1),e,o)})}function R(t,e){var o;return(o=2===t.length?new Promise(function(o){t(e,function(t,data){t&&e.error(t),o(data=data||{})})}):t(e))&&o instanceof Promise&&"function"==typeof o.then?o:Promise.resolve(o)}function B(base,t){if("hash"===t)return window.location.hash.replace(/^#\//,"");base=decodeURI(base).slice(0,-1);var path=decodeURI(window.location.pathname);base&&path.startsWith(base)&&(path=path.slice(base.length));var e=(path||"/")+window.location.search+window.location.hash;return Object(m.c)(e)}function D(t,e){return function(t,e){for(var o=new Array(t.length),i=0;i<t.length;i++)"object"===Object(n.a)(t[i])&&(o[i]=new RegExp("^(?:"+t[i].pattern+")$",W(e)));return function(e,n){for(var path="",data=e||{},r=(n||{}).pretty?U:encodeURIComponent,c=0;c<t.length;c++){var l=t[c];if("string"!=typeof l){var d=data[l.name||"pathMatch"],m=void 0;
1if(null==d){if(l.optional){l.partial&&(path+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(Array.isArray(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(m=r(d[h]),!o[c].test(m))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(m)+"`");path+=(0===h?l.prefix:l.delimiter)+m}}else{if(m=l.asterisk?E(d):r(d),!o[c].test(m))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+m+'"');path+=l.prefix+m}}else path+=l}return path}}(function(t,e){var o,n=[],r=0,c=0,path="",l=e&&e.delimiter||"/";for(;null!=(o=V.exec(t));){var d=o[0],m=o[1],h=o.index;if(path+=t.slice(c,h),c=h+d.length,m)path+=m[1];else{var _=t[c],f=o[2],v=o[3],y=o[4],k=o[5],x=o[6],w=o[7];path&&(n.push(path),path="");var C=null!=f&&null!=_&&_!==f,S="+"===x||"*"===x,T="?"===x||"*"===x,P=o[2]||l,pattern=y||k;n.push({name:v||r++,prefix:f||"",delimiter:P,optional:T,repeat:S,partial:C,asterisk:Boolean(w),pattern:pattern?z(pattern):w?".*":"[^"+H(P)+"]+?"})}}c<t.length&&(path+=t.substr(c));path&&n.push(path);return n}(t,e),e)}function N(t,e){var o={},n=_(_({},t),e);for(var r in n)String(t[r])!==String(e[r])&&(o[r]=!0);return o}function M(t){var e;if(t.message||"string"==typeof t)e=t.message||t;else try{e=JSON.stringify(t,null,2)}catch(o){e="[".concat(t.constructor.name,"]")}return _(_({},t),{},{message:e,statusCode:t.statusCode||t.status||t.response&&t.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(t){window.onNuxtReadyCbs.push(t)};var V=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(t,e){var o=e?/[?#]/g:/[/?#]/g;return encodeURI(t).replace(o,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function E(t){return U(t,!0)}function H(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function z(t){return t.replace(/([=!:$/()])/g,"\\$1")}function W(t){return t&&t.sensitive?"":"i"}function G(t,e,o){t.$options[e]||(t.$options[e]=[]),t.$options[e].includes(o)||t.$options[e].push(o)}var K=m.b,X=(m.e,m.a);function Q(t){try{window.history.scrollRestoration=t}catch(t){}}},,,,,,,,,,,,,,,function(t,e,o){var map={"./dz.svg":488,"./dz_full.svg":459,"./dz_white.svg":436,"./fb.svg":489,"./fb_full.svg":460,"./fb_white.svg":437,"./ig.svg":490,"./ig_full.svg":461,"./ig_white.svg":430,"./in.svg":564,"./in_full.svg":462,"./in_white.svg":438,"./jm.svg":565,"./jm_full.svg":463,"./jm_white.svg":443,"./lk.svg":566,"./lk_full.svg":464,"./lk_white.svg":444,"./mm.svg":567,"./mm_full.svg":465,"./mm_white.svg":445,"./mx.svg":568,"./mx_full.svg":466,"./mx_white.svg":446,"./ok.svg":491,"./ok_full.svg":467,"./ok_white.svg":431,"./pn.svg":569,"./pn_full.svg":468,"./pn_white.svg":439,"./rd.svg":570,"./rd_full.svg":469,"./rd_white.svg":447,"./rt.svg":571,"./rt_full.svg":470,"./rt_white.svg":448,"./tb.svg":572,"./tb_full.svg":471,"./tb_white.svg":449,"./tg.svg":492,"./tg_full.svg":472,"./tg_white.svg":440,"./th.svg":573,"./th_full.svg":473,"./th_white.svg":450,"./tn.svg":574,"./tn_full.svg":474,"./tn_white.svg":451,"./tt.svg":493,"./tt_full.svg":475,"./tt_white.svg":432,"./tw.svg":494,"./tw_full.svg":476,"./tw_white.svg":441,"./vb.svg":495,"./vb_full.svg":477,"./vb_white.svg":442,"./vk.svg":496,"./vk_full.svg":478,"./vk_white.svg":433,"./wa.svg":575,"./wa_full.svg":479,"./wa_white.svg":452,"./wb.svg":576,"./wb_full.svg":480,"./wb_white.svg":453,"./wc.svg":577,"./wc_full.svg":481,"./wc_white.svg":454,"./wp.svg":578,"./wp_full.svg":482,"./wp_white.svg":455,"./yp.svg":579,"./yp_full.svg":483,"./yp_white.svg":456,"./yr.svg":580,"./yr_full.svg":484,"./yr_white.svg":457,"./yt.svg":581,"./yt_full.svg":485,"./yt_white.svg":434};function n(t){var e=r(t);return o(e)}function r(t){if(!o.o(map,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return map[t]}n.keys=function(){return Object.keys(map)},n.resolve=r,t.exports=n,n.id=18},,,,,,,,,,,,,,,function(t,e,o){"use strict";o.r(e);o(34);var n={props:{title:{type:String,default:"Заголовок окна"},closeBtnDisabled:{type:Boolean,default:!1},closeBtnClass:{type:String,default:"btn-primary"}},computed:{closeBtnClassComputed:function(){var t=[this.closeBtnClass];return this.closeBtnDisabled&&t.push("disabled"),t.join(" ")}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex align-items-center justify-content-between"},[e("h5",{staticClass:"m-0"},[t._v("\n    "+t._s(t.title)+"\n  ")]),t._v(" "),e("button",{staticClass:"btn",class:t.closeBtnClassComputed,on:{click:function(e){return t.$emit("close-form")}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])},[],!1,null,null,null);e.default=component.exports},,,,,,,,,,,,,function(t,e,o){"use strict";var n={components:{FormInput:o(87).a},model:{prop:"value",event:"input"},props:["type","id","label","labelIcon","labelTip","labelPrefix","labelPostfix","value","disabled","readonly","placeholder","formGroupClass","inputClass","notRequired","btnNameToAppend"],computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{keypress:function(t){this.$emit("keypress",t)},focus:function(){this.$refs[this.id].focus()}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",{class:t.formGroupClass?t.formGroupClass:"mb-3"},[t.label?e("label",{staticClass:"d-flex align-items-center form-label",attrs:{for:t.id}},[e("span",[t._v(t._s(t.label)),t.labelIcon?e("fa",{staticClass:"ms-2 small",attrs:{icon:t.labelIcon}}):t._e()],1),t._v(" "),t.notRequired?e("span",{staticClass:"text-secondary ms-2"},[t._v("Необязательно")]):t._e(),t._v(" "),t.labelTip?e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.labelTip,expression:"labelTip",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 text-info",attrs:{icon:["fas","question-circle"]}}):t._e()],1):t._e(),t._v(" "),e("div",{class:{"d-flex align-items-center":t.labelPrefix||t.labelPostfix}},[t.labelPrefix?e("div",{staticClass:"me-2 text-secondary small"},[t._v("\n      "+t._s(t.labelPrefix)+"\n    ")]):t._e(),t._v(" "),e("div",{class:{"
1input-group":t.btnNameToAppend}},[e("FormInput",{ref:t.id,attrs:{type:t.type?t.type:"text","input-class":(t.inputClass,t.inputClass),id:t.id,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder?t.placeholder:""},on:{keypress:t.keypress},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}}),t._v(" "),t.btnNameToAppend?e("div",{staticClass:"btn btn-secondary btn-sm",on:{click:function(e){return t.$emit("btn-to-append-click")}}},[t._v("\n        "+t._s(t.btnNameToAppend)+"\n      ")]):t._e()],1),t._v(" "),t.labelPostfix?e("div",{staticClass:"ms-2 text-secondary small"},[t._v("\n      "+t._s(t.labelPostfix)+"\n    ")]):t._e()])])},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(15);var n={components:{FormRadioButtons:o(164).default},model:{prop:"value",event:"change"},props:["label","labelIcon","labelTip","labelPostfix","inputTip","name","items","value","labelClass","customButtonsClass","disabled","mainClass","isPlansButtons"],computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",{class:t.mainClass?t.mainClass:"mb-3"},[t.label?e("label",{staticClass:"d-flex align-items-center form-label",class:[t.labelClass?t.labelClass:""]},[t._v("\n    "+t._s(t.label)+"\n    "),t.labelTip?e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.labelTip,expression:"labelTip",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 text-info",attrs:{icon:["fas","question-circle"]}}):t._e()],1):t._e(),t._v(" "),e("div",{class:{"d-flex align-items-center":t.labelPostfix}},[e("FormRadioButtons",{attrs:{name:t.name,items:t.items,"custom-class":t.customButtonsClass,disabled:t.disabled,"is-plans-buttons":t.isPlansButtons},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}}),t._v(" "),t.labelPostfix?e("div",{staticClass:"ms-2 text-secondary"},[t._v("\n      "+t._s(t.labelPostfix)+"\n    ")]):t._e()],1),t._v(" "),t.inputTip?e("div",{staticClass:"mt-2 small text-dark p-2 rounded-2 bg-warning",domProps:{innerHTML:t._s(t.inputTip)}}):t._e()])},[],!1,null,null,null);e.a=component.exports},,,,function(t,e,o){"use strict";o.r(e);o(4),o(28),o(15),o(1),o(32),o(6),o(39),o(43),o(44),o(22),o(20),o(29),o(36),o(40);function n(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return r(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,c=function(){};return{s:c,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw l}}}}function r(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var c={model:{prop:"value",event:"change"},props:["name","items","value","disabled","noItemsText","placeholder"],computed:{currentValue:{get:function(){return this.isValueExists?this.value:0},set:function(t){this.$emit("change",t)}},placeholderComputed:function(){return this.disabled&&this.noItemsText||!this.placeholder?this.noItemsText:this.placeholder?this.placeholder:"--"},isValueExists:function(){var t,e=!1,o=n(this.items);try{for(o.s();!(t=o.n()).done;){var r=t.value;if(r.values){var c,l=n(r.values);try{for(l.s();!(c=l.n()).done;){if(c.value.id===this.value){e=!0;break}}}catch(t){l.e(t)}finally{l.f()}}else if(r.id===this.value){e=!0;break}if(e)break}}catch(t){o.e(t)}finally{o.f()}return e}},watch:{currentValue:function(){this.checkCurrentValue()}},mounted:function(){var t=this;setTimeout(function(){t.checkCurrentValue()},0)},methods:{checkCurrentValue:function(){this.value&&!this.isValueExists&&this.items.length&&(this.items[0].values?this.currentValue=this.items[0].values[0].id:this.currentValue=this.items[0].id)}}},l=o(5),component=Object(l.a)(c,function(){var t=this,e=t._self._c;return e("select",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"form-select form-select-sm rounded",class:{"no-items-selected":!t.currentValue},attrs:{name:t.name,disabled:!!t.disabled},on:{change:function(e){var o=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.currentValue=e.target.multiple?o:o[0]}}},[t._l(t.items,function(o,i){return t._t("default",function(){return[o.values?e("optgroup",{key:i,attrs:{label:o.name}},t._l(o.values,function(option,i){return e("option",{key:i,domProps:{value:option.id}},[t._v("\n        "+t._s(option.value)+"\n      ")])}),0):e("option",{key:i,attrs:{disabled:o.disabled},domProps:{value:o.id}},[t._v("\n      "+t._s(!o.id&&t.placeholder?t.placeholder:o.value)+"\n    ")])]})}),t._v(" "),t.items.length||!t.noItemsText&&!t.placeholder?t._e():e("option",{attrs:{value:"
10"}},[t._v("\n    "+t._s(t.placeholderComputed)+"\n  ")])],2)},[],!1,null,null,null);e.default=component.exports},,,,,function(t,e,o){"use strict";o(15);var n={components:{FormSelect:o(51).default},model:{prop:"value",event:"change"},props:["label","name","items","value","noItemsText","disabled","notRequired","labelTip","labelPostfix","formGroupClass","w50"],computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",{class:t.formGroupClass?t.formGroupClass:"mb-3"},[t.label?e("label",{staticClass:"d-flex align-items-center form-label"},[e("span",[t._v(t._s(t.label))]),t._v(" "),t.notRequired?e("span",{staticClass:"text-secondary ms-2"},[t._v("\n      "+t._s(t.$t("common").not_required)+"\n    ")]):t._e(),t._v(" "),t.labelTip?e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.labelTip,expression:"labelTip",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 text-info",attrs:{icon:["fas","question-circle"]}}):t._e()],1):t._e(),t._v(" "),e("div",{staticClass:"row",class:{"mx-0":t.w50}},[e("div",{class:{"col-6 ps-0 pe-1":t.w50}},[e("FormSelect",{attrs:{name:t.name,items:t.items,disabled:t.disabled||!t.items.length,"no-items-text":t.noItemsText?t.noItemsText:""},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}})],1),t._v(" "),t.labelPostfix?e("div",{staticClass:"col-auto ps-1 pe-0 text-secondary"},[t._v("\n      "+t._s(t.labelPostfix)+"\n    ")]):t._e()])])},[],!1,null,null,null);e.a=component.exports},,,,function(t,e,o){"use strict";var n=o(11);o(1),o(40),o(24);e.a={data:function(){return{itemsRequestTimeout:null,itemsCancelRequestSource:null,itemFormRequestTimeout:null,itemFormCancelRequestSource:null}},destroyed:function(){this.itemsCancelTokenAndRequestTimeoutCleanup()},methods:{itemsCancelTokenAndRequestTimeoutCleanup:function(){this.itemsRequestTimeout&&clearTimeout(this.itemsRequestTimeout),this.itemFormRequestTimeout&&clearTimeout(this.itemFormRequestTimeout),this.itemsCancelRequestSource&&this.itemsCancelRequestSource.cancel("Request canceled."),this.itemFormCancelRequestSource&&this.itemFormCancelRequestSource.cancel("Request canceled.")},getItemsRequest:function(t,e,o){var r=this;return Object(n.a)(regeneratorRuntime.mark(function n(){var c,l;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return(c={params:e}).cancelToken=r.itemsCancelRequestSource.token,n.next=1,r.$axios.get(t,c).catch(function(t){r.bvToast("danger",r.getRequestErrorText(t.response))});case 1:if(!((l=n.sent)&&l.data&&l.data.list)){n.next=2;break}return n.next=2,r.$store.dispatch("items/index/setListFromResponse",l);case 2:o&&"function"==typeof o&&o(l);case 3:case"end":return n.stop()}},n)}))()},getItems:function(t,e,o){var r=this;return Object(n.a)(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:0,r.itemsCancelTokenAndRequestTimeoutCleanup(),r.itemsRequestTimeout=setTimeout(function(){r.itemsCancelRequestSource=r.$axios.CancelToken.source(),r.getItemsRequest(t,e,o)},100),n.next=2;break;case 1:return n.next=2,r.getItemsRequest(t,e,o);case 2:case"end":return n.stop()}},n)}))()},createItem:function(t,data,e,o,n){var r=this;this.toggleLoading(!0),this.$axios.post(t,data).then(function(t){r.toggleLoading(!1),r.bvToast("success",e),o&&"function"==typeof o&&o(t)}).catch(function(t){r.toggleLoading(!1),n&&"function"==typeof n?n(t):r.bvToast("danger",r.getRequestErrorText(t.response))}).finally(function(){})},updateItem:function(t,data,e,o,n){var r=this;this.toggleLoading(!0),this.$axios.put(t,data).then(function(t){r.toggleLoading(!1),e&&r.bvToast("success",e),o&&"function"==typeof o&&o(t)}).catch(function(t){r.toggleLoading(!1),n&&"function"==typeof n?n(t):r.bvToast("danger",r.getRequestErrorText(t.response))}).finally(function(){})},deleteItem:function(t,data,e,o){var n=this;this.bvModal(e,function(e){e&&(n.toggleLoading(!0),n.$axios.delete(t,{data:data}).then(function(t){o&&"function"==typeof o&&o(t)}).catch(function(t){n.bvToast("danger",n.getRequestErrorText(t.response))}).finally(function(){n.toggleLoading(!1)}))})},updateItemWithWarn:function(t,data,e,o,n,r){var c=this;this.bvModal(e,function(e){e&&c.updateItem(t,data,o,n,r)})},loadItemFormDataRequest:function(t,e,o){var n=this;this.$axios.get(t,{cancelToken:this.itemFormCancelRequestSource.token}).then(function(t){e&&"function"==typeof e&&e(t)}).catch(function(t){n.bvToast("danger",n.getRequestErrorText(t.response)),o&&"function"==typeof o&&o(t)}).finally(function(){n.toggleLoading(!1)})},loadItemFormData:function(t,e,o){var n=this;(!(arguments.length>3&&void 0!==arguments[3])||arguments[3])&&this.toggleLoading(!0),this.itemsCancelTokenAnd
1RequestTimeoutCleanup(),this.itemFormRequestTimeout=setTimeout(function(){n.itemFormCancelRequestSource=n.$axios.CancelToken.source(),n.loadItemFormDataRequest(t,e,o)},10)}}}},,function(t,e,o){"use strict";o(6),o(39),o(43),o(4),o(44),o(22),o(15),o(1),o(20),o(29),o(36),o(38),o(32);function n(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return r(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,c=function(){};return{s:c,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw l}}}}function r(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}e.a={methods:{snakeCaseToCamel:function(t){return t.toString().toLowerCase().replace(/([-_][a-z])/g,function(t){return t.toUpperCase().replace("-","").replace("_","")})},filterPages:function(t,e){var o=function(o){t[o]=t[o].filter(function(t){var r=!1;for(var i in e)if(parseInt(e[i].account.source_id)===parseInt(o)){var c,l=n(e[i].pages);try{for(l.s();!(c=l.n()).done;){var d=c.value;if(parseInt(d.id)===parseInt(t)){r=!0;break}}}catch(t){l.e(t)}finally{l.f()}if(r)break}return r})};for(var r in t)o(r);return t},filterAlbumsPages:function(t,e){var o=function(o){t[o]=t[o].filter(function(t){var n=!1;for(var i in e)if(parseInt(e[i].account.source_id)===parseInt(o)&&parseInt(e[i].page.id)===parseInt(t.page_id)){n=!0;break}return n})};for(var n in t)o(n);return t}}}},,,,,function(t,e,o){"use strict";
1var n=o(33),r={mixins:[o(291).a],components:{FormModalHeader:n.default},props:["title","blogUrl","videoUrl","isInForm","helpId"],methods:{showTipForm:function(){this.$refs["tip-modal"].show()},closeTipForm:function(){this.$refs["tip-modal"].hide()}}},c=o(5),component=Object(c.a)(r,function(){var t=this,e=t._self._c;return t.config.show_help?e("div",{class:{"ms-sm-3":!t.isInForm,"ms-0":t.isInForm}},[e("div",{staticClass:"d-flex justify-content-center"},[t.helpId?e("div",{staticClass:"btn btn-link link-primary btn-sm px-0",on:{click:function(e){return e.preventDefault(),t.openHelp(t.helpId)}}},[e("fa",{attrs:{icon:["fas","question-circle"]}}),t._v("\n      "+t._s(t.$t("help").info)+"\n    ")],1):t.blogUrl&&"ru"===t.$i18n.locale?e("a",{staticClass:"btn btn-link link-primary btn-sm px-0",attrs:{href:t.blogUrl,target:"_blank"}},[e("fa",{attrs:{icon:["fas","up-right-from-square"]}}),t._v("\n      "+t._s(t.$t("help").info)+"\n    ")],1):[t.title?e("div",{staticClass:"btn btn-link link-primary btn-sm px-0",on:{click:function(e){return e.preventDefault(),t.showTipForm.apply(null,arguments)}}},[e("fa",{attrs:{icon:["fas","question-circle"]}}),t._v("\n        "+t._s(t.$t("help").info)+"\n      ")],1):t._e(),t._v(" "),t.videoUrl&&t.config.show_help_videos?e("a",{staticClass:"btn btn-link link-danger btn-sm px-0",class:{"ms-3":t.title},attrs:{href:t.videoUrl,target:"_blank"}},[e("fa",{attrs:{icon:["fas","play"]}}),t._v("\n        "+t._s(t.$t("help").video)+"\n      ")],1):t._e()]],2),t._v(" "),e("b-modal",{ref:"tip-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.title},on:{"close-form":t.closeTipForm}})]},proxy:!0}],null,!1,2303278676)},[t._v(" "),t._t("default"),t._v(" "),e("div",{staticClass:"modal-footer border-0 d-flex justify-content-end mt-3 ms-n3 me-n3 mb-n3 px-3 py-3 d-flex justify-content-end bg-light form-footer-buttons"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.closeTipForm.apply(null,arguments)}}},[t._v("\n        "+t._s(t.$t("help").close)+"\n      ")])])],2)],1):t._e()},[],!1,null,null,null);e.a=component.exports},,function(t,e,o){"use strict";o(40);var n={model:{prop:"value",event:"input"},props:["id","label","labelTip","tip","value","disabled","readonly","placeholder","formGroupClass","textareaClass","needToRedraw"],data:function(){return{textareaKey:1,localValue:this.value,initDone:!1}},mounted:function(){var t=this;this.needToRedraw?this.$nextTick(function(){setTimeout(function(){t.textareaKey++,t.setWatchers()},150)}):this.setWatchers()},methods:{setWatchers:function(){var t=this;this.$watch("value",function(e){t.localValue=e})},updateText:function(text){this.$emit("input",text)},focus:function(){this.$refs[this.id].$el.focus()}}},r=o(5),component=Object(r.a)(n,function(){var t,e,o=this,n=o._self._c;return n("div",{class:(o.formGroupClass,o.formGroupClass)},[o.label?n("label",{staticClass:"d-flex align-items-center form-label",class:{"mb-1":o.tip,"mb-2":!o.tip},attrs:{for:o.id}},[n("span",[o._v(o._s(o.label))]),o._v(" "),o.labelTip?n("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:o.labelTip,expression:"labelTip",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 text-info",attrs:{icon:["fas","question-circle"]}}):o._e()],1):o._e(),o._v(" "),o.tip?n("div",{staticClass:"small text-secondary mb-2"},[o._v("\n    "+o._s(o.tip)+"\n  ")]):o._e(),o._v(" "),n("textarea-autosize",{key:o.textareaKey,ref:null!==(t=o.id)&&void 0!==t?t:"",staticClass:"form-control",class:o.textareaClass?o.textareaClass:"",attrs:{id:null!==(e=o.id)&&void 0!==e?e:"",placeholder:o.placeholder?o.placeholder:"",value:!o.needToRedraw||o.textareaKey>1?o.localValue:"","min-height":30,"max-height":398,disabled:o.disabled,readonly:o.readonly},on:{input:function(t){return o.updateText(t)}}})],1)},[],!1,null,null,null);e.a=component.exports},,,function(t,e,o){"use strict";var n=o(49);e.a={methods:{rebuildForSelect:function(t){var e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",c=[];if(t.length)for(var i in r&&c.push({id:0,value:r}),t){var l;
1if("object"===Object(n.a)(o)){for(var d in o)if(t[i][o[d]]){e=t[i][o[d]];break}}else e=t[i][o];c.push({id:t[i].id,value:e,disabled:null!==(l=t[i].disabled)&&void 0!==l&&l})}return c}}}},function(t,e,o){"use strict";var n=o(54);o(6),o(39),o(43),o(23),o(4),o(44),o(31),o(22),o(15),o(8),o(1),o(20),o(29),o(355),o(48),o(36),o(357),o(358),o(359),o(360),o(361),o(362),o(363),o(364),o(365),o(366),o(367),o(368),o(369),o(370),o(371),o(372),o(32);function r(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return c(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw l}}}}function c(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}e.a={computed:{unusedSourcesIds:function(){return this.$store.getters["socialNetworksSettings/unusedSourcesIds"]}},methods:{socialNetworkName:function(t,e){var o,n=r(t);try{for(n.s();!(o=n.n()).done;){var c=o.value;if(c.source_id===parseInt(e))return c.name}}catch(t){n.e(t)}finally{n.f()}return""},buildSocialNetworksValuesForSelect:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];return t.length&&(e||o.push({id:0,value:"Все соц. сети"}),o=o.concat(t)),o},buildSourceResourcesOwnersValuesForSelect:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];if(t.length)for(var i in e||o.push({id:0,value:"Все страницы"}),t)o.push({id:t[i].id,value:t[i].social_owner_name?t[i].social_owner_name:t[i].social_owner_alias});return o},buildSourceResourcesValuesForSelect:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];if(t.length)for(var i in e||o.push({id:0,value:"Все источники"}),t)o.push({id:t[i].id,value:t[i].name});return o},buildAccountsValuesForSelect:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];return t.length&&(e||o.push({id:0,value:"Все аккаунты"}),o=o.concat(this.buildAccountsValues(t))),o},buildAccountsValues:function(t){var e=[];for(var i in t)e.push({id:t[i].id,value:this.getExactAccountName(t[i],"social_account_name","social_account_alias")});return e},buildPagesValuesForSelect:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[];return e.length&&(o||n.push({id:0,value:"Все страницы"}),n=n.concat(this.buildPagesValues(t,e))),n},buildPagesValues:function(t,e){var optgroup,o=[];for(var i in e)if([4,7,9].includes(parseInt(t)))for(var n in e[i].pages)o.push({id:e[i].pages[n].id,value:e[i].pages[n].name});else{for(var r in optgroup={name:e[i].account.name,values:[]},e[i].pages)optgroup.values.push({id:e[i].pages[r].id,value:e[i].pages[r].name});o.push(optgroup)}return o},getExactAccountName:function(t,e,o){return[7].indexOf(t.source_id)>=0?t[o]:t[e]?t[e]:t[o]},getSocialNetworkInfo:function(t){var e,o,n;return{name:t.name,tip_name:t.tip_name,form_tip_name:t.form_tip_name,source_id:t.source_id,icon:t.icon,icon_white:t.icon_white,color:t.color,filter:t.filter,content_required:null!==(e=t.content_required)&&void 0!==e?e:[],text_limit:null!==(o=t.text_limit)&&void 0!==o?o:0,text_with_media_limit:null!==(n=t.text_with_media_limit)&&void 0!==n?n:0,checked:t.checked,disabled:t.disabled,hidden:t.hidden,have_photo_albums:t.have_photo_albums}},getSocialNetworkBySourceId:function(t,e){for(var o in t)if(t[o].source_id===e)return t[o]},getSelectedPagesBySourceIds:function(t,e){var o={};for(var i in t)t[i].checked&&!this.unusedSourcesIds.includes(parseInt(t[i].source_id))&&e[t[i].source_id]&&e[t[i].source_id].length&&(o[t[i].source_id]=e[t[i].source_id]);return o},initSocialNetworksDisabledState:function(){for(var i in this.socialNetworks)for(var t in this.socialNetworks[i].disabled=!0,this.socialPagesByAccounts)if(parseInt(this.socialNetworks[i].source_id)===parseInt(this.socialPagesByAccounts[t].account.source_id)){this.socialNetworks[i].disabled=!1;break}},initSocialNetworksCheckedState:function(){var t=[];this.formState.selectedPagesBySourceIds&&Object.keys(this.formState.selectedPagesBySourceIds).length&&(t=Object.keys(this.formState.selectedPagesBySourceIds)),this.formState.selectedAlbumsBySourceIds&&Object.keys(this.formState.selectedAlbumsBySourceIds).length&&(t=t.concat(Object.keys(this.formState.selectedAlbumsBySourceIds)));var e,o=r(t=Object(n.a)(new Set(t)));try{for(o.s();!(e=o.n()).done;){var c=e.value;for(var i in this.socialNetworks)if(parseInt(this.socialNetworks[i].source_id)===parseInt(c)){this.socialNetworks[i].checked=!0;break}}}catch(t){o.e(t)}finally{o.f()}},updateNetworks:function(t){var e=this,o=0;for(var i in t)for(var n in this.socialNetworks)if(t[i].source_id===this.socialNetworks[n].source_id){this.socialNetworks[n].checked!==t[i].checked&&t[i].checked&&(o=t[i].source_id),this.socialNetworks[n].checked=t[i].checked;break}o&&this.formState&&this.$nextTick(function(){e.formState.selectedPagesBySourceIds&&e.formState.selectedPagesBySourceIds[o]&&e.formState.selectedPagesBySourceIds[o].length?e.scrollToNetworkPages(o):e.showNetworkPagesMo
1dal(o)})},showNetworkPagesModal:function(t){this.$refs["pages-by-source-id-"+t]&&this.$refs["pages-by-source-id-"+t].length&&this.$refs["pages-by-source-id-"+t][0].openPagesModal()},scrollToNetworkPages:function(t){if(this.$refs["pages-by-source-id-"+t]&&this.$refs["pages-by-source-id-"+t].length){var e=this.$refs["pages-by-source-id-"+t][0];if(e.$el.getBoundingClientRect().top+e.$el.offsetHeight+16>window.innerHeight){var o=e.$el.getBoundingClientRect().top+e.$el.offsetHeight+16-window.innerHeight;if(this.isInPopup){var n=document.getElementById("edit-modal");n&&(n.scrollTop=n.scrollTop+o)}else window.scroll(0,window.scrollY+o)}}},updateNetworkSelectedPages:function(t,e){for(var i in this.socialNetworks)if(this.socialNetworks[i].source_id===t){this.socialNetworks[i].selected_pages_ids=e;break}}}}},,,,,,,,,,,function(t,e,o){"use strict";var n={props:["id","disabled","isInPopup"],computed:{footerFormButtonsClass:function(){return this.isInPopup?["mt-3 ms-n3 me-n3 mb-n3 px-3 py-3 d-flex bg-light form-footer-buttons"]:["mt-4"]}},methods:{buttonClick:function(t){this.disabled||this.$emit(t+"-item")}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between",class:t.footerFormButtonsClass},[e("div",{staticClass:"d-flex"},[t._t("default")],2),t._v(" "),e("div",{staticClass:"d-flex"},[t.id?e("button",{staticClass:"btn btn-light btn-sm me-2",class:{disabled:t.disabled},attrs:{type:"button"},on:{click:function(e){return t.buttonClick("delete")}}},[t._v("\n      "+t._s(this.$t("form").delete_button)+"\n    ")]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-success btn-sm",class:{disabled:t.disabled},attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.buttonClick("save")}}},[t.id?[t._v(t._s(this.$t("form").save_button))]:[t._v(t._s(this.$t("form").create_button))]],2)])])},[],!1,null,null,null);e.a=component.exports},,,function(t,e,o){"use strict";o(23),o(22);var n={model:{prop:"value",event:"input"},props:["id","type","value","disabled","placeholder","readonly","inputClass"],computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{keypress:function(t){this.$emit("keypress",t)},focus:function(){this.$refs[this.id].focus()}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return"checkbox"===(t.type?t.type:"text")?e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:t.id,staticClass:"form-control form-control-sm",class:(t.inputClass,t.inputClass),attrs:{id:t.id,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder?t.placeholder:"",autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(t.currentValue)?t._i(t.currentValue,null)>-1:t.currentValue},on:{keyup:t.keypress,change:function(e){var o=t.currentValue,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.currentValue=o.concat([null])):c>-1&&(t.currentValue=o.slice(0,c).concat(o.slice(c+1)))}else t.currentValue=r}}}):"radio"===(t.type?t.type:"text")?e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:t.id,staticClass:"form-control form-control-sm",class:(t.inputClass,t.inputClass),attrs:{id:t.id,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder?t.placeholder:"",autocomplete:"off",type:"radio"},domProps:{checked:t._q(t.currentValue,null)},on:{keyup:t.keypress,change:function(e){t.currentValue=null}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:t.id,staticClass:"form-control form-control-sm",class:(t.inputClass,t.inputClass),attrs:{id:t.id,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder?t.placeholder:"",autocomplete:"off",type:t.type?t.type:"text"},domProps:{value:t.currentValue},on:{keyup:t.keypress,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}})},[],!1,null,null,null);e.a=component.exports},,function(t){t.exports=JSON.parse('{"data":[{"name":"ВКонтакте","tip_name":"","form_tip_name":"","tip_description":"","help":"","slug":"vkontakte","source_id":1,"icon":"vk","icon_white":"vk_white","icon_full":"vk_full","color":"0077FF","filter":"invert(45%) sepia(72%) saturate(6292%) hue-rotate(201deg) brightness(100%) contrast(108%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":true,"have_photo_albums":true,"content_required":["text","photo","video","vk_video","document","link","repost","poll"],"can_connect":true,"connect_link":{"type":"external","value":"https://oauth.vk.ru/authorize","params":{"client_id":"7793118","display":"page","response_type":"code","v":"5.199"},"scope":"1515604","basic_scope":"1515604","pages_scope":"wall manage docs stories photos"},"hidden":false},{"name":"ВКонтакте","tip_name":"","form_tip_name":"","tip_description":"","help":"","slug":"vkontakte","source_id":12,"icon":"vk","icon_white":"vk_white","icon_full":"vk_full","color":"0077FF","filter":"invert(34%) sepia(87%) saturate(3912%) hue-rotate(202deg) brightness(101%) contrast(100%)","checked":false,"disabled":false,"can_publishing":false,"need_account_for_parsing":false,"have_photo_albums":false,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/vkontakte"},"hidden":false},{"name":"ВК Чаты","tip_name":"","form_tip_name":"","tip_description":"","help":"Подключение чатов для групп ВКонтакте","slug":"vkontakte","source_id":35,"icon":"vk","icon_white":"vk_white","icon_full":"vk_full","color":"000000","filter":"invert(6%) sepia(15%) saturate(1629%) hue-rotate(184deg) brightness(98%) contrast(89%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","document","link","repost"],"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/vkontakte/chat"},"hidden":false},{"name":"Max","tip_name":"- Подключение каналов","form_tip_name":"Каналы","tip_description":"Публикация постов","help":"Подключение каналов и групп с помощью бота или аккаунта","slug":"max","source_id":33,"icon":"mx","icon_white":"mx_white","icon_full":"mx_full","color":"181d85","filter":"invert(10%) sepia(58%) saturate(5244%) hue-rotate(233deg) brightness(97%) contrast(93%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":true,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link"],"text_limit":5000,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/max"},"hidden":false},{"name":"Max","tip_name":"- Подключение аккаунтов","form_tip_name":"Аккаунты","tip_description":"Поиск постов и Кросс-постинг","help":"Для работы с Поиском постов, Кросс-постингом и публикации в Max от имени аккаунта","slug":"max","source_id":28,"icon":"mx","icon_white":"mx_white","icon_full":"mx_full","color":"181d85","filter":"invert(10%) sepia(58%) saturate(5244%) hue-rotate(233deg) brightness(97%) contrast(93%)","checked":false,"disabled":false,"can_publishing":false,"need_account_for_parsing":true,"have_photo_albums":false,"content_required":["text","photo","video","link"],"text_limit":5000,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/max/parsing"},"hidden":false},{"name":"Facebook","tip_name":"","form_tip_name":"","tip_description":"","slug":"facebook","source_id":3,"icon":"fb","icon_white":"fb_white","icon_full":"fb_full","color":"4267B2","filter":"invert(29%) sepia(7%) saturate(6339%) hue-rotate(187deg) brightness(101%) contrast(79%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link"],"text_limit":10000,"can_connect":true,"connect_link":{"type":"external","value":"https://www.facebook.com/dialog/oauth","params":{"client_id":"1594740094079562","response_type":"code"},"scope":"email,pages_read_engagement,pages_manage_engagement,business_management,pages_read_user_content,instagram_basic,instagram_content_publish,instagram_manage_comments,pages_show_list,pages_manage_posts","basic_scope":"email,pages_read_engagement,pages_manage_engagement,business_management,pages_read_user_content,instagram_basic,instagram_content_publish,instagram_manage_comments,pages_show_list,pages_manage_posts"},"hidden":false},{"name":"Мой Мир","tip_name":"","form_tip_name":"","tip_description":"","slug":"mailru","source_id":5,"icon":"mm","icon_white":"mm_white","icon_full":"mm_full","color":"2166a9","filter":"invert(38%
1) sepia(20%) saturate(2707%) hue-rotate(177deg) brightness(84%) contrast(94%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","link"],"text_limit":10000,"can_connect":true,"connect_link":{"type":"external","value":"https://connect.mail.ru/oauth/authorize","params":{"client_id":"746149","response_type":"code"},"scope":"photos stream messages guestbook events","basic_scope":"photos stream messages guestbook events"},"hidden":false},{"name":"LinkedIn","tip_name":"","form_tip_name":"","tip_description":"","slug":"linkedin","source_id":18,"icon":"in","icon_white":"in_white","icon_full":"in_full","color":"0077B5","filter":"invert(23%) sepia(77%) saturate(2670%) hue-rotate(183deg) brightness(99%) contrast(101%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link"],"text_limit":10000,"can_connect":true,"connect_link":{"type":"external","value":"https://www.linkedin.com/oauth/v2/authorization","params":{"client_id":"86tsak6e9u4kzr","response_type":"code"},"scope":"r_emailaddress r_liteprofile w_member_social","basic_scope":"r_emailaddress r_liteprofile w_member_social"},"hidden":false},{"name":"Telegram","tip_name":"- Подключение каналов","form_tip_name":"Каналы","tip_description":"Публикация постов","help":"Подключение каналов и групп с помощью ботов","slug":"telegram","source_id":9,"icon":"tg","icon_white":"tg_white","icon_full":"tg_full","color":"0088cc","filter":"invert(32%) sepia(97%) saturate(2361%) hue-rotate(179deg) brightness(96%) contrast(101%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","document","link","repost","poll"],"text_limit":4096,"text_with_media_limit":1024,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/telegram"},"hidden":false},{"name":"Telegram","tip_name":"- Подключение аккаунтов","form_tip_name":"Аккаунты","tip_description":"Поиск постов и Кросс-постинг","help":"Для работы с Поиском постов, Кросс-постингом и продвинутых постов в Телеграм","slug":"telegram","source_id":11,"icon":"tg","icon_white":"tg_white","icon_full":"tg_full","color":"0088cc","filter":"invert(32%) sepia(97%) saturate(2361%) hue-rotate(179deg) brightness(96%) contrast(101%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":true,"have_photo_albums":false,"content_required":["photo","video","vk_video"],"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/telegram/parsing"},"hidden":false},{"name":"Yappy","tip_name":"","form_tip_name":"","tip_description":"Экспериментальная версия","help":"Работает в бета-режиме. Некоторые функции могут не работать или работать нестабильно.","slug":"yappy","source_id":32,"icon":"yp","icon_white":"yp_white","icon_full":"yp_full","color":"00e2b8","filter":"invert(70%) sepia(82%) saturate(2256%) hue-rotate(119deg) brightness(98%) contrast(101%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["video","vk_video"],"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/yappy"},"hidden":false},{"name":"WhatsApp","tip_name":"","form_tip_name":"","tip_description":"","slug":"whatsapp","source_id":22,"icon":"wa","icon_white":"wa_white","icon_full":"wa_full","color":"25D366","filter":"invert(88%) sepia(23%) saturate(1619%) hue-rotate(72deg) brightness(88%) contrast(86%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","link"],"text_limit":5000,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/whatsapp"},"hidden":false},{"name":"Одноклассники","tip_name":"","form_tip_name":"","tip_description":"","slug":"odnoklassniki","source_id":2,"icon":"ok","icon_white":"ok_white","icon_full":"ok_full","color":"fe7701","filter":"invert(75%) sepia(69%) saturate(4871%) hue-rotate(346deg) brightness(92%) contrast(82%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":true,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link","repost","poll"],"text_limit":10000,"can_connect":true,"connect_link":{"type":"external","value":"https://connect.ok.ru/oauth/authorize","params":{"client_id":"1130701056","response_type":"code"},"scope":"GROUP_CONTENT;PHOTO_CONTENT;VIDEO_CONTENT;SET_STATUS;VALUABLE_ACCESS;PUBLISH_TO_STREAM;MESSAGING;LONG_ACCESS_TOKEN;PUBLISH_NOTE","basic_scope":"GROUP_CONTENT;PHOTO_CONTENT;VIDEO_CONTENT;SET_STATUS;VALUABLE_ACCESS;PUBLISH_TO_STREAM;MESSAGING;LONG_ACCESS_TOKEN;PUBLISH_NOTE"},"hidden":false},{"name":"TenChat","tip_name":"","form_tip_name":"","tip_description":"Экспериментальная версия","help":"Работает в бета-режиме. Некоторые функции могут не работать или работать нестабильно.","slug":"tenchat","source_id":30,"icon":"tn","icon_white":"tn_white","icon_full":"tn_full","color":"fd3235","filter":"invert(23%) sepia(55%) saturate(4262%) hue-rotate(344deg) brightness(109%) contrast(99%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video"],"can_connect":false,"connect_link":{"type":"internal","value":"/accounts/connect/tenchat"},"hidden":false},{"name":"YouTube","tip_name":"","form_tip_name":"","tip_description":"","slug":"youtube","source_id":17,"icon":"yt","icon_white":"yt_white","icon_full":"yt_full","color":"FF0000","filter":"invert(12%) sepia(62%) saturate(6991%) hue-rotate(358deg) brightness(113%) contrast(118%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":true,"have_photo_albums":false,"content_required":["video","vk_video"],"text_limit":5000,"can_connect":true,"connect_link":{"type":"external","value":"https://accounts.google.com/o/oauth2/v2/auth","params":{"client_id":"630003530054-uv82devdqm6k5ovec6dbdq6tvnoujnas.apps.googleusercontent.com","response_type":"code","access_type":"offline","prompt":"consent"},"scope":"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/youtube.readonly https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/youtube.force-ssl","basic_scope":"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/youtube.readonly"},"hidden":false},{"name":"Pinterest","tip_name":"","form_tip_name":"","tip_description":"","slug":"pinterest","source_id":6,"icon":"pn","icon_white":"pn_white","icon_full":"pn_full","color":"CB2027","filter":"invert(27%) sepia(93%) saturate(2494%) hue-rotate(339deg) brightness(77%) contrast(107%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":true,"have_photo_albums":false,"content_required":["photo","video","vk_video"],"text_limit":10000,"can_connect":true,"connect_link":{"type":"external","value":"https://www.pinterest.com/oauth","params":{"client_id":"1506800","response_type":"code"},"scope":"boards:read,boards:write,pins:read,pins:write,user_accounts:read","basic_scope":"boards:read,boards:write,pins:read,pins:write,user_accounts:read"},"hidden":false},{"name":"Joomla!","tip_name":"","form_tip_name":"","tip_description":"","slug":"joomla","
1source_id":26,"icon":"jm","icon_white":"jm_white","icon_full":"jm_full","color":"C33734","filter":"invert(29%) sepia(34%) saturate(3469%) hue-rotate(338deg) brightness(89%) contrast(87%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","link"],"text_limit":5000,"can_connect":false,"connect_link":{"type":"internal","value":"/accounts/connect/joomla"},"hidden":false},{"name":"Instagram","tip_name":"","form_tip_name":"","tip_description":"","help":"","slug":"instagram","source_id":29,"icon":"ig","icon_white":"ig_white","icon_full":"ig_full","color":"d02772","filter":"invert(21%) sepia(97%) saturate(2699%) hue-rotate(319deg) brightness(86%) contrast(87%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["photo","video","vk_video"],"can_connect":true,"connect_link":{"type":"external","value":"https://www.instagram.com/oauth/authorize","params":{"client_id":"784434260665293","response_type":"code","force_reauth":false},"scope":"instagram_business_basic,instagram_business_manage_comments,instagram_business_content_publish","basic_scope":"instagram_business_basic,instagram_business_manage_comments,instagram_business_content_publish"},"hidden":false},{"name":"Instagram","tip_name":"via Facebook","form_tip_name":"via Facebook","tip_description":"","help":"Чтобы подключить Instagram, вы должны связать его со Страницей в Facebook. Смотрите \\"справку\\" выше, чтобы узнать подробности","slug":"instagram","source_id":10,"icon":"ig","icon_white":"ig_white","icon_full":"ig_full","color":"d02772","filter":"invert(21%) sepia(97%) saturate(2699%) hue-rotate(319deg) brightness(86%) contrast(87%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["photo","video","vk_video"],"can_connect":true,"connect_link":{"type":"external","value":"https://www.facebook.com/dialog/oauth","params":{"client_id":"1594740094079562","response_type":"code"},"scope":"email,pages_read_engagement,pages_manage_engagement,business_management,pages_read_user_content,instagram_basic,instagram_content_publish,instagram_manage_comments,pages_show_list,pages_manage_posts","basic_scope":"email,pages_read_engagement,pages_manage_engagement,business_management,pages_read_user_content,instagram_basic,instagram_content_publish,instagram_manage_comments,pages_show_list,pages_manage_posts"},"hidden":false},{"name":"Instagram","tip_name":"via Cookies","form_tip_name":"via Cookies","tip_description":"Экспериментальная версия","help":"Работает в бета-режиме. Некоторые функции могут не работать или работать нестабильно.","slug":"instagram","source_id":7,"icon":"ig","icon_white":"ig_white","icon_full":"ig_full","color":"d02772","filter":"invert(21%) sepia(97%) saturate(2699%) hue-rotate(319deg) brightness(86%) contrast(87%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["photo","video","vk_video"],"can_connect":false,"connect_link":{"type":"internal","value":"/accounts/connect/instagram"},"hidden":false},{"name":"Wibes","tip_name":"","form_tip_name":"","tip_description":"","help":"Работает в бета-режиме. Некоторые функции могут не работать или работать нестабильно.","slug":"wibes","source_id":27,"icon":"wb","icon_white":"wb_white","icon_full":"wb_full","color":"fc70ea","filter":"invert(66%) sepia(74%) saturate(2216%) hue-rotate(277deg) brightness(101%) contrast(98%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["photo","video","vk_video"],"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/wibes"},"hidden":false},{"name":"WB Chat","tip_name":"- Подключение каналов","form_tip_name":"Каналы","tip_description":"Экспериментальная версия","help":"Используется для дальнейшего подключения каналов WB Chat","slug":"wbchat","source_id":37,"icon":"wc","icon_white":"wc_white","icon_full":"wc_full","color":"a73afd","filter":"invert(34%) sepia(92%) s
1aturate(4382%) hue-rotate(260deg) brightness(99%) contrast(102%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link"],"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/wbchat/channel"},"hidden":false},{"name":"WB Chat","tip_name":"- Подключение аккаунтов","form_tip_name":"Аккаунты","tip_description":"Экспериментальная версия","help":"Используется для дальнейшего подключения каналов WB Chat","slug":"wbchat","source_id":36,"icon":"wc","icon_white":"wc_white","icon_full":"wc_full","color":"a73afd","filter":"invert(34%) sepia(92%) saturate(4382%) hue-rotate(260deg) brightness(99%) contrast(102%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link"],"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/wbchat"},"hidden":false},{"name":"Viber","tip_name":"","form_tip_name":"","tip_description":"","slug":"viber","source_id":16,"icon":"vb","icon_white":"vb_white","icon_full":"vb_full","color":"7360f2","filter":"invert(30%) sepia(88%) saturate(1009%) hue-rotate(222deg) brightness(111%) contrast(91%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link"],"text_limit":7000,"text_with_media_limit":512,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/viber"},"hidden":false},{"name":"WordPress","tip_name":"","form_tip_name":"","tip_description":"","slug":"wordpress","source_id":21,"icon":"wp","icon_white":"wp_white","icon_full":"wp_full","color":"0073AA","filter":"invert(26%) sepia(60%) saturate(7417%) hue-rotate(185deg) brightness(95%) contrast(101%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","link"],"text_limit":5000,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/wordpress"},"hidden":false},{"name":"Tumblr","tip_name":"","form_tip_name":"","tip_description":"","slug":"tumblr","source_id":8,"icon":"tb","icon_white":"tb_white","icon_full":"tb_full","color":"33445c","filter":"invert(23%) sepia(4%) saturate(5183%) hue-rotate(177deg) brightness(99%) contrast(90%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":true,"have_photo_albums":false,"content_required":["text","photo","video","vk_video"],"can_connect":true,"connect_link":{"type":"external","value":"https://www.tumblr.com/oauth2/authorize","params":{"client_id":"zpgvWTAUW9hOSUdMGdxcjWLSLZ0nKe8Ve7pWIaBo4o3uT2liCK","response_type":"code"},"scope":"basic write offline_access","basic_scope":"basic write offline_access","
1state":"state"},"hidden":false},{"name":"RuTube","tip_name":"","form_tip_name":"","tip_description":"","slug":"rutube","source_id":23,"icon":"rt","icon_white":"rt_white","icon_full":"rt_full","color":"1c232b","filter":"invert(7%) sepia(10%) saturate(2334%) hue-rotate(171deg) brightness(99%) contrast(85%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["video","vk_video"],"text_limit":5000,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/rutube"},"hidden":false},{"name":"X","tip_name":"Twitter","form_tip_name":"Twitter","tip_description":"","slug":"twitter","source_id":4,"icon":"tw","icon_white":"tw_white","icon_full":"tw_full","color":"0F1419","filter":"invert(3%) sepia(4%) saturate(7489%) hue-rotate(169deg) brightness(96%) contrast(91%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link"],"text_limit":10000,"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/twitter"},"hidden":false},{"name":"Дзен","tip_name":"","form_tip_name":"","tip_description":"Экспериментальная версия","help":"Работает в бета-режиме. Некоторые функции могут не работать или работать нестабильно.","slug":"dzen","source_id":13,"icon":"dz","icon_white":"dz_white","icon_full":"dz_full","color":"000000","filter":"invert(6%) sepia(15%) saturate(1629%) hue-rotate(184deg) brightness(98%) contrast(89%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":true,"have_photo_albums":false,"content_required":["text","photo","video","vk_video"],"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/dzen"},"hidden":false},{"name":"Threads","tip_name":"","form_tip_name":"","tip_description":"","help":"","slug":"threads","source_id":34,"icon":"th","icon_white":"th_white","icon_full":"th_full","color":"000000","filter":"invert(6%) sepia(15%) saturate(1629%) hue-rotate(184deg) brightness(98%) contrast(89%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video"],"can_connect":true,"connect_link":{"type":"external","value":"https://threads.net/oauth/authorize","params":{"client_id":"2205295610222327","response_type":"code","force_reauth":false},"scope":"threads_basic,threads_content_publish","basic_scope":"threads_basic,threads_content_publish"},"hidden":false},{"name":"Threads","tip_name":"","form_tip_name":"","tip_description":"Экспериментальная версия","help":"Работает в бета-режиме. Некоторые функции могут не работать или работать нестабильно.","slug":"threads","source_id":19,"icon":"th","icon_white":"th_white","icon_full":"th_full","color":"000000","filter":"invert(6%) sepia(15%) saturate(1629%) hue-rotate(184deg) brightness(98%) contrast(89%)","checked":false,"disabled":false,"can_publishing":false,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video"],"can_connect":false,"connect_link":{"type":"internal","value":"/accounts/connect/threads"},"hidden":false},{"name":"TikTok","tip_name":"","form_tip_name":"","tip_description":"","slug":"tiktok","source_id":14,"icon":"tt","icon_white":"tt_white","icon_full":"tt_full","color":"000000","filter":"invert(0%) sepia(4%) saturate(7%) hue-rotate(337deg) brightness(101%) contrast(100%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["photo","video","vk_video"],"text_limit":2200,"can_connect":true,"connect_link":{"type":"external","value":"https://www.tiktok.com/v2/auth/authorize/","params":{"client_key":"aweoatbsettfanq2","response_type":"code"},"scope":"user.info.basic,user.info.profile,video.upload,video.publish","basic_scope":"user.info.basic,user.info.profile,video.upload,video.publish"},"hidden":false},{"name":"TikTok","tip_name":"via Cookies","form_tip_name":"via Cookies","tip_description":"Экспериментальная версия","help":"Работает в бета-режиме. Некоторые функции могут не работать или работать нестабильно.","slug":"tiktok","source_id":31,"icon":"tt","icon_white":"tt_white","icon_full":"tt_full","color":"000000","filter":"invert(0%) sepia(4%) saturate(7%) hue-rotate(337deg) brightness(101%) contrast(100%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["video","vk_video"],"can_connect":false,"connect_link":{"type":"internal","value":"/accounts/connect/tiktok"},"hidden":false},{"name":"Likee","tip_name":"","form_tip_name":"","tip_description":"","slug":"likee","source_id":25,"icon":"lk","icon_white":"lk_white","icon_full":"lk_full","color":"FF2373","filter":"invert(26%) sepia(77%) saturate(3643%) hue-rotate(324deg) brightness(101%) contrast(101%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["video","vk_video"],"can_connect":true,"connect_link":{"type":"internal","value":"/accounts/connect/likee"},"hidden":false}
1,{"name":"Reddit","tip_name":"","form_tip_name":"","tip_description":"","slug":"reddit","source_id":24,"icon":"rd","icon_white":"rd_white","icon_full":"rd_full","color":"FF5700","filter":"invert(43%) sepia(89%) saturate(3546%) hue-rotate(359deg) brightness(101%) contrast(103%)","checked":false,"disabled":false,"can_publishing":true,"need_account_for_parsing":false,"have_photo_albums":false,"content_required":["text","photo","video","vk_video","link"],"text_limit":5000,"can_connect":false,"connect_link":{"type":"external","value":"https://www.reddit.com/api/v1/authorize","params":{"client_id":"i55bXZjU9tDy3aZAv-uWWA","response_type":"code","duration":"permanent","state":"state"},"scope":"identity,read,submit,mysubreddits","basic_scope":"identity,read,submit,mysubreddits"},"hidden":false}]}')},,,,,,,,,,function(t,e,o){"use strict";o(23),o(4),o(31),o(22),o(15),o(1),o(48);var n=o(0),r=(o(39),o(43),o(44),o(34),o(28),o(6),o(9),o(10),o(8),o(36),o(7),o(32),o(20),o(29),o(30)),c=o(33),l=o(12);function d(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return m(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function m(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function _(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?h(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var f={components:{FormModalHeader:c.default},props:{socialNetworks:Array,idPrefix:String,label:{type:String,default:"Куда публиковать"},noLabel:{type:Boolean,default:!1},settingsDisabled:{type:Boolean,default:!1},isForParsing:{type:Boolean,default:!1}},data:function(){return{socialNetworksLocal:Object(l.cloneDeep)(this.socialNetworks).map(function(t,e){return t.index=e,t}),networkConnectSourceId:0}},computed:_(_({},Object(r.c)({socialNetworksSettings:function(t){return t.socialNetworksSettings},settingsState:function(t){return t.settings}})),{},{unusedSourcesIds:{get:function(){return this.socialNetworksSettings.unusedSourcesIds},set:function(t){this.$store.commit("socialNetworksSettings/unusedSourcesIds",t)}},isParseInstagramPostsByUs:function(){return this.settingsState.isParseInstagramPostsByUs},socialNetworksAvailable:function(){var t=this;return this.settingsDisabled?this.socialNetworksLocal.filter(function(t){return t.checked||!t.hidden}):this.socialNetworksLocal.filter(function(e){return!t.unusedSourcesIds.includes(parseInt(e.source_id))&&(e.checked||!e.hidden)})},socialNetworksConnectedCount:function(){var t=this;return this.socialNetworksAvailable.filter(function(e){return!(!e.checked&&e.hidden||e.disabled&&(!t.isForParsing||e.need_account_for_parsing&&(7!==e.source_id||!t.isParseInstagramPostsByUs)))}).length},networkConnectName:function(){var t,e=d(this.socialNetworksAvailable);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.source_id===this.networkConnectSourceId)return o.name}}catch(t){e.e(t)}finally{e.f()}return""}}),watch:{socialNetworksLocal:{handler:function(t){this.$emit("update-networks",t)},deep:!0},socialNetworks:{handler:function(t){var e=Object(l.cloneDeep)(t);this.socialNetworksLocal=e.map(function(t,e){return t.index=e,t})},deep:!0}},methods:{toggleUnused:function(t){var e=Object(l.cloneDeep)(this.unusedSourcesIds);e.includes(parseInt(t.target.value))?e=e.filter(function(e){return e!==parseInt(t.target.value)}):e.push(parseInt(t.target.value)),this.unusedSourcesIds=e,this.$cookies.set("unusedSourcesIds",e.join(","))},openNetworksSettings:function(){this.$refs["networks-settings-modal"].show()},closeNetworksSettings:function(){this.$refs["networks-settings-modal"].hide()},openNetworkConnect:function(t){this.networkConnectSourceId=t,this.$refs["network-connect-modal"].show()},closeNetworkConnect:function(){this.$refs["network-connect-modal"].hide()}}},v=o(5),component=Object(v.a)(f,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3 form-social-networks"},[t.noLabel?t._e():e("div",{staticClass:"form-label row g-0"},[e("div",{staticClass:"col-auto"},[t._v("\n        "+t._s(t.label)+"\n      ")]),t._v(" "),t.settingsDisabled?t._e():e("div",{staticClass:"col text-end"},[e("a",{staticClass:"link-secondary",attrs:{title:t.$t("form").social_networks.settings.open_button},on:{click:function(e){return e.preventDefault(),t.openNetworksSettings.apply(null,arguments)}}},[e("fa",{attrs:{icon:["fas","cog"]}})],1)])]),t._v(" "),e("div",{staticClass:"d-flex flex-wrap mt-n1"}
1,[t.socialNetworksConnectedCount||t.isForParsing?[t._l(t.socialNetworksAvailable,function(n,r){return n.checked||!n.hidden?[!n.disabled||t.isForParsing&&(!n.need_account_for_parsing||7===n.source_id&&t.isParseInstagramPostsByUs)?[e("input",{directives:[{name:"model",rawName:"v-model",value:t.socialNetworksAvailable[r].checked,expression:"socialNetworksAvailable[index].checked"}],staticClass:"btn-check",attrs:{type:"checkbox",name:"social_networks",id:t.idPrefix+"_network_"+n.source_id},domProps:{checked:Array.isArray(t.socialNetworksAvailable[r].checked)?t._i(t.socialNetworksAvailable[r].checked,null)>-1:t.socialNetworksAvailable[r].checked},on:{change:function(e){var o=t.socialNetworksAvailable[r].checked,n=e.target,c=!!n.checked;if(Array.isArray(o)){var l=t._i(o,null);n.checked?l<0&&t.$set(t.socialNetworksAvailable[r],"checked",o.concat([null])):l>-1&&t.$set(t.socialNetworksAvailable[r],"checked",o.slice(0,l).concat(o.slice(l+1)))}else t.$set(t.socialNetworksAvailable[r],"checked",c)}}}),t._v(" "),e("label",{key:r,staticClass:"btn btn-light btn-sm mt-1 me-1 d-flex align-items-center social-network-btn",class:{active:n.checked},attrs:{for:t.idPrefix+"_network_"+n.source_id,title:n.name+(n.form_tip_name?" "+n.form_tip_name:"")}},[e("img",{style:"filter: "+n.filter,attrs:{src:o(18)("./"+n.icon+".svg"),alt:""}}),t._v(" "),9===n.source_id?e("span",{staticClass:"letter-tip text-secondary"},[t._v("К")]):t._e(),t._v(" "),10===n.source_id?e("span",{staticClass:"letter-tip text-secondary"},[t._v("Ф")]):t._e(),t._v(" "),35===n.source_id?e("span",{staticClass:"letter-tip text-secondary"},[t._v("Ч")]):t._e(),t._v(" "),37===n.source_id?e("span",{staticClass:"letter-tip text-secondary"},[t._v("К")]):t._e()])]:t.isForParsing?e("div",{staticClass:"btn btn-light btn-sm mt-1 me-1 d-flex align-items-center social-network-btn",on:{click:function(e){return t.openNetworkConnect(n.source_id)}}},[e("img",{attrs:{src:o(18)("./"+n.icon+".svg"),alt:""}})]):t._e()]:t._e()}),t._v(" "),t.socialNetworksConnectedCount<t.socialNetworksAvailable.length&&!t.isForParsing?e("div",[e("nuxt-link",{staticClass:"btn-sm mt-1 me-1 d-flex px-2 align-items-center social-network-btn",attrs:{to:t.localePath("/accounts/connect")}},[e("fa",{attrs:{icon:["fas","plus"]}})],1)],1):t._e()]:e("div",{staticClass:"small bg-info rounded-2 p-2"},[t._v("\n        "+t._s(t.$t("form").social_networks.settings.need_to_connect_pages)+"\n        "),e("b",[e("nuxt-link",{attrs:{to:t.localePath("/accounts/connect")}},[t._v(t._s(t.$t("form").social_networks.settings.need_to_connect_place))])],1)])],2),t._v(" "),e("b-modal",{ref:"network-connect-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light"},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").social_networks.not_connected_title},on:{"close-form":t.closeNetworkConnect}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[e("div",{staticClass:"text-14 p-3"},[t._v("\n          "+t._s(t.$t("form").social_networks.not_connected_message.account)+" "),e("b",[t._v(t._s(t.networkConnectName))]),t._v(" "+t._s(t.$t("form").social_networks.not_connected_message.not_connected)+"\n          "),e("br"),e("br"),t._v("\n          "+t._s(t.$t("form").social_networks.not_connected_message.do_it_in)+" "),e("b",[e("nuxt-link",{attrs:{to:t.localePath("/accounts/connect")}},[t._v(t._s(t.$t("form").social_networks.not_connected_message.accounts))])],1),t._v(".\n        ")])]),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.closeNetworkConnect}},[t._v("\n          "+t._s(t.$t("form").social_networks.not_connected_close)+"\n        ")])])]),t._v(" "),e("b-modal",{ref:"networks-settings-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light"},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").social_networks.settings.title},on:{"close-form":t.closeNetworksSettings}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[e("label",{staticClass:"d-block form-label"},[t._v("\n          "+t._s(t.$t("form").social_networks.settings.form.networks_to_show)+"\n        ")]),t._v(" "),e("div",t._l(t.socialNetworksLocal,function(o){return e("div",{key:o.slug,staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",id:"source_id_"+o.source_id},domProps:{checked:!t.unusedSourcesIds.includes(o.source_id),value:o.source_id},on:{change:t.toggleUnused}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"source_id_"+o.source_id}},[t._v("\n              "+t._s(o.name)+"\n              "),o.tip_name?e("span",{staticClass:"text-secondary"},[t._v("\n                ("+t._s(o.tip_name)+")\n              ")]):t._e()])])}),0)]),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.closeNetworksSettings}},[t._v("\n          "+t._s(t.$t("form").social_networks.settings.form.apply_button)+"\n        ")])])])],1
1)},[],!1,null,null,null);e.a=component.exports},,,,,,,,,,function(t,e,o){"use strict";o(15),o(34),o(77),o(1),o(29),o(32);var n={model:{prop:"values",event:"change"},props:["name","items","values","customClass","isRowsView","disabledAll"],methods:{isActive:function(t){return this.values.split(",").indexOf(t.toString())>=0},clickHandler:function(t){var e=this.values?this.values.split(","):[],o=e.indexOf(t.toString());o>=0?e.splice(o,1):e.push(t.toString()),this.$emit("change",e.join(","))}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return t.isRowsView?e("div",{staticClass:"mb-3"},t._l(t.items,function(o){return e("div",{key:o.id,staticClass:"form-check"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",name:t.name,disabled:o.disabled||t.disabledAll,id:t.name+"_"+o.id},domProps:{value:o.id,checked:t.isActive(o.id)},on:{click:function(e){return t.clickHandler(o.id)}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:t.name+"_"+o.id}},[t._v("\n      "+t._s(o.value)+"\n    ")])])}),0):e("div",{staticClass:"btn-group",class:[t.customClass?t.customClass:""]},[t._l(t.items,function(o,n){return[e("input",{staticClass:"btn-check",attrs:{type:"checkbox",name:t.name,id:t.name+"_"+o.id,disabled:o.disabled||t.disabledAll},domProps:{value:o.id,checked:t.isActive(o.id)},on:{click:function(e){return t.clickHandler(o.id)}}}),t._v(" "),e("label",{key:n,staticClass:"btn btn-light btn-sm",class:{active:t.isActive(o.id)},attrs:{for:t.name+"_"+o.id,title:o.value_as_icon?o.value:""}},[o.value_as_icon?e("fa",{attrs:{icon:o.value_as_icon}}):t._t("default",function(){return[t._v(t._s(o.value))]})],2)]})],2)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o.d(e,"a",function(){return r});o(120),o(31),o(1),o(20),o(122);var n=[1],r=-1;e.b={methods:{isAiTextModelKeyRequired:function(t){return t!==r&&!n.includes(t)},getAiModelSite:function(t,e){var o=t.find(function(t){return t.id===e});if(!o)return"";var n=o.value.match(/ - (\S+)\s*$/);return n?n[1]:""},getAiModelKeyLabel:function(t,e){var o=this.getAiModelSite(t,e);return o?this.$t("aiPosting").form.model_key_for+" "+o:this.$t("aiPosting").form.model_key}}}},function(t,e,o){"use strict";o(34),o(15),o(40);var n={model:{prop:"value",event:"change"},props:["label","value","disabled","placeholder","tip","cloudPath","uploadUrl","responseFileKey","fileTypes"],data:function(){return{fileInputKey:0,uploading:!1,uploadingProgress:0,uploadingDone:!1,fileSrc:""}},computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}},acceptFiles:function(){var t;return null!==(t=this.fileTypes)&&void 0!==t?t:["image/jpeg","image/png","image/gif"]}},watch:{currentValue:{handler:function(t){this.setFileSrc(t)},deep:!0}},mounted:function(){var t=this;setTimeout(function(){t.setFileSrc(t.currentValue)},1)},methods:{setFileSrc:function(t){var e=this;t&&t.file_path?this.getPhotoFromUrl(this.cloudPath+t.file_path+t.name,function(t){e.fileSrc=t},"ru"):this.fileSrc=""},deleteFile:function(){this.currentValue=null,this.$emit("delete")},uploadFile:function(){var t,e=this;for(var i in this.$refs["file-input"].files)if(this.$refs["file-input"].files[i]instanceof File){t=this.$refs["file-input"].files[i];var o=this.uniqueID(),n=new FormData;n.append("file",t),n.append("file_id",o),this.uploading=!0,this.$axios.post(this.uploadUrl,n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){e.uploadingProgress=Math.round(t.loaded/t.total*100),t.loaded===t.total&&(e.uploadingDone=!0)}}).then(function(t){var o;e.uploadingProgress=0,e.uploadingDone=!1,e.currentValue=t.data[null!==(o=e.responseFileKey)&&void 0!==o?o:"file"],e.fileInputKey++,e.uploading=!1}).catch(function(){e.bvToast("danger","File upload error."),e.fileInputKey++,e.uploading=!1})}}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",[t.label?e("label",{staticClass:"d-block form-label"},[t._v("\n    "+t._s(t.label)),t.tip?e("span",{staticClass:"ms-2 text-secondary"},[t._v(t._s(t.tip))]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"row g-0"},[t.currentValue?e("div",{staticClass:"col-auto pe-2"},[e("div",{staticClass:"btn-group"},[e("a",{staticClass:"btn btn-outline-secondary btn-sm",attrs:{href:t.fileSrc,target:"_blank"}},[t._v("\n          "+t._s(t.currentValue.name)+"\n        ")]),t._v(" "),e("div",{staticClass:"btn btn-outline-secondary btn-sm",on:{click:t.deleteFile}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])]):t._e(),t._v(" "),e("div",{staticClass:"col"},[t.uploading?e("div",{staticClass:"btn btn-light disabled btn-sm w-100"},[t.uploadingDone?e("div",[t._v("Cloud saving...")]):e("div",[t._v("Wait... "+t._s(t.uploadingProgress)+"%")])]):e("input",{key:t.fileInputKey,ref:"file-input",staticClass:"form-control form-control-sm",attrs:{type:"file",accept:t.acceptFiles.join(",")},on:{change:t.uploadFile}})])])])},[],!1,null,null,null);e.a=component.exports},,,,,,,function(t,e,o){"use strict";o.d(e,"b",function(){return Ui}),o.d(e,"a",function(){return js});o(6),o(4),o(9),o(10),o(8),o(7);var n=o(11),r=o(0),c=(o(24),o(28),o(15),o(1),o(20),o(38),o(16)),l=o(30),d=o(199),m=o(284),h=o.n(m),_=o(174),f=o.n(_),v=(o(36),o(32),o(285)),y=o(116),k=o(3);o(66);"scrollRestoration"in window.history&&(Object(k.u)("manual"),window.addEventListener("beforeunload",function(){Object(k.u)("auto")}),window.addEventListener("load",function(){Object(k.u)("manual")}));function x(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function w(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?x(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):x(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var C=function(){return Object(k.m)(o.e(14).then(o.bind(null,1294)))},S=function(){return Object(k.m)(o.e(39).then(o.bind(null,1295)))},T=function(){return Object(k.m)(o.e(17).then(o.bind(null,1257)))},P=function(){return Object(k.m)(o.e(40).then(o.bind(null,1056)))},I=function(){return Object(k.m)(o.e(41).then(o.bind(null,1296)))},A=function(){return Object(k.m)(o.e(16).then(o.bind(null,1297)))},F=function(){return Object(k.m)(o.e(18).then(o.bind(null,1298)))},j=function(){return Object(k.m)(o.e(19).then(o.bind(null,1299)))},O=function(){return Object(k.m)(o.e(20).then(o.bind(null,1300)))},$=function(){return Object(k.m)(o.e(21).then(o.bind(null,1301)))},L=function(){return Object(k.m)(o.e(23).then(o.bind(null,1302)))},R=function(){return Object(k.m)(o.e(24).then(o.bind(null,1303)))},B=function(){return Object(k.m)(o.e(26).then(o.bind(null,1304)))},D=function(){return Object(k.m)(o.e(27).then(o.bind(null,1305)))},N=function(){return Object(k.m)(o.e(28).then(o.bind(null,1306)))},M=function(){return Object(k.m)(o.e(29).then(o.bind(null,1263)))},V=function(){return Object(k.m)(o.e(30).then(o.bind(null,1307)))},U=function(){return Object(k.m)(Promise.all([o.e(6),o.e(32)]).then(o.bind(null,1308)))},E=function(){return Object(k.m)(o.e(34).then(o.bind(null,1309)))},H=function(){return Object(k.m)(o.e(35).then(o.bind(null,1310)))},z=function(){return Object(k.m)(o.e(36).then(o.bind(null,1311)))},W=function(){return Object(k.m)(o.e(37).then(o.bind(null,1312)))},G=function(){return Object(k.m)(o.e(38).then(o.bind(null,1313)))},K=function(){return Object(k.m)(o.e(42).then(o.bind(null,1057)))},X=function(){return Object(k.m)(o.e(22).then(o.bind(null,1314)))},Q=function(){return Object(k.m)(o.e(25).then(o.bind(null,1315)))},Y=function(){return Object(k.m)(o.e(31).then(o.bind(null,1278)))},J=function(){return Object(k.m)(o.e(33).then(o.bind(null,1316)))},Z=function(){return Object(k.m)(o.e(15).then(o.bind(null,1055)))},tt=function(){return Object(k.m)(o.e(43).then(o.bind(null,1317)))},et=function(){return Object(k.m)(o.e(46).then(o.bind(null,1318)))},st=function(){return Object(k.m)(o.e(45).then(o.bind(null,1319)))},ot=function(){return Object(k.m)(o.e(47).then(o.bind(null,1071)))},nt=function(){return Object(k.m)(o.e(44).then(o.bind(null,1070)))},it=function(){return Object(k.m)(o.e(48).then(o.bind(null,1320)))},at=function(){return Object(k.m)(o.e(49).then(o.bind(null,1321)))},ct=function(){return Object(k.m)(o.e(50).then(o.bind(null,1322)))},lt=function(){return Object(k.m)(o.e(51).then(o.bind(null,1323)))},ut=function(){return Object(k.m)(o.e(52).then(o.bind(null,1324)))},pt=function(){return Object(k.m)(o.e(56).then(o.bind(null,1252)))},mt=function(){return Object(k.m)(o.e(54).then(o.bind(null,1325)))},ht=function(){return Object(k.m)(o.e(55).then(o.bind(null,1326)))},_t=function(){return Object(k.m)(o.e(57).then(o.bind(null,1327)))},ft=function(){return Object(k.m)(o.e(53).then(o.bind(null,1072)))},bt=function(){return Object(k.m)(o.e(58).then(o.bind(null,1328)))},vt=function(){return Object(k.m)(o.e(64).then(o.bind(null,1329)))},gt=function(){return Object(k.m)(o.e(60).then(o.bind(null,1330)))},yt=function(){return Object(k.m)(o.e(62).then(o.bind(null,1331)))},kt=function(){return Object(k.m)(o.e(65).then(o.bind(null,1074)))},xt=function(){return Object(k.m)(o.e(61).then(o.bind(null,1332)))},wt=function(){return Object(k.m)(o.e(63).then(o.bind(null,1075)))},Ct=function(){return Object(k.m)(o.e(59).then(o.bind(null,1073)))},St=function(){return Object(k.m)(o.e(66).then(o.bind(null,1333)))},Tt=function(){return Object(k.m)(Promise.all([o.e(3),o.e(67)]).then(o.bind(null,1247)))},Pt=function(){return Object(k.m)(o.e(72).then(o.bind(null,1249)))},It=function(){return Object(k.m)(o.e(73).then(o.bind(null,1334)))},At=function(){return Object(k.m)(o.e(74).then(o.bind(null,1335)))},Ft=function(){return Object(k.m)(o.e(68).then(o.bind(null,1336)))},jt=function(){return Object(k.m)(o.e(69).then(o.bind(null,1337)))},Ot=function(){return Object(k.m)(o.e(70).then(o.bind(null,948)))},$t=function(){return Object(k.m)(o.e(71).then(o.bind(null,1244)))},Lt=function(){return Object(k.m)(o.e(75).then(o.bind(null,1268)))},Rt=function(){return Object(k.m)(o.e(76).then(o.bind(null,1338)))},Bt=function(){return Object(k.m)(o.e(77).then(o.bind(null,1339)))},Dt=function(){return Object(k.m)(o.e(78).then(o.bind(null,1340)))},Nt=function(){return Object(k.m)(o.e(79).then(o.bind(null,1341)))},Mt=function(){return Object(k.m)(o.e(81).then(o.bind(null,1342)))},Vt=function(){return Object(k.m)(o.e(80).then(o.bind(null,1086)))},Ut=function(){return Object(k.m)(o.e(82).then(o.bind(null,1343)))},Et=function(){return Object(k.m)(o.e(84).then(o.bind(null,1344)))},qt=function(){return Object(k.m)(o.e(83).then(o.bind(null,1087)))},Ht=function(){return Object(k.m)(o.e(86).then(o.bind(null,1345)))},zt=function(){return Object(k.m)(o.e(92).then(o.bind(null,1269)))},Wt=function(){return Object(k.m)(o.e(89).then(o.bind(null,1346)))},Gt=function(){return Object(k.m)(o.e(91).then(o.bind(null,1347)))},Kt=function(){return Object(k.m)(o.e(93).then(o.bind(null,1348)))},Xt=function(){return Object(k.m)(o.e(95).then(o.bind(null,1349)))},Qt=function(){return Object(k.m)(o.e(88).then(o.bind(null,1350)))},Yt=function(){return Object(k.m)(o.e(90).then(o.bind(null,1089)))},Jt=function(){return Object(k.m)(o.e(94).then(o.bind(null,1351)))},Zt=function(){return Object(k.m)(o.e(96).then(o.bind(null,1090)))},te=function(){return Object(k.m)(o.e(87).then(o.bind(null,1088)))},ee=function(){return Object(k.m)(o.e(97).then(o.bind(null,1352)))},se=function(){return Object(k.m)(o.e(99).then(o.bind(null,1279)))},oe=function(){return Object(k.m)(o.e(98).then(o.bind(null,1091)))},ne=function(){return Object(k.m)(o.e(100).then(o.bind(null,1353)))},ie=function(){return Object(k.m)(o.e(117).then(o.bind(null,1280)))},ae=function(){return Object(k.m)(o.e(110).then(o.bind(null,1262)))},re=function(){return Object(k.m)(o.e(111).then(o.bind(null,1410)))},ce=function(){return Object(k.m)(o.e(112).then(o.bind(null,1253)))},le=function(){return Object(k.m)(o.e(113).then(o.bind(null,1411)))},ue=function(){return Object(k.m)(o.e(115).then(o.bind(null,1354)))},pe=function(){return Object(k.m)(o.e(114).then(o.bind(null,1355)))},de=function(){return Object(k.m)(o.e(116).then(o.bind(null,1094)))},me=function(){return Object(k.m)(o.e(118).then(o.bind(null,1093)))},he=function(){return Object(k.m)(o.e(120).then(o.bind(null,1356)))},_e=function(){return Object(k.m)(o.e(123).then(o.bind(null,1357)))},fe=function(){return Object(k.m)(o.e(125).then(o.bind(null,1270)))},be=function(){return Object(k.m)(o.e(119).then(o.bind(null,1358)))},ve=function(){return Object(k.m)(o.e(121).then(o.bind(null,1095)))},ge=function(){return Object(k.m)(o.e(122).then(o.bind(null,1359)))},ye=function(){return Object(k.m)(o.e(124).then(o.bind(null,1096)))},ke=function(){return Object(k.m)(o.e(101).then(o.bind(null,1360)))},xe=function(){return Object(k.m)(o.e(103).then(o.bind(null,1259)))},we=function(){return Object(k.m)(o.e(104).then(o.bind(null,1098)))},Ce=function(){return Object(k.m)(o.e(105).then(o.bind(null,1271)))},Se=function(){return Object(k.m)(o.e(107).then(o.bind(null,1361)))},Te=function(){return Object(k.m)(o.e(106).then(o.bind(null,1362)))},Pe=function(){return Object(k.m)(o.e(108).then(o.bind(null,1099)))},Ie=function(){return Object(k.m)(o.e(102).then(o.bind(null,1097)))},Ae=function(){return Object(k.m)(o.e(109).then(o.bind(null,1092)))},Fe=function(){return Object(k.m)(o.e(126).then(o.bind(null,1363)))},je=function(){return Object(k.m)(o.e(129).then(o.bind(null,1364)))},Oe=function(){return Object(k.m)(o.e(128).then(o.bind(null,1365)))},$e=function(){return Object(k.m)(o.e(130).then(o.bind(null,1101)))},Le=function(){return Object(k.m)(o.e(127).then(o.bind(null,1100)))},Re=function(){return Object(k.m)(o.e(131).then(o.bind(null,1366)))},Be=function(){return Object(k.m)(o.e(137).then(o.bind(null,1367)))},De=function(){return Object(k.m)(Promise.all([o.e(8),o.e(133)]).then(o.bind(null,1368)))},Ne=function(){return Object(k.m)(o.e(135).then(o.bind(null,1369)))},Me=function(){return Object(k.m)(o.e(138).then(o.bind(null,1103)))},Ve=function(){return Object(k.m)(o.e(134).then(o.bind(null,1370)))},Ue=function(){return Object(k.m)(o.e(136).then(o.bind(null,1104)))},Ee=function(){return Object(k.m)(o.e(132).then(o.bind(null,1102)))},qe=function(){return Object(k.m)(o.e(139).then(o.bind(null,1371)))},He=function(){return Object(k.m)(o.e(143).then(o.bind(null,1272)))},ze=function(){return Object(k.m)(o.e(141).then(o.bind(null,1273)))},We=function(){return Object(k.m)(o.e(142).then(o.bind(null,1274)))},Ge=function(){return Object(k.m)(o.e(144).then(o.bind(null,1275)))},Ke=function(){return Object(k.m)(o.e(140).then(o.bind(null,1105)))},Xe=function(){return Object(k.m)(o.e(145).then(o.bind(null,1372)))},Qe=function(){return Object(k.m)(o.e(148).then(o.bind(null,1373)))},Ye=function(){return Object(k.m)(o.e(147).then(o.bind(null,1374)))},Je=function(){return Object(k.m)(o.e(149).then(o.bind(null,1107)))},Ze=function(){return Object(k.m)(o.e(146).then(o.bind(null,1106)))},ts=function(){return Object(k.m)(o.e(150).then(o.bind(null,1375)))},es=function(){return Object(k.m)(o.e(153).then(o.bind(null,1376)))},ss=function(){return Object(k.m)(Promise.all([o.e(10),o.e(152)]).then(o.bind(null,1377)))},os=function(){return Object(k.m)(o.e(154).then(o.bind(null,1109)))},ns=function(){return Object(k.m)(o.e(151).then(o.bind(null,1108)))},is=function(){return Object(k.m)(o.e(155).then(o.bind(null,1412)))},as=function(){return Object(k.m)(o.e(156).then(o.bind(null,1378)))},rs=function(){return Object(k.m)(o.e(157).then(o.bind(null,1379)))},cs=function(){return Object(k.m)(Promise.all([o.e(3),o.e(159)]).then(o.bind(null,1380)))},ls=function(){return Object(k.m)(Promise.all([o.e(3),o.e(158)]).then(o.bind(null,1110)))},us=function(){return Object(k.m)(o.e(160).then(o.bind(null,1381)))},ps=function(){return Object(k.m)(o.e(164).then(o.bind(null,1382)))},ds=function(){return Object(k.m)(Promise.all([o.e(7),o.e(162)]).then(o.bind(null,1383)))},ms=function(){return Object(k.m)(o.e(163).then(o.bind(null,1384)))},hs=function(){return Object(k.m)(o.e(165).then(o.bind(null,1112)))},_s=function(){return Object(k.m)(o.e(161).then(o.bind(null,1111)))},fs=function(){return Object(k.m)(o.e(166).then(o.bind(null,1385)))},bs=function(){return Object(k.m)(o.e(167).then(o.bind(null,1386)))},vs=function(){return Object(k.m)(o.e(170).then(o.bind(null,1387)))},gs=function(){return Object(k.m)(o.e(169).then(o.bind(null,1388)))},ys=function(){return Object(k.m)(o.e(171).then(o.bind(null,1114)))},ks=function(){return Object(k.m)(o.e(168).then(o.bind(null,1113)))},xs=function(){return Object(k.m)(o.e(85).then(o.bind(null,1389)))},ws=function(){};c.default.use(v.a);
1var Cs={mode:"history",base:"/",linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(t,e,o){var n=!1,r=t!==e;o?n=o:r&&function(t){var e=Object(k.g)(t);if(1===e.length){var o=e[0].options;return!1!==(void 0===o?{}:o).scrollToTop}return e.some(function(t){var e=t.options;return e&&e.scrollToTop})}(t)&&(n={x:0,y:0});var c=window.$nuxt;return(!r||t.path===e.path&&t.hash!==e.hash)&&c.$nextTick(function(){return c.$emit("triggerScroll")}),new Promise(function(e){c.$once("triggerScroll",function(){if(t.hash){var o=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(o="#"+window.CSS.escape(o.substr(1)));try{var r=document.querySelector(o);if(r){var c;n={selector:o};var l=Number(null===(c=getComputedStyle(r)["scroll-margin-top"])||void 0===c?void 0:c.replace("px",""));l&&(n.offset={y:l})}}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(n)})})},routes:[{path:"/accounts",component:C,children:[{path:"",component:S,name:"accounts___ru"},{path:"connect",component:T,name:"accounts-connect___ru"},{path:"index.mock",component:P,name:"accounts-index.mock___ru"},{path:"pages",component:I,name:"accounts-pages___ru"},{path:"connect/dzen",component:A,name:"accounts-connect-dzen___ru"},{path:"connect/instagram",component:F,name:"accounts-connect-instagram___ru"},{path:"connect/joomla",component:j,name:"accounts-connect-joomla___ru"},{path:"connect/likee",component:O,name:"accounts-connect-likee___ru"},{path:"connect/max",component:$,name:"accounts-connect-max___ru"},{path:"connect/rutube",component:L,name:"accounts-connect-rutube___ru"},{path:"connect/telegram",component:R,name:"accounts-connect-telegram___ru"},{path:"connect/tenchat",component:B,name:"accounts-connect-tenchat___ru"},{path:"connect/threads",component:D,name:"accounts-connect-threads___ru"},{path:"connect/tiktok",component:N,name:"accounts-connect-tiktok___ru"},{path:"connect/twitter",component:M,name:"accounts-connect-twitter___ru"},{path:"connect/viber",component:V,name:"accounts-connect-viber___ru"},{path:"connect/vkontakte",component:U,name:"accounts-connect-vkontakte___ru"},{path:"connect/wbchat",component:E,name:"accounts-connect-wbchat___ru"},{path:"connect/whatsapp",component:H,name:"accounts-connect-whatsapp___ru"},{path:"connect/wibes",component:z,name:"accounts-connect-wibes___ru"},{path:"connect/wordpress",component:W,name:"accounts-connect-wordpress___ru"},{path:"connect/yappy",component:G,name:"accounts-connect-yappy___ru"},{path:"pages/index.mock",component:K,name:"accounts-pages-index.mock___ru"},{path:"connect/max/parsing",component:X,name:"accounts-connect-max-parsing___ru"},{path:"connect/telegram/parsing",component:Q,name:"accounts-connect-telegram-parsing___ru"},{path:"connect/vkontakte/chat",component:Y,name:"accounts-connect-vkontakte-chat___ru"},{path:"connect/wbchat/channel",component:J,name:"accounts-connect-wbchat-channel___ru"}]},{path:"/accounts.mock",component:Z,name:"accounts.mock___ru"},{path:"/ai-posting",component:tt,children:[{path:"",component:et,name:"ai-posting___ru"},{path:"create",component:st,name:"ai-posting-create___ru"},{path:"index.mock",component:ot,name:"ai-posting-index.mock___ru"}]},{path:"/ai-posting.mock",component:nt,name:"ai-posting.mock___ru"},{path:"/auth",component:it,name:"auth___ru",children:[{path:"login",component:at,name:"auth-login___ru"},{path:"registration",component:ct,name:"auth-registration___ru"},{path:"remind",component:lt,name:"auth-remind___ru"}]},{path:"/billing",component:ut,children:[{path:"",component:pt,name:"billing___ru"},{path:"fail",component:mt,name:"billing-fail___ru"},{path:"history",component:ht,name:"billing-history___ru"},{path:"success",component:_t,name:"billing-success___ru"}]},{path:"/billing.mock",component:ft,name:"billing.mock___ru"},{path:"/cross-posting",component:bt,children:[{path:"",component:vt,name:"cross-posting___ru"},{path:"create",component:gt,name:"cross-posting-create___ru"},{path:"folders",component:yt,name:"cross-posting-folders___ru"},{path:"index.mock",component:kt,name:"cross-posting-index.mock___ru"},{path:"folders/create",component:xt,name:"cross-posting-folders-create___ru"},{path:"folders/index.mock",component:wt,name:"cross-posting-folders-index.mock___ru"}]},{path:"/cross-posting.mock",component:Ct,name:"cross-posting.mock___ru"},{path:"/download",component:St,name:"download___ru"},{path:"/en",component:Tt,name:"index___en"},{path:"/index__",component:Pt,name:"index_____ru"},{path:"/index___",component:It,name:"index______ru"},{path:"/index_old",component:At,name:"index_old___ru"},{path:"/index-",component:Ft,name:"index-___ru"},{path:"/index--",component:jt,name:"index--___ru"},{path:"/index.mock",component:Ot,name:"index.mock___ru"},{path:"/index.mock--",component:$t,name:"index.mock--___ru"},{path:"/legal",component:Lt,children:[{path:"",component:Rt,name:"legal___ru"},{path:"privacy",component:Bt,name:"legal-privacy___ru"},{path:"terms",component:Dt,name:"legal-terms___ru"}]},{path:"/live",component:Nt,children:[{path:"",component:Mt,name:"live___ru"}]},{path:"/live.mock",component:Vt,name:"live.mock___ru"},{path:"/notifications",component:Ut,children:[{path:"",component:Et,name:"notifications___ru"}]},{path:"/notifications.mock",component:qt,name:"notifications.mock___ru"},{path:"/ord",component:Ht,children:[{path:"",component:zt,name:"ord___ru"},{path:"contracts",component:Wt,name:"ord-contracts___ru"},{path:"creatives",component:Gt,name:"ord-creatives___ru"},{path:"invoices",component:Kt,name:"ord-invoices___ru"},{path:"persons",component:Xt,name:"ord-persons___ru"},{path:"contracts/create",component:Qt,name:"ord-contracts-create___ru"},{path:"contracts/index.mock",component:Yt,name:"ord-contracts-index.mock___ru"},{path:"persons/create",component:Jt,name:"ord-persons-create___ru"},{path:"persons/index.mock",component:Zt,name:"ord-persons-index.mock___ru"}]},{path:"/ord.mock",component:te,name:"ord.mock___ru"},{path:"/partnership",component:ee,children:[{path:"",component:se,name:"partnership___ru"}]},{path:"/partnership.mock",component:oe,name:"partnership.mock___ru"},{path:"/posts",component:ne,children:[{path:"",component:ie,name:"posts___ru"},{path:"batch_uploading",component:ae,name:"posts-batch_uploading___ru"},{path:"butch_uploading",component:re,name:"posts-butch_uploading___ru"},{path:"create",component:ce,name:"posts-create___ru"},{path:"folders",component:le,children:[{path:"",component:ue,name:"posts-folders___ru"},{path:"create",component:pe,name:"posts-folders-create___ru"},{path:"index.mock",component:de,name:"posts-folders-index.mock___ru"}]},{path:"index.mock",component:me,name:"posts-index.mock___ru"},{path:"projects",component:he,name:"posts-projects___ru"},{path:"schedules",component:_e,name:"posts-schedules___ru"},{path:"settings",component:fe,name:"posts-settings___ru"},{path:"projects/create",component:be,name:"posts-projects-create___ru"},{path:"projects/index.mock",component:ve,name:"posts-projects-index.mock___ru"},{path:"schedules/create",component:ge,name:"posts-schedules-create___ru"},{path:"schedules/index.mock",component:ye,name:"posts-schedules-index.mock___ru"}]},{path:"/posts-search",component:ke,children:[{path:"",component:xe,name:"posts-search___ru"},{path:"index.mock",component:we,name:"posts-search-index.mock___ru"},{path:"settings",component:Ce,name:"posts-search-settings___ru"},{path:"source-resources",component:Se,name:"posts-search-source-resources___ru"},{path:"source-resources/create",component:Te,name:"posts-search-source-resources-create___ru"},{path:"source-resources/index.mock",component:Pe,name:"posts-search-source-resources-index.mock___ru"}]},{path:"/posts-search.mock",component:Ie,name:"posts-search.mock___ru"},{path:"/posts.mock",component:Ae,name:"posts.mock___ru"},{path:"/proxies",component:Fe,children:[{path:"",component:je,name:"proxies___ru"},{path:"create",component:Oe,name:"proxies-create___ru"},{path:"index.mock",component:$e,name:"proxies-index.mock___ru"}]},{path:"/proxies.mock",component:Le,name:"proxies.mock___ru"},{path:"/rss-import",component:Re,children:[{path:"",component:Be,name:"rss-import___ru"},{path:"create",component:De,name:"rss-import-create___ru"},{path:"folders",component:Ne,name:"rss-import-folders___ru"},{path:"index.mock",component:Me,name:"rss-import-index.mock___ru"},{path:"folders/create",component:Ve,name:"rss-import-folders-create___ru"},{path:"folders/index.mock",component:Ue,name:"rss-import-folders-index.mock___ru"}]},{path:"/rss-import.mock",component:Ee,name:"rss-import.mock___ru"},{path:"/settings",component:qe,children:[{path:"",component:He,name:"settings___ru"},{path:"api",component:ze,name:"settings-api___ru"},{path:"email",component:We,name:"settings-email___ru"},{path:"password",component:Ge,name:"settings-password___ru"}]},{path:"/settings.mock",component:Ke,name:"settings.mock___ru"},{path:"/smart-tags",component:Xe,children:[{path:"",component:Qe,name:"smart-tags___ru"},{path:"create",component:Ye,name:"smart-tags-create___ru"},{path:"index.mock",component:Je,name:"smart-tags-index.mock___ru"}]},{path:"/smart-tags.mock",component:Ze,name:"smart-tags.mock___ru"},{path:"/smart-tasks",component:ts,children:[{path:"",component:es,name:"smart-tasks___ru"},{path:"create",component:ss,name:"smart-tasks-create___ru"},{path:"index.mock",component:os,name:"smart-tasks-index.mock___ru"}]},{path:"/smart-tasks.mock",component:ns,name:"smart-tasks.mock___ru"},{path:"/statistics",component:is,children:[{path:"",component:as,name:"statistics___ru"},{path:"partners",component:rs,name:"statistics-partners___ru"},{path:"users",component:cs,name:"statistics-users___ru"},{path:"users/UsersChart",component:ls,name:"statistics-users-UsersChart___ru"}]},{path:"/team",component:us,children:[{path:"",component:ps,name:"team___ru"},{path:"create",component:ds,name:"team-create___ru"},{path:"directors",component:ms,name:"team-directors___ru"},{path:"index.mock",component:hs,name:"team-index.mock___ru"}]},{path:"/team.mock",component:_s,name:"team.mock___ru"},{path:"/tests",component:fs,name:"tests___ru"},{path:"/watermarks",component:bs,children:[{path:"",component:vs,name:"watermarks___ru"},{path:"create",component:gs,name:"watermarks-create___ru"},{path:"index.mock",component:ys,name:"watermarks-index.mock___ru"}]},{path:"/watermarks.mock",component:ks,name:"watermarks.mock___ru"},{path:"/en/accounts",component:C,children:[{path:"",component:S,name:"accounts___en"},{path:"connect",component:T,name:"accounts-connect___en"},{path:"index.mock",component:P,name:"accounts-index.mock___en"},{path:"pages",component:I,name:"accounts-pages___en"},{path:"connect/dzen",component:A,name:"accounts-connect-dzen___en"},{path:"connect/instagram",component:F,name:"accounts-connect-instagram___en"},{path:"connect/joomla",component:j,name:"accounts-connect-joomla___en"},{path:"connect/likee",component:O,name:"accounts-connect-likee___en"},{path:"connect/max",component:$,name:"accounts-connect-max___en"},{path:"connect/rutube",component:L,name:"accounts-connect-rutube___en"},{path:"connect/telegram",component:R,name:"accounts-connect-telegram___en"},{path:"connect/tenchat",component:B,name:"accounts-connect-tenchat___en"},{path:"connect/threads",component:D,name:"accounts-connect-threads___en"},{path:"connect/tiktok",component:N,name:"accounts-connect-tiktok___en"},{path:"connect/twitter",component:M,name:"accounts-connect-twitter___en"},{path:"connect/viber",component:V,name:"accounts-connect-viber___en"},{path:"connect/vkontakte",component:U,name:"accounts-connect-vkontakte___en"},{path:"connect/wbchat",component:E,name:"accounts-connect-wbchat___en"},{path:"connect/whatsapp",component:H,name:"accounts-connect-whatsapp___en"},{path:"connect/wibes",component:z,name:"accounts-connect-wibes___en"},{path:"connect/wordpress",component:W,name:"accounts-connect-wordpress___en"},{path:"connect/yappy",component:G,name:"accounts-connect-yappy___en"},{path:"pages/index.mock",component:K,name:"accounts-pages-index.mock___en"},{path:"connect/max/parsing",component:X,name:"accounts-connect-max-parsing___en"},{path:"connect/telegram/parsing",component:Q,name:"accounts-connect-telegram-parsing___en"},{path:"connect/vkontakte/chat",component:Y,name:"accounts-connect-vkontakte-chat___en"},{path:"connect/wbchat/channel",component:J,name:"accounts-connect-wbchat-channel___en"}]},{path:"/en/accounts.mock",component:Z,name:"accounts.mock___en"}
1,{path:"/en/ai-posting",component:tt,children:[{path:"",component:et,name:"ai-posting___en"},{path:"create",component:st,name:"ai-posting-create___en"},{path:"index.mock",component:ot,name:"ai-posting-index.mock___en"}]},{path:"/en/ai-posting.mock",component:nt,name:"ai-posting.mock___en"},{path:"/en/auth",component:it,name:"auth___en",children:[{path:"login",component:at,name:"auth-login___en"},{path:"registration",component:ct,name:"auth-registration___en"},{path:"remind",component:lt,name:"auth-remind___en"}]},{path:"/en/billing",component:ut,children:[{path:"",component:pt,name:"billing___en"},{path:"fail",component:mt,name:"billing-fail___en"},{path:"history",component:ht,name:"billing-history___en"},{path:"success",component:_t,name:"billing-success___en"}]},{path:"/en/billing.mock",component:ft,name:"billing.mock___en"},{path:"/en/cross-posting",component:bt,children:[{path:"",component:vt,name:"cross-posting___en"},{path:"create",component:gt,name:"cross-posting-create___en"},{path:"folders",component:yt,name:"cross-posting-folders___en"},{path:"index.mock",component:kt,name:"cross-posting-index.mock___en"},{path:"folders/create",component:xt,name:"cross-posting-folders-create___en"},{path:"folders/index.mock",component:wt,name:"cross-posting-folders-index.mock___en"}]},{path:"/en/cross-posting.mock",component:Ct,name:"cross-posting.mock___en"},{path:"/en/download",component:St,name:"download___en"},{path:"/en/index__",component:Pt,name:"index_____en"},{path:"/en/index___",component:It,name:"index______en"},{path:"/en/index_old",component:At,name:"index_old___en"},{path:"/en/index-",component:Ft,name:"index-___en"},{path:"/en/index--",component:jt,name:"index--___en"},{path:"/en/index.mock",component:Ot,name:"index.mock___en"},{path:"/en/index.mock--",component:$t,name:"index.mock--___en"},{path:"/en/legal",component:Lt,children:[{path:"",component:Rt,name:"legal___en"},{path:"privacy",component:Bt,name:"legal-privacy___en"},{path:"terms",component:Dt,name:"legal-terms___en"}]},{path:"/en/live",component:Nt,children:[{path:"",component:Mt,name:"live___en"}]},{path:"/en/live.mock",component:Vt,name:"live.mock___en"},{path:"/en/notifications",component:Ut,children:[{path:"",component:Et,name:"notifications___en"}]},{path:"/en/notifications.mock",component:qt,name:"notifications.mock___en"},{path:"/en/ord",component:Ht,children:[{path:"",component:zt,name:"ord___en"},{path:"contracts",component:Wt,name:"ord-contracts___en"},{path:"creatives",component:Gt,name:"ord-creatives___en"},{path:"invoices",component:Kt,name:"ord-invoices___en"},{path:"persons",component:Xt,name:"ord-persons___en"},{path:"contracts/create",component:Qt,name:"ord-contracts-create___en"},{path:"contracts/index.mock",component:Yt,name:"ord-contracts-index.mock___en"},{path:"persons/create",component:Jt,name:"ord-persons-create___en"},{path:"persons/index.mock",component:Zt,name:"ord-persons-index.mock___en"}]},{path:"/en/ord.mock",component:te,name:"ord.mock___en"},{path:"/en/partnership",component:ee,children:[{path:"",component:se,name:"partnership___en"}]},{path:"/en/partnership.mock",component:oe,name:"partnership.mock___en"},{path:"/en/posts",component:ne,children:[{path:"",component:ie,name:"posts___en"},{path:"batch_uploading",component:ae,name:"posts-batch_uploading___en"},{path:"butch_uploading",component:re,name:"posts-butch_uploading___en"},{path:"create",component:ce,name:"posts-create___en"},{path:"folders",component:le,children:[{path:"",component:ue,name:"posts-folders___en"},{path:"create",component:pe,name:"posts-folders-create___en"},{path:"index.mock",component:de,name:"posts-folders-index.mock___en"}]},{path:"index.mock",component:me,name:"posts-index.mock___en"},{path:"projects",component:he,name:"posts-projects___en"},{path:"schedules",component:_e,name:"posts-schedules___en"},{path:"settings",component:fe,name:"posts-settings___en"},{path:"projects/create",component:be,name:"posts-projects-create___en"},{path:"projects/index.mock",component:ve,name:"posts-projects-index.mock___en"},{path:"schedules/create",component:ge,name:"posts-schedules-create___en"},{path:"schedules/index.mock",component:ye,name:"posts-schedules-index.mock___en"}]},{path:"/en/posts-search",component:ke,children:[{path:"",component:xe,name:"posts-search___en"},{path:"index.mock",component:we,name:"posts-search-index.mock___en"},{path:"settings",component:Ce,name:"posts-search-settings___en"},{path:"source-resources",component:Se,name:"posts-search-source-resources___en"},{path:"source-resources/create",component:Te,name:"posts-search-source-resources-create___en"},{path:"source-resources/index.mock",component:Pe,name:"posts-search-source-resources-index.mock___en"}]},{path:"/en/posts-search.mock",component:Ie,name:"posts-search.mock___en"},{path:"/en/posts.mock",component:Ae,name:"posts.mock___en"},{path:"/en/proxies",component:Fe,children:[{path:"",component:je,name:"proxies___en"},{path:"create",component:Oe,name:"proxies-create___en"},{path:"index.mock",component:$e,name:"proxies-index.mock___en"}]},{path:"/en/proxies.mock",component:Le,name:"proxies.mock___en"},{path:"/en/rss-import",component:Re,children:[{path:"",component:Be,name:"rss-import___en"},{path:"create",component:De,name:"rss-import-create___en"},{path:"folders",component:Ne,name:"rss-import-folders___en"},{path:"index.mock",component:Me,name:"rss-import-index.mock___en"},{path:"folders/create",component:Ve,name:"rss-import-folders-create___en"},{path:"folders/index.mock",component:Ue,name:"rss-import-folders-index.mock___en"}]},{path:"/en/rss-import.mock",component:Ee,name:"rss-import.mock___en"},{path:"/en/settings",component:qe,children:[{path:"",component:He,name:"settings___en"},{path:"api",component:ze,name:"settings-api___en"},{path:"email",component:We,name:"settings-email___en"},{path:"password",component:Ge,name:"settings-password___en"}]},{path:"/en/settings.mock",component:Ke,name:"settings.mock___en"},{path:"/en/smart-tags",component:Xe,children:[{path:"",component:Qe,name:"smart-tags___en"},{path:"create",component:Ye,name:"smart-tags-create___en"},{path:"index.mock",component:Je,name:"smart-tags-index.mock___en"}]},{path:"/en/smart-tags.mock",component:Ze,name:"smart-tags.mock___en"},{path:"/en/smart-tasks",component:ts,children:[{path:"",component:es,name:"smart-tasks___en"},{path:"create",component:ss,name:"smart-tasks-create___en"},{path:"index.mock",component:os,name:"smart-tasks-index.mock___en"}]},{path:"/en/smart-tasks.mock",component:ns,name:"smart-tasks.mock___en"},{path:"/en/statistics",component:is,children:[{path:"",component:as,name:"statistics___en"},{path:"partners",component:rs,name:"statistics-partners___en"},{path:"users",component:cs,name:"statistics-users___en"},{path:"users/UsersChart",component:ls,name:"statistics-users-UsersChart___en"}]},{path:"/en/team",component:us,children:[{path:"",component:ps,name:"team___en"},{path:"create",component:ds,name:"team-create___en"},{path:"directors",component:ms,name:"team-directors___en"},{path:"index.mock",component:hs,name:"team-index.mock___en"}]},{path:"/en/team.mock",component:_s,name:"team.mock___en"},{path:"/en/tests",component:fs,name:"tests___en"},{path:"/en/watermarks",component:bs,children:[{path:"",component:vs,name:"watermarks___en"},{path:"create",component:gs,name:"watermarks-create___en"},{path:"index.mock",component:ys,name:"watermarks-index.mock___en"}]},{path:"/en/watermarks.mock",component:ks,name:"watermarks.mock___en"},{path:"/",component:Tt,name:"index___ru"},{path:"/en/oauth/:source_id",component:xs,name:"oauth-source_id___en"},{path:"/oauth/:source_id",component:xs,name:"oauth-source_id___ru"}],fallback:!1};function Ss(t,e){var base=e._app&&e._app.basePath||Cs.base,o=new v.a(w(w({},Cs),{},{base:base})),n=o.push;o.push=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ws,o=arguments.length>2?arguments[2]:void 0;return n.call(this,t,e,o)};var r=o.resolve.bind(o);return o.resolve=function(t,e,o){return"string"==typeof t&&(t=Object(y.c)(t)),r(t,e,o)},o}var Ts={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var o=e.parent,data=e.data,n=e.props,r=o.$createElement;data.nuxtChild=!0;for(var c=o,l=o.$nuxt.nuxt.transitions,d=o.$nuxt.nuxt.defaultTransition,m=0;o;)o.$vnode&&o.$vnode.data.nuxtChild&&m++,o=o.$parent;data.nuxtChildDepth=m;var h=l[m]||d,_={};
1Ps.forEach(function(t){void 0!==h[t]&&(_[t]=h[t])});var f={};Is.forEach(function(t){"function"==typeof h[t]&&(f[t]=h[t].bind(c))});var v=f.beforeEnter;if(f.beforeEnter=function(t){if(window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")}),v)return v.call(c,t)},!1===h.css){var y=f.leave;(!y||y.length<2)&&(f.leave=function(t,e){y&&y.call(c,t),c.$nextTick(e)})}var k=r("routerView",data);return n.keepAlive&&(k=r("keep-alive",{props:n.keepAliveProps},[k])),r("transition",{props:_,on:f},[k])}},Ps=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],Is=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],As={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},Fs=(o(545),o(5)),js=Object(Fs.a)(As,function(){var t=this,e=t._self._c;return e("div",{staticClass:"__nuxt-error-page"},[e("div",{staticClass:"error"},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[e("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),e("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?e("p",{staticClass:"description"},[void 0===t.$route?e("a",{staticClass:"error-link",attrs:{href:"/"}}):e("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])},[function(){var t=this._self._c;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt")])])}],!1,null,null,null).exports,Os=o(41),$s=(o(29),{name:"Nuxt",components:{NuxtChild:Ts,NuxtError:js},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(k.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(Os.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var o=e.options;if(o.key)return"function"==typeof o.key?o.key(this.$route):o.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.default.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err&&this.nuxt.errPageReady?this.errorFromNuxtError?(this.$nextTick(function(){return e.errorFromNuxtError=!1}),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick(function(){return e.displayingNuxtError=!1}),t(js,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),Ls=(o(39),o(43),o(44),o(22),{data:function(){return{loading:!1}},methods:{start:function(){this.loading=!0},finish:function(){this.loading=!1}}}),Rs=Object(Fs.a)(Ls,function(){var t=this,e=t._self._c;return t.loading?e("div",{staticClass:"d-flex align-items-center justify-content-center app-loading"},[t._m(0)]):t._e()},[function(){var t=this._self._c;return t("div",{staticClass:"d-flex justify-content-center bg-light app-loading-progress"},[t("div",{staticClass:"spinner-border my-auto",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}],!1,null,null,null).exports,Bs=(o(547),o(549),o(551),o(553),o(555),{middleware:["index"]}),Ds=Object(Fs.a)(Bs,function(){var t=this._self._c;return t("div",[t("nuxt")],1)},[],!1,null,null,null).exports,Ns={layout:"personal"},Ms=Object(Fs.a)(Ns,function(){var t=this._self._c;return t("div",{staticClass:"p-5 legal-page"},[t("nuxt")],1)},[],!1,null,null,null).exports,Vs=(o(23),o(40),o(143),{props:["director"],data:function(){return{directors:[],isFormReady:!1,currentPage:1,totalRows:0,rowsLimit:0}},fetch:function(){var t=this;this.$axios.get("/team/directors",{params:{page:this.currentPage}}).then(function(e){t.directors=e.data.list,t.totalRows=e.data.total_rows,t.rowsLim
1it=e.data.rows_limit,t.isFormReady=!0}).catch(function(e){t.bvToast("danger",t.getRequestErrorText(e.response))})},watch:{currentPage:function(){this.$fetch()}},methods:{signIn:function(t){var e=this;this.toggleLoading(!0),this.sendRequest("post","/team/directors/in",{director_id:t},function(){document.location.reload()},function(){e.toggleLoading(!1)})},signOut:function(){this.toggleLoading(!0),this.sendRequest("post","/team/directors/out",null,function(){document.location.reload()})}}}),Us=Object(Fs.a)(Vs,function(){var t=this,e=t._self._c;return e("div",[t.isFormReady?t._e():e("div",{staticClass:"p-3 text-center text-secondary"},[t._v("\n    "+t._s(t.$t("team").directors.header.loading)+"\n  ")]),t._v(" "),t.isFormReady&&!t.directors.length?e("div",{staticClass:"p-3 text-center"},[t._v("\n    "+t._s(t.$t("team").directors.header.no_items)+"\n  ")]):t._e(),t._v(" "),t.isFormReady&&t.directors.length?e("div",{staticClass:"p-3"},t._l(t.directors,function(o,n){return e("div",{staticClass:"row g-0",class:{"mt-3":n}},[e("div",{staticClass:"col"},[e("div",{class:{"text-secondary":!o.name}},[t._v("\n          "+t._s(o.name?o.name:t.$t("team").directors.header.no_name)+"\n        ")]),t._v(" "),e("div",{staticClass:"text-secondary small mt-1"},[t._v("\n          "+t._s(o.email)+"\n        ")])]),t._v(" "),e("div",{staticClass:"col-auto d-flex align-items-center"},[t.director&&t.director.id===o.id?e("div",{staticClass:"btn btn-primary btn-sm me-1 ms-md-1 me-md-0",on:{click:t.signOut}},[e("fa",{attrs:{icon:["fas","sign-out-alt"]}})],1):e("div",{staticClass:"btn btn-light btn-sm me-1 ms-md-1 me-md-0",on:{click:function(e){return t.signIn(o.id)}}},[e("fa",{attrs:{icon:["fas","sign-in-alt"]}})],1)])])}),0):t._e(),t._v(" "),t.totalRows>t.rowsLimit?e("div",{staticClass:"mx-n3 mt-3 px-3 pt-3 d-flex justify-content-center errors-pagination"},[e("b-pagination",{staticClass:"m-0 py-3",attrs:{"total-rows":t.totalRows,"per-page":t.rowsLimit,"first-text":t.$t("pagination").first,"prev-text":t.$t("pagination").prev,"next-text":t.$t("pagination").next,"last-text":t.$t("pagination").last,size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}})],1):t._e()])},[],!1,null,null,null).exports,Es=Object(Fs.a)({},function(){this._self._c;return this._m(0)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-14 py-3"},[e("div",{staticClass:"mb-2 row"},[e("div",{staticClass:"col-sm-4 text-end text-secondary"},[t._v("Спросить:")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[t._v("\n        В "),e("a",{attrs:{href:"https://t.me/callmeandrey",target:"_blank"}},[t._v("Telegram")])])]),t._v(" "),e("div",{staticClass:"mb-2 row"},[e("div",{staticClass:"col-sm-4 text-end text-secondary"},[t._v("Написать:")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[t._v("\n        [email protected]\n      ")])]),t._v(" "),e("div",{staticClass:"pb-3 row"},[e("div",{staticClass:"col-sm-4 text-end text-secondary"},[t._v("Позвонить:")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[t._v("\n        8 (914) 688-42-95\n      ")])]),t._v(" "),e("hr",{staticClass:"my-3"}),t._v(" "),e("div",{staticClass:"pt-3 mb-2 row"},[e("div",{staticClass:"col-sm-4 text-end text-secondary"},[t._v("ИП:")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[t._v("\n        Охотин Андрей Петрович\n      ")])]),t._v(" "),e("div",{staticClass:"mb-2 row"},[e("div",{staticClass:"col-sm-4 text-end text-secondary"},[t._v("ОГРН:")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[t._v("\n        1027700067328\n      ")])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-4 text-end text-secondary"},[t._v("Адрес:")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[t._v("\n        Россия, г. Владивосток\n      ")])])])}],!1,null,null,null).exports,qs=o(293),Hs=o(298),zs=o(54);function Ws(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return Gs(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Gs(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t}
1,e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function Gs(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var Ks={data:function(){return{catalogId:0,pageContent:""}},computed:{catalogDescription:function(){var t,e=Ws(this.catalogList);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.catalogId)return o.description}}catch(t){e.e(t)}finally{e.f()}return""},catalogList:function(){return"socautoposter"===this.config.logo||"socgun"===this.config.logo?[{id:1,parent_id:0,title:"My posts",tip:"Creating posts, projects, and schedules"},{id:2,parent_id:0,title:"Cross-posting",tip:"Copying posts between social networks"},{id:3,parent_id:0,title:"Posts search",tip:"Search and copy posts from social networks"},{id:4,parent_id:0,title:"Publish from RSS",tip:"Copying posts from websites"},{id:57,parent_id:0,title:"Smart tasks",tip:"Automation of routine tasks"},{id:53,parent_id:0,title:"My managers",tip:"Teamwork",page_path:"team/"},{id:6,parent_id:0,title:"My accounts",tip:"Connecting social networks"},{id:7,parent_id:0,title:"Not work?",tip:"Description of problems and errors"},{id:8,parent_id:1,title:"General information",tip:"Form for creating a post",page_path:"posts/common/"},{id:9,parent_id:1,title:"Stories",tip:"Creating stories",page_path:"posts/stories/"},{id:12,parent_id:1,title:"Settings",tip:"Repeat, delete and more",page_path:"posts/settings/"},{id:13,parent_id:1,title:"Cases",tip:"Tips for use"},{id:14,parent_id:1,title:"Projects",tip:"Grouping social networks into sets",page_path:"posts/projects/"},{id:15,parent_id:1,title:"Schedules",tip:"Posting time for each day",page_path:"posts/schedules/"},{id:52,parent_id:1,title:"Batch uploading",tip:"Posts from Excel or photo/video files",page_path:"posts/batch_uploading/"},{id:16,parent_id:13,title:"Posts repeat",tip:"Once a day, a week or more",page_path:"posts/cases/repeat/"},{id:17,parent_id:13,title:"Various texts",tip:"For different social networks",page_path:"posts/cases/text/"},{id:18,parent_id:13,title:"Random text",tip:"From the set you specified",page_path:"posts/cases/random_text/"},{id:19,parent_id:13,title:"Text formatting",tip:"Bold, italic, and more",page_path:"posts/cases/text_formatting/"},{id:20,parent_id:13,title:"Premium Emoji",tip:"For premium Telegram accounts",page_path:"posts/cases/premium_emoji/"},{id:21,parent_id:13,title:"Named links",tip:"Links embedded in the text",page_path:"posts/cases/named_links/"},{id:22,parent_id:13,title:"Text rewriting",tip:"Text modification using AI",page_path:"posts/cases/text_rewriting/"},{id:54,parent_id:13,title:"Posting by account",tip:"Extended posts in Telegram",page_path:"posts/cases/extended_post/"},{id:24,parent_id:2,title:"General information",tip:"Form for creating a connection",page_path:"cross_posting/common/"},{id:25,parent_id:2,title:"Get posts from",tip:"Links to sources, shorts, stories",page_path:"cross_posting/sources/"},{id:26,parent_id:2,title:"How often to check",tip:"Intervals, how many posts to take",page_path:"cross_posting/interval/"},{id:27,parent_id:2,title:"When and where to publish",tip:"Immediately or by schedule",page_path:"cross_posting/target/"},{id:28,parent_id:2,title:"Copy mode",tip:"Regular posts, reposts",page_path:"cross_posting/copy_method/"},{id:29,parent_id:2,title:"Posts filter",tip:"Which posts to take or not",page_path:"cross_posting/filter/"},{id:30,parent_id:2,title:"Changing the text of posts",tip:"Rewriting, translation, auto-replacements",page_path:"cross_posting/text/"},{id:31,parent_id:2,title:"Caption for posts",tip:"Tags, links, and more",page_path:"cross_posting/caption/"},{id:32,parent_id:2,title:"More settings",tip:"Post to shorts, stories, or otherwise",page_path:"cross_posting/settings/"},{id:56,parent_id:2,title:"Work with connections",tip:"Check for a period, pause, and more",page_path:"cross_posting/list/"},{id:33,parent_id:3,title:"General information",tip:"Retrieve, search, publish",page_path:"posts_search/common/"},{id:34,parent_id:3,title:"Sources of posts",tip:"Social networks, filter settings",page_path:"posts_search/sources/"},{id:35,parent_id:3,title:"Retrieve posts",tip:"Collecting posts, working with sources",page_path:"posts_search/parse/"},{id:36,parent_id:3,title:"View results",tip:"Filter and sort posts",page_path:"posts_search/search/"},{id:37,parent_id:3,title:"Publishing posts",tip:"Viewing and editing",page_path:"posts_search/publish/"},{id:38,parent_id:4,title:"General information",tip:"What is RSS, examples",page_path:"rss_import/common/"}
1,{id:39,parent_id:4,title:"How to connect",tip:"Channel creation, settings",page_path:"rss_import/connect/"},{id:42,parent_id:6,title:"Connect Instagram",tip:"Standard or via Facebook",page_path:"accounts/ig/"},{id:43,parent_id:6,title:"Connect Telegram",tip:"Channels, groups, accounts"},{id:44,parent_id:6,title:"Connect Twitter/X",tip:"Your application, settings",page_path:"accounts/tw/"},{id:47,parent_id:43,title:"General information",tip:"The difference between channels and accounts",page_path:"accounts/tg/common/"},{id:48,parent_id:43,title:"Connect channel/group",tip:"Public or private",page_path:"accounts/tg/channel/"},{id:49,parent_id:43,title:"Connect account",tip:"For parsing and posting",page_path:"accounts/tg/account/"},{id:55,parent_id:43,title:"Parent account",tip:"Posting by account",page_path:"accounts/tg/parent/"},{id:50,parent_id:7,title:"Posts are not publishing",tip:"How to find an error",page_path:"problems/publishing/"},{id:51,parent_id:7,title:"Cross-posting doesn't work",tip:"How to set it up correctly",page_path:"problems/cross_posting/"},{id:62,parent_id:57,title:"Create posts with AI",tip:"Помощь с темами и написание текстов",page_path:"smart_tasks/create_posts/"},{id:63,parent_id:2,title:"Connections statistics",tip:"Collection of posts, filtered, errors",page_path:"cross_posting/statistics/"}]:[{id:1,parent_id:0,title:"Мои посты",tip:"Создание постов, проектов и расписаний"},{id:2,parent_id:0,title:"Кросс-постинг",tip:"Копирование постов между соц сетями"},{id:3,parent_id:0,title:"Поиск постов",tip:"Поиск и копирование постов из соц сетей"},{id:4,parent_id:0,title:"Постинг из RSS",tip:"Копирование постов с сайтов"},{id:57,parent_id:0,title:"Умные функции",tip:"Автоматизация рутинных задач"},{id:53,parent_id:0,title:"Мои сотрудники",tip:"Работа в команде",page_path:"team/"},{id:6,parent_id:0,title:"Мои аккаунты",tip:"Подключение соц сетей"},{id:7,parent_id:0,title:"Не работает",tip:"Описание проблем и ошибок"},{id:8,parent_id:1,title:"Общая информация",tip:"Форма для создания поста",page_path:"posts/common/"},{id:9,parent_id:1,title:"Истории",tip:"Истории, статусы, моменты",page_path:"posts/stories/"},{id:10,parent_id:1,title:"Клипы",tip:"Клипы, shorts, reels",page_path:"posts/shorts/"},{id:11,parent_id:1,title:"Каналы ВК",tip:"Настройка и постинг",page_path:"posts/channels/"},{id:12,parent_id:1,title:"Настройки",tip:"Повтор, удаление и другое",page_path:"posts/settings/"},{id:13,parent_id:1,title:"Кейсы",tip:"Хитрости использования"},{id:14,parent_id:1,title:"Проекты",tip:"Группировка соц сетей в наборы",page_path:"posts/projects/"},{id:15,parent_id:1,title:"Расписания",tip:"Время постинга на каждый день",page_path:"posts/schedules/"},{id:52,parent_id:1,title:"Пакетная загрузка",tip:"Посты из Excel или фото/видео файлов",page_path:"posts/batch_uploading/"},{id:16,parent_id:13,title:"Повтор постов",tip:"Раз в день, неделю и более",page_path:"posts/cases/repeat/"},{id:17,parent_id:13,title:"Разные тексты",tip:"Для разных соц сетей",page_path:"posts/cases/text/"},{id:18,parent_id:13,title:"Случайный текст",tip:"Из указанного вами набора",page_path:"posts/cases/random_text/"},{id:19,parent_id:13,title:"Форматирование текста",tip:"Жирный, курсив и другое",page_path:"posts/cases/text_formatting/"},{id:20,parent_id:13,title:"Премиум-эмодзи",tip:"Для премиум аккаунтов Телеграм",page_path:"posts/cases/premium_emoji/"},{id:21,parent_id:13,title:"Именные ссылки",tip:"Ссылки зашитые в текст",page_path:"posts/cases/named_links/"},{id:22,parent_id:13,title:"Рерайт текста",tip:"Изменение текста с помощью ИИ",page_path:"posts/cases/text_rewriting/"},{id:23,parent_id:13,title:"Пост из соц сети",tip:"Загрузка по ссылке из ВК или ОК",page_path:"posts/cases/copy_from_network/"},{id:54,parent_id:13,title:"Публикация от имени аккаунта",tip:"Продвинутые посты в Телеграм",page_path:"posts/cases/extended_post/"},{id:24,parent_id:2,title:"Общая информация",tip:"Форма для создания связи",page_path:"cross_posting/common/"},{id:25,parent_id:2,title:"Откуда брать посты",tip:"Ссылки на источник, клипы, истории",page_path:"cross_posting/sources/"},{id:26,parent_id:2,title:"Как часто проверять",tip:"Интервалы, сколько постов брать",page_path:"cross_posting/interval/"},{id:27,parent_id:2,title:"Когда и куда публиковать",tip:"Сразу или по расписанию",page_path:"cross_posting/target/"},{id:28,parent_id:2,title:"Метод копирования",tip:"Обычные посты, репосты",page_path:"cross_posting/copy_method/"},{id:29,parent_id:2,title:"Фильтр постов",tip:"Какие посты брать, а какие нет",page_path:"cross_posting/filter/"},{id:30,parent_id:2,title:"Изменение текста",tip:"Рерайт, перевод, автозамены",page_path:"cross_posting/text/"},{id:31,parent_id:2,title:"Подпись к постам",tip:"Теги, ссылки и другое",page_path:"cross_posting/caption/"},{id:32,parent_id:2,title:"Другие настройки",tip:"Постить в клипы, истории или иным образом",page_path:"cross_posting/settings/"},{id:56,parent_id:2,title:"Работа со связями",tip:"Проверка за период, пауза и другое",page_path:"cross_posting/list/"},{id:64,parent_id:2,title:"Настройка ИИ для рерайта",tip:"Где взять ключ и как его указать",page_path:"cross_posting/ai_keys/"},{id:33,parent_id:3,title:"Общая информация",tip:"Извлечение, поиск, публикация",page_path:"posts_search/common/"},{id:34,parent_id:3,title:"Источники постов",tip:"Соц сети, настройка фильтров",page_path:"posts_search/sources/"},{id:35,parent_id:3,title:"Извлечение постов",tip:"Сбор постов, работа с источниками",page_path:"posts_search/parse/"},{id:36,parent_id:3,title:"Просмотр результатов",tip:"Фильтр и сортировка постов",page_path:"posts_search/search/"},{id:37,parent_id:3,title:"Публикация постов",tip:"Просмотр и редактирование",page_path:"posts_search/publish/"},{id:38,parent_id:4,title:"Общая информация",tip:"Что такое RSS, примеры",page_path:"rss_import/common/"},{id:39,parent_id:4,title:"Подключение",tip:"Создание канала, настройки",page_path:"rss_import/connect/"},{id:41,parent_id:6,title:"Подключение ВКонтакте",tip:"Стандартное, продвинутое",page_path:"accounts/vk/"},{id:67,parent_id:6,title:"Подключение ВК Чатов",tip:"По ссылке из группы",page_path:"accounts/vk/chat/"},{id:65,parent_id:6,title:"Подключение Max",tip:"Каналы, группы, аккаунты"},{id:42,parent_id:6,title:"Подключение Инсты",tip:"Стандартное или через Facebook",page_path:"accounts/ig/"},{id:43,parent_id:6,title:"Подключение Телеграм",tip:"Каналы, группы, аккаунты"},{id:44,parent_id:6,title:"Подключение Твиттер/X",tip:"Свое приложение, настройка",page_path:"accounts/tw/"},{id:45,parent_id:6,title:"Подключение канала Дзен",tip:"Через Яндекс ID или ВК ID",page_path:"accounts/dz/"}
1,{id:46,parent_id:6,title:"Подключение WhatsApp",tip:"Через Wappi.pro или Green-Api.com",page_path:"accounts/wa/"},{id:47,parent_id:43,title:"Общая информация",tip:"Разница между каналами и аккаунтами",page_path:"accounts/tg/common/"},{id:48,parent_id:43,title:"Подключение канала",tip:"Открытого или закрытого",page_path:"accounts/tg/channel/"},{id:49,parent_id:43,title:"Подключение аккаунта",tip:"Для парсинга и постинга",page_path:"accounts/tg/account/"},{id:55,parent_id:43,title:"Родительский аккаунт",tip:"Постинг от имени аккаунта",page_path:"accounts/tg/parent/"},{id:50,parent_id:7,title:"Не выходят посты",tip:"Как найти ошибку",page_path:"problems/publishing/"},{id:51,parent_id:7,title:"Не работает кросс-постинг",tip:"Как правильно настроить",page_path:"problems/cross_posting/"},{id:58,parent_id:57,title:"Фильтр комментариев",tip:"Удаление комментариев к постам",page_path:"smart_tasks/filter_comments/"},{id:59,parent_id:57,title:"Ответы на комментарии",tip:"По ключевым словам и с помощью ИИ",page_path:"smart_tasks/answer_comments/"},{id:60,parent_id:57,title:"Удаление рекламных постов",tip:"По стоп-словам, вложениям и охвату",page_path:"smart_tasks/filter_ads/"},{id:61,parent_id:57,title:"Чистка стены",tip:"Удаление постов со стены",page_path:"smart_tasks/delete_posts/"},{id:62,parent_id:57,title:"Создание постов с помощью ИИ",tip:"Помощь с темами и написание текстов",page_path:"smart_tasks/create_posts/"},{id:66,parent_id:57,title:"Настройка ИИ для создания постов",tip:"Где взять ключ",page_path:"smart_tasks/ai_keys/"},{id:63,parent_id:2,title:"Статистика связей",tip:"Сбор постов, отклонения, ошибки",page_path:"cross_posting/statistics/"},{id:68,parent_id:65,title:"Подключение канала",tip:"Открытого или закрытого",page_path:"accounts/mx/channel/"},{id:69,parent_id:65,title:"Подключение аккаунта",tip:"Для Кросс-постинга и Поиска постов",page_path:"accounts/mx/account/"}]},catalog:function(){var t=this;return this.catalogList.filter(function(e){return e.parent_id===t.catalogId})},breadcrumb:function(){return[{id:0,title:this.$t("help").form.main}].concat(Object(zs.a)(this.getCatalogPath(this.catalogId)).reverse())}},mounted:function(){window.helpComponent=this,window.setCatalogId=function(t,e){console.log(t,e),t.preventDefault(),window.helpComponent&&window.helpComponent.setCatalogId(e)};var t=window.location.hash.replace("#","");if(t&&t.startsWith("help:")){var e=t.split(":")[1];e&&this.setCatalogId(parseInt(e))}},watch:{catalogId:function(t){this.pageContent="";var e,o=Ws(this.catalogList);try{for(o.s();!(e=o.n()).done;){var n=e.value;if(n.id===t){n.page_path&&this.loadPage(n.page_path);break}}}catch(t){o.e(t)}finally{o.f()}}},methods:{handlePageContentClicks:function(t){var img=t.target.closest("img");if(img){var e=img.src;window.open(e,"_blank")}},copyCatalogPath:function(){var t=this;if(navigator.clipboard){var text="".concat(this.domainURL,"/posts#help:").concat(this.catalogId);navigator.clipboard.writeText(text).then(function(){t.bvToast("success",t.$t("help").form.page_copied)}).catch(function(t){console.error("Не удалось скопировать текст:",t)})}},loadPage:function(path){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var o,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.isLoading=!0,o="".concat(t.domainURL,"/help/ru/").concat(path,"/index.html"),"socautoposter"!==t.config.logo&&"socgun"!==t.config.logo||(o="".concat(t.domainURL,"/help/en/").concat(path,"/index.html")),e.next=1,t.$axios.get(o);
1case 1:n=e.sent,t.isLoading=!1,t.pageContent=n.data,setTimeout(function(){t.$refs["page-content"]&&t.$refs["page-content"].removeEventListener("click",t.handlePageContentClicks),t.$refs["page-content"].addEventListener("click",t.handlePageContentClicks)},1e3);case 2:case"end":return e.stop()}},e)}))()},getCatalogPath:function(t){var e,path=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=Ws(this.catalogList);try{for(o.s();!(e=o.n()).done;){var n=e.value;if(n.id===t&&(path.push(n),n.parent_id))return this.getCatalogPath(n.parent_id,path)}}catch(t){o.e(t)}finally{o.f()}return path},setCatalogId:function(t){this.scrollHelpTop(),this.catalogId=t},scrollHelpTop:function(){document.getElementById("help-modal").scrollTop=0}}},Xs=Ks,Qs=Object(Fs.a)(Xs,function(){var t=this,e=t._self._c;return e("div",[e("nav",{attrs:{"aria-label":"breadcrumb"}},[e("ol",{staticClass:"breadcrumb text-14"},[t._l(t.breadcrumb,function(o){return e("li",{staticClass:"breadcrumb-item",class:{active:o.id===t.catalogId},on:{click:function(e){return t.setCatalogId(o.id)}}},[o.id===t.catalogId?[t._v("\n          "+t._s(o.title)+"\n        ")]:e("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault()}}},[t._v("\n          "+t._s(o.title)+"\n        ")])],2)}),t._v(" "),t.catalogId?e("li",{staticClass:"ps-3"},[e("a",{attrs:{href:"#",title:t.$t("help").form.copy_page},on:{click:function(e){return e.preventDefault(),t.copyCatalogPath.apply(null,arguments)}}},[e("fa",{attrs:{icon:["fas","copy"]}})],1)]):t._e()],2)]),t._v(" "),t.catalogDescription?e("div",{staticClass:"pb-4 text-14 text-secondary"},[t._v("\n    "+t._s(t.catalogDescription)+"\n  ")]):t._e(),t._v(" "),t.catalog.length?e("ul",{staticClass:"list-group list-unstyled"},t._l(t.catalog,function(o){return e("li",{key:o.id,staticClass:"list-group-item list-group-item-action",class:{disabled:o.disabled,"opacity-75":o.disabled,"bg-light":!o.disabled},on:{click:function(e){return t.setCatalogId(o.id)}}},[e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col-12 col-lg-auto"},[e("b",[t._v(t._s(o.title))])]),t._v(" "),o.tip?e("div",{staticClass:"col-12 col-lg d-flex"},[e("span",{staticClass:"text-secondary mx-3 d-none d-lg-block"},[t._v("\n            —\n          ")]),t._v(" "),e("span",{staticClass:"text-secondary"},[t._v("\n            "+t._s(o.tip)+"\n          ")])]):t._e()])])}),0):t._e(),t._v(" "),t.pageContent?e("div",{ref:"page-content",staticClass:"px-lg-4 pb-lg-4 pt-3",domProps:{innerHTML:t._s(t.pageContent)}}):t._e(),t._v(" "),e("div",{staticClass:"text-14 mt-3 text-center text-secondary"},[t._v("\n    "+t._s(t.$t("help").form.questions_prefix)+"\n    "),e("a",{attrs:{href:t.$t("help").form.support_link,target:"_blank"}},[t._v("\n      "+t._s(t.$t("help").form.support_link_name)+"\n    ")])])])},[],!1,null,null,null),Ys=Qs.exports,Js=o(33),Zs=o(12),to=o(89),eo=o(73),so=o(379);function oo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function no(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?oo(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):oo(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var io={mixins:[eo.a,so.a],components:{DirectorsForm:Us,ContactsForm:Es,PostForm:qs.default,ConnectionForm:Hs.a,Help:Ys,FormModalHeader:Js.default},data:function(){return{time:"00:00",timeTimer:null,notificationsRequestTimeout:null,notificationsCancelRequestSource:null,notificationsLoaded:!1,notifications:[],socialNetworks:Object(Zs.cloneDeep)(to.data),isDirectorsOpened:!1,isContactsOpened:!1,editedPostId:0,editedConnectionId:0,langButtons:[{name:"Русский",locale:"ru"},{name:"English",locale:"en"}],sidebarOpened:!1}},mounted:function(){window.appHeaderComponent=this,this.timeTimer=setInterval(this.updateTime,1e3);var t=window.location.hash.replace("#","");t&&t.startsWith("help:")&&t.split(":")[1]&&this.openHelpForm()}
1,destroyed:function(){this.itemsCancelTokenAndRequestTimeoutCleanup()},computed:no(no({},Object(l.b)({timezoneOffset:"settings/timezoneOffset",isHasNotifications:"settings/isHasNotifications",startSubscriptionDays:"settings/startSubscriptionDays",proSubscriptionDays:"settings/proSubscriptionDays",vipSubscriptionDays:"settings/vipSubscriptionDays",vip2SubscriptionDays:"settings/vip2SubscriptionDays",vip3SubscriptionDays:"settings/vip3SubscriptionDays",vip4SubscriptionDays:"settings/vip4SubscriptionDays",vip5SubscriptionDays:"settings/vip5SubscriptionDays",vip6SubscriptionDays:"settings/vip6SubscriptionDays",vip7SubscriptionDays:"settings/vip7SubscriptionDays",isPrivateOffers:"settings/isPrivateOffers",postsCount:"settings/postsCount",director:"settings/director",subscriptionDays:"settings/subscriptionDays",sidebarIsOpened:"sidebar/isOpened",originalHost:"global/originalHost"})),{},{notificationsBtnClass:function(){return this.isHasNotifications?"rounded-0 text-warning":"rounded-0"},subscriptionBattery:function(){return this.subscriptionDays?"battery-full":"battery-empty"},subscriptionBtnClass:function(){return 1===this.config.plan_type?this.subscriptionDays?"primary":"danger":this.subscriptionDays?"primary":"warning"},subscriptionObject:function(){return{start:this.startSubscriptionDays,pro:this.proSubscriptionDays,vip:this.vipSubscriptionDays,vip_2:this.vip2SubscriptionDays,vip_3:this.vip3SubscriptionDays,vip_4:this.vip4SubscriptionDays,vip_5:this.vip5SubscriptionDays,vip_6:this.vip6SubscriptionDays,vip_7:this.vip7SubscriptionDays}},subscriptionPostsLimit:function(){return 15724===this.$auth.user.id?1e5:1===this.config.plan_type?this.vip6SubscriptionDays||this.vip7SubscriptionDays?4e4:this.vip5SubscriptionDays?3e4:this.vip4SubscriptionDays?25e3:this.vip3SubscriptionDays?2e4:this.vip2SubscriptionDays?15e3:this.vipSubscriptionDays?5e3:this.proSubscriptionDays?3e3:1e3:this.vipSubscriptionDays?5e3:this.proSubscriptionDays?2500:this.startSubscriptionDays?1e3:10}}),watch:{isDirectorsOpened:function(t){t?this.$refs["directors-modal"].show():this.$refs["directors-modal"].hide()},isContactsOpened:function(t){t?this.$refs["contacts-modal"].show():this.$refs["contacts-modal"].hide()},sidebarIsOpened:function(t){var e=document.getElementById("app-sidebar");t?e.classList.add("opened"):e.classList.remove("opened")}},methods:{toggleSidebar:function(){this.$store.commit("sidebar/isOpened",!this.sidebarIsOpened)},closeHelpForm:function(){this.$refs["help-modal"].hide()},openHelpForm:function(){this.$refs["help-modal"].show()},closePostForm:function(){this.$refs["post-modal"].hide()},openPostForm:function(t){this.editedPostId=t,this.$refs["post-modal"].show()},closeConnectionForm:function(){this.$refs["connection-modal"].hide()},openConnectionForm:function(t){this.editedConnectionId=t,this.$refs["connection-modal"].show()},setNotificationAsViewed:function(t){for(var e in this.notifications)if(this.notifications[e].id===t){this.notifications[e].is_viewed=1;break}},bodyClick:function(){document.body.click()},itemsCancelTokenAndRequestTimeoutCleanup:function(){this.notificationsRequestTimeout&&clearTimeout(this.notificationsRequestTimeout),this.notificationsCancelRequestSource&&this.notificationsCancelRequestSource.cancel("Request canceled.")},shownNotificationsDropdown:function(){var t=this;this.loadNotifications("/notifications?limit=10",function(e){t.notifications=e.data.list})},hiddenNotificationsDropdown:function(){this.itemsCancelTokenAndRequestTimeoutCleanup()},loadNotificationsRequest:function(t,e){var o=this;this.$axios.get(t,{cancelToken:this.notificationsCancelRequestSource.token}).then(function(t){e&&"function"==typeof e&&e(t)}).finally(function(){o.notificationsLoaded=!0,o.$store.commit("settings/isHasNotifications",0)})},loadNotifications:function(t,e){var o=this;this.itemsCancelTokenAndRequestTimeoutCleanup(),this.notificationsRequestTimeout=setTimeout(function(){o.notificationsCancelRequestSource=o.$axios.CancelToken.source(),o.loadNotificationsRequest(t,e)},100)},updateTime:function(){var t=new Date,e=t.getTime()+6e4*t.getTimezoneOffset();t=new Date(e+36e5*this.timezoneOffset),this.time=this.zeroPadding(t.getHours(),2)+":"+this.zeroPadding(t.getMinutes(),2)},zeroPadding:function(t,e){for(var o="",i=0;i<e;i++)o+="0";return(o+t).slice(-e)},logout:function(){this.$auth.logout()},goToSettings:function(){this.goToRoute(this.localePath("/settings"))},signOut:function(){this.sendRequest("post","/team/directors/out",null,function(){document.location.reload()})}}},ao=Object(Fs.a)(io,function(){var t=this,e=t._self._c;return e("nav",{staticClass:"navbar sticky-top p-0 bg-primary app-header",attrs:{id:"app-header"}},["hooppy"===t.config.logo?e("div",{staticClass:"d-none d-lg-flex align-items-center justify-content-center text-white app-logo"},[e("nuxt-link",{staticClass:"text-white position-relative",attrs:{to:"/"}},[t._v("\n        HOOPPY\n        "),e("div",{staticClass:"red-ball"},[e("div",{staticClass:"red-ball-blink"}),t._v(" "),e("div",{staticClass:"red-ball-line"})]),t._v(" "),e("div",{staticClass:"green-ball"},[e("div",{staticClass:"green-ball-blink"}),t._v(" "),e("div",{staticClass:"green-ball-line"}
1)])])],1):"liketopost"===t.config.logo?e("div",{staticClass:"d-none d-lg-flex align-items-center justify-content-center text-white app-logo no-spacing"},[e("nuxt-link",{staticClass:"text-white",attrs:{to:"/"}},[e("b",[e("fa",{attrs:{icon:["fas","heart"]}}),t._v("2Post")],1)])],1):t._e(),t._v(" "),"socautoposter"===t.config.logo||"socgun"===t.config.logo?e("div",{staticClass:"d-none d-lg-flex align-items-center justify-content-center text-white app-logo"},[e("a",{staticClass:"text-white",attrs:{href:"/"}},[t._v("\n        SocAutoPoster\n      ")])]):t._e(),t._v(" "),e("div",{staticClass:"d-flex align-items-center justify-content-center d-lg-none burger-btn",on:{click:t.toggleSidebar}},[e("fa",{attrs:{icon:["fas",t.sidebarIsOpened?"times":"bars"]}})],1),t._v(" "),e("nav",{staticClass:"nav ms-auto"},[e("b-dropdown",{staticClass:"dropdown-no-arrow",attrs:{right:"",variant:"primary","toggle-class":"rounded-0",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{staticClass:"me-2",attrs:{icon:["fas","clock"]}}),t._v(t._s(t.time)+"\n        ")]},proxy:!0}])},[t._v(" "),e("b-dropdown-item-button",{attrs:{"button-class":"btn-sm"},on:{click:t.goToSettings}},[t._v("\n          "+t._s(t.$t("header").timezone_settings)+"\n        ")])],1),t._v(" "),t.config.posts_counter?e("b-dropdown",{staticClass:"dropdown-no-arrow",attrs:{right:"",variant:"primary","toggle-class":"rounded-0",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{staticClass:"me-2",class:{"text-warning":t.postsCount>t.subscriptionPostsLimit},attrs:{icon:["fas","paper-plane"]}}),e("span",{class:{"text-warning":t.postsCount>t.subscriptionPostsLimit}},[t._v(t._s(t.postsCount))])]},proxy:!0}],null,!1,3162371010)},[t._v(" "),e("b-dropdown-item-button",{attrs:{"button-class":"btn-sm"}},[t._v("\n          "+t._s(t.$t("header").posts_created_1)+" "),e("b",{class:{"text-warning":t.postsCount>t.subscriptionPostsLimit}},[t._v(t._s(t.postsCount))]),t._v(" "+t._s(t.wordsDeclension(t.postsCount,t.$t("header").posts_created_2))+" "+t._s(t.$t("header").posts_created_3)+" "),e("b",[t._v(t._s(t.subscriptionPostsLimit))])])],1):t._e(),t._v(" "),e("b-dropdown",{staticClass:"dropdown-no-arrow",attrs:{right:"",variant:t.subscriptionBtnClass,size:"sm","toggle-class":"rounded-0"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{staticClass:"me-2",attrs:{icon:["fas",t.subscriptionBattery]}}),t._v(t._s(t.subscriptionDays)+"\n        ")]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"billing-info"},[e("b-dropdown-text",[e("b",[t._v(t._s(t.$t("header").plans))])]),t._v(" "),e("ul",{staticClass:"px-0 my-2 py-2"},[2!==t.config.plan_type||t.subscriptionDays?t._e():e("li",{staticClass:"px-4 mb-2"},[t._v("\n              You are in "),e("b",{staticClass:"text-success"},[t._v("Free plan")]),t._v(" now!\n            ")]),t._v(" "),t._l(t.config.plans_slugs["type_".concat(t.config.plan_type)],function(o){return"vip_7"!==o||t.isPrivateOffers?e("li",{staticClass:"px-4 d-flex justify-content-between"},[e("div",[e("b",[t._v(t._s(t.config.plans_names[t.config.name][o]))]),t._v(" "),e("span",{staticClass:"opacity-50"},[t._v(t._s(o.replace("_","-")))])]),t._v(" "),e("div",[e("span",{class:{"text-secondary":!t.subscriptionObject[o]}},[t._v("\n                  "+t._s(t.subscriptionObject[o])+"\n                ")]),t._v(" "),e("span",{staticClass:"text-secondary"},[t._v("\n                  "+t._s(t.$t("header").plan_days)+"\n                ")])])]):t._e()})],2),t._v(" "),e("b-dropdown-text",[e("nuxt-link",{attrs:{to:"/billing"},nativeOn:{click:function(e){return t.bodyClick.apply(null,arguments)}}},[t._v("\n              "+t._s(t.$t("header").plans_details)+"\n            ")])],1)],1)]),t._v(" "),this.$i18n.localeCodes.length>1?e("b-dropdown",{staticClass:"dropdown-no-arrow",attrs:{right:"",variant:"primary",size:"sm","toggle-class":"rounded-0"},scopedSlots:t._u([{key:"button-content",fn:function(){return[t._v("\n          "+t._s(t.$i18n.locale.toLocaleUpperCase())+"\n        ")]},proxy:!0}],null,!1,164181668)},[t._v(" "),e("div",[e("ul",{staticClass:"px-0 list-unstyled"},t._l(t.langButtons,function(n){return e("li",[e("a",{staticClass:"dropdown-item btn-sm d-flex align-items-center",class:{active:t.$i18n.locale===n.locale},attrs:{href:t.switchLocalePath(n.locale)}}
1,[e("img",{staticClass:"flag-icon me-2",attrs:{src:o(561)("./"+n.locale+".svg"),alt:""}}),t._v(t._s(n.name)+"\n              ")])])}),0)])]):t._e(),t._v(" "),e("b-dropdown",{staticClass:"dropdown-no-arrow me-3",attrs:{right:"",variant:"primary","toggle-class":"rounded-0",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{staticClass:"me-2",class:{"text-warning":t.director},attrs:{icon:["fas","user-circle"]}}),e("fa",{attrs:{icon:["fas","caret-down"]}})]},proxy:!0}])},[t._v(" "),t.director?t._t("default",function(){return[e("b-dropdown-text",[e("b",[t._v(t._s(t.$t("header").director))]),e("br"),t._v(" "),e("span",{staticClass:"text-secondary text-nowrap"},[t._v("\n              "+t._s(t.director.email)+"\n            ")])]),t._v(" "),e("b-dropdown-divider"),t._v(" "),e("b-dropdown-item-button",{attrs:{"button-class":"btn-sm d-flex align-items-center"},on:{click:t.signOut}},[e("div",{staticClass:"me-3"},[e("fa",{attrs:{icon:["fas","sign-in-alt"]}})],1),t._v(" "),e("div",[e("b",[t._v(t._s(t.$t("header").my_profile))]),e("br"),t._v(" "),e("span",{staticClass:"text-secondary text-nowrap"},[t._v("\n                "+t._s(t.$auth.user.email)+"\n              ")])])]),t._v(" "),e("b-dropdown-divider")]}):t._t("default",function(){return[e("b-dropdown-text",[e("b",[t._v(t._s(t.$t("header").my_profile))]),e("br"),t._v(" "),e("span",{staticClass:"text-secondary text-nowrap"},[t._v("\n              "+t._s(t.$auth.user.email)+"\n            ")])]),t._v(" "),e("b-dropdown-divider")]}),t._v(" "),e("b-dropdown-item-button",{attrs:{"button-class":"btn-sm"},on:{click:function(e){t.isDirectorsOpened=!0}}},[t._v("\n          "+t._s(t.$t("header").directors)+"\n        ")]),t._v(" "),t.config.show_contacts?e("b-dropdown-item-button",{attrs:{"button-class":"btn-sm"},on:{click:function(e){t.isContactsOpened=!0}}},[t._v("\n          "+t._s(t.$t("header").contacts)+"\n        ")]):t._e(),t._v(" "),t.director?t._e():e("b-dropdown-item-button",{attrs:{"button-class":"btn-sm"},on:{click:t.goToSettings}},[t._v("\n          "+t._s(t.$t("header").settings)+"\n        ")]),t._v(" "),e("b-dropdown-divider"),t._v(" "),e("b-dropdown-item-button",{attrs:{"button-class":"btn-sm"},on:{click:function(e){return e.preventDefault(),t.logout.apply(null,arguments)}}},[t._v("\n          "+t._s(t.$t("header").exit)+"\n        ")])],2)],1),t._v(" "),e("b-modal",{ref:"help-modal",attrs:{id:"help-modal",centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light",size:"lg"},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("help").form.title,"close-btn-class":"btn-primary"},on:{"close-form":t.closeHelpForm}})]},proxy:!0}])},[t._v(" "),e("Help")],1),t._v(" "),e("b-modal",{ref:"directors-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light"},on:{hidden:function(e){t.isDirectorsOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("header").directors},on:{"close-form":function(e){t.isDirectorsOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("DirectorsForm",{attrs:{director:t.director}})],1),t._v(" "),e("b-modal",{ref:"post-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.editedPostId=0}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("posts").form.edit_title},on:{"close-form":t.closePostForm}})]},proxy:!0}])},[t._v(" "),t.editedPostId?e("PostForm",{attrs:{id:t.editedPostId,"is-in-popup":!0},on:{"close-form":t.closePostForm}}):t._e()],1),t._v(" "),e("b-modal",{ref:"connection-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.editedConnectionId=0}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("crossPosting").form.edit_title},on:{"close-form":t.closeConnectionForm}})]},proxy:!0}])},[t._v(" "),t.editedConnectionId?e("ConnectionForm",{attrs:{id:t.editedConnectionId,"is-in-popup":!0},on:{"close-form":t.closeConnectionForm}}):t._e()],1),t._v(" "),e("b-modal",{ref:"contacts-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.isContactsOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("header").contacts},on:{"close-form":function(e){t.isContactsOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("ContactsForm")],1)],1)},[],!1,null,null,null),ro=ao.exports;function co(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}var lo={components:{FormGroupRadioButtons:o(47).a,FormModalHeader:Js.default},data:function(){return{tgModalPage:1,tgModalPages:[{id:1,value:"Подписчики"},{id:2,value:"Монетизация"}]}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?co(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):co(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({},Object(l.b)({items:"settings/navigation",isHasNotifications:"settings/isHasNotifications"})),methods:{closeTGModal:function(){this.$refs["tg-modal"].hide()},openTGModal:function(){this.$refs["tg-modal"].show()},openHelp:function(){window.appHeaderComponent&&window.appHeaderComponent.openHelpForm()}}},uo=lo;function po(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}var mo={layout:"personal",middleware:["host","auth"],head:{},components:{AppSidebar:Object(Fs.a)(uo,function(){var t=this,e=t._self._c;return e("nav",{staticClass:"col sidebar-primary app-sidebar",attrs:{id:"app-sidebar"}},[e("div",{staticClass:"sidebar-sticky"},[t.items.length?e("ul",{staticClass:"nav flex-column pb-3 pt-3 app-navigation"},[t._l(t.items,function(o,n){return o.separated?t._e():e("li",{key:n,staticClass:"nav-item"},[e("nuxt-link",{staticClass:"d-flex justify-content-between px-4 nav-link",class:{disabled:o.disabled},attrs:{to:t.localePath(o.route)}},[e("span",{staticClass:"d-flex"},[e("span",{staticClass:"me-4 nav-link-icon"},[e("fa",{attrs:{icon:["fas",o.icon]}})],1),t._v(t._s(t.$t("navigation")[o.route])+"\n            ")]),t._v(" "),"/notifications"===o.route&&t.isHasNotifications?e("div",{staticClass:"bg-warning align-self-center nav-item-marked"}):t._e()])],1)}),t._v(" "),t.config.help_button?e("li",[e("a",{staticClass:"d-flex justify-content-between px-4 nav-link",attrs:{href:t.config.help_button,target:"_blank"}},[e("span",{staticClass:"d-flex"},[e("span",{staticClass:"me-4 nav-link-icon"},[e("fa",{attrs:{icon:["fas","question-circle"]}})],1),t._v("Support\n            ")])])]):t._e()],2):t._e(),t._v(" "),e("div",{staticClass:"px-4 d-none d-lg-block"},[e("div",{staticClass:"btn btn-light bg-white btn-sm d-block border-0",on:{click:t.openHelp}},[t._v("\n          "+t._s(t.$t("help").info)),e("fa",{staticClass:"ms-2",attrs:{icon:["fas","up-right-from-square"]}})],1)]),t._v(" "),t.items.length?e("ul",{staticClass:"nav flex-column pb-3 pt-3 app-navigation"},t._l(t.items,function(o,n){return o.separated?e("li",{key:n,staticClass:"nav-item small"},[e("nuxt-link",{staticClass:"d-flex justify-content-between px-4 nav-link",class:{disabled:o.disabled},attrs:{to:t.localePath(o.route)}},[t._v("\n            "+t._s(t.$t("navigation")[o.route])+"\n          ")])],1):t._e()}),0):t._e()])])},[],!1,null,null,null).exports,AppHeader:ro,News:function(){return o.e(211).then(o.bind(null,1390))},Errors:function(){return o.e(213).then(o.bind(null,1391))},PaymentRequired:function(){return o.e(206).then(o.bind(null,1413))},EmailRequired:function(){return o.e(219).then(o.bind(null,1414))}},data:function(){return{resizeTimer:null,newsContent:"",specialOfferContent:""}},mounted:function(){var t=this;if(this.$nextTick(function(){t.navigation.length||t.$store.dispatch("settings/fetchSettings"),window.addEventListener("resize",t.onResize)}),this.setUserLocale(),this.config.vk_widget){var script=document.createElement("script");script.src="https://vk.ru/js/api/openapi.js?169",script.type="text/javascript",document.head.appendChild(script),this.createVKWidget()}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?po(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):po(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({},Object(l.b)({navigation:"settings/navigation",isHasEmail:"settings/isHasEmail",isHasNews:"settings/isHasNews",isHasSpecialOffer:"settings/isHasSpecialOffer",isHasPublicationNotifications:"settings/isHasPublicationNotifications",error:"error/getError",subscriptionDays:"settings/subscriptionDays",isSettingsLoaded:"settings/isSettingsLoaded"})),fetch:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var o,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.setUserLocale(),e.prev=1,e.next=2,t.$axios.get("".concat(t.domainURL,"/n").concat(t.$i18n.locale,".html"));case 2:return o=e.sent,t.newsContent=o.data,e.next=3,t.$axios.get("".concat(t.domainURL,"/so").concat(t.$i18n.locale,".html"));case 3:n=e.sent,t.specialOfferContent=n.data,e.next=5;break;case 4:e.prev=4,r=e.catch(1),console.error("Error loading html file:",r);case 5:case"end":return e.stop()}},e,null,[[1,4]])}))()},watch:{error:{handler:function(t){t&&(this.bvToast("danger",this.getRequestErrorText(t)),this.$store.commit("error/setError",null))},deep:!0},$route:function(t,e){this.$store.commit("sidebar/isOpened",!1)}},methods:{createVKWidget:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;"undefined"!=typeof VK?VK.Widgets.CommunityMessages("vk_community_messages",232143516,{widgetPosition:"left",disableExpandChatSound:"1",disableButtonTooltip:"1"}):e<3&&(e++,setTimeout(function(){t.createVKWidget(e)},3e3))},setUserLocale:function(){},onResize:function(){document.body.classList.add("resize-animation-stopper"),this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=null),this.resizeTimer=setTimeout(function(){document.body.classList.remove("resize-animation-stopper")},200)}}},ho=mo,_o=Object(Fs.a)(ho,function(){var t=this,e=t._self._c;return e("div",[e("AppHeader"),t._v(" "),e("div",{staticClass:"container-fluid p-0"},[e("div",{staticClass:"row g-0"},[e("AppSidebar"),t._v(" "),e("main",{staticClass:"col app-main"},[t.isHasNews&&t.newsContent?e("News",{attrs:{content:t.newsContent}}):t._e(),t._v(" "),t.isSettingsLoaded&&1===t.config.plan_type&&!t.subscriptionDays?e("PaymentRequired"):t._e(),t._v(" "),t.isSettingsLoaded&&!t.isHasEmail?e("EmailRequired"):t._e(),t._v(" "),t.isHasPublicationNotifications&&1===t.config.plan_type?e("Errors"):t._e(),t._v(" "),e("nuxt")],1)],1)]),t._v(" "),t.config.vk_widget?e("div",{staticClass:"d-none d-sm-block",attrs:{id:"vk_community_messages"}}):t._e()],1)},[],!1,null,null,null).exports;function fo(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return bo(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?bo(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t}
1,e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function bo(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var vo={_default:Object(k.s)(Ds),_legal:Object(k.s)(Ms),_personal:Object(k.s)(_o)},go={render:function(t,e){var o=t("NuxtLoading",{ref:"loading"}),n=t(this.layout||"nuxt"),r=t("div",{domProps:{id:"__layout"},key:this.layoutName},[n]),c=t("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(t){window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")})}}},[r]);return t("div",{domProps:{id:"__nuxt"}},[o,c])},data:function(){return{isOnline:!0,layout:null,layoutName:"",nbFetching:0}},beforeCreate:function(){c.default.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){this.$root.$options.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error,this.context=this.$options.context},mounted:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$loading=t.$refs.loading;case 1:case"end":return e.stop()}},e)}))()},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline},isFetching:function(){return this.nbFetching>0}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var o,r,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((o=Object(k.h)(t.$route)).length){e.next=1;break}return e.abrupt("return");case 1:return t.$loading.start(),r=o.map(function(){var e=Object(n.a)(regeneratorRuntime.mark(function e(o){var p,n,r,component;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return p=[],o.$options.fetch&&o.$options.fetch.length&&p.push(Object(k.q)(o.$options.fetch,t.context)),o.$options.asyncData&&p.push(Object(k.q)(o.$options.asyncData,t.context).then(function(t){for(var e in t)c.default.set(o.$data,e,t[e])})),e.next=1,Promise.all(p);case 1:p=[],o.$fetch&&p.push(o.$fetch()),n=fo(Object(k.e)(o.$vnode.componentInstance));try{for(n.s();!(r=n.n()).done;)component=r.value,p.push(component.$fetch())}catch(t){n.e(t)}finally{n.f()}return e.abrupt("return",Promise.all(p));case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),e.prev=2,e.next=3,Promise.all(r);case 3:e.next=5;break;case 4:e.prev=4,l=e.catch(2),t.$loading.fail(l),Object(k.k)(l),t.error(l);case 5:t.$loading.finish();case 6:case"end":return e.stop()}},e,null,[[2,4]])}))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(js.options||js).layout;"function"==typeof t&&(t=t(this.context)),this.nuxt.errPageReady=!0,this.setLayout(t)}},setLayout:function(t){return t&&vo["_"+t]||(t="default"),this.layoutName=t,this.layout=vo["_"+t],this.layout},loadLayout:function(t){return t&&vo["_"+t]||(t="default"),Promise.resolve(vo["_"+t])}},components:{NuxtLoading:Rs}};o(31);c.default.use(l.a);var yo=["state","getters","actions","mutations"],ko={};(ko=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),wo(t,e)}(o(623),"store/index.js")).modules=ko.modules||{},Co(o(624),"sorting/index.js"),Co(o(625),"socket.io/index.js"),Co(o(626),"socialNetworksSettings/index.js"),Co(o(627),"sidebar/index.js"),Co(o(628),"settings/index.js"),Co(o(629),"pagination/index.js"),Co(o(630),"listView/index.js"),Co(o(631),"google/index.js"),Co(o(632),"global/index.js"),Co(o(633),"filters/index.js"),Co(o(634),"error/index.js"),Co(o(635),"statistics/users/index.js"),Co(o(636),"statistics/payments/index.js"),Co(o(637),"statistics/partners/index.js"),Co(o(638),"smartTasks/form/index.js"),Co(o(639),"settings/form/index.js"),Co(o(640),"rssImport/form/index.js"),Co(o(641),"posts/form/index.js"),Co(o(642),"ord/form/index.js"),Co(o(643),"items/index/index.js"),Co(o(644),"folders/form/index.js"),Co(o(645),"crossPosting/form/index.js"),Co(o(646),"aiPosting/form/index.js"),Co(o(647),"team/managers/form/index.js"),Co(o(648),"team/directors/form/index.js"),Co(o(649),"shared/posts/view/index.js"),Co(o(650),"settings/watermarks/form/index.js"),Co(o(651),"settings/smartTags/form/index.js"),Co(o(652),"settings/proxies/form/index.js"),Co(o(653),"settings/password/form/index.js"),Co(o(654),"settings/email/form/index.js"),Co(o(655),"settings/api/form/index.js"),Co(o(656),"postsSearch/sourceResources/form/index.js"),Co(o(657),"postsSearch/settings/form/index.js"),Co(o(658),"postsSearch/parsing/form/index.js"),Co(o(659),"postsSearch/parsers/form/index.js"),Co(o(660),"posts/schedules/form/index.js"),Co(o(661),"posts/projects/form/index.js"),Co(o(662),"ord/persons/form/index.js"),Co(o(663),"ord/contracts/form/index.js"),Co(o(664),"accounts/yappy/form/index.js"),Co(o(665),"accounts/wordpress/form/index.js"),Co(o(666),"accounts/wibes/form/index.js"),Co(o(667),"accounts/whatsapp/form/index.js"),Co(o(668),"accounts/wbchat/form/index.js"),Co(o(669),"accounts/vkontakte/form/index.js"),Co(o(670),"accounts/viber/form/index.js"),Co(o(671),"accounts/twitter/form/index.js"),Co(o(672),"accounts/tiktok/form/index.js"),Co(o(673),"accounts/threads/form/index.js"),Co(o(674),"accounts/tenchat/form/index.js"),Co(o(675),"accounts/telegram/form/index.js"),Co(o(676),"accounts/rutube/form/index.js"),Co(o(677),"accounts/pages/form/index.js"),Co(o(678),"accounts/max/form/index.js"),Co(o(679),"accounts/likee/form/index.js"),Co(o(680),"accounts/joomla/form/index.js"),Co(o(681),"accounts/instagram/form/index.js"),Co(o(682),"accounts/dzen/form/index.js"),Co(o(683),"accounts/wbchat/channel/form/index.js"),Co(o(684),"accounts/vkontakte/extended/form/index.js"),Co(o(685),"accounts/vkontakte/chat/form/index.js"),Co(o(686),"accounts/telegram/parsing/form/index.js"),Co(o(687),"accounts/max/parsing/form/index.js");var xo=ko instanceof Function?ko:function(){return new l.a.Store(Object.assign({strict:!1},ko))};function wo(t,e){if(t.state&&"function"!=typeof t.state){console.warn("'state' should be a method that returns an object in ".concat(e));var o=Object.assign({},t.state);t=Object.assign({},t,{state:function(){return o}})}return t}function Co(t,e){t=t.default||t;var o=e.replace(/\.(js|mjs)$/,"").split("/"),n=o[o.length-1],r="store/".concat(e);
1if(t="state"===n?function(t,e){if("function"!=typeof t){console.warn("".concat(e," should export a method that returns an object"));var o=Object.assign({},t);return function(){return o}}return wo(t,e)}(t,r):wo(t,r),yo.includes(n)){var c=n;To(So(ko,o,{isProperty:!0}),t,c)}else{"index"===n&&(o.pop(),n=o[o.length-1]);for(var l=So(ko,o),d=0,m=yo;d<m.length;d++){var h=m[d];To(l,t[h],h)}!1===t.namespaced&&delete l.namespaced}}function So(t,e){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).isProperty,n=void 0!==o&&o;if(!e.length||n&&1===e.length)return t;var r=e.shift();return t.modules[r]=t.modules[r]||{},t.modules[r].namespaced=!0,t.modules[r].modules=t.modules[r].modules||{},So(t.modules[r],e,{isProperty:n})}function To(t,e,o){e&&("state"===o?t.state=e||t.state:t[o]=Object.assign({},t[o],e))}var Po=o(423);c.default.use(Po.a,{});var Io=o(14),Ao=o(240),Fo=o(2),jo=o(170);Io.a.autoAddCss=!1,Io.c.add(Fo.h),Io.c.add(Fo.n),Io.c.add(Fo.Gb),Io.c.add(Fo.K),Io.c.add(Fo.Eb),Io.c.add(Fo.k),Io.c.add(Fo.fc),Io.c.add(Fo.Ib),Io.c.add(Fo.Hb),Io.c.add(Fo.Jb),Io.c.add(Fo.G),Io.c.add(Fo.B),Io.c.add(Fo.A),Io.c.add(Fo.ub),Io.c.add(Fo.V),Io.c.add(Fo.y),Io.c.add(Fo.Y),Io.c.add(Fo.jb),Io.c.add(Fo.j),Io.c.add(Fo.i),Io.c.add(Fo.hc),Io.c.add(Fo.ec),Io.c.add(Fo.dc),Io.c.add(Fo.r),Io.c.add(Fo.s),Io.c.add(Fo.gb),Io.c.add(Fo.ib),Io.c.add(Fo.hb),Io.c.add(Fo.o),Io.c.add(Fo.q),Io.c.add(Fo.p),Io.c.add(Fo.S),Io.c.add(Fo.qb),Io.c.add(Fo.H),Io.c.add(Fo.Yb),Io.c.add(Fo.O),Io.c.add(Fo.Zb),Io.c.add(Fo.E),Io.c.add(Fo.Rb),Io.c.add(Fo.Sb),Io.c.add(Fo.Tb),Io.c.add(Fo.Wb),Io.c.add(Fo.Xb),Io.c.add(Fo.M),Io.c.add(Fo.N),Io.c.add(Fo.g),Io.c.add(Fo.lb),Io.c.add(Fo.J),Io.c.add(Fo.U),Io.c.add(Fo.ab),Io.c.add(Fo.gc),Io.c.add(Fo.eb),Io.c.add(Fo.fb),Io.c.add(Fo.L),Io.c.add(Fo.a),Io.c.add(Fo.P),Io.c.add(Fo.Q),Io.c.add(Fo.D),Io.c.add(Fo.C),Io.c.add(Fo.Kb),Io.c.add(Fo.W),Io.c.add(Fo.T),Io.c.add(Fo.Db),Io.c.add(Fo.Ob),Io.c.add(Fo.cc),Io.c.add(Fo.R),Io.c.add(Fo.z),Io.c.add(Fo.yb),Io.c.add(Fo.f),Io.c.add(Fo.e),Io.c.add(Fo.d),Io.c.add(Fo.c),Io.c.add(Fo.b),Io.c.add(Fo.m),Io.c.add(Fo.t),Io.c.add(Fo.tb),Io.c.add(Fo.pb),Io.c.add(Fo.I),Io.c.add(Fo.F),Io.c.add(Fo.Fb),Io.c.add(Fo.Lb),Io.c.add(Fo.Mb),Io.c.add(Fo.wb),Io.c.add(Fo.u),Io.c.add(Fo.v),Io.c.add(Fo.Vb),Io.c.add(Fo.kb),Io.c.add(Fo.w),Io.c.add(Fo.Z),Io.c.add(Fo.Ab),Io.c.add(Fo.mb),Io.c.add(Fo.rb),Io.c.add(Fo.bb),Io.c.add(Fo.x),Io.c.add(Fo.Nb),Io.c.add(Fo.ob),Io.c.add(Fo.zb),Io.c.add(Fo.X),Io.c.add(Fo.Bb),Io.c.add(Fo.db),Io.c.add(Fo.ac),Io.c.add(Fo.Qb),Io.c.add(Fo.sb),Io.c.add(Fo.Pb),Io.c.add(Fo.l),Io.c.add(Fo.cb),Io.c.add(Fo.Ub),Io.c.add(Fo.bc),Io.c.add(Fo.xb),Io.c.add(Fo.vb),Io.c.add(Fo.Cb),Io.c.add(Fo.nb),Io.c.add(jo.b),Io.c.add(jo.a),Io.c.add(jo.c),c.default.component("fa",Ao.a),c.default.component("fa-layers",Ao.b),c.default.component("fa-layers-text",Ao.c);var Oo=o(413);c.default.use(Oo.a);var $o=o(49),Lo=(o(120),o(137),o(48),o(698),o(135)),Ro={navigation:{"/posts":"Мои посты","/live":"Живая лента","/posts-search":"Поиск постов","/cross-posting":"Кросс-постинг","/rss-import":"Постинг из RSS","/team":"Мои сотрудники","/smart-tasks":"Умные функции","/accounts":"Мои аккаунты","/notifications":"Ошибки","/ord":"ОРД ВКонтакте","/settings":"Настройки","/billing":"Оплата","/watermarks":"Водяные знаки","/proxies":"Прокси","/smart-tags":"Авто-теги","/ai-posting":"ИИ постинг","/partnership":"Для партнеров"},tabs:{"/posts":"Посты","/posts/projects":"Проекты","/posts/schedules":"Расписания","/posts/batch_uploading":"Пакетная загрузка","/posts/folders":"Папки","/posts/settings":"Настройки","/live":"Живая лента","/posts-search":"Поиск постов","/posts-search/source-resources":"Источники постов","/posts-search/settings":"Настройки","/cross-posting":"Связи","/cross-posting/folders":"Папки","/rss-import":"Каналы","/rss-import/folders":"Папки","/team":"Сотрудники","/team/directors":"Руководители","/smart-tasks":"Задачи","/accounts":"Аккаунты","/accounts/pages":"Страницы","/notifications":"Ошибки","/ord":"Мои данные","/ord/persons":"Контрагенты","/ord/contracts":"Договоры","/ord/creatives":"Креативы","/ord/invoices":"Акты","/settings":"Настройки","/settings/password":"Пароль","/settings/email":"E-mail","/settings/api":"API-токен","/billing":"Оплата","/billing/history":"История платежей","/watermarks":"Водяные знаки","/proxies":"Прокси","/smart-tags":"Авто-теги","/ai-posting":"Задачи","/partnership":"Для партнеров"},createButtonsLinks:{"/posts/create":"Создать пост","/
1posts/projects/create":"Создать проект","/posts/schedules/create":"Создать расписание","/posts/folders/create":"Создать папку","/posts-search/source-resources/create":"Создать источник","/cross-posting/create":"Создать связь","/cross-posting/folders/create":"Создать папку","/rss-import/create":"Создать канал","/rss-import/folders/create":"Создать папку","/team/create":"Создать сотрудника","/smart-tasks/create":"Создать задачу","/accounts/connect":"Подключить аккаунт","/accounts/connect?back_to=pages":"Подключить страницу","/ord/persons/create":"Создать контрагента","/ord/contracts/create":"Создать договор","/watermarks/create":"Создать знак","/proxies/create":"Создать прокси","/smart-tags/create":"Создать набор","/ai-posting/create":"Создать задачу"},createButtonsHandlers:{openPostsSearchParsingForm:"Извлечь посты"},items_pages:{wait:"Пожалуйста, подождите...",no_pages:"Нет страниц для объекта."},pagination:{first:"Начало",prev:"Назад",next:"Далее",last:"Конец"},oauth:{title:"Авторизация",continue_as:"Продолжить как",select_pages_to_connect:"Укажите страницы, которые нужно подключить",show_more:"Показать еще",show_more_or:"или",connect_all:"Подключить все",cancel:"Отмена",connect:"Подключить",update:"Обновить",where_im_editor:"Где я редактор",all_pages:"Все страницы",auth_success:"Успешная авторизация.",pages_success:"Страницы успешно подключены.",photos_and_videos_success:"Публикация фото и видео успешно подключены.",account_connected:"Аккаунт успешно подключен."},posts_download:{input_placeholder:"Укажите ссылку на пост или видео",btn_label:"Скачать",url_ready:"Готово!",url_btn:"Нажмите на ссылку",url_postfix_video:"чтобы сохранить видео",url_postfix_photo:"чтобы сохранить фото",url_postfix_post:"чтобы сохранить пост"},move_posts:{schedule:"Расписание",set_schedule:"Укажите расписание",move_button:"Перенести",moved_success:"Посты успешно перенесены."},photos:{my_photos:"Мои фото",my_videos:"Мои видео",crop:{title:"Обрезка фото",apply:"Применить",close:"Готово"},edit:{video_title:"Редактирование видео",photo_title:"Редактирование фото",use_frame_for_thumb:"Использовать кадр для обложки",thumb:"Обложка",title:"Заголовок",description:"Описание",close:"Готово"},video_size_limit:"Максимальный размер видео для вашего тарифа",availability:"Работа с видео доступна только для тарифов: Vip."},app_page_tip:{name:"Подсказка",no_results:"По данному запросу результатов нет.",close_btn:"Спасибо, понятно!",details_video:"Подробности в видео",details_help:"Подробности в Справке",posts:{title:"Посты",create_btn_name:"Создать пост",text:{t1:"Здесь вы можете",t2:"создавать",t3:"посты для их публикации",t4:"в ваших социальных сетях.",t5:"После создания, посты",t6:"отображаются здесь,",t7:"ожидая своей публикации.",t8:"Уже вышедшие посты",t9:"попадают в",t10:"архив"}},projects:{title:"Проекты",create_btn_name:"Создать проект",text:{t1:"Проекты полезны для",t2:"группировки большого числа",t3:"соц. страниц в единые наборы.",t4:"Например, вы можете создать несколько проектов на разные темы и указ
1ывать их при создании соответствующих постов.",t5:"Это экономит время, если страниц много и не хочется каждый раз указывать их вручную."}},schedules:{title:"Расписания",create_btn_name:"Создать расписание",text:{t1:"Расписания похожи на проекты, но помимо функций проектов они позволяют настроить время для публикации постов.",t2:"Один раз настроив расписание и указав время на каждый день недели, просто добавляйте в него посты и они сами будут выстраиваться в очередь на публикацию."}},posts_search:{title:"Поиск постов",create_btn_name:"Извлечь посты",text:{t1:"Поиск постов позволяет извлекать посты из чужих соц. сетей, а затем публиковать их в свои.",t2:"Например, вы можете извлечь посты из чужой группы ВКонтакте, найти лучшие из них и отправить на публикацию в своих группах."}},cross_posting:{title:"Кросс-постинг",create_btn_name:"Создать связь",text:{t1:"Кросс-постинг позволяет копировать посты из одной социальной сети в другую, автоматически.",t2:"Например, вы можете настроить публикацию постов из ВК в Инсту, из Инсты в ВК, из Телеграм в Инсту и ВК или наоборот.",t3:"Посты можно брать как из своих, так и из чужих групп и страниц в соц. сетях."}},rss_import:{title:"Постинг из RSS",create_btn_name:"Создать канал",text:{t1:"Данная функция позволит вам подключить ваш или любой другой сайт с новостями, которые будут автоматически отслеживаться и публиковаться в ваши соц. сети.",t2:"Важно отметить, что сайт должен иметь RSS-ленту, из которой и будут браться статьи."}},accounts:{title:"Мои аккаунты",create_btn_name:"Подключить аккаунт",text:{t1:"В данном разделе вы можете подключать аккаунты соц. сетей, в которых будут публиковаться ваши посты.",t2:'Сами аккаунты будут отображаться здесь, а их группы будут расположены во вкладке "Страницы".'}}},monthNames:{1:"Января",2:"Февраля",3:"Марта",4:"Апреля",5:"Мая",6:"Июня",7:"Июля",8:"Августа",9:"Сентября",10:"Октября",11:"Ноября",12:"Декабря"},errors:{form:{wait:"Пожалуйста, подождите...",no_errors:"Ошибок нет.",page_number:"Номер в списке страниц",next:"Далее",prev:"Назад",start:"Начало",end:"Конец"}},filtersLogs:{form:{wait:"Пожалуйста, подождите...",no_logs:"Лог фильтров пуст.",check_date:"Дата проверки",post_date:"Дата поста",post_link:"Ссылка на пост",next:"Далее",prev:"Назад",start:"Начало",end:"Конец"}},auth:{login:{title:"Вход",by_networks:"Через соц. сети",password:"Пароль",remember:"Запомнить меня",submit:"Войти в аккаунт",remind:"Забыли пароль?",registration:"Регистрация",email_confirmed:"E-mail успешно подтвержден.",set_email:"Укажите e-mail.",set_password:"Укажите пароль."},remind:{title:"Сброс пароля",submit:"Сбросить пароль",login:"Вход",registration:"Регистрация",set_email:"Укажите e-mail.",password_sent:"Новый пароль успешно отправлен на указанную электронную почту."},registration:{title:"Регистрация",by_networks:"Через соц. сети",password:"Пароль",password_confirmation:"Повтор пароля",submit:"Создать аккаунт",agreement_part_one:"Продолжая, вы соглашаетесь с",agreement_part_two:"Лицензией",agreement_part_three:"и",agreement_part_four:"Политикой обработки данных",remind:"Забыли пароль?",login:"Вход",password_confirmation_warning:"Подтверждение пароля не совпадает с указанным."}},bv_modal:{yes:"Да",no:"Нет"},common:{donut_paid_duration:"Только для донов",donut_paid_duration_options:[{id:0,value:"--"},{id:1,value:"Навсегда"},{id:2,value:"На 1 день"},{id:3,value:"На 2 дня"},{id:4,value:"На 3 дня"},{id:5,value:"На 4 дня"},{id:6,value:"На 5 дней"},{id:7,value:"На 6 дней"},{id:8,value:"На 7 дней"}
1],content_by_stars:"Платный контент (за звезды)",content_by_stars_placeholder:"Число звезд",privacy_level:"Уровень доступа к видео",privacy_level_options:[{id:0,value:"--"},{id:1,value:"Для всех"},{id:2,value:"Только для друзей"},{id:3,value:"Только для меня"}],youtube_category:"Категория",youtube_category_options:[{id:0,value:"--"},{id:"1",value:"Фильмы и Анимация"},{id:"2",value:"Транспорт"},{id:"10",value:"Музыка"},{id:"15",value:"Животные"},{id:"17",value:"Спорт"},{id:"19",value:"Путешествия"},{id:"20",value:"Игры"},{id:"22",value:"Люди и Блоги"},{id:"23",value:"Комедия"},{id:"24",value:"Развлечения"},{id:"25",value:"Новости и Политика"},{id:"26",value:"Хобби и Стиль"},{id:"27",value:"Образование"},{id:"28",value:"Наука и Техника"},{id:"30",value:"Кино"},{id:"32",value:"Приключения"},{id:"35",value:"Документальное"},{id:"36",value:"Драма"},{id:"37",value:"Семья"},{id:"39",value:"Ужасы"},{id:"40",value:"Фантастика"},{id:"41",value:"Триллеры"},{id:"43",value:"Шоу"},{id:"44",value:"Трейлеры"}],not_required:"Не обязательно"},statistics:{form:{download_for_week:"Отчет за неделю",download_for_24_hours:"Отчет за 24 часа",found_total:"Всего найдено объектов",taken:"Фактически взято",errors:"Ошибок"}},header:{timezone_settings:"Изменить часовой пояс",posts_created_1:"В очереди",posts_created_2:["пост","поста","постов"],posts_created_3:"из",plans:"Тарифы",plan_days:"дн.",plans_details:"Подробнее",notifications:"Ошибки",notifications_loading:"Загрузка уведомлений...",no_notifications:"Уведомлений нет.",notifications_object_open:"Открыть",show_all_notifications:"Показать все",director:"Руководитель",my_profile:"Мой аккаунт",directors:"Руководители",contacts:"Контакты",settings:"Настройки",exit:"Выйти"},help:{info:"Справка",instructions:"Инструкция по настройке",video:"Видео",close:"Закрыть",form:{title:"Справочная система Хуппи",main:"Главная",copy_page:"Скопировать ссылку",page_copied:"Ссылка успешно скопирована.",questions_prefix:"Остались вопросы?",support_link:"https://t.me/callmeandrey",support_link_name:"Напишите нам в Телеграм"}},sort_by_types:{publication_date:"Дата публикации",likes:"Лайки",reposts:"Репосты",comments:"Комментарии",views:"Просмотры",involvement:"Вовлеченность"},filters:{sorting:"Сортировка",options:{name:"Фильтр",apply:"Применить",download:"Скачать результаты",download_warning:"Скачать результаты данной выборки?"},is_published:{name:"Статус",values:[{id:0,value:"В очереди"},{id:1,value:"В архиве"}]},publication_date:{name:"Дата публикации"},text:{name:"Поиск по тексту"},date_from:{name:"Дата от"},date_to:{name:"Дата до"},source_type:{name:"Тип источника",placeholder:"Все типы источников"},source_id:{name:"Соц. сеть",placeholder:"Все соц. сети"},source_resource_id:{name:"Источник постов",placeholder:"Все источники"},owner_id:{name:"Страница",placeholder:"Все страницы"},content_types:{name:"Включая"},content_types_exclude:{name:"Исключая"},photos_amount:{name:"Кол-во фото",placeholder:"Любое кол-во фото"},video_duration:{name:"Длина видео",placeholder:"Любая длина видео"},objects_type:{name:"Тип уведомлений",placeholder:"Все типы уведомлений"},account_id:{name:"Аккаунт",placeholder:"Все аккаунты"},page_id:{name:"Страница",placeholder:"Все страницы"},project_id:{name:"Проект",placeholder:"Все проекты"},schedule_id:{name:"Расписание",placeholder:"Все расписания"},folder_id:{name:"Папка",placeholder:"Все папки"},channel_id:{name:"Канал",placeholder:"Все каналы"},connection_id:{name:"Связь",placeholder:"Все связи"}},form:{set_date_placeholder:"Укажите дату",create_button:"Создать",save_button:"Сохранить",delete_button:"Удалить",social_networks:{not_connected_message:{account:"Аккаунт",not_connected:"не подключен.",do_it_in:"Сделайте это в разделе",accounts:"Мои аккаунты"},not_connected_title:"Соц. сеть не подключена",not_connected_close:"Закрыть",settings:{need_to_connect_pages:"Подключите соц. сети в разделе",need_to_connect_place:"Мои аккаунты",title:"Настройка соц. сетей",open_button:"Настройка",form:{networks_to_show:"Показывать соц. сети",apply_button:"Применить"}}},social_pages:{title:"Выбор страниц",publication_where_types:[{id:1,value:"Страницы"},{id:2,value:"Фотоальбомы"}],selected_pages:"Выбранные страницы",no_pages_selected:"Не выбрано ни одной страницы",pages_available:"Страницы для выбора",filter_by_name:"Фильтр по наÐ
1·Ð²Ð°Ð½Ð¸ÑŽ",pages_not_found:"По данному запросу страниц не найдено",all_pages_selected:"Все страницы выбраны",accounts_label:"Аккаунты",accounts_no_items:"Нет ни одного аккаунта",accounts_default_value:"Укажите аккаунт",need_account_to_select:"Сначала укажите аккаунт",pages_label:"Страницы",pages_no_items:"Нет ни одной страницы",pages_default_value:"Укажите страницу",need_page_to_select:"Сначала укажите страницу",albums_label:"Альбомы",add_album_button:"Добавить альбом",no_albums_selected:"Нет выбранных альбомов",no_name:"Без названия",albums_no_items:"Нет ни одного альбома",apply_button:"Применить",no_accounts_connected:{text_1:"Вы подключили несколько аккаунтов",text_2:"но не привязали для них страниц для постинга.",text_3:"Вы подключили аккаунт",text_4:"но не привязали для него страниц для постинга.",text_5:"Сделайте это в разделе",text_6:"Мои аккаунты",text_7:"нажав на кнопку с круглой стрелкой, справа."},tiktok_publish_mention:"После публикации видео может появиться в профиле не сразу.<br>Обработка может занять несколько минут."},posts_rewrite:{label:"Рерайт текста с помощью ИИ",title:"Рерайт текста с помощью ИИ",open_button_one:"Настроить",open_button_two:"Изменить настройки",form:{rewrite_description:"Перед публикацией ИИ перепишет текст каждого поста, и он станет новым и уникальным.",rewrite_command:"Команда для ИИ",rewrite_command_placeholder:"Например: пиши короче и добавь эмодзи. Необязательно",rewrite_command_tip:"Дополнительные инструкции для ИИ. Если оставить пустым, рерайт будет по нашим настройкам.",rewrite_state:"Рерайт текста включен",text_model:"Модель ИИ",text_model_from_settings:"Указано в Настройках Хуппи",text_model_from_settings_tip:"Модель и ключ берутся из Настроек сервиса — одни для всех связей, где выбран этот пункт. Чтобы задать для этой связи отдельные модель и ключ, выберите модель из списка.",rewrite_states:[{id:1,value:"Нет"},{id:2,value:"Да"}],rewrite_for_every_page:"Отдельный рерайт для каждой группы",rewrite_for_every_page_tip:"Для каждой группы текст переписывается отдельно, в <b>момент публикации</b>. Посты на <b>повторе</b> переписываются заново при каждом выходе.",no_posts_if_no_rewrite:"Не публиковать посты без рерайта",no_posts_if_no_rewrite_tip:"Если ИИ не смог переписать текст, пост не будет опубликован.",apply_button:"Применить"}},posts_photos_rewrite:{label:"Рерайт фото с помощью ИИ",title:"Рерайт фото с помощью ИИ",open_button_one:"Настроить",open_button_two:"Изменить настройки",form:{rewrite_description:"Если в посте есть фото, то перед публикацией ИИ сделает их рерайт. Если фото в посте нет, ИИ может создать новые на основе текста поста.",rewrite_state:"Рерайт фото включен",image_model:"Модель ИИ",rewrite_states:[{id:1,value:"Нет"},{id:2,value:"Да"}],create_photos_type:"Если в посте нет фото",create_photos_type_tip:"Новые фото будут созданы на основе текста поста и вашей команды для ИИ.",create_photos_types:[{id:1,value:"Не создавать"},{id:2,value:"Создать одно"},{id:3,value:"Создать два"}],rewrite_command:"Команда для ИИ",rewrite_command_placeholder:"Дополнительные инструкции для рерайта или создания фото. Необязательно",rewrite_command_tip:"Используется и при рерайте фото из поста, и при создании Ð
1½Ð¾Ð²Ñ‹Ñ… фото, если в посте их нет.",reference_photos:"Фото для референса",reference_photos_description:"Необязательно. До 3 своих фото, на которые ИИ будет опираться при рерайте или создании фото. К каждому добавьте короткую заметку: что на фото или как его использовать.",reference_photo_note_placeholder:"Например: это наш логотип, добавь его в угол",no_posts_if_no_rewrite:"Не публиковать посты без рерайта фото",no_posts_if_no_rewrite_tip:"Если в процессе рерайта или создания фото произошла ошибка, то пост публиковаться не будет.",apply_button:"Применить"}},reference_photos:{add_button:"Загрузить фото",uploading:"Загрузка...",saving:"Сохранение в облако...",wrong_type:"Можно загружать только картинки JPG и PNG",upload_error:"Ошибка загрузки фото"},posts_caption:{label:"Подпись к постам",title:"Подпись к постам",open_button_one:"Настроить",open_button_two:"Изменить настройки",form:{caption:"Подпись к постам",photos_caption:"Подпись к фотографиям",caption_position_type:"Расположение подписи",caption_position_types:[{id:1,value:"Под текстом"},{id:2,value:"Над текстом"}],caption_space_type:"Добавить отступ между текстом и подписью",caption_space_types:[{id:1,value:"Да"},{id:2,value:"Нет"}],tg_buttons:"Кнопки для Max/Телеграм",videos_title:"Заголовок для видео в постах",comment:"Комментарий к постам",publish_comment_by_account:"Публиковать комментарий от имени аккаунта",photo:"Фото к постам",photo_tip:"Если их нет",photo_always:"Всегда добавлять фото",apply_button:"Применить"}},posts_hashtags:{label:"Теги к постам",title:"Теги к постам",open_button_one:"Настроить",open_button_two:"Изменить настройки",form:{caption:"Теги к постам",caption_placeholder:"Укажите список тегов для постов. Каждый тег с новой строки.",max_amount:"Брать не более",selection_type:"Выборка тегов",selection_types:[{id:1,value:"Обычная"},{id:2,value:"Случайная"}],space_type:"Добавить отступ между текстом и тегами",space_types:[{id:1,value:"Да"},{id:2,value:"Нет"}],apply_button:"Применить"}},posts_links:{label:"Ссылки к постам",title:"Ссылки к постам",open_button_one:"Настроить",open_button_two:"Изменить настройки",form:{caption:"Ссылки к постам",caption_placeholder:"Укажите список ссылок для постов. Каждая ссылка с новой строки.",max_amount:"Брать не более",selection_type:"Выборка ссылок",selection_types:[{id:1,value:"Обычная"},{id:2,value:"Случайная"}],space_type:"Добавить отступ между текстом и ссылками",space_types:[{id:1,value:"Да"},{id:2,value:"Нет"}],apply_button:"Применить"}},posts_location:{label:"Геометка ФБ, Инста",title:"Геометка ФБ, Инста",label_vk:"Геометка ВК",title_vk:"Геометка ВК",latitude:"Широта",longitude:"Долгота",select_account:"Укажите аккаунт Инстаграм",open_button_one:"Настроить",open_button_two:"Изменить настройки",apply:"Применить",form:{coords:"Координаты места",place_name:"Название места",place_tip:"Вы можете использовать название или адрес нужного места",place_placeholder_1:"Например: Владивосток, Станюковича 12",place_placeholder_2:"Например: Красная площадь",search_type:"Искать по",search_types:[{id:1,value:"Названию"},{id:2,value:"Координатам"}],search_btn:"Найти",location_url:"Ссылка на место",account_for_search:"Аккаунт для поиска геометки",account_for_search_tip:"Используйте аккаунт Instagram, для которого нужно будет публиковать геометку",no_accounts:"Нет ни одного аккаунта",place_not_selected:"Геометка не выбрана",prompts:{select_place:"Выберите геометку.",set_place_name:"Укажите название места.",set_place_coords:"Укажите координаты места.",set_place_url:"Укажите ссылку на место.",set_account:"Укажите аккаунт для работы с АПИ Instagram."}},search_results:{title:"Найденные места"}},other_settings:{label:"Другие настройки",title:"Другие настройки",open_button_one:"Настроить",open_button_two:"Изменить настройки",form:{is_posts_repeated:"Повторять посты",is_unique_content:"Уникализация текста",is_unique_content_tip:"Некоторые случайные буквы в тексте будут заменены на латиницу",is_random_content:"Случайный контент",is_random_content_tip:"Если пост содержит несколько фото или видео, будет выбрано и опубликовано одно случайное",is_comments_disabled:"Отключить комментарии",publish_as_story:"Публиковать в истории",publish_as_reels:"Публиковать в reels",publish_reels_as_trial:"Публиковать в тестовый reels",publish_as_clips:"Публиковать в клипы",publish_as_shorts:"Публиковать в shorts",publish_as_article:"Публиковать в статьи",publish_as_article_by_link:"Публиковать в статьи по ссылке",publish_as_article_by_link_tip:"Будет опубликован пост со ссылкой на статью",publish_in_channel:"Публиковать в канал",publish_in_channel_tip:"Пост будет опубликован в канал группы",share_stories_to_feed:"Публиковать в истории и Ð
1½Ð° стену",share_reels_to_feed:"Публиковать в reels и на стену",share_clips_to_feed:"Публиковать в клипы и на стену",share_clips_to_feed_with_text:"Публиковать в клипы и на стену с текстом",share_clips_to_feed_if_no_video:"Публиковать в клипы и на стену, если есть фото",share_channel_to_feed:"Публиковать в канал и на стену",expand_clips_title:"Добавить подпись к тексту клипа",publish_as_user:"Публиковать от имени пользователя",add_link_to_user:"Добавить подпись пользователя",message_to_community:'Кнопка "Написать сообществу"',message_to_channel:'Кнопка "Больше постов — в канале"',download_vk_videos:"Скачать видео из ВК",download_vk_videos_tip:"Видео будут опубликованы так, словно это вы их загрузили, а не взяли из чужого источника.",save_vk_videos_names:"Сохранять названия ВК видео",save_vk_videos_names_tip:"Если видео будут скачиваться из ВК, то будут использованы их названия. В противном случае будет указано название группы, в которую они публикуются.",plan_by_network:'Отправить в "отложку"',plan_by_network_tip:"Посты заранее отправляются в соц. сеть, чтобы позже она сама их опубликовала",publish_as_carousel:"Публиковать в виде карусели",publish_only_in_videos:"Публиковать только в видео",publish_only_in_videos_tip:"Посты должны содержать видео и они будут опубликованы только в раздел ВК Видео. На стене они не появятся.",not_publish_in_videos:"Не публиковать в видео",not_publish_in_videos_tip:"Если посты содержат видео, то эти видео появятся только на стене. В разделе ВК Видео их не будет.",repeat_video:"Зациклить видео",parse_links:"Парсить ссылки",parse_links_tip:"Если тексты постов содержат ссылку(и), то будет браться первая из них и добавлена к постам, как отдельное вложение.",publish_by_account:"Публиковать от имени аккаунта",publish_by_account_tip:"Посты будут опубликованы от имени аккаунта в соц сети, а не бота.",delete_post_after:"Удаление постов через",delete_days_words:["день","дня","дней"],delete_hours_words:["час","часа","часов"],add_link_to_post_in_comment:"Добавить ссылку на источник в комментарии",add_link_to_post_in_comment_tip:"Ссылка на источник будет добавлена не в описании поста, а в первом комментарии к посту",utm_tags:"UTM-метки",apply_button:"Применить"}},schedule_times:{label:"Время для постинга",title:"Время для постинга",open_button_one:"Настроить",open_button_two:"Изменить настройки",form:{add_time_method:"Добавление времени",add_time_methods:[{id:1,value:"Вручную"},{id:2,value:"Автоматически"},{id:3,value:"Каждые n минут"}],times_per_hour:"Число постов в час",which_day_types:[{id:0,value:"Создать на"},{id:1,value:"Понедельник"},{id:2,value:"Вторник"},{id:3,value:"Среду"},{id:4,value:"Четверг"},{id:5,value:"Пятницу"},{id:6,value:"Субботу"},{id:7,value:"Воскресенье"},{id:8,value:"Всю неделю"}],every_n_minutes_label:"Каждые",every_n_minutes_postfix:"минут",in_between:"В промежутке",days_names:["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],time_per_each_day:"Время на каждый день недели",add_time_button:"Добавить время",delete_time_button:"Удалить время",copy_day_button:"Скопировать день на всю неделю",clear_day_button:"Очистить день",set_posts_per_hour_confirmation:"Укажите число постов в час.",posts_per_hour_exceeded_confirmation:"Максимальное число постов в час: 10.",copy_day_confirmation:"Скопировать время на все дни недели?",clear_day_confirmation:"Очистить время для данного дня?",time_is_already_used_confirmation:"Данное время уже используется.",time_is_incorrect_confirmation:"Время указано неверно.",apply_button:"Применить"}},form_group_text_replacer:{replace_from:"Текст для замены",replace_to:"Замена",add_btn:"Добавить текст"},form_answers_mapping:{keyword:"Ключевое слово или фраза",answer:"Ответ",add_btn:"Добавить ответ"}},folders:{page_title:"Папки",create_page_title:"Новая папка",delete_confirmation:"Удалить эту папку?",objects_types:[{id:1,value:"Проекты"},{id:2,value:"Расписания"},{id:3,value:"Связи Кросс-постинга"},{id:4,value:"RSS каналы"}],list:{name:"Название",objects_type:"Тип объектов",actions:"Действия",action_buttons:{edit:"Редактировать",delete:"Удалить"}},form:{edit_title:"Редактирование папки",name:"Название",name_placeholder:"Укажите название папки",objects_type:"Тип объектов",objects_type_placeholder:"Укажите тип объектов",objects_type_no_items:"Нет типов объектов",objects_type_not_selected:"Тип объектов не выбран",select_objects:"Выберите объекты",no_objects:"Нет ни одного объекта",prompts:{set_folder_name:"Укажите название папки.",set_objects_type:"Укажите тип объектов.",set_objects:"Выберите объекты.",folder_saved:"Папка успешно сохранена.",folder_created:"Папка успешно создана."}}},posts:{page_title:"Мои посты",create_page_title:"Новый пост",list_views:{rows:"Список",columns:"Неделя",month:"Месяц"},delete_confirmation:"Удалить этот пост?",batch_move_button:"Перенести в расписание",batch_delete_confirmation:"Удалить выбранные посты?",batch_delete_button:"Удалить посты",list:{link:"Ссылка",repost_link:"Репост",source_link:"Исходный пост",is_ad:"Реклама",project:"Проект",schedule:"Расписание",source_stats:"Из кросс-постинга",action_buttons:{edit:"Редактировать",delete:"Удалить"},more_action_buttons:{copy:"Создать копию"},pages_for:"Страницы",move_posts_to_schedule:"Перенос постов в расписание",link_to_post:"Ссылка на пост",post_planned_tip:'Отправлен в "отложку"',post_on_repeat:"На повторе",post_is_processing:"в обработке...",post_is_stopped:"остановлен",statistics:{title:"Статистика за неделю",published_amount:"Опубликовано",published_amount_tip:"Число успешных публикаций в соц сети",errors_amount:"Ошибок",errors_amount_tip:"Общее число ошибок во время постинга",published_24:"Опубликовано за сутки",errors_24:"Ошибок за сутки"}},form:{create_title:"Создание поста",copy_title:"Копирование поста",edit_title:"Редактирование поста",edit_mode:"Режим редактирования",edit_modes:{new:"Новый",edit:"Редактирование",copy:"Копирование"},drop_files:{t1:"Бросьте файлы здесь",t2:"для загрузки"},text_label:"Что публиковать",posts_text_label:"Подпись к постам",reposts_text_label:"Подпись к репостам",content_required:"Требуется контент",text_limit_exceeded:"Превышение текста",publication_date:"Дата публикации",pages_for_dates:"Отдельное время для",pages_for_dates_no_items:"Не выбрано ни одной страницы",networks:"Соц. сети",publication_when_type:"Когда публиковать",publication_when_types:[{id:1,value:"Сейчас",disabled:!1},{id:2,value:"Потом",disabled:!1},{id:3,value:"По расписанию",disabled:!1}],publication_how_type:"Выбор соц. сетей",publication_how_types:[{id:1,value:"Ручной"},{id:2,value:"Через проект"}
1],set_schedule:"Укажите расписание",texts_options:{smiles_title:"Смайлы",texts_sources_title:"Отдельный текст",ai_title:"Обработка с помощью ИИ",text_source:"Текст для",texts_sources_header:"Отдельный текст для",texts_sources:[{name:"ВКонтакте",source_id:1},{name:"Одноклассники",source_id:2},{name:"Max",source_id:28},{name:"Facebook",source_id:3},{name:"Twitter",source_id:4},{name:"Pinterest",source_id:6},{name:"Instagram",source_id:7},{name:"Telegram",source_id:9},{name:"Дзен",source_id:13},{name:"TikTok",source_id:14},{name:"Viber",source_id:16},{name:"YouTube",source_id:17},{name:"LinkedIn",source_id:18}],delete_text_warning:"Удалить эту версию текста?",create_text_with_ai:"Создание текста с помощью ИИ",ai_source_text_label:"Исходный текст",ai_request_label:"Команда для ИИ (prompt)",ai_request_placeholder:"Опишите вашу команду (prompt) для ИИ, чтобы он создал для вас текст",ai_request_types:[{id:1,value:"Сделать рерайт"},{id:2,value:"Дописать текст, увеличив объем"},{id:3,value:"Сократить текст"},{id:4,value:"Разделить текст на параграфы"},{id:10,value:"Создать картинку для текста"},{id:11,value:"Создать картинку по команде (prompt)"},{id:5,value:"Добавить смайлы"},{id:6,value:"Добавить хештеги"},{id:7,value:"Перевести текст на русский язык"},{id:8,value:"Перевести текст на английский язык"},{id:9,value:"Своя команда (prompt)"}],ai_request_commands:["","Измени текст на том же языке, сделай его уникальным, но не меняй смысл:","Допиши указанный текст на том же языке, сохраняя смысл:","Сократи указанный текст на том же языке, сохраняя смысл:","Раздели текст на параграфы, сохраняя смысл:","Добавь в текст смайлы там, где это уместно, сохраняя смысл:","Определи несколько хештегов для этого текста:","Переведи текст на русский язык:","Переведи текст на английский язык:"],ai_request_send:"Отправить запрос",ai_set_request_warning:"Укажите запрос для написания текста.",ai_set_images_request_warning:"Укажите запрос для созданий картинки.",ai_images_progress:"Создается изображение...",ai_set_text_warning:"Укажите текст для обработки.",ai_cancel_request_warning:"Прервать процесс создания текста?",ai_response_label:"Результат",ai_response_placeholder:"Здесь будет ответ от ИИ, после того, как вы отправите запрос",ai_response_apply:"Готово"},attachments_types:{settings:"Настройки поста",close:"Закрыть",clear:"Очистить",settings_options:{repeat_type:"Повторять",repeat_days_prefix:["Каждый","Каждые","Каждые"],repeat_days_postfix:["день","дня","дней"],repeat_stop_date:"Дата остановки повтора",delete_post:"Удалить через",unique_content:"Уникализация текста",unique_content_tip:"Некоторые случайные буквы в тексте будут заменены на латиницу",content_by_stars_tip:"Для постов с фото или видео в Телеграм",random_content:"Случайный контент",random_content_tip:"Для поста на повторе будет браться одно случайное фото или видео, если их несколько",disable_comments:"Отключить комментарии",disable_stitch:"Отключить stitch",disable_duet:"Отключить дуэты",commercial_content:"Коммерческий контент",commercial_content_tip:"Все будут знать, что в этой публикации рекламируется бренд, товар или услуга",commercial_content_label_1:'Ваше фото/видео будет помечено как "Рекламн
1ый контент"',commercial_content_label_2:'Ваше фото/видео будет помечено как "Платное партнерство"',commercial_content_label_3:"Необходимо указать, рекламирует ли ваш контент вас самих, третью сторону или и то, и другое",my_brand_content:"Ваш бренд",my_brand_content_tip:"Вы рекламируете себя или свой бизнес",my_brand_content_mention:'Публикуя контент, вы соглашаетесь с <a href="https://www.tiktok.com/legal/page/global/music-usage-confirmation/en" target="_blank">подтверждением использования музыки</a> TikTok.',branded_content:"Брендированный контент",branded_content_tip:"Ваши видео спонсируются брендом. После публикации видео откройте мобильное приложение ТикТок, зайдите в настройки рекламы видео и дайте ссылку на компанию",branded_content_mention:'Публикуя контент, вы соглашаетесь с <a href="https://www.tiktok.com/legal/page/global/bc-policy/en" target="_blank">Политикой брендированного контента</a> TikTok и <a href="https://www.tiktok.com/legal/page/global/music-usage-confirmation/en" target="_blank">подтверждением использования музыки</a>.',publish_as_story:"Публиковать в истории",publish_as_reels:"Публиковать в reels",publish_reels_as_trial:"Публиковать в тестовый reels",publish_as_clips:"Публиковать в клипы",publish_as_shorts:"Публиковать в shorts",publish_as_article:"Публиковать в статьи",publish_as_article_by_link:"Публиковать в статьи по ссылке",publish_as_article_by_link_tip:"Будет опубликован пост со ссылкой на статью",publish_in_channel:"Публиковать в канал",publish_in_channel_tip:"Пост будет опубликован в канал группы",share_stories_to_feed:"Публиковать в истории и на стену",share_reels_to_feed:"Публиковать в reels и на стену",share_clips_to_feed:"Публиковать в клипы и на стену",share_clips_to_feed_with_text:"Публиковать в клипы и на стену с текстом",share_clips_to_feed_if_no_video:"Публиковать в клипы и на стену, если есть фото",share_channel_to_feed:"Публиковать в канал и на стену",expand_clips_title:"Добавить подпись к тексту клипа",publish_as_user:"Публиковать от имени пользователя",add_link_to_user:"Добавить подпись пользователя",message_to_community:'Кнопка "Написать сообществу"',message_to_channel:'Кнопка "Больше постов — в канале"',pin_post:"Закрепить пост",plan_by_network:'Отправить в "отложку"',plan_by_network_tip:"Пост в будущем времени заранее отправляется в соц. сеть, чтобы позже она сама его опубликовала",download_vk_video:"Скачать видео из ВК",download_vk_video_tip:"Видео будет опубликовано так, словно это вы его загрузили, а не взяли из чужого источника.",publish_as_carousel:"Публиковать в виде карусели",publish_only_in_videos:"Публиковать только в видео",publish_only_in_videos_tip:"Пост должен содержать видео и он будет опубликован только в раздел ВК Видео. На стене он не появится.",not_publish_in_videos:"Не публиковать в видео",not_publish_in_videos_tip:"Если пост содержит видео, то оно появится только на стене. В разделе ВК Видео его Ð
1½Ðµ будет.",repeat_video:"Зациклить видео",parse_links:"Парсить ссылки",parse_links_tip:"Если текст поста содержит ссылку(и), то будет взята первая из них и добавлена к посту, как отдельное вложение.",is_ad:"Рекламный пост",ord_contract_id:"Договор",no_ord_contracts:"Нет ни одного договора",privacy_level:"Уровень доступа к видео",privacy_level_options:[{id:0,value:"--"},{id:1,value:"Для всех"},{id:2,value:"Только для друзей"},{id:3,value:"Только для меня"}],publish_by_account:"Публиковать от имени аккаунта",publish_by_account_tip:"Пост будет опубликован от имени аккаунта в соц сети, а не бота."},photos:"Фото/Видео",photos_select_button:"Выбрать с устройства",photos_vk_photos_button:"ВК фото",photos_vk_videos_button:"ВК видео",photos_load_by_link_placeholder:"Ссылка на файл или пост",photos_load_by_link_button:"Загрузить",audios:"Аудио",documents:"Документы",documents_select_button:"Выбрать с устройства",link:"Внешняя ссылка",link_placeholder:"Укажите ссылку на сайт",poll:"Опрос",poll_question_placeholder:"Укажите вопрос",poll_answer_placeholder:"Добавьте вариант ответа",poll_answer_variant_placeholder:"Вариант ответа",poll_anonymous_voting:"Анонимное голосование",poll_multiple_answers:"Выбор нескольких вариантов ответа",poll_background:"Фон для опроса",poll_until_times:[{id:0,value:"Без даты завершения"},{id:"2_hours",value:"Завершить через 2 часа"},{id:"5_hours",value:"Завершить через 5 часов"},{id:"12_hours",value:"Завершить через 12 часов"},{id:"24_hours",value:"Завершить через 24 часа"},{id:"2_days",value:"Завершить через 2 дня"},{id:"3_days",value:"Завершить через 3 дня"},{id:"5_days",value:"Завершить через 5 дней"},{id:"7_days",value:"Завершить через 7 дней"},{id:"10_days",value:"Завершить через 10 дней"},{id:"14_days",value:"Завершить через 14 дней"},{id:"30_days",value:"Завершить через 30 дней"}],copyright:"Ссылка на источник ВК",copyright_placeholder:"Укажите ссылку на пост",repost:"Репост",repost_placeholder:"Укажите ссылку на пост",source:"Исходный пост",source_placeholder:"Укажите ссылку на пост",repost_name:"Название репоста",comment:"Комментарий",comment_placeholder:"Укажите комментарий к посту",publish_comment_by_account:"Публиковать от имени аккаунта",comment_photo:"Фото к комментарию",location:"Геометка Инстаграм",telegram_buttons:"Кнопки Max/Телеграм",telegram_buttons_placeholder:"Добавить кнопку",telegram_button_name:"Название кнопки",telegram_button_link:"Ссылка",ad:"Реклама",is_ad:"Пост является рекламой",ord_contract_id:"Договор о рекламе",title:"Заголовок",title_placeholder:"Укажите заголовок поста"},prompts:{set_project:"Укажите проект.",set_schedule:"Укажите расписание.",no_more_than_5_schedules:"Вы можете указать не более 5 расписаний.",no_more_than_50_schedules:"Вы можете указать не более 50 расписаний.",saved:"Пост успешно сохранен.",saved_and_published:"Пост успешно сохранен и отправлен на публикацию.",created:"Пост успешно создан.",created_and_published:"Пост успешно создан и отправлен на публикацию.",created_and_scheduled:"Пост успешно создан и добавлен в расписание.",posts_created_and_scheduled:"Посты успешно созданы и добавлены в расписание.",no_content_for_several_networks:"ДÐ
1»Ñ нескольких соц. сетей не указан контент.",no_content_for_one_of_networks:"Для одной из соц. сетей не указан контент.",need_attachments:"Пост должен содержать текст и/или хотя-бы одно вложение.",need_at_least_one_social_page_to_choose:"Укажите одну или несколько соц. страниц для постинга."},calendar:{label:"Календарь постов",edit_form_disabled_confirmation:"Дождитесь выполнения операции.",edit_form_id_confirmation:"Этот пост уже открыт для редактирования.",copy_form_disabled_confirmation:"Дождитесь выполнения операции.",copy_form_id_confirmation:"Этот пост уже открыт для копирования."}},projects:{page_title:"Проекты",create_page_title:"Новый проект",delete_confirmation:"Удалить этот проект? Если он использовался для постов и расписаний, то они тоже будут удалены.",batch_delete_confirmation:"Удалить выбранные проекты? Если они использовались для постов и расписаний, то они тоже будут удалены.",batch_delete_button:"Удалить проекты",list:{name:"Название",count:"Посты",networks:"Соц. сети",actions:"Действия",action_buttons:{edit:"Редактировать"},more_action_buttons:{delete:"Удалить",copy:"Создать копию"},pages_for:"Страницы",sorting_title:"Сортировка проектов"},form:{create_title:"Создание проекта",copy_title:"Копирование проекта",edit_title:"Редактирование проекта",name:"Название",name_placeholder:"Укажите название проекта",networks:"Куда публиковать",posts_caption_placeholder:"Подпись будет добавлена ко всем постам из данного проекта",posts_caption_photos_placeholder:"Подпись будет добавлена ко всем фотографиям в постах из данного проекта",posts_videos_title_placeholder:"Заголовок будет указан во всех видео из данного проекта",posts_caption_comment_placeholder:"Комментарий будет добавлен ко всем постам из данного проекта",prompts:{saved:"Проект успешно сохранен.",created:"Проект успешно создан.",set_name_confirmation:"Укажите название проекта.",set_networks_confirmation:"Укажите место для постинга."}},form_group:{label:"Проект",no_items:"Нет ни одного проекта",default_value:"Укажите проект",create_title:"Создание проекта",edit_title:"Редактирование проекта",action_buttons:{add:"Создать",edit:"Редактировать",delete:"Удалить"}}},schedules:{page_title:"Расписания",create_page_title:"Новое расписание",delete_confirmation:"Удалить это расписание? Если оно использовалось для постов, то они тоже будут удалены.",batch_stop_button:"Остановить расписания",batch_stop_confirmation:"Остановить выбранные расписания? Посты из этих расписаний не будут публиковаться.",batch_start_button:"Запустить расписания",batch_start_confirmation:"Запустить выбранные расписания? Посты из этих расписаний будут публиковаться.",batch_delete_button:"Удалить расписания",batch_delete_confirmation:"Удалить выбранные расписания? Если они использовались для постов, то они тоже будут удалены.",batch_shuffle_posts_button:"Перемешать посты",batch_shuffle_posts_confirmation:"Перемешать посты в выбранных расписаниях?",batch_delete_posts_button:"Удалить посты",batch_delete_posts_confirmation:"Удалить посты в выбранных расписаниях?",list:{name:"Название",state:"Статус",states:{active:"Активно",waiting_for_launch:"Ожидает запуска",stopped:"Остановлено"},ads_times:"Время для рекламы",count:"Посты",networks:"Соц. сети",actions:"Действия",action_buttons:{edit:"Редактировать",view_posts:"Показать посты"},more_action_buttons:{ads_times:"Время для рекламы",shuffle_posts:"Перемешать посты",delete_posts:"Удалить посты",delete:"Удалить расписание",copy:"Создать копию",copy_with_posts:"Создать копию с постами",copies:"Создать копии"},pages_for:"Страницы",sorting_title:"Сортировка расписаний",posts_title:"Посты в расписании",copies_title:"Создание копий расписания",ads_times_title:"Время для рекламы",shuffle_answer:"Процесс перемешивания постов успешно запущен.",shuffle_confirmation:"Последовательность постов будет изменена в случайном порядке. Продолжить?",clear_answer:"Процесс удаления постов успешно запущен.",clear_confirmation:"Все посты в расписании будут удалены. Продолжить?"},form:{create_title:"Создание расписания",copy_title:"Копирование расписания",edit_title:"Редактирование расписания",name:"Название",name_placeholder:"Укажите название расписания",state:"Состояние",states:[{id:1,value:"Активно"},{id:2,value:"Отложенный запуск"},{id:3,value:"Остановлено"}],start_date:"Дата запуска",stop_date:"Дата остановки",publication_how_type:"Выбор соц. сетей",publication_how_types:[{id:1,value:"Ручной"},{id:2,value:"Через проект"}
1],networks:"Соц. сети",posts_caption_placeholder:"Подпись будет добавлена ко всем постам из данного расписания",posts_caption_photos_placeholder:"Подпись будет добавлена ко всем фотографиям в постах из данного расписания",posts_videos_title_placeholder:"Заголовок будет указан во всех видео из данного расписания",posts_caption_comment_placeholder:"Комментарий будет добавлен ко всем постам из данного расписания",prompts:{saved:"Расписание успешно сохранено.",created:"Расписание успешно создано.",set_name_confirmation:"Укажите название расписания.",set_networks_confirmation:"Укажите место для постинга (соц. страницу или проект).",set_times_confirmation:"Настройте время для постинга.",set_project_confirmation:"Укажите проект."}},form_group:{label:"Расписание",no_items:"Нет ни одного расписания",default_value:"Укажите расписание",create_title:"Создание расписания",edit_title:"Редактирование расписания",delete_warning:"Удалить это расписание? Если оно использовалось для постов - они тоже будут удалены.",action_buttons:{add:"Создать",edit:"Редактировать",delete:"Удалить"}},schedule_ads_times:{prompt:"Если вы хотите отменить публикацию постов из данного расписания в определенное время, из-за публикации рекламы в группах, то укажите здесь данное рекламное время и в это время посты из расписания публиковаться не будут.",add_time_methods:[{id:1,value:"Точная дата рекламы"},{id:2,value:"Рекламный период"}],ads_time:"Дата и время рекламы",ads_interval_from:"Рекламный период от",ads_interval_to:"До",ads_interval_tip:"Время начала и конца рекламного периода, в рамках которого ничего не будет публиковаться",add_time_button:"Добавить время",add_interval_button:"Добавить период",select_ads_times:"Укажите время для рекламы",no_ads_times:"Нет времени для рекламы",set_date_confirmation:"Укажите дату и время рекламы.",set_date_from_confirmation:"Укажите дату начала рекламного периода.",set_date_to_confirmation:"Укажите дату конца рекламного периода.",interval_is_already_exists_confirmation:"Такое время уже есть в списке.",saved_confirmation:"Время для рекламы успешно сохранено.",cancel_btn:"Отменить",save_btn:"Сохранить"},schedule_posts:{action_buttons:{edit:"Редактировать"},more_action_buttons:{delete:"Удалить",copy:"Создать копию"},modes:[{id:1,value:"Режим просмотра"},{id:2,value:"Режим сортировки"}],wait:"Пожалуйста, подождите...",no_posts:"Постов нет.",post_copy:"Копирование поста",post_edit:"Редактирование поста",delete_post_warning:"Удалить этот пост навсегда?",move_post_success:"Пост успешно перемещен."}},batch_uploading:{page_title:"Пакетная загрузка",create_page_title:"Загрузка постов",form:{posts_source_type:"Источник постов",posts_source_types:[{id:1,value:"Устройство"},{id:2,value:"Excel/CSV"},{id:3,value:"Фотоальбом"}],photos_per_post_amount:"Число файлов на пост",photos_per_post_amount_tip:"Например, загрузив 100 фотографий и указав 2 фото на пост, будет создано 50 постов с двумя фото в каждом",f
1ile_type:"Тип файла",delimiter_type:"Разделитель столбцов",delimiter_types:[{id:1,value:'Символ ","'},{id:2,value:'Символ ";"'}],uploading_where_type:"Куда загружать",uploading_where_types:[{id:1,value:"В проект"},{id:2,value:"В расписание"},{id:3,value:"Указано в файле"}],files:"Фото/видео файлы *",file:"файл *",photos_from_album:"Фото из альбомов *",select_photos:"Выбрать фото",album_selected_prefix:"Выбран",album_selected_name:"альбом",photos_selected_prefix:"Выбрано",photos_selected_postfix:["фото","фото","фото"],photos_from_title:"Мои фото",posts_text_label:"Текст к постам",posts_text_placeholder:"Данный текст будет указан для каждого поста с фото или видео файлом",posts_link_label:"Ссылка к постам",posts_link_placeholder:"Укажите ссылку для постов",posts_title_label:"Заголовок к постам",posts_title_label_tip:"Для постов в Pinterest",posts_title_placeholder:"Укажите заголовок для постов",posts_videos_title_label:"Заголовок к видео",posts_videos_title_placeholder:"Укажите заголовок для видео",is_videos_title_merged:"Объединять заголовок с названием файлов",open_button_one:"Настроить",open_button_two:"Изменить настройки",uploading_progress:"Загрузка файлов...",uploading_almost_ready:"Почти готово...",file_uploaded_confirmation:"Файл успешно загружен и отправлен на обработку.",files_uploaded_confirmation:"Файлы успешно загружены и отправлены на обработку.",files_limit_confirmation:"Вы можете загружать не более 500 файлов за один раз.",files_video_size_limit_confirmation:"Максимальный размер одного видео для вашего тарифа",files_photo_size_limit_confirmation:"Максимальный размер одного изображения: 5mb.",summary_size_limit_confirmation:"Максимальный суммарный размер файлов для вашего тарифа:",videos_is_not_allowed_confirmation:"Ваш тариф не позволяет загружать видео.",create_posts_button:"Создать посты",apply_button:"Применить"}},settings:{page_title:"Настройки постов",form:{is_commit_edit_for_planned_posts:'Менять текст в "отложке" при изменении на Хуппи',is_commit_delete_for_planned_posts:'Удалять пост из "отложки" при удалении с Хуппи',is_commit_delete_for_planned_posts_tip:'Если пост был отправлен в "отложку" соц. сети, то, при удалении с Хуппи, из соц. сети он также будет удален',is_save_posts_settings:"Сохранять настройки формы поста",save_btn:"Сохранить",prompts:{saved:"Настройки успешно сохранены."}}},list_month:{days:{mo:"Пн",tu:"Вт",we:"Ср",th:"Чт",fr:"Пт",sa:"Сб",su:"Вс"},wait:"Пожалуйста, подождите...",no_posts:"Постов нет.",archive:"архив",link:"Ссылка",repost:"Репост"}},live:{page_title:"Живая лента"},postsSearch:{page_title:"Поиск постов",delete_confirmation:"Удалить этот пост?",copy_part:"Копирование",copy_posts:["поста","постов","постов"],copy_full:"Копирование поста",repost:"Репост",batch_copy:"Опубликовать в виде копии",batch_repost:"Опубликовать в виде репоста",batch_delete:"Удалить",batch_delete_warning:"Удалить выбранные посты?",list:{likes:"Лайки",reposts:"Репосты",comments:"Комментарии",views:"Просмотры",involvement:"Вовлеченность",action_buttons:{repost:"Опубликовать в виде репоста",copy:"Опубликовать в виде копии",delete:"Удалить"}},parsingForm:{title:"Парсер постов",source_type:"Тип источника",search_type:"Метод поиска",network:"Соц. сеть",posts_type:"Тип постов",posts_types:[{id:1,value:"Обычные"},{id:2,value:"Для донатов"}],text_markup_type:"Текст постов",text_markup_types:[{id:1,value:"Без разметки"},{id:2,value:"С разметкой"}],posts_date:"Дата постов",date_from:"От",date_to:"До",account:"Аккаунт-парсер",account_placeholder:"Укажите аккаунт",account_tip:"Аккаунт, с помощью которого Хуппи запустит функцию поиска постов в выбранной соц. сети",no_accounts:"Нет ни одного аккаунта",start_btn:"Запустить",stop_btn:"Остановить",pages_checked:"Страниц проверено",pages_checked_from:"из",current_page:"Текущая страница",posts_checked_count:"Постов проверено",posts_taken_count:"Постов собрано",prompts:{search_started:"Поиск успешно запущен.",search_stopped:"Поиск успешно остановлен.",stop_confirmation:"Остановить процесс поиска?",search_is_available:"Search is not available. Try refreshing the page.",set_source_resources:"Укажите источник постов",set_account:"Укажите аккаунт-парсер"}},sourceResources:{page_title:"Источники постов",create_page_title:"Новый источник",clear_confirmation:"Очистить этот источник? Все его посты будут удалены.",delete_confirmation:"Удалить этот источник? Если он содержал посты, то они тоже будут удалены.",s
1ource_types_names:{network:"Соц. сеть",rss:"RSS"},search_types_names:{pages:"Страницы",pages_placeholder:"Укажите список ссылок на страницы. Каждая ссылка с новой строки",hashtag:"Хештег",hashtag_placeholder:"Укажите название хештега",rss:"RSS лента",rss_placeholder:"Укажите ссылку на RSS ленту"},list:{name:"Название",source_type:"Тип источника",search_type:"Метод поиска",network:"Соц. сеть",actions:"Действия",action_buttons:{edit:"Редактировать",clear:"Удалить посты",delete:"Удалить источник"}},form:{create_title:"Создание источника",edit_title:"Редактирование источника",name:"Название",name_placeholder:"Укажите название источника",source_type:"Тип источника",source_types:[{id:1,value:"Соц. сети"},{id:2,value:"RSS"}],search_type:"Метод поиска",search_types:[{id:1,value:"Страницы"},{id:2,value:"Хештег"}],network:"Соц. сеть",prompts:{saved:"Источник успешно сохранен.",created:"Источник успешно создан.",set_name_confirmation:"Укажите название источника.",set_pages_confirmation:"Укажите список ссылок на страницы.",set_hashtag_confirmation:"Укажите название хештега.",set_rss_confirmation:"Укажите ссылку на RSS ленту."},settings_button_one:"Настроить",settings_button_two:"Изменить настройки",posts_filter:{label:"Фильтр постов по вложениям",title:"Фильтр постов по вложениям",posts_filter_configuration_fields:{must_have:{name:"Посты должны содержать",values:[{id:1,value:"Текст"},{id:2,value:"Фото"},{id:3,value:"Видео"},{id:4,value:"Документы"}],type:"checkbox",inline_field:{alias:"logical_union",name:"",values:[{id:2,value:"Некоторые из выбранных"},{id:1,value:"Все из выбранных"}],type:"radio"}},skip_with:{name:"Посты не должны содержать",values:[{id:1,value:"Фото"},{id:2,value:"Видео"},{id:3,value:"Аудио"},{id:4,value:"Клип"},{id:6,value:"Репост"},{id:7,value:"Ссылку на источник"},{id:8,value:"Статью"},{id:9,value:"Рекламу"},{id:10,value:"Опрос"},{id:11,value:"Документы"}],type:"checkbox"}},apply:"Применить"},posts_text:{label:"Фильтр постов по тексту",title:"Фильтр постов по тексту",posts_text_configuration_fields:{black_list:{name:"Стоп-слова",placeholder:"Посты с этими словами/фразами публиковаться не будут. Каждое слово/фраза с новой строки",type:"textarea"},white_list:{name:"Исключения",placeholder:"Публиковаться будут только посты с этими словами/фразами. Каждое слово/фраза с новой строки",type:"textarea"},keywords_priority:{name:"Инверсия стоп-слов и исключений",tip:"Включив инверсию вы меняете местами стоп-слова и исключения по их приоритету. Стоп-слова становятся важнее исключений.",values:[{id:1,value:"Выключена"},{id:2,value:"Включена"}],type:"radio"},links:{name:"Наличие ссылок",values:[{id:1,value:"Не важно"},{id:2,value:"Не должны быть"},{id:3,value:"Должны быть"}],type:"radio"},tags:{name:"Наличие тегов",values:[{id:1,value:"Не важно"},{id:2,value:"Не должны быть"},{id:3,value:"Должны быть"}],type:"radio"},phones:{name:"Наличие номеров телефона",values:[{id:1,value:"Не важно"},{id:2,value:"Не должны быть"},{id:3,value:"Должны быть"}],type:"radio"},author:{name:"Наличие автора",values:[{id:1,value:"Не важно"},{id:2,value:"Не должен быть"},{id:3,value:"Должен быть"}],type:"radio"},text_limit:{name:"Максимальная длина текста",tip:"Посты с текстом длиннее, чем указано, будут игнорироваться. Пусто или 0 - будет взят любой текст",postfix:"символов",type:"input_numbers"},text_min:{name:"Минимальная длина текста",tip:"Посты с текстом меньше, чем указано, будут игнорироваться. Пусто или 0 - будет взят любой текст",postfix:"символов",type:"input_numbers"}},apply:"Применить"},posts_upgrade:{label:"Что брать из постов, а что нет",title:"Что брать из постов, а что нет",posts_upgrade_configuration_fields:{take_only:{name:"Брать из постов только",values:[{id:1,value:"Текст"},{id:2,value:"Все фото"},{id:6,value:"Только первое фото"},{id:3,value:"Все видео"},{id:7,value:"Только первое видео"},{id:4,value:"Ссылку"},{id:5,value:"Документы"}],type:"checkbox"},do_not_take:{name:"Не брать из постов",values:[{id:1,value:"Текст"},{id:2,value:"Фото"},{id:3,value:"Видео"},{id:6,value:"Аудио"},{id:4,value:"Ссылку"},{id:5,value:"Документы"}],type:"checkbox"},remove_from:{name:"Удалять из постов",values:[{id:1,value:"Ссылки"},{id:2,value:"Теги"},{id:3,value:"Текст (кроме тегов)"}],type:"checkbox"}},apply:"Применить"},posts_text_modification:{label:"Изменение текста постов",title:"Изменение текста постов",posts_text_modification_configuration_fields:{carved_list:{name:"Вырезать слова",placeholder:"Эти слова, фразы или текст будут вырезаться из основного текста постов. Каждое слово/фраза/текст с новой строки",type:"textarea"},replace_words:{name:"Замена текста",type:"text_replacer"},cut_smiles:{name:"Вырезать смайлы из текста",values:[{id:1,value:"Нет"},{id:2,value:"Да"}],type:"radio"}},apply:"Применить"}},form_group:{label:"Источник постов",no_items:"Нет ни одного источника",default_value:"Укажите источник",create_title:"Создание источника",edit_title:"Редактирование источника",action_buttons:{add:"Создать",edit:"Редактировать",delete:"Удалить"}}},settings:{page_title:"Настройки поиска постов",form:{is_add_author_link:"Добавлять ссылку на автора постов",is_add_copyright:"Добавлять ссылку на источник",is_save_source_photos_links:"Сохранять ссылки на фотографии",is_save_source_videos_names:"Сохранять указанные названия видео",is_delete_used_posts_from_search:"Удалять посты из поиска после использования",save_btn:"Сохранить",prompts:{saved:"Настройки успешно сохранены."}}}},crossPosting:{page_title:"Кросс-постинг",create_page_title:"Новая связь",delete_confirmation:"Удалить эту связь?",batch_delete_confirmation:"Удалить выбранные связи?",batch_delete_button:"Удалить",batch_start_confirmation:"Запустить выбранные связи?",batch_start_button:"Запустить",batch_stop_confirmation:"Остановить выбранные связи?",batch_stop_button:"Остановить",list:{name:"Название",networks:"Соц. сети",actions:"Действия",action_buttons:{toggle:"Включить",edit:"Редактировать"},more_action_buttons:{statistics:"Статистика",progress:"Прогресс поиска",errors:"Ошибки",logs:"Лог фильтров",check:"Запустить сейчас",check24:"Проверить за 24 часа",checkWeek:"Проверить за неделю",check2Weeks:"Проверить за 2 недели",delete:"Удалить",copy:"Создать копию"},toggle_on:"Включить",toggle_off:"Выключить",next_check_date:"Следующий запуск",pages_for:"Страницы",statistics_title:"Статистика связи",errors_title:"Ошибки связи",logs_title:"Лог фильтров",sorting_title:"Сортировка связей",search_pagination:{w
1ait:"Пожалуйста, подождите...",no_data:"Данных нет.",last_check_date:"Дата последнего взятого поста (либо последней проверки)",posts_summary:"Всего постов собрано"},statistics:{title:"Статистика за неделю",found:"Проверено",filtered:"Отклонено",duplicates:"Дублей",taken:"Взято",errors:"Ошибок",found_tip:"сколько всего постов было найдено и взято для проверки",filtered_tip:"сколько постов было отклонено после проверки, согласно фильтров",duplicates_tip:"сколько постов-дублей было найдено и отклонено",taken_tip:"сколько постов было фактически взято после проверки, согласно фильтров",errors_tip:"сколько ошибок случилось в процессе проверки постов",taken_24:"Взято постов за сутки",filtered_24:"Отклонено за сутки",errors_24:"Ошибок за сутки"}},form:{copy_title:"Копирование связи",edit_title:"Редактирование связи",name:"Название",name_placeholder:"Укажите название связи",search_mode:"Какие посты брать",search_mode_direction:"Направление сбора",search_modes:[{id:1,value:"Новые"},{id:2,value:"Старые"},{id:3,value:"Лучшие"},{id:4,value:"Случайные"}],search_mode_directions:[{id:1,value:"От старых к новым"},{id:2,value:"От новых к старым"}],search_date:"Период времени для поиска постов",search_date_from:"От",search_date_to:"До",determine_best_by:"Определять лучшие посты по",determine_best_by_types:[{id:1,value:"Лайкам"},{id:2,value:"Репостам"},{id:3,value:"Комментариям"},{id:4,value:"Просмотрам"}],check_when_type:"Как часто проверять",check_when_types:[{id:1,value:"По интервалу"},{id:2,value:"В указанное время"}],check_when_type_tip:"Как часто запускать проверку на наличие новых постов",check_interval:"Интервал проверки",check_intervals:[{id:1,value:"Каждые пол часа"},{id:2,value:"Каждый час"},{id:3,value:"Каждые два часа"},{id:4,value:"Каждые три часа"},{id:5,value:"Каждые четыре часа"},{id:6,value:"Один раз в день"},{id:7,value:"Два раза в день"},{id:8,value:"Три раза в день"},{id:9,value:"Четыре раза в день"},{id:10,value:"Один раз в неделю"},{id:11,value:"Два раза в неделю"},{id:12,value:"Три раза в неделю"},{id:13,value:"Один раз в месяц"},{id:14,value:"Два раза в месяц"},{id:15,value:"Три раза в месяц"},{id:16,value:"Каждые 10 минут (для Pro+)"}],check_times:"Время для проверки постов",check_times_tip:"Проверка постов для данной связи будет запускаться каждый день в указанное здесь время",check_times_add:"Добавить время",take_amount:"Сколько постов брать",take_amount_postfix:["пост","поста","постов"],publication_when_type:"Когда публиковать",publication_when_types:[{id:1,value:"Сразу, после проверки"},{id:2,value:"По расписанию"}],publication_how_type:"Выбор соц. сетей",publication_how_types:[{id:1,value:"Ручной"},{id:2,value:"Через проект"}],networks:"Соц. сети",publication_interval_type:"Интервал постинга",publication_interval_types:[{id:1,value:"Постоянный"},{id:2,value:"Случайный в промежутке"}
1],publication_interval_type_tip:"Если было найдено несколько постов одновременно, их можно опубликовать с заданным интервалом времени",publication_interval_postfix:"мин.",publication_interval_from:"от",publication_interval_to:"до",copy_mode:"Метод копирования",copy_modes:[{id:1,value:"Копия поста"},{id:2,value:"Репост"}],posts_caption_placeholder:"Подпись будет добавлена ко всем постам из данной связи",posts_caption_photos_placeholder:"Подпись будет добавлена ко всем фотографиям в постах из данной связи",posts_videos_title_placeholder:"Заголовок будет указан во всех видео из данной связи",posts_caption_comment_placeholder:"Комментарий будет добавлен ко всем постам из данной связи",settings_button_one:"Настроить",settings_button_two:"Изменить настройки",statistics_title:"Статистика связи",errors_title:"Ошибки связи",logs_title:"Лог фильтров",search_pagination_title:"Прогресс анализа страниц",objects_sorting_title:"Сортировка связей",prompts:{set_name:"Укажите название связи.",set_source_resources:"Укажите, откуда брать посты.",source_resources_limit_15_exceeded:"Число ссылок для каждой соц. сети не должно превышать 15.",source_resources_limit_20_exceeded:"Число ссылок для каждой соц. сети не должно превышать 20.",set_accounts_for_parsing:"Укажите аккаунт-парсер для",check_interval_for_instagram:"Минимальный интервал проверки для источников из Instagram: 3 часа",check_interval_for_youtube:"Минимальный интервал проверки для источников из YouTube: 3 часа",set_pages:"Укажите одну или несколько соц. страниц для постинга.",check_when_type_warning:"Одна из точек времени для проверки постов указана не верно.",check_times_warning:"Укажите время для проверки постов.",set_project:"Укажите проект.",set_schedule:"Укажите расписание.",saved:"Связь успешно сохранена.",created:"Связь успешно создана."},search_filter_form:{title:"Параметры отбора постов",label:"Параметры отбора постов",likes_min:"Минимальное число лайков",reposts_min:"Минимальное число репостов",comments_min:"Минимальное число комментариев",views_min:"Минимальное число просмотров",apply_button:"Применить",open_button_one:"Настроить",open_button_two:"Изменить настройки"},source_resources:{label:"Откуда брать посты",title:"Откуда брать посты",from_networks:"Из соц. сетей",network_pages_placeholder:"Укажите список ссылок на соц. страницы. Каждая ссылка с новой строки",mode:"В каких источниках искать",modes:[{id:1,value:"Во всех",tip:"Посты будут забираться из всех указанных источников."},{id:2,value:"В одном случайном",tip:"Посты будут забираться только из одного источника для каждой из указанных соц сетей. При каждой проверке источник выбирается случайным образом."}],apply:"Применить"},accounts_for_parsing:{label:"Аккаунты-парсеры",title:"Аккаунты-парсеры",tip:"Аккаунты, с помощью которых мы будем запускать функцию поиска постов в выбранных соц. сетях.",for_networks:"ДÐ
1»Ñ соц. сетей",network_account:"Аккаунт",set_network_account:"Укажите аккаунт для парсинга",network_account_no_needed:"Не требуется",apply:"Применить"},posts_filter:{label:"Фильтр постов по вложениям",title:"Фильтр постов по вложениям",posts_filter_configuration_fields:{must_have:{name:"Посты должны содержать",values:[{id:1,value:"Текст"},{id:2,value:"Фото"},{id:3,value:"Видео"},{id:6,value:"Аудио"},{id:4,value:"Документы"},{id:5,value:"Статью"}],type:"checkbox",inline_field:{alias:"logical_union",name:"",values:[{id:2,value:"Что-то из выбранного"},{id:1,value:"Все из выбранных"}],type:"radio"}},skip_with:{name:"Посты не должны содержать",values:[{id:1,value:"Фото"},{id:2,value:"Видео"},{id:3,value:"Аудио"},{id:4,value:"Клип"},{id:6,value:"Репост"},{id:7,value:"Ссылку на источник"},{id:8,value:"Статью"},{id:9,value:"Рекламу"},{id:10,value:"Опрос"},{id:11,value:"Документы"}],type:"checkbox"},video_duration:{name:"Длительность видео",values:[{id:1,value:"Любая"},{id:2,value:">= одной минуты"},{id:9,value:">= двух минут"},{id:10,value:">= трех минут"},{id:3,value:"<= одной минуты"},{id:4,value:"<= двух минут"},{id:5,value:"<= трех минут"},{id:6,value:"<= пяти минут"},{id:7,value:">= 1 минуты и <= 3 минут"},{id:8,value:">= 1 минуты и <= 5 минут"}],type:"select"},photos_amount:{name:"Количество фото",values:[{id:1,value:"Любое"},{id:2,value:"Должно быть только одно"},{id:3,value:"Должно быть несколько"}],type:"select"},video_download_error:{name:"При ошибке скачивания видео",tip:"Например, при публикации из TG в ВК или наоборот. Или когда пост без видео может не иметь смысла",values:[{id:1,value:"Все-равно публиковать"},{id:2,value:"Не публиковать пост"}],type:"radio"}},apply:"Применить"},posts_text:{label:"Фильтр постов по тексту",title:"Фильтр постов по тексту",black_list_label:"Запрещенные слова",black_list_tip:"Посты, в тексте которых содержится хотя-бы одно слово из списка указанных, публиковаться не будут",black_list_exclude_tip:'Посты, в тексте которых содержится хотя-бы одно слово из списка указанных, публиковаться не будут (даже если они содержат слова из списка "необходимых")',black_list_placeholder:"Все слова и фразы указываются с новой строки",white_list_label:"Необходимые слова",white_list_tip:"Будут браться только те посты, в тексте которых содержится хотя-бы одно слово из списка указанных",white_list_placeholder:"Все слова и фразы указываются с новой строки",white_list_exclude_label:"Слова-исключения",white_list_exclude_tip:"Если в тексте поста было найдено запрещенное слово, но при этом содержится и слово-исключение, то пост будет опубликован",is_search_by_full_words:"Поиск по полному совпадению слов",posts_text_configuration_fields:{black_list:{name:"Стоп-слова",placeholder:"Посты с этими словами/фразами публиковаться не будут. Каждое слово/фраза с новой строки",type:"textarea"},white_list:{name:"Исключения",placeholder:"Публиковаться будут только посты с этими словами/фразами. Каждое слово/фраза с новой строки",type:"textarea"},keywords_priority:{name:"Инверсия приоритета слов",tip:"Включив инверсию вы меняете приоритет обработки запрещенных и необходимых слов.",values:[{id:1,value:"Выключена"},{id:2,value:"Включена"}],type:"radio"},links:{name:"Наличие ссылок",values:[{id:1,value:"Не важно"},{id:2,value:"Не должны быть"},{id:3,value:"Должны быть"}],type:"radio"},tags:{name:"Наличие тегов",values:[{id:1,value:"Не важно"},{id:2,value:"Не должны быть"},{id:3,value:"Должны быть"}],type:"radio"},phones:{name:"Наличие номеров телефона",values:[{id:1,value:"Не важно"},{id:2,value:"Не должны быть"},{id:3,value:"Должны быть"}],type:"radio"},author:{name:"Наличие автора",values:[{id:1,value:"Не важно"},{id:2,value:"Не должен быть"},{id:3,value:"Должен быть"}],type:"radio"},text_limit:{name:"Максимальная длина текста",tip:"Посты с текстом длиннее, чем указано, будут игнорироваться. Пусто или 0 - будет взят любой текст",postfix:"символов",type:"input_numbers"},text_min:{name:"Минимальная длина текста",tip:"Посты с текстом меньше, чем указано, будут игнорироваться. Пусто или 0 - будет взят любой текст",postfix:"символов",type:"input_numbers"}},apply:"Применить"},posts_upgrade:{label:"Что брать из постов, а что нет",title:"Что брать из постов, а что нет",posts_upgrade_configuration_fields:{take_only:{name:"Брать из постов только",values:[{id:1,value:"Текст"},{id:2,value:"Все фото"},{id:6,value:"Только первое фото"},{id:3,value:"Все видео"},{id:7,value:"Только первое видео"},{id:4,value:"Ссылку"},{id:5,value:"Документы"}],type:"checkbox"},do_not_take:{name:"Не брать из постов",values:[{id:1,value:"Текст"},{id:2,value:"Фото"},{id:3,value:"Видео"},{id:6,value:"Аудио"},{id:4,value:"Ссылку"},{id:5,value:"Документы"}],type:"checkbox"},remove_from:{name:"Удалять из постов",values:[{id:1,value:"Ссылки"},{id:2,value:"Теги"},{id:3,value:"Текст (кроме тегов)"}],type:"checkbox"}},apply:"Применить"},posts_text_modification:{label:"Изменение текста постов",title:"Изменение текста постов",posts_text_modification_configuration_fields:{carved_list:{name:"Вырезать слова",placeholder:"Эти слова, фразы или текст будут вырезаться из основного текста постов. Каждое слово/фраза/текст с новой строки",type:"textarea"},replace_words:{name:"Замена текста",type:"text_replacer"},text_translate:{name:"Перевод текста с помощью ИИ",tip:'Для этого укажите ключ от ИИ в разделе "Настройки".',values:[{id:1,value:"Нет"},{id:2,value:"Да"}],type:"radio",condition_fields:[{for_value:2,alias:"translate_lang_to",name:"Перевести на",values:[{id:2,value:"Английский"},{id:3,value:"Китайский"},{id:4,value:"Немецкий"},{id:5,value:"Испанский"},{id:6,value:"Французский"},{id:7,value:"Португальский"},{id:8,value:"Украинский"},{id:9,value:"Чешский"},{id:10,value:"Румынский"},{id:1,value:"Русский"}],form_group_class:"mb-2",type:"select"},{for_value:2,alias:"no_posts_if_no_translate",name:"Не публиковать посты без перевода",tip:"Если в процессе перевода произошла ошибка и текст не был переводен, то пост публиковаться не будет.",type:"checkbox"}]},cut_smiles:{name:"Вырезать смайлы из текста",values:[{id:1,value:"Нет"},{id:2,value:"Да"}],type:"radio"},save_markup:{name:"Сохранять разметку",values:[{id:1,value:"Нет"},{id:2,value:"Да"}
1],tip:"Для постов из Телеграм.",type:"radio"},add_link_on:{name:"Добавлять источник",values:[{id:1,value:"Ссылка на пост"},{id:2,value:"Ссылка на страницу"},{id:3,value:"Название страницы (без ссылки)"},{id:4,value:"Ссылка на автора (если пост от пользователя)"}],type:"checkbox"}},crop_text:"Обрезать текст",crop_text_types:[{id:1,value:"Нет"},{id:2,value:"Да"}],crop_text_limit:"Лимит текста",crop_text_limit_tip:"Текст постов будет обрезан до указанного числа символов",crop_text_words_declension:["символ","символа","символов"],apply:"Применить"}}},rssImport:{page_title:"Постинг из RSS",create_page_title:"Новый канал",delete_confirmation:"Удалить этот канал?",batch_delete_confirmation:"Удалить выбранные каналы?",batch_delete_button:"Удалить",batch_start_confirmation:"Запустить выбранные каналы?",batch_start_button:"Запустить",batch_stop_confirmation:"Остановить выбранные каналы?",batch_stop_button:"Остановить",list:{name:"Название",networks:"Соц. сети",actions:"Действия",action_buttons:{toggle:"Включить",edit:"Редактировать"},more_action_buttons:{statistics:"Статистика",errors:"Ошибки",check:"Запустить сейчас",delete:"Удалить",copy:"Создать копию"},toggle_on:"Включить",toggle_off:"Выключить",next_check_date:"Следующий запуск",pages_for:"Страницы",statistics_title:"Статистика канала",errors_title:"Ошибки канала",sorting_title:"Сортировка каналов",statistics:{found:"Проверено",taken:"Взято",errors:"Ошибок",found_tip:"сколько всего постов было найдено и взято для проверки",filtered_tip:"сколько постов было отклонено после проверки, согласно фильтров",taken_tip:"сколько постов было фактически взято после проверки, согласно фильтров",errors_tip:"сколько ошибок случилось в процессе проверки постов"}},form:{copy_title:"Копирование канала",edit_title:"Редактирование канала",name:"Название",name_placeholder:"Укажите название канала",link:"Ссылка на RSS-ленту",link_placeholder:"Укажите ссылку на RSS канал",check_interval:"Как часто проверять",check_intervals:[{id:1,value:"Каждые 15 минут"},{id:2,value:"Каждые пол часа"},{id:3,value:"Каждый час"},{id:4,value:"Каждые два часа"},{id:5,value:"Каждые три часа"},{id:6,value:"Каждые четыре часа"},{id:7,value:"Один раз в день"},{id:8,value:"Два раза в день"},{id:9,value:"Три раза в день"},{id:10,value:"Четыре раза в день"},{id:11,value:"Один раз в неделю"},{id:12,value:"Два раза в неделю"},{id:13,value:"Три раза в неделю"},{id:14,value:"Один раз в месяц"},{id:15,value:"Два раза в месяц"},{id:16,value:"Три раза в месяц"}],take_amount:"Сколько записей брать",take_amount_values:[{id:1,value:"1 новая запись"},{id:2,value:"2 новых записи"},{id:3,value:"3 новых записи"},{id:4,value:"5 новых записей"},{id:5,value:"10 новых записей"},{id:6,value:"Все новые записи (максимум 30)"}],publication_when_type:"Когда публиковать",publication_when_types:[{id:1,value:"Сразу, после проверки"},{id:2,value:"По расписанию"}],publication_how_type:"Выбор соц. сетей",publication_how_types:[{id:1,value:"Ручной"},{id:2,value:"Через проект"}
1],networks:"Соц. сети",posts_caption_placeholder:"Подпись будет добавлена ко всем постам из данного канала",posts_caption_photos_placeholder:"Подпись будет добавлена ко всем фотографиям в постах из данного канала",posts_videos_title_placeholder:"Заголовок будет указан во всех видео из данного канала",posts_caption_comment_placeholder:"Комментарий будет добавлен ко всем постам из данного канала",settings_button_one:"Настроить",settings_button_two:"Изменить настройки",prompts:{set_name:"Укажите название канала.",set_link:"Укажите ссылку на RSS канал.",set_pages:"Укажите одну или несколько соц. страниц для постинга.",set_project:"Укажите проект.",set_schedule:"Укажите расписание.",saved:"Канал успешно сохранен.",created:"Канал успешно создан."},posts_filter:{label:"Фильтр статей по вложениям",title:"Фильтр статей по вложениям",posts_filter_configuration_fields:{must_have:{name:"Статьи должны содержать",values:[{id:1,value:"Текст"},{id:2,value:"Фото"}],type:"checkbox"},skip_with:{name:"Статьи не должны содержать",values:[{id:1,value:"Фото"},{id:2,value:"Ссылки"},{id:3,value:"Теги"}],type:"checkbox"}},apply:"Применить"},posts_text:{label:"Фильтр статей по тексту",title:"Фильтр статей по тексту",posts_text_configuration_fields:{black_list:{name:"Стоп-слова",placeholder:"Статьи с этими словами/фразами публиковаться не будут. Каждое слово/фраза с новой строки",type:"textarea"},white_list:{name:"Исключения",placeholder:"Будут публиковаться статьи только с этими словами/фразами. Каждое слово/фраза с новой строки",type:"textarea"},keywords_priority:{name:"Инверсия стоп-слов и исключений",tip:"Включив инверсию вы меняете местами стоп-слова и исключения по их приоритету. Стоп-слова становятся важнее исключений.",values:[{id:1,value:"Выключена"},{id:2,value:"Включена"}],type:"radio"}},apply:"Применить"},posts_upgrade:{label:"Что брать из статей, а что нет",title:"Что брать из статей, а что нет",posts_upgrade_configuration_fields:{take_only:{name:"Брать из статей только",values:[{id:1,value:"Заголовок"},{id:2,value:"Текст"},{id:3,value:"Фото"},{id:4,value:"Ссылку"}],type:"checkbox"},do_not_take:{name:"Не брать из статей",values:[{id:1,value:"Заголовок"},{id:2,value:"Текст"},{id:3,value:"Фото"},{id:4,value:"Ссылку"}],type:"checkbox"},remove_from:{name:"Удалять из статей",values:[{id:1,value:"Ссылки"},{id:2,value:"Теги"},{id:3,value:"Текст (кроме тегов)"}],type:"checkbox"}},apply:"Применить"},posts_text_modification:{label:"Изменение текста статей",title:"Изменение текста статей",posts_text_modification_configuration_fields:{carved_list:{name:"Вырезать слова",placeholder:"Эти слова, фразы или текст будут вырезаться из основного текста постов. Каждое слово/фраза/текст с новой строки",type:"textarea"},text_translate:{name:"Перевод текста с помощью ИИ",tip:'Для этого укажите ключ от ИИ в разделе "Настройки".',values:[{id:1,value:"Нет"},{id:2,value:"Да"}],type:"radio",condition_fields:[{for_value:2,alias:"translate_lang_to",name:"Перевести на",values:[{id:2,value:"Английский"},{id:3,value:"Китайский"},{id:4,value:"Немецкий"},{id:5,value:"Испанский"},{id:6,value:"Французский"},{id:7,value:"Португальский"},{id:8,value:"Украинский"},{id:9,value:"Чешский"},{id:10,value:"Румынский"},{id:1,value:"Русский"}],form_group_class:"mb-2",type:"select"},{for_value:2,alias:"no_posts_if_no_translate",name:"Не публиковать статьи без перевода",tip:"Если в процессе перевода произошла ошибка и текст не был переводен, то статья публиковаться не будет.",type:"checkbox"}]}},apply:"Применить"}}},team:{managers:{page_title:"Мои сотрудники",create_page_title:"Новый сотрудник",delete_confirmation:"Удалить этого сотрудника?",list:{name:"Имя",email:"E-mail",actions:"Действия",action_buttons:{edit:"Редактировать",delete:"Удалить"}},form:{edit_title:"Редактирование сотрудника",email:"Электронная почта",email_placeholder:"E-mail сотрудника на сайте",name:"Имя сотрудника",name_placeholder:"Укажите имя сотрудника",settings_button_one:"Настроить",
1settings_button_two:"Изменить настройки",pages_settings:{label:"Доступ к страницам",title:"Доступ к страницам",access_type:"Доступ",networks:"Соц. сети",apply:"Применить"},posts_settings:{label:"Доступ к постам",title:"Доступ к постам",access_rights:"Разрешенные действия",apply:"Применить"},projects_settings:{label:"Доступ к проектам",title:"Доступ к проектам",access_type:"Доступ",set_items:"Укажите проекты",access_rights:"Разрешенные действия",apply:"Применить"},schedules_settings:{label:"Доступ к расписаниям",title:"Доступ к расписаниям",access_type:"Доступ",set_items:"Укажите расписания",access_rights:"Разрешенные действия",apply:"Применить"},access_types:[{id:1,value:"Закрыт для выбранных"},{id:2,value:"Открыт для выбранных"}],access_rights_values:[{id:1,value:"Создание"},{id:2,value:"Редактирование"},{id:3,value:"Удаление"}],prompts:{set_email:"Укажите e-mail сотрудника.",set_name:"Укажите имя сотрудника.",saved:"Сотрудник успешно сохранен.",created:"Сотрудник успешно создан."}}},directors:{page_title:"Мои руководители",delete_confirmation:"Удалить этого руководителя?",list:{name:"Имя",email:"E-mail",actions:"Действия",action_buttons:{edit:"Редактировать",delete:"Удалить"}},form:{edit_title:"Редактирование руководителя",email:"Электронная почта",name:"Имя руководителя",name_placeholder:"Укажите имя руководителя",prompts:{set_name:"Укажите имя руководителя.",saved:"Руководитель успешно сохранен."}},header:{loading:"Пожалуйста, подождите...",no_items:"Руководителей нет.",no_name:"Имя не указано"}}},smartTasks:{page_title:"Умные функции",create_page_title:"Новая задача",delete_confirmation:"Удалить эту задачу?",batch_download_week_reports_button:"Скачать отчеты за неделю",batch_download_day_reports_button:"Скачать отчеты за 24 часа",task_types:[{id:1,name:"Фильтр комментариев"},{id:6,name:"Ответы на комментарии"},{id:4,name:"Удаление постов (рекламы)"},{id:5,name:"Чистка стены"},{id:3,name:"Создание постов с помощью ИИ"}],list:{type:"Тип задачи",details:"Подробности",actions:"Действия",for_page:"На странице",from_page:"Со страницы",from_album:"Из альбома",networks:"Для соц. сетей",action_buttons:{toggle:"Включить",edit:"Редактировать"},more_action_buttons:{statistics:"Статистика",results:"Результаты",errors:"Ошибки",check:"Запустить сейчас",delete:"Удалить"},toggle_on:"Включить",toggle_off:"Выключить",next_check_date:"Следующий запуск"},form:{edit_title:"Редактирование задачи",name:"Название",name_placeholder:"Укажите название задачи",task_type:"Тип задачи",set_task_type:"Укажите задачу",network:"Соц. сеть",set_network:"Укажите соц. сеть",set_network_first:"Сначала укажите соц. сеть",account:"Аккаунт",set_account:"Укажите аккаунт",set_account_first:"Сначала укажите аккаунт",no_accounts:"Нет ни одного аккаунта",page:"Страница",set_page:"Укажите страницу",set_page_first:"Сначала укажите страницу",no_pages:"Нет ни одной страницы",channel:"Канал",set_channel:"Укажите канал",no_channels:"Нет ни одного канала",take_comments_from_type:"Откуда брать комментарии",take_comments_from_types:[{id:1,value:"Со страницы"},{id:2,value:"Из альбома"}],album:"Альбом",set_album:"Укажите альбом",no_albums:"Нет ни одного альбома",search_dates:"Интервал поиска",date_from:"От",date_to:"До",likes_min:"Где лайков меньше чем",reposts_min:"Где репостов меньше чем",comments_min:"Где комментариев меньше чем",views_min:"Где просмотров меньше чем",keywords_filter:"Фильтр рекламы по ключам",content_filter:"Фильтр рекламы по вложениям",views_filter:"Фильтр по охвату",other_filter:"Другие метрики",content_filter_tip:"Посты с наличием указанных вложений будут удалены. Имеет преимущество над стоп словами из фильтра по ключам",views_filter_tip:"Посты с охватом меньше указанного будут удалены. Срабатывает только в случае, если не сработали рекламн
1ые фильтры",other_filter_tip:"Если задан охват, то этот фильтр игнорируются",is_filter_on:"Включить фильтр",stop_words:"Стоп слова",stop_words_comments_tip:"Комментарии с данными ключами будут удалены",stop_words_tip:"Посты с данными ключами будут удалены",stop_words_placeholder:"Каждое слово или фраза указывается с новой строки",white_words:"Слова исключения",white_words_comments_tip:"Комментарии с данными ключами будут оставлены",white_words_tip:"Посты с данными ключами будут оставлены",white_words_placeholder:"Каждое слово или фраза указывается с новой строки",white_authors:"Авторы исключения",white_authors_tip:"Посты от данных авторов будут оставлены",white_authors_placeholder:"Каждый автор указывается в виде его числового идентификатора на ВК",keywords:"Ключевые слова",keywords_placeholder:"Каждое слово или фраза указывается с новой строки",answers_type:"Режим работы ответов",answers_types:[{id:1,value:"Ручной"},{id:2,value:"С помощью ИИ"}],answers_mapping:"Ответы по ключевым словам",answers_ai_role:"Роль для ИИ",answers_ai_role_placeholder:"Например: Отвечай так, словно ты продавец арбузов",answers_ai_role_tip:"Укажите, в роли чего или кого ИИ должен себя представить, чтобы писать максимально осмысленные ответы",answers_ai_keywords:"Ключевые слова",answers_ai_keywords_placeholder:"Укажите список ключевых слов или фраз для поиска комментариев. Каждое слово с новой строки.",posts_type:"Что удалять",posts_types:[{id:1,value:"Посты"},{id:2,value:"Клипы"}],delete_comments_with_links:"Удалять комментарии со ссылками",delete_ads_posts:"Реклама (от автора)",delete_ads_market_posts:"Реклама (маркет)",delete_reposts:"Репост",delete_posts_with_link_attached:"Прикрепленная ссылка",delete_posts_with_video:"Видео",delete_posts_with_audio:"Аудио",delete_posts_with_poll:"Опрос",delete_posts_with_document:"Документ",delete_posts_with_article:"Статья",time_to_delete:"Удалять посты через",time_to_delete_tip:"Например, если найденный пост был опубликован 6 часов назад, а удалить его нужно через 10 часов, то он будет удалён через 4 часа. Если время не задано, пост будет удален немедленно",time_to_delete_postfix:"после публикации",which_views_to_check:"Какой охват проверять",which_views_to_check_options:[{id:1,value:"Общий"},{id:2,value:"Виральный"},{id:3,value:"Подписчики"}],views:"Значение",views_all:"Общий",views_viral:"Виральный",views_subscribers:"Подписчики",views_ads:"Рекламный",likes:"Лайки",reposts:"Репосты",comments:"Комментарии",protected_posts_amount:"Число защищенных постов",protected_posts_amount_tip:"Данная опция позволяет защитить группу от полного удаления постов за последние 24 часа",protected_posts_amount_options:[{id:"",value:"Без защиты"},{id:1,value:"1"},{id:2,value:"2"},{id:3,value:"3"},{id:4,value:"4"},{id:5,value:"5"},{id:6,value:"6"},{id:7,value:"7"},{id:8,value:"8"},{id:9,value:"9"},{id:10,value:"10"}],is_delete_pinned_posts:"Проверять закрепленные посты",is_not_delete_found_posts:"Не удалять найденные посты",which_posts_to_check:"С каких постов начать проверку",which_posts_to_check_options:[{id:1,value:"Новых",tip:"Проверяться будут только те посты, которые будут опубликованы после запуска данной задачи."},{id:2,value:"Старых",tip:"Помимо новых постов, будут проверены еще и те, которые были опубликованы до запуска данной задачи."}],days_to_check:"Число дней для проверки",days_to_check_prefix:"За",days_to_check_postfix:["день назад","дня назад","дней назад"],gpt_posts_text_length:"Максимальная длина текста постов",gpt_posts_text_length_options:[{id:1,value:"250 символов"},{id:2,value:"500 символов"},{id:3,value:"750 символов"}],gpt_posts_limit:"Сколько постов создать",gpt_posts_limit_options:[{id:1,value:10},{id:2,value:20},{id:3,value:30}],gpt_posts_photos:"Фото для постов",gpt_posts_photos_tip:"По одному фото на каждый пост. В режиме ИИ каждое фото создается на основе текста поста",gpt_posts_photos_modes:[{id:1,value:"Загрузить свои"},{id:2,value:"Создавать с помощью ИИ"}],gpt_task_repeat:"Повторить задачу",gpt_task_repeat_tip:"После создания указанного числа постов, выполнение задачи начнется заново",gpt_task_repeat_options:[{id:1,value:"Не повторять"},{id:2,value:"1 раз"},{id:3,value:"2 раза"},{id:4,value:"3 раза"},{id:5,value:"5 раз"},{id:6,value:"10 раз"}],gpt_posts_created:"уже создано",gpt_repeat_counter:"повторов",publication_when_type:"Когда публиковать",publication_when_types:[{id:1,value:"Сразу, после создания"},{id:2,value:"По расписанию"}],publication_how_type:"Выбор соц. сетей",publication_how_types:[{id:1,value:"Ручной"},{id:2,value:"Через проект"}
1],networks:"Соц. сети",prompts:{set_task:"Укажите тип задачи.",no_network_for_this_task:"Выбранная вами соц. сеть недоступна для данной задачи.",set_network:"Укажите соц. сеть.",set_account:"Укажите аккаунт.",set_channel:"Укажите канал.",set_page:"Укажите страницу.",set_album:"Укажите альбом.",set_stop_words:"Укажите стоп слова.",set_keywords:"Укажите ключевые слова.",set_answers_mapping:"Укажите ответы на комментарии.",set_any_filter:"Укажите хоть что-нибудь для фильтра постов.",gpt_set_request_role:"Укажите, от чьего имени ИИ должен писать тексты для постов.",gpt_set_request:"Укажите тему для постов.",gpt_set_or_delete_request:"Заполните или удалите пустые темы для постов.",gpt_posts_limit:"Желаемое число постов не может быть меньше числа уже созданных.",set_pages:"Укажите одну или несколько соц. страниц для постинга.",set_project:"Укажите проект.",set_schedule:"Укажите расписание.",set_answers_ai_role:"Укажите роль для ИИ",set_answers_ai_keywords:"Укажите ключевые слова для поиска комментариев",saved:"Задача успешно сохранена.",created:"Задача успешно создана."}}},accounts:{page_title:"Мои аккаунты",delete_confirmation:"Удалить этот аккаунт и все его страницы?",list:{name:"Название",connection_type:"Тип",status:"Статус",status_tip:"Число активных аккаунтов ограничено вашим текущим тарифом",statuses:{on:"Включен",off:"Выключен"},network:"Соц. сеть",actions:"Действия",action_buttons:{media:"Подключить фото и видео",clips:"Продвинутый ВК",edit:"Обновить",refresh:"Обновить",switch:"Заменить",proxy:"Прокси",delete:"Удалить"},connection:{default:"Стандартный",advanced:"Продвинутый"},connection_date_updated:"Обновлен"},form:{edit_title:"Редактирование аккаунта"},pages:{page_title:"Мои страницы",delete_confirmation:"Удалить эту страницу?",list:{name:"Название",account:"Аккаунт",network:"Соц. сеть",actions:"Действия",action_buttons:{edit:"Редактировать",delete:"Удалить"}},form:{edit_title:"Редактирование страницы",name:"Название",utm:"UTM-метки",utm_placeholder:"p1=aaa&p2=bbb&p3=ccc",photos_crop_type:"Обработка фото",photos_crop_types:[{id:1,value:"Добавлять границы"},{id:2,value:"Помещать в квадрат"},{id:3,value:"Обрезать"}],photos_crop_type_1:"Слишком широкому или слишком узкому изображению будут добавлены белые края до максимально допустимых для постинга пропорций.",photos_crop_type_2:"Изображение будет размещено внутри квадрата с белым фоном. Пропорции изображения будут полностью сохранены.",photos_crop_type_3:"Слишком широкое или слишком узкое изображение будет обрезано до максимально допустимых для постинга пропорций.",combine_big_text_with_photo:"Публикация больших текстов с медиа",combine_big_text_with_photo_types:[{id:1,value:"Вместе"},{id:2,value:"Раздельно"}],combine_big_text_with_photo_tip:"Посты с фото или видео и текстом более 1024 символов будут опубликованы вместе, в виде одной записи",access_token:"Ключ доступа",access_token_tip:"Требуется для публикации постов и историй в группу",access_token_placeholder:"Укажите ключ доступа для группы",additional_clips_caption:"Дополнительное описание для клипов",additional_clips_caption_tip:"Если у клипа уже есть описание, то данная подпись будет добавлена после него, в конце",additional_clips_caption_placeholder:"Укажите дополнительное описание",channel_url_caption:"Ссылка на канал группы",channel_url_caption_tip:"Дл
1я публикации сообщений в канал группы",channel_url_caption_placeholder:"Укажите ссылку на канал группы",videos_title_placeholder:"Укажите заголовок",prompts:{delete_confirmation:"Удалить эту страницу?",saved:"Страница успешно сохранена."}}},connect:{page_title:"Подключение аккаунта",proxy_types:[{id:1,value:"От Хуппи",tip:""},{id:2,value:"Свой"}],account_default_value:"Укажите аккаунт",proxy_type:"Прокси",proxies_default_value:"Укажите прокси",set_proxy_confirmation:"Укажите прокси.",dz:{page_title:"Новый аккаунт Дзен",form:{connection_method:"Метод подключения",connection_methods:[{id:1,value:"Яндекс ID"},{id:2,value:"VK ID"}],username:"Аккаунт",headers:"Заголовки запроса",headers_placeholder:"Укажите заголовки запроса с сайта Дзен",phone:"Номер телефона от аккаунта ВК",phone_placeholder:"+7XXXXXXXXXX",create_qrcode:'Нажмите "Создать", чтобы получить QR-код.',save_qrcode:'Нажмите "Сохранить", чтобы получить QR-код.',wait_for_qrcode:"Ожидайте появления QR-кода...",process_qrcode_yandex:"Отсканируйте QR-код в приложении Яндекс ID.",process_qrcode_vk:"Отсканируйте QR-код в приложении ВКонтакте.",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_headers_confirmation:"Укажите заголовки запроса с сайта Дзен.",set_phone_confirmation:"Укажите номер телефона от аккаунта ВК.",delete_confirmation:"Удалить этот аккаунт?"}}},wb:{page_title:"Новый аккаунт Wibes",form:{username:"Аккаунт",headers:"Заголовки запроса",headers_placeholder:"Укажите заголовки запроса с сайта Wibes",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_headers_confirmation:"Укажите заголовки запроса с сайта Wibes.",delete_confirmation:"Удалить этот аккаунт?"}}},ig:{page_title:"Новый аккаунт Instagram",form:{account:"Аккаунт",connection_method:"Метод подключения",connection_methods:[{id:1,value:"Логин и пароль"},{id:2,value:"С помощью Cookies"}],username:"Логин",password:"Пароль",code:"Код подтверждения",headers:"Заголовки запроса",headers_placeholder:"Укажите заголовки запроса с сайта Instagram, для работы с продвинутой версией аккаунта",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_username_confirmation:"Укажите логин от аккаунта Instagram.",set_password_confirmation:"Укажите пароль от аккаунта Instagram.",set_headers_confirmation:"Укажите заголовки запроса с сайта Instagram.",set_code_confirmation:"Укажите код подтверждения.",delete_confirmation:"Удалить этот аккаунт?"}}},th:{page_title:"Новый аккаунт Threads",form:{account:"Аккаунт",connection_method:"Метод подключения",connection_methods:[{id:1,value:"Логин и пароль"},{id:2,value:"С помощью Cookies"}],username:"Логин",password:"Пароль",headers:"Заголовки запроса",headers_placeholder:"Укажите заголовки запроса с сайта Threads, для работы с продвинутой версией аккаунта",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_username_confirmation:"Укажите логин от аккаунта Threads.",set_password_confirmation:"Укажите пароль от аккаунта Threads.",set_headers_confirmation:"Укажите заголовки запроса с сайта Threads.",delete_confirmation:"Удалить этот аккаунт?"}}},mx:{page_title:"Новый канал Max",form:{connect_methods:[{id:1,value:"Подключение ботом"},{id:2,value:"Подключение аккаунтом"}],channel_url:"Ссылка на канал",channel_url_placeholder:"Укажите ссылку на канал",parent_account_id:"Родительский аккаунт",parent_account_default_value:"Укажите аккаунт",parent_account_no_items:"Нет ни одного аккаунта",prompts:{saved:"Канал успешно сохранен.",created:"Канал успешно подключен.",channel_url_confirmation:"Укажите ссылку на канал.",account_id_confirmation:"Укажите аккаунт.",delete_confirmation:"Удалить этот канал?"}},parsing:{page_title:"Новый аккаунт Max",form:{phone:"Номер телефона",check_password_title:"Проверка по паролю",check_password_tip:"Укажите пароль от аккаунта Max",password:"Пароль",confirm_button:"Подтвердить",create_qrcode:'Нажмите "Создать", чтобы получить QR-код.',save_qrcode:'Нажмите "Сохранить", чтобы получить QR-код.',wait_for_qrcode:"Ожидайте появления QR-кода...",process_qrcode:"Наведите камеру телефона на QR-код.",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",delete_confirmation:"Удалить этот аккаунт?",connection_error:"Ошибка соединения. Проверьте прокси."}}}},tn:{page_title:"Новый аккаунт TenChat",form:{phone:"Номер телефона",check_code_title:"Проверка по коду",check_code_tip:"Укажите проверочный код, отправленный в смс или пуш-уведомлении",phone_code:"Проверочный код",email_code_tip:"Укажите проверочный код, отправленный на указанный e-mail",set_email_title:"Добавьте вашу почту",set_email_tip:"Просим подтвердить ее. С ней мы сможем восстановить пароль от вашего Сбер ID.",email:"E-mail",captcha_title:"Решение капчи",confirm_button:"Подтвердить",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_phone_confirmation:"Укажите номер телефона.",delete_confirmation:"Удалить этот аккаунт?",connection_error:"Ошибка соединения. Проверьте прокси."}}},yp:{page_title:"Новый аккаунт Yappy",form:{phone:"Номер телефона",check_code_title:"Проверка по коду",check_code_tip:"Укажите проверочный код, отправленный в смс или пуш-уведомлении",phone_code:"Проверочный код",email_code_tip:"Укажите проверочный код, отправленный на указанный e-mail",set_email_title:"Добавьте вашу почту",set_email_tip:"Просим подтвердить ее. С ней мы сможем восстановить пароль от вашего Сбер ID.",email:"E-mail",captcha_title:"Решение капчи",confirm_button:"Подтвердить",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_phone_confirmation:"Укажите номер телефона.",delete_confirmation:"Удалить этот аккаунт?",connection_error:"Ошибка соединения. Проверьте прокси."}}},wc:{page_title:"Новый аккаунт WB Chat",form:{phone:"Номер телефона",check_code_title:"Проверка по коду",check_code_tip:"Укажите проверочный код, отправленный в смс или пуш-уведомлении",phone_code:"Проверочный код",email_code_tip:"Укажите проверочный код, отправленный на указанный e-mail",set_email_title:"Добавьте вашу почту",set_email_tip:"Просим подтвердить ее. С ней мы сможем восстановить пароль от вашего Сбер ID.",email:"E-mail",captcha_title:"Решение капчи",confirm_button:"Подтвердить",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_phone_confirmation:"Укажите номер телефона.",delete_confirmation:"Удалить этот аккаунт?",connection_error:"Ошибка соединения. Проверьте прокси."}},channel:{page_title:"Новый канал WB Chat",form:{connect_methods:[{id:1,value:"Подключение ботом",disabled:!0},{id:2,value:"Подключение аккаунтом"}],channel_url:"Ссылка на канал",channel_url_placeholder:"Укажите ссылку на канал",parent_account_id:"Родительский аккаунт",parent_account_default_value:"Укажите аккаунт",parent_account_no_items:"Нет ни одного аккаунта",prompts:{saved:"Канал успешно сохранен.",created:"Канал успешно подключен.",channel_url_confirmation:"Укажите ссылку на канал.",account_id_confirmation:"Укажите аккаунт.",delete_confirmation:"Удалить этот канал?"}}}},tt:{page_title:"Новый аккаунт TikTok",form:{username:"Аккаунт",headers:"Заголовки запроса",headers_placeholder:"Укажите заголовки запроса с сайта TikTok, для работы с продвинутой версией аккаунта",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_headers_confirmation:"Укажите заголовки запроса с сайта TikTok.",delete_confirmation:"Удалить этот аккаунт?"}}},tg:{page_title:"Новый канал Telegram",form:{channel_ownership_types:[{id:1,value:"Своя группа или канал"},{id:2,value:"Чужая группа"}],bot_token:"Токен бота",channel_id_1:"Ссылка на канал или его ID (группа, тема группы)",channel_id_2:"Ссылка на группу (или тему группы)",chat_name:"Название",chat_type:"Тип",chat_privacy:"Приватность",topic_name:"Название темы",channel_or_group_type:"канал/группа",topic_type:"тема форума",public_chat:"public",private_chat:"private",parent_account_id:"Родительский аккаунт",parent_account_id_tip_1:"Позволяет публиковать копии и репосты сообщений из одного Telegram канала в другой, а также публиковать истории",parent_account_id_tip_2:"От имени данного аккаунта будут публиковаться сообщения в группу Telegram",parent_account_default_value:"Укажите аккаунт",parent_account_no_items:"Нет ни одного аккаунта",prompts:{saved:"Чат успешно сохранен.",created:"Чат успешно подключен.",set_bot_token_confirmation:"Укажите токен бота от Telegram.",set_channel_id_confirmation_1:"Укажите ID вашего канала Telegram.",set_channel_id_confirmation_2:"Укажите ссылку на группу Telegram.",set_parent_account_confirmation:"Укажите родительский аккаунт Telegram.",delete_confirmation:"Удалить этот чат?"}},parsing:{page_title:"Новый аккаунт Telegram",form:{connection_method:"Метод подключения",connection_methods:[{id:1,value:"По QR-коду"},{id:2,value:"По номеру телефона"}],phone:"Номер телефона",check_code_title:"Проверка по коду",check_code_tip:"Укажите проверочный код, который был отправлен вам в сообщении Telegram",phone_code:"Проверочный код",password_placeholder:"Укажите его, если он у вас установлен",check_password_title:"Проверка по облачному паролю",check_password_tip:"Подсказка к паролю",password:"Облачный пароль",confirm_button:"Подтвердить",create_qrcode:'Нажмите "Создать", чтобы получить QR-код.',save_qrcode:'Нажмите "Сохранить", чтобы получить QR-код.',wait_for_qrcode:"Ожидайте появления QR-кода...",process_qrcode:'Отсканируйте QR-код в приложении Телеграм в разделе "Устройства".',prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_phone_confirmation:"Укажите номер телефона.",delete_confirmation:"Удалить этот аккаунт?",connection_error:"Ошибка соединения. Проверьте прокси."}}}},vb:{page_title:"Новый канал Viber",form:{token:"Токен авторизации",token_placeholder:"Укажите токен авторизации канала в Viber",prompts:{saved:"Канал успешно сохранен.",created:"Канал успешно подключен.",set_token_confirmation:"Укажите токен авторизации канала в Viber.",delete_confirmation:"Удалить этот канал?"}}},vk:{page_title:"Новый аккаунт ВКонтакте",form:{account:"Аккаунт",update_pages_1:"Дл
1я обновления списка групп",update_pages_2:"нажмите здесь",auth_link_1:"Ссылка для авторизации",auth_link_2:"Ссылка для обновления авторизации",create_auth_link:"Получить ссылку",user_agent:"User-Agent браузера",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_auth_link_confirmation:"Укажите ссылку для авторизации аккаунта.",delete_confirmation:"Удалить этот аккаунт?"}},extended:{form:{connection_method:"Метод подключения",connection_methods:[{id:3,value:"По QR-коду"},{id:2,value:"С помощью Cookies"}],phone:"Номер телефона",password:"Пароль",code:"Код подтверждения",headers:"Заголовки запроса",headers_placeholder:"Укажите заголовки запроса с сайта ВКонтакте, для работы с продвинутой версией аккаунта",create_qrcode:'Нажмите "Создать", чтобы получить QR-код.',save_qrcode:'Нажмите "Сохранить", чтобы получить QR-код.',wait_for_qrcode:"Ожидайте появления QR-кода...",process_qrcode:"Наведите камеру на QR-код из приложения ВКонтакте.",connect:"Подключить",prompts:{saved:"Клипы и статьи успешно подключены.",saved_mem:"Ключ для публикации Клипов успешно обновлен.",set_phone_confirmation:"Укажите номер телефона от аккаунта ВКонтакте.",set_password_confirmation:"Укажите пароль от аккаунта ВКонтакте.",set_code_confirmation:"Укажите код подтверждения.",set_headers_confirmation:"Укажите заголовки запроса с сайта ВКонтакте."}}},chat:{page_title:"Новый чат ВКонтакте",form:{account:"Аккаунт ВКонтакте",account_default_value:"Укажите аккаунт ВКонтакте",account_no_items:"Нет ни одного аккаунта",page:"Группа ВКонтакте",page_default_value:"Укажите группу чата ВКонтакте",page_no_items:"Сначала укажите аккаунт",chat_url:"Ссылка на чат",prompts:{saved:"Чат успешно сохранен.",created:"Чат успешно подключен.",set_account_confirmation:"Укажите аккаунт ВКонтакте.",set_page_confirmation:"Укажите группу ВКонтакте.",set_chat_url_confirmation:"Укажите ссылку на чат.",delete_confirmation:"Удалить этот чат?"}}}},wp:{page_title:"Новый сайт WordPress",form:{site_address:"Адрес сайта",category:"Рубрика для постов",profile_login:"Имя пользователя",app_password:"Пароль REST-приложения",prompts:{saved:"Сайт успешно сохранен.",created:"Сайт успешно подключен.",set_site_address_confirmation:"Укажите адрес вашего сайта WordPress.",set_wp_login_confirmation:"Укажите имя пользователя от вашего профиля на WordPress.",set_app_password_confirmation:"Укажите ваш пароль REST-приложения WordPress.",delete_confirmation:"Удалить этот сайт?"}}},jm:{page_title:"Новый сайт Joomla!",form:{url:"Адрес сайта",url_placeholder:"Укажите адрес вашего сайта",category:"ID категории материалов",category_placeholder:"Укажите ID категории, если нужно",token:"Токен API",token_placeholder:"Укажите Токен API от вашего сайта",prompts:{saved:"Сайт успешно сохранен.",created:"Сайт успешно подключен.",set_url_c
1onfirmation:"Укажите адрес вашего сайта Joomla!.",set_token_confirmation:"Укажите ваш Токен API от сайта Joomla!.",delete_confirmation:"Удалить этот сайт?"}}},wa:{page_title:"Новый чат WhatsApp",form:{api_type:"Тип API",api_types:[{id:2,value:"Wappi.pro"},{id:1,value:"Green-Api.com",tip:""}],instance_id:"ID профиля",instance_api_token:"Токен API",chat_type:"Тип чата",chat_types:[{id:1,value:"Личный",tip:""},{id:2,value:"Групповой"}],chat_id:"ID чата",chat_id_tip:"Для личного чата используйте номер телефона собеседника в формате 79991112233",prompts:{saved:"Чат успешно сохранен.",created:"Чат успешно подключен.",set_instance_id_confirmation:"Укажите ваш Instance ID от профиля WhatsApp.",set_instance_api_token_confirmation:"Укажите ваш Instance Api Token от профиля WhatsApp.",set_chat_id_confirmation:"Укажите ID чата.",set_group_confirmation:"Укажите группу.",delete_confirmation:"Удалить этот чат?"}}},rt:{page_title:"Новый канал RuTube",form:{email:"E-mail",email_placeholder:"Укажите e-mail канала",password:"Пароль",password_placeholder:"Укажите пароль от канала",name:"Название",name_placeholder:"Укажите название канала",avatar:"Ссылка на аватар",avatar_placeholder:"Укажите ссылку на аватар канала",prompts:{saved:"Канал успешно сохранен.",created:"Канал успешно подключен.",set_email_confirmation:"Укажите e-mail канала.",set_password_confirmation:"Укажите пароль от канала.",set_name_confirmation:"Укажите название канала.",set_avatar_confirmation:"Укажите ссылку на аватар канала.",delete_confirmation:"Удалить этот канал?"}}},tw:{page_title:"Новый аккаунт Twitter/X",form:{app_id:"Ключ приложения",app_id_placeholder:"Укажите ключ приложения",app_secret:"Секретный ключ приложения",app_secret_placeholder:"Укажите секретный ключ приложения",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_app_id_confirmation:"Укажите ключ приложения.",set_app_secret_confirmation:"Укажите секретный ключ приложения.",delete_confirmation:"Удалить этот аккаунт?"}}},lk:{page_title:"Новый аккаунт Likee",form:{account:"Аккаунт",connection_method:"Метод подключения",connection_methods:[{id:1,value:"Номер телефона и пароль"},{id:2,value:"С помощью Cookies",disabled:!0}],phone:"Номер телефона",password:"Пароль",headers:"Заголовки браузера",headers_placeholder:"Укажите заголовки запроса из браузера находясь на сайте Likee",prompts:{saved:"Аккаунт успешно сохранен.",created:"Аккаунт успешно подключен.",set_phone_confirmation:"Укажите номер телефона от аккаунта Likee.",set_password_confirmation:"Укажите пароль от аккаунта Likee.",set_headers_confirmation:"Укажите заголовки запроса с сайта Likee.",delete_confirmation:"Удалить этот аккаунт?"}}}}},notifications:{page_title:"Ошибки",list:{operation:"Тип операции",network:"Соц. сеть",error:"Ошибка",date:"Дата",posts_publishing_type:"Публикация поста",cross_posting_type:"Кросс-постинг",page_not_exists:"Страница отсутствует.",post_creation:"Обработка постов",open_post:"Открыть пост",open_connection:"Открыть связь"}},watermarks:{page_title:"Водяные знаки",create_page_title:"Новый знак",delete_confirmation:"Удалить этот знак?",list:{name:"Название",actions:"Действия",action_buttons:{edit:"Редактировать",delete:"Удалить"}},form_group:{label:"Водяной знак",no_items:"Нет ни одного знака",default_value:"Укажите водяной знак",edit_title:"Редактирование водяного знака",create_title:"Создание водяного знака",delete_confirmation:"Удалить этот знак?",action_buttons:{add:"Создать",edit:"Редактировать",delete:"Удалить"}},form:{edit_title:"Редактирование знака",name:"Название",name_placeholder:"Укажите название знака",file:"Файл знака",space:"Отступы",spaces:[{id:1,value:"Есть"},{id:2,value:"Нет"}],position:"Расположение",positions:[{id:1,value:"В центре"},{id:2,value:"В центре сверху"},{id:3,value:"В центре снизу"},{id:4,value:"Справа сверху"},{id:5,value:"Справа снизу"},{id:6,value:"Слева сверху"},{id:7,value:"Слева снизу"}],opacity:"Прозрачность",size:"Размер",prompts:{saved:"Знак успешно сохранен.",created:"Знак успешно создан.",set_name_confirmation:"Укажите название знака.",set_file_confirmation:"Укажите файл знака.",delete_confirmation:"Удалить этот знак?"}}},proxies:{page_title:"Прокси",create_page_title:"Новый прокси",delete_confirmation:"Удалить этот прокси?",list:{name:"Название",actions:"Действия",action_buttons:{edit:"Редактировать",delete:"Удалить"}},form:{edit_title:"Редактирование прокси",name:"Название",name_placeholder:"НаÐ
1·Ð²Ð°Ð½Ð¸Ðµ",ip:"IP адрес",ip_placeholder:"XXX.XXX.XXX.XXX",port:"Порт",port_placeholder:"XXXX",login:"Логин",password:"Пароль",prompts:{saved:"Прокси успешно сохранен.",created:"Прокси успешно создан.",set_ip_confirmation:"Укажите IP адрес прокси.",set_port_confirmation:"Укажите порт прокси.",set_login_confirmation:"Укажите логин от прокси.",set_password_confirmation:"Укажите пароль от прокси."}}},smartTags:{page_title:"Авто-теги",create_page_title:"Новый набор",delete_confirmation:"Удалить этот набор?",list:{name:"Название",keywords:"Ключевые слова",tags:"Теги",actions:"Действия",action_buttons:{toggle:"Включить",edit:"Редактировать",delete:"Удалить"},toggle_on:"Включить",toggle_off:"Выключить"},form:{edit_title:"Редактирование набора",name:"Название",name_placeholder:"Укажите название набора",keywords:"Ключевые слова",keywords_placeholder:"Укажите список ключевых слов или фраз из публикуемых постов. Каждое слово с новой строки.",tags:"Хештеги",tags_placeholder:"Укажите список хештегов для публикуемых постов. Каждый хештег с новой строки.",tags_limit:"Брать хештегов не более",selection_type:"Выборка хештегов",selection_types:[{id:1,value:"Обычная"},{id:2,value:"Случайная"}],position_type:"Расположение хештегов под текстом",position_types:[{id:1,value:"С абзацем"},{id:2,value:"Без абзаца"}],prompts:{saved:"Набор успешно сохранен.",created:"Набор успешно создан.",set_name_confirmation:"Укажите название набора.",set_keywords_confirmation:"Укажите список ключевых слов.",set_tags_confirmation:"Укажите список хештегов.",delete_confirmation:"Удалить этот набор?"}}},partnership:{page_title:"Партнерская программа",form:{link:"Реферальная ссылка",partners_count:"Всего рефералов",partners_count_tip:"Число привлеченных пользователей",balance:"Текущий баланс",balance_postfix:"руб."}},settings:{main:{page_title:"Редактирование настроек",form:{timezone:"Часовой пояс",no_timezones:"Нет ни одного часового пояса",timezone_default_value:"Укажите часовой пояс",ru_captcha_key:"Ключ rucaptcha",ru_captcha_key_tip:"Нужен для обхода ошибок с требованием ввода капчи во ВКонтакте",text_ai_model:"Модель ИИ для текстов",text_ai_model_tip:"Используется для рерайта постов и создания текстов. Модель hooppy.ru работает без ключа, для остальных укажите свой ключ с сайта модели",gpt_key:"Ключ от ИИ",gpt_key_placeholder:"Ключ от ИИ",gpt_key_tip:'Using for rewriting posts in "Cross-posting" or creating them from scratch in "Smart Tasks"',gpt_hooppy_description:"Хуппи использует <b>новейшую версию ChatGPT</b> (на данный момент это модель <b>5.6</b>). Данная опция доступна для тарифов Premium и выше. Не имеет ограничений по числу запросов.",gpt_types:[{id:1,value:"ChadGPT.ru"},{id:2,value:"OpenAI.com"},{id:3,value:"DeepSeek.com"}],gpt_versions:[{id:1,value:"GPT 5-mini"},{id:2,value:"DeepSeek 3.1"}],is_parse_instagram_posts_by_us:"Парсить посты из Instagram средствами Хуппи",is_parse_instagram_posts_by_us_tip:"Вам не придется подключать ваш аккаунт Instagram для Кросс-постинга и Поиска постов из этой соц. сети",video_quality:"Качество копируемых видео из ВК",video_quality_tip:"При копировании постов с видео из ВКонтакте скачиваются версии с заданным качеством",video_quality_types:[{id:1,value:"Среднее (SD, 480p)"},{id:2,value:"Высокое (HD, 720p)"}],save_button:"Сохранить",prompts:{saved:"Настройки успешно сохранены.",set_timezone_confirmation:"Укажите часовой пояс.",gpt_key_is_good_confirmation:"Данный ключ успешно проверен и работает.",gpt_key_is_bad_confirmation:"Данный ключ не работает."}}},password:{page_title:"Редактирование пароля",form:{password:"Текущий пароль",password_placeholder:"Укажите текущий пароль",new_password:"Новый пароль",new_password_placeholder:"Укажите новый пароль",new_password_confirmation:"Новый пароль (еще раз)",new_password_confirmation_placeholder:"Укажите новый пароль еще раз",restore_button:"Восстановить",
1save_button:"Сохранить",prompts:{restore_confirmation:"Текущий пароль будет сброшен на новый. Продолжить?",restore_created:"Новый пароль успешно отправлен на вашу электронную почту.",saved:"Пароль успешно сохранен.",set_password:"Укажите ваш текущий пароль.",set_new_password:"Укажите ваш новый пароль.",set_new_password_confirmation:"Укажите ваш новый пароль еще раз."}}},email:{page_title:"Редактирование e-mail адреса",form:{email_placeholder:"Укажите ваш e-mail",email_to_confirm:"Ожидает подтверждения",cancel_button:"Отменить",resend_button:"Повторная отправка письма",save_button:"Сохранить",prompts:{change_request_canceled_confirmation:"Смена e-mail успешно отменена.",saved:"E-mail успешно сохранен.",set_email:"Укажите ваш e-mail."}},required:{not_confirmed_title:"E-mail не подтвержден",not_confirmed_text_1:"Пожалуйста,",not_confirmed_text_2:"укажите и подтвердите ваш e-mail",not_confirmed_text_3:"в настройках профиля.",not_confirmed_text_4:"Это необходимо для:",not_confirmed_text_5:"Оплаты услуг сервиса",not_confirmed_text_6:"Отправки уведомлений",not_confirmed_text_7:"Перейти в настройки"}},api:{page_title:"Токен для работы с Hooppy API",form:{token:"Ваш токен",token_placeholder:'Нажмите "Создать", чтобы сгенерировать токен',create_button:"Создать токен",recreate_button:"Создать новый токен",prompts:{created:"Токен успешно создан.",recreated:"Новый токен успешно создан.",recreate_confirmation:"Текущий токен перестанет работать. Продолжить?"}}}},ord:{my:{page_title:"ОРД: Мои данные",form:{create_title:"Редактирование моих данных",token:"Токен АПИ",token_placeholder:"Укажите ваш токен АПИ для ОРД ВКонтакте",type:"Тип контрагента",types:[{id:1,value:"Физическое лицо"},{id:2,value:"Юридическое лицо"},{id:3,value:"ИП"}],type_placeholder:"Укажите тип контрагента",name:"Название",name_placeholder:"Укажите название",fio:"ФИО",fio_placeholder:"Укажите ФИО",roles:"Роли",role_types:[{id:1,value:"Рекламодатель"},{id:3,value:"Издатель"}],roles_confirmation:"Укажите роли",sig_mode:"Вид маркировки",sig_modes:[{id:1,value:"Официальный (в контекстном меню)"},{id:2,value:"В тексте постов"},{id:3,value:"Официальный + В тексте постов"}],sig_mode_placeholder:"Укажите вид маркировки",sig_position:"Положение маркера в тексте постов",sig_positions:[{id:1,value:"Над текстом"},{id:3,value:"Под текстом"}],phone:"Номер телефона",phone_placeholder:"В формате: +7XXXXXXXXXX",inn:"ИНН",inn_placeholder:"Укажите ИНН",phone_or_inn_confirmation:"Укажите номер телефона или ИНН"}},persons:{page_title:"Контрагенты ОРД",delete_confirmation:"Удалить этого контрагента?",list:{name:"Название",type:"Тип",actions:"Действия"},form:{create_title:"Создание контрагента"},form_group:{label:"Контрагент",no_items:"Нет ни одного контрагента",default_value:"Укажите контрагента",create_title:"Создание контрагента",edit_title:"Редактирование контрагента",action_buttons:{add:"Создать",edit:"Редактировать",delete:"Удалить"}}},contracts:{page_title:"Договоры ОРД",delete_confirmation:"Удалить этот договор?",list:{serial_number:"Номер",creatives_created:"Креативов",posts_published:"Постов",contract_price:"Сумма",spent:"Потрачено",status:"Статус",type:"Тип",contract_date:"Дата",actions:"Действия"},form:{create_title:"Создание договора",name:"Название",name_placeholder:"Укажите название договора",name_tip:"Название договора упростит его поиск и выбор среди других договоров на Хуппи",type:"Тип договора",types:[{id:1,value:"Оказание услуг"},{id:3,value:"Самореклама"},{id:4,value:"Дополнение к договору"},{id:5,value:"Оферта"}],type_placeholder:"Укажите тип договора",serial_number:"Номер договора",serial_number_placeholder:"Укажите номер договора",subject_type:"Предмет договора",subject_types:[{id:2,value:"Распространение рекламы"},{id:5,value:"Иное"}],subject_type_placeholder:"Укажите предмет договора",action_type:"Осуществляемые действия",action_types:[{id:1,value:"Распространение рекламы"},{id:4,value:"Иное"}],action_type_placeholder:"Укажите осуществляемые действия",parent_contract:"Родительский договор",parent_contract_placeholder:"Укажите родительский договор",no_parent_contracts:"Нет ни одного родительского договора",client:"Клиент",client_tip:"Заказ
1чик услуги",client_placeholder:"Укажите клиента",no_clients:"Нет ни одного клиента",contractor:"Подрядчик",contractor_tip:"Исполнитель услуги",contractor_placeholder:"Укажите подрядчика",no_contractors:"Нет ни одного подрядчика",okved_code:"Код ОКВЭД",okved_code_tip:"Код ОКВЭД для рекламируемой услуги клиента",okved_code_placeholder:"Укажите код ОКВЭД",okved_code_confirmation:"Укажите код ОКВЭД",kktu_code:"Код ККТУ",kktu_code_tip:"Код ККТУ для рекламируемой услуги клиента",kktu_code_placeholder:"Укажите код ККТУ",kktu_code_confirmation:"Укажите код ККТУ",contract_date:"Дата заключения",contract_date_placeholder:"дд.мм.гггг",contract_date_confirmation:"Укажите дату заключения",contract_price:"Сумма договора",contract_price_confirmation:"Укажите сумму договора",post_price_mode:"Стоимость",post_price_modes:[{id:1,value:"Креатива",tip:"Указанная стоимость будет делиться поровну между всеми площадками, в которые публикуется пост.",confirmation:"Укажите стоимость креатива"},{id:2,value:"Поста",tip:"Фиксированная стоимость каждого публикуемого поста для каждой отдельной площадки.",confirmation:"Укажите стоимость поста"}],flags_types:[{id:1,value:"НДС включён в сумму договора"}]},form_group:{label:"Договор о рекламе",no_items:"Нет ни одного договора",default_value:"Укажите договор",create_title:"Создание договора",edit_title:"Редактирование договора",action_buttons:{add:"Создать",edit:"Редактировать",delete:"Удалить"}}},creatives:{page_title:"Креативы ОРД",list:{contract:"Договор",marker:"erid",client:"Клиент",platforms:"Соц. сети",posts_published:"Постов",publication_date:"Начало периода",invoicing_date:"Конец периода",actions:"Действия"}},invoices:{page_title:"Акты ОРД",list:{serial_number:"Номер",invoice_date:"Дата",contract:"Договор",client:"Клиент",invoice_amount:"Сумма",creatives_processed:"Креативов",actions:"Действия"}}},billing:{page_title:"Оплата услуг сервиса",form:{plans:"Тарифы",payment_period:"Период оплаты",payment_periods:[{id:1,value:"30 дней",months:"месяц",days:30},{id:2,value:"90 дней",months:"3 месяца",days:90},{id:3,value:"180 дней",months:"пол года",days:180},{id:4,value:"365 дней",months:"год",days:365}],plans_description:{start:["10 аккаунтов","Все функции","1000 постов в очереди"],pro:["20 аккаунтов","Все функции","2500 постов в очереди"],vip:["50 аккаунтов","Все функции","5000 постов в очереди"]},pay_button:"Оплатить"},history:{page_title:"История платежей",state_paid:"Оплачен",state_not_paid:"Не оплачен",list:{product:"Тариф",state:"Статус",days:"Период",price:"Стоимость",date:"Дата"}},success:{page_title:"Успешный платеж",text_1:"Спасибо за своевременную оплату тарифа.",text_2:"Желаем вам приятной работы!"},fail:{page_title:"Ошибка оплаты",text_1:"Возникла ошибка при проведении платежа.",text_2:"Пожалуйста, попробуйте еще раз."},payment_required_title:"Работа аккаунта приостановлена",payment_required_text:"Функции сервиса заморожены по причине окончания срока действия подписки.",payment_required_pay:"Перейти в раздел оплаты"},aiPosting:{page_title:"ИИ постинг",create_page_title:"Новая задача",delete_confirmation:"Удалить эту задачу?",list:{name:"Название",networks:"Соц. сети",statistics:"Статистика",posts:"Посты",errors:"Ошибки",actions:"Действия",action_buttons:{toggle:"Включить",edit:"Редактировать",delete:"Удалить"},toggle_on:"Включить",toggle_off:"Выключить",state_on:"Задача запущена",next_launch_date:"Следующий запуск",state_off:"Задача остановлена",pages_for:"Страницы"},form:{edit_title:"Редактирование задачи",name:"Название",name_placeholder:"Укажите название задачи",topic_and_n
1otes:"Тема и заметки",topic:"Тема постов",topic_description:"Чем подробнее описана тема, тем точнее получится текст.",topic_placeholder:"Опишите, о чем должны быть посты",post_notes:"Заметки к тексту",post_notes_description:"Необязательно. Детали, которые обязательно должны быть в тексте, и то, чего в нем быть не должно.",post_notes_placeholder:"Например: упоминать доставку, не использовать смайлы, не писать цены",text_and_images:"Текст и картинки",text_model:"Модель для текстов",text_models:[{id:1,value:"gpt-5.6-luna - hooppy.ru"},{id:2,value:"gpt-4o-mini - openrouter.ai"},{id:3,value:"gpt-5.6-luna - openrouter.ai"},{id:36,value:"gpt-6-luna - openrouter.ai"},{id:4,value:"gpt-5.6-terra - openrouter.ai"},{id:5,value:"gemini-2.5-flash - openrouter.ai"},{id:6,value:"gemini-2.5-flash-lite - openrouter.ai"},{id:7,value:"gemini-3.6-flash - openrouter.ai"},{id:8,value:"gemini-3.8-flash - openrouter.ai"},{id:9,value:"deepseek-v4-flash - openrouter.ai"},{id:10,value:"deepseek-v4-pro - openrouter.ai"},{id:11,value:"deepseek-v4.1-flash - openrouter.ai"},{id:26,value:"gpt-4o-mini - fal.ai"},{id:27,value:"gpt-5.6-luna - fal.ai"},{id:37,value:"gpt-6-luna - fal.ai"},{id:28,value:"gpt-5.6-terra - fal.ai"},{id:29,value:"gemini-2.5-flash - fal.ai"},{id:30,value:"gemini-2.5-flash-lite - fal.ai"},{id:31,value:"gemini-3.6-flash - fal.ai"},{id:32,value:"gemini-3.8-flash - fal.ai"},{id:33,value:"deepseek-v4-flash - fal.ai"},{id:34,value:"deepseek-v4-pro - fal.ai"},{id:35,value:"deepseek-v4.1-flash - fal.ai"},{id:12,value:"gpt-4o-mini - openai.com"},{id:13,value:"gpt-5.6-luna - openai.com"},{id:38,value:"gpt-6-luna - openai.com"},{id:14,value:"gpt-5.6-terra - openai.com"},{id:23,value:"gemini-3.5-flash-lite - google.com"},{id:24,value:"gemini-3.6-flash - google.com"},{id:25,value:"gemini-3.8-flash - google.com"},{id:15,value:"gpt-4o-mini - chadgpt.ru"},{id:16,value:"gpt-5.6-luna - chadgpt.ru"},{id:39,value:"gpt-6-luna - chadgpt.ru"},{id:17,value:"gpt-5.6-terra - chadgpt.ru"},{id:18,value:"gemini-3.6-flash - chadgpt.ru"},{id:19,value:"gemini-3.8-flash - chadgpt.ru"},{id:20,value:"deepseek-v4-flash - chadgpt.ru"},{id:21,value:"deepseek-v4-pro - chadgpt.ru"},{id:22,value:"deepseek-v4.1-flash - chadgpt.ru"}],image_model:"Модель для картинок",image_models:[{id:1,value:"nano-banana-2 - openrouter.ai"},{id:2,value:"nano-banana-pro - openrouter.ai"},{id:10,value:"nano-banana-2 - google.com"},{id:11,value:"nano-banana-pro - google.com"},{id:3,value:"gpt-image-2-medium - openai.com"},{id:4,value:"gpt-image-2-high - openai.com"},{id:5,value:"z-image - fal.ai"},{id:6,value:"nano-banana-2 - fal.ai"},{id:7,value:"nano-banana-pro - fal.ai"},{id:8,value:"gpt-image-2-medium - fal.ai"},{id:9,value:"gpt-image-2-high - fal.ai"}],model_key:"Ключ доступа",model_key_for:"Ключ от",model_key_tip:"Ключ берется в личном кабинете того сайта, который указан в названии модели.",model_key_placeholder:"Вставьте ключ",text_limit:"Максимальный размер текста",text_limit_tip:"Столько символов будет в тексте поста. Учитывайте лимиты соц. сетей.",text_limit_postfix:"символов",posts_amount:"Сколько постов создать",posts_amount_values:[{id:1,value:"1 пост"},{id:10,value:"10 постов"},{id:20,value:"20 постов"},{id:50,value:"50 постов"},{id:100,value:"100 постов"},{id:500,value:"500 постов"},{id:1e3,value:"1000 постов"}],images_type:"Картинки для постов",images_types:[{id:1,value:"Без картинок"},{id:2,value:"Создавать картинки"}],images_amount:"Сколько картинок",images_amounts:[{id:1,value:"Одна"},{id:2,value:"Две"}],image_notes:"Заметки к картинкам",image_notes_description:"Необязательно. Что должно быть в кадре и чего в нем быть не должно.",image_notes_placeholder:"Например: чашка кофе на столе, без людей и без текста на картинке",image_style:"Стиль картинок",image_style_description:"Необязательно. Ð
1’ какой манере рисовать: фотореализм, акварель, 3D-рендер и так далее.",image_style_placeholder:"Например: минимализм, теплые тона, мягкий свет",reference_photos:"Фото для референса",reference_photos_description:"Необязательно. До 3 своих фото, на которые будет опираться ИИ. К каждому добавьте короткую заметку: что на фото или как его использовать.",reference_photos_add:"Загрузить фото",reference_photo_note_placeholder:"Например: это наш товар, сохрани его форму и цвет",publication:"Публикация",publication_when_type:"Когда публиковать",publication_when_types:[{id:1,value:"Сразу, после создания"},{id:2,value:"По расписанию"}],publication_how_type:"Выбор соц. сетей",publication_how_types:[{id:1,value:"Ручной"},{id:2,value:"Через проект"}],networks:"Соц. сети",prompts:{saved:"Задача успешно сохранена.",created:"Задача успешно создана.",set_name:"Укажите название задачи.",set_topic:"Укажите тему для постов.",set_text_limit:"Укажите максимальный размер текста постов.",set_model_key:"Укажите ключ для выбранной модели.",set_pages:"Выберите страницы, куда публиковать посты.",set_project:"Выберите проект.",set_schedule:"Выберите расписание."}}},itemsListFooter:{actions:"Действия",selected:"Выбрано",cancel:"Отменить"},GPTRequest:{role:"Роль для ИИ",role_tip:"Укажите, в роли чего или кого ИИ должен себя представить, чтобы писать максимально осмысленные тексты",role_placeholder:"Например: Ты много знаешь о путешествиях. Напиши текст на тему",topic:"Тема постов",topic_placeholder:"Подробное описание темы постов",topic_tip:"Вы можете указать одну или несколько тем, на которые ИИ будет писать тексты и создавать посты",topic_first:"Например: достоинства и недостатки всех пляжей на острове.",topic_rest:"Тема",add_topic:"Добавить тему",with_chat:"С помощью ИИ",delete_topic_confirmation:"Удалить данную тему?",chat_help_title:"Создание тем для постов",topic_help:"Старайтесь как можно лучше и точнее описывать то, на какую тему вам нужны предложения от ИИ. Например",topic_example:"Предложи мне 5 интересных тем о жизни на Пхукете и чем там можно заниматься.",request_topic:"Тема постов",request_topic_placeholder:"Подробное описание темы постов",send_request:"Отправить запрос",cancel_help:"Отмена",request_answer_title:"Предложение по теме постов",request_answer_apply:"Применить",request_answer_cancel:"Отмена",chat_help_set_query_confirmation:"Укажите запрос для темы постов.",request_answer_format:"Дай ответ в формате со структурой {items:[]}, где items это список тем в виде строк"},news:{close:"Закрыть"}},Bo={COMPONENT_OPTIONS_KEY:"nuxtI18n",STRATEGIES:{PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},REDIRECT_ON_OPTIONS:{ALL:"all",ROOT:"root",NO_PREFIX:"no prefix"}},Do=void 0,No={vueI18n:{fallbackLocale:"ru"}
1,vueI18nLoader:!1,locales:[{code:"en",iso:"en-US",file:"en-US.js"},{code:"ru",iso:"ru-RU",file:"ru-RU.js"}],defaultLocale:"ru",defaultDirection:"ltr",routesNameSeparator:"___",defaultLocaleRouteNameSuffix:"default",sortRoutes:!0,strategy:"prefix_except_default",lazy:!0,langDir:"lang/",rootRedirect:null,detectBrowserLanguage:{alwaysRedirect:!1,cookieAge:365,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0},differentDomains:!1,baseUrl:"https://hooppy.ru",vuex:{moduleName:"i18n",syncRouteParams:!0},parsePages:!0,pages:{},skipSettingLocaleOnNavigate:!1,onBeforeLanguageSwitch:function(){},onLanguageSwitched:function(){return null},normalizedLocales:[{code:"en",iso:"en-US",file:"en-US.js"},{code:"ru",iso:"ru-RU",file:"ru-RU.js"}],localeCodes:["en","ru"],additionalMessages:[]},Mo={
1"ru-RU.js":function(){return Promise.resolve(Ro)},
1"en-US.js":function(){return o.e(13).then(o.bind(null,1245))}
1},Vo=(o(34),o(136),o(138),o(122),o(235)),Uo=o(287),Eo=o.n(Uo);function qo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Ho(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return zo(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?zo(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function zo(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function Wo(text){return"[@nuxtjs/i18n] ".concat(text)}function Go(t,e){var o,n=[],r=[],c=Ho(t);try{for(c.s();!(o=c.n()).done;){var l=o.value,code=l.code,d=l.iso||code;r.push({code:code,iso:d})}}catch(t){c.e(t)}finally{c.f()}var m,h=Ho(e.entries());try{var _=function(){var t=Object(Os.a)(m.value,2),o=t[0],c=t[1],l=r.find(function(t){return t.iso.toLowerCase()===c.toLowerCase()});if(l)return n.push({code:l.code,score:1-o/e.length}),1};for(h.s();!(m=h.n()).done&&!_(););}catch(t){h.e(t)}finally{h.f()}var f,v=Ho(e.entries());try{var y=function(){var t=Object(Os.a)(f.value,2),o=t[0],c=t[1].split("-")[0].toLowerCase(),l=r.find(function(t){return t.iso.split("-")[0].toLowerCase()===c});if(l)return n.push({code:l.code,score:.999-o/e.length}),1};for(v.s();!(f=v.n()).done&&!y(););}catch(t){v.e(t)}finally{v.f()}return n.length>1&&n.sort(function(t,e){return t.score===e.score?e.code.length-t.code.length:e.score-t.score}),n.length?n[0].code:void 0}function Ko(t,e){var o;if(o=window.location.host){var n=t.find(function(t){return t.domain===o});if(n)return n.code}return""}function Xo(t){return new RegExp("^/(".concat(t.join("|"),")(?:/|$)"))}function Qo(t,e){var o=e.routesNameSeparator,n=e.defaultLocaleRouteNameSuffix,r="(".concat(t.join("|"),")"),c="(?:".concat(o).concat(n,")?"),l=new RegExp("".concat(o).concat(r).concat(c,"$")),d=Xo(t);return function(t){if(t.name){var e=t.name.match(l);if(e&&e.length>1)return e[1]}else if(t.path){var o=t.path.match(d);if(o&&o.length>1)return o[1]}return""}}function Yo(t,e){var o,n=e.useCookie,r=e.cookieKey,c=e.localeCodes;if(n&&((o=Eo.a.get(r))&&c.includes(o)))return o}function Jo(t,e,o){var n=o.useCookie,c=o.cookieAge,l=o.cookieDomain,d=o.cookieKey,m=o.cookieSecure,h=o.cookieCrossOrigin;if(n){var _=function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?qo(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):qo(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({expires:c,path:"/",sameSite:h?"none":"lax",secure:h||m},l?{domain:l}:{});Eo.a.set(d,t,_)}}function Zo(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return tn(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?tn(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t}
1,e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function tn(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function en(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function sn(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?en(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):en(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function on(t,e){return nn.apply(this,arguments)}function nn(){return(nn=Object(n.a)(regeneratorRuntime.mark(function t(e,o){var n,r,c,l,d,m,h,_,f;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.app,(r=n.i18n).loadedLanguages||(r.loadedLanguages=[]),r.loadedLanguages.includes(o)){t.next=11;break}if(!(c=No.normalizedLocales.find(function(t){return t.code===o}))){t.next=10;break}if(!(l=c.file)){t.next=8;break}if((m=e.nuxtState)&&m.__i18n&&m.__i18n.langs[o]&&(d=m.__i18n.langs[o],e.isDev&&Mo[l]()),d){t.next=7;break}return t.prev=1,t.next=2,Mo[l]().then(function(t){return t.default||t});case 2:if("function"!=typeof(h=t.sent)){t.next=4;break}return t.next=3,Promise.resolve(h(e,o));case 3:_=t.sent,t.next=5;break;case 4:_=h;case 5:d=_,t.next=7;break;case 6:t.prev=6,f=t.catch(1),console.error(Wo("Failed loading async locale export: ".concat(f.message)));case 7:d&&(r.setLocaleMessage(o,d),ln(r,No.additionalMessages,No.localeCodes,[o]),r.loadedLanguages.push(o)),t.next=9;break;case 8:console.warn(Wo("Could not find lang file for locale ".concat(o)));case 9:t.next=11;break;case 10:console.warn(Wo('Attempted to load messages for non-existant locale code "'.concat(o,'"')));case 11:case"end":return t.stop()}},t,null,[[1,6]])}))).apply(this,arguments)}function an(t,e,o,n){var r=n.differentDomains,c=n.normalizedLocales;if("function"==typeof t)return t(e);if(r&&o){var l=rn(o,e.req,{normalizedLocales:c});if(l)return l}return t}function rn(t,e,o){var n,r=o.normalizedLocales.find(function(e){return e.code===t});if(r&&r.domain)return Object(Lo.hasProtocol)(r.domain)?r.domain:(n=window.location.protocol.split(":")[0],"".concat(n,"://").concat(r.domain));console.warn(Wo("Could not find domain name for locale ".concat(t)))}function cn(t,e,o){var n={namespaced:!0,state:function(){return sn({},e.syncRouteParams?{routeParams:{}}:{})},actions:sn({},e.syncRouteParams?{setRouteParams:function(t,e){(0,t.commit)("setRouteParams",e)}}:{}),mutations:sn({},e.syncRouteParams?{setRouteParams:function(t,e){t.routeParams=e}}:{}),getters:sn({},e.syncRouteParams?{localeRouteParams:function(t){var e=t.routeParams;return function(t){return e&&e[t]||{}}}}:{})};t.registerModule(e.moduleName,n,{preserveState:!!t.state[e.moduleName]})}function ln(t,e,o,n){var r,c=n||o,l=Zo(e);try{for(l.s();!(r=l.n()).done;){var d,m=r.value,h=Zo(c);try{for(h.s();!(d=h.n()).done;){var _=d.value,f=t.getLocaleMessage(_);t.mergeLocaleMessage(_,m[_]),t.mergeLocaleMessage(_,f)}}catch(t){h.e(t)}finally{h.f()}}}catch(t){l.e(t)}finally{l.f()}}var un=o(237),pn=(o(83),o(146)),dn=function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(e){var o,n,r,c,l,d,m;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.app,!e.isHMR){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,o.i18n.__onNavigate(e.route);case 2:n=t.sent,r=Object(Os.a)(n,3),c=r[0],l=r[1],d=r[2],c&&l&&(m=d?e.route.query:void 0,e.redirect(c,l,m));case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}();pn.a.nuxti18n=dn;var mn=["params"];function hn(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function _n(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?hn(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):hn(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function fn(t,e){var o=gn.call(this,t,e);return o?o.route.redirectedFrom||o.route.fullPath:""}function bn(t,e){var o=gn.call(this,t,e);return o?o.route:void 0}function vn(t,e){var o=gn.call(this,t,e);return o?o.location:void 0}function gn(t,e){if(t){var o=this.i18n;if(e=e||o.locale){"string"==typeof t&&(t="/"===t[0]?{path:t}:{name:t});var n=Object.assign({},t);if(n.path&&!n.name){var r=this.router.resolve(n).route,c=this.getRouteBaseName(r);if(c)n={name:xn(c,e),params:r.params,query:r.query,hash:r.hash};else!(e===No.defaultLocale&&[Bo.STRATEGIES.PREFIX_EXCEPT_DEFAULT,Bo.STRATEGIES.PREFIX_AND_DEFAULT].includes(No.strategy)||No.strategy===Bo.STRATEGIES.NO_PREFIX||o.differentDomains)&&(n.path="/".concat(e).concat(n.path)),n.path=Do?Object(Lo.withTrailingSlash)(n.path,!0):Object(Lo.withoutTrailingSlash)(n.path,!0)}else{n.name||n.path||(n.name=this.getRouteBaseName()),n.name=xn(n.name,e);var l=n.params;l&&void 0===l[0]&&l.pathMatch&&(l[0]=l.pathMatch)}var d=this.router.resolve(n);return d.route.name?d:this.router.resolve(t)}}}function yn(t){var e=this.getRouteBaseName();if(!e)return"";var o=this.i18n,n=this.route,r=this.store,c=n.params,l=Object(un.a)(n,mn),d={};No.vuex&&No.vuex.syncRouteParams&&r&&(d=r.getters["".concat(No.vuex.moduleName,"/localeRouteParams")](t));var m=Object.assign({},l,{name:e,params:_n(_n(_n({},c),d),{},{0:c.pathMatch})}),path=this.localePath(m,t);if(o.differentDomains){var h={differentDomains:o.differentDomains,normalizedLocales:No.normalizedLocales},_=rn(t,this.req,h);_&&(path=_+path)}return path}function kn(t){var e=void 0!==t?t:this.route;if(e&&e.name)return e.name.split(No.routesNameSeparator)[0]}function xn(t,e){var o=t+(No.strategy===Bo.STRATEGIES.NO_PREFIX?"":No.routesNameSeparator+e);return e===No.defaultLocale&&No.strategy===Bo.STRATEGIES.PREFIX_AND_DEFAULT&&(o+=No.routesNameSeparator+No.defaultLocaleRouteNameSuffix),o}var wn=function(t){return function(){var e={getRouteBaseName:this.getRouteBaseName,i18n:this.$i18n,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,req:null,route:this.$route,router:this.$router,store:this.$store};return t.call.apply(t,[e].concat(Array.prototype.slice.call(arguments)))}},Cn=function(t,e){return function(){var o=t.app,n=(t.req,t.route),r=t.store,c={getRouteBaseName:o.getRouteBaseName,i18n:o.i18n,localePath:o.localePath,localeLocation:o.localeLocation,localeRoute:o.localeRoute,req:null,route:n,router:o.router,store:r};return e.call.apply(e,[c].concat(Array.prototype.slice.call(arguments)))}},Sn={install:function(t){t.mixin({methods:{localePath:wn(fn),localeRoute:wn(bn),localeLocation:wn(vn),switchLocalePath:wn(yn),getRouteBaseName:wn(kn)}})}},Tn=function(t){c.default.use(Sn);var e=t.app,o=t.store;e.localePath=t.localePath=Cn(t,fn),e.localeRoute=t.localeRoute=Cn(t,bn),e.localeLocation=t.localeLocation=Cn(t,vn),e.switchLocalePath=t.switchLocalePath=Cn(t,yn),e.getRouteBaseName=t.getRouteBaseName=Cn(t,kn),o&&(o.localePath=e.localePath,o.localeRoute=e.localeRoute,o.localeLocation=e.localeLocation,o.switchLocalePath=e.switchLocalePath,o.getRouteBaseName=e.getRouteBaseName)},Pn=o(288),In=o(175);o(707),o(709),o(710),o(711),o(712),o(713),o(714),o(716),o(717),o(718),o(719),o(720),o(721),o(722),o(176);function An(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Fn(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?An(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):An(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function jn(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return On(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?On(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t}
1,e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function On(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function $n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.addDirAttribute,o=void 0!==e&&e,n=t.addSeoAttributes,r=void 0!==n&&n;if(!this.$i18n)return{};var c={htmlAttrs:{},link:[],meta:[]},l=this.$i18n.localeProperties,m=l.iso,h=l.dir||No.defaultDirection;if(o&&(c.htmlAttrs.dir=h),r&&(d.a.hasMetaInfo?d.a.hasMetaInfo(this):this._hasMetaInfo)&&this.$i18n.locale&&this.$i18n.locales){m&&(c.htmlAttrs.lang=m);var _=this.$i18n.locales;(function(t,e,link){if(No.strategy===Bo.STRATEGIES.NO_PREFIX)return;var o,n=new Map,r=jn(t);try{for(r.s();!(o=r.n()).done;){var c=o.value,l=c.iso;if(l){var d=l.split("-"),m=Object(Os.a)(d,2),h=m[0],_=m[1];h&&_&&(c.isCatchallLocale||!n.has(h))&&n.set(h,c),n.set(l,c)}else console.warn(Wo("Locale ISO code is required to generate alternate link"))}}catch(t){r.e(t)}finally{r.f()}var f,y=jn(n.entries());try{for(y.s();!(f=y.n()).done;){var k=Object(Os.a)(f.value,2),x=k[0],w=k[1],C=this.switchLocalePath(w.code);C&&link.push({hid:"i18n-alt-".concat(x),rel:"alternate",href:v(C,e),hreflang:x})}}catch(t){y.e(t)}finally{y.f()}if(No.defaultLocale){var S=this.switchLocalePath(No.defaultLocale);S&&link.push({hid:"i18n-xd",rel:"alternate",href:v(S,e),hreflang:"x-default"})}}).bind(this)(_,this.$i18n.__baseUrl,c.link),function(t,link,e){var o=this.localeRoute(Fn(Fn({},this.$route),{},{name:this.getRouteBaseName()}));if(o){var n=v(o.path,t),r="boolean"!=typeof e&&e.canonicalQueries||[];if(r.length){var c,l=o.query,d=new URLSearchParams,m=jn(r);try{var h=function(){var t=c.value;if(t in l){var e=l[t];Array.isArray(e)?e.forEach(function(e){return d.append(t,e||"")}):d.append(t,e||"")}};for(m.s();!(c=m.n()).done;)h()}catch(t){m.e(t)}finally{m.f()}var _=d.toString();_&&(n="".concat(n,"?").concat(_))}link.push({hid:"i18n-can",rel:"canonical",href:n})}}.bind(this)(this.$i18n.__baseUrl,c.link,r),function(t,e,meta){var o=t&&e;if(!o)return;meta.push({hid:"i18n-og",property:"og:locale",content:f(e)})}.bind(this)(l,m,c.meta),function(t,e,meta){var o=t.filter(function(t){var o=t.iso;return o&&o!==e});if(o.length){var n=o.map(function(t){return{hid:"i18n-og-alt-".concat(t.iso),property:"og:locale:alternate",content:f(t.iso)}});meta.push.apply(meta,Object(zs.a)(n))}}.bind(this)(_,m,c.meta)}function f(t){return(t||"").replace(/-/g,"_")}function v(t,e){return t.match(/^https?:\/\//)?t:e+t}return c}function Ln(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return Rn(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Rn(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function Rn(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}c.default.use(Pn.a);var Bn=function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(e){var o,r,l,d,m,h,_,f,v,y,k,x,w,C,S,T,P,I,A,F,j,O,$,L,R,B,D,N,M,V,U,E,H,z,W,G,K,X,Q,Y,J;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=e.app,r=e.route,l=e.store,d=e.req,e.res,m=e.redirect,No.vuex&&l&&cn(l,No.vuex,No.localeCodes),h=No.lazy,h&&(!0===h||!0!==h.skipNuxtState),t.next=2;break;case 1:_=t.sent.default,e.beforeNuxtRender(function(t){var e=t.nuxtState,n={},r=o.i18n,c=r.fallbackLocale,l=r.locale;if(l&&l!==c){var d=o.i18n._getMessages()[l];if(d)try{_(d),n[l]=d}catch(t){}}e.__i18n={langs:n}});case 2:if(f=No.detectBrowserLanguage,v=f.alwaysRedirect,y=f.fallbackLocale,k=f.redirectOn,x=f.useCookie,w=f.cookieAge,C=f.cookieKey,S=f.cookieDomain,T=f.cookieSecure,P=f.cookieCrossOrigin,I=Qo(No.localeCodes,{routesNameSeparator:No.routesNameSeparator,defaultLocaleRouteNameSuffix:No.defaultLocaleRouteNameSuffix}),A=function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(n){var r,l,d,h,_,f,v,y,k,w,C,S,T,P,A,F,j,O,$=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=($.length>1&&void 0!==$[1]?$[1]:{}).initialSetup,l=void 0!==r&&r,n){t.next=1;break}return t.abrupt("return");case 1:if(l||!o.i18n.differentDomains){t.next=2;break}return t.abrupt("return");case 2:if(d=o.i18n.locale,n!==d){t.next=3;break}return t.abrupt("return");case 3:if(!(h=o.i18n.onBeforeLanguageSwitch(d,n,l,e))||!o.i18n.localeCodes.includes(h)){t.next=5;break}if(h!==d){t.next=4;break}return t.abrupt("return");case 4:n=h;case 5:if(x&&o.i18n.setLocaleCookie(n),!No.langDir){t.next=10;break}if(_=o.i18n.fallbackLocale,!No.lazy){t.next=8;break}if(!_){t.next=6;break}return f=[],Array.isArray(_)?f=_.map(function(t){return on(e,t)}):"object"===Object($o.a)(_)?(_[n]&&(f=f.concat(_[n].map(function(t){return on(e,t)}))),_.default&&(f=f.concat(_.default.map(function(t){return on(e,t)})))):n!==_&&f.push(on(e,_)),t.next=6,Promise.all(f);case 6:return t.next=7,on(e,n);case 7:t.next=9;break;case 8:return t.next=9,Promise.all(No.localeCodes.map(function(t){return on(e,t)}));case 9:t.next=11;break;
1case 10:ln(o.i18n,No.additionalMessages,No.localeCodes);case 11:for(o.i18n.locale=n,v=No.normalizedLocales.find(function(t){return t.code===n})||{code:n},y=0,k=Object.keys(o.i18n.localeProperties);y<k.length;y++)w=k[y],o.i18n.localeProperties[w]=void 0;for(C=0,S=Object.entries(v);C<S.length;C++)T=Object(Os.a)(S[C],2),P=T[0],A=T[1],c.default.set(o.i18n.localeProperties,P,Object(In.a)(A));F=e.route,j="",o.i18n.differentDomains||No.strategy===Bo.STRATEGIES.NO_PREFIX||I(F)===n&&(No.strategy!==Bo.STRATEGIES.PREFIX_AND_DEFAULT||n!==No.defaultLocale)||!(O=o.switchLocalePath(n)||o.localePath(F.fullPath,n))||Object(Lo.isEqual)(O,F.fullPath)||O.startsWith("//")||(j=O),l?o.i18n.__redirect=j:(o.i18n.onLanguageSwitched(d,n),j&&m(j));case 12:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),F=function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(n){var r,path,c,l,d;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("/"!==n.path||!No.rootRedirect){t.next=1;break}return r=302,path=No.rootRedirect,"string"!=typeof No.rootRedirect&&(r=No.rootRedirect.statusCode,path=No.rootRedirect.path),t.abrupt("return",[r,"/".concat(path),!0]);case 1:if(!(c=o.i18n.__redirect)){t.next=2;break}return o.i18n.__redirect=null,t.abrupt("return",[302,c]);case 2:if(l={differentDomains:No.differentDomains,normalizedLocales:No.normalizedLocales},o.i18n.__baseUrl=an(No.baseUrl,e,o.i18n.locale,l),d=No.detectBrowserLanguage&&L(n)||!No.differentDomains&&No.strategy!==Bo.STRATEGIES.NO_PREFIX&&I(n)||o.i18n.locale||o.i18n.defaultLocale||"",!No.skipSettingLocaleOnNavigate){t.next=3;break}o.i18n.__pendingLocale=d,o.i18n.__pendingLocalePromise=new Promise(function(t){o.i18n.__resolvePendingLocalePromise=t}),t.next=4;break;case 3:return t.next=4,o.i18n.setLocale(d);case 4:return t.abrupt("return",[null,null]);case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),j=function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o.i18n.__pendingLocale){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,o.i18n.setLocale(o.i18n.__pendingLocale);case 2:o.i18n.__resolvePendingLocalePromise(""),o.i18n.__pendingLocale=null;case 3:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),O=function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.i18n.__pendingLocale){t.next=1;break}return t.next=1,o.i18n.__pendingLocalePromise;case 1:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),$=function(){return"undefined"!=typeof navigator&&navigator.languages?Go(No.normalizedLocales,navigator.languages):d&&void 0!==d.headers["accept-language"]?Go(No.normalizedLocales,d.headers["accept-language"].split(",").map(function(t){return t.split(";")[0]})):void 0},L=function(t){if(No.strategy!==Bo.STRATEGIES.NO_PREFIX)if(k===Bo.REDIRECT_ON_OPTIONS.ROOT){if("/"!==t.path)return""}else if(k===Bo.REDIRECT_ON_OPTIONS.NO_PREFIX&&!v&&t.path.match(Xo(No.localeCodes)))return"";var e;x&&(e=o.i18n.getLocaleCookie())||(e=$());var n=e||y;return!n||x&&!v&&o.i18n.getLocaleCookie()||n===o.i18n.locale?"":n},R=function(t){t.locales=Object(In.a)(No.locales),t.localeCodes=Object(In.a)(No.localeCodes),t.localeProperties=c.default.observable(Object(In.a)(No.normalizedLocales.find(function(e){return e.code===t.locale})||{code:t.locale})),t.defaultLocale=No.defaultLocale,t.differentDomains=No.differentDomains,t.onBeforeLanguageSwitch=No.onBeforeLanguageSwitch,t.onLanguageSwitched=No.onLanguageSwitched,t.setLocaleCookie=function(t){return Jo(t,0,{useCookie:x,cookieAge:w,cookieDomain:S,cookieKey:C,cookieSecure:T,cookieCrossOrigin:P})},t.getLocaleCookie=function(){return Yo(0,{useCookie:x,cookieKey:C,localeCodes:No.localeCodes})},t.setLocale=function(t){return A(t)},t.getBrowserLocale=function(){return $()},t.finalizePendingLocaleChange=j,t.waitForPendingLocaleChange=O,t.__baseUrl=o.i18n.__baseUrl,t.__pe
1ndingLocale=o.i18n.__pendingLocale,t.__pendingLocalePromise=o.i18n.__pendingLocalePromise,t.__resolvePendingLocalePromise=o.i18n.__resolvePendingLocalePromise},"function"!=typeof No.vueI18n){t.next=4;break}return t.next=3,No.vueI18n(e);case 3:J=t.sent,t.next=5;break;case 4:J=Object(In.a)(No.vueI18n);case 5:if((B=J).componentInstanceCreatedListener=R,o.i18n=e.i18n=new Pn.a(B),o.i18n.locale="",o.i18n.fallbackLocale=B.fallbackLocale||"",l&&(l.$i18n=o.i18n,l.state.localeDomains)){D=Ln(No.normalizedLocales.entries());try{for(D.s();!(N=D.n()).done;)M=Object(Os.a)(N.value,2),V=M[0],U=M[1],(E=l.state.localeDomains[U.code])&&(U.domain=E,"string"!=typeof(H=No.locales[V])&&(H.domain=E))}catch(t){D.e(t)}finally{D.f()}}return R(o.i18n),z={differentDomains:No.differentDomains,normalizedLocales:No.normalizedLocales},o.i18n.__baseUrl=an(No.baseUrl,e,"",z),o.i18n.__onNavigate=F,c.default.prototype.$nuxtI18nHead=$n,(W=No.detectBrowserLanguage?L(r):"")||(o.i18n.differentDomains?(G=Ko(No.normalizedLocales),W=G):No.strategy!==Bo.STRATEGIES.NO_PREFIX&&(K=I(r),W=K)),!W&&x&&(W=o.i18n.getLocaleCookie()),W||(W=o.i18n.defaultLocale||""),t.next=6,A(W,{initialSetup:!0});case 6:t.next=8;break;case 7:X=t.sent,Q=Object(Os.a)(X,2),Q[0],(Y=Q[1])&&location.assign(Object(Lo.joinURL)(e.base,Y));case 8:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),Dn=o(201),Nn=o.n(Dn),Mn=o(414);function Vn(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Un(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Vn(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Vn(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function En(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return qn(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?qn(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function qn(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}for(var Hn={setBaseURL:function(t){this.defaults.baseURL=t},setHeader:function(t,e){var o,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=En(Array.isArray(n)?n:[n]);try{for(r.s();!(o=r.n()).done;){var c=o.value;e?this.defaults.headers[c][t]=e:delete this.defaults.headers[c][t]}}catch(t){r.e(t)}finally{r.f()}},setToken:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",n=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",n,o)},onRequest:function(t){this.interceptors.request.use(function(e){return t(e)||e})},onResponse:function(t){this.interceptors.response.use(function(e){return t(e)||e})},onRequestError:function(t){this.interceptors.request.use(void 0,function(e){return t(e)||Promise.reject(e)})},onResponseError:function(t){this.interceptors.response.use(void 0,function(e){return t(e)||Promise.reject(e)})},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return Kn(Object(Mn.a)(t,this.defaults))}},zn=function(){var t=Gn[Wn];Hn["$"+t]=function(){return this[t].apply(this,arguments).then(function(t){return t&&t.data})}},Wn=0,Gn=["request","delete","get","head","options","post","put","patch"];Wn<Gn.length;Wn++)zn();var Kn=function(t){var e=Nn.a.create(t);return e.CancelToken=Nn.a.CancelToken,e.isCancel=Nn.a.isCancel,function(t){for(var e in Hn)t[e]=Hn[e].bind(t)}(e),e.onRequest(function(t){t.headers=Un(Un({},e.defaults.headers.common),t.headers)}),Xn(e),e},Xn=function(t){var e={finish:function(){},start:function(){},fail:function(){},set:function(){}},o=function(){var t="undefined"!=typeof window&&window.$nuxt;return t&&t.$loading&&t.$loading.set?t.$loading:e},n=0;t.onRequest(function(t){t&&!1===t.progress||n++}),t.onResponse(function(t){t&&t.config&&!1===t.config.progress||--n<=0&&(n=0,o().finish())}),t.onError(function(t){t&&t.config&&!1===t.config.progress||(n--,Nn.a.isCancel(t)?n<=0&&(n=0,o().finish()):(o().fail(),o().finish()))});var r=function(t){if(n&&t.total){var progress=100*t.loaded/(t.total*n);o().set(Math.min(100,progress))}};t.defaults.onUploadProgress=r,t.defaults.onDownloadProgress=r},Qn=function(t,e){var o=t.$config&&t.$config.axios||{},n=o.browserBaseURL||o.browserBaseUrl||o.baseURL||o.baseUrl||"https://api.hooppy.ru/api";var r=Kn({baseURL:n,headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{}}
1});t.$axios=r,e("axios",r)},Yn=o(415),Jn=o.n(Yn),Zn=function(t,e){var o=t.req,n=t.res,r=!0;e("cookies",Jn()(o,n,r))},ti=o(416),ei=o(417),si=o(418),oi={props:["tabs"],methods:{ifSameRoute:function(t){var path=this.$nuxt.$route.path.replace(/\/$/,"");return path===t||("/posts"===t&&path===this.localePath("/posts/create")||("/posts/projects"===t&&path===this.localePath("/posts/projects/create")||("/posts/schedules"===t&&path===this.localePath("/posts/schedules/create")||("/posts/folders"===t&&path===this.localePath("/posts/folders/create")||("/cross-posting/folders"===t&&path===this.localePath("/cross-posting/folders/create")||("/rss-import/folders"===t&&path===this.localePath("/rss-import/folders/create")||("/posts-search/source-resources"===t&&path===this.localePath("/posts-search/source-resources/create")||("/cross-posting"===t&&path===this.localePath("/cross-posting/create")||("/rss-import"===t&&path===this.localePath("/rss-import/create")||("/smart-tasks"===t&&path===this.localePath("/smart-tasks/create")||("/team"===t&&path===this.localePath("/team/create")||("/accounts"===t&&(path===this.localePath("/accounts/connect")||path===this.localePath("/accounts/connect/instagram")||path===this.localePath("/accounts/connect/threads")||path===this.localePath("/accounts/connect/telegram")||path===this.localePath("/accounts/connect/telegram/parsing")||path===this.localePath("/accounts/connect/vkontakte")||path===this.localePath("/accounts/connect/vkontakte/chat")||path===this.localePath("/accounts/connect/dzen")||path===this.localePath("/accounts/connect/viber")||path===this.localePath("/accounts/connect/wordpress")||path===this.localePath("/accounts/connect/joomla")||path===this.localePath("/accounts/connect/whatsapp")||path===this.localePath("/accounts/connect/rutube")||path===this.localePath("/accounts/connect/twitter")||path===this.localePath("/accounts/connect/likee")||path===this.localePath("/accounts/connect/wibes")||path===this.localePath("/accounts/connect/max")||path===this.localePath("/accounts/connect/max/parsing")||path===this.localePath("/accounts/connect/tenchat")||path===this.localePath("/accounts/connect/tiktok")||path===this.localePath("/accounts/connect/yappy")||path===this.localePath("/accounts/connect/wbchat")||path===this.localePath("/accounts/connect/wbchat/channel"))||("/ord/persons"===t&&path===this.localePath("/ord/persons/create")||("/ord/contracts"===t&&path===this.localePath("/ord/contracts/create")||("/watermarks"===t&&path===this.localePath("/watermarks/create")||("/proxies"===t&&path===this.localePath("/proxies/create")||("/smart-tags"===t&&path===this.localePath("/smart-tags/create")||"/ai-posting"===t&&path===this.localePath("/ai-posting/create"))))))))))))))))))}}},ni=Object(Fs.a)(oi,function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3 bg-white app-main-tabs",attrs:{id:"app-main-tabs"}},[e("ul",{staticClass:"nav"},t._l(t.tabs,function(o,n){return e("li",{key:n,staticClass:"nav-item"},[e("nuxt-link",{key:n,staticClass:"nav-link",class:{"active-tab":t.ifSameRoute(o.route)},attrs:{to:t.localePath(o.route)}},[t._v("\n        "+t._s(t.$t("tabs")[o.route])+"\n      ")])],1)}),0)])},[],!1,null,null,null).exports,ii=(o(435),{props:["createButton","youtubeButton"],data:function(){return{isSticky:!1}},mounted:function(){window.addEventListener("scroll",this.setFixedPosition),this.setFixedPosition()},destroyed:function(){window.removeEventListener("scroll",this.setFixedPosition)},methods:{setFixedPosition:function(){var t=document.getElementById("app-main-tabs");this.isSticky=window.scrollY>=t.offsetHeight+1}}}),ai=Object(Fs.a)(ii,function(){var t=this,e=t._self._c;return e("nav",{staticClass:"nav p-3 justify-content-between app-main-actions",class:{sticky:t.isSticky},attrs:{id:"app-main-actions"}},[e("div",{staticClass:"d-flex"},[t.createButton&&t.createButton.url?e("nuxt-link",{staticClass:"btn btn-success btn-sm",attrs:{to:t.localePath(t.createButton.url)}},[t._v("\n      "+t._s(t.$t("createButtonsLinks")[t.createButton.url])+"\n    ")]):t.createButton&&t.createButton.clickHandler?e("div",{staticClass:"btn btn-success btn-sm",on:{click:function(e){t.$emit(t.camelToSnake(t.createButton.clickHandler).replaceAll("_","-"))}}},[t._v("\n      "+t._s(t.$t("createButtonsHandlers")[t.createButton.clickHandler])+"\n    ")]):t._e(),t._v(" "),t.youtubeButton?e("a",{staticClass:"btn btn-danger btn-sm ms-2",attrs:{href:t.youtubeButton.url,title:t.youtubeButton.title,target:"_blank"}}
1,[e("fa",{attrs:{icon:["fab","youtube"]}})],1):t._e()],1),t._v(" "),t._t("default")],2)},[],!1,null,null,null).exports;c.default.use(ti.a),c.default.use(ei.a),c.default.use(si.a),c.default.component("AppMainTabs",ni),c.default.component("AppMainActions",ai);o(745),o(751),o(752),o(348),o(299),o(45),o(754),o(762),o(764),o(765),o(766),o(768),o(769),o(770),o(771),o(772),o(773),o(774),o(775),o(777),o(778),o(779),o(780),o(781),o(782),o(783),o(784),o(785),o(786),o(787);function ri(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return ci(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ci(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function ci(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}c.default.mixin({data:function(){return{isLoading:!1}},computed:{domainURL:function(){return"https://hooppy.ru"},backendURL:function(){return"https://api.hooppy.ru/api"},yandexPhotosUrl:function(){return"https://uploads.hooppy2.ru/photos/"},yandexVideosUrl:function(){return"https://uploads.hooppy2.ru/videos/"},yandexDocumentsUrl:function(){return"https://uploads.hooppy2.ru/documents/"},yandexWatermarksUrl:function(){return"https://uploads.hooppy2.ru/watermarks/"},binaryImagesUrl:function(){return"https://urls.hooppy2.ru/binary/image"},binaryImagesUrlRus:function(){return"https://urls.hooppy.ru/binary/image"},localFilesUrl:function(){return"https://files.hooppy.ru/"},googleMapsApiKey:function(){return"AIzaSyAHrZIy9O6BJwoqqSyYBBo1ODxESDGnuw8"},config:function(){return{name:"hooppy.ru",logo:"hooppy",source_ids:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37],source_ids_for_parsing:[1,2,6,7,8,11,13,14,17,28],source_ids_for_parsing_by_tags:[1,7],oauth_top_buttons:[2,3,4],oauth_bottom_buttons:[6,14,17],show_help:!0,show_help_videos:!0,show_contacts:!0,can_social_auth:!0,ru_captcha:!0,chud_gpt:!0,show_auth_legal_links:!0,auth_legal_links_name:"",vk_widget:!0,vk_private:!0,vk_extended:!0,vk_clips:!1,plans_enabled:!1,plan_type:1,plans_slugs:{type_1:["vip","vip_2","vip_3","vip_4","vip_5","vip_6","vip_7"],type_2:["start","pro","vip"]},plans_names:{"hooppy.ru":{vip:"Базовый",vip_2:"Профи",vip_3:"Профи+",vip_4:"Премиум",vip_5:"Ультра",vip_6:"Максимум",vip_7:"Зверь"},"socgun.com":{start:"Start",pro:"Pro",vip:"Base",vip_2:"Pro",vip_3:"Pro+",vip_4:"Premium",vip_5:"Ultra",vip_6:"Maximum",vip_7:"Beast"},"hooppy.net":{start:"Start",pro:"Pro",vip:"Vip"},"noblesseposter.com":{start:"Start",pro:"Pro",vip:"Vip"},"socautoposter.com":{start:"Start",pro:"Base",vip:"Advanced"}},plans:{lang:"ru",default_lang:"ru",show_auth_legal_links:!0,auth_legal_links_name:"",ru_captcha:!0,chud_gpt:!0,show_help:!0,show_help_videos:!0,source_ids:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37],source_ids_for_parsing:[1,2,6,7,8,11,13,14,17,28],source_ids_for_parsing_by_tags:[1,7],oauth_top_buttons:[2,3,4],oauth_bottom_buttons:[6,14,17],name:"hooppy.ru",logo:"hooppy",navigation:["/posts","/live","/posts-search","/cross-posting","/ai-posting","/rss-import","/team","/smart-tasks","/accounts","/notifications","/settings","/billing","/ord","/watermarks","/smart-tags","/proxies","/partnership"],show_contacts:!0,can_social_auth:!0,vk_widget:!0,vk_private:!0,vk_extended:!0,vk_clips:!1,vk_client_id:"51896902",mm_client_id:"746149",plan_type:1,plan_payment_system:"",posts_counter:!0,help_button:"",partner_param:"p",plans_enabled:!1,plans_slugs:{type_1:["vip","vip_2","vip_3","vip_4","vip_5","vip_6","vip_7"],type_2:["start","pro","vip"]},plans_names:{"hooppy.ru":{vip:"Базовый",vip_2:"Профи",vip_3:"Профи+",vip_4:"Премиум",vip_5:"Ультра",vip_6:"Максимум",vip_7:"Зверь"},"socgun.com":{start:"Start",pro:"Pro",vip:"Base",vip_2:"Pro",vip_3:"Pro+",vip_4:"Premium",vip_5:"Ultra",vip_6:"Maximum",vip_7:"Beast"}
1,"hooppy.net":{start:"Start",pro:"Pro",vip:"Vip"},"noblesseposter.com":{start:"Start",pro:"Pro",vip:"Vip"},"socautoposter.com":{start:"Start",pro:"Base",vip:"Advanced"}}}.plans,plan_payment_system:"",vk_client_id:"51896902",mm_client_id:"746149",posts_counter:!0,help_button:"",partner_param:"p"}}},methods:{getHtmlTextLength:function(html){var t,e=0,o=html.split("</p><p>").map(function(t){return t.replace(/(<([^>]+)>)/gi,"").trim()}),n=ri(o);try{for(n.s();!(t=n.n()).done;){e+=t.value.trim().length}}catch(t){n.e(t)}finally{n.f()}return e+=o.length-1},getVideoUrl:function(t,e){var o=this;this.$axios.head(this.localFilesUrl+t).then(function(){e(o.localFilesUrl+t)}).catch(function(n){console.log("getVideoUrl.error",n),e(o.yandexVideosUrl+t)})},dataURLToBlob:function(t){var e=";base64,";if(-1===t.indexOf(e)){var o=t.split(","),n=o[0].split(":")[1],r=o[1];return new Blob([r],{type:n})}for(var c=t.split(e),l=c[0].split(":")[1],d=window.atob(c[1]),m=d.length,h=new Uint8Array(m),i=0;i<m;++i)h[i]=d.charCodeAt(i);return new Blob([h],{type:l})},shortText:function(text){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:150,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Без описания";return text?text.length>t?text.substr(0,t)+"...":text:e},remainderDivision:function(t,e){return t%e},getPhotoFromUrl:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",n=this.binaryImagesUrl;"ru"===o&&(n=this.binaryImagesUrlRus),e&&"function"==typeof e&&e(n+"?image_url="+encodeURIComponent(t))},arrayBufferToBase64:function(t){var e="";return[].slice.call(new Uint8Array(t)).forEach(function(b){return e+=String.fromCharCode(b)}),window.btoa(e)},goToRoute:function(path,t){this.$nuxt.$router.push({path:path,query:t})},addToQueryAndReturnParams:function(t){var e=Object.assign({},this.$nuxt.$route.query);for(var o in t)t[o]?e[o]=t[o]:e[o]&&delete e[o];return e},sendRequest:function(t,e,data,o,n){var r=this;this.$axios[t](e,data).then(function(t){o&&"function"==typeof o&&o(t)}).catch(function(t){t.response&&t.response.data&&t.response.data instanceof Blob?r.getRequestErrorText(t.response,function(t){r.bvToast("danger",r.getRequestErrorText(t))}):r.bvToast("danger",r.getRequestErrorText(t.response)),n&&"function"==typeof n&&n(t)})},toggleLoading:function(t){this.isLoading=t,t?this.$nuxt.$loading.start():this.$nuxt.$loading.finish()},getValuesByFieldFromArray:function(t,e){return t.map(function(t){return t[e]})},uniqueID:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Math.random().toString(36).substr(2,10):Math.random().toString(36).substr(2,10)+"_"+Math.random().toString(36).substr(2,10)},randomBetween:function(t,e){return Math.floor(Math.random()*(e-t))+t},wordsDeclension:function(t,e){return e[t%100>4&&t%100<20?2:[2,0,1,1,1,2][Math.min(t%10,5)]]},getRequestErrorText:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e&&t&&t.data&&t.data instanceof Blob){var o=new FileReader;o.onload=function(){try{var t=JSON.parse(o.result.toString());t.message?e({data:t}):e({data:{message:"Error is not defined. [2]"}})}catch(t){e({data:{message:"Error is not defined. [1]"}})}},o.readAsText(t.data)}else{if(t&&t.data&&t.data.errors)return Object.values(t.data.errors)[0][0];if(t&&t.data&&t.data.message)return t.data.message;if(t&&t.statusText)return t.statusText}return""},bvToast:function(t,e){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;setTimeout(function(){o.$bvToast.toast(e,{autoHideDelay:n,appendToast:!1,noCloseButton:!0,solid:!1,variant:t})},100)},bvModal:function(t,e,o){this.$root.$bvModal.msgBoxConfirm(t,{size:"sm",buttonSize:"sm",cancelVariant:o&&o.cancel_variant?o.cancel_variant:"light",cancelTitle:o&&o.cancel_title?o.cancel_title:this.$t("bv_modal").no,okVariant:o&&o.ok_variant?o.ok_variant:"primary",okTitle:o&&o.ok_title?o.ok_title:this.$t("bv_modal").yes,footerClass:"p-3 border-top-0",centered:!0,noFade:!0}).then(function(t){e&&"function"==typeof e&&e(t)}).catch(function(){})},callMethodByName:function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];this[t].apply(this,o)},socialOAuthExternalLink:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[],r="https://hooppy.ru"+this.localePath("/oauth/"+t.source_id);for(var c in e.length&&(r+="?pages=1"),n.push("redirect_uri="+encodeURIComponent(r)),t.connect_link.params)5===t.source_id&&"client_id"===c?n.push(c+"="+this.config.mm_client_id):n.push(c+"="+t.connect_link.params[c]);return e.length?(t.connect_link.pages_scope&&n.push("scope="+encodeURIComponent(t.connect_link.pages_scope)),1===t.source_id&&n.push("group_ids="+e.join(","))):t.connect_link.scope&&(3===t.source_id?o?n.push("scope="+encodeURIComponent(t.connect_link.scope)):n.push("scope="+encodeURIComponent(t.connect_link.basic_scope)):n.push("scope="+encodeURIComponent(t.connect_link.scope))),t.connect_link.state&&n.push("state="+encodeURIComponent(t.connect_link.state)),t.connect_link.code_challenge&&n.push("code_challenge="+encodeURIComponent(t.connect_link.code_challenge)),t.connect_link.code_challenge_method&&n.push("code_challenge_method="+encodeURIComponent(t.connect_link.code_challenge_method)),t.connect_link.value+(n.length?"?"+n.join("&"):"")},camelToSnake:function(t){return t.replace(/[A-Z]/g,function(t){return"_"+t.toLowerCase()})},camelObjectToSnake:function(data){var t={};for(var e in data)t[this.camelToSnake(e)]=data[e];return t},getDataFromState:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.fromEntries(Object.entries(t).filter(function(t){return!o.length||o.indexOf(e.camelToSnake(t[0]))<0}).map(function(t){return[e.camelToSnake(t[0]),t[1]]}))},focusInput:function(t){this.$refs[t].focus()},escapeHTML:function(html){var t=document.createElement("div");return t.textContent=html,t.innerHTML},unescapeHTML:function(html){var t=document.createElement("div");return t.innerHTML=html,t.textContent}}});var ui=o(419),pi=o.n(ui);c.default.use(pi.a);var di=o(420),mi=o.n(di);c.default.component("multiselect",mi.a);var hi=o(58),_i=o(59),fi=function(t){return null==t},bi=function(t){return!fi(t)},vi=function(a,b){return a.split("?")[0].replace(/\/+$/,"")===b.split("?")[0].replace(/\/+$/,"")},gi=function(u){return u&&u.length&&/^\/([a-zA-Z0-9@\-%_~][/a-zA-Z0-9@\-%_~]*)?([?][^#]*)?(#[^#]*)?$/.test(u)},yi=function(t,e,o){return t.matched.some(function(t){return Object.values(t.components).some(function(component){return component.options&&component.options[e]===o})})};function ki(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("?")[0];return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}function xi(t){return"string"==typeof t?t:JSON.stringify(t)}function wi(t){if("string"==typeof t)try{return JSON.parse(t)}catch(t){}return t}function Ci(t,e){if(!e||!t)return t;if(e in t)return t[e];for(var o=Array.isArray(e)?e:(e+"").split("."),n=t;o.length&&n;)n=n[o.shift()];return n}var Si=function(){return Object(_i.a)(function t(e,o){Object(hi.a)(this,t),this.ctx=e,this.options=o,this._initState()},[{key:"setUniversal",value:function(t,e){return fi(e)?this.removeUniversal(t):(this.setState(t,e),this.setCookie(t,e),this.setLocalStorage(t,e),e)}},{key:"getUniversal",value:function(t){var e=this.getState(t);return fi(e)&&(e=this.getCookie(t)),fi(e)&&(e=this.getLocalStorage(t)),e}},{key:"syncUniversal",value:function(t,e){var o=this.getUniversal(t);return fi(o)&&bi(e)&&(o=e),bi(o)&&this.setUniversal(t,o),o}},{key:"removeUniversal",value:function(t){this.removeState(t),this.removeLocalStorage(t),this.removeCookie(t)}},{key:"_initState",value:function(){var t=this;if(c.default.set(this,"_state",{}),this._useVuex=this.options.vuex&&this.ctx.store,this._useVuex){var e={namespaced:!0,state:function(){return t.options.initialState},mutations:{SET:function(t,e){c.default.set(t,e.key,e.value)}}};this.ctx.store.registerModule(this.options.vuex.namespace,e,{preserveState:Boolean(this.ctx.store.state[this.options.vuex.namespace])}),this.state=this.ctx.store.state[this.options.vuex.namespace]}else c.default.set(this,"state",{})}},{key:"setState",value:function(t,e){return"_"===t[0]?c.default.set(this._state,t,e):this._useVuex?this.ctx.store.commit(this.options.vuex.namespace+"/SET",{key:t,value:e}):c.default.set(this.state,t,e),e}},{key:"getState",value:function(t){return"_"!==t[0]?this.state[t]:this._state[t]}},{key:"watchState",value:function(t,e){var o=this;if(this._useVuex)return this.ctx.store.watch(function(e){return Ci(e[o.options.vuex.namespace],t)},e)}},{key:"removeState",value:function(t){this.setState(t,void 0)}},{key:"setLocalStorage",value:function(t,e){if(fi(e))return this.removeLocalStorage(t);if("undefined"!=typeof localStorage&&this.options.localStorage){var o=this.options.localStorage.prefix+t;try{localStorage.setItem(o,xi(e))}catch(t){if(!this.options.ignoreExceptions)throw t}return e}}},{key:"getLocalStorage",value:function(t){if("undefined"!=typeof localStorage&&this.options.localStorage){var e=this.options.localStorage.prefix+t;return wi(localStorage.getItem(e))}}},{key:"removeLocalStorage",value:function(t){if("undefined"!=typeof localStorage&&this.options.localStorage){var e=this.options.localStorage.prefix+t;localStorage.removeItem(e)}}},{key:"getCookies",value:function(){var t=document.cookie;return Object(Vo.parse)(t||"")||{}}},{key:"setCookie",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.options.cookie){var n=this.options.cookie.prefix+t,r=Object.assign({},this.options.cookie.options,o),c=xi(e);fi(e)&&(r.maxAge=-1),"number"==typeof r.expires&&(r.expires=new Date(1*new Date+864e5*r.expires));var l=Object(Vo.serialize)(n,c,r);return document.cookie=l,e}}},{key:"getCookie",value:function(t){if(this.options.cookie){var e=this.options.cookie.prefix+t,o=this.getCookies();
1return wi(o[e]?decodeURIComponent(o[e]):void 0)}}},{key:"removeCookie",value:function(t,e){this.setCookie(t,void 0,e)}}])}();function Ti(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return Pi(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Pi(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function Pi(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var Ii=function(){return Object(_i.a)(function t(e,o){Object(hi.a)(this,t),this.ctx=e,this.options=o,this.strategies={},this._errorListeners=[],this._redirectListeners=[],o.initialState={user:null,loggedIn:!1};var n=new Si(e,o);this.$storage=n,this.$state=n.state},[{key:"init",value:(t=Object(n.a)(regeneratorRuntime.mark(function t(){var e,o=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.resetOnError&&this.onError(function(){var t;("function"!=typeof o.options.resetOnError||(t=o.options).resetOnError.apply(t,arguments))&&o.reset()}),this.$storage.syncUniversal("strategy",this.options.defaultStrategy),this.strategy){t.next=1;break}if(this.$storage.setUniversal("strategy",this.options.defaultStrategy),this.strategy){t.next=1;break}return t.abrupt("return",Promise.resolve());case 1:return t.prev=1,t.next=2,this.mounted();case 2:t.next=4;break;case 3:t.prev=3,e=t.catch(1),this.callOnError(e);case 4:return t.prev=4,this.options.watchLoggedIn&&this.$storage.watchState("loggedIn",function(t){yi(o.ctx.route,"auth",!1)||o.redirect(t?"home":"logout")}),t.finish(4);case 5:case"end":return t.stop()}},t,this,[[1,3,4,5]])})),function(){return t.apply(this,arguments)})},{key:"state",get:function(){return this._state_warn_shown||(this._state_warn_shown=!0,console.warn("[AUTH] $auth.state is deprecated. Please use $auth.$state or top level props like $auth.loggedIn")),this.$state}},{key:"getState",value:function(t){return this._get_state_warn_shown||(this._get_state_warn_shown=!0,console.warn("[AUTH] $auth.getState is deprecated. Please use $auth.$storage.getState() or top level props like $auth.loggedIn")),this.$storage.getState(t)}},{key:"strategy",get:function(){return this.strategies[this.$state.strategy]}},{key:"registerStrategy",value:function(t,e){this.strategies[t]=e}},{key:"setStrategy",value:function(t){return t===this.$storage.getUniversal("strategy")?Promise.resolve():(this.$storage.setUniversal("strategy",t),this.mounted())}},{key:"mounted",value:function(){var t,e=this;return this.strategy.mounted?Promise.resolve((t=this.strategy).mounted.apply(t,arguments)).catch(function(t){return e.callOnError(t,{method:"mounted"}),Promise.reject(t)}):this.fetchUserOnce()}},{key:"loginWith",value:function(t){for(var e=this,o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return this.setStrategy(t).then(function(){return e.login.apply(e,n)})}},{key:"login",value:function(){var t,e=this;return this.strategy.login?this.wrapLogin((t=this.strategy).login.apply(t,arguments)).catch(function(t){return e.callOnError(t,{method:"login"}),Promise.reject(t)}):Promise.resolve()}},{key:"fetchUser",value:function(){var t,e=this;return this.strategy.fetchUser?Promise.resolve((t=this.strategy).fetchUser.apply(t,arguments)).catch(function(t){return e.callOnError(t,{method:"fetchUser"}),Promise.reject(t)}):Promise.resolve()}},{key:"logout",value:function(){var t,e=this;return this.strategy.logout?Promise.resolve((t=this.strategy).logout.apply(t,arguments)).catch(function(t){return e.callOnError(t,{method:"logout"}),Promise.reject(t)}):(this.reset(),Promise.resolve())}},{key:"setUserToken",value:function(t){var e=this;return this.strategy.setUserToken?Promise.resolve(this.strategy.setUserToken(t)).catch(function(t){return e.callOnError(t,{method:"setUserToken"}),Promise.reject(t)}):(this.setToken(this.strategy.name,t),Promise.resolve())}},{key:"reset",value:function(){var t,e=this;return this.strategy.reset?Promise.resolve((t=this.strategy).reset.apply(t,arguments)).catch(function(t){return e.callOnError(t,{method:"reset"}),Promise.reject(t)}):(this.setUser(!1),this.setToken(this.$state.strategy,!1),this.setRefreshToken(this.$state.strategy,!1),Promise.resolve())}},{key:"getToken",value:function(t){var e=this.options.token.prefix+t;return this.$storage.getUniversal(e)}},{key:"setToken",value:function(t,e){var o=this.options.token.prefix+t;return this.$storage.setUniversal(o,e)}},{key:"syncToken",value:function(t){var e=this.options.token.prefix+t;return this.$storage.syncUniversal(e)}},{key:"getRefreshToken",value:function(t){var e=this.options.refresh_token.prefix+t;return this.$storage.getUniversal(e)}},{key:"setRefreshToken",value:function(t,e){var o=this.options.refresh_token.prefix+t;return this.$storage.setUniversal(o,e)}},{key:"syncRefreshToken",value:function(t){var e=this.options.refresh_token.prefix+t;return this.$storage.syncUniversal(e)}},{key:"user",get:function(){return this.$state.user}},{key:"loggedIn",get:function(){return this.$state.loggedIn}},{key:"fetchUserOnce",value:function(){return this.$state.user?Promise.resolve():this.fetchUser.apply(this,arguments)}},{key:"setUser",value:function(t){this.$storage.setState("user",t),this.$storage.setState("loggedIn",Boolean(t))}},{key:"busy",get:function(){return this.$storage.getState("busy")}},{key:"request",value:function(t,e,o){var n=this,r="object"===Object($o.a)(e)?Object.assign({},e,t):t;if(this.ctx.app.$axios)return this.ctx.app.$axios.request(r).then(function(t){var e=r.propertyName?Ci(t.data,r.propertyName):t.data;return o?{response:t,result:e}:e}).catch(function(t){return n.callOnError(t,{method:"request"}),Promise.reject(t)});console.error("[AUTH] add the @nuxtjs/axios module to nuxt.config file")}},{key:"requestWith",value:function(t,e,o,n){var r=this.getToken(t),c=Object.assign({},o,e),l=this.strategies[t].options.tokenName||"Authorization";return c.headers||(c.headers={}),!c.headers[l]&&bi(r)&&r&&(c.headers[l]=r),this.request(c,!1,n)}},{key:"wrapLogin",value:function(t){var e=this;return this.$storage.setState("busy",!0),this.error=null,Promise.resolve(t).then(function(t){return e.$storage.setState("busy",!1),t}).catch(function(t){return e.$storage.setState("busy",!1),Promise.reject(t)})}},{key:"onError",value:function(t){this._errorListeners.push(t)}},{key:"callOnError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.error=t;var o,n=Ti(this._errorListeners);try{for(n.s();!(o=n.n()).done;){(0,o.value)(t,e)}}catch(t){n.e(t)}finally{n.f()}}},{key:"redirect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.options.redirect){var o=this.options.fullPathRedirect?this.ctx.route.fullPath:this.ctx.route.path,n=this.options.redirect[t];if(n){if(this.options.rewriteRedirects&&("login"===t&&gi(o)&&!vi(n,o)&&this.$storage.setUniversal("redirect",o),"home"===t)){var r=this.$storage.getUniversal("redirect");this.$storage.setUniversal("redirect",null),gi(r)&&(n=r)}n=this.callOnRedirect(n,o)||n,vi(n,o)||(e?window.location.replace(n):this.ctx.redirect(n,this.ctx.query))}}}},{key:"onRedirect",value:function(t){this._redirectListeners.push(t)}},{key:"callOnRedirect",value:function(t,e){var o,n=Ti(this._redirectListeners);try{for(n.s();!(o=n.n()).done;){t=(0,o.value)(t,e)||t}}catch(t){n.e(t)}finally{n.f()}return t}},{key:"hasScope",value:function(t){var e=this.$state.user&&Ci(this.$state.user,this.options.scopeKey);return!!e&&(Array.isArray(e)?e.includes(t):Boolean(Ci(e,t)))}}]);var t}();pn.a.auth=function(t){if(!yi(t.route,"auth",!1)){var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],t.matched.map(function(t,o){return Object.keys(t.components).map(function(n){return e&&e.push(o),t.components[n]})}))}(t.route,[]);if(e.length){var o=t.$auth.options.redirect,n=o.login,r=o.callback,c=yi(t.route,"auth","guest"),l=function(e){return ki(t.route.path)===ki(e)};t.$auth.$state.loggedIn?(!n||l(n)||c)&&t.$auth.redirect("home"):c||r&&l(r)||t.$auth.redirect("login")}}};var Ai=function(){return Object(_i.a)(function t(e,o){Object(hi.a)(this,t),this.$auth=e,this.name=o._name,this.options=Object.assign({},Fi,o)},[{key:"_setToken",value:function(t){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,t)}},{key:"_clearToken",value:function(){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,!1)}},{key:"mounted",value:function(){if(this.options.tokenRequired){var t=this.$auth.syncToken(this.name);this._setToken(t)}return this.$auth.fetchUserOnce()}},{key:"login",value:(c=Object(n.a)(regeneratorRuntime.mark(function t(e){var o,n,r,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.endpoints.login){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,this.$auth.reset();case 2:return t.next=3,this.$auth.request(e,this.options.endpoints.login,!0);case 3:if(o=t.sent,n=o.response,r=o.result,this.options.tokenRequired&&(c=this.options.tokenType?this.options.tokenType+" "+r:r,this.$auth.setToken(this.name,c),this._setToken(c)),!this.options.autoFetchUser){t.next=4;break}return t.next=4,this.fetchUser();case 4:return t.abrupt("return",n);case 5:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)})},{key:"setUserToken",value:(r=Object(n.a)(regeneratorRuntime.mark(function t(e){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=this.options.tokenType?this.options.tokenType+" "+e:e,this.$auth.setToken(this.name,o),this._setToken(o),t.abrupt("return",this.fetchUser());case 1:case"end":return t.stop()}},t,this)})),function(t){return r.apply(this,arguments)})},{key:"fetchUser",value:(o=Object(n.a)(regeneratorRuntime.mark(function t(e){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.tokenRequired||this.$auth.getToken(this.name)){t.next=1;break}return t.abrupt("return");case 1:if(this.options.endpoints.user){t.next=2;break}return this.$auth.setUser({}),t.abrupt("return");case 2:return t.next=3,this.$auth.requestWith(this.name,e,this.options.endpoints.user);case 3:o=t.sent,this.$auth.setUser(o);case 4:case"end":return t.stop()}},t,this)})),function(t){return o.apply(this,arguments)})},{key:"logout",value:(e=Object(n.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.endpoints.logout){t.next=1;break}return t.next=1,this.$auth.requestWith(this.name,e,this.options.endpoints.logout).catch(function(){});case 1:return t.abrupt("return",this.$auth.reset());case 2:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"reset",value:(t=Object(n.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.options.tokenRequired&&this._clearToken(),this.$auth.setUser(!1),this.$auth.setToken(this.name,!1),this.$auth.setRefreshToken(this.name,!1),t.abrupt("return",Promise.resolve());case 1:case"end":return t.stop()}},t,this)})),function(){return t.apply(this,arguments)})}]);var t,e,o,r,c}(),Fi={tokenRequired:!0,tokenType:"Bearer",globalToken:!0,tokenName:"Authorization",autoFetchUser:!0},ji=function(t,e){var o=new Ii(t,{resetOnError:!1,scopeKey:"scope",rewriteRedirects:!1,fullPathRedirect:!1,watchLoggedIn:!0,redirect:{login:"/auth/login",logout:"/auth/login",home:"/accounts/connect",callback:"/login"},vuex:{namespace:"auth"}
1,cookie:{prefix:"auth.",options:{path:"/"}},localStorage:{prefix:"auth."},token:{prefix:"_token."},refresh_token:{prefix:"_refresh_token."},defaultStrategy:"local"});return o.registerStrategy("local",new Ai(o,{endpoints:{login:{url:"/auth/login",method:"post",propertyName:"token"},logout:{url:"/auth/logout",method:"post"},user:{url:"/users/me",method:"get",propertyName:"user"}},tokenRequired:!0,tokenType:"Bearer",globalToken:!0,autoFetchUser:!1,_name:"local"})),e("auth",o),t.$auth=o,o.init().catch(function(t){console.error("[ERROR] [AUTH]",t)})},Oi=o(421),$i=o(424);var Li=function(t,e){var o=t.$auth,n=t.store,r=t.env;if(!window||window.location.hostname.includes(r.projectName)){var c=function(t){var e;if(t.loggedIn&&null!==(e=t.user)&&void 0!==e&&e.id)return"user:".concat(t.user.id);var o=localStorage.getItem("guest_client_id");return o||(o="guest:".concat(Object(Oi.v4)()),localStorage.setItem("guest_client_id",o)),o}(o),l=new $i.a("".concat(r.domainURL,"/socket.io/socket.io.js"),{autoConnect:!0,query:{user_id:c}}).socket("/test");n.commit("socket.io/isSocketAvailable",!1),l.on("greetings",function(data){console.log("Socket is ready."),n.commit("socket.io/isSocketAvailable",!0)}),e("socket",l)}},Ri=function(t){var e=t.$axios,o=t.app,n=t.env;e.onRequest(function(t){t.url.includes("posts/downloaded")||("head"!==t.method?(t.headers.common["h-source-ids"]=n.config.source_ids.join(","),t.headers.common["h-source-ids-for-parsing"]=n.config.source_ids_for_parsing.join(","),t.headers.common["h-navigation"]=n.config.navigation.join(","),t.headers.common["h-lang"]=o.context.i18n.locale.toLocaleUpperCase().toLowerCase(),t.headers.common["h-default-lang"]=n.config.default_lang,t.headers.common["h-vk-private"]=n.config.vk_private?1:0,t.headers.common["h-vk-extended"]=n.config.vk_extended?1:0,t.headers.common["h-redirect-domain"]=n.domainURL,t.headers.common["h-plan-type"]=n.config.plan_type):console.log("head request!"))})};function Bi(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Di(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Bi(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Bi(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}c.default.component(h.a.name,h.a),c.default.component(f.a.name,Di(Di({},f.a),{},{render:function(t,e){return f.a._warned||(f.a._warned=!0,console.warn("<no-ssr> has been deprecated and will be removed in Nuxt 3, please use <client-only> instead")),f.a.render(t,e)}})),c.default.component(Ts.name,Ts),c.default.component("NChild",Ts),c.default.component($s.name,$s),Object.defineProperty(c.default.prototype,"$nuxt",{get:function(){var t=this.$root?this.$root.$options.$nuxt:null;return t||"undefined"==typeof window?t:window.$nuxt},configurable:!0}),c.default.use(d.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var Ni={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"},Mi=l.a.Store.prototype.registerModule;function Vi(path,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Array.isArray(path)?!!path.reduce(function(t,path){return t&&t[path]},this.state):path in this.state;return Mi.call(this,path,t,Di({preserveState:o},e))}function Ui(t){return Ei.apply(this,arguments)}function Ei(){return Ei=Object(n.a)(regeneratorRuntime.mark(function t(e){var o,r,l,d,m,h,path,_,f=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return _=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));d[t="$"+t]=e,d.context[t]||(d.context[t]=e),r[t]=d[t];var o="__nuxt_"+t+"_installed__";c.default[o]||(c.default[o]=!0,c.default.use(function(){Object.prototype.hasOwnProperty.call(c.default.prototype,t)||Object.defineProperty(c.default.prototype,t,{get:function(){return this.$root.$options[t]}})}))},o=f.length>1&&void 0!==f[1]?f[1]:{},r=xo(e),t.next=1,Ss(0,o);
1case 1:return l=t.sent,r.$router=l,r.registerModule=Vi,d=Di({head:{script:[],title:"hooppy",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.svg"}],style:[]},store:r,router:l,nuxt:{defaultTransition:Ni,transitions:[Ni],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map(function(t){return t=t?"string"==typeof t?Object.assign({},Ni,{name:t}):Object.assign({},Ni,t):Ni}),this.$options.nuxt.transitions=t,t},err:null,errPageReady:!1,dateErr:null,error:function(t){t=t||null,d.context._errored=Boolean(t),t=t?Object(k.p)(t):null;var o=d.nuxt;return this&&(o=this.nuxt||this.$options.nuxt),o.dateErr=Date.now(),o.err=t,o.errPageReady=!1,e&&(e.nuxt.error=t),t}}},go),r.app=d,m=e?e.next:function(t){return d.router.push(t)},e?h=l.resolve(e.url).route:(path=Object(k.f)(l.options.base,l.options.mode),h=l.resolve(path).route),t.next=2,Object(k.t)(d,{store:r,route:h,next:m,error:d.nuxt.error.bind(d),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,beforeSerializeFns:e?e.beforeSerializeFns:void 0,ssrContext:e});case 2:_("config",o),window.__NUXT__&&window.__NUXT__.state&&r.replaceState(window.__NUXT__.state),t.next=3;break;case 3:t.next=4;break;case 4:t.next=5;break;case 5:t.next=6;break;case 6:return t.next=7,Tn(d.context);case 7:if("function"!=typeof Bn){t.next=8;break}return t.next=8,Bn(d.context,_);case 8:return t.next=9,Qn(d.context,_);case 9:return t.next=10,Zn(d.context,_);case 10:t.next=11;break;case 11:t.next=12;break;case 12:t.next=13;break;case 13:t.next=14;break;case 14:return t.next=15,ji(d.context,_);case 15:return t.next=16,Li(d.context,_);case 16:return t.next=17,Ri(d.context);case 17:return t.next=18,new Promise(function(t,e){if(!l.resolve(d.context.route.fullPath).route.matched.length)return t();l.replace(d.context.route.fullPath,t,function(o){if(!o._isRouter)return e(o);if(2!==o.type)return t();var r=l.afterEach(function(){var e=Object(n.a)(regeneratorRuntime.mark(function e(o,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Object(k.j)(o);case 1:d.context.route=e.sent,d.context.params=o.params||{},d.context.query=o.query||{},r(),t();case 2:case"end":return e.stop()}},e)}));return function(t,o){return e.apply(this,arguments)}}())})});case 18:return t.abrupt("return",{store:r,app:d,router:l});case 19:case"end":return t.stop()}},t)})),Ei.apply(this,arguments)}},function(t,e,o){"use strict";o(6),o(39),o(43),o(44),o(31),o(22),o(15),o(1),o(20),o(29),o(48),o(36),o(32);function n(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return r(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,c=function(){};return{s:c,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw l}}}}function r(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}e.a={computed:{socialNetworksComputed:function(){var t,e=[],o=n(this.socialNetworks);try{for(o.s();!(t=o.n()).done;){var r=t.value;this.config.source_ids.includes(r.source_id)&&r.can_publishing&&(this.formState.publicationWhereType&&1===parseInt(String(this.formState.publicationWhereType))||this.publicationWhereType&&1===parseInt(String(this.publicationWhereType))||r.have_photo_albums)&&e.push(this.getSocialNetworkInfo(r))}}catch(t){o.e(t)}finally{o.f()}return e}}}},,,,function(t,e,o){"use strict";o(66);var n={model:{prop:"date",event:"change"},props:{date:{type:String,default:""},placeholder:{type:String,default:""},isShowClearBtn:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}
1,inputWidth:{type:Number,default:0}},data:function(){return{isReadyForDatePicker:!1,attrs:[{key:"today",highlight:"red",dates:new Date}]}},mounted:function(){this.isReadyForDatePicker=!0},computed:{inputStyle:function(){return this.inputWidth?"width: "+this.inputWidth+"px":""},dateLocal:{get:function(){if(this.date){var t=this.date.split(".");if(3===t.length)return new Date(parseInt(t[2]),parseInt(t[1])-1,parseInt(t[0]))}return null},set:function(t){var e="";t&&(e=this.getDayOrMonth(t.getDate())+"."+this.getDayOrMonth(t.getMonth()+1)+"."+t.getFullYear()),this.$emit("change",e)}}},methods:{getDayOrMonth:function(t){return t<10?"0"+t:t},clickInput:function(){this.$refs["date-input"].select()}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return t.isReadyForDatePicker?e("v-date-picker",{attrs:{mode:"date","title-position":"left",masks:{input:"DD.MM.YYYY"},popover:{visibility:"focus",placement:"bottom"},attributes:t.attrs},scopedSlots:t._u([{key:"default",fn:function(o){var n=o.inputValue,r=o.inputEvents;return[e("div",{staticClass:"position-relative",style:t.inputStyle},[e("input",t._g({ref:"date-input",staticClass:"form-control form-control-sm w-100",attrs:{type:"text",placeholder:t.placeholder||t.$t("form").set_date_placeholder,disabled:t.disabled},domProps:{value:n},on:{click:t.clickInput}},r)),t._v(" "),t.isShowClearBtn&&t.dateLocal&&!t.disabled?e("div",{staticClass:"btn btn-sm d-flex align-items-center clear-date-btn",on:{click:function(e){t.dateLocal=""}}},[e("fa",{attrs:{icon:["fas","ban"]}})],1):t._e()])]}}],null,!1,1668075838),model:{value:t.dateLocal,callback:function(e){t.dateLocal=e},expression:"dateLocal"}}):e("div",{staticClass:"input-group",style:t.inputStyle},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.dateLocal,expression:"dateLocal"}],staticClass:"form-control form-control-sm w-100",attrs:{type:"text",placeholder:t.placeholder||t.$t("form").set_date_placeholder,disabled:t.disabled},domProps:{value:t.dateLocal},on:{input:function(e){e.target.composing||(t.dateLocal=e.target.value)}}})])},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(4),o(31),o(15),o(8),o(1),o(68);var n=o(0),r=(o(6),o(39),o(43),o(23),o(44),o(28),o(77),o(22),o(9),o(10),o(20),o(29),o(48),o(36),o(7),o(32),o(33)),c=o(292),l=(o(66),{props:{page:Object,sourceId:{type:Number,default:0},pageType:{type:String,default:"page"}},data:function(){return{photo:""}},mounted:function(){var t=this;[3,4,7,10,18,19,29,34].includes(this.sourceId)?this.getPhotoFromUrl(this.page.photo,function(e){t.photo=e}):this.photo=this.page.photo},methods:{unselectPage:function(t){this.$emit("unselect-page",{id:t,type:this.pageType})}}}),d=o(5),m=Object(d.a)(l,function(){var t=this,e=t._self._c;return 7===t.sourceId?e("div",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.page.name,expression:"page.name",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 mt-2 position-relative network-page-selected",attrs:{title:t.page.account.name}},[t.photo?e("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.photo,expression:"photo",arg:"background-image"}],staticClass:"page-selected-inside bg-secondary"}):e("div",{staticClass:"page-selected-inside bg-secondary"}),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm position-absolute network-page-selected-delete-btn",attrs:{title:"Убрать из выбранных"},on:{click:function(e){return e.stopPropagation(),t.unselectPage(t.page.id)}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)]):e("div",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.page.name,expression:"page.name",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 mt-2 position-relative network-page-selected",attrs:{title:t.page.account.name}},[t.photo?e("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.photo,expression:"photo",arg:"background-image"}],staticClass:"d-flex justify-content-center align-items-center bg-secondary page-selected-photo"}):e("div",{staticClass:"d-flex justify-content-center align-items-center bg-secondary page-selected-photo"},[e("fa",{attrs:{icon:["fas","user"]}})],1),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm position-absolute network-page-selected-delete-btn",attrs:{title:"Убрать из выбранных"},on:{click:function(e){return e.stopPropagation(),t.unselectPage(t.page.id)}}},[e("fa",{attrs:{icon:["fas","times"]}})],1),t._v(" "),"album"===t.pageType?e("div",{staticClass:"btn btn-dark btn-sm position-absolute network-page-selected-album-mark"},[t._v("\n    А\n  ")]):t._e()])},[],!1,null,null,null).exports,h=o(87),_=o(164),f=o(56),v=o(51),y=o(12);function k(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function x(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?k(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function w(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return C(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?C(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function C(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var S={components:{FormModalHeader:r.default,FormSocialPage:c.a,FormSocialSelectedPage:m,FormInput:h.a,FormRadioButtons:_.default,FormGroupSelect:f.a,FormSelect:v.default},props:{network:Object,socialPagesByAccounts:Array,socialAlbumsByPages:Array,selectedPagesBySourceIds:Object,selectedAlbumsBySourceIds:Object,withoutAlbums:Boolean,postHasVideo:Boolean},data:function(){return{publicationWhereType:1,selectedPagesIds:[],isInModalMode:!1,filterBy:"",albumsSearch:{filter:{accountId:0,pageId:0,albumId:0},albums:[],albumsSelected:[],albumsObjectsType:"photos"}}},computed:{albumsFiltered:function(){var t=this;return this.albumsSearch.albums.filter(function(e){return!t.albumsSelectedIds.includes(parseInt(e.id))})},albumsSelectedIds:function(){return this.albumsSearch.albumsSelected.map(function(t){return parseInt(t.id)})},accountSelected:function(){var t=this;return this.albumsSearch.filter.accountId?this.socialPagesByAccounts.filter(function(e){return e.account.id===t.albumsSearch.filter.accountId})[0].account:null},pageSelected:function(){var t=this;return this.albumsSearch.filter.accountId&&this.albumsSearch.filter.pageId?this.socialPagesByAccounts.filter(function(e){return e.account.id===t.albumsSearch.filter.accountId})[0].pages.filter(function(e){return e.id===t.albumsSearch.filter.pageId})[0]:null},albumsAccounts:function(){var t=this;if(this.socialPagesByAccounts.length){var e=this.socialPagesByAccounts.filter(function(e){return parseInt(e.account.source_id)===parseInt(t.network.source_id)}).map(function(t){return{id:t.account.id,value:t.account.name}});if(e.length)return[{id:0,value:this.$t("form").social_pages.accounts_default_value}].concat(e)}return[]},albumsAccountsPages:function(){var t=this;if(this.albumsSearch.filter.accountId){var e=this.socialPagesByAccounts.filter(function(e){return e.account.id===t.albumsSearch.filter.accountId})[0].pages.map(function(t){return{id:t.id,value:t.name}});if(e.length)return[{id:0,value:this.$t("form").social_pages.pages_default_value}].concat(e)}return[]},noItemsTextForPages:function(){return this.albumsSearch.filter.accountId?this.$t("form").social_pages.pages_no_items:this.$t("form").social_pages.need_account_to_select},noItemsTextForAlbums:function(){return this.albumsSearch.filter.pageId?this.$t("form").social_pages.albums_no_items:this.$t("form").social_pages.need_page_to_select},isPagesForAnyExists:function(){for(var i in this.socialPagesByAccounts)if(parseInt(this.socialPagesByAccounts[i].account.source_id)===parseInt(this.network.source_id)&&this.socialPagesByAccounts[i].pages.length)return!0;return!1},accountsCount:function(){var t=0;for(var i in this.socialPagesByAccounts)parseInt(this.socialPagesByAccounts[i].account.source_id)===parseInt(this.network.source_id)&&t++;return t},pagesSelected:function(){var t,e=[];if(this.selectedPagesBySourceIds[this.network.source_id])for(var i in this.socialPagesByAccounts)if(parseInt(this.socialPagesByAccounts[i].account.source_id)===parseInt(this.network.source_id))for(var o in this.selectedPagesBySourceIds[this.network.source_id])for(var n in this.socialPagesByAccounts[i].pages)if(this.socialPagesByAccounts[i].pages[n].id===this.selectedPagesBySourceIds[this.network.source_id][o]){(t=Object(y.cloneDeep)(this.socialPagesByAccounts[i].pages[n])).account=this.socialPagesByAccounts[i].account,e.push(t);break}return e},pagesModal:function(){var t=[];for(var i in this.socialPagesByAccounts)if(parseInt(this.socialPagesByAccounts[i].account.source_id)===parseInt(this.network.source_id))for(var e in this.socialPagesByAccounts[i].pages)this.selectedPagesIds.indexOf(this.socialPagesByAccounts[i].pages[e].id)<0&&(!this.filterBy||this.socialPagesByAccounts[i].pages[e].name.toLowerCase().indexOf(this.filterBy.toLowerCase())>=0)&&t.push(this.socialPagesByAccounts[i].pages[e]);return t},pagesSelectedModal:function(){var t=[];for(var i in this.socialPagesByAccounts)if(parseInt(this.socialPagesByAccounts[i].account.source_id)===parseInt(this.network.source_id))for(var e in this.selectedPagesIds)for(var o in this.socialPagesByAccounts[i].pages)if(parseInt(this.socialPagesByAccounts[i].pages[o].id)===parseInt(this.selectedPagesIds[e])){t.push(this.socialPagesByAccounts[i].pages[o]);break}return t},pagesByAccountsModal:function(){var t={};for(var i in this.socialPagesByAccounts)if(parseInt(this.socialPagesByAccounts[i].account.source_id)===parseInt(this.network.source_id))for(var e in this.socialPagesByAccounts[i].pages)this.selectedPagesIds.indexOf(this.socialPagesByAccounts[i].pages[e].id)<0&&(!this.filterBy||this.socialPagesByAccounts[i].pages[e].name.toLowerCase().indexOf(this.filterBy.toLowerCase())>=0)&&this.fillPagesByAccounts(t,this.socialPagesByAccounts[i].account,this.socialPagesByAccounts[i].pages[e]);return t},pagesByAccountsSelectedModal:function(){var t={};for(var i in this.socialPagesByAccounts)if(parseInt(this.socialPagesByAccounts[i].account.source_id)===parseInt(this.network.source_id))for(var e in this.selectedPagesIds)for(var o in this.socialPagesByAccounts[i].pages)if(parseInt(this.socialPagesByAccounts[i].pages[o].id)===parseInt(this.selectedPagesIds[e])){this.fillPagesByAccounts(t,this.socialPagesByAccounts[i].account,this.socialPagesByAccounts[i].pages[o]);break}return t},albumsSelected:function(){var t,e=[];if(!this.withoutAlbums&&this.selectedAlbumsBySourceIds[this.network.source_id])for(var i in this.socialAlbumsByPages)if(parseInt(this.socialAlbumsByPages[i].account.source_id)===parseInt(this.network.source_id))for(var o in this.selectedAlbumsBySourceIds[this.network.source_id])for(var n in this.socialAlbumsByPages[i].albums)if(this.socialAlbumsByPages[i].albums[n].id===this.selectedAlbumsBySourceIds[this.network.source_id][o].id){(t=Object(y.cloneDeep)(this.socialAlbumsByPages[i].albums[n])
1).account=this.socialAlbumsByPages[i].account,t.page=this.socialAlbumsByPages[i].page,e.push(t);break}return e},userId:function(){return this.$store.getters["settings/id"]},pagesStateKey:function(){return"posts.pages.form_state["+this.userId+"]"}},mounted:function(){var t=this;if(this.network.have_photo_albums&&localStorage.getItem(this.pagesStateKey)){var e,o,n,r=JSON.parse(localStorage.getItem(this.pagesStateKey));this.publicationWhereType=null!==(e=r.publication_where_type)&&void 0!==e?e:1,this.albumsSearch.filter.accountId=null!==(o=r.account_id)&&void 0!==o?o:0,this.albumsSearch.filter.pageId=null!==(n=r.page_id)&&void 0!==n?n:0}this.$nextTick(function(){t.setWatchers()})},methods:{setSelectedAlbums:function(){this.albumsSearch.albumsSelected=this.albumsSelected.map(function(t){return{id:t.id,value:t.name,photo:t.photo,link:t.link,account:t.account,page:t.page}}),this.setDefaultAlbumId()},getAlbumsIfNeeded:function(){2===this.publicationWhereType&&this.albumsSearch.filter.accountId&&this.albumsSearch.filter.pageId&&!this.albumsSearch.albums.length&&this.getAlbums()},setWatchers:function(){var t=this;this.$watch("publicationWhereType",function(){t.saveState("publicationWhereType"),t.getAlbumsIfNeeded()}),this.$watch("albumsSearch.filter.accountId",function(){t.saveState("accountId"),t.albumsSearch.filter.pageId=0}),this.$watch("albumsSearch.filter.pageId",function(){t.saveState("pageId"),t.getAlbums()})},saveState:function(){var t=this;this.$nextTick(function(){localStorage.setItem(t.pagesStateKey,JSON.stringify({publication_where_type:t.publicationWhereType,source_id:t.network.source_id,account_id:t.albumsSearch.filter.accountId,page_id:t.albumsSearch.filter.pageId,objects_type:t.albumsSearch.albumsObjectsType}))})},addAlbum:function(){var t=this;if(this.albumsSearch.filter.albumId){var e,o=w(this.albumsSearch.albums);try{for(o.s();!(e=o.n()).done;){var n=e.value;if(n.id===this.albumsSearch.filter.albumId){this.albumsSearch.albumsSelected.push(x({},n));break}}}catch(t){o.e(t)}finally{o.f()}this.$nextTick(function(){t.setDefaultAlbumId()})}},getAlbums:function(){var t=this;this.albumsSearch.filter.albumId=0,this.albumsSearch.albums=[],this.albumsSearch.filter.pageId&&(this.toggleLoading(!0),this.sendRequest("get","/users/accounts/pages/albums/json",{params:{source_id:this.network.source_id,account_id:this.albumsSearch.filter.accountId,page_id:this.albumsSearch.filter.pageId,objects_type:this.albumsSearch.albumsObjectsType}},function(e){var data=e.data;t.toggleLoading(!1),t.albumsSearch.albums=data.albums_saved.map(function(e){return{id:e.id,value:e.social_album_name,photo:e.social_album_photo,link:e.social_album_link,account:t.albumsAccounts.filter(function(e){return e.id===t.albumsSearch.filter.accountId})[0],page:t.albumsAccountsPages.filter(function(e){return e.id===t.albumsSearch.filter.pageId})[0]}}),t.$nextTick(function(){t.setDefaultAlbumId(),t.updateSocialAlbumsByPages(data.albums_saved)})},function(){t.toggleLoading(!1)}))},updateSocialAlbumsByPages:function(t){var e=this,o={account:this.accountSelected,page:this.pageSelected,albums:t.map(function(t){return{id:t.id,link:t.social_album_link,name:t.social_album_name,photo:t.social_album_photo,social_id:t.social_album_id,type:t.social_album_type}})},n=Object(y.cloneDeep)(this.socialAlbumsByPages.filter(function(t){return parseInt(t.page.id)!==parseInt(e.albumsSearch.filter.pageId)}));o.page&&n.push(o),this.$emit("update-social-albums-by-pages",n)},setDefaultAlbumId:function(){var t=this;this.$nextTick(function(){t.albumsSearch.filter.albumId=t.albumsFiltered.length?t.albumsFiltered[0].id:0})},fillPagesByAccounts:function(t,e,o){t[e.id]||(t[e.id]={name:e.name,pages:[]}),t[e.id].pages.push(o)},unselectPage:function(t){var e=t.id,o=t.type;if(this.isInModalMode)"page"===o?this.deleteSelectedPageId(e,this.selectedPagesIds):this.deleteSelectedAlbum(e);else if("page"===o){var n=Object(y.cloneDeep)(this.selectedPagesBySourceIds),r=n[this.network.source_id].indexOf(e);r>-1&&(n[this.network.source_id].splice(r,1),n[this.network.source_id].length||delete n[this.network.source_id]),this.$emit("update-selected-pages-by-source-ids",n)}else{var c=Object(y.cloneDeep)(this.selectedAlbumsBySourceIds);c[this.network.source_id]=c[this.network.source_id].filter(function(t){return parseInt(t.id)!==parseInt(e)}),c[this.network.source_id].length||delete c[this.network.source_id],this.$emit("update-selected-albums-by-source-ids",c)}},deleteSelectedAlbum:function(t){this.albumsSearch.albumsSelected=this.albumsSearch.albumsSelected.filter(function(e){return e.id!==t}),this.setDefaultAlbumId()},deleteSelectedPageId:function(t,e){var o=e.indexOf(t);o>
1-1&&e.splice(o,1)},selectPage:function(t){this.selectedPagesIds.push(t)},openPagesModal:function(){this.network.have_photo_albums||(this.publicationWhereType=1),this.$refs["pages-modal"].show(),this.isInModalMode=!0,this.selectedPagesIds=this.selectedPagesBySourceIds[this.network.source_id]?Object(y.cloneDeep)(this.selectedPagesBySourceIds[this.network.source_id]):[],this.withoutAlbums||(this.setSelectedAlbums(),this.getAlbumsIfNeeded())},closePagesModal:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs["pages-modal"].hide(),this.isInModalMode=!1,this.selectedPagesIds=[],t&&this.$emit("scroll-to-pages",this.network.source_id)},apply:function(){var t=Object(y.cloneDeep)(this.selectedPagesBySourceIds),e=Object(y.cloneDeep)(this.selectedAlbumsBySourceIds),o=!1;if(this.selectedPagesIds.length?(t[this.network.source_id]&&t[this.network.source_id].length||(o=!0),t[this.network.source_id]=Object(y.cloneDeep)(this.selectedPagesIds)):t[this.network.source_id]&&delete t[this.network.source_id],this.$emit("update-selected-pages-by-source-ids",t),!this.withoutAlbums){if(this.albumsSearch.albumsSelected.length){e[this.network.source_id]&&e[this.network.source_id].length||(o=!0),e[this.network.source_id]=[];var n,r=w(this.albumsSearch.albumsSelected);try{for(r.s();!(n=r.n()).done;){var c=n.value;e[this.network.source_id].push({id:c.id,page_id:c.page.id})}}catch(t){r.e(t)}finally{r.f()}}else e[this.network.source_id]&&delete e[this.network.source_id];this.$emit("update-selected-albums-by-source-ids",e)}this.closePagesModal(o)}}},T=S,P=Object(d.a)(T,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-flex align-items-center form-label"},[e("span",[t._v("\n      "+t._s(t.network.name)+"\n      "),t.network.form_tip_name?e("span",{staticClass:"text-secondary"},[t._v("\n        "+t._s(t.network.form_tip_name)+"\n      ")]):t._e()])]),t._v(" "),14===t.network.source_id&&t.postHasVideo?e("div",{staticClass:"alert alert-warning text-12 p-2 mb-2 mt-n1",domProps:{innerHTML:t._s(t.$t("form").social_pages.tiktok_publish_mention)}}):t._e(),t._v(" "),e("div",{staticClass:"mb-2 mt-n2 ms-n2 d-flex flex-wrap network-pages-selected"},[e("div",{staticClass:"btn btn-light p-0 ms-2 mt-2 network-page-select-btn",on:{click:t.openPagesModal}},[e("fa",{attrs:{icon:["fas","plus"]}})],1),t._v(" "),t._l(t.pagesSelected,function(o){return e("FormSocialSelectedPage",{key:o.id,attrs:{page:o,"source-id":t.network.source_id},on:{"unselect-page":t.unselectPage}})}),t._v(" "),t._l(t.albumsSelected,function(o){return e("FormSocialSelectedPage",{key:o.id,attrs:{page:o,"page-type":"album","source-id":t.network.source_id},on:{"unselect-page":t.unselectPage}})})],2),t._v(" "),e("b-modal",{ref:"pages-modal",attrs:{centered:"","no-fade":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light"},on:{hidden:function(e){t.isInModalMode=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").social_pages.title+" "+t.network.name},on:{"close-form":t.closePagesModal}})]},proxy:!0},{key:"modal-footer",fn:function(){return[e("b-button",{attrs:{size:"sm",variant:"success"},on:{click:t.apply}},[t._v("\n        "+t._s(t.$t("form").social_pages.apply_button)+"\n      ")])]},proxy:!0}])},[t._v(" "),t.isPagesForAnyExists?e("div",{staticClass:"form-wrapper"},[!t.withoutAlbums&&t.network.have_photo_albums?e("div",{staticClass:"d-flex justify-content-center mb-4 bg-light p-3 mx-n3 mt-n3"},[e("FormRadioButtons",{attrs:{name:"publication_where_types",items:t.$t("form").social_pages.publication_where_types},model:{value:t.publicationWhereType,callback:function(e){t.publicationWhereType=e},expression:"publicationWhereType"}})],1):t._e(),t._v(" "),t.withoutAlbums||1===t.publicationWhereType?[e("fieldset",{staticClass:"form-fieldset px-3 mx-n3 border-0"},[e("legend",{staticClass:"w-auto form-fieldset-legend text-secondary",class:t.selectedPagesIds.length?"mb-1":"mb-0"},[t._v("\n            "+t._s(t.$t("form").social_pages.selected_pages)+"\n          ")]),t._v(" "),e("div",{staticClass:"p-2 network-pages"},[t.selectedPagesIds.length?e("div",[[1,2,3,5,6,8,10,17,24,28].includes(t.network.source_id)?t._l(t.pagesByAccountsSelectedModal,function(o){return e("div",[e("div",{staticClass:"px-1 network-account-name"},[e("b",[t._v(t._s(o.name))])]),t._v(" "),t._l(o.pages,function(o){return e("FormSocialPage",{key:o.id,staticClass:"row g-0 align-items-center p-1 network-page",attrs:{page:o,"source-id":t.network.source_id},on:{"click-page":function(e){return t.unselectPage({id:o.id,type:"page"})}}})})],2)}):t._l(t.pagesSelectedModal,function(o){return e("FormSocialPage",{key:o.id,staticClass:"row g-0 align-items-center p-1 network-page",attrs:{page:o,"source-id":t.network.source_id},on:{"click-page":function(e){return t.unselectPage({id:o.id,type:"page"})}}})})],2):e("div",{staticClass:"py-1 no-pages"},[e("b",[t._v(t._s(t.$t("form").social_pages.no_pages_selected))])])])]),t._v(" "),e("fieldset",{staticClass:"form-fieldset px-3 mt-2 mx-n3 pt-3"},[e("legend",{staticClass:"w-auto form-fieldset-legend text-secondary"},[t._v("\n            "+t._s(t.$t("form").social_pages.pages_available)+"\n          ")]),t._v(" "),e("FormInput",{attrs:{placeholder:t.$t("form").social_pages.filter_by_name,"input-class":Object.keys(t.pagesByAccountsModal).length||t.pagesModal.length?"mb-2":"mb-1"},model:{value:t.filterBy,callback:function(e){t.filterBy=e},expression:"filterBy"}}
1),t._v(" "),[1,2,3,5,6,8,10,17,24,28].includes(t.network.source_id)?e("div",{staticClass:"p-2 network-pages"},[Object.keys(t.pagesByAccountsModal).length?t._l(t.pagesByAccountsModal,function(o){return e("div",[e("div",{staticClass:"px-1 network-account-name"},[e("b",[t._v(t._s(o.name))])]),t._v(" "),t._l(o.pages,function(o){return e("FormSocialPage",{key:o.id,staticClass:"row g-0 align-items-center p-1 network-page",attrs:{page:o,"source-id":t.network.source_id},on:{"click-page":function(e){return t.selectPage(o.id)}}})})],2)}):e("div",{staticClass:"py-1 no-pages"},[e("b",[t._v(t._s(t.filterBy?t.$t("form").social_pages.pages_not_found:t.$t("form").social_pages.all_pages_selected))])])],2):e("div",{staticClass:"p-2 network-pages"},[t.pagesModal.length?t._l(t.pagesModal,function(o){return e("FormSocialPage",{key:o.id,staticClass:"row g-0 align-items-center p-1 network-page",attrs:{page:o,"source-id":t.network.source_id},on:{"click-page":function(e){return t.selectPage(o.id)}}})}):e("div",{staticClass:"py-1 no-pages"},[e("b",[t._v(t._s(t.filterBy?t.$t("form").social_pages.pages_not_found:t.$t("form").social_pages.all_pages_selected))])])],2)],1)]:[e("FormGroupSelect",{attrs:{label:t.$t("form").social_pages.accounts_label,name:"accounts",items:t.albumsAccounts,"no-items-text":t.$t("form").social_pages.accounts_no_items},model:{value:t.albumsSearch.filter.accountId,callback:function(e){t.$set(t.albumsSearch.filter,"accountId",e)},expression:"albumsSearch.filter.accountId"}}),t._v(" "),e("FormGroupSelect",{attrs:{label:t.$t("form").social_pages.pages_label,name:"pages",items:t.albumsAccountsPages,"no-items-text":t.noItemsTextForPages},model:{value:t.albumsSearch.filter.pageId,callback:function(e){t.$set(t.albumsSearch.filter,"pageId",e)},expression:"albumsSearch.filter.pageId"}}),t._v(" "),e("FormGroupSelect",{attrs:{label:t.$t("form").social_pages.albums_label,name:"albums",items:t.albumsFiltered,"no-items-text":t.noItemsTextForAlbums},model:{value:t.albumsSearch.filter.albumId,callback:function(e){t.$set(t.albumsSearch.filter,"albumId",e)},expression:"albumsSearch.filter.albumId"}}),t._v(" "),e("div",{staticClass:"d-flex justify-content-center mt-4"},[e("div",{staticClass:"btn btn-secondary btn-sm",class:{disabled:!t.albumsSearch.filter.albumId},on:{click:t.addAlbum}},[t._v("\n            "+t._s(t.$t("form").social_pages.add_album_button)+"\n          ")])]),t._v(" "),t.albumsSearch.albumsSelected.length?e("div",{staticClass:"p-2 mt-4 bg-light rounded my-albums-list"},t._l(t.albumsSearch.albumsSelected,function(o,n){return e("div",{key:o.id,staticClass:"row g-0 p-2 bg-white rounded d-flex justify-content-center align-items-center my-albums-item",class:{"mt-1":n}},[e("div",{staticClass:"col-auto d-flex justify-content-center align-items-center item-photo"},[e("img",{staticClass:"rounded",attrs:{src:o.photo,alt:""}})]),t._v(" "),e("div",{staticClass:"col px-3 item-info"},[e("div",[e("div",{staticClass:"d-flex"},[e("a",{staticClass:"text-14",attrs:{href:o.link,target:"_blank"}},[e("b",[t._v(t._s(t.shortText(o.value,32,t.$t("form").social_pages.no_name)))])])]),t._v(" "),e("div",{staticClass:"text-14 text-secondary mt-1"},[t._v("\n                  "+t._s(t.shortText(o.page.value,40,t.$t("form").social_pages.no_name))+"\n                ")])])]),t._v(" "),e("div",{staticClass:"col-auto"},[e("div",{staticClass:"btn btn-light btn-sm",on:{click:function(e){return t.unselectPage({id:o.id,type:"album"})}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])])}),0):e("div",{staticClass:"text-14 text-secondary text-center bg-light p-4 mt-4 border rounded"},[t._v("\n          "+t._s(t.$t("form").social_pages.no_albums_selected)+"\n        ")])]],2):e("div",{staticClass:"form-wrapper"},[e("div",{staticClass:"text-14 p-3"},[t.accountsCount>1?[t._v("\n          "+t._s(t.$t("form").social_pages.no_accounts_connected.text_1)+" "),e("b",[t._v(t._s(t.network.name))]),t._v(", "+t._s(t.$t("form").social_pages.no_accounts_connected.text_2)+"\n        ")]:[t._v("\n          "+t._s(t.$t("form").social_pages.no_accounts_connected.text_3)+" "),e("b",[t._v(t._s(t.network.name))]),t._v(", "+t._s(t.$t("form").social_pages.no_accounts_connected.text_4)+"\n        ")],t._v(" "),e("br"),e("br"),t._v("\n        "+t._s(t.$t("form").social_pages.no_accounts_connected.text_5)+"\n        "),e("b",[e("nuxt-link",{attrs:{to:t.localePath("/accounts?source_id="+t.network.source_id)}},[t._v(t._s(t.$t("form").social_pages.no_accounts_connected.text_6))])],1),t._v(",\n        "+t._s(t.$t("form").social_pages.no_accounts_connected.text_7)+"\n      ")],2)])])],1)},[],!1,null,null,null);e.a=P.exports},,,,,,,,,function(t,e,o){"use strict";o(31),o(48),o(45),o(40),o(20);var n={mixins:[{methods:{checkInputForNumbers:function(t){var e=String.fromCharCode(t.which);/[0-9]/.test(e)||(t.returnValue=!1,t.preventDefault&&t.preventDefault())}}}],model:{prop:"time",event:"change"},props:{time:{type:String,default:":"}},data:function(){return{isFocused:!1}},computed:{hoursLocal:{get:function(){return this.time.includes(":")?this.time.split(":")[0]:""},set:function(t){this.$emit("change",t+":"+this.minutesLocal)}},minutesLocal:{get:function(){return this.time.includes(":")?this.time.split(":")[1]:""},set:function(t){this.$emit("change",this.hoursLocal+":"+t)}
1}},methods:{onFocus:function(t){""!==t.target.value.trim()&&t.target.select(),this.isFocused=!0},onBlur:function(t,e){this.isFocused=!1,0===t.target.value.trim().length?"hours"===e?this.hoursLocal="":this.minutesLocal="":parseInt(t.target.value)<10&&("hours"===e?this.hoursLocal="0"+parseInt(t.target.value):this.minutesLocal="0"+parseInt(t.target.value))},onKeypress:function(t,e){var o=this;this.checkInputForNumbers(t);var n=t.target.value.length;setTimeout(function(){t.target.selectionStart=t.target.value.length,2===t.target.value.length&&t.target.value.length>n&&("hours"===e?o.$refs["time-minutes"].focus():t.target.blur())},10)}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",{ref:"form-timepicker-wrapper",staticClass:"d-flex justify-content-center align-items-center form-timepicker-wrapper",class:{focused:t.isFocused}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.hoursLocal,expression:"hoursLocal"}],ref:"time-hours",staticClass:"form-control form-control-sm p-0 text-center form-timepicker-input",attrs:{type:"text",maxlength:"2",autocomplete:"off",placeholder:"00"},domProps:{value:t.hoursLocal},on:{focus:t.onFocus,blur:function(e){return t.onBlur(e,"hours")},keypress:function(e){return t.onKeypress(e,"hours")},input:function(e){e.target.composing||(t.hoursLocal=e.target.value)}}}),t._v(" "),e("div",{staticClass:"form-timepicker-colon"},[t._v("0:0")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.minutesLocal,expression:"minutesLocal"}],ref:"time-minutes",staticClass:"form-control form-control-sm p-0 text-center form-timepicker-input",attrs:{type:"text",maxlength:"2",autocomplete:"off",placeholder:"00"},domProps:{value:t.minutesLocal},on:{focus:t.onFocus,blur:function(e){return t.onBlur(e,"minutes")},keypress:function(e){return t.onKeypress(e,"minutes")},input:function(e){e.target.composing||(t.minutesLocal=e.target.value)}}})])},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(6),o(39),o(15);var n={model:{prop:"value",event:"change"},props:["id","name","value","label","tip","description","disabled"],computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-check"},[e("div",{staticClass:"d-flex"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",name:t.name,id:t.id,disabled:t.disabled},domProps:{value:t.currentValue,checked:!!t.currentValue},on:{change:function(e){t.currentValue=e.target.checked}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center ms-2",attrs:{for:t.id}},[t._v("\n      "+t._s(t.label)+"\n      "),t.tip?e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.tip,expression:"tip",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 text-info",attrs:{icon:["fas","question-circle"]}}):t._e()],1)]),t._v(" "),t.currentValue&&t.description?e("div",{staticClass:"alert alert-warning text-14 mt-1 mb-2 py-2 px-2",domProps:{innerHTML:t._s(t.description)}}):t._e()])},[],!1,null,null,null);e.a=component.exports},,,,,,,,,,,,function(t,e,o){"use strict";var n={};n.director=o(535),n.director=n.director.default||n.director,n.host=o(536),n.host=n.host.default||n.host,n.index=o(538),n.index=n.index.default||n.index,n.lang_auth=o(539),n.lang_auth=n.lang_auth.default||n.lang_auth,n.loggedin=o(540),n.loggedin=n.loggedin.default||n.loggedin,e.a=n},,function(t,e,o){"use strict";o(15),o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=o(51),c=o(33),l=o(303),d={actionButtons:[{name:"add",title:"Создать",icon:["fas","plus"],method_name:"createForm"},{name:"edit",title:"Редактировать",icon:["fas","pen"],method_name:"editForm"},{name:"delete",title:"Удалить",icon:["fas","trash"],method_name:"deleteListItem"}]},m=o(60),h=o(72);function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}var f={mixins:[m.a,h.a],components:{FormSelect:r.default,FormModalHeader:c.default,Form:l.a},model:{prop:"value",event:"change"},props:["value","projects","required"],data:function(){return function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?_(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({editedItemId:-1},d)},computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}},projectsComputed:function(){return this.rebuildForSelect(this.projects,"name",this.$t("posts").projects.form_group.default_value)}},methods:{closeForm:function(t,e,o){this.$refs["edit-modal"].hide(),"boolean"==typeof t&&t&&(this.$emit("update-projects",o),this.$emit("change",e))},editForm:function(){this.editedItemId=this.currentValue,this.$refs["edit-modal"].show()},createForm:function(){this.editedItemId=0,this.$refs["edit-modal"].show()},deleteListItem:function(){var t=this;this.deleteItem("/posts/projects/"+this.currentValue,null,this.$t("posts").projects.delete_confirmation,function(e){t.$emit("update-projects",e.data.projects),t.$emit("change",0)})}}},v=f,y=o(5),component=Object(y.a)(v,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-label"},[t._v("\n    "+t._s(t.$t("posts").projects.form_group.label)+"\n    "),t.required?e("span",[t._v("*")]):t._e()]),t._v(" "),e("div",{staticClass:"d-flex"},[e("FormSelect",{attrs:{name:"projects",items:t.projectsComputed,disabled:!t.projects.length,"no-items-text":t.$t("posts").projects.form_group.no_items},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}}),t._v(" "),e("b-dropdown",{staticClass:"dropdown-no-arrow ms-2",attrs:{right:"",variant:"secondary",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{attrs:{icon:["fas","ellipsis-h"]}})]},proxy:!0}])},[t._v(" "),t._l(t.actionButtons,function(o,n){return e("b-dropdown-item-button",{key:n,attrs:{"button-class":{"btn-sm":!0,disabled:["edit","delete"].indexOf(o.name)>=0&&!t.currentValue}},on:{click:function(e){return t.callMethodByName(o.method_name,0)}}},[e("span",{staticClass:"dropdown-item-icon me-2"},[e("fa",{attrs:{icon:o.icon}})],1),t._v(t._s(t.$t("posts").projects.form_group.action_buttons[o.name])+"\n      ")])})],2)],1),t._v(" "),e("b-modal",{ref:"edit-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.editedItemId=-1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.editedItemId?t.$t("posts").projects.form_group.edit_title:t.$t("posts").projects.form_group.create_title},on:{"close-form":t.closeForm}})]},proxy:!0}])},[t._v(" "),t.editedItemId>=0?e("Form",{attrs:{id:t.editedItemId,"is-in-popup":!0},on:{"close-form":t.closeForm}}):t._e()],1)],1)},[],!1,null,null,null);e.a=component.exports},,,,,,,,,,,,function(t,e,o){"use strict";o(23),o(22),o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=(o(45),o(40),o(30)),c=o(67),l={computed:{tgLink:function(){return"ru"===this.$i18n.locale?'<a href="обычная ссылка">название ссылки</a>':'<a href="regular link">link name</a>'}}},d=o(5),m=Object(d.a)(l,function(){var t=this,e=t._self._c;return e("div",["ru"===t.$i18n.locale?[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3)]:t._e(),t._v(" "),"en"===t.$i18n.locale?[t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),e("div",{staticClass:"mx-n3 px-3 pt-3 mt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Which links are supported?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For Telegram")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("regular links")]),t._v(" "),e("li",[t._v("[regular link|link name]")]),t._v(" "),e("li",[t._v(t._s(t.tgLink))])])]),t._v(" "),t._m(7)])])]:t._e()],2)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Разные подписи для разных соц. сетей")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Вы можете указать подпись для одной или нескольких соц. сетей.\n        Для этого блоки текста нужно размещать внутри специальных маркеров."),e("br"),e("br"),t._v("\n        Вот пример подписи, которая будет добавлена только к постам в Telegram:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[e("b",[t._v("{tg")]),e("br"),t._v("\n          эта подпись только для постов в Telegram"),e("br"),t._v(" "),e("b",[t._v("tg}")])]),e("br"),e("br"),t._v("\n        Текст может быть многострочным."),e("br"),e("br"),t._v(" "),e("b",[t._v("Общий принцип такой")]),t._v(": вы указ
1ываете маркеры, а внутри них пишите текст."),e("br"),e("br"),t._v(" "),e("b",[t._v("{tg")]),t._v(" - начало блока"),e("br"),t._v(" "),e("b",[t._v("tg}")]),t._v(" - конец блока\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 my-3 border-top border-bottom"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Более сложный пример подписи")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          Вы можете указать подпись, которая будет содержать общий текст для всех соц. сетей, а также отдельно для некоторых определенных:"),e("br"),e("br"),t._v(" "),e("div",{staticClass:"text-info"},[t._v("\n            Это начало текста подписи для всех соц сетей."),e("br"),t._v("\n            Он может быть каким угодно и в несколько строк."),e("br"),e("br"),t._v(" "),e("b",[t._v("{ig")]),e("br"),t._v("\n            Это будет дополнительный текст только для постов в Instagram."),e("br"),t._v("\n            Он может быть любого размера."),e("br"),t._v(" "),e("b",[t._v("ig}")]),e("br"),e("br"),t._v(" "),e("b",[t._v("{tg")]),e("br"),t._v("\n            А это будет дополнительный текст только для постов в Telegram."),e("br"),t._v("\n            Он тоже может быть любого размера."),e("br"),t._v(" "),e("b",[t._v("tg}")]),e("br"),e("br"),t._v("\n            А это может быть конец подписи, он тоже для всех соц сетей.\n          ")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Какие соц. сети поддерживаются?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Ниже представлен список всех доступных маркеров:\n        "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("ВКонтакте: "),e("b",[t._v("{vk ... vk}")])]),t._v(" "),e("li",[t._v("Одноклассники: "),e("b",[t._v("{ok ... ok}")])]),t._v(" "),e("li",[t._v("Max: "),e("b",[t._v("{mx ... mx}")])]),t._v(" "),e("li",[t._v("Facebook: "),e("b",[t._v("{fb ... fb}")])]),t._v(" "),e("li",[t._v("Twitter: "),e("b",[t._v("{tw ... tw}")])]),t._v(" "),e("li",[t._v("Мой Мир: "),e("b",[t._v("{mm ... mm}")])]),t._v(" "),e("li",[t._v("Pinterest: "),e("b",[t._v("{pn ... pn}")])]),t._v(" "),e("li",[t._v("Instagram: "),e("b",[t._v("{ig ... ig}")])]),t._v(" "),e("li",[t._v("Telegram: "),e("b",[t._v("{tg ... tg}")])]),t._v(" "),e("li",[t._v("Дзен: "),e("b",[t._v("{dz ... dz}")])]),t._v(" "),e("li",[t._v("TikTok: "),e("b",[t._v("{tt ... tt}")])]),t._v(" "),e("li",[t._v("Viber: "),e("b",[t._v("{wb ... wb}")])]),t._v(" "),e("li",[t._v("YouTube: "),e("b",[t._v("{yt ... yt}")])]),t._v(" "),e("li",[t._v("RuTube: "),e("b",[t._v("{rt ... rt}")])]),t._v(" "),e("li",[t._v("WhatsApp: "),e("b",[t._v("{wa ... wa}")])]),t._v(" "),e("li",[t._v("Threads: "),e("b",[t._v("{th ... th}")])]),t._v(" "),e("li",[t._v("Wordpress: "),e("b",[t._v("{wp ... wp}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 px-3 pt-3 mt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Какие ссылки можно указывать?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для ВКонтакте")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")]),t._v(" "),e("li",[t._v("@id123 (название ссылки)")]),t._v(" "),e("li",[t._v("@club123 (название ссылки)")]),t._v(" "),e("li",[t._v("@public123 (название ссылки)")]),t._v(" "),e("li",[t._v("@username (название ссылки)")]),t._v(" "),e("li",[t._v("[id123|название ссылки]")]
1),t._v(" "),e("li",[t._v("[club123|название ссылки]")]),t._v(" "),e("li",[t._v("[public123|название ссылки]")]),t._v(" "),e("li",[t._v("[username|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Одноклассников")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")]),t._v(" "),e("li",[t._v("[обычная ссылка|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Max")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")]),t._v(" "),e("li",[t._v("[обычная ссылка|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Telegram")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")]),t._v(" "),e("li",[t._v("[обычная ссылка|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для остальных соц. сетей")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Different captions for different social networks")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        You can specify a caption for one or several social networks.\n        To do this, text blocks should be placed inside special markers."),e("br"),e("br"),t._v("\n        Here's an example of a caption that will only be added to posts on Telegram:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[e("b",[t._v("{tg")]),e("br"),t._v("\n          This caption is only for Telegram posts"),e("br"),t._v(" "),e("b",[t._v("tg}")])]),e("br"),e("br"),t._v("\n        The text can be multiline."),e("br"),e("br"),t._v(" "),e("b",[t._v("The general principle is this")]),t._v(": you specify markers, and inside them, you write text."),e("br"),e("br"),t._v(" "),e("b",[t._v("{tg")]),t._v(" - start of the block"),e("br"),t._v(" "),e("b",[t._v("tg}")]),t._v(" - end of the block\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 my-3 border-top border-bottom"},[e("div",{staticClass:"p-3"},[e("b",[t._v("More complex example of a caption")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          You can specify a caption that will contain common text for all social networks, as well as separately for some specific ones:"),e("br"),e("br"),t._v(" "),e("div",{staticClass:"text-info"},[t._v("\n            This is the beginning of the caption text for all social networks."),e("br"),t._v("\n            It can be anything and span multiple lines."),e("br"),e("br"),t._v(" "),e("b",[t._v("{ig")]),e("br"),t._v("\n            This will be additional text only for Instagram posts."),e("br"),t._v("\n            It can be of any size."),e("br"),t._v(" "),e("b",[t._v("ig}")]),e("br"),e("br"),t._v(" "),e("b",[t._v("{tg")]),e("br"),t._v("\n            And this will be additional text only for Telegram posts."),e("br"),t._v("\n            It can also be of any size."),e("br"),t._v(" "),e("b",[t._v("tg}")]),e("br"),e("br"),t._v("\n            And this could be the end of the caption, also for all social networks.\n          ")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Which social networks are supported?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Below is a list of all available markers:\n        "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("Facebook: "),e("b",[t._v("{fb ... fb}")])]),t._v(" "),e("li",[t._v("Twitter: "),e("b",[t._v("{tw ... tw}")])]),t._v(" "),e("li",[t._v("Pinterest: "),e("b",[t._v("{pn ... pn}")])]),t._v(" "),e("li",[t._v("Instagram: "),e("b",[t._v("{ig ... ig}")])]),t._v(" "),e("li",[t._v("Telegram: "),e("b",[t._v("{tg ... tg}")])]),t._v(" "),e("li",[t._v("TikTok: "),e("b",[t._v("{tt ... tt}")])]),t._v(" "),e("li",[t._v("Viber: "),e("b",[t._v("{vb ... vb}")])]),t._v(" "),e("li",[t._v("YouTube: "),e("b",[t._v("{yt ... yt}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For other social networks")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("regular links")])])])}],!1,null,null,null).exports,h=o(69),_=o(47),f=o(46),v=o(111),y=o(33);function k(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function x(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?k(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var w={components:{FormTelegramButtons:o(172).a,HelpForm:c.a,PostsCaptionHelp:m,FormGroupTextarea:h.a,FormGroupRadioButtons:_.a,FormGroupInput:f.a,FormGroupFile:v.a,FormModalHeader:y.default},props:["placeholder","photosCaptionPlaceholder","videosTitlePlaceholder","commentPlaceholder","objectsType","isVideosEnabled"],data:function(){return{isFormOpened:!1,localPostsCaption:"",localPostsCaptionPositionType:1,localPostsCaptionSpaceType:1,localPhotosCaption:"",localTGButtons:{list:[]},localVideosTitle:"",localPostsComment:"",localPublishCommentByAccount:!1,localPostsPhoto:null,localPostsPhotoAlways:!1}},computed:x(x({},Object(r.c)({state:function(t){return t}})),{},{formState:function(){return"cross-posting"===this.objectsType?this.state.crossPosting.form:"rss-import"===this.objectsType?this.state.rssImport.form:"schedules"===this.objectsType?this.state.posts.schedules.form:this.state.posts.projects.form},postsCaption:function(){return this.formState.postsCaption.postsCaption},postsCaptionPositionType:function(){return this.formState.postsCaption.postsCaptionPositionType},postsCaptionSpaceType:function(){return this.formState.postsCaption.postsCaptionSpaceType},photosCaption:function(){return this.formState.postsCaption.photosCaption},tgButtons:function(){return this.formState.postsCaption.tgButtons},videosTitle:function(){return this.formState.postsCaption.videosTitle},postsComment:function(){return this.formState.postsCaption.postsComment},publishCommentByAccount:function(){return this.formState.postsCaption.publishCommentByAccount},postsPhoto:function(){return this.formState.postsCaption.postsPhoto},postsPhotoAlways:function(){return this.formState.postsCaption.postsPhotoAlways},isConfigured:function(){return!!(this.postsCaption&&this.postsCaption.trim()||this.photosCaption&&this.photosCaption.trim()||this.tgButtons&&this.tgButtons.list&&this.tgButtons.list.length||this.videosTitle&&this.videosTitle.trim()||this.postsComment&&this.postsComment.trim()||this.postsPhoto)},btnName:function(){return this.isConfigured?this.$t("form").posts_caption.open_button_two:this.$t("form").posts_caption.open_button_one}}),watch:{isFormOpened:function(t){var e=this;t?(this.localPostsCaption=this.postsCaption,this.localPostsCaptionPositionType=this.postsCaptionPositionType,this.localPostsCaptionSpaceType=this.postsCaptionSpaceType,this.localPhotosCaption=this.photosCaption,this.localTGButtons=this.tgButtons,this.localVideosTitle=this.videosTitle,this.localPostsComment=this.postsComment,this.localPublishCommentByAccount=this.publishCommentByAccount,this.localPostsPhoto=this.postsPhoto,this.localPostsPhotoAlways=this.postsPhotoAlways,this.$refs["form-modal"].show(),this.$nextTick(function(){setTimeout(function(){e.$refs["caption-form"].focus()},200)})):(this.localPostsCaption="",this.localPostsCaptionPositionType=1,this.localPostsCaptionSpaceType=1,this.localPhotosCaption="",this.localTGButtons={list:[]},this.localVideosTitle="",this.localPostsComment="",this.localPublishCommentByAccount=!1,this.localPostsPhoto=null,this.localPostsPhotoAlways=!1,this.$refs["form-modal"].hide())}},methods:{apply:function(){var t="posts/projects";"cross-posting"===this.objectsType?t="crossPosting":"rss-import"===this.objectsType?t="rssImport":"schedules"===this.objectsType&&(t="posts/schedules"),this.$store.commit("".concat(t,"/form/postsCaption"),{postsCaption:this.localPostsCaption,postsCaptionPositionType:this.localPostsCaptionPositionType,postsCaptionSpaceType:this.localPostsCaptionSpaceType,photosCaption:this.localPhotosCaption,tgButtons:this.localTGButtons,videosTitle:this.localVideosTitle,postsComment:this.localPostsComment,publishCommentByAccount:this.localPublishCommentByAccount,postsPhoto:this.localPostsPhoto,postsPhotoAlways:this.localPostsPhotoAlways}),this.isFormOpened=!1}}},C=Object(d.a)(w,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("div",{staticClass:"d-sm-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n      "+t._s(t.$t("form").posts_caption.label)+"\n    ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n    ")],1)]),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").posts_caption.title},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[e("FormGroupTextarea",{ref:"caption-form",attrs:{id:"caption-form",label:t.$t("form").posts_caption.form.caption,placeholder:t.placeholder,"need-to-redraw":!0,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.localPostsCaption,callback:function(e){t.localPostsCaption=e},expression:"localPostsCaption"}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_caption.form.caption_position_types,name:"position_type",label:t.$t("form").posts_caption.form.caption_position_type},model:{value:t.localPostsCaptionPositionType,callback:function(e){t.localPostsCaptionPositionType=e},expression:"localPostsCaptionPositionType"}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_caption.form.caption_space_types,name:"space_type",label:t.$t("form").posts_caption.form.caption_space_type},model:{value:t.localPostsCaptionSpaceType,callback:function(e){t.localPostsCaptionSpaceType=e},expression:"localPostsCaptionSpaceType"}}),t._v(" "),e("FormGroupTextarea",{attrs:{label:t.$t("form").posts_caption.form.comment,placeholder:t.commentPlaceholder,"need-to-redraw":!0,"form-group-class":"mb-2","textarea-class":"small-height"},model:{value:t.localPostsComment,callback:function(e){t.localPostsComment=e},expression:"localPostsComment"}}),t._v(" "),e("div",{staticClass:"form-check mb-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.localPublishCommentByAccount,expression:"localPublishCommentByAccount"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_comment_by_account"},domProps:{checked:Array.isArray(t.localPublishCommentByAccount)?t._i(t.localPublishCommentByAccount,null)>-1:t.localPublishCommentByAccount},on:{change:function(e){var o=t.localPublishCommentByAccount,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.localPublishCommentByAccount=o.concat([null])):c>-1&&(t.localPublishCommentByAccount=o.slice(0,c).concat(o.slice(c+1)))}else t.localPublishCommentByAccount=r}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"publish_comment_by_account"}},[t._v("\n          "+t._s(t.$t("form").posts_caption.form.publish_comment_by_account)+"\n        ")])]),t._v(" "),e("FormGroupTextarea",{attrs:{label:t.$t("form").posts_caption.form.photos_caption,placeholder:t.photosCaptionPlaceholder,"need-to-redraw":!0,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.localPhotosCaption,callback:function(e){t.localPhotosCaption=e},expression:"localPhotosCaption"}}),t._v(" "),t.isVideosEnabled?e("FormGroupInput",{attrs:{id:"videos-title",label:t.$t("form").posts_caption.form.videos_title,placeholder:t.videosTitlePlaceholder},model:{value:t.localVideosTitle,callback:function(e){t.localVideosTitle=e},expression:"localVideosTitle"}}):t._e(),t._v(" "),e("FormTelegramButtons",{staticClass:"mb-3",attrs:{label:t.$t("form").posts_caption.form.tg_buttons},model:{value:t.localTGButtons,callback:function(e){t.localTGButtons=e},expression:"localTGButtons"}}),t._v(" "),e("FormGroupFile",{staticClass:"mb-2",attrs:{label:t.$t("form").posts_caption.form.photo,tip:t.$t("form").posts_caption.form.photo_tip,value:t.localPostsPhoto,"cloud-path":t.yandexPhotosUrl,"upload-url":"/files/media/upload","response-file-key":"photo","file-types":["image/jpeg","image/png"]},on:{change:function(e){t.localPostsPhoto=e},delete:function(e){t.localPostsPhoto=null}}}),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.localPostsPhotoAlways,expression:"localPostsPhotoAlways"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"posts_photo_always"},domProps:{checked:Array.isArray(t.localPostsPhotoAlways)?t._i(t.localPostsPhotoAlways,null)>-1:t.localPostsPhotoAlways},on:{change:function(e){var o=t.localPostsPhotoAlways,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.localPostsPhotoAlways=o.concat([null])):c>-1&&(t.localPostsPhotoAlways=o.slice(0,c).concat(o.slice(c+1)))}else t.localPostsPhotoAlways=r}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"posts_photo_always"}},[t._v("\n          "+t._s(t.$t("form").posts_caption.form.photo_always)+"\n        ")])])],1),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light justify-content-between"},[e("div",[e("HelpForm",{attrs:{title:t.$t("help").instructions,"help-id":"31","is-in-form":!0}},[e("PostsCaptionHelp")],1)],1),t._v(" "),e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n        "+t._s(t.$t("form").posts_caption.form.apply_button)+"\n      ")])])])],1
1)},[],!1,null,null,null);e.a=C.exports},function(t,e,o){"use strict";o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=(o(45),o(40),o(30)),c=o(67),l={computed:{tgLink:function(){return"ru"===this.$i18n.locale?'<a href="обычная ссылка">название ссылки</a>':'<a href="regular link">link name</a>'}}},d=o(5),m=Object(d.a)(l,function(){var t=this;return(0,t._self._c)("div",["ru"===t.$i18n.locale?[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3)]:t._e(),t._v(" "),"en"===t.$i18n.locale?[t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),t._m(7)]:t._e()],2)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Разные ссылки для разных соц. сетей")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Вы можете указать ссылки для одной или нескольких соц. сетей.\n        Для этого списки ссылок нужно размещать внутри специальных маркеров."),e("br"),e("br"),t._v("\n        Вот пример ссылок, которые будут добавлены только к постам во ВКонтакте:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[e("b",[t._v("{vk")]),e("br"),t._v("\n          https://адрес.ру"),e("br"),t._v("\n          https://другойадрес.ру"),e("br"),t._v("\n          https://ещеадрес.ру"),e("br"),t._v("\n          https://иеще.ру"),e("br"),t._v(" "),e("b",[t._v("vk}")])]),e("br"),e("br"),t._v(" "),e("b",[t._v("Общий принцип такой")]),t._v(": вы указываете маркеры, а внутри них перечисляете список ссылок."),e("br"),e("br"),t._v(" "),e("b",[t._v("{vk")]),t._v(" - начало блока"),e("br"),t._v(" "),e("b",[t._v("vk}")]),t._v(" - конец блока\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 my-3 border-top border-bottom"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Более сложный пример ссылок")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          Вы можете указать список общих ссылок для всех соц. сетей, а также отдельно для некоторых определенных:"),e("br"),e("br"),t._v(" "),e("div",{staticClass:"text-info"},[t._v("\n            общая ссылка 1"),e("br"),t._v("\n            общая ссылка 2"),e("br"),t._v("\n            общая ссылка 3"),e("br"),e("br"),t._v(" "),e("b",[t._v("{vk")]),e("br"),t._v("\n            ссылка 1"),e("br"),t._v("\n            ссылка 2"),e("br"),t._v(" "),e("b",[t._v("vk}")]),e("br"),e("br"),t._v(" "),e("b",[t._v("{tg")]),e("br"),t._v("\n            ссылка 1"),e("br"),t._v("\n            ссылка 2"),e("br"),t._v(" "),e("b",[t._v("tg}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Какие соц. сети поддерживаются?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Ниже представлен список всех доступных маркеров:\n        "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("ВКонтакте: "),e("b",[t._v("{vk ... vk}")])]),t._v(" "),e("li",[t._v("Одноклассники: "),e("b",[t._v("{ok ... ok}")])]),t._v(" "),e("li",[t._v("Facebook: "),e("b",[t._v("{fb ... fb}")])]),t._v(" "),e("li",[t._v("Twitter: "),e("b",[t._v("{tw ... tw}")])]),t._v(" "),e("li",[t._v("Pinterest: "),e("b",[t._v("{pn ... pn}")])]),t._v(" "),e("li",[t._v("Instagram: "),e("b",[t._v("{ig ... ig}")])]),t._v(" "),e("li",[t._v("Telegram: "),e("b",[t._v("{tg ... tg}")])]),t._v(" "),e("li",[t._v("Дзен: "),e("b",[t._v("{dz ... dz}")])]),t._v(" "),e("li",[t._v("TikTok: "),e("b",[t._v("{tt ... tt}")])]),t._v(" "),e("li",[t._v("Viber: "),e("b",[t._v("{vb ... vb}")])]),t._v(" "),e("li",[t._v("YouTube: "),e("b",[t._v("{yt ... yt}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 px-3 pt-3 mt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Какие ссылки поддерживаются?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для ВКонтакте")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")]),t._v(" "),e("li",[t._v("@id123 (название ссылки)")]),t._v(" "),e("li",[t._v("@club123 (название ссылки)")]),t._v(" "),e("li",[t._v("@public123 (название ссылки)")]),t._v(" "),e("li",[t._v("@username (название ссылки)")]),t._v(" "),e("li",[t._v("[id123|наÐ
1·Ð²Ð°Ð½Ð¸Ðµ ссылки]")]),t._v(" "),e("li",[t._v("[club123|название ссылки]")]),t._v(" "),e("li",[t._v("[public123|название ссылки]")]),t._v(" "),e("li",[t._v("[username|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Одноклассников")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")]),t._v(" "),e("li",[t._v("[обычная ссылка|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Max")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")]),t._v(" "),e("li",[t._v("[обычная ссылка|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Telegram")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")]),t._v(" "),e("li",[t._v("[обычная ссылка|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для остальных соц. сетей")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("обычные ссылки")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Different links for different social networks")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        You can specify links for one or several social networks.\n        To do this, lists of links should be placed inside special markers."),e("br"),e("br"),t._v("\n        Here's an example of links that will only be added to posts on Facebook:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[e("b",[t._v("{fb")]),e("br"),t._v("\n          https://example.com"),e("br"),t._v("\n          https://anotherexample.com"),e("br"),t._v("\n          https://yetanotherexample.com"),e("br"),t._v("\n          https://onemoreexample.com"),e("br"),t._v(" "),e("b",[t._v("fb}")])]),e("br"),e("br"),t._v(" "),e("b",[t._v("The general principle is this")]),t._v(": you specify markers, and inside them, you list the links."),e("br"),e("br"),t._v(" "),e("b",[t._v("{fb")]),t._v(" - start of the block"),e("br"),t._v(" "),e("b",[t._v("fb}")]),t._v(" - end of the block\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 my-3 border-top border-bottom"},[e("div",{staticClass:"p-3"},[e("b",[t._v("More complex example of links")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          You can specify a list of common links for all social networks, as well as separately for some specific ones:"),e("br"),e("br"),t._v(" "),e("div",{staticClass:"text-info"},[t._v("\n            common link 1"),e("br"),t._v("\n            common link 2"),e("br"),t._v("\n            common link 3"),e("br"),e("br"),t._v(" "),e("b",[t._v("{fb")]),e("br"),t._v("\n            link 1"),e("br"),t._v("\n            link 2"),e("br"),t._v(" "),e("b",[t._v("fb}")]),e("br"),e("br"),t._v(" "),e("b",[t._v("{tg")]),e("br"),t._v("\n            link 1"),e("br"),t._v("\n            link 2"),e("br"),t._v(" "),e("b",[t._v("tg}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Which social networks are supported?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Below is a list of all available markers:\n        "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("Facebook: "),e("b",[t._v("{fb ... fb}")])]),t._v(" "),e("li",[t._v("Twitter: "),e("b",[t._v("{tw ... tw}")])]),t._v(" "),e("li",[t._v("Pinterest: "),e("b",[t._v("{pn ... pn}")])]),t._v(" "),e("li",[t._v("Instagram: "),e("b",[t._v("{ig ... ig}")])]),t._v(" "),e("li",[t._v("Telegram: "),e("b",[t._v("{tg ... tg}")])]),t._v(" "),e("li",[t._v("TikTok: "),e("b",[t._v("{tt ... tt}")])]),t._v(" "),e("li",[t._v("Viber: "),e("b",[t._v("{vb ... vb}")])]),t._v(" "),e("li",[t._v("YouTube: "),e("b",[t._v("{yt ... yt}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 px-3 pt-3 mt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Which links are supported?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For Telegram")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("regular links")]),t._v(" "),e("li",[t._v("[regular link|link name]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For other social networks")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("regular links")])])])])])}],!1,null,null,null).exports,h=o(69),_=o(46),f=o(47),v=o(33);function y(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function k(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?y(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var x={components:{HelpForm:c.a,PostsLinksHelp:m,FormGroupTextarea:h.a,FormGroupInput:_.a,FormGroupRadioButtons:f.a,FormModalHeader:v.default},props:["objectsType"],data:function(){return{isFormOpened:!1,linksLocal:"",maxAmountLocal:5,selectionTypeLocal:1,spaceTypeLocal:1,tgLink:'<a href="обычная ссылка">название ссылки</a>'}},computed:k(k({},Object(r.c)({state:function(t){return t}})),{},{formState:function(){return"cross-posting"===this.objectsType?this.state.crossPosting.form:"rss-import"===this.objectsType?this.state.rssImport.form:"schedules"===this.objectsType?this.state.posts.schedules.form:this.state.posts.projects.form},links:function(){return this.formState.postsLinks.links},maxAmount:function(){return this.formState.postsLinks.maxAmount},selectionType:function(){return this.formState.postsLinks.selectionType},spaceType:function(){return this.formState.postsLinks.spaceType},isConfigured:function(){return!(!this.links||!this.links.trim())},btnName:function(){return this.isConfigured?this.$t("form").posts_links.open_button_two:this.$t("form").posts_links.open_button_one}}),watch:{isFormOpened:function(t){var e=this;t?(this.linksLocal=this.links,this.maxAmountLocal=this.maxAmount,this.selectionTypeLocal=this.selectionType,this.spaceTypeLocal=this.spaceType,this.$refs["form-modal"].show(),this.$nextTick(function(){setTimeout(function(){e.$refs["links-form"].focus()},200)})):(this.linksLocal="",this.maxAmountLocal="",this.selectionTypeLocal="",this.spaceTypeLocal="",this.$refs["form-modal"].hide())}},methods:{apply:function(){var t="posts/projects";"cross-posting"===this.objectsType?t="crossPosting":"rss-import"===this.objectsType?t="rssImport":"schedules"===this.objectsType&&(t="posts/schedules"),this.$store.commit("".concat(t,"/form/postsLinks"),{links:this.linksLocal,maxAmount:this.maxAmountLocal,selectionType:this.selectionTypeLocal,spaceType:this.spaceTypeLocal}),this.isFormOpened=!1}}},w=Object(d.a)(x,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("div",{staticClass:"d-sm-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n      "+t._s(t.$t("form").posts_links.label)+"\n    ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n    ")],1)]),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").posts_links.title},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[e("FormGroupTextarea",{ref:"links-form",attrs:{id:"links-form",label:t.$t("form").posts_links.form.caption,placeholder:t.$t("form").posts_links.form.caption_placeholder,"need-to-redraw":!0,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.linksLocal,callback:function(e){t.linksLocal=e},expression:"linksLocal"}}),t._v(" "),e("FormGroupInput",{attrs:{label:t.$t("form").posts_links.form.max_amount,"input-class":"input-for-numbers"},model:{value:t.maxAmountLocal,callback:function(e){t.maxAmountLocal=e},expression:"maxAmountLocal"}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_links.form.selection_types,name:"selection_type",label:t.$t("form").posts_links.form.selection_type},model:{value:t.selectionTypeLocal,callback:function(e){t.selectionTypeLocal=e},expression:"selectionTypeLocal"}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_links.form.space_types,name:"space_type",label:t.$t("form").posts_links.form.space_type},model:{value:t.spaceTypeLocal,callback:function(e){t.spaceTypeLocal=e},expression:"spaceTypeLocal"}})],1),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light justify-content-between"},[e("div",[e("HelpForm",{attrs:{title:t.$t("help").instructions,"help-id":"31","is-in-form":!0}},[e("PostsLinksHelp")],1)],1),t._v(" "),e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n        "+t._s(t.$t("form").posts_links.form.apply_button)+"\n      ")])])])],1
1)},[],!1,null,null,null);e.a=w.exports},function(t,e,o){"use strict";o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=(o(45),o(40),o(30)),c=o(67),l=o(5),d=Object(l.a)({},function(){var t=this;return(0,t._self._c)("div",["ru"===t.$i18n.locale?[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2)]:t._e(),t._v(" "),"en"===t.$i18n.locale?[t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5)]:t._e()],2)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Разные хештеги для разных соц. сетей")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Если надо разделить разные хештегов для разных соц. сетей, то их нужно размещать внутри специальных маркеров."),e("br"),e("br"),t._v("\n        Вот пример хештегов, которые будут добавлены только к постам в Instagram:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[e("b",[t._v("{ig")]),e("br"),t._v("\n            #лето2023"),e("br"),t._v("\n            #люблюморе"),e("br"),t._v("\n            #путешествия"),e("br"),t._v("\n            #отдых"),e("br"),t._v(" "),e("b",[t._v("ig}")])]),e("br"),e("br"),t._v(" "),e("b",[t._v("Общий принцип такой")]),t._v(": вы указываете маркеры, а внутри них перечисляете список хештегов."),e("br"),e("br"),t._v(" "),e("b",[t._v("{ig")]),t._v(" - начало блока"),e("br"),t._v(" "),e("b",[t._v("ig}")]),t._v(" - конец блока\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 my-3 border-top border-bottom"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Более сложный пример хештегов")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          Вы можете указать список общих хештегов для всех соц. сетей, а также отдельно для некоторых определенных:"),e("br"),e("br"),t._v(" "),e("div",{staticClass:"text-info"},[t._v("\n            #общийтег1"),e("br"),t._v("\n            #общийтег2"),e("br"),t._v("\n            #общийтег3"),e("br"),e("br"),t._v(" "),e("b",[t._v("{vk")]),e("br"),t._v("\n            #тег1"),e("br"),t._v("\n            #тег2"),e("br"),t._v("\n            #тег3"),e("br"),t._v("\n            #тег4"),e("br"),t._v("\n            #тег5"),e("br"),t._v(" "),e("b",[t._v("vk}")]),e("br"),e("br"),t._v(" "),e("b",[t._v("{ig")]),e("br"),t._v("\n            #тег1"),e("br"),t._v("\n            #тег2"),e("br"),t._v(" "),e("b",[t._v("ig}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Какие соц. сети поддерживаются?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Ниже представлен список всех доступных маркеров:\n        "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("ВКонтакте: "),e("b",[t._v("{vk ... vk}")])]),t._v(" "),e("li",[t._v("Одноклассники: "),e("b",[t._v("{ok ... ok}")])]),t._v(" "),e("li",[t._v("Facebook: "),e("b",[t._v("{fb ... fb}")])]),t._v(" "),e("li",[t._v("Twitter: "),e("b",[t._v("{tw ... tw}")])]),t._v(" "),e("li",[t._v("Pinterest: "),e("b",[t._v("{pn ... pn}")])]),t._v(" "),e("li",[t._v("Instagram: "),e("b",[t._v("{ig ... ig}")])]),t._v(" "),e("li",[t._v("Telegram: "),e("b",[t._v("{tg ... tg}")])]),t._v(" "),e("li",[t._v("Дзен: "),e("b",[t._v("{dz ... dz}")])]),t._v(" "),e("li",[t._v("TikTok: "),e("b",[t._v("{tt ... tt}")])]),t._v(" "),e("li",[t._v("Viber: "),e("b",[t._v("{wb ... wb}")])]),t._v(" "),e("li",[t._v("YouTube: "),e("b",[t._v("{yt ... yt}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Different hashtags for different social networks")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        If you need to separate different hashtags for different social networks, you should place them inside special markers."),e("br"),e("br"),t._v("\n        Here's an example of hashtags that will only be added to posts on Instagram:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[e("b",[t._v("{ig")]),e("br"),t._v("\n          #summer2023"),e("br"),t._v("\n          #lovethesea"),e("br"),t._v("\n          #travel"),e("br"),t._v("\n          #vacation"),e("br"),t._v(" "),e("b",[t._v("ig}")])]),e("br"),e("br"),t._v(" "),e("b",[t._v("The general principle is this")]),t._v(": you specify markers, and inside them, you list the hashtags."),e("br"),e("br"),t._v(" "),e("b",[t._v("{ig")]),t._v(" - start of the block"),e("br"),t._v(" "),e("b",[t._v("ig}")]),t._v(" - end of the block\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 my-3 border-top border-bottom"},[e("div",{staticClass:"p-3"},[e("b",[t._v("More complex example of hashtags")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          You can specify a list of common hashtags for all social networks, as well as separately for some specific ones:"),e("br"),e("br"),t._v(" "),e("div",{staticClass:"text-info"},[t._v("\n            #commontag1"),e("br"),t._v("\n            #commontag2"),e("br"),t._v("\n            #commontag3"),e("br"),e("br"),t._v(" "),e("b",[t._v("{fb")]),e("br"),t._v("\n            #tag1"),e("br"),t._v("\n            #tag2"),e("br"),t._v("\n            #tag3"),e("br"),t._v("\n            #tag4"),e("br"),t._v("\n            #tag5"),e("br"),t._v(" "),e("b",[t._v("fb}")]),e("br"),e("br"),t._v(" "),e("b",[t._v("{ig")]),e("br"),t._v("\n            #tag1"),e("br"),t._v("\n            #tag2"),e("br"),t._v(" "),e("b",[t._v("ig}")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Which social networks are supported?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Below is a list of all available markers:\n        "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("Facebook: "),e("b",[t._v("{fb ... fb}")])]),t._v(" "),e("li",[t._v("Twitter: "),e("b",[t._v("{tw ... tw}")])]),t._v(" "),e("li",[t._v("Pinterest: "),e("b",[t._v("{pn ... pn}")])]),t._v(" "),e("li",[t._v("Instagram: "),e("b",[t._v("{ig ... ig}")])]),t._v(" "),e("li",[t._v("Telegram: "),e("b",[t._v("{tg ... tg}")])]),t._v(" "),e("li",[t._v("TikTok: "),e("b",[t._v("{tt ... tt}")])]),t._v(" "),e("li",[t._v("Viber: "),e("b",[t._v("{vb ... vb}")])]),t._v(" "),e("li",[t._v("YouTube: "),e("b",[t._v("{yt ... yt}")])])])])])}],!1,null,null,null).exports,m=o(69),h=o(46),_=o(47),f=o(33);function v(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function y(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?v(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var k={components:{HelpForm:c.a,PostsHashtagsHelp:d,FormGroupTextarea:m.a,FormGroupInput:h.a,FormGroupRadioButtons:_.a,FormModalHeader:f.default},props:["objectsType"],data:function(){return{isFormOpened:!1,hashtagsLocal:"",maxAmountLocal:5,selectionTypeLocal:1,spaceTypeLocal:1}},computed:y(y({},Object(r.c)({state:function(t){return t}})),{},{formState:function(){return"cross-posting"===this.objectsType?this.state.crossPosting.form:"rss-import"===this.objectsType?this.state.rssImport.form:"schedules"===this.objectsType?this.state.posts.schedules.form:this.state.posts.projects.form},hashtags:function(){return this.formState.postsHashtags.hashtags},maxAmount:function(){return this.formState.postsHashtags.maxAmount},selectionType:function(){return this.formState.postsHashtags.selectionType},spaceType:function(){return this.formState.postsHashtags.spaceType},isConfigured:function(){return!(!this.hashtags||!this.hashtags.trim())},btnName:function(){return this.isConfigured?this.$t("form").posts_hashtags.open_button_two:this.$t("form").posts_hashtags.open_button_one}}),watch:{isFormOpened:function(t){var e=this;t?(this.hashtagsLocal=this.hashtags,this.maxAmountLocal=this.maxAmount,this.selectionTypeLocal=this.selectionType,this.spaceTypeLocal=this.spaceType,this.$refs["form-modal"].show(),this.$nextTick(function(){setTimeout(function(){e.$refs["hashtags-form"].focus()},200)})):(this.hashtagsLocal="",this.maxAmountLocal="",this.selectionTypeLocal="",this.spaceTypeLocal="",this.$refs["form-modal"].hide())}},methods:{apply:function(){var t="posts/projects";"cross-posting"===this.objectsType?t="crossPosting":"rss-import"===this.objectsType?t="rssImport":"schedules"===this.objectsType&&(t="posts/schedules"),this.$store.commit("".concat(t,"/form/postsHashtags"),{hashtags:this.hashtagsLocal,maxAmount:this.maxAmountLocal,selectionType:this.selectionTypeLocal,spaceType:this.spaceTypeLocal}),this.isFormOpened=!1}}},x=Object(l.a)(k,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("div",{staticClass:"d-sm-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n      "+t._s(t.$t("form").posts_hashtags.label)+"\n    ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n    ")],1)]),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").posts_hashtags.title},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[e("FormGroupTextarea",{ref:"hashtags-form",attrs:{id:"hashtags-form",label:t.$t("form").posts_hashtags.form.caption,placeholder:t.$t("form").posts_hashtags.form.caption_placeholder,"need-to-redraw":!0,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.hashtagsLocal,callback:function(e){t.hashtagsLocal=e},expression:"hashtagsLocal"}}),t._v(" "),e("FormGroupInput",{attrs:{label:t.$t("form").posts_hashtags.form.max_amount,"input-class":"input-for-numbers"},model:{value:t.maxAmountLocal,callback:function(e){t.maxAmountLocal=e},expression:"maxAmountLocal"}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_hashtags.form.selection_types,name:"selection_type",label:t.$t("form").posts_hashtags.form.selection_type},model:{value:t.selectionTypeLocal,callback:function(e){t.selectionTypeLocal=e},expression:"selectionTypeLocal"}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_hashtags.form.space_types,name:"space_type",label:t.$t("form").posts_hashtags.form.space_type},model:{value:t.spaceTypeLocal,callback:function(e){t.spaceTypeLocal=e},expression:"spaceTypeLocal"}})],1),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light justify-content-between"},[e("div",[e("HelpForm",{attrs:{title:t.$t("help").instructions,"help-id":"31","is-in-form":!0}},[e("PostsHashtagsHelp")],1)],1),t._v(" "),e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n        "+t._s(t.$t("form").posts_hashtags.form.apply_button)+"\n      ")])])])],1
1)},[],!1,null,null,null);e.a=x.exports},function(t,e,o){"use strict";o(15),o(6),o(4),o(9),o(10),o(8),o(7);var n=o(0),r=(o(28),o(1),o(51)),c=o(33),l=o(301),d={actionButtons:[{name:"add",title:"Создать",icon:["fas","plus"],method_name:"createForm"},{name:"edit",title:"Редактировать",icon:["fas","pen"],method_name:"editForm"},{name:"delete",title:"Удалить",icon:["fas","trash"],method_name:"deleteListItem"}]},m=o(60),h=o(72);function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function f(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?_(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var v={mixins:[m.a,h.a],components:{FormSelect:r.default,FormModalHeader:c.default,Form:l.a},model:{prop:"value",event:"change"},props:["value","watermarks"],data:function(){return f({editedItemId:-1},d)},computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}},watermarksComputed:function(){return this.rebuildForSelect(this.watermarks,"name",this.$t("watermarks").form_group.default_value)},actionButtonsComputed:function(){var t=this;return this.actionButtons.map(function(e){return f(f({},e),{},{title:t.$t("watermarks").form_group.action_buttons[e.name]})})}},methods:{closeForm:function(t,e,o){this.$refs["edit-modal"].hide(),"boolean"==typeof t&&t&&(this.$emit("update-watermarks",o),this.$emit("change",e))},editForm:function(){this.editedItemId=this.currentValue,this.$refs["edit-modal"].show()},createForm:function(){this.editedItemId=0,this.$refs["edit-modal"].show()},deleteListItem:function(){var t=this;this.deleteItem("/watermarks/"+this.currentValue,null,this.$t("watermarks").form_group.delete_confirmation,function(e){t.$emit("update-watermarks",e.data.watermarks),t.$emit("change",0)})}}},y=o(5),component=Object(y.a)(v,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v("\n    "+t._s(t.$t("watermarks").form_group.label)+"\n  ")]),t._v(" "),e("div",{staticClass:"input-group"},[e("FormSelect",{attrs:{name:"watermarks",items:t.watermarksComputed,disabled:!t.watermarksComputed.length,"no-items-text":t.$t("watermarks").form_group.no_items},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}}),t._v(" "),e("b-dropdown",{staticClass:"dropdown-no-arrow ms-2",attrs:{right:"",variant:"secondary",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{attrs:{icon:["fas","ellipsis-h"]}})]},proxy:!0}])},[t._v(" "),t._l(t.actionButtonsComputed,function(o,n){return e("b-dropdown-item-button",{key:n,attrs:{"button-class":{"btn-sm":!0,disabled:["edit","delete"].indexOf(o.name)>=0&&!t.currentValue}},on:{click:function(e){return t.callMethodByName(o.method_name,0)}}},[e("span",{staticClass:"dropdown-item-icon me-2"},[e("fa",{attrs:{icon:o.icon}})],1),t._v(t._s(o.title)+"\n      ")])})],2)],1),t._v(" "),e("b-modal",{ref:"edit-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.editedItemId=-1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.editedItemId?t.$t("watermarks").form_group.edit_title:t.$t("watermarks").form_group.create_title},on:{"close-form":t.closeForm}})]},proxy:!0}])},[t._v(" "),t.editedItemId>=0?e("Form",{attrs:{id:t.editedItemId,"is-in-popup":!0},on:{"close-form":t.closeForm}}):t._e()],1)],1)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o.r(e);o(15);var n={model:{prop:"value",event:"change"},props:["name","items","value","customClass","disabled","isPlansButtons"],created:function(){this.items.length&&!this.currentValue&&(this.currentValue=this.items[0].id)},computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",{staticClass:"btn-group",class:[t.customClass?t.customClass:""]},[t._l(t.items,function(o,n){return[e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"btn-check",attrs:{type:"radio",name:t.name,id:t.name+"_"+o.id,disabled:o.disabled||t.disabled},domProps:{value:o.id,checked:t._q(t.currentValue,o.id)},on:{change:function(e){t.currentValue=o.id}}}),t._v(" "),e("label",{key:n,staticClass:"btn btn-sm",class:{active:o.id===t.currentValue,"btn-primary":!t.disabled&&!t.isPlansButtons,"btn-success":!t.disabled&&t.isPlansButtons,"btn-secondary":t.disabled,disabled:(o.disabled||t.disabled)&&o.id!==t.currentValue},attrs:{for:t.name+"_"+o.id}},[t._v("\n      "+t._s(o.value)+"\n      "),o.value_old?e("div",{staticClass:"opacity-50"},[t._v(t._s(o.value_old))]):t._e()])]})],2)},[],!1,null,null,null);e.default=component.exports},function(t,e,o){"use strict";o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(54),r=o(0),c=(o(23),o(45),o(40),o(30)),l=o(67),d=o(69),m=o(47),h=o(33),_=o(134),f=o(56),v=o(46),y=o(110);function k(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function x(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?k(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var w={mixins:[y.b],components:{FormCheckbox:_.a,FormGroupSelect:f.a,FormGroupInput:v.a,HelpForm:l.a,FormGroupTextarea:d.a,FormGroupRadioButtons:m.a,FormModalHeader:h.default},props:["objectsType"],data:function(){return{isFormOpened:!1,localRewriteState:1,localRewriteCommand:"",localNoPostsIfNoRewrite:"",localRewriteForEveryPage:"",localTextModelId:1,localTextModelKey:""}},computed:x(x({},Object(c.c)({state:function(t){return t}})),{},{formState:function(){return"cross-posting"===this.objectsType?this.state.crossPosting.form:"rss-import"===this.objectsType?this.state.rssImport.form:"schedules"===this.objectsType?this.state.posts.schedules.form:this.state.posts.projects.form},rewriteState:function(){return this.formState.postsRewrite.rewriteState},rewriteCommand:function(){return this.formState.postsRewrite.rewriteCommand},noPostsIfNoRewrite:function(){return this.formState.postsRewrite.noPostsIfNoRewrite},rewriteForEveryPage:function(){return this.formState.postsRewrite.rewriteForEveryPage},textModels:function(){var t=this.$t("aiPosting").form.text_models;return"cross-posting"!==this.objectsType?t:[{id:y.a,value:this.$t("form").posts_rewrite.form.text_model_from_settings}].concat(Object(n.a)(t))},defaultTextModelId:function(){return"cross-posting"===this.objectsType?y.a:1},isTextModelFromSettings:function(){return this.localTextModelId===y.a},isTextModelKeyRequired:function(){return this.isAiTextModelKeyRequired(this.localTextModelId)},textModelKeyLabel:function(){return this.getAiModelKeyLabel(this.textModels,this.localTextModelId)},isConfigured:function(){return!(!this.rewriteState||2!==this.rewriteState)},btnName:function(){return this.isConfigured?this.$t("form").posts_rewrite.open_button_two:this.$t("form").posts_rewrite.open_button_one}}),watch:{isFormOpened:function(t){var e=this;t?(this.localRewriteState=this.rewriteState,this.localRewriteCommand=this.rewriteCommand,this.localNoPostsIfNoRewrite=this.noPostsIfNoRewrite,this.localRewriteForEveryPage=this.rewriteForEveryPage,this.localTextModelId=this.formState.postsRewrite.textModelId||this.defaultTextModelId,this.localTextModelKey=this.formState.postsRewrite.textModelKey||"",this.$refs["form-modal"].show(),this.$nextTick(function(){setTimeout(function(){e.$refs["rewrite-command-form"]&&e.$refs["rewrite-command-form"].focus()},200)})):(this.localRewriteState=1,this.localRewriteCommand="",this.localNoPostsIfNoRewrite="",this.localRewriteForEveryPage="",this.localTextModelId=1,this.localTextModelKey="",this.$refs["form-modal"].hide())}},methods:{apply:function(){var t,e=2===this.localRewriteState&&this.isTextModelKeyRequired;if(e&&!String(null!==(t=this.localTextModelKey)&&void 0!==t?t:"").trim().length)return this.bvToast("warning",this.$t("aiPosting").form.prompts.set_model_key),void this.$refs["rewrite-text-model-key"].focus();var o="posts/projects";"cross-posting"===this.objectsType?o="crossPosting":"rss-import"===this.objectsType?o="rssImport":"schedules"===this.objectsType&&(o="posts/schedules"),this.$store.commit("".concat(o,"/form/postsRewrite"),{rewriteState:this.localRewriteState,rewriteCommand:this.localRewriteCommand,noPostsIfNoRewrite:this.localNoPostsIfNoRewrite,rewriteForEveryPage:this.localRewriteForEveryPage,textModelId:this.localTextModelId,textModelKey:e?this.localTextModelKey.trim():""}),this.isFormOpened=!1}}},C=o(5),component=Object(C.a)(w,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("div",{staticClass:"d-sm-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n      "+t._s(t.$t("form").posts_rewrite.label)+"\n    ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n    ")],1)]),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").posts_rewrite.title},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[e("div",{staticClass:"alert alert-info mb-3 text-14 py-2"},[t._v("\n        "+t._s(t.$t("form").posts_rewrite.form.rewrite_description)+"\n      ")]),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_rewrite.form.rewrite_states,name:"rewrite_state",label:t.$t("form").posts_rewrite.form.rewrite_state},model:{value:t.localRewriteState,callback:function(e){t.localRewriteState=e},expression:"localRewriteState"}}),t._v(" "),2===t.localRewriteState?[e("FormGroupSelect",{attrs:{items:t.textModels,label:t.$t("form").posts_rewrite.form.text_model,name:"rewrite_text_model_id"},model:{value:t.localTextModelId,callback:function(e){t.localTextModelId=e},expression:"localTextModelId"}}),t._v(" "),t.isTextModelFromSettings?e("div",{staticClass:"alert alert-info mb-3 text-14 py-2"},[t._v("\n          "+t._s(t.$t("form").posts_rewrite.form.text_model_from_settings_tip)+"\n        ")]):t._e(),t._v(" "),t.isTextModelKeyRequired?e("FormGroupInput",{ref:"rewrite-text-model-key",attrs:{id:"rewrite-text-model-key",label:t.textModelKeyLabel,"label-tip":t.$t("aiPosting").form.model_key_tip,placeholder:t.$t("aiPosting").form.model_key_placeholder},model:{value:t.localTextModelKey,callback:function(e){t.localTextModelKey=e},expression:"localTextModelKey"}}):t._e(),t._v(" "),e("FormGroupTextarea",{ref:"rewrite-command-form",attrs:{id:"rewrite-command-form",label:t.$t("form").posts_rewrite.form.rewrite_command,placeholder:t.$t("form").posts_rewrite.form.rewrite_command_placeholder,"label-tip":t.$t("form").posts_rewrite.form.rewrite_command_tip,"need-to-redraw":!0,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.localRewriteCommand,callback:function(e){t.localRewriteCommand=e},expression:"localRewriteCommand"}}),t._v(" "),e("FormCheckbox",{attrs:{id:"field-no-posts-if-no-rewrite",name:"no_posts_if_no_rewrite",label:t.$t("form").posts_rewrite.form.no_posts_if_no_rewrite,description:t.$t("form").posts_rewrite.form.no_posts_if_no_rewrite_tip},model:{value:t.localNoPostsIfNoRewrite,callback:function(e){t.localNoPostsIfNoRewrite=e},expression:"localNoPostsIfNoRewrite"}}),t._v(" "),e("FormCheckbox",{attrs:{id:"field-rewrite-for-every-page",name:"rewrite_for_every_page",label:t.$t("form").posts_rewrite.form.rewrite_for_every_page,description:t.$t("form").posts_rewrite.form.rewrite_for_every_page_tip},model:{value:t.localRewriteForEveryPage,callback:function(e){t.localRewriteForEveryPage=e},expression:"localRewriteForEveryPage"}})]:t._e()],2),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light justify-content-between"},[e("div"),t._v(" "),e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n        "+t._s(t.$t("form").posts_rewrite.form.apply_button)+"\n      ")])])])],1
1)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(15),o(20),o(130),o(6),o(39),o(43),o(4),o(44),o(22),o(9),o(10),o(8),o(29),o(36),o(7),o(32);var n=o(0),r=(o(23),o(31),o(28),o(1),o(48),o(45),o(40),o(30)),c=o(47),l=o(46),d=o(87),m=o(56),h=o(33),_=o(12);function f(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return v(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?v(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function v(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function y(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function k(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?y(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var x={components:{FormGroupRadioButtons:c.a,FormGroupInput:l.a,FormInput:d.a,FormGroupSelect:m.a,FormModalHeader:h.default},props:["objectsType","formLabel","formTitle","postsLocationStore","searchApi"],data:function(){return{isFormOpened:!1,isLocationsFormOpened:!1,searchType:1,searchQuery:"",locationUrl:"",localValue:this.value,instagramAccountId:0,map:null,mapOptions:{center:{lat:40.7146,lng:-74.0029},zoom:8,zoomControl:!0,mapTypeControl:!1,scaleControl:!0,streetViewControl:!1,rotateControl:!0,fullscreenControl:!1},mapMarker:null,latitude:"",longitude:"",locations:[],selectedLocationId:"",locationLocal:null}},computed:k(k({},Object(r.c)({state:function(t){return t}})),{},{formState:function(){return"cross-posting"===this.objectsType?this.state.crossPosting.form:"rss-import"===this.objectsType?this.state.rssImport.form:"schedules"===this.objectsType?this.state.posts.schedules.form:this.state.posts.projects.form},searchTypeComputed:function(){return this.isVKSearch?2:this.searchType},searchTypesComputed:function(){var t,e=[],o=f(this.$t("form").posts_location.form.search_types);try{for(o.s();!(t=o.n()).done;){var n=t.value;this.isVKSearch&&2!==n.id||e.push(n)}}catch(t){o.e(t)}finally{o.f()}return e},isVKSearch:function(){return this.searchApi.includes("vkontakte")},isCoordsWithName:function(){return this.isVKSearch},location:function(){return this.formState[this.postsLocationStore]&&this.formState[this.postsLocationStore].id?this.formState[this.postsLocationStore]:null},isGoogleMapsLoaded:function(){return this.$store.getters["google/isGoogleMapsLoaded"]},isConfigured:function(){return!!this.location},btnName:function(){return this.isConfigured?this.$t("form").posts_location.open_button_two:this.$t("form").posts_location.open_button_one}}),watch:{searchType:function(t){t&&this.isFormOpened&&2===this.searchType&&this.setMap()},isGoogleMapsLoaded:function(t){2===t&&this.isFormOpened&&this.isGoogleMapsLoaded&&this.setMap()},isFormOpened:function(t){t?(this.locationLocal=this.location?Object(_.cloneDeep)(this.location):null,this.locationLocal&&(this.mapOptions.center.lat=this.locationLocal.latitude,this.mapOptions.center.lng=this.locationLocal.longitude,this.searchQuery=this.locationLocal.name,this.latitude=this.locationLocal.latitude,this.longitude=this.locationLocal.longitude),this.$refs["form-modal"].show(),this.isGoogleMapsLoaded&&2===this.searchTypeComputed&&this.setMap()):this.$refs["form-modal"].hide()},isLocationsFormOpened:function(t){t?this.$refs["locations-form-modal"].show():this.$refs["locations-form-modal"].hide()}},mounted:function(){if(!this.isGoogleMapsLoaded){var script=document.createElement("script");
1script.src="https://maps.googleapis.com/maps/api/js?key="+this.googleMapsApiKey+"&libraries=places",script.type="text/javascript",document.head.appendChild(script),this.$store.commit("google/isGoogleMapsLoaded",!0)}},methods:{apply:function(){var t="posts/projects";"cross-posting"===this.objectsType?t="crossPosting":"rss-import"===this.objectsType?t="rssImport":"schedules"===this.objectsType&&(t="posts/schedules"),this.$store.commit("".concat(t,"/form/").concat(this.postsLocationStore),this.locationLocal),this.isFormOpened=!1},unselectLocation:function(){this.locationLocal=null},applyLocation:function(){if(this.selectedLocationId){for(var t in this.locations)if(this.locations[t].id===this.selectedLocationId){this.locationLocal=this.locations[t];break}this.isLocationsFormOpened=!1}else this.bvToast("warning",this.$t("form").posts_location.form.prompts.select_place)},selectLocation:function(t){this.selectedLocationId=t,this.applyLocation()},search:function(){var t=this,data=this.getSearchData();data&&(this.toggleLoading(!0),this.sendRequest("get",this.searchApi,{params:data},function(e){var data=e.data;t.toggleLoading(!1),t.locations=data.locations,t.selectedLocationId=t.locationLocal?t.locationLocal.id:"",t.isLocationsFormOpened=!0},function(){t.toggleLoading(!1)}))},getSearchData:function(){var t={search_type:this.searchTypeComputed};if(1===this.searchTypeComputed){if(!this.searchQuery.trim())return this.bvToast("warning",this.$t("form").posts_location.form.prompts.set_place_name),this.$refs.search_query.focus(),null;t.search_query=this.searchQuery}else if(2===this.searchTypeComputed){if(!String(this.latitude).trim()||!String(this.longitude).trim())return this.bvToast("warning",this.$t("form").posts_location.form.prompts.set_place_coords),null;this.isCoordsWithName&&(t.search_query=this.searchQuery),t.latitude=this.latitude,t.longitude=this.longitude}return t},setMap:function(){var t=this;setTimeout(function(){t.map=new google.maps.Map(t.$refs["form-map"],t.mapOptions),google.maps.event.addListener(t.map,"click",function(e){t.setMarker(e.latLng.lat(),e.latLng.lng())});var e=t;google.maps.event.addListener(t.map,"center_changed",function(){var t=this.getCenter();e.mapOptions.center.lat=t.lat(),e.mapOptions.center.lng=t.lng()}),t.latitude&&t.longitude&&t.setMarker(t.latitude,t.longitude)},1)},setMarker:function(t,e){this.mapMarker&&this.mapMarker.setMap(null),this.mapMarker=new google.maps.Marker({position:{lat:t,lng:e},map:this.map}),this.latitude=t,this.longitude=e},inputKeypress:function(t){13===t.keyCode&&this.search()}}},w=o(5),component=Object(w.a)(x,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("div",{staticClass:"d-sm-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n        "+t._s(t.formLabel)+"\n      ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n      ")],1)]),t._v(" "),e("b-modal",{ref:"locations-form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isLocationsFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").posts_location.search_results.title},on:{"close-form":function(e){t.isLocationsFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),t.locations.length?t._t("default",function(){return t._l(t.locations,function(o,n){return e("div",{staticClass:"btn btn-light btn-sm text-start d-block",class:{active:o.id===t.selectedLocationId,"mt-2":n},on:{click:function(e){return t.selectLocation(o.id)}}},[e("div",[e("b",[t._v(t._s(o.name))])]),t._v(" "),e("div",{staticClass:"small opacity-75 d-flex"},[e("div",[t._v(t._s(t.$t("form").posts_location.latitude)+": "+t._s(o.latitude))]),t._v(" "),e("div",{staticClass:"ms-2"},[t._v(t._s(t.$t("form").posts_location.longitude)+": "+t._s(o.longitude))])]),t._v(" "),e("div",{staticClass:"mt-2 small text-secondary"},[t._v("id: "+t._s(o.id))])])})}):t._e(),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.applyLocation}},[t._v("\n          "+t._s(t.$t("form").posts_location.apply)+"\n        ")])])],2),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.formTitle},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),t.searchTypesComputed.length>1?e("FormGroupRadioButtons",{attrs:{value:t.searchTypeComputed,items:t.searchTypesComputed,name:"search_type",label:t.$t("form").posts_location.form.search_type},on:{change:function(e){t.searchType=e}}}):t._e(),t._v(" "),2===t.searchTypeComputed?e("div",{ref:"form-map",staticClass:"mb-3 form-map"}):t._e(),t._v(" "),2===t.searchTypeComputed?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-label"},[t._v("\n          "+t._s(t.$t("form").posts_location.form.coords)+"\n        ")]),t._v(" "),e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col pe-2"},[e("FormInput",{attrs:{placeholder:t.$t("form").posts_location.latitude.toLowerCase()},model:{value:t.latitude,callback:function(e){t.latitude=e},expression:"latitude"}})],1),t._v(" "),e("div",{staticClass:"col px-2",class:t.isCoordsWithName?"ps-2":"px-2"},[e("FormInput",{attrs:{placeholder:t.$t("form").posts_location.longitude.toLowerCase()},model:{value:t.longitude,callback:function(e){t.longitude=e},expression:"longitude"}})],1),t._v(" "),t.isCoordsWithName?t._e():e("div",{staticClass:"col col-auto ps-2"},[e("div",{staticClass:"btn btn-primary btn-sm",on:{click:t.search}},[t._v("\n              "+t._s(t.$t("form").posts_location.form.search_btn)+"\n            ")])])])]):t._e(),t._v(" "),1===t.searchTypeComputed||2===t.searchTypeComputed&&t.isCoordsWithName?e("FormGroupInput",{ref:"search_query",attrs:{label:t.$t("form").posts_location.form.place_name,"label-tip":t.$t("form").posts_location.form.place_tip,placeholder:2===t.searchTypeComputed?t.$t("form").posts_location.form.place_placeholder_1:t.$t("form").posts_location.form.place_placeholder_2,"btn-name-to-append":t.$t("form").posts_location.form.search_btn,id:"search_query"},on:{"btn-to-append-click":t.search,keypress:t.inputKeypress},model:{value:t.searchQuery,callback:function(e){t.searchQuery=e},expression:"searchQuery"}}):t._e(),t._v(" "),t.locationLocal?e("div",{staticClass:"row g-0 p-3 bg-primary text-white btn-sm rounded"},[e("div",{staticClass:"col pe-3"},[e("div",[e("b",[t._v(t._s(t.locationLocal.name))])]),t._v(" "),e("div",{staticClass:"small opacity-75"},[e("div",[t._v(t._s(t.$t("form").posts_location.latitude)+": "+t._s(t.locationLocal.latitude))]),t._v(" "),e("div",[t._v(t._s(t.$t("form").posts_location.longitude)+": "+t._s(t.locationLocal.longitude))])]),t._v(" "),e("div",{staticClass:"mt-2 small opacity-75"},[t._v("id: "+t._s(t.locationLocal.id))])]),t._v(" "),e("div",{staticClass:"col-auto d-flex align-items-center"},[e("div",{staticClass:"btn btn-primary btn-sm",on:{click:t.unselectLocation}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])]):e("div",{staticClass:"bg-light p-3 text-center text-secondary rounded"},[t._v("\n        "+t._s(t.$t("form").posts_location.form.place_not_selected)+"\n      ")]),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n          "+t._s(t.$t("form").posts_location.apply)+"\n        ")])])],1)],1)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(23),o(4),o(31),o(34),o(22),o(1),o(48),o(6),o(39),o(43),o(44),o(15),o(9),o(10),o(8),o(20),o(29),o(36),o(7
1),o(32);var n=o(0),r=(o(28),o(40),o(30)),c=o(46),l=o(51),d=o(33);function m(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return h(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?h(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function h(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function f(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?_(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var v={mixins:[o(221).a],components:{FormGroupInput:c.a,FormSelect:l.default,FormModalHeader:d.default},props:{objectsType:{type:String,default:""},canRepeat:{type:Boolean,default:!1},canAddLinkToPostInComment:{type:Boolean,default:!1},canWorkWithVideos:{type:Boolean,default:!0},socialNetworks:{type:Array,default:function(){return[]}}},data:function(){return{isFormOpened:!1,isPostsRepeatedLocal:!1,isUniqueContentLocal:!1,isRandomContentLocal:!1,isCommentsDisabledLocal:!1,publishAsStoryLocal:!1,publishAsStorySourceIdsLocal:"",publishByAccountSourceIdsLocal:"",publishAsReelsLocal:!1,publishReelsAsTrialLocal:!1,publishAsClipsLocal:!1,publishAsShortsLocal:!1,publishAsArticleLocal:!1,publishAsArticleByLinkLocal:!1,publishInChannelLocal:!1,shareStoriesToFeedLocal:!1,shareStoriesToFeedSourceIdsLocal:"",shareReelsToFeedLocal:!1,shareClipsToFeedLocal:!1,shareClipsToFeedWithTextLocal:!1,shareClipsToFeedIfNoVideoLocal:!1,shareChannelToFeedLocal:!1,expandClipsTitleLocal:!1,publishAsUserLocal:!1,addLinkToUserLocal:!1,messageToCommunityLocal:!1,messageToChannelLocal:!1,downloadVkVideosLocal:!1,saveVkVideosNamesLocal:!1,planByNetworkLocal:!1,publishAsCarouselLocal:!1,publishOnlyInVideosLocal:!1,notPublishInVideosLocal:!1,repeatVideoLocal:!1,parseLinksLocal:!1,publishByAccountLocal:!1,privacyLevelLocal:0,youtubeCategoryLocal:0,donutPaidDurationLocal:0,deletePostsDayLocal:0,deletePostsHourLocal:0,addLinkToPostInCommentLocal:!1,utmTagsLocal:"",settingsAllowedForSourcesIds:{delete_post:[1,2,3,7,9],donut_paid_duration:[1],disable_comments:[1,2,7,9,10],pin_post:[1],download_vk_videos:[1],save_vk_videos_names:[1],plan_by_network:[1],publish_as_carousel:[1],publish_only_in_videos:[1],not_publish_in_videos:[1],repeat_video:[1],parse_links:[1,2,6,9],is_ad:[1,2],ord_contract_id:[1],publish_as_story:[1,2,7,9,10,22],publish_as_reels:[3,7,10],publish_reels_as_trial:[7,10],publish_as_clips:[1],publish_as_shorts:[17],publish_as_article:[1,13],publish_as_article_by_link:[1],publish_in_channel:[1],share_stories_to_feed:[1,2,7,9,10,22],share_reels_to_feed:[3,7,10],share_clips_to_feed:[1],share_clips_to_feed_with_text:[1],share_clips_to_feed_if_no_video:[1],share_channel_to_feed:[1],expand_clips_title:[1],publish_as_user:[1],add_link_to_user:[1],message_to_community:[1],message_to_channel:[1],privacy_level:[1,14,17],youtube_category:[17],publish_by_account:[9]},publishAsStorySources:[{id:1,icon:"vk"},{id:2,icon:"ok"},{id:7,icon:"ig"},{id:9,icon:"tg"},{id:10,icon:"ig"},{id:22,icon:"wa"}],publishByAccountSources:[{id:1,icon:"vk"},{id:9,icon:"tg"}]}},computed:f(f({},Object(r.c)({projectForm:function(t){return t.posts.projects.form},schedulesForm:function(t){return t.posts.schedules.form},crossPostingForm:function(t){return t.crossPosting.form},rssImportForm:function(t){return t.rssImport.form}})),{},{publishAsStorySourcesComputed:function(){var t=this;return this.publishAsStorySources.filter(function(e){return(10!==e.id||!t.config.source_ids.includes(7))&&t.config.source_ids.includes(e.id)})},publishByAccountSourcesComputed:function(){var t=this;return this.publishByAccountSources.filter(function(e){return t.config.source_ids.includes(e.id)})},formState:function(){return"projects"===this.objectsType?this.projectForm:"schedules"===this.objectsType?this.schedulesForm:"cross-posting"===this.objectsType?this.crossPostingForm:"rss-import"===this.objectsType?this.rssImportForm:null},isPostsRepeated:function(){var t;return null!==(t=this.formState.isPostsRepeated)&&void 0!==t&&t},isUniqueContent:function(){var t;return null!==(t=this.formState.isUniqueContent)&&void 0!==t&&t},isRandomContent:function(){var t;return null!==(t=this.formState.isRandomContent)&&void 0!==t&&t},isCommentsDisabled:function(){return this.formState.isCommentsDisabled},publishAsStory:function(){return this.formState.publishAsStory},publishAsStorySourceIds:function(){return this.formState.publishAsStorySourceIds},publishByAccountSourceIds:function(){return this.formState.publishByAccountSourceIds},publishAsReels:function(){return this.formState.publishAsReels},publishReelsAsTrial:function(){return this.formState.publishReelsAsTrial},publishAsClips:function(){return this.formState.publishAsClips},publishAsShorts:function(){return this.formState.publishAsShorts},publishAsArticle:function(){return this.formState.publishAsArticle},publishAsArticleByLink:function(){return this.formState.publishAsArticleByLink},publishInChannel:function(){return this.formState.publishInChannel},shareStoriesToFeed:function(){return this.formState.shareStoriesToFeed},shareStoriesToFeedSourceIds:function(){return this.formState.shareStoriesToFeedSourceIds},shareReelsToFeed:function(){return this.formState.shareReelsToFeed},shareClipsToFeed:function(){return this.formState.shareClipsToFeed},shareClipsToFeedWithText:function(){return this.formState.shareClipsToFeedWithText},shareClipsToFeedIfNoVideo:function(){return this.formState.shareClipsToFeedIfNoVideo},shareChannelToFeed:function(){return this.formState.shareChannelToFeed},expandClipsTitle:function(){return this.formState.expandClipsTitle},publishAsUser:function(){return this.formState.publishAsUser},addLinkToUser:function(){return this.formState.addLinkToUser},messageToCommunity:function(){return this.formState.messageToCommunity},messageToChannel:function(){return this.formState.messageToChannel},downloadVkVideos:function(){return this.formState.downloadVkVideos},saveVkVideosNames:function(){return this.formState.saveVkVideosNames},planByNetwork:function(){return this.formState.planByNetwork}
1,publishAsCarousel:function(){return this.formState.publishAsCarousel},publishOnlyInVideos:function(){return this.formState.publishOnlyInVideos},notPublishInVideos:function(){return this.formState.notPublishInVideos},repeatVideo:function(){return this.formState.repeatVideo},parseLinks:function(){return this.formState.parseLinks},publishByAccount:function(){return this.formState.publishByAccount},deletePostsDay:function(){return this.formState.deletePostsDay},deletePostsHour:function(){return this.formState.deletePostsHour},addLinkToPostInComment:function(){return this.formState.addLinkToPostInComment},privacyLevel:function(){return this.formState.privacyLevel},youtubeCategory:function(){return this.formState.youtubeCategory},donutPaidDuration:function(){return this.formState.donutPaidDuration},utmTags:function(){return this.formState.utmTags},isConfigured:function(){return this.canRepeat&&this.isPostsRepeated||this.isCommentsDisabled||this.isUniqueContent||this.publishAsStory||this.shareReelsToFeed||this.publishReelsAsTrial||this.publishAsClips||this.publishAsShorts||this.publishAsArticle||this.publishInChannel||this.publishAsUser||this.addLinkToUser||this.messageToCommunity||this.messageToChannel||this.downloadVkVideos||this.saveVkVideosNames||this.planByNetwork||this.publishAsCarousel||this.publishOnlyInVideos||this.notPublishInVideos||this.repeatVideo||this.parseLinks||this.publishByAccount||this.privacyLevel||this.youtubeCategory||this.donutPaidDuration||this.deletePostsDay||this.deletePostsHour||this.canAddLinkToPostInComment&&this.addLinkToPostInComment||this.utmTags},btnName:function(){return this.isConfigured?this.$t("form").other_settings.open_button_two:this.$t("form").other_settings.open_button_one},unusedSourcesIds:function(){return this.$store.getters["socialNetworksSettings/unusedSourcesIds"]}}),watch:{publishAsStoryLocal:function(t){var e=this;t||setTimeout(function(){e.shareStoriesToFeedLocal=!1},0)},publishAsStorySourceIdsLocal:function(){var t=this;setTimeout(function(){t.shareStoriesToFeedSourceIdsLocal=t.sourceIdsToArray(t.shareStoriesToFeedSourceIdsLocal).filter(function(e){return t.sourceIdsToArray(t.publishAsStorySourceIdsLocal).includes(e)}).join(",")},0)},publishAsReelsLocal:function(t){t||(this.shareReelsToFeedLocal=!1)},publishInChannelLocal:function(t){t||(this.shareChannelToFeedLocal=!1)},publishAsClipsLocal:function(t){t||(this.shareClipsToFeedLocal=!1,this.shareClipsToFeedIfNoVideoLocal=!1,this.expandClipsTitleLocal=!1)},shareClipsToFeedLocal:function(t){t||(this.shareClipsToFeedWithTextLocal=!1)},isPostsRepeatedLocal:function(t){t||(this.isRandomContentLocal=!1)},isFormOpened:function(t){var e=this;t?(this.isPostsRepeatedLocal=this.isPostsRepeated,this.isUniqueContentLocal=this.isUniqueContent,this.isRandomContentLocal=this.isRandomContent,this.isCommentsDisabledLocal=this.isCommentsDisabled,this.publishAsStoryLocal=this.publishAsStory,this.publishAsStorySourceIdsLocal=this.publishAsStorySourceIds,this.publishByAccountSourceIdsLocal=this.publishByAccountSourceIds,this.publishAsReelsLocal=this.publishAsReels,this.publishReelsAsTrialLocal=this.publishReelsAsTrial,this.publishAsClipsLocal=this.publishAsClips,this.publishAsShortsLocal=this.publishAsShorts,this.publishAsArticleLocal=this.publishAsArticle,this.publishAsArticleByLinkLocal=this.publishAsArticleByLink,this.publishInChannelLocal=this.publishInChannel,this.shareStoriesToFeedLocal=this.shareStoriesToFeed,this.shareStoriesToFeedSourceIdsLocal=this.shareStoriesToFeedSourceIds,this.shareReelsToFeedLocal=this.shareReelsToFeed,this.shareClipsToFeedLocal=this.shareClipsToFeed,this.shareClipsToFeedWithTextLocal=this.shareClipsToFeedWithText,this.shareClipsToFeedIfNoVideoLocal=this.shareClipsToFeedIfNoVideo,this.shareChannelToFeedLocal=this.shareChannelToFeed,this.expandClipsTitleLocal=this.expandClipsTitle,this.publishAsUserLocal=this.publishAsUser,this.addLinkToUserLocal=this.addLinkToUser,this.messageToCommunityLocal=this.messageToCommunity,this.messageToChannelLocal=this.messageToChannel,this.downloadVkVideosLocal=this.downloadVkVideos,this.saveVkVideosNamesLocal=this.saveVkVideosNames,this.planByNetworkLocal=this.planByNetwork,this.publishAsCarou
1selLocal=this.publishAsCarousel,this.publishOnlyInVideosLocal=this.publishOnlyInVideos,this.notPublishInVideosLocal=this.notPublishInVideos,this.repeatVideoLocal=this.repeatVideo,this.parseLinksLocal=this.parseLinks,this.publishByAccountLocal=this.publishByAccount,this.privacyLevelLocal=this.privacyLevel,this.youtubeCategoryLocal=this.youtubeCategory,this.donutPaidDurationLocal=this.donutPaidDuration,this.deletePostsDayLocal=this.deletePostsDay,this.deletePostsHourLocal=this.deletePostsHour,this.addLinkToPostInCommentLocal=this.addLinkToPostInComment,this.utmTagsLocal=this.utmTags,this.$refs["form-modal"].show()):(this.$refs["form-modal"].hide(),setTimeout(function(){e.isPostsRepeatedLocal=!1,e.isUniqueContentLocal=!1,e.isRandomContentLocal=!1,e.isCommentsDisabledLocal=!1,e.publishAsStoryLocal=!1,e.publishAsStorySourceIdsLocal="",e.publishAsReelsLocal=!1,e.publishReelsAsTrialLocal=!1,e.publishAsClipsLocal=!1,e.publishAsShortsLocal=!1,e.publishAsArticleLocal=!1,e.publishAsArticleByLinkLocal=!1,e.publishInChannelLocal=!1,e.shareStoriesToFeedLocal=!1,e.shareStoriesToFeedSourceIdsLocal="",e.shareReelsToFeedLocal=!1,e.shareClipsToFeedLocal=!1,e.shareClipsToFeedWithTextLocal=!1,e.shareClipsToFeedIfNoVideoLocal=!1,e.shareChannelToFeedLocal=!1,e.expandClipsTitleLocal=!1,e.publishAsUserLocal=!1,e.addLinkToUserLocal=!1,e.messageToCommunityLocal=!1,e.messageToChannelLocal=!1,e.downloadVkVideosLocal=!1,e.saveVkVideosNamesLocal=!1,e.planByNetworkLocal=!1,e.publishAsCarouselLocal=!1,e.publishOnlyInVideosLocal=!1,e.notPublishInVideosLocal=!1,e.repeatVideoLocal=!1,e.parseLinksLocal=!1,e.publishByAccountLocal=!1,e.publishByAccountSourceIdsLocal="",e.privacyLevelLocal=0,e.youtubeCategoryLocal=0,e.donutPaidDurationLocal=0,e.deletePostsDayLocal=0,e.deletePostsHourLocal=0,e.addLinkToPostInCommentLocal=!1,e.utmTagsLocal=""},300))}},methods:{socialIcons:function(t){var e=this;return t.filter(function(t){return(10!==t||!e.config.source_ids.includes(7))&&e.config.source_ids.includes(t)}).map(function(t){var o,n=m(e.socialNetworks);try{for(n.s();!(o=n.n()).done;){var r=o.value;if(parseInt(r.source_id)===t)return r.icon}}catch(t){n.e(t)}finally{n.f()}})},isAttachmentTypeAllowed:function(t){var e=this;return t.filter(function(t){return!(e.unusedSourcesIds.includes(parseInt(t))||!e.config.source_ids.includes(parseInt(t)))}).length},sourceIdsToArray:function(t){return t.split(",").filter(function(t){return!!t}).map(function(t){return parseInt(t)})},updateStateByField:function(t,e){"projects"===this.objectsType?this.$store.commit("posts/projects/form/"+t,e):"schedules"===this.objectsType?this.$store.commit("posts/schedules/form/"+t,e):"cross-posting"===this.objectsType?this.$store.commit("crossPosting/form/"+t,e):"rss-import"===this.objectsType&&this.$store.commit("rssImport/form/"+t,e)},apply:function(){this.updateStateByField("isUniqueContent",this.isUniqueContentLocal),this.canRepeat&&(this.updateStateByField("isPostsRepeated",this.isPostsRepeatedLocal),this.updateStateByField("isRandomContent",this.isRandomContentLocal)),this.updateStateByField("isCommentsDisabled",this.isCommentsDisabledLocal),this.updateStateByField("publishAsStory",this.publishAsStoryLocal),this.updateStateByField("publishAsStorySourceIds",this.publishAsStorySourceIdsLocal),this.updateStateByField("publishAsReels",this.publishAsReelsLocal),this.updateStateByField("publishReelsAsTrial",this.publishReelsAsTrialLocal),this.updateStateByField("publishAsClips",this.publishAsClipsLocal),this.updateStateByField("publishAsShorts",this.publishAsShortsLocal),this.updateStateByField("publishAsArticle",this.publishAsArticleLocal),this.updateStateByField("publishAsArticleByLink",this.publishAsArticleByLinkLocal),this.updateStateByField("publishInChannel",this.publishInChannelLocal),this.updateStateByField("shareStoriesToFeed",this.shareStoriesToFeedLocal),this.updateStateByField("shareStoriesToFeedSourceIds",this.shareStoriesToFeedSourceIdsLocal),this.updateStateByField("shareReelsToFeed",this.shareReelsToFeedLocal),this.updateStateByField("shareClipsToFeed",this.shareClipsToFeedLocal),this.updateStateByField("shareClipsToFeedWithText",this.shareClipsToFeedWithTextLocal),this.updateStateByField("shareClipsToFeedIfNoVideo",this.shareClipsToFeedIfNoVideoLocal),this.updateStateByField("shareChannelToFeed",this.shareChannelToFeedLocal),this.updateStateByField("expandClipsTitle",this.expandClipsTitleLocal),this.updateStateByField("publishAsUser",this.publishAsUserLocal),this.updateStateByField("addLinkToUser",this.addLinkToUserLocal),this.updateStateByField("messageToCommunity",this.messageToCommunityLocal),this.updateStateByField("messageToChannel",this.messageToChannelLocal),this.updateStateByField("downloadVkVideos",this.downloadVkVideosLocal),this.updateStateByField("saveVkVideosNames",this.saveVkVideosNamesLocal),this.updateStateByField("planByNetwork",this.planByNetworkLocal),this.updateStateByField("publishAsCarou
1sel",this.publishAsCarouselLocal),this.updateStateByField("publishOnlyInVideos",this.publishOnlyInVideosLocal),this.updateStateByField("notPublishInVideos",this.notPublishInVideosLocal),this.updateStateByField("repeatVideo",this.repeatVideoLocal),this.updateStateByField("parseLinks",this.parseLinksLocal),this.updateStateByField("publishByAccount",this.publishByAccountLocal),this.updateStateByField("publishByAccountSourceIds",this.publishByAccountSourceIdsLocal),this.updateStateByField("privacyLevel",this.privacyLevelLocal),this.updateStateByField("youtubeCategory",this.youtubeCategoryLocal),this.updateStateByField("donutPaidDuration",this.donutPaidDurationLocal),this.updateStateByField("deletePostsDay",this.deletePostsDayLocal),this.updateStateByField("deletePostsHour",this.deletePostsHourLocal),this.canAddLinkToPostInComment&&this.updateStateByField("addLinkToPostInComment",this.addLinkToPostInCommentLocal),this.updateStateByField("utmTags",this.utmTagsLocal),this.isFormOpened=!1}}},y=o(5),component=Object(y.a)(v,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("div",{staticClass:"d-sm-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n        "+t._s(t.$t("form").other_settings.label)+"\n      ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n      ")],1)]),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").other_settings.title},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"mb-3"},[t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_clips)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsClipsLocal,expression:"publishAsClipsLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_clips"},domProps:{checked:Array.isArray(t.publishAsClipsLocal)?t._i(t.publishAsClipsLocal,null)>-1:t.publishAsClipsLocal},on:{change:function(e){var o=t.publishAsClipsLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsClipsLocal=o.concat([null])):c>-1&&(t.publishAsClipsLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsClipsLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_clips"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.publish_as_clips)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_clips),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_clips_to_feed)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareClipsToFeedLocal,expression:"shareClipsToFeedLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_clips_to_feed",disabled:!t.publishAsClipsLocal},domProps:{checked:Array.isArray(t.shareClipsToFeedLocal)?t._i(t.shareClipsToFeedLocal,null)>-1:t.shareClipsToFeedLocal},on:{change:function(e){var o=t.shareClipsToFeedLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareClipsToFeedLocal=o.concat([null])):c>-1&&(t.shareClipsToFeedLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.shareClipsToFeedLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_clips_to_feed"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.share_clips_to_feed)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_clips_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_clips_to_feed_with_text)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareClipsToFeedWithTextLocal,expression:"shareClipsToFeedWithTextLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_clips_to_feed_with_text",disabled:!t.shareClipsToFeedLocal},domProps:{checked:Array.isArray(t.shareClipsToFeedWithTextLocal)?t._i(t.shareClipsToFeedWithTextLocal,null)>-1:t.shareClipsToFeedWithTextLocal},on:{change:function(e){var o=t.shareClipsToFeedWithTextLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareClipsToFeedWithTextLocal=o.concat([null])):c>-1&&(t.shareClipsToFeedWithTextLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.shareClipsToFeedWithTextLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_clips_to_feed_with_text"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.share_clips_to_feed_with_text)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_clips_to_feed_with_text),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_clips_to_feed_if_no_video)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareClipsToFeedIfNoVideoLocal,expression:"shareClipsToFeedIfNoVideoLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_clips_to_feed_if_no_video",disabled:!t.publishAsClipsLocal},domProps:{checked:Array.isArray(t.shareClipsToFeedIfNoVideoLocal)?t._i(t.shareClipsToFeedIfNoVideoLocal,null)>-1:t.shareClipsToFeedIfNoVideoLocal},on:{change:function(e){var o=t.shareClipsToFeedIfNoVideoLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareClipsToFeedIfNoVideoLocal=o.concat([null])):c>-1&&(t.shareClipsToFeedIfNoVideoLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.shareClipsToFeedIfNoVideoLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_clips_to_feed_if_no_video"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.share_clips_to_feed_if_no_video)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_clips_to_feed_if_no_video),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_story)?e("div",{class:t.publishAsStoryLocal?"px-2 py-2 rounded-2 border border-light mb-2 mt-2":"form-check-mb"},[e("div",{class:t.publishAsStoryLocal?"px-1":""},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsStoryLocal,expression:"publishAsStoryLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_story"},domProps:{checked:Array.isArray(t.publishAsStoryLocal)?t._i(t.publishAsStoryLocal,null)>-1:t.publishAsStoryLocal},on:{change:function(e){var o=t.publishAsStoryLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsStoryLocal=o.concat([null])):c>-1&&(t.publishAsStoryLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsStoryLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_story"}},[t._v("\n                "+t._s(t.$t("form").other_settings.form.publish_as_story)+"\n                "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_story),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]),t._v(" "),t.publishAsStoryLocal?[e("div",{staticClass:"d-flex my-2 form-social-networks"},[t._l(t.publishAsStorySourcesComputed,function(n){return[e("input",{key:"checkbox_".concat(n.id),staticClass:"btn-check",attrs:{type:"checkbox",name:"publish_as_story_s".concat(n.id),id:"publish_as_story_s".concat(n.id)},domProps:{checked:t.sourceIdsToArray(t.publishAsStorySourceIdsLocal).includes(n.id
1)},on:{change:function(e){t.publishAsStorySourceIdsLocal=e.target.checked?t.sourceIdsToArray(t.publishAsStorySourceIdsLocal).concat([n.id]).join(","):t.sourceIdsToArray(t.publishAsStorySourceIdsLocal).filter(function(t){return t!==n.id}).join(",")}}}),t._v(" "),e("label",{key:"label_".concat(n.id),staticClass:"btn btn-sm d-flex align-items-center justify-content-center me-1 social-network-btn",class:[t.sourceIdsToArray(t.publishAsStorySourceIdsLocal).includes(n.id)?"btn-primary":"btn-light"],attrs:{for:"publish_as_story_s".concat(n.id)}},[e("img",{class:{"white-filter":t.sourceIdsToArray(t.publishAsStorySourceIdsLocal).includes(n.id)},attrs:{src:o(18)("./".concat(n.icon,".svg")),alt:""}})])]})],2),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareStoriesToFeedLocal,expression:"shareStoriesToFeedLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_stories_to_feed"},domProps:{checked:Array.isArray(t.shareStoriesToFeedLocal)?t._i(t.shareStoriesToFeedLocal,null)>-1:t.shareStoriesToFeedLocal},on:{change:function(e){var o=t.shareStoriesToFeedLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareStoriesToFeedLocal=o.concat([null])):c>-1&&(t.shareStoriesToFeedLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.shareStoriesToFeedLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_stories_to_feed"}},[t._v("\n                  "+t._s(t.$t("form").other_settings.form.share_stories_to_feed)+"\n                ")])]),t._v(" "),t.shareStoriesToFeedLocal?e("div",{staticClass:"d-flex mt-2 mb-1 form-social-networks"},[t._l(t.publishAsStorySourcesComputed,function(n){return[e("input",{key:"checkbox_".concat(n.id),staticClass:"btn-check",attrs:{type:"checkbox",name:"share_stories_to_feed_s".concat(n.id),id:"share_stories_to_feed_s".concat(n.id),disabled:!t.sourceIdsToArray(t.publishAsStorySourceIdsLocal).includes(n.id)},domProps:{checked:t.sourceIdsToArray(t.shareStoriesToFeedSourceIdsLocal).includes(n.id)},on:{change:function(e){t.shareStoriesToFeedSourceIdsLocal=e.target.checked?t.sourceIdsToArray(t.shareStoriesToFeedSourceIdsLocal).concat([n.id]).join(","):t.sourceIdsToArray(t.shareStoriesToFeedSourceIdsLocal).filter(function(t){return t!==n.id}).join(",")}}}),t._v(" "),e("label",{key:"label_".concat(n.id),staticClass:"btn btn-sm d-flex align-items-center justify-content-center me-1 social-network-btn",class:[t.sourceIdsToArray(t.shareStoriesToFeedSourceIdsLocal).includes(n.id)?"btn-primary":"btn-light"],attrs:{for:"share_stories_to_feed_s".concat(n.id)}},[e("img",{class:{"white-filter":t.sourceIdsToArray(t.shareStoriesToFeedSourceIdsLocal).includes(n.id)},attrs:{src:o(18)("./".concat(n.icon,".svg")),alt:""}})])]})],2):t._e()]:t._e()],2)]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_in_channel)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishInChannelLocal,expression:"publishInChannelLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_in_channel"},domProps:{checked:Array.isArray(t.publishInChannelLocal)?t._i(t.publishInChannelLocal,null)>-1:t.publishInChannelLocal},on:{change:function(e){var o=t.publishInChannelLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishInChannelLocal=o.concat([null])):c>-1&&(t.publishInChannelLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishInChannelLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_in_channel"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.publish_in_channel))]),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_in_channel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_channel_to_feed)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareChannelToFeedLocal,expression:"shareChannelToFeedLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_channel_to_feed",disabled:!t.publishInChannelLocal},domProps:{checked:Array.isArray(t.shareChannelToFeedLocal)?t._i(t.shareChannelToFeedLocal,null)>-1:t.shareChannelToFeedLocal},on:{change:function(e){var o=t.shareChannelToFeedLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareChannelToFeedLocal=o.concat([null])):c>-1&&(t.shareChannelToFeedLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.shareChannelToFeedLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_channel_to_feed"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.share_channel_to_feed)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_channel_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_shorts)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsShortsLocal,expression:"publishAsShortsLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_shorts"},domProps:{checked:Array.isArray(t.publishAsShortsLocal)?t._i(t.publishAsShortsLocal,null)>-1:t.publishAsShortsLocal},on:{change:function(e){var o=t.publishAsShortsLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsShortsLocal=o.concat([null])):c>-1&&(t.publishAsShortsLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsShortsLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_shorts"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.publish_as_shorts)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_shorts),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_reels_to_feed)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareReelsToFeedLocal,expression:"shareReelsToFeedLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_reels_to_feed"},domProps:{checked:Array.isArray(t.shareReelsToFeedLocal)?t._i(t.shareReelsToFeedLocal,null)>-1:t.shareReelsToFeedLocal},on:{change:function(e){var o=t.shareReelsToFeedLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareReelsToFeedLocal=o.concat([null])):c>-1&&(t.shareReelsToFeedLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.shareReelsToFeedLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_reels_to_feed"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.share_reels_to_feed)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_reels_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_reels_as_trial)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishReelsAsTrialLocal,expression:"publishReelsAsTrialLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_reels_as_trial"},domProps:{checked:Array.isArray(t.publishReelsAsTrialLocal)?t._i(t.publishReelsAsTrialLocal,null)>-1:t.publishReelsAsTrialLocal},on:{change:function(e){var o=t.publishReelsAsTrialLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishReelsAsTrialLocal=o.concat([null])):c>-1&&(t.publishReelsAsTrialLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishReelsAsTrialLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_reels_as_trial"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.publish_reels_as_trial)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_reels_as_trial),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_article)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsArticleLocal,expression:"publishAsArticleLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_article"},domProps:{checked:Array.isArray(t.publishAsArticleLocal)?t._i(t.publishAsArticleLocal,null)>-1:t.publishAsArticleLocal},on:{change:function(e){var o=t.publishAsArticleLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsArticleLocal=o.concat([null])):c>-1&&(t.publishAsArticleLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsArticleLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_article"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.publish_as_article)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_article),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.message_to_community)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.messageToCommunityLocal,expression:"messageToCommunityLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"message_to_community"},domProps:{checked:Array.isArray(t.messageToCommunityLocal)?t._i(t.messageToCommunityLocal,null)>-1:t.messageToCommunityLocal},on:{change:function(e){var o=t.messageToCommunityLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.messageToCommunityLocal=o.concat([null])):c>-1&&(t.messageToCommunityLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.messageToCommunityLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"message_to_community"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.message_to_community)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.message_to_community),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.message_to_channel)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.messageToChannelLocal,expression:"messageToChannelLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"message_to_channel"},domProps:{checked:Array.isArray(t.messageToChannelLocal)?t._i(t.messageToChannelLocal,null)>-1:t.messageToChannelLocal},on:{change:function(e){var o=t.messageToChannelLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.messageToChannelLocal=o.concat([null])):c>-1&&(t.messageToChannelLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.messageToChannelLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"message_to_channel"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.message_to_channel)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.message_to_channel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_carousel)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsCarouselLocal,expression:"publishAsCarouselLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_carousel"},domProps:{checked:Array.isArray(t.publishAsCarouselLocal)?t._i(t.publishAsCarouselLocal,null)>-1:t.publishAsCarouselLocal},on:{change:function(e){var o=t.publishAsCarouselLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsCarouselLocal=o.concat([null])):c>-1&&(t.publishAsCarouselLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsCarouselLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_carousel"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.publish_as_carousel)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_carousel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_only_in_videos)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishOnlyInVideosLocal,expression:"publishOnlyInVideosLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_only_in_videos"},domProps:{checked:Array.isArray(t.publishOnlyInVideosLocal)?t._i(t.publishOnlyInVideosLocal,null)>-1:t.publishOnlyInVideosLocal},on:{change:function(e){var o=t.publishOnlyInVideosLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);
1n.checked?c<0&&(t.publishOnlyInVideosLocal=o.concat([null])):c>-1&&(t.publishOnlyInVideosLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishOnlyInVideosLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_only_in_videos"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.publish_only_in_videos))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.publish_only_in_videos_tip,expression:"$t('form')['other_settings']['form']['publish_only_in_videos_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_only_in_videos),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.not_publish_in_videos)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.notPublishInVideosLocal,expression:"notPublishInVideosLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"not_publish_in_videos"},domProps:{checked:Array.isArray(t.notPublishInVideosLocal)?t._i(t.notPublishInVideosLocal,null)>-1:t.notPublishInVideosLocal},on:{change:function(e){var o=t.notPublishInVideosLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.notPublishInVideosLocal=o.concat([null])):c>-1&&(t.notPublishInVideosLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.notPublishInVideosLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"not_publish_in_videos"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.not_publish_in_videos))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.not_publish_in_videos_tip,expression:"$t('form')['other_settings']['form']['not_publish_in_videos_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.not_publish_in_videos),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.canWorkWithVideos&&t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.download_vk_videos)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.downloadVkVideosLocal,expression:"downloadVkVideosLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"download_vk_videos"},domProps:{checked:Array.isArray(t.downloadVkVideosLocal)?t._i(t.downloadVkVideosLocal,null)>-1:t.downloadVkVideosLocal},on:{change:function(e){var o=t.downloadVkVideosLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.downloadVkVideosLocal=o.concat([null])):c>-1&&(t.downloadVkVideosLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.downloadVkVideosLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"download_vk_videos"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.download_vk_videos))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.download_vk_videos_tip,expression:"$t('form')['other_settings']['form']['download_vk_videos_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.download_vk_videos),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.canWorkWithVideos&&t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.save_vk_videos_names)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.saveVkVideosNamesLocal,expression:"saveVkVideosNamesLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"save_vk_videos_names"},domProps:{checked:Array.isArray(t.saveVkVideosNamesLocal)?t._i(t.saveVkVideosNamesLocal,null)>-1:t.saveVkVideosNamesLocal},on:{change:function(e){var o=t.saveVkVideosNamesLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.saveVkVideosNamesLocal=o.concat([null])):c>-1&&(t.saveVkVideosNamesLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.saveVkVideosNamesLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"save_v
1k_videos_names"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.save_vk_videos_names))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.save_vk_videos_names_tip,expression:"$t('form')['other_settings']['form']['save_vk_videos_names_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.save_vk_videos_names),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.repeat_video)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.repeatVideoLocal,expression:"repeatVideoLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"repeat_video"},domProps:{checked:Array.isArray(t.repeatVideoLocal)?t._i(t.repeatVideoLocal,null)>-1:t.repeatVideoLocal},on:{change:function(e){var o=t.repeatVideoLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.repeatVideoLocal=o.concat([null])):c>-1&&(t.repeatVideoLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.repeatVideoLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"repeat_video"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.repeat_video)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.repeat_video),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_by_account)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishByAccountLocal,expression:"publishByAccountLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_by_account"},domProps:{checked:Array.isArray(t.publishByAccountLocal)?t._i(t.publishByAccountLocal,null)>-1:t.publishByAccountLocal},on:{change:function(e){var o=t.publishByAccountLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishByAccountLocal=o.concat([null])):c>-1&&(t.publishByAccountLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.publishByAccountLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_by_account"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.publish_by_account))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.publish_by_account_tip,expression:"$t('form')['other_settings']['form']['publish_by_account_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_by_account),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isUniqueContentLocal,expression:"isUniqueContentLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"is_unique_content"},domProps:{checked:Array.isArray(t.isUniqueContentLocal)?t._i(t.isUniqueContentLocal,null)>-1:t.isUniqueContentLocal},on:{change:function(e){var o=t.isUniqueContentLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.isUniqueContentLocal=o.concat([null])):c>-1&&(t.isUniqueContentLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.isUniqueContentLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"is_unique_content"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.is_unique_content))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.is_unique_content_tip,expression:"$t('form')['other_settings']['form']['is_unique_content_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}})],1)]),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.disable_comments)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isCommentsDisabledLocal,expression:"isCommentsDisabledLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"is_comments_disabled"},domProps:{checked:Array.isArray(t.isCommentsDisabledLocal)?t._i(t.isCommentsDisabledLocal,null)>-1:t.isCommentsDisabledLocal},on:{change:function(e){var o=t.isCommentsDisabledLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.isCommentsDisabledLocal=o.concat([null])):c>-1&&(t.isCommentsDisabledLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.isCommentsDisabledLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"is_comments_disabled"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.is_comments_disabled)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.disable_comments),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.add_link_to_user)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.addLinkToUserLocal,expression:"addLinkToUserLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"add_link_to_user"},domProps:{checked:Array.isArray(t.addLinkToUserLocal)?t._i(t.addLinkToUserLocal,null)>-1:t.addLinkToUserLocal},on:{change:function(e){var o=t.addLinkToUserLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.addLinkToUserLocal=o.concat([null])):c>-1&&(t.addLinkToUserLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.addLinkToUserLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"add_link_to_user"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.add_link_to_user)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.add_link_to_user),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.plan_by_network)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.planByNetworkLocal,expression:"planByNetworkLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"plan_by_network"},domProps:{checked:Array.isArray(t.planByNetworkLocal)?t._i(t.planByNetworkLocal,null)>-1:t.planByNetworkLocal},on:{change:function(e){var o=t.planByNetworkLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.planByNetworkLocal=o.concat([null])):c>-1&&(t.planByNetworkLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.planByNetworkLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"plan_by_network"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.plan_by_network))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.plan_by_network_tip,expression:"$t('form')['other_settings']['form']['plan_by_network_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.plan_by_network),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.parse_links)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.parseLinksLocal,expression:"parseLinksLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"parse_links"},domProps:{checked:Array.isArray(t.parseLinksLocal)?t._i(t.parseLinksLocal,null)>-1:t.parseLinksLocal},on:{change:function(e){var o=t.parseLinksLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.parseLinksLocal=o.concat([null])):c>-1&&(t.parseLinksLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.parseLinksLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"parse_links"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.parse_links))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.parse_links_tip,expression:"$t('form')['other_settings']['form']['parse_links_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.parse_links),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.canAddLinkToPostInComment?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.addLinkToPostInCommentLocal,expression:"addLinkToPostInCommentLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"add_link_to_post_in_comment"},domProps:{checked:Array.isArray(t.addLinkToPostInCommentLocal)?t._i(t.addLinkToPostInCommentLocal,null)>-1:t.addLinkToPostInCommentLocal},on:{change:function(e){var o=t.addLinkToPostInCommentLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.addLinkToPostInCommentLocal=o.concat([null])):c>-1&&(t.addLinkToPostInCommentLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.addLinkToPostInCommentLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"add_link_to_post_in_comment"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.add_link_to_post_in_comment)+"\n            "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.add_link_to_post_in_comment_tip,expression:"$t('form')['other_settings']['form']['add_link_to_post_in_comment_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info",attrs:{icon:["fas","question-circle"]}})],1)]):t._e()]),t._v(" "),t.canRepeat?[e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isPostsRepeatedLocal,expression:"isPostsRepeatedLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"is_posts_repeated"},domProps:{checked:Array.isArray(t.isPostsRepeatedLocal)?t._i(t.isPostsRepeatedLocal,null)>-1:t.isPostsRepeatedLocal},on:{change:function(e){var o=t.isPostsRepeatedLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.isPostsRepeatedLocal=o.concat([null])):c>-1&&(t.isPostsRepeatedLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.isPostsRepeatedLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"is_posts_repeated"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.is_posts_repeated)+"\n          ")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isRandomContentLocal,expression:"isRandomContentLocal"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"is_random_content"},domProps:{checked:Array.isArray(t.isRandomContentLocal)?t._i(t.isRandomContentLocal,null)>-1:t.isRandomContentLocal},on:{change:function(e){var o=t.isRandomContentLocal,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.isRandomContentLocal=o.concat([null])):c>-1&&(t.isRandomContentLocal=o.slice(0,c).concat(o.slice(c+1)))}else t.isRandomContentLocal=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"is_random_content"}},[e("span",[t._v(t._s(t.$t("form").other_settings.form.is_random_content))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("form").other_settings.form.is_random_content_tip,expression:"$t('form')['other_settings']['form']['is_random_content_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}})],1)])]:t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.delete_post)?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block mb-2"},[t._v("\n          "+t._s(t.$t("form").other_settings.form.delete_post_after)+"\n        ")]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",{staticClass:"me-2"},[e("FormSelect",{attrs:{name:"delete_post_day",items:t.deleteDays},model:{value:t.deletePostsDayLocal,callback:function(e){t.deletePostsDayLocal=e},expression:"deletePostsDayLocal"}})],1),t._v(" "),e("div",[e("FormSelect",{attrs:{name:"delete_post_hour",items:t.deleteHours},model:{value:t.deletePostsHourLocal,callback:function(e){t.deletePostsHourLocal=e},expression:"deletePostsHourLocal"}})],1)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.privacy_level)?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"mb-2"},[t._v("\n          "+t._s(t.$t("common").privacy_level)+"\n        ")]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("div",[e("FormSelect",{attrs:{name:"privacy_level",items:t.$t("common").privacy_level_options},model:{value:t.privacyLevelLocal,callback:function(e){t.privacyLevelLocal=e},expression:"privacyLevelLocal"}})],1),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.privacy_level),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.youtube_category)?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"mb-2"},[t._v("\n          "+t._s(t.$t("common").youtube_category)+"\n        ")]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("div",[e("FormSelect",{attrs:{name:"youtube_category",items:t.$t("common").youtube_category_options},model:{value:t.youtubeCategoryLocal,callback:function(e){t.youtubeCategoryLocal=e},expression:"youtubeCategoryLocal"}})],1),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.youtube_category),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.donut_paid_duration)?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"mb-2"},[t._v("\n          "+t._s(t.$t("common").donut_paid_duration)+"\n        ")]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("div",[e("FormSelect",{attrs:{name:"donut_paid_duration",items:t.$t("common").donut_paid_duration_options},model:{value:t.donutPaidDurationLocal,callback:function(e){t.donutPaidDurationLocal=e},expression:"donutPaidDurationLocal"}})],1),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.donut_paid_duration),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n          "+t._s(t.$t("form").other_settings.form.apply_button)+"\n        ")])])],2)],1)},[],!1,null,null,null);e.a=component.exports},,,,function(t,e,o){"use strict";var n=o(123),r=o(133),c={components:{FormDate:n.a,FormTime:r.a},props:["label","date","hours","minutes","notRequired","formGroupClass","canDelete"],computed:{dateLocal:{get:function(){return this.date},set:function(t){this.$emit("update-date",t)}},hoursLocal:{get:function(){return this.hours},set:function(t){this.$emit("update-hours",t)}},minutesLocal:{get:function(){return this.minutes},set:function(t){this.$emit("update-minutes",t)}},timeLocal:{get:function(){return this.hours+":"+this.minutes},set:function(t){var time=t.split(":");this.hoursLocal=time[0],this.minutesLocal=time[1]}}},methods:{clearAll:function(){this.dateLocal="",this.hoursLocal="",this.minutesLocal=""}}},l=o(5),component=Object(l.a)(c,function(){var t=this,e=t._self._c;return e("div",{class:t.formGroupClass?t.formGroupClass:"mb-3"},[t.label?e("label",{staticClass:"d-flex align-items-center form-label"},[t._v("\n    "+t._s(t.label)+"\n  ")]):t._e(),t._v(" "),e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col"},[e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col"},[e("FormDate",{model:{value:t.dateLocal,callback:function(e){t.dateLocal=e},expression:"dateLocal"}})],1),t._v(" "),e("div",{staticClass:"col-auto ps-2"},[e("FormTime",{model:{value:t.timeLocal,callback:function(e){t.timeLocal=e},expression:"timeLocal"}})],1)])]),t._v(" "),t.canDelete?e("div",{staticClass:"col-auto ps-2"},[e("div",{staticClass:"btn btn-light btn-sm btn-width-32",on:{click:function(e){return t.$emit("delete-date")}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)]):t.dateLocal||t.hoursLocal||t.minutesLocal?e("div",{staticClass:"col-auto ps-2"},[e("div",{staticClass:"btn btn-light btn-sm",on:{click:t.clearAll}},[e("fa",{attrs:{icon:["fas","ban"]}})],1)]):t._e()])])},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(15),o(68),o(77);var n=o(121),r=o.n(n),c=o(51),l=o(12),d={components:{draggable:r.a,FormSelect:c.default},model:{prop:"buttons",event:"change"},props:["buttons","label"],data:function(){return{lastAction:null}},computed:{list:{get:function(){return this.buttons&&this.buttons.list?this.buttons.list:[]},set:function(t){var e=Object(l.cloneDeep)(this.buttons);e&&!e.list||(e={list:[]}),e.list=t,this.$emit("change",e)}}},updated:function(){"addButton"===this.lastAction&&this.$nextTick(function(){this.list.length&&this.$refs["button-name-"+(this.list.length-1)].length&&(this.$refs["button-name-"+(this.list.length-1)][0].focus(),this.lastAction=null)})},methods:{handleButtonInput:function(t,e,o){var n=Object(l.cloneDeep)(this.list);n[t][e]=o,this.list=n},deleteButton:function(t){var e=Object(l.cloneDeep)(this.list);e.splice(t,1),this.list=e},addButton:function(){this.lastAction="addButton";var t=Object(l.cloneDeep)(this.list);t.push({name:"",link:""}),this.list=t}}},m=o(5),component=Object(m.a)(d,function(){var t=this,e=t._self._c;return e("div",[t.label?e("label",{staticClass:"form-label"},[t._v("\n    "+t._s(t.label)+"\n  ")]):t._e(),t._v(" "),e("div",[e("draggable",{on:{start:function(e){return t.$emit("drag_start")},end:function(e){return t.$emit("drag_stop")}},model:{value:t.list,callback:function(e){t.list=e},expression:"list"}},t._l(t.list,function(button,o){return e("div",{key:o,staticClass:"input-group",class:{"mb-2":o<9}},[e("input",{ref:"button-name-"+o,refInFor:!0,staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.telegram_button_name+" "+(o+1)},domProps:{value:button.name},on:{input:function(e){return t.handleButtonInput(o,"name",e.target.value)}}}),t._v(" "),e("input",{ref:"button-link-"+o,refInFor:!0,staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.telegram_button_link},domProps:{value:button.link},on:{input:function(e){return t.handleButtonInput(o,"link",e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-secondary btn-sm",attrs:{type:"button"},on:{click:function(e){return t.deleteButton(o)}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])}),0),t._v(" "),t.list.length<10?e("div",[e("input",{staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.telegram_buttons_placeholder},on:{click:t.addButton}})]):t._e()],1)])},[],!1,null,null,null);e.a=component.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){"use strict";o(15),o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=o(51),c=o(33),l=o(220),d=o(234),m=o(60),h=o(72);function _(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}var f={mixins:[m.a,h.a],components:{FormSelect:r.default,FormModalHeader:c.default,Form:l.a},model:{prop:"value",event:"change"},props:["value","schedules","required"],data:function(){return function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?_(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({editedItemId:-1},d.a)},computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}},schedulesComputed:function(){return this.rebuildForSelect(this.schedules,"name",this.$t("posts").schedules.form_group.default_value)}},methods:{closeForm:function(t,e,o){this.$refs["edit-modal"].hide(),"boolean"==typeof t&&t&&(this.$emit("update-schedules",o),this.$emit("change",e))},editForm:function(){this.editedItemId=this.currentValue,this.$refs["edit-modal"].show()},createForm:function(){this.editedItemId=0,this.$refs["edit-modal"].show()},deleteListItem:function(){var t=this;this.deleteItem("/posts/schedules/"+this.currentValue,null,this.$t("posts").schedules.delete_confirmation,function(e){t.$emit("update-schedules",e.data.schedules),t.$emit("change",0)})}}},v=f,y=o(5),component=Object(y.a)(v,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v("\n    "+t._s(t.$t("posts").schedules.form_group.label)+"\n    "),t.required?e("span",[t._v("*")]):t._e()]),t._v(" "),e("div",{staticClass:"d-flex"},[e("FormSelect",{attrs:{name:"schedules",items:t.schedulesComputed,disabled:!t.schedules.length,"no-items-text":t.$t("posts").schedules.form_group.no_items},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}}),t._v(" "),e("b-dropdown",{staticClass:"dropdown-no-arrow ms-2",attrs:{right:"",variant:"secondary",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{attrs:{icon:["fas","ellipsis-h"]}})]},proxy:!0}])},[t._v(" "),t._l(t.actionButtons,function(o,n){return e("b-dropdown-item-button",{key:n,attrs:{"button-class":{"btn-sm":!0,disabled:["edit","delete"].indexOf(o.name)>=0&&!t.currentValue}},on:{click:function(e){return t.callMethodByName(o.method_name,0)}}},[e("span",{staticClass:"dropdown-item-icon me-2"},[e("fa",{attrs:{icon:o.icon}})],1),t._v(t._s(t.$t("posts").schedules.form_group.action_buttons[o.name])+"\n      ")])})],2)],1),t._v(" "),e("b-modal",{ref:"edit-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.editedItemId=-1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.editedItemId?t.$t("posts").schedules.form_group.edit_title:t.$t("posts").schedules.form_group.create_title},on:{"close-form":t.closeForm}})]},proxy:!0}])},[t._v(" "),t.editedItemId>=0?e("Form",{attrs:{id:t.editedItemId,"is-in-popup":!0},on:{"close-form":t.closeForm}}):t._e()],1)],1)},[],!1,null,null,null);e.a=component.exports},,,,,,,,,,,,,,,,,,function(t,e,o){"use strict";o(31),o(15),o(48),o(6),o(4),o(9),o(10),o(1),o(7);var n=o(0),r=(o(66),o(8),o(45),o(30)),c=o(67),l=o(405),d=o(46),m=(o(39),o(43),o(44),o(22),o(20),o(29),o(36),o(32),o(136),o(77),o(47)),h=o(87),_=o(51),f=o(133),v=o(33),y=o(12);function k(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return x(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?x(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function x(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function w(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function C(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?w(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var S={components:{FormGroupRadioButtons:m.a,FormInput:h.a,FormGroupInput:d.a,FormSelect:_.default,FormTime:f.a,FormModalHeader:v.default},data:function(){for(var t=[],e=[],i=0;i<7;i++)t.push({hours:"",minutes:""}),e.push({hasTimes:!1});return{headerControls:t,footerControls:e,hasTimes:!1,isFormOpened:!1,addTimeMethod:1,timesPerHour:1,whichDayType:0,everyNMinutes:20,inBetweenFrom:"00:00",inBetweenTo:"23:59"}},mounted:function(){this.checkForHasTimes()},computed:C(C({},Object(r.c)({formState:function(t){return t.posts.schedules.form}})),{},{times:function(){return this.formState.times},isConfigured:function(){for(var t in this.times)if(this.times[t].length)return!0;return!1},btnName:function(){return this.isConfigured?this.$t("form").schedule_times.open_button_two:this.$t("form").schedule_times.open_button_one}}),watch:{isFormOpened:function(t){t?this.$refs["form-modal"].show():this.$refs["form-modal"].hide()},times:function(){this.checkForHasTimes()},whichDayType:function(t){t&&(2===this.addTimeMethod?parseInt(this.timesPerHour)?parseInt(this.timesPerHour)>10?(this.bvToast("warning",this.$t("form").schedule_times.form.posts_per_hour_exceeded_confirmation),this.$refs.times_per_hour.$el.focus()):this.makeTimes():(this.bvToast("warning",this.$t("form").schedule_times.form.set_posts_per_hour_confirmation),this.$refs.times_per_hour.$el.focus()):3===this.addTimeMethod&&this.createTimeForEveryMinutes())}},methods:{updateStateByField:function(t,e){this.$store.commit("posts/schedules/form/"+t,e)},createTimeForEveryMinutes:function(){var t=this,e=this.inBetweenFrom,o=this.inBetweenTo,n=parseInt(e.split(":")[0]||0),r=parseInt(e.split(":")[1]||0),c=parseInt(o.split(":")[0]||0),l=parseInt(o.split(":")[1]||0),d=3600*(n=n>23?23:n)+60*(r=r>59?59:r),m=3600*(c=c>23?23:c)+60*(l=l>59?59:l);if(d>=m)return this.$refs.in_between_from.$refs["time-hours"].focus(),void this.$nextTick(function(){t.whichDayType=0});var h=0;if(this.everyNMinutes&&(parseInt(this.everyNMinutes)>360&&(this.everyNMinutes=360),h=60*parseInt(this.everyNMinutes)),h){for(var _,f,v=[],y=d;y<m;)_=y?Math.floor(y/3600):0,f=Math.floor(y%3600/60),v.push({hours:_>9?_:"0"+_,minutes:f>9?f:"0"+f}),y+=h;var k=this.getTimesCopy();if(8===this.whichDayType)for(var x in k)k[x]=v;else k[this.whichDayType-1]=v;this.updateStateByField("times",k),this.$nextTick(function(){t.whichDayType=0})}else this.$nextTick(function(){t.whichDayType=0})},makeHours:function(){for(var t,e,o,n={},r=Math.floor(59/this.timesPerHour),i=0;i<24;i++){n[i]=[];for(var c=0;c<this.timesPerHour;c++)e=c*r+r,0===(t=c*r)&&(t=1),c===this.timesPerHour-1&&(e=59),o=this.randomBetween(t,e),n[i].push(o)}return n},makeTimes:function(){var t=this,e=this.getTimesCopy();if(8===this.whichDayType)for(var o in e)e[o]=this.fillDayByHours(this.makeHours());else e[this.whichDayType-1]=this.fillDayByHours(this.makeHours());this.updateStateByField("times",e),this.$nextTick(function(){t.whichDayType=0})},fillDayByHours:function(t){var e=[];for(var o in t){var n,r=k(t[o]);try{for(r.s();!(n=r.n()).done;){var c=n.value;e.push({hours:o>9?o:"0"+o,minutes:c>9?c:"0"+c})}}catch(t){r.e(t)}finally{r.f()}}return e},updateHeaderControlTime:function(t,time){this.headerControls[t].hours=time.split(":")[0],this.headerControls[t].minutes=time.split(":")[1]},copyDay:function(t){var e=this;this.footerControls[t].hasTimes&&this.bvModal(this.$t("form").schedule_times.form.copy_day_confirmation,function(o){if(o){var n=e.getTimesCopy();for(var r in n)r!==t&&(n[r]=Object(y.cloneDeep)(n[t]));e.updateStateByField("times",n)}})},clearDay:function(t){var e=this;this.footerControls[t].hasTimes&&this.bvModal(this.$t("form").schedule_times.form.clear_day_confirmation,function(o){if(o){var n=e.getTimesCopy();n[t]=[],e.updateStateByField("times",n)}})},checkForHasTimes:function(){for(var t in this.hasTimes=!1,this.times)this.times[t].length?(this.footerControls[t].hasTimes=!0,this.hasTimes=!0):this.footerControls[t].hasTimes=!1},getTimesCopy:function(){var t=[];for(var i in this.times)for(var e in t.push([]),this.times[i])t[i].push(Object.assign({},this.times[i][e]));return t},deleteTime:function(t,e){var o=this.getTimesCopy();o[t].splice(e,1),this.updateStateByField("times",o)},addTime:function(t){var e=""===this.headerControls[t].hours.trim()?"00":this.headerControls[t].hours,o=""===this.headerControls[t].minutes.trim()?"00":this.headerControls[t].minutes;if(parseInt(e)<24&&parseInt(o)<60){var n=this.getTimesCopy(),r=-1,c=[];for(var l in n[t])c.push({time:Object.assign({},n[t][l]),time_as_number:parseInt(n[t][l].hours+""+n[t][l].minutes)}),r<0&&n[t][l].hours===e&&n[t][l].minutes===o&&(r=l);if(r<0){for(var d in c.push({time:{hours:e,minutes:o},time_as_number:parseInt(e+""+o)}),c.sort(this.timesCompare),n[t].length=0,c)n[t].push(c[d].time);this.headerControls[t].hours="",this.headerControls[t].minutes="",this.$refs["time-for-day-"+t][0].$refs["time-hours"].focus(),this.updateStateByField("times",n)}else this.bvToast("warning",this.$t("form").schedule_times.form.t
1ime_is_already_used_confirmation),this.$refs["time-for-day-"+t][0].$refs["time-hours"].focus()}else this.bvToast("warning",this.$t("form").schedule_times.form.time_is_incorrect_confirmation),parseInt(e)>=24?this.$refs["time-for-day-"+t][0].$refs["time-hours"].focus():this.$refs["time-for-day-"+t][0].$refs["time-minutes"].focus()},timesCompare:function(a,b){return a.time_as_number<b.time_as_number?-1:a.time_as_number>b.time_as_number?1:0},apply:function(){this.isFormOpened=!1}}},T=o(5),P=Object(T.a)(S,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-block form-label m-0"},[t._v("\n        "+t._s(t.$t("form").schedule_times.label)+"\n      ")]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n        ")],1)])]),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{size:"lg",centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").schedule_times.title},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").schedule_times.form.add_time_methods,name:"add_time_method",label:t.$t("form").schedule_times.form.add_time_method},model:{value:t.addTimeMethod,callback:function(e){t.addTimeMethod=e},expression:"addTimeMethod"}}),t._v(" "),2===t.addTimeMethod?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-label"},[t._v("\n          "+t._s(t.$t("form").schedule_times.form.times_per_hour)+"\n        ")]),t._v(" "),e("div",{staticClass:"d-flex"},[e("FormInput",{ref:"times_per_hour",attrs:{"input-class":"input-for-numbers me-2"},model:{value:t.timesPerHour,callback:function(e){t.timesPerHour=e},expression:"timesPerHour"}}),t._v(" "),e("FormSelect",{staticClass:"w-auto",attrs:{items:t.$t("form").schedule_times.form.which_day_types,name:"which_day_type"},model:{value:t.whichDayType,callback:function(e){t.whichDayType=e},expression:"whichDayType"}})],1)]):t._e(),t._v(" "),3===t.addTimeMethod?e("div",{staticClass:"mb-3"},[e("FormGroupInput",{attrs:{"input-class":"input-for-numbers",label:t.$t("form").schedule_times.form.every_n_minutes_label,"label-postfix":t.$t("form").schedule_times.form.every_n_minutes_postfix},model:{value:t.everyNMinutes,callback:function(e){t.everyNMinutes=e},expression:"everyNMinutes"}}),t._v(" "),e("label",{staticClass:"form-label"},[t._v("\n          "+t._s(t.$t("form").schedule_times.form.in_between)+"\n        ")]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("FormTime",{ref:"in_between_from",attrs:{time:t.inBetweenFrom},on:{change:function(e){t.inBetweenFrom=e}}}),t._v(" "),e("div",{staticClass:"mx-2 text-secondary small"},[t._v("-")]),t._v(" "),e("FormTime",{ref:"in_between_to",staticClass:"me-2",attrs:{time:t.inBetweenTo},on:{change:function(e){t.inBetweenTo=e}}}),t._v(" "),e("FormSelect",{staticClass:"w-auto",attrs:{items:t.$t("form").schedule_times.form.which_day_types,name:"which_day_type"},model:{value:t.whichDayType,callback:function(e){t.whichDayType=e},expression:"whichDayType"}})],1)],1):t._e(),t._v(" "),e("div",{staticClass:"schedule-wrapper",class:{"has-times":t.hasTimes}},[e("div",{staticClass:"row g-0"},t._l(t.$t("form").schedule_times.form.days_names,function(o){return e("div",{staticClass:"col py-2 schedule-times-header-col"},[t._v("\n            "+t._s(o)+"\n          ")])}),0),t._v(" "),e("div",{staticClass:"row g-0"},t._l(t.headerControls,function(o,n){return e("div",{staticClass:"col schedule-times-controls-col pt-1"},[e("FormTime",{ref:"time-for-day-"+n,refInFor:!0,staticClass:"border-0 rounded-0 schedule-time-picker",attrs:{time:o.hours+":"+o.minutes},on:{change:function(e){return t.updateHeaderControlTime(n,e)}}}),t._v(" "),e("div",{staticClass:"btn btn-light btn-sm w-100 rounded-0 mt-1",attrs:{title:t.$t("form").schedule_times.form.add_time_button},on:{click:function(e){return t.addTime(n)}}},[e("fa",{attrs:{icon:["fas","plus"]}})],1)],1)}),0),t._v(" "),e("div",{staticClass:"row g-0 schedule-times"},t._l(t.times,function(o,n){return e("div",{staticClass:"col schedule-times-time-col"},t._l(o,function(time,r){return o.length?e("div",{staticClass:"schedule-times-time",attrs:{title:t.$t("form").schedule_times.form.delete_time_button},on:{click:function(e){return t.deleteTime(n,r)}}},[t._v("\n              "+t._s(time.hours)+":"+t._s(time.minutes)+"\n            ")]):t._e()}),0)}),0),t._v(" "),e("div",{staticClass:"row g-0"},t._l(t.footerControls,function(o,n){return e("div",{staticClass:"col"},[e("div",{staticClass:"btn btn-light btn-sm w-100 rounded-0",class:{disabled:!o.hasTimes},attrs:{title:t.$t("form").schedule_times.form.copy_day_button},on:{click:function(e){return t.copyDay(n)}}},[e("fa",{attrs:{icon:["fas","clone"]}})],1),t._v(" "),e("div",{staticClass:"btn btn-light btn-sm w-100 rounded-0 mt-0",class:{disabled:!o.hasTimes},attrs:{title:t.$t("form").schedule_times.form.clear_day_button},on:{click:function(e){return t.clearDay(n)}}},[e("fa",{attrs:{icon:["fas","ban"]}})],1)])}),0)]),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n          "+t._s(t.$t("form").schedule_times.form.apply_button)+"\n        ")])])],1)],1)},[],!1,null,null,null).exports,I=o(56),A=o(171),F=o(99),j=o(148),O=o(124),$=o(163),L=o(160),R=o(165),B=o(162),D=o(161),N=o(166),M=o(167),V=o(84),U=o(89),E=o(73),H=o(60),z=
1o(119);function W(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function G(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?W(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):W(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var K={mixins:[E.a,H.a,z.a],components:{HelpForm:c.a,Help:l.a,FormGroupInput:d.a,ScheduleFormTimes:P,FormGroupRadioButtons:m.a,FormGroupSelect:I.a,FormGroupDateAndTime:A.a,FormSocialNetworks:F.a,FormGroupProject:j.a,FormSocialPages:O.a,FormGroupWatermark:$.a,PostsCaption:L.a,PostsRewrite:R.a,PostsHashtags:B.a,PostsLinks:D.a,PostsLocation:N.a,OtherSettingsForm:M.a,FormFooterButtons:V.a},props:{id:{type:Number,default:0},isInPopup:{type:Boolean,default:!1},asCopy:{type:Boolean,default:!1},copyWithPosts:{type:Boolean,default:!1}},data:function(){return{socialNetworks:Object(y.cloneDeep)(U.data),socialPagesByAccounts:[],socialAlbumsByPages:[],projects:[],watermarks:[]}},beforeCreate:function(){this.$store.dispatch("posts/schedules/form/resetForm")},mounted:function(){var t=this;this.$nextTick(function(){t.loadItemFormData("/posts/schedules/"+t.id+"/edit?as_copy="+(t.asCopy?1:0),function(e){e&&e.data&&(t.$store.dispatch("posts/schedules/form/setForm",e.data),t.socialPagesByAccounts=e.data.social_pages_by_accounts,t.socialAlbumsByPages=e.data.social_albums_by_pages,t.projects=e.data.projects,t.watermarks=e.data.watermarks,t.initSocialNetworksDisabledState(),t.initSocialNetworksCheckedState())},function(){t.id&&t.$emit("close-form",!1)})})},computed:G(G({},Object(r.c)({formState:function(t){return t.posts.schedules.form}})),{},{idComputed:function(){return this.asCopy?0:this.id},postsCaption:function(){return this.formState.postsCaption},postsHashtags:function(){return{hashtags:this.formState.postsHashtags.hashtags,max_amount:this.formState.postsHashtags.maxAmount,selection_type:this.formState.postsHashtags.selectionType,space_type:this.formState.postsHashtags.spaceType}},postsLinks:function(){return{links:this.formState.postsLinks.links,max_amount:this.formState.postsLinks.maxAmount,selection_type:this.formState.postsLinks.selectionType,space_type:this.formState.postsLinks.spaceType}},postsRewrite:function(){return{rewrite_state:this.formState.postsRewrite.rewriteState,rewrite_command:this.formState.postsRewrite.rewriteCommand,no_posts_if_no_rewrite:this.formState.postsRewrite.noPostsIfNoRewrite,rewrite_for_every_page:this.formState.postsRewrite.rewriteForEveryPage,text_model_id:this.formState.postsRewrite.textModelId,text_model_key:this.formState.postsRewrite.textModelKey}},postsLocation:function(){return this.formState.postsLocation},postsLocationVk:function(){return this.formState.postsLocationVk}}),methods:{updateStateByField:function(t,e){this.$store.commit("posts/schedules/form/"+t,e)},deleteForm:function(){var t=this;this.deleteItem("/posts/schedules/"+this.id,null,this.$t("posts").schedules.delete_confirmation,function(e){t.$emit("close-form",!0,0,e.data.schedules)})},saveForm:function(){var t=this,data=this.getFormData();data&&(this.id&&!this.asCopy?this.updateItem("/posts/schedules/"+this.id,data,this.$t("posts").schedules.form.prompts.saved,function(e){t.$emit("close-form",!0,t.id,e.data.schedules)}):this.createItem("/posts/schedules",data,this.$t("posts").schedules.form.prompts.created,function(e){t.isInPopup?t.$emit("close-form",!0,e.data.id,e.data.schedules):t.$emit("reset-form")}))},getFormData:function(){var data=this.getDataFromState(this.formState,["stop_date","start_date","selected_pages_by_source_ids","project_id"]);if(!data.name.trim().length)return this.bvToast("warning",this.$t("posts").schedules.form.prompts.set_name_confirmation),this.focusInput("name-"+this.id),null;data.posts_caption=this.postsCaption.postsCaption,data.posts_caption_position_type=this.postsCaption.postsCaptionPositionType,data.posts_caption_space_type=this.postsCaption.postsCaptionSpaceType,data.photos_caption=this.postsCaption.photosCaption,data.tg_buttons=this.postsCaption.tgButtons,data.videos_title=this.postsCaption.videosTitle,data.posts_comment=this.postsCaption.postsComment,data.publish_comment_by_account=this.postsCaption.publishCommentByAccount,data.posts_photo=this.postsCaption.postsPhoto,data.posts_photo_always=this.postsCaption.postsPhotoAlways,data.posts_hashtags=this.postsHashtags,data.posts_links=this.postsLinks,data.posts_rewrite=this.postsRewrite,data.posts_location=this.postsLocation,data.posts_location_vk=this.postsLocationVk;var t=!1;for(var e in data.times)if(data.times[e].length){t=!0;break}if(!t)return this.bvToast("warning",this.$t("posts").schedules.form.prompts.set_times_confirmation),null;if(1!==this.formState.state&&2!==this.formState.state||(data.stop_date={date:this.formState.stopDate,hours:this.formState.stopTimeHours,minutes:this.formState.stopTimeMinutes},2===this.formState.state&&(data.start_date={date:this.formState.startDate,hours:this.formState.startTimeHours,minutes:this.formState.startTimeMinutes})),1===this.formState.publicationHowType){if(data.selected_pages_by_source_ids=this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedPagesBySourceIds),data.selected_albums_by_source_ids=this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedAlbumsBySourceIds),!Object.keys(data.selected_pages_by_source_ids).length&&!Object.keys(data.selected_albums_by_source_ids).length)return this.bvToast("warning",this.$t("posts").schedules.form.prompts.set_networks_confirmation),null}else if(data.project_id=this.formState.projectId,!data.project_id)return this.bvToast("warning",this.$t("posts").schedules.form.prompts.set_project_confirmation),null;return this.asCopy&&this.copyWithPosts&&(data.schedule_id_to_copy_posts_from=this.id
1),data}}},X=Object(T.a)(K,function(){var t=this,e=t._self._c;return e("form",{staticClass:"mx-auto form-wrapper",attrs:{autocomplete:"off"}},[e("FormGroupInput",{ref:"name-"+t.id,attrs:{value:t.formState.name,id:"name-"+t.id,label:t.$t("posts").schedules.form.name,placeholder:t.$t("posts").schedules.form.name_placeholder},on:{input:function(e){return t.updateStateByField("name",e)}}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{value:t.formState.publicationHowType,items:t.$t("posts").schedules.form.publication_how_types,name:"publication_how_type",label:t.$t("posts").schedules.form.publication_how_type},on:{change:function(e){return t.updateStateByField("publicationHowType",e)}}}),t._v(" "),1===t.formState.publicationHowType?e("FormSocialNetworks",{attrs:{"social-networks":t.socialNetworksComputed,label:t.$t("posts").schedules.form.networks,"no-label":!0,"id-prefix":"psf"},on:{"update-networks":t.updateNetworks}}):t._e(),t._v(" "),2===t.formState.publicationHowType?e("FormGroupProject",{attrs:{value:t.formState.projectId,projects:t.projects},on:{change:function(e){return t.updateStateByField("projectId",e)},"update-projects":function(e){t.projects=e}}}):t._e(),t._v(" "),t._l(t.socialNetworks,function(o,n){return 1===t.formState.publicationHowType&&o.checked&&!t.unusedSourcesIds.includes(parseInt(o.source_id))?e("FormSocialPages",{key:n,ref:"pages-by-source-id-"+o.source_id,refInFor:!0,attrs:{network:o,"social-pages-by-accounts":t.socialPagesByAccounts,"social-albums-by-pages":t.socialAlbumsByPages,"selected-pages-by-source-ids":t.formState.selectedPagesBySourceIds,"selected-albums-by-source-ids":t.formState.selectedAlbumsBySourceIds},on:{"update-selected-pages-by-source-ids":function(e){return t.updateStateByField("selectedPagesBySourceIds",e)},"update-selected-albums-by-source-ids":function(e){return t.updateStateByField("selectedAlbumsBySourceIds",e)},"update-social-albums-by-pages":function(e){t.socialAlbumsByPages=e}}}):t._e()}),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary border-1 px-3 pt-3 mb-3"},[e("FormGroupRadioButtons",{attrs:{value:t.formState.state,items:t.$t("posts").schedules.form.states,name:"state",label:t.$t("posts").schedules.form.state},on:{change:function(e){return t.updateStateByField("state",e)}}}),t._v(" "),2===t.formState.state?[e("div",{staticClass:"d-flex align-items-center form-label"},[t._v("\n        "+t._s(t.$t("posts").schedules.form.start_date)+"\n      ")]),t._v(" "),e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col"},[e("FormGroupDateAndTime",{attrs:{date:t.formState.startDate,hours:t.formState.startTimeHours,minutes:t.formState.startTimeMinutes},on:{"update-date":function(e){return t.updateStateByField("startDate",e)},"update-hours":function(e){return t.updateStateByField("startTimeHours",e)},"update-minutes":function(e){return t.updateStateByField("startTimeMinutes",e)}}})],1),t._v(" "),e("div",{staticClass:"col"})])]:t._e(),t._v(" "),1===t.formState.state||2===t.formState.state?[e("div",{staticClass:"d-flex align-items-center form-label"},[t._v("\n        "+t._s(t.$t("posts").schedules.form.stop_date)+"\n      ")]),t._v(" "),e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col"},[e("FormGroupDateAndTime",{attrs:{date:t.formState.stopDate,hours:t.formState.stopTimeHours,minutes:t.formState.stopTimeMinutes,"not-required":!0},on:{"update-date":function(e){return t.updateStateByField("stopDate",e)},"update-hours":function(e){return t.updateStateByField("stopTimeHours",e)},"update-minutes":function(e){return t.updateStateByField("stopTimeMinutes",e)}}})],1),t._v(" "),e("div",{staticClass:"col"})])]:t._e()],2),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary border-1 px-3 pt-3"},[e("FormGroupWatermark",{attrs:{value:t.formState.watermarkId,watermarks:t.watermarks},on:{change:function(e){return t.updateStateByField("watermarkId",e)},"update-watermarks":function(e){t.watermarks=e}}}),t._v(" "),e("ScheduleFormTimes"),t._v(" "),e("PostsCaption",{attrs:{placeholder:t.$t("posts").schedules.form.posts_caption_placeholder,"photos-caption-placeholder":t.$t("posts").schedules.form.posts_caption_photos_placeholder,"videos-title-placeholder":t.$t("posts").schedules.form.posts_videos_title_placeholder,"comment-placeholder":t.$t("posts").schedules.form.posts_caption_comment_placeholder,"objects-type":"schedules","is-videos-enabled":!0}}),t._v(" "),e("PostsHashtags",{attrs:{"objects-type":"schedules"}}),t._v(" "),e("PostsLinks",{attrs:{"objects-type":"schedules"}}),t._v(" "),e("PostsRewrite",{attrs:{"objects-type":"schedules"}}),t._v(" "),1===t.config.plan_type?e("PostsLocation",{attrs:{"objects-type":"schedules","search-api":"/search/vkontakte/locations","posts-location-store":"postsLocationVk","form-label":t.$t("form").posts_location.label_vk,"form-title":t.$t("form").posts_location.title_vk}}):t._e(),t._v(" "),e("PostsLocation",{attrs:{"objects-type":"schedules","search-api":"/search/instagram/locations","posts-location-store":"postsLocation","form-label":t.$t("form").posts_location.label,"form-title":t.$t("form").posts_location.title}}),t._v(" "),e("OtherSettingsForm",{attrs:{"can-repeat":!0,"objects-type":"schedules","social-networks":t.socialNetworks}})],1),t._v(" "),e("FormFooterButtons",{attrs:{id:t.idComputed,disabled:t.isLoading,"is-in-popup":t.isInPopup},on:{"delete-item":t.deleteForm,"save-item":t.saveForm}},[t.id?e("HelpForm",{attrs:{title:t.$t("help").instructions,"blog-url":"https://blog.hooppy.ru/raspisaniya/","help-id":"15","is-in-form":!0}},[e("Help")],1):t._e()],1)],2)},[],!1,null,null,null);e.a=X.exports},function(t,e,o){"use strict";e.a={data:function(){for(var t=[{id:0,value:"--"}],i=1;i<=30;i++)t.push({id:i,value:i+" "+this.wordsDeclension(i,this.$t("form").other_settings.form.delete_days_words)});for(var e=[{id:0,value:"--"}],o=1;o<24;
1o++)e.push({id:o,value:o+" "+this.wordsDeclension(o,this.$t("form").other_settings.form.delete_hours_words)});return{deleteDays:t,deleteHours:e}}}},,,,,,,,,,,,,function(t,e,o){"use strict";e.a={actionButtons:[{name:"add",title:"Создать",icon:["fas","plus"],method_name:"createForm"},{name:"edit",title:"Редактировать",icon:["fas","pen"],method_name:"editForm"},{name:"delete",title:"Удалить",icon:["fas","trash"],method_name:"deleteListItem"}]}},,,,,,,function(t,e,o){"use strict";o(6),o(39),o(43),o(4),o(44),o(31),o(28),o(22),o(15),o(1),o(20),o(29),o(48),o(36),o(7),o(32),o(40);var n=o(16);function r(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return c(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw l}}}}function c(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var l=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},d=window.cancelIdleCallback||function(t){clearTimeout(t)},m=window.IntersectionObserver&&new window.IntersectionObserver(function(t){t.forEach(function(t){var e=t.intersectionRatio,link=t.target;e<=0||!link.__prefetch||link.__prefetch()})});e.a={name:"NuxtLink",extends:n.default.component("RouterLink"),props:{prefetch:{type:Boolean,default:!0},noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.prefetch&&!this.noPrefetch&&(this.handleId=l(this.observe,{timeout:2e3}))},beforeDestroy:function(){d(this.handleId),this.__observed&&(m.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){m&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetchLink.bind(this),m.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map(function(t){return t.components.default}).filter(function(t){return"function"==typeof t&&!t.options&&!t.__prefetched})},prefetchLink:function(){if(this.canPrefetch()){m.unobserve(this.$el);var t,e=r(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var o=t.value,n=o();n instanceof Promise&&n.catch(function(){}),o.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){t.exports=o.p+"img/watermarks-bg.8c77bcb.jpeg"},,,,,function(t,e,o){"use strict";o(40);e.a={methods:{openHelp:function(t){window.appHeaderComponent&&(window.appHeaderComponent.openHelpForm(),setTimeout(function(){window.helpComponent&&window.helpComponent.setCatalogId(parseInt(t))},1))}}}},function(t,e,o){"use strict";o(15),o(68),o(6),o(39),o(43),o(44),o(31),o(22),o(66),o(1),o(20),o(29),o(48),o(36),o(122),o(38),o(45),o(32);function n(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return r(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,c=function(){};return{s:c,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw l}}}}function r(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var c={props:{page:Object,asLink:{type:Boolean,default:!1},isPlanned:{type:Boolean,default:!1},postLink:{type:String,default:null},postErrors:{type:Array,default:function(){return[]}},sourceId:{type:Number,default:0}},data:function(){return{photo:""}},mounted:function(){var t=this;[3,4,7,10,18,19,29,34].includes(this.sourceId)?this.getPhotoFromUrl(this.page.photo,function(e){t.photo=e}):this.photo=this.page.photo},computed:{postErrorsComputed:function(){if(this.postErrors.length){var t,e=[],o=n(this.postErrors);try{for(o.s();!(t=o.n()).done;){var r=t.value;if(r.includes("media.hooppy.ru")){var c=/\((https?:\/\/.*?\.png)\)/,l=r.match(c),d=l?l[1]:null,m=r.replace(c,"");m=(m=m.replace(/\s+([.,!?])/g,"$1")).replace(/\s{2,}/g," ").trim(),e.push({text:m,screenshot:d})}else e.push({text:r,screenshot:""})}}catch(t){o.e(t)}finally{o.f()}return e}return[]}}},l=o(5),component=Object(l.a)(c,function(){var t=this,e=t._self._c;return e("div",{key:t.page.id,staticClass:"row g-0 p-1 network-page",on:{click:function(e){return t.$emit("click-page",t.page.id)}}},[e("div",{staticClass:"col-auto"},[t.photo?t._t("default",function(){return[t.asLink?e("a",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.photo,expression:"photo",arg:"background-image"}],staticClass:"bg-light network-page-photo",attrs:{href:t.page.link,target:"_blank"}}):e("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t.photo,expression:"photo",arg:"background-image"}],staticClass:"bg-light network-page-photo"})]}):t._t("default",function(){return[t.asLink?e("a",{staticClass:"d-flex justify-content-center align-items-center bg-light network-page-photo",attrs:{href:t.page.link,target:"_blank"}},[e("fa",{attrs:{icon:["fas","user"]}})],1):e("div",{staticClass:"d-flex justify-content-center align-items-center bg-light network-page-photo"},[e("fa",{attrs:{icon:["fas","user"]}})],1)]})],2),t._v(" "),t.asLink?e("div",{staticClass:"col ps-2 text-truncate network-page-name"},[e("div",{staticClass:"text-truncate d-flex"},[e("a",{staticClass:"text-truncate",attrs:{href:t.page.link,target:"_blank"}},[t._v("\n        "+t._s(t.page.name)+"\n      ")]),t._v(" "),t.postLink?t._t("default",function(){return[e("span",{staticClass:"text-secondary mx-2"},[t._v("–")]),t._v(" "),e("a",{staticClass:"link-secondary",attrs:{href:t.postLink,target:"_blank"}},[t._v("\n          "+t._s(t.$t("posts").list.link_to_post)+"\n        ")]),t._v(" "),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:t.$t("posts").list.post_planned_tip}},[t.isPlanned?e("fa",{staticClass:"ms-2 text-secondary",attrs:{icon:["fas","clock"]}}):t._e()],1)]}):t._e()],2),t._v(" "),t.postErrorsComputed.length?e("ul",{staticClass:"text-danger text-wrap text-break small py-0 ps-3 mb-2 network-page-errors"},t._l(t.postErrorsComputed,function(o){return e("li",[t._v("\n        "+t._s(o.text)+" "),o.screenshot?e("a",{attrs:{href:o.screenshot,target:"_blank"}},[t._v("Скриншот с ошибкой")]):t._e()])}),0):t._e()]):e("div",{staticClass:"col ps-2 text-truncate network-page-name"},[t._v("\n    "+t._s(t.page.name)+"\n  ")])])},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o.r(e);o(4),o(1),o(6),o(39),o(43),o(44),o(22),o(9),o(10),o(20),o(36);var n=o(0),r=(o(23),o(31),o(34),o(28),o(15),o(66),o(8),o(29),o(48),o(45),o(68),o(7),o(32),o(40),o(30)),c=o(67),l=o(402),d=o(47),m=o(171),h=(o(77),o(38),o(51)),_=o(56),f=o(33),v=o(69),y=o(242),k=o(289),x=o(425),w=o(17),C=o(228),S=o(231),T=o(233),P=o(227),I=o(230),A=o(232),F=o(409),j=o(226),O=o(427),$=o(229),L=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,R=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,B=w.c.create({name:"spoiler",addAttributes:function(){return{HTMLAttributes:{}}},parseHTML:function(){return[{tag:"tg-spoiler"}]},renderHTML:function(t){var e=t.HTMLAttributes;return["tg-spoiler",Object(w.t)(this.options.HTMLAttributes,e),0]},addCommands:function(){var t=this;return{setSpoiler:function(){return function(e){return e.commands.setMark(t.name)}},toggleSpoiler:function(){return function(e){return e.commands.toggleMark(t.name)}},unsetSpoiler:function(){return function(e){return e.commands.unsetMark(t.name)}}}},addInputRules:function(){return[Object(w.r)({find:L,type:this.t
1ype})]},addPasteRules:function(){return[Object(w.s)({find:R,type:this.type})]}}),D=w.b.create({addKeyboardShortcuts:function(){var t=this;return{Enter:function(){return t.editor.commands.setHardBreak(),!0}}}}),N={components:{FormGroupTextarea:v.a,FormModalHeader:f.default,FormSelect:h.default,FormGroupSelect:_.a,EditorContent:k.b,VEmojiPicker:y.a,emojisDefault:y.c,categoriesDefault:y.b},props:{value:{type:String,default:""},isHiddenEnabled:{type:Boolean,default:!0},isQuoteEnabled:{type:Boolean,default:!0},isTextVersionsDisabled:{type:Boolean,default:!1},textIndex:{type:Number,default:0},allSourcesChecked:{type:Boolean,default:!1},textsSources:{type:Array,default:function(){return[]}},textsSourcesChecked:{type:Array,default:function(){return[]}}},data:function(){return{editor:null,emojiPickerOpen:!1,emojiCategory:"Peoples",i18n:{search:"Поиск",categories:{Activity:"Активность",Flags:"Флаги",Foods:"Еда",Frequently:"Часто используемые",Objects:"Объекты",Nature:"Природа",Peoples:"Люди",Symbols:"Символы",Places:"Места"}},gptRequest:"",gptResponse:"",gptRequestType:1,gptMessages:[],aiImageIsCreating:!1,aiImageProgress:0,aiImageConnectionHash:""}},watch:{value:function(t){this.isHtml(t)||(t=this.normalizeParagraphText(t)),this.editor.getHTML()===t||this.editor.commands.setContent(t,!1)}},computed:{gptRequestTypes:function(){var t=this;return this.$t("posts").form.texts_options.ai_request_types.filter(function(e){return 1===t.config.plan_type||7!==e.id})},textLength:function(){var html=this.editor.getHTML();return this.getHtmlTextLength(html)},textsSourcesComputed:function(){var t=this;return this.textsSources.filter(function(e){return t.config.source_ids.includes(e.source_id)})}},mounted:function(){var t=this;localStorage.getItem("posts_form.emojiCategory")&&(this.emojiCategory=localStorage.getItem("posts_form.emojiCategory")),document.addEventListener("click",this.closeEmojiPicker),this.$nextTick(function(){t.$socket.on("tg_ai_image",function(data){console.log("data",data),t.toggleLoading(!1),t.aiImageConnectionHash===data.hash&&(data.error||(data.progress?t.aiImageProgress=data.progress:data.photo_url&&(t.aiImageIsCreating=!1,t.addImageToAttachments(data.photo_url))))})}),this.editor=new k.a({content:this.value,editorProps:{handlePaste:function(view,e){e.preventDefault();var o=e.clipboardData;if(!o)return!1;var text=o.getData("text/plain");if(!text)return!1;var n=t.normalizeParagraphText(text,!t.textLength);return t.editor.commands.insertContent(n),!0}},extensions:[x.a,C.b,S.b,T.b,P.b,I.b,A.b,F.a,j.b,$.b,D,B,O.a.configure({openOnClick:!1})],onUpdate:function(){console.log("update",t.editor.getHTML()),t.$emit("input",t.editor.getHTML())}})},beforeDestroy:function(){this.editor.destroy()},destroyed:function(){document.removeEventListener("click",this.closeEmojiPicker)},methods:{isHtml:function(text){return/<p\b[^>]*>[\s\S]*?<\/p>/i.test(text)},applyText:function(){if(this.gptResponse.trim()){var text=this.gptResponse.trim();this.isHtml(text)||(text=this.normalizeParagraphText(text)),this.editor.commands.setContent(text,!0)}this.closeGPTForm(!0)},aiTextProcessingByType:function(t){this.gptRequestType=t,9!==t?10!==t?11!==t?this.sendMessageToChat():this.bvToast("warning","Данная опция находится в разработке.."):this.sendMessageToImagesChat():this.openGPTForm()},sendMessageToImagesChat:function(){var t=this,content="";if(!(content=11===this.gptRequestType?this.gptRequest.trim():this.editor.getText())||!this.getHtmlTextLength(content))return 11===this.gptRequestType?void this.bvToast("warning",this.$t("posts").form.texts_options.ai_set_images_request_warning):(this.bvToast("warning",this.$t("posts").form.texts_options.ai_set_text_warning),void this.editorFocus());10===this.gptRequestType&&(content=["Определи главную мысль следующего текста и на ее основе создай иллюстрацию исключительно в художественном рисованном стиле (не фотореализм). В ответ верни только картинку, без текста. Вот текст:",content].join("\r\n\r\n")).length>599&&(content=content.slice(0,599)),this.aiImageConnectionHash="hash".concat((new Date).getTime()),this.toggleLoading(!0),this.aiImageProgress=0,this.aiImageIsCreating=!0,this.sendRequest("post","/ai/images",{connection_hash:this.aiImageConnectionHash,command:content},function(e){var data=e.data;t.aiImageIsCreating=!1,t.toggleLoading(!1),data.error?t.bvToast("danger",data.error):data.photo_url},function(){t.aiImageIsCreating=!1,t.toggleLoading(!1)})},addImageToAttachments:function(t){var e=this.uniqueID();this.$emit("add-photo",{id:e,text:"",type:"photo",url:t})},sendMessageToChat:function(){var t=this,content="";if(!(content=9===this.gptRequestType?this.gptRequest.trim():this.editor.getHTML())||!this.getHtmlTextLength(content))return 9===this.gptRequestType?(this.bvToast("warning",this.$t("posts").form.texts_options.ai_set_request_warning),void this.$refs["gpt-request"].focus()):(this.bvToast("warning",this.$t("posts").form.texts_options.ai_set_text_warning),void this.editorFocus());9!==this.gptRequestType&&(content=[this.$t("posts").form.texts_options.ai_request_commands[this.gptRequestType],content].join("\r\n\r\n")),this.gptMessages=[{role:"user",content:content}],this.toggleLoading(!0),this.sendRequest("post","/gpt",{max_tokens:2e3,messages:this.gptMessages,command:this.gptRequestType},function(e){var data=e.data;if(t.toggleLoading(!1),data.error)t.bvToast("danger",data.error);else if(9===t.gptRequestType)t.gptResponse=data.message;else{var text=data.message;if(6===t.gptRequestType)if(t.textLength)text=t.editor.getHTML().replace("</p>","<br><br>".concat(text,"</p>"));else t.isHtml(text)||(text=t.normalizeParagraphText(text));else t.isHtml(text)||(text=t.normalizeParagraphText(text));t.editor.commands.setContent(text,!0),t.editorFocus()}},function(){t.toggleLoading(!1)})},closeGPTForm:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.gptMessages.length&&!e?this.bvModal(this.$t("posts").form.texts_options.ai_cancel_request_warning,function(e){e&&(t.$refs["gpt-text-modal"].hide(),t.gptRequest="",t.gptResponse="",t.gptMessages=[])}):(this.$refs["gpt-text-modal"].hide(),this.gptRequest="",this.gptResponse="",this.gptMessages=[])},openGPTForm:function(){this.$refs["gpt-text-modal"].show()},isTextSourceChecked:function(t){return this.textsSourcesChecked.includes(t)},editorFocus:function(){this.editor&&this.editor.commands.focus("start")},selectEmoji:function(t){t.data&&this.editor.chain().focus().insertContent(t.data).run()},changeCategory:function(t){localStorage.setItem("posts_form.emojiCategory",t.name),this.emojiCategory=t.name},emojiPickerToggle:function(){this.emojiPickerOpen=!this.emojiPickerOpen},closeEmojiPicker:function(){this.emojiPickerOpen=!1},normalizeParagraphText:function(text){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return text?(text=text.replace(/\r\n?/g,"\n").trim().replace(/\n/g,"<br>"),t?"<p>".concat(this.escape(text),"</p>"):this.escape(text)):""},escape:function(text){var div=document.createElement("div");return div.textContent=text,div.innerHTML.replace(/&lt;br&gt;/g,"<br>").replace(/&lt;b&gt;/g,"<strong>").replace(/&lt;\/b&gt;/g,"</strong>").replace(/&lt;i&gt;/g,"<i>").replace(/&lt;\/i&gt;/g,"</i>").replace(/&lt;em&gt;/g,"<em>").replace(/&lt;\/em&gt;/g,"</em>").replace(/&lt;s&gt;/g,"<s>").replace(/&lt;\/s&gt;/g,"</s>").replace(/&lt;u&gt;/g,"<u>").replace(/&lt;\/u&gt;/g,"</u>").replace(/&lt;blockquote&gt;/g,"<blockquote>").replace(/&lt;\/blockquote&gt;/g,"</blockquote>")},getTextSelection:function(){var t=this.editor,view=t.view,e=(t.state,view.state.selection);return{from:e.from,to:e.to}}
1,setLink:function(){var t=this.editor.getAttributes("link").href,e=window.prompt("URL",t);null!==e&&(""!==e?this.editor.chain().focus().extendMarkRange("link").setLink({href:e}).run():this.editor.chain().focus().extendMarkRange("link").unsetLink().run())}}},M=N,V=o(5),component=Object(V.a)(M,function(){var t=this,e=t._self._c;return t.editor?e("div",[e("div",{staticClass:"d-flex justify-content-between"},[e("div",{staticClass:"d-flex flex-wrap"},[e("button",{staticClass:"btn btn-light btn-sm me-1",class:{active:t.editor.isActive("bold")},attrs:{disabled:!t.editor.can().chain().focus().toggleBold().run(),title:"Жирный"},on:{click:function(e){e.preventDefault(),t.editor.chain().focus().toggleBold().run()}}},[e("fa",{attrs:{icon:["fas","bold"]}})],1),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm me-1",class:{active:t.editor.isActive("italic")},attrs:{disabled:!t.editor.can().chain().focus().toggleItalic().run(),title:"Наклонный"},on:{click:function(e){e.preventDefault(),t.editor.chain().focus().toggleItalic().run()}}},[e("fa",{attrs:{icon:["fas","italic"]}})],1),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm me-1",class:{active:t.editor.isActive("strike")},attrs:{disabled:!t.editor.can().chain().focus().toggleStrike().run(),title:"Зачеркнутый"},on:{click:function(e){e.preventDefault(),t.editor.chain().focus().toggleStrike().run()}}},[e("fa",{attrs:{icon:["fas","strikethrough"]}})],1),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm me-1",class:{active:t.editor.isActive("underline")},attrs:{disabled:!t.editor.can().chain().focus().toggleUnderline().run(),title:"Подчеркнутый"},on:{click:function(e){e.preventDefault(),t.editor.chain().focus().toggleUnderline().run()}}},[e("fa",{attrs:{icon:["fas","underline"]}})],1),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm me-1",class:{active:t.editor.isActive("blockquote")},attrs:{title:"Цитата"},on:{click:function(e){e.preventDefault(),t.editor.chain().focus().toggleBlockquote().run()}}},[e("fa",{attrs:{icon:["fas","quote-left"]}})],1),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm me-1",class:{active:t.editor.isActive("spoiler")},attrs:{title:"Невидимый"},on:{click:function(e){e.preventDefault(),t.editor.chain().focus().toggleSpoiler().run()}}},[e("fa",{attrs:{icon:["fas","eye-slash"]}})],1),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm me-1",class:{active:t.editor.isActive("link")},attrs:{title:"Поставить ссылку"},on:{click:function(e){return e.preventDefault(),t.setLink.apply(null,arguments)}}},[e("fa",{attrs:{icon:["fas","link"]}})],1),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm me-1",attrs:{disabled:!t.editor.isActive("link"),title:"Убрать ссылку"},on:{click:function(e){e.preventDefault(),t.editor.chain().focus().unsetLink().run()}}},[e("fa",{attrs:{icon:["fas","link-slash"]}})],1)]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",{staticClass:"me-1"},[e("b-dropdown",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",modifiers:{hover:!0,top:!0}}],staticClass:"dropdown-no-arrow",attrs:{right:"",variant:"light",size:"sm",title:t.$t("posts").form.texts_options.ai_title},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("img",{staticClass:"with-svg",attrs:{src:o(583),alt:""}})]},proxy:!0}],null,!1,1597771211)},[t._v(" "),e("div",{staticClass:"texts-sources-list"},t._l(t.gptRequestTypes,function(o){return e("b-dropdown-item-button",{key:o.id,attrs:{"button-class":"btn-sm"},on:{click:function(e){return e.preventDefault(),t.aiTextProcessingByType(o.id)}}},[t._v("\n                "+t._s(o.value)+"\n              ")])}),1)])],1),t._v(" "),e("div",{staticClass:"position-relative me-1"},[e("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",modifiers:{hover:!0,top:!0}}],staticClass:"btn btn-light btn-sm",attrs:{title:t.$t("posts").form.texts_options.smiles_title},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.emojiPickerToggle.apply(null,arguments)}}},[e("fa",{attrs:{icon:["fas","smile"]}})],1),t._v(" "),t.emojiPickerOpen?e("div",{staticClass:"emoji-picker-holder",on:{click:function(t){t.stopPropagation()}}}
1,[e("VEmojiPicker",{attrs:{showSearch:!1,emojiWithBorder:!1,emojisByRow:9,emojiSize:30,initialCategory:t.emojiCategory,currentCategory:t.emojiCategory,i18n:t.i18n},on:{select:t.selectEmoji,changeCategory:t.changeCategory}})],1):t._e()]),t._v(" "),t.isTextVersionsDisabled||t.textIndex||t.allSourcesChecked?t._e():e("div",[e("b-dropdown",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",modifiers:{hover:!0,top:!0}}],staticClass:"dropdown-no-arrow",attrs:{right:"",variant:"light",size:"sm",title:t.$t("posts").form.texts_options.texts_sources_title},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{attrs:{icon:["fas","plus"]}})]},proxy:!0}],null,!1,3647926718)},[t._v(" "),e("div",{staticClass:"texts-sources-list"},t._l(t.textsSourcesComputed,function(o,n){return t.isTextSourceChecked(o.source_id)?t._e():e("b-dropdown-item-button",{key:n,attrs:{"button-class":"btn-sm"},on:{click:function(e){return e.preventDefault(),t.$emit("add-text",o.source_id)}}},[t._v("\n                "+t._s(o.name)+"\n              ")])}),1)])],1),t._v(" "),t.textIndex?e("div",[e("button",{staticClass:"btn btn-light btn-sm",on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.$emit("delete-text",t.textIndex)}}},[e("fa",{attrs:{icon:["fas","trash"]}})],1)]):t._e()])]),t._v(" "),e("div",{staticClass:"position-relative"},[e("editor-content",{ref:"editor-content",staticClass:"mt-2",attrs:{editor:t.editor}}),t._v(" "),e("div",{staticClass:"text-words-counter small text-secondary rounded-1 px-2"},[t._v("\n        "+t._s(t.textLength)+"\n      ")])],1),t._v(" "),t.aiImageIsCreating?e("div",{staticClass:"alert alert-warning p-2 rounded-2 text-14 text-center mt-2"},[t._v("\n      "+t._s(t.$t("posts").form.texts_options.ai_images_progress)+"\n      "),e("div",{staticClass:"progress mt-2 rounded-1 bg-white"},[e("div",{staticClass:"progress-bar",style:"width: ".concat(t.aiImageProgress,"%"),attrs:{role:"progressbar","aria-valuenow":t.aiImageProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):t._e(),t._v(" "),e("b-modal",{ref:"gpt-text-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light"},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("posts").form.texts_options.create_text_with_ai},on:{"close-form":t.closeGPTForm}})]},proxy:!0},{key:"modal-footer",fn:function(){return[e("b-button",{class:{disabled:t.isLoading},attrs:{size:"sm",variant:"success"},on:{click:t.applyText}},[t._v("\n          "+t._s(t.$t("posts").form.texts_options.ai_response_apply)+"\n        ")])]},proxy:!0}],null,!1,4086907340)},[t._v(" "),e("div",{staticClass:"form-wrapper"},[e("FormGroupTextarea",{ref:"gpt-request",attrs:{id:"gpt-request",label:t.$t("posts").form.texts_options.ai_request_label,placeholder:t.$t("posts").form.texts_options.ai_request_placeholder,"need-to-redraw":!0,"form-group-class":"mb-3"},model:{value:t.gptRequest,callback:function(e){t.gptRequest=e},expression:"gptRequest"}}),t._v(" "),e("div",{staticClass:"btn btn-primary btn-sm w-100 mb-3",class:{disabled:t.isLoading},on:{click:t.sendMessageToChat}},[t._v("\n          "+t._s(t.$t("posts").form.texts_options.ai_request_send)+"\n        ")]),t._v(" "),e("FormGroupTextarea",{ref:"gpt-response",attrs:{id:"gpt-response",label:t.$t("posts").form.texts_options.ai_response_label,placeholder:t.$t("posts").form.texts_options.ai_response_placeholder,"need-to-redraw":!0},model:{value:t.gptResponse,callback:function(e){t.gptResponse=e},expression:"gptResponse"}})],1)])],1):t._e()},[],!1,null,null,null),U={components:{TiptapEditor:component.exports},props:["index","text","textsSources","textsSourcesChecked","isTextVersionsDisabled"],data:function(){return{localText:this.text.text}},computed:{sourceName:function(){for(var t in this.textsSources)if(this.textsSources[t].source_id===this.text.source_id)return this.textsSources[t].name},allSourcesChecked:function(){for(var t in this.textsSources)if(!this.textsSourcesChecked.includes(this.textsSources[t].source_id))return!1;return!0}},watch:{localText:function(){this.$emit("update-text",this.localText)},text:function(t){this.localText=t.text}}},E=Object(V.a)(U,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"p-3 form-fieldset",class:{"no-border":!t.index}},[t.index?e("legend",{staticClass:"w-auto mb-2 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.$t("posts").form.texts_options.text_source)+" "+t._s(t.sourceName)+"\n  ")]):t._e(),t._v(" "),e("client-only",[e("tiptap-editor",{ref:"text",attrs:{"is-hidden-enabled":9===t.text.source_id,"is-quote-enabled":9===t.text.source_id||28===t.text.source_id||33===t.text.source_id,"is-text-versions-disabled":t.isTextVersionsDisabled,"text-index":t.index,"all-sources-checked":t.allSourcesChecked,"texts-sources":t.textsSources,"texts-sources-checked":t.textsSourcesChecked},on:{"add-text":function(e){return t.$emit("add-text",e)},"delete-text":function(e){return t.$emit("delete-text",e,t.text.source_id)},"add-photo":function(e){return t.$emit("add-photo",e)}},model:{value:t.localText,callback:function(e){t.localText=e},expression:"localText"}})],1)],1)},[],!1,null,null,null).exports,H=o(12),z={components:{AppTextareaWithEmoji:E},model:{prop:"texts",event:"change"},props:["texts","textsSourcesChecked","isTextVersionsDisabled"],methods:{updateText:function(t,text){var e=Object(H.cloneDeep)(this.texts);e[t].text=text,this.$emit("change",e)},addText:function(t){var e=this,o=Object(H.cloneDeep)(this.texts);o.push({text:"",source_id:t}),this.toggleTextsSourcesChecked(t),this.$emit("change",o),setTimeout(function(){e.$refs["text-"+(e.texts.length-1)][0].$refs.text.editorFocus,e.$refs["text-"+(e.texts.length-1)][0].$refs.text.editorFocus()},10)},deleteText:function(t,e){var o=this,html=this.texts[t].text.trim();this.getHtmlTextLength(html)?this.bvModal(this.$t("posts").form.texts_options.delete_text_warning,function(n){n&&o.deleteTextProcess(t,e)}):this.deleteTextProcess(t,e)},deleteTextProcess:function(t,e){var o=Object(H.cloneDeep)(this.texts);this.toggleTextsSourcesChecked(e,!0),o.splice(t,1),this.$emit("change",o)},toggleTextsSourcesChecked:function(t,e){var o=Object(H.cloneDeep)(this.textsSourcesChecked);e?o=o.filter(function(e){return e!==t}):o.indexOf(t)<0&&o.push(t),this.$emit("update-texts-sources-checked",o)}}},W=Object(V.a)(z,function(){var t=this,e=t._self._c;return e("div",t._l(t.texts,function(text,o){return e("AppTextareaWithEmoji",{key:text.source_id,ref:"text-"+o,refInFor:!0,attrs:{index:o,text:text,"texts-sources":t.$t("posts").form.texts_options.texts_sources,"texts-sources-checked":t.textsSourcesChecked,"is-text-versions-disabled":t.isTextVersionsDisabled},on:{"update-text":function(e){return t.updateText(o,e)},"add-text":t.addText,"delete-text":t.deleteText,"add-photo":function(e){return t.$emit("add-photo",e)}}})}),1)},[],!1,null,null,null).exports,G=o(11),K=(o(24),o(428),o(429),o(176),o(404)),X=o(403),Q=o(111),Y=o(121),J=o.n(Y),Z=o(410),tt={ratioButtons:[{name:"Custom",type:"custom-type",stencil_props:{}},{name:"Square",type:"square-type",stencil_props:{aspect_ratio:1}},{name:"4:3",type:"ratio-4-3",stencil_props:{aspect_ratio:4/3}},{name:"4:5",type:"ratio-4-5",stencil_props:{aspect_ratio:.8}},{name:"16:9",type:"ratio-16-9",stencil_props:{aspect_ratio:16/9}},{name:"9:16",type:"ratio-9-16",stencil_props:{aspect_ratio:9/16}}]};function et(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return st(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?st(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t}
1,e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function st(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function ot(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function nt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ot(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var it={components:{FormModalHeader:f.default,PostFormPhoto:K.a,MyPhotosForm:X.a,FormGroupFile:Q.a,draggable:J.a,Cropper:Z.a},model:{prop:"photos",event:"change"},props:["photos","label"],data:function(){return nt({editedPhoto:null,fileInputKey:0,ratioButtonType:"custom-type",uploadingProgress:[],urlToUploadFrom:"",isMyPhotosFormOpened:!1,isMyVideosFormOpened:!1,videoUrl:"",editedPhotoSrcByProxy:""},tt)},computed:nt(nt(nt({},Object(r.b)({vipSubscriptionDays:"settings/vipSubscriptionDays",vip2SubscriptionDays:"settings/vip2SubscriptionDays",vip3
1SubscriptionDays:"settings/vip3SubscriptionDays",vip4SubscriptionDays:"settings/vip4SubscriptionDays",vip5SubscriptionDays:"settings/vip5SubscriptionDays",vip6SubscriptionDays:"settings/vip6SubscriptionDays",vip7SubscriptionDays:"settings/vip7SubscriptionDays"})),Object(r.c)({postFormState:function(t){return t.posts.form}})),{},{unusedSourcesIds:function(){return this.$store.getters["socialNetworksSettings/unusedSourcesIds"]},isVKPhotosAvailable:function(){return!(this.unusedSourcesIds.includes(1)||!this.config.source_ids.includes(1))},isDragActive:function(){return this.postFormState.isDragActive},droppedFiles:function(){return this.postFormState.droppedFiles},customVideoPreview:{get:function(){var t;return null!==(t=this.editedPhoto.custom_preview)&&void 0!==t?t:null},set:function(t){var e=Object(H.cloneDeep)(this.editedPhoto);!t&&e.custom_preview?delete e.custom_preview:t&&(e.custom_preview=t),this.editedPhoto=e}},videoPreview:function(){return this.editedPhoto.custom_preview?this.yandexPhotosUrl+this.editedPhoto.custom_preview.file_path+this.editedPhoto.custom_preview.name:this.editedPhoto.file_thumbnail_path?this.yandexVideosUrl+this.editedPhoto.file_thumbnail_path+this.editedPhoto.id+".jpg":this.editedPhoto.preview},photosLocal:{get:function(){return this.photos?this.photos:[]},set:function(t){this.$emit("change",t)}},editedPhotoSrc:function(){return this.editedPhoto?this.yandexPhotosUrl+this.editedPhoto.file_path+this.editedPhoto.name:""},stencilProps:function(){for(var t in this.ratioButtons)if(this.ratioButtons[t].type===this.ratioButtonType)return{aspectRatio:this.ratioButtons[t].stencil_props.aspect_ratio};return{}}}),watch:{editedPhotoSrc:{immediate:!0,handler:function(t){var e=this;t&&this.getPhotoFromUrl(t,function(t){e.editedPhotoSrcByProxy=t},"ru")}},isMyPhotosFormOpened:function(t){t?this.$refs["my-photos-modal"].show():this.$refs["my-photos-modal"].hide()},isMyVideosFormOpened:function(t){t?this.$refs["my-photos-modal"].show():this.$refs["my-photos-modal"].hide()},isDragActive:function(t){var e=this;!t&&this.droppedFiles&&(this.uploadPhotosFromDeviceProcess(this.droppedFiles),setTimeout(function(){e.$store.commit("posts/form/droppedFiles",null)},1))}},methods:{capturePreview:function(){var t=this,video=document.getElementById("video_player"),e=video.currentTime,canvas=document.createElement("canvas");canvas.height=video.videoHeight,canvas.width=video.videoWidth,canvas.getContext("2d").drawImage(video,0,0,video.videoWidth,video.videoHeight);var o=this.dataURLToBlob(canvas.toDataURL("image/jpeg",.9)),n=new FormData;n.append("file",o,"image.jpg"),n.append("file_id",this.uniqueID()),this.toggleLoading(!0),this.$axios.post("/files/media/upload",n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){console.log("progressEvent",t)}}).then(function(o){t.toggleLoading(!1),t.customVideoPreview=nt(nt({},o.data.photo),{},{thumb_seconds:e})}).catch(function(e){t.toggleLoading(!1)})},urlToUploadFromPaste:function(t){var e=this;return Object(G.a)(regeneratorRuntime.mark(function o(){var n,r,c,l,d,m,h,_;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(t.preventDefault(),n=(t.clipboardData||t.originalEvent.clipboardData).items,r=[],c=[],!n){o.next=7;break}l=et(n),o.prev=1,m=regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=d.value).type||!e.type.includes("image")){t.next=1;break}r.push(e.getAsFile()),t.next=2;break;case 1:if("text/plain"!==e.type){t.next=2;break}return t.next=2,new Promise(function(t){e.getAsString(function(e){c.push(e),t()})});case 2:case"end":return t.stop()}},t)}),l.s();case 2:if((d=l.n()).done){o.next=4;break}return o.delegateYield(m(),"t0",3);case 3:o.next=2;break;case 4:o.next=6;break;case 5:o.prev=5,_=o.catch(1),l.e(_);case 6:return o.prev=6,l.f(),o.finish(6);case 7:r.length?e.uploadPhotosFromDeviceProcess(r):c.length&&((h=c[0]).includes("vk.com")&&h.includes("wall")||h.includes("vk.ru")&&h.includes("wall")||h.includes("ok.ru")&&h.includes("topic")?e.getPostByUrl(h):e.urlToUploadFrom=h);case 8:case"end":return o.stop()}},o,null,[[1,5,6,7]])}))()},getPostByUrl:function(t){var e=this;this.toggleLoading(!0);var o={url:t};this.sendRequest("get","/posts/social",{params:o},function(t){var data=t.data;if(e.toggleLoading(!1),data&&data.id){var o=[];if(data.attachments.photos){var n,r=et(data.attachments.photos);try{for(r.s();!(n=r.n()).done;){var c=n.value;o.push({id:e.uniqueID(),url:c.src,type:"photo"})}}catch(t){r.e(t)}finally{r.f()}}if([1].includes(data.source_id)&&data.attachments.videos){var l,d=et(data.attachments.videos);try{for(d.s();!(l=d.n()).done;){var video=l.value;o.push({id:video.id,owner_id:video.owner_id,post_id:data.id,preview:video.src,source_id:data.source_id,type:"video"})}}catch(t){d.e(t)}finally{d.f()}}
1o.length&&(e.photosLocal=o),data.text&&e.$emit("update-texts",[{text:data.text,source_id:0}])}},function(){e.toggleLoading(!1)})},addMyPhotos:function(t,e){this.isMyPhotosFormOpened=!1,this.isMyVideosFormOpened=!1;var o=Object(H.cloneDeep)(this.photosLocal);o=o.concat(t.filter(function(t){for(var n in o)if(t.id===o[n].id&&t.type===e)return!1;return!0})),this.photosLocal=o},uploadFromUrl:function(){var t=this;if(this.urlToUploadFrom){var e=Object(H.cloneDeep)(this.photosLocal),o=this.uniqueID();e.push({id:o,url:this.urlToUploadFrom,is_ready:!1});var data={file_id:o,file_url:this.urlToUploadFrom};this.photosLocal=e,this.urlToUploadFrom="",this.$axios.post("/files/media/upload_from_url",data).then(function(e){var o=e.data.photo,n=Object(H.cloneDeep)(t.photosLocal);for(var i in n)if(o.file_id&&n[i].id===o.file_id||n[i].id===o.id){o.file_id&&delete o.file_id,n[i]=o;break}t.photosLocal=n}).catch(function(e){t.bvToast("danger",t.getRequestErrorText(e.response)),t.deletePhotoById(o)})}},getUploadingProgress:function(t){for(var e in this.uploadingProgress)if(this.uploadingProgress[e].file_id===t)return this.uploadingProgress[e];return null},cropperReady:function(){this.editedPhoto.crop_coordinates&&this.$refs.cropper.setCoordinates(this.editedPhoto.crop_coordinates)},applyPhotoCrop:function(){var t=this;this.toggleLoading(!0);var data={coordinates:this.$refs.cropper.getResult().coordinates,photo:this.editedPhoto};this.$axios.put("/files/photos/crop",data).then(function(e){t.editedPhoto=e.data.photo;var o=Object(H.cloneDeep)(t.photosLocal);for(var i in o)if(o[i].id===t.editedPhoto.id){o[i]=e.data.photo;break}t.photosLocal=o}).catch(function(){t.bvToast("danger","Crop error.")}).finally(function(){t.toggleLoading(!1)})},selectPhotosFromDevice:function(){this.$refs["photos-input"].click()},uploadPhotosFromDevice:function(){this.uploadPhotosFromDeviceProcess(this.$refs["photos-input"].files)},uploadPhotosFromDeviceProcess:function(t){var e,o=this,n=Object(H.cloneDeep)(this.photosLocal),r=[],c=function(){if(t[i]instanceof File&&(e=t[i]).type)if("video/mp4"===e.type||"video/quicktime"===e.type){if(1===o.config.plan_type)if(o.vip7SubscriptionDays){if(e.size>734003200)return o.bvToast("warning","".concat(o.$t("photos").video_size_limit,": ").concat(700," MB.")),0}else if(o.vip6SubscriptionDays){if(e.size>734003200)return o.bvToast("warning","".concat(o.$t("photos").video_size_limit,": ").concat(700," MB.")),0}else if(o.vip5SubscriptionDays){if(e.size>314572800)return o.bvToast("warning","".concat(o.$t("photos").video_size_limit,": ").concat(300," MB.")),0}else if(o.vip4SubscriptionDays){if(e.size>262144e3)return o.bvToast("warning","".concat(o.$t("photos").video_size_limit,": ").concat(250," MB.")),0}else if(o.vip3SubscriptionDays){if(e.size>209715200)return o.bvToast("warning","".concat(o.$t("photos").video_size_limit,": ").concat(200," MB.")),0}else if(o.vip2SubscriptionDays){if(e.size>157286400)return o.bvToast("warning","".concat(o.$t("photos").video_size_limit,": ").concat(150," MB.")),0}else{if(!o.vipSubscriptionDays)return o.bvToast("warning",o.$t("photos").availability),0;if(e.size>104857600)return o.bvToast("warning","".concat(o.$t("photos").video_size_limit,": ").concat(100," MB.")),0}else if(e.size>314572800)return o.bvToast("warning","".concat(o.$t("photos").video_size_limit,": ").concat(300," MB.")),0;var c=o.uniqueID();n.push({id:c}),r.push({i:i,file_id:c}),o.uploadingProgress.push({file_id:c,progress:0,is_ready:!1,blob_data:URL.createObjectURL(e),type:"video"})}else if(["image/jpeg","image/png","image/webp"].includes(e.type)){var l=o.uniqueID();n.push({id:l}),r.push({i:i,file_id:l}),o.uploadingProgress.push({file_id:l,progress:0,is_ready:!1,blob_data:null,type:"photo"});var d=new FileReader;d.onload=function(t){for(var e in o.uploadingProgress)if(o.uploadingProgress[e].file_id===l){o.uploadingProgress[e].blob_data=t.target.result;break}},d.readAsDataURL(e)}};for(var i in t)if(0===c())break;if(r.length)for(var l in this.photosLocal=n,r)this.uploadPhotoFromDevice(t[r[l].i],r[l].file_id);this.fileInputKey++},uploadPhotoFromDevice:function(t,e){var o=this,n=new FormData;n.append("file",t),n.append("file_id",e),this.$axios.post("/files/media/upload",n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){for(var n in o.uploadingProgress)if(o.uploadingProgress[n].file_id===e){o.uploadingProgress[n].progress=Math.round(t.loaded/t.total*100),t.loaded===t.total&&(
1o.uploadingProgress[n].is_ready=!0);break}}}).then(function(t){var n=Object(H.cloneDeep)(o.photosLocal);for(var i in n)if(n[i].id===e){for(var r in n[i]=t.data.photo,o.uploadingProgress)if(o.uploadingProgress[r].file_id===e){o.uploadingProgress.splice(r,1);break}break}o.photosLocal=n}).catch(function(t){o.bvToast("danger",o.getRequestErrorText(t.response)),o.deletePhotoById(e)})},deletePhotoById:function(t){var e=Object(H.cloneDeep)(this.photosLocal);for(var o in e)if(e[o].id===t){e.splice(o,1);break}this.photosLocal=e},openPhotoEditModal:function(t){var e=this;for(var o in this.videoUrl="",this.ratioButtonType="custom-type",this.photosLocal)if(this.photosLocal[o].id===t){this.editedPhoto=Object(H.cloneDeep)(this.photosLocal[o]),setTimeout(function(){"video"===e.editedPhoto.type?(document.getElementById("video-title").focus(),e.editedPhoto.self_cloud_url||e.editedPhoto.file_path&&e.getVideoUrl(e.editedPhoto.file_path+e.editedPhoto.name,function(t){e.videoUrl=t})):document.getElementById("photo-text").focus()},100);break}this.$refs["photo-edit-modal"].show()},openPhotoCropModal:function(t){for(var e in this.ratioButtonType="custom-type",this.photosLocal)if(this.photosLocal[e].id===t){this.editedPhoto=Object(H.cloneDeep)(this.photosLocal[e]);break}this.$refs["photo-crop-modal"].show()},closePhotoEditModal:function(t){if(t){var e=Object(H.cloneDeep)(this.photosLocal);for(var o in e)if(e[o].id===this.editedPhoto.id){"video"===this.editedPhoto.type?(e[o].title=this.editedPhoto.title,e[o].description=this.editedPhoto.description,this.editedPhoto.custom_preview?e[o].custom_preview=this.editedPhoto.custom_preview:e[o].custom_preview&&delete e[o].custom_preview):e[o].text=this.editedPhoto.text;break}this.photosLocal=e}this.$refs["photo-edit-modal"].hide()},closePhotoCropModal:function(){this.$refs["photo-crop-modal"].hide()},deletePhoto:function(t){var e=Object(H.cloneDeep)(this.photosLocal);e=e.filter(function(e){return e.id!==t}),this.photosLocal=e},handleDragStart:function(){this.$store.commit("posts/form/isPhotosSorting",!0)},handleDragEnd:function(){this.$store.commit("posts/form/isPhotosSorting",!1)}}},at=Object(V.a)(it,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),e("div",{staticClass:"px-3"},[e("input",{key:t.fileInputKey,ref:"photos-input",staticClass:"d-none",attrs:{type:"file",multiple:"",accept:"image/jpeg, image/png, image/webp, video/mp4, video/x-m4v, video/quicktime"},on:{change:t.uploadPhotosFromDevice}}),t._v(" "),e("div",{staticClass:"mb-3 d-flex"},[e("div",{staticClass:"btn-toolbar mt-n2"},[e("button",{staticClass:"btn btn-light btn-sm me-2 mt-2",attrs:{type:"button"},on:{click:t.selectPhotosFromDevice}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","upload"]}}),t._v(t._s(t.$t("posts").form.attachments_types.photos_select_button)+"\n        ")],1),t._v(" "),t.isVKPhotosAvailable?e("button",{staticClass:"btn btn-light btn-sm me-2 mt-2",attrs:{type:"button"},on:{click:function(e){t.isMyPhotosFormOpened=!0}}},[t._v("\n          "+t._s(t.$t("posts").form.attachments_types.photos_vk_photos_button)+"\n        ")]):t._e(),t._v(" "),t.isVKPhotosAvailable?e("button",{staticClass:"btn btn-light btn-sm mt-2",attrs:{type:"button"},on:{click:function(e){t.isMyVideosFormOpened=!0}}},[t._v("\n          "+t._s(t.$t("posts").form.attachments_types.photos_vk_videos_button)+"\n        ")]):t._e()])]),t._v(" "),e("div",[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.urlToUploadFrom,expression:"urlToUploadFrom"}],staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.photos_load_by_link_placeholder},domProps:{value:t.urlToUploadFrom},on:{paste:t.urlToUploadFromPaste,input:function(e){e.target.composing||(t.urlToUploadFrom=e.target.value)}}}),t._v(" "),e("div",{staticClass:"btn btn-secondary btn-sm",class:{disabled:!t.urlToUploadFrom},on:{click:t.uploadFromUrl}},[t._v("\n          "+t._s(t.$t("posts").form.attachments_types.photos_load_by_link_button)+"\n        ")])])])]),t._v(" "),e("div",{staticClass:"ps-3"},[t.photosLocal.length?e("div",{staticClass:"mt-2 pt-2 mb-n2 post-form-photos"},[e("draggable",{staticClass:"d-flex flex-wrap",on:{start:t.handleDragStart,end:t.handleDragEnd},model:{value:t.photosLocal,callback:function(e){t.photosLocal=e},expression:"photosLocal"}},t._l(t.photosLocal,function(o){return e("PostFormPhoto",{key:o.id,attrs:{photo:o,"uploading-progress":t.getUploadingProgress(o.id)},on:{delete:function(e){return t.deletePhoto(o.id)},edit:function(e){return t.openPhotoEditModal(o.id)},crop:function(e){return t.openPhotoCropModal(o.id)}}})}),1)],1):t._e()]),t._v(" "),e("b-modal",{ref:"my-photos-modal",attrs:{size:"lg",centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light"},on:{hidden:function(e){t.isMyPhotosFormOpened=!1,t.isMyVideosFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.isMyPhotosFormOpened?t.$t("photos").my_photos:t.$t("photos").my_videos},on:{"close-form":function(e){t.isMyPhotosFormOpened=!1,t.isMyVideosFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),t.isMyPhotosFormOpened||t.isMyVideosFormOpened?e("MyPhotosForm",{attrs:{"objects-type":t.isMyPhotosFormOpened?"photos":"videos"},on:{"add-photos":t.addMyPhotos}}):t._e()],1),t._v(" "),e("b-modal",{ref:"photo-crop-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light"},on:{hidden:function(e){t.editedPhoto=null}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("photos").crop.title,"close-btn-disabled":t.isLoading},on:{"close-form":function(e){return t.closePhotoCropModal()}}})]},proxy:!0},{key:"modal-footer",fn:function(){return[t.editedPhoto&&"photo"===t.editedPhoto.type?e("b-button",{class:{disabled:t.isLoading},attrs:{size:"sm",variant:"primary"},on:{click:t.applyPhotoCrop}},[t._v("\n        "+t._s(t.$t("photos").crop.apply)+"\n      ")]):t._e(),t._v(" "),e("b-button",{class:{disabled:t.isLoading},attrs:{size:"sm",variant:"light"},on:{click:function(e){return t.closePhotoCropModal()}}},[t._v("\n        "+t._s(t.$t("photos").crop.close)+"\n      ")])]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"}
1,[t.editedPhoto?e("cropper",{ref:"cropper",attrs:{classname:"cropper",src:t.editedPhotoSrcByProxy,canvas:!1,wheelResize:!1,"stencil-props":t.stencilProps},on:{ready:t.cropperReady}}):t._e(),t._v(" "),e("div",{staticClass:"d-flex justify-content-center m-n1 pt-3"},t._l(t.ratioButtons,function(button,o){return e("div",{key:o,staticClass:"btn btn-light p-0 m-1 photo-crop-type-btn",class:{active:button.type===t.ratioButtonType},on:{click:function(e){t.ratioButtonType=button.type}}},[e("div",{staticClass:"d-flex justify-content-center align-items-end photo-crop-type-header"},[e("div",{staticClass:"photo-crop-type-icon",class:[button.type]})]),t._v(" "),e("div",{staticClass:"text-center photo-crop-type-footer"},[t._v(t._s(button.name))])])}),0)],1)]),t._v(" "),e("b-modal",{ref:"photo-edit-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light"},on:{hidden:function(e){t.editedPhoto=null}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.editedPhoto&&"video"===t.editedPhoto.type?t.$t("photos").edit.video_title:t.$t("photos").edit.photo_title,"close-btn-disabled":t.isLoading},on:{"close-form":function(e){return t.closePhotoEditModal(!1)}}})]},proxy:!0},{key:"modal-footer",fn:function(){return[e("b-button",{class:{disabled:t.isLoading},attrs:{size:"sm",variant:"light"},on:{click:function(e){return t.closePhotoEditModal(!0)}}},[t._v("\n        "+t._s(t.$t("photos").edit.close)+"\n      ")])]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[t.editedPhoto&&"video"===t.editedPhoto.type?[t.editedPhoto.file_path&&t.videoUrl?[e("video",{staticClass:"d-block w-100 rounded-1 mb-1 video-for-thumbnail",attrs:{id:"video_player",controls:"controls",crossorigin:"anonymous"}},[e("source",{attrs:{src:t.videoUrl}})]),t._v(" "),e("div",{staticClass:"btn btn-secondary btn-sm w-100 d-block mb-3",class:{disabled:t.isLoading},on:{click:t.capturePreview}},[t._v("\n            "+t._s(t.$t("photos").edit.use_frame_for_thumb)+"\n          ")])]:t._e(),t._v(" "),e("label",{staticClass:"form-label",attrs:{for:"video-title"}},[t._v("\n          "+t._s(t.$t("photos").edit.thumb)+"\n        ")]),t._v(" "),e("div",{staticClass:"mb-3 preview-image-wrapper",style:{backgroundImage:"url("+t.videoPreview+")"}}),t._v(" "),e("FormGroupFile",{staticClass:"mb-3",attrs:{value:t.customVideoPreview,"cloud-path":t.yandexPhotosUrl,"upload-url":"/files/media/upload","response-file-key":"photo","file-types":["image/jpeg"]},on:{change:function(e){t.customVideoPreview=e},delete:function(e){t.customVideoPreview=null}}}),t._v(" "),e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"video-title"}},[t._v("\n            "+t._s(t.$t("photos").edit.title)+"\n          ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.editedPhoto.title,expression:"editedPhoto['title']"}],staticClass:"form-control form-control-sm",attrs:{type:"text",id:"video-title"},domProps:{value:t.editedPhoto.title},on:{input:function(e){e.target.composing||t.$set(t.editedPhoto,"title",e.target.value)}}})]),t._v(" "),e("label",{staticClass:"form-label",attrs:{for:"video-description"}},[t._v("\n          "+t._s(t.$t("photos").edit.description)+"\n        ")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.editedPhoto.description,expression:"editedPhoto['description']"}],staticClass:"form-control form-control-sm",attrs:{id:"video-description",rows:"3"},domProps:{value:t.editedPhoto.description},on:{input:function(e){e.target.composing||t.$set(t.editedPhoto,"description",e.target.value)}}})]:t._e(),t._v(" "),t.editedPhoto&&"photo"===t.editedPhoto.type?e("div",[e("label",{staticClass:"form-label",attrs:{for:"photo-text"}},[t._v("\n          "+t._s(t.$t("photos").edit.description)+"\n        ")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.editedPhoto.text,expression:"editedPhoto['text']"}],staticClass:"form-control form-control-sm",attrs:{id:"photo-text",rows:"3"},domProps:{value:t.editedPhoto.text},on:{input:function(e){e.target.composing||t.$set(t.editedPhoto,"text",e.target.value)}}})]):t._e()],2)])],1)},[],!1,null,null,null).exports,ct={props:["audio"],computed:{duration:function(){return this.audio.duration},link:function(){return"https://vk.ru/audio"+this.audio.owner_id+"_"+this.audio.id}}},lt={components:{PostFormAudio:Object(V.a)(ct,function(){var t=this,e=t._self._c;return e("div",{staticClass:"row g-0 post-form-audio"},[e("div",{staticClass:"col align-self-center"},[e("div",{staticClass:"post-form-audio-name"},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","music"]}}),e("a",{attrs:{href:t.link,target:"_blank"}},[t._v(t._s(t.audio.artist)+" - "+t._s(t.audio.title))])],1)]),t._v(" "),e("div",{staticClass:"col-auto d-flex ps-3"},[e("button",{staticClass:"btn btn-light btn-sm align-self-center",attrs:{type:"button",title:"Удалить аудио"},on:{click:function(e){return t.$emit("delete")}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])])},[],!1,null,null,null).exports},model:{prop:"audios",event:"change"},props:["audios","label"],computed:{audiosLocal:{get:function(){return this.audios?this.audios:[]},set:function(t){this.$emit("change",t)}}},methods:{deleteDocument:function(t){var e=Object(H.cloneDeep)(this.audiosLocal);e=e.filter(function(e){return e.id!==t}),this.audiosLocal=e}}},ut=Object(V.a)(lt,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset px-3 mt-3 mx-n3"},[e("legend",{staticClass:"w-auto px-2 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),t.audiosLocal.length?e("div",{staticClass:"mt-1 post-form-documents"},t._l(t.audiosLocal,function(o,n){return e("PostFormAudio",{key:o.id,class:{"mt-2":n},attrs:{audio:o},on:{delete:function(e){return t.deleteDocument(o.id)}}})}),1):t._e()])},[],!1,null,null,null).exports,pt={props:["document","uploadingProgress"],computed:{fileSize:function(){var t=parseInt(String(this.document.size/1e3));return t>1e3?(t=parseInt(String(t/1e3)),t+="MB"):t+="KB",t},isUploaded:function(){return!!this.document.file_path},isFileAsUrl:function(){return!!this.document.url},fileSocialIcon:function(){return 1===this.document.source_id?["fab","vk"]:[]},fileUrl:function(){return this.isFileAsUrl?this.document.url:this.yandexDocumentsUrl+this.document.file_path+this.document.name}}},mt={components:{PostFormDocument:Object(V.a)(pt,function(){var t=this,e=t._self._c;return e("div",{staticClass:"row g-0 post-form-document"},[e("div",{staticClass:"col align-self-center"},[e("a",{staticClass:"post-form-document-name",attrs:{href:t.fileUrl,target:"_blank"}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","file"]}}),t._v(t._s(t.document.source_name)+"\n    ")],1)]),t._v(" "),e("div",{staticClass:"col-auto d-flex ps-3"},[e("div",{staticClass:"me-3 text-secondary align-self-center post-form-document-size"},[t._v("\n      "+t._s(t.fileSize)+"\n    ")]),t._v(" "),t.isFileAsUrl||t.isUploaded||!t.uploadingProgress?e("button",{staticClass:"btn btn-light btn-sm align-self-center",attrs:{type:"button"},on:{click:function(e){return t.$emit("delete")}}},[e("fa",{attrs:{icon:["fas","times"]}})],1):e("div",{staticClass:"spinner-border spinner-border-sm my-auto",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])])])])},[],!1,null,null,null).exports,draggable:J.a},model:{prop:"documents",event:"change"},props:["documents","label"],data:function(){return{fileInputKey:0,uploadingProgress:[]}},computed:{documentsLocal:{get:function(){return this.documents?this.documents:[]},set:function(t){this.$emit("change",t)}}},methods:{getUploadingProgress:function(t){for(var e in this.uploadingProgress)if(this.uploadingProgress[e].file_id===t)return this.uploadingProgress[e];return null},deleteDocument:function(t){var e=Object(H.cloneDeep)(this.documentsLocal);e=e.filter(function(e){return e.id!==t}),this.documentsLocal=e},selectDocumentsFromDevice:function(){this.$refs["documents-input"].click()},uploadDocumentsFromDevice:function(){var t,e=Object(H.cloneDeep)(this.documentsLocal),o=[];for(var i in this.$refs["documents-input"].files)if(this.$refs["documents-input"].files[i]instanceof File){t=this.$refs["documents-input"].files[i];var n=this.uniqueID();e.push({id:n,source_name:t.name,size:t.size}),o.push({i:i,file_id:n}
1),this.uploadingProgress.push({file_id:n,progress:0,is_ready:!1})}if(o.length)for(var r in this.documentsLocal=e,o)this.uploadDocumentFromDevice(this.$refs["documents-input"].files[o[r].i],o[r].file_id);this.fileInputKey++},uploadDocumentFromDevice:function(t,e){var o=this,n=new FormData;n.append("file",t),n.append("file_id",e),this.$axios.post("/files/documents/upload",n,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){for(var n in o.uploadingProgress)if(o.uploadingProgress[n].file_id===e){o.uploadingProgress[n].progress=parseInt(String(Math.round(t.loaded/t.total*100))),t.loaded===t.total&&(o.uploadingProgress[n].is_ready=!0);break}}}).then(function(t){var n=Object(H.cloneDeep)(o.documentsLocal);for(var i in n)if(n[i].id===e){var r=n[i].source_name;for(var c in n[i]=t.data.document,n[i].source_name=r,o.uploadingProgress)if(o.uploadingProgress[c].file_id===e){o.uploadingProgress.splice(c,1);break}break}o.documentsLocal=n}).catch(function(t){o.bvToast("danger",o.getRequestErrorText(t.response)),o.deleteDocument(e)})}}},ht=Object(V.a)(mt,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),e("input",{key:t.fileInputKey,ref:"documents-input",staticClass:"d-none",attrs:{type:"file",multiple:""},on:{change:t.uploadDocumentsFromDevice}}),t._v(" "),e("div",{staticClass:"px-3"},[e("button",{staticClass:"btn btn-light btn-sm",attrs:{type:"button"},on:{click:t.selectDocumentsFromDevice}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","upload"]}}),t._v("\n      "+t._s(t.$t("posts").form.attachments_types.documents_select_button)+"\n    ")],1)]),t._v(" "),t.documentsLocal.length?e("div",{staticClass:"mt-3 px-3 post-form-documents"},[e("draggable",{model:{value:t.documentsLocal,callback:function(e){t.documentsLocal=e},expression:"documentsLocal"}},t._l(t.documentsLocal,function(o,n){return e("PostFormDocument",{key:o.id,class:{"mt-2":n},attrs:{document:o,"uploading-progress":t.getUploadingProgress(o.id)},on:{delete:function(e){return t.deleteDocument(o.id)}}})}),1)],1):t._e()])},[],!1,null,null,null).exports,_t={model:{prop:"value",event:"input"},props:["value","label","placeholder"],data:function(){return{textarea:null,isTextareaShown:!!this.value}},watch:{value:function(){var t=this;this.$nextTick(function(){t.resize()})},isTextareaShown:function(t){var e=this;t?this.$nextTick(function(){e.textarea=e.$refs.textarea,e.textarea.focus()}):this.textarea=null}},mounted:function(){var t=this;this.value&&(this.textarea=this.$refs.textarea,this.resize(),setTimeout(function(){t.textarea.focus()},10))},methods:{inputFocusIn:function(){this.isTextareaShown=!0},textareaFocusOut:function(){this.value||(this.isTextareaShown=!1)},resize:function(){this.textarea&&(this.textarea.style.height="auto",this.textarea.style.height=this.textarea.scrollHeight+2+"px")}}},ft=Object(V.a)(_t,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),e("div",{staticClass:"px-3"},[t.isTextareaShown?e("textarea",{ref:"textarea",staticClass:"ps-2 form-control form-control-sm as-input",attrs:{rows:"1"},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)},focusout:t.textareaFocusOut}}):e("input",{staticClass:"form-control form-control-sm",attrs:{placeholder:t.placeholder},on:{focusin:function(e){return e.stopPropagation(),t.inputFocusIn.apply(null,arguments)}}})])])},[],!1,null,null,null),bt=ft.exports;function vt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function gt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):vt(Object(o)).forEac
1h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var yt={model:{prop:"repost",event:"change"},props:["repost"],computed:{link:{get:function(){return this.repost.link},set:function(t){var e=gt({},this.repost);e.link=t,this.$emit("change",e)}},title:{get:function(){return this.repost.title},set:function(t){var e=gt({},this.repost);e.title=t,this.$emit("change",e)}}}},kt=Object(V.a)(yt,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.$t("posts").form.attachments_types.repost)+"\n  ")]),t._v(" "),e("div",{staticClass:"px-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.link,expression:"link"}],staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.repost_placeholder},domProps:{value:t.link},on:{input:function(e){e.target.composing||(t.link=e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],staticClass:"form-control form-control-sm mt-3",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.repost_name},domProps:{value:t.title},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})])])},[],!1,null,null,null).exports,xt={components:{FormSelect:h.default,FormGroupFile:Q.a},model:{prop:"poll",event:"change"},props:["poll","label"],data:function(){return{lastAction:null}},computed:{question:{get:function(){return this.poll.question},set:function(t){var e=Object(H.cloneDeep)(this.poll);e.question=t,this.$emit("change",e)}},answers:{get:function(){return this.poll.answers},set:function(t){var e=Object(H.cloneDeep)(this.poll);e.answers=t,this.$emit("change",e)}},isAnonymous:{get:function(){return this.poll.is_anonymous},set:function(t){var e=Object(H.cloneDeep)(this.poll);e.is_anonymous=t,this.$emit("change",e)}},isMultipleAnswers:{get:function(){return this.poll.is_multiple_answers},set:function(t){var e=Object(H.cloneDeep)(this.poll);e.is_multiple_answers=t,this.$emit("change",e)}},untilTime:{get:function(){return this.poll.until_time},set:function(t){var e=Object(H.cloneDeep)(this.poll);e.until_time=t,this.$emit("change",e)}},bgImage:{get:function(){var t;return null!==(t=this.poll.bg_image)&&void 0!==t?t:null},set:function(t){var e=Object(H.cloneDeep)(this.poll);e.bg_image=t,this.$emit("change",e)}}},updated:function(){"addAnswer"===this.lastAction&&this.$nextTick(function(){this.answers.length&&this.$refs["answer-"+(this.answers.length-1)].length&&(this.$refs["answer-"+(this.answers.length-1)][0].focus(),this.lastAction=null)})},methods:{handleAnswerInput:function(t,e){var o=Object(H.cloneDeep)(this.answers);o[t].text=e,this.answers=o},deleteAnswer:function(t){var e=Object(H.cloneDeep)(this.answers);e.splice(t,1),this.answers=e},addAnswer:function(){this.lastAction="addAnswer";var t=Object(H.cloneDeep)(this.answers);t.push({text:""}),this.answers=t}}},wt=Object(V.a)(xt,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3 small"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),e("div",{staticClass:"px-3"},[e("div",{staticClass:"mb-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.question,expression:"question"}],staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.poll_question_placeholder},domProps:{value:t.question},on:{input:function(e){e.target.composing||(t.question=e.target.value)}}})]),t._v(" "),t._l(t.answers,function(o,n){return e("div",{key:n,staticClass:"input-group",class:n<t.answers.length-1||t.answers.length<10?"mb-2":"mb-3"},[e("input",{ref:"answer-"+n,refInFor:!0,staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.poll_answer_variant_placeholder+" "+(n+1)},domProps:{value:o.text},on:{input:function(e){return t.handleAnswerInput(n,e.target.value)}}}),t._v(" "),e("div",{staticClass:"input-group-append"},[e("button",{staticClass:"btn btn-secondary btn-sm",attrs:{type:"button"},on:{click:function(e){return t.deleteAnswer(n)}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])])}),t._v(" "),t.answers.length<10?e("div",{staticClass:"mb-3"},[e("input",{staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("posts").form.attachments_types.poll_answer_placeholder},on:{click:t.addAnswer}})]):t._e(),t._v(" "),e("div",{staticClass:"mb-3"},[e("FormSelect",{attrs:{name:"until_time",items:this.$t("posts").form.attachments_types.poll_until_times},model:{value:t.untilTime,callback:function(e){t.untilTime=e},expression:"untilTime"}})],1),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isAnonymous,expression:"isAnonymous"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"is_anonymous"},domProps:{checked:Array.isArray(t.isAnonymous)?t._i(t.isAnonymous,null)>-1:t.isAnonymous},on:{change:function(e){var o=t.isAnonymous,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);
1n.checked?c<0&&(t.isAnonymous=o.concat([null])):c>-1&&(t.isAnonymous=o.slice(0,c).concat(o.slice(c+1)))}else t.isAnonymous=r}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"is_anonymous"}},[t._v("\n        "+t._s(t.$t("posts").form.attachments_types.poll_anonymous_voting)+"\n      ")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isMultipleAnswers,expression:"isMultipleAnswers"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"is_multiple_answers"},domProps:{checked:Array.isArray(t.isMultipleAnswers)?t._i(t.isMultipleAnswers,null)>-1:t.isMultipleAnswers},on:{change:function(e){var o=t.isMultipleAnswers,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.isMultipleAnswers=o.concat([null])):c>-1&&(t.isMultipleAnswers=o.slice(0,c).concat(o.slice(c+1)))}else t.isMultipleAnswers=r}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"is_multiple_answers"}},[t._v("\n        "+t._s(t.$t("posts").form.attachments_types.poll_multiple_answers)+"\n      ")])]),t._v(" "),e("label",{staticClass:"form-label text-14 text-secondary mt-2"},[t._v("\n      "+t._s(t.$t("posts").form.attachments_types.poll_background)+"\n    ")]),t._v(" "),e("FormGroupFile",{attrs:{value:t.bgImage,"cloud-path":t.yandexPhotosUrl,"upload-url":"/files/media/upload","response-file-key":"photo","file-types":["image/jpeg","image/png"]},on:{change:function(e){t.bgImage=e},delete:function(e){t.bgImage=null}}})],2)])},[],!1,null,null,null).exports,Ct={components:{FormTelegramButtons:o(172).a},model:{prop:"buttons",event:"change"},props:["buttons","label"],data:function(){return{lastAction:null}},computed:{list:{get:function(){return this.buttons},set:function(t){this.$emit("change",t)}}},methods:{handleDragStart:function(){this.$store.commit("posts/form/isTGButtonsSorting",!0)},handleDragEnd:function(){this.$store.commit("posts/form/isTGButtonsSorting",!1)}}},St=Object(V.a)(Ct,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),e("FormTelegramButtons",{staticClass:"px-3",on:{drag_start:t.handleDragStart,drag_stop:t.handleDragEnd},model:{value:t.list,callback:function(e){t.list=e},expression:"list"}})],1)},[],!1,null,null,null).exports,Tt={components:{FormGroupFile:Q.a},model:{prop:"comment",event:"change"},props:["comment","photo_enabled","label","placeholder"],computed:{text:{get:function(){return this.comment.text},set:function(t){var e=Object(H.cloneDeep)(this.comment);e.text=t,this.$emit("change",e)}},publishByAccount:{get:function(){var t;return null!==(t=this.comment.publish_by_account)&&void 0!==t&&t},set:function(t){var e=Object(H.cloneDeep)(this.comment);e.publish_by_account=t,this.$emit("change",e)}},photo:{get:function(){var t;return null!==(t=this.comment.photo)&&void 0!==t?t:null},set:function(t){var e=Object(H.cloneDeep)(this.comment);e.photo=t,this.$emit("change",e)}}}},Pt=Object(V.a)(Tt,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),e("div",{staticClass:"px-3"},[e("textarea-autosize",{staticClass:"form-control comments-textarea",class:{"mb-2":t.photo_enabled},attrs:{placeholder:t.placeholder,value:t.text,"min-height":30,"max-height":398},on:{input:function(e){t.text=e}}}),t._v(" "),e("div",{staticClass:"form-check small"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishByAccount,expression:"publishByAccount"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_by_account"},domProps:{checked:Array.isArray(t.publishByAccount)?t._i(t.publishByAccount,null)>-1:t.publishByAccount},on:{change:function(e){var o=t.publishByAccount,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishByAccount=o.concat([null])):c>-1&&(t.publishByAccount=o.slice(0,c).concat(o.slice(c+1)))}else t.publishByAccount=r}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"publish_by_account"}},[t._v("\n        "+t._s(t.$t("posts").form.attachments_types.publish_comment_by_account)+"\n      ")])]),t._v(" "),t.photo_enabled?[e("label",{staticClass:"form-label text-14 text-secondary mt-2"},[t._v("\n        "+t._s(t.$t("posts").form.attachments_types.comment_photo)+"\n      ")]),t._v(" "),e("FormGroupFile",{attrs:{value:t.photo,"cloud-path":t.yandexPhotosUrl,"upload-url":"/files/media/upload","response-file-key":"photo","file-types":["image/jpeg","image/png"]},on:{change:function(e){t.photo=e},delete:function(e){t.photo=null}}})]:t._e()],2)])},[],!1,null,null,null).exports,It=(o(130),o(46)),At=o(87),Ft={searchTypes:[{id:1,value:"По наÐ
1·Ð²Ð°Ð½Ð¸ÑŽ"},{id:2,value:"По карте"},{id:3,value:"По ссылке"}]};function jt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}var Ot={head:function(){var t=this;return{script:[{skip:this.isGoogleMapsLoaded,src:"https://maps.googleapis.com/maps/api/js?key=AIzaSyAHrZIy9O6BJwoqqSyYBBo1ODxESDGnuw8&libraries=places",callback:function(){t.$store.commit("google/isGoogleMapsLoaded",!0)}}]}},components:{FormGroupRadioButtons:d.a,FormGroupInput:It.a,FormInput:At.a,FormGroupSelect:_.a,FormModalHeader:f.default},model:{prop:"location",event:"change"},props:["location","label","instagramAccounts"],data:function(){return function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):jt(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({isFormOpened:!1,isLocationsFormOpened:!1,searchType:1,searchQuery:"",locationUrl:"",localValue:this.value,instagramAccountId:0,map:null,mapOptions:{center:{lat:55.75222,lng:37.61556},zoom:8,zoomControl:!0,mapTypeControl:!1,scaleControl:!0,streetViewControl:!1,rotateControl:!0,fullscreenControl:!1},mapMarker:null,latitude:"",longitude:"",locations:[],selectedLocationId:"",locationLocal:null},Ft)},computed:{isGoogleMapsLoaded:function(){return this.$store.getters["google/isGoogleMapsLoaded"]},isConfigured:function(){return!!this.location.id},btnName:function(){return this.isConfigured?"Изменить настройки":"Настроить"}},watch:{searchType:function(t){t&&this.isFormOpened&&2===this.searchType&&this.setMap()},isGoogleMapsLoaded:function(t){2===t&&this.isFormOpened&&this.isGoogleMapsLoaded&&this.setMap()},isFormOpened:function(t){t?(this.locationLocal=this.location.id?Object(H.cloneDeep)(this.location):null,this.locationLocal&&(this.mapOptions.center.lat=this.locationLocal.latitude,this.mapOptions.center.lng=this.locationLocal.longitude,this.searchQuery=this.locationLocal.name,this.latitude=this.locationLocal.latitude,this.longitude=this.locationLocal.longitude),this.$refs["form-modal"].show(),this.isGoogleMapsLoaded&&2===this.searchType&&this.setMap()):this.$refs["form-modal"].hide()},isLocationsFormOpened:function(t){t?this.$refs["locations-form-modal"].show():this.$refs["locations-form-modal"].hide()}},methods:{setLocation:function(){this.$emit("change",this.locationLocal?this.locationLocal:{id:"",name:"",latitude:"",longitude:""}),this.isFormOpened=!1},unselectLocation:function(){this.locationLocal=null},applyLocation:function(){if(this.selectedLocationId){for(var t in this.locations)if(this.locations[t].id===this.selectedLocationId){this.locationLocal=this.locations[t];break}this.isLocationsFormOpened=!1}else this.bvToast("warning","Выберите геометку.")},selectLocation:function(t){this.selectedLocationId=t},search:function(){var t=this,data=this.getSearchData();data&&(this.toggleLoading(!0),this.sendRequest("get","/search/instagram/locations",{params:data},function(e){var data=e.data;t.toggleLoading(!1),t.locations=data.locations,t.selectedLocationId=t.locationLocal?t.locationLocal.id:"",t.isLocationsFormOpened=!0},function(){t.toggleLoading(!1)}))},getSearchData:function(){var t={instagram_account_id:this.instagramAccountId,search_type:this.searchType};if(1===this.searchType){if(!this.searchQuery.trim())return this.bvToast("warning","Укажите название места."),this.$refs.search_query.focus(),null;t.search_query=this.searchQuery}else if(2===this.searchType){if(!String(this.latitude).trim()||!String(this.longitude).trim())return this.bvToast("warning","Укажите координаты места."),null;t.search_query=this.searchQuery,t.latitude=this.latitude,t.longitude=this.longitude}else if(3===this.searchType){if(!this.locationUrl.trim())return this.bvToast("warning","Укажите ссылку на место."),this.$refs.location_url.focus(),null;t.location_url=this.locationUrl}return this.instagramAccountId?t:(this.bvToast("warning","Укажите аккаунт для работы с АПИ Instagram."),null)},setMap:function(){var t=this;setTimeout(function(){t.map=new google.maps.Map(t.$refs["form-map"],t.mapOptions),google.maps.event.addListener(t.map,"click",function(e){t.setMarker(e.latLng.lat(),e.latLng.lng())});var e=t;google.maps.event.addListener(t.map,"center_changed",function(){var t=this.getCenter();e.mapOptions.center.lat=t.lat(),e.mapOptions.center.lng=t.lng()}),t.latitude&&t.longitude&&t.setMarker(t.latitude,t.longitude)},1)},setMarker:function(t,e){this.mapMarker&&this.mapMarker.setMap(null),this.mapMarker=new google.maps.Marker({position:{lat:t,lng:e},map:this.map}),this.latitude=t,this.longitude=e},inputKeypress:function(t){13===t.keyCode&&this.search()}}},$t=Ot,Lt=Object(V.a)($t,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v(t._s(t.label))]),t._v(" "),e("div",{staticClass:"px-3"},[e("div",[e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName))],1)]),t._v(" "),e("b-modal",{ref:"locations-form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isLocationsFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:"Найденные места"},on:{"close-form":function(e){t.isLocationsFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),t.locations.length?t._t("default",function(){return t._l(t.locations,function(o,n){return e("div",{staticClass:"btn btn-light btn-sm text-start d-block",class:{active:o.id===t.selectedLocationId,"mt-2":n},on:{click:function(e){return t.selectLocation(o.id)}}},[e("div",[e("b",[t._v(t._s(o.name))])]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",[t._v("Широта: "+t._s(o.latitude))]),t._v(" "),e("div",{staticClass:"ms-2"},[t._v("Долгота: "+t._s(o.longitude))])]),t._v(" "),e("div",{staticClass:"mt-2 small text-secondary"},[t._v("id: "+t._s(o.id))])])})}):t._e(),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-light btn-sm",attrs:{type:"button"},on:{click:t.applyLocation}},[t._v("\n          Готово\n        ")])])],2),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:"Настройка геометки"},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.searchTypes,name:"search_type",label:"Метод поиска"},model:{value:t.searchType,callback:function(e){t.searchType=e},expression:"searchType"}}),t._v(" "),2===t.searchType?e("div",{ref:"form-map",staticClass:"mb-3 form-map"}):t._e(),t._v(" "),2===t.searchType?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-label"},[t._v("Координаты места")]),t._v(" "),e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col pe-2"},[e("FormInput",{attrs:{placeholder:"широта"},model:{value:t.latitude,callback:function(e){t.latitude=e},expression:"latitude"}})],1),t._v(" "),e("div",{staticClass:"col ps-2"},[e("FormInput",{attrs:{placeholder:"широта"},model:{value:t.longitude,callback:function(e){t.longitude=e},expression:"longitude"}})],1)])]):t._e(),t._v(" "),1===t.searchType||2===t.searchType?e("FormGroupInput",{ref:"search_query",attrs:{label:"Название места","label-tip":"Вы можете использовать название или адрес нужного места.",placeholder:2===t.searchType?"Например: Станюковича 12":"Например: Красная площадь","btn-name-to-append":"Найти",id:"search_query"},on:{"btn-to-append-click":t.search,keypress:t.inputKeypress},model:{value:t.searchQuery,callback:function(e){t.searchQuery=e},expression:"searchQuery"}}):t._e(),t._v(" "),3===t.searchType?e("FormGroupInput",{ref:"location_url",attrs:{label:"Ссылка на место",placeholder:"https://www.instagram.com/explore/locations/25965955/","btn-name-to-append":"Найти",id:"location_url"},on:{"btn-to-append-click":t.search,keypress:t.inputKeypress},model:{value:t.locationUrl,callback:function(e){t.locationUrl=e},expression:"locationUrl"}}):t._e(),t._v(" "),e("FormGroupSelect",{attrs:{items:t.instagramAccounts,label:"Аккаунт для поиска геометки","label-tip":"Используйте аккаунт Instagram, для которого нужно будет публиковать геометку.","no-items-text":"Ð
1ÐµÑ‚ ни одного аккаунта"},model:{value:t.instagramAccountId,callback:function(e){t.instagramAccountId=e},expression:"instagramAccountId"}}),t._v(" "),t.locationLocal?e("div",{staticClass:"row g-0 p-3 bg-primary text-white btn-sm rounded"},[e("div",{staticClass:"col pe-3"},[e("div",[e("b",[t._v(t._s(t.locationLocal.name))])]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",[t._v("Широта: "+t._s(t.locationLocal.latitude))]),t._v(" "),e("div",{staticClass:"ms-2"},[t._v("Долгота: "+t._s(t.locationLocal.longitude))])]),t._v(" "),e("div",{staticClass:"mt-2 small"},[t._v("id: "+t._s(t.locationLocal.id))])]),t._v(" "),e("div",{staticClass:"col-auto d-flex align-items-center"},[e("div",{staticClass:"btn btn-primary btn-sm",on:{click:t.unselectLocation}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])]):e("div",{staticClass:"bg-light p-3 text-center text-secondary rounded"},[t._v("Геометка не выбрана")]),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-light btn-sm",attrs:{type:"button"},on:{click:t.setLocation}},[t._v("\n          Готово\n        ")])])],1)],1)])},[],!1,null,null,null).exports,Rt=o(300),Bt={actionButtons:[{name:"add",title:"Создать",icon:["fas","plus"],method_name:"createForm"},{name:"edit",title:"Редактировать",icon:["fas","pen"],method_name:"editForm"},{name:"delete",title:"Удалить",icon:["fas","trash"],method_name:"deleteListItem"}]},Dt=o(60),Nt=o(72);function Mt(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return Vt(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Vt(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function Vt(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function Ut(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}var Et={mixins:[Dt.a,Nt.a],components:{FormSelect:h.default,FormModalHeader:f.default,Form:Rt.a},model:{prop:"value",event:"change"},props:["value","contracts","disabled"],data:function(){return function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ut(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({editedItemId:-1},Bt)},computed:{currentValue:{get:function(){return this.contracts.length?this.value:0},set:function(t){this.$emit("change",t)}},currentValueComputed:{get:function(){if(this.currentValue&&this.contractsComputed.length){var t,e=Mt(this.contractsComputed);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.currentValue)return o}}catch(t){e.e(t)}finally{e.f()}}return null},set:function(t){this.currentValue=t?t.id:0}},contractsComputed:function(){return this.contracts.length?this.contracts.map(function(t){return{id:t.id,value:t.name||(3===t.type?"Самореклама":"#"+t.serial_number+" ("+t.contract_price+" руб.)")}}):[]}},methods:{closeForm:function(t,e,o){this.$refs["edit-modal"].hide(),"boolean"==typeof t&&t&&(this.$emit("update-contracts",o),this.$emit("change",e))},editForm:function(){this.editedItemId=this.currentValue,this.$refs["edit-modal"].show()},createForm:function(){this.editedItemId=0,this.$refs["edit-modal"].show()},deleteListItem:function(){var t=this;this.deleteItem("/ord/contracts/"+this.currentValue,null,this.$t("ord").contracts.delete_confirmation,function(e){t.$emit("update-contracts",e.data.contracts),t.$emit("change",0)})}}},qt=Et,Ht={components:{FormORDContract:Object(V.a)(qt,function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"d-flex"},[e("multiselect",{attrs:{options:t.contractsComputed,searchable:!0,multiple:!1,"show-labels":!1,"close-on-select":!0,placeholder:t.contractsComputed.length?t.$t("ord").contracts.form_group.default_value:t.$t("ord").contracts.form_group.no_items,"track-by":"id",label:"value",disabled:t.disabled||!t.contractsComputed.length},scopedSlots:t._u([{key:"singleLabel",fn:function(e){var option=e.option;return[t._v("\n        "+t._s(option.value)+"\n      ")]}}]),model:{value:t.currentValueComputed,callback:function(e){t.currentValueComputed=e},expression:"currentValueComputed"}}),t._v(" "),e("b-dropdown",{staticClass:"dropdown-no-arrow ms-2",attrs:{right:"",variant:"secondary",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{attrs:{icon:["fas","ellipsis-h"]}})]},proxy:!0}])},[t._v(" "),t._l(t.actionButtons,function(o,n){return e("b-dropdown-item-button",{key:n,attrs:{"button-class":{"btn-sm":!0,disabled:["edit","delete"].includes(o.name)&&(!t.currentValue||t.disabled)}},on:{click:function(e){return t.callMethodByName(o.method_name,0)}}},[e("span",{staticClass:"dropdown-item-icon me-2"},[e("fa",{attrs:{icon:o.icon}})],1),t._v(t._s(t.$t("ord").contracts.form_group.action_buttons[o.name])+"\n      ")])})],2)],1),t._v(" "),e("b-modal",{ref:"edit-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.editedItemId=-1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.editedItemId?t.$t("ord").contracts.form_group.edit_title:t.$t("ord").contracts.form_group.create_title},on:{"close-form":t.closeForm}})]},proxy:!0}])},[t._v(" "),t.editedItemId>=0?e("Form",{attrs:{id:t.editedItemId,"is-in-popup":!0},on:{"close-form":t.closeForm}}):t._e()],1)],1)},[],!1,null,null,null).exports},model:{prop:"ad",event:"change"},props:["ad","contracts","label"],computed:{isAd:{get:function(){return this.ad.is_ad},set:function(t){var e=Object(H.cloneDeep)(this.ad);e.is_ad=t,this.$emit("change",e)}},contractId:{get:function(){return this.ad.contract_id},set:function(t){var e=Object(H.cloneDeep)(this.ad);e.contract_id=t,this.$emit("change",e)}},contractsComputed:{get:function(){return this.contracts},set:function(t){this.$emit("update-contracts",t)}}}}
1,zt=Object(V.a)(Ht,function(){var t=this,e=t._self._c;return e("fieldset",{staticClass:"form-fieldset mt-3 mx-n3 small"},[e("legend",{staticClass:"px-3 pt-2 mb-3 form-fieldset-legend text-secondary"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),e("div",{staticClass:"px-3"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isAd,expression:"isAd"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"is_ad"},domProps:{checked:Array.isArray(t.isAd)?t._i(t.isAd,null)>-1:t.isAd},on:{change:function(e){var o=t.isAd,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.isAd=o.concat([null])):c>-1&&(t.isAd=o.slice(0,c).concat(o.slice(c+1)))}else t.isAd=r}}}),t._v(" "),e("label",{staticClass:"form-check-label",attrs:{for:"is_ad"}},[t._v("\n        "+t._s(t.$t("posts").form.attachments_types.is_ad)+"\n      ")])]),t._v(" "),e("label",{staticClass:"form-label text-14 text-secondary mt-2"},[t._v("\n      "+t._s(t.$t("posts").form.attachments_types.ord_contract_id)+"\n    ")]),t._v(" "),e("FormORDContract",{attrs:{contracts:t.contractsComputed,disabled:!t.contractsComputed.length||!t.isAd},on:{"update-contracts":function(e){t.contractsComputed=e}},model:{value:t.contractId,callback:function(e){t.contractId=e},expression:"contractId"}})],1)])},[],!1,null,null,null).exports,Wt=o(123),Gt=o(133);function Kt(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return Xt(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Xt(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function Xt(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var Qt={mixins:[o(221).a],components:{FormSelect:h.default,FormDate:Wt.a,FormTime:Gt.a,FormInput:At.a,FormModalHeader:f.default},model:{prop:"settings",event:"change"},props:["settings","isRepeatable","ordContracts","hasCheckedSettings","socialNetworks"],data:function(){var t=[{id:0,value:"--"}],e=[1,2,3,4,5,6,7,10,14,15,20,30,60,90,180,365];for(var o in e)t.push({id:e[o],value:this.wordsDeclension(e[o],this.$t("posts").form.attachments_types.settings_options.repeat_days_prefix)+" "+(e[o]>1?e[o]:"")+" "+this.wordsDeclension(e[o],this.$t("posts").form.attachments_types.settings_options.repeat_days_postfix)});return{repeatTypes:t,settingsAllowedForSourcesIds:{delete_post:[1,2,3,7,9],donut_paid_duration:[1],disable_comments:[1,2,7,9,10,14],disable_stitch:[14],disable_duet:[14],commercial_content:[14],my_brand_content:[14],branded_content:[14],pin_post:[1,28],plan_by_network:[1],download_vk_video:[1],publish_as_carousel:[1],publish_only_in_videos:[1],not_publish_in_videos:[1],repeat_video:[1],parse_links:[1,2,6,9],is_ad:[1,2],ord_contract_id:[1],publish_as_story:[1,2,7,9,10,22],publish_as_reels:[3,7,10],publish_reels_as_trial:[7,10],publish_as_clips:[1],publish_as_shorts:[17],publish_as_article:[1,13],publish_as_article_by_link:[1],publish_in_channel:[1],share_stories_to_feed:[1,2,7,9,10,22],share_reels_to_feed:[3,7,10],share_clips_to_feed:[1],share_clips_to_feed_with_text:[1],share_clips_to_feed_if_no_video:[1],share_channel_to_feed:[1],expand_clips_title:[1],publish_as_user:[1],add_link_to_user:[1],message_to_community:[1],message_to_channel:[1],privacy_level:[1,17,14],youtube_category:[17],publish_by_account:[9],content_by_stars:[9]},publishAsStorySources:[{id:1,icon:"vk"},{id:2,icon:"ok"},{id:7,icon:"ig"},{id:9,icon:"tg"},{id:10,icon:"ig"},{id:22,icon:"wa"}],publishByAccountSources:[{id:1,icon:"vk"},{id:9,icon:"tg"}]}},computed:{publishAsStorySourcesComputed:function(){var t=this;return this.publishAsStorySources.filter(function(e){return(10!==e.id||!t.config.source_ids.includes(7))&&t.config.source_ids.includes(e.id)})},publishByAccountSourcesComputed:function(){var t=this;return this.publishByAccountSources.filter(function(e){return t.config.source_ids.includes(e.id)})},repeatTypeValue:function(){var t,e=Kt(this.repeatTypes);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.repeatType)return o.value}}catch(t){e.e(t)}finally{e.f()}return""},deletePostDayValue:function(){var t,e=Kt(this.deleteDays);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.deletePostDay)return o.value}}catch(t){e.e(t)}finally{e.f()}return""},deletePostHourValue:function(){var t,e=Kt(this.deleteHours);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.deletePostHour)return o.value}}catch(t){e.e(t)}finally{e.f()}return""},privacyLevelValue:function(){var t,e=Kt(this.$t("posts").form.attachments_types.settings_options.privacy_level_options);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.privacyLevel)return o.value.toLowerCase()}}catch(t){e.e(t)}finally{e.f()}return""},youtubeCategoryValue:function(){var t,e=Kt(this.$t("common").youtube_category_options);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id.toString()===this.youtubeCategory.toString())return o.value.toLowerCase()}}catch(t){e.e(t)}finally{e.f()}return""},ordContractsComputed:function(){if(!this.ordContracts.length)return[];return[{id:0,value:"--"}].concat(this.ordContracts.map(function(t){return{id:t.id,value:t.name||(3===t.type?"Самореклама":"#"+t.serial_number+" ("+t.contract_price+" руб.)")}}))},isClearAllBtnShowed:function(){return!!(this.repeatStopDateLocal||this.repeatStopHoursLocal||this.repeatStopMinutesLocal)},repeatType:{get:function(){return this.settings.repeat_type},set:function(t){this.updateSettingsField(["repeat_type"],[t])}},repeatStopDateLocal:{get:function(){return this.settings.repeat_stop_date},set:function(t){this.updateSettingsField(["repeat_stop_date"],[t])}},repeatStopHoursLocal:function(){return this.settings.repeat_stop_hours?this.settings.repeat_stop_hours:""},repeatStopMinutesLocal:function(){return this.settings.repeat_stop_minutes?this.settings.repeat_stop_minutes:""},repeatStopTimeLocal:{get:function(){return this.repeatStopHoursLocal+":"+this.repeatStopMinutesLocal},set:function(t){var time=t.split(":");this.updateSettingsField(["repeat_stop_hours","repeat_stop_minutes"],[time[0],time[1]])}},deletePostDay:{get:function(){return this.settings.delete_post_day},set:function(t){this.updateSettingsField(["delete_post_day"],[t])}},deletePostHour:{get:function(){return this.settings.delete_post_hour},set:function(t){this.updateSettingsField(["delete_post_hour"],[t])}},donutPaidDuration:{get:function(){return this.settings.donut_paid_duration},set:function(t){this.updateSettingsField(["donut_paid_duration"],[t])}},contentByStars:{get:function(){return this.settings.content_by_stars&&parseInt(this.settings.content_by_stars)?this.settings.content_by_stars:""},set:function(t){this.updateSettingsField(["content_by_stars"],[t])}},privacyLevel:{get:function(){return this.settings.privacy_level},set:function(t){this.updateSettingsField(["privacy_level"],[t])}},youtubeCategory:{get:function(){return this.settings.youtube_category},set:function(t){this.updateSettingsField(["youtube_category"],[t])}},disableComments:{get:function(){return this.settings.disable_comments},set:function(t){this.updateSettingsField(["disable_comments"],[t])}},disableStitch:{get:function(){return this.settings.disable_stitch},set:function(t){this.updateSettingsField(["disable_stitch"],[t])}},disableDuet:{get:function(){return this.settings.disable_duet},set:function(t){this.updateSettingsField(["disable_duet"],[t])}},commercialContent:{get:function(){return this.settings.commercial_content},set:function(t){this.updateSettingsField(["commercial_content"],[t])}},myBrandContent:{get:function(){return this.settings.my_brand_content},set:function(t){this.updateSettingsField(["my_brand_content"],[t])}},brandedContent:{get:function(){return this.settings.branded_content},set:function(t){this.updateSettingsField(["branded_content"],[t])}},uniqueContent:{get:function(){return this.settings.unique_content},set:function(t){this.updateSettingsField(["unique_content"],[t])}},randomContent:{get:function(){return this.settings.random_content},set:function(t){this.updateSettingsField(["random_content"],[t])}},pinPost:{get:function(){return this.settings.pin_post},set:function(t){this.updateSettingsField(["pin_post"],[t])}},planByNetwork:{get:function(){return this.settings.plan_by_network},set:function(t){this.updateSettingsField(["plan_by_network"],[t])}},downloadVKVideo:{get:function(){return this.settings.download_vk_video}
1,set:function(t){this.updateSettingsField(["download_vk_video"],[t])}},publishAsCarousel:{get:function(){return this.settings.publish_as_carousel},set:function(t){this.updateSettingsField(["publish_as_carousel"],[t])}},publishOnlyInVideos:{get:function(){return this.settings.publish_only_in_videos},set:function(t){this.updateSettingsField(["publish_only_in_videos"],[t])}},notPublishInVideos:{get:function(){return this.settings.not_publish_in_videos},set:function(t){this.updateSettingsField(["not_publish_in_videos"],[t])}},repeatVideo:{get:function(){return this.settings.repeat_video},set:function(t){this.updateSettingsField(["repeat_video"],[t])}},parseLinks:{get:function(){return this.settings.parse_links},set:function(t){this.updateSettingsField(["parse_links"],[t])}},publishByAccount:{get:function(){return this.settings.publish_by_account},set:function(t){this.updateSettingsField(["publish_by_account"],[t])}},publishAsStory:{get:function(){return this.settings.publish_as_story},set:function(t){this.updateSettingsField(["publish_as_story"],[t])}},publishAsStorySourceIds:function(){return this.settings.publish_as_story_source_ids},publishByAccountSourceIds:function(){return this.settings.publish_by_account_source_ids},publishAsReels:{get:function(){return this.settings.publish_as_reels},set:function(t){this.updateSettingsField(["publish_as_reels"],[t])}},publishReelsAsTrial:{get:function(){return this.settings.publish_reels_as_trial},set:function(t){this.updateSettingsField(["publish_reels_as_trial"],[t])}},publishAsClips:{get:function(){return this.settings.publish_as_clips},set:function(t){this.updateSettingsField(["publish_as_clips"],[t])}},publishAsShorts:{get:function(){return this.settings.publish_as_shorts},set:function(t){this.updateSettingsField(["publish_as_shorts"],[t])}},publishAsArticle:{get:function(){return this.settings.publish_as_article},set:function(t){this.updateSettingsField(["publish_as_article"],[t])}},publishAsArticleByLink:{get:function(){return this.settings.publish_as_article_by_link},set:function(t){this.updateSettingsField(["publish_as_article_by_link"],[t])}},publishInChannel:{get:function(){return this.settings.publish_in_channel},set:function(t){this.updateSettingsField(["publish_in_channel"],[t])}},shareStoriesToFeed:{get:function(){return this.settings.share_stories_to_feed},set:function(t){this.updateSettingsField(["share_stories_to_feed"],[t])}},shareStoriesToFeedSourceIds:function(){return this.settings.share_stories_to_feed_source_ids},shareReelsToFeed:{get:function(){return this.settings.share_reels_to_feed},set:function(t){this.updateSettingsField(["share_reels_to_feed"],[t])}},shareClipsToFeed:{get:function(){return this.settings.share_clips_to_feed},set:function(t){this.updateSettingsField(["share_clips_to_feed"],[t])}},shareClipsToFeedWithText:{get:function(){return this.settings.share_clips_to_feed_with_text},set:function(t){this.updateSettingsField(["share_clips_to_feed_with_text"],[t])}},shareClipsToFeedIfNoVideo:{get:function(){return this.settings.share_clips_to_feed_if_no_video},set:function(t){this.updateSettingsField(["share_clips_to_feed_if_no_video"],[t])}},shareChannelToFeed:{get:function(){return this.settings.share_channel_to_feed},set:function(t){this.updateSettingsField(["share_channel_to_feed"],[t])}},expandClipsTitle:{get:function(){return this.settings.expand_clips_title},set:function(t){this.updateSettingsField(["expand_clips_title"],[t])}},publishAsUser:{get:function(){return this.settings.publish_as_user},set:function(t){this.updateSettingsField(["publish_as_user"],[t])}},addLinkToUser:{get:function(){return this.settings.add_link_to_user},set:function(t){this.updateSettingsField(["add_link_to_user"],[t])}},messageToCommunity:{get:function(){return this.settings.message_to_community},set:function(t){this.updateSettingsField(["message_to_community"],[t])}},messageToChannel:{get:function(){return this.settings.message_to_channel},set:function(t){this.updateSettingsField(["message_to_channel"],[t])}},isAd:{get:function(){return this.settings.is_ad},set:function(t){this.updateSettingsField(["is_ad"],[t])}},ordContractId:{get:function(){return this.settings.ord_contract_id},set:function(t){this.updateSettingsField(["ord_contract_id"],[t])}},unusedSourcesIds:function(){return this.$store.getters["socialNetworksSettings/unusedSourcesIds"]}},watch:{publishAsStory:function(t){var e=this;t||setTimeout(function(){e.updateSettingsField(["share_stories_to_feed"],[!1])},0)},publishAsStorySourceIds:function(){var t=this;setTimeout(function(){t.updateSettingsField(["share_stories_to_feed_source_ids"],[t.sourceIdsToArray(t.shareStoriesToFeedSourceIds).filter(function(e){return t.sourceIdsToArray(t.publishAsStorySourceIds).includes(e)}).join(",")])},0)},publishAsReels:function(t){t||(this.shareReelsToFeed=!1)},publishInChannel:function(t){t||(this.shareChannelToFeed=!1)},publishAsClips:function(t){var e=this;t||setTimeout(function(){e.shareClipsToFeed=!1,setTimeout(function(){e.shareClipsToFeedIfNoVideo=!1},0)},0)},shareClipsToFeed:function(t){t||(this.shareClipsToFeedWithText=!1)},repeatType:function(t){t||(this.randomContent=!1)},commercialContent:function(t){var e=this;t||setTimeout(function(){e.myBrandContent=!1,setTimeout(function(){e.brandedContent=!1},0)},0)}},methods:{socialIcons:function(t){var e=this;return t.filter(function(t){return(10!==t||!e.config.source_ids.includes(7))&&e.config.source_ids.includes(t)}).map(function(t){var o,n=Kt(e.socialNetworks);try{for(n.s();!(o=n.n()).done;){var r=o.value;if(parseInt(r.source_id)===t)return r.icon}}catch(t){n.e(t)}finally{n.f()}})},sourceIdsToArray:function(t){return t.split(",").filter(function(t){return!!t}).map(function(t){return parseInt(t)})},closeSettings:function(){this.$refs["post-settings-modal"].hide()},openSettings:function(){this.$refs["post-settings-modal"].show()},isAttachmentTypeAllowed:function(t){var e=this;return t.filter(function(t){return!(e.unusedSourcesIds.includes(parseInt(t))||!e.config.source_ids.includes(parseInt(t)))}).length},updateSettingsField:function(t,e){var o=Object(H.cloneDeep)(this.settings);for(var n in t)o[t[n]]=e[n];this.$emit("change",o)},clearAll:function(){this.updateSettingsField(["repeat_stop_date","repeat_stop_hours","repeat_stop_minutes"],["","",""])},reset:function(){this.$store.dispatch("posts/form/resetSettings")}}},Yt={components:{PostFormPhotos:at,PostFormAudios:ut,PostFormDocuments:ht,PostFormLink:bt,PostFormRepost:kt,PostFormPoll:wt,PostFormTelegramButtons:St,PostFormComment:Pt,PostFormLocation:Lt,PostFormAd:zt,PostFormSettings:Object(V.a)(Qt,function(){var t=this,e=t._self._c;return e("fieldset",{class:{"form-fieldset mt-3 mx-n3 small":t.hasCheckedSettings}},[t.hasCheckedSettings?e("div",{staticClass:"px-3 pt-2 pb-3 text-14 bg-light mb-n3 rounded-bottom"},[e("div",{staticClass:"mb-2 bg-light text-secondary d-flex justify-content-between align-items-center"},[e("span",[t._v("\n          "+t._s(t.$t("posts").form.attachments_types.settings)+"\n        ")]),t._v(" "),e("span",[e("div",{staticClass:"btn-link link-secondary",on:{click:t.reset}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.clear)+"\n          ")])])]),t._v(" "),t.isRepeatable&&t.repeatType?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("span",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.repeat_type)+":")]),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.repeatTypeValue.toLowerCase()))]),t._v(" "),t.repeatStopDateLocal?e("span",{staticClass:"ms-2"},[t._v("до "+t._s(t.repeatStopDateLocal)+t._s(":"!==t.repeatStopTimeLocal?", ":""))]):t._e(),t._v(" "),t.repeatStopDateLocal&&":"!==t.repeatStopTimeLocal?e("span",{staticClass:"ms-1"},[t._v("\n          "+t._s("".concat(t.repeatStopTimeLocal.split(":")[0]||"00",":").concat(t.repeatStopTimeLocal.split(":")[1]||"00"))+"\n        ")]):t._e()],1):t._e(),t._v(" "),t.deletePostDay||t.deletePostHour?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("span",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.delete_post)+":")]),t._v(" "),t.deletePostDay?e("b",{staticClass:"ms-2"},[t._v(t._s(t.deletePostDayValue))]):t._e(),t._v(" "),t.deletePostDay&&t.deletePostHour?e("span",{staticClass:"ms-1"},[t._v("и")]):t._e(),t._v(" "),t.deletePostHour?e("b",{staticClass:"ms-1"},[t._v(t._s(t.deletePostHourValue))]):t._e()],1):t._e(),t._v(" "),t.uniqueContent?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.unique_content))])],1):t._e(),t._v(" "),t.randomContent?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.random_content))])],1):t._e(),t._v(" "),t.pinPost?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.pin_post))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.pin_post),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.isAd?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.is_ad))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.is_ad),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.shareStoriesToFeed?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.share_stories_to_feed))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_stories_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t.publishAsStory?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_story))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_story),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.shareReelsToFeed?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.share_reels_to_feed))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_reels_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.publishReelsAsTrial?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_reels_as_trial))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_reels_as_trial),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.shareClipsToFeedWithText?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.share_clips_to_feed_with_text))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_clips_to_feed_with_text),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t.shareClipsToFeed?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.share_clips_to_feed))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_clips_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t.publishAsClips?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_clips))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_clips),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.publishAsShorts?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_shorts))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_shorts),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.publishAsArticle?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_article))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_article),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.shareChannelToFeed?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.share_channel_to_feed))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_channel_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t.publishInChannel?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_in_channel))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_in_channel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.addLinkToUser?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.add_link_to_user))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.add_link_to_user),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.messageToCommunity?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.message_to_community))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.message_to_community),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.messageToChannel?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.message_to_channel))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.message_to_channel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.downloadVKVideo?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.download_vk_video))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.download_vk_video),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.planByNetwork?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.plan_by_network))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.plan_by_network),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.publishAsCarousel?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_carousel))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_carousel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.publishOnlyInVideos?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_only_in_videos))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_only_in_videos),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.notPublishInVideos?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.not_publish_in_videos))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.not_publish_in_videos),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.repeatVideo?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.repeat_video))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.repeat_video),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.parseLinks?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.parse_links))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.parse_links),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.publishByAccount?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_by_account))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_by_account),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.donutPaidDuration?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("common").donut_paid_duration))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.donut_paid_duration),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.contentByStars?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("common").content_by_stars))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.content_by_stars),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.privacyLevel?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("span",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.privacy_level)+":")]),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.privacyLevelValue))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.privacy_level),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.youtubeCategory?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("span",{staticClass:"ms-2"},[t._v(t._s(t.$t("common").youtube_category)+":")]),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.youtubeCategoryValue))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.youtube_category),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.disableComments?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.disable_comments))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.disable_comments),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.disableStitch?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.disable_stitch))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.disable_stitch),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.disableDuet?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.disable_duet))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.disable_duet),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.commercialContent?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.commercial_content))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.commercial_content),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.myBrandContent?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.my_brand_content))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.my_brand_content),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.brandedContent?e("div",{staticClass:"d-flex align-items-center"},[e("fa",{staticClass:"text-success",attrs:{icon:["fas","check"]}}),t._v(" "),e("b",{staticClass:"ms-2"},[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.branded_content))]),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.branded_content),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1):t._e(),t._v(" "),t.myBrandContent&&!t.brandedContent?e("div",{staticClass:"alert alert-warning mt-2 mb-0 p-2 text-12",domProps:{innerHTML:t._s(t.$t("posts").form.attachments_types.settings_options.my_brand_content_mention)}}):t._e(),t._v(" "),t.brandedContent?e("div",{staticClass:"alert alert-warning mt-2 mb-0 p-2 text-12",domProps:{innerHTML:t._s(t.$t("posts").form.attachments_types.settings_options.branded_content_mention)}}):t._e(),t._v(" "),t.myBrandContent||t.brandedContent?e("div",{staticClass:"alert alert-success p-2 text-12 mt-2 mb-0"},[t.brandedContent?[t._v("\n          "+t._s(t.$t("posts").form.attachments_types.settings_options.commercial_content_label_2)+"\n        ")]:[t._v("\n          "+t._s(t.$t("posts").form.attachments_types.settings_options.commercial_content_label_1)+"\n        ")]],2):t.commercialContent?e("div",{staticClass:"alert alert-warning p-2 text-12 mt-2 mb-0"},[t._v("\n        "+t._s(t.$t("posts").form.attachments_types.settings_options.commercial_content_label_3)+"\n      ")]):t._e()]):t._e(),t._v(" "),e("b-modal",{ref:"post-settings-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("posts").form.attachments_types.settings},on:{"close-form":t.closeSettings}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_clips)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsClips,expression:"publishAsClips"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_clips"},domProps:{checked:Array.isArray(t.publishAsClips)?t._i(t.publishAsClips,null)>-1:t.publishAsClips},on:{change:function(e){var o=t.publishAsClips,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsClips=o.concat([null])):c>-1&&(t.publishAsClips=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsClips=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_clips"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_clips)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_clips),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_clips_to_feed)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareClipsToFeed,expression:"shareClipsToFeed"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_clips_to_feed",disabled:!t.publishAsClips},domProps:{checked:Array.isArray(t.shareClipsToFeed)?t._i(t.shareClipsToFeed,null)>-1:t.shareClipsToFeed},on:{change:function(e){var o=t.shareClipsToFeed,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareClipsToFeed=o.concat([null])):c>-1&&(t.shareClipsToFeed=o.slice(0,c).concat(o.slice(c+1)))}else t.shareClipsToFeed=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_clips_to_feed"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.share_clips_to_feed)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_clips_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_clips_to_feed_with_text)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareClipsToFeedWithText,expression:"shareClipsToFeedWithText"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_clips_to_feed_with_text",disabled:!t.shareClipsToFeed},domProps:{checked:Array.isArray(t.shareClipsToFeedWithText)?t._i(t.shareClipsToFeedWithText,null)>-1:t.shareClipsToFeedWithText},on:{change:function(e){var o=t.shareClipsToFeedWithText,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareClipsToFeedWithText=o.concat([null])):c>-1&&(t.shareClipsToFeedWithText=o.slice(0,c).concat(o.slice(c+1)))}else t.shareClipsToFeedWithText=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_clips_to_feed_with_text"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.share_clips_to_feed_with_text)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_clips_to_feed_with_text),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_clips_to_feed_if_no_video)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareClipsToFeedIfNoVideo,expression:"shareClipsToFeedIfNoVideo"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_clips_to_feed_if_no_video",disabled:!t.publishAsClips},domProps:{checked:Array.isArray(t.shareClipsToFeedIfNoVideo)?t._i(t.shareClipsToFeedIfNoVideo,null)>-1:t.shareClipsToFeedIfNoVideo},on:{change:function(e){var o=t.shareClipsToFeedIfNoVideo,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareClipsToFeedIfNoVideo=o.concat([null])):c>-1&&(t.shareClipsToFeedIfNoVideo=o.slice(0,c).concat(o.slice(c+1)))}else t.shareClipsToFeedIfNoVideo=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_clips_to_feed_if_no_video"}},[t._v("\n            "+t._s(t.$t("form").other_settings.form.share_clips_to_feed_if_no_video)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_clips_to_feed_if_no_video),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_story)?e("div",{class:t.publishAsStory?"p-2 rounded-2 border border-light mb-2 mt-2":"form-check-mb"},[e("div",{class:t.publishAsStory?"px-1":""},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsStory,expression:"publishAsStory"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_story"},domProps:{checked:Array.isArray(t.publishAsStory)?t._i(t.publishAsStory,null)>-1:t.publishAsStory},on:{change:function(e){var o=t.publishAsStory,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsStory=o.concat([null])):c>-1&&(t.publishAsStory=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsStory=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_story"}},[t._v("\n                "+t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_story)+"\n                "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_story),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]),t._v(" "),t.publishAsStory?[e("div",{staticClass:"d-flex my-2 form-social-networks"},[t._l(t.publishAsStorySourcesComputed,function(n){return[e("input",{key:"checkbox_".concat(n.id),staticClass:"btn-check",attrs:{type:"checkbox",name:"publish_as_story_s".concat(n.id),id:"publish_as_story_s".concat(n.id)},domProps:{checked:t.sourceIdsToArray(t.publishAsStorySourceIds).includes(n.id
1)},on:{change:function(e){t.updateSettingsField(["publish_as_story_source_ids"],[e.target.checked?t.sourceIdsToArray(t.publishAsStorySourceIds).concat([n.id]).join(","):t.sourceIdsToArray(t.publishAsStorySourceIds).filter(function(t){return t!==n.id}).join(",")])}}}),t._v(" "),e("label",{key:"label_".concat(n.id),staticClass:"btn btn-sm d-flex align-items-center justify-content-center me-1 social-network-btn",class:[t.sourceIdsToArray(t.publishAsStorySourceIds).includes(n.id)?"btn-primary":"btn-light"],attrs:{for:"publish_as_story_s".concat(n.id)}},[e("img",{class:{"white-filter":t.sourceIdsToArray(t.publishAsStorySourceIds).includes(n.id)},attrs:{src:o(18)("./".concat(n.icon,".svg")),alt:""}})])]})],2),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_stories_to_feed)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareStoriesToFeed,expression:"shareStoriesToFeed"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_stories_to_feed"},domProps:{checked:Array.isArray(t.shareStoriesToFeed)?t._i(t.shareStoriesToFeed,null)>-1:t.shareStoriesToFeed},on:{change:function(e){var o=t.shareStoriesToFeed,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareStoriesToFeed=o.concat([null])):c>-1&&(t.shareStoriesToFeed=o.slice(0,c).concat(o.slice(c+1)))}else t.shareStoriesToFeed=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_stories_to_feed"}},[t._v("\n                  "+t._s(t.$t("posts").form.attachments_types.settings_options.share_stories_to_feed)+"\n                ")])]):t._e(),t._v(" "),t.shareStoriesToFeed?e("div",{staticClass:"d-flex mt-2 mb-1 form-social-networks"},[t._l(t.publishAsStorySourcesComputed,function(n){return[e("input",{key:"checkbox_".concat(n.id),staticClass:"btn-check",attrs:{type:"checkbox",name:"share_stories_to_feed_s".concat(n.id),id:"share_stories_to_feed_s".concat(n.id),disabled:!t.sourceIdsToArray(t.publishAsStorySourceIds).includes(n.id)},domProps:{checked:t.sourceIdsToArray(t.shareStoriesToFeedSourceIds).includes(n.id)},on:{change:function(e){t.updateSettingsField(["share_stories_to_feed_source_ids"],[e.target.checked?t.sourceIdsToArray(t.shareStoriesToFeedSourceIds).concat([n.id]).join(","):t.sourceIdsToArray(t.shareStoriesToFeedSourceIds).filter(function(t){return t!==n.id}).join(",")])}}}),t._v(" "),e("label",{key:"label_".concat(n.id),staticClass:"btn btn-sm d-flex align-items-center justify-content-center me-1 social-network-btn",class:[t.sourceIdsToArray(t.shareStoriesToFeedSourceIds).includes(n.id)?"btn-primary":"btn-light"],attrs:{for:"share_stories_to_feed_s".concat(n.id)}},[e("img",{class:{"white-filter":t.sourceIdsToArray(t.shareStoriesToFeedSourceIds).includes(n.id)},attrs:{src:o(18)("./".concat(n.icon,".svg")),alt:""}})])]})],2):t._e()]:t._e()],2)]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_in_channel)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishInChannel,expression:"publishInChannel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_in_channel"},domProps:{checked:Array.isArray(t.publishInChannel)?t._i(t.publishInChannel,null)>-1:t.publishInChannel},on:{change:function(e){var o=t.publishInChannel,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishInChannel=o.concat([null])):c>-1&&(t.publishInChannel=o.slice(0,c).concat(o.slice(c+1)))}else t.publishInChannel=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_in_channel"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_in_channel))]),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_in_channel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_channel_to_feed)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareChannelToFeed,expression:"shareChannelToFeed"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_channel_to_feed",disabled:!t.publishInChannel},domProps:{checked:Array.isArray(t.shareChannelToFeed)?t._i(t.shareChannelToFeed,null)>-1:t.shareChannelToFeed},on:{change:function(e){var o=t.shareChannelToFeed,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareChannelToFeed=o.concat([null])):c>-1&&(t.shareChannelToFeed=o.slice(0,c).concat(o.slice(c+1)))}else t.shareChannelToFeed=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_channel_to_feed"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.share_channel_to_feed)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_channel_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_shorts)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsShorts,expression:"publishAsShorts"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_shorts"},domProps:{checked:Array.isArray(t.publishAsShorts)?t._i(t.publishAsShorts,null)>-1:t.publishAsShorts},on:{change:function(e){var o=t.publishAsShorts,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsShorts=o.concat([null])):c>-1&&(t.publishAsShorts=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsShorts=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_shorts"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_shorts)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_shorts),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.share_reels_to_feed)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.shareReelsToFeed,expression:"shareReelsToFeed"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"share_reels_to_feed"},domProps:{checked:Array.isArray(t.shareReelsToFeed)?t._i(t.shareReelsToFeed,null)>-1:t.shareReelsToFeed},on:{change:function(e){var o=t.shareReelsToFeed,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.shareReelsToFeed=o.concat([null])):c>-1&&(t.shareReelsToFeed=o.slice(0,c).concat(o.slice(c+1)))}else t.shareReelsToFeed=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"share_reels_to_feed"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.share_reels_to_feed)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.share_reels_to_feed),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_reels_as_trial)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishReelsAsTrial,expression:"publishReelsAsTrial"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_reels_as_trial"},domProps:{checked:Array.isArray(t.publishReelsAsTrial)?t._i(t.publishReelsAsTrial,null)>-1:t.publishReelsAsTrial},on:{change:function(e){var o=t.publishReelsAsTrial,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishReelsAsTrial=o.concat([null])):c>-1&&(t.publishReelsAsTrial=o.slice(0,c).concat(o.slice(c+1)))}else t.publishReelsAsTrial=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_reels_as_trial"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.publish_reels_as_trial)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_reels_as_trial),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_article)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsArticle,expression:"publishAsArticle"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_article"},domProps:{checked:Array.isArray(t.publishAsArticle)?t._i(t.publishAsArticle,null)>-1:t.publishAsArticle},on:{change:function(e){var o=t.publishAsArticle,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsArticle=o.concat([null])):c>-1&&(t.publishAsArticle=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsArticle=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_article"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_article)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_article),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.message_to_community)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.messageToCommunity,expression:"messageToCommunity"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"message_to_community"},domProps:{checked:Array.isArray(t.messageToCommunity)?t._i(t.messageToCommunity,null)>-1:t.messageToCommunity},on:{change:function(e){var o=t.messageToCommunity,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.messageToCommunity=o.concat([null])):c>-1&&(t.messageToCommunity=o.slice(0,c).concat(o.slice(c+1)))}else t.messageToCommunity=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"message_to_community"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.message_to_community)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.message_to_community),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.message_to_channel)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.messageToChannel,expression:"messageToChannel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"message_to_channel"},domProps:{checked:Array.isArray(t.messageToChannel)?t._i(t.messageToChannel,null)>-1:t.messageToChannel},on:{change:function(e){var o=t.messageToChannel,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.messageToChannel=o.concat([null])):c>-1&&(t.messageToChannel=o.slice(0,c).concat(o.slice(c+1)))}else t.messageToChannel=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"message_to_channel"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.message_to_channel)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.message_to_channel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_as_carousel)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishAsCarousel,expression:"publishAsCarousel"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_as_carousel"},domProps:{checked:Array.isArray(t.publishAsCarousel)?t._i(t.publishAsCarousel,null)>-1:t.publishAsCarousel},on:{change:function(e){var o=t.publishAsCarousel,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishAsCarousel=o.concat([null])):c>-1&&(t.publishAsCarousel=o.slice(0,c).concat(o.slice(c+1)))}else t.publishAsCarousel=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_as_carousel"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.publish_as_carousel)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_as_carousel),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_only_in_videos)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishOnlyInVideos,expression:"publishOnlyInVideos"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_only_in_videos"},domProps:{checked:Array.isArray(t.publishOnlyInVideos)?t._i(t.publishOnlyInVideos,null)>-1:t.publishOnlyInVideos},on:{change:function(e){var o=t.publishOnlyInVideos,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishOnlyInVideos=o.concat([null])):c>-1&&(t.publishOnlyInVideos=o.slice(0,c).concat(o.slice(c+1)))}else t.publishOnlyInVideos=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_only_in_videos"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_only_in_videos))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.publish_only_in_videos_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['publish_only_in_videos_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_only_in_videos),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.not_publish_in_videos)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.notPublishInVideos,expression:"notPublishInVideos"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"not_publish_in_videos"},domProps:{checked:Array.isArray(t.notPublishInVideos)?t._i(t.notPublishInVideos,null)>-1:t.notPublishInVideos},on:{change:function(e){var o=t.notPublishInVideos,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.notPublishInVideos=o.concat([null])):c>-1&&(t.notPublishInVideos=o.slice(0,c).concat(o.slice(c+1)))}else t.notPublishInVideos=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"not_publish_in_videos"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.not_publish_in_videos))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.not_publish_in_videos_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['not_publish_in_videos_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.not_publish_in_videos),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.download_vk_video)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.downloadVKVideo,expression:"downloadVKVideo"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"download_vk_video"},domProps:{checked:Array.isArray(t.downloadVKVideo)?t._i(t.downloadVKVideo,null)>-1:t.downloadVKVideo},on:{change:function(e){var o=t.downloadVKVideo,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.downloadVKVideo=o.concat([null])):c>-1&&(t.downloadVKVideo=o.slice(0,c).concat(o.slice(c+1)))}else t.downloadVKVideo=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"download_vk_video"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.download_vk_video))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.download_vk_video_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['download_vk_video_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.download_vk_video),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.repeat_video)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.repeatVideo,expression:"repeatVideo"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"repeat_video"},domProps:{checked:Array.isArray(t.repeatVideo)?t._i(t.repeatVideo,null)>-1:t.repeatVideo},on:{change:function(e){var o=t.repeatVideo,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.repeatVideo=o.concat([null])):c>-1&&(t.repeatVideo=o.slice(0,c).concat(o.slice(c+1)))}else t.repeatVideo=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"repeat_video"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.repeat_video)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.repeat_video),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.publish_by_account)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.publishByAccount,expression:"publishByAccount"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"publish_by_account"},domProps:{checked:Array.isArray(t.publishByAccount)?t._i(t.publishByAccount,null)>-1:t.publishByAccount},on:{change:function(e){var o=t.publishByAccount,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.publishByAccount=o.concat([null])):c>-1&&(t.publishByAccount=o.slice(0,c).concat(o.slice(c+1)))}else t.publishByAccount=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"publish_by_account"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.publish_by_account))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.publish_by_account_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['publish_by_account_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.publish_by_account),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.disable_comments)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.disableComments,expression:"disableComments"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"disable_comments"},domProps:{checked:Array.isArray(t.disableComments)?t._i(t.disableComments,null)>-1:t.disableComments},on:{change:function(e){var o=t.disableComments,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.disableComments=o.concat([null])):c>-1&&(t.disableComments=o.slice(0,c).concat(o.slice(c+1)))}else t.disableComments=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"disable_comments"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.disable_comments)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.disable_comments),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.pin_post)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.pinPost,expression:"pinPost"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"pin_post"},domProps:{checked:Array.isArray(t.pinPost)?t._i(t.pinPost,null)>-1:t.pinPost},on:{change:function(e){var o=t.pinPost,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.pinPost=o.concat([null])):c>-1&&(t.pinPost=o.slice(0,c).concat(o.slice(c+1)))}else t.pinPost=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"pin_post"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.pin_post)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.pin_post),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAd&&t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.is_ad)?[e("div",{staticClass:"form-check mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.isAd,expression:"isAd"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"is_ad"},domProps:{checked:Array.isArray(t.isAd)?t._i(t.isAd,null)>-1:t.isAd},on:{change:function(e){var o=t.isAd,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.isAd=o.concat([null])):c>-1&&(t.isAd=o.slice(0,c).concat(o.slice(c+1)))}else t.isAd=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"is_ad"}},[t._v("\n              "+t._s(t.$t("posts").form.attachments_types.settings_options.is_ad)+"\n              "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.is_ad),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)])]),t._v(" "),e("div",{staticClass:"d-flex mb-2"},[e("div",{staticClass:"d-sm-flex align-items-center"},[e("label",{staticClass:"mb-2 mb-sm-0 me-sm-3 d-flex align-items-center label-text-small text-nowrap"},[t._v("\n                "+t._s(t.$t("posts").form.attachments_types.settings_options.ord_contract_id)+"\n              ")]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("FormSelect",{attrs:{name:"ord_contract_id",items:t.ordContractsComputed,disabled:!t.ordContractsComputed.length,"no-items-text":t.$t("posts").form.attachments_types.settings_options.no_ord_contracts},model:{value:t.ordContractId,callback:function(e){t.ordContractId=e},expression:"ordContractId"}}),t._v(" "),e("div",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.is_ad),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)])])]:t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.add_link_to_user)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.addLinkToUser,expression:"addLinkToUser"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"add_link_to_user"},domProps:{checked:Array.isArray(t.addLinkToUser)?t._i(t.addLinkToUser,null)>-1:t.addLinkToUser},on:{change:function(e){var o=t.addLinkToUser,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.addLinkToUser=o.concat([null])):c>-1&&(t.addLinkToUser=o.slice(0,c).concat(o.slice(c+1)))}else t.addLinkToUser=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"add_link_to_user"}},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.add_link_to_user)+"\n            "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.add_link_to_user),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.plan_by_network)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.planByNetwork,expression:"planByNetwork"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"plan_by_network"},domProps:{checked:Array.isArray(t.planByNetwork)?t._i(t.planByNetwork,null)>-1:t.planByNetwork},on:{change:function(e){var o=t.planByNetwork,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.planByNetwork=o.concat([null])):c>-1&&(t.planByNetwork=o.slice(0,c).concat(o.slice(c+1)))}else t.planByNetwork=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"plan_by_network"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.plan_by_network))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.plan_by_network_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['plan_by_network_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.plan_by_network),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.parse_links)?e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.parseLinks,expression:"parseLinks"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"parse_links"},domProps:{checked:Array.isArray(t.parseLinks)?t._i(t.parseLinks,null)>-1:t.parseLinks},on:{change:function(e){var o=t.parseLinks,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.parseLinks=o.concat([null])):c>-1&&(t.parseLinks=o.slice(0,c).concat(o.slice(c+1)))}else t.parseLinks=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"parse_links"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.parse_links))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.parse_links_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['parse_links_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.parse_links),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)],1)]):t._e(),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.uniqueContent,expression:"uniqueContent"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"unique_content"},domProps:{checked:Array.isArray(t.uniqueContent)?t._i(t.uniqueContent,null)>-1:t.uniqueContent},on:{change:function(e){var o=t.uniqueContent,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.uniqueContent=o.concat([null])):c>-1&&(t.uniqueContent=o.slice(0,c).concat(o.slice(c+1)))}else t.uniqueContent=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"unique_content"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.unique_content))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.unique_content_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['unique_content_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}})],1)]),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isRepeatable?[e("div",{staticClass:"mb-2"},[e("label",{staticClass:"mb-2"},[t._v("\n              "+t._s(t.$t("posts").form.attachments_types.settings_options.repeat_type)+"\n            ")]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",[e("FormSelect",{attrs:{name:"repeat_type",items:t.repeatTypes},model:{value:t.repeatType,callback:function(e){t.repeatType=e},expression:"repeatType"}})],1)])]),t._v(" "),t.repeatType?e("div",{staticClass:"mb-2"},[e("label",{staticClass:"mb-2"},[t._v("\n              "+t._s(t.$t("posts").form.attachments_types.settings_options.repeat_stop_date)+"\n            ")]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",{staticClass:"me-2"},[e("FormDate",{model:{value:t.repeatStopDateLocal,callback:function(e){t.repeatStopDateLocal=e},expression:"repeatStopDateLocal"}})],1),t._v(" "),e("div",{staticClass:"me-2"},[e("FormTime",{model:{value:t.repeatStopTimeLocal,callback:function(e){t.repeatStopTimeLocal=e},expression:"repeatStopTimeLocal"}})],1),t._v(" "),t.isClearAllBtnShowed?e("div",{staticClass:"btn btn-light btn-sm",on:{click:t.clearAll}},[e("fa",{attrs:{icon:["fas","ban"]}})],1):t._e()])]):t._e(),t._v(" "),e("div",{staticClass:"form-check mb-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.randomContent,expression:"randomContent"}],staticClass:"form-check-input",attrs:{type:"checkbox",id:"random_content",disabled:!t.repeatType},domProps:{checked:Array.isArray(t.randomContent)?t._i(t.randomContent,null)>-1:t.randomContent},on:{change:function(e){var o=t.randomContent,n=e.target,r=!!n.checked;if(Array.isArray(o)){var c=t._i(o,null);n.checked?c<0&&(t.randomContent=o.concat([null])):c>-1&&(t.randomContent=o.slice(0,c).concat(o.slice(c+1)))}else t.randomContent=r}}}),t._v(" "),e("label",{staticClass:"form-check-label d-flex align-items-center",attrs:{for:"random_content"}},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.random_content))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.random_content_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['random_content_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}})],1)])]:t._e(),t._v(" "),e("div",{staticClass:"my-3 border-top border-light"}),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.delete_post)?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"mb-2"},[t._v("\n            "+t._s(t.$t("posts").form.attachments_types.settings_options.delete_post)+"\n          ")]),t._v(" "),e("div",{staticClass:"d-flex"},[e("div",{staticClass:"me-2"},[e("FormSelect",{attrs:{name:"delete_post_day",items:t.deleteDays},model:{value:t.deletePostDay,callback:function(e){t.deletePostDay=e},expression:"deletePostDay"}})],1),t._v(" "),e("div",[e("FormSelect",{attrs:{name:"delete_post_hour",items:t.deleteHours},model:{value:t.deletePostHour,callback:function(e){t.deletePostHour=e},expression:"deletePostHour"}})],1)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.privacy_level)?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-check-label d-flex align-items-center mb-2"},[e("span",[t._v(t._s(t.$t("posts").form.attachments_types.settings_options.privacy_level))]),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.privacy_level),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".
1svg"),alt:""}})}),0)]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("div",[e("FormSelect",{attrs:{name:"privacy_level",items:t.$t("posts").form.attachments_types.settings_options.privacy_level_options},model:{value:t.privacyLevel,callback:function(e){t.privacyLevel=e},expression:"privacyLevel"}})],1)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.youtube_category)?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-check-label d-flex align-items-center mb-2"},[e("span",[t._v(t._s(t.$t("common").youtube_category))]),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.youtube_category),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("div",[e("FormSelect",{attrs:{name:"youtube_category",items:t.$t("common").youtube_category_options},model:{value:t.youtubeCategory,callback:function(e){t.youtubeCategory=e},expression:"youtubeCategory"}})],1)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.donut_paid_duration)?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-check-label d-flex align-items-center mb-2"},[e("span",[t._v(t._s(t.$t("common").donut_paid_duration))]),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.donut_paid_duration),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("div",[e("FormSelect",{attrs:{name:"donut_paid_duration",items:t.$t("common").donut_paid_duration_options},model:{value:t.donutPaidDuration,callback:function(e){t.donutPaidDuration=e},expression:"donutPaidDuration"}})],1)])]):t._e(),t._v(" "),t.isAttachmentTypeAllowed(t.settingsAllowedForSourcesIds.content_by_stars)?e("div",[e("label",{staticClass:"form-check-label d-flex align-items-center mb-2"},[e("span",[t._v(t._s(t.$t("common").content_by_stars))]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("posts").form.attachments_types.settings_options.content_by_stars_tip,expression:"$t('posts')['form']['attachments_types']['settings_options']['content_by_stars_tip']",modifiers:{hover:!0,top:!0}}],staticClass:"text-info ms-2",attrs:{icon:["fas","question-circle"]}}),t._v(" "),e("span",{staticClass:"text-secondary d-flex tip-networks-icons"},t._l(t.socialIcons(t.settingsAllowedForSourcesIds.content_by_stars),function(t,n){return e("img",{class:n?"ms-2":"ms-3",attrs:{src:o(18)("./"+t+".svg"),alt:""}})}),0)],1),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("div",[e("FormInput",{attrs:{placeholder:t.$t("common").content_by_stars_placeholder},model:{value:t.contentByStars,callback:function(e){t.contentByStars=e},expression:"contentByStars"}})],1)])]):t._e()],2),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-light btn-sm",attrs:{type:"button"},on:{click:t.closeSettings}},[t._v("\n          "+t._s(t.$t("posts").form.attachments_types.close)+"\n        ")])])])],1)},[],!1,null,null,null).exports},model:{prop:"attachments",event:"change"},props:["attachments","attachmentsTypes","attachmentsTypesChecked","isRepeatable","isMediaDisabled","ordContracts","hasCheckedSettings","socialNetworks"],computed:{unusedSourcesIds:function(){return this.$store.getters["socialNetworksSettings/unusedSourcesIds"]},ordContractsComputed:{get:function(){return this.ordContracts},set:function(t){this.$emit("update-contracts",t)}},photos:{get:function(){return this.attachments.photos},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.photos=t,this.$emit("change",e)}},audios:{get:function(){return this.attachments.audios},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.audios=t,this.$emit("change",e)}},documents:{get:function(){return this.attachments.documents},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.documents=t,this.$emit("change",e)}},link:{get:function(){return this.attachments.link},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.link=t,this.$emit("change",e)}},title:{get:function(){return this.attachments.title},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.title=t,this.$emit("change",e)}},poll:{get:function(){return this.attachments.poll},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.poll=t,this.$emit("change",e)}},ad:{get:function(){return this.attachments.ad},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.ad=t,this.$emit("change",e)}},telegramButtons:{get:function(){return this.attachments.telegram_buttons},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.telegram_buttons=t,this.$emit("change",e)}},copyright:{get:function(){return this.attachments.copyright},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.copyright=t,this.$emit("change",e)}},repost:{get:function(){return this.attachments.repost},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.repost=t,this.$emit("change",e)}},source:{get:function(){return this.attachments.source},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.source=t,this.$emit("change",e)}},comment:{get:function(){return this.attachments.comment},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.comment=t,this.$emit("change",e)}},location:{get:function(){return this.attachments.location},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.location=t,this.$emit("change",e)}},settings:{get:function(){return this.attachments.settings},set:function(t){var e=Object(H.cloneDeep)(this.attachments);e.settings=t,this.$emit("change",e)}},settingsType:function(){for(var t in this.attachmentsTypes)if("settings"===this.attachmentsTypes[t].type)return this.attachmentsTypes[t]}},methods:{openSettings:function(){this.$refs["post-settings"][0].openSettings()},isAttachmentTypeAllowed:function(t){var e=this;return t.filter(function(t){return!(e.unusedSourcesIds.includes(parseInt(t))||!e.config.source_ids.includes(parseInt(t)))}).length},isAttachmentTypeChecked:function(t){return this.attachmentsTypesChecked.includes(t)},toggleAttachmentTypeChecked:function(t){var e=Object(H.cloneDeep)(this.attachmentsTypesChecked);e.indexOf(t)>=0?e=e.filter(function(e){return e!==t}):e.push(t),this.$emit("update-attachments-types-checked",e)}}},Jt=Object(V.a)(Yt,function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-3 pb-3"},[e("div",{staticClass:"d-flex justify-content-between"},[t.isMediaDisabled?t._e():e("div",{staticClass:"me-3 mt-n1 d-flex flex-wrap"},[t._l(t.attachmentsTypes,function(o,n){return t.isAttachmentTypeAllowed(o.sources_ids)&&("settings"!==o.type&&"audios"!==o.type&&"source"!==o.type||("audios"===o.type||"source"===o.type)&&t.isAttachmentTypeChecked(o.type))?[e("input",{staticClass:"btn-check",attrs:{type:"checkbox",name:"attachment_type_"+o.type,id:"attachment_type_"+o.type},domProps:{checked:t.isAttachmentTypeChecked(o.type)},on:{change:function(e){return t.toggleAttachmentTypeChecked(o.type)}}}),t._v(" "),e("label",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],key:n,staticClass:"btn btn-light btn-sm mt-1",class:{active:t.isAttachmentTypeChecked(o.type),"me-1":n<t.attachmentsTypes.length-1},attrs:{for:"attachment_type_"+o.type,title:t.$t("posts").form.attachments_types[o.type]}},[e("fa",{attrs:{icon:o.icon}})],1)]:t._e()})],2),t._v(" "),e("div",[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"btn btn-sm",class:{"btn-warning":t.hasCheckedSettings,"btn-light":!t.hasCheckedSettings,active:t.isAttachmentTypeChecked(t.settingsType.type)},attrs:{title:t.$t("posts").form.attachments_types[t.settingsType.type]},on:{click:t.openSettings}},[e("fa",{attrs:{icon:t.settingsType.icon}})],1)])]),t._v(" "),t._l(t.attachmentsTypes,function(o){return[!t.isMediaDisabled&&t.isAttachmentTypeAllowed(o.sources_ids)?["photos"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormPhotos",{attrs:{label:t.$t("posts").form.attachments_types[o.type]},on:{"update-texts":function(e){return t.$emit("update-texts",e)}},model:{value:t.photos,callback:function(e){t.photos=e},expression:"photos"}}):t._e(),t._v(" "),"audios"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormAudios",{attrs:{label:t.$t("posts").form.attachments_types[o.type]},model:{value:t.audios,callback:function(e){t.audios=e},expression:"audios"}}):t._e(),t._v(" "),"documents"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormDocuments",{attrs:{label:t.$t("posts").form.attachments_types[o.type]},model:{value:t.documents,callback:function(e){t.documents=e},expression:"documents"}}):t._e(),t._v(" "),"link"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormLink",{attrs:{label:t.$t("posts").form.attachments_types[o.type],placeholder:t.$t("posts").form.attachments_types[o.type+"_placeholder"]},model:{value:t.link,callback:function(e){t.link=e},expression:"link"}}):t._e(),t._v(" "),"poll"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormPoll",{attrs:{label:t.$t("posts").form.attachments_types[o.type]},model:{value:t.poll,callback:function(e){t.poll=e},expression:"poll"}}):t._e(),t._v(" "),"telegram_buttons"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormTelegramButtons",{attrs:{label:t.$t("posts").form.attachments_types[o.type]},model:{value:t.telegramButtons,callback:function(e){t.telegramButtons=e},expression:"telegramButtons"}}):t._e(),t._v(" "),"title"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormLink",{attrs:{label:t.$t("posts").form.attachments_types[o.type],placeholder:t.$t("posts").form.attachments_types[o.type+"_placeholder"]},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}}):t._e(),t._v(" "),"repost"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormRepost",{model:{value:t.repost,callback:function(e){t.repost=e},expression:"repost"}}):t._e(),t._v(" "),"source"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormLink",{attrs:{label:t.$t("posts").form.attachments_types[o.type],placeholder:t.$t("posts").form.attachments_types[o.type+"_placeholder"]},model:{value:t.source,callback:function(e){t.source=e},expression:"source"}}):t._e(),t._v(" "),"comment"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormComment",{attrs:{label:t.$t("posts").form.attachments_types[o.type],placeholder:t.$t("posts").form.attachments_types[o.type+"_placeholder"],photo_enabled:!0},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}}):t._e(),t._v(" "),"ad"===o.type&&t.isAttachmentTypeChecked(o.type)?e("PostFormAd",{attrs:{label:t.$t("posts").form.attachments_types[o.type],contracts:t.ordContractsComputed},on:{"update-contracts":function(e){t.ordContractsComputed=e}},model:{value:t.ad,callback:function(e){t.ad=e},expression:"ad"}}):t._e()]:t._e(),t._v(" "),"settings"===o.type?e("PostFormSettings",{ref:"post-settings",refInFor:!0,attrs:{"is-repeatable":t.isRepeatable,"ord-contracts":t.ordContractsComputed,"has-checked-settings":t.hasCheckedSettings,"social-networks":t.socialNetworks},model:{value:t.settings,callback:function(e){t.settings=e},expression:"settings"}}):t._e()]})],2)},[],!1,null,null,null).exports,Zt=o(99),te=o(124),ee=o(148),se=o(202),oe=o(220),ne=o(234);function ie(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return ae(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ae(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t}
1,e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function ae(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function re(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}var ce={mixins:[Dt.a],components:{FormSelect:h.default,FormModalHeader:f.default,Form:oe.a},model:{prop:"value",event:"change"},props:["value","schedules"],data:function(){return function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?re(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):re(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({editedItemId:-1},ne.a)},computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}}},methods:{closeForm:function(t,e,o){if(this.$refs["edit-modal"].hide(),"boolean"==typeof t&&t)if(this.$emit("update-schedules",o),e){var n,r=ie(o);try{for(r.s();!(n=r.n()).done;){var c=n.value;if(e===c.id){this.$emit("change",[{id:c.id,value:c.name}]);break}}}catch(t){r.e(t)}finally{r.f()}}else this.$emit("change",[])},editForm:function(){this.editedItemId=this.currentValue.length?this.currentValue[0].id:0,this.$refs["edit-modal"].show()},createForm:function(){this.editedItemId=0,this.$refs["edit-modal"].show()},deleteListItem:function(){var t=this;this.deleteItem("/posts/schedules/"+this.currentValue[0].id,null,this.$t("posts").schedules.form_group.delete_warning,function(e){t.$emit("update-schedules",e.data.schedules),t.$emit("change",[])})}}},le=ce,ue=(o(486),Object(V.a)(le,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v("\n    "+t._s(t.$t("posts").schedules.form_group.label)+"\n  ")]),t._v(" "),e("div",{staticClass:"d-flex"},[e("multiselect",{attrs:{options:t.schedules,searchable:!1,multiple:!0,"show-labels":!1,"close-on-select":!1,placeholder:t.schedules.length?t.$t("posts").schedules.form_group.default_value:t.$t("posts").schedules.form_group.no_items,"track-by":"id",label:"value",disabled:!t.schedules.length},scopedSlots:t._u([{key:"singleLabel",fn:function(e){var option=e.option;return[t._v("\n        "+t._s(option.value)+"\n      ")]}}]),model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}}),t._v(" "),e("b-dropdown",{staticClass:"dropdown-no-arrow ms-2",attrs:{right:"",variant:"secondary",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{attrs:{icon:["fas","ellipsis-h"]}})]},proxy:!0}])},[t._v(" "),t._l(t.actionButtons,function(o,n){return e("b-dropdown-item-button",{key:n,attrs:{"button-class":{"btn-sm":!0,disabled:["edit","delete"].includes(o.name)&&1!==t.currentValue.length}},on:{click:function(e){return t.callMethodByName(o.method_name,0)}}},[e("span",{staticClass:"dropdown-item-icon me-2"},[e("fa",{attrs:{icon:o.icon}})],1),t._v(t._s(t.$t("posts").schedules.form_group.action_buttons[o.name])+"\n      ")])})],2)],1),t._v(" "),e("b-modal",{ref:"edit-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.editedItemId=-1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.editedItemId?t.$t("posts").schedules.form_group.edit_title:t.$t("posts").schedules.form_group.create_title},on:{"close-form":t.closeForm}})]},proxy:!0}])},[t._v(" "),t.editedItemId>=0?e("Form",{attrs:{id:t.editedItemId,"is-in-popup":!0},on:{"close-form":t.closeForm}}):t._e()],1)],1)},[],!1,null,null,null).exports);function pe(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function de(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?pe(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):pe(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function me(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return he(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?he(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function he(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var _e={components:{FormGroupDateAndTime:m.a},model:{prop:"dates",event:"change"},props:["dates","socialPagesByAccounts","socialNetworks"],data:function(){return{hoursToSave:"",minutesToSave:"",pageId:""}},computed:{datesComputed:function(){var t,e=[];if(Object.keys(this.dates).length)for(var o in this.dates){t=!1;var n,r=me(this.socialPagesByAccounts);try{for(r.s();!(n=r.n()).done;){var c,l=me(n.value.pages);try{for(l.s();!(c=l.n()).done;){var d=c.value;if(parseInt(o)===d.id){e.push(de(de({},this.dates[o]),{},{page:d,network:this.network(o)})),t=!0;break}}}catch(t){l.e(t)}finally{l.f()}if(t)break}}catch(t){r.e(t)}finally{r.f()}}return e}},watch:{hoursToSave:function(){this.debouncedTimeUpdate()},minutesToSave:function(){this.debouncedTimeUpdate()}},created:function(){this.debouncedTimeUpdate=Object(H.debounce)(this.updateTime,10)},methods:{updateTime:function(){var t=Object(H.cloneDeep)(this.dates);t[this.pageId.toString()].hours=this.hoursToSave,t[this.pageId.toString()].minutes=this.minutesToSave,this.$emit("change",t)},updateDateField:function(t,e,o){if("date"===t){var n=Object(H.cloneDeep)(this.dates);n[o.toString()][t]=e,this.$emit("change",n)}else this.pageId=o,"hours"===t?this.hoursToSave=e:this.minutesToSave=e},network:function(t){var e,o=0,n=me(this.socialPagesByAccounts);try{for(n.s();!(e=n.n()).done;){var r,c=e.value,l=me(c.pages);try{for(l.s();!(r=l.n()).done;){var d=r.value;if(parseInt(t)===d.id){o=c.account.source_id;break}}}catch(t){l.e(t)}finally{l.f()}if(o)break}}catch(t){n.e(t)}finally{n.f()}if(o){var m,h=me(this.socialNetworks);try{for(h.s();!(m=h.n()).done;){var _=m.value;if(_.source_id===o)return _}}catch(t){h.e(t)}finally{h.f()}}return null},deleteDate:function(t){var e=Object(H.cloneDeep)(this.dates);e[t.toString()]&&(delete e[t.toString()],this.$emit("change",e))}}},fe=Object(V.a)(_e,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},t._l(t.datesComputed,function(n,r){return e("div",{staticClass:"row g-3",class:{"mb-2":r<t.datesComputed.length-1}},[e("div",{staticClass:"col"},[e("FormGroupDateAndTime",{attrs:{date:n.date,hours:n.hours,minutes:n.minutes,"can-delete":!0,"form-group-class":"mb-0"},on:{"update-date":function(e){return t.updateDateField("date",e,n.page.id)},"update-hours":function(e){return t.updateDateField("hours",e,n.page.id)},"update-minutes":function(e){return t.updateDateField("minutes",e,n.page.id)},"delete-date":function(e){return t.deleteDate(n.page.id)}}})],1),t._v(" "),e("div",{staticClass:"col d-flex align-items-center text-nowrap overflow-hidden form-social-networks"},[n.network?e("div",{staticClass:"px-0 d-flex align-items-center me-2 social-network-btn",style:"filter:"+n.network.filter},[e("img",{attrs:{src:o(18)("./"+n.network.icon+".svg"),alt:""}})]):t._e(),t._v(" "),e("div",{staticClass:"text-secondary small text-truncate"},[t._v("\n        "+t._s(n.page.name)+"\n      ")])])])}),0)},[],!1,null,null,null).exports,be=o(84),ve={attachmentsTypes:[{name:"Другие настройки",type:"settings",icon:["fas","cog"],sources_ids:[1,2,3,4,6,7,9,10,13,14,16,17,18]},{name:"Фото/Видео",type:"photos",icon:["fas","image"],sources_ids:[1,2,3,4,6,7,9,10,13,14,16,17,18]},{name:"Аудио",type:"audios",icon:["fas","music"],disabled:!0,sources_ids:[1]},{name:"Документы",type:"documents",icon:["fas","file"],sources_ids:[1,2,3,4,9]},{name:"Внешняя ссылка",type:"link",icon:["fas","link"],sources_ids:[1,2,3,4,6,7,9,10,13,14,16,17,18]},{name:"Опрос",type:"poll",icon:["fas","list-ul"],sources_ids:[1,2,9]},{name:"Репост ВК/ОК",type:"repost",icon:["fas","share"],sources_ids:[1,2]},{name:"Исходный пост",type:"source",icon:["fas","copy"],disabled:!0,sources_ids:[9]},{name:"Комментарий",type:"comment",icon:["fas","comment"],sources_ids:[1,2,3,7,10]},{name:"Кнопки Max/Телеграм",type:"telegram_buttons",icon:["fas","external-link-alt"],sources_ids:[9]},{name:"Реклама",type:"ad",icon:["fas","rectangle-ad"],sources_ids:[1,2]},{name:"Заголовок",type:"title",icon:["fas","heading"],sources_ids:[1,6,8,13,14,17,18,21,23]}]}
1,ge=o(73),ye=o(119),ke=o(89);function xe(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return we(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?we(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function we(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function Ce(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Se(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ce(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var Te={mixins:[ge.a,Dt.a,ye.a,Nt.a],components:{HelpForm:c.a,Help:l.a,FormGroupRadioButtons:d.a,FormGroupDateAndTime:m.a,PostFormTexts:W,PostFormAttachments:Jt,FormSocialNetworks:Zt.a,FormSocialPages:te.a,FormGroupProject:ee.a,FormGroupSchedule:se.a,FormGroupSchedules:ue,FormSelect:h.default,PostDates:fe,FormFooterButtons:be.a},props:{id:{type:Number,default:0},ids:{type:String,default:""},isInPopup:{type:Boolean,default:!1},sourceType:{type:String,default:"posts"},asCopy:{type:Boolean,default:!1}},data:function(){return Se({publicationWhenTypes:this.$t("posts").form.publication_when_types,publicationHowTypes:this.$t("posts").form.publication_how_types,textsSourcesChecked:[],attachmentsTypesChecked:[],attachmentsInProgress:!1,socialNetworks:Object(H.cloneDeep)(ke.data),socialNetworksWithWarnings:[],isSocialNetworksWithWarningsShown:!1,socialPagesByAccounts:[],socialAlbumsByPages:[],allPagesIdsBySourceIds:{},saveFormStateTimer:null,projects:[],schedules:[],ordContracts:[],createdBy:0,pageForDate:0},ve)},beforeCreate:function(){this.$store.dispatch("posts/form/resetForm"),localStorage.removeItem("posts_form.edit"),localStorage.removeItem("posts_form.copy")},created:function(){this.debouncedSocialNetworksWarnings=Object(H.debounce)(this.setSocialNetworksWithWarnings,500)},mounted:function(){var t=this;this.$nextTick(function(){var e,o=[];o.push("as_copy="+(t.asCopy?1:0)),e="posts_search"===t.sourceType?"/posts-search/"+t.id+"/edit?"+o.join("&"):"/posts/"+t.id+"/edit?"+o.join("&"),t.loadItemFormData(e,function(e){e&&e.data&&(t.setFromServer(e.data),t.id&&"posts_search"!==t.sourceType||!localStorage.getItem("posts_form.new")||t.setFromState(JSON.parse(localStorage.getItem("posts_form.new"))),t.formInit())},function(e){console.log("error",e),t.isInPopup&&t.$emit("close-form",!1)})})},destroyed:function(){this.saveFormStateTimer&&clearTimeout(this.saveFormStateTimer)},watch:{socialNetworks:{deep:!0,handler:function(){this.updateSelectedSourceIds()}},publicationWhereType:function(){this.updateSelectedSourceIds()},attachments:{deep:!0,handler:function(t){var e=t.photos,o=t.documents;t.settings;for(var n in this.attachmentsInProgress=!1,e)if(!e[n].file_path&&!e[n].url&&!e[n].source_id){this.attachmentsInProgress=!0;break}for(var r in o)if(!o[r].file_path&&!o[r].url&&!o[r].source_id){this.attachmentsInProgress=!0;break}}},pageForDate:function(t){var e=this;if(t){var o=Object(H.cloneDeep)(this.formState.publicationDates);o[t.toString()]||(o[t.toString()]={date:"",hours:"",minutes:""},this.updateStateByField("publicationDates",o)),setTimeout(function(){e.pageForDate=0},200)}},formState:{deep:!0,handler:function(){var t=this;this.debouncedSocialNetworksWarnings(),this.id&&"posts"===this.sourceType||(this.saveFormStateTimer&&clearTimeout(this.saveFormStateTimer),this.saveFormStateTimer=setTimeout(function(){t.saveFormState()},500))}},editFormId:function(t,e){t?this.loadPostForEditMode(t,"edit"):e&&this.cancelMode("edit",!0)},copyFormId:function(t){t&&this.loadPostForEditMode(t,"copy")},editMode:function(t){this.$store.dispatch("posts/form/resetTextsAndAttachments"),localStorage.getItem("posts_form."+t)&&this.setFromState(JSON.parse(localStorage.getItem("posts_form."+t))),this.formInit()},isFormDisabled:function(t){this.$emit("set-is-form-disabled",t)}},computed:Se(Se(Se({},Object(r.b)({isAnyVipExists:"settings/isAnyVipExists",isSavePostsSettings:"settings/isSavePostsSettings"})),Object(r.c)({formState:function(t){return t.posts.form},settingsState:function(t){return t.settings}})),{},{isAnyPageForDatesIsSelected:function(){return!(!this.formState.publicationDates||!Object.keys(this.formState.publicationDates).length)}
1,getSelectedPagesBySourceIdsComputed:function(){return this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedPagesBySourceIds)},publicationDatesComputed:function(){var t,e=this.formState.publicationDates?Object(H.cloneDeep)(this.formState.publicationDates):{};if(Object.keys(e).length)for(var o in e){for(var n in t=!1,this.getSelectedPagesBySourceIdsComputed)if(this.getSelectedPagesBySourceIdsComputed[n].includes(parseInt(o))){t=!0;break}t||delete e[o]}return e},pagesForDates:function(){var t=this;if(Object.keys(this.getSelectedPagesBySourceIdsComputed).length){var e,o=[],n=function(n){e=[];var r,c=xe(t.socialPagesByAccounts);try{for(c.s();!(r=c.n()).done;){var l=r.value;l.account.source_id===parseInt(n)&&(e=e.concat(l.pages.filter(function(e){return t.getSelectedPagesBySourceIdsComputed[n].includes(e.id)&&!t.publicationDatesComputed[e.id.toString()]}).map(function(t){return{id:t.id,value:t.name}})))}}catch(t){c.e(t)}finally{c.f()}e.length&&o.push({name:t.socialNetworkName(t.socialNetworks,n),values:e})};for(var r in this.getSelectedPagesBySourceIdsComputed)n(r);for(var c=0,l=0,d=o;l<d.length;l++){c+=d[l].values.length}if(c>1)return[{id:0,value:"Отдельное время для"}].concat(o)}return[]},isDragActive:function(){return this.formState.isDragActive},isPhotosSorting:function(){return this.formState.isPhotosSorting},isTGButtonsSorting:function(){return this.formState.isTGButtonsSorting},isFormDisabled:function(){return this.isLoading||this.attachmentsInProgress},idComputed:function(){return"edit"===this.editMode?this.editFormId:this.asCopy||"copy"===this.editMode?0:this.id},attachments:function(){return this.formState.attachments},isSelfPagesSelection:function(){return(1===this.formState.publicationWhenType||2===this.formState.publicationWhenType)&&1===this.formState.publicationHowType},socialNetworksAvailable:function(){var t,e=[],o=xe(this.socialNetworksComputed);try{for(o.s();!(t=o.n()).done;){var n=t.value;this.isSelfPagesSelection&&n.checked&&!this.unusedSourcesIds.includes(parseInt(n.source_id))&&e.push(n)}}catch(t){o.e(t)}finally{o.f()}return e},anyVideoExists:function(){if(this.attachments.photos.length){var t,e=xe(this.attachments.photos);try{for(e.s();!(t=e.n()).done;){if("video"===t.value.type)return!0}}catch(t){e.e(t)}finally{e.f()}}return!1},contentExists:function(){var t,e=[],o=xe(this.formState.texts);try{for(o.s();!(t=o.n()).done;){if(t.value.text.trim()){e.push("text");break}}}catch(t){o.e(t)}finally{o.f()}if(this.attachments.photos.length){var n,r=xe(this.attachments.photos);try{for(r.s();!(n=r.n()).done;){var c=n.value;"photo"!==c.type||e.includes(c.type)?"video"===c.type&&(c.source_id&&1===c.source_id?e.includes("vk_video")||e.push("vk_video"):!c.file_path&&!c.url||e.includes(c.type)||e.push(c.type)):e.push(c.type)}}catch(t){r.e(t)}finally{r.f()}}if(this.attachments.documents.length&&e.push("document"),this.attachments.link.trim()&&e.push("link"),this.attachments.repost.link.trim()&&e.push("repost"),this.attachments.source.trim()&&e.push("source"),this.attachments.poll.question.trim()&&this.attachments.poll.answers.length)for(var l in this.attachments.poll.answers)if(this.attachments.poll.answers[l].text.trim()){e.push("poll");break}return e},publicationWhereType:function(){return this.formState.publicationWhereType},schedulesComputed:function(){return this.rebuildForSelect(this.schedules,"name",this.idComputed?this.$t("posts").form.set_schedule:"")},editFormId:function(){return this.formState.editFormId},copyFormId:function(){return this.formState.copyFormId},editMode:{get:function(){return this.formState.editMode},set:function(t){this.$store.commit("posts/form/editMode",t)}},calendarUpdateFlag:{get:function(){return this.formState.calendarUpdateFlag},set:function(t){this.$store.commit("posts/form/calendarUpdateFlag",t)}},editModes:function(){var t=[{type:"new"}];return this.editFormId&&t.push({type:"edit"}),this.copyFormId&&t.push({type:"copy"}),t},hasCheckedSettings:function(){return!!(this.attachments.settings.repeat_type||this.attachments.settings.delete_post_day||this.attachments.settings.delete_post_hour||this.attachments.settings.donut_paid_duration||this.attachments.settings.content_by_stars&&parseInt(this.attachments.settings.content_by_stars)||this.attachments.settings.privacy_level||this.attachments.settings.youtube_category||this.attachments.settings.disable_comments||this.attachments.settings.disable_stitch||this.attachments.settings.disable_duet||this.attachments.settings.commercial_content||this.attachments.settings.my_brand_content||this.attachments.settings.branded_content||this.attachments.settings.unique_content||this.attachments.settings.pin_post||this.attachments.settings.plan_by_network||this.attachments.settings.download_vk_video||this.attachments.settings.publish_as_carousel||this.attachments.settings.publish_only_in_videos||this.attachments.settings.not_publish_in_videos||this.attachments.settings.repeat_video||this.attachments.settings.parse_links||this.attachments.settings.publish_by_account||this.attachments.settings.is_ad||this.attachments.settings.publish_as_story||this.attachments.settings.share_reels_to_feed||this.attachments.settings.publish_reels_as_trial||this.attachments.settings.publish_as_clips||this.attachments.settings.publish_as_shorts||this.attachments.settings.publish_as_article||this.attachments.settings.publish_in_channel||this.attachments.settings.publish_as_user||this.attachments.settings.add_link_to_user||this.attachments.settings.message_to_community||this.attachments.settings.message_to_channel)}}),methods:{setSocialNetworksWithWarnings:function(){var t,e,o,n,text,r,c=[],l=xe(this.socialNetworksAvailable);try{for(l.s();!(r=l.n()).done;){var d=r.value;if(this.formState.selectedPagesBySourceIds[d.source_id]){t=!1,e=!1,o=0;var m,h=xe(d.content_required);try{for(h.s();!(m=h.n()).done;){var content=m.value;if(this.contentExists.includes(content)){t=!0;break}}}catch(t){h.e(t)}finally{h.f()}if(t||(e=!0),d.text_limit){text="";var _,f=xe(this.formState.texts);try{for(f.s();
1!(_=f.n()).done;){var v=_.value;if(0===v.source_id)text=v.text.trim();else if(v.source_id===d.source_id){text=v.text.trim();break}}}catch(t){f.e(t)}finally{f.f()}text&&this.getHtmlTextLength(text)>d.text_limit&&(o=this.getHtmlTextLength(text)-d.text_limit,n=d.text_limit)}(e||o)&&c.push({item:d,content_required:e,text_limit_exceeded:o,text_limit:n})}}}catch(t){l.e(t)}finally{l.f()}this.socialNetworksWithWarnings=c},updateStateByField:function(t,e){this.$store.commit("posts/form/"+t,e)},loadPostForEditMode:function(t,e){var o=this;this.editMode=e,this.loadItemFormData("/posts/"+t+"/edit?as_copy="+("copy"===this.editMode?1:0),function(t){t&&t.data&&(o.$store.dispatch("posts/form/resetTextsAndAttachments"),o.socialNetworks=Object(H.cloneDeep)(ke.data),o.setFromServer(t.data),o.formInit())},function(){o.cancelMode(e)})},cancelMode:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isFormDisabled&&!e||(localStorage.removeItem("posts_form."+t),"edit"===t?(this.updateStateByField("editFormId",0),this.editMode=this.copyFormId?"copy":"new"):"copy"===t&&(this.updateStateByField("copyFormId",0),this.editMode=this.editFormId?"edit":"new"))},saveFormState:function(){var t=Object(H.cloneDeep)(this.formState);"posts"!==this.sourceType&&(delete t.texts,delete t.attachments),localStorage.setItem("posts_form."+this.editMode,JSON.stringify(t))},setFromServer:function(data){this.$store.dispatch("posts/form/setFromServer",data),this.socialPagesByAccounts=data.social_pages_by_accounts,this.socialAlbumsByPages=data.social_albums_by_pages,this.allPagesIdsBySourceIds=data.all_pages_ids_by_source_ids,this.projects=data.projects,this.schedules=data.schedules,this.ordContracts=data.ord_contracts,this.createdBy=data.created_by,this.filterSelectedPagesByRealData(),this.initSocialNetworksDisabledState(),this.initSocialNetworksCheckedState()},setFromState:function(data){for(var t in"posts"!==this.sourceType&&(delete data.texts,delete data.attachments),this.$store.dispatch("posts/form/setFromState",{data:data,projects:this.projects,schedules:this.schedules}),this.filterSelectedPagesByRealData(),this.socialNetworks)this.socialNetworks[t].checked=this.formState.selectedSourceIds.indexOf(this.socialNetworks[t].source_id)>=0&&!!this.allPagesIdsBySourceIds[this.socialNetworks[t].source_id]},filterSelectedPagesByRealData:function(){var t={},e={};if(Object.keys(this.allPagesIdsBySourceIds).length){if(Object.keys(this.formState.selectedPagesBySourceIds).length)for(var o in this.formState.selectedPagesBySourceIds)for(var n in this.formState.selectedPagesBySourceIds[o])this.allPagesIdsBySourceIds[o]&&this.allPagesIdsBySourceIds[o].includes(this.formState.selectedPagesBySourceIds[o][n])&&(t[o]||(t[o]=[]),t[o].push(this.formState.selectedPagesBySourceIds[o][n]));if(Object.keys(this.formState.selectedAlbumsBySourceIds).length)for(var r in this.formState.selectedAlbumsBySourceIds)for(var c in this.formState.selectedAlbumsBySourceIds[r])this.allPagesIdsBySourceIds[r]&&this.allPagesIdsBySourceIds[r].includes(this.formState.selectedAlbumsBySourceIds[r][c].page_id)&&(e[r]||(e[r]=[]),e[r].push(this.formState.selectedAlbumsBySourceIds[r][c]))}this.updateStateByField("selectedPagesBySourceIds",t),this.updateStateByField("selectedAlbumsBySourceIds",e)},formInit:function(){var t=this;this.attachmentsTypesChecked=[],this.attachments.photos.length&&this.setAttachmentsTypeChecked("photos"),this.attachments.audios.length&&this.setAttachmentsTypeChecked("audios"),this.attachments.documents.length&&this.setAttachmentsTypeChecked("documents"),this.attachments.link&&this.setAttachmentsTypeChecked("link"),(this.attachments.poll.question||this.attachments.poll.answers.length)&&this.setAttachmentsTypeChecked("poll"),this.attachments.telegram_buttons.list.length&&this.setAttachmentsTypeChecked("telegram_buttons"),this.attachments.title&&this.setAttachmentsTypeChecked("title"),this.attachments.repost.link&&this.setAttachmentsTypeChecked("repost"),this.attachments.source&&this.setAttachmentsTypeChecked("source"),this.attachments.comment.text&&this.setAttachmentsTypeChecked("comment"),this.attachments.ad.is_ad&&this.setAttachmentsTypeChecked("ad"),this.textsSourcesChecked=[],this.formState.texts&&this.formState.texts.forEac
1h(function(e){e.source_id&&t.textsSourcesChecked.push(e.source_id)}),this.id||this.editFormId||this.copyFormId||1!==this.formState.texts.length||this.formState.texts[0].text.trim()||this.$refs.texts.$children[0].$refs.text.editorFocus(),this.ids?this.workWithSchedulesOnly(!0):this.workWithSchedulesOnly(!1)},workWithSchedulesOnly:function(t){this.publicationWhenTypes[0].disabled=t,this.publicationWhenTypes[1].disabled=t,t&&this.updateStateByField("publicationWhenType",3)},updateSelectedSourceIds:function(){var t=[];this.socialNetworks.forEach(function(e){e.checked&&t.push(e.source_id)}),this.updateStateByField("selectedSourceIds",t)},deleteForm:function(){var t=this,e="new"===this.editMode?this.id:this.editFormId;this.deleteItem("/posts/"+e,null,this.$t("posts").delete_confirmation,function(){t.isInPopup?t.$emit("close-form",!0):(t.cancelMode("edit",!0),t.calendarUpdateFlag=2)})},saveForm:function(){var t=this;if(this.isSocialNetworksWithWarningsShown=!0,this.isSelfPagesSelection&&this.socialNetworksWithWarnings.length)this.socialNetworksWithWarnings.length>1?this.bvToast("warning",this.$t("posts").form.prompts.no_content_for_several_networks):this.bvToast("warning",this.$t("posts").form.prompts.no_content_for_one_of_networks);else{var data=this.getFormData();if(data){var e="new"===this.editMode?this.id:"edit"===this.editMode?this.editFormId:0;if(e&&!this.asCopy&&"copy"!==this.editMode&&"posts"===this.sourceType){var o=this.$t("posts").form.prompts.saved_and_published;2!==this.formState.publicationWhenType&&3!==this.formState.publicationWhenType||(o=this.$t("posts").form.prompts.saved),this.updateItem("/posts/"+e,data,o,function(){t.isInPopup?t.$emit("close-form",!0,e):t.calendarUpdateFlag=1})}else{var n=this.$t("posts").form.prompts.created_and_published;2===this.formState.publicationWhenType?n=this.$t("posts").form.prompts.created:3===this.formState.publicationWhenType&&(n=this.ids?this.$t("posts").form.prompts.posts_created_and_scheduled:this.$t("posts").form.prompts.created_and_scheduled),this.createItem("/posts",data,n,function(e){t.isInPopup?"posts_search"===t.sourceType?t.$emit("close-form",!0):t.$emit("close-form",!0,e.data.id):(data.selected_pages_by_source_ids&&t.updateStateByField("selectedPagesBySourceIds",data.selected_pages_by_source_ids),data.selected_albums_by_source_ids&&t.updateStateByField("selectedAlbumsBySourceIds",data.selected_albums_by_source_ids),"new"===t.editMode&&(t.$store.dispatch("posts/form/resetTextsAndAttachments",{texts_sources_checked:t.textsSourcesChecked,is_save_posts_settings:t.isSavePostsSettings}),t.isSocialNetworksWithWarningsShown=!1),t.calendarUpdateFlag=1)})}}}},isAttachmentTypeAllowed:function(t){var e=this;return t.filter(function(t){return!e.unusedSourcesIds.includes(parseInt(t))}).length},getFormData:function(){var data={as_copy:this.asCopy||"copy"===this.editMode?1:0,publication_when_type:this.formState.publicationWhenType,publication_how_type:this.formState.publicationHowType,publication_where_type:this.formState.publicationWhereType,created_by:this.createdBy,texts:[],attachments:[],ids:"posts_search"===this.sourceType&&this.id?this.id.toString():this.ids};for(var t in this.formState.texts)this.formState.texts[t].text.trim()&&data.texts.push({text:this.formState.texts[t].text.trim(),source_id:this.formState.texts[t].source_id});var e,o=!1,n=xe(this.attachmentsTypes);try{for(n.s();!(e=n.n()).done;){var r=e.value;if("settings"===r.type)this.hasCheckedSettings&&(data.attachments.push({type:r.type,data:this.attachments.settings}),o=!0);else if(this.attachmentsTypesChecked.includes(r.type)&&this.isAttachmentTypeAllowed(r.sources_ids))switch(r.type){case"photos":this.attachments.photos.length&&data.attachments.push({type:r.type,data:this.attachments.photos});break;case"audios":this.attachments.audios&&this.attachments.audios.length&&data.attachments.push({type:r.type,data:this.attachments.audios});break;case"documents":this.attachments.documents&&this.attachments.documents.length&&data.attachments.push({type:r.type,data:this.attachments.documents});break;case"link":this.attachments.link&&this.attachments.link.trim()&&data.attachments.push({type:r.type,data:this.attachments.link.trim()});break;case"ad":this.attachments.ad&&this.attachments.ad.is_ad&&data.attachments.push({type:r.type,data:this.attachments.ad});break;case"poll":if(this.attachments.poll&&this.attachments.poll.question.trim()&&this.attachments.poll.answers.length){var c=[];
1for(var l in this.attachments.poll.answers)this.attachments.poll.answers[l].text.trim()&&c.push(this.attachments.poll.answers[l]);c.length&&data.attachments.push({type:r.type,data:{question:this.attachments.poll.question.trim(),answers:c,is_anonymous:this.attachments.poll.is_anonymous,is_multiple_answers:this.attachments.poll.is_multiple_answers,until_time:this.attachments.poll.until_time,bg_image:this.attachments.poll.bg_image}})}break;case"repost":this.attachments.repost&&this.attachments.repost.link.trim()&&data.attachments.push({type:r.type,data:{link:this.attachments.repost.link.trim(),title:this.attachments.repost.title.trim()}});break;case"source":this.attachments.source&&this.attachments.source.trim()&&data.attachments.push({type:r.type,data:this.attachments.source.trim()});break;case"comment":this.attachments.comment&&this.attachments.comment.text.trim()&&data.attachments.push({type:r.type,data:{text:this.attachments.comment.text.trim(),publish_by_account:this.attachments.comment.publish_by_account||!1,photo:this.attachments.comment.photo||null}});break;case"title":this.attachments.title&&this.attachments.title.trim()&&data.attachments.push({type:r.type,data:this.attachments.title.trim()});break;case"telegram_buttons":if(this.attachments.telegram_buttons&&this.attachments.telegram_buttons.list.length){var d=[];for(var m in this.attachments.telegram_buttons.list)this.attachments.telegram_buttons.list[m].name.trim()&&this.attachments.telegram_buttons.list[m].link.trim()&&d.push(this.attachments.telegram_buttons.list[m]);d.length&&data.attachments.push({type:r.type,data:{list:d}})}break;case"location":this.attachments.location&&this.attachments.location.id&&data.attachments.push({type:r.type,data:this.attachments.location})}}}catch(t){n.e(t)}finally{n.f()}if(this.ids||data.texts.length||1===data.attachments.length&&!o||data.attachments.length>1){if(1===this.formState.publicationWhenType||2===this.formState.publicationWhenType){if(2===this.formState.publicationWhenType&&(data.publication_date={date:this.formState.publicationDate,hours:this.formState.publicationTimeHours,minutes:this.formState.publicationTimeMinutes}),1===this.formState.publicationHowType){if(data.selected_pages_by_source_ids=this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedPagesBySourceIds),data.selected_albums_by_source_ids=this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedAlbumsBySourceIds),!Object.keys(data.selected_pages_by_source_ids).length&&!Object.keys(data.selected_albums_by_source_ids).length)return this.bvToast("warning",this.$t("posts").form.prompts.need_at_least_one_social_page_to_choose),null;if(2===this.formState.publicationWhenType)for(var h in data.publication_dates=Object(H.cloneDeep)(this.formState.publicationDates),data.publication_dates){var _=!1;for(var f in data.selected_pages_by_source_ids)if(data.selected_pages_by_source_ids[f].includes(parseInt(h))){_=!0;break}_||delete data.publication_dates[h]}}else if(data.project_id=this.formState.projectId,!data.project_id)return this.bvToast("warning",this.$t("posts").form.prompts.set_project),null}else if(this.idComputed){if(data.schedule_id=this.formState.scheduleId,!data.schedule_id)return this.bvToast("warning",this.$t("posts").form.prompts.set_schedule),null}else{if(data.schedules_ids=this.formState.schedulesIds.map(function(t){return t.id}),!data.schedules_ids.length)return this.bvToast("warning",this.$t("posts").form.prompts.set_schedule),null;if(data.schedules_ids.length>5){if(!this.isAnyVipExists&&2!==this.config.plan_type)return this.bvToast("warning",this.$t("posts").form.prompts.no_more_than_5_schedules),null;if(data.schedules_ids.length>50)return this.bvToast("warning",this.$t("posts").form.prompts.no_more_than_50_schedules),null}}return data}return this.bvToast("warning",this.$t("posts").form.prompts.need_attachments),null},setAttachmentsTypeChecked:function(t){this.attachmentsTypesChecked.includes(t)||this.attachmentsTypesChecked.push(t)},handleDragEnter:function(){this.isPhotosSorting||this.isTGButtonsSorting||this.updateStateByField("isDragActive",!0)},handleDragLeave:function(){this.updateStateByField("isDragActive",!1)},handleDrop:function(t){var e=this;if(!this.isPhotosSorting&&!this.isTGButtonsSorting){t.preventDefault();var o=t.dataTransfer.files;this.setAttachmentsTypeChecked("photos"),setTimeout(function(){e.updateStateByField("isDragActive",!1),e.updateStateByField("droppedFiles",o)},1)}},addPhoto:function(t){var e=Object(H.cloneDeep)(this.attachments);e.photos.push(t),this.updateStateByField("attachments",e),this.setAttachmentsTypeChecked("photos")}}},Pe=Te,Ie=Object(V.a)(Pe,function(){var t=this,e=t._self._c;return e("form",{staticClass:"mx-auto position-relative form-wrapper",attrs:{autocomplete:"off"},on:{dragenter:t.handleDragEnter,dragover:function(t){t.preventDefault()}}},[t.isDragActive?e("h2",{staticClass:"bg-warning text-center text-dark opacity-75 position-absolute rounded-2 border border-3 border-danger mt-n2 mb-n3 mx-n3 d-flex align-items-center justify-content-center files-drag-place",on:{drop:t.handleDrop,dragenter:t.handleDragEnter,dragleave:t.handleDragLeave,dragover:function(t){t.preventDefault()}}},[t._v("\n    "+t._s(t.$t("posts").form.drop_files.t1)),e("br"),t._v("\n    "+t._s(t.$t("posts").form.drop_files.t2)+"\n  ")]):t._e(),t._v(" "),t.editModes.length>1?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v("\n      "+t._s(t.$t("posts").form.edit_mode)+"\n    ")]),t._v(" "),e("div",{staticClass:"btn-group"},[t._l(t.editModes,function(o,i){return[e("input",{directives:[{name:"model",rawName:"v-model",value:t.editMode,expression:"editMode"}],key:i,staticClass:"btn-check",attrs:{type:"radio",name:"edit_modes",id:"edit_mode_"+o.type,disabled:t.isFormDisabled},domProps:{value:o.type,checked:t._q(t.editMode,o.type)},on:{change:function(e){t.editMode=o.type}}}),t._v(" "),e("label",{key:t.index,staticClass:"btn btn-secondary btn-sm",class:{active:o.type===t.editMode,disabled:t.isFormDisabled},attrs:{for:"edit_mode_"+o.type}},[t._v("\n          "+t._s(t.$t("posts").form.edit_modes[o.type])+"\n        ")]),t._v(" "),"new"!==o.type?e("div",{staticClass:"btn btn-secondary btn-sm",class:{disabled:t.isFormDisabled},on:{click:function(e){return t.cancelMode(o.type)}}},[e("fa",{attrs:{icon:["fas","times"]}})],1):t._e()]})],2)]):t._e(),t._v(" "),e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-label"},[t._v("\n      "+t._s(t.ids?t.asCopy?t.$t("posts").form.posts_text_label:t.$t("posts").form.reposts_text_label:t.$t("posts").form.text_label)+"\n    ")]),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary textarea-wrapper"},[e("PostFormTexts",{ref:"texts",attrs:{texts:t.formState.texts,"texts-sources-checked":t.textsSourcesChecked,"is-text-versions-disabled":!!t.ids},on:{change:function(e){return t.updateStateByField("texts",e)},"update-texts-sources-checked":function(e){t.textsSourcesChecked=e},"add-photo":t.addPhoto}}),t._v(" "),e("PostFormAttachments",{attrs:{attachments:t.attachments,"attachments-types":t.attachmentsTypes,"attachments-types-checked":t.attachmentsTypesChecked,"is-repeatable":3!==t.formState.publicationWhenType,"is-media-disabled":!!t.ids,"ord-contracts":t.ordContracts,"has-checked-settings":t.hasCheckedSettings,"social-networks":t.socialNetworks},on:{change:function(e){return t.updateStateByField("attachments",e)},"update-attachments-types-checked":function(e){t.attachmentsTypesChecked=e},"update-contracts":function(e){t.ordContracts=e},"update-texts":function(e){return t.updateStateByField("texts",e)}}}),t._v(" "),t.isSocialNetworksWithWarningsShown&&t.isSelfPagesSelection&&t.socialNetworksWithWarnings.length?e("div",{staticClass:"px-3 pt-3 border-top border-light"},t._l(t.socialNetworksWithWarnings,function(n){return e("div",{staticClass:"d-flex align-items-center mb-3"},[e("div",{staticClass:"list-item-network btn btn-sm d-flex align-items-center border-0 px-0 me-3"},[e("img",{style:{filter:n.item.filter},attrs:{src:o(18)("./"+n.item.icon+".svg"),alt:""}})]),t._v(" "),n.content_required?e("div",{staticClass:"me-2 badge bg-danger text-white"},[t._v("\n            "+t._s(t.$t("posts").form.content_required)+"\n          ")]):t._e(),t._v(" "),n.text_limit_exceeded?e("div",{staticClass:"badge bg-warning text-black"},[t._v("\n            "+t._s(t.$t("posts").form.text_limit_exceeded)+": -"+t._s(n.text_limit_exceeded)+" ("+t._s(n.text_limit)+")\n          ")]):t._e()])}),0):t._e()],1)]),t._v(" "),t.ids?t._e():e("FormGroupRadioButtons",{attrs:{value:t.formState.publicationWhenType,items:t.publicationWhenTypes,name:"publication_when_type",label:t.$t("posts").form.publication_when_type},on:{change:function(e){return t.updateStateByField("publicationWhenType",e)}}}),t._v(" "),2===t.formState.publicationWhenType?[e("div",{staticClass:"d-flex align-items-center form-label"}
1,[t._v("\n      "+t._s(t.$t("posts").form.publication_date)+"\n    ")]),t._v(" "),e("div",{staticClass:"row g-3",class:t.isAnyPageForDatesIsSelected?"mb-2":"mb-3"},[e("div",{staticClass:"col"},[e("FormGroupDateAndTime",{attrs:{date:t.formState.publicationDate,hours:t.formState.publicationTimeHours,minutes:t.formState.publicationTimeMinutes,"form-group-class":"mb-0"},on:{"update-date":function(e){return t.updateStateByField("publicationDate",e)},"update-hours":function(e){return t.updateStateByField("publicationTimeHours",e)},"update-minutes":function(e){return t.updateStateByField("publicationTimeMinutes",e)}}})],1),t._v(" "),e("div",{staticClass:"col"},[t.pagesForDates.length?e("FormSelect",{attrs:{items:t.pagesForDates,"no-items-text":t.$t("posts").form.pages_for_dates_no_items,placeholder:t.$t("posts").form.pages_for_dates},model:{value:t.pageForDate,callback:function(e){t.pageForDate=e},expression:"pageForDate"}}):t._e()],1)]),t._v(" "),t.isAnyPageForDatesIsSelected?e("PostDates",{attrs:{dates:t.publicationDatesComputed,"social-pages-by-accounts":t.socialPagesByAccounts,"social-networks":t.socialNetworks},on:{change:function(e){return t.updateStateByField("publicationDates",e)}}}):t._e()]:t._e(),t._v(" "),1===t.formState.publicationWhenType||2===t.formState.publicationWhenType?e("FormGroupRadioButtons",{attrs:{value:t.formState.publicationHowType,items:t.publicationHowTypes,name:"publication_how_type",label:t.$t("posts").form.publication_how_type},on:{change:function(e){return t.updateStateByField("publicationHowType",e)}}}):t._e(),t._v(" "),t.isSelfPagesSelection?e("FormSocialNetworks",{attrs:{"social-networks":t.socialNetworksComputed,label:t.$t("posts").form.networks,"no-label":!0,"id-prefix":"pf"},on:{"update-networks":t.updateNetworks}}):t._e(),t._v(" "),1!==t.formState.publicationWhenType&&2!==t.formState.publicationWhenType||2!==t.formState.publicationHowType?t._e():e("FormGroupProject",{key:"projects",attrs:{value:t.formState.projectId,projects:t.projects},on:{change:function(e){return t.updateStateByField("projectId",e)},"update-projects":function(e){t.projects=e}}}),t._v(" "),3===t.formState.publicationWhenType&&t.idComputed?e("FormGroupSchedule",{key:"schedules",attrs:{value:t.formState.scheduleId,schedules:t.schedules},on:{change:function(e){return t.updateStateByField("scheduleId",e)},"update-schedules":function(e){t.schedules=e}}}):t._e(),t._v(" "),3!==t.formState.publicationWhenType||t.idComputed?t._e():e("FormGroupSchedules",{attrs:{value:t.formState.schedulesIds,schedules:t.schedulesComputed},on:{change:function(e){return t.updateStateByField("schedulesIds",e)},"update-schedules":function(e){t.schedules=e}}}),t._v(" "),t._l(t.socialNetworksAvailable,function(o,n){return e("FormSocialPages",{key:n,ref:"pages-by-source-id-"+o.source_id,refInFor:!0,attrs:{network:o,"social-pages-by-accounts":t.socialPagesByAccounts,"social-albums-by-pages":t.socialAlbumsByPages,"selected-pages-by-source-ids":t.formState.selectedPagesBySourceIds,"selected-albums-by-source-ids":t.formState.selectedAlbumsBySourceIds,"post-has-video":t.anyVideoExists},on:{"update-selected-pages-by-source-ids":function(e){return t.updateStateByField("selectedPagesBySourceIds",e)},"update-selected-albums-by-source-ids":function(e){return t.updateStateByField("selectedAlbumsBySourceIds",e)},"update-social-albums-by-pages":function(e){t.socialAlbumsByPages=e},"scroll-to-pages":function(e){return t.scrollToNetworkPages(e)}}})}),t._v(" "),e("FormFooterButtons",{attrs:{id:t.idComputed,disabled:t.isFormDisabled,"is-in-popup":t.isInPopup},on:{"delete-item":t.deleteForm,"save-item":t.saveForm}},[t.id?e("HelpForm",{attrs:{title:t.$t("help").instructions,"blog-url":"https://blog.hooppy.ru/category/faq/posting/","help-id":"8","is-in-form":!0}},[e("Help")],1):t._e()],1)],2)},[],!1,null,null,null);e.default=Ie.exports},function(t,e,o){"use strict";o(15),o(1),o(32),o(66);var n=o(69),r=o(109),c=o(47),l=o(46),d=o(56),m=o(134),h=(o(77),o(121)),_=o.n(h),f=o(51),v=o(12),y={components:{draggable:_.a,FormSelect:f.default},model:{prop:"rows",event:"change"},props:["rows","label"],data:function(){return{lastAction:null}},computed:{list:{get:function(){return this.rows&&this.rows.list?this.rows.list:[]}
1,set:function(t){var e=Object(v.cloneDeep)(this.rows);e&&!e.list||(e={list:[]}),e.list=t,this.$emit("change",e)}}},updated:function(){"addButton"===this.lastAction&&this.$nextTick(function(){this.list.length&&this.$refs["text-from-"+(this.list.length-1)].length&&(this.$refs["text-from-"+(this.list.length-1)][0].focus(),this.lastAction=null)})},methods:{handleButtonInput:function(t,e,o){var n=Object(v.cloneDeep)(this.list);n[t][e]=o,this.list=n},deleteButton:function(t){var e=Object(v.cloneDeep)(this.list);e.splice(t,1),this.list=e},addButton:function(){this.lastAction="addButton";var t=Object(v.cloneDeep)(this.list);t.push({from:"",to:""}),this.list=t}}},k=o(5),x=Object(k.a)(y,function(){var t=this,e=t._self._c;return e("div",[e("label",{staticClass:"form-label"},[t._v("\n    "+t._s(t.label)+"\n  ")]),t._v(" "),e("div",[e("draggable",{model:{value:t.list,callback:function(e){t.list=e},expression:"list"}},t._l(t.list,function(button,o){return e("div",{key:o,staticClass:"input-group",class:{"mb-2":o<14}},[e("input",{ref:"text-from-"+o,refInFor:!0,staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("form").form_group_text_replacer.replace_from+" "+(o+1)},domProps:{value:button.from},on:{input:function(e){return t.handleButtonInput(o,"from",e.target.value)}}}),t._v(" "),e("input",{ref:"text-to-"+o,refInFor:!0,staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("form").form_group_text_replacer.replace_to},domProps:{value:button.to},on:{input:function(e){return t.handleButtonInput(o,"to",e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-secondary btn-sm",attrs:{type:"button"},on:{click:function(e){return t.deleteButton(o)}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])}),0),t._v(" "),t.list.length<15?e("div",[e("input",{staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.$t("form").form_group_text_replacer.add_btn},on:{click:t.addButton}})]):t._e()],1)])},[],!1,null,null,null).exports,w=o(172),C={components:{FormGroupTextarea:n.a,FormCheckboxButtons:r.a,FormGroupRadioButtons:c.a,FormGroupInput:l.a,FormGroupSelect:d.a,FormCheckbox:m.a,FormGroupTextReplacer:x,FormTelegramButtons:w.a},props:{configurationFields:{type:Object,default:function(){return{}}},initialPostsTextModification:{type:Object,default:function(){return{}}},initialCropTextType:{type:Number,default:1},initialCropTextLimit:{type:Number,default:0},objectType:{type:String,default:function(){return"cross-posting"}}},data:function(){return{postsTextModification:Object(v.cloneDeep)(this.initialPostsTextModification),cropTextType:this.initialCropTextType,cropTextLimit:this.initialCropTextLimit}},computed:{cropTextLimitPostfix:function(){return this.wordsDeclension(this.cropTextLimit,this.$t("crossPosting").form.posts_text_modification.crop_text_words_declension)}},methods:{apply:function(){"cross-posting"===this.objectType?this.$store.commit("crossPosting/form/postsTextModification",this.postsTextModification):"rss-import"===this.objectType?(this.$store.commit("rssImport/form/postsTextModification",this.postsTextModification),this.$store.commit("rssImport/form/cropTextType",this.cropTextType),this.$store.commit("rssImport/form/cropTextLimit",this.cropTextLimit)):"posts-search"===this.objectType&&this.$store.commit("postsSearch/sourceResources/form/postsTextModification",this.postsTextModification),this.$emit("close-form")}}},S=Object(k.a)(C,function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-wrapper"},[t._l(t.configurationFields,function(o,n){var r;return["textarea"===o.type?e("FormGroupTextarea",{key:n,ref:"field-"+n,refInFor:!0,attrs:{id:"field-"+n,label:o.name,placeholder:o.placeholder,"need-to-redraw":!0,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.postsTextModification[n],callback:function(e){t.$set(t.postsTextModification,n,e)},expression:"postsTextModification[alias]"}}):t._e(),t._v(" "),"checkbox"===o.type?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v("\n        "+t._s(o.name)+"\n      ")]),t._v(" "),e("FormCheckboxButtons",{key:n,attrs:{name:n,items:o.values,"is-rows-view":!0},model:{value:t.postsTextModification[n],callback:function(e){t.$set(t.postsTextModification,n,e)},expression:"postsTextModification[alias]"}})],1):t._e(),t._v(" "),"radio"===o.type?e("div",{staticClass:"mb-3"},[e("FormGroupRadioButtons",{attrs:{name:n,items:o.values,label:o.name,"label-tip":null!==(r=o.tip)&&void 0!==r?r:""},model:{value:t.postsTextModification[n],callback:function(e){t.$set(t.postsTextModification,n,e)},expression:"postsTextModification[alias]"}}),t._v(" "),o.condition_fields?[t._l(o.condition_fields,function(o){return["select"===o.type&&t.postsTextModification[n]===o.for_value?e("FormGroupSelect",{staticClass:"w-50",attrs:{name:o.al
1ias,items:o.values,label:o.name,"form-group-class":o.form_group_class},model:{value:t.postsTextModification[o.alias],callback:function(e){t.$set(t.postsTextModification,o.alias,e)},expression:"postsTextModification[condition_field.alias]"}}):t._e(),t._v(" "),"textarea"===o.type&&t.postsTextModification[n]===o.for_value?e("FormGroupTextarea",{key:n,ref:"field-"+o.alias,refInFor:!0,attrs:{id:"field-"+o.alias,label:o.name,"label-tip":o.tip,placeholder:o.placeholder,"need-to-redraw":!0,"form-group-class":o.form_group_class,"textarea-class":"small-height"},model:{value:t.postsTextModification[o.alias],callback:function(e){t.$set(t.postsTextModification,o.alias,e)},expression:"postsTextModification[condition_field.alias]"}}):t._e(),t._v(" "),"checkbox"===o.type&&t.postsTextModification[n]===o.for_value?e("FormCheckbox",{key:n,attrs:{id:"field-"+o.alias,name:o.alias,label:o.name,tip:o.tip},model:{value:t.postsTextModification[o.alias],callback:function(e){t.$set(t.postsTextModification,o.alias,e)},expression:"postsTextModification[condition_field.alias]"}}):t._e()]})]:t._e()],2):t._e(),t._v(" "),"text_replacer"===o.type?e("div",{staticClass:"mb-3"},[e("FormGroupTextReplacer",{attrs:{label:o.name},model:{value:t.postsTextModification[n],callback:function(e){t.$set(t.postsTextModification,n,e)},expression:"postsTextModification[alias]"}})],1):t._e(),t._v(" "),"tg_buttons"===o.type?e("div",{staticClass:"mb-3"},[e("FormTelegramButtons",{attrs:{label:o.name},model:{value:t.postsTextModification[n],callback:function(e){t.$set(t.postsTextModification,n,e)},expression:"postsTextModification[alias]"}})],1):t._e()]}),t._v(" "),"rss-import"===t.objectType?[e("FormGroupRadioButtons",{attrs:{items:t.$t("crossPosting").form.posts_text_modification.crop_text_types,name:"crop_text",label:t.$t("crossPosting").form.posts_text_modification.crop_text},model:{value:t.cropTextType,callback:function(e){t.cropTextType=e},expression:"cropTextType"}}),t._v(" "),2===t.cropTextType?e("FormGroupInput",{attrs:{label:t.$t("crossPosting").form.posts_text_modification.crop_text_limit,"label-tip":t.$t("crossPosting").form.posts_text_modification.crop_text_limit_tip,"label-postfix":t.cropTextLimitPostfix,"input-class":"input-for-numbers"},model:{value:t.cropTextLimit,callback:function(e){t.cropTextLimit=e},expression:"cropTextLimit"}}):t._e()]:t._e(),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n      "+t._s(t.$t("crossPosting").form.posts_text_modification.apply)+"\n    ")])])],2)},[],!1,null,null,null);e.a=S.exports},function(t,e,o){"use strict";o(15),o(1),o(32);var n=o(109),r=o(51),c=o(164),l=o(67),d=o(12),m={components:{FormCheckboxButtons:n.a,FormSelect:r.default,FormRadioButtons:c.default,HelpForm:l.a},props:{configurationFields:{type:Object,default:function(){return{}}},initialPostsFilter:{type:Object,default:function(){return{}}},objectType:{type:String,default:function(){return"cross-posting"}}},data:function(){return{postsFilter:Object(d.cloneDeep)(this.initialPostsFilter)}},methods:{apply:function(){"cross-posting"===this.objectType?this.$store.commit("crossPosting/form/postsFilter",this.postsFilter):"rss-import"===this.objectType?this.$store.commit("rssImport/form/postsFilter",this.postsFilter):"posts-search"===this.objectType&&this.$store.commit("postsSearch/sourceResources/form/postsFilter",this.postsFilter),this.$emit("close-form")}}},h=o(5),component=Object(h.a)(m,function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-wrapper"},[t._l(t.configurationFields,function(o,n){return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-flex align-items-center form-label"},[t._v("\n      "+t._s(o.name)+"\n      "),o.tip?e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:o.tip,expression:"field.tip",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 text-info",attrs:{icon:["fas","question-circle"]}}):t._e()],1),t._v(" "),"checkbox"===o.type?[o.inline_field&&"radio"===o.inline_field.type?e("FormRadioButtons",{key:o.inline_field.alias,staticClass:"mb-3",attrs:{name:o.inline_field.alias,items:o.inline_field.values},model:{value:t.postsFilter[n+"_"+o.inline_field.alias],callback:function(e){t.$set(t.postsFilter,n+"_"+o.inline_field.alias,e)},expression:"postsFilter[alias + '_' + field.inline_field.alias]"}}):t._e(),t._v(" "),e("FormCheckboxButtons",{key:n,attrs:{name:n,items:o.values,"is-rows-view":!0},model:{value:t.postsFilter[n],callback:function(e){t.$set(t.postsFilter,n,e)},expression:"postsFilter[alias]"}})]:"select"===o.type?e("div",{staticClass:"col-6"},[e("FormSelect",{key:n,attrs:{name:n,items:o.values},model:{value:t.postsFilter[n],callback:function(e){t.$set(t.postsFilter,n,e)},expression:"postsFilter[alias]"}})],1):e("FormRadioButtons",{key:n,attrs:{name:n,items:o.values},model:{value:t.postsFilter[n],callback:function(e){t.$set(t.postsFilter,n,e)},expression:"postsFilter[alias]"}})],2)}),t._v(" "),e("div",{staticClass:"d-flex justify-content-end ms-n3 me-n3 mb-n3 px-3 py-3 d-flex justify-content-end bg-light form-footer-buttons"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n      "+t._s(t.$t("crossPosting").form.posts_filter.apply)+"\n    ")])])],2)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(31),o(15),o(1),o(45),o(32);var n=o(69),r=o(47),c=o(46),l=o(12),d={components:{FormCheckbox:o(134).a,FormGroupTextarea:n.a,FormGroupRadioButtons:r.a,FormGroupInput:c.a},props:{configurationFields:{type:Object,default:function(){return{}}},initialPostsText:{type:Object,default:function(){return{}}},objectType:{type:String,default:function(){return"cross-posting"}}},data:function(){return{postsText:Object(l.cloneDeep)(this.initialPostsText)}},methods:{apply:function(){"cross-posting"===this.objectType?this.$store.commit("crossPosting/form/p
1ostsText",this.postsText):"rss-import"===this.objectType?this.$store.commit("rssImport/form/postsText",this.postsText):"posts-search"===this.objectType&&this.$store.commit("postsSearch/sourceResources/form/postsText",this.postsText),this.$emit("close-form")}}},m=o(5),component=Object(m.a)(d,function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-wrapper"},[e("div",{staticClass:"p-3 rounded-2 border border-light mb-3"},[e("div",{staticClass:"d-flex flex-column"},[e("FormGroupTextarea",{key:"black_list",ref:"field-black_list",attrs:{id:"field-black_list",label:t.$t("crossPosting").form.posts_text.black_list_label,tip:1===t.postsText.keywords_priority?t.$t("crossPosting").form.posts_text.black_list_tip:t.$t("crossPosting").form.posts_text.black_list_exclude_tip,placeholder:t.$t("crossPosting").form.posts_text.black_list_placeholder,"need-to-redraw":!0,"form-group-class":1===t.postsText.keywords_priority?"first-block mb-3":"second-block mb-3","textarea-class":"small-height"},model:{value:t.postsText.black_list,callback:function(e){t.$set(t.postsText,"black_list",e)},expression:"postsText['black_list']"}}),t._v(" "),e("FormGroupTextarea",{key:"white_list",ref:"field-white_list",attrs:{id:"field-white_list",label:t.postsText.black_list.trim()&&1===t.postsText.keywords_priority?t.$t("crossPosting").form.posts_text.white_list_exclude_label:t.$t("crossPosting").form.posts_text.white_list_label,tip:t.postsText.black_list.trim()&&1===t.postsText.keywords_priority?t.$t("crossPosting").form.posts_text.white_list_exclude_tip:t.$t("crossPosting").form.posts_text.white_list_tip,placeholder:t.$t("crossPosting").form.posts_text.white_list_placeholder,"need-to-redraw":!0,"form-group-class":2===t.postsText.keywords_priority?"first-block mb-3":"second-block mb-3","textarea-class":"small-height"},model:{value:t.postsText.white_list,callback:function(e){t.$set(t.postsText,"white_list",e)},expression:"postsText['white_list']"}})],1),t._v(" "),e("FormGroupRadioButtons",{key:"keywords_priority",attrs:{label:t.$t("crossPosting").form.posts_text.posts_text_configuration_fields.keywords_priority.name,"label-tip":t.$t("crossPosting").form.posts_text.posts_text_configuration_fields.keywords_priority.tip,name:"keywords_priority",items:t.$t("crossPosting").form.posts_text.posts_text_configuration_fields.keywords_priority.values,"main-class":"mb-3"},model:{value:t.postsText.keywords_priority,callback:function(e){t.$set(t.postsText,"keywords_priority",e)},expression:"postsText['keywords_priority']"}}),t._v(" "),e("FormCheckbox",{key:"is_search_by_full_words",attrs:{id:"field-is_search_by_full_words",name:"is_search_by_full_words",label:t.$t("crossPosting").form.posts_text.is_search_by_full_words},model:{value:t.postsText.is_search_by_full_words,callback:function(e){t.$set(t.postsText,"is_search_by_full_words",e)},expression:"postsText['is_search_by_full_words']"}})],1),t._v(" "),t._l(t.configurationFields,function(o,n){var r,c;return["black_list","white_list","keywords_priority"].includes(n)?t._e():["textarea"===o.type?e("FormGroupTextarea",{key:n,ref:"field-"+n,refInFor:!0,attrs:{id:"field-"+n,label:o.name,placeholder:o.placeholder,"need-to-redraw":!0,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.postsText[n],callback:function(e){t.$set(t.postsText,n,e)},expression:"postsText[alias]"}}):"radio"===o.type?e("FormGroupRadioButtons",{key:n,attrs:{label:o.name,"label-tip":null!==(r=o.tip)&&void 0!==r?r:"",name:n,items:o.values},model:{value:t.postsText[n],callback:function(e){t.$set(t.postsText,n,e)},expression:"postsText[alias]"}}):"input_numbers"===o.type?e("FormGroupInput",{attrs:{label:o.name,"label-postfix":o.postfix,"label-tip":null!==(c=o.tip)&&void 0!==c?c:"","input-class":"input-for-numbers"},model:{value:t.postsText[n],callback:function(e){t.$set(t.postsText,n,e)},expression:"postsText[alias]"}}):t._e()]}),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n      "+t._s(t.$t("crossPosting").form.posts_text.apply)+"\n    ")])])],2)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(15),o(1),o(32);var n=o(109),r=o(12),c={components:{FormCheckboxButtons:n.a},props:{configurationFields:{type:Object,default:function(){return{}}},initialPostsUpgrade:{type:Object,default:function(){return{}}},objectType:{type:String,default:function(){return"cross-posting"}}},data:function(){return{postsUpgrade:Object(r.cloneDeep)(this.initialPostsUpgrade)}},methods:{apply:function(){"cross-posting"===this.objectType?this.$store.commit("crossPosting/form/p
1ostsUpgrade",this.postsUpgrade):"rss-import"===this.objectType?this.$store.commit("rssImport/form/postsUpgrade",this.postsUpgrade):"posts-search"===this.objectType&&this.$store.commit("postsSearch/sourceResources/form/postsUpgrade",this.postsUpgrade),this.$emit("close-form")}}},l=o(5),component=Object(l.a)(c,function(){var t=this,e=t._self._c;return e("div",[t._l(t.configurationFields,function(o,n){return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v("\n      "+t._s(o.name)+"\n    ")]),t._v(" "),e("FormCheckboxButtons",{key:n,attrs:{name:n,items:o.values,"is-rows-view":!0},model:{value:t.postsUpgrade[n],callback:function(e){t.$set(t.postsUpgrade,n,e)},expression:"postsUpgrade[alias]"}})],1)}),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n      "+t._s(t.$t("crossPosting").form.posts_upgrade.apply)+"\n    ")])])],2)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(31),o(15),o(48),o(6),o(39),o(43),o(4),o(44),o(22),o(9),o(10),o(1),o(20),o(29),o(36),o(7),o(32);var n=o(49),r=o(0),c=(o(23),o(66),o(8),o(45),o(68),o(30)),l=o(67),d=o(406),m=o(46),h=(o(77),o(133)),_=o(12),f={components:{FormTime:h.a},model:{prop:"value",event:"change"},props:["type","id","label","labelTip","value","formGroupClass"],computed:{times:{get:function(){return this.value},set:function(t){this.$emit("change",t)}}},methods:{addTime:function(){var t=Object(_.cloneDeep)(this.times);t.push(""),this.times=t},deleteTime:function(t){var e=Object(_.cloneDeep)(this.times);e.splice(t,1),this.times=e},updateTime:function(t,e){var o=Object(_.cloneDeep)(this.times);o[t]=e,this.times=o}}},v=o(5),y=Object(v.a)(f,function(){var t=this,e=t._self._c;return e("div",{class:t.formGroupClass?t.formGroupClass:"mb-3"},[t.label?e("label",{staticClass:"d-flex align-items-center form-label",attrs:{for:t.id}},[e("span",[t._v(t._s(t.label))]),t._v(" "),t.labelTip?e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.labelTip,expression:"labelTip",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 text-info",attrs:{icon:["fas","question-circle"]}}):t._e()],1):t._e(),t._v(" "),e("div",{staticClass:"d-flex flex-wrap mt-n2"},[t._l(t.times,function(o,n){return e("div",{staticClass:"d-flex input-group w-auto me-2 mt-2"},[e("FormTime",{attrs:{time:o},on:{change:function(e){return t.updateTime(n,e)}}}),t._v(" "),e("div",{staticClass:"btn btn-secondary btn-sm",on:{click:function(e){return t.deleteTime(n)}}},[e("fa",{attrs:{icon:["fas","trash"]}})],1)],1)}),t._v(" "),e("div",{staticClass:"btn btn-outline-secondary btn-sm mt-2",on:{click:t.addTime}},[e("fa",{attrs:{icon:["fas","plus"]}}),t._v("\n      "+t._s(t.$t("crossPosting").form.check_times_add)+"\n    ")],1)],2)])},[],!1,null,null,null).exports,k=o(47),x=o(99),w=o(124),C=o(163),S=(o(40),Object(v.a)({},function(){var t=this;return(0,t._self._c)("div",["ru"===t.$i18n.locale?[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2)]:t._e(),t._v(" "),"en"===t.$i18n.locale?[t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5)]:t._e()],2)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Что такое источник постов?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Источником может являться ссылка на группу в соц. сети, из которой вам нужно брать посты.\n        Также, источником может быть фотоальбом ВКонтакте.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Примеры ссылок-источников")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Ниже перечислен список корректных ссылок на страницы в соц. сетях, из которых Хуппи сможет забирать посты:\n      ")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для ВКонтакте")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://vk.ru/hooppy")]),t._v(" "),e("li",[t._v("https://vk.ru/public123")]),t._v(" "),e("li",[t._v("https://vk.ru/club123")]),t._v(" "),e("li",[t._v("https://vk.ru/id123")]),t._v(" "),e("li",[e("b",[t._v("stories")]),t._v(" https://vk.ru/hooppy "),e("span",{staticClass:"text-danger"},[t._v("(истории)")])]),t._v(" "),e("li",[e("b",[t._v("suggests")]),t._v(" https://vk.ru/hooppy "),e("span",{staticClass:"text-danger"},[t._v("(предложенные)")])]),t._v(" "),e("li",[e("b",[t._v("donut")]),t._v(" https://vk.ru/hooppy "),e("span",{staticClass:"text-danger"}
1,[t._v("(для донатов)")])]),t._v(" "),e("li",[t._v("https://"),e("b",[t._v("vkvideo.ru")]),t._v("/@hooppy "),e("span",{staticClass:"text-danger"},[t._v("(видео)")])]),t._v(" "),e("li",[t._v("https://vk.ru/"),e("b",[t._v("clips")]),t._v("/hooppy "),e("span",{staticClass:"text-danger"},[t._v("(клипы)")])]),t._v(" "),e("li",[t._v("https://vk.ru/album-123_456 "),e("span",{staticClass:"text-danger"},[t._v("(фотоальбомы)")])])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Одноклассников")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://ok.ru/hooppy")]),t._v(" "),e("li",[t._v("https://ok.ru/group/1234567")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Pinterest")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://pinterest.com/hooppy/cars/ "),e("span",{staticClass:"text-danger"},[t._v("(доски)")])]),t._v(" "),e("li",[t._v("https://pinterest.com/hooppy/cars/black/ "),e("span",{staticClass:"text-danger"},[t._v("(секции)")])])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Instagram")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://www.instagram.com/hooppy")]),t._v(" "),e("li",[e("b",[t._v("stories")]),t._v(" https://www.instagram.com/hooppy "),e("span",{staticClass:"text-danger"},[t._v("(истории)")])])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Tumblr")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://www.tumblr.com/blog/hooppy")]),t._v(" "),e("li",[t._v("https://www.tumblr.com/hooppy")]),t._v(" "),e("li",[t._v("https://hooppy.tumblr.com/")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Telegram")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://t.me/hooppy "),e("span",{staticClass:"text-danger"},[t._v("(открытые каналы и группы)")])]),t._v(" "),e("li",[t._v("https://t.me/hooppy/123 "),e("span",{staticClass:"text-danger"},[t._v("(топик форума)")])]),t._v(" "),e("li",[t._v("-1001459353419 "),e("span",{staticClass:"text-danger"},[t._v("(закрытые каналы)")])]),t._v(" "),e("li",[e("b",[t._v("stories")]),t._v(" https://t.me/hooppy "),e("span",{staticClass:"text-danger"},[t._v("(истории)")])])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Дзен")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://dzen.ru/hooppy")]),t._v(" "),e("li",[t._v("https://dzen.ru/hooppy?tab=articles "),e("span",{staticClass:"text-danger"},[t._v("(только статьи)")])]),t._v(" "),e("li",[t._v("https://dzen.ru/hooppy?tab=longs "),e("span",{staticClass:"text-danger"},[t._v("(только видео)")])]),t._v(" "),e("li",[t._v("https://dzen.ru/hooppy?tab=shorts "),e("span",{staticClass:"text-danger"},[t._v("(только шортс)")])])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для TikTok")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://www.tiktok.com/@hooppy")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для YouTube")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://www.youtube.com/@hooppy/shorts")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 px-3 pt-3 mt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Откуда взять ID закрытого канала Телеграм?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("ol",{staticClass:"mb-0"},[e("li",[t._v("Начните диалог с "),e("b",[e("a",{attrs:{href:"https://t.me/HooppyNextBot",target:"_blank"}},[t._v("@Hooppy.Next")])])]),t._v(" "),e("li",[t._v("Поделитесь с ним любым сообщением из вашего канала")]),t._v(" "),e("li",[e("b",[t._v("@Hooppy.Next")]),t._v(" отобразит ID канала в формате "),e("b",[t._v("-100XXXXXXXXXX")])]),t._v(" "),e("li",[t._v("Скопируйте "),e("b",[t._v("ID")]),t._v(' в поле "'),e("b",[t._v("Telegram")]),t._v('".')])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("What is a posts source?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        The source can be a link to a group in a social network from which you need to take posts.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Examples of source links")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Below is a list of correct links to pages on social networks from which you can fetch posts:\n      ")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For Pinterest")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://pinterest.com/anypage/cars/ "),e("span",{staticClass:"text-danger"},[t._v("(boards)")])]),t._v(" "),e("li",[t._v("https://pinterest.com/anypage/cars/black/ "),e("span",{staticClass:"text-danger"},[t._v("(sections)")])])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For Instagram")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://www.instagram.com/anypage")]),t._v(" "),e("li",[e("b",[t._v("stories")]),t._v(" https://www.instagram.com/anypage "),e("span",{staticClass:"text-danger"},[t._v("(stories)")])])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For Tumblr")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://www.tumblr.com/blog/anypage")]),t._v(" "),e("li",[t._v("https://www.tumblr.com/anypage")]),t._v(" "),e("li",[t._v("https://anypage.tumblr.com/")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For Telegram")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://t.me/anypage "),e("span",{staticClass:"text-danger"},[t._v("(open channels and groups)")])]),t._v(" "),e("li",[t._v("https://t.me/anypage/123 "),e("span",{staticClass:"text-danger"},[t._v("(forum topics)")])]),t._v(" "),e("li",[t._v("-1001459353419 "),e("span",{staticClass:"text-danger"},[t._v("(closed channels)")])]),t._v(" "),e("li",[e("b",[t._v("stories")]),t._v(" https://t.me/anypage "),e("span",{staticClass:"text-danger"},[t._v("(stories)")])])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For YouTube")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("https://www.youtube.com/@anypage/shorts")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 px-3 pt-3 mt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("How to get the ID of a closed Telegram channel?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("ol",{staticClass:"mb-0"},[e("li",[t._v("Start a conversation with "),e("b",[e("a",{attrs:{href:"https://t.me/soc_auto_poster_bot",target:"_blank"}},[t._v("@SocAutoPoster")])])]),t._v(" "),e("li",[t._v("Share any message from your channel with it")]),t._v(" "),e("li",[e("b",[t._v("@SocAutoPoster")]),t._v(" will display the channel ID in the format "),e("b",[t._v("-100XXXXXXXXXX")])]),t._v(" "),e("li",[t._v("Copy the "),e("b",[t._v("ID")]),t._v(' into the "'),e("b",[t._v("Telegram")]),t._v('" field.')])])])])])}
1],!1,null,null,null).exports),T=o(69),P=o(73);function I(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return A(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?A(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function A(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var F={mixins:[P.a],components:{HelpForm:l.a,SourceResourcesHelp:S,FormSocialNetworks:x.a,FormGroupTextarea:T.a,FormGroupRadioButtons:k.a},props:{initialSocialNetworks:{type:Array,default:function(){return[]}},initialSourceResources:{type:Object,default:function(){return{}}},initialSourceResourcesMode:{type:Number,default:function(){return 1}}},data:function(){return{socialNetworks:Object(_.cloneDeep)(this.initialSocialNetworks),sourceResources:Object(_.cloneDeep)(this.initialSourceResources),sourceResourcesMode:this.initialSourceResourcesMode,needToRedrawTexts:!0}},mounted:function(){var t=this;for(var i in this.socialNetworks)this.sourceResources[this.socialNetworks[i].source_id]?this.socialNetworks[i].checked=!0:this.sourceResources[this.socialNetworks[i].source_id]="";for(var e=function(e){t.$watch(function(){return t.socialNetworks[e].checked},function(o){o&&t.$refs["source-resources-"+t.socialNetworks[e].source_id][0].focus()})},o=0;o<this.socialNetworks.length;o++)e(o);setTimeout(function(){t.needToRedrawTexts=!1},151)},computed:{isAnyNetworkChecked:function(){var t,e=I(this.socialNetworksComputed);try{for(e.s();!(t=e.n()).done;){if(t.value.checked)return!0}}catch(t){e.e(t)}finally{e.f()}return!1},modeTip:function(){var t,e=I(this.$t("crossPosting").form.source_resources.modes);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.sourceResourcesMode)return o.tip}}catch(t){e.e(t)}finally{e.f()}return""},socialNetworksComputed:function(){var t,e=this.config.source_ids_for_parsing,o=[],n=I(this.socialNetworks);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.config.source_ids.includes(r.source_id)&&e.includes(r.source_id)&&o.push(r)}}catch(t){n.e(t)}finally{n.f()}return o}},methods:{apply:function(){var t={};for(var e in this.socialNetworks)this.socialNetworks[e].checked&&this.sourceResources[this.socialNetworks[e].source_id]&&(t[this.socialNetworks[e].source_id]=this.sourceResources[this.socialNetworks[e].source_id].trim());this.$emit("update-source-resources",t),this.$emit("update-source-resources-mode",this.sourceResourcesMode),this.$emit("close-form")}}},j=Object(v.a)(F,function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"form-wrapper"},[e("FormSocialNetworks",{attrs:{"social-networks":t.socialNetworksComputed,"id-prefix":"srf",label:t.$t("crossPosting").form.source_resources.from_networks,"settings-disabled":!0,"is-for-parsing":!0},on:{"update-networks":t.updateNetworks}}),t._v(" "),t._l(t.socialNetworksComputed,function(o,n){return o.checked?e("FormGroupTextarea",{key:n,ref:"source-resources-"+o.source_id,refInFor:!0,attrs:{id:"source-resources-"+o.source_id,label:o.name,placeholder:t.$t("crossPosting").form.source_resources.network_pages_placeholder,"need-to-redraw":t.needToRedrawTexts,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.sourceResources[o.source_id],callback:function(e){t.$set(t.sourceResources,o.source_id,e)},expression:"sourceResources[network.source_id]"}}):t._e()})],2),t._v(" "),t.isAnyNetworkChecked?[e("FormGroupRadioButtons",{attrs:{items:t.$t("crossPosting").form.source_resources.modes,name:"photos_crop_type",label:t.$t("crossPosting").form.source_resources.mode,"main-class":"mb-2"},model:{value:t.sourceResourcesMode,callback:function(e){t.sourceResourcesMode=e},expression:"sourceResourcesMode"}}),t._v(" "),e("div",{staticClass:"small mb-3 text-secondary"},[t._v("\n      "+t._s(t.modeTip)+"\n    ")])]:t._e(),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light justify-content-between"},[e("div",[e("HelpForm",{attrs:{title:t.$t("help").instructions,"help-id":"25","is-in-form":!0}},[e("SourceResourcesHelp")],1)],1),t._v(" "),e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n      "+t._s(t.$t("crossPosting").form.source_resources.apply)+"\n    ")])])],2)},[],!1,null,null,null).exports,O=o(56);function $(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function L(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?$(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):$(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function R(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return B(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?B(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function B(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var D={mixins:[P.a],components:{FormSocialNetworks:x.a,FormGroupSelect:O.a},props:{initialSocialNetworks:{type:Array,default:function(){return[]}},initialAccountsForParsing:{type:Object,default:function(){return{}}},socialPagesByAccounts:{type:Array,default:function(){return[]}}},data:function(){return{sourceIdsAllowed:[],socialNetworks:Object(_.cloneDeep)(this.initialSocialNetworks),accountsForParsing:Object(_.cloneDeep)(this.initialAccountsForParsing)}},mounted:function(){for(var i in this.socialNetworks)this.socialNetworks[i].hidden||(this.accountsForParsing[this.socialNetworks[i].source_id]?this.socialNetworks[i].checked=!0:this.accountsForParsing[this.socialNetworks[i].source_id]=0);this.sourceIdsAllowed=this.config.source_ids_for_parsing||[];var t,e=R(this.socialNetworks);try{for(e.s();!(t=e.n()).done;){var o=t.value;o.hidden||this.sourceIdsAllowed.includes(o.source_id)&&!this.accountsForParsing[o.source_id]&&(this.accountsForParsing[o.source_id]=0)}}catch(t){e.e(t)}finally{e.f()}},computed:L(L({},Object(c.c)({settingsState:function(t){return t.settings}})),{},{isParseInstagramPostsByUs:function(){return this.settingsState.isParseInstagramPostsByUs},socialNetworksComputed:function(){var t,e=[],o=R(this.socialNetworks);try{for(o.s();!(t=o.n()).done;){var n=t.value;n.hidden||this.config.source_ids.includes(n.source_id)&&this.sourceIdsAllowed.includes(n.source_id)&&e.push(n)}}catch(t){o.e(t)}finally{o.f()}return e}}),methods:{updateAccountForParsingValue:function(t,e){var o,n=Object(_.cloneDeep)(this.accountsForParsing),r=R(this.socialNetworks);try{for(r.s();!(o=r.n()).done;){o.value.hidden||this.sourceIdsAllowed.includes(t)&&(n[t]=e)}}catch(t){r.e(t)}finally{r.f()}this.accountsForParsing=n},accountsValuesBySourceId:function(t){var e=[{id:0,value:this.$t("crossPosting").form.accounts_for_parsing.set_network_account}];return this.socialPagesByAccounts.forEach(function(o){o.account.source_id===t&&e.push({id:o.account.id,value:o.account.name})}),e},apply:function(){var t,e={},o=R(this.socialNetworks);try{for(o.s();!(t=o.n()).done;){var n=t.value;n.hidden||n.checked&&this.accountsForParsing[n.source_id]&&(e[n.source_id]=this.accountsForParsing[n.source_id])}}catch(t){o.e(t)}finally{o.f()}this.$emit("update-accounts-for-parsing",e),this.$emit("close-form")}}},N=Object(v.a)(D,function(){var t=this,e=t._self._c;return e("div",[e("FormSocialNetworks",{attrs:{"social-networks":t.socialNetworksComputed,"id-prefix":"afp",label:t.$t("crossPosting").form.accounts_for_parsing.for_networks,"settings-disabled":!0,"is-for-parsing":!0},on:{"update-networks":t.updateNetworks}}),t._v(" "),t._l(t.socialNetworksComputed,function(o,n){return o.checked?[o.need_account_for_parsing&&7!==o.source_id?e("FormGroupSelect",{key:n,attrs:{label:t.$t("crossPosting").form.accounts_for_parsing.network_account+" "+o.name,name:"check_intervals",
1items:t.accountsValuesBySourceId(o.source_id),value:t.accountsForParsing[o.source_id]},on:{change:function(e){return t.updateAccountForParsingValue(o.source_id,e)}}}):e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-flex align-items-center form-label"},[t._v("\n        "+t._s(t.$t("crossPosting").form.accounts_for_parsing.network_account+" "+([7,10].includes(o.source_id)&&1===t.config.plan_type?o.name+" "+o.form_tip_name:o.name))+"\n      ")]),t._v(" "),e("div",{staticClass:"text-secondary small"},[t._v("\n        "+t._s(t.$t("crossPosting").form.accounts_for_parsing.network_account_no_needed)+"\n      ")])])]:t._e()}),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light justify-content-end"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n      "+t._s(t.$t("crossPosting").form.accounts_for_parsing.apply)+"\n    ")])])],2)},[],!1,null,null,null).exports,M=o(33);function V(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function U(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?V(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):V(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var E={components:{FormModalHeader:M.default,FormGroupInput:m.a},data:function(){return{isFormOpened:!1,localSearchLikes:"",localSearchReposts:"",localSearchComments:"",localSearchViews:""}},computed:U(U({},Object(c.c)({formState:function(t){return t.crossPosting.form}})),{},{searchLikes:{get:function(){return this.formState.searchLikes},set:function(t){this.$store.commit("crossPosting/form/searchLikes",t)}},searchReposts:{get:function(){return this.formState.searchReposts},set:function(t){this.$store.commit("crossPosting/form/searchReposts",t)}},searchComments:{get:function(){return this.formState.searchComments},set:function(t){this.$store.commit("crossPosting/form/searchComments",t)}},searchViews:{get:function(){return this.formState.searchViews},set:function(t){this.$store.commit("crossPosting/form/searchViews",t)}},isConfigured:function(){return!!(this.searchLikes&&this.searchLikes.toString().trim()&&parseInt(this.searchLikes.toString().trim())||this.searchReposts&&this.searchReposts.toString().trim()&&parseInt(this.searchReposts.toString().trim())||this.searchComments&&this.searchComments.toString().trim()&&parseInt(this.searchComments.toString().trim())||this.searchViews&&this.searchViews.toString().trim()&&parseInt(this.searchViews.toString().trim()))},btnName:function(){return this.isConfigured?this.$t("crossPosting").form.search_filter_form.open_button_two:this.$t("crossPosting").form.search_filter_form.open_button_one}}),watch:{isFormOpened:function(t){t?(this.localSearchLikes=this.searchLikes,this.localSearchReposts=this.searchReposts,this.localSearchComments=this.searchComments,this.localSearchViews=this.searchViews,this.$refs["form-modal"].show()):(this.localSearchLikes="",this.localSearchReposts="",this.localSearchComments="",this.localSearchViews="",this.$refs["form-modal"].hide())}},methods:{apply:function(){this.searchLikes=this.localSearchLikes,this.searchReposts=this.localSearchReposts,this.searchComments=this.localSearchComments,this.searchViews=this.localSearchViews,this.isFormOpened=!1}}},H=Object(v.a)(E,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v("\n    "+t._s(t.$t("crossPosting").form.search_filter_form.label)+"\n  ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n  ")],1),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("crossPosting").form.search_filter_form.title},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("FormGroupInput",{attrs:{label:t.$t("crossPosting").form.search_filter_form.likes_min,"input-class":"input-for-numbers"},model:{value:t.localSearchLikes,callback:function(e){t.localSearchLikes=e},expression:"localSearchLikes"}}),t._v(" "),e("FormGroupInput",{attrs:{label:t.$t("crossPosting").form.search_filter_form.reposts_min,"input-class":"input-for-numbers"},model:{value:t.localSearchReposts,callback:function(e){t.localSearchReposts=e},expression:"localSearchReposts"}}),t._v(" "),e("FormGroupInput",{attrs:{label:t.$t("crossPosting").form.search_filter_form.comments_min,"input-class":"input-for-numbers"},model:{value:t.localSearchComments,callback:function(e){t.localSearchComments=e},expression:"localSearchComments"}}),t._v(" "),e("FormGroupInput",{attrs:{label:t.$t("crossPosting").form.search_filter_form.views_min,"input-class":"input-for-numbers"},model:{value:t.localSearchViews,callback:function(e){t.localSearchViews=e},expression:"localSearchViews"}}),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light"},[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n        "+t._s(t.$t("crossPosting").form.search_filter_form.apply_button)+"\n      ")])])],1)],1)},[],!1,null,null,null).exports,z=o(295),W=o(296),G=o(297),K=o(294),X=o(148),Q=o(202),Y=o(165),J=o(134),Z=o(304);function tt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function et(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?tt(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):tt(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var st={mixins:[o(110).b],components:{FormCheckbox:J.a,FormGroupSelect:O.a,FormGroupInput:m.a,FormGroupTextarea:T.a,FormGroupRadioButtons:k.a,FormModalHeader:M.default,FormReferencePhotos:Z.a},props:["objectsType"],data:function(){return{isFormOpened:!1,localRewriteState:1,localCreatePhotosType:1,localRewriteCommand:"",localReferencePhotos:[],localNoPostsIfNoRewrite:"",localImageModelId:1,localImageModelKey:""}},computed:et(et({},Object(c.c)({state:function(t){return t}})),{},{formPath:function(){return"crossPosting"},formState:function(){return this.state[this.formPath].form},photosRewrite:function(){return this.formState.postsPhotosRewrite},imageModelKeyLabel:function(){return this.getAiModelKeyLabel(this.$t("aiPosting").form.image_models,this.localImageModelId)},isConfigured:function(){return!(!this.photosRewrite.rewriteState||2!==this.photosRewrite.rewriteState)},btnName:function(){return this.isConfigured?this.$t("form").posts_photos_rewrite.open_button_two:this.$t("form").posts_photos_rewrite.open_button_one}}),watch:{isFormOpened:function(t){var e,o=this;t?(this.localRewriteState=this.photosRewrite.rewriteState,this.localCreatePhotosType=this.photosRewrite.createPhotosType,this.localRewriteCommand=this.photosRewrite.rewriteCommand,this.localReferencePhotos=Object(_.cloneDeep)(null!==(e=this.photosRewrite.referencePhotos)&&void 0!==e?e:[]),this.localNoPostsIfNoRewrite=this.photosRewrite.noPostsIfNoRewrite,this.localImageModelId=this.photosRewrite.imageModelId||1,this.localImageModelKey=this.photosRewrite.imageModelKey||"",this.$refs["form-modal"].show(),this.$nextTick(function(){setTimeout(function(){o.$refs["photos-rewrite-command-form"]&&o.$refs["photos-rewrite-command-form"].focus()},200)})):(this.localRewriteState=1,this.localCreatePhotosType=1,this.localRewriteCommand="",this.localReferencePhotos=[],this.localNoPostsIfNoRewrite="",this.localImageModelId=1,this.localImageModelKey="",this.$refs["form-modal"].hide())}},methods:{apply:function(){var t,e;if(2===this.localRewriteState&&!String(null!==(t=this.localImageModelKey)&&void 0!==t?t:"").trim().length)return this.bvToast("warning",this.$t("aiPosting").form.prompts.set_model_key),void this.$refs["photos-rewrite-image-model-key"].focus();this.$store.commit("".concat(this.formPath,"/form/postsPhotosRewrite"),{rewriteState:this.localRewriteState,createPhotosType:this.localCreatePhotosType,rewriteCommand:this.localRewriteCommand,referencePhotos:this.localReferencePhotos,noPostsIfNoRewrite:this.localNoPostsIfNoRewrite,imageModelId:this.localImageModelId,imageModelKey:String(null!==(e=this.localImageModelKey)&&void 0!==e?e:"").trim()}),this.isFormOpened=!1}}},ot=Object(v.a)(st,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("div",{staticClass:"d-sm-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n      "+t._s(t.$t("form").posts_photos_rewrite.label)+"\n    ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isFormOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.btnName)+"\n    ")],1)]),t._v(" "),e("b-modal",{ref:"form-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isFormOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("form").posts_photos_rewrite.title},on:{"close-form":function(e){t.isFormOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"form-wrapper"},[e("div",{staticClass:"alert alert-info mb-3 text-14 py-2"},[t._v("\n        "+t._s(t.$t("form").posts_photos_rewrite.form.rewrite_description)+"\n      ")]),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_photos_rewrite.form.rewrite_states,name:"photos_rewrite_state",label:t.$t("form").posts_photos_rewrite.form.rewrite_state},model:{value:t.localRewriteState,callback:function(e){t.localRewriteState=e},expression:"localRewriteState"}}),t._v(" "),2===t.localRewriteState?[e("FormGroupSelect",{attrs:{items:t.$t("aiPosting").form.image_models,label:t.$t("form").posts_photos_rewrite.form.image_model,name:"photos_rewrite_image_model_id"},model:{value:t.localImageModelId,callback:function(e){t.localImageModelId=e},expression:"localImageModelId"}}),t._v(" "),e("FormGroupInput",{ref:"photos-rewrite-image-model-key",attrs:{id:"photos-rewrite-image-model-key",label:t.imageModelKeyLabel,"label-tip":t.$t("aiPosting").form.model_key_tip,placeholder:t.$t("aiPosting").form.model_key_placeholder},model:{value:t.localImageModelKey,callback:function(e){t.localImageModelKey=e},expression:"localImageModelKey"}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{items:t.$t("form").posts_photos_rewrite.form.create_photos_types,name:"create_photos_type",label:t.$t("form").posts_photos_rewrite.form.create_photos_type,"label-tip":t.$t("form").posts_photos_rewrite.form.create_photos_type_tip},model:{value:t.localCreatePhotosType,callback:function(e){t.localCreatePhotosType=e},expression:"localCreatePhotosType"}}),t._v(" "),e("FormGroupTextarea",{ref:"photos-rewrite-command-form",attrs:{id:"photos-rewrite-command-form",label:t.$t("form").posts_photos_rewrite.form.rewrite_command,placeholder:t.$t("form").posts_photos_rewrite.form.rewrite_command_placeholder,"label-tip":t.$t("form").posts_photos_rewrite.form.rewrite_command_tip,"need-to-redraw":!0,"form-group-class":"mb-3","textarea-class":"small-height"},model:{value:t.localRewriteCommand,callback:function(e){t.localRewriteCommand=e},expression:"localRewriteCommand"}}),t._v(" "),e("FormReferencePhotos",{attrs:{label:t.$t("form").posts_photos_rewrite.form.reference_photos,tip:t.$t("form").posts_photos_rewrite.form.reference_photos_de
1scription,"add-button-label":t.$t("form").reference_photos.add_button,"note-placeholder":t.$t("form").posts_photos_rewrite.form.reference_photo_note_placeholder},model:{value:t.localReferencePhotos,callback:function(e){t.localReferencePhotos=e},expression:"localReferencePhotos"}}),t._v(" "),e("FormCheckbox",{attrs:{id:"field-no-posts-if-no-photos-rewrite",name:"no_posts_if_no_photos_rewrite",label:t.$t("form").posts_photos_rewrite.form.no_posts_if_no_rewrite,description:t.$t("form").posts_photos_rewrite.form.no_posts_if_no_rewrite_tip},model:{value:t.localNoPostsIfNoRewrite,callback:function(e){t.localNoPostsIfNoRewrite=e},expression:"localNoPostsIfNoRewrite"}})]:t._e()],2),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light justify-content-between"},[e("div"),t._v(" "),e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button"},on:{click:t.apply}},[t._v("\n        "+t._s(t.$t("form").posts_photos_rewrite.form.apply_button)+"\n      ")])])])],1)},[],!1,null,null,null).exports,nt=o(160),it=o(162),at=o(161),ct=o(166),lt=o(123),ut=o(167),pt=o(84),mt=o(89),ht=o(60),_t=o(119),ft=o(72);function bt(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return vt(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?vt(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function vt(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function gt(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function yt(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):gt(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var kt={mixins:[P.a,ht.a,_t.a,ft.a],components:{HelpForm:l.a,Help:d.a,FormGroupInput:m.a,FormTimes:y,FormGroupRadioButtons:k.a,FormSocialNetworks:x.a,FormSocialPages:w.a,FormGroupWatermark:C.a,SourceResourcesForm:j,AccountsForParsingForm:N,SearchFilterForm:H,PostsFilterForm:z.a,PostsUpgradeForm:G.a,PostsTextForm:W.a,PostsTextModificationForm:K.a,FormGroupSelect:O.a,FormGroupProject:X.a,FormGroupSchedule:Q.a,FormModalHeader:M.default,PostsRewrite:Y.a,PostsPhotosRewrite:ot,PostsCaption:nt.a,PostsHashtags:it.a,PostsLinks:at.a,PostsLocation:ct.a,OtherSettingsForm:ut.a,FormDate:lt.a,FormFooterButtons:pt.a},props:{id:{type:Number,default:0},isInPopup:{type:Boolean,default:!1},asCopy:{type:Boolean,default:!1}},data:function(){return{isSourceResourcesOpened:!1,isAccountsForParsingOpened:!1,isSearchFilterOpened:!1,isPostsFilterOpened:!1,isPostsTextOpened:!1,isPostsUpgradeOpened:!1,isPostsTextModificationOpened:!1,socialNetworks:Object(_.cloneDeep)(mt.data),socialPagesByAccounts:[],socialAlbumsByPages:[],sourceResourcesSocialNetworks:[],accountsForParsingSocialNetworks:[],projects:[],schedules:[],watermarks:[]}},beforeCreate:function(){this.$store.dispatch("crossPosting/form/resetForm")},mounted:function(){var t=this;this.$nextTick(function(){t.loadItemFormData("/cross-posting/"+t.id+"/edit?as_copy="+(t.asCopy?1:0),function(e){e&&e.data&&(t.$store.dispatch("crossPosting/form/setForm",e.data),t.socialPagesByAccounts=e.data.social_pages_by_accounts,t.socialAlbumsByPages=e.data.social_albums_by_pages,t.projects=e.data.projects,t.schedules=e.data.schedules,t.watermarks=e.data.watermarks,t.initSocialNetworksDisabledState(),t.sourceResourcesSocialNetworks=Object(_.cloneDeep)(t.socialNetworks),t.accountsForParsingSocialNetworks=Object(_.cloneDeep)(t.socialNetworks),t.initSocialNetworksCheckedState())})})},computed:yt(yt({},Object(c.c)({formState:function(t){return t.crossPosting.form},settingsState:function(t){return t.settings}})),{},{idComputed:function(){return this.asCopy?0:this.id},takeAmountComputed:function(){return this.formState.takeAmount&&parseInt(this.formState.takeAmount)?parseInt(this.formState.takeAmount):0},sourceResourcesLimit:function(){return this.settingsState.vip4SubscriptionDays||this.settingsState.vip5SubscriptionDays||this.settingsState.vip6SubscriptionDays||this.settingsState.vip7SubscriptionDays?20:15},isParseInstagramPostsByUs:function(){return this.settingsState.isParseInstagramPostsByUs},isSearchStarted:function(){return this.formState.isSearchStarted},sourceResourcesBtnName:function(){return this.isSourceResourcesExists?this.$t("crossPosting").form.settings_button_two:this.$t("crossPosting").form.settings_button_one},accountsForParsingBtnName:function(){return this.isAccountsForParsingConfigured?this.$t("crossPosting").form.settings_button_two:this.$t("crossPosting").form.settings_button_one},postsFilterBtnName:function(){return this.isPostsFilterConfigured?this.$t("crossPosting").form.settings_button_two:this.$t("crossPosting").form.settings_button_one},postsTextBtnName:function(){return this.isPostsTextConfigured?this.$t("crossPosting").form.settings_button_two:this.$t("crossPosting").form.settings_button_one},postsUpgradeBtnName:function(){return this.isPostsUpgradeConfigured?this.$t("crossPosting").form.settings_button_two:this.$t("crossPosting").form.settings_button_one},postsTextModificationBtnName:function(){return this.isPostsTextModificationConfigured?this.$t("crossPosting").form.settings_button_two:this.$t("crossPosting").form.settings_button_one},isSourceResourcesExists:function(){return this.formState.sourceResources&&Object.keys(this.formState.sourceResources).length},isAccountsForParsingConfigured:function(){return this.formState.accountsForParsing&&Object.keys(this.formState.accountsForParsing).length},isPostsFilterConfigured:function(){if(this.formState.postsFilter)for(var t in this.formState.postsFilter)if(this.isFieldValueChecked(t,this.formState.postsFilter[t]))return!0;return!1},isPostsTextConfigured:function(){if(this.formState.postsText)for(var t in this.formState.postsText)if(this.isFieldValueChecked(t,this.formState.postsText[t]))return!0;return!1},isPostsUpgradeConfigured:function(){if(this.formState.postsUpgrade)for(var t in this.formState.postsUpgrade)if(this.formState.postsUpgrade[t])return!0;return!1},isPostsTextModificationConfigured:function(){if(this.formState.postsTextModification)for(var t in this.formState.postsTextModification)if(this.isFieldValueChecked(t,this.formState.postsTextModification[t]))return!0;return!1},postsCaption:function(){return this.formState.postsCaption},postsHashtags:function(){return{hashtags:this.formState.postsHashtags.hashtags,max_amount:this.formState.postsHashtags.maxAmount,selection_type:this.formState.postsHashtags.selectionType,space_type:this.formState.postsHashtags.spaceType}},postsLinks:function(){return{links:this.formState.postsLinks.links,max_amount:this.formState.postsLinks.maxAmount,selection_type:this.formState.postsLinks.selectionType,space_type:this.formState.postsLinks.spaceType}},postsRewrite:function(){return{rewrite_state:this.formState.postsRewrite.rewriteState,rewrite_command:this.formState.postsRewrite.rewriteCommand,no_posts_if_no_rewrite:this.formState.postsRewrite.noPostsIfNoRewrite,rewrite_for_every_page:this.formState.postsRewrite.rewriteForEveryPage,text_model_id:this.formState.postsRewrite.textModelId,text_model_key:this.formState.postsRewrite.textModelKey}},postsPhotosRewrite:function(){var t=this.formState.postsPhotosRewrite;return{rewrite_state:t.rewriteState,create_photos_type:t.createPhotosType,rewrite_command:t.rewriteCommand,reference_photos:t.referencePhotos,no_posts_if_no_rewrite:t.
1noPostsIfNoRewrite,image_model_id:t.imageModelId,image_model_key:t.imageModelKey}},postsLocation:function(){return this.formState.postsLocation},postsLocationVk:function(){return this.formState.postsLocationVk}}),watch:{isSourceResourcesOpened:function(t){t?this.$refs["source-resources-modal"].show():this.$refs["source-resources-modal"].hide()},isAccountsForParsingOpened:function(t){t?this.$refs["accounts-for-parsing-modal"].show():this.$refs["accounts-for-parsing-modal"].hide()},isPostsFilterOpened:function(t){t?this.$refs["posts-filter-modal"].show():this.$refs["posts-filter-modal"].hide()},isPostsTextOpened:function(t){t?this.$refs["posts-text-modal"].show():this.$refs["posts-text-modal"].hide()},isPostsUpgradeOpened:function(t){t?this.$refs["posts-upgrade-modal"].show():this.$refs["posts-upgrade-modal"].hide()},isPostsTextModificationOpened:function(t){t?this.$refs["posts-text-modification-modal"].show():this.$refs["posts-text-modification-modal"].hide()}},methods:{updateStateByField:function(t,e){this.$store.commit("crossPosting/form/"+t,e)},isFieldValueChecked:function(t,e){if(t&&["translate_lang_to","must_have_logical_union"].includes(t))return!1;if("string"==typeof e){if(e&&e.trim())return!0}else if("number"==typeof e){if(1!==e)return!0}else if("object"===Object(n.a)(e)&&e.list&&Array.isArray(e.list)){var o,r=bt(e.list);try{for(r.s();!(o=r.n()).done;){var c=o.value;if(c.from&&c.to&&c.from.trim()&&c.to.trim())return!0;if(c.name&&c.link&&c.name.trim()&&c.link.trim())return!0}}catch(t){r.e(t)}finally{r.f()}}return!1},deleteForm:function(){var t=this;this.deleteItem("/cross-posting/"+this.id,null,this.$t("crossPosting").delete_confirmation,function(){t.$emit("close-form",!0)})},saveForm:function(){var t=this,data=this.getFormData();data&&(this.id&&!this.asCopy?this.updateItem("/cross-posting/"+this.id,data,this.$t("crossPosting").form.prompts.saved,function(){t.$emit("close-form",!0,t.id)}):this.createItem("/cross-posting",data,this.$t("crossPosting").form.prompts.saved,function(e){t.isInPopup?t.$emit("close-form",!0,e.data.id):t.$emit("reset-form")}))},getFormData:function(){var data=this.getDataFromState(this.formState,["selected_pages_by_source_ids","project_id","schedule_id"]);if(!data.name.trim().length)return this.bvToast("warning",this.$t("crossPosting").form.prompts.set_name),this.focusInput("name-"+this.id),null;if(2===this.formState.checkWhenType){var t,e=[],o=bt(this.formState.checkTimes);try{for(o.s();!(t=o.n()).done;){var time=t.value;if(time&&2===(time=time.split(":")).length&&time[0]&&time[1]){var n=Number(time[0]),r=Number(time[1]);if(n>23||r>59)return this.bvToast("warning",this.$t("crossPosting").form.prompts.check_when_type_warning),null;n=n<10?"0"+n:n,r=r<10?"0"+r:r,e.includes("".concat(n,":").concat(r))||e.push("".concat(n,":").concat(r))}}}catch(t){o.e(t)}finally{o.f()}if(!e.length)return this.bvToast("warning",this.$t("crossPosting").form.prompts.check_times_warning),null;this.updateStateByField("checkTimes",e),data.check_times=e}data.posts_caption=this.postsCaption.postsCaption,data.posts_caption_position_type=this.postsCaption.postsCaptionPositionType,data.posts_caption_space_type=this.postsCaption.postsCaptionSpaceType,data.photos_caption=this.postsCaption.photosCaption,data.tg_buttons=this.postsCaption.tgButtons,data.videos_title=this.postsCaption.videosTitle,data.posts_comment=this.postsCaption.postsComment,data.publish_comment_by_account=this.postsCaption.publishCommentByAccount,data.posts_photo=this.postsCaption.postsPhoto,data.posts_photo_always=this.postsCaption.postsPhotoAlways,data.posts_hashtags=this.postsHashtags,data.posts_links=this.postsLinks,data.posts_rewrite=this.postsRewrite,data.posts_photos_rewrite=this.postsPhotosRewrite,data.posts_location=this.postsLocation,data.posts_location_vk=this.postsLocationVk,data.posts_filter=this.formState.postsFilter,data.posts_upgrade=this.formState.postsUpgrade,data.posts_text=this.formState.postsText,data.posts_text_modification=this.formState.postsTextModification;var c=[];if(Object.keys(data.source_resources).length)for(var l in data.source_resources)if(data.source_resources[l].trim()){if(data.source_resources[l].split("\n").length>this.sourceResourcesLimit)return this.bvToast("warning",this.$t("crossPosting").form.prompts["source_resources_limit_".concat(this.sourceResourcesLimit,"_exceeded")]),null;c.push(l)}if(!c.length)return this.bvToast("warning",this.$t("crossPosting").form.prompts.set_source_resources),null;for(var d=0,m=c;d<m.length;d++){var h=m[d];if(7!==parseInt(h)){if(17===parseInt(h)&&1===this.formState.checkWhenType&&[1,2,3,16].includes(parseInt(data.check_interval)))return this.bvToast("warning",this.$t("crossPosting").form.prompts.check_interval_for_youtube),null;var _,f=bt(this.socialNetworks);try{for(f.s();
1!(_=f.n()).done;){var v=_.value;if(parseInt(h)===parseInt(v.source_id)){if(v.need_account_for_parsing&&!data.accounts_for_parsing[h])return this.bvToast("warning",this.$t("crossPosting").form.prompts.set_accounts_for_parsing+" "+v.name),null;break}}}catch(t){f.e(t)}finally{f.f()}}else if(1===this.formState.checkWhenType&&[1,2,3,16].includes(parseInt(data.check_interval)))return this.bvToast("warning",this.$t("crossPosting").form.prompts.check_interval_for_instagram),null}if(1===this.formState.publicationWhenType){if(1===this.formState.publicationHowType){if(data.selected_pages_by_source_ids=this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedPagesBySourceIds),data.selected_albums_by_source_ids=this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedAlbumsBySourceIds),!Object.keys(data.selected_pages_by_source_ids).length&&!Object.keys(data.selected_albums_by_source_ids).length)return this.bvToast("warning",this.$t("crossPosting").form.prompts.set_pages),null}else if(data.project_id=this.formState.projectId,!data.project_id)return this.bvToast("warning",this.$t("crossPosting").form.prompts.set_project),null}else if(data.schedule_id=this.formState.scheduleId,!data.schedule_id)return this.bvToast("warning",this.$t("crossPosting").form.prompts.set_schedule),null;return data}}},xt=Object(v.a)(kt,function(){var t=this,e=t._self._c;return e("form",{staticClass:"mx-auto form-wrapper",attrs:{autocomplete:"off"}},[e("FormGroupInput",{ref:"name-"+t.idComputed,attrs:{value:t.formState.name,id:"name-"+t.idComputed,label:t.$t("crossPosting").form.name,placeholder:t.$t("crossPosting").form.name_placeholder},on:{input:function(e){return t.updateStateByField("name",e)}}}),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary border-1 p-3 mb-3"},[e("div",{staticClass:"d-sm-flex justify-content-between align-items-center mb-3"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n        "+t._s(t.$t("crossPosting").form.source_resources.label)+"\n      ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isSourceResourcesExists?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isSourceResourcesOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.sourceResourcesBtnName)+"\n      ")],1)]),t._v(" "),e("div",{staticClass:"d-sm-flex justify-content-between align-items-center"},[e("label",{staticClass:"d-flex align-items-center form-label m-sm-0"},[e("span",[t._v("\n        "+t._s(t.$t("crossPosting").form.accounts_for_parsing.label)+"\n      ")]),t._v(" "),e("fa",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:t.$t("crossPosting").form.accounts_for_parsing.tip,expression:"$t('crossPosting')['form']['accounts_for_parsing']['tip']",modifiers:{hover:!0,top:!0}}],staticClass:"ms-2 text-info",attrs:{icon:["fas","question-circle"]}})],1),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isAccountsForParsingConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isAccountsForParsingOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.accountsForParsingBtnName)+"\n      ")],1)])]),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary border-1 px-3 pt-3 mb-3"},[e("FormGroupRadioButtons",{attrs:{value:t.formState.checkWhenType,items:t.$t("crossPosting").form.check_when_types,name:"check_when_type",label:t.$t("crossPosting").form.check_when_type,"label-tip":t.$t("crossPosting").form.check_when_type_tip},on:{change:function(e){return t.updateStateByField("checkWhenType",e)}}}),t._v(" "),1===t.formState.checkWhenType?e("div",{staticClass:"d-flex"},[e("FormGroupSelect",{attrs:{value:t.formState.checkInterval,items:t.$t("crossPosting").form.check_intervals,name:"check_interval"},on:{change:function(e){return t.updateStateByField("checkInterval",e)}}})],1):e("FormTimes",{attrs:{value:t.formState.checkTimes},on:{change:function(e){return t.updateStateByField("checkTimes",e)}}}),t._v(" "),e("FormGroupInput",{attrs:{value:t.formState.takeAmount,"input-class":"input-for-numbers",label:t.$t("crossPosting").form.take_amount,"label-postfix":t.takeAmountComputed?t.wordsDeclension(t.takeAmountComputed,t.$t("crossPosting").form.take_amount_postfix):""},on:{input:function(e){return t.updateStateByField("takeAmount",e)}
1}})],1),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary border-1 px-3 pt-3 mb-3"},[e("FormGroupRadioButtons",{attrs:{value:t.formState.publicationWhenType,items:t.$t("crossPosting").form.publication_when_types,name:"publication_when_type",label:t.$t("crossPosting").form.publication_when_type},on:{change:function(e){return t.updateStateByField("publicationWhenType",e)}}}),t._v(" "),1===t.formState.publicationWhenType?e("FormGroupRadioButtons",{attrs:{value:t.formState.publicationIntervalType,items:t.$t("crossPosting").form.publication_interval_types,name:"publication_interval_type",label:t.$t("crossPosting").form.publication_interval_type,"label-tip":t.$t("crossPosting").form.publication_interval_type_tip},on:{change:function(e){return t.updateStateByField("publicationIntervalType",e)}}}):t._e(),t._v(" "),1===t.formState.publicationWhenType&&1===t.formState.publicationIntervalType?e("FormGroupInput",{attrs:{value:t.formState.publicationInterval,"input-class":"input-for-numbers","label-postfix":t.$t("crossPosting").form.publication_interval_postfix},on:{input:function(e){return t.updateStateByField("publicationInterval",e)}}}):t._e(),t._v(" "),1===t.formState.publicationWhenType&&2===t.formState.publicationIntervalType?e("div",{staticClass:"d-flex align-items-center mb-3"},[e("FormGroupInput",{attrs:{value:t.formState.publicationIntervalFrom,"input-class":"input-for-numbers","form-group-class":"mb-0",placeholder:t.$t("crossPosting").form.publication_interval_from},on:{input:function(e){return t.updateStateByField("publicationIntervalFrom",e)}}}),t._v(" "),e("div",{staticClass:"mx-2"},[t._v("-")]),t._v(" "),e("FormGroupInput",{attrs:{value:t.formState.publicationIntervalTo,"input-class":"input-for-numbers","form-group-class":"mb-0",placeholder:t.$t("crossPosting").form.publication_interval_to,"label-postfix":t.$t("crossPosting").form.publication_interval_postfix},on:{input:function(e){return t.updateStateByField("publicationIntervalTo",e)}}})],1):t._e(),t._v(" "),1===t.formState.publicationWhenType?e("FormGroupRadioButtons",{attrs:{value:t.formState.publicationHowType,items:t.$t("crossPosting").form.publication_how_types,name:"publication_how_type",label:t.$t("crossPosting").form.publication_how_type},on:{change:function(e){return t.updateStateByField("publicationHowType",e)}}}):t._e(),t._v(" "),1===t.formState.publicationWhenType&&1===t.formState.publicationHowType?e("FormSocialNetworks",{attrs:{"social-networks":t.socialNetworksComputed,label:t.$t("crossPosting").form.networks,"no-label":!0,"id-prefix":"cpn"},on:{"update-networks":t.updateNetworks}}):t._e(),t._v(" "),1===t.formState.publicationWhenType&&2===t.formState.publicationHowType?e("FormGroupProject",{key:"projects",attrs:{value:t.formState.projectId,projects:t.projects},on:{change:function(e){return t.updateStateByField("projectId",e)},"update-projects":function(e){t.projects=e}}}):t._e(),t._v(" "),2===t.formState.publicationWhenType?e("FormGroupSchedule",{key:"schedules",attrs:{value:t.formState.scheduleId,schedules:t.schedules},on:{change:function(e){return t.updateStateByField("scheduleId",e)},"update-schedules":function(e){t.schedules=e}}}):t._e(),t._v(" "),t._l(t.socialNetworks,function(o,n){return 1===t.formState.publicationWhenType&&1===t.formState.publicationHowType&&o.checked&&!t.unusedSourcesIds.includes(parseInt(o.source_id))?e("FormSocialPages",{key:n,ref:"pages-by-source-id-"+o.source_id,refInFor:!0,attrs:{network:o,"social-pages-by-accounts":t.socialPagesByAccounts,"social-albums-by-pages":t.socialAlbumsByPages,"selected-pages-by-source-ids":t.formState.selectedPagesBySourceIds,"selected-albums-by-source-ids":t.formState.selectedAlbumsBySourceIds},on:{"update-selected-pages-by-source-ids":function(e){return t.updateStateByField("selectedPagesBySourceIds",e)},"update-selected-albums-by-source-ids":function(e){return t.updateStateByField("selectedAlbumsBySourceIds",e)},"update-social-albums-by-pages":function(e){t.socialAlbumsByPages=e}}}):t._e()})],2),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary border-1 px-3 pt-3 mb-3"},[e("FormGroupRadioButtons",{attrs:{value:t.formState.copyMode,items:t.$t("crossPosting").form.copy_modes,name:"copy_mode",label:t.$t("crossPosting").form.copy_mode},on:{change:function(e){return t.updateStateByField("copyMode",e)}}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{value:t.formState.searchMode,items:t.$t("crossPosting").form.search_modes,name:"search_mode",label:t.$t("crossPosting").form.search_mode,disabled:!!t.idComputed},on:{change:function(e){return t.updateStateByField("searchMode",e)}}}),t._v(" "),1===t.formState.searchMode?e("FormGroupRadioButtons",{attrs:{value:t.formState.searchModeDirection,items:t.$t("crossPosting").form.search_mode_directions,name:"search_mode_direction",label:t.$t("crossPosting").form.search_mode_direction},on:{change:function(e){return t.updateStateByField("searchModeDirection",e)}}}):t._e(),t._v(" "),2===t.formState.searchMode||4===t.formState.searchMode?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v("\n        "+t._s(t.$t("crossPosting").form.search_date)+"\
1n      ")]),t._v(" "),e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col"},[e("FormDate",{attrs:{date:t.formState.searchStartDate,"is-show-clear-btn":!0,placeholder:t.$t("crossPosting").form.search_date_from,"input-width":0,disabled:t.isSearchStarted},on:{change:function(e){return t.updateStateByField("searchStartDate",e)}}})],1),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"col"},[e("FormDate",{attrs:{date:t.formState.searchStopDate,"is-show-clear-btn":!0,placeholder:t.$t("crossPosting").form.search_date_to,"input-width":0,disabled:t.isSearchStarted},on:{change:function(e){return t.updateStateByField("searchStopDate",e)}}})],1)])]):t._e(),t._v(" "),2===t.formState.searchMode||4===t.formState.searchMode?e("SearchFilterForm"):t._e(),t._v(" "),3===t.formState.searchMode?e("FormGroupRadioButtons",{attrs:{value:t.formState.determineBestBy,items:t.$t("crossPosting").form.determine_best_by_types,name:"determine_best_by",label:t.$t("crossPosting").form.determine_best_by},on:{change:function(e){return t.updateStateByField("determineBestBy",e)}}}):t._e()],1),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary border-1 px-3 pt-3"},[e("FormGroupWatermark",{attrs:{value:t.formState.watermarkId,watermarks:t.watermarks},on:{change:function(e){return t.updateStateByField("watermarkId",e)},"update-watermarks":function(e){t.watermarks=e}}}),t._v(" "),e("div",{staticClass:"d-sm-flex justify-content-between align-items-center mb-3"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n        "+t._s(t.$t("crossPosting").form.posts_filter.label)+"\n      ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isPostsFilterConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isPostsFilterOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.postsFilterBtnName)+"\n      ")],1)]),t._v(" "),e("div",{staticClass:"d-sm-flex justify-content-between align-items-center mb-3"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n        "+t._s(t.$t("crossPosting").form.posts_text.label)+"\n      ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isPostsTextConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isPostsTextOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.postsTextBtnName)+"\n      ")],1)]),t._v(" "),e("div",{staticClass:"d-sm-flex justify-content-between align-items-center mb-3"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n        "+t._s(t.$t("crossPosting").form.posts_upgrade.label)+"\n      ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isPostsUpgradeConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isPostsUpgradeOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.postsUpgradeBtnName)+"\n      ")],1)]),t._v(" "),e("div",{staticClass:"d-sm-flex justify-content-between align-items-center mb-3"},[e("label",{staticClass:"d-block form-label m-sm-0"},[t._v("\n        "+t._s(t.$t("crossPosting").form.posts_text_modification.label)+"\n      ")]),t._v(" "),e("div",{staticClass:"btn btn-sm",class:t.isPostsTextModificationConfigured?"btn-secondary":"btn-outline-secondary",on:{click:function(e){t.isPostsTextModificationOpened=!0}}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","cog"]}}),t._v(t._s(t.postsTextModificationBtnName)+"\n      ")],1)]),t._v(" "),e("PostsCaption",{attrs:{placeholder:t.$t("crossPosting").form.posts_caption_placeholder,"photos-caption-placeholder":t.$t("crossPosting").form.posts_caption_photos_placeholder,"videos-title-placeholder":t.$t("crossPosting").form.posts_videos_title_placeholder,"comment-placeholder":t.$t("crossPosting").form.posts_caption_comment_placeholder,"objects-type":"cross-posting","is-videos-enabled":!0}}),t._v(" "),e("PostsHashtags",{attrs:{"objects-type":"cross-posting"}}),t._v(" "),e("PostsLinks",{attrs:{"objects-type":"cross-posting"}}),t._v(" "),e("PostsRewrite",{attrs:{"objects-type":"cross-posting"}}),t._v(" "),e("PostsPhotosRewrite",{attrs:{"objects-type":"cross-posting"}}),t._v(" "),1===t.config.plan_type?e("PostsLocation",{attrs:{"objects-type":"cross-posting","search-api":"/search/vkontakte/locations","posts-location-store":"postsLocationVk","form-label":t.$t("form").posts_location.label_vk,"form-title":t.$t("form").posts_location.title_vk}}):t._e(),t._v(" "),e("PostsLocation",{attrs:{"objects-type":"cross-posting","search-api":"/search/instagram/locations","posts-location-store":"postsLocation","form-label":t.$t("form").posts_location.label,"form-title":t.$t("form").posts_location.title}}),t._v(" "),e("OtherSettingsForm",{attrs:{"objects-type":"cross-posting","social-networks":t.socialNetworks}})],1),t._v(" "),e("FormFooterButtons",{attrs:{id:t.idComputed,disabled:t.isLoading,"is-in-popup":t.isInPopup},on:{"delete-item":t.deleteForm,"save-item":t.saveForm}},[t.id?e("HelpForm",{attrs:{title:t.$t("help").instructions,"blog-url":"https://blog.hooppy.ru/category/faq/krossposting/","help-id":"24","is-in-form":!0}},[e("Help")],1):t._e()],1),t._v(" "),e("b-modal",{ref:"source-resources-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"}
1,on:{hidden:function(e){t.isSourceResourcesOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("crossPosting").form.source_resources.title},on:{"close-form":function(e){t.isSourceResourcesOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("SourceResourcesForm",{attrs:{"initial-social-networks":t.sourceResourcesSocialNetworks,"initial-source-resources":t.formState.sourceResources,"initial-source-resources-mode":t.formState.sourceResourcesMode},on:{"update-source-resources":function(e){return t.updateStateByField("sourceResources",e)},"update-source-resources-mode":function(e){return t.updateStateByField("sourceResourcesMode",e)},"close-form":function(e){t.isSourceResourcesOpened=!1}}})],1),t._v(" "),e("b-modal",{ref:"accounts-for-parsing-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isAccountsForParsingOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("crossPosting").form.accounts_for_parsing.title},on:{"close-form":function(e){t.isAccountsForParsingOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("AccountsForParsingForm",{attrs:{"initial-social-networks":t.accountsForParsingSocialNetworks,"initial-accounts-for-parsing":t.formState.accountsForParsing,"social-pages-by-accounts":t.socialPagesByAccounts},on:{"update-accounts-for-parsing":function(e){return t.updateStateByField("accountsForParsing",e)},"close-form":function(e){t.isAccountsForParsingOpened=!1}}})],1),t._v(" "),e("b-modal",{ref:"posts-filter-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isPostsFilterOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("crossPosting").form.posts_filter.label},on:{"close-form":function(e){t.isPostsFilterOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("PostsFilterForm",{attrs:{"configuration-fields":t.$t("crossPosting").form.posts_filter.posts_filter_configuration_fields,"initial-posts-filter":t.formState.postsFilter,"object-type":"cross-posting"},on:{"close-form":function(e){t.isPostsFilterOpened=!1}}})],1),t._v(" "),e("b-modal",{ref:"posts-text-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isPostsTextOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("crossPosting").form.posts_text.title},on:{"close-form":function(e){t.isPostsTextOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("PostsTextForm",{attrs:{"configuration-fields":t.$t("crossPosting").form.posts_text.posts_text_configuration_fields,"initial-posts-text":t.formState.postsText,"object-type":"cross-posting"},on:{"close-form":function(e){t.isPostsTextOpened=!1}}})],1),t._v(" "),e("b-modal",{ref:"posts-upgrade-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isPostsUpgradeOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("crossPosting").form.posts_upgrade.title},on:{"close-form":function(e){t.isPostsUpgradeOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("PostsUpgradeForm",{attrs:{"configuration-fields":t.$t("crossPosting").form.posts_upgrade.posts_upgrade_configuration_fields,"initial-posts-upgrade":t.formState.postsUpgrade,"object-type":"cross-posting"},on:{"close-form":function(e){t.isPostsUpgradeOpened=!1}}})],1),t._v(" "),e("b-modal",{ref:"posts-text-modification-modal",attrs:{centered:"","no-fade":"","hide-footer":"","header-class":"border-0 bg-primary text-white","footer-class":"border-0 bg-light","body-class":"pb-0"},on:{hidden:function(e){t.isPostsTextModificationOpened=!1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.$t("crossPosting").form.posts_text_modification.title},on:{"close-form":function(e){t.isPostsTextModificationOpened=!1}}})]},proxy:!0}])},[t._v(" "),e("PostsTextModificationForm",{attrs:{"configuration-fields":t.$t("crossPosting").form.posts_text_modification.posts_text_modification_configuration_fields,"initial-posts-text-modification":t.formState.postsTextModification,"object-type":"cross-posting"},on:{"close-form":function(e){t.isPostsTextModificationOpened=!1}}})],1)],1)},[function(){var t=this._self._c;return t("div",{staticClass:"col-auto"},[t("div",{staticClass:"px-3 dates-divider"},[this._v("—")])])}],!1,null,null,null);e.a=xt.exports},,function(t,e,o){"use strict";o(31),o(15),o(6),o(39),o(43),o(44),o(22),o(9),o(10),o(8),o(20),o(29),o(36),o(7
1),o(32);var n=o(0),r=(o(23),o(4),o(34),o(28),o(66),o(1),o(373),o(30)),c=o(56),l=o(87),d=o(46),m=o(109),h=o(47),_=o(123),f=o(33),v=o(302),y={actionButtons:[{name:"add",title:"Создать",icon:["fas","plus"],method_name:"createForm"},{name:"edit",title:"Редактировать",icon:["fas","pen"],method_name:"editForm"},{name:"delete",title:"Удалить",icon:["fas","trash"],method_name:"deleteListItem"}]},k=o(60),x=o(72);function w(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return C(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?C(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function C(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function S(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}var T={mixins:[k.a,x.a],components:{FormModalHeader:f.default,Form:v.a},model:{prop:"value",event:"change"},props:["value","persons","required","disabled"],data:function(){return function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?S(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}({editedItemId:-1},y)},computed:{currentValue:{get:function(){return this.persons.length?this.value:0},set:function(t){this.$emit("change",t)}},currentValueComputed:{get:function(){if(this.currentValue&&this.personsComputed.length){var t,e=w(this.personsComputed);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.currentValue)return o}}catch(t){e.e(t)}finally{e.f()}}return null},set:function(t){this.currentValue=t?t.id:0}},personsComputed:function(){return this.persons.length?this.persons.map(function(t){return{id:t.id,value:t.name}}):[]}},methods:{closeForm:function(t,e,o){this.$refs["edit-modal"].hide(),"boolean"==typeof t&&t&&(this.$emit("update-persons",o),this.$emit("change",e))},editForm:function(){this.editedItemId=this.currentValue,this.$refs["edit-modal"].show()},createForm:function(){this.editedItemId=0,this.$refs["edit-modal"].show()},deleteListItem:function(){var t=this;this.deleteItem("/ord/persons/"+this.currentValue,null,this.$t("ord").persons.delete_confirmation,function(e){t.$emit("update-persons",e.data.persons),t.$emit("change",0)})}}},P=T,I=o(5),A=Object(I.a)(P,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-label"},[t._v("\n    "+t._s(t.$t("ord").persons.form_group.label)+"\n    "),t.required?e("span",[t._v("*")]):t._e()]),t._v(" "),e("div",{staticClass:"d-flex"},[e("multiselect",{attrs:{options:t.personsComputed,searchable:!0,multiple:!1,"show-labels":!1,"close-on-select":!0,placeholder:t.persons.length?t.$t("ord").persons.form_group.default_value:t.$t("ord").persons.form_group.no_items,"track-by":"id",label:"value",disabled:t.disabled||!t.persons.length},scopedSlots:t._u([{key:"singleLabel",fn:function(e){var option=e.option;return[t._v("\n        "+t._s(option.value)+"\n      ")]}}]),model:{value:t.currentValueComputed,callback:function(e){t.currentValueComputed=e},expression:"currentValueComputed"}}),t._v(" "),e("b-dropdown",{staticClass:"dropdown-no-arrow ms-2",attrs:{right:"",variant:"secondary",size:"sm"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("fa",{attrs:{icon:["fas","ellipsis-h"]}})]},proxy:!0}])},[t._v(" "),t._l(t.actionButtons,function(o,n){return e("b-dropdown-item-button",{key:n,attrs:{"button-class":{"btn-sm":!0,disabled:["edit","delete"].includes(o.name)&&!t.currentValue}},on:{click:function(e){return t.callMethodByName(o.method_name,0)}}},[e("span",{staticClass:"dropdown-item-icon me-2"},[e("fa",{attrs:{icon:o.icon}})],1),t._v(t._s(t.$t("ord").persons.form_group.action_buttons[o.name])+"\n      ")])})],2)],1),t._v(" "),e("b-modal",{ref:"edit-modal",attrs:{centered:"","no-fade":"","no-close-on-backdrop":"","hide-footer":"","header-class":"border-0 bg-primary text-white"},on:{hidden:function(e){t.editedItemId=-1}},scopedSlots:t._u([{key:"modal-header",fn:function(){return[e("FormModalHeader",{attrs:{title:t.editedItemId?t.$t("ord").persons.form_group.edit_title:t.$t("ord").persons.form_group.create_title},on:{"close-form":t.closeForm}})]},proxy:!0}])},[t._v(" "),t.editedItemId>=0?e("Form",{attrs:{id:t.editedItemId,"is-in-popup":!0},on:{"close-form":t.closeForm}}):t._e()],1)],1)},[],!1,null,null,null).exports,F=o(84);function j(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return O(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?O(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t}
1,e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function O(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function $(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function L(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?$(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):$(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var R={mixins:[k.a,x.a],components:{FormGroupSelect:c.a,FormInput:l.a,FormGroupInput:d.a,FormCheckboxButtons:m.a,FormGroupRadioButtons:h.a,FormDate:_.a,FormGroupORDPerson:A,FormFooterButtons:F.a},props:{id:{type:Number,default:0},isInPopup:{type:Boolean,default:!1}},data:function(){return{contracts:[],persons:[],selfPerson:null}},beforeCreate:function(){this.$store.dispatch("ord/contracts/form/resetForm")},mounted:function(){var t=this;this.$nextTick(function(){t.loadItemFormData("/ord/contracts/"+t.id+"/edit",function(e){e&&e.data&&(t.$store.dispatch("ord/contracts/form/setForm",e.data),t.contracts=e.data.contracts,t.persons=e.data.persons,t.selfPerson=e.data.self_person)})})},computed:L(L({},Object(r.c)({formState:function(t){return t.ord.contracts.form}})),{},{typesComputed:function(){var t=this;return[{id:0,value:this.$t("ord").contracts.form.type_placeholder}].concat(this.$t("ord").contracts.form.types.map(function(e){return L(L({},e),{},{disabled:4===e.id&&!t.contracts.length})}))},subjectTypesComputed:function(){return[{id:0,value:this.$t("ord").contracts.form.subject_type_placeholder}].concat(this.$t("ord").contracts.form.subject_types)},actionTypesComputed:function(){return[{id:0,value:this.$t("ord").contracts.form.action_type_placeholder}].concat(this.$t("ord").contracts.form.action_types)},personsComputed:function(){var t=[];return this.selfPerson&&this.persons.length&&(t=t.concat(this.persons.map(function(t){var e=[];return t.phone&&e.push(t.phone),t.inn&&e.push("ИНН: "+t.inn),{id:t.id,value:t.name+" ("+e.join(", ")+")"}}))),t},contractsComputed:function(){return[{id:0,value:this.$t("ord").contracts.form.parent_contract_placeholder}].concat(this.contracts.map(function(t){return{id:t.id,value:t.name||(3===t.type?"Самореклама":"#"+t.serial_number+" ("+t.contract_price+" руб.)")}}))},clientsComputed:function(){return[{id:0,value:this.$t("ord").contracts.form.client_placeholder}].concat(this.personsComputed)},contractorsComputed:function(){return[{id:0,value:this.$t("ord").contracts.form.contractor_placeholder}].concat(this.personsComputed)},flagsTypesComputed:function(){var t=this;return this.$t("ord").contracts.form.flags_types.map(function(e){return L(L({},e),{},{disabled:3===e.id&&2!==t.formState.type})})},postPriceModeTip:function(){if(3!==this.formState.type){var t,e=j(this.$t("ord").contracts.form.post_price_modes);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.formState.postPriceMode)return o.tip}}catch(t){e.e(t)}finally{e.f()}}return""},postPriceModeConfirmation:function(){if(3!==this.formState.type){var t,e=j(this.$t("ord").contracts.form.post_price_modes);try{for(e.s();!(t=e.n()).done;){var o=t.value;if(o.id===this.formState.postPriceMode)return o.confirmation}}catch(t){e.e(t)}finally{e.f()}}return""}}),watch:{"formState.type":function(t){2!==t&&this.updateStateByField("flags",this.formState.flags.split(",").filter(function(t){return 3!==Number(t)}).join(","))}},methods:{updateStateByField:function(t,e){this.$store.commit("ord/contracts/form/"+t,e)},deleteForm:function(){var t=this;this.deleteItem("/ord/contracts/"+this.id,null,"Удалить этот договор?",function(){t.$emit("close-form",!0)})},saveForm:function(){var t=this,data=this.getFormData();data&&(this.id?this.updateItem("/ord/contracts/"+this.id,data,"Договор успешно сохранен.",function(e){t.$emit("close-form",!0,t.id,e.data.contracts)}):this.createItem("/ord/contracts",data,"Договор успешно создан.",function(e){t.isInPopup?t.$emit("close-form",!0,e.data.id,e.data.contracts):t.$emit("reset-form")}))},getFormData:function(){return this.formState.type?!this.formState.serialNumber&&[1,4].includes(this.formState.type)?(this.bvToast("warning",this.$t("ord").contracts.form.serial_number_placeholder),this.$refs["serial_number_"+this.id].focus(),null):this.formState.parentContractId||4!==this.formState.type?this.formState.subjectType?this.formState.actionType||2!==this.formState.type?!this.formState.clientPersonId&&[1,5].includes(this.formState.type)?(this.bvToast("warning",this.$t("ord").contracts.form.client_placeholder),null):3===this.formState.type||this.formState.contractDate?this.camelObjectToSnake(this.formState):(this.bvToast("warning",this.$t("ord").contracts.form.contract_date_confirmation),null):(this.bvToast("warning",this.$t("ord").contracts.form.action_type_placeholder),null):(this.bvToast("warning",this.$t("ord").contracts.form.subject_type_placeholder),null):(this.bvToast("warning",this.$t("ord").contracts.form.parent_contract_placeholder),null):(this.bvToast("warning",this.$t("ord").contracts.form.type_placeholder),null)}}},B=Object(I.a)(R,function(){var t=this,e=t._self._c;return e("form",{staticClass:"mx-auto form-wrapper",attrs:{autocomplete:"off"}}
1,[t.selfPerson?[e("FormGroupInput",{ref:"name_"+t.id,attrs:{value:t.formState.name,id:"name_"+t.id,label:t.$t("ord").contracts.form.name,"label-tip":t.$t("ord").contracts.form.name_tip,placeholder:t.$t("ord").contracts.form.name_placeholder},on:{input:function(e){return t.updateStateByField("name",e)}}}),t._v(" "),e("FormGroupSelect",{attrs:{label:t.$t("ord").contracts.form.type,name:"type",items:t.typesComputed,value:t.formState.type,disabled:!!t.id},on:{change:function(e){return t.updateStateByField("type",e)}}}),t._v(" "),t.formState.type?[[1,4].includes(t.formState.type)?e("FormGroupInput",{ref:"serial_number_"+t.id,attrs:{value:t.formState.serialNumber,id:"serial_number_"+t.id,label:t.$t("ord").contracts.form.serial_number,placeholder:t.$t("ord").contracts.form.serial_number_placeholder},on:{input:function(e){return t.updateStateByField("serialNumber",e)}}}):t._e(),t._v(" "),4===t.formState.type?e("FormGroupSelect",{attrs:{label:t.$t("ord").contracts.form.parent_contract,name:"parent_contract",items:t.contractsComputed,"no-items-text":t.$t("ord").contracts.form.no_parent_contracts,value:t.formState.parentContractId},on:{change:function(e){return t.updateStateByField("parentContractId",e)}}}):t._e(),t._v(" "),2===t.formState.type?e("FormGroupSelect",{attrs:{label:t.$t("ord").contracts.form.action_type,name:"action_type",items:t.actionTypesComputed,value:t.formState.actionType},on:{change:function(e){return t.updateStateByField("actionType",e)}}}):t._e(),t._v(" "),[1,5].includes(t.formState.type)?e("FormGroupORDPerson",{attrs:{value:t.formState.clientPersonId,persons:t.persons,disabled:!t.selfPerson},on:{change:function(e){return t.updateStateByField("clientPersonId",e)},"update-persons":function(e){t.persons=e}}}):t._e(),t._v(" "),e("FormGroupInput",{ref:"kktu_code_"+t.id,attrs:{value:t.formState.kktuCode,id:"kktu_code_"+t.id,label:t.$t("ord").contracts.form.kktu_code,"label-tip":t.$t("ord").contracts.form.kktu_code_tip,placeholder:t.$t("ord").contracts.form.kktu_code_placeholder},on:{input:function(e){return t.updateStateByField("kktuCode",e)}}}),t._v(" "),3!==t.formState.type?e("div",{staticClass:"mb-3"},[e("label",{staticClass:"form-label"},[t._v("\n            "+t._s(t.$t("ord").contracts.form.contract_date)+"\n          ")]),t._v(" "),e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col-6"},[e("FormDate",{attrs:{date:t.formState.contractDate,"is-show-clear-btn":!0,placeholder:t.$t("ord").contracts.form.contract_date_placeholder,"input-width":0},on:{change:function(e){return t.updateStateByField("contractDate",e)}}})],1)])]):t._e(),t._v(" "),[1,4].includes(t.formState.type)?e("FormGroupInput",{ref:"contract_price_"+t.id,attrs:{value:t.formState.contractPrice,id:"contract_price_"+t.id,"input-class":"input-for-numbers",label:t.$t("ord").contracts.form.contract_price,"label-postfix":"руб."},on:{input:function(e){return t.updateStateByField("contractPrice",e)}}}):t._e(),t._v(" "),3!==t.formState.type?[e("FormGroupRadioButtons",{attrs:{value:t.formState.postPriceMode,items:t.$t("ord").contracts.form.post_price_modes,name:"post_price_mode",label:t.$t("ord").contracts.form.post_price_mode,"main-class":"mb-2"},on:{change:function(e){return t.updateStateByField("postPriceMode",e)}}}),t._v(" "),e("div",{staticClass:"small bg-light rounded-2 p-3 mb-2"},[t._v("\n            "+t._s(t.postPriceModeTip)+"\n          ")]),t._v(" "),e("div",{staticClass:"mb-3 d-flex align-items-center"},[e("FormInput",{ref:"post_price_"+t.id,attrs:{value:t.formState.postPrice,id:"post_price_"+t.id,"input-class":"input-for-numbers"},on:{input:function(e){return t.updateStateByField("postPrice",e)}}}),t._v(" "),e("div",{staticClass:"ms-2 text-secondary"},[t._v("\n              руб.\n            ")])],1)]:t._e()]:t._e(),t._v(" "),e("FormFooterButtons",{attrs:{id:t.id,disabled:t.isLoading||!t.formState.type,"is-in-popup":t.isInPopup},on:{"delete-item":t.deleteForm,"save-item":t.saveForm}})]:e("div",{staticClass:"p-3 bg-light rounded-3 form-text-tip"},[t._v("\n      Сначала нужно указать данные о "),e("nuxt-link",{attrs:{to:t.localePath("/ord")}},[t._v("вашем собственном")]),t._v(" контрагенте.\n    ")],1)],2)},[],!1,null,null,null);e.a=B.exports},function(t,e,o){"use strict";o(15),o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=(o(66),o(45),o(30)),c=o(46),l=o(111),d=o(47),m=o(56),h=o(411),_=o.n(h),f=(o(618),{components:{RangeSlider:_.a},model:{prop:"value",event:"change"},props:["label","name","value","disabled"],computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("change",t)}}}}),v=o(5),y=Object(v.a)(f,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3"},[e("label",{staticClass:"d-block form-label"},[t._v(t._s(t.label))]),t._v(" "),e("div",{staticClass:"custom-range-slider"},[e("range-slider",{attrs:{min:"1",max:"100",step:"1"},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}})],1)])},[],!1,null,null,null).exports,k=o(84),x=o(286),w=o.n(x);function C(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function S(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?C(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var T={mixins:[o(60).a],components:{watermarksBg:w.a,FormGroupInput:c.a,FormGroupFile:l.a,FormGroupRadioButtons:d.a,FormGroupSelect:m.a,FormGroupRangeSlider:y,FormFooterButtons:k.a},props:{id:{type:Number,default:0},isInPopup:{type:Boolean,default:!1}},data:function(){return{watermarksBg:w.a,watermarkSrc:""}},beforeCreate:function(){this.$store.dispatch("settings/watermarks/form/resetForm")},mounted:function(){var t=this;this.$nextTick(function(){t.loadItemFormData("/watermarks/"+t.id+"/edit",function(e){e&&e.data&&t.$store.dispatch("settings/watermarks/form/setForm",e.data)})})},computed:S(S({},Object(r.c)({formState:function(t){return t.settings.watermarks.form}})),{},{watermarkStyle:function(){if(this.formState.file){var t=this.$refs["watermark-background"],e=t.clientWidth,o=t.clientHeight,n=this.formState.file.width,r=this.formState.file.height;if(n>r){var c=100*this.formState.file.width/e,l=n*this.formState.size/100/(c/100);r=r*l/n,n=l}else{var d=100*this.formState.file.height/o,m=r*this.formState.size/100/(d/100);n=n*m/r,r=m}var h=this.getWatermarkCoordinates(e,o,n,r);return{opacity:(100-this.formState.opacity)/100,width:n+"px",height:r+"px",top:h.top,bottom:h.bottom,left:h.left,right:h.right}}return null}}),watch:{"formState.file":function(t){var e=this;t?this.getPhotoFromUrl(this.yandexWatermarksUrl+this.formState.file.file_path+this.formState.file.name,function(t){e.watermarkSrc=t},"ru"):this.watermarkSrc=""}},methods:{updateStateByField:function(t,e){this.$store.commit("settings/watermarks/form/"+t,e)},getWatermarkCoordinates:function(t,e,o,n){var r=1===this.formState.space?10:0,c=null,l=null,d=null,m=null;switch(this.formState.position){case 1:c=e/2-n/2+"px",d=t/2-o/2+"px";break;case 2:c=r+"px",d=t/2-o/2+"px";break;case 3:l=r+"px",d=t/2-o/2+"px";break;case 4:c=r+"px",m=r+"px";break;case 5:l=r+"px",m=r+"px";break;case 6:c=r+"px",d=r+"px";break;case 7:l=r+"px",d=r+"px"}return{top:c,bottom:l,left:d,right:m}},deleteForm:function(){var t=this;this.deleteItem("/watermarks/"+this.id,null,this.$t("watermarks").delete_confirmation,function(e){t.$emit("close-form",!0,0,e.data.watermarks)})},saveForm:function(){var t=this,data=this.getFormData();data&&(this.id?this.updateItem("/watermarks/"+this.id,data,this.$t("watermarks").form.prompts.saved,function(e){t.$emit("close-form",!0,t.id,e.data.watermarks)}):this.createItem("/watermarks",data,this.$t("watermarks").form.prompts.created,function(e){t.isInPopup?t.$emit("close-form",!0,e.data.id,e.data.watermarks):t.$emit("reset-form")}))},getFormData:function(){var data=this.getDataFromState(this.formState);return data.name.trim().length?data.file?data:(this.bvToast("warning",this.$t("watermarks").form.prompts.set_file_confirmation),null):(this.bvToast("warning",this.$t("watermarks").form.prompts.set_name_confirmation),this.focusInput("name-"+this.id),null)}}},P=Object(v.a)(T,function(){var t=this,e=t._self._c;return e("form",{staticClass:"mx-auto form-wrapper",attrs:{autocomplete:"off"}},[e("FormGroupInput",{ref:"name-"+t.id,attrs:{value:t.formState.name,id:"name-"+t.id,label:t.$t("watermarks").form.name,placeholder:t.$t("watermarks").form.name_placeholder},on:{input:function(e){return t.updateStateByField("name",e)}}}),t._v(" "),e("div",{ref:"watermark-background",staticClass:"mb-3 watermark-image-wrapper",style:{backgroundImage:"url("+t.watermarksBg+")"}},[t.watermarkSrc?e("img",{style:t.watermarkStyle,attrs:{src:t.watermarkSrc,alt:""}}):t._e()]),t._v(" "),e("FormGroupFile",{staticClass:"mb-3",attrs:{value:t.formState.file,label:t.$t("watermarks").form.file,"cloud-path":t.yandexWatermarksUrl,"upload-url":"/files/watermarks/upload"},on:{change:function(e){return t.updateStateByField("file",e)}}}),t._v(" "),e("FormGroupRadioButtons",{attrs:{value:t.formState.space,items:t.$t("watermarks").form.spaces,name:"space",label:t.$t("watermarks").form.space},on:{change:function(e){return t.updateStateByField("space",e)}}}),t._v(" "),e("FormGroupSelect",{attrs:{value:t.formState.position,items:t.$t("watermarks").form.positions,name:"position",label:t.$t("watermarks").form.position},on:{change:function(e){return t.updateStateByField("position",e)}}}),t._v(" "),e("FormGroupRangeSlider",{attrs:{value:t.formState.opacity,label:t.$t("watermarks").form.opacity},on:{change:function(e){return t.updateStateByField("opacity",e)}}}),t._v(" "),e("FormGroupRangeSlider",{attrs:{value:t.formState.size,label:t.$t("watermarks").form.size},on:{change:function(e){return t.updateStateByField("size",e)}}}),t._v(" "),e("FormFooterButtons",{attrs:{id:t.id,disabled:t.isLoading,"is-in-popup":t.isInPopup},on:{"delete-item":t.deleteForm,"save-item":t.saveForm}})],1)},[],!1,null,null,null);e.a=P.exports},function(t,e,o){"use strict";o(4),o(15),o(1),o(6),o(9),o(10),o(8),o(7);var n=o(0),r=(o(23),o(66),o(30)),c=o(56),l=o(46),d=o(109),m=o(84);function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function _(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?h(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var f={mixins:[o(60).a],components:{FormGroupSelect:c.a,FormGroupInput:l.a,FormCheckboxButtons:d.a,FormFooterButtons:m.a},props:{id:{type:Number,default:0},isInPopup:{type:Boolean,default:!1}},data:function(){return{token:""}},beforeCreate:function(){this.$store.dispatch("ord/persons/form/resetForm")},mounted:function(){var t=this;this.$nextTick(function(){t.loadItemFormData("/ord/persons/"+t.id+"/edit",function(e){e&&e.data&&(t.$store.dispatch("ord/persons/form/setForm",e.data),t.token=e.data.token)})})},computed:_(_({},Object(r.c)({formState:function(t){return t.ord.persons.form}})),{},{typesComputed:function(){return[{id:0,value:this.$t("ord").my.form.type_placeholder}].concat(this.$t("ord").my.form.types)},nameLabel:function(){return 2===this.formState.type?this.$t("ord").my.form.name:this.$t("ord").my.form.fio},namePlaceholder:function(){return 2===this.formState.type?this.$t("ord").my.form.name_placeholder:this.$t("ord").my.form.fio_placeholder}}),methods:{updateStateByField:function(t,e){this.$store.commit("ord/persons/form/"+t,e)},deleteForm:function(){var t=this;this.deleteItem("/ord/persons/"+this.id,null,"Удалить этого контрагента?",function(){t.$emit("close-form",!0)})},saveForm:function(){var t=this,data=this.getFormData();data&&(this.id?this.updateItem("/ord/persons/"+this.id,data,"Контрагент успешно сохранен.",function(e){t.$emit("close-form",!0,t.id,e.data.persons)}):this.createItem("/ord/persons",data,"Контрагент успешно создан.",function(e){t.isInPopup?t.$emit("close-form",!0,e.data.id,e.data.persons):t.$emit("reset-form")}))},getFormData:function(){return this.formState.name?this.formState.phone||this.formState.inn?this.formState.roles?this.camelObjectToSnake(this.formState):(this.bvToast("warning",this.$t("ord").my.form.roles_confirmation),null):(this.bvToast("warning",this.$t("ord").my.form.phone_or_inn_confirmation),null):(2===this.formState.type?this.bvToast("warning",this.$t("ord").my.form.name_placeholder):this.bvToast("warning",this.$t("ord").my.form.fio_placeholder),this.$refs["name_"+this.id].focus(),null)}}},v=o(5),component=Object(v.a)(f,function(){var t=this,e=t._self._c;return e("form",{staticClass:"mx-auto form-wrapper",attrs:{autocomplete:"off"}},[t.token?[e("FormGroupSelect",{attrs:{label:t.$t("ord").my.form.type,name:"type",items:t.typesComputed,value:t.formState.type},on:{change:function(e){return t.updateStateByField("type",e)}}}),t._v(" "),t.formState.type?[e("FormGroupInput",{ref:"name_"+t.id,attrs:{value:t.formState.name,id:"name_"+t.id,label:t.nameLabel,placeholder:t.namePlaceholder},on:{input:function(e){return t.updateStateByField("name",e)}}}),t._v(" "),e("FormGroupInput",{ref:"phone_"+t.id,attrs:{value:t.formState.phone,id:"phone_"+t.id,label:t.$t("ord").my.form.phone,placeholder:t.$t("ord").my.form.phone_placeholder},on:{input:function(e){return t.updateStateByField("phone",e)}}}),t._v(" "),e("FormGroupInput",{ref:"inn_"+t.id,attrs:{value:t.formState.inn,id:"inn_"+t.id,label:t.$t("ord").my.form.inn,placeholder:t.$t("ord").my.form.inn_placeholder},on:{input:function(e){return t.updateStateByField("inn",e)}}}),t._v(" "),e("label",{staticClass:"d-block form-label"},[t._v("\n        "+t._s(t.$t("ord").my.form.roles)+"\n      ")]),t._v(" "),e("FormCheckboxButtons",{attrs:{name:"roles",items:t.$t("ord").my.form.role_types.filter(function(t){return 1===t.id}),values:t.formState.roles,"is-rows-view":!0,"disabled-all":!0},on:{change:function(e){return t.updateStateByField("roles",e)}}})]:t._e(),t._v(" "),e("FormFooterButtons",{attrs:{id:t.id,disabled:t.isLoading||!t.formState.type,"is-in-popup":t.isInPopup},on:{"delete-item":t.deleteForm,"save-item":t.saveForm}})]:e("div",{staticClass:"p-3 bg-light rounded-3 form-text-tip"},[t._v("\n    Сначала нужно указать данные о "),e("nuxt-link",{attrs:{to:t.localePath("/ord")}},[t._v("вашем собственном")]),t._v(" контрагенте.\n  ")],1)],2)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(31),o(15),o(48),o(6),o(4),o(9),o(10),o(1),o(7);var n=o(0),r=(o(66),o(8),o(45),o(30)),c=o(67),l=o(305),d=o(46),m=o(47),h=o(99),_=o(124),f=o(163),v=o(160),y=o(165),k=o(162),x=o(161),w=o(166),C=o(167),S=o(84),T=o(12),P=o(89),I=o(73),A=o(60),F=o(119);function j(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function O(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?j(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):j(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var $={mixins:[I.a,A.a,F.a],components:{HelpForm:c.a,Help:l.a,FormGroupInput:d.a,FormGroupRadioButtons:m.a,FormSocialNetworks:h.a,FormSocialPages:_.a,FormGroupWatermark:f.a,PostsCaption:v.a,PostsRewrite:y.a,PostsHashtags:k.a,PostsLinks:x.a,PostsLocation:w.a,OtherSettingsForm:C.a,FormFooterButtons:S.a},props:{id:{type:Number,default:0},isInPopup:{type:Boolean,default:!1},asCopy:{type:Boolean,default:!1}},data:function(){return{socialNetworks:Object(T.cloneDeep)(P.data),socialPagesByAccounts:[],socialAlbumsByPages:[],watermarks:[]}},beforeCreate:function(){this.$store.dispatch("posts/projects/form/resetForm")},mounted:function(){var t=this;this.$nextTick(function(){t.loadItemFormData("/posts/projects/"+t.id+"/edit?as_copy="+(t.asCopy?1:0),function(e){e&&e.data&&(t.$store.dispatch("posts/projects/form/setForm",e.data),t.socialPagesByAccounts=e.data.social_pages_by_accounts,t.socialAlbumsByPages=e.data.social_albums_by_pages,t.watermarks=e.data.watermarks,t.initSocialNetworksDisabledState(),t.initSocialNetworksCheckedState())},function(){t.id&&t.$emit("close-form",!1)})})},computed:O(O({},Object(r.c)({formState:function(t){return t.posts.projects.form}})),{},{idComputed:function(){return this.asCopy?0:this.id},postsCaption:function(){return this.formState.postsCaption},postsHashtags:function(){return{hashtags:this.formState.postsHashtags.hashtags,max_amount:this.formState.postsHashtags.maxAmount,selection_type:this.formState.postsHashtags.selectionType,space_type:this.formState.postsHashtags.spaceType}},postsLinks:function(){return{links:this.formState.postsLinks.links,max_amount:this.formState.postsLinks.maxAmount,selection_type:this.formState.postsLinks.selectionType,space_type:this.formState.postsLinks.spaceType}},postsRewrite:function(){return{rewrite_state:this.formState.postsRewrite.rewriteState,rewrite_command:this.formState.postsRewrite.rewriteCommand,no_posts_if_no_rewrite:this.formState.postsRewrite.noPostsIfNoRewrite,rewrite_for_every_page:this.formState.postsRewrite.rewriteForEveryPage,text_model_id:this.formState.postsRewrite.textModelId,text_model_key:this.formState.postsRewrite.textModelKey}},postsLocation:function(){return this.formState.postsLocation},postsLocationVk:function(){return this.formState.postsLocationVk}}),methods:{updateStateByField:function(t,e){this.$store.commit("posts/projects/form/"+t,e)},deleteForm:function(){var t=this;this.deleteItem("/posts/projects/"+this.id,null,this.$t("posts").projects.delete_confirmation,function(e){t.$emit("close-form",!0,0,e.data.projects)})},saveForm:function(){var t=this,data=this.getFormData();data&&(this.id&&!this.asCopy?this.updateItem("/posts/projects/"+this.id,data,this.$t("posts").projects.form.prompts.saved,function(e){t.$emit("close-form",!0,t.id,e.data.projects)}):this.createItem("/posts/projects",data,this.$t("posts").projects.form.prompts.created,function(e){t.isInPopup?t.$emit("close-form",!0,e.data.id,e.data.projects):t.$emit("reset-form")}))},getFormData:function(){var data=this.getDataFromState(this.formState);return data.name.trim().length?(data.posts_caption=this.postsCaption.postsCaption,data.posts_caption_position_type=this.postsCaption.postsCaptionPositionType,data.posts_caption_space_type=this.postsCaption.postsCaptionSpaceType,data.photos_caption=this.postsCaption.photosCaption,data.tg_buttons=this.postsCaption.tgButtons,data.videos_title=this.postsCaption.videosTitle,data.posts_comment=this.postsCaption.postsComment,data.publish_comment_by_account=this.postsCaption.publishCommentByAccount,data.posts_photo=this.postsCaption.postsPhoto,data.posts_photo_always=this.postsCaption.postsPhotoAlways,data.posts_hashtags=this.postsHashtags,data.posts_links=this.postsLinks,data.posts_rewrite=this.postsRewrite,data.posts_location=this.postsLocation,data.posts_location_vk=this.postsLocationVk,data.selected_pages_by_source_ids=this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedPagesBySourceIds),data.selected_albums_by_source_ids=this.getSelectedPagesBySourceIds(this.socialNetworks,this.formState.selectedAlbumsBySourceIds),Object.keys(data.selected_pages_by_source_ids).length||Object.keys(data.selected_albums_by_source_ids).length?data:(this.bvToast("warning",this.$t("posts").projects.form.prompts.set_networks_confirmation),null)):(this.bvToast("warning",this.$t("posts").projects.form.prompts.set_name_confirmation),this.focusInput("name-"+this.id
1),null)}}},L=o(5),component=Object(L.a)($,function(){var t=this,e=t._self._c;return e("form",{staticClass:"mx-auto form-wrapper",attrs:{autocomplete:"off"}},[e("FormGroupInput",{ref:"name-"+t.id,attrs:{value:t.formState.name,id:"name-"+t.id,label:t.$t("posts").projects.form.name,placeholder:t.$t("posts").projects.form.name_placeholder},on:{input:function(e){return t.updateStateByField("name",e)}}}),t._v(" "),e("FormSocialNetworks",{attrs:{"social-networks":t.socialNetworksComputed,label:t.$t("posts").projects.form.networks,"settings-disabled":!0,"id-prefix":"ppf"},on:{"update-networks":t.updateNetworks}}),t._v(" "),t._l(t.socialNetworks,function(o,n){return o.checked&&!t.unusedSourcesIds.includes(parseInt(o.source_id))?e("FormSocialPages",{key:n,ref:"pages-by-source-id-"+o.source_id,refInFor:!0,attrs:{network:o,"social-pages-by-accounts":t.socialPagesByAccounts,"social-albums-by-pages":t.socialAlbumsByPages,"selected-pages-by-source-ids":t.formState.selectedPagesBySourceIds,"selected-albums-by-source-ids":t.formState.selectedAlbumsBySourceIds},on:{"update-selected-pages-by-source-ids":function(e){return t.updateStateByField("selectedPagesBySourceIds",e)},"update-selected-albums-by-source-ids":function(e){return t.updateStateByField("selectedAlbumsBySourceIds",e)},"update-social-albums-by-pages":function(e){t.socialAlbumsByPages=e}}}):t._e()}),t._v(" "),e("div",{staticClass:"rounded-2 border border-secondary border-1 px-3 pt-3"},[e("FormGroupWatermark",{attrs:{value:t.formState.watermarkId,watermarks:t.watermarks},on:{change:function(e){return t.updateStateByField("watermarkId",e)},"update-watermarks":function(e){t.watermarks=e}}}),t._v(" "),e("PostsCaption",{attrs:{placeholder:t.$t("posts").projects.form.posts_caption_placeholder,"photos-caption-placeholder":t.$t("posts").projects.form.posts_caption_photos_placeholder,"videos-title-placeholder":t.$t("posts").projects.form.posts_videos_title_placeholder,"comment-placeholder":t.$t("posts").projects.form.posts_caption_comment_placeholder,"objects-type":"projects","is-videos-enabled":!0}}),t._v(" "),e("PostsHashtags",{attrs:{"objects-type":"projects"}}),t._v(" "),e("PostsLinks",{attrs:{"objects-type":"projects"}}),t._v(" "),e("PostsRewrite",{attrs:{"objects-type":"projects"}}),t._v(" "),1===t.config.plan_type?e("PostsLocation",{attrs:{"objects-type":"projects","search-api":"/search/vkontakte/locations","posts-location-store":"postsLocationVk","form-label":t.$t("form").posts_location.label_vk,"form-title":t.$t("form").posts_location.title_vk}}):t._e(),t._v(" "),e("PostsLocation",{attrs:{"objects-type":"projects","search-api":"/search/instagram/locations","posts-location-store":"postsLocation","form-label":t.$t("form").posts_location.label,"form-title":t.$t("form").posts_location.title}}),t._v(" "),e("OtherSettingsForm",{attrs:{"objects-type":"projects","social-networks":t.socialNetworks}})],1),t._v(" "),e("FormFooterButtons",{attrs:{id:t.idComputed,disabled:t.isLoading,"is-in-popup":t.isInPopup},on:{"delete-item":t.deleteForm,"save-item":t.saveForm}},[t.id?e("HelpForm",{attrs:{title:t.$t("help").instructions,"blog-url":"https://blog.hooppy.ru/proekty/","help-id":"14","is-in-form":!0}},[e("Help")],1):t._e()],1)],2)},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(34),o(15),o(31),o(77),o(66),o(48);var n=o(12),r={model:{prop:"value",event:"change"},props:{value:{type:Array,default:function(){return[]}},label:String,tip:String,addButtonLabel:String,notePlaceholder:String,formGroupClass:{type:String,default:"mb-3"},maxItems:{type:Number,default:3},uploadUrl:{type:String,default:"/files/media/upload"},fileTypes:{type:Array,default:function(){return["image/jpeg","image/png"]}}},data:function(){return{fileInputKey:0,uploading:!1,uploadingProgress:0,uploadingDone:!1}},computed:{items:function(){var t;return null!==(t=this.value)&&void 0!==t?t:[]}},methods:{getItemKey:function(t,e){return t.photo?t.photo.file_path+t.photo.name:e},getPhotoSrc:function(t){var e="";return t&&t.file_path&&this.getPhotoFromUrl(this.yandexPhotosUrl+t.file_path+t.name,function(t){e=t},"ru"),e},emitItems:function(t){this.$emit("change",t)},updateNote:function(t,e){var o=Object(n.cloneDeep)(this.items);o[t].note=e,this.emitItems(o)},deleteItem:function(t){var e=Object(n.cloneDeep)(this.items);e.splice(t,1),this.emitItems(e)},selectFile:function(){this.$refs["file-input"].click()},resetUploading:function(){this.uploadingProgress=0,this.uploadingDone=!1,this.uploading=!1,this.fileInputKey++},uploadFile:function(){var t=this,e=this.$refs["file-input"].files[0];if(e instanceof File&&!(this.items.length>=this.maxItems)){if(!this.fileTypes.includes(e.type))return this.bvToast("warning",this.$t("form").reference_photos.wrong_type),void this.fileInputKey++;var o=new FormData;o.append("file",e),o.append("file_id",this.uniqueID()),this.uploading=!0,this.$axios.post(this.uploadUrl,o,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){t.uploadingProgress=Math.round(e.loaded/e.total*100),e.loaded===e.total&&(t.uploadingDone=!0)}}).then(function(e){var o=e.data.photo;if(o){var r=Object(n.cloneDeep)(t.items);r.push({photo:o,note:""}),t.emitItems(r)}t.resetUploading()}).catch(function(){t.bvToast("danger",t.$t("form").reference_photos.upload_error),t.resetUploading()})}else this.fileInputKey++}}},c=(o(621),o(5)),component=Object(c.a)(r,function(){var t=this,e=t._self._c;return e("div",{class:t.formGroupClass},[t.label?e("label",{staticClass:"d-flex align-items-center form-label",class:{"mb-1":t.tip,"mb-2":!t.tip}},[e("span",[t._v(t._s(t.label))]),t._v(" "),e("span",{staticClass:"ms-2 text-secondary small"},[t._v(t._s(t.items.length)+"/"+t._s(t.maxItems))])]):t._e(),t._v(" "),t.tip?e("div",{staticClass:"small text-secondary mb-2"},[t._v("\n    "+t._s(t.tip)+"\n  ")]):t._e(),t._v(" "),t._l(t.items,function(o,n){return e("div",{key:t.getItemKey(o,n),staticClass:"d-flex align-items-start border rounded-2 p-2 mb-2"},[e("a",{staticClass:"flex-shrink-0 me-2 reference-photo-preview",attrs:{href:t.getPhotoSrc(o.photo),target:"_blank"}},[e("img",{staticClass:"rounded-1",attrs:{src:t.getPhotoSrc(o.photo),alt:o.photo.name}})]),t._v(" "),e("div",{staticClass:"flex-grow-1"},[e("textarea-autosize",{staticClass:"form-control form-control-sm reference-photo-note",attrs:{placeholder:t.notePlaceholder,value:o.note,"min-height":72,"max-height":300},on:{input:function(e){return t.updateNote(n,e)}}})],1),t._v(" "),e("button",{staticClass:"btn btn-outline-secondary btn-sm ms-2 flex-shrink-0",attrs:{type:"button"},on:{click:function(e){return t.deleteItem(n)}}},[e("fa",{attrs:{icon:["fas","times"]}})],1)])}),t._v(" "),e("input",{key:t.fileInputKey,ref:"file-input",staticClass:"d-none",attrs:{type:"file",accept:t.fileTypes.join(",")},on:{change:t.uploadFile}}),t._v(" "),t.uploading?e("div",{staticClass:"btn btn-light btn-sm disabled"},[t.uploadingDone?e("span",[t._v(t._s(t.$t("form").reference_photos.saving))]):e("span",[t._v(t._s(t.$t("form").reference_photos.uploading)+" "+t._s(t.uploadingProgress)+"%")])]):t.items.length<t.maxItems?e("button",{staticClass:"btn btn-light btn-sm",attrs:{type:"button"},on:{click:t.selectFile}},[e("fa",{staticClass:"me-2",attrs:{icon:["fas","upload"]}}),t._v(t._s(t.addButtonLabel)+"\n  ")],1):t._e()],2)},[],!1,null,"805078da",null);e.a=component.exports},function(t,e,o){"use strict";var n=o(5),component=Object(n.a)({},function(){var t=this;return(0,t._self._c)("div",["ru"===t.$i18n.locale?[t._m(0),t._v(" "),t._m(1)]:t._e(),t._v(" "),"en"===t.$i18n.locale?[t._m(2),t._v(" "),t._m(3)]:t._e()],2)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Что такое проект?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Проекты нужны для того, чтобы объединять множество различных соц. страниц, групп или сообществ в единый набор и затем указ
1ывать его при создании постов.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Зачем мне это нужно?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Это позволяет экономить время при создании постов, если у вас очень много страниц для публикации постов схожей тематики.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("What is a project?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Projects are used to combine multiple different social pages, groups, or communities into a single set and then specify it when creating posts.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Why do I need this?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        This allows you to save time when creating posts if you have a lot of pages for publishing posts on similar topics.\n      ")])])}],!1,null,null,null);e.a=component.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){var content=o(546);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(113).default)("8e1806be",content,!0,{sourceMap:!1})},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){var content=o(622);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(113).default)("ab7e53b0",content,!0,{sourceMap:!1})},function(t,e,o){"use strict";o(40);e.a={data:function(){return{notificationsHoverTimout:null}},methods:{notificationItemHoverIn:function(t,e,o){var n=this;e||(this.notificationsHoverTimout=setTimeout(function(){n.updateNotificationAsViewed(t,o)},2e3))},notificationItemHoverOut:function(){clearTimeout(this.notificationsHoverTimout)},updateNotificationAsViewed:function(t,e){this.$axios.put("/notifications/"+t+"/is_viewed",{is_viewed:1}).then(function(){e&&"function"==typeof e&&e(t)})}}}},,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){"use strict";var n={computed:{tgLink:function(){return"ru"===this.$i18n.locale?'<a href="обычная ссылка">название ссылки</a>':'<a href="regular link">link name</a>'}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return e("div",["ru"===t.$i18n.locale?[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6)]:t._e(),t._v(" "),"en"===t.$i18n.locale?[t._m(7),t._v(" "),t._m(8),t._v(" "),e("div",{staticClass:"mx-n3 p-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("How to specify named links?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("For Telegram")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("[link address|link name]")]),t._v(" "),e("li",[t._v(t._s(t.tgLink))])])])])]),t._v(" "),t._m(9)]:t._e()],2)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Как публиковать Premium-эмодзи в Telegram?")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3 text-tip-14"},[e("li",[t._v("У вас должен быть "),e("b",[t._v("Premium")]),t._v(" аккаунт Telegram")]),t._v(" "),e("li",[t._v('Подключите этот аккаунт в разделе "'),e("b",[t._v("Мои аккаунты")]),t._v('"')]),t._v(" "),e("li",[t._v("Сделайте его "),e("b",[t._v("родительским")]),t._v(" для нужного канала ТГ")]),t._v(" "),e("li",[t._v("В тексте поста укажите "),e("b",[t._v("код")]),t._v(" от Premium-эмодзи")]),t._v(" "),e("li",[t._v('При создании поста ставьте галочку "'),e("b",[t._v("Публиковать от имени аккаунта")]),t._v('"')])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Пример текста:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[t._v("\n          Привет! 5366316836101038579"),e("br"),t._v("\n          Сегодня моей дочери исполнилось 5307907239380528763 года!\n        ")]),e("br"),e("br"),t._v("\n        где 5366316836101038579 = 😄, а 5307907239380528763 = 2️⃣, только Premium.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 mt-3 border-top"},[e("div",{staticClass:"p-3 pb-0"},[e("b",[t._v("Откуда взять код Premium-эмодзи для Telegram?")]),t._v(" "),e("ul",{staticClass:"mt-3 mb-0 ps-3 text-tip-14"},[e("li",[t._v("В любом из ваших каналов ТГ "),e("b",[t._v("вручную")]),t._v(" создайте сообщение с нужными Premium-эмодзи")]),t._v(" "),e("li",[t._v("Перешлите это сообщение боту "),e("b",[e("a",{attrs:{href:"https://t.me/hooppy_premium_emoji_bot",target:"_blank"}},[t._v("Hooppy Premium Emoji")])])]),t._v(" "),e("li",[t._v("Вы получите список кодов для ваших Premium-эмодзи")]),t._v(" "),e("li",[t._v("Теперь вы сможете указ
1ывать их в текстах для постов в ТГ")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 mt-3 border-top"},[e("div",{staticClass:"p-3 pb-0"},[e("b",[t._v("Как указать товары для Wibes?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          Укажите в тексте поста запись вида (без пробелов):"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[t._v("\n          art:123456,123457\n          ")]),e("br"),e("br"),t._v("\n          где 123456 и 123457 - артикулы товаров."),e("br"),t._v("\n          Из текста они будут вырезаны.\n        ")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 mt-3 border-top"},[e("div",{staticClass:"p-3 pb-0"},[e("b",[t._v("Как указать разный текст для разных соц. сетей?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v('\n          Справа от поля для текста нажмите на кнопку с "'),e("b",[t._v("плюсом")]),t._v('" и выберите соц. сеть, для которой нужно указать отдельный текст.\n        ')])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 mt-3 border-top"},[e("div",{staticClass:"p-3"}
1,[e("b",[t._v("Как указывать динамический текст?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          Вы можете писать динамические тексты, в которых слова или целые фразы будут меняться случайным образом."),e("br"),t._v("\n          Например, так:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[t._v("\n            Всем {привет|здравствуйте|доброго времени суток}!"),e("br"),t._v("\n            Я вас всех {очень{-очень| сильно}|невероятно} люблю!"),e("br"),e("br")]),t._v("\n          Один из итоговых вариантов текста:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[t._v("\n            Всем здравствуйте!"),e("br"),t._v("\n            Я вас всех очень-очень люблю!\n          ")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 border-top"},[e("div",{staticClass:"p-3"}
1,[e("b",[t._v("Как указывать именные ссылки?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для ВКонтакте")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("@id123 (название ссылки)")]),t._v(" "),e("li",[t._v("@club123 (название ссылки)")]),t._v(" "),e("li",[t._v("@public123 (название ссылки)")]),t._v(" "),e("li",[t._v("@username (название ссылки)")]),t._v(" "),e("li",[t._v("[id123|название ссылки]")]),t._v(" "),e("li",[t._v("[club123|название ссылки]")]),t._v(" "),e("li",[t._v("[public123|название ссылки]")]),t._v(" "),e("li",[t._v("[username|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Одноклассников")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("[адрес ссылки|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Max")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("[адрес ссылки|название ссылки]")])])]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[e("b",[t._v("Для Telegram")]),t._v(":\n          "),e("ul",{staticClass:"mt-3 mb-0 ps-3"},[e("li",[t._v("[адрес ссылки|название ссылки]")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 px-3 pt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("Какие еще настройки есть у постов?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v('\n          Справа, под полем для текста, нажмите на кнопку с "'),e("b",[t._v("шестеренкой")]),t._v('".\n          Там вы найдете множество дополнительных настроек для публикации ваших постов.\n        ')])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("How to specify different text for different social networks?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v('\n        To the right of the text field, click on the button with "'),e("b",[t._v("plus")]),t._v('" and select the social network for which you need to specify separate text.\n      ')])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 p-3 mt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("How to specify dynamic text?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n          You can write dynamic texts in which words or entire phrases will change randomly."),e("br"),t._v("\n          For example, like this:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[t._v("\n              Hello {everyone|there|good day}!"),e("br"),t._v("\n              I {really{-really|} much} love you all!"),e("br"),e("br")]),t._v("\n          One of the resulting text options:"),e("br"),e("br"),t._v(" "),e("span",{staticClass:"text-info"},[t._v("\n            Hello there!"),e("br"),t._v("\n            I really much love you all!\n          ")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mx-n3 px-3 pt-3 border-top"},[e("div",{staticClass:"p-3"},[e("b",[t._v("What other settings are available for posts?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v('\n          To the right, below the text field, click on the button with "'),e("b",[t._v("gear")]),t._v('" icon.\n          There you will find many additional settings for publishing your posts.\n        ')])])])}],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(6),o(39),o(68),o(23),o(4),o(120),o(28),o(22),o(77),o(15),o(8),o(1);var n=o(56),r=o(12),c=o(73),l=o(89),d={mixins:[c.a],components:{FormGroupSelect:n.a},props:["objectsType","canAddAlbum"],data:function(){return{socialNetworks:Object(r.cloneDeep)(l.data),sourceId:0,accountId:0,pageId:0,albumId:0,accounts:[],pages:[],albums:[],items:[],prevCursors:[],prevCursor:0,nextCursor:0,hasNext:!1,checkedIds:[],checkedItems:[]}},mounted:function(){localStorage.getItem("posts.my_"+this.objectsType+"_form_state")?this.getAll(JSON.parse(localStorage.getItem("posts.my_"+this.objectsType+"_form_state"))):this.setWatchers()},computed:{hasPrev:function(){return!!this.prevCursors.length},socialNetworksComputed:function(){return[{id:0,value:"Укажите соц. сеть"}].concat(this.socialNetworks.filter(function(t){return 1===t.source_id}).map(function(t){return{id:t.source_id,value:t.name}}))},accountsComputed:function(){return this.accounts.length?[{id:0,value:"Укажите аккаунт"}].concat(this.accounts):[]},pagesComputed:function(){return this.pages.length?[{id:0,value:"Укажите страницу"}].concat(this.pages):[]},albumsComputed:function(){return this.albums.length?[{id:0,value:"Укажите альбом"}].concat(this.albums):[]},noItemsTextForAccounts:function(){return this.sourceId?"Нет ни одного аккаунта":"Сначала укажите соц. сеть"},noItemsTextForPages:function(){return this.accountId?"Нет ни одной страницы":"Сначала укажите аккаунт"},noItemsTextForAlbums:function(){return this.pageId?"Нет ни одного альбома"
1:"Сначала укажите страницу"}},methods:{isPhotoChecked:function(t){return this.checkedIds.indexOf(t)>=0},setWatchers:function(){var t=this;this.$watch("sourceId",function(){t.getAccounts()}),this.$watch("accountId",function(){t.getPages()}),this.$watch("pageId",function(){t.getAlbums()}),this.$watch("albumId",function(){t.getPhotos(!0)})},getAll:function(t){var e=this;this.sendRequest("get","/users/my/photos/json",{params:t},function(o){var data=o.data;e.sourceId=t.source_id,data.social_accounts.length&&(e.accounts=e.buildAccountsValues(data.social_accounts),e.accountId=t.account_id,data.social_pages.length&&(e.pages=e.buildPagesValues(t.source_id,data.social_pages),e.pageId=t.page_id,data.albums.length&&(e.albums=data.albums.map(function(t){return{id:t.id,value:t.title,owner_id:t.owner_id,link:t.link}}),e.setPhotos(data.photos_or_videos)))),e.setWatchers()},function(){e.setWatchers()})},getAccounts:function(){var t=this;this.accountId=0,this.accounts=[],this.pageId=0,this.albumId=0,this.sourceId&&this.sendRequest("get","/users/accounts/json",{params:{source_id:this.sourceId}},function(e){var data=e.data;t.saveState(),t.accounts=t.buildAccountsValues(data.social_accounts)})},getPages:function(){var t=this;this.pageId=0,this.pages=[],this.albumId=0,this.accountId&&this.sendRequest("get","/users/accounts/pages/json",{params:{source_id:this.sourceId,account_id:this.accountId}},function(e){var data=e.data;t.saveState(),t.pages=t.buildPagesValues(t.sourceId,data.social_pages)})},getAlbums:function(){var t=this;this.albumId=0,this.albums=[],this.pageId&&(this.toggleLoading(!0),this.sendRequest("get","/users/accounts/pages/albums/json",{params:{source_id:this.sourceId,account_id:this.accountId,page_id:this.pageId,objects_type:this.objectsType}},function(e){var data=e.data;t.saveState(),t.toggleLoading(!1),t.albums=data.albums.map(function(t){return{id:t.id,value:t.title,owner_id:t.owner_id,link:t.link}}),t.setPhotos(data.photos_or_videos)},function(){t.toggleLoading(!1)}))},getPhotos:function(t){var e=this,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(this.prevCursors=[],this.prevCursor=0,this.nextCursor=0,this.items=[]),this.toggleLoading(!0),this.sendRequest("get","/users/accounts/pages/albums/photos/json",{params:{source_id:this.sourceId,account_id:this.accountId,page_id:this.pageId,album_id:this.albumId?this.albumId:"photos"===this.objectsType?"wall":"",objects_type:this.objectsType,cursor:o?this.nextCursor:this.prevCursors.slice(-1)[0]}},function(t){var data=t.data;e.saveState(),e.toggleLoading(!1),e.setPhotos(data,o)},function(){e.toggleLoading(!1)})},setPhotos:function(data,t){this.items=data.items,t?this.nextCursor&&(this.prevCursors.push(this.prevCursor),this.prevCursor=this.nextCursor):(this.prevCursors.length&&this.prevCursors.splice(-1),this.prevCursors.length?this.prevCursor=this.prevCursors.slice(-1)[0]:this.prevCursor=0),this.nextCursor=data.next_cursor,this.hasNext=!!data.is_has_more},getNext:function(){this.hasNext&&this.getPhotos(!1)},getPrev:function(){this.hasPrev&&this.getPhotos(!1,!1)},saveState:function(){localStorage.setItem("posts.my_"+this.objectsType+"_form_state",JSON.stringify({source_id:this.sourceId,account_id:this.accountId,page_id:this.pageId,objects_type:this.objectsType,album_id:this.albumId}))},checkPhoto:function(t){this.checkedIds.indexOf(t)>=0?(this.checkedIds=this.checkedIds.filter(function(e){return e!==t}),this.checkedItems=this.checkedItems.filter(function(e){return e.id!==t})):(this.checkedIds.push(t),this.checkedItems.push(this.items.find(function(e){return e.id===t})))},apply:function(t){var e=this;t&&this.albumId?this.$emit("add-photos",this.albums.filter(function(t){return t.id===e.albumId}).map(function(t){return t.source_id=e.sourceId,t.account_id=e.accountId,t.page_id=e.pageId,t}),"album"):!t&&this.checkedItems.length&&this.$emit("add-photos",this.checkedItems.map(function(t){return"photos"===e.objectsType?{id:e.uniqueID(),url:t.src,type:"photo",source_id:e.sourceId,text:t.text,source_info:{id:t.id,owner_id:t.owner_id}}:{id:t.id,preview:t.preview,type:"video",owner_id:t.owner_id,source_id:e.sourceId,title:"",description:""}}),"photos"===this.objectsType?"photo":"video")}}},m=d,h=o(5),component=Object(h.a)(m,function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-wrapper wide-form"},[e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col-sm pe-sm-3"},[e("FormGroupSelect",{attrs:{items:t.socialNetworksComputed,label:"Соц. сеть",name:"source_id","no-items-text":"Укажите соц. сеть"},model:{value:t.sourceId,callback:function(e){t.sourceId=e},expression:"sourceId"}})],1),t._v(" "),e("div",{staticClass:"col-sm"},[e("FormGroupSelect",{attrs:{items:t.accountsComputed,label:"Аккаунт",name:"account_id","no-items-text":t.noItemsTextForAccounts},model:{value:t.accountId,callback:function(e){t.accountId=e},expression:"accountId"}})],1)]),t._v(" "),e("div",{staticClass:"row g-0"},[e("div",{staticClass:"col-sm pe-sm-3"},[e("FormGroupSelect",{attrs:{items:t.pagesComputed,label:"Страница",name:"page_id","no-items-text":t.noItemsTextForPages},model:{value:t.pageId,callback:function(e){t.pageId=e},expression:"pageId"}})],1),t._v(" "),e("div",{staticClass:"col-sm"},[e("FormGroupSelect",{attrs:{items:t.albumsComputed,label:"Альбом",name:"album_id","no-items-text":t.noItemsTextForAlbums},model:{value:t.albumId,callback:function(e){t.albumId=e},expression:"albumId"}})],1)]),t._v(" "),e("ul",{staticClass:"p-2 bg-light rounded my-photos-list"},t._l(t.items,function(o,n){return e("li",{key:o.id,staticClass:"row g-0 p-2 bg-white rounded my-photos-item",class:{"mt-1":n,"bg-primary":t.isPhotoChecked(o.id)},on:{click:function(e){return t.checkPhoto(o.id)}}},[e("span",{staticClass:"col-auto d-flex justify-content-center align-items-center item-photo"},[e("img",{staticClass:"rounded",attrs:{src:"photos"===t.objectsType?o.src:o.preview,alt:""}})]),t._v(" "),e("span",{staticClass:"col ps-3 d-flex justify-content-center flex-column item-info"},[e("span",{staticClass:"d-block item-info-text"},[e("b",[e("a",{class:{"text-white":t.isPhotoChecked(o.id)},attrs:{href:o.link,target:"_blank"},on:{click:function(t){t.stopPropagation()}}},[t._v("\n              "+t._s(t.shortText(o.text?o.text:o.title?o.title:o.description))+"\n            ")])])]),t._v(" "),e("span",{staticClass:"d-block small text-secondary mt-2",class:{"text-light":t.isPhotoChecked(o.id)}}
1,[t._v("\n          "+t._s(o.date)+"\n        ")])])])}),0),t._v(" "),e("div",{staticClass:"modal-footer border-0 p-3 mx-n3 mb-n3 mt-3 bg-light d-flex justify-content-between"},[e("div",{staticClass:"m-0 d-flex"},[e("button",{staticClass:"btn btn-light btn-sm me-2",class:{disabled:!t.hasPrev||!t.items.length||t.isLoading},attrs:{type:"button"},on:{click:function(e){return t.getPrev()}}},[t._v("\n        Назад\n      ")]),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm",class:{disabled:!t.hasNext||!t.items.length||t.isLoading},attrs:{type:"button"},on:{click:function(e){return t.getNext()}}},[t._v("\n        Далее\n      ")])]),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[e("div",{staticClass:"small me-3"},[t._v("\n        Выбрано: "),e("b",[t._v(t._s(t.checkedIds.length))])]),t._v(" "),t.canAddAlbum?e("button",{staticClass:"btn btn-primary btn-sm me-2",class:{disabled:!t.albumId},attrs:{type:"button"},on:{click:function(e){return t.apply(!0)}}},[t._v("\n        Добавить альбом\n      ")]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-primary btn-sm",class:{disabled:!t.checkedIds.length},attrs:{type:"button"},on:{click:function(e){return t.apply(!1)}}},[t._v("\n        Добавить "+t._s("photos"===t.objectsType?"фото":"видео")+"\n      ")])])])])},[],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";o(15),o(23),o(31),o(40);var n={props:["photo","uploadingProgress"],data:function(){return{isVideoPreviewReady:!1,fileSrc:"",videoUrl:"",fileUrlByProxy:""}},computed:{updatedDate:function(){return this.photo&&this.photo.updated_date?this.photo.updated_date:""},isUploaded:function(){return!!this.photo.file_path},isFileAsUrl:function(){return!!this.photo.url},isFileAsPlayer:function(){return this.photo.source_id&&1===this.photo.source_id&&(void 0!==this.photo.owner_id||this.photo.source_info)},isFileAsMessage:function(){return this.photo.source_id&&11===this.photo.source_id&&this.photo.message_id},playerLink:function(){return 1===this.photo.source_id?"https://vk.ru/video"+this.photo.owner_id+"_"+this.photo.id:""},messageLink:function(){return 11===this.photo.source_id?"https://t.me/"+this.photo.channel+"/"+this.photo.message_id:""},photoLink:function(){return 1===this.photo.source_id&&this.photo.source_info?"https://vk.ru/photo"+this.photo.source_info.owner_id+"_"+this.photo.source_info.id:""},fileSocialIcon:function(){return 1===this.photo.source_id?["fab","vk"]:11===this.photo.source_id?["fab","telegram"]:[]},fileError:function(){return this.photo.error||""},durationComputed:function(){if(this.photo.duration||this.photo.seconds){var t=this.photo.duration||this.photo.seconds,e=Math.floor(t/3600);t-=3600*e;var o=Math.floor(t/60);return t-=60*o,"".concat(e>9?e:"0"+e,":").concat(o>9?o:"0"+o,":").concat(t>9?t:"0"+t)}return""}},mounted:function(){var t=this;if(this.isFileAsUrl||this.isUploaded||!this.uploadingProgress||"video"!==this.uploadingProgress.type)if(this.isFileAsUrl){var e="photo"===this.photo.type?this.photo.url:this.photo.preview;[3,4,6,7,10,18,19,29].includes(this.photo.source_id)?this.getPhotoFromUrl(e,function(e){t.fileSrc=e}):this.fileSrc=e}else this.isUploaded&&this.setFileUrlByProxy();else this.drawVideoPreview();this.setVideoUrl()},watch:{isUploaded:function(){this.setVideoUrl(),this.setFileUrlByProxy()},updatedDate:function(){this.setFileUrlByProxy()}},methods:{setFileUrlByProxy:function(){var t=this;"photo"===this.photo.type?this.getPhotoFromUrl(this.yandexPhotosUrl+this.photo.file_path+"max_"+this.photo.name+"?d="+this.photo.updated_date,function(e){t.fileUrlByProxy=e},"ru"):"video"===this.photo.type&&(this.photo.custom_preview?this.getPhotoFromUrl(this.yandexPhotosUrl+this.photo.custom_preview.file_path+this.photo.custom_preview.name,function(e){t.fileUrlByProxy=e},"ru"):this.getPhotoFromUrl(this.yandexVideosUrl+this.photo.file_thumbnail_path+this.photo.id+".jpg",function(e){t.fileUrlByProxy=e},"ru"))},setVideoUrl:function(){var t=this;this.isUploaded&&"video"===this.photo.type&&(this.photo.self_cloud_url?this.videoUrl=this.photo.self_cloud_url:this.getVideoUrl(this.photo.file_path+this.photo.name,function(e){t.videoUrl=e}))},drawVideoPreview:function(){var t=this;if(this.uploadingProgress&&!this.isVideoPreviewReady&&this.$refs["video-element"]){var video=this.$refs["video-element"],
1canvas=this.$refs["canvas-element"],e=this.$refs["blank-canvas-element"],o=86,n=86,r=video.videoWidth/video.videoHeight;o/n<r?n=o/r:o=n*r,canvas.width=o,canvas.height=n,e.width=o,e.height=n,canvas.getContext("2d").drawImage(video,0,0,o,n),canvas.toDataURL()!==e.toDataURL()?this.isVideoPreviewReady=!0:setTimeout(function(){t.drawVideoPreview()},1e3)}}}},r=o(5),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return t.photo?e("div",{staticClass:"me-2 mb-2 post-form-photo"},[t.isFileAsUrl||t.isUploaded||t.isFileAsPlayer||t.isFileAsMessage?["photo"===t.photo.type&&t.isFileAsUrl?e("a",{attrs:{href:t.photo.url,target:"_blank"}},[t.fileSrc?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.fileSrc,expression:"fileSrc"}]}):t._e(),t._v(" "),t.photoLink?e("a",{staticClass:"post-form-photo-social-icon text-white",attrs:{href:t.photoLink,target:"_blank"}},[e("fa",{attrs:{icon:t.fileSocialIcon}})],1):t._e()]):"video"===t.photo.type&&t.isFileAsUrl?e("a",{attrs:{href:t.photo.url,target:"_blank"}},[t.photo.custom_preview?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.yandexPhotosUrl+t.photo.custom_preview.file_path+t.photo.custom_preview.name,expression:"yandexPhotosUrl + photo['custom_preview']['file_path'] + photo['custom_preview']['name']"}]}):t.fileSrc?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.fileSrc,expression:"fileSrc"}]}):t._e()]):"video"===t.photo.type&&t.isFileAsPlayer?e("a",{attrs:{href:t.playerLink,target:"_blank"}},[t.photo.custom_preview?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.yandexPhotosUrl+t.photo.custom_preview.file_path+t.photo.custom_preview.name,expression:"yandexPhotosUrl + photo['custom_preview']['file_path'] + photo['custom_preview']['name']"}]}):e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.photo.preview,expression:"photo['preview']"}]}),t._v(" "),e("div",{staticClass:"post-form-photo-social-icon text-white"},[e("fa",{attrs:{icon:t.fileSocialIcon}})],1),t._v(" "),t.durationComputed?e("div",{staticClass:"post-form-photo-duration"},[t._v("\n          "+t._s(t.durationComputed)+"\n        ")]):t._e()]):"video"===t.photo.type&&t.isFileAsMessage?e("a",{attrs:{href:t.messageLink,target:"_blank"}},[t.photo.custom_preview?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.yandexPhotosUrl+t.photo.custom_preview.file_path+t.photo.custom_preview.name,expression:"yandexPhotosUrl + photo['custom_preview']['file_path'] + photo['custom_preview']['name']"}]}):e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.photo.preview,expression:"photo['preview']"}]}),t._v(" "),e("div",{staticClass:"post-form-photo-social-icon text-white"},[e("fa",{attrs:{icon:t.fileSocialIcon}})],1),t._v(" "),t.fileError?e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"post-form-photo-info-icon bg-danger text-white",attrs:{title:t.fileError}},[e("fa",{attrs:{icon:["fas","info"]}})],1):t._e()]):"photo"===t.photo.type?e("a",{attrs:{href:t.fileUrlByProxy,target:"_blank"}},[t.fileUrlByProxy?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.fileUrlByProxy,expression:"fileUrlByProxy"}]}):e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.yandexPhotosUrl+t.photo.file_path+"min_"+t.photo.name+"?d="+t.photo.updated_date,expression:"yandexPhotosUrl + photo['file_path'] + 'min_' + photo['name'] + '?d=' + photo['updated_date']"}]}),t._v(" "),t.photoLink?e("a",{staticClass:"post-form-photo-social-icon text-white",attrs:{href:t.photoLink,target:"_blank"}},[e("fa",{attrs:{icon:t.fileSocialIcon}})],1):t._e()]):"video"===t.photo.type?e("a",{attrs:{href:t.videoUrl,target:"_blank"}},[t.fileUrlByProxy?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.fileUrlByProxy,expression:"fileUrlByProxy"}]}):t.photo.custom_preview?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.yandexPhotosUrl+t.photo.custom_preview.file_path+t.photo.custom_preview.name,expression:"yandexPhotosUrl + photo['custom_preview']['file_path'] + photo['custom_preview']['name']"}]}):e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.yandexVideosUrl+t.photo.file_thumbnail_path+t.photo.id+".jpg",expression:"yandexVideosUrl + photo['file_thumbnail_path'] + photo['id'] + '.jpg'"}]}),t._v(" "),t.durationComputed?e("div",{staticClass:"post-form-photo-duration"},[t._v("\n          "+t._s(t.durationComputed)+"\n        ")]):t._e()]):t._e()]:[t.uploadingProgress&&"photo"===t.uploadingProgress.type?e("img",{attrs:{src:t.uploadingProgress.blob_data}}):[t.uploadingProgress&&"video"===t.uploadingProgress.type&&!t.isVideoPreviewReady?e("video",{ref:"video-element",attrs:{type:"video/mp4",src:t.uploadingProgress.blob_data}},[e("source",{attrs:{type:"video/mp4",src:t.uploadingProgress.blob_data}})]):t._e(),t._v(" "),t.uploadingProgress&&"video"===t.uploadingProgress.type?e("div",{staticClass:"canvas-objects"},[e("canvas",{ref:"canvas-element"}),t._v(" "),e("canvas",{ref:"blank-canvas-element"})]):t._e()]],t._v(" "),t.isFileAsUrl||t.isUploaded||t.isFileAsPlayer||t.isFileAsMessage?t._e():e("div",{staticClass:"post-form-photo-uploading"},[e("div",{staticClass:"d-flex justify-content-center post-form-photo-uploading-inside"},[e("div",{staticClass:"post-form-photo-uploading-bg"}),t._v(" "),t.uploadingProgress&&!t.uploadingProgress.is_ready?e("div",{staticClass:"post-form-photo-uploading-progress"},[e("div",{staticClass:"post-form-photo-uploading-progress-bar",style:{width:t.uploadingProgress.progress+"%"}})]):t._e(),t._v(" "),t._m(0)])]),t._v(" "),"video"===t.photo.type?[t.isFileAsUrl?e("a",{staticClass:"d-block post-form-photo-video-icon",attrs:{href:t.photo.url,target:"_blank"}},[e("fa",{attrs:{icon:["fas","play"]}})],1):t.isFileAsPlayer?e("a",{staticClass:"d-block post-form-photo-video-icon",attrs:{href:t.playerLink,target:"_blank"}},[e("fa",{attrs:{icon:["fas","play"]}})],1):t.isFileAsMessage?e("a",{staticClass:"d-block post-form-photo-video-icon",attrs:{href:t.messageLink,target:"_blank"}},[e("fa",{attrs:{icon:["fas","play"]}})],1):e("a",{staticClass:"d-block post-form-photo-video-icon",attrs:{href:t.videoUrl,target:"_blank"}},[e("fa",{attrs:{icon:["fas","play"]}})],1)]:t._e(),t._v(" "),t.isFileAsUrl||t.isUploaded||!t.uploadingProgress?e("button",{staticClass:"btn btn-light btn-sm position-absolute border-0 post-form-photo-delete-btn",attrs:{type:"button",title:"Удалить"},on:{click:function(e){return e.stopPropagation(),t.$emit("delete")},touchstart:function(e){return t.$emit("delete")}}},[e("fa",{attrs:{icon:["fas","times"]}})],1):t._e(),t._v(" "),"photo"===t.photo.type&&t.isUploaded?e("button",{staticClass:"btn btn-light btn-sm position-absolute border-0 post-form-photo-crop-btn",attrs:{type:"button",title:"Обрезать"},on:{click:function(e){return e.stopPropagation(),t.$emit("crop")},touchstart:function(e){return t.$emit("crop")}}},[e("fa",{attrs:{icon:["fas","crop-alt"]}})],1):t._e(),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm position-absolute border-0 post-form-photo-edit-btn",attrs:{type:"button",title:"Редактировать"},on:{click:function(e){return e.stopPropagation(),t.$emit("edit")},touchstart:function(e){return t.$emit("edit")}}},[e("fa",{attrs:{icon:["fas","pen"]}})],1)],2):t._e()},[function(){var t=this._self._c;return t("div",{staticClass:"spinner-border spinner-border-sm my-auto",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])}],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";var n=o(5),component=Object(n.a)({},function(){var t=this;return(0,t._self._c)("div",["ru"===t.$i18n.locale?[t._m(0),t._v(" "),t._m(1)]:t._e(),t._v(" "),"en"===t.$i18n.locale?[t._m(2),t._v(" "),t._m(3)]:t._e()],2)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Что такое расписание?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Расписания позволяют настроить публикацию постов в строго определенное время на каждый день недели.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Зачем мне это нужно?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        После создания расписания, вы сможете добавлять в него посты и они будут автоматически выстраиваться в очередь для постинга.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("What is a schedule?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Schedules allow you to set up posts to be published at specific times every day of the week.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Why do I need this?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        After creating a schedule, you can add posts to it, and they will automatically queue up for posting.\n      ")])])}],!1,null,null,null);e.a=component.exports},function(t,e,o){"use strict";var n=o(5),component=Object(n.a)({},function(){var t=this;return(0,t._self._c)("div",["ru"===t.$i18n.locale?[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2)]:t._e(),t._v(" "),"en"===t.$i18n.locale?[t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5)]:t._e()],2)},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Что такое Кросс-постинг?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Кросс-постинг позволяет копировать посты из одной соц. сети в другую.\n        Например, можно настроить автоматическую публикацию постов из Telegram во ВКонтакте или наоборот.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Зачем мне это нужно?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Если у вас много соц. сетей и вы публикуете в них похожий контент, то вам достаточно вести только одну из них, а в остальные посты будут копироваться автоматически, через Хуппи.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3 p-3"},[e("b",[t._v("Какие посты брать?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Есть три режима поиска постов, каждый из которых выполняет свою задачу:"),e("br"),e("br")]),t._v(" "),e("div",{staticClass:"text-tip-14"},[e("ol",{staticClass:"ps-3 mb-0"}
1,[e("li",[e("b",[t._v("Новые посты")]),e("br"),t._v("\n            Берутся "),e("b",{staticClass:"text-danger"},[t._v("любые свежие посты")]),t._v(", которые будут появляться в группах-источниках с момента создания связи.\n          ")]),t._v(" "),e("li",{staticClass:"mt-3"},[e("b",[t._v("Старые посты")]),e("br"),t._v("\n            Работает для ВКонтакте, Одноклассников, Telegram, Instagram, TikTok и YouTube.\n            Вы должны задать промежуток времени в прошлом, за который нужно скопировать посты из одной соц. сети в другую.\n          ")]),t._v(" "),e("li",{staticClass:"mt-3"},[e("b",[t._v("Лучшие посты")]),e("br"),t._v("\n            Берутся самые "),e("b",{staticClass:"text-danger"},[t._v("лучшие среди новых")]),t._v(" постов, за указанный интервал проверки.\n            Например, если вы указали проверку "),e("b",[t._v("один раз в день")]),t._v(", то будут взяты лучшие за последние 24 часа.\n            А если вы указали "),e("b",[t._v("один раз в неделю")]),t._v(", то будут взяты лучшие за последние 7 дней.\n          ")]),t._v(" "),e("li",{staticClass:"mt-3"},[e("b",[t._v("Случайные посты")]),e("br"),t._v("\n            Работает для ВКонтакте.\n            Вы должны задать промежуток времени в прошлом, за который нужно копировать случайные посты из одной группы в другую.\n          ")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("What is Cross-posting?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        Cross-posting allows you to copy posts from one social network to another.\n        For example, you can set up automatic publication of posts from Telegram to Facebook or vice versa.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-3"},[e("b",[t._v("Why do I need this?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        If you have multiple social networks and you publish similar content on them, you only need to manage one of them, and posts will be automatically copied to the others.\n      ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-3 p-3"},[e("b",[t._v("Which posts to take?")]),t._v(" "),e("div",{staticClass:"mt-3 text-tip-14"},[t._v("\n        There are three modes of post retrieval, each serving its own purpose:"),e("br"),e("br")]),t._v(" "),e("div",{staticClass:"text-tip-14"},[e("ol",{staticClass:"ps-3 mb-0"},[e("li",[e("b",[t._v("New posts")]),e("br"),t._v(" "),e("span",{staticClass:"text-danger"},[t._v("Any fresh posts")]),t._v(" are taken, which will appear in the source groups from the moment the connection is established.\n          ")]),t._v(" "),e("li",{staticClass:"mt-3"},[e("b",[t._v("Old posts")]),e("br"),t._v("\n            Works for Telegram, Instagram, TikTok and YouTube.\n            You need to specify a time interval in the past for which posts should be copied from one social network to another.\n          ")]),t._v(" "),e("li",{staticClass:"mt-3"},[e("b",[t._v("Best posts")]),e("br"),t._v("\n            The "),e("span",{staticClass:"text-danger"},[t._v("best among new")]),t._v(" posts are taken for the specified check period.\n            For example, if you specified checking "),e("b",[t._v("once a day")]),t._v(", the best posts from the last 24 hours will be taken.\n            And if you specified "),e("b",[t._v("once a week")]),t._v(", the best posts from the last 7 days will be taken.\n          ")]),t._v(" "),e("li",{staticClass:"mt-3"},[e("b",[t._v("Random posts")]),e("br"),t._v("\n            Works for Instagram, TikTok and YouTube.\n            You need to specify a time interval in the past for which posts should be copied from one social network to another.\n          ")])])])])}],!1,null,null,null);e.a=component.exports},,,,,,,,,,,,,,,,function(t,e,o){"use strict";var n=o(11),r=(o(24),o(1),o(40),o(16)),c=o(3),l=window.__NUXT__;function d(){if(!this._hydrated)return this.$fetch()}function m(){if((t=this).$vnode&&t.$vnode.elm&&t.$vnode.elm.dataset&&t.$vnode.elm.dataset.fetchKey){var t;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var e in data)r.default.set(this.$data,e,data[e])}}function h(){var t=this;return this._fetchPromise||(this._fetchPromise=_.call(this).then(function(){delete t._fetchPromise})),this._fetchPromise}function _(){return f.apply(this,arguments)}function f(){return(f=Object(n.a)(regeneratorRuntime.mark(function t(){var e,o,n,r,l=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,e=null,o=Date.now(),t.prev=1,t.next=2,this.$options.fetch.call(this);case 2:t.next=4;break;case 3:t.prev=3,r=t.catch(1),e=Object(c.p)(r);case 4:if(!((n=this._fetchDelay-(Date.now()-o))>0)){t.next=5;break}return t.next=5,new Promise(function(t){return setTimeout(t,n)});case 5:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick(function(){return l.$nuxt.nbFetching--});case 6:case"end":return t.stop()}},t,this,[[1,3]])}
1))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,r.default.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=h.bind(this),Object(c.a)(this,"created",m),Object(c.a)(this,"beforeMount",d))}}},,,,,,,,function(t,e,o){t.exports=o.p+"94d8b3a159f93e30ee451361f9deffa0.svg"},function(t,e,o){t.exports=o.p+"486002a1e5f417f9fbf29ef8484f37d4.svg"},function(t,e,o){t.exports=o.p+"65c2d0738c29ca6e9e8d9ad5ef26859c.svg"},function(t,e,o){t.exports=o.p+"2b8a804d7e462a038630105216945e70.svg"},function(t,e,o){t.exports=o.p+"bf139805a64b5e186e19edebc2fefeff.svg"},,function(t,e,o){t.exports=o.p+"e73d2d00bd61e10beb4e256278ba9000.svg"},function(t,e,o){t.exports=o.p+"37a9887620cf2b4b7fdad6443a2bd484.svg"},function(t,e,o){t.exports=o.p+"cad928346e98718054fead334a1bb7d0.svg"},function(t,e,o){t.exports=o.p+"537d2d60d27f129b85653e2ecf0bb7f5.svg"},function(t,e,o){t.exports=o.p+"0d5859e1967f46da0d05b2c052930eee.svg"},function(t,e,o){t.exports=o.p+"8a05dbf2679fecf873b65397880df7fd.svg"},function(t,e,o){t.exports=o.p+"8cb804d714a34b38ff6c9de16d138b3c.svg"},function(t,e,o){t.exports=o.p+"01b5edd521f382c3e1a771676a401a7c.svg"},function(t,e,o){t.exports=o.p+"60e7eb3d5b05adb826cf52e21176a33d.svg"},function(t,e,o){t.exports=o.p+"b448c06f397e7186fa0e48d11cdca943.svg"},function(t,e,o){t.exports=o.p+"547cf64bc6d7903de6ef524f486d7d0d.svg"},function(t,e,o){t.exports=o.p+"67ff06d5d38b1afd803d288a1596c18d.svg"},function(t,e,o){t.exports=o.p+"f5d6e319f50c8e711aa79e15c7c0097e.svg"},function(t,e,o){t.exports=o.p+"6aaec987bd05f9d6f815fed3c5704462.svg"},function(t,e,o){t.exports=o.p+"d075523b8b87e6c8b57a7d90dafdcd5e.svg"},function(t,e,o){t.exports=o.p+"b549eb6812b003baefe9ab79eb90c294.svg"},function(t,e,o){t.exports=o.p+"f9256fb99de4f29d2f2b8d1c5f9dd709.svg"},function(t,e,o){t.exports=o.p+"bb603aa7e58e71514127e631b68091cf.svg"},function(t,e,o){t.exports=o.p+"9e5f838de32664b1442bfb5e74ee9f8c.svg"},function(t,e,o){t.exports=o.p+"19a9c9a74651d41d714f27a1a397d8df.svg"},function(t,e,o){t.exports=o.p+"ce2bf8f633ee3747586b8deefce108da.svg"},function(t,e,o){t.exports=o.p+"a3ae1a2ce4a572abb42f215d6c273931.svg"},,function(t,e,o){t.exports=o.p+"e73d2d00bd61e10beb4e256278ba9000.svg"},function(t,e,o){t.exports=o.p+"c08ad846691358f9b028e2b4d0c41ee3.svg"},function(t,e,o){t.exports=o.p+"94d8b3a159f93e30ee451361f9deffa0.svg"},function(t,e,o){t.exports=o.p+"7710ebd4b55f81721a3f53041c0f20b7.svg"},function(t,e,o){t.exports=o.p+"d6bb8c5b3058077f7e24f67ff4f02102.svg"},function(t,e,o){t.exports=o.p+"60e7eb3d5b05adb826cf52e21176a33d.svg"},function(t,e,o){t.exports=o.p+"b448c06f397e7186fa0e48d11cdca943.svg"},function(t,e,o){t.exports=o.p+"e150d2571ab3fd4f8e8f103432857cd3.svg"},function(t,e,o){t.exports=o.p+"c11507a7623365c91fa96d4a835b3425.svg"},function(t,e,o){t.exports=o.p+"4c3ae937b4ed517fea5076635421df9d.svg"},function(t,e,o){t.exports=o.p+"67ff06d5d38b1afd803d288a1596c18d.svg"},function(t,e,o){t.exports=o.p+"f5d6e319f50c8e711aa79e15c7c0097e.svg"},function(t,e,o){t.exports=o.p+"6aaec987bd05f9d6f815fed3c5704462.svg"},function(t,e,o){t.exports=o.p+"0d5859e1967f46da0d05b2c052930eee.svg"},function(t,e,o){t.exports=o.p+"d075523b8b87e6c8b57a7d90dafdcd5e.svg"},function(t,e,o){t.exports=o.p+"98533d858e9bf5d1b08b85893cd77119.svg"},function(t,e,o){t.exports=o.p+"5c60d08c3d2cc07ba6ba0c51ca6e3c39.svg"},function(t,e,o){t.exports=o.p+"a7aef61c3fcf08669512abf77c75a49a.svg"},function(t,e,o){t.exports=o.p+"8cb804d714a34b38ff6c9de16d138b3c.svg"},function(t,e,o){t.exports=o.p+"6651523e931a18d2c557bf66454ed6a9.svg"},function(t,e,o){t.exports=o.p+"afd827ab4873518fed0e74b66535a53e.svg"},function(t,e,o){t.exports=o.p+"6dbe4c4a46494b986a014b72c7817c31.svg"},function(t,e,o){t.exports=o.p+"e42eeab1b1ba27fae90c4f9dbadc7021.svg"},function(t,e,o){t.exports=o.p+"a7c74dde061cf7daa94c6b74932e9c40.svg"},function(t,e,o){t.exports=o.p+"d3666d9dc9da9f97da068e4f2d6579cb.svg"},function(t,e,o){t.exports=o.p+"a3ae1a2ce4a572abb42f215d6c273931.svg"},function(t,e,o){t.exports=o.p+"edad01308f843f6f416e818a7b26fe02.svg"},,,function(t,e,o){t.exports=o.p+"bf1c1b1515942393e2040ab2ba56786e.svg"}
1,function(t,e,o){t.exports=o.p+"c1a9e034b2381b90505bab7465ac7be0.svg"},function(t,e,o){t.exports=o.p+"fb9b021386932b37dba306285f32fa0e.svg"},function(t,e,o){t.exports=o.p+"6437ae42682b1047bb435d63fe0d0292.svg"},function(t,e,o){t.exports=o.p+"e00de29d7fd2911d2bea5e271751290c.svg"},function(t,e,o){t.exports=o.p+"5c60d08c3d2cc07ba6ba0c51ca6e3c39.svg"},function(t,e,o){t.exports=o.p+"a7aef61c3fcf08669512abf77c75a49a.svg"},function(t,e,o){t.exports=o.p+"5da4e5f00f18d527f69c1e27090f2d41.svg"},function(t,e,o){t.exports=o.p+"d6babbdc0f3908f91cdf8bc9d199d6de.svg"},,,function(t,e,o){t.exports=o(500)},function(t,e,o){"use strict";o.r(e),function(t){var e=o(49),n=o(11),r=(o(203),o(505),o(516),o(517),o(24),o(6),o(39),o(43),o(23),o(4),o(44),o(31),o(28),o(22),o(15),o(8),o(1),o(20),o(29),o(48),o(36),o(334),o(336),o(7),o(32),o(40),o(16)),c=o(407),l=o(146),d=o(3),m=o(118),h=o(422),_=o(241);function f(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return v(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?v(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function v(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}r.default.__nuxt__fetch__mixin__||(r.default.mixin(h.a),r.default.__nuxt__fetch__mixin__=!0),r.default.component(_.a.name,_.a),r.default.component("NLink",_.a),t.fetch||(t.fetch=c.a);var y,k,x=[],w=window.__NUXT__||{},C=w.config||{};C._app&&(o.p=Object(d.v)(C._app.cdnURL,C._app.assetsPath)),Object.assign(r.default.config,{silent:!0,performance:!1});var S=r.default.config.errorHandler||console.error;function T(t,e,o){for(var n=function(component){var t=function(component,t){if(!component||!component.options||!component.options[t])return{};var option=component.options[t];if("function"==typeof option){for(var e=arguments.length,o=new Array(e>2?e-2:0),n=2;n<e;n++)o[n-2]=arguments[n];return option.apply(void 0,o)}return option}(component,"transition",e,o)||{};return"string"==typeof t?{name:t}:t},r=o?Object(d.g)(o):[],c=Math.max(t.length,r.length),l=[],m=function(){var e=Object.assign({},n(t[i])),o=Object.assign({},n(r[i]));Object.keys(e).filter(function(t){return void 0!==e[t]&&!t.toLowerCase().includes("leave")}).forEach(function(t){o[t]=e[t]}),l.push(o)},i=0;i<c;i++)m();return l}function P(t,e,o){return I.apply(this,arguments)}function I(){return(I=Object(n.a)(regeneratorRuntime.mark(function t(e,o,n){var r,c,l,m,h,_=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this._routeChanged=Boolean(y.nuxt.err)||o.name!==e.name,this._paramChanged=!this._routeChanged&&o.path!==e.path,this._queryChanged=!this._paramChanged&&o.fullPath!==e.fullPath,this._diffQuery=this._queryChanged?Object(d.i)(e.query,o.query):[],(this._routeChanged||this._paramChanged)&&this.$loading.start&&!this.$loading.manual&&this.$loading.start(),t.prev=1,!this._queryChanged){t.next=3;break}return t.next=2,Object(d.r)(e,function(t,e){return{Component:t,instance:e}});case 2:r=t.sent,r.some(function(t){var n=t.Component,r=t.instance,c=n.options.watchQuery;return!0===c||(Array.isArray(c)?c.some(function(t){return _._diffQuery[t]}):"function"==typeof c&&c.apply(r,[e.query,o.query]))})&&this.$loading.start&&!this.$loading.manual&&this.$loading.start();case 3:n(),t.next=6;break;case 4:if(t.prev=4,h=t.catch(1),l=(c=h||{}).statusCode||c.status||c.response&&c.response.status||500,m=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(m)){t.next=5;break}return window.location.reload(!0),t.abrupt("return");case 5:this.error({statusCode:l,message:m}),this.$nuxt.$emit("routeChanged",e,o,c),n();case 6:case"end":return t.stop()}},t,this,[[1,4]])}))).apply(this,arguments)}function A(t,e){return w.serverRendered&&e&&Object(d.b)(t,e),t._Ctor=t,t}function F(t){return Object(d.d)(t,function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(e,o,n,r,c){var l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=2;break}return t.next=1,e();case 1:e=t.sent;case 2:return l=A(Object(d.s)(e),w.data?w.data[c]:null),n.components[r]=l,t.abrupt("return",l);case 3:case"end":return t.stop()}},t)}));return function(e,o,n,r,c){return t.apply(this,arguments)}}())}function j(t,e,o,n){var r=this,c=["nuxti18n"],m=!1;if(void 0!==o&&(c=[],(o=Object(d.s)(o)).options.middleware&&(c=c.concat(o.options.middleware)),t.forEach(function(t){t.options.middleware&&(c=c.concat(t.options.middleware))})),c=c.map(function(t){return"function"==typeof t?t:("function"!=typeof l.a[t]&&(m=!0,r.error({statusCode:500,message:"Unknown middleware "+t})),l.a[t])}),!m)return Object(d.o)(c,e,n)}function O(t,e,o,n){return $.apply(this,arguments)}function $(){return $=Object(n.a)(regeneratorRuntime.mark(function t(e,o,r,c){var l,h,_,v,k,w,C,S,P,I,A,F,O,$,L,R,B,D,N=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){t.next=1;break}return t.abrupt("return",r());case 1:return e===o?(x=[],!0):(l=[],x=Object(d.g)(o,l).map(function(t,i){return Object(d.c)(o.matched[l[i]].path)(o.params)})),h=!1,_=function(path){o.path===path.path&&N.$loading.finish&&N.$loading.finish(),o.path!==path.path&&N.$loading.pause&&N.$loading.pause(),h||(h=!0,r(path))},t.next=2,Object(d.t)(y,{route:e,from:o,error:function(t){c.aborted||y.nuxt.error.call(N,t)},next:_.bind(this)});case 2:if(this._dateLastError=y.nuxt.dateErr,this._hadError=Boolean(y.nuxt.err),v=[],(k=Object(d.g)(e,v)).length){t.next=10;break}return t.next=3,j.call(this,k,y.context,void 0,c);case 3:if(!h){t.next=4;break}return t.abrupt("return");case 4:if(!c.aborted){t.next=5;break}return r(!1),t.abrupt("return");case 5:return w=(m.a.options||m.a).layout,t.next=6,this.loadLayout("function"==typeof w?w.call(m.a,y.context):w);case 6:return C=t.sent,t.next=7,j.call(this,k,y.context,C,c);case 7:if(!h){t.next=8;break}return t.abrupt("return");case 8:if(!c.aborted){t.next=9;break}return r(!1),t.abrupt("return");case 9:return y.context.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",r());
1case 10:return k.forEach(function(t){t._Ctor&&t._Ctor.options&&(t.options.asyncData=t._Ctor.options.asyncData,t.options.fetch=t._Ctor.options.fetch)}),this.setTransitions(T(k,e,o)),t.prev=11,t.next=12,j.call(this,k,y.context,void 0,c);case 12:if(!h){t.next=13;break}return t.abrupt("return");case 13:if(!c.aborted){t.next=14;break}return r(!1),t.abrupt("return");case 14:if(!y.context._errored){t.next=15;break}return t.abrupt("return",r());case 15:return"function"==typeof(S=k[0].options.layout)&&(S=S(y.context)),t.next=16,this.loadLayout(S);case 16:return S=t.sent,t.next=17,j.call(this,k,y.context,S,c);case 17:if(!h){t.next=18;break}return t.abrupt("return");case 18:if(!c.aborted){t.next=19;break}return r(!1),t.abrupt("return");case 19:if(!y.context._errored){t.next=20;break}return t.abrupt("return",r());case 20:P=!0,t.prev=21,I=f(k),t.prev=22,I.s();case 23:if((A=I.n()).done){t.next=27;break}if("function"==typeof(F=A.value).options.validate){t.next=24;break}return t.abrupt("continue",26);case 24:return t.next=25,F.options.validate(y.context);case 25:if(P=t.sent){t.next=26;break}return t.abrupt("continue",27);case 26:t.next=23;break;case 27:t.next=29;break;case 28:t.prev=28,R=t.catch(22),I.e(R);case 29:return t.prev=29,I.f(),t.finish(29);case 30:t.next=32;break;case 31:return t.prev=31,B=t.catch(21),this.error({statusCode:B.statusCode||"500",message:B.message}),t.abrupt("return",r());case 32:if(P){t.next=33;break}return this.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",r());case 33:return t.next=34,Promise.all(k.map(function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(n,i){var r,c,l,m,h,_,f,k,p;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n._path=Object(d.c)(e.matched[v[i]].path)(e.params),n._dataRefresh=!1,r=n._path!==x[i],N._routeChanged&&r?n._dataRefresh=!0:N._paramChanged&&r?(c=n.options.watchParam,n._dataRefresh=!1!==c):N._queryChanged&&(!0===(l=n.options.watchQuery)?n._dataRefresh=!0:Array.isArray(l)?n._dataRefresh=l.some(function(t){return N._diffQuery[t]}):"function"==typeof l&&(O||(O=Object(d.h)(e)),n._dataRefresh=l.apply(O[i],[e.query,o.query]))),N._hadError||!N._isMounted||n._dataRefresh){t.next=1;break}return t.abrupt("return");case 1:return m=[],h=n.options.asyncData&&"function"==typeof n.options.asyncData,_=Boolean(n.options.fetch)&&n.options.fetch.length,f=h&&_?30:45,h&&((k=Object(d.q)(n.options.asyncData,y.context)).then(function(t){Object(d.b)(n,t),N.$loading.increase&&N.$loading.increase(f)}),m.push(k)),N.$loading.manual=!1===n.options.loading,_&&((p=n.options.fetch(y.context))&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then(function(t){N.$loading.increase&&N.$loading.increase(f)}),m.push(p)),t.abrupt("return",Promise.all(m));case 2:case"end":return t.stop()}},t)}));return function(e,o){return t.apply(this,arguments)}}()));case 34:if(h){t.next=36;break}if(this.$loading.finish&&!this.$loading.manual&&this.$loading.finish(),!c.aborted){t.next=35;break}return r(!1),t.abrupt("return");case 35:r();case 36:t.next=41;break;case 37:if(t.prev=37,D=t.catch(11),!c.aborted){t.next=38;break}return r(!1),t.abrupt("return");case 38:if("ERR_REDIRECT"!==($=D||{}).message){t.next=39;break}return t.abrupt("return",this.$nuxt.$emit("routeChanged",e,o,$));case 39:return x=[],Object(d.k)($),"function"==typeof(L=(m.a.options||m.a).layout)&&(L=L(y.context)),t.next=40,this.loadLayout(L);case 40:this.error($),this.$nuxt.$emit("routeChanged",e,o,$),r();case 41:case"end":return t.stop()}},t,this,[[11,37],[21,31],[22,28,29,30]])})),$.apply(this,arguments)}function L(t,o){Object(d.d)(t,function(t,o,n,c){return"object"!==Object(e.a)(t)||t.options||((t=r.default.extend(t))._Ctor=t,n.components[c]=t),t})}Object(m.b)(null,w.config).then(function(t){return U.apply(this,arguments)}).catch(S);var R=new WeakMap;function B(t,e,o){var n=Boolean(this.$options.nuxt.err);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(n=!1);var r=n?(m.a.options||m.a).layout:t.matched[0].components.default.options.layout;"function"==typeof r&&(r=r(y.context)),R.set(t,r),o&&o()}function D(t){var e=R.get(t);R.delete(t),this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(this.$options.nuxt.err=null),this.setLayout(e)}
1function N(t){t._hadError&&t._dateLastError===t.$options.nuxt.dateErr&&t.error()}function M(t,e){var o=this;if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){var n=Object(d.h)(t),c=Object(d.g)(t),l=!1;r.default.nextTick(function(){n.forEach(function(t,i){if(t&&!t._isDestroyed&&t.constructor._dataRefresh&&c[i]===t.constructor&&!0!==t.$vnode.data.keepAlive&&"function"==typeof t.constructor.options.data){var e=t.constructor.options.data.call(t);for(var o in e)r.default.set(t.$data,o,e[o]);l=!0}}),l&&window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")}),N(o)})}}function V(t){window.onNuxtReadyCbs.forEach(function(e){"function"==typeof e&&e(t)}),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(t),k.afterEach(function(e,o){r.default.nextTick(function(){return t.$nuxt.$emit("routeChanged",e,o)})})}function U(){return(U=Object(n.a)(regeneratorRuntime.mark(function t(e){var o,n,c,l,m,h,_,f;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return y=e.app,k=e.router,e.store,o=new r.default(y),n=w.layout||"default",t.next=1,o.loadLayout(n);case 1:return o.setLayout(n),c=function(){o.$mount("#__nuxt"),k.afterEach(L),k.beforeResolve(B.bind(o)),k.afterEach(D.bind(o)),k.afterEach(M.bind(o)),r.default.nextTick(function(){V(o)})},t.next=2,Promise.all(F(y.context.route));case 2:if(l=t.sent,o.setTransitions=o.$options.nuxt.setTransitions.bind(o),l.length&&(o.setTransitions(T(l,k.currentRoute)),x=k.currentRoute.matched.map(function(t){return Object(d.c)(t.path)(k.currentRoute.params)})),o.$loading={},w.error&&(o.error(w.error),o.nuxt.errPageReady=!0),k.beforeEach(P.bind(o)),m=null,h=O.bind(o),k.beforeEach(function(t,e,o){m&&(m.aborted=!0),h(t,e,o,m={aborted:!1})}),!w.serverRendered||!Object(d.n)(w.routePath,o.context.route.path)){t.next=3;break}return t.abrupt("return",c());case 3:return _=function(){B.call(o,k.currentRoute),D.call(o,k.currentRoute)},f=function(){L(k.currentRoute,k.currentRoute),_(),N(o),c()},t.next=4,new Promise(function(t){return setTimeout(t,0)});case 4:O.call(o,k.currentRoute,k.currentRoute,function(path){if(path){var t=k.afterEach(function(e,o){t(),f()});k.push(path,void 0,function(t){t&&S(t)})}else f()},{aborted:!1});case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)}}.call(this,o(93))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){"use strict";o.r(e),e.default=function(t){var e=t.store,o=t.redirect;if(e.getters["settings/director"])return o("/posts")}},function(t,e,o){"use strict";o.r(e);o(31),o(8),o(1),o(29),o(48),o(36),o(32),o(176);e.default=function(t){var e=t.store,o=t.redirect,n=t.route;if(e.getters["global/originalHost"]&&!e.getters["global/originalHost"].includes("hooppy.ru")){var r="";return Object.keys(n.query).length&&(r="?"+new URLSearchParams(n.query).toString()),o("https://hooppy.ru"+n.path+r)}}},,function(t,e,o){"use strict";o.r(e),e.default=function(t){t.store,t.redirect,t.route}},function(t,e,o){"use strict";o.r(e),e.default=function(t){var e=t.$cookies,o=t.redirect,n=t.i18n;if(e.get("auth.locale")&&e.get("auth.locale").toLowerCase()!==n.defaultLocale){var r=e.get("auth.locale").toLowerCase();return e.set("auth.locale",""),o("/".concat(r,"/settings"))}}},function(t,e,o){"use strict";o.r(e),e.default=function(t){var e=t.$cookies,o=t.store,n=t.redirect,r=t.i18n;if(o.state.auth.loggedIn){var c="/posts";return e.get("auth.locale")&&e.get("auth.locale").toLowerCase()!==r.defaultLocale&&(c="/".concat(locale,"/posts")),n(c)}}},,,,,function(t,e,o){"use strict";o(353)},function(t,e,o){var n=o(112)(function(i){return i[1]});n.push([t.i,".__nuxt-error-page{align-items:center;background:#f7f8fb;color:#47494e;display:flex;flex-direction:column;font-family:sans-serif;font-weight:100!important;justify-content:center;padding:1rem;text-align:center;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;bottom:0;left:0;position:absolute;right:0;top:0}.__nuxt-error-page .error{max-width:450px}.__nuxt-error-page .title{color:#47494e;font-size:1.5rem;margin-bottom:8px;margin-top:15px}.__nuxt-error-page .description{color:#7f828b;line-height:21px;margin-bottom:10px}.__nuxt-error-page a{color:#7f828b!important;-webkit-text-decoration:none;text-decoration:none}.__nuxt-error-page .logo{bottom:12px;left:12px;position:fixed}",""]),n.locals={}
1,t.exports=n},,,,,,,function(t,e,o){var content=o(554);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(113).default)("6a2f052c",content,!0,{sourceMap:!1})},function(t,e,o){var n=o(112)(function(i){return i[1]});n.push([t.i,".list-group-item-action{cursor:pointer}.bg-checked{background-color:#fffddd!important}.border-light{border-color:#e6ecf0!important}.border-primary{border-color:#617fa1!important}.border-secondary{border-color:#ced4da!important}.bg-info{background-color:#fff8bc!important}.badge{border-radius:3px;font-weight:400}.modal-open{overflow:hidden}.toast:not(.show){display:block}.btn-link,a{-webkit-text-decoration:none;text-decoration:none}.text-info{color:#0077b5!important}.form-check{min-height:0;min-height:auto}.form-check:last-child{margin-bottom:0}.link-primary{color:#607ea1!important;cursor:pointer}.link-primary:hover{color:#54708f!important}.form-check-input:checked{background-color:#607ea1;border-color:#607ea1}.ms-n3{margin-left:-1rem!important}.me-n3{margin-right:-1rem!important}.mx-n2{margin-left:-.5rem!important;margin-right:-.5rem!important}.mx-n3{margin-left:-1rem!important;margin-right:-1rem!important}.mt-n3{margin-top:-1rem!important}.ms-n1{margin-left:-.25rem!important}.ms-n2{margin-left:-.5rem!important}.mt-n1{margin-top:-.25rem!important}.mt-n2{margin-top:-.5rem!important}.mb-n1{margin-bottom:-.25rem!important}.mb-n2{margin-bottom:-.5rem!important}.mb-n3{margin-bottom:-1rem!important}@media only screen and (min-width:1200px){.mx-lg-n3{margin-left:-1rem!important;margin-right:-1rem!important}}",""]),n.locals={},t.exports=n},function(t,e,o){var content=o(556);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(113).default)("76bda88a",content,!0,{sourceMap:!1})},function(t,e,o){var n=o(112),r=o(557),c=o(558),l=o(559),d=o(560),m=n(function(i){return i[1]}),h=r(c),_=r(l),f=r(d);m.push([t.i,":root{--color-blue:#386bee;--color-blue-hover:#315ccc;--color-red:#ee3843;--color-gray:#636e8d;--color-white:#fff;--color-darkblue:#2d4379;--color-yellow:#f5a900;--color-primary:#617fa1;--color-secondary:#6c757d;--color-dark:#212529;--color-vk:#07f;--color-mx:#181d85;--color-ok:#e67003;--color-fb:#3b5998;--color-tw:#0f1419;--color-pn:#cb2027;--color-ig:#e20074;--color-th:#000;--color-tb:#33445c;--color-tg:#08c;--color-dz:#000;--color-tt:#000;--color-vb:#7360f2;--color-in:#0077b5;--color-yt:red}.c-vk{color:#07f!important;color:var(--color-vk)!important}.c-mx{color:#181d85!important;color:var(--color-mx)!important}.c-ok{color:#e67003!important;color:var(--color-ok)!important}.c-fb{color:#3b5998!important;color:var(--color-fb)!important}.c-tw{color:#0f1419!important;color:var(--color-tw)!important}.c-pn{color:#cb2027!important;color:var(--color-pn)!important}.c-ig,.c-th{color:#e20074!important;color:var(--color-ig)!important}.c-tb{color:#33445c!important;color:var(--color-tb)!important}.c-tg{color:#08c!important;color:var(--color-tg)!important}.c-dz{color:#000!important;color:var(--color-dz)!important}.c-vb{color:#7360f2!important;color:var(--color-vb)!important}.c-in{color:#0077b5!important;color:var(--color-in)!important}.c-yt{color:red!important;color:var(--color-yt)!important}.bg-vk{background-color:#07f!important;background-color:var(--color-vk)!important}.bg-ok{background-color:#e67003!important;background-color:var(--color-ok)!important}.bg-fb{background-color:#3b5998;background-color:var(--color-fb)}.bg-tw{background-color:#0f1419;background-color:var(--color-tw)}.bg-pn{background-color:#cb2027;background-color:var(--color-pn)}.bg-ig{background-color:#e20074!important;background-color:var(--color-ig)!important}.bg-th{background-color:#e20074;background-color:var(--color-ig)}.bg-tb{background-color:#33445c;background-color:var(--color-tb)}.bg-tg{background-color:#08c;background-color:var(--color-tg)}.bg-dz{background-color:#000;background-color:var(--color-dz)}.bg-vb{background-color:#7360f2;background-color:var(--color-vb)}.bg-in{background-color:#0077b5;background-color:var(--color-in)}.bg-yt{background-color:red!important;background-color:var(--color-yt)!important}.bg-tt{background-color:#000!important;background-color:var(--color-tt)!important}.cursor-pointer{cursor:pointer}.red-ball{background:#ff3e3e;border-radius:50%;box-shadow:1px 1px 1px 0 rgba(0,0,0,.2);height:12.3px;left:17px;position:absolute;top:6px;width:11.4px}.red-ball .red-ball-blink{background:#ffb2b1;border-radius:50%;height:6px;left:2px;position:absolute;top:2px;width:5px}.red-ball .red-ball-line{background:#883030;height:10px;left:5px;position:absolute;top:-10px;width:2px}.green-ball{background:#3db23d;border-radius:50%;box-shadow:1px 1px 1px 0 rgba(0,0,0,.2);height:12.3px;left:34px;position:absolute;top:6px;width:11.4px}.green-ball .green-ball-blink{background:#8be28b;border-radius:50%;height:6px;left:2px;position:absolute;top:2px;width:5px}.green-ball .green-ball-line{background:#1d641d;height:10px;left:5px;position:absolute;top:-10px;width:2px}.global-posts-statistics-chart{background:#d9e5ff;background:linear-gradient(90deg,rgba(217,229,255,.7),rgba(227,255,253,.7));box-shadow:0 8px 16px 0 hsla(0,0%,81%,.5)}.form-check-input:checked{background-color:#4f6fa3!important;border-color:#4f6fa3!important}.link-primary{color:#4f6fa3!important}.link-primary:hover{color:#445f8d!important}.btn-link,a{color:#4f6fa3;cursor:pointer}.btn-link:hover,a:hover{color:#445f8d}.form-check-mb{margin-bottom:.125rem}.help-video{box-shadow:0 2px 40px -2px rgba(0,0,0,.3)}.btn img.with-svg{display:inline-block;display:var(--fa-display,inline-block);height:1em;overflow:visible;vertical-align:-.125em}.rounded{border-radius:3px!important}.form-file-text{display:flex!important;height:22px}.form-file-text .badge{border-radius:2px;line-height:22px;padding:0 5px}.quillWrapper .ql-snow.ql-toolbar{border-color:#dce1e4;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.quillWrapper .ql-container.ql-snow{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem;border-color:#dce1e4}.quillWrapper .ql-editor{color:#495057;font-size:14px;line-height:20px;padding:.375rem .75rem}.grip-item{cursor:move}.grip-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-for-thumbnail{height:200px}.multiselect{min-height:31px!important}.multiselect .multiselect__select{height:29px!important;padding:0!important;transition:none!important;width:29px!important}.multiselect .multiselect__select:before{border-color:#333b3f transparent transparent;top:64%!important}.multiselect .multiselect__content-wrapper{border:0!important;border-radius:.2rem!important;box-shadow:0 1px 8px 0 rgba(0,0,0,.2);overflow-x:hidden;z-index:100}.multiselect .multiselect__content-wrapper .multiselect__content{display:block!important}.multiselect .multiselect__content-wrapper .multiselect__content .multiselect__option--disabled{background:none!important;color:#000!important;font-weight:700}.multiselect .multiselect__content-wrapper .multiselect__content .multiselect__option{font-size:14px!important;min-height:32px!important;overflow-x:hidden;padding:8px!important;text-overflow:ellipsis;white-space:nowrap}.multiselect .multiselect__content-wrapper .multiselect__content .multiselect__option--highlight{background:#4f6fa3}.multiselect .multiselect__content-wrapper .multiselect__content .multiselect__option--selected{font-weight:400!important}.multiselect .multiselect__content-wrapper .multiselect__content .multiselect__option--selected.multiselect__option--highlight{background:#4f6fa3}.multiselect .multiselect__tags{border:1px solid #ced4da!important;border-radius:.2rem!important;font-size:.875rem;line-height:1.5;min-height:31px!important;padding:1px 40px 1px 1px!important}.multiselect .multiselect__tags .multiselect__input,.multiselect .multiselect__tags .multiselect__single{font-size:.875rem;height:27px;line-height:27px;margin-bottom:0;margin-left:0;margin-top:1px;padding-left:.45rem}.multiselect .multiselect__tags .multiselect__single{border-radius:2px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect .multiselect__tags .multiselect__tags-wrap{display:flex!important;flex-wrap:wrap;margin-bottom:-1px!important}.multiselect .multiselect__tags .multiselect__tags-wrap .multiselect__tag{align-items:center;background:#4f6fa3!important;border-radius:2px!important;display:flex!important;height:27px!important;margin-bottom:1px!important;margin-right:1px!important;padding:0 36px 0 8px!important}.multiselect .multiselect__tags .multiselect__tags-wrap .multiselect__tag .multiselect__tag-icon{border-radius:2px!important;line-height:27px!important;margin-left:0!important;transition:none;width:27px!important}.multiselect .multiselect__tags .multiselect__tags-wrap .multiselect__tag .multiselect__tag-icon:after{color:#a8b9ce!important}.multiselect .multiselect__tags .multiselect__tags-wrap .multiselect__tag .multiselect__tag-icon:focus,.multiselect .multiselect__tags .multiselect__tags-wrap .multiselect__tag .multiselect__tag-icon:hover{background:#445f8d!important}.multiselect .multiselect__tags .multiselect__tags-wrap .multiselect__tag .multiselect__tag-icon:focus:after,.multiselect .multiselect__tags .multiselect__tags-wrap .multiselect__tag .multiselect__tag-icon:hover:after{color:#fff!important}.multiselect .multiselect__tags .multiselect__placeholder{color:#868d94!important;font-size:.875rem;height:27px;line-height:27px;margin-bottom:0!important;margin-left:-1px;margin-top:1px;padding-left:.5rem;padding-top:0!important}.multiselect--disabled{opacity:.7!important}.multiselect--disabled,.multiselect--disabled .multiselect__select{background:none!important}.multiselect--disabled .multiselect__tags{background:#e9ecef;border:1px solid #dce1e4!important}.multiselect--active{z-index:100!important}.input-group .multiselect{flex:1 1 auto;min-width:0;width:1%}.input-group .multiselect--active{z-index:1}.bg-light-img{background:#eef3f9}.text-words-counter{background-color:#fff;bottom:7px;position:absolute;right:3px}.tooltip-inner{background-color:#6c757d!important}.first-block{order:1}.second-block{order:2}.bg-primary{background-color:#4f6fa3!important}.btn-primary{background-color:#4f6fa3;border-color:#4f6fa3}.btn-primary:hover{background-color:#445f8d;border-color:#364e77}.btn-primary.active:hover,.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{background-color:#364e77;border-color:#364e77}.btn-primary.focus,.btn-primary:focus{background-color:#445f8d;border-color:#364e77}.btn-primary.disabled,.btn-primary:disabled{background-color:#4f6fa3;border-color:#4f6fa3}.btn-primary.active.disabled,.btn-primary.active:disabled{background-color:#364e77;border-color:#364e77}.btn-success{background-color:#198754;border-color:#198754}.btn-success:hover{background-color:#157347;border-color:#146c43}.btn-success.active:hover,.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{background-color:#146c43;border-color:#13653f}.btn-success.focus,.btn-success:focus{background-color:#157347;border-color:#146c43}.btn-success.disabled,.btn-success:disabled{background-color:#198754;border-color:#198754}.btn-success.active.disabled,.btn-success.active:disabled{background-color:#146c43;border-color:#13653f}.btn-check:checked+.btn-primary{background-color:#4f6fa3;border-color:#4f6fa3}.btn-check+.btn-primary:hover{background-color:#445f8d;border-color:#364e77}.btn-check:checked+.btn-success{background-color:#198754;border-color:#198754}.btn-check+.btn-success:hover{background-color:#157347;border-color:#146c43}.btn-light{background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{background-color:#d3d4d5;border-color:#c6c7c8}.btn-light.active:hover,.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{background-color:#c6c7c8;border-color:#babbbc}.btn-check:checked+.btn-light{background-color:#f8f9fa;border-color:#f8f9fa}.btn-check+.btn-light:hover{background-color:#d3d4d5;border-color:#c6c7c8}.text-primary{color:#4f6fa3!important}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f4b905;--bs-btn-hover-border-color:#e6ae00;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#e6ae00;--bs-btn-active-border-color:#e0a904;--bs-btn-active-shadow:inset 0 3px 5px rgba(0,0,0,.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-warning.active.disabled,.btn-warning.active:disabled{background-color:#e6ae00;border-color:#e0a904}.btn-width-32{width:32px}.tip-networks-icons img{filter:invert(44%) sepia(13%) saturate(324%) hue-rotate(166deg) brightness(99%) contrast(86%);height:14px;opacity:.7;width:14px}.dropdown-item.active,.dropdown-item:active{background-color:#4f6fa3}.custom-control-input:checked~.custom-control-label:before{background-color:#4f6fa3;border-color:#4f6fa3}.custom-checkbox .custom-control-label:before{border-radius:3px}.b-calendar-grid-body{min-height:228px}.vc-container,.vc-pane-container{border-color:#ced4d9!important;border-radius:3px!important;color:#212529!important}.vc-title{color:#212529!important}.s1-color{color:#07f}.s2-color{color:#fe7701}.s3-color{color:#3b5998}.s4-color{color:#55acee}.s5-color{color:#168de2}.s6-color{color:#cb2027}.s7-color{color:#c13584}.s8-color{color:#32506d}.s9-color{color:#08c}@keyframes rotation{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.resize-animation-stopper *{animation:none!important;transition:none!important}.label-text-small{font-size:.875rem;line-height:1.6}.table-row-item .d-md-table-cell,.table-row-item .d-sm-table-cell,.table-row-item .d-table-cell{border-bottom:1px solid #e6ecf0}.table-row-item .table-row-item-label{font-size:.875rem;line-height:1.6}.table-row-item .table-row-item-name-tip{font-size:11px}.table-row-item .form-check{height:16px;min-height:16px;padding-left:16px}.table-row-item .form-check .form-check-input{margin-left:-16px}.table-row-item:first-child .d-md-table-cell,.table-row-item:first-child .d-sm-table-cell,.table-row-item:first-child .d-table-cell{border-bottom:2px solid #607ea1}.statistics-page{margin:0 auto;max-width:984px}.statistics-page .page-table{font-size:14px;line-height:22px}.legal-page,.shared-page{margin:0 auto;max-width:800px}.legal-page .page-text,.shared-page .page-text{font-size:14px;line-height:22px}.legal-page .page-photos,.shared-page .page-photos{display:flex}.legal-page .page-photos .page-photo,.shared-page .page-photos .page-photo{align-items:center;border-radius:3px;display:flex;height:156px;justify-content:center;width:156px}.legal-page .page-photos .page-photo img,.shared-page .page-photos .page-photo img{border-radius:3px;max-height:100%;max-width:100%}.white-filter{filter:invert(100%) sepia(0) saturate(0) hue-rotate(181deg) brightness(107%) contrast(102%)}.pink-filter{filter:invert(85%) sepia(66%) saturate(400%) hue-rotate(47deg) brightness(104%) contrast(94%)}.networks-cells .network-cell{color:#fff;font-size:16px;height:56px}.networks-cells .network-cell img{height:24px}.networks-cells .network-cell.disabled{background:#e6ecf0;color:#adb5bd}.app-loading{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1055}.app-loading .app-loading-progress{border-radius:6px;height:100px;position:relative;width:100px}.window-form-wrapper{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.billing-info{min-width:250px}.billing-info ul{border-bottom:1px solid #e9ecef;border-top:1px solid #e9ecef;list-style:none}.billing-info ul li{font-size:14px;padding-top:4px}.billing-info ul li:last-child{padding-bottom:4px}.traffic-info{min-width:250px}.traffic-info ul{border-top:1px solid #e9ecef;list-style:none}.traffic-info ul li{font-size:14px;padding-top:4px}.traffic-info ul li:last-child{padding-bottom:4px}.flag-icon{height:14px}.notifications-dropdown{min-width:350px}.notifications-dropdown-list,.notifications-dropdown-middle{border-bottom:1px solid #e9ecef;border-top:1px solid #e9ecef}.notifications-dropdown-list{list-style:none;max-height:calc(100vh - 138
1px);overflow:auto}.notifications-dropdown-list li{border-top:1px solid #e9ecef;font-size:14px;padding-bottom:12px!important;padding-top:12px!important}.notifications-dropdown-list li .error-footer{font-size:12px;margin-top:3px}.notifications-dropdown-list li .error-footer img{height:16px;width:16px}.notifications-dropdown-list li:first-child{border-top:0}.social-account-connect-form{border-radius:6px;max-width:496px}.social-account-connect-form .social-account-photo{background-repeat:no-repeat;background-size:cover;border-radius:50%;height:100px;margin:0 auto;min-width:100px;width:100px}.social-account-connect-form .social-account-name{text-align:center}.social-account-connect-form .social-network-name{font-size:14px;text-align:center}.social-account-connect-form .connect-form-info{border-bottom:1px solid #e6ecf0;border-top:1px solid #e6ecf0;text-align:center}.social-account-connect-form .social-pages .social-page{border:0}.social-account-connect-form .social-pages .social-page .social-page-photo{background-repeat:no-repeat;background-size:cover;border-radius:3px;height:50px;width:50px}.social-account-connect-form .social-pages .social-page .social-page-photo.with-no-photo{color:#dae0e4;font-size:24px}.social-account-connect-form .social-pages .social-page .custom-control-label:after,.social-account-connect-form .social-pages .social-page .custom-control-label:before{left:-32px;top:17px}.social-account-connect-form .social-pages .social-page .custom-checkbox{padding-left:32px!important}.social-account-connect-form .social-pages .social-page.checked{background:#e6ecf0}.social-account-connect-form .footer-buttons{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.form-social-networks .social-network-btn{height:31px;position:relative}.form-social-networks .social-network-btn img{height:16px;width:16px}.form-social-networks .social-network-btn .letter-tip{bottom:0;font-size:10px;line-height:10px;position:absolute;right:1px}.list-item-progress{height:4px}.list-item-stats{font-size:.875rem;max-width:220px;min-width:160px}.topic-number{width:20px}.list-item-network-btn{height:34px;width:34px}.list-item-network-btn img{height:16px;width:16px}.list-item-network-btn .form-switch .form-check-input{margin-top:0}.list-item-network{cursor:default}.list-item-network img{height:16px;width:16px}.btn-outline-primary{border-color:#4f6fa3;color:#4f6fa3}.btn-outline-primary:hover{background-color:#4f6fa3;border-color:#4f6fa3}.page-link{color:#4f6fa3;transition:none}.page-item.active .page-link{background-color:#4f6fa3;border-color:#4f6fa3}.pagination-sm .page-link{line-height:32px;padding:0 12px}.cropper{height:468px}.b-custom-control-sm .custom-file-input,.b-custom-control-sm .custom-file-label,.b-custom-control-sm .custom-file-label:after,.b-custom-control-sm.custom-file,.input-group-sm .custom-file-input,.input-group-sm .custom-file-label,.input-group-sm .custom-file-label:after,.input-group-sm.custom-file{height:32px}.b-dropdown-text{font-size:14px;font-weight:400}.modal-header{display:block}.modal-footer{padding:1rem}.modal-footer>*{margin:0 0 0 8px}.modal-content{border:0;box-shadow:0 2px 40px -2px rgba(0,0,0,.3)}@media (min-width:576px){.modal-md{max-width:528px}}@media (min-width:992px){.modal-lg{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}textarea{font-size:14px;min-height:100px}textarea.comments-textarea{min-height:30px!important}.btn{border-radius:3px;transition:none}.btn.disabled,.btn:disabled{cursor:inherit}.btn,button:focus{box-shadow:none!important}select.form-control-sm{border-radius:.2rem;height:32px}.custom-control-label{font-size:14px;line-height:1.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.custom-control-label:before{transition:none}.custom-control-input:focus~.custom-control-label:before{box-shadow:none!important}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#adb5bd}.not-confirmed-email{border:2px solid #ffc107;border-radius:6px}.clear-date-btn{color:#6c757d;height:29px;padding:0 7px;position:absolute;right:1px;top:1px}.clear-date-btn:hover{color:#212529}.dates-divider{font-size:14px;line-height:32px}.post-form-calendar{padding-top:48px;position:absolute;right:0;top:0}.post-form-calendar .post-form-calendar-btn{border-bottom-right-radius:0;border-top-right-radius:0;height:158px;position:relative;width:32px}.post-form-calendar .post-form-calendar-btn .calendar-btn-caption{line-height:32px;overflow:hidden;position:absolute;right:-53px;top:51px;transform:rotate(-90deg);width:136px}.post-form-calendar .post-form-calendar-btn .calendar-btn-icon{left:0;position:absolute;right:0;text-align:center;top:131px}.post-form-calendar .post-form-calendar-body{bottom:0;position:fixed;right:0;width:294px;z-index:2}.post-form-calendar .post-form-calendar-body .calendar-date{margin:0 auto;width:201px}.post-form-calendar .post-form-calendar-body .calendar-days{border-bottom:1px solid #e6ecf0}.post-form-calendar .post-form-calendar-body .calendar-days .calendar-day{cursor:pointer;text-align:center}.post-form-calendar .post-form-calendar-body .calendar-days .calendar-day .calendar-day-header{font-size:14px;font-weight:700}.post-form-calendar .post-form-calendar-body .calendar-days .calendar-day .calendar-day-footer{font-size:12px}.post-form-calendar .post-form-calendar-body .calendar-body-posts{overflow-y:auto}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item{border-top:1px solid #e6ecf0}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item .posts-item-image{position:relative;width:38px}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item .posts-item-image img{border-radius:3px;height:100%;-o-object-fit:cover;object-fit:cover;position:absolute;width:100%}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item .posts-item-image.
1with-no-image{color:#dae0e4}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item .posts-item-image.with-rotation{color:#ffc107}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item .posts-item-image.with-rotation svg{animation:rotation 2s linear infinite}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item .posts-item-info{font-size:12px;line-height:18px}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item .posts-item-info .posts-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:187px}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item:first-child{border-top:0}.post-form-calendar .post-form-calendar-body .calendar-body-posts .posts-item.active{background-color:#ffffdb}.post-form-calendar .post-form-calendar-close-btn{border:0;border-radius:0;bottom:0;padding:0;position:fixed;right:294px;width:16px}.post-form-calendar .post-form-calendar-close-btn .close-icon{border-radius:4px;height:32px;line-height:32px;text-align:center;width:16px}.post-form-calendar.opened{padding:0;position:relative;width:310px}.load-more-wrapper{border-top:1px solid #e6ecf0}.schedule-posts-blocks .schedule-posts-block .schedule-posts-date{background:#f8f9fa;font-size:14px}.schedule-posts .post-item{border-bottom:1px solid #e6ecf0}.schedule-posts .post-item .post-time{align-self:center;font-size:14px;max-width:64px}.schedule-posts .post-item .post-photo{align-items:center;align-self:center;display:flex;justify-content:center;max-width:60px;position:relative}.schedule-posts .post-item .post-photo img{border-radius:3px;max-height:60px;max-width:60px}.schedule-posts .post-item .post-photo.with-no-photo{color:#dae0e4;font-size:24px}.schedule-posts .post-item .post-photo.with-rotation{color:#ffc107}.schedule-posts .post-item .post-photo.with-rotation svg{animation:rotation 2s linear infinite}.schedule-posts .post-item .post-text{align-self:center;font-size:14px;word-break:break-word}.schedule-posts .post-item .post-actions{align-self:center}.schedule-posts .post-item:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.errors-pagination,.schedule-posts-pagination{border-top:1px solid #e6ecf0}.form-control{border:1px solid #dce1e4;font-size:.875rem;padding:.25rem .5rem}.form-control::-moz-placeholder{color:#868d94}.form-control::placeholder,select.no-items-selected{color:#868d94}.form-control[readonly]{background-color:#fff}.form-control:disabled{background-color:#eff2f4}.form-control:disabled::-moz-placeholder{opacity:.7}.form-control:disabled::placeholder{opacity:.7}.input-for-numbers{width:96px}.form-timepicker-wrapper{border:1px solid #dce1e4;border-radius:.25rem;height:31px;position:relative;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:58px;z-index:1}.form-timepicker-wrapper .form-timepicker-input{border:0;border-radius:0;box-shadow:none;min-height:29px;width:20px;z-index:1}.form-timepicker-wrapper .form-timepicker-input:hover{background-color:#f8f9fa}.form-timepicker-wrapper .form-timepicker-input:focus{background-color:#c8deff}.form-timepicker-wrapper .form-timepicker-input::-moz-selection{background:transparent}.form-timepicker-wrapper .form-timepicker-input::selection{background:transparent}.form-timepicker-wrapper .form-timepicker-colon{font-size:14px;height:24px;line-height:24px;margin-left:-9px;margin-right:-9px}.form-timepicker-wrapper.focused{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25);outline:0}.form-divider{border-top:2px solid #212529}.dropdown-toggle:after{vertical-align:.2em}.dropdown-no-arrow .dropdown-toggle:after{display:none}.dropdown-item.btn-sm{border-radius:0;font-size:14px}.dropdown-item-icon{display:inline-block;text-align:center;width:20px}.dropdown-menu{border:0;border-radius:3px;box-shadow:0 1px 8px 0 rgba(0,0,0,.2);margin:0}.nav-link{border:1px solid transparent;font-weight:500;padding:.375rem .75rem}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:0}.auth-form-wrapper{width:320px}.auth-form-wrapper .auth-form{border-radius:3px;position:relative}.main-video-wrapper .main-video{width:948px}.main-video-wrapper .main-video .main-video-inside{height:530px}.main-video-wrapper .main-video .main-video-inside .videos-from{width:300px}.main-video-wrapper .main-video .main-video-inside .videos-arrow{font-size:50px}.main-video-wrapper .main-video .main-video-inside .videos-to{width:300px}.main-video-wrapper .feed-item .feed-header .feed-page-logo{border-radius:50%;height:40px;width:40px}.main-video-wrapper .feed-item .feed-video{background-position:50%;background-repeat:no-repeat;background-size:cover;height:151px}.main-video-wrapper .feed-item .feed-video .video-icon{background:rgba(0,0,0,.5);border-radius:50%;color:#fff;font-size:23px;height:50px;width:50px}.main-video-wrapper .feed-item .feed-video .video-icon svg{margin-right:-3px}.main-video-wrapper .feed-item .cats-bg{background-image:url("+h+")}.main-video-wrapper .feed-item .boat-bg{background-image:url("+_+")}.main-video-wrapper .network-item .network-logo{align-items:center;border-radius:50%;display:flex;height:40px;justify-content:center;width:40px}.main-video-wrapper .network-item .network-logo img{height:18px;max-width:20px}.help-w-images-50{max-width:50%}.help-w-images-75{max-width:75%}@media (max-width:991px){.main-video-wrapper .main-video{width:648px}.main-video-wrapper .main-video .main-video-inside .videos-from,.main-video-wrapper .main-video .main-video-inside .videos-to{width:250px}
1.main-video-wrapper #youtube-player-1{height:362px;width:648px}.help-w-images-50,.help-w-images-75{max-width:100%}}@media (max-width:767px){.main-video-wrapper .main-video{width:500px}}.discount-news{background:linear-gradient(70deg,#fff7cb,#c0fbff);background:#e2f0e3}.discount-holiday{background:linear-gradient(70deg,#c0fbff,#fff7cb);border-color:#99d2ff;border-width:3px}.discount-holiday .news-body .news-icon,.discount-news .news-body .news-icon{font-size:50px}.app-no-scrolling,.social-network-connect-buttons{overflow:hidden}.social-network-connect-buttons .social-network-connect-btn{border-bottom:2px solid #000;cursor:pointer}.social-network-connect-buttons .social-network-connect-btn .connect-btn-title{font-size:16px}.social-network-connect-buttons .social-network-connect-btn .connect-btn-title .title-tip{opacity:.6}.social-network-connect-buttons .social-network-connect-btn img{height:20px;width:20px}.social-network-connect-buttons .social-network-connect-btn .connect-btn-prefix,.social-network-connect-buttons .social-network-connect-btn .connect-btn-prefix span{opacity:.8}.social-network-connect-buttons .social-network-connect-btn .connect-btn-postfix{bottom:24px;font-size:14px;left:0;position:absolute;right:0;text-align:center}.social-network-connect-buttons .social-network-connect-btn.not-active{cursor:default}.social-network-connect-buttons .row:first-child .social-network-connect-btn:first-child{border-top-left-radius:4px}.social-network-connect-buttons .row:first-child .social-network-connect-btn:last-child{border-top-right-radius:4px}.social-network-connect-buttons .row:last-child .social-network-connect-btn:first-child{border-bottom-left-radius:4px}.social-network-connect-buttons .row:last-child .social-network-connect-btn:last-child{border-bottom-right-radius:4px}.social-network-connect-buttons .social-network-connect-btn:last-child{border-bottom:0}.app-filters{border-bottom:1px solid #e6ecf0}.app-filters .filter-item{min-width:260px}.app-filters .filter-item select{width:100%}.app-header .nav .nav-link{font-size:12px}.burger-btn{color:#fff;cursor:pointer;height:31px;width:73px}.app-logo{height:31px;letter-spacing:5px;width:260px;z-index:1}.app-logo.no-spacing{letter-spacing:inherit}.posts-month-header-grid{grid-template-rows:repeat(1,1fr);grid-gap:0}.posts-month-days-grid,.posts-month-header-grid{display:grid;gap:0;grid-template-columns:repeat(7,1fr);padding:0}.posts-month-days-grid{grid-template-rows:repeat(6,1fr);grid-gap:0}.posts-month-days-grid .grid-item,.posts-month-header-grid .grid-item{border-bottom:1px solid #e6ecf0;border-left:none!important;border-right:1px solid #e6ecf0;border-top:none!important;display:flex}.posts-month-days-grid .grid-item.active,.posts-month-days-grid .grid-item:active,.posts-month-header-grid .grid-item.active,.posts-month-header-grid .grid-item:active{border-color:#e6ecf0!important;border-bottom:1px solid #e6ecf0;border-right:1px solid #e6ecf0}.posts-month-days-grid .grid-item:nth-child(7n),.posts-month-header-grid .grid-item:nth-child(7n){border-right:none!important}.posts-month-header-grid .grid-item{justify-content:right}.posts-month-days-grid .grid-item{flex-direction:column;justify-content:space-between}.posts-month-days-grid .grid-item .posts-count{background:#eaecef;color:#212529;font-size:.875em}.posts-month-days-grid .grid-item.bg-danger .posts-count,.posts-month-days-grid .grid-item.bg-primary .posts-count{background:#fff}.posts-month-days-grid .grid-item:nth-last-child(-n+7){border-bottom:none}.posts-month-filters-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;gap:10px;padding:0}.calendar-post .calendar-post-time{width:48px}.calendar-post .calendar-post-photo{width:64px}.calendar-post .calendar-post-photo .calendar-post-photo-wrapper{height:41px}.calendar-post .calendar-post-photo .calendar-post-photo-wrapper img{max-height:41px;max-width:64px}.calendar-post .calendar-post-photo .calendar-post-photo-wrapper.with-no-photo{color:#dae0e4;font-size:22px}.calendar-post .calendar-post-photo .calendar-post-photo-wrapper.with-rotation{color:#ffc107}.calendar-post .calendar-post-photo .calendar-post-photo-wrapper.with-rotation svg{animation:rotation 2s linear infinite}.is-current{background-color:#dc3545;color:#fff}.text-editor{border:1px solid #dce1e4;border-radius:.375rem;font-size:14px;line-height:20px;max-height:400px;min-height:154px;outline:none;overflow-y:auto;padding:.25rem .5rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.text-editor:focus{border-color:#86b7fe;box-shadow:0 0 0 .25rem rgba(13,110,253,.25);outline:0}.ProseMirror{border:1px solid #dce1e4;border-radius:.375rem;font-size:14px;line-height:20px;max-height:400px;min-height:154px;outline:none;overflow-y:auto;padding:.25rem .5rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.ProseMirror p{margin-bottom:1rem!important}.ProseMirror p:last-child{margin:0!important}.ProseMirror blockquote{border-left:2px solid #212529;margin:0 0 1rem!important;padding-left:.5rem}.ProseMirror blockquote:last-child{margin:0!important}.ProseMirror tg-spoiler{background-color:#212529;color:#fff}.ProseMirror:focus{border-color:#86b7fe;box-shadow:0 0 0 .25rem rgba(13,110,253,.25);outline:0}.ProseMirror:focus-visible{outline:none}.app-sidebar{background:#eef3f9;bottom:0;flex:0 0 262px;left:0;max-width:262px;padding:0;position:fixed;top:0;z-index:999}.app-sidebar .sidebar-sticky{height:calc(100vh - 31px);overflow-x:hidden;overflow-y:auto;position:relative;top:31px}.app-sidebar .sidebar-sticky .app-navigation{width:260px}.app-sidebar .sidebar-sticky .app-navigation .nav-link{color:#202429;position:relative}.app-sidebar .sidebar-sticky .app-navigation .nav-link .nav-link-icon{text-align:center;width:24px}.app-sidebar .sidebar-sticky .app-navigation .nav-link .nav-item-marked{border-radius:4px;
1height:8px;width:8px}.app-sidebar .sidebar-sticky .app-navigation .nav-link.nuxt-link-active,.app-sidebar .sidebar-sticky .app-navigation .nav-link:hover{color:#4f6fa3}.app-sidebar .sidebar-sticky .app-navigation .nav-link.disabled{opacity:.4}.app-sidebar.sidebar-primary{border-right:2px solid #607ea1}.app-sidebar.sidebar-dark{border-right:2px solid #212529}.app-main{padding-left:262px}.app-main-tabs{border-bottom:1px solid #e6ecf0}.app-main-tabs .nav-link{border-radius:3px;color:#202429}.app-main-tabs .nav-link:hover{color:#4f6fa3}.app-main-tabs .nav-link.active-tab,.app-main-tabs .nav-link.nuxt-link-exact-active{background:#f8f9fa;color:#4f6fa3}.app-main-actions{background:#fff;border-bottom:1px solid #e6ecf0;position:sticky;top:31px;z-index:99}.app-main-actions.sticky{border-bottom:0;box-shadow:0 1px 8px 0 rgba(0,0,0,.2)}.app-main-selected-filters{border-bottom:1px solid #e6ecf0}.app-main-selected-filters .filter-btn .filter-value{font-weight:700}.items-list-footer .checkbox-side{width:32px}.items-list-footer .checkbox-side .form-check{min-height:0;min-height:auto}.items-list-footer .checkbox-side .form-check label{display:none}.app-posts-search-list .post-item{width:600px}.app-posts-search-list .post-item .checkbox-col .form-check{min-height:0;min-height:auto}.app-posts-search-list .post-item .checkbox-col .form-check label{display:none}.app-posts-search-list .post-item .owner-photo-col a,.app-posts-search-list .post-item .owner-photo-col img{border-radius:50%;display:block;height:50px;width:50px}.app-posts-search-list .post-item .owner-name{font-size:14px;font-weight:500}.app-posts-search-list .post-item .post-date{font-size:14px;line-height:22px}.app-posts-search-list .post-item .post-text{font-size:14px;line-height:22px;word-break:break-word}.app-posts-search-list .post-item .post-photos{height:400px;margin:-1px;position:relative;width:400px}.app-posts-search-list .post-item .post-photos .post-photos-inside{bottom:0;left:0;position:absolute;right:0;top:0}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo{background-position:50%;background-repeat:no-repeat;background-size:cover;float:left;height:100%;overflow:hidden;position:relative;width:100%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo .video-mark{color:#fff;font-size:.875rem;height:32px;line-height:1.6;padding:.25rem .5rem;position:absolute;right:0;top:0}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo .duration{background:rgba(0,0,0,.6);border-radius:3px;bottom:5px;color:#fff;font-size:12px;padding:2px 6px;position:absolute;right:5px}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-child(10)~.post-photo{display:none}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:only-child{background-size:contain}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+2),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+2)~*{width:50%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+3)~.post-photo:last-child,.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+3)~.post-photo:nth-last-child(2),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+4),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+4)~*{height:50%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+5)~*{width:33.333%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+5),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+5)~.post-photo:first-child,.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+5)~.post-photo:nth-child(2){width:50%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+6),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+6)~*,.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+6)~.post-photo:nth-child(2),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+6)~.post-photo:nth-child(4),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+6)~.post-photo:nth-child(5),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+6)~.post-photo:nth-child(6){width:33.333%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+7)~.post-photo:nth-child(4),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+7)~.post-photo:nth-child(5),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+7)~.post-photo:nth-child(6),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+7)~.post-photo:nth-child(7){width:25%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+7),.a
1pp-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+7)~.post-photo:nth-child(2),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+7)~.post-photo:nth-child(3){width:33.333%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+8),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+8)~.post-photo:nth-child(2),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+8)~.post-photo:nth-child(3),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+8)~.post-photo:nth-child(6),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+8)~.post-photo:nth-child(7),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+8)~.post-photo:nth-child(8){height:33.333%;width:33.333%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+8)~.post-photo:nth-child(4),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+8)~.post-photo:nth-child(5){height:33.333%;width:50%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:last-child,.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(10),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(2),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(3),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(8),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(9),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9)~.post-photo:nth-child(2),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9)~.post-photo:nth-child(3),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9)~.post-photo:nth-child(4),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9)~.post-photo:nth-child(5),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9)~.post-photo:nth-child(6),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9)~.post-photo:nth-child(7),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9)~.post-photo:nth-child(8),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+9)~.post-photo:nth-child(9){height:33.333%;width:33.333%}.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(4),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(5),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(6),.app-posts-search-list .post-item .post-photos .post-photos-inside .post-photo:nth-last-child(n+10)~.post-photo:nth-child(7){height:33.333%;width:25%}.app-posts-search-list .post-item .post-photos.single-photo{height:auto;margin:auto;width:auto}.app-posts-search-list .post-item .post-photos.single-photo .post-photos-inside{display:flex;position:static}.app-posts-search-list .post-item .post-photos.single-photo .post-photos-inside .post-photo{float:none;height:auto;width:auto}.app-posts-search-list .post-item .post-photos.single-photo .post-photos-inside .post-photo img{border-radius:3px;display:block;max-height:400px;max-width:400px;position:static}.app-posts-search-list .post-item .post-counters{font-size:14px;line-height:22px}.app-posts-search-list .post-item-in-form{background:none;width:auto}.app-posts-list .post-item{border-bottom:1px solid #e6ecf0}.app-posts-list .post-item .post-item-checkbox-col .form-check{min-height:0;min-height:auto}.app-posts-list .post-item .post-item-checkbox-col .form-check label{display:none}.app-posts-list .post-item .post-item-time-col{cursor:default;font-size:14px;line-height:22px;max-width:120px}.app-posts-list .post-item .post-item-photo-col{max-width:160px;position:relative}.app-posts-list .post-item .post-item-photo-col img{border-radius:3px;max-height:100px;max-width:100%}.app-posts-list .post-item .post-item-photo-col.with-no-photo{color:#dae0e4;font-size:32px}.app-posts-list .post-item .post-item-photo-col.with-rotation{color:#ffc107;font-size:24px}.app-posts-list .post-item .post-item-photo-col.with-rotation svg{animation:rotation 2s linear infinite}.app-posts-list .post-item .post-item-text-col{cursor:default;font-size:14px;line-height:22px;word-break:break-word}.app-posts-list .post-item.grid{border:0}.app-posts-list .post-item.grid .post-item-time{font-size:14px;line-height:22px}.app-posts-list .post-item.grid .post-item-body{background-color:#f8f9fa;background-position:50%;background-size:cover;border-radius:3px;padding-bottom:100%;position:relative}.app-posts-list .post-item.grid .post-item-body .no-photo-body{bottom:0;color:#dae0e4;font-size:24px;height:30px;left:0;line-height:30px;margin:auto;position:absolute;right:0;top:0}.app-posts-list .post-item.grid .post-item-body .no-photo-body.with-rotation{color:#ffc107}.app-posts-list .post-item.grid .post-item-body .no-photo-body.with-rotation svg{animation:rotation 2s linear infinite}.app-posts-list .post-item.columns{border-bottom:0;border-top:2px solid #607ea1;font-size:14px}.app-posts-list .post-item.columns .post-item-time{font-size:14px;line-height:22px}.app-posts-list .post-item.columns .post-item-photo-col{max-width:none}.app-posts-list .post-item.columns .post-item-photo-col .post-item-photo{position:relative}.app-posts-list .post-item.columns .post-item-photo-col .post-item-photo img{border-radius:3px;max-width:100%}.app-posts-list .post-item.columns .post-item-photo-col .post-item-photo.with-no-photo{color:#dae0e4;font-size:24px}.app-posts-list .post-item.columns .post-item-photo-col .post-item-photo.with-rotation{color:#ffc107}.app-posts-list .post-item.columns .post-item-photo-col .post-item-photo.with-rotation svg{animation:rotation 2s linear infinite}.app-posts-list .post-item.columns .post-item-text{font-size:12px}.post-item-video-mark{background-color:hsla(0,0%,100%,.8);border-bottom-left-radius:3px;border-top-right-radius:3px;color:#000;font-size:12px;line-height:1.6;padding:2px 6px;position:absolute;right:0;top:0}.post-item-video-duration{background:rgba(0,0,0,.6);border-radius:3px;bottom:0;color:#fff;font-size:10px;height:16px;left:0;line-height:16px;padding:0 4px;position:absolute;text-align:center}.animated-background{transition:background-color .3s}.animated-background.updated{background-color:#ffffdb!important}.app-accounts-list .account-photo{background-color:#fff;background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:50%;color:#dae0e4;font-size:24px;height:50px;min-width:50px;width:50px}.vk-qr-code-box{font-size:36px;height:188px;overflow:hidden;width:188px}.vk-qr-code-box img{display:block;height:188px;width:188px}.tn-captcha-box{height:180px;overflow:hidden;width:320px}.tn-captcha-box img{display:block;height:180px;width:320px}.tn-captcha-task-box{height:52px;overflow:hidden;width:320px}.tn-captcha-task-box img{display:block;height:52px;width:320px}.yp-captcha-box{height:130px;overflow:hidden;width:320px}.yp-captcha-box img{display:block;height:130px;width:320px}.app-main-form{border-top:1px solid #e6ecf0}.form-create-title{height:31px;line-height:31px}.text-16,.text-tip-16{font-size:16px}.text-14,.text-tip-14{font-size:14px}.text-12,.text-tip-12{font-size:12px}.page-tip{width:300px}.form-text-tip{border:1px solid #4f6fa3;font-size:14px}.form-wrapper{max-width:496px;position:relative}.form-wrapper .files-drag-place{border-style:dashed!important;bottom:0;left:0;right:0;top:0;z-index:3}.form-wrapper .form-footer-buttons{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.form-wrapper .photo-crop-type-btn{height:64px;width:64px}.form-wrapper .photo-crop-type-btn .photo-crop-type-header{height:32px}.form-wrapper .photo-crop-type-btn .photo-crop-type-header .photo-crop-type-icon{border-radius:3px}.form-wrapper .photo-crop-type-btn .photo-crop-type-header .photo-crop-type-icon.custom-type{border:1px dashed #7f828b;height:24px;width:24px}.form-wrapper .photo-crop-type-btn .photo-crop-type-header .photo-crop-type-icon.square-type{border:1px solid #7f828b;height:24px;width:24px}.form-wrapper .photo-crop-type-btn .photo-crop-type-header .photo-crop-type-icon.ratio-4-3{border:1px solid #7f828b;height:17px;width:24px}.form-wrapper .photo-crop-type-btn .photo-crop-type-header .photo-crop-type-icon.ratio-4-5{border:1px solid #7f828b;height:24px;width:19px}.form-wrapper .photo-crop-type-btn .photo-crop-type-header .photo-crop-type-icon.ratio-16-9{border:1px solid #7f828b;height:13px;width:24px}.form-wrapper .photo-crop-type-btn .photo-crop-type-header .photo-crop-type-icon.ratio-9-16{border:1px solid #7f828b;height:24px;width:13px}.form-wrapper .photo-crop-type-btn .photo-crop-type-footer{font-size:10px;height:32px;line-height:32px}.form-wrapper .post-form-photos{line-height:0}.form-wrapper .post-form-photos .post-form-photo{align-items:center;border-radius:3px;
1cursor:move;display:flex;height:86px;justify-content:center;position:relative;width:86px}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-blur{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:3px;height:100%;opacity:.5}.form-wrapper .post-form-photos .post-form-photo a{align-items:center;display:flex;height:86px;justify-content:center;position:relative;width:86px}.form-wrapper .post-form-photos .post-form-photo .canvas-objects{height:86px;position:relative;width:86px}.form-wrapper .post-form-photos .post-form-photo .canvas-objects canvas{bottom:0;left:0;position:absolute;right:0;top:0}.form-wrapper .post-form-photos .post-form-photo .canvas-objects canvas,.form-wrapper .post-form-photos .post-form-photo img,.form-wrapper .post-form-photos .post-form-photo video{border-radius:3px;cursor:move;margin:auto;max-height:86px;max-width:86px}.form-wrapper .post-form-photos .post-form-photo video{visibility:hidden}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-uploading{bottom:0;height:100%;position:absolute;right:0;width:100%}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-uploading .post-form-photo-uploading-inside{height:100%;position:relative}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-uploading .post-form-photo-uploading-inside .post-form-photo-uploading-bg{background:#fff;border-radius:3px;bottom:0;height:100%;opacity:.7;position:absolute;right:0;width:100%}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-uploading .post-form-photo-uploading-inside .post-form-photo-uploading-progress{background:#e6ecf0;border-top:1px solid #fff;bottom:0;height:3px;position:absolute;width:100%}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-uploading .post-form-photo-uploading-inside .post-form-photo-uploading-progress .post-form-photo-uploading-progress-bar{background:#4f6fa3;height:2px;transition:all .3s;width:0}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-video-icon{border-radius:3px;bottom:0;color:#fff;font-size:14px;height:24px;left:0;line-height:24px;margin:auto;position:absolute;right:0;text-align:center;top:0;width:24px}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-social-icon{align-items:center;background-color:rgba(0,0,0,.5);border-bottom-right-radius:3px;border-top-left-radius:3px;display:flex;font-size:14px;height:21px;justify-content:center;left:0;position:absolute;top:0;width:22px}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-info-icon{align-items:center;border-bottom-left-radius:3px;border-top-right-radius:3px;bottom:0;display:flex;font-size:14px;height:21px;justify-content:center;left:0;position:absolute;width:22px}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-crop-btn,.form-wrapper .post-form-photos .post-form-photo .post-form-photo-delete-btn,.form-wrapper .post-form-photos .post-form-photo .post-form-photo-edit-btn{font-size:14px;opacity:.6;padding:0 6px;position:absolute}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-delete-btn{right:0;top:0}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-crop-btn{bottom:0;left:0}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-edit-btn{bottom:0;right:0}.form-wrapper .post-form-photos .post-form-photo .post-form-photo-duration{background:rgba(0,0,0,.6);border-radius:3px;bottom:0;color:#fff;cursor:move;font-size:10px;height:16px;left:0;line-height:16px;padding:0 4px;position:absolute;text-align:center}.form-wrapper .post-form-photos .post-form-photo:hover .post-form-photo-crop-btn,.form-wrapper .post-form-photos .post-form-photo:hover .post-form-photo-delete-btn,.form-wrapper .post-form-photos .post-form-photo:hover .post-form-photo-edit-btn{opacity:1}.form-wrapper .post-form-document .post-form-document-name{font-size:14px}.form-wrapper .post-form-document .post-form-document-name:hover{color:#4f6fa3}.form-wrapper .post-form-audio .post-form-audio-name,.form-wrapper .post-form-document .post-form-document-size{font-size:14px}.form-wrapper .form-fieldset{border-top:1px solid #e6ecf0}.form-wrapper .form-fieldset .form-fieldset-legend{font-size:14px}.form-wrapper .form-fieldset.no-border{border:0}.form-wrapper .texts-sources-list{max-height:220px;overflow-y:auto}.form-wrapper .textarea-wrapper{position:relative}.form-wrapper .textarea-wrapper .emoji-picker-holder{position:absolute;right:0;top:32px;z-index:2}.form-wrapper .textarea-wrapper .emoji-picker-holder #EmojiPicker{background:#fff;border:0;border-radius:3px;box-shadow:0 1px 8px 0 rgba(0,0,0,.2);width:362px}.form-wrapper .textarea-wrapper .emoji-picker-holder #EmojiPicker .container-search input{background-color:transparent;background-color:initial;border-radius:6px}.form-wrapper .textarea-wrapper .emoji-picker-holder #EmojiPicker #Emojis{display:flex;height:263px;justify-content:center;overflow-y:auto}.form-wrapper .textarea-wrapper .emoji-picker-holder #EmojiPicker .container-emoji{height:auto;overflow-x:visible;overflow-x:initial;overflow-y:visible;overflow-y:initial}.form-wrapper .textarea-wrapper .emoji-picker-holder #EmojiPicker .container-emoji .grid-emojis{display:block;line-height:0;margin:0;padding:4px 0;width:320px}.form-wrapper .textarea-wrapper .emoji-picker-holder #EmojiPicker .container-emoji .grid-emojis .emoji{border-radius:3px;font-size:22px!important;height:26px!important;line-height:26px!important;width:26px!important}.form-wrapper .textarea-wrapper .emoji-picker-holder #EmojiPicker .container-emoji .grid-emojis .emoji:hover{background:#e2e6ea;transform:none}.form-wrapper .textarea-wrapper .emoji-picker-holder #Categories{background:#fff;border-bottom:1px solid #e6ecf0;line-height:0}.form-wrapper .textarea-wrapper .emoji-picker-holder #Categories .category{padding:10px 0}.form-wrapper .textarea-wrapper .emoji-picker-holder #Categories .category.active{border-bottom:3px solid #4f6fa3;filter:none}.form-wrapper .textarea-wrapper .emoji-picker-holder #Categories .category:hover{filter:none}.form-wrapper .textarea-wrapper .emoji-picker-holder #Categories .category.active{padding-bottom:7px}.form-wrapper textarea{font-size:14px;line-height:20px;max-height:400px;min-height:154px;overflow-y:auto;resize:none}.form-wrapper textarea.small-height{min-height:100px}.form-wrapper textarea.as-input{min-height:31px}.form-wrapper .network-pages-selected{line-height:0}.form-wrapper .network-pages-selected .network-page-select-btn{border-radius:50%;height:48px;line-height:46px;text-align:center;width:48px}.form-wrapper .network-pages-selected .network-page-selected{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:3px;height:48px;width:48px}.form-wrapper .network-pages-selected .network-page-selected .network-page-selected-delete-btn{border-radius:2px;font-size:14px;line-height:16px;opacity:.6;padding:0 3px;right:0;top:0}.form-wrapper .network-pages-selected .network-page-selected .network-page-selected-album-mark{border-radius:2px;bottom:0;font-size:14px;left:0;line-height:16px;padding:0 3px}.form-wrapper .network-pages-selected .network-page-selected .page-selected-inside{background-size:cover;border-radius:50%;height:48px;width:48px}.form-wrapper .network-pages-selected .network-page-selected .page-selected-photo{background:#fff no-repeat 50%;background-size:cover;border-radius:50%;height:48px;width:48px}.form-wrapper .network-pages-selected .network-page-selected:hover .network-page-selected-delete-btn{opacity:1}.form-wrapper .network-pages .network-account-name,.form-wrapper .network-pages .no-pages{font-size:14px;line-height:32px}.form-wrapper .network-pages .network-page{border-radius:3px;
1cursor:pointer;font-size:14px;line-height:32px}.form-wrapper .network-pages .network-page .network-page-photo{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:50%;display:block;height:32px;width:32px}.form-wrapper .network-pages .network-page .network-page-name a{color:#202429;-webkit-text-decoration:none;text-decoration:none}.form-wrapper .network-pages .network-page .network-page-name a:hover{color:#4f6fa3}.form-wrapper .network-pages .network-page .network-page-name a:first-child{max-width:50%}.form-wrapper .network-pages .network-page .network-page-name .network-page-errors{line-height:18px}.form-wrapper .network-pages .network-page:hover{background:#fafbfc}.form-wrapper .network-pages .network-page.no-hover{cursor:default}.form-wrapper .network-pages .network-page.no-hover:hover{background:none}.form-wrapper.wide-form{max-width:none}.my-photos-list{border:1px solid #e6ecf0;height:350px;overflow-y:scroll}.my-photos-list .my-photos-item .item-photo{height:60px;min-width:60px;width:60px}.my-photos-list .my-photos-item .item-photo img{max-height:100%;max-width:100%}.my-photos-list .my-photos-item .item-info .item-info-text{font-size:14px;line-height:22px}.my-albums-list{border:1px solid #e6ecf0;max-height:350px;overflow-y:scroll}.my-albums-list .my-albums-item .item-photo{height:60px;min-width:60px;width:60px}.my-albums-list .my-albums-item .item-photo img{max-height:100%;max-width:100%}.my-albums-list .my-albums-item .item-info .item-info-text{font-size:14px;line-height:22px}.tip-images img{display:block;width:100%}.schedule-wrapper{border:1px solid #ced4da;border-radius:3px;overflow:hidden;position:relative}.schedule-wrapper .schedule-times{max-height:320px;overflow:auto}.schedule-wrapper .schedule-times-header-col{font-weight:700;text-align:center}.schedule-wrapper .schedule-times-controls-col{border-top:1px solid #e6ecf0}.schedule-wrapper .schedule-times-controls-col .schedule-time-picker{margin:0 auto}.schedule-wrapper .schedule-times-time-col{font-size:.875rem;text-align:center}.schedule-wrapper .schedule-times-time-col .schedule-times-time{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:center;line-height:40px;position:relative}.schedule-wrapper .schedule-times-time-col .schedule-times-time:hover{color:#dc3545;-webkit-text-decoration:line-through;text-decoration:line-through}.schedule-wrapper.has-times .schedule-times-header-col{border-bottom:1px solid #e6ecf0}.schedule-wrapper.has-times .schedule-times-controls-col{border-top:0}.payment-status-form{overflow-y:scroll;padding-top:calc(25vh - 103px)}.payment-status-form .payment-title{font-size:32px}.payment-status-form .payment-icon{font-size:128px}.feature-btn{border-radius:3px;height:176px;position:relative}.feature-btn .feature-icon{position:absolute;right:0;top:0}.feature-btn .feature-icon img{filter:invert(100%) sepia(0) saturate(0) hue-rotate(181deg) brightness(107%) contrast(102%);height:64px;width:64px}.feature-btn .feature-name{bottom:0;font-size:18px;left:0;line-height:28px;position:absolute}.form-map{border-radius:3px;height:250px}.billing-prices .vip-bg{background:url("+f+") 50%;background-size:contain}.billing-prices .name-column{min-width:60px}.billing-prices .price-column{min-width:120px}.billing-prices .month{font-size:14px}.billing-prices .price-before{-webkit-text-decoration:line-through;text-decoration:line-through}.billing-prices .price-before span,.billing-prices ul li{font-size:14px}.pay-btn img{height:21px}.custom-range-slider{height:20px}.custom-range-slider .range-slider{display:block;padding:0;width:auto}.custom-range-slider .range-slider-knob{background-color:#4f6fa3;border:1px solid #4f6fa3;box-shadow:none}.custom-range-slider .range-slider-fill{background-color:#4f6fa3}.preview-image-wrapper{background-position:50%;background-repeat:no-repeat;background-size:contain;height:100px;position:relative}.watermark-image-wrapper{background-position:50%;background-size:cover;border-radius:3px;height:270px;position:relative}.watermark-image-wrapper img{border-radius:3px;position:absolute}.app-watermarks-list .watermark-photo{background-position:50%;background-repeat:no-repeat;background-size:contain;border-radius:3px;height:50px;width:50px}.logs .logs-item{border-bottom:1px solid #e6ecf0;margin-bottom:10px;padding-bottom:14px}.logs .logs-item .log-social-network-icon{background:#f1f1f1;border-radius:3px;padding:2px 4px 3px}.logs .logs-item:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.price-plans .price-plan{border:1px solid #e6ecf0;border-radius:.3rem;width:250px}.price-plans .price-plan .plan-cost,.price-plans .price-plan .plan-features,.price-plans .price-plan .plan-period,.price-plans .price-plan .plan-title{text-align:center}.price-plans .price-plan .plan-cost{font-size:24px;font-weight:700}.price-plans .price-plan .plan-cost .plan-cost-postfix{font-size:14px;font-weight:400}.price-plans .price-plan .plan-period{font-size:14px}.price-plans .best-plan{background-color:#4f6fa3;border-color:#4f6fa3}.price-plans .best-plan .plan-cost,.price-plans .best-plan .plan-features,.price-plans .best-plan .plan-period,.price-plans .best-plan .plan-title{color:#fff}.price-plans .best-plan .plan-cost .plan-cost-postfix{color:#acbfd6}.main-page-block{height:100vh}.main-page-header-back{height:100%;width:100%}.main-page-header-back .main-page-side-features{height:400px;position:absolute;width:100%}.main-page-header-back .main-page-clock{border-radius:50%;height:400px;overflow:hidden;position:relative;width:400px}.main-page-header-back .main-page-clock .clock-networks-wrapper{border-radius:50%;height:400px;position:absolute;width:400px}.main-page-header-back .main-page-clock .clock-networks-wrapper .clock-networks{color:hsla(0,0%,100%,.5);font-size:12px;line-height:18px;margin-top:250px;
1width:200px}.main-page-header-back .main-page-clock .clock-arrow-wrapper{border-radius:50%;height:400px;position:absolute;width:400px}.main-page-header-back .main-page-clock .clock-arrow-wrapper .clock-hours-arrow{border-top-left-radius:6px;border-top-right-radius:6px;height:98px;width:12px}.main-page-header-back .main-page-clock .clock-arrow-wrapper .clock-minutes-arrow{border-top-left-radius:4px;border-top-right-radius:4px;height:148px;width:8px}.main-page-header-back .main-page-clock .clock-hours-arrow-wrapper{padding-top:102px;transform:rotate(-45deg)}.main-page-header-back .main-page-clock .clock-minutes-arrow-wrapper{padding-top:52px;transform:rotate(45deg)}.main-page-header-back .main-page-clock .clock-arrows-round{border:1px solid #617fa1;border-radius:12px;height:24px;width:24px}.main-page-header-back .main-page-clock .clock-time-lines-wrapper{border-radius:50%;height:400px;position:absolute;width:400px}.main-page-header-back .main-page-clock .clock-time-lines-wrapper .clock-time-line{height:36px;width:400px}.main-page-header-back .main-page-clock .clock-time-lines-wrapper .clock-time-line .time-line-side{align-items:center;border-radius:50%;display:flex;height:36px;justify-content:center;width:36px}.main-page-header-back .main-page-clock .clock-time-lines-wrapper .clock-time-line .time-line-side img{height:22px;width:22px}.main-page-header-back .main-page-clock .clock-time-lines-wrapper .clock-time-line .time-line-side.not-active{color:rgba(0,0,0,.4)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-2{transform:rotate(90deg)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-2 .time-line-side{transform:rotate(-90deg)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-3{transform:rotate(60deg)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-3 .time-line-side{transform:rotate(-60deg)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-4{transform:rotate(30deg)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-4 .time-line-side,.main-page-header-back .main-page-clock .clock-time-lines-wrapper-5{transform:rotate(-30deg)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-5 .time-line-side{transform:rotate(30deg)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-6{transform:rotate(-60deg)}.main-page-header-back .main-page-clock .clock-time-lines-wrapper-6 .time-line-side{transform:rotate(60deg)}.main-page-header-front{height:100%;width:100%}.main-page-header-front .main-page-header-links{display:flex}.service-title{backdrop-filter:blur(5px);background:rgba(97,127,161,.4);font-size:30px}.key-feature .info-side{width:450px}.key-feature .info-side .feature-icon{border:1px solid rgba(0,0,0,.2);border-radius:6px;font-size:28px;height:70px;width:70px}.key-feature .info-side h3{font-size:28px;font-weight:700;line-height:40px}.key-feature .info-side .feature-description{font-size:20px;line-height:32px}.key-feature .info-side .feature-postfix{color:#9f9f9f;font-size:16px;line-height:26px}.key-feature .info-side .feature-postfix a{color:#212529}.key-feature .info-side .image-box{background:#fff;border-radius:6px;border-top:12px solid #4f6fa3;height:372px;overflow:hidden;width:450px}.key-feature .info-side .image-box .inside{background-repeat:no-repeat;background-size:cover;height:100%}.key-feature .left-side{order:1}.key-feature .right-side{order:2}.key-feature.dark-mode{background-color:#4f6fa3}.key-feature.dark-mode .info-side{color:#fff}.key-feature.dark-mode .info-side .feature-icon{border:1px solid hsla(0,0%,100%,.2)}.key-feature.dark-mode .info-side .feature-postfix{color:#9cb3ce}.key-feature.dark-mode .info-side .feature-postfix a{color:#fff}.key-feature.dark-mode .info-side .image-box{border-top:12px solid #fff}.big-index-title{font-size:28px;font-weight:700;line-height:40px;text-align:center}.big-index-title span{font-weight:400}.social-networks-features{margin:0 auto;width:948px}.social-networks-features .feature-item{width:316px}.social-networks-features .feature-item .item-title{font-size:28px;line-height:40px}.social-networks-features .feature-item .item-title span{border-radius:3px;display:block}.social-networks-features .feature-item ul{font-size:16px;line-height:24px}.social-networks-features .feature-item ul li{opacity:.7}.prices .plan{border-radius:6px;width:244px}.prices .plan .plan-price,.prices .plan .plan-title{font-size:28px;line-height:40px}.prices .plan .plan-price{font-weight:700}.prices .plan .plan-price span{font-size:24px}.prices .plan ul{list-style-type:none}.prices .plan-best{background-color:#ffc107}.prices-tabs .plan-tab{border-radius:3px;font-size:28px;line-height:40px;width:150px}.prices-tabs .plan-content{margin:0 auto;width:250px}.prices-tabs .plan-content .plan-price{font-size:28px;font-weight:700;line-height:40px}.prices-tabs .plan-content .plan-price span{font-size:24px}.prices-tabs .plan-content ul{list-style-type:none}.new-feature h2{font-size:24px}.new-feature h4{font-size:24px;font-weight:400}@media (max-width:991px){.app-logo{font-size:0;width:75px}.app-sidebar{flex:0 0 75px;max-width:75px}.app-sidebar.opened{box-shadow:1px 0 8px 0 rgba(0,0,0,.2);flex:0 0 262px;max-width:262px}.app-main{padding-left:75px}.app-main-loading,.sticky-main-actions{left:75px}.key-feature .info-side{width:auto}
1.key-feature .info-side .feature-icon{margin:0 auto}.key-feature .info-side .image-box{height:auto;margin:0 auto;max-width:450px;width:100%}.key-feature .info-side .image-box .inside{height:auto;padding-top:80%}.key-feature .left-side{order:2}.key-feature .right-side{order:1}.social-networks-features{width:632px}}@media (max-width:767px){.main-page-header-front .main-page-header-links{display:none}.app-posts-list .post-item .post-item-actions-col,.app-posts-list .post-item .post-item-time-col{max-width:100%}.app-posts-list .post-item .post-item-photo-col{max-width:200px}.app-posts-list .posts-columns-header{background:#f8f9fa}.app-posts-list .post-item.columns{border-top:1px solid #e6ecf0}.app-posts-list .post-item.columns .post-item-photo-col{max-width:200px}.app-posts-list .post-item.columns .post-item-text{font-size:14px}.app-posts-list .post-item.columns:first-child{border-top:2px solid #607ea1}.table-row-item{border-bottom:1px solid #e6ecf0}.table-row-item .d-md-table-cell,.table-row-item .d-sm-table-cell,.table-row-item .d-table-cell{border-bottom:0}.table-row-item .table-row-item-name{font-weight:700}.table-row-item .table-row-item-text{font-weight:700;width:100%}.table-row-item .table-row-item-footer{font-size:.875rem;line-height:1.6}.schedule-posts .post-item .post-time{max-width:100%}.social-networks-features{width:316px}.app-posts-search-list .post-item{background:none;width:auto}}@media (max-height:767px),(max-width:575px){.service-title{font-size:24px}.main-page-header-front .main-page-header-links{display:none}.main-page-header-back .main-page-side-features{height:300px}.main-page-header-back .main-page-clock,.main-page-header-back .main-page-clock .clock-networks-wrapper{height:300px;width:300px}.main-page-header-back .main-page-clock .clock-networks-wrapper .clock-networks{margin-top:200px}.main-page-header-back .main-page-clock .clock-arrow-wrapper{height:300px;width:300px}.main-page-header-back .main-page-clock .clock-arrow-wrapper .clock-hours-arrow{height:73px}.main-page-header-back .main-page-clock .clock-arrow-wrapper .clock-minutes-arrow{height:111px}.main-page-header-back .main-page-clock .clock-hours-arrow-wrapper{padding-top:77px}.main-page-header-back .main-page-clock .clock-minutes-arrow-wrapper{padding-top:39px}.main-page-header-back .main-page-clock .clock-time-lines-wrapper{height:300px;width:300px}.main-page-header-back .main-page-clock .clock-time-lines-wrapper .clock-time-line{height:28px;width:300px}.main-page-header-back .main-page-clock .clock-time-lines-wrapper .clock-time-line .time-line-side{font-size:22px;height:28px;line-height:28px;width:28px}}@media (max-width:575px){.app-sidebar{display:none}.app-sidebar.opened{display:block}.app-main{padding-left:0}.new-feature h4{font-size:18px}.form-create-title{height:auto}.app-posts-list .post-item .post-item-photo-col,.app-posts-list .post-item.columns .post-item-photo-col{max-width:160px}.app-posts-search-list .post-item .post-photos{height:260px;width:260px}.app-posts-search-list .post-item .post-photos.single-photo .post-photos-inside .post-photo img{max-height:260px;max-width:260px}.prices-tabs .plan-tab{margin:0 auto;width:100%}}@media (max-width:420px){.page-tip{border-width:0!important;padding-bottom:0!important;padding-top:0!important;width:auto}}",""]),m.locals={},t.exports=m},,function(t,e,o){t.exports=o.p+"img/cats.bcd16d2.jpeg"},function(t,e,o){t.exports=o.p+"img/boat.a34f522.jpeg"},function(t,e,o){t.exports=o.p+"img/vip-bg.97160cf.jpeg"},function(t,e,o){var map={"./en.svg":562,"./ru.svg":563};function n(t){var e=r(t);return o(e)}function r(t){if(!o.o(map,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return map[t]}n.keys=function(){return Object.keys(map)},n.resolve=r,t.exports=n,n.id=561},function(t,e,o){t.exports=o.p+"12d247d776037ddc825f82c828375ba6.svg"},function(t,e,o){t.exports=o.p+"267d97db3e8a53b4100c0099d608b61f.svg"},function(t,e,o){t.exports=o.p+"d343a6a22e0e2dc4e8a4a58f4efddeb8.svg"},function(t,e,o){t.exports=o.p+"d6bb8c5b3058077f7e24f67ff4f02102.svg"},function(t,e,o){t.exports=o.p+"f7914d3adcbcbf37050c1df21f4c65ca.svg"},function(t,e,o){t.exports=o.p+"d2561fe9d7e7a63e4c8ff0883fa91653.svg"},function(t,e,o){t.exports=o.p+"876e915114591b6d7d997e5025c3a2db.svg"},function(t,e,o){t.exports=o.p+"36c1d41005625f981d9188548f8693ba.svg"},function(t,e,o){t.exports=o.p+"37294dff8657a7c5453c62b1cd52350f.svg"},function(t,e,o){t.exports=o.p+"ff747d6a583060b6c5e4032b32668e81.svg"},function(t,e,o){t.exports=o.p+"8830a1a59c9637e4ec80d6a37a90073f.svg"},function(t,e,o){t.exports=o.p+"2272772bcb495b012d24a6b095a2cfb0.svg"},function(t,e,o){t.exports=o.p+"98533d858e9bf5d1b08b85893cd77119.svg"},function(t,e,o){t.exports=o.p+"afd827ab4873518fed0e74b66535a53e.svg"},function(t,e,o){t.exports=o.p+"6dbe4c4a46494b986a014b72c7817c31.svg"},function(t,e,o){t.exports=o.p+"e42eeab1b1ba27fae90c4f9dbadc7021.svg"},function(t,e,o){t.exports=o.p+"a7c74dde061cf7daa94c6b74932e9c40.svg"},function(t,e,o){t.exports=o.p+"d3666d9dc9da9f97da068e4f2d6579cb.svg"},function(t,e,o){t.exports=o.p+"0dd128456ffd3b4caf796e69ff59245c.svg"},function(t,e,o){t.exports=o.p+"07ed7b83fa09be0e34ad2b0d844deaf7.svg"},,function(t,e,o){t.exports=o.p+"bf3e85c310037f4f0b556e44ecdc7142.svg"},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){"use strict";o(378)},function(t,e,o){var n=o(112)(function(i){return i[1]});n.push([t.i,".reference-photo-preview img[data-v-805078da]{height:72px;-o-object-fit:cover;object-fit:cover;width:72px}.reference-photo-note[data-v-805078da]{min-height:72px!important;resize:none}",""]),n.locals={}
1,t.exports=n},function(t,e,o){"use strict";o.r(e);var n=o(11),r=(o(24),o(16)),c=o(30);r.default.use(c.a),e.default={actions:{nuxtServerInit:function(t,e){return Object(n.a)(regeneratorRuntime.mark(function o(){var n,r,c;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=t.commit,r=t.dispatch,c=e.req,e.app,n("global/originalHost",c.headers.host),o.prev=1,o.next=2,r("settings/fetchSettings");case 2:o.next=4;break;case 3:o.prev=3,o.catch(1);case 4:case"end":return o.stop()}},o,null,[[1,3]])}))()}}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=function(){return{sortByDefault:null,sortDirectionDefault:null,sortBy:null,sortDirection:null}},r={sortByDefault:function(t){return t.sortByDefault},sortDirectionDefault:function(t){return t.sortDirectionDefault},sortBy:function(t){return t.sortBy},sortDirection:function(t){return t.sortDirection}},c={sortByDefault:function(t,e){t.sortByDefault=e},sortDirectionDefault:function(t,e){t.sortDirectionDefault=e},sortBy:function(t,e){t.sortBy=e},sortDirection:function(t,e){t.sortDirection=e}},l={init:function(t,e){var o=t.commit,n=e.sort_by_default,r=e.sort_direction_default;o("sortByDefault",n),o("sortDirectionDefault",r)}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c});var n=function(){return{isSocketAvailable:!1}},r={isSocketAvailable:function(t){return t.isSocketAvailable}},c={isSocketAvailable:function(t,e){t.isSocketAvailable=e}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c});var n=function(){return{unusedSourcesIds:[]}},r={unusedSourcesIds:function(t){return t.unusedSourcesIds}},c={unusedSourcesIds:function(t,e){t.unusedSourcesIds=e}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c});var n=function(){return{isOpened:!1}},r={isOpened:function(t){return t.isOpened}},c={isOpened:function(t,e){t.isOpened=e}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),function(){return{id:0,planType:0,timezoneOffset:0,navigation:[],isHasEmail:!1,isHasNotifications:0,isHasPublicationNotifications:0,isHasNews:0,isShowErrors:0,isHasSpecialOffer:0,startSubscriptionDays:0,proSubscriptionDays:0,vipSubscriptionDays:0,vip2SubscriptionDays:0,vip3SubscriptionDays:0,vip4SubscriptionDays:0,vip5SubscriptionDays:0,vip6SubscriptionDays:0,vip7SubscriptionDays:0,subscriptions:{},director:null,isSettingsLoaded:!1,partnersCount:0,postsCount:0,couponCode:"",isCommitEditForPlannedPosts:null,isCommitDeleteForPlannedPosts:null,isSavePostsSettings:null,isParseInstagramPostsByUs:null,isVKExtendedActivated:null,isPrivateOffers:null}}),c={id:function(t){return t.id},planType:function(t){return t.planType},timezoneOffset:function(t){return t.timezoneOffset},navigation:function(t){return t.navigation},isHasEmail:function(t){return t.isHasEmail},isHasNotifications:function(t){return t.isHasNotifications},isHasPublicationNotifications:function(t){return t.isHasPublicationNotifications},isHasNews:function(t){return t.isHasNews}
1,isShowErrors:function(t){return t.isShowErrors},isHasSpecialOffer:function(t){return t.isHasSpecialOffer},startSubscriptionDays:function(t){return t.startSubscriptionDays},proSubscriptionDays:function(t){return t.proSubscriptionDays},vipSubscriptionDays:function(t){return t.vipSubscriptionDays},vip2SubscriptionDays:function(t){return t.vip2SubscriptionDays},vip3SubscriptionDays:function(t){return t.vip3SubscriptionDays},vip4SubscriptionDays:function(t){return t.vip4SubscriptionDays},vip5SubscriptionDays:function(t){return t.vip5SubscriptionDays},vip6SubscriptionDays:function(t){return t.vip6SubscriptionDays},vip7SubscriptionDays:function(t){return t.vip7SubscriptionDays},subscriptions:function(t){return t.subscriptions},director:function(t){return t.director},subscriptionDays:function(t){return t.vip7SubscriptionDays?t.vip7SubscriptionDays:t.vip6SubscriptionDays?t.vip6SubscriptionDays:t.vip5SubscriptionDays?t.vip5SubscriptionDays:t.vip4SubscriptionDays?t.vip4SubscriptionDays:t.vip3SubscriptionDays?t.vip3SubscriptionDays:t.vip2SubscriptionDays?t.vip2SubscriptionDays:t.vipSubscriptionDays?t.vipSubscriptionDays:t.proSubscriptionDays?t.proSubscriptionDays:t.startSubscriptionDays},isAnyVipExists:function(t){return!!(t.vipSubscriptionDays||t.vip2SubscriptionDays||t.vip3SubscriptionDays||t.vip4SubscriptionDays||t.vip5SubscriptionDays||t.vip6SubscriptionDays||t.vip7SubscriptionDays)},isSettingsLoaded:function(t){return t.isSettingsLoaded},partnersCount:function(t){return t.partnersCount},postsCount:function(t){return t.postsCount},couponCode:function(t){return t.couponCode},isCommitEditForPlannedPosts:function(t){return t.isCommitEditForPlannedPosts},isCommitDeleteForPlannedPosts:function(t){return t.isCommitDeleteForPlannedPosts},isSavePostsSettings:function(t){return t.isSavePostsSettings},isParseInstagramPostsByUs:function(t){return t.isParseInstagramPostsByUs},isVKExtendedActivated:function(t){return t.isVKExtendedActivated},isPrivateOffers:function(t){return t.isPrivateOffers}},l={id:function(t,e){t.id=e},planType:function(t,e){t.planType=e},timezoneOffset:function(t,e){t.timezoneOffset=e},navigation:function(t,e){t.navigation=e},isHasEmail:function(t,e){t.isHasEmail=e},isHasSpecialOffer:function(t,e){t.isHasSpecialOffer=e},isHasNotifications:function(t,e){t.isHasNotifications=e},isHasPublicationNotifications:function(t,e){t.isHasPublicationNotifications=e},isHasNews:function(t,e){t.isHasNews=e},isShowErrors:function(t,e){t.isShowErrors=e},startSubscriptionDays:function(t,e){t.startSubscriptionDays=e},proSubscriptionDays:function(t,e){t.proSubscriptionDays=e},vipSubscriptionDays:function(t,e){t.vipSubscriptionDays=e},vip2SubscriptionDays:function(t,e){t.vip2SubscriptionDays=e},vip3SubscriptionDays:function(t,e){t.vip3SubscriptionDays=e},vip4SubscriptionDays:function(t,e){t.vip4SubscriptionDays=e},vip5SubscriptionDays:function(t,e){t.vip5SubscriptionDays=e},vip6SubscriptionDays:function(t,e){t.vip6SubscriptionDays=e},vip7SubscriptionDays:function(t,e){t.vip7SubscriptionDays=e},subscriptions:function(t,e){t.subscriptions=e},director:function(t,e){t.director=e},isSettingsLoaded:function(t,e){t.isSettingsLoaded=e},partnersCount:function(t,e){t.partnersCount=e},postsCount:function(t,e){t.postsCount=e},couponCode:function(t,e){t.couponCode=e},isCommitEditForPlannedPosts:function(t,e){t.isCommitEditForPlannedPosts=e},isCommitDeleteForPlannedPosts:function(t,e){t.isCommitDeleteForPlannedPosts=e},isSavePostsSettings:function(t,e){t.isSavePostsSettings=e},isParseInstagramPostsByUs:function(t,e){t.isParseInstagramPostsByUs=e},isVKExtendedActivated:function(t,e){t.isVKExtendedActivated=e},isPrivateOffers:function(t,e){t.isPrivateOffers=e}},d={fetchSettings:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark(function o(){var n,r,data;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=t.commit,o.next=1,e.$axios.get("/users/settings");case 1:r=o.sent,data=r.data,n("id",data.id),n("planType",data.plan_type),n("timezoneOffset",data.timezone_offset),n("navigation",data.navigation),n("isHasEmail",data.is_has_email),n("isHasNotifications",data.is_has_notifications),n("isHasPublicationNotifications",data.is_has_publication_notifications),n("isHasNews",data.is_has_news),n("isHasSpecialOffer",data.is_has_special_offer),n("startSubscriptionDays",data.start_subscription_days),n("proSubscriptionDays",data.pro_subscription_days),n("vipSubscriptionDays",data.vip_subscription_days),n("vip2SubscriptionDays",data.vip_2_subscription_days),n("vip3SubscriptionDays",data.vip_3_subscription_days),n("vip4SubscriptionDays",data.vip_4_subscription_days),n("vip5SubscriptionDays",data.vip_5_subscription_days),n("vip6SubscriptionDays",data.vip_6_subscription_days),n("vip7SubscriptionDays",data.vip_7_subscription_days),n("subscriptions",data.subscriptions),n("director",data.director),n("isSettingsLoaded",!0),n("partnersCount",data.partners_count),n("postsCount",data.posts_count),n("couponCode",data.coupon_code),n("isCommitEditForPlannedPosts",data.is_commit_edit_for_planned_posts),n("isCommitDeleteForPlannedPosts",data.is_commit_delete_for_planned_posts),n("isSavePostsSettings",data.is_save_posts_settings),n("isParseInstagramPostsByUs",data.is_parse_instagram_posts_by_us),n("isVKExtendedActivated",data.is_vk_extended_activated),n("isPrivateOffers",data.is_private_offers);case 2:case"end":return o.stop()}},o)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});
1var n=function(){return{totalRows:null,rowsLimit:null,currentPage:null,nextCursor:null}},r={totalRows:function(t){return t.totalRows},rowsLimit:function(t){return t.rowsLimit},currentPage:function(t){return t.currentPage},nextCursor:function(t){return t.nextCursor}},c={totalRows:function(t,e){t.totalRows=e},rowsLimit:function(t,e){t.rowsLimit=e},currentPage:function(t,e){t.currentPage=e},nextCursor:function(t,e){t.nextCursor=e}},l={init:function(t,e){var o=t.commit,n=e.total_rows,r=e.rows_limit,c=e.next_cursor;o("totalRows",n),o("rowsLimit",r),o("nextCursor",c)},reset:function(t){var e=t.commit;e("totalRows",null),e("rowsLimit",null),e("nextCursor",null)}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c});var n=function(){return{listView:null}},r={listView:function(t){return t.listView}},c={listView:function(t,e){t.listView=e}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c});var n=function(){return{isGoogleMapsLoaded:!1}},r={isGoogleMapsLoaded:function(t){return t.isGoogleMapsLoaded}},c={isGoogleMapsLoaded:function(t,e){t.isGoogleMapsLoaded=e}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c});var n=function(){return{originalHost:null}},r={originalHost:function(t){return t.originalHost}},c={originalHost:function(t,e){t.originalHost=e}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});o(1),o(32),o(40);var n=function(){return{filters:[],filtersPlug:[],filtersNames:[],selectedFilters:[],selectedFiltersValues:{},selectedFiltersPlaceholders:[],prefilledFiltersValues:null,ignoreResetFilters:!1}},r={filters:function(t){return t.filters},filtersPlug:function(t){return t.filtersPlug},filtersNames:function(t){return t.filtersNames},selectedFilters:function(t){return t.selectedFilters},selectedFiltersValues:function(t){return t.selectedFiltersValues},selectedFiltersPlaceholders:function(t){return t.selectedFiltersPlaceholders},prefilledFiltersValues:function(t){return t.prefilledFiltersValues}},c={filters:function(t,e){t.filters=e},filtersPlug:function(t,e){t.filtersPlug=e},filtersNames:function(t,e){t.filtersNames=e},selectedFilters:function(t,e){t.selectedFilters=e},selectedFiltersValues:function(t,e){t.selectedFiltersValues=e},selectedFiltersPlaceholders:function(t,e){t.selectedFiltersPlaceholders=e},prefilledFiltersValues:function(t,e){t.prefilledFiltersValues=e},setIgnoreResetFilters:function(t,e){t.ignoreResetFilters=e},setFilterBySlug:function(t,e){var o=e.slug,n=e.values;for(var r in t.filters)if(t.filters[r].slug===o){t.filters[r].values=n;break}}},l={resetFilters:function(t){var e=t.commit;e("filters",[]),e("filtersPlug",[]),e("filtersNames",[]),e("selectedFilters",[]),e("selectedFiltersValues",{}),e("selectedFiltersPlaceholders",[]),e("prefilledFiltersValues",null)},resetSelectedFilters:function(t){var e=t.commit,o=t.dispatch,n=t.state;if(!n.ignoreResetFilters){e("setIgnoreResetFilters",!0),setTimeout(function(){e("setIgnoreResetFilters",!1)},100);var r=Object.assign({},n.selectedFiltersValues);for(var c in r)for(var l in n.filters)if(n.filters[l].slug===c){"input"===n.filters[l].type||"date"===n.filters[l].type||"checkbox"===n.filters[l].type?r[c]="":r[c]=0;break}o("updateFilterValuesBySlug",{slug:"account_id",values:[]}),o("updateFilterValuesBySlug",{slug:"page_id",values:[]}),e("selectedFilters",[]),e("selectedFiltersValues",r)}},setFiltersFromResponse:function(t,e){var o=t.commit;t.dispatch;o("filters",e.data.filters),o("selectedFilters",e.data.selected_filters),o("selectedFiltersValues",e.data.selected_filters_values),o("selectedFiltersPlaceholders",[])},updateFilterValuesBySlug:function(t,data){(0,t.commit)("setFilterBySlug",data)}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c});var n=function(){return{error:null}},r={getError:function(t){return t.error}},c={setError:function(t,e){t.error=e}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),function(){return{countersByDays:null,usersIdsByDays:null,usersPayments:null}}),c={countersByDays:function(t){return t.countersByDays},usersIdsByDays:function(t){return t.usersIdsByDays},usersPayments:function(t){return t.usersPayments}},l={countersByDays:function(t,e){t.countersByDays=e},usersIdsByDays:function(t,e){t.usersIdsByDays=e},usersPayments:function(t,e){t.usersPayments=e}},d={getUsersStats:function(t,e){var o=this;return Object(n.a)(regeneratorRuntime.mark(function n(){var r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,t.dispatch,t.state,n.next=1,o.$axios.get("/statistics/users",{params:e}).then(function(t){r("countersByDays",t.data.counters_by_days),r("usersIdsByDays",t.data.users_ids_by_days),r("usersPayments",t.data.users_payments)}).catch(function(t){console.log("error: ",t)});case 1:case"end":return n.stop()}},n)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),function(){return{list:null,total:null}}),c={list:function(t){return t.list},total:function(t){return t.total}},l={list:function(t,e){t.list=e},total:function(t,e){t.total=e}},d={getPayments:function(t,e){var o=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,t.dispatch,t.state,e.next=1,o.$axios.get("/statistics/payments").then(function(t){n("list",t.data.list),n("total",t.data.total)}).catch(function(t){});case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),function(){return{user:null,partners:null}}),c={user:function(t){return t.user},partners:function(t){return t.partners}},l={user:function(t,e){t.user=e},partners:function(t,e){t.partners=e}},d={getPartnerStats:function(t,e){var o=this;return Object(n.a)(regeneratorRuntime.mark(function n(){var r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,t.dispatch,t.state,n.next=1,o.$axios.get("/statistics/partners",{params:e}).then(function(t){r("user",t.data.user),r("partners",t.data.partners)}).catch(function(t){console.log("error: ",t)});case 1:case"end":return n.stop()}},n)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return m}),o.d(e,"mutations",function(){return h}),o.d(e,"actions",function(){return _});o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=o(11),c=(o(24),o(15),o(62));function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?l(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var m=function(){return{name:null,type:null,sourceId:null,accountId:null,pageId:null,albumId:null,settings:null,isDragActive:null,isPhotosSorting:null,droppedFiles:null,selectedPagesBySourceIds:null}},h={name:function(t,e){t.name=e},type:function(t,e){t.type=e},sourceId:function(t,e){t.sourceId=e},accountId:function(t,e){t.accountId=e},pageId:function(t,e){t.pageId=e},albumId:function(t,e){t.albumId=e},settings:function(t,e){t.settings=e},isDragActive:function(t,e){t.isDragActive=e},isPhotosSorting:function(t,e){t.isPhotosSorting=e},droppedFiles:function(t,e){t.droppedFiles=e},selectedPagesBySourceIds:function(t,e){t.selectedPagesBySourceIds=e}},_={resetForm:function(t){var e=t.commit;t.dispatch;e("name",""),e("type",0),e("sourceId",0),e("accountId",0),e("pageId",0),e("albumId",0),e("settings",{}),e("isDragActive",!1),e("isPhotosSorting",!1),e("droppedFiles",null),e("selectedPagesBySourceIds",{})},setForm:function(t,data){return Object(r.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("name",data.name),o("type",data.type),o("sourceId",data.source_id),o("accountId",data.account_id),o("pageId",data.page_id),o("albumId",data.album_id),o("settings",data.settings),o("selectedPagesBySourceIds",c.a.methods.filterPages(d({},data.settings.selected_pages_by_source_ids),data.social_pages_by_accounts));case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),o(66),function(){return{timezones:null,timezoneId:null,ruCaptchaKey:null,gptKey:null,gptType:null,gptVersion:null,textAiModelId:null,textAiModelKey:null,isParseInstagramPostsByUs:null}}),c={timezones:function(t){return t.timezones},ruCaptchaKey:function(t){return t.ruCaptchaKey},gptKey:function(t){return t.gptKey},gptType:function(t){return t.gptType},gptVersion:function(t){return t.gptVersion},textAiModelId:function(t){return t.textAiModelId},textAiModelKey:function(t){return t.textAiModelKey},isParseInstagramPostsByUs:function(t){return t.isParseInstagramPostsByUs}},l={timezones:function(t,e){t.timezones=e},timezoneId:function(t,e){t.timezoneId=e},ruCaptchaKey:function(t,e){t.ruCaptchaKey=e},gptKey:function(t,e){t.gptKey=e},gptType:function(t,e){t.gptType=e},gptVersion:function(t,e){t.gptVersion=e},textAiModelId:function(t,e){t.textAiModelId=e},textAiModelKey:function(t,e){t.textAiModelKey=e},isParseInstagramPostsByUs:function(t,e){t.isParseInstagramPostsByUs=e}},d={resetForm:function(t){var e=t.commit;e("timezones",[]),e("timezoneId",0),e("ruCaptchaKey",""),e("gptKey",""),e("gptType",1),e("gptVersion",1),e("textAiModelId",1),e("textAiModelKey",""),e("isParseInstagramPostsByUs",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("timezones",data.timezones),o("timezoneId",data.timezone_id),o("ruCaptchaKey",data.ru_captcha_key),o("gptKey",data.gpt_key),o("gptType",data.gpt_type),o("gptVersion",data.gpt_version),o("textAiModelId",Number(data.text_ai_model_id)||1),o("textAiModelKey",data.text_ai_model_key||""),o("isParseInstagramPostsByUs",data.is_parse_instagram_posts_by_us);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return m}),o.d(e,"mutations",function(){return h}),o.d(e,"actions",function(){return _});var n=o(0),r=o(11),c=(o(24),o(15),o(6),o(4),o(9),o(10),o(8),o(1),o(68),o(7),o(62));function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?l(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var m=function(){return{name:null,link:null,postsFilter:null,postsUpgrade:null,postsText:null,postsTextModification:null,checkInterval:null,takeAmount:null,publicationWhenType:null,publicationHowType:null,publicationWhereType:null,isUniqueContent:null,isCommentsDisabled:null,publishAsStory:null,publishAsStorySourceIds:null,publishAsReels:null,publishReelsAsTrial:null,publishAsClips:null,publishAsShorts:null,publishAsArticle:null,publishAsArticleByLink:null,publishInChannel:null,shareStoriesToFeed:null,shareStoriesToFeedSourceIds:null,shareReelsToFeed:null,shareClipsToFeed:null,shareClipsToFeedWithText:null,shareClipsToFeedIfNoVideo:null,shareChannelToFeed:null,expandClipsTitle:null,publishAsUser:null,addLinkToUser:null,messageToCommunity:null,messageToChannel:null,downloadVkVideos:null,saveVkVideosNames:null,publishAsCarousel:null,publishOnlyInVideos:null,notPublishInVideos:null,repeatVideo:null,parseLinks:null,publishByAccount:null,publishByAccountSourceIds:null,planByNetwork:null,privacyLevel:null,youtubeCategory:null,donutPaidDuration:null,deletePostsDay:null,deletePostsHour:null,addLinkToPostInComment:null,scheduleId:null,projectId:null,postsRewrite:{rewriteState:null,rewriteCommand:null,noPostsIfNoRewrite:null,rewriteForEveryPage:null,textModelId:null,textModelKey:null},postsCaption:{postsCaption:null,postsCaptionPositionType:null,postsCaptionSpaceType:null,photosCaption:null,tgButtons:null,videosTitle:null,postsComment:null,publishCommentByAccount:null,postsPhoto:null,postsPhotoAlways:null},postsHashtags:{hashtags:null,maxAmount:null,selectionType:null,spaceType:null},postsLinks:{links:null,maxAmount:null,selectionType:null,spaceType:null},postsLocation:null,postsLocationVk:null,selectedPagesBySourceIds:null,selectedAlbumsBySourceIds:null,cropTextType:null,cropTextLimit:null}},h={name:function(t,e){t.name=e},link:function(t,e){t.link=e},postsFilter:function(t,e){t.postsFilter=e},postsUpgrade:function(t,e){t.postsUpgrade=e},postsText:function(t,e){t.postsText=e},postsTextModification:function(t,e){t.postsTextModification=e},checkInterval:function(t,e){t.checkInterval=e},takeAmount:function(t,e){t.takeAmount=e},publicationWhenType:function(t,e){t.publicationWhenType=e},publicationHowType:function(t,e){t.publicationHowType=e},publicationWhereType:function(t,e){t.publicationWhereType=e},isUniqueContent:function(t,e){t.isUniqueContent=e},isCommentsDisabled:function(t,e){t.isCommentsDisabled=e},publishAsStory:function(t,e){t.publishAsStory=e},publishAsStorySourceIds:function(t,e){t.publishAsStorySourceIds=e},publishAsReels:function(t,e){t.publishAsReels=e},publishReelsAsTrial:function(t,e){t.publishReelsAsTrial=e},publishAsClips:function(t,e){t.publishAsClips=e},publishAsShorts:function(t,e){t.publishAsShorts=e},publishAsArticle:function(t,e){t.publishAsArticle=e},publishAsArticleByLink:function(t,e){t.publishAsArticleByLink=e},publishInChannel:function(t,e){t.publishInChannel=e},shareStoriesToFeed:function(t,e){t.shareStoriesToFeed=e},shareStoriesToFeedSourceIds:function(t,e){t.shareStoriesToFeedSourceIds=e},shareReelsToFeed:function(t,e){t.shareReelsToFeed=e},shareClipsToFeed:function(t,e){t.shareClipsToFeed=e},shareClipsToFeedWithText:function(t,e){t.shareClipsToFeedWithText=e},shareClipsToFeedIfNoVideo:function(t,e){t.shareClipsToFeedIfNoVideo=e},shareChannelToFeed:function(t,e){t.shareChannelToFeed=e},expandClipsTitle:function(t,e){t.expandClipsTitle=e},publishAsUser:function(t,e){t.publishAsUser=e},addLinkToUser:function(t,e){t.addLinkToUser=e},messageToCommunity:function(t,e){t.messageToCommunity=e},messageToChannel:function(t,e){t.messageToChannel=e},downloadVkVideos:function(t,e){t.downloadVkVideos=e},saveVkVideosNames:function(t,e){t.saveVkVideosNames=e},publishAsCarousel:function(t,e){t.publishAsCarousel=e},publishOnlyInVideos:function(t,e){t.publishOnlyInVideos=e},notPublishInVideos:function(t,e){t.notPublishInVideos=e},repeatVideo:function(t,e){t.repeatVideo=e},parseLinks:function(t,e){t.parseLinks=e},publishByAccount:function(t,e){t.publishByAccount=e},publishByAccountSourceIds:function(t,e){t.publishByAccountSourceIds=e},planByNetwork:function(t,e){t.planByNetwork=e},privacyLevel:function(t,e){t.privacyLevel=e},youtubeCategory:function(t,e){t.youtubeCategory=e},donutPaidDuration:function(t,e){t.donutPaidDuration=e},deletePostsDay:function(t,e){t.deletePostsDay=e},deletePostsHour:function(t,e){t.deletePostsHour=e},addLinkToPostInComment:function(t,e){t.addLinkToPostInComment=e},scheduleId:function(t,e){t.scheduleId=e},projectId:function(t,e){t.projectId=e},postsRewrite:function(t,e){t.postsRewrite=e},postsCaption:function(t,e){t.postsCaption=e},postsHashtags:function(t,e){t.postsHashtags=e},postsLinks:function(t,e){t.postsLinks=e},postsLocation:function(t,e){t.postsLocation=e},postsLocationVk:function(t,e){t.postsLocationVk=e},selectedPagesBySourceIds:function(t,e){t.selectedPagesBySourceIds=e},selectedAlbumsBySourceIds:function(t,e){t.selectedAlbumsBySourceIds=e}
1,cropTextType:function(t,e){t.cropTextType=e},cropTextLimit:function(t,e){t.cropTextLimit=e}},_={resetForm:function(t){var e=t.commit;t.dispatch;e("name",""),e("link",""),e("postsFilter",{}),e("postsUpgrade",{}),e("postsText",{}),e("postsTextModification",{}),e("checkInterval",1),e("takeAmount",1),e("publicationWhenType",1),e("publicationHowType",1),e("publicationWhereType",1),e("isUniqueContent",!1),e("isCommentsDisabled",!1),e("publishAsStory",!1),e("publishAsStorySourceIds",""),e("publishAsReels",!1),e("publishReelsAsTrial",!1),e("publishAsClips",!1),e("publishAsShorts",!1),e("publishAsArticle",!1),e("publishAsArticleByLink",!1),e("publishInChannel",!1),e("shareStoriesToFeed",!1),e("shareStoriesToFeedSourceIds",""),e("shareReelsToFeed",!1),e("shareClipsToFeed",!1),e("shareClipsToFeedWithText",!1),e("shareClipsToFeedIfNoVideo",!1),e("shareChannelToFeed",!1),e("expandClipsTitle",!1),e("publishAsUser",!1),e("addLinkToUser",!1),e("messageToCommunity",!1),e("messageToChannel",!1),e("downloadVkVideos",!1),e("saveVkVideosNames",!1),e("publishAsCarousel",!1),e("publishOnlyInVideos",!1),e("notPublishInVideos",!1),e("repeatVideo",!1),e("parseLinks",!1),e("publishByAccount",!1),e("publishByAccountSourceIds",""),e("planByNetwork",!1),e("privacyLevel",0),e("youtubeCategory",0),e("donutPaidDuration",0),e("deletePostsDay",0),e("deletePostsHour",0),e("addLinkToPostInComment",0),e("scheduleId",0),e("projectId",0),e("postsRewrite",{rewriteState:1,rewriteCommand:"",noPostsIfNoRewrite:"",rewriteForEveryPage:"",textModelId:1,textModelKey:""}),e("postsCaption",{postsCaption:"",postsCaptionPositionType:1,postsCaptionSpaceType:1,photosCaption:"",tgButtons:{list:[]},videosTitle:"",postsComment:"",publishCommentByAccount:!1,postsPhoto:null,postsPhotoAlways:!1}),e("postsHashtags",{hashtags:"",maxAmount:5,selectionType:1,spaceType:1}),e("postsLinks",{links:"",maxAmount:5,selectionType:1,spaceType:1}),e("postsLocation",null),e("postsLocationVk",null),e("selectedPagesBySourceIds",{}),e("selectedAlbumsBySourceIds",{}),e("cropTextType",1),e("cropTextLimit",250)},setForm:function(t,data){return Object(r.a)(regeneratorRuntime.mark(function e(){var o,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r in o=t.commit,t.dispatch,t.state,n=["id","social_pages_by_accounts","social_albums_by_pages","projects","schedules","posts_rewrite","posts_caption","posts_caption_position_type","posts_caption_space_type","photos_caption","videos_title","posts_comment","posts_hashtags","posts_links","posts_location","posts_location_vk","is_unique_content","is_comments_disabled","publish_as_story","publish_as_story_source_ids","publish_as_reels","publish_reels_as_trial","publish_as_clips","publish_as_shorts","publish_as_article","publish_as_article_by_link","publish_in_channel","share_stories_to_feed","share_stories_to_feed_source_ids","share_reels_to_feed","share_clips_to_feed","share_clips_to_feed_with_text","share_clips_to_feed_if_no_video","share_channel_to_feed","publish_as_user","add_link_to_user","download_vk_videos","save_vk_videos_names","publish_as_carousel","publish_only_in_videos","not_publish_in_videos","repeat_video","parse_links","publish_by_account","publish_by_account_source_ids","plan_by_network","privacy_level","y
1outube_category","donut_paid_duration","delete_posts_day","delete_posts_hour","add_link_to_post_in_comment"],data)n.indexOf(r)<0&&("selected_pages_by_source_ids"===r?data[r]=c.a.methods.filterPages(d({},data[r]),data.social_pages_by_accounts):"selected_albums_by_source_ids"===r&&(data[r]=c.a.methods.filterAlbumsPages(d({},data[r]),data.social_albums_by_pages)),o(c.a.methods.snakeCaseToCamel(r),data[r]));o("isUniqueContent",!!data.is_unique_content),o("isCommentsDisabled",!!data.is_comments_disabled),o("publishAsStory",!!data.publish_as_story),o("publishAsStorySourceIds",data.publish_as_story_source_ids),o("publishAsReels",!!data.publish_as_reels),o("publishReelsAsTrial",!!data.publish_reels_as_trial),o("publishAsClips",!!data.publish_as_clips),o("publishAsShorts",!!data.publish_as_shorts),o("publishAsArticle",!!data.publish_as_article),o("publishAsArticleByLink",!!data.publish_as_article_by_link),o("publishInChannel",!!data.publish_in_channel),o("shareStoriesToFeed",!!data.share_stories_to_feed),o("shareStoriesToFeedSourceIds",data.share_stories_to_feed_source_ids),o("shareReelsToFeed",!!data.share_reels_to_feed),o("shareClipsToFeed",!!data.share_clips_to_feed),o("shareClipsToFeedWithText",!!data.share_clips_to_feed_with_text),o("shareClipsToFeedIfNoVideo",!!data.share_clips_to_feed_if_no_video),o("shareChannelToFeed",!!data.share_channel_to_feed),o("expandClipsTitle",!!data.expand_clips_title),o("publishAsUser",!!data.publish_as_user),o("addLinkToUser",!!data.add_link_to_user),o("messageToCommunity",!!data.message_to_community),o("messageToChannel",!!data.message_to_channel),o("downloadVkVideos",!!data.download_vk_videos),o("saveVkVideosNames",!!data.save_vk_videos_names),o("publishAsCarousel",!!data.publish_as_carousel),o("publishOnlyInVideos",!!data.publish_only_in_videos),o("notPublishInVideos",!!data.not_publish_in_videos),o("repeatVideo",!!data.repeat_video),o("parseLinks",!!data.parse_links),o("publishByAccount",!!data.publish_by_account),o("publishByAccountSourceIds",data.publish_by_account_source_ids),o("planByNetwork",!!data.plan_by_network),o("privacyLevel",data.privacy_level),o("youtubeCategory",data.youtube_category),o("donutPaidDuration",data.donut_paid_duration),o("deletePostsDay",data.delete_posts_day),o("deletePostsHour",data.delete_posts_hour),o("addLinkToPostInComment",data.add_link_to_post_in_comment),o("postsRewrite",{rewriteState:data.posts_rewrite.rewrite_state,rewriteCommand:data.posts_rewrite.rewrite_command,noPostsIfNoRewrite:data.posts_rewrite.no_posts_if_no_rewrite,rewriteForEveryPage:data.posts_rewrite.rewrite_for_every_page,textModelId:data.posts_rewrite.text_model_id||1,textModelKey:data.posts_rewrite.text_model_key||""}),o("postsCaption",{postsCaption:data.posts_caption,postsCaptionPositionType:data.posts_caption_position_type,postsCaptionSpaceType:data.posts_caption_space_type,photosCaption:data.photos_caption,tgButtons:data.tg_buttons,videosTitle:data.videos_title,postsComment:data.posts_comment,publishCommentByAccount:!!data.publish_comment_by_account,postsPhoto:data.posts_photo,postsPhotoAlways:!!data.posts_photo_always}),o("postsHashtags",{hashtags:data.posts_hashtags.hashtags,maxAmount:data.posts_hashtags.max_amount,selectionType:data.posts_hashtags.selection_type,spaceType:data.posts_hashtags.space_type}),o("postsLinks",{links:data.posts_links.links,maxAmount:data.posts_links.max_amount,selectionType:data.posts_links.selection_type,spaceType:data.posts_links.space_type}),o("postsLocation",data.posts_location),o("postsLocationVk",data.posts_location_vk);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return k}),o.d(e,"mutations",function(){return x}),o.d(e,"actions",function(){return w});var n=o(54),r=o(0),c=o(49),l=o(11),d=(o(24),o(23),o(6),o(39),o(43),o(4),o(44),o(31),o(8),o(1),o(355),o(22),o(15),o(9),o(10),o(20),o(29),o(48),o(36),o(68),o(357),o(358),o(359),o(360),o(361),o(362),o(363),o(364),o(365),o(366),o(367),o(368),o(369),o(370),o(371),o(372),o(7),o(32),o(12)),m=o(62);function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function _(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?h(Object(o),!0).forEach(function(e){Object(r.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function f(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return v(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?v(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw c}}}}function v(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}function y(){return{photos:[],audios:[],documents:[],link:"",ad:{is_ad:!1,contract_id:0},poll:{question:"",answers:[],is_anonymous:!1,is_multiple_answers:!1,until_time:0,bg_image:null},telegram_buttons:{list:[]},title:"",copyright:"",repost:{link:"",title:""},source:"",comment:{text:"",publish_by_account:!1,photo:null},location:{id:"",name:"",latitude:"",longitude:""},settings:{repeat_type:0,repeat_stop_date:"",repeat_stop_hours:"",repeat_stop_minutes:"",delete_post_day:0,delete_post_hour:0,unique_content:!1,random_content:!1,disable_comments:!1,disable_stitch:!1,disable_duet:!1,commercial_content:!1,my_brand_content:!1,branded_content:!1,pin_post:!1,plan_by_network:!1,download_vk_video:!1,publish_as_carousel:!1,publish_only_in_videos:!1,not_publish_in_videos:!1,parse_links:!1,publish_by_account:!1,publish_by_account_source_ids:"",publish_as_story:!1,publish_as_story_source_ids:"",publish_as_reels:!1,publish_reels_as_trial:!1,publish_as_clips:!1,publish_as_shorts:!1,publish_as_article:!1,publish_as_article_by_link:!1,publish_in_channel:!1,share_stories_to_feed:!1,share_stories_to_feed_source_ids:"",share_reels_to_feed:!1,share_clips_to_feed:!1,share_clips_to_feed_with_text:!1,share_clips_to_feed_if_no_video:!1,share_channel_to_feed:!1,expand_clips_title:!1,publish_as_user:!1,add_link_to_user:!1,message_to_community:!1,message_to_channel:!1,donut_paid_duration:0,content_by_stars:0,is_ad:!1,ord_contract_id:0,privacy_level:0,youtube_category:0}}}var k=function(){return{texts:null,attachments:null,publicationDate:null,publicationTimeHours:null,publicationTimeMinutes:null,publicationDates:null,publicationWhenType:null,publicationHowType:null,publicationWhereType:null,scheduleId:null,schedulesIds:null,projectId:null,selectedPagesBySourceIds:null,selectedAlbumsBySourceIds:null,selectedSourceIds:null,editFormId:null,copyFormId:null,editMode:null,calendarUpdateFlag:null,isDragActive:null,isPhotosSorting:null,droppedFiles:null,isTGButtonsSorting:null}},x={texts:function(t,e){t.texts=e},attachments:function(t,e){t.attachments=e},publicationDate:function(t,e){t.publicationDate=e},publicationTimeHours:function(t,e){t.publicationTimeHours=e},publicationTimeMinutes:function(t,e){t.publicationTimeMinutes=e},publicationDates:function(t,e){t.publicationDates=e},publicationWhenType:function(t,e){t.publicationWhenType=e},publicationHowType:function(t,e){t.publicationHowType=e},publicationWhereType:function(t,e){t.publicationWhereType=e},scheduleId:function(t,e){t.scheduleId=e},schedulesIds:function(t,e){t.schedulesIds=e},projectId:function(t,e){t.projectId=e},selectedPagesBySourceIds:function(t,e){t.selectedPagesBySourceIds=e},selectedAlbumsBySourceIds:function(t,e){t.selectedAlbumsBySourceIds=e},selectedSourceIds:function(t,e){t.selectedSourceIds=e},editFormId:function(t,e){t.editFormId=e},copyFormId:function(t,e){t.copyFormId=e},editMode:function(t,e){t.editMode=e},calendarUpdateFlag:function(t,e){t.calendarUpdateFlag=e},isDragActive:function(t,e){t.isDragActive=e},isPhotosSorting:function(t,e){t.isPhotosSorting=e},droppedFiles:function(t,e){t.droppedFiles=e},isTGButtonsSorting:function(t,e){t.isTGButtonsSorting=e},setAttachmentsByField:function(t,e){t.attachments[e.field]=e.value}},w={resetSettings:function(t){var e=t.commit,o=t.state,n=Object(d.cloneDeep)({photos:[],audios:[],documents:[],link:"",ad:{is_ad:!1,contract_id:0},poll:{question:"",answers:[],is_anonymous:!1,is_multiple_answers:!1,until_time:0,bg_image:null},telegram_buttons:{list:[]},title:"",copyright:"",repost:{link:"",title:""},source:"",comment:{text:"",publish_by_account:!1,photo:null},location:{id:"",name:"",latitude:"",longitude:""},settings:{repeat_type:0,repeat_stop_date:"",repeat_stop_hours:"",repeat_stop_minutes:"",delete_post_day:0,delete_post_hour:0,unique_content:!1,random_content:!1,disable_comments:!1,disable_stitch:!1,disable_duet:!1,commercial_content:!1,my_brand_content:!1,branded_content:!1,pin_post:!1,plan_by_network:!1,download_vk_video:!1,publish_as_carousel:!1,publish_only_in_videos:!1,not_publish_in_videos:!1,parse_links:!1,publish_by_account:!1,publish_by_account_source_ids:"",publish_as_story:!1,publish_as_story_source_ids:"",publish_as_reels:!1,publish_reels_as_trial:!1,publish_as_clips:!1,publish_as_shorts:!1,publish_as_article:!1,publish_as_article_by_link:!1,publish_in_channel:!1,share_stories_to_feed:!1,share_stories_to_feed_source_ids:"",share_reels_to_feed:!1,share_clips_to_feed:!1,share_clips_to_feed_with_text:!1,share_clips_to_feed_if_no_video:!1,share_channel_to_feed:!1,expand_clips_title:!1,publish_as_user:!1,add_link_to_user:!1,message_to_community:!1,message_to_channel:!1,donut_paid_duration:0,
1content_by_stars:0,is_ad:!1,ord_contract_id:0,privacy_level:0,youtube_category:0}}),r=Object(d.cloneDeep)(o.attachments);r.settings=n.settings,e("attachments",r)},resetTextsAndAttachments:function(t,data){var e=t.commit,o=t.state,n=[{text:"",source_id:0}];data&&data.texts_sources_checked&&data.texts_sources_checked.forEach(function(t){n.push({text:"",source_id:t})}),e("texts",n);var r=Object(d.cloneDeep)({photos:[],audios:[],documents:[],link:"",ad:{is_ad:!1,contract_id:0},poll:{question:"",answers:[],is_anonymous:!1,is_multiple_answers:!1,until_time:0,bg_image:null},telegram_buttons:{list:[]},title:"",copyright:"",repost:{link:"",title:""},source:"",comment:{text:"",publish_by_account:!1,photo:null},location:{id:"",name:"",latitude:"",longitude:""},settings:{repeat_type:0,repeat_stop_date:"",repeat_stop_hours:"",repeat_stop_minutes:"",delete_post_day:0,delete_post_hour:0,unique_content:!1,random_content:!1,disable_comments:!1,disable_stitch:!1,disable_duet:!1,commercial_content:!1,my_brand_content:!1,branded_content:!1,pin_post:!1,plan_by_network:!1,download_vk_video:!1,publish_as_carousel:!1,publish_only_in_videos:!1,not_publish_in_videos:!1,parse_links:!1,publish_by_account:!1,publish_by_account_source_ids:"",publish_as_story:!1,publish_as_story_source_ids:"",publish_as_reels:!1,publish_reels_as_trial:!1,publish_as_clips:!1,publish_as_shorts:!1,publish_as_article:!1,publish_as_article_by_link:!1,publish_in_channel:!1,share_stories_to_feed:!1,share_stories_to_feed_source_ids:"",share_reels_to_feed:!1,share_clips_to_feed:!1,share_clips_to_feed_with_text:!1,share_clips_to_feed_if_no_video:!1,share_channel_to_feed:!1,expand_clips_title:!1,publish_as_user:!1,add_link_to_user:!1,message_to_community:!1,message_to_channel:!1,donut_paid_duration:0,content_by_stars:0,is_ad:!1,ord_contract_id:0,privacy_level:0,youtube_category:0}});if(data&&data.is_save_posts_settings){var c=Object(d.cloneDeep)(o.attachments);c.settings&&(r.settings=c.settings)}e("attachments",r)},resetForm:function(t){var e=t.commit;(0,t.dispatch)("resetTextsAndAttachments"),e("publicationDate",""),e("publicationTimeHours",""),e("publicationTimeMinutes",""),e("publicationDates",{}),e("publicationWhenType",1),e("publicationHowType",1),e("publicationWhereType",1),e("scheduleId",0),e("schedulesIds",[]),e("projectId",0),e("selectedPagesBySourceIds",{}),e("selectedAlbumsBySourceIds",{}),e("selectedSourceIds",[]),e("editFormId",0),e("copyFormId",0),e("editMode","new"),e("calendarUpdateFlag",0),e("isDragActive",!1),e("isPhotosSorting",!1),e("droppedFiles",null),e("isTGButtonsSorting",!1)},setFromState:function(t,e){return Object(l.a)(regeneratorRuntime.mark(function o(){var n,r,data,l,d,m,h,_,f,v,k,x,w,C,S,T,P,I,A,F;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:for(h in n=t.commit,t.dispatch,r=t.state,data=e.data,l=e.projects,d=e.schedules,m=["editFormId","copyFormId","projectId","scheduleId","schedulesIds","calendarUpdateFlag","isDragActive","isPhotosSorting","droppedFiles","isTGButtonsSorting"],r)m.includes(h)||data[h]&&void 0!==data[h]&&void 0!==r[h]&&("attachments"===h&&(void 0===Object(c.a)(data[h].repost.link)&&(data[h].repost={link:"",title:""}),"string"==typeof data[h].comment&&(data[h].comment={text:data[h].comment,photo:null})),n(h,data[h]));_=y(),w=regeneratorRuntime.keys(_);case 1:if((C=w()).done){o.next=6;break}if(f=C.value,void 0!==r.attachments[f]){o.next=2;break}n("setAttachmentsByField",{field:f,value:_[f]}),o.next=5;break;case 2:if("settings"!==f){o.next=5;break}S=regeneratorRuntime.keys(_[f]);case 3:if((T=S()).done){o.next=5;break}if(v=T.value,void 0!==r.attachments[f][v]){o.next=4;break}return n("setAttachmentsByField",{field:f,value:_[f]}),o.abrupt("continue",5);case 4:o.next=3;break;case 5:o.next=1;break;case 6:if(!data.projectId||!l.length){o.next=9;break}P=regeneratorRuntime.keys(l);case 7:if((I=P()).done){o.next=9;break}if(k=I.value,l[k].id!==data.projectId){o.next=8;break}return n("projectId",data.projectId),o.abrupt("continue",9);case 8:o.next=7;break;case 9:if(d.length&&data.schedulesIds&&data.schedulesIds.length&&n("schedulesIds",data.schedulesIds.filter(function(t){for(var e in d)if(d[e].id===t.id)return!0;return!1})),!(data.scheduleId&&d&&d.length)){o.next=12;break}A=regeneratorRuntime.keys(d);case 10:if((F=A()).done){o.next=12;break}if(x=F.value,d[x].id!==data.scheduleId){o.next=11;break}return n("scheduleId",data.scheduleId),o.abrupt("continue",12);case 11:o.next=10;break;case 12:case"end":return o.stop()}},o)}))()},setFromServer:function(t,data){return Object(l.a)(regeneratorRuntime.mark(function e(){var o,r,c,l,h,v,i,k,x,w,C;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.commit,t.dispatch,r=t.state,data.texts.length){c=!1,l=f(data.texts);try{for(l.s();!(h=l.n()).done;)0===h.value.source_id&&(c=!0)}catch(t){l.e(t)}finally{l.f()}o("texts",c?data.texts:[{text:"",source_id:0}
1].concat(data.texts))}if(data.attachments.length){for(i in v=Object(d.cloneDeep)(r.attachments),data.attachments)"photo"===(k=data.attachments[i]).type||"video"===k.type?v.photos.push(k.data):"audio"===k.type?v.audios.push(k.data):"document"===k.type?v.documents.push(k.data):"link"!==k.type&&"poll"!==k.type&&"telegram_buttons"!==k.type&&"ad"!==k.type&&"repost"!==k.type&&"source"!==k.type&&"comment"!==k.type&&"title"!==k.type&&"location"!==k.type&&"settings"!==k.type||(v[k.type]=k.data);if(v.settings)for(w in(x=y()).settings)void 0===v.settings[w]&&(v.settings[w]=x.settings[w]);o("attachments",v)}o("publicationDate",data.publication_date.date),o("publicationTimeHours",data.publication_date.hours),o("publicationTimeMinutes",data.publication_date.minutes),o("publicationDates",data.publication_dates),o("publicationWhenType",data.publication_when_type),o("publicationHowType",data.publication_how_type),o("publicationWhereType",data.publication_where_type),o("scheduleId",data.schedule_id),o("projectId",data.project_id),data.selected_pages_by_source_ids=m.a.methods.filterPages(_({},data.selected_pages_by_source_ids),data.social_pages_by_accounts),o("selectedPagesBySourceIds",data.selected_pages_by_source_ids),data.selected_albums_by_source_ids=m.a.methods.filterAlbumsPages(_({},data.selected_albums_by_source_ids),data.social_albums_by_pages),o("selectedAlbumsBySourceIds",data.selected_albums_by_source_ids),C=Object.keys(data.selected_pages_by_source_ids).concat(Object.keys(data.selected_albums_by_source_ids)),o("selectedSourceIds",Object(n.a)(new Set(C)));case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),o(15),o(66),function(){return{token:null,type:null,name:null,roles:null,phone:null,inn:null,sigMode:null,sigPosition:null}}),c={token:function(t){return t.token},type:function(t){return t.type},name:function(t){return t.name},roles:function(t){return t.roles},phone:function(t){return t.phone},inn:function(t){return t.inn},sigMode:function(t){return t.sigMode},sigPosition:function(t){return t.sigPosition}},l={token:function(t,e){t.token=e},type:function(t,e){t.type=e},name:function(t,e){t.name=e},roles:function(t,e){t.roles=e},phone:function(t,e){t.phone=e},inn:function(t,e){t.inn=e},sigMode:function(t,e){t.sigMode=e},sigPosition:function(t,e){t.sigPosition=e}},d={resetForm:function(t){var e=t.commit;e("token",""),e("type",0),e("name",""),e("roles",""),e("phone",""),e("inn",""),e("sigMode",1),e("sigPosition",1)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("token",data.token),o("type",Number(data.type)),o("name",data.name),o("roles",data.roles),o("phone",data.phone),o("inn",data.inn),o("sigMode",data.sig_mode),o("sigPosition",data.sig_position);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"getters",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});o(23),o(4),o(28),o(1);var n=function(){return{list:null}},r={list:function(t){return t.list}},c={list:function(t,e){t.list=e},appendToList:function(t,e){t.list=Array.isArray(t.list)?t.list.concat(e):e},deleteById:function(t,e){t.list=t.list.filter(function(t){return t.id!==e})}},l={resetList:function(t){var e=t.commit,o=t.dispatch;e("list",null),o("pagination/reset",null,{root:!0})},setListFromResponse:function(t,e){var o=t.commit,n=t.dispatch;e.data.prev_cursor?o("appendToList",e.data.list):o("list",e.data.list),n("pagination/init",{total_rows:e.data.total_rows||0,rows_limit:e.data.rows_limit||10,next_cursor:e.data.next_cursor&&e.data.is_has_more?e.data.next_cursor:null},{root:!0}),e.data.filters_plug&&(o("filters/filtersPlug",e.data.filters_plug,{root:!0}),o("filters/filtersNames",e.data.filters_plug.map(function(t){return t.slug}),{root:!0})),o("filters/prefilledFiltersValues",e.data.prefilled_filters_values||null,{root:!0})}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),o(15),function(){return{name:null,objectsType:null,objectsSelected:null}}),c={name:function(t,e){t.name=e},objectsType:function(t,e){t.objectsType=e},objectsSelected:function(t,e){t.objectsSelected=e}},l={resetForm:function(t){var e=t.commit;e("name",""),e("objectsType",0),e("objectsSelected",[])},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("name",data.name),o("objectsType",data.objects_type),o("objectsSelected",data.objects_selected);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return h}),o.d(e,"mutations",function(){return _}),o.d(e,"actions",function(){return f});o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=o(11),c=(o(24),o(15),o(62)),l=o(110);function d(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?d(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var h=function(){return{name:null,sourceResources:null,sourceResourcesMode:null,accountsForParsing:null,postsFilter:null,postsText:null,postsUpgrade:null,postsTextModification:null,checkWhenType:null,checkInterval:null,checkTimes:null,publicationIntervalType:null,publicationInterval:null,publicationIntervalFrom:null,publicationIntervalTo:null,takeAmount:null,searchMode:null,searchModeDirection:null,determineBestBy:null,isSearchStarted:null,searchStartDate:null,searchStopDate:null,searchLikes:null,searchReposts:null,searchComments:null,searchViews:null,publicationWhenType:null,publicationHowType:null,publicationWhereType:null,isUniqueContent:null,isCommentsDisabled:null,publishAsStory:null,publishAsStorySourceIds:null,publishAsReels:null,publishReelsAsTrial:null,publishAsShorts:null,publishAsClips:null,publishAsArticle:null,publishAsArticleByLink:null,publishInChannel:null,shareStoriesToFeed:null,shareStoriesToFeedSourceIds:null,shareReelsToFeed:null,shareClipsToFeed:null,shareClipsToFeedWithText:null,shareClipsToFeedIfNoVideo:null,shareChannelToFeed:null,expandClipsTitle:null,publishAsUser:null,addLinkToUser:null,messageToCommunity:null,messageToChannel:null,downloadVkVideos:null,saveVkVideosNames:null,publishAsCarousel:null,publishOnlyInVideos:null,notPublishInVideos:null,repeatVideo:null,parseLinks:null,publishByAccount:null,publishByAccountSourceIds:null,planByNetwork:null,privacyLevel:null,youtubeCategory:null,donutPaidDuration:null,deletePostsDay:null,deletePostsHour:null,copyMode:null,scheduleId:null,projectId:null,watermarkId:null,postsRewrite:{rewriteState:null,rewriteCommand:null,noPostsIfNoRewrite:null,rewriteForEveryPage:null,textModelId:null,textModelKey:null},postsPhotosRewrite:{rewriteState:null,createPhotosType:null,rewriteCommand:null,referencePhotos:null,noPostsIfNoRewrite:null,imageModelId:null,imageModelKey:null},postsCaption:{postsCaption:null,postsCaptionPositionType:null,postsCaptionSpaceType:null,photosCaption:null,tgButtons:null,videosTitle:null,postsComment:null,publishCommentByAccount:null,postsPhoto:null,postsPhotoAlways:null},postsHashtags:{hashtags:null,maxAmount:null,selectionType:null,spaceType:null},postsLinks:{links:null,maxAmount:null,selectionType:null,spaceType:null},postsLocation:null,postsLocationVk:null,selectedPagesBySourceIds:null,selectedAlbumsBySourceIds:null}},_={name:function(t,e){t.name=e},sourceResources:function(t,e){t.sourceResources=e},sourceResourcesMode:function(t,e){t.sourceResourcesMode=e},accountsForParsing:function(t,e){t.accountsForParsing=e},postsFilter:function(t,e){t.postsFilter=e},postsText:function(t,e){t.postsText=e},postsUpgrade:function(t,e){t.postsUpgrade=e},postsTextModification:function(t,e){t.postsTextModification=e},checkWhenType:function(t,e){t.checkWhenType=e},checkInterval:function(t,e){t.checkInterval=e},checkTimes:function(t,e){t.checkTimes=e},publicationIntervalType:function(t,e){t.publicationIntervalType=e},publicationInterval:function(t,e){t.publicationInterval=e},publicationIntervalFrom:function(t,e){t.publicationIntervalFrom=e},publicationIntervalTo:function(t,e){t.publicationIntervalTo=e},takeAmount:function(t,e){t.takeAmount=e},searchMode:function(t,e){t.searchMode=e},searchModeDirection:function(t,e){t.searchModeDirection=e},determineBestBy:function(t,e){t.determineBestBy=e},isSearchStarted:function(t,e){t.isSearchStarted=e},searchStartDate:function(t,e){t.searchStartDate=e},searchStopDate:function(t,e){t.searchStopDate=e},searchLikes:function(t,e){t.searchLikes=e},searchReposts:function(t,e){t.searchReposts=e},searchComments:function(t,e){t.searchComments=e},searchViews:function(t,e){t.searchViews=e},publicationWhenType:function(t,e){t.publicationWhenType=e},publicationHowType:function(t,e){t.publicationHowType=e},publicationWhereType:function(t,e){t.publicationWhereType=e},isUniqueContent:function(t,e){t.isUniqueContent=e},isCommentsDisabled:function(t,e){t.isCommentsDisabled=e},publishAsStory:function(t,e){t.publishAsStory=e},publishAsStorySourceIds:function(t,e){t.publishAsStorySourceIds=e},publishAsReels:function(t,e){t.publishAsReels=e},publishReelsAsTrial:function(t,e){t.publishReelsAsTrial=e},publishAsClips:function(t,e){t.publishAsClips=e},publishAsShorts:function(t,e){t.publishAsShorts=e},publishAsArticle:function(t,e){t.publishAsArticle=e},publishAsArticleByLink:function(t,e){t.publishAsArticleByLink=e},publishInChannel:function(t,e){t.publishInChannel=e},shareStoriesToFeed:function(t,e){t.shareStoriesToFeed=e},shareStoriesToFeedSourceIds:function(t,e){t.shareStoriesToFeedSourceIds=e},shareReelsToFeed:function(t,e){t.shareReelsToFeed=e},shareClipsToFeed:function(t,e){t.shareClipsToFeed=e},shareClipsToFeedWithText:function(t,e){t.shareClipsToFeedWithText=e},shareClipsToFeedIfNoVideo:function(t,e){t.shareClipsToFeedIfNoVideo=e},shareChannelToFeed:function(t,e){t.shareChannelToFeed=e},expandClipsTitle:function(t,e){t.expandClipsTitle=e},publishAsUser:function(t,e){t.publishAsUser=e},addLinkToUser:function(t,e){t.addLinkToUser=e},messageToCommunity:function(t,e){t.messageToCommunity=e},messageToChannel:function(t,e){t.messageToChannel=e},downloadVkVideos:function(t,e){t.downloadVkVideos=e},saveVkVideosNames:function(t,e){t.saveVkVideosNames=e}
1,publishAsCarousel:function(t,e){t.publishAsCarousel=e},publishOnlyInVideos:function(t,e){t.publishOnlyInVideos=e},notPublishInVideos:function(t,e){t.notPublishInVideos=e},repeatVideo:function(t,e){t.repeatVideo=e},parseLinks:function(t,e){t.parseLinks=e},publishByAccount:function(t,e){t.publishByAccount=e},publishByAccountSourceIds:function(t,e){t.publishByAccountSourceIds=e},planByNetwork:function(t,e){t.planByNetwork=e},privacyLevel:function(t,e){t.privacyLevel=e},youtubeCategory:function(t,e){t.youtubeCategory=e},donutPaidDuration:function(t,e){t.donutPaidDuration=e},deletePostsDay:function(t,e){t.deletePostsDay=e},deletePostsHour:function(t,e){t.deletePostsHour=e},copyMode:function(t,e){t.copyMode=e},scheduleId:function(t,e){t.scheduleId=e},projectId:function(t,e){t.projectId=e},watermarkId:function(t,e){t.watermarkId=e},postsRewrite:function(t,e){t.postsRewrite=e},postsPhotosRewrite:function(t,e){t.postsPhotosRewrite=e},postsCaption:function(t,e){t.postsCaption=e},postsHashtags:function(t,e){t.postsHashtags=e},postsLinks:function(t,e){t.postsLinks=e},postsLocation:function(t,e){t.postsLocation=e},postsLocationVk:function(t,e){t.postsLocationVk=e},selectedPagesBySourceIds:function(t,e){t.selectedPagesBySourceIds=e},selectedAlbumsBySourceIds:function(t,e){t.selectedAlbumsBySourceIds=e}},f={resetForm:function(t){var e=t.commit;t.dispatch;e("name",""),e("sourceResources",{}),e("sourceResourcesMode",1),e("accountsForParsing",{}),e("postsFilter",{}),e("postsText",{}),e("postsUpgrade",{}),e("postsTextModification",{}),e("checkWhenType",1),e("checkInterval",1),e("checkTimes",[]),e("publicationIntervalType",1),e("publicationInterval",0),e("publicationIntervalFrom",3),e("publicationIntervalTo",10),e("takeAmount",10),e("searchMode",1),e("searchModeDirection",1),e("determineBestBy",1),e("isSearchStarted",!1),e("searchStartDate",""),e("searchStopDate",""),e("searchLikes",""),e("searchReposts",""),e("searchComments",""),e("searchViews",""),e("publicationWhenType",1),e("publicationHowType",1),e("publicationWhereType",1),e("isUniqueContent",!1),e("isCommentsDisabled",!1),e("publishAsStory",!1),e("publishAsStorySourceIds",""),e("publishAsReels",!1),e("publishReelsAsTrial",!1),e("publishAsClips",!1),e("publishAsShorts",!1),e("publishAsArticle",!1),e("publishAsArticleByLink",!1),e("publishInChannel",!1),e("shareStoriesToFeed",!1),e("shareStoriesToFeedSourceIds",""),e("shareReelsToFeed",!1),e("shareClipsToFeed",!1),e("shareClipsToFeedWithText",!1),e("shareClipsToFeedIfNoVideo",!1),e("shareChannelToFeed",!1),e("expandClipsTitle",!1),e("publishAsUser",!1),e("addLinkToUser",!1),e("messageToCommunity",!1),e("messageToChannel",!1),e("downloadVkVideos",!1),e("saveVkVideosNames",!1),e("publishAsCarousel",!1),e("publishOnlyInVideos",!1),e("notPublishInVideos",!1),e("repeatVideo",!1),e("parseLinks",!1),e("publishByAccount",!1),e("publishByAccountSourceIds",""),e("planByNetwork",!1),e("privacyLevel",0),e("youtubeCategory",0),e("donutPaidDuration",0),e("deletePostsDay",0),e("deletePostsHour",0),e("copyMode",1),e("scheduleId",0),e("projectId",0),e("watermarkId",0),e("postsRewrite",{rewriteState:1,rewriteCommand:"",noPostsIfNoRewrite:"",rewriteForEveryPage:"",textModelId:l.a,textModelKey:""}),e("postsPhotosRewrite",{rewriteState:1,createPhotosType:1,rewriteCommand:"",referencePhotos:[],noPostsIfNoRewrite:"",imageModelId:1,imageModelKey:""}),e("postsCaption",{postsCaption:"",postsCaptionPositionType:1,postsCaptionSpaceType:1,photosCaption:"",tgButtons:{list:[]},videosTitle:"",postsComment:"",publishCommentByAccount:!1,postsPhoto:null,postsPhotoAlways:!1}),e("postsHashtags",{hashtags:"",maxAmount:5,selectionType:1,spaceType:1}),e("postsLinks",{links:"",maxAmount:5,selectionType:1,spaceType:1}),e("postsLocation",null),e("postsLocationVk",null),e("selectedPagesBySourceIds",{}),e("selectedAlbumsBySourceIds",{})},setForm:function(t,data){return Object(r.a)(regeneratorRuntime.mark(function e(){var o,n,r,d,h,_;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r in o=t.commit,t.dispatch,t.state,n=["id","source_resources","source_resources_mode","social_pages_by_accounts","social_albums_by_pages","projects","schedules","watermarks","posts_rewrite","posts_photos_rewrite","posts_caption","posts_caption_position_type","posts_caption_space_type","photos_caption","videos_title","posts_comment","posts_hashtags","posts_links","posts_location","posts_location_vk","is_unique_content","is_comments_disabled","publish_as_story","publish_as_story_source_ids","publish_as_reels","publish_reels_as_trial","publish_as_clips","publish_as_shorts","publish_as_article","publish_as_article_by_link","publish_in_channel","share_stories_to_feed","share_stories_to_feed_source_ids","share_reels_to_feed","share_clips_to_feed","share_clips_to_feed_with_text","share_clips_to_feed_if_no_video","share_channel_to_feed","publish_as_user","add_link_to_user","download_vk_videos","save_vk_videos_names","publish_as_carousel","publish_only_in_videos","not_publish_in_videos","repeat_video","parse_links","publish_by_account","publish_by_account_source_ids","plan_by_network","privacy_level","y
1outube_category","donut_paid_duration","delete_posts_day","delete_posts_hour","last_check_date"],data)n.indexOf(r)<0&&("selected_pages_by_source_ids"===r?data[r]=c.a.methods.filterPages(m({},data[r]),data.social_pages_by_accounts):"selected_albums_by_source_ids"===r&&(data[r]=c.a.methods.filterAlbumsPages(m({},data[r]),data.social_albums_by_pages)),o(c.a.methods.snakeCaseToCamel(r),data[r]));for(h in d={},data.source_resources)d[data.source_resources[h].source_id]=data.source_resources[h].data;o("sourceResources",d),o("sourceResourcesMode",data.source_resources_mode),o("isUniqueContent",!!data.is_unique_content),o("isCommentsDisabled",!!data.is_comments_disabled),o("publishAsStory",!!data.publish_as_story),o("publishAsStorySourceIds",data.publish_as_story_source_ids),o("publishAsReels",!!data.publish_as_reels),o("publishReelsAsTrial",!!data.publish_reels_as_trial),o("publishAsClips",!!data.publish_as_clips),o("publishAsShorts",!!data.publish_as_shorts),o("publishAsArticle",!!data.publish_as_article),o("publishAsArticleByLink",!!data.publish_as_article_by_link),o("publishInChannel",!!data.publish_in_channel),o("shareStoriesToFeed",!!data.share_stories_to_feed),o("shareStoriesToFeedSourceIds",data.share_stories_to_feed_source_ids),o("shareReelsToFeed",!!data.share_reels_to_feed),o("shareClipsToFeed",!!data.share_clips_to_feed),o("shareClipsToFeedWithText",!!data.share_clips_to_feed_with_text),o("shareClipsToFeedIfNoVideo",!!data.share_clips_to_feed_if_no_video),o("shareChannelToFeed",!!data.share_channel_to_feed),o("expandClipsTitle",!!data.expand_clips_title),o("publishAsUser",!!data.publish_as_user),o("addLinkToUser",!!data.add_link_to_user),o("messageToCommunity",!!data.message_to_community),o("messageToChannel",!!data.message_to_channel),o("downloadVkVideos",!!data.download_vk_videos),o("saveVkVideosNames",!!data.save_vk_videos_names),o("publishAsCarousel",!!data.publish_as_carousel),o("publishOnlyInVideos",!!data.publish_only_in_videos),o("notPublishInVideos",!!data.not_publish_in_videos),o("repeatVideo",!!data.repeat_video),o("parseLinks",!!data.parse_links),o("publishByAccount",!!data.publish_by_account),o("publishByAccountSourceIds",data.publish_by_account_source_ids),o("planByNetwork",!!data.plan_by_network),o("privacyLevel",data.privacy_level),o("youtubeCategory",data.youtube_category),o("donutPaidDuration",data.donut_paid_duration),o("deletePostsDay",data.delete_posts_day),o("deletePostsHour",data.delete_posts_hour),o("postsRewrite",{rewriteState:data.posts_rewrite.rewrite_state,rewriteCommand:data.posts_rewrite.rewrite_command,noPostsIfNoRewrite:data.posts_rewrite.no_posts_if_no_rewrite,rewriteForEveryPage:data.posts_rewrite.rewrite_for_every_page,textModelId:data.posts_rewrite.text_model_id||l.a,textModelKey:data.posts_rewrite.text_model_key||""}),_=data.posts_photos_rewrite||{},o("postsPhotosRewrite",{rewriteState:_.rewrite_state||1,createPhotosType:_.create_photos_type||1,rewriteCommand:_.rewrite_command||"",referencePhotos:_.reference_photos||[],noPostsIfNoRewrite:_.no_posts_if_no_rewrite||"",imageModelId:_.image_model_id||1,imageModelKey:_.image_model_key||""}),o("postsCaption",{postsCaption:data.posts_caption,postsCaptionPositionType:data.posts_caption_position_type,postsCaptionSpaceType:data.posts_caption_space_type,photosCaption:data.photos_caption,tgButtons:data.tg_buttons,videosTitle:data.videos_title,postsComment:data.posts_comment,publishCommentByAccount:!!data.publish_comment_by_account,postsPhoto:data.posts_photo,postsPhotoAlways:!!data.posts_photo_always}),o("postsHashtags",{hashtags:data.posts_hashtags.hashtags,maxAmount:data.posts_hashtags.max_amount,selectionType:data.posts_hashtags.selection_type,spaceType:data.posts_hashtags.space_type}),o("postsLinks",{links:data.posts_links.links,maxAmount:data.posts_links.max_amount,selectionType:data.posts_links.selection_type,spaceType:data.posts_links.space_type}),o("postsLocation",data.posts_location),o("postsLocationVk",data.posts_location_vk);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return m}),o.d(e,"mutations",function(){return h}),o.d(e,"actions",function(){return _});var n=o(0),r=o(11),c=(o(24),o(6),o(4),o(31),o(9),o(10),o(8),o(1),o(7),o(15),o(48),o(62));function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?l(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var m=function(){return{name:null,postTopic:null,postNotes:null,imageNotes:null,imageStyle:null,referencePhotos:null,textModelId:null,textModelKey:null,imageModelId:null,imageModelKey:null,textLimit:null,postsAmount:null,imagesType:null,imagesAmount:null,publicationWhenType:null,publicationHowType:null,publicationWhereType:null,scheduleId:null,projectId:null,selectedPagesBySourceIds:null,selectedAlbumsBySourceIds:null}},h={name:function(t,e){t.name=e},postTopic:function(t,e){t.postTopic=e},postNotes:function(t,e){t.postNotes=e},imageNotes:function(t,e){t.imageNotes=e},imageStyle:function(t,e){t.imageStyle=e},referencePhotos:function(t,e){t.referencePhotos=e},textModelId:function(t,e){t.textModelId=e},textModelKey:function(t,e){t.textModelKey=e},imageModelId:function(t,e){t.imageModelId=e},imageModelKey:function(t,e){t.imageModelKey=e},textLimit:function(t,e){t.textLimit=e},postsAmount:function(t,e){t.postsAmount=e},imagesType:function(t,e){t.imagesType=e},imagesAmount:function(t,e){t.imagesAmount=e},publicationWhenType:function(t,e){t.publicationWhenType=e},publicationHowType:function(t,e){t.publicationHowType=e},publicationWhereType:function(t,e){t.publicationWhereType=e},scheduleId:function(t,e){t.scheduleId=e},projectId:function(t,e){t.projectId=e},selectedPagesBySourceIds:function(t,e){t.selectedPagesBySourceIds=e},selectedAlbumsBySourceIds:function(t,e){t.selectedAlbumsBySourceIds=e}},_={resetForm:function(t){var e=t.commit;e("name",""),e("postTopic",""),e("postNotes",""),e("imageNotes",""),e("imageStyle",""),e("referencePhotos",[]),e("textModelId",1),e("textModelKey",""),e("imageModelId",1),e("imageModelKey",""),e("textLimit",1e3),e("postsAmount",1),e("imagesType",1),e("imagesAmount",1),e("publicationWhenType",1),e("publicationHowType",1),e("publicationWhereType",1),e("scheduleId",0),e("projectId",0),e("selectedPagesBySourceIds",{}),e("selectedAlbumsBySourceIds",{})},setForm:function(t,data){return Object(r.a)(regeneratorRuntime.mark(function e(){var o,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r in o=t.commit,n=["id","social_pages_by_accounts","social_albums_by_pages","projects","schedules","posts_created","errors_count"],data)n.includes(r)||("selected_pages_by_source_ids"===r?data[r]=c.a.methods.filterPages(d({},data[r]),data.social_pages_by_accounts):"selected_albums_by_source_ids"===r&&(data[r]=c.a.methods.filterAlbumsPages(d({},data[r]),data.social_albums_by_pages)),o(c.a.methods.snakeCaseToCamel(r),data[r]));case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return l}),o.d(e,"mutations",function(){return d}),o.d(e,"actions",function(){return m});o(6),o(39),o(43),o(44),o(22),o(1),o(20),o(29),o(36),o(32);var n=o(11);o(24),o(15);function r(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,a){if(t){if("string"==typeof t)return c(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw l}}}}function c(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=Array(a);e<a;e++)o[e]=t[e];return o}var l=function(){return{email:null,name:null,pagesAccessType:null,projectsAccessType:null,schedulesAccessType:null,selectedPagesBySourceIds:null,selectedProjects:null,selectedSchedules:null,postsAccessRights:null,projectsAccessRights:null,schedulesAccessRights:null}},d={email:function(t,e){t.email=e},name:function(t,e){t.name=e},pagesAccessType:function(t,e){t.pagesAccessType=e},projectsAccessType:function(t,e){t.projectsAccessType=e},schedulesAccessType:function(t,e){t.schedulesAccessType=e},selectedPagesBySourceIds:function(t,e){t.selectedPagesBySourceIds=e},selectedProjects:function(t,e){t.selectedProjects=e},selectedSchedules:function(t,e){t.selectedSchedules=e},postsAccessRights:function(t,e){t.postsAccessRights=e},projectsAccessRights:function(t,e){t.projectsAccessRights=e},schedulesAccessRights:function(t,e){t.schedulesAccessRights=e}},m={resetForm:function(t){var e=t.commit;e("email",""),e("name",""),e("pagesAccessType",1),e("projectsAccessType",1),e("schedulesAccessType",1),e("selectedPagesBySourceIds",{}),e("selectedProjects",[]),e("selectedSchedules",[]),e("postsAccessRights",""),e("projectsAccessRights",""),e("schedulesAccessRights","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o,n,c,l,d,m,h,_,f,v,y,k,x,w,C,S,T,P,I;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.commit,t.dispatch,t.state,o("email",data.email),o("name",data.name),o("pagesAccessType",data.pages_access_type),o("projectsAccessType",data.projects_access_type),o("schedulesAccessType",data.schedules_access_type),o("selectedPagesBySourceIds",data.selected_pages_by_source_ids),n=[],!data.selected_projects||!data.selected_projects.length){e.next=13;break}c=r(data.selected_projects),e.prev=1,c.s();case 2:if((l=c.n()).done){e.next=10;break}d=l.value,m=r(data.projects),e.prev=3,m.s();case 4:if((h=m.n()).done){e.next=6;break}if((_=h.value).id!==d){e.next=5;break}return n.push({id:d,value:_.name}),e.abrupt("continue",6);case 5:e.next=4;break;case 6:e.next=8;break;case 7:e.prev=7,S=e.catch(3),m.e(S);case 8:return e.prev=8,m.f(),e.finish(8);case 9:e.next=2;break;case 10:e.next=12;break;case 11:e.prev=11,T=e.catch(1),c.e(T);case 12:return e.prev=12,c.f(),e.finish(12);case 13:if(o("selectedProjects",n),f=[],!data.selected_schedules||!data.selected_schedules.length){e.next=26;break}v=r(data.selected_schedules),e.prev=14,v.s();case 15:if((y=v.n()).done){e.next=23;break}k=y.value,x=r(data.schedules),e.prev=16,x.s();case 17:if((w=x.n()).done){e.next=19;break}if((C=w.value).id!==k){e.next=18;break}return f.push({id:k,value:C.name}),e.abrupt("continue",19);case 18:e.next=17;break;case 19:e.next=21;break;case 20:e.prev=20,P=e.catch(16),x.e(P);case 21:return e.prev=21,x.f(),e.finish(21);case 22:e.next=15;break;case 23:e.next=25;break;case 24:e.prev=24,I=e.catch(14),v.e(I);case 25:return e.prev=25,v.f(),e.finish(25);case 26:o("selectedSchedules",f),o("postsAccessRights",data.posts_access_rights),o("projectsAccessRights",data.projects_access_rights),o("schedulesAccessRights",data.schedules_access_rights);case 27:case"end":return e.stop()}},e,null,[[1,11,12,13],[3,7,8,9],[14,24,25,26],[16,20,21,22]])}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),o(15),function(){return{email:null,name:null}}),c={email:function(t,e){t.email=e},name:function(t,e){t.name=e}},l={resetForm:function(t){var e=t.commit;e("email",""),e("name","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("email",data.email),o("name",data.name);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),function(){return{post:null}}),c={post:function(t){return t.post}},l={post:function(t,e){t.post=e}},d={getPost:function(t,e){var o=this;return Object(n.a)(regeneratorRuntime.mark(function n(){var r,c;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,t.dispatch,c=t.state,n.next=1,o.$axios.get("/shared/posts/"+e.post_id+"?page_id="+e.page_id).then(function(t){r("post",t.data)}).catch(function(t){});case 1:return n.abrupt("return",!!c.post);case 2:case"end":return n.stop()}},n)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),o(15),function(){return{name:null,file:null,space
1:null,position:null,opacity:null,size:null}}),c={name:function(t,e){t.name=e},file:function(t,e){t.file=e},space:function(t,e){t.space=e},position:function(t,e){t.position=e},opacity:function(t,e){t.opacity=e},size:function(t,e){t.size=e}},l={resetForm:function(t){var e=t.commit;e("name",""),e("file",null),e("space",1),e("position",4),e("opacity",50),e("size",15)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("name",data.name),data.file&&data.file.file_path&&o("file",data.file),o("space",data.space),o("position",data.position),o("opacity",data.opacity),o("size",data.size);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),o(15),function(){return{name:null,keywords:null,tags:null,tagsLimit:null,isRandomTags:null,tagsPosition:null}}),c={name:function(t,e){t.name=e},keywords:function(t,e){t.keywords=e},tags:function(t,e){t.tags=e},tagsLimit:function(t,e){t.tagsLimit=e},isRandomTags:function(t,e){t.isRandomTags=e},tagsPosition:function(t,e){t.tagsPosition=e}},l={resetForm:function(t){var e=t.commit;e("name",""),e("keywords",""),e("tags",""),e("tagsLimit",""),e("isRandomTags",0),e("tagsPosition",1)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("name",data.name),o("keywords",data.keywords),o("tags",data.tags),o("tagsLimit",data.tags_limit),o("isRandomTags",data.is_random_tags),o("tagsPosition",data.tags_position);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),o(15),function(){return{name:null,ip:null,port:null,login:null,password:null}}),c={name:function(t,e){t.name=e},ip:function(t,e){t.ip=e},port:function(t,e){t.port=e},login:function(t,e){t.login=e},password:function(t,e){t.password=e}},l={resetForm:function(t){var e=t.commit;e("name",""),e("ip",""),e("port",""),e("login",""),e("password","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("name",data.name),o("ip",data.ip),o("port",data.port),o("login",data.login),o("password",data.password);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return n}),o.d(e,"mutations",function(){return r}),o.d(e,"actions",function(){return c});var n=function(){return{password:null,newPassword:null,newPasswordConfirmation:null}},r={setPassword:function(t,e){t.password=e},setNewPassword:function(t,e){t.newPassword=e},setNewPasswordConfirmation:function(t,e){t.newPasswordConfirmation=e}},c={resetForm:function(t){var e=t.commit;e("setPassword",""),e("setNewPassword",""),e("setNewPasswordConfirmation","")}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{email:null,emailToConfirm:null}}),c={setEmail:function(t,e){t.email=e},setEmailToConfirm:function(t,e){t.emailToConfirm=e}},l={resetForm:function(t){var e=t.commit;e("setEmail",""),e("setEmailToConfirm","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("setEmailToConfirm",data.email_to_confirm);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),function(){return{apiToken:null}}),c={apiToken:function(t){return t.apiToken}},l={apiToken:function(t,e){t.apiToken=e}},d={resetForm:function(t){(0,t.commit)("apiToken","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("apiToken",data.api_token);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),o(15),o(68),function(){return{name:null,sourceType:null,searchType:null,sourceId:null,data:null,link:null,hashtag:null,postsFilter:null,postsText:null,postsUpgrade:null,postsTextModification:null}}),c={name:function(t,e){t.name=e},sourceType:function(t,e){t.sourceType=e},searchType:function(t,e){t.searchType=e},sourceId:function(t,e){t.sourceId=e},data:function(t,e){t.data=e},link:function(t,e){t.link=e},hashtag:function(t,e){t.hashtag=e},postsFilter:function(t,e){t.postsFilter=e},postsText:function(t,e){t.postsText=e},postsUpgrade:function(t,e){t.postsUpgrade=e},postsTextModification:function(t,e){t.postsTextModification=e}},l={resetForm:function(t){var e=t.commit;e("name",""),e("sourceType",1),e("searchType",1),e("sourceId",1),e("data",""),e("link",""),e("hashtag",""),e("postsFilter",{}),e("postsText",{}),e("postsUpgrade",{}),e("postsTextModification",{})},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("name",data.name),o("sourceType",data.source_type),o("searchType",data.search_type),o("sourceId",data.source_id),o("data",data.data),o("link",data.link),o("hashtag",data.hashtag),o("postsFilter",data.posts_filter),o("postsText",data.posts_text),o("postsUpgrade",data.posts_upgrade),o("postsTextModification",data.posts_text_modification);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),function(){return{isAddAuthorLink:null,isAddCopyright:null,isSaveSourcePhotosLinks:null,isSaveSourceVideosNames:null,isDeleteUsedPostsFromSearch:null}}),c={isAddAuthorLink:function(t){return t.isAddAuthorLink},isAddCopyright:function(t){return t.isAddCopyright},isSaveSourcePhotosLinks:function(t){return t.isSaveSourcePhotosLinks},isSaveSourceVideosNames:function(t){return t.isSaveSourceVideosNames},isDeleteUsedPostsFromSearch:function(t){return t.isDeleteUsedPostsFromSearch}},l={isAddAuthorLink:function(t,e){t.isAddAuthorLink=e},isAddCopyright:function(t,e){t.isAddCopyright=e},isSaveSourcePhotosLinks:function(t,e){t.isSaveSourcePhotosLinks=e},isSaveSourceVideosNames:function(t,e){t.isSaveSourceVideosNames=e},isDeleteUsedPostsFromSearch:function(t,e){t.isDeleteUsedPostsFromSearch=e}},d={resetForm:function(t){var e=t.commit;e("isAddAuthorLink",!1),e("isAddCopyright",!1),e("isSaveSourcePhotosLinks",!1),e("isSaveSourceVideosNames",!0),e("isDeleteUsedPostsFromSearch",!0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("isAddAuthorLink",data.is_add_author_link),o("isAddCopyright",data.is_add_copyright),o("isSaveSourcePhotosLinks",data.is_save_source_photos_links),o("isSaveSourceVideosNames",data.is_save_source_videos_names),o("isDeleteUsedPostsFromSearch",data.is_delete_used_posts_from_search);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(41),r=o(11),c=(o(24),o(137),function(){return{sourceType:null,searchType:null,sourceId:null,postsType:null,textMarkupType:null,sourceResourceId:null,socialAccountForParsingId:null,dateFrom:null,dateTo:null}}),l={sourceType:function(t,e){t.sourceType=e},searchType:function(t,e){t.searchType=e},sourceId:function(t,e){t.sourceId=e},postsType:function(t,e){t.postsType=e},textMarkupType:function(t,e){t.textMarkupType=e},sourceResourceId:function(t,e){t.sourceResourceId=e},socialAccountForParsingId:function(t,e){t.socialAccountForParsingId=e},dateFrom:function(t,e){t.dateFrom=e},dateTo:function(t,e){t.dateTo=e}},d={resetForm:function(t){var e=t.commit;e("sourceType",1),e("searchType",1),e("sourceId",1),e("postsType",1),e("textMarkupType",1),e("sourceResourceId",0),e("socialAccountForParsingId",0),e("dateFrom",""),e("dateTo","")},setFromState:function(t,data){return Object(r.a)(regeneratorRuntime.mark(function e(){var o,r,c,l,d,m;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(o=t.commit,t.dispatch,t.state,r=0,c=Object.entries(data);r<c.length;r++)l=Object(n.a)(c[r],2),d=l[0],m=l[1],o(d,m);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),o(15),function(){return{name:null,sourceId:null,sourceResourceId:null,sourceResources:null}}),c={name:function(t,e){t.name=e},sourceId:function(t,e){t.sourceId=e},sourceResourceId:function(t,e){t.sourceResourceId=e},sourceResources:function(t,e){t.sourceResources=e}},l={resetForm:function(t){var e=t.commit;e("name",""),e("sourceId",1),e("sourceResourceId",0),e("sourceResources",[])},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("name",data.name),o("sourceId",data.source_id),o("sourceResourceId",data.source_resource_id),o("sourceResources",data.source_resources);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return m}),o.d(e,"mutations",function(){return h}),o.d(e,"actions",function(){return _});o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=o(11),c=(o(24),o(15),o(62));function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?l(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var m=function(){return{name:null,times:null,state:null,startDate:null,startTimeHours:null,startTimeMinutes:null,stopDate:null,stopTimeHours:null,stopTimeMinutes:null,publicationHowType:null,publicationWhereType:null,projectId:null,watermarkId:null,utmTags:null,isUniqueContent:null,isPostsRepeated:null,isRandomContent:null,isCommentsDisabled:null,publishAsStory:null,publishAsStorySourceIds:null,publishAsReels:null,publishReelsAsTrial:null,publishAsClips:null,publishAsShorts:null,publishAsArticle:null,publishAsArticleByLink:null,publishInChannel:null,shareStoriesToFeed:null,shareStoriesToFeedSourceIds:null,shareReelsToFeed:null,shareClipsToFeed:null,shareClipsToFeedWithText:null,shareClipsToFeedIfNoVideo:null,shareChannelToFeed:null,expandClipsTitle:null,publishAsUser:null,addLinkToUser:null,messageToCommunity:null,messageToChannel:null,downloadVkVideos:null,saveVkVideosNames:null,publishAsCarousel:null,publishOnlyInVideos:null,notPublishInVideos:null,repeatVideo:null,parseLinks:null,publishByAccount:null,publishByAccountSourceIds:null,planByNetwork:null,privacyLevel:null,youtubeCategory:null,donutPaidDuration:null,deletePostsDay:null,deletePostsHour:null,postsRewrite:{rewriteState:null,rewriteCommand:null,noPostsIfNoRewrite:null,rewriteForEveryPage:null,textModelId:null,textModelKey:null},postsCaption:{postsCaption:null,postsCaptionPositionType:null,postsCaptionSpaceType:null,photosCaption:null,tgButtons:null,videosTitle:null,postsComment:null,publishCommentByAccount:null,postsPhoto:null,postsPhotoAlways:null},postsHashtags:{hashtags:null,maxAmount:null,selectionType:null,spaceType:null},postsLinks:{links:null,maxAmount:null,selectionType:null,spaceType:null},postsLocation:null,postsLocationVk:null,selectedPagesBySourceIds:null,selectedAlbumsBySourceIds:null}},h={name:function(t,e){t.name=e},times:function(t,e){t.times=e},state:function(t,e){t.state=e},startDate:function(t,e){t.startDate=e},startTimeHours:function(t,e){t.startTimeHours=e},startTimeMinutes:function(t,e){t.startTimeMinutes=e},stopDate:function(t,e){t.stopDate=e},stopTimeHours:function(t,e){t.stopTimeHours=e},stopTimeMinutes:function(t,e){t.stopTimeMinutes=e},publicationHowType:function(t,e){t.publicationHowType=e},publicationWhereType:function(t,e){t.publicationWhereType=e},projectId:function(t,e){t.projectId=e},watermarkId:function(t,e){t.watermarkId=e},utmTags:function(t,e){t.utmTags=e},isUniqueContent:function(t,e){t.isUniqueContent=e},isPostsRepeated:function(t,e){t.isPostsRepeated=e},isRandomContent:function(t,e){t.isRandomContent=e},isCommentsDisabled:function(t,e){t.isCommentsDisabled=e},publishAsStory:function(t,e){t.publishAsStory=e},publishAsStorySourceIds:function(t,e){t.publishAsStorySourceIds=e},publishAsReels:function(t,e){t.publishAsReels=e},publishReelsAsTrial:function(t,e){t.publishReelsAsTrial=e},publishAsClips:function(t,e){t.publishAsClips=e},publishAsShorts:function(t,e){t.publishAsShorts=e},publishAsArticle:function(t,e){t.publishAsArticle=e},publishAsArticleByLink:function(t,e){t.publishAsArticleByLink=e},publishInChannel:function(t,e){t.publishInChannel=e},shareStoriesToFeed:function(t,e){t.shareStoriesToFeed=e},shareStoriesToFeedSourceIds:function(t,e){t.shareStoriesToFeedSourceIds=e},shareReelsToFeed:function(t,e){t.shareReelsToFeed=e},shareClipsToFeed:function(t,e){t.shareClipsToFeed=e},shareClipsToFeedWithText:function(t,e){t.shareClipsToFeedWithText=e},shareClipsToFeedIfNoVideo:function(t,e){t.shareClipsToFeedIfNoVideo=e},shareChannelToFeed:function(t,e){t.shareChannelToFeed=e},expandClipsTitle:function(t,e){t.expandClipsTitle=e},publishAsUser:function(t,e){t.publishAsUser=e},addLinkToUser:function(t,e){t.addLinkToUser=e},messageToCommunity:function(t,e){t.messageToCommunity=e},messageToChannel:function(t,e){t.messageToChannel=e},downloadVkVideos:function(t,e){t.downloadVkVideos=e},saveVkVideosNames:function(t,e){t.saveVkVideosNames=e}
1,publishAsCarousel:function(t,e){t.publishAsCarousel=e},publishOnlyInVideos:function(t,e){t.publishOnlyInVideos=e},notPublishInVideos:function(t,e){t.notPublishInVideos=e},repeatVideo:function(t,e){t.repeatVideo=e},parseLinks:function(t,e){t.parseLinks=e},publishByAccount:function(t,e){t.publishByAccount=e},publishByAccountSourceIds:function(t,e){t.publishByAccountSourceIds=e},planByNetwork:function(t,e){t.planByNetwork=e},deletePostsDay:function(t,e){t.deletePostsDay=e},deletePostsHour:function(t,e){t.deletePostsHour=e},postsRewrite:function(t,e){t.postsRewrite=e},postsCaption:function(t,e){t.postsCaption=e},postsHashtags:function(t,e){t.postsHashtags=e},postsLinks:function(t,e){t.postsLinks=e},postsLocation:function(t,e){t.postsLocation=e},postsLocationVk:function(t,e){t.postsLocationVk=e},privacyLevel:function(t,e){t.privacyLevel=e},youtubeCategory:function(t,e){t.youtubeCategory=e},donutPaidDuration:function(t,e){t.donutPaidDuration=e},selectedPagesBySourceIds:function(t,e){t.selectedPagesBySourceIds=e},selectedAlbumsBySourceIds:function(t,e){t.selectedAlbumsBySourceIds=e}},_={resetForm:function(t){var e=t.commit;t.dispatch;e("name",""),e("times",[[],[],[],[],[],[],[]]),e("state",1),e("startDate",""),e("startTimeHours",""),e("startTimeMinutes",""),e("stopDate",""),e("stopTimeHours",""),e("stopTimeMinutes",""),e("publicationHowType",1),e("publicationWhereType",1),e("projectId",0),e("watermarkId",0),e("utmTags",""),e("isUniqueContent",!1),e("isPostsRepeated",!1),e("isRandomContent",!1),e("isCommentsDisabled",!1),e("publishAsStory",!1),e("publishAsStorySourceIds",""),e("publishAsReels",!1),e("publishReelsAsTrial",!1),e("publishAsClips",!1),e("publishAsShorts",!1),e("publishAsArticle",!1),e("publishAsArticleByLink",!1),e("publishInChannel",!1),e("shareStoriesToFeed",!1),e("shareStoriesToFeedSourceIds",""),e("shareReelsToFeed",!1),e("shareClipsToFeed",!1),e("shareClipsToFeedWithText",!1),e("shareClipsToFeedIfNoVideo",!1),e("shareChannelToFeed",!1),e("expandClipsTitle",!1),e("publishAsUser",!1),e("addLinkToUser",!1),e("messageToCommunity",!1),e("messageToChannel",!1),e("downloadVkVideos",!1),e("saveVkVideosNames",!1),e("publishAsCarousel",!1),e("publishOnlyInVideos",!1),e("notPublishInVideos",!1),e("repeatVideo",!1),e("parseLinks",!1),e("publishByAccount",!1),e("publishByAccountSourceIds",""),e("planByNetwork",!1),e("privacyLevel",0),e("youtubeCategory",0),e("donutPaidDuration",0),e("deletePostsDay",0),e("deletePostsHour",0),e("postsRewrite",{rewriteState:1,rewriteCommand:"",noPostsIfNoRewrite:"",rewriteForEveryPage:"",textModelId:1,textModelKey:""}),e("postsCaption",{postsCaption:"",postsCaptionPositionType:1,postsCaptionSpaceType:1,photosCaption:"",tgButtons:{list:[]},videosTitle:"",postsComment:"",publishCommentByAccount:!1,postsPhoto:null,postsPhotoAlways:!1}),e("postsHashtags",{hashtags:"",maxAmount:5,selectionType:1,spaceType:1}),e("postsLinks",{links:"",maxAmount:5,selectionType:1,spaceType:1}),e("postsLocation",null),e("postsLocationVk",null),e("selectedPagesBySourceIds",{}),e("selectedAlbumsBySourceIds",{})},setForm:function(t,data){return Object(r.a)(regeneratorRuntime.mark(function e(){var o,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r in o=t.commit,t.dispatch,t.state,n=["id","start_date","stop_date","is_unique_content","is_posts_repeated","is_random_content","is_comments_disabled","publish_as_story","publish_as_story_source_ids","publish_as_reels","publish_reels_as_trial","publish_as_clips","publish_as_shorts","publish_as_article","publish_as_article_by_link","publish_in_channel","share_stories_to_feed","share_stories_to_feed_source_ids","share_reels_to_feed","share_clips_to_feed","share_clips_to_feed_with_text","share_clips_to_feed_if_no_video","share_channel_to_feed","publish_as_user","add_link_to_user","download_vk_videos","save_vk_videos_names","publish_as_carousel","publish_only_in_videos","not_publish_in_videos","repeat_video","parse_links","publish_by_account","publish_by_account_source_ids","plan_by_network","privacy_level","y
1outube_category","donut_paid_duration","delete_posts_day","delete_posts_hour","social_pages_by_accounts","social_albums_by_pages","projects","watermarks","posts_rewrite","posts_caption","posts_caption_position_type","posts_caption_space_type","photos_caption","videos_title","posts_comment","posts_hashtags","posts_links","posts_location","posts_location_vk"],data)n.indexOf(r)<0&&("selected_pages_by_source_ids"===r?data[r]=c.a.methods.filterPages(d({},data[r]),data.social_pages_by_accounts):"selected_albums_by_source_ids"===r&&(data[r]=c.a.methods.filterAlbumsPages(d({},data[r]),data.social_albums_by_pages)),o(c.a.methods.snakeCaseToCamel(r),data[r]));o("startDate",data.start_date.date),o("startTimeHours",data.start_date.hours),o("startTimeMinutes",data.start_date.minutes),o("stopDate",data.stop_date.date),o("stopTimeHours",data.stop_date.hours),o("stopTimeMinutes",data.stop_date.minutes),o("isUniqueContent",!!data.is_unique_content),o("isPostsRepeated",!!data.is_posts_repeated),o("isRandomContent",!!data.is_random_content),o("isCommentsDisabled",!!data.is_comments_disabled),o("publishAsStory",!!data.publish_as_story),o("publishAsStorySourceIds",data.publish_as_story_source_ids),o("publishAsReels",!!data.publish_as_reels),o("publishReelsAsTrial",!!data.publish_reels_as_trial),o("publishAsClips",!!data.publish_as_clips),o("publishAsShorts",!!data.publish_as_shorts),o("publishAsArticle",!!data.publish_as_article),o("publishAsArticleByLink",!!data.publish_as_article_by_link),o("publishInChannel",!!data.publish_in_channel),o("shareStoriesToFeed",!!data.share_stories_to_feed),o("shareStoriesToFeedSourceIds",data.share_stories_to_feed_source_ids),o("shareReelsToFeed",!!data.share_reels_to_feed),o("shareClipsToFeed",!!data.share_clips_to_feed),o("shareClipsToFeedWithText",!!data.share_clips_to_feed_with_text),o("shareClipsToFeedIfNoVideo",!!data.share_clips_to_feed_if_no_video),o("shareChannelToFeed",!!data.share_channel_to_feed),o("expandClipsTitle",!!data.expand_clips_title),o("publishAsUser",!!data.publish_as_user),o("addLinkToUser",!!data.add_link_to_user),o("messageToCommunity",!!data.message_to_community),o("messageToChannel",!!data.message_to_channel),o("downloadVkVideos",!!data.download_vk_videos),o("saveVkVideosNames",!!data.save_vk_videos_names),o("publishAsCarousel",!!data.publish_as_carousel),o("publishOnlyInVideos",!!data.publish_only_in_videos),o("notPublishInVideos",!!data.not_publish_in_videos),o("repeatVideo",!!data.repeat_video),o("parseLinks",!!data.parse_links),o("publishByAccount",!!data.publish_by_account),o("publishByAccountSourceIds",data.publish_by_account_source_ids),o("planByNetwork",!!data.plan_by_network),o("privacyLevel",data.privacy_level),o("youtubeCategory",data.youtube_category),o("donutPaidDuration",data.donut_paid_duration),o("deletePostsDay",data.delete_posts_day),o("deletePostsHour",data.delete_posts_hour),o("postsRewrite",{rewriteState:data.posts_rewrite.rewrite_state,rewriteCommand:data.posts_rewrite.rewrite_command,noPostsIfNoRewrite:data.posts_rewrite.no_posts_if_no_rewrite,rewriteForEveryPage:data.posts_rewrite.rewrite_for_every_page,textModelId:data.posts_rewrite.text_model_id||1,textModelKey:data.posts_rewrite.text_model_key||""}),o("postsCaption",{postsCaption:data.posts_caption,postsCaptionPositionType:data.posts_caption_position_type,postsCaptionSpaceType:data.posts_caption_space_type,photosCaption:data.photos_caption,tgButtons:data.tg_buttons,videosTitle:data.videos_title,postsComment:data.posts_comment,publishCommentByAccount:!!data.publish_comment_by_account,postsPhoto:data.posts_photo,postsPhotoAlways:!!data.posts_photo_always}),o("postsHashtags",{hashtags:data.posts_hashtags.hashtags,maxAmount:data.posts_hashtags.max_amount,selectionType:data.posts_hashtags.selection_type,spaceType:data.posts_hashtags.space_type}),o("postsLinks",{links:data.posts_links.links,maxAmount:data.posts_links.max_amount,selectionType:data.posts_links.selection_type,spaceType:data.posts_links.space_type}),o("postsLocation",data.posts_location),o("postsLocationVk",data.posts_location_vk);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return m}),o.d(e,"mutations",function(){return h}),o.d(e,"actions",function(){return _});o(6),o(4),o(9),o(10),o(8),o(1),o(7);var n=o(0),r=o(11),c=(o(24),o(15),o(62));function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
1e%2?l(Object(o),!0).forEach(function(e){Object(n.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var m=function(){return{name:null,publicationWhereType:null,watermarkId:null,utmTags:null,isUniqueContent:null,isCommentsDisabled:null,publishAsStory:null,publishAsStorySourceIds:null,publishAsReels:null,publishReelsAsTrial:null,publishAsClips:null,publishAsShorts:null,publishAsArticle:null,publishAsArticleByLink:null,publishInChannel:null,shareStoriesToFeed:null,shareStoriesToFeedSourceIds:null,shareReelsToFeed:null,shareClipsToFeed:null,shareClipsToFeedWithText:null,shareClipsToFeedIfNoVideo:null,shareChannelToFeed:null,expandClipsTitle:null,publishAsUser:null,addLinkToUser:null,messageToCommunity:null,messageToChannel:null,downloadVkVideos:null,saveVkVideosNames:null,publishAsCarousel:null,publishOnlyInVideos:null,notPublishInVideos:null,repeatVideo:null,parseLinks:null,publishByAccount:null,publishByAccountSourceIds:null,planByNetwork:null,privacyLevel:null,youtubeCategory:null,donutPaidDuration:null,deletePostsDay:null,deletePostsHour:null,postsRewrite:{rewriteState:null,rewriteCommand:null,noPostsIfNoRewrite:null,rewriteForEveryPage:null,textModelId:null,textModelKey:null},postsCaption:{postsCaption:null,postsCaptionPositionType:null,postsCaptionSpaceType:null,photosCaption:null,tgButtons:null,videosTitle:null,postsComment:null,publishCommentByAccount:null,postsPhoto:null,postsPhotoAlways:null},postsHashtags:{hashtags:null,maxAmount:null,selectionType:null,spaceType:null},postsLinks:{links:null,maxAmount:null,selectionType:null,spaceType:null},postsLocation:null,postsLocationVk:null,selectedPagesBySourceIds:null,selectedAlbumsBySourceIds:null,publicationFromUserSourceIds:null}},h={name:function(t,e){t.name=e},publicationWhereType:function(t,e){t.publicationWhereType=e},watermarkId:function(t,e){t.watermarkId=e},utmTags:function(t,e){t.utmTags=e},isUniqueContent:function(t,e){t.isUniqueContent=e},isCommentsDisabled:function(t,e){t.isCommentsDisabled=e},publishAsStory:function(t,e){t.publishAsStory=e},publishAsStorySourceIds:function(t,e){t.publishAsStorySourceIds=e},publishAsReels:function(t,e){t.publishAsReels=e},publishReelsAsTrial:function(t,e){t.publishReelsAsTrial=e},publishAsClips:function(t,e){t.publishAsClips=e},publishAsShorts:function(t,e){t.publishAsShorts=e},publishAsArticle:function(t,e){t.publishAsArticle=e},publishAsArticleByLink:function(t,e){t.publishAsArticleByLink=e},publishInChannel:function(t,e){t.publishInChannel=e},shareStoriesToFeed:function(t,e){t.shareStoriesToFeed=e},shareStoriesToFeedSourceIds:function(t,e){t.shareStoriesToFeedSourceIds=e},shareReelsToFeed:function(t,e){t.shareReelsToFeed=e},shareClipsToFeed:function(t,e){t.shareClipsToFeed=e},shareClipsToFeedWithText:function(t,e){t.shareClipsToFeedWithText=e},shareClipsToFeedIfNoVideo:function(t,e){t.shareClipsToFeedIfNoVideo=e},shareChannelToFeed:function(t,e){t.shareChannelToFeed=e},expandClipsTitle:function(t,e){t.expandClipsTitle=e},publishAsUser:function(t,e){t.publishAsUser=e},addLinkToUser:function(t,e){t.addLinkToUser=e},messageToCommunity:function(t,e){t.messageToCommunity=e},messageToChannel:function(t,e){t.messageToChannel=e},downloadVkVideos:function(t,e){t.downloadVkVideos=e},saveVkVideosNames:function(t,e){t.saveVkVideosNames=e},publishAsCarousel:function(t,e){t.publishAsCarousel=e},publishOnlyInVideos:function(t,e){t.publishOnlyInVideos=e},notPublishInVideos:function(t,e){t.notPublishInVideos=e},repeatVideo:function(t,e){t.repeatVideo=e},parseLinks:function(t,e){t.parseLinks=e},publishByAccount:function(t,e){t.publishByAccount=e},publishByAccountSourceIds:function(t,e){t.publishByAccountSourceIds=e},planByNetwork:function(t,e){t.planByNetwork=e},privacyLevel:function(t,e){t.privacyLevel=e},youtubeCategory:function(t,e){t.youtubeCategory=e},donutPaidDuration:function(t,e){t.donutPaidDuration=e},deletePostsDay:function(t,e){t.deletePostsDay=e},deletePostsHour:function(t,e){t.deletePostsHour=e},postsRewrite:function(t,e){t.postsRewrite=e},postsCaption:function(t,e){t.postsCaption=e},postsHashtags:function(t,e){t.postsHashtags=e},postsLinks:function(t,e){t.postsLinks=e},postsLocation:function(t,e){t.postsLocation=e},postsLocationVk:function(t,e){t.postsLocationVk=e},selectedPagesBySourceIds:function(t,e){t.selectedPagesBySourceIds=e},selectedAlbumsBySourceIds:function(t,e){t.selectedAlbumsBySourceIds=e},publicationFromUserSourceIds:function(t,e){t.publicationFromUserSourceIds=e}},_={resetForm:function(t){var e=t.commit;
1t.dispatch;e("name",""),e("publicationWhereType",1),e("watermarkId",0),e("utmTags",""),e("isUniqueContent",!1),e("isCommentsDisabled",!1),e("publishAsStory",!1),e("publishAsStorySourceIds",""),e("publishAsReels",!1),e("publishAsClips",!1),e("publishAsShorts",!1),e("publishAsArticle",!1),e("publishAsArticleByLink",!1),e("publishInChannel",!1),e("shareStoriesToFeed",!1),e("shareStoriesToFeedSourceIds",""),e("shareReelsToFeed",!1),e("publishReelsAsTrial",!1),e("shareClipsToFeed",!1),e("shareClipsToFeedWithText",!1),e("shareClipsToFeedIfNoVideo",!1),e("shareChannelToFeed",!1),e("expandClipsTitle",!1),e("publishAsUser",!1),e("addLinkToUser",!1),e("messageToCommunity",!1),e("messageToChannel",!1),e("downloadVkVideos",!1),e("saveVkVideosNames",!1),e("publishAsCarousel",!1),e("publishOnlyInVideos",!1),e("notPublishInVideos",!1),e("repeatVideo",!1),e("parseLinks",!1),e("publishByAccount",!1),e("publishByAccountSourceIds",""),e("planByNetwork",!1),e("privacyLevel",0),e("youtubeCategory",0),e("donutPaidDuration",0),e("deletePostsDay",0),e("deletePostsHour",0),e("postsRewrite",{rewriteState:1,rewriteCommand:"",noPostsIfNoRewrite:"",rewriteForEveryPage:"",textModelId:1,textModelKey:""}),e("postsCaption",{postsCaption:"",postsCaptionPositionType:1,postsCaptionSpaceType:1,photosCaption:"",tgButtons:{list:[]},videosTitle:"",postsComment:"",publishCommentByAccount:!1,postsPhoto:null,postsPhotoAlways:!1}),e("postsHashtags",{hashtags:"",maxAmount:5,selectionType:1,spaceType:1}),e("postsLinks",{links:"",maxAmount:5,selectionType:1,spaceType:1}),e("postsLocation",null),e("postsLocationVk",null),e("selectedPagesBySourceIds",{}),e("selectedAlbumsBySourceIds",{}),e("publicationFromUserSourceIds",[])},setForm:function(t,data){return Object(r.a)(regeneratorRuntime.mark(function e(){var o,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r in o=t.commit,t.dispatch,t.state,n=["id","is_unique_content","is_comments_disabled","publish_as_story","publish_as_story_source_ids","publish_as_reels","publish_reels_as_trial","publish_as_clips","publish_as_shorts","publish_as_article","publish_as_article_by_link","publish_in_channel","share_stories_to_feed","share_stories_to_feed_source_ids","share_reels_to_feed","share_clips_to_feed","share_clips_to_feed_with_text","share_clips_to_feed_if_no_video","share_channel_to_feed","publish_as_user","add_link_to_user","download_vk_videos","save_vk_videos_names","publish_as_carousel","publish_only_in_videos","not_publish_in_videos","repeat_video","parse_links","publish_by_account","publish_by_account_source_ids","plan_by_network","privacy_level","y
1outube_category","donut_paid_duration","delete_posts_day","delete_posts_hour","social_pages_by_accounts","social_albums_by_pages","watermarks","posts_rewrite","posts_caption","posts_caption_position_type","posts_caption_space_type","photos_caption","videos_title","posts_comment","posts_hashtags","posts_links","posts_location","posts_location_vk"],data)n.indexOf(r)<0&&("selected_pages_by_source_ids"===r?data[r]=c.a.methods.filterPages(d({},data[r]),data.social_pages_by_accounts):"selected_albums_by_source_ids"===r&&(data[r]=c.a.methods.filterAlbumsPages(d({},data[r]),data.social_albums_by_pages)),o(c.a.methods.snakeCaseToCamel(r),data[r]));o("isUniqueContent",!!data.is_unique_content),o("isCommentsDisabled",!!data.is_comments_disabled),o("publishAsStory",!!data.publish_as_story),o("publishAsStorySourceIds",data.publish_as_story_source_ids),o("publishAsReels",!!data.publish_as_reels),o("publishReelsAsTrial",!!data.publish_reels_as_trial),o("publishAsClips",!!data.publish_as_clips),o("publishAsShorts",!!data.publish_as_shorts),o("publishAsArticle",!!data.publish_as_article),o("publishAsArticleByLink",!!data.publish_as_article_by_link),o("publishInChannel",!!data.publish_in_channel),o("shareStoriesToFeed",!!data.share_stories_to_feed),o("shareStoriesToFeedSourceIds",data.share_stories_to_feed_source_ids),o("shareReelsToFeed",!!data.share_reels_to_feed),o("shareClipsToFeed",!!data.share_clips_to_feed),o("shareClipsToFeedWithText",!!data.share_clips_to_feed_with_text),o("shareClipsToFeedIfNoVideo",!!data.share_clips_to_feed_if_no_video),o("shareChannelToFeed",!!data.share_channel_to_feed),o("expandClipsTitle",!!data.expand_clips_title),o("publishAsUser",!!data.publish_as_user),o("addLinkToUser",!!data.add_link_to_user),o("messageToCommunity",!!data.message_to_community),o("messageToChannel",!!data.message_to_channel),o("downloadVkVideos",!!data.download_vk_videos),o("saveVkVideosNames",!!data.save_vk_videos_names),o("publishAsCarousel",!!data.publish_as_carousel),o("publishOnlyInVideos",!!data.publish_only_in_videos),o("notPublishInVideos",!!data.not_publish_in_videos),o("repeatVideo",!!data.repeat_video),o("parseLinks",!!data.parse_links),o("publishByAccount",!!data.publish_by_account),o("publishByAccountSourceIds",data.publish_by_account_source_ids),o("planByNetwork",!!data.plan_by_network),o("privacyLevel",data.privacy_level),o("youtubeCategory",data.youtube_category),o("donutPaidDuration",data.donut_paid_duration),o("deletePostsDay",data.delete_posts_day),o("deletePostsHour",data.delete_posts_hour),o("postsRewrite",{rewriteState:data.posts_rewrite.rewrite_state,rewriteCommand:data.posts_rewrite.rewrite_command,noPostsIfNoRewrite:data.posts_rewrite.no_posts_if_no_rewrite,rewriteForEveryPage:data.posts_rewrite.rewrite_for_every_page,textModelId:data.posts_rewrite.text_model_id||1,textModelKey:data.posts_rewrite.text_model_key||""}),o("postsCaption",{postsCaption:data.posts_caption,postsCaptionPositionType:data.posts_caption_position_type,postsCaptionSpaceType:data.posts_caption_space_type,photosCaption:data.photos_caption,tgButtons:data.tg_buttons,videosTitle:data.videos_title,postsComment:data.posts_comment,publishCommentByAccount:!!data.publish_comment_by_account,postsPhoto:data.posts_photo,postsPhotoAlways:!!data.posts_photo_always}),o("postsHashtags",{hashtags:data.posts_hashtags.hashtags,maxAmount:data.posts_hashtags.max_amount,selectionType:data.posts_hashtags.selection_type,spaceType:data.posts_hashtags.space_type}),o("postsLinks",{links:data.posts_links.links,maxAmount:data.posts_links.max_amount,selectionType:data.posts_links.selection_type,spaceType:data.posts_links.space_type}),o("postsLocation",data.posts_location),o("postsLocationVk",data.posts_location_vk);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),o(15),o(66),function(){return{ordId:null,type:null,name:null,roles:null,phone:null,inn:null}}),c={ordId:function(t){return t.ordId},type:function(t){return t.type},name:function(t){return t.name},roles:function(t){return t.roles},phone:function(t){return t.phone},inn:function(t){return t.inn}},l={ordId:function(t,e){t.ordId=e},type:function(t,e){t.type=e},name:function(t,e){t.name=e},roles:function(t,e){t.roles=e},phone:function(t,e){t.phone=e},inn:function(t,e){t.inn=e}},d={resetForm:function(t){var e=t.commit;e("ordId",""),e("type",0),e("name",""),e("roles",""),e("phone",""),e("inn","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("ordId",data.ord_id),o("type",Number(data.type)),o("name",data.name),o("roles",data.roles),o("phone",data.phone),o("inn",data.inn);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"getters",function(){return c}),o.d(e,"mutations",function(){return l}),o.d(e,"actions",function(){return d});var n=o(11),r=(o(24),o(15),o(66),o(373),function(){return{ordId:null,parentContractId:null,type:null,name:null,serialNumber:null,subjectType:null,actionType:null,clientPersonId:null,contractorPersonId:null,okvedCode:null,kktuCode:null,contractDate:null,contractPrice:null,postPriceMode:null,postPrice:null,flags:null}}),c={ordId:function(t){return t.ordId},parentContractId:function(t){return t.parentContractId},type:function(t){return t.type},name:function(t){return t.name},serialNumber:function(t){return t.serialNumber},subjectType:function(t){return t.subjectType},actionType:function(t){return t.actionType},clientPersonId:function(t){return t.clientPersonId},contractorPersonId:function(t){return t.contractorPersonId},okvedCode:function(t){return t.okvedCode},kktuCode:function(t){return t.kktuCode},contractDate:function(t){return t.contractDate},contractPrice:function(t){return t.contractPrice},postPriceMode:function(t){return t.postPriceMode},postPrice:function(t){return t.postPrice},flags:function(t){return t.flags}},l={ordId:function(t,e){t.ordId=e},parentContractId:function(t,e){t.parentContractId=e},type:function(t,e){t.type=e},name:function(t,e){t.name=e},serialNumber:function(t,e){t.serialNumber=e},subjectType:function(t,e){t.subjectType=e},actionType:function(t,e){t.actionType=e},clientPersonId:function(t,e){t.clientPersonId=e},contractorPersonId:function(t,e){t.contractorPersonId=e},okvedCode:function(t,e){t.okvedCode=e},kktuCode:function(t,e){t.kktuCode=e},contractDate:function(t,e){t.contractDate=e},contractPrice:function(t,e){t.contractPrice=e},postPriceMode:function(t,e){t.postPriceMode=e},postPrice:function(t,e){t.postPrice=e},flags:function(t,e){t.flags=e}},d={resetForm:function(t){var e=t.commit;e("ordId",""),e("parentContractId",0),e("type",0),e("name",""),e("serialNumber",""),e("subjectType",2),e("actionType",0),e("clientPersonId",0),e("contractorPersonId",0),e("contractDate",""),e("okvedCode",""),e("kktuCode",""),e("contractPrice",0),e("postPriceMode",1),e("postPrice",0),e("flags","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("ordId",data.ord_id),o("parentContractId",Number(data.parent_contract_id)),o("type",Number(data.type)),o("name",data.name),o("serialNumber",data.seri
1al_number),o("subjectType",Number(data.subject_type)),o("actionType",Number(data.action_type)),o("clientPersonId",Number(data.client_person_id)),o("contractorPersonId",Number(data.contractor_person_id)),o("okvedCode",data.okved_code),o("kktuCode",data.kktu_code),o("contractDate",data.contract_date),o("contractPrice",Number(data.contract_price)),o("postPriceMode",Number(data.post_price_mode)),o("postPrice",Number(data.post_price)),o("flags",data.flags);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{phone:null,proxyType:null,proxyId:null}}),c={phone:function(t,e){t.phone=e},proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e}},l={resetForm:function(t){var e=t.commit;e("phone",""),e("proxyType",1),e("proxyId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("phone",data.phone),o("proxyType",data.proxy_type),o("proxyId",data.proxy_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{siteAddress:null,category:null,profileLogin:null,appPassword:null}}),c={siteAddress:function(t,e){t.siteAddress=e},category:function(t,e){t.category=e},profileLogin:function(t,e){t.profileLogin=e},appPassword:function(t,e){t.appPassword=e}},l={resetForm:function(t){var e=t.commit;e("siteAddress",""),e("category",""),e("profileLogin",""),e("appPassword","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("siteAddress",data.site_address),o("category",data.category),o("profileLogin",data.profile_login),o("appPassword",data.app_password);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{proxyType:null,proxyId:null,userInfo:null}}),c={proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e},userInfo:function(t,e){t.userInfo=e}},l={resetForm:function(t){var e=t.commit;e("proxyType",1),e("proxyId",0),e("userInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("proxyType",data.proxy_type),o("proxyId",data.proxy_id),o("userInfo",data.user_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{apiType:null,instanceId:null,instanceApiToken:null,chatType:null,chatId:null,chatName:null,groupId:null,groupAlias:null,groupName:null}}),c={apiType:function(t,e){t.apiType=e},instanceId:function(t,e){t.instanceId=e},instanceApiToken:function(t,e){t.instanceApiToken=e},chatType:function(t,e){t.chatType=e},chatId:function(t,e){t.chatId=e},chatName:function(t,e){t.chatName=e},groupId:function(t,e){t.groupId=e},groupAlias:function(t,e){t.groupAlias=e},groupName:function(t,e){t.groupName=e}},l={resetForm:function(t){var e=t.commit;e("apiType",2),e("instanceId",""),e("instanceApiToken",""),e("chatType",1),e("chatId",""),e("chatName",""),e("groupId",""),e("groupAlias",""),e("groupName","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("apiType",data.api_type),o("instanceId",data.instance_id),o("instanceApiToken",data.instance_api_token),o("chatType",data.chat_type),o("chatId",data.chat_id),o("chatName",data.chat_name),o("groupId",data.group_id),o("groupAlias",data.group_alias),o("groupName",data.group_name);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{phone:null,proxyType:null,proxyId:null}}),c={phone:function(t,e){t.phone=e},proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e}},l={resetForm:function(t){var e=t.commit;e("phone",""),e("proxyType",1),e("proxyId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("phone",data.phone),o("proxyType",data.proxy_type),o("proxyId",data.proxy_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{userInfo:null}}),c={userInfo:function(t,e){t.userInfo=e}},l={resetForm:function(t){(0,t.commit)("userInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("userInfo",data.user_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{authToken:null,channelInfo:null}}),c={authToken:function(t,e){t.authToken=e},channelInfo:function(t,e){t.channelInfo=e}},l={resetForm:function(t){var e=t.commit;e("authToken",""),e("channelInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("authToken",data.auth_token),o("channelInfo",data.channel_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{appId:null,appSecret:null}}),c={appId:function(t,e){t.appId=e},appSecret:function(t,e){t.appSecret=e}},l={resetForm:function(t){var e=t.commit;e("appId",""),e("appSecret","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("appId",data.app_id),o("appSecret",data.app_secret);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{proxyType:null,proxyId:null,userInfo:null}}),c={proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e},userInfo:function(t,e){t.userInfo=e}},l={resetForm:function(t){var e=t.commit;e("proxyType",1),e("proxyId",0),e("userInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("proxyType",data.proxy_type),o("proxyId",data.proxy_id),o("userInfo",data.user_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{proxyType:null,proxyId:null,userInfo:null}}),c={proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e},userInfo:function(t,e){t.userInfo=e}},l={resetForm:function(t){var e=t.commit;e("proxyType",1),e("proxyId",0),e("userInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("proxyType",data.proxy_type),o("proxyId",data.proxy_id),o("userInfo",data.user_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{phone:null,proxyType:null,proxyId:null}}),c={phone:function(t,e){t.phone=e},proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e}},l={resetForm:function(t){var e=t.commit;e("phone",""),e("proxyType",1),e("proxyId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("phone",data.phone),o("proxyType",data.proxy_type),o("proxyId",data.proxy_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{channelOwnership:null,botToken:null,channelName:null,channelType:null,channelPrivacy:null,channelUrl:null,channelId:null,threadName:null,threadId:null,parentAccountId:null}}),c={channelOwnership:function(t,e){t.channelOwnership=e},botToken:function(t,e){t.botToken=e},channelName:function(t,e){t.channelName=e},channelType:function(t,e){t.channelType=e},channelPrivacy:function(t,e){t.channelPrivacy=e},channelUrl:function(t,e){t.channelUrl=e},channelId:function(t,e){t.channelId=e},threadName:function(t,e){t.threadName=e},threadId:function(t,e){t.threadId=e},parentAccountId:function(t,e){t.parentAccountId=e}},l={resetForm:function(t){var e=t.commit;e("channelOwnership",1),e("botToken",""),e("channelName",""),e("channelType",""),e("channelPrivacy",""),e("channelUrl",""),e("channelId",""),e("threadName",""),e("threadId",""),e("parentAccountId","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("channelOwnership",data.channel_ownership),o("botToken",data.bot_token),o("channelName",data.channel_name),o("channelType",data.channel_type),o("channelPrivacy",data.channel_privacy),o("channelUrl",data.channel_url),o("channelId",data.channel_id),o("threadName",data.thread_name),o("threadId",data.thread_id),o("parentAccountId",data.parent_account_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{phone:null,proxyType:null,proxyId:null}}),c={phone:function(t,e){t.phone=e},proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e}},l={resetForm:function(t){var e=t.commit;e("phone",""),e("proxyType",1),e("proxyId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("phone",data.phone),o("proxyType",data.proxy_type),o("proxyId",data.proxy_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{socialPageId:null,socialPageType:null,socialPageName:null,socialPageAlias:null,watermarkId:null,utmTags:null,accessToken:null,additionalClipsCaption:null,channelUrl:null,sourceId:null,photosCropType:null,combineBigTextWithPhoto:null,customAccountId:null}}),c={socialPageId:function(t,e){t.socialPageId=e},socialPageType:function(t,e){t.socialPageType=e},socialPageName:function(t,e){t.socialPageName=e},socialPageAlias:function(t,e){t.socialPageAlias=e},watermarkId:function(t,e){t.watermarkId=e},utmTags:function(t,e){t.utmTags=e},accessToken:function(t,e){t.accessToken=e},additionalClipsCaption:function(t,e){t.additionalClipsCaption=e},channelUrl:function(t,e){t.channelUrl=e},sourceId:function(t,e){t.sourceId=e},photosCropType:function(t,e){t.photosCropType=e},combineBigTextWithPhoto:function(t,e){t.combineBigTextWithPhoto=e},customAccountId:function(t,e){t.customAccountId=e}},l={resetForm:function(t){var e=t.commit;e("socialPageId",""),e("socialPageType",""),e("socialPageName",""),e("socialPageAlias",""),e("watermarkId",0),e("utmTags",""),e("accessToken",""),e("additionalClipsCaption",""),e("channelUrl",""),e("sourceId",0),e("photosCropType",1),e("combineBigTextWithPhoto",1),e("customAccountId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("socialPageId",data.social_page_id),o("socialPageType",data.social_page_type),o("socialPageName",data.social_page_name),o("socialPageAlias",data.social_page_alias),o("watermarkId",data.watermark_id),o("utmTags",data.utm_tags),o("accessToken",data.access_token),o("additionalClipsCaption",data.additional_clips_caption),o("channelUrl",data.channel_url),o("sourceId",data.source_id),o("photosCropType",data.photos_crop_type),o("c
1ombineBigTextWithPhoto",data.combine_big_text_with_photo),o("customAccountId",data.custom_account_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{connectMethod:null,channelUrl:null,accountId:null}}),c={connectMethod:function(t,e){t.connectMethod=e},channelUrl:function(t,e){t.channelUrl=e},accountId:function(t,e){t.accountId=e}},l={resetForm:function(t){var e=t.commit;e("connectMethod",1),e("channelUrl",""),e("accountId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("connectMethod",data.connect_method),o("channelUrl",data.channel_url),o("accountId",data.parent_account_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{proxyType:null,proxyId:null,userInfo:null}}),c={proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e},userInfo:function(t,e){t.userInfo=e}},l={resetForm:function(t){var e=t.commit;e("proxyType",1),e("proxyId",0),e("userInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("proxyType",data.proxy_type),o("proxyId",data.proxy_id),o("userInfo",data.user_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{url:null,category:null,token:null}}),c={url:function(t,e){t.url=e},category:function(t,e){t.category=e},token:function(t,e){t.token=e}},l={resetForm:function(t){var e=t.commit;e("url",""),e("category",""),e("token","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("url",data.url),o("category",data.category),o("token",data.token);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{proxyType:null,proxyId:null,userInfo:null}}),c={proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e},userInfo:function(t,e){t.userInfo=e}},l={resetForm:function(t){var e=t.commit;e("proxyType",1),e("proxyId",0),e("userInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("proxyType",data.proxy_type),o("proxyId",data.proxy_id),o("userInfo",data.user_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{proxyType:null,proxyId:null,userInfo:null}}),c={proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e},userInfo:function(t,e){t.userInfo=e}},l={resetForm:function(t){var e=t.commit;e("proxyType",1),e("proxyId",0),e("userInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("proxyType",data.proxy_type),o("proxyId",data.proxy_id),o("userInfo",data.user_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{connectMethod:null,channelUrl:null,accountId:null}}),c={connectMethod:function(t,e){t.connectMethod=e},channelUrl:function(t,e){t.channelUrl=e},accountId:function(t,e){t.accountId=e}},l={resetForm:function(t){var e=t.commit;e("connectMethod",2),e("channelUrl",""),e("accountId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("connectMethod",data.connect_method),o("channelUrl",data.channel_url),o("accountId",data.parent_account_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{proxyType:null,proxyId:null,userInfo:null}}),c={proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e},userInfo:function(t,e){t.userInfo=e}},l={resetForm:function(t){var e=t.commit;e("proxyType",1),e("proxyId",0),e("userInfo",null)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("proxyType",data.proxy_type),o("proxyId",data.proxy_id),o("userInfo",data.user_info);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{parentAccountId:null,parentPageId:null,chatURL:null}}),c={parentAccountId:function(t,e){t.parentAccountId=e},parentPageId:function(t,e){t.parentPageId=e},chatURL:function(t,e){t.chatURL=e}},l={resetForm:function(t){var e=t.commit;e("parentAccountId",0),e("parentPageId",0),e("chatURL","")},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("parentAccountId",data.parent_account_id),o("parentPageId",data.parent_page_id),o("chatURL",data.chat_url);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{phone:null,accountType:null,proxyType:null,proxyId:null}}),c={phone:function(t,e){t.phone=e},accountType:function(t,e){t.accountType=e},proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e}},l={resetForm:function(t){var e=t.commit;e("phone",""),e("accountType",1),e("proxyType",1),e("proxyId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("phone",data.phone),o("accountType",data.account_type),o("proxyType",data.proxy_type),o("proxyId",data.proxy_id);case 1:case"end":return e.stop()}},e)}))()}}},function(t,e,o){"use strict";o.r(e),o.d(e,"state",function(){return r}),o.d(e,"mutations",function(){return c}),o.d(e,"actions",function(){return l});var n=o(11),r=(o(24),function(){return{phone:null,proxyType:null,proxyId:null}}),c={phone:function(t,e){t.phone=e},proxyType:function(t,e){t.proxyType=e},proxyId:function(t,e){t.proxyId=e}},l={resetForm:function(t){var e=t.commit;e("phone",""),e("proxyType",1),e("proxyId",0)},setForm:function(t,data){return Object(n.a)(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=t.commit,t.dispatch,t.state,o("phone",data.phone),o("proxyType",data.proxy_type),o("proxyId",data.proxy_id);case 1:case"end":return e.stop()}},e)}))()}}}],[[499,172,12,173]]]);

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.