@emailmaker/emailmaker 1.3.5 → 1.3.8

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +20 -0
  3. package/emailmaker-core.091c986b.js +874 -0
  4. package/emailmaker-esm.js +53 -39
  5. package/{emailmaker-po.33f5584d.js → emailmaker-po.091c986b.js} +1 -1
  6. package/emailmaker.d.ts +95 -5
  7. package/emailmaker.js +54 -40
  8. package/iframe/.vite/manifest.json +4 -4
  9. package/iframe/css/sandbox.css +6 -0
  10. package/iframe/{iframe-eblock.33f5584d.html → iframe-eblock.091c986b.html} +2 -2
  11. package/iframe/{iframe.33f5584d.html → iframe.091c986b.html} +2 -2
  12. package/iframe/js/elMarkupHelper.DoIAMao4.js +279 -0
  13. package/iframe/js/{iframe-eblock.body.33f5584d.js → iframe-eblock.body.091c986b.js} +1 -1
  14. package/iframe/js/iframe-eblock.js +2 -2
  15. package/iframe/js/iframe.body.091c986b.js +129 -0
  16. package/iframe/js/iframe.js +2 -2
  17. package/package.json +1 -1
  18. package/runtime/react/index.js +1 -1
  19. package/static/core/166a67bd.js +1 -0
  20. package/static/core/1a65ef0f.js +1 -0
  21. package/static/core/{99be02b7.js → 1c67ab93.js} +1 -1
  22. package/static/core/{2cee0217.js → 1d004581.js} +1 -1
  23. package/static/core/{64c425bf.js → 220d7d31.js} +1 -1
  24. package/static/core/{5150fae0.js → 2da7d310.js} +2 -2
  25. package/static/core/322d3e9f.js +1 -0
  26. package/static/core/{a74cc07c.js → 34756b09.js} +1 -1
  27. package/static/core/36f3f772.js +1 -0
  28. package/static/core/3b9931cd.js +1 -0
  29. package/static/core/{e21f8693.js → 3bff2ae6.js} +1 -1
  30. package/static/core/{4a259bd9.js → 454350da.js} +1 -1
  31. package/static/core/{4797d4f7.js → 4852c0de.js} +6 -6
  32. package/static/core/{423efc66.js → 5272f5b2.js} +1 -1
  33. package/static/core/{97ab9fc2.js → 5f176d0a.js} +1 -1
  34. package/static/core/674e22a5.js +1 -0
  35. package/static/core/{89df46ff.js → 6ce85877.js} +1 -1
  36. package/static/core/7b8fbc31.js +1 -0
  37. package/static/core/{4ee64f35.js → 867b1e0a.js} +1 -1
  38. package/static/core/89b1052c.js +1 -0
  39. package/static/core/{d7e61b4c.js → 8b8c93f4.js} +1 -1
  40. package/static/core/8e97c82c.js +163 -0
  41. package/static/core/8eea6488.js +1 -0
  42. package/static/core/9a4cfb0a.js +1 -0
  43. package/static/core/{65db94be.js → 9d388494.js} +1 -1
  44. package/static/core/{d4b8f1e0.js → 9e1370a6.js} +1 -1
  45. package/static/core/{90aedd7b.js → a59d579e.js} +1 -1
  46. package/static/core/{4fd85bc9.js → a6abc393.js} +2 -2
  47. package/static/core/aa33047a.js +1 -0
  48. package/static/core/abde5a43.js +2 -0
  49. package/static/core/{294defd8.js → b69579c4.js} +1 -1
  50. package/static/core/{5913ff80.js → bcc4db3e.js} +1 -1
  51. package/static/core/{19f19adb.js → c0b0ceff.js} +3 -3
  52. package/static/core/c5edcfc7.js +1 -0
  53. package/static/core/{3320a3fd.js → c9d5118c.js} +1 -1
  54. package/static/core/{239be344.js → caf9f1a6.js} +1 -1
  55. package/static/core/{3a0fc0cb.js → d241119a.js} +1 -1
  56. package/static/core/d4c10a7e.js +10 -0
  57. package/static/core/d517188a.js +1 -0
  58. package/static/core/db92581b.js +19 -0
  59. package/static/core/{78663aeb.js → de0d3c9a.js} +1 -1
  60. package/static/core/{2fbd0ef8.js → e995a70d.js} +1 -1
  61. package/static/core/ee26ef3d.js +1 -0
  62. package/static/core/f399000c.js +1 -0
  63. package/static/core/{42f18479.js → f875f388.js} +1 -1
  64. package/static/esm/{9610f2de.js → 95cbf920.js} +1 -1
  65. package/static/umd-runtime/{runtime.ylG9Pc4W.js → runtime.CV4WRxRc.js} +1 -1
  66. package/vendor/@emailmaker/ui-kit/package.json +1 -1
  67. package/emailmaker-core.33f5584d.js +0 -859
  68. package/iframe/js/elMarkupHelper.B6dyF9UI.js +0 -278
  69. package/iframe/js/iframe.body.33f5584d.js +0 -129
  70. package/static/core/c2fc9f27.js +0 -1
  71. package/static/core/f52ad95a.js +0 -28
@@ -1 +1 @@
1
- __emailmaker__.define("static/core/89df46ff.js",["require","exports","module","static/core/5dc34752.js","static/core/c1188df9.js"],function(n,p,P){const x=n("./5dc34752.js"),u=n("./c1188df9.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:"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:"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:d,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:"Оновити"}};p.default=$});
1
+ __emailmaker__.define("static/core/6ce85877.js",["require","exports","module","static/core/5dc34752.js","static/core/c948c45f.js"],function(n,p,P){const x=n("./5dc34752.js"),u=n("./c948c45f.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:"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:"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:d,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:"Оновити"}};p.default=$});
@@ -0,0 +1 @@
1
+ __emailmaker__.define("static/core/7b8fbc31.js",["require","exports","module","static/core/5dc34752.js","static/core/c948c45f.js"],function(i,u,h){const b=i("./5dc34752.js"),a=i("./c948c45f.js");function l(e,t){return a.readOnlyRefusal(e)??a.askCanvasElement(e,t)}function d(e){return e.ok?void 0:e}function s(e,t,r){return e.flatMap(n=>"children"in n?s(n.children??[],[...t,n.label],r):[{name:[...t,n.label].join(" / "),value:r.replace("%value%",()=>n.value),raw:n.value}])}function m(e,t){return e.flatMap((r,n)=>s([r],[],(t.length>1?t[n]:void 0)??t[0]??"%value%"))}function c(e){const{mergeTags:t}=a.getAppConfig(e);return m(t?.items??[],t?.syntax??[])}function f(e,t){const r=t.trim(),n=e.filter(o=>o.raw===r);return e.find(o=>o.value===r)??(n.length===1?n[0]:void 0)}function v(e){const t=()=>a.readOnlyRefusal(e);return{"column.remove":{precheck:t,consent:a.elementConsent(e,({__:r},n,{text:o})=>({title:r("Remove this column with its content"),...a.detailsOf(o)}))},"accordion.removeSection":{precheck:t,consent:a.elementConsent(e,({__:r},n)=>({title:r("Remove this accordion section with its content"),...a.detailsOf({label:r("Section"),value:String(n.index+1)})}))}}}function p(e){return{"variable.list":()=>a.featureRefusal(e,"variables","merge variables")??c(e).map(({name:t,value:r})=>({name:t,value:r})),"element.insertVariable":async({element:t,variable:r})=>{const n=a.readOnlyRefusal(e)??a.featureRefusal(e,"variables","merge variables");if(n)return n;const o=f(c(e),r);return o?l(e,{op:"insertVariable",element:t,variable:o.value}):a.err("notFound",`There is no merge variable "${r}"; take a value from variable.list.`)},"element.applyTypograf":async({element:t})=>a.featureRefusal(e,"typograph","the typograph")??d(await l(e,{op:"typograf",element:t})),"column.add":({element:t})=>l(e,{op:"addColumn",element:t}),"column.remove":({element:t})=>l(e,{op:"removeColumn",element:t}),"column.swap":({element:t,with:r})=>l(e,{op:"swapColumns",element:t,with:r}),"accordion.addSection":({element:t,title:r,text:n})=>l(e,{op:"addAccordionSection",element:t,title:r,text:n??""}),"accordion.removeSection":({element:t,index:r})=>l(e,{op:"removeAccordionSection",element:t,index:r})}}u.agentStructureGates=v,u.agentStructureHandlers=p});
@@ -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.__emailmaker_styles__||(window.__emailmaker_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-emailmaker","true"),document.head.appendChild(e),o.host=e}for(var c=o.host.sheet,a=0;a<t.cssRules.length;a++)try{c.insertRule(t.cssRules[a].cssText,c.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-emailmaker","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
- __emailmaker__.define("static/core/4ee64f35.js",["require","exports","module","static/core/5dc34752.js","static/core/ee980948.js","static/core/c1188df9.js","static/core/370f04c3.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(Q,pt,Ic){const oe=Q("./5dc34752.js"),Mn=Q("./ee980948.js"),c=Q("./c1188df9.js"),Ln=Q("./370f04c3.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,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(p){u=!0,n=p}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw n}}return s}}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ __emailmaker__.define("static/core/867b1e0a.js",["require","exports","module","static/core/5dc34752.js","static/core/ee980948.js","static/core/c948c45f.js","static/core/370f04c3.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(Q,pt,Ic){const oe=Q("./5dc34752.js"),Mn=Q("./ee980948.js"),c=Q("./c948c45f.js"),Ln=Q("./370f04c3.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,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(p){u=!0,n=p}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw n}}return s}}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 ar(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 sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ar(Object(r),!0).forEach(function(o){Un(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(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 a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(n,s))}}}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),a=Oe(Zn)(r);function s(){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,a)(u)}return[s,l]}function Zn(e,t){return Ce(t)?t(e.current):t}function Jn(e,t){return e.current=sr(sr({},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 a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(n,s))}}}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 ai={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
 
@@ -0,0 +1 @@
1
+ __emailmaker__.define("static/core/89b1052c.js",["require","exports","module","static/core/5dc34752.js","static/core/ee980948.js","static/core/c948c45f.js","static/core/674e22a5.js"],function(p,f,P){const j=p("./5dc34752.js"),n=p("./ee980948.js"),t=p("./c948c45f.js"),c=p("./674e22a5.js");var I=["image/jpeg","image/png","image/jpg","image/webp","image/gif","image/svg+xml"],d=(e,i)=>({code:e,message:i}),E=e=>typeof e!="string";function _(e,i){const a=t.decodeFileNameFromUrl(i)??"image",o=c.normalizeImageFormatForDisplay(e.type);return new File([e],!o||a.includes(".")?a:`${a}.${o}`,{type:e.type||"application/octet-stream"})}async function v(e,i,a){const o=c.getImageBlobResolver(e),g=t.getEmitter(e,n.events.FILE_PROXY_EVENT_ID),r=t.getEmitter(e,n.events.PROXY_URL_EVENT_ID),u=c.canonicalImageUrlKey(i);return _(await o.resolve(u,void 0,(l,m)=>c.fetchEditorImageBlobByUrl(l,{appConfig:t.getAppConfig(e),isStandalone:t.isStandaloneRuntime(e),fireFileProxy:s=>g.fire({url:s,project:a}),fireProxyUrl:s=>r.fire({url:s,project:a})},m)),u)}async function F(e,i){const a=t.getCurrentProjectId(e),o=a===void 0?"":String(a);let g;try{g=await v(e,i,o)}catch(r){return d("downloadFailed",r instanceof Error&&r.message?r.message:"The image could not be downloaded from the URL.")}if(!I.includes(g.type))return d("unsupportedType","Only JPG, PNG, WEBP, GIF and SVG images can be uploaded.");try{const r=t.getAppConfig(e),u=await t.prepareImageForEditorUpload(g,r),l=await t.fireUploadImageEvent(t.getEmitter(e,n.events.UPLOAD_EVENT_ID),{file:u,project:o});if(l.url)return l.url;const m=t.isStandaloneRuntime(e),s=t.getCurrentUser(e).profile?.id,{dataProvider:y,usesBuiltInStorage:U}=t.buildResolvedFileManagerProviders({storageProvider:e.getInstance(n.STORAGE_PROVIDER_ID),projectId:o,restApi:n.getApi(e,t.EM_FILES_MODULES),restApiV2:t.createRestClientV2(e),i18n:t.defaultI18nContext,pathPostfix:s!==void 0&&String(s)!=="0"?String(s):"",appConfig:r,isStandalone:m,onIndexingStateChange:()=>{}});return t.shouldFallbackToBuiltInUpload(l,{isStandalone:m,targetIsOurBackend:U})?(await t.uploadFileViaDataProvider(u,y))?.url??d("uploadFailed","The image could not be uploaded."):d("uploadRejected",t.toUploadImageError(l).message)}catch(r){return d("uploadFailed",r instanceof Error&&r.message?r.message:"The image could not be uploaded.")}}f.isUploadFailure=E,f.saveImageFromUrl=F});
@@ -1,4 +1,4 @@
1
- __emailmaker__.define("static/core/d7e61b4c.js",["require","exports","module","static/core/5dc34752.js","static/core/c1188df9.js","static/core/a8cb6e27.js","static/core/e6f6edff.js","react","react/jsx-runtime","__delivery__/libs","react-dom","react-dom/client"],function(et,Y,iF){const ut=et("./5dc34752.js"),Xa=et("./c1188df9.js"),nl=et("./a8cb6e27.js"),ll=et("./e6f6edff.js");let F=et("react");F=ut.__toESM(F);let ei=et("react/jsx-runtime"),Hr=et("__delivery__/libs"),sl=et("react-dom");sl=ut.__toESM(sl);let nF=et("react-dom/client");function sf(o,t){if(Xa._typeof(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var n=a.call(o,t||"default");if(Xa._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function dl(o){var t=sf(o,"string");return Xa._typeof(t)=="symbol"?t:t+""}function ri(o,t,a){return(t=dl(t))in o?Object.defineProperty(o,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[t]=a,o}var ti=(0,F.createContext)({});function ul(o){var t,a,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o)){var l=o.length;for(t=0;t<l;t++)o[t]&&(a=ul(o[t]))&&(n&&(n+=" "),n+=a)}else for(a in o)o[a]&&(n&&(n+=" "),n+=a);return n}function cl(){for(var o,t,a=0,n="",l=arguments.length;a<l;a++)(o=arguments[a])&&(t=ul(o))&&(n&&(n+=" "),n+=t);return n}var df={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},lr=Math.round;function oi(o,t){const a=o.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=a.map(l=>parseFloat(l));for(let l=0;l<3;l+=1)n[l]=t(n[l]||0,a[l]||"",l);return a[3]?n[3]=a[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var fl=(o,t,a)=>a===0?o:o/100;function po(o,t){const a=t||255;return o>a?a:o<0?0:o}var Mo=class af{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function a(l){return l[0]in t&&l[1]in t&&l[2]in t}if(t)if(typeof t=="string"){let d=function(u){return l.startsWith(u)};var n=d;const l=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(d("rgb"))this.fromRgbString(l);else if(d("hsl"))this.fromHslString(l);else if(d("hsv")||d("hsb"))this.fromHsvString(l);else{const u=df[l.toLowerCase()];u&&this.fromHexString(parseInt(u,36).toString(16).padStart(6,"0"))}}else if(t instanceof af)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(a("rgb"))this.r=po(t.r),this.g=po(t.g),this.b=po(t.b),this.a=typeof t.a=="number"?po(t.a,1):1;else if(a("hsl"))this.fromHsl(t);else if(a("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const a=this.toHsv();return a.h=t,this._c(a)}getLuminance(){function t(d){const u=d/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const a=t(this.r),n=t(this.g),l=t(this.b);return .2126*a+.7152*n+.0722*l}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const a=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*a-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()-t/100;return l<0&&(l=0),this._c({h:a,s:n,l,a:this.a})}lighten(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()+t/100;return l>1&&(l=1),this._c({h:a,s:n,l,a:this.a})}mix(t,a=50){const n=this._c(t),l=a/100,d=c=>(n[c]-this[c])*l+this[c],u={r:lr(d("r")),g:lr(d("g")),b:lr(d("b")),a:lr(d("a")*100)/100};return this._c(u)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const a=this._c(t),n=this.a+a.a*(1-this.a),l=d=>lr((this[d]*this.a+a[d]*a.a*(1-this.a))/n);return this._c({r:l("r"),g:l("g"),b:l("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const a=(this.r||0).toString(16);t+=a.length===2?a:"0"+a;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const l=(this.b||0).toString(16);if(t+=l.length===2?l:"0"+l,typeof this.a=="number"&&this.a>=0&&this.a<1){const d=lr(this.a*255).toString(16);t+=d.length===2?d:"0"+d}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),a=lr(this.getHSLSaturation()*100),n=lr(this.getLightness()*100);return this.a!==1?`hsla(${t},${a}%,${n}%,${this.a})`:`hsl(${t},${a}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,a,n){const l=this.clone();return l[t]=po(a,n),l}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const a=t.replace("#","");function n(l,d){return parseInt(a[l]+a[d||l],16)}a.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=a[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=a[6]?n(6,7)/255:1)}fromHsl({h:t,s:a,l:n,a:l}){const d=(t%360+360)%360;if(this._h=d,this._hsl_s=a,this._l=n,this.a=typeof l=="number"?l:1,a<=0){const S=lr(n*255);this.r=S,this.g=S,this.b=S;return}let u=0,c=0,g=0;const m=d/60,v=(1-Math.abs(2*n-1))*a,y=v*(1-Math.abs(m%2-1));m>=0&&m<1?(u=v,c=y):m>=1&&m<2?(u=y,c=v):m>=2&&m<3?(c=v,g=y):m>=3&&m<4?(c=y,g=v):m>=4&&m<5?(u=y,g=v):m>=5&&m<6&&(u=v,g=y);const b=n-v/2;this.r=lr((u+b)*255),this.g=lr((c+b)*255),this.b=lr((g+b)*255)}fromHsv({h:t,s:a,v:n,a:l}){const d=(t%360+360)%360;this._h=d,this._hsv_s=a,this._v=n,this.a=typeof l=="number"?l:1;const u=lr(n*255);if(this.r=u,this.g=u,this.b=u,a<=0)return;const c=d/60,g=Math.floor(c),m=c-g,v=lr(n*(1-a)*255),y=lr(n*(1-a*m)*255),b=lr(n*(1-a*(1-m))*255);switch(g){case 0:this.g=b,this.b=v;break;case 1:this.r=y,this.b=v;break;case 2:this.r=v,this.b=b;break;case 3:this.r=v,this.g=y;break;case 4:this.r=b,this.g=v;break;default:this.g=v,this.b=y}}fromHsvString(t){const a=oi(t,fl);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(t){const a=oi(t,fl);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(t){const a=oi(t,(n,l)=>l.includes("%")?lr(n/100*255):n);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}},Bo=2,ml=.16,uf=.05,cf=.05,ff=.15,pl=5,gl=4,mf=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function hl(o,t,a){let n;return Math.round(o.h)>=60&&Math.round(o.h)<=240?n=a?Math.round(o.h)-Bo*t:Math.round(o.h)+Bo*t:n=a?Math.round(o.h)+Bo*t:Math.round(o.h)-Bo*t,n<0?n+=360:n>=360&&(n-=360),n}function vl(o,t,a){if(o.h===0&&o.s===0)return o.s;let n;return a?n=o.s-ml*t:t===gl?n=o.s+ml:n=o.s+uf*t,n>1&&(n=1),a&&t===pl&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function yl(o,t,a){let n;return a?n=o.v+cf*t:n=o.v-ff*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function pf(o,t={}){const a=[],n=new Mo(o),l=n.toHsv();for(let d=pl;d>0;d-=1){const u=new Mo({h:hl(l,d,!0),s:vl(l,d,!0),v:yl(l,d,!0)});a.push(u)}a.push(n);for(let d=1;d<=gl;d+=1){const u=new Mo({h:hl(l,d),s:vl(l,d),v:yl(l,d)});a.push(u)}return t.theme==="dark"?mf.map(({index:d,amount:u})=>new Mo(t.backgroundColor||"#141414").mix(a[d],u).toHexString()):a.map(d=>d.toHexString())}var bl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bl.primary=bl[5];var wl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];wl.primary=wl[5];var Cl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cl.primary=Cl[5];var Al=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Al.primary=Al[5];var Il=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Il.primary=Il[5];var Fl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Fl.primary=Fl[5];var _l=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];_l.primary=_l[5];var Sl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Sl.primary=Sl[5];var ai=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ai.primary=ai[5];var zl=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];zl.primary=zl[5];var El=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];El.primary=El[5];var Tl=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Tl.primary=Tl[5];var kl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kl.primary=kl[5];var Rl=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Rl.primary=Rl[5];var xl=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];xl.primary=xl[5];var Pl=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Pl.primary=Pl[5];var Ll=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ll.primary=Ll[5];var Ul=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Ul.primary=Ul[5];var Nl=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Nl.primary=Nl[5];var Dl=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Dl.primary=Dl[5];var jl=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];jl.primary=jl[5];var Ol=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Ol.primary=Ol[5];var Ml=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ml.primary=Ml[5];var Bl=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Bl.primary=Bl[5];var ql=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ql.primary=ql[5];var Wl=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Wl.primary=Wl[5];function Gl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lF=Gl()?F.useLayoutEffect:F.useEffect;function gf(){return{...F}.useId}var sF=gf();function hf(o,t,a){const n=F.useRef({});return(!("value"in n.current)||a(n.current.condition,t))&&(n.current.value=o(),n.current.condition=t),n.current.value}var vf=ut.__commonJSMin((o=>{})),yf=ut.__commonJSMin(((o,t)=>{t.exports=vf()})),dF=yf(),uF=Number(F.version.split(".")[0]),bf=(o,t)=>{typeof o=="function"?o(t):typeof o=="object"&&o&&"current"in o&&(o.current=t)},wf=(...o)=>{const t=o.filter(Boolean);return t.length<=1?t[0]:a=>{o.forEach(n=>{bf(n,a)})}},Cf=(...o)=>hf(()=>wf(...o),o,(t,a)=>t.length!==a.length||t.every((n,l)=>n!==a[l]));function Af(o,t){if(!o)return!1;if(o.contains)return o.contains(t);let a=t;for(;a;){if(a===o)return!0;a=a.parentNode}return!1}var Hl="data-rc-order",Vl="data-rc-priority",If="rc-util-key",ii=new Map;function Kl({mark:o}={}){return o?o.startsWith("data-")?o:`data-${o}`:If}function ni(o){return o.attachTo?o.attachTo:document.querySelector("head")||document.body}function Ff(o){return o==="queue"?"prependQueue":o?"prepend":"append"}function li(o){return Array.from((ii.get(o)||o).children).filter(t=>t.tagName==="STYLE")}function $l(o,t={}){if(!Gl())return null;const{csp:a,prepend:n,priority:l=0}=t,d=Ff(n),u=d==="prependQueue",c=document.createElement("style");c.setAttribute(Hl,d),u&&l&&c.setAttribute(Vl,`${l}`),a?.nonce&&(c.nonce=a?.nonce),c.innerHTML=o;const g=ni(t),{firstChild:m}=g;if(n){if(u){const v=(t.styles||li(g)).filter(y=>{if(!["prepend","prependQueue"].includes(y.getAttribute(Hl)))return!1;const b=Number(y.getAttribute(Vl)||0);return l>=b});if(v.length)return g.insertBefore(c,v[v.length-1].nextSibling),c}g.insertBefore(c,m)}else g.appendChild(c);return c}function _f(o,t={}){let{styles:a}=t;return a||=li(ni(t)),a.find(n=>n.getAttribute(Kl(t))===o)}function Sf(o,t){const a=ii.get(o);if(!a||!Af(document,a)){const n=$l("",t),{parentNode:l}=n;ii.set(o,l),o.removeChild(n)}}function zf(o,t,a={}){const n=ni(a),l=li(n),d={...a,styles:l};Sf(n,d);const u=_f(t,d);if(u)return d.csp?.nonce&&u.nonce!==d.csp?.nonce&&(u.nonce=d.csp?.nonce),u.innerHTML!==o&&(u.innerHTML=o),u;const c=$l(o,d);return c.setAttribute(Kl(d),t),c}function Ql(o){return o?.getRootNode?.()}function Ef(o){return Ql(o)instanceof ShadowRoot}function Tf(o){return Ef(o)?Ql(o):null}var si={},kf=[],Rf=o=>{kf.push(o)};function xf(o,t){}function Pf(o,t){}function Lf(){si={}}function Zl(o,t,a){!t&&!si[a]&&(o(!1,a),si[a]=!0)}function qo(o,t){Zl(xf,o,t)}function Uf(o,t){Zl(Pf,o,t)}qo.preMessage=Rf,qo.resetWarned=Lf,qo.noteOnce=Uf;var Nf=ut.__commonJSMin(((o,t)=>{t.exports=d,t.exports.isMobile=d,t.exports.default=d;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function d(u){u||(u={});let c=u.ua;if(!c&&typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;let g=a.test(c)&&!n.test(c)||!!u.tablet&&l.test(c);return!g&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(g=!0),g}})),cF=ut.__toESM(Nf()),fF=`accept acceptCharset accessKey action allowFullScreen allowTransparency
1
+ __emailmaker__.define("static/core/8b8c93f4.js",["require","exports","module","static/core/5dc34752.js","static/core/c948c45f.js","static/core/a8cb6e27.js","static/core/e6f6edff.js","react","react/jsx-runtime","__delivery__/libs","react-dom","react-dom/client"],function(et,Y,iF){const ut=et("./5dc34752.js"),Xa=et("./c948c45f.js"),nl=et("./a8cb6e27.js"),ll=et("./e6f6edff.js");let F=et("react");F=ut.__toESM(F);let ei=et("react/jsx-runtime"),Hr=et("__delivery__/libs"),sl=et("react-dom");sl=ut.__toESM(sl);let nF=et("react-dom/client");function sf(o,t){if(Xa._typeof(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var n=a.call(o,t||"default");if(Xa._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function dl(o){var t=sf(o,"string");return Xa._typeof(t)=="symbol"?t:t+""}function ri(o,t,a){return(t=dl(t))in o?Object.defineProperty(o,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[t]=a,o}var ti=(0,F.createContext)({});function ul(o){var t,a,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o)){var l=o.length;for(t=0;t<l;t++)o[t]&&(a=ul(o[t]))&&(n&&(n+=" "),n+=a)}else for(a in o)o[a]&&(n&&(n+=" "),n+=a);return n}function cl(){for(var o,t,a=0,n="",l=arguments.length;a<l;a++)(o=arguments[a])&&(t=ul(o))&&(n&&(n+=" "),n+=t);return n}var df={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},lr=Math.round;function oi(o,t){const a=o.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=a.map(l=>parseFloat(l));for(let l=0;l<3;l+=1)n[l]=t(n[l]||0,a[l]||"",l);return a[3]?n[3]=a[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var fl=(o,t,a)=>a===0?o:o/100;function po(o,t){const a=t||255;return o>a?a:o<0?0:o}var Mo=class af{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function a(l){return l[0]in t&&l[1]in t&&l[2]in t}if(t)if(typeof t=="string"){let d=function(u){return l.startsWith(u)};var n=d;const l=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(d("rgb"))this.fromRgbString(l);else if(d("hsl"))this.fromHslString(l);else if(d("hsv")||d("hsb"))this.fromHsvString(l);else{const u=df[l.toLowerCase()];u&&this.fromHexString(parseInt(u,36).toString(16).padStart(6,"0"))}}else if(t instanceof af)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(a("rgb"))this.r=po(t.r),this.g=po(t.g),this.b=po(t.b),this.a=typeof t.a=="number"?po(t.a,1):1;else if(a("hsl"))this.fromHsl(t);else if(a("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const a=this.toHsv();return a.h=t,this._c(a)}getLuminance(){function t(d){const u=d/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const a=t(this.r),n=t(this.g),l=t(this.b);return .2126*a+.7152*n+.0722*l}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const a=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*a-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()-t/100;return l<0&&(l=0),this._c({h:a,s:n,l,a:this.a})}lighten(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()+t/100;return l>1&&(l=1),this._c({h:a,s:n,l,a:this.a})}mix(t,a=50){const n=this._c(t),l=a/100,d=c=>(n[c]-this[c])*l+this[c],u={r:lr(d("r")),g:lr(d("g")),b:lr(d("b")),a:lr(d("a")*100)/100};return this._c(u)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const a=this._c(t),n=this.a+a.a*(1-this.a),l=d=>lr((this[d]*this.a+a[d]*a.a*(1-this.a))/n);return this._c({r:l("r"),g:l("g"),b:l("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const a=(this.r||0).toString(16);t+=a.length===2?a:"0"+a;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const l=(this.b||0).toString(16);if(t+=l.length===2?l:"0"+l,typeof this.a=="number"&&this.a>=0&&this.a<1){const d=lr(this.a*255).toString(16);t+=d.length===2?d:"0"+d}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),a=lr(this.getHSLSaturation()*100),n=lr(this.getLightness()*100);return this.a!==1?`hsla(${t},${a}%,${n}%,${this.a})`:`hsl(${t},${a}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,a,n){const l=this.clone();return l[t]=po(a,n),l}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const a=t.replace("#","");function n(l,d){return parseInt(a[l]+a[d||l],16)}a.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=a[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=a[6]?n(6,7)/255:1)}fromHsl({h:t,s:a,l:n,a:l}){const d=(t%360+360)%360;if(this._h=d,this._hsl_s=a,this._l=n,this.a=typeof l=="number"?l:1,a<=0){const S=lr(n*255);this.r=S,this.g=S,this.b=S;return}let u=0,c=0,g=0;const m=d/60,v=(1-Math.abs(2*n-1))*a,y=v*(1-Math.abs(m%2-1));m>=0&&m<1?(u=v,c=y):m>=1&&m<2?(u=y,c=v):m>=2&&m<3?(c=v,g=y):m>=3&&m<4?(c=y,g=v):m>=4&&m<5?(u=y,g=v):m>=5&&m<6&&(u=v,g=y);const b=n-v/2;this.r=lr((u+b)*255),this.g=lr((c+b)*255),this.b=lr((g+b)*255)}fromHsv({h:t,s:a,v:n,a:l}){const d=(t%360+360)%360;this._h=d,this._hsv_s=a,this._v=n,this.a=typeof l=="number"?l:1;const u=lr(n*255);if(this.r=u,this.g=u,this.b=u,a<=0)return;const c=d/60,g=Math.floor(c),m=c-g,v=lr(n*(1-a)*255),y=lr(n*(1-a*m)*255),b=lr(n*(1-a*(1-m))*255);switch(g){case 0:this.g=b,this.b=v;break;case 1:this.r=y,this.b=v;break;case 2:this.r=v,this.b=b;break;case 3:this.r=v,this.g=y;break;case 4:this.r=b,this.g=v;break;default:this.g=v,this.b=y}}fromHsvString(t){const a=oi(t,fl);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(t){const a=oi(t,fl);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(t){const a=oi(t,(n,l)=>l.includes("%")?lr(n/100*255):n);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}},Bo=2,ml=.16,uf=.05,cf=.05,ff=.15,pl=5,gl=4,mf=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function hl(o,t,a){let n;return Math.round(o.h)>=60&&Math.round(o.h)<=240?n=a?Math.round(o.h)-Bo*t:Math.round(o.h)+Bo*t:n=a?Math.round(o.h)+Bo*t:Math.round(o.h)-Bo*t,n<0?n+=360:n>=360&&(n-=360),n}function vl(o,t,a){if(o.h===0&&o.s===0)return o.s;let n;return a?n=o.s-ml*t:t===gl?n=o.s+ml:n=o.s+uf*t,n>1&&(n=1),a&&t===pl&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function yl(o,t,a){let n;return a?n=o.v+cf*t:n=o.v-ff*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function pf(o,t={}){const a=[],n=new Mo(o),l=n.toHsv();for(let d=pl;d>0;d-=1){const u=new Mo({h:hl(l,d,!0),s:vl(l,d,!0),v:yl(l,d,!0)});a.push(u)}a.push(n);for(let d=1;d<=gl;d+=1){const u=new Mo({h:hl(l,d),s:vl(l,d),v:yl(l,d)});a.push(u)}return t.theme==="dark"?mf.map(({index:d,amount:u})=>new Mo(t.backgroundColor||"#141414").mix(a[d],u).toHexString()):a.map(d=>d.toHexString())}var bl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bl.primary=bl[5];var wl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];wl.primary=wl[5];var Cl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cl.primary=Cl[5];var Al=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Al.primary=Al[5];var Il=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Il.primary=Il[5];var Fl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Fl.primary=Fl[5];var _l=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];_l.primary=_l[5];var Sl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Sl.primary=Sl[5];var ai=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ai.primary=ai[5];var zl=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];zl.primary=zl[5];var El=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];El.primary=El[5];var Tl=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Tl.primary=Tl[5];var kl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kl.primary=kl[5];var Rl=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Rl.primary=Rl[5];var xl=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];xl.primary=xl[5];var Pl=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Pl.primary=Pl[5];var Ll=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ll.primary=Ll[5];var Ul=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Ul.primary=Ul[5];var Nl=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Nl.primary=Nl[5];var Dl=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Dl.primary=Dl[5];var jl=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];jl.primary=jl[5];var Ol=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Ol.primary=Ol[5];var Ml=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ml.primary=Ml[5];var Bl=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Bl.primary=Bl[5];var ql=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ql.primary=ql[5];var Wl=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Wl.primary=Wl[5];function Gl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lF=Gl()?F.useLayoutEffect:F.useEffect;function gf(){return{...F}.useId}var sF=gf();function hf(o,t,a){const n=F.useRef({});return(!("value"in n.current)||a(n.current.condition,t))&&(n.current.value=o(),n.current.condition=t),n.current.value}var vf=ut.__commonJSMin((o=>{})),yf=ut.__commonJSMin(((o,t)=>{t.exports=vf()})),dF=yf(),uF=Number(F.version.split(".")[0]),bf=(o,t)=>{typeof o=="function"?o(t):typeof o=="object"&&o&&"current"in o&&(o.current=t)},wf=(...o)=>{const t=o.filter(Boolean);return t.length<=1?t[0]:a=>{o.forEach(n=>{bf(n,a)})}},Cf=(...o)=>hf(()=>wf(...o),o,(t,a)=>t.length!==a.length||t.every((n,l)=>n!==a[l]));function Af(o,t){if(!o)return!1;if(o.contains)return o.contains(t);let a=t;for(;a;){if(a===o)return!0;a=a.parentNode}return!1}var Hl="data-rc-order",Vl="data-rc-priority",If="rc-util-key",ii=new Map;function Kl({mark:o}={}){return o?o.startsWith("data-")?o:`data-${o}`:If}function ni(o){return o.attachTo?o.attachTo:document.querySelector("head")||document.body}function Ff(o){return o==="queue"?"prependQueue":o?"prepend":"append"}function li(o){return Array.from((ii.get(o)||o).children).filter(t=>t.tagName==="STYLE")}function $l(o,t={}){if(!Gl())return null;const{csp:a,prepend:n,priority:l=0}=t,d=Ff(n),u=d==="prependQueue",c=document.createElement("style");c.setAttribute(Hl,d),u&&l&&c.setAttribute(Vl,`${l}`),a?.nonce&&(c.nonce=a?.nonce),c.innerHTML=o;const g=ni(t),{firstChild:m}=g;if(n){if(u){const v=(t.styles||li(g)).filter(y=>{if(!["prepend","prependQueue"].includes(y.getAttribute(Hl)))return!1;const b=Number(y.getAttribute(Vl)||0);return l>=b});if(v.length)return g.insertBefore(c,v[v.length-1].nextSibling),c}g.insertBefore(c,m)}else g.appendChild(c);return c}function _f(o,t={}){let{styles:a}=t;return a||=li(ni(t)),a.find(n=>n.getAttribute(Kl(t))===o)}function Sf(o,t){const a=ii.get(o);if(!a||!Af(document,a)){const n=$l("",t),{parentNode:l}=n;ii.set(o,l),o.removeChild(n)}}function zf(o,t,a={}){const n=ni(a),l=li(n),d={...a,styles:l};Sf(n,d);const u=_f(t,d);if(u)return d.csp?.nonce&&u.nonce!==d.csp?.nonce&&(u.nonce=d.csp?.nonce),u.innerHTML!==o&&(u.innerHTML=o),u;const c=$l(o,d);return c.setAttribute(Kl(d),t),c}function Ql(o){return o?.getRootNode?.()}function Ef(o){return Ql(o)instanceof ShadowRoot}function Tf(o){return Ef(o)?Ql(o):null}var si={},kf=[],Rf=o=>{kf.push(o)};function xf(o,t){}function Pf(o,t){}function Lf(){si={}}function Zl(o,t,a){!t&&!si[a]&&(o(!1,a),si[a]=!0)}function qo(o,t){Zl(xf,o,t)}function Uf(o,t){Zl(Pf,o,t)}qo.preMessage=Rf,qo.resetWarned=Lf,qo.noteOnce=Uf;var Nf=ut.__commonJSMin(((o,t)=>{t.exports=d,t.exports.isMobile=d,t.exports.default=d;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function d(u){u||(u={});let c=u.ua;if(!c&&typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;let g=a.test(c)&&!n.test(c)||!!u.tablet&&l.test(c);return!g&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(g=!0),g}})),cF=ut.__toESM(Nf()),fF=`accept acceptCharset accessKey action allowFullScreen allowTransparency
2
2
  alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
3
3
  charSet checked classID className colSpan cols content contentEditable contextMenu
4
4
  controls coords crossOrigin data dateTime default defer dir disabled download draggable
@@ -0,0 +1,163 @@
1
+ __emailmaker__.define("static/core/8e97c82c.js",["require","exports","module","static/core/5dc34752.js","static/core/c948c45f.js","static/core/f399000c.js","static/core/abde5a43.js","static/core/c5edcfc7.js"],function(u,k,Y){const X=u("./5dc34752.js"),a=u("./c948c45f.js"),R=u("./f399000c.js"),c=u("./abde5a43.js"),b=u("./c5edcfc7.js");var S=["# Rows of an email",'You add rows to the open email with row.insertHtml. Send only rows: an optional <style em="styles"> with the @media rules for every em-mob-* class the rows use, then one or more <tr em="block">.','The document shell, TR em="group" and table.em-narrow-table already exist in the email: never send <html>, <head>, <body>, em="group" or em-narrow-table.',"Make the rows as wide as the email: take the width from document.getSettings (660 px when it is not set).","Design the rows freely and richly: backgrounds, cards, columns, images, buttons, dividers, footers. Write all copy yourself in the language of the user.","Images: use real https addresses; for an illustration without a source use https://placehold.co/WIDTHxHEIGHT with the real pixel size.","row.insertHtml checks the rows against the rules below and answers invalidMarkup with a list of problems: fix them and send the rows again.","The rules below come from the converter of whole emails; where they speak of a source email, read them as the design you make."].join(`
2
+ `),O=[`## EmailMaker document architecture (mandatory hierarchy)
3
+ Build from the outside in (ASCII tree):
4
+
5
+ BODY (reset padding/margin on body if needed)
6
+ └── TABLE cellpadding="0" cellspacing="0" border="0" width="100%" style="font-size: 1px; line-height: normal;" (full-width wrapper)
7
+ └── TR em="group"
8
+ └── TD align="center" (MUST hold the outer background color for the email or group)
9
+ └── TABLE class="em-narrow-table" (main content column, typically ~600px effective width)
10
+ └── TR em="block" (repeat per horizontal section)
11
+ └── TD (block padding/background live here)
12
+ └── TABLE = Layout Table (columns) — see below
13
+
14
+ - em="group": on the TR that wraps the main container. Multiple groups are allowed if the design has distinct full-width background bands.
15
+ - em-narrow-table: fixed-width email container. Do not put the global outer background on this table; keep it transparent so the outer background shows in side gutters. Apply outer letter background on the first TD inside the TR em="group".
16
+ - In <style em="styles">, .em-narrow-table MUST appear only inside this @media block (not as a global rule). The width values in the media query MUST match the email's actual width (NNNpx):
17
+ @media only screen and (max-device-width:NNNpx),only screen and (max-width:NNNpx) {
18
+ .em-narrow-table {
19
+ width: 100% !important;
20
+ max-width: NNNpx !important;
21
+ min-width: 320px !important;
22
+ }
23
+ }
24
+ Set NNN to the same pixel width as on the table.em-narrow-table element (max-width in its inline style, else min-width, else width; default 660px).
25
+ - Wrap table.em-narrow-table for Outlook/IE with conditional comments (same width W as the narrow table):
26
+ <!--[if (gte mso 9)|(IE)]>
27
+ <table cellpadding="0" cellspacing="0" border="0" width="W"><tr><td>
28
+ <![endif]-->
29
+ ... em-narrow-table ...
30
+ <!--[if (gte mso 9)|(IE)]>
31
+ </td></tr></table>
32
+ <![endif]-->
33
+ Place the open comment immediately before em-narrow-table and the close comment immediately after its closing </table> (typically inside tr em="group" > td align="center").
34
+ - Inside the same @media block, declare a CSS rule for **every** em-mob-* class that appears in the HTML body (only classes actually used). Typical patterns:
35
+ - .em-mob-wrap { display: block!important; }
36
+ - .em-mob-wrap.em-mob-wrap-cancel { display: table-cell!important; } when em-mob-wrap-cancel is used
37
+ - .em-mob-width-100perc { width: 100%!important; max-width: 100%!important; }
38
+ - .em-mob-height-{N}px { height: Npx!important; }
39
+ - .em-mob-padding_{left|right|top|bottom}-{N} { padding-*: Npx!important; }
40
+ - .em-mob-text_align-{left|center|right}, .em-mob-table_align-{left|center|right}
41
+ - .em-mob-width-auto, .em-mob-font_size-{N}px, .em-mob-line_height-{N}px as needed
42
+ - Do not put em-mob-* rules outside this @media block. Do not reference em-mob-* classes in CSS without matching rules in this block.
43
+ - em="block": one block = one visual horizontal strip (one inner layout table with exactly one tr). If sections stack header, hero, body, footer in one table row, split into separate em="block" rows. NEVER nest a tr em="block" inside another tr em="block" or inside an extra wrapper table.
44
+ - Layout table (inside every block): Required even for a single full-width column. The TABLE that is the direct child of TR[em="block"] > TD must:
45
+ - NOT have a width attribute and NOT use style="width:..." on that table.
46
+ - MUST use class="em-mob-width-100perc" and cellpadding="0" cellspacing="0" border="0".
47
+ - MUST be the DIRECT child of the TD inside TR[em="block"]. Do not wrap it in another table.
48
+ - Column cells: use td width="NNN" class="em-mob-wrap em-mob-width-100perc". Every em-mob-wrap column must have an explicit width attribute.
49
+ - **No nested em-mob-wrap:** em-mob-wrap belongs only on layout **column** TDs inside the layout table row. Forbidden: block TD with class em-mob-wrap; forbidden: an extra wrapper table whose sole cell is td.em-mob-wrap wrapping the real layout table (block TD → layout table → column TDs with em-mob-wrap — never block TD → table → td.em-mob-wrap → layout table → td.em-mob-wrap).
50
+ - **No horizontal padding on the column TDs of a multi-column row:** when the layout row holds two or more content columns, do not set padding-left, padding-right, or any padding shorthand that adds left/right inset on those cells (invalid: td.em-mob-wrap style="padding: 0 0 0 32px") — the gap TD carries the space between them. Horizontal inset inside such a column belongs on the **inner td** of each em="atom". A **single** column TD that carries a card box is the exception, see "Card blocks". Block TD (parent of the layout table) may still use horizontal padding for the whole section; gap TDs stay padding-free aside from height/spacing classes.
51
+ - em="atom": every final content unit (text block, image, button) sits in its own wrapper: table width="100%" cellpadding="0" cellspacing="0" border="0" em="atom" with **exactly one** tr and **exactly one** td inside that table (single-row atom only). Forbidden: two or more tr inside the same table em="atom" (e.g. nav links as multiple rows in one atom). For multiple items in one column, use **separate** atom tables stacked vertically (each with its own single tr/td). Never put a naked img directly in the layout table — wrap images in an atom.
52
+ - Text atoms: put the visible copy inside an inner DIV (see "Text atoms" under Typography). Do not place font-size, line-height, font-family, color, font-weight, letter-spacing, or text-align on the atom TD.
53
+
54
+ Forbidden chain: TR[em="block"] > TD directly containing TABLE[em="atom"] without a layout table in between. Always: block TD → layout table → column TD(s) → atom(s).`,`## Card blocks
55
+ A block is often a card: an outer gap around it, and inside a box with its own background colour, background image, border-radius and inner padding. Build it like this:
56
+ - **Block TD** carries only the outer gap — vertical padding, plus horizontal padding if the source has one. No card background or radius here.
57
+ - **Layout table** as usual, class="em-mob-width-100perc", direct child of the block TD.
58
+ - **Its single column TD** carries the card box: bgcolor, background image, border-radius, inner padding. This is the one place a column TD may hold left/right padding.
59
+ - Atoms go inside that column TD. A card needing two or more columns gets a **nested** layout table inside the card, with its own column and gap TDs.
60
+ Never drop the card box when a block turns out to be multi-column: background, background image and radius belong to the block whether it has one column or three.`,`## Atom granularity
61
+ An atom is the unit the user edits, moves and deletes.
62
+ - **Everything stacked vertically is its own atom:** a heading, each paragraph, each list item, an image, a button, a divider. Never wrap a vertical stack (a product card, a list, a footer column) into one atom.
63
+ - **A row of like small items on one line is one atom** with an inner table: social icons, a pair of logos, a rating scale.
64
+ - **Content outside an atom does not exist.** Any visible text, image or link inside TR em="block" sits inside a table em="atom". Gap TDs holding only &nbsp; are not content.`,`## Multi-column rows and gap columns (critical)
65
+ When a block has two or more columns, insert a gap td between every pair of content columns:
66
+ td width="{gap}" class="em-mob-wrap em-mob-height-{GAP}px" with &nbsp;
67
+ If columns touch (0px gap), still output:
68
+ td width="0" class="em-mob-wrap em-mob-height-0px" with &nbsp;
69
+ Do not simulate horizontal gaps only with padding on content columns when a gap column should carry it. For multi-column blocks, avoid em-mob-padding_bottom on content columns when a non-zero gap column handles mobile spacing (gap column height class provides vertical spacing when columns stack).
70
+
71
+ ### Column order and dir
72
+ **The desktop column order is not negotiable:** on desktop columns appear in the same order as in the source. Swapping them for a nicer mobile stack mirrors the block and reads as a broken letter. When DOM order must differ from desktop order (to choose which column stacks on top), restore the desktop with dir — never by leaving the columns swapped.
73
+ - Normally dir="rtl" goes on the **block TD**, with dir="ltr" on each content column.
74
+ - Inside a card the block TD is taken by the outer gap, so there dir="rtl" goes on the layout table of that row, again with dir="ltr" on each content column and on the gap TD.
75
+
76
+ ### Worked case: text left + image-only right
77
+ The common reason to reorder the DOM. Put the **image** in the first content td and the **text** in the second, so the image stacks on top on mobile, and restore the desktop order with dir as described above (dir="rtl" on the block TD, dir="ltr" on both content tds, gap td unchanged). Do not use this when both columns hold substantial text — only for a text + image-only pair. Never put dir="rtl" on the layout TR: many clients mishandle direction on a row.`,`## Typography and fonts
78
+ ### Text atoms (mandatory inner DIV)
79
+ - For every em="atom" that carries body copy, headings, captions, lists, or rich text: wrap the content in a DIV. The use of <p> and <h1>-<h6> tags is STRICTLY FORBIDDEN. Only <div> tags are allowed for text elements. Put font-size, line-height, color, font-weight, letter-spacing, direction, and mso-line-height-alt in the DIV inline style. Do NOT use text-align on the DIV. Instead, use the align attribute on the parent TD (the atom's inner TD) to control text alignment. Supply font-family via inline style for web-safe stacks, or via class="em-font-..." when the source uses a non-standard face (see Font stacks). Match EmailMaker reference HTML (typography on DIV, not on the atom TD).
80
+ - **Paragraph splitting:** If the source HTML contains multiple paragraphs (e.g., multiple <p> or <div> elements inside a single text block), they MUST be split during conversion. Each paragraph MUST be wrapped in its own separate em="atom" table, stacked vertically. Do NOT combine multiple paragraphs into a single atom. Any vertical spacing (like margin-bottom on the original <p>) MUST be converted to padding-bottom on the inner TD of that specific atom.
81
+ - The atom's inner TD must not duplicate typographic properties (font-size, color, etc.). The TD MUST hold the align attribute (e.g. align="center") for text alignment, and may hold other **layout-only** styles: padding-* (including padding-left/right for inset within the column — use here, not on em-mob-wrap column TDs), valign, width.
82
+ - Inline links/spans inside the typography DIV are fine; keep the outer wrapper as DIV with the base type styles.
83
+
84
+ ### Font stacks
85
+ - **Web-safe / standard fonts** (Arial, Helvetica, Times New Roman, Verdana, Georgia, Tahoma, Courier New, sans-serif, serif): put **font-family in the typography DIV inline style** (e.g. style="font-family:Arial,sans-serif;font-size:14px;line-height:20px;color:#333333;"). Do **not** use generic em-font-* tokens such as em-font-sans-serif for these.
86
+ - **Custom faces used by the source** (a web font the source loads through a stylesheet link, or a non-web-safe family name in its font-family): use EmailMaker **em-font-***:
87
+ - In head: link rel="stylesheet" with em-class="em-font-{Name}" pointing at the same stylesheet URL the source used.
88
+ - In style em="styles": matching .em-font-{Name} { font-family: ... } rules, keeping the fallback chain the source declared.
89
+ - On typography DIVs: class="em-font-{Name}" for copy in that face; keep font-size, line-height, color, etc. in inline style on the same DIV (but NOT text-align). Do **not** put the custom family name in inline font-family when the class supplies it.
90
+ - Forbidden: div with class="em-font-sans-serif" and only font-size/color in style — use inline font-family for standard stacks instead.
91
+ - Never put non-web-safe raw font names in inline font-family on DIVs (Outlook breaks); custom faces go through em-font-* + head link + em="styles" only.`,`## Buttons
92
+ - By default, buttons MUST be converted WITHOUT VML. The standard button structure is based on a table cell with background and border-radius, containing an <a> tag:
93
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" class="em-mob-width-100perc" em="atom">
94
+ <tr>
95
+ <td style="padding: 10px 0;">
96
+ <table cellpadding="0" cellspacing="0" border="0" width="200" class="em-mob-width-100perc">
97
+ <tr>
98
+ <td align="center" valign="middle" height="41" bgcolor="#1C52DC" style="height: 41px; background-color: #1C52DC; border-radius: 5px;">
99
+ <a href="URL" target="_blank" style="display: block; font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #FFFFFF; font-size: 16px; line-height: 41px; text-decoration: none; white-space: nowrap;">
100
+ Button Label
101
+ </a>
102
+ </td>
103
+ </tr>
104
+ </table>
105
+ </td>
106
+ </tr>
107
+ </table>
108
+ - The background color, height, and border-radius MUST be applied to the <td> that directly wraps the <a> tag.
109
+ - The <a> tag MUST have display: block, text-decoration: none, and its line-height MUST match the height of the button.
110
+ - Do NOT use the bulletproof VML (<v:roundrect>) structure by default during conversion. The VML structure is only applied later by the editor's specific settings if the user explicitly enables "Outlook rounding".`,`## Repeated elements
111
+ Cells of one row or items of one list that play the same role are identical in everything except their text, link and image: same attributes, same set of CSS properties, same structure. A different colour on an accent item is design; a property present on the first items and missing on the last is a slip. Output every item of a repeating group in full however long the row is — the fifth cell gets the same attributes as the first.`,`## CSS and layout prohibitions
112
+ - No flexbox/grid for layout. Table-based layout only.
113
+ - No margin on content elements (no margin on div/img/table/td). The ONLY exception is margin: 0 auto; strictly for centering tables.
114
+ - No overflow properties.
115
+ - **Never put padding on a TABLE, a TR or a typography DIV.** Outlook's Word engine ignores padding on a table and the spacing silently disappears. Spacing lives on TDs.
116
+ - No colspan / rowspan — use nested tables instead.
117
+ - Do not use border-collapse: collapse; on tables. It MUST be removed from all tables.
118
+ - Do not use align="left" or align="right" on TABLE for layout; use patterns compatible with EmailMaker (e.g. em-mob-table_align-center for centering).
119
+ - Avoid padding on **typography** divs for vertical rhythm when the same gap can live on the atom TD (or block TD); prefer padding on those TDs or spacer rows/divs with &nbsp; for typography-free spacers.`,`## Spacing discipline
120
+ - Encode vertical space with padding on the relevant td (block TD, or inner td inside em="atom").
121
+ - Encode horizontal inset within a content column with padding on **atom** inner td only; never with left/right padding on a column td of a multi-column row (a single column TD carrying a card box is the exception).
122
+ - Spacer div pattern when needed: div style height Npx; line-height Npx; font-size 1px; with &nbsp;
123
+ - Transparent gap between colored sections can use a dedicated spacer row tr em="block" / td height="N" with matching bgcolor if required.`,`## Snippet: single-column block (structure only, not literal pixels)
124
+ <tr em="block">
125
+ <td style="padding: 20px 40px;" bgcolor="#FFFFFF">
126
+ <table class="em-mob-width-100perc" cellpadding="0" cellspacing="0" border="0">
127
+ <tr>
128
+ <td width="520" class="em-mob-wrap em-mob-width-100perc">
129
+ <table width="100%" cellpadding="0" cellspacing="0" border="0" em="atom">
130
+ <tr><td style="padding-bottom:12px;"><div style="font-family:Arial,sans-serif;font-size:14px;line-height:20px;color:#333333;">Text</div></td></tr>
131
+ </table>
132
+ </td>
133
+ </tr>
134
+ </table>
135
+ </td>
136
+ </tr>`,`## Snippet: two columns with mandatory gap
137
+ <tr em="block">
138
+ <td style="padding: 20px 40px;">
139
+ <table class="em-mob-width-100perc" cellpadding="0" cellspacing="0" border="0">
140
+ <tr>
141
+ <td width="250" valign="top" class="em-mob-wrap em-mob-width-100perc">... atom ...</td>
142
+ <td width="20" class="em-mob-wrap em-mob-height-20px">&nbsp;</td>
143
+ <td width="250" valign="top" class="em-mob-wrap em-mob-width-100perc">... atom ...</td>
144
+ </tr>
145
+ </table>
146
+ </td>
147
+ </tr>`,`## Snippet: text left + image-only right (dir for mobile stack; image first in DOM, gap, then text)
148
+ <tr em="block">
149
+ <td dir="rtl" style="padding: 20px 40px;">
150
+ <table class="em-mob-width-100perc" cellpadding="0" cellspacing="0" border="0">
151
+ <tr>
152
+ <td width="250" valign="top" class="em-mob-wrap em-mob-width-100perc" dir="ltr">... image atom ...</td>
153
+ <td width="20" class="em-mob-wrap em-mob-height-20px">&nbsp;</td>
154
+ <td width="250" valign="top" class="em-mob-wrap em-mob-width-100perc" dir="ltr">... text atom ...</td>
155
+ </tr>
156
+ </table>
157
+ </td>
158
+ </tr>`,`## Visual styles (backgrounds, borders, radius)
159
+ - Apply background-color, borders, box-shadow, border-radius on td per EmailMaker rules — not on table/tr for ownership of the visual box. Gradients: also set a solid background-color fallback (average of gradient) on the same td.`],A=/\bEmailMaker\b/g;function F(){return[S,...O].join(`
160
+
161
+ `).replace(A,"editor")}var T={text:e=>a.Text_default(e),header:e=>a.Header_default(e),image:()=>a.image,button:e=>a.Button_default(e),spacer:()=>a.Spacer_default,divider:()=>a.Divider_default,"list-ul":e=>a.ListUl_default(e),"list-ol":e=>a.ListOl_default(e),video:()=>a.video},J=Object.keys(T);function B(e,t){return a.isPlanLocked(e,a.getAtomPlanFeature(t))?void 0:{name:t,className:"",html:T[t](a.agentTranslator(e))}}function v(e){return e.flatMap(t=>{const o=v(t.children??[]),n=a.publicElementKind(t.type);return n==="none"?o:[{element:t.element,kind:n,...t.text?{text:t.text}:{},...o.length?{children:o}:{}}]})}var j=50,C=200,x=120;function D(e,t){return t===""?!e:(e??"").toLowerCase().includes(t.toLowerCase())}function L(e,{kind:t,textContains:o,where:n}){return t!==void 0&&a.publicElementKind(e.type)!==t||o!==void 0&&!D(e.text,o)?!1:Object.entries(n??{}).every(([r,i])=>typeof i!="string"||e.attrs!==void 0&&r in e.attrs&&D(e.attrs[r],i))}function U(e){const t=e.text&&e.text.length>x?`${e.text.slice(0,x)}…`:e.text;return{element:e.element,kind:a.publicElementKind(e.type),...t?{text:t}:{},...e.attrs}}function m(e,t){return a.askCanvasElement(e,t)}function h(e,t){return a.readOnlyRefusal(e)??a.askCanvasElement(e,t)}function N(e,t,o){return o.aborted?a.cancelledError():h(e,t)}function g(e,t,o,n){return(n.aborted?void 0:a.changedDocumentRefusal(e,t))??N(e,o,n)}function H(e){return"textReplacer"in e?a.err("invalidArgs",'"textReplacer" is written into the markup as it is; insert a merge variable with element.insertVariable.'):c.unsafeUrlRefusal(e)??c.fontNameRefusal(e)}async function z(e,t){const o=await b.readProjectBlocks(e);if(!o)return a.blocksNotLoaded();const n=o.find(i=>String(i.id)===t);if(!n)return a.err("notFound",`There is no block "${t}" in the project; take an id from block.list.`);const r=await b.projectBlockHtml(e,n);return r===void 0?a.err("unavailable",R.waitsForWrite(n)?"The block is being saved right now; try again in a moment.":"The block has no markup to insert; pick another one."):{html:r,type:"project",name:n.title??"",catalogBlock:n,project:n.project}}async function V(e,t){const o=await b.galleryBlockList(e);if(a.isResult(o))return o;const n=o.find(i=>String(i.id)===t);if(!n)return a.err("notFound",`There is no block "${t}" in the gallery; take an id from block.list with source "gallery".`);const r=await b.projectBlockHtml(e,n);return r===void 0?a.err("unavailable","The markup of the block could not be loaded."):{html:r,type:"common",name:n.title??"",catalogBlock:{...n,html:r},project:a.getCurrentProjectId(e)}}var P={1:{name:"column-one",html:a.column_1_default},2:{name:"column-two-50",html:a.column_2_50_default},"1:2":{name:"column-two-33",html:a.column_2_33_default},"2:1":{name:"column-two-66",html:a.column_2_66_default},3:{name:"column-three",html:a.column_3_default},4:{name:"column-four",html:a.column_4_default}},f="agent-row",W=25;async function I(e){const t=await m(e,{op:"tree",depth:1}),o=(t.ok?t.value.nodes.filter(n=>n.type==="structure"):[]).at(-1);return o?{element:o.element,place:"after"}:void 0}function _(e){return e.flatMap(t=>t.type==="column"||t.type==="floatBlock"?[t.element]:_(t.children??[]))}async function $(e,t){const o=await m(e,{op:"tree",root:t,depth:2});return o.ok?_(o.value.nodes):[]}function G(e){return{"element.delete":{precheck:()=>a.readOnlyRefusal(e),consent:a.elementConsent(e,({__:t},o,{kind:n,text:r})=>({title:t("Delete this element from the email"),...a.detailsOf(n,r)}))}}}function K(e){return{"element.getTree":async({root:t,depth:o})=>{const n=await m(e,{op:"tree",root:t,depth:o});if(!n.ok)return n;const r=n.value;return{nodes:v(r.nodes),truncated:r.truncated}},"element.find":async t=>{const o=await m(e,{op:"find",root:t.inside});if(!o.ok)return o;const{nodes:n,truncated:r}=o.value,i=n.filter(s=>a.publicElementKind(s.type)!=="none"&&L(s,t)),l=Math.min(Math.max(Math.round(t.limit??j),1),C);return{matches:i.slice(0,l).map(U),total:i.length,...r?{truncated:r}:{}}},"text.replace":({find:t,replace:o,matchCase:n,wholeWord:r,inside:i})=>h(e,{op:"replaceText",find:t,replace:o,matchCase:n,wholeWord:r,root:i}),"element.get":async({element:t})=>{const o=await m(e,{op:"get",element:t});if(!o.ok)return o;const{type:n,...r}=o.value;return{...r,kind:a.publicElementKind(n)}},"element.select":async({element:t})=>{const o=await m(e,{op:"select",element:t});return o.ok?void 0:o},"ui.highlight":async({element:t,durationMs:o})=>{const n=await m(e,{op:"highlight",element:t,durationMs:o});return n.ok?void 0:n},"element.setProps":async({element:t,props:o},n)=>H(o)??(a.isReadOnly(e)?a.readOnlyError():await c.closedFieldRefusal(e,t,o))??N(e,{op:"setProps",element:t,props:o},n.signal),"element.setText":({element:t,text:o})=>h(e,{op:"setText",element:t,text:o}),"row.insert":async({columns:t,at:o},n)=>{if(a.isReadOnly(e))return a.readOnlyError();const r=a.openDocument(e),i=P[t],l=await g(e,r,{op:"insertBlock",block:await a.prepareBlockInsert(e,{html:i.html,type:void 0,name:i.name,catalogBlock:{id:i.name,title:i.name,type:"structure"},project:a.getCurrentProjectId(e)}),at:o??await I(e)},n.signal);if(!l.ok)return l;const s=l.value?.element;return s?{element:s,columns:await $(e,s)}:void 0},"document.getMarkupRules":()=>F(),"row.insertHtml":async({html:t,at:o},n)=>{if(a.isReadOnly(e))return a.readOnlyError();const r=a.openDocument(e),{rows:i,findings:l,hasVariables:s,hasPreheader:q}=c.checkRowsMarkup(t),E=(s?a.featureRefusal(e,"variables","merge variables"):void 0)??c.preheaderRefusal(e,q);if(E)return E;if(l.length>0){const w=l.slice(0,W).map(d=>`- ${d.rule} at ${d.where}: ${d.detail}`).join(`
162
+ `);return a.err("invalidMarkup",`The rows break the markup rules in ${l.length} place(s); nothing was inserted. Fix and send again:
163
+ ${w}`)}const p=[];let M=o??await I(e);for(const w of i){if(n.signal.aborted)return a.err("aborted","The call was cancelled; the remaining rows were not inserted.");const d=await g(e,r,{op:"insertBlock",block:await a.prepareBlockInsert(e,{html:w,type:void 0,name:f,catalogBlock:{id:f,title:f,type:"structure"},project:a.getCurrentProjectId(e)}),at:M},n.signal);if(d.ok===!1)return p.length?a.err("partialInsert",`Inserted ${p.length} of ${i.length} rows (${p.join(", ")}); they stay in the document, in one undo step. The next row failed with ${d.error.code}: ${d.error.message}`):d;const y=d.value?.element;y&&(p.push(y),M={element:y,place:"after"})}return{rows:p}},"element.insert":async({kind:t,at:o},n)=>{if(a.isReadOnly(e))return a.readOnlyError();const r=B(e,t);if(!r)return a.planRefusal(`The "${t}" element is not available on the current plan.`);const i=a.openDocument(e),{atomHTML:l,name:s}=await a.prepareAtomInsert(e,r);return g(e,i,{op:"insertAtom",atom:{atomHTML:l??"",name:s},at:o},n.signal)},"block.insert":async({block:t,source:o,at:n},r)=>{if(a.isReadOnly(e))return a.readOnlyError();const i=a.openDocument(e),l=await(o==="gallery"?V(e,t):z(e,t));if(a.isResult(l))return l;const s=c.preheaderRefusal(e,c.holdsPreheader(l.html));return s||g(e,i,{op:"insertBlock",block:await a.prepareBlockInsert(e,l),at:n},r.signal)},"element.delete":async({element:t})=>{const o=await h(e,{op:"delete",element:t});return o.ok?void 0:o},"element.clone":({element:t})=>h(e,{op:"clone",element:t}),"element.move":({element:t,direction:o})=>h(e,{op:"move",element:t,direction:o})}}k.agentElementGates=G,k.agentElementHandlers=K});
@@ -0,0 +1 @@
1
+ __emailmaker__.define("static/core/8eea6488.js",["require","exports","module","static/core/5dc34752.js","static/core/c948c45f.js","static/core/322d3e9f.js"],function(m,f,j){const R=m("./5dc34752.js"),r=m("./c948c45f.js"),g=m("./322d3e9f.js");var v={link_check:"link checks",image_check:"image checks",spam_check:"spam checks"},S=t=>r.err("limitExceeded",`The plan limit for ${v[t]} is used up.`),p={ignoreEnabledFlag:!0};function w(t,e){switch(e.reason){case"noStore":return r.err("unavailable","Checks need the editor interface.");case"noDocument":return r.noDocument();case"notSaved":return r.err("unavailable","Save the email first: checks run on a saved email.");case"typeLimit":case"planLimit":case"usageLimit":return S(t);default:{const s=(e.reason==="failed"?e.error:void 0)?.data?.message;return r.err("internal",typeof s=="string"&&s?s:`The ${v[t]} service failed.`)}}}var _=(t,e)=>(e==="spam_check"?r.standaloneRefusal(t,"Spam checks"):void 0)??r.freePlanRefusal(t,"Checks are not available on the current plan.");async function u(t,e){const s=_(t,e);if(s)return s;const a=await g.getOptimiseChecks(t).run(e,p);return a.ok===!1?w(e,a):a}async function C(t,e){const s=_(t,e);if(s)return s;const a=await g.getOptimiseChecks(t).preflight(e,p);return a.ok===!1?w(e,a):a}function y(t){const e=new Map,s=(a,l)=>({precheck:async()=>{const n=C(t,a);e.set(a,n);const i=await n;return i.ok===!1?i:void 0},consent:async()=>{const n=r.agentTranslator(t),{__:i}=n,{title:h,what:k}=l(n),o=e.get(a)??C(t,a);e.delete(a);const c=await o.catch(()=>{}),b=c?.ok?c.remaining:void 0;return{title:h,details:[{label:i("What will be checked"),value:k},...b===void 0?[]:[{label:i("Plan limit"),value:r.sprintf(i("Uses 1 check; %d left"),b)}]]}}});return{"check.links":s("link_check",({__:a})=>({title:a("Check the links in the email"),what:a("Every link of the email is opened over the network.")})),"check.images":s("image_check",({__:a})=>({title:a("Check the images in the email"),what:a("Every image of the email is loaded over the network.")})),"check.spam":s("spam_check",({__:a})=>({title:a("Check the email for spam"),what:a("The email as it is now is scored by a spam filter.")}))}}var d=t=>t===void 0?{}:{limitRemaining:t};function E(t){return{"check.links":async()=>{const e=await u(t,"link_check");if(e.ok===!1)return e;const{links:s,summary:a}=e.value;return{links:s.map(({linkId:l,url:n,text:i,status:h,statusCode:k,resolvedUrl:o,message:c})=>({id:l,url:n,text:i,status:h,statusCode:k,...o?{resolvedUrl:o}:{},...c?{message:c}:{}})),summary:a,...d(e.limitRemaining)}},"check.images":async()=>{const e=await u(t,"image_check");if(e.ok===!1)return e;const{images:s,summary:a,totalKb:l}=e.value;return{images:s.map(({imageId:n,url:i,status:h,statusCode:k,message:o,image:c})=>({id:n,url:i,status:h,statusCode:k,sizeKb:Math.round((c?.bytes??0)/1024),...c?.dimensions?{width:c.dimensions.width,height:c.dimensions.height}:{},...o?{message:o}:{}})),summary:a,totalKb:l,...d(e.limitRemaining)}},"check.spam":async()=>{const e=await u(t,"spam_check");if(e.ok===!1)return e;const{spamScore:s,baseSpamScore:a,report:l}=e.value;return{score:s??null,baseScore:a??null,report:Array.isArray(l)?l.map(({score:n,description:i})=>({score:n,description:i})):[],...d(e.limitRemaining)}}}}f.agentCheckGates=y,f.agentCheckHandlers=E});
@@ -0,0 +1 @@
1
+ __emailmaker__.define("static/core/9a4cfb0a.js",["require","exports","module","static/core/5dc34752.js","static/core/c948c45f.js","static/core/c5edcfc7.js"],function(i,u,h){const g=i("./5dc34752.js"),e=i("./c948c45f.js");i("./c5edcfc7.js");var c=()=>e.err("unavailable","The template gallery is not available in the plugin.");function m(t){return e.peekEmailDocuments(t)?.current()?e.isReadOnly(t)?e.readOnlyError():c():e.noDocument()}function d(t,l){return e.resolveEmailPort(t).readEmail(l).catch(()=>{})}var p=t=>e.err("notFound",`There is no template "${t}" in the gallery; take an id from gallery.listTemplates.`);function y(t){const l=new WeakMap,o=r=>{const a=l.get(r)??d(t,r.template);return l.set(r,a),a};return{"document.applyTemplate":{precheck:async r=>{const a=m(t);if(a)return a;const n=await o(r);return n===void 0||n?.is_template?void 0:p(r.template)},consent:async r=>{const{__:a}=e.agentTranslator(t),n=await o(r);return{title:a("Replace the email content with a gallery template"),...e.detailsOf({label:a("Template").trim(),value:e.clip(n?.title??"")})}}}}}function f(t){return{"gallery.listTemplates":async({page:l})=>c(),"document.applyTemplate":async({template:l},o)=>{const r=m(t);if(r)return r;const a=e.peekEmailDocuments(t),n=a?.current();if(!a||!n)return e.noDocument();const s=await d(t,l);return o.signal.aborted?e.cancelledError():e.isReadOnly(t)?e.readOnlyError():s===void 0?e.err("unavailable","The template could not be loaded."):s?.is_template?e.peekEmailDocuments(t)?.current()!==n?e.err("unavailable","The open document changed while the template was loading."):s.html?(e.replaceDocumentContent(n,a.history(),s.html,{undoable:!0}),e.ok()):e.err("unavailable","The template has no content."):p(l)},"project.getStyles":async()=>e.err("unavailable","Project styles are not available in the plugin.")}}u.agentGalleryGates=y,u.agentGalleryHandlers=f});
@@ -1,4 +1,4 @@
1
- __emailmaker__.define("static/core/65db94be.js",["require","exports","module","static/core/5dc34752.js","static/core/c1188df9.js"],function(g,$,L){const T=g("./5dc34752.js"),u=g("./c1188df9.js");function w(t,e){const d={bytes:0,hidden:0,byKind:{}};for(const n of e)if(!(n.finishedAt>t.end||n.finishedAt<t.start)){if(n.transferred===null){d.hidden+=1;continue}d.bytes+=n.transferred,d.byKind[n.kind]=(d.byKind[n.kind]??0)+n.transferred}return d}var y="core:module:";function v(t){const e=[...t].sort((n,r)=>n.start-r.start),d=[];return e.forEach(n=>{const r=d[d.length-1];if(r&&n.start<=r.end){r.end=Math.max(r.end,n.end);return}d.push({start:n.start,end:n.end})}),d}function A(t,e){const d=Math.max(0,t.end-t.start),n=v(e.map(r=>({start:Math.max(t.start,r.startedAt),end:Math.min(t.end,r.finishedAt)})).filter(r=>r.end>r.start)).reduce((r,a)=>r+(a.end-a.start),0);return{networkMs:n,quietMs:d-n}}function P(t){const e=new Map;t.forEach(n=>{if(!n.phase.startsWith(y))return;const r=n.phase.slice(12),a=r.lastIndexOf(":");if(a<=0)return;const s=r.slice(0,a),o=r.slice(a+1),i=e.get(s)??{};o==="ask"?(i.ask=n.at,n.parent&&(i.parent=n.parent)):o==="loaded"?i.loaded=n.at:o==="deps"?i.deps=n.at:o==="ready"&&(i.ready=n.at),e.set(s,i)});const d=[];return e.forEach((n,r)=>{if(n.ask===void 0||n.ready===void 0)return;const a=n.ask,s=n.ready,o=n.deps,i=n.loaded;d.push({id:r,parent:n.parent,askedAt:a,loadedAt:i,depsAt:o,readyAt:s,networkMs:i===void 0?0:i-a,waitingMs:o===void 0?0:o-(i??a),executionMs:o===void 0?0:s-o})}),d}function S(t){const e=new Map;t.forEach(a=>{if(a.parent===void 0)return;const s=e.get(a.parent)??[];s.push(a),e.set(a.parent,s)});let d=t.filter(a=>a.parent===void 0).reduce((a,s)=>a===void 0||s.readyAt>a.readyAt?s:a,void 0);const n=[],r=new Set;for(;d&&!r.has(d.id);)r.add(d.id),n.push(d),d=(e.get(d.id)??[]).reduce((a,s)=>a===void 0||s.readyAt>a.readyAt?s:a,void 0);return n}function E(t,e){const d=u.detectMount(t),n=u.requiredPhases(d),r=new Map;t.forEach(l=>{n.includes(l.phase)&&!r.has(l.phase)&&r.set(l.phase,l.at)});const a=[...r.entries()].sort((l,h)=>l[1]-h[1]),s=q(d),o=a.findIndex(([l])=>l===s),i=o===-1?a:a.slice(0,o+1);return i.slice(1).map(([l,h],m)=>{const[x,p]=i[m],f=A({start:p,end:h},e);return{from:x,to:l,startedAt:p,endedAt:h,durationMs:h-p,networkMs:f.networkMs,quietMs:f.quietMs}})}function q(t){return t==="headless"?u.PHASES.showEnd:u.PHASES.canvasSettled}function M(t,e){const d=t.find(n=>n.phase===e);return d?d.at:null}function j(t,e){return t===null?e:e===null?t:Math.max(t,e)}function z(t,e){const d=u.missingRequiredPhases(t),n=d.length===0,r=t.reduce((p,f)=>p===null||f.at<p?f.at:p,null),a=u.detectMount(t),s=M(t,u.PHASES.canvasPainted),o=a==="headless"?M(t,u.PHASES.showEnd):j(M(t,u.PHASES.canvasSettled),M(t,u.PHASES.editorVisible)),i=P(t),l=i.reduce((p,f)=>p+f.executionMs,0),h=r!==null&&n&&(a==="headless"||s!==null),m=a==="headless"?o:s,x=h&&m!==null?A({start:r,end:m},e):{networkMs:0,quietMs:0};return{startedAt:r,paintedAt:s,settledAt:o,totalMs:h&&s!==null?s-r:null,settledMs:h&&o!==null?o-r:null,settleGapMs:h&&o!==null&&s!==null?o-s:null,segments:h?E(t,e):[],complete:n,missingPhases:d,networkMs:x.networkMs,quietMs:x.quietMs,moduleExecutionMs:l,criticalPath:S(i),transferBeforeFrame:h&&r!==null&&m!==null?w({start:r,end:m},e):{bytes:0,hidden:0,byKind:{}}}}function c(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;")}function H(){return"dev"}function k(t,e){return{mode:H(),summary:z(t,e),marks:[...t],resources:[...e]}}function b(t){return t===null?"—":`${Math.round(t)} мс`}function _(t){return t==="dev"?"dev-сервер — AMD-ядро не работает, слой модулей пуст":t==="build"?"собранная версия":"режим неизвестен"}function R(t){const{summary:e}=t,d=e.complete?'<span class="ok">прогон полный</span>':'<span class="bad">прогон неполный — в сравнение не идёт</span>',n=e.missingPhases.length===0?"":`<p class="bad">Не хватает фаз: ${e.missingPhases.map(c).join(", ")}</p>`;return`
1
+ __emailmaker__.define("static/core/9d388494.js",["require","exports","module","static/core/5dc34752.js","static/core/c948c45f.js"],function(g,$,L){const T=g("./5dc34752.js"),u=g("./c948c45f.js");function w(t,e){const d={bytes:0,hidden:0,byKind:{}};for(const n of e)if(!(n.finishedAt>t.end||n.finishedAt<t.start)){if(n.transferred===null){d.hidden+=1;continue}d.bytes+=n.transferred,d.byKind[n.kind]=(d.byKind[n.kind]??0)+n.transferred}return d}var y="core:module:";function v(t){const e=[...t].sort((n,r)=>n.start-r.start),d=[];return e.forEach(n=>{const r=d[d.length-1];if(r&&n.start<=r.end){r.end=Math.max(r.end,n.end);return}d.push({start:n.start,end:n.end})}),d}function A(t,e){const d=Math.max(0,t.end-t.start),n=v(e.map(r=>({start:Math.max(t.start,r.startedAt),end:Math.min(t.end,r.finishedAt)})).filter(r=>r.end>r.start)).reduce((r,a)=>r+(a.end-a.start),0);return{networkMs:n,quietMs:d-n}}function P(t){const e=new Map;t.forEach(n=>{if(!n.phase.startsWith(y))return;const r=n.phase.slice(12),a=r.lastIndexOf(":");if(a<=0)return;const s=r.slice(0,a),o=r.slice(a+1),i=e.get(s)??{};o==="ask"?(i.ask=n.at,n.parent&&(i.parent=n.parent)):o==="loaded"?i.loaded=n.at:o==="deps"?i.deps=n.at:o==="ready"&&(i.ready=n.at),e.set(s,i)});const d=[];return e.forEach((n,r)=>{if(n.ask===void 0||n.ready===void 0)return;const a=n.ask,s=n.ready,o=n.deps,i=n.loaded;d.push({id:r,parent:n.parent,askedAt:a,loadedAt:i,depsAt:o,readyAt:s,networkMs:i===void 0?0:i-a,waitingMs:o===void 0?0:o-(i??a),executionMs:o===void 0?0:s-o})}),d}function S(t){const e=new Map;t.forEach(a=>{if(a.parent===void 0)return;const s=e.get(a.parent)??[];s.push(a),e.set(a.parent,s)});let d=t.filter(a=>a.parent===void 0).reduce((a,s)=>a===void 0||s.readyAt>a.readyAt?s:a,void 0);const n=[],r=new Set;for(;d&&!r.has(d.id);)r.add(d.id),n.push(d),d=(e.get(d.id)??[]).reduce((a,s)=>a===void 0||s.readyAt>a.readyAt?s:a,void 0);return n}function E(t,e){const d=u.detectMount(t),n=u.requiredPhases(d),r=new Map;t.forEach(l=>{n.includes(l.phase)&&!r.has(l.phase)&&r.set(l.phase,l.at)});const a=[...r.entries()].sort((l,h)=>l[1]-h[1]),s=q(d),o=a.findIndex(([l])=>l===s),i=o===-1?a:a.slice(0,o+1);return i.slice(1).map(([l,h],m)=>{const[x,p]=i[m],f=A({start:p,end:h},e);return{from:x,to:l,startedAt:p,endedAt:h,durationMs:h-p,networkMs:f.networkMs,quietMs:f.quietMs}})}function q(t){return t==="headless"?u.PHASES.showEnd:u.PHASES.canvasSettled}function M(t,e){const d=t.find(n=>n.phase===e);return d?d.at:null}function j(t,e){return t===null?e:e===null?t:Math.max(t,e)}function z(t,e){const d=u.missingRequiredPhases(t),n=d.length===0,r=t.reduce((p,f)=>p===null||f.at<p?f.at:p,null),a=u.detectMount(t),s=M(t,u.PHASES.canvasPainted),o=a==="headless"?M(t,u.PHASES.showEnd):j(M(t,u.PHASES.canvasSettled),M(t,u.PHASES.editorVisible)),i=P(t),l=i.reduce((p,f)=>p+f.executionMs,0),h=r!==null&&n&&(a==="headless"||s!==null),m=a==="headless"?o:s,x=h&&m!==null?A({start:r,end:m},e):{networkMs:0,quietMs:0};return{startedAt:r,paintedAt:s,settledAt:o,totalMs:h&&s!==null?s-r:null,settledMs:h&&o!==null?o-r:null,settleGapMs:h&&o!==null&&s!==null?o-s:null,segments:h?E(t,e):[],complete:n,missingPhases:d,networkMs:x.networkMs,quietMs:x.quietMs,moduleExecutionMs:l,criticalPath:S(i),transferBeforeFrame:h&&r!==null&&m!==null?w({start:r,end:m},e):{bytes:0,hidden:0,byKind:{}}}}function c(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;")}function H(){return"dev"}function k(t,e){return{mode:H(),summary:z(t,e),marks:[...t],resources:[...e]}}function b(t){return t===null?"—":`${Math.round(t)} мс`}function _(t){return t==="dev"?"dev-сервер — AMD-ядро не работает, слой модулей пуст":t==="build"?"собранная версия":"режим неизвестен"}function R(t){const{summary:e}=t,d=e.complete?'<span class="ok">прогон полный</span>':'<span class="bad">прогон неполный — в сравнение не идёт</span>',n=e.missingPhases.length===0?"":`<p class="bad">Не хватает фаз: ${e.missingPhases.map(c).join(", ")}</p>`;return`
2
2
  <header>
3
3
  <h1>Куда ушло время до показа письма</h1>
4
4
  <p class="mode">${c(_(t.mode))}</p>
@@ -7,4 +7,4 @@ Minimum version required to store current data is: `+h+`.
7
7
  `);let d=I(y,A,N),p=new t(s.getSymbolSize(y));return v(p,y),T(p),x(p,y),M(p,A,0),y>=7&&C(p,y),B(p,d),isNaN(f)&&(f=n.getBestMask(p,M.bind(null,p,A))),n.applyMask(f,p),M(p,A,f),{modules:p,version:y,errorCorrectionLevel:A,maskPattern:f,segments:N}}o.create=function(g,y){if(g===void 0||g==="")throw Error("No input text");let A=a.M,f,N;return y!==void 0&&(A=a.from(y.errorCorrectionLevel,a.M),f=E.from(y.version),N=n.from(y.maskPattern),y.toSJISFunc&&s.setToSJISFunction(y.toSJISFunc)),R(g,f,A,N)}})),$=P.s((o=>{function s(a){if(typeof a=="number"&&(a=a.toString()),typeof a!="string")throw Error("Color should be defined as hex string");let r=a.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw Error("Invalid hex color: "+a);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(e){return[e,e]}))),r.length===6&&r.push("F","F");let t=parseInt(r.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+r.slice(0,6).join("")}}o.getOptions=function(a){a||={},a.color||(a.color={});let r=a.margin===void 0||a.margin===null||a.margin<0?4:a.margin,t=a.width&&a.width>=21?a.width:void 0,e=a.scale||4;return{width:t,scale:t?4:e,margin:r,color:{dark:s(a.color.dark||"#000000ff"),light:s(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},o.getScale=function(a,r){return r.width&&r.width>=a+r.margin*2?r.width/(a+r.margin*2):r.scale},o.getImageWidth=function(a,r){let t=o.getScale(a,r);return Math.floor((a+r.margin*2)*t)},o.qrToImageData=function(a,r,t){let e=r.modules.size,i=r.modules.data,n=o.getScale(e,t),u=Math.floor((e+t.margin*2)*n),c=t.margin*n,E=[t.color.light,t.color.dark];for(let w=0;w<u;w++)for(let l=0;l<u;l++){let m=(w*u+l)*4,v=t.color.light;if(w>=c&&l>=c&&w<u-c&&l<u-c){let T=Math.floor((w-c)/n),x=Math.floor((l-c)/n);v=E[+!!i[T*e+x]]}a[m++]=v.r,a[m++]=v.g,a[m++]=v.b,a[m]=v.a}}})),Et=P.s((o=>{var s=$();function a(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||={},e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}function r(){try{return document.createElement("canvas")}catch{throw Error("You need to specify a canvas element")}}o.render=function(t,e,i){let n=i,u=e;n===void 0&&(!e||!e.getContext)&&(n=e,e=void 0),e||(u=r()),n=s.getOptions(n);let c=s.getImageWidth(t.modules.size,n),E=u.getContext("2d"),w=E.createImageData(c,c);return s.qrToImageData(w.data,t,n),a(E,u,c),E.putImageData(w,0,0),u},o.renderToDataURL=function(t,e,i){let n=i;n===void 0&&(!e||!e.getContext)&&(n=e,e=void 0),n||={};let u=o.render(t,e,n),c=n.type||"image/png",E=n.rendererOpts||{};return u.toDataURL(c,E.quality)}})),wt=P.s((o=>{var s=$();function a(e,i){let n=e.a/255,u=i+'="'+e.hex+'"';return n<1?u+" "+i+'-opacity="'+n.toFixed(2).slice(1)+'"':u}function r(e,i,n){let u=e+i;return n!==void 0&&(u+=" "+n),u}function t(e,i,n){let u="",c=0,E=!1,w=0;for(let l=0;l<e.length;l++){let m=Math.floor(l%i),v=Math.floor(l/i);!m&&!E&&(E=!0),e[l]?(w++,l>0&&m>0&&e[l-1]||(u+=E?r("M",m+n,.5+v+n):r("m",c,0),c=0,E=!1),m+1<i&&e[l+1]||(u+=r("h",w),w=0)):c++}return u}o.render=function(e,i,n){let u=s.getOptions(i),c=e.modules.size,E=e.modules.data,w=c+u.margin*2,l=u.color.light.a?"<path "+a(u.color.light,"fill")+' d="M0 0h'+w+"v"+w+'H0z"/>':"",m="<path "+a(u.color.dark,"stroke")+' d="'+t(E,c,u.margin)+'"/>',v='viewBox="0 0 '+w+" "+w+'"',T='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+v+' shape-rendering="crispEdges">'+l+m+`</svg>
8
8
  `;return typeof n=="function"&&n(null,T),T}})),yt=P.s((o=>{var s=tt(),a=vt(),r=Et(),t=wt();function e(i,n,u,c,E){let w=[].slice.call(arguments,1),l=w.length,m=typeof w[l-1]=="function";if(!m&&!s())throw Error("Callback required as last argument");if(m){if(l<2)throw Error("Too few arguments provided");l===2?(E=u,u=n,n=c=void 0):l===3&&(n.getContext&&E===void 0?(E=c,c=void 0):(E=c,c=u,u=n,n=void 0))}else{if(l<1)throw Error("Too few arguments provided");return l===1?(u=n,n=c=void 0):l===2&&!n.getContext&&(c=u,u=n,n=void 0),new Promise(function(v,T){try{v(i(a.create(u,c),n,c))}catch(x){T(x)}})}try{let v=a.create(u,c);E(null,i(v,n,c))}catch(v){E(v)}}o.create=a.create,o.toCanvas=e.bind(null,r.render),o.toDataURL=e.bind(null,r.renderToDataURL),o.toString=e.bind(null,function(i,n,u){return t.render(i,u)})})),At=yt();W.default=At});
9
9
 
10
- __emailmaker__.define("static/core/d4b8f1e0.js",["require","exports","module","static/core/5dc34752.js","static/core/d7e61b4c.js","static/core/e6f6edff.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(m,Z,ve){const G=m("./5dc34752.js"),B=m("./d7e61b4c.js"),y=m("./e6f6edff.js");let o=m("react"),D=G.__toESM(o,1);o=G.__toESM(o);let r=m("react/jsx-runtime"),c=m("__delivery__/libs"),N=m("vite/preload-helper");var S=({size:C=24,color:R="currentColor",...s})=>D.createElement("svg",{viewBox:"0 0 24 24",width:C,height:C,stroke:R,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},D.createElement("path",{d:"m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6"}));S.displayName="Expand01";var O=B.or(),t={"em-filemanager":"em-filemanager",emFilemanager:"em-filemanager",root:"root",controls:"controls",segmentedControl:"segmentedControl",sizeRow:"sizeRow",sizeRowLabel:"sizeRowLabel",sizeInputNumber:"sizeInputNumber",sizeSuffix:"sizeSuffix",colorGrid:"colorGrid",colorCell:"colorCell",colorCellLabel:"colorCellLabel",colorPickerFull:"colorPickerFull",bgExtras:"bgExtras",bgWarning:"bgWarning",previewSection:"previewSection",previewTitle:"previewTitle",previewWrap:"previewWrap",scanLine:"scanLine",scanLineBarcode:"scanLineBarcode",previewWrapBarcode:"previewWrapBarcode",previewCanvas:"previewCanvas",previewCanvasBarcode:"previewCanvasBarcode",actions:"actions"},z=80,F=600,ee=200,E=24,q=130,ae=60,re=280,te=72;function oe(){return typeof window>"u"?2:Math.min(3,Math.max(2,window.devicePixelRatio||2))}var le=({customRequest:C,state:R,setState:s})=>{let{t:l}=B.Rn(),{options:ie}=B.V(),Q=ie?.config?.iconStrokeWidth??1.75,V=(0,o.useRef)(null),{mode:d,rawText:x,foregroundHex:p,backgroundHex:f,transparentBackground:g,qrSidePx:j,barcodeBarHeightPx:k}=R,ne=(0,o.useCallback)(e=>s(a=>({...a,mode:e})),[s]),se=(0,o.useCallback)(e=>s(a=>({...a,rawText:e})),[s]),ce=(0,o.useCallback)(e=>s(a=>({...a,foregroundHex:e})),[s]),de=(0,o.useCallback)(e=>s(a=>({...a,backgroundHex:e})),[s]),he=(0,o.useCallback)(e=>s(a=>({...a,transparentBackground:e})),[s]),ue=(0,o.useCallback)(e=>s(a=>({...a,qrSidePx:e})),[s]),me=(0,o.useCallback)(e=>s(a=>({...a,barcodeBarHeightPx:e})),[s]),[T,xe]=(0,o.useState)(x),[$,b]=(0,o.useState)(null),[L,U]=(0,o.useState)(!1),_=(0,o.useMemo)(()=>(0,O.debounce)(e=>xe(e),300),[]);(0,o.useEffect)(()=>(_(x),()=>{_.cancel()}),[x,_]);let M=g?"#00000000":f,J=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./be880f91.js")).then(i=>y.l(i.default)),void 0,{}.url)).default,h=a.trim(),u=Math.min(re,Math.max(z,j));if(!h){e.width=u,e.height=u;let i=e.getContext("2d");i&&i.clearRect(0,0,e.width,e.height);return}e.width=u,e.height=u,await n.toCanvas(e,h,{width:u,margin:2,color:{dark:p,light:M}})},[p,M,j]),K=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./9f7f5230.js")).then(v=>y.l(v.default)),void 0,{}.url)).default,h=a.trim(),u=g?"rgba(0,0,0,0)":f,i=Math.min(te,Math.max(E,k)),W=Math.max(1,Math.round(i/42)),H=Math.max(4,Math.round(i*.07)),I=Math.max(10,Math.round(i*.15));if(!h){e.width=Math.round(i*4),e.height=Math.round(i*1.65);let v=e.getContext("2d");v&&v.clearRect(0,0,e.width,e.height);return}e.width=Math.round(i*4.2),e.height=Math.round(i*1.65),n(e,h,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:H,width:W,height:i,fontSize:I})},[p,f,g,k]);(0,o.useEffect)(()=>{let e=V.current;if(!e)return;let a=!1;return(async()=>{try{d==="qr"?await J(e,T):await K(e,T),a||b(null)}catch(n){let h=n instanceof Error?n.message:String(n);if(!a){b(d==="barcode"?l("Barcode generation failed"):h);let u=e.getContext("2d");u&&u.clearRect(0,0,e.width,e.height)}}})(),()=>{a=!0}},[d,T,K,J,l]);let X=(0,o.useCallback)(async()=>{_.flush();let e=x.trim();if(!e)throw Error(l("Enter text or URL to preview"));let a=oe();if(d==="qr"){let w=Math.round(Math.min(F,Math.max(z,j))*a),P=document.createElement("canvas");P.width=w,P.height=w,await(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./be880f91.js")).then(A=>y.l(A.default)),void 0,{}.url)).default.toCanvas(P,e,{width:w,margin:2,color:{dark:p,light:M}});let Y=await new Promise(A=>P.toBlob(A,"image/png"));if(!Y)throw Error("PNG export failed");return Y}let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./9f7f5230.js")).then(w=>y.l(w.default)),void 0,{}.url)).default,h=document.createElement("canvas"),u=g?"rgba(0,0,0,0)":f,i=Math.min(q,Math.max(E,k)),W=Math.max(6,Math.round(i*.1)),H=Math.max(2,Math.round(i/36)),I=Math.max(12,Math.round(i*.16));n(h,e,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:Math.round(W*a),width:Math.round(H*a),height:Math.round(i*a),fontSize:Math.round(I*a)});let v=await new Promise(w=>h.toBlob(w,"image/png"));if(!v)throw Error("PNG export failed");return v},[d,x,p,M,f,g,j,k,_,l]),pe=(0,o.useCallback)(async()=>{if(!L&&x.trim()){U(!0);try{let e;try{e=await X()}catch(n){let h=n instanceof Error?n.message:String(n);b(h);return}let a=new File([e],`${d==="qr"?"qr-code":"barcode"}-${Date.now()}.png`,{type:"image/png",lastModified:Date.now()});await Promise.resolve(C({file:a}))}finally{U(!1)}}},[C,X,d,x,L]),ge=!!x.trim()&&!$;return(0,r.jsx)("div",{className:t.root,children:(0,r.jsxs)("div",{className:t.controls,children:[(0,r.jsx)(c.antd$Segmented,{block:!0,className:t.segmentedControl,value:d,onChange:e=>{ne(e),b(null)},options:[{label:l("QR code"),value:"qr"},{label:l("Barcode"),value:"barcode"}]}),$&&(0,r.jsx)(c.antd$Alert,{type:"error",title:l("Validation error"),description:$,showIcon:!0,closable:!0,onClose:()=>b(null)}),(0,r.jsx)(c.antd$Input.TextArea,{value:x,onChange:e=>{se(e.target.value),b(null)},placeholder:l("Text or URL"),rows:3,spellCheck:!1,autoComplete:"off"}),(0,r.jsxs)("div",{className:t.sizeRow,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.sizeRowLabel,children:l(d==="qr"?"QR image size px":"Barcode bar height px")}),d==="qr"?(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:z,max:F,step:8,value:j,onChange:e=>ue(typeof e=="number"&&!Number.isNaN(e)?e:ee),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("QR image size px")}):(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:E,max:q,step:4,value:k,onChange:e=>me(typeof e=="number"&&!Number.isNaN(e)?e:ae),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("Barcode bar height px")})]}),(0,r.jsxs)("div",{className:t.colorGrid,children:[(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Code color","Code color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:p,format:"hex",disabledAlpha:!0,showText:!0,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;ce(n)}})]}),(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Background color","Background color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:f,format:"hex",disabledAlpha:!0,showText:!0,disabled:g,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;de(n)}})]}),(0,r.jsxs)("div",{className:t.bgExtras,children:[(0,r.jsx)(c.antd$Checkbox,{checked:g,onChange:e=>he(e.target.checked),children:l("Transparent background","Transparent background")}),g&&(0,r.jsx)(c.antd$Alert,{type:"warning",showIcon:!0,title:l("QR transparent background hint"),className:t.bgWarning})]})]}),(0,r.jsxs)("div",{className:t.previewSection,children:[(0,r.jsx)(c.antd$Typography.Text,{className:t.previewTitle,children:l("Preview","Preview")}),(0,r.jsxs)("div",{className:[t.previewWrap,d==="barcode"&&t.previewWrapBarcode].filter(Boolean).join(" "),children:[(0,r.jsx)("div",{className:[t.scanLine,d==="barcode"&&t.scanLineBarcode].filter(Boolean).join(" ")}),(0,r.jsx)("canvas",{ref:V,className:[t.previewCanvas,d==="barcode"&&t.previewCanvasBarcode].filter(Boolean).join(" "),"aria-label":l("Preview")})]})]}),(0,r.jsx)("div",{className:t.actions,children:(0,r.jsx)(c.antd$Button,{type:"primary",onClick:()=>{pe()},loading:L,disabled:!ge,children:l("Add to My files")})})]})})};Z.default=le});
10
+ __emailmaker__.define("static/core/9e1370a6.js",["require","exports","module","static/core/5dc34752.js","static/core/8b8c93f4.js","static/core/e6f6edff.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(m,Z,ve){const G=m("./5dc34752.js"),B=m("./8b8c93f4.js"),y=m("./e6f6edff.js");let o=m("react"),D=G.__toESM(o,1);o=G.__toESM(o);let r=m("react/jsx-runtime"),c=m("__delivery__/libs"),N=m("vite/preload-helper");var S=({size:C=24,color:R="currentColor",...s})=>D.createElement("svg",{viewBox:"0 0 24 24",width:C,height:C,stroke:R,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},D.createElement("path",{d:"m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6"}));S.displayName="Expand01";var O=B.or(),t={"em-filemanager":"em-filemanager",emFilemanager:"em-filemanager",root:"root",controls:"controls",segmentedControl:"segmentedControl",sizeRow:"sizeRow",sizeRowLabel:"sizeRowLabel",sizeInputNumber:"sizeInputNumber",sizeSuffix:"sizeSuffix",colorGrid:"colorGrid",colorCell:"colorCell",colorCellLabel:"colorCellLabel",colorPickerFull:"colorPickerFull",bgExtras:"bgExtras",bgWarning:"bgWarning",previewSection:"previewSection",previewTitle:"previewTitle",previewWrap:"previewWrap",scanLine:"scanLine",scanLineBarcode:"scanLineBarcode",previewWrapBarcode:"previewWrapBarcode",previewCanvas:"previewCanvas",previewCanvasBarcode:"previewCanvasBarcode",actions:"actions"},z=80,F=600,ee=200,E=24,q=130,ae=60,re=280,te=72;function oe(){return typeof window>"u"?2:Math.min(3,Math.max(2,window.devicePixelRatio||2))}var le=({customRequest:C,state:R,setState:s})=>{let{t:l}=B.Rn(),{options:ie}=B.V(),Q=ie?.config?.iconStrokeWidth??1.75,V=(0,o.useRef)(null),{mode:d,rawText:x,foregroundHex:p,backgroundHex:f,transparentBackground:g,qrSidePx:j,barcodeBarHeightPx:k}=R,ne=(0,o.useCallback)(e=>s(a=>({...a,mode:e})),[s]),se=(0,o.useCallback)(e=>s(a=>({...a,rawText:e})),[s]),ce=(0,o.useCallback)(e=>s(a=>({...a,foregroundHex:e})),[s]),de=(0,o.useCallback)(e=>s(a=>({...a,backgroundHex:e})),[s]),he=(0,o.useCallback)(e=>s(a=>({...a,transparentBackground:e})),[s]),ue=(0,o.useCallback)(e=>s(a=>({...a,qrSidePx:e})),[s]),me=(0,o.useCallback)(e=>s(a=>({...a,barcodeBarHeightPx:e})),[s]),[T,xe]=(0,o.useState)(x),[$,b]=(0,o.useState)(null),[L,U]=(0,o.useState)(!1),_=(0,o.useMemo)(()=>(0,O.debounce)(e=>xe(e),300),[]);(0,o.useEffect)(()=>(_(x),()=>{_.cancel()}),[x,_]);let M=g?"#00000000":f,J=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./be880f91.js")).then(i=>y.l(i.default)),void 0,{}.url)).default,h=a.trim(),u=Math.min(re,Math.max(z,j));if(!h){e.width=u,e.height=u;let i=e.getContext("2d");i&&i.clearRect(0,0,e.width,e.height);return}e.width=u,e.height=u,await n.toCanvas(e,h,{width:u,margin:2,color:{dark:p,light:M}})},[p,M,j]),K=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./9f7f5230.js")).then(v=>y.l(v.default)),void 0,{}.url)).default,h=a.trim(),u=g?"rgba(0,0,0,0)":f,i=Math.min(te,Math.max(E,k)),W=Math.max(1,Math.round(i/42)),H=Math.max(4,Math.round(i*.07)),I=Math.max(10,Math.round(i*.15));if(!h){e.width=Math.round(i*4),e.height=Math.round(i*1.65);let v=e.getContext("2d");v&&v.clearRect(0,0,e.width,e.height);return}e.width=Math.round(i*4.2),e.height=Math.round(i*1.65),n(e,h,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:H,width:W,height:i,fontSize:I})},[p,f,g,k]);(0,o.useEffect)(()=>{let e=V.current;if(!e)return;let a=!1;return(async()=>{try{d==="qr"?await J(e,T):await K(e,T),a||b(null)}catch(n){let h=n instanceof Error?n.message:String(n);if(!a){b(d==="barcode"?l("Barcode generation failed"):h);let u=e.getContext("2d");u&&u.clearRect(0,0,e.width,e.height)}}})(),()=>{a=!0}},[d,T,K,J,l]);let X=(0,o.useCallback)(async()=>{_.flush();let e=x.trim();if(!e)throw Error(l("Enter text or URL to preview"));let a=oe();if(d==="qr"){let w=Math.round(Math.min(F,Math.max(z,j))*a),P=document.createElement("canvas");P.width=w,P.height=w,await(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./be880f91.js")).then(A=>y.l(A.default)),void 0,{}.url)).default.toCanvas(P,e,{width:w,margin:2,color:{dark:p,light:M}});let Y=await new Promise(A=>P.toBlob(A,"image/png"));if(!Y)throw Error("PNG export failed");return Y}let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./9f7f5230.js")).then(w=>y.l(w.default)),void 0,{}.url)).default,h=document.createElement("canvas"),u=g?"rgba(0,0,0,0)":f,i=Math.min(q,Math.max(E,k)),W=Math.max(6,Math.round(i*.1)),H=Math.max(2,Math.round(i/36)),I=Math.max(12,Math.round(i*.16));n(h,e,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:Math.round(W*a),width:Math.round(H*a),height:Math.round(i*a),fontSize:Math.round(I*a)});let v=await new Promise(w=>h.toBlob(w,"image/png"));if(!v)throw Error("PNG export failed");return v},[d,x,p,M,f,g,j,k,_,l]),pe=(0,o.useCallback)(async()=>{if(!L&&x.trim()){U(!0);try{let e;try{e=await X()}catch(n){let h=n instanceof Error?n.message:String(n);b(h);return}let a=new File([e],`${d==="qr"?"qr-code":"barcode"}-${Date.now()}.png`,{type:"image/png",lastModified:Date.now()});await Promise.resolve(C({file:a}))}finally{U(!1)}}},[C,X,d,x,L]),ge=!!x.trim()&&!$;return(0,r.jsx)("div",{className:t.root,children:(0,r.jsxs)("div",{className:t.controls,children:[(0,r.jsx)(c.antd$Segmented,{block:!0,className:t.segmentedControl,value:d,onChange:e=>{ne(e),b(null)},options:[{label:l("QR code"),value:"qr"},{label:l("Barcode"),value:"barcode"}]}),$&&(0,r.jsx)(c.antd$Alert,{type:"error",title:l("Validation error"),description:$,showIcon:!0,closable:!0,onClose:()=>b(null)}),(0,r.jsx)(c.antd$Input.TextArea,{value:x,onChange:e=>{se(e.target.value),b(null)},placeholder:l("Text or URL"),rows:3,spellCheck:!1,autoComplete:"off"}),(0,r.jsxs)("div",{className:t.sizeRow,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.sizeRowLabel,children:l(d==="qr"?"QR image size px":"Barcode bar height px")}),d==="qr"?(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:z,max:F,step:8,value:j,onChange:e=>ue(typeof e=="number"&&!Number.isNaN(e)?e:ee),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("QR image size px")}):(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:E,max:q,step:4,value:k,onChange:e=>me(typeof e=="number"&&!Number.isNaN(e)?e:ae),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("Barcode bar height px")})]}),(0,r.jsxs)("div",{className:t.colorGrid,children:[(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Code color","Code color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:p,format:"hex",disabledAlpha:!0,showText:!0,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;ce(n)}})]}),(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Background color","Background color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:f,format:"hex",disabledAlpha:!0,showText:!0,disabled:g,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;de(n)}})]}),(0,r.jsxs)("div",{className:t.bgExtras,children:[(0,r.jsx)(c.antd$Checkbox,{checked:g,onChange:e=>he(e.target.checked),children:l("Transparent background","Transparent background")}),g&&(0,r.jsx)(c.antd$Alert,{type:"warning",showIcon:!0,title:l("QR transparent background hint"),className:t.bgWarning})]})]}),(0,r.jsxs)("div",{className:t.previewSection,children:[(0,r.jsx)(c.antd$Typography.Text,{className:t.previewTitle,children:l("Preview","Preview")}),(0,r.jsxs)("div",{className:[t.previewWrap,d==="barcode"&&t.previewWrapBarcode].filter(Boolean).join(" "),children:[(0,r.jsx)("div",{className:[t.scanLine,d==="barcode"&&t.scanLineBarcode].filter(Boolean).join(" ")}),(0,r.jsx)("canvas",{ref:V,className:[t.previewCanvas,d==="barcode"&&t.previewCanvasBarcode].filter(Boolean).join(" "),"aria-label":l("Preview")})]})]}),(0,r.jsx)("div",{className:t.actions,children:(0,r.jsx)(c.antd$Button,{type:"primary",onClick:()=>{pe()},loading:L,disabled:!ge,children:l("Add to My files")})})]})})};Z.default=le});
@@ -1 +1 @@
1
- __emailmaker__.define("static/core/90aedd7b.js",["require","exports","module","static/core/5dc34752.js","static/core/c1188df9.js"],function(n,p,g){const $=n("./5dc34752.js"),u=n("./c1188df9.js");var d={items_per_page:"na stronę",jump_to:"Idź do",jump_to_confirm:"potwierdź",page:"",prev_page:"Poprzednia strona",next_page:"Następna strona",prev_5:"Poprzednie 5 stron",next_5:"Następne 5 stron",prev_3:"Poprzednie 3 strony",next_3:"Następne 3 strony",page_size:"rozmiar strony"};function o(a){"@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(a)}function l(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);e&&(i=i.filter(function(j){return Object.getOwnPropertyDescriptor(a,j).enumerable})),t.push.apply(t,i)}return t}function s(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?l(Object(t),!0).forEach(function(i){y(a,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(t,i))})}return a}function y(a,e,t){return e=b(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function b(a){var e=w(a,"string");return o(e)=="symbol"?e:String(e)}function w(a,e){if(o(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var i=t.call(a,e||"default");if(o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var z=s(s({},u.commonLocale),{},{locale:"pl_PL",today:"Dzisiaj",now:"Teraz",backToToday:"Ustaw dzisiaj",ok:"OK",clear:"Wyczyść",week:"Tydzień",month:"Miesiąc",year:"Rok",timeSelect:"Ustaw czas",dateSelect:"Ustaw datę",monthSelect:"Wybierz miesiąc",yearSelect:"Wybierz rok",decadeSelect:"Wybierz dekadę",previousMonth:"Poprzedni miesiąc (PageUp)",nextMonth:"Następny miesiąc (PageDown)",previousYear:"Ostatni rok (Ctrl + left)",nextYear:"Następny rok (Ctrl + right)",previousDecade:"Ostatnia dekada",nextDecade:"Następna dekada",previousCentury:"Ostatni wiek",nextCentury:"Następny wiek"}),c={placeholder:"Wybierz godzinę",rangePlaceholder:["Czas rozpoczęcia","Czas zakończenia"]},m={lang:{placeholder:"Wybierz datę",rangePlaceholder:["Data początkowa","Data końcowa"],yearFormat:"YYYY",monthFormat:"MMMM",monthBeforeYear:!0,shortWeekDays:["Niedz","Pon","Wt","Śr","Czw","Pt","Sob"],shortMonths:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],...z},timePickerLocale:{...c}},f=m,r="${label} nie posiada poprawnej wartości dla typu ${type}",k={locale:"pl",Pagination:d,DatePicker:m,TimePicker:c,Calendar:f,global:{placeholder:"Wybierz",close:"Zamknij",show:"Pokaż",hide:"Ukryj"},Table:{filterTitle:"Menu filtra",filterConfirm:"OK",filterReset:"Usuń filtry",filterEmptyText:"Brak filtrów",filterCheckAll:"Wybierz wszystkie elementy",filterSearchPlaceholder:"Szukaj w filtrach",emptyText:"Brak danych",selectAll:"Zaznacz bieżącą stronę",selectInvert:"Odwróć zaznaczenie",selectNone:"Wyczyść",selectionAll:"Wybierz wszystkie",sortTitle:"Sortowanie",expand:"Rozwiń wiersz",collapse:"Zwiń wiersz",triggerDesc:"Sortuj malejąco",triggerAsc:"Sortuj rosnąco",cancelSort:"Usuń sortowanie"},Tour:{Next:"Dalej",Previous:"Wróć",Finish:"Zakończ"},Modal:{okText:"OK",cancelText:"Anuluj",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Anuluj"},Transfer:{titles:["",""],searchPlaceholder:"Szukaj",itemUnit:"obiekt",itemsUnit:"obiekty",remove:"Usuń",selectCurrent:"Wybierz aktualną stronę",removeCurrent:"Usuń aktualną stronę",selectAll:"Wybierz wszystkie",removeAll:"Usuń wszystkie",selectInvert:"Odwróć wybór"},Upload:{uploading:"Wysyłanie...",removeFile:"Usuń plik",uploadError:"Błąd wysyłania",previewFile:"Podejrzyj plik",downloadFile:"Pobieranie pliku"},Empty:{description:"Brak danych"},Icon:{icon:"Ikona"},Text:{edit:"Edytuj",copy:"Kopiuj",copied:"Skopiowany",expand:"Rozwiń"},Form:{optional:"(opcjonalne)",defaultValidateMessages:{default:"Błąd walidacji dla pola ${label}",required:"Pole ${label} jest wymagane",enum:"Pole ${label} musi posiadać wartość z listy: [${enum}]",whitespace:"Pole ${label} nie może być puste",date:{format:"${label} posiada zły format daty",parse:"${label} nie może zostać zinterpretowane jako data",invalid:"${label} jest niepoprawną datą"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} musi posiadać ${len} znaków",min:"${label} musi posiadać co namniej ${min} znaków",max:"${label} musi posiadać maksymalnie ${max} znaków",range:"${label} musi posiadać między ${min} a ${max} znaków"},number:{len:"${label} musi mieć wartość o długości ${len}",min:"${label} musi mieć wartość większą lub równą ${min}",max:"${label} musi mieć wartość mniejszą lub równą ${max}",range:"${label} musi mieć wartość pomiędzy ${min} a ${max}"},array:{len:"${label} musi posiadać ${len} elementów",min:"${label} musi posiadać co najmniej ${min} elementów",max:"${label} musi posiadać maksymalnie ${max} elementów",range:"${label} musi posiadać między ${min} a ${max} elementów"},pattern:{mismatch:"${label} nie posiada wartości zgodnej ze wzorem ${pattern}"}}}};p.default=k});
1
+ __emailmaker__.define("static/core/a59d579e.js",["require","exports","module","static/core/5dc34752.js","static/core/c948c45f.js"],function(n,p,g){const $=n("./5dc34752.js"),u=n("./c948c45f.js");var d={items_per_page:"na stronę",jump_to:"Idź do",jump_to_confirm:"potwierdź",page:"",prev_page:"Poprzednia strona",next_page:"Następna strona",prev_5:"Poprzednie 5 stron",next_5:"Następne 5 stron",prev_3:"Poprzednie 3 strony",next_3:"Następne 3 strony",page_size:"rozmiar strony"};function o(a){"@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(a)}function l(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);e&&(i=i.filter(function(j){return Object.getOwnPropertyDescriptor(a,j).enumerable})),t.push.apply(t,i)}return t}function s(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?l(Object(t),!0).forEach(function(i){y(a,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(t,i))})}return a}function y(a,e,t){return e=b(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function b(a){var e=w(a,"string");return o(e)=="symbol"?e:String(e)}function w(a,e){if(o(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var i=t.call(a,e||"default");if(o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var z=s(s({},u.commonLocale),{},{locale:"pl_PL",today:"Dzisiaj",now:"Teraz",backToToday:"Ustaw dzisiaj",ok:"OK",clear:"Wyczyść",week:"Tydzień",month:"Miesiąc",year:"Rok",timeSelect:"Ustaw czas",dateSelect:"Ustaw datę",monthSelect:"Wybierz miesiąc",yearSelect:"Wybierz rok",decadeSelect:"Wybierz dekadę",previousMonth:"Poprzedni miesiąc (PageUp)",nextMonth:"Następny miesiąc (PageDown)",previousYear:"Ostatni rok (Ctrl + left)",nextYear:"Następny rok (Ctrl + right)",previousDecade:"Ostatnia dekada",nextDecade:"Następna dekada",previousCentury:"Ostatni wiek",nextCentury:"Następny wiek"}),c={placeholder:"Wybierz godzinę",rangePlaceholder:["Czas rozpoczęcia","Czas zakończenia"]},m={lang:{placeholder:"Wybierz datę",rangePlaceholder:["Data początkowa","Data końcowa"],yearFormat:"YYYY",monthFormat:"MMMM",monthBeforeYear:!0,shortWeekDays:["Niedz","Pon","Wt","Śr","Czw","Pt","Sob"],shortMonths:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],...z},timePickerLocale:{...c}},f=m,r="${label} nie posiada poprawnej wartości dla typu ${type}",k={locale:"pl",Pagination:d,DatePicker:m,TimePicker:c,Calendar:f,global:{placeholder:"Wybierz",close:"Zamknij",show:"Pokaż",hide:"Ukryj"},Table:{filterTitle:"Menu filtra",filterConfirm:"OK",filterReset:"Usuń filtry",filterEmptyText:"Brak filtrów",filterCheckAll:"Wybierz wszystkie elementy",filterSearchPlaceholder:"Szukaj w filtrach",emptyText:"Brak danych",selectAll:"Zaznacz bieżącą stronę",selectInvert:"Odwróć zaznaczenie",selectNone:"Wyczyść",selectionAll:"Wybierz wszystkie",sortTitle:"Sortowanie",expand:"Rozwiń wiersz",collapse:"Zwiń wiersz",triggerDesc:"Sortuj malejąco",triggerAsc:"Sortuj rosnąco",cancelSort:"Usuń sortowanie"},Tour:{Next:"Dalej",Previous:"Wróć",Finish:"Zakończ"},Modal:{okText:"OK",cancelText:"Anuluj",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Anuluj"},Transfer:{titles:["",""],searchPlaceholder:"Szukaj",itemUnit:"obiekt",itemsUnit:"obiekty",remove:"Usuń",selectCurrent:"Wybierz aktualną stronę",removeCurrent:"Usuń aktualną stronę",selectAll:"Wybierz wszystkie",removeAll:"Usuń wszystkie",selectInvert:"Odwróć wybór"},Upload:{uploading:"Wysyłanie...",removeFile:"Usuń plik",uploadError:"Błąd wysyłania",previewFile:"Podejrzyj plik",downloadFile:"Pobieranie pliku"},Empty:{description:"Brak danych"},Icon:{icon:"Ikona"},Text:{edit:"Edytuj",copy:"Kopiuj",copied:"Skopiowany",expand:"Rozwiń"},Form:{optional:"(opcjonalne)",defaultValidateMessages:{default:"Błąd walidacji dla pola ${label}",required:"Pole ${label} jest wymagane",enum:"Pole ${label} musi posiadać wartość z listy: [${enum}]",whitespace:"Pole ${label} nie może być puste",date:{format:"${label} posiada zły format daty",parse:"${label} nie może zostać zinterpretowane jako data",invalid:"${label} jest niepoprawną datą"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} musi posiadać ${len} znaków",min:"${label} musi posiadać co namniej ${min} znaków",max:"${label} musi posiadać maksymalnie ${max} znaków",range:"${label} musi posiadać między ${min} a ${max} znaków"},number:{len:"${label} musi mieć wartość o długości ${len}",min:"${label} musi mieć wartość większą lub równą ${min}",max:"${label} musi mieć wartość mniejszą lub równą ${max}",range:"${label} musi mieć wartość pomiędzy ${min} a ${max}"},array:{len:"${label} musi posiadać ${len} elementów",min:"${label} musi posiadać co najmniej ${min} elementów",max:"${label} musi posiadać maksymalnie ${max} elementów",range:"${label} musi posiadać między ${min} a ${max} elementów"},pattern:{mismatch:"${label} nie posiada wartości zgodnej ze wzorem ${pattern}"}}}};p.default=k});