diff --git a/wa-apps/installer/lib/config/app.php b/wa-apps/installer/lib/config/app.php index b296512cf..114a796ba 100644 --- a/wa-apps/installer/lib/config/app.php +++ b/wa-apps/installer/lib/config/app.php @@ -4,8 +4,8 @@ 'description' => 'Install new apps from the Webasyst Store', 'icon' => 'img/installer.svg', 'mobile' => false, - 'version' => '2.3.2', - 'critical' => '2.3.2', + 'version' => '2.3.3', + 'critical' => '2.3.3', 'system' => true, 'vendor' => 'webasyst', 'csrf' => true, diff --git a/wa-content/css/wa-settings/legacy/settings.css b/wa-content/css/wa-settings/legacy/settings.css index 1767350cf..eaf0577d9 100644 --- a/wa-content/css/wa-settings/legacy/settings.css +++ b/wa-content/css/wa-settings/legacy/settings.css @@ -109,8 +109,6 @@ ul.pager li { } input.wide { width: 100%; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; box-sizing: border-box; } .ui-datepicker { @@ -206,7 +204,6 @@ ul.menu-v.without-icons li.selected a { color: inherit; } html .ui-datepicker.ui-widget-content { - -webkit-box-shadow: 0 0 15px rgba(0,0,0,0.33); box-shadow: 0 0 15px rgba(0,0,0,0.33); } html .ui-datepicker.ui-widget-content .ui-state-default { @@ -219,91 +216,52 @@ html .ui-datepicker.ui-widget-content .ui-state-active { color: inherit; } table.zebra tr:nth-child(2n+1) .s-single-line:after { - -webkit-box-shadow: -10px 0 10px #f2f7ff inset; box-shadow: -10px 0 10px #f2f7ff inset; } table.zebra tr:hover .s-single-line:after { - -webkit-box-shadow: -10px 0 10px #ffffe5 inset; box-shadow: -10px 0 10px #ffffe5 inset; } table.zebra tr.selected .s-single-line:after { - -webkit-box-shadow: -10px 0 10px #eed inset; box-shadow: -10px 0 10px #eed inset; } .animated { -webkit-animation-duration: 1s; - -webkit-animation-duration: 1s; - -moz-animation-duration: 1s; - -o-animation-duration: 1s; - -ms-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; - -webkit-animation-fill-mode: both; - -moz-animation-fill-mode: both; - -o-animation-fill-mode: both; - -ms-animation-fill-mode: both; animation-fill-mode: both; } @-webkit-keyframes shake { 0%, 100% { -webkit-transform: translate3d(0, 0, 0); - -webkit-transform: translate3d(0, 0, 0); - -moz-transform: translate3d(0, 0, 0); - -o-transform: translate3d(0, 0, 0); - -ms-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); - -webkit-transform: translate3d(-10px, 0, 0); - -moz-transform: translate3d(-10px, 0, 0); - -o-transform: translate3d(-10px, 0, 0); - -ms-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); - -webkit-transform: translate3d(10px, 0, 0); - -moz-transform: translate3d(10px, 0, 0); - -o-transform: translate3d(10px, 0, 0); - -ms-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } .shake { -webkit-animation-name: shake; - -webkit-animation-name: shake; - -moz-animation-name: shake; - -o-animation-name: shake; - -ms-animation-name: shake; animation-name: shake; } @-moz-keyframes shake { 0%, 100% { -webkit-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); - -webkit-transform: translate3d(0, 0, 0); - -moz-transform: translate3d(0, 0, 0); - -o-transform: translate3d(0, 0, 0); - -ms-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); -ms-transform: translate3d(-10px, 0, 0); - -webkit-transform: translate3d(-10px, 0, 0); - -moz-transform: translate3d(-10px, 0, 0); - -o-transform: translate3d(-10px, 0, 0); - -ms-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); -ms-transform: translate3d(10px, 0, 0); - -webkit-transform: translate3d(10px, 0, 0); - -moz-transform: translate3d(10px, 0, 0); - -o-transform: translate3d(10px, 0, 0); - -ms-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } @@ -311,28 +269,16 @@ table.zebra tr.selected .s-single-line:after { 0%, 100% { -webkit-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); - -webkit-transform: translate3d(0, 0, 0); - -moz-transform: translate3d(0, 0, 0); - -o-transform: translate3d(0, 0, 0); - -ms-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); -ms-transform: translate3d(-10px, 0, 0); - -webkit-transform: translate3d(-10px, 0, 0); - -moz-transform: translate3d(-10px, 0, 0); - -o-transform: translate3d(-10px, 0, 0); - -ms-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); -ms-transform: translate3d(10px, 0, 0); - -webkit-transform: translate3d(10px, 0, 0); - -moz-transform: translate3d(10px, 0, 0); - -o-transform: translate3d(10px, 0, 0); - -ms-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } @@ -340,28 +286,16 @@ table.zebra tr.selected .s-single-line:after { 0%, 100% { -webkit-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); - -webkit-transform: translate3d(0, 0, 0); - -moz-transform: translate3d(0, 0, 0); - -o-transform: translate3d(0, 0, 0); - -ms-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); -ms-transform: translate3d(-10px, 0, 0); - -webkit-transform: translate3d(-10px, 0, 0); - -moz-transform: translate3d(-10px, 0, 0); - -o-transform: translate3d(-10px, 0, 0); - -ms-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); -ms-transform: translate3d(10px, 0, 0); - -webkit-transform: translate3d(10px, 0, 0); - -moz-transform: translate3d(10px, 0, 0); - -o-transform: translate3d(10px, 0, 0); - -ms-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } @@ -369,28 +303,16 @@ table.zebra tr.selected .s-single-line:after { 0%, 100% { -webkit-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); - -webkit-transform: translate3d(0, 0, 0); - -moz-transform: translate3d(0, 0, 0); - -o-transform: translate3d(0, 0, 0); - -ms-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { -webkit-transform: translate3d(-10px, 0, 0); -ms-transform: translate3d(-10px, 0, 0); - -webkit-transform: translate3d(-10px, 0, 0); - -moz-transform: translate3d(-10px, 0, 0); - -o-transform: translate3d(-10px, 0, 0); - -ms-transform: translate3d(-10px, 0, 0); transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { -webkit-transform: translate3d(10px, 0, 0); -ms-transform: translate3d(10px, 0, 0); - -webkit-transform: translate3d(10px, 0, 0); - -moz-transform: translate3d(10px, 0, 0); - -o-transform: translate3d(10px, 0, 0); - -ms-transform: translate3d(10px, 0, 0); transform: translate3d(10px, 0, 0); } } @@ -399,24 +321,16 @@ table.zebra tr.selected .s-single-line:after { } .s-sidebar-block .menu-v a { color: #777; - -webkit-transition: all 0.3s ease; - -moz-transition: all 0.3s ease; - -o-transition: all 0.3s ease; - -ms-transition: all 0.3s ease; transition: all 0.3s ease; } .s-sidebar-block .menu-v a i.icon16 { opacity: 0.4; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; - filter: alpha(opacity=40); } .s-sidebar-block .menu-v a:hover { color: #333 !important; } .s-sidebar-block .menu-v a:hover i.icon16 { opacity: 0.8; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; - filter: alpha(opacity=80); } .s-sidebar-block .menu-v li { margin-bottom: 6px; @@ -428,80 +342,64 @@ table.zebra tr.selected .s-single-line:after { } .s-sidebar-block .menu-v li.selected a i.icon16 { opacity: 1; - -ms-filter: none; - filter: none; } .icon16.ws { - -webkit-transition: all 0.3s ease; - -moz-transition: all 0.3s ease; - -o-transition: all 0.3s ease; - -ms-transition: all 0.3s ease; transition: all 0.3s ease; - -webkit-background-size: contain; - -moz-background-size: contain; background-size: contain; background-position: center; } .icon16.ws.general { - background-image: url("../../../img/wa-settings/ws-general.svg"); + background-image: url("../../img/wa-settings/ws-general.svg"); } .icon16.ws.email { - background-image: url("../../../img/wa-settings/ws-email.svg"); + background-image: url("../../img/wa-settings/ws-email.svg"); } .icon16.ws.maps { - background-image: url("../../../img/wa-settings/ws-map.svg"); + background-image: url("../../img/wa-settings/ws-map.svg"); } .icon16.ws.captcha { - background-image: url("../../../img/wa-settings/ws-lock.svg"); + background-image: url("../../img/wa-settings/ws-lock.svg"); } .icon16.ws.sms { - background-image: url("../../../img/wa-settings/ws-sms.svg"); + background-image: url("../../img/wa-settings/ws-sms.svg"); } .icon16.ws.auth { - background-image: url("../../../img/wa-settings/ws-key.svg"); + background-image: url("../../img/wa-settings/ws-key.svg"); } .icon16.ws.email-template, .icon16.ws.sms-template { - background-image: url("../../../img/wa-settings/ws-template.svg"); + background-image: url("../../img/wa-settings/ws-template.svg"); } .icon16.ws.db { - background-image: url("../../../img/wa-settings/ws-db.svg"); + background-image: url("../../img/wa-settings/ws-db.svg"); } .s-error-message-wrapper { color: #f00; margin-top: 6px; } .icon16.ws.field { - background-image: url("../../../img/wa-settings/ws-fields.svg"); - -webkit-background-size: contain; - -moz-background-size: contain; + background-image: url("../../img/wa-settings/ws-fields.svg"); background-size: contain; background-position: center; } .icon16.ws.regions { - background-image: url("../../../img/wa-settings/ws-regions.svg"); - -webkit-background-size: contain; - -moz-background-size: contain; + background-image: url("../../img/wa-settings/ws-regions.svg"); background-size: contain; background-position: center; } .icon16.ws.push { - background-image: url("../../../img/wa-settings/ws-push.svg"); - -webkit-background-size: contain; - -moz-background-size: contain; + background-image: url("../../img/wa-settings/ws-push.svg"); background-size: contain; background-position: center; } .icon16.ws.waid { - background-image: url("../../../img/wa-settings/ws-waid.svg"); + background-image: url("../../img/wa-settings/ws-waid.svg"); } .icon16.ws.waid-green { - background-image: url("../../../img/webasyst-wand-bold.svg"); + background-image: url("../../img/wa-settings/ws-waid-green.svg"); } .s-email-settings-page .s-settings-items .s-item:hover > .s-remove { opacity: 0.6; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; - filter: alpha(opacity=60); } .s-email-settings-page .s-settings-items .s-item:not(:last-child) { border-bottom: 1px solid #ccc; @@ -515,18 +413,10 @@ table.zebra tr.selected .s-single-line:after { top: 0; right: 0; opacity: 0; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - filter: alpha(opacity=0); - -webkit-transition: opacity 200ms linear; - -moz-transition: opacity 200ms linear; - -o-transition: opacity 200ms linear; - -ms-transition: opacity 200ms linear; transition: opacity 200ms linear; } .s-email-settings-page .s-settings-items .s-item .s-remove:hover { opacity: 1; - -ms-filter: none; - filter: none; } .s-email-settings-page .s-settings-items .s-item .s-dkim-field { margin-top: 10px; @@ -539,7 +429,7 @@ table.zebra tr.selected .s-single-line:after { } .s-email-settings-page .s-add-item { display: inline-block; - margin: 20px 0; + margin-bottom: 20px; } .s-email-templates-page .s-email-template-sidebar-wrapper .s-new-templates { display: block; @@ -563,20 +453,12 @@ table.zebra tr.selected .s-single-line:after { .s-email-templates-page .s-email-template-sidebar-wrapper .s-sidebar-items .s-channel-edit { margin-top: 1px; opacity: 0.6; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; - filter: alpha(opacity=60); - -webkit-transition: opacity 200ms linear; - -moz-transition: opacity 200ms linear; - -o-transition: opacity 200ms linear; - -ms-transition: opacity 200ms linear; transition: opacity 200ms linear; cursor: pointer; float: right; } .s-email-templates-page .s-email-template-sidebar-wrapper .s-sidebar-items .s-channel-edit:hover { opacity: 1; - -ms-filter: none; - filter: none; } .s-email-templates-page .s-email-template-sidebar-wrapper .s-sidebar-items .s-template-item { padding-left: 44px !important; @@ -606,7 +488,6 @@ table.zebra tr.selected .s-single-line:after { border: 1px solid #ccc; } .s-email-templates-page .content .s-template-form .ace .ace_scroller.ace_scroll-left { - -webkit-box-shadow: initial !important; box-shadow: initial !important; } .s-email-templates-page .content .s-template-form .ace .ace_print-margin { @@ -685,7 +566,6 @@ table.zebra tr.selected .s-single-line:after { border: 1px solid #ccc; } .s-sms-templates-page .content .ace .ace_scroller.ace_scroll-left { - -webkit-box-shadow: initial !important; box-shadow: initial !important; } .s-sms-templates-page .content .ace .ace_print-margin { @@ -755,10 +635,6 @@ table.zebra tr.selected .s-single-line:after { width: 30px; z-index: -1; left: -50px; - -webkit-transform: rotateY(180deg); - -moz-transform: rotateY(180deg); - -o-transform: rotateY(180deg); - -ms-transform: rotateY(180deg); transform: rotateY(180deg); } .s-sms-preview-template-dialog .s-sender-wrapper { @@ -822,18 +698,10 @@ table.zebra tr.selected .s-single-line:after { max-width: 95px; overflow: hidden; opacity: 0.7; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; - filter: alpha(opacity=70); - -webkit-transition: opacity 100ms linear; - -moz-transition: opacity 100ms linear; - -o-transition: opacity 100ms linear; - -ms-transition: opacity 100ms linear; transition: opacity 100ms linear; } .s-auth-settings-page .s-auth-settings-fields-block .s-auth-background .s-background-images li a:hover { opacity: 0.9; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; - filter: alpha(opacity=90); } .s-auth-settings-page .s-auth-settings-fields-block .s-auth-background .s-background-images li a img { width: 95px; @@ -844,8 +712,6 @@ table.zebra tr.selected .s-single-line:after { border-color: #fdda3b; border-radius: 4px; opacity: 1; - -ms-filter: none; - filter: none; } .s-auth-settings-page .s-auth-settings-fields-block .s-custom-background-preview .s-custom-image-preview { display: block; @@ -962,8 +828,6 @@ table.zebra tr.selected .s-single-line:after { .s-auth-settings-page .s-auth-settings-fields-block-cover { background: #fff; opacity: 0.8; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; - filter: alpha(opacity=80); z-index: 100; right: 0; position: absolute; @@ -1012,8 +876,6 @@ table.zebra tr.selected .s-single-line:after { } .s-field-edit-dialog .subfields-list tr:hover .c-link-wrapper a { opacity: 1; - -ms-filter: none; - filter: none; } .s-field-edit-dialog .editor-on .edit { visibility: hidden; @@ -1055,18 +917,10 @@ table.zebra tr.selected .s-single-line:after { } .s-field-edit-dialog .s-link-wrapper a { opacity: 0.5; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; - filter: alpha(opacity=50); - -webkit-transition: opacity 200ms linear; - -moz-transition: opacity 200ms linear; - -o-transition: opacity 200ms linear; - -ms-transition: opacity 200ms linear; transition: opacity 200ms linear; } .s-field-edit-dialog .s-link-wrapper a:hover { opacity: 1; - -ms-filter: none; - filter: none; } .s-field-edit-dialog .s-link-wrapper .icon16 { margin: 0 4px 0 0; @@ -1076,7 +930,6 @@ table.zebra tr.selected .s-single-line:after { } .s-field-edit-dialog .ellipsis { white-space: nowrap; - -o-text-overflow: ellipsis; text-overflow: ellipsis; width: 210px; display: inline-block; @@ -1123,23 +976,8 @@ table.zebra tr.selected .s-single-line:after { color: #808080; } .s-db-list-dialog .s-dialog-header { - display: -webkit-box; - display: -moz-box; - display: -webkit-flex; - display: -ms-flexbox; - display: box; display: flex; - -webkit-box-align: center; - -moz-box-align: center; - -o-box-align: center; - -ms-flex-align: center; - -webkit-align-items: center; align-items: center; - -webkit-box-pack: justify; - -moz-box-pack: justify; - -o-box-pack: justify; - -ms-flex-pack: justify; - -webkit-justify-content: space-between; justify-content: space-between; } .s-db-list-dialog .s-dialog-header a.is-selected b { @@ -1155,23 +993,8 @@ table.zebra tr.selected .s-single-line:after { color: #000; } .s-db-list-dialog .s-dialog-footer { - display: -webkit-box; - display: -moz-box; - display: -webkit-flex; - display: -ms-flexbox; - display: box; display: flex; - -webkit-box-align: center; - -moz-box-align: center; - -o-box-align: center; - -ms-flex-align: center; - -webkit-align-items: center; align-items: center; - -webkit-box-pack: justify; - -moz-box-pack: justify; - -o-box-pack: justify; - -ms-flex-pack: justify; - -webkit-justify-content: space-between; justify-content: space-between; } @-webkit-keyframes pending { @@ -1187,10 +1010,6 @@ table.zebra tr.selected .s-single-line:after { } .s-db-list-dialog .s-dialog-footer .s-dialog-notice { -webkit-animation: pending 2s linear infinite; - -webkit-animation: pending 2s linear infinite; - -moz-animation: pending 2s linear infinite; - -o-animation: pending 2s linear infinite; - -ms-animation: pending 2s linear infinite; animation: pending 2s linear infinite; } @-moz-keyframes pending { diff --git a/wa-content/css/wa-settings/settings.css b/wa-content/css/wa-settings/settings.css index b4c5e0d93..bac6070cc 100644 --- a/wa-content/css/wa-settings/settings.css +++ b/wa-content/css/wa-settings/settings.css @@ -763,7 +763,7 @@ } .s-email-settings-page .s-add-item { display: inline-block; - margin: 20px 0; + margin-top: 20px; } .s-email-templates-page .s-email-template-sidebar-wrapper section header { cursor: pointer; diff --git a/wa-content/js/jquery-wa/wa-settings/legacy/settings.email.js b/wa-content/js/jquery-wa/wa-settings/legacy/settings.email.js index 60dbe7fe1..ba6583bb0 100644 --- a/wa-content/js/jquery-wa/wa-settings/legacy/settings.email.js +++ b/wa-content/js/jquery-wa/wa-settings/legacy/settings.email.js @@ -165,8 +165,9 @@ var WASettingsEmail = ( function($) { e.preventDefault(); var $item = that.$item_template.clone().removeClass('js-template').addClass('js-item'); $item.find('.js-key').val(''); - that.$items_wrapper.append($item); + that.$items_wrapper.prepend($item); that.$form.trigger('input'); + $item.find(that.transport_class).trigger('change'); }); // Remove item diff --git a/wa-content/js/jquery-wa/wa-settings/settings.email.js b/wa-content/js/jquery-wa/wa-settings/settings.email.js index b59a81ce6..203f20b04 100644 --- a/wa-content/js/jquery-wa/wa-settings/settings.email.js +++ b/wa-content/js/jquery-wa/wa-settings/settings.email.js @@ -352,8 +352,9 @@ class WASettingsEmail { e.preventDefault(); let $item = that.$item_template.clone().removeClass('js-template').addClass('js-item'); $item.find('.js-key').val(''); - that.$items_wrapper.append($item); + that.$items_wrapper.prepend($item); that.$form.trigger('input'); + $item.find(that.transport_class).trigger('change'); }); // Remove item diff --git a/wa-content/js/redactor/2/redactor.min.js b/wa-content/js/redactor/2/redactor.min.js index a80afe9ab..6412a143f 100644 --- a/wa-content/js/redactor/2/redactor.min.js +++ b/wa-content/js/redactor/2/redactor.min.js @@ -11,9 +11,9 @@ Usage: $('#content').redactor(); */ if(function(t){"use strict";function e(t,i){return new e.prototype.init(t,i)}Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;return function(){return e.apply(t)}});var i=0;t.fn.redactor=function(i){var o=[],r=Array.prototype.slice.call(arguments,1);return"string"==typeof i?this.each(function(){var e,s=t.data(this,"redactor");if("-1"!==i.search(/\./)?(e=i.split("."),void 0!==s[e[0]]&&(e=s[e[0]][e[1]])):e=s[i],void 0!==s&&t.isFunction(e)){var n=e.apply(s,r);void 0!==n&&n!==s&&o.push(n)}else t.error('No such method "'+i+'" for Redactor')}):this.each(function(){t.data(this,"redactor",{}),t.data(this,"redactor",e(this,i))}),0===o.length?this:1===o.length?o[0]:o},t.Redactor=e,t.Redactor.VERSION="2.10",t.Redactor.modules=["air","autosave","block","buffer","build","button","caret","clean","code","core","detect","dropdown","events","file","focus","image","indent","inline","insert","keydown","keyup","lang","line","link","linkify","list","marker","modal","observe","offset","paragraphize","paste","placeholder","progress","selection","shortcuts","storage","toolbar","upload","uploads3","utils","browser"],t.Redactor.settings={},t.Redactor.opts={animation:!1,lang:"en",direction:"ltr",spellcheck:!0,overrideStyles:!0,stylesClass:!1,scrollTarget:document,focus:!1,focusEnd:!1,clickToEdit:!1,structure:!1,tabindex:!1,minHeight:!1,maxHeight:!1,maxWidth:!1,plugins:!1,callbacks:{},placeholder:!1,linkify:!0,enterKey:!0,pastePlainText:!1,pasteImages:!0,pasteLinks:!0,pasteBlockTags:["pre","h1","h2","h3","h4","h5","h6","table","tbody","thead","tfoot","th","tr","td","ul","ol","li","blockquote","p","figure","figcaption"],pasteInlineTags:["br","strong","ins","code","del","span","samp","kbd","sup","sub","mark","var","cite","small","b","u","em","i"],preClass:!1,preSpaces:4,tabAsSpaces:!1,tabKey:!0,autosave:!1,autosaveName:!1,autosaveFields:!1,imageUpload:null,imageUploadParam:"file",imageUploadFields:!1,imageUploadForms:!1,imageTag:"figure",imageEditable:!0,imageCaption:!0,imagePosition:!1,imageResizable:!1,imageFloatMargin:"10px",dragImageUpload:!0,multipleImageUpload:!0,clipboardImageUpload:!0,fileUpload:null,fileUploadParam:"file",fileUploadFields:!1,fileUploadForms:!1,dragFileUpload:!0,s3:!1,linkNewTab:!1,linkTooltip:!0,linkNofollow:!1,linkSize:30,linkValidation:!0,pasteLinkTarget:!1,videoContainerClass:"video-container",toolbar:!0,toolbarFixed:!0,toolbarFixedTarget:document,toolbarFixedTopOffset:0,toolbarExternal:!1,toolbarOverflow:!1,air:!1,airWidth:!1,formatting:["p","blockquote","pre","h1","h2","h3","h4","h5","h6"],formattingAdd:!1,buttons:["format","bold","italic","deleted","lists","image","file","link","horizontalrule"],buttonsTextLabeled:!1,buttonsHide:[],buttonsHideOnMobile:[],script:!0,removeNewlines:!1,removeComments:!0,replaceTags:{b:"strong",i:"em",strike:"del"},keepStyleAttr:[],keepInlineOnEnter:!1,shortcuts:{"ctrl+shift+m, meta+shift+m":{func:"inline.removeFormat"},"ctrl+b, meta+b":{func:"inline.format",params:["bold"]},"ctrl+i, meta+i":{func:"inline.format",params:["italic"]},"ctrl+h, meta+h":{func:"inline.format",params:["superscript"]},"ctrl+l, meta+l":{func:"inline.format",params:["subscript"]},"ctrl+k, meta+k":{func:"link.show"},"ctrl+shift+7":{func:"list.toggle",params:["orderedlist"]},"ctrl+shift+8":{func:"list.toggle",params:["unorderedlist"]}},shortcutsAdd:!1,activeButtons:["deleted","italic","bold"],activeButtonsStates:{b:"bold",strong:"bold",i:"italic",em:"italic",del:"deleted",u:"underline",strike:"deleted"},langs:{en:{format:"Format",image:"Image",file:"File",link:"Link",bold:"Bold",italic:"Italic",deleted:"Strikethrough",underline:"Underline","bold-abbr":"B","italic-abbr":"I","deleted-abbr":"S","underline-abbr":"U",lists:"Lists","link-insert":"Insert link","link-edit":"Edit link","link-in-new-tab":"Open link in new tab",unlink:"Unlink",cancel:"Cancel",close:"Close",insert:"Insert",save:"Save",delete:"Delete",text:"Text",edit:"Edit",title:"Title",general:"General",paragraph:"Normal text",quote:"Quote",code:"Code",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",filename:"Name",optional:"optional",unorderedlist:"Unordered List",orderedlist:"Ordered List",outdent:"Outdent",indent:"Indent",horizontalrule:"Line","upload-label":"Drop file here or ",caption:"Caption",upload:"Upload",bulletslist:"Bullets",numberslist:"Numbers","image-position":"Position",none:"None",left:"Left",right:"Right",center:"Center","accessibility-help-label":"Rich text editor"}},type:"textarea",inline:!1,inlineTags:["a","span","strong","strike","b","u","em","i","code","del","ins","samp","kbd","sup","sub","mark","var","cite","small"],blockTags:["pre","ul","ol","li","p","h1","h2","h3","h4","h5","h6","dl","dt","dd","div","td","blockquote","output","figcaption","figure","address","section","header","footer","aside","article","iframe"],paragraphize:!0,paragraphizeBlocks:["table","div","pre","form","ul","ol","h1","h2","h3","h4","h5","h6","dl","blockquote","figcaption","address","section","header","footer","aside","article","object","style","script","iframe","select","input","textarea","button","option","map","area","math","hr","fieldset","legend","hgroup","nav","figure","details","menu","summary","p"],emptyHtml:"
",invisibleSpace:"",emptyHtmlRendered:t("").html("").html(),imageTypes:["image/png","image/jpeg","image/gif"],userAgent:navigator.userAgent.toLowerCase(),observe:{dropdowns:[]},regexps:{linkyoutube:/https?:\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com\S*[^\w\-\s])([\w\-]{11})(?=[^\w\-]|$)(?![?=&+%\w.\-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*/gi,linkvimeo:/https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/,linkvimeochannel:/https?:\/\/(www\.)?vimeo.com\/channels\/[^\/]+\/(\d+)($|\/)/,linkimage:/((https?|www)[^\s]+\.)(jpe?g|png|gif)(\?[^\s-]+)?/gi,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/gi}},e.fn=t.Redactor.prototype={keyCode:{BACKSPACE:8,DELETE:46,UP:38,DOWN:40,ENTER:13,SPACE:32,ESC:27,TAB:9,CTRL:17,META:91,SHIFT:16,ALT:18,RIGHT:39,LEFT:37,LEFT_WIN:91},init:function(e,o){if(this.$element=t(e),this.uuid=i++,this.sBuffer=[],this.sRebuffer=[],this.loadOptions(o),this.loadModules(),this.opts.clickToEdit&&!this.$element.hasClass("redactor-click-to-edit"))return this.loadToEdit(o);this.$element.hasClass("redactor-click-to-edit")&&this.$element.removeClass("redactor-click-to-edit"),this.reIsBlock=new RegExp("^("+this.opts.blockTags.join("|").toUpperCase()+")$","i"),this.reIsInline=new RegExp("^("+this.opts.inlineTags.join("|").toUpperCase()+")$","i"),this.opts.dragImageUpload=null!==this.opts.imageUpload&&this.opts.dragImageUpload,this.opts.dragFileUpload=null!==this.opts.fileUpload&&this.opts.dragFileUpload,this.formatting={},this.lang.load(),t.extend(this.opts.shortcuts,this.opts.shortcutsAdd),this.$editor=this.$element,this.detectType(),this.core.callback("start"),this.core.callback("startToEdit"),this.start=!0,this.build.start()},detectType:function(){this.build.isInline()||this.opts.inline?this.opts.type="inline":this.build.isTag("DIV")?this.opts.type="div":this.build.isTag("PRE")&&(this.opts.type="pre")},loadToEdit:function(e){this.$element.on("click.redactor-click-to-edit",t.proxy(function(){this.initToEdit(e)},this)),this.$element.addClass("redactor-click-to-edit")},initToEdit:function(e){t.extend(e.callbacks,{startToEdit:function(){this.insert.node(this.marker.get(),!1)},initToEdit:function(){this.selection.restore(),this.clickToCancelStorage=this.code.get(),t(this.opts.clickToCancel).off(".redactor-click-to-edit"),t(this.opts.clickToCancel).show().on("click.redactor-click-to-edit",t.proxy(function(i){i.preventDefault(),this.core.destroy(),this.events.syncFire=!1,this.$element.html(this.clickToCancelStorage),this.core.callback("cancel",this.clickToCancelStorage),this.events.syncFire=!0,this.clickToCancelStorage="",t(this.opts.clickToCancel).hide(),t(this.opts.clickToSave).hide(),this.$element.on("click.redactor-click-to-edit",t.proxy(function(){this.initToEdit(e)},this)),this.$element.addClass("redactor-click-to-edit")},this)),t(this.opts.clickToSave).off(".redactor-click-to-edit"),t(this.opts.clickToSave).show().on("click.redactor-click-to-edit",t.proxy(function(i){i.preventDefault(),this.core.destroy(),this.core.callback("save",this.code.get()),t(this.opts.clickToCancel).hide(),t(this.opts.clickToSave).hide(),this.$element.on("click.redactor-click-to-edit",t.proxy(function(){this.initToEdit(e)},this)),this.$element.addClass("redactor-click-to-edit")},this))}}),this.$element.redactor(e),this.$element.off(".redactor-click-to-edit")},loadOptions:function(e){var i={};void 0!==t.Redactor.settings.namespace?this.$element.hasClass(t.Redactor.settings.namespace)&&(i=t.Redactor.settings):i=t.Redactor.settings,this.opts=t.extend({},t.Redactor.opts,this.$element.data(),e),this.opts=t.extend({},this.opts,i)},getModuleMethods:function(t){return Object.getOwnPropertyNames(t).filter(function(e){return"function"==typeof t[e]})},loadModules:function(){for(var e=t.Redactor.modules.length,i=0;i