diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b03eec02..b026bbfaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,36 @@ # CHANGELOG for husky +* dev-develop + * FEATURE #632 Fixed wrong index of regex + * BUGFIX #631 Fixed javascript error when clicking on column navigation options + * FEATURE #630 Added overlay-loader + * BUGFIX #629 Avoid having scientific representation of number in formatBytes method + * BUGFIX #628 Fixed inheriting font from FontAwesome + * BUGFIX #627 Fixed preselection filtering bug + * BUGFIX #626 Added filtering of preselected items + * BUGFIX #625 Improved regex for urls + * BUGFIX #624 Fixed ui bugs in overlay, navigation and data-navigation + * BUGFIX #623 Added missing value check to matrix component + * ENHANCEMENT #622 Added navigation divider for sections with no title + * ENHANCEMENT #620 Fixed gap between different containers and input-description + * ENHANCEMENT #621 Made badge usable outside of datagrid + * BUGFIX #618 Fixed update of record with a different id property + * FEATURE #619 Introduced info text for dropdown + * BUGFIX #617 Fixed jquery text function with empty value + * FEATURE #597 added additional callback for select and fixed css bugs + * BUGFIX #616 Fixed label tick in firefox + * ENHANCEMENT #615 Introduced no-img-icon as function to use record dependent icons + * BUGFIX #613 Fixed search-icon to prevent routing + * FEATURE #610 Added save parameter for datagrid + * BUGFIX #612 Fixed link style in white-boxes + * ENHANCEMENT #614 Added evaluate tab-conditions + * FEATURE #608 Allows each row in the matrix component to have different values + * ENHANCEMENT #595 Added default label for is-native selects + * ENHANCEMENT #594 Changed style of warning label + * ENHANCEMENT #593 Changed toggler to only use data attribute + * FEATURE #578 Adjusted design for multiple select + * FEATURE #586 Enhanced table view + * 0.18.6 (2016-03-07) * HOTFIX #609 Fixed input back class overlapping * HOTFIX #607 Fixed data-attribute id for auto-complete diff --git a/bower.json b/bower.json index ee4f063a5..c7172a973 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "husky", - "version": "0.18.6", + "version": "develop", "main": "js/husky.js", "dependencies": { "backbone": "1.1.*", diff --git a/bower_components/husky-validation/dist/validation.js b/bower_components/husky-validation/dist/validation.js index 176b92de3..1bb185e9b 100644 --- a/bower_components/husky-validation/dist/validation.js +++ b/bower_components/husky-validation/dist/validation.js @@ -22,7 +22,29 @@ define('form/util',[], function() { // get form fields getFields: function(element) { - return $(element).find('input:not([data-form="false"], [type="submit"], [type="button"]), textarea:not([data-form="false"]), select:not([data-form="false"]), *[data-form="true"], *[data-type="collection"], *[contenteditable="true"]'); + return $(element).find('input:not([data-form="false"], [type="submit"], [type="button"], [type="checkbox"], [type="radio"]), textarea:not([data-form="false"]), select:not([data-form="false"]), *[data-form="true"], *[data-type="collection"], *[contenteditable="true"]'); + }, + + findGroupedFieldsBySelector: function(element, filter) { + var groupedFields = {}, fieldName; + + $(element).find(filter).each(function(key, field) { + fieldName = $(field).data('mapper-property'); + if (!groupedFields[fieldName]) { + groupedFields[fieldName] = []; + } + groupedFields[fieldName].push(field); + }); + + return groupedFields; + }, + + getCheckboxes: function(element) { + return this.findGroupedFieldsBySelector(element, 'input[type="checkbox"]'); + }, + + getRadios: function(element) { + return this.findGroupedFieldsBySelector(element, 'input[type="radio"]'); }, /** @@ -205,9 +227,7 @@ define('form/util',[], function() { isNumeric: function(str) { return str.match(/-?\d+(.\d+)?/); } - }; - }); /* @@ -596,6 +616,84 @@ define('form/element',['form/util'], function(Util) { }); +/* + * This file is part of Husky Validation. + * + * (c) MASSIVE ART WebServices GmbH + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +define('form/elementGroup',[],function() { + 'use strict'; + + var setMultipleValue = function(elements, values) { + elements.forEach(function(element) { + values.forEach(function(value) { + if (element.$el.val() === value) { + element.$el.prop('checked', true); + } + }); + }); + }, + + setSingleValue = function(elements, value) { + for (var i = -1; ++i < elements.length;) { + if (elements[i].$el.val() === value) { + elements[i].$el.prop('checked', true); + + return; + } + } + }; + + return function(elements, isSingleValue) { + var result = { + getValue: function() { + var value = []; + elements.forEach(function(element) { + if (element.$el.is(':checked')) { + value.push(element.$el.val()); + } + }); + + if (!!isSingleValue) { + if (value.length > 1) { + throw new Error('Single value element group cannot return more than one value'); + } + + return value[0]; + } + + return value; + }, + + setValue: function(values) { + if (!!isSingleValue && !!$.isArray(values)) { + throw new Error('Single value element cannot be set to an array value'); + } + + if (!isSingleValue && !$.isArray(values)) { + throw new Error('Field with multiple values cannot be set to a single value'); + } + + if ($.isArray(values)) { + setMultipleValue.call(this, elements, values); + } else { + setSingleValue.call(this, elements, values); + } + } + }; + + elements.forEach(function(element) { + element.$el.data('elementGroup', result); + }); + + return result; + }; +}); + /* * This file is part of the Husky Validation. * @@ -649,6 +747,16 @@ define('form/validation',[ } }); + $.each(form.mapper.collections, function(i, collection) { + $.each(collection.items, function(j, item) { + $.each(item.data('collection').childElements, function(k, childElement) { + if (!childElement.validate(force)) { + result = false; + } + }); + }); + }); + that.setValid.call(this, result); Util.debug('Validation', !!result ? 'success' : 'error'); return result; @@ -725,8 +833,6 @@ define('form/mapper',[ this.collectionsSet = {}; this.emptyTemplates = {}; this.templates = {}; - this.elements = []; - this.collectionsInitiated = $.Deferred(); form.initialized.then(function() { var selector = '*[data-type="collection"]', @@ -740,7 +846,7 @@ define('form/mapper',[ var $element = $(value), element = $element.data('element'), property = $element.data('mapper-property'), - $newChild, collection, emptyTemplate, + newChild, collection, emptyTemplate, dfd = $.Deferred(), counter = 0, resolve = function() { @@ -755,7 +861,7 @@ define('form/mapper',[ property = [property]; $element.data('mapper-property', property); } else { - throw "no valid mapper-property value"; + throw 'no valid mapper-property value'; } } @@ -770,7 +876,8 @@ define('form/mapper',[ id: _.uniqueId('collection_'), property: property, $element: $element, - element: element + element: element, + items: [] }; this.collections.push(collection); @@ -791,16 +898,16 @@ define('form/mapper',[ throw 'template has to be defined as @@ -43,17 +36,18 @@ require(['lib/husky'], function(Husky) { 'use strict'; - var app = Husky({ debug: { enable: true }}), - _ = app.sandbox.util._; + var app = Husky({debug: {enable: true}}), + _ = app.sandbox.util._; app.start().then(function() { app.logger.log('Aura started...'); + app.sandbox.start([ { name: 'matrix@husky', options: { - el: '#container', + el: '#matrix', captions: { all: 'Select all', none: 'Select none', @@ -65,20 +59,34 @@ values: { vertical: ['sulu.assets.videos', 'sulu.assets.documents', 'sulu.assets.images'], horizontal: [ - {value: 'value1', icon: 'plus'}, - {value: 'value2', icon: 'edit'}, - {value: 'value3', icon: 'search'}, - {value: 'value4', icon: 'times'}, - {value: 'value5', icon: 'gear'}, - {value: 'value6', icon: 'check'}, - {value: 'value7', icon: 'building'} - ], - titles: ['add', 'edit', 'search', 'remove', 'settings', 'circle-ok', 'building'] + [ + {value: 'value1', icon: 'plus', title: 'add'}, + {value: 'value2', icon: 'edit', title: 'edit'}, + {value: 'value3', icon: 'search', title: 'search'}, + {value: 'value4', icon: 'times', title: 'remove'}, + {value: 'value5', icon: 'gear', title: 'settings'}, + {value: 'value6', icon: 'check', title: 'circle-ok'}, + {value: 'value7', icon: 'building', title: 'building'} + ], + [ + {value: 'value2', icon: 'edit', title: 'edit'}, + {value: 'value4', icon: 'times', title: 'remove'}, + {value: 'value5', icon: 'gear', title: 'settings'}, + {value: 'value7', icon: 'building', title: 'building'} + ], + [ + {value: 'value1', icon: 'plus', title: 'add'}, + {value: 'value2', icon: 'edit', title: 'edit'}, + {value: 'value3', icon: 'search', title: 'search'}, + {value: 'value4', icon: 'times', title: 'remove'}, + {value: 'value5', icon: 'gear', title: 'settings'}, + ] + ] }, data: [ [true, false, true, false, false, false, false], - [true, true, true, true, true, true, true], - [false, true, true, false, true, false, true] + [true, true, true, true], + [false, true, true, false, true] ] } } diff --git a/demos/toggler/index.html b/demos/toggler/index.html new file mode 100644 index 000000000..9b1fda10d --- /dev/null +++ b/demos/toggler/index.html @@ -0,0 +1,53 @@ + + + + + + + + + + Toggler + + + + + + + + +

Standard Toggler

+
+ + + + + + + + + diff --git a/dist/husky.css b/dist/husky.css index 8fc777f85..b67856495 100644 --- a/dist/husky.css +++ b/dist/husky.css @@ -839,133 +839,6 @@ table { height: 25px !important; } -/* line 7, ../scss/typo.scss */ -body { - font-size: 14px; - font-family: Helvetica, Arial, sans-serif; - line-height: 20px; -} - -/* line 15, ../scss/typo.scss */ -h1, -h2, -h3, -h4, -h5, -h6 { - font-family: inherit; - font-weight: normal; - color: #999; -} - -/* line 26, ../scss/typo.scss */ -h1 { - color: #52B6CA; - font-size: 36px; - line-height: 40px; - margin: 10px 0 40px 0; -} -/* line 32, ../scss/typo.scss */ -h1.bright { - color: #74C4D4; - font-size: 24px; - margin-bottom: 20px; -} - -/* line 39, ../scss/typo.scss */ -h2 { - font-size: 24px; - line-height: 30px; - margin: 0 0 20px 0; -} -/* line 44, ../scss/typo.scss */ -h2.content-title { - margin-bottom: 30px; -} -/* line 45, ../scss/typo.scss */ -h2.content-title.underlined { - border-bottom: 2px solid #ddd; -} -/* line 52, ../scss/typo.scss */ -h2.light { - color: #ccc; -} - -/* line 57, ../scss/typo.scss */ -h3 { - font-size: 20px; - line-height: 25px; -} - -/* line 62, ../scss/typo.scss */ -h4 { - font-size: 18px; - line-height: 20px; -} - -/* line 67, ../scss/typo.scss */ -h5 { - font-size: 14px; - line-height: 15px; -} - -/* line 72, ../scss/typo.scss */ -h6 { - font-size: 12px; - line-height: 15px; - margin: 0; -} - -/* line 79, ../scss/typo.scss */ -.compoundedHeadlines :first-child { - color: #52B6CA; - font-size: 14px; - margin: 0; - line-height: 20px; -} -/* line 85, ../scss/typo.scss */ -.compoundedHeadlines :nth-child(2) { - margin-top: 0; -} - -/* line 92, ../scss/typo.scss */ -h1, h2, h3, h4, h5 { - position: relative; - z-index: 1; - overflow: hidden; -} -/* line 96, ../scss/typo.scss */ -h1.divider:after, h2.divider:after, h3.divider:after, h4.divider:after, h5.divider:after { - position: absolute; - top: 50%; - margin-left: 10px; - overflow: hidden; - width: 100%; - height: 1px; - content: '\a0'; - background-color: #ccc; -} - -/* line 111, ../scss/typo.scss */ -.bold { - font-family: Helvetica, Arial, sans-serif !important; -} - -/* line 120, ../scss/typo.scss */ -.small-font { - font-size: 12px; -} - -/* line 124, ../scss/typo.scss */ -.smaller-font { - font-size: 10px; -} - -/* line 128, ../scss/typo.scss */ -.grey-font { - color: #999; -} - /* line 10, ../scss/various.scss */ .husky-position { width: 100%; @@ -2894,7 +2767,7 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset font-style: normal; } /* line 4, ../scss/fontawesome/_core.scss */ -.fa, .custom-checkbox input:checked + .icon::after, .custom-checkbox input.is-checked + .icon::after, .custom-checkbox input:indeterminate + .icon::after, .custom-checkbox input.is-indeterminate + .icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a::before, .navigation-item-container .navigation-items li.is-selected a::before, .addButton, .pagination-wrapper.dropdowns .pagination .pagination-prev::after, .pagination-wrapper.dropdowns .pagination .pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.marked::before, .auto-complete-list-selection .tm-tag-remove, .husky-datagrid .husky-table.overflow:after, .husky-datagrid thead .is-sortable .cell-content::after, .sortable .text-block > .move::before, .text-block .collapsed-container.empty::before, [class^="fa-"] { +.fa, .custom-checkbox input:indeterminate + .icon::after, .custom-checkbox input.is-indeterminate + .icon::after, .custom-checkbox input:checked + .icon::after, .custom-checkbox input.is-checked + .icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a::before, .navigation-item-container .navigation-items li.is-selected a::before, .addButton, .pagination-wrapper.dropdowns .pagination .pagination-prev::after, .pagination-wrapper.dropdowns .pagination .pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.marked::before, .auto-complete-list-selection .tm-tag-remove, .husky-datagrid .husky-table.overflow:after, .husky-datagrid thead .is-sortable .cell-content::after, .sortable .text-block > .move::before, .text-block .collapsed-container.empty::before, [class^="fa-"] { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; @@ -2979,11 +2852,11 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset } /* line 14, ../scss/fontawesome/_bordered-pulled.scss */ -.fa.fa-pull-left, .custom-checkbox input:checked + .fa-pull-left.icon::after, .custom-checkbox input.is-checked + .fa-pull-left.icon::after, .custom-checkbox input:indeterminate + .fa-pull-left.icon::after, .custom-checkbox input.is-indeterminate + .fa-pull-left.icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a.fa-pull-left::before, .navigation-item-container .navigation-items li.is-selected a.fa-pull-left::before, .fa-pull-left.addButton, .pagination-wrapper.dropdowns .pagination .fa-pull-left.pagination-prev::after, .pagination-wrapper.dropdowns .pagination .fa-pull-left.pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.fa-pull-left.marked::before, .auto-complete-list-selection .fa-pull-left.tm-tag-remove, .husky-datagrid .fa-pull-left.husky-table.overflow:after, .husky-datagrid thead .is-sortable .fa-pull-left.cell-content::after, .sortable .text-block > .fa-pull-left.move::before, .text-block .fa-pull-left.collapsed-container.empty::before, .fa-pull-left[class^="fa-"] { +.fa.fa-pull-left, .custom-checkbox input:indeterminate + .fa-pull-left.icon::after, .custom-checkbox input.is-indeterminate + .fa-pull-left.icon::after, .custom-checkbox input:checked + .fa-pull-left.icon::after, .custom-checkbox input.is-checked + .fa-pull-left.icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a.fa-pull-left::before, .navigation-item-container .navigation-items li.is-selected a.fa-pull-left::before, .fa-pull-left.addButton, .pagination-wrapper.dropdowns .pagination .fa-pull-left.pagination-prev::after, .pagination-wrapper.dropdowns .pagination .fa-pull-left.pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.fa-pull-left.marked::before, .auto-complete-list-selection .fa-pull-left.tm-tag-remove, .husky-datagrid .fa-pull-left.husky-table.overflow:after, .husky-datagrid thead .is-sortable .fa-pull-left.cell-content::after, .sortable .text-block > .fa-pull-left.move::before, .text-block .fa-pull-left.collapsed-container.empty::before, .fa-pull-left[class^="fa-"] { margin-right: .3em; } /* line 15, ../scss/fontawesome/_bordered-pulled.scss */ -.fa.fa-pull-right, .custom-checkbox input:checked + .fa-pull-right.icon::after, .custom-checkbox input.is-checked + .fa-pull-right.icon::after, .custom-checkbox input:indeterminate + .fa-pull-right.icon::after, .custom-checkbox input.is-indeterminate + .fa-pull-right.icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a.fa-pull-right::before, .navigation-item-container .navigation-items li.is-selected a.fa-pull-right::before, .fa-pull-right.addButton, .pagination-wrapper.dropdowns .pagination .fa-pull-right.pagination-prev::after, .pagination-wrapper.dropdowns .pagination .fa-pull-right.pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.fa-pull-right.marked::before, .auto-complete-list-selection .fa-pull-right.tm-tag-remove, .husky-datagrid .fa-pull-right.husky-table.overflow:after, .husky-datagrid thead .is-sortable .fa-pull-right.cell-content::after, .sortable .text-block > .fa-pull-right.move::before, .text-block .fa-pull-right.collapsed-container.empty::before, .fa-pull-right[class^="fa-"] { +.fa.fa-pull-right, .custom-checkbox input:indeterminate + .fa-pull-right.icon::after, .custom-checkbox input.is-indeterminate + .fa-pull-right.icon::after, .custom-checkbox input:checked + .fa-pull-right.icon::after, .custom-checkbox input.is-checked + .fa-pull-right.icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a.fa-pull-right::before, .navigation-item-container .navigation-items li.is-selected a.fa-pull-right::before, .fa-pull-right.addButton, .pagination-wrapper.dropdowns .pagination .fa-pull-right.pagination-prev::after, .pagination-wrapper.dropdowns .pagination .fa-pull-right.pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.fa-pull-right.marked::before, .auto-complete-list-selection .fa-pull-right.tm-tag-remove, .husky-datagrid .fa-pull-right.husky-table.overflow:after, .husky-datagrid thead .is-sortable .fa-pull-right.cell-content::after, .sortable .text-block > .fa-pull-right.move::before, .text-block .fa-pull-right.collapsed-container.empty::before, .fa-pull-right[class^="fa-"] { margin-left: .3em; } @@ -2999,11 +2872,11 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset } /* line 23, ../scss/fontawesome/_bordered-pulled.scss */ -.fa.pull-left, .custom-checkbox input:checked + .pull-left.icon::after, .custom-checkbox input.is-checked + .pull-left.icon::after, .custom-checkbox input:indeterminate + .pull-left.icon::after, .custom-checkbox input.is-indeterminate + .pull-left.icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a.pull-left::before, .navigation-item-container .navigation-items li.is-selected a.pull-left::before, .pull-left.addButton, .pagination-wrapper.dropdowns .pagination .pull-left.pagination-prev::after, .pagination-wrapper.dropdowns .pagination .pull-left.pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.pull-left.marked::before, .auto-complete-list-selection .pull-left.tm-tag-remove, .husky-datagrid .pull-left.husky-table.overflow:after, .husky-datagrid thead .is-sortable .pull-left.cell-content::after, .sortable .text-block > .pull-left.move::before, .text-block .pull-left.collapsed-container.empty::before, .pull-left[class^="fa-"] { +.fa.pull-left, .custom-checkbox input:indeterminate + .pull-left.icon::after, .custom-checkbox input.is-indeterminate + .pull-left.icon::after, .custom-checkbox input:checked + .pull-left.icon::after, .custom-checkbox input.is-checked + .pull-left.icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a.pull-left::before, .navigation-item-container .navigation-items li.is-selected a.pull-left::before, .pull-left.addButton, .pagination-wrapper.dropdowns .pagination .pull-left.pagination-prev::after, .pagination-wrapper.dropdowns .pagination .pull-left.pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.pull-left.marked::before, .auto-complete-list-selection .pull-left.tm-tag-remove, .husky-datagrid .pull-left.husky-table.overflow:after, .husky-datagrid thead .is-sortable .pull-left.cell-content::after, .sortable .text-block > .pull-left.move::before, .text-block .pull-left.collapsed-container.empty::before, .pull-left[class^="fa-"] { margin-right: .3em; } /* line 24, ../scss/fontawesome/_bordered-pulled.scss */ -.fa.pull-right, .custom-checkbox input:checked + .pull-right.icon::after, .custom-checkbox input.is-checked + .pull-right.icon::after, .custom-checkbox input:indeterminate + .pull-right.icon::after, .custom-checkbox input.is-indeterminate + .pull-right.icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a.pull-right::before, .navigation-item-container .navigation-items li.is-selected a.pull-right::before, .pull-right.addButton, .pagination-wrapper.dropdowns .pagination .pull-right.pagination-prev::after, .pagination-wrapper.dropdowns .pagination .pull-right.pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.pull-right.marked::before, .auto-complete-list-selection .pull-right.tm-tag-remove, .husky-datagrid .pull-right.husky-table.overflow:after, .husky-datagrid thead .is-sortable .pull-right.cell-content::after, .sortable .text-block > .pull-right.move::before, .text-block .pull-right.collapsed-container.empty::before, .pull-right[class^="fa-"] { +.fa.pull-right, .custom-checkbox input:indeterminate + .pull-right.icon::after, .custom-checkbox input.is-indeterminate + .pull-right.icon::after, .custom-checkbox input:checked + .pull-right.icon::after, .custom-checkbox input.is-checked + .pull-right.icon::after, .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a.pull-right::before, .navigation-item-container .navigation-items li.is-selected a.pull-right::before, .pull-right.addButton, .pagination-wrapper.dropdowns .pagination .pull-right.pagination-prev::after, .pagination-wrapper.dropdowns .pagination .pull-right.pagination-next::after, .husky-toolbar .toolbar-dropdown-menu li.pull-right.marked::before, .auto-complete-list-selection .pull-right.tm-tag-remove, .husky-datagrid .pull-right.husky-table.overflow:after, .husky-datagrid thead .is-sortable .pull-right.cell-content::after, .sortable .text-block > .pull-right.move::before, .text-block .pull-right.collapsed-container.empty::before, .pull-right[class^="fa-"] { margin-left: .3em; } @@ -6205,6 +6078,143 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset text-align: left; } +/* line 7, ../scss/typo.scss */ +body { + font-size: 14px; + font-family: Helvetica, Arial, sans-serif; + line-height: 20px; +} + +/* line 15, ../scss/typo.scss */ +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: inherit; + font-weight: normal; + color: #999; +} + +/* line 26, ../scss/typo.scss */ +h1 { + color: #52B6CA; + font-size: 36px; + line-height: 40px; + margin: 10px 0 40px 0; +} +/* line 32, ../scss/typo.scss */ +h1.bright { + color: #74C4D4; + font-size: 24px; + margin-bottom: 20px; +} + +/* line 39, ../scss/typo.scss */ +h2 { + font-size: 24px; + line-height: 30px; + margin: 0 0 20px 0; +} +/* line 44, ../scss/typo.scss */ +h2.content-title { + margin-bottom: 30px; +} +/* line 45, ../scss/typo.scss */ +h2.content-title.underlined { + border-bottom: 2px solid #ddd; +} +/* line 52, ../scss/typo.scss */ +h2.light { + color: #ccc; +} + +/* line 57, ../scss/typo.scss */ +h3 { + font-size: 20px; + line-height: 25px; +} + +/* line 62, ../scss/typo.scss */ +h4 { + font-size: 18px; + line-height: 20px; +} + +/* line 67, ../scss/typo.scss */ +h5 { + font-size: 14px; + line-height: 15px; +} + +/* line 72, ../scss/typo.scss */ +h6 { + font-size: 12px; + line-height: 15px; + margin: 0; +} + +/* line 79, ../scss/typo.scss */ +.compoundedHeadlines :first-child { + color: #52B6CA; + font-size: 14px; + margin: 0; + line-height: 20px; +} +/* line 85, ../scss/typo.scss */ +.compoundedHeadlines :nth-child(2) { + margin-top: 0; +} + +/* line 92, ../scss/typo.scss */ +h1, h2, h3, h4, h5 { + position: relative; + z-index: 1; + overflow: hidden; +} +/* line 96, ../scss/typo.scss */ +h1.divider:after, h2.divider:after, h3.divider:after, h4.divider:after, h5.divider:after { + position: absolute; + top: 50%; + margin-left: 10px; + overflow: hidden; + width: 100%; + height: 1px; + content: '\a0'; + background-color: #ccc; +} + +/* line 111, ../scss/typo.scss */ +.bold { + font-family: Helvetica, Arial, sans-serif !important; +} + +/* line 120, ../scss/typo.scss */ +.small-font { + font-size: 12px; +} + +/* line 124, ../scss/typo.scss */ +.smaller-font { + font-size: 10px; +} + +/* line 128, ../scss/typo.scss */ +.grey-font { + color: #999; +} + +/* line 136, ../scss/typo.scss */ +[class^=fa-] { + font-family: inherit; +} + +/* line 140, ../scss/typo.scss */ +[class^=fa-]::before { + font-family: FontAwesome; +} + /* line 6, ../scss/modules/overlay.scss */ .husky-overlay-container { width: 580px; @@ -6231,44 +6241,56 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset overflow: hidden; } /* line 28, ../scss/modules/overlay.scss */ +.husky-overlay-container.wide { + width: 700px; +} +/* line 31, ../scss/modules/overlay.scss */ +.husky-overlay-container.wide .slides .slide { + width: 700px; +} +/* line 34, ../scss/modules/overlay.scss */ +.husky-overlay-container.wide .slides .slide .overlay-footer { + width: 700px; +} +/* line 40, ../scss/modules/overlay.scss */ .husky-overlay-container.dropzone { width: 700px; } -/* line 30, ../scss/modules/overlay.scss */ +/* line 42, ../scss/modules/overlay.scss */ .husky-overlay-container.dropzone .slides { margin: 0; padding: 0; } -/* line 33, ../scss/modules/overlay.scss */ +/* line 45, ../scss/modules/overlay.scss */ .husky-overlay-container.dropzone .slides .slide { width: 700px; } -/* line 37, ../scss/modules/overlay.scss */ +/* line 49, ../scss/modules/overlay.scss */ .husky-overlay-container.dropzone .overlay-header { display: none; } -/* line 40, ../scss/modules/overlay.scss */ +/* line 52, ../scss/modules/overlay.scss */ .husky-overlay-container.dropzone .overlay-content { margin-bottom: 20px; } -/* line 43, ../scss/modules/overlay.scss */ +/* line 55, ../scss/modules/overlay.scss */ .husky-overlay-container.dropzone .overlay-footer { display: none; } -/* line 49, ../scss/modules/overlay.scss */ +/* line 61, ../scss/modules/overlay.scss */ .husky-overlay-container.alert .overlay-header { height: 70px; } -/* line 51, ../scss/modules/overlay.scss */ +/* line 63, ../scss/modules/overlay.scss */ .husky-overlay-container.alert .overlay-header .title { line-height: normal; padding-top: 40px; } -/* line 56, ../scss/modules/overlay.scss */ +/* line 68, ../scss/modules/overlay.scss */ .husky-overlay-container.alert .overlay-content { margin: 0; } -/* line 61, ../scss/modules/overlay.scss */ +/* line 73, ../scss/modules/overlay.scss */ .husky-overlay-container .slides { position: relative; left: 0px; @@ -6279,21 +6301,21 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset white-space: nowrap; padding-bottom: 70px; } -/* line 68, ../scss/modules/overlay.scss */ +/* line 80, ../scss/modules/overlay.scss */ .husky-overlay-container .slides .slide { display: inline-block; vertical-align: top; width: 580px; } -/* line 76, ../scss/modules/overlay.scss */ +/* line 88, ../scss/modules/overlay.scss */ .overlay-header { position: relative; background: #fff; border-radius: 3px 3px 0 0; height: 100px; } -/* line 82, ../scss/modules/overlay.scss */ +/* line 94, ../scss/modules/overlay.scss */ .overlay-header .title { color: #999; font-size: 24px; @@ -6306,11 +6328,11 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset line-height: 100px; text-align: center; } -/* line 96, ../scss/modules/overlay.scss */ +/* line 108, ../scss/modules/overlay.scss */ .overlay-header.with-sub-title .title { line-height: 75px; } -/* line 100, ../scss/modules/overlay.scss */ +/* line 112, ../scss/modules/overlay.scss */ .overlay-header.with-sub-title .sub-title { font-size: 12px; color: #999; @@ -6318,14 +6340,14 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset text-align: center; } -/* line 109, ../scss/modules/overlay.scss */ +/* line 121, ../scss/modules/overlay.scss */ .overlay-tabs { background: #fff; padding: 0 20px; border-top: 1px solid #e9e9e9; } -/* line 115, ../scss/modules/overlay.scss */ +/* line 127, ../scss/modules/overlay.scss */ .overlay-footer { padding: 20px; border-top: 1px solid #ddd; @@ -6342,52 +6364,59 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset content: ' '; display: block; } -/* line 126, ../scss/modules/overlay.scss */ +/* line 138, ../scss/modules/overlay.scss */ .overlay-footer .btn { display: inline-block; min-width: 115px; margin: 0 auto; padding: 0; } -/* line 132, ../scss/modules/overlay.scss */ +/* line 144, ../scss/modules/overlay.scss */ .overlay-footer .btn.left { float: left; margin-right: 0; } -/* line 136, ../scss/modules/overlay.scss */ +/* line 148, ../scss/modules/overlay.scss */ .overlay-footer .btn.right { float: right; margin-left: 20px; margin-right: 0; } -/* line 141, ../scss/modules/overlay.scss */ +/* line 153, ../scss/modules/overlay.scss */ .overlay-footer .btn.just-text { background: transparent; color: #000; font-size: 12px; } -/* line 148, ../scss/modules/overlay.scss */ +/* line 160, ../scss/modules/overlay.scss */ .overlay-footer.center .btn { margin: 0 auto; } -/* line 152, ../scss/modules/overlay.scss */ +/* line 164, ../scss/modules/overlay.scss */ .overlay-footer.left .btn { float: left; margin-right: 20px; } -/* line 157, ../scss/modules/overlay.scss */ +/* line 169, ../scss/modules/overlay.scss */ .overlay-footer.right .btn { float: right; margin-left: 20px; } +/* line 174, ../scss/modules/overlay.scss */ +.overlay-footer .loader { + float: right; + margin-left: 20px; + margin-right: 0; + width: 115px; +} -/* line 163, ../scss/modules/overlay.scss */ +/* line 182, ../scss/modules/overlay.scss */ .overlay-content { position: relative; white-space: normal; margin: 20px; } -/* line 168, ../scss/modules/overlay.scss */ +/* line 187, ../scss/modules/overlay.scss */ .overlay-content .message { padding: 10px 105px 40px; background: #fff; @@ -6395,14 +6424,14 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset color: #999; text-align: center; } -/* line 174, ../scss/modules/overlay.scss */ +/* line 193, ../scss/modules/overlay.scss */ .overlay-content .message ul { border: 1px solid #ddd; list-style-position: inside; text-align: left; padding: 10px; } -/* line 182, ../scss/modules/overlay.scss */ +/* line 201, ../scss/modules/overlay.scss */ .overlay-content .language-changer { width: 80px; position: absolute; @@ -6410,7 +6439,7 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset right: 0; } -/* line 190, ../scss/modules/overlay.scss */ +/* line 209, ../scss/modules/overlay.scss */ .husky-overlay-wrapper { width: 100%; height: 100%; @@ -6424,7 +6453,7 @@ fieldset[disabled] .datepicker table tr td span.active.disabled.active, fieldset background: rgba(0, 0, 0, 0.5); -webkit-transform: translate3d(0, 0, 0); } -/* line 202, ../scss/modules/overlay.scss */ +/* line 221, ../scss/modules/overlay.scss */ .husky-overlay-wrapper::before { content: ''; display: inline-block; @@ -6906,7 +6935,7 @@ input[type="text"].input-round { input .input-description { margin-top: -5px; - font-size: 10px; + font-size: 12px; color: #999; } @@ -6969,43 +6998,72 @@ input ::-moz-placeholder { width: 100%; } -/* line 122, ../scss/modules/form.scss */ +/* line 123, ../scss/modules/form.scss */ +label.choice { + color: #000; + margin-bottom: 10px; +} + +/* line 128, ../scss/modules/form.scss */ label { display: block; font-size: 14px; - color: #999999; + color: #999; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } -/* line 131, ../scss/modules/form.scss */ +/* line 137, ../scss/modules/form.scss */ label.large { font-size: 16px; font-weight: bold; } -/* line 136, ../scss/modules/form.scss */ +/* line 142, ../scss/modules/form.scss */ label .form-element, label .husky-input { margin-top: 5px; border: 1px solid #ddd; } -/* line 141, ../scss/modules/form.scss */ +/* line 147, ../scss/modules/form.scss */ label.inline { font-size: 1em; font-weight: normal; display: inline; vertical-align: middle; } -/* line 147, ../scss/modules/form.scss */ +/* line 154, ../scss/modules/form.scss */ label.spacing-right { margin-right: 10px; } -/* line 150, ../scss/modules/form.scss */ +/* line 158, ../scss/modules/form.scss */ label.spacing-left { margin-left: 10px; } -/* line 157, ../scss/modules/form.scss */ +/* line 163, ../scss/modules/form.scss */ +.input-description { + font-size: 12px; + color: #999; +} + +/* line 168, ../scss/modules/form.scss */ +h2 ~ .input-description { + margin-top: -20px; + margin-bottom: 20px; +} + +/* line 173, ../scss/modules/form.scss */ +label ~ .input-description { + margin-top: -5px; +} + +/* line 177, ../scss/modules/form.scss */ +div ~ .input-description, +input ~ .input-description { + margin-top: 0; +} + +/* line 184, ../scss/modules/form.scss */ .custom-checkbox { width: 15px; height: 15px; @@ -7015,12 +7073,12 @@ label.spacing-left { display: inline-block; margin: 0 5px 0 0; } -/* line 169, ../scss/modules/form.scss */ +/* line 196, ../scss/modules/form.scss */ .custom-checkbox.no-spacing { top: 0; margin: 0; } -/* line 174, ../scss/modules/form.scss */ +/* line 201, ../scss/modules/form.scss */ .custom-checkbox input { opacity: 0; width: 15px; @@ -7033,32 +7091,46 @@ label.spacing-left { padding: 0; cursor: pointer; } -/* line 188, ../scss/modules/form.scss */ -.custom-checkbox input:checked + .icon, .custom-checkbox input.is-checked + .icon { - border-color: #5DC774; - background-color: #5DC774; +/* line 213, ../scss/modules/form.scss */ +.custom-checkbox input[readonly], .custom-checkbox input[readonly="readonly"] { + display: none; +} +/* line 217, ../scss/modules/form.scss */ +.custom-checkbox input[readonly] + .icon, .custom-checkbox input[readonly="readonly"] + .icon { + border: 1px solid #999; +} +/* line 224, ../scss/modules/form.scss */ +.custom-checkbox input:indeterminate + .icon, .custom-checkbox input.is-indeterminate + .icon { + background-color: #999; color: #fff; } -/* line 192, ../scss/modules/form.scss */ -.custom-checkbox input:checked + .icon::after, .custom-checkbox input.is-checked + .icon::after { +/* line 227, ../scss/modules/form.scss */ +.custom-checkbox input:indeterminate + .icon::after, .custom-checkbox input.is-indeterminate + .icon::after { display: inline-block; margin-top: -1px; margin-left: -1px; content: ""; } -/* line 204, ../scss/modules/form.scss */ -.custom-checkbox input:indeterminate + .icon, .custom-checkbox input.is-indeterminate + .icon { - background-color: #999; +/* line 239, ../scss/modules/form.scss */ +.custom-checkbox input:checked + .icon, .custom-checkbox input.is-checked + .icon { + border-color: #5DC774; + background-color: #5DC774; color: #fff; } -/* line 207, ../scss/modules/form.scss */ -.custom-checkbox input:indeterminate + .icon::after, .custom-checkbox input.is-indeterminate + .icon::after { +/* line 243, ../scss/modules/form.scss */ +.custom-checkbox input:checked + .icon::after, .custom-checkbox input.is-checked + .icon::after { display: inline-block; margin-top: -1px; margin-left: -1px; content: ""; } -/* line 217, ../scss/modules/form.scss */ +/* line 252, ../scss/modules/form.scss */ +.custom-checkbox input:checked[readonly] + .icon, .custom-checkbox input:checked[readonly="readonly"] + .icon, .custom-checkbox input.is-checked[readonly] + .icon, .custom-checkbox input.is-checked[readonly="readonly"] + .icon { + border: 1px solid #999; + background-color: #999; + color: #fff; +} +/* line 261, ../scss/modules/form.scss */ .custom-checkbox input + .icon { position: absolute; top: 0px; @@ -7075,27 +7147,27 @@ label.spacing-left { border-radius: 2px; } -/* line 241, ../scss/modules/form.scss */ +/* line 285, ../scss/modules/form.scss */ textarea { resize: both; } -/* line 245, ../scss/modules/form.scss */ +/* line 289, ../scss/modules/form.scss */ textarea.vertical { resize: vertical; } -/* line 249, ../scss/modules/form.scss */ +/* line 293, ../scss/modules/form.scss */ textarea.horizontal { resize: horizontal; } -/* line 253, ../scss/modules/form.scss */ +/* line 297, ../scss/modules/form.scss */ textarea.noResize { resize: none; } -/* line 257, ../scss/modules/form.scss */ +/* line 301, ../scss/modules/form.scss */ textarea.form-element, textarea.husky-input { width: 100%; height: 40px; @@ -7104,14 +7176,14 @@ textarea.form-element, textarea.husky-input { font-size: 14px; font-family: inherit; } -/* line 264, ../scss/modules/form.scss */ +/* line 308, ../scss/modules/form.scss */ textarea.form-element.small, textarea.small.husky-input { height: 70px; min-height: 70px; padding: 5px; } -/* line 273, ../scss/modules/form.scss */ +/* line 317, ../scss/modules/form.scss */ .custom-radio { width: 15px; height: 15px; @@ -7121,12 +7193,12 @@ textarea.form-element.small, textarea.small.husky-input { display: inline-block; margin: 0 5px 0 0; } -/* line 283, ../scss/modules/form.scss */ +/* line 327, ../scss/modules/form.scss */ .custom-radio.no-spacing { top: 0; margin: 0; } -/* line 288, ../scss/modules/form.scss */ +/* line 332, ../scss/modules/form.scss */ .custom-radio input { width: 15px; height: 15px; @@ -7139,11 +7211,11 @@ textarea.form-element.small, textarea.small.husky-input { margin: 0; padding: 0; } -/* line 302, ../scss/modules/form.scss */ +/* line 346, ../scss/modules/form.scss */ .custom-radio input:checked + .icon, .custom-radio input.is-checked + .icon { border-color: #fff; } -/* line 305, ../scss/modules/form.scss */ +/* line 349, ../scss/modules/form.scss */ .custom-radio input:checked + .icon::after, .custom-radio input.is-checked + .icon::after { content: ""; display: block; @@ -7152,7 +7224,7 @@ textarea.form-element.small, textarea.small.husky-input { border-radius: 15px; background-color: #5DC774; } -/* line 316, ../scss/modules/form.scss */ +/* line 360, ../scss/modules/form.scss */ .custom-radio input + .icon { display: block; position: absolute; @@ -7168,36 +7240,36 @@ textarea.form-element.small, textarea.small.husky-input { margin: 0; } -/* line 337, ../scss/modules/form.scss */ +/* line 381, ../scss/modules/form.scss */ .cke.cke_chrome { box-shadow: none !important; border: 0 !important; } -/* line 342, ../scss/modules/form.scss */ +/* line 386, ../scss/modules/form.scss */ .cke .cke_inner { border: 1px solid #ddd !important; border-radius: 3px !important; } -/* line 346, ../scss/modules/form.scss */ +/* line 390, ../scss/modules/form.scss */ .cke .cke_inner, .cke .cke_wysiwyg_frame { border-bottom-left-radius: 3px !important; border-bottom-right-radius: 3px !important; } -/* line 353, ../scss/modules/form.scss */ +/* line 397, ../scss/modules/form.scss */ .cke_hidpi .cke_dialog_close_button { background-image: none !important; } -/* line 359, ../scss/modules/form.scss */ +/* line 403, ../scss/modules/form.scss */ span.error { font-size: 14px; color: #EA524E; font-weight: bold; } -/* line 34, ../scss/modules/navigation.scss */ +/* line 35, ../scss/modules/navigation.scss */ .section-headline { position: relative; font-size: 12px; @@ -7208,18 +7280,26 @@ span.error { font-weight: bold; cursor: default; } -/* line 44, ../scss/modules/navigation.scss */ +/* line 45, ../scss/modules/navigation.scss */ .section-headline .section-headline-title { white-space: nowrap; } -/* line 49, ../scss/modules/navigation.scss */ +/* line 50, ../scss/modules/navigation.scss */ +.section-headline-divider { + position: relative; + margin: 30px 0; + cursor: default; + border: 0px; +} + +/* line 57, ../scss/modules/navigation.scss */ .husky-navigation { height: 100%; position: relative; } -/* line 54, ../scss/modules/navigation.scss */ +/* line 62, ../scss/modules/navigation.scss */ .navigation { width: 250px; height: 100%; @@ -7231,14 +7311,14 @@ span.error { z-index: 250; float: left; } -/* line 65, ../scss/modules/navigation.scss */ +/* line 73, ../scss/modules/navigation.scss */ .navigation .navigation-close-icon { display: none; opacity: 0; height: 0; -webkit-transform: scale3d(1, 1, 1); } -/* line 72, ../scss/modules/navigation.scss */ +/* line 80, ../scss/modules/navigation.scss */ .navigation.collapseIcon .navigation-close-icon { position: absolute; display: block; @@ -7255,21 +7335,21 @@ span.error { border-radius: 0 0 2px 0; opacity: 1; } -/* line 89, ../scss/modules/navigation.scss */ +/* line 97, ../scss/modules/navigation.scss */ .navigation.collapsed + .navigation-data-container.expanded { width: 250px; } -/* line 92, ../scss/modules/navigation.scss */ +/* line 100, ../scss/modules/navigation.scss */ .navigation.collapsed + .navigation-data-container.expanded .data-navigation-header, .navigation.collapsed + .navigation-data-container.expanded .data-navigation-list-container { opacity: 1; } -/* line 98, ../scss/modules/navigation.scss */ +/* line 106, ../scss/modules/navigation.scss */ .navigation.disappeared.collapseIcon .navigation-close-icon { display: none; } -/* line 104, ../scss/modules/navigation.scss */ +/* line 112, ../scss/modules/navigation.scss */ .navigation-content { position: relative; height: 100%; @@ -7279,33 +7359,33 @@ span.error { font-size: 14px; /*for sticky navigation footer*/ } -/* line 112, ../scss/modules/navigation.scss */ +/* line 120, ../scss/modules/navigation.scss */ .navigation-content a { display: inline-block; text-decoration: none; color: rgba(255, 255, 255, 0.5); outline: none; } -/* line 119, ../scss/modules/navigation.scss */ +/* line 127, ../scss/modules/navigation.scss */ .navigation-content ul { margin: 0; padding: 0; list-style: none; } -/* line 126, ../scss/modules/navigation.scss */ +/* line 134, ../scss/modules/navigation.scss */ .navigation-content .wrapper { min-height: 100%; margin-bottom: -121px; overflow: hidden; } -/* line 131, ../scss/modules/navigation.scss */ +/* line 139, ../scss/modules/navigation.scss */ .navigation-content .wrapper:after { content: ""; display: block; height: 131px; } -/* line 139, ../scss/modules/navigation.scss */ +/* line 147, ../scss/modules/navigation.scss */ .navigation-header { overflow: hidden; padding: 35px 20px; @@ -7313,7 +7393,7 @@ span.error { white-space: nowrap; } -/* line 146, ../scss/modules/navigation.scss */ +/* line 154, ../scss/modules/navigation.scss */ .navigation-header-title { display: inline-block; font-size: 16px; @@ -7324,7 +7404,7 @@ span.error { vertical-align: bottom; } -/* line 156, ../scss/modules/navigation.scss */ +/* line 164, ../scss/modules/navigation.scss */ .logo { display: inline-block; margin-right: 10px; @@ -7337,30 +7417,30 @@ span.error { background-repeat: no-repeat; } -/* line 168, ../scss/modules/navigation.scss */ +/* line 176, ../scss/modules/navigation.scss */ .navigation-search { position: relative; margin: 0px 20px; padding: 10px 0; height: 50px; } -/* line 174, ../scss/modules/navigation.scss */ +/* line 182, ../scss/modules/navigation.scss */ .navigation-search .search-icon { opacity: 1; } -/* line 180, ../scss/modules/navigation.scss */ +/* line 188, ../scss/modules/navigation.scss */ li.is-active > .navigation-items-toggle a, li.is-active > .navigation-subitems-toggle a { color: #fff; } -/* line 185, ../scss/modules/navigation.scss */ +/* line 193, ../scss/modules/navigation.scss */ li.is-active > div > a.navigation-settings-icon { display: block; color: #999; } -/* line 191, ../scss/modules/navigation.scss */ +/* line 199, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items { position: relative; top: 0px; @@ -7370,11 +7450,11 @@ li.is-active > div > a.navigation-settings-icon { /* sub-items */ /* sub-sub-items */ } -/* line 198, ../scss/modules/navigation.scss */ +/* line 206, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items:hover { background-color: #191D22; } -/* line 202, ../scss/modules/navigation.scss */ +/* line 210, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items::before { content: ""; display: block; @@ -7385,37 +7465,37 @@ li.is-active > div > a.navigation-settings-icon { height: 100%; background: #52B6CA; } -/* line 213, ../scss/modules/navigation.scss */ +/* line 221, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items > div { position: relative; width: 100%; padding-left: 20px; padding-right: 20px; } -/* line 221, ../scss/modules/navigation.scss */ +/* line 229, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items.is-active::before { width: 5px; } -/* line 224, ../scss/modules/navigation.scss */ +/* line 232, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items.is-active .navigation-item-icon, .navigation-item-container .navigation-items.is-active .navigation-item-title { color: #fff; } -/* line 228, ../scss/modules/navigation.scss */ +/* line 236, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items.is-active .navigation-item-title { font-size: 16px; } -/* line 233, ../scss/modules/navigation.scss */ +/* line 241, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items.is-expanded { padding-bottom: 20px; } -/* line 236, ../scss/modules/navigation.scss */ +/* line 244, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items.is-expanded .navigation-items-toggle { height: inherit; padding-bottom: 10px; height: 50px; } -/* line 241, ../scss/modules/navigation.scss */ +/* line 249, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items.is-expanded > .navigation-items-list { display: block; opacity: 1; @@ -7425,7 +7505,7 @@ li.is-active > div > a.navigation-settings-icon { -webkit-transition-delay: 75ms; transition: opacity 100ms 75ms; } -/* line 250, ../scss/modules/navigation.scss */ +/* line 258, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items .navigation-items-list { position: absolute; left: 0px; @@ -7443,12 +7523,12 @@ li.is-active > div > a.navigation-settings-icon { -webkit-transition: opacity 100ms; transition: opacity 100ms; } -/* line 266, ../scss/modules/navigation.scss */ +/* line 274, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items ul ul { font-size: 12px; padding-left: 20px; } -/* line 271, ../scss/modules/navigation.scss */ +/* line 279, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items li { border-radius: 3px; cursor: pointer; @@ -7457,7 +7537,7 @@ li.is-active > div > a.navigation-settings-icon { left: 0px; height: 30px; } -/* line 279, ../scss/modules/navigation.scss */ +/* line 287, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items li:hover:not(.navigation-subitems) a::before { font-size: 12px; content: ""; @@ -7470,11 +7550,11 @@ li.is-active > div > a.navigation-settings-icon { left: 0px; padding-right: 9px; } -/* line 285, ../scss/modules/navigation.scss */ +/* line 293, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items li.is-selected a { color: white; } -/* line 288, ../scss/modules/navigation.scss */ +/* line 296, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items li.is-selected a::before { font-size: 12px; content: ""; @@ -7487,7 +7567,7 @@ li.is-active > div > a.navigation-settings-icon { left: 0px; padding-right: 9px; } -/* line 294, ../scss/modules/navigation.scss */ +/* line 302, ../scss/modules/navigation.scss */ .navigation-item-container .navigation-items li a { padding: 0px 0 0px 10px; height: 100%; @@ -7501,18 +7581,18 @@ li.is-active > div > a.navigation-settings-icon { /* prohibits height changes on select */ } -/* line 310, ../scss/modules/navigation.scss */ +/* line 318, ../scss/modules/navigation.scss */ .navigation-subitems.is-expanded > .navigation-items-list { display: block; } -/* line 313, ../scss/modules/navigation.scss */ +/* line 321, ../scss/modules/navigation.scss */ .navigation-subitems.is-expanded .navigation-subitems-toggle { height: inherit; padding-bottom: 10px; padding-bottom: 0; } -/* line 320, ../scss/modules/navigation.scss */ +/* line 328, ../scss/modules/navigation.scss */ .navigation-item { width: 100%; display: inline-block; @@ -7523,7 +7603,7 @@ li.is-active > div > a.navigation-settings-icon { height: 100%; } -/* line 330, ../scss/modules/navigation.scss */ +/* line 338, ../scss/modules/navigation.scss */ .navigation-item-title { padding-left: 35px; height: 100%; @@ -7535,7 +7615,7 @@ li.is-active > div > a.navigation-settings-icon { white-space: nowrap; } -/* line 341, ../scss/modules/navigation.scss */ +/* line 349, ../scss/modules/navigation.scss */ .navigation-item-icon { position: absolute; top: 0px; @@ -7546,14 +7626,14 @@ li.is-active > div > a.navigation-settings-icon { line-height: 48px; } -/* line 351, ../scss/modules/navigation.scss */ +/* line 359, ../scss/modules/navigation.scss */ .navigation-items-toggle { position: relative; height: 50px; z-index: 200; } -/* line 357, ../scss/modules/navigation.scss */ +/* line 365, ../scss/modules/navigation.scss */ li a.navigation-settings-icon { width: auto; position: absolute; @@ -7563,7 +7643,7 @@ li a.navigation-settings-icon { display: none; } -/* line 366, ../scss/modules/navigation.scss */ +/* line 374, ../scss/modules/navigation.scss */ .navigation-toggle-icon { width: auto; position: absolute; @@ -7572,28 +7652,28 @@ li a.navigation-settings-icon { font-size: 12px; } -/* line 374, ../scss/modules/navigation.scss */ +/* line 382, ../scss/modules/navigation.scss */ .navigation-subitems-toggle { padding: 2px 0 2px; position: relative; height: 30px; } -/* line 379, ../scss/modules/navigation.scss */ +/* line 387, ../scss/modules/navigation.scss */ .navigation-subitems-toggle .navigation-toggle-icon { top: 3px; } -/* line 383, ../scss/modules/navigation.scss */ +/* line 391, ../scss/modules/navigation.scss */ .navigation-subitems-toggle .navigation-item { padding: 0px; } -/* line 389, ../scss/modules/navigation.scss */ +/* line 397, ../scss/modules/navigation.scss */ .navigation footer { padding: 15px 20px 15px 23px; height: 121px; background-color: #191D22; } -/* line 394, ../scss/modules/navigation.scss */ +/* line 402, ../scss/modules/navigation.scss */ .navigation footer .user { font-size: 14px; color: #fff; @@ -7602,7 +7682,7 @@ li a.navigation-settings-icon { white-space: nowrap; cursor: pointer; } -/* line 402, ../scss/modules/navigation.scss */ +/* line 410, ../scss/modules/navigation.scss */ .navigation footer .user .pic { color: #fff; text-align: right; @@ -7610,13 +7690,13 @@ li a.navigation-settings-icon { display: inline-block; margin-right: 15px; } -/* line 409, ../scss/modules/navigation.scss */ +/* line 417, ../scss/modules/navigation.scss */ .navigation footer .user .name { display: inline-block; vertical-align: middle; padding-bottom: 5px; } -/* line 416, ../scss/modules/navigation.scss */ +/* line 424, ../scss/modules/navigation.scss */ .navigation footer .options { height: 20px; margin-bottom: 15px; @@ -7626,16 +7706,16 @@ li a.navigation-settings-icon { top: 0px; left: 0px; } -/* line 425, ../scss/modules/navigation.scss */ +/* line 433, ../scss/modules/navigation.scss */ .navigation footer .options .locale-dropdown { color: #000; width: 60px; } -/* line 430, ../scss/modules/navigation.scss */ +/* line 438, ../scss/modules/navigation.scss */ .navigation footer .options .dropdown-list { min-width: 150px; } -/* line 434, ../scss/modules/navigation.scss */ +/* line 442, ../scss/modules/navigation.scss */ .navigation footer .options .logout { color: white; cursor: pointer; @@ -7647,14 +7727,14 @@ li a.navigation-settings-icon { top: 0px; right: 0px; } -/* line 446, ../scss/modules/navigation.scss */ +/* line 454, ../scss/modules/navigation.scss */ .navigation footer .version { padding-left: 35px; font-size: 10px; color: #878787; white-space: nowrap; } -/* line 452, ../scss/modules/navigation.scss */ +/* line 460, ../scss/modules/navigation.scss */ .navigation footer .version a { color: #fff; text-decoration: none; @@ -7663,20 +7743,20 @@ li a.navigation-settings-icon { /** * MINIFIED NAVIGATION */ -/* line 463, ../scss/modules/navigation.scss */ +/* line 471, ../scss/modules/navigation.scss */ .navigation.collapsed { width: 50px; overflow-x: hidden; } -/* line 467, ../scss/modules/navigation.scss */ +/* line 475, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-header { padding-left: 10px; } -/* line 471, ../scss/modules/navigation.scss */ +/* line 479, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-header-title { opacity: 0; } -/* line 475, ../scss/modules/navigation.scss */ +/* line 483, ../scss/modules/navigation.scss */ .navigation.collapsed .section-headline { opacity: 0; height: 0; @@ -7685,23 +7765,23 @@ li a.navigation-settings-icon { margin-top: 0; margin-bottom: 0; } -/* line 484, ../scss/modules/navigation.scss */ +/* line 492, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-search.search-container { margin: 0; margin-left: 8px; } -/* line 488, ../scss/modules/navigation.scss */ +/* line 496, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-search.search-container input { opacity: 0; z-index: 0; } -/* line 492, ../scss/modules/navigation.scss */ +/* line 500, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-search.search-container .search-icon { opacity: 1; z-index: 100; color: rgba(255, 255, 255, 0.5); } -/* line 501, ../scss/modules/navigation.scss */ +/* line 509, ../scss/modules/navigation.scss */ .navigation.collapsed * .navigation-settings-icon, .navigation.collapsed * .navigation-toggle-icon, .navigation.collapsed .is-active .navigation-settings-icon, .navigation.collapsed .is-active .navigation-toggle-icon, .navigation.collapsed .is-expanded .navigation-settings-icon, @@ -7712,70 +7792,70 @@ li a.navigation-settings-icon { -webkit-transition: opacity 0.2s; transition: opacity 0.2s; } -/* line 507, ../scss/modules/navigation.scss */ +/* line 515, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-item-title { opacity: 0; } -/* line 512, ../scss/modules/navigation.scss */ +/* line 520, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-items div { border: transparent !important; padding: 0 !important; margin: 0 !important; line-height: 0; } -/* line 519, ../scss/modules/navigation.scss */ +/* line 527, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-items a { padding: 0; } -/* line 523, ../scss/modules/navigation.scss */ +/* line 531, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-items .navigation-items-list { opacity: 0; display: none; } -/* line 529, ../scss/modules/navigation.scss */ +/* line 537, ../scss/modules/navigation.scss */ .navigation.collapsed li { padding: 0; } -/* line 533, ../scss/modules/navigation.scss */ +/* line 541, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-item-icon { margin-left: 15px; padding-left: 0px; line-height: 50px; vertical-align: middle; } -/* line 540, ../scss/modules/navigation.scss */ +/* line 548, ../scss/modules/navigation.scss */ .navigation.collapsed footer { padding-left: 15px; cursor: pointer; height: 51px; overflow: hidden; } -/* line 546, ../scss/modules/navigation.scss */ +/* line 554, ../scss/modules/navigation.scss */ .navigation.collapsed footer * { opacity: 0; height: 0px; margin: 0px; } -/* line 552, ../scss/modules/navigation.scss */ +/* line 560, ../scss/modules/navigation.scss */ .navigation.collapsed footer .user { opacity: 1; height: 20px; } -/* line 556, ../scss/modules/navigation.scss */ +/* line 564, ../scss/modules/navigation.scss */ .navigation.collapsed footer .user .pic { opacity: 1; height: 20px; } -/* line 564, ../scss/modules/navigation.scss */ +/* line 572, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-content .wrapper { margin-bottom: -51px; } -/* line 566, ../scss/modules/navigation.scss */ +/* line 574, ../scss/modules/navigation.scss */ .navigation.collapsed .navigation-content .wrapper:after { height: 61px; } -/* line 573, ../scss/modules/navigation.scss */ +/* line 581, ../scss/modules/navigation.scss */ .navigation-tooltip { position: absolute; height: 30px; @@ -7789,7 +7869,7 @@ li a.navigation-settings-icon { border-radius: 2px; z-index: 1000; } -/* line 586, ../scss/modules/navigation.scss */ +/* line 594, ../scss/modules/navigation.scss */ .navigation-tooltip::before { content: ' '; position: absolute; @@ -7802,7 +7882,7 @@ li a.navigation-settings-icon { border-right: 10px solid #21272E; } -/* line 599, ../scss/modules/navigation.scss */ +/* line 607, ../scss/modules/navigation.scss */ .navigation-data-container { -moz-transition: width 0.4s ease-in-out; -o-transition: width 0.4s ease-in-out; @@ -7812,7 +7892,7 @@ li a.navigation-settings-icon { margin-left: 50px; height: 100%; } -/* line 605, ../scss/modules/navigation.scss */ +/* line 613, ../scss/modules/navigation.scss */ .navigation-data-container .data-navigation-header, .navigation-data-container .data-navigation-list-container { -moz-transition: opacity 0.2s ease-in-out; @@ -7822,7 +7902,7 @@ li a.navigation-settings-icon { opacity: 0; } -/* line 613, ../scss/modules/navigation.scss */ +/* line 621, ../scss/modules/navigation.scss */ .navigation { -moz-transition: width 0.5s; -o-transition: width 0.5s; @@ -7830,7 +7910,7 @@ li a.navigation-settings-icon { transition: width 0.5s; } -/* line 617, ../scss/modules/navigation.scss */ +/* line 625, ../scss/modules/navigation.scss */ .navigation footer, .navigation footer > *, .navigation .wrapper, @@ -7842,7 +7922,7 @@ li a.navigation-settings-icon { transition: all 0.5s; } -/* line 625, ../scss/modules/navigation.scss */ +/* line 633, ../scss/modules/navigation.scss */ .navigation-items { -moz-transition: all 0, opacity 0.5s, background 0.5s; -o-transition: all 0, opacity 0.5s, background 0.5s; @@ -7850,14 +7930,14 @@ li a.navigation-settings-icon { transition: all 0, opacity 0.5s, background 0.5s; } -/* line 629, ../scss/modules/navigation.scss */ +/* line 637, ../scss/modules/navigation.scss */ .navigation-header { -moz-transition: padding 0.5s; -o-transition: padding 0.5s; -webkit-transition: padding 0.5s; transition: padding 0.5s; } -/* line 632, ../scss/modules/navigation.scss */ +/* line 640, ../scss/modules/navigation.scss */ .navigation-header .navigation-header-title { -moz-transition: opacity 0.5s; -o-transition: opacity 0.5s; @@ -7865,14 +7945,14 @@ li a.navigation-settings-icon { transition: opacity 0.5s; } -/* line 637, ../scss/modules/navigation.scss */ +/* line 645, ../scss/modules/navigation.scss */ .navigation-search { -moz-transition: margin 0.5s; -o-transition: margin 0.5s; -webkit-transition: margin 0.5s; transition: margin 0.5s; } -/* line 639, ../scss/modules/navigation.scss */ +/* line 647, ../scss/modules/navigation.scss */ .navigation-search input { -moz-transition: width 0.5s; -o-transition: width 0.5s; @@ -7880,7 +7960,7 @@ li a.navigation-settings-icon { transition: width 0.5s; } -/* line 644, ../scss/modules/navigation.scss */ +/* line 652, ../scss/modules/navigation.scss */ .section-headline, .section-headline * { -moz-transition: all 0.5s; @@ -7889,7 +7969,7 @@ li a.navigation-settings-icon { transition: all 0.5s; } -/* line 649, ../scss/modules/navigation.scss */ +/* line 657, ../scss/modules/navigation.scss */ .navigation-item-title { -moz-transition: opacity 0.5s; -o-transition: opacity 0.5s; @@ -7897,7 +7977,7 @@ li a.navigation-settings-icon { transition: opacity 0.5s; } -/* line 653, ../scss/modules/navigation.scss */ +/* line 661, ../scss/modules/navigation.scss */ .search-icon { -moz-transition: color 0.5s; -o-transition: color 0.5s; @@ -7905,7 +7985,7 @@ li a.navigation-settings-icon { transition: color 0.5s; } -/* line 658, ../scss/modules/navigation.scss */ +/* line 666, ../scss/modules/navigation.scss */ .navigation:not(.collapsed) * { opacity: 1; } @@ -7953,32 +8033,59 @@ li a.navigation-settings-icon { border: 1px solid #ddd; z-index: 90; border-radius: 3px; + font-size: 14px; } -/* line 45, ../scss/modules/dropdown.scss */ +/* line 46, ../scss/modules/dropdown.scss */ .dropdown-menu.top { top: auto; bottom: 25px; margin-bottom: 0; } -/* line 51, ../scss/modules/dropdown.scss */ +/* line 52, ../scss/modules/dropdown.scss */ .dropdown-menu > ul { list-style: none; margin: 0; padding: 10px 0; } -/* line 56, ../scss/modules/dropdown.scss */ +/* line 57, ../scss/modules/dropdown.scss */ .dropdown-menu > ul > li { padding: 0 20px; line-height: 30px; text-align: left; } -/* line 60, ../scss/modules/dropdown.scss */ +/* line 62, ../scss/modules/dropdown.scss */ +.dropdown-menu > ul > li .info, .dropdown-menu > ul > li .info-clicked { + display: none; + font-size: 12px; + padding: 0 20px 0 10px; + position: absolute; + right: 0; +} +/* line 70, ../scss/modules/dropdown.scss */ +.dropdown-menu > ul > li .info-clicked.clicked { + display: inline; + float: right; + background-color: #fff; +} +/* line 76, ../scss/modules/dropdown.scss */ .dropdown-menu > ul > li:hover, .dropdown-menu > ul > li.hover { background-color: #52B6CA; cursor: pointer; color: #fff; } -/* line 66, ../scss/modules/dropdown.scss */ +/* line 82, ../scss/modules/dropdown.scss */ +.dropdown-menu > ul > li:hover .info, .dropdown-menu > ul > li.hover .info { + display: inline; +} +/* line 86, ../scss/modules/dropdown.scss */ +.dropdown-menu > ul > li:hover .info, .dropdown-menu > ul > li:hover .info-clicked, .dropdown-menu > ul > li.hover .info, .dropdown-menu > ul > li.hover .info-clicked { + background-color: #52B6CA; +} +/* line 89, ../scss/modules/dropdown.scss */ +.dropdown-menu > ul > li:hover .info.clicked, .dropdown-menu > ul > li:hover .info-clicked.clicked, .dropdown-menu > ul > li.hover .info.clicked, .dropdown-menu > ul > li.hover .info-clicked.clicked { + display: none; +} +/* line 94, ../scss/modules/dropdown.scss */ .dropdown-menu > ul > li.divider { height: 1px; margin: 5px 0 10px 0; @@ -7987,34 +8094,34 @@ li a.navigation-settings-icon { background-color: #ddd; cursor: default; } -/* line 74, ../scss/modules/dropdown.scss */ +/* line 102, ../scss/modules/dropdown.scss */ .dropdown-menu > ul > li.disabled { color: #999; } -/* line 76, ../scss/modules/dropdown.scss */ +/* line 104, ../scss/modules/dropdown.scss */ .dropdown-menu > ul > li.disabled:hover { background-color: transparent; cursor: default; } -/* line 85, ../scss/modules/dropdown.scss */ +/* line 113, ../scss/modules/dropdown.scss */ .dropdown-align-right { right: 6px; left: inherit; } -/* line 90, ../scss/modules/dropdown.scss */ +/* line 118, ../scss/modules/dropdown.scss */ .dropdown-footer { border-top: 1px solid #ccc; padding: 10px 10px; } -/* line 95, ../scss/modules/dropdown.scss */ +/* line 123, ../scss/modules/dropdown.scss */ .dropdown-toggle { display: inline-block; cursor: pointer; } -/* line 98, ../scss/modules/dropdown.scss */ +/* line 126, ../scss/modules/dropdown.scss */ .dropdown-toggle::after { content: ""; display: inline-block; @@ -8028,7 +8135,7 @@ li a.navigation-settings-icon { border-top: 6px solid #000; } -/* line 113, ../scss/modules/dropdown.scss */ +/* line 141, ../scss/modules/dropdown.scss */ .dropdown-trigger { height: 30px; line-height: 30px; @@ -8288,6 +8395,7 @@ a.btn-black, a.btn-highlight { } /* line 163, ../scss/modules/btns.scss */ .addButton span { + font-family: Helvetica, Arial, sans-serif; padding-left: 5px; vertical-align: middle; } @@ -8842,37 +8950,44 @@ a.btn-black, a.btn-highlight { background-color: #fff; } /* line 43, ../scss/modules/search.scss */ +.search-container .search-icon, .search-container .remove-icon { + background: transparent; + border: 0px; + line-height: 25px; +} +/* line 49, ../scss/modules/search.scss */ .search-container .search-icon { position: absolute; padding-left: 8px; + padding-right: 15px; font-size: 16px; - line-height: 30px; vertical-align: middle; text-decoration: none; + cursor: pointer; } -/* line 52, ../scss/modules/search.scss */ +/* line 59, ../scss/modules/search.scss */ .search-container .remove-icon { display: none; position: absolute; right: 10px; - line-height: 30px; vertical-align: middle; margin: auto; background-color: #fff; padding-left: 3px; text-decoration: none; + cursor: pointer; } -/* line 67, ../scss/modules/search.scss */ +/* line 74, ../scss/modules/search.scss */ .search-container.gray .search-icon { font-size: 16px; color: rgba(255, 255, 255, 0.5); } -/* line 71, ../scss/modules/search.scss */ +/* line 78, ../scss/modules/search.scss */ .search-container.gray .remove-icon { color: rgba(255, 255, 255, 0.5); background-color: transparent; } -/* line 75, ../scss/modules/search.scss */ +/* line 82, ../scss/modules/search.scss */ .search-container.gray .search-input { background-color: rgba(255, 255, 255, 0.5); } @@ -8896,33 +9011,32 @@ a.btn-black, a.btn-highlight { .search-container.gray .search-input::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.5); } -/* line 82, ../scss/modules/search.scss */ +/* line 89, ../scss/modules/search.scss */ .search-container.gray.focus .search-input { background-color: #fff; } -/* line 85, ../scss/modules/search.scss */ +/* line 92, ../scss/modules/search.scss */ .search-container.gray.focus .search-icon, .search-container.gray.focus .remove-icon { color: #3e3e3e; } -/* line 94, ../scss/modules/search.scss */ +/* line 101, ../scss/modules/search.scss */ .search-container.white .search-input { background-color: #fff; } -/* line 96, ../scss/modules/search.scss */ +/* line 103, ../scss/modules/search.scss */ .search-container.white .search-input:focus { background-color: #fff; } -/* line 103, ../scss/modules/search.scss */ +/* line 110, ../scss/modules/search.scss */ .search-container.small .search-input { font-size: 12px; } -/* line 106, ../scss/modules/search.scss */ +/* line 113, ../scss/modules/search.scss */ .search-container.small .search-icon { - padding-right: 15px; font-size: 12px; } -/* line 113, ../scss/modules/search.scss */ +/* line 119, ../scss/modules/search.scss */ .search-container.outline .input-round { border: 1px #999 solid; } @@ -9453,23 +9567,23 @@ a.btn-black, a.btn-highlight { } /* line 8, ../scss/modules/matrix.scss */ .table.matrix th { - vertical-align: baseline; + vertical-align: middle; + line-height: 22px; } -/* line 11, ../scss/modules/matrix.scss */ +/* line 12, ../scss/modules/matrix.scss */ .table.matrix th.general { width: 140px; font-weight: bold; } -/* line 16, ../scss/modules/matrix.scss */ +/* line 17, ../scss/modules/matrix.scss */ .table.matrix th.section { width: 180px; } -/* line 22, ../scss/modules/matrix.scss */ +/* line 23, ../scss/modules/matrix.scss */ .table.matrix td.value { - width: 20px; - padding: 3px; margin: 0; border: none; + white-space: nowrap; } /* line 29, ../scss/modules/matrix.scss */ .table.matrix td.all { @@ -9489,6 +9603,7 @@ a.btn-black, a.btn-highlight { width: 24px; height: 24px; line-height: 22px; + margin: 3px; display: inline-block; text-align: center; } @@ -10045,12 +10160,13 @@ a.btn-black, a.btn-highlight { } /* line 50, ../scss/modules/select.scss */ .husky-select-container .husky-select-label { + min-height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } -/* line 57, ../scss/modules/select.scss */ +/* line 58, ../scss/modules/select.scss */ .husky-select-container .dropdown-list { min-width: 100%; position: absolute; @@ -10062,107 +10178,111 @@ a.btn-black, a.btn-highlight { z-index: 2000; border-radius: 3px; } -/* line 68, ../scss/modules/select.scss */ +/* line 69, ../scss/modules/select.scss */ .husky-select-container .dropdown-list .divider { max-width: 100%; height: 1px; background-color: #ccc; margin: 5px 0 10px; } -/* line 75, ../scss/modules/select.scss */ +/* line 76, ../scss/modules/select.scss */ .husky-select-container .dropdown-list.top { top: inherit; bottom: 5px; } -/* line 80, ../scss/modules/select.scss */ +/* line 81, ../scss/modules/select.scss */ .husky-select-container .dropdown-list .disabled, .husky-select-container .dropdown-list .disabled:hover { background: none; cursor: default; } -/* line 84, ../scss/modules/select.scss */ +/* line 85, ../scss/modules/select.scss */ .husky-select-container .dropdown-list .disabled .item-value, .husky-select-container .dropdown-list .disabled:hover .item-value { color: #999; } -/* line 88, ../scss/modules/select.scss */ +/* line 89, ../scss/modules/select.scss */ .husky-select-container .dropdown-list .check { display: inline; width: 20px; margin-right: 10px; padding-top: 7px; } -/* line 94, ../scss/modules/select.scss */ +/* line 95, ../scss/modules/select.scss */ .husky-select-container .dropdown-list .item-value { display: inline; line-height: 30px; } -/* line 99, ../scss/modules/select.scss */ +/* line 100, ../scss/modules/select.scss */ .husky-select-container .dropdown-list > ul { list-style: none; margin: 0; padding: 10px 0; } -/* line 104, ../scss/modules/select.scss */ +/* line 105, ../scss/modules/select.scss */ .husky-select-container .dropdown-list > ul input { margin: 0; } -/* line 108, ../scss/modules/select.scss */ +/* line 109, ../scss/modules/select.scss */ .husky-select-container .dropdown-list > ul > li { padding: 0px 20px 0px 20px; clear: both; height: 30px; } -/* line 113, ../scss/modules/select.scss */ +/* line 114, ../scss/modules/select.scss */ .husky-select-container .dropdown-list > ul > li > div { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } -/* line 119, ../scss/modules/select.scss */ +/* line 120, ../scss/modules/select.scss */ .husky-select-container .dropdown-list > ul > li:hover, .husky-select-container .dropdown-list > ul > li.hover { background-color: #52B6CA; cursor: pointer; } -/* line 124, ../scss/modules/select.scss */ +/* line 125, ../scss/modules/select.scss */ .husky-select-container .dropdown-list > ul > li:hover .item-value { color: #fff; } -/* line 128, ../scss/modules/select.scss */ +/* line 129, ../scss/modules/select.scss */ .husky-select-container .dropdown-list > ul > li:hover > div { color: #fff; } -/* line 136, ../scss/modules/select.scss */ +/* line 137, ../scss/modules/select.scss */ .husky-select-container.small .dropdown-label { font-size: 10px; line-height: 20px; } -/* line 140, ../scss/modules/select.scss */ +/* line 141, ../scss/modules/select.scss */ .husky-select-container.small .toggle-icon { line-height: 20px; } -/* line 143, ../scss/modules/select.scss */ +/* line 144, ../scss/modules/select.scss */ .husky-select-container.small .dropdown-list { top: 12px; min-width: 200px; max-width: 100%; border-radius: 2px; } -/* line 149, ../scss/modules/select.scss */ +/* line 150, ../scss/modules/select.scss */ .husky-select-container.small .dropdown-list.top { top: auto; bottom: -3px; } -/* line 157, ../scss/modules/select.scss */ +/* line 156, ../scss/modules/select.scss */ +.husky-select-container.small .husky-select-label { + min-height: 20px; +} +/* line 162, ../scss/modules/select.scss */ .husky-select-container.white .dropdown-label { background: #fff; } -/* line 163, ../scss/modules/select.scss */ +/* line 168, ../scss/modules/select.scss */ .husky-select-container.action .dropdown-label { background: #52B6CA; color: #fff; } -/* line 169, ../scss/modules/select.scss */ +/* line 174, ../scss/modules/select.scss */ .husky-select-container select { opacity: 0; position: absolute; @@ -10379,19 +10499,6 @@ a.btn-black, a.btn-highlight { opacity: 1; } /* line 203, ../scss/modules/datagrid.scss */ -.husky-datagrid tbody .grid-badge { - vertical-align: middle; - display: inline-block; - background: #52B6CA; - padding: 0px 2px; - margin-right: 8px; - margin-top: -3px; - color: #fff; - border-radius: 3px; - font-size: 10px; - line-height: 15px; -} -/* line 216, ../scss/modules/datagrid.scss */ .husky-datagrid tbody .grid-icon { width: 30px; height: 20px; @@ -10410,11 +10517,20 @@ a.btn-black, a.btn-highlight { -webkit-transition-delay: 200ms; transition: opacity 100ms ease-in 200ms; } -/* line 229, ../scss/modules/datagrid.scss */ +/* line 216, ../scss/modules/datagrid.scss */ .husky-datagrid tbody .grid-icon.right { float: right; } -/* line 234, ../scss/modules/datagrid.scss */ +/* line 220, ../scss/modules/datagrid.scss */ +.husky-datagrid tbody .grid-icon.no-hover { + opacity: 1 !important; +} +/* line 224, ../scss/modules/datagrid.scss */ +.husky-datagrid tbody .grid-icon.simple { + background: transparent; + color: #000; +} +/* line 230, ../scss/modules/datagrid.scss */ .husky-datagrid tbody .grid-image { position: relative; width: 50px; @@ -10422,68 +10538,68 @@ a.btn-black, a.btn-highlight { text-align: center; line-height: 50px; } -/* line 241, ../scss/modules/datagrid.scss */ +/* line 237, ../scss/modules/datagrid.scss */ .husky-datagrid tbody .grid-image img { position: absolute; top: 0; left: 0; } -/* line 247, ../scss/modules/datagrid.scss */ +/* line 243, ../scss/modules/datagrid.scss */ .husky-datagrid tbody .grid-image [class^=fa-] { color: #ccc; font-size: 1.6em; } -/* line 254, ../scss/modules/datagrid.scss */ +/* line 250, ../scss/modules/datagrid.scss */ .husky-datagrid .table-container { width: 100%; overflow: auto; border-radius: 3px; } -/* line 260, ../scss/modules/datagrid.scss */ +/* line 256, ../scss/modules/datagrid.scss */ .husky-datagrid .table-container.no-head thead { display: none; } -/* line 264, ../scss/modules/datagrid.scss */ +/* line 260, ../scss/modules/datagrid.scss */ .husky-datagrid .table-container.no-head tbody tr:last-child { border-bottom: none; } -/* line 271, ../scss/modules/datagrid.scss */ +/* line 267, ../scss/modules/datagrid.scss */ .husky-datagrid .datagrid-loader { position: absolute; top: 50%; left: 50%; margin: -50px 0 0 -50px; } -/* line 278, ../scss/modules/datagrid.scss */ +/* line 274, ../scss/modules/datagrid.scss */ .husky-datagrid .dropdown-menu { margin-top: 5px; } -/* line 281, ../scss/modules/datagrid.scss */ +/* line 277, ../scss/modules/datagrid.scss */ .husky-datagrid .dropdown-toggle::after { margin-left: 12px; } -/* line 285, ../scss/modules/datagrid.scss */ +/* line 281, ../scss/modules/datagrid.scss */ .husky-datagrid.loading { min-height: 150px; } -/* line 289, ../scss/modules/datagrid.scss */ +/* line 285, ../scss/modules/datagrid.scss */ .husky-datagrid .empty-list { text-align: center; color: #ccc; padding: 20px 0; background: #fff; } -/* line 295, ../scss/modules/datagrid.scss */ +/* line 291, ../scss/modules/datagrid.scss */ .husky-datagrid .empty-list .icon { display: block; font-size: 50px; padding-bottom: 5px; } -/* line 300, ../scss/modules/datagrid.scss */ +/* line 296, ../scss/modules/datagrid.scss */ .husky-datagrid .empty-list span { display: block; } -/* line 305, ../scss/modules/datagrid.scss */ +/* line 301, ../scss/modules/datagrid.scss */ .husky-datagrid .selected-elements { display: block; height: 20px; @@ -10493,34 +10609,34 @@ a.btn-black, a.btn-highlight { transition: height 200ms; overflow: hidden; } -/* line 310, ../scss/modules/datagrid.scss */ +/* line 306, ../scss/modules/datagrid.scss */ .husky-datagrid .selected-elements.indent { padding-left: 60px; } -/* line 313, ../scss/modules/datagrid.scss */ +/* line 309, ../scss/modules/datagrid.scss */ .husky-datagrid .selected-elements.invisible { visibility: visible; height: 0px; } -/* line 318, ../scss/modules/datagrid.scss */ +/* line 314, ../scss/modules/datagrid.scss */ .husky-datagrid .selected-elements .show-selected { color: #000; cursor: pointer; } -/* line 324, ../scss/modules/datagrid.scss */ +/* line 320, ../scss/modules/datagrid.scss */ .husky-datagrid .medium-loader { overflow: hidden; height: 0px; transition: all 200ms; margin-top: 0px; } -/* line 330, ../scss/modules/datagrid.scss */ +/* line 326, ../scss/modules/datagrid.scss */ .husky-datagrid .medium-loader.show { height: 70px; margin-top: 10px; } -/* line 339, ../scss/modules/datagrid.scss */ +/* line 335, ../scss/modules/datagrid.scss */ .editable .husky-validate-error .husky-input input { height: 30px; margin-top: -30px; @@ -10533,22 +10649,29 @@ a.btn-black, a.btn-highlight { width: 100%; height: 70px; position: relative; - top: 0px; - left: 0px; + top: 0; + left: 0; color: #fff; - line-height: 70px; padding-left: 55px; font-size: 12px; - z-index: 15000; + z-index: 200; } -/* line 17, ../scss/modules/label.scss */ +/* line 16, ../scss/modules/label.scss */ .husky-label-error strong, .husky-label-warning strong, .husky-label-success strong { font-weight: bold; padding-right: 3px; } -/* line 21, ../scss/modules/label.scss */ +/* line 20, ../scss/modules/label.scss */ +.husky-label-error .text, +.husky-label-warning .text, +.husky-label-success .text { + display: table-cell; + vertical-align: middle; + height: 70px; +} +/* line 25, ../scss/modules/label.scss */ .husky-label-error .close, .husky-label-warning .close, .husky-label-success .close { @@ -10562,7 +10685,7 @@ a.btn-black, a.btn-highlight { font-size: 15px; } -/* line 37, ../scss/modules/label.scss */ +/* line 41, ../scss/modules/label.scss */ .husky-label-error .counter, .husky-label-warning .counter, .husky-label-success .counter, @@ -10574,7 +10697,7 @@ a.btn-black, a.btn-highlight { height: 100%; line-height: 70px; } -/* line 38, ../scss/modules/label.scss */ +/* line 42, ../scss/modules/label.scss */ .husky-label-error .counter span, .husky-label-warning .counter span, .husky-label-success .counter span, @@ -10591,7 +10714,7 @@ a.btn-black, a.btn-highlight { font-weight: bold; } -/* line 60, ../scss/modules/label.scss */ +/* line 64, ../scss/modules/label.scss */ .husky-label-success-icon { height: 100px; background: #5DC774; @@ -10599,13 +10722,13 @@ a.btn-black, a.btn-highlight { padding: 0 10px; position: relative; } -/* line 66, ../scss/modules/label.scss */ +/* line 70, ../scss/modules/label.scss */ .husky-label-success-icon::before { content: ""; display: inline-block; width: 100%; height: 35px; - background-image: url('data:image/svg+xml;utf8, Type something Created with Sketch. '); + background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2248px%22%20height%3D%2238px%22%20viewBox%3D%220%200%2048%2038%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%3E%3Ctitle%3EType%20something%3C%2Ftitle%3E%20%3Cdesc%3ECreated%20with%20Sketch.%3C%2Fdesc%3E%20%3Cdefs%3E%3C%2Fdefs%3E%20%3Cg%20id%3D%22Basics%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20sketch%3Atype%3D%22MSPage%22%3E%20%3Cg%20id%3D%22Success-Message%22%20sketch%3Atype%3D%22MSArtboardGroup%22%20transform%3D%22translate(-99.000000%2C%20-19.000000)%22%20stroke%3D%22%23FFFFFF%22%3E%20%3Cg%20id%3D%22Toolbar%22%20sketch%3Atype%3D%22MSLayerGroup%22%3E%20%3Cg%20id%3D%22Navigation%2FNavigation-Standard%22%20sketch%3Atype%3D%22MSShapeGroup%22%3E%20%3Cg%20id%3D%22Client%22%3E%20%3Cpath%20d%3D%22M146.379414%2C26.9419509%20C146.379414%2C27.7398803%20146.100142%2C28.4181101%20145.541592%2C28.9766607%20L123.877917%2C50.6403351%20L119.808498%2C54.7097546%20C119.249947%2C55.2683052%20118.571718%2C55.5475763%20117.773788%2C55.5475763%20C116.975859%2C55.5475763%20116.297629%2C55.2683052%20115.739078%2C54.7097546%20L111.669659%2C50.6403351%20L100.837822%2C39.8084979%20C100.279271%2C39.2499473%20100%2C38.5717175%20100%2C37.7737882%20C100%2C36.9758588%20100.279271%2C36.297629%20100.837822%2C35.7390784%20L104.907241%2C31.6696589%20C105.465792%2C31.1111083%20106.144022%2C30.8318372%20106.941951%2C30.8318372%20C107.73988%2C30.8318372%20108.41811%2C31.1111083%20108.976661%2C31.6696589%20L117.773788%2C40.4967086%20L137.402753%2C20.8378217%20C137.961303%2C20.2792711%20138.639533%2C20%20139.437463%2C20%20C140.235392%2C20%20140.913622%2C20.2792711%20141.472172%2C20.8378217%20L145.541592%2C24.9072412%20C146.100142%2C25.4657917%20146.379414%2C26.1440215%20146.379414%2C26.9419509%20L146.379414%2C26.9419509%20Z%22%20id%3D%22Type-something%22%3E%3C%2Fpath%3E%3C%2Fg%3E%20%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-size: contain; background-position: center center; @@ -10616,7 +10739,7 @@ a.btn-black, a.btn-highlight { -webkit-transition: margin-top 500ms; transition: margin-top 500ms; } -/* line 79, ../scss/modules/label.scss */ +/* line 83, ../scss/modules/label.scss */ .husky-label-success-icon .text { color: #fff; font-size: 10px; @@ -10629,7 +10752,7 @@ a.btn-black, a.btn-highlight { -webkit-transition: opacity 500ms; transition: opacity 500ms; } -/* line 88, ../scss/modules/label.scss */ +/* line 92, ../scss/modules/label.scss */ .husky-label-success-icon .counter { right: auto; left: 0; @@ -10638,34 +10761,35 @@ a.btn-black, a.btn-highlight { padding: 5px; } -/* line 97, ../scss/modules/label.scss */ +/* line 101, ../scss/modules/label.scss */ .husky-label-error { background: #EA524E; } -/* line 99, ../scss/modules/label.scss */ +/* line 103, ../scss/modules/label.scss */ .husky-label-error .counter { color: #EA524E; } -/* line 104, ../scss/modules/label.scss */ +/* line 108, ../scss/modules/label.scss */ .husky-label-warning { background: #F2D212; + color: #000; } -/* line 106, ../scss/modules/label.scss */ +/* line 111, ../scss/modules/label.scss */ .husky-label-warning .counter { color: #F2D212; } -/* line 111, ../scss/modules/label.scss */ +/* line 116, ../scss/modules/label.scss */ .husky-label-success { background: #5DC774; } -/* line 113, ../scss/modules/label.scss */ +/* line 118, ../scss/modules/label.scss */ .husky-label-success .counter { color: #5DC774; } -/* line 5, ../scss/modules/toggler.scss */ +/* line 8, ../scss/modules/toggler.scss */ .husky-toggler { width: 35px; height: 20px; @@ -10690,7 +10814,7 @@ a.btn-black, a.btn-highlight { top: 1px; left: 1px; } -/* line 35, ../scss/modules/toggler.scss */ +/* line 34, ../scss/modules/toggler.scss */ .husky-toggler .toggler-wrapper { background: #fff; border: 1px solid #ccc; @@ -10710,7 +10834,7 @@ a.btn-black, a.btn-highlight { -webkit-transition: all 100ms ease-in; transition: all 100ms ease-in; } -/* line 48, ../scss/modules/toggler.scss */ +/* line 47, ../scss/modules/toggler.scss */ .husky-toggler .switch { background: #fff; width: 20px; @@ -10727,7 +10851,7 @@ a.btn-black, a.btn-highlight { -webkit-transition: all 100ms ease-in; transition: all 100ms ease-in; } -/* line 62, ../scss/modules/toggler.scss */ +/* line 61, ../scss/modules/toggler.scss */ .husky-toggler input { position: absolute; top: 3px; @@ -10739,29 +10863,39 @@ a.btn-black, a.btn-highlight { opacity: 0; z-index: 0; } -/* line 74, ../scss/modules/toggler.scss */ +/* line 72, ../scss/modules/toggler.scss */ .husky-toggler.checked.outline .toggler-wrapper { border-color: #ACDAE6; } -/* line 76, ../scss/modules/toggler.scss */ +/* line 74, ../scss/modules/toggler.scss */ .husky-toggler.checked.outline .toggler-wrapper .switch { left: 14px; } -/* line 82, ../scss/modules/toggler.scss */ +/* line 80, ../scss/modules/toggler.scss */ .husky-toggler.checked .toggler-wrapper { background: #5DC774; border-color: #5DC774; } -/* line 87, ../scss/modules/toggler.scss */ +/* line 85, ../scss/modules/toggler.scss */ .husky-toggler.checked .switch { border-color: #5DC774; left: 15px; } -/* line 91, ../scss/modules/toggler.scss */ +/* line 89, ../scss/modules/toggler.scss */ .husky-toggler.checked input { left: 17px; } +/* line 95, ../scss/modules/toggler.scss */ +.husky-toggler-label { + color: #000; +} + +/* line 99, ../scss/modules/toggler.scss */ +label.husky-toggler-label ~ .input-description { + margin-left: 40px; +} + /* line 8, ../scss/modules/content-types.scss */ .sortable .text-block .container, .sortable .text-block .collapsed-container { @@ -11132,11 +11266,19 @@ a.btn-black, a.btn-highlight { color: #999; padding-right: 15px; } -/* line 358, ../scss/modules/content-types.scss */ +/* line 359, ../scss/modules/content-types.scss */ +.white-box .content .items-list li a { + text-decoration: none; +} +/* line 362, ../scss/modules/content-types.scss */ +.white-box .content .items-list li a .value, .white-box .content .items-list li a .title { + color: black; +} +/* line 367, ../scss/modules/content-types.scss */ .white-box .content .items-list li .value { color: #999; } -/* line 361, ../scss/modules/content-types.scss */ +/* line 370, ../scss/modules/content-types.scss */ .white-box .content .items-list li .remove { position: absolute; top: 50%; @@ -11150,42 +11292,42 @@ a.btn-black, a.btn-highlight { text-align: center; color: #000; } -/* line 378, ../scss/modules/content-types.scss */ +/* line 387, ../scss/modules/content-types.scss */ .white-box .footer { padding: 15px 20px 20px 20px; line-height: 14px; color: #999; font-size: 12px; } -/* line 385, ../scss/modules/content-types.scss */ +/* line 394, ../scss/modules/content-types.scss */ .white-box.no-content { padding-bottom: 0; } -/* line 388, ../scss/modules/content-types.scss */ +/* line 397, ../scss/modules/content-types.scss */ .white-box.no-content .header .no-content-message { display: inline; } -/* line 391, ../scss/modules/content-types.scss */ +/* line 400, ../scss/modules/content-types.scss */ .white-box.no-content .header .position { display: none; } -/* line 394, ../scss/modules/content-types.scss */ +/* line 403, ../scss/modules/content-types.scss */ .white-box.no-content .header .selected-counter { display: none; } -/* line 402, ../scss/modules/content-types.scss */ +/* line 411, ../scss/modules/content-types.scss */ .white-box.is-loading .header .loader { display: block; } -/* line 405, ../scss/modules/content-types.scss */ +/* line 414, ../scss/modules/content-types.scss */ .white-box.is-loading .header .no-content-message { display: none; } -/* line 408, ../scss/modules/content-types.scss */ +/* line 417, ../scss/modules/content-types.scss */ .white-box.is-loading .header .position { display: none; } -/* line 411, ../scss/modules/content-types.scss */ +/* line 420, ../scss/modules/content-types.scss */ .white-box.is-loading .header .selected-counter { display: none; } @@ -11970,23 +12112,22 @@ a.btn-black, a.btn-highlight { .data-navigation .data-navigation-header .header-item { display: table-cell; width: 50px; - height: 50px; position: relative; } -/* line 25, ../scss/modules/data-navigation.scss */ +/* line 24, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .header-item .icon-container { cursor: pointer; display: table-cell; width: 50px; text-align: center; } -/* line 31, ../scss/modules/data-navigation.scss */ +/* line 30, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .header-item .icon-container span { font-size: 20px; line-height: 50px; vertical-align: middle; } -/* line 38, ../scss/modules/data-navigation.scss */ +/* line 37, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .header-item .content-container { display: none; width: 100%; @@ -11997,92 +12138,92 @@ a.btn-black, a.btn-highlight { overflow: hidden; white-space: nowrap; } -/* line 51, ../scss/modules/data-navigation.scss */ +/* line 50, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-back { background-color: #999; color: #fff; } -/* line 56, ../scss/modules/data-navigation.scss */ +/* line 55, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-back .icon-container span { font-size: 14px; } -/* line 62, ../scss/modules/data-navigation.scss */ +/* line 61, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-search { border-right: 1px solid rgba(255, 255, 255, 0.2); } -/* line 66, ../scss/modules/data-navigation.scss */ +/* line 65, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-search .icon-container span { font-size: 16px; } -/* line 72, ../scss/modules/data-navigation.scss */ +/* line 71, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-search .search-container .search-icon { right: 0; } -/* line 76, ../scss/modules/data-navigation.scss */ +/* line 75, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-search .search-container .remove-icon { display: none !important; } -/* line 80, ../scss/modules/data-navigation.scss */ +/* line 79, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-search .search-container #search-input { padding-left: 15px; padding-right: 30px; font-size: 12px; } -/* line 88, ../scss/modules/data-navigation.scss */ +/* line 87, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-add, .data-navigation .data-navigation-header .header-filler { width: 100%; padding: 0 20px; border: none; } -/* line 93, ../scss/modules/data-navigation.scss */ +/* line 92, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-add .content-container, .data-navigation .data-navigation-header .header-filler .content-container { display: table-cell; } -/* line 98, ../scss/modules/data-navigation.scss */ +/* line 97, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header .data-navigation-add { cursor: pointer; } -/* line 103, ../scss/modules/data-navigation.scss */ +/* line 102, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header.header-search .data-navigation-add, .data-navigation .data-navigation-header.header-search .header-filler { display: none; } -/* line 107, ../scss/modules/data-navigation.scss */ +/* line 106, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header.header-search .data-navigation-search { width: 100%; padding: 0 20px; border: none; } -/* line 112, ../scss/modules/data-navigation.scss */ +/* line 111, ../scss/modules/data-navigation.scss */ .data-navigation .data-navigation-header.header-search .data-navigation-search .content-container { display: table-cell; } -/* line 120, ../scss/modules/data-navigation.scss */ +/* line 119, ../scss/modules/data-navigation.scss */ .data-navigation-list-container { height: calc(100% - 50px); overflow: auto; position: relative; padding: 15px 0 10px 0; } -/* line 126, ../scss/modules/data-navigation.scss */ +/* line 125, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll { position: relative; min-height: calc(100% - 40px); } -/* line 130, ../scss/modules/data-navigation.scss */ +/* line 129, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll .data-navigation-list { background-color: #ddd; width: 100%; height: 100%; } -/* line 135, ../scss/modules/data-navigation.scss */ +/* line 134, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll .data-navigation-list.is-animated { position: absolute; top: 0; left: 100%; z-index: 5; } -/* line 142, ../scss/modules/data-navigation.scss */ +/* line 141, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll .data-navigation-list .data-navigation-items { height: 100%; margin: 0; @@ -12090,7 +12231,7 @@ a.btn-black, a.btn-highlight { list-style: none; overflow: auto; } -/* line 149, ../scss/modules/data-navigation.scss */ +/* line 148, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll .data-navigation-list .data-navigation-items > li { position: relative; height: 50px; @@ -12101,26 +12242,26 @@ a.btn-black, a.btn-highlight { text-overflow: ellipsis; cursor: pointer; } -/* line 159, ../scss/modules/data-navigation.scss */ +/* line 158, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll .data-navigation-list .data-navigation-items > li:hover { background-color: #ccc; } -/* line 163, ../scss/modules/data-navigation.scss */ +/* line 162, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll .data-navigation-list .data-navigation-items > li:focus { outline: 0; } -/* line 167, ../scss/modules/data-navigation.scss */ +/* line 166, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll .data-navigation-list .data-navigation-items > li.not-selectable { cursor: default; padding: 0; height: auto; } -/* line 172, ../scss/modules/data-navigation.scss */ +/* line 171, ../scss/modules/data-navigation.scss */ .data-navigation-list-container .data-navigation-list-scroll .data-navigation-list .data-navigation-items > li.not-selectable:hover { background-color: initial; } -/* line 182, ../scss/modules/data-navigation.scss */ +/* line 181, ../scss/modules/data-navigation.scss */ .data-navigation-item-name { display: inline-block; width: calc(100% - 45px); @@ -12128,7 +12269,7 @@ a.btn-black, a.btn-highlight { overflow: hidden; padding-left: 5px; } -/* line 189, ../scss/modules/data-navigation.scss */ +/* line 188, ../scss/modules/data-navigation.scss */ .data-navigation-item-name .fa-chevron-right { position: absolute; right: 10px; @@ -12136,7 +12277,7 @@ a.btn-black, a.btn-highlight { font-size: 14px; } -/* line 197, ../scss/modules/data-navigation.scss */ +/* line 196, ../scss/modules/data-navigation.scss */ .data-navigation-item-thumb { position: relative; top: 6px; @@ -12151,7 +12292,7 @@ a.btn-black, a.btn-highlight { background-repeat: no-repeat; } -/* line 211, ../scss/modules/data-navigation.scss */ +/* line 210, ../scss/modules/data-navigation.scss */ .data-navigation-loader-container { position: absolute; width: 100%; @@ -12161,27 +12302,40 @@ a.btn-black, a.btn-highlight { padding: 4px 0; } -/* line 220, ../scss/modules/data-navigation.scss */ +/* line 219, ../scss/modules/data-navigation.scss */ .data-navigation-info { text-align: center; line-height: 50px; height: 100%; } -/* line 226, ../scss/modules/data-navigation.scss */ +/* line 225, ../scss/modules/data-navigation.scss */ .data-navigation-info-empty { color: #999; font-size: 14px; line-height: normal; } -/* line 231, ../scss/modules/data-navigation.scss */ +/* line 230, ../scss/modules/data-navigation.scss */ .data-navigation-info-empty .icon { font-size: 40px; display: block; margin: 10px 0 10px 0; } -/* line 56, ../scss/husky.scss */ +/* line 1, ../scss/modules/badge.scss */ +.badge { + vertical-align: middle; + display: inline-block; + background: #52B6CA; + padding: 0px 2px; + margin-top: -3px; + color: #fff; + border-radius: 3px; + font-size: 10px; + line-height: 15px; +} + +/* line 57, ../scss/husky.scss */ [class^="fa-"] { text-decoration: none; } diff --git a/dist/husky.js b/dist/husky.js index 8920ae644..627ef5e2d 100644 --- a/dist/husky.js +++ b/dist/husky.js @@ -16399,7 +16399,29 @@ define('form/util',[], function() { // get form fields getFields: function(element) { - return $(element).find('input:not([data-form="false"], [type="submit"], [type="button"]), textarea:not([data-form="false"]), select:not([data-form="false"]), *[data-form="true"], *[data-type="collection"], *[contenteditable="true"]'); + return $(element).find('input:not([data-form="false"], [type="submit"], [type="button"], [type="checkbox"], [type="radio"]), textarea:not([data-form="false"]), select:not([data-form="false"]), *[data-form="true"], *[data-type="collection"], *[contenteditable="true"]'); + }, + + findGroupedFieldsBySelector: function(element, filter) { + var groupedFields = {}, fieldName; + + $(element).find(filter).each(function(key, field) { + fieldName = $(field).data('mapper-property'); + if (!groupedFields[fieldName]) { + groupedFields[fieldName] = []; + } + groupedFields[fieldName].push(field); + }); + + return groupedFields; + }, + + getCheckboxes: function(element) { + return this.findGroupedFieldsBySelector(element, 'input[type="checkbox"]'); + }, + + getRadios: function(element) { + return this.findGroupedFieldsBySelector(element, 'input[type="radio"]'); }, /** @@ -16582,9 +16604,7 @@ define('form/util',[], function() { isNumeric: function(str) { return str.match(/-?\d+(.\d+)?/); } - }; - }); /* @@ -16973,6 +16993,84 @@ define('form/element',['form/util'], function(Util) { }); +/* + * This file is part of Husky Validation. + * + * (c) MASSIVE ART WebServices GmbH + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +define('form/elementGroup',[],function() { + 'use strict'; + + var setMultipleValue = function(elements, values) { + elements.forEach(function(element) { + values.forEach(function(value) { + if (element.$el.val() === value) { + element.$el.prop('checked', true); + } + }); + }); + }, + + setSingleValue = function(elements, value) { + for (var i = -1; ++i < elements.length;) { + if (elements[i].$el.val() === value) { + elements[i].$el.prop('checked', true); + + return; + } + } + }; + + return function(elements, isSingleValue) { + var result = { + getValue: function() { + var value = []; + elements.forEach(function(element) { + if (element.$el.is(':checked')) { + value.push(element.$el.val()); + } + }); + + if (!!isSingleValue) { + if (value.length > 1) { + throw new Error('Single value element group cannot return more than one value'); + } + + return value[0]; + } + + return value; + }, + + setValue: function(values) { + if (!!isSingleValue && !!$.isArray(values)) { + throw new Error('Single value element cannot be set to an array value'); + } + + if (!isSingleValue && !$.isArray(values)) { + throw new Error('Field with multiple values cannot be set to a single value'); + } + + if ($.isArray(values)) { + setMultipleValue.call(this, elements, values); + } else { + setSingleValue.call(this, elements, values); + } + } + }; + + elements.forEach(function(element) { + element.$el.data('elementGroup', result); + }); + + return result; + }; +}); + /* * This file is part of the Husky Validation. * @@ -17026,6 +17124,16 @@ define('form/validation',[ } }); + $.each(form.mapper.collections, function(i, collection) { + $.each(collection.items, function(j, item) { + $.each(item.data('collection').childElements, function(k, childElement) { + if (!childElement.validate(force)) { + result = false; + } + }); + }); + }); + that.setValid.call(this, result); Util.debug('Validation', !!result ? 'success' : 'error'); return result; @@ -17102,8 +17210,6 @@ define('form/mapper',[ this.collectionsSet = {}; this.emptyTemplates = {}; this.templates = {}; - this.elements = []; - this.collectionsInitiated = $.Deferred(); form.initialized.then(function() { var selector = '*[data-type="collection"]', @@ -17117,7 +17223,7 @@ define('form/mapper',[ var $element = $(value), element = $element.data('element'), property = $element.data('mapper-property'), - $newChild, collection, emptyTemplate, + newChild, collection, emptyTemplate, dfd = $.Deferred(), counter = 0, resolve = function() { @@ -17132,7 +17238,7 @@ define('form/mapper',[ property = [property]; $element.data('mapper-property', property); } else { - throw "no valid mapper-property value"; + throw 'no valid mapper-property value'; } } @@ -17147,7 +17253,8 @@ define('form/mapper',[ id: _.uniqueId('collection_'), property: property, $element: $element, - element: element + element: element, + items: [] }; this.collections.push(collection); @@ -17168,16 +17275,16 @@ define('form/mapper',[ throw 'template has to be defined as ")),this.$.write(e),this.$.close()},find:function(e){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(e))},findOne:function(e){return(e=this.$.querySelector(e))?new CKEDITOR.dom.element(e):null},_getHtml5ShivFrag:function(){var e=this.getCustomData("html5ShivFrag");return e||(e=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(e,!0),this.setCustomData("html5ShivFrag",e)),e}}),CKEDITOR.dom.nodeList=function(e){this.$=e},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(e){return e<0||e>=this.$.length?null:(e=this.$[e])?new CKEDITOR.dom.node(e):null}},CKEDITOR.dom.element=function(e,t){typeof e=="string"&&(e=(t?t.$:document).createElement(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.element.get=function(e){return(e=typeof e=="string"?document.getElementById(e)||document.getElementsByName(e)[0]:e)&&(e.$?e:new CKEDITOR.dom.element(e))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(e,t){var n=new CKEDITOR.dom.element("div",t);return n.setHtml(e),n.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(e,t,n,r){var i=t.getCustomData("list_marker_id")||t.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),s=t.getCustomData("list_marker_names")||t.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");return e[i]=t,s[n]=1,t.setCustomData(n,r)},CKEDITOR.dom.element.clearAllMarkers=function(e){for(var t in e)CKEDITOR.dom.element.clearMarkers(e,e[t],1)},CKEDITOR.dom.element.clearMarkers=function(e,t,n){var r=t.getCustomData("list_marker_names"),i=t.getCustomData("list_marker_id"),s;for(s in r)t.removeCustomData(s);t.removeCustomData("list_marker_names"),n&&(t.removeCustomData("list_marker_id"),delete e[i])},function(){function e(e){var t=!0;return e.$.id||(e.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),t=!1),function(){t||e.removeAttribute("id")}}function t(e,t){return"#"+e.$.id+" "+t.split(/,\s*/).join(", #"+e.$.id+" ")}function n(e){for(var t=0,n=0,i=r[e].length;n]*>/g,""):e},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var e=this.$.ownerDocument.createElement("div");return e.appendChild(this.$.cloneNode(!0)),e.innerHTML},getClientRect:function(){var e=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());return!e.width&&(e.width=e.right-e.left),!e.height&&(e.height=e.bottom-e.top),e},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(e){try{var t=this.$;if(this.getParent())return t.innerHTML=e;var n=this.getDocument()._getHtml5ShivFrag();return n.appendChild(t),t.innerHTML=e,n.removeChild(t),e}catch(r){this.$.innerHTML="",t=new CKEDITOR.dom.element("body",this.getDocument()),t.$.innerHTML=e;for(t=t.getChildren();t.count();)this.append(t.getItem(0));return e}}:function(e){return this.$.innerHTML=e},setText:function(){var e=document.createElement("p");return e.innerHTML="x",e=e.textContent,function(t){this.$[e?"textContent":"innerText"]=t}}(),getAttribute:function(){var e=function(e){return this.$.getAttribute(e,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){switch(e){case"class":e="className";break;case"http-equiv":e="httpEquiv";break;case"name":return this.$.name;case"tabindex":return e=this.$.getAttribute(e,2),e!==0&&this.$.tabIndex===0&&(e=null),e;case"checked":return e=this.$.attributes.getNamedItem(e),(e.specified?e.nodeValue:this.$.checked)?"checked":null;case"hspace":case"value":return this.$[e];case"style":return this.$.style.cssText;case"contenteditable":case"contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(e,2)}:e}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:CKEDITOR.env.ie?function(e){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(e)]}:function(e){var t=this.getWindow().$.getComputedStyle(this.$,null);return t?t.getPropertyValue(e):""},getDtd:function(){var e=CKEDITOR.dtd[this.getName()];return this.getDtd=function(){return e},e},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:CKEDITOR.env.ie?function(){var e=this.$.tabIndex;return e===0&&!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),10)!==0&&(e=-1),e}:CKEDITOR.env.webkit?function(){var e=this.$.tabIndex;return e===void 0&&(e=parseInt(this.getAttribute("tabindex"),10),isNaN(e)&&(e=-1)),e}:function(){return this.$.tabIndex},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var e=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&document.documentMode<=8){var t=this.$.scopeName;t!="HTML"&&(e=t.toLowerCase()+":"+e)}return this.getName=function(){return e},this.getName()},getValue:function(){return this.$.value},getFirst:function(e){var t=this.$.firstChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getNext(e)),t},getLast:function(e){var t=this.$.lastChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getPrevious(e)),t},getStyle:function(e){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]},is:function(){var e=this.getName();if(typeof arguments[0]=="object")return!!arguments[0][e];for(var t=0;t0&&(t>2||!n[e[0].nodeName]||t==2&&!n[e[1].nodeName])},hasAttribute:function(){function e(e){var t=this.$.attributes.getNamedItem(e);if(this.getName()=="input")switch(e){case"class":return this.$.className.length>0;case"checked":return!!this.$.checked;case"value":return e=this.getAttribute("type"),e=="checkbox"||e=="radio"?this.$.value!="on":!!this.$.value}return t?t.specified:!1}return CKEDITOR.env.ie?CKEDITOR.env.version<8?function(t){return t=="name"?!!this.$.name:e.call(this,t)}:e:function(e){return!!this.$.attributes.getNamedItem(e)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(e,t){var n=this.$,e=e.$;if(n!=e){var r;if(t)for(;r=n.lastChild;)e.insertBefore(n.removeChild(r),e.firstChild);else for(;r=n.firstChild;)e.appendChild(n.removeChild(r))}},mergeSiblings:function(){function e(e,t,n){if(t&&t.type==CKEDITOR.NODE_ELEMENT){for(var r=[];t.data("cke-bookmark")||t.isEmptyInlineRemoveable();){r.push(t),t=n?t.getNext():t.getPrevious();if(!t||t.type!=CKEDITOR.NODE_ELEMENT)return}if(e.isIdentical(t)){for(var i=n?e.getLast():e.getFirst();r.length;)r.shift().move(e,!n);t.moveChildren(e,!n),t.remove(),i&&i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings()}}}return function(t){if(t===!1||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))e(this,this.getNext(),!0),e(this,this.getPrevious())}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var e=function(e,t){return this.$.setAttribute(e,t),this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(t,n){return t=="class"?this.$.className=n:t=="style"?this.$.style.cssText=n:t=="tabindex"?this.$.tabIndex=n:t=="checked"?this.$.checked=n:t=="contenteditable"?e.call(this,"contentEditable",n):e.apply(this,arguments),this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(t,n){if(t=="src"&&n.match(/^http:\/\//))try{e.apply(this,arguments)}catch(r){}else e.apply(this,arguments);return this}:e}(),setAttributes:function(e){for(var t in e)this.setAttribute(t,e[t]);return this},setValue:function(e){return this.$.value=e,this},removeAttribute:function(){var e=function(e){this.$.removeAttribute(e)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){e=="class"?e="className":e=="tabindex"?e="tabIndex":e=="contenteditable"&&(e="contentEditable"),this.$.removeAttribute(e)}:e}(),removeAttributes:function(e){if(CKEDITOR.tools.isArray(e))for(var t=0;t=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+e+")")):this.setStyle("opacity",e)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var e,t=this.getElementsByTag("*"),n=0,r=t.count();n0)&&u(0,t===!0?o:t===!1?i:o<0?o:i),n&&(s<0||r>0)&&u(s<0?s:r,0)},setState:function(e,t,n){t=t||"cke";switch(e){case CKEDITOR.TRISTATE_ON:this.addClass(t+"_on"),this.removeClass(t+"_off"),this.removeClass(t+"_disabled"),n&&this.setAttribute("aria-pressed",!0),n&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(t+"_disabled"),this.removeClass(t+"_off"),this.removeClass(t+"_on"),n&&this.setAttribute("aria-disabled",!0),n&&this.removeAttribute("aria-pressed");break;default:this.addClass(t+"_off"),this.removeClass(t+"_on"),this.removeClass(t+"_disabled"),n&&this.removeAttribute("aria-pressed"),n&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var e=this.$;try{e.contentWindow.document}catch(t){e.src=e.src}return e&&new CKEDITOR.dom.document(e.contentWindow.document)},copyAttributes:function(e,t){for(var n=this.$.attributes,t=t||{},r=0;r=0&&t0&&n;)n=e(n,t.shift());else n=e(n,t);return n?new CKEDITOR.dom.node(n):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu",function(e){e.data.getTarget().hasClass("cke_enable_context_menu")||e.data.preventDefault()})},getDirection:function(e){return e?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(e,t){return e="data-"+e,t===void 0?this.getAttribute(e):(t===!1?this.removeAttribute(e):this.setAttribute(e,t),null)},getEditor:function(){var e=CKEDITOR.instances,t,n;for(t in e){n=e[t];if(n.element.equals(this)&&n.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO)return n}return null},find:function(n){var r=e(this),n=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(t(this,n)));return r(),n},findOne:function(n){var r=e(this),n=this.$.querySelector(t(this,n));return r(),n?new CKEDITOR.dom.element(n):null},forEach:function(e,t,n){if(!n&&(!t||this.type==t))var r=e(this);if(r!==!1)for(var n=this.getChildren(),i=0;i0?r.getChild(o-1):u(r,!0)===!1?null:r.getPreviousSourceNode(!0,f,u)):(r=i,r.type==CKEDITOR.NODE_ELEMENT&&!(r=r.getChild(s))&&(r=u(i,!0)===!1?null:i.getNextSourceNode(!0,f,u))),r&&u(r)===!1&&(r=null));for(;r&&!this._.end;){this.current=r;if(!this.evaluator||this.evaluator(r)!==!1){if(!t)return r}else if(t&&this.evaluator)return!1;r=r[l](!1,f,u)}return this.end(),this.current=null}function t(t){for(var n,r=null;n=e.call(this,t);)r=n;return r}function n(e){if(f(e))return!1;if(e.type==CKEDITOR.NODE_TEXT)return!0;if(e.type==CKEDITOR.NODE_ELEMENT){if(e.is(CKEDITOR.dtd.$inline)||e.is("hr")||e.getAttribute("contenteditable")=="false")return!0;var t;if(t=!CKEDITOR.env.needsBrFiller)if(t=e.is(l))e:{t=0;for(var n=e.getChildCount();t0&&(u>=s.getChildCount()?(s=s.append(e.document.createText("")),f=!0):s=s.getChild(u)),i.type==CKEDITOR.NODE_TEXT?(i.split(o),i.equals(s)&&(s=i.getNext())):o?o>=i.getChildCount()?(i=i.append(e.document.createText("")),a=!0):i=i.getChild(o).getPrevious():(i=i.append(e.document.createText(""),1),a=!0);var o=i.getParents(),u=s.getParents(),l,c,h;for(l=0;l0&&!d.equals(s)&&(v=p.append(d.clone()));if(!o[n]||d.$.parentNode!=o[n].$.parentNode)for(d=d.getPrevious();d;){if(d.equals(o[n])||d.equals(i))break;m=d.getPrevious(),t==2?p.$.insertBefore(d.$.cloneNode(!0),p.$.firstChild):(d.remove(),t==1&&p.$.insertBefore(d.$,p.$.firstChild)),d=m}p&&(p=v)}t==2?(c=e.startContainer,c.type==CKEDITOR.NODE_TEXT&&(c.$.data=c.$.data+c.$.nextSibling.data,c.$.parentNode.removeChild(c.$.nextSibling)),e=e.endContainer,e.type==CKEDITOR.NODE_TEXT&&e.$.nextSibling&&(e.$.data=e.$.data+e.$.nextSibling.data,e.$.parentNode.removeChild(e.$.nextSibling))):(c&&h&&(i.$.parentNode!=c.$.parentNode||s.$.parentNode!=h.$.parentNode)&&(t=h.getIndex(),a&&h.$.parentNode==i.$.parentNode&&t--,r&&c.type==CKEDITOR.NODE_ELEMENT?(r=CKEDITOR.dom.element.createFromHtml(' ',e.document),r.insertAfter(c),c.mergeSiblings(!1),e.moveToBookmark({startNode:r})):e.setStart(h.getParent(),t)),e.collapse(!0)),a&&i.remove(),f&&s.$.parentNode&&s.remove()},s={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},o=CKEDITOR.dom.walker.bogus(),u=/^[\t\r\n ]*(?: |\xa0)$/,a=CKEDITOR.dom.walker.editable(),f=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var e=new CKEDITOR.dom.range(this.root);return e._setStartContainer(this.startContainer),e.startOffset=this.startOffset,e._setEndContainer(this.endContainer),e.endOffset=this.endOffset,e.collapsed=this.collapsed,e},collapse:function(e){e?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset),this.collapsed=!0},cloneContents:function(){var e=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||i(this,2,e),e},deleteContents:function(e){this.collapsed||i(this,0,null,e)},extractContents:function(e){var t=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||i(this,1,t,e),t},createBookmark:function(e){var t,n,r,i,s=this.collapsed;return t=this.document.createElement("span"),t.data("cke-bookmark",1),t.setStyle("display","none"),t.setHtml(" "),e&&(r="cke_bm_"+CKEDITOR.tools.getNextNumber(),t.setAttribute("id",r+(s?"C":"S"))),s||(n=t.clone(),n.setHtml(" "),e&&n.setAttribute("id",r+"E"),i=this.clone(),i.collapse(),i.insertNode(n)),i=this.clone(),i.collapse(!0),i.insertNode(t),n?(this.setStartAfter(t),this.setEndBefore(n)):this.moveToPosition(t,CKEDITOR.POSITION_AFTER_END),{startNode:e?r+(s?"C":"S"):t,endNode:e?r+"E":n,serializable:e,collapsed:s}},createBookmark2:function(){function e(e){var n=e.container,r=e.offset,i;i=n;var s=r;i=i.type!=CKEDITOR.NODE_ELEMENT||s===0||s==i.getChildCount()?0:i.getChild(s-1).type==CKEDITOR.NODE_TEXT&&i.getChild(s).type==CKEDITOR.NODE_TEXT,i&&(n=n.getChild(r-1),r=n.getLength()),n.type==CKEDITOR.NODE_ELEMENT&&r>1&&(r=n.getChild(r-1).getIndex(!0)+1);if(n.type==CKEDITOR.NODE_TEXT){i=n;for(s=0;(i=i.getPrevious())&&i.type==CKEDITOR.NODE_TEXT;)s+=i.getLength();i=s,n.getText()?r+=i:(s=n.getPrevious(t),i?(r=i,n=s?s.getNext():n.getParent().getFirst()):(n=n.getParent(),r=s?s.getIndex(!0)+1:0))}e.container=n,e.offset=r}var t=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(t){var n=this.collapsed,r={container:this.startContainer,offset:this.startOffset},i={container:this.endContainer,offset:this.endOffset};return t&&(e(r),n||e(i)),{start:r.container.getAddress(t),end:n?null:i.container.getAddress(t),startOffset:r.offset,endOffset:i.offset,normalized:t,collapsed:n,is2:!0}}}(),moveToBookmark:function(e){if(e.is2){var t=this.document.getByAddress(e.start,e.normalized),n=e.startOffset,r=e.end&&this.document.getByAddress(e.end,e.normalized),e=e.endOffset;this.setStart(t,n),r?this.setEnd(r,e):this.collapse(!0)}else t=(n=e.serializable)?this.document.getById(e.startNode):e.startNode,e=n?this.document.getById(e.endNode):e.endNode,this.setStartBefore(t),t.remove(),e?(this.setEndBefore(e),e.remove()):this.collapse(!0)},getBoundaryNodes:function(){var e=this.startContainer,t=this.endContainer,n=this.startOffset,r=this.endOffset,i;if(e.type==CKEDITOR.NODE_ELEMENT){i=e.getChildCount();if(i>n)e=e.getChild(n);else if(i<1)e=e.getPreviousSourceNode();else{for(e=e.$;e.lastChild;)e=e.lastChild;e=new CKEDITOR.dom.node(e),e=e.getNextSourceNode()||e}}if(t.type==CKEDITOR.NODE_ELEMENT){i=t.getChildCount();if(i>r)t=t.getChild(r).getPreviousSourceNode(!0);else if(i<1)t=t.getPreviousSourceNode();else{for(t=t.$;t.lastChild;)t=t.lastChild;t=new CKEDITOR.dom.node(t)}}return e.getPosition(t)&CKEDITOR.POSITION_FOLLOWING&&(e=t),{startNode:e,endNode:t}},getCommonAncestor:function(e,t){var n=this.startContainer,r=this.endContainer,n=n.equals(r)?e&&n.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?n.getChild(this.startOffset):n:n.getCommonAncestor(r);return t&&!n.is?n.getParent():n},optimize:function(){var e=this.startContainer,t=this.startOffset;e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setStartAfter(e):this.setStartBefore(e)),e=this.endContainer,t=this.endOffset,e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setEndAfter(e):this.setEndBefore(e))},optimizeBookmark:function(){var e=this.startContainer,t=this.endContainer;e.is&&e.is("span")&&e.data("cke-bookmark")&&this.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),t&&t.is&&t.is("span")&&t.data("cke-bookmark")&&this.setEndAt(t,CKEDITOR.POSITION_AFTER_END)},trim:function(e,t){var n=this.startContainer,r=this.startOffset,i=this.collapsed;if((!e||i)&&n&&n.type==CKEDITOR.NODE_TEXT){if(r)if(r>=n.getLength())r=n.getIndex()+1,n=n.getParent();else{var s=n.split(r),r=n.getIndex()+1,n=n.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(s,this.endOffset-this.startOffset):n.equals(this.endContainer)&&(this.endOffset=this.endOffset+1)}else r=n.getIndex(),n=n.getParent();this.setStart(n,r);if(i){this.collapse(!0);return}}n=this.endContainer,r=this.endOffset,!t&&!i&&n&&n.type==CKEDITOR.NODE_TEXT&&(r?(r>=n.getLength()||n.split(r),r=n.getIndex()+1):r=n.getIndex(),n=n.getParent(),this.setEnd(n,r))},enlarge:function(e,t){function n(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable")?null:e}var r=RegExp(/[^\s\ufeff]/);switch(e){case CKEDITOR.ENLARGE_INLINE:var i=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var s=this.getCommonAncestor(),o=this.root,u,a,f,l,c,h=!1,p,d;p=this.startContainer;var v=this.startOffset;p.type==CKEDITOR.NODE_TEXT?(v&&(p=!CKEDITOR.tools.trim(p.substring(0,v)).length&&p,h=!!p),p&&!(l=p.getPrevious())&&(f=p.getParent())):(v&&(l=p.getChild(v-1)||p.getLast()),l||(f=p));for(f=n(f);f||l;){if(f&&!l){!c&&f.equals(s)&&(c=!0);if(i?f.isBlockBoundary():!o.contains(f))break;if(!h||f.getComputedStyle("display")!="inline")h=!1,c?u=f:this.setStartBefore(f);l=f.getPrevious()}for(;l;){p=!1;if(l.type==CKEDITOR.NODE_COMMENT)l=l.getPrevious();else{if(l.type==CKEDITOR.NODE_TEXT)d=l.getText(),r.test(d)&&(l=null),p=/[\s\ufeff]$/.test(d);else if((l.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||t&&l.is("br"))&&!l.data("cke-bookmark"))if(h&&CKEDITOR.dtd.$removeEmpty[l.getName()]){d=l.getText();if(r.test(d))l=null;else for(var v=l.$.getElementsByTagName("*"),m=0,g;g=v[m++];)if(!CKEDITOR.dtd.$removeEmpty[g.nodeName.toLowerCase()]){l=null;break}l&&(p=!!d.length)}else l=null;p&&(h?c?u=f:f&&this.setStartBefore(f):h=!0);if(l){p=l.getPrevious();if(!f&&!p){f=l,l=null;break}l=p}else f=null}}f&&(f=n(f.getParent()))}p=this.endContainer,v=this.endOffset,f=l=null,c=h=!1;var y=function(e,t){var n=new CKEDITOR.dom.range(o);n.setStart(e,t),n.setEndAt(o,CKEDITOR.POSITION_BEFORE_END);var n=new CKEDITOR.dom.walker(n),i;for(n.guard=function(e){return e.type!=CKEDITOR.NODE_ELEMENT||!e.isBlockBoundary()};i=n.next();){if(i.type!=CKEDITOR.NODE_TEXT)return!1;d=i!=e?i.getText():i.substring(t);if(r.test(d))return!1}return!0};p.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(p.substring(v)).length?h=!0:(h=!p.getLength(),v==p.getLength()?(l=p.getNext())||(f=p.getParent()):y(p,v)&&(f=p.getParent())):(l=p.getChild(v))||(f=p);for(;f||l;){if(f&&!l){!c&&f.equals(s)&&(c=!0);if(i?f.isBlockBoundary():!o.contains(f))break;if(!h||f.getComputedStyle("display")!="inline")h=!1,c?a=f:f&&this.setEndAfter(f);l=f.getNext()}for(;l;){p=!1;if(l.type==CKEDITOR.NODE_TEXT)d=l.getText(),y(l,0)||(l=null),p=/^[\s\ufeff]/.test(d);else if(l.type==CKEDITOR.NODE_ELEMENT){if((l.$.offsetWidth>0||t&&l.is("br"))&&!l.data("cke-bookmark"))if(h&&CKEDITOR.dtd.$removeEmpty[l.getName()]){d=l.getText();if(r.test(d))l=null;else{v=l.$.getElementsByTagName("*");for(m=0;g=v[m++];)if(!CKEDITOR.dtd.$removeEmpty[g.nodeName.toLowerCase()]){l=null;break}}l&&(p=!!d.length)}else l=null}else p=1;p&&h&&(c?a=f:this.setEndAfter(f));if(l){p=l.getNext();if(!f&&!p){f=l,l=null;break}l=p}else f=null}f&&(f=n(f.getParent()))}u&&a&&(s=u.contains(a)?a:u,this.setStartBefore(s),this.setEndAfter(s));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:f=new CKEDITOR.dom.range(this.root),o=this.root,f.setStartAt(o,CKEDITOR.POSITION_AFTER_START),f.setEnd(this.startContainer,this.startOffset),f=new CKEDITOR.dom.walker(f);var b,w,E=CKEDITOR.dom.walker.blockBoundary(e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),S=null,x=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&e.getAttribute("contenteditable")=="false")if(S){if(S.equals(e)){S=null;return}}else S=e;else if(S)return;var t=E(e);return t||(b=e),t},i=function(e){var t=x(e);return!t&&e.is&&e.is("br")&&(w=e),t};f.guard=x,f=f.lastBackward(),b=b||o,this.setStartAt(b,!b.is("br")&&(!f&&this.checkStartOfBlock()||f&&b.contains(f))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){f=this.clone(),f=new CKEDITOR.dom.walker(f);var T=CKEDITOR.dom.walker.whitespaces(),N=CKEDITOR.dom.walker.bookmark();f.evaluator=function(e){return!T(e)&&!N(e)};if((f=f.previous())&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("br"))break}f=this.clone(),f.collapse(),f.setEndAt(o,CKEDITOR.POSITION_BEFORE_END),f=new CKEDITOR.dom.walker(f),f.guard=e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?i:x,b=S=w=null,f=f.lastForward(),b=b||o,this.setEndAt(b,!f&&this.checkEndOfBlock()||f&&b.contains(f)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START),w&&this.setEndAfter(w)}},shrink:function(e,t,n){if(!this.collapsed){var e=e||CKEDITOR.SHRINK_TEXT,r=this.clone(),i=this.startContainer,s=this.endContainer,o=this.startOffset,u=this.endOffset,a=1,f=1;i&&i.type==CKEDITOR.NODE_TEXT&&(o?o>=i.getLength()?r.setStartAfter(i):(r.setStartBefore(i),a=0):r.setStartBefore(i)),s&&s.type==CKEDITOR.NODE_TEXT&&(u?u>=s.getLength()?r.setEndAfter(s):(r.setEndAfter(s),f=0):r.setEndBefore(s));var r=new CKEDITOR.dom.walker(r),l=CKEDITOR.dom.walker.bookmark();r.evaluator=function(t){return t.type==(e==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var c;return r.guard=function(t,r){return l(t)?!0:e==CKEDITOR.SHRINK_ELEMENT&&t.type==CKEDITOR.NODE_TEXT||r&&t.equals(c)||n===!1&&t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary()||t.type==CKEDITOR.NODE_ELEMENT&&t.hasAttribute("contenteditable")?!1:(!r&&t.type==CKEDITOR.NODE_ELEMENT&&(c=t),!0)},a&&(i=r[e==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(i,t?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START),f&&(r.reset(),(r=r[e==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(r,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)),!!a||!!f}},insertNode:function(e){this.optimizeBookmark(),this.trim(!1,!0);var t=this.startContainer,n=t.getChild(this.startOffset);n?e.insertBefore(n):t.append(e),e.getParent()&&e.getParent().equals(this.endContainer)&&this.endOffset++,this.setStartBefore(e)},moveToPosition:function(e,t){this.setStartAt(e,t),this.collapse(!0)},moveToRange:function(e){this.setStart(e.startContainer,e.startOffset),this.setEnd(e.endContainer,e.endOffset)},selectNodeContents:function(e){this.setStart(e,0),this.setEnd(e,e.type==CKEDITOR.NODE_TEXT?e.getLength():e.getChildCount())},setStart:function(e,t){e.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[e.getName()]&&(t=e.getIndex(),e=e.getParent()),this._setStartContainer(e),this.startOffset=t,this.endContainer||(this._setEndContainer(e),this.endOffset=t),r(this)},setEnd:function(e,t){e.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[e.getName()]&&(t=e.getIndex()+1,e=e.getParent()),this._setEndContainer(e),this.endOffset=t,this.startContainer||(this._setStartContainer(e),this.startOffset=t),r(this)},setStartAfter:function(e){this.setStart(e.getParent(),e.getIndex()+1)},setStartBefore:function(e){this.setStart(e.getParent(),e.getIndex())},setEndAfter:function(e){this.setEnd(e.getParent(),e.getIndex()+1)},setEndBefore:function(e){this.setEnd(e.getParent(),e.getIndex())},setStartAt:function(e,t){switch(t){case CKEDITOR.POSITION_AFTER_START:this.setStart(e,0);break;case CKEDITOR.POSITION_BEFORE_END:e.type==CKEDITOR.NODE_TEXT?this.setStart(e,e.getLength()):this.setStart(e,e.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(e);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(e)}r(this)},setEndAt:function(e,t){switch(t){case CKEDITOR.POSITION_AFTER_START:this.setEnd(e,0);break;case CKEDITOR.POSITION_BEFORE_END:e.type==CKEDITOR.NODE_TEXT?this.setEnd(e,e.getLength()):this.setEnd(e,e.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(e);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(e)}r(this)},fixBlock:function(e,t){var n=this.createBookmark(),r=this.document.createElement(t);return this.collapse(e),this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),this.extractContents().appendTo(r),r.trim(),r.appendBogus(),this.insertNode(r),this.moveToBookmark(n),r},splitBlock:function(e){var t=new CKEDITOR.dom.elementPath(this.startContainer,this.root),n=new CKEDITOR.dom.elementPath(this.endContainer,this.root),r=t.block,i=n.block,s=null;return t.blockLimit.equals(n.blockLimit)?(e!="br"&&(r||(r=this.fixBlock(!0,e),i=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),i||(i=this.fixBlock(!1,e))),e=r&&this.checkStartOfBlock(),t=i&&this.checkEndOfBlock(),this.deleteContents(),r&&r.equals(i)&&(t?(s=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(i,CKEDITOR.POSITION_AFTER_END),i=null):e?(s=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(r,CKEDITOR.POSITION_BEFORE_START),r=null):(i=this.splitElement(r),r.is("ul","ol")||r.appendBogus())),{previousBlock:r,nextBlock:i,wasStartOfBlock:e,wasEndOfBlock:t,elementPath:s}):null},splitElement:function(e){if(!this.collapsed)return null;this.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var t=this.extractContents(),n=e.clone(!1);return t.appendTo(n),n.insertAfter(e),this.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),n},removeEmptyBlocksAtEnd:function(){function e(e){return function(r){return t(r)||n(r)||r.type==CKEDITOR.NODE_ELEMENT&&r.isEmptyInlineRemoveable()||e.is("table")&&r.is("caption")?!1:!0}}var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!1);return function(t){for(var n=this.createBookmark(),r=this[t?"endPath":"startPath"](),i=r.block||r.blockLimit,s;i&&!i.equals(r.root)&&!i.getFirst(e(i));)s=i.getParent(),this[t?"setEndAt":"setStartAt"](i,CKEDITOR.POSITION_AFTER_END),i.remove(1),i=s;this.moveToBookmark(n)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(e,n){var r=n==CKEDITOR.START,i=this.clone();return i.collapse(r),i[r?"setStartAt":"setEndAt"](e,r?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),i=new CKEDITOR.dom.walker(i),i.evaluator=t(r),i[r?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var t=this.startContainer,n=this.startOffset;return CKEDITOR.env.ie&&n&&t.type==CKEDITOR.NODE_TEXT&&(t=CKEDITOR.tools.ltrim(t.substring(0,n)),u.test(t)&&this.trim(0,1)),this.trim(),t=new CKEDITOR.dom.elementPath(this.startContainer,this.root),n=this.clone(),n.collapse(!0),n.setStartAt(t.block||t.blockLimit,CKEDITOR.POSITION_AFTER_START),t=new CKEDITOR.dom.walker(n),t.evaluator=e(),t.checkBackward()},checkEndOfBlock:function(){var t=this.endContainer,n=this.endOffset;return CKEDITOR.env.ie&&t.type==CKEDITOR.NODE_TEXT&&(t=CKEDITOR.tools.rtrim(t.substring(n)),u.test(t)&&this.trim(1,0)),this.trim(),t=new CKEDITOR.dom.elementPath(this.endContainer,this.root),n=this.clone(),n.collapse(!1),n.setEndAt(t.block||t.blockLimit,CKEDITOR.POSITION_BEFORE_END),t=new CKEDITOR.dom.walker(n),t.evaluator=e(),t.checkForward()},getPreviousNode:function(e,t,n){var r=this.clone();return r.collapse(1),r.setStartAt(n||this.root,CKEDITOR.POSITION_AFTER_START),n=new CKEDITOR.dom.walker(r),n.evaluator=e,n.guard=t,n.previous()},getNextNode:function(e,t,n){var r=this.clone();return r.collapse(),r.setEndAt(n||this.root,CKEDITOR.POSITION_BEFORE_END),n=new CKEDITOR.dom.walker(r),n.evaluator=e,n.guard=t,n.next()},checkReadOnly:function(){function e(e,t){for(;e;){if(e.type==CKEDITOR.NODE_ELEMENT){if(e.getAttribute("contentEditable")=="false"&&!e.data("cke-editable"))return 0;if(e.is("html")||e.getAttribute("contentEditable")=="true"&&(e.contains(t)||e.equals(t)))break}e=e.getParent()}return 1}return function(){var t=this.startContainer,n=this.endContainer;return!e(t,n)||!e(n,t)}}(),moveToElementEditablePosition:function(e,t){if(e.type==CKEDITOR.NODE_ELEMENT&&!e.isEditable(!1))return this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var n=0;e;){if(e.type==CKEDITOR.NODE_TEXT){t&&this.endContainer&&this.checkEndOfBlock()&&u.test(e.getText())?this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),n=1;break}if(e.type==CKEDITOR.NODE_ELEMENT)if(e.isEditable())this.moveToPosition(e,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),n=1;else if(t&&e.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);else if(e.getAttribute("contenteditable")=="false"&&e.is(CKEDITOR.dtd.$block))return this.setStartBefore(e),this.setEndAfter(e),!0;var r=e,i=n,s=void 0;r.type==CKEDITOR.NODE_ELEMENT&&r.isEditable(!1)&&(s=r[t?"getLast":"getFirst"](f)),!i&&!s&&(s=r[t?"getPrevious":"getNext"](f)),e=s}return!!n},moveToClosestEditablePosition:function(e,t){var n=new CKEDITOR.dom.range(this.root),r=0,i,s=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];n.moveToPosition(e,s[t?0:1]);if(e.is(CKEDITOR.dtd.$block)){if(i=n[t?"getNextEditableNode":"getPreviousEditableNode"]())r=1,i.type==CKEDITOR.NODE_ELEMENT&&i.is(CKEDITOR.dtd.$block)&&i.getAttribute("contenteditable")=="false"?(n.setStartAt(i,CKEDITOR.POSITION_BEFORE_START),n.setEndAt(i,CKEDITOR.POSITION_AFTER_END)):n.moveToPosition(i,s[t?1:0])}else r=1;return r&&this.moveToRange(n),!!r},moveToElementEditStart:function(e){return this.moveToElementEditablePosition(e)},moveToElementEditEnd:function(e){return this.moveToElementEditablePosition(e,!0)},getEnclosedNode:function(){var e=this.clone();e.optimize();if(e.startContainer.type!=CKEDITOR.NODE_ELEMENT||e.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var e=new CKEDITOR.dom.walker(e),t=CKEDITOR.dom.walker.bookmark(!1,!0),n=CKEDITOR.dom.walker.whitespaces(!0);e.evaluator=function(e){return n(e)&&t(e)};var r=e.next();return e.reset(),r&&r.equals(e.previous())?r:null},getTouchedStartNode:function(){var e=this.startContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.startOffset)||e},getTouchedEndNode:function(){var e=this.endContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.endOffset-1)||e},getNextEditableNode:n(),getPreviousEditableNode:n(1),scrollIntoView:function(){var e=new CKEDITOR.dom.element.createFromHtml(" ",this.document),t,n,r,i=this.clone();i.optimize(),(r=i.startContainer.type==CKEDITOR.NODE_TEXT)?(n=i.startContainer.getText(),t=i.startContainer.split(i.startOffset),e.insertAfter(i.startContainer)):i.insertNode(e),e.scrollIntoView(),r&&(i.startContainer.setText(n),t.remove()),e.remove()},_setStartContainer:function(e){this.startContainer=e},_setEndContainer:function(e){this.endContainer=e}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,"use strict",function(){function e(e){arguments.length<1||(this.range=e,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function t(e){var t=[];return e.forEach(function(e){if(e.getAttribute("contenteditable")=="true")return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}function n(e,r,i,s){e:{s==null&&(s=t(i));for(var o;o=s.shift();)if(o.getDtd().p){s={element:o,remaining:s};break e}s=null}return s?(o=CKEDITOR.filter.instances[s.element.data("cke-filter")])&&!o.check(r)?n(e,r,i,s.remaining):(r=new CKEDITOR.dom.range(s.element),r.selectNodeContents(s.element),r=r.createIterator(),r.enlargeBr=e.enlargeBr,r.enforceRealBlocks=e.enforceRealBlocks,r.activeFilter=r.filter=o,e._.nestedEditable={element:s.element,container:i,remaining:s.remaining,iterator:r},1):0}function r(e,t,n){return t?(e=e.clone(),e.collapse(!n),e.checkBoundaryOfElement(t,n?CKEDITOR.START:CKEDITOR.END)):!1}var i=/^[\r\n\t ]+$/,s=CKEDITOR.dom.walker.bookmark(!1,!0),o=CKEDITOR.dom.walker.whitespaces(!0),u=function(e){return s(e)&&o(e)},a={dd:1,dt:1,li:1};e.prototype={getNextParagraph:function(e){var t,o,l,p,v,e=e||"p";if(this._.nestedEditable){if(t=this._.nestedEditable.iterator.getNextParagraph(e))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,t;this.activeFilter=this.filter;if(n(this,e,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(e);this._.nestedEditable=null}if(!this.range.root.getDtd()[e])return null;if(!this._.started){var m=this.range.clone();o=m.startPath();var y=m.endPath(),w=!m.collapsed&&r(m,o.block),E=!m.collapsed&&r(m,y.block,1);m.shrink(CKEDITOR.SHRINK_ELEMENT,!0),w&&m.setStartAt(o.block,CKEDITOR.POSITION_BEFORE_END),E&&m.setEndAt(y.block,CKEDITOR.POSITION_AFTER_START),o=m.endContainer.hasAscendant("pre",!0)||m.startContainer.hasAscendant("pre",!0),m.enlarge(this.forceBrBreak&&!o||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!m.collapsed){o=new CKEDITOR.dom.walker(m.clone()),y=CKEDITOR.dom.walker.bookmark(!0,!0),o.evaluator=y,this._.nextNode=o.next(),o=new CKEDITOR.dom.walker(m.clone()),o.evaluator=y,o=o.previous(),this._.lastNode=o.getNextSourceNode(!0,null,m.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(y=this.range.clone(),y.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),y.checkEndOfBlock()&&(y=new CKEDITOR.dom.elementPath(y.endContainer,y.root),this._.lastNode=(y.block||y.blockLimit).getNextSourceNode(!0)));if(!this._.lastNode||!m.root.contains(this._.lastNode))this._.lastNode=this._.docEndMarker=m.document.createText(""),this._.lastNode.insertAfter(o);m=null}this._.started=1,o=m}y=this._.nextNode,m=this._.lastNode;for(this._.nextNode=null;y;){var w=0,E=y.hasAscendant("pre"),S=y.type!=CKEDITOR.NODE_ELEMENT,x=0;if(S)y.type==CKEDITOR.NODE_TEXT&&i.test(y.getText())&&(S=0);else{var T=y.getName();if(CKEDITOR.dtd.$block[T]&&y.getAttribute("contenteditable")=="false"){t=y,n(this,e,t);break}if(y.isBlockBoundary(this.forceBrBreak&&!E&&{br:1})){if(T=="br")S=1;else if(!o&&!y.getChildCount()&&T!="hr"){t=y,l=y.equals(m);break}o&&(o.setEndAt(y,CKEDITOR.POSITION_BEFORE_START),T!="br"&&(this._.nextNode=y)),w=1}else{if(y.getFirst()){o||(o=this.range.clone(),o.setStartAt(y,CKEDITOR.POSITION_BEFORE_START)),y=y.getFirst();continue}S=1}}S&&!o&&(o=this.range.clone(),o.setStartAt(y,CKEDITOR.POSITION_BEFORE_START)),l=(!w||S)&&y.equals(m);if(o&&!w)for(;!y.getNext(u)&&!l;){T=y.getParent();if(T.isBlockBoundary(this.forceBrBreak&&!E&&{br:1})){w=1,S=0,l||T.equals(m),o.setEndAt(T,CKEDITOR.POSITION_BEFORE_END);break}y=T,S=1,l=y.equals(m),x=1}S&&o.setEndAt(y,CKEDITOR.POSITION_AFTER_END),y=this._getNextSourceNode(y,x,m);if((l=!y)||w&&o)break}if(!t){if(!o)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;t=new CKEDITOR.dom.elementPath(o.startContainer,o.root),y=t.blockLimit,w={div:1,th:1,td:1},t=t.block;if(!t&&y&&!this.enforceRealBlocks&&w[y.getName()]&&o.checkStartOfBlock()&&o.checkEndOfBlock()&&!y.equals(o.root))t=y;else if(!t||this.enforceRealBlocks&&t.is(a))t=this.range.document.createElement(e),o.extractContents().appendTo(t),t.trim(),o.insertNode(t),p=v=!0;else if(t.getName()!="li"){if(!o.checkStartOfBlock()||!o.checkEndOfBlock())t=t.clone(!1),o.extractContents().appendTo(t),t.trim(),v=o.splitBlock(),p=!v.wasStartOfBlock,v=!v.wasEndOfBlock,o.insertNode(t)}else l||(this._.nextNode=t.equals(m)?null:this._getNextSourceNode(o.getBoundaryNodes().endNode,1,m))}return p&&(p=t.getPrevious())&&p.type==CKEDITOR.NODE_ELEMENT&&(p.getName()=="br"?p.remove():p.getLast()&&p.getLast().$.nodeName.toLowerCase()=="br"&&p.getLast().remove()),v&&(p=t.getLast())&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()=="br"&&(!CKEDITOR.env.needsBrFiller||p.getPrevious(s)||p.getNext(s))&&p.remove(),this._.nextNode||(this._.nextNode=l||t.equals(m)||!m?null:this._getNextSourceNode(t,1,m)),t},_getNextSourceNode:function(e,t,n){function r(e){return!e.equals(n)&&!e.equals(i)}for(var i=this.range.root,e=e.getNextSourceNode(t,null,r);!s(e);)e=e.getNextSourceNode(t,null,r);return e}},CKEDITOR.dom.range.prototype.createIterator=function(){return new e(this)}}(),CKEDITOR.command=function(e,t){this.uiItems=[],this.exec=function(n){return this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed()?!1:(this.editorFocus&&e.focus(),this.fire("exec")===!1?!0:t.exec.call(this,e,n)!==!1)},this.refresh=function(e,n){return!this.readOnly&&e.readOnly?!0:this.context&&!n.isContextFor(this.context)?(this.disable(),!0):this.checkAllowed(!0)?(this.startDisabled||this.enable(),this.modes&&!this.modes[e.mode]&&this.disable(),this.fire("refresh",{editor:e,path:n})===!1?!0:t.refresh&&t.refresh.apply(this,arguments)!==!1):(this.disable(),!0)};var n;this.checkAllowed=function(t){return!t&&typeof n=="boolean"?n:n=e.activeFilter.checkFeature(this)},CKEDITOR.tools.extend(this,t,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!t.context,state:CKEDITOR.TRISTATE_DISABLED}),CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(!this.preserveState||typeof this.previousState=="undefined"?CKEDITOR.TRISTATE_OFF:this.previousState)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(e){return this.state==e||e!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed()?!1:(this.previousState=this.state,this.state=e,this.fire("state"),!0)},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1e4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function e(e,t,n,r,i){var s,u,e=[];for(s in t){u=t[s],u=typeof u=="boolean"?{}:typeof u=="function"?{match:u}:L(u),s.charAt(0)!="$"&&(u.elements=s),n&&(u.featureName=n.toLowerCase());var a=u;a.elements=o(a.elements,/\s+/)||null,a.propertiesOnly=a.propertiesOnly||a.elements===!0;var f=/\s*,\s*/,l=void 0;for(l in _){a[l]=o(a[l],f)||null;var c=a,h=D[l],p=o(a[D[l]],f),d=a[l],v=[],m=!0,y=void 0;p?m=!1:p={};for(y in d)y.charAt(0)=="!"&&(y=y.slice(1),v.push(y),p[y]=!0,m=!1);for(;y=v.pop();)d[y]=d["!"+y],delete d["!"+y];c[h]=(m?!1:p)||null}a.match=a.match||null,r.push(u),e.push(u)}for(var t=i.elements,i=i.generic,b,n=0,r=e.length;n-1?p.push(RegExp("^"+d.replace(/\*/g,".*")+"$")):p.push(d);h=p,h.length&&(a[f]=h,c=!1)}a.nothingRequired=c,a.noProperties=!(a.attributes||a.classes||a.styles);if(s.elements===!0||s.elements===null)i[u?"unshift":"push"](s);else{a=s.elements,delete s.elements;for(b in a)t[b]?t[b][u?"unshift":"push"](s):t[b]=[s]}}}function t(e,t,r,i){if(!e.match||e.match(t))if(i||u(e,t)){e.propertiesOnly||(r.valid=!0),r.allAttributes||(r.allAttributes=n(e.attributes,t.attributes,r.validAttributes)),r.allStyles||(r.allStyles=n(e.styles,t.styles,r.validStyles));if(!r.allClasses){e=e.classes,t=t.classes,i=r.validClasses;if(e)if(e===!0)e=!0;else{for(var s=0,o=t.length,a;s-1&&t.push(n.replace(/\*/g,".*"));return t.length?RegExp("^(?:"+t.join("|")+")$"):null}function v(e){var t=e.attributes,n;delete t.style,delete t["class"];if(n=CKEDITOR.tools.writeCssText(e.styles,!0))t.style=n;e.classes.length&&(t["class"]=e.classes.sort().join(" "))}function m(e){switch(e.name){case"a":if(!e.children.length&&!e.attributes.name)return!1;break;case"img":if(!e.attributes.src)return!1}return!0}function g(e){if(!e)return!1;if(e===!0)return!0;var t=d(e);return function(n){return n in e||t&&n.match(t)}}function y(){return new CKEDITOR.htmlParser.element("br")}function b(e){return e.type==CKEDITOR.NODE_ELEMENT&&(e.name=="br"||C.$block[e.name])}function w(e,t,n){var r=e.name;if(C.$empty[r]||!e.children.length)r=="hr"&&t=="br"?e.replaceWith(y()):(e.parent&&n.push({check:"it",el:e.parent}),e.remove());else if(C.$block[r]||r=="tr")if(t=="br")e.previous&&!b(e.previous)&&(t=y(),t.insertBefore(e)),e.next&&!b(e.next)&&(t=y(),t.insertAfter(e)),e.replaceWithChildren();else{var r=e.children,i;e:{i=C[t];for(var s=0,o=r.length,u;s0;)u=r[--o],s&&(u.type==CKEDITOR.NODE_TEXT||u.type==CKEDITOR.NODE_ELEMENT&&C.$inline[u.name])?(a||(a=new CKEDITOR.htmlParser.element(t),a.insertAfter(e),n.push({check:"parent-down",el:a})),a.add(u,0)):(a=null,f=C[i.name]||C.span,u.insertAfter(e),i.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&u.type==CKEDITOR.NODE_ELEMENT&&!f[u.name]&&n.push({check:"el-up",el:u}));e.remove()}}else r=="style"?e.remove():(e.parent&&n.push({check:"it",el:e.parent}),e.replaceWithChildren())}function E(e,t,n){var r,i;for(r=0;r";if(s in this._.cachedChecks)return this._.cachedChecks[s];r=l(e).$1,i=r.styles;var o=r.classes;r.name=r.elements,r.classes=o=o?o.split(/\s*,\s*/):[],r.styles=f(i),r.attributes=f(r.attributes),r.children=[],o.length&&(r.attributes["class"]=o.join(" ")),i&&(r.attributes.style=CKEDITOR.tools.writeCssText(r.styles)),i=r}else r=e.getDefinition(),i=r.styles,o=r.attributes||{},i?(i=L(i),o.style=CKEDITOR.tools.writeCssText(i,!0)):i={},i={name:r.element,attributes:o,classes:o["class"]?o["class"].split(/\s+/):[],styles:i,children:[]};var o=CKEDITOR.tools.clone(i),u=[],a;if(t!==!1&&(a=this._.transformations[i.name])){for(r=0;r0?!1:CKEDITOR.tools.objectCompare(i.attributes,o.attributes,!0)?!0:!1,typeof e=="string"&&(this._.cachedChecks[s]=t),t},getAllowedEnterMode:function(){var e=["p","div","br"],t={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(n,r){var i=e.slice(),s;if(this.check(M[n]))return n;for(r||(i=i.reverse());s=i.pop();)if(this.check(s))return t[s];return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id],delete this._,delete this.allowedContent,delete this.disallowedContent}};var _={styles:1,attributes:1,classes:1},D={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},P=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,H={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},B=/^cke:(object|embed|param)$/,j=/^(object|embed|param)$/,F=CKEDITOR.filter.transformationsTools={sizeToStyle:function(e){this.lengthToStyle(e,"width"),this.lengthToStyle(e,"height")},sizeToAttribute:function(e){this.lengthToAttribute(e,"width"),this.lengthToAttribute(e,"height")},lengthToStyle:function(e,t,n){n=n||t;if(!(n in e.styles)){var r=e.attributes[t];r&&(/^\d+$/.test(r)&&(r+="px"),e.styles[n]=r)}delete e.attributes[t]},lengthToAttribute:function(e,t,n){n=n||t;if(!(n in e.attributes)){var r=e.styles[t],i=r&&r.match(/^(\d+)(?:\.\d*)?px$/);i?e.attributes[n]=i[1]:r==O&&(e.attributes[n]=O)}delete e.styles[t]},alignmentToStyle:function(e){if(!("float"in e.styles)){var t=e.attributes.align;if(t=="left"||t=="right")e.styles["float"]=t}delete e.attributes.align},alignmentToAttribute:function(e){if(!("align"in e.attributes)){var t=e.styles["float"];if(t=="left"||t=="right")e.attributes.align=t}delete e.styles["float"]},matchesStyle:S,transform:function(e,t){if(typeof t=="string")e.name=t;else{var n=t.getDefinition(),r=n.styles,i=n.attributes,s,o,u,a;e.name=n.element;for(s in i)if(s=="class"){n=e.classes.join("|");for(u=i[s].split(/\s+/);a=u.pop();)n.indexOf(a)==-1&&e.classes.push(a)}else e.attributes[s]=i[s];for(o in r)e.styles[o]=r[o]}}}}(),function(){CKEDITOR.focusManager=function(e){return e.focusManager?e.focusManager:(this.hasFocus=!1,this.currentActive=null,this._={editor:e},this)},CKEDITOR.focusManager._={blurDelay:200},CKEDITOR.focusManager.prototype={focus:function(e){this._.timer&&clearTimeout(this._.timer),e&&(this.currentActive=e),!this.hasFocus&&!this._.locked&&((e=CKEDITOR.currentInstance)&&e.focusManager.blur(1),this.hasFocus=!0,(e=this._.editor.container)&&e.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(e){function t(){if(this.hasFocus){this.hasFocus=!1;var e=this._.editor.container;e&&e.removeClass("cke_focus"),this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var n=CKEDITOR.focusManager._.blurDelay;e||!n?t.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer,t.call(this)},n,this)}},add:function(e,t){var n=e.getCustomData("focusmanager");if(!n||n!=this){n&&n.remove(e);var n="focus",r="blur";t&&(CKEDITOR.env.ie?(n="focusin",r="focusout"):CKEDITOR.event.useCapture=1);var i={blur:function(){e.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(e)}};e.on(n,i.focus,this),e.on(r,i.blur,this),t&&(CKEDITOR.event.useCapture=0),e.setCustomData("focusmanager",this),e.setCustomData("focusmanager_handlers",i)}},remove:function(e){e.removeCustomData("focusmanager");var t=e.removeCustomData("focusmanager_handlers");e.removeListener("blur",t.blur),e.removeListener("focus",t.focus)}}}(),CKEDITOR.keystrokeHandler=function(e){return e.keystrokeHandler?e.keystrokeHandler:(this.keystrokes={},this.blockedKeystrokes={},this._={editor:e},this)},function(){var e,t=function(t){var t=t.data,n=t.getKeystroke(),r=this.keystrokes[n],i=this._.editor;return e=i.fire("key",{keyCode:n,domEvent:t})===!1,e||(r&&(e=i.execCommand(r,{from:"keystrokeHandler"})!==!1),e||(e=!!this.blockedKeystrokes[n])),e&&t.preventDefault(!0),!e},n=function(t){e&&(e=!1,t.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(e){e.on("keydown",t,this),CKEDITOR.env.gecko&&CKEDITOR.env.mac&&e.on("keypress",n,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(e,t,n){if(!e||!CKEDITOR.lang.languages[e])e=this.detect(t,e);var r=this,t=function(){r[e].dir=r.rtl[e]?"rtl":"ltr",n(e,r[e])};this[e]?t():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+e+".js"),t,this)},detect:function(e,t){var n=this.languages,t=t||navigator.userLanguage||navigator.language||e,r=t.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),i=r[1],r=r[2];return n[i+"-"+r]?i=i+"-"+r:n[i]||(i=null),CKEDITOR.lang.detect=i?function(){return i}:function(e){return e},i||e}}}(),CKEDITOR.scriptLoader=function(){var e={},t={};return{load:function(n,r,i,s){var o=typeof n=="string";o&&(n=[n]),i||(i=CKEDITOR);var u=n.length,f=[],l=[],c=function(e){r&&(o?r.call(i,e):r.call(i,f,l))};if(u===0)c(!0);else{var h=function(e,t){(t?f:l).push(e),--u<=0&&(s&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),c(t))},p=function(n,r){e[n]=1;var i=t[n];delete t[n];for(var s=0;s1)){var s=new CKEDITOR.dom.element("script");s.setAttributes({type:"text/javascript",src:n}),r&&(CKEDITOR.env.ie&&CKEDITOR.env.version<11?s.$.onreadystatechange=function(){if(s.$.readyState=="loaded"||s.$.readyState=="complete")s.$.onreadystatechange=null,p(n,!0)}:(s.$.onload=function(){setTimeout(function(){p(n,!0)},0)},s.$.onerror=function(){p(n,!1)})),s.appendTo(CKEDITOR.document.getHead())}}};s&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var v=0;v=0?l=e.langCode:(l=e.langCode.replace(/-.*/,""),l=l!=e.langCode&&CKEDITOR.tools.indexOf(f,l)>=0?l:CKEDITOR.tools.indexOf(f,"en")>=0?"en":f[0]),!a.langEntries||!a.langEntries[l]?s.push(CKEDITOR.getUrl(a.path+"lang/"+l+".js")):(e.lang[u]=a.langEntries[l],l=null)),i.push(l),r.push(a)}CKEDITOR.scriptLoader.load(s,function(){for(var n=["beforeInit","init","afterInit"],s=0;s]+)>)|(?:!--([\S|\s]*?)--\>)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var e=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,t={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){for(var r,i,s=0,o;r=this._.htmlPartsRegex.exec(n);){i=r.index,i>s&&(s=n.substring(s,i),o?o.push(s):this.onText(s)),s=this._.htmlPartsRegex.lastIndex;if(i=r[1]){i=i.toLowerCase(),o&&CKEDITOR.dtd.$cdata[i]&&(this.onCDATA(o.join("")),o=null);if(!o){this.onTagClose(i);continue}}if(o)o.push(r[0]);else if(i=r[3]){i=i.toLowerCase();if(!/="/.test(i)){var u={},f,l=r[4];r=!!r[5];if(l)for(;f=e.exec(l);){var c=f[1].toLowerCase();f=f[2]||f[3]||f[4]||"",u[c]=!f&&t[c]?c:CKEDITOR.tools.htmlDecodeAttr(f)}this.onTagOpen(i,u,r),!o&&CKEDITOR.dtd.$cdata[i]&&(o=[])}}else(i=r[2])&&this.onComment(i)}n.length>s&&this.onText(n.substring(s,n.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(e){this._.output.push("<",e)},openTagClose:function(e,t){t?this._.output.push(" />"):this._.output.push(">")},attribute:function(e,t){typeof t=="string"&&(t=CKEDITOR.tools.htmlEncodeAttr(t)),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){this._.output.push("")},text:function(e){this._.output.push(e)},comment:function(e){this._.output.push("")},write:function(e){this._.output.push(e)},reset:function(){this._.output=[],this._.indent=!1},getHtml:function(e){var t=this._.output.join("");return e&&this.reset(),t}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){},CKEDITOR.htmlParser.node.prototype={remove:function(){var e=this.parent.children,t=CKEDITOR.tools.indexOf(e,this),n=this.previous,r=this.next;n&&(n.next=r),r&&(r.previous=n),e.splice(t,1),this.parent=null},replaceWith:function(e){var t=this.parent.children,n=CKEDITOR.tools.indexOf(t,this),r=e.previous=this.previous,i=e.next=this.next;r&&(r.next=e),i&&(i.previous=e),t[n]=e,e.parent=this.parent,this.parent=null},insertAfter:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e),r=e.next;t.splice(n+1,0,this),this.next=e.next,this.previous=e,e.next=this,r&&(r.previous=this),this.parent=e.parent},insertBefore:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e);t.splice(n,0,this),this.next=e,(this.previous=e.previous)&&(e.previous.next=this),e.previous=this,this.parent=e.parent},getAscendant:function(e){var t=typeof e=="function"?e:typeof e=="string"?function(t){return t.name==e}:function(t){return t.name in e},n=this.parent;for(;n&&n.type==CKEDITOR.NODE_ELEMENT;){if(t(n))return n;n=n.parent}return null},wrapWith:function(e){return this.replaceWith(e),e.add(this),e},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(e){return e||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(e,t){var n=this.value;return(n=e.onComment(t,n,this))?typeof n!="string"?(this.replaceWith(n),!1):(this.value=n,!0):(this.remove(),!1)},writeHtml:function(e,t){t&&this.filter(t),e.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(e,t){if(!(this.value=e.onText(t,this.value,this)))return this.remove(),!1},writeHtml:function(e,t){t&&this.filter(t),e.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(e){this.value=e},CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(e){e.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[],this.parent=null,this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function e(e){return e.attributes["data-cke-survive"]?!1:e.name=="a"&&e.attributes.href||CKEDITOR.dtd.$removeEmpty[e.name]}var t=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),n={ol:1,ul:1},r=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),i={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(s,o,u){function f(e){var t;if(w.length>0)for(var n=0;n=0;t--)if(e==w[t].name){w.splice(t,1);return}for(var n=[],r=[],i=S;i!=y&&i.name!=e;)i._.isBlockLike||r.unshift(i),n.push(i),i=i.returnPoint||i.parent;if(i!=y){for(t=0;t0?this.children[t-1]:null;if(n){if(e._.isBlockLike&&n.type==CKEDITOR.NODE_TEXT){n.value=CKEDITOR.tools.rtrim(n.value);if(n.value.length===0){this.children.pop(),this.add(e);return}}n.next=e}e.previous=n,e.parent=this,this.children.splice(t,0,e),this._.hasInlineStarted||(this._.hasInlineStarted=e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&!e._.isBlockLike)},filter:function(e,t){t=this.getFilterContext(t),e.onRoot(t,this),this.filterChildren(e,!1,t)},filterChildren:function(e,t,n){if(this.childrenFilteredBy!=e.id){n=this.getFilterContext(n),t&&!this.parent&&e.onRoot(n,this),this.childrenFilteredBy=e.id;for(t=0;t=0&&e7||i.name in CKEDITOR.dtd.tr||i.name in CKEDITOR.dtd.$listItem)?o=!1:(o=n(i),o=!o||i.name=="form"&&o.name=="input");o&&i.add(u(e))}}}function f(e,t){if((!c||CKEDITOR.env.needsBrFiller)&&e.type==CKEDITOR.NODE_ELEMENT&&e.name=="br"&&!e.attributes["data-cke-eol"])return!0;var n;if(e.type==CKEDITOR.NODE_TEXT&&(n=e.value.match(m))){n.index&&((new CKEDITOR.htmlParser.text(e.value.substring(0,n.index))).insertBefore(e),e.value=n[0]);if(!CKEDITOR.env.needsBrFiller&&c&&(!t||e.parent.name in h))return!0;if(!c)if((n=e.previous)&&n.name=="br"||!n||s(n))return!0}return!1}var l={elements:{}},c=t=="html",h=CKEDITOR.tools.extend({},w),p;for(p in h)"#"in y[p]||delete h[p];for(p in h)l.elements[p]=a(c,e.config.fillEmptyBlocks);return l.root=a(c,!1),l.elements.br=function(e){return function(t){if(t.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var n=t.attributes;if("data-cke-bogus"in n||"data-cke-eol"in n)delete n["data-cke-bogus"];else{for(n=t.next;n&&i(n);)n=n.next;var a=r(t);!n&&s(t.parent)?o(t.parent,u(e)):s(n)&&a&&!s(a)&&u(e).insertBefore(n)}}}}(c),l}function t(e,t){return e!=CKEDITOR.ENTER_BR&&t!==!1?e==CKEDITOR.ENTER_DIV?"div":"p":!1}function n(e){for(e=e.children[e.children.length-1];e&&i(e);)e=e.previous;return e}function r(e){for(e=e.previous;e&&i(e);)e=e.previous;return e}function i(e){return e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(e.value)||e.type==CKEDITOR.NODE_ELEMENT&&e.attributes["data-cke-bookmark"]}function s(e){return e&&(e.type==CKEDITOR.NODE_ELEMENT&&e.name in w||e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function o(e,t){var n=e.children[e.children.length-1];e.children.push(t),t.parent=e,n&&(n.next=t,t.previous=n)}function u(e){e=e.attributes,e.contenteditable!="false"&&(e["data-cke-editable"]=e.contenteditable?"true":1),e.contenteditable="false"}function a(e){e=e.attributes;switch(e["data-cke-editable"]){case"true":e.contenteditable="true";break;case"1":delete e.contenteditable}}function f(e){return e.replace(N,function(e,t,n){return"<"+t+n.replace(C,function(e,t){return k.test(t)&&n.indexOf("data-cke-saved-"+t)==-1?" data-cke-saved-"+e+" data-cke-"+CKEDITOR.rnd+"-"+e:e})+">"})}function l(e,t){return e.replace(t,function(e,t,n){return e.indexOf("/g,">")+""),""+encodeURIComponent(e)+""})}function c(e){return e.replace(O,function(e,t){return decodeURIComponent(t)})}function h(e){return e.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(e){return""})}function p(e){return e.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(e,t){return decodeURIComponent(t)})}function d(e,t){var n=t._.dataStore;return e.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(e,t){return decodeURIComponent(t)}).replace(/\{cke_protected_(\d+)\}/g,function(e,t){return n&&n[t]||""})}function v(e,t){for(var n=[],r=t.config.protectedSource,i=t._.dataStore||(t._.dataStore={id:1}),s=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,r=[//gi,//gi,//gi].concat(r),e=e.replace(/<\!--[\s\S]*?--\>/g,function(e){return""}),o=0;o"});return e=e.replace(s,function(e,t,r){return""}),e=e.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=>]+))+\s*>/g,function(e){return e.replace(/<\!--\{cke_protected\}([^>]*)--\>/g,function(e,t){return i[i.id]=decodeURIComponent(t),"{cke_protected_"+i.id++ +"}"})}),e=e.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(e,n,r,i){return"<"+n+r+">"+d(p(i),t)+""})}CKEDITOR.htmlDataProcessor=function(n){var r,i,s=this;this.editor=n,this.dataFilter=r=new CKEDITOR.htmlParser.filter,this.htmlFilter=i=new CKEDITOR.htmlParser.filter,this.writer=new CKEDITOR.htmlParser.basicWriter,r.addRules(E),r.addRules(S,{applyToAll:!0}),r.addRules(e(n,"data"),{applyToAll:!0}),i.addRules(x),i.addRules(T,{applyToAll:!0}),i.addRules(e(n,"html"),{applyToAll:!0}),n.on("toHtml",function(e){var e=e.data,r=e.dataValue,i,r=v(r,n),r=l(r,A),r=f(r),r=l(r,L),r=r.replace(M,"$1cke:$2"),r=r.replace(D,""),r=r.replace(/(]*>)(\r\n|\n)/g,"$1$2$2"),r=r.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");i=e.context||n.editable().getName();var s;CKEDITOR.env.ie&&CKEDITOR.env.version<9&&i=="pre"&&(i="div",r="
"+r+"
",s=1),i=n.document.createElement(i),i.setHtml("a"+r),r=i.getHtml().substr(1),r=r.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),""),s&&(r=r.replace(/^
|<\/pre>$/gi,"")),r=r.replace(_,"$1$2"),r=c(r),r=p(r),i=e.fixForBody===!1?!1:t(e.enterMode,n.config.autoParagraph),r=CKEDITOR.htmlParser.fragment.fromHtml(r,e.context,i),i&&(s=r,!s.children.length&&CKEDITOR.dtd[s.name][i]&&(i=new CKEDITOR.htmlParser.element(i),s.add(i))),e.dataValue=r},null,null,5),n.on("toHtml",function(e){e.data.filter.applyTo(e.data.dataValue,!0,e.data.dontFilter,e.data.enterMode)&&n.fire("dataFiltered")},null,null,6),n.on("toHtml",function(e){e.data.dataValue.filterChildren(s.dataFilter,!0)},null,null,10),n.on("toHtml",function(e){var e=e.data,t=e.dataValue,n=new CKEDITOR.htmlParser.basicWriter;t.writeChildrenHtml(n),t=n.getHtml(!0),e.dataValue=h(t)},null,null,15),n.on("toDataFormat",function(e){var r=e.data.dataValue;e.data.enterMode!=CKEDITOR.ENTER_BR&&(r=r.replace(/^
/i,"")),e.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(r,e.data.context,t(e.data.enterMode,n.config.autoParagraph))},null,null,5),n.on("toDataFormat",function(e){e.data.dataValue.filterChildren(s.htmlFilter,!0)},null,null,10),n.on("toDataFormat",function(e){e.data.filter.applyTo(e.data.dataValue,!1,!0)},null,null,11),n.on("toDataFormat",function(e){var t=e.data.dataValue,r=s.writer;r.reset(),t.writeChildrenHtml(r),t=r.getHtml(!0),t=p(t),t=d(t,n),e.data.dataValue=t},null,null,15)},CKEDITOR.htmlDataProcessor.prototype={toHtml:function(e,t,n,r){var i=this.editor,s,o,u;return t&&typeof t=="object"?(s=t.context,n=t.fixForBody,r=t.dontFilter,o=t.filter,u=t.enterMode):s=t,!s&&s!==null&&(s=i.editable().getName()),i.fire("toHtml",{dataValue:e,context:s,fixForBody:n,dontFilter:r,filter:o||i.filter,enterMode:u||i.enterMode}).dataValue},toDataFormat:function(e,t){var n,r,i;return t&&(n=t.context,r=t.filter,i=t.enterMode),!n&&n!==null&&(n=this.editor.editable().getName()),this.editor.fire("toDataFormat",{dataValue:e,filter:r||this.editor.filter,context:n,enterMode:i||this.editor.enterMode}).dataValue}};var m=/(?: |\xa0)$/,g="{cke_protected}",y=CKEDITOR.dtd,b=["caption","colgroup","col","thead","tfoot","tbody"],w=CKEDITOR.tools.extend({},y.$blockLimit,y.$block),E={elements:{input:u,textarea:u}},S={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},x={elements:{embed:function(e){var t=e.parent;if(t&&t.name=="object"){var n=t.attributes.width,t=t.attributes.height;n&&(e.attributes.width=n),t&&(e.attributes.height=t)}},a:function(e){if(!e.children.length&&!e.attributes.name&&!e.attributes["data-cke-saved-name"])return!1}}},T={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(e){var t=e.attributes;if(t){if(t["data-cke-temp"])return!1;for(var n=["name","href","src"],r,i=0;i-1&&r>-1&&n!=r||(n=e.parent?e.getIndex():-1,r=t.parent?t.getIndex():-1),n>r?1:-1})},param:function(e){return e.children=[],e.isEmpty=!0,e},span:function(e){e.attributes["class"]=="Apple-style-span"&&delete e.name},html:function(e){delete e.attributes.contenteditable,delete e.attributes["class"]},body:function(e){delete e.attributes.spellcheck,delete e.attributes.contenteditable},style:function(e){var t=e.children[0];t&&t.value&&(t.value=CKEDITOR.tools.trim(t.value)),e.attributes.type||(e.attributes.type="text/css")},title:function(e){var t=e.children[0];!t&&o(e,t=new CKEDITOR.htmlParser.text),t.value=e.attributes["data-cke-title"]||""},input:a,textarea:a},attributes:{"class":function(e){return CKEDITOR.tools.ltrim(e.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(T.attributes.style=function(e){return e.replace(/(^|;)([^\:]+)/g,function(e){return e.toLowerCase()})});var N=/<(a|area|img|input|source)\b([^>]*)>/gi,C=/([\w-]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,k=/^(href|src|name)$/i,L=/(?:])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,A=/(])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,O=/([^<]*)<\/cke:encoded>/gi,M=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,_=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,D=/]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(e,t){this.name=e,this.attributes=t||{},this.children=[];var n=e||"",r=n.match(/^cke:(.*)/);r&&(n=r[1]),n=!(!CKEDITOR.dtd.$nonBodyContent[n]&&!CKEDITOR.dtd.$block[n]&&!CKEDITOR.dtd.$listItem[n]&&!CKEDITOR.dtd.$tableContent[n]&&!CKEDITOR.dtd.$nonEditable[n]&&n!="br"),this.isEmpty=!!CKEDITOR.dtd.$empty[e],this.isUnknown=!CKEDITOR.dtd[e],this._={isBlockLike:n,hasInlineStarted:this.isEmpty||!n}},CKEDITOR.htmlParser.cssStyle=function(e){var t={};return((e instanceof CKEDITOR.htmlParser.element?e.attributes.style:e)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,n,r){n=="font-family"&&(r=r.replace(/["']/g,"")),t[n.toLowerCase()]=r}),{rules:t,populate:function(e){var t=this.toString();t&&(e instanceof CKEDITOR.dom.element?e.setAttribute("style",t):e instanceof CKEDITOR.htmlParser.element?e.attributes.style=t:e.style=t)},toString:function(){var e=[],n;for(n in t)t[n]&&e.push(n,":",t[n],";");return e.join("")}}},function(){function e(e){return function(t){return t.type==CKEDITOR.NODE_ELEMENT&&(typeof e=="string"?t.name==e:t.name in e)}}var t=function(e,t){return e=e[0],t=t[0],et?1:0},n=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:n.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(e,t){var n=this,r,i,t=n.getFilterContext(t);if(t.off)return!0;n.parent||e.onRoot(t,n);for(;;){r=n.name;if(!(i=e.onElementName(t,r)))return this.remove(),!1;n.name=i;if(!(n=e.onElement(t,n)))return this.remove(),!1;if(n!==this)return this.replaceWith(n),!1;if(n.name==r)break;if(n.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(n),!1;if(!n.name)return this.replaceWithChildren(),!1}r=n.attributes;var s,o;for(s in r){o=s;for(i=r[s];;){if(!(o=e.onAttributeName(t,s))){delete r[s];break}if(o==s)break;delete r[s],s=o}o&&((i=e.onAttribute(t,n,o,i))===!1?delete r[o]:r[o]=i)}return n.isEmpty||this.filterChildren(e,!1,t),!0},filterChildren:n.filterChildren,writeHtml:function(e,n){n&&this.filter(n);var r=this.name,i=[],s=this.attributes,o,u;e.openTag(r,s);for(o in s)i.push([o,s[o]]);e.sortAttributes&&i.sort(t),o=0;for(u=i.length;o0&&(this.children[e-1].next=null),this.parent.add(n,this.getIndex()+1),n},addClass:function(e){if(!this.hasClass(e)){var t=this.attributes["class"]||"";this.attributes["class"]=t+(t?" ":"")+e}},removeClass:function(e){var t=this.attributes["class"];t&&((t=CKEDITOR.tools.trim(t.replace(RegExp("(?:\\s+|^)"+e+"(?:\\s+|$)")," ")))?this.attributes["class"]=t:delete this.attributes["class"])},hasClass:function(e){var t=this.attributes["class"];return t?RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t):!1},getFilterContext:function(e){var t=[];e||(e={off:!1,nonEditable:!1,nestedEditable:!1}),!e.off&&this.attributes["data-cke-processor"]=="off"&&t.push("off",!0),!e.nonEditable&&this.attributes.contenteditable=="false"?t.push("nonEditable",!0):e.nonEditable&&!e.nestedEditable&&this.attributes.contenteditable=="true"&&t.push("nestedEditable",!0);if(t.length)for(var e=CKEDITOR.tools.copy(e),n=0;n'+r.getValue()+"",CKEDITOR.document),e.insertAfter(r),r.hide(),r.$.form&&n._attachToForm()):n.setData(e.getHtml(),null,!0),n.on("loaded",function(){n.fire("uiReady"),n.editable(e),n.container=e,n.setData(n.getData(1)),n.resetDirty(),n.fire("contentDom"),n.mode="wysiwyg",n.fire("mode"),n.status="ready",n.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,n)},null,null,1e4),n.on("destroy",function(){r&&(n.container.clearCustomData(),n.container.remove(),r.show()),n.element.clearCustomData(),delete n.element}),n},CKEDITOR.inlineAll=function(){var e,t,n;for(n in CKEDITOR.dtd.$editable)for(var r=CKEDITOR.document.getElementsByTag(n),i=0,s=r.count();i"+(e.title?'{voiceLabel}':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation">{bottomHtml}'),t=CKEDITOR.dom.element.createFromHtml(o.output({id:e.id,name:t,langDir:e.lang.dir,langCode:e.langCode,voiceLabel:e.title,topHtml:i?''+i+"":"",contentId:e.ui.spaceId("contents"),bottomHtml:s?''+s+"":"",outerEl:CKEDITOR.env.ie?"span":"div"}));r==CKEDITOR.ELEMENT_MODE_REPLACE?(n.hide(),t.insertAfter(n)):n.append(t),e.container=t,i&&e.ui.space("top").unselectable(),s&&e.ui.space("bottom").unselectable(),n=e.config.width,r=e.config.height,n&&t.setStyle("width",CKEDITOR.tools.cssLength(n)),r&&e.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(r)),t.disableContextMenu(),CKEDITOR.env.webkit&&t.on("focus",function(){e.focus()}),e.fireOnce("uiReady")}CKEDITOR.replace=function(t,n){return e(t,n,null,CKEDITOR.ELEMENT_MODE_REPLACE)},CKEDITOR.appendTo=function(t,n,r){return e(t,n,r,CKEDITOR.ELEMENT_MODE_APPENDTO)},CKEDITOR.replaceAll=function(){for(var e=document.getElementsByTagName("textarea"),t=0;t",o="",e=s+e.replace(i,function(){return o+s})+o}e=e.replace(/\n/g,"
"),t||(e=e.replace(RegExp("
(?=)"),function(e){return r.repeat(e,2)})),e=e.replace(/^ | $/g," "),e=e.replace(/(>|\s) /g,function(e,t){return t+" "}).replace(/ (?=<)/g," "),d(this,"text",e)},insertElement:function(e,t){t?this.insertElementIntoRange(e,t):this.insertElementIntoSelection(e)},insertElementIntoRange:function(e,t){var n=this.editor,r=n.config.enterMode,i=e.getName(),s=CKEDITOR.dtd.$block[i];if(t.checkReadOnly())return!1;t.deleteContents(1),t.startContainer.type==CKEDITOR.NODE_ELEMENT&&t.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&v(t);var o,u;if(s)for(;(o=t.getCommonAncestor(0,1))&&(u=CKEDITOR.dtd[o.getName()])&&(!u||!u[i]);)o.getName()in CKEDITOR.dtd.span?t.splitElement(o):t.checkStartOfBlock()&&t.checkEndOfBlock()?(t.setStartBefore(o),t.collapse(!0),o.remove()):t.splitBlock(r==CKEDITOR.ENTER_DIV?"div":"p",n.editable());return t.insertNode(e),!0},insertElementIntoSelection:function(e){u(this);var t=this.editor,n=t.activeEnterMode,t=t.getSelection(),i=t.getRanges()[0],s=e.getName(),s=CKEDITOR.dtd.$block[s];this.insertElementIntoRange(e,i)&&(i.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),s&&((s=e.getNext(function(e){return r(e)&&!l(e)}))&&s.type==CKEDITOR.NODE_ELEMENT&&s.is(CKEDITOR.dtd.$block)?s.getDtd()["#"]?i.moveToElementEditStart(s):i.moveToElementEditEnd(e):!s&&n!=CKEDITOR.ENTER_BR&&(s=i.fixBlock(!0,n==CKEDITOR.ENTER_DIV?"div":"p"),i.moveToElementEditStart(s)))),t.selectRanges([i]),a(this)},setData:function(e,t){t||(e=this.editor.dataProcessor.toHtml(e)),this.setHtml(e),this.fixInitialSelection(),this.status=="unloaded"&&(this.status="ready"),this.editor.fire("dataReady")},getData:function(e){var t=this.getHtml();return e||(t=this.editor.dataProcessor.toDataFormat(t)),t},setReadOnly:function(e){this.setAttribute("contenteditable",!e)},detach:function(){this.removeClass("cke_editable"),this.status="detached";var e=this.editor;this._.detach(),delete e.document,delete e.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function e(){var e=n.getDocument().$,t=e.getSelection(),r;if(t.anchorNode&&t.anchorNode==n.$)r=!0;else if(CKEDITOR.env.webkit){var i=n.getDocument().getActive();i&&i.equals(n)&&!t.anchorNode&&(r=!0)}r&&(r=new CKEDITOR.dom.range(n),r.moveToElementEditStart(n),e=e.createRange(),e.setStart(r.startContainer.$,r.startOffset),e.collapse(!0),t.removeAllRanges(),t.addRange(e))}function t(){var e=n.getDocument().$,t=e.selection,r=n.getDocument().getActive();t.type=="None"&&r.equals(n)&&(t=new CKEDITOR.dom.range(n),e=e.body.createTextRange(),t.moveToElementEditStart(n),t=t.startContainer,t.type!=CKEDITOR.NODE_ELEMENT&&(t=t.getParent()),e.moveToElementText(t.$),e.collapse(!0),e.select())}var n=this;CKEDITOR.env.ie&&(CKEDITOR.env.version<9||CKEDITOR.env.quirks)?this.hasFocus&&(this.focus(),t()):this.hasFocus?(this.focus(),e()):this.once("focus",function(){e()},null,null,-999)},setup:function(){var e=this.editor;this.attachListener(e,"beforeGetData",function(){var t=this.getData();this.is("textarea")||e.config.ignoreEmptyParagraph!==!1&&(t=t.replace(c,function(e,t){return t})),e.setData(t,null,1)},this),this.attachListener(e,"getSnapshot",function(e){e.data=this.getData(1)},this),this.attachListener(e,"afterSetData",function(){this.setData(e.getData(1))},this),this.attachListener(e,"loadSnapshot",function(e){this.setData(e.data,1)},this),this.attachListener(e,"beforeFocus",function(){var t=e.getSelection();(t=t&&t.getNative())&&t.type=="Control"||this.focus()},this),this.attachListener(e,"insertHtml",function(e){this.insertHtml(e.data.dataValue,e.data.mode)},this),this.attachListener(e,"insertElement",function(e){this.insertElement(e.data)},this),this.attachListener(e,"insertText",function(e){this.insertText(e.data)},this),this.setReadOnly(e.readOnly),this.attachClass("cke_editable"),this.attachClass(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"cke_editable_inline":e.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||e.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO?"cke_editable_themed":""),this.attachClass("cke_contents_"+e.config.contentsLangDirection),e.keystrokeHandler.blockedKeystrokes[8]=+e.readOnly,e.keystrokeHandler.attach(this),this.on("blur",function(){this.hasFocus=!1},null,null,-1),this.on("focus",function(){this.hasFocus=!0},null,null,-1),e.focusManager.add(this),this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,e.once("contentDom",function(){e.focusManager.focus(this)},this)),this.isInline()&&this.changeAttr("tabindex",e.tabIndex);if(!this.is("textarea")){e.document=this.getDocument(),e.window=this.getWindow();var t=e.document;this.changeAttr("spellcheck",!e.config.disableNativeSpellChecker);var i=e.config.contentsLangDirection;this.getDirection(1)!=i&&this.changeAttr("dir",i);var o=CKEDITOR.getCss();o&&(i=t.getHead(),i.getCustomData("stylesheet")||(o=t.appendStyleText(o),o=new CKEDITOR.dom.element(o.ownerNode||o.owningElement),i.setCustomData("stylesheet",o),o.data("cke-temp",1))),i=t.getCustomData("stylesheet_ref")||0,t.setCustomData("stylesheet_ref",i+1),this.setCustomData("cke_includeReadonly",!e.config.disableReadonlyStyling),this.attachListener(this,"click",function(e){var e=e.data,t=(new CKEDITOR.dom.elementPath(e.getTarget(),this)).contains("a");t&&e.$.button!=2&&t.isReadOnly()&&e.preventDefault()});var u={8:1,46:1};this.attachListener(e,"key",function(t){if(e.readOnly)return!0;var n=t.data.domEvent.getKey(),r;if(n in u){var t=e.getSelection(),i,o=t.getRanges()[0],a=o.startPath(),f,l,c,n=n==8;CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(i=t.getSelectedElement())||(i=s(t))?(e.fire("saveSnapshot"),o.moveToPosition(i,CKEDITOR.POSITION_BEFORE_START),i.remove(),o.select(),e.fire("saveSnapshot"),r=1):o.collapsed&&((f=a.block)&&(c=f[n?"getPrevious":"getNext"](h))&&c.type==CKEDITOR.NODE_ELEMENT&&c.is("table")&&o[n?"checkStartOfBlock":"checkEndOfBlock"]()?(e.fire("saveSnapshot"),o[n?"checkEndOfBlock":"checkStartOfBlock"]()&&f.remove(),o["moveToElementEdit"+(n?"End":"Start")](c),o.select(),e.fire("saveSnapshot"),r=1):a.blockLimit&&a.blockLimit.is("td")&&(l=a.blockLimit.getAscendant("table"))&&o.checkBoundaryOfElement(l,n?CKEDITOR.START:CKEDITOR.END)&&(c=l[n?"getPrevious":"getNext"](h))?(e.fire("saveSnapshot"),o["moveToElementEdit"+(n?"End":"Start")](c),o.checkStartOfBlock()&&o.checkEndOfBlock()?c.remove():o.select(),e.fire("saveSnapshot"),r=1):(l=a.contains(["td","th","caption"]))&&o.checkBoundaryOfElement(l,n?CKEDITOR.START:CKEDITOR.END)&&(r=1))}return!r}),e.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(t){t.data.getKeystroke()in u&&!this.getFirst(r)&&(this.appendBogus(),t=e.createRange(),t.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),t.select())}),this.attachListener(this,"dblclick",function(t){if(e.readOnly)return!1;t={element:t.data.getTarget()},e.fire("doubleclick",t)}),CKEDITOR.env.ie&&this.attachListener(this,"click",n),CKEDITOR.env.ie||this.attachListener(this,"mousedown",function(t){var n=t.data.getTarget();n.is("img","hr","input","textarea","select")&&!n.isReadOnly()&&(e.getSelection().selectElement(n),n.is("input","textarea","select")&&t.data.preventDefault())}),CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(t){if(t.data.$.button==2){t=t.data.getTarget();if(!t.getOuterHtml().replace(c,"")){var n=e.createRange();n.moveToElementEditStart(t),n.select(!0)}}}),CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(e){e.data.getTarget().is("input","select")&&e.data.preventDefault()}),this.attachListener(this,"mouseup",function(e){e.data.getTarget().is("input","textarea")&&e.data.preventDefault()})),CKEDITOR.env.webkit&&this.attachListener(e,"key",function(t){t=t.data.domEvent.getKey();if(t in u){var n=t==8,r=e.getSelection().getRanges()[0],t=r.startPath();if(r.collapsed){var i;e:{var s=t.block;if(s)if(r[n?"checkStartOfBlock":"checkEndOfBlock"]())if(!r.moveToClosestEditablePosition(s,!n)||!r.collapsed)i=!1;else{if(r.startContainer.type==CKEDITOR.NODE_ELEMENT){var o=r.startContainer.getChild(r.startOffset-(n?1:0));if(o&&o.type==CKEDITOR.NODE_ELEMENT&&o.is("hr")){e.fire("saveSnapshot"),o.remove(),i=!0;break e}}if((r=r.startPath().block)&&(!r||!r.contains(s))){e.fire("saveSnapshot");var a;(a=(n?r:s).getBogus())&&a.remove(),i=e.getSelection(),a=i.createBookmarks(),(n?s:r).moveChildren(n?r:s,!1),t.lastElement.mergeSiblings(),f(s,r,!n),i.selectBookmarks(a),i=!0}}else i=!1;else i=!1}if(!i)return}else{n=r,i=t.block,a=n.endPath().block,!i||!a||i.equals(a)?t=!1:(e.fire("saveSnapshot"),(s=i.getBogus())&&s.remove(),n.deleteContents(),a.getParent()&&(a.moveChildren(i,!1),t.lastElement.mergeSiblings(),f(i,a,!0)),n=e.getSelection().getRanges()[0],n.collapse(1),n.select(),t=!0);if(!t)return}return e.getSelection().scrollIntoView(),e.fire("saveSnapshot"),!1}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1),this.clearListeners(),this.restoreAttrs();var e;if(e=this.removeCustomData("classes"))for(;e.length;)this.removeClass(e.pop());if(!this.is("textarea")){e=this.getDocument();var t=e.getHead();if(t.getCustomData("stylesheet")){var n=e.getCustomData("stylesheet_ref");--n?e.setCustomData("stylesheet_ref",n):(e.removeCustomData("stylesheet_ref"),t.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload"),delete this.editor}}}),CKEDITOR.editor.prototype.editable=function(e){var t=this._.editable;return t&&e?0:(arguments.length&&(t=this._.editable=e?e instanceof CKEDITOR.editable?e:new CKEDITOR.editable(this,e):(t&&t.detach(),null)),t)};var l=CKEDITOR.dom.walker.bogus(),c=/(^|]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,h=CKEDITOR.dom.walker.whitespaces(!0),p=CKEDITOR.dom.walker.bookmark(!1,!0);CKEDITOR.on("instanceLoaded",function(t){var n=t.editor;n.on("insertElement",function(e){e=e.data,e.type==CKEDITOR.NODE_ELEMENT&&(e.is("input")||e.is("textarea"))&&(e.getAttribute("contentEditable")!="false"&&e.data("cke-editable",e.hasAttribute("contenteditable")?"true":"1"),e.setAttribute("contentEditable",!1))}),n.on("selectionChange",function(t){if(!n.readOnly){var r=n.getSelection();r&&!r.isLocked&&(r=n.checkDirty(),n.fire("lockSnapshot"),e(t),n.fire("unlockSnapshot"),!r&&n.resetDirty())}})}),CKEDITOR.on("instanceCreated",function(e){var t=e.editor;t.on("mode",function(){var e=t.editable();if(e&&e.isInline()){var n=t.title;e.changeAttr("role","textbox"),e.changeAttr("aria-label",n),n&&e.changeAttr("title",n);var r=t.fire("ariaEditorHelpLabel",{}).label;if(r)if(n=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents")){var i=CKEDITOR.tools.getNextId(),r=CKEDITOR.dom.element.createFromHtml(''+r+"");n.append(r),e.changeAttr("aria-describedby",i)}}})}),CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var d=function(){function e(e){return e.type==CKEDITOR.NODE_ELEMENT}function t(n,r){var i,s,o,u,a=[],l=r.range.startContainer;i=r.range.startPath();for(var l=f[l.getName()],c=0,h=n.getChildren(),p=h.count(),d=-1,v=-1,m=0,g=i.contains(f.$list);c-1&&(a[d].firstNotAllowed=1),v>-1&&(a[v].lastNotAllowed=1),a}function n(t,r){var i=[],s=t.getChildren(),o=s.count(),u,a=0,l=f[r],c=!t.is(f.$inline)||t.is("br");for(c&&i.push(" ");a ",v.document),v.insertNode(S),v.setStartAfter(S)),x=new CKEDITOR.dom.elementPath(v.startContainer),p.endPath=T=new CKEDITOR.dom.elementPath(v.endContainer);if(!v.collapsed){var E=T.block||T.blockLimit,C=v.getCommonAncestor();E&&!E.equals(C)&&!E.contains(C)&&v.checkEndOfBlock()&&p.zombies.push(E),v.deleteContents()}for(;(N=e(v.startContainer)&&v.startContainer.getChild(v.startOffset-1))&&e(N)&&N.isBlockBoundary()&&x.contains(N);)v.moveToPosition(N,CKEDITOR.POSITION_BEFORE_END);s(v,p.blockLimit,x,T),S&&(v.setEndBefore(S),v.collapse(),S.remove()),S=v.startPath();if(E=S.contains(i,!1,1))v.splitElement(E),p.inlineStylesRoot=E,p.inlineStylesPeak=S.lastElement;S=v.createBookmark(),(E=S.startNode.getPrevious(r))&&e(E)&&i(E)&&w.push(E),(E=S.startNode.getNext(r))&&e(E)&&i(E)&&w.push(E);for(E=S.startNode;(E=E.getParent())&&i(E);)w.push(E);v.moveToBookmark(S);if(S=d){S=p.range;if(p.type=="text"&&p.inlineStylesRoot){N=p.inlineStylesPeak,v=N.getDocument().createText("{cke-peak}");for(w=p.inlineStylesRoot.getParent();!N.equals(w);)v=v.appendTo(N.clone()),N=N.getParent();d=v.getOuterHtml().split("{cke-peak}").join(d)}N=p.blockLimit.getName();if(/^\s+|\s+$/.test(d)&&"span"in CKEDITOR.dtd[N])var k=' ',d=k+d+k;d=p.editor.dataProcessor.toHtml(d,{context:null,fixForBody:!1,dontFilter:p.dontFilter,filter:p.editor.activeFilter,enterMode:p.editor.activeEnterMode}),N=S.document.createElement("body"),N.setHtml(d),k&&(N.getFirst().remove(),N.getLast().remove());if((k=S.startPath().block)&&(k.getChildCount()!=1||!k.getBogus()))e:{var L;if(N.getChildCount()==1&&e(L=N.getFirst())&&L.is(c)){k=L.getElementsByTag("*"),S=0;for(w=k.count();S0;else{A=L.startPath(),!T.isBlock&&o(p.editor,A.block,A.blockLimit)&&(_=p.editor.activeEnterMode!=CKEDITOR.ENTER_BR&&p.editor.config.autoParagraph!==!1?p.editor.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":!1)&&(_=k.createElement(_),_.appendBogus(),L.insertNode(_),CKEDITOR.env.needsBrFiller&&(O=_.getBogus())&&O.remove(),L.moveToPosition(_,CKEDITOR.POSITION_BEFORE_END));if((A=L.startPath().block)&&!A.equals(M)){if(O=A.getBogus())O.remove(),N.push(A);M=A}T.firstNotAllowed&&(v=1);if(v&&T.isElement){A=L.startContainer;for(D=null;A&&!f[A.getName()][T.name];){if(A.equals(d)){A=null;break}D=A,A=A.getParent()}if(A)D&&(P=L.splitElement(D),p.zombies.push(P),p.zombies.push(D));else{D=d.getName(),H=!S,A=S==x.length-1,D=n(T.node,D);for(var B=[],F=D.length,I=0,q=void 0,R=0,U=-1;I0;)n=e.getItem(t),CKEDITOR.tools.trim(n.getHtml())||(n.appendBogus(),CKEDITOR.env.ie&&CKEDITOR.env.version<9&&n.getChildCount()&&n.getFirst().remove())}return function(r){var i=r.startContainer,s=i.getAscendant("table",1),o=!1;n(s.getElementsByTag("td")),n(s.getElementsByTag("th")),s=r.clone(),s.setStart(i,0),s=e(s).lastBackward(),s||(s=r.clone(),s.setEndAt(i,CKEDITOR.POSITION_BEFORE_END),s=e(s).lastForward(),o=!0),s||(s=i),s.is("table")?(r.setStartAt(s,CKEDITOR.POSITION_BEFORE_START),r.collapse(!0),s.remove()):(s.is({tbody:1,thead:1,tfoot:1})&&(s=t(s,"tr",o)),s.is("tr")&&(s=t(s,s.getParent().is("thead")?"th":"td",o)),(i=s.getBogus())&&i.remove(),r.moveToPosition(s,o?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}()}(),function(){function e(){var e=this._.fakeSelection,t;if(e){t=this.getSelection(1);if(!t||!t.isHidden())e.reset(),e=0}if(!e){e=t||this.getSelection(1);if(!e||e.getType()==CKEDITOR.SELECTION_NONE)return}this.fire("selectionCheck",e),t=this.elementPath(),t.compare(this._.selectionPreviousPath)||(CKEDITOR.env.webkit&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=t,this.fire("selectionChange",{selection:e,path:t}))}function t(){d=!0,p||(n.call(this),p=CKEDITOR.tools.setTimeout(n,200,this))}function n(){p=null,d&&(CKEDITOR.tools.setTimeout(e,0,this),d=!1)}function r(e){return v(e)||e.type==CKEDITOR.NODE_ELEMENT&&!e.is(CKEDITOR.dtd.$empty)?!0:!1}function i(e){function t(t,n){return!t||t.type==CKEDITOR.NODE_TEXT?!1:e.clone()["moveToElementEdit"+(n?"End":"Start")](t)}if(e.root instanceof CKEDITOR.editable){var n=e.startContainer,i=e.getPreviousNode(r,null,n),s=e.getNextNode(r,null,n);return t(i)||t(s,1)||!i&&!s&&(n.type!=CKEDITOR.NODE_ELEMENT||!n.isBlockBoundary()||!n.getBogus())?!0:!1}return!1}function s(e){return e.getCustomData("cke-fillingChar")}function o(e,t){var n=e&&e.removeCustomData("cke-fillingChar");if(n){if(t!==!1){var r,i=e.getDocument().getSelection().getNative(),s=i&&i.type!="None"&&i.getRangeAt(0);n.getLength()>1&&s&&s.intersectsNode(n.$)&&(r=a(i),s=i.focusNode==n.$&&i.focusOffset>0,i.anchorNode==n.$&&i.anchorOffset>0&&r[0].offset--,s&&r[1].offset--)}n.setText(u(n.getText())),r&&f(e.getDocument().$,r)}}function u(e){return e.replace(/\u200B( )?/g,function(e){return e[1]?" ":""})}function a(e){return[{node:e.anchorNode,offset:e.anchorOffset},{node:e.focusNode,offset:e.focusOffset}]}function f(e,t){var n=e.getSelection(),r=e.createRange();r.setStart(t[0].node,t[0].offset),r.collapse(!0),n.removeAllRanges(),n.addRange(r),n.extend(t[1].node,t[1].offset)}function l(e){var t=CKEDITOR.dom.element.createFromHtml('
 
',e.document);e.fire("lockSnapshot"),e.editable().append(t);var n=e.getSelection(1),r=e.createRange(),i=n.root.on("selectionchange",function(e){e.cancel()},null,null,0);r.setStartAt(t,CKEDITOR.POSITION_AFTER_START),r.setEndAt(t,CKEDITOR.POSITION_BEFORE_END),n.selectRanges([r]),i.removeListener(),e.fire("unlockSnapshot"),e._.hiddenSelectionContainer=t}function c(e){var t={37:1,39:1,8:1,46:1};return function(n){var r=n.data.getKeystroke();if(t[r]){var i=e.getSelection().getRanges(),s=i[0];i.length==1&&s.collapsed&&(r=s[r<38?"getPreviousEditableNode":"getNextEditableNode"]())&&r.type==CKEDITOR.NODE_ELEMENT&&r.getAttribute("contenteditable")=="false"&&(e.getSelection().fake(r),n.data.preventDefault(),n.cancel())}}}function h(e){for(var t=0;t=r.getLength()?u.setStartAfter(r):u.setStartBefore(r)),i&&i.type==CKEDITOR.NODE_TEXT&&(o?u.setEndAfter(i):u.setEndBefore(i)),r=new CKEDITOR.dom.walker(u),r.evaluator=function(r){if(r.type==CKEDITOR.NODE_ELEMENT&&r.isReadOnly()){var i=n.clone();return n.setEndBefore(r),n.collapsed&&e.splice(t--,1),r.getPosition(u.endContainer)&CKEDITOR.POSITION_CONTAINS||(i.setStartAfter(r),i.collapsed||e.splice(t+1,0,i)),!0}return!1},r.next()}}return e}var p,d,v=CKEDITOR.dom.walker.invisible(1),m=function(){function e(e){return function(t){var n=t.editor.createRange();return n.moveToClosestEditablePosition(t.selected,e)&&t.editor.getSelection().selectRanges([n]),!1}}function t(e){return function(t){var n=t.editor,r=n.createRange(),i;return(i=r.moveToClosestEditablePosition(t.selected,e))||(i=r.moveToClosestEditablePosition(t.selected,!e)),i&&n.getSelection().selectRanges([r]),n.fire("saveSnapshot"),t.selected.remove(),i||(r.moveToElementEditablePosition(n.editable()),n.getSelection().selectRanges([r])),n.fire("saveSnapshot"),!1}}var n=e(),r=e(1);return{37:n,38:n,39:r,40:r,8:t(),46:t(1)}}();CKEDITOR.on("instanceCreated",function(n){function r(){var e=i.getSelection();e&&e.removeAllRanges()}var i=n.editor;i.on("contentDom",function(){function n(){d=new CKEDITOR.dom.selection(i.getSelection()),d.lock()}function r(){u.removeListener("mouseup",r),l.removeListener("mouseup",r);var e=CKEDITOR.document.$.selection,t=e.createRange();e.type!="None"&&t.parentElement().ownerDocument==s.$&&t.select()}var s=i.document,u=CKEDITOR.document,a=i.editable(),f=s.getBody(),l=s.getDocumentElement(),h=a.isInline(),p,d;CKEDITOR.env.gecko&&a.attachListener(a,"focus",function(e){e.removeListener(),p!==0&&(e=i.getSelection().getNative())&&e.isCollapsed&&e.anchorNode==a.$&&(e=i.createRange(),e.moveToElementEditStart(a),e.select())},null,null,-2),a.attachListener(a,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){p&&CKEDITOR.env.webkit&&(p=i._.previousActive&&i._.previousActive.equals(s.getActive())),i.unlockSelection(p),p=0},null,null,-1),a.attachListener(a,"mousedown",function(){p=0});if(CKEDITOR.env.ie||h)g?a.attachListener(a,"beforedeactivate",n,null,null,-1):a.attachListener(i,"selectionCheck",n,null,null,-1),a.attachListener(a,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){i.lockSelection(d),p=1},null,null,-1),a.attachListener(a,"mousedown",function(){p=0});if(CKEDITOR.env.ie&&!h){var v;a.attachListener(a,"mousedown",function(e){if(e.data.$.button==2){e=i.document.getSelection();if(!e||e.getType()==CKEDITOR.SELECTION_NONE)v=i.window.getScrollPosition()}}),a.attachListener(a,"mouseup",function(e){e.data.$.button==2&&v&&(i.document.$.documentElement.scrollLeft=v.x,i.document.$.documentElement.scrollTop=v.y),v=null}),s.$.compatMode!="BackCompat"&&((CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&l.on("mousedown",function(e){function t(e){e=e.data.$;if(r){var t=f.$.createTextRange();try{t.moveToPoint(e.clientX,e.clientY)}catch(n){}r.setEndPoint(s.compareEndPoints("StartToStart",t)<0?"EndToEnd":"StartToStart",t),r.select()}}function n(){l.removeListener("mousemove",t),u.removeListener("mouseup",n),l.removeListener("mouseup",n),r.select()}e=e.data;if(e.getTarget().is("html")&&e.$.y7&&CKEDITOR.env.version<11&&l.on("mousedown",function(e){e.data.getTarget().is("html")&&(u.on("mouseup",r),l.on("mouseup",r))}))}a.attachListener(a,"selectionchange",e,i),a.attachListener(a,"keyup",t,i),a.attachListener(a,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){i.forceNextSelectionCheck(),i.selectionChange(1)});if(h&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var m;a.attachListener(a,"mousedown",function(){m=1}),a.attachListener(s.getDocumentElement(),"mouseup",function(){m&&t.call(i),m=0})}else a.attachListener(CKEDITOR.env.ie?a:s.getDocumentElement(),"mouseup",t,i);CKEDITOR.env.webkit&&a.attachListener(s,"keydown",function(e){switch(e.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:o(a)}},null,null,-1),a.attachListener(a,"keydown",c(i),null,null,-1)}),i.on("setData",function(){i.unlockSelection(),CKEDITOR.env.webkit&&r()}),i.on("contentDomUnload",function(){i.unlockSelection()}),CKEDITOR.env.ie9Compat&&i.on("beforeDestroy",r,null,null,9),i.on("dataReady",function(){delete i._.fakeSelection,delete i._.hiddenSelectionContainer,i.selectionChange(1)}),i.on("loadSnapshot",function(){var e=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),t=i.editable().getLast(e);t&&t.hasAttribute("data-cke-hidden-sel")&&(t.remove(),CKEDITOR.env.gecko&&(e=i.editable().getFirst(e))&&e.is("br")&&e.getAttribute("_moz_editor_bogus_node")&&e.remove())},null,null,100),i.on("key",function(e){if(i.mode=="wysiwyg"){var t=i.getSelection();if(t.isFake){var n=m[e.data.keyCode];if(n)return n({editor:i,selected:t.getSelectedElement(),selection:t,keyEvent:e})}}})}),CKEDITOR.on("instanceReady",function(e){function t(){var e=r.editable();if(e)if(e=s(e)){var t=r.document.$.getSelection();t.type!="None"&&(t.anchorNode==e.$||t.focusNode==e.$)&&(l=a(t)),i=e.getText(),e.setText(u(i))}}function n(){var e=r.editable();e&&(e=s(e))&&(e.setText(i),l&&(f(r.document.$,l),l=null))}var r=e.editor,i,l;CKEDITOR.env.webkit&&(r.on("selectionChange",function(){var e=r.editable(),t=s(e);t&&(t.getCustomData("ready")?o(e):t.setCustomData("ready",1))},null,null,-1),r.on("beforeSetMode",function(){o(r.editable())},null,null,-1),r.on("beforeUndoImage",t),r.on("afterUndoImage",n),r.on("beforeGetData",t,null,null,0),r.on("getData",n))}),CKEDITOR.editor.prototype.selectionChange=function(n){(n?e:t).call(this)},CKEDITOR.editor.prototype.getSelection=function(e){return(this._.savedSelection||this._.fakeSelection)&&!e?this._.savedSelection||this._.fakeSelection:(e=this.editable())&&this.mode=="wysiwyg"?new CKEDITOR.dom.selection(e):null},CKEDITOR.editor.prototype.lockSelection=function(e){return e=e||this.getSelection(1),e.getType()!=CKEDITOR.SELECTION_NONE?(!e.isLocked&&e.lock(),this._.savedSelection=e,!0):!1},CKEDITOR.editor.prototype.unlockSelection=function(e){var t=this._.savedSelection;return t?(t.unlock(e),delete this._.savedSelection,!0):!1},CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath},CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)},CKEDITOR.dom.range.prototype.select=function(){var e=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);return e.selectRanges([this]),e},CKEDITOR.SELECTION_NONE=1,CKEDITOR.SELECTION_TEXT=2,CKEDITOR.SELECTION_ELEMENT=3;var g=typeof window.getSelection!="function",y=1;CKEDITOR.dom.selection=function(e){if(e instanceof CKEDITOR.dom.selection)var t=e,e=e.root;var n=e instanceof CKEDITOR.dom.element;this.rev=t?t.rev:y++,this.document=e instanceof CKEDITOR.dom.document?e:e.getDocument(),this.root=n?e:this.document.getBody(),this.isLocked=0,this._={cache:{}};if(t)return CKEDITOR.tools.extend(this._.cache,t._.cache),this.isFake=t.isFake,this.isLocked=t.isLocked,this;var e=this.getNative(),r,i;if(e)if(e.getRangeAt)r=(i=e.rangeCount&&e.getRangeAt(0))&&new CKEDITOR.dom.node(i.commonAncestorContainer);else{try{i=e.createRange()}catch(s){}r=i&&CKEDITOR.dom.element.get(i.item&&i.item(0)||i.parentElement())}if(!r||r.type!=CKEDITOR.NODE_ELEMENT&&r.type!=CKEDITOR.NODE_TEXT||!this.root.equals(r)&&!this.root.contains(r))this._.cache.type=CKEDITOR.SELECTION_NONE,this._.cache.startElement=null,this._.cache.selectedElement=null,this._.cache.selectedText="",this._.cache.ranges=new CKEDITOR.dom.rangeList;return this};var b={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.dom.selection.prototype={getNative:function(){return this._.cache.nativeSel!==void 0?this._.cache.nativeSel:this._.cache.nativeSel=g?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:g?function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_NONE;try{var n=this.getNative(),r=n.type;r=="Text"&&(t=CKEDITOR.SELECTION_TEXT),r=="Control"&&(t=CKEDITOR.SELECTION_ELEMENT),n.createRange().parentElement()&&(t=CKEDITOR.SELECTION_TEXT)}catch(i){}return e.type=t}:function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_TEXT,n=this.getNative();if(!n||!n.rangeCount)t=CKEDITOR.SELECTION_NONE;else if(n.rangeCount==1){var n=n.getRangeAt(0),r=n.startContainer;r==n.endContainer&&r.nodeType==1&&n.endOffset-n.startOffset==1&&b[r.childNodes[n.startOffset].nodeName.toLowerCase()]&&(t=CKEDITOR.SELECTION_ELEMENT)}return e.type=t},getRanges:function(){var e=g?function(){function e(e){return(new CKEDITOR.dom.node(e)).getIndex()}var t=function(t,n){t=t.duplicate(),t.collapse(n);var r=t.parentElement();if(!r.hasChildNodes())return{container:r,offset:0};for(var i=r.children,s,o,u=t.duplicate(),a=0,f=i.length-1,l=-1,c,h;a<=f;){l=Math.floor((a+f)/2),s=i[l],u.moveToElementText(s),c=u.compareEndPoints("StartToStart",t);if(c>0)f=l-1;else{if(!(c<0))return{container:r,offset:e(s)};a=l+1}}if(l==-1||l==i.length-1&&c<0){u.moveToElementText(r),u.setEndPoint("StartToStart",t),u=u.text.replace(/(\r\n|\r)/g,"\n").length,i=r.childNodes;if(!u)return s=i[i.length-1],s.nodeType!=CKEDITOR.NODE_TEXT?{container:r,offset:i.length}:{container:s,offset:s.nodeValue.length};for(r=i.length;u>0&&r>0;)o=i[--r],o.nodeType==CKEDITOR.NODE_TEXT&&(h=o,u-=o.nodeValue.length);return{container:h,offset:-u}}u.collapse(c>0?!0:!1),u.setEndPoint(c>0?"StartToStart":"EndToStart",t),u=u.text.replace(/(\r\n|\r)/g,"\n").length;if(!u)return{container:r,offset:e(s)+(c>0?0:1)};for(;u>0;)try{o=s[c>0?"previousSibling":"nextSibling"],o.nodeType==CKEDITOR.NODE_TEXT&&(u-=o.nodeValue.length,h=o),s=o}catch(p){return{container:r,offset:e(s)}}return{container:h,offset:c>0?-u:h.nodeValue.length+u}};return function(){var e=this.getNative(),n=e&&e.createRange(),r=this.getType();if(!e)return[];if(r==CKEDITOR.SELECTION_TEXT)return e=new CKEDITOR.dom.range(this.root),r=t(n,!0),e.setStart(new CKEDITOR.dom.node(r.container),r.offset),r=t(n),e.setEnd(new CKEDITOR.dom.node(r.container),r.offset),e.endContainer.getPosition(e.startContainer)&CKEDITOR.POSITION_PRECEDING&&e.endOffset<=e.startContainer.getIndex()&&e.collapse(),[e];if(r==CKEDITOR.SELECTION_ELEMENT){for(var r=[],i=0;i1&&(u=e[e.length-1],e[0].setEnd(u.endContainer,u.endOffset)),u=e[0];var e=u.collapsed,l,c,h;if((n=u.getEnclosedNode())&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in b&&(!n.is("a")||!n.getText()))try{h=n.$.createControlRange(),h.addElement(n.$),h.select();return}catch(p){}if(u.startContainer.type==CKEDITOR.NODE_ELEMENT&&u.startContainer.getName()in t||u.endContainer.type==CKEDITOR.NODE_ELEMENT&&u.endContainer.getName()in t)u.shrink(CKEDITOR.NODE_ELEMENT,!0),e=u.collapsed;h=u.createBookmark(),t=h.startNode,e||(s=h.endNode),h=u.document.$.body.createTextRange(),h.moveToElementText(t.$),h.moveStart("character",1),s?(a=u.document.$.body.createTextRange(),a.moveToElementText(s.$),h.setEndPoint("EndToEnd",a),h.moveEnd("character",-1)):(l=t.getNext(f),c=t.hasAscendant("pre"),l=!(l&&l.getText&&l.getText().match(a))&&(c||!t.hasPrevious()||t.getPrevious().is&&t.getPrevious().is("br")),c=u.document.createElement("span"),c.setHtml(""),c.insertBefore(t),l&&u.document.createText("").insertBefore(t)),u.setStartBefore(t),t.remove(),e?(l?(h.moveStart("character",-1),h.select(),u.document.$.selection.clear()):h.select(),u.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START),c.remove()):(u.setEndBefore(s),s.remove(),h.select())}else{s=this.getNative();if(!s)return;this.removeAllRanges();for(h=0;h=0))throw d;u.collapse(1),c.setEnd(u.endContainer.$,u.endOffset)}s.addRange(c)}}this.reset(),this.root.fire("selectionchange")}}},fake:function(e){var t=this.root.editor;this.reset(),l(t);var n=this._.cache,r=new CKEDITOR.dom.range(this.root);r.setStartBefore(e),r.setEndAfter(e),n.ranges=new CKEDITOR.dom.rangeList(r),n.selectedElement=n.startElement=e,n.type=CKEDITOR.SELECTION_ELEMENT,n.selectedText=n.nativeSel=null,this.isFake=1,this.rev=y++,t._.fakeSelection=this,this.root.fire("selectionchange")},isHidden:function(){var e=this.getCommonAncestor();return e&&e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),!!e&&!!e.data("cke-hidden-sel")},createBookmarks:function(e){return e=this.getRanges().createBookmarks(e),this.isFake&&(e.isFake=1),e},createBookmarks2:function(e){return e=this.getRanges().createBookmarks2(e),this.isFake&&(e.isFake=1),e},selectBookmarks:function(e){for(var t=[],n=0;n]*>)[ \t\r\n]*/gi,"$1"),s=s.replace(/([ \t\n\r]+| )/g," "),s=s.replace(/]*>/gi,"\n");if(CKEDITOR.env.ie){var o=e.getDocument().createElement("div");o.append(i),i.$.outerHTML="
"+s+"
",i.copyAttributes(o.getFirst()),i=o.getFirst().remove()}else i.setHtml(s);t=i}else s?t=c(n?[e.getHtml()]:f(e),t):e.moveChildren(t);t.replace(e);if(r){var n=t,u;(u=n.getPrevious(k))&&u.type==CKEDITOR.NODE_ELEMENT&&u.is("pre")&&(r=l(u.getHtml(),/\n$/,"")+"\n\n"+l(n.getHtml(),/^\n/,""),CKEDITOR.env.ie?n.$.outerHTML="
"+r+"
":n.setHtml(r),u.remove())}else n&&v(t)}function f(e){var t=[];return l(e.getOuterHtml(),/(\S\s*)\n(?:\s|(]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(e,t,n){return t+"
"+n+"
"}).replace(/([\s\S]*?)<\/pre>/gi,function(e,n){t.push(n)}),t}function l(e,t,n){var r="",i="",e=e.replace(/(^]+data-cke-bookmark.*?\/span>)|(]+data-cke-bookmark.*?\/span>$)/gi,function(e,t,n){return t&&(r=t),n&&(i=n),""});return r+e.replace(t,n)+i}function c(e,t){var n;e.length>1&&(n=new CKEDITOR.dom.documentFragment(t.getDocument()));for(var r=0;r"),i=i.replace(/[ \t]{2,}/g,function(e){return CKEDITOR.tools.repeat(" ",e.length-1)+" "});if(n){var s=t.clone();s.setHtml(i),n.append(s)}else t.setHtml(i)}return n||t}function h(e,t){var n=this._.definition,r=n.attributes,n=n.styles,i=b(this)[e.getName()],s=CKEDITOR.tools.isEmpty(r)&&CKEDITOR.tools.isEmpty(n),o;for(o in r)(o!="class"&&!this._.definition.fullMatch||e.getAttribute(o)==w(o,r[o]))&&(!t||o.slice(0,5)!="data-")&&(s=e.hasAttribute(o),e.removeAttribute(o));for(var u in n)if(!this._.definition.fullMatch||e.getStyle(u)==w(u,n[u],true))s=s||!!e.getStyle(u),e.removeStyle(u);d(e,i,S[e.getName()]),s&&(this._.definition.alwaysRemoveElement?v(e,1):!CKEDITOR.dtd.$block[e.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!e.hasAttributes()?v(e):e.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function p(e){for(var t=b(this),n=e.getElementsByTag(this.element),r,i=n.count();--i>=0;)r=n.getItem(i),r.isReadOnly()||h.call(this,r,!0);for(var s in t)if(s!=this.element){n=e.getElementsByTag(s);for(i=n.count()-1;i>=0;i--)r=n.getItem(i),r.isReadOnly()||d(r,t[s])}}function d(e,t,n){if(t=t&&t.attributes)for(var r=0;r",e||t.name,""),n.join("")},getDefinition:function(){return this._.definition}},CKEDITOR.style.getStyleText=function(e){var t=e._ST;if(t)return t;var t=e.styles,n=e.attributes&&e.attributes.style||"",r="";n.length&&(n=n.replace(T,";"));for(var i in t){var s=t[i],o=(i+":"+s).replace(T,";");s=="inherit"?r+=o:n+=o}return n.length&&(n=CKEDITOR.tools.normalizeCssText(n,!0)),e._ST=n+r},CKEDITOR.style.customHandlers={},CKEDITOR.style.addCustomHandler=function(e){var t=function(e){this._={definition:e},this.setup&&this.setup(e)};return t.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},e,!0),this.customHandlers[e.type]=t};var L=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,A=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(e,t){this.requiredContent=this.allowedContent=this.style=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.styleCommand.prototype.exec=function(e){e.focus(),this.state==CKEDITOR.TRISTATE_OFF?e.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&e.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(e,t,n){CKEDITOR.stylesSet.addExternal(e,t,""),CKEDITOR.stylesSet.load(e,n)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(e,t){var n=this._.styleStateChangeCallbacks;n||(n=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(e){for(var t=0;t"}}),"use strict",function(){var e={},t={},n;for(n in CKEDITOR.dtd.$blockLimit)n in CKEDITOR.dtd.$list||(e[n]=1);for(n in CKEDITOR.dtd.$block)n in CKEDITOR.dtd.$blockLimit||n in CKEDITOR.dtd.$empty||(t[n]=1);CKEDITOR.dom.elementPath=function(n,r){var i=null,s=null,o=[],u=n,f,r=r||n.getDocument().getBody();do if(u.type==CKEDITOR.NODE_ELEMENT){o.push(u);if(!this.lastElement){this.lastElement=u;if(u.is(CKEDITOR.dtd.$object)||u.getAttribute("contenteditable")=="false")continue}if(u.equals(r))break;if(!s){f=u.getName(),u.getAttribute("contenteditable")=="true"?s=u:!i&&t[f]&&(i=u);if(e[f]){var l;if(l=!i){if(f=f=="div"){e:{f=u.getChildren(),l=0;for(var c=f.count();l-1}:typeof e=="function"?r=e:typeof e=="object"&&(r=function(t){return t.getName()in e});var i=this.elements,s=i.length;t&&s--,n&&(i=Array.prototype.slice.call(i,0),i.reverse());for(t=0;t=r?(s=i.createText(""),s.insertAfter(this)):(e=i.createText(""),e.insertAfter(s),e.remove())),s},substring:function(e,t){return typeof t!="number"?this.$.nodeValue.substr(e):this.$.nodeValue.substring(e,t)}}),function(){function e(e,t,n){var r=e.serializable,i=t[n?"endContainer":"startContainer"],s=n?"endOffset":"startOffset",o=r?t.document.getById(e.startNode):e.startNode,e=r?t.document.getById(e.endNode):e.endNode;return i.equals(o.getPrevious())?(t.startOffset=t.startOffset-i.getLength()-e.getPrevious().getLength(),i=e.getNext()):i.equals(e.getPrevious())&&(t.startOffset=t.startOffset-i.getLength(),i=e.getNext()),i.equals(o.getParent())&&t[s]++,i.equals(e.getParent())&&t[s]++,t[n?"endContainer":"startContainer"]=i,t}CKEDITOR.dom.rangeList=function(e){return e instanceof CKEDITOR.dom.rangeList?e:(e?e instanceof CKEDITOR.dom.range&&(e=[e]):e=[],CKEDITOR.tools.extend(e,t))};var t={createIterator:function(){var e=this,t=CKEDITOR.dom.walker.bookmark(),n=[],r;return{getNextRange:function(i){r=r===void 0?0:r+1;var s=e[r];if(s&&e.length>1){if(!r)for(var o=e.length-1;o>=0;o--)n.unshift(e[o].createBookmark(!0));if(i)for(var u=0;e[r+u+1];){for(var f=s.document,i=0,o=f.getById(n[u].endNode),f=f.getById(n[u+1].startNode);;){o=o.getNextSourceNode(!1);if(f.equals(o))i=1;else if(t(o)||o.type==CKEDITOR.NODE_ELEMENT&&o.isBlockBoundary())continue;break}if(!i)break;u++}for(s.moveToBookmark(n.shift());u--;)o=e[++r],o.moveToBookmark(n.shift()),s.setEnd(o.endContainer,o.endOffset)}return s}}},createBookmarks:function(t){for(var n=[],r,i=0;it?-1:1}),i=0,s;i',CKEDITOR.document);e.appendTo(CKEDITOR.document.getHead());try{var t=e.getComputedStyle("border-top-color"),n=e.getComputedStyle("border-right-color");CKEDITOR.env.hc=!!t&&t==n}catch(r){CKEDITOR.env.hc=!1}e.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass=CKEDITOR.env.cssClass+" cke_hc"),CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}"),CKEDITOR.status="loaded",CKEDITOR.fireOnce("loaded");if(e=CKEDITOR._.pending){delete CKEDITOR._.pending;for(t=0;t",n.label,"",'"):(r={type:"hbox",widths:n.widths,padding:0,children:[{type:"html",html:'
"+n+"
"}).replace(/([\s\S]*?)<\/pre>/gi,function(e,n){t.push(n)}),t}function l(e,t,n){var r="",i="",e=e.replace(/(^]+data-cke-bookmark.*?\/span>)|(]+data-cke-bookmark.*?\/span>$)/gi,function(e,t,n){return t&&(r=t),n&&(i=n),""});return r+e.replace(t,n)+i}function c(e,t){var n;e.length>1&&(n=new CKEDITOR.dom.documentFragment(t.getDocument()));for(var r=0;r"),i=i.replace(/[ \t]{2,}/g,function(e){return CKEDITOR.tools.repeat(" ",e.length-1)+" "});if(n){var s=t.clone();s.setHtml(i),n.append(s)}else t.setHtml(i)}return n||t}function h(e,t){var n=this._.definition,r=n.attributes,n=n.styles,i=b(this)[e.getName()],s=CKEDITOR.tools.isEmpty(r)&&CKEDITOR.tools.isEmpty(n),o;for(o in r)(o!="class"&&!this._.definition.fullMatch||e.getAttribute(o)==w(o,r[o]))&&(!t||o.slice(0,5)!="data-")&&(s=e.hasAttribute(o),e.removeAttribute(o));for(var u in n)if(!this._.definition.fullMatch||e.getStyle(u)==w(u,n[u],true))s=s||!!e.getStyle(u),e.removeStyle(u);d(e,i,S[e.getName()]),s&&(this._.definition.alwaysRemoveElement?v(e,1):!CKEDITOR.dtd.$block[e.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!e.hasAttributes()?v(e):e.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function p(e){for(var t=b(this),n=e.getElementsByTag(this.element),r,i=n.count();--i>=0;)r=n.getItem(i),r.isReadOnly()||h.call(this,r,!0);for(var s in t)if(s!=this.element){n=e.getElementsByTag(s);for(i=n.count()-1;i>=0;i--)r=n.getItem(i),r.isReadOnly()||d(r,t[s])}}function d(e,t,n){if(t=t&&t.attributes)for(var r=0;r",e||t.name,""),n.join("")},getDefinition:function(){return this._.definition}},CKEDITOR.style.getStyleText=function(e){var t=e._ST;if(t)return t;var t=e.styles,n=e.attributes&&e.attributes.style||"",r="";n.length&&(n=n.replace(T,";"));for(var i in t){var s=t[i],o=(i+":"+s).replace(T,";");s=="inherit"?r+=o:n+=o}return n.length&&(n=CKEDITOR.tools.normalizeCssText(n,!0)),e._ST=n+r},CKEDITOR.style.customHandlers={},CKEDITOR.style.addCustomHandler=function(e){var t=function(e){this._={definition:e},this.setup&&this.setup(e)};return t.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},e,!0),this.customHandlers[e.type]=t};var L=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,A=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(e,t){this.requiredContent=this.allowedContent=this.style=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.styleCommand.prototype.exec=function(e){e.focus(),this.state==CKEDITOR.TRISTATE_OFF?e.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&e.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(e,t,n){CKEDITOR.stylesSet.addExternal(e,t,""),CKEDITOR.stylesSet.load(e,n)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(e,t){var n=this._.styleStateChangeCallbacks;n||(n=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(e){for(var t=0;t"}}),"use strict",function(){var e={},t={},n;for(n in CKEDITOR.dtd.$blockLimit)n in CKEDITOR.dtd.$list||(e[n]=1);for(n in CKEDITOR.dtd.$block)n in CKEDITOR.dtd.$blockLimit||n in CKEDITOR.dtd.$empty||(t[n]=1);CKEDITOR.dom.elementPath=function(n,r){var i=null,s=null,o=[],u=n,f,r=r||n.getDocument().getBody();do if(u.type==CKEDITOR.NODE_ELEMENT){o.push(u);if(!this.lastElement){this.lastElement=u;if(u.is(CKEDITOR.dtd.$object)||u.getAttribute("contenteditable")=="false")continue}if(u.equals(r))break;if(!s){f=u.getName(),u.getAttribute("contenteditable")=="true"?s=u:!i&&t[f]&&(i=u);if(e[f]){var l;if(l=!i){if(f=f=="div"){e:{f=u.getChildren(),l=0;for(var c=f.count();l-1}:typeof e=="function"?r=e:typeof e=="object"&&(r=function(t){return t.getName()in e});var i=this.elements,s=i.length;t&&s--,n&&(i=Array.prototype.slice.call(i,0),i.reverse());for(t=0;t=r?(s=i.createText(""),s.insertAfter(this)):(e=i.createText(""),e.insertAfter(s),e.remove())),s},substring:function(e,t){return typeof t!="number"?this.$.nodeValue.substr(e):this.$.nodeValue.substring(e,t)}}),function(){function e(e,t,n){var r=e.serializable,i=t[n?"endContainer":"startContainer"],s=n?"endOffset":"startOffset",o=r?t.document.getById(e.startNode):e.startNode,e=r?t.document.getById(e.endNode):e.endNode;return i.equals(o.getPrevious())?(t.startOffset=t.startOffset-i.getLength()-e.getPrevious().getLength(),i=e.getNext()):i.equals(e.getPrevious())&&(t.startOffset=t.startOffset-i.getLength(),i=e.getNext()),i.equals(o.getParent())&&t[s]++,i.equals(e.getParent())&&t[s]++,t[n?"endContainer":"startContainer"]=i,t}CKEDITOR.dom.rangeList=function(e){return e instanceof CKEDITOR.dom.rangeList?e:(e?e instanceof CKEDITOR.dom.range&&(e=[e]):e=[],CKEDITOR.tools.extend(e,t))};var t={createIterator:function(){var e=this,t=CKEDITOR.dom.walker.bookmark(),n=[],r;return{getNextRange:function(i){r=r===void 0?0:r+1;var s=e[r];if(s&&e.length>1){if(!r)for(var o=e.length-1;o>=0;o--)n.unshift(e[o].createBookmark(!0));if(i)for(var u=0;e[r+u+1];){for(var f=s.document,i=0,o=f.getById(n[u].endNode),f=f.getById(n[u+1].startNode);;){o=o.getNextSourceNode(!1);if(f.equals(o))i=1;else if(t(o)||o.type==CKEDITOR.NODE_ELEMENT&&o.isBlockBoundary())continue;break}if(!i)break;u++}for(s.moveToBookmark(n.shift());u--;)o=e[++r],o.moveToBookmark(n.shift()),s.setEnd(o.endContainer,o.endOffset)}return s}}},createBookmarks:function(t){for(var n=[],r,i=0;it?-1:1}),i=0,s;i',CKEDITOR.document);e.appendTo(CKEDITOR.document.getHead());try{var t=e.getComputedStyle("border-top-color"),n=e.getComputedStyle("border-right-color");CKEDITOR.env.hc=!!t&&t==n}catch(r){CKEDITOR.env.hc=!1}e.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass=CKEDITOR.env.cssClass+" cke_hc"),CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}"),CKEDITOR.status="loaded",CKEDITOR.fireOnce("loaded");if(e=CKEDITOR._.pending){delete CKEDITOR._.pending;for(t=0;t",n.label,"",'"):(r={type:"hbox",widths:n.widths,padding:0,children:[{type:"html",html:'