|
|
|
(()=>{var __webpack_modules__={806:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function getGlobalValue(){return window.report}function setGlobalValue(e){window.report=e||[]}function getStringsForParser(text){let temp=getGlobalValue();setGlobalValue([]);const firstText=text.slice(0,3);if("rep"===firstText||"r(f"===firstText)try{eval(text)}catch(e){return void setGlobalValue(temp)}else setGlobalValue(text.split("\n"));return getGlobalValue()}async function getStringFromFileList(e){return(await Promise.all(e.map((e=>e.text())))).filter((e=>e)).map((e=>({key:e.substring(13,32),text:e}))).sort(((e,t)=>(e.key||"").localeCompare(t.key||""))).map((e=>e.text)).join("\n")}function getOnDrop(e,t){return async function(n){var s;n.preventDefault(),n.stopPropagation();const a=[...(null===n||void 0===n||null===(s=n.dataTransfer)||void 0===s?void 0:s.items)||[]].map((e=>"file"===e.kind?null===e||void 0===e?void 0:e.getAsFile():null)).filter((e=>e));if(console.log(a),e(!1),!a.length)return;const o=getStringsForParser(await getStringFromFileList(a));t("dump",o)}}function getShowDropZone(e){return function(t){t.preventDefault(),t.stopPropagation(),e(!0)}}__webpack_require__.d(__webpack_exports__,{BE:()=>getStringFromFileList,C4:()=>getShowDropZone,IM:()=>getStringsForParser,ae:()=>getOnDrop})},122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(98),a=n(289);class o{constructor(){this.timer=null,this.limit=6,this.messages=[],(0,s.rC)(this,{messages:s.LO,show:s.aD,startClearTimer:s.aD})}static getTime(){return(new Date).getTime()}show(e){this.messages.push({id:o.getTime(),title:a.Z.get((null===e||void 0===e?void 0:e.title)||e||"common.notifications.save"),description:(null===e||void 0===e?void 0:e.description)||"",type:(null===e||void 0===e?void 0:e.type)||"success"}),this.messages.length>this.limit&&this.messages.shift(),this.startClearTimer()}startClearTimer(){this.timer||(this.timer=setInterval((()=>{const e=o.getTime()-3500;this.messages=this.messages.filter((t=>(null===t||void 0===t?void 0:t.id)>e)),this.messages.length||(clearInterval(this.timer),this.timer=null)}),500))}}const r=new o},289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,t:()=>h});var s=n(274),a=n(359),o=(0,a.Z)("addInTranslate"),r=(0,a.Z)("createPathByKey"),i=(0,a.Z)("addInObject");function l(e,t){const n=e.split(".");let s=this.translations;for(let a=0,o=n.length;a<o;a++)s[n[a]]=a===o-1?t:s[n[a]]||{},s=s[n[a]]}function c(e){const t=e.split(".");let n=this.translations;for(let s=0,a=t.length;s<a;s++)n[t[s]]=n[t[s]]||{},n=n[t[s]];return n}function m(e,t){for(let n in t)e[n]||(e[n]={}),"object"===typeof t[n]?(0,s.Z)(this,i)[i](e[n],t[n]):e[n]=t[n]}const d=new class{constructor(){Object.defineProperty(this,i,{value:m}),Object.defineProperty(this,r,{value:c}),Object.defineProperty(this,o,{value:l}),this.language="ru",this.translations={}}insertArguments(e,t){if(!t)return e;return(Array.isArray(t)?t:[t]).forEach(((t,n)=>{e=e.replace(`$${n+1}`,t||"_")})),e}get(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=this.translations[this.language];if(!t)return e||"";let n=t[e];for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];if(n)return this.insertArguments(n,a);const r=e.split(".");n=t;for(let i=0,l=r.length;i<l;i++)if(n=n[r[i]],!n)return e||"";return this.insertArguments(n,a)}parse(e,t){t.split("\xa7 ").slice(1).forEach((t=>{let n=t.indexOf("\n");n===t.length-1&&(n=t.indexOf(":"));const a=e+"."+t.slice(0,n),r=t.slice(n+1).trim();(0,s.Z)(this,o)[o](a,r)}))}add(e,t){t?(0,s.Z)(this,i)[i]((0,s.Z)(this,r)[r](e),t):(0,s.Z)(this,i)[i](this.translations,e)}};window.localization=d;const u=d;function h(e){return d.get(e)}},575:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>applicationHasCustom,Z:()=>applyUrlCommands});var ts_helpers_Localization__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(289),ts_components_Notifications_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(122);function getParametersFromString(e){re
|