useblocks 1.3.11-dev.2 → 1.3.11-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/{iframe-eblock.fd4347fc.html → iframe-eblock.5751e42b.html} +2 -2
- package/iframe/{iframe.fd4347fc.html → iframe.5751e42b.html} +2 -2
- package/iframe/js/elMarkupHelper.BpDXO-hq.js +279 -0
- package/iframe/js/{iframe-eblock.body.fd4347fc.js → iframe-eblock.body.5751e42b.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.fd4347fc.js → iframe.body.5751e42b.js} +1 -1
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{6ec347ff.js → 11009bdf.js} +1 -1
- package/static/core/{846cd365.js → 11dadbc0.js} +1 -1
- package/static/core/{31d22827.js → 1c06cdb7.js} +1 -1
- package/static/core/{31da6da0.js → 1c3a16fc.js} +1 -1
- package/static/core/{d48488c4.js → 1c7a6d45.js} +1 -1
- package/static/core/{ab741434.js → 257745eb.js} +1 -1
- package/static/core/{939d4a62.js → 261a3a42.js} +1 -1
- package/static/core/2bed6a18.js +7 -0
- package/static/core/347b0a0b.js +1 -0
- package/static/core/{2865f716.js → 3b65bc50.js} +1 -1
- package/static/core/{bbf48eb9.js → 3d8e2478.js} +1 -1
- package/static/core/{5fd45688.js → 3eeb4445.js} +1 -1
- package/static/core/{17c8ebc4.js → 467344d4.js} +1 -1
- package/static/core/{c5128299.js → 513e36bd.js} +1 -1
- package/static/core/{579d4466.js → 516f59e7.js} +1 -1
- package/static/core/{9d57053a.js → 58dca22f.js} +1 -1
- package/static/core/{9438888a.js → 5da33486.js} +1 -1
- package/static/core/{752288e6.js → 6172f09a.js} +1 -1
- package/static/core/{12963ed5.js → 62855b97.js} +1 -1
- package/static/core/{1fcc0627.js → 66113a18.js} +1 -1
- package/static/core/{7934ed7e.js → 71727873.js} +1 -1
- package/static/core/{c33a9c36.js → 76543cb2.js} +1 -1
- package/static/core/{e9281a4c.js → 7e329493.js} +1 -1
- package/static/core/{70749936.js → 8406bab5.js} +1 -1
- package/static/core/{925b75fb.js → 8845436d.js} +2 -2
- package/static/core/{e37da9a7.js → 94f9492b.js} +1 -1
- package/static/core/{153a5a27.js → aee84e3d.js} +1 -1
- package/static/core/{78500214.js → b55ae539.js} +1 -1
- package/static/core/{8d0796c1.js → b59c63d2.js} +1 -1
- package/static/core/{37bf0f7a.js → b9f553d7.js} +1 -1
- package/static/core/{b0edd3a1.js → bda2d9d5.js} +1 -1
- package/static/core/{9916b298.js → c0a3f7d0.js} +2 -2
- package/static/core/{4181d334.js → c13b3d4f.js} +1 -1
- package/static/core/{2d58a94b.js → d2cf6b4b.js} +1 -1
- package/static/core/{983a408d.js → d343e46e.js} +1 -1
- package/static/core/{3a5bea82.js → d9d5b376.js} +1 -1
- package/static/core/{cc4657d9.js → dd008ec2.js} +1 -1
- package/static/core/{3ca0af3d.js → e037a420.js} +1 -1
- package/static/core/{f8f52e6d.js → e698ec22.js} +1 -1
- package/static/core/{13a6a2d3.js → e7e888c1.js} +1 -1
- package/static/core/ed65b5c3.js +19 -0
- package/static/core/{66b856ca.js → ef035f6b.js} +1 -1
- package/static/core/{dda98b73.js → f1b8515a.js} +1 -1
- package/static/core/{ae251a52.js → f8585ce6.js} +1 -1
- package/static/esm/{f97f42d1.js → c5372168.js} +1 -1
- package/static/umd-runtime/{runtime.CQCs2kHH.js → runtime.Lgfb59e0.js} +1 -1
- package/useblocks-core.5751e42b.js +875 -0
- package/useblocks-esm.js +6 -6
- package/{useblocks-po.fd4347fc.js → useblocks-po.5751e42b.js} +1 -1
- package/useblocks.d.ts +2 -2
- package/useblocks.js +12 -12
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/elMarkupHelper.DLCHSWwj.js +0 -279
- package/static/core/4f5add14.js +0 -1
- package/static/core/68e393e4.js +0 -19
- package/static/core/f126c14c.js +0 -7
- package/useblocks-core.fd4347fc.js +0 -875
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var n='.monaco-editor{width:100%;height:100%}.monaco-editor .monaco-hover{border-radius:6px}.monaco-editor .monaco-editor .scroll-decoration{box-shadow:none}.monaco-editor,.monaco-editor *,.monaco-editor .view-lines,.monaco-editor .view-lines *,.monaco-editor .view-lines .view-line,.monaco-editor .view-lines .monaco-mouse-cursor-text,.monaco-editor .view-line,.monaco-editor .monaco-mouse-cursor-text{font-family:var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace)!important}.monaco-editor .view-line,.monaco-editor .view-line span,.monaco-editor .view-line span.inline-selected-text{font-variant-ligatures:none;font-feature-settings:"liga" 0, "calt" 0;font-kerning:none;white-space:pre;font-family:var(--monaco-monospace-font,var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace))!important;font-size:var(--monaco-editor-font-size,14px)!important;font-weight:400!important}.monaco-editor .standalone-colorpicker-body{max-width:460px!important}.monaco-editor .standalone-colorpicker-body .colorpicker-body .saturation-wrap{flex:0 auto;max-width:280px}.blocks-app .colorpicker-body .saturation-box,.blocks-app .colorpicker-body .strip{border-radius:4px}.blocks-app .scrollbar.vertical{width:5px!important}.blocks-app .scrollbar.vertical .slider{border-radius:5px!important;width:5px!important}.blocks-app .user-cursor{z-index:10;border-left:2px solid #ff00e1;width:2px;height:20px;position:absolute}.blocks-app .cursor-hover{color:#fff;text-wrap-mode:nowrap;z-index:10000;border-radius:7px 7px 7px 0;margin-left:-2px;padding:0 5px;font-size:12px;position:absolute;top:-17px}.blocks-app .user-selection-decoration{background-color:#8080eb4d}.monaco-editor__spin{z-index:1000;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}',o=window.__useblocks_styles__||(window.__useblocks_styles__={sheets:{},order:[]}),r=n;if(!o.sheets[r]){var t=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(t=new CSSStyleSheet,t.replaceSync(n))}catch{t=null}if(t){if(!o.host||!o.host.isConnected||!o.host.sheet){var e=document.createElement("style");e.setAttribute("data-useblocks","true"),document.head.appendChild(e),o.host=e}for(var s=o.host.sheet,a=0;a<t.cssRules.length;a++)try{s.insertRule(t.cssRules[a].cssText,s.cssRules.length)}catch{}(o.texts||(o.texts=[])).push(n),(o.listeners||[]).forEach(function(i){try{i(n)}catch{}})}else{var e=document.createElement("style");e.setAttribute("data-useblocks","true"),e.appendChild(document.createTextNode(n)),document.head.appendChild(e)}o.sheets[r]=!0,o.order.push(r)}}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
__useblocks__.define("static/core/
|
|
2
|
+
__useblocks__.define("static/core/d343e46e.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/a42ab03f.js","static/core/e47dcbb0.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(Q,pt,Ic){const oe=Q("./2ff39ddf.js"),Mn=Q("./cf7d1dd7.js"),c=Q("./a42ab03f.js"),Ln=Q("./e47dcbb0.js");let k=Q("react"),d=oe.__toESM(k,1);k=oe.__toESM(k);let Ee=Q("react/jsx-runtime"),rr=Q("__delivery__/libs"),An=Q("vite/preload-helper");function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _n(e){if(Array.isArray(e))return e}function Tn(e,t,r){return(t=In(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jn(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,i,s,a=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(o=i.call(r)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(p){u=!0,n=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw n}}return a}}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nr(Object(r),!0).forEach(function(o){Tn(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Rn(e,t){if(e==null)return{};var r,o,n=Nn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nn(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Pn(e,t){return _n(e)||jn(e,t)||qn(e,t)||zn()}function Dn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function In(e){var t=Dn(e,"string");return typeof t=="symbol"?t:t+""}function qn(e,t){if(e){if(typeof e=="string")return or(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?or(e,t):void 0}}function Un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sr(Object(r),!0).forEach(function(o){Un(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sr(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return t.reduceRight(function(n,i){return i(n)},o)}}function Oe(e){return function t(){for(var r=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return n.length>=e.length?e.apply(this,n):function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return t.apply(r,[].concat(n,a))}}}function We(e){return{}.toString.call(e).includes("Object")}function Fn(e){return!Object.keys(e).length}function Ce(e){return typeof e=="function"}function Vn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bn(e,t){return We(t)||ne("changeType"),Object.keys(t).some(function(r){return!Vn(e,r)})&&ne("changeField"),t}function Hn(e){Ce(e)||ne("selectorType")}function Gn(e){Ce(e)||We(e)||ne("handlerType"),We(e)&&Object.values(e).some(function(t){return!Ce(t)})&&ne("handlersType")}function Qn(e){e||ne("initialIsRequired"),We(e)||ne("initialType"),Fn(e)&&ne("initialContent")}function Kn(e,t){throw new Error(e[t]||e.default)}var ne=Oe(Kn)({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),Fe={changes:Bn,selector:Hn,handler:Gn,initial:Qn};function Yn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fe.initial(e),Fe.handler(t);var r={current:e},o=Oe(Xn)(r,t),n=Oe(Jn)(r),i=Oe(Fe.changes)(e),s=Oe(Zn)(r);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return Fe.selector(u),u(r.current)}function l(u){Wn(o,n,i,s)(u)}return[a,l]}function Zn(e,t){return Ce(t)?t(e.current):t}function Jn(e,t){return e.current=ar(ar({},e.current),t),t}function Xn(e,t,r){return Ce(t)?t(e.current):Object.keys(r).forEach(function(o){var n;return(n=t[o])===null||n===void 0?void 0:n.call(t,e.current[o])}),r}var ei={create:Yn},ti={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function ri(e){return function t(){for(var r=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return n.length>=e.length?e.apply(this,n):function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return t.apply(r,[].concat(n,a))}}}function oi(e){return{}.toString.call(e).includes("Object")}function ni(e){return e||lr("configIsRequired"),oi(e)||lr("configType"),e.urls?{paths:{vs:e.urls.monacoBase}}:e}function qc(){}function ii(e,t){throw new Error(e[t]||e.default)}var si={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
4
4
|
You are using deprecated way of configuration.
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/d9d5b376.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a42ab03f.js"],function(n,m,P){const x=n("./2ff39ddf.js"),u=n("./a42ab03f.js");var d={items_per_page:"/ стр.",jump_to:"Перейти",jump_to_confirm:"подтвердить",page:"Страница",prev_page:"Назад",next_page:"Вперед",prev_5:"Предыдущие 5",next_5:"Следующие 5",prev_3:"Предыдущие 3",next_3:"Следующие 3",page_size:"размер страницы"};function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(r)}function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(r,v).enumerable})),t.push.apply(t,a)}return t}function c(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?i(Object(t),!0).forEach(function(a){b(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function b(r,e,t){return e=f(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function f(r){var e=y(r,"string");return o(e)=="symbol"?e:String(e)}function y(r,e){if(o(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e||"default");if(o(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var g=c(c({},u.commonLocale),{},{locale:"ru_RU",today:"Сегодня",now:"Сейчас",backToToday:"Текущая дата",ok:"ОК",clear:"Очистить",week:"Неделя",month:"Месяц",year:"Год",timeSelect:"Выбрать время",dateSelect:"Выбрать дату",monthSelect:"Выбрать месяц",yearSelect:"Выбрать год",decadeSelect:"Выбрать десятилетие",previousMonth:"Предыдущий месяц (PageUp)",nextMonth:"Следующий месяц (PageDown)",previousYear:"Предыдущий год (Control + left)",nextYear:"Следующий год (Control + right)",previousDecade:"Предыдущее десятилетие",nextDecade:"Следущее десятилетие",previousCentury:"Предыдущий век",nextCentury:"Следующий век"}),s={placeholder:"Выберите время",rangePlaceholder:["Время начала","Время окончания"]},p={lang:{placeholder:"Выберите дату",yearPlaceholder:"Выберите год",quarterPlaceholder:"Выберите квартал",monthPlaceholder:"Выберите месяц",weekPlaceholder:"Выберите неделю",rangePlaceholder:["Начальная дата","Конечная дата"],rangeYearPlaceholder:["Начальный год","Год окончания"],rangeMonthPlaceholder:["Начальный месяц","Конечный месяц"],rangeWeekPlaceholder:["Начальная неделя","Конечная неделя"],shortWeekDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],shortMonths:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],...g},timePickerLocale:{...s}},h=p,l="${label} не является типом ${type}",$={locale:"ru",Pagination:d,DatePicker:p,TimePicker:s,Calendar:h,global:{placeholder:"Пожалуйста выберите",close:"Закрыть",show:"Показать",hide:"Скрыть"},Table:{filterTitle:"Фильтр",filterConfirm:"OK",filterReset:"Сбросить",filterEmptyText:"Без фильтров",filterCheckAll:"Выбрать все элементы",filterSearchPlaceholder:"Поиск в фильтрах",emptyText:"Нет данных",selectAll:"Выбрать всё",selectInvert:"Инвертировать выбор",selectNone:"Очистить все данные",selectionAll:"Выбрать все данные",sortTitle:"Сортировка",expand:"Развернуть строку",collapse:"Свернуть строку",triggerDesc:"Нажмите для сортировки по убыванию",triggerAsc:"Нажмите для сортировки по возрастанию",cancelSort:"Нажмите, чтобы отменить сортировку"},Tour:{Next:"Далее",Previous:"Назад",Finish:"Завершить"},Modal:{okText:"OK",cancelText:"Отмена",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Отмена"},Transfer:{titles:["",""],searchPlaceholder:"Поиск",itemUnit:"элем.",itemsUnit:"элем.",remove:"Удалить",selectAll:"Выбрать все данные",deselectAll:"Очистить все данные",selectCurrent:"Выбрать текущую страницу",selectInvert:"Инвертировать выбор",removeAll:"Удалить все данные",removeCurrent:"Удалить текущую страницу"},Upload:{uploading:"Загрузка...",removeFile:"Удалить файл",uploadError:"При загрузке произошла ошибка",previewFile:"Предпросмотр файла",downloadFile:"Загрузить файл"},Empty:{description:"Нет данных"},Icon:{icon:"иконка"},Text:{edit:"Редактировать",copy:"Копировать",copied:"Скопировано",expand:"Раскрыть",collapse:"Свернуть"},Form:{optional:"(необязательно)",defaultValidateMessages:{default:"Ошибка проверки поля ${label}",required:"Пожалуйста, введите ${label}",enum:"${label} должен быть одним из [${enum}]",whitespace:"${label} не может быть пустым",date:{format:"${label} не правильный формат даты",parse:"${label} не может быть преобразовано в дату",invalid:"${label} не является корректной датой"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} должна быть ${len} символов",min:"${label} должна быть больше или равна ${min} символов",max:"${label} должна быть меньше или равна ${max} символов",range:"Длина ${label} должна быть между ${min}-${max} символами"},number:{len:"${label} должна быть равна ${len}",min:"${label} должна быть больше или равна ${min}",max:"${label} должна быть меньше или равна ${max}",range:"${label} должна быть между ${min}-${max}"},array:{len:"Количество элементов ${label} должно быть равно ${len}",min:"Количество элементов ${label} должно быть больше или равно ${min}",max:"Количество элементов ${label} должно быть меньше или равно ${max}",range:"Количество элементов ${label} должно быть между ${min} и ${max}"},pattern:{mismatch:"${label} не соответствует шаблону ${pattern}"}}},QRCode:{expired:"QR-код устарел",refresh:"Обновить"},ColorPicker:{presetEmpty:"Пустой",transparent:"Прозрачный",singleColor:"Один цвет",gradientColor:"Градиент"}};m.default=$});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var o=".blocks-app .block-page-header__dropdown-menu{top:10px}.blocks-app .anticon.anticon-edit.block-page-header__icon-edit{color:#8c8c8c;margin-left:6px;font-size:16px}.blocks-app .ant-typography-edit:hover .anticon.anticon-edit.block-page-header__icon-edit{color:var(--ub-colorPrimaryHover)}.blocks-app .ant-page-header.block-page-header{margin-bottom:20px;padding-left:0;padding-right:0}@media (width<=1450px){.blocks-app .ant-page-header.block-page-header{padding-left:12px;padding-right:12px}}.blocks-app .block-page-header .ant-page-header-heading-left{flex-grow:1;overflow:visible}.blocks-app .block-page-header .ant-page-header-back{align-self:flex-start;margin-left:12px;margin-right:0;padding-top:12px}.blocks-app .block-page-header .ant-page-header-heading-title{white-space:pre-wrap;flex-grow:1;font-weight:500;overflow:visible}.blocks-app .block-page-header .ant-typography{margin-bottom:0;padding:4px 12px}.blocks-app .block-page-header .ant-typography-edit-content{margin-top:0;padding:0;left:auto}.blocks-app .block-page-header .ant-input{font-size:inherit;font-weight:inherit}.blocks-app .block-page-header .ant-page-header-heading-extra>*{margin-left:8px}.blocks-app .block-page-header .ant-btn.block-page-header__btn_extra,.blocks-app header .ant-btn.block-page-header__btn_extra{width:32px;padding:0}.blocks-app .block-page__row{margin-bottom:60px}@media (width>=1700px){.blocks-app .block-page__row{margin-right:-60px}}",e=window.__useblocks_styles__||(window.__useblocks_styles__={sheets:{},order:[]}),n=o;if(!e.sheets[n]){var a=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(a=new CSSStyleSheet,a.replaceSync(o))}catch{a=null}if(a){if(!e.host||!e.host.isConnected||!e.host.sheet){var t=document.createElement("style");t.setAttribute("data-useblocks","true"),document.head.appendChild(t),e.host=t}for(var c=e.host.sheet,l=0;l<a.cssRules.length;l++)try{c.insertRule(a.cssRules[l].cssText,c.cssRules.length)}catch{}(e.texts||(e.texts=[])).push(o),(e.listeners||[]).forEach(function(p){try{p(o)}catch{}})}else{var t=document.createElement("style");t.setAttribute("data-useblocks","true"),t.appendChild(document.createTextNode(o)),document.head.appendChild(t)}e.sheets[n]=!0,e.order.push(n)}}}catch(p){console.error("vite-plugin-css-injected-by-js",p)}})();
|
|
2
|
-
__useblocks__.define("static/core/cc4657d9.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/83a2a45e.js","static/core/ed6c594c.js","static/core/4f5add14.js","react","react/jsx-runtime","__delivery__/libs","classnames"],function(h,re,he){const te=h("./2ff39ddf.js"),X=h("./cf7d1dd7.js"),e=h("./83a2a45e.js"),z=h("./ed6c594c.js"),le=h("./4f5add14.js");let n=h("react");n=te.__toESM(n);let o=h("react/jsx-runtime"),r=h("__delivery__/libs"),Z=h("classnames");Z=te.__toESM(Z);var oe={fontSize:"16px"},ae={color:"#ff4d4f"},se=({block:t,autoSaveBlockResult:d})=>{const{__:s,_x:c}=e.useI18n();let E=e.useDispatch();const l=e.useEmailAttributesWriter(),g=e.useAppNavigate(),a=e.useCurrentUser(),{modal:p}=r.ui_kit$App.useApp(),f=e.useNotification(),{confirm:b}=p,{token:$}=(0,r.ui_kit$useToken)(),W=e.useAppConfig(),M=e.useContainer(),y=e.usePluginMenuItems("menu:document"),S=e.usePluginItems("toolbar"),j=(0,n.useMemo)(()=>e.filterPluginItems(S,"collaboration"),[S]),K=(0,n.useMemo)(()=>e.filterPluginItems(S,e.TOOLBAR_GROUPS_BEFORE_SAVE),[S]),O=e.usePluginMenuItems("menu:save"),w=j.length>0,Q=K.length>0,k=O.length>0,R=()=>{e.leaveBlock(M)},H=e.useSelector(e.selectCodeModeDirection),J=t.hasOwnProperty("type")?e.BLOCK:e.EMAIL,U=e.useSelector(e.selectElementSettings$1),I=e.useSelector(e.selectElementSettings),P=J==="email"?U:I,A=e.useSelector(e.selectIsCodeMode),q=()=>(P?.type===e.ELEMENT_TYPES.TEXT||P?.type===e.ELEMENT_TYPES.LINK||P.type===e.ELEMENT_TYPES.BUTTON)&&A&&H!=="bottom",v=e.useProjectData(),F=e.isAuthoredByMe(t.author,a,v?.members),{owner:x,admin:T}=e.useMyRoles(),G=e.useStore(),V=(u,ee)=>G.dispatch(e.blocksApi.endpoints.deleteBlock.initiate(u.id)).then(ce=>{if(ce.error){f.fromError("BLOCK_REMOVING_ERROR",e.getBlockDesc(u),ce.error);return}R(),ee(`/projects/${v?.id??u.project}/blocks`),f.success({id:"BLOCK_REMOVING_SUCCESS",title:s("The block “")+u.title+c("” was successfully removed.","block"),data:e.getBlockDesc(u)})}),i=(u,ee)=>{b({mask:{closable:!0},centered:!0,title:c("Are you sure you want to delete the “","block")+u.title+s("” block?"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:r.icons$DeleteOutlined,size:22,style:{color:r.ui_kit$iconColors.danger,marginInlineEnd:12,flexShrink:0}}),okText:s("Yes"),cancelText:s("No"),onOk:()=>V(u,ee)})},m=()=>{R(),g(`/projects/${v.id}/blocks`)},_=u=>{l({title:u})},[B,C]=e.useAddBlockMutation(),Y=e.useContentReader(),D=()=>{t.isNew?t.isNew?f.warning({id:"COPY_NOT_SAVED",payload:t,title:s("To create a copy, you need to save the block.")}):B({title:e.generateCopyTitle(t.title),blocktags:t.blocktags,project:v.id,subject:t.subject,description:t.description,html:e.stripEmBlockMark(Y()),type:t.type?t.type:"Other"}).then(u=>{if(u.error||E(e.limitsApi.util.invalidateTags(["LimitsStats","LimitsWarnings"])),u.error){f.error({id:"BLOCK_CLONING_ERROR",data:e.getBlockDesc(t),innerException:u.error,title:u.error.data.code,description:u.error.data.message});return}g(`/projects/${v.id}/blocks/${u.data.id}`),f.success({id:"BLOCK_CLONING_SUCCESS",data:e.getBlockDesc(t),title:s("The copy of block “")+t.title+c("” was successfully created.","block")})}):e.getEmitter(M,X.events.ON_BLOCK_CLONE_ID).fire(t)},L=()=>{t.isNew?(R(),g(`/projects/${v.id}/blocks`),f.success({id:"BLOCK_REMOVING_SUCCESS",title:s("The draft of the block has been deleted."),data:e.getBlockDesc(t)})):i(t,g)};let N=[];N.push({label:s("Clone"),icon:(0,o.jsx)(e.EmIcons,{icon:"CopyOutlined",component:r.icons$CopyOutlined,size:16}),key:"Clone",className:"em-analytics__block-clone",disabled:C.isLoading,onClick:D}),N.push(...e.menuGroup(y,"document"),...e.menuGroup(y,"plugins"));const ie=x||T||F;ie&&N.push({label:(0,o.jsx)(e.SwitchLockBtn,{element:t},"Lock"),icon:t.lock?(0,o.jsx)(e.EmIcons,{icon:"UnlockOutlined",component:r.icons$UnlockOutlined,style:oe}):(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:r.icons$LockOutlined,style:oe}),disabled:!!t.isNew}),N.push(...e.menuGroup(y,"access")),ie&&N.push({label:s("Remove"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:r.icons$DeleteOutlined,size:16}),key:"Remove",className:"em-analytics__block-remove",onClick:L,style:ae}),N.push(...e.menuGroup(y,"danger")),e.useSetTitle(t.title===null?s("New block title"):t.title);const Ee=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(r.ui_kit$Space,{size:10,children:[W.headerArrowBackVisible&&(0,o.jsx)(r.ui_kit$Tooltip,{title:s("Back"),placement:"left",children:(0,o.jsx)(r.ui_kit$Button,{type:"text",icon:(0,o.jsx)(e.EmIcons,{icon:"ArrowLeftOutlined",component:r.icons$ArrowLeftOutlined}),onClick:m,shape:"circle"})}),(0,o.jsx)(r.ui_kit$Paragraph,{className:"ant-page-header-heading-title",editable:{triggerType:["text","icon"],icon:(0,o.jsx)(e.EmIcons,{icon:"EditOutlined",component:r.icons$EditOutlined,className:"email-page-header__icon-edit"}),onChange:_},children:t.title===null?s("New block title"):t.title})]})}),_e=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z.EmailPreviewMenu,{emailElement:t}),t.lock?(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:r.icons$LockOutlined,className:(0,Z.default)("lock-icon",{"lock-icon__disabled":!(x||T||F)}),style:{color:$.colorPrimary,fontSize:"16px"}},"Lock"):null,w&&(0,o.jsx)(e.PluginButtons,{items:j}),(0,o.jsx)(r.ui_kit$Dropdown,{arrow:"true",menu:{items:N},children:(0,o.jsx)(r.ui_kit$Button,{className:"block-page-header__btn block-page-header__btn_extra",onClick:()=>{},children:(0,o.jsx)(e.EmIcons,{icon:"EllipsisOutlined",component:r.icons$EllipsisOutlined})})},"Actions"),Q&&(0,o.jsx)(e.PluginButtons,{items:K}),(0,o.jsx)(le.SaveBlockBtn,{className:"em-analytics__block-save",block:t,isEditableRights:x||T||F,autoSaveBlockResult:d,ownsDocument:!0},"Save"),k&&(0,o.jsx)(e.PluginSaveMore,{items:O})]}),ye=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z.EmailPreviewMenu,{emailElement:t}),w&&(0,o.jsx)(e.PluginButtons,{items:j}),y.length>0&&(0,o.jsx)(e.PluginMenuButton,{location:"menu:document",items:y,className:"block-page-header__btn block-page-header__btn_extra"}),Q&&(0,o.jsx)(e.PluginButtons,{items:K}),k&&(0,o.jsx)(e.PluginSaveMore,{items:O})]}),ve=W.commandButtonsEnabled?_e:ye;return(0,o.jsx)(e.Header,{leftBlock:Ee,rightBlock:ve,className:"header_blocks",isHeaderCodeMenuOpen:q()})};se.propTypes={};function ne(t=document){const d=t.getElementById("email_iframe_slot");return{slot:d,area:d?.closest("[data-scroll-area]")??null}}function de(t){if(t)return t.renderGuid??(t.id!=null?String(t.id):void 0)}function ue(t,d={}){const s=e.useStore(),c=d.key??de(t),E=d.recovery===!0,l=(0,n.useMemo)(()=>{if(c===void 0)return;const p=e.getEmailDocuments(X.getContainer(s));return E?t?.id!=null?p.open(String(t.id),{email:t}):p.openDraft(t):p.openBlock(c,t)},[c,s,E]),g=t?.modified,a=t?.lock;return(0,n.useEffect)(()=>{e.writeSourceReport(l,e.fromServerFacts({modified:g,lock:a}))},[l,g,a]),l}function me(){const t=e.useContainer(),d=e.useNotification(),{__:s}=e.useI18n(),c=(0,n.useRef)(void 0),E=(0,n.useRef)(0);(0,n.useEffect)(()=>{const l=e.getOpenEmailDocuments(t??void 0);if(l)return l.subscribe(()=>{const{error:g,failures:a,failedIntent:p}=l.saveState(),f=a>E.current;if(E.current=a,a===0||!e.isLockedBlockRefusal(g)){c.current=void 0;return}const b=l.current()?.get(),$=b?.savedVersion??null;!f||p!=="snapshot"||c.current?.saved===$||(c.current={saved:$},d.error({id:"BLOCK_ACCESS_TO_LOCKED_ERROR",title:s("No access to edit the block."),data:e.getBlockDesc({id:b?.serverId??void 0,title:b?.attributes.title})}))})},[t,d,s])}var ge={status:0,data:{code:"timeout",message:"request timed out"}};function pe(t,d){const s=d?void 0:t,c=(0,n.useMemo)(()=>({key:s,inFlight:s!==void 0&&e.isBlockAutosaveInFlight(s)}),[s]),[E,l]=(0,n.useState)(void 0),g=E?.opening===c?E.settled:void 0,a=c.inFlight&&g===void 0;(0,n.useEffect)(()=>a&&c.key!==void 0?e.whenBlockAutosaveSettledWithin(c.key,e.getSaveTimeoutMs(),f=>l({opening:c,settled:f})):void 0,[a,c]);const p=e.useGetBlockQuery(t,{skip:d||a});return a?{...p,data:void 0,isSuccess:!1,isLoading:!0}:g===!1?{...p,data:void 0,isSuccess:!1,isLoading:!1,isError:!0,error:ge}:p}var{Content:Se}=r.ui_kit$Layout,fe=({session:t})=>{const{__:d}=e.useI18n(),s=e.useSendPostMessage(),{blockId:c,projectId:E}=e.useRouteParams();me();const l=e.useDispatch();e.useAppNavigate();const g=e.useCookieManager();e.useSelector(e.selectMonacoFocusing),e.useSelector(e.selectIsPanelHistoryCollapsed),e.useAppConfig();const a=g.get(e.APP_COOKIES.em_new_block),{isSuccess:p,data:f}=e.useGetBlockQuery(+a,{skip:!!t||!a}),[b,$]=(0,n.useState)(!1),{isLoading:W,isSuccess:M,isError:y,error:S,data:j}=pe(c,!!t||!c);(0,n.useEffect)(()=>{y&&S&&e.reportEntityLoadError("block",c,S)},[y,S,c]);const K=a?p:M,O=M&&j?.id?j:p&&f,w=t?t.block:O,Q=ue(t?void 0:O||void 0,{key:!t&&O?.id!=null?e.blockSessionKey(O.id):void 0}),k=t?t.document:Q,R=e.useDocumentAttributes(k),H=(0,n.useMemo)(()=>k?e.resolveOpenEmail({attributes:R,readContent:()=>k.getContent(),docId:k.get().docId,hasSession:!0,serverId:k.get().serverId,show:void 0}):w,[R,k,w]),J=e.useStore(),U=e.getEmailDocuments(X.getContainer(J)).history();e.usePublishDocumentSession(k,U);const I=e.useUserUndo({document:k,history:U}),P=(0,n.useCallback)(()=>{I.undo()},[I]),A=(0,n.useCallback)(()=>{I.redo()},[I]),q=(0,n.useCallback)(()=>I.clear(),[I]);e.useEditorUiReset(k?.get().docId,q);const v=(0,n.useCallback)(i=>{(window.navigator.appVersion.indexOf("Mac")&&i.metaKey||i.ctrlKey)&&(i.code==="KeyZ"?(i.preventDefault(),i.shiftKey?A():P()):i.code==="KeyY"&&!i.shiftKey&&(i.preventDefault(),A()))},[P,A]);(0,n.useEffect)(()=>(document.body.classList.add("editor"),()=>{l(e.resetPanes()),l(e.closeModal$1()),l(e.resetElementHistorySlice()),l(e.setActiveSettingsTab(e.BUILD))}),[l]);const F=i=>{const m=i.data.operation,_=i.data.action,B=document.getElementById("iframe-scroll-top"),C=document.getElementById("iframe-scroll-bottom");if(m===e.EVENT_TYPES.APPLICATION_ACTION&&(_==="undo"?P():_==="redo"&&A()),m===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_SHOW){const{slot:Y}=ne(),D=document.body.getBoundingClientRect().height,L=Y?.getClientRects()[0];if(!L||!B||!C)return;L.top<0&&(B.style.display="block"),L.top+L.height>D&&(C.style.display="block")}m===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_HIDE&&B&&C&&(B.style.display="none",C.style.display="none")};e.useListenPostMessage(F);const x=(0,n.useCallback)(i=>{i.target?.closest?.(".file-manager, .ant-modal.file-manager")||(i.preventDefault(),i.target&&s({operation:e.EVENT_TYPES.SANDBOX_DRAG_CANCEL}))},[s]),T=(0,n.useCallback)(()=>{},[]),G=(0,n.useCallback)(i=>{if(i.preventDefault(),i.target?.closest?.(".file-manager, .ant-modal.file-manager"))return;const m=document.getElementById("iframe-scroll-top"),_=document.getElementById("iframe-scroll-bottom"),{slot:B,area:C}=ne();if(!B||!m||!_)return;const{height:Y,top:D}=B.getBoundingClientRect(),L=document.body.getBoundingClientRect().height;D>1?m.style.display==="block"&&(m.style.display="none"):m.style.display==="none"&&(m.style.display="block"),Y-L+D<1?_.style.display==="block"&&(_.style.display="none"):_.style.display==="none"&&(_.style.display="block"),i.target===m&&C?.scrollBy(0,-20),i.target===_&&C?.scrollBy(0,20)},[]),V=(0,n.useCallback)(()=>{const i=document.getElementById("iframe-scroll-top"),m=document.getElementById("iframe-scroll-bottom");i&&m&&(i.style.display="none",m.style.display="none")},[]);return(0,n.useEffect)(()=>(window.addEventListener("dragstart",T),window.addEventListener("drop",x),window.addEventListener("dragend",V),window.addEventListener("dragover",G),window.addEventListener("keydown",v),()=>{window.removeEventListener("dragstart",T),window.removeEventListener("drop",x),window.removeEventListener("dragover",G),window.removeEventListener("dragend",V),window.removeEventListener("keydown",v)}),[v,T,x,V,G]),(0,o.jsx)(e.DocumentSessionProvider,{document:k,history:U,children:(0,o.jsxs)(r.ui_kit$Layout,{className:"block-page",children:[w&&(0,o.jsx)(se,{block:H}),W&&(0,o.jsx)(r.ui_kit$PageLoader,{}),y&&S&&!1,t?w&&(0,o.jsx)(z.EmailPane_default,{emailElement:H,kind:"block",isSuccess:!0}):(!c&&(a?b&&f:!0)||M&&j)&&(0,o.jsx)(z.EmailPane_default,{emailElement:H,kind:"block",isSuccess:K})]})})},ke=()=>{const{document:t,email:d}=e.useOpenEmail(),s=(0,n.useMemo)(()=>({document:t,block:d}),[t,d]);return(0,o.jsx)(fe,{session:s})};re.default=ke});
|
|
2
|
+
__useblocks__.define("static/core/dd008ec2.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/a42ab03f.js","static/core/d55483bf.js","static/core/347b0a0b.js","react","react/jsx-runtime","__delivery__/libs","classnames"],function(h,re,he){const te=h("./2ff39ddf.js"),X=h("./cf7d1dd7.js"),e=h("./a42ab03f.js"),z=h("./d55483bf.js"),le=h("./347b0a0b.js");let n=h("react");n=te.__toESM(n);let o=h("react/jsx-runtime"),r=h("__delivery__/libs"),Z=h("classnames");Z=te.__toESM(Z);var oe={fontSize:"16px"},ae={color:"#ff4d4f"},se=({block:t,autoSaveBlockResult:d})=>{const{__:s,_x:c}=e.useI18n();let E=e.useDispatch();const l=e.useEmailAttributesWriter(),g=e.useAppNavigate(),a=e.useCurrentUser(),{modal:p}=r.ui_kit$App.useApp(),f=e.useNotification(),{confirm:b}=p,{token:$}=(0,r.ui_kit$useToken)(),W=e.useAppConfig(),M=e.useContainer(),y=e.usePluginMenuItems("menu:document"),S=e.usePluginItems("toolbar"),j=(0,n.useMemo)(()=>e.filterPluginItems(S,"collaboration"),[S]),K=(0,n.useMemo)(()=>e.filterPluginItems(S,e.TOOLBAR_GROUPS_BEFORE_SAVE),[S]),O=e.usePluginMenuItems("menu:save"),w=j.length>0,Q=K.length>0,k=O.length>0,R=()=>{e.leaveBlock(M)},H=e.useSelector(e.selectCodeModeDirection),J=t.hasOwnProperty("type")?e.BLOCK:e.EMAIL,U=e.useSelector(e.selectElementSettings$1),I=e.useSelector(e.selectElementSettings),P=J==="email"?U:I,A=e.useSelector(e.selectIsCodeMode),q=()=>(P?.type===e.ELEMENT_TYPES.TEXT||P?.type===e.ELEMENT_TYPES.LINK||P.type===e.ELEMENT_TYPES.BUTTON)&&A&&H!=="bottom",v=e.useProjectData(),F=e.isAuthoredByMe(t.author,a,v?.members),{owner:x,admin:T}=e.useMyRoles(),G=e.useStore(),V=(u,ee)=>G.dispatch(e.blocksApi.endpoints.deleteBlock.initiate(u.id)).then(ce=>{if(ce.error){f.fromError("BLOCK_REMOVING_ERROR",e.getBlockDesc(u),ce.error);return}R(),ee(`/projects/${v?.id??u.project}/blocks`),f.success({id:"BLOCK_REMOVING_SUCCESS",title:s("The block “")+u.title+c("” was successfully removed.","block"),data:e.getBlockDesc(u)})}),i=(u,ee)=>{b({mask:{closable:!0},centered:!0,title:c("Are you sure you want to delete the “","block")+u.title+s("” block?"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:r.icons$DeleteOutlined,size:22,style:{color:r.ui_kit$iconColors.danger,marginInlineEnd:12,flexShrink:0}}),okText:s("Yes"),cancelText:s("No"),onOk:()=>V(u,ee)})},m=()=>{R(),g(`/projects/${v.id}/blocks`)},_=u=>{l({title:u})},[B,C]=e.useAddBlockMutation(),Y=e.useContentReader(),D=()=>{t.isNew?t.isNew?f.warning({id:"COPY_NOT_SAVED",payload:t,title:s("To create a copy, you need to save the block.")}):B({title:e.generateCopyTitle(t.title),blocktags:t.blocktags,project:v.id,subject:t.subject,description:t.description,html:e.stripEmBlockMark(Y()),type:t.type?t.type:"Other"}).then(u=>{if(u.error||E(e.limitsApi.util.invalidateTags(["LimitsStats","LimitsWarnings"])),u.error){f.error({id:"BLOCK_CLONING_ERROR",data:e.getBlockDesc(t),innerException:u.error,title:u.error.data.code,description:u.error.data.message});return}g(`/projects/${v.id}/blocks/${u.data.id}`),f.success({id:"BLOCK_CLONING_SUCCESS",data:e.getBlockDesc(t),title:s("The copy of block “")+t.title+c("” was successfully created.","block")})}):e.getEmitter(M,X.events.ON_BLOCK_CLONE_ID).fire(t)},L=()=>{t.isNew?(R(),g(`/projects/${v.id}/blocks`),f.success({id:"BLOCK_REMOVING_SUCCESS",title:s("The draft of the block has been deleted."),data:e.getBlockDesc(t)})):i(t,g)};let N=[];N.push({label:s("Clone"),icon:(0,o.jsx)(e.EmIcons,{icon:"CopyOutlined",component:r.icons$CopyOutlined,size:16}),key:"Clone",className:"em-analytics__block-clone",disabled:C.isLoading,onClick:D}),N.push(...e.menuGroup(y,"document"),...e.menuGroup(y,"plugins"));const ie=x||T||F;ie&&N.push({label:(0,o.jsx)(e.SwitchLockBtn,{element:t},"Lock"),icon:t.lock?(0,o.jsx)(e.EmIcons,{icon:"UnlockOutlined",component:r.icons$UnlockOutlined,style:oe}):(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:r.icons$LockOutlined,style:oe}),disabled:!!t.isNew}),N.push(...e.menuGroup(y,"access")),ie&&N.push({label:s("Remove"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:r.icons$DeleteOutlined,size:16}),key:"Remove",className:"em-analytics__block-remove",onClick:L,style:ae}),N.push(...e.menuGroup(y,"danger")),e.useSetTitle(t.title===null?s("New block title"):t.title);const Ee=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(r.ui_kit$Space,{size:10,children:[W.headerArrowBackVisible&&(0,o.jsx)(r.ui_kit$Tooltip,{title:s("Back"),placement:"left",children:(0,o.jsx)(r.ui_kit$Button,{type:"text",icon:(0,o.jsx)(e.EmIcons,{icon:"ArrowLeftOutlined",component:r.icons$ArrowLeftOutlined}),onClick:m,shape:"circle"})}),(0,o.jsx)(r.ui_kit$Paragraph,{className:"ant-page-header-heading-title",editable:{triggerType:["text","icon"],icon:(0,o.jsx)(e.EmIcons,{icon:"EditOutlined",component:r.icons$EditOutlined,className:"email-page-header__icon-edit"}),onChange:_},children:t.title===null?s("New block title"):t.title})]})}),_e=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z.EmailPreviewMenu,{emailElement:t}),t.lock?(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:r.icons$LockOutlined,className:(0,Z.default)("lock-icon",{"lock-icon__disabled":!(x||T||F)}),style:{color:$.colorPrimary,fontSize:"16px"}},"Lock"):null,w&&(0,o.jsx)(e.PluginButtons,{items:j}),(0,o.jsx)(r.ui_kit$Dropdown,{arrow:"true",menu:{items:N},children:(0,o.jsx)(r.ui_kit$Button,{className:"block-page-header__btn block-page-header__btn_extra",onClick:()=>{},children:(0,o.jsx)(e.EmIcons,{icon:"EllipsisOutlined",component:r.icons$EllipsisOutlined})})},"Actions"),Q&&(0,o.jsx)(e.PluginButtons,{items:K}),(0,o.jsx)(le.SaveBlockBtn,{className:"em-analytics__block-save",block:t,isEditableRights:x||T||F,autoSaveBlockResult:d,ownsDocument:!0},"Save"),k&&(0,o.jsx)(e.PluginSaveMore,{items:O})]}),ye=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z.EmailPreviewMenu,{emailElement:t}),w&&(0,o.jsx)(e.PluginButtons,{items:j}),y.length>0&&(0,o.jsx)(e.PluginMenuButton,{location:"menu:document",items:y,className:"block-page-header__btn block-page-header__btn_extra"}),Q&&(0,o.jsx)(e.PluginButtons,{items:K}),k&&(0,o.jsx)(e.PluginSaveMore,{items:O})]}),ve=W.commandButtonsEnabled?_e:ye;return(0,o.jsx)(e.Header,{leftBlock:Ee,rightBlock:ve,className:"header_blocks",isHeaderCodeMenuOpen:q()})};se.propTypes={};function ne(t=document){const d=t.getElementById("email_iframe_slot");return{slot:d,area:d?.closest("[data-scroll-area]")??null}}function de(t){if(t)return t.renderGuid??(t.id!=null?String(t.id):void 0)}function ue(t,d={}){const s=e.useStore(),c=d.key??de(t),E=d.recovery===!0,l=(0,n.useMemo)(()=>{if(c===void 0)return;const p=e.getEmailDocuments(X.getContainer(s));return E?t?.id!=null?p.open(String(t.id),{email:t}):p.openDraft(t):p.openBlock(c,t)},[c,s,E]),g=t?.modified,a=t?.lock;return(0,n.useEffect)(()=>{e.writeSourceReport(l,e.fromServerFacts({modified:g,lock:a}))},[l,g,a]),l}function me(){const t=e.useContainer(),d=e.useNotification(),{__:s}=e.useI18n(),c=(0,n.useRef)(void 0),E=(0,n.useRef)(0);(0,n.useEffect)(()=>{const l=e.getOpenEmailDocuments(t??void 0);if(l)return l.subscribe(()=>{const{error:g,failures:a,failedIntent:p}=l.saveState(),f=a>E.current;if(E.current=a,a===0||!e.isLockedBlockRefusal(g)){c.current=void 0;return}const b=l.current()?.get(),$=b?.savedVersion??null;!f||p!=="snapshot"||c.current?.saved===$||(c.current={saved:$},d.error({id:"BLOCK_ACCESS_TO_LOCKED_ERROR",title:s("No access to edit the block."),data:e.getBlockDesc({id:b?.serverId??void 0,title:b?.attributes.title})}))})},[t,d,s])}var ge={status:0,data:{code:"timeout",message:"request timed out"}};function pe(t,d){const s=d?void 0:t,c=(0,n.useMemo)(()=>({key:s,inFlight:s!==void 0&&e.isBlockAutosaveInFlight(s)}),[s]),[E,l]=(0,n.useState)(void 0),g=E?.opening===c?E.settled:void 0,a=c.inFlight&&g===void 0;(0,n.useEffect)(()=>a&&c.key!==void 0?e.whenBlockAutosaveSettledWithin(c.key,e.getSaveTimeoutMs(),f=>l({opening:c,settled:f})):void 0,[a,c]);const p=e.useGetBlockQuery(t,{skip:d||a});return a?{...p,data:void 0,isSuccess:!1,isLoading:!0}:g===!1?{...p,data:void 0,isSuccess:!1,isLoading:!1,isError:!0,error:ge}:p}var{Content:Se}=r.ui_kit$Layout,fe=({session:t})=>{const{__:d}=e.useI18n(),s=e.useSendPostMessage(),{blockId:c,projectId:E}=e.useRouteParams();me();const l=e.useDispatch();e.useAppNavigate();const g=e.useCookieManager();e.useSelector(e.selectMonacoFocusing),e.useSelector(e.selectIsPanelHistoryCollapsed),e.useAppConfig();const a=g.get(e.APP_COOKIES.em_new_block),{isSuccess:p,data:f}=e.useGetBlockQuery(+a,{skip:!!t||!a}),[b,$]=(0,n.useState)(!1),{isLoading:W,isSuccess:M,isError:y,error:S,data:j}=pe(c,!!t||!c);(0,n.useEffect)(()=>{y&&S&&e.reportEntityLoadError("block",c,S)},[y,S,c]);const K=a?p:M,O=M&&j?.id?j:p&&f,w=t?t.block:O,Q=ue(t?void 0:O||void 0,{key:!t&&O?.id!=null?e.blockSessionKey(O.id):void 0}),k=t?t.document:Q,R=e.useDocumentAttributes(k),H=(0,n.useMemo)(()=>k?e.resolveOpenEmail({attributes:R,readContent:()=>k.getContent(),docId:k.get().docId,hasSession:!0,serverId:k.get().serverId,show:void 0}):w,[R,k,w]),J=e.useStore(),U=e.getEmailDocuments(X.getContainer(J)).history();e.usePublishDocumentSession(k,U);const I=e.useUserUndo({document:k,history:U}),P=(0,n.useCallback)(()=>{I.undo()},[I]),A=(0,n.useCallback)(()=>{I.redo()},[I]),q=(0,n.useCallback)(()=>I.clear(),[I]);e.useEditorUiReset(k?.get().docId,q);const v=(0,n.useCallback)(i=>{(window.navigator.appVersion.indexOf("Mac")&&i.metaKey||i.ctrlKey)&&(i.code==="KeyZ"?(i.preventDefault(),i.shiftKey?A():P()):i.code==="KeyY"&&!i.shiftKey&&(i.preventDefault(),A()))},[P,A]);(0,n.useEffect)(()=>(document.body.classList.add("editor"),()=>{l(e.resetPanes()),l(e.closeModal$1()),l(e.resetElementHistorySlice()),l(e.setActiveSettingsTab(e.BUILD))}),[l]);const F=i=>{const m=i.data.operation,_=i.data.action,B=document.getElementById("iframe-scroll-top"),C=document.getElementById("iframe-scroll-bottom");if(m===e.EVENT_TYPES.APPLICATION_ACTION&&(_==="undo"?P():_==="redo"&&A()),m===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_SHOW){const{slot:Y}=ne(),D=document.body.getBoundingClientRect().height,L=Y?.getClientRects()[0];if(!L||!B||!C)return;L.top<0&&(B.style.display="block"),L.top+L.height>D&&(C.style.display="block")}m===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_HIDE&&B&&C&&(B.style.display="none",C.style.display="none")};e.useListenPostMessage(F);const x=(0,n.useCallback)(i=>{i.target?.closest?.(".file-manager, .ant-modal.file-manager")||(i.preventDefault(),i.target&&s({operation:e.EVENT_TYPES.SANDBOX_DRAG_CANCEL}))},[s]),T=(0,n.useCallback)(()=>{},[]),G=(0,n.useCallback)(i=>{if(i.preventDefault(),i.target?.closest?.(".file-manager, .ant-modal.file-manager"))return;const m=document.getElementById("iframe-scroll-top"),_=document.getElementById("iframe-scroll-bottom"),{slot:B,area:C}=ne();if(!B||!m||!_)return;const{height:Y,top:D}=B.getBoundingClientRect(),L=document.body.getBoundingClientRect().height;D>1?m.style.display==="block"&&(m.style.display="none"):m.style.display==="none"&&(m.style.display="block"),Y-L+D<1?_.style.display==="block"&&(_.style.display="none"):_.style.display==="none"&&(_.style.display="block"),i.target===m&&C?.scrollBy(0,-20),i.target===_&&C?.scrollBy(0,20)},[]),V=(0,n.useCallback)(()=>{const i=document.getElementById("iframe-scroll-top"),m=document.getElementById("iframe-scroll-bottom");i&&m&&(i.style.display="none",m.style.display="none")},[]);return(0,n.useEffect)(()=>(window.addEventListener("dragstart",T),window.addEventListener("drop",x),window.addEventListener("dragend",V),window.addEventListener("dragover",G),window.addEventListener("keydown",v),()=>{window.removeEventListener("dragstart",T),window.removeEventListener("drop",x),window.removeEventListener("dragover",G),window.removeEventListener("dragend",V),window.removeEventListener("keydown",v)}),[v,T,x,V,G]),(0,o.jsx)(e.DocumentSessionProvider,{document:k,history:U,children:(0,o.jsxs)(r.ui_kit$Layout,{className:"block-page",children:[w&&(0,o.jsx)(se,{block:H}),W&&(0,o.jsx)(r.ui_kit$PageLoader,{}),y&&S&&!1,t?w&&(0,o.jsx)(z.EmailPane_default,{emailElement:H,kind:"block",isSuccess:!0}):(!c&&(a?b&&f:!0)||M&&j)&&(0,o.jsx)(z.EmailPane_default,{emailElement:H,kind:"block",isSuccess:K})]})})},ke=()=>{const{document:t,email:d}=e.useOpenEmail(),s=(0,n.useMemo)(()=>({document:t,block:d}),[t,d]);return(0,o.jsx)(fe,{session:s})};re.default=ke});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var r=".blocks-app .image-editor-modal .ant-modal-container{flex-direction:column;min-height:100vh;display:flex;border-radius:0!important}.blocks-app .image-editor-modal .ant-modal-body{border-bottom:1px solid #d9d9d9;flex-grow:1;display:flex}.blocks-app .image-editor-modal .ant-modal-body #filerobot-editor{flex-grow:1;height:calc(100vh - 70px);min-height:calc(100vh - 70px);overflow:hidden}.blocks-app .image-editor-modal .pi .text-on-primary{background:var(--ub-colorPrimary);border-color:var(--ub-colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary:hover{background:var(--ub-colorPrimaryHover);border-color:var(--ub-colorPrimaryHover)}.blocks-app .image-editor-modal .pi .text-on-primary.rounded-full{border-radius:calc(var(--ub-borderRadius) * 1px)}.blocks-app .image-editor-modal .pi .shadow-xl{box-shadow:none}.blocks-app .image-editor-modal .w-\\[4ch\\].text-sm.text-center{width:5ch}.blocks-app .image-editor-modal .pi .border-white{border-color:var(--ub-colorPrimary)}.blocks-app .image-editor-modal .pi .bg-white\\/50{background-color:var(--ub-colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary{color:var(--ub-colorWhite)}",e=window.__useblocks_styles__||(window.__useblocks_styles__={sheets:{},order:[]}),l=r;if(!e.sheets[l]){var t=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(t=new CSSStyleSheet,t.replaceSync(r))}catch{t=null}if(t){if(!e.host||!e.host.isConnected||!e.host.sheet){var o=document.createElement("style");o.setAttribute("data-useblocks","true"),document.head.appendChild(o),e.host=o}for(var d=e.host.sheet,i=0;i<t.cssRules.length;i++)try{d.insertRule(t.cssRules[i].cssText,d.cssRules.length)}catch{}(e.texts||(e.texts=[])).push(r),(e.listeners||[]).forEach(function(a){try{a(r)}catch{}})}else{var o=document.createElement("style");o.setAttribute("data-useblocks","true"),o.appendChild(document.createTextNode(r)),document.head.appendChild(o)}e.sheets[l]=!0,e.order.push(l)}}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
__useblocks__.define("static/core/
|
|
2
|
+
__useblocks__.define("static/core/e037a420.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/a42ab03f.js","static/core/b9f553d7.js","static/core/8845436d.js","static/core/1c7a6d45.js","static/core/a73da823.js","react","react/jsx-runtime","__delivery__/libs"],function(r,N,Z){const F=r("./2ff39ddf.js"),b=r("./cf7d1dd7.js"),e=r("./a42ab03f.js"),E=r("./b9f553d7.js");r("./8845436d.js");const d=r("./1c7a6d45.js"),U=r("./a73da823.js");let s=r("react");s=F.__toESM(s);let c=r("react/jsx-runtime"),_=r("__delivery__/libs");var L={width:"100%",height:"100%"},P=[d.TABS_IDS.ADJUST,d.TABS_IDS.ANNOTATE,d.TABS_IDS.RESIZE],$={presetsItems:E.C};function z(n,l){if(n==="json")return new Blob([l],{type:"application/json"});if(n==="svg")return new Blob([l],{type:"image/svg+xml"});const f=`image/${n}`,p=l.replace(/data:image\/([a-z]*)?;base64,/,"");return U.base64ToBlob(p,f)}var G=({currentImageLink:n,prefetchedBlob:l,resolveImageBlob:f,onSave:p,uploadImageResultIsLoading:H})=>{const v=e.useCookieManager(),[I,S]=(0,s.useState)(),[R,T]=(0,s.useState)(),{__:D}=e.useI18n();let m=e.useDispatch();const O=e.useStore(),y=e.useAppConfig(),w=e.useEditorLocale(),J=e.useSelector(e.selectSecondModal),k=e.useProjectData();(0,s.useMemo)(()=>{if(!y?.icons)return;const a={};for(const[i,t]of Object.entries(y.icons))typeof t=="string"&&(a[i]=e.sanitizeHtml(t));return Object.keys(a).length>0?a:void 0},[y?.icons]);const[K,x]=(0,s.useState)(!1),h=(0,s.useRef)(),A=(0,s.useRef)(null),j=d.useCornerRadiusSync(A),B=e.useEventEmitter(b.events.FILE_PROXY_EVENT_ID);(0,s.useEffect)(()=>{let a=!1;return(async()=>{const t=n;if(!t&&!l)return;let o=l;if(!o&&t)try{typeof f=="function"?o=await f(t):o=await(await fetch(t)).blob()}catch{if(a)return;if(o=await B.fire({url:t,project:k}).filter(u=>u instanceof Blob)[0],!o){const u=v.get(e.APP_COOKIES.em_token)||await e.di.getContainer(O)?.getInstance(b.TOKEN_ID);o=await(await fetch(`https://app.useblocks.io/api/wp-json/cors-proxy/v1/get?url=${encodeURIComponent(t)}`,{headers:{authorization:`Bearer ${u}`}})).blob()}}if(a||!o)return;const g=new FileReader;g.onload=()=>{if(a)return;const u=g.result;typeof u=="string"&&(S(u),T(o.type))},g.onerror=()=>{},g.readAsDataURL(o)})().catch(t=>{}),()=>{a=!0}},[n,l,f,v,B,k,O]);const V=(0,s.useCallback)(()=>{S(null),T(null),x(!1),m(e.closeSecondModal()),m(e.closeModal$1(e.MODALS.UPLOAD_IMAGE_MODAL))},[m]),M=(0,s.useRef)();M.current=async function(a,i,t){try{const o=z(t,a);p&&await p(new File([o],i,{lastModified:Date.now(),type:o.type}))}catch(o){throw o}};const Y=(0,s.useCallback)(a=>{x(!!a)},[]),W=(0,s.useCallback)(()=>{if(!h.current)return;const a=n?.split("/").pop().split(".")[0]||"image",i=j.isRounded?"png":R?.split("/")[1]||"png";try{const{imageData:t}=h.current({name:a,extension:i},void 0,!1),o=t.imageBase64??(t.imageCanvas?t.imageCanvas.toDataURL(`image/${i}`):void 0);if(!o)throw new Error("FIE не вернул ни imageBase64, ни imageCanvas");M.current(o,a,i)}catch{}},[j.isRounded,n,R]),C=w?w.replace("_","-"):"en-US",X=(0,s.useMemo)(()=>E._(C),[C]);return(0,c.jsxs)(_.ui_kit$Modal,{afterOpenChange:Y,width:"100%",style:{maxWidth:"100%",minHeight:"100vh"},className:"image-editor-modal",centered:!0,closable:!1,zIndex:1100,mask:!1,open:J,footer:[(0,c.jsx)(_.ui_kit$Button,{className:"em-analytics__profile-cancel",onClick:V,children:D("Cancel")},"Cancel"),(0,c.jsx)(_.ui_kit$Button,{className:"em-analytics__profile-updafilerobotte",id:"save",type:"primary",onClick:W,children:D("Update")},"Ok")],children:[H&&(0,c.jsx)("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:e.emCssVar("colorBgLayout"),zIndex:10,opacity:.7},children:(0,c.jsx)(_.ui_kit$Spin,{size:"large"})}),(0,c.jsx)("div",{id:"filerobot-editor",ref:A,style:L,children:K&&I&&(0,c.jsx)(d.AssemblyPoint_default,{source:I,useBackendTranslations:!1,language:C.split("-")[0],translations:X,tabsIds:P,defaultTabId:d.TABS_IDS.ADJUST,Crop:$,...j.editorConfig,avoidChangesNotSavedAlertOnLeave:!0,removeSaveButton:!0,getCurrentImgDataFnRef:h})})]})};N.default=G});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/e698ec22.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a42ab03f.js","static/core/1c06cdb7.js","dayjs"],function(l,_,b){const A=l("./2ff39ddf.js"),t=l("./a42ab03f.js"),i=l("./1c06cdb7.js");let r=l("dayjs");r=A.__toESM(r);var d=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],E=[i.GMAIL_ANNOTATION_TYPES.PRODUCT_CAROUSEL,i.GMAIL_ANNOTATION_TYPES.SINGLE_IMAGE_PREVIEW],c=n=>n;function f(n){const e=t.openDocument(n)?.get().attributes.utm_parameters;return Object.fromEntries(d.map(a=>[a,e?.[a]??""]))}function T(n,e){return n.map((a,o)=>({id:e?.cards?.[o]?.id??"",image:a.image??"",url:a.url??"",headline:a.headline??"",price:a.price??"",priceCurrency:a.priceCurrency??"",discountPercent:a.discountPercent??""}))}function O(n){return{"document.getUtm":()=>t.emailOnlyRefusal(n,"UTM marks")??t.featureRefusal(n,"utm_editor","UTM marks")??f(n),"document.setUtm":({params:e})=>{const a=t.emailOnlyRefusal(n,"UTM marks")??t.featureRefusal(n,"utm_editor","UTM marks");if(a)return a;if(t.isReadOnly(n))return t.readOnlyError();const o=Object.keys(e).filter(u=>!d.includes(u));if(o.length)return t.err("invalidArgs",`Unknown UTM marks: ${o.join(", ")}. Allowed: ${d.join(", ")}.`);const s={...f(n),...e};return t.writeEmailAttributes(t.openDocument(n),{utm_parameters:s}),t.ok(s)},"document.setAnnotations":e=>{const a=t.emailOnlyRefusal(n,"Gmail annotations");if(a)return a;if(t.isReadOnly(n))return t.readOnlyError();const o=t.openDocument(n),s=["availabilityStarts","availabilityEnds"].find(y=>e[y]!==void 0&&!(0,r.default)(e[y]).isValid());if(s)return t.err("invalidArgs",`"${s}" must be an ISO 8601 date, for example 2026-12-31T00:00:00Z.`);if(!o)return t.noDocument();const u=T(e.cards??[],i.parseGmailAnnotations(o.getContent())),m=i.buildAnnotationsData({annotationType:e.annotationType,annotationLogo:e.logo,description:e.description,discountCode:e.discountCode,availabilityStarts:e.availabilityStarts?(0,r.default)(e.availabilityStarts):null,availabilityEnds:e.availabilityEnds?(0,r.default)(e.availabilityEnds):null,offerPageUrl:e.offerPageUrl,merchantHomepageUrl:e.merchantHomepageUrl,cards:u}),p=[...i.getAnnotationsApplyBlockers(m,c),...E.includes(e.annotationType)?i.getDiscountPercentBlockers(u,c):[]];return p.length||!i.canApplyGmailAnnotations(m)?t.err("invalidArgs",`The annotations cannot be applied: ${p.join("; ")||"required fields are empty"}.`):t.ok({changed:i.applyAnnotationsEditToDocument(o,m)})},"document.removeAnnotations":()=>{const e=t.emailOnlyRefusal(n,"Gmail annotations"),a=t.openDocument(n);return e||(t.isReadOnly(n)?t.readOnlyError():t.ok({changed:a?i.removeAnnotationsFromDocument(a):!1}))}}}_.agentFinishHandlers=O});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/e7e888c1.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a42ab03f.js"],function(n,u,P){const x=n("./2ff39ddf.js"),p=n("./a42ab03f.js");var b={items_per_page:"/ сторінці",jump_to:"Перейти",jump_to_confirm:"підтвердити",page:"",prev_page:"Попередня сторінка",next_page:"Наступна сторінка",prev_5:"Попередні 5 сторінок",next_5:"Наступні 5 сторінок",prev_3:"Попередні 3 сторінки",next_3:"Наступні 3 сторінки",page_size:"Page Size"};function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(r)}function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(r,v).enumerable})),t.push.apply(t,a)}return t}function c(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?i(Object(t),!0).forEach(function(a){d(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function d(r,e,t){return e=f(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function f(r){var e=y(r,"string");return o(e)=="symbol"?e:String(e)}function y(r,e){if(o(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e||"default");if(o(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var g=c(c({},p.commonLocale),{},{locale:"uk_UA",today:"Сьогодні",now:"Зараз",backToToday:"Поточна дата",ok:"OK",clear:"Очистити",week:"Тиждень",month:"Місяць",year:"Рік",timeSelect:"Обрати час",dateSelect:"Обрати дату",monthSelect:"Обрати місяць",yearSelect:"Обрати рік",decadeSelect:"Обрати десятиріччя",previousMonth:"Попередній місяць (PageUp)",nextMonth:"Наступний місяць (PageDown)",previousYear:"Попередній рік (Control + left)",nextYear:"Наступний рік (Control + right)",previousDecade:"Попереднє десятиріччя",nextDecade:"Наступне десятиріччя",previousCentury:"Попереднє століття",nextCentury:"Наступне століття"}),s={placeholder:"Оберіть час",rangePlaceholder:["Початковий час","Кінцевий час"]},m={lang:{placeholder:"Оберіть дату",yearPlaceholder:"Оберіть рік",quarterPlaceholder:"Оберіть квартал",monthPlaceholder:"Оберіть місяць",weekPlaceholder:"Оберіть тиждень",rangePlaceholder:["Початкова дата","Кінцева дата"],rangeYearPlaceholder:["Початковий рік","Кінцевий рік"],rangeMonthPlaceholder:["Початковий місяць","Кінцевий місяць"],rangeWeekPlaceholder:["Початковий тиждень","Кінцевий тиждень"],shortWeekDays:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],shortMonths:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],...g},timePickerLocale:{...s}},h=m,l="${label} не є типом ${type}",$={locale:"uk",Pagination:b,DatePicker:m,TimePicker:s,Calendar:h,global:{placeholder:"Будь ласка, оберіть",close:"Закрити",show:"Показати",hide:"Приховати"},Table:{filterTitle:"Фільтрувати",filterConfirm:"OK",filterReset:"Скинути",filterEmptyText:"Фільтри відсутні",filterCheckAll:"Обрати всі",filterSearchPlaceholder:"Пошук у фільтрах",emptyText:"Даних немає",selectAll:"Обрати всі на сторінці",selectInvert:"Інвертувати вибір",selectNone:"Очистити вибір",selectionAll:"Обрати всі",sortTitle:"Сортувати",expand:"Розгорнути рядок",collapse:"Згорнути рядок",triggerDesc:"Сортувати за спаданням",triggerAsc:"Сортувати за зростанням",cancelSort:"Відмінити сортування"},Tour:{Next:"Далі",Previous:"Назад",Finish:"Завершити"},Modal:{okText:"Гаразд",cancelText:"Скасувати",justOkText:"Гаразд"},Popconfirm:{okText:"Гаразд",cancelText:"Скасувати"},Transfer:{titles:["",""],searchPlaceholder:"Введіть текст для пошуку",itemUnit:"елем.",itemsUnit:"елем.",remove:"Видалити",selectCurrent:"Вибрати поточну сторінку",removeCurrent:"Скасувати вибір на сторінці",selectAll:"Вибрати всі дані",deselectAll:"Очистити вибір",removeAll:"Скасувати вибір",selectInvert:"Інвертувати поточну сторінку"},Upload:{uploading:"Завантаження ...",removeFile:"Видалити файл",uploadError:"Помилка завантаження",previewFile:"Попередній перегляд файлу",downloadFile:"Завантажити файл"},Empty:{description:"Даних немає"},Icon:{icon:"іконка"},Text:{edit:"Редагувати",copy:"Скопіювати",copied:"Скопійовано",expand:"Розширити"},Form:{optional:"(опціонально)",defaultValidateMessages:{default:"Помилка валідації для поля ${label}",required:"Будь ласка, заповніть ${label}",enum:"Лише одне зі значень [${enum}] доступне для ${label}",whitespace:"Значення у полі ${label} не може бути пробілом",date:{format:"Не валідний формат дати у ${label}",parse:"Значення ${label} не може бути приведене до дати",invalid:"Не валідна дата у ${label}"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} має містити ${len} символів",min:"${label} має містити не менш, ніж ${min} символів",max:"${label} має містити не більш, ніж ${max} символів",range:"${label} має містити ${min}-${max} символів"},number:{len:"${label} має дорівнювати ${len}",min:"${label} має бути не менш, ніж ${min}",max:"${label} має бути не більш, ніж ${max}",range:"${label} має бути в межах ${min}-${max}"},array:{len:"${label} має містити ${len} елементи",min:"${label} має містити не менш, ніж ${min} елементи",max:"${label} має містити не більш, ніж ${max} елементи",range:"Кількість елементів в ${label} має бути в межах ${min}-${max}"},pattern:{mismatch:"${label} не відповідає шаблону ${pattern}"}}},QRCode:{expired:"QR-код закінчився",refresh:"Оновити"}};u.default=$});
|