From f5923cf433c5223591e9d6dd843a3c8d80975fe6 Mon Sep 17 00:00:00 2001 From: Paul Clarke Date: Wed, 23 Nov 2016 11:26:38 +1300 Subject: [PATCH] Update doc icons --- admin/client/dist/js/bundle.js | 1487 ++++++++--------- client/dist/images/app_icons/archive_32.png | Bin 1884 -> 0 bytes client/dist/images/app_icons/archive_92.png | Bin 0 -> 666 bytes client/dist/images/app_icons/audio_32.png | Bin 2084 -> 0 bytes client/dist/images/app_icons/audio_92.png | Bin 0 -> 1278 bytes client/dist/images/app_icons/document_32.png | Bin 1783 -> 0 bytes client/dist/images/app_icons/document_92.png | Bin 0 -> 655 bytes client/dist/images/app_icons/generic_32.png | Bin 1597 -> 0 bytes client/dist/images/app_icons/generic_92.png | Bin 0 -> 575 bytes client/dist/images/app_icons/video_32.png | Bin 1804 -> 0 bytes client/dist/images/app_icons/video_92.png | Bin 0 -> 653 bytes client/src/images/app_icons/archive_32.png | Bin 1884 -> 0 bytes client/src/images/app_icons/archive_92.png | Bin 0 -> 666 bytes client/src/images/app_icons/audio_32.png | Bin 2084 -> 0 bytes client/src/images/app_icons/audio_92.png | Bin 0 -> 1278 bytes client/src/images/app_icons/document_32.png | Bin 1783 -> 0 bytes client/src/images/app_icons/document_92.png | Bin 0 -> 655 bytes .../images/app_icons/folder_icon_large.png | Bin 0 -> 495 bytes client/src/images/app_icons/generic_32.png | Bin 1597 -> 0 bytes client/src/images/app_icons/generic_92.png | Bin 0 -> 575 bytes client/src/images/app_icons/video_32.png | Bin 1804 -> 0 bytes client/src/images/app_icons/video_92.png | Bin 0 -> 653 bytes src/Assets/File.php | 6 +- 23 files changed, 744 insertions(+), 749 deletions(-) delete mode 100644 client/dist/images/app_icons/archive_32.png create mode 100644 client/dist/images/app_icons/archive_92.png delete mode 100644 client/dist/images/app_icons/audio_32.png create mode 100644 client/dist/images/app_icons/audio_92.png delete mode 100644 client/dist/images/app_icons/document_32.png create mode 100644 client/dist/images/app_icons/document_92.png delete mode 100644 client/dist/images/app_icons/generic_32.png create mode 100644 client/dist/images/app_icons/generic_92.png delete mode 100644 client/dist/images/app_icons/video_32.png create mode 100644 client/dist/images/app_icons/video_92.png delete mode 100644 client/src/images/app_icons/archive_32.png create mode 100644 client/src/images/app_icons/archive_92.png delete mode 100644 client/src/images/app_icons/audio_32.png create mode 100644 client/src/images/app_icons/audio_92.png delete mode 100644 client/src/images/app_icons/document_32.png create mode 100644 client/src/images/app_icons/document_92.png create mode 100644 client/src/images/app_icons/folder_icon_large.png delete mode 100644 client/src/images/app_icons/generic_32.png create mode 100644 client/src/images/app_icons/generic_92.png delete mode 100644 client/src/images/app_icons/video_32.png create mode 100644 client/src/images/app_icons/video_92.png diff --git a/admin/client/dist/js/bundle.js b/admin/client/dist/js/bundle.js index cfaf29d86..be7ef57b3 100644 --- a/admin/client/dist/js/bundle.js +++ b/admin/client/dist/js/bundle.js @@ -8,44 +8,44 @@ var i=function(){function e(e,t){for(var n=0;n1?t-1:0),i=1;i=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 @@ -57,9 +57,9 @@ case"application/json":case"application/x-json":case"application/x-javascript":c 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,o({},i,t[i])):n},{})}function p(e,t,n){var i=arguments.length<=3||void 0===arguments[3]?{setFromData:!1}:arguments[3],r=t,a=Object.keys(n).reduce(function(t,r){ -var a=e[r],s=i.setFromData===!0&&!(a&&a.remove===!0),l=a&&a.querystring===!0&&a.remove!==!0 -return s||l?m(t,o({},r,n[r])):t},{}),s=l("application/x-www-form-urlencoded",a) +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||{} +return m.indexOf(t)>-1?t:e}function c(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, +if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read") +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=u(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 +this._initBody(n)}function d(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") +t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function f(e){var t=new i,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), -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) +t.append(i,r)}),t}function p(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){i.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) -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), -url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""}) +r||(r=[],this.map[e]=r),r.push(i)},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,i){this.map[t(e)]=[n(i)]},i.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)} +var h={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},m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"] + + +c.prototype.clone=function(){return new c(this)},l.call(c.prototype),l.call(p.prototype),p.prototype.clone=function(){return new p(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers), +url:this.url})},p.error=function(){var e=new p(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 a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0 +var g=[301,302,303,307,308] +p.redirect=function(e,t){if(g.indexOf(t)===-1)throw new RangeError("Invalid status code") +return new p(null,{status:t,headers:{location:e}})},e.Headers=i,e.Request=c,e.Response=p,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 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:r()},t="response"in a?a.response:a.responseText -n(new h(t,e))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(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 o(e){return"function"==typeof e}function a(e){K=e}function s(e){J=e}function l(){return function(){return t.nextTick(p)}} +}var a +a=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t) +var o=new XMLHttpRequest +o.onload=function(){var e=1223===o.status?204:o.status +if(e<100||e>599)return void i(new TypeError("Network request failed")) +var t={status:e,statusText:o.statusText,headers:f(o),url:r()},a="response"in o?o.response:o.responseText +n(new p(a,t))},o.onerror=function(){i(new TypeError("Network request failed"))},o.open(a.method,a.url,!0),"include"===a.credentials&&(o.withCredentials=!0),"responseType"in o&&h.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)},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 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;e=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?i+=t.charAt(r):o<128?i+=n[o]:o<2048?i+=n[192|o>>6]+n[128|63&o]:o<55296||o>=57344?i+=n[224|o>>12]+n[128|o>>6&63]+n[128|63&o]:(r+=1, -o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),i+=n[240|o>>18]+n[128|o>>12&63]+n[128|o>>6&63]+n[128|63&o])}return i},t.compact=function(e,n){if("object"!=typeof e||null===e)return e +for(var t="string"==typeof e?e:String(e),i="",r=0;r=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=t.charAt(r):a<128?i+=n[a]:a<2048?i+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?i+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(r+=1, +a=65536+((1023&a)<<10|1023&t.charCodeAt(r)),i+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return i},t.compact=function(e,n){if("object"!=typeof e||null===e)return e var i=n||[],r=i.indexOf(e) if(r!==-1)return i[r] -if(i.push(e),Array.isArray(e)){for(var o=[],a=0;a=0&&n.parseArrays&&a<=n.arrayLimit?(r=[],r[a]=c(e,t,n)):r[o]=c(e,t,n)}return r},l=function d(e,t,n){if(e){var i=n.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,o=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,l=o.exec(i),u=[] +var a="["===i[0]&&"]"===i[i.length-1]?i.slice(1,i.length-1):i,o=parseInt(a,10) +!isNaN(o)&&i!==a&&String(o)===a&&o>=0&&n.parseArrays&&o<=n.arrayLimit?(r=[],r[o]=c(e,t,n)):r[a]=c(e,t,n)}return r},l=function d(e,t,n){if(e){var i=n.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,a=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,l=a.exec(i),u=[] if(l[1]){if(!n.plainObjects&&r.call(Object.prototype,l[1])&&!n.allowPrototypes)return -u.push(l[1])}for(var c=0;null!==(l=a.exec(i))&&c=0?n[a]=r:n.unshift(r)}},{key:"findChildRoute",value:function s(e){var t=this.childRoutes +this.childRoutes=[],this.rootRoute={path:"/",getChildRoutes:function t(n,i){i(null,e.childRoutes)}}}},{key:"updateRootRoute",value:function a(e){this.rootRoute=i({},this.rootRoute,e)}},{key:"add",value:function o(e){ +var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=this.findChildRoute(t),r=i({},{childRoutes:[]},e),a=r.childRoutes[r.childRoutes.length-1] +a&&"**"===a.path||(a={path:"**"},r.childRoutes.push(a)) +var o=n.findIndex(function(t){return t.path===e.path}) +o>=0?n[o]=r:n.unshift(r)}},{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){ 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 o,t["default"]=window.ss.routeRegister},function(e,t,n){(function(t){e.exports=t.Injector=n(102)}).call(t,function(){return this +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(102)}).call(t,function(){return this }())},function(e,t,n){(function(t){e.exports=t.Router=n(150)}).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 o(e){return function(t,n,i,r){return e(c["default"].resolveURLToBase(t),n,i,r)}}function a(e){var t=new c["default"].Route(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) 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 @@ -867,21 +862,21 @@ var n=t.pathname n=n.replace(/\/$/,""),n.match(/^[^\/]/)&&(n="/"+n),c["default"].base(n)}Object.defineProperty(t,"__esModule",{value:!0}) var u=n(151),c=i(u),d=n(152),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=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){ +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){ 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(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 o(e){return u.isString(e)&&(e=r(e)),e instanceof i?e.format():i.prototype.format.call(e)}function a(e,t){return r(e,!1,!0).resolve(t)}function s(e,t){return e?r(e,!1,!0).resolveObject(t):t +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 }var l=n(153),u=n(154) -t.parse=r,t.resolve=a,t.resolveObject=s,t.format=o,t.Url=i +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(155) 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&&i127?"x":D[M] -if(!F.match(b)){var U=I.slice(0,S),L=I.slice(S+1),B=D.match(_) +if(!F.match(b)){var U=I.slice(0,k),L=I.slice(k+1),B=D.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)) 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(), 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(!b&&!_)for(;S--;S)w.unshift("..") +!b||""===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(o){function a(e){throw RangeError(D[e])}function s(e,t){ +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(D[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("."),o=s(r,t).join(".") -return i+o}function u(e){for(var t=[],n=0,i=e.length,r,o;n=55296&&r<=56319&&n=55296&&r<=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>F*P>>1;i+=T)e=M(e/F) -return M(i+(F+1)*e/(e+O))}function h(e){var t=[],n=e.length,i,r=0,o=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&&a("not-basic"),t.push(e.charCodeAt(u)) -for(f=l>0?l+1:0;f=n&&a("invalid-input"),v=d(e.charCodeAt(f++)),(v>=T||v>M((C-r)/m))&&a("overflow"),r+=v*m,y=g<=s?E:g>=s+P?P:g-s,!(vM(C/b)&&a("overflow"),m*=b -i=t.length+1,s=p(r-h,i,0==h),M(r/i)>C-o&&a("overflow"),o+=M(r/i),r%=i,t.splice(r++,0,o)}return c(t)}function m(e){var t,n,i,r,o,s,l,c,d,h,m,g=[],v,y,b,_ -for(e=u(e),v=e.length,t=j,n=0,o=k,s=0;s>1,e+=M(e/t);e>F*P>>1;i+=T)e=M(e/F) +return M(i+(F+1)*e/(e+O))}function h(e){var t=[],n=e.length,i,r=0,a=j,s=S,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=S,s=0;s=t&&mM((C-n)/y)&&a("overflow"),n+=(l-t)*y,t=l,s=0;sC&&a("overflow"),m==t){for(c=n,d=T;h=d<=o?E:d>=o+P?P:d-o,!(cM((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= 0x80 (not a basic code point)", +_.global!==_&&_.window!==_&&_.self!==_||(a=_) +var w,C=2147483647,T=36,E=1,P=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-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(18)(e),function(){return this}()) @@ -977,52 +972,52 @@ e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){r "use strict" t.decode=t.parse=n(156),t.encode=t.stringify=n(157)},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 o={} -if("string"!=typeof e||0===e.length)return o -var a=/\+/g +var a={} +if("string"!=typeof e||0===e.length)return a +var o=/\+/g e=e.split(t) var s=1e3 r&&"number"==typeof r.maxKeys&&(s=r.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(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" +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" 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 o=encodeURIComponent(n(r))+i -return Array.isArray(e[r])?e[r].map(function(e){return o+encodeURIComponent(n(e))}).join(t):o+encodeURIComponent(n(e[r]))}).join(t):r?encodeURIComponent(n(r))+i+encodeURIComponent(n(e)):""}},function(e,t,n){ +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){ "use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r),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 +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 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;rthis.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),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"))), +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 h(){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.element.parent().addClass("ui-dialog") -var o=this.element.addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix") -if(t.closeButton)var a=(0,r["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") +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") -}).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,r["default"])("")).addClass("ui-icon ui-icon-closethick").text(t.closeText).appendTo(a) +}).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) -var l=(0,r["default"])("").addClass("ui-dialog-title").attr("id",i).html(n).prependTo(o) -o.find("*").add(o).disableSelection()},destroy:function m(){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,r["default"])("").addClass("ui-dialog-title").attr("id",i).html(n).prependTo(a) +a.find("*").add(a).disableSelection()},destroy:function m(){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 g(e){return"ui-dialog-title-"+(e.attr("id")||++this.uuid) @@ -1063,9 +1058,9 @@ function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}var _t },_jQuery=__webpack_require__(1),_jQuery2=_interopRequireDefault(_jQuery) __webpack_require__(159) var windowWidth,windowHeight -_jQuery2["default"].noConflict(),window.ss=window.ss||{},window.ss.debounce=function(e,t,n){var i,r,o,a=function s(){i=null,n||e.apply(r,o)} +_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,o=arguments,clearTimeout(i),i=setTimeout(a,t),s&&e.apply(r,o)}},(0,_jQuery2["default"])(window).bind("resize.leftandmain",function(e){(0,_jQuery2["default"])(".cms-container").trigger("windowresize") +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"].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) @@ -1079,14 +1074,14 @@ 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"),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"] +$(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"] -return null===r||isSameUrl(i,r)&&isSameUrl(o,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&&a&&$.inArray(a,l)===-1&&statusMessage(decodeURIComponent(a),s),void ajaxCompleteEvent(this))}),$(".cms-container").entwine({ +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), $(".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 o(){this.redraw()}},"from .cms-container":{onaftersubmitform:function a(){this.redraw()}},updateLayoutOptions:function s(e){ +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){ var t=this.getLayoutOptions(),n=!1 for(var i in e)t[i]!==e[i]&&(t[i]=e[i],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(){ @@ -1112,41 +1107,41 @@ this.checkCanNavigate(n.pjax?n.pjax.split(","):["Content"])&&(this.saveTabState( 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("loading") -var o=e.validate() -if("undefined"!=typeof o&&!o)return statusMessage("Validation failed.","bad"),$(t).removeClass("loading"),!1 -var a=e.serializeArray() -return a.push({name:$(t).attr("name"),value:"1"}),a.push({name:"BackURL",value:document.URL.replace(/\/$/,"")}),this.saveTabState(),jQuery.ajax(jQuery.extend({headers:{"X-Pjax":"CurrentForm,Breadcrumbs" -},url:e.attr("action"),data:a,type:"POST",complete:function s(){$(t).removeClass("loading")},success:function l(t,i,o){e.removeClass("changed"),n&&n(t,i,o) -var s=r.handleAjaxResponse(t,i,o) -s&&s.filter("form").trigger("aftersubmitform",{status:i,xhr:o,formData:a})}},i)),!1},LastState:null,PauseState:!1,handleStateChange:function y(e){var t=arguments.length<=1||void 0===arguments[1]?window.history.state:arguments[1] +var a=e.validate() +if("undefined"!=typeof a&&!a)return statusMessage("Validation failed.","bad"),$(t).removeClass("loading"),!1 +var o=e.serializeArray() +return o.push({name:$(t).attr("name"),value:"1"}),o.push({name:"BackURL",value:document.URL.replace(/\/$/,"")}),this.saveTabState(),jQuery.ajax(jQuery.extend({headers:{"X-Pjax":"CurrentForm,Breadcrumbs" +},url:e.attr("action"),data:o,type:"POST",complete:function s(){$(t).removeClass("loading")},success:function l(t,i,a){e.removeClass("changed"),n&&n(t,i,a) +var s=r.handleAjaxResponse(t,i,a) +s&&s.filter("form").trigger("aftersubmitform",{status:i,xhr:a,formData:o})}},i)),!1},LastState:null,PauseState:!1,handleStateChange:function y(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={},o=i.split(","),a=this._findFragments(o) +var n=this,i=t.pjax||"Content",r={},a=i.split(","),o=this._findFragments(a) 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),a.length=0})),i.removeClass(a.join(" ")).addClass(l.join(" ")),r&&i.attr("style",r) +var r=n.attr("style"),a=n.parent(),o=["east","west","center","north","south","column-hidden"],s=n.attr("class"),l=[] +s&&(l=$.grep(s.split(" "),function(e){return $.inArray(e,o)>=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)}) var m=h.filter("form") @@ -1159,16 +1154,16 @@ return!1})},refresh:function C(){$(window).trigger("statechange"),$(this).redraw 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,o=!!r&&JSON.parse(r) +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) -this.find(".cms-tabset, .ss-tabset").each(function(){var n,i,r=$(this),a=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[a]?(i=r.find(e[a].tabSelector),i.length&&(n=i.index())):o&&$.each(o,function(e,t){a==t.id&&(n=t.selected)}),null!==n&&(r.tabs("option","active",n), +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 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, @@ -1224,8 +1219,8 @@ 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 re(){this.redrawTabs(),this._super()},onremove:function oe(){this.data("tabs")&&this.tabs("destroy"), -this._super()},redrawTabs:function ae(){this.rewriteHashlinks() +},success:function i(t,n,r){e.html(t)}})):this.html(window._panelDeferredCache[t]))}}),$(".cms-tabset").entwine({onadd:function re(){this.redrawTabs(),this._super()},onremove:function ae(){this.data("tabs")&&this.tabs("destroy"), +this._super()},redrawTabs:function oe(){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") @@ -1237,20 +1232,20 @@ this._super()},showHide:function ce(){var e=this,t=$(".cms-content-filters").fir n?(this.addClass("active"),t.css("display","block")):(this.removeClass("active"),t.css("display","")),e.data("collapsed",!n)},onclick:function de(){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),o=i(r) -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") +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") 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() -},ontabsbeforeactivate:function i(e,t){this.riseUp(e,t)},onclick:function r(e,t){this.attachCloseHandler(e,t)},attachCloseHandler:function o(t,n){var i=this,r=e(".cms-container").find("iframe"),o -o=function a(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",o) +},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) -}),e(document).off("click.ss-ui-action-tabset",o))},e(document).on("click.ss-ui-action-tabset",o),r.length>0&&r.each(function(t,n){e(n).contents().on("click.ss-ui-action-tabset",o)})},riseUp:function a(t,n){ -var i,r,o,a,s,l,u,c,d -return i=e(this).find(".ui-tabs-panel").outerHeight(),r=e(this).find(".ui-tabs-nav").outerHeight(),o=e(window).height()+e(document).scrollTop()-r,a=e(this).find(".ui-tabs-nav").offset().top,s=n.newPanel, -l=n.newTab,a+i>=o&&a-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",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"), 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") @@ -1263,15 +1258,15 @@ 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),o=i(r) -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") +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") },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 o(){var e=this.getPersistedCollapsedState() +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 void 0===e&&(e=this.hasClass("collapsed")),e},onadd:function a(){var t,n +return void 0===e&&(e=this.hasClass("collapsed")),e},onadd:function o(){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()), @@ -1283,8 +1278,8 @@ r.length&&(this.find(".cms-panel-content")[e?"show":"hide"](),this.find(".cms-pa 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),o=i(r) -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") +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") t&&this.setHints(e.parseJSON(t)) @@ -1292,41 +1287,41 @@ 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"),o=r.find("li:not(.disabled)") -if(r.hasClass("disabled")&&0==o)return t.stopImmediatePropagation(),!1}}).bind("move_node.jstree",function(t,i){if(!n.getIsUpdatingTree()){var r=i.rslt.o,o=i.rslt.np,a=i.inst._get_parent(r),s=e(o).data("id")||0,l=e(r).data("id"),u=e.map(e(r).siblings().andSelf(),function(t){ +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){ 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) })}},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){ var n=e(".cms-edit-form :input[name=ID]").val() -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(i){var r=e(i.o),o=e(i.np),a=i.ot.get_container()[0]==i.np[0],s=r.getClassname(),l=o.getClassname(),u=t.getHints(),c=[],d=l?l:"Root",f=u&&"undefined"!=typeof u[d]?u[d]:null +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 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")||a&&"inside"!=i.p||o.hasClass("nochildren")||c.length&&e.inArray(s,c)!=-1) +var p=!(0===r.data("id")||r.hasClass("status-archived")||o&&"inside"!=i.p||a.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")+"/thirdparty/jstree/themes/apple/style.css"},plugins:["html_data","ui","dnd","crrm","themes","checkbox"] -}},search:function a(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,o=void 0!==n.ParentID&&r.getNodeByID(n.ParentID),a=e(t),s={data:""} -a.hasClass("jstree-open")?s.state="open":a.hasClass("jstree-closed")&&(s.state="closed"),this.jstree("create_node",o.length?o:-1,"last",s,function(e){for(var t=e.attr("class"),n=0;n0){if(e.each(r,function(n,i){t.is("#"+i.id)&&(o=e("#"+i.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() +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() }}),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()}})}) 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),o=i(r) -o["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 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"), 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() else{e(".collapsed-flyout").find("li").each(function(){e(this).hide()}) @@ -1396,8 +1391,8 @@ 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 },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 o(t){void 0!==e.cookie&&e.cookie("cms-menu-sticky",t,{path:"/",expires:31 -})},getEvaluatedCollapsedState:function a(){var t,n=this.getPersistedCollapsedState(),i=e(".cms-menu").getPersistedStickyState(),r=this.siteTreePresent() +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 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() @@ -1425,14 +1420,14 @@ e&&e.open(),this.find("li.clone")&&this.find("li.clone").remove(),this.addClass( this.find(".toggle-children").removeClass("opened")},select:function E(){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")) +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 o=i.find("li") -o.length?o.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 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 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") @@ -1441,11 +1436,11 @@ this.toggleCSS(t),this.toggleIndicator(t),this._super()},toggleCSS:function R(e) 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() }})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r),a=n(112),s=i(a) -o["default"].entwine("ss.preview",function(e){e(".cms-preview").entwine({AllowedStates:["StageLink","LiveLink","ArchiveLink"],CurrentStateName:null,CurrentSizeName:"auto",IsPreviewEnabled:!1,DefaultMode:"split", +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r),o=n(112),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", 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,o=this._getNavigatorStates() -return i!==!1&&e.each(o,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,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") if("split"==t)r.splitViewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState() @@ -1460,9 +1455,9 @@ 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 o(e,t){this._supportsLocalStorage()&&window.localStorage.setItem("cms-preview-state-"+e,t) +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) -},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"), +},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"), 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") @@ -1493,15 +1488,15 @@ this._loadUrl("about:blank"),this._block()):(this.setPendingURL(null),r?(this._l n.length&&t.length?t.html(e(".cms-edit-form .cms-navigator").detach()):this._block()},_loadCurrentPage:function O(){if(this.getIsPreviewEnabled()){var t,n=e(".cms-container") -try{t=this.find("iframe")[0].contentDocument}catch(i){console.warn("Unable to access iframe, possible https mis-match")}if(t){var r=e(t).find("meta[name=x-page-id]").attr("content"),o=e(t).find("meta[name=x-cms-edit-link]").attr("content"),a=e(".cms-content") +try{t=this.find("iframe")[0].contentDocument}catch(i){console.warn("Unable to access iframe, possible https mis-match")}if(t){var r=e(t).find("meta[name=x-page-id]").attr("content"),a=e(t).find("meta[name=x-cms-edit-link]").attr("content"),o=e(".cms-content") -r&&a.find(":input[name=ID]").val()!=r&&e(".cms-container").entwine(".ss").loadPanel(o)}}},_adjustIframeForPreview:function S(){var e=this.find("iframe")[0],t -if(e){try{t=e.contentDocument}catch(n){console.warn("Unable to access iframe, possible https mis-match")}if(t){for(var i=t.getElementsByTagName("A"),r=0;r
'):this.parent().append('') }}),e(".preview-device-outer").entwine({onclick:function L(){this.parent(".preview__device").toggleClass("rotate")}})})},function(e,t,n){(function(e){"use strict" -function t(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),r=t(i),o=n(112),a=t(o) +function t(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),r=t(i),a=n(112),o=t(a) r["default"].entwine("ss.tree",function(t){t("#Form_BatchActionsForm").entwine({Actions:[],getTree:function n(){return t(".cms-tree")},fromTree:{oncheck_node:function i(e,t){this.serializeFromTree()},onuncheck_node:function r(e,t){ -this.serializeFromTree()}},onmatch:function o(){var e=this +this.serializeFromTree()}},onmatch:function a(){var e=this e.getTree().bind("load_node.jstree",function(t,n){e.refreshSelected()})},onunmatch:function s(){var e=this -e.getTree().unbind("load_node.jstree")},registerDefault:function l(){this.register("publish",function(e){var t=confirm(a["default"].inject(a["default"]._t("CMSMAIN.BATCH_PUBLISH_PROMPT","You have {num} page(s) selected.\n\nDo you really want to publish?"),{ +e.getTree().unbind("load_node.jstree")},registerDefault:function l(){this.register("publish",function(e){var t=confirm(o["default"].inject(o["default"]._t("CMSMAIN.BATCH_PUBLISH_PROMPT","You have {num} page(s) selected.\n\nDo you really want to publish?"),{ num:e.length})) -return!!t&&e}),this.register("unpublish",function(e){var t=confirm(a["default"].inject(a["default"]._t("CMSMAIN.BATCH_UNPUBLISH_PROMPT","You have {num} page(s) selected.\n\nDo you really want to unpublish"),{ +return!!t&&e}),this.register("unpublish",function(e){var t=confirm(o["default"].inject(o["default"]._t("CMSMAIN.BATCH_UNPUBLISH_PROMPT","You have {num} page(s) selected.\n\nDo you really want to unpublish"),{ num:e.length})) -return!!t&&e}),this.register("delete",function(e){var t=confirm(a["default"].inject(a["default"]._t("CMSMAIN.BATCH_DELETE_PROMPT","You have {num} page(s) selected.\n\nAre you sure you want to delete these pages?\n\nThese pages and all of their children pages will be deleted and sent to the archive."),{ +return!!t&&e}),this.register("delete",function(e){var t=confirm(o["default"].inject(o["default"]._t("CMSMAIN.BATCH_DELETE_PROMPT","You have {num} page(s) selected.\n\nAre you sure you want to delete these pages?\n\nThese pages and all of their children pages will be deleted and sent to the archive."),{ num:e.length})) -return!!t&&e}),this.register("restore",function(e){var t=confirm(a["default"].inject(a["default"]._t("CMSMAIN.BATCH_RESTORE_PROMPT","You have {num} page(s) selected.\n\nDo you really want to restore to stage?\n\nChildren of archived pages will be restored to the root level, unless those pages are also being restored."),{ +return!!t&&e}),this.register("restore",function(e){var t=confirm(o["default"].inject(o["default"]._t("CMSMAIN.BATCH_RESTORE_PROMPT","You have {num} page(s) selected.\n\nDo you really want to restore to stage?\n\nChildren of archived pages will be restored to the root level, unless those pages are also being restored."),{ num:e.length})) return!!t&&e})},onadd:function u(){this.registerDefault(),this._super()},register:function c(e,t){this.trigger("register",{type:e,callback:t}) var n=this.getActions() n[e]=t,this.setActions(n)},unregister:function d(e){this.trigger("unregister",{type:e}) var t=this.getActions() -t[e]&&delete t[e],this.setActions(t)},refreshSelected:function f(n){var i=this,r=this.getTree(),o=this.getIDs(),a=[],s=t(".cms-content-batchactions-button"),l=this.find(":input[name=Action]").val() +t[e]&&delete t[e],this.setActions(t)},refreshSelected:function f(n){var i=this,r=this.getTree(),a=this.getIDs(),o=[],s=t(".cms-content-batchactions-button"),l=this.find(":input[name=Action]").val() null==n&&(n=r) -for(var u in o)t(t(r).getNodeByID(u)).addClass("selected").attr("selected","selected") +for(var u in a)t(t(r).getNodeByID(u)).addClass("selected").attr("selected","selected") if(!l||l==-1||!s.hasClass("active"))return void t(n).find("li").each(function(){t(this).setEnabled(!0)}) -t(n).find("li").each(function(){a.push(t(this).data("id")),t(this).addClass("treeloading").setEnabled(!1)}) +t(n).find("li").each(function(){o.push(t(this).data("id")),t(this).addClass("treeloading").setEnabled(!1)}) var c=t.path.parseUrl(l),d=c.hrefNoSearch+"/applicablepages/" -d=t.path.addSearchParams(d,c.search),d=t.path.addSearchParams(d,{csvIDs:a.join(",")}),e.getJSON(d,function(r){e(n).find("li").each(function(){t(this).removeClass("treeloading") +d=t.path.addSearchParams(d,c.search),d=t.path.addSearchParams(d,{csvIDs:o.join(",")}),e.getJSON(d,function(r){e(n).find("li").each(function(){t(this).removeClass("treeloading") var e=t(this).data("id") 0==e||t.inArray(e,r)>=0?t(this).setEnabled(!0):(t(this).removeClass("selected").setEnabled(!1),t(this).prop("selected",!1))}),i.serializeFromTree()})},serializeFromTree:function p(){var e=this.getTree(),t=e.getSelectedIDs() return this.setIDs(t),!0},setIDs:function h(e){this.find(":input[name=csvIDs]").val(e?e.join(","):null)},getIDs:function m(){var e=this.find(":input[name=csvIDs]").val() -return e?e.split(","):[]},onsubmit:function g(n){var i=this,r=this.getIDs(),o=this.getTree(),s=this.getActions() -if(!r||!r.length)return alert(a["default"]._t("CMSMAIN.SELECTONEPAGE","Please select at least one page")),n.preventDefault(),!1 +return e?e.split(","):[]},onsubmit:function g(n){var i=this,r=this.getIDs(),a=this.getTree(),s=this.getActions() +if(!r||!r.length)return alert(o["default"]._t("CMSMAIN.SELECTONEPAGE","Please select at least one page")),n.preventDefault(),!1 var l=this.find(":input[name=Action]").val() if(!l)return n.preventDefault(),!1 var u=l.split("/").filter(function(e){return!!e}).pop() if(s[u]&&(r=s[u].apply(this,[r])),!r||!r.length)return n.preventDefault(),!1 -this.setIDs(r),o.find("li").removeClass("failed") +this.setIDs(r),a.find("li").removeClass("failed") var c=this.find(":submit:first") -return c.addClass("loading"),e.ajax({url:l,type:"POST",data:this.serializeArray(),complete:function d(e,t){c.removeClass("loading"),o.jstree("refresh",-1),i.setIDs([]),i.find(":input[name=Action]").val("").change() +return c.addClass("loading"),e.ajax({url:l,type:"POST",data:this.serializeArray(),complete:function d(e,t){c.removeClass("loading"),a.jstree("refresh",-1),i.setIDs([]),i.find(":input[name=Action]").val("").change() var n=e.getResponseHeader("X-Status") n&&statusMessage(decodeURIComponent(n),"success"==t?"good":"bad")},success:function f(e,n){var i,r -if(e.modified){var a=[] -for(i in e.modified)r=o.getNodeByID(i),o.jstree("set_text",r,e.modified[i].TreeTitle),a.push(r) -t(a).effect("highlight")}if(e.deleted)for(i in e.deleted)r=o.getNodeByID(i),r.length&&o.jstree("delete_node",r) -if(e.error)for(i in e.error)r=o.getNodeByID(i),t(r).addClass("failed")},dataType:"json"}),n.preventDefault(),!1}}),t(".cms-content-batchactions-button").entwine({onmatch:function v(){this._super(),this.updateTree() +if(e.modified){var o=[] +for(i in e.modified)r=a.getNodeByID(i),a.jstree("set_text",r,e.modified[i].TreeTitle),o.push(r) +t(o).effect("highlight")}if(e.deleted)for(i in e.deleted)r=a.getNodeByID(i),r.length&&a.jstree("delete_node",r) +if(e.error)for(i in e.error)r=a.getNodeByID(i),t(r).addClass("failed")},dataType:"json"}),n.preventDefault(),!1}}),t(".cms-content-batchactions-button").entwine({onmatch:function v(){this._super(),this.updateTree() },onunmatch:function y(){this._super()},onclick:function b(e){this.updateTree()},updateTree:function _(){var e=t(".cms-tree"),n=t("#Form_BatchActionsForm") this._super(),this.data("active")?(e.addClass("multiple"),e.removeClass("draggable"),n.serializeFromTree()):(e.removeClass("multiple"),e.addClass("draggable")),t("#Form_BatchActionsForm").refreshSelected() @@ -1571,104 +1566,104 @@ this._super(),this.data("active")?(e.addClass("multiple"),e.removeClass("draggab r&&r!=-1?i.removeAttr("disabled").button("refresh"):i.attr("disabled","disabled").button("refresh"),t("#Form_BatchActionsForm").refreshSelected(),this.trigger("chosen:updated"),this._super(e)}})})}).call(t,n(1)) },function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -o["default"].entwine("ss",function(e){e(".cms .field.cms-description-tooltip").entwine({onmatch:function t(){this._super() +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 .field.cms-description-tooltip").entwine({onmatch:function t(){this._super() var e=this.find(".description"),t,n e.length&&(this.attr("title",e.text()).tooltip({content:e.html()}),e.remove())}}),e(".cms .field.cms-description-tooltip :input").entwine({onfocusin:function n(e){this.closest(".field").tooltip("open") },onfocusout:function i(e){this.closest(".field").tooltip("close")}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -o["default"].entwine("ss",function(e){e(".cms-description-toggle").entwine({onadd:function t(){var e=!1,t=this.prop("id").substr(0,this.prop("id").indexOf("_Holder")),n=this.find(".cms-description-trigger"),i=this.find(".description") +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-description-toggle").entwine({onadd:function t(){var e=!1,t=this.prop("id").substr(0,this.prop("id").indexOf("_Holder")),n=this.find(".cms-description-trigger"),i=this.find(".description") this.hasClass("description-toggle-enabled")||(0===n.length&&(n=this.find(".middleColumn").first().after('').next()), this.addClass("description-toggle-enabled"),n.on("click",function(){i[e?"hide":"show"](),e=!e}),i.hide())}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -o["default"].entwine("ss",function(e){e(".TreeDropdownField").entwine({"from .cms-container form":{onaftersubmitform:function t(e){this.find(".tree-holder").empty(),this._super()}}})})},function(e,t,n){ +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) +a["default"].entwine("ss",function(e){e(".TreeDropdownField").entwine({"from .cms-container form":{onaftersubmitform:function t(e){this.find(".tree-holder").empty(),this._super()}}})})},function(e,t,n){ "use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r),a=n(5),s=i(a),l=n(174),u=i(l),c=n(105),d=n(175),f=i(d) -o["default"].entwine("ss",function(e){e(".cms-content-actions .add-to-campaign-action,#add-to-campaign__action").entwine({onclick:function t(){var t=e("#add-to-campaign__dialog-wrapper") +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r),o=n(5),s=i(o),l=n(174),u=i(l),c=n(105),d=n(175),f=i(d) +a["default"].entwine("ss",function(e){e(".cms-content-actions .add-to-campaign-action,#add-to-campaign__action").entwine({onclick:function t(){var t=e("#add-to-campaign__dialog-wrapper") return t.length||(t=e('
'),e("body").append(t)),t.open(),!1}}),e("#add-to-campaign__dialog-wrapper").entwine({onunmatch:function n(){this._clearModal()},open:function i(){ -this._renderModal(!0)},close:function r(){this._renderModal(!1)},_renderModal:function o(t){var n=this,i=function h(){return n.close()},r=function m(){return n._handleSubmitModal.apply(n,arguments)},o=e("form.cms-edit-form :input[name=ID]").val(),a=window.ss.store,l="SilverStripe\\CMS\\Controllers\\CMSPageEditController",d=a.getState().config.sections[l],p=d.form.AddToCampaignForm.schemaUrl+"/"+o +this._renderModal(!0)},close:function r(){this._renderModal(!1)},_renderModal:function a(t){var n=this,i=function h(){return n.close()},r=function m(){return n._handleSubmitModal.apply(n,arguments)},a=e("form.cms-edit-form :input[name=ID]").val(),o=window.ss.store,l="SilverStripe\\CMS\\Controllers\\CMSPageEditController",d=o.getState().config.sections[l],p=d.form.AddToCampaignForm.schemaUrl+"/"+a -u["default"].render(s["default"].createElement(c.Provider,{store:a},s["default"].createElement(f["default"],{show:t,handleSubmit:r,handleHide:i,schemaUrl:p,bodyClassName:"modal__dialog",responseClassBad:"modal__response modal__response--error", -responseClassGood:"modal__response modal__response--good"})),this[0])},_clearModal:function a(){u["default"].unmountComponentAtNode(this[0])},_handleSubmitModal:function l(e,t,n){return n()}})})},,function(e,t){ +u["default"].render(s["default"].createElement(c.Provider,{store:o},s["default"].createElement(f["default"],{show:t,handleSubmit:r,handleHide:i,schemaUrl:p,bodyClassName:"modal__dialog",responseClassBad:"modal__response modal__response--error", +responseClassGood:"modal__response modal__response--good"})),this[0])},_clearModal:function o(){u["default"].unmountComponentAtNode(this[0])},_handleSubmitModal:function l(e,t,n){return n()}})})},,function(e,t){ e.exports=FormBuilderModal},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) n(161),n(177) -var a=function s(e){var t=(0,o["default"])((0,o["default"])(this).contents()).find(".message") -if(t&&t.html()){var n=(0,o["default"])(window.parent.document).find("#Form_EditForm_Members").get(0) +var o=function s(e){var t=(0,a["default"])((0,a["default"])(this).contents()).find(".message") +if(t&&t.html()){var n=(0,a["default"])(window.parent.document).find("#Form_EditForm_Members").get(0) n&&n.refresh() -var i=(0,o["default"])(window.parent.document).find(".cms-tree").get(0) -i&&i.reload()}};(0,o["default"])("#MemberImportFormIframe, #GroupImportFormIframe").entwine({onadd:function l(){this._super(),(0,o["default"])(this).bind("load",a)}}),o["default"].entwine("ss",function(e){ +var i=(0,a["default"])(window.parent.document).find(".cms-tree").get(0) +i&&i.reload()}};(0,a["default"])("#MemberImportFormIframe, #GroupImportFormIframe").entwine({onadd:function l(){this._super(),(0,a["default"])(this).bind("load",o)}}),a["default"].entwine("ss",function(e){ e(".permissioncheckboxset .checkbox[value=ADMIN]").entwine({onmatch:function t(){this.toggleCheckboxes(),this._super()},onunmatch:function n(){this._super()},onclick:function i(e){this.toggleCheckboxes() },toggleCheckboxes:function r(){var t=this,n=this.parents(".field:eq(0)").find(".checkbox").not(this) this.is(":checked")?n.each(function(){e(this).data("SecurityAdmin.oldChecked",e(this).is(":checked")),e(this).data("SecurityAdmin.oldDisabled",e(this).is(":disabled")),e(this).prop("disabled",!0),e(this).prop("checked",!0) }):n.each(function(){e(this).prop("checked",e(this).data("SecurityAdmin.oldChecked")),e(this).prop("disabled",e(this).data("SecurityAdmin.oldDisabled"))})}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -o["default"].entwine("ss",function(e){e(".permissioncheckboxset .valADMIN input").entwine({onmatch:function t(){this._super()},onunmatch:function n(){this._super()},onclick:function i(e){this.toggleCheckboxes() +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) +a["default"].entwine("ss",function(e){e(".permissioncheckboxset .valADMIN input").entwine({onmatch:function t(){this._super()},onunmatch:function n(){this._super()},onclick:function i(e){this.toggleCheckboxes() },toggleCheckboxes:function r(){var t=e(this).parents(".field:eq(0)").find(".checkbox").not(this) e(this).is(":checked")?t.each(function(){e(this).data("SecurityAdmin.oldChecked",e(this).attr("checked")),e(this).data("SecurityAdmin.oldDisabled",e(this).attr("disabled")),e(this).attr("disabled","disabled"), e(this).attr("checked","checked")}):t.each(function(){var t=e(this).data("SecurityAdmin.oldChecked"),n=e(this).data("SecurityAdmin.oldDisabled") -null!==t&&e(this).attr("checked",t),null!==n&&e(this).attr("disabled",n)})}}),e(".permissioncheckboxset .valCMS_ACCESS_LeftAndMain input").entwine({getCheckboxesExceptThisOne:function o(){return e(this).parents(".field:eq(0)").find("li").filter(function(t){ +null!==t&&e(this).attr("checked",t),null!==n&&e(this).attr("disabled",n)})}}),e(".permissioncheckboxset .valCMS_ACCESS_LeftAndMain input").entwine({getCheckboxesExceptThisOne:function a(){return e(this).parents(".field:eq(0)").find("li").filter(function(t){ var n=e(this).attr("class") -return!!n&&n.match(/CMS_ACCESS_/)}).find(".checkbox").not(this)},onmatch:function a(){this.toggleCheckboxes(),this._super()},onunmatch:function s(){this._super()},onclick:function l(e){this.toggleCheckboxes() +return!!n&&n.match(/CMS_ACCESS_/)}).find(".checkbox").not(this)},onmatch:function o(){this.toggleCheckboxes(),this._super()},onunmatch:function s(){this._super()},onclick:function l(e){this.toggleCheckboxes() },toggleCheckboxes:function u(){var t=this.getCheckboxesExceptThisOne() e(this).is(":checked")?t.each(function(){e(this).data("PermissionCheckboxSetField.oldChecked",e(this).is(":checked")),e(this).data("PermissionCheckboxSetField.oldDisabled",e(this).is(":disabled")),e(this).prop("disabled","disabled"), e(this).prop("checked","checked")}):t.each(function(){e(this).prop("checked",e(this).data("PermissionCheckboxSetField.oldChecked")),e(this).prop("disabled",e(this).data("PermissionCheckboxSetField.oldDisabled")) })}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -n(161),o["default"].entwine("ss",function(e){e(".cms-content-tools #Form_SearchForm").entwine({onsubmit:function t(e){this.trigger("beforeSubmit")}}),e(".importSpec").entwine({onmatch:function n(){this.find("div.details").hide(), +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) +n(161),a["default"].entwine("ss",function(e){e(".cms-content-tools #Form_SearchForm").entwine({onsubmit:function t(e){this.trigger("beforeSubmit")}}),e(".importSpec").entwine({onmatch:function n(){this.find("div.details").hide(), this.find("a.detailsLink").click(function(){return e("#"+e(this).attr("href").replace(/.*#/,"")).slideToggle(),!1}),this._super()},onunmatch:function i(){this._super()}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r);(0,o["default"])(".ss-assetuploadfield").entwine({onmatch:function a(){this._super(),this.find(".ss-uploadfield-editandorganize").hide() +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r);(0,a["default"])(".ss-assetuploadfield").entwine({onmatch:function o(){this._super(),this.find(".ss-uploadfield-editandorganize").hide() },onunmatch:function s(){this._super()},onfileuploadadd:function l(e){this.find(".ss-uploadfield-editandorganize").show()},onfileuploadstart:function u(e){this.find(".ss-uploadfield-editandorganize").show() -}}),(0,o["default"])(".ss-uploadfield-view-allowed-extensions .toggle").entwine({onclick:function c(e){var t=this.closest(".ss-uploadfield-view-allowed-extensions"),n=this.closest(".ui-tabs-panel").height()+20 +}}),(0,a["default"])(".ss-uploadfield-view-allowed-extensions .toggle").entwine({onclick:function c(e){var t=this.closest(".ss-uploadfield-view-allowed-extensions"),n=this.closest(".ui-tabs-panel").height()+20 t.toggleClass("active"),t.find(".toggle-content").css("minHeight",n)}})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r);(0,o["default"])(document).on("click",".confirmedpassword .showOnClick a",function(){var e=(0,o["default"])(".showOnClickContainer",(0, -o["default"])(this).parent()) +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r);(0,a["default"])(document).on("click",".confirmedpassword .showOnClick a",function(){var e=(0,a["default"])(".showOnClickContainer",(0, +a["default"])(this).parent()) return e.toggle("fast",function(){e.find('input[type="hidden"]').val(e.is(":visible")?1:0)}),!1})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r),a=n(112),s=i(a) -window.tmpl=n(182),n(183),n(184),o["default"].widget("blueimpUIX.fileupload",o["default"].blueimpUI.fileupload,{_initTemplates:function l(){this.options.templateContainer=document.createElement(this._files.prop("nodeName")), -this.options.uploadTemplate=window.tmpl(this.options.uploadTemplateName),this.options.downloadTemplate=window.tmpl(this.options.downloadTemplateName)},_enableFileInputButton:function u(){o["default"].blueimpUI.fileupload.prototype._enableFileInputButton.call(this), -this.element.find(".ss-uploadfield-addfile").show()},_disableFileInputButton:function c(){o["default"].blueimpUI.fileupload.prototype._disableFileInputButton.call(this),this.element.find(".ss-uploadfield-addfile").hide() +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r),o=n(112),s=i(o) +window.tmpl=n(182),n(183),n(184),a["default"].widget("blueimpUIX.fileupload",a["default"].blueimpUI.fileupload,{_initTemplates:function l(){this.options.templateContainer=document.createElement(this._files.prop("nodeName")), +this.options.uploadTemplate=window.tmpl(this.options.uploadTemplateName),this.options.downloadTemplate=window.tmpl(this.options.downloadTemplateName)},_enableFileInputButton:function u(){a["default"].blueimpUI.fileupload.prototype._enableFileInputButton.call(this), +this.element.find(".ss-uploadfield-addfile").show()},_disableFileInputButton:function c(){a["default"].blueimpUI.fileupload.prototype._disableFileInputButton.call(this),this.element.find(".ss-uploadfield-addfile").hide() -},_onAdd:function d(e,t){var n=o["default"].blueimpUI.fileupload.prototype._onAdd.call(this,e,t),i=this._files.find(".ss-uploadfield-item").slice(t.files.length*-1).first(),r="+="+(i.position().top-parseInt(i.css("marginTop"),10)||0-parseInt(i.css("borderTopWidth"),10)||0) +},_onAdd:function d(e,t){var n=a["default"].blueimpUI.fileupload.prototype._onAdd.call(this,e,t),i=this._files.find(".ss-uploadfield-item").slice(t.files.length*-1).first(),r="+="+(i.position().top-parseInt(i.css("marginTop"),10)||0-parseInt(i.css("borderTopWidth"),10)||0) i.offsetParent().animate({scrollTop:r},1e3) -for(var a=0,l=0;l0&&(a=this._formatFileSize(a),(0,o["default"])(".fileOverview .uploadStatus .details .fileSize").text(a)), -1==t.files.length&&null!==t.files[0].error?((0,o["default"])(".fileOverview .uploadStatus .state").text(s["default"]._t("AssetUploadField.UploadField.UPLOADFAIL","Sorry your upload failed")),(0,o["default"])(".fileOverview .uploadStatus").addClass("bad").removeClass("good").removeClass("notice")):((0, -o["default"])(".fileOverview .uploadStatus .state").text(s["default"]._t("AssetUploadField.UPLOADINPROGRESS","Please wait… upload in progress")),(0,o["default"])(".ss-uploadfield-item-edit-all").hide(), -(0,o["default"])(".fileOverview .uploadStatus").addClass("notice").removeClass("good").removeClass("bad")),n},_onDone:function f(e,t,n,i){this.options.changeDetection&&this.element.closest("form").trigger("dirty"), -o["default"].blueimpUI.fileupload.prototype._onDone.call(this,e,t,n,i)},_onSend:function p(e,t){var n=this,i=this.options -return i.overwriteWarning&&i.replaceFile?void o["default"].get(i.urlFileExists,{filename:t.files[0].name},function(r,a,s){return r.exists?(t.context.find(".ss-uploadfield-item-status").text(i.errorMessages.overwriteWarning).addClass("ui-state-warning-text"), +for(var o=0,l=0;l0&&(o=this._formatFileSize(o),(0,a["default"])(".fileOverview .uploadStatus .details .fileSize").text(o)), +1==t.files.length&&null!==t.files[0].error?((0,a["default"])(".fileOverview .uploadStatus .state").text(s["default"]._t("AssetUploadField.UploadField.UPLOADFAIL","Sorry your upload failed")),(0,a["default"])(".fileOverview .uploadStatus").addClass("bad").removeClass("good").removeClass("notice")):((0, +a["default"])(".fileOverview .uploadStatus .state").text(s["default"]._t("AssetUploadField.UPLOADINPROGRESS","Please wait… upload in progress")),(0,a["default"])(".ss-uploadfield-item-edit-all").hide(), +(0,a["default"])(".fileOverview .uploadStatus").addClass("notice").removeClass("good").removeClass("bad")),n},_onDone:function f(e,t,n,i){this.options.changeDetection&&this.element.closest("form").trigger("dirty"), +a["default"].blueimpUI.fileupload.prototype._onDone.call(this,e,t,n,i)},_onSend:function p(e,t){var n=this,i=this.options +return i.overwriteWarning&&i.replaceFile?void a["default"].get(i.urlFileExists,{filename:t.files[0].name},function(r,o,s){return r.exists?(t.context.find(".ss-uploadfield-item-status").text(i.errorMessages.overwriteWarning).addClass("ui-state-warning-text"), t.context.find(".ss-uploadfield-item-progress").hide(),t.context.find(".ss-uploadfield-item-overwrite").show(),t.context.find(".ss-uploadfield-item-overwrite-warning").on("click",function(e){return t.context.find(".ss-uploadfield-item-progress").show(), -t.context.find(".ss-uploadfield-item-overwrite").hide(),t.context.find(".ss-uploadfield-item-status").removeClass("ui-state-warning-text"),o["default"].blueimpUI.fileupload.prototype._onSend.call(n,e,t), -e.preventDefault(),!1}),void 0):o["default"].blueimpUI.fileupload.prototype._onSend.call(n,e,t)}):o["default"].blueimpUI.fileupload.prototype._onSend.call(n,e,t)},_onAlways:function h(e,t,n,i){o["default"].blueimpUI.fileupload.prototype._onAlways.call(this,e,t,n,i), -"string"==typeof n?((0,o["default"])(".fileOverview .uploadStatus .state").text(s["default"]._t("AssetUploadField.UploadField.UPLOADFAIL","Sorry your upload failed")),(0,o["default"])(".fileOverview .uploadStatus").addClass("bad").removeClass("good").removeClass("notice")):200===n.status&&((0, -o["default"])(".fileOverview .uploadStatus .state").text(s["default"]._t("AssetUploadField.FILEUPLOADCOMPLETED","File upload completed!")),(0,o["default"])(".ss-uploadfield-item-edit-all").show(),(0,o["default"])(".fileOverview .uploadStatus").addClass("good").removeClass("notice").removeClass("bad")) +t.context.find(".ss-uploadfield-item-overwrite").hide(),t.context.find(".ss-uploadfield-item-status").removeClass("ui-state-warning-text"),a["default"].blueimpUI.fileupload.prototype._onSend.call(n,e,t), +e.preventDefault(),!1}),void 0):a["default"].blueimpUI.fileupload.prototype._onSend.call(n,e,t)}):a["default"].blueimpUI.fileupload.prototype._onSend.call(n,e,t)},_onAlways:function h(e,t,n,i){a["default"].blueimpUI.fileupload.prototype._onAlways.call(this,e,t,n,i), +"string"==typeof n?((0,a["default"])(".fileOverview .uploadStatus .state").text(s["default"]._t("AssetUploadField.UploadField.UPLOADFAIL","Sorry your upload failed")),(0,a["default"])(".fileOverview .uploadStatus").addClass("bad").removeClass("good").removeClass("notice")):200===n.status&&((0, +a["default"])(".fileOverview .uploadStatus .state").text(s["default"]._t("AssetUploadField.FILEUPLOADCOMPLETED","File upload completed!")),(0,a["default"])(".ss-uploadfield-item-edit-all").show(),(0,a["default"])(".fileOverview .uploadStatus").addClass("good").removeClass("notice").removeClass("bad")) -},_create:function m(){o["default"].blueimpUI.fileupload.prototype._create.call(this),this._adjustMaxNumberOfFiles(0)},attach:function g(e){this.options.changeDetection&&this.element.closest("form").trigger("dirty") +},_create:function m(){a["default"].blueimpUI.fileupload.prototype._create.call(this),this._adjustMaxNumberOfFiles(0)},attach:function g(e){this.options.changeDetection&&this.element.closest("form").trigger("dirty") -var t=this,n=e.files,i=e.replaceFileID,r=!0,a=null -i&&(a=(0,o["default"])(".ss-uploadfield-item[data-fileid='"+i+"']"),0===a.length?a=null:t._adjustMaxNumberOfFiles(1)),o["default"].each(n,function(e,n){t._adjustMaxNumberOfFiles(-1),r=t._validate([n])&&r +var t=this,n=e.files,i=e.replaceFileID,r=!0,o=null +i&&(o=(0,a["default"])(".ss-uploadfield-item[data-fileid='"+i+"']"),0===o.length?o=null:t._adjustMaxNumberOfFiles(1)),a["default"].each(n,function(e,n){t._adjustMaxNumberOfFiles(-1),r=t._validate([n])&&r -}),e.isAdjusted=!0,e.files.valid=e.isValidated=r,e.context=this._renderDownload(n),a?a.replaceWith(e.context):e.context.appendTo(this._files),e.context.data("data",e),this._reflow=this._transition&&e.context[0].offsetWidth, -e.context.addClass("in")}}),o["default"].entwine("ss",function(e){e("div.ss-upload").entwine({Config:null,onmatch:function t(){if(!this.is(".readonly,.disabled")){var t=this.find(".ss-uploadfield-fromcomputer-fileinput"),n=e(".ss-uploadfield-dropzone"),i=t.data("config") +}),e.isAdjusted=!0,e.files.valid=e.isValidated=r,e.context=this._renderDownload(n),o?o.replaceWith(e.context):e.context.appendTo(this._files),e.context.data("data",e),this._reflow=this._transition&&e.context[0].offsetWidth, +e.context.addClass("in")}}),a["default"].entwine("ss",function(e){e("div.ss-upload").entwine({Config:null,onmatch:function t(){if(!this.is(".readonly,.disabled")){var t=this.find(".ss-uploadfield-fromcomputer-fileinput"),n=e(".ss-uploadfield-dropzone"),i=t.data("config") n.on("dragover",function(e){e.preventDefault()}),n.on("dragenter",function(e){n.addClass("hover active")}),n.on("dragleave",function(e){e.target===n[0]&&n.removeClass("hover active")}),n.on("drop",function(e){ @@ -1677,29 +1672,29 @@ if(n.removeClass("hover active"),e.target!==n[0])return!1}),this.setConfig(i),th return n&&i.push({name:"ID",value:n}),i},errorMessages:{1:s["default"]._t("UploadField.PHP_MAXFILESIZE"),2:s["default"]._t("UploadField.HTML_MAXFILESIZE"),3:s["default"]._t("UploadField.ONLYPARTIALUPLOADED"), 4:s["default"]._t("UploadField.NOFILEUPLOADED"),5:s["default"]._t("UploadField.NOTMPFOLDER"),6:s["default"]._t("UploadField.WRITEFAILED"),7:s["default"]._t("UploadField.STOPEDBYEXTENSION"),maxFileSize:s["default"]._t("UploadField.TOOLARGESHORT"), minFileSize:s["default"]._t("UploadField.TOOSMALL"),acceptFileTypes:s["default"]._t("UploadField.INVALIDEXTENSIONSHORT"),maxNumberOfFiles:s["default"]._t("UploadField.MAXNUMBEROFFILESSHORT"),uploadedBytes:s["default"]._t("UploadField.UPLOADEDBYTES"), -emptyResult:s["default"]._t("UploadField.EMPTYRESULT")},send:function o(t,n){n.context&&n.dataType&&"iframe"===n.dataType.substr(0,6)&&(n.total=1,n.loaded=1,e(this).data("fileupload").options.progress(t,n)) +emptyResult:s["default"]._t("UploadField.EMPTYRESULT")},send:function a(t,n){n.context&&n.dataType&&"iframe"===n.dataType.substr(0,6)&&(n.total=1,n.loaded=1,e(this).data("fileupload").options.progress(t,n)) -},progress:function a(e,t){if(t.context){var n=parseInt(t.loaded/t.total*100,10)+"%" +},progress:function o(e,t){if(t.context){var n=parseInt(t.loaded/t.total*100,10)+"%" t.context.find(".ss-uploadfield-item-status").html(1==t.total?s["default"]._t("UploadField.LOADING"):n),t.context.find(".ss-uploadfield-item-progressbarvalue").css("width",n)}}},i,{fileInput:t,dropZone:n, form:t.closest("form"),previewAsCanvas:!1,acceptFileTypes:new RegExp(i.acceptFileTypes,"i")})),this.data("fileupload")._isXHRUpload({multipart:!0})&&e(".ss-uploadfield-item-uploador").hide().show(),this._super() -}},onunmatch:function n(){e(".ss-uploadfield-dropzone").off("dragover dragenter dragleave drop"),this._super()},openSelectDialog:function i(t){var n=this,i=this.getConfig(),r="ss-uploadfield-dialog-"+this.attr("id"),o=e("#"+r) +}},onunmatch:function n(){e(".ss-uploadfield-dropzone").off("dragover dragenter dragleave drop"),this._super()},openSelectDialog:function i(t){var n=this,i=this.getConfig(),r="ss-uploadfield-dialog-"+this.attr("id"),a=e("#"+r) -o.length||(o=e('
')) -var a=i.urlSelectDialog,s=null -t&&t.attr("data-fileid")>0&&(s=t.attr("data-fileid")),o.ssdialog({iframeUrl:a,height:550}),o.find("iframe").bind("load",function(t){var i=e(this).contents(),r=i.find(".grid-field") +a.length||(a=e('
')) +var o=i.urlSelectDialog,s=null +t&&t.attr("data-fileid")>0&&(s=t.attr("data-fileid")),a.ssdialog({iframeUrl:o,height:550}),a.find("iframe").bind("load",function(t){var i=e(this).contents(),r=i.find(".grid-field") i.find("table.grid-field").css("margin-top",0),i.find("input[name=action_doAttach]").unbind("click.openSelectDialog").bind("click.openSelectDialog",function(){var t=e.map(r.find(".ss-gridfield-item.ui-selected"),function(t){ return e(t).data("id")}) -return t&&t.length&&n.attachFiles(t,s),o.ssdialog("close"),!1})}),o.ssdialog("open")},attachFiles:function r(t,n){var i=this,r=this.getConfig(),o=e('
'),a=n?this.find(".ss-uploadfield-item[data-fileid='"+n+"']"):this.find(".ss-uploadfield-addfile") +return t&&t.length&&n.attachFiles(t,s),a.ssdialog("close"),!1})}),a.ssdialog("open")},attachFiles:function r(t,n){var i=this,r=this.getConfig(),a=e('
'),o=n?this.find(".ss-uploadfield-item[data-fileid='"+n+"']"):this.find(".ss-uploadfield-addfile") -a.children().hide(),a.append(o),e.ajax({type:"POST",url:r.urlAttach,data:{ids:t},complete:function s(e,t){a.children().show(),o.remove()},success:function l(t,r,o){t&&!e.isEmptyObject(t)&&i.fileupload("attach",{ -files:t,options:i.fileupload("option"),replaceFileID:n})}})}}),e("div.ss-upload *").entwine({getUploadField:function o(){return this.parents("div.ss-upload:first")}}),e("div.ss-upload .ss-uploadfield-files .ss-uploadfield-item").entwine({ -onadd:function a(){this._super(),this.closest(".ss-upload").find(".ss-uploadfield-addfile").addClass("borderTop")},onremove:function l(){e(".ss-uploadfield-files:not(:has(.ss-uploadfield-item))").closest(".ss-upload").find(".ss-uploadfield-addfile").removeClass("borderTop"), +o.children().hide(),o.append(a),e.ajax({type:"POST",url:r.urlAttach,data:{ids:t},complete:function s(e,t){o.children().show(),a.remove()},success:function l(t,r,a){t&&!e.isEmptyObject(t)&&i.fileupload("attach",{ +files:t,options:i.fileupload("option"),replaceFileID:n})}})}}),e("div.ss-upload *").entwine({getUploadField:function a(){return this.parents("div.ss-upload:first")}}),e("div.ss-upload .ss-uploadfield-files .ss-uploadfield-item").entwine({ +onadd:function o(){this._super(),this.closest(".ss-upload").find(".ss-uploadfield-addfile").addClass("borderTop")},onremove:function l(){e(".ss-uploadfield-files:not(:has(.ss-uploadfield-item))").closest(".ss-upload").find(".ss-uploadfield-addfile").removeClass("borderTop"), this._super()}}),e("div.ss-upload .ss-uploadfield-startall").entwine({onclick:function u(e){return this.closest(".ss-upload").find(".ss-uploadfield-item-start button").click(),e.preventDefault(),!1}}), e("div.ss-upload .ss-uploadfield-item-cancelfailed").entwine({onclick:function c(e){return this.closest(".ss-uploadfield-item").remove(),e.preventDefault(),!1}}),e("div.ss-upload .ss-uploadfield-item-remove:not(.ui-state-disabled), .ss-uploadfield-item-delete:not(.ui-state-disabled)").entwine({ -onclick:function d(e){var t=this.closest("div.ss-upload"),n=t.getConfig("changeDetection"),i=t.data("fileupload"),r=this.closest(".ss-uploadfield-item"),o="" +onclick:function d(e){var t=this.closest("div.ss-upload"),n=t.getConfig("changeDetection"),i=t.data("fileupload"),r=this.closest(".ss-uploadfield-item"),a="" return this.is(".ss-uploadfield-item-delete")?confirm(s["default"]._t("UploadField.ConfirmDelete"))&&(n.changeDetection&&this.closest("form").trigger("dirty"),i&&i._trigger("destroy",e,{context:r,url:this.data("href"), type:"get",dataType:i.options.dataType})):(n.changeDetection&&this.closest("form").trigger("dirty"),i&&i._trigger("destroy",e,{context:r})),e.preventDefault(),!1}}),e("div.ss-upload .ss-uploadfield-item-edit-all").entwine({ onclick:function f(t){return e(this).hasClass("opened")?(e(".ss-uploadfield-item .ss-uploadfield-item-edit .toggle-details-icon.opened").each(function(t){e(this).closest(".ss-uploadfield-item-edit").click() @@ -1709,82 +1704,82 @@ onclick:function f(t){return e(this).hasClass("opened")?(e(".ss-uploadfield-item }),e(this).addClass("opened").find(".toggle-details-icon").addClass("opened")),t.preventDefault(),!1}}),e("div.ss-upload:not(.disabled):not(.readonly) .ss-uploadfield-item-edit").entwine({onclick:function p(e){ var t=this,n=t.closest(".ss-uploadfield-item").find(".ss-uploadfield-item-editform"),i=n.prev(".ss-uploadfield-item-info"),r=n.find("iframe") if(r.parent().hasClass("loading"))return e.preventDefault(),!1 -if("about:blank"==r.attr("src")){var o=this.siblings() -r.attr("src",r.data("src")),r.parent().addClass("loading"),o.addClass("ui-state-disabled"),o.attr("disabled","disabled"),r.on("load",function(){r.parent().removeClass("loading"),r.data("src")&&(t._prepareIframe(r,n,i), +if("about:blank"==r.attr("src")){var a=this.siblings() +r.attr("src",r.data("src")),r.parent().addClass("loading"),a.addClass("ui-state-disabled"),a.attr("disabled","disabled"),r.on("load",function(){r.parent().removeClass("loading"),r.data("src")&&(t._prepareIframe(r,n,i), r.data("src",""))})}else t._prepareIframe(r,n,i) return e.preventDefault(),!1},_prepareIframe:function h(e,t,n){var i e.contents().ready(function(){var n=e.get(0).contentWindow.jQuery n(n.find(":input")).bind("change",function(e){t.removeClass("edited"),t.addClass("edited")})}),t.hasClass("loading")||(i=this.hasClass("ss-uploadfield-item-edit")?this.siblings():this.find("ss-uploadfield-item-edit").siblings(), t.parent(".ss-uploadfield-item").removeClass("ui-state-warning"),t.toggleEditForm(),n.find(".toggle-details-icon").hasClass("opened")?(i.addClass("ui-state-disabled"),i.attr("disabled","disabled")):(i.removeClass("ui-state-disabled"), -i.removeAttr("disabled")))}}),e("div.ss-upload .ss-uploadfield-item-editform").entwine({fitHeight:function m(){var t=this.find("iframe"),n=t.contents().find("body"),i=n.find("form").outerHeight(!0),r=i+(t.outerHeight(!0)-t.height()),o=r+(this.outerHeight(!0)-this.height()) +i.removeAttr("disabled")))}}),e("div.ss-upload .ss-uploadfield-item-editform").entwine({fitHeight:function m(){var t=this.find("iframe"),n=t.contents().find("body"),i=n.find("form").outerHeight(!0),r=i+(t.outerHeight(!0)-t.height()),a=r+(this.outerHeight(!0)-this.height()) -e.browser.msie||"8.0"==e.browser.version.slice(0,3)||n.find("body").css({height:i}),t.height(r),this.animate({height:o},500)},toggleEditForm:function g(){var t=this.prev(".ss-uploadfield-item-info"),n=t.find(".ss-uploadfield-item-status"),i=this.find("iframe").contents(),r=i.find("#Form_EditForm_error"),o="" +e.browser.msie||"8.0"==e.browser.version.slice(0,3)||n.find("body").css({height:i}),t.height(r),this.animate({height:a},500)},toggleEditForm:function g(){var t=this.prev(".ss-uploadfield-item-info"),n=t.find(".ss-uploadfield-item-status"),i=this.find("iframe").contents(),r=i.find("#Form_EditForm_error"),a="" -0===this.height()?(o=s["default"]._t("UploadField.Editing","Editing ..."),this.fitHeight(),this.addClass("opened"),t.find(".toggle-details-icon").addClass("opened"),n.removeClass("ui-state-success-text").removeClass("ui-state-warning-text"), +0===this.height()?(a=s["default"]._t("UploadField.Editing","Editing ..."),this.fitHeight(),this.addClass("opened"),t.find(".toggle-details-icon").addClass("opened"),n.removeClass("ui-state-success-text").removeClass("ui-state-warning-text"), i.find("#Form_EditForm_action_doEdit").click(function(){t.find("label .name").text(i.find("#Name input").val())}),e("div.ss-upload .ss-uploadfield-files .ss-uploadfield-item-actions .toggle-details-icon:not(.opened)").index()<0&&e("div.ss-upload .ss-uploadfield-item-edit-all").addClass("opened").find(".toggle-details-icon").addClass("opened")):(this.animate({ height:0},500),this.removeClass("opened"),t.find(".toggle-details-icon").removeClass("opened"),e("div.ss-upload .ss-uploadfield-item-edit-all").removeClass("opened").find(".toggle-details-icon").removeClass("opened"), -this.hasClass("edited")?r.hasClass("good")?(o=s["default"]._t("UploadField.CHANGESSAVED","Changes Saved"),this.removeClass("edited").parent(".ss-uploadfield-item").removeClass("ui-state-warning"),n.addClass("ui-state-success-text")):(o=s["default"]._t("UploadField.UNSAVEDCHANGES","Unsaved Changes"), -this.parent(".ss-uploadfield-item").addClass("ui-state-warning"),n.addClass("ui-state-warning-text")):(o=s["default"]._t("UploadField.NOCHANGES","No Changes"),n.addClass("ui-state-success-text")),r.removeClass("good").hide()), -n.attr("title",o).text(o)}}),e("div.ss-upload .ss-uploadfield-fromfiles").entwine({onclick:function v(e){return this.getUploadField().openSelectDialog(this.closest(".ss-uploadfield-item")),e.preventDefault(), +this.hasClass("edited")?r.hasClass("good")?(a=s["default"]._t("UploadField.CHANGESSAVED","Changes Saved"),this.removeClass("edited").parent(".ss-uploadfield-item").removeClass("ui-state-warning"),n.addClass("ui-state-success-text")):(a=s["default"]._t("UploadField.UNSAVEDCHANGES","Unsaved Changes"), +this.parent(".ss-uploadfield-item").addClass("ui-state-warning"),n.addClass("ui-state-warning-text")):(a=s["default"]._t("UploadField.NOCHANGES","No Changes"),n.addClass("ui-state-success-text")),r.removeClass("good").hide()), +n.attr("title",a).text(a)}}),e("div.ss-upload .ss-uploadfield-fromfiles").entwine({onclick:function v(e){return this.getUploadField().openSelectDialog(this.closest(".ss-uploadfield-item")),e.preventDefault(), !1}})})},function(e,t,n){var i !function(r){"use strict" -var o=function(e,t){var n=/[^\-\w]/.test(e)?new Function(o.arg,("var _s=''"+o.helper+";_s+='"+e.replace(o.regexp,o.func)+"';return _s;").split("_s+='';").join("")):o.cache[e]=o.cache[e]||o(o.load(e)) -return n.tmpl=n.tmpl||o,t?n(t):n} -o.cache={},o.load=function(e){return document.getElementById(e).innerHTML},o.regexp=/(\s+)|('|\\)(?![^%]*%\})|(?:\{%(=|#)(.+?)%\})|(\{%)|(%\})/g,o.func=function(e,t,n,i,r,o,a,s,l){return t?s&&s+e.length!==l.length?" ":"":n?"\\"+e:i?"="===i?"'+_e("+r+")+'":"'+("+r+"||'')+'":o?"';":a?"_s+='":void 0 +var a=function(e,t){var n=/[^\-\w]/.test(e)?new Function(a.arg,("var _s=''"+a.helper+";_s+='"+e.replace(a.regexp,a.func)+"';return _s;").split("_s+='';").join("")):a.cache[e]=a.cache[e]||a(a.load(e)) +return n.tmpl=n.tmpl||a,t?n(t):n} +a.cache={},a.load=function(e){return document.getElementById(e).innerHTML},a.regexp=/(\s+)|('|\\)(?![^%]*%\})|(?:\{%(=|#)(.+?)%\})|(\{%)|(%\})/g,a.func=function(e,t,n,i,r,a,o,s,l){return t?s&&s+e.length!==l.length?" ":"":n?"\\"+e:i?"="===i?"'+_e("+r+")+'":"'+("+r+"||'')+'":a?"';":o?"_s+='":void 0 -},o.encReg=/[<>&"\x00]/g,o.encMap={"<":"<",">":">","&":"&",'"':""","\0":""},o.encode=function(e){return String(e||"").replace(o.encReg,function(e){return o.encMap[e]})},o.arg="o",o.helper=",_t=arguments.callee.tmpl,_e=_t.encode,print=function(s,e){_s+=e&&(s||'')||_e(s);},include=function(s,d){_s+=_t(s,d);}", -i=function(){return o}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))}(this)},function(e,t){"use strict" +},a.encReg=/[<>&"\x00]/g,a.encMap={"<":"<",">":">","&":"&",'"':""","\0":""},a.encode=function(e){return String(e||"").replace(a.encReg,function(e){return a.encMap[e]})},a.arg="o",a.helper=",_t=arguments.callee.tmpl,_e=_t.encode,print=function(s,e){_s+=e&&(s||'')||_e(s);},include=function(s,d){_s+=_t(s,d);}", +i=function(){return a}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))}(this)},function(e,t){"use strict" window.tmpl.cache["ss-uploadfield-uploadtemplate"]=window.tmpl('{% for (var i=0, files=o.files, l=files.length, file=files[0]; i
{% if (!file.error) { %}
{% if (!o.options.autoUpload) { %}
{% } %}{% } %}
{% } %}") },function(e,t){"use strict" tmpl.cache["ss-uploadfield-downloadtemplate"]=tmpl('{% for (var i=0, files=o.files, l=files.length, file=files[0]; i{% if (file.thumbnail_url) { %}
{% } %}
{% if (!file.error && file.id) { %}{% } %}{% if (!file.error && file.filename) { %}{% } %}{% if (file.error) { %}
{% } else { %}
{% print(file.buttons, true); %}
{% } %}
{% if (!file.error) { %}
{% } %}{% } %}') },function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r);(0,o["default"])(document).ready(function(){(0,o["default"])("ul.SelectionGroup input.selector, ul.selection-group input.selector").live("click",function(){ -var e=(0,o["default"])(this).closest("li") +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r);(0,a["default"])(document).ready(function(){(0,a["default"])("ul.SelectionGroup input.selector, ul.selection-group input.selector").live("click",function(){ +var e=(0,a["default"])(this).closest("li") e.addClass("selected") var t=e.prevAll("li.selected") t.length&&t.removeClass("selected") var n=e.nextAll("li.selected") -n.length&&n.removeClass("selected"),(0,o["default"])(this).focus()})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -n(160),o["default"].fn.extend({ssDatepicker:function a(e){return(0,o["default"])(this).each(function(){if(!((0,o["default"])(this).prop("disabled")||(0,o["default"])(this).prop("readonly")||(0,o["default"])(this).data("datepicker"))){ -(0,o["default"])(this).siblings("button").addClass("ui-icon ui-icon-calendar") -var t=(0,o["default"])(this).closest(".field.date"),n=o["default"].extend(e||{},(0,o["default"])(this).data(),(0,o["default"])(this).data("jqueryuiconfig"),{}) -n.showcalendar&&(n.locale&&o["default"].datepicker.regional[n.locale]&&(n=o["default"].extend(n,o["default"].datepicker.regional[n.locale],{})),n.min&&(n.minDate=o["default"].datepicker.parseDate("yy-mm-dd",n.min)), -n.max&&(n.maxDate=o["default"].datepicker.parseDate("yy-mm-dd",n.max)),n.dateFormat=n.jquerydateformat,(0,o["default"])(this).datepicker(n))}})}}),(0,o["default"])(document).on("click",".field.date input.text,input.text.date",function(){ -(0,o["default"])(this).ssDatepicker(),(0,o["default"])(this).data("datepicker")&&(0,o["default"])(this).datepicker("show")})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -n(160),o["default"].entwine("ss",function(e){e(".ss-toggle").entwine({onadd:function t(){this._super(),this.accordion({heightStyle:"content",collapsible:!0,active:!this.hasClass("ss-toggle-start-closed")&&0 +n.length&&n.removeClass("selected"),(0,a["default"])(this).focus()})})},function(e,t,n){"use strict" +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) +n(160),a["default"].fn.extend({ssDatepicker:function o(e){return(0,a["default"])(this).each(function(){if(!((0,a["default"])(this).prop("disabled")||(0,a["default"])(this).prop("readonly")||(0,a["default"])(this).data("datepicker"))){ +(0,a["default"])(this).siblings("button").addClass("ui-icon ui-icon-calendar") +var t=(0,a["default"])(this).closest(".field.date"),n=a["default"].extend(e||{},(0,a["default"])(this).data(),(0,a["default"])(this).data("jqueryuiconfig"),{}) +n.showcalendar&&(n.locale&&a["default"].datepicker.regional[n.locale]&&(n=a["default"].extend(n,a["default"].datepicker.regional[n.locale],{})),n.min&&(n.minDate=a["default"].datepicker.parseDate("yy-mm-dd",n.min)), +n.max&&(n.maxDate=a["default"].datepicker.parseDate("yy-mm-dd",n.max)),n.dateFormat=n.jquerydateformat,(0,a["default"])(this).datepicker(n))}})}}),(0,a["default"])(document).on("click",".field.date input.text,input.text.date",function(){ +(0,a["default"])(this).ssDatepicker(),(0,a["default"])(this).data("datepicker")&&(0,a["default"])(this).datepicker("show")})},function(e,t,n){"use strict" +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) +n(160),a["default"].entwine("ss",function(e){e(".ss-toggle").entwine({onadd:function t(){this._super(),this.accordion({heightStyle:"content",collapsible:!0,active:!this.hasClass("ss-toggle-start-closed")&&0 })},onremove:function n(){this.data("accordion")&&this.accordion("destroy"),this._super()},getTabSet:function i(){return this.closest(".ss-tabset")},fromTabSet:{ontabsshow:function r(){this.accordion("resize") }}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -o["default"].entwine("ss",function(e){e(".memberdatetimeoptionset").entwine({onmatch:function t(){this.find(".toggle-content").hide(),this._super()}}),e(".memberdatetimeoptionset .toggle").entwine({onclick:function n(t){ +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) +a["default"].entwine("ss",function(e){e(".memberdatetimeoptionset").entwine({onmatch:function t(){this.find(".toggle-content").hide(),this._super()}}),e(".memberdatetimeoptionset .toggle").entwine({onclick:function n(t){ return e(this).closest(".form__field-description").parent().find(".toggle-content").toggle(),!1}})})},function(e,t,n){(function(e){"use strict" -function t(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),r=t(i),o=n(112),a=t(o) +function t(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),r=t(i),a=n(112),o=t(a) n(190),n(191),r["default"].entwine("ss",function(t){var n,i -t(window).bind("resize.treedropdownfield",function(){var e=function a(){t(".TreeDropdownField").closePanel()} -if(t.browser.msie&&parseInt(t.browser.version,10)<9){var r=t(window).width(),o=t(window).height() -r==n&&o==i||(n=r,i=o,e())}else e()}) -var r={openlink:a["default"]._t("TreeDropdownField.OpenLink"),fieldTitle:"("+a["default"]._t("TreeDropdownField.FieldTitle")+")",searchFieldTitle:"("+a["default"]._t("TreeDropdownField.SearchFieldTitle")+")" -},o=function s(e){t(e.target).parents(".TreeDropdownField").length||t(".TreeDropdownField").closePanel()} +t(window).bind("resize.treedropdownfield",function(){var e=function o(){t(".TreeDropdownField").closePanel()} +if(t.browser.msie&&parseInt(t.browser.version,10)<9){var r=t(window).width(),a=t(window).height() +r==n&&a==i||(n=r,i=a,e())}else e()}) +var r={openlink:o["default"]._t("TreeDropdownField.OpenLink"),fieldTitle:"("+o["default"]._t("TreeDropdownField.FieldTitle")+")",searchFieldTitle:"("+o["default"]._t("TreeDropdownField.SearchFieldTitle")+")" +},a=function s(e){t(e.target).parents(".TreeDropdownField").length||t(".TreeDropdownField").closePanel()} t(".TreeDropdownField").entwine({CurrentXhr:null,onadd:function l(){this.append('
') var e=r.openLink e&&this.find("treedropdownfield-toggle-panel-link a").attr("title",e),this.data("title")&&this.setTitle(this.data("title")),this.getPanel().hide(),this._super()},getPanel:function u(){return this.find(".treedropdownfield-panel") -},openPanel:function c(){t(".TreeDropdownField").closePanel(),t("body").bind("click",o) +},openPanel:function c(){t(".TreeDropdownField").closePanel(),t("body").bind("click",a) var e=this.getPanel(),n=this.find(".tree-holder") e.css("width",this.width()),e.show() var i=this.find(".treedropdownfield-toggle-panel-link") i.addClass("treedropdownfield-open-tree"),this.addClass("treedropdownfield-open-tree"),i.find("a").removeClass("ui-icon-triangle-1-s").addClass("ui-icon-triangle-1-n"),n.is(":empty")&&!e.hasClass("loading")?this.loadTree(null,this._riseUp):this._riseUp(), -this.trigger("panelshow")},_riseUp:function d(){var e=this,n=this.getPanel(),i=this.find(".treedropdownfield-toggle-panel-link"),r=i.innerHeight(),o,a,s -i.length>0&&(s=t(window).height()+t(document).scrollTop()-i.innerHeight(),a=i.offset().top,o=n.innerHeight(),a+o>s&&a-o>0?(e.addClass("treedropdownfield-with-rise"),r=-n.outerHeight()):e.removeClass("treedropdownfield-with-rise")), -n.css({top:r+"px"})},closePanel:function f(){e("body").unbind("click",o) +this.trigger("panelshow")},_riseUp:function d(){var e=this,n=this.getPanel(),i=this.find(".treedropdownfield-toggle-panel-link"),r=i.innerHeight(),a,o,s +i.length>0&&(s=t(window).height()+t(document).scrollTop()-i.innerHeight(),o=i.offset().top,a=n.innerHeight(),o+a>s&&o-a>0?(e.addClass("treedropdownfield-with-rise"),r=-n.outerHeight()):e.removeClass("treedropdownfield-with-rise")), +n.css({top:r+"px"})},closePanel:function f(){e("body").unbind("click",a) var t=this.find(".treedropdownfield-toggle-panel-link") t.removeClass("treedropdownfield-open-tree"),this.removeClass("treedropdownfield-open-tree treedropdownfield-with-rise"),t.find("a").removeClass("ui-icon-triangle-1-n").addClass("ui-icon-triangle-1-s"), this.getPanel().hide(),this.trigger("panelhide")},togglePanel:function p(){this[this.getPanel().is(":visible")?"closePanel":"openPanel"]()},setTitle:function h(e){e=e||this.data("title")||r.fieldTitle, @@ -1794,40 +1789,40 @@ if(n){var i=t.find('*[data-id="'+n+'"]'),r=i.children("a").find("span.jstree_pag r||(r=i.length>0?t.jstree("get_text",i[0]):null),r&&(e.setTitle(r),e.data("title",r)),i&&t.jstree("select_node",i)}else e.setTitle(e.data("empty-title")),e.removeData("title")} t.is(":empty")&&n?this.loadTree({forceValue:n},i):i()},setValue:function v(e){this.data("metadata",t.extend(this.data("metadata"),{id:e})),this.find(":input:hidden").val(e).trigger("valueupdated").trigger("change") -},getValue:function y(){return this.find(":input:hidden").val()},loadTree:function b(e,n){var i=this,r=this.getPanel(),o=t(r).find(".tree-holder"),e=e?t.extend({},this.getRequestParams(),e):this.getRequestParams(),a +},getValue:function y(){return this.find(":input:hidden").val()},loadTree:function b(e,n){var i=this,r=this.getPanel(),a=t(r).find(".tree-holder"),e=e?t.extend({},this.getRequestParams(),e):this.getRequestParams(),o -this.getCurrentXhr()&&this.getCurrentXhr().abort(),r.addClass("loading"),a=t.ajax({url:this.data("urlTree"),data:e,complete:function s(e,t){r.removeClass("loading")},success:function l(e,r,a){o.html(e) +this.getCurrentXhr()&&this.getCurrentXhr().abort(),r.addClass("loading"),o=t.ajax({url:this.data("urlTree"),data:e,complete:function s(e,t){r.removeClass("loading")},success:function l(e,r,o){a.html(e) var s=!0 -o.jstree("destroy").bind("loaded.jstree",function(e,t){var r=i.getValue(),a=o.find('*[data-id="'+r+'"]'),l=t.inst.get_selected() -r&&a!=l&&t.inst.select_node(a),s=!1,n&&n.apply(i)}).jstree(i.getTreeConfig()).bind("select_node.jstree",function(e,n){var r=n.rslt.obj,o=t(r).data("id") -s||i.getValue()!=o?(i.data("metadata",t.extend({id:o},t(r).getMetaData())),i.setTitle(n.inst.get_text(r)),i.setValue(o)):(i.data("metadata",null),i.setTitle(null),i.setValue(null),n.inst.deselect_node(r)), -s||i.closePanel(),s=!1}),i.setCurrentXhr(null)}}),this.setCurrentXhr(a)},getTreeConfig:function _(){var e=this +a.jstree("destroy").bind("loaded.jstree",function(e,t){var r=i.getValue(),o=a.find('*[data-id="'+r+'"]'),l=t.inst.get_selected() +r&&o!=l&&t.inst.select_node(o),s=!1,n&&n.apply(i)}).jstree(i.getTreeConfig()).bind("select_node.jstree",function(e,n){var r=n.rslt.obj,a=t(r).data("id") +s||i.getValue()!=a?(i.data("metadata",t.extend({id:a},t(r).getMetaData())),i.setTitle(n.inst.get_text(r)),i.setValue(a)):(i.data("metadata",null),i.setTitle(null),i.setValue(null),n.inst.deselect_node(r)), +s||i.closePanel(),s=!1}),i.setCurrentXhr(null)}}),this.setCurrentXhr(o)},getTreeConfig:function _(){var e=this return{core:{html_titles:!0,animation:0},html_data:{data:this.getPanel().find(".tree-holder").html(),ajax:{url:function n(i){var n=t.path.parseUrl(e.data("urlTree")).hrefNoSearch return n+"/"+(t(i).data("id")?t(i).data("id"):0)},data:function i(n){var i=t.query.load(e.data("urlTree")).keys,r=e.getRequestParams() return r=t.extend({},i,r,{ajax:1})}}},ui:{select_limit:1,initially_select:[this.getPanel().find(".current").attr("id")]},themes:{theme:"apple"},types:{types:{"default":{check_node:function r(e){return!e.hasClass("disabled") -},uncheck_node:function o(e){return!e.hasClass("disabled")},select_node:function a(e){return!e.hasClass("disabled")},deselect_node:function s(e){return!e.hasClass("disabled")}}}},plugins:["html_data","ui","themes","types"] +},uncheck_node:function a(e){return!e.hasClass("disabled")},select_node:function o(e){return!e.hasClass("disabled")},deselect_node:function s(e){return!e.hasClass("disabled")}}}},plugins:["html_data","ui","themes","types"] }},getRequestParams:function w(){return{}}}),t(".TreeDropdownField .tree-holder li").entwine({getMetaData:function C(){var e=this.attr("class").match(/class-([^\s]*)/i),t=e?e[1]:"" return{ClassName:t}}}),t(".TreeDropdownField *").entwine({getField:function T(){return this.parents(".TreeDropdownField:first")}}),t(".TreeDropdownField").entwine({onclick:function E(e){return this.togglePanel(), !1}}),t(".TreeDropdownField .treedropdownfield-panel").entwine({onclick:function P(e){return!1}}),t(".TreeDropdownField.searchable").entwine({onadd:function O(){this._super() -var e=a["default"]._t("TreeDropdownField.ENTERTOSEARCH") -this.find(".treedropdownfield-panel").prepend(t(''))},search:function S(e,t){this.openPanel(), -this.loadTree({search:e},t)},cancelSearch:function k(){this.closePanel(),this.loadTree()}}),t(".TreeDropdownField.searchable input.search").entwine({onkeydown:function j(e){var t=this.getField() +var e=o["default"]._t("TreeDropdownField.ENTERTOSEARCH") +this.find(".treedropdownfield-panel").prepend(t(''))},search:function k(e,t){this.openPanel(), +this.loadTree({search:e},t)},cancelSearch:function S(){this.closePanel(),this.loadTree()}}),t(".TreeDropdownField.searchable input.search").entwine({onkeydown:function j(e){var t=this.getField() return 13==e.keyCode?(t.search(this.val()),!1):void(27==e.keyCode&&t.cancelSearch())}}),t(".TreeDropdownField.multiple").entwine({getTreeConfig:function x(){var e=this._super() -return e.checkbox={override_ui:!0,two_state:!0},e.plugins.push("checkbox"),e.ui.select_limit=-1,e},loadTree:function R(e,n){var i=this,r=this.getPanel(),o=t(r).find(".tree-holder"),e=e?t.extend({},this.getRequestParams(),e):this.getRequestParams(),a +return e.checkbox={override_ui:!0,two_state:!0},e.plugins.push("checkbox"),e.ui.select_limit=-1,e},loadTree:function R(e,n){var i=this,r=this.getPanel(),a=t(r).find(".tree-holder"),e=e?t.extend({},this.getRequestParams(),e):this.getRequestParams(),o -this.getCurrentXhr()&&this.getCurrentXhr().abort(),r.addClass("loading"),a=t.ajax({url:this.data("urlTree"),data:e,complete:function s(e,t){r.removeClass("loading")},success:function l(e,r,a){o.html(e) +this.getCurrentXhr()&&this.getCurrentXhr().abort(),r.addClass("loading"),o=t.ajax({url:this.data("urlTree"),data:e,complete:function s(e,t){r.removeClass("loading")},success:function l(e,r,o){a.html(e) var s=!0 -i.setCurrentXhr(null),o.jstree("destroy").bind("loaded.jstree",function(e,r){t.each(i.getValue(),function(e,t){r.inst.check_node(o.find("*[data-id="+t+"]"))}),s=!1,n&&n.apply(i)}).jstree(i.getTreeConfig()).bind("uncheck_node.jstree check_node.jstree",function(e,n){ +i.setCurrentXhr(null),a.jstree("destroy").bind("loaded.jstree",function(e,r){t.each(i.getValue(),function(e,t){r.inst.check_node(a.find("*[data-id="+t+"]"))}),s=!1,n&&n.apply(i)}).jstree(i.getTreeConfig()).bind("uncheck_node.jstree check_node.jstree",function(e,n){ var r=n.inst.get_checked(null,!0) i.setValue(t.map(r,function(e,n){return t(e).data("id")})),i.setTitle(t.map(r,function(e,t){return n.inst.get_text(e)})),i.data("metadata",t.map(r,function(e,n){return{id:t(e).data("id"),metadata:t(e).getMetaData() -}}))})}}),this.setCurrentXhr(a)},getValue:function I(){var e=this._super() +}}))})}}),this.setCurrentXhr(o)},getValue:function I(){var e=this._super() return e.split(/ *, */)},setValue:function A(e){this._super(t.isArray(e)?e.join(","):e)},setTitle:function D(e){this._super(t.isArray(e)?e.join(", "):e)},updateTitle:function F(){}}),t(".TreeDropdownField input[type=hidden]").entwine({ onadd:function M(){this._super(),this.bind("change.TreeDropdownField",function(){t(this).getField().updateTitle()})},onremove:function N(){this._super(),this.unbind(".TreeDropdownField")}})})}).call(t,n(1)) @@ -1839,8 +1834,8 @@ for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}, ss.editorWrappers={},ss.editorWrappers.tinyMCE=function(){var editorID return{init:function e(t){editorID=t,this.create()},destroy:function t(){tinymce.EditorManager.execCommand("mceRemoveEditor",!1,editorID)},getInstance:function n(){return tinymce.EditorManager.get(editorID) -},onopen:function i(){},onclose:function r(){},getConfig:function o(){var e="#"+editorID,t=(0,_jQuery2["default"])(e).data("config"),n=this -return t.selector=e,t.setup=function(e){e.on("change",function(){n.save()})},t},save:function a(){var e=this.getInstance() +},onopen:function i(){},onclose:function r(){},getConfig:function a(){var e="#"+editorID,t=(0,_jQuery2["default"])(e).data("config"),n=this +return t.selector=e,t.setup=function(e){e.on("change",function(){n.save()})},t},save:function o(){var e=this.getInstance() e.save(),(0,_jQuery2["default"])(e.getElement()).trigger("change")},create:function s(){var e=this.getConfig() "undefined"!=typeof e.baseURL&&(tinymce.EditorManager.baseURL=e.baseURL),tinymce.init(e)},repaint:function l(){},isDirty:function u(){return this.getInstance().isDirty()},getContent:function c(){return this.getInstance().getContent() @@ -1857,14 +1852,14 @@ return this.getInstance().selection.getBookmark()},moveToBookmark:function w(e){ onadd:function t(){var e=this.data("editor")||"default",t=ss.editorWrappers[e]() this.setEditor(t),t.init(this.attr("id")),this._super()},onremove:function n(){this.getEditor().destroy(),this._super()},"from .cms-edit-form":{onbeforesubmitform:function i(){this.getEditor().save(),this._super() -}},openLinkDialog:function r(){this.openDialog("link")},openMediaDialog:function o(){this.openDialog("media")},openDialog:function a(t){if("media"===t&&window.InsertMediaModal){var n=e("#insert-media-react__dialog-wrapper") +}},openLinkDialog:function r(){this.openDialog("link")},openMediaDialog:function a(){this.openDialog("media")},openDialog:function o(t){if("media"===t&&window.InsertMediaModal){var n=e("#insert-media-react__dialog-wrapper") return n.length||(n=e('
'),e("body").append(n)),n.setElement(this),void n.open()}var i=function s(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase() -},r=this,o=e("#cms-editor-dialogs").data("url"+i(t)+"form"),a=e(".htmleditorfield-"+t+"dialog") -a.length?(a.getForm().setElement(this),a.html(""),a.addClass("loading"),a.open()):(a=e('
'),e("body").append(a)),e.ajax({url:o,complete:function l(){ -a.removeClass("loading")},success:function u(e){a.html(e),a.getForm().setElement(r),a.trigger("ssdialogopen")}})}}),e(".htmleditorfield-dialog").entwine({onadd:function s(){this.is(".ui-dialog-content")||this.ssdialog({ +},r=this,a=e("#cms-editor-dialogs").data("url"+i(t)+"form"),o=e(".htmleditorfield-"+t+"dialog") +o.length?(o.getForm().setElement(this),o.html(""),o.addClass("loading"),o.open()):(o=e('
'),e("body").append(o)),e.ajax({url:a,complete:function l(){ +o.removeClass("loading")},success:function u(e){o.html(e),o.getForm().setElement(r),o.trigger("ssdialogopen")}})}}),e(".htmleditorfield-dialog").entwine({onadd:function s(){this.is(".ui-dialog-content")||this.ssdialog({ autoOpen:!0,buttons:{insert:{text:_i18n2["default"]._t("HtmlEditorField.INSERT","Insert"),"data-icon":"accept","class":"ss-ui-action-constructive media-insert",click:function t(){e(this).find("form").submit() }}}}),this._super()},getForm:function l(){return this.find("form")},open:function u(){this.ssdialog("open")},close:function c(){this.ssdialog("close")},toggle:function d(e){this.is(":visible")?this.close():this.open() @@ -1890,7 +1885,7 @@ this.find('.field[id$="'+e+'_Holder"]').attr("style","display: -webkit-flex; dis "email"==e?this.find('.field[id$="Subject_Holder"]').attr("style","display: -webkit-flex; display: flex"):this.find('.field[id$="TargetBlank_Holder"]').attr("style","display: -webkit-flex; display: flex"), "anchor"==e&&this.find('.field[id$="AnchorSelector_Holder"]').attr("style","display: -webkit-flex; display: flex"),this.find('.field[id$="Description_Holder"]').attr("style","display: -webkit-flex; display: flex") -},getLinkAttributes:function S(){var e,t=null,n=this.find(":input[name=Subject]").val(),i=this.find(":input[name=Anchor]").val() +},getLinkAttributes:function k(){var e,t=null,n=this.find(":input[name=Subject]").val(),i=this.find(":input[name=Anchor]").val() switch(this.find(":input[name=TargetBlank]").is(":checked")&&(t="_blank"),this.find(":input[name=LinkType]:checked").val()){case"internal":e="[sitetree_link,id="+this.find(":input[name=internal]").val()+"]", i&&(e+="#"+i) break @@ -1901,7 +1896,7 @@ e=r?"[file_link,id="+r+"]":"" break case"email":e="mailto:"+this.find(":input[name=email]").val(),n&&(e+="?subject="+encodeURIComponent(n)),t=null break -default:e=this.find(":input[name=external]").val(),e.indexOf("://")==-1&&(e="http://"+e)}return{href:e,target:t,title:this.find(":input[name=Description]").val()}},insertLink:function k(){this.modifySelection(function(e){ +default:e=this.find(":input[name=external]").val(),e.indexOf("://")==-1&&(e="http://"+e)}return{href:e,target:t,title:this.find(":input[name=Description]").val()}},insertLink:function S(){this.modifySelection(function(e){ e.insertLink(this.getLinkAttributes())})},removeLink:function j(){this.modifySelection(function(e){e.removeLink()}),this.resetFileField(),this.close()},resetFileField:function x(){var e=this.find('.ss-uploadfield[id$="file_Holder"]'),t=e.data("fileupload"),n=e.find(".ss-uploadfield-item[data-fileid]") @@ -1912,9 +1907,9 @@ this.find(":input[name=Anchor]").parent().append(n),this.updateAnchorSelector(), switch(t){case"anchor":var i=[],r=this.getEditor() -if(r){var o=r.getContent().match(/\s+(name|id)\s*=\s*(["'])([^\2\s>]*?)\2|\s+(name|id)\s*=\s*([^"']+)[\s +>]/gim) -if(o&&o.length)for(var a=0;a]*?)\2|\s+(name|id)\s*=\s*([^"']+)[\s +>]/gim) +if(a&&a.length)for(var o=0;o'+t[i]+"<]*>/g,t,n=this.getCurrentLink() if(n)for(t in n){var i=this.find(":input[name="+t+"]"),r=n[t] "string"==typeof r&&(r=r.replace(e,"")),i.is(":checkbox")?i.prop("checked",r).change():i.is(":radio")?i.val([r]).change():"file"==t?(i=this.find(':input[name="'+t+'[Uploads][]"]'),i=i.parents(".ss-uploadfield"), -function o(e,t){e.getConfig()?e.attachFiles([t]):setTimeout(function(){o(e,t)},50)}(i,r)):i.val(r).change()}},getCurrentLink:function F(){var e=this.getSelection(),t="",n="",i="",r="insert",o="",a=null +function a(e,t){e.getConfig()?e.attachFiles([t]):setTimeout(function(){a(e,t)},50)}(i,r)):i.val(r).change()}},getCurrentLink:function F(){var e=this.getSelection(),t="",n="",i="",r="insert",a="",o=null -return e.length&&(a=e.is("a")?e:e=e.parents("a:first")),a&&a.length&&this.modifySelection(function(e){e.selectNode(a[0])}),a.attr("href")||(a=null),a&&(t=a.attr("href"),n=a.attr("target"),i=a.attr("title"), -o=a.attr("class"),t=this.getEditor().cleanLink(t,a),r="update"),t.match(/^mailto:(.*)$/)?{LinkType:"email",email:RegExp.$1,Description:i}:t.match(/^(assets\/.*)$/)||t.match(/^\[file_link\s*(?:\s*|%20|,)?id=([0-9]+)\]?(#.*)?$/)?{ +return e.length&&(o=e.is("a")?e:e=e.parents("a:first")),o&&o.length&&this.modifySelection(function(e){e.selectNode(o[0])}),o.attr("href")||(o=null),o&&(t=o.attr("href"),n=o.attr("target"),i=o.attr("title"), +a=o.attr("class"),t=this.getEditor().cleanLink(t,o),r="update"),t.match(/^mailto:(.*)$/)?{LinkType:"email",email:RegExp.$1,Description:i}:t.match(/^(assets\/.*)$/)||t.match(/^\[file_link\s*(?:\s*|%20|,)?id=([0-9]+)\]?(#.*)?$/)?{ LinkType:"file",file:RegExp.$1,Description:i,TargetBlank:!!n}:t.match(/^#(.*)$/)?{LinkType:"anchor",Anchor:RegExp.$1,Description:i,TargetBlank:!!n}:t.match(/^\[sitetree_link(?:\s*|%20|,)?id=([0-9]+)\]?(#.*)?$/i)?{ LinkType:"internal",internal:RegExp.$1,Anchor:RegExp.$2?RegExp.$2.substr(1):"",Description:i,TargetBlank:!!n}:t?{LinkType:"external",external:t,Description:i,TargetBlank:!!n}:null}}),e("form.htmleditorfield-linkform input[name=LinkType]").entwine({ onclick:function M(e){this.parents("form:first").redraw(),this._super()},onchange:function N(){this.parents("form:first").redraw() @@ -1946,11 +1941,11 @@ this.find(".overview .action-delete")[e?"hide":"show"]()},onsubmit:function H(){ !1},updateFromEditor:function $(){var e=this,t=this.getSelection() if(t.is("img")){var n=t.data("id")||t.data("url")||t.attr("src") this.showFileView(n).done(function(n){n.updateFromNode(t),e.toggleCloseButton(),e.redraw()})}this.redraw()},redraw:function V(t){this._super() -var n=this.getSelection(),i=Boolean(this.find(".ss-htmleditorfield-file").length),r=n.is("img"),o=this.hasClass("insertingURL"),a=this.find(".header-edit") -a[i?"show":"hide"](),this.closest("ui-dialog").find("ui-dialog-buttonpane .media-insert").button(i?"enable":"disable").toggleClass("ui-state-disabled",!i),this.find(".htmleditorfield-default-panel")[r||o?"hide":"show"](), -this.find(".htmleditorfield-web-panel")[r||!o?"hide":"show"]() +var n=this.getSelection(),i=Boolean(this.find(".ss-htmleditorfield-file").length),r=n.is("img"),a=this.hasClass("insertingURL"),o=this.find(".header-edit") +o[i?"show":"hide"](),this.closest("ui-dialog").find("ui-dialog-buttonpane .media-insert").button(i?"enable":"disable").toggleClass("ui-state-disabled",!i),this.find(".htmleditorfield-default-panel")[r||a?"hide":"show"](), +this.find(".htmleditorfield-web-panel")[r||!a?"hide":"show"]() var s=this.find(".htmleditorfield-mediaform-heading.insert") -r?s.hide():o?(s.show().text(_i18n2["default"]._t("HtmlEditorField.INSERTURL")).prepend(''), +r?s.hide():a?(s.show().text(_i18n2["default"]._t("HtmlEditorField.INSERTURL")).prepend(''), this.find(".htmleditorfield-web-panel input.remoteurl").focus()):s.show().text(_i18n2["default"]._t("HtmlEditorField.INSERTFROM")).find(".back-button").remove(),this.find(".htmleditorfield-mediaform-heading.update")[r?"show":"hide"](), this.find(".ss-uploadfield-item-actions")[r?"hide":"show"](),this.find(".ss-uploadfield-item-name")[r?"hide":"show"](),this.find(".ss-uploadfield-item-preview")[r?"hide":"show"](),this.find(".btn-toolbar .media-update")[r?"show":"hide"](), this.find(".ss-uploadfield-item-editform").toggleEditForm(r),this.find(".htmleditorfield-from-cms .field.treedropdown").css("left",e(".htmleditorfield-mediaform-heading:visible").outerWidth()),this.closest(".ui-dialog").addClass("ss-uploadfield-dropzone"), @@ -1961,9 +1956,9 @@ this._super()},getFileView:function G(e){return this.find(".ss-htmleditorfield-f this.find(".content-edit").prepend(r) -var o=e.Deferred() -return e.ajax({url:e.path.addSearchParams(this.attr("action").replace(/MediaForm/,"viewfile"),i),success:function a(t,i,s){var l=e(t).filter(".ss-htmleditorfield-file") -r.replaceWith(l),n.redraw(),o.resolve(l)},error:function s(){r.remove(),o.reject()}}),o.promise()}}),e("form.htmleditorfield-mediaform div.ss-upload .upload-url").entwine({onclick:function W(){var e=this.closest("form") +var a=e.Deferred() +return e.ajax({url:e.path.addSearchParams(this.attr("action").replace(/MediaForm/,"viewfile"),i),success:function o(t,i,s){var l=e(t).filter(".ss-htmleditorfield-file") +r.replaceWith(l),n.redraw(),a.resolve(l)},error:function s(){r.remove(),a.reject()}}),a.promise()}}),e("form.htmleditorfield-mediaform div.ss-upload .upload-url").entwine({onclick:function W(){var e=this.closest("form") e.addClass("insertingURL"),e.redraw()}}),e("form.htmleditorfield-mediaform .htmleditorfield-mediaform-heading .back-button").entwine({onclick:function X(){var e=this.closest("form") @@ -1982,25 +1977,25 @@ var t=this.val(),n=t return t=e.trim(t),t=t.replace(/^https?:\/\//i,""),n!==t&&this.val(t),this.getAddButton().button(t?"enable":"disable"),!!t}}),e("form.htmleditorfield-form.htmleditorfield-mediaform .add-url").entwine({ getURLField:function ie(){return this.closest(".CompositeField").find("input.remoteurl")},onclick:function re(e){var t=this.getURLField(),n=this.closest(".CompositeField"),i=this.closest("form") return t.validate()&&(n.addClass("loading"),i.showFileView("http://"+t.val()).done(function(){n.removeClass("loading"),i.parent().trigger("scroll")}),i.redraw()),!1}}),e("form.htmleditorfield-mediaform .ss-htmleditorfield-file").entwine({ -getAttributes:function oe(){},getExtraData:function ae(){},getHTML:function se(){return e("
").append(e("").attr({href:this.data("url")}).text(this.find(".name").text())).html()},insertHTML:function le(e){ -e.replaceContent(this.getHTML())},updateFromNode:function ue(e){},updateDimensions:function ce(e,t,n){var i=this.find(":input[name=Width]"),r=this.find(":input[name=Height]"),o=i.val(),a=r.val(),s -o&&a&&(e?(s=r.getOrigVal()/i.getOrigVal(),"Width"==e?(t&&o>t&&(o=t),a=Math.floor(o*s)):"Height"==e&&(n&&a>n&&(a=n),o=Math.ceil(a/s))):(t&&o>t&&(o=t),n&&a>n&&(a=n)),i.val(o),r.val(a))}}),e("form.htmleditorfield-mediaform .ss-htmleditorfield-file.image").entwine({ +getAttributes:function ae(){},getExtraData:function oe(){},getHTML:function se(){return e("
").append(e("").attr({href:this.data("url")}).text(this.find(".name").text())).html()},insertHTML:function le(e){ +e.replaceContent(this.getHTML())},updateFromNode:function ue(e){},updateDimensions:function ce(e,t,n){var i=this.find(":input[name=Width]"),r=this.find(":input[name=Height]"),a=i.val(),o=r.val(),s +a&&o&&(e?(s=r.getOrigVal()/i.getOrigVal(),"Width"==e?(t&&a>t&&(a=t),o=Math.floor(a*s)):"Height"==e&&(n&&o>n&&(o=n),a=Math.ceil(o/s))):(t&&a>t&&(a=t),n&&o>n&&(o=n)),i.val(a),r.val(o))}}),e("form.htmleditorfield-mediaform .ss-htmleditorfield-file.image").entwine({ getAttributes:function de(){var e=this.find(":input[name=Width]").val(),t=this.find(":input[name=Height]").val() return{src:this.find(":input[name=URL]").val(),alt:this.find(":input[name=AltText]").val(),width:e?parseInt(e,10):null,height:t?parseInt(t,10):null,title:this.find(":input[name=Title]").val(),"class":this.find(":input[name=CSSClass]").val(), "data-id":this.find(":input[name=FileID]").val()}},getExtraData:function fe(){return{CaptionText:this.find(":input[name=CaptionText]").val()}},getHTML:function pe(){},insertHTML:function he(t){var n=this.closest("form"),i=n.getSelection() t||(t=n.getEditor()) -var r=this.getAttributes(),o=this.getExtraData(),a=i&&i.is("img")?i:null -a&&a.parent().is(".captionImage")&&(a=a.parent()) +var r=this.getAttributes(),a=this.getExtraData(),o=i&&i.is("img")?i:null +o&&o.parent().is(".captionImage")&&(o=o.parent()) var s=i&&i.is("img")?i:e("") s.attr(r) var l=s.parent(".captionImage"),u=l.find(".caption") -o.CaptionText?(l.length||(l=e("
")),l.attr("class","captionImage "+r["class"]).css("width",r.width),u.length||(u=e('

').appendTo(l)),u.attr("class","caption "+r["class"]).text(o.CaptionText)):l=u=null +a.CaptionText?(l.length||(l=e("
")),l.attr("class","captionImage "+r["class"]).css("width",r.width),u.length||(u=e('

').appendTo(l)),u.attr("class","caption "+r["class"]).text(a.CaptionText)):l=u=null var c=l?l:s -a&&a.not(c).length&&a.replaceWith(c),l&&l.prepend(s),a||(t.repaint(),t.insertContent(e("
").append(c).html(),{skip_undo:1})),t.addUndo(),t.repaint()},updateFromNode:function me(e){this.find(":input[name=AltText]").val(e.attr("alt")), +o&&o.not(c).length&&o.replaceWith(c),l&&l.prepend(s),o||(t.repaint(),t.insertContent(e("
").append(c).html(),{skip_undo:1})),t.addUndo(),t.repaint()},updateFromNode:function me(e){this.find(":input[name=AltText]").val(e.attr("alt")), this.find(":input[name=Title]").val(e.attr("title")),this.find(":input[name=CSSClass]").val(e.attr("class")),this.find(":input[name=Width]").val(e.width()),this.find(":input[name=Height]").val(e.height()), this.find(":input[name=CaptionText]").val(e.siblings(".caption:first").text()),this.find(":input[name=FileID]").val(e.data("id"))}}),e("form.htmleditorfield-mediaform .ss-htmleditorfield-file.flash").entwine({ getAttributes:function ge(){var e=this.find(":input[name=Width]").val(),t=this.find(":input[name=Height]").val() @@ -2023,7 +2018,7 @@ this.find(":input[name=Height]").val(e.height()),this.find(":input[name=Title]") this._super()},onfocusout:function Pe(e){this.closest(".ss-htmleditorfield-file").updateDimensions(this.attr("name"))}}),e("form.htmleditorfield-mediaform .ss-uploadfield-item .ss-uploadfield-item-cancel").entwine({ onclick:function Oe(e){var t=this.closest("form"),n=this.closest("ss-uploadfield-item") t.find(".ss-gridfield-item[data-id="+n.data("id")+"]").removeClass("ui-selected"),this.closest(".ss-uploadfield-item").remove(),t.redraw(),e.preventDefault()}}),e("div.ss-assetuploadfield .ss-uploadfield-item-edit, div.ss-assetuploadfield .ss-uploadfield-item-name").entwine({ -getEditForm:function Se(){return this.closest(".ss-uploadfield-item").find(".ss-uploadfield-item-editform")},fromEditForm:{onchange:function ke(t){var n=e(t.target) +getEditForm:function ke(){return this.closest(".ss-uploadfield-item").find(".ss-uploadfield-item-editform")},fromEditForm:{onchange:function Se(t){var n=e(t.target) n.removeClass("edited"),n.addClass("edited")}},onclick:function je(e){var t=this.getEditForm() return this.closest(".ss-uploadfield-item").hasClass("ss-htmleditorfield-file")?(t.parent("ss-uploadfield-item").removeClass("ui-state-warning"),t.toggleEditForm(),e.preventDefault(),!1):void this._super(e) @@ -2035,12 +2030,12 @@ var e=this this.bind("change",function(){var t=e.closest("form").find(".grid-field") t.setState("ParentID",e.getValue()),t.reload()})}}),e(".insert-media-react__dialog-wrapper .nav-link").entwine({onclick:function Ie(e){return e.preventDefault()}}),e("#insert-media-react__dialog-wrapper").entwine({ Element:null,Data:{},onunmatch:function Ae(){this._clearModal()},_clearModal:function De(){_reactDom2["default"].unmountComponentAtNode(this[0])},open:function Fe(){this._renderModal(!0)},close:function Me(){ -this._renderModal(!1)},_renderModal:function Ne(e){var t=this,n=function s(){return t.close()},i=function l(){return t._handleInsert.apply(t,arguments)},r=window.ss.store,o=this.getOriginalAttributes(),a=window.InsertMediaModal["default"] +this._renderModal(!1)},_renderModal:function Ne(e){var t=this,n=function s(){return t.close()},i=function l(){return t._handleInsert.apply(t,arguments)},r=window.ss.store,a=this.getOriginalAttributes(),o=window.InsertMediaModal["default"] -if(!a)throw new Error("Invalid Insert media modal component found") -delete o.url,_reactDom2["default"].render(_react2["default"].createElement(_reactRedux.Provider,{store:r},_react2["default"].createElement(a,{title:!1,show:e,onInsert:i,onHide:n,bodyClassName:"modal__dialog", -className:"insert-media-react__dialog-wrapper",fileAttributes:o})),this[0])},_handleInsert:function Ue(e,t){var n=!1 +if(!o)throw new Error("Invalid Insert media modal component found") +delete a.url,_reactDom2["default"].render(_react2["default"].createElement(_reactRedux.Provider,{store:r},_react2["default"].createElement(o,{title:!1,show:e,onInsert:i,onHide:n,bodyClassName:"modal__dialog", +className:"insert-media-react__dialog-wrapper",fileAttributes:a})),this[0])},_handleInsert:function Ue(e,t){var n=!1 this.setData(_extends({},e,t)) try{switch(t.category){case"image":n=this.insertImage() break @@ -2048,48 +2043,48 @@ default:n=this.insertFile()}}catch(i){this.statusMessage(i,"bad")}return n&&this if(!t)return{} var n=t.getEditor().getSelectedNode() if(!n)return{} -var i=e(n),r=i.parent(".captionImage").find(".caption"),o={url:i.attr("src"),AltText:i.attr("alt"),InsertWidth:i.attr("width"),InsertHeight:i.attr("height"),TitleTooltip:i.attr("title"),Alignment:i.attr("class"), +var i=e(n),r=i.parent(".captionImage").find(".caption"),a={url:i.attr("src"),AltText:i.attr("alt"),InsertWidth:i.attr("width"),InsertHeight:i.attr("height"),TitleTooltip:i.attr("title"),Alignment:i.attr("class"), Caption:r.text(),ID:i.attr("data-id")} -return["InsertWidth","InsertHeight","ID"].forEach(function(e){o[e]="string"==typeof o[e]?parseInt(o[e],10):null}),o},getAttributes:function Be(){var e=this.getData() +return["InsertWidth","InsertHeight","ID"].forEach(function(e){a[e]="string"==typeof a[e]?parseInt(a[e],10):null}),a},getAttributes:function Be(){var e=this.getData() return{src:e.url,alt:e.AltText,width:e.InsertWidth,height:e.InsertHeight,title:e.TitleTooltip,"class":e.Alignment,"data-id":e.ID}},getExtraData:function He(){var e=this.getData() return{CaptionText:e&&e.Caption}},insertFile:function $e(){return this.statusMessage(_i18n2["default"]._t("HTMLEditorField_Toolbar.ERROR_OEMBED_REMOTE","Embed is only compatible with remote files"),"bad"), !1},insertImage:function Ve(){var t=this.getElement() if(!t)return!1 var n=t.getEditor() if(!n)return!1 -var i=e(n.getSelectedNode()),r=this.getAttributes(),o=this.getExtraData(),a=i&&i.is("img")?i:null -a&&a.parent().is(".captionImage")&&(a=a.parent()) +var i=e(n.getSelectedNode()),r=this.getAttributes(),a=this.getExtraData(),o=i&&i.is("img")?i:null +o&&o.parent().is(".captionImage")&&(o=o.parent()) var s=i&&i.is("img")?i:e("") s.attr(r) var l=s.parent(".captionImage"),u=l.find(".caption") -o.CaptionText?(l.length||(l=e("
")),l.attr("class","captionImage "+r["class"]).css("width",r.width),u.length||(u=e('

').appendTo(l)),u.attr("class","caption "+r["class"]).text(o.CaptionText)):l=u=null +a.CaptionText?(l.length||(l=e("
")),l.attr("class","captionImage "+r["class"]).css("width",r.width),u.length||(u=e('

').appendTo(l)),u.attr("class","caption "+r["class"]).text(a.CaptionText)):l=u=null var c=l||s -return a&&a.not(c).length&&a.replaceWith(c),l&&l.prepend(s),a||(n.repaint(),n.insertContent(e("
").append(c).html(),{skip_undo:1})),n.addUndo(),n.repaint(),!0},statusMessage:function qe(t,n){var i=e("
").text(t).html() +return o&&o.not(c).length&&o.replaceWith(c),l&&l.prepend(s),o||(n.repaint(),n.insertContent(e("
").append(c).html(),{skip_undo:1})),n.addUndo(),n.repaint(),!0},statusMessage:function qe(t,n){var i=e("
").text(t).html() e.noticeAdd({text:i,type:n,stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}})})},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r) -n(160),n(194),n(190),o["default"].entwine("ss",function(e){e(".ss-tabset").entwine({IgnoreTabState:!1,onadd:function t(){var e=window.location.hash +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r) +n(160),n(194),n(190),a["default"].entwine("ss",function(e){e(".ss-tabset").entwine({IgnoreTabState:!1,onadd:function t(){var e=window.location.hash this.redrawTabs(),""!==e&&this.openTabFromURL(e),this._super()},onremove:function n(){this.data("tabs")&&this.tabs("destroy"),this._super()},redrawTabs:function i(){this.rewriteHashlinks(),this.tabs()}, openTabFromURL:function r(t){var n -e.each(this.find(".ui-tabs-anchor"),function(){if(this.href.indexOf(t)!==-1&&1===e(t).length)return n=e(this),!1}),void 0!==n&&e(document).ready("ajaxComplete",function(){n.click()})},rewriteHashlinks:function o(){ +e.each(this.find(".ui-tabs-anchor"),function(){if(this.href.indexOf(t)!==-1&&1===e(t).length)return n=e(this),!1}),void 0!==n&&e(document).ready("ajaxComplete",function(){n.click()})},rewriteHashlinks:function a(){ e(this).find("ul a").each(function(){if(e(this).attr("href")){var t=e(this).attr("href").match(/#.*/) -t&&e(this).attr("href",document.location.href.replace(/#.*/,"")+t[0])}})}}),e(".ui-tabs-active .ui-tabs-anchor").entwine({onmatch:function a(){this.addClass("nav-link active")},onunmatch:function s(){this.removeClass("active") +t&&e(this).attr("href",document.location.href.replace(/#.*/,"")+t[0])}})}}),e(".ui-tabs-active .ui-tabs-anchor").entwine({onmatch:function o(){this.addClass("nav-link active")},onunmatch:function s(){this.removeClass("active") }})})},,function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),o=i(r),a=n(112),s=i(a) -n(160),n(190),o["default"].entwine("ss",function(e){e(".grid-field").entwine({reload:function t(n,i){var r=this,o=this.closest("form"),a=this.find(":input:focus").attr("name"),l=o.find(":input").serializeArray() +function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r),o=n(112),s=i(o) +n(160),n(190),a["default"].entwine("ss",function(e){e(".grid-field").entwine({reload:function t(n,i){var r=this,a=this.closest("form"),o=this.find(":input:focus").attr("name"),l=a.find(":input").serializeArray() -n||(n={}),n.data||(n.data=[]),n.data=n.data.concat(l),window.location.search&&(n.data=window.location.search.replace(/^\?/,"")+"&"+e.param(n.data)),o.addClass("loading"),e.ajax(e.extend({},{headers:{"X-Pjax":"CurrentField" -},type:"POST",url:this.data("url"),dataType:"html",success:function u(t){if(r.empty().append(e(t).children()),a&&r.find(':input[name="'+a+'"]').focus(),r.find(".filter-header").length){var s +n||(n={}),n.data||(n.data=[]),n.data=n.data.concat(l),window.location.search&&(n.data=window.location.search.replace(/^\?/,"")+"&"+e.param(n.data)),a.addClass("loading"),e.ajax(e.extend({},{headers:{"X-Pjax":"CurrentField" +},type:"POST",url:this.data("url"),dataType:"html",success:function u(t){if(r.empty().append(e(t).children()),o&&r.find(':input[name="'+o+'"]').focus(),r.find(".filter-header").length){var s "show"==n.data[0].filter?(s='',r.addClass("show-filter").find(".filter-header").show()):(s='', -r.removeClass("show-filter").find(".filter-header").hide()),r.find(".sortable-header th:last").html(s)}o.removeClass("loading"),i&&i.apply(this,arguments),r.trigger("reload",r)},error:function c(e){alert(s["default"]._t("GRIDFIELD.ERRORINTRANSACTION")), -o.removeClass("loading")}},n))},showDetailView:function n(e){window.location.href=e},getItems:function i(){return this.find(".ss-gridfield-item")},setState:function r(e,t){var n=this.getState() -n[e]=t,this.find(':input[name="'+this.data("name")+'[GridState]"]').val(JSON.stringify(n))},getState:function o(){return JSON.parse(this.find(':input[name="'+this.data("name")+'[GridState]"]').val())}}), -e(".grid-field *").entwine({getGridField:function a(){return this.closest(".grid-field")}}),e(".grid-field :button[name=showFilter]").entwine({onclick:function l(t){e(".filter-header").show("slow").find(":input:first").focus(), +r.removeClass("show-filter").find(".filter-header").hide()),r.find(".sortable-header th:last").html(s)}a.removeClass("loading"),i&&i.apply(this,arguments),r.trigger("reload",r)},error:function c(e){alert(s["default"]._t("GRIDFIELD.ERRORINTRANSACTION")), +a.removeClass("loading")}},n))},showDetailView:function n(e){window.location.href=e},getItems:function i(){return this.find(".ss-gridfield-item")},setState:function r(e,t){var n=this.getState() +n[e]=t,this.find(':input[name="'+this.data("name")+'[GridState]"]').val(JSON.stringify(n))},getState:function a(){return JSON.parse(this.find(':input[name="'+this.data("name")+'[GridState]"]').val())}}), +e(".grid-field *").entwine({getGridField:function o(){return this.closest(".grid-field")}}),e(".grid-field :button[name=showFilter]").entwine({onclick:function l(t){e(".filter-header").show("slow").find(":input:first").focus(), this.closest(".grid-field").addClass("show-filter"),this.parent().html(''),t.preventDefault()}}),e(".grid-field .ss-gridfield-item").entwine({onclick:function u(t){if(e(t.target).closest(".action").length)return this._super(t), !1 var n=this.find(".edit-link") @@ -2097,12 +2092,12 @@ n.length&&this.getGridField().showDetailView(n.prop("href"))},onmouseover:functi }}),e(".grid-field .action:button").entwine({onclick:function f(e){var t="show" return this.button("option","disabled")?void e.preventDefault():(!this.hasClass("ss-gridfield-button-close")&&this.closest(".grid-field").hasClass("show-filter")||(t="hidden"),this.getGridField().reload({ -data:[{name:this.attr("name"),value:this.val(),filter:t}]}),void e.preventDefault())},actionurl:function p(){var t=this.closest(":button"),n=this.getGridField(),i=this.closest("form"),r=i.find(":input.gridstate").serialize(),o=i.find('input[name="SecurityID"]').val() +data:[{name:this.attr("name"),value:this.val(),filter:t}]}),void e.preventDefault())},actionurl:function p(){var t=this.closest(":button"),n=this.getGridField(),i=this.closest("form"),r=i.find(":input.gridstate").serialize(),a=i.find('input[name="SecurityID"]').val() -r+="&"+encodeURIComponent(t.attr("name"))+"="+encodeURIComponent(t.val()),o&&(r+="&SecurityID="+encodeURIComponent(o)),window.location.search&&(r=window.location.search.replace(/^\?/,"")+"&"+r) -var a=n.data("url").indexOf("?")==-1?"?":"&" -return e.path.makeUrlAbsolute(n.data("url")+a+r,e("base").attr("href"))}}),e(".grid-field .add-existing-autocompleter").entwine({onbuttoncreate:function h(){var e=this +r+="&"+encodeURIComponent(t.attr("name"))+"="+encodeURIComponent(t.val()),a&&(r+="&SecurityID="+encodeURIComponent(a)),window.location.search&&(r=window.location.search.replace(/^\?/,"")+"&"+r) +var o=n.data("url").indexOf("?")==-1?"?":"&" +return e.path.makeUrlAbsolute(n.data("url")+o+r,e("base").attr("href"))}}),e(".grid-field .add-existing-autocompleter").entwine({onbuttoncreate:function h(){var e=this this.toggleDisabled(),this.find('input[type="text"]').on("keyup",function(){e.toggleDisabled()})},onunmatch:function m(){this.find('input[type="text"]').off("keyup")},toggleDisabled:function g(){var e=this.find(".ss-ui-button"),t=this.find('input[type="text"]'),n=""!==t.val(),i=e.is(":disabled") ;(n&&i||!n&&!i)&&e.button("option","disabled",!i)}}),e(".grid-field .grid-field__col-compact .action.gridfield-button-delete, .cms-edit-form .btn-toolbar button.action.action-delete").entwine({onclick:function v(e){ @@ -2113,8 +2108,8 @@ var e=this.contentWindow||this e.print()})},onunmatch:function C(){this._super()}}),e(".grid-field .action.no-ajax").entwine({onclick:function T(e){return window.location.href=this.actionurl(),e.preventDefault(),!1}}),e(".grid-field .action-detail").entwine({ onclick:function E(){return this.getGridField().showDetailView(e(this).prop("href")),!1}}),e(".grid-field[data-selectable]").entwine({getSelectedItems:function P(){return this.find(".ss-gridfield-item.ui-selected") -},getSelectedIDs:function O(){return e.map(this.getSelectedItems(),function(t){return e(t).data("id")})}}),e(".grid-field[data-selectable] .ss-gridfield-items").entwine({onadd:function S(){this._super(), -this.selectable()},onremove:function k(){this._super(),this.data("selectable")&&this.selectable("destroy")}}),e(".grid-field .filter-header :input").entwine({onmatch:function j(){var e=this.closest(".extra").find(".ss-gridfield-button-filter"),t=this.closest(".extra").find(".ss-gridfield-button-reset") +},getSelectedIDs:function O(){return e.map(this.getSelectedItems(),function(t){return e(t).data("id")})}}),e(".grid-field[data-selectable] .ss-gridfield-items").entwine({onadd:function k(){this._super(), +this.selectable()},onremove:function S(){this._super(),this.data("selectable")&&this.selectable("destroy")}}),e(".grid-field .filter-header :input").entwine({onmatch:function j(){var e=this.closest(".extra").find(".ss-gridfield-button-filter"),t=this.closest(".extra").find(".ss-gridfield-button-reset") this.val()&&(e.addClass("filtered"),t.addClass("filtered")),this._super()},onunmatch:function x(){this._super()},onkeydown:function R(e){if(!this.closest(".ss-gridfield-button-reset").length){var t=this.closest(".extra").find(".ss-gridfield-button-filter"),n=this.closest(".extra").find(".ss-gridfield-button-reset") @@ -2123,10 +2118,10 @@ this.val()&&(e.addClass("filtered"),t.addClass("filtered")),this._super()},onunm if("13"==e.keyCode){var i=this.closest(".filter-header").find(".ss-gridfield-button-filter"),r="show" return!this.hasClass("ss-gridfield-button-close")&&this.closest(".grid-field").hasClass("show-filter")||(r="hidden"),this.getGridField().reload({data:[{name:i.attr("name"),value:i.val(),filter:r}]}),!1 -}t.addClass("hover-alike"),n.addClass("hover-alike")}}}),e(".grid-field .relation-search").entwine({onfocusin:function I(t){this.autocomplete({source:function n(t,i){var r=e(this.element),o=e(this.element).closest("form") +}t.addClass("hover-alike"),n.addClass("hover-alike")}}}),e(".grid-field .relation-search").entwine({onfocusin:function I(t){this.autocomplete({source:function n(t,i){var r=e(this.element),a=e(this.element).closest("form") -e.ajax({headers:{"X-Pjax":"Partial"},dataType:"json",type:"GET",url:e(r).data("searchUrl"),data:encodeURIComponent(r.attr("name"))+"="+encodeURIComponent(r.val()),success:i,error:function a(e){alert(s["default"]._t("GRIDFIELD.ERRORINTRANSACTION","An error occured while fetching data from the server\n Please try again later.")) +e.ajax({headers:{"X-Pjax":"Partial"},dataType:"json",type:"GET",url:e(r).data("searchUrl"),data:encodeURIComponent(r.attr("name"))+"="+encodeURIComponent(r.val()),success:i,error:function o(e){alert(s["default"]._t("GRIDFIELD.ERRORINTRANSACTION","An error occured while fetching data from the server\n Please try again later.")) }})},select:function i(t,n){var i=e('') i.val(n.item.id),e(this).closest(".grid-field").find(".action_gridfield_relationfind").replaceWith(i) @@ -2138,25 +2133,25 @@ return i.setState("GridFieldPaginator",{currentPage:n}),i.reload(),!1}}})})},fun function i(e){if(e&&e.__esModule)return e var t={} if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]) -return t["default"]=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}function o(){g["default"].add("config",_["default"]),g["default"].add("form",d.reducer),g["default"].add("schemas",C["default"]), -g["default"].add("records",E["default"]),g["default"].add("campaign",O["default"]),g["default"].add("breadcrumbs",k["default"]),g["default"].add("routing",f.routerReducer),x["default"].start() -var e={},t=(0,l.combineReducers)(g["default"].getAll()),n=[c["default"]],i=h["default"].get("environment"),r=h["default"].get("debugging"),o=l.applyMiddleware.apply(void 0,n),a=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,u=window.__REDUX_DEVTOOLS_EXTENSION__||window.devToolsExtension +return t["default"]=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}function a(){g["default"].add("config",_["default"]),g["default"].add("form",d.reducer),g["default"].add("schemas",C["default"]), +g["default"].add("records",E["default"]),g["default"].add("campaign",O["default"]),g["default"].add("breadcrumbs",S["default"]),g["default"].add("routing",f.routerReducer),x["default"].start() +var e={},t=(0,l.combineReducers)(g["default"].getAll()),n=[c["default"]],i=h["default"].get("environment"),r=h["default"].get("debugging"),a=l.applyMiddleware.apply(void 0,n),o=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,u=window.__REDUX_DEVTOOLS_EXTENSION__||window.devToolsExtension -"dev"===i&&r&&("function"==typeof a?o=a(l.applyMiddleware.apply(void 0,n)):"function"==typeof u&&(o=(0,l.compose)(l.applyMiddleware.apply(void 0,n),u()))) -var p=o(l.createStore),m=p(t,e) +"dev"===i&&r&&("function"==typeof o?a=o(l.applyMiddleware.apply(void 0,n)):"function"==typeof u&&(a=(0,l.compose)(l.applyMiddleware.apply(void 0,n),u()))) +var p=a(l.createStore),m=p(t,e) m.dispatch(y.setConfig(h["default"].getAll())),window.ss=window.ss||{},window.ss.store=m var v=new s["default"](m) -v.start(window.location.pathname)}var a=n(197),s=r(a),l=n(106),u=n(219),c=r(u),d=n(107),f=n(218),p=n(143),h=r(p),m=n(220),g=r(m),v=n(221),y=i(v),b=n(223),_=r(b),w=n(225),C=r(w),T=n(226),E=r(T),P=n(227),O=r(P),S=n(229),k=r(S),j=n(230),x=r(j),R=n(246),I=r(R),A=n(10),D=r(A) +v.start(window.location.pathname)}var o=n(197),s=r(o),l=n(106),u=n(219),c=r(u),d=n(107),f=n(218),p=n(143),h=r(p),m=n(220),g=r(m),v=n(221),y=i(v),b=n(223),_=r(b),w=n(225),C=r(w),T=n(226),E=r(T),P=n(227),O=r(P),k=n(229),S=r(k),j=n(230),x=r(j),R=n(246),I=r(R),A=n(10),D=r(A) -D["default"].polyfill(),window.onload=o},function(e,t,n){"use strict" +D["default"].polyfill(),window.onload=a},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")}Object.defineProperty(t,"__esModule",{value:!0}) -var o=function(){function e(e,t){for(var n=0;n-1}).map(function(e){return""+e.value @@ -2313,17 +2308,17 @@ g.propTypes={className:u["default"].PropTypes.string,extraClass:u["default"].Pro source:u["default"].PropTypes.arrayOf(u["default"].PropTypes.shape({value:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),title:u["default"].PropTypes.any, disabled:u["default"].PropTypes.bool})),onChange:u["default"].PropTypes.func,value:u["default"].PropTypes.any,readOnly:u["default"].PropTypes.bool,disabled:u["default"].PropTypes.bool},g.defaultProps={ extraClass:"",className:"",value:[]},t.CheckboxSetField=g,t["default"]=(0,m["default"])(g)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") +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") -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) +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) 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}),t.OptionsetField=void 0 var s=function(){function e(e,t){for(var n=0;n1){var t=this.props.breadcrumbs[this.props.breadcrumbs.length-2] t&&t.href&&(e.preventDefault(),this.props.router.push(t.href))}}},{key:"render",value:function u(){var e=null switch(this.props.params.view){case"show":e=this.renderItemListView() @@ -2535,7 +2530,7 @@ case"edit":e=this.renderDetailEditView() break case"create":e=this.renderCreateView() break -default:e=this.renderIndexView()}return e}},{key:"renderIndexView",value:function f(){var e=this.props.sectionConfig.form.EditForm.schemaUrl,t={title:k["default"]._t("Campaigns.ADDCAMPAIGN"),icon:"plus", +default:e=this.renderIndexView()}return e}},{key:"renderIndexView",value:function f(){var e=this.props.sectionConfig.form.EditForm.schemaUrl,t={title:S["default"]._t("Campaigns.ADDCAMPAIGN"),icon:"plus", handleClick:this.addCampaign.bind(this)},n={createFn:this.campaignListCreateFn.bind(this),schemaUrl:e} return p["default"].createElement("div",{className:"fill-height","aria-expanded":"true"},p["default"].createElement(x["default"],null,p["default"].createElement(C["default"],{multiline:!0})),p["default"].createElement("div",{ className:"panel panel--padded panel--scrollable flexbox-area-grow"},p["default"].createElement("div",{className:"toolbar toolbar--content"},p["default"].createElement("div",{className:"btn-toolbar"},p["default"].createElement(O["default"],t))),p["default"].createElement(I["default"],n))) @@ -2553,16 +2548,16 @@ var n={createFn:this.campaignAddCreateFn.bind(this),schemaUrl:t} return p["default"].createElement("div",null,p["default"].createElement(x["default"],{showBackButton:!0,handleBackButtonClick:this.handleBackButtonClick},p["default"].createElement(C["default"],{multiline:!0 })),p["default"].createElement("div",{className:"panel panel--padded panel--scrollable flexbox-area-grow form--inline"},p["default"].createElement(I["default"],n)))}},{key:"campaignEditCreateFn",value:function v(e,t){ var n=this,i=this.props.sectionConfig.url -if("action_cancel"===t.name){var r=c({},t,{handleClick:function o(e){e.preventDefault(),n.props.router.push(i)}}) +if("action_cancel"===t.name){var r=c({},t,{handleClick:function a(e){e.preventDefault(),n.props.router.push(i)}}) return p["default"].createElement(e,c({key:t.id},r))}return p["default"].createElement(e,c({key:t.id},t))}},{key:"campaignAddCreateFn",value:function b(e,t){var n=this,i=this.props.sectionConfig.url -if("action_cancel"===t.name){var r=c({},t,{handleClick:function o(e){e.preventDefault(),n.props.router.push(i)}}) +if("action_cancel"===t.name){var r=c({},t,{handleClick:function a(e){e.preventDefault(),n.props.router.push(i)}}) return p["default"].createElement(e,c({key:t.name},r))}return p["default"].createElement(e,c({key:t.name},t))}},{key:"campaignListCreateFn",value:function _(e,t){var n=this,i=this.props.sectionConfig.url,r="set" -if("GridField"===t.schemaComponent){var o=c({},t,{data:c({},t.data,{handleDrillDown:function a(e,t){n.props.router.push(i+"/"+r+"/"+t.ID+"/show")},handleEditRecord:function s(e,t){n.props.router.push(i+"/"+r+"/"+t+"/edit") +if("GridField"===t.schemaComponent){var a=c({},t,{data:c({},t.data,{handleDrillDown:function o(e,t){n.props.router.push(i+"/"+r+"/"+t.ID+"/show")},handleEditRecord:function s(e,t){n.props.router.push(i+"/"+r+"/"+t+"/edit") }})}) -return p["default"].createElement(e,c({key:o.name},o))}return p["default"].createElement(e,c({key:t.name},t))}},{key:"addCampaign",value:function w(){var e=this.getActionRoute(0,"create") +return p["default"].createElement(e,c({key:a.name},a))}return p["default"].createElement(e,c({key:t.name},t))}},{key:"addCampaign",value:function w(){var e=this.getActionRoute(0,"create") this.props.router.push(e)}},{key:"getActionRoute",value:function T(e,t){return this.props.sectionConfig.url+"/set/"+e+"/"+t}}]),t}(E["default"]) F.propTypes={breadcrumbsActions:p["default"].PropTypes.object.isRequired,campaignId:p["default"].PropTypes.string,sectionConfig:p["default"].PropTypes.object.isRequired,securityId:p["default"].PropTypes.string.isRequired, view:p["default"].PropTypes.string},t["default"]=(0,g.withRouter)((0,h.connect)(l,u)(F))},function(e,t){e.exports=BreadcrumbsActions},function(e,t){e.exports=Breadcrumb},function(e,t){e.exports=Toolbar @@ -2571,7 +2566,7 @@ view:p["default"].PropTypes.string},t["default"]=(0,g.withRouter)((0,h.connect)( function i(e){if(e&&e.__esModule)return e var t={} if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]) -return t["default"]=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}function o(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") +return t["default"]=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}function a(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 s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t) @@ -2588,25 +2583,25 @@ i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Obj var i=Object.getOwnPropertyDescriptor(e,t) if(void 0===i){var r=Object.getPrototypeOf(e) return null===r?void 0:q(r,t,n)}if("value"in i)return i.value -var o=i.get -if(void 0!==o)return o.call(n)},p=n(5),h=r(p),m=n(106),g=n(105),v=n(248),y=i(v),b=n(122),_=i(b),w=n(252),C=i(w),T=n(21),E=r(T),P=n(253),O=r(P),S=n(254),k=r(S),j=n(256),x=r(j),R=n(250),I=r(R),A=n(245),D=r(A),F=n(257),M=r(F),N=n(249),U=r(N),L=n(258),B=r(L),H=n(112),$=r(H),V=function(e){ -function t(e){o(this,t) -var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)) +var a=i.get +if(void 0!==a)return a.call(n)},p=n(5),h=r(p),m=n(106),g=n(105),v=n(248),y=i(v),b=n(122),_=i(b),w=n(252),C=i(w),T=n(21),E=r(T),P=n(253),O=r(P),k=n(254),S=r(k),j=n(256),x=r(j),R=n(250),I=r(R),A=n(245),D=r(A),F=n(257),M=r(F),N=n(249),U=r(N),L=n(258),B=r(L),H=n(112),$=r(H),V=function(e){ +function t(e){a(this,t) +var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)) return n.handlePublish=n.handlePublish.bind(n),n.handleItemSelected=n.handleItemSelected.bind(n),n.setBreadcrumbs=n.setBreadcrumbs.bind(n),n.handleCloseItem=n.handleCloseItem.bind(n),n}return s(t,e),d(t,[{ key:"componentDidMount",value:function n(){var e=this.props.itemListViewEndpoint.url.replace(/:id/,this.props.campaignId) f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentDidMount",this).call(this),this.setBreadcrumbs(),Object.keys(this.props.record).length||this.props.recordActions.fetchRecord(this.props.treeClass,"get",e).then(this.setBreadcrumbs) }},{key:"setBreadcrumbs",value:function i(){if(this.props.record){var e=[{text:$["default"]._t("Campaigns.CAMPAIGN","Campaigns"),href:this.props.sectionConfig.url}] -e.push({text:this.props.record.Name,href:this.props.sectionConfig.url+"/set/"+this.props.campaignId+"/show"}),this.props.breadcrumbsActions.setBreadcrumbs(e)}}},{key:"render",value:function r(){var e=this,t=this.props.campaign.changeSetItemId,n=null,i=t?"":"campaign-admin__campaign--hide-preview",r=this.props.campaignId,o=this.props.record,a=this.groupItemsForSet(),s=[] +e.push({text:this.props.record.Name,href:this.props.sectionConfig.url+"/set/"+this.props.campaignId+"/show"}),this.props.breadcrumbsActions.setBreadcrumbs(e)}}},{key:"render",value:function r(){var e=this,t=this.props.campaign.changeSetItemId,n=null,i=t?"":"campaign-admin__campaign--hide-preview",r=this.props.campaignId,a=this.props.record,o=this.groupItemsForSet(),s=[] -Object.keys(a).forEach(function(i){var l=a[i],u=l.items.length,c=[],d=u+" "+(1===u?l.singular:l.plural),f="Set_"+r+"_Group_"+i +Object.keys(o).forEach(function(i){var l=o[i],u=l.items.length,c=[],d=u+" "+(1===u?l.singular:l.plural),f="Set_"+r+"_Group_"+i l.items.forEach(function(i){t||(t=i.ID) var r=t===i.ID r&&i._links&&(n=i._links) -var a=[] -"none"!==i.ChangeType&&"published"!==o.State||a.push("list-group-item--inactive"),r&&a.push("active"),c.push(h["default"].createElement(x["default"],{key:i.ID,className:a.join(" "),handleClick:e.handleItemSelected, -handleClickArg:i.ID},h["default"].createElement(M["default"],{item:i,campaign:e.props.record})))}),s.push(h["default"].createElement(k["default"],{key:f,groupid:f,title:d},c))}) +var o=[] +"none"!==i.ChangeType&&"published"!==a.State||o.push("list-group-item--inactive"),r&&o.push("active"),c.push(h["default"].createElement(x["default"],{key:i.ID,className:o.join(" "),handleClick:e.handleItemSelected, +handleClickArg:i.ID},h["default"].createElement(M["default"],{item:i,campaign:e.props.record})))}),s.push(h["default"].createElement(S["default"],{key:f,groupid:f,title:d},c))}) var l=[this.props.config.absoluteBaseUrl,this.props.config.sections["SilverStripe\\CMS\\Controllers\\CMSPagesController"].url].join(""),u=s.length?h["default"].createElement(O["default"],null,s):h["default"].createElement("div",{ className:"alert alert-warning",role:"alert"},h["default"].createElement("strong",null,"This campaign is empty.")," You can add items to a campaign by selecting ",h["default"].createElement("em",null,"Add to campaign")," from within the ",h["default"].createElement("em",null,"More Options "),"popup on ",h["default"].createElement("a",{ href:l},"pages")," and files."),c=["panel","panel--padded","panel--scrollable","flexbox-area-grow"] @@ -2628,26 +2623,26 @@ e[n]||(e[n]={singular:t.Singular,plural:t.Plural,items:[]}),e[n].items.push(t)}) V.propTypes={campaign:h["default"].PropTypes.shape({isPublishing:h["default"].PropTypes.bool.isRequired,changeSetItemId:h["default"].PropTypes.number}),breadcrumbsActions:h["default"].PropTypes.object.isRequired, campaignActions:h["default"].PropTypes.object.isRequired,publishApi:h["default"].PropTypes.func.isRequired,record:h["default"].PropTypes.object.isRequired,recordActions:h["default"].PropTypes.object.isRequired, sectionConfig:h["default"].PropTypes.object.isRequired,handleBackButtonClick:h["default"].PropTypes.func},t["default"]=(0,g.connect)(l,u)(V)},function(e,t,n){"use strict" -function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return{type:l["default"].SET_CAMPAIGN_SELECTED_CHANGESETITEM,payload:{changeSetItemId:e}}}function o(e,t){return function(n){n({type:l["default"].SET_CAMPAIGN_ACTIVE_CHANGESET, -payload:{campaignId:e,view:t}})}}function a(e,t,n){return function(i){i({type:l["default"].PUBLISH_CAMPAIGN_REQUEST,payload:{campaignId:n}}),e({id:n}).then(function(e){i({type:l["default"].PUBLISH_CAMPAIGN_SUCCESS, +function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return{type:l["default"].SET_CAMPAIGN_SELECTED_CHANGESETITEM,payload:{changeSetItemId:e}}}function a(e,t){return function(n){n({type:l["default"].SET_CAMPAIGN_ACTIVE_CHANGESET, +payload:{campaignId:e,view:t}})}}function o(e,t,n){return function(i){i({type:l["default"].PUBLISH_CAMPAIGN_REQUEST,payload:{campaignId:n}}),e({id:n}).then(function(e){i({type:l["default"].PUBLISH_CAMPAIGN_SUCCESS, payload:{campaignId:n}}),i({type:c["default"].FETCH_RECORD_SUCCESS,payload:{recordType:t,data:e}})})["catch"](function(e){i({type:l["default"].PUBLISH_CAMPAIGN_FAILURE,payload:{error:e}})})}}Object.defineProperty(t,"__esModule",{ -value:!0}),t.selectChangeSetItem=r,t.showCampaignView=o,t.publishCampaign=a +value:!0}),t.selectChangeSetItem=r,t.showCampaignView=a,t.publishCampaign=o var s=n(228),l=i(s),u=n(123),c=i(u)},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 o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") +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") -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) +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) 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=function(){function e(e,t){for(var n=0;nwtH@R7uc5~&q*ydG}USD%;noLZ)mvB~5zB7-!dIt++W66qKy(V!|U5kr;c zoOUb<09XiJHQ3eekG)2-7Qc zYAvZIaL}QMrV|E|4^ff+oq|UDP8Qd{EfZBRh6&X&5IXEgX%r}x{y$Wsd56}MiP%5! z{->}$$*jc~iI|=+=oD1rGJ+khv^=2>LrFrHL=f4dRg`5CB%#kFw4hKpQZC6)3dxSm9D1tt;kAxej?Rx5cN5jO@FMzUj>VgZ80as;f1SRqFkfkX;pU{M5j zlq(_>1`URjqg>@bT+WzW$3SSblxGp9Q|Dqzv5wGyBZ>3WW5>cAQ|~QTId&|pF}VyX z7>1+0|7!QBiJBqD_TBJOhj-(T;nd9QsNpUe*il5?nHv&OOp?jgwp<=JX=%XlSG`@f z(;v$g1^woiKInV!Yq{Itl;__r&TQR#xHfL$mkKn#Z5)?(24Q(t3j+tvOoe#*-ht zUNysYT%r8?_6PQp)w`dq0LxZPu@12xrlwZCRx0K+|3vVX*ezL+n+KzBBL!>sO}JB?moVtZ+Nw6CjuIs#+8)hSo0rP!{sEL)WIkZ2MLxClTboVF_P}clqpx=JmwizSy?@5gW*4M!!D=n8jRr zmmMAA2DyfMY;Ayx`T`V%lT*QmhA4mG%2mvkGv?^i3A8F-%{26)Ye{WoZn&zp^;hoH zXNJ7V-ygi{Dvr+%?EvN|0CrV?{oL%<+SM)To>wHFt9!!Ij`U~VyT)4j&FzIl!}tl) zgdl0?z-n$V;;Tq0PjbIkZMq|`gzK)jR`PI1Zbf!CZcy1OAJ zAfxa_rNmxr>i(+WQ*9kPuwdm(+PvNFYlq((iZ9#6_S={q^tCfGJ-PTssejt(DpQJg zlYVh4)~WpQO7vupfA8gzw0@O7Z0`q1ULz2lEh zlBNl!d?#5hC_9Wcg3 s{P?#=y72epVHF?j{ZhPY|2i)i5TATwsLd0kI{tT(*aXpMg0$kl0K+%lO8@`> diff --git a/client/dist/images/app_icons/archive_92.png b/client/dist/images/app_icons/archive_92.png new file mode 100644 index 0000000000000000000000000000000000000000..b1b06f27dfb227702b690233e2f1f67ba14054ef GIT binary patch literal 666 zcmeAS@N?(olHy`uVBq!ia0vp^F(Ayr1|%Q9zZ3zaI14-?iy0WWg+Z8+Vb&Z8prB-l zYeY$Kep*R+Vo@rCV@iHfs)A>3VtQ&&YGO)d;mK4R1_mZ|PZ!6Kid%1P@Ao_8AamfO zSO9a=iitZu^Z51IwNC!XJ10gaL}t#Nm^rdNle^D9;NBrMv!|X(D6m6m+ATgEKam~x zWB=Cf?<`!%W@p)dZ|m2?246hZ#av>3_4QZMm)8crZq9rrebZ{6%+IaQt7muqD_a?2 zwIW2zU9Tbim_^#F8_T$x7F^3P`F5FW-`r#Mso@unGwLrd{a39#{6Qo z*t0V4xOT15_Z7czb?(v|ZsCZR7xG6niwm2p=0;}Ds`*lV>&4-< z4I$0TbC(z|UBV(;@Q{IBrho~E?wsAR>?B9Jm*N3N^#gZ%qVKA$h+6w8Ks1<(k~KY$`;zXmAcvtayp-|G*H%liMH|6TeOA<CH9mh+#@K6|6^ z#c+t^Y@gN-@dz^d+Uwn4WIA4nlmTv?v-Pfb|2rKGKt*J#KUlODdWW_dnzq} P>59SA)z4*}Q$iB}>2EKo literal 0 HcmV?d00001 diff --git a/client/dist/images/app_icons/audio_32.png b/client/dist/images/app_icons/audio_32.png deleted file mode 100644 index c874d2d8bfd75e04a524f38aae023bd594478940..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2084 zcmbVNdsGu=77r4UN0EpisDRU81(jqn33*n)m;?fC5MnG~TgqfIfk=|cW`YR;XALzTK0%VtXu1%g7P}JRvzWCf=^J252PR!a8bdXpxFJx-9L8Dnfbo&e)o4D zzkBbQ-3jqAp6<)sNhFeItW+!~R>1MPx)5L7Y8@w*r6x(TX%nV4nPDSJ5~?sI3dHK* zbX1PQs_Z{pMAwl>&K8X#*_14MSAbwTI_%J)TXY5jO(Ly}vKU|_6Ey)!G+m>QppKqB zPX#op2x<~r#*i6AXof~=HKLoW@e0J6iSSj_s7PR)ML-zPp(Yrx=(KuVV2Pm4+7%Fc zhZv*+vnr;{2pz+^ydkiiEb28{s;Acla+ z0A4;+!kba07RbfXFMScG2x^AOWDtO$*=(kpS#->p4nllBA7n5=CX+^J(C}=%3AWJm zc<`JBF^VHbjlrbB^nk-6ti-ZR5mX}57b)lrGTAG`di*6(1ZAKFHh>VF0qS&)yk@m= zlN|j$jMr-8ifjW4%26E4G9pAh)WLILg1i6i$e~C?BiLxv5JiEtVhqXBp?XuSID$&t z&{Z0hfXiob82oUQhH_XuS~yG1q`^!CqCqgkWH1l};)e6)?7R*i9?j=4xNMGu87+b! z33~&JBN4Gh9Ed9tGQ=GI95z;un_xYH&iU35zS&~FkRjrV2<(RciWP{AC~U%v3JlZE zbwNS~X2S3c%m9c)vsDK|WiX=AJA|tpg?f><7&U6Pp{i&jrUPb~7HD1*1e&Z z^~4MriDB_+M?eyZydhRBR9LPyCCRkQB|bCF-%MD$dMk>*b<#>7$bH1YZy(KeEBASRw?nQQyFJ{w_nnl1GW8peLy)Ko z$dhNMNQ}E<(@)Q|-)WUSbR7c{d4~@^svE<8@gq+g|IMj} zRqyrSN_~nVx0)EP6hqH&*7ATT=9L`(pzG$z-^N?N%uV$YmkLOfhG^=!D>5f)WG=nk z*{M2n(t3a9gPW9rx|ybbH2rA5>vw<~^vKQTvK~m#F4#e?`y%~`cZsY8Tv0jy&{p@b zg(UJmEXZR~>PSnx+YZ)(s_M2LZK;pC%vRJ4P8?{p=Nq(7cH8E~d};^eJ$_^LF^K>4q<2?N{jtS=T6O2dpU>?|TDYRl z-1iavyT#8gG^iU_j*D%h+cepME)P7S{!-Ea`l)Ns74zTw+w;_x($O*UIsa*2?EFN4 z0D-TcsonFh{KR^<_ZQ{G7Iaqi@h3L7svE9#^m={Cvsx(A8%LT;x;*?Xg54EsJuJMS z{F4KFcStVDyXfwge=^m0g?Xz;nRevJ~u^PbcO^YXN=$0{#f3>dx9wNnI+4_xo@GYpqIqrP2c@Zll*zKX8H z{1D40x9b2JTLKFYOT36{;kT?f;|$uMRhscb@Dc6xl1AU^T4-4TJ!rc%@0D7I+O4A z&HO|?{toG{@Q{7*)N0CR?PYse3PVKuywkdOOUKkfY^b=Ab-en{yFV_G^j3NR#qpyp z>L1|9&oqdB;Z`NT5Ubtaqno=gVWNL`xhndZ^x%{BUS#NHODk351zO9 rc)8@OLw$bw?&y}E!)5Ctr-SQAmA*kW#EYvoq<#8t6C*wC diff --git a/client/dist/images/app_icons/audio_92.png b/client/dist/images/app_icons/audio_92.png new file mode 100644 index 0000000000000000000000000000000000000000..ffa9c6e37bcdb55fd2ba56cebeb10329cc9f7edc GIT binary patch literal 1278 zcmVCc~vhi{C^=ue)@Eq5HP=aqLUY}E+DtPGnb zlu7b2cgLmY@;mn&^ON)8TxrUv4xggW<0I}j=6k%v$brj*OwYKXKYK3IGqq1jQn<1| zH(*CXwpoH;_co5XHV|@eN`2C@H9@K`a95GGJE*(f2Pp3HfPs+g;M#M3ly?9ELDej<3KNKJvT1XC~=gQaMjRn^d*ABR==)nDS0 z`3U%(a5*74Q>$`_es*Vb@03h3_B^yfv_ZO%0kAVcHprTd>3?iu4wsC$nr^Pz*%=EA*JBJh_@PZ zu{F`zgianj^*AER@`T;Vj$?7x7F%-zGw?i;@>oIGzUc5cA%&#b1EbUF*M6p1U`v!^V8G*MN3!Jk&HDuv3U%7>@Yj$4N3+Yd7{+Rezan>G*dbxmMDMf&^6 zL^wY&I-s;{TiCBC^m+7ezX@&j87PyNuAuj+A}3cldc;ncw@L5=<(e#%xi5vgb=%-( zELktCmhM7J6R(5ZTeF*A zLbnV(rFt%f-9tB2wzF|R^tg;x5Dv0Uj1XW7v|rNMekGBMLKl%-@TX#U+XU(l_^@1>B#*wgik zE-w=X%9IEB=%j%MZrn*EFY|WuYIkKdyrQswd+}po1Nd%8u%~QYBLFWy(jtHN3c&TC zS?Hk18v^();J=yej{dQG3E@%>u%OYO-z;2~aen|09FPF{Qv*}07*qoM6N<$g6eu!$N&HU literal 0 HcmV?d00001 diff --git a/client/dist/images/app_icons/document_32.png b/client/dist/images/app_icons/document_32.png deleted file mode 100644 index 8296429d1c5f805972e80e1b4b947018e62ddd1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1783 zcmbVNc~BE)6kh`frD7w9cn-^g)+(FbO-M*m0)d1eqoEv8@piLWBqhnl%>ogv3Pf5t z?5GGRD0mEo(IHlBm9dpHwOGch9v!W<^(?4>P(U0Qk8Tib|8V@HJG1+J-}~P09l!V9 z?AFADI3Mq+-T(mj#LrVEvn%L&y~eU%OHNKdyG&tXQ<)ShjmgGo5{TAOS`v&m;%mrc z64$L;+e$_NfSXmXNo7*i3#0^P5;XXfRo%Rv9#GSIX{PVgv$* zRhSGJ^g5_ibt0&sXc83iL@J;|VShA~SKBs)8smo4B?^cn<{NF)f#NBDf0)qpMQObl*?O_tzM3rf;L z(0VhYr%a&BBCe$}85zVz`Z@)pS*?C!*kl>)E2<1|>yg8c7oquarUT4Ns@nNy8-q z5h@8IVNxUz!(oCnK8*7T490MbkD>&Dg@=hp?Ys>yR7#>zMYtrEuZqF2SYeDn6sr&_ zL|C{Y8dZuUqu6+pg~3e(IqF-_`X0fG--(qfXcA{AT0>EW(Jn|#rx?nTPMJZ4Vz}zy zY&A~kO)lX_u0p-eTS?OTEK;YUDI++{v{e6=C~#Du4HuInEDR6BSO$cASWA#%7#9i! z0)dv0@WpHvukpJ7%OJuAg}B<~KkYLrVtdlHeKQQ~;mtUaCU%Bsc39fnb5^l4=pV0) z)>vk3-3w1FEhMm8VX)?vvr->d50kn^PcRUa+dU+R1n!B5Js zUVOrCIy}@GJ+3-R)>|(+aO5k_(Ez);xI`3o@clY&q4Edgy1*?zX7tzxFL&+f$t1GN zu6WlkF3NBM1CX+V!Mn37pTb4Q`~upqmwEhIA$a1r`?dXL?);rZ33B^H+tEPJpjbB` zC~N)=yDT2+JQLYm7ShvFwRY3SWmlK1#}7m{_Y%)~?R)bZ^8gKpQw;gIdphplYZ~g? z^>pvt7a+7^br8TcUsu5u-<_11c*Hc8FI;snpO@~E-u$Yn2vRL;tlYx}1?kbzX9c3%SqP-ZH~5Yr;YY zz1)%C({^49JqifCU19?p)Dt{(VAVcHZ;`(FxvKQR(T~T^&Gkhqw~pa>CzkCz-LJoO zS7%G-=2aJj*G{q>Tm7i@d#=szJO`*HTQ|-Ctk39{os#3zT22PnxzG98P&iv&ab~$` zRa@8-?jpxPdFTANJ3}v2hptfpwSLjuG9M`V;UsAM-!FeP$W2~N!CQUTX37f}Id%l~ zL^$%d_Zu!>6x~`Mm9uZAuiFOXPC@-C+0ZLZ=q%f_Jg_Sf^y*(Ie>}~W8#eCTZs&|# zM}jw)TV9Z_kS~~7JUvV;=#Z88xH(_eTsQ;lX$b5Km@=Kyd@C&mI5>H{GdjpA`qCX` z6z>gq7JPAZN@aoS>}*}<3T3P957i*zGZ6GkcT;;--;~|I6?>$Av-CsFLKt6m;Bni* z!4C%U(;kZ(yDp?PN>+qI`1D}rKJD> diff --git a/client/dist/images/app_icons/document_92.png b/client/dist/images/app_icons/document_92.png new file mode 100644 index 0000000000000000000000000000000000000000..aa419ea211b7c26fb4e37072e65d9945be276143 GIT binary patch literal 655 zcmeAS@N?(olHy`uVBq!ia0vp^F(Ayr1|%Q9zZ3zaI14-?iy0WWg+Z8+Vb&Z8prB-l zYeY$Kep*R+Vo@rCV@iHfs)A>3VtQ&&YGO)d;mK4R1_mY>PZ!6Kid%1P@Ao?tAky%0 z+9EcVK;^>cl5=EaYuMD;;}4uX>ezblgaxFey_MvmrrE_Z9HBn489y@)w3QkV@_26OQ z+=K2r3Jkc|RoLVg9@3s(xE|r)xd+od_Wzyr#kluhsZwgI{{=6gmuxxbTUs^uw{o>I zHJ?{uw|LNSSt7V_wY2seXD&v&rG`HYeiV2p9$-`lBlbBAP$W~p1VaZn3!n(Bs=4Q1 z$kms1rtw+%+$oL literal 0 HcmV?d00001 diff --git a/client/dist/images/app_icons/generic_32.png b/client/dist/images/app_icons/generic_32.png deleted file mode 100644 index 1073fae063ba9c40c4ba48442faf05618feea67a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1597 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWuD@%o>>?5hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|8hm3bwJ6}oxF$}kgLQj3#|G7CyF^YauyCMG83 zmzLNn0bL65LT&-v*t}wBFaZNhzap_f-%!s0*lEl2^R8JRMC7?NanVBh8MnURA3w>B>(dpvkB(v+$3V|43Mp;u`-5RES zjPeW&O7^TF$jKe>*_R{&VwmnlyMAT^ST6{B+Z8+4Dk&my;u1a@~yM8%3r#iX1nn z_#bHcGwr?m^Si6lZ=aujhS8M8M>^^AIo$=E=XuWv-rE+<`=hL+XzApZ%K{4$V>?Vl zEY8p0E*bMZ=Ed6b?^~T5jM`f^cnKKEa7=99+QhU+saNrWz-7i6{!YOhf_%EH8B$E9 zoW2SkX~FJ{(j808+Z{Mt&MsvXVV$wU)3{@cQpse2PevxK9+M-P6&7AOcb&1A>4@6wnZae4{dqk@pv2Cs`x1)|q-9FF6<%5M zG4{yXvu(X6wS#{z`11VOrgg!aTh9hHT+Apr{Qa-lw%lj(`{im1!hVX~S=-;=e)!?C z=au5?UiVqgJ-0N#bKiMZ#|u1%FC3hfzUHrf+)?RXw<|ej%~gBltoxMX=Ktd`U?^T7 VUfb$^_ynjx_jL7hS?83{1OQodQj!1w diff --git a/client/dist/images/app_icons/generic_92.png b/client/dist/images/app_icons/generic_92.png new file mode 100644 index 0000000000000000000000000000000000000000..af3ed384144a0dfe981ada4b4e8ce74aa9e86767 GIT binary patch literal 575 zcmeAS@N?(olHy`uVBq!ia0vp^F(Ayr1|%Q9zZ3zaI14-?iy0WWg+Z8+Vb&Z8prB-l zYeY$Kep*R+Vo@rCV@iHfs)A>3VtQ&&YGO)d;mK4R1_s76o-U3d6}R5p-RpHYK&I{E zlDfd0p00z^g+*Vy_Asl5Z#{Q6W)G9Q`1*s=1)|2C@-E$Lbyt}7p4HNmdr@8V!=8VN zALq&b%a?^`UD&Z|RY%EDy$6-^)}O!Um$tq+z|X{U(qo;|ezo%Mrwey4*zo$)rZ-}) zg(6x%>N@0~t1Z~ww0z;Yh5If>Pdr$&Xg16D&OEU@;=3{n@hujJ0xTa46Pm{l^i&VE^+s3`0oYp*8Z3^<>KMj33|Wp-M-r?`EY+!TvW%lOIO`w zx@T%Gy&RXxvTLQ~9?lof_Ld$V2Y)<1 yr1NcylMuv#DH^K$P_7?ynpTX1B&t;ucLK6VSEBcZsSV5U>SNeB_op?(ZX zA{2pqT!Vou+G-Ce1VP{$HVtBVc`{k;H=nOU;Vt6nh7-GOo2KecrlHN43SXhks zeey+~I8-@7s9`!iB_)NH;z`3bade2yX44r=I+N)^B0RLIDgxDcsI<;g3J9i^Y7}Zh zfvZ4+A{v7y5gaNR>Bkh5>S0Yu zT$-fBRKyflHqGTSX5<49t`Xm5PwU6GBueGZ2Uop??xj}0 z5J;mEnyA42RB3wfMA5OwS%}`mBIn5MQj3ho*jJQKw=jMh@?H7m z&NsvEQSp=-$HDR?@f1mVSL-Z)*@{=6r8P&^^l#nd=sYBzSFjcUtK*Tj*SnS?zOwE; z%Pfv@q!pVhzPGLIIlV@BHRJx-#`>o8b@PDW%uI2ZQ3s$ee=aXAj_UtoEL$zi@&kaZ zXJr?%ckcJ{6dU!Ga*Sd>=>uUpd=R8zj zvp)aSe6LOM_^I5IL!Go!1v&nqPom%5;OoX?FXbbN@a`Bpz(pRJ`EAUK?Pb;5o}Zt1 zwx}`niG?r}GU@HB30O=y)LB~*zICNj18UO3h=79x?MKaw+)Z0dZ-?D;JHtv`_=T4# z=gC)GUcu`&?%=OiPDQ+T__8JUhk2XM9{^{MCbd5}R5fWN($ z)6W^9DQ>%GC-Gb(unGR3l#P$lgwHch@0 zqhEY8_ef&rSU>xrWmdbVQ9<1NNaw~z+i^*9nf29IHTAa1O~3+)@~NW{vI0FIGJm;q zEnq$&NZ4lux&_&$3_51Flyoy^^)=R+Pw>2yFFvny-EyV%jn%`LI@#h{HjC0XeE4Lg zr?Pmf^e;-nP?h#EbHQv;*|J&JpApLCg-4d3rNnK-Lw)u*JlddkEsBbgNaVrG3-6wk zxR(ViO_mqkT2+X#Yh8l2%g@Cae;8cv?J(zPuRLtd4qj8hQl4YQdrJoJ%x974fpt-n P;r|pU2tkhXqO<=78h)~H diff --git a/client/dist/images/app_icons/video_92.png b/client/dist/images/app_icons/video_92.png new file mode 100644 index 0000000000000000000000000000000000000000..b826dfb1ae3a974c636499285a7d71a5fabb7148 GIT binary patch literal 653 zcmeAS@N?(olHy`uVBq!ia0vp^F(Ayr1|%Q9zZ3zaI14-?iy0WWg+Z8+Vb&Z8prB-l zYeY$Kep*R+Vo@rCV@iHfs)A>3VtQ&&YGO)d;mK4R1_mZ6PZ!6Kid%2y8u~FginNJu z-h0O(PvM(d1#|xav2Q`QJ9#8*(&Y%N1W5% z=D5*zquv@rQBM1sL%(Z&ech|}&}zJOIcd-|>K zlvRJQ7Fu_BWqeXZkcgym%yh{^r3K|F=S=2#oIc~aT0U&LWH;ZYwtH@R7uc5~&q*ydG}USD%;noLZ)mvB~5zB7-!dIt++W66qKy(V!|U5kr;c zoOUb<09XiJHQ3eekG)2-7Qc zYAvZIaL}QMrV|E|4^ff+oq|UDP8Qd{EfZBRh6&X&5IXEgX%r}x{y$Wsd56}MiP%5! z{->}$$*jc~iI|=+=oD1rGJ+khv^=2>LrFrHL=f4dRg`5CB%#kFw4hKpQZC6)3dxSm9D1tt;kAxej?Rx5cN5jO@FMzUj>VgZ80as;f1SRqFkfkX;pU{M5j zlq(_>1`URjqg>@bT+WzW$3SSblxGp9Q|Dqzv5wGyBZ>3WW5>cAQ|~QTId&|pF}VyX z7>1+0|7!QBiJBqD_TBJOhj-(T;nd9QsNpUe*il5?nHv&OOp?jgwp<=JX=%XlSG`@f z(;v$g1^woiKInV!Yq{Itl;__r&TQR#xHfL$mkKn#Z5)?(24Q(t3j+tvOoe#*-ht zUNysYT%r8?_6PQp)w`dq0LxZPu@12xrlwZCRx0K+|3vVX*ezL+n+KzBBL!>sO}JB?moVtZ+Nw6CjuIs#+8)hSo0rP!{sEL)WIkZ2MLxClTboVF_P}clqpx=JmwizSy?@5gW*4M!!D=n8jRr zmmMAA2DyfMY;Ayx`T`V%lT*QmhA4mG%2mvkGv?^i3A8F-%{26)Ye{WoZn&zp^;hoH zXNJ7V-ygi{Dvr+%?EvN|0CrV?{oL%<+SM)To>wHFt9!!Ij`U~VyT)4j&FzIl!}tl) zgdl0?z-n$V;;Tq0PjbIkZMq|`gzK)jR`PI1Zbf!CZcy1OAJ zAfxa_rNmxr>i(+WQ*9kPuwdm(+PvNFYlq((iZ9#6_S={q^tCfGJ-PTssejt(DpQJg zlYVh4)~WpQO7vupfA8gzw0@O7Z0`q1ULz2lEh zlBNl!d?#5hC_9Wcg3 s{P?#=y72epVHF?j{ZhPY|2i)i5TATwsLd0kI{tT(*aXpMg0$kl0K+%lO8@`> diff --git a/client/src/images/app_icons/archive_92.png b/client/src/images/app_icons/archive_92.png new file mode 100644 index 0000000000000000000000000000000000000000..b1b06f27dfb227702b690233e2f1f67ba14054ef GIT binary patch literal 666 zcmeAS@N?(olHy`uVBq!ia0vp^F(Ayr1|%Q9zZ3zaI14-?iy0WWg+Z8+Vb&Z8prB-l zYeY$Kep*R+Vo@rCV@iHfs)A>3VtQ&&YGO)d;mK4R1_mZ|PZ!6Kid%1P@Ao_8AamfO zSO9a=iitZu^Z51IwNC!XJ10gaL}t#Nm^rdNle^D9;NBrMv!|X(D6m6m+ATgEKam~x zWB=Cf?<`!%W@p)dZ|m2?246hZ#av>3_4QZMm)8crZq9rrebZ{6%+IaQt7muqD_a?2 zwIW2zU9Tbim_^#F8_T$x7F^3P`F5FW-`r#Mso@unGwLrd{a39#{6Qo z*t0V4xOT15_Z7czb?(v|ZsCZR7xG6niwm2p=0;}Ds`*lV>&4-< z4I$0TbC(z|UBV(;@Q{IBrho~E?wsAR>?B9Jm*N3N^#gZ%qVKA$h+6w8Ks1<(k~KY$`;zXmAcvtayp-|G*H%liMH|6TeOA<CH9mh+#@K6|6^ z#c+t^Y@gN-@dz^d+Uwn4WIA4nlmTv?v-Pfb|2rKGKt*J#KUlODdWW_dnzq} P>59SA)z4*}Q$iB}>2EKo literal 0 HcmV?d00001 diff --git a/client/src/images/app_icons/audio_32.png b/client/src/images/app_icons/audio_32.png deleted file mode 100644 index c874d2d8bfd75e04a524f38aae023bd594478940..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2084 zcmbVNdsGu=77r4UN0EpisDRU81(jqn33*n)m;?fC5MnG~TgqfIfk=|cW`YR;XALzTK0%VtXu1%g7P}JRvzWCf=^J252PR!a8bdXpxFJx-9L8Dnfbo&e)o4D zzkBbQ-3jqAp6<)sNhFeItW+!~R>1MPx)5L7Y8@w*r6x(TX%nV4nPDSJ5~?sI3dHK* zbX1PQs_Z{pMAwl>&K8X#*_14MSAbwTI_%J)TXY5jO(Ly}vKU|_6Ey)!G+m>QppKqB zPX#op2x<~r#*i6AXof~=HKLoW@e0J6iSSj_s7PR)ML-zPp(Yrx=(KuVV2Pm4+7%Fc zhZv*+vnr;{2pz+^ydkiiEb28{s;Acla+ z0A4;+!kba07RbfXFMScG2x^AOWDtO$*=(kpS#->p4nllBA7n5=CX+^J(C}=%3AWJm zc<`JBF^VHbjlrbB^nk-6ti-ZR5mX}57b)lrGTAG`di*6(1ZAKFHh>VF0qS&)yk@m= zlN|j$jMr-8ifjW4%26E4G9pAh)WLILg1i6i$e~C?BiLxv5JiEtVhqXBp?XuSID$&t z&{Z0hfXiob82oUQhH_XuS~yG1q`^!CqCqgkWH1l};)e6)?7R*i9?j=4xNMGu87+b! z33~&JBN4Gh9Ed9tGQ=GI95z;un_xYH&iU35zS&~FkRjrV2<(RciWP{AC~U%v3JlZE zbwNS~X2S3c%m9c)vsDK|WiX=AJA|tpg?f><7&U6Pp{i&jrUPb~7HD1*1e&Z z^~4MriDB_+M?eyZydhRBR9LPyCCRkQB|bCF-%MD$dMk>*b<#>7$bH1YZy(KeEBASRw?nQQyFJ{w_nnl1GW8peLy)Ko z$dhNMNQ}E<(@)Q|-)WUSbR7c{d4~@^svE<8@gq+g|IMj} zRqyrSN_~nVx0)EP6hqH&*7ATT=9L`(pzG$z-^N?N%uV$YmkLOfhG^=!D>5f)WG=nk z*{M2n(t3a9gPW9rx|ybbH2rA5>vw<~^vKQTvK~m#F4#e?`y%~`cZsY8Tv0jy&{p@b zg(UJmEXZR~>PSnx+YZ)(s_M2LZK;pC%vRJ4P8?{p=Nq(7cH8E~d};^eJ$_^LF^K>4q<2?N{jtS=T6O2dpU>?|TDYRl z-1iavyT#8gG^iU_j*D%h+cepME)P7S{!-Ea`l)Ns74zTw+w;_x($O*UIsa*2?EFN4 z0D-TcsonFh{KR^<_ZQ{G7Iaqi@h3L7svE9#^m={Cvsx(A8%LT;x;*?Xg54EsJuJMS z{F4KFcStVDyXfwge=^m0g?Xz;nRevJ~u^PbcO^YXN=$0{#f3>dx9wNnI+4_xo@GYpqIqrP2c@Zll*zKX8H z{1D40x9b2JTLKFYOT36{;kT?f;|$uMRhscb@Dc6xl1AU^T4-4TJ!rc%@0D7I+O4A z&HO|?{toG{@Q{7*)N0CR?PYse3PVKuywkdOOUKkfY^b=Ab-en{yFV_G^j3NR#qpyp z>L1|9&oqdB;Z`NT5Ubtaqno=gVWNL`xhndZ^x%{BUS#NHODk351zO9 rc)8@OLw$bw?&y}E!)5Ctr-SQAmA*kW#EYvoq<#8t6C*wC diff --git a/client/src/images/app_icons/audio_92.png b/client/src/images/app_icons/audio_92.png new file mode 100644 index 0000000000000000000000000000000000000000..ffa9c6e37bcdb55fd2ba56cebeb10329cc9f7edc GIT binary patch literal 1278 zcmVCc~vhi{C^=ue)@Eq5HP=aqLUY}E+DtPGnb zlu7b2cgLmY@;mn&^ON)8TxrUv4xggW<0I}j=6k%v$brj*OwYKXKYK3IGqq1jQn<1| zH(*CXwpoH;_co5XHV|@eN`2C@H9@K`a95GGJE*(f2Pp3HfPs+g;M#M3ly?9ELDej<3KNKJvT1XC~=gQaMjRn^d*ABR==)nDS0 z`3U%(a5*74Q>$`_es*Vb@03h3_B^yfv_ZO%0kAVcHprTd>3?iu4wsC$nr^Pz*%=EA*JBJh_@PZ zu{F`zgianj^*AER@`T;Vj$?7x7F%-zGw?i;@>oIGzUc5cA%&#b1EbUF*M6p1U`v!^V8G*MN3!Jk&HDuv3U%7>@Yj$4N3+Yd7{+Rezan>G*dbxmMDMf&^6 zL^wY&I-s;{TiCBC^m+7ezX@&j87PyNuAuj+A}3cldc;ncw@L5=<(e#%xi5vgb=%-( zELktCmhM7J6R(5ZTeF*A zLbnV(rFt%f-9tB2wzF|R^tg;x5Dv0Uj1XW7v|rNMekGBMLKl%-@TX#U+XU(l_^@1>B#*wgik zE-w=X%9IEB=%j%MZrn*EFY|WuYIkKdyrQswd+}po1Nd%8u%~QYBLFWy(jtHN3c&TC zS?Hk18v^();J=yej{dQG3E@%>u%OYO-z;2~aen|09FPF{Qv*}07*qoM6N<$g6eu!$N&HU literal 0 HcmV?d00001 diff --git a/client/src/images/app_icons/document_32.png b/client/src/images/app_icons/document_32.png deleted file mode 100644 index 8296429d1c5f805972e80e1b4b947018e62ddd1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1783 zcmbVNc~BE)6kh`frD7w9cn-^g)+(FbO-M*m0)d1eqoEv8@piLWBqhnl%>ogv3Pf5t z?5GGRD0mEo(IHlBm9dpHwOGch9v!W<^(?4>P(U0Qk8Tib|8V@HJG1+J-}~P09l!V9 z?AFADI3Mq+-T(mj#LrVEvn%L&y~eU%OHNKdyG&tXQ<)ShjmgGo5{TAOS`v&m;%mrc z64$L;+e$_NfSXmXNo7*i3#0^P5;XXfRo%Rv9#GSIX{PVgv$* zRhSGJ^g5_ibt0&sXc83iL@J;|VShA~SKBs)8smo4B?^cn<{NF)f#NBDf0)qpMQObl*?O_tzM3rf;L z(0VhYr%a&BBCe$}85zVz`Z@)pS*?C!*kl>)E2<1|>yg8c7oquarUT4Ns@nNy8-q z5h@8IVNxUz!(oCnK8*7T490MbkD>&Dg@=hp?Ys>yR7#>zMYtrEuZqF2SYeDn6sr&_ zL|C{Y8dZuUqu6+pg~3e(IqF-_`X0fG--(qfXcA{AT0>EW(Jn|#rx?nTPMJZ4Vz}zy zY&A~kO)lX_u0p-eTS?OTEK;YUDI++{v{e6=C~#Du4HuInEDR6BSO$cASWA#%7#9i! z0)dv0@WpHvukpJ7%OJuAg}B<~KkYLrVtdlHeKQQ~;mtUaCU%Bsc39fnb5^l4=pV0) z)>vk3-3w1FEhMm8VX)?vvr->d50kn^PcRUa+dU+R1n!B5Js zUVOrCIy}@GJ+3-R)>|(+aO5k_(Ez);xI`3o@clY&q4Edgy1*?zX7tzxFL&+f$t1GN zu6WlkF3NBM1CX+V!Mn37pTb4Q`~upqmwEhIA$a1r`?dXL?);rZ33B^H+tEPJpjbB` zC~N)=yDT2+JQLYm7ShvFwRY3SWmlK1#}7m{_Y%)~?R)bZ^8gKpQw;gIdphplYZ~g? z^>pvt7a+7^br8TcUsu5u-<_11c*Hc8FI;snpO@~E-u$Yn2vRL;tlYx}1?kbzX9c3%SqP-ZH~5Yr;YY zz1)%C({^49JqifCU19?p)Dt{(VAVcHZ;`(FxvKQR(T~T^&Gkhqw~pa>CzkCz-LJoO zS7%G-=2aJj*G{q>Tm7i@d#=szJO`*HTQ|-Ctk39{os#3zT22PnxzG98P&iv&ab~$` zRa@8-?jpxPdFTANJ3}v2hptfpwSLjuG9M`V;UsAM-!FeP$W2~N!CQUTX37f}Id%l~ zL^$%d_Zu!>6x~`Mm9uZAuiFOXPC@-C+0ZLZ=q%f_Jg_Sf^y*(Ie>}~W8#eCTZs&|# zM}jw)TV9Z_kS~~7JUvV;=#Z88xH(_eTsQ;lX$b5Km@=Kyd@C&mI5>H{GdjpA`qCX` z6z>gq7JPAZN@aoS>}*}<3T3P957i*zGZ6GkcT;;--;~|I6?>$Av-CsFLKt6m;Bni* z!4C%U(;kZ(yDp?PN>+qI`1D}rKJD> diff --git a/client/src/images/app_icons/document_92.png b/client/src/images/app_icons/document_92.png new file mode 100644 index 0000000000000000000000000000000000000000..aa419ea211b7c26fb4e37072e65d9945be276143 GIT binary patch literal 655 zcmeAS@N?(olHy`uVBq!ia0vp^F(Ayr1|%Q9zZ3zaI14-?iy0WWg+Z8+Vb&Z8prB-l zYeY$Kep*R+Vo@rCV@iHfs)A>3VtQ&&YGO)d;mK4R1_mY>PZ!6Kid%1P@Ao?tAky%0 z+9EcVK;^>cl5=EaYuMD;;}4uX>ezblgaxFey_MvmrrE_Z9HBn489y@)w3QkV@_26OQ z+=K2r3Jkc|RoLVg9@3s(xE|r)xd+od_Wzyr#kluhsZwgI{{=6gmuxxbTUs^uw{o>I zHJ?{uw|LNSSt7V_wY2seXD&v&rG`HYeiV2p9$-`lBlbBAP$W~p1VaZn3!n(Bs=4Q1 z$kms1rtw+%+$oL literal 0 HcmV?d00001 diff --git a/client/src/images/app_icons/folder_icon_large.png b/client/src/images/app_icons/folder_icon_large.png new file mode 100644 index 0000000000000000000000000000000000000000..545505b7748e31afcd4ff4367f9cedbb7f991d10 GIT binary patch literal 495 zcmeAS@N?(olHy`uVBq!ia0vp^X+T`X!3HFKPpdTnDb50q$YKTtZeb8+WSBKa0w^e1 z;u=vBoS#-wo>-L1;Fyx1l&avFo0y&&l$w}QS$HzlhJk^x#?!?yq~g|_TkHJ}JIEaP zC>zVZnz8pNj|ijbc7X#*=?DCj8SKrO@*5s7K47ij(wTHXIN?WfmCPRIllosi`|i5+ z&2DdYapWn>?;`6}of+H`4sh^DGzv->FfqF&u(0(U_%r>|i)SA>?5hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|8hm3bwJ6}oxF$}kgLQj3#|G7CyF^YauyCMG83 zmzLNn0bL65LT&-v*t}wBFaZNhzap_f-%!s0*lEl2^R8JRMC7?NanVBh8MnURA3w>B>(dpvkB(v+$3V|43Mp;u`-5RES zjPeW&O7^TF$jKe>*_R{&VwmnlyMAT^ST6{B+Z8+4Dk&my;u1a@~yM8%3r#iX1nn z_#bHcGwr?m^Si6lZ=aujhS8M8M>^^AIo$=E=XuWv-rE+<`=hL+XzApZ%K{4$V>?Vl zEY8p0E*bMZ=Ed6b?^~T5jM`f^cnKKEa7=99+QhU+saNrWz-7i6{!YOhf_%EH8B$E9 zoW2SkX~FJ{(j808+Z{Mt&MsvXVV$wU)3{@cQpse2PevxK9+M-P6&7AOcb&1A>4@6wnZae4{dqk@pv2Cs`x1)|q-9FF6<%5M zG4{yXvu(X6wS#{z`11VOrgg!aTh9hHT+Apr{Qa-lw%lj(`{im1!hVX~S=-;=e)!?C z=au5?UiVqgJ-0N#bKiMZ#|u1%FC3hfzUHrf+)?RXw<|ej%~gBltoxMX=Ktd`U?^T7 VUfb$^_ynjx_jL7hS?83{1OQodQj!1w diff --git a/client/src/images/app_icons/generic_92.png b/client/src/images/app_icons/generic_92.png new file mode 100644 index 0000000000000000000000000000000000000000..af3ed384144a0dfe981ada4b4e8ce74aa9e86767 GIT binary patch literal 575 zcmeAS@N?(olHy`uVBq!ia0vp^F(Ayr1|%Q9zZ3zaI14-?iy0WWg+Z8+Vb&Z8prB-l zYeY$Kep*R+Vo@rCV@iHfs)A>3VtQ&&YGO)d;mK4R1_s76o-U3d6}R5p-RpHYK&I{E zlDfd0p00z^g+*Vy_Asl5Z#{Q6W)G9Q`1*s=1)|2C@-E$Lbyt}7p4HNmdr@8V!=8VN zALq&b%a?^`UD&Z|RY%EDy$6-^)}O!Um$tq+z|X{U(qo;|ezo%Mrwey4*zo$)rZ-}) zg(6x%>N@0~t1Z~ww0z;Yh5If>Pdr$&Xg16D&OEU@;=3{n@hujJ0xTa46Pm{l^i&VE^+s3`0oYp*8Z3^<>KMj33|Wp-M-r?`EY+!TvW%lOIO`w zx@T%Gy&RXxvTLQ~9?lof_Ld$V2Y)<1 yr1NcylMuv#DH^K$P_7?ynpTX1B&t;ucLK6VSEBcZsSV5U>SNeB_op?(ZX zA{2pqT!Vou+G-Ce1VP{$HVtBVc`{k;H=nOU;Vt6nh7-GOo2KecrlHN43SXhks zeey+~I8-@7s9`!iB_)NH;z`3bade2yX44r=I+N)^B0RLIDgxDcsI<;g3J9i^Y7}Zh zfvZ4+A{v7y5gaNR>Bkh5>S0Yu zT$-fBRKyflHqGTSX5<49t`Xm5PwU6GBueGZ2Uop??xj}0 z5J;mEnyA42RB3wfMA5OwS%}`mBIn5MQj3ho*jJQKw=jMh@?H7m z&NsvEQSp=-$HDR?@f1mVSL-Z)*@{=6r8P&^^l#nd=sYBzSFjcUtK*Tj*SnS?zOwE; z%Pfv@q!pVhzPGLIIlV@BHRJx-#`>o8b@PDW%uI2ZQ3s$ee=aXAj_UtoEL$zi@&kaZ zXJr?%ckcJ{6dU!Ga*Sd>=>uUpd=R8zj zvp)aSe6LOM_^I5IL!Go!1v&nqPom%5;OoX?FXbbN@a`Bpz(pRJ`EAUK?Pb;5o}Zt1 zwx}`niG?r}GU@HB30O=y)LB~*zICNj18UO3h=79x?MKaw+)Z0dZ-?D;JHtv`_=T4# z=gC)GUcu`&?%=OiPDQ+T__8JUhk2XM9{^{MCbd5}R5fWN($ z)6W^9DQ>%GC-Gb(unGR3l#P$lgwHch@0 zqhEY8_ef&rSU>xrWmdbVQ9<1NNaw~z+i^*9nf29IHTAa1O~3+)@~NW{vI0FIGJm;q zEnq$&NZ4lux&_&$3_51Flyoy^^)=R+Pw>2yFFvny-EyV%jn%`LI@#h{HjC0XeE4Lg zr?Pmf^e;-nP?h#EbHQv;*|J&JpApLCg-4d3rNnK-Lw)u*JlddkEsBbgNaVrG3-6wk zxR(ViO_mqkT2+X#Yh8l2%g@Cae;8cv?J(zPuRLtd4qj8hQl4YQdrJoJ%x974fpt-n P;r|pU2tkhXqO<=78h)~H diff --git a/client/src/images/app_icons/video_92.png b/client/src/images/app_icons/video_92.png new file mode 100644 index 0000000000000000000000000000000000000000..b826dfb1ae3a974c636499285a7d71a5fabb7148 GIT binary patch literal 653 zcmeAS@N?(olHy`uVBq!ia0vp^F(Ayr1|%Q9zZ3zaI14-?iy0WWg+Z8+Vb&Z8prB-l zYeY$Kep*R+Vo@rCV@iHfs)A>3VtQ&&YGO)d;mK4R1_mZ6PZ!6Kid%2y8u~FginNJu z-h0O(PvM(d1#|xav2Q`QJ9#8*(&Y%N1W5% z=D5*zquv@rQBM1sL%(Z&ech|}&}zJOIcd-|>K zlvRJQ7Fu_BWqeXZkcgym%yh{^r3K|F=S=2#oIc~aT0U&LWH;ZY