@emailmaker/emailmaker 1.0.8 → 1.0.10

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 (46) hide show
  1. package/README.md +1 -1
  2. package/README_eng.md +1 -1
  3. package/asset-manifest.json +30 -30
  4. package/emailmaker-esm.js +1 -1
  5. package/emailmaker.js +1 -1
  6. package/iframe/css/sandbox.css +9 -4
  7. package/iframe/{iframe-eblock.9f15b585d409c5b241ce.html → iframe-eblock.0647a1d3ec50c052e1ba.html} +1 -1
  8. package/iframe/{iframe.9f15b585d409c5b241ce.html → iframe.0647a1d3ec50c052e1ba.html} +1 -1
  9. package/iframe/js/cssbeautify.js +1 -1
  10. package/iframe/js/typograf/typograf.all.min.js +1 -1
  11. package/iframe/js/typograf/typograf.all.min.js.LICENSE.txt +1 -1
  12. package/iframe/sandbox-eblock.js +1 -1
  13. package/iframe/sandbox-eblock.js.LICENSE.txt +1 -1
  14. package/iframe/sandbox.js +1 -1
  15. package/iframe/sandbox.js.LICENSE.txt +1 -1
  16. package/package.json +1 -1
  17. package/plugin.html +2 -1
  18. package/plugin_default.html +1 -1
  19. package/plugin_s.html +1 -1
  20. package/static/css/{3851.75ec4b28.css → 3851.1f07a6f1.css} +1 -1
  21. package/static/js/{1399.2fad9d93.js → 1399.cb4cfaa3.js} +1 -1
  22. package/static/js/1472.fe27dc78.js +1 -0
  23. package/static/js/2256.b4b12bd2.js +1 -0
  24. package/static/js/2627.c2fad689.js +1 -0
  25. package/static/js/2835.546adb70.js +1 -0
  26. package/static/js/4087.39430f66.js +1 -0
  27. package/static/js/5571.74b1c7f8.js +1 -0
  28. package/static/js/5632.50b5ade7.js +1 -0
  29. package/static/js/5974.441a5974.js +1 -0
  30. package/static/js/698.9920d87b.js +1 -0
  31. package/static/js/8353.be165e77.js +1 -0
  32. package/static/js/{9141.a807f45f.js → 9141.32c0af4c.js} +1 -1
  33. package/static/js/{emailmaker_core.d4c06bc2.js → emailmaker_core.a12d7e5c.js} +1 -1
  34. package/static/js/mergeTags/locale1.7ae1a083.chunk.js +1 -0
  35. package/translations.pot +323 -365
  36. package/static/js/1472.e4ead619.js +0 -1
  37. package/static/js/2256.13abf27b.js +0 -1
  38. package/static/js/2627.8ccc75f9.js +0 -1
  39. package/static/js/2835.740ca6fd.js +0 -1
  40. package/static/js/4087.9a4ff675.js +0 -1
  41. package/static/js/5571.7c0161af.js +0 -1
  42. package/static/js/5632.0476b4be.js +0 -1
  43. package/static/js/5974.7e71f106.js +0 -1
  44. package/static/js/698.f294be82.js +0 -1
  45. package/static/js/8353.43f48dbb.js +0 -1
  46. package/static/js/mergeTags/locale1.08f64b23.chunk.js +0 -1
@@ -13,7 +13,7 @@
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
15
 
16
- /*! typograf | © 2023 Denis Seleznev | MIT License | https://github.com/typograf/typograf */
16
+ /*! typograf | © 2024 Denis Seleznev | MIT License | https://github.com/typograf/typograf */
17
17
 
18
18
  /**!
19
19
  * Sortable 1.15.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailmaker/emailmaker",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "private": false,
5
5
  "main": "emailmaker.js",
6
6
  "module": "emailmaker-esm.js",
package/plugin.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?576c9c29267844525dc8"></script></head><body><button id="change_theme" style="width: 150px; height: 30px">Click Me</button><div style="background: white; width: 100%; height: 50px; display: flex; justify-content: center; align-items: center"></div><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?576c9c29267844525dc8";
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?41e67e21b8740cac1355"></script></head><body><button id="change_theme" style="width: 150px; height: 30px">Click Me</button><div style="background: white; width: 100%; height: 50px; display: flex; justify-content: center; align-items: center"></div><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?41e67e21b8740cac1355";
2
2
  const auth_jwt = {
3
3
  username: "****",
4
4
  password: "****"
@@ -107,6 +107,7 @@
107
107
  previewModeEnabled: true,
108
108
  livePreviewEnabled: true,
109
109
  sendTestEnabled: true,
110
+ emailExportEnabled: true,
110
111
  sharePreviewEnabled: true,
111
112
  emailDropdownMenuLock: true,
112
113
  emailDropdownMenuClone: true,
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?576c9c29267844525dc8"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?576c9c29267844525dc8";
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?41e67e21b8740cac1355"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?41e67e21b8740cac1355";
2
2
  const auth_jwt = {
3
3
  username: "****",
4
4
  password: "****"
package/plugin_s.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?576c9c29267844525dc8"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">const getAuthToken = async () => {
1
+ <!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?41e67e21b8740cac1355"></script></head><body><div id="test" style="padding: 0px; background: #fff; height: 100vh;"></div><script async defer="defer">const getAuthToken = async () => {
2
2
 
3
3
  var requestOptions = {
4
4
  method: 'POST',
@@ -1 +1 @@
1
- .blocks-app .blocks-plugin{zoom:var(--appZoom)}.blocks-app .blocks-plugin .ant-layout-sider-children{display:none}.blocks-app *,.blocks-app .ai-response-variant[class*=ai-response] *,.blocks-app ul.ai-roles-list *,.blocks-app ul.buttons-variants [class*=ai-response]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.blocks-app .codicon[class*=codicon-]{font:normal normal normal 16px/1 codicon!important}.blocks-app .ant-comment-content-detail,.blocks-app .ant-table-cell,.blocks-app .ant-table-cell>a,.blocks-app .element-card__title,.blocks-app [class*=ai-response],.blocks-app [class*=ai-response] *{user-select:text;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text}.blocks-app .code-mode__pane *{user-select:auto;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto}.blocks-app .ant-form-item .ant-form-item-control-input,.blocks-app .ant-input,.blocks-app .ant-input-number-input{min-height:calc((var(--formControlHeight) - var(--borderWidth)*2)*1px)}.blocks-app .ant-input-number,.blocks-app .ant-input-number-group>.ant-input-number:first-child,.blocks-app .ant-select:not(.ant-select-customize-input) .ant-select-selector{border-color:var(--colorFillSecondaryDarken);border-width:calc(var(--borderWidth)*1px)}.blocks-app .ant-alert-info,.blocks-app .ant-input,.blocks-app .ant-input-affix-wrapper,.blocks-app .ant-input-number,.blocks-app .ant-input-number-affix-wrapper,.blocks-app .ant-select:not(.ant-select-customize-input) .ant-select-selector{border-width:calc(var(--borderWidth)*1px)}.blocks-app .ant-input-affix-wrapper:hover,.blocks-app .ant-input-number-affix-wrapper:hover,.blocks-app .ant-input-number-affix-wrapper:not(.ant-input-number-affix-wrapper-disabled):hover,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):hover .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):hover .ant-input-number-group-addon:last-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):hover>.ant-input-number:first-child,.blocks-app .ant-input-number:hover,.blocks-app .ant-input:hover,.blocks-app .ant-picker:hover,.blocks-app .ant-select:not(.ant-select-customize-input):hover .ant-select-selector,.blocks-app .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer):hover .ant-select-selector{border-color:var(--borderColorHover)}.blocks-app .ant-input-affix-wrapper:focus,.blocks-app .ant-input-affix-wrapper:focus-within,.blocks-app .ant-input-number-affix-wrapper:focus,.blocks-app .ant-input-number-affix-wrapper:focus-within,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number-group-addon:last-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-group-addon:last-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within>.ant-input-number:first-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus>.ant-input-number:first-child,.blocks-app .ant-input-number:focus,.blocks-app .ant-input-number:focus-within,.blocks-app .ant-input:focus,.blocks-app .ant-input:focus-within,.blocks-app .ant-picker-focused.ant-picker,.blocks-app .ant-select-focused.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector,.blocks-app .ant-select:focus .ant-select-selector,.blocks-app .ant-select:focus-within .ant-select-selector{border-color:var(--colorPrimaryBorder)}.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number-affix-wrapper,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper{box-shadow:none}.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within{border-radius:calc(var(--borderRadius)*1px);box-shadow:0 0 0 2px #0591ff1a}.dark .blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus,.dark .blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within{box-shadow:0 0 0 2px #000e29ab}.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within>.ant-input-number:first-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus>.ant-input-number:first-child{border-right-color:var(--colorFillSecondaryDarken)}.blocks-app .ant-input-affix-wrapper,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled) .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled) .ant-input-number-group-addon:last-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled)>.ant-input-number:first-child{transition:all .2s linear .2s}.blocks-app .ant-input-affix-wrapper{border-color:var(--colorFillSecondaryDarken);padding-bottom:0;padding-top:0}.blocks-app .ant-input-number .ant-input-number-input,.blocks-app .ant-input-number-affix-wrapper input.ant-input-number-input{padding-bottom:0;padding-top:0}.blocks-app,.blocks-app .ant-app,.blocks-app .ant-app .main,.blocks-app .ant-app .main__pane-content{height:100%}.blocks-app .ant-app [role=button],.blocks-app .ant-app a,.blocks-app .ant-app area,.blocks-app .ant-app button,.blocks-app .ant-app input:not([type=range]),.blocks-app .ant-app label,.blocks-app .ant-app select,.blocks-app .ant-app summary,.blocks-app .ant-app textarea{touch-action:manipulation}.blocks-app .ant-app .ant-btn.ant-btn-sm{height:calc((var(--formControlHeight) - 4)*1px);line-height:calc((var(--formControlHeight) - 4)*1px);padding:0 7px}.blocks-app .ant-app ::-webkit-scrollbar{height:10px;width:10px}.blocks-app .ant-app ::-webkit-scrollbar-corner,.blocks-app .ant-app ::-webkit-scrollbar-track{background:#0000}.blocks-app .ant-app ::-webkit-scrollbar-thumb{background-clip:content-box;border:3px solid #0000;border-radius:8px;box-shadow:inset 0 0 0 10px var(--colorFillSecondaryDarken);min-height:20px;-webkit-transition:all .2s;transition:all .2s}.blocks-app .ant-app ::-webkit-scrollbar-thumb:hover{border-width:1px;box-shadow:inset 0 0 0 10px var(--colorTextDisabled)}.blocks-app .ant-app textarea::-webkit-scrollbar-track{margin:10px}.blocks-app .ant-app .ant-btn-default{box-shadow:none}.blocks-app .ant-app .ant-btn>span.anticon{display:inline-flex;justify-content:center}.blocks-app .ant-app .ant-pagination{margin-top:30px}.blocks-app .ant-app .ant-table-wrapper .ant-table{border-radius:calc(var(--borderRadiusXL)*1px);overflow:hidden}.blocks-app .ant-app .email-pane__content-col .ant-btn-default,.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper,.blocks-app .ant-app .email-pane__content-col .selected-td-form__button:not(.ant-btn-text){background:var(--colorFillSecondary);border:1px solid #0000!important}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){background:var(--colorFillSecondary);border-color:#0000;color:var(--colorPrimary)}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button{min-height:calc(var(--formControlHeight)*1px);min-width:calc(var(--formControlHeight)*1px);padding:0 8px;position:relative}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button.ghost-button:before{background-color:#0000;content:"";cursor:pointer;height:50px;left:-338px;position:absolute;top:-9px;width:385px;z-index:1}.blocks-app .ant-app .email-pane__content-col .ant-btn-default:not(:disabled):not(.ant-btn-disabled,.email-pane__content-col .selected-td-form__button--active):hover{background:var(--colorFillSecondaryDarken);border-color:#0000;color:inherit}.blocks-app .ant-app .email-pane__content-col .ant-btn-default.selected-td-form__button--active,.blocks-app .ant-app .email-pane__content-col .selected-td-form__button--active{background:var(--colorPrimaryBg);border-color:#0000;color:var(--colorPrimary)}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button--active:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .ant-app .ant-input-number-affix-wrapper{border-color:var(--colorFillSecondaryDarken);width:inherit}.blocks-app .ant-app .ant-btn,.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper{height:calc(var(--formControlHeight)*1px);line-height:calc((var(--formControlHeight) - 2)*1px);min-width:calc(var(--formControlHeight)*1px);padding:0 9px;text-align:center}.blocks-app .ant-app .ant-btn.ant-btn-icon-only{min-width:calc(var(--formControlHeight)*1px);padding:0;width:calc(var(--formControlHeight)*1px)}.blocks-app .ant-app .ant-btn.ant-btn-icon-only .ant-btn-icon{align-items:center;display:inline-flex;height:100%}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked):hover{background:var(--colorFillSecondaryDarken);color:inherit}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper.ant-radio-button-wrapper-checked{background:var(--colorPrimaryBg)}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper.ant-radio-button-wrapper-checked:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .ant-app .ant-input-number{width:100%}.blocks-app .ant-app .email-pane__content-col .ant-form-item{margin-bottom:calc(var(--formItemMarginBottomMD)*1px)}.blocks-app .ant-app .email-pane__content-col .ant-form-item.form-item-margin-xs{margin-bottom:calc(var(--formItemMarginBottomXS)*1px)}.blocks-app .ant-app .form-group-title{padding:15px 0}.blocks-app .ant-app .selected-td-form__br-input{margin-bottom:8px!important}.blocks-app .ant-app .ant-input-affix-wrapper .ant-input-prefix,.blocks-app .ant-app .ant-input-number-affix-wrapper .ant-input-number-prefix{margin-inline-end:4px}.blocks-app .ant-app .addon-text-content{font-size:11px;font-weight:600}.blocks-app .ant-app h4.form-group-title{background-color:var(--colorFillSecondary);font-size:16px;font-weight:500;margin:0 -24px 15px;padding:10px 24px}.blocks-app .ant-app .ant-input-affix-wrapper>input.ant-input{border-radius:4px;padding:0 6px}.blocks-app .ant-app .ant-input-affix-wrapper-lg{border-radius:calc(var(--borderRadius)*1px)}.blocks-app .ant-app .ant-checkbox .ant-checkbox-inner{border-radius:calc(var(--borderRadiusSM)*.5px)}.blocks-app .ant-app .ant-btn.ant-btn-lg{border-radius:calc(var(--borderRadius)*1px)}.blocks-app .ant-app .ant-input-affix-wrapper-focused .ant-input-affix-wrapper-focused,.blocks-app .ant-app .ant-input-affix-wrapper-focused.text-area-input-hybrid{box-shadow:none}.blocks-app .ant-app .ant-select-single{height:34px}.blocks-app .ant-app .ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-app .ant-input-number-group>.ant-input-number:first-child{border-right-color:#0000;border-right-width:1px!important;transition:all .2s linear .2s}.blocks-app .ant-app .ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child):hover,.blocks-app .ant-app .ant-input-number-group>.ant-input-number:first-child:hover{border-right-color:var(--colorFillSecondaryDarken)}.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector{border-left-color:#0000}.blocks-app .ant-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled) .ant-input-number-group-addon:last-child{background:none}.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon:last-child .ant-select-single.ant-select-show-arrow .ant-select-selection-item{padding-inline-end:13px}.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon,.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon:last-child .ant-select-selection-item{color:var(--colorTextQuaternary)}.blocks-app .ant-app .ant-select .ant-select-arrow .anticon{font-size:10px;margin-top:2px}.blocks-app .ant-app .ant-form-item-switch-label{color:var(--colorTextSecondary)}.blocks-app .ant-app .input-draggable .ant-input-number-affix-wrapper{cursor:ew-resize}.blocks-app .ant-app .merge-tags.ant-cascader-dropdown .ant-cascader-menu{height:auto;max-height:210px}.blocks-app .ant-app .merge-tags.ant-cascader-dropdown ul:not(:first-child) .ant-cascader-menu-item{max-width:250px}.blocks-app .ant-app .merge-tags.ant-cascader-dropdown ul:first-child .ant-cascader-menu-item{max-width:320px}.blocks-app .ant-app .merge-tags.ant-cascader-dropdown .ant-cascader-menu-item>div,.blocks-app .ant-app .merge-tags.ant-cascader-dropdown .ant-cascader-menu-item>div>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.blocks-app .ant-app .ant-segmented{border-radius:calc(var(--borderRadius)*1.2px)}.blocks-app .ant-app .ant-segmented .ant-segmented-group{justify-content:space-between}.blocks-app .ant-app .ant-segmented .ant-segmented-item{border-radius:calc(var(--borderRadius)*1px)}.blocks-app .ant-app .email-pane__content-col .ant-segmented,.blocks-app .ant-app header .ant-segmented{background-color:var(--colorFillSecondary)}.blocks-app .ant-app .selected-element-panel-content .ant-segmented .ant-segmented-item-label{line-height:calc((var(--formControlHeight) - 4)*1px);min-height:calc((var(--formControlHeight) - 4)*1px);padding-bottom:0;padding-top:0}.blocks-app .ant-app .ant-card{border-radius:calc(var(--borderRadiusXL)*1px)}.blocks-app .ant-app .ant-card .ant-card-cover img,.blocks-app .ant-app .ant-card .ant-card-cover img+.ant-image-mask{border-radius:0}.blocks-app .ant-app .ant-card-hoverable{cursor:default;transition:box-shadow .3s,border-color .3s,color .3s,background-color .3s}.blocks-app .ant-app .ant-card-hoverable:hover{border-color:#0000;box-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017}.blocks-app .ant-app .editor .main__pane{overflow:hidden}.blocks-app .ant-app .element-card_block.ant-card-bordered .ant-card-cover .element-card__img-wrapper{background:linear-gradient(45deg,#0000001a 25%,#0000 0,#0000 75%,#0000001a 0),linear-gradient(45deg,#0000001a 25%,#0000 0,#0000 75%,#0000001a 0);background-position:0 0,4px 4px;background-size:8px 8px}.blocks-app .ant-app .ant-tabs-tabpane{width:100%}.blocks-app .ant-app .ant-tabs-large>.ant-tabs-nav .ant-tabs-tab{padding:18px 0}.blocks-app .ant-app .ant-tabs-content-holder{position:relative}.blocks-app .ant-app #pixie-editor ::-webkit-scrollbar-thumb{border:none}.blocks-app .ant-app .email-pane__bottom .code-mode__pane{border-top:1px solid var(--colorBorder)}.blocks-app .ant-app .container{margin:0 auto;padding:0 65px;width:100%}@media(max-width:1550px){.blocks-app .ant-app .container{padding:0 20px 0 30px}}.blocks-app .ant-app .container.email-pane__col-wrapper_pinch{padding-right:0}.blocks-app .ant-app .ant-layout,.blocks-app .ant-app body{transition:background-color .2s ease-in-out}.blocks-app .ant-app p{margin-top:0}.blocks-app .ant-app .ant-layout-content.container{padding-bottom:40px}.blocks-app .ant-app .ant-table-wrapper{max-width:1330px}.blocks-app .ant-app .ant-table{border-radius:16px;overflow:hidden}.blocks-app .ant-app .ant-picker{border-radius:6px}.blocks-app .ant-app .verticalColorpicker.ant-color-picker .ant-color-picker-inner-content{width:340px}.blocks-app .ant-app .ant-color-picker .ant-color-picker-inner-content .ant-color-picker-panel .ant-color-picker-select .ant-color-picker-palette{min-height:160px}.blocks-app .ant-app .easylogic-colorpicker{border-radius:8px}.blocks-app .ant-app .easylogic-colorpicker .colorpicker-body .color{border-radius:8px 8px 0 0}.blocks-app .ant-app .ant-page-header-heading-title{align-items:baseline;box-shadow:none;font-size:18px;line-height:24px;max-width:700px;padding:0;white-space:unset}.blocks-app .ant-app .ant-page-header-heading-title.ant-typography-edit-content{margin-top:0;overflow:unset}.blocks-app .ant-app .ant-page-header-heading-title textarea{background:none;font-size:16px;font-weight:500;line-height:20px}.blocks-app .ant-app .ant-menu{background:inherit}.blocks-app .ant-app .ant-page-header{background:inherit;margin-bottom:20px;padding:20px 0}@media(max-width:1450px){.blocks-app .ant-app .ant-page-header{padding:10px 0}}.blocks-app .ant-app .ant-page-header-heading-left{margin:0;overflow:visible}.blocks-app .ant-app .ant-page-header-heading-extra{margin:0}.blocks-app .ant-app .ant-page-header-heading-sub-title{display:block;overflow:visible}.blocks-app .ant-app .ant-input-group-addon,.blocks-app .ant-app .ant-input-number-group-addon,.blocks-app .ant-app .ant-input-number-prefix,.blocks-app .ant-app .ant-input-prefix{color:var(--colorTextBase)}.blocks-app .ant-app .ant-input-number-prefix,.blocks-app .ant-app .ant-input-prefix{margin-inline-end:11px}.blocks-app .ant-app .ant-progress-inner{background-color:#fff}.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon{border-color:var(--colorFillSecondaryDarken);border-width:calc(var(--borderWidth)*1px)}.blocks-app .ant-app .dark .ant-input-group-addon,.blocks-app .ant-app .dark .ant-input-number-group-addon{color:#ffffffa6}.blocks-app .ant-app .dark .ant-progress-inner{background-color:#ffffff14}.blocks-app .ant-app .ant-collapse>.ant-collapse-item>.ant-collapse-header{flex-direction:row-reverse}.blocks-app .ant-app .ant-tabs-tab{justify-content:center}.blocks-app .ant-app .nobr{white-space:nowrap}.blocks-app .ant-app .ant-input-number-handler-up{border-top-right-radius:5px}.blocks-app .ant-app .ant-input-number-handler-down{border-bottom-right-radius:5px}.blocks-app .ant-app .checkbox-horizontal .ant-row{align-items:center;flex-direction:row-reverse;justify-content:flex-end}.blocks-app .ant-app .checkbox-horizontal .ant-form-item-control{flex-grow:0!important;margin-right:10px;width:auto!important}.blocks-app .ant-app .checkbox-horizontal .ant-form-item-label{padding:0!important}.blocks-app .ant-app .ant-tag{line-height:22px;margin-inline-end:0}.blocks-app .ant-app .ant-select-multiple .ant-select-selection-overflow{gap:2px;padding:2px 0}.blocks-app .ant-app .ant-comment .ant-comment-nested{margin-left:24px}.blocks-app .ant-app .ant-comment .ant-comment-avatar{margin-right:8px;margin-top:-2px;position:relative}.blocks-app .ant-app .ant-comment .ant-comment-avatar img{height:24px;width:24px}.blocks-app .ant-app .ant-comment .ant-comment-inner{background:var(--colorBgLayout);border-radius:8px;display:flex;margin-bottom:12px;padding:12px}.blocks-app .ant-app .ant-modal-content{margin:20px 0}.blocks-app .ant-app img:not([srcset*="."]):not([src*="."]){display:none}.blocks-app .ant-app .dark .targetted-comment-item>.ant-comment-inner{background:rgba(112,48,212,.231)}.blocks-app .ant-app .ant-modal-close,.blocks-app .blocks-modal .ant-modal-close{line-height:1;padding:0}.blocks-app .ant-app .ant-modal-content,.blocks-app .blocks-modal .ant-modal-content{border-radius:calc(var(--borderRadiusXL)*1px);padding:0}.blocks-app .ant-app .ant-modal-content .ant-modal-header,.blocks-app .blocks-modal .ant-modal-content .ant-modal-header{padding:20px 24px 0}.blocks-app .ant-app .ant-modal-content .ant-modal-footer,.blocks-app .blocks-modal .ant-modal-content .ant-modal-footer{padding:0 24px 24px}.blocks-app .ant-app .ant-modal-content .ant-tabs-nav-list,.blocks-app .blocks-modal .ant-modal-content .ant-tabs-nav-list{padding-left:24px}.blocks-app .ant-app .ant-modal-content .ant-tabs-content-holder,.blocks-app .blocks-modal .ant-modal-content .ant-tabs-content-holder{padding:0 24px}.blocks-app .ant-app .ant-modal-title,.blocks-app .blocks-modal .ant-modal-title{font-size:calc(var(--fontSizeLG)*1.125px);font-weight:500}.blocks-app .ant-app .ant-modal-confirm-body-wrapper,.blocks-app .blocks-modal .ant-modal-confirm-body-wrapper{padding:20px 24px}.blocks-app .ant-app .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before,.blocks-app .blocks-modal .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before{background:linear-gradient(180deg,var(--colorBgContainerDisabled),#0000 40%);background-position:0 -2px;background-repeat:no-repeat;border-bottom:none;border-top:1px solid var(--colorBorderSecondary);bottom:-20px;height:20px;z-index:1}.blocks-app .ant-app .ant-tabs-top[style*=vh]>.ant-tabs-nav:before,.blocks-app .blocks-modal .ant-tabs-top[style*=vh]>.ant-tabs-nav:before{background:none}.dark .blocks-app .ant-app .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before,.dark .blocks-app .blocks-modal .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before{background:linear-gradient(180deg,var(--colorBgBase) -100%,#0000 50%)}.blocks-app .ant-app .ant-tabs-top>.ant-tabs-nav,.blocks-app .blocks-modal .ant-tabs-top>.ant-tabs-nav{margin-bottom:20px}.blocks-app .ant-app .ant-input-affix-wrapper-focused.text-area-input-hybrid,.blocks-app .blocks-modal .ant-input-affix-wrapper-focused.text-area-input-hybrid{box-shadow:none!important}.blocks-app .ant-app .ant-btn.ant-btn-lg,.blocks-app .ant-app .ant-input-affix-wrapper-lg,.blocks-app .ant-app .ant-input-lg,.blocks-app .ant-app .ant-select-multiple.ant-select-lg .ant-select-selector,.blocks-app .ant-app .ant-select-single.ant-select-lg .ant-select-selector,.blocks-app .blocks-modal .ant-btn.ant-btn-lg,.blocks-app .blocks-modal .ant-input-affix-wrapper-lg,.blocks-app .blocks-modal .ant-input-lg,.blocks-app .blocks-modal .ant-select-multiple.ant-select-lg .ant-select-selector,.blocks-app .blocks-modal .ant-select-single.ant-select-lg .ant-select-selector{border-radius:calc(var(--borderRadius)*1px)}.blocks-app .ant-app .ant-select-single.ant-select-lg .ant-select-selection-item,.blocks-app .blocks-modal .ant-select-single.ant-select-lg .ant-select-selection-item{font-size:16px}.blocks-app .ant-app .ant-select-selection-item,.blocks-app .blocks-modal .ant-select-selection-item{color:var(--colorText)}.blocks-app .ant-app .ant-tabs.email-pane__col_settings-inner>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .ant-app .ant-tabs.email-pane__col_settings-inner>div>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .blocks-modal .ant-tabs.email-pane__col_settings-inner>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .blocks-modal .ant-tabs.email-pane__col_settings-inner>div>.ant-tabs-nav .ant-tabs-nav-operations{pointer-events:none;position:absolute;visibility:hidden}.blocks-app .ant-app .ant-alert-info,.blocks-app .blocks-modal .ant-alert-info{background-color:var(--colorPrimaryBg);border:1px solid var(--colorPrimaryBorder)}.blocks-app .ant-tooltip .ant-tooltip-inner{border-radius:calc((var(--borderRadius)/2 + 2)*1px);font-size:12px;min-height:24px;padding:2px 8px}.blocks-app .ant-tooltip-placement-left{margin-right:20px}.blocks-app .transition-enter{opacity:0}.blocks-app .transition-enter-active{opacity:1;transition:opacity .3s ease-in}.blocks-app .transition-exit{opacity:1}.blocks-app .transition-exit-active{opacity:0;transition:opacity .3s ease-in}.blocks-app .ant-divider.ant-divider-vertical{height:calc(var(--formControlHeight)*1px);line-height:calc((var(--formControlHeight) - 2)*1px);text-align:center}.blocks-app #carrotquest-messenger-collapsed-container{z-index:10!important}.blocks-app .carrot-messenger-frame-container{z-index:11!important}.blocks-app .code-mode,.blocks-app .default-mode__pane_editor{z-index:20}.blocks-app .ant-notification-notice-wrapper{margin-right:10px}.blocks-app .ant-notification .ant-notification-notice-wrapper .ant-notification-notice-closable .ant-notification-notice-message{margin-bottom:0;padding-inline-end:24px}@media(max-height:700px){.blocks-app .ant-color-picker-presets .ant-collapse-item:last-child{display:none}}@media only screen and (max-device-width:480px),only screen and (max-width:480px){.blocks-app .email-pane_only_code_mode_mobile .email-pane__row .ant-col:first-child{display:none}.blocks-app .email-pane_only_code_mode_mobile .email-pane__row .ant-col:last-child{width:100%!important}}
1
+ .blocks-app .blocks-plugin{zoom:var(--appZoom)}.blocks-app .blocks-plugin .ant-layout-sider-children{display:none}.blocks-app *,.blocks-app .ai-response-variant[class*=ai-response] *,.blocks-app ul.ai-roles-list *,.blocks-app ul.buttons-variants [class*=ai-response]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.blocks-app .codicon[class*=codicon-]{font:normal normal normal 16px/1 codicon!important}.blocks-app .ant-comment-content-detail,.blocks-app .ant-table-cell,.blocks-app .ant-table-cell>a,.blocks-app .element-card__title,.blocks-app [class*=ai-response],.blocks-app [class*=ai-response] *{user-select:text;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text}.blocks-app .code-mode__pane *{user-select:auto;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto}.blocks-app .ant-form-item .ant-form-item-control-input,.blocks-app .ant-input,.blocks-app .ant-input-number-input{min-height:calc((var(--formControlHeight) - var(--borderWidth)*2)*1px)}.blocks-app .ant-input-number,.blocks-app .ant-input-number-group>.ant-input-number:first-child,.blocks-app .ant-select:not(.ant-select-customize-input) .ant-select-selector{border-color:var(--colorFillSecondaryDarken);border-width:calc(var(--borderWidth)*1px)}.blocks-app .ant-alert-info,.blocks-app .ant-input,.blocks-app .ant-input-affix-wrapper,.blocks-app .ant-input-number,.blocks-app .ant-input-number-affix-wrapper,.blocks-app .ant-select:not(.ant-select-customize-input) .ant-select-selector{border-width:calc(var(--borderWidth)*1px)}.blocks-app .ant-input-affix-wrapper:hover,.blocks-app .ant-input-number-affix-wrapper:hover,.blocks-app .ant-input-number-affix-wrapper:not(.ant-input-number-affix-wrapper-disabled):hover,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):hover .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):hover .ant-input-number-group-addon:last-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):hover>.ant-input-number:first-child,.blocks-app .ant-input-number:hover,.blocks-app .ant-input:hover,.blocks-app .ant-picker:hover,.blocks-app .ant-select:not(.ant-select-customize-input):hover .ant-select-selector,.blocks-app .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer):hover .ant-select-selector{border-color:var(--borderColorHover)}.blocks-app .ant-input-affix-wrapper:focus,.blocks-app .ant-input-affix-wrapper:focus-within,.blocks-app .ant-input-number-affix-wrapper:focus,.blocks-app .ant-input-number-affix-wrapper:focus-within,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number-group-addon:last-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-group-addon:last-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within>.ant-input-number:first-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus>.ant-input-number:first-child,.blocks-app .ant-input-number:focus,.blocks-app .ant-input-number:focus-within,.blocks-app .ant-input:focus,.blocks-app .ant-input:focus-within,.blocks-app .ant-picker-focused.ant-picker,.blocks-app .ant-select-focused.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector,.blocks-app .ant-select:focus .ant-select-selector,.blocks-app .ant-select:focus-within .ant-select-selector{border-color:var(--colorPrimaryBorder)}.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number-affix-wrapper,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper{box-shadow:none}.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within{border-radius:calc(var(--borderRadius)*1px);box-shadow:0 0 0 2px #0591ff1a}.dark .blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus,.dark .blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within{box-shadow:0 0 0 2px #000e29ab}.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within>.ant-input-number:first-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus>.ant-input-number:first-child{border-right-color:var(--colorFillSecondaryDarken)}.blocks-app .ant-input-affix-wrapper,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled) .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled) .ant-input-number-group-addon:last-child,.blocks-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled)>.ant-input-number:first-child{transition:all .2s linear .2s}.blocks-app .ant-input-affix-wrapper{border-color:var(--colorFillSecondaryDarken);padding-bottom:0;padding-top:0}.blocks-app .ant-input-number .ant-input-number-input,.blocks-app .ant-input-number-affix-wrapper input.ant-input-number-input{padding-bottom:0;padding-top:0}.blocks-app,.blocks-app .ant-app,.blocks-app .ant-app .main,.blocks-app .ant-app .main__pane-content{height:100%}.blocks-app .ant-app [role=button],.blocks-app .ant-app a,.blocks-app .ant-app area,.blocks-app .ant-app button,.blocks-app .ant-app input:not([type=range]),.blocks-app .ant-app label,.blocks-app .ant-app select,.blocks-app .ant-app summary,.blocks-app .ant-app textarea{touch-action:manipulation}.blocks-app .ant-app .ant-btn.ant-btn-sm{height:calc((var(--formControlHeight) - 4)*1px);line-height:calc((var(--formControlHeight) - 4)*1px);padding:0 7px}.blocks-app .ant-app ::-webkit-scrollbar{height:10px;width:10px}.blocks-app .ant-app ::-webkit-scrollbar-corner,.blocks-app .ant-app ::-webkit-scrollbar-track{background:#0000}.blocks-app .ant-app ::-webkit-scrollbar-thumb{background-clip:content-box;border:3px solid #0000;border-radius:8px;box-shadow:inset 0 0 0 10px var(--colorFillSecondaryDarken);min-height:20px;-webkit-transition:all .2s;transition:all .2s}.blocks-app .ant-app ::-webkit-scrollbar-thumb:hover{border-width:1px;box-shadow:inset 0 0 0 10px var(--colorTextDisabled)}.blocks-app .ant-app textarea::-webkit-scrollbar-track{margin:10px}.blocks-app .ant-app .ant-btn-default{box-shadow:none}.blocks-app .ant-app .ant-btn>span.anticon{display:inline-flex;justify-content:center}.blocks-app .ant-app .ant-pagination{margin-top:30px}.blocks-app .ant-app .ant-table-wrapper .ant-table{border-radius:calc(var(--borderRadiusXL)*1px);overflow:hidden}.blocks-app .ant-app .email-pane__content-col .ant-btn-default,.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper,.blocks-app .ant-app .email-pane__content-col .selected-td-form__button:not(.ant-btn-text){background:var(--colorFillSecondary);border:1px solid #0000!important}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){background:var(--colorFillSecondary);border-color:#0000;color:var(--colorPrimary)}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button{min-height:calc(var(--formControlHeight)*1px);min-width:calc(var(--formControlHeight)*1px);padding:0 8px;position:relative}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button.ghost-button:before{background-color:#0000;content:"";cursor:pointer;height:50px;left:-338px;position:absolute;top:-9px;width:385px;z-index:1}.blocks-app .ant-app .email-pane__content-col .ant-btn-default:not(:disabled):not(.ant-btn-disabled,.email-pane__content-col .selected-td-form__button--active):hover{background:var(--colorFillSecondaryDarken);border-color:#0000;color:inherit}.blocks-app .ant-app .email-pane__content-col .ant-btn-default.selected-td-form__button--active,.blocks-app .ant-app .email-pane__content-col .selected-td-form__button--active{background:var(--colorPrimaryBg);border-color:#0000;color:var(--colorPrimary)}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button--active:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .ant-app .ant-input-number-affix-wrapper{border-color:var(--colorFillSecondaryDarken);width:inherit}.blocks-app .ant-app .ant-btn,.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper{height:calc(var(--formControlHeight)*1px);line-height:calc((var(--formControlHeight) - 2)*1px);min-width:calc(var(--formControlHeight)*1px);padding:0 9px;text-align:center}.blocks-app .ant-app .ant-btn.ant-btn-icon-only{min-width:calc(var(--formControlHeight)*1px);padding:0;width:calc(var(--formControlHeight)*1px)}.blocks-app .ant-app .ant-btn.ant-btn-icon-only .ant-btn-icon{align-items:center;display:inline-flex;height:100%}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked):hover{background:var(--colorFillSecondaryDarken);color:inherit}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper.ant-radio-button-wrapper-checked{background:var(--colorPrimaryBg)}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper.ant-radio-button-wrapper-checked:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .ant-app .ant-input-number{width:100%}.blocks-app .ant-app .email-pane__content-col .ant-form-item{margin-bottom:calc(var(--formItemMarginBottomMD)*1px)}.blocks-app .ant-app .email-pane__content-col .ant-form-item.form-item-margin-xs{margin-bottom:calc(var(--formItemMarginBottomXS)*1px)}.blocks-app .ant-app .form-group-title{padding:15px 0}.blocks-app .ant-app .selected-td-form__br-input{margin-bottom:8px!important}.blocks-app .ant-app .ant-input-affix-wrapper .ant-input-prefix,.blocks-app .ant-app .ant-input-number-affix-wrapper .ant-input-number-prefix{margin-inline-end:4px}.blocks-app .ant-app .addon-text-content{font-size:11px;font-weight:600}.blocks-app .ant-app h4.form-group-title{background-color:var(--colorFillSecondary);font-size:16px;font-weight:500;margin:0 -24px 15px;padding:10px 24px}.blocks-app .ant-app .ant-input-affix-wrapper>input.ant-input{border-radius:4px;padding:0 6px}.blocks-app .ant-app .ant-input-affix-wrapper-lg{border-radius:calc(var(--borderRadius)*1px)}.blocks-app .ant-app .ant-checkbox .ant-checkbox-inner{border-radius:calc(var(--borderRadiusSM)*.5px)}.blocks-app .ant-app .ant-btn.ant-btn-lg{border-radius:calc(var(--borderRadius)*1px)}.blocks-app .ant-app .ant-input-affix-wrapper-focused .ant-input-affix-wrapper-focused,.blocks-app .ant-app .ant-input-affix-wrapper-focused.text-area-input-hybrid{box-shadow:none}.blocks-app .ant-app .ant-select-single{height:34px}.blocks-app .ant-app .ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-app .ant-input-number-group>.ant-input-number:first-child{border-right-color:#0000;border-right-width:1px!important;transition:all .2s linear .2s}.blocks-app .ant-app .ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child):hover,.blocks-app .ant-app .ant-input-number-group>.ant-input-number:first-child:hover{border-right-color:var(--colorFillSecondaryDarken)}.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector{border-left-color:#0000}.blocks-app .ant-app .ant-input-number-group:not(.ant-input-number-wrapper-disabled) .ant-input-number-group-addon:last-child{background:none}.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon:last-child .ant-select-single.ant-select-show-arrow .ant-select-selection-item{padding-inline-end:13px}.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon,.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon:last-child .ant-select-selection-item{color:var(--colorTextQuaternary)}.blocks-app .ant-app .ant-select .ant-select-arrow .anticon{font-size:10px;margin-top:2px}.blocks-app .ant-app .ant-select.ant-cascader .ant-select-arrow .anticon{font-size:14px;margin-top:0}.blocks-app .ant-app .ant-form-item-switch-label{color:var(--colorTextSecondary)}.blocks-app .ant-app .input-draggable .ant-input-number-affix-wrapper{cursor:ew-resize}.blocks-app .ant-app .merge-tags.ant-cascader-dropdown .ant-cascader-menu{height:auto;max-height:210px}.blocks-app .ant-app .merge-tags.ant-cascader-dropdown ul:not(:first-child) .ant-cascader-menu-item{max-width:250px}.blocks-app .ant-app .merge-tags.ant-cascader-dropdown ul:first-child .ant-cascader-menu-item{max-width:320px}.blocks-app .ant-app .merge-tags.ant-cascader-dropdown .ant-cascader-menu-item>div,.blocks-app .ant-app .merge-tags.ant-cascader-dropdown .ant-cascader-menu-item>div>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.blocks-app .ant-app .ant-segmented{border-radius:calc(var(--borderRadius)*1.2px)}.blocks-app .ant-app .ant-segmented .ant-segmented-group{justify-content:space-between}.blocks-app .ant-app .ant-segmented .ant-segmented-item{border-radius:calc(var(--borderRadius)*1px)}.blocks-app .ant-app .email-pane__content-col .ant-segmented,.blocks-app .ant-app header .ant-segmented{background-color:var(--colorFillSecondary)}.blocks-app .ant-app .selected-element-panel-content .ant-segmented .ant-segmented-item-label{line-height:calc((var(--formControlHeight) - 4)*1px);min-height:calc((var(--formControlHeight) - 4)*1px);padding-bottom:0;padding-top:0}.blocks-app .ant-app .ant-card{border-radius:calc(var(--borderRadiusXL)*1px)}.blocks-app .ant-app .ant-card .ant-card-cover img,.blocks-app .ant-app .ant-card .ant-card-cover img+.ant-image-mask{border-radius:0}.blocks-app .ant-app .ant-card-hoverable{cursor:default;transition:box-shadow .3s,border-color .3s,color .3s,background-color .3s}.blocks-app .ant-app .ant-card-hoverable:hover{border-color:#0000;box-shadow:0 1px 2px -2px #00000029,0 3px 6px 0 #0000001f,0 5px 12px 4px #00000017}.blocks-app .ant-app .editor .main__pane{overflow:hidden}.blocks-app .ant-app .element-card_block.ant-card-bordered .ant-card-cover .element-card__img-wrapper{background:linear-gradient(45deg,#0000001a 25%,#0000 0,#0000 75%,#0000001a 0),linear-gradient(45deg,#0000001a 25%,#0000 0,#0000 75%,#0000001a 0);background-position:0 0,4px 4px;background-size:8px 8px}.blocks-app .ant-app .ant-tabs-tabpane{width:100%}.blocks-app .ant-app .ant-tabs-large>.ant-tabs-nav .ant-tabs-tab{padding:18px 0}.blocks-app .ant-app .ant-tabs-content-holder{position:relative}.blocks-app .ant-app #pixie-editor ::-webkit-scrollbar-thumb{border:none}.blocks-app .ant-app .email-pane__bottom .code-mode__pane{border-top:1px solid var(--colorBorder)}.blocks-app .ant-app .container{margin:0 auto;padding:0 65px;width:100%}@media(max-width:1550px){.blocks-app .ant-app .container{padding:0 20px 0 30px}}.blocks-app .ant-app .container.email-pane__col-wrapper_pinch{padding-right:0}.blocks-app .ant-app .ant-layout,.blocks-app .ant-app body{transition:background-color .2s ease-in-out}.blocks-app .ant-app p{margin-top:0}.blocks-app .ant-app .ant-layout-content.container{padding-bottom:40px}.blocks-app .ant-app .ant-table-wrapper{max-width:1330px}.blocks-app .ant-app .ant-table{border-radius:16px;overflow:hidden}.blocks-app .ant-app .ant-picker{border-radius:6px}.blocks-app .ant-app .verticalColorpicker.ant-color-picker .ant-color-picker-inner-content{width:340px}.blocks-app .ant-app .ant-color-picker .ant-color-picker-inner-content .ant-color-picker-panel .ant-color-picker-select .ant-color-picker-palette{min-height:160px}.blocks-app .ant-app .easylogic-colorpicker{border-radius:8px}.blocks-app .ant-app .easylogic-colorpicker .colorpicker-body .color{border-radius:8px 8px 0 0}.blocks-app .ant-app .ant-page-header-heading-title{align-items:baseline;box-shadow:none;font-size:18px;line-height:24px;max-width:700px;padding:0;white-space:unset}.blocks-app .ant-app .ant-page-header-heading-title.ant-typography-edit-content{margin-top:0;overflow:unset}.blocks-app .ant-app .ant-page-header-heading-title textarea{background:none;font-size:16px;font-weight:500;line-height:20px}.blocks-app .ant-app .ant-menu{background:inherit}.blocks-app .ant-app .ant-page-header{background:inherit;margin-bottom:20px;padding:20px 0}@media(max-width:1450px){.blocks-app .ant-app .ant-page-header{padding:10px 0}}.blocks-app .ant-app .ant-page-header-heading-left{margin:0;overflow:visible}.blocks-app .ant-app .ant-page-header-heading-extra{margin:0}.blocks-app .ant-app .ant-page-header-heading-sub-title{display:block;overflow:visible}.blocks-app .ant-app .ant-input-group-addon,.blocks-app .ant-app .ant-input-number-group-addon,.blocks-app .ant-app .ant-input-number-prefix,.blocks-app .ant-app .ant-input-prefix{color:var(--colorTextBase)}.blocks-app .ant-app .ant-input-number-prefix,.blocks-app .ant-app .ant-input-prefix{margin-inline-end:11px}.blocks-app .ant-app .ant-progress-inner{background-color:#fff}.blocks-app .ant-app .ant-input-number-group .ant-input-number-group-addon{border-color:var(--colorFillSecondaryDarken);border-width:calc(var(--borderWidth)*1px)}.blocks-app .ant-app .dark .ant-input-group-addon,.blocks-app .ant-app .dark .ant-input-number-group-addon{color:#ffffffa6}.blocks-app .ant-app .dark .ant-progress-inner{background-color:#ffffff14}.blocks-app .ant-app .ant-collapse>.ant-collapse-item>.ant-collapse-header{flex-direction:row-reverse}.blocks-app .ant-app .ant-tabs-tab{justify-content:center}.blocks-app .ant-app .nobr{white-space:nowrap}.blocks-app .ant-app .ant-input-number-handler-up{border-top-right-radius:5px}.blocks-app .ant-app .ant-input-number-handler-down{border-bottom-right-radius:5px}.blocks-app .ant-app .checkbox-horizontal .ant-row{align-items:center;flex-direction:row-reverse;justify-content:flex-end}.blocks-app .ant-app .checkbox-horizontal .ant-form-item-control{flex-grow:0!important;margin-right:10px;width:auto!important}.blocks-app .ant-app .checkbox-horizontal .ant-form-item-label{padding:0!important}.blocks-app .ant-app .ant-tag{line-height:22px;margin-inline-end:0}.blocks-app .ant-app .ant-select-multiple .ant-select-selection-overflow{gap:2px;padding:2px 0}.blocks-app .ant-app .ant-comment .ant-comment-nested{margin-left:24px}.blocks-app .ant-app .ant-comment .ant-comment-avatar{margin-right:8px;margin-top:-2px;position:relative}.blocks-app .ant-app .ant-comment .ant-comment-avatar img{height:24px;width:24px}.blocks-app .ant-app .ant-comment .ant-comment-inner{background:var(--colorBgLayout);border-radius:8px;display:flex;margin-bottom:12px;padding:12px}.blocks-app .ant-app .ant-modal-content{margin:20px 0}.blocks-app .ant-app img:not([srcset*="."]):not([src*="."]){display:none}.blocks-app .ant-app .dark .targetted-comment-item>.ant-comment-inner{background:rgba(112,48,212,.231)}.blocks-app .ant-app .ant-modal-close,.blocks-app .blocks-modal .ant-modal-close{line-height:1;padding:0}.blocks-app .ant-app .ant-modal-content,.blocks-app .blocks-modal .ant-modal-content{border-radius:calc(var(--borderRadiusXL)*1px);padding:0}.blocks-app .ant-app .ant-modal-content .ant-modal-header,.blocks-app .blocks-modal .ant-modal-content .ant-modal-header{padding:20px 24px 0}.blocks-app .ant-app .ant-modal-content .ant-modal-footer,.blocks-app .blocks-modal .ant-modal-content .ant-modal-footer{padding:0 24px 24px}.blocks-app .ant-app .ant-modal-content .ant-tabs-nav-list,.blocks-app .blocks-modal .ant-modal-content .ant-tabs-nav-list{padding-left:24px}.blocks-app .ant-app .ant-modal-content .ant-tabs-content-holder,.blocks-app .blocks-modal .ant-modal-content .ant-tabs-content-holder{padding:0 24px}.blocks-app .ant-app .ant-modal-title,.blocks-app .blocks-modal .ant-modal-title{font-size:calc(var(--fontSizeLG)*1.125px);font-weight:500}.blocks-app .ant-app .ant-modal-confirm-body-wrapper,.blocks-app .blocks-modal .ant-modal-confirm-body-wrapper{padding:20px 24px}.blocks-app .ant-app .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before,.blocks-app .blocks-modal .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before{background:linear-gradient(180deg,var(--colorBgContainerDisabled),#0000 40%);background-position:0 -2px;background-repeat:no-repeat;border-bottom:none;border-top:1px solid var(--colorBorderSecondary);bottom:-20px;height:20px;z-index:1}.blocks-app .ant-app .ant-tabs-top[style*=vh]>.ant-tabs-nav:before,.blocks-app .blocks-modal .ant-tabs-top[style*=vh]>.ant-tabs-nav:before{background:none}.dark .blocks-app .ant-app .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before,.dark .blocks-app .blocks-modal .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before{background:linear-gradient(180deg,var(--colorBgBase) -100%,#0000 50%)}.blocks-app .ant-app .ant-tabs-top>.ant-tabs-nav,.blocks-app .blocks-modal .ant-tabs-top>.ant-tabs-nav{margin-bottom:20px}.blocks-app .ant-app .ant-input-affix-wrapper-focused.text-area-input-hybrid,.blocks-app .blocks-modal .ant-input-affix-wrapper-focused.text-area-input-hybrid{box-shadow:none!important}.blocks-app .ant-app .ant-btn.ant-btn-lg,.blocks-app .ant-app .ant-input-affix-wrapper-lg,.blocks-app .ant-app .ant-input-lg,.blocks-app .ant-app .ant-select-multiple.ant-select-lg .ant-select-selector,.blocks-app .ant-app .ant-select-single.ant-select-lg .ant-select-selector,.blocks-app .blocks-modal .ant-btn.ant-btn-lg,.blocks-app .blocks-modal .ant-input-affix-wrapper-lg,.blocks-app .blocks-modal .ant-input-lg,.blocks-app .blocks-modal .ant-select-multiple.ant-select-lg .ant-select-selector,.blocks-app .blocks-modal .ant-select-single.ant-select-lg .ant-select-selector{border-radius:calc(var(--borderRadius)*1px)}.blocks-app .ant-app .ant-select-single.ant-select-lg .ant-select-selection-item,.blocks-app .blocks-modal .ant-select-single.ant-select-lg .ant-select-selection-item{font-size:16px}.blocks-app .ant-app .ant-select-selection-item,.blocks-app .blocks-modal .ant-select-selection-item{color:var(--colorText)}.blocks-app .ant-app .ant-tabs.email-pane__col_settings-inner>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .ant-app .ant-tabs.email-pane__col_settings-inner>div>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .blocks-modal .ant-tabs.email-pane__col_settings-inner>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .blocks-modal .ant-tabs.email-pane__col_settings-inner>div>.ant-tabs-nav .ant-tabs-nav-operations{pointer-events:none;position:absolute;visibility:hidden}.blocks-app .ant-app .ant-alert-info,.blocks-app .blocks-modal .ant-alert-info{background-color:var(--colorPrimaryBg);border:1px solid var(--colorPrimaryBorder)}.blocks-app .ant-tooltip .ant-tooltip-inner{border-radius:calc((var(--borderRadius)/2 + 2)*1px);font-size:12px;min-height:24px;padding:2px 8px}.blocks-app .ant-tooltip-placement-left{margin-right:20px}.blocks-app .transition-enter{opacity:0}.blocks-app .transition-enter-active{opacity:1;transition:opacity .3s ease-in}.blocks-app .transition-exit{opacity:1}.blocks-app .transition-exit-active{opacity:0;transition:opacity .3s ease-in}.blocks-app .ant-divider.ant-divider-vertical{height:calc(var(--formControlHeight)*1px);line-height:calc((var(--formControlHeight) - 2)*1px);text-align:center}.blocks-app #carrotquest-messenger-collapsed-container{z-index:10!important}.blocks-app .carrot-messenger-frame-container{z-index:11!important}.blocks-app .code-mode,.blocks-app .default-mode__pane_editor{z-index:20}.blocks-app .ant-notification-notice-wrapper{margin-right:10px}.blocks-app .ant-notification .ant-notification-notice-wrapper .ant-notification-notice-closable .ant-notification-notice-message{margin-bottom:0;padding-inline-end:24px}@media(max-height:700px){.blocks-app .ant-color-picker-presets .ant-collapse-item:last-child{display:none}}@media only screen and (max-device-width:480px),only screen and (max-width:480px){.blocks-app .email-pane_only_code_mode_mobile .email-pane__row .ant-col:first-child{display:none}.blocks-app .email-pane_only_code_mode_mobile .email-pane__row .ant-col:last-child{width:100%!important}}
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[1399],{83953:(e,t,a)=>{a.d(t,{A:()=>k});var o=a(92810),i=a(66170),r=a(66726),s=a(43005),l=a(71157),n=a(64617),d=a(45934),c=a(23287),u=a(48409),m=a.n(u),_=a(87701),v=a(84568),p=a(93563),h=a(64037),E=a(7760),g=a(32269),f=a(47381),R=a(32411),y=a(85163),b=a(70082);const C=({block:e,isEditableRights:t,rightCol:a,autoSaveBlockResult:u})=>{const{__:C}=(0,c.s9)(),{projectId:k,blockId:A}=(0,n.g)();let T=(0,d.d4)(E.Fv),O=(0,d.d4)(E.Fv),N=(0,d.wA)();const I=(0,l.hN)(),S=(0,R.fn)(),j=(0,d.Pj)(),[L,w]=(0,o.useState)(!1),[G,$]=(0,o.useState)(null),[x,B]=(0,o.useState)(!1),[K,D]=(0,o.useState)(!1);(0,o.useEffect)((()=>{var e,t;null!==(e=window)&&void 0!==e&&null!==(t=e.navigator)&&void 0!==t&&t.userAgent.includes("Macintosh")&&$(!0)}),[]);const{data:V,refetch:M}=(0,v.fo)(+k,{skip:!+k}),[P]=(0,_.Gr)(),[U,Y]=(0,_.OZ)(),[F,z]=(0,_.pP)(),[q]=(0,v.OD)(),X=`project_${k}`,H=V&&(0,g._q)(V,y.YY).find((e=>e.name===X)),Z=V&&(0,g.HT)(V,y.YY),J=(0,o.useCallback)((a=>{var o,i;if(B(!0),!t&&e.lock&&K)return I.error({id:"BLOCK_ACCESS_TO_LOCKED_ERROR",message:C("No access to edit the letter."),placement:"bottomRight",data:(0,l.x_)(e)}),void B(!1);if(((null===(o=e.tags)||void 0===o?void 0:o.length)||(null===(i=e.blocktags)||void 0===i?void 0:i.length))>10&&K)return I.error({id:"BLOCK_TOO_MANY_TAGS_ERROR",message:C("Maximum 10 tags available."),placement:"bottomRight",data:(0,l.x_)(e)}),void B(!1);if(""===e.type)return I.error({message:C("Set the type"),description:C("Please set the 'Type' field in the Settings section."),placement:"bottomRight"}),void B(!1);const r=t=>{var o;const i=null===(o=e.tags)||void 0===o?void 0:o.map((e=>{const a=null===Z||void 0===Z?void 0:Z.find((t=>t.name===e));return a?a.id:P({name:e,parent:t}).then((({error:t,data:a})=>{var o,i;return 400===(null===t||void 0===t?void 0:t.status)?null===t||void 0===t||null===(o=t.data)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.term_id:a?a.id:void(t&&(I.fromError("TAG_CREATING_ERROR",e,t),B(!1)))}))})),r=(o=null)=>{const i=a=>{j.dispatch(p.kE.endpoints.getTags.initiate({parent:t})),M(),K&&(I.success({id:"BLOCK_EDITING_SUCCESS",message:C("The block was successfully saved.","block"),data:(0,l.x_)(e)}),B(!1)),fetch(((e,t,a,o)=>{let i="dev-backend-1.emailmaker.ru";const r=o?`&cacheControl=true&cache-hash=${m()(o)}`:"";return console.log("projectURL",i),`https://scr.emcdn.ru/screenshot?delay=1000&width=800&fullPage=true&deviceScaleFactor=0.8&format=jpg&clearCache=true${r}&url=${encodeURIComponent(`https://${i}/get${e}/${a}?secret_hash=${m()(`${t}${a}${y.KI}`)}&raw=true`)}`})(y.IE,k,a.id,a.modified),{mode:"no-cors"}).then((()=>{}))},r=(0,g._q)(e,y.zh).filter((t=>(o||e.blocktags).includes(t.id))).map((e=>e.name));e.isNew?z.status!==y.eG&&F({source:a,title:null===e.title?C("New block title"):e.title,project:e.project,type:e.type?e.type:"Other",description:e.description,html:(null===S||void 0===S?void 0:S.getValue())||"",blocktags:o?o.join(","):e.blocktags,tags:r}).then((({data:t,error:a})=>{a?(I.fromError("BLOCK_CREATING_ERROR",{title:e.title,html:(null===S||void 0===S?void 0:S.getValue())||""},a),B(!1)):i(t)})):Y.status!==y.eG&&U({blockId:e.id,source:a,title:e.title,project:e.project,type:e.type?e.type:"Other",description:e.description,html:(null===S||void 0===S?void 0:S.getValue())||"",blocktags:o||e.blocktags,tags:r}).then((({data:t,error:a})=>{a&&K?(I.fromError("BLOCK_EDITING_ERROR",(0,l.x_)(e),a),B(!1)):i(t)}))};i?Promise.all(i).then((e=>r(e))):r(null)};B(!0),H?r(H.id):P({name:X}).then((async({data:t,error:a})=>{if(a)I.fromError("FOLDER_CREATING_ERROR",X,a),B(!1);else{const{data:a,error:o}=await q({projectId:k,blocktags:t.id});o?(I.fromError("BLOCK_CLONING_ERROR",(0,l.x_)(e),o),B(!1)):a&&r(a.blocktags&&a.blocktags[0])}})).catch((e=>console.error(e)))}),[z.status,F,Y.status,U,e,t,P,q,k,C,K,S,I,Z,M,j,H,X]);(0,o.useEffect)((()=>{K&&(J(),D(!1))}),[K,J]);const Q=(0,o.useCallback)((e=>{(e.ctrlKey||e.metaKey)&&83===e.keyCode&&(e.preventDefault(),D(!0))}),[]);(0,o.useEffect)((()=>(document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)})),[Q]);const W=(0,o.useCallback)((e=>{const t=e.data.operation,a=e.data.action;t===y.Ru.APPLICATION_ACTION&&"save_email"===a&&D(!0)}),[]);return(0,h.A)(W),(0,o.useEffect)((()=>{z.isError&&(B(!1),(0,g.p6)(z,I))}),[N,z,I]),(0,o.useEffect)((()=>{const e=setTimeout((()=>{w(!0)}),1e4);return()=>{clearTimeout(e)}}),[]),(0,o.useEffect)((()=>{e.isNew&&!A&&L&&(J(),w(!1))}),[L,e,J,A]),(0,b.jsx)(r.A,{title:C(G?"Save by \u2318S":"Save by Ctrl+S"),placement:a?"right":"bottomRight",children:(0,b.jsx)(s.Ay,{type:"primary",block:a,className:"em-analytics__block-save",icon:(0,b.jsx)(i.A,{}),onClick:()=>{(0,f.d)({event:"click",action:"save_block"}),D(!0)},loading:Y.isLoading||q.isLoading||z.isLoading||x||u,children:a||T||O?"":C("Save")})})};C.defaultProps={block:null};const k=C},59287:(e,t,a)=>{a.d(t,{A:()=>w,W:()=>j});var o=a(92810),i=a(66726),r=a(43005),s=a(81e3),l=a(71157),n=a(66170),d=a(64617),c=a(45934),u=a(48409),m=a.n(u),_=a(23287),v=a(17581),p=a(84568),h=a(93563),E=a(64037),g=a(8493),f=a(32269),R=a(56991),y=a(47381),b=a(32411),C=a(13329),k=a(93982),A=a(85163),T=a(90070),O=a(13522),N=a(28316),I=a(70082);const S="KEYBOARD",j=(e,t,a,o,i=!0,r=.8,s)=>`${window.location.host.indexOf("localhost")>=0?`${window.location.protocol}//${window.location.host}`:"https://scr.emcdn.ru"}/screenshot?delay=1000&width=800${s?"":"&fullPage=true"}&deviceScaleFactor=${r}&format=jpg&clearCache=${i}${o?`&cacheControl=true&cache-hash=${m()(o)}`:""}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${e}/${a}?secret_hash=${m()(`${t}${a}${A.KI}`)}&raw=true`)}${s?`&selector=${s}`:""}`,L=({email:e,isEditableRights:t,autoSaveEmailResult:a})=>{var u,m;let L=(0,c.wA)(),w=(0,d.Zp)();const{__:G,_x:$}=(0,_.s9)(),{projectId:x,emailId:B}=(0,d.g)(),K=(0,T.p6)(),D=(0,l.hN)(),V=(0,R.rD)(),M=(0,b.fn)(),P=(0,c.Pj)(),[U,Y]=(0,o.useState)(!1),[F,z]=(0,o.useState)(null);(0,o.useEffect)((()=>{var e,t;null!==(e=window)&&void 0!==e&&null!==(t=e.navigator)&&void 0!==t&&t.userAgent.includes("Macintosh")&&z(!0)}),[]);const{data:q,refetch:X}=(0,p.fo)(+x,{skip:!+x}),{data:H,refetch:Z}=(0,h.Jz)({parent:null===(u=q.folder)||void 0===u?void 0:u[0]},{skip:!(null!==(m=q.folder)&&void 0!==m&&m[0])}),[J]=(0,v.Gr)(),[Q,W]=(0,v.dN)(),[ee,te]=(0,v.Kh)(),[ae]=(0,p.OD)(),[oe,ie]=(0,o.useState)(!1),[re,se]=(0,o.useState)(""),le=`project_${x}`,ne=q&&(0,f._q)(q,A.zh).find((e=>e.name===le)),de=q&&(0,f.HT)(q,A.zh),ce=(0,k.ml)(O.A.BEFORE_SAVE_EMAIL),ue=(0,o.useCallback)((a=>{var o,i;if(!t&&e.lock&&re)return void D.error({id:"EMAIL_ACCESS_TO_LOCKED_ERROR",data:(0,l.Gy)(e),message:G("No access to edit the letter."),placement:"bottomRight"});if(((null===e||void 0===e||null===(o=e.tags)||void 0===o?void 0:o.length)||(null===(i=e.emailtags)||void 0===i?void 0:i.length))>10&&re)return void D.error({id:"EMAIL_TOO_MANY_TAGS_ERROR",data:(0,l.Gy)(e),message:G("Maximum 10 tags available."),placement:"bottomRight"});const r=t=>{var o;const i=null===(o=e.tags)||void 0===o?void 0:o.map((e=>{const a=null===de||void 0===de?void 0:de.find((t=>t.name===e));return a?a.id:J({name:e,parent:t}).then((({error:t,data:a})=>{var o,i;return 400===(null===t||void 0===t?void 0:t.status)?null===t||void 0===t||null===(o=t.data)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.term_id:a?a.id:void(t&&(D.fromError("TAG_CREATING_ERROR",e,t),ie(!1)))}))})),r=(e,o=null,i=[])=>{var r,s;const n=(null===(r=e.title)||void 0===r?void 0:r.trim())||(null===(s=e.subject)||void 0===s?void 0:s.trim())||G("Untitled email."),d=a=>{P.dispatch(h.kE.endpoints.getTags.initiate({parent:t})),X(),re&&(D.success({id:"EMAIL_SAVING_SUCCESS",message:G("The email was successfully saved."),data:(0,l.Gy)(e)}),ie(!1),H&&Z()),fetch(j(A.Tm,x,a.id,a.modified),{mode:"no-cors"}).then((()=>{}))},c=(0,f._q)(e,A.zh).filter((t=>(o||e.emailtags).includes(t.id))).map((e=>e.name));var u,m,_,v,p;if(e.isNew){if(te.status!==A.eG){const t=K.get(A.A9.em_folder);ee({title:n,source:a,project:e.project,subject:e.subject,preheader:e.preheader,description:e.description,utm_parameters:{utm_source:e.utm_parameters.utm_source,utm_medium:e.utm_parameters.utm_medium,utm_campaign:e.utm_parameters.utm_campaign,utm_term:e.utm_parameters.utm_term,utm_content:e.utm_parameters.utm_content},html:(null===M||void 0===M?void 0:M.getValue())||"",parent_email:e.parent_email||A.iU,common_styles:e.common_styles||"",emailtags:o?o.join(","):e.emailtags,tags:c,is_template:e.is_template||!1,is_inited:e.is_inited,renderGuid:e.renderGuid,folder:t!==A.y2&&t}).then((({data:t,error:a})=>{a&&re?(D.fromError("EMAIL_CREATING_ERROR",{title:e.title,code:(null===M||void 0===M?void 0:M.getValue())||""},a),ie(!1)):(L((0,g.aY)(null)),d(t),K.remove(A.A9.em_folder))}))}}else W.status!==A.eG&&Q({emailId:e.id,source:a,title:n,project:e.project,preheader:e.preheader,subject:e.subject,utm_parameters:{utm_source:null===(u=e.utm_parameters)||void 0===u?void 0:u.utm_source,utm_medium:null===(m=e.utm_parameters)||void 0===m?void 0:m.utm_medium,utm_campaign:null===(_=e.utm_parameters)||void 0===_?void 0:_.utm_campaign,utm_term:null===(v=e.utm_parameters)||void 0===v?void 0:v.utm_term,utm_content:null===(p=e.utm_parameters)||void 0===p?void 0:p.utm_content},description:e.description,html:(null===M||void 0===M?void 0:M.getValue())||"",common_styles:e.common_styles||"",emailtags:o||e.emailtags,tags:c,is_template:e.is_template||!1}).then((({error:t})=>{t&&re?(D.fromError("EMAIL_EDITING_ERROR",(0,l.Gy)(e),t),ie(!1)):d(e)}));(0,y.d)({event:"save",action:a?"save_email":"auto_save_email",email_id:e.id,project_id:x})},s={...e};ce.fire(s).finally((()=>{i?Promise.all(i).then((e=>{r(s,e,[])})):r(s,null,[])}))};ie(!0),ne?r(ne.id):J({name:le}).then((async({data:t,error:a})=>{if(a)D.fromError("FOLDER_CREATING_ERROR",le,a),ie(!1);else{const{data:a,error:o}=await ae({projectId:x,emailtags:t.id});o?(D.fromError("EMAIL_CLONING_ERROR",(0,l.Gy)(e),o),ie(!1)):a&&r(a.emailtags&&a.emailtags[0])}})).catch((e=>console.error(e)))}),[te.status,ee,W.status,Q,e,t,J,L,ae,x,q,G,$,re,M,de,ce]);(0,C.D3)(N.Kp,(0,o.useCallback)((e=>ue(e||"EXTERNAL")),[ue]));const me=(0,k.ml)(O.A.ON_NEXTBUTTON_CLICK_ID),_e=(0,k.ml)(O.A.ON_SAVEBUTTON_CLICK_ID);(0,o.useEffect)((()=>{re&&(setTimeout((()=>ue(re))),se(""))}),[re]);const ve=(0,o.useCallback)((e=>{(e.ctrlKey||e.metaKey)&&83===e.keyCode&&(e.preventDefault(),se(S))}),[ue]);(0,o.useEffect)((()=>(document.addEventListener("keydown",ve),()=>{document.removeEventListener("keydown",ve)})),[ve]);const pe=(0,o.useCallback)((e=>{const t=e.data.operation,a=e.data.action;t===A.Ru.APPLICATION_ACTION&&"save_email"===a&&se(S)}),[ue]);(0,E.A)(pe),(0,o.useEffect)((()=>{e.isNew&&te.isSuccess&&(ie(!0),L(v.GY.util.upsertQueryData("getEmail",te.data.id,{...te.data,lock:e.lock,subject:e.subject,preheader:e.preheader,description:e.description,html:(null===M||void 0===M?void 0:M.getValue())||"",project:e.project,tags:e.tags,utm_parameters:e.utm_parameters,parent_email:e.parent_email,common_styles:e.common_styles,renderGuid:e.renderGuid,is_inited:e.is_inited,isNew:!1})).then((()=>{w(`/projects/${te.data.project}/emails/${te.data.id}`),ie(!1),re&&D.success({id:"EMAIL_SAVING_SUCCESS",message:G("The email was successfully saved."),data:(0,l.Gy)(e)})})))}),[w,L,te,e.isNew,G,$,re,M]),(0,o.useEffect)((()=>{const e=setTimeout((()=>Y(!0)),1e4);return()=>clearTimeout(e)}),[Y]),(0,o.useEffect)((()=>{e.isNew&&!B&&U&&(ue(),Y(!1))}),[U,e,ue,B]);const he=W.isLoading||(null===ae||void 0===ae?void 0:ae.isLoading)||te.isLoading||oe||a&&a.isLoading,Ee=V.saveButtonEnabled&&(0,I.jsx)(i.A,{title:G(F?"Save by \u2318S":"Save by Ctrl+S"),placement:"bottom",children:(0,I.jsx)(r.Ay,{type:V.nextButtonEnabled?"default":"primary",block:"false",className:"em-analytics__email-save",loading:he,icon:(0,I.jsx)(n.A,{}),onClick:async()=>{const t={...e,html:M.getValue()};try{!1!==await _e.fire(t)&&se("SAVE_BUTTON")}catch(a){D.fromError("SAVE_BUTTON_CLICK_EVENT_ERROR",(0,l.Gy)(t),a,!0)}},children:V.saveButtonText||G("Save")})},"save-button"),ge=V.nextButtonEnabled&&(0,I.jsx)(r.Ay,{type:"primary",block:"false",className:"em-analytics__email-save",icon:V.primaryCommandButtonIcon,loading:he,onClick:async()=>{const t={...e,html:M.getValue()};try{!1!==await me.fire(t)&&se("NEXT_BUTTON")}catch(a){D.fromError("NEXT_BUTTON_CLICK_EVENT_ERROR",(0,l.Gy)(t),a,!0)}},children:V.nextButtonText||G("Continue")},"next-button");return(0,I.jsx)(I.Fragment,{children:V.saveButtonEnabled&&V.nextButtonEnabled?(0,I.jsx)(s.A,{children:[Ee,ge]}):[Ee,ge]})};L.defaultProps={email:null,isEditableRights:null};const w=L}}]);
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[1399],{83953:(e,t,a)=>{a.d(t,{A:()=>k});var o=a(92810),i=a(66170),r=a(66726),s=a(43005),l=a(71157),n=a(64617),d=a(45934),c=a(23287),u=a(48409),m=a.n(u),_=a(87701),v=a(84568),p=a(93563),h=a(64037),E=a(7760),g=a(32269),f=a(47381),R=a(32411),y=a(85163),b=a(70082);const C=({block:e,isEditableRights:t,rightCol:a,autoSaveBlockResult:u})=>{const{__:C}=(0,c.s9)(),{projectId:k,blockId:A}=(0,n.g)();let T=(0,d.d4)(E.Fv),O=(0,d.d4)(E.Fv),N=(0,d.wA)();const I=(0,l.hN)(),S=(0,R.fn)(),j=(0,d.Pj)(),[L,w]=(0,o.useState)(!1),[G,$]=(0,o.useState)(null),[x,B]=(0,o.useState)(!1),[K,D]=(0,o.useState)(!1);(0,o.useEffect)((()=>{var e,t;null!==(e=window)&&void 0!==e&&null!==(t=e.navigator)&&void 0!==t&&t.userAgent.includes("Macintosh")&&$(!0)}),[]);const{data:V,refetch:P}=(0,v.fo)(+k,{skip:!+k}),[M]=(0,_.Gr)(),[U,Y]=(0,_.OZ)(),[F,z]=(0,_.pP)(),[q]=(0,v.OD)(),X=`project_${k}`,H=V&&(0,g._q)(V,y.YY).find((e=>e.name===X)),W=V&&(0,g.HT)(V,y.YY),Z=(0,o.useCallback)((a=>{var o,i;if(B(!0),!t&&e.lock&&K)return I.error({id:"BLOCK_ACCESS_TO_LOCKED_ERROR",message:C("No access to edit the letter."),placement:"bottomRight",data:(0,l.x_)(e)}),void B(!1);if(((null===(o=e.tags)||void 0===o?void 0:o.length)||(null===(i=e.blocktags)||void 0===i?void 0:i.length))>10&&K)return I.error({id:"BLOCK_TOO_MANY_TAGS_ERROR",message:C("Maximum 10 tags available."),placement:"bottomRight",data:(0,l.x_)(e)}),void B(!1);if(""===e.type)return I.error({message:C("Set the type"),description:C("Please set the 'Type' field in the Settings section."),placement:"bottomRight"}),void B(!1);const r=t=>{var o;const i=null===(o=e.tags)||void 0===o?void 0:o.map((e=>{const a=null===W||void 0===W?void 0:W.find((t=>t.name===e));return a?a.id:M({name:e,parent:t}).then((({error:t,data:a})=>{var o,i;return 400===(null===t||void 0===t?void 0:t.status)?null===t||void 0===t||null===(o=t.data)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.term_id:a?a.id:void(t&&(I.fromError("TAG_CREATING_ERROR",e,t),B(!1)))}))})),r=(o=null)=>{const i=a=>{j.dispatch(p.kE.endpoints.getTags.initiate({parent:t})),P(),K&&(I.success({id:"BLOCK_EDITING_SUCCESS",message:C("The block was successfully saved.","block"),data:(0,l.x_)(e)}),B(!1)),fetch(((e,t,a,o)=>{let i="dev-backend-1.emailmaker.ru";const r=o?`&cacheControl=true&cache-hash=${m()(o)}`:"";return console.log("projectURL",i),`https://scr.emcdn.ru/screenshot?delay=1000&width=800&fullPage=true&deviceScaleFactor=0.8&format=jpg&clearCache=true${r}&url=${encodeURIComponent(`https://${i}/get${e}/${a}?secret_hash=${m()(`${t}${a}${y.KI}`)}&raw=true`)}`})(y.IE,k,a.id,a.modified),{mode:"no-cors"}).then((()=>{}))},r=(0,g._q)(e,y.zh).filter((t=>(o||e.blocktags).includes(t.id))).map((e=>e.name));e.isNew?z.status!==y.eG&&F({source:a,title:null===e.title?C("New block title"):e.title,project:e.project,type:e.type?e.type:"Other",description:e.description,html:(null===S||void 0===S?void 0:S.getValue())||"",blocktags:o?o.join(","):e.blocktags,tags:r}).then((({data:t,error:a})=>{a?(I.fromError("BLOCK_CREATING_ERROR",{title:e.title,html:(null===S||void 0===S?void 0:S.getValue())||""},a),B(!1)):i(t)})):Y.status!==y.eG&&U({blockId:e.id,source:a,title:e.title,project:e.project,type:e.type?e.type:"Other",description:e.description,html:(null===S||void 0===S?void 0:S.getValue())||"",blocktags:o||e.blocktags,tags:r}).then((({data:t,error:a})=>{a&&K?(I.fromError("BLOCK_EDITING_ERROR",(0,l.x_)(e),a),B(!1)):i(t)}))};i?Promise.all(i).then((e=>r(e))):r(null)};B(!0),H?r(H.id):M({name:X}).then((async({data:t,error:a})=>{if(a)I.fromError("FOLDER_CREATING_ERROR",X,a),B(!1);else{const{data:a,error:o}=await q({projectId:k,blocktags:t.id});o?(I.fromError("BLOCK_CLONING_ERROR",(0,l.x_)(e),o),B(!1)):a&&r(a.blocktags&&a.blocktags[0])}})).catch((e=>console.error(e)))}),[z.status,F,Y.status,U,e,t,M,q,k,C,K,S,I,W,P,j,H,X]);(0,o.useEffect)((()=>{K&&(Z(),D(!1))}),[K,Z]);const J=(0,o.useCallback)((e=>{(e.ctrlKey||e.metaKey)&&83===e.keyCode&&(e.preventDefault(),D(!0))}),[]);(0,o.useEffect)((()=>(document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)})),[J]);const Q=(0,o.useCallback)((e=>{const t=e.data.operation,a=e.data.action;t===y.Ru.APPLICATION_ACTION&&"save_email"===a&&D(!0)}),[]);return(0,h.A)(Q),(0,o.useEffect)((()=>{z.isError&&(B(!1),(0,g.p6)(z,I))}),[N,z,I]),(0,o.useEffect)((()=>{const e=setTimeout((()=>{w(!0)}),1e4);return()=>{clearTimeout(e)}}),[]),(0,o.useEffect)((()=>{e.isNew&&!A&&L&&(Z(),w(!1))}),[L,e,Z,A]),(0,b.jsx)(r.A,{title:C(G?"Save by \u2318S":"Save by Ctrl+S"),placement:a?"right":"bottomRight",children:(0,b.jsx)(s.Ay,{type:"primary",block:a,className:"em-analytics__block-save",icon:(0,b.jsx)(i.A,{}),onClick:()=>{(0,f.d)({event:"click",action:"save_block"}),D(!0)},loading:Y.isLoading||q.isLoading||z.isLoading||x||u,children:a||T||O?"":C("Save")})})};C.defaultProps={block:null};const k=C},59287:(e,t,a)=>{a.d(t,{A:()=>w,W:()=>j});var o=a(92810),i=a(66726),r=a(43005),s=a(81e3),l=a(71157),n=a(66170),d=a(64617),c=a(45934),u=a(48409),m=a.n(u),_=a(23287),v=a(17581),p=a(84568),h=a(93563),E=a(64037),g=a(8493),f=a(32269),R=a(56991),y=a(47381),b=a(32411),C=a(13329),k=a(93982),A=a(85163),T=a(90070),O=a(13522),N=a(28316),I=a(70082);const S="KEYBOARD",j=(e,t,a,o,i=!0,r=.8,s)=>`${window.location.host.indexOf("localhost")>=0?`${window.location.protocol}//${window.location.host}`:"https://scr.emcdn.ru"}/screenshot?delay=1000&width=800${s?"":"&fullPage=true"}&deviceScaleFactor=${r}&format=jpg&clearCache=${i}${o?`&cacheControl=true&cache-hash=${m()(o)}`:""}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${e}/${a}?secret_hash=${m()(`${t}${a}${A.KI}`)}&raw=true`)}${s?`&selector=${s}`:""}`,L=({email:e,isEditableRights:t,autoSaveEmailResult:a})=>{var u,m;let L=(0,c.wA)(),w=(0,d.Zp)();const{__:G,_x:$}=(0,_.s9)(),{projectId:x,emailId:B}=(0,d.g)(),K=(0,T.p6)(),D=(0,l.hN)(),V=(0,R.rD)(),P=(0,b.fn)(),M=(0,c.Pj)(),[U,Y]=(0,o.useState)(!1),[F,z]=(0,o.useState)(null);(0,o.useEffect)((()=>{var e,t;null!==(e=window)&&void 0!==e&&null!==(t=e.navigator)&&void 0!==t&&t.userAgent.includes("Macintosh")&&z(!0)}),[]);const{data:q,refetch:X}=(0,p.fo)(+x,{skip:!+x}),{data:H,refetch:W}=(0,h.Jz)({parent:null===(u=q.folder)||void 0===u?void 0:u[0]},{skip:!(null!==(m=q.folder)&&void 0!==m&&m[0])}),[Z]=(0,v.Gr)(),[J,Q]=(0,v.dN)(),[ee,te]=(0,v.Kh)(),[ae]=(0,p.OD)(),[oe,ie]=(0,o.useState)(!1),[re,se]=(0,o.useState)(""),le=`project_${x}`,ne=q&&(0,f._q)(q,A.zh).find((e=>e.name===le)),de=q&&(0,f.HT)(q,A.zh),ce=(0,k.ml)(O.A.BEFORE_SAVE_EMAIL),ue=(0,o.useCallback)((a=>{var o,i;if(!t&&e.lock&&re)return void D.error({id:"EMAIL_ACCESS_TO_LOCKED_ERROR",data:(0,l.Gy)(e),message:G("No access to edit the letter."),placement:"bottomRight"});if(((null===e||void 0===e||null===(o=e.tags)||void 0===o?void 0:o.length)||(null===(i=e.emailtags)||void 0===i?void 0:i.length))>10&&re)return void D.error({id:"EMAIL_TOO_MANY_TAGS_ERROR",data:(0,l.Gy)(e),message:G("Maximum 10 tags available."),placement:"bottomRight"});const r=t=>{var o;const i=null===(o=e.tags)||void 0===o?void 0:o.map((e=>{const a=null===de||void 0===de?void 0:de.find((t=>t.name===e));return a?a.id:Z({name:e,parent:t}).then((({error:t,data:a})=>{var o,i;return 400===(null===t||void 0===t?void 0:t.status)?null===t||void 0===t||null===(o=t.data)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.term_id:a?a.id:void(t&&(D.fromError("TAG_CREATING_ERROR",e,t),ie(!1)))}))})),r=(e,o=null,i=[])=>{var r,s;const n=(null===(r=e.title)||void 0===r?void 0:r.trim())||(null===(s=e.subject)||void 0===s?void 0:s.trim())||G("Untitled email."),d=a=>{M.dispatch(h.kE.endpoints.getTags.initiate({parent:t})),X(),re&&(D.success({id:"EMAIL_SAVING_SUCCESS",message:G("The email was successfully saved."),data:(0,l.Gy)(e)}),ie(!1),H&&W()),A.EW.isPlugin||fetch(j(A.Tm,x,a.id,a.modified),{mode:"no-cors"}).then((()=>{}))},c=(0,f._q)(e,A.zh).filter((t=>(o||e.emailtags).includes(t.id))).map((e=>e.name));var u,m,_,v,p;if(e.isNew){if(te.status!==A.eG){const t=K.get(A.A9.em_folder);ee({title:n,source:a,project:e.project,subject:e.subject,preheader:e.preheader,description:e.description,utm_parameters:{utm_source:e.utm_parameters.utm_source,utm_medium:e.utm_parameters.utm_medium,utm_campaign:e.utm_parameters.utm_campaign,utm_term:e.utm_parameters.utm_term,utm_content:e.utm_parameters.utm_content},html:(null===P||void 0===P?void 0:P.getValue())||"",parent_email:e.parent_email||A.iU,common_styles:e.common_styles||"",emailtags:o?o.join(","):e.emailtags,tags:c,is_template:e.is_template||!1,is_inited:e.is_inited,renderGuid:e.renderGuid,folder:t!==A.y2&&t}).then((({data:t,error:a})=>{a&&re?(D.fromError("EMAIL_CREATING_ERROR",{title:e.title,code:(null===P||void 0===P?void 0:P.getValue())||""},a),ie(!1)):(L((0,g.aY)(null)),d(t),K.remove(A.A9.em_folder))}))}}else Q.status!==A.eG&&J({emailId:e.id,source:a,title:n,project:e.project,preheader:e.preheader,subject:e.subject,utm_parameters:{utm_source:null===(u=e.utm_parameters)||void 0===u?void 0:u.utm_source,utm_medium:null===(m=e.utm_parameters)||void 0===m?void 0:m.utm_medium,utm_campaign:null===(_=e.utm_parameters)||void 0===_?void 0:_.utm_campaign,utm_term:null===(v=e.utm_parameters)||void 0===v?void 0:v.utm_term,utm_content:null===(p=e.utm_parameters)||void 0===p?void 0:p.utm_content},description:e.description,html:(null===P||void 0===P?void 0:P.getValue())||"",common_styles:e.common_styles||"",emailtags:o||e.emailtags,tags:c,is_template:e.is_template||!1}).then((({error:t})=>{t&&re?(D.fromError("EMAIL_EDITING_ERROR",(0,l.Gy)(e),t),ie(!1)):d(e)}));(0,y.d)({event:"save",action:a?"save_email":"auto_save_email",email_id:e.id,project_id:x})},s={...e};ce.fire(s).finally((()=>{i?Promise.all(i).then((e=>{r(s,e,[])})):r(s,null,[])}))};ie(!0),ne?r(ne.id):Z({name:le}).then((async({data:t,error:a})=>{if(a)D.fromError("FOLDER_CREATING_ERROR",le,a),ie(!1);else{const{data:a,error:o}=await ae({projectId:x,emailtags:t.id});o?(D.fromError("EMAIL_CLONING_ERROR",(0,l.Gy)(e),o),ie(!1)):a&&r(a.emailtags&&a.emailtags[0])}})).catch((e=>console.error(e)))}),[te.status,ee,Q.status,J,e,t,Z,L,ae,x,q,G,$,re,P,de,ce]);(0,C.D3)(N.Kp,(0,o.useCallback)((e=>ue(e||"EXTERNAL")),[ue]));const me=(0,k.ml)(O.A.ON_NEXTBUTTON_CLICK_ID),_e=(0,k.ml)(O.A.ON_SAVEBUTTON_CLICK_ID);(0,o.useEffect)((()=>{re&&(setTimeout((()=>ue(re))),se(""))}),[re]);const ve=(0,o.useCallback)((e=>{(e.ctrlKey||e.metaKey)&&83===e.keyCode&&(e.preventDefault(),se(S))}),[ue]);(0,o.useEffect)((()=>(document.addEventListener("keydown",ve),()=>{document.removeEventListener("keydown",ve)})),[ve]);const pe=(0,o.useCallback)((e=>{const t=e.data.operation,a=e.data.action;t===A.Ru.APPLICATION_ACTION&&"save_email"===a&&se(S)}),[ue]);(0,E.A)(pe),(0,o.useEffect)((()=>{e.isNew&&te.isSuccess&&(ie(!0),L(v.GY.util.upsertQueryData("getEmail",te.data.id,{...te.data,lock:e.lock,subject:e.subject,preheader:e.preheader,description:e.description,html:(null===P||void 0===P?void 0:P.getValue())||"",project:e.project,tags:e.tags,utm_parameters:e.utm_parameters,parent_email:e.parent_email,common_styles:e.common_styles,renderGuid:e.renderGuid,is_inited:e.is_inited,isNew:!1})).then((()=>{w(`/projects/${te.data.project}/emails/${te.data.id}`),ie(!1),re&&D.success({id:"EMAIL_SAVING_SUCCESS",message:G("The email was successfully saved."),data:(0,l.Gy)(e)})})))}),[w,L,te,e.isNew,G,$,re,P]),(0,o.useEffect)((()=>{const e=setTimeout((()=>Y(!0)),1e4);return()=>clearTimeout(e)}),[Y]),(0,o.useEffect)((()=>{e.isNew&&!B&&U&&(ue(),Y(!1))}),[U,e,ue,B]);const he=Q.isLoading||(null===ae||void 0===ae?void 0:ae.isLoading)||te.isLoading||oe||a&&a.isLoading,Ee=V.saveButtonEnabled&&(0,I.jsx)(i.A,{title:G(F?"Save by \u2318S":"Save by Ctrl+S"),placement:"bottom",children:(0,I.jsx)(r.Ay,{type:V.nextButtonEnabled?"default":"primary",block:"false",className:"em-analytics__email-save",loading:he,icon:(0,I.jsx)(n.A,{}),onClick:async()=>{const t={...e,html:P.getValue()};try{!1!==await _e.fire(t)&&se("SAVE_BUTTON")}catch(a){D.fromError("SAVE_BUTTON_CLICK_EVENT_ERROR",(0,l.Gy)(t),a,!0)}},children:V.saveButtonText||G("Save")})},"save-button"),ge=V.nextButtonEnabled&&(0,I.jsx)(r.Ay,{type:"primary",block:"false",className:"em-analytics__email-save",icon:V.primaryCommandButtonIcon,loading:he,onClick:async()=>{const t={...e,html:P.getValue()};try{!1!==await me.fire(t)&&se("NEXT_BUTTON")}catch(a){D.fromError("NEXT_BUTTON_CLICK_EVENT_ERROR",(0,l.Gy)(t),a,!0)}},children:V.nextButtonText||G("Continue")},"next-button");return(0,I.jsx)(I.Fragment,{children:V.saveButtonEnabled&&V.nextButtonEnabled?(0,I.jsx)(s.A,{children:[Ee,ge]}):[Ee,ge]})};L.defaultProps={email:null,isEditableRights:null};const w=L}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[1472,5974],{90854:(e,t,r)=>{r.d(t,{A6:()=>l,Lv:()=>d,ST:()=>u,TM:()=>n,b6:()=>h,d1:()=>y,ir:()=>p,rq:()=>f,uE:()=>i,vq:()=>c,wz:()=>m});const o=new Set(["area","br","col","embed","hr","img","input","link","meta","param"]);function n(e){return"<!DOCTYPE "+e.name+(e.publicId?' PUBLIC "'+e.publicId+'"':"")+(!e.publicId&&e.systemId?" SYSTEM":"")+(e.systemId?' "'+e.systemId+'"':"")+">"}const s=Object.create(null);function a(e,t){const r=s[e]||(s[e]=Object.create(null));let o=r[t];if("boolean"!==typeof o){const n=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((e,t)=>t.toUpperCase()))];o=r[t]="undefined"!==typeof n&&"boolean"!==typeof n}return o}function c(e){return e.nodeType===Node.ELEMENT_NODE}function i(e){return c(e)&&!e.ownerSVGElement}function l(e){return"IMG"===e.tagName}function u(e){return"STYLE"===e.tagName}function m(e){return e.nodeType===Node.DOCUMENT_NODE}function p(e){return e.nodeType===Node.TEXT_NODE}function d(e){return"TABLE"===e.tagName}async function f(e,t=5e3){return"undefined"===typeof e.complete||e.complete?getComputedStyle(e):new Promise(((r,o)=>{setTimeout(r,t),e.onload=()=>r(getComputedStyle(e)),e.onerror=e=>console.log(e)}))}function h(e){if(c(e))return function(e){const t=e.tagName.toLowerCase(),r=function(e){const t=e.tagName.toLowerCase();let r="";for(const o of e.attributes){const e=o.name,n=o.value;r+=""!==n||"em"===e||a(t,e)?` ${e}="${n.replaceAll('"',"'")}"`:` ${e}`}return r}(e);return o.has(t)?`<${t}${r}>`:u(e)?`<${t}${r}>${e.innerHTML}</${t}>`:`<${t}${r}>${function(e){let t="";for(const r of e.childNodes)t+=h(r);return t}(e)}</${t}>`}(e);if(m(e))return[...e.childNodes].map((e=>h(e))).join("");if(function(e){return e.nodeType===Node.DOCUMENT_TYPE_NODE}(e))return n(e);const t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function y(e,t){for(const s of e.childNodes)s.remove();let r=t.find((e=>function(e){return"HTML"===e.tagName}(e))),o=t.find((e=>function(e){return"BODY"===e.tagName}(e))),n=e;r||(r=e.createElement("html"),e.appendChild(r),n=r,o||(o=e.createElement("body"),r.appendChild(o),n=o));for(const s of t)n===e&&p(s)?n.appendChild(e.createComment(`%%%{{{${s.data}}}}%%%`)):n.appendChild(s)}},84007:(e,t,r)=>{r.d(t,{$$:()=>m,Os:()=>l});var o=r(16799),n=r(8357),s=r(61704);const a=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"],c=new o.H(a),i=new n.X(c);function l(e,t,r){try{e.setAttribute(t,r)}catch{let o=e.tagName.toLowerCase();"html"===o&&(o="div");const n=`<${o} ${t}="${r}"/>`;let s=function(e){let t;switch(e){case"tr":t=document.createElement("table");break;case"td":t=document.createElement("tr");break;case"head":case"body":t=document.createElement("html");break;case"DocumentType":case"html":{const e=document.implementation.createHTMLDocument();for(const t of[...e.childNodes])t.remove();return e}default:t=document.createElement("div")}return t}(o);if(s instanceof Document)return;s.innerHTML=n;const a=1===s.children.length?s.firstElementChild:s.getElementsByTagName(o)[0];if(!a)throw new Error("targetElement is not defined");const c=a.getAttributeNode(t);c&&e.setAttributeNode(c.cloneNode())}}function u(e,t=!0){let r=e.content;switch(e.type){case s.Z.ROOT:{const r=document.implementation.createHTMLDocument();for(const e of[...r.childNodes])r.removeChild(e);if(t)for(const t of e.children)r.appendChild(u(t));return r}case s.Z.DOCTYPE:return(new DOMParser).parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case s.Z.COMMENT:return document.createComment(r||"");case s.Z.ELEMENT:if(e.tag){const r=document.createElement(e.tag);if(e.attributes)for(const t of e.attributeNames){const n=e.attributes[t];try{l(r,t,"string"===typeof n?n:"")}catch(o){}}if(t)for(const t of e.children)r.appendChild(u(t));return r}return document.createTextNode("<");case s.Z.HTML:return function(e){if(e){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstChild||document.createTextNode("")}return document.createTextNode("")}(r||"");default:throw new Error("unsupported node")}}function m(e){var t;return(t=e,i.parse(t)).roots.map((e=>u(e)))}},85974:(e,t,r)=>{r.d(t,{Km:()=>P,Sc:()=>S,Nh:()=>T});var o=r(90854),n=r(84007),s=r(74851),a=r(69279);const c='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',i="<!doctype html>";var l=r(97717);async function u(e,t={}){const r=document.createElement("amp-img"),s=await(0,o.rq)(e),a=null!==s&&void 0!==s&&s.height?`${parseInt(s.height)}px`:"",c=null!==s&&void 0!==s&&s.width?`${parseInt(s.width)}px`:"",i=e.src||e.srcset.split(",")[0];"100%"===e.style.width&&e.style.removeProperty("width"),"100%"===e.style.maxWidth&&e.style.removeProperty("max-width"),t={...(0,l.gu)(e),alt:e.alt,width:c,height:a,src:i,layout:"responsive",...t};for(const o of Object.keys(t))(0,n.Os)(r,o,t[o]);return r}function m(e){const t=document.createElement("img"),{layout:r,height:o,...s}=(0,l.gu)(e),a="responsive"===r;for(const c of Object.keys(s))(0,n.Os)(t,c,s[c]);return a&&(t.style.maxWidth=s.width||"0px",t.style.width="100%"),t}var p=r(59896),d=r(91981),f=r(91391);var h=r(80424);const y=new Map;const g=new Map;const v="$GLOBAL_ATTRS",w=new Map;async function b(){if(!w.size){var e;const t=null===(e=(await(0,h.F)()).attrLists.find((e=>e.name===v)))||void 0===e?void 0:e.attrs;if(t)for(const e of t)w.set(e.name,e)}return w}function T(e){var t;return(0,o.vq)(e)&&(e.tagName.startsWith("AMP")||"FORM"===e.tagName||"TEMPLATE"===e.tagName&&"amp-mustache"===(null===(t=e.getAttribute("type"))||void 0===t?void 0:t.toLowerCase()))}function A(e,t,r){var n,s,a;if(t)if((0,o.vq)(e))switch(e.tagName.toLowerCase()){case"body":case r("script"):case"style":case"meta":case"title":return;case"head":case"html":i();break;default:c()||i()}else(0,o.wz)(e)?i():(0,o.ir)(e)&&(null!==(n=e.textContent)&&void 0!==n&&n.trim()||null!==(s=e.nextSibling)&&void 0!==s&&null!==(a=s.textContent)&&void 0!==a&&a.trim()&&(0,o.ir)(e.nextSibling))&&c();function c(){const r=t.compareDocumentPosition(e);if(!(8&r)){if(2&r)return t.insertBefore(e,t.firstChild),!0;if(4&r)return t.appendChild(e),!0}return!1}function i(){const o=[...e.childNodes];for(let e=o.length-1;e>=0;e--)A(o[e],t,r)}}async function x(e,t){const r=e=>t.replaceSelectors(e.toLowerCase());if(t.replaceImages&&await async function(e){const t=e.querySelectorAll("img");for(const o of t)o.replaceWith(await u(o));const r=e.querySelectorAll("picture");for(const o of r){const e=o.querySelector("img");if(e){const t=await u(e);o.replaceWith(t)}else o.remove()}}(e),t.injectExtensions){const T=t.replaceSelectors(f.Vq);if(!e.querySelector(T)){const x=t.createElementFn("script");x.setAttribute("src",f.zq),x.setAttribute("async","");(0,l.xy)(e).appendChild(x)}}t.injectRequiredTags&&((0,d.y)(e,t.createElementFn,r),function(e){const t=e.doctype;if(t){if((0,o.TM)(t)===i)return;const r=(new DOMParser).parseFromString(i,"text/html").doctype;e.replaceChild(r,t)}else{const t=(new DOMParser).parseFromString(i,"text/html").doctype;e.insertBefore(t,e.firstChild)}}(e),(0,s.R)(e),(0,p.C)(e)),t.replaceStylesAndLinks&&(0,a.Q)(e);const c=await(0,h.F)(),m=await async function(){if(!y.size){const e=await(0,h.F)(),t=e.tags;for(let r=0;r<t.length;r++){const o=t[r],{selector:n,attrs:s,attrLists:a}=o,c=(null===a||void 0===a?void 0:a.flatMap((t=>e.attrLists.filter((({name:e})=>e===t)).flatMap((e=>e.attrs)))))||[];y.set(n,{...o,priority:r,attrs:new Map([...s,...c].map((e=>[e.name,e])))})}}return y}(),v=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),w=new Map;for(let[E,S]of m){E=r(E);let P=e.querySelectorAll(E);t.injectRequiredTags&&S.required&&!P.length&&(P=[...P,t.createElementFn(S.name)]);for(const C of P){const N=w.get(C);N&&N.priority>S.priority||w.set(C,S)}}for(let[L,$]of w){const O=$.requiredParent?"$ROOT"===$.requiredParent?e:e.querySelector($.requiredParent):null;!O||L.parentNode&&!t.moveInvalidTagPosition?L.parentNode||e.body.appendChild(L):O!==L.parentNode&&("HEAD"===$.name?O.insertBefore(L,O.firstChild):O.appendChild(L)),t.removeUnsupportedTags&&v.delete(L);const R=await b();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const q=$.attrs,M=t.injectRequiredAttributes?new Set([...q].map((([e,t])=>t)).filter((e=>e.required&&e.value))):void 0,k=L.getAttributeNames();for(const D of k){const I=q.get(D)||R.get(D);if(I){if("id"===D||"class"===D||"style"===D){null===M||void 0===M||M.delete(I);continue}if(t.removeUnsupportedAttributes){const H=L.getAttribute(D);if(I.value&&I.value.indexOf(H)<0&&L.removeAttribute(D),I.valueRegex){new RegExp(I.valueRegex).test(H)||L.removeAttribute(D)}if(I.disallowedValueRegex){new RegExp(I.disallowedValueRegex).test(H)&&L.removeAttribute(D)}const U=I.valueUrl;if(U)if(""===H)U.allowEmpty||L.removeAttribute(D);else if(H.indexOf("\x3c!--")>0&&H.indexOf("--\x3e")>0);else if(!U.allowRelative)if(H.startsWith("#")||H.startsWith("/"))L.removeAttribute(D);else{const F=U.protocol.length?U.protocol:["https"];let j=H.substring(0,H.indexOf(":"));if(j)if(F.indexOf(j)<0){let W=F[0]+H.substring(H.indexOf(":"));URL.canParse(W)?(0,n.Os)(L,D,W):L.removeAttribute(D)}else URL.canParse(H)||L.removeAttribute(D);else{let z=F[0]+H;URL.canParse(z)?(0,n.Os)(L,D,z):L.removeAttribute(D)}}}null===M||void 0===M||M.delete(I)}else{if("id"===D||"class"===D||"style"===D)continue;t.removeUnsupportedAttributes&&L.removeAttribute(D)}}if(M)for(const Q of M)(0,n.Os)(L,Q.name,Q.value[0])}}t.moveInvalidTagPosition&&A(e,e.body,r);for(const B of v)B.remove();if(t.removeUnsupportedStyles){const _=e.querySelectorAll("*"),Y=await async function(){if(!g.size){const e=await(0,h.F)();for(const t of e.declarations)g.set(t.name,t)}return g}();function Z(e){const t=e.cssText.replaceAll(/\".*\"/g,"").replaceAll(/\'.*\'/g,"").replaceAll(/\/\*.*\*\/|(-moz-|-ms-|-o-|-webkit-)+\w+(?=:)/g,"").match(/[a-z-]+(?=:[^before|after|hover])/gi)||[];for(const r of t){if(!r)continue;const t=e.getPropertyValue(r);"important"===e.getPropertyPriority(r)&&e.setProperty(r,t);const o=Y.get(r);if(o){if(o.value)o.value.indexOf(t)<0&&e.removeProperty(r);else if(o.valueRegex){new RegExp(o.valueRegex).test(t)||e.removeProperty(r)}}else e.removeProperty(r)}}function V(e){return"CSSStyleRule"===e.constructor.name}function G(e){return"CSSMediaRule"===e.constructor.name}function X(e){const t=e.cssRules;for(let r=t.length-1;r>=0;r--){const o=t[r];V(o)?o.selectorText.indexOf("[")>=0||o.selectorText.indexOf(":")>=0?e.deleteRule(r):(Z(o.style),o.style.cssText||e.deleteRule(r)):G(o)?(X(o),o.cssRules.length||e.deleteRule(r)):e.deleteRule(r)}}for(const J of _)if((0,o.uE)(J)){const ee=J.getAttribute("style");ee&&(Z(J.style),J.style.length?J.style.cssText!==ee&&J.setAttribute("style",J.style.cssText):J.removeAttribute("style"))}const K=e.querySelector("style[amp-custom]");if(K){const te=K.sheet;te&&(X(te),K.innerHTML=[...te.cssRules].map((e=>e.cssText)).join("\n"))}}await async function(e,t,r){for(const{name:s,versions:a}of t){let t=!1;switch(s){case"amp-mustache":t=!!e.querySelector("template[type='amp-mustache']"),t||(t=!!e.querySelector(r.replaceSelectors(r.replaceSelectors("script[template='amp-mustache']"))));break;case"amp-form":t=!!e.querySelector(s),!t&&r.formsAsAmpForms&&"amp-form"===s&&(t=!!e.querySelector("form"));break;case"amp-bind":t=!!e.querySelector(s),t||(t=!!e.querySelector("[on]"));break;default:t=!!e.querySelector(s)}if(t){const t=r.replaceSelectors("amp-mustache"===s?`script[async][custom-template='${s}']`:`script[async][custom-element='${s}']`);if(!e.querySelector(t)){const t=(0,l.xy)(e),c=r.createElementFn("script"),i=(o=s,n=a.findLast((e=>"latest"!==e))||"v0",`${f.gP}/${o.toLowerCase()}-${n}.js`);c.setAttribute("async",""),c.setAttribute("amp-mustache"===s?"custom-template":"custom-element",s),c.setAttribute("src",i),t.appendChild(c),t.appendChild(e.createTextNode("\n"))}}}var o,n}(e,c.extensions,t)}function E(e,t){return Object.keys(t).reduce(((e,r)=>e.replaceAll(r,t[r])),e)}function S(e,t={}){const{correct:r=!0,injectExtensions:o=!0,mappedTags:n={}}=t;return x(e,{replaceImages:r,replaceStylesAndLinks:r,injectRequiredTags:r,injectExtensions:o,formsAsAmpForms:o,injectRequiredAttributes:r,moveInvalidTagPosition:r,removeUnsupportedTags:r,removeUnsupportedAttributes:r,removeUnsupportedStyles:r,createElementFn:t=>e.createElement(n[t.toLowerCase()]||t),replaceSelectors:e=>E(e.toLowerCase(),n)})}function P(e,t={}){const{correct:r=!0,removeExtensions:n=!0,mappedTags:u={}}=t,p=t=>e.createElement(u[t.toLowerCase()]||t),d=e=>E(e,u);if(r){!function(e){const t=e.querySelectorAll("amp-img");for(const r of t)r.replaceWith(m(r))}(e),function(e){const t=e.doctype;if(t&&(0,o.TM)(t).toLowerCase()===i){const r=(new DOMParser).parseFromString(c,"text/html").doctype;e.replaceChild(r,t)}}(e),(0,a.h)(e),(0,s.C)(e);const t=(0,l.ep)(e);t.removeAttribute("\u26a14email"),t.removeAttribute("data-css-strict")}n&&function(e,t){const r=e.querySelectorAll("*"),o=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const s of o){var n;null!==(n=s.getAttribute("src"))&&void 0!==n&&n.startsWith(f.gP)&&s.remove()}for(const s of r)T(s)&&"FORM"!==s.tagName&&s.remove()}(e,{formsAsAmpForms:t.removeExtensions,createElementFn:p,replaceSelectors:d})}},7205:(e,t,r)=>{r.d(t,{A:()=>c});const o=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e)),n=new Set(["https:","http:","file:"]),s=e=>{try{const{protocol:t}=new URL(e);return t.endsWith(":")&&!t.includes(".")&&!n.has(t)}catch{return!1}},a=(e,{stripHash:t})=>{var r,o;const n=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!n)throw new Error(`Invalid URL: ${e}`);let{type:s,data:a,hash:c}=n.groups;const i=s.split(";");c=t?"":c;let l=!1;"base64"===i[i.length-1]&&(i.pop(),l=!0);const u=null!==(r=null===(o=i.shift())||void 0===o?void 0:o.toLowerCase())&&void 0!==r?r:"",m=[...i.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(r=r.toLowerCase(),"us-ascii"===r)?"":`${t}${r?`=${r}`:""}`})).filter(Boolean)];return l&&m.push("base64"),(m.length>0||u&&"text/plain"!==u)&&m.unshift(u),`data:${m.join(";")},${l?a.trim():a}${c?`#${c}`:""}`};function c(e,t){if("string"!==typeof(t={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...t}).defaultProtocol||t.defaultProtocol.endsWith(":")||(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e))return a(e,t);if(s(e))return e;const r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const n=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===n.protocol&&(n.protocol="http:"),t.forceHttps&&"http:"===n.protocol&&(n.protocol="https:"),t.stripAuthentication&&(n.username="",n.password=""),t.stripHash?n.hash="":t.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,r="";for(;;){const o=e.exec(n.pathname);if(!o)break;const s=o[0],a=o.index;r+=n.pathname.slice(t,a).replace(/\/{2,}/g,"/"),r+=s,t=a+s.length}r+=n.pathname.slice(t,n.pathname.length).replace(/\/{2,}/g,"/"),n.pathname=r}if(n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=n.pathname.split("/");const r=e[e.length-1];o(r,t.removeDirectoryIndex)&&(e=e.slice(0,-1),n.pathname=e.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const s of[...n.searchParams.keys()])o(s,t.removeQueryParameters)&&n.searchParams.delete(s);if(Array.isArray(t.keepQueryParameters)||!0!==t.removeQueryParameters||(n.search=""),Array.isArray(t.keepQueryParameters)&&t.keepQueryParameters.length>0)for(const s of[...n.searchParams.keys()])o(s,t.keepQueryParameters)||n.searchParams.delete(s);if(t.sortQueryParameters){n.searchParams.sort();try{n.search=decodeURIComponent(n.search)}catch{}}t.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,"")),t.removeExplicitPort&&n.port&&(n.port="");const c=e;return e=n.toString(),t.removeSingleSlash||"/"!==n.pathname||c.endsWith("/")||""!==n.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===n.pathname)&&""===n.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}}}]);