diff --git a/.eslintignore b/.eslintignore index 32bea16e7..841fe45cc 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,7 +3,6 @@ client/dist/ admin/client/dist/ # Ignore legacy files -admin/client/src/legacy/AssetUploadField.js admin/client/src/legacy/ConfirmedPasswordField.js admin/client/src/legacy/DateField.js admin/client/src/legacy/GridField.js @@ -16,10 +15,6 @@ admin/client/src/legacy/TinyMCE_SSPlugin.js admin/client/src/legacy/ToggleCompositeField.js admin/client/src/legacy/ToggleField.js admin/client/src/legacy/TreeDropdownField.js -admin/client/src/legacy/UploadField.js -admin/client/src/legacy/UploadField_downloadtemplate.js -admin/client/src/legacy/UploadField_select.js -admin/client/src/legacy/UploadField_uploadtemplate.js admin/client/src/i18n.js admin/client/src/i18nx.js admin/client/src/jQuery.js diff --git a/.upgrade.yml b/.upgrade.yml index dca4e6fbd..11da32579 100644 --- a/.upgrade.yml +++ b/.upgrade.yml @@ -329,7 +329,6 @@ mappings: EncryptAllPasswordsTask: SilverStripe\Dev\Tasks\EncryptAllPasswordsTask i18nTextCollectorTask: SilverStripe\Dev\Tasks\i18nTextCollectorTask MigrateFileTask: SilverStripe\Dev\Tasks\MigrateFileTask - AssetField: SilverStripe\Forms\AssetField CheckboxField: SilverStripe\Forms\CheckboxField CheckboxField_Readonly: SilverStripe\Forms\CheckboxField_Readonly CheckboxSetField: SilverStripe\Forms\CheckboxSetField @@ -399,9 +398,6 @@ mappings: TreeDropdownField_Readonly: SilverStripe\Forms\TreeDropdownField_Readonly TreeMultiselectField: SilverStripe\Forms\TreeMultiselectField TreeMultiselectField_Readonly: SilverStripe\Forms\TreeMultiselectField_Readonly - UploadField: SilverStripe\Forms\UploadField - UploadField_ItemHandler: SilverStripe\Forms\UploadField_ItemHandler - UploadField_SelectHandler: SilverStripe\Forms\UploadField_SelectHandler Validator: SilverStripe\Forms\Validator HTMLEditorConfig: SilverStripe\Forms\HTMLEditor\HTMLEditorConfig HTMLEditorField: SilverStripe\Forms\HTMLEditor\HTMLEditorField @@ -655,10 +651,6 @@ mappings: YamlFixtureTest: SilverStripe\Dev\Tests\YamlFixtureTest YamlFixtureTest_DataObject: SilverStripe\Dev\Tests\YamlFixtureTest\TestDataObject YamlFixtureTest_DataObjectRelation: SilverStripe\Dev\Tests\YamlFixtureTest\DataObjectRelation - AssetFieldTest: SilverStripe\Forms\Tests\AssetFieldTest - AssetFieldTest_Object: SilverStripe\Forms\Tests\AssetFieldTest\TestObject - AssetFieldTest_Form: SilverStripe\Forms\Tests\AssetFieldTest\TestForm - AssetFieldTest_Controller: SilverStripe\Forms\Tests\AssetFieldTest\TestController CheckboxFieldTest: SilverStripe\Forms\Tests\CheckboxFieldTest CheckboxFieldTest_Article: SilverStripe\Forms\Tests\CheckboxFieldtest\Article CheckboxSetFieldTest: SilverStripe\Forms\Tests\CheckboxSetFieldTest @@ -731,12 +723,6 @@ mappings: TextFieldTest: SilverStripe\Forms\Tests\TextFieldTest TimeFieldTest: SilverStripe\Forms\Tests\TimeFieldTest TreeDropdownFieldTest: SilverStripe\Forms\Tests\TreeDropdownFieldTest - UploadFieldTest: SilverStripe\Forms\Tests\UploadFieldTest - UploadFieldTest_Record: SilverStripe\Forms\Tests\UploadFieldTest\TestRecord - UploadFieldTest_FileExtension: SilverStripe\Forms\Tests\UploadFieldTest\FileExtension - UploadFieldTest_ExtendedFile: SilverStripe\Forms\Tests\UploadFieldTest\ExtendedFile - UploadFieldTestForm: SilverStripe\Forms\Tests\UploadFieldTest\UploadFieldTestForm - UploadFieldTest_Controller: SilverStripe\Forms\Tests\UploadFieldTest\TestController i18nTest: SilverStripe\i18n\Tests\i18nTest i18nTest_DataObject: SilverStripe\i18n\Tests\i18Test\TestDataObject i18nTest_Object: SilverStripe\i18n\Tests\i18Test\TestObject diff --git a/admin/client/dist/images/default_media.png b/admin/client/dist/images/default_media.png deleted file mode 100644 index c867d415e..000000000 Binary files a/admin/client/dist/images/default_media.png and /dev/null differ diff --git a/admin/client/dist/images/drag_drop_opt.svg b/admin/client/dist/images/drag_drop_opt.svg deleted file mode 100644 index 4291f841c..000000000 --- a/admin/client/dist/images/drag_drop_opt.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - diff --git a/admin/client/dist/images/logo_small.png b/admin/client/dist/images/logo_small.png deleted file mode 100644 index 0aa3d1d07..000000000 Binary files a/admin/client/dist/images/logo_small.png and /dev/null differ diff --git a/admin/client/dist/images/logo_small@2x.png b/admin/client/dist/images/logo_small@2x.png deleted file mode 100644 index e7e39e6bf..000000000 Binary files a/admin/client/dist/images/logo_small@2x.png and /dev/null differ diff --git a/admin/client/dist/images/network-save-constructive.gif b/admin/client/dist/images/network-save-constructive.gif deleted file mode 100644 index 735c8b870..000000000 Binary files a/admin/client/dist/images/network-save-constructive.gif and /dev/null differ diff --git a/admin/client/dist/images/network-save.gif b/admin/client/dist/images/network-save.gif deleted file mode 100644 index 1560b646c..000000000 Binary files a/admin/client/dist/images/network-save.gif and /dev/null differ diff --git a/admin/client/dist/images/progressbar_blue.gif b/admin/client/dist/images/progressbar_blue.gif deleted file mode 100644 index 5ccc3fee3..000000000 Binary files a/admin/client/dist/images/progressbar_blue.gif and /dev/null differ diff --git a/admin/client/dist/images/question.png b/admin/client/dist/images/question.png deleted file mode 100755 index f51f15ba3..000000000 Binary files a/admin/client/dist/images/question.png and /dev/null differ diff --git a/admin/client/dist/images/silverstripe.svg b/admin/client/dist/images/silverstripe.svg deleted file mode 100644 index 0e2b21194..000000000 --- a/admin/client/dist/images/silverstripe.svg +++ /dev/null @@ -1,94 +0,0 @@ - - - -Generated by Fontastic.me - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/admin/client/dist/images/silverstripe_logo.png b/admin/client/dist/images/silverstripe_logo.png deleted file mode 100644 index eae3feadd..000000000 Binary files a/admin/client/dist/images/silverstripe_logo.png and /dev/null differ diff --git a/admin/client/dist/images/sitetree_ss_pageclass_icons_default.png b/admin/client/dist/images/sitetree_ss_pageclass_icons_default.png deleted file mode 100644 index 1d65c24d8..000000000 Binary files a/admin/client/dist/images/sitetree_ss_pageclass_icons_default.png and /dev/null differ diff --git a/admin/client/dist/images/spinner.gif b/admin/client/dist/images/spinner.gif deleted file mode 100644 index bc8cf92e5..000000000 Binary files a/admin/client/dist/images/spinner.gif and /dev/null differ diff --git a/admin/client/dist/images/spinner@2x.gif b/admin/client/dist/images/spinner@2x.gif deleted file mode 100644 index f0684f69d..000000000 Binary files a/admin/client/dist/images/spinner@2x.gif and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-btn-icon.png b/admin/client/dist/images/sprites/sprite-btn-icon.png deleted file mode 100644 index 53fe20a45..000000000 Binary files a/admin/client/dist/images/sprites/sprite-btn-icon.png and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-menu-icons-16x16-2x.png b/admin/client/dist/images/sprites/sprite-menu-icons-16x16-2x.png deleted file mode 100644 index 24fff118b..000000000 Binary files a/admin/client/dist/images/sprites/sprite-menu-icons-16x16-2x.png and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-menu-icons-16x16.png b/admin/client/dist/images/sprites/sprite-menu-icons-16x16.png deleted file mode 100644 index a7cc02524..000000000 Binary files a/admin/client/dist/images/sprites/sprite-menu-icons-16x16.png and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-menu-icons-24x24-2x.png b/admin/client/dist/images/sprites/sprite-menu-icons-24x24-2x.png deleted file mode 100644 index 69c4140e6..000000000 Binary files a/admin/client/dist/images/sprites/sprite-menu-icons-24x24-2x.png and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-menu-icons-24x24.png b/admin/client/dist/images/sprites/sprite-menu-icons-24x24.png deleted file mode 100644 index cb4a4a8bf..000000000 Binary files a/admin/client/dist/images/sprites/sprite-menu-icons-24x24.png and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-sprites-32x32-2x.png b/admin/client/dist/images/sprites/sprite-sprites-32x32-2x.png deleted file mode 100644 index 108e2ee76..000000000 Binary files a/admin/client/dist/images/sprites/sprite-sprites-32x32-2x.png and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-sprites-32x32.png b/admin/client/dist/images/sprites/sprite-sprites-32x32.png deleted file mode 100644 index 304c3f69a..000000000 Binary files a/admin/client/dist/images/sprites/sprite-sprites-32x32.png and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-sprites-64x64-2x.png b/admin/client/dist/images/sprites/sprite-sprites-64x64-2x.png deleted file mode 100644 index 3335eb772..000000000 Binary files a/admin/client/dist/images/sprites/sprite-sprites-64x64-2x.png and /dev/null differ diff --git a/admin/client/dist/images/sprites/sprite-sprites-64x64.png b/admin/client/dist/images/sprites/sprite-sprites-64x64.png deleted file mode 100644 index 510bb53df..000000000 Binary files a/admin/client/dist/images/sprites/sprite-sprites-64x64.png and /dev/null differ diff --git a/admin/client/dist/images/sticky-toggle-off.png b/admin/client/dist/images/sticky-toggle-off.png deleted file mode 100644 index a2ca12252..000000000 Binary files a/admin/client/dist/images/sticky-toggle-off.png and /dev/null differ diff --git a/admin/client/dist/images/sticky-toggle-on.png b/admin/client/dist/images/sticky-toggle-on.png deleted file mode 100644 index e41459f23..000000000 Binary files a/admin/client/dist/images/sticky-toggle-on.png and /dev/null differ diff --git a/admin/client/dist/images/throbber.gif b/admin/client/dist/images/throbber.gif deleted file mode 100644 index 5b33f7e54..000000000 Binary files a/admin/client/dist/images/throbber.gif and /dev/null differ diff --git a/admin/client/dist/js/TinyMCE_ssmedia.js b/admin/client/dist/js/TinyMCE_ssmedia.js deleted file mode 100644 index d0e92364a..000000000 --- a/admin/client/dist/js/TinyMCE_ssmedia.js +++ /dev/null @@ -1,23 +0,0 @@ -webpackJsonp([3],[function(t,e){"use strict" -function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var n=Object.assign||function(t){for(var e=1;e").attr({src:t.thumbnail,width:t.width,height:t.height,"class":t["class"],"data-url":e[2] -}).addClass("ss-htmleditorfield-file embed") -t.cssclass=t["class"],Object.keys(t).forEach(function(e){return i.attr("data-"+e,t[e])}),a=a.replace(e[0],window.jQuery("
").append(i).html())};e=s.exec(a);)c() -for(var o=/\[image(.*?)]/gi;e=o.exec(a);){var d=r(e[1]),u=window.jQuery("").attr({src:d.src,width:d.width,height:d.height,"class":d["class"],alt:d.alt,title:d.title,"data-id":d.id}) -a=a.replace(e[0],window.jQuery("
").append(u).html())}t.content=a})}} -tinymce.PluginManager.add("ssmedia",function(e){return t.init(e)})}()}]) diff --git a/admin/client/dist/js/UploadField_select.js b/admin/client/dist/js/UploadField_select.js deleted file mode 100644 index edffc81d1..000000000 --- a/admin/client/dist/js/UploadField_select.js +++ /dev/null @@ -1,6 +0,0 @@ -webpackJsonp([3],[function(e,n,t){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var o=t(1),r=i(o) -r["default"].entwine("ss",function(e){e("form.uploadfield-form .TreeDropdownField").entwine({onmatch:function n(){this._super() -var e=this -this.bind("change",function(){var n=e.closest("form").find(".grid-field") -n.setState("ParentID",e.getValue()),n.reload()})},onunmatch:function t(){this._super()}})})}]) diff --git a/admin/client/dist/js/bundle.js b/admin/client/dist/js/bundle.js index 1ecd296c0..f8642ee10 100644 --- a/admin/client/dist/js/bundle.js +++ b/admin/client/dist/js/bundle.js @@ -1,50 +1,51 @@ -webpackJsonp([4],[function(e,t,n){"use strict" +webpackJsonp([3],[function(e,t,n){"use strict" n(2),n(3),n(6),n(16),n(18),n(24),n(26),n(28),n(29),n(31),n(34),n(104),n(112),n(116),n(126),n(127),n(128),n(129),n(130),n(131),n(133),n(136),n(138),n(140),n(143),n(146),n(148),n(150),n(152),n(154),n(156), -n(157),n(166),n(167),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(184),n(186),n(187),n(188),n(189),n(193),n(194),n(195),n(196),n(197),n(194),n(200),n(202), -n(204),n(205)},,function(e,t){"use strict" +n(157),n(166),n(167),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(184),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(189),n(195),n(197),n(199),n(200) + +},,function(e,t){"use strict" function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}) -var i=function(){function e(e,t){for(var n=0;n1?t-1:0),i=1;i1?t-1:0),r=1;r=200&&e.status<300))throw n=new Error(e.statusText),n.response=e,n return t=e}function s(e){var t=null if(e instanceof FormData||"string"==typeof e)t=e @@ -55,187 +56,187 @@ default:throw new Error("Can't encode format: "+e)}}function u(e,t){switch(e){ca case"application/json":case"application/x-json":case"application/x-javascript":case"text/javascript":case"text/x-javascript":case"text/x-json":return JSON.parse(t) default:throw new Error("Can't decode format: "+e)}}function c(e,t){return""===t?e:e.match(/\?/)?e+"&"+t:e+"?"+t}function d(e){return e.text().then(function(t){return u(e.headers.get("Content-Type"),t) -})}function f(e,t){return Object.keys(t).reduce(function(n,i){var r=e[i] -return!r||r.remove!==!0&&r.querystring!==!0?m(n,a({},i,t[i])):n},{})}function p(e,t,n){var i=arguments.length<=3||void 0===arguments[3]?{setFromData:!1}:arguments[3],r=t,o=Object.keys(n).reduce(function(t,r){ -var o=e[r],s=i.setFromData===!0&&!(o&&o.remove===!0),l=o&&o.querystring===!0&&o.remove!==!0 -return s||l?m(t,a({},r,n[r])):t},{}),s=l("application/x-www-form-urlencoded",o) -return r=c(r,s),r=Object.keys(e).reduce(function(t,i){var r=e[i].urlReplacement -return r?t.replace(r,n[i]):t},r)}Object.defineProperty(t,"__esModule",{value:!0}) -var h=function(){function e(e,t){for(var n=0;n-1?t:e}function d(e,t){t=t||{} var n=t.body if(d.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read") -this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new r(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e -if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new r(t.headers)),this.method=c(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null, +this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e +if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=c(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null, ("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests") this._initBody(n)}function f(e){var t=new FormData -return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ") -t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function p(e){var t=new r,n=(e.getAllResponseHeaders()||"").trim().split("\n") -return n.forEach(function(e){var n=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim() -t.append(i,r)}),t}function h(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof r?t.headers:new r(t.headers), +return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ") +t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function p(e){var t=new i,n=(e.getAllResponseHeaders()||"").trim().split("\n") +return n.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim() +t.append(r,i)}),t}function h(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof i?t.headers:new i(t.headers), this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob, !0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e} -r.prototype.append=function(e,i){e=t(e),i=n(i) -var r=this.map[e] -r||(r=[],this.map[e]=r),r.push(i)},r.prototype["delete"]=function(e){delete this.map[t(e)]},r.prototype.get=function(e){var n=this.map[t(e)] -return n?n[0]:null},r.prototype.getAll=function(e){return this.map[t(e)]||[]},r.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},r.prototype.set=function(e,i){this.map[t(e)]=[n(i)]},r.prototype.forEach=function(e,t){ -Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)},r.prototype.keys=function(){var e=[] -return this.forEach(function(t,n){e.push(n)}),i(e)},r.prototype.values=function(){var e=[] -return this.forEach(function(t){e.push(t)}),i(e)},r.prototype.entries=function(){var e=[] -return this.forEach(function(t,n){e.push([n,t])}),i(e)},m.iterable&&(r.prototype[Symbol.iterator]=r.prototype.entries) +i.prototype.append=function(e,r){e=t(e),r=n(r) +var i=this.map[e] +i||(i=[],this.map[e]=i),i.push(r)},i.prototype["delete"]=function(e){delete this.map[t(e)]},i.prototype.get=function(e){var n=this.map[t(e)] +return n?n[0]:null},i.prototype.getAll=function(e){return this.map[t(e)]||[]},i.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},i.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},i.prototype.forEach=function(e,t){ +Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},i.prototype.keys=function(){var e=[] +return this.forEach(function(t,n){e.push(n)}),r(e)},i.prototype.values=function(){var e=[] +return this.forEach(function(t){e.push(t)}),r(e)},i.prototype.entries=function(){var e=[] +return this.forEach(function(t,n){e.push([n,t])}),r(e)},m.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries) var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"] -d.prototype.clone=function(){return new d(this)},u.call(d.prototype),u.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers), +d.prototype.clone=function(){return new d(this)},u.call(d.prototype),u.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers), url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""}) return e.type="error",e} -var v=[301,302,303,307,308] -h.redirect=function(e,t){if(v.indexOf(t)===-1)throw new RangeError("Invalid status code") -return new h(null,{status:t,headers:{location:e}})},e.Headers=r,e.Request=d,e.Response=h,e.fetch=function(e,t){return new Promise(function(n,i){function r(){return"responseURL"in o?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):void 0 +var y=[301,302,303,307,308] +h.redirect=function(e,t){if(y.indexOf(t)===-1)throw new RangeError("Invalid status code") +return new h(null,{status:t,headers:{location:e}})},e.Headers=i,e.Request=d,e.Response=h,e.fetch=function(e,t){return new Promise(function(n,r){function i(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0 -}var a -a=d.prototype.isPrototypeOf(e)&&!t?e:new d(e,t) -var o=new XMLHttpRequest -o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:p(o),url:r()},t="response"in o?o.response:o.responseText -n(new h(t,e))},o.onerror=function(){i(new TypeError("Network request failed"))},o.ontimeout=function(){i(new TypeError("Network request failed"))},o.open(a.method,a.url,!0),"include"===a.credentials&&(o.withCredentials=!0), -"responseType"in o&&m.blob&&(o.responseType="blob"),a.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send("undefined"==typeof a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this) +}var o +o=d.prototype.isPrototypeOf(e)&&!t?e:new d(e,t) +var a=new XMLHttpRequest +a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:p(a),url:i()},t="response"in a?a.response:a.responseText +n(new h(t,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0), +"responseType"in a&&m.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this) -},function(e,t,n){var i;(function(t,r){!function(t,n){e.exports=n()}(this,function(){"use strict" -function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function a(e){return"function"==typeof e}function o(e){K=e}function s(e){J=e}function l(){return function(){return t.nextTick(p)}} +},function(e,t,n){var r;(function(t,i){!function(t,n){e.exports=n()}(this,function(){"use strict" +function e(e){return"function"==typeof e||"object"==typeof e&&null!==e}function o(e){return"function"==typeof e}function a(e){K=e}function s(e){J=e}function l(){return function(){return t.nextTick(p)}} function u(){return function(){Q(p)}}function c(){var e=0,t=new ee(p),n=document.createTextNode("") return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function d(){var e=new MessageChannel return e.port1.onmessage=p,function(){return e.port2.postMessage(0)}}function f(){var e=setTimeout -return function(){return e(p,1)}}function p(){for(var e=0;e1}},{key:"handleChange",value:function d(e){"function"==typeof this.props.onChange&&this.props.onChange(e,{ @@ -727,48 +728,48 @@ g.propTypes={extraClass:c["default"].PropTypes.string,id:c["default"].PropTypes. readOnly:c["default"].PropTypes.bool,disabled:c["default"].PropTypes.bool,placeholder:c["default"].PropTypes.string,type:c["default"].PropTypes.string},g.defaultProps={value:"",extraClass:"",className:"", type:"text"},t.TextField=g,t["default"]=(0,h["default"])(g)},function(e,t){e.exports=FieldHolder},function(e,t,n){(function(t){e.exports=t.LiteralField=n(137)}).call(t,function(){return this}())},function(e,t,n){ "use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") +function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") -return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t) +return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t) e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{ value:!0}) var s=Object.assign||function(e){for(var t=1;t=0?n[o]=r:n.unshift(r)}},{key:"findChildRoute",value:function s(e){var t=this.childRoutes +var r=Object.assign||function(e){for(var t=1;t=0?n[a]=i:n.unshift(i)}},{key:"findChildRoute",value:function s(e){var t=this.childRoutes return e&&e.forEach(function(e){var n=t.find(function(t){return t.path===e}) if(!n)throw new Error("Parent path "+e+" could not be found.") -t=n.childRoutes}),t}},{key:"getRootRoute",value:function l(){return this.rootRoute}},{key:"getChildRoutes",value:function u(){return this.childRoutes}},{key:"remove",value:function c(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=this.findChildRoute(t),i=n.findIndex(function(t){ +t=n.childRoutes}),t}},{key:"getRootRoute",value:function l(){return this.rootRoute}},{key:"getChildRoutes",value:function u(){return this.childRoutes}},{key:"remove",value:function c(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=this.findChildRoute(t),r=n.findIndex(function(t){ return t.path===e}) -return i<0?null:n.splice(i,1)[0]}}]),e}() -window.ss=window.ss||{},window.ss.routeRegister=window.ss.routeRegister||new a,t["default"]=window.ss.routeRegister},function(e,t,n){(function(t){e.exports=t.Injector=n(103)}).call(t,function(){return this +return r<0?null:n.splice(r,1)[0]}}]),e}() +window.ss=window.ss||{},window.ss.routeRegister=window.ss.routeRegister||new o,t["default"]=window.ss.routeRegister},function(e,t,n){(function(t){e.exports=t.Injector=n(103)}).call(t,function(){return this }())},function(e,t,n){(function(t){e.exports=t.Router=n(158)}).call(t,function(){return this}())},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=c["default"].getAbsoluteBase(),n=f["default"].resolve(t,e) -return 0!==n.indexOf(t)?n:n.substring(t.length-1)}function a(e){return function(t,n,i,r){return e(c["default"].resolveURLToBase(t),n,i,r)}}function o(e){var t=new c["default"].Route(e) +function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=c["default"].getAbsoluteBase(),n=f["default"].resolve(t,e) +return 0!==n.indexOf(t)?n:n.substring(t.length-1)}function o(e){return function(t,n,r,i){return e(c["default"].resolveURLToBase(t),n,r,i)}}function a(e){var t=new c["default"].Route(e) return t.match(c["default"].current,{})}function s(){return c["default"].absoluteBaseURL}function l(e){c["default"].absoluteBaseURL=e var t=document.createElement("a") t.href=e var n=t.pathname n=n.replace(/\/$/,""),n.match(/^[^\/]/)&&(n="/"+n),c["default"].base(n)}Object.defineProperty(t,"__esModule",{value:!0}) -var u=n(159),c=i(u),d=n(160),f=i(d) -c["default"].oldshow||(c["default"].oldshow=c["default"].show),c["default"].setAbsoluteBase=l.bind(c["default"]),c["default"].getAbsoluteBase=s.bind(c["default"]),c["default"].resolveURLToBase=r.bind(c["default"]), -c["default"].show=a(c["default"].oldshow),c["default"].routeAppliesToCurrentLocation=o,window.ss=window.ss||{},window.ss.router=window.ss.router||c["default"],t["default"]=window.ss.router},function(e,t){ +var u=n(159),c=r(u),d=n(160),f=r(d) +c["default"].oldshow||(c["default"].oldshow=c["default"].show),c["default"].setAbsoluteBase=l.bind(c["default"]),c["default"].getAbsoluteBase=s.bind(c["default"]),c["default"].resolveURLToBase=i.bind(c["default"]), +c["default"].show=o(c["default"].oldshow),c["default"].routeAppliesToCurrentLocation=a,window.ss=window.ss||{},window.ss.router=window.ss.router||c["default"],t["default"]=window.ss.router},function(e,t){ e.exports=Page},function(e,t,n){"use strict" -function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null +function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null -}function r(e,t,n){if(e&&u.isObject(e)&&e instanceof i)return e -var r=new i -return r.parse(e,t,n),r}function a(e){return u.isString(e)&&(e=r(e)),e instanceof i?e.format():i.prototype.format.call(e)}function o(e,t){return r(e,!1,!0).resolve(t)}function s(e,t){return e?r(e,!1,!0).resolveObject(t):t +}function i(e,t,n){if(e&&u.isObject(e)&&e instanceof r)return e +var i=new r +return i.parse(e,t,n),i}function o(e){return u.isString(e)&&(e=i(e)),e instanceof r?e.format():r.prototype.format.call(e)}function a(e,t){return i(e,!1,!0).resolve(t)}function s(e,t){return e?i(e,!1,!0).resolveObject(t):t }var l=n(161),u=n(162) -t.parse=r,t.resolve=o,t.resolveObject=s,t.format=a,t.Url=i -var c=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(p),m=["'"].concat(h),g=["%","/","?",";","#"].concat(m),v=["/","?","#"],y=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={ -javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},T={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=n(163) -i.prototype.parse=function(e,t,n){if(!u.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e) -var i=e.indexOf("?"),r=i!==-1&&i",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(p),m=["'"].concat(h),g=["%","/","?",";","#"].concat(m),y=["/","?","#"],b=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={ +javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},T={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=n(163) +r.prototype.parse=function(e,t,n){if(!u.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e) +var r=e.indexOf("?"),i=r!==-1&&r127?"x":F[M] -if(!D.match(b)){var U=I.slice(0,S),L=I.slice(S+1),B=F.match(_) -B&&(U.push(B[1]),L.unshift(B[2])),L.length&&(s="/"+L.join(".")+s),this.hostname=U.join(".") -break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=l.toASCII(this.hostname)) +if(!R)for(var I=this.hostname.split(/\./),k=0,A=I.length;k127?"x":D[M] +if(!F.match(v)){var L=I.slice(0,k),U=I.slice(k+1),B=D.match(_) +B&&(L.push(B[1]),U.unshift(B[2])),U.length&&(s="/"+U.join(".")+s),this.hostname=L.join(".") +break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=l.toASCII(this.hostname)) var H=this.port?":"+this.port:"",$=this.hostname||"" -this.host=$+H,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!w[h])for(var S=0,A=m.length;S0)&&n.host.split("@") -P&&(n.auth=P.shift(),n.host=n.hostname=P.shift())}return n.search=e.search,n.query=e.query,u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(), +else if(!u.isNullOrUndefined(e.search)){if(P){n.hostname=n.host=w.shift() +var E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@") +E&&(n.auth=E.shift(),n.host=n.hostname=E.shift())}return n.search=e.search,n.query=e.query,u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(), n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n -for(var O=w.slice(-1)[0],S=(n.host||e.host||w.length>1)&&("."===O||".."===O)||""===O,k=0,j=w.length;j>=0;j--)O=w[j],"."===O?w.splice(j,1):".."===O?(w.splice(j,1),k++):k&&(w.splice(j,1),k--) -if(!b&&!_)for(;k--;k)w.unshift("..") -!b||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("") +for(var O=w.slice(-1)[0],k=(n.host||e.host||w.length>1)&&("."===O||".."===O)||""===O,S=0,j=w.length;j>=0;j--)O=w[j],"."===O?w.splice(j,1):".."===O?(w.splice(j,1),S++):S&&(w.splice(j,1),S--) +if(!v&&!_)for(;S--;S)w.unshift("..") +!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),k&&"/"!==w.join("/").substr(-1)&&w.push("") var x=""===w[0]||w[0]&&"/"===w[0].charAt(0) -if(E){n.hostname=n.host=x?"":w.length?w.shift():"" -var P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@") -P&&(n.auth=P.shift(),n.host=n.hostname=P.shift())}return b=b||n.host&&w.length,b&&!x&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")), -n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=d.exec(e) -t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var i;(function(e,r){!function(a){function o(e){throw RangeError(F[e])}function s(e,t){ -for(var n=e.length,i=[];n--;)i[n]=t(e[n]) -return i}function l(e,t){var n=e.split("@"),i="" -n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(A,".") -var r=e.split("."),a=s(r,t).join(".") -return i+a}function u(e){for(var t=[],n=0,i=e.length,r,a;n=55296&&r<=56319&&n0)&&n.host.split("@") +E&&(n.auth=E.shift(),n.host=n.hostname=E.shift())}return v=v||n.host&&w.length,v&&!x&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")), +n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=d.exec(e) +t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r;(function(e,i){!function(o){function a(e){throw RangeError(D[e])}function s(e,t){ +for(var n=e.length,r=[];n--;)r[n]=t(e[n]) +return r}function l(e,t){var n=e.split("@"),r="" +n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(A,".") +var i=e.split("."),o=s(i,t).join(".") +return r+o}function u(e){for(var t=[],n=0,r=e.length,i,o;n=55296&&i<=56319&&n65535&&(e-=65536,t+=N(e>>>10&1023|55296),e=56320|1023&e),t+=N(e)}).join("")}function d(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:T}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function p(e,t,n){ -var i=0 -for(e=n?M(e/S):e>>1,e+=M(e/t);e>D*P>>1;i+=T)e=M(e/D) -return M(i+(D+1)*e/(e+O))}function h(e){var t=[],n=e.length,i,r=0,a=j,s=k,l,u,f,h,m,g,v,y,b -for(l=e.lastIndexOf(x),l<0&&(l=0),u=0;u=128&&o("not-basic"),t.push(e.charCodeAt(u)) -for(f=l>0?l+1:0;f=n&&o("invalid-input"),v=d(e.charCodeAt(f++)),(v>=T||v>M((C-r)/m))&&o("overflow"),r+=v*m,y=g<=s?E:g>=s+P?P:g-s,!(vM(C/b)&&o("overflow"),m*=b -i=t.length+1,s=p(r-h,i,0==h),M(r/i)>C-a&&o("overflow"),a+=M(r/i),r%=i,t.splice(r++,0,a)}return c(t)}function m(e){var t,n,i,r,a,s,l,c,d,h,m,g=[],v,y,b,_ -for(e=u(e),v=e.length,t=j,n=0,a=k,s=0;s=t&&mM((C-n)/y)&&o("overflow"),n+=(l-t)*y,t=l,s=0;sC&&o("overflow"),m==t){for(c=n,d=T;h=d<=a?E:d>=a+P?P:d-a,!(c>1,e+=M(e/t);e>F*E>>1;r+=T)e=M(e/F) +return M(r+(F+1)*e/(e+O))}function h(e){var t=[],n=e.length,r,i=0,o=j,s=S,l,u,f,h,m,g,y,b,v +for(l=e.lastIndexOf(x),l<0&&(l=0),u=0;u=128&&a("not-basic"),t.push(e.charCodeAt(u)) +for(f=l>0?l+1:0;f=n&&a("invalid-input"),y=d(e.charCodeAt(f++)),(y>=T||y>M((C-i)/m))&&a("overflow"),i+=y*m,b=g<=s?P:g>=s+E?E:g-s,!(yM(C/v)&&a("overflow"),m*=v +r=t.length+1,s=p(i-h,r,0==h),M(i/r)>C-o&&a("overflow"),o+=M(i/r),i%=r,t.splice(i++,0,o)}return c(t)}function m(e){var t,n,r,i,o,s,l,c,d,h,m,g=[],y,b,v,_ +for(e=u(e),y=e.length,t=j,n=0,o=S,s=0;s=t&&mM((C-n)/b)&&a("overflow"),n+=(l-t)*b,t=l,s=0;sC&&a("overflow"),m==t){for(c=n,d=T;h=d<=o?P:d>=o+E?E:d-o,!(c= 0x80 (not a basic code point)", -"invalid-input":"Invalid input"},D=T-E,M=Math.floor,N=String.fromCharCode,U -w={version:"1.3.2",ucs2:{decode:u,encode:c},decode:h,encode:m,toASCII:v,toUnicode:g},i=function(){return w}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))}(this)}).call(t,n(15)(e),function(){return this}()) +})}var b="object"==typeof t&&t&&!t.nodeType&&t,v="object"==typeof e&&e&&!e.nodeType&&e,_="object"==typeof i&&i +_.global!==_&&_.window!==_&&_.self!==_||(o=_) +var w,C=2147483647,T=36,P=1,E=26,O=38,k=700,S=72,j=128,x="-",R=/^xn--/,I=/[^\x20-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)", +"invalid-input":"Invalid input"},F=T-P,M=Math.floor,N=String.fromCharCode,L +w={version:"1.3.2",ucs2:{decode:u,encode:c},decode:h,encode:m,toASCII:y,toUnicode:g},r=function(){return w}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(this)}).call(t,n(15)(e),function(){return this}()) },function(e,t){"use strict" e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){ "use strict" t.decode=t.parse=n(164),t.encode=t.stringify=n(165)},function(e,t){"use strict" -function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,i,r){t=t||"&",i=i||"=" -var a={} -if("string"!=typeof e||0===e.length)return a -var o=/\+/g +function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&",r=r||"=" +var o={} +if("string"!=typeof e||0===e.length)return o +var a=/\+/g e=e.split(t) var s=1e3 -r&&"number"==typeof r.maxKeys&&(s=r.maxKeys) +i&&"number"==typeof i.maxKeys&&(s=i.maxKeys) var l=e.length s>0&&l>s&&(l=s) -for(var u=0;u=0?(f=c.substr(0,d),p=c.substr(d+1)):(f=c,p=""),h=decodeURIComponent(f),m=decodeURIComponent(p),n(a,h)?Array.isArray(a[h])?a[h].push(m):a[h]=[a[h],m]:a[h]=m}return a}},function(e,t){"use strict" +for(var u=0;u=0?(f=c.substr(0,d),p=c.substr(d+1)):(f=c,p=""),h=decodeURIComponent(f),m=decodeURIComponent(p),n(o,h)?Array.isArray(o[h])?o[h].push(m):o[h]=[o[h],m]:o[h]=m}return o}},function(e,t){"use strict" var n=function(e){switch(typeof e){case"string":return e case"boolean":return e?"true":"false" case"number":return isFinite(e)?e:"" default:return""}} -e.exports=function(e,t,i,r){return t=t||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var a=encodeURIComponent(n(r))+i -return Array.isArray(e[r])?e[r].map(function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[r]))}).join(t):r?encodeURIComponent(n(r))+i+encodeURIComponent(n(e)):""}},function(e,t,n){ +e.exports=function(e,t,r,i){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(i){var o=encodeURIComponent(n(i))+r +return Array.isArray(e[i])?e[i].map(function(e){return o+encodeURIComponent(n(e))}).join(t):o+encodeURIComponent(n(e[i]))}).join(t):i?encodeURIComponent(n(i))+r+encodeURIComponent(n(e)):""}},function(e,t,n){ "use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r),o=(0,a["default"])(window),s=(0,a["default"])("html"),l=(0,a["default"])("head"),u={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/, -parseUrl:function c(e){if("object"===a["default"].type(e))return e +function r(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),o=r(i),a=(0,o["default"])(window),s=(0,o["default"])("html"),l=(0,o["default"])("head"),u={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/, +parseUrl:function c(e){if("object"===o["default"].type(e))return e var t=u.urlParseRE.exec(e||"")||[] return{href:t[0]||"",hrefNoHash:t[1]||"",hrefNoSearch:t[2]||"",domain:t[3]||"",protocol:t[4]||"",doubleSlash:t[5]||"",authority:t[6]||"",username:t[8]||"",password:t[9]||"",host:t[10]||"",hostname:t[11]||"", port:t[12]||"",pathname:t[13]||"",directory:t[14]||"",filename:t[15]||"",search:t[16]||"",hash:t[17]||""}},makePathAbsolute:function d(e,t){if(e&&"/"===e.charAt(0))return e e=e||"",t=t?t.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"" -for(var n=t?t.split("/"):[],i=e.split("/"),r=0;r') -t.bind("load",function(n){"about:blank"!=(0,r["default"])(this).attr("src")&&(t.addClass("loaded").show(),e._resizeIframe(),e.uiDialog.removeClass("loading"))}).hide(),this.options.dialogExtraClass&&this.uiDialog.addClass(this.options.dialogExtraClass), -this.element.append(t),this.options.iframeUrl&&this.element.css("overflow","hidden")},open:function o(){r["default"].ui.dialog.prototype.open.call(this) +u.stripHash(e).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function w(e){var t="&"+o["default"].mobile.subPageUrlKey +return e&&e.split(t)[0].split(dialogHashKey)[0]},set:function C(e){location.hash=e},isPath:function T(e){return/\//.test(e)},clean:function P(e){return e.replace(document.domain,"")},stripHash:function E(e){ +return e.replace(/^#/,"")},cleanHash:function O(e){return u.stripHash(e.replace(/\?.*$/,"").replace(dialogHashKey,""))},isExternal:function k(e){var t=u.parseUrl(e) +return!(!t.protocol||t.domain===document.domain)},hasProtocol:function S(e){return/^(:?\w+:)/.test(e)}} +o["default"].path=u},function(e,t,n){(function(e){"use strict" +function t(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),i=t(r) +n(168),i["default"].widget("ssui.ssdialog",i["default"].ui.dialog,{options:{iframeUrl:"",reloadOnOpen:!0,dialogExtraClass:"",modal:!0,bgiframe:!0,autoOpen:!1,autoPosition:!0,minWidth:500,maxWidth:800,minHeight:300, +maxHeight:700,widthRatio:.8,heightRatio:.8,resizable:!1},_create:function o(){i["default"].ui.dialog.prototype._create.call(this) +var e=this,t=(0,i["default"])('') +t.bind("load",function(n){"about:blank"!=(0,i["default"])(this).attr("src")&&(t.addClass("loaded").show(),e._resizeIframe(),e.uiDialog.removeClass("loading"))}).hide(),this.options.dialogExtraClass&&this.uiDialog.addClass(this.options.dialogExtraClass), +this.element.append(t),this.options.iframeUrl&&this.element.css("overflow","hidden")},open:function a(){i["default"].ui.dialog.prototype.open.call(this) var e=this,t=this.element.children("iframe") -!this.options.iframeUrl||t.hasClass("loaded")&&!this.options.reloadOnOpen||(t.hide(),t.attr("src",this.options.iframeUrl),this.uiDialog.addClass("loading")),(0,r["default"])(window).bind("resize.ssdialog",function(){ -e._resizeIframe()})},close:function s(){r["default"].ui.dialog.prototype.close.call(this),this.uiDialog.unbind("resize.ssdialog"),(0,r["default"])(window).unbind("resize.ssdialog")},_resizeIframe:function l(){ -var t={},n,i,a=this.element.children("iframe") -this.options.widthRatio&&(n=(0,r["default"])(window).width()*this.options.widthRatio,this.options.minWidth&&nthis.options.maxWidth?t.width=this.options.maxWidth:t.width=n), -this.options.heightRatio&&(i=(0,r["default"])(window).height()*this.options.heightRatio,this.options.minHeight&&ithis.options.maxHeight?t.height=this.options.maxHeight:t.height=i), -e.isEmptyObject(t)||(this._setOptions(t),a.attr("width",t.width-parseFloat(this.element.css("paddingLeft"))-parseFloat(this.element.css("paddingRight"))),a.attr("height",t.height-parseFloat(this.element.css("paddingTop"))-parseFloat(this.element.css("paddingBottom"))), -this.options.autoPosition&&this._setOption("position",this.options.position))}}),r["default"].widget("ssui.titlebar",{_create:function u(){this.originalTitle=this.element.attr("title") -var e=this,t=this.options,n=t.title||this.originalTitle||" ",i=r["default"].ui.dialog.getTitleId(this.element) +!this.options.iframeUrl||t.hasClass("loaded")&&!this.options.reloadOnOpen||(t.hide(),t.attr("src",this.options.iframeUrl),this.uiDialog.addClass("loading")),(0,i["default"])(window).bind("resize.ssdialog",function(){ +e._resizeIframe()})},close:function s(){i["default"].ui.dialog.prototype.close.call(this),this.uiDialog.unbind("resize.ssdialog"),(0,i["default"])(window).unbind("resize.ssdialog")},_resizeIframe:function l(){ +var t={},n,r,o=this.element.children("iframe") +this.options.widthRatio&&(n=(0,i["default"])(window).width()*this.options.widthRatio,this.options.minWidth&&nthis.options.maxWidth?t.width=this.options.maxWidth:t.width=n), +this.options.heightRatio&&(r=(0,i["default"])(window).height()*this.options.heightRatio,this.options.minHeight&&rthis.options.maxHeight?t.height=this.options.maxHeight:t.height=r), +e.isEmptyObject(t)||(this._setOptions(t),o.attr("width",t.width-parseFloat(this.element.css("paddingLeft"))-parseFloat(this.element.css("paddingRight"))),o.attr("height",t.height-parseFloat(this.element.css("paddingTop"))-parseFloat(this.element.css("paddingBottom"))), +this.options.autoPosition&&this._setOption("position",this.options.position))}}),i["default"].widget("ssui.titlebar",{_create:function u(){this.originalTitle=this.element.attr("title") +var e=this,t=this.options,n=t.title||this.originalTitle||" ",r=i["default"].ui.dialog.getTitleId(this.element) this.element.parent().addClass("ui-dialog") -var a=this.element.addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix") -if(t.closeButton)var o=(0,r["default"])('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){o.addClass("ui-state-hover")},function(){o.removeClass("ui-state-hover") +var o=this.element.addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix") +if(t.closeButton)var a=(0,i["default"])('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){a.addClass("ui-state-hover")},function(){a.removeClass("ui-state-hover") -}).focus(function(){o.addClass("ui-state-focus")}).blur(function(){o.removeClass("ui-state-focus")}).mousedown(function(e){e.stopPropagation()}).appendTo(a),s=(this.uiDialogTitlebarCloseText=(0,r["default"])("")).addClass("ui-icon ui-icon-closethick").text(t.closeText).appendTo(o) +}).focus(function(){a.addClass("ui-state-focus")}).blur(function(){a.removeClass("ui-state-focus")}).mousedown(function(e){e.stopPropagation()}).appendTo(o),s=(this.uiDialogTitlebarCloseText=(0,i["default"])("")).addClass("ui-icon ui-icon-closethick").text(t.closeText).appendTo(a) -var l=(0,r["default"])("").addClass("ui-dialog-title").attr("id",i).html(n).prependTo(a) -a.find("*").add(a).disableSelection()},destroy:function c(){this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.originalTitle&&this.element.attr("title",this.originalTitle) +var l=(0,i["default"])("").addClass("ui-dialog-title").attr("id",r).html(n).prependTo(o) +o.find("*").add(o).disableSelection()},destroy:function c(){this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.originalTitle&&this.element.attr("title",this.originalTitle) -}}),r["default"].extend(r["default"].ssui.titlebar,{version:"0.0.1",options:{title:"",closeButton:!1,closeText:"close"},uuid:0,getTitleId:function d(e){return"ui-dialog-title-"+(e.attr("id")||++this.uuid) +}}),i["default"].extend(i["default"].ssui.titlebar,{version:"0.0.1",options:{title:"",closeButton:!1,closeText:"close"},uuid:0,getTitleId:function d(e){return"ui-dialog-title-"+(e.attr("id")||++this.uuid) }})}).call(t,n(1))},,function(module,exports,__webpack_require__){(function(jQuery){"use strict" function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e @@ -1020,32 +1021,32 @@ function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}var _t },_jQuery=__webpack_require__(1),_jQuery2=_interopRequireDefault(_jQuery) __webpack_require__(167) var windowWidth,windowHeight -_jQuery2["default"].noConflict(),window.ss=window.ss||{},window.ss.debounce=function(e,t,n){var i,r,a,o=function s(){i=null,n||e.apply(r,a)} -return function(){var s=n&&!i -r=this,a=arguments,clearTimeout(i),i=setTimeout(o,t),s&&e.apply(r,a)}},(0,_jQuery2["default"])(window).bind("resize.leftandmain",function(e){(0,_jQuery2["default"])(".cms-container").trigger("windowresize") +_jQuery2["default"].noConflict(),window.ss=window.ss||{},window.ss.debounce=function(e,t,n){var r,i,o,a=function s(){r=null,n||e.apply(i,o)} +return function(){var s=n&&!r +i=this,o=arguments,clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}},(0,_jQuery2["default"])(window).bind("resize.leftandmain",function(e){(0,_jQuery2["default"])(".cms-container").trigger("windowresize") -}),_jQuery2["default"].entwine.warningLevel=_jQuery2["default"].entwine.WARN_LEVEL_BESTPRACTISE,_jQuery2["default"].entwine("ss",function($){$(window).on("message",function(e){var t,n=e.originalEvent,i="object"===_typeof(n.data)?n.data:JSON.parse(n.data) +}),_jQuery2["default"].entwine.warningLevel=_jQuery2["default"].entwine.WARN_LEVEL_BESTPRACTISE,_jQuery2["default"].entwine("ss",function($){$(window).on("message",function(e){var t,n=e.originalEvent,r="object"===_typeof(n.data)?n.data:JSON.parse(n.data) -if($.path.parseUrl(window.location.href).domain===$.path.parseUrl(n.origin).domain)switch(t=$("undefined"==typeof i.target?window:i.target),i.type){case"event":t.trigger(i.event,i.data) +if($.path.parseUrl(window.location.href).domain===$.path.parseUrl(n.origin).domain)switch(t=$("undefined"==typeof r.target?window:r.target),r.type){case"event":t.trigger(r.event,r.data) break -case"callback":t[i.callback].call(t,i.data)}}) +case"callback":t[r.callback].call(t,r.data)}}) var positionLoadingSpinner=function e(){var e=120,t=$(".ss-loading-screen .loading-animation"),n=($(window).height()-t.height())/2 t.css("top",n+e),t.show()},applyChosen=function t(e){e.is(":visible")?e.addClass("has-chosen").chosen({allow_single_deselect:!0,disable_search_threshold:20,display_disabled_options:!0,width:"100%"}):setTimeout(function(){ e.show(),t(e)},500)},isSameUrl=function n(e,t){var n=$("base").attr("href") e=$.path.isAbsoluteUrl(e)?e:$.path.makeUrlAbsolute(e,n),t=$.path.isAbsoluteUrl(t)?t:$.path.makeUrlAbsolute(t,n) -var i=$.path.parseUrl(e),r=$.path.parseUrl(t) -return i.pathname.replace(/\/*$/,"")==r.pathname.replace(/\/*$/,"")&&i.search==r.search},ajaxCompleteEvent=window.ss.debounce(function(){$(window).trigger("ajaxComplete")},1e3,!0) -$(window).bind("resize",positionLoadingSpinner).trigger("resize"),$(document).ajaxComplete(function(e,t,n){var i=document.URL,r=t.getResponseHeader("X-ControllerURL"),a=n.url,o=null!==t.getResponseHeader("X-Status")?t.getResponseHeader("X-Status"):t.statusText,s=t.status<200||t.status>399?"bad":"good",l=["OK","success","HTTP/2.0 200"] +var r=$.path.parseUrl(e),i=$.path.parseUrl(t) +return r.pathname.replace(/\/*$/,"")==i.pathname.replace(/\/*$/,"")&&r.search==i.search},ajaxCompleteEvent=window.ss.debounce(function(){$(window).trigger("ajaxComplete")},1e3,!0) +$(window).bind("resize",positionLoadingSpinner).trigger("resize"),$(document).ajaxComplete(function(e,t,n){var r=document.URL,i=t.getResponseHeader("X-ControllerURL"),o=n.url,a=null!==t.getResponseHeader("X-Status")?t.getResponseHeader("X-Status"):t.statusText,s=t.status<200||t.status>399?"bad":"good",l=["OK","success","HTTP/2.0 200"] -return null===r||isSameUrl(i,r)&&isSameUrl(a,r)||window.ss.router.show(r,{id:(new Date).getTime()+String(Math.random()).replace(/\D/g,""),pjax:t.getResponseHeader("X-Pjax")?t.getResponseHeader("X-Pjax"):n.headers["X-Pjax"] -}),t.getResponseHeader("X-Reauthenticate")?void $(".cms-container").showLoginDialog():(0!==t.status&&o&&$.inArray(o,l)===-1&&statusMessage(decodeURIComponent(o),s),void ajaxCompleteEvent(this))}),$(".cms-container").entwine({ -StateChangeXHR:null,FragmentXHR:{},StateChangeCount:0,LayoutOptions:{minContentWidth:940,minPreviewWidth:400,mode:"content"},onadd:function i(){return $.browser.msie&&parseInt($.browser.version,10)<8?($(".ss-loading-screen").append('

Your browser is not compatible with the CMS interface. Please use Internet Explorer 8+, Google Chrome or Mozilla Firefox.

').css("z-index",$(".ss-loading-screen").css("z-index")+1), +return null===i||isSameUrl(r,i)&&isSameUrl(o,i)||window.ss.router.show(i,{id:(new Date).getTime()+String(Math.random()).replace(/\D/g,""),pjax:t.getResponseHeader("X-Pjax")?t.getResponseHeader("X-Pjax"):n.headers["X-Pjax"] +}),t.getResponseHeader("X-Reauthenticate")?void $(".cms-container").showLoginDialog():(0!==t.status&&a&&$.inArray(a,l)===-1&&statusMessage(decodeURIComponent(a),s),void ajaxCompleteEvent(this))}),$(".cms-container").entwine({ +StateChangeXHR:null,FragmentXHR:{},StateChangeCount:0,LayoutOptions:{minContentWidth:940,minPreviewWidth:400,mode:"content"},onadd:function r(){return $.browser.msie&&parseInt($.browser.version,10)<8?($(".ss-loading-screen").append('

Your browser is not compatible with the CMS interface. Please use Internet Explorer 8+, Google Chrome or Mozilla Firefox.

').css("z-index",$(".ss-loading-screen").css("z-index")+1), $(".loading-animation").remove(),void this._super()):(this.redraw(),$(".ss-loading-screen").hide(),$("body").removeClass("loading"),$(window).unbind("resize",positionLoadingSpinner),this.restoreTabState(), -void this._super())},onwindowresize:function r(){this.redraw()},"from .cms-panel":{ontoggle:function a(){this.redraw()}},"from .cms-container":{onaftersubmitform:function o(){this.redraw()}},updateLayoutOptions:function s(e){ +void this._super())},onwindowresize:function i(){this.redraw()},"from .cms-panel":{ontoggle:function o(){this.redraw()}},"from .cms-container":{onaftersubmitform:function a(){this.redraw()}},updateLayoutOptions:function s(e){ var t=this.getLayoutOptions(),n=!1 -for(var i in e)t[i]!==e[i]&&(t[i]=e[i],n=!0) +for(var r in e)t[r]!==e[r]&&(t[r]=e[r],n=!0) n&&this.redraw()},clearViewMode:function l(){this.removeClass("cms-container--split-mode"),this.removeClass("cms-container--preview-mode"),this.removeClass("cms-container--content-mode")},splitViewMode:function u(){ this.updateLayoutOptions({mode:"split"})},contentViewMode:function c(){this.updateLayoutOptions({mode:"content"})},previewMode:function d(){this.updateLayoutOptions({mode:"preview"})},RedrawSuppression:!1, redraw:function f(){if(!this.getRedrawSuppression()){window.debug&&console.log("redraw",this.attr("class"),this.get(0)) @@ -1054,89 +1055,89 @@ e||(this.find(".cms-panel-layout").redraw(),this.find(".cms-content-fields[data- }},setProperMode:function p(){var e=this.getLayoutOptions(),t=e.mode this.clearViewMode() -var n=this.find(".cms-content"),i=this.find(".cms-preview") -if(n.css({"min-width":0}),i.css({"min-width":0}),n.width()+i.width()>=e.minContentWidth+e.minPreviewWidth)n.css({"min-width":e.minContentWidth}),i.css({"min-width":e.minPreviewWidth}),i.trigger("enable") -else if(i.trigger("disable"),"split"==t)return i.trigger("forcecontent"),!0 -return this.addClass("cms-container--"+t+"-mode"),!1},checkCanNavigate:function h(e){var t=this._findFragments(e||["Content"]),n=t.find(":data(changetracker)").add(t.filter(":data(changetracker)")),i=!0 +var n=this.find(".cms-content"),r=this.find(".cms-preview") +if(n.css({"min-width":0}),r.css({"min-width":0}),n.width()+r.width()>=e.minContentWidth+e.minPreviewWidth)n.css({"min-width":e.minContentWidth}),r.css({"min-width":e.minPreviewWidth}),r.trigger("enable") +else if(r.trigger("disable"),"split"==t)return r.trigger("forcecontent"),!0 +return this.addClass("cms-container--"+t+"-mode"),!1},checkCanNavigate:function h(e){var t=this._findFragments(e||["Content"]),n=t.find(":data(changetracker)").add(t.filter(":data(changetracker)")),r=!0 -return!n.length||(n.each(function(){$(this).confirmUnsavedChanges()||(i=!1)}),i)},loadPanel:function m(e){var t=arguments.length<=1||void 0===arguments[1]?"":arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],i=arguments[3],r=arguments.length<=4||void 0===arguments[4]?document.URL:arguments[4] +return!n.length||(n.each(function(){$(this).confirmUnsavedChanges()||(r=!1)}),r)},loadPanel:function m(e){var t=arguments.length<=1||void 0===arguments[1]?"":arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=arguments[3],i=arguments.length<=4||void 0===arguments[4]?document.URL:arguments[4] -this.checkCanNavigate(n.pjax?n.pjax.split(","):["Content"])&&(this.saveTabState(),n.__forceReferer=r,i&&(n.__forceReload=1+Math.random()),window.ss.router.show(e,n))},reloadCurrentPanel:function g(){this.loadPanel(document.URL,null,null,!0) +this.checkCanNavigate(n.pjax?n.pjax.split(","):["Content"])&&(this.saveTabState(),n.__forceReferer=i,r&&(n.__forceReload=1+Math.random()),window.ss.router.show(e,n))},reloadCurrentPanel:function g(){this.loadPanel(document.URL,null,null,!0) -},submitForm:function v(e,t,n,i){var r=this +},submitForm:function y(e,t,n,r){var i=this t||(t=this.find(".btn-toolbar :submit[name=action_save]")),t||(t=this.find(".btn-toolbar :submit:first")),e.trigger("beforesubmitform"),this.trigger("submitform",{form:e,button:t}),$(t).addClass("btn--loading loading"), $(t).is("button")&&($(t).data("original-text",$(t).text()),$(t).text(""),$(t).append($('
')), $(t).css($(t).outerWidth()+"px")) -var a=e.validate(),o=function l(){$(t).removeClass("btn--loading loading"),$(t).find(".btn__loading-icon").remove(),$(t).css("width","auto"),$(t).text($(t).data("original-text"))} -"undefined"==typeof a||a||(statusMessage("Validation failed.","bad"),o()) +var o=e.validate(),a=function l(){$(t).removeClass("btn--loading loading"),$(t).find(".btn__loading-icon").remove(),$(t).css("width","auto"),$(t).text($(t).data("original-text"))} +"undefined"==typeof o||o||(statusMessage("Validation failed.","bad"),a()) var s=e.serializeArray() return s.push({name:$(t).attr("name"),value:"1"}),s.push({name:"BackURL",value:document.URL.replace(/\/$/,"")}),this.saveTabState(),jQuery.ajax(jQuery.extend({headers:{"X-Pjax":"CurrentForm,Breadcrumbs" -},url:e.attr("action"),data:s,type:"POST",complete:function u(){o()},success:function c(t,i,a){o(),e.removeClass("changed"),n&&n(t,i,a) -var l=r.handleAjaxResponse(t,i,a) -l&&l.filter("form").trigger("aftersubmitform",{status:i,xhr:a,formData:s})}},i)),!1},LastState:null,PauseState:!1,handleStateChange:function y(e){var t=arguments.length<=1||void 0===arguments[1]?window.history.state:arguments[1] +},url:e.attr("action"),data:s,type:"POST",complete:function u(){a()},success:function c(t,r,o){a(),e.removeClass("changed"),n&&n(t,r,o) +var l=i.handleAjaxResponse(t,r,o) +l&&l.filter("form").trigger("aftersubmitform",{status:r,xhr:o,formData:s})}},r)),!1},LastState:null,PauseState:!1,handleStateChange:function b(e){var t=arguments.length<=1||void 0===arguments[1]?window.history.state:arguments[1] if(!this.getPauseState()){this.getStateChangeXHR()&&this.getStateChangeXHR().abort() -var n=this,i=t.pjax||"Content",r={},a=i.split(","),o=this._findFragments(a) +var n=this,r=t.pjax||"Content",i={},o=r.split(","),a=this._findFragments(o) if(this.setStateChangeCount(this.getStateChangeCount()+1),!this.checkCanNavigate()){var s=this.getLastState() -return this.setPauseState(!0),s&&s.path?window.ss.router.show(s.path):window.ss.router.back(),void this.setPauseState(!1)}if(this.setLastState(t),o.length=0})),i.removeClass(o.join(" ")).addClass(l.join(" ")),r&&i.attr("style",r) -var u=i.find("style").detach() -u.length&&$(document).find("head").append(u),n.replaceWith(i)}) +try{$.each(p,function(e,t){var n=$("[data-pjax-fragment]").filter(function(){return $.inArray(e,$(this).data("pjaxFragment").split(" "))!=-1}),r=$(t) +if(h?h.add(r):h=r,r.find(".cms-container").length)throw'Content loaded via ajax is not allowed to contain tags matching the ".cms-container" selector to avoid infinite loops' +var i=n.attr("style"),o=n.parent(),a=["east","west","center","north","south","column-hidden"],s=n.attr("class"),l=[] +s&&(l=$.grep(s.split(" "),function(e){return $.inArray(e,a)>=0})),r.removeClass(a.join(" ")).addClass(l.join(" ")),i&&r.attr("style",i) +var u=r.find("style").detach() +u.length&&$(document).find("head").append(u),n.replaceWith(r)}) var m=h.filter("form") -m.hasClass("cms-tabset")&&m.removeClass("cms-tabset").addClass("cms-tabset")}finally{this.setRedrawSuppression(!1)}return this.redraw(),this.restoreTabState(i&&"undefined"!=typeof i.tabState?i.tabState:null), +m.hasClass("cms-tabset")&&m.removeClass("cms-tabset").addClass("cms-tabset")}finally{this.setRedrawSuppression(!1)}return this.redraw(),this.restoreTabState(r&&"undefined"!=typeof r.tabState?r.tabState:null), h}},_findFragments:function w(e){return $("[data-pjax-fragment]").filter(function(){var t,n=$(this).data("pjaxFragment").split(" ") for(t in e)if($.inArray(e[t],n)!=-1)return!0 return!1})},refresh:function C(){$(window).trigger("statechange"),$(this).redraw()},saveTabState:function T(){if("undefined"!=typeof window.sessionStorage&&null!==window.sessionStorage){var e=[],t=this._tabStateUrl() -if(this.find(".cms-tabset,.ss-tabset").each(function(t,n){var i=$(n).attr("id") -i&&$(n).data("tabs")&&($(n).data("ignoreTabState")||$(n).getIgnoreTabState()||e.push({id:i,selected:$(n).tabs("option","selected")}))}),e){var n="tabs-"+t -try{window.sessionStorage.setItem(n,JSON.stringify(e))}catch(i){if(i.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.sessionStorage.length)return -throw i}}}},restoreTabState:function E(e){var t=this,n=this._tabStateUrl(),i="undefined"!=typeof window.sessionStorage&&window.sessionStorage,r=i?window.sessionStorage.getItem("tabs-"+n):null,a=!!r&&JSON.parse(r) +if(this.find(".cms-tabset,.ss-tabset").each(function(t,n){var r=$(n).attr("id") +r&&$(n).data("tabs")&&($(n).data("ignoreTabState")||$(n).getIgnoreTabState()||e.push({id:r,selected:$(n).tabs("option","selected")}))}),e){var n="tabs-"+t +try{window.sessionStorage.setItem(n,JSON.stringify(e))}catch(r){if(r.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.sessionStorage.length)return +throw r}}}},restoreTabState:function P(e){var t=this,n=this._tabStateUrl(),r="undefined"!=typeof window.sessionStorage&&window.sessionStorage,i=r?window.sessionStorage.getItem("tabs-"+n):null,o=!!i&&JSON.parse(i) -this.find(".cms-tabset, .ss-tabset").each(function(){var n,i,r=$(this),o=r.attr("id"),s=r.children("ul").children("li.ss-tabs-force-active") -r.data("tabs")&&(r.tabs("refresh"),s.length?n=s.first().index():e&&e[o]?(i=r.find(e[o].tabSelector),i.length&&(n=i.index())):a&&$.each(a,function(e,t){o==t.id&&(n=t.selected)}),null!==n&&(r.tabs("option","active",n), -t.trigger("tabstaterestored")))})},clearTabState:function P(e){if("undefined"!=typeof window.sessionStorage){var t=window.sessionStorage +this.find(".cms-tabset, .ss-tabset").each(function(){var n,r,i=$(this),a=i.attr("id"),s=i.children("ul").children("li.ss-tabs-force-active") +i.data("tabs")&&(i.tabs("refresh"),s.length?n=s.first().index():e&&e[a]?(r=i.find(e[a].tabSelector),r.length&&(n=r.index())):o&&$.each(o,function(e,t){a==t.id&&(n=t.selected)}),null!==n&&(i.tabs("option","active",n), +t.trigger("tabstaterestored")))})},clearTabState:function E(e){if("undefined"!=typeof window.sessionStorage){var t=window.sessionStorage if(e)t.removeItem("tabs-"+e) -else for(var n=0;n
'),t.attr("id",(new Date).getTime()),t.data("url",n),$("body").append(t) }}),$(".leftandmain-logindialog").entwine({onmatch:function j(){this._super(),this.ssdialog({iframeUrl:this.data("url"),dialogClass:"leftandmain-logindialog-dialog",autoOpen:!0,minWidth:500,maxWidth:500, minHeight:370,maxHeight:400,closeOnEscape:!1,open:function e(){$(".ui-widget-overlay").addClass("leftandmain-logindialog-overlay")},close:function t(){$(".ui-widget-overlay").removeClass("leftandmain-logindialog-overlay") -}})},onunmatch:function x(){this._super()},open:function R(){this.ssdialog("open")},close:function I(){this.ssdialog("close")},toggle:function A(e){this.is(":visible")?this.close():this.open()},reauthenticate:function F(e){ +}})},onunmatch:function x(){this._super()},open:function R(){this.ssdialog("open")},close:function I(){this.ssdialog("close")},toggle:function A(e){this.is(":visible")?this.close():this.open()},reauthenticate:function D(e){ "undefined"!=typeof e.SecurityID&&$(":input[name=SecurityID]").val(e.SecurityID),"undefined"!=typeof e.TempID&&$("body").data("member-tempid",e.TempID),this.close()}}),$("form.loading,.cms-content.loading,.cms-content-fields.loading,.cms-content-view.loading").entwine({ -onmatch:function D(){this.append('
'),this._super()},onunmatch:function M(){this.find(".cms-content-loading-overlay,.cms-content-loading-spinner").remove(), +onmatch:function F(){this.append('
'),this._super()},onunmatch:function M(){this.find(".cms-content-loading-overlay,.cms-content-loading-spinner").remove(), this._super()}}),$(".cms .cms-panel-link").entwine({onclick:function N(e){if($(this).hasClass("external-link"))return void e.stopPropagation() -var t=this.attr("href"),n=t&&!t.match(/^#/)?t:this.data("href"),i={pjax:this.data("pjaxTarget")} -$(".cms-container").loadPanel(n,null,i),e.preventDefault()}}),$(".cms .ss-ui-button-ajax").entwine({onclick:function onclick(e){$(this).removeClass("ui-button-text-only"),$(this).addClass("ss-ui-button-loading ui-button-text-icons") +var t=this.attr("href"),n=t&&!t.match(/^#/)?t:this.data("href"),r={pjax:this.data("pjaxTarget")} +$(".cms-container").loadPanel(n,null,r),e.preventDefault()}}),$(".cms .ss-ui-button-ajax").entwine({onclick:function onclick(e){$(this).removeClass("ui-button-text-only"),$(this).addClass("ss-ui-button-loading ui-button-text-icons") var loading=$(this).find(".ss-ui-loading-icon") @@ -1145,24 +1146,24 @@ var href=this.attr("href"),url=href?href:this.data("href") jQuery.ajax({url:url,complete:function complete(xmlhttp,status){var msg=xmlhttp.getResponseHeader("X-Status")?xmlhttp.getResponseHeader("X-Status"):xmlhttp.responseText try{"undefined"!=typeof msg&&null!==msg&&eval(msg)}catch(e){}loading.hide(),$(".cms-container").refresh(),$(this).removeClass("ss-ui-button-loading ui-button-text-icons"),$(this).addClass("ui-button-text-only") -},dataType:"html"}),e.preventDefault()}}),$(".cms .ss-ui-dialog-link").entwine({UUID:null,onmatch:function U(){this._super(),this.setUUID((new Date).getTime())},onunmatch:function L(){this._super()},onclick:function B(){ +},dataType:"html"}),e.preventDefault()}}),$(".cms .ss-ui-dialog-link").entwine({UUID:null,onmatch:function L(){this._super(),this.setUUID((new Date).getTime())},onunmatch:function U(){this._super()},onclick:function B(){ this._super() var e=this,t="ss-ui-dialog-"+this.getUUID(),n=$("#"+t) n.length||(n=$('
'),$("body").append(n)) -var i=this.data("popupclass")?this.data("popupclass"):"" -return n.ssdialog({iframeUrl:this.attr("href"),autoOpen:!0,dialogExtraClass:i}),!1}}),$(".cms .field.date input.text").entwine({onmatch:function H(){var e=$(this).parents(".field.date:first"),t=e.data() +var r=this.data("popupclass")?this.data("popupclass"):"" +return n.ssdialog({iframeUrl:this.attr("href"),autoOpen:!0,dialogExtraClass:r}),!1}}),$(".cms .field.date input.text").entwine({onmatch:function H(){var e=$(this).parents(".field.date:first"),t=e.data() return t.showcalendar?(t.showOn="button",t.locale&&$.datepicker.regional[t.locale]&&(t=$.extend(t,$.datepicker.regional[t.locale],{})),this.prop("disabled")||this.prop("readonly")||$(this).datepicker(t), void this._super()):void this._super()},onunmatch:function q(){this._super()}}),$(".cms .field.dropdown select, .cms .field select[multiple], .form__fieldgroup-item select.dropdown").entwine({onmatch:function V(){ return this.is(".no-chosen")?void this._super():(this.data("placeholder")||this.data("placeholder"," "),this.removeClass("has-chosen").chosen("destroy"),this.siblings(".chosen-container").remove(),applyChosen(this), void this._super())},onunmatch:function G(){this._super()}}),$(".cms-panel-layout").entwine({redraw:function z(){window.debug&&console.log("redraw",this.attr("class"),this.get(0))}}),$(".cms .grid-field").entwine({ -showDetailView:function W(e){var t=window.location.search.replace(/^\?/,"") -t&&(e=$.path.addSearchParams(e,t)),$(".cms-container").loadPanel(e)}}),$(".cms-search-form").entwine({onsubmit:function X(e){var t,n +showDetailView:function X(e){var t=window.location.search.replace(/^\?/,"") +t&&(e=$.path.addSearchParams(e,t)),$(".cms-container").loadPanel(e)}}),$(".cms-search-form").entwine({onsubmit:function W(e){var t,n t=this.find(":input:not(:submit)").filter(function(){var e=$.grep($(this).fieldValue(),function(e){return e}) return e.length}),n=this.attr("action"),t.length&&(n=$.path.addSearchParams(n,t.serialize().replace("+","%20"))) -var i=this.closest(".cms-container") -return i.find(".cms-edit-form").tabs("select",0),i.loadPanel(n,"",{},!0),!1}}),$(".cms-search-form button[type=reset], .cms-search-form input[type=reset]").entwine({onclick:function Q(e){e.preventDefault() +var r=this.closest(".cms-container") +return r.find(".cms-edit-form").tabs("select",0),r.loadPanel(n,"",{},!0),!1}}),$(".cms-search-form button[type=reset], .cms-search-form input[type=reset]").entwine({onclick:function Q(e){e.preventDefault() var t=$(this).parents("form") @@ -1173,33 +1174,33 @@ var e=this,t=this.data("url") if(!t)throw'Elements of class .cms-panel-deferred need a "data-url" attribute' this._super(),this.children().length||(this.data("deferredNoCache")||"undefined"==typeof window._panelDeferredCache[t]?(this.addClass("loading"),$.ajax({url:t,complete:function n(){e.removeClass("loading") -},success:function i(t,n,r){e.html(t)}})):this.html(window._panelDeferredCache[t]))}}),$(".cms-tabset").entwine({onadd:function Z(){this.redrawTabs(),this._super()},onremove:function ee(){this.data("tabs")&&this.tabs("destroy"), +},success:function r(t,n,i){e.html(t)}})):this.html(window._panelDeferredCache[t]))}}),$(".cms-tabset").entwine({onadd:function Z(){this.redrawTabs(),this._super()},onremove:function ee(){this.data("tabs")&&this.tabs("destroy"), this._super()},redrawTabs:function te(){this.rewriteHashlinks() var e=this.attr("id"),t=this.find("ul:first .ui-tabs-active") -this.data("tabs")||this.tabs({active:t.index()!=-1?t.index():0,beforeLoad:function n(e,t){return!1},beforeActivate:function i(e,t){var n=t.oldTab.find(".cms-panel-link") -if(n&&1===n.length)return!1},activate:function r(e,t){var n=$(this).closest("form").find(".btn-toolbar") +this.data("tabs")||this.tabs({active:t.index()!=-1?t.index():0,beforeLoad:function n(e,t){return!1},beforeActivate:function r(e,t){var n=t.oldTab.find(".cms-panel-link") +if(n&&1===n.length)return!1},activate:function i(e,t){var n=$(this).closest("form").find(".btn-toolbar") $(t.newTab).closest("li").hasClass("readonly")?n.fadeOut():n.show()}}),this.trigger("afterredrawtabs")},rewriteHashlinks:function ne(){$(this).find("ul a").each(function(){if($(this).attr("href")){var e=$(this).attr("href").match(/#.*/) -e&&$(this).attr("href",document.location.href.replace(/#.*/,"")+e[0])}})}}),$("#filters-button").entwine({onmatch:function ie(){this._super(),this.data("collapsed",!0),this.data("animating",!1)},onunmatch:function re(){ -this._super()},showHide:function ae(){var e=this,t=$(".cms-content-filters").first(),n=this.data("collapsed") -n?(this.addClass("active"),t.css("display","block")):(this.removeClass("active"),t.css("display","")),e.data("collapsed",!n)},onclick:function oe(){this.showHide()}})}) +e&&$(this).attr("href",document.location.href.replace(/#.*/,"")+e[0])}})}}),$("#filters-button").entwine({onmatch:function re(){this._super(),this.data("collapsed",!0),this.data("animating",!1)},onunmatch:function ie(){ +this._super()},showHide:function oe(){var e=this,t=$(".cms-content-filters").first(),n=this.data("collapsed") +n?(this.addClass("active"),t.css("display","block")):(this.removeClass("active"),t.css("display","")),e.data("collapsed",!n)},onclick:function ae(){this.showHide()}})}) var statusMessage=function e(t,n){t=jQuery("
").text(t).html(),jQuery.noticeAdd({text:t,type:n,stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}}).call(exports,__webpack_require__(1))},function(e,t,n){ "use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) -a["default"].entwine("ss",function(e){e(".ss-tabset.ss-ui-action-tabset").entwine({IgnoreTabState:!0,onadd:function t(){this._super(),this.tabs({collapsible:!0,active:!1})},onremove:function n(){var t=e(".cms-container").find("iframe") +function r(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),o=r(i) +o["default"].entwine("ss",function(e){e(".ss-tabset.ss-ui-action-tabset").entwine({IgnoreTabState:!0,onadd:function t(){this._super(),this.tabs({collapsible:!0,active:!1})},onremove:function n(){var t=e(".cms-container").find("iframe") -t.each(function(t,n){try{e(n).contents().off("click.ss-ui-action-tabset")}catch(i){console.warn("Unable to access iframe, possible https mis-match")}}),e(document).off("click.ss-ui-action-tabset"),this._super() +t.each(function(t,n){try{e(n).contents().off("click.ss-ui-action-tabset")}catch(r){console.warn("Unable to access iframe, possible https mis-match")}}),e(document).off("click.ss-ui-action-tabset"),this._super() -},ontabsbeforeactivate:function i(e,t){this.riseUp(e,t)},onclick:function r(e,t){this.attachCloseHandler(e,t)},attachCloseHandler:function a(t,n){var i=this,r=e(".cms-container").find("iframe"),a -a=function o(t){var n,r -n=e(t.target).closest(".ss-ui-action-tabset .ui-tabs-panel"),e(t.target).closest(i).length||n.length||(i.tabs("option","active",!1),r=e(".cms-container").find("iframe"),r.each(function(t,n){e(n).contents().off("click.ss-ui-action-tabset",a) +},ontabsbeforeactivate:function r(e,t){this.riseUp(e,t)},onclick:function i(e,t){this.attachCloseHandler(e,t)},attachCloseHandler:function o(t,n){var r=this,i=e(".cms-container").find("iframe"),o +o=function a(t){var n,i +n=e(t.target).closest(".ss-ui-action-tabset .ui-tabs-panel"),e(t.target).closest(r).length||n.length||(r.tabs("option","active",!1),i=e(".cms-container").find("iframe"),i.each(function(t,n){e(n).contents().off("click.ss-ui-action-tabset",o) -}),e(document).off("click.ss-ui-action-tabset",a))},e(document).on("click.ss-ui-action-tabset",a),r.length>0&&r.each(function(t,n){e(n).contents().on("click.ss-ui-action-tabset",a)})},riseUp:function o(t,n){ -var i,r,a,o,s,l,u,c,d -return i=e(this).find(".ui-tabs-panel").outerHeight(),r=e(this).find(".ui-tabs-nav").outerHeight(),a=e(window).height()+e(document).scrollTop()-r,o=e(this).find(".ui-tabs-nav").offset().top,s=n.newPanel, -l=n.newTab,o+i>=a&&o-i>0?(this.addClass("rise-up"),null!==l.position()&&(u=-s.outerHeight(),c=s.parents(".toolbar--south"),c&&(d=l.offset().top-c.offset().top,u-=d),e(s).css("top",u+"px"))):(this.removeClass("rise-up"), +}),e(document).off("click.ss-ui-action-tabset",o))},e(document).on("click.ss-ui-action-tabset",o),i.length>0&&i.each(function(t,n){e(n).contents().on("click.ss-ui-action-tabset",o)})},riseUp:function a(t,n){ +var r,i,o,a,s,l,u,c,d +return r=e(this).find(".ui-tabs-panel").outerHeight(),i=e(this).find(".ui-tabs-nav").outerHeight(),o=e(window).height()+e(document).scrollTop()-i,a=e(this).find(".ui-tabs-nav").offset().top,s=n.newPanel, +l=n.newTab,a+r>=o&&a-r>0?(this.addClass("rise-up"),null!==l.position()&&(u=-s.outerHeight(),c=s.parents(".toolbar--south"),c&&(d=l.offset().top-c.offset().top,u-=d),e(s).css("top",u+"px"))):(this.removeClass("rise-up"), null!==l.position()&&e(s).css("bottom","100%")),!1}}),e(".cms-content-actions .ss-tabset.ss-ui-action-tabset").entwine({ontabsbeforeactivate:function s(t,n){this._super(t,n),e(n.newPanel).length>0&&e(n.newPanel).css("left",n.newTab.position().left+"px") }}),e(".cms-actions-row.ss-tabset.ss-ui-action-tabset").entwine({ontabsbeforeactivate:function l(t,n){this._super(t,n),e(this).closest(".ss-ui-action-tabset").removeClass("tabset-open tabset-open-last") @@ -1212,92 +1213,92 @@ right:"0px"}),e(n.newPanel).parent().addClass("tabset-open-last")):(e(n.newPanel }},ontabsbeforeactivate:function d(t,n){this._super(t,n),e(n.newPanel).css({left:"auto",right:"auto"}),e(n.newPanel).length>0&&e(n.newPanel).parent().addClass("tabset-open")}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) -a["default"].entwine("ss",function(e){e.entwine.warningLevel=e.entwine.WARN_LEVEL_BESTPRACTISE,e(".cms-panel").entwine({WidthExpanded:null,WidthCollapsed:null,canSetCookie:function t(){return void 0!==e.cookie&&void 0!==this.attr("id") +function r(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),o=r(i) +o["default"].entwine("ss",function(e){e.entwine.warningLevel=e.entwine.WARN_LEVEL_BESTPRACTISE,e(".cms-panel").entwine({WidthExpanded:null,WidthCollapsed:null,canSetCookie:function t(){return void 0!==e.cookie&&void 0!==this.attr("id") },getPersistedCollapsedState:function n(){var t,n -return this.canSetCookie()&&(n=e.cookie("cms-panel-collapsed-"+this.attr("id")),void 0!==n&&null!==n&&(t="true"===n)),t},setPersistedCollapsedState:function i(t){this.canSetCookie()&&e.cookie("cms-panel-collapsed-"+this.attr("id"),t,{ -path:"/",expires:31})},clearPersistedCollapsedState:function r(){this.canSetCookie()&&e.cookie("cms-panel-collapsed-"+this.attr("id"),"",{path:"/",expires:-1})},getInitialCollapsedState:function a(){var e=this.getPersistedCollapsedState() +return this.canSetCookie()&&(n=e.cookie("cms-panel-collapsed-"+this.attr("id")),void 0!==n&&null!==n&&(t="true"===n)),t},setPersistedCollapsedState:function r(t){this.canSetCookie()&&e.cookie("cms-panel-collapsed-"+this.attr("id"),t,{ +path:"/",expires:31})},clearPersistedCollapsedState:function i(){this.canSetCookie()&&e.cookie("cms-panel-collapsed-"+this.attr("id"),"",{path:"/",expires:-1})},getInitialCollapsedState:function o(){var e=this.getPersistedCollapsedState() -return void 0===e&&(e=this.hasClass("collapsed")),e},onadd:function o(){var t,n +return void 0===e&&(e=this.hasClass("collapsed")),e},onadd:function a(){var t,n if(!this.find(".cms-panel-content").length)throw new Exception('Content panel for ".cms-panel" not found') this.find(".cms-panel-toggle").length||(n=e("
").append('
»').append('«'), this.append(n)),this.setWidthExpanded(this.find(".cms-panel-content").innerWidth()),t=this.find(".cms-panel-content-collapsed"),this.setWidthCollapsed(t.length?t.innerWidth():this.find(".toggle-expand").innerWidth()), -this.togglePanel(!this.getInitialCollapsedState(),!0,!1),this._super()},togglePanel:function s(e,t,n){var i,r -t||(this.trigger("beforetoggle.sspanel",e),this.trigger(e?"beforeexpand":"beforecollapse")),this.toggleClass("collapsed",!e),i=e?this.getWidthExpanded():this.getWidthCollapsed(),this.width(i),r=this.find(".cms-panel-content-collapsed"), -r.length&&(this.find(".cms-panel-content")[e?"show":"hide"](),this.find(".cms-panel-content-collapsed")[e?"hide":"show"]()),n!==!1&&this.setPersistedCollapsedState(!e),this.trigger("toggle",e),this.trigger(e?"expand":"collapse") +this.togglePanel(!this.getInitialCollapsedState(),!0,!1),this._super()},togglePanel:function s(e,t,n){var r,i +t||(this.trigger("beforetoggle.sspanel",e),this.trigger(e?"beforeexpand":"beforecollapse")),this.toggleClass("collapsed",!e),r=e?this.getWidthExpanded():this.getWidthCollapsed(),this.width(r),i=this.find(".cms-panel-content-collapsed"), +i.length&&(this.find(".cms-panel-content")[e?"show":"hide"](),this.find(".cms-panel-content-collapsed")[e?"hide":"show"]()),n!==!1&&this.setPersistedCollapsedState(!e),this.trigger("toggle",e),this.trigger(e?"expand":"collapse") },expandPanel:function l(e){(e||this.hasClass("collapsed"))&&this.togglePanel(!0)},collapsePanel:function u(e){!e&&this.hasClass("collapsed")||this.togglePanel(!1)}}),e(".cms-panel.collapsed .cms-panel-toggle").entwine({ onclick:function c(e){this.expandPanel(),e.preventDefault()}}),e(".cms-panel *").entwine({getPanel:function d(){return this.parents(".cms-panel:first")}}),e(".cms-panel .toggle-expand").entwine({onclick:function f(e){ e.preventDefault(),e.stopPropagation(),this.getPanel().expandPanel(),this._super(e)}}),e(".cms-panel .toggle-collapse").entwine({onclick:function p(e){e.preventDefault(),e.stopPropagation(),this.getPanel().collapsePanel(), this._super(e)}}),e(".cms-content-tools.collapsed").entwine({onclick:function h(e){this.expandPanel(),this._super(e)}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) -a["default"].entwine("ss.tree",function(e){e(".cms-tree").entwine({Hints:null,IsUpdatingTree:!1,IsLoaded:!1,onadd:function t(){if(this._super(),!e.isNumeric(this.data("jstree_instance_id"))){var t=this.attr("data-hints") +function r(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),o=r(i) +o["default"].entwine("ss.tree",function(e){e(".cms-tree").entwine({Hints:null,IsUpdatingTree:!1,IsLoaded:!1,onadd:function t(){if(this._super(),!e.isNumeric(this.data("jstree_instance_id"))){var t=this.attr("data-hints") t&&this.setHints(e.parseJSON(t)) var n=this -this.jstree(this.getTreeConfig()).bind("loaded.jstree",function(t,i){n.setIsLoaded(!0),i.inst._set_settings({html_data:{ajax:{url:n.data("urlTree"),data:function r(t){var i=n.data("searchparams")||[] -return i=e.grep(i,function(e,t){return"ID"!=e.name&&"value"!=e.name}),i.push({name:"ID",value:e(t).data("id")?e(t).data("id"):0}),i.push({name:"ajax",value:1}),i}}}}),n.updateFromEditForm(),n.css("visibility","visible"), -i.inst.hide_checkboxes()}).bind("before.jstree",function(t,i){if("start_drag"==i.func&&(!n.hasClass("draggable")||n.hasClass("multiselect")))return t.stopImmediatePropagation(),!1 -if(e.inArray(i.func,["check_node","uncheck_node"])){var r=e(i.args[0]).parents("li:first"),a=r.find("li:not(.disabled)") -if(r.hasClass("disabled")&&0==a)return t.stopImmediatePropagation(),!1}}).bind("move_node.jstree",function(t,i){if(!n.getIsUpdatingTree()){var r=i.rslt.o,a=i.rslt.np,o=i.inst._get_parent(r),s=e(a).data("id")||0,l=e(r).data("id"),u=e.map(e(r).siblings().andSelf(),function(t){ +this.jstree(this.getTreeConfig()).bind("loaded.jstree",function(t,r){n.setIsLoaded(!0),r.inst._set_settings({html_data:{ajax:{url:n.data("urlTree"),data:function i(t){var r=n.data("searchparams")||[] +return r=e.grep(r,function(e,t){return"ID"!=e.name&&"value"!=e.name}),r.push({name:"ID",value:e(t).data("id")?e(t).data("id"):0}),r.push({name:"ajax",value:1}),r}}}}),n.updateFromEditForm(),n.css("visibility","visible"), +r.inst.hide_checkboxes()}).bind("before.jstree",function(t,r){if("start_drag"==r.func&&(!n.hasClass("draggable")||n.hasClass("multiselect")))return t.stopImmediatePropagation(),!1 +if(e.inArray(r.func,["check_node","uncheck_node"])){var i=e(r.args[0]).parents("li:first"),o=i.find("li:not(.disabled)") +if(i.hasClass("disabled")&&0==o)return t.stopImmediatePropagation(),!1}}).bind("move_node.jstree",function(t,r){if(!n.getIsUpdatingTree()){var i=r.rslt.o,o=r.rslt.np,a=r.inst._get_parent(i),s=e(o).data("id")||0,l=e(i).data("id"),u=e.map(e(i).siblings().andSelf(),function(t){ return e(t).data("id")}) e.ajax({url:e.path.addSearchParams(n.data("urlSavetreenode"),n.data("extraParams")),type:"POST",data:{ID:l,ParentID:s,SiblingIDs:u},success:function c(){e(".cms-edit-form :input[name=ID]").val()==l&&e(".cms-edit-form :input[name=ParentID]").val(s), -n.updateNodesFromServer([l])},statusCode:{403:function d(){e.jstree.rollback(i.rlbk)}}})}}).bind("select_node.jstree check_node.jstree uncheck_node.jstree",function(t,n){e(document).triggerHandler(t,n) +n.updateNodesFromServer([l])},statusCode:{403:function d(){e.jstree.rollback(r.rlbk)}}})}}).bind("select_node.jstree check_node.jstree uncheck_node.jstree",function(t,n){e(document).triggerHandler(t,n) -})}},onremove:function n(){this.jstree("destroy"),this._super()},"from .cms-container":{onafterstatechange:function i(e){this.updateFromEditForm()}},"from .cms-container form":{onaftersubmitform:function r(t){ +})}},onremove:function n(){this.jstree("destroy"),this._super()},"from .cms-container":{onafterstatechange:function r(e){this.updateFromEditForm()}},"from .cms-container form":{onaftersubmitform:function i(t){ var n=e(".cms-edit-form :input[name=ID]").val() -this.updateNodesFromServer([n])}},getTreeConfig:function a(){var t=this -return{core:{initially_open:["record-0"],animation:0,html_titles:!0},html_data:{},ui:{select_limit:1,initially_select:[this.find(".current").attr("id")]},crrm:{move:{check_move:function n(i){var r=e(i.o),a=e(i.np),o=i.ot.get_container()[0]==i.np[0],s=r.getClassname(),l=a.getClassname(),u=t.getHints(),c=[],d=l?l:"Root",f=u&&"undefined"!=typeof u[d]?u[d]:null +this.updateNodesFromServer([n])}},getTreeConfig:function o(){var t=this +return{core:{initially_open:["record-0"],animation:0,html_titles:!0},html_data:{},ui:{select_limit:1,initially_select:[this.find(".current").attr("id")]},crrm:{move:{check_move:function n(r){var i=e(r.o),o=e(r.np),a=r.ot.get_container()[0]==r.np[0],s=i.getClassname(),l=o.getClassname(),u=t.getHints(),c=[],d=l?l:"Root",f=u&&"undefined"!=typeof u[d]?u[d]:null -f&&r.attr("class").match(/VirtualPage-([^\s]*)/)&&(s=RegExp.$1),f&&(c="undefined"!=typeof f.disallowedChildren?f.disallowedChildren:[]) -var p=!(0===r.data("id")||r.hasClass("status-archived")||o&&"inside"!=i.p||a.hasClass("nochildren")||c.length&&e.inArray(s,c)!=-1) +f&&i.attr("class").match(/VirtualPage-([^\s]*)/)&&(s=RegExp.$1),f&&(c="undefined"!=typeof f.disallowedChildren?f.disallowedChildren:[]) +var p=!(0===i.data("id")||i.hasClass("status-archived")||a&&"inside"!=r.p||o.hasClass("nochildren")||c.length&&e.inArray(s,c)!=-1) return p}}},dnd:{drop_target:!1,drag_target:!1},checkbox:{two_state:!0},themes:{theme:"apple",url:e("body").data("frameworkpath")+"/admin/thirdparty/jstree/themes/apple/style.css"},plugins:["html_data","ui","dnd","crrm","themes","checkbox"] -}},search:function o(e,t){e?this.data("searchparams",e):this.removeData("searchparams"),this.jstree("refresh",-1,t)},getNodeByID:function s(e){return this.find("*[data-id="+e+"]")},createNode:function l(t,n,i){ -var r=this,a=void 0!==n.ParentID&&r.getNodeByID(n.ParentID),o=e(t),s={data:""} -o.hasClass("jstree-open")?s.state="open":o.hasClass("jstree-closed")&&(s.state="closed"),this.jstree("create_node",a.length?a:-1,"last",s,function(e){for(var t=e.attr("class"),n=0;n0)return!0 -var e=confirm(o["default"]._t("LeftAndMain.CONFIRMUNSAVED")) +var e=confirm(a["default"]._t("LeftAndMain.CONFIRMUNSAVED")) return e&&this.addClass("discardchanges"),e},onsubmit:function d(e,t){if("_blank"!=this.prop("target"))return t&&this.closest(".cms-container").submitForm(this,t),!1},validate:function f(){var e=!0 -return this.trigger("validate",{isValid:e}),e},"from .htmleditor":{oneditorinit:function p(t){var n=this,i=e(t.target).closest(".field.htmleditor"),r=i.find("textarea.htmleditor").getEditor().getInstance() +return this.trigger("validate",{isValid:e}),e},"from .htmleditor":{oneditorinit:function p(t){var n=this,r=e(t.target).closest(".field.htmleditor"),i=r.find("textarea.htmleditor").getEditor().getInstance() -r.onClick.add(function(e){n.saveFieldFocus(i.attr("id"))})}},"from .cms-edit-form :input:not(:submit)":{onclick:function h(t){this.saveFieldFocus(e(t.target).attr("id"))},onfocus:function m(t){this.saveFieldFocus(e(t.target).attr("id")) +i.onClick.add(function(e){n.saveFieldFocus(r.attr("id"))})}},"from .cms-edit-form :input:not(:submit)":{onclick:function h(t){this.saveFieldFocus(e(t.target).attr("id"))},onfocus:function m(t){this.saveFieldFocus(e(t.target).attr("id")) }},"from .cms-edit-form .treedropdown *":{onfocusin:function g(t){var n=e(t.target).closest(".field.treedropdown") -this.saveFieldFocus(n.attr("id"))}},"from .cms-edit-form .dropdown .chosen-container a":{onfocusin:function v(t){var n=e(t.target).closest(".field.dropdown") -this.saveFieldFocus(n.attr("id"))}},"from .cms-container":{ontabstaterestored:function y(e){this.restoreFieldFocus()}},saveFieldFocus:function b(t){if("undefined"!=typeof window.sessionStorage&&null!==window.sessionStorage){ -var n=e(this).attr("id"),i=[] -if(i.push({id:n,selected:t}),i)try{window.sessionStorage.setItem(n,JSON.stringify(i))}catch(r){if(r.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.sessionStorage.length)return -throw r}}},restoreFieldFocus:function _(){if("undefined"!=typeof window.sessionStorage&&null!==window.sessionStorage){var t=this,n="undefined"!=typeof window.sessionStorage&&window.sessionStorage,i=n?window.sessionStorage.getItem(this.attr("id")):null,r=!!i&&JSON.parse(i),a,o=0!==this.find(".ss-tabset").length,s,l,u,c +this.saveFieldFocus(n.attr("id"))}},"from .cms-edit-form .dropdown .chosen-container a":{onfocusin:function y(t){var n=e(t.target).closest(".field.dropdown") +this.saveFieldFocus(n.attr("id"))}},"from .cms-container":{ontabstaterestored:function b(e){this.restoreFieldFocus()}},saveFieldFocus:function v(t){if("undefined"!=typeof window.sessionStorage&&null!==window.sessionStorage){ +var n=e(this).attr("id"),r=[] +if(r.push({id:n,selected:t}),r)try{window.sessionStorage.setItem(n,JSON.stringify(r))}catch(i){if(i.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.sessionStorage.length)return +throw i}}},restoreFieldFocus:function _(){if("undefined"!=typeof window.sessionStorage&&null!==window.sessionStorage){var t=this,n="undefined"!=typeof window.sessionStorage&&window.sessionStorage,r=n?window.sessionStorage.getItem(this.attr("id")):null,i=!!r&&JSON.parse(r),o,a=0!==this.find(".ss-tabset").length,s,l,u,c -if(n&&r.length>0){if(e.each(r,function(n,i){t.is("#"+i.id)&&(a=e("#"+i.selected))}),e(a).length<1)return void this.focusFirstInput() -if(s=e(a).closest(".ss-tabset").find(".ui-tabs-nav .ui-tabs-active .ui-tabs-anchor").attr("id"),l="tab-"+e(a).closest(".ss-tabset .ui-tabs-panel").attr("id"),o&&l!==s)return -u=e(a).closest(".togglecomposite"),u.length>0&&u.accordion("activate",u.find(".ui-accordion-header")),c=e(a).position().top,e(a).is(":visible")||(a="#"+e(a).closest(".field").attr("id"),c=e(a).position().top), -e(a).focus(),c>e(window).height()/2&&t.find(".cms-content-fields").scrollTop(c)}else this.focusFirstInput()}},focusFirstInput:function w(){this.find(':input:not(:submit)[data-skip-autofocus!="true"]').filter(":visible:first").focus() +if(n&&i.length>0){if(e.each(i,function(n,r){t.is("#"+r.id)&&(o=e("#"+r.selected))}),e(o).length<1)return void this.focusFirstInput() +if(s=e(o).closest(".ss-tabset").find(".ui-tabs-nav .ui-tabs-active .ui-tabs-anchor").attr("id"),l="tab-"+e(o).closest(".ss-tabset .ui-tabs-panel").attr("id"),a&&l!==s)return +u=e(o).closest(".togglecomposite"),u.length>0&&u.accordion("activate",u.find(".ui-accordion-header")),c=e(o).position().top,e(o).is(":visible")||(o="#"+e(o).closest(".field").attr("id"),c=e(o).position().top), +e(o).focus(),c>e(window).height()/2&&t.find(".cms-content-fields").scrollTop(c)}else this.focusFirstInput()}},focusFirstInput:function w(){this.find(':input:not(:submit)[data-skip-autofocus!="true"]').filter(":visible:first").focus() }}),e(".cms-edit-form .btn-toolbar input.action[type=submit], .cms-edit-form .btn-toolbar button.action").entwine({onclick:function C(e){return this.is(":disabled")?(e.preventDefault(),!1):this._super(e)===!1||e.defaultPrevented||e.isDefaultPrevented()?void 0:(this.parents("form").trigger("submit",[this]), e.preventDefault(),!1)}}),e(".cms-edit-form .btn-toolbar input.action[type=submit].ss-ui-action-cancel, .cms-edit-form .btn-toolbar button.action.ss-ui-action-cancel").entwine({onclick:function T(e){window.history.length>1?window.history.back():this.parents("form").trigger("submit",[this]), -e.preventDefault()}}),e(".cms-edit-form .ss-tabset").entwine({onmatch:function E(){if(!this.hasClass("ss-ui-action-tabset")){var e=this.find("> ul:first") -1==e.children("li").length&&e.hide().parent().addClass("ss-tabset-tabshidden")}this._super()},onunmatch:function P(){this._super()}})}) +e.preventDefault()}}),e(".cms-edit-form .ss-tabset").entwine({onmatch:function P(){if(!this.hasClass("ss-ui-action-tabset")){var e=this.find("> ul:first") +1==e.children("li").length&&e.hide().parent().addClass("ss-tabset-tabshidden")}this._super()},onunmatch:function E(){this._super()}})}) var s=function l(t){e.noticeAdd({text:t,type:"error",stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}}).call(t,n(1))},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) -a["default"].entwine("ss",function(e){e(".cms-panel.cms-menu").entwine({togglePanel:function t(n,i,r){e(".cms-menu-list").children("li").each(function(){n?e(this).children("ul").each(function(){e(this).removeClass("collapsed-flyout"), +function r(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),o=r(i) +o["default"].entwine("ss",function(e){e(".cms-panel.cms-menu").entwine({togglePanel:function t(n,r,i){e(".cms-menu-list").children("li").each(function(){n?e(this).children("ul").each(function(){e(this).removeClass("collapsed-flyout"), e(this).data("collapse")&&(e(this).removeData("collapse"),e(this).addClass("collapse"))}):e(this).children("ul").each(function(){e(this).addClass("collapsed-flyout"),e(this).hasClass("collapse"),e(this).removeClass("collapse"), -e(this).data("collapse",!0)})}),this.toggleFlyoutState(n),this._super(n,i,r)},toggleFlyoutState:function n(t){if(t)e(".collapsed").find("li").show(),e(".cms-menu-list").find(".child-flyout-indicator").hide() +e(this).data("collapse",!0)})}),this.toggleFlyoutState(n),this._super(n,r,i)},toggleFlyoutState:function n(t){if(t)e(".collapsed").find("li").show(),e(".cms-menu-list").find(".child-flyout-indicator").hide() else{e(".collapsed-flyout").find("li").each(function(){e(this).hide()}) var n=e(".cms-menu-list ul.collapsed-flyout").parent() -0===n.children(".child-flyout-indicator").length&&n.append('').fadeIn(),n.children(".child-flyout-indicator").fadeIn()}},siteTreePresent:function i(){return e("#cms-content-tools-CMSMain").length>0 +0===n.children(".child-flyout-indicator").length&&n.append('').fadeIn(),n.children(".child-flyout-indicator").fadeIn()}},siteTreePresent:function r(){return e("#cms-content-tools-CMSMain").length>0 -},getPersistedStickyState:function r(){var t,n -return void 0!==e.cookie&&(n=e.cookie("cms-menu-sticky"),void 0!==n&&null!==n&&(t="true"===n)),t},setPersistedStickyState:function a(t){void 0!==e.cookie&&e.cookie("cms-menu-sticky",t,{path:"/",expires:31 -})},getEvaluatedCollapsedState:function o(){var t,n=this.getPersistedCollapsedState(),i=e(".cms-menu").getPersistedStickyState(),r=this.siteTreePresent() -return t=void 0===n?r:n!==r&&i?n:r},onadd:function s(){var t=this +},getPersistedStickyState:function i(){var t,n +return void 0!==e.cookie&&(n=e.cookie("cms-menu-sticky"),void 0!==n&&null!==n&&(t="true"===n)),t},setPersistedStickyState:function o(t){void 0!==e.cookie&&e.cookie("cms-menu-sticky",t,{path:"/",expires:31 +})},getEvaluatedCollapsedState:function a(){var t,n=this.getPersistedCollapsedState(),r=e(".cms-menu").getPersistedStickyState(),i=this.siteTreePresent() +return t=void 0===n?i:n!==i&&r?n:i},onadd:function s(){var t=this setTimeout(function(){t.togglePanel(!t.getEvaluatedCollapsedState(),!1,!1)},0),e(window).on("ajaxComplete",function(e){setTimeout(function(){t.togglePanel(!t.getEvaluatedCollapsedState(),!1,!1)},0)}),this._super() }}),e(".cms-menu-list").entwine({onmatch:function l(){var e=this @@ -1362,57 +1363,57 @@ this.toggleClass("collapsed",e(t.target).hasClass("collapsed")),e(".cms-containe }},updateItems:function g(){var t=this.find("#Menu-CMSMain") t[t.is(".current")?"show":"hide"]() var n=e(".cms-content input[name=ID]").val() -n&&this.find("li").each(function(){e.isFunction(e(this).setRecordID)&&e(this).setRecordID(n)})}}),e(".cms-menu-list li").entwine({toggleFlyout:function v(t){var n=e(this) -if(n.children("ul").first().hasClass("collapsed-flyout"))if(t){if(!n.children("ul").first().children("li").first().hasClass("clone")){var i=n.clone() -i.addClass("clone").css({}),i.children("ul").first().remove(),i.find("span").not(".text").remove(),i.find("a").first().unbind("click"),n.children("ul").prepend(i)}e(".collapsed-flyout").show(),n.addClass("opened"), -n.children("ul").find("li").fadeIn("fast")}else i&&i.remove(),e(".collapsed-flyout").hide(),n.removeClass("opened"),n.find("toggle-children").removeClass("opened"),n.children("ul").find("li").hide()}}), -e(".cms-menu-list li").hoverIntent(function(){e(this).toggleFlyout(!0)},function(){e(this).toggleFlyout(!1)}),e(".cms-menu-list .toggle").entwine({onclick:function y(t){t.preventDefault(),e(this).toogleFlyout(!0) +n&&this.find("li").each(function(){e.isFunction(e(this).setRecordID)&&e(this).setRecordID(n)})}}),e(".cms-menu-list li").entwine({toggleFlyout:function y(t){var n=e(this) +if(n.children("ul").first().hasClass("collapsed-flyout"))if(t){if(!n.children("ul").first().children("li").first().hasClass("clone")){var r=n.clone() +r.addClass("clone").css({}),r.children("ul").first().remove(),r.find("span").not(".text").remove(),r.find("a").first().unbind("click"),n.children("ul").prepend(r)}e(".collapsed-flyout").show(),n.addClass("opened"), +n.children("ul").find("li").fadeIn("fast")}else r&&r.remove(),e(".collapsed-flyout").hide(),n.removeClass("opened"),n.find("toggle-children").removeClass("opened"),n.children("ul").find("li").hide()}}), +e(".cms-menu-list li").hoverIntent(function(){e(this).toggleFlyout(!0)},function(){e(this).toggleFlyout(!1)}),e(".cms-menu-list .toggle").entwine({onclick:function b(t){t.preventDefault(),e(this).toogleFlyout(!0) -}}),e(".cms-menu-list li").entwine({onmatch:function b(){this.find("ul").length&&this.find("a:first").append(''),this._super() +}}),e(".cms-menu-list li").entwine({onmatch:function v(){this.find("ul").length&&this.find("a:first").append(''),this._super() },onunmatch:function _(){this._super()},toggle:function w(){this[this.hasClass("opened")?"close":"open"]()},open:function C(){var e=this.getMenuItem() e&&e.open(),this.find("li.clone")&&this.find("li.clone").remove(),this.addClass("opened").find("ul").show(),this.find(".toggle-children").addClass("opened")},close:function T(){this.removeClass("opened").find("ul").hide(), -this.find(".toggle-children").removeClass("opened")},select:function E(){var e=this.getMenuItem() +this.find(".toggle-children").removeClass("opened")},select:function P(){var e=this.getMenuItem() if(this.addClass("current").open(),this.siblings().removeClass("current").close(),this.siblings().find("li").removeClass("current"),e){var t=e.siblings() -e.addClass("current"),t.removeClass("current").close(),t.find("li").removeClass("current").close()}this.getMenu().updateItems(),this.trigger("select")}}),e(".cms-menu-list *").entwine({getMenu:function P(){ -return this.parents(".cms-menu-list:first")}}),e(".cms-menu-list li *").entwine({getMenuItem:function O(){return this.parents("li:first")}}),e(".cms-menu-list li a").entwine({onclick:function S(t){var n=e.path.isExternal(this.attr("href")) +e.addClass("current"),t.removeClass("current").close(),t.find("li").removeClass("current").close()}this.getMenu().updateItems(),this.trigger("select")}}),e(".cms-menu-list *").entwine({getMenu:function E(){ +return this.parents(".cms-menu-list:first")}}),e(".cms-menu-list li *").entwine({getMenuItem:function O(){return this.parents("li:first")}}),e(".cms-menu-list li a").entwine({onclick:function k(t){var n=e.path.isExternal(this.attr("href")) if(!(t.which>1||n)&&"_blank"!=this.attr("target")){t.preventDefault() -var i=this.getMenuItem(),r=this.attr("href") -n||(r=e("base").attr("href")+r) -var a=i.find("li") -a.length?a.first().find("a").click():document.location.href=r,i.select()}}}),e(".cms-menu-list li .toggle-children").entwine({onclick:function k(e){var t=this.closest("li") +var r=this.getMenuItem(),i=this.attr("href") +n||(i=e("base").attr("href")+i) +var o=r.find("li") +o.length?o.first().find("a").click():document.location.href=i,r.select()}}}),e(".cms-menu-list li .toggle-children").entwine({onclick:function S(e){var t=this.closest("li") return t.toggle(),!1}}),e(".cms .profile-link").entwine({onclick:function j(){return e(".cms-container").loadPanel(this.attr("href")),e(".cms-menu-list li").removeClass("current").close(),!1}}),e(".cms-menu .sticky-toggle").entwine({ onadd:function x(){var t=!!e(".cms-menu").getPersistedStickyState() this.toggleCSS(t),this.toggleIndicator(t),this._super()},toggleCSS:function R(e){this[e?"addClass":"removeClass"]("active")},toggleIndicator:function I(e){this.next(".sticky-status-indicator").text(e?"fixed":"auto") -},onclick:function A(){var e=this.closest(".cms-menu"),t=e.getPersistedCollapsedState(),n=e.getPersistedStickyState(),i=void 0===n?!this.hasClass("active"):!n -void 0===t?e.setPersistedCollapsedState(e.hasClass("collapsed")):void 0!==t&&i===!1&&e.clearPersistedCollapsedState(),e.setPersistedStickyState(i),this.toggleCSS(i),this.toggleIndicator(i),this._super() +},onclick:function A(){var e=this.closest(".cms-menu"),t=e.getPersistedCollapsedState(),n=e.getPersistedStickyState(),r=void 0===n?!this.hasClass("active"):!n +void 0===t?e.setPersistedCollapsedState(e.hasClass("collapsed")):void 0!==t&&r===!1&&e.clearPersistedCollapsedState(),e.setPersistedStickyState(r),this.toggleCSS(r),this.toggleIndicator(r),this._super() }})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r),o=n(114),s=i(o) -a["default"].entwine("ss.preview",function(e){e(".cms-preview").entwine({AllowedStates:["StageLink","LiveLink","ArchiveLink"],CurrentStateName:null,CurrentSizeName:"auto",IsPreviewEnabled:!1,DefaultMode:"split", +function r(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),o=r(i),a=n(114),s=r(a) +o["default"].entwine("ss.preview",function(e){e(".cms-preview").entwine({AllowedStates:["StageLink","LiveLink","ArchiveLink"],CurrentStateName:null,CurrentSizeName:"auto",IsPreviewEnabled:!1,DefaultMode:"split", Sizes:{auto:{width:"100%",height:"100%"},mobile:{width:"335px",height:"568px"},mobileLandscape:{width:"583px",height:"320px"},tablet:{width:"783px",height:"1024px"},tabletLandscape:{width:"1039px",height:"768px" -},desktop:{width:"1024px",height:"800px"}},changeState:function t(n,i){var r=this,a=this._getNavigatorStates() -return i!==!1&&e.each(a,function(e,t){r.saveState("state",n)}),this.setCurrentStateName(n),this._loadCurrentState(),this.redraw(),this},changeMode:function n(t,i){var r=e(".cms-container").entwine(".ss") +},desktop:{width:"1024px",height:"800px"}},changeState:function t(n,r){var i=this,o=this._getNavigatorStates() +return r!==!1&&e.each(o,function(e,t){i.saveState("state",n)}),this.setCurrentStateName(n),this._loadCurrentState(),this.redraw(),this},changeMode:function n(t,r){var i=e(".cms-container").entwine(".ss") -if("split"==t)r.splitViewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState() -else if("content"==t)r.contentViewMode(),this.setIsPreviewEnabled(!1) +if("split"==t)i.splitViewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState() +else if("content"==t)i.contentViewMode(),this.setIsPreviewEnabled(!1) else{if("preview"!=t)throw"Invalid mode: "+t -r.previewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState()}return i!==!1&&this.saveState("mode",t),this.redraw(),this},changeSize:function i(e){var t=this.getSizes() -return this.setCurrentSizeName(e),this.removeClass("auto desktop tablet mobile").addClass(e),this.saveState("size",e),this.redraw(),this},redraw:function r(){window.debug&&console.log("redraw",this.attr("class"),this.get(0)) +i.previewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState()}return r!==!1&&this.saveState("mode",t),this.redraw(),this},changeSize:function r(e){var t=this.getSizes() +return this.setCurrentSizeName(e),this.removeClass("auto desktop tablet mobile").addClass(e),this.saveState("size",e),this.redraw(),this},redraw:function i(){window.debug&&console.log("redraw",this.attr("class"),this.get(0)) var t=this.getCurrentStateName() t&&this.find(".cms-preview-states").changeVisibleState(t) var n=e(".cms-container").entwine(".ss").getLayoutOptions() n&&e(".preview-mode-selector").changeVisibleMode(n.mode) -var i=this.getCurrentSizeName() -return i&&this.find(".preview-size-selector").changeVisibleSize(this.getCurrentSizeName()),this},saveState:function a(e,t){this._supportsLocalStorage()&&window.localStorage.setItem("cms-preview-state-"+e,t) +var r=this.getCurrentSizeName() +return r&&this.find(".preview-size-selector").changeVisibleSize(this.getCurrentSizeName()),this},saveState:function o(e,t){this._supportsLocalStorage()&&window.localStorage.setItem("cms-preview-state-"+e,t) -},loadState:function o(e){if(this._supportsLocalStorage())return window.localStorage.getItem("cms-preview-state-"+e)},disablePreview:function l(){return this.setPendingURL(null),this._loadUrl("about:blank"), +},loadState:function a(e){if(this._supportsLocalStorage())return window.localStorage.getItem("cms-preview-state-"+e)},disablePreview:function l(){return this.setPendingURL(null),this._loadUrl("about:blank"), this._block(),this.changeMode("content",!1),this.setIsPreviewEnabled(!1),this},enablePreview:function u(){return this.getIsPreviewEnabled()||(this.setIsPreviewEnabled(!0),e.browser.msie&&e.browser.version.slice(0,3)<=7?this.changeMode("content"):this.changeMode(this.getDefaultMode(),!1)), this},getOrAppendFontFixStyleElement:function c(){var t=e("#FontFixStyleElement") return t.length||(t=e('').appendTo("head")),t},onadd:function d(){var t=this,n=this.find("iframe") @@ -1421,37 +1422,37 @@ return t.length||(t=e('