scrivito_ui 1.13.0.rc1 → 1.13.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -152,7 +152,7 @@ var o=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,3
152
152
  * MIT License: http://getify.mit-license.org
153
153
  * @license
154
154
  */
155
- "use strict";!function(i,o,a){o[i]=o[i]||a(),void 0!==e&&e.exports?e.exports=o[i]:void 0!==(r=function(){return o[i]}.call(t,n,t,e))&&(e.exports=r)}("Promise",void 0!==i?i:void 0,function(){function e(e,t){p.add(e,t),f||(f=_(p.drain))}function t(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function n(){for(var e=0;e<this.chain.length;e++)r(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function r(e,n,r){var i,o;try{!1===n?r.reject(e.msg):(i=!0===n?e.msg:n.call(void 0,e.msg),i===r.promise?r.reject(TypeError("Promise-chain cycle")):(o=t(i))?o.call(i,r.resolve,r.reject):r.resolve(i))}catch(e){r.reject(e)}}function i(r){var o,s=this;if(!s.triggered){s.triggered=!0,s.def&&(s=s.def);try{(o=t(r))?e(function(){var e=new u(s);try{o.call(r,function(){i.apply(e,arguments)},function(){a.apply(e,arguments)})}catch(t){a.call(e,t)}}):(s.msg=r,s.state=1,s.chain.length>0&&e(n,s))}catch(e){a.call(new u(s),e)}}}function a(t){var r=this;r.triggered||(r.triggered=!0,r.def&&(r=r.def),r.msg=t,r.state=2,r.chain.length>0&&e(n,r))}function s(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)}(i)}function u(e){this.def=e,this.triggered=!1}function l(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function c(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var r=new l(this);this.then=function(t,i){var o={success:"function"!=typeof t||t,failure:"function"==typeof i&&i};return o.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");o.resolve=e,o.reject=t}),r.chain.push(o),0!==r.state&&e(n,r),o.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){i.call(r,e)},function(e){a.call(r,e)})}catch(e){a.call(r,e)}}var d,f,p,h=Object.prototype.toString,_=void 0!==o?function(e){return o(e)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){d=function(e,t,n){return e[t]=n,e}}p=function(){function e(e,t){this.fn=e,this.self=t,this.next=void 0}var t,n,r;return{add:function(i,o){r=new e(i,o),n?n.next=r:t=r,n=r,r=void 0},drain:function(){var e=t;for(t=n=f=void 0;e;)e.fn.call(e.self),e=e.next}}}();var m=d({},"constructor",c,!1);return c.prototype=m,d(m,"__NPO__",0,!1),d(c,"resolve",function(e){var t=this;return e&&"object"==typeof e&&1===e.__NPO__?e:new t(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),d(c,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),d(c,"all",function(e){var t=this;return"[object Array]"!=h.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,o=Array(i),a=0;s(t,e,function(e,t){o[e]=t,++a===i&&n(o)},r)})}),d(c,"race",function(e){var t=this;return"[object Array]"!=h.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");s(t,e,function(e,t){n(t)},r)})}),c})}).call(t,function(){return this}(),n(104).setImmediate)},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n,i){r(this,e),this._kit=t,this._ui=n,this._options=i}return i(e,[{key:"assetPath",value:function(e){var t=this._options.assetsUrl+"/"+e,n=this._ui.options.ui.assetPathResolver;return void 0!==n&&(t=n(t)),t}},{key:"translate",value:function(e){return this._ui.translate(e)}}]),e}();t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("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&&(e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;s=l=u=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=o,n=a,r=!0}},u=n(72),l=r(u),c=n(5),d=r(c),f=n(49),p=r(f),h=function(e){function t(e,n){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._element=e,this._options=d.default.defaults(n,{minValue:0,maxValue:1,defaultValue:0}),this._value=this._options.defaultValue,this._sliderElement=this._element.querySelector(".imglykit-slider-slider"),this._dotElement=this._element.querySelector(".imglykit-slider-dot"),this._centerDotElement=this._element.querySelector(".imglykit-slider-center-dot"),this._fillElement=this._element.querySelector(".imglykit-slider-fill"),this._backgroundElement=this._element.querySelector(".imglykit-slider-background"),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onCenterDotClick=this._onCenterDotClick.bind(this),this._onBackgroundClick=this._onBackgroundClick.bind(this),this._backgroundElement.addEventListener("click",this._onBackgroundClick),this._fillElement.addEventListener("click",this._onBackgroundClick),this._handleDot()}return o(t,e),a(t,[{key:"setValue",value:function(e){this._value=e;var t=this._options,n=t.maxValue,r=t.minValue,i=n-r,o=(e-r)/i,a=this._sliderElement.offsetWidth;this._setX(a*o)}},{key:"_setX",value:function(e){this._xPosition=e,this._dotElement.style.left=e+"px";var t=this._sliderElement.offsetWidth/2,n=e-t;this._fillElement.style.width=Math.abs(n)+"px",this._fillElement.style.left=n<0?t-Math.abs(n)+"px":t+"px"}},{key:"_handleDot",value:function(){this._dotElement.addEventListener("mousedown",this._onMouseDown),this._dotElement.addEventListener("touchstart",this._onMouseDown),this._centerDotElement&&this._centerDotElement.addEventListener("click",this._onCenterDotClick)}},{key:"_onCenterDotClick",value:function(){this.setValue(this._options.defaultValue),this.emit("update",this._value)}},{key:"_onBackgroundClick",value:function(e){var t=d.default.getEventPosition(e),n=this._sliderElement.getBoundingClientRect();n=new p.default(n.left,n.y);var r=t.clone().subtract(n);this._setX(r.x),this._updateValue()}},{key:"_onMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button){e.preventDefault();var t=d.default.getEventPosition(e);document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("touchmove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("touchend",this._onMouseUp);var n=this._dotElement.getBoundingClientRect(),r=this._sliderElement.getBoundingClientRect();this._initialSliderX=n.left-r.left,this._initialMousePosition=t}}},{key:"_onMouseMove",value:function(e){e.preventDefault();var t=d.default.getEventPosition(e),n=t.subtract(this._initialMousePosition),r=.5*this._dotElement.offsetWidth,i=this._initialSliderX+n.x+r,o=this._sliderElement.offsetWidth;i=Math.max(0,Math.min(i,o)),this._setX(i),this._updateValue()}},{key:"_updateValue",value:function(){var e=this._sliderElement.offsetWidth,t=this._options,n=t.minValue,r=t.maxValue,i=this._xPosition/e,o=n+(r-n)*i;this.emit("update",o)}},{key:"_onMouseUp",value:function(){document.removeEventListener("mousemove",this._onMouseMove),document.removeEventListener("touchmove",this._onMouseMove),document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("touchend",this._onMouseUp)}}],[{key:"template",get:function(){return function(e){return'<div class="imglykit-slider" id="'+(void 0===e.id?"":e.id)+'"> <div class="imglykit-slider-minus"> <img src="'+e.helpers.assetPath("ui/night/slider/minus.png")+'" /> </div> <div class="imglykit-slider-slider"> <div class="imglykit-slider-content"> <div class="imglykit-slider-background"></div> <div class="imglykit-slider-fill"></div> <div class="imglykit-slider-center-dot"></div> <div class="imglykit-slider-dot"></div> </div> </div> <div class="imglykit-slider-plus"> <img src="'+e.helpers.assetPath("ui/night/slider/plus.png")+'" /> </div></div>'}}}]),t}(l.default);t.default=h,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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&&(e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(101),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(e){function t(){r(this,t),null!=e&&e.apply(this,arguments)}return i(t,e),o(t,[{key:"_setX",value:function(e){this._xPosition=e,this._dotElement.style.left=e+"px",this._fillElement.style.width=e+"px"}}],[{key:"template",get:function(){return function(e){return'<div class="imglykit-slider" id="'+(void 0===e.id?"":e.id)+'"> <div class="imglykit-slider-minus"> <img src="'+e.helpers.assetPath("ui/night/slider/minus.png")+'" /> </div> <div class="imglykit-slider-slider"> <div class="imglykit-slider-content"> <div class="imglykit-slider-background"></div> <div class="imglykit-slider-fill"></div> <div class="imglykit-slider-dot"></div> </div> </div> <div class="imglykit-slider-plus"> <img src="'+e.helpers.assetPath("ui/night/slider/plus.png")+'" /> </div></div>'}}}]),t}(s.default);t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;s=l=u=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=o,n=a,r=!0}},l=n(72),c=r(l),d=n(5),f=r(d),p=n(6),h=r(p),_=n(49),m=r(_),v=function(e){function t(e,n){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._ui=e,this._element=n,this._visible=!1,this._loaded=!1,this._overlay=this._element.querySelector(".imglykit-color-picker-overlay"),this._currentColorCanvas=this._element.querySelector(".imglykit-color-picker-color"),this._alphaCanvas=this._element.querySelector("canvas.imglykit-color-picker-alpha"),this._alphaKnob=this._element.querySelector(".imglykit-color-picker-alpha-container .imglykit-transparent-knob"),this._hueCanvas=this._element.querySelector("canvas.imglykit-color-picker-hue"),this._hueKnob=this._element.querySelector(".imglykit-color-picker-hue-container .imglykit-transparent-knob"),this._saturationCanvas=this._element.querySelector("canvas.imglykit-color-picker-saturation"),this._saturationKnob=this._element.querySelector(".imglykit-color-picker-saturation-container .imglykit-transparent-knob"),this._transparencyImage=new Image,this._transparencyImage.src=e.helpers.assetPath("ui/night/transparency.png"),this._transparencyImage.addEventListener("load",this._onTransparencyImageLoad.bind(this)),this._onAlphaCanvasDown=this._onAlphaCanvasDown.bind(this),this._onAlphaCanvasDrag=this._onAlphaCanvasDrag.bind(this),this._onAlphaCanvasUp=this._onAlphaCanvasUp.bind(this),this._onHueCanvasDown=this._onHueCanvasDown.bind(this),this._onHueCanvasDrag=this._onHueCanvasDrag.bind(this),this._onHueCanvasUp=this._onHueCanvasUp.bind(this),this._onSaturationCanvasDown=this._onSaturationCanvasDown.bind(this),this._onSaturationCanvasDrag=this._onSaturationCanvasDrag.bind(this),this._onSaturationCanvasUp=this._onSaturationCanvasUp.bind(this),this._onElementClick=this._onElementClick.bind(this),this._handleToggle(),this._handleAlphaKnob(),this._handleHueKnob(),this._handleSaturationKnob()}return a(t,e),s(t,[{key:"_onTransparencyImageLoad",value:function(){this._loaded=!0,this._render()}},{key:"_handleToggle",value:function(){this._element.addEventListener("click",this._onElementClick)}},{key:"_onElementClick",value:function(e){e.target!==this._element&&e.target!==this._currentColorCanvas||(this._visible?(this.hide(),this.emit("hide")):(this.show(),this.emit("show")))}},{key:"hide",value:function(){this._overlay.classList.remove("imglykit-visible"),this._visible=!1}},{key:"show",value:function(){this._overlay.classList.add("imglykit-visible"),this._visible=!0}},{key:"setValue",value:function(e){this._value=e.clone();var t=this._value.toHSV(),n=i(t,3),r=n[0],o=n[1],a=n[2];this._hsvColor={h:r,s:o,v:a},this._positionKnobs(),this._render()}},{key:"_positionKnobs",value:function(){this._positionAlphaKnob(),this._positionHueKnob(),this._positionSaturationKnob()}},{key:"_positionAlphaKnob",value:function(){var e=this._alphaCanvas,t=new m.default(e.width,e.height),n=this._value.a*t.x;this._alphaKnob.style.left=n+"px"}},{key:"_positionHueKnob",value:function(){var e=this._hueCanvas,t=new m.default(e.width,e.height),n=this._hsvColor.h*t.y;this._hueKnob.style.top=n+"px"}},{key:"_positionSaturationKnob",value:function(){var e=this._saturationCanvas,t=new m.default(e.width,e.height),n=this._hsvColor.s*t.x;this._saturationKnob.style.left=n+"px";var r=(1-this._hsvColor.v)*t.y;this._saturationKnob.style.top=r+"px"}},{key:"_render",value:function(){this._loaded&&(this._renderCurrentColor(),this._renderAlpha(),this._renderHue(),this._renderSaturation())}},{key:"_renderCurrentColor",value:function(){var e=this._currentColorCanvas,t=e.getContext("2d"),n=t.createPattern(this._transparencyImage,"repeat");t.rect(0,0,e.width,e.height),t.fillStyle=n,t.fill(),t.fillStyle=this._value.toRGBA(),t.fill()}},{key:"_renderAlpha",value:function(){var e=this._alphaCanvas,t=e.getContext("2d"),n=t.createPattern(this._transparencyImage,"repeat");t.rect(0,0,e.width,e.height),t.fillStyle=n,t.fill();var r=t.createLinearGradient(0,0,e.width,e.height),i=this._value.clone();i.a=0,r.addColorStop(0,i.toRGBA()),r.addColorStop(1,this._value.toHex()),t.fillStyle=r,t.fill()}},{key:"_renderHue",value:function(){for(var e=this._hueCanvas,t=e.getContext("2d"),n=new h.default,r=0;r<e.height;r++){var i=r/e.height;n.fromHSV(i,1,1),t.strokeStyle=n.toRGBA(),t.beginPath(),t.moveTo(0,r),t.lineTo(e.width,r),t.stroke()}}},{key:"_renderSaturation",value:function(){for(var e=this._saturationCanvas,t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),r=new h.default(1,0,0,1),i=0;i<e.height;i++)for(var o=(e.height-i)/e.height,a=0;a<e.width;a++){var s=a/e.width;r.fromHSV(this._hsvColor.h,s,o);var u=r.r,l=r.g,c=r.b,d=r.a,f=4*(i*e.width+a);n.data[f]=255*u,n.data[f+1]=255*l,n.data[f+2]=255*c,n.data[f+3]=255*d}t.putImageData(n,0,0)}},{key:"_handleAlphaKnob",value:function(){this._alphaCanvas.addEventListener("mousedown",this._onAlphaCanvasDown),this._alphaCanvas.addEventListener("touchstart",this._onAlphaCanvasDown)}},{key:"_onAlphaCanvasDown",value:function(e){e.preventDefault(),this._onAlphaCanvasDrag(e),document.addEventListener("mousemove",this._onAlphaCanvasDrag),document.addEventListener("touchmove",this._onAlphaCanvasDrag),document.addEventListener("mouseup",this._onAlphaCanvasUp),document.addEventListener("touchend",this._onAlphaCanvasUp)}},{key:"_onAlphaCanvasDrag",value:function(e){e.preventDefault();var t=this._alphaCanvas,n=new m.default(t.width,t.height),r=f.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,a=i.top,s=new m.default(o,a),u=r.subtract(s);u.clamp(new m.default(0,0),n),this._alphaKnob.style.left=u.x+"px",this._value.a=u.x/n.x,this._updateColor()}},{key:"_onAlphaCanvasUp",value:function(){document.removeEventListener("mousemove",this._onAlphaCanvasDrag),document.removeEventListener("touchmove",this._onAlphaCanvasDrag),document.removeEventListener("mouseup",this._onAlphaCanvasUp),document.removeEventListener("touchend",this._onAlphaCanvasUp)}},{key:"_handleHueKnob",value:function(){this._hueCanvas.addEventListener("mousedown",this._onHueCanvasDown),this._hueCanvas.addEventListener("touchstart",this._onHueCanvasDown)}},{key:"_onHueCanvasDown",value:function(e){e.preventDefault(),this._onHueCanvasDrag(e),document.addEventListener("mousemove",this._onHueCanvasDrag),document.addEventListener("touchmove",this._onHueCanvasDrag),document.addEventListener("mouseup",this._onHueCanvasUp),document.addEventListener("touchend",this._onHueCanvasUp)}},{key:"_onHueCanvasDrag",value:function(e){e.preventDefault();var t=this._hueCanvas,n=new m.default(t.width,t.height),r=f.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,a=i.top,s=new m.default(o,a),u=r.subtract(s);u.clamp(new m.default(0,0),n),this._hueKnob.style.top=u.y+"px",u.divide(n),this._hsvColor.h=u.y,this._updateColor()}},{key:"_onHueCanvasUp",value:function(){document.removeEventListener("mousemove",this._onHueCanvasDrag),document.removeEventListener("touchmove",this._onHueCanvasDrag),document.removeEventListener("mouseup",this._onHueCanvasUp),document.removeEventListener("touchend",this._onHueCanvasUp)}},{key:"_handleSaturationKnob",value:function(){this._saturationCanvas.addEventListener("mousedown",this._onSaturationCanvasDown),this._saturationCanvas.addEventListener("touchstart",this._onSaturationCanvasDown)}},{key:"_onSaturationCanvasDown",value:function(e){e.preventDefault(),this._onSaturationCanvasDrag(e),document.addEventListener("mousemove",this._onSaturationCanvasDrag),document.addEventListener("touchmove",this._onSaturationCanvasDrag),document.addEventListener("mouseup",this._onSaturationCanvasUp),document.addEventListener("touchend",this._onSaturationCanvasUp)}},{key:"_onSaturationCanvasDrag",value:function(e){e.preventDefault();var t=this._saturationCanvas,n=new m.default(t.width,t.height),r=f.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,a=i.top,s=new m.default(o,a),u=r.subtract(s);u.clamp(0,t.width),this._saturationKnob.style.left=u.x+"px",this._saturationKnob.style.top=u.y+"px",u.divide(n),this._hsvColor.s=u.x,this._hsvColor.v=1-u.y,this._updateColor()}},{key:"_onSaturationCanvasUp",value:function(){document.removeEventListener("mousemove",this._onSaturationCanvasDrag),document.removeEventListener("touchmove",this._onSaturationCanvasDrag),document.removeEventListener("mouseup",this._onSaturationCanvasUp),document.removeEventListener("touchend",this._onSaturationCanvasUp)}},{key:"_updateColor",value:function(){this._value.fromHSV(this._hsvColor.h,this._hsvColor.s,this._hsvColor.v),this.emit("update",this._value),this._render()}}],[{key:"template",get:function(){return function(e){return'<div class="imglykit-color-picker" id="'+(void 0===e.id?"":e.id)+'"> <canvas class="imglykit-color-picker-color" width="34" height="34"></canvas> <div class="imglykit-controls-item-label">'+(void 0===e.label?"":e.label)+'</div> <div class="imglykit-color-picker-overlay"> <div class="imglykit-color-picker-alpha-container"> <canvas class="imglykit-color-picker-alpha" width="200" height="30"></canvas> <div class="imglykit-transparent-knob"></div> </div> <div class="imglykit-color-picker-saturation-container"> <canvas class="imglykit-color-picker-saturation" width="160" height="160"></canvas> <div class="imglykit-transparent-knob"></div> </div> <div class="imglykit-color-picker-hue-container"> <canvas class="imglykit-color-picker-hue" width="30" height="160"></canvas> <div class="imglykit-transparent-knob"></div> </div> </div></div>'}}}]),t}(c.default);t.default=v,e.exports=t.default},function(e,t,n){(function(e,r){function i(e,t){this._id=e,this._clearFn=t}var o=n(105).nextTick,a=Function.prototype.apply,s=Array.prototype.slice,u={},l=0;t.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=l++,r=!(arguments.length<2)&&s.call(arguments,1);return u[n]=!0,o(function(){u[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete u[e]}}).call(t,n(104).setImmediate,n(104).clearImmediate)},function(e,t,n){function r(){c=!1,s.length?l=s.concat(l):d=-1,l.length&&i()}function i(){if(!c){var e=setTimeout(r);c=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s[d].run();d=-1,t=l.length}s=null,c=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function a(){}var s,u=e.exports={},l=[],c=!1,d=-1;u.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new o(e,t)),1!==l.length||c||setTimeout(i,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}}])})},function(e,t,n){"use strict";function r(){return a||i(),a}function i(){a=$('meta[name="scrivito-asset-url-base"]').attr("content")||o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o="https://assets.scrivito.com/sjs/1.0.0-48-g68a78f12",a=void 0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e?e.title()||"":""}function o(e){return(e&&"_blank"===e.target()?"active":"")+" scrivito_link_icon scrivito_icon_new_window"}function a(e){var t=e.onChange,n=e.onToggle,r=e.targetClass,i=e.title;return React.createElement("div",{className:"scrivito_link_content"},React.createElement("span",{className:"scrivito_link_icon scrivito_icon_title",title:scrivito.t("link_item_component.link.title_placeholder")}),React.createElement("input",{type:"text",placeholder:scrivito.t("link_item_component.link.title_placeholder"),onChange:t,value:i}),React.createElement("span",{className:r+" scrivito_icon_new_window_clickable",onClick:n,title:scrivito.t("link_item_component.link.new_tab")}))}function s(e){var t=e.targetClass,n=e.title;return React.createElement("div",{className:"scrivito_link_content"},React.createElement("span",{className:"scrivito_link_icon scrivito_icon_title",title:scrivito.t("link_item_component.link.title_placeholder")}),React.createElement("span",{className:"read_only"},n),React.createElement("span",{className:t,title:scrivito.t("link_item_component.link.new_tab")}))}function u(e){var t=e.link,n=e.clear;return t?React.createElement("span",{className:"scrivito_icon scrivito_icon_cancel",onClick:n}):null}function l(e){var t=e.onClick;return React.createElement("div",{className:"scrivito_link_action",onClick:t,title:scrivito.t("link_item_component.link.delete")},React.createElement("i",{className:"scrivito_icon scrivito_icon_trash"}))}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=n(6),f=r(d),p=n(3),h=r(p),_=n(35),m=r(_),v=n(63),g=n(76),y=r(g),b=n(122),w=r(b),k=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.LinkItem",propTypes:{link:f.default.instanceOf(m.default),readOnly:f.default.bool.isRequired,onChange:f.default.func.isRequired},render:function(){return this.props.readOnly?React.createElement(M,{link:this.props.link}):React.createElement("div",{className:"scrivito_link_item"},this._isLinklistItem()&&React.createElement("div",{className:"scrivito_link_drag"}),React.createElement("div",{className:"scrivito_link_content"},React.createElement("span",{className:"scrivito_link_icon scrivito_icon_link",title:scrivito.t("link_item_component.link.url_placeholder")}),this._renderDestinationInput(),React.createElement(u,{clear:this._onDelete,link:this.props.link}),React.createElement("span",{className:"scrivito_link_icon scrivito_icon_content_browser",onClick:this._selectObj})),React.createElement(T,{link:this.props.link,onChange:this._onTitleChange,onToggle:this._onTargetToggle}),this._showItemDeleteButton()&&React.createElement(l,{onClick:this.props.onDelete}))},_onDelete:function(e){e.preventDefault(),e.stopPropagation(),this.props.onChange(null)},_onTargetToggle:function(){var e="_blank"===this.props.link.target()?"":"_blank";this._signalUpdate({_target:e})},_onTitleChange:function(e){this._signalUpdate({_title:e.target.value})},_onUrlChange:function(e){var t=e.target.value;this._signalUpdate({_url:t,_objId:null})},_selectObj:function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=this._isInternal()?this.props.link.objId():"",r=n?[n]:[];(0,w.default)({selection:r,selectionMode:"single",standAlone:!1}).then(function(e){var n=e.isSelected,r=e.selection;if(n){var i=c(r,1),o=i[0],a=o?{_url:null,_objId:o}:{};t._signalUpdate(a)}})},_signalUpdate:function(e){if(!this.props.link)return void this.props.onChange(this._buildNewLink(e));if(!e._url&&!e._objId&&void 0===e._title&&void 0===e._target)return void this.props.onChange(null);var t=this.props.link;for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);this.props.onChange(t)},_renderDestinationInput:function(){return this._isInternal()?React.createElement(E,{link:this.props.link,select:this._selectObj}):React.createElement(x,{link:this.props.link,onChange:this._onUrlChange})},_buildNewLink:function(e){return new m.default({obj:e._objId?h.default.get(e._objId):null,target:"",url:e._url||""})},_isInternal:function(){return this.props.link&&this.props.link.isInternal()},_showItemDeleteButton:function(){return this._isLinklistItem()},_isLinklistItem:function(){return!!this.props.onDelete}}),M=(0,y.default)(function(e){var t=e.link;return React.createElement("div",{className:"scrivito_link_item"},React.createElement("div",{className:"scrivito_link_content"},React.createElement("span",{className:"scrivito_link_icon scrivito_icon_link",title:scrivito.t("link_item_component.link.url_placeholder")}),React.createElement(C,{link:t})),React.createElement(s,{targetClass:o(t),title:i(t)}))}),C=(0,y.default)(function(e){var t=e.link;return t?t.isInternal()?React.createElement(E,{link:t}):React.createElement("span",{className:"read_only"},t.url()):React.createElement("span",{className:"read_only"})}),E=(0,y.default)(function(e){var t=e.link,n=e.select;return React.createElement("span",{className:"read_only scrivito_link_description",onClick:n},React.createElement("span",{className:"scrivito_badge"},scrivito.t("link_item_component.link.internal")),React.createElement("span",{className:"scrivito_margin"}),(0,v.titleForObj)(t.obj()))}),x=(0,y.default)(function(e){var t=e.link,n=e.onChange;return React.createElement("input",{type:"text",placeholder:scrivito.t("link_item_component.link.url_placeholder"),onChange:n,value:t&&t.url()||""})}),T=(0,y.default)(function(e){var t=e.link,n=e.onChange,r=e.onToggle,u=o(t);return t?React.createElement(a,{onChange:n,onToggle:r,targetClass:u,title:i(t)}):React.createElement(s,{targetClass:u,title:""})});t.default=k},function(e,t,n){"use strict";function r(e,t){var n={};(0,i.each)(e,function(t,r){var i=u[r]||r;r!==i&&e.hasOwnProperty(i)?n[i]=e[i]:n[i]=t});var r=n.filters||t,o=n.filterContext||{};return delete n.filterContext,r&&(n.filters="function"==typeof r?r(o):r),(0,i.isEmpty)(n.filters)&&(n.filters=o._image?s.DEFINITION_FOR_IMAGE_CONTEXT:s.DEFAULT_DEFINITION_FOR_RAILS),n.inferCreationPresets=!1,n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(220),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=n(519),u={base_query:"baseQuery",base_preset:"basePreset",filter_context:"filterContext",selection_mode:"selectionMode"};t.default={open:function(e){return a.default.open(r(e,this.filters))},set base_preset(e){a.default.basePreset=e},get base_preset(){return a.default.basePreset},set base_query(e){a.default.baseQuery=e},get base_query(){return a.default.baseQuery},reset:function(){delete this.filters}}},function(e,t,n){var r,i,o,a;a=n(11),o=n(705),i=n(706),r=a({displayName:"DialogApp",dialogClassName:function(){return"scrivito_prompt_dialog scrivito_center_dialog scrivito_modal_prompt scrivito_show scrivito_red"},closeButtonText:function(){return"Close"},resolveAndClose:function(e){return this.props.promise.resolve(),this.closeDialog(e)},rejectAndClose:function(e){return this.props.promise.reject(),this.closeDialog(e)},closeDialog:function(e){return e.preventDefault(),ReactDOM.unmountComponentAtNode(ReactDOM.findDOMNode(this.props.container)),this.props.container.parentNode.removeChild(this.props.container)},render:function(){return React.createElement("div",null,React.createElement("div",{className:"scrivito_overlay two scrivito_show",style:{zIndex:4444444}}),React.createElement("div",{className:this.dialogClassName(),style:{zIndex:4444444}},React.createElement(o,{title:this.props.title,subtitle:this.props.subtitle}),React.createElement(i,{body:this.props.body}),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this.rejectAndClose},this.closeButtonText()))))}}),e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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 a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(231),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(0),c=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,o));return delete a.enable_create,a.field=o.field,a.operator=o.operator,a.expanded=!1!==o.expanded,a.children=[],a}return o(t,e),a(t,[{key:"deselect",value:function(){return(0,l.each)(this.children,function(e){e.active=!1})}},{key:"isExpanded",value:function(){return!!this.expanded}},{key:"hasActiveChildren",value:function(){return(0,l.some)(this.children,function(e){return e.isActive()})}}]),t}(u.default);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){(0,u.each)(e.preset,function(n,r){void 0!==n&&t.addValue(r,n,e.title)})}function a(e){return(0,u.select)(e.activeNodes(),function(e){return e.preset})}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=n(492),c=r(l),d=n(232),f=r(d),p=function(){function e(t){i(this,e),this.collector=new f.default(t)}return s(e,[{key:"generatePresetForCreate",value:function(){var e=new c.default,t=this.collector.findActiveFilterItems();return(0,u.each)(t,function(t){(0,u.each)(a(t),function(t){o(t,e)})}),e}},{key:"generatePresetForUpload",value:function(){return this.generatePresetForCreate()}}]),e}();t.default=p},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=n(40),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(){function e(){r(this,e),this.presetErrors={},this.presetValues={},this.titles={}}return i(e,[{key:"isValid",value:function(){return 0===(0,o.keys)(this.errors()).length}},{key:"values",value:function(){if(this.isValid())return this.presetValues;throw new Error(s.default.translate("content_browser.last_added.preset_error"))}},{key:"errors",value:function(){return this.presetErrors}},{key:"addValue",value:function(e,t,n){var r="_objClass"===e?"_obj_class":e;if(Object.prototype.hasOwnProperty.call(this.presetValues,r))return this.addError(r,this.titles[r],n);this.presetValues[r]=t,this.titles[r]=n}},{key:"addError",value:function(e,t,n){if(this.presetErrors[e])return this.presetErrors[e].push(n);this.presetErrors[e]=[t,n]}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=n(492),u=r(s),l=n(494),c=r(l),d=function(){function e(t){i(this,e),this.queryBuilder=new c.default(t)}return o(e,[{key:"generatePresetForUpload",value:function(){return new u.default}},{key:"generatePresetForCreate",value:function(){var e=new u.default,t=this.queryBuilder.searchRequest(),n=[],r=[];if((0,a.each)(t,function(e){(0,a.each)(e.params().query,function(e){if("equals"===e.operator){var t=e.field;if("_obj_class"===t||t===["_obj_class"]){var i=e.value;if(e.negate)i&&((0,a.isArray)(i)?r=r.concat(i):r.push(i));else{var o=void 0;o=(0,a.isArray)(i)?i:[i],n.push((0,a.without)(o,null))}}}})}),n.length>0){var i=a.intersection.apply(void 0,n),o=(0,a.difference)(i,r);1===o.length&&e.addValue("_obj_class",o[0])}return e}}]),e}();t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return e.hasQuery()?(0,f.default)(e.query()):a(e)}function a(e){if(e.hasField())return c.default.where((0,_.camelCase)(e.field()),(0,_.camelCase)(e.operator()),e.values())}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=n(3),c=r(l),d=n(495),f=r(d),p=n(232),h=r(p),_=n(19),m=function(){function e(t){i(this,e),this.filter=t,this.collector=new h.default(this.filter)}return s(e,[{key:"searchRequest",value:function(){var e=[];return(0,u.each)(this.collector.findActiveFilterItems(),function(t){var n=o(t);n&&e.push(n)}),e}}]),e}();t.default=m},function(e,t,n){"use strict";function r(e){return e.toBasicObjSearch?e.toBasicObjSearch():(0,o.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(496),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e){return new a.default((0,i.omit)(e,"sortBy","sortDirection"))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=n(48),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";function r(e){return e.shape({subscribe:e.func.isRequired,dispatch:e.func.isRequired,getState:e.func.isRequired})}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){function o(){v===m&&(v=m.slice())}function u(){return _}function l(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return o(),v.push(e),function(){if(t){t=!1,o();var n=v.indexOf(e);v.splice(n,1)}}}function c(e){if(!Object(i.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,_=h(_,e)}finally{g=!1}for(var t=m=v,n=0;n<t.length;n++)t[n]();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,c({type:s.INIT})}function f(){var e,t=l;return e={subscribe:function(e){function n(){e.next&&e.next(u())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[a.a]=function(){return this},e}var p;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,_=t,m=[],v=m,g=!1;return c({type:s.INIT}),p={dispatch:c,subscribe:l,getState:u,replaceReducer:d},p[a.a]=f,p}n.d(t,"a",function(){return s}),t.b=r;var i=n(499),o=n(501),a=n.n(o),s={INIT:"@@redux/INIT"}},function(e,t,n){"use strict";function r(e){if(!Object(a.a)(e)||Object(i.a)(e)!=s)return!1;var t=Object(o.a)(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}var i=n(730),o=n(735),a=n(737),s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,n){"use strict";var r=n(731),i=r.a.Symbol;t.a=i},function(e,t,n){e.exports=n(738)},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],i=t.slice(0,-1);return function(){return i.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}t.a=r},function(e,t){var n;n={defaultExpansionState:function(){return{open:this.props.filter.isExpanded()}},arrowHandleClick:function(){return this.setState({open:!this.state.open})},renderArrowTag:function(){return React.createElement("div",{className:"scrivito-content-browser-hierarchy-arrow",onClick:this.arrowHandleClick})},openClassSetOptions:function(){return this.state.open?"open":"closed"}},e.exports=n},function(e,t){var n;n={renderHierarchyLabelTitle:function(e){return React.createElement("div",{className:"scrivito-content-browser-hierarchy-label"},React.createElement("span",null,e))}},e.exports=n},function(e,t,n){var r,i;r=n(505),i={mixins:[r],optionLabelToggleClick:function(){return this.props.filter.toggleActive()},activeClassName:function(){return this.props.filter.isActive()?"active":""},renderOptionFilterTitle:function(){return this.renderHierarchyLabelTitle(this.props.filter.title)}},e.exports=i},function(e,t,n){var r,i,o;r=n(40).default,o=n(11),i=o({render:function(){return React.createElement("div",{className:"scrivito-content-browser-list"},React.createElement("div",{className:"scrivito-content-browser-list-head"},React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",null),React.createElement("th",null,r.translate("content_browser.table_view.title")),React.createElement("th",null,r.translate("content_browser.table_view.type")),React.createElement("th",null,r.translate("content_browser.table_view.file_type")),React.createElement("th",null,r.translate("content_browser.table_view.file_size")),React.createElement("th",null,r.translate("content_browser.table_view.last_change")))))),this.props.children)}}),e.exports=i},function(e,t,n){var r,i,o,a,s,u,l,c,d,f,p;o=n(6),f=n(0),r=n(3).default,c=n(755).default,i=n(756),d=n(509),a=n(236).SINGLE_SELECTION_MODE,p=n(1),u=p.TransformationSourceInvalidError,l=p.TransformationSourceTooLargeError,s=scrivito.legacyCreateConnectedComponent({displayName:"ThumbnailItem",propTypes:{objId:o.string.isRequired,handleSelectClick:o.func.isRequired,itemClasses:o.string.isRequired,selectClasses:o.string.isRequired,selectionMode:o.string.isRequired,selectedObjs:o.arrayOf(o.string)},_obj:function(){return r.get(this.props.objId)},_title:function(){return scrivito.titleForObj(this._obj())},_subtitle:function(){return scrivito.descriptionForObj(this._obj())},_itemToolTip:function(){var e;return e=this._title(),null!=this._subtitle()&&(e+="\n"+this._subtitle()),e},_mimeTypeIconClassName:function(e){var t;return t="scrivito_icon ",t+=c(e)},_isTransformable:function(e){var t;return t=["image/jpeg","image/gif","image/png"],f.contains(t,e)},_handleImageTransformation:function(e){var t,n;try{return n=e.optimizeFor({width:260,height:140}),React.createElement("img",{src:n.url()})}catch(e){if((t=e)instanceof l)return React.createElement("div",{className:"scrivito-content-browser-preview image-too-large"});if(t instanceof u)return React.createElement("div",{className:"scrivito-content-browser-preview image-invalid"});throw t}},_previewImage:function(){var e,t;return e=this._obj().get("blob","binary"),t=null!=e?e.raw().contentType():void 0,this._isTransformable(t)?this._handleImageTransformation(e):t&&0===t.indexOf("image/")?React.createElement("img",{src:e.url()}):React.createElement("span",{className:this._mimeTypeIconClassName(t)})},render:function(){return React.createElement("li",{className:this.props.itemClasses},React.createElement("div",{className:"scrivito-content-browser-item-wrapper",onClick:this.props.handleSelectClick},React.createElement("div",{className:"scrivito-content-browser-preview"},React.createElement(i,{get:function(e){return function(){return e._previewImage()}}(this)})),React.createElement("div",{className:this.props.selectClasses},React.createElement(i,{className:"scrivito-content-browser-thumbnails-name",getTitle:function(e){return function(){return e._itemToolTip()}}(this),get:function(e){return function(){return e._title()}}(this)}),React.createElement(i,{className:"scrivito-content-browser-thumbnails-size",get:function(e){return function(){return e._subtitle()}}(this)}),this.props.selectionMode!==a?React.createElement("span",{className:"scrivito-content-browser-thumbnails-select select-item"}):void 0)))}}),e.exports=d(s)},function(e,t,n){var r,i,o;o=n(0),r=n(11),i=function(e){return r({displayName:"InspectedItem",isSelectedItem:function(e){return o.contains(this.props.selectedObjs,e)},getItemClasses:function(){var e;return e="content-browser-item ",this.isSelectedItem(this.props.objId)&&(e+="active"),e},selectClass:function(){var e;return e=this.props.baseSelectClass,this.isSelectedItem(this.props.objId)&&(e+=" active"),e},handleSelectClick:function(){return this.props.toggleObjSelection(this.props.objId)},render:function(){return React.createElement(e,{itemClasses:this.getItemClasses(),handleSelectClick:this.handleSelectClick,selectClasses:this.selectClass(),selectedObjs:this.props.selectedObjs,objId:this.props.objId,selectionMode:this.props.selectionMode})}})},e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(319),a=r(o),s=n(40),u=r(s),l={itemClassName:function(){var e="scrivito-content-browser-add";return this.props.objCreation.isActive()||(e+=" disabled"),e},iconClassName:function(){return this.props.objCreation.isActive()?"scrivito_icon scrivito_icon_plus":"scrivito_icon scrivito_icon_disabled"},creationNotPossibleBody:function(e){return React.createElement("ul",null,e.nodeTitles.map(function(e){return React.createElement("li",{key:e},e)}))},presetConflictBody:function(e){return React.createElement("div",null,u.default.translate("content_browser.add_item.preset_conflict"),(0,i.map)(e.fields,function(e,t){return React.createElement("div",{key:t},React.createElement("h4",null,t),React.createElement("ul",null,e.map(function(e){return React.createElement("li",{key:e},e)})))}))},showErrorAlert:function(e){var t=void 0;"creation_not_possible"===e.type&&(t={subtitle:u.default.translate("content_browser.add_item.disabled_filters"),body:this.creationNotPossibleBody(e)}),"obj_class_not_provided"===e.type&&(t={subtitle:u.default.translate("content_browser.add_item.error_no_obj_class")}),"preset_conflict"===e.type&&(t={body:this.presetConflictBody(e)}),t.title=u.default.translate("content_browser.add_item.create_impossible"),a.default.showAlert(t)},buildErrorMessage:function(e){if("creation_not_possible"===e.type){var t=e.nodeTitles.join(", ");return u.default.translate("content_browser.add_item.prevent_creation",t)}if("obj_class_not_provided"===e.type)return u.default.translate("content_browser.add_item.error_no_obj_class");if("preset_conflict"===e.type){var n=u.default.translate("content_browser.add_item.failed");return(0,i.each)(e.fields,function(e,t){n+=t+": "+e.join(", ")+"\n"}),n}},iconTitle:function(){if(!this.props.objCreation.isActive())return this.buildErrorMessage(this.props.objCreation.error())},textMessage:function(){return this.props.objCreation.isActive()?u.default.translate("content_browser.add_item.create_item"):u.default.translate("content_browser.add_item.create_impossible")},createClick:function(){var e=this.props.objCreation;e.isActive()?(this.props.createObj(e.createOptions()),e.filter.deselectHierarchicalFilters()):this.showErrorAlert(e.error())}};t.default=l},function(e,t,n){var r,i,o,a;a=n(11),o=n(6),i=n(758),r=a({displayName:"InfiniteScrollLoader",propTypes:{isLoading:o.bool.isRequired,hasMore:o.bool.isRequired,fetch:o.func.isRequired,tag:o.string.isRequired,className:o.string.isRequired,style:o.object},componentDidUpdate:function(){return this._fullyFillContainer(),this._ensureFullPageIsPreloaded()},componentDidMount:function(){return this._fullyFillContainer()},render:function(){var e;return e={className:this.props.className,ref:function(e){return function(t){return e.container=t}}(this),style:this.props.style,onScroll:function(e){return function(){return e._ensureFullPageIsPreloaded()}}(this)},React.createElement(this.props.tag,e,this._childrenAndLoader())},_ensureFullPageIsPreloaded:function(){if(this._isViewportAtBottom()&&this.props.hasMore&&!this.props.isLoading)return this.props.fetch()},_fullyFillContainer:function(){if(this.props.hasMore&&!this.props.isLoading&&!this._isFullViewPort())return this.props.fetch()},_isFullViewPort:function(){return this.container.scrollHeight>this.container.offsetHeight},_isViewportAtBottom:function(){return this.container.scrollTop>=this.container.scrollHeight-2*this.container.offsetHeight},_childrenAndLoader:function(){var e;return e=[this.props.children],this.props.isLoading&&e.push(React.createElement(i,{key:"spinner"})),e}}),e.exports=r},function(e,t,n){var r,i,o,a;a=n(0),r=n(319),i=n(40).default,o={failureMessage:function(){var e;return e=i.translate("content_browser.last_added.failed_upload"),React.createElement("ul",null,a.map(this.props.failedAdditions,function(t){return React.createElement("div",{className:"content-browser-alert"},React.createElement("h4",null,t.filename),React.createElement("li",null,t.failureMessage||e))}))},showAlert:function(){return r.showAlert({title:i.translate("content_browser.last_added.upload_error"),body:React.createElement("div",null,this.failureMessage())})},getErrorsCount:function(){return i.translate("content_browser.last_added.failed_upload_counts",this.props.failedAdditions.length)},_titleInfo:function(){return i.translate("content_browser.last_added.title_info")}},e.exports=o},function(e,t,n){var r,i;i=n(320).isActive,r={uploadInProgress:function(){return i(this.props.addedItem)},renderUploadStateProgress:function(){if(this.uploadInProgress())return React.createElement("div",{className:"upload_state",style:{width:this.props.addedItem.progress+"%"}})}},e.exports=r},function(e,t,n){var r,i,o,a,s,u;o=n(6),r=n(3).default,i=n(763),u=n(509),s=n(230),a=scrivito.legacyCreateConnectedComponent({displayName:"TableViewItem",propTypes:{objId:o.string.isRequired,handleSelectClick:o.func.isRequired,itemClasses:o.string.isRequired,selectClasses:o.string.isRequired,selectionMode:o.string.isRequired,selectedObjs:o.arrayOf(o.string)},_obj:function(){return r.get(this.props.objId)},_title:function(){return scrivito.titleForObj(this._obj())},_contentType:function(){var e;if(e=this._obj().get("blob","binary"))return e.raw().contentType()},_contentLength:function(){var e;if(e=this._obj().get("blob","binary"))return s(e.raw().contentLength())},_getLastChangedFormatedDate:function(){var e;return e=moment(this._obj().lastChanged()).utc(),e.format("dddd, MMMM Do YYYY, h:mm A")},_getTime:function(){return React.createElement("span",null,React.createElement("time",{dateTime:this._obj().lastChanged(),title:this._getLastChangedFormatedDate()},moment.utc(this._obj().lastChanged()).fromNow()))},_getFileTypeTitleTag:function(){var e;if(null!=(e=this._contentType()))return e.match(/\w+$/)[0]},render:function(){return React.createElement("tr",{onClick:this.props.handleSelectClick,className:this.props.itemClasses},React.createElement("td",null,React.createElement("div",{className:this.props.selectClasses})),React.createElement(i,{getTitle:function(e){return function(){return e._title()}}(this),get:function(e){return function(){return e._title()}}(this)}),React.createElement(i,{get:function(e){return function(){return e._contentType()}}(this)}),React.createElement(i,{getTitle:function(e){return function(){return e._contentType()}}(this),get:function(e){return function(){return e._getFileTypeTitleTag()}}(this)}),React.createElement(i,{get:function(e){return function(){return e._contentLength()}}(this)}),React.createElement(i,{getTitle:function(e){return function(){return e._getLastChangedFormatedDate()}}(this),get:function(e){return function(){return e._getTime()}}(this)}))}}),e.exports=u(a)},function(e,t,n){"use strict";function r(e){return{type:i,numToLoad:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.loadMoreObjs=r;var i=t.LOAD_MORE_OBJS="LOAD_MORE_OBJS";t.DEFAULT_NUMBER_TO_LOAD=24},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=o.default.run(function(){return e.next()});if(!i.allDataLoaded)return{done:!1,objs:n};var a=i.result,s=a.value,u=a.done;return u||0===t?{done:u,objs:n}:r(e,t-1,n.concat([s]))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(16),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(){return{type:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.toggleInspectorMaximized=r;var i=t.MAXIMIZE_TOGGLE="MAXIMAZED_INSPECTOR_TOGGLE"},function(e,t,n){"use strict";function r(e){var t=(0,a.lookup)(e.type);return o.default.get(t).createBinaryWithDefaults(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createBinaryWithDefaults=r;var i=n(41),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(471)},function(e,t,n){"use strict";function r(e){var t={};return(0,i.each)(e,function(e,n){switch(n){case"options":t[n]=(0,i.mapObject)(e,r);break;case"field":case"operator":t[n]=(0,o.camelCase)(e);break;case"enableCreate":case"enable_create":case"preset":break;default:t[n]=e}}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_DEFINITION=t.DEFAULT_DEFINITION_FOR_RAILS=t.DEFINITION_FOR_IMAGE_CONTEXT=void 0;var i=n(0),o=n(19),a={title:"Changed",type:"checkbox",expanded:!0,field:"_modification",operator:"equals",options:{New:{value:["new"]},Edited:{value:["edited"]}}},s=(t.DEFINITION_FOR_IMAGE_CONTEXT={_obj_class:{options:{Images:{icon:"image",selected:!0,field:"_obj_class",value:"Image",preset:{_obj_class:"Image"}}}},_modification:a},t.DEFAULT_DEFINITION_FOR_RAILS={_obj_class:{options:{All:{icon:"generic",selected:!0,field:"_last_changed",operator:"is_greater_than",value:new Date(0)},Images:{icon:"image",field:"_obj_class",operator:"equals",value:"Image",preset:{_obj_class:"Image"}},Downloads:{icon:"zip",field:"_obj_class",operator:"equals",value:"Download",preset:{_obj_class:"Download"}}}},_modification:a});t.DEFAULT_DEFINITION=(0,i.mapObject)(s,r)},function(e,t,n){function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(238),o=n(804),a=n(805),s=n(806),u=n(807),l=n(808);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=l,e.exports=r},function(e,t,n){function r(e){if(!o(e))return!1;var t=i(e);return t==s||t==u||t==a||t==l}var i=n(137),o=n(107),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(51))},function(e,t){function n(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,i=r.toString;e.exports=n},function(e,t,n){function r(e,t,n,r,l,c){var d=n&s,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var _=-1,m=!0,v=n&u?new i:void 0;for(c.set(e,t),c.set(t,e);++_<f;){var g=e[_],y=t[_];if(r)var b=d?r(y,g,_,t,e,c):r(g,y,_,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!o(t,function(e,t){if(!a(v,t)&&(g===e||l(g,e,n,r,c)))return v.push(t)})){m=!1;break}}else if(g!==y&&!l(g,y,n,r,c)){m=!1;break}}return c.delete(e),c.delete(t),m}var i=n(242),o=n(830),a=n(243),s=1,u=2;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=n},function(e,t,n){function r(e,t){var n=a(e),r=!n&&o(e),c=!n&&!r&&s(e),f=!n&&!r&&!c&&l(e),p=n||r||c||f,h=p?i(e.length,String):[],_=h.length;for(var m in e)!t&&!d.call(e,m)||p&&("length"==m||c&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,_))||h.push(m);return h}var i=n(839),o=n(328),a=n(50),s=n(528),u=n(329),l=n(529),c=Object.prototype,d=c.hasOwnProperty;e.exports=r},function(e,t,n){(function(e){var r=n(82),i=n(841),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||i;e.exports=c}).call(t,n(78)(e))},function(e,t,n){var r=n(842),i=n(245),o=n(843),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){var r=n(124),i=n(82),o=r(i,"Set");e.exports=o},function(e,t,n){var r=n(124),i=n(82),o=r(i,"WeakMap");e.exports=o},function(e,t,n){function r(e){return e===e&&!i(e)}var i=n(107);e.exports=r},function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},function(e,t,n){function r(e,t){t=i(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[o(t[n++])];return n&&n==r?e:void 0}var i=n(537),o=n(246);e.exports=r},function(e,t,n){function r(e,t){return i(e)?e:o(e,t)?[e]:a(s(e))}var i=n(50),o=n(331),a=n(852),s=n(854);e.exports=r},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(325),o="Expected a function";r.Cache=i,e.exports=r},function(e,t){function n(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}e.exports=n},function(e,t,n){function r(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),u=Array(s);++a<s;)u[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(u),i(e,this,l)}}var i=n(541),o=Math.max;e.exports=r},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var r=n(878),i=n(880),o=i(r);e.exports=o},function(e,t,n){var r=n(124),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?o(n)&&a(t,n.length):"string"==r&&t in n)&&i(n[t],e)}var i=n(221),o=n(125),a=n(329),s=n(107);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(3),s=r(a),u=n(63),l=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ObjLabel",propTypes:{isBrowsable:o.default.bool,obj:o.default.instanceOf(s.default)},shouldRenderLoaderError:!0,render:function(){return this.props.isBrowsable?React.createElement("span",null,React.createElement("i",{className:"scrivito_icon scrivito_icon_content_browser"}),this.props.obj&&(0,u.titleForObj)(this.props.obj)):null},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return o(e).then(function(e){return l.default.filter(e,function(e){return 0===e.toLowerCase().indexOf(t.toLowerCase())})})}function o(e){var t=s.default.all();return(0,d.default)(function(){return t.facet(e,{limit:100})}).then(function(e){return l.default.invoke(e,"name")})}Object.defineProperty(t,"__esModule",{value:!0}),t.suggest=i;var a=n(3),s=r(a),u=n(0),l=r(u),c=n(8),d=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(548);Object.defineProperty(t,"DragDropContext",{enumerable:!0,get:function(){return r(i).default}});var o=n(914);Object.defineProperty(t,"DragDropContextProvider",{enumerable:!0,get:function(){return r(o).default}});var a=n(915);Object.defineProperty(t,"DragLayer",{enumerable:!0,get:function(){return r(a).default}});var s=n(916);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r(s).default}});var u=n(926);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r(u).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){w.default.apply(void 0,["DragDropContext","backend"].concat(Array.prototype.slice.call(arguments)));var t=C(e),n=M(t);return function(e){var t,r,s=e.displayName||e.name||"Component",c=(r=t=function(t){function r(){return i(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,t),l(r,[{key:"getDecoratedComponentInstance",value:function(){return(0,v.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"getManager",value:function(){return n.dragDropManager}},{key:"getChildContext",value:function(){return n}},{key:"render",value:function(){var t=this;return f.default.createElement(e,u({},this.props,{ref:function(e){return t.child=e}}))}}]),r}(d.Component),t.DecoratedComponent=e,t.displayName="DragDropContext("+s+")",t.childContextTypes=k,r);return(0,y.default)(c,e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.unpackBackendForEs5Users=t.createChildContext=t.CHILD_CONTEXT_TYPES=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=s;var d=n(20),f=r(d),p=n(6),h=r(p),_=n(889),m=n(44),v=r(m),g=n(335),y=r(g),b=n(252),w=r(b),k=t.CHILD_CONTEXT_TYPES={dragDropManager:h.default.object.isRequired},M=t.createChildContext=function(e,t){return{dragDropManager:new _.DragDropManager(e,t)}},C=t.unpackBackendForEs5Users=function(e){var t=e;return"object"===(void 0===t?"undefined":c(t))&&"function"==typeof t.default&&(t=t.default),(0,v.default)("function"==typeof t,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://react-dnd.github.io/react-dnd/docs-drag-drop-context.html"),t}},function(e,t,n){"use strict";function r(e,t){return e===t||e&&t&&e.x===t.x&&e.y===t.y}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case u.BEGIN_DRAG:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case u.HOVER:return r(e.clientOffset,t.clientOffset)?e:s({},e,{clientOffset:t.clientOffset});case u.END_DRAG:case u.DROP:return l;default:return e}}function o(e){var t=e.clientOffset,n=e.initialClientOffset,r=e.initialSourceClientOffset;return t&&n&&r?{x:t.x+r.x-n.x,y:t.y+r.y-n.y}:null}function a(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?{x:t.x-n.x,y:t.y-n.y}:null}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i,t.getSourceClientOffset=o,t.getDifferenceFromInitialOffset=a;var u=n(249),l={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null}},function(e,t,n){"use strict";function r(e,t){return(0,o.default)(e)?e.some(function(e){return e===t}):e===t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(50),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){var r=n(552),i=n(126),o=n(250),a=i(function(e,t){return o(e)?r(e,t):[]});e.exports=a},function(e,t,n){function r(e,t,n,r){var d=-1,f=o,p=!0,h=e.length,_=[],m=t.length;if(!h)return _;n&&(t=s(t,u(n))),r?(f=a,p=!1):t.length>=c&&(f=l,p=!1,t=new i(t));e:for(;++d<h;){var v=e[d],g=null==n?v:n(v);if(v=r||0!==v?v:0,p&&g===g){for(var y=m;y--;)if(t[y]===g)continue e;_.push(v)}else f(t,g,r)||_.push(v)}return _}var i=n(242),o=n(332),a=n(333),s=n(224),u=n(245),l=n(243),c=200;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments[1]),t=arguments[2];switch(e.type){case c.HOVER:break;case d.ADD_SOURCE:case d.ADD_TARGET:case d.REMOVE_TARGET:case d.REMOVE_SOURCE:return f;case c.BEGIN_DRAG:case c.PUBLISH_DRAG_SOURCE:case c.END_DRAG:case c.DROP:default:return p}var n=e.targetIds,r=t.targetIds,i=(0,s.default)(n,r),o=!1;if(0===i.length){for(var a=0;a<n.length;a++)if(n[a]!==r[a]){o=!0;break}}else o=!0;if(!o)return f;var u=r[r.length-1],l=n[n.length-1];return u!==l&&(u&&i.push(u),l&&i.push(l)),i}function o(e,t){return e!==f&&(e===p||void 0===t||(0,l.default)(t,e).length>0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,t.areDirty=o;var a=n(899),s=r(a),u=n(902),l=r(u),c=n(249),d=n(251),f=[],p=[]},function(e,t,n){function r(e,t,n){var r=-1,d=o,f=e.length,p=!0,h=[],_=h;if(n)p=!1,d=a;else if(f>=c){var m=t?null:u(e);if(m)return l(m);p=!1,d=s,_=new i}else _=t?[]:h;e:for(;++r<f;){var v=e[r],g=t?t(v):v;if(v=n||0!==v?v:0,p&&g===g){for(var y=_.length;y--;)if(_[y]===g)continue e;t&&_.push(g),h.push(v)}else d(_,g,n)||(_!==h&&_.push(g),h.push(v))}return h}var i=n(242),o=n(332),a=n(333),s=n(243),u=n(901),l=n(327),c=200;e.exports=r},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":i(e))||null===e||"object"!==(void 0===t?"undefined":i(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<n.length;a+=1){if(!o.call(t,n[a]))return!1;var s=e[n[a]],u=t[n[a]];if(s!==u||"object"===(void 0===s?"undefined":i(s))||"object"===(void 0===u?"undefined":i(u)))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t,n,r=e.DecoratedComponent,s=e.createHandler,p=e.createMonitor,m=e.createConnector,v=e.registerHandler,y=e.containerDisplayName,w=e.getType,M=e.collect,E=e.options,x=E.arePropsEqual,T=void 0===x?C.default:x,D=r.displayName||r.name||"Component",S=(n=t=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.handleChange=r.handleChange.bind(r),r.handleChildRef=r.handleChildRef.bind(r),(0,g.default)("object"===l(r.context.dragDropManager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",D,D),r.manager=r.context.dragDropManager,r.handlerMonitor=p(r.manager),r.handlerConnector=m(r.manager.getBackend()),r.handler=s(r.handlerMonitor),r.disposable=new _.SerialDisposable,r.receiveProps(e),r.state=r.getCurrentState(),r.dispose(),r}return a(t,e),c(t,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return this.decoratedComponentInstance}},{key:"shouldComponentUpdate",value:function(e,t){return!T(e,this.props)||!(0,k.default)(t,this.state)}}]),c(t,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.disposable=new _.SerialDisposable,this.currentType=null,this.receiveProps(this.props),this.handleChange()}},{key:"componentWillReceiveProps",value:function(e){T(e,this.props)||(this.receiveProps(e),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose(),this.isCurrentlyMounted=!1}},{key:"receiveProps",value:function(e){this.handler.receiveProps(e),this.receiveType(w(e))}},{key:"receiveType",value:function(e){if(e!==this.currentType){this.currentType=e;var t=v(e,this.handler,this.manager),n=t.handlerId,r=t.unregister;this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor(),o=i.subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new _.CompositeDisposable(new _.Disposable(o),new _.Disposable(r)))}}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,k.default)(e,this.state)||this.setState(e)}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector.receiveHandlerId(null)}},{key:"handleChildRef",value:function(e){this.decoratedComponentInstance=e,this.handler.receiveComponent(e)}},{key:"getCurrentState",value:function(){var e=M(this.handlerConnector.hooks,this.handlerMonitor);return e}},{key:"render",value:function(){return f.default.createElement(r,u({},this.props,this.state,{ref:this.handleChildRef}))}}]),t}(d.Component),t.DecoratedComponent=r,t.displayName=y+"("+D+")",t.contextTypes={dragDropManager:h.default.object.isRequired},n);return(0,b.default)(S,r)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var d=n(20),f=r(d),p=n(6),h=r(p),_=n(917),m=n(127),v=(r(m),n(44)),g=r(v),y=n(335),b=r(y),w=n(336),k=r(w),M=n(555),C=r(M)},function(e,t,n){"use strict";function r(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,a.isValidElement)(t)){return void e(t,n)}var i=t;r(i);var o=n?function(t){return e(t,n)}:e;return(0,u.default)(i,o)}}function o(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n],o=i(r);t[n]=function(){return o}}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(20),s=n(925),u=function(e){return e&&e.__esModule?e:{default:e}}(s)},function(e,t,n){"use strict";function r(e,t){return t===e||null!==t&&null!==e&&(0,o.default)(t,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(336),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t){return"string"==typeof e||"symbol"===(void 0===e?"undefined":i(e))||t&&(0,a.default)(e)&&e.every(function(e){return r(e,!1)})}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r;var o=n(50),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var i=n(543);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=void 0;var r=n(538),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.isFirefox=(0,i.default)(function(){return/firefox/i.test(navigator.userAgent)}),t.isSafari=(0,i.default)(function(){return Boolean(window.safari)})},function(e,t,n){var r=n(107),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(956),i=n(334),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){function r(e){for(var t=e.name+"",n=i[t],r=a.call(i,t)?n.length:0;r--;){var o=n[r],s=o.func;if(null==s||s==e)return o.name}return t}var i=n(957),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){return(0,a.createClassForCustomAttributeItemDescription)(e,{render:function(){var t=this.props.field.get()||0,n="edit_"+e;return this.props.readOnly&&(n="display_"+e),React.createElement("input",{type:"number",className:n,value:t,step:1,disabled:this.props.readOnly,onChange:this._onChange})},_onChange:function(e){if(!this.props.readOnly){var n=t(e.target.value);o.default.isNaN(n)&&(n=0),this.props.field.update(n)}}})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(39);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=a.default.find(e)||u.default.find(e);return t?t.title():e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(41),a=r(o),s=n(58),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=[(0,a.default)(t),(0,c.default)(t),(0,u.default)(t)];scrivito.ContextMenu.open($(e),r,{mousePosition:n})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(346),a=r(o),s=n(225),u=r(s),l=n(347),c=r(l);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=n(20),c=r(l),d=n(31),f=n(15),p=r(f),h=n(76),_=r(h),m=void 0,v=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._deferred=new p.default,n._handleOk=n._handleOk.bind(n),n._handleCancel=n._handleCancel.bind(n),n._handleOkClick=n._handleOkClick.bind(n),n._handleCancelClick=n._handleCancelClick.bind(n),n}return a(t,e),s(t,null,[{key:"open",value:function(e){return m=document.getElementById("prompt_dialog"),(0,d.render)(c.default.createElement(t,e),m).getPromise()}}]),s(t,[{key:"getPromise",value:function(){return this._deferred.promise}},{key:"componentDidMount",value:function(){scrivito.withDialogBehaviour($(m),this.getPromise(),{enter:this._handleOk,escape:this._handleCancel})}},{key:"render",value:function(){var e=this,t=void 0;this.props.description&&(t=c.default.createElement("p",null,this.props.description));return c.default.createElement("div",{className:"scrivito_prompt_dialog scrivito_center_dialog scrivito_modal_prompt scrivito_green scrivito_show"},c.default.createElement("div",{className:"scrivito_modal_header"},c.default.createElement("i",{className:"scrivito_icon",dangerouslySetInnerHTML:{__html:this.props.icon}}),c.default.createElement("h3",{className:"scrivito_title"},(0,u.result)(this.props,"title")),t),c.default.createElement("div",{className:"scrivito_modal_body"},c.default.createElement("input",{type:"text",autoFocus:!0,defaultValue:this.props.value,placeholder:this.props.placeholder,ref:function(t){return e._input=t}})),c.default.createElement("div",{className:"scrivito_modal_footer"},c.default.createElement("a",{href:"#",className:"scrivito_button scrivito_cancel",onClick:this._handleCancelClick},scrivito.t("cancel")),c.default.createElement("a",{href:"#",className:"scrivito_button scrivito_green scrivito_ok",onClick:this._handleOkClick},this.props.okButtonText)))}},{key:"_handleOkClick",value:function(e){e.preventDefault(),e.stopPropagation(),this._handleOk()}},{key:"_handleOk",value:function(){this._deferred.resolve(this._input.value),this._unmount()}},{key:"_handleCancelClick",value:function(e){e.preventDefault(),e.stopPropagation(),this._handleCancel()}},{key:"_handleCancel",value:function(){this._deferred.resolve(null),this._unmount()}},{key:"_unmount",value:function(){(0,d.unmountComponentAtNode)(m)}}]),t}(c.default.Component);v.displayName="PromptDialog",t.default=(0,_.default)(v)},function(e,t,n){"use strict";function r(e){var t=$.Deferred();return e.then(function(e){return t.resolve(e)},function(e){t.reject(e)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return new D.default({id:"scrivito.sdk.widget_commands.separator"+e})}function s(e,t){var n=h.default.get(e);return t?n.widget(t):n}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(33),c=r(l),d=n(486),f=r(d),p=n(3),h=r(p),_=n(342),m=r(_),v=n(343),g=r(v),y=n(344),b=r(y),w=n(225),k=r(w),M=n(469),C=r(M),E=n(990),x=r(E),T=n(218),D=r(T),S=n(571),O=r(S),j=n(479),L=r(j),P=n(481),R=r(P),A=n(482),I=r(A),N=n(991),Y=r(N),F=n(345),H=r(F),W=n(567),z=r(W),B=n(122),U=n(220),q=r(U),V=n(348),G=r(V),K=function(){function e(t){o(this,e),this._cmsDocument=t}return u(e,[{key:"currentWorkspaceId",value:function(){return scrivito.editingContext.selectedWorkspaceId}},{key:"linkResolutionFor",value:function(e){return x.default.for(e)}},{key:"isEditingMode",value:function(){return this._cmsDocument&&this._cmsDocument.window().isForcedEditingMode()||scrivito.editingContext.isEditingMode()}},{key:"alwaysShowOptionMarkers",value:function(){return scrivito.optionMarker.always_visible}},{key:"assetUrlBase",value:function(){return(0,f.default)()}},{key:"showWidgetMenu",value:function(e,t,n){var r=h.default.get(t).widget(n),i=r.containingField();scrivito.ContextMenu.open($(e),[(0,O.default)(r,{renderMode:"show"}),a(1),(0,g.default)(r),(0,m.default)(r),(0,k.default)(i,r),a(2),(0,b.default)(r)])}},{key:"showWidgetlistMenu",value:function(e,t){var n=t.objId,r=t.widgetId,i=t.attributeName,o=t.mousePosition,a=s(n,r),u=a.field(i,["widgetlist"]);(0,z.default)(e,u,o)}},{key:"showChildListMenu",value:function(e,t){scrivito.ContextMenu.open($(e),[(0,L.default)(t),(0,R.default)(t),(0,I.default)(t),(0,Y.default)(t)])}},{key:"insertWidget",value:function(e,t,n){var r=h.default.get(e).widget(t);(0,H.default)(r,n)}},{key:"onDragStart",value:function(e,t){var n=h.default.get(e).widget(t);scrivito.dragDrool.onDragstart(n)}},{key:"onDragEnd",value:function(){scrivito.dragDrool.onDragend()}},{key:"registerWidgetDropZoneInDom",value:function(e,t,n){var r=h.default.get(t).widget(n),i=r.containingField();e.scrivitoPrivateDropzone=function(){return new C.default(i,r)}}},{key:"registerEmptyWidgetlistDropZoneInDom",value:function(e){var t=e.domNode,n=e.objId,r=e.widgetId,i=e.attributeName,o=s(n,r),a=o.field(i,["widgetlist"]);t.scrivitoPrivateDropzone=function(){return new C.default(a)}}},{key:"navigateToExternalUrl",value:function(e){scrivito.redirect_to(e)}},{key:"openInNewWindow",value:function(e){var t=(0,c.default)((0,G.default)(e));t.segment(["scrivito"].concat(i(t.segment()))),scrivito.open(t.toString(),"blank")}},{key:"setCurrentPageId",value:function(e){this._cmsDocument&&this._cmsDocument.setCurrentPageId(e)}},{key:"configureContentBrowser",value:function(e){e.basePreset&&(q.default.basePreset=e.basePreset),e.baseQuery&&(q.default.baseQuery=e.baseQuery)}},{key:"openContentBrowser",value:function(e){return(0,B.openContentBrowserWithoutAppConfig)(e)}},{key:"notifyDocumentResize",value:function(){this._cmsDocument.window().notifyDocumentResize()}}]),e}();t.default=K},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=t.renderMode;return new s.default({id:"scrivito.sdk.widget_details",title:scrivito.t("commands.widget_details.title"),icon:"&#xf030;",present:function(){return e&&"show"===n},disabled:function(){if(!o(e))return scrivito.t("commands.widget_details.has_no_properties")},execute:function(){return scrivito.WriteMonitor.trackChanges(function(){return l.default.open({objId:e.obj().id(),widgetId:e.id()})},function(){return(0,p.default)(e)})}})}function o(e){return(0,_.useRailsEngine)()?(0,d.default)(e.objClass()):(0,h.hasInspectorDescription)(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),s=r(a),u=n(314),l=r(u),c=n(483),d=r(c),f=n(572),p=r(f),h=n(316),_=n(47);t.default=i},function(e,t,n){"use strict";function r(e){o.default.each(scrivito.cmsWindow.activeWindows(),function(t){var n=scrivito.widgetElement.all($(t.browserWindow().document));o.default.each(n,function(t){e.equals(t.basicWidget())&&scrivito.WidgetReloading.reload(t)})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){return M[e]}function a(e){var t=c(e),n=_(t,2),r=n[0],o=n[1];if(!o.length)return scrivito.Promise.all(r);var s=o.slice(0,k),u=o.slice(k),l=d(s);return scrivito.Promise.all([].concat(i(r),[l])).then(function(){return a(u)})}function s(e,t){M[e]=t}function u(){M={},C={}}function l(){return(0,m.isEmpty)(C)}function c(e){var t=[],n=[];return e.forEach(function(e){var r=C[e];r?t.push(r.promise):n.push(e)}),[t,n]}function d(e){return e.forEach(function(e){return C[e]=new g.default}),p(e).then(f).then(h).then(function(){return e.forEach(function(e){C[e].resolve(null),delete C[e]}),null}).catch(function(t){throw e.forEach(function(e){C[e].reject(t),delete C[e]}),t})}function f(e){if(!(0,w.useRailsEngine)())return scrivito.Promise.resolve(e);var t=scrivito.ajax("PUT","resolve_paths",{data:{paths:e}});return scrivito.Promise.resolve(t).then(function(t){var n=[];return e.forEach(function(e,r){var i=t[r];null===i?n.push(e):M[e]=i}),n})}function p(e){var t=(0,m.map)(e,function(e){var t=scrivito.AppConfig.resolveUrl((0,b.default)(e));return t?t.catch(function(e){return scrivito.logError(e),null}):scrivito.Promise.resolve(null)});return scrivito.Promise.all(t).then(function(t){var n=[];return e.forEach(function(e,r){var i=t[r];null===i?n.push(e):M[e]=i}),n})}function h(e){if(e.length){return scrivito.CmsRestApi.get("blobs/resolve_urls",{urls:e}).then(function(t){var n=t.results;e.forEach(function(e,t){M[e]=n[t]})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.isResolvedUrlCacheEmpty=t.clearResolvedUrlCache=t.setResolvedUrl=t.preloadResolvedUrls=t.resolveUrl=void 0;var _=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=n(0),v=n(15),g=r(v),y=n(348),b=r(y),w=n(47),k=20,M={},C={};t.resolveUrl=o,t.preloadResolvedUrls=a,t.setResolvedUrl=s,t.clearResolvedUrlCache=u,t.isResolvedUrlCacheEmpty=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=(0,l.default)(function(){return d.default.currentSession().can("create")});return scrivito.withSavingOverlay(n).then(function(n){function r(){return f?i():a(),!1}function i(){var e=$("#scrivito_new_ws_name").val();scrivito.dialog.close_with_transition(d),scrivito.withSavingOverlay(p.default.createAsync(e)).then(function(e){var t=e.id;return h.resolve(t)}).catch(function(e){scrivito.displayError(e),h.reject()})}function a(){var e=$("select#scrivito_list_of_ws").val();scrivito.dialog.close_with_transition(d),h.resolve(e)}function u(){return scrivito.dialog.close_with_transition(d),h.resolve(),!1}var l=e.length,c="editable_ws_dialog."+t,d=$(scrivito.Template.render("editable_workspace_dialog",{workspaces:e,can_select:l,can_create:n,can_select_or_create:l||n,title:o(c+".title",l,n),description:o(c+".description",l,n)}));$("#scrivito_editing").append(d);var f=!1;d.on("focus click",".scrivito_input_list_of_ws",function(){f=!1,d.find(".scrivito_confirm").html(scrivito.t("editable_ws_dialog.select")),d.find(".scrivito_disabled").removeClass("scrivito_disabled"),d.find(".scrivito_input_new_ws_name label, .scrivito_input_new_ws_name input").addClass("scrivito_disabled")}),d.on("focus click",".scrivito_input_new_ws_name",function(){f=!0,d.find(".scrivito_confirm").html(scrivito.t("menu_bar.create")),d.find(".scrivito_disabled").removeClass("scrivito_disabled"),d.find(".scrivito_input_list_of_ws label, .scrivito_input_list_of_ws select").addClass("scrivito_disabled")});var h=new s.default;return d.find(".scrivito_confirm").on("click",r),d.find(".scrivito_cancel").on("click",u),scrivito.dialog.open_and_center_with_transition(d),l?(d.find(".scrivito_input_list_of_ws").click(),d.find("#scrivito_list_of_ws").focus()):n&&(d.find(".scrivito_input_new_ws_name").click(),d.find("#scrivito_new_ws_name").focus()),scrivito.withDialogBehaviour(d,h.promise,{enter:r,escape:u})})}function o(e,t,n){return t&&n?scrivito.t(e+".select_or_create"):t?scrivito.t(e+".select"):n?scrivito.t(e+".create"):scrivito.t(e+".forbidden")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(15),s=r(a),u=n(8),l=r(u),c=n(121),d=r(c),f=n(59),p=r(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1090),l=r(u),c=n(20),d=r(c),f=n(6),p=r(f),h=n(1091),_=(r(h),n(1092)),m=(p.default.any,p.default.func,p.default.node,{component:"span",childFactory:function(e){return e}}),v=function(e){function t(n,r){i(this,t);var a=o(this,e.call(this,n,r));return a.performAppear=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(a._handleDoneAppearing.bind(a,e,t)):a._handleDoneAppearing(e,t)},a._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete a.currentlyTransitioningKeys[e];var n=(0,_.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)||a.performLeave(e,t)},a.performEnter=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(a._handleDoneEntering.bind(a,e,t)):a._handleDoneEntering(e,t)},a._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete a.currentlyTransitioningKeys[e];var n=(0,_.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)||a.performLeave(e,t)},a.performLeave=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(a._handleDoneLeaving.bind(a,e,t)):a._handleDoneLeaving(e,t)},a._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete a.currentlyTransitioningKeys[e];var n=(0,_.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)?a.keysToEnter.push(e):a.setState(function(t){var n=s({},t.children);return delete n[e],{children:n}})},a.childRefs=Object.create(null),a.state={children:(0,_.getChildMapping)(n.children)},a}return a(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,_.getChildMapping)(e.children),n=this.state.children;this.setState({children:(0,_.mergeChildMappings)(n,t)});for(var r in t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach(function(t){return e.performEnter(t,e.childRefs[t])});var n=this.keysToLeave;this.keysToLeave=[],n.forEach(function(t){return e.performLeave(t,e.childRefs[t])})},t.prototype.render=function(){var e=this,t=[];for(var n in this.state.children)!function(n){var r=e.state.children[n];if(r){var i="string"!=typeof r.ref,o=e.props.childFactory(r),a=function(t){e.childRefs[n]=t};o===r&&i&&(a=(0,l.default)(r.ref,a)),t.push(d.default.cloneElement(o,{key:n,ref:a}))}}(n);var r=s({},this.props);return delete r.transitionLeave,delete r.transitionName,delete r.transitionAppear,delete r.transitionEnter,delete r.childFactory,delete r.transitionLeaveTimeout,delete r.transitionEnterTimeout,delete r.transitionAppearTimeout,delete r.component,d.default.createElement(this.props.component,r,t)},t}(d.default.Component);v.displayName="TransitionGroup",v.propTypes={},v.defaultProps=m,t.default=v,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=i;var o=n(20),a=(r(o),n(6)),s=r(a);t.nameShape=s.default.oneOfType([s.default.string,s.default.shape({enter:s.default.string,leave:s.default.string,active:s.default.string}),s.default.shape({enter:s.default.string,enterActive:s.default.string,leave:s.default.string,leaveActive:s.default.string,appear:s.default.string,appearActive:s.default.string})])},function(e,t,n){function r(e,t,n){var r=l[t];if(void 0===r&&(r=o(t)),r){if(void 0===n)return e.style[r];e.style[r]=c(r,n)}}function i(e,t){for(var n in t)t.hasOwnProperty(n)&&r(e,n,t[n])}function o(e){var t=u(e),n=s(t);return l[t]=l[e]=l[n]=n,n}function a(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):r(arguments[0],arguments[1],arguments[2])}var s=n(1104),u=n(1105),l={float:"cssFloat"},c=n(1108);e.exports=a,e.exports.set=a,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(t,n){return t[n]=r(e,n||""),t},{}):r(e,t||"")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(59),s=r(a),u=scrivito.legacyCreateConnectedComponent({propTypes:{workspace:o.default.instanceOf(s.default).isRequired},shouldRenderLoaderError:!0,render:function(){var e=this.props.workspace.owners;if(!e.length)return null;var t=e[0],n=void 0;return e.length>1&&(n=React.createElement("span",{className:"amount"},"+",e.length-1)),React.createElement("span",{className:"scrivito_list_meta"},React.createElement("span",{className:"first-owner"},React.createElement("i",{className:"scrivito_icon scrivito_icon_user"}),t.description),n)},_scrivitoRenderWhileLoader:function(){return React.createElement(scrivito.Loader,null)}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(1132),s=r(a),u=n(121),l=r(u),c=n(59),d=r(c),f=n(579),p=r(f),h=scrivito.legacyCreateConnectedComponent({propTypes:{workspaces:o.default.arrayOf(o.default.instanceOf(d.default)).isRequired,isActive:o.default.bool,includeInaccessible:o.default.bool},render:function(){var e=this;return React.createElement("div",{className:"scrivito_property_padding"},React.createElement("ul",{className:"scrivito_list_big"},this.props.workspaces.map(function(t){return React.createElement(_,{key:t.id,workspace:t,isActive:e.props.isActive,includeInaccessible:e.props.includeInaccessible})})))}}),_=scrivito.legacyCreateConnectedComponent({propTypes:{workspace:o.default.instanceOf(d.default).isRequired,isActive:o.default.bool,includeInaccessible:o.default.bool},shouldRenderLoaderError:!0,render:function(){return this._isDisplayable()?React.createElement("li",{className:this._className(),title:this._hint(),onClick:this._onClick},React.createElement("span",{className:"scrivito_list_group"},React.createElement("i",{className:this._iconClassName()})),React.createElement("span",{className:"scrivito_list_group"},React.createElement("span",{className:"scrivito_list_topic"},this.props.workspace.titleForEditor),React.createElement(p.default,{workspace:this.props.workspace})),React.createElement(m,{workspace:this.props.workspace})):null},_scrivitoRenderWhileLoader:function(){return React.createElement(scrivito.Loader,null)},_className:function(){return this.props.isActive?"active":this._isDisabled()?"scrivito_disable":void 0},_hint:function(){return this._canReadWorkspace()?this._isSelectable()?this.props.workspace.isMutable()?scrivito.t("sidebar.workspace_list.workspace_item.hint.is_selectable"):scrivito.t("sidebar.workspace_list.workspace_item.hint.is_published"):scrivito.t("sidebar.workspace_list.workspace_item.hint"):scrivito.t("sidebar.workspace_list.workspace_item.hint.is_disabled")},_iconClassName:function(){var e="scrivito_icon scrivito_icon_ws";return this.props.workspace.isPublished()&&(e+="_published"),e},_onClick:function(e){this._isSelectable()&&(0,s.default)(this.props.workspace),e.stopPropagation()},_isDisplayable:function(){return this._canReadWorkspace()||this.props.includeInaccessible},_isSelectable:function(){return this._canReadWorkspace()&&!this.props.isActive},_isDisabled:function(){return this._isDisplayable()&&!this._isSelectable()},_canReadWorkspace:function(){return l.default.currentSession().can("read",this.props.workspace)}}),m=scrivito.legacyCreateConnectedComponent({propTypes:{workspace:o.default.instanceOf(d.default).isRequired},render:function(){return this._isPresent()?React.createElement("span",{className:"scrivito_list_group_action scrivito_delete_button",title:scrivito.t("sidebar.workspace_list.workspace_item.delete"),onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_trash"})):null},_isPresent:function(){return l.default.currentSession().can("delete",this.props.workspace)},_onClick:function(e){scrivito.deleteWorkspace(this.props.workspace),e.stopPropagation()}});t.default=h},,,,,function(e,t,n){"use strict";var r=n(586);(function(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})(r).boot()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){scrivito.client.init(),scrivito.uiAdapter=new c.default,$(o)}function o(){a(),s(),scrivito.init(scrivito.ui_config()),scrivito.Gui.start(),(0,m.default)(window)}function a(){f.default.init(window),document.body.id="scrivito_ui",document.body.innerHTML='\n <div class="iframe_wrapper">\n <iframe name="scrivito_application" src="'+(0,h.default)(window.location.href)+'"></iframe>\n </div>\n '}function s(){var e=$("iframe[name=scrivito_application]");scrivito.applicationWindow=scrivito.cmsWindow.from(e),e.on("load",u)}function u(){var e=scrivito.applicationDocument(),t=scrivito.applicationWindow.browserWindow(),n=!!e.pageConfig(),r=!!t.scrivito;n||r||(t.jQuery||(t.jQuery=jQuery),t.$||(t.$=$),e.installRailsApi(),e.connect())}Object.defineProperty(t,"__esModule",{value:!0}),t.boot=i,n(587),n(621),n(622),n(648),n(139),n(649),n(654),n(987),n(988),n(993),n(1141),n(1142),n(220);var l=n(570),c=r(l),d=n(129),f=r(d),p=n(348),h=r(p),_=n(1143),m=r(_)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(6),o=r(i),a=n(20),s=r(a),u=n(31),l=r(u);n(312);var c=n(49),d=r(c);n(602),n(313),n(459),n(603);var f=n(32),p=r(f);window.PropTypes=o.default,window.React=s.default,window.React.PropTypes=o.default,window.ReactDOM=l.default,window.$=d.default,window.jQuery=d.default,window.Handlebars=p.default},function(e,t,n){"use strict";var r=n(226),i=n(589),o=n(590);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,s,u){if(i(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,s,u],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var i=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function i(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||D}function o(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||D}function a(){}function s(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||D}function u(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)L.call(t,r)&&!P.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:k,type:e,key:o,ref:a,props:i,_owner:j.current}}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===k}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function d(e,t,n,r){if(A.length){var i=A.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function p(e,t,n,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case k:case M:case C:case E:a=!0}}if(a)return n(i,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){o=e[s];var u=t+h(o,s);a+=p(o,u,n,i)}else if(null===e||void 0===e?u=null:(u=T&&e[T]||e["@@iterator"],u="function"==typeof u?u:null),"function"==typeof u)for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=t+h(o,s++),a+=p(o,u,n,i);else"object"===o&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function h(e,t){return"object"==typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function _(e,t){e.func.call(e.context,t,e.count++)}function m(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,r,n,b.thatReturnsArgument):null!=e&&(l(e)&&(t=i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n,e={$$typeof:k,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function v(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(R,"$&/")+"/"),t=d(t,o,r,i),null==e||p(e,"",m,t),f(t)}/** @license React v16.2.0
155
+ "use strict";!function(i,o,a){o[i]=o[i]||a(),void 0!==e&&e.exports?e.exports=o[i]:void 0!==(r=function(){return o[i]}.call(t,n,t,e))&&(e.exports=r)}("Promise",void 0!==i?i:void 0,function(){function e(e,t){p.add(e,t),f||(f=_(p.drain))}function t(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function n(){for(var e=0;e<this.chain.length;e++)r(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function r(e,n,r){var i,o;try{!1===n?r.reject(e.msg):(i=!0===n?e.msg:n.call(void 0,e.msg),i===r.promise?r.reject(TypeError("Promise-chain cycle")):(o=t(i))?o.call(i,r.resolve,r.reject):r.resolve(i))}catch(e){r.reject(e)}}function i(r){var o,s=this;if(!s.triggered){s.triggered=!0,s.def&&(s=s.def);try{(o=t(r))?e(function(){var e=new u(s);try{o.call(r,function(){i.apply(e,arguments)},function(){a.apply(e,arguments)})}catch(t){a.call(e,t)}}):(s.msg=r,s.state=1,s.chain.length>0&&e(n,s))}catch(e){a.call(new u(s),e)}}}function a(t){var r=this;r.triggered||(r.triggered=!0,r.def&&(r=r.def),r.msg=t,r.state=2,r.chain.length>0&&e(n,r))}function s(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)}(i)}function u(e){this.def=e,this.triggered=!1}function l(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function c(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var r=new l(this);this.then=function(t,i){var o={success:"function"!=typeof t||t,failure:"function"==typeof i&&i};return o.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");o.resolve=e,o.reject=t}),r.chain.push(o),0!==r.state&&e(n,r),o.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){i.call(r,e)},function(e){a.call(r,e)})}catch(e){a.call(r,e)}}var d,f,p,h=Object.prototype.toString,_=void 0!==o?function(e){return o(e)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){d=function(e,t,n){return e[t]=n,e}}p=function(){function e(e,t){this.fn=e,this.self=t,this.next=void 0}var t,n,r;return{add:function(i,o){r=new e(i,o),n?n.next=r:t=r,n=r,r=void 0},drain:function(){var e=t;for(t=n=f=void 0;e;)e.fn.call(e.self),e=e.next}}}();var m=d({},"constructor",c,!1);return c.prototype=m,d(m,"__NPO__",0,!1),d(c,"resolve",function(e){var t=this;return e&&"object"==typeof e&&1===e.__NPO__?e:new t(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),d(c,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),d(c,"all",function(e){var t=this;return"[object Array]"!=h.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,o=Array(i),a=0;s(t,e,function(e,t){o[e]=t,++a===i&&n(o)},r)})}),d(c,"race",function(e){var t=this;return"[object Array]"!=h.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");s(t,e,function(e,t){n(t)},r)})}),c})}).call(t,function(){return this}(),n(104).setImmediate)},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n,i){r(this,e),this._kit=t,this._ui=n,this._options=i}return i(e,[{key:"assetPath",value:function(e){var t=this._options.assetsUrl+"/"+e,n=this._ui.options.ui.assetPathResolver;return void 0!==n&&(t=n(t)),t}},{key:"translate",value:function(e){return this._ui.translate(e)}}]),e}();t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("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&&(e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;s=l=u=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=o,n=a,r=!0}},u=n(72),l=r(u),c=n(5),d=r(c),f=n(49),p=r(f),h=function(e){function t(e,n){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._element=e,this._options=d.default.defaults(n,{minValue:0,maxValue:1,defaultValue:0}),this._value=this._options.defaultValue,this._sliderElement=this._element.querySelector(".imglykit-slider-slider"),this._dotElement=this._element.querySelector(".imglykit-slider-dot"),this._centerDotElement=this._element.querySelector(".imglykit-slider-center-dot"),this._fillElement=this._element.querySelector(".imglykit-slider-fill"),this._backgroundElement=this._element.querySelector(".imglykit-slider-background"),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onCenterDotClick=this._onCenterDotClick.bind(this),this._onBackgroundClick=this._onBackgroundClick.bind(this),this._backgroundElement.addEventListener("click",this._onBackgroundClick),this._fillElement.addEventListener("click",this._onBackgroundClick),this._handleDot()}return o(t,e),a(t,[{key:"setValue",value:function(e){this._value=e;var t=this._options,n=t.maxValue,r=t.minValue,i=n-r,o=(e-r)/i,a=this._sliderElement.offsetWidth;this._setX(a*o)}},{key:"_setX",value:function(e){this._xPosition=e,this._dotElement.style.left=e+"px";var t=this._sliderElement.offsetWidth/2,n=e-t;this._fillElement.style.width=Math.abs(n)+"px",this._fillElement.style.left=n<0?t-Math.abs(n)+"px":t+"px"}},{key:"_handleDot",value:function(){this._dotElement.addEventListener("mousedown",this._onMouseDown),this._dotElement.addEventListener("touchstart",this._onMouseDown),this._centerDotElement&&this._centerDotElement.addEventListener("click",this._onCenterDotClick)}},{key:"_onCenterDotClick",value:function(){this.setValue(this._options.defaultValue),this.emit("update",this._value)}},{key:"_onBackgroundClick",value:function(e){var t=d.default.getEventPosition(e),n=this._sliderElement.getBoundingClientRect();n=new p.default(n.left,n.y);var r=t.clone().subtract(n);this._setX(r.x),this._updateValue()}},{key:"_onMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button){e.preventDefault();var t=d.default.getEventPosition(e);document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("touchmove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("touchend",this._onMouseUp);var n=this._dotElement.getBoundingClientRect(),r=this._sliderElement.getBoundingClientRect();this._initialSliderX=n.left-r.left,this._initialMousePosition=t}}},{key:"_onMouseMove",value:function(e){e.preventDefault();var t=d.default.getEventPosition(e),n=t.subtract(this._initialMousePosition),r=.5*this._dotElement.offsetWidth,i=this._initialSliderX+n.x+r,o=this._sliderElement.offsetWidth;i=Math.max(0,Math.min(i,o)),this._setX(i),this._updateValue()}},{key:"_updateValue",value:function(){var e=this._sliderElement.offsetWidth,t=this._options,n=t.minValue,r=t.maxValue,i=this._xPosition/e,o=n+(r-n)*i;this.emit("update",o)}},{key:"_onMouseUp",value:function(){document.removeEventListener("mousemove",this._onMouseMove),document.removeEventListener("touchmove",this._onMouseMove),document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("touchend",this._onMouseUp)}}],[{key:"template",get:function(){return function(e){return'<div class="imglykit-slider" id="'+(void 0===e.id?"":e.id)+'"> <div class="imglykit-slider-minus"> <img src="'+e.helpers.assetPath("ui/night/slider/minus.png")+'" /> </div> <div class="imglykit-slider-slider"> <div class="imglykit-slider-content"> <div class="imglykit-slider-background"></div> <div class="imglykit-slider-fill"></div> <div class="imglykit-slider-center-dot"></div> <div class="imglykit-slider-dot"></div> </div> </div> <div class="imglykit-slider-plus"> <img src="'+e.helpers.assetPath("ui/night/slider/plus.png")+'" /> </div></div>'}}}]),t}(l.default);t.default=h,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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&&(e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(101),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(e){function t(){r(this,t),null!=e&&e.apply(this,arguments)}return i(t,e),o(t,[{key:"_setX",value:function(e){this._xPosition=e,this._dotElement.style.left=e+"px",this._fillElement.style.width=e+"px"}}],[{key:"template",get:function(){return function(e){return'<div class="imglykit-slider" id="'+(void 0===e.id?"":e.id)+'"> <div class="imglykit-slider-minus"> <img src="'+e.helpers.assetPath("ui/night/slider/minus.png")+'" /> </div> <div class="imglykit-slider-slider"> <div class="imglykit-slider-content"> <div class="imglykit-slider-background"></div> <div class="imglykit-slider-fill"></div> <div class="imglykit-slider-dot"></div> </div> </div> <div class="imglykit-slider-plus"> <img src="'+e.helpers.assetPath("ui/night/slider/plus.png")+'" /> </div></div>'}}}]),t}(s.default);t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;s=l=u=void 0,r=!1;var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=o,n=a,r=!0}},l=n(72),c=r(l),d=n(5),f=r(d),p=n(6),h=r(p),_=n(49),m=r(_),v=function(e){function t(e,n){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this._ui=e,this._element=n,this._visible=!1,this._loaded=!1,this._overlay=this._element.querySelector(".imglykit-color-picker-overlay"),this._currentColorCanvas=this._element.querySelector(".imglykit-color-picker-color"),this._alphaCanvas=this._element.querySelector("canvas.imglykit-color-picker-alpha"),this._alphaKnob=this._element.querySelector(".imglykit-color-picker-alpha-container .imglykit-transparent-knob"),this._hueCanvas=this._element.querySelector("canvas.imglykit-color-picker-hue"),this._hueKnob=this._element.querySelector(".imglykit-color-picker-hue-container .imglykit-transparent-knob"),this._saturationCanvas=this._element.querySelector("canvas.imglykit-color-picker-saturation"),this._saturationKnob=this._element.querySelector(".imglykit-color-picker-saturation-container .imglykit-transparent-knob"),this._transparencyImage=new Image,this._transparencyImage.src=e.helpers.assetPath("ui/night/transparency.png"),this._transparencyImage.addEventListener("load",this._onTransparencyImageLoad.bind(this)),this._onAlphaCanvasDown=this._onAlphaCanvasDown.bind(this),this._onAlphaCanvasDrag=this._onAlphaCanvasDrag.bind(this),this._onAlphaCanvasUp=this._onAlphaCanvasUp.bind(this),this._onHueCanvasDown=this._onHueCanvasDown.bind(this),this._onHueCanvasDrag=this._onHueCanvasDrag.bind(this),this._onHueCanvasUp=this._onHueCanvasUp.bind(this),this._onSaturationCanvasDown=this._onSaturationCanvasDown.bind(this),this._onSaturationCanvasDrag=this._onSaturationCanvasDrag.bind(this),this._onSaturationCanvasUp=this._onSaturationCanvasUp.bind(this),this._onElementClick=this._onElementClick.bind(this),this._handleToggle(),this._handleAlphaKnob(),this._handleHueKnob(),this._handleSaturationKnob()}return a(t,e),s(t,[{key:"_onTransparencyImageLoad",value:function(){this._loaded=!0,this._render()}},{key:"_handleToggle",value:function(){this._element.addEventListener("click",this._onElementClick)}},{key:"_onElementClick",value:function(e){e.target!==this._element&&e.target!==this._currentColorCanvas||(this._visible?(this.hide(),this.emit("hide")):(this.show(),this.emit("show")))}},{key:"hide",value:function(){this._overlay.classList.remove("imglykit-visible"),this._visible=!1}},{key:"show",value:function(){this._overlay.classList.add("imglykit-visible"),this._visible=!0}},{key:"setValue",value:function(e){this._value=e.clone();var t=this._value.toHSV(),n=i(t,3),r=n[0],o=n[1],a=n[2];this._hsvColor={h:r,s:o,v:a},this._positionKnobs(),this._render()}},{key:"_positionKnobs",value:function(){this._positionAlphaKnob(),this._positionHueKnob(),this._positionSaturationKnob()}},{key:"_positionAlphaKnob",value:function(){var e=this._alphaCanvas,t=new m.default(e.width,e.height),n=this._value.a*t.x;this._alphaKnob.style.left=n+"px"}},{key:"_positionHueKnob",value:function(){var e=this._hueCanvas,t=new m.default(e.width,e.height),n=this._hsvColor.h*t.y;this._hueKnob.style.top=n+"px"}},{key:"_positionSaturationKnob",value:function(){var e=this._saturationCanvas,t=new m.default(e.width,e.height),n=this._hsvColor.s*t.x;this._saturationKnob.style.left=n+"px";var r=(1-this._hsvColor.v)*t.y;this._saturationKnob.style.top=r+"px"}},{key:"_render",value:function(){this._loaded&&(this._renderCurrentColor(),this._renderAlpha(),this._renderHue(),this._renderSaturation())}},{key:"_renderCurrentColor",value:function(){var e=this._currentColorCanvas,t=e.getContext("2d"),n=t.createPattern(this._transparencyImage,"repeat");t.rect(0,0,e.width,e.height),t.fillStyle=n,t.fill(),t.fillStyle=this._value.toRGBA(),t.fill()}},{key:"_renderAlpha",value:function(){var e=this._alphaCanvas,t=e.getContext("2d"),n=t.createPattern(this._transparencyImage,"repeat");t.rect(0,0,e.width,e.height),t.fillStyle=n,t.fill();var r=t.createLinearGradient(0,0,e.width,e.height),i=this._value.clone();i.a=0,r.addColorStop(0,i.toRGBA()),r.addColorStop(1,this._value.toHex()),t.fillStyle=r,t.fill()}},{key:"_renderHue",value:function(){for(var e=this._hueCanvas,t=e.getContext("2d"),n=new h.default,r=0;r<e.height;r++){var i=r/e.height;n.fromHSV(i,1,1),t.strokeStyle=n.toRGBA(),t.beginPath(),t.moveTo(0,r),t.lineTo(e.width,r),t.stroke()}}},{key:"_renderSaturation",value:function(){for(var e=this._saturationCanvas,t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),r=new h.default(1,0,0,1),i=0;i<e.height;i++)for(var o=(e.height-i)/e.height,a=0;a<e.width;a++){var s=a/e.width;r.fromHSV(this._hsvColor.h,s,o);var u=r.r,l=r.g,c=r.b,d=r.a,f=4*(i*e.width+a);n.data[f]=255*u,n.data[f+1]=255*l,n.data[f+2]=255*c,n.data[f+3]=255*d}t.putImageData(n,0,0)}},{key:"_handleAlphaKnob",value:function(){this._alphaCanvas.addEventListener("mousedown",this._onAlphaCanvasDown),this._alphaCanvas.addEventListener("touchstart",this._onAlphaCanvasDown)}},{key:"_onAlphaCanvasDown",value:function(e){e.preventDefault(),this._onAlphaCanvasDrag(e),document.addEventListener("mousemove",this._onAlphaCanvasDrag),document.addEventListener("touchmove",this._onAlphaCanvasDrag),document.addEventListener("mouseup",this._onAlphaCanvasUp),document.addEventListener("touchend",this._onAlphaCanvasUp)}},{key:"_onAlphaCanvasDrag",value:function(e){e.preventDefault();var t=this._alphaCanvas,n=new m.default(t.width,t.height),r=f.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,a=i.top,s=new m.default(o,a),u=r.subtract(s);u.clamp(new m.default(0,0),n),this._alphaKnob.style.left=u.x+"px",this._value.a=u.x/n.x,this._updateColor()}},{key:"_onAlphaCanvasUp",value:function(){document.removeEventListener("mousemove",this._onAlphaCanvasDrag),document.removeEventListener("touchmove",this._onAlphaCanvasDrag),document.removeEventListener("mouseup",this._onAlphaCanvasUp),document.removeEventListener("touchend",this._onAlphaCanvasUp)}},{key:"_handleHueKnob",value:function(){this._hueCanvas.addEventListener("mousedown",this._onHueCanvasDown),this._hueCanvas.addEventListener("touchstart",this._onHueCanvasDown)}},{key:"_onHueCanvasDown",value:function(e){e.preventDefault(),this._onHueCanvasDrag(e),document.addEventListener("mousemove",this._onHueCanvasDrag),document.addEventListener("touchmove",this._onHueCanvasDrag),document.addEventListener("mouseup",this._onHueCanvasUp),document.addEventListener("touchend",this._onHueCanvasUp)}},{key:"_onHueCanvasDrag",value:function(e){e.preventDefault();var t=this._hueCanvas,n=new m.default(t.width,t.height),r=f.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,a=i.top,s=new m.default(o,a),u=r.subtract(s);u.clamp(new m.default(0,0),n),this._hueKnob.style.top=u.y+"px",u.divide(n),this._hsvColor.h=u.y,this._updateColor()}},{key:"_onHueCanvasUp",value:function(){document.removeEventListener("mousemove",this._onHueCanvasDrag),document.removeEventListener("touchmove",this._onHueCanvasDrag),document.removeEventListener("mouseup",this._onHueCanvasUp),document.removeEventListener("touchend",this._onHueCanvasUp)}},{key:"_handleSaturationKnob",value:function(){this._saturationCanvas.addEventListener("mousedown",this._onSaturationCanvasDown),this._saturationCanvas.addEventListener("touchstart",this._onSaturationCanvasDown)}},{key:"_onSaturationCanvasDown",value:function(e){e.preventDefault(),this._onSaturationCanvasDrag(e),document.addEventListener("mousemove",this._onSaturationCanvasDrag),document.addEventListener("touchmove",this._onSaturationCanvasDrag),document.addEventListener("mouseup",this._onSaturationCanvasUp),document.addEventListener("touchend",this._onSaturationCanvasUp)}},{key:"_onSaturationCanvasDrag",value:function(e){e.preventDefault();var t=this._saturationCanvas,n=new m.default(t.width,t.height),r=f.default.getEventPosition(e),i=t.getBoundingClientRect(),o=i.left,a=i.top,s=new m.default(o,a),u=r.subtract(s);u.clamp(0,t.width),this._saturationKnob.style.left=u.x+"px",this._saturationKnob.style.top=u.y+"px",u.divide(n),this._hsvColor.s=u.x,this._hsvColor.v=1-u.y,this._updateColor()}},{key:"_onSaturationCanvasUp",value:function(){document.removeEventListener("mousemove",this._onSaturationCanvasDrag),document.removeEventListener("touchmove",this._onSaturationCanvasDrag),document.removeEventListener("mouseup",this._onSaturationCanvasUp),document.removeEventListener("touchend",this._onSaturationCanvasUp)}},{key:"_updateColor",value:function(){this._value.fromHSV(this._hsvColor.h,this._hsvColor.s,this._hsvColor.v),this.emit("update",this._value),this._render()}}],[{key:"template",get:function(){return function(e){return'<div class="imglykit-color-picker" id="'+(void 0===e.id?"":e.id)+'"> <canvas class="imglykit-color-picker-color" width="34" height="34"></canvas> <div class="imglykit-controls-item-label">'+(void 0===e.label?"":e.label)+'</div> <div class="imglykit-color-picker-overlay"> <div class="imglykit-color-picker-alpha-container"> <canvas class="imglykit-color-picker-alpha" width="200" height="30"></canvas> <div class="imglykit-transparent-knob"></div> </div> <div class="imglykit-color-picker-saturation-container"> <canvas class="imglykit-color-picker-saturation" width="160" height="160"></canvas> <div class="imglykit-transparent-knob"></div> </div> <div class="imglykit-color-picker-hue-container"> <canvas class="imglykit-color-picker-hue" width="30" height="160"></canvas> <div class="imglykit-transparent-knob"></div> </div> </div></div>'}}}]),t}(c.default);t.default=v,e.exports=t.default},function(e,t,n){(function(e,r){function i(e,t){this._id=e,this._clearFn=t}var o=n(105).nextTick,a=Function.prototype.apply,s=Array.prototype.slice,u={},l=0;t.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=l++,r=!(arguments.length<2)&&s.call(arguments,1);return u[n]=!0,o(function(){u[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete u[e]}}).call(t,n(104).setImmediate,n(104).clearImmediate)},function(e,t,n){function r(){c=!1,s.length?l=s.concat(l):d=-1,l.length&&i()}function i(){if(!c){var e=setTimeout(r);c=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s[d].run();d=-1,t=l.length}s=null,c=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function a(){}var s,u=e.exports={},l=[],c=!1,d=-1;u.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new o(e,t)),1!==l.length||c||setTimeout(i,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}}])})},function(e,t,n){"use strict";function r(){return a||i(),a}function i(){a=$('meta[name="scrivito-asset-url-base"]').attr("content")||o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o="https://assets.scrivito.com/sjs/1.0.0-52-ga45d8ed9",a=void 0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e?e.title()||"":""}function o(e){return(e&&"_blank"===e.target()?"active":"")+" scrivito_link_icon scrivito_icon_new_window"}function a(e){var t=e.onChange,n=e.onToggle,r=e.targetClass,i=e.title;return React.createElement("div",{className:"scrivito_link_content"},React.createElement("span",{className:"scrivito_link_icon scrivito_icon_title",title:scrivito.t("link_item_component.link.title_placeholder")}),React.createElement("input",{type:"text",placeholder:scrivito.t("link_item_component.link.title_placeholder"),onChange:t,value:i}),React.createElement("span",{className:r+" scrivito_icon_new_window_clickable",onClick:n,title:scrivito.t("link_item_component.link.new_tab")}))}function s(e){var t=e.targetClass,n=e.title;return React.createElement("div",{className:"scrivito_link_content"},React.createElement("span",{className:"scrivito_link_icon scrivito_icon_title",title:scrivito.t("link_item_component.link.title_placeholder")}),React.createElement("span",{className:"read_only"},n),React.createElement("span",{className:t,title:scrivito.t("link_item_component.link.new_tab")}))}function u(e){var t=e.link,n=e.clear;return t?React.createElement("span",{className:"scrivito_icon scrivito_icon_cancel",onClick:n}):null}function l(e){var t=e.onClick;return React.createElement("div",{className:"scrivito_link_action",onClick:t,title:scrivito.t("link_item_component.link.delete")},React.createElement("i",{className:"scrivito_icon scrivito_icon_trash"}))}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=n(6),f=r(d),p=n(3),h=r(p),_=n(35),m=r(_),v=n(63),g=n(76),y=r(g),b=n(122),w=r(b),k=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.LinkItem",propTypes:{link:f.default.instanceOf(m.default),readOnly:f.default.bool.isRequired,onChange:f.default.func.isRequired},render:function(){return this.props.readOnly?React.createElement(M,{link:this.props.link}):React.createElement("div",{className:"scrivito_link_item"},this._isLinklistItem()&&React.createElement("div",{className:"scrivito_link_drag"}),React.createElement("div",{className:"scrivito_link_content"},React.createElement("span",{className:"scrivito_link_icon scrivito_icon_link",title:scrivito.t("link_item_component.link.url_placeholder")}),this._renderDestinationInput(),React.createElement(u,{clear:this._onDelete,link:this.props.link}),React.createElement("span",{className:"scrivito_link_icon scrivito_icon_content_browser",onClick:this._selectObj})),React.createElement(T,{link:this.props.link,onChange:this._onTitleChange,onToggle:this._onTargetToggle}),this._showItemDeleteButton()&&React.createElement(l,{onClick:this.props.onDelete}))},_onDelete:function(e){e.preventDefault(),e.stopPropagation(),this.props.onChange(null)},_onTargetToggle:function(){var e="_blank"===this.props.link.target()?"":"_blank";this._signalUpdate({_target:e})},_onTitleChange:function(e){this._signalUpdate({_title:e.target.value})},_onUrlChange:function(e){var t=e.target.value;this._signalUpdate({_url:t,_objId:null})},_selectObj:function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=this._isInternal()?this.props.link.objId():"",r=n?[n]:[];(0,w.default)({selection:r,selectionMode:"single",standAlone:!1}).then(function(e){var n=e.isSelected,r=e.selection;if(n){var i=c(r,1),o=i[0],a=o?{_url:null,_objId:o}:{};t._signalUpdate(a)}})},_signalUpdate:function(e){if(!this.props.link)return void this.props.onChange(this._buildNewLink(e));if(!e._url&&!e._objId&&void 0===e._title&&void 0===e._target)return void this.props.onChange(null);var t=this.props.link;for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);this.props.onChange(t)},_renderDestinationInput:function(){return this._isInternal()?React.createElement(E,{link:this.props.link,select:this._selectObj}):React.createElement(x,{link:this.props.link,onChange:this._onUrlChange})},_buildNewLink:function(e){return new m.default({obj:e._objId?h.default.get(e._objId):null,target:"",url:e._url||""})},_isInternal:function(){return this.props.link&&this.props.link.isInternal()},_showItemDeleteButton:function(){return this._isLinklistItem()},_isLinklistItem:function(){return!!this.props.onDelete}}),M=(0,y.default)(function(e){var t=e.link;return React.createElement("div",{className:"scrivito_link_item"},React.createElement("div",{className:"scrivito_link_content"},React.createElement("span",{className:"scrivito_link_icon scrivito_icon_link",title:scrivito.t("link_item_component.link.url_placeholder")}),React.createElement(C,{link:t})),React.createElement(s,{targetClass:o(t),title:i(t)}))}),C=(0,y.default)(function(e){var t=e.link;return t?t.isInternal()?React.createElement(E,{link:t}):React.createElement("span",{className:"read_only"},t.url()):React.createElement("span",{className:"read_only"})}),E=(0,y.default)(function(e){var t=e.link,n=e.select;return React.createElement("span",{className:"read_only scrivito_link_description",onClick:n},React.createElement("span",{className:"scrivito_badge"},scrivito.t("link_item_component.link.internal")),React.createElement("span",{className:"scrivito_margin"}),(0,v.titleForObj)(t.obj()))}),x=(0,y.default)(function(e){var t=e.link,n=e.onChange;return React.createElement("input",{type:"text",placeholder:scrivito.t("link_item_component.link.url_placeholder"),onChange:n,value:t&&t.url()||""})}),T=(0,y.default)(function(e){var t=e.link,n=e.onChange,r=e.onToggle,u=o(t);return t?React.createElement(a,{onChange:n,onToggle:r,targetClass:u,title:i(t)}):React.createElement(s,{targetClass:u,title:""})});t.default=k},function(e,t,n){"use strict";function r(e,t){var n={};(0,i.each)(e,function(t,r){var i=u[r]||r;r!==i&&e.hasOwnProperty(i)?n[i]=e[i]:n[i]=t});var r=n.filters||t,o=n.filterContext||{};return delete n.filterContext,r&&(n.filters="function"==typeof r?r(o):r),(0,i.isEmpty)(n.filters)&&(n.filters=o._image?s.DEFINITION_FOR_IMAGE_CONTEXT:s.DEFAULT_DEFINITION_FOR_RAILS),n.inferCreationPresets=!1,n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(220),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=n(519),u={base_query:"baseQuery",base_preset:"basePreset",filter_context:"filterContext",selection_mode:"selectionMode"};t.default={open:function(e){return a.default.open(r(e,this.filters))},set base_preset(e){a.default.basePreset=e},get base_preset(){return a.default.basePreset},set base_query(e){a.default.baseQuery=e},get base_query(){return a.default.baseQuery},reset:function(){delete this.filters}}},function(e,t,n){var r,i,o,a;a=n(11),o=n(705),i=n(706),r=a({displayName:"DialogApp",dialogClassName:function(){return"scrivito_prompt_dialog scrivito_center_dialog scrivito_modal_prompt scrivito_show scrivito_red"},closeButtonText:function(){return"Close"},resolveAndClose:function(e){return this.props.promise.resolve(),this.closeDialog(e)},rejectAndClose:function(e){return this.props.promise.reject(),this.closeDialog(e)},closeDialog:function(e){return e.preventDefault(),ReactDOM.unmountComponentAtNode(ReactDOM.findDOMNode(this.props.container)),this.props.container.parentNode.removeChild(this.props.container)},render:function(){return React.createElement("div",null,React.createElement("div",{className:"scrivito_overlay two scrivito_show",style:{zIndex:4444444}}),React.createElement("div",{className:this.dialogClassName(),style:{zIndex:4444444}},React.createElement(o,{title:this.props.title,subtitle:this.props.subtitle}),React.createElement(i,{body:this.props.body}),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this.rejectAndClose},this.closeButtonText()))))}}),e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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 a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(231),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(0),c=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,o));return delete a.enable_create,a.field=o.field,a.operator=o.operator,a.expanded=!1!==o.expanded,a.children=[],a}return o(t,e),a(t,[{key:"deselect",value:function(){return(0,l.each)(this.children,function(e){e.active=!1})}},{key:"isExpanded",value:function(){return!!this.expanded}},{key:"hasActiveChildren",value:function(){return(0,l.some)(this.children,function(e){return e.isActive()})}}]),t}(u.default);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){(0,u.each)(e.preset,function(n,r){void 0!==n&&t.addValue(r,n,e.title)})}function a(e){return(0,u.select)(e.activeNodes(),function(e){return e.preset})}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=n(492),c=r(l),d=n(232),f=r(d),p=function(){function e(t){i(this,e),this.collector=new f.default(t)}return s(e,[{key:"generatePresetForCreate",value:function(){var e=new c.default,t=this.collector.findActiveFilterItems();return(0,u.each)(t,function(t){(0,u.each)(a(t),function(t){o(t,e)})}),e}},{key:"generatePresetForUpload",value:function(){return this.generatePresetForCreate()}}]),e}();t.default=p},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=n(40),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(){function e(){r(this,e),this.presetErrors={},this.presetValues={},this.titles={}}return i(e,[{key:"isValid",value:function(){return 0===(0,o.keys)(this.errors()).length}},{key:"values",value:function(){if(this.isValid())return this.presetValues;throw new Error(s.default.translate("content_browser.last_added.preset_error"))}},{key:"errors",value:function(){return this.presetErrors}},{key:"addValue",value:function(e,t,n){var r="_objClass"===e?"_obj_class":e;if(Object.prototype.hasOwnProperty.call(this.presetValues,r))return this.addError(r,this.titles[r],n);this.presetValues[r]=t,this.titles[r]=n}},{key:"addError",value:function(e,t,n){if(this.presetErrors[e])return this.presetErrors[e].push(n);this.presetErrors[e]=[t,n]}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=n(492),u=r(s),l=n(494),c=r(l),d=function(){function e(t){i(this,e),this.queryBuilder=new c.default(t)}return o(e,[{key:"generatePresetForUpload",value:function(){return new u.default}},{key:"generatePresetForCreate",value:function(){var e=new u.default,t=this.queryBuilder.searchRequest(),n=[],r=[];if((0,a.each)(t,function(e){(0,a.each)(e.params().query,function(e){if("equals"===e.operator){var t=e.field;if("_obj_class"===t||t===["_obj_class"]){var i=e.value;if(e.negate)i&&((0,a.isArray)(i)?r=r.concat(i):r.push(i));else{var o=void 0;o=(0,a.isArray)(i)?i:[i],n.push((0,a.without)(o,null))}}}})}),n.length>0){var i=a.intersection.apply(void 0,n),o=(0,a.difference)(i,r);1===o.length&&e.addValue("_obj_class",o[0])}return e}}]),e}();t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return e.hasQuery()?(0,f.default)(e.query()):a(e)}function a(e){if(e.hasField())return c.default.where((0,_.camelCase)(e.field()),(0,_.camelCase)(e.operator()),e.values())}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=n(3),c=r(l),d=n(495),f=r(d),p=n(232),h=r(p),_=n(19),m=function(){function e(t){i(this,e),this.filter=t,this.collector=new h.default(this.filter)}return s(e,[{key:"searchRequest",value:function(){var e=[];return(0,u.each)(this.collector.findActiveFilterItems(),function(t){var n=o(t);n&&e.push(n)}),e}}]),e}();t.default=m},function(e,t,n){"use strict";function r(e){return e.toBasicObjSearch?e.toBasicObjSearch():(0,o.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(496),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e){return new a.default((0,i.omit)(e,"sortBy","sortDirection"))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=n(48),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){"use strict";function r(e){return e.shape({subscribe:e.func.isRequired,dispatch:e.func.isRequired,getState:e.func.isRequired})}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){function o(){v===m&&(v=m.slice())}function u(){return _}function l(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return o(),v.push(e),function(){if(t){t=!1,o();var n=v.indexOf(e);v.splice(n,1)}}}function c(e){if(!Object(i.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,_=h(_,e)}finally{g=!1}for(var t=m=v,n=0;n<t.length;n++)t[n]();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,c({type:s.INIT})}function f(){var e,t=l;return e={subscribe:function(e){function n(){e.next&&e.next(u())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[a.a]=function(){return this},e}var p;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,_=t,m=[],v=m,g=!1;return c({type:s.INIT}),p={dispatch:c,subscribe:l,getState:u,replaceReducer:d},p[a.a]=f,p}n.d(t,"a",function(){return s}),t.b=r;var i=n(499),o=n(501),a=n.n(o),s={INIT:"@@redux/INIT"}},function(e,t,n){"use strict";function r(e){if(!Object(a.a)(e)||Object(i.a)(e)!=s)return!1;var t=Object(o.a)(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}var i=n(730),o=n(735),a=n(737),s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,n){"use strict";var r=n(731),i=r.a.Symbol;t.a=i},function(e,t,n){e.exports=n(738)},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],i=t.slice(0,-1);return function(){return i.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}t.a=r},function(e,t){var n;n={defaultExpansionState:function(){return{open:this.props.filter.isExpanded()}},arrowHandleClick:function(){return this.setState({open:!this.state.open})},renderArrowTag:function(){return React.createElement("div",{className:"scrivito-content-browser-hierarchy-arrow",onClick:this.arrowHandleClick})},openClassSetOptions:function(){return this.state.open?"open":"closed"}},e.exports=n},function(e,t){var n;n={renderHierarchyLabelTitle:function(e){return React.createElement("div",{className:"scrivito-content-browser-hierarchy-label"},React.createElement("span",null,e))}},e.exports=n},function(e,t,n){var r,i;r=n(505),i={mixins:[r],optionLabelToggleClick:function(){return this.props.filter.toggleActive()},activeClassName:function(){return this.props.filter.isActive()?"active":""},renderOptionFilterTitle:function(){return this.renderHierarchyLabelTitle(this.props.filter.title)}},e.exports=i},function(e,t,n){var r,i,o;r=n(40).default,o=n(11),i=o({render:function(){return React.createElement("div",{className:"scrivito-content-browser-list"},React.createElement("div",{className:"scrivito-content-browser-list-head"},React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",null),React.createElement("th",null,r.translate("content_browser.table_view.title")),React.createElement("th",null,r.translate("content_browser.table_view.type")),React.createElement("th",null,r.translate("content_browser.table_view.file_type")),React.createElement("th",null,r.translate("content_browser.table_view.file_size")),React.createElement("th",null,r.translate("content_browser.table_view.last_change")))))),this.props.children)}}),e.exports=i},function(e,t,n){var r,i,o,a,s,u,l,c,d,f,p;o=n(6),f=n(0),r=n(3).default,c=n(755).default,i=n(756),d=n(509),a=n(236).SINGLE_SELECTION_MODE,p=n(1),u=p.TransformationSourceInvalidError,l=p.TransformationSourceTooLargeError,s=scrivito.legacyCreateConnectedComponent({displayName:"ThumbnailItem",propTypes:{objId:o.string.isRequired,handleSelectClick:o.func.isRequired,itemClasses:o.string.isRequired,selectClasses:o.string.isRequired,selectionMode:o.string.isRequired,selectedObjs:o.arrayOf(o.string)},_obj:function(){return r.get(this.props.objId)},_title:function(){return scrivito.titleForObj(this._obj())},_subtitle:function(){return scrivito.descriptionForObj(this._obj())},_itemToolTip:function(){var e;return e=this._title(),null!=this._subtitle()&&(e+="\n"+this._subtitle()),e},_mimeTypeIconClassName:function(e){var t;return t="scrivito_icon ",t+=c(e)},_isTransformable:function(e){var t;return t=["image/jpeg","image/gif","image/png"],f.contains(t,e)},_handleImageTransformation:function(e){var t,n;try{return n=e.optimizeFor({width:260,height:140}),React.createElement("img",{src:n.url()})}catch(e){if((t=e)instanceof l)return React.createElement("div",{className:"scrivito-content-browser-preview image-too-large"});if(t instanceof u)return React.createElement("div",{className:"scrivito-content-browser-preview image-invalid"});throw t}},_previewImage:function(){var e,t;return e=this._obj().get("blob","binary"),t=null!=e?e.raw().contentType():void 0,this._isTransformable(t)?this._handleImageTransformation(e):t&&0===t.indexOf("image/")?React.createElement("img",{src:e.url()}):React.createElement("span",{className:this._mimeTypeIconClassName(t)})},render:function(){return React.createElement("li",{className:this.props.itemClasses},React.createElement("div",{className:"scrivito-content-browser-item-wrapper",onClick:this.props.handleSelectClick},React.createElement("div",{className:"scrivito-content-browser-preview"},React.createElement(i,{get:function(e){return function(){return e._previewImage()}}(this)})),React.createElement("div",{className:this.props.selectClasses},React.createElement(i,{className:"scrivito-content-browser-thumbnails-name",getTitle:function(e){return function(){return e._itemToolTip()}}(this),get:function(e){return function(){return e._title()}}(this)}),React.createElement(i,{className:"scrivito-content-browser-thumbnails-size",get:function(e){return function(){return e._subtitle()}}(this)}),this.props.selectionMode!==a?React.createElement("span",{className:"scrivito-content-browser-thumbnails-select select-item"}):void 0)))}}),e.exports=d(s)},function(e,t,n){var r,i,o;o=n(0),r=n(11),i=function(e){return r({displayName:"InspectedItem",isSelectedItem:function(e){return o.contains(this.props.selectedObjs,e)},getItemClasses:function(){var e;return e="content-browser-item ",this.isSelectedItem(this.props.objId)&&(e+="active"),e},selectClass:function(){var e;return e=this.props.baseSelectClass,this.isSelectedItem(this.props.objId)&&(e+=" active"),e},handleSelectClick:function(){return this.props.toggleObjSelection(this.props.objId)},render:function(){return React.createElement(e,{itemClasses:this.getItemClasses(),handleSelectClick:this.handleSelectClick,selectClasses:this.selectClass(),selectedObjs:this.props.selectedObjs,objId:this.props.objId,selectionMode:this.props.selectionMode})}})},e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(319),a=r(o),s=n(40),u=r(s),l={itemClassName:function(){var e="scrivito-content-browser-add";return this.props.objCreation.isActive()||(e+=" disabled"),e},iconClassName:function(){return this.props.objCreation.isActive()?"scrivito_icon scrivito_icon_plus":"scrivito_icon scrivito_icon_disabled"},creationNotPossibleBody:function(e){return React.createElement("ul",null,e.nodeTitles.map(function(e){return React.createElement("li",{key:e},e)}))},presetConflictBody:function(e){return React.createElement("div",null,u.default.translate("content_browser.add_item.preset_conflict"),(0,i.map)(e.fields,function(e,t){return React.createElement("div",{key:t},React.createElement("h4",null,t),React.createElement("ul",null,e.map(function(e){return React.createElement("li",{key:e},e)})))}))},showErrorAlert:function(e){var t=void 0;"creation_not_possible"===e.type&&(t={subtitle:u.default.translate("content_browser.add_item.disabled_filters"),body:this.creationNotPossibleBody(e)}),"obj_class_not_provided"===e.type&&(t={subtitle:u.default.translate("content_browser.add_item.error_no_obj_class")}),"preset_conflict"===e.type&&(t={body:this.presetConflictBody(e)}),t.title=u.default.translate("content_browser.add_item.create_impossible"),a.default.showAlert(t)},buildErrorMessage:function(e){if("creation_not_possible"===e.type){var t=e.nodeTitles.join(", ");return u.default.translate("content_browser.add_item.prevent_creation",t)}if("obj_class_not_provided"===e.type)return u.default.translate("content_browser.add_item.error_no_obj_class");if("preset_conflict"===e.type){var n=u.default.translate("content_browser.add_item.failed");return(0,i.each)(e.fields,function(e,t){n+=t+": "+e.join(", ")+"\n"}),n}},iconTitle:function(){if(!this.props.objCreation.isActive())return this.buildErrorMessage(this.props.objCreation.error())},textMessage:function(){return this.props.objCreation.isActive()?u.default.translate("content_browser.add_item.create_item"):u.default.translate("content_browser.add_item.create_impossible")},createClick:function(){var e=this.props.objCreation;e.isActive()?(this.props.createObj(e.createOptions()),e.filter.deselectHierarchicalFilters()):this.showErrorAlert(e.error())}};t.default=l},function(e,t,n){var r,i,o,a;a=n(11),o=n(6),i=n(758),r=a({displayName:"InfiniteScrollLoader",propTypes:{isLoading:o.bool.isRequired,hasMore:o.bool.isRequired,fetch:o.func.isRequired,tag:o.string.isRequired,className:o.string.isRequired,style:o.object},componentDidUpdate:function(){return this._fullyFillContainer(),this._ensureFullPageIsPreloaded()},componentDidMount:function(){return this._fullyFillContainer()},render:function(){var e;return e={className:this.props.className,ref:function(e){return function(t){return e.container=t}}(this),style:this.props.style,onScroll:function(e){return function(){return e._ensureFullPageIsPreloaded()}}(this)},React.createElement(this.props.tag,e,this._childrenAndLoader())},_ensureFullPageIsPreloaded:function(){if(this._isViewportAtBottom()&&this.props.hasMore&&!this.props.isLoading)return this.props.fetch()},_fullyFillContainer:function(){if(this.props.hasMore&&!this.props.isLoading&&!this._isFullViewPort())return this.props.fetch()},_isFullViewPort:function(){return this.container.scrollHeight>this.container.offsetHeight},_isViewportAtBottom:function(){return this.container.scrollTop>=this.container.scrollHeight-2*this.container.offsetHeight},_childrenAndLoader:function(){var e;return e=[this.props.children],this.props.isLoading&&e.push(React.createElement(i,{key:"spinner"})),e}}),e.exports=r},function(e,t,n){var r,i,o,a;a=n(0),r=n(319),i=n(40).default,o={failureMessage:function(){var e;return e=i.translate("content_browser.last_added.failed_upload"),React.createElement("ul",null,a.map(this.props.failedAdditions,function(t){return React.createElement("div",{className:"content-browser-alert"},React.createElement("h4",null,t.filename),React.createElement("li",null,t.failureMessage||e))}))},showAlert:function(){return r.showAlert({title:i.translate("content_browser.last_added.upload_error"),body:React.createElement("div",null,this.failureMessage())})},getErrorsCount:function(){return i.translate("content_browser.last_added.failed_upload_counts",this.props.failedAdditions.length)},_titleInfo:function(){return i.translate("content_browser.last_added.title_info")}},e.exports=o},function(e,t,n){var r,i;i=n(320).isActive,r={uploadInProgress:function(){return i(this.props.addedItem)},renderUploadStateProgress:function(){if(this.uploadInProgress())return React.createElement("div",{className:"upload_state",style:{width:this.props.addedItem.progress+"%"}})}},e.exports=r},function(e,t,n){var r,i,o,a,s,u,l;o=n(6),r=n(3).default,l=n(2),i=n(763),u=n(509),s=n(230),a=scrivito.legacyCreateConnectedComponent({displayName:"TableViewItem",propTypes:{objId:o.string.isRequired,handleSelectClick:o.func.isRequired,itemClasses:o.string.isRequired,selectClasses:o.string.isRequired,selectionMode:o.string.isRequired,selectedObjs:o.arrayOf(o.string)},_obj:function(){return r.get(this.props.objId)},_title:function(){return scrivito.titleForObj(this._obj())},_contentType:function(){var e;if(e=this._obj().get("blob","binary"))return e.raw().contentType()},_contentLength:function(){var e;if(e=this._obj().get("blob","binary"))return s(e.raw().contentLength())},_getLastChangedFormatedDate:function(){var e;return e=l(this._obj().lastChanged()).utc(),e.format("dddd, MMMM Do YYYY, h:mm A")},_getTime:function(){return React.createElement("span",null,React.createElement("time",{dateTime:this._obj().lastChanged(),title:this._getLastChangedFormatedDate()},l.utc(this._obj().lastChanged()).fromNow()))},_getFileTypeTitleTag:function(){var e;if(null!=(e=this._contentType()))return e.match(/\w+$/)[0]},render:function(){return React.createElement("tr",{onClick:this.props.handleSelectClick,className:this.props.itemClasses},React.createElement("td",null,React.createElement("div",{className:this.props.selectClasses})),React.createElement(i,{getTitle:function(e){return function(){return e._title()}}(this),get:function(e){return function(){return e._title()}}(this)}),React.createElement(i,{get:function(e){return function(){return e._contentType()}}(this)}),React.createElement(i,{getTitle:function(e){return function(){return e._contentType()}}(this),get:function(e){return function(){return e._getFileTypeTitleTag()}}(this)}),React.createElement(i,{get:function(e){return function(){return e._contentLength()}}(this)}),React.createElement(i,{getTitle:function(e){return function(){return e._getLastChangedFormatedDate()}}(this),get:function(e){return function(){return e._getTime()}}(this)}))}}),e.exports=u(a)},function(e,t,n){"use strict";function r(e){return{type:i,numToLoad:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.loadMoreObjs=r;var i=t.LOAD_MORE_OBJS="LOAD_MORE_OBJS";t.DEFAULT_NUMBER_TO_LOAD=24},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=o.default.run(function(){return e.next()});if(!i.allDataLoaded)return{done:!1,objs:n};var a=i.result,s=a.value,u=a.done;return u||0===t?{done:u,objs:n}:r(e,t-1,n.concat([s]))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(16),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(){return{type:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.toggleInspectorMaximized=r;var i=t.MAXIMIZE_TOGGLE="MAXIMAZED_INSPECTOR_TOGGLE"},function(e,t,n){"use strict";function r(e){var t=(0,a.lookup)(e.type);return o.default.get(t).createBinaryWithDefaults(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createBinaryWithDefaults=r;var i=n(41),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(471)},function(e,t,n){"use strict";function r(e){var t={};return(0,i.each)(e,function(e,n){switch(n){case"options":t[n]=(0,i.mapObject)(e,r);break;case"field":case"operator":t[n]=(0,o.camelCase)(e);break;case"enableCreate":case"enable_create":case"preset":break;default:t[n]=e}}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_DEFINITION=t.DEFAULT_DEFINITION_FOR_RAILS=t.DEFINITION_FOR_IMAGE_CONTEXT=void 0;var i=n(0),o=n(19),a={title:"Changed",type:"checkbox",expanded:!0,field:"_modification",operator:"equals",options:{New:{value:["new"]},Edited:{value:["edited"]}}},s=(t.DEFINITION_FOR_IMAGE_CONTEXT={_obj_class:{options:{Images:{icon:"image",selected:!0,field:"_obj_class",value:"Image",preset:{_obj_class:"Image"}}}},_modification:a},t.DEFAULT_DEFINITION_FOR_RAILS={_obj_class:{options:{All:{icon:"generic",selected:!0,field:"_last_changed",operator:"is_greater_than",value:new Date(0)},Images:{icon:"image",field:"_obj_class",operator:"equals",value:"Image",preset:{_obj_class:"Image"}},Downloads:{icon:"zip",field:"_obj_class",operator:"equals",value:"Download",preset:{_obj_class:"Download"}}}},_modification:a});t.DEFAULT_DEFINITION=(0,i.mapObject)(s,r)},function(e,t,n){function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(238),o=n(804),a=n(805),s=n(806),u=n(807),l=n(808);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=l,e.exports=r},function(e,t,n){function r(e){if(!o(e))return!1;var t=i(e);return t==s||t==u||t==a||t==l}var i=n(137),o=n(107),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(51))},function(e,t){function n(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,i=r.toString;e.exports=n},function(e,t,n){function r(e,t,n,r,l,c){var d=n&s,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var _=-1,m=!0,v=n&u?new i:void 0;for(c.set(e,t),c.set(t,e);++_<f;){var g=e[_],y=t[_];if(r)var b=d?r(y,g,_,t,e,c):r(g,y,_,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!o(t,function(e,t){if(!a(v,t)&&(g===e||l(g,e,n,r,c)))return v.push(t)})){m=!1;break}}else if(g!==y&&!l(g,y,n,r,c)){m=!1;break}}return c.delete(e),c.delete(t),m}var i=n(242),o=n(830),a=n(243),s=1,u=2;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=n},function(e,t,n){function r(e,t){var n=a(e),r=!n&&o(e),c=!n&&!r&&s(e),f=!n&&!r&&!c&&l(e),p=n||r||c||f,h=p?i(e.length,String):[],_=h.length;for(var m in e)!t&&!d.call(e,m)||p&&("length"==m||c&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,_))||h.push(m);return h}var i=n(839),o=n(328),a=n(50),s=n(528),u=n(329),l=n(529),c=Object.prototype,d=c.hasOwnProperty;e.exports=r},function(e,t,n){(function(e){var r=n(82),i=n(841),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||i;e.exports=c}).call(t,n(78)(e))},function(e,t,n){var r=n(842),i=n(245),o=n(843),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){var r=n(124),i=n(82),o=r(i,"Set");e.exports=o},function(e,t,n){var r=n(124),i=n(82),o=r(i,"WeakMap");e.exports=o},function(e,t,n){function r(e){return e===e&&!i(e)}var i=n(107);e.exports=r},function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},function(e,t,n){function r(e,t){t=i(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[o(t[n++])];return n&&n==r?e:void 0}var i=n(537),o=n(246);e.exports=r},function(e,t,n){function r(e,t){return i(e)?e:o(e,t)?[e]:a(s(e))}var i=n(50),o=n(331),a=n(852),s=n(854);e.exports=r},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(325),o="Expected a function";r.Cache=i,e.exports=r},function(e,t){function n(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}e.exports=n},function(e,t,n){function r(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),u=Array(s);++a<s;)u[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(u),i(e,this,l)}}var i=n(541),o=Math.max;e.exports=r},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var r=n(878),i=n(880),o=i(r);e.exports=o},function(e,t,n){var r=n(124),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?o(n)&&a(t,n.length):"string"==r&&t in n)&&i(n[t],e)}var i=n(221),o=n(125),a=n(329),s=n(107);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(3),s=r(a),u=n(63),l=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ObjLabel",propTypes:{isBrowsable:o.default.bool,obj:o.default.instanceOf(s.default)},shouldRenderLoaderError:!0,render:function(){return this.props.isBrowsable?React.createElement("span",null,React.createElement("i",{className:"scrivito_icon scrivito_icon_content_browser"}),this.props.obj&&(0,u.titleForObj)(this.props.obj)):null},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return o(e).then(function(e){return l.default.filter(e,function(e){return 0===e.toLowerCase().indexOf(t.toLowerCase())})})}function o(e){var t=s.default.all();return(0,d.default)(function(){return t.facet(e,{limit:100})}).then(function(e){return l.default.invoke(e,"name")})}Object.defineProperty(t,"__esModule",{value:!0}),t.suggest=i;var a=n(3),s=r(a),u=n(0),l=r(u),c=n(8),d=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(548);Object.defineProperty(t,"DragDropContext",{enumerable:!0,get:function(){return r(i).default}});var o=n(914);Object.defineProperty(t,"DragDropContextProvider",{enumerable:!0,get:function(){return r(o).default}});var a=n(915);Object.defineProperty(t,"DragLayer",{enumerable:!0,get:function(){return r(a).default}});var s=n(916);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r(s).default}});var u=n(926);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r(u).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){w.default.apply(void 0,["DragDropContext","backend"].concat(Array.prototype.slice.call(arguments)));var t=C(e),n=M(t);return function(e){var t,r,s=e.displayName||e.name||"Component",c=(r=t=function(t){function r(){return i(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,t),l(r,[{key:"getDecoratedComponentInstance",value:function(){return(0,v.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"getManager",value:function(){return n.dragDropManager}},{key:"getChildContext",value:function(){return n}},{key:"render",value:function(){var t=this;return f.default.createElement(e,u({},this.props,{ref:function(e){return t.child=e}}))}}]),r}(d.Component),t.DecoratedComponent=e,t.displayName="DragDropContext("+s+")",t.childContextTypes=k,r);return(0,y.default)(c,e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.unpackBackendForEs5Users=t.createChildContext=t.CHILD_CONTEXT_TYPES=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=s;var d=n(20),f=r(d),p=n(6),h=r(p),_=n(889),m=n(44),v=r(m),g=n(335),y=r(g),b=n(252),w=r(b),k=t.CHILD_CONTEXT_TYPES={dragDropManager:h.default.object.isRequired},M=t.createChildContext=function(e,t){return{dragDropManager:new _.DragDropManager(e,t)}},C=t.unpackBackendForEs5Users=function(e){var t=e;return"object"===(void 0===t?"undefined":c(t))&&"function"==typeof t.default&&(t=t.default),(0,v.default)("function"==typeof t,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://react-dnd.github.io/react-dnd/docs-drag-drop-context.html"),t}},function(e,t,n){"use strict";function r(e,t){return e===t||e&&t&&e.x===t.x&&e.y===t.y}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case u.BEGIN_DRAG:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case u.HOVER:return r(e.clientOffset,t.clientOffset)?e:s({},e,{clientOffset:t.clientOffset});case u.END_DRAG:case u.DROP:return l;default:return e}}function o(e){var t=e.clientOffset,n=e.initialClientOffset,r=e.initialSourceClientOffset;return t&&n&&r?{x:t.x+r.x-n.x,y:t.y+r.y-n.y}:null}function a(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?{x:t.x-n.x,y:t.y-n.y}:null}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i,t.getSourceClientOffset=o,t.getDifferenceFromInitialOffset=a;var u=n(249),l={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null}},function(e,t,n){"use strict";function r(e,t){return(0,o.default)(e)?e.some(function(e){return e===t}):e===t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(50),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){var r=n(552),i=n(126),o=n(250),a=i(function(e,t){return o(e)?r(e,t):[]});e.exports=a},function(e,t,n){function r(e,t,n,r){var d=-1,f=o,p=!0,h=e.length,_=[],m=t.length;if(!h)return _;n&&(t=s(t,u(n))),r?(f=a,p=!1):t.length>=c&&(f=l,p=!1,t=new i(t));e:for(;++d<h;){var v=e[d],g=null==n?v:n(v);if(v=r||0!==v?v:0,p&&g===g){for(var y=m;y--;)if(t[y]===g)continue e;_.push(v)}else f(t,g,r)||_.push(v)}return _}var i=n(242),o=n(332),a=n(333),s=n(224),u=n(245),l=n(243),c=200;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments[1]),t=arguments[2];switch(e.type){case c.HOVER:break;case d.ADD_SOURCE:case d.ADD_TARGET:case d.REMOVE_TARGET:case d.REMOVE_SOURCE:return f;case c.BEGIN_DRAG:case c.PUBLISH_DRAG_SOURCE:case c.END_DRAG:case c.DROP:default:return p}var n=e.targetIds,r=t.targetIds,i=(0,s.default)(n,r),o=!1;if(0===i.length){for(var a=0;a<n.length;a++)if(n[a]!==r[a]){o=!0;break}}else o=!0;if(!o)return f;var u=r[r.length-1],l=n[n.length-1];return u!==l&&(u&&i.push(u),l&&i.push(l)),i}function o(e,t){return e!==f&&(e===p||void 0===t||(0,l.default)(t,e).length>0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,t.areDirty=o;var a=n(899),s=r(a),u=n(902),l=r(u),c=n(249),d=n(251),f=[],p=[]},function(e,t,n){function r(e,t,n){var r=-1,d=o,f=e.length,p=!0,h=[],_=h;if(n)p=!1,d=a;else if(f>=c){var m=t?null:u(e);if(m)return l(m);p=!1,d=s,_=new i}else _=t?[]:h;e:for(;++r<f;){var v=e[r],g=t?t(v):v;if(v=n||0!==v?v:0,p&&g===g){for(var y=_.length;y--;)if(_[y]===g)continue e;t&&_.push(g),h.push(v)}else d(_,g,n)||(_!==h&&_.push(g),h.push(v))}return h}var i=n(242),o=n(332),a=n(333),s=n(243),u=n(901),l=n(327),c=200;e.exports=r},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":i(e))||null===e||"object"!==(void 0===t?"undefined":i(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<n.length;a+=1){if(!o.call(t,n[a]))return!1;var s=e[n[a]],u=t[n[a]];if(s!==u||"object"===(void 0===s?"undefined":i(s))||"object"===(void 0===u?"undefined":i(u)))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t,n,r=e.DecoratedComponent,s=e.createHandler,p=e.createMonitor,m=e.createConnector,v=e.registerHandler,y=e.containerDisplayName,w=e.getType,M=e.collect,E=e.options,x=E.arePropsEqual,T=void 0===x?C.default:x,D=r.displayName||r.name||"Component",S=(n=t=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.handleChange=r.handleChange.bind(r),r.handleChildRef=r.handleChildRef.bind(r),(0,g.default)("object"===l(r.context.dragDropManager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",D,D),r.manager=r.context.dragDropManager,r.handlerMonitor=p(r.manager),r.handlerConnector=m(r.manager.getBackend()),r.handler=s(r.handlerMonitor),r.disposable=new _.SerialDisposable,r.receiveProps(e),r.state=r.getCurrentState(),r.dispose(),r}return a(t,e),c(t,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return this.decoratedComponentInstance}},{key:"shouldComponentUpdate",value:function(e,t){return!T(e,this.props)||!(0,k.default)(t,this.state)}}]),c(t,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.disposable=new _.SerialDisposable,this.currentType=null,this.receiveProps(this.props),this.handleChange()}},{key:"componentWillReceiveProps",value:function(e){T(e,this.props)||(this.receiveProps(e),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose(),this.isCurrentlyMounted=!1}},{key:"receiveProps",value:function(e){this.handler.receiveProps(e),this.receiveType(w(e))}},{key:"receiveType",value:function(e){if(e!==this.currentType){this.currentType=e;var t=v(e,this.handler,this.manager),n=t.handlerId,r=t.unregister;this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor(),o=i.subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new _.CompositeDisposable(new _.Disposable(o),new _.Disposable(r)))}}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,k.default)(e,this.state)||this.setState(e)}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector.receiveHandlerId(null)}},{key:"handleChildRef",value:function(e){this.decoratedComponentInstance=e,this.handler.receiveComponent(e)}},{key:"getCurrentState",value:function(){var e=M(this.handlerConnector.hooks,this.handlerMonitor);return e}},{key:"render",value:function(){return f.default.createElement(r,u({},this.props,this.state,{ref:this.handleChildRef}))}}]),t}(d.Component),t.DecoratedComponent=r,t.displayName=y+"("+D+")",t.contextTypes={dragDropManager:h.default.object.isRequired},n);return(0,b.default)(S,r)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var d=n(20),f=r(d),p=n(6),h=r(p),_=n(917),m=n(127),v=(r(m),n(44)),g=r(v),y=n(335),b=r(y),w=n(336),k=r(w),M=n(555),C=r(M)},function(e,t,n){"use strict";function r(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,a.isValidElement)(t)){return void e(t,n)}var i=t;r(i);var o=n?function(t){return e(t,n)}:e;return(0,u.default)(i,o)}}function o(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n],o=i(r);t[n]=function(){return o}}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=n(20),s=n(925),u=function(e){return e&&e.__esModule?e:{default:e}}(s)},function(e,t,n){"use strict";function r(e,t){return t===e||null!==t&&null!==e&&(0,o.default)(t,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(336),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t){return"string"==typeof e||"symbol"===(void 0===e?"undefined":i(e))||t&&(0,a.default)(e)&&e.every(function(e){return r(e,!1)})}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r;var o=n(50),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},function(e,t,n){function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var i=n(543);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=void 0;var r=n(538),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.isFirefox=(0,i.default)(function(){return/firefox/i.test(navigator.userAgent)}),t.isSafari=(0,i.default)(function(){return Boolean(window.safari)})},function(e,t,n){var r=n(107),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(956),i=n(334),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){function r(e){for(var t=e.name+"",n=i[t],r=a.call(i,t)?n.length:0;r--;){var o=n[r],s=o.func;if(null==s||s==e)return o.name}return t}var i=n(957),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){return(0,a.createClassForCustomAttributeItemDescription)(e,{render:function(){var t=this.props.field.get()||0,n="edit_"+e;return this.props.readOnly&&(n="display_"+e),React.createElement("input",{type:"number",className:n,value:t,step:1,disabled:this.props.readOnly,onChange:this._onChange})},_onChange:function(e){if(!this.props.readOnly){var n=t(e.target.value);o.default.isNaN(n)&&(n=0),this.props.field.update(n)}}})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(39);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=a.default.find(e)||u.default.find(e);return t?t.title():e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(41),a=r(o),s=n(58),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=[(0,a.default)(t),(0,c.default)(t),(0,u.default)(t)];scrivito.ContextMenu.open($(e),r,{mousePosition:n})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(346),a=r(o),s=n(225),u=r(s),l=n(347),c=r(l);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=n(20),c=r(l),d=n(31),f=n(15),p=r(f),h=n(76),_=r(h),m=void 0,v=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._deferred=new p.default,n._handleOk=n._handleOk.bind(n),n._handleCancel=n._handleCancel.bind(n),n._handleOkClick=n._handleOkClick.bind(n),n._handleCancelClick=n._handleCancelClick.bind(n),n}return a(t,e),s(t,null,[{key:"open",value:function(e){return m=document.getElementById("prompt_dialog"),(0,d.render)(c.default.createElement(t,e),m).getPromise()}}]),s(t,[{key:"getPromise",value:function(){return this._deferred.promise}},{key:"componentDidMount",value:function(){scrivito.withDialogBehaviour($(m),this.getPromise(),{enter:this._handleOk,escape:this._handleCancel})}},{key:"render",value:function(){var e=this,t=void 0;this.props.description&&(t=c.default.createElement("p",null,this.props.description));return c.default.createElement("div",{className:"scrivito_prompt_dialog scrivito_center_dialog scrivito_modal_prompt scrivito_green scrivito_show"},c.default.createElement("div",{className:"scrivito_modal_header"},c.default.createElement("i",{className:"scrivito_icon",dangerouslySetInnerHTML:{__html:this.props.icon}}),c.default.createElement("h3",{className:"scrivito_title"},(0,u.result)(this.props,"title")),t),c.default.createElement("div",{className:"scrivito_modal_body"},c.default.createElement("input",{type:"text",autoFocus:!0,defaultValue:this.props.value,placeholder:this.props.placeholder,ref:function(t){return e._input=t}})),c.default.createElement("div",{className:"scrivito_modal_footer"},c.default.createElement("a",{href:"#",className:"scrivito_button scrivito_cancel",onClick:this._handleCancelClick},scrivito.t("cancel")),c.default.createElement("a",{href:"#",className:"scrivito_button scrivito_green scrivito_ok",onClick:this._handleOkClick},this.props.okButtonText)))}},{key:"_handleOkClick",value:function(e){e.preventDefault(),e.stopPropagation(),this._handleOk()}},{key:"_handleOk",value:function(){this._deferred.resolve(this._input.value),this._unmount()}},{key:"_handleCancelClick",value:function(e){e.preventDefault(),e.stopPropagation(),this._handleCancel()}},{key:"_handleCancel",value:function(){this._deferred.resolve(null),this._unmount()}},{key:"_unmount",value:function(){(0,d.unmountComponentAtNode)(m)}}]),t}(c.default.Component);v.displayName="PromptDialog",t.default=(0,_.default)(v)},function(e,t,n){"use strict";function r(e){var t=$.Deferred();return e.then(function(e){return t.resolve(e)},function(e){t.reject(e)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return new D.default({id:"scrivito.sdk.widget_commands.separator"+e})}function s(e,t){var n=h.default.get(e);return t?n.widget(t):n}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(33),c=r(l),d=n(486),f=r(d),p=n(3),h=r(p),_=n(342),m=r(_),v=n(343),g=r(v),y=n(344),b=r(y),w=n(225),k=r(w),M=n(469),C=r(M),E=n(990),x=r(E),T=n(218),D=r(T),S=n(571),O=r(S),j=n(479),L=r(j),P=n(481),R=r(P),A=n(482),I=r(A),N=n(991),Y=r(N),F=n(345),H=r(F),W=n(567),z=r(W),B=n(122),U=n(220),q=r(U),V=n(348),G=r(V),K=function(){function e(t){o(this,e),this._cmsDocument=t}return u(e,[{key:"currentWorkspaceId",value:function(){return scrivito.editingContext.selectedWorkspaceId}},{key:"linkResolutionFor",value:function(e){return x.default.for(e)}},{key:"isEditingMode",value:function(){return this._cmsDocument&&this._cmsDocument.window().isForcedEditingMode()||scrivito.editingContext.isEditingMode()}},{key:"alwaysShowOptionMarkers",value:function(){return scrivito.optionMarker.always_visible}},{key:"assetUrlBase",value:function(){return(0,f.default)()}},{key:"showWidgetMenu",value:function(e,t,n){var r=h.default.get(t).widget(n),i=r.containingField();scrivito.ContextMenu.open($(e),[(0,O.default)(r,{renderMode:"show"}),a(1),(0,g.default)(r),(0,m.default)(r),(0,k.default)(i,r),a(2),(0,b.default)(r)])}},{key:"showWidgetlistMenu",value:function(e,t){var n=t.objId,r=t.widgetId,i=t.attributeName,o=t.mousePosition,a=s(n,r),u=a.field(i,["widgetlist"]);(0,z.default)(e,u,o)}},{key:"showChildListMenu",value:function(e,t){scrivito.ContextMenu.open($(e),[(0,L.default)(t),(0,R.default)(t),(0,I.default)(t),(0,Y.default)(t)])}},{key:"insertWidget",value:function(e,t,n){var r=h.default.get(e).widget(t);(0,H.default)(r,n)}},{key:"onDragStart",value:function(e,t){var n=h.default.get(e).widget(t);scrivito.dragDrool.onDragstart(n)}},{key:"onDragEnd",value:function(){scrivito.dragDrool.onDragend()}},{key:"registerWidgetDropZoneInDom",value:function(e,t,n){var r=h.default.get(t).widget(n),i=r.containingField();e.scrivitoPrivateDropzone=function(){return new C.default(i,r)}}},{key:"registerEmptyWidgetlistDropZoneInDom",value:function(e){var t=e.domNode,n=e.objId,r=e.widgetId,i=e.attributeName,o=s(n,r),a=o.field(i,["widgetlist"]);t.scrivitoPrivateDropzone=function(){return new C.default(a)}}},{key:"navigateToExternalUrl",value:function(e){scrivito.redirect_to(e)}},{key:"openInNewWindow",value:function(e){var t=(0,c.default)((0,G.default)(e));t.segment(["scrivito"].concat(i(t.segment()))),scrivito.open(t.toString(),"blank")}},{key:"setCurrentPageId",value:function(e){this._cmsDocument&&this._cmsDocument.setCurrentPageId(e)}},{key:"configureContentBrowser",value:function(e){e.basePreset&&(q.default.basePreset=e.basePreset),e.baseQuery&&(q.default.baseQuery=e.baseQuery)}},{key:"openContentBrowser",value:function(e){return(0,B.openContentBrowserWithoutAppConfig)(e)}},{key:"notifyDocumentResize",value:function(){this._cmsDocument.window().notifyDocumentResize()}}]),e}();t.default=K},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=t.renderMode;return new s.default({id:"scrivito.sdk.widget_details",title:scrivito.t("commands.widget_details.title"),icon:"&#xf030;",present:function(){return e&&"show"===n},disabled:function(){if(!o(e))return scrivito.t("commands.widget_details.has_no_properties")},execute:function(){return scrivito.WriteMonitor.trackChanges(function(){return l.default.open({objId:e.obj().id(),widgetId:e.id()})},function(){return(0,p.default)(e)})}})}function o(e){return(0,_.useRailsEngine)()?(0,d.default)(e.objClass()):(0,h.hasInspectorDescription)(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),s=r(a),u=n(314),l=r(u),c=n(483),d=r(c),f=n(572),p=r(f),h=n(316),_=n(47);t.default=i},function(e,t,n){"use strict";function r(e){o.default.each(scrivito.cmsWindow.activeWindows(),function(t){var n=scrivito.widgetElement.all($(t.browserWindow().document));o.default.each(n,function(t){e.equals(t.basicWidget())&&scrivito.WidgetReloading.reload(t)})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){return M[e]}function a(e){var t=c(e),n=_(t,2),r=n[0],o=n[1];if(!o.length)return scrivito.Promise.all(r);var s=o.slice(0,k),u=o.slice(k),l=d(s);return scrivito.Promise.all([].concat(i(r),[l])).then(function(){return a(u)})}function s(e,t){M[e]=t}function u(){M={},C={}}function l(){return(0,m.isEmpty)(C)}function c(e){var t=[],n=[];return e.forEach(function(e){var r=C[e];r?t.push(r.promise):n.push(e)}),[t,n]}function d(e){return e.forEach(function(e){return C[e]=new g.default}),p(e).then(f).then(h).then(function(){return e.forEach(function(e){C[e].resolve(null),delete C[e]}),null}).catch(function(t){throw e.forEach(function(e){C[e].reject(t),delete C[e]}),t})}function f(e){if(!(0,w.useRailsEngine)())return scrivito.Promise.resolve(e);var t=scrivito.ajax("PUT","resolve_paths",{data:{paths:e}});return scrivito.Promise.resolve(t).then(function(t){var n=[];return e.forEach(function(e,r){var i=t[r];null===i?n.push(e):M[e]=i}),n})}function p(e){var t=(0,m.map)(e,function(e){var t=scrivito.AppConfig.resolveUrl((0,b.default)(e));return t?t.catch(function(e){return scrivito.logError(e),null}):scrivito.Promise.resolve(null)});return scrivito.Promise.all(t).then(function(t){var n=[];return e.forEach(function(e,r){var i=t[r];null===i?n.push(e):M[e]=i}),n})}function h(e){if(e.length){return scrivito.CmsRestApi.get("blobs/resolve_urls",{urls:e}).then(function(t){var n=t.results;e.forEach(function(e,t){M[e]=n[t]})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.isResolvedUrlCacheEmpty=t.clearResolvedUrlCache=t.setResolvedUrl=t.preloadResolvedUrls=t.resolveUrl=void 0;var _=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=n(0),v=n(15),g=r(v),y=n(348),b=r(y),w=n(47),k=20,M={},C={};t.resolveUrl=o,t.preloadResolvedUrls=a,t.setResolvedUrl=s,t.clearResolvedUrlCache=u,t.isResolvedUrlCacheEmpty=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=(0,l.default)(function(){return d.default.currentSession().can("create")});return scrivito.withSavingOverlay(n).then(function(n){function r(){return f?i():a(),!1}function i(){var e=$("#scrivito_new_ws_name").val();scrivito.dialog.close_with_transition(d),scrivito.withSavingOverlay(p.default.createAsync(e)).then(function(e){var t=e.id;return h.resolve(t)}).catch(function(e){scrivito.displayError(e),h.reject()})}function a(){var e=$("select#scrivito_list_of_ws").val();scrivito.dialog.close_with_transition(d),h.resolve(e)}function u(){return scrivito.dialog.close_with_transition(d),h.resolve(),!1}var l=e.length,c="editable_ws_dialog."+t,d=$(scrivito.Template.render("editable_workspace_dialog",{workspaces:e,can_select:l,can_create:n,can_select_or_create:l||n,title:o(c+".title",l,n),description:o(c+".description",l,n)}));$("#scrivito_editing").append(d);var f=!1;d.on("focus click",".scrivito_input_list_of_ws",function(){f=!1,d.find(".scrivito_confirm").html(scrivito.t("editable_ws_dialog.select")),d.find(".scrivito_disabled").removeClass("scrivito_disabled"),d.find(".scrivito_input_new_ws_name label, .scrivito_input_new_ws_name input").addClass("scrivito_disabled")}),d.on("focus click",".scrivito_input_new_ws_name",function(){f=!0,d.find(".scrivito_confirm").html(scrivito.t("menu_bar.create")),d.find(".scrivito_disabled").removeClass("scrivito_disabled"),d.find(".scrivito_input_list_of_ws label, .scrivito_input_list_of_ws select").addClass("scrivito_disabled")});var h=new s.default;return d.find(".scrivito_confirm").on("click",r),d.find(".scrivito_cancel").on("click",u),scrivito.dialog.open_and_center_with_transition(d),l?(d.find(".scrivito_input_list_of_ws").click(),d.find("#scrivito_list_of_ws").focus()):n&&(d.find(".scrivito_input_new_ws_name").click(),d.find("#scrivito_new_ws_name").focus()),scrivito.withDialogBehaviour(d,h.promise,{enter:r,escape:u})})}function o(e,t,n){return t&&n?scrivito.t(e+".select_or_create"):t?scrivito.t(e+".select"):n?scrivito.t(e+".create"):scrivito.t(e+".forbidden")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(15),s=r(a),u=n(8),l=r(u),c=n(121),d=r(c),f=n(59),p=r(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1090),l=r(u),c=n(20),d=r(c),f=n(6),p=r(f),h=n(1091),_=(r(h),n(1092)),m=(p.default.any,p.default.func,p.default.node,{component:"span",childFactory:function(e){return e}}),v=function(e){function t(n,r){i(this,t);var a=o(this,e.call(this,n,r));return a.performAppear=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(a._handleDoneAppearing.bind(a,e,t)):a._handleDoneAppearing(e,t)},a._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete a.currentlyTransitioningKeys[e];var n=(0,_.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)||a.performLeave(e,t)},a.performEnter=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(a._handleDoneEntering.bind(a,e,t)):a._handleDoneEntering(e,t)},a._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete a.currentlyTransitioningKeys[e];var n=(0,_.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)||a.performLeave(e,t)},a.performLeave=function(e,t){a.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(a._handleDoneLeaving.bind(a,e,t)):a._handleDoneLeaving(e,t)},a._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete a.currentlyTransitioningKeys[e];var n=(0,_.getChildMapping)(a.props.children);n&&n.hasOwnProperty(e)?a.keysToEnter.push(e):a.setState(function(t){var n=s({},t.children);return delete n[e],{children:n}})},a.childRefs=Object.create(null),a.state={children:(0,_.getChildMapping)(n.children)},a}return a(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,_.getChildMapping)(e.children),n=this.state.children;this.setState({children:(0,_.mergeChildMappings)(n,t)});for(var r in t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach(function(t){return e.performEnter(t,e.childRefs[t])});var n=this.keysToLeave;this.keysToLeave=[],n.forEach(function(t){return e.performLeave(t,e.childRefs[t])})},t.prototype.render=function(){var e=this,t=[];for(var n in this.state.children)!function(n){var r=e.state.children[n];if(r){var i="string"!=typeof r.ref,o=e.props.childFactory(r),a=function(t){e.childRefs[n]=t};o===r&&i&&(a=(0,l.default)(r.ref,a)),t.push(d.default.cloneElement(o,{key:n,ref:a}))}}(n);var r=s({},this.props);return delete r.transitionLeave,delete r.transitionName,delete r.transitionAppear,delete r.transitionEnter,delete r.childFactory,delete r.transitionLeaveTimeout,delete r.transitionEnterTimeout,delete r.transitionAppearTimeout,delete r.component,d.default.createElement(this.props.component,r,t)},t}(d.default.Component);v.displayName="TransitionGroup",v.propTypes={},v.defaultProps=m,t.default=v,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=i;var o=n(20),a=(r(o),n(6)),s=r(a);t.nameShape=s.default.oneOfType([s.default.string,s.default.shape({enter:s.default.string,leave:s.default.string,active:s.default.string}),s.default.shape({enter:s.default.string,enterActive:s.default.string,leave:s.default.string,leaveActive:s.default.string,appear:s.default.string,appearActive:s.default.string})])},function(e,t,n){function r(e,t,n){var r=l[t];if(void 0===r&&(r=o(t)),r){if(void 0===n)return e.style[r];e.style[r]=c(r,n)}}function i(e,t){for(var n in t)t.hasOwnProperty(n)&&r(e,n,t[n])}function o(e){var t=u(e),n=s(t);return l[t]=l[e]=l[n]=n,n}function a(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):r(arguments[0],arguments[1],arguments[2])}var s=n(1104),u=n(1105),l={float:"cssFloat"},c=n(1108);e.exports=a,e.exports.set=a,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(t,n){return t[n]=r(e,n||""),t},{}):r(e,t||"")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(59),s=r(a),u=scrivito.legacyCreateConnectedComponent({propTypes:{workspace:o.default.instanceOf(s.default).isRequired},shouldRenderLoaderError:!0,render:function(){var e=this.props.workspace.owners;if(!e.length)return null;var t=e[0],n=void 0;return e.length>1&&(n=React.createElement("span",{className:"amount"},"+",e.length-1)),React.createElement("span",{className:"scrivito_list_meta"},React.createElement("span",{className:"first-owner"},React.createElement("i",{className:"scrivito_icon scrivito_icon_user"}),t.description),n)},_scrivitoRenderWhileLoader:function(){return React.createElement(scrivito.Loader,null)}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(1132),s=r(a),u=n(121),l=r(u),c=n(59),d=r(c),f=n(579),p=r(f),h=scrivito.legacyCreateConnectedComponent({propTypes:{workspaces:o.default.arrayOf(o.default.instanceOf(d.default)).isRequired,isActive:o.default.bool,includeInaccessible:o.default.bool},render:function(){var e=this;return React.createElement("div",{className:"scrivito_property_padding"},React.createElement("ul",{className:"scrivito_list_big"},this.props.workspaces.map(function(t){return React.createElement(_,{key:t.id,workspace:t,isActive:e.props.isActive,includeInaccessible:e.props.includeInaccessible})})))}}),_=scrivito.legacyCreateConnectedComponent({propTypes:{workspace:o.default.instanceOf(d.default).isRequired,isActive:o.default.bool,includeInaccessible:o.default.bool},shouldRenderLoaderError:!0,render:function(){return this._isDisplayable()?React.createElement("li",{className:this._className(),title:this._hint(),onClick:this._onClick},React.createElement("span",{className:"scrivito_list_group"},React.createElement("i",{className:this._iconClassName()})),React.createElement("span",{className:"scrivito_list_group"},React.createElement("span",{className:"scrivito_list_topic"},this.props.workspace.titleForEditor),React.createElement(p.default,{workspace:this.props.workspace})),React.createElement(m,{workspace:this.props.workspace})):null},_scrivitoRenderWhileLoader:function(){return React.createElement(scrivito.Loader,null)},_className:function(){return this.props.isActive?"active":this._isDisabled()?"scrivito_disable":void 0},_hint:function(){return this._canReadWorkspace()?this._isSelectable()?this.props.workspace.isMutable()?scrivito.t("sidebar.workspace_list.workspace_item.hint.is_selectable"):scrivito.t("sidebar.workspace_list.workspace_item.hint.is_published"):scrivito.t("sidebar.workspace_list.workspace_item.hint"):scrivito.t("sidebar.workspace_list.workspace_item.hint.is_disabled")},_iconClassName:function(){var e="scrivito_icon scrivito_icon_ws";return this.props.workspace.isPublished()&&(e+="_published"),e},_onClick:function(e){this._isSelectable()&&(0,s.default)(this.props.workspace),e.stopPropagation()},_isDisplayable:function(){return this._canReadWorkspace()||this.props.includeInaccessible},_isSelectable:function(){return this._canReadWorkspace()&&!this.props.isActive},_isDisabled:function(){return this._isDisplayable()&&!this._isSelectable()},_canReadWorkspace:function(){return l.default.currentSession().can("read",this.props.workspace)}}),m=scrivito.legacyCreateConnectedComponent({propTypes:{workspace:o.default.instanceOf(d.default).isRequired},render:function(){return this._isPresent()?React.createElement("span",{className:"scrivito_list_group_action scrivito_delete_button",title:scrivito.t("sidebar.workspace_list.workspace_item.delete"),onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_trash"})):null},_isPresent:function(){return l.default.currentSession().can("delete",this.props.workspace)},_onClick:function(e){scrivito.deleteWorkspace(this.props.workspace),e.stopPropagation()}});t.default=h},,,,,function(e,t,n){"use strict";var r=n(586);(function(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})(r).boot()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){scrivito.client.init(),scrivito.uiAdapter=new c.default,$(o)}function o(){a(),s(),scrivito.init(scrivito.ui_config()),scrivito.Gui.start(),(0,m.default)(window)}function a(){f.default.init(window),document.body.id="scrivito_ui",document.body.innerHTML='\n <div class="iframe_wrapper">\n <iframe name="scrivito_application" src="'+(0,h.default)(window.location.href)+'"></iframe>\n </div>\n '}function s(){var e=$("iframe[name=scrivito_application]");scrivito.applicationWindow=scrivito.cmsWindow.from(e),e.on("load",u)}function u(){var e=scrivito.applicationDocument(),t=scrivito.applicationWindow.browserWindow(),n=!!e.pageConfig(),r=!!t.scrivito;n||r||(t.jQuery||(t.jQuery=jQuery),t.$||(t.$=$),e.installRailsApi(),e.connect())}Object.defineProperty(t,"__esModule",{value:!0}),t.boot=i,n(587),n(621),n(622),n(648),n(139),n(649),n(654),n(987),n(988),n(993),n(1141),n(1142),n(220);var l=n(570),c=r(l),d=n(129),f=r(d),p=n(348),h=r(p),_=n(1143),m=r(_)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(6),o=r(i),a=n(20),s=r(a),u=n(31),l=r(u);n(312);var c=n(49),d=r(c);n(602),n(313),n(459),n(603);var f=n(32),p=r(f);window.PropTypes=o.default,window.React=s.default,window.React.PropTypes=o.default,window.ReactDOM=l.default,window.$=d.default,window.jQuery=d.default,window.Handlebars=p.default},function(e,t,n){"use strict";var r=n(226),i=n(589),o=n(590);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,s,u){if(i(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,s,u],d=0;l=new Error(t.replace(/%s/g,function(){return c[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var i=function(e){};e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function i(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||D}function o(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||D}function a(){}function s(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||D}function u(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)L.call(t,r)&&!P.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:k,type:e,key:o,ref:a,props:i,_owner:j.current}}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===k}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function d(e,t,n,r){if(A.length){var i=A.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function p(e,t,n,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case k:case M:case C:case E:a=!0}}if(a)return n(i,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){o=e[s];var u=t+h(o,s);a+=p(o,u,n,i)}else if(null===e||void 0===e?u=null:(u=T&&e[T]||e["@@iterator"],u="function"==typeof u?u:null),"function"==typeof u)for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=t+h(o,s++),a+=p(o,u,n,i);else"object"===o&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function h(e,t){return"object"==typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function _(e,t){e.func.call(e.context,t,e.count++)}function m(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,r,n,b.thatReturnsArgument):null!=e&&(l(e)&&(t=i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n,e={$$typeof:k,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function v(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(R,"$&/")+"/"),t=d(t,o,r,i),null==e||p(e,"",m,t),f(t)}/** @license React v16.2.0
156
156
  * react.production.min.js
157
157
  *
158
158
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -209,4 +209,4 @@ var yn=n(20),bn=n(593),wn=n(311),kn=n(226),Mn=n(594),Cn=n(595),En=n(596),xn=n(59
209
209
  * Copyright (c) 2014-2015, Jon Schlinkert.
210
210
  * Licensed under the MIT License.
211
211
  */
212
- "use strict";e.exports=function(e){return null==e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(4),s=(r(a),n(5)),u=r(s),l=function(e,t){var n=e.component,r=void 0===n?"span":n,s=e.innerRef,u=e.children,l=i(e,["component","innerRef","children"]),c=t.popper,d=function(e){c.setArrowNode(e),"function"==typeof s&&s(e)},f=c.getArrowStyle();if("function"==typeof u){return u({arrowProps:{ref:d,style:f},restProps:l})}var p=o({},l,{style:o({},f,l.style)});return"string"==typeof r?p.ref=d:p.innerRef=d,(0,a.createElement)(r,p,u)};l.contextTypes={popper:u.default.object.isRequired},l.propTypes={component:u.default.oneOfType([u.default.node,u.default.func]),innerRef:u.default.func,children:u.default.oneOfType([u.default.node,u.default.func])},t.default=l}])})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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)}function a(e,t){var n,a;return a=n=function(n){function a(){var e,t,n,o;r(this,a);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return t=n=i(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(u))),n.__outsideClickHandler=null,n.enableOnClickOutside=function(){var e=n.__outsideClickHandler;if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){var r=n.props.preventDefault||-1===["touchstart","touchmove"].indexOf(t)?null:{passive:!0};document.addEventListener(t,e,r)})}},n.disableOnClickOutside=function(){var e=n.__outsideClickHandler;if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e)})}},n.getRef=function(e){return n.instanceRef=e},o=t,i(n,o)}return o(a,n),c(a,[{key:"getInstance",value:function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t}},{key:"componentDidMount",value:function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside){if(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp)throw new Error("WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.")}else if("function"==typeof e.handleClickOutside)s.Component.prototype.isPrototypeOf(e)?this.__clickOutsideHandlerProp=e.handleClickOutside.bind(e):this.__clickOutsideHandlerProp=e.handleClickOutside;else{if("function"!=typeof e.props.handleClickOutside)throw new Error("WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.");this.__clickOutsideHandlerProp=e.props.handleClickOutside}null!==Object(u.findDOMNode)(e)&&this.addOutsideClickHandler()}}},{key:"componentWillReceiveProps",value:function(e){this.props.disableOnClickOutside&&!e.disableOnClickOutside?this.enableOnClickOutside():!this.props.disableOnClickOutside&&e.disableOnClickOutside&&this.disableOnClickOutside()}},{key:"componentDidUpdate",value:function(){var e=Object(u.findDOMNode)(this.getInstance());return null===e&&this.__outsideClickHandler?void this.removeOutsideClickHandler():null===e||this.__outsideClickHandler?void 0:void this.addOutsideClickHandler()}},{key:"componentWillUnmount",value:function(){this.removeOutsideClickHandler()}},{key:"addOutsideClickHandler",value:function(){var e=this.__outsideClickHandler=Object(l.a)(Object(u.findDOMNode)(this.getInstance()),this.__clickOutsideHandlerProp,this.props.outsideClickIgnoreClass,this.props.excludeScrollbar,this.props.preventDefault,this.props.stopPropagation),t=d.length;d.push(this),f[t]=e,this.props.disableOnClickOutside||this.enableOnClickOutside()}},{key:"removeOutsideClickHandler",value:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var e=d.indexOf(this);e>-1&&(f[e]&&f.splice(e,1),d.splice(e,1))}},{key:"render",value:function(){var t=this,n=Object.keys(this.props).filter(function(e){return"excludeScrollbar"!==e}).reduce(function(e,n){return e[n]=t.props[n],e},{});return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(s.createElement)(e,n)}}]),a}(s.Component),n.displayName="OnClickOutside("+(e.displayName||e.name||"Component")+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(20),u=(n.n(s),n(31)),l=(n.n(u),n(702)),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=[],f=[]},function(e,t,n){"use strict";function r(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}function i(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(r(e,t,n))return!0;e=e.parentNode}return e}function o(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}function a(e,t,n,r,a,s){return function(u){a&&u.preventDefault(),s&&u.stopPropagation();var l=u.target;r&&o(u)||i(l,e,n)!==document||t(u)}}t.a=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForCustomAttributeItemDescription)("enum",{render:function(){var e=this,t=this.props.field.get(),n=this.props.field.values();return this.props.readOnly?React.createElement("span",{className:"read_only"},this.props.field.titleForValue(t)):React.createElement("ul",{className:"enum_attribute"},n.map(function(n){return React.createElement("li",{key:n,className:n===t?"enum_attribute_active":"",onClick:function(r){return e._onClick(r,n,t)}},e.props.field.titleForValue(n))}))},_onClick:function(e,t,n){e.preventDefault(),e.stopPropagation();var r=t===n?null:t;this.props.field.update(r)}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=n(487),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=(0,r.createClassForCustomAttributeItemDescription)("link",{render:function(){return React.createElement(o.default,{link:this.props.field.get(),readOnly:this.props.readOnly,onChange:this._onChange})},_onChange:function(e){this.props.field.update(e)}});t.default=a},function(e,t,n){var r,i;i=n(11),r=i({displayName:"DialogHeader",render:function(){return React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("h3",{className:"scrivito_title"},this.props.title),this.props.subtitle?React.createElement("p",{className:"scrivito_description"},this.props.subtitle):void 0)}}),e.exports=r},function(e,t,n){var r,i;i=n(11),r=i({displayName:"DialogBody",render:function(){return React.createElement("div",{className:"scrivito_modal_body"},this.props.body)}}),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(708),l=r(u),c=n(709),d=r(c),f=n(711),p=r(f),h=n(712),_=r(h),m=n(0),v=r(m),g=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.initFilters(e),n}return a(t,e),s(t,[{key:"deselectHierarchicalFilters",value:function(){return v.default.each(this.getHierarchicalFilters(),function(e){return e.deselect()})}},{key:"setSearchTerm",value:function(e){this.searchTerm=e,this.changed()}},{key:"getAllFilters",value:function(){return v.default.union(this.getHierarchicalFilters(),this.additionalFilters)}},{key:"hasActiveChildren",value:function(){return v.default.some(this.getAllFilters(),function(e){return e.hasActiveChildren()})}},{key:"getHierarchicalFilters",value:function(){return v.default.flatten(v.default.map(this.getTreeFilters(),function(e){return e.subFilters}))}},{key:"getTreeFilters",value:function(){return this.treeFilters}},{key:"hasHierarchicalFilters",value:function(){return this.treeFilters.length>0}},{key:"hasAdditionalFilters",value:function(){return this.additionalFilters.length>0}},{key:"initFilters",value:function(e){var t=this,n=function(e,n){return new p.default(t,n,e)};this.treeFilters=[],this.additionalFilters=[],v.default.each(Object.keys(e||{}),function(r){var i=e[r];if(i)switch(i.type||"tree"){case"tree":t.treeFilters.push({config:i,subFilters:v.default.map(i.options,n)});break;case"radio_button":case"radioButton":t.additionalFilters.push(new d.default(t,r,i));break;case"check_box":case"checkbox":t.additionalFilters.push(new _.default(t,r,i))}})}}]),t}(l.default);t.default=g},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=function(){function e(){r(this,e),this.callbacks={}}return i(e,[{key:"on",value:function(e,t){this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t)}},{key:"trigger",value:function(e,t){var n=this,r=this.callbacks[e],i=[t];r&&(0,o.each)(r,function(e){e.apply(n,i)})}},{key:"onChange",value:function(e){this.on("change",e)}},{key:"changed",value:function(){this.trigger("change",this)}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(490),l=r(u),c=n(710),d=r(c),f=n(0),p=function(e){function t(e,n,r){i(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));return a.type="radio",a.children=(0,f.map)(r.options,function(e,t){return new d.default(a,t,e)}),a}return a(t,e),s(t,[{key:"activate",value:function(e){(0,f.each)(this.children,function(t){t.active=t===e}),this.filter.changed()}},{key:"deactivateAll",value:function(){this.deselect(),this.filter.changed()}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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 a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(231),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.filter,n,o));return a.value=o.value,a.query=o.query,a.preset=o.preset,a.group=e,a.active=o.selected,a}return o(t,e),a(t,[{key:"setActive",value:function(){return this.group.activate(this)}},{key:"isActive",value:function(){return!!this.active}}]),t}(u.default);t.default=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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 a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(231),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(0),c=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,o));a.type="tree",a.icon=o.icon,a.query=o.query,a.expanded=o.expanded,a.value=o.value,a.field=o.field,a.operator=o.operator,a.preset=o.preset,a.active=o.selected;var s=o.options||[];return a.children=(0,l.map)(s,function(n,r){return new t(e,r,n)}),a}return o(t,e),a(t,[{key:"isLeaf",value:function(){return 0===this.children.length}},{key:"isExpanded",value:function(){return!!this.expanded}},{key:"isActive",value:function(){return!!this.active}},{key:"toggleActive",value:function(){this.isActive()?this.active=!1:(this.filter.deselectHierarchicalFilters(),this.active=!0),this.filter.changed()}},{key:"hasActiveChildren",value:function(){return this.isActive()||(0,l.some)(this.children,function(e){return e.isActive()})}},{key:"deselect",value:function(){this.active=!1,(0,l.each)(this.children,function(e){return e.deselect()})}}]),t}(u.default);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(713),u=r(s),l=n(490),c=r(l),d=n(0),f=function(e){function t(e,n,r){i(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));return a.type="checkbox",a.children=(0,d.map)(r.options,function(t,n){return new u.default(e,n,t)}),a}return a(t,e),t}(c.default);t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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 a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(231),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,o));return a.value=o.value,a.preset=o.preset,a.active=o.selected,a}return o(t,e),a(t,[{key:"toggleActive",value:function(){return this.active=!this.active,this.filter.changed()}},{key:"isActive",value:function(){return!!this.active}}]),t}(u.default);t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return t?new _.default(e):new p.default(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=n(715),l=r(u),c=n(717),d=r(c),f=n(491),p=r(f),h=n(493),_=r(h),m=function(){function e(t){var n=t.preset,r=t.uploadOptions;i(this,e),this._preset=n,this._uploadOptions=r}return a(e,[{key:"isValid",value:function(){return this._preset.isValid()}},{key:"uploadOptions",value:function(e){return(0,s.extend)({preset:this._preset.values(),upload:e},this._uploadOptions)}},{key:"errors",value:function(){return this._preset.errors()}}]),e}(),v=function(){function e(t){var n=t.inferCreationPresets,r=t.basePreset;i(this,e),this.basePreset=r,this.inferCreationPresets=n}return a(e,[{key:"buildObjUploadControl",value:function(e){var t=e.filter,n=e.activeTags,r=o(t,this.inferCreationPresets),i=r.generatePresetForUpload(),a={restrictedPreset:this.inferCreationPresets,basePreset:this.basePreset,activeTags:n};return new m({preset:i,uploadOptions:a})}},{key:"buildObjCreateControl",value:function(e){var t=e.filter,n=e.activeTags,r={restrictedPreset:this.inferCreationPresets,basePreset:this.basePreset,activeTags:n};return this.inferCreationPresets?new d.default({filter:t,createOptions:r}):new l.default({filter:t,createOptions:r})}}]),e}();t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=n(232),u=r(s),l=n(491),c=r(l),d=function(){function e(t){var n=t.filter,r=t.createOptions;i(this,e),this.filter=n,this._createOptions=r;var o=new u.default(n);if(this.activeConfigs=o.findActiveFilterItems(),this._showCreationItem=(0,a.some)(this.activeConfigs,function(e){return e.enablesCreation()}),this._showCreationItem){var s=new c.default(n);this.preset=s.generatePresetForCreate()}}return o(e,[{key:"createOptions",value:function(){return(0,a.extend)({preset:this.preset.values()},this._createOptions)}},{key:"showCreationItem",value:function(){return this._showCreationItem}},{key:"isActive",value:function(){return!(this.preventCreation()||!this.presetIsValid())}},{key:"error",value:function(){return this.preventCreation()?{type:"creation_not_possible",nodeTitles:this.nodeTitlesPreventingCreation()}:this.preset.isValid()?{type:"obj_class_not_provided"}:{type:"preset_conflict",fields:this.buildPresetConflictError()}}},{key:"preventCreation",value:function(){return(0,a.some)(this.activeConfigs,function(e){return e.preventsCreation()})}},{key:"presetIsValid",value:function(){return this.preset.isValid()&&this.preset.values()._obj_class}},{key:"nodeTitlesPreventingCreation",value:function(){var e=(0,a.flatten)((0,a.map)(this.activeConfigs,function(e){return e.nodesPreventingCreation()}));return(0,a.map)(e,function(e){return e.title})}},{key:"buildPresetConflictError",value:function(){var e={};return(0,a.each)(this.preset.errors(),function(t,n){return e[n]=t,e[n]}),e}}]),e}();t.default=d},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(e){return void 0===e.value?e.name:e.value},u=function(e,t,n){var r=t[0];if("checkbox"!==a.default.last(n).type&&r[e])return r[e];var i=a.default.find(n,function(t){return t[e]});return i&&i[e]},l=function(){function e(t,n){r(this,e),this.parents=t,this.nodes=n}return i(e,[{key:"activeNodes",value:function(){return this.nodes}},{key:"values",value:function(){return a.default.flatten(a.default.map(this.activeNodes(),s))}},{key:"query",value:function(){return"checkbox"!==a.default.last(this.parents).type&&this.activeNodes()[0].query}},{key:"hasQuery",value:function(){return!!this.query()}},{key:"field",value:function(){return u("field",this.activeNodes(),this.parents)}},{key:"hasField",value:function(){return!!this.field()}},{key:"preventsCreation",value:function(){return this.nodesPreventingCreation().length>0}},{key:"nodesPreventingCreation",value:function(){return a.default.select(this.activeNodes(),function(e){return!1===e.enable_create})}},{key:"enablesCreation",value:function(){return a.default.some(this.activeNodes(),function(e){return!0===e.enable_create})}},{key:"operator",value:function(){return u("operator",this.activeNodes(),this.parents)||"equals"}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=n(493),u=r(s),l=n(41),c=r(l),d=function(){function e(t){var n=t.filter,r=t.createOptions;i(this,e),this.filter=n;var o=new u.default(n);this.preset=o.generatePresetForCreate(),this._createOptions=r}return o(e,[{key:"createOptions",value:function(){return(0,a.extend)({preset:this.preset.values()},this._createOptions)}},{key:"showCreationItem",value:function(){return this.isActive()}},{key:"isActive",value:function(){if(!this.preset.isValid())return!1;var e=this.preset.values()._obj_class;if(!e)return!1;var t=c.default.find(e);return!!t&&!t.isBinary()}},{key:"error",value:function(){return{type:"obj_class_not_provided"}}}]),e}();t.default=d},function(e,t,n){var r,i,o,a,s,u,l,c,d,f,p,h,_,m,v,g,y,b,w,k,M;y=n(0),p=n(11),c=n(719),o=n(745),u=n(753),s=n(772).default,a=n(775),l=n(234),n(235),b=n(136),v=b.setObjSource,b.LAST_ADDED,w=n(123),f=w.createObj,_=w.objDeleted,k=n(321),k.fetchTags,k.disableTags,M=n(236),m=M.setInitiallySelectedObjIds,g=M.toggleSelect,d=M.changeSelectionMode,h=M.deselectObjs,r=p({displayName:"App",updateFilter:function(e){return this.setState({filter:e})},createObj:function(e){return this.props.dispatch(f(e))},destroyObj:function(e){return this.props.dispatch(_(e))},setInitiallySelectedObjIds:function(){var e;return e=this.props.options.selection||[],this.props.dispatch(m(e))},toggleObjSelection:function(e){return this.props.dispatch(g(e))},deselectObjs:function(){return this.props.dispatch(h())},setObjSource:function(e){return this.props.dispatch(v(e))},activateInitialFilter:function(){if(this.refs.filterView.activateInitialFilter)return this.props.options.selection&&y.map(this.props.options.selection,function(e){return function(t){return e.toggleObjSelection(t)}}(this)),this.refs.filterView.activateInitialFilter()},componentDidMount:function(){return this.props.dispatch(d(this.props.options.selectionMode)),this.state.filter.onChange(this.updateFilter),this.setInitiallySelectedObjIds(),this.activateInitialFilter()},getInitialState:function(){return{filter:this.props.initialFilter}},_getBodyClassName:function(){return this.props.inspector.isMaximized?"scrivito-content-browser-body scrivito-content-browser-inspector-max":"scrivito-content-browser-body"},render:function(){return React.createElement("div",{className:"scrivito-app-root"},React.createElement("div",{className:this._getBodyClassName()},React.createElement("div",{className:"scrivito-content-browser-wrapper"},React.createElement(c,{filter:this.state.filter,standAlone:this.props.options.standAlone}),React.createElement(o,{ref:"filterView",filter:this.state.filter,standAlone:this.props.options.standAlone,additionCount:this.props.lastAdded.additions.length,deselectObjs:this.deselectObjs,initialSelection:this.props.selection.initiallySelectedObjIds,selectedObjs:this.props.selection.selectedObjs,setObjSource:this.setObjSource,activeSource:this.props.objSource.activeSource}),React.createElement(u,{ref:"itemView",createObj:this.createObj,tags:this.props.tags,dispatch:this.props.dispatch,objCreationFactory:this.props.objCreationFactory,viewMode:this.props.objDisplay.viewMode,lastAdded:this.props.lastAdded,initialSelection:this.props.selection.initiallySelectedObjIds,toggleObjSelection:this.toggleObjSelection,selectedObjs:this.props.selection.selectedObjs,selectionMode:this.props.selection.selectionMode,setObjSource:this.setObjSource,activeSource:this.props.objSource.activeSource,baseQuery:this.props.baseQuery,numToLoad:this.props.objLoad.numToLoad,sortCriteria:this.props.sortCriteria,filter:this.state.filter,isEditingAllowed:this.props.options.isEditingAllowed})),React.createElement(s,{dispatch:this.props.dispatch,isEditingAllowed:this.props.options.isEditingAllowed,disableDelete:!!this.props.options.disableDelete,selectedObjs:this.props.selection.selectedObjs})),React.createElement(a,{promise:this.props.promise,dispatch:this.props.dispatch,isEditingAllowed:this.props.options.isEditingAllowed,disableDelete:this.props.options.disableDelete,selectedObjs:this.props.selection.selectedObjs,standAlone:this.props.options.standAlone}))}}),i=l.connect(function(e){return function(e){return e}}())(r),e.exports={App:r,AppContainer:i}},function(e,t,n){var r,i,o,a,s,u,l,c;l=n(11),s=n(720),o=n(722),r=n(743),i=n(744),u=n(234).connect,a=l({displayName:"TopBar",render:function(){return React.createElement("div",{className:"scrivito-content-browser-topbar"},React.createElement(r,{filter:this.props.filter}),this.props.standAlone?React.createElement(i,{selectionMode:this.props.selectionMode,dispatch:this.props.dispatch}):void 0,React.createElement(s,{viewMode:this.props.viewMode,dispatch:this.props.dispatch}),React.createElement(o,{dispatch:this.props.dispatch,sortCriteria:this.props.sortCriteria}))}}),c=function(e){return{selectionMode:e.selection.selectionMode,sortCriteria:e.sortCriteria,viewMode:e.objDisplay.viewMode}},e.exports=u(c)(a)},function(e,t,n){var r,i,o,a,s,u,l;s=n(11),a=n(721),l=n(233),i=l.THUMBNAIL_VIEW,r=l.TABLE_VIEW,u=l.setViewMode,o=s({displayName:"ViewModeBar",viewModeButtonsData:[r,i],setViewMode:function(e){return this.props.dispatch(u(e))},render:function(){var e;return React.createElement("div",null,function(){var t,n,r,i;for(r=this.viewModeButtonsData,i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push(React.createElement(a,{setViewMode:this.setViewMode,viewMode:this.props.viewMode,key:e,mode:e}));return i}.call(this))}}),e.exports=o},function(e,t,n){var r,i;i=n(11),r=i({displayName:"ViewModeBarItem",viewModeButtonsData:{THUMBNAIL_VIEW:{iconTitle:"Thumbnails",iconClassName:"scrivito_icon_th_small"},TABLE_VIEW:{iconTitle:"List",iconClassName:"scrivito_icon_list_medium"}},getIconClassName:function(){return"scrivito_icon "+this.viewModeButtonsData[this.props.mode].iconClassName},getIconTitle:function(){return this.viewModeButtonsData[this.props.mode].iconTitle},getLabelClasses:function(){var e;return e="",this.props.viewMode===this.props.mode&&(e+="active "),e+="editing-button-view"},changeViewMode:function(){return this.props.setViewMode(this.props.mode)},render:function(){return React.createElement("span",{"data-size":this.props.mode,className:this.getLabelClasses(),onClick:this.changeViewMode},React.createElement("i",{title:this.getIconTitle(),className:this.getIconClassName()}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u,l,c,d;c=n(0),s=n(11),i=n(40).default,a=n(723),n(234),d=n(318),u=d.sortInAscOrder,l=d.sortInDescOrder,r=d.DESC_SORT_ORDER,d.ASC_SORT_ORDER,o=s({displayName:"SortMenu",sortItemsData:function(){return{relevance:{itemTitle:i.translate("content_browser.sort.relevance.title"),descCriteriaTitle:i.translate("content_browser.sort.relevance.desc_criteria_title"),sortItemType:"relevance"},filename:{itemTitle:i.translate("content_browser.sort.file_name.title"),descCriteriaTitle:i.translate("content_browser.sort.file_name.desc_criteria_title"),ascCriteriaTitle:i.translate("content_browser.sort.file_name.asc_criteria_title"),sortItemType:"blob:filename"},date:{itemTitle:i.translate("content_browser.sort.date.title"),descCriteriaTitle:i.translate("content_browser.sort.date.desc_criteria_title"),ascCriteriaTitle:i.translate("content_browser.sort.date.asc_criteria_title"),sortItemType:"_lastChanged"}}},toggleSortMenu:function(){return $(".scrivito-content-browser-sort-menu .scrivito_menu_box").fadeToggle()},getSortActiveCriteriaTitle:function(){var e;if(void 0!==(e=c.findWhere(c.values(this.sortItemsData()),{sortItemType:this.props.sortCriteria.sortField})))switch(this.props.sortCriteria.sortDirection){case r:return e.descCriteriaTitle;default:return e.ascCriteriaTitle}},getSortIconClassName:function(){var e;return e="scrivito_icon ",this.props.sortCriteria.sortDirection===r?e+="scrivito_icon_sort_up":e+="scrivito_icon_sort_down",e},setDescSortCriteria:function(e){return this.props.dispatch(l(e))},setAscSortCriteria:function(e){return this.props.dispatch(u(e))},render:function(){var e;return React.createElement("span",{className:"scrivito-content-browser-sort-menu scrivito_button scrivito_lightgrey scrivito_right",onClick:this.toggleSortMenu},React.createElement("i",{className:this.getSortIconClassName()}),React.createElement("span",{className:"scrivito-content-browser-sort-menu-title"},this.getSortActiveCriteriaTitle()),React.createElement("i",{className:"scrivito_icon scrivito-content-browser-menu-icon scrivito_icon_chevron_down"}),React.createElement("ul",{className:"scrivito_menu_box scrivito_left"},function(){var t,n,r,i;for(r=Object.keys(this.sortItemsData()),i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push(React.createElement(a,{sortCriteria:this.props.sortCriteria,key:e,sortItem:this.sortItemsData()[e],activeTitle:this.getSortActiveCriteriaTitle(),setAscSortCriteria:this.setAscSortCriteria,setDescSortCriteria:this.setDescSortCriteria}));return i}.call(this),React.createElement("li",{className:"scrivito_menu_box_overlay"})))}}),e.exports=o},function(e,t,n){var r,i;i=n(11),r=i({displayName:"SortMenuItem",basicIcon:"scrivito_icon ",_ascIconSortClass:function(){return this.basicIcon+"scrivito_icon_sort_down"},_descIconSortClass:function(){return this.basicIcon+"scrivito_icon_sort_up"},getSortLiClassName:function(e){var t;return t="scrivito_menu_item",this.props.activeTitle===e&&(t+=" active"),t},_getAscSortLiClassName:function(){return this.getSortLiClassName(this.currentSortItem().ascCriteriaTitle)},_getDescSortLiClassName:function(){return this.getSortLiClassName(this.currentSortItem().descCriteriaTitle)},currentSortItem:function(){return this.props.sortItem},_sortInAscOrder:function(){return this.props.setAscSortCriteria(this.currentSortItem().sortItemType)},_sortInDescOrder:function(){return this.props.setDescSortCriteria(this.currentSortItem().sortItemType)},render:function(){return React.createElement("div",null,React.createElement("li",{className:"scrivito_menu_separator"},React.createElement("span",null,this.currentSortItem().itemTitle)),this.currentSortItem().descCriteriaTitle?React.createElement("li",{className:this._getDescSortLiClassName(),onClick:this._sortInDescOrder},React.createElement("span",null,React.createElement("i",{className:this._descIconSortClass()}," "),this.currentSortItem().descCriteriaTitle)):void 0,this.currentSortItem().ascCriteriaTitle?React.createElement("li",{className:this._getAscSortLiClassName(),onClick:this._sortInAscOrder},React.createElement("span",null,React.createElement("i",{className:this._ascIconSortClass()}," "),this.currentSortItem().ascCriteriaTitle)):void 0)}}),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return{Provider:a.default(e),connect:u.default(e)}}t.__esModule=!0,t.default=i;var o=n(725),a=r(o),s=n(726),u=r(s);e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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)}function o(e){var t=e.version;if("string"!=typeof t)return!0;var n=t.split("."),r=parseInt(n[0],10),i=parseInt(n[1],10);return 0===r&&13===i}function a(e){function t(){h||p||(h=!0,console.error("With React 0.14 and later versions, you no longer need to wrap <Provider> child into a function."))}function n(){!h&&p&&(h=!0,console.error("With React 0.13, you need to wrap <Provider> child into a function. This restriction will be removed with React 0.14."))}function a(){_||(_=!0,console.error("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/rackt/react-redux/releases/tag/v2.0.0 for the migration instructions."))}var u=e.Component,c=e.PropTypes,d=e.Children,f=l.default(c),p=o(e),h=!1,_=!1;return function(e){function o(t,n){r(this,o),e.call(this,t,n),this.store=t.store}return i(o,e),o.prototype.getChildContext=function(){return{store:this.store}},s(o,null,[{key:"childContextTypes",value:{store:f.isRequired},enumerable:!0},{key:"propTypes",value:{store:f.isRequired,children:(p?c.func:c.element).isRequired},enumerable:!0}]),o.prototype.componentWillReceiveProps=function(e){this.store!==e.store&&a()},o.prototype.render=function(){var e=this.props.children;return"function"==typeof e?(t(),e=e()):n(),d.only(e)},o}(u)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=a;var u=n(497),l=function(e){return e&&e.__esModule?e:{default:e}}(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("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)}function a(e){return e.displayName||e.name||"Component"}function s(e){var t=e.Component,n=e.PropTypes,r=d.default(n);return function(n,s,c){function d(e,t){var n=e.getState(),r=T?C(n,t):C(n);return y.default(_.default(r),"`mapStateToProps` must return an object. Instead received %s.",r),r}function f(e,t){var n=e.dispatch,r=D?E(n,t):E(n);return y.default(_.default(r),"`mapDispatchToProps` must return an object. Instead received %s.",r),r}function h(e,t,n){var r=x(e,t,n);return y.default(_.default(r),"`mergeProps` must return an object. Instead received %s.",r),r}var m=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],g=Boolean(n),C=n||b,E=_.default(s)?v.default(s):s||w,x=c||k,T=C.length>1,D=E.length>1,S=m.pure,O=void 0===S||S,j=M++;return function(n){var s=function(t){function s(e,n){i(this,s),t.call(this,e,n),this.version=j,this.store=e.store||n.store,y.default(this.store,'Could not find "store" in either the context or props of "'+this.constructor.displayName+'". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "'+this.constructor.displayName+'".'),this.stateProps=d(this.store,e),this.dispatchProps=f(this.store,e),this.state={props:this.computeNextState()}}return o(s,t),s.prototype.shouldComponentUpdate=function(e,t){return!O||!p.default(this.state.props,t.props)},u(s,null,[{key:"displayName",value:"Connect("+a(n)+")",enumerable:!0},{key:"WrappedComponent",value:n,enumerable:!0},{key:"contextTypes",value:{store:r},enumerable:!0},{key:"propTypes",value:{store:r},enumerable:!0}]),s.prototype.computeNextState=function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0];return h(this.stateProps,this.dispatchProps,e)},s.prototype.updateStateProps=function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=d(this.store,e);return!p.default(t,this.stateProps)&&(this.stateProps=t,!0)},s.prototype.updateDispatchProps=function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=f(this.store,e);return!p.default(t,this.dispatchProps)&&(this.dispatchProps=t,!0)},s.prototype.updateState=function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=this.computeNextState(e);p.default(t,this.state.props)||this.setState({props:t})},s.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function(){g&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){p.default(e,this.props)||(T&&this.updateStateProps(e),D&&this.updateDispatchProps(e),this.updateState(e))},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},s.prototype.handleChange=function(){this.unsubscribe&&this.updateStateProps()&&this.updateState()},s.prototype.getWrappedInstance=function(){return this.refs.wrappedInstance},s.prototype.render=function(){return e.createElement(n,l({ref:"wrappedInstance"},this.state.props))},s}(t);return s}}}t.__esModule=!0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=s;var c=n(497),d=r(c),f=n(727),p=r(f),h=n(728),_=r(h),m=n(729),v=r(m),g=n(44),y=r(g),b=function(){return{}},w=function(e){return{dispatch:e}},k=function(e,t,n){return l({},n,e,t)},M=0;e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o++)if(!i.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;return!0}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&i(n)===i(Object)}t.__esModule=!0,t.default=r;var i=function(e){return Function.prototype.toString.call(e)};e.exports=t.default},function(e,t,n){"use strict";function r(e){return function(t){return i.bindActionCreators(e,t)}}t.__esModule=!0,t.default=r;var i=n(235);e.exports=t.default},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?u:s:l&&l in Object(e)?Object(o.a)(e):Object(a.a)(e)}var i=n(500),o=n(733),a=n(734),s="[object Null]",u="[object Undefined]",l=i.a?i.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";var r=n(732),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(51))},function(e,t,n){"use strict";function r(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[u]=n:delete e[u]),i}var i=n(500),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=i.a?i.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return o.call(e)}var i=Object.prototype,o=i.toString;t.a=r},function(e,t,n){"use strict";var r=n(736),i=Object(r.a)(Object.getPrototypeOf,Object);t.a=i},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(739),a=function(e){return e&&e.__esModule?e:{default:e}}(o);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var s=(0,a.default)(i);t.default=s}).call(t,n(51),n(78)(e))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:a.a.INIT}))throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.')})}function o(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var a=t[o];"function"==typeof e[a]&&(n[a]=e[a])}var s,u=Object.keys(n);try{i(n)}catch(e){s=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(s)throw s;for(var i=!1,o={},a=0;a<u.length;a++){var l=u[a],c=n[l],d=e[l],f=c(d,t);if(void 0===f){var p=r(l,t);throw new Error(p)}o[l]=f,i=i||f!==d}return i?o:e}}t.a=o;var a=n(498);n(499),n(502)},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function i(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),i={},o=0;o<n.length;o++){var a=n[o],s=e[a];"function"==typeof s&&(i[a]=r(s,t))}return i}t.a=i},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,a){var s=e(n,r,a),u=s.dispatch,l=[],c={getState:s.getState,dispatch:function(e){return u(e)}};return l=t.map(function(e){return e(c)}),u=i.a.apply(void 0,l)(s.dispatch),o({},s,{dispatch:u})}}}t.a=r;var i=n(503),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){var r,i,o,a,s,u;u=n(0),s=n(11),o=n(6),i=n(40).default,r=n(232).default,a=s({displayName:"SearchBar",propTypes:{filter:o.object.isRequired},updateSearchFilter:function(e){return this.props.filter.setSearchTerm(e)},getInitialState:function(){return{searchTerm:this.props.filter.searchTerm||""}},triggerSearchWithEnter:function(e){if(13===e.keyCode)return this.updateSearchFilter(this.state.searchTerm)},clearButtonClassName:function(){var e;return e="scrivito_customer_icon sci_inv_cross ",this.state.searchTerm.length>0&&(e+="show-clear"),e},clearSearchTerm:function(){var e;return e="",this.setState({searchTerm:e}),this.updateSearchFilter(e)},_getSearchPlaceholder:function(){var e,t,n,o,a;return o=new r(this.props.filter),a=i.translate("content_browser.search_bar.search_everywhere"),n=o.findActiveFilterItems(),t=u.flatten(u.map(n,function(e){return e.activeNodes()})),t.length>1?a=i.translate("content_browser.search_bar.search_filtered"):1===t.length&&(e=t[0].title,a=i.translate("content_browser.search_bar.search_in",e)),a},_updateSearchTerm:function(e){return this.setState({searchTerm:e.target.value})},render:function(){return React.createElement("div",{className:"scrivito-content-browser-search"},React.createElement("span",{className:"text-input-wrapper"},React.createElement("input",{type:"text",placeholder:this._getSearchPlaceholder(),className:"search-field",value:this.state.searchTerm,onChange:this._updateSearchTerm,onKeyUp:this.triggerSearchWithEnter}),React.createElement("span",{onClick:this.clearSearchTerm,className:this.clearButtonClassName(),title:i.translate("content_browser.search_bar.clear_button")})),React.createElement("button",{className:"search-field-button",onClick:this.updateSearchFilter.bind(this,this.state.searchTerm),title:i.translate("content_browser.search_bar.search_button")},React.createElement("i",{className:"scrivito_icon scrivito_icon_search"})))}}),e.exports=a},function(e,t,n){var r,i,o,a,s,u,l,c;o=n(6),r=n(40).default,l=n(11),c=n(236),u=c.changeSelectionMode,i=c.MULTI_SELECTION_MODE,a=c.SINGLE_SELECTION_MODE,s=l({displayName:"SelectionModeToggle",propTypes:{dispatch:o.func.isRequired,selectionMode:o.string.isRequired},multiToggleModeChange:function(e){return e.target.checked?this.props.dispatch(u(i)):this.props.dispatch(u(a))},render:function(){return React.createElement("div",{className:"cb_toggle"},React.createElement("input",{type:"checkbox",checked:this.props.selectionMode===i,id:"toggly",onChange:this.multiToggleModeChange}),React.createElement("label",{htmlFor:"toggly"},React.createElement("i",null)),React.createElement("span",null,r.translate("content_browser.search_bar.multi_selection_toggle")))}}),e.exports=s},function(e,t,n){var r,i,o,a,s,u,l,c,d,f,p;f=n(0),d=n(11),s=n(40).default,a=n(746),r=n(747),c=n(751),p=n(136),u=p.LAST_ADDED,i=p.FILTER,l=n(752),o=d({displayName:"Filter",mixins:[a],renderAdditionalFilters:function(){var e;return e=f.map(this.props.filter.additionalFilters,function(e){return React.createElement(r,{key:e.field,filter:e})}),this.renderSubFiltersList(e,"compact")},setFilterObjSource:function(){return this.props.setObjSource(i),this.props.deselectObjs()},getFilterClassName:function(){var e;return e="scrivito-content-browser-filter",this.props.additionCount>0&&(e+=" last_added"),this.props.standAlone&&(e+=" stand-alone"),e},componentDidMount:function(){return this.props.filter.onChange(this.setFilterObjSource)},activateInitialFilter:function(){return this.props.setObjSource(i)},activateLastAddedFilter:function(){return this.props.setObjSource(u),this.props.deselectObjs(),this.props.filter.deselectHierarchicalFilters()},renderFilterSeparator:function(){if(this.props.filter.hasAdditionalFilters()&&this.props.filter.hasHierarchicalFilters())return React.createElement("div",{className:"scrivito_separator"},s.translate("content_browser.filter.more_filters"))},render:function(){var e;return e=f.map(this.props.filter.getHierarchicalFilters(),function(e){return function(e){return React.createElement(c,{key:e.name,filter:e})}}()),React.createElement("div",{className:this.getFilterClassName()},React.createElement("div",{className:"scrivito-content-browser-filter-fixed"},this.props.additionCount>0?React.createElement(l,{addedCount:this.props.additionCount,active:this.props.activeSource===u,activateLastAddedFilter:this.activateLastAddedFilter}):void 0),React.createElement("div",{className:"scrivito-content-browser-filter-scroll"},this.renderSubFiltersList(e),this.renderFilterSeparator(),this.renderAdditionalFilters()))}}),e.exports=o},function(e,t){var n;n={renderSubFiltersList:function(e,t){var n;return n="scrivito-content-browser-hierarchy-filter",t&&t.length>0&&(n=n+" "+t),React.createElement("ul",{className:n},e)}},e.exports=n},function(e,t,n){var r,i,o,a,s,u;u=n(11),a=n(504),o=n(748),s=n(749),i=n(750),r=u({displayName:"AdditionalOptionFilter",mixins:[a],getInitialState:function(){return this.defaultExpansionState()},getAdditionalLableClasses:function(){return this.openClassSetOptions()},createDeselctAllRadioOption:function(){return React.createElement(o,{filter:this.props.filter})},renderSubRadioOptionFilters:function(){var e,t,n,r,o,a,u;for(a=this.props.filter.children,u=[],n=r=0,o=a.length;r<o;n=++r)t=a[n],e=t.title+"-"+n,"radio"===this.props.filter.type?u.push(React.createElement(s,{key:e,filter:t})):"checkbox"===this.props.filter.type?u.push(React.createElement(i,{key:e,filter:t})):u.push(void 0);return u},render:function(){var e;return e=this.getAdditionalLableClasses(),React.createElement("li",{className:e},this.renderArrowTag(),React.createElement("div",{className:"scrivito-content-browser-hierarchy-label",onClick:this.arrowHandleClick},React.createElement("span",null,this.props.filter.title)),React.createElement("ul",null,"radio"===this.props.filter.type?this.createDeselctAllRadioOption():void 0,this.renderSubRadioOptionFilters()))}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),i=n(505),r=o({displayName:"DeselectAllRadioOptionFilter",mixins:[i],getActiveClass:function(){return this.props.filter.hasActiveChildren()?"":"active"},deselectAllRadioOption:function(){return this.props.filter.deactivateAll()},render:function(){return React.createElement("li",{className:this.getActiveClass(),onClick:this.deselectAllRadioOption},React.createElement("div",{className:"scrivito-content-browser-hierarchy-radio"}),this.renderHierarchyLabelTitle("All"))}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),r=n(506),i=o({displayName:"RadioOptionFilter",mixins:[r],labelToggleClick:function(){if(!this.props.filter.isActive())return this.props.filter.setActive()},render:function(){return React.createElement("li",{className:this.activeClassName(),onClick:this.labelToggleClick},React.createElement("div",{className:"scrivito-content-browser-hierarchy-radio"}),this.renderOptionFilterTitle())}}),e.exports=i},function(e,t,n){var r,i,o;o=n(11),i=n(506),r=o({displayName:"CheckBoxOptionFilter",mixins:[i],render:function(){return React.createElement("li",{className:this.activeClassName(),onClick:this.optionLabelToggleClick},React.createElement("div",{className:"scrivito-content-browser-hierarchy-checkbox"}),this.renderOptionFilterTitle())}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),r=n(504),i=o({displayName:"TreeFilter",mixins:[r],getInitialState:function(){return this.defaultExpansionState()},_convertLegacyIconName:function(e){return"generic"===e?"sheet":e},renderIconTag:function(){var e,t;if(null!=this.props.filter.icon)return t=this._convertLegacyIconName(this.props.filter.icon),e="scrivito_customer_icon sci_"+t,React.createElement("i",{className:e})},getLabelClasses:function(){var e;return e="",this.props.filter.isActive()&&(e="active "),e+=this.openClassSetOptions()},renderSubTrees:function(){var e,t,n,r,o,a,s;for(a=this.props.filter.children,s=[],n=r=0,o=a.length;r<o;n=++r)t=a[n],e=t.title+"-"+n,s.push(React.createElement(i,{key:e,filter:t}));return s},labelToggleClick:function(){return this.props.filter.toggleActive()},render:function(){var e;return e=this.getLabelClasses(),React.createElement("li",{className:e},this.props.filter.isLeaf()?void 0:this.renderArrowTag(),React.createElement("div",{className:"scrivito-content-browser-hierarchy-label",onClick:this.labelToggleClick},this.renderIconTag(),React.createElement("span",null,this.props.filter.title)),this.props.filter.isLeaf()?void 0:React.createElement("ul",null,this.renderSubTrees()))}}),e.exports=i},function(e,t,n){var r,i,o;r=n(40).default,o=n(11),i=o({displayName:"LastAddedFilter",filterClass:function(){var e;return e="scrivito-content-browser-filter-item",this.props.active&&(e+=" active"),e},render:function(){return React.createElement("div",{className:this.filterClass(),onClick:this.props.activateLastAddedFilter},React.createElement("i",{className:"scrivito-content-browser-icon scrivito-content-browser-icon-ok-box"}),React.createElement("span",{className:"scrivito-content-browser-filter-label"},r.translate("content_browser.last_added.filter_name"),React.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.props.addedCount)))}}),e.exports=i},function(e,t,n){var r,i,o,a,s,u,l,c,d,f,p,h,_,m,v,g,y,b,w,k,M,C,E;k=n(0),r=n(3).default,p=n(507),m=n(754).default,c=n(759),h=n(767),_=n(769),f=n(770).default,y=n(233),M=n(136),l=M.LAST_ADDED,a=M.FILTER,C=n(321),b=C.toggleExpandTagBar,w=C.toggleTag,E=n(515),g=E.loadMoreObjs,i=E.DEFAULT_NUMBER_TO_LOAD,d=n(771).default,o=n(319),s=n(40).default,v=n(516).default,u=scrivito.legacyCreateConnectedComponent({displayName:"Items",getInitialState:function(){return{dragInProgress:!1}},baseItemsClass:function(e){var t;return t="scrivito-content-browser-items",e.length>0&&(t+=" tags-row",this.props.tags.isExpanded&&(t+=" expanded")),this.props.isEditingAllowed&&(t+=" upload-row"),t},toggleExpandTagBar:function(){return this.props.dispatch(b())},toggleTagAction:function(e){return this.props.dispatch(w(e,this.props.filter))},dropZoneClass:function(e){var t;return t=this.baseItemsClass(e),this.state.dragInProgress&&(this.props.isEditingAllowed?t+=" uploader-drag-over":t+=" uploader-drag-over-forbiden"),t},_buildErrorList:function(e){return React.createElement("ul",null,k.map(e,function(e){return React.createElement("li",null,e)}))},_showConflictingPresetsAlert:function(e){var t,n,r;return t=k.keys(e),n=k.first(t),r=React.createElement("div",null,React.createElement("p",null,"The selected properties could not be assigned to the uploaded files."),React.createElement("p",null,"Choose only one of these ",this._errorMessageForField(n),":"),this._buildErrorList(e[n]),k.map(k.rest(t),function(t){return function(n){return React.createElement("div",null,React.createElement("p",null,"Also, choose just one of these ",t._errorMessageForField(n),":"),t._buildErrorList(e[n]))}}(this)),"Please try again."),o.showAlert({title:"Upload cancelled",body:React.createElement("div",null,r)})},_errorMessageForField:function(e){return"_obj_class"===e?"types":'"'+e+'" options'},_handleFileDrop:function(e){var t,n;if(this._changeDragState(!1)(e),t=null!=(n=e.dataTransfer)?n.files:void 0,this.props.isEditingAllowed&&(null!=t?t.length:void 0))return this._uploadFiles(t)},_handleFileInput:function(e){if(this.props.isEditingAllowed)return this._uploadFiles(e.target.files)},_uploadFiles:function(e){var t,n;return t=this.props.objCreationFactory,n=t.buildObjUploadControl({filter:this.props.filter,activeTags:this.props.tags.activeTags}),n.isValid()?(k.each(e,function(e){return function(t){return e.props.createObj(n.uploadOptions(t))}}(this)),this.props.filter.deselectHierarchicalFilters()):this._showConflictingPresetsAlert(n.errors())},_changeDragState:function(e){return function(t){return function(n){return n.preventDefault(),n.stopPropagation(),t.setState({dragInProgress:e})}}(this)},_getTagsQueryRequest:function(){return new d({filter:this.props.filter,baseQuery:this.props.baseQuery,tags:this.props.tags.activeTags,sortCriteria:this.props.sortCriteria}).searchRequest()},_getItemsQueryRequest:function(){return new d({excludedObjIds:this.props.initialSelection,filter:this.props.filter,baseQuery:this.props.baseQuery,tags:this.props.tags.activeTags,sortCriteria:this.props.sortCriteria}).searchRequest()},_getTags:function(){var e,t;return t=[],e=this._getTagsQueryRequest(),e&&this.props.activeSource===a&&(t=scrivito.loadWithDefault(t,function(){return e.facet("tags",{limit:100})})),t},_loadNextObjs:function(){return this.props.dispatch(g(this.props.numToLoad+10))},_loadObjs:function(){var e;return e=this._getItemsQueryRequest(),void 0!==e?v(e.iterator(),this.props.numToLoad):{objs:[],done:!0}},_initiallySelectedAndLoadedObjs:function(){var e,t,n,i;return t=[],this.props.initialSelection&&(t=this.props.initialSelection.map(function(e){return r.get(e)})),i=this._loadObjs(),n=i.objs,e=i.done,{objs:t.concat(n),done:e}},render:function(){var e,t,n,r;return React.createElement("div",{className:this.dropZoneClass(this._getTags()),onDragOver:this._changeDragState(!0),onDrop:this._handleFileDrop,onDragLeave:this._changeDragState(!1)},React.createElement(_,{tags:this._getTags(),toggleTag:this.toggleTagAction,activeTags:this.props.tags.activeTags,toggleExpandTagBar:this.toggleExpandTagBar}),(r=this._initiallySelectedAndLoadedObjs(),n=r.objs,e=r.done,t=!e&&n.length<this.props.numToLoad,t&&this.props.numToLoad===i?React.createElement(f,null):this.props.activeSource===l?React.createElement(c,{activeTags:this.props.tags.activeTags,selectionMode:this.props.selectionMode,toggleObjSelection:this.props.toggleObjSelection,selectedObjs:this.props.selectedObjs,viewMode:this.props.viewMode,dragInProgress:this.state.dragInProgress,additions:this.props.lastAdded.additions}):this.props.viewMode===y.TABLE_VIEW?React.createElement(p,null,React.createElement(h,{activeTags:this.props.tags.activeTags,filter:this.props.filter,toggleObjSelection:this.props.toggleObjSelection,isLoading:t,fetch:this._loadNextObjs,objs:n,hasMore:!e,createObj:this.props.createObj,selectedObjs:this.props.selectedObjs,isEditingAllowed:this.props.isEditingAllowed,selectionMode:this.props.selectionMode,objCreationFactory:this.props.objCreationFactory})):React.createElement(m,{objs:n,viewMode:this.props.viewMode,toggleObjSelection:this.props.toggleObjSelection,selectionMode:this.props.selectionMode,activeTags:this.props.tags.activeTags,filter:this.props.filter,isEditingAllowed:this.props.isEditingAllowed,createObj:this.props.createObj,selectedObjs:this.props.selectedObjs,isLoading:t,fetch:this._loadNextObjs,hasMore:!e,objCreationFactory:this.props.objCreationFactory})),this.props.isEditingAllowed?React.createElement("div",{className:"scrivito-content-browser-upload"},React.createElement("input",{className:"scrivito-content-browser-file-input",type:"file",multiple:"multiple",onChange:this._handleFileInput}),React.createElement("i",{className:"scrivito_icon scrivito_icon_upload"}),React.createElement("span",null,s.translate("content_browser.add_item.browse_file"))):void 0)}}),e.exports=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(508),o=r(i),a=n(757),s=r(a),u=n(511),l=r(u),c=n(0),d=scrivito.legacyCreateConnectedComponent({render:function(){var e=this.props,t=e.isLoading,n=e.fetch,r=e.hasMore;return React.createElement(l.default,{tag:"ul",className:"items scrivito-content-browser-thumbnails small",isLoading:t,hasMore:r,fetch:n},this._renderCreationItem(),this._renderItems())},_renderCreationItem:function(){if(this.props.isEditingAllowed){var e=this.props,t=e.activeTags,n=e.createObj,r=e.filter,i=e.objCreationFactory,o=i.buildObjCreateControl({filter:r,activeTags:t});return o.showCreationItem()?React.createElement(s.default,{objCreation:o,createObj:n}):void 0}},_renderItems:function(){var e=this.props,t=e.objs,n=e.selectedObjs,r=e.selectionMode,i=e.toggleObjSelection,a=(0,c.reject)(t,function(e){return e.isDeleted()});return(0,c.map)(a,function(e){return React.createElement(o.default,{key:e.id(),selectedObjs:n,objId:e.id(),baseSelectClass:"scrivito-content-browser-meta",toggleObjSelection:i,selectionMode:r})})}});t.default=d},function(e,t,n){"use strict";function r(e){var t=void 0;if(e){var n=a(e);t=o[n]}return t||(t="scrivito_icon_generic"),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o={video:"scrivito_icon_movie",audio:"scrivito_icon_music",msword:"scrivito_icon_doc",zip:"scrivito_icon_zip",pdf:"scrivito_icon_pdf","ms-excel":"scrivito_icon_xls","ms-powerpoint":"scrivito_icon_ppt","openxmlformats-officedocument.spreadsheetml":"scrivito_icon_xls",wordprocessingml:"scrivito_icon_doc",presentationml:"scrivito_icon_ppt"},a=function(e){return(0,i.find)(Object.keys(o),function(t){return e.match(new RegExp("\\b"+t+"\\b"))})}},function(e,t,n){var r,i;i=n(6),r=scrivito.legacyCreateConnectedComponent({displayName:"LoadableSpan",propTypes:{get:i.func.isRequired},_getTitle:function(){return void 0!==this.props.getTitle?this.props.getTitle():""},render:function(){return React.createElement("span",{title:this._getTitle(),className:this.props.className},this.props.get())},_scrivitoRenderWhileLoading:function(){return React.createElement("span",{className:"scrivito_loader"})}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),r=n(510).default,i=o({displayName:"ThumbnailAddItem",mixins:[r],render:function(){return React.createElement("li",{className:"content-browser-item",onClick:this.createClick},React.createElement("div",{className:this.itemClassName()},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:this.iconClassName(),title:this.iconTitle()}),React.createElement("span",null,this.textMessage()))))}}),e.exports=i},function(e,t,n){var r,i;i=n(11),r=i({displayName:"MoreItemsSpinner",render:function(){return React.createElement("div",{className:"scrivito-content-browser-endless-loader"},React.createElement("i",{className:"scrivito_icon scrivito_icon_refresh"}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u;s=n(11),i=n(760),o=n(764),a=n(507),u=n(233),r=s({displayName:"LastAddedItems",render:function(){return React.createElement("div",null,this.props.viewMode===u.TABLE_VIEW?React.createElement(a,null,React.createElement(i,{selectionMode:this.props.selectionMode,selectedObjs:this.props.selectedObjs,toggleObjSelection:this.props.toggleObjSelection,additions:this.props.additions})):React.createElement(o,{selectionMode:this.props.selectionMode,selectedObjs:this.props.selectedObjs,toggleObjSelection:this.props.toggleObjSelection,additions:this.props.additions}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u,l,c,d;c=n(0),i=n(761),o=n(762),a=n(514),d=n(320),l=d.isCompleted,u=d.isActive,s=d.failed,r=scrivito.legacyCreateConnectedComponent({displayName:"LastAddedTableViewContent",renderedLastAddedErrorThumbComponent:function(){var e;if(e=s(this.props.additions),e.length)return React.createElement(i,{failedAdditions:e})},getLastAddedTableViewItems:function(){return c.map(this.props.additions,function(e){return function(t){return u(t)?React.createElement(o,{key:t.additionId,addedItem:t}):l(t)?React.createElement(a,{toggleObjSelection:e.props.toggleObjSelection,objId:t.objId,baseSelectClass:"scrivito-content-browser-list-select ",key:t.objId,selectionMode:e.props.selectionMode,selectedObjs:e.props.selectedObjs}):void 0}}(this))},render:function(){return React.createElement("div",{className:"scrivito-content-browser-list-content"},React.createElement("table",null,React.createElement("tbody",null,this.renderedLastAddedErrorThumbComponent(),this.getLastAddedTableViewItems())))}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),r=n(512),i=o({displayName:"LastAddedTableViewError",mixins:[r],render:function(){return React.createElement("tr",null,React.createElement("td",{colSpan:"6"},React.createElement("div",{className:"scrivito-content-browser-add error",onClick:this.showAlert,title:this._titleInfo()},React.createElement("span",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,this.getErrorsCount(),React.createElement("span",null," during upload")))))}}),e.exports=i},function(e,t,n){var r,i,o;o=n(11),r=n(513),i=o({displayName:"LastAddedTableViewItem",mixins:[r],getUploadTitle:function(){return"uploading file "+this.props.addedItem.filename+" ..."},render:function(){return React.createElement("tr",null,React.createElement("td",{colSpan:"6"},this.renderUploadStateProgress(),React.createElement("div",{className:"scrivito-content-browser-add upload",title:this.getUploadTitle()},React.createElement("span",{className:"scrivito_icon scrivito_icon_generic"},this.getUploadTitle()))))}}),e.exports=i},function(e,t,n){var r,i;i=n(6),r=scrivito.legacyCreateConnectedComponent({displayName:"LoadableSpan",propTypes:{get:i.func.isRequired},_getTitle:function(){return this.props.getTitle?this.props.getTitle():""},render:function(){return React.createElement("td",{title:this._getTitle()},this.props.get())},_scrivitoRenderWhileLoading:function(){return React.createElement("td",null,React.createElement("span",{className:"scrivito_loader"}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u,l,c,d,f;d=n(0),s=n(11),r=n(765),i=n(766),a=n(508),f=n(320),c=f.isCompleted,l=f.isActive,u=f.failed,o=s({displayName:"LastAddedThumbnailItems",renderedLastAddedErrorThumbComponent:function(){var e;if(e=u(this.props.additions),e.length)return React.createElement(r,{failedAdditions:e})},getSizeClassName:function(){return"items scrivito-content-browser-thumbnails small"},baseSelectClass:function(){return"scrivito-content-browser-meta "},buildItems:function(){return d.map(this.props.additions,function(e){return function(t){return l(t)?React.createElement(i,{key:t.additionId,addedItem:t}):c(t)?React.createElement(a,{key:t.objId,selectedObjs:e.props.selectedObjs,baseSelectClass:e.baseSelectClass(),toggleObjSelection:e.props.toggleObjSelection,selectionMode:e.props.selectionMode,objId:t.objId}):void 0}}(this))},render:function(){return React.createElement("div",null,React.createElement("ul",{className:this.getSizeClassName()},this.renderedLastAddedErrorThumbComponent(),this.buildItems()))}}),e.exports=o},function(e,t,n){var r,i,o;o=n(11),r=n(512),i=o({displayName:"LastAddedThumbnailErrorItem",mixins:[r],render:function(){return React.createElement("li",{className:"content-browser-item",onClick:this.showAlert,title:this._titleInfo()},React.createElement("div",{className:"scrivito-content-browser-add error"},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,this.getErrorsCount(),React.createElement("span",null,React.createElement("br",null),"during upload")))))}}),e.exports=i},function(e,t,n){var r,i,o;o=n(11),r=n(513),i=o({displayName:"LastAddedThumbnailItem",mixins:[r],addedItemClassName:function(){var e;return e="content-browser-item",this.uploadInProgress()&&(e+=" upload"),e},render:function(){return React.createElement("li",{className:this.addedItemClassName()},this.renderUploadStateProgress(),React.createElement("div",{className:"scrivito-content-browser-item-wrapper"},React.createElement("div",{className:"scrivito-content-browser-preview"}),React.createElement("span",{className:"scrivito-content-browser-thumbnails-name"},this.props.addedItem.filename)))}}),e.exports=i},function(e,t,n){var r,i,o,a,s;s=n(0),a=n(514),i=n(768),r=n(511),o=scrivito.legacyCreateConnectedComponent({baseSelectClass:function(){return"scrivito-content-browser-list-select "},getTableViewItems:function(e){var t;return t=s.reject(e,function(e){return e.isDeleted()}),s.map(t,function(e){return function(t){return React.createElement(a,{key:t.id(),objId:t.id(),selectionMode:e.props.selectionMode,baseSelectClass:e.baseSelectClass(),selectedObjs:e.props.selectedObjs,toggleObjSelection:e.props.toggleObjSelection})}}(this))},_renderObjCreationItem:function(){var e;if(this.props.isEditingAllowed&&(e=this.props.objCreationFactory.buildObjCreateControl({filter:this.props.filter,activeTags:this.props.activeTags}),e.showCreationItem()))return React.createElement(i,{objCreation:e,createObj:this.props.createObj})},render:function(){return React.createElement(r,{isLoading:this.props.isLoading,hasMore:this.props.hasMore,fetch:this.props.fetch,tag:"div",className:"scrivito-content-browser-list-content"},React.createElement("table",null,React.createElement("tbody",null,this._renderObjCreationItem(),this.getTableViewItems(this.props.objs))))}}),e.exports=o},function(e,t,n){var r,i,o;o=n(11),r=n(510).default,i=o({mixins:[r],render:function(){return React.createElement("tr",{onClick:this.createClick},React.createElement("td",{colSpan:"6"},React.createElement("div",{className:this.itemClassName()},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:this.iconClassName(),title:this.iconTitle()}),React.createElement("span",null,this.textMessage())))))}}),e.exports=i},function(e,t,n){var r,i,o;o=n(0),i=n(11),r=i({displayName:"TagBar",_expandTagBar:function(){return this.props.toggleExpandTagBar()},_tagClasName:function(e){if(o.include(this.props.activeTags,e))return"active"},_renderTags:function(){return o.map(this.props.tags,function(e){return function(t){return React.createElement("li",{key:t.name(),onClick:function(){return e.props.toggleTag(t.name())},className:e._tagClasName(t.name())},t.name(),React.createElement("span",{className:"amount"},t.count()))}}(this))},render:function(){return React.createElement("div",{className:"scrivito-content-browser-items-tag-wrapper"},React.createElement("ul",{className:"scrivito-content-browser-items-tag-list"},this._renderTags()),React.createElement("i",{onClick:this._expandTagBar,className:"scrivito_icon scrivito_icon_slidedown"}))}}),e.exports=r},function(e,t,n){"use strict";function r(){return React.createElement("div",{className:"scrivito-content-browser-loading"},React.createElement("i",{className:"scrivito_icon scrivito_icon_refresh"}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(494),s=r(a),u=n(3),l=r(u),c=n(495),d=r(c),f=n(496),p=r(f),h=n(318),_=n(0),m=function(){function e(t){var n=t.filter,r=t.baseQuery,o=t.excludedObjIds,a=t.tags,u=t.sortCriteria;if(i(this,e),!u)throw new Error("sortCriteria is not initialized. Please explicit initialize the sort criteria param");this.nodeQueryBuilder=new s.default(n),this.filter=n,this.baseQuery=r,this.excludedObjIds=o,this.tags=a,this.sortCriteria=u}return o(e,[{key:"searchRequest",value:function(){var t=[];this.baseQuery&&t.push((0,d.default)(this.baseQuery)),t=t.concat(this.nodeQueryBuilder.searchRequest());var n=this.filter.searchTerm&&this.filter.searchTerm.length>0;if(n&&t.push(l.default.where("*","containsPrefix",this.filter.searchTerm)),!(t.length<1)){var r=(0,p.default)(t.shift().params());return(0,_.each)(t,function(e){r=r.and(e)}),r=this.tagsQuery(r),r=e.ignoreMigrationStore(r),r=this.excludeObjIds(r),r=this.sortQuery(r,n)}}},{key:"tagsQuery",value:function(e){var t=e;return this.tags&&this.tags.length>0&&(0,_.each)(this.tags,function(e){t=t.and("tags","equals",e)}),t}},{key:"excludeObjIds",value:function(e){var t=e;return this.excludedObjIds&&this.excludedObjIds.length>0&&(t=t.andNot("id","equals",this.excludedObjIds)),t}},{key:"sortQuery",value:function(e,t){var n=e;return"relevance"===this.sortCriteria.sortField?t||(n=n.order("_lastChanged",h.DESC_SORT_ORDER)):n=n.order(this.sortCriteria.sortField,this.sortCriteria.sortDirection),n}}],[{key:"ignoreMigrationStore",value:function(e){return e.andNot("_objClass","equals","MigrationStore")}}]),e}();t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(3),s=r(a),u=n(773),l=r(u),c=n(123),d=n(6),f=r(d),p=scrivito.legacyCreateConnectedComponent({displayName:"Inspector",propTypes:{isEditingAllowed:f.default.bool.isRequired,disableDelete:f.default.bool.isRequired,selectedObjs:f.default.arrayOf(f.default.string).isRequired,dispatch:f.default.func.isRequired},render:function(){return React.createElement("div",{className:"scrivito-content-browser-inspector"},this._renderContent())},_renderContent:function(){var e=this.props,t=e.selectedObjs,n=e.isEditingAllowed,r=e.disableDelete,i=e.dispatch;if(!t.length)return null;if(1===t.length){var a=o(t,1),u=a[0],c=s.default.get(u),d=void 0;return c&&(d=React.createElement(scrivito.PropertiesComponent,{content:c})),React.createElement("div",null,React.createElement(l.default,{isEditingAllowed:n,disableDelete:r,dispatch:i,selectedObjs:t,deleteInspectedObjs:this._deleteInspectedObjs}),React.createElement("div",{className:"inspector-content"},d))}return React.createElement(l.default,{isEditingAllowed:n,disableDelete:r,dispatch:i,selectedObjs:t,deleteInspectedObjs:this._deleteInspectedObjs})},_deleteInspectedObjs:function(){var e=this.props,t=e.selectedObjs,n=e.dispatch;if(t.length){var r;(r=scrivito.ConfirmDeleteDialog).open.apply(r,i(t)).then(function(e){e&&t.forEach(function(e){return n((0,c.objDeleted)(e))})})}}});t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(40),s=r(a),u=n(774),l=r(u),c=n(517),d=scrivito.legacyCreateConnectedComponent({displayName:"Inspector",propTypes:{isEditingAllowed:React.PropTypes.bool.isRequired,disableDelete:React.PropTypes.bool.isRequired,selectedObjs:React.PropTypes.arrayOf(React.PropTypes.string).isRequired,dispatch:React.PropTypes.func.isRequired,deleteInspectedObjs:React.PropTypes.func.isRequired},_getMultiSelectedTitle:function(){return s.default.translate("content_browser.header.selected_items",this.props.selectedObjs.length)},getDetailsClassName:function(){return"scrivito_icon scrivito_icon_eye"},_title:function(){return 1!==this.props.selectedObjs.length?this._getMultiSelectedTitle():null!==this._getInspectedObj()?scrivito.titleForObj(this._getInspectedObj()):void 0},_getInspectedObj:function(){var e=this.props.selectedObjs[0];return o.default.get(e)},toggleInspectorMaximized:function(){return this.props.dispatch((0,c.toggleInspectorMaximized)())},render:function(){return React.createElement("h3",{title:this._title()},React.createElement(l.default,{toggleInspectorMaximized:this.toggleInspectorMaximized}),React.createElement("span",{title:"Details",className:this.getDetailsClassName()}),React.createElement("span",{className:"title"},this._title()),this.props.isEditingAllowed&&!this.props.disableDelete&&React.createElement("span",{className:"scrivito_icon scrivito_icon_trash scrivito_delete",onClick:this.props.deleteInspectedObjs}))}});t.default=d},function(e,t,n){var r,i;i=n(11),r=i({displayName:"MaximizeInspectorToggle",_toggleMaximized:function(){return this.props.toggleInspectorMaximized()},render:function(){return React.createElement("span",{className:"scrivito_move_left",title:"Maximize details view",onClick:this._toggleMaximized},React.createElement("span",{className:"scrivito_icon scrivito_icon_chevron_left"}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s;s=n(0),n(3).default,i=n(40).default,o=n(11),a=n(123).objDeleted,r=o({displayName:"Footer",currentSelectedCount:function(){return this.props.selectedObjs.length},deleteButtonClass:function(){var e;return e=" scrivito_button scrivito_lightgrey content-browser-delete scrivito_left",0===this.currentSelectedCount()&&(e+=" scrivito_disabled"),e},closeClick:function(){return this.props.standAlone?this.props.promise.resolve():this.props.promise.reject()},doneClick:function(){return this.props.promise.resolve(this.props.selectedObjs)},deleteClick:function(){var e;if(this.props.selectedObjs.length)return(e=scrivito.ConfirmDeleteDialog).open.apply(e,this.props.selectedObjs).then(function(e){return function(t){if(t)return s.each(e.props.selectedObjs,function(t){return e.props.dispatch(a(t))})}}(this))},_getClassNameCloseButton:function(){var e;return e="scrivito_button content-browser-close",this.props.standAlone&&(e+=" scrivito_green"),e},render:function(){return React.createElement("div",{className:"scrivito-content-browser-footer"},this.props.isEditingAllowed&&!this.props.disableDelete?React.createElement("a",{className:this.deleteButtonClass(),onClick:this.deleteClick},i.translate("content_browser.footer.delete"),React.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.currentSelectedCount())):void 0,this.props.standAlone?void 0:React.createElement("a",{className:"scrivito_button scrivito_green content-browser-save",onClick:this.doneClick},i.translate("content_browser.footer.select"),React.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.currentSelectedCount())),React.createElement("a",{className:this._getClassNameCloseButton(),onClick:this.closeClick},i.translate("content_browser.footer.close")))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u;s=n(777),u=n(235),a=u.createStore,r=u.applyMiddleware,i=n(778),o=function(e){return r(s)(a)(i,e)},e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}e.exports=r},function(e,t,n){var r,i,o,a,s,u,l,c,d,f;r=n(235),a=n(779),s=n(780),u=n(782).default,l=n(783),f=n(784),i=n(785),d=n(786).default,c=n(787),o=r.combineReducers({objDisplay:u,objLoad:l,inspector:a,lastAdded:s,sortCriteria:f,tags:i,selection:d,objSource:c}),e.exports=o},function(e,t,n){var r,i,o,a;a=n(0),i=n(517).MAXIMIZE_TOGGLE,r=n(123).DELETE_OBJ_FINISH,o=function(e,t){switch(null==e&&(e={isMaximized:!1}),t.type){case i:return a.extend({},e,{isMaximized:!e.isMaximized});case r:return a.extend({},e,{isMaximized:!1});default:return e}},e.exports=o},function(e,t,n){var r,i,o,a,s,u,l,c,d,f;d=n(0),f=n(123),o=f.CREATE_OBJ_START,i=f.CREATE_OBJ_FINISH,r=f.CREATE_OBJ_FAILED,a=f.DELETE_OBJ_FINISH,l=n(781),u=function(e,t){var n;return n=d.findIndex(e.additions,function(e){return 100===e.progress&&e.objId===t}),n>-1?l(e,{additions:{$splice:[[n,1]]}}):e},c=function(e,t,n){var r,i;return i=d.findIndex(e.additions,{additionId:t}),r=e.additions[i],r=l(r,{$merge:n}),l(e,{additions:{$splice:[[i,1,r]]}})},s=function(e,t){var n;switch(null==e&&(e={additions:[]}),t.type){case o:return n=d.omit(t,"type"),l(e,{additions:{$unshift:[n]}});case i:return c(e,t.additionId,{objId:t.objId,progress:100});case r:return c(e,t.additionId,{failureMessage:t.message,progress:0});case a:return u(e,t.objId);default:return e}},e.exports=s},function(e,t,n){function r(e){return e instanceof Array?e.slice():e&&"object"==typeof e?h(new e.constructor,e):e}function i(){function e(n,i){Array.isArray(n)&&Array.isArray(i)||d(!Array.isArray(i),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),d("object"==typeof i&&null!==i,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(t).join(", "));var o=n;_(i);return _(i).forEach(function(a){if(f.call(t,a))o=t[a](i[a],o,i,n);else{var s=e(n[a],i[a]);s!==o[a]&&(o===n&&(o=r(n)),o[a]=s)}}),o}var t=h({},m);return e.extend=function(e,n){t[e]=n},e}function o(e,t,n){d(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e);var r=t[n];d(Array.isArray(r),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",n,r)}function a(e,t){d(Array.isArray(e),"Expected $splice target to be an array; got %s",e),s(t.$splice)}function s(e){d(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function u(e){d("function"==typeof e,"update(): expected spec of $apply to be a function; got %s.",e)}function l(e){d(1===Object.keys(e).length,"Cannot have more than one key in an object with $set")}function c(e,t){d(t&&"object"==typeof t,"update(): $merge expects a spec of type 'object'; got %s",t),d(e&&"object"==typeof e,"update(): $merge expects a target of type 'object'; got %s",e)}var d=n(44),f=Object.prototype.hasOwnProperty,p=Array.prototype.splice,h=Object.assign||function(e,t){return _(t).forEach(function(n){f.call(t,n)&&(e[n]=t[n])}),e},_="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)},m={$push:function(e,t,n){return o(t,n,"$push"),t.concat(e)},$unshift:function(e,t,n){return o(t,n,"$unshift"),e.concat(t)},$splice:function(e,t,n,i){var o=t===i?r(i):t;return a(o,n),e.forEach(function(e){s(e),p.apply(o,e)}),o},$set:function(e,t,n){return l(n),e},$unset:function(e,t,n,i){d(Array.isArray(e),"update(): expected spec of $unset to be an array; got %s. Did you forget to wrap the key(s) in an array?",e);var o=t;return e.forEach(function(e){Object.hasOwnProperty.call(o,e)&&(t===i&&(t=r(i)),delete t[e])}),t},$merge:function(e,t,n,i){var t=t;return c(t,e),_(e).forEach(function(n){e[n]!==t[n]&&(t===i&&(t=r(i)),t[n]=e[n])}),t},$apply:function(e,t){return u(e),e(t)}};e.exports=i(),e.exports.newContext=i},function(e,t,n){"use strict";function r(e,t){switch(t.type){case i.SET_VIEW_MODE:return{viewMode:t.viewMode};default:return e||{viewMode:i.THUMBNAIL_VIEW}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(233)},function(e,t,n){var r,i,o,a,s,u,l,c;u=n(0),l=n(515),o=l.LOAD_MORE_OBJS,r=l.DEFAULT_NUMBER_TO_LOAD,c=n(136),i=c.FILTER,a=c.SET_OBJ_SOURCE,s=function(e,t){switch(null==e&&(e={numToLoad:r}),t.type){case o:return u.extend({},e,{numToLoad:t.numToLoad});case a:return t.activeSource===i?u.extend({},e,{numToLoad:r}):e;default:return e}},e.exports=s},function(e,t,n){var r,i,o,a;a=n(318),r=a.CHANGE_SORT_ORDER,i=a.DESC_SORT_ORDER,o=function(e,t){switch(null==e&&(e={sortField:"relevance",sortDirection:i}),t.type){case r:return{sortField:t.criteriaType,sortDirection:t.sortDirection};default:return e}},e.exports=o},function(e,t,n){var r,i,o,a,s,u,l;u=n(0),l=n(321),r=l.EXPAND_TOGGLE,i=l.TOGGLE_TAG,s=function(e,t){return u.include(e,t)?u.without(e,t):e.concat([t])},a=function(){return{isExpanded:!1,activeTags:[]}},o=function(e,t){switch(null==e&&(e=a()),t.type){case i:return u.extend({},e,{activeTags:s(e.activeTags,t.tag)});case r:return u.extend({},e,{isExpanded:!e.isExpanded});default:return e}},e.exports=o},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case a.CHANGE_SELECTION_MODE:return(0,o.extend)({},e,{selectedObjs:[],selectionMode:t.mode||e.selectionMode});case a.INITIALLY_SELECT:return(0,o.extend)({},e,{initiallySelectedObjIds:t.objIds});case a.TOGGLE_SELECT:return(0,o.extend)({},e,{selectedObjs:i(e.selectedObjs,t.objId,e.selectionMode)});case s.DELETE_OBJ_FINISH:return(0,o.extend)({},e,{selectedObjs:(0,o.without)(e.selectedObjs,t.objId)});case s.CREATE_OBJ_FINISH:return t.isLastAddedVisible?(0,o.extend)({},e,{selectedObjs:i(e.selectedObjs,t.objId,e.selectionMode)}):e;case a.DESELECT_OBJS:return(0,o.extend)({},e,{initiallySelectedObjIds:[],selectedObjs:[]});default:return e}}function i(e,t,n){return(0,o.contains)(e,t)?(0,o.without)(e,t):"multi"===n?e.concat([t]):[t]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(0),a=n(236),s=n(123),u={initiallySelectedObjIds:[],selectedObjs:[],selectionMode:a.MULTI_SELECTION_MODE}},function(e,t,n){var r,i,o,a,s,u,l;u=n(0),l=n(136),a=l.SET_OBJ_SOURCE,i=l.FILTER,o=l.LAST_ADDED,r=n(123).CREATE_OBJ_START,s=function(e,t){switch(null==e&&(e={activeSource:i}),t.type){case r:return t.activeSource!==o?u.extend({},e,{activeSource:o}):e;case a:return{activeSource:t.activeSource};default:return e}},e.exports=s},function(e,t,n){"use strict";n(789),n(790)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o={"content_browser.footer.close":"Close","content_browser.footer.select":"Select","content_browser.footer.delete":"Delete","content_browser.header.selected_items":"Selected: $1 items","content_browser.table_view.title":"Title","content_browser.table_view.type":"Type","content_browser.table_view.file_type":"File type","content_browser.table_view.file_size":"File size","content_browser.table_view.last_change":"Last change","content_browser.sort.relevance.title":"Sort by relevance","content_browser.sort.relevance.desc_criteria_title":"Relevance","content_browser.sort.file_name.title":"Sort by filename","content_browser.sort.file_name.asc_criteria_title":"Filename: From A to Z","content_browser.sort.file_name.desc_criteria_title":"Filename: From Z to A","content_browser.sort.date.title":"Sort by date","content_browser.sort.date.asc_criteria_title":"Last change: oldest first","content_browser.sort.date.desc_criteria_title":"Last change: latest first","content_browser.search_bar.clear_button":"Clear","content_browser.search_bar.search_button":"Search","content_browser.search_bar.search_everywhere":"Search everywhere","content_browser.search_bar.search_filtered":"Search filtered content","content_browser.search_bar.search_in":'Search "$1"',"content_browser.search_bar.multi_selection_toggle":"multi-select","content_browser.last_added.filter_name":"Last added","content_browser.last_added.failed_upload":"Upload failed. Please check your network connection.","content_browser.last_added.failed_upload_counts":"$1 Error(s)","content_browser.last_added.title_info":"Display full upload error message","content_browser.last_added.upload_error":"The selected filter options cannot be applied to the file(s) you wanted to upload","content_browser.last_added.preset_error":"#values can not be called on an invalid Preset","content_browser.filter.more_filters":"more filters","content_browser.add_item.browse_file":"Browse file to upload","content_browser.add_item.failed":"The selected filter options cannot be applied to the file(s) you wanted to upload. Please select only one of the following options, then try again:","content_browser.add_item.preset_conflict":"The selected filter options cannot be applied to the file(s) you wanted to upload. Please select only one of the following options, then try again:","content_browser.add_item.create_item":"Create item","content_browser.add_item.create_impossible":"Item creation not possible","content_browser.add_item.disabled_filters":"Creation of items matching the selected filters has been disabled.","content_browser.add_item.error_no_obj_class":"Configuration error: No '_obj_class' provided.","content_browser.add_item.prevent_creation":"The selected filter options $1 prevent item creation"};i.default.load("en",o),t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o={"content_browser.footer.close":"Schließen","content_browser.footer.select":"Auswählen","content_browser.footer.delete":"Löschen","content_browser.header.selected_items":"Ausgewählt: $1 Elemente","content_browser.table_view.title":"Titel","content_browser.table_view.type":"Typ","content_browser.table_view.file_type":"Dateityp","content_browser.table_view.file_size":"Dateigröße","content_browser.table_view.last_change":"Letzte Änderung","content_browser.sort.relevance.title":"Nach Relevanz sortieren","content_browser.sort.relevance.desc_criteria_title":"Relevanz","content_browser.sort.file_name.title":"Nach Dateiname sortieren","content_browser.sort.file_name.asc_criteria_title":"Dateiname: Von A bis Z","content_browser.sort.file_name.desc_criteria_title":"Dateiname: Von Z bis A","content_browser.sort.date.title":"Nach Datum sortieren","content_browser.sort.date.asc_criteria_title":"Letzte Änderung: Älteste zuerst","content_browser.sort.date.desc_criteria_title":"Letzte Änderung: Neueste zuerst","content_browser.search_bar.clear_button":"Löschen","content_browser.search_bar.search_button":"Suchen","content_browser.search_bar.search_everywhere":"Alles durchsuchen","content_browser.search_bar.search_filtered":"Gefilterte Inhalte durchsuchen","content_browser.search_bar.search_in":'"$1" durchsuchen',"content_browser.search_bar.multi_selection_toggle":"Mehrfachauswahl","content_browser.last_added.filter_name":"Zuletzt hinzugefügt","content_browser.last_added.failed_upload":"Fehler beim Hochladen. Bitte prüfen Sie Ihre Netzwerkverbindung","content_browser.last_added.failed_upload_counts":"$1 Fehler","content_browser.last_added.title_info":"Vollständige Fehlermeldung anzeigen","content_browser.last_added.upload_error":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten.","content_browser.last_added.preset_error":"#values kann nicht auf einer ungültigen Vorbelegung aufgerufen werden.","content_browser.filter.more_filters":"Weitere Filter","content_browser.add_item.browse_file":"Datei zum Hochladen auswählen","content_browser.add_item.failed":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten. Bitte versuchen Sie es mit nur einer der folgenden Optionen erneut:","content_browser.add_item.preset_conflict":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten. Bitte versuchen Sie es mit nur einer der folgenden Optionen erneut","content_browser.add_item.create_item":"Element anlegen","content_browser.add_item.create_impossible":"Es kann kein Element angelegt werden","content_browser.add_item.disabled_filters":"Es ist nicht möglich, zu den Filtern passende Elemente anzulegen.","content_browser.add_item.error_no_obj_class":"Konfigurationsfehler: '_obj_class' wurde nicht angegeben.","content_browser.add_item.prevent_creation":"Elemente können aufgrund der ausgewählten Filteroptionen $1 nicht angelegt werden."};i.default.load("de",o),t.default=o},function(e,t,n){"use strict";function r(e){return new scrivito.Promise(function(t,n){e.then(t),e.fail(n)})}Object.defineProperty(t,"__esModule",{value:!0}),t.promiseFromJqueryDeferred=r},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){var t=e.onClick;return React.createElement("div",{className:"add_list_items_button",onClick:t},React.createElement("i",{className:"scrivito_icon scrivito_icon_plus"}))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=n(322),s=n(39),u=n(487),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=(0,s.createClassForCustomAttributeItemDescription)("linklist",{getInitialState:function(){return{emptyLinkPositions:[]}},render:function(){var e=this.props.field.get();return this.props.readOnly&&0===e.length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("linklist_item_component.linklist.undefined"))):React.createElement("div",{className:"scrivito_linklist_item"},React.createElement(d,{distance:10,helperClass:"scrivito_detail_content scrivito_detail_content_dragging",items:this._buildLinklist(),lockToContainerEdges:!0,onDelete:this._onDelete,onSortEnd:this._onSortEnd,readOnly:this.props.readOnly,onChange:this._onChange}),!this.props.readOnly&&React.createElement(i,{onClick:this._onAddLinkClick}))},_update:function(e){this.props.field.update((0,o.compact)(e))},_onDelete:function(e,t){e.preventDefault(),e.stopPropagation();var n=this._buildLinklist();if(null===n[t])return void this._removeEmptyLinkAt(t);n.splice(t,1),this._update(n)},_onChange:function(e,t){var n=this._buildLinklist();null===n[t]&&this._removeEmptyLinkAt(t),null===e&&this._addEmptyLinkAt(t);var i=[].concat(r(n.slice(0,t)),[e],r(n.slice(t+1,n.length)));this._update(i)},_onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex,r=this._buildLinklist(),i=(0,a.arrayMove)(this._buildLinklist(),t,n);this._update(i),null===r[t]&&this._swapEmptyLink(t,n),null===r[n]&&this._swapEmptyLink(n,n-1)},_onAddLinkClick:function(e){e.preventDefault(),e.stopPropagation(),this._addEmptyLinkAt(this.props.field.get().length+this.state.emptyLinkPositions.length)},_buildLinklist:function(){for(var e=this.props.field.get(),t=0;t<this.state.emptyLinkPositions.length;t++)e.splice(this.state.emptyLinkPositions[t],0,null);return e},_addEmptyLinkAt:function(e){var t=this.state.emptyLinkPositions;t.push(e),this.setState({emptyLinkPositions:t.sort()})},_removeEmptyLinkAt:function(e){var t=this.state.emptyLinkPositions;t.splice(t.indexOf(e),1),this.setState({emptyLinkPositions:t})},_swapEmptyLink:function(e,t){this._removeEmptyLinkAt(e),this._addEmptyLinkAt(t)}}),d=(0,a.SortableContainer)(function(e){return React.createElement("div",null,e.items.map(function(t,n){return React.createElement(f,{index:n,key:n.toString(),onDelete:function(t){return e.onDelete(t,n)},readOnly:e.readOnly,onChange:function(t){return e.onChange(t,n)},link:t})}))});d.displayName="PropertiesComponent.SortableLinklist";var f=(0,a.SortableElement)(function(e){return React.createElement("div",null,React.createElement(l.default,{link:e.link,readOnly:e.readOnly,onChange:e.onChange,onDelete:e.onDelete}))});f.displayName="PropertiesComponent.SortableLinklistItem",t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(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||"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);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)}function u(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleStart=function(e){var n=t.props,r=n.distance,i=n.shouldCancelStart;if(2===e.button||i(e))return!1;t._touched=!0,t._pos={x:e.pageX,y:e.pageY};var o=(0,w.closest)(e.target,function(e){return null!=e.sortableInfo});if(o&&o.sortableInfo&&t.nodeIsChild(o)&&!t.state.sorting){var a=t.props.useDragHandle,s=o.sortableInfo,u=s.index,l=s.collection;if(a&&!(0,w.closest)(e.target,function(e){return null!=e.sortableHandle}))return;t.manager.active={index:u,collection:l},"a"===e.target.tagName.toLowerCase()&&e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}},t.nodeIsChild=function(e){return e.sortableInfo.manager===t.manager},t.handleMove=function(e){var n=t.props,r=n.distance,i=n.pressThreshold;if(!t.state.sorting&&t._touched){t._delta={x:t._pos.x-e.pageX,y:t._pos.y-e.pageY};var o=Math.abs(t._delta.x)+Math.abs(t._delta.y);r||i&&!(i&&o>=i)?r&&o>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}},t.handleEnd=function(){var e=t.props.distance;t._touched=!1,e||t.cancel()},t.cancel=function(){t.state.sorting||(clearTimeout(t.pressTimer),t.manager.active=null)},t.handlePress=function(e){var n=t.manager.getActive();if(n){var r=t.props,o=r.axis,a=r.getHelperDimensions,s=r.helperClass,u=r.hideSortableGhost,l=r.onSortStart,c=r.useWindowAsScrollContainer,d=n.node,f=n.collection,p=d.sortableInfo.index,h=(0,w.getElementMargin)(d),_=t.container.getBoundingClientRect(),m=a({index:p,node:d,collection:f});t.node=d,t.margin=h,t.width=m.width,t.height=m.height,t.marginOffset={x:t.margin.left+t.margin.right,y:Math.max(t.margin.top,t.margin.bottom)},t.boundingClientRect=d.getBoundingClientRect(),t.containerBoundingRect=_,t.index=p,t.newIndex=p,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=t.getEdgeOffset(d),t.initialOffset=t.getOffset(e),t.initialScroll={top:t.scrollContainer.scrollTop,left:t.scrollContainer.scrollLeft},t.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset};var v=d.querySelectorAll("input, textarea, select"),g=d.cloneNode(!0);if([].concat(i(g.querySelectorAll("input, textarea, select"))).forEach(function(e,t){"file"!==e.type&&v[t]&&(e.value=v[t].value)}),t.helper=t.document.body.appendChild(g),t.helper.style.position="fixed",t.helper.style.top=t.boundingClientRect.top-h.top+"px",t.helper.style.left=t.boundingClientRect.left-h.left+"px",t.helper.style.width=t.width+"px",t.helper.style.height=t.height+"px",t.helper.style.boxSizing="border-box",t.helper.style.pointerEvents="none",u&&(t.sortableGhost=d,d.style.visibility="hidden",d.style.opacity=0),t.minTranslate={},t.maxTranslate={},t.axis.x&&(t.minTranslate.x=(c?0:_.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(c?t.contentWindow.innerWidth:_.left+_.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(c?0:_.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(c?t.contentWindow.innerHeight:_.top+_.height)-t.boundingClientRect.top-t.height/2),s){var y;(y=t.helper.classList).add.apply(y,i(s.split(" ")))}t.listenerNode=e.touches?d:t.contentWindow,w.events.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),w.events.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}),t.setState({sorting:!0,sortingIndex:p}),l&&l({node:d,index:p,collection:f},e)}},t.handleSortMove=function(e){var n=t.props.onSortMove;e.preventDefault(),t.updatePosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)},t.handleSortEnd=function(e){var n=t.props,r=n.hideSortableGhost,i=n.onSortEnd,o=t.manager.active.collection;t.listenerNode&&(w.events.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),w.events.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&(t.sortableGhost.style.visibility="",t.sortableGhost.style.opacity="");for(var a=t.manager.refs[o],s=0,u=a.length;s<u;s++){var l=a[s],c=l.node;l.edgeOffset=null,c.style[w.vendorPrefix+"Transform"]="",c.style[w.vendorPrefix+"TransitionDuration"]=""}clearInterval(t.autoscrollInterval),t.autoscrollInterval=null,t.manager.active=null,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({oldIndex:t.index,newIndex:t.newIndex,collection:o},e),t._touched=!1},t.autoscroll=function(){var e=t.translate,n={x:0,y:0},r={x:1,y:1},i={x:10,y:10};e.y>=t.maxTranslate.y-t.height/2?(n.y=1,r.y=i.y*Math.abs((t.maxTranslate.y-t.height/2-e.y)/t.height)):e.x>=t.maxTranslate.x-t.width/2?(n.x=1,r.x=i.x*Math.abs((t.maxTranslate.x-t.width/2-e.x)/t.width)):e.y<=t.minTranslate.y+t.height/2?(n.y=-1,r.y=i.y*Math.abs((e.y-t.height/2-t.minTranslate.y)/t.height)):e.x<=t.minTranslate.x+t.width/2&&(n.x=-1,r.x=i.x*Math.abs((e.x-t.width/2-t.minTranslate.x)/t.width)),t.autoscrollInterval&&(clearInterval(t.autoscrollInterval),t.autoscrollInterval=null,t.isAutoScrolling=!1),0===n.x&&0===n.y||(t.autoscrollInterval=setInterval(function(){t.isAutoScrolling=!0;var e={left:1*r.x*n.x,top:1*r.y*n.y};t.scrollContainer.scrollTop+=e.top,t.scrollContainer.scrollLeft+=e.left,t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()},5))},t.manager=new b.default,t.events={start:t.handleStart,move:t.handleMove,end:t.handleEnd},(0,g.default)(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time."),t.state={},t}return s(n,t),d(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.getContainer,r=t.useWindowAsScrollContainer,i=this.props.contentWindow||window;this.container="function"==typeof n?n(this.getWrappedInstance()):(0,m.findDOMNode)(this),this.document=this.container.ownerDocument||document,this.scrollContainer=r?this.document.body:this.container,this.contentWindow="function"==typeof i?i():i;for(var o in this.events)!function(t){e.events.hasOwnProperty(t)&&w.events[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}(o)}},{key:"componentWillUnmount",value:function(){var e=this;for(var t in this.events)!function(t){e.events.hasOwnProperty(t)&&w.events[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}(t)}},{key:"getEdgeOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{top:0,left:0};if(e){var n={top:t.top+e.offsetTop,left:t.left+e.offsetLeft};return e.parentNode!==this.container?this.getEdgeOffset(e.parentNode,n):n}}},{key:"getOffset",value:function(e){return{x:e.touches?e.touches[0].pageX:e.pageX,y:e.touches?e.touches[0].pageY:e.pageY}}},{key:"getLockPixelOffsets",value:function(){var e=this.props.lockOffset;Array.isArray(e)||(e=[e,e]),(0,g.default)(2===e.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",e);var t=e,n=c(t,2),r=n[0],i=n[1];return[this.getLockPixelOffset(r),this.getLockPixelOffset(i)]}},{key:"getLockPixelOffset",value:function(e){var t=e,n=e,r="px";if("string"==typeof e){var i=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);(0,g.default)(null!==i,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),t=n=parseFloat(e),r=i[1]}return(0,g.default)(isFinite(t)&&isFinite(n),"lockOffset value should be a finite. Given %s",e),"%"===r&&(t=t*this.width/100,n=n*this.height/100),{x:t,y:n}}},{key:"updatePosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockToContainerEdges,i=this.getOffset(e),o={x:i.x-this.initialOffset.x,y:i.y-this.initialOffset.y};if(o.y-=window.pageYOffset-this.initialWindowScroll.top,o.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=o,r){var a=this.getLockPixelOffsets(),s=c(a,2),u=s[0],l=s[1],d={x:this.width/2-u.x,y:this.height/2-u.y},f={x:this.width/2-l.x,y:this.height/2-l.y};o.x=(0,w.limit)(this.minTranslate.x+d.x,this.maxTranslate.x-f.x,o.x),o.y=(0,w.limit)(this.minTranslate.y+d.y,this.maxTranslate.y-f.y,o.y)}"x"===n?o.y=0:"y"===n&&(o.x=0),this.helper.style[w.vendorPrefix+"Transform"]="translate3d("+o.x+"px,"+o.y+"px, 0)"}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=this.manager.getOrderedRefs(),i={left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top},o={left:this.offsetEdge.left+this.translate.x+i.left,top:this.offsetEdge.top+this.translate.y+i.top},a={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};this.newIndex=null;for(var s=0,u=r.length;s<u;s++){var l=r[s].node,c=l.sortableInfo.index,d=l.offsetWidth,f=l.offsetHeight,p={width:this.width>d?d/2:this.width/2,height:this.height>f?f/2:this.height/2},h={x:0,y:0},_=r[s].edgeOffset;_||(r[s].edgeOffset=_=this.getEdgeOffset(l));var m=s<r.length-1&&r[s+1],v=s>0&&r[s-1];m&&!m.edgeOffset&&(m.edgeOffset=this.getEdgeOffset(m.node)),c!==this.index?(t&&(l.style[w.vendorPrefix+"TransitionDuration"]=t+"ms"),this.axis.x?this.axis.y?c<this.index&&(o.left+a.left-p.width<=_.left&&o.top+a.top<=_.top+p.height||o.top+a.top+p.height<=_.top)?(h.x=this.width+this.marginOffset.x,_.left+h.x>this.containerBoundingRect.width-p.width&&(h.x=m.edgeOffset.left-_.left,h.y=m.edgeOffset.top-_.top),null===this.newIndex&&(this.newIndex=c)):c>this.index&&(o.left+a.left+p.width>=_.left&&o.top+a.top+p.height>=_.top||o.top+a.top+p.height>=_.top+f)&&(h.x=-(this.width+this.marginOffset.x),_.left+h.x<this.containerBoundingRect.left+p.width&&(h.x=v.edgeOffset.left-_.left,h.y=v.edgeOffset.top-_.top),this.newIndex=c):c>this.index&&o.left+a.left+p.width>=_.left?(h.x=-(this.width+this.marginOffset.x),this.newIndex=c):c<this.index&&o.left+a.left<=_.left+p.width&&(h.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=c)):this.axis.y&&(c>this.index&&o.top+a.top+p.height>=_.top?(h.y=-(this.height+this.marginOffset.y),this.newIndex=c):c<this.index&&o.top+a.top<=_.top+p.height&&(h.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=c))),l.style[w.vendorPrefix+"Transform"]="translate3d("+h.x+"px,"+h.y+"px,0)"):n&&(this.sortableGhost=l,l.style.visibility="hidden",l.style.opacity=0)}null==this.newIndex&&(this.newIndex=this.index)}},{key:"getWrappedInstance",value:function(){return(0,g.default)(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return p.default.createElement(e,l({ref:t},(0,w.omit)(this.props,"contentWindow","useWindowAsScrollContainer","distance","helperClass","hideSortableGhost","transitionDuration","useDragHandle","pressDelay","pressThreshold","shouldCancelStart","onSortStart","onSortMove","onSortEnd","axis","lockAxis","lockOffset","lockToContainerEdges","getContainer","getHelperDimensions")))}}]),n}(f.Component),t.displayName=(0,w.provideDisplayName)("sortableList",e),t.defaultProps={axis:"y",transitionDuration:300,pressDelay:0,pressThreshold:5,distance:0,useWindowAsScrollContainer:!1,hideSortableGhost:!0,shouldCancelStart:function(e){if(-1!==["input","textarea","select","option","button"].indexOf(e.target.tagName.toLowerCase()))return!0},lockToContainerEdges:!1,lockOffset:"50%",getHelperDimensions:function(e){var t=e.node;return{width:t.offsetWidth,height:t.offsetHeight}}},t.propTypes={axis:_.default.oneOf(["x","y","xy"]),distance:_.default.number,lockAxis:_.default.string,helperClass:_.default.string,transitionDuration:_.default.number,contentWindow:_.default.any,onSortStart:_.default.func,onSortMove:_.default.func,onSortEnd:_.default.func,shouldCancelStart:_.default.func,pressDelay:_.default.number,useDragHandle:_.default.bool,useWindowAsScrollContainer:_.default.bool,hideSortableGhost:_.default.bool,lockToContainerEdges:_.default.bool,lockOffset:_.default.oneOfType([_.default.number,_.default.string,_.default.arrayOf(_.default.oneOfType([_.default.number,_.default.string]))]),getContainer:_.default.func,getHelperDimensions:_.default.func},t.childContextTypes={manager:_.default.object.isRequired},n}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=u;var f=n(20),p=r(f),h=n(6),_=r(h),m=n(31),v=n(44),g=r(v),y=n(794),b=r(y),w=n(237)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(795),s=r(a),u=n(866),l=r(u),c=function(){function e(){i(this,e),this.refs={}}return o(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return(0,s.default)(this.refs[this.active.collection],function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return(0,l.default)(this.refs[e],function(e){return e.node.sortableInfo.index})}}]),e}();t.default=c},function(e,t,n){var r=n(796),i=n(862),o=r(i);e.exports=o},function(e,t,n){function r(e){return function(t,n,r){var s=Object(t);if(!o(t)){var u=i(n,3);t=a(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,r);return l>-1?s[u?t[l]:l]:void 0}}var i=n(323),o=n(125),a=n(244);e.exports=r},function(e,t,n){function r(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}var i=n(798),o=n(849),a=n(535);e.exports=r},function(e,t,n){function r(e,t,n,r){var u=n.length,l=u,c=!r;if(null==e)return!l;for(e=Object(e);u--;){var d=n[u];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++u<l;){d=n[u];var f=d[0],p=e[f],h=d[1];if(c&&d[2]){if(void 0===p&&!(f in e))return!1}else{var _=new i;if(r)var m=r(p,h,f,e,t,_);if(!(void 0===m?o(h,p,a|s,r,_):m))return!1}}return!0}var i=n(520),o=n(326),a=1,s=2;e.exports=r},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var i=n(239),o=Array.prototype,a=o.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}var i=n(239);e.exports=r},function(e,t,n){function r(e){return i(this.__data__,e)>-1}var i=n(239);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(239);e.exports=r},function(e,t,n){function r(){this.__data__=new i,this.size=0}var i=n(238);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}var i=n(238),o=n(324),a=n(325),s=200;e.exports=r},function(e,t,n){function r(e){return!(!a(e)||o(e))&&(i(e)?h:l).test(s(e))}var i=n(521),o=n(812),a=n(107),s=n(523),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,d=Object.prototype,f=c.toString,p=d.hasOwnProperty,h=RegExp("^"+f.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[u]=n:delete e[u]),i}var i=n(222),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=i?i.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return i.call(e)}var r=Object.prototype,i=r.toString;e.exports=n},function(e,t,n){function r(e){return!!o&&o in e}var i=n(813),o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){var r=n(82),i=r["__core-js_shared__"];e.exports=i},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(816),o=n(238),a=n(324);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(817),o=n(818),a=n(819),s=n(820),u=n(821);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){function r(){this.__data__=i?i(null):{},this.size=0}var i=n(240);e.exports=r},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(i){var n=t[e];return n===o?void 0:n}return s.call(t,e)?t[e]:void 0}var i=n(240),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return i?void 0!==t[e]:a.call(t,e)}var i=n(240),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?o:t,this}var i=n(240),o="__lodash_hash_undefined__";e.exports=r},function(e,t,n){function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=n(241);e.exports=r},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function r(e){return i(this,e).get(e)}var i=n(241);e.exports=r},function(e,t,n){function r(e){return i(this,e).has(e)}var i=n(241);e.exports=r},function(e,t,n){function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=n(241);e.exports=r},function(e,t,n){function r(e,t,n,r,m,g){var y=l(e),b=l(t),w=y?h:u(e),k=b?h:u(t);w=w==p?_:w,k=k==p?_:k;var M=w==_,C=k==_,E=w==k;if(E&&c(e)){if(!c(t))return!1;y=!0,M=!1}if(E&&!M)return g||(g=new i),y||d(e)?o(e,t,n,r,m,g):a(e,t,w,n,r,m,g);if(!(n&f)){var x=M&&v.call(e,"__wrapped__"),T=C&&v.call(t,"__wrapped__");if(x||T){var D=x?e.value():e,S=T?t.value():t;return g||(g=new i),m(D,S,n,r,g)}}return!!E&&(g||(g=new i),s(e,t,n,r,m,g))}var i=n(520),o=n(524),a=n(831),s=n(834),u=n(846),l=n(50),c=n(528),d=n(529),f=1,p="[object Arguments]",h="[object Array]",_="[object Object]",m=Object.prototype,v=m.hasOwnProperty;e.exports=r},function(e,t){function n(e){return this.__data__.set(e,r),this}var r="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t,n){function r(e,t,n,r,i,M,E){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!M(new o(e),new o(t)));case f:case p:case m:return a(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case _:var x=u;case g:var T=r&c;if(x||(x=l),e.size!=t.size&&!T)return!1;var D=E.get(e);if(D)return D==t;r|=d,E.set(e,t);var S=s(x(e),x(t),r,i,M,E);return E.delete(e),S;case b:if(C)return C.call(e)==C.call(t)}return!1}var i=n(222),o=n(832),a=n(221),s=n(524),u=n(833),l=n(327),c=1,d=2,f="[object Boolean]",p="[object Date]",h="[object Error]",_="[object Map]",m="[object Number]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",k="[object DataView]",M=i?i.prototype:void 0,C=M?M.valueOf:void 0;e.exports=r},function(e,t,n){var r=n(82),i=r.Uint8Array;e.exports=i},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},function(e,t,n){function r(e,t,n,r,a,u){var l=n&o,c=i(e),d=c.length;if(d!=i(t).length&&!l)return!1;for(var f=d;f--;){var p=c[f];if(!(l?p in t:s.call(t,p)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var _=!0;u.set(e,t),u.set(t,e);for(var m=l;++f<d;){p=c[f];var v=e[p],g=t[p];if(r)var y=l?r(g,v,p,t,e,u):r(v,g,p,e,t,u);if(!(void 0===y?v===g||a(v,g,n,r,u):y)){_=!1;break}m||(m="constructor"==p)}if(_&&!m){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(_=!1)}return u.delete(e),u.delete(t),_}var i=n(835),o=1,a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return i(e,a,o)}var i=n(836),o=n(837),a=n(244);e.exports=r},function(e,t,n){function r(e,t,n){var r=t(e);return o(e)?r:i(r,n(e))}var i=n(525),o=n(50);e.exports=r},function(e,t,n){var r=n(526),i=n(838),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return a.call(e,t)}))}:i;e.exports=u},function(e,t){function n(){return[]}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){function r(e){return o(e)&&i(e)==a}var i=n(137),o=n(108),a="[object Arguments]";e.exports=r},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){return a(e)&&o(e.length)&&!!s[i(e)]}var i=n(137),o=n(330),a=n(108),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){(function(e){var r=n(522),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n(78)(e))},function(e,t,n){function r(e){if(!i(e))return o(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var i=n(530),o=n(845),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(531),i=r(Object.keys,Object);e.exports=i},function(e,t,n){var r=n(847),i=n(324),o=n(848),a=n(532),s=n(533),u=n(137),l=n(523),c=l(r),d=l(i),f=l(o),p=l(a),h=l(s),_=u;(r&&"[object DataView]"!=_(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=_(new i)||o&&"[object Promise]"!=_(o.resolve())||a&&"[object Set]"!=_(new a)||s&&"[object WeakMap]"!=_(new s))&&(_=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=_},function(e,t,n){var r=n(124),i=n(82),o=r(i,"DataView");e.exports=o},function(e,t,n){var r=n(124),i=n(82),o=r(i,"Promise");e.exports=o},function(e,t,n){function r(e){for(var t=o(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,i(a)]}return t}var i=n(534),o=n(244);e.exports=r},function(e,t,n){function r(e,t){return s(e)&&u(t)?l(c(e),t):function(n){var r=o(n,e);return void 0===r&&r===t?a(n,e):i(t,r,d|f)}}var i=n(326),o=n(851),a=n(856),s=n(331),u=n(534),l=n(535),c=n(246),d=1,f=2;e.exports=r},function(e,t,n){function r(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}var i=n(536);e.exports=r},function(e,t,n){var r=n(853),i=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r(function(e){var t=[];return i.test(e)&&t.push(""),e.replace(o,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});e.exports=s},function(e,t,n){function r(e){var t=i(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var i=n(538),o=500;e.exports=r},function(e,t,n){function r(e){return null==e?"":i(e)}var i=n(855);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(a(e))return o(e,r)+"";if(s(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}var i=n(222),o=n(224),a=n(50),s=n(223),u=1/0,l=i?i.prototype:void 0,c=l?l.toString:void 0;e.exports=r},function(e,t,n){function r(e,t){return null!=e&&o(e,t,i)}var i=n(857),o=n(858);e.exports=r},function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t,n){function r(e,t,n){t=i(t,e);for(var r=-1,c=t.length,d=!1;++r<c;){var f=l(t[r]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++r!=c?d:!!(c=null==e?0:e.length)&&u(c)&&s(f,c)&&(a(e)||o(e))}var i=n(537),o=n(328),a=n(50),s=n(329),u=n(330),l=n(246);e.exports=r},function(e,t,n){function r(e){return a(e)?i(s(e)):o(e)}var i=n(860),o=n(861),a=n(331),s=n(246);e.exports=r},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){function r(e){return function(t){return i(t,e)}}var i=n(536);e.exports=r},function(e,t,n){function r(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var u=null==n?0:a(n);return u<0&&(u=s(r+u,0)),i(e,o(t,3),u)}var i=n(539),o=n(323),a=n(863),s=Math.max;e.exports=r},function(e,t,n){function r(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}var i=n(864);e.exports=r},function(e,t,n){function r(e){if(!e)return 0===e?e:0;if((e=i(e))===o||e===-o){return(e<0?-1:1)*a}return e===e?e:0}var i=n(865),o=1/0,a=1.7976931348623157e308;e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):u.test(e)?a:+e}var i=n(107),o=n(223),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=r},function(e,t,n){var r=n(248),i=n(868),o=n(126),a=n(544),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},function(e,t,n){function r(e){return a(e)||o(e)||!!(s&&e&&e[s])}var i=n(222),o=n(328),a=n(50),s=i?i.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){function r(e,t,n){var r=-1;t=i(t.length?t:[c],u(o));var d=a(e,function(e,n,o){return{criteria:i(t,function(t){return t(e)}),index:++r,value:e}});return s(d,function(e,t){return l(e,t,n)})}var i=n(224),o=n(323),a=n(869),s=n(875),u=n(245),l=n(876),c=n(247);e.exports=r},function(e,t,n){function r(e,t){var n=-1,r=o(e)?Array(e.length):[];return i(e,function(e,i,o){r[++n]=t(e,i,o)}),r}var i=n(870),o=n(125);e.exports=r},function(e,t,n){var r=n(871),i=n(874),o=i(r);e.exports=o},function(e,t,n){function r(e,t){return e&&i(e,t,o)}var i=n(872),o=n(244);e.exports=r},function(e,t,n){var r=n(873),i=r();e.exports=i},function(e,t){function n(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}e.exports=n},function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}var i=n(125);e.exports=r},function(e,t){function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}e.exports=n},function(e,t,n){function r(e,t,n){for(var r=-1,o=e.criteria,a=t.criteria,s=o.length,u=n.length;++r<s;){var l=i(o[r],a[r]);if(l){if(r>=u)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index}var i=n(877);e.exports=r},function(e,t,n){function r(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e===e,a=i(e),s=void 0!==t,u=null===t,l=t===t,c=i(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}var i=n(223);e.exports=r},function(e,t,n){var r=n(879),i=n(543),o=n(247),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var a=o(),s=i-(a-n);if(n=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return i(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,t),l(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index;n||this.setDraggable(t,r)}},{key:"componentWillReceiveProps",value:function(e){if(this.props.index!==e.index&&this.node&&(this.node.sortableInfo.index=e.index),this.props.disabled!==e.disabled){var t=e.collection,n=e.disabled,r=e.index;n?this.removeDraggable(t):this.setDraggable(t,r)}else this.props.collection!==e.collection&&(this.removeDraggable(this.props.collection),this.setDraggable(e.collection,e.index))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.collection;e.disabled||this.removeDraggable(t)}},{key:"setDraggable",value:function(e,t){var n=this.node=(0,h.findDOMNode)(this);n.sortableInfo={index:t,collection:e,manager:this.context.manager},this.ref={node:n},this.context.manager.add(e,this.ref)}},{key:"removeDraggable",value:function(e){this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return(0,m.default)(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return d.default.createElement(e,u({ref:t},(0,v.omit)(this.props,"collection","disabled","index")))}}]),n}(c.Component),t.displayName=(0,v.provideDisplayName)("sortableElement",e),t.contextTypes={manager:p.default.object.isRequired},t.propTypes={index:p.default.number.isRequired,collection:p.default.oneOfType([p.default.number,p.default.string]),disabled:p.default.bool},t.defaultProps={collection:0},n}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var c=n(20),d=r(c),f=n(6),p=r(f),h=n(31),_=n(44),m=r(_),v=n(237)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return i(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,t),l(n,[{key:"componentDidMount",value:function(){(0,f.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return(0,h.default)(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return d.default.createElement(e,u({ref:t},this.props))}}]),n}(c.Component),t.displayName=(0,_.provideDisplayName)("sortableHandle",e),n}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var c=n(20),d=r(c),f=n(31),p=n(44),h=r(p),_=n(237)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(39),o=(0,i.createClassForCustomAttributeItemDescription)("multienum",{render:function(){var e=this,t=this.props.field.get(),n=this.props.field.values();return this.props.readOnly?React.createElement("ul",null,t.map(function(t){return React.createElement("li",{key:t},e.props.field.titleForValue(t))})):React.createElement("ul",{className:"enum_attribute scrivito_multi"},n.map(function(i){return React.createElement("li",{key:i,className:(0,r.contains)(t,i)?"enum_attribute_active":"",onClick:function(r){return e._onClick(r,i,t,n)}},e.props.field.titleForValue(i))}))},_onClick:function(e,t,n,i){if(e.preventDefault(),e.stopPropagation(),(0,r.contains)(n,t)){var o=n.indexOf(t);n.splice(o,1)}else n.push(t);n.sort(function(e,t){return i.indexOf(e)-i.indexOf(t)}),this.props.field.update(n)}});t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.isPresent,n=e.onClick;return t?React.createElement("span",{className:"clear_button delete_list_item_button scrivito_pull_right",title:scrivito.t("reference_attribute_component.clear_button.title"),onClick:n},React.createElement("i",{className:"scrivito_icon scrivito_icon_cancel"})):null}Object.defineProperty(t,"__esModule",{value:!0});var o=n(39),a=n(545),s=r(a),u=n(122),l=r(u),c=(0,o.createClassForCustomAttributeItemDescription)("reference",{render:function(){return React.createElement("div",{className:this._className(),onClick:this._onClick},React.createElement(s.default,{obj:this.props.field.get(),isBrowsable:this._isBrowsable()}),React.createElement(i,{isPresent:this._canBeCleared(),onClick:this._onClear}))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this._isBrowsable()&&(this.props.readOnly?this._showObj():this._selectObj())},_onClear:function(e){e.preventDefault(),e.stopPropagation(),this.props.field.update(null)},_className:function(){return this._isBrowsable()?"reference_attribute scrivito_browsable":"reference_attribute"},_isBrowsable:function(){return!this.props.readOnly||null!==this.props.field.get()},_canBeCleared:function(){return!this.props.readOnly&&null!==this.props.field.get()},_showObj:function(){(0,l.default)({selectionMode:"single",standAlone:!0,selection:[this.props.field.get().id()],disableDelete:!0})},_selectObj:function(){var e=this,t=this.props.field.get(),n=t?[t.id()]:[];(0,l.default)({selection:n,selectionMode:"single",standAlone:!1}).then(function(t){var n=t.isSelected,r=t.selection;n&&e.props.field.update(r[0]||null)})}});t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){return h.default.createElement("div",{className:"referencelist_attribute_item",onClick:e.onClick},h.default.createElement(g.default,{obj:e.obj,isBrowsable:!0}),e.onDelete&&h.default.createElement(a,{onClick:e.onDelete}))}function a(e){return h.default.createElement("span",u({className:"delete_list_item_button scrivito_pull_right"},e),h.default.createElement("i",{className:"scrivito_icon scrivito_icon_trash"}))}function s(e){return h.default.createElement("div",u({className:"add_list_items_button"},e),h.default.createElement("i",{className:"scrivito_icon scrivito_icon_plus"}))}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(6),c=r(l),d=n(3),f=r(d),p=n(20),h=r(p),_=n(322),m=n(39),v=n(545),g=r(v),y=n(122),b=r(y),w=(0,m.createClassForCustomAttributeItemDescription)("referencelist",{render:function(){return this.props.readOnly?h.default.createElement(k,{objs:this.props.field.get()}):h.default.createElement("div",{className:"referencelist_attribute"},h.default.createElement(M,{distance:10,helperClass:"scrivito_detail_content scrivito_detail_content_dragging",items:this.props.field.get(),lockToContainerEdges:!0,onItemClick:this._selectObj,onItemDelete:this._onItemDelete,onSortEnd:this._onSortEnd}),h.default.createElement(s,{onClick:this._onAddObjsClick}))},_onItemDelete:function(e,t){e.preventDefault(),e.stopPropagation();var n=this.props.field.get();n.splice(t,1),this.props.field.update(n)},_onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex;this.props.field.update((0,_.arrayMove)(this.props.field.get(),t,n))},_selectObj:function(e,t){var n=this;e.preventDefault(),e.stopPropagation();var r=this.props.field.get();(0,b.default)({selection:[r[t].id()],selectionMode:"single",standAlone:!1}).then(function(e){var o=e.isSelected,a=e.selection;o&&n.props.field.update([].concat(i(r.slice(0,t)),i(a),i(r.slice(t+1,r.length))))})},_onAddObjsClick:function(e){var t=this;e.preventDefault(),e.stopPropagation(),(0,b.default)({selection:[],selectionMode:"multi",standAlone:!1}).then(function(e){var n=e.isSelected,r=e.selection;n&&t.props.field.update([].concat(i(t.props.field.get()),i(r)))})}}),k=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyReferencelist",propTypes:{objs:c.default.arrayOf(c.default.instanceOf(f.default)).isRequired},render:function(){var e=this;return h.default.createElement("div",{className:"referencelist_attribute"},this.props.objs.map(function(t,n){return h.default.createElement(o,{key:t.id()+"-"+n,obj:t,onClick:function(n){return e._showObj(n,t)}})}))},_showObj:function(e,t){e.preventDefault(),e.stopPropagation(),(0,b.default)({selectionMode:"single",standAlone:!0,disableDelete:!0,selection:[t.id()]})}}),M=(0,_.SortableContainer)(function(e){return h.default.createElement("div",null,e.items.map(function(t,n){return h.default.createElement(C,{index:n,key:n.toString(),onClick:function(t){return e.onItemClick(t,n)},onDelete:function(t){return e.onItemDelete(t,n)},value:t})}))});M.displayName="PropertiesComponent.SortableReferencelist";var C=(0,_.SortableElement)(function(e){return h.default.createElement("div",null,h.default.createElement(o,{obj:e.value,onClick:e.onClick,onDelete:e.onDelete}))});C.displayName="PropertiesComponent.SortableReferencelistItem",o.propTypes={obj:c.default.instanceOf(f.default).isRequired,onClick:c.default.func.isRequired,onDelete:c.default.func},a.propTypes={onClick:c.default.func.isRequired},s.propTypes={onClick:c.default.func.isRequired},t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForCustomAttributeItemDescription)("string",{render:function(){return React.createElement("input",{type:"text",value:this.props.field.get(),disabled:this.props.readOnly,onChange:this._onChange})},_onChange:function(e){this.props.readOnly||this.props.field.update(e.target.value)}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(546),i=function(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}(r),o=n(888),a=n(0),s=n(39),u=(0,s.createClassForCustomAttributeItemDescription)("stringlist",{getInitialState:function(){return{suggestions:[]}},render:function(){return this.props.readOnly&&0===this.props.field.get().length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("stringlist_item_component.read_stringlist.placeholder"))):React.createElement(o.WithContext,{allowDeleteFromEmptyInput:!1,autocomplete:1,autofocus:!1,classNames:this._getClassNames(),handleAddition:this._handleAddition,handleDelete:this._handleDelete,handleDrag:this._handleDrag,handleFilterSuggestions:this._handleFilterSuggestions,handleInputChange:this._handleInputChange,minQueryLength:1,placeholder:scrivito.t("stringlist_item_component.edit_stringlist.add_placeholder"),readOnly:this.props.readOnly,suggestions:this.state.suggestions,tags:this._getFormattedStrings()})},_getClassNames:function(){return{activeSuggestion:"active_suggestion",remove:"remove",selected:"selected",suggestions:"suggestions",tag:"string",tagInput:"string_input",tagInputField:"string_input_field",tags:"strings "+(this.props.readOnly?"read_stringlist":"edit_stringlist")}},_getFormattedStrings:function(){return this._getStrings().map(function(e){return{id:e,text:e}})},_getStrings:function(){return(0,a.uniq)(this.props.field.get())},_hasString:function(e){return(0,a.contains)(this._getStrings(),e)},_handleAddition:function(e){this._hasString(e)||this.props.field.update(this._getStrings().concat([e]))},_handleDelete:function(e){var t=this._getStrings();t.splice(e,1),this.props.field.update(t)},_handleDrag:function(e,t,n){var r=this._getStrings();r.splice(t,1),r.splice(n,0,e.text),this.props.field.update(r)},_handleFilterSuggestions:function(e,t){var n=this;return t.filter(function(e){return!n._hasString(e.toLowerCase())})},_handleInputChange:function(e){var t=this;this._input=e,i.suggest(this.props.field.name(),e).then(function(n){t._input===e&&t.setState({suggestions:n})})}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(20),c=r(l),d=n(31),f=(r(d),n(547)),p=n(931),h=r(p),_=n(949),m=r(_),v=n(6),g=r(v),y=n(951),b=r(y),w={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},k={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},M=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={suggestions:n.props.suggestions,query:"",selectedIndex:-1,selectionMode:!1},n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.resetAndFocusInput=n.resetAndFocusInput.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),n}return a(t,e),u(t,[{key:"componentWillMount",value:function(){this.setState({classNames:s({},k,this.props.classNames)})}},{key:"resetAndFocusInput",value:function(){this.textInput.value="",this.textInput.focus()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"filteredSuggestions",value:function(e,t){return this.props.handleFilterSuggestions?this.props.handleFilterSuggestions(e,t):t.filter(function(t){return 0===t.toLowerCase().indexOf(e.toLowerCase())})}},{key:"componentWillReceiveProps",value:function(e){var t=this.filteredSuggestions(this.state.query,e.suggestions);this.setState({suggestions:t,classNames:s({},k,e.classNames)})}},{key:"handleDelete",value:function(e,t){this.props.handleDelete(e),this.setState({query:""}),this.resetAndFocusInput()}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value.trim());var t=e.target.value.trim(),n=this.filteredSuggestions(t,this.props.suggestions),r=this.state.selectedIndex;r>=n.length&&(r=n.length-1),this.setState({query:t,suggestions:n,selectedIndex:r})}},{key:"handleBlur",value:function(e){var t=e.target.value.trim();this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput.value="")}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=(t.selectedIndex,t.suggestions);if(e.keyCode===w.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1===this.props.delimiters.indexOf(e.keyCode)||e.shiftKey||(e.keyCode===w.TAB&&""===n||e.preventDefault(),""!==n&&(this.state.selectionMode&&-1!=this.state.selectedIndex&&(n=this.state.suggestions[this.state.selectedIndex]),this.addTag(n))),e.keyCode===w.BACKSPACE&&""==n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1),e.keyCode===w.UP_ARROW){e.preventDefault();var i=this.state,o=i.selectedIndex,a=i.suggestions;o=o<=0?a.length-1:o-1,this.setState({selectedIndex:o,selectionMode:!0})}e.keyCode===w.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:(this.state.selectedIndex+1)%r.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;e.preventDefault();var n=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(this.props.delimiters.map(function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join("")),r=e.clipboardData||window.clipboardData,i=r.getData("text"),o=new RegExp("["+n+"]+");i.split(o).forEach(function(e){return t.props.handleAddition(e)})}},{key:"addTag",value:function(e){if(this.props.autocomplete){var t=this.filteredSuggestions(e,this.props.suggestions);(1===this.props.autocomplete&&1===t.length||!0===this.props.autocomplete&&t.length)&&(e=t[0])}this.props.handleAddition(e),this.setState({query:"",selectionMode:!1,selectedIndex:-1}),this.resetAndFocusInput()}},{key:"handleSuggestionClick",value:function(e,t){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e,t){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags,r=n[e];this.props.handleDrag(r,e,t)}},{key:"render",value:function(){var e=this,t=this.props.handleDrag?this.moveTag:null,n=this.props.tags.map(function(e,n){return c.default.createElement(b.default,{key:e.id,index:n,tag:e,labelField:this.props.labelField,onDelete:this.handleDelete.bind(this,n),moveTag:t,removeComponent:this.props.removeComponent,readOnly:this.props.readOnly,classNames:this.state.classNames})}.bind(this)),r=this.state.query.trim(),i=this.state.selectedIndex,o=this.state.suggestions,a=this.props.placeholder,s=this.props.name,u=this.props.id,l=this.props.maxLength,d=this.props.readOnly?null:c.default.createElement("div",{className:this.state.classNames.tagInput},c.default.createElement("input",{ref:function(t){e.textInput=t},className:this.state.classNames.tagInputField,type:"text",placeholder:a,"aria-label":a,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:s,id:u,maxLength:l}),c.default.createElement(m.default,{query:r,suggestions:o,selectedIndex:i,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,classNames:this.state.classNames}));return c.default.createElement("div",{className:this.state.classNames.tags},c.default.createElement("div",{className:this.state.classNames.selected},n,this.props.inline&&d),!this.props.inline&&d)}}]),t}(l.Component);M.PropTypes={placeholder:g.default.string,labelField:g.default.string,suggestions:g.default.array,delimiters:g.default.array,autofocus:g.default.bool,inline:g.default.bool,handleDelete:g.default.func.isRequired,handleAddition:g.default.func.isRequired,handleDrag:g.default.func,handleFilterSuggestions:g.default.func,allowDeleteFromEmptyInput:g.default.bool,handleInputChange:g.default.func,handleInputBlur:g.default.func,minQueryLength:g.default.number,shouldRenderSuggestions:g.default.func,removeComponent:g.default.func,autocomplete:g.default.oneOfType([g.default.bool,g.default.number]),readOnly:g.default.bool,classNames:g.default.object,name:g.default.string,id:g.default.string,maxLength:g.default.string},M.defaultProps={placeholder:"Add new tag",tags:[],suggestions:[],delimiters:[w.ENTER,w.TAB],autofocus:!0,inline:!0,allowDeleteFromEmptyInput:!0,minQueryLength:2,autocomplete:!1,readOnly:!1},e.exports={WithContext:(0,f.DragDropContext)(h.default)(M),WithOutContext:M,Keys:w}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(890);Object.defineProperty(t,"DragDropManager",{enumerable:!0,get:function(){return r(i).default}});var o=n(911);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r(o).default}});var a=n(912);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r(a).default}});var s=n(913);Object.defineProperty(t,"createTestBackend",{enumerable:!0,get:function(){return r(s).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(891),s=r(a),u=n(893),l=r(u),c=n(249),d=function(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}(c),f=n(906),p=r(f),h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e);var r=(0,s.default)(l.default);this.context=n,this.store=r,this.monitor=new p.default(r),this.registry=this.monitor.registry,this.backend=t(this),r.subscribe(this.handleRefCountChange.bind(this))}return o(e,[{key:"handleRefCountChange",value:function(){var e=this.store.getState().refCount>0;e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){function e(e){return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=e.apply(t,i);void 0!==a&&n(a)}}var t=this,n=this.store.dispatch;return Object.keys(d).filter(function(e){return"function"==typeof d[e]}).reduce(function(t,n){var r=d[n];return t[n]=e(r),t},{})}}]),e}();t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){function r(){v===m&&(v=m.slice())}function o(){return _}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),v.push(e),function(){if(t){t=!1,r();var n=v.indexOf(e);v.splice(n,1)}}}function c(e){if(!(0,a.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,_=h(_,e)}finally{g=!1}for(var t=m=v,n=0;n<t.length;n++)t[n]();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,c({type:l.INIT})}function f(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(o())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[u.default]=function(){return this},e}var p;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,_=t,m=[],v=m,g=!1;return c({type:l.INIT}),p={dispatch:c,subscribe:s,getState:o,replaceReducer:d},p[u.default]=f,p}t.__esModule=!0,t.ActionTypes=void 0,t.default=i;var o=n(127),a=r(o),s=n(501),u=r(s),l=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,n){var r=n(531),i=r(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{dirtyHandlerIds:(0,f.default)(e.dirtyHandlerIds,t,e.dragOperation),dragOffset:(0,a.default)(e.dragOffset,t),refCount:(0,c.default)(e.refCount,t),dragOperation:(0,u.default)(e.dragOperation,t),stateId:(0,h.default)(e.stateId)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(549),a=r(o),s=n(894),u=r(s),l=n(898),c=r(l),d=n(553),f=r(d),p=n(905),h=r(p)},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case s.BEGIN_DRAG:return i({},e,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case s.PUBLISH_DRAG_SOURCE:return i({},e,{isSourcePublic:!0});case s.HOVER:return i({},e,{targetIds:t.targetIds});case u.REMOVE_TARGET:return-1===e.targetIds.indexOf(t.targetId)?e:i({},e,{targetIds:(0,a.default)(e.targetIds,t.targetId)});case s.DROP:return i({},e,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case s.END_DRAG:return i({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=r;var o=n(551),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=n(249),u=n(251),l={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null}},function(e,t,n){function r(e,t,n){return t===t?a(e,t,n):i(e,o,n)}var i=n(539),o=n(896),a=n(897);e.exports=r},function(e,t){function n(e){return e!==e}e.exports=n},function(e,t){function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}e.exports=n},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch(arguments[1].type){case i.ADD_SOURCE:case i.ADD_TARGET:return e+1;case i.REMOVE_SOURCE:case i.REMOVE_TARGET:return e-1;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(251)},function(e,t,n){var r=n(526),i=n(126),o=n(900),a=n(250),s=i(function(e){return o(r(e,a))});e.exports=s},function(e,t,n){function r(e,t,n){var r=e.length;if(r<2)return r?a(e[0]):[];for(var s=-1,u=Array(r);++s<r;)for(var l=e[s],c=-1;++c<r;)c!=s&&(u[s]=i(u[s]||l,e[c],t,n));return a(o(u,1),t,n)}var i=n(552),o=n(248),a=n(554);e.exports=r},function(e,t,n){var r=n(532),i=n(334),o=n(327),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t,n){var r=n(224),i=n(903),o=n(126),a=n(904),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},function(e,t,n){function r(e,t,n){for(var r=n?a:o,d=e[0].length,f=e.length,p=f,h=Array(f),_=1/0,m=[];p--;){var v=e[p];p&&t&&(v=s(v,u(t))),_=c(v.length,_),h[p]=!n&&(t||d>=120&&v.length>=120)?new i(p&&v):void 0}v=e[0];var g=-1,y=h[0];e:for(;++g<d&&m.length<_;){var b=v[g],w=t?t(b):b;if(b=n||0!==b?b:0,!(y?l(y,w):r(m,w,n))){for(p=f;--p;){var k=h[p];if(!(k?l(k,w):r(e[p],w,n)))continue e}y&&y.push(w),m.push(b)}}return m}var i=n(242),o=n(332),a=n(333),s=n(224),u=n(245),l=n(243),c=Math.min;e.exports=r},function(e,t,n){function r(e){return i(e)?e:[]}var i=n(250);e.exports=r},function(e,t,n){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(44),s=r(a),u=n(50),l=r(u),c=n(550),d=r(c),f=n(907),p=r(f),h=n(549),_=n(553),m=function(){function e(t){i(this,e),this.store=t,this.registry=new p.default(t)}return o(e,[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.handlerIds;(0,s.default)("function"==typeof e,"listener must be a function."),(0,s.default)(void 0===r||(0,l.default)(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,o=function(){var n=t.store.getState(),o=n.stateId;try{o===i||o===i+1&&!(0,_.areDirty)(n.dirtyHandlerIds,r)||e()}finally{i=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,s.default)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset,r=function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())};return this.store.subscribe(r)}},{key:"canDragSource",value:function(e){var t=this.registry.getSource(e);return(0,s.default)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){var t=this.registry.getTarget(e);if((0,s.default)(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();return(0,d.default)(n,r)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){var t=this.registry.getSource(e,!0);return(0,s.default)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1},n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),i=this.getItemType();if(!(0,d.default)(r,i))return!1;var o=this.getTargetIds();if(!o.length)return!1;var a=o.indexOf(e);return n?a===o.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,h.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,h.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),e}();t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){(0,p.default)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,p.default)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,p.default)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}function a(e){(0,p.default)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,p.default)("function"==typeof e.hover,"Expected hover to be a function."),(0,p.default)("function"==typeof e.drop,"Expected beginDrag to be a function.")}function s(e,t){if(t&&(0,_.default)(e))return void e.forEach(function(e){return s(e,!1)});(0,p.default)("string"==typeof e||"symbol"===(void 0===e?"undefined":d(e)),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function u(e){var t=(0,b.default)().toString();switch(e){case w.SOURCE:return"S"+t;case w.TARGET:return"T"+t;default:(0,p.default)(!1,"Unknown role: "+e)}}function l(e){switch(e[0]){case"S":return w.SOURCE;case"T":return w.TARGET;default:(0,p.default)(!1,"Cannot parse handler ID: "+e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=n(44),p=r(f),h=n(50),_=r(h),m=n(908),v=r(m),g=n(251),y=n(910),b=r(y),w={SOURCE:"SOURCE",TARGET:"TARGET"},k=function(){function e(t){i(this,e),this.store=t,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return c(e,[{key:"addSource",value:function(e,t){s(e),o(t);var n=this.addHandler(w.SOURCE,e,t);return this.store.dispatch((0,g.addSource)(n)),n}},{key:"addTarget",value:function(e,t){s(e,!0),a(t);var n=this.addHandler(w.TARGET,e,t);return this.store.dispatch((0,g.addTarget)(n)),n}},{key:"addHandler",value:function(e,t,n){var r=u(e);return this.types[r]=t,this.handlers[r]=n,r}},{key:"containsHandler",value:function(e){var t=this;return Object.keys(this.handlers).some(function(n){return t.handlers[n]===e})}},{key:"getSource",value:function(e,t){return(0,p.default)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.handlers[e]}},{key:"getTarget",value:function(e){return(0,p.default)(this.isTargetId(e),"Expected a valid target ID."),this.handlers[e]}},{key:"getSourceType",value:function(e){return(0,p.default)(this.isSourceId(e),"Expected a valid source ID."),this.types[e]}},{key:"getTargetType",value:function(e){return(0,p.default)(this.isTargetId(e),"Expected a valid target ID."),this.types[e]}},{key:"isSourceId",value:function(e){return l(e)===w.SOURCE}},{key:"isTargetId",value:function(e){return l(e)===w.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,p.default)(this.getSource(e),"Expected an existing source."),this.store.dispatch((0,g.removeSource)(e)),(0,v.default)(function(){delete t.handlers[e],delete t.types[e]})}},{key:"removeTarget",value:function(e){var t=this;(0,p.default)(this.getTarget(e),"Expected an existing target."),this.store.dispatch((0,g.removeTarget)(e)),(0,v.default)(function(){delete t.handlers[e],delete t.types[e]})}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,p.default)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,p.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}}]),e}();t.default=k},function(e,t,n){"use strict";function r(){if(u.length)throw u.shift()}function i(e){var t;t=s.length?s.pop():new o,t.task=e,a(t)}function o(){this.task=null}var a=n(909),s=[],u=[],l=a.makeRequestCallFromTimer(r);e.exports=i,o.prototype.call=function(){try{this.task.call()}catch(e){i.onerror?i.onerror(e):(u.push(e),l())}finally{this.task=null,s[s.length]=this}}},function(e,t,n){"use strict";(function(t){function n(e){a.length||(o(),s=!0),a[a.length]=e}function r(){for(;u<a.length;){var e=u;if(u+=1,a[e].call(),u>l){for(var t=0,n=a.length-u;t<n;t++)a[t]=a[t+u];a.length-=u,u=0}}a.length=0,u=0,s=!1}function i(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var o,a=[],s=!1,u=0,l=1024,c=void 0!==t?t:self,d=c.MutationObserver||c.WebKitMutationObserver;o="function"==typeof d?function(e){var t=1,n=new d(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):i(r),n.requestFlush=o,n.makeRequestCallFromTimer=i}).call(t,n(51))},function(e,t,n){"use strict";function r(){return i++}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=0},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,[{key:"canDrag",value:function(){return!0}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,[{key:"canDrop",value:function(){return!0}},{key:"hover",value:function(){}},{key:"drop",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return new u(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=i;var a=n(334),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(){function e(t){r(this,e),this.actions=t.getActions()}return o(e,[{key:"setup",value:function(){this.didCallSetup=!0}},{key:"teardown",value:function(){this.didCallTeardown=!0}},{key:"connectDragSource",value:function(){return s.default}},{key:"connectDragPreview",value:function(){return s.default}},{key:"connectDropTarget",value:function(){return s.default}},{key:"simulateBeginDrag",value:function(e,t){this.actions.beginDrag(e,t)}},{key:"simulatePublishDragSource",value:function(){this.actions.publishDragSource()}},{key:"simulateHover",value:function(e,t){this.actions.hover(e,t)}},{key:"simulateDrop",value:function(){this.actions.drop()}},{key:"simulateEndDrag",value:function(){this.actions.endDrag()}}]),e}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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.default=void 0;var a,s,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(20),c=n(6),d=function(e){return e&&e.__esModule?e:{default:e}}(c),f=n(548),p=(s=a=function(e){function t(e,n){r(this,t);var o=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.backend=(0,f.unpackBackendForEs5Users)(e.backend),o}return o(t,e),u(t,[{key:"getChildContext",value:function(){var e=this;return(0,f.createChildContext)(this.backend,{window:function(){return e.props&&e.props.window?e.props.window:e.context&&e.context.window?e.context.window:"undefined"!=typeof window?window:void 0}()})}},{key:"render",value:function(){return l.Children.only(this.props.children)}}]),t}(l.Component),a.propTypes={backend:d.default.oneOfType([d.default.func,d.default.object]).isRequired,children:d.default.element.isRequired,window:d.default.object},a.defaultProps={window:void 0},a.childContextTypes=f.CHILD_CONTEXT_TYPES,a.displayName="DragDropContextProvider",a.contextTypes={window:d.default.object},s);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x.default.apply(void 0,["DragLayer","collect[, options]"].concat(Array.prototype.slice.call(arguments))),(0,b.default)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",e),(0,b.default)((0,g.default)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',t),function(n){var r,s,p=t.arePropsEqual,_=void 0===p?C.default:p,v=n.displayName||n.name||"Component",g=(s=r=function(t){function r(e,t){i(this,r);var n=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return n.handleChange=n.handleChange.bind(n),n.manager=t.dragDropManager,(0,b.default)("object"===l(n.manager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",v,v),n.state=n.getCurrentState(),n}return a(r,t),c(r,[{key:"getDecoratedComponentInstance",value:function(){return(0,b.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"shouldComponentUpdate",value:function(e,t){return!_(e,this.props)||!(0,k.default)(t,this.state)}}]),c(r,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0;var e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,k.default)(e,this.state)||this.setState(e)}}},{key:"getCurrentState",value:function(){var t=this.manager.getMonitor();return e(t)}},{key:"render",value:function(){var e=this;return f.default.createElement(n,u({},this.props,this.state,{ref:function(t){return e.child=t}}))}}]),r}(d.Component),r.DecoratedComponent=n,r.displayName="DragLayer("+v+")",r.contextTypes={dragDropManager:h.default.object.isRequired},s);return(0,m.default)(g,n)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var d=n(20),f=r(d),p=n(6),h=r(p),_=n(335),m=r(_),v=n(127),g=r(v),y=n(44),b=r(y),w=n(336),k=r(w),M=n(555),C=r(M),E=n(252),x=r(E)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c.default.apply(void 0,["DragSource","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var i=e;"function"!=typeof e&&((0,a.default)((0,k.default)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e),i=function(){return e}),(0,a.default)((0,u.default)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t);var o=(0,m.default)(t);return(0,a.default)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),(0,a.default)((0,u.default)(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),function(e){return(0,f.default)({connectBackend:function(e,t){return e.connectDragSource(t)},containerDisplayName:"DragSource",createHandler:o,registerHandler:h.default,createMonitor:g.default,createConnector:b.default,DecoratedComponent:e,getType:i,collect:n,options:r})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(44),a=r(o),s=n(127),u=r(s),l=n(252),c=r(l),d=n(556),f=r(d),p=n(921),h=r(p),_=n(922),m=r(_),v=n(923),g=r(v),y=n(924),b=r(y),w=n(559),k=r(w)},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(337),o=r(i);t.isDisposable=o.default;var a=n(918),s=r(a);t.Disposable=s.default;var u=n(919),l=r(u);t.CompositeDisposable=l.default;var c=n(920),d=r(c);t.SerialDisposable=d.default},function(e,t,n){"use strict";var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.__esModule=!0;var o=function(){},a=function(){function e(t){r(this,e),this.isDisposed=!1,this.action=t||o}return e.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},i(e,null,[{key:"empty",enumerable:!0,value:{dispose:o}}]),e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var i=n(337),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=function(){function e(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];r(this,e),Array.isArray(n[0])&&1===n.length&&(n=n[0]);for(var a=0;a<n.length;a++)if(!o.default(n[a]))throw new Error("Expected a disposable");this.disposables=n,this.isDisposed=!1}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){if(this.isDisposed)return!1;var t=this.disposables.indexOf(e);return-1!==t&&(this.disposables.splice(t,1),e.dispose(),!0)},e.prototype.dispose=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.isDisposed=!0,this.disposables=[],this.length=0;for(var n=0;n<e;n++)t[n].dispose()}},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var i=n(337),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=function(){function e(){r(this,e),this.isDisposed=!1,this.current=null}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(){var e=void 0===arguments[0]?null:arguments[0];if(null!=e&&!o.default(e))throw new Error("Expected either an empty value or a valid disposable");var t=this.isDisposed,n=void 0;t||(n=this.current,this.current=e),n&&n.dispose(),t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null,e&&e.dispose()}},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){function r(){i.removeSource(o)}var i=n.getRegistry(),o=i.addSource(e,t);return{handlerId:o,unregister:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){Object.keys(e).forEach(function(t){(0,u.default)(c.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',c.join(", "),t),(0,u.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}),d.forEach(function(t){(0,u.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])});var t=function(){function t(e){i(this,t),this.monitor=e,this.props=null,this.component=null}return a(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrag",value:function(){return!e.canDrag||e.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function(t,n){return e.isDragging?e.isDragging(this.props,this.monitor):n===t.getSourceId()}},{key:"beginDrag",value:function(){var t=e.beginDrag(this.props,this.monitor,this.component);return t}},{key:"endDrag",value:function(){e.endDrag&&e.endDrag(this.props,this.monitor,this.component)}}]),t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var s=n(44),u=r(s),l=n(127),c=(r(l),["canDrag","beginDrag","isDragging","endDrag"]),d=["beginDrag"]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return new c(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=i;var a=n(44),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=!1,l=!1,c=function(){function e(t){r(this,e),this.internalMonitor=t.getMonitor()}return o(e,[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"canDrag",value:function(){(0,s.default)(!u,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return u=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{u=!1}}},{key:"isDragging",value:function(){(0,s.default)(!l,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return l=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{l=!1}}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(){l&&(l(),l=null),i&&o&&(l=e.connectDragSource(i,o,s))}function n(){f&&(f(),f=null),i&&c&&(f=e.connectDragPreview(i,c,d))}function r(e){e!==i&&(i=e,t(),n())}var i=void 0,o=void 0,s=void 0,l=void 0,c=void 0,d=void 0,f=void 0;return{receiveHandlerId:r,hooks:(0,a.default)({dragSource:function(e,n){e===o&&(0,u.default)(n,s)||(o=e,s=n,t())},dragPreview:function(e,t){e===c&&(0,u.default)(t,d)||(c=e,d=t,n())}})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(557),a=r(o),s=n(558),u=r(s)},function(e,t,n){"use strict";function r(e,t){var n=e.ref;return(0,o.default)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,a.cloneElement)(e,{ref:function(e){t(e),n&&n(e)}}):(0,a.cloneElement)(e,{ref:t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(44),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(20)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c.default.apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var i=e;"function"!=typeof e&&((0,a.default)((0,k.default)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e),i=function(){return e}),(0,a.default)((0,u.default)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t);var o=(0,m.default)(t);return(0,a.default)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),(0,a.default)((0,u.default)(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),function(e){return(0,f.default)({connectBackend:function(e,t){return e.connectDropTarget(t)},containerDisplayName:"DropTarget",createHandler:o,registerHandler:h.default,createMonitor:g.default,createConnector:b.default,DecoratedComponent:e,getType:i,collect:n,options:r})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(44),a=r(o),s=n(127),u=r(s),l=n(252),c=r(l),d=n(556),f=r(d),p=n(927),h=r(p),_=n(928),m=r(_),v=n(929),g=r(v),y=n(930),b=r(y),w=n(559),k=r(w)},function(e,t,n){"use strict";function r(e,t,n){function r(){i.removeTarget(o)}var i=n.getRegistry(),o=i.addTarget(e,t);return{handlerId:o,unregister:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){Object.keys(e).forEach(function(t){(0,u.default)(c.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',c.join(", "),t),(0,u.default)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])});var t=function(){function t(e){i(this,t),this.monitor=e,this.props=null,this.component=null}return a(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrop",value:function(){return!e.canDrop||e.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){e.hover&&e.hover(this.props,this.monitor,this.component)}},{key:"drop",value:function(){if(e.drop){var t=e.drop(this.props,this.monitor,this.component);return t}}}]),t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var s=n(44),u=r(s),l=n(127),c=(r(l),["canDrop","hover","drop"])},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return new l(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=i;var a=n(44),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=!1,l=function(){function e(t){r(this,e),this.internalMonitor=t.getMonitor()}return o(e,[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"canDrop",value:function(){(0,s.default)(!u,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return u=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{u=!1}}},{key:"isOver",value:function(e){return this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(){s&&(s(),s=null),r&&i&&(s=e.connectDropTarget(r,i,o))}function n(e){e!==r&&(r=e,t())}var r=void 0,i=void 0,o=void 0,s=void 0;return{receiveHandlerId:n,hooks:(0,a.default)({dropTarget:function(e,n){e===i&&(0,u.default)(n,o)||(i=e,o=n,t())}})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(557),a=r(o),s=n(558),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new a.default(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyImage=t.NativeTypes=void 0,t.default=i;var o=n(932),a=r(o),s=n(948),u=r(s),l=n(338),c=function(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}(l);t.NativeTypes=c,t.getEmptyImage=u.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(933),s=r(a),u=n(942),l=r(u),c=n(943),d=r(c),f=n(561),p=n(945),h=n(947),_=n(338),m=function(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}(_),v=function(){function e(t){i(this,e),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.context=t.getContext(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new d.default,this.dragStartSourceIds=[],this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.altKeyPressed=!1,this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this),this.asyncEndDragNativeItem=this.asyncEndDragNativeItem.bind(this)}return o(e,[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"addEventListeners",value:function(e){e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0)}},{key:"removeEventListeners",value:function(e){e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0)}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes[e]=t,this.sourceNodeOptions[e]=n;var i=function(t){return r.handleDragStart(t,e)},o=function(t){return r.handleSelectStart(t,e)};return t.setAttribute("draggable",!0),t.addEventListener("dragstart",i),t.addEventListener("selectstart",o),function(){delete r.sourceNodes[e],delete r.sourceNodeOptions[e],t.removeEventListener("dragstart",i),t.removeEventListener("selectstart",o),t.setAttribute("draggable",!1)}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",i),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",i),t.removeEventListener("drop",o)}}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions[e];return(0,s.default)(t||{},{dropEffect:this.altKeyPressed?"copy":"move"})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions[e];return(0,s.default)(t||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})}},{key:"getSourceClientOffset",value:function(e){return(0,p.getNodeClientOffset)(this.sourceNodes[e])}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(m).some(function(t){return m[t]===e})}},{key:"beginDragNativeItem",value:function(e){this.clearCurrentDragSourceNode();var t=(0,h.createNativeDragSource)(e);this.currentNativeSource=new t,this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle]),(0,f.isFirefox)()&&this.window.addEventListener("mouseover",this.asyncEndDragNativeItem,!0)}},{key:"asyncEndDragNativeItem",value:function(){this.asyncEndDragFrameId=this.window.requestAnimationFrame(this.endDragNativeItem),(0,f.isFirefox)()&&(this.window.removeEventListener("mouseover",this.asyncEndDragNativeItem,!0),this.enterLeaveCounter.reset())}},{key:"endDragNativeItem",value:function(){this.isDraggingNativeItem()&&(this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)}},{key:"endDragIfSourceWasRemovedFromDOM",value:function(){var e=this.currentDragSourceNode;document.body.contains(e)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"setCurrentDragSourceNode",value:function(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.currentDragSourceNodeOffset=(0,p.getNodeClientOffset)(e),this.currentDragSourceNodeOffsetChanged=!1,this.window.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),!0)}},{key:"checkIfCurrentDragSourceRectChanged",value:function(){var e=this.currentDragSourceNode;return!!e&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!(0,l.default)((0,p.getNodeClientOffset)(e),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))}},{key:"handleTopDragStartCapture",value:function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]}},{key:"handleDragStart",value:function(e,t){this.dragStartSourceIds.unshift(t)}},{key:"handleTopDragStart",value:function(e){var t=this,n=this.dragStartSourceIds;this.dragStartSourceIds=null;var r=(0,p.getEventClientOffset)(e);this.actions.beginDrag(n,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});var i=e.dataTransfer,o=(0,h.matchNativeItemType)(i);if(this.monitor.isDragging()){if("function"==typeof i.setDragImage){var a=this.monitor.getSourceId(),s=this.sourceNodes[a],u=this.sourcePreviewNodes[a]||s,l=this.getCurrentSourcePreviewNodeOptions(),c=l.anchorX,d=l.anchorY,f={anchorX:c,anchorY:d},_=(0,p.getDragPreviewOffset)(s,u,r,f);i.setDragImage(u,_.x,_.y)}try{i.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout(function(){return t.actions.publishDragSource()})}else if(o)this.beginDragNativeItem(o);else{if(!(i.types||e.target.hasAttribute&&e.target.hasAttribute("draggable")))return;e.preventDefault()}}},{key:"handleTopDragEndCapture",value:function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"handleTopDragEnterCapture",value:function(e){if(this.dragEnterTargetIds=[],this.enterLeaveCounter.enter(e.target)&&!this.monitor.isDragging()){var t=e.dataTransfer,n=(0,h.matchNativeItemType)(t);n&&this.beginDragNativeItem(n)}}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleTopDragEnter",value:function(e){var t=this,n=this.dragEnterTargetIds;if(this.dragEnterTargetIds=[],this.monitor.isDragging()){this.altKeyPressed=e.altKey,(0,f.isFirefox)()||this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(e)});n.some(function(e){return t.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect())}}},{key:"handleTopDragOverCapture",value:function(){this.dragOverTargetIds=[]}},{key:"handleDragOver",value:function(e,t){this.dragOverTargetIds.unshift(t)}},{key:"handleTopDragOver",value:function(e){var t=this,n=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer.dropEffect="none");this.altKeyPressed=e.altKey,this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(e)}),n.some(function(e){return t.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(e.preventDefault(),e.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(e.preventDefault(),e.dataTransfer.dropEffect="move")}},{key:"handleTopDragLeaveCapture",value:function(e){this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()}},{key:"handleTopDropCapture",value:function(e){this.dropTargetIds=[],e.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),this.enterLeaveCounter.reset()}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"handleTopDrop",value:function(e){var t=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:(0,p.getEventClientOffset)(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()}},{key:"handleSelectStart",value:function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}},{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}}]),e}();t.default=v},function(e,t,n){var r=n(541),i=n(934),o=n(126),a=n(941),s=o(function(e){return e.push(void 0,a),r(i,void 0,e)});e.exports=s},function(e,t,n){var r=n(935),i=n(937),o=n(938),a=i(function(e,t,n,i){r(t,o(t),e,i)});e.exports=a},function(e,t,n){function r(e,t,n,r){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=r?r(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?o(n,l,c):i(n,l,c)}return n}var i=n(936),o=n(560);e.exports=r},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||i(e,t,n)}var i=n(560),o=n(221),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return i(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}var i=n(126),o=n(544);e.exports=r},function(e,t,n){function r(e){return a(e)?i(e,!0):o(e)}var i=n(527),o=n(939),a=n(125);e.exports=r},function(e,t,n){function r(e){if(!i(e))return a(e);var t=o(e),n=[];for(var r in e)("constructor"!=r||!t&&u.call(e,r))&&n.push(r);return n}var i=n(107),o=n(530),a=n(940),s=Object.prototype,u=s.hasOwnProperty;e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){function r(e,t,n,r){return void 0===e||i(e,o[n])&&!a.call(r,n)?t:e}var i=n(221),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o+=1){if(!i.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;if(e[n[o]]!==t[n[o]])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(944),s=r(a),u=n(551),l=r(u),c=function(){function e(){i(this,e),this.entered=[]}return o(e,[{key:"enter",value:function(e){var t=this.entered.length,n=function(t){return document.documentElement.contains(t)&&(!t.contains||t.contains(e))};return this.entered=(0,s.default)(this.entered.filter(n),[e]),0===t&&this.entered.length>0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,l.default)(this.entered.filter(function(e){return document.documentElement.contains(e)}),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}();t.default=c},function(e,t,n){var r=n(248),i=n(126),o=n(554),a=n(250),s=i(function(e){return o(r(e,1,a,!0))});e.exports=s},function(e,t,n){"use strict";function r(e){var t=e.nodeType===l?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function i(e){return{x:e.clientX,y:e.clientY}}function o(e,t,n,i){var o="IMG"===t.nodeName&&((0,a.isFirefox)()||!document.documentElement.contains(t)),s=o?e:t,l=r(s),c={x:n.x-l.x,y:n.y-l.y},d=e.offsetWidth,f=e.offsetHeight,p=i.anchorX,h=i.anchorY,_=o?t.width:d,m=o?t.height:f;(0,a.isSafari)()&&o&&(m/=window.devicePixelRatio,_/=window.devicePixelRatio);var v=new u.default([0,.5,1],[c.x,c.x/d*_,c.x+_-d]),g=new u.default([0,.5,1],[c.y,c.y/f*m,c.y+m-f]),y=v.interpolate(p),b=g.interpolate(h);return(0,a.isSafari)()&&o&&(b+=(window.devicePixelRatio-1)*m),{x:y,y:b}}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=r,t.getEventClientOffset=i,t.getDragPreviewOffset=o;var a=n(561),s=n(946),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=1},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){r(this,e);for(var i=t.length,o=[],a=0;a<i;a++)o.push(a);o.sort(function(e,n){return t[e]<t[n]?-1:1});for(var s=[],u=[],l=[],c=void 0,d=void 0,f=0;f<i-1;f++)c=t[f+1]-t[f],d=n[f+1]-n[f],u.push(c),s.push(d),l.push(d/c);for(var p=[l[0]],h=0;h<u.length-1;h++){var _=l[h],m=l[h+1];if(_*m<=0)p.push(0);else{c=u[h];var v=u[h+1],g=c+v;p.push(3*g/((g+v)/_+(g+c)/m))}}p.push(l[l.length-1]);for(var y=[],b=[],w=void 0,k=0;k<p.length-1;k++){w=l[k];var M=p[k],C=1/u[k],E=M+p[k+1]-w-w;y.push((w-M-E)*C),b.push(E*C*C)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=b}return i(e,[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,i=this.c2s,o=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s=0,u=o.length-1,l=void 0;s<=u;){l=Math.floor(.5*(s+u));var c=t[l];if(c<e)s=l+1;else{if(!(c>e))return n[l];u=l-1}}a=Math.max(0,u);var d=e-t[a],f=d*d;return n[a]+r[a]*d+i[a]*f+o[a]*d*f}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},null);return null!=r?r:n}function s(e){var t=p[e],n=t.exposeProperty,o=t.matchesTypes,a=t.getData;return function(){function e(){var t,o;i(this,e),this.item=(t={},o={},o[n]=o[n]||{},o[n].get=function(){return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},r(t,o),t)}return c(e,[{key:"mutateItemByReadingDataTransfer",value:function(e){delete this.item[n],this.item[n]=a(e,o)}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}()}function u(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(p).filter(function(e){return p[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}Object.defineProperty(t,"__esModule",{value:!0});var l,c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.createNativeDragSource=s,t.matchNativeItemType=u;var d=n(338),f=function(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}(d),p=(l={},o(l,f.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}}),o(l,f.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return a(e,t,"").split("\n")}}),o(l,f.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return a(e,t,"")}}),l)},function(e,t,n){"use strict";function r(){return i||(i=new Image,i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=void 0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(20),u=r(s),l=n(6),c=r(l),d=n(950),f=r(d),p=function(e,t){var n=t.offsetHeight,r=e.offsetHeight,i=e.offsetTop-t.scrollTop;i+r>=n?t.scrollTop+=i-n+r:i<0&&(t.scrollTop+=i)},h=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.shouldComponentUpdate=function(e){var t=r,n=t.props,i=n.shouldRenderSuggestions||r.shouldRenderSuggestions;return!(0,f.default)(n.suggestions,e.suggestions)||i(e.query)||i(e.query)!=i(n.query)},r.componentDidUpdate=function(e){var t=r.refs.suggestionsContainer,n=r.props,i=n.selectedIndex,o=n.classNames;if(t&&e.selectedIndex!==i){var a=t.querySelector(o.activeSuggestion);a&&p(a,t)}},r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e.replace(RegExp(n,"gi"),"<mark>$&</mark>")}},r.shouldRenderSuggestions=function(e){var t=r,n=t.props,i=n.minQueryLength||2;return e.length>=i},r.render=function(){var e=r,t=e.props,n=t.suggestions.map(function(e,n){return u.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n==t.selectedIndex?t.classNames.activeSuggestion:""},u.default.createElement("span",{dangerouslySetInnerHTML:this.markIt(e,t.query)}))}.bind(r)),i=t.shouldRenderSuggestions||r.shouldRenderSuggestions;return 0!==n.length&&i(t.query)?u.default.createElement("div",{ref:"suggestionsContainer",className:r.props.classNames.suggestions},u.default.createElement("ul",null," ",n," ")):null},a=n,o(r,a)}return a(t,e),t}(s.Component);h.propTypes={query:c.default.string.isRequired,selectedIndex:c.default.number.isRequired,suggestions:c.default.array.isRequired,handleClick:c.default.func.isRequired,handleHover:c.default.func.isRequired,minQueryLength:c.default.number,shouldRenderSuggestions:c.default.func,classNames:c.default.object},t.default=h},function(e,t,n){function r(e,t){return i(e,t)}var i=n(326);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){if(e.readOnly)return l.default.createElement("span",null);if(e.removeComponent){var t=e.removeComponent;return l.default.createElement(t,e)}return l.default.createElement("a",{onClick:e.onClick,className:e.className},String.fromCharCode(215))}Object.defineProperty(t,"__esModule",{value:!0});var u=n(20),l=r(u),c=n(31),d=n(547),f=n(6),p=r(f),h=n(952),_=r(h),m={TAG:"tag"},v={beginDrag:function(e){return{id:e.tag.id,index:e.index}},canDrag:function(e){return e.moveTag&&!e.readOnly}},g={hover:function(e,t,n){var r=t.getItem().index,i=e.index;if(r!==i){var o=(0,c.findDOMNode)(n).getBoundingClientRect(),a=(o.right-o.left)/2,s=t.getClientOffset(),u=s.x-o.left;r<i&&u<a||r>i&&u>a||(e.moveTag(r,i),t.getItem().index=i)}},canDrop:function(e){return!e.readOnly}},y=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},b=function(e,t){return{connectDropTarget:e.dropTarget()}},w=function(e){function t(){var e,n,r,a;i(this,t);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.render=function(){var e=r,t=e.props,n=t.tag[t.labelField],i=t.connectDragSource,o=t.isDragging,a=t.connectDropTarget;t.readOnly,t.CustomRemoveComponent;return i(a(l.default.createElement("span",{style:{opacity:o?0:1},className:t.classNames.tag},n,l.default.createElement(s,{className:t.classNames.remove,removeComponent:t.removeComponent,onClick:t.onDelete,readOnly:t.readOnly}))))},a=n,o(r,a)}return a(t,e),t}(u.Component);w.PropTypes={labelField:p.default.string,onDelete:p.default.func.isRequired,tag:p.default.object.isRequired,moveTag:p.default.func,removeComponent:p.default.func,classNames:p.default.object,readOnly:p.default.bool,connectDragSource:p.default.func.isRequired,isDragging:p.default.bool.isRequired,connectDropTarget:p.default.func.isRequired},w.defaultProps={labelField:"text",readOnly:!1},t.default=(0,_.default)((0,d.DragSource)(m.TAG,v,y),(0,d.DropTarget)(m.TAG,g,b))(w)},function(e,t,n){var r=n(953),i=r();e.exports=i},function(e,t,n){function r(e){return o(function(t){var n=t.length,r=n,o=i.prototype.thru;for(e&&t.reverse();r--;){var _=t[r];if("function"!=typeof _)throw new TypeError(c);if(o&&!m&&"wrapper"==s(_))var m=new i([],!0)}for(r=m?r:n;++r<n;){_=t[r];var v=s(_),g="wrapper"==v?a(_):void 0;m=g&&l(g[0])&&g[1]==(p|d|f|h)&&!g[4].length&&1==g[9]?m[s(g[0])].apply(m,g[3]):1==_.length&&l(_)?m[v]():m.thru(_)}return function(){var e=arguments,r=e[0];if(m&&1==e.length&&u(r))return m.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}var i=n(339),o=n(954),a=n(563),s=n(564),u=n(50),l=n(958),c="Expected a function",d=8,f=32,p=128,h=256;e.exports=r},function(e,t,n){function r(e){return a(o(e,void 0,i),e+"")}var i=n(955),o=n(540),a=n(542);e.exports=r},function(e,t,n){function r(e){return(null==e?0:e.length)?i(e,1):[]}var i=n(248);e.exports=r},function(e,t,n){var r=n(533),i=r&&new r;e.exports=i},function(e,t){var n={};e.exports=n},function(e,t,n){function r(e){var t=a(e),n=s[t];if("function"!=typeof n||!(t in i.prototype))return!1;if(e===n)return!0;var r=o(n);return!!r&&e===r[0]}var i=n(341),o=n(563),a=n(564),s=n(959);e.exports=r},function(e,t,n){function r(e){if(u(e)&&!s(e)&&!(e instanceof i)){if(e instanceof o)return e;if(d.call(e,"__wrapped__"))return l(e)}return new o(e)}var i=n(341),o=n(339),a=n(340),s=n(50),u=n(108),l=n(960),c=Object.prototype,d=c.hasOwnProperty;r.prototype=a.prototype,r.prototype.constructor=r,e.exports=r},function(e,t,n){function r(e){if(e instanceof i)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var i=n(341),o=n(339),a=n(961);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(565),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=(0,i.default)("float",function(e){return parseFloat(e,10)});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForCustomAttributeItemDescription)("string",{render:function(){return React.createElement("textarea",{disabled:this.props.readOnly,onChange:this._onChange,value:scrivito.AppConfig.replaceInternalLinks(this.props.field.get())})},_onChange:function(e){this.props.readOnly||this.props.field.update(e.target.value)}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(565),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=(0,i.default)("integer",function(e){return parseInt(e,10)});t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),o=n(6),a=r(o),s=n(316),u=n(342),l=r(u),c=n(343),d=r(c),f=n(344),p=r(f),h=n(225),_=r(h),m=n(30),v=r(m),g=n(112),y=r(g),b=n(322),w=n(39),k=n(218),M=r(k),C=n(345),E=r(C),x=n(567),T=r(x),D=n(63),S=n(215),O=r(S),j=n(484),L=r(j),P=(0,w.createClassForCustomAttributeItemDescription)("widgetlist",{render:function(){var e=this.props.field.get();return this.props.readOnly?React.createElement(R,{widgets:e}):React.createElement(A,{field:this.props.field})}}),R=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyWidgetlist",propTypes:{widgets:a.default.arrayOf(a.default.instanceOf(v.default)).isRequired},render:function(){var e=this.props.widgets;return 0===e.length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("widgetlist_attribute_component.is_empty"))):React.createElement("div",{className:"scrivito_widget_list read_only"},e.map(function(e){return React.createElement(F,{key:e.id(),widget:e})}))}}),A=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.EditableWidgetlist",propTypes:{field:a.default.instanceOf(y.default).isRequired},render:function(){var e=this.props.field.get();return 0===e.length?React.createElement(N,{field:this.props.field}):React.createElement(I,{widgets:e,onSortEnd:this._onSortEnd,helperClass:"scrivito_detail_content_dragging",distance:10,lockToContainerEdges:!0,transitionDuration:0,useDragHandle:!0})},_onSortEnd:function(e){var t=e.newIndex,n=e.oldIndex,r=this.props.field;r.update((0,b.arrayMove)(r.get(),n,t))}}),I=(0,b.SortableContainer)(scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.SortableWidgetlistContainer",propTypes:{widgets:a.default.arrayOf(a.default.instanceOf(v.default)).isRequired},render:function(){return React.createElement("ul",{className:"scrivito_widget_list"},this.props.widgets.map(function(e,t){return React.createElement(W,{key:e.id(),index:t,widget:e})}))}})),N=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.EditableEmptyWidgetlist",propTypes:{field:a.default.instanceOf(y.default).isRequired},render:function(){return React.createElement("div",{className:"scrivito_empty_widget_field",onClick:this._onClick})},_onClick:function(e){e.preventDefault(),e.stopPropagation(),(0,T.default)((0,i.findDOMNode)(this),this.props.field,{x:e.pageX,y:e.pageY})}}),Y=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.WidgetItem",propTypes:{showDetails:a.default.bool,toggleDetails:a.default.func,widget:a.default.instanceOf(v.default).isRequired},render:function(){var e=this.props,t=e.showDetails,n=e.showMarker,r=e.widget,i=(0,D.titleForWidget)(r);return React.createElement("div",{className:"scrivito_widget_list_item"},n&&React.createElement(z,{widget:r}),React.createElement("div",{className:"list_item_content"},this._renderDetailsToggle(),React.createElement("span",{className:"item_content_body"},i),t&&React.createElement(L.default,{content:r})),n&&React.createElement("div",null,React.createElement(O.default,{widget:r,position:"top",insertWidget:E.default}),React.createElement(O.default,{widget:r,position:"bottom",insertWidget:E.default})))},_renderDetailsToggle:function(){var e=this.props,t=e.showDetails,n=e.toggleDetails,r=e.widget;if((0,s.hasInspectorDescription)(r)){var i="scrivito_icon scrivito_icon_chevron_down";return t&&(i="scrivito_icon scrivito_icon_chevron_up"),React.createElement("span",{className:"item_content_icon",onClick:n},React.createElement("i",{className:i}))}}}),F=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyWidgetItem",propTypes:{widget:a.default.instanceOf(v.default).isRequired},getInitialState:function(){return{showDetails:!1}},render:function(){var e=this.props.widget;return React.createElement("div",null,React.createElement(Y,{showDetails:this.state.showDetails,showMarker:!1,toggleDetails:this._toggleDetails,widget:e}))},_toggleDetails:function(){this.setState({showDetails:!this.state.showDetails})}}),H=(0,b.SortableHandle)(Y),W=(0,b.SortableElement)(scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.WidgetItem",propTypes:{widget:a.default.instanceOf(v.default).isRequired},getInitialState:function(){return{showDetails:!1}},render:function(){var e=this.props.widget;return React.createElement("div",null,React.createElement(H,{showDetails:this.state.showDetails,showMarker:!0,toggleDetails:this._toggleDetails,widget:e}))},_toggleDetails:function(){this.setState({showDetails:!this.state.showDetails})}})),z=scrivito.legacyCreateConnectedComponent({displayName:"Scrivito.ContentTag.MenuMarker",propTypes:{widget:a.default.instanceOf(v.default).isRequired},render:function(){return React.createElement("span",{className:"scrivito_editing_marker",onClick:this._onClick},React.createElement("i",{className:"scrivito_icon"}))},_onClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.props.widget,n=t.containingField();scrivito.ContextMenu.open($((0,i.findDOMNode)(this)),[(0,d.default)(t),(0,l.default)(t),(0,_.default)(n,t),new M.default({id:"scrivito.sdk.widget_commands.separator1"}),(0,p.default)(t)])}});t.default=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),o=n(6),a=r(o),s=n(3),u=r(s),l=n(39),c=n(967),d=r(c),f=n(968),p=r(f),h=n(63),_=(0,l.createClassForSystemItemDescription)("backlinks",{shouldRenderTitle:!1,shouldRenderLoaderError:!0,render:function(){var e=this.props.content.backlinks();return e.length?React.createElement("ul",null,e.map(function(e){return React.createElement("li",{key:e.id()},React.createElement(m,{backlink:e}))})):React.createElement(v,{content:this.props.content})},_renderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}}),m=scrivito.legacyCreateConnectedComponent({displayName:"BacklinksItemComponent.Backlink",propTypes:{backlink:a.default.instanceOf(u.default).isRequired},shouldRenderLoaderError:!0,render:function(){return React.createElement("a",{href:"#",onClick:this._onClick},(0,h.titleForObj)(this.props.backlink))},_renderWhileLoading:function(){return React.createElement(scrivito.Loader,null)},_onClick:function(e){e.preventDefault(),e.stopPropagation();var t=$((0,i.findDOMNode)(this)),n=[(0,p.default)(this.props.backlink.id()),(0,d.default)(this.props.backlink.id())],r={mousePosition:{x:e.pageX,y:e.pageY}};scrivito.ContextMenu.open(t,n,r)}}),v=scrivito.legacyCreateConnectedComponent({displayName:"BacklinksItemComponent.NoBacklinksBox",propTypes:{content:a.default.instanceOf(u.default).isRequired},render:function(){return React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_icon"},React.createElement("i",{className:"scrivito_icon scrivito_icon_information"})),React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("backlinks_item_component.no_backlinks_box.message",(0,h.titleForObj)(this.props.content))))}});t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new a.default({id:"scrivito.sdk.navigate_ui_to_obj",icon:"&#xf11f;",title:scrivito.t("commands.navigate_ui_to_obj.title"),execute:function(){scrivito.applicationWindow.navigateTo(e),u.default.close(),c.default.close()}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),s=n(314),u=r(s),l=n(220),c=r(l);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new a.default({id:"scrivito.sdk.open_obj_in_content_browser",icon:"&#xf135;",title:scrivito.t("commands.open_obj_in_content_browser.title"),execute:function(){(0,u.default)({selectionMode:"single",standAlone:!0,selection:[e],disableDelete:!0})}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),s=n(122),u=r(s);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.metadataKey,n=e.metadataValue,r=e.className;return React.createElement("div",{className:"metadata-item "+r},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,t)),React.createElement("input",{value:o(n),type:"text",disabled:"true"}))}function o(e){return(0,p.isDate)(e)?(0,c.default)(e).format("lll"):(0,p.isArray)(e)?e.join(", "):e.toString()}function a(e){if(!(0,m.default)(e))return!1;var t=e.get("blob","binary");return!!t&&t.isImage()}Object.defineProperty(t,"__esModule",{value:!0});var s=n(6),u=r(s),l=n(2),c=r(l),d=n(230),f=r(d),p=n(0),h=n(19),_=n(219),m=r(_),v=n(39),g=["contentLength","contentType","filename","filesize","height","width"];t.default=(0,v.createClassForSystemItemDescription)("binaryMetadata",{shouldRenderTitle:!1,render:function(){var e=this.props.content.metadata(),t=void 0;return a(this.props.content)&&(t=React.createElement("div",{className:"row"},React.createElement(i,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.height"),metadataValue:e.get("height")+" px"}),React.createElement(i,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.width"),metadataValue:e.get("width")+" px"}))),React.createElement("div",null,React.createElement(i,{metadataKey:scrivito.t("binary_metadata_item_component.filename"),metadataValue:e.get("filename")}),React.createElement("div",{className:"row"},React.createElement(i,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.content_type"),metadataValue:e.get("contentType")}),React.createElement(i,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.content_length"),metadataValue:(0,f.default)(e.get("contentLength"))})),t,p.without.apply(void 0,[e.keys()].concat(g)).sort().map(function(t){return React.createElement(i,{key:t,metadataKey:(0,h.sentenceCase)(t),metadataValue:e.get(t)})}))}}),i.displayName="PropertiesComponent.BinaryMetadataItemComponent.MetadataItem",i.propTypes={metadataKey:u.default.string.isRequired,metadataValue:u.default.oneOfType([u.default.string,u.default.arrayOf(u.default.string),u.default.instanceOf(Date)]),className:u.default.string}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),a=n(39),s=n(1),u=n(134),l=r(u),c=(0,a.createClassForSystemItemDescription)("history",{shouldRenderTitle:!1,render:function(){return React.createElement("div",null,React.createElement("div",{className:"row"},React.createElement("div",{className:"col-sm-6"},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,scrivito.t("item_description.system.history.created_at"))),React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_time"}),React.createElement("span",{className:"read_only"},this._formatDate(this.props.content.createdAt())))),React.createElement("div",{className:"col-sm-6"},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,scrivito.t("item_description.system.history.last_changed"))),React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_time"}),React.createElement("span",{className:"read_only"},this._formatDate(this.props.content.lastChanged()))))),React.createElement("div",{className:"row"},React.createElement("div",{className:"col-sm-6"},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,scrivito.t("item_description.system.history.created_by"))),React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_user"}),React.createElement("span",{className:"read_only"},this._getDescriptionForUser(this.props.content.createdBy())))),React.createElement("div",{className:"col-sm-6"},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,scrivito.t("item_description.system.history.last_changed_by"))),React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_user"}),React.createElement("span",{className:"read_only"},this._getDescriptionForUser(this.props.content.lastChangedBy()))))))},_getDescriptionForUser:function(e){if(e)try{return l.default.get(e).description||this._defaultDescriptionTextFor(e)}catch(t){if(t instanceof s.ResourceNotFoundError)return this._defaultDescriptionTextFor(e);throw t}return scrivito.t("item_description.system.history.not_available")},_formatDate:function(e){return e?(0,o.default)(e).format("lll"):scrivito.t("item_description.system.history.not_available")},_defaultDescriptionTextFor:function(e){return scrivito.t("item_description.system.history.user_description_not_available",e)}});t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForSystemItemDescription)("id",{render:function(){return React.createElement("span",{className:"read_only"},this.props.content.id())}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForSystemItemDescription)("objClass",{render:function(){return React.createElement("span",{className:"read_only"},this.props.content.objClass())}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForSystemItemDescription)("path",{render:function(){return React.createElement("span",{className:"read_only"},this.props.content.path())}});t.default=i},function(e,t,n){"use strict";function r(e){var t=e.permalink,n=e.obj,r=e.readOnly,i=t||scrivito.t("permalink_item_component.permalink.is_empty");return r?React.createElement("span",{className:"read_only"},i):React.createElement("span",{className:"read_only scrivito_permalink_clickable",onClick:function(){return(0,o.default)(n)}},i)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(975),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(39),s=(0,a.createClassForSystemItemDescription)("permalink",{render:function(){return React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_link_perm"}),React.createElement(r,{permalink:this.props.content.permalink(),obj:this.props.content,readOnly:this.props.readOnly}))}});t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=e.permalink();o({title:function(){return scrivito.t("workflows.change_permalink.dialog.title",(0,m.titleForObj)(e))},value:n,info:t}).then(function(t){t!==n&&(t?a(t).then(function(n){n?i(e,scrivito.t("workflows.change_permalink.info."+n,t)):e.update({_permalink:[t]})}):e.update({_permalink:[null]}))})}function o(e){var t=e.title,n=e.value,r=e.info;return p.default.open({title:t,description:r,placeholder:scrivito.t("workflows.change_permalink.dialog.placeholder"),value:n,icon:"&#xf04e;",okButtonText:scrivito.t("workflows.change_permalink.dialog.change")}).then(function(e){return null===e?n:""===e?null:s(e)})}function a(e){return"scrivito"===(0,l.default)(e).segment(0).toLowerCase()?scrivito.Promise.resolve("is_scrivito"):e.match(/^([\w._-]+[\/\w._-]*)?$/)?scrivito.withSavingOverlay((0,_.default)(function(){return d.default.getByPermalink(e)}).then(function(e){if(e)return"is_taken"})):scrivito.Promise.resolve("is_invalid")}function s(e){return(0,l.default)(e).normalizePathname().toString().replace(/^\/|\/$/g,"")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var u=n(33),l=r(u),c=n(3),d=r(c),f=n(568),p=r(f),h=n(8),_=r(h),m=n(63)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){e.find("body").hasClass("scrivito_dialog")&&!e.get(0).defaultView.scrivito&&scrivito.AlertDialog.open('\n Missing required Scrivito assets in the details dialog.\n Are you sure your "scrivito_dialog.html.*" sources the Scrivito assets?\n ')}Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),a=r(o),s=n(11),u=r(s),l=(0,u.default)({displayName:"PropertiesComponent.LegacyDetails",propTypes:{src:a.default.string.isRequired,updateSize:a.default.func},getInitialState:function(){return{isLoaded:!1}},render:function(){var e=void 0;return this.state.isLoaded||(e=React.createElement("i",{className:"scrivito_icon scrivito_spinning"},"")),React.createElement("div",{className:"scrivito_details_dialog_markup"},e,React.createElement("iframe",{name:"scrivito_details_dialog",src:this.props.src,ref:this._ref,onLoad:this._onLoad}))},_ref:function(e){e&&(this._$iframe=$(e))},_onLoad:function(){this.setState({isLoaded:!0});var e=this._$iframe.contents();if(i(e),this.props.updateSize){var t=e.find("[data-scrivito-modal-size]").attr("data-scrivito-modal-size");this.props.updateSize(t)}}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new u.default({id:"scrivito.sdk.open_page_link_dialog",icon:"scrivito_icon_link",title:scrivito.t("commands.open_page_link_dialog.title"),disabled:function(){if(a.default.getIncludingDeleted(e).isDeleted())return scrivito.t("commands.open_page_link_dialog.is_deleted")},execute:function(){scrivito.current_page_link_dialog()}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),s=n(17),u=r(s);t.default=i},function(e,t,n){"use strict";function r(){return new o.default({id:"scrivito.sdk.open_user_guide",title:scrivito.t("commands.open_user_guide.title"),icon:"&#xf01c;",execute:function(){var e=(0,a.useRailsEngine)()?u:s;scrivito.open(e,"blank")}})}Object.defineProperty(t,"__esModule",{value:!0}),t.RAILS_USER_GUIDE=t.JS_USER_GUIDE=void 0,t.default=r;var i=n(17),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(47),s=t.JS_USER_GUIDE="https://scrivito.com/user-guide",u=t.RAILS_USER_GUIDE="https://scrivito.com/rails/user-guide"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commands.restore_obj";return new c.default({id:"scrivito.sdk.restore_obj",title:scrivito.t(t+".title"),icon:"&#xf032;",present:function(){return u.default.getIncludingDeleted(e).isDeleted()},execute:function(){scrivito.withSavingOverlay((0,f.default)(function(){return u.default.getIncludingDeleted(e)}).then(function(e){return a.restoreObj(e.objData)}).then(function(){return scrivito.reload()}))}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(128),a=function(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}(o),s=n(3),u=r(s),l=n(17),c=r(l),d=n(8),f=r(d);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new f.default({id:"scrivito.sdk.revert_obj",title:scrivito.t("commands.revert_obj.title"),icon:"&#xf032;",present:function(){return scrivito.editingContext.isMutable()&&u.default.get(e)},disabled:function(){var t=u.default.get(e);return t.isModified()?t.isNew()?scrivito.t("commands.revert_obj.is_new"):void 0:scrivito.t("commands.revert_obj.unmodified")},execute:function(){o().then(function(){return a(e)})}})}function o(){return scrivito.confirmation_dialog({title:scrivito.t("commands.revert_obj.dialog.title"),description:scrivito.t("commands.revert_obj.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_obj.dialog.confirm"),confirm_button_color:"red"})}function a(e){scrivito.withSavingOverlay(c.revertObj(u.default.get(e).objData).then(function(){return scrivito.applicationWindow.reload()}))}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),u=r(s),l=n(128),c=function(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}(l),d=n(17),f=r(d);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new u.default({id:"scrivito.sdk.save_obj_to_clipboard",title:scrivito.t("commands.save_obj_to_clipboard.title"),icon:"&#xf017;",disabled:function(){var t=a.default.getIncludingDeleted(e);return t.isDeleted()?scrivito.t("commands.save_obj_to_clipboard.is_deleted"):t.hasChildren()?scrivito.t("commands.save_obj_to_clipboard.has_children"):void 0},execute:function(){(0,c.default)(function(){return a.default.get(e)}).then(scrivito.objClipboard.save)}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),s=n(17),u=r(s),l=n(8),c=r(l);t.default=i},function(e,t,n){"use strict";function r(e){return scrivito.ajax("PUT","sessions/"+e,{skip_write_monitor:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.requestCustomUserSession=r},function(e,t,n){"use strict";function r(e){scrivito.on("pageChange",function(){var t=e.browserWindow(),n=scrivito.applicationWindow.browserWindow(),r=t.location.origin+"/scrivito"+n.location.pathname+n.location.search+n.location.hash;scrivito.cmsWindow.isLivingWindow(t)&&t.history.replaceState({},"",r)})}Object.defineProperty(t,"__esModule",{value:!0}),t.syncWithApplicationLocation=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=scrivito.AppConfig.getClasses()||[],t={},n={},r=function(e){if("Obj"===e.type)return void(t[e.name]=e);if("Widget"===e.type)return void(n[e.name]=e);throw new s.InternalError('Invalid type "'+e.type+'" for class data "'+e.name+'".')};f.forEach(r),e.forEach(r),l.default.init(a.default.values(t)),d.default.init(a.default.values(n))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=r(o),s=n(1),u=n(41),l=r(u),c=n(58),d=r(c),f=void 0,p={init:function(e){f=e,scrivito.AppConfig.onChange(i),i()},reset:function(){f=void 0}};t.default=p},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){return(0,a.contains)(u,e)}function o(e){var t=[e].concat(r((0,s.navigatorLocales)(navigator))),n=(0,a.map)(t,function(e){return e&&e.substr(0,2)});return(0,a.detect)(n,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.uiLanguage=o;var a=n(0),s=n(986),u=["de","en"]},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){var t=e.languages||[];return e.language&&(t=[].concat(r(t),[e.language])),t}Object.defineProperty(t,"__esModule",{value:!0}),t.navigatorLocales=i},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){var t={dom_element:function(){return e},equals:function(e){return e.dom_element().get(0)===t.dom_element().get(0)},menu:function(){var n=e.data("scrivito-menu");return n||(n=[],t.set_menu(n)),n},set_menu:function(t){e.data("scrivito-menu",t)}};return t},from_dom_element:function(e){var t=void 0;t=e&&e.jquery?e:$(e),0===t.length&&$.error("Expected a jquery instance with exactly one element, instead got "+t);var n=t[0].scrivito_cms_element;if(!n){var r=scrivito.cms_element.createInstance(t);i.default.find(scrivito.cms_element.definitions,function(e){return n=e.createInstance(r)}),n||$.error("This dom element is not a scrivito tag."),t[0].scrivito_cms_element=n}return n},definitions:[],all:function(e,t){return i.default.map(t.find(e).addBack(e),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.cms_element=e}()},function(e,t,n){"use strict";function r(e){var t=scrivito.cms_element.from_dom_element(e);return t.addAppExtensions(),e.addEventListener("DOMContentLoaded",function(){scrivito.on("load",function(){t.assertUserLoggedIn(),t.connect()})}),new s(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(989),o=n(570),a=n(5),s=function(){function e(e){this.cmsDocument=e,this.subscriptionProxy=new i.default(a.subscribe,e.browserWindow())}return e.prototype.setAppAdapter=function(e,t){if("1.0.0-48-g68a78f12"!==e)throw new Error("Scrivito UI version 1.0.0-48-g68a78f12 is not equal to the Scrivito SDK version "+e+" your application is using");this.cmsDocument.setAppAdapter(t)},e.prototype.uiAdapter=function(){return new o.default(this.cmsDocument)},e.prototype.installRailsApi=function(){this.cmsDocument.installRailsApi()},e.prototype.cmsState=function(){return a.cmsState},e.prototype.stateController=function(){var e=this;return{trackChanges:a.trackChanges,withBatchedUpdates:a.withBatchedUpdates,subscribe:function(t){return e.subscriptionProxy.subscribe(t)},withFrozenState:a.withFrozenState,failIfFrozen:a.failIfFrozen}},e.prototype.createAppState=function(){return a.createAppState()},e.prototype.clientModulesForExport=function(){return scrivito.client.modulesForExport()},e}();window.connectAppDocument=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=this;this.originalSubscribe=e,this.pendingUnsubscriptions=new Set,t.addEventListener("unload",function(){n.pendingUnsubscriptions.forEach(function(e){return e()})})}return e.prototype.subscribe=function(e){var t=this,n=this.originalSubscribe(e);return this.pendingUnsubscriptions.add(n),function(){n(),t.pendingUnsubscriptions.delete(n)}},e.prototype.pendingUnsubscriptionsCount=function(){return this.pendingUnsubscriptions.size},e}();t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=r(s),l=n(42),c=r(l),d={},f=function(){function e(t){i(this,e),this._objData=t,this._currentWorkers=[]}return a(e,null,[{key:"for",value:function(t){var n=t._id;return d[n]||(d[n]=new e(t)),d[n]}},{key:"clearCache",value:function(){d={}}}]),a(e,[{key:"start",value:function(){this._resolveData(this._objData.current)}},{key:"finishResolving",value:function(){var e=u.default.invoke(this._currentWorkers,"finish");return this._currentWorkers=u.default.select(this._currentWorkers,function(e){return!e.isFinished()}),scrivito.Promise.all(e)}},{key:"anyCurrentWorkerPresent",value:function(){return!!this._currentWorkers.length}},{key:"_resolveData",value:function(e,t){var n=this;u.default.each(e,function(e,r){"_widget_pool"===r?u.default.each(e,function(e,t){n._resolveData(e,t)}):n._resolveAttribute(r,e,t)})}},{key:"_resolveAttribute",value:function(e,t,n){if(!(0,c.default)(e)){var r=o(t,2),i=r[0],a=r[1];if(u.default.contains(["html","link","linklist"],i)&&!u.default.isEmpty(a)){var s=new scrivito.LinkResolutionWorker(this._objData,e,n);s.start(),this._currentWorkers.push(s)}}}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new d.default({id:"scrivito.sdk.sort_items",title:scrivito.t("commands.sort_items.title"),icon:"&#xf03c;",tooltip:function(){var t=a.default.get(e);return scrivito.t("commands.sort_items.tooltip",(0,s.titleForObj)(t))},disabled:function(){var t=a.default.get(e);return t.hasChildren()?t.children().length<2?scrivito.t("commands.sort_items.too_less_children"):void 0:scrivito.t("commands.sort_items.auto_sort")},present:function(){var t=a.default.get(e);return l.default.find(t.objClass()).hasChildOrder()},execute:function(){var t=a.default.get(e),n=t.orderedChildren().map(function(e){return{id:e.id(),description:(0,s.titleForObj)(e)}});return p.default.open(n).then(function(e){var n=e.map(function(e){return a.default.get(e)});t.update({childOrder:[n,"referencelist"]}),t.finishSaving().then(function(){return(0,h.reloadStaticChildListDomFor)(t.path())})})}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),s=n(63),u=n(41),l=r(u),c=n(17),d=r(c),f=n(474),p=r(f),h=n(992);t.default=i},function(e,t,n){"use strict";function r(e){(0,a.useRailsEngine)()&&scrivito.cmsWindow.activeWindows().forEach(function(t){var n=$(t.browserWindow().document),r=scrivito.childListElement.all(n);o.default.any(r,function(t){return t.path()===e})&&t.reload()})}Object.defineProperty(t,"__esModule",{value:!0}),t.reloadStaticChildListDomFor=void 0;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(47);t.reloadStaticChildListDomFor=r},function(e,t,n){"use strict";n(994),n(995),n(996),n(997),n(998),n(999),n(1002),n(1003),n(1004),n(1005),n(1009),n(1010),n(1011),n(1012),n(1013),n(1014),n(40),n(317),n(1015),n(1016),n(1018),n(1020),n(1022),n(1023),n(1024),n(1025),n(1026),n(1027),n(1028),n(1029),n(1030),n(1031),n(1032),n(1033),n(1034),n(1035),n(1037),n(1038),n(1039),n(1040),n(1041),n(1042),n(1043),n(1044),n(1045),n(1046),n(1047),n(1048),n(1049),n(1050),n(1051),n(1052),n(1053),n(1056),n(1057),n(1058),n(1059),n(1063),n(1064),n(1065),n(1066),n(1067),n(1068),n(1069),n(1070),n(1071),n(1075),n(1076),n(1077),n(1078),n(1079),n(1080),n(1083),n(1084),n(1085),n(1086),n(1087),n(1099),n(1100),n(1116),n(1124),n(1137),n(1138),n(1139),n(1140)},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.default.contains(["PUT","POST","DELETE"],e),o=n&&n.skip_write_monitor;r&&(n.timeout=15e3,o||scrivito.WriteMonitor.startWrite());var s=a(e,t,n);return r&&!o&&scrivito.WriteMonitor.endWriteWhenDone(s),s}function t(e,t,r){return scrivito.ajax(e,t,r).catch(function(e){throw n(e),e})}function n(e){var t=void 0,n=void 0;i.default.isObject(e)?(t=scrivito.t("ajax_error",e.message),n=e.message_for_editor):t=i.default.contains(["abort","parsererror","timeout"],e)?scrivito.t("ajax_error.communication"):scrivito.t("ajax_error",e),scrivito.isDevelopmentMode?scrivito.AlertDialog.open(t):(scrivito.logError(t),scrivito.ErrorDialog.open(n||scrivito.t("ajax_error.message_for_editor"),[e.timestamp,t]))}function r(){s=!0}function o(){s=!1}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(s)return scrivito.Promise.reject(new Error("scrivito.ajax is disabled due to scrivito.disableAjax()!"));var r=window.location.protocol+"//"+window.location.host+"/__scrivito/";n.data&&(n.data=JSON.stringify(n.data));var o=$.ajax(r+t,i.default.extend({type:e,dataType:"json",contentType:"application/json; charset=utf-8",cache:!1},n));return new scrivito.Promise(function(e,t){o.then(e),o.fail(function(e,n,r){try{return t(JSON.parse(e.responseText))}catch(e){return t(r)}})})}var s=!1;scrivito.ajax=e,scrivito.ajaxWithErrorDialog=t,scrivito.displayAjaxError=n,scrivito.disableAjax=r,scrivito.enableAjax=o}()},function(e,t,n){"use strict";!function(){var e=void 0,t=[],n={setAppAdapter:function(n){e=n,t.forEach(function(e){return e()})},onChange:function(e){t.push(e)},reset:function(){e=void 0,t=[]}};["contentBrowserConfiguration","descriptionForObj","generalPropertiesForClass","getClasses","hideInSelectionDialogsForClass","initializeContentForObj","initializeContentForWidget","propertiesGroupsForClass","replaceInternalLinks","resolveUrl","thumbnailForObj","titleForClass","titleForObj","titleForWidget"].forEach(function(t){n[t]=function(){if(e)try{var n;return(n=e)[t].apply(n,arguments)}catch(e){scrivito.logError(e)}}}),scrivito.AppConfig=n}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{path_for_id:function(e){return"/__scrivito/"+e},id_from_path:function(e){var t=/__scrivito\/([a-z0-9]{16})/.exec(e);if(t)return t[1]},detailsPathForId:function(e){return"/__scrivito/page_details/"+e},detailsPathForWidget:function(e){return"/__scrivito/render_widget/"+e.obj().id()+"/widget_details/"+e.id()}})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(){return scrivito.CmsRestApi.get("blobs/upload_permission")}function t(e,t){var n=scrivito.BinaryRequest.getFormData();return i.default.each(t.fields,function(e,t){return n.append(t,e)}),n.append("file",e),scrivito.Promise.resolve($.ajax({method:"POST",url:t.url,data:n,contentType:!1,processData:!1})).then(function(){return t.blob})}function n(e,t,n,r){return scrivito.CmsRestApi.put("blobs/activate_upload",{obj_id:e,upload:t,filename:n,content_type:r})}scrivito.BinaryRequest={upload:function(r,i,o,a){return e().then(function(e){scrivito.WriteMonitor.startWrite();var s=t(i,e).then(function(e){return n(r,e,o,a)});return scrivito.WriteMonitor.endWriteWhenDone(s),s})},copy:function(e,t,n,r){var i=encodeURIComponent(e),o={};return n&&(o.filename=n),r&&(o.content_type=r),o.destination_obj_id=t,scrivito.CmsRestApi.put("blobs/"+i+"/copy",o)},getFormData:function(){return new FormData}}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(128),o=function(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}(i),a=n(3),s=r(a),u=n(17),l=r(u),c=n(8),d=r(c);!function(){function e(e){return new l.default({id:"scrivito.sdk.revert_resource",title:scrivito.t("commands.revert_resource.title"),icon:"&#xf032;",present:function(){return scrivito.editingContext.isMutable()&&!e.is_deleted()},disabled:function(){if(e.is_new())return scrivito.t("commands.revert_resource.is_new")},execute:function(){t().then(function(){return n(e)})}})}function t(){return scrivito.confirmation_dialog({title:scrivito.t("commands.revert_resource.dialog.title"),description:scrivito.t("commands.revert_resource.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_resource.dialog.confirm"),confirm_button_color:"red"})}function n(e){scrivito.withSavingOverlay((0,d.default)(function(){return s.default.get(e.id())}).then(function(e){return o.revertObj(e.objData)}).then(r))}function r(){scrivito.applicationWindow.reload(),scrivito.cmsWindow.from($("iframe[name=scrivito_details_dialog]")).reload()}scrivito.revert_resource_command=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(342),a=r(o),s=n(1e3),u=r(s),l=n(1001),c=r(l),d=n(343),f=r(d),p=n(344),h=r(p),_=n(225),m=r(_),v=n(0),g=r(v),y=n(218),b=r(y),w=n(571),k=r(w);!function(){function e(e){return new b.default({id:"scrivito.sdk.widget_commands.separator"+e})}var t={init:function(){scrivito.editingContext.isViewMode()||scrivito.on("content",function(t){g.default.each(scrivito.widgetElement.all($(t)),function(t){var n=t.widget().id(),r=t.widgetField().basic_obj(),o=t.basicWidget(),s=t.widgetField().basicField(),l=t.widgetField().renderMode();t.set_menu([(0,k.default)(o,{renderMode:l}),e(1),(0,f.default)(o),(0,a.default)(o),(0,m.default)(s,o),e(2),(0,c.default)(r,n),(0,u.default)(t),(0,h.default)(o)].concat(i(t.menu())))})})}};scrivito.widgetCommands=t}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.widget();return new f.default({id:"scrivito.sdk.revert_widget",title:scrivito.t("commands.revert_widget.title"),icon:"&#xf032;",present:function(){return scrivito.editingContext.isMutable()&&!t.is_deleted()},disabled:function(){return t.is_new()?scrivito.t("commands.revert_widget.is_new"):t.is_modified()?void 0:scrivito.t("commands.revert_widget.is_not_modified")},update:function(){return t.reload()},execute:function(){o().then(function(){var t=e.basicWidget();return scrivito.withSavingOverlay(a(t))})}})}function o(){return scrivito.confirmation_dialog({title:scrivito.t("commands.revert_widget.dialog.title"),description:scrivito.t("commands.revert_widget.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_obj.dialog.confirm"),confirm_button_color:"red"})}function a(e){var t=e.obj().objData;return c.revertWidget(t,e.id()).then(function(){return(0,u.default)(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(572),u=r(s),l=n(128),c=function(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}(l),d=n(17),f=r(d)},function(e,t,n){"use strict";function r(e,t){return new u.default({id:"scrivito.sdk.restore_widget",title:scrivito.t("commands.restore_widget.title"),icon:"&#xf032;",present:function(){return!e.widget(t)&&!e.isDeleted()},execute:function(){scrivito.withSavingOverlay(i(e,t)).then(function(){return scrivito.applicationWindow.reload()})}})}function i(e,t){return a.restoreWidget(e.objData,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(128),a=function(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}(o),s=n(17),u=function(e){return e&&e.__esModule?e:{default:e}}(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(346),a=r(o),s=n(225),u=r(s),l=n(347),c=r(l),d=n(0),f=r(d);!function(){var e={init:function(){scrivito.editingContext.isEditingMode()&&scrivito.on("content",function(e){var t=scrivito.WidgetlistFieldElement.all($(e));f.default.each(t,function(e){var t=e.basicField();e.set_menu([(0,a.default)(t),(0,c.default)(t),(0,u.default)(t)].concat(i(e.menu())))})})}};scrivito.widgetlistFieldCommands=e}()},function(e,t,n){"use strict";var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(5);!function(){function e(){scrivito.on("pageChange",function(e){e===scrivito.applicationDocument()&&n().set(e.pageId())})}function t(){var e=n().get();return e?i.default.getIncludingDeleted(e):null}function n(){return o.uiState.subState("currentPageId")}scrivito.observeApplicationPage=e,scrivito.currentApplicationPage=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{displayError:function(e){var t=void 0;if("precondition_not_met.workspace.create.exceeds_limit"===e.code)return void scrivito.workspace_limit_exceeded();t=e.message?scrivito.t("ajax_error",e.message):scrivito.t("ajax_error.communication"),scrivito.isDevelopmentMode?scrivito.AlertDialog.open(t):scrivito.ErrorDialog.open(scrivito.t("ajax_error.message_for_editor"),[t]),scrivito.logError(e)}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(33),o=r(i),a=n(0),s=r(a),u=n(1006),l=r(u),c=n(135),d=n(47),f=n(228),p=r(f),h=n(1008),_=n(59),m=r(_);!function(){function e(){var e=(0,o.default)(scrivito.location()).search(!0);e._scrivito_workspace_id&&(i=e._scrivito_workspace_id),e._scrivito_display_mode&&(r=e._scrivito_display_mode)}function t(){try{var e=JSON.parse((0,h.get)("scrivito_editing_context"));r=e.display_mode,i=e.workspace_id}catch(e){if(!(e instanceof SyntaxError))throw e}}function n(){return JSON.stringify({display_mode:r,workspace_id:i})}var r=void 0,i=void 0;scrivito.editingContext={init:function(){var n=this;t(),e(),document.hasFocus()&&this.writeCookie(),$.ajaxPrefilter(this.ajaxPrefilter),scrivito.Gui.on("document",function(e){(0,d.useRailsEngine)()&&e.localJquery().ajaxPrefilter(n.ajaxPrefilter),$(e.browserWindow()).on("focus",function(){return n.writeCookie()})}),p.default.subscribe("editingContext",function(){return n.writeCookie()})},get displayMode(){return r},set displayMode(e){r=e},get selectedWorkspaceId(){return i},set selectedWorkspaceId(e){i=e},uriWithEditingContextParams:function(e){var t=new o.default(scrivito.location().href);return e.workspaceId&&t.setQuery("_scrivito_workspace_id",e.workspaceId),e.displayMode&&t.setQuery("_scrivito_display_mode",e.displayMode),t},isViewMode:function(){return"view"===r},isEditingMode:function(){return"editing"===r},isDiffMode:function(){return"diff"===r},ajaxPrefilter:function(e,t,r){e.crossDomain||r.setRequestHeader("Scrivito-Editing-Context",n())},writeCookie:function(){var e={path:"/"};"https:"===location.protocol&&(e.secure=!0),(0,h.set)("scrivito_editing_context",n(),e)},comparingMode:function(){var e="editing_context.comparing_mode";return this.isDiffMode()?(scrivito.storage.set(e,r),r):scrivito.storage.hasKey(e)?scrivito.storage.get(e):"diff"},isMutable:function(){return"published"!==i},reasonForDisplayModeBeingDisabled:function(e){if("editing"===e)return scrivito.editingMode.reasonForBeingDisabled},conflictingWorkspacesFor:function(e){if(m.default.selected.isPublished())return[];var t=m.default.byModifiedObj(e);return s.default.reject(t,function(e){return e.id===i})},restrictionMessagesFor:function(e){return m.default.selected.isMutable()&&(0,c.useCustomUsers)()?l.default.get(e.id()).restrictionMessages:[]},reset:function(){i="published",r="view"}},scrivito.editingContext.reset()}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=r(a),u=n(1007),l=function(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}(u),c=n(16),d=r(c),f=n(5),p=function(){function e(t){var n=this;i(this,e);var r=f.uiState.subState("publishAbility").subState(t),o=function(){return l.retrieve(t)},a=function(){return n._objVersion(t)};this._loadableData=new d.default({state:r,loader:o,invalidation:a,throwNotLoaded:!0})}return o(e,null,[{key:"get",value:function(t){var n=new e(t);return n.ensureAvailable(),n}},{key:"store",value:function(t,n){new e(t).set(n)}}]),o(e,[{key:"set",value:function(e){this._loadableData.set(e)}},{key:"ensureAvailable",value:function(){this._loadableData.get()}},{key:"_objVersion",value:function(e){return scrivito.loadableWithDefault("",function(){return s.default.getIncludingDeleted(e).version()})}},{key:"restrictionMessages",get:function(){return this._loadableData.get().restriction_messages}}]),e}();t.default=p},function(e,t,n){"use strict";function r(e){return s.retrieve(e)}function i(){s.reset()}Object.defineProperty(t,"__esModule",{value:!0}),t.retrieve=r,t.reset=i;var o=n(87),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=new a.default(function(e){return scrivito.ajax("PUT","publish_abilities/mget",{data:{obj_ids:e},skip_write_monitor:!0})})},function(e,t,n){var r,i;!function(o){var a=!1;if(r=o,void 0!==(i="function"==typeof r?r.call(t,n,t,e):r)&&(e.exports=i),a=!0,e.exports=o(),a=!0,!a){var s=window.Cookies,u=window.Cookies=o();u.noConflict=function(){return window.Cookies=s,u}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(n){function r(t,i,o){var a;if("undefined"!=typeof document){if(arguments.length>1){if(o=e({path:"/"},r.defaults,o),"number"==typeof o.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,!0!==o[l]&&(u+="="+o[l]));return document.cookie=t+"="+i+u}t||(a={});for(var c=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;f<c.length;f++){var p=c[f].split("="),h=p.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var _=p[0].replace(d,decodeURIComponent);if(h=n.read?n.read(h,_):n(h,_)||h.replace(d,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===_){a=h;break}t||(a[_]=h)}catch(e){}}return a}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t(function(){})})},function(e,t,n){"use strict";!function(){function e(){scrivito.withSavingOverlay(scrivito.reload())}var t="edit_mode_disabled.reason";scrivito.editingMode={disable:function(n){var r=scrivito.editingMode.reasonForBeingDisabled;if(scrivito.storage.set(t,n),scrivito.editingContext.isEditingMode())return scrivito.withSavingOverlay(scrivito.changeEditingContext({displayMode:"view"}));r!==n&&e()},enable:function(n){scrivito.editingMode.isEnabled()||(scrivito.storage.remove(t),n?n():e())},isEnabled:function(){return!scrivito.editingMode.reasonForBeingDisabled},get reasonForBeingDisabled(){return scrivito.storage.get(t)}}}()},function(e,t,n){"use strict";!function(){scrivito.forgery_protection={init:function(){$.ajaxPrefilter(function(e,t,n){if(!e.crossDomain){var r=$("meta[name=csrf-token]").attr("content");r?n.setRequestHeader("X-CSRF-Token",r):scrivito.logError("Missing CSRF Token in UI, AJAX may fail!")}})}}}()},function(e,t,n){"use strict";function r(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 i(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)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1);!function(){var e=function(){function e(t,n){var r=n.events,i=n.initialState,a=n.states,s=n.superStateEvents,u=n.actions;o(this,e),this._name=t,this._events=r,this._states=a,this._superStateEvents=s,this._actions=u,this._currentState=i}return a(e,[{key:"triggerEvent",value:function(e){if(!u.default.contains(this._events,e))throw new scrivito.FsmError('Unknown event "'+e+'"');if(!this._currentState)throw new scrivito.FsmError("Invalid state detected. Maybe initial state was not set?");if(this._superStateEvents){var t=this._superStateEvents[e];if(t)return void this._executeRule(t,e)}var n=this._states[this._currentState];if(!n)throw new scrivito.FsmError('Missing rules for state "'+this._currentState+'"');var r=n[e];r&&this._executeRule(r,e)}},{key:"_executeRule",value:function(e,t){var n=this,r=e.transitionTo,i=e.execute;if(!r)throw new scrivito.FsmError('Missing target state for source state "'+this._currentState+'" and event "'+t+'"');this._currentState=r,i&&i.forEach(function(e){var t=n._actions[e];if(!t)throw new scrivito.FsmError('Unknown action "'+e+'"');t()})}},{key:"currentState",get:function(){return this._currentState}}]),e}(),t=function(e){function t(e){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),t}(l.InternalError);scrivito.Fsm=e,scrivito.FsmError=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e){return scrivito.editingContext.isEditingMode()?scrivito.cms_field_element.preload($(e)):scrivito.Promise.resolve()}function t(e,t){r[e]&&i.default.each(r[e],function(e){e(t)})}var n=!1,r={},o={start:function(){scrivito.Gui.on("document",function(e){var t=e.dom_element().find("body");t.addClass("scrivito_editing_active"),t.attr("data-scrivito-display-mode",scrivito.editingContext.displayMode),i.default.each(["dragenter","dragover","drop"],function(e){return t.on(e,!1)})}),$("body").append('\n <div id="scrivito_editing">\n <div id="menubar"></div>\n <div id="publish_history_dialog"></div>\n <div id="workspace_settings_dialog"></div>\n <div id="workspace_changes_dialog"></div>\n <div id="details_dialog"></div>\n <div id="choose_obj_class_dialog"></div>\n <div id="error_dialog"></div>\n <div id="alert_dialog"></div>\n <div id="context_menu"></div>\n <div id="prompt_dialog"></div>\n <div id="image_editor_dialog"></div>\n </div>\n '),t("open"),t("content",window.document),n=!0},stop:function(){n=!1},cleanUp:function(){$("#scrivito_editing").remove()},newContent:function(n){n&&e(n).then(function(){t("content",n);var e=scrivito.CmsDocument.from($(n)).notifyNewContent(n);e.length?scrivito.Promise.all(e).then(function(){t("editor_selection",n)}):t("editor_selection",n)})},newDocument:function(e){i.default.each(r.document,function(t){t(e)}),e.window().notifyNewDocument(e)},on:function(e,t){void 0===r[e]&&(r[e]=[]),r[e].push(t)},resetCallbacks:function(){r={}},isStarted:function(){return n},hideControls:function(){$("#scrivito_ui").addClass("scrivito_hide_ui")},showControls:function(){$("#scrivito_ui").removeClass("scrivito_hide_ui")}};scrivito.Gui=o}()},function(e,t,n){"use strict";function r(e){var t=o.default.find(e);return!(!t||!t.attribute("tags"))&&"stringlist"===t.attribute("tags").type}var i=n(41),o=function(e){return e&&e.__esModule?e:{default:e}}(i);scrivito.hasTagsAttribute=r},function(e,t,n){"use strict";var r=n(106),i=function(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}(r);!function(){function e(){scrivito.Gui.on("document",function(e){e.dom_element().on("keyup",function(e){return $(document).trigger(e)})})}function t(e,t){var r=n+1;n=r;var o="keyup.scrivito_hotkeys."+r,a={13:t.enter,27:t.escape};return $(document).on(o,function(e){if(!(scrivito.savingOverlay.isPresent()||r<n)){var t=a[e.keyCode];t&&t(e)}}),i.finally(e,function(){n-=1,$(document).off(o)})}var n=0;scrivito.hotkeys={add:t,init:e}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(475),o=r(i),a=n(569),s=r(a);!function(){function e(e,t){var n=$(this);switch(e){case"save":return r(n,t);case"content":return i(n);case"valid_values":return a(n);case"valid_classes":return u(n);case"menu":return l(n);case"reload":c(n);break;default:$.error('Unknown method "'+e+'"')}}function t(e){e.length<1&&$.error('Can not call "scrivito" method on an empty element'),e.length>1&&$.error('Can not call "scrivito" method on more than one tag')}function n(e){return scrivito.cms_element.from_dom_element(e)}function r(e,t){if(e.length>0)if(1===e.length){if(void 0!==t){var r=n(e);r.set_original_content(t);var i=r.save(t).then(function(){}).catch(function(e){throw{message:e.message}});return(0,s.default)(i)}$.error('Can not call "save" with no content')}else $.error('Can not call "scrivito" method on more than one tag')}function i(e){return t(e),n(e).original_content()}function a(e){return t(e),n(e).valid_values()}function u(e){return t(e),n(e).valid_classes()}function l(e){t(e);var r=n(e);return new o.default(r)}function c(e){t(e),n(e),$(e).trigger("reload.scrivito")}scrivito.jQueryPlugin=e,$.fn.scrivito=scrivito.jQueryPlugin}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(15),l=r(u),c=n(1017),d=function(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}(c),f=n(0),p=r(f),h=n(1),_=n(573);!function(){scrivito.LinkResolutionWorker=function(){function e(t,n,r){o(this,e),this._objData=t,this._attributeName=n,this._widgetId=r,this._deferred=new l.default,this._startCount=0;var i=this._currentAttributeData(),s=a(i,2);this._attributeType=s[0],this._attributeValue=s[1]}return s(e,[{key:"finish",value:function(){return this._deferred.promise}},{key:"isFinished",value:function(){return!this._deferred.isPending()}},{key:"start",value:function(){var e=this;if(!(++this._startCount>2)&&this._deferred.isPending()){if(this._isConcurrentUpdate())return void this._deferred.resolve();var t=this._convertValue();p.default.isEmpty(t.unknownUrls)?(this._updateAttributeValue(t.result),this._deferred.resolve()):(scrivito.WriteMonitor.startWrite(),(0,_.preloadResolvedUrls)(t.unknownUrls).then(function(){scrivito.WriteMonitor.endWrite(),e.start()}).catch(function(t){scrivito.WriteMonitor.endWrite(),e._deferred.reject(t)}))}}},{key:"_convertValue",value:function(){switch(this._attributeType){case"html":return d.convertHtml(this._attributeValue);case"link":return d.convertLink(this._attributeValue);case"linklist":return d.convertLinklist(this._attributeValue);default:throw new h.InternalError('Attribute type "'+this._attributeType+'" is not supported.')}}},{key:"_currentAttributeData",value:function(){if(this._widgetId){return((this._objData.current._widget_pool||{})[this._widgetId]||{})[this._attributeName]||[]}return this._objData.current[this._attributeName]||[]}},{key:"_isConcurrentUpdate",value:function(){var e=[this._attributeType,this._attributeValue];return!p.default.isEqual(this._currentAttributeData(),e)}},{key:"_updateAttributeValue",value:function(e){if(e!==this._attributeValue){var t=i({},this._attributeName,[this._attributeType,e]);this._widgetId&&(t={_widget_pool:i({},this._widgetId,t)}),this._objData.update(t)}}}]),e}()}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=l(e,"a","href"),n=t.unknownUrls,r=t.convertedHtml,i=l(r,"img","src");return n=n.concat(i.unknownUrls),r=i.convertedHtml,s(r,n)}function o(e){var t=[],n=u(e),r=c(n,2),i=r[0],o=r[1];return o&&t.push(o),s(i,t)}function a(e){var t=[];return s(h.default.map(e,function(e){var n=u(e),r=c(n,2),i=r[0],o=r[1];return o&&t.push(o),i}),t)}function s(e,t){return{result:e,unknownUrls:h.default.uniq(t)}}function u(e){if(!e.url)return[e];var t=(0,_.resolveUrl)(e.url);return void 0===t?[e,e.url]:null===t?[e]:[{obj_id:t.obj_id,fragment:t.fragment,query:t.query,target:e.target,title:e.title}]}function l(e,t,n){var r=[],i=new RegExp("<"+t+"\\s+(?:[^>]*?\\s+)?"+n+"=([\"'])(.*?)\\1","gi"),o=e.replace(i,function(e,t,n){if(!n)return e;if(n.match(/^objid:/))return e;var i=(0,_.resolveUrl)(n);if(void 0===i)return r.push(n),e;if(null===i)return e;var o=new f.default("objid:"+i.obj_id);return i.fragment&&o.fragment(i.fragment),i.query&&o.query(i.query),e.replace(n,o.href())});return{unknownUrls:r,convertedHtml:o}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.convertHtml=i,t.convertLink=o,t.convertLinklist=a;var d=n(33),f=r(d),p=n(0),h=r(p),_=n(573)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(111),o=n(1019),a=r(o),s=n(0),u=r(s),l=n(24),c=r(l),d=n(64),f=r(d);!function(){scrivito.binaryFieldElement={createInstance:function(e){if("binary"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e),n=new a.default(function(e){return i.FileType.is(e)?c.default.upload(e).intoId(t.basic_obj().id()):e instanceof f.default?e.intoId(t.basic_obj().id()):scrivito.Promise.resolve(e)});return u.default.extend(t,{preprocess:function(e){return n.write(e).catch(function(e){throw scrivito.displayError(e),e})}}),t}}},scrivito.cms_element.definitions.push(scrivito.binaryFieldElement)}()},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(15),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t){r(this,e),this._preprocessor=t,this._valueOfWriteInProcess=null}return i(e,[{key:"write",value:function(e,t){var n=this._storeNextWrite(e,t);return this._hasRunningWrite()||this._initiateWrite(),n.promise}},{key:"pendingWrite",value:function(){return this._nextWrite?this._nextWrite.value:this._valueOfWriteInProcess}},{key:"_storeNextWrite",value:function(e,t){return this._nextWrite||(this._nextWrite={deferred:new a.default}),this._nextWrite.value=e,this._nextWrite.writeCallback=t,this._nextWrite.deferred}},{key:"_initiateWrite",value:function(){var e=this,t=this._nextWrite,n=t.value,r=t.writeCallback,i=t.deferred;return this._nextWrite=null,this._valueOfWriteInProcess=n,this._preprocess(n).then(function(e){return r&&r(e),e}).then(function(t){e._finishWrite(),i.resolve(t)}).catch(function(t){e._finishWrite(),i.reject(t)})}},{key:"_hasRunningWrite",value:function(){return!!this._valueOfWriteInProcess}},{key:"_finishWrite",value:function(){this._nextWrite?this._initiateWrite():this._valueOfWriteInProcess=null}},{key:"_preprocess",value:function(e){var t=this;return new scrivito.Promise(function(n){n(t._preprocessor(e))})}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(3),s=r(a),u=n(8),l=r(u),c=n(1021);!function(){scrivito.childListElement={createInstance:function(e){if(e.dom_element().attr("data-scrivito-private-child-list-path")){var t=e;return o.default.extend(t,{path:function(){return t.dom_element().attr("data-scrivito-private-child-list-path")},obj:function(){return scrivito.legacy_obj.create_instance({id:t.dom_element().attr("data-scrivito-private-child-list-order-obj-id"),description_for_editor:t.dom_element().attr("data-scrivito-private-obj-description-for-editor")})},fetchPageClassSelection:function(){return(0,c.fetchPageClassSelection)({parent_path:t.path()})},allowedClasses:function(){return JSON.parse(t.dom_element().attr("data-scrivito-private-child-list-allowed-classes"))},children:function(){return o.default.map(t.dom_element().find(">[data-scrivito-private-obj-id]"),function(e){return scrivito.cms_element.from_dom_element($(e))})},hasChildOrder:function(){return!!t.dom_element().attr("data-scrivito-private-child-list-order-obj-id")},fetchObj:function(){return(0,l.default)(function(){return s.default.get(t.obj().id())})},saveOrder:function(){if(t.hasChildOrder()){var e=o.default.map(t.children(),function(e){return e.obj().id()});return t.fetchObj().then(function(t){return t.update({childOrder:[e,["referencelist"]]}),t.finishSaving()}).catch(function(e){throw scrivito.displayError(e),e})}$.error("Can't save order, when child order is not allowed!")},isValidChildClass:function(e){var n=t.allowedClasses();return!n||o.default.contains(n,e)}}),t}},all:function(e){return scrivito.cms_element.all("[data-scrivito-private-child-list-path]",e)}},scrivito.cms_element.definitions.push(scrivito.childListElement)}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return o("objs/page_class_selection",e)}function o(e,t){return a(e,t).then(function(e){var t=c.default.pluck(e,"name"),n=void 0;t.length>=15&&(n=scrivito.ObjCreationHistory.recent(t));var r=c.default.take(c.default.intersection(scrivito.popular_obj_classes,t),5);return{all:e,recent:c.default.map(n,function(t){return c.default.findWhere(e,{name:t})}),popular:c.default.map(r,function(t){return c.default.findWhere(e,{name:t})})}})}function a(e,t){var n=e;t&&(n+="?"+$.param(t));var r=p.uiState.subState("getClassSelection").subState(n),i=function(){return scrivito.Promise.resolve(scrivito.ajaxWithErrorDialog("GET",n))},o=new u.default({state:r,loader:i});return(0,f.default)(function(){return o.get()})}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPageClassSelection=void 0;var s=n(16),u=r(s),l=n(0),c=r(l),d=n(8),f=r(d),p=n(5);t.fetchPageClassSelection=i},function(e,t,n){"use strict";function r(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 i(e){return e&&e.__esModule?e:{default:e}}var o=n(3),a=i(o),s=n(53),u=r(s),l=n(470),c=r(l),d=n(472),f=r(d),p=n(546),h=r(p),_=n(476),m=i(_),v=n(0),g=i(v),y=n(1),b=n(8),w=i(b),k=n(24),M=i(k),C=n(134),E=i(C),x=n(135),T=n(47),D=n(488),S=i(D);!function(){function e(e){function n(){if(!(0,T.useRailsEngine)())throw new y.InternalError("Unexpected attempt to access application frame's jQuery");if(l.jQuery)return l.jQuery;var e="jQuery is missing! In order for Scrivito to work, jQuery is needed. Please add jQuery to your assets.";scrivito.AlertDialog.open(e),$.error(e)}function r(e,t){"load"===e?_?scrivito.run_new_event(t):d.push(t):"content"===e?(p.push(t),_&&scrivito.run_new_event(function(){t(s)})):$.error("unknown event "+e)}function i(){var e=o.pageConfig();if(e&&!g.default.isEmpty(e.current_page))return e.current_page}var o=e,s=e.dom_element()[0],l=s.defaultView,d=[],p=[],_=!1,v=!1,b=void 0,k=void 0;return g.default.extend(o,{installRailsApi:function(){n().fn.scrivito=scrivito.jQueryPlugin;var e=l.scrivito||{};l.scrivito=g.default.extend(e,{on:r,trigger:scrivito.trigger,create_obj:scrivito.create_obj,delete_obj:scrivito.delete_obj,obj_where:scrivito.obj_where,is_current_page_restricted:scrivito.is_current_page_restricted,in_editable_view:scrivito.in_editable_view,register_default_obj_class_for_content_type:scrivito.register_default_obj_class_for_content_type,default_obj_class_for_content_type:scrivito.default_obj_class_for_content_type,page_menu:function(){return scrivito.page_menu(o)},define_editor:function(e,t){new m.default(o).define(e,t)},select_editor:function(e){o.select_editor=e},upload_binary:function(e){return M.default.upload(e.blob||e.file,{filename:e.filename,contentType:e.content_type})},suggest_completion:h.suggest,description_for_editor:scrivito.description_for_editor,path_for_id:scrivito.path_for_id,id_from_path:scrivito.id_from_path,content_browser:S.default,dialog:function(e,t){var n=o.window().iframe();return scrivito.custom_dialog(n,s,e,t)}}),t(l.scrivito,["menu_order","popular_obj_classes"])},setAppAdapter:function(e){b=e},appAdapter:function(){return b},assertUserLoggedIn:function(){(0,x.useCustomUsers)()&&(0,w.default)(function(){o.userId()!==E.default.current.id&&scrivito.change_location(o.window().browserWindow().location,window)})},connect:function(){if(v&&$.error("document connected twice!"),scrivito.cmsWindow.isLivingWindow(l))return v=!0,o.preloadObjs().then(function(){d.forEach(function(e){return scrivito.run_new_event(e)}),_=!0,scrivito.Gui.newDocument(o),scrivito.Gui.newContent(o.dom_element()[0]),c.notify(o)});scrivito.log_info("document inside closed window, refusing to connect")},preloadObjs:function(){return scrivito.editingContext.isViewMode()?scrivito.Promise.resolve():(g.default.each(o.preloadedObjData(),function(e){return u.store(e)}),scrivito.cms_field_element.preload(o.dom_element()))},notifyNewContent:function(e){var t=this;return _&&g.default.map(p,function(n){return new scrivito.Promise(function(r){scrivito.run_new_event(function(){try{n.apply(t,[e])}finally{r()}})})})},addAppExtensions:function(){if(scrivito.ui_config()){var e=scrivito.ui_config().app_extension_tags;l.document.write(e)}},window:function(){return scrivito.cmsWindow.from(l)},localJquery:function(e){return e?n()(e):n()},browserWindow:function(){return l},offset:function(e){var t=$(e).offset(),n=$(o.window().iframe()).offset();return n?{top:n.top-$(l.document).scrollTop()+t.top,left:n.left-$(l.document).scrollLeft()+t.left}:t},pageId:function(){if(k)return k;var e=i();return e?e.id:null},page:function(){var e=o.pageId();return e?a.default.getIncludingDeleted(e):null},setCurrentPageId:function(e){k=e,c.notify(o)},isCurrentPageStatic:function(){return!k},hasCurrentPage:function(){return!!o.pageId()},isCurrentPageRestricted:function(){if(o.hasCurrentPage()){var e=o.pageConfig();if(e)return e.current_page.is_restricted}return!1},userId:function(){var e=o.pageConfig();if(e)return e.user_id},preloadedObjData:function(){var e=o.pageConfig();if(e)return e.preloaded_obj_data},pageConfig:function(){return f.read(o.findPageConfig(),"data-scrivito-private-page-config")},setPageConfig:function(e){var t=o.findPageConfig();t.length||(t=o.dom_element().find("body")),e?f.write(t,"data-scrivito-private-page-config",e):t.removeAttr("data-scrivito-private-page-config")},findPageConfig:function(){return o.dom_element().find("[data-scrivito-private-page-config]")},setCurrentPageConfig:function(e){o.setPageConfig({current_page:e})},clearCurrentPage:function(){k=null}}),o}function t(e,t){g.default.each(t,function(t){Object.defineProperty(e,t,{get:function(){return scrivito[t]},set:function(e){scrivito[t]=e}})})}var n={offset:function(e){return this.from(e).offset(e)},localJquery:function(e){return this.from($(e)).localJquery(e)},from:function(e){var t=void 0,n=$(e);return 0===n.length&&$.error("empty jquery instance given"),n[0].ownerDocument?t=$(n[0].ownerDocument):n[0].nodeType===Node.DOCUMENT_NODE?t=n:$.error("scrivito.CmsDocument.from must be called with a dom element"),scrivito.cms_element.from_dom_element(t)},createInstance:function(t){if(t.dom_element()[0].nodeType===Node.DOCUMENT_NODE)return e(t)}};scrivito.cms_element.definitions.push(n),scrivito.CmsDocument=n}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(0),a=r(o),s=n(3),u=r(s),l=n(464),c=r(l),d=n(42),f=r(d),p=n(8),h=r(p),_=n(19);!function(){function e(e){return a.default.contains(["binary","date","enum","float","html","integer","link","linklist","multienum","reference","referencelist","string","stringlist"],e)}var t={createInstance:function(t){function n(){o.workspace_id()!==scrivito.editingContext.selectedWorkspaceId&&$.error("Tried to edit cms data from wrong workspace!")}function r(e,t){if(e&&"date"===t){return new(0,scrivito.CmsDocument.from(o.dom_element()).browserWindow().Date)(e)}return e&&"binary"===t?new c.default(e.id,e.url,e.filename,o.obj().id()):e}var o=t;return a.default.extend(o,{field_name:function(){return o.dom_element().attr("data-scrivito-field-name")},attr_name:function(){return(0,_.camelCase)(o.field_name())},field_type:function(){return o.dom_element().attr("data-scrivito-field-type")},type_info:function(){if(!(0,f.default)(o.attr_name())){var e=o.field_type();return"enum"===e||"multienum"===e?[e,{values:o.valid_values()}]:[e]}},obj:function(){return scrivito.legacy_obj.create_instance({id:o.dom_element().attr("data-scrivito-private-field-obj-id"),obj_class:o.dom_element().attr("data-scrivito-field-obj-class")})},workspace_id:function(){return o.dom_element().attr("data-scrivito-private-field-workspace-id")},widget:function(){var e=o.dom_element().attr("data-scrivito-private-field-widget-id");if(e)return scrivito.legacy_widget.create_instance(o.obj(),e,o.dom_element().attr("data-scrivito-widget-obj-class"))},save:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.content();return n(),void 0===e&&$.error("Can't save without content"),o.preprocess(e).then(function(e){var t=i({},o.attr_name(),[e,o.type_info()]);return o.container().update(t),o.container().finishSaving().catch(function(){throw new Error(scrivito.t("ajax_error.communication"))})})},preprocess:function(e){return scrivito.Promise.resolve(e)},preload_model:function(){var e=o.dom_element().attr("data-scrivito-private-field-obj-id");return(0,h.default)(function(){return u.default.getIncludingDeleted(e)})},basic_obj:function(){var e=o.dom_element().attr("data-scrivito-private-field-obj-id");return u.default.getIncludingDeleted(e)},basic_widget:function(){var e=o.dom_element().attr("data-scrivito-private-field-widget-id"),t=o.basic_obj();if(e)return t.widget(e)},container:function(){return o.basic_widget()||o.basic_obj()},original_content:function(){if(n(),e(o.field_type())){return r(scrivito.json_parse_base64(o.dom_element().attr("data-scrivito-private-field-original-content")),o.field_type())}$.error("Fields of type "+o.field_type()+" do not support original content")},set_original_content:function(t){e(o.field_type())&&o.dom_element().attr("data-scrivito-private-field-original-content",scrivito.json_stringify_base64(t))},valid_values:function(){return o.dom_element().data("scrivito-private-field-allowed-values")},valid_classes:function(){var e=o.widget()||o.obj(),t=e.model_class(),n=t.attribute(o.attr_name());return a.default.pluck(n.validClasses(),"name")}}),o},preload:function(e){var t=scrivito.cms_element.all("[data-scrivito-field-type]",e),n=[];a.default.each(t,function(e){e.preload_model&&n.push(e.preload_model())});var r=scrivito.Promise.all(n);return r.catch(function(e){scrivito.ErrorDialog.open("An error occured while loading some of the page contents. Please reload.",[e.message])}),r}};scrivito.cms_field_element=t}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(33),o=r(i),a=n(0),s=r(a),u=n(3),l=r(u),c=n(8),d=r(c),f=n(47);!function(){function e(e){function t(e){var t=n.iframe();return scrivito.withSavingOverlay(new scrivito.Promise(function(n,r){t&&$(t).one("load",n),e.then(n),e.catch(r)}))}var n={_isForcedEditingMode:!1,document:function(){return scrivito.cms_element.from_dom_element($(e.document))},on:function(e,t){"document"!==e&&$.error("invalid event name: "+e),r.push(t)},notifyNewDocument:function(e){s.default.each(r,function(t){return t(e)})},browserWindow:function(){return e},reload:function(){return t(scrivito.reload(e))},redirectTo:function(n){return t(scrivito.redirect_to(n,e))},onDocumentResize:function(e){i.push(e)},notifyDocumentResize:function(){i.forEach(function(e){return e()})},clearDocumentResizeCallbacks:function(){i=[]},getDocumentHeight:function(){var e=n.document().appAdapter();return e?e.getDocumentHeight():0},clearDocumentCallbacks:function(){r=[]},useFragmentOf:function(e){if(n!==e){var t=e.browserWindow().location.hash;if(t){var r=new o.default(n.iframe().src);r.fragment(t),n.iframe().src=r.href()}}},isFrame:function(){return e.parent!==e},iframe:s.default.once(function(){return s.default.find($(e.parent.document).find("iframe"),function(t){try{return $(t).contents()[0].defaultView===e}catch(e){}})}),fragment:function(){return e.location.hash},queryString:function(){return e.location.search},forceEditingMode:function(){n._isForcedEditingMode=!0},isForcedEditingMode:function(){return n._isForcedEditingMode},navigateTo:function(e){if((0,f.useRailsEngine)())return n.redirectTo(scrivito.path_for_id(e));var t=n.document().appAdapter();t?t.navigateTo(e):scrivito.logError("\n useRailsEngine is false but there is no AppAdapter,\n this means that there should be a JS application, but it is missing or broken somehow.\n ")},navigateToRoot:function(){return(0,d.default)(function(){return l.default.root()}).then(function(e){return n.navigateTo(e.id())})}},r=[],i=[];return n}function t(){a=s.default.reject(a,function(e){var t=e.browserWindow(),n=!0;if(t)try{n=!scrivito.cmsWindow.isLivingWindow(t)}catch(e){}return n})}function n(e){return t(),s.default.detect(a,function(t){return t.browserWindow()===e})}function r(e){a.push(e)}var i={from:function(t){t||$.error("no element given!");var i=void 0;if(t.jquery&&"IFRAME"===t[0].tagName){i=$(t).contents()[0].defaultView}else i=t;scrivito.cmsWindow.isLivingWindow(i)||$.error("element is a closed browser window or not a window element at all");var o=n(i);return o||(o=e(i),r(o)),o},isLivingWindow:function(e){return!!$.isWindow(e)&&(e.parent===e.self?e.self===top:!e.closed)},activeWindows:function(){return t(),a},instances:function(){return a}},a=[];scrivito.cmsWindow=i}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){if("date"===e.dom_element().attr("data-scrivito-field-type"))return scrivito.cms_field_element.createInstance(e)},all:function(){return i.default.map($('[data-scrivito-field-type="date"]'),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.cms_element.definitions.push(e),scrivito.DateFieldElement=e}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){if("html"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return i.default.extend(t,{content:function(){var e=t.dom_element().html();return $.trim(e)}}),t}},all:function(){return i.default.map($('[data-scrivito-field-type="html"]'),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.HtmlFieldElement=e,scrivito.cms_element.definitions.push(e)}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(41),s=r(a);!function(){var e={};o.default.extend(scrivito,{legacy_obj:{create_instance:function(t){var n={id:function(){return t.id},obj_class:function(){return t.obj_class},model_class:function(){return s.default.find(t.obj_class)},description_for_editor:function(){return t.description_for_editor},modification:function(){return t.modification},is_new:function(){return"new"===n.modification()},is_edited:function(){return"edited"===n.modification()},is_deleted:function(){return"deleted"===n.modification()},has_children:function(){return!!t.has_children},has_conflict:function(){return!!t.has_conflict},is_binary:function(){return!!t.is_binary},last_changed:function(){return t.last_changed},parent_path:function(){return t.parent_path},details_src:function(){return"/__scrivito/page_details/"+n.id()},reload_widget:function(e){return n.enqueue_ajax("GET","objs/"+n.id()+"/widget?widget_id="+e)},enqueue_ajax:function(){var t=arguments,r=function(){return scrivito.ajaxWithErrorDialog.apply(null,t)};if("GET"===t[0])return r();var i=$.Deferred();return(e[n.id()]||$.Deferred().resolve()).always(function(){r().then(function(){i.resolve.apply(i,arguments)},function(){i.reject.apply(i,arguments)})}),e[n.id()]=i,i}};return n},clear_write_promises:function(){e={}}}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(58),s=r(a);!function(){o.default.extend(scrivito,{legacy_widget:{create_instance:function(e,t,n,r){r=r||{};var i={id:function(){return t},obj:function(){return e},widget_class_name:function(){return n},model_class:function(){return s.default.find(i.widget_class_name())},modification:function(){return r.modification},placement_modification:function(){return r.placement_modification},description_for_editor:function(){return r.description_for_editor},is_modified:function(){return!!i.modification()},is_new:function(){return"new"===i.modification()},is_edited:function(){return"edited"===i.modification()},is_deleted:function(){return"deleted"===i.modification()},is_placement_modified:function(){return!!i.placement_modification()},fetch_markup:function(e,t){var n={render_mode:e,inner_tag:t};return scrivito.ajaxWithErrorDialog("GET",o("show_widget")+"?"+$.param(n),{dataType:"html"})},reload:function(){return i.obj().reload_widget(i.id()).then(function(e){r.modification=e.modification})}},o=function(e){return"render_widget/"+i.obj().id()+"/"+e+"/"+i.id()};return i}}})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){if(e.dom_element().attr("data-scrivito-private-obj-id")){var t=e;return i.default.extend(t,{obj:function(){return scrivito.legacy_obj.create_instance({id:t.dom_element().attr("data-scrivito-private-obj-id"),description_for_editor:t.dom_element().attr("data-scrivito-private-obj-description-for-editor")})}}),t}},all:function(){return i.default.map($("[data-scrivito-private-obj-id]"),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.cms_element.definitions.push(e),scrivito.ObjElement=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(2),a=r(o),s=n(0),u=r(s),l=n(48),c=r(l),d=n(19);!function(){function e(e,t){var n={hits:[],fetchedIds:u.default.clone(t||[])};return u.default.each(e.hits,function(e){u.default.contains(n.fetchedIds,e.id)||(n.hits.push(e.serialized_obj),n.fetchedIds.push(e.id))}),n}function t(e){var t=e;return u.default.isArray(e)||(t=[e]),u.default.map(t,function(e){return[o(e),n(e)]})}function n(e){return null===e?e:u.default.isDate(e)?a.default.utc(e).toISOString():String(e)}function r(e){return u.default.map(e,function(e){var t=i(e,2),n=t[0],r=t[1];return"date"===n?(0,a.default)(r).toDate():r})}function o(e){return u.default.isDate(e)?"date":"string"}function s(e){if(e){var t={};return u.default.each(e,function(e,n){var r=(0,d.camelCase)(n);t[r]=e}),t}}scrivito.chainable_search={create_instance:function(n,i,o){function a(e,n,r,i,o){var a={field:e,operator:n,value:t(r)};return o&&(a.negate=!0),i&&(a.boost=i),f.predicates.push(a),h}function l(e,t){var n={query:JSON.stringify(e),query_action:t};return i&&(n.continuation=i),scrivito.ajaxWithErrorDialog("GET","objs/search?"+$.param(n))}var f=n||{predicates:[]},p=o||[],h={query:function(){return f},and:function(e,t,n,r){if(u.default.isString(e))a(e,t,n,r);else{var i=e.query().predicates;f.predicates=f.predicates.concat(i)}return h},and_not:function(e,t,n){return a(e,t,n,void 0,!0),h},offset:function(e){return f.offset=e,h},order:function(e){return u.default.isString(e)?f.order=[e,"asc"]:f.order=u.default.first(u.default.pairs(e)),h},reverse_order:function(){if(f.order)return f.order[1]="asc"===f.order[1]?"desc":"asc",h;$.error("A search order has to be specified before reverse_order can be applied.")},batch_size:function(e){return f.batch_size=e,h},format:function(e){return f.format=e,h},include_deleted:function(){return f.include_deleted=!0,h},facet:function(e,t){var n=$.param({query:JSON.stringify(f),facet:JSON.stringify({attribute:e,options:t||{}})});return scrivito.ajaxWithErrorDialog("GET","objs/search?"+n)},load_batch:function(){var t=void 0;return l(f).then(function(n){var r=n.total,i=n.continuation,o=e(n,p);i?t=scrivito.chainable_search.create_instance(f,i,o.fetchedIds):(r=o.fetchedIds.length,t=void 0);var a={total:r,hits:o.hits};return $.Deferred().resolve(a,t)})},size:function(){return l(f,"size").then(function(e){return $.Deferred().resolve(e.total)})},clone:function(){var e=$.extend(!0,{},f);return scrivito.chainable_search.create_instance(e)},toBasicObjSearch:function(){var e=new c.default;return u.default.each(f.predicates,function(t){var n=t.field,i=t.operator,o=t.value,a=t.negate,u=t.boost,l=r(o),c=(0,d.camelCase)(n),f=s(u),p=(0,d.camelCase)(i);a?e.andNot(c,p,l):e.and(c,p,l,f)}),e}};return h}}}(),function(){scrivito.obj_where=function(e,t,n,r){return scrivito.chainable_search.create_instance().and(e,t,n,r)}}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e=["enum","float","integer","link","linklist","multienum","reference","referencelist","stringlist"],t={createInstance:function(t){if(i.default.include(e,t.dom_element().attr("data-scrivito-field-type")))return scrivito.cms_field_element.createInstance(t)}};scrivito.cms_element.definitions.push(t),scrivito.StandardFieldElement=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){if("string"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return i.default.extend(t,{content:function(){var e=t.dom_element().text();return $.trim(e)}}),t}},all:function(){return i.default.map($('[data-scrivito-field-type="string"]'),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.cms_element.definitions.push(e),scrivito.StringFieldElement=e}()},function(e,t,n){"use strict";var r=n(5);!function(){function e(){return r.uiState.subState("uiWarning")}var t={notify:function(){e().set(!0)},isPresent:function(){return!!e().get()},clear:function(){e().clear()}};scrivito.UiWarning=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){scrivito.widgetElement={createPlaceholder:function(e,t){var n=scrivito.Template.render("widget_element_placeholder",{tag:e,widget:{id:t.id(),objClass:t.objClass()}});return scrivito.cms_element.from_dom_element($(n))},isWidgetElement:function(e){return e.is("[data-scrivito-private-widget-id]")},createInstance:function(e){if(scrivito.widgetElement.isWidgetElement(e.dom_element())){var t=e;return i.default.extend(t,{widget:function(){var e=t.dom_element();return scrivito.legacy_widget.create_instance(t.widgetField().obj(),e.attr("data-scrivito-private-widget-id"),e.attr("data-scrivito-widget-obj-class"),{modification:e.attr("data-scrivito-private-widget-modification"),placement_modification:e.attr("data-scrivito-private-widget-placement-modification"),description_for_editor:e.attr("data-scrivito-private-widget-description-for-editor")})},widgetField:function(){return scrivito.cms_element.from_dom_element(t.dom_element().parent())},fetchMarkup:function(){var e=t.widgetField().renderMode(),n=t.widgetField().innerTag();return t.widget().fetch_markup(e,n)},fieldName:function(){return t.widgetField().field_name()},hasWidgetlist:function(){return!!t.dom_element().find("[data-scrivito-field-type=widgetlist]").length},widgetId:function(){return t.dom_element().attr("data-scrivito-private-widget-id")},basicWidget:function(){return t.widgetField().basic_obj().widget(t.widgetId())},materialize:function(){scrivito.ElementOverlay.create(t.dom_element()),t.basicWidget().finishSaving().then(function(){return t.fetchMarkup()}).then(function(e){var n=$(e);t.dom_element().replaceWith(n),scrivito.Gui.newContent(n),scrivito.ensure_fully_visible_within_window(n)})}}),t}},all:function(e){return scrivito.cms_element.all("[data-scrivito-private-widget-id]",e)}},scrivito.cms_element.definitions.push(scrivito.widgetElement)}()},function(e,t,n){"use strict";function r(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 i(e){return e&&e.__esModule?e:{default:e}}var o=n(1036),a=i(o),s=n(467),u=r(s),l=n(468),c=r(l),d=n(0),f=i(d);!function(){var e={all:function(e){return scrivito.cms_element.all('[data-scrivito-field-type="widgetlist"]',e)},createInstance:function(e){if("widgetlist"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return f.default.extend(t,{save:function(){scrivito.warn('save() on a "widgetlist" is not supported!')},content:function(){return f.default.map(t.widgetElements(),function(e){return e.widget().id()})},widgetElements:function(){return f.default.map(t.dom_element().children(),function(e){var t=$(e);if(t.is("[data-scrivito-private-widget-id]"))return scrivito.cms_element.from_dom_element(t);scrivito.throw_error("Scrivito found a widget with invalid markup",{params:[e],description:scrivito.t("widgetlist_field_element.markup_error")})})},isEmpty:function(){return 0===t.widgetElements().length},basicField:function(){return t.container().field(t.attr_name(),"widgetlist")},renderMode:function(){return t.dom_element().attr("data-scrivito-private-field-widget-render-mode")},innerTag:function(){return t.dom_element().attr("data-scrivito-private-field-widget-inner-tag")},refresh:function(){var e=this,n=t.container().get(t.attr_name(),["widgetlist"]),r=f.default.invoke(t.widgetElements(),"widgetId"),i=n.map(function(e){return e.id()}),o=(0,a.default)(r,i);f.default.each(o,function(t){"insert"===t.operation?e._insertWidgetElement(t.item,t.before[0]):"delete"===t.operation&&e._removeWidgetElement(t.item)}),u.update(t),c.update(t)},_removeWidgetElement:function(e){t._widgetElementWithId(e).dom_element().remove()},_insertWidgetElement:function(e,n){var r=t.basic_obj().widget(e),i=scrivito.widgetElement.createPlaceholder(t.innerTag(),r);t._insertIntoDom(i.dom_element(),n),i.materialize()},_insertIntoDom:function(e,n){if(n){t._widgetElementWithId(n).dom_element().before(e)}else t.dom_element().append(e)},_widgetElementWithId:function(e){var n="[data-scrivito-private-widget-id="+e+"]",r=t.dom_element().children(n);if(0!==r.length)return scrivito.cms_element.from_dom_element(r)}}),t}}};scrivito.cms_element.definitions.push(e),scrivito.WidgetlistFieldElement=e}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n=f(e,t),r=f(t,e);return o(t,n,u(f(e,n),f(t,r)),r)}function o(e,t,n,r){function i(){u.shift()}var o=d.default.map(t,function(e){return a("delete",e)}),u=n.concat(r);return d.default.each(n,function(t){o.push(s("move",t,e,u)),i()}),d.default.each(r,function(t){o.push(s("insert",t,e,u)),i()}),o}function a(e,t){return{item:t,operation:e}}function s(e,t,n,r){var i=n.indexOf(t);return{item:t,operation:e,after:f(n.slice(0,i),r),before:f(n.slice(i+1),r)}}function u(e,t){var n=l(e,t);return n?[n].concat(r(u(f(e,[n]),f(t,[n])))):[]}function l(e,t){if(0!==e.length){var n=d.default.map(e,function(n){return{item:n,distance:Math.abs(t.indexOf(n)-e.indexOf(n))}}),r=d.default.max(n,function(e){return e.distance});return r.distance>0?r.item:void 0}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var c=n(0),d=function(e){return e&&e.__esModule?e:{default:e}}(c),f=d.default.difference},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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||"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);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)}var u=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=n(77),c=i(l),d=n(128),f=i(d),p=n(0),h=r(p),_=n(1),m=n(59),v=r(m);!function(){function e(e){return new scrivito.Promise(function(t){if(e.current._conflicts)throw new k(e._id,"conflict");t()})}function t(e,t){var n=e._id;return y(n,t).then(function(e){if(e&&e._modification)throw new k(n,"modified")})}function n(e,t){var n=e._id,i=v.default.selected.id;return scrivito.Promise.all([b(n,i),b(n,t)]).then(function(e){var t=u(e,2),i=t[0],o=t[1];if(i&&o&&!r(i,o))throw new k(n,"conflict")})}function r(e,t){var n=c.diff(i(e),i(t));return h.default.isEmpty(n)}function i(e){return h.default.pick(e,function(e,t){return"_"!==t[0]||h.default.contains(["_path","_permalink","_obj_class"],t)})}function l(e,t){switch(e.current._modification){case"new":return d(e,t);case"deleted":return p(e,t);default:return m(e,t)}}function d(e,t){return g(e._id,t,e.current).then(function(){return e.update({_marked_deleted:!0}),e.finishSaving()})}function p(e,t){return g(e._id,t,{_marked_deleted:!0}).then(function(){return f.restoreObj(e)})}function m(e,t){var n=e._id;return y(n,t).then(function(r){var i=c.diff(r,e.current);return g(n,t,i).then(function(){return f.revertObj(e)})})}function g(e,t,n){return scrivito.CmsRestApi.put("workspaces/"+t+"/objs/"+e,{obj:n})}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"objs";return scrivito.CmsRestApi.get("workspaces/"+t+"/"+n+"/mget",{ids:[e]}).then(function(e){return u(e.results,1)[0]})}function b(e,t){return y(e,t,"base_objs")}var w={transferObjs:function(e,t){var n=this;return scrivito.Promise.all(h.default.map(e,function(e){return n.transferObj(e,t).catch(function(e){if(e instanceof k)return e;throw e})})).then(function(e){return h.default.filter(e,function(e){return e instanceof k})})},transferObj:function(r,i){return scrivito.Promise.all([e(r),t(r,i),n(r,i)]).then(function(){return l(r,i)})}},k=function(e){function t(e,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.objId=e,r.reason=n,r}return s(t,e),t}(_.ScrivitoError);scrivito.ModificationTransfer=w,scrivito.ModificationTransferError=k}()},function(e,t,n){"use strict";var r=n(1);!function(){var e="obj_clipboard";scrivito.objClipboard={save:function(t){var n=scrivito.editingContext.selectedWorkspaceId,r=t.serializeAttributes();scrivito.storage.set(e,{workspaceId:n,serializedAttributes:r})},isPresent:function(){return scrivito.storage.hasKey(e)},get serializedAttributes(){return this._clipboard.serializedAttributes},get objClass(){return this.serializedAttributes._obj_class},get objId(){return this.serializedAttributes._id},get workspaceId(){return this._clipboard.workspaceId},clear:function(){scrivito.storage.remove(e)},get _clipboard(){if(!this.isPresent())throw new r.InternalError("Obj clipboard is empty");return scrivito.storage.get(e)}}}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(){return scrivito.storage.get(t.storageKey)||[]}var t={get storageKey(){return"obj_class_selection.used_classes"},store:function(t){var n=e();n.unshift(t),n=i.default.uniq(n),n=i.default.take(n,200),scrivito.storage.set(this.storageKey,n)},recent:function(t){var n=i.default.intersection(e(),t);return i.default.take(n,5)}};scrivito.ObjCreationHistory=t}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i);!function(){o.default.extend(scrivito,{oncePerFrame:function(e){var t=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=t;t=i,a||scrivito.requestAnimationFrame(function(){e.apply(void 0,r(t)),t=!1})}},requestAnimationFrame:function(e){window.requestAnimationFrame(e)}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(33),o=r(i),a=n(0),s=r(a);!function(){function e(e){scrivito.toLegacyObj(e).then(function(e){if(e.is_binary()&&(e.is_edited()||e.is_new()))return scrivito.resourceDialog.open(e);var t=void 0,n={};if(e.is_binary())t="/__scrivito/resource_details/"+e.id(),n.return_to=document.URL;else{var r=(0,o.default)(scrivito.path_for_id(e.id()));r.path(""+scrivito.root_path()+r),t=r.normalizePath().toString()}return e.is_deleted()&&(n._scrivito_display_mode="diff"),s.default.isEmpty(n)||(t+="?"+$.param(n)),scrivito.withSavingOverlay(scrivito.redirect_to(t))})}scrivito.openObj=e}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(1);!function(){var e="devices.current",t={},n={get all(){return["mobile","tablet","laptop","desktop"]},get current(){return scrivito.storage.get(e)||"desktop"},set current(n){if(!i.default.contains(this.all,n))throw new o.InternalError('Unknown device "'+n+'"');scrivito.storage.set(e,n),i.default.map(t,function(e){return e(n)})},subscribeChange:function(e){var n=i.default.uniqueId("scrivito.devices.token");return t[n]=e,n},unsubscribeChange:function(e){delete t[e]},reset:function(){t={},scrivito.storage.remove(e)}};scrivito.PreviewDevice=n,scrivito.PreviewDevice.STORAGE_KEY=e}()},function(e,t,n){"use strict";var r=n(31);!function(){function e(e,t){var n=t.get(0);return o&&a.push(n),(0,r.render)(e,n)}function t(){o=!0}function n(){a.forEach(i),a=[]}function i(e){e&&(0,r.unmountComponentAtNode)(e)}var o=!1,a=[];scrivito.renderReactComponent=e,scrivito.trackRenderedComponents=t,scrivito.unmountAllComponents=n}()},function(e,t,n){"use strict";!function(){function e(e){var r=e.openSidebar,i=e.closeSidebar,o=new scrivito.Fsm("sidebar",{events:["open","close","mouseOver","willOpenTimeout","openTransitionFinished","mouseLeave","willCloseTimeout","closeTransitionFinished","hide","unhideAndClose","unhideAndDisable"],initialState:"isClosed",states:{isClosed:{open:{transitionTo:"isOpening",execute:["openSidebar"]},mouseOver:{transitionTo:"willOpen",execute:["setWillOpenTimeout"]}},willOpen:{open:{transitionTo:"isOpening",execute:["clearWillOpenTimeout","openSidebar"]},willOpenTimeout:{transitionTo:"isOpening",execute:["openSidebar"]},mouseLeave:{transitionTo:"isClosed",execute:["clearWillOpenTimeout"]}},isOpening:{openTransitionFinished:{transitionTo:"isOpen"}},isOpen:{mouseLeave:{transitionTo:"willClose",execute:["setWillCloseTimeout"]},close:{transitionTo:"isDisabled",execute:["closeSidebar"]}},willClose:{willCloseTimeout:{transitionTo:"isClosing",execute:["closeSidebar"]},mouseOver:{transitionTo:"isOpen",execute:["clearWillCloseTimeout"]}},isClosing:{closeTransitionFinished:{transitionTo:"isClosed"}},isDisabled:{open:{transitionTo:"isOpening",execute:["openSidebar"]}},isHidden:{unhideAndClose:{transitionTo:"isClosed"},unhideAndDisable:{transitionTo:"isDisabled"}}},superStateEvents:{hide:{transitionTo:"isHidden",execute:["closeSidebar"]}},actions:{openSidebar:r,closeSidebar:i,setWillOpenTimeout:function(){o._willOpenTimeout=setTimeout(function(){return o.triggerEvent("willOpenTimeout")},t)},setWillCloseTimeout:function(){o._willCloseTimeout=setTimeout(function(){return o.triggerEvent("willCloseTimeout")},n)},clearWillOpenTimeout:function(){o._willOpenTimeout&&clearTimeout(o._willOpenTimeout)},clearWillCloseTimeout:function(){o._willCloseTimeout&&clearTimeout(o._willCloseTimeout)}}});return o}var t=500,n=500;scrivito.sidebarFsm=e,scrivito.sidebarFsm.OPEN_TIMEOUT=t,scrivito.sidebarFsm.CLOSE_TIMEOUT=n}()},function(e,t,n){"use strict";!function(){function e(e){return t+"."+e}var t="scrivito.v1";scrivito.storage={set:function(t,n){localStorage.setItem(e(t),JSON.stringify(n))},get:function(t){return JSON.parse(localStorage.getItem(e(t)))},hasKey:function(e){return!!this.get(e)},remove:function(t){localStorage.removeItem(e(t))}}}()},function(e,t,n){"use strict";var r=n(40),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={get loadTemplatesFromServer(){return!1},render:function(e,t){var n=void 0;return window.ScrivitoHandlebarsTemplates&&(n=ScrivitoHandlebarsTemplates[e]),window.__hbs__&&__hbs__[e]&&(n=Handlebars.compile(__hbs__[e])),n||$.error("Could not load template: "+e),n(t)}};Handlebars.registerHelper("translate",function(){return i.default.translate(arguments.length<=0?void 0:arguments[0])}),Handlebars.registerHelper("localizeDate",function(e){return i.default.localizeDate(e())}),Handlebars.registerHelper("localizeDateRelative",function(e){return i.default.localizeDateRelative(e())}),Handlebars.registerHelper("array_to_title",function(e){var t=e().map(function(e){return Handlebars.Utils.escapeExpression(e)});return new Handlebars.SafeString(t.join("&#13;"))}),Handlebars.registerHelper("render",function(t,n){return new Handlebars.SafeString(e.render(t,n))}),scrivito.Template=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(63),s=n(8),u=r(s),l=n(219),c=r(l);!function(){function e(e){return scrivito.Promise.all(o.default.map(e,t))}function t(e){return(0,u.default)(function(){return(0,a.titleForObj)(e)}).then(function(){return scrivito.legacy_obj.create_instance({id:e.id(),obj_class:e.objClass(),description_for_editor:(0,a.titleForObj)(e),modification:e.modification(),is_binary:(0,c.default)(e),last_changed:e.lastChanged(),has_conflict:e.hasConflicts()})})}scrivito.toLegacyObjs=e,scrivito.toLegacyObj=t}()},function(e,t,n){"use strict";var r=n(36),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e=!1,t={get isImmediateMode(){return e},set immediateMode(t){e=!!t},wrap:function(e,t){var n=this;return new scrivito.Promise(function(r){n.isImmediateMode?(t(),r()):(e.on("webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd",function(){return r()}),(0,i.default)(t))})}};scrivito.Transition=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{child_list_marker:{init:function(){scrivito.inplace_marker.define(function(e,t){scrivito.editingContext.isEditingMode()&&i.default.each(scrivito.childListElement.all(t),function(t){var n=scrivito.t("child_list_menu.description",t.obj().description_for_editor());e.activate_for(t,{description:n})})})}}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(15),o=r(i),a=n(0),s=r(a);!function(){s.default.extend(scrivito,{confirmation_dialog:function(e){return scrivito.confirmation_dialog.open(e)}}),s.default.extend(scrivito.confirmation_dialog,{open:function(e){var t=$(scrivito.Template.render("confirmation_dialog",s.default.extend({icon:"&#xf01d;",cancel_button_text:scrivito.t("cancel"),confirm_button_text:scrivito.t("confirm")},e||{})));$("#scrivito_editing").append(t);var n=new o.default,r=function(){return scrivito.dialog.close_with_transition(t),n.resolve(),!1},i=function(){return scrivito.dialog.close_with_transition(t),n.reject(),!1};return t.find(".scrivito_confirm").on("click",r),t.find(".scrivito_cancel").on("click",i),scrivito.dialog.open_and_center_with_transition(t),scrivito.withDialogBehaviour(t,n.promise,{enter:r,escape:i})},remove_all:function(){$(".scrivito_confirmation_dialog").remove()}})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e,t,i){var c=i.when_closed,d=void 0;i.mousePosition&&(d=u(e,i.mousePosition)),l=n(t),r(t,c),o(e,d),a(c),s(e,i.css_class)}function t(e){return l.remove(),l=null,e&&e(),!1}function n(e){return $(scrivito.Template.render("menu",{menu_items:i.default.map(scrivito.pattern_sort(e,scrivito.menu_order),function(e){return scrivito.menu_item.create_instance(e)})}))}function r(e,n){i.default.each(e,function(e){e.domId&&l.on("click","."+e.domId(),function(){return e.isEnabled()&&t(n),e.execute(),!1})})}function o(e,t){l.update_position=function(){var n=scrivito.CmsDocument.offset(e);t&&(n.left+=t.x*e.width(),n.top+=t.y*e.height()),l.offset(n)},t&&l.addClass("scrivito_precise_offset")}function a(e){l.find(".scrivito_menu_box_overlay").on("click",function(){return t(e),!1})}function s(e,t){var n=l.find(".scrivito_menu_box");t&&n.addClass("scrivito_"+t),l.appendTo($("#scrivito_editing")),l.update_position();var r=$(".iframe_wrapper"),i=e.offset().left-r.scrollLeft();r.width()-i<n.width()&&n.addClass("scrivito_left");var o=$(scrivito.applicationWindow.browserWindow()),a=n.height()+25,s=e.offset().top-o.scrollTop();a>o.height()-s&&a<s&&n.addClass("scrivito_top"),n.fadeIn(500)}function u(e,t){var n=t.x,r=t.y,i=e.offset(),o=n-i.left,a=r-i.top;return{x:o/e.width(),y:a/e.height()}}var l=void 0,c={init:function(){scrivito.Gui.on("document",function(e){var t=$(e.browserWindow());i.default.each(["resize","scroll","load"],function(e){t.on(e,function(){return scrivito.context_menu.update_position()})})})},toggle:function(n,r,i){l?t():e(n,r,i||{})},update_position:function(){l&&l.update_position()},close:function(){l&&t()}};scrivito.context_menu=c}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(15),o=r(i),a=n(0),s=r(a);!function(){s.default.extend(scrivito,{current_page_link_dialog:function(){var e=scrivito.editingContext.selectedWorkspaceId,t=scrivito.editingContext.uriWithEditingContextParams({workspaceId:e,displayMode:"view"}),n=$(scrivito.Template.render("current_page_link_dialog",{current_page_link:t})),r=new o.default;$("#scrivito_editing").append(n),n.find("input").focus().select();var i=function(){return scrivito.dialog.close_with_transition(n),r.resolve(),!1};n.find(".scrivito_done").on("click",i),scrivito.dialog.open_and_adjust_with_transition(n),scrivito.withDialogBehaviour(n,r.promise,{enter:i,escape:i})}})}()},function(e,t,n){"use strict";function r(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 i(e){return e&&e.__esModule?e:{default:e}}var o=n(15),a=i(o),s=n(1054),u=r(s),l=n(1055),c=r(l),d=n(0),f=i(d);!function(){f.default.extend(scrivito,{details_dialog:{open:function(e,t,n,r){var i=new a.default,o=$(scrivito.Template.render("details_dialog",{src:e,title:t,obj:n}));n&&c.create(o.find(".scrivito_obj_menu"),n,r),$("#details_dialog").append(o);var s=u.create(o.find(".scrivito_saving_indicator")),l=o.find(".scrivito_modal_body .scrivito_spinning"),d=o.find("iframe");d.on("load",function(){d.contents().find("body").hasClass("scrivito_dialog")&&!d.contents().get(0).defaultView.scrivito&&scrivito.AlertDialog.open('Missing required Scrivito assets in the details dialog. Are you sure your "scrivito_dialog.html.*" sources the Scrivito assets?'),l.hide();var e=d.contents().find("[data-scrivito-modal-size]").attr("data-scrivito-modal-size");f.default.contains(["small","medium","large"],e)&&(o.removeClass("scrivito_modal_medium"),o.addClass("scrivito_modal_"+e)),scrivito.dialog.adjust(o)});var p=function(){return s.destroy(),scrivito.dialog.close_without_transition(o),i.resolve(),!1};return o.find(".scrivito_cancel").on("click",p),scrivito.dialog.open_and_adjust_without_transition(o),scrivito.withDialogBehaviour(o,i.promise,{escape:p})}}})}()},function(e,t,n){"use strict";function r(e){var t=i+" .scrivito_saving_in_progress",n=i+" .scrivito_saving_done";e.append(scrivito.Template.render("saving_indicator"));var r=scrivito.WriteMonitor.on("start_write",function(){e.find(t).show(),e.find(n).hide()}),o=scrivito.WriteMonitor.on("end_write",function(r){if(!scrivito.WriteMonitor.isWriting()&&(e.find(t).hide(),!r)){var i=e.find(n);i.show(),scrivito.Transition.isImmediateMode||setTimeout(function(){return i.fadeOut(1e3)},3e3)}});return{destroy:function(){scrivito.WriteMonitor.off(r),scrivito.WriteMonitor.off(o),e.find(i).remove()},startWriteToken:r,endWriteToken:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.create=r;var i=".scrivito_saving_indicator"},function(e,t,n){"use strict";function r(e,t,n){e.append(scrivito.Template.render("obj_menu",{obj:t})),e.on("click",function(){e.addClass("active");var t=o.default.isFunction(n)?n():n;return scrivito.context_menu.toggle(e,t,{css_class:"obj_menu",when_closed:function(){return e.removeClass("active")}}),!1})}Object.defineProperty(t,"__esModule",{value:!0}),t.create=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";var r=n(217),i=function(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}(r),o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o);!function(){a.default.extend(scrivito,{dialog:{open_without_transition:function(e){e.addClass("scrivito_show")},open_and_adjust_without_transition:function(e){scrivito.dialog.open_without_transition(e),scrivito.dialog.adjust(e)},open_with_transition:function(e){return scrivito.Transition.wrap(e,function(){scrivito.dialog.open_without_transition(e)})},open_and_adjust_with_transition:function(e){return scrivito.dialog.open_with_transition(e).then(function(){scrivito.dialog.adjust(e)})},open_and_center_with_transition:function(e){return scrivito.dialog.open_with_transition(e).then(function(){scrivito.center(e)})},close_with_transition:function(e){scrivito.Transition.wrap(e,function(){e.removeClass("scrivito_show")}).then(function(){e.remove()})},close_without_transition:function(e){e.removeClass("scrivito_show"),e.remove()},adjust:function(e){i.invalidateAutoHeightFor(e),i.updateAutoHeightFor(e)}}}),$(window).on("resize",function(){a.default.each($(".adjust_dialog"),function(e){scrivito.dialog.adjust($(e))}),a.default.each($(".scrivito_center_dialog"),function(e){scrivito.center($(e))})})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{withDialogBehaviour:function(e,t,n){return scrivito.withDialogOverlay(e,scrivito.hotkeys.add(t,n))}})}()},function(e,t,n){"use strict";var r=n(106),i=function(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}(r);!function(){function e(e,t){var n=scrivito.dialogOverlay.create(e);return i.finally(t,function(){scrivito.dialogOverlay.destroy(n)})}var t={create:function(e){var t=$(".scrivito_overlay").last();t.removeClass("scrivito_show");var n=$(scrivito.Template.render("overlay"));return e.before(n),scrivito.Transition.wrap(n,function(){n.addClass("scrivito_show")}),{overlay:n,predecessor:t}},destroy:function(e){var t=e.overlay,n=e.predecessor;scrivito.Transition.wrap(t,function(){t.removeClass("scrivito_show")}).then(function(){t.remove(),n.length&&n.addClass("scrivito_show")})},removeAll:function(){$(".scrivito_overlay").remove()}};scrivito.withDialogOverlay=e,scrivito.dialogOverlay=t}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(1060),o=r(i),a=n(1061),s=r(a),u=n(0),l=r(u);!function(){function e(e,t,n){var r=t.left+e.outerWidth(),i=n.left,o=(i-r)/2,a=r+o,s=t.top+e.outerHeight();return{left:a,top:s+(n.top-s)/2}}var t=void 0,n={},r={init:function(){t=$('<div class="scrivito_dnd_cursor"></div>'),t.hide(),$("body").append(t),scrivito.Gui.on("document",function(e){if(scrivito.in_editable_view()){var t=e.dom_element().find("body");t.on("dragover",function(e){return scrivito.dragDrool.onDragover(e,t)}),t.on("drop",function(e){return scrivito.dragDrool.onDrop(e)})}})},onDragstart:function(e,t){var n=new s.default(e,t);this.setState({widgetDrag:n})},onDragover:function(e,t){if(n.widgetDrag){e.originalEvent.dataTransfer.dropEffect="move",e.preventDefault&&e.preventDefault();var r={x:e.originalEvent.pageX,y:e.originalEvent.pageY};this._updateCursorDebounced(r,t)}},onDrop:function(e){var t=n.widgetDrag;if(!t)return!1;var r=this._dropZone();return r&&t.canDropInto(r)&&t.dropInto(r,n.gesture.edgeName),this._cleanup(),!1},onDragend:function(){this._cleanup()},showRowCursor:function(){var r=n.widgetDrag,i=n.gesture.target,o=n.gesture.edgeName;t.height("0px"),t.width(i.parent().outerWidth());var a=scrivito.CmsDocument.offset(i);if("top"===o){var s=i.prev();if(s.length){var u=scrivito.CmsDocument.offset(s);a.top=e(s,u,a).top}}else{var l=i.next();if(l.length){var c=scrivito.CmsDocument.offset(l);a.top=e(i,a,c).top}else a.top+=i.outerHeight()}a.left=scrivito.CmsDocument.offset(i.parent()).left,t.offset(a),this._showCursor(i,r)},get state(){return n},setState:function(e){n=l.default.extend(n,e)},reset:function(){t&&t.remove(),n={}},_updateCursorDebounced:scrivito.oncePerFrame(function(){var e;(e=scrivito.dragDrool)._updateCursor.apply(e,arguments)}),_updateCursor:function(e,t){if(n.widgetDrag){var r=(0,o.default)(e,t);if(!$(r.target).length)return void scrivito.logError("Missing target!");var i=r.edgeName;scrivito.dragDrool.setState({gesture:r}),"top"===i||"bottom"===i?scrivito.dragDrool.showRowCursor():"left"===i||"right"===i||$.error("Unknown gesture: "+r)}},_cleanup:function(){t.hide(),this.setState({widgetDrag:null})},_dropZone:function(){if(n.gesture&&n.gesture.target)return n.gesture.target.get(0).scrivitoPrivateDropzone()},_showCursor:function(e,n){n.canDropInto(this._dropZone())?t.removeClass("scrivito_dnd_forbidden"):t.addClass("scrivito_dnd_forbidden"),n.isStructureWidget()?t.addClass("scrivito_dnd_structure"):t.removeClass("scrivito_dnd_structure"),e.hasClass("scrivito_empty_widget_field")&&t.height(e.height()),t.show()}};scrivito.dragDrool=r}()},function(e,t,n){"use strict";function r(e,t){var n=l(e,t),r=h(p(a.default.map(n,u))),i=[];a.default.each(n,function(e,t){var n=r[t];n&&(i=i.concat(g(e,n)))});var o=a.default.min(i,function(t){return f(e,t.rectangle)});return{target:o.target,edgeName:o.name}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=r;var o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=["top","bottom","right","left"],u=function(e){var t=$(e),n=t.offset(),r=t.outerHeight();return{x1:n.left,y1:n.top,x2:n.left+t.outerWidth(),y2:n.top+r}},l=function e(t,n){var r=c(n),i=d(t,r);return i?$(i).is("[data-scrivito-private-dropback]")?[i]:[i].concat(e(t,i)):[]},c=function(e){var t=$(e),n=t.find("[data-scrivito-private-dropzone]");return a.default.reject(n,function(e){var n=$(e).parent().closest("[data-scrivito-private-dropzone]").get(0);return n&&$.contains(t.get(0),n)})},d=function(e,t){if(t.length){var n=void 0,r=void 0;return a.default.each(t,function(t){if(n){var o=f(e,u(t));if(o<r)n=t,r=o;else if(o===r){var s=i([[n,r],[t,o]][a.default.random(1)],2);n=s[0],r=s[1]}}else n=t,r=f(e,u(t))}),n}},f=function(e,t){var n=Math.max(Math.min(e.x,t.x2),t.x1),r=Math.max(Math.min(e.y,t.y2),t.y1),i=e.x-n,o=e.y-r;return Math.sqrt(i*i+o*o)},p=function(e){var t=[],n=e[0];return 0===b(n)?[n]:(a.default.each(e,function(e){if(n=m(n,e),!(b(n)>0))return t;t.push(e)}),t)},h=function(e){var t=e[e.length-1];return a.default.each(e,function(e){t=m(t,e)}),_(v(t),e)},_=function e(t,n){var r=n[0],i=n[1];if(!i)return n;var o=(t.x-r.x1)/n.length,a=(t.y-r.y1)/n.length,s=(r.x2-t.x)/n.length,u=(r.y2-t.y)/n.length,l={x1:r.x1+Math.min(20,o),y1:r.y1+Math.min(20,a),x2:r.x2-Math.min(20,s),y2:r.y2-Math.min(20,u)};return[r].concat(e(t,[m(i,l)].concat(n.slice(2))))},m=function(e,t){return{x1:Math.min(t.x2,Math.max(t.x1,e.x1)),y1:Math.min(t.y2,Math.max(t.y1,e.y1)),x2:Math.min(t.x2,Math.max(t.x1,e.x2)),y2:Math.min(t.y2,Math.max(t.y1,e.y2))}},v=function(e){return{x:(e.x1+e.x2)/2,y:(e.y1+e.y2)/2}},g=function(e,t){var n=y(t),r=e.scrivitoPrivateDropzone().edges();a.default.each(a.default.difference(s,r),function(e){delete n[e]});var i=$(e);return a.default.map(n,function(e,t){return{rectangle:e,target:i,name:t}})},y=function(e){return{left:{x1:e.x1,y1:e.y1,x2:e.x1,y2:e.y2},right:{x1:e.x2,y1:e.y1,x2:e.x2,y2:e.y2},top:{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y1},bottom:{x1:e.x1,y1:e.y2,x2:e.x2,y2:e.y2}}},b=function(e){return(e.x2-e.x1)*(e.y2-e.y1)}},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1062),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t,n){r(this,e),this._widget=t,this._domElement=n}return i(e,[{key:"canDropInto",value:function(e){return e.canDrop(this._widget.objClass())}},{key:"isStructureWidget",value:function(){return(0,a.default)(this._widget.objClass())}},{key:"dropInto",value:function(e,t){e.drop(this._widget,t,this._domElement)}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=u.default.find(e);return!!t&&a.default.some(t.attributes,function(e){return"widgetlist"===e.type})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(0),a=r(o),s=n(58),u=r(s)},function(e,t,n){"use strict";!function(){var e=void 0;scrivito.dragScroll={SENSIVITY:30,SPEED:25,init:function(){var t=this;e=$("body").offset().top,scrivito.Gui.on("document",function(e){var n=e.dom_element();n.find("body").on("dragover",function(e){return t.dragover(e,n)})})},dragover:function(t,n){var r=t.originalEvent.pageY,i=n.scrollTop();if(r-i<this.SENSIVITY)return void n.scrollTop(i-this.SPEED);$(window).height()-r+i-e<this.SENSIVITY&&n.scrollTop(i+this.SPEED)}}}()},function(e,t,n){"use strict";var r=n(106),i=function(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}(r);!function(){function e(e,n){var r=t.create(e);return i.finally(n,function(){return r.remove()})}var t={create:function(e){var t=e.position(),n=$(scrivito.Template.render("element_overlay")).css({position:"absolute",top:0,left:t.left,width:e.width(),height:e.height()});return e.append(n),n}};scrivito.withElementOverlay=e,scrivito.ElementOverlay=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e,t){if(e.protocol===window.location.protocol&&e.host===window.location.host){if(!t)return"_self"}else if(""===t||"_self"===t||"_parent"===t||/^scrivito/.test(t))return"_top";return t}i.default.extend(scrivito,{external_links:{init:function(){scrivito.Gui.on("document",function(e){var t=e.dom_element(),n=t.find("head > base");n.length||(n=$("<base>"),t.find("head").prepend(n)),n.attr("target","_top")}),scrivito.on("content",function(t){var n=$(t);i.default.each(n.find("a").not('[data-scrivito-display-mode="editing"] [data-scrivito-field-type="html"] a'),function(t){var n=$(t),r=e(t,n.attr("target"));n.attr("target",r)}),i.default.each(n.find("form").not('[data-scrivito-display-mode="editing"] [data-scrivito-field-type="html"] form'),function(t){var n=$(t),r=document.createElement("a");r.href=t.action;var i=e(r,n.attr("target"));n.attr("target",i)})})}}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(3),a=r(o),s=n(35),u=r(s),l=n(0),c=r(l),d=n(19),f=n(24),p=r(f),h=n(518);!function(){function e(e,i,o){return new scrivito.Promise(function(a){switch(e){case"binary":return a(t(i,o));case"link":return a(n(o));case"linklist":return a(r(o));case"reference":return a((0,h.createBinaryWithDefaults)(o))}})}function t(e,t){var n=e instanceof a.default?e:e.obj();return p.default.upload(t).intoId(n.id())}function n(e){return(0,h.createBinaryWithDefaults)(e).then(function(e){return new u.default({obj:e})})}function r(e){return(0,h.createBinaryWithDefaults)(e).then(function(e){return[new u.default({obj:e})]})}scrivito.fileDrop={init:function(){var e=this;scrivito.on("content",function(t){scrivito.in_editable_view()&&c.default.each($(t).find("\n [data-scrivito-field-type=binary],\n img[data-scrivito-field-type=link],\n img[data-scrivito-field-type=linklist],\n img[data-scrivito-field-type=reference]\n "),function(t){var n=$(t);n.on("dragenter",function(){return e.onDragenter(n),!1}),n.on("dragleave",function(){return e.onDragleave(n),!1}),n.on("drop",function(t){return e.onDrop(n,t.originalEvent.dataTransfer),!1})})})},onDragenter:function(e){e.addClass("scrivito_file_dragover");var t=e.data("scrivito-dragenter-counter")||0;t+=1,e.data("scrivito-dragenter-counter",t)},onDragleave:function(e){var t=e.data("scrivito-dragenter-counter");t-=1,e.data("scrivito-dragenter-counter",t),0===t&&e.removeClass("scrivito_file_dragover")},onDrop:function(e,t){if(t.files&&1===t.files.length){var n=scrivito.cms_element.from_dom_element(e);e.addClass("scrivito_element_overlay");var r=(0,d.camelCase)(n.field_name());this.save(n.field_type(),r,n.container(),t.files[0]).then(function(){return e.scrivito("reload")})}e.removeClass("scrivito_file_dragover")},save:function(t,n,r,o){return e(t,r,o).then(function(e){return r.update(i({},n,[e,[t]])),r.finishSaving()})}}}()},function(e,t,n){"use strict";var r=n(15),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={open:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=$(e),r=void 0;n.is("[name=scrivito_application]")||(r=n.closest("#scrivito_editing > div"));var o=$(scrivito.Template.render("iframe_dialog",{color:t.color,confirm:t.confirm||scrivito.t("confirm"),cancel:t.cancel||scrivito.t("cancel"),disable_confirm:!1===t.confirm,disable_cancel:!1===t.cancel}));$("#scrivito_editing").append(o);var a=o.find(".scrivito_modal_body"),s=new i.default,u=function(){return scrivito.dialog.close_without_transition(o),s.resolve(),!1},l=function(){return scrivito.dialog.close_without_transition(o),s.reject(),!1};o.find(".scrivito_confirm").on("click",u),o.find(".scrivito_cancel").on("click",l),scrivito.withDialogBehaviour(o,s.promise,{enter:u,escape:l}),scrivito.dialog.open_and_adjust_without_transition(o),scrivito.restore_styles_afterwards(s.promise,n),n.css("z-index",this.zIndex(o)+1),r?(scrivito.restore_styles_afterwards(s.promise,r),r.addClass("scrivito_dialog_mode")):n.attr("class","");var c=function(){s.isPending()&&(n.width(a.width()),n.height(a.height()),n.offset(a.offset()))};return $(window).on("resize",c),c(),{when_open:scrivito.Promise.resolve(a),when_closed:s.promise}},zIndex:function(e){return parseInt(e.css("z-index"),10)}};scrivito.IframeDialog=e}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e=[];i.default.extend(scrivito,{inplace_marker:{init:function(){scrivito.on("content",function(e){scrivito.inplace_marker.refresh(scrivito.CmsDocument.from($(e)).dom_element())})},define:function(t){e.push(t)},refresh:function(t){scrivito.editingContext.isViewMode()||(t.find(".scrivito_editing_marker").remove(),i.default.each(e,function(e){e(a,t)}),scrivito.context_menu.update_position())},are_overlapping:function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.left<=r.right&&r.left<=n.right&&n.top<=r.bottom&&r.top<=n.bottom},reset_callbacks:function(){e=[]}}});var t=function(e){var t=$($(e).closest("body")).find(".scrivito_editing_marker").not(e),n=i.default.filter(t,function(t){return scrivito.inplace_marker.are_overlapping(e,t)});n.length&&scrivito.warn.apply(null,[scrivito.t("inplace_marker.overlapping"),e].concat(n))},n=function(e){e.addClass("scrivito_active scrivito_entered");var t=setTimeout(function(){e.removeClass("scrivito_entered")},2e3);e.data("scrivito-entered-timer",t)},r=function(e){e.find(".scrivito_active").removeClass("scrivito_active"),e.find(".scrivito_entered").removeClass("scrivito_entered").each(function(){clearTimeout($(this).data("scrivito-entered-timer"))})},o=function(e){if(!e.data("scrivito-highlightable")){e.data("scrivito-highlightable",!0);var t=scrivito.CmsDocument.from(e).dom_element();e.on("mouseenter",function(i){$(i.target).closest(":data(scrivito-highlightable)").is(e)&&(r(t),n(e))}),e.on("mouseleave",function(e){r(t);var i=$(e.relatedTarget).closest(":data(scrivito-highlightable)");i.length&&n(i)})}},a={activate_for:function(e,n){var r=$(scrivito.Template.render("inplace_marker",n||{}));r.on("click",function(){return scrivito.isDevelopmentMode&&t(r.get(0)),scrivito.context_menu.toggle(r,e.menu()),!1});var i=e.dom_element();r.prependTo(i),o(i)}}}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{menu_item:{create_instance:function(n){return n.execute?e(n):n.render?n:t(n)}}});var e=function(e){var t=e.icon(),n="menu_item/icon";0===t.indexOf("&")?n+="_hex":/^scrivito_icon_/.test(t)||(n+="_sci");var r=function(){return scrivito.Template.render("menu_item",{domId:e.domId(),title:e.title(),icon:scrivito.Template.render(n,{icon:t}),tooltip:e.tooltip(),isDisabled:e.isDisabled(),isEnabled:e.isEnabled(),reasonForBeingDisabled:e.reasonForBeingDisabled()})};return{render:function(){if(e.isPresent()){var t;if(e.needsUpdate()){var n=i.default.uniqueId(e.domId());t=scrivito.Template.render("menu_item/spinner",{id:n}),e.update().then(function(){$("#"+n).replaceWith(r())})}else t=r();return t}}}},t=function(e){return{render:function(){return scrivito.Template.render("menu_item/separator",e)}}}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(345),s=r(a);!function(){var e={init:function(){scrivito.on("content",function(e){scrivito.editingContext.isEditingMode()&&o.default.each(scrivito.widgetElement.all($(e)),function(e){scrivito.optionMarker.create(e,"top"),scrivito.optionMarker.create(e,"bottom")})})},create:function(e,t){var n=$(scrivito.Template.render("option_marker",{position:t,always_visible:scrivito.optionMarker.always_visible}));n.appendTo(e.dom_element()),n.on("click",function(){var n=e.basicWidget();return(0,s.default)(n,t),!1})}};scrivito.optionMarker=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(1072),o=r(i),a=n(1073),s=r(a),u=n(1074),l=r(u);!function(){scrivito.resourceDialog={init:function(e){if(e.obj){var t=scrivito.legacy_obj.create_instance(e.obj);scrivito.Gui.on("open",function(){scrivito.resourceDialog.open(t,e.return_to).then(function(){return scrivito.withSavingOverlay(scrivito.redirect_to(e.return_to))})})}},open:function(e,t){var n=scrivito.t("resource_dialog.title",e.description_for_editor());return scrivito.details_dialog.open(e.details_src(),n,e,[scrivito.revert_resource_command(e),(0,l.default)(e,"resource_dialog.commands.restore_obj"),(0,s.default)(e,"resource_dialog.commands.mark_resolved_obj"),(0,o.default)(e,"resource",t||scrivito.path_for_id(scrivito.applicationDocument().pageId()))])}}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page",n=arguments[2];return new p.default({id:"scrivito.sdk.delete_obj",title:scrivito.t("commands.delete_obj.title",scrivito.t("models."+t+".name")),icon:"&#xf018;",disabled:function(){return scrivito.editingContext.isMutable()?e.has_children()?scrivito.t("commands.delete_obj.has_children"):void 0:scrivito.t("commands.delete_obj.published_workspace")},execute:function(){scrivito.ConfirmDeleteDialog.open(e.id()).then(function(t){t&&scrivito.withSavingOverlay(o(e,n).then(a))})}})}function o(e,t){return(0,_.default)(function(){return d.default.get(e.id())}).then(function(e){return s(e,t).then(function(t){return e.destroy(),e.finishSaving().then(function(){return t})})})}function a(e){var t=(0,l.default)(e);return t.path(scrivito.root_path()+t.path()),scrivito.redirect_to(t.normalizePath().toString())}function s(e,t){return t?scrivito.Promise.resolve(t):(0,_.default)(function(){return e.parent()}).then(function(e){return scrivito.path_for_id(e.id())}).catch(function(){return"/"})}Object.defineProperty(t,"__esModule",{value:!0});var u=n(33),l=r(u),c=n(3),d=r(c),f=n(17),p=r(f),h=n(8),_=r(h);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commands.mark_resolved_obj";return new c.default({id:"scrivito.sdk.mark_resolved_obj",title:scrivito.t(t+".title"),icon:"&#xf124;",present:function(){return e.has_conflict()},execute:function(){o(t).then(function(){return scrivito.withSavingOverlay(a(e.id()).then(scrivito.applicationWindow.reload))})}})}function o(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.mark_resolved_obj.dialog.title"),description:scrivito.t(e+".dialog.description"),icon:"&#xf124;",color:"red",confirm_button_text:scrivito.t("commands.mark_resolved_obj.dialog.confirm"),confirm_button_color:"red"})}function a(e){return(0,f.default)(function(){return u.default.get(e)}).then(function(e){return e.markResolvedAsync()})}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),u=r(s),l=n(17),c=r(l),d=n(8),f=r(d);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commands.restore_obj";return new c.default({id:"scrivito.sdk.restore_obj",title:scrivito.t(t+".title"),icon:"&#xf032;",present:function(){return e&&e.is_deleted()},execute:function(){var t=a.default.getIncludingDeleted(e.id()),n=u.restoreObj(t.objData);scrivito.withSavingOverlay(n.then(function(){return scrivito.reload()}))}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),s=n(128),u=function(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}(s),l=n(17),c=r(l);t.default=i},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(106),a=function(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}(o);!function(){var e=void 0;i.default.extend(scrivito,{withSavingOverlay:function(e){return scrivito.savingOverlay.show(),i.default.isFunction(e.always)?e.always(function(){return scrivito.savingOverlay.hide()}):(a.finally(e,scrivito.savingOverlay.hide),e)},savingOverlay:{show:function(){e||(e=$(scrivito.Template.render("saving_overlay")),$("#scrivito_editing").append(e)),scrivito.Transition.wrap(e,function(){e&&e.addClass("scrivito_show")})},hide:function(){e&&(e.remove(),e=null)},removeAll:function(){$(".scrivito_saving_overlay").remove(),e=null},isPresent:function(){return!!e}}})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{widget_marker:{init:function(){scrivito.inplace_marker.define(function(t,n){if(scrivito.editingContext.isMutable()){var r=scrivito.WidgetlistFieldElement.all(n);i.default.each(r,function(n){i.default.each(n.widgetElements(),function(n){var r=n.widget().is_modified()||n.widget().is_placement_modified();(scrivito.editingContext.isEditingMode()||scrivito.editingContext.isDiffMode()&&r)&&(n.hasWidgetlist()&&n.dom_element().attr("data-scrivito-private-structure-widget",!0),t.activate_for(n,e(n)))})})}})}}});var e=function(e){var t={};if(e.hasWidgetlist()&&(t.icon="scrivito_icon_structure_widget"),scrivito.editingContext.isDiffMode()){var n,r=e.widget().modification(),i=e.widget().placement_modification();switch(r){case"new":n="widget_is_new",t.icon="scrivito_icon_inv_plus";break;case"deleted":n="widget_is_deleted",t.icon="scrivito_icon_trash";break;case"edited":switch(t.icon="scrivito_icon_edited",i){case"new":n="widget_is_edited_and_dragged_here",t.css_classes="scrivito_widget_moved_icon";break;case"deleted":n="widget_is_edited_and_dragged_away",t.css_classes="scrivito_widget_moved_icon";break;default:n="widget_is_edited"}break;default:switch(t.icon="scrivito_icon_moved",i){case"new":n="widget_is_dragged_here";break;case"deleted":n="widget_is_dragged_away"}}n&&(t.tooltip=scrivito.t("widget_marker."+n))}return t.description=e.widget().description_for_editor(),t}}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e){var n=function(){if(!e.is("[data-scrivito-private-reloading]")){e.attr("data-scrivito-private-reloading",!0);var n=scrivito.cms_element.from_dom_element(e);t.reload(n)}};e.on("reload.scrivito",function(){return n(),!1})}var t={init:function(){scrivito.on("content",function(t){if(scrivito.in_editable_view()){var n=$(t);n.attr("data-scrivito-private-widget-id")&&e(n),i.default.each(n.find("[data-scrivito-private-widget-id]"),function(t){e($(t))})}})},reload:function(e){scrivito.withElementOverlay(e.dom_element(),e.fetchMarkup().then(function(t){var n=$(t);e.dom_element().replaceWith(n),scrivito.Gui.newContent(n)}))}};scrivito.WidgetReloading=t}()},function(e,t,n){"use strict";var r=n(30),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e="widget_clipboard";scrivito.widgetClipboard={saveWidget:function(t){scrivito.storage.set(e,{widgetAttributes:t.serializeAttributes(),objClass:t.objClass()})},isPresent:function(){return!!scrivito.storage.hasKey(e)},widget:function(){var t=scrivito.storage.get(e);if(t&&t.widgetAttributes)return i.default.newWithSerializedAttributes(t.widgetAttributes)},objClass:function(){var t=scrivito.storage.get(e);return t&&t.objClass},clear:function(){scrivito.storage.remove(e)}}}()},function(e,t,n){"use strict";!function(){function e(e){return scrivito.confirmation_dialog({title:scrivito.t("workflows.delete_workspace.dialog.title",e.titleForEditor),description:scrivito.t("workflows.delete_workspace.dialog.description"),icon:"&#xf018;",color:"red",confirm_button_text:scrivito.t("workflows.delete_workspace.dialog.confirm"),confirm_button_color:"red"})}function t(e){scrivito.withSavingOverlay(e.destroy().then(function(){if(e.id===scrivito.editingContext.selectedWorkspaceId)return scrivito.changeEditingContext({workspaceId:"published"})}))}scrivito.deleteWorkspace=function(n){e(n).then(function(){return t(n)})}}()},function(e,t,n){"use strict";var r=n(349),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e){return scrivito.confirmation_dialog({title:scrivito.t("workflows.publish_workspace.dialog.title",e.titleForEditor),description:scrivito.t("workflows.publish_workspace.dialog.description"),icon:"&#xf033;",color:"green",confirm_button_text:scrivito.t("workflows.publish_workspace.dialog.confirm"),confirm_button_color:"green"})}function t(e){return scrivito.withSavingOverlay(e.checkAndPublish().then(n))}function n(){return scrivito.changeEditingContext({workspaceId:"published"})}function r(){scrivito.confirmation_dialog({title:scrivito.t("workflows.publish_workspace.error_dialog.title"),description:scrivito.t("workflows.publish_workspace.error_dialog.description"),icon:"&#xf033;",confirm_button_text:scrivito.t("workflows.publish_workspace.error_dialog.confirm")}).then(function(){return i.default.open()})}function o(){scrivito.AlertDialog.open(scrivito.t("workflows.publish_workspace.alert.invalid_certificates"))}scrivito.publishWorkspace=function(n,i){e(n).then(function(){return t(i).catch(function(e){switch(e.type){case"check_failed":return r();case"outdated_certificates":return o()}})})}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return o().then(a).then(function(t){return t?s(e,t).then(function(t){return u(t,e)}):{isCancelled:!0}})}function o(){return scrivito.withSavingOverlay((0,m.default)(function(){return g.default.selected.otherWritableWorkspaces}))}function a(e){return(0,c.default)(e,"transfer_changes")}function s(e,t){var n=h.default.pluck(e,"objData");return scrivito.withSavingOverlay(scrivito.ModificationTransfer.transferObjs(n,t))}function u(e,t){var n=h.default.map(e,function(e){var n=e.reason,r=e.objId;return{reason:n,obj:h.default.find(t,function(e){return e.id()===r})}});return n.length&&f.open(n),{errors:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var l=n(574),c=r(l),d=n(1082),f=function(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}(d),p=n(0),h=r(p),_=n(8),m=r(_),v=n(59),g=r(v)},function(e,t,n){"use strict";function r(e){var t=o.default.pluck(e,"obj");scrivito.toLegacyObjs(t).then(function(t){var n=o.default.map(e,function(e){var n=e.reason,r=e.obj;return{reason:n,obj:o.default.find(t,function(e){return e.id()===r.id()})}});scrivito.AlertDialog.open(scrivito.t("transfer_errors_dialog.title"),{body:scrivito.Template.render("transfer_errors_dialog",{modified:o.default.pluck(o.default.where(n,{reason:"modified"}),"obj"),conflicting:o.default.pluck(o.default.where(n,{reason:"conflict"}),"obj")})})})}Object.defineProperty(t,"__esModule",{value:!0}),t.open=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(106),a=function(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}(o);!function(){var e={},t=0,n=0,r=!1,o={on:function(n,r){return void 0===e[n]&&(e[n]={}),t+=1,e[n][t]=r,t},off:function(t){i.default.each(e,function(e){delete e[t]})},isWriting:function(){return n>0},hasErrors:function(){return r},startWrite:function(){scrivito.WriteMonitor.isWriting()||i.default.invoke(e.start_write,"call"),n+=1,r=!1},endWrite:function(){n-=1,scrivito.WriteMonitor.isWriting()||scrivito.run_new_event(function(){scrivito.WriteMonitor.isWriting()||i.default.each(e.end_write,function(e){return e(r)})})},endWriteWhenDone:function(e){a.finally(e.catch(function(e){throw r=!0,e}),scrivito.WriteMonitor.endWrite)},trackChanges:function(e,t){var n=!1,r=!1,i=scrivito.WriteMonitor.on("start_write",function(){n=!0,r=!1}),o=scrivito.WriteMonitor.on("end_write",function(){r=!0});return e().then(function(){scrivito.WriteMonitor.off(i),scrivito.WriteMonitor.off(o),n&&(r?t():scrivito.withSavingOverlay(new scrivito.Promise(function(e){var n=scrivito.WriteMonitor.on("end_write",function(){scrivito.WriteMonitor.off(n),e(),t()})})))})},simulateChanges:function(){scrivito.WriteMonitor.startWrite(),scrivito.WriteMonitor.endWrite()},reset:function(){e={},t=0,n=0,r=!1}};scrivito.WriteMonitor=o}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(31),a=n(6),s=r(a),u=n(15),l=r(u),c=n(0),d=r(c),f=n(11),p=r(f);!function(){function e(){t&&t.length&&(0,o.unmountComponentAtNode)(t.get(0)),n.resolve()}var t=void 0,n=void 0,r=(0,p.default)({displayName:"scrivito.AlertDialog",statics:{open:function(r,o){return t=$("#alert_dialog"),n=new l.default,scrivito.withDialogBehaviour(t,n.promise,{enter:e,escape:e}),scrivito.renderReactComponent(React.createElement(scrivito.AlertDialog,i({message:r},o)),t),n.promise}},propTypes:{message:s.default.string.isRequired,body:s.default.string,color:s.default.string,icon:s.default.string},render:function(){var e=d.default.extend({color:"red",icon:"attention"},this.props),t=e.color,n=e.icon,r="alert_dialog scrivito_modal_prompt scrivito_center_dialog scrivito_"+t+" scrivito_show",i=void 0;return d.default.isEmpty(this.props.body)||(i=React.createElement("div",{className:"scrivito_modal_body",dangerouslySetInnerHTML:{__html:this.props.body}})),React.createElement("div",{className:r},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon scrivito_icon_"+n}),React.createElement("h3",{className:"scrivito_title"},this.props.message)),i,React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{href:"#",onClick:this._onCloseClick,className:"scrivito_button scrivito_close"},scrivito.t("ok"))))},_onCloseClick:function(t){t.preventDefault(),t.stopPropagation(),e()}});scrivito.AlertDialog=r}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(31),o=n(6),a=r(o),s=n(3),u=r(s),l=n(15),c=r(l),d=n(217),f=function(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}(d),p=n(1),h=n(63),_=n(104),m=n(122),v=r(m),g=n(219),y=r(g);!function(){function e(){n(),s.resolve(!0)}function t(){n(),s.resolve(!1)}function n(){o&&o.length&&((0,i.unmountComponentAtNode)(o.get(0)),o.remove())}function r(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=scrivito).t.apply(t,["confirm_delete_dialog."+e].concat(r))}var o=void 0,s=void 0;scrivito.ConfirmDeleteDialog=scrivito.legacyCreateConnectedComponent({statics:{open:function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!r.length)throw new p.ArgumentError("Missing id(s)");return o=$('<div id="confirm_delete_dialog"></div>').appendTo($("#scrivito_editing")),s=new c.default,scrivito.withDialogBehaviour(o,s.promise,{enter:e,escape:t}),scrivito.renderReactComponent(React.createElement(scrivito.ConfirmDeleteDialog,{objIds:r}),o),s.promise},close:function(){n()}},propTypes:{objIds:a.default.arrayOf(a.default.string).isRequired},componentDidMount:function(){this._updateHeight()},componentDidUpdate:function(){this._updateHeight()},render:function(){var e=this.props.objIds.map(function(e){return u.default.get(e)}),t=this._subjectName(e),n=this._title(e,t),r=function(){return(0,_.arrayFromIterable)(u.default.where("*","linksTo",e))};return React.createElement("div",{className:"scrivito_modal_prompt scrivito_center_dialog scrivito_red scrivito_show"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("h3",{className:"scrivito_title"},n)),React.createElement("div",{className:"scrivito_modal_body"},React.createElement(l,{objs:e,backlinks:r,subjectName:t,onUpdate:this._centerDialog})),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement(g,null),React.createElement(m,{backlinks:r})))},_updateHeight:function(){var e=this._findDOMNode().find(".scrivito_modal_body");f.updateAutoHeightFor(e)},_centerDialog:function(){scrivito.center(this._findDOMNode())},_findDOMNode:function(){return $((0,i.findDOMNode)(this))},_subjectName:function(e){if(e.length>1)return scrivito.t("models.obj.name.plural");var t=(0,y.default)(e[0])?"resource":"page";return scrivito.t("models."+t+".name")},_title:function(e,t){return 1===e.length?r("title",t):e.length>1?r("title.many_subjects",t):void 0}});var l=scrivito.legacyCreateConnectedComponent({propTypes:{objs:a.default.arrayOf(a.default.instanceOf(u.default)).isRequired,backlinks:a.default.func.isRequired,subjectName:a.default.string.isRequired,onUpdate:a.default.func.isRequired},componentDidMount:function(){this.props.onUpdate()},componentDidUpdate:function(){this.props.onUpdate()},shouldRenderLoaderError:!0,render:function(){var e=this;return React.createElement("div",null,React.createElement("p",null,this._modificationNotice()),React.createElement("p",null,this._backlinksNotice()),React.createElement("ul",null,this.props.backlinks().map(function(t){return React.createElement(d,{key:t.id(),backlink:t,onClick:e._openBacklink})})))},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)},_modificationNotice:function(){if(!(this.props.objs.length>1)){var e=this.props.objs[0];return e.isNew()?r("is_new",this.props.subjectName,this.props.subjectName):e.isEdited()?r("is_edited",this.props.subjectName):r("not_modified",this.props.subjectName)}},_backlinksNotice:function(){var e=this.props.backlinks().length,t=this.props.objs.length;return 1===t&&1===e?r("one_obj_to_delete.one_backlink",this.props.subjectName):1===t&&e>1?r("one_obj_to_delete.many_backlinks",e,this.props.subjectName):t>1&&1===e?r("many_objs_to_delete.one_backlink",this.props.subjectName):t>1&&e>1?r("many_objs_to_delete.many_backlinks",e,this.props.subjectName):void 0},_openBacklink:function(e){var t=this;o.hide(),(0,v.default)({selectionMode:"single",standAlone:!0,selection:[e.id()],disableDelete:!0}).then(function(){o.show(),t.forceUpdate()})}}),d=scrivito.legacyCreateConnectedComponent({propTypes:{backlink:a.default.instanceOf(u.default).isRequired,onClick:a.default.func.isRequired},shouldRenderLoaderError:!0,render:function(){return React.createElement("li",null,React.createElement("a",{href:"#",onClick:this._onClick},(0,h.titleForObj)(this.props.backlink)))},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)},_onClick:function(e){this.props.onClick(this.props.backlink),e.stopPropagation()}}),m=scrivito.legacyCreateConnectedComponent({propTypes:{backlinks:a.default.func.isRequired},render:function(){var e=r(this.props.backlinks().length?"confirm.has_backlinks":"confirm");return React.createElement("a",{className:"scrivito_button scrivito_red scrivito_confirm",onClick:this._onClick},e)},_scrivitoRenderWhileLoading:function(){return null},_onClick:function(t){t.preventDefault(),e()}}),g=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onClick},r("cancel"))},_onClick:function(e){e.preventDefault(),t()}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(31),a=n(0),s=r(a),u=n(6),l=r(u),c=n(11),d=r(c),f=n(76),p=r(f);!function(){function e(e){var t=e.icon,n=t;return 0===n.indexOf("&")?React.createElement("i",{className:"scrivito_icon",dangerouslySetInnerHTML:{__html:n}}):(/^scrivito_icon_/.test(n)||(n="scrivito_customer_icon sci_"+n),React.createElement("i",{className:"scrivito_icon "+n}))}var t=void 0,n=void 0,r=!1,a=(0,d.default)({displayName:"scrivito.ContextMenuWrapper",statics:{init:function(){scrivito.Gui.on("document",function(e){var t=$(e.browserWindow());s.default.each(["resize","scroll","load"],function(e){t.on(e,function(){r&&n.forceUpdate()})})}),scrivito.on("pageChange",function(){return a.close()})},open:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=$("#context_menu"),n=scrivito.renderReactComponent(React.createElement(a,i({$domElement:e,commands:r},o)),t)},close:function(){n&&n.close()}},getDefaultProps:function(){return{customClassName:""}},getInitialState:function(){return{orientationClassName:"",relativeOffset:this._computeRelativeOffset()}},componentDidMount:function(){r=!0},componentWillUnmount:function(){r=!1},render:function(){var e=!1,t=scrivito.CmsDocument.offset(this.props.$domElement);return this.props.mousePosition&&(e=!0,t.left+=this.state.relativeOffset.x*this.props.$domElement.width(),t.top+=this.state.relativeOffset.y*this.props.$domElement.height()),React.createElement(u,i({},t,{hasPreciseOffset:e,close:this.close,commands:this.props.commands,className:this._contextMenuClassName(),componentDidUpdate:this._updateOrientationClassName}))},close:function(){(0,o.unmountComponentAtNode)(t.get(0)),n=null,this.props.whenClosed&&this.props.whenClosed()},_contextMenuClassName:function(){var e=this.props.customClassName;return this.state.orientationClassName&&(e+=" "+this.state.orientationClassName),e},_updateOrientationClassName:function(e){var t="";this._shouldAlignLeft(e)&&(t+=" scrivito_left"),this._shouldAlignTop(e)&&(t+=" scrivito_top"),t!==this.state.orientationClassName&&this.setState({orientationClassName:t})},_shouldAlignLeft:function(e){var t=$(".iframe_wrapper"),n=this.props.$domElement.offset().left-t.scrollLeft();return t.width()-n<e.clientWidth},_shouldAlignTop:function(e){var t=$(scrivito.applicationWindow.browserWindow()),n=e.clientHeight+25,r=void 0;if(this.props.mousePosition){r=scrivito.CmsDocument.offset(this.props.$domElement).top+this.state.relativeOffset.y*this.props.$domElement.height()-$(".iframe_wrapper").offset().top}else r=this.props.$domElement.offset().top-t.scrollTop();var i=t.height()-r;return n<r&&n>i},_computeRelativeOffset:function(){var e={x:0,y:0};if(!this.props.mousePosition)return e;var t=this.props.$domElement.offset(),n=this.props.mousePosition.x-t.left,r=this.props.mousePosition.y-t.top,i=this.props.$domElement.width();i&&(e.x=n/i);var o=this.props.$domElement.height();return o&&(e.y=r/o),e}}),u=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.ContextMenu",propTypes:{top:l.default.number.isRequired,left:l.default.number.isRequired,close:l.default.func.isRequired,className:l.default.string,hasPreciseOffset:l.default.bool.isRequired,componentDidUpdate:l.default.func.isRequired},componentDidMount:function(){this._menuBox&&this.props.componentDidUpdate(this._menuBox)},componentDidUpdate:function(){this._menuBox&&this.props.componentDidUpdate(this._menuBox)},render:function(){var e=this,t="scrivito_menu_box jsx visible",n="scrivito_editing_marker_menu jsx",r=scrivito.pattern_sort(this.props.commands,scrivito.menu_order);return this.props.className&&(t+=" "+this.props.className),this.props.hasPreciseOffset&&(n+=" scrivito_precise_offset"),React.createElement("div",{className:n,style:{top:this.props.top,left:this.props.left}},React.createElement("div",{className:"scrivito_menu_box_overlay",onClick:this.props.close}),React.createElement("ul",{className:t,ref:function(t){return e._menuBox=t}},r.map(function(t){return React.createElement(c,{key:t.id(),command:t,beforeExecute:e.props.close})})))}}),c=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.MenuItem",propTypes:{command:l.default.object.isRequired},render:function(){return this.props.command.execute?this.props.command.isPresent()?React.createElement("li",{className:this._className(),title:this._title(),onClick:this._onClick},React.createElement("span",null,React.createElement(e,{icon:this.props.command.icon()}),this.props.command.title())):null:React.createElement("li",{className:"scrivito_menu_separator"},React.createElement("span",null,this.props.command.title()))},_className:function(){var e="scrivito_menu_item "+this.props.command.domId();return this.props.command.isDisabled()&&(e+=" scrivito_disabled"),e},_title:function(){return this.props.command.isEnabled()?this.props.command.tooltip():this.props.command.reasonForBeingDisabled()},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.command.isEnabled()&&(this.props.beforeExecute(),this.props.command.execute())}});e.displayName="scrivito.MenuItem.Icon",e.propTypes={icon:l.default.string.isRequired},scrivito.ContextMenu=(0,p.default)(a)}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(20),o=r(i),a=n(31),s=n(6),u=r(s),l=n(11),c=r(l),d=n(1088);!function(){function e(e){return o.default.createElement(d.TransitionGroup,{},o.default.Children.map(e.children,function(t){return o.default.createElement(s,e,t)}))}function t(e,t){i?setTimeout(e,t):e()}function n(){i=!0}function r(){i=!1}var i=!0;e.propTypes={children:u.default.element};var s=(0,c.default)({propTypes:{children:u.default.element,transitionName:u.default.string.isRequired,transitionEnterTimeout:u.default.number.isRequired,transitionLeaveTimeout:u.default.number.isRequired,onEnter:u.default.func.isRequired,onLeave:u.default.func.isRequired},componentWillEnter:function(e){var t=this.props.transitionName,n=t+"-enter",r=this.props,i=r.transitionEnterTimeout,o=r.onEnter;this._transition(n,i,e,o)},componentWillLeave:function(e){var t=this.props.transitionName,n=t+"-leave",r=this.props,i=r.transitionLeaveTimeout,o=r.onLeave;this._transition(n,i,e,o)},render:function(){return this.props.children},_transition:function(e,n,r,i){var o=$((0,a.findDOMNode)(this)),s=e+"-active";t(function(){o.removeClass(e),o.removeClass(s),i(),r()},n),t(function(){return o.addClass(s)},17),o.addClass(e)}});scrivito.CSSTransitionGroup=e,scrivito.CSSTransitionGroup.enableTimeouts=n,scrivito.CSSTransitionGroup.disableTimeouts=r}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(1089),o=r(i),a=n(575),s=r(a);e.exports={TransitionGroup:s.default,CSSTransitionGroup:o.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(20),l=r(u),c=n(6),d=r(c),f=n(575),p=r(f),h=n(1093),_=r(h),m=n(577),v=(m.nameShape.isRequired,d.default.bool,d.default.bool,d.default.bool,(0,m.transitionTimeout)("Appear"),(0,m.transitionTimeout)("Enter"),(0,m.transitionTimeout)("Leave"),{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}),g=function(e){function t(){var n,r,a;i(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=o(this,e.call.apply(e,[this].concat(u))),r._wrapChild=function(e){return l.default.createElement(_.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},a=n,o(r,a)}return a(t,e),t.prototype.render=function(){return l.default.createElement(p.default,s({},this.props,{childFactory:this._wrapChild}))},t}(l.default.Component);g.displayName="CSSTransitionGroup",g.propTypes={},g.defaultProps=v,t.default=g,e.exports=t.default},function(e,t){e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter(function(e){return null!=e}),0!==t.length)return 1===t.length?t[0]:t.reduce(function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}})}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){if(!e)return e;var t={};return o.Children.map(e,function(e){return e}).forEach(function(e){t[e.key]=e}),t}function i(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=i;var o=n(20)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){return k.length?k.forEach(function(n){return e.addEventListener(n,t,!1)}):setTimeout(t,0),function(){k.length&&k.forEach(function(n){return e.removeEventListener(n,t,!1)})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(1094),c=r(l),d=n(1096),f=r(d),p=n(1097),h=r(p),_=n(1098),m=n(20),v=r(m),g=n(6),y=r(g),b=n(31),w=n(577),k=[];_.transitionEnd&&k.push(_.transitionEnd),_.animationEnd&&k.push(_.animationEnd);var M=(y.default.node,w.nameShape.isRequired,y.default.bool,y.default.bool,y.default.bool,y.default.number,y.default.number,y.default.number,function(e){function t(){var n,r,a;i(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=o(this,e.call.apply(e,[this].concat(u))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},a=n,o(r,a)}return a(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,b.findDOMNode)(this);if(!r)return void(t&&t());var i=this.props.name[e]||this.props.name+"-"+e,o=this.props.name[e+"Active"]||i+"-active",a=null,u=void 0;(0,c.default)(r,i),this.queueClassAndNode(o,r);var l=function(e){e&&e.target!==r||(clearTimeout(a),u&&u(),(0,f.default)(r,i),(0,f.default)(r,o),u&&u(),t&&t())};n?(a=setTimeout(l,n),this.transitionTimeouts.push(a)):_.transitionEnd&&(u=s(r,l))},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,h.default)(function(){return n.flushClassNameAndNodeQueue()}))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(e){e.node.scrollTop,(0,c.default)(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=u({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,v.default.cloneElement(v.default.Children.only(this.props.children),e)},t}(v.default.Component));M.displayName="CSSTransitionGroupChild",M.propTypes={},t.default=M,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){e.classList?e.classList.add(t):(0,o.default)(e)||(e.className=e.className+" "+t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1095),o=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+e.className+" ").indexOf(" "+t+" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";e.exports=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}},function(e,t,n){"use strict";function r(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-d)),r=setTimeout(e,n);return d=t,r}Object.defineProperty(t,"__esModule",{value:!0});var i=n(576),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=["","webkit","moz","o","ms"],s="clearTimeout",u=r,l=void 0,c=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};o.default&&a.some(function(e){var t=c(e,"request");if(t in window)return s=c(e,"cancel"),u=function(e){return window[t](e)}});var d=(new Date).getTime();l=function(e){return u(e)},l.cancel=function(e){window[s]&&"function"==typeof window[s]&&window[s](e)},t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r=n(576),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o="transform",a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,d=void 0,f=void 0,p=void 0,h=void 0,_=void 0,m=void 0;if(i.default){var v=function(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),r=void 0,i=void 0,o="",a=0;a<n.length;a++){var s=n[a];if(s+"TransitionProperty"in e){o="-"+s.toLowerCase(),r=t[s]("TransitionEnd"),i=t[s]("AnimationEnd");break}}return!r&&"transitionProperty"in e&&(r="transitionend"),!i&&"animationName"in e&&(i="animationend"),e=null,{animationEnd:i,transitionEnd:r,prefix:o}}();a=v.prefix,t.transitionEnd=s=v.transitionEnd,t.animationEnd=u=v.animationEnd,t.transform=o=a+"-"+o,t.transitionProperty=l=a+"-transition-property",t.transitionDuration=c=a+"-transition-duration",t.transitionDelay=f=a+"-transition-delay",t.transitionTiming=d=a+"-transition-timing-function",t.animationName=p=a+"-animation-name",t.animationDuration=h=a+"-animation-duration",t.animationTiming=_=a+"-animation-delay",t.animationDelay=m=a+"-animation-timing-function"}t.transform=o,t.transitionProperty=l,t.transitionTiming=d,t.transitionDelay=f,t.transitionDuration=c,t.transitionEnd=s,t.animationName=p,t.animationDuration=h,t.animationTiming=_,t.animationDelay=m,t.animationEnd=u,t.default={transform:o,end:s,property:l,timing:d,delay:f,duration:c}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(31),o=n(6),a=r(o),s=n(15),u=r(s),l=n(0),c=r(l),d=n(11),f=r(d);!function(){function e(e){var t=e.details;return React.createElement("div",{className:"scrivito_modal_body"},React.createElement("h4",null,scrivito.t("error_dialog.error_details"),":"),t.map(function(e,t){return React.createElement("div",{key:t},e)}))}function t(){r(),s.resolve(!0)}function n(){r(),s.resolve(!1)}function r(){o&&o.length&&(0,i.unmountComponentAtNode)(o.get(0))}var o=void 0,s=void 0,l=(0,f.default)({displayName:"scrivito.ErrorDialog",statics:{open:function(e,r){return o=$("#error_dialog"),s=new u.default,scrivito.withDialogBehaviour(o,s.promise,{enter:t,escape:n}),scrivito.renderReactComponent(React.createElement(scrivito.ErrorDialog,{message:e,details:r}),o),s.promise}},propTypes:{message:a.default.string.isRequired,details:a.default.arrayOf(a.default.string)},getInitialState:function(){return{showDetails:!1}},render:function(){var t=void 0,n=void 0;return this.props.details&&this.state.showDetails&&(t=React.createElement(e,{details:this.props.details})),c.default.isEmpty(this.props.details)||(n=React.createElement("a",{className:"scrivito_toggle_details",href:"#",onClick:this._onToggleClick},scrivito.t("error_dialog.toggle_details"))),React.createElement("div",{className:"error_dialog scrivito_modal_prompt scrivito_center_dialog scrivito_red scrivito_show"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon scrivito_icon_information"}),React.createElement("h3",{className:"scrivito_title"},this.props.message,n)),t,React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{href:"#",onClick:this._onCloseClick,className:"scrivito_button scrivito_close"},scrivito.t("close"))))},_onToggleClick:function(e){e.preventDefault(),e.stopPropagation(),this.setState({showDetails:!this.state.showDetails})},_onCloseClick:function(e){e.preventDefault(),e.stopPropagation(),n()}});e.displayName="scrivito.ErrorDialog.DialogBody",e.propTypes={details:a.default.arrayOf(a.default.string)},scrivito.ErrorDialog=l}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(20),o=r(i),a=n(6),s=r(a),u=n(350),l=n(11),c=r(l);!function(){var e=(0,c.default)({displayName:"scrivito.InfiniteScrollbars",propTypes:{isLoading:s.default.bool.isRequired,hasMore:s.default.bool.isRequired,loadMore:s.default.func.isRequired,children:s.default.element.isRequired,scrollbars:s.default.any},getDefaultProps:function(){return{scrollbars:u.Scrollbars}},componentDidMount:function(){this._fillContainer()},componentDidUpdate:function(){this._fillContainer()},render:function(){var e=this,t=o.default.Children.toArray(this.props.children);return this.props.isLoading&&t.push(o.default.createElement(scrivito.Loader,{key:"loader"})),o.default.createElement(this.props.scrollbars,{className:"infinite_scrollbars",ref:function(t){return e.container=t},onScrollFrame:this._onScrollFrame,children:t})},_fillContainer:function(){!this.props.hasMore||this.props.isLoading||this._isContainerFull()||this.props.loadMore()},_onScrollFrame:function(){this.props.hasMore&&!this.props.isLoading&&this._isViewportAtBottom()&&this.props.loadMore()},_isContainerFull:function(){var e=this.container.getValues();return e.scrollHeight>e.clientHeight},_isViewportAtBottom:function(){var e=this.container.getValues();return e.scrollTop>=e.scrollHeight-2*e.clientHeight}});scrivito.InfiniteScrollbars=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}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||"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);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 u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1102),d=r(c),f=n(578),p=r(f),h=n(20),_=n(6),m=r(_),v=n(1109),g=r(v),y=n(1110),b=r(y),w=n(1111),k=r(w),M=n(1112),C=r(M),E=n(1113),x=r(E),T=n(1114),D=n(1115),S=function(e){function t(e){var n;o(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];var u=a(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(i)));return u.getScrollLeft=u.getScrollLeft.bind(u),u.getScrollTop=u.getScrollTop.bind(u),u.getScrollWidth=u.getScrollWidth.bind(u),u.getScrollHeight=u.getScrollHeight.bind(u),u.getClientWidth=u.getClientWidth.bind(u),u.getClientHeight=u.getClientHeight.bind(u),u.getValues=u.getValues.bind(u),u.getThumbHorizontalWidth=u.getThumbHorizontalWidth.bind(u),u.getThumbVerticalHeight=u.getThumbVerticalHeight.bind(u),u.getScrollLeftForOffset=u.getScrollLeftForOffset.bind(u),u.getScrollTopForOffset=u.getScrollTopForOffset.bind(u),u.scrollLeft=u.scrollLeft.bind(u),u.scrollTop=u.scrollTop.bind(u),u.scrollToLeft=u.scrollToLeft.bind(u),u.scrollToTop=u.scrollToTop.bind(u),u.scrollToRight=u.scrollToRight.bind(u),u.scrollToBottom=u.scrollToBottom.bind(u),u.handleTrackMouseEnter=u.handleTrackMouseEnter.bind(u),u.handleTrackMouseLeave=u.handleTrackMouseLeave.bind(u),u.handleHorizontalTrackMouseDown=u.handleHorizontalTrackMouseDown.bind(u),u.handleVerticalTrackMouseDown=u.handleVerticalTrackMouseDown.bind(u),u.handleHorizontalThumbMouseDown=u.handleHorizontalThumbMouseDown.bind(u),u.handleVerticalThumbMouseDown=u.handleVerticalThumbMouseDown.bind(u),u.handleWindowResize=u.handleWindowResize.bind(u),u.handleScroll=u.handleScroll.bind(u),u.handleDrag=u.handleDrag.bind(u),u.handleDragEnd=u.handleDragEnd.bind(u),u.state={didMountUniversal:!1},u}return s(t,e),l(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,c.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r,o=e.scrollWidth,a=void 0===o?0:o,s=e.scrollHeight,u=void 0===s?0:s,l=e.clientWidth,c=void 0===l?0:l,d=e.clientHeight,f=void 0===d?0:d;return{left:n/(a-c)||0,top:i/(u-f)||0,scrollLeft:n,scrollTop:i,scrollWidth:a,scrollHeight:u,clientWidth:c,clientHeight:f}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,o=r.clientWidth,a=(0,C.default)(this.trackHorizontal),s=Math.ceil(o/i*a);return a===s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollHeight,o=r.clientHeight,a=(0,x.default)(this.trackVertical),s=Math.ceil(o/i*a);return a===s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,C.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,x.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,b.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,b.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,i=n.onScrollFrame;r&&r(e),this.update(function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(e)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect(),i=r.left,o=this.getThumbHorizontalWidth(),a=Math.abs(i-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect(),i=r.top,o=this.getThumbVerticalHeight(),a=Math.abs(i-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(a)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,i=t.getBoundingClientRect(),o=i.left;this.prevPageX=r-(n-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,i=t.getBoundingClientRect(),o=i.top;this.prevPageY=r-(n-o)}},{key:"setupDragging",value:function(){(0,p.default)(document.body,T.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=k.default}},{key:"teardownDragging",value:function(){(0,p.default)(document.body,T.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=this.trackHorizontal.getBoundingClientRect(),r=n.left,i=this.getThumbHorizontalWidth(),o=i-this.prevPageX,a=-r+t-o;this.view.scrollLeft=this.getScrollLeftForOffset(a)}if(this.prevPageY){var s=e.clientY,u=this.trackVertical.getBoundingClientRect(),l=u.top,c=this.getThumbVerticalHeight(),d=c-this.prevPageY,f=-l+s-d;this.view.scrollTop=this.getScrollTopForOffset(f)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,p.default)(this.trackHorizontal,{opacity:1}),(0,p.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,p.default)(e.trackHorizontal,{opacity:0}),(0,p.default)(e.trackVertical,{opacity:0})},t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&d.default.cancel(this.requestFrame),this.requestFrame=(0,d.default)(function(){t.requestFrame=void 0,e()})}},{key:"update",value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,i=this.getValues();if((0,b.default)()){var o=i.scrollLeft,a=i.clientWidth,s=i.scrollWidth,u=(0,C.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),c=o/(s-a)*(u-l),d={width:l,transform:"translateX("+c+"px)"},f=i.scrollTop,h=i.clientHeight,_=i.scrollHeight,m=(0,x.default)(this.trackVertical),v=this.getThumbVerticalHeight(),g=f/(_-h)*(m-v),y={height:v,transform:"translateY("+g+"px)"};if(r){var w={visibility:s>a?"visible":"hidden"},k={visibility:_>h?"visible":"hidden"};(0,p.default)(this.trackHorizontal,w),(0,p.default)(this.trackVertical,k)}(0,p.default)(this.thumbHorizontal,d),(0,p.default)(this.thumbVertical,y)}n&&n(i),"function"==typeof e&&e(i)}},{key:"render",value:function(){var e=this,t=(0,b.default)(),n=this.props,r=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),o=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,l=n.renderThumbVertical,c=n.tagName,d=(n.hideTracksWhenNotNeeded,n.autoHide),f=(n.autoHideTimeout,n.autoHideDuration),p=(n.thumbSize,n.thumbMinSize,n.universal),_=n.autoHeight,m=n.autoHeightMin,v=n.autoHeightMax,y=n.style,w=n.children,k=i(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),M=this.state.didMountUniversal,C=u({},T.containerStyleDefault,_&&u({},T.containerStyleAutoHeight,{minHeight:m,maxHeight:v}),y),E=u({},T.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},_&&u({},T.viewStyleAutoHeight,{minHeight:(0,g.default)(m)?"calc("+m+" + "+t+"px)":m+t,maxHeight:(0,g.default)(v)?"calc("+v+" + "+t+"px)":v+t}),_&&p&&!M&&{minHeight:m,maxHeight:v},p&&!M&&T.viewStyleUniversalInitial),x={transition:"opacity "+f+"ms",opacity:0},D=u({},T.trackHorizontalStyleDefault,d&&x,(!t||p&&!M)&&{display:"none"}),S=u({},T.trackVerticalStyleDefault,d&&x,(!t||p&&!M)&&{display:"none"});return(0,h.createElement)(c,u({},k,{style:C,ref:function(t){e.container=t}}),[(0,h.cloneElement)(r({style:E}),{key:"view",ref:function(t){e.view=t}},w),(0,h.cloneElement)(o({style:D}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,h.cloneElement)(s({style:T.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,h.cloneElement)(a({style:S}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,h.cloneElement)(l({style:T.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(h.Component);t.default=S,S.propTypes={onScroll:m.default.func,onScrollFrame:m.default.func,onScrollStart:m.default.func,onScrollStop:m.default.func,onUpdate:m.default.func,renderView:m.default.func,renderTrackHorizontal:m.default.func,renderTrackVertical:m.default.func,renderThumbHorizontal:m.default.func,renderThumbVertical:m.default.func,tagName:m.default.string,thumbSize:m.default.number,thumbMinSize:m.default.number,hideTracksWhenNotNeeded:m.default.bool,autoHide:m.default.bool,autoHideTimeout:m.default.number,autoHideDuration:m.default.number,autoHeight:m.default.bool,autoHeightMin:m.default.oneOfType([m.default.number,m.default.string]),autoHeightMax:m.default.oneOfType([m.default.number,m.default.string]),universal:m.default.bool,style:m.default.object,children:m.default.node},S.defaultProps={renderView:D.renderViewDefault,renderTrackHorizontal:D.renderTrackHorizontalDefault,renderTrackVertical:D.renderTrackVerticalDefault,renderThumbHorizontal:D.renderThumbHorizontalDefault,renderThumbVertical:D.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},function(e,t,n){(function(t){for(var r=n(1103),i="undefined"==typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],l=0;!s&&l<o.length;l++)s=i[o[l]+"Request"+a],u=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!s||!u){var c=0,d=0,f=[];s=function(e){if(0===f.length){var t=r(),n=Math.max(0,1e3/60-(t-c));c=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(){i.requestAnimationFrame=s,i.cancelAnimationFrame=u}}).call(t,n(51))},function(e,t,n){(function(t){(function(){var n,r,i;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-i)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},i=n()):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(t,n(79))},function(e,t){var n=null,r=["Webkit","Moz","O","ms"];e.exports=function(e){n||(n=document.createElement("div"));var t=n.style;if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),o=r.length;o>=0;o--){var a=r[o]+i;if(a in t)return a}return!1}},function(e,t,n){function r(e){return i(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}var i=n(1106);e.exports=r},function(e,t,n){function r(e){return i(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?" "+t:""}).trim()}var i=n(1107);e.exports=r},function(e,t){function n(e){return o.test(e)?e.toLowerCase():a.test(e)?(r(e)||e).toLowerCase():s.test(e)?i(e).toLowerCase():e.toLowerCase()}function r(e){return e.replace(u,function(e,t){return t?" "+t:""})}function i(e){return e.replace(l,function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")})}e.exports=n;var o=/\s/,a=/(_|-|\.|:)/,s=/([a-z][A-Z]|[A-Z][a-z])/,u=/[\W_]+(.|$)/g,l=/(.)([A-Z]+)/g},function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},function(e,t,n){"use strict";function r(e){return"string"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(){if(!1!==a)return a;if("undefined"!=typeof document){var e=document.createElement("div");(0,o.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),a=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else a=0;return a||0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(578),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=!1},function(e,t,n){"use strict";function r(){return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return d.default.createElement("div",e)}function o(e){var t=e.style,n=r(e,["style"]),i=l({},t,{right:2,bottom:2,left:2,borderRadius:3});return d.default.createElement("div",l({style:i},n))}function a(e){var t=e.style,n=r(e,["style"]),i=l({},t,{right:2,bottom:2,top:2,borderRadius:3});return d.default.createElement("div",l({style:i},n))}function s(e){var t=e.style,n=r(e,["style"]),i=l({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return d.default.createElement("div",l({style:i},n))}function u(e){var t=e.style,n=r(e,["style"]),i=l({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return d.default.createElement("div",l({style:i},n))}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.renderViewDefault=i,t.renderTrackHorizontalDefault=o,t.renderTrackVerticalDefault=a,t.renderThumbHorizontalDefault=s,t.renderThumbVerticalDefault=u;var c=n(20),d=function(e){return e&&e.__esModule?e:{default:e}}(c)},function(e,t,n){"use strict";var r=n(1117),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.Menubar",statics:{init:function(){scrivito.Gui.on("open",function(){scrivito.renderReactComponent(React.createElement(e,null),$("#menubar"))})}},render:function(){var e=this;return React.createElement("div",{id:"scrivito_menubar"},React.createElement(i.default,{showMenubar:this._unhide,toggleWorkspacesPanel:this._toggleWorkspacesPanel}),React.createElement(scrivito.Sidebar,{ref:function(t){return e.sidebar=t},hideMenubar:this._hide}))},_hide:function(){$("#scrivito_ui").addClass("scrivito_hide_ui")},_unhide:function(){$("#scrivito_ui").removeClass("scrivito_hide_ui"),this.sidebar.unhide()},_toggleWorkspacesPanel:function(){this.sidebar.toggleWorkspacesPanel()}});scrivito.Menubar=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(1118),s=r(a),u=n(1119),l=r(u),c=n(1121),d=r(c),f=n(1122),p=r(f),h=n(1123),_=r(h),m=scrivito.legacyCreateConnectedComponent({displayName:"Topbar",propTypes:{showMenubar:o.default.func.isRequired,toggleWorkspacesPanel:o.default.func.isRequired},render:function(){return React.createElement("div",{className:"scrivito_topbar"},React.createElement(v,{showMenubar:this.props.showMenubar}),React.createElement("div",{className:"scrivito_first_level"},React.createElement("div",{className:"scrivito_button_bar scrivito_app scrivito_no_hover"},React.createElement("span",{className:"scrivito_logo"})),React.createElement(l.default,null),React.createElement(p.default,{toggleWorkspacesPanel:this.props.toggleWorkspacesPanel}),React.createElement(s.default,null),React.createElement(_.default,null),React.createElement(d.default,null)))}}),v=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.ShowMenubar",propTypes:{showMenubar:o.default.func.isRequired},render:function(){var e=scrivito.t("topbar.show_menubar");return React.createElement("div",{className:"scrivito_toggle_ui scrivito_icon scrivito_icon_show_ui",title:e,onClick:this._onClick})},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.showMenubar()}});t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31),i=n(1),o=n(478),a=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.CurrentPageMenu",getInitialState:function(){return{isContextMenuOpen:!1}},render:function(){return React.createElement("div",{className:this._className(),title:this._title(),onClick:this._onClick},React.createElement("span",{className:"bar"}),React.createElement("span",{className:"bar"}),React.createElement("span",{className:"bar"}),React.createElement("i",{className:this._iconClassName()}))},_className:function(){var e="scrivito_current_page scrivito_button_bar scrivito_hamburger scrivito_right";return this.state.isContextMenuOpen&&(e+=" active"),e},_title:function(){if(this._isCurrentPageModified())return scrivito.t("topbar.current_page_menu.title.is_"+this._currentPageModification())},_iconClassName:function(){var e="scrivito_icon";return this._isCurrentPageModified()&&(e+=" scrivito_"+this._currentPageModification()),e},_onClick:function(e){e.preventDefault(),e.stopPropagation(),scrivito.ContextMenu.open($((0,r.findDOMNode)(this)),this._getCommands(),{customClassName:"scrivito_obj_menu",whenClosed:this._onContextMenuClosed}),this.setState({isContextMenuOpen:!0})},_getCommands:function(){return scrivito.applicationDocument().isCurrentPageStatic()?scrivito.applicationDocument().menu():(0,o.currentPageCommands)()},_isCurrentPageModified:function(){var e=this._getCurrentPage();return e&&e.isModified()},_currentPageModification:function(){var e=this._getCurrentPage();return e&&e.modification()},_getCurrentPage:function(){try{return scrivito.currentApplicationPage()}catch(e){if(e instanceof i.ResourceNotFoundError)return null;throw e}},_onContextMenuClosed:function(){this.setState({isContextMenuOpen:!1})}});t.default=a},function(e,t,n){"use strict";function r(e){var t=(0,a.classify)(e)+"Mode";return scrivito.legacyCreateConnectedComponent({displayName:"Topbar.DisplayModeSelector."+t,render:function(){return React.createElement("div",{className:this._className(),title:this._title(),onClick:this._onClick},React.createElement("span",{className:"scrivito_viewmode_icon"}),React.createElement("span",{className:"scrivito_viewmode_label"},scrivito.t("topbar.display_mode_selector."+e+"_mode")))},_className:function(){var t="scrivito_viewmode_"+e;return this._isSelected()&&(t+=" scrivito_selected"),this._reasonForBeingDisabled()&&(t+=" scrivito_disabled"),t},_title:function(){return this._isSelected()?scrivito.t("topbar.display_mode_selector.is_selected"):this._reasonForBeingDisabled()},_reasonForBeingDisabled:function(){return scrivito.editingContext.reasonForDisplayModeBeingDisabled(e)},_isSelected:function(){return scrivito.editingContext.displayMode===e},_isDisabled:function(){return!!this._reasonForBeingDisabled()},_onClick:function(t){t.preventDefault(),t.stopPropagation(),this._isSelected()||this._isDisabled()||(0,o.default)(e)}})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1120),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(19),s=n(47),u=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.DisplayModeSelector",render:function(){var e=void 0,t="scrivito_viewmodes_wrapper";return(0,s.useRailsEngine)()?e=React.createElement(d,null):t+=" scrivito_viewmodes_no_diff",React.createElement("div",{className:t},React.createElement("div",{className:this._className()},React.createElement("span",{className:"scrivito_viewmode_pill"}),React.createElement(l,null),React.createElement(c,null),e))},_className:function(){return"scrivito_viewmodes scrivito_viewmode_"+scrivito.editingContext.displayMode+"_active"}}),l=r("view"),c=r("editing"),d=r("diff");t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){o().then(function(t){t.isPublished()?a(t).then(function(e){return(0,l.default)(e,"view_mode")}).then(function(t){t&&s(e,t)}):s(e)})}function o(){return(0,d.default)(function(){return p.default.selected})}function a(e){return scrivito.withSavingOverlay((0,d.default)(function(){return e.otherWritableWorkspaces}))}function s(e,t){scrivito.withSavingOverlay(scrivito.changeEditingContext({displayMode:e,workspaceId:t}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var u=n(574),l=r(u),c=n(8),d=r(c),f=n(59),p=r(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SavingIndicator",getInitialState:function(){return{savingState:null}},componentDidMount:function(){this._startWriteToken=scrivito.WriteMonitor.on("start_write",this._onStartWrite),this._endWriteToken=scrivito.WriteMonitor.on("end_write",this._onEndWrite)},componentWillUnmount:function(){scrivito.WriteMonitor.off(this._startWriteToken),scrivito.WriteMonitor.off(this._endWriteToken)},render:function(){var e=void 0;switch(this.state.savingState){case"writeStarted":e=React.createElement("span",{className:"scrivito_saving_in_progress"},React.createElement("i",{className:"scrivito_icon scrivito_spinning"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.saving_indicator.write_started"))));break;case"writeEnded":e=React.createElement("span",{className:"scrivito_saving_done"},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.saving_indicator.write_ended"))))}return React.createElement("div",{id:"scrivito_menu_bar_saving_indicator"},React.createElement("span",{className:"scrivito_saving_state_bar"},e))},_onStartWrite:function(){this._hideTimeout&&(clearTimeout(this._hideTimeout),delete this._hideTimeout),this.setState({savingState:"writeStarted"})},_onEndWrite:function(e){var t=this;e?this.setState({savingState:null}):(this.setState({savingState:"writeEnded"}),this._hideTimeout=setTimeout(function(){return t.setState({savingState:null})},3e3))}});r.HIDE_TIMEOUT=3e3,t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(59),s=r(a),u=n(579),l=r(u),c=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SelectedWorkspace",propTypes:{toggleWorkspacesPanel:o.default.func.isRequired},render:function(){var e="scrivito_icon scrivito_icon_ws";return s.default.selected.isPublished()&&(e+="_published"),React.createElement("div",{className:"scrivito_button_bar selected_workspace",onClick:this._onClick},React.createElement("i",{className:e}),React.createElement(d,null),React.createElement("span",{className:"scrivito_button_label_small"},React.createElement(l.default,{workspace:s.default.selected})))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.toggleWorkspacesPanel()}}),d=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SelectedWorkspaceTitle",render:function(){return React.createElement("span",{className:"scrivito_button_label"},s.default.selected.titleForEditor)}});t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.Warning",render:function(){return scrivito.UiWarning.isPresent()?React.createElement("div",null,React.createElement("span",{className:"scrivito_menu_bar_warning",onClick:this._onClick},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.warning.message"))))):null},_onClick:function(e){e.preventDefault(),e.stopPropagation(),scrivito.AlertDialog.open(scrivito.t("topbar.warning.alert_message")),scrivito.UiWarning.clear()}});t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(11),s=r(a),u=n(6),l=r(u),c=n(1),d=n(1125),f=r(d),p=n(122),h=r(p),_=n(228),m=r(_);!function(){function e(e,t){return scrivito.legacyCreateConnectedComponent(o.default.extend({propTypes:{isActive:l.default.bool.isRequired,togglePanel:l.default.func.isRequired},shouldRenderLoaderError:!0,render:function(){return React.createElement("div",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this.props.togglePanel},React.createElement("i",{className:this.getIconClassName()}))},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)},_buttonClassName:function(){var t="scrivito_"+e+"_button scrivito_button_bar";return this.props.isActive&&(t+=" active"),t},_buttonHint:function(){return this.props.isActive?scrivito.t("sidebar."+e+"_button.hint.active"):scrivito.t("sidebar."+e+"_button.hint")}},t))}scrivito.Sidebar=(0,s.default)({displayName:"scrivito.Sidebar",propTypes:{hideMenubar:l.default.func.isRequired},statics:{countNotifications:function(){var e=0,t=scrivito.applicationDocument().page();return t&&(t.hasConflicts()&&(e+=1),e+=scrivito.editingContext.restrictionMessagesFor(t).length,e+=scrivito.editingContext.conflictingWorkspacesFor(t).length),e},createPanelButtonClass:e,reset:function(){scrivito.storage.remove("sidebar.activePanel")},getActivePanel:function(){var e=scrivito.storage.get("sidebar.activePanel");return e?e.activePanel:"workspaces"},storeActivePanel:function(e){scrivito.storage.set("sidebar.activePanel",{activePanel:e})}},getInitialState:function(){return{isPanelOpen:!1,activePanel:scrivito.Sidebar.getActivePanel()}},componentWillMount:function(){var e=this;this._fsm=scrivito.sidebarFsm({openSidebar:function(){return e.setState(o.default.extend(e._pendingState(),{isPanelOpen:!0}))},closeSidebar:function(){return e.setState(o.default.extend(e._pendingState(),{isPanelOpen:!1}))}})},componentDidMount:function(){$("#scrivito_ui").addClass("scrivito_sidebar_show_first_level"),this._updateUIOffset()},componentDidUpdate:function(){this._updateUIOffset()},render:function(){var e=this,r=void 0;return this.state.isPanelOpen&&(r=React.createElement(n,{key:"sidebarPanels",activePanel:this.state.activePanel})),React.createElement("div",{className:"scrivito_sidebar",onMouseOver:this._onMouseOver,onMouseLeave:this._onMouseLeave},React.createElement(t,{activePanel:this.state.activePanel,togglePanel:this.togglePanel,hideMenubar:this._hide}),React.createElement(scrivito.CSSTransitionGroup,{transitionName:"sidebar-panels",transitionEnterTimeout:500,transitionLeaveTimeout:300,onEnter:function(){return e._fsm.triggerEvent("openTransitionFinished")},onLeave:function(){return e._fsm.triggerEvent("closeTransitionFinished")}},r))},toggleWorkspacesPanel:function(){this.togglePanel("workspaces")},togglePanel:function(e){if(!e)throw(0,c.InternalError)("Missing panel name");scrivito.Sidebar.storeActivePanel(e),this.state.isPanelOpen?e===this.state.activePanel&&"isOpen"===this._fsm.currentState?(this._pendingActivePanel=null,this._fsm.triggerEvent("close")):this.setState({activePanel:e}):(this._pendingActivePanel=e,this._fsm.triggerEvent("open"))},unhide:function(){this.state.activePanel?this._fsm.triggerEvent("unhideAndClose"):this._fsm.triggerEvent("unhideAndDisable")},_onMouseOver:function(){this._fsm.triggerEvent("mouseOver")},_onMouseLeave:function(){this._fsm.triggerEvent("mouseLeave")},_updateUIOffset:function(){this.state.isPanelOpen?$("#scrivito_ui").addClass("scrivito_sidebar_show_second_level"):$("#scrivito_ui").removeClass("scrivito_sidebar_show_second_level")},_pendingState:function(){var e={};return void 0!==this._pendingActivePanel&&(e.activePanel=this._pendingActivePanel,delete this._pendingActivePanel),e},_hide:function(){this.props.hideMenubar(),this._fsm.triggerEvent("hide")}});var t=scrivito.legacyCreateConnectedComponent({propTypes:{activePanel:l.default.string,togglePanel:l.default.func.isRequired,hideMenubar:l.default.func.isRequired},render:function(){var e=this,t=void 0;return scrivito.enableSidebarDetails&&(t=React.createElement("div",null,React.createElement(r,{isActive:"details"===this.props.activePanel,togglePanel:function(){return e.props.togglePanel("details")}}),React.createElement("div",{className:"scrivito_separator_bar"}))),React.createElement("div",{className:"scrivito_first_level"},t,React.createElement(a,null),React.createElement("div",{className:"scrivito_separator_bar"}),React.createElement(i,{isActive:"workspaces"===this.props.activePanel,togglePanel:function(){return e.props.togglePanel("workspaces")}}),React.createElement(scrivito.Sidebar.NotificationsButton,{isActive:"notifications"===this.props.activePanel,togglePanel:function(){return e.props.togglePanel("notifications")}}),React.createElement("div",{className:"scrivito_separator_bar"}),React.createElement(u,{isActive:"devices"===this.props.activePanel,togglePanel:function(){return e.props.togglePanel("devices")}}),React.createElement(d,{hideMenubar:this.props.hideMenubar}))}}),n=scrivito.legacyCreateConnectedComponent({propTypes:{activePanel:l.default.string},render:function(){var e=void 0;return scrivito.enableSidebarDetails&&(e=React.createElement(scrivito.Sidebar.DetailsPanel,{isActive:"details"===this.props.activePanel})),React.createElement("div",{className:"scrivito_second_level"},e,React.createElement(f.default,{isActive:"workspaces"===this.props.activePanel}),React.createElement(scrivito.Sidebar.NotificationsPanel,{isActive:"notifications"===this.props.activePanel}),React.createElement(scrivito.Sidebar.DevicesPanel,{isActive:"devices"===this.props.activePanel}))}}),r=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:l.default.bool.isRequired,togglePanel:l.default.func.isRequired},shouldRenderLoaderError:!0,render:function(){return this._render(scrivito.applicationDocument().page())},_scrivitoRenderWhileLoading:function(){return this._render()},_render:function(e){return React.createElement("div",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this.props.togglePanel},React.createElement("i",{className:this._iconClassName(e)}))},_buttonClassName:function(){var e="scrivito_details_button scrivito_button_bar";return this.props.isActive&&(e+=" active"),e},_buttonHint:function(){return this.props.isActive?scrivito.t("sidebar.details_button.hint.active"):scrivito.t("sidebar.details_button.hint")},_iconClassName:function(e){var t="scrivito_icon scrivito_icon_page";return e&&e.modification()&&(t+=" scrivito_"+e.modification()),t}}),i=e("workspaces",{getIconClassName:function(){return"scrivito_icon scrivito_icon_ws"}}),a=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("div",{className:"scrivito_browse_content scrivito_button_bar",title:scrivito.t("sidebar.browse_content_button.hint"),onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_content_browser"}))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),(0,h.default)({selectionMode:"single",standAlone:"true"})}}),u=e("devices",{componentDidMount:function(){var e=this;this._previewDeviceSubscriptionToken=scrivito.PreviewDevice.subscribeChange(function(){return e.forceUpdate()}),this._windowFocusSubscriptionToken=m.default.subscribe("sidebar.devicesButton",function(){return e.forceUpdate()})},componentWillUnmount:function(){scrivito.PreviewDevice.unsubscribeChange(this._previewDeviceSubscriptionToken),m.default.unsubscribe(this._windowFocusSubscriptionToken)},getIconClassName:function(){return"scrivito_icon scrivito_icon_"+scrivito.PreviewDevice.current}}),d=(0,s.default)({propTypes:{hideMenubar:l.default.func.isRequired},render:function(){var e=scrivito.t("sidebar.hide_controls_button.hint");return React.createElement("div",{className:"scrivito_hide_controls scrivito_button_bar scrivito_bottom_fixed",title:e,onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_hide_ui"}))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.hideMenubar()}});scrivito.Sidebar.ENTER_TIMEOUT=500,scrivito.Sidebar.LEAVE_TIMEOUT=300}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=e.name,n=e.icon,r=e.color,i=e.verb,o=e.isButtonDisabled,a=e.onClick;return scrivito.legacyCreateConnectedComponent({propTypes:{workspace:s.default.instanceOf(C.default).isRequired},render:function(){return o&&o(this.props.workspace)?null:React.createElement("li",{className:this._buttonClassName(),title:this._title(),onClick:this._onClick},React.createElement("i",{className:this._iconClassName()}),React.createElement("span",null,scrivito.t("sidebar.workspaces_panel."+t+"_button.title")))},_buttonClassName:function(){var e="scrivito_sidebar_action_item scrivito_"+t+"_button";return this._canAccessWorkspace()||(e+=" scrivito_disabled"),e},_iconClassName:function(){var e="scrivito_icon scrivito_icon_"+(n||t);return r&&(e+=" scrivito_"+r),e},_title:function(){var e="sidebar.workspaces_panel."+t+"_button";return this._canAccessWorkspace()?scrivito.t(e+".hint"):scrivito.t(e+".is_forbidden")},_canAccessWorkspace:function(){return k.default.currentSession().can(i,this.props.workspace)},_onClick:function(e){var t=this;(0,b.default)(function(){return t._canAccessWorkspace()}).then(function(e){e&&a(t.props.workspace)}),e.stopPropagation()}})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),s=r(a),u=n(350),l=n(1126),c=r(l),d=n(1128),f=r(d),p=n(1129),h=r(p),_=n(1130),m=r(_),v=n(1131),g=r(v),y=n(8),b=r(y),w=n(121),k=r(w),M=n(59),C=r(M),E=n(580),x=r(E),T=n(1133),D=r(T),S=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:s.default.bool.isRequired},render:function(){return this.props.isActive?React.createElement(u.Scrollbars,{className:"scrivito_second_level_content scrivito_workspaces_panel scrivito_dark"},React.createElement(O,null),React.createElement(j,null),React.createElement(L,null)):null}}),O=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("div",{className:"scrivito_general_workspaces_group"},React.createElement("div",{className:"scrivito_sidebar_separator"},React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.general_workspaces_group.title"))),React.createElement("ul",{className:"scrivito_sidebar_action"},React.createElement(R,null),React.createElement(A,null)))}}),j=scrivito.legacyCreateConnectedComponent({render:function(){var e=C.default.selected,t=void 0;return e.isMutable()&&(t=React.createElement("ul",{className:"scrivito_sidebar_action"},React.createElement(N,{workspace:e}),React.createElement(I,{workspace:e}),React.createElement(Y,{workspace:e}),React.createElement(F,{workspace:e}))),React.createElement("div",{className:"scrivito_current_workspace_group"},React.createElement("div",{className:"scrivito_sidebar_separator"},React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.current_workspace_group.title"))),React.createElement(x.default,{workspaces:[e],isActive:!0}),t)}}),L=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("div",{className:"scrivito_other_workspaces_group"},React.createElement("div",{className:"scrivito_sidebar_separator"},React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.other_workspaces_group.title"))),React.createElement(P,null))}}),P=scrivito.legacyCreateConnectedComponent({shouldRenderLoaderError:!0,render:function(){var e=C.default.selected,t=e.otherWritableWorkspaces;return e.isMutable()&&(t=[C.default.published].concat(i(t))),React.createElement(x.default,{workspaces:t})},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}}),R=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("li",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_inv_plus scrivito_green"}),React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.create_workspace_button.title")))},_onClick:function(e){var t=this;(0,b.default)(function(){return t._isEnabled()}).then(function(e){e&&(0,m.default)().execute()}),e.stopPropagation()},_buttonClassName:function(){var e="scrivito_create_workspace_button scrivito_sidebar_action_item";return this._isEnabled()||(e+=" scrivito_disabled"),e},_buttonHint:function(){return this._isEnabled()?scrivito.t("sidebar.workspaces_panel.create_workspace_button.hint"):scrivito.t("sidebar.workspaces_panel.create_workspace_button.is_disabled")},_isEnabled:function(){return k.default.currentSession().can("create")}}),A=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("li",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_history"}),React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.publish_history_button.title")))},_onClick:function(e){this._isEnabled()&&D.default.open(),e.stopPropagation()},_buttonClassName:function(){var e="scrivito_publish_history_button scrivito_sidebar_action_item";return this._isEnabled()||(e+=" scrivito_disabled"),e},_buttonHint:function(){return this._isEnabled()?scrivito.t("sidebar.workspaces_panel.publish_history_button.hint"):scrivito.t("sidebar.workspaces_panel.publish_history_button.is_disabled")},_isEnabled:function(){return k.default.currentSession().can("read_history")}}),I=o({name:"changes",icon:"edited",verb:"read",onClick:function(){(0,f.default)()}}),N=o({name:"publish",verb:"publish",color:"green",onClick:function(e){var t=new g.default(e);scrivito.publishWorkspace(e,t)}}),Y=o({name:"settings",verb:"invite_to",onClick:function(e){(0,c.default)(e)}}),F=o({name:"rebase",icon:"refresh",verb:"write",isButtonDisabled:function(e){return e.isAutoUpdate()},onClick:function(e){(0,h.default)(e).execute()}});t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){o(e).then(function(t){t&&a(e,t)})}function o(e){var t=e.title,n=e.titleForEditor,r=e.ownerIds;return c.default.open({title:t,titleForEditor:n,ownerIds:r})}function a(e,t){var n=t.title,r=t.ownerIds,i={};u.default.each(r,function(e){return i[e]={role:"owner"}}),scrivito.withSavingOverlay(e.update({title:n,memberships:i}).then(scrivito.reload))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(0),u=r(s),l=n(1127),c=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){(0,a.unmountComponentAtNode)(k.get(0)),M.resolve(!1)}function o(e){try{return w.default.get(e)}catch(e){if(e instanceof v.ResourceNotFoundError)return;throw e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(31),s=n(6),u=r(s),l=n(15),c=r(l),d=n(477),f=r(d),p=n(217),h=function(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}(p),_=n(0),m=r(_),v=n(1),g=n(8),y=r(g),b=n(134),w=r(b),k=void 0,M=void 0,C=scrivito.legacyCreateConnectedComponent({statics:{open:function(e){return k=$("#workspace_settings_dialog"),M=new c.default,scrivito.withDialogBehaviour(k,M.promise,{escape:i}),scrivito.renderReactComponent(React.createElement(C,e),k),M.promise}},propTypes:{title:u.default.string,titleForEditor:u.default.string.isRequired,ownerIds:u.default.arrayOf(u.default.string).isRequired},getInitialState:function(){return{title:this.props.title}},componentDidMount:function(){this._updateHeight()},render:function(){return this._preloadOwners(),React.createElement("div",{className:"workspace_settings scrivito_modal_medium scrivito_show adjust_dialog"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("h3",null,React.createElement("i",{className:"scrivito_icon scrivito_icon_settings"}),scrivito.t("workspace_settings_dialog.title",this.props.titleForEditor))),React.createElement("div",{className:"scrivito_modal_body scrivito_dialog scrivito_auto_height"},React.createElement("div",{className:"scrivito_content_group"},React.createElement("h4",null,scrivito.t("workspace_settings_dialog.input.title")),React.createElement("input",{name:"title",type:"text",onChange:this._onTitleChange,value:this.state.title,placeholder:this.props.titleForEditor})),React.createElement("div",{className:"scrivito_content_group"},React.createElement("h4",null,scrivito.t("workspace_settings_dialog.input.owners")),React.createElement(E,{ownerIds:this.props.ownerIds,onMount:this._updateHeight}))),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onCancel},scrivito.t("workspace_settings_dialog.cancel")),React.createElement("a",{className:"scrivito_button scrivito_green scrivito_confirm",onClick:this._onConfirm},scrivito.t("workspace_settings_dialog.confirm"))))},_updateHeight:function(){var e=$((0,a.findDOMNode)(this)).find(".scrivito_modal_body");h.updateAutoHeightFor(e)},_preloadOwners:function(){(0,f.default)(this.props.ownerIds,o)},_onTitleChange:function(e){this.setState({title:e.target.value})},_onConfirm:function(e){e.preventDefault();var t=this.state.title,n=m.default.pluck(k.find("input[name=owners]").select2("data"),"id");(0,a.unmountComponentAtNode)(k.get(0)),t===this.props.title&&m.default.isEqual(n,this.props.ownerIds)?M.resolve(!1):M.resolve({title:t,ownerIds:n})},_onCancel:function(e){e.preventDefault(),i()}}),E=scrivito.legacyCreateConnectedComponent({propTypes:{ownerIds:u.default.arrayOf(u.default.string).isRequired,onMount:u.default.func.isRequired},componentDidMount:function(){this._setupSelect2(),this.props.onMount()},componentWillUnmount:function(){k.find("input[name=owners]").select2("destroy")},render:function(){return React.createElement("input",{name:"owners",type:"hidden",value:this.props.ownerIds})},_setupSelect2:function(){k.find("input[name=owners]").select2({multiple:!0,minimumInputLength:1,query:scrivito.throttle(function(e){w.default.suggest(e.term).then(function(t){var n=m.default.map(t,function(e){return{id:e.id,text:e.description}});e.callback({results:n})})},500),initSelection:function(e,t){var n=$(e).val();n&&(0,y.default)(function(){t(m.default.map(n.split(","),function(e){var t=o(e);return{id:e,text:t?t.description:e,locked:e===w.default.current.id}}))})},formatNoMatches:scrivito.t("workspace_settings_dialog.nothing_found"),formatSearching:scrivito.t("workspace_settings_dialog.searching"),formatInputTooShort:scrivito.t("workspace_settings_dialog.too_short")})}});t.default=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){o().then(function(e){return u.default.open().then(function(t){if(t)return a(e)})})}function o(){return(0,c.default)(function(){return scrivito.applicationDocument().page()}).then(function(e){if(e&&e.isNew())return(0,c.default)(function(){return e.parent()})})}function a(e){return scrivito.applicationDocument().page()?(0,d.useRailsEngine)()?scrivito.applicationWindow.reload():void 0:e?scrivito.applicationWindow.navigateTo(e.id()):scrivito.applicationWindow.navigateToRoot()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(349),u=r(s),l=n(8),c=r(l),d=n(47)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new u.default({execute:function(){h.finally(o(e).then(function(){return a(e)}),function(){scrivito.withSavingOverlay(scrivito.Promise.resolve()),scrivito.reload()})}})}function o(e){return scrivito.withSavingOverlay(e.rebase().catch(scrivito.displayError))}function a(e){return(0,c.default)(function(){return e.hasConflicts()}).then(function(e){if(e)return scrivito.confirmation_dialog({title:scrivito.t("commands.rebase_workspace.has_conflicts.title"),description:scrivito.t("commands.rebase_workspace.has_conflicts.description"),confirm_button_text:scrivito.t("commands.rebase_workspace.open_changes_dialog"),cancel_button_text:scrivito.t("close")}).then(function(){return f.default.open()})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(17),u=r(s),l=n(8),c=r(l),d=n(349),f=r(d),p=n(106),h=function(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}(p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){return new s.default({execute:function(){o().then(function(e){null!==e&&scrivito.withSavingOverlay(l.default.createAsync(e)).then(function(e){var t={workspaceId:e.id};return scrivito.editingContext.isMutable()||(t.displayMode="editing"),scrivito.changeEditingContext(t)}).catch(scrivito.displayError)})}})}function o(){return d.default.open({title:scrivito.t("commands.create_workspace.dialog.title"),description:scrivito.t("commands.create_workspace.dialog.description"),placeholder:scrivito.t("commands.create_workspace.dialog.placeholder"),icon:"&#xf022;",okButtonText:scrivito.t("commands.create_workspace.dialog.accept")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(17),s=r(a),u=n(59),l=r(u),c=n(568),d=r(c)},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(135),a=function(){function e(t){r(this,e),this._workspace=t}return i(e,[{key:"check",value:function(){var e=this;return this._check(0).then(function(t){return e._handleCheckResult(t,[])})}},{key:"fetchPublishApproval",value:function(e){return scrivito.ajax("PUT","workspaces/"+this._workspace.id+"/publish_approval",{data:{certificates:e}})}},{key:"checkAndPublish",value:function(){return this._checkAndPublish(Date.now()+2e4)}},{key:"_checkAndPublish",value:function(e){var t=this;return this._checkAndFetchPublishApproval().then(function(e){return scrivito.CmsRestApi.put("workspaces/"+t._workspace.id+"/publish",e)}).catch(function(n){return t._handleCheckAndPublishError(n,e)})}},{key:"_checkAndFetchPublishApproval",value:function(){var e=this;return(0,o.useCustomUsers)()?this.check().then(function(t){return t?e.fetchPublishApproval(t):scrivito.Promise.reject({type:"check_failed"})}):scrivito.Promise.resolve()}},{key:"_check",value:function(e){return scrivito.ajax("GET","workspaces/"+this._workspace.id+"/check?from="+e)}},{key:"_handleCheckResult",value:function(e,t){var n=this;if("fail"===e.result)return scrivito.Promise.resolve(!1);if(t.push(e.certificate),"END"===e.pass.until)return scrivito.Promise.resolve(t);var r=parseInt(e.pass.until,10)+1;return this._check(r).then(function(e){return n._handleCheckResult(e,t)})}},{key:"_handleOutdatedError",value:function(e){return this._workspace.isAutoUpdate()?this.checkAndPublish():(scrivito.logError(e.message),scrivito.AlertDialog.open(e.message),scrivito.Promise.reject(e))}},{key:"_handleCheckAndPublishError",value:function(e,t){var n=this,r=e.backendCode;return"check_failed"===e.type?scrivito.Promise.reject(e):"precondition_not_verifiable.workspace.publish.content_state_id"===r?this._handleOutdatedError(e):"precondition_not_met.workspace.publish.content_state_id"===r?Date.now()>t?scrivito.Promise.reject({type:"outdated_certificates"}):scrivito.wait(1).then(function(){return n._checkAndPublish(t)}):"precondition_not_met.workspace.publish.exceeds_obj_limit"===r?(scrivito.logError(e.message),scrivito.ErrorDialog.open(scrivito.t("workspace_publisher.exceeds_obj_limit"),[e.message]),scrivito.Promise.reject(e)):(scrivito.displayAjaxError(e),scrivito.Promise.reject(e))}},{key:"workspace",get:function(){return this._workspace}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){scrivito.withSavingOverlay(scrivito.changeEditingContext({workspaceId:e.id}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){return m.default.createElement("div",{className:"scrivito_notice scrivito_blue"},m.default.createElement("div",{className:"scrivito_notice_icon"},m.default.createElement("i",{className:"scrivito_icon scrivito_icon_question"})),m.default.createElement("div",{className:"scrivito_notice_body"},scrivito.t("publish_history_dialog.info"),m.default.createElement("a",{href:"https://scrivito.com/publishing-history",target:"_blank"},scrivito.t("publish_history_dialog.link")),"."))}function u(){(0,c.unmountComponentAtNode)(y.get(0)),b.resolve()}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(31),d=n(15),f=r(d),p=n(217),h=function(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}(p),_=n(20),m=r(_),v=n(1134),g=r(v),y=void 0,b=void 0,w=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onCloseClick=n._onCloseClick.bind(n),n}return a(t,e),l(t,null,[{key:"open",value:function(){y=$("#publish_history_dialog"),b=new f.default,scrivito.withDialogBehaviour(y,b.promise,{escape:u}),scrivito.renderReactComponent(m.default.createElement(t,null),y)}}]),l(t,[{key:"componentDidMount",value:function(){this._updateHeight()}},{key:"componentDidUpdate",value:function(){this._updateHeight()}},{key:"render",value:function(){return m.default.createElement("div",{className:"publish_history scrivito_modal_large scrivito_show adjust_dialog"},m.default.createElement("div",{className:"scrivito_modal_header"},m.default.createElement("h3",null,m.default.createElement("i",{className:"scrivito_icon scrivito_icon_history"}),scrivito.t("publish_history_dialog.title"))),m.default.createElement("div",{className:"scrivito_modal_body scrivito_dialog scrivito_auto_height"},m.default.createElement(s,null),m.default.createElement(g.default,null)),m.default.createElement("div",{className:"scrivito_modal_footer"},m.default.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onCloseClick},scrivito.t("publish_history_dialog.close"))))}},{key:"_onCloseClick",value:function(e){e.preventDefault(),e.stopPropagation(),u()}},{key:"_updateHeight",value:function(){var e=$((0,c.findDOMNode)(this)).find(".scrivito_modal_body");h.updateAutoHeightFor(e)}}]),t}(m.default.Component);t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=e.publishedBy;return t?_.default.createElement("span",null,_.default.createElement("i",{className:"scrivito_icon scrivito_icon_user"}),t):null}function u(e){if(!e.isLimited)return null;var t=scrivito.t("publish_history_dialog.revision_list.is_limited",p.default.getRecent().length);return _.default.createElement("div",{className:"scrivito_limited_notice"},_.default.createElement("div",{className:"scrivito_notice_icon"},_.default.createElement("i",{className:"scrivito_icon scrivito_icon_attention"})),_.default.createElement("div",{className:"scrivito_notice_body"},t))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1135),d=r(c),f=n(1136),p=r(f),h=n(20),_=r(h),m=n(6),v=r(m),g=n(134),y=r(g),b=n(462),w=n(76),k=r(w),M=n(40),C=r(M),E=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){return _.default.createElement("div",null,_.default.createElement("ul",{className:"scrivito_list_big"},p.default.getRecent().map(function(e,t){return _.default.createElement(x,{key:e.id,revision:e,isPublished:0===t,publishedBy:e.publishedBy})})),_.default.createElement(u,{isLimited:p.default.getRecent().isLimited}))}},{key:"_scrivitoRenderWhileLoading",value:function(){return _.default.createElement(b.Loader,null)}}]),t}(_.default.Component);E.displayName="PublishHistoryDialog.RevisionList",E.shouldRenderLoaderError=!0;var x=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),l(t,[{key:"render",value:function(){var e=void 0;return this.props.isPublished&&(e="is_published"),_.default.createElement("li",{className:e,onClick:this._onClick},_.default.createElement("span",{className:"scrivito_list_group"},_.default.createElement("i",{className:"scrivito_icon scrivito_icon_ws"})),_.default.createElement("span",{className:"scrivito_list_group"},_.default.createElement("span",{className:"scrivito_list_topic"},this.props.revision.title),_.default.createElement("span",{className:"scrivito_list_meta"},_.default.createElement("div",null,this._subtitle()),_.default.createElement(s,{publishedBy:this.props.publishedBy}))),_.default.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},_.default.createElement("span",{className:"scrivito_list_label"},scrivito.t("publish_history_dialog.revision_list.changes_count")),_.default.createElement("span",{className:"scrivito_list_value"},this._changesCount())),_.default.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},_.default.createElement("span",{className:"scrivito_list_label"},this._publishedAtLabel()),_.default.createElement("span",{className:"scrivito_list_value"},this.props.revision.publishedAtForEditor)))}},{key:"_subtitle",value:function(){if(this.props.isPublished)return scrivito.t("publish_history_dialog.revision_list.not_restorable")}},{key:"_publishedAtLabel",value:function(){return scrivito.t("publish_history_dialog.revision_list.published_at")+C.default.localizeDateRelative(this.props.revision.publishedAt)}},{key:"_changesCount",value:function(){var e=this.props.revision.changesCount;return null===e?scrivito.t("publish_history_dialog.revision_list.changes_count.not_available"):1===e?scrivito.t("publish_history_dialog.revision_list.changes_count.one"):scrivito.t("publish_history_dialog.revision_list.changes_count.many",e)}},{key:"_onClick",value:function(){this.props.isPublished||(0,d.default)(this.props.revision).execute()}}]),t}(_.default.Component);x.displayName="PublishHistoryDialog.RevisionList.RevisionListItem",x.propTypes={revision:v.default.instanceOf(p.default).isRequired,isPublished:v.default.bool.isRequired,publishedBy:v.default.oneOfType([v.default.instanceOf(y.default),v.default.string])},s.displayName="PublishHistoryDialog.RevisionList.PublishedBy",s.propTypes={publishedBy:v.default.oneOfType([v.default.instanceOf(y.default),v.default.string])},u.displayName="PublishHistoryDialog.RevisionList.NoticeBox",u.propTypes={isLimited:v.default.bool},t.default=(0,k.default)(E)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new l.default({id:"scrivito.sdk.restore_workspace",execute:function(){o(e).then(function(){return a(e)})}})}function o(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.restore_workspace.dialog.title",s(e)),description:scrivito.t("commands.restore_workspace.dialog.description",e.title),icon:"&#xf032",color:"green",confirm_button_text:scrivito.t("commands.restore_workspace.dialog.confirm"),confirm_button_color:"green"})}function a(e){var t=e.id;scrivito.withSavingOverlay(d.default.createAsync(s(e),{revisionId:t}).then(function(e){return scrivito.changeEditingContext({workspaceId:e.id,displayMode:"editing"})}).catch(scrivito.displayError))}function s(e){return scrivito.t("commands.restore_workspace.workspace_title",e.publishedAtForEditor)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var u=n(17),l=r(u),c=n(59),d=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return v.uiState.subState("revision")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(2),u=r(s),l=n(0),c=r(l),d=n(43),f=n(16),p=r(f),h=n(1),_=n(134),m=r(_),v=n(5),g=function(){function e(t){i(this,e),this._attributes=t}return a(e,[{key:"id",get:function(){return this._attributes.id}},{key:"title",get:function(){return this._attributes.title||this.publishedAtForEditor}},{key:"publishedAt",get:function(){return(0,d.parseStringToDate)(this._attributes.published_at)}},{key:"publishedBy",get:function(){var e=this._attributes.published_by;if(e)try{return m.default.get(e).description}catch(t){if(t instanceof h.ResourceNotFoundError)return scrivito.t("revision.published_by",e);throw t}return null}},{key:"changesCount",get:function(){return this._attributes.changes_count}},{key:"publishedAtForEditor",get:function(){return(0,u.default)(this.publishedAt).format("lll")}}],[{key:"getRecent",value:function(){var e=this,t=new p.default({state:o(),loader:function(){return scrivito.CmsRestApi.get("workspaces/published/revisions")},throwNotLoaded:!0}),n=c.default.map(t.get().results,function(t){return new e(t)});return t.get().isLimited&&(n.isLimited=!0),n}},{key:"clearCache",value:function(){o().set(null)}}]),e}();t.default=g},function(e,t,n){"use strict";var r=n(6),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){scrivito.Sidebar.DetailsPanel=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:i.default.bool.isRequired},render:function(){if(!this.props.isActive)return null;var t=scrivito.applicationDocument().page();return t?React.createElement(e,{src:scrivito.detailsPathForId(t.id())}):React.createElement("div",{className:"scrivito_second_level_content scrivito_details_panel"})}});var e=scrivito.legacyCreateConnectedComponent({propTypes:{src:i.default.string.isRequired},getInitialState:function(){return{isLoaded:!1}},componentWillReceiveProps:function(e){this.props.src!==e.src&&this.setState({isLoaded:!1})},render:function(){var e=void 0;return this.state.isLoaded||(e=React.createElement("i",{className:"scrivito_icon scrivito_spinning"},"")),React.createElement("div",{className:"scrivito_second_level_content scrivito_details_panel"},e,React.createElement("iframe",{className:this._iframeClassName(),src:this.props.src,onLoad:this._onLoad}))},_iframeClassName:function(){var e="scrivito_second_level_content_iframe";return this.state.isLoaded&&(e+=" scrivito_show"),e},_onLoad:function(){this.setState({isLoaded:!0})}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(6),o=r(i),a=n(228),s=r(a);!function(){scrivito.Sidebar.DevicesPanel=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:o.default.bool.isRequired},componentDidMount:function(){var e=this;this._previewDeviceSubscriptionToken=scrivito.PreviewDevice.subscribeChange(function(){return e.forceUpdate()}),this._windowFocusSubscriptionToken=s.default.subscribe("sidebar.devicesPanel",function(){return e.forceUpdate()})},componentWillUnmount:function(){scrivito.PreviewDevice.unsubscribeChange(this._previewDeviceSubscriptionToken),s.default.unsubscribe(this._windowFocusSubscriptionToken)},render:function(){return this.props.isActive?React.createElement("div",{className:"scrivito_second_level_content scrivito_devices_panel scrivito_dark"},React.createElement("div",{className:"scrivito_sidebar_separator"},React.createElement("span",null,scrivito.t("sidebar.devices_panel.title"))),React.createElement("div",{className:"scrivito_property_padding"},React.createElement("ul",{className:"scrivito_list_big"},scrivito.PreviewDevice.all.map(function(t){return React.createElement(e,{key:t,device:t})})))):null}});var e=scrivito.legacyCreateConnectedComponent({propTypes:{device:o.default.string.isRequired},render:function(){return React.createElement("li",{className:this._className(),onClick:this._onClick},React.createElement("span",{className:"scrivito_list_group"},React.createElement("i",{className:this._iconClassName()})),React.createElement("span",{className:"scrivito_list_group"},React.createElement("span",{className:"scrivito_list_topic"},scrivito.t("sidebar.devices_panel.device."+this.props.device))))},_className:function(){if(this._isActive())return"active"},_iconClassName:function(){return"scrivito_icon scrivito_icon_"+this.props.device},_isActive:function(){return this.props.device===scrivito.PreviewDevice.current},_onClick:function(e){this._isActive()||(scrivito.PreviewDevice.current=this.props.device),e.preventDefault()}})}()},function(e,t,n){"use strict";!function(){var e=scrivito.Sidebar.createPanelButtonClass("notifications",{render:function(){return React.createElement("div",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this.props.togglePanel},React.createElement(t,null),React.createElement(n,null))}}),t=scrivito.legacyCreateConnectedComponent({shouldRenderLoaderError:!0,render:function(){var e="scrivito_icon scrivito_icon_pot_error";return scrivito.Sidebar.countNotifications()&&(e+=" scrivito_wobble scrivito_animated"),React.createElement("i",{className:e})},_scrivitoRenderWhileLoading:function(){return React.createElement("i",{className:"scrivito_icon scrivito_icon_pot_error"})}}),n=scrivito.legacyCreateConnectedComponent({render:function(){var e=scrivito.Sidebar.countNotifications();if(e){var t="amount scrivito_"+this._color();return React.createElement("span",{className:t},e)}return null},_color:function(){var e=scrivito.applicationDocument().page();return e&&e.hasConflicts()?"red":"orange"}});scrivito.Sidebar.NotificationsButton=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(6),o=r(i),a=n(350),s=n(3),u=r(s),l=n(580),c=r(l);!function(){scrivito.Sidebar.NotificationsPanel=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:o.default.bool.isRequired},render:function(){return this.props.isActive?React.createElement(a.Scrollbars,{className:"scrivito_notifications_panel scrivito_second_level_content scrivito_dark"},React.createElement(e,null),React.createElement(i,null)):null}});var e=scrivito.legacyCreateConnectedComponent({render:function(){var e=scrivito.applicationDocument().page();return e?React.createElement("div",null,React.createElement(t,{obj:e}),React.createElement(r,{obj:e}),React.createElement(n,{obj:e})):null}}),t=scrivito.legacyCreateConnectedComponent({propTypes:{obj:o.default.instanceOf(u.default).isRequired},render:function(){return this.props.obj.hasConflicts()?React.createElement("div",{className:"scrivito_conflict_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_red"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.conflict_group.title"))),React.createElement("div",{className:"scrivito_description"},scrivito.t("sidebar.notifications_panel.conflict_group.description1"),React.createElement("a",{href:"https://scrivito.com/conflicts",target:"_blank"},scrivito.t("sidebar.notifications_panel.conflict_group.link")),scrivito.t("sidebar.notifications_panel.conflict_group.description2"))):null}}),n=scrivito.legacyCreateConnectedComponent({propTypes:{obj:o.default.instanceOf(u.default).isRequired},shouldRenderLoaderError:!0,render:function(){var e=scrivito.editingContext.conflictingWorkspacesFor(this.props.obj);return e.length?React.createElement("div",{className:"scrivito_potential_conflicts_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_orange"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.potential_conflicts_group.title"))),React.createElement("span",{className:"scrivito_description"},scrivito.t("sidebar.notifications_panel.potential_conflicts_group.description")),React.createElement(c.default,{workspaces:e,includeInaccessible:!0})):null},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}}),r=scrivito.legacyCreateConnectedComponent({propTypes:{obj:o.default.instanceOf(u.default).isRequired},shouldRenderLoaderError:!0,render:function(){var e=scrivito.editingContext.restrictionMessagesFor(this.props.obj);return e.length?React.createElement("div",{className:"scrivito_publish_restrictions_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_orange"},React.createElement("i",{className:"scrivito_icon scrivito_icon_no_publish"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.publish_restrictions_group.title"))),e.map(function(e){return React.createElement("span",{key:e,className:"scrivito_description"},e)})):null},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}}),i=scrivito.legacyCreateConnectedComponent({render:function(){return 0===scrivito.Sidebar.countNotifications()?React.createElement("div",{className:"scrivito_no_notifications_box scrivito_property_padding"},React.createElement("div",{className:"scrivito_list_big"},React.createElement("div",{className:"scrivito_notice scrivito_grey"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("sidebar.notifications_panel.no_notifications"))))):null}})}()},function(e,t,n){"use strict";var r=n(40);(function(e){return e&&e.__esModule?e:{default:e}})(r).default.load("en",{confirm:"Confirm",cancel:"Cancel",save:"Save",welcome:"Welcome",welcome_x:"Welcome $1",accept:"Accept",close:"Close",done:"Done",loading:"Loading...",current_page:"current page",ok:"Ok","models.page.name":"page","models.resource.name":"resource","models.obj.name.plural":"objects","obj.tooltip.is_new":"This item is new.","obj.tooltip.is_new.has_conflicts":"This item is new in this working copy.\nIt has been created and published with a different working copy in the meantime.","obj.tooltip.is_new.has_conflicts.transfer_changes":"This item is new in this working copy.\nIt cannot be moved because it has been created and published with a different working copy in the meantime.","obj.tooltip.is_edited":"This item has been modified.","obj.tooltip.is_edited.has_conflicts":"This item has been modified in this working copy.\nIt has been changed and published with a different working copy in the meantime.","obj.tooltip.is_edited.has_conflicts.transfer_changes":"This item has been modified in this working copy.\nIt cannot be moved because it has been changed and published with a different working copy in the meantime.","obj.tooltip.is_deleted":"This item has been deleted.","obj.tooltip.is_deleted.has_conflicts":"This item has been deleted in this working copy.\nIt has been changed and published with a different working copy in the meantime.","obj.tooltip.is_deleted.has_conflicts.transfer_changes":"This item has been deleted in this working copy.\nIt cannot be moved because it has been changed and published with a different working copy in the meantime.","workspace.title_published":"Published content","workspace.empty_title":"<empty title>","workspace.publish_error.exceeds_obj_limit":"This working copy cannot be published because the maximum number of CMS objects included in your plan has been exceeded.","revision.published_by":'User with ID "$1"',"workspace.title.published":"Published content","workspace.title.blank":"[Empty title]","default_inspector_description_for_obj.group_general":"General","default_inspector_description_for_obj.group_backlinks":"Linked by","default_inspector_description_for_obj.group_binary_metadata":"Metadata","default_inspector_description_for_obj.group_system":"System","item_description.system.id.title":"Object ID","item_description.system.path.title":"Path","item_description.system.obj_class.title":"Object type","item_description.system.permalink.title":"Permalink","item_description.system.history.created_at":"Created","item_description.system.history.created_by":"Created by","item_description.system.history.last_changed":"Last changed","item_description.system.history.last_changed_by":"Last changed by","item_description.system.history.not_available":"Not available","item_description.system.history.user_description_not_available":'User with ID "$1"',"backlinks_item_component.no_backlinks_box.message":'No objects link to "$1".',"stringlist_item_component.read_stringlist.placeholder":"No items","stringlist_item_component.edit_stringlist.add_placeholder":"Add item","binary_attribute_component.download":"Download","binary_attribute_component.edit":"Edit","binary_attribute_component.empty":"Empty","binary_metadata_item_component.content_type":"Content type","binary_metadata_item_component.content_length":"Size","binary_metadata_item_component.filename":"Filename","binary_metadata_item_component.width":"Width","binary_metadata_item_component.height":"Height","permalink_item_component.permalink.is_empty":"Not assigned","widgetlist_attribute_component.is_empty":"No widgets present.","link_item_component.link.title_placeholder":"Title","link_item_component.link.url_placeholder":"URL","link_item_component.link.internal":"INTERNAL","link_item_component.link.new_tab":"Open link in new tab","link_item_component.link.delete":"Delete link","linklist_item_component.linklist.undefined":"No links specified","reference_attribute_component.clear_button.title":"Clear","details_dialog.title":'View properties of "$1"',"details_dialog.title.editing_mode":'Edit properties of "$1"',"details_dialog.close":"Close","workspace_settings_dialog.title":'Settings for "$1"',"workspace_settings_dialog.input.title":"Title","workspace_settings_dialog.input.owners":"Owners","workspace_settings_dialog.nothing_found":"Nothing found","workspace_settings_dialog.searching":"Searching...","workspace_settings_dialog.too_short":"Find user...","workspace_settings_dialog.cancel":"Cancel","workspace_settings_dialog.confirm":"Confirm","workspace_changes_dialog.dialog_header.title":'Changes to "$1"',"workspace_changes_dialog.dialog_header.title.is_transfer_mode":'Moving changes of "$1"',"workspace_changes_dialog.dialog_header.count_title.one":"($1 object)","workspace_changes_dialog.dialog_header.count_title.many":"($1 objects)","workspace_changes_dialog.dialog_header.count_title.many.has_more":"($1+ objects)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.one":"(selected $1 object for moving)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.many":"(selected $1 objects for moving)","workspace_changes_dialog.order_toggle.last_changed":"Sort by last change date","workspace_changes_dialog.order_toggle.last_changed.asc":"Oldest change first","workspace_changes_dialog.order_toggle.last_changed.desc":"Most recent change first","workspace_changes_dialog.order_toggle.obj_class":"Sort by object type","workspace_changes_dialog.order_toggle.obj_class.asc":"A to Z (type)","workspace_changes_dialog.order_toggle.obj_class.desc":"Z to A (type)","workspace_changes_dialog.order_toggle.modification":"Sort by modification type","workspace_changes_dialog.order_toggle.modification.desc":"New, edited, deleted","workspace_changes_dialog.order_toggle.modification.asc":"Deleted, edited, new","workspace_changes_dialog.order_toggle.is_disabled":"Currently selected order","workspace_changes_dialog.no_changes_notice":"Nothing was changed in this working copy.","workspace_changes_dialog.change_item.last_changed":"Last change","workspace_changes_dialog.change_item.publish_permission":"Publish","workspace_changes_dialog.publish_permission.is_permitted":"is permitted","workspace_changes_dialog.publish_permission.is_forbidden":"is not permitted","workspace_changes_dialog.enable_transfer_mode_button.title":"Move changes","workspace_changes_dialog.transfer_changes_button.title":"Select target working copy","workspace_changes_dialog.disable_transfer_mode_button.title.cancel":"Cancel","workspace_changes_dialog.disable_transfer_mode_button.title.done":"Done","workspace_changes_dialog.close_dialog_button.title":"Close","workspace_publisher.exceeds_obj_limit":"This working copy cannot be published because the maximum number of CMS objects included in your plan has been exceeded.","menu_item.spinner.loading":"Loading...","choose_obj_class_dialog.add_child_page.title":"Select Page Type","choose_obj_class_dialog.create_page.title":"Select Page Type","choose_obj_class_dialog.create_widget.title":"Select Widget","choose_obj_class_dialog.last_used":"Last used","choose_obj_class_dialog.popular":"Often used","choose_obj_class_dialog.all":"All","editable_ws_dialog.view_mode.title.select_or_create":"Choose a working copy","editable_ws_dialog.view_mode.title.select":"Select a working copy","editable_ws_dialog.view_mode.title.create":"Create a working copy","editable_ws_dialog.view_mode.title.forbidden":"No working copy available","editable_ws_dialog.view_mode.description.select_or_create":"To alter content, select or create a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.select":"To alter content, select a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.create":"To alter content, create a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.forbidden":"There is no working copy you could use to alter content. Also, creating working copies has not been enabled for you.","editable_ws_dialog.transfer_changes.title.select_or_create":"Select target working copy","editable_ws_dialog.transfer_changes.title.select":"Select target working copy","editable_ws_dialog.transfer_changes.title.create":"Create target working copy","editable_ws_dialog.transfer_changes.title.forbidden":"No working copy available","editable_ws_dialog.transfer_changes.description.select_or_create":"The changes can be moved to an existing working copy or to a new one.","editable_ws_dialog.transfer_changes.description.select":"The changes will be moved to the selected working copy.","editable_ws_dialog.transfer_changes.description.create":"Please create the target working copy","editable_ws_dialog.transfer_changes.description.forbidden":"You are not permitted to move changes to one of the available working copies.","editable_ws_dialog.choose_existing":"Select an existing working copy:","editable_ws_dialog.create_new":"Create a new working copy:","editable_ws_dialog.or_create_new":"Or, create a new one:","editable_ws_dialog.create_new_playholder":"new working copy title","editable_ws_dialog.select":"Select","loader_error.title":"An error occurred while retrieving the data. Please try again later. If the problem persists, contact a technician familiar with this website.","publish_history_dialog.close":"Close","publish_history_dialog.info":"Pick a working copy from the list to view an archived state of your website. Learn more about the ","publish_history_dialog.link":"publishing history","publish_history_dialog.revision_list.changes_count":"Changed","publish_history_dialog.revision_list.changes_count.many":"$1 objects","publish_history_dialog.revision_list.changes_count.not_available":"Not available","publish_history_dialog.revision_list.changes_count.one":"1 object","publish_history_dialog.revision_list.is_limited":"The maximum number of history items displayed ($1) depends on your plan.","publish_history_dialog.revision_list.not_restorable":"This is the currently published content.","publish_history_dialog.revision_list.published_at":"Published ","publish_history_dialog.title":"Publishing history","sidebar.browse_content_button.hint":"Open the Content Browser","sidebar.browse_content_button.hint.is_disabled":"The Content Browser is not available while deleted content is being displayed.","sidebar.details_button.hint":"Show page details","sidebar.details_button.hint.active":"Page details","sidebar.workspaces_button.hint":"Show working copy menu","sidebar.workspaces_button.hint.active":"Working copy menu","sidebar.devices_button.hint":"View page in various sizes","sidebar.devices_button.hint.active":"Page in various sizes","sidebar.hide_controls_button.hint":"Hide control panel","sidebar.notifications_button.hint":"Show notifications","sidebar.notifications_button.hint.active":"Notifications","sidebar.workspace_list.workspace_item.hint.is_disabled":"This working copy can not be selected due to missing user permissions.","sidebar.workspace_list.workspace_item.hint.is_selectable":"Select this working copy","sidebar.workspace_list.workspace_item.hint.is_published":"Select published content","sidebar.workspace_list.workspace_item.hint":"Currently selected working copy","sidebar.workspace_list.workspace_item.delete":"Delete this working copy","sidebar.workspaces_panel.general_workspaces_group.title":"Working copies","sidebar.workspaces_panel.current_workspace_group.title":"This working copy","sidebar.workspaces_panel.other_workspaces_group.title":"Other working copies","sidebar.workspaces_panel.create_workspace_button.title":"New","sidebar.workspaces_panel.create_workspace_button.hint":"Create a working copy","sidebar.workspaces_panel.create_workspace_button.is_disabled":"You cannot create a working copy due to missing user permissions.","sidebar.workspaces_panel.publish_history_button.title":"History","sidebar.workspaces_panel.publish_history_button.hint":"Open publishing history","sidebar.workspaces_panel.publish_history_button.is_disabled":"You cannot view the publishing history due to missing user permissions.","sidebar.workspaces_panel.changes_button.title":"Changes","sidebar.workspaces_panel.changes_button.hint":"View changes to this working copy","sidebar.workspaces_panel.changes_button.is_forbidden":"The cannot view the changes to the working copy due to missing user permissions.","sidebar.workspaces_panel.publish_button.title":"Publish","sidebar.workspaces_panel.publish_button.hint":"Publish this working copy","sidebar.workspaces_panel.publish_button.is_forbidden":"The working copy can not be published due to missing user permissions.","sidebar.workspaces_panel.settings_button.title":"Settings","sidebar.workspaces_panel.settings_button.hint":"Change settings of this working copy","sidebar.workspaces_panel.settings_button.is_forbidden":"You cannot change the settings of the working copy due to missing user permissions.","sidebar.workspaces_panel.rebase_button.title":"Update","sidebar.workspaces_panel.rebase_button.hint":"Update this working copy","sidebar.workspaces_panel.rebase_button.is_forbidden":"You cannot update the working copy due to missing user permissions.","sidebar.notifications_panel.publish_restrictions_group.title":"Publishing not possible","sidebar.notifications_panel.potential_conflicts_group.title":"Potential conflict","sidebar.notifications_panel.potential_conflicts_group.description":"Changes to this page will cause a conflict when publishing. The page has already been modified in these working copies:","sidebar.notifications_panel.conflict_group.title":"Conflict","sidebar.notifications_panel.conflict_group.description1":"A different version of this page has been published in the meantime. ","sidebar.notifications_panel.conflict_group.link":"Resolve the conflict","sidebar.notifications_panel.conflict_group.description2":" to be able to publish this working copy.","sidebar.notifications_panel.no_notifications":"No notifications at present.","sidebar.devices_panel.title":"Preview sizes","sidebar.devices_panel.device.desktop":"Desktop","sidebar.devices_panel.device.laptop":"Laptop","sidebar.devices_panel.device.mobile":"Mobile phone, portrait","sidebar.devices_panel.device.tablet":"Tablet, portrait","confirm_delete_dialog.cancel":"Cancel","confirm_delete_dialog.confirm":"Delete","confirm_delete_dialog.confirm.has_backlinks":"Delete anyway","confirm_delete_dialog.is_edited":"This $1 can be restored if required. However, the changes made to it in this working copy cannot be recovered.","confirm_delete_dialog.is_new":"You are in the process of deleting a $1 that has been created in this working copy. This cannot be undone. However, you can create the $2 once again and reapply the links and references pointing to it.","confirm_delete_dialog.many_objs_to_delete.many_backlinks":"$1 objects link to these $2:","confirm_delete_dialog.many_objs_to_delete.one_backlink":"One object links to these $1:","confirm_delete_dialog.not_modified":"This $1 can be restored if required.","confirm_delete_dialog.one_obj_to_delete.many_backlinks":"$1 objects link to this $2","confirm_delete_dialog.one_obj_to_delete.one_backlink":"One object links to this $1:","confirm_delete_dialog.title":"Are you sure you want to delete this $1?","confirm_delete_dialog.title.many_subjects":"Are you sure you want to delete these $1?","resource_dialog.commands.mark_resolved_obj.dialog.description":"This resource was altered in a different working copy that has been published. Please confirm that you want to keep your changes and discard the ones concurrently made by others.","resource_dialog.commands.mark_resolved_obj.title":"Override concurrent changes to resource","resource_dialog.commands.restore_obj.title":"Restore resource","resource_dialog.title":'Properties of resource "$1"',"menu_bar.create":"Create","saving_indicator_item.saving":"Saving...","saving_indicator_item.saved":"Changes saved","inplace_marker.overlapping":"Two or more menu handles are overlapping. Please adjust your CSS. The following menu handles are overlapping:","widget_marker.widget_is_new":"Widget is new","widget_marker.widget_is_edited":"Widget has been modified","widget_marker.widget_is_edited_and_dragged_here":"Widget has been modified and dragged here","widget_marker.widget_is_edited_and_dragged_away":"Widget has been modified and dragged away from here","widget_marker.widget_is_deleted":"Widget has been deleted","widget_marker.widget_is_dragged_here":"Widget has been dragged here","widget_marker.widget_is_dragged_away":"Widget has been dragged away from here","child_list_menu.description":"Items of $1","transfer_errors_dialog.title":"Errors while moving content changes","transfer_errors_dialog.modified":"Some of the changes could not be moved because the content concerned has also been modified in the target working copy.","transfer_errors_dialog.conflicting":"Some of the changes have not been moved because the respective content in the target working copy is outdated and applying changes to it would cause a conflict. Please make sure that both working copies have been updated and are free of conflicts.","current_page_link_dialog.title":"Share page","current_page_link_dialog.description":"Using the URL below, you can share the current page as part of this working copy. The recipients need to be logged in and have access to the working copy.","error_dialog.toggle_details":"Toggle details","error_dialog.error_details":"Error details","commands.open_obj_in_content_browser.title":"Open in Content Browser","commands.navigate_ui_to_obj.title":"Navigate to object","commands.open_page_link_dialog.title":"Share page","commands.open_page_link_dialog.is_deleted":"A deleted page cannot be shared because it is inaccessible in preview mode","commands.create_workspace.dialog.title":"Create working copy","commands.create_workspace.dialog.description":"Please enter the title of the new working copy.","commands.create_workspace.dialog.placeholder":"new title","commands.create_workspace.dialog.accept":"Create","commands.open_dashboard.title":"Open dashboard","commands.open_user_guide.title":"Open help","commands.rebase_workspace.has_conflicts.title":"Changed content has been published intermediately","commands.rebase_workspace.has_conflicts.description":"Your working copy could not be fully updated. Some of its content has also been altered in a different working copy that has been published in the meantime. Please refer to the changes list for details.","commands.rebase_workspace.open_changes_dialog":"Show changes","workflows.delete_workspace.dialog.title":'Are you sure you want to delete "$1"?',"workflows.delete_workspace.dialog.description":"A deleted working copy cannot be restored.","workflows.delete_workspace.dialog.confirm":"Delete","workflows.change_permalink.dialog.title":'Change permalink of "$1"',"workflows.change_permalink.dialog.placeholder":"Please enter a new permalink","workflows.change_permalink.dialog.change":"Change","workflows.change_permalink.info.is_taken":'The "$1" is already in use.',"workflows.change_permalink.info.is_invalid":'The permalink "$1" is not valid: A permalink may only contain letters from A to Z, periods, hyphens, slashes and underscores.',"workflows.change_permalink.info.is_scrivito":'The permalink "$1" is not valid: A permalink must not be "scrivito" or start with "scrivito/".',"commands.restore_workspace.dialog.confirm":"Create","commands.restore_workspace.dialog.description":'This creates a working copy that reflects the archived state of your website after "$1" was published.',"commands.restore_workspace.dialog.title":'Create "$1"?',"commands.restore_workspace.workspace_title":"Archived: $1","commands.open_page_details.title.editing_mode":"Edit page properties","commands.open_page_details.title":"View page properties","commands.open_page_details.dialog.title.editing_mode":'Edit properties of "$1"',"commands.open_page_details.dialog.title":'View properties of "$1"',"commands.open_page_details.is_disabled":"This page has no properties","commands.save_obj_to_clipboard.title":"Copy or move page","commands.save_obj_to_clipboard.has_children":"Pages with subpages cannot be copied or moved yet.","commands.save_obj_to_clipboard.is_deleted":"Deleted pages cannot be copied or moved yet.","commands.delete_obj.has_children":"Pages with subpages can not yet be deleted.","commands.delete_obj.published_workspace":"Since this is the published content, nothing can be modified.","commands.delete_obj.title":"Delete $1","commands.revert_obj.title":"Discard changes to page","commands.revert_obj.published_workspace":"Since this is the published content, nothing has been modified. Therefore, nothing can be discarded.","commands.revert_obj.is_new":"This is a new page. To discard the creation of this page, please delete it.","commands.revert_obj.unmodified":"This page has not been modified. Therefore, nothing can be discarded.","commands.revert_obj.dialog.title":"Are you sure you want to discard the changes to this page?","commands.revert_obj.dialog.description":"Discarded changes cannot be restored.","commands.revert_obj.dialog.confirm":"Discard","commands.revert_resource.title":"Discard changes to resource","commands.revert_resource.is_new":"This is a new resource. To discard the creation of this resource, please delete it.","commands.revert_resource.dialog.title":"Are you sure you want to discard the changes to this resource?","commands.revert_resource.dialog.description":"Discarded changes cannot be restored.","commands.revert_resource.dialog.confirm":"Discard","commands.revert_widget.title":"Discard changes to widget","commands.revert_widget.is_new":"This is a new widget. To discard the creation of this widget, please delete it.","commands.revert_widget.is_not_modified":"This widget has not been modified. Therefore, nothing can be discarded.","commands.revert_widget.dialog.title":"Are you sure you want to discard the changes to this widget?","commands.revert_widget.dialog.description":"Discarded changes cannot be restored.","commands.revert_widget.dialog.confirm":"Discard","commands.restore_widget.title":"Restore widget","commands.restore_obj.title":"Restore page","commands.mark_resolved_obj.title":"Override concurrent changes to page","commands.mark_resolved_obj.dialog.confirm":"Override changes","commands.mark_resolved_obj.dialog.title":"Are you sure you want to override the changes made by others in the meantime?","commands.mark_resolved_obj.dialog.description":"This page was altered in a different working copy that has been published. Please confirm that you want to keep your changes and discard the ones concurrently made by others.","commands.duplicate_obj.title":"Duplicate page","commands.duplicate_obj.published_workspace":"Since this is the published content, nothing can be modified.","commands.duplicate_obj.has_children":"Pages with subpages cannot be duplicated yet.","commands.duplicate_widget.title":"Duplicate widget","commands.create_page.title":"Create page","commands.create_page.published_workspace":"Use a working copy for creating pages or editing existing content.","commands.add_subpage.child_list.no_path":"Subpages can only be added to pages that have a path.","commands.add_subpage.child_list.title":"Add page","commands.add_subpage.child_list.tooltip":'Add a page to "$1"',"commands.add_subpage.child_list.published_workspace":"Use a working copy to add subpages.","commands.add_subpage.current_page.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.add_subpage.current_page.title":"Add subpage","commands.add_subpage.current_page.tooltip":'Add a subpage to "$1"',"commands.add_subpage.current_page.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.child_list.no_path":"Subpages can only be added to pages that have a path.","commands.copy_obj_from_clipboard.child_list.paste_forbidden":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.copy_obj_from_clipboard.child_list.title":"Paste page here","commands.copy_obj_from_clipboard.child_list.tooltip":'Paste "$1" to "$2".',"commands.copy_obj_from_clipboard.child_list.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.child_list.obj_not_present":"There is no page on the clipboard","commands.copy_obj_from_clipboard.current_page.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.copy_obj_from_clipboard.current_page.paste_forbidden":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.copy_obj_from_clipboard.current_page.title":"Paste as subpage","commands.copy_obj_from_clipboard.current_page.tooltip":'Create a copy of "$1" and use it as a subpage of "$2".',"commands.copy_obj_from_clipboard.current_page.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.current_page.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.child_list.forbidden.invalid_class":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.move_obj_from_clipboard.child_list.forbidden.invalid_workspace":"A page can only be moved within its working copy.","commands.move_obj_from_clipboard.child_list.forbidden.no_path":"Subpages can only be added to pages that have a path.","commands.move_obj_from_clipboard.child_list.forbidden.obj_identity":"A page cannot be moved beneath itself.","commands.move_obj_from_clipboard.child_list.source_not_found":"The page to move could not be found in the current working copy.","commands.move_obj_from_clipboard.child_list.forbidden.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.child_list.title":"Move page here","commands.move_obj_from_clipboard.child_list.tooltip":'Move "$1" to "$2".',"commands.move_obj_from_clipboard.current_page.forbidden.invalid_class":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.move_obj_from_clipboard.current_page.forbidden.invalid_workspace":"A page can only be moved within its working copy.","commands.move_obj_from_clipboard.current_page.forbidden.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.move_obj_from_clipboard.current_page.forbidden.obj_identity":"A page cannot be moved beneath itself. The current page is on the clipboard.","commands.move_obj_from_clipboard.current_page.forbidden.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.current_page.source_not_found":"The page to move could not be found in the current working copy.","commands.move_obj_from_clipboard.current_page.title":"Move here as subpage","commands.move_obj_from_clipboard.current_page.tooltip":'Insert "$1" as a subpage of "$2".',"obj_sorting_dialog.title":"Sort items","commands.sort_items.title":"Sort items","commands.sort_items.tooltip":"Edit order of items underneath $1","commands.sort_items.auto_sort":"This navigation is sorted automatically.","commands.sort_items.too_less_children":"This navigation cannot be sorted because it consists of less than two items.","commands.choose_and_create_widget.title":"Insert widget","commands.choose_and_create_widget.disabled":"You cannot insert any widgets here.","commands.create_widget.title":"Insert $1","commands.widget_details.title":"Widget properties","commands.widget_details.has_no_properties":"This widget has no properties","commands.widget_details.dialog.title":'Properties of "$1"',"commands.save_widget_to_clipboard.title":"Copy widget","commands.copy_widget_from_clipboard.title":"Paste widget","commands.copy_widget_from_clipboard.paste_forbidden":"Due to its type, the widget cannot be moved or copied here. Only widgets of the following types can be inserted here: $1.","commands.delete_widget.title":"Delete widget","commands.delete_widget.dialog.title":"Are you sure you want to delete this widget?","commands.delete_widget.dialog.description":"A deleted widget cannot be restored.","commands.delete_widget.dialog.confirm":"Delete","topbar.show_menubar":"Show control panel","topbar.display_mode_selector.view_mode":"Preview","topbar.display_mode_selector.editing_mode":"Edit","topbar.display_mode_selector.diff_mode":"Changes","topbar.display_mode_selector.is_selected":"Currently selected display mode","topbar.saving_indicator.write_started":"Saving...","topbar.saving_indicator.write_ended":"Changes saved","topbar.warning.message":"Check JS console","topbar.warning.alert_message":"There are warnings. Please open the JavaScript console for details.","topbar.current_page_menu.title.is_new":"This page is new.","topbar.current_page_menu.title.is_edited":"This page has been modified.","topbar.current_page_menu.title.is_deleted":"This page has been deleted.","workflows.publish_workspace.dialog.confirm":"Publish","workflows.publish_workspace.dialog.title":'Publish "$1"?',"workflows.publish_workspace.dialog.description":"You can undo this publishing action using the publishing history.","workflows.publish_workspace.error_dialog.title":"Working copy could not be published","workflows.publish_workspace.error_dialog.description":"Please check the changes list for details.","workflows.publish_workspace.error_dialog.confirm":"Open changes list","workflows.publish_workspace.alert.invalid_certificates":"The working copy could not be published because at least one user is currently modifying content in it.",ajax_error:"Communication with the CMS failed with error: $1","ajax_error.communication":"Communication with the CMS failed. Please check your network connectivity.","ajax_error.message_for_editor":"During your last action, a technical error occurred. Please try again later. If the problem persists, please contact a technician familiar with this website and provide the error details.","workspace_limit_exceeded.message":"You have reached the maximum number of working copies included in your plan.",warn_before_unloading:"There are unsaved changes! Are you sure you want to close the page?","widgetlist_field_element.markup_error":"Scrivito found a widget with invalid markup. Please reload the page and try again. If the problem persists, please contact a technician familiar with this website.","test.two_arguments":"$1, $2","test.four_arguments":"$1, $2, $3, $4","image_editor_dialog.dialog_header.title":"Edit image"})},function(e,t,n){"use strict";var r=n(40);(function(e){return e&&e.__esModule?e:{default:e}})(r).default.load("de",{confirm:"Bestätigen",cancel:"Abbrechen",save:"Speichern",welcome:"Willkommen",welcome_x:"Willkommen $1",accept:"Übernehmen",close:"Schließen",done:"Fertig",loading:"Lade...",current_page:"Aktuelle Seite",ok:"Ok","models.page.name":"Seite","models.resource.name":"Ressource","models.obj.name.plural":"Objekte","obj.tooltip.is_new":"Dieses Element ist neu.","obj.tooltip.is_new.has_conflicts":"Dieses Element ist neu in dieser Arbeitskopie.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie angelegt und veröffentlicht.","obj.tooltip.is_new.has_conflicts.transfer_changes":"Dieses Element ist neu in dieser Arbeitskopie.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie angelegt und veröffentlicht wurde.","obj.tooltip.is_edited":"Dieses Element wurde geändert.","obj.tooltip.is_edited.has_conflicts":"Dieses Element wurde in dieser Arbeitskopie geändert.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht.","obj.tooltip.is_edited.has_conflicts.transfer_changes":"Dieses Element wurde in dieser Arbeitskopie geändert.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht wurde.","obj.tooltip.is_deleted":"Dieses Element wurde gelöscht.","obj.tooltip.is_deleted.has_conflicts":"Dieses Element wurde in dieser Arbeitskopie gelöscht.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht.","obj.tooltip.is_deleted.has_conflicts.transfer_changes":"Dieses Element wurde in dieser Arbeitskopie gelöscht.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht wurde.","workspace.title_published":"Veröffentlichte Inhalte","workspace.empty_title":"<leerer Titel>","workspace.publish_error.exceeds_obj_limit":"Diese Arbeitskopie kann nicht veröffentlicht werden, weil die maximale Anzahl der in Ihrem Tarif enthaltenen CMS-Objekte überschritten wurde.","revision.published_by":'Benutzer mit der ID "$1"',"workspace.title.published":"Veröffentlichte Inhalte","workspace.title.blank":"[Leerer Titel]","default_inspector_description_for_obj.group_general":"Allgemein","default_inspector_description_for_obj.group_backlinks":"Verlinkt von","default_inspector_description_for_obj.group_binary_metadata":"Metadaten","default_inspector_description_for_obj.group_system":"System","item_description.system.id.title":"Objekt-ID","item_description.system.path.title":"Pfad","item_description.system.obj_class.title":"Objekttyp","item_description.system.permalink.title":"Permalink","item_description.system.history.created_at":"Erstellt","item_description.system.history.created_by":"Erstellt von","item_description.system.history.last_changed":"Zuletzt geändert","item_description.system.history.last_changed_by":"Zuletzt geändert von","item_description.system.history.not_available":"Nicht verfügbar","item_description.system.history.user_description_not_available":'Benutzer mit der ID "$1"',"backlinks_item_component.no_backlinks_box.message":'Keine Objekte verlinken "$1".',"stringlist_item_component.read_stringlist.placeholder":"Die Liste enthält keine Elemente","stringlist_item_component.edit_stringlist.add_placeholder":"Element hinzufügen","binary_attribute_component.download":"Herunterladen","binary_attribute_component.edit":"Bearbeiten","binary_attribute_component.empty":"Leer","binary_metadata_item_component.content_type":"Content type","binary_metadata_item_component.content_length":"Dateigröße","binary_metadata_item_component.filename":"Dateiname","binary_metadata_item_component.width":"Breite","binary_metadata_item_component.height":"Höhe","permalink_item_component.permalink.is_empty":"Nicht zugewiesen","widgetlist_attribute_component.is_empty":"Keine Widgets vorhanden.","link_item_component.link.title_placeholder":"Titel","link_item_component.link.url_placeholder":"URL","link_item_component.link.internal":"INTERN","link_item_component.link.new_tab":"Link in neuem Tab öffnen","link_item_component.link.delete":"Link löschen","linklist_item_component.linklist.undefined":"Keine Links gesetzt","reference_attribute_component.clear_button.title":"Löschen","details_dialog.title":'Eigenschaften von "$1" anzeigen',"details_dialog.title.editing_mode":'Eigenschaften von "$1" bearbeiten',"details_dialog.close":"Schließen","workspace_settings_dialog.title":'Einstellungen von "$1"',"workspace_settings_dialog.input.title":"Titel","workspace_settings_dialog.input.owners":"Besitzer","workspace_settings_dialog.nothing_found":"Nichts gefunden","workspace_settings_dialog.searching":"Suche...","workspace_settings_dialog.too_short":"Benutzer suchen...","workspace_settings_dialog.cancel":"Abbrechen","workspace_settings_dialog.confirm":"Bestätigen","workspace_changes_dialog.dialog_header.title":'Änderungen von "$1"',"workspace_changes_dialog.dialog_header.title.is_transfer_mode":'Änderungen verschieben von "$1"',"workspace_changes_dialog.dialog_header.count_title.one":"($1 Objekt)","workspace_changes_dialog.dialog_header.count_title.many":"($1 Objekte)","workspace_changes_dialog.dialog_header.count_title.many.has_more":"($1+ Objekte)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.one":"($1 Objekt zum verschieben)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.many":"($1 Objekte zum verschieben)","workspace_changes_dialog.order_toggle.last_changed":"Nach Änderungsdatum sortieren","workspace_changes_dialog.order_toggle.last_changed.asc":"Älteste Änderung zuerst","workspace_changes_dialog.order_toggle.last_changed.desc":"Jüngste Änderung zuerst","workspace_changes_dialog.order_toggle.obj_class":"Nach Objekttyp sortieren","workspace_changes_dialog.order_toggle.obj_class.asc":"A bis Z (Typ)","workspace_changes_dialog.order_toggle.obj_class.desc":"Z bis A (Typ)","workspace_changes_dialog.order_toggle.modification":"Nach Art der Änderung sortieren","workspace_changes_dialog.order_toggle.modification.desc":"Neu, bearbeitet, gelöscht","workspace_changes_dialog.order_toggle.modification.asc":"Gelöscht, bearbeitet, neu","workspace_changes_dialog.order_toggle.is_disabled":"Aktuell ausgewählte Sortierung","workspace_changes_dialog.no_changes_notice":"In dieser Arbeitskopie wurde nichts geändert.","workspace_changes_dialog.change_item.last_changed":"Letzte Änderung","workspace_changes_dialog.change_item.publish_permission":"Veröffentlichung","workspace_changes_dialog.publish_permission.is_permitted":"ist erlaubt","workspace_changes_dialog.publish_permission.is_forbidden":"ist nicht erlaubt","workspace_changes_dialog.enable_transfer_mode_button.title":"Änderungen verschieben","workspace_changes_dialog.transfer_changes_button.title":"Ziel-Arbeitskopie auswählen","workspace_changes_dialog.disable_transfer_mode_button.title.cancel":"Abbrechen","workspace_changes_dialog.disable_transfer_mode_button.title.done":"Fertig","workspace_changes_dialog.close_dialog_button.title":"Schließen","workspace_publisher.exceeds_obj_limit":"Diese Arbeitskopie kann nicht veröffentlicht werden, weil die maximale Anzahl der in Ihrem Tarif enthaltenen CMS-Objekte überschritten wurde.","menu_item.spinner.loading":"Laden...","choose_obj_class_dialog.add_child_page.title":"Seitenvorlage auswählen","choose_obj_class_dialog.create_page.title":"Seitenvorlage auswählen","choose_obj_class_dialog.create_widget.title":"Widget auswählen","choose_obj_class_dialog.last_used":"Zuletzt verwendet","choose_obj_class_dialog.popular":"Oft verwendet","choose_obj_class_dialog.all":"Alle","editable_ws_dialog.view_mode.title.select_or_create":"Arbeitskopie wählen","editable_ws_dialog.view_mode.title.select":"Arbeitskopie auswählen","editable_ws_dialog.view_mode.title.create":"Arbeitskopie anlegen","editable_ws_dialog.view_mode.title.forbidden":"Keine Arbeitskopie verfügbar","editable_ws_dialog.view_mode.description.select_or_create":"Wählen Sie eine Arbeitskopie aus oder legen Sie eine neue an, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.select":"Wählen Sie eine Arbeitskopie aus, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.create":"Legen Sie eine neue Arbeitskopie an, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.forbidden":"Es gibt keine Arbeitskopie, in der Sie Inhalte ändern könnten. Auch wurde es Ihnen nicht ermöglicht, Arbeitskopien anzulegen.","editable_ws_dialog.transfer_changes.title.select_or_create":"Ziel-Arbeitskopie auswählen","editable_ws_dialog.transfer_changes.title.select":"Ziel-Arbeitskopie auswählen","editable_ws_dialog.transfer_changes.title.create":"Ziel-Arbeitskopie anlegen","editable_ws_dialog.transfer_changes.title.forbidden":"Keine Arbeitskopie verfügbar","editable_ws_dialog.transfer_changes.description.select_or_create":"Die Änderungen können in eine bestehende oder in eine neue Arbeitskopie verschoben werden.","editable_ws_dialog.transfer_changes.description.select":"Die Änderungen werden in die ausgewählte Arbeitskopie verschoben.","editable_ws_dialog.transfer_changes.description.create":"Bitte erstellen Sie die Ziel-Arbeitskopie","editable_ws_dialog.transfer_changes.description.forbidden":"Sie sind nicht dazu berechtigt, Änderungen in eine bestehende Arbeitskopie zu verschieben.","editable_ws_dialog.choose_existing":"Wählen Sie eine bestehende Arbeitskopie aus:","editable_ws_dialog.create_new":"Legen Sie eine neue Arbeitskopie an:","editable_ws_dialog.or_create_new":"Oder legen Sie eine neue an:","editable_ws_dialog.create_new_playholder":"Titel der neuen Arbeitskopie","editable_ws_dialog.select":"Auswählen","loader_error.title":"Beim Laden der Daten ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website.","publish_history_dialog.close":"Schließen","publish_history_dialog.info":"Wählen Sie aus der Liste eine Arbeitskopie, um einen archivierten Stand Ihrer Website zu sehen. Lernen Sie mehr über den ","publish_history_dialog.link":"Veröffentlichungsverlauf","publish_history_dialog.revision_list.changes_count":"Geändert","publish_history_dialog.revision_list.changes_count.many":"$1 Objekte","publish_history_dialog.revision_list.changes_count.not_available":"Nicht verfügbar","publish_history_dialog.revision_list.changes_count.one":"1 Objekt","publish_history_dialog.revision_list.is_limited":"Die Zahl der maximal angezeigten Verlaufseinträge ($1) hängt von Ihrem Tarif ab.","publish_history_dialog.revision_list.not_restorable":"Dies sind die aktuell veröffentlichten Inhalte.","publish_history_dialog.revision_list.published_at":"Veröffentlicht ","publish_history_dialog.title":"Veröffentlichungsverlauf","sidebar.browse_content_button.hint":"Content Browser öffnen","sidebar.browse_content_button.hint.is_disabled":"Der Content Browser ist nicht verfügbar, während gelöschte Inhalte angezeigt werden.","sidebar.details_button.hint":"Seiteneigenschaften anzeigen","sidebar.details_button.hint.active":"Seiteneigenschaften","sidebar.workspaces_button.hint":"Arbeitskopien anzeigen","sidebar.workspaces_button.hint.active":"Arbeitskopien","sidebar.devices_button.hint":"Seite in verschiedenen Größen betrachten","sidebar.devices_button.hint.active":"Seite in verschiedenen Größen","sidebar.hide_controls_button.hint":"Bedienleiste verstecken","sidebar.notifications_button.hint":"Benachrichtigungen anzeigen","sidebar.notifications_button.hint.active":"Benachrichtigungen","sidebar.workspace_list.workspace_item.hint.is_disabled":"Diese Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht ausgewählt werden","sidebar.workspace_list.workspace_item.hint.is_selectable":"Diese Arbeitskopie auswählen","sidebar.workspace_list.workspace_item.hint.is_published":"Veröffentlichte Inhalte auswählen","sidebar.workspace_list.workspace_item.hint":"Ausgewählte Arbeitskopie","sidebar.workspace_list.workspace_item.delete":"Diese Arbeitskopie löschen","sidebar.workspaces_panel.general_workspaces_group.title":"Arbeitskopien","sidebar.workspaces_panel.current_workspace_group.title":"Diese Arbeitskopie","sidebar.workspaces_panel.other_workspaces_group.title":"Andere Arbeitskopien","sidebar.workspaces_panel.create_workspace_button.title":"Neu","sidebar.workspaces_panel.create_workspace_button.hint":"Eine Arbeitskopie anlegen","sidebar.workspaces_panel.create_workspace_button.is_disabled":"Eine Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht angelegt werden.","sidebar.workspaces_panel.publish_history_button.title":"Verlauf","sidebar.workspaces_panel.publish_history_button.hint":"Veröffentlichungsverlauf anzeigen","sidebar.workspaces_panel.publish_history_button.is_disabled":"Der Veröffentlichungsverlauf kann aufgrund fehlender Benutzerrechte nicht angezeigt werden.","sidebar.workspaces_panel.changes_button.title":"Änderungen","sidebar.workspaces_panel.changes_button.hint":"Änderungen in dieser Arbeitskopie anzeigen","sidebar.workspaces_panel.changes_button.is_forbidden":"Die Änderungen in dieser Arbeitskopie können aufgrund fehlender Benutzerrechte nicht angezeigt werden.","sidebar.workspaces_panel.publish_button.title":"Veröffentlichen","sidebar.workspaces_panel.publish_button.hint":"Diese Arbeitskopie veröffentlichten","sidebar.workspaces_panel.publish_button.is_forbidden":"Die Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht veröffentlicht werden.","sidebar.workspaces_panel.rebase_button.title":"Aktualisieren","sidebar.workspaces_panel.rebase_button.hint":"Diese Arbeitskopie aktualisieren","sidebar.workspaces_panel.rebase_button.is_forbidden":"Die Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht aktualisiert werden.","sidebar.workspaces_panel.settings_button.title":"Einstellungen","sidebar.workspaces_panel.settings_button.hint":"Einstellungen dieser Arbeitskopie bearbeiten","sidebar.workspaces_panel.settings_button.is_forbidden":"Die Einstellungen der Arbeitskopie können aufgrund fehlender Benutzerrechte nicht bearbeitet werden.","sidebar.notifications_panel.publish_restrictions_group.title":"Veröffentlichung nicht möglich","sidebar.notifications_panel.potential_conflicts_group.title":"Potenzieller Konflikt","sidebar.notifications_panel.potential_conflicts_group.description":"Änderungen an dieser Seite führen beim Veröffentlichen zu einem Konflikt. Die Seite wurde bereits in folgenden Arbeitskopien geändert:","sidebar.notifications_panel.conflict_group.title":"Konflikt","sidebar.notifications_panel.conflict_group.description1":"Eine andere Version dieser Seite wurde zwischenzeitlich veröffentlicht. ","sidebar.notifications_panel.conflict_group.link":"Lösen Sie den Konflikt","sidebar.notifications_panel.conflict_group.description2":", um diese Arbeitskopie veröffentlichen zu können.","sidebar.notifications_panel.no_notifications":"Derzeit keine Benachrichtigungen.","sidebar.devices_panel.title":"Vorschaugrößen","sidebar.devices_panel.device.desktop":"Desktop","sidebar.devices_panel.device.laptop":"Laptop","sidebar.devices_panel.device.mobile":"Mobiltelefon im Hochformat","sidebar.devices_panel.device.tablet":"Tablet im Hochformat","resource_dialog.commands.mark_resolved_obj.dialog.description":"Diese Ressource wurde in einer anderen, inzwischen veröffentlichten Arbeitskopie geändert. Bitte bestätigen Sie, dass Ihre Änderungen erhalten und die parallel durchgeführten Änderungen verworfen werden.","resource_dialog.commands.mark_resolved_obj.title":"Parallele Änderungen an der Ressource überschreiben","resource_dialog.commands.restore_obj.title":"Ressource wiederherstellen","resource_dialog.title":'Eigenschaften der Ressource "$1"',"menu_bar.create":"Anlegen","saving_indicator_item.saving":"Wird gespeichert...","saving_indicator_item.saved":"Änderungen gespeichert","inplace_marker.overlapping":"Zwei oder mehrere Menü-Handles überschneiden sich. Bitte passen Sie Ihr CSS an. Die folgenden Menü-Handles überschneiden sich:","widget_marker.widget_is_new":"Widget ist neu","widget_marker.widget_is_edited":"Widget wurde geändert","widget_marker.widget_is_edited_and_dragged_here":"Widget wurde geändert und hierher gezogen","widget_marker.widget_is_edited_and_dragged_away":"Widget wurde geändert und von hier weggezogen","widget_marker.widget_is_deleted":"Widget wurde gelöscht","widget_marker.widget_is_dragged_here":"Widget wurde hierher gezogen","widget_marker.widget_is_dragged_away":"Widget wurde von hier weggezogen","child_list_menu.description":"Elemente von $1","transfer_errors_dialog.title":"Fehler beim Verschieben von Änderungen","transfer_errors_dialog.modified":"Einige der Änderungen konnten nicht verschoben werden, weil die betreffenden Inhalte auch in der Ziel-Arbeitskopie modifiziert wurden.","transfer_errors_dialog.conflicting":"Einige der Änderungen wurden nicht verschoben, weil die betreffenden Inhalte in der Ziel-Arbeitskopie nicht aktuell sind. Die Änderungen auf diese Inhalte anzuwenden, würde zu einem Konflikt führen. Bitte stellen Sie sicher, dass beide Arbeitskopien aktualisiert wurden und konfliktfrei sind.","current_page_link_dialog.title":"Seite teilen","current_page_link_dialog.description":"Mit dieser URL können Sie die aktuelle Seite als Teil dieser Arbeitskopie teilen. Die Empfänger müssen angemeldet sein und Zugriff auf die Arbeitskopie haben.","error_dialog.toggle_details":"Technische Details","error_dialog.error_details":"Technische Details","commands.open_obj_in_content_browser.title":"Im Content Browser öffnen","commands.navigate_ui_to_obj.title":"Zum Objekt navigieren","commands.open_page_link_dialog.title":"Seite teilen","commands.open_page_link_dialog.is_deleted":"Eine gelöschte Seite kann nicht geteilt werden, weil sie in der Vorschau nicht zugänglich ist","commands.create_workspace.dialog.title":"Arbeitskopie anlegen","commands.create_workspace.dialog.description":"Bitte geben Sie den Titel der neuen Arbeitskopie ein.","commands.create_workspace.dialog.placeholder":"Neuer Titel","commands.create_workspace.dialog.accept":"Anlegen","commands.open_dashboard.title":"Dashboard öffnen","commands.open_user_guide.title":"Hilfe öffnen","commands.rebase_workspace.has_conflicts.title":"Geänderte Inhalte wurden zwischenzeitlich veröffentlicht","commands.rebase_workspace.has_conflicts.description":"Ihre Arbeitskopie konnte nicht vollständig aktualisiert werden. Einige Inhalte wurden auch in einer anderen Arbeitskopie geändert, die inzwischen veröffentlicht wurde. Bitte entnehmen Sie die Details der Liste der Änderungen.","commands.rebase_workspace.open_changes_dialog":"Änderungen anzeigen","workflows.delete_workspace.dialog.title":'Wirklich "$1" löschen?',"workflows.delete_workspace.dialog.description":"Eine gelöschte Arbeitskopie kann nicht wiederhergestellt werden.","workflows.delete_workspace.dialog.confirm":"Löschen","workflows.change_permalink.dialog.title":'Permalink von "$1" ändern',"workflows.change_permalink.dialog.placeholder":"Bitte geben Sie einen neuen Permalink ein.","workflows.change_permalink.dialog.change":"Ändern","workflows.change_permalink.info.is_taken":'Der Permalink "$1" wird bereits verwendet.',"workflows.change_permalink.info.is_invalid":'Der Permalink "$1" ist nicht zulässig: Ein Permalink darf nur die Buchstaben von A bis Z, Punkte, Schrägstriche, Trenn- und Unterstriche enthalten.',"workflows.change_permalink.info.is_scrivito":'Der Permalink "$1" ist nicht zulässig: Ein Permalink darf nicht "scrivito" lauten und darf nicht mit "scrivito/" anfangen.',"commands.restore_workspace.dialog.confirm":"Anlegen","commands.restore_workspace.dialog.description":'Dies legt eine Arbeitskopie an, die den archivierten Stand Ihrer Website enthält, nachdem "$1" veröffentlicht wurde.',"commands.restore_workspace.dialog.title":'"$1" anlegen?',"commands.restore_workspace.workspace_title":"Archiviert: $1","commands.open_page_details.title.editing_mode":"Seiteneigenschaften bearbeiten","commands.open_page_details.title":"Seiteneigenschaften anzeigen","commands.open_page_details.dialog.title.editing_mode":'Eigenschaften von "$1" bearbeiten',"commands.open_page_details.dialog.title":'Eigenschaften von "$1" anzeigen',"commands.open_page_details.is_disabled":"Diese Seite hat keine Eigenschaften","commands.save_obj_to_clipboard.title":"Seite kopieren oder verschieben","commands.save_obj_to_clipboard.has_children":"Seiten mit Unterseiten können noch nicht verschoben oder kopiert werden.","commands.save_obj_to_clipboard.is_deleted":"Gelöschte Seiten können nocht nicht verschoben oder kopiert werden.","confirm_delete_dialog.cancel":"Abbrechen","confirm_delete_dialog.confirm":"Löschen","confirm_delete_dialog.confirm.has_backlinks":"Trotzdem löschen","confirm_delete_dialog.is_edited":"Diese $1 kann bei Bedarf später wiederhergestellt werden, jedoch ohne die Änderungen, die in der aktuellen Arbeitskopie an ihr vorgenommen wurden.","confirm_delete_dialog.is_new":"Sie sind dabei, eine neue $1 dieser Arbeitskopie zu löschen. Dies kann nicht rückgängig gemacht werden. Bei Bedarf können Sie die $1 jedoch erneut erstellen und verlinken.","confirm_delete_dialog.one_obj_to_delete.many_backlinks":"$1 Objekte verlinken dieses $2:","confirm_delete_dialog.many_objs_to_delete.many_backlinks":"$1 Objekte verlinken diese $2:","confirm_delete_dialog.not_modified":"Diese $1 kann bei Bedarf später wiederhergestellt werden.","confirm_delete_dialog.one_obj_to_delete.one_backlink":"Ein Objekt verlinkt dieses $1:","confirm_delete_dialog.many_objs_to_delete.one_backlink":"Ein Objekt verlinkt diese $1:","confirm_delete_dialog.title":"Sind Sie sicher, dass Sie diese $1 löschen möchten?","confirm_delete_dialog.title.many_subjects":"Sind Sie sicher, dass Sie diese $1 löschen möchten?","commands.delete_obj.has_children":"Seiten mit Unterseiten können noch nicht gelöscht werden.","commands.delete_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden.","commands.delete_obj.title":"$1 löschen","commands.revert_obj.title":"Änderungen an Seite verwerfen","commands.revert_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden. Daher gibt es nichts zu verwerfen.","commands.revert_obj.is_new":"Dies ist eine neue Seite. Um die Erstellung dieser Seite rückgängig zu machen, löschen Sie sie bitte.","commands.revert_obj.unmodified":"Diese Seite wurde nicht geändert. Daher gibt es nichts zu verwerfen.","commands.revert_obj.dialog.title":"Wirklich Änderungen an dieser Seite verwerfen?","commands.revert_obj.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_obj.dialog.confirm":"Verwerfen","commands.revert_resource.title":"Änderungen an Ressource verwerfen","commands.revert_resource.is_new":"Dies ist eine neue Ressource. Um die Erstellung dieser Ressource rückgängig zu machen, löschen Sie sie bitte.","commands.revert_resource.dialog.title":"Wirklich Änderungen an dieser Ressource verwerfen?","commands.revert_resource.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_resource.dialog.confirm":"Verwerfen","commands.revert_widget.title":"Änderungen am Widget verwerfen","commands.revert_widget.is_new":"Dies ist ein neues Widget. Um die Erstellung dieses Widgets rückgängig zu machen, löschen Sie es bitte.","commands.revert_widget.is_not_modified":"Dieses Widget wurde nicht geändert. Daher gibt es nichts zu verwerfen.","commands.revert_widget.dialog.title":"Wirklich Änderungen an diesem Widget verwerfen?","commands.revert_widget.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_widget.dialog.confirm":"Verwerfen","commands.restore_widget.title":"Widget wiederherstellen","commands.restore_obj.title":"Seite wiederherstellen","commands.mark_resolved_obj.title":"Parallele Änderungen an der Seite überschreiben","commands.mark_resolved_obj.dialog.title":"Wirklich parallele Änderungen an der Seite überschreiben?","commands.mark_resolved_obj.dialog.description":"Diese Seite wurde in einer anderen, inzwischen veröffentlichten Arbeitskopie geändert. Bitte bestätigen Sie, dass Ihre Änderungen erhalten und die parallel durchgeführten Änderungen verworfen werden.","commands.mark_resolved_obj.dialog.confirm":"Änderungen überschreiben","commands.duplicate_obj.title":"Seite duplizieren","commands.duplicate_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden.","commands.duplicate_obj.has_children":"Seiten mit Unterseiten können noch nicht dupliziert werden.","commands.duplicate_widget.title":"Widget duplizieren","commands.create_page.title":"Neue Seite","commands.create_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Seiten anzulegen oder bestehende Inhalte zu ändern.","commands.add_subpage.child_list.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.add_subpage.child_list.title":"Seite hinzufügen","commands.add_subpage.child_list.tooltip":'Eine Seite zu "$1" hinzufügen',"commands.add_subpage.child_list.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.add_subpage.current_page.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.add_subpage.current_page.title":"Unterseite hinzufügen","commands.add_subpage.current_page.tooltip":'Eine Unterseite zu "$1" hinzufügen',"commands.add_subpage.current_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.child_list.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.copy_obj_from_clipboard.child_list.paste_forbidden":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder kopiert werden: $1","commands.copy_obj_from_clipboard.child_list.title":"Seite hier einfügen","commands.copy_obj_from_clipboard.child_list.tooltip":'Seite "$1" unterhalb von "$2" einfügen.',"commands.copy_obj_from_clipboard.child_list.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.child_list.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.copy_obj_from_clipboard.current_page.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.copy_obj_from_clipboard.current_page.paste_forbidden":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder eingefügt werden: $1","commands.copy_obj_from_clipboard.current_page.title":"Als Unterseite einfügen","commands.copy_obj_from_clipboard.current_page.tooltip":'Erstelle eine Kopie von "$1" und verwende sie als eine Unterseite von "$2".',"commands.copy_obj_from_clipboard.current_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.current_page.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.child_list.forbidden.invalid_class":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder kopiert werden: $1","commands.move_obj_from_clipboard.child_list.forbidden.invalid_workspace":"Eine Seite kann nur innerhalb ihrer Arbeitskopie verschoben werden.","commands.move_obj_from_clipboard.child_list.forbidden.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.move_obj_from_clipboard.child_list.forbidden.obj_identity":"Eine Seite kann nicht unter sich selbst verschoben werden.","commands.move_obj_from_clipboard.child_list.forbidden.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.child_list.source_not_found":"Die zu verschiebende Seite konnte in der aktuellen Arbeitskopie nicht gefunden werden.","commands.move_obj_from_clipboard.child_list.title":"Seite hierher verschieben","commands.move_obj_from_clipboard.child_list.tooltip":'Seite "$1" unterhalb von "$2" verschieben.',"commands.move_obj_from_clipboard.current_page.forbidden.invalid_class":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder hier eingefügt werden: $1","commands.move_obj_from_clipboard.current_page.forbidden.invalid_workspace":"Eine Seite kann nur innerhalb ihrer Arbeitskopie verschoben werden.","commands.move_obj_from_clipboard.current_page.forbidden.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.move_obj_from_clipboard.current_page.forbidden.obj_identity":"Eine Seite kann nicht unter sich selbst verschoben werden. Die aktuelle Seite liegt in der Zwischenablage.","commands.move_obj_from_clipboard.current_page.forbidden.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.current_page.source_not_found":"Die zu verschiebende Seite konnte in der aktuellen Arbeitskopie nicht gefunden werden.","commands.move_obj_from_clipboard.current_page.title":"Als Unterseite hierher verschieben","commands.move_obj_from_clipboard.current_page.tooltip":'Füge "$1" als Unterseite von "$2" ein.',"obj_sorting_dialog.title":"Elemente sortieren","commands.sort_items.title":"Elemente sortieren","commands.sort_items.tooltip":"Reihenfolge der Elemente unterhalb $1 bearbeiten","commands.sort_items.auto_sort":"Diese Navigation wird automatisch sortiert.","commands.sort_items.too_less_children":"Die Navigation kann nicht sortiert werden, weil sie weniger als zwei Elemente enthält.","commands.choose_and_create_widget.title":"Widget hinzufügen","commands.choose_and_create_widget.disabled":"Sie können hier keine Widgets einfügen.","commands.create_widget.title":"$1 einfügen","commands.widget_details.title":"Widget-Eigenschaften","commands.widget_details.has_no_properties":"Dieses Widget hat keine Eigenschaften","commands.widget_details.dialog.title":'Eigenschaften von "$1"',"commands.save_widget_to_clipboard.title":"Widget kopieren","commands.copy_widget_from_clipboard.title":"Widget einfügen","commands.copy_widget_from_clipboard.paste_forbidden":"Aufgrund seines Typs kann das Widget hier nicht eingefügt werden. Nur Widgets der folgenden Typen können hierher verschoben oder kopiert werden: $1.","commands.delete_widget.title":"Widget löschen","commands.delete_widget.dialog.title":"Wirklich dieses Widget löschen?","commands.delete_widget.dialog.description":"Ein gelöschtes Widget kann nicht wiederhergestellt werden.","commands.delete_widget.dialog.confirm":"Löschen","topbar.show_menubar":"Bedienleiste einblenden","topbar.display_mode_selector.view_mode":"Vorschau","topbar.display_mode_selector.editing_mode":"Bearbeiten","topbar.display_mode_selector.diff_mode":"Vergleichen","topbar.display_mode_selector.is_selected":"Aktuell ausgewählter Anzeigemodus","topbar.saving_indicator.write_started":"Wird gespeichert...","topbar.saving_indicator.write_ended":"Änderungen gespeichert","topbar.warning.message":"Bitte die JS-Konsole prüfen","topbar.warning.alert_message":"Es gab Warnungen. Für Details, schauen Sie bitte in die JavaScript-Konsole.","topbar.current_page_menu.title.is_new":"Diese Seite ist neu.","topbar.current_page_menu.title.is_edited":"Diese Seite wurde geändert.","topbar.current_page_menu.title.is_deleted":"Diese Seite wurde gelöscht.","workflows.publish_workspace.dialog.confirm":"Veröffentlichen","workflows.publish_workspace.dialog.title":'"$1" veröffentlichen?',"workflows.publish_workspace.dialog.description":"Sie können diese Veröffentlichung mit Hilfe des Veröffentlichungsverlaufs rückgängig machen.","workflows.publish_workspace.error_dialog.title":"Arbeitskopie konnte nicht veröffentlicht werden","workflows.publish_workspace.error_dialog.description":"Bitte entnehmen Sie die Details der Liste der Änderungen.","workflows.publish_workspace.error_dialog.confirm":"Liste der Änderungen","workflows.publish_workspace.alert.invalid_certificates":"Die Arbeitskopie konnte nicht veröffentlicht werden, weil mindestens ein Benutzer gerade Inhalte darin ändert.",ajax_error:"Die Kommunikation mit dem CMS ist aufgrund eines Fehlers fehlgeschlagen: $1","ajax_error.communication":"Die Kommunikation mit dem CMS ist fehlgeschlagen. Bitte überprüfen Sie Ihre Netzwerkverbindung.","ajax_error.message_for_editor":"Bei Ihrer letzten Aktion ist ein technischer Fehler aufgetreten. Bitte versuchen Sie es später noch einmal. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website und geben Sie bitte die technischen Details an.","workspace_limit_exceeded.message":"In Ihrem Tarif sind keine weiteren Arbeitskopien verfügbar.",warn_before_unloading:"Es gibt nicht gespeicherte Änderungen! Möchten Sie das Browserfenster trotzdem schließen?","widgetlist_field_element.markup_error":"Scrivito hat festgestellt, dass eines der Widgets invalides Markup aufweist. Bitte laden Sie die Seite neu und versuchen Sie es noch einmal. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website.","test.two_arguments":"$1, $2","test.four_arguments":"$1, $2, $3, $4","image_editor_dialog.dialog_header.title":"Bild bearbeiten"})},function(e,t,n){"use strict";function r(e){Object.defineProperty(e,"Scrivito",{get:function(){throw new Error("Are you trying to access the Scrivito API? Switch your JavaScript console to the application frame first. See https://scrivito.com/using-browser-console")}})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r}]);
212
+ "use strict";e.exports=function(e){return null==e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(4),s=(r(a),n(5)),u=r(s),l=function(e,t){var n=e.component,r=void 0===n?"span":n,s=e.innerRef,u=e.children,l=i(e,["component","innerRef","children"]),c=t.popper,d=function(e){c.setArrowNode(e),"function"==typeof s&&s(e)},f=c.getArrowStyle();if("function"==typeof u){return u({arrowProps:{ref:d,style:f},restProps:l})}var p=o({},l,{style:o({},f,l.style)});return"string"==typeof r?p.ref=d:p.innerRef=d,(0,a.createElement)(r,p,u)};l.contextTypes={popper:u.default.object.isRequired},l.propTypes={component:u.default.oneOfType([u.default.node,u.default.func]),innerRef:u.default.func,children:u.default.oneOfType([u.default.node,u.default.func])},t.default=l}])})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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)}function a(e,t){var n,a;return a=n=function(n){function a(){var e,t,n,o;r(this,a);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return t=n=i(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(u))),n.__outsideClickHandler=null,n.enableOnClickOutside=function(){var e=n.__outsideClickHandler;if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){var r=n.props.preventDefault||-1===["touchstart","touchmove"].indexOf(t)?null:{passive:!0};document.addEventListener(t,e,r)})}},n.disableOnClickOutside=function(){var e=n.__outsideClickHandler;if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e)})}},n.getRef=function(e){return n.instanceRef=e},o=t,i(n,o)}return o(a,n),c(a,[{key:"getInstance",value:function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t}},{key:"componentDidMount",value:function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside){if(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp)throw new Error("WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.")}else if("function"==typeof e.handleClickOutside)s.Component.prototype.isPrototypeOf(e)?this.__clickOutsideHandlerProp=e.handleClickOutside.bind(e):this.__clickOutsideHandlerProp=e.handleClickOutside;else{if("function"!=typeof e.props.handleClickOutside)throw new Error("WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.");this.__clickOutsideHandlerProp=e.props.handleClickOutside}null!==Object(u.findDOMNode)(e)&&this.addOutsideClickHandler()}}},{key:"componentWillReceiveProps",value:function(e){this.props.disableOnClickOutside&&!e.disableOnClickOutside?this.enableOnClickOutside():!this.props.disableOnClickOutside&&e.disableOnClickOutside&&this.disableOnClickOutside()}},{key:"componentDidUpdate",value:function(){var e=Object(u.findDOMNode)(this.getInstance());return null===e&&this.__outsideClickHandler?void this.removeOutsideClickHandler():null===e||this.__outsideClickHandler?void 0:void this.addOutsideClickHandler()}},{key:"componentWillUnmount",value:function(){this.removeOutsideClickHandler()}},{key:"addOutsideClickHandler",value:function(){var e=this.__outsideClickHandler=Object(l.a)(Object(u.findDOMNode)(this.getInstance()),this.__clickOutsideHandlerProp,this.props.outsideClickIgnoreClass,this.props.excludeScrollbar,this.props.preventDefault,this.props.stopPropagation),t=d.length;d.push(this),f[t]=e,this.props.disableOnClickOutside||this.enableOnClickOutside()}},{key:"removeOutsideClickHandler",value:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var e=d.indexOf(this);e>-1&&(f[e]&&f.splice(e,1),d.splice(e,1))}},{key:"render",value:function(){var t=this,n=Object.keys(this.props).filter(function(e){return"excludeScrollbar"!==e}).reduce(function(e,n){return e[n]=t.props[n],e},{});return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(s.createElement)(e,n)}}]),a}(s.Component),n.displayName="OnClickOutside("+(e.displayName||e.name||"Component")+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(20),u=(n.n(s),n(31)),l=(n.n(u),n(702)),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=[],f=[]},function(e,t,n){"use strict";function r(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}function i(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(r(e,t,n))return!0;e=e.parentNode}return e}function o(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}function a(e,t,n,r,a,s){return function(u){a&&u.preventDefault(),s&&u.stopPropagation();var l=u.target;r&&o(u)||i(l,e,n)!==document||t(u)}}t.a=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForCustomAttributeItemDescription)("enum",{render:function(){var e=this,t=this.props.field.get(),n=this.props.field.values();return this.props.readOnly?React.createElement("span",{className:"read_only"},this.props.field.titleForValue(t)):React.createElement("ul",{className:"enum_attribute"},n.map(function(n){return React.createElement("li",{key:n,className:n===t?"enum_attribute_active":"",onClick:function(r){return e._onClick(r,n,t)}},e.props.field.titleForValue(n))}))},_onClick:function(e,t,n){e.preventDefault(),e.stopPropagation();var r=t===n?null:t;this.props.field.update(r)}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=n(487),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=(0,r.createClassForCustomAttributeItemDescription)("link",{render:function(){return React.createElement(o.default,{link:this.props.field.get(),readOnly:this.props.readOnly,onChange:this._onChange})},_onChange:function(e){this.props.field.update(e)}});t.default=a},function(e,t,n){var r,i;i=n(11),r=i({displayName:"DialogHeader",render:function(){return React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("h3",{className:"scrivito_title"},this.props.title),this.props.subtitle?React.createElement("p",{className:"scrivito_description"},this.props.subtitle):void 0)}}),e.exports=r},function(e,t,n){var r,i;i=n(11),r=i({displayName:"DialogBody",render:function(){return React.createElement("div",{className:"scrivito_modal_body"},this.props.body)}}),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(708),l=r(u),c=n(709),d=r(c),f=n(711),p=r(f),h=n(712),_=r(h),m=n(0),v=r(m),g=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.initFilters(e),n}return a(t,e),s(t,[{key:"deselectHierarchicalFilters",value:function(){return v.default.each(this.getHierarchicalFilters(),function(e){return e.deselect()})}},{key:"setSearchTerm",value:function(e){this.searchTerm=e,this.changed()}},{key:"getAllFilters",value:function(){return v.default.union(this.getHierarchicalFilters(),this.additionalFilters)}},{key:"hasActiveChildren",value:function(){return v.default.some(this.getAllFilters(),function(e){return e.hasActiveChildren()})}},{key:"getHierarchicalFilters",value:function(){return v.default.flatten(v.default.map(this.getTreeFilters(),function(e){return e.subFilters}))}},{key:"getTreeFilters",value:function(){return this.treeFilters}},{key:"hasHierarchicalFilters",value:function(){return this.treeFilters.length>0}},{key:"hasAdditionalFilters",value:function(){return this.additionalFilters.length>0}},{key:"initFilters",value:function(e){var t=this,n=function(e,n){return new p.default(t,n,e)};this.treeFilters=[],this.additionalFilters=[],v.default.each(Object.keys(e||{}),function(r){var i=e[r];if(i)switch(i.type||"tree"){case"tree":t.treeFilters.push({config:i,subFilters:v.default.map(i.options,n)});break;case"radio_button":case"radioButton":t.additionalFilters.push(new d.default(t,r,i));break;case"check_box":case"checkbox":t.additionalFilters.push(new _.default(t,r,i))}})}}]),t}(l.default);t.default=g},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=function(){function e(){r(this,e),this.callbacks={}}return i(e,[{key:"on",value:function(e,t){this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t)}},{key:"trigger",value:function(e,t){var n=this,r=this.callbacks[e],i=[t];r&&(0,o.each)(r,function(e){e.apply(n,i)})}},{key:"onChange",value:function(e){this.on("change",e)}},{key:"changed",value:function(){this.trigger("change",this)}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(490),l=r(u),c=n(710),d=r(c),f=n(0),p=function(e){function t(e,n,r){i(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));return a.type="radio",a.children=(0,f.map)(r.options,function(e,t){return new d.default(a,t,e)}),a}return a(t,e),s(t,[{key:"activate",value:function(e){(0,f.each)(this.children,function(t){t.active=t===e}),this.filter.changed()}},{key:"deactivateAll",value:function(){this.deselect(),this.filter.changed()}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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 a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(231),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.filter,n,o));return a.value=o.value,a.query=o.query,a.preset=o.preset,a.group=e,a.active=o.selected,a}return o(t,e),a(t,[{key:"setActive",value:function(){return this.group.activate(this)}},{key:"isActive",value:function(){return!!this.active}}]),t}(u.default);t.default=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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 a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(231),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(0),c=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,o));a.type="tree",a.icon=o.icon,a.query=o.query,a.expanded=o.expanded,a.value=o.value,a.field=o.field,a.operator=o.operator,a.preset=o.preset,a.active=o.selected;var s=o.options||[];return a.children=(0,l.map)(s,function(n,r){return new t(e,r,n)}),a}return o(t,e),a(t,[{key:"isLeaf",value:function(){return 0===this.children.length}},{key:"isExpanded",value:function(){return!!this.expanded}},{key:"isActive",value:function(){return!!this.active}},{key:"toggleActive",value:function(){this.isActive()?this.active=!1:(this.filter.deselectHierarchicalFilters(),this.active=!0),this.filter.changed()}},{key:"hasActiveChildren",value:function(){return this.isActive()||(0,l.some)(this.children,function(e){return e.isActive()})}},{key:"deselect",value:function(){this.active=!1,(0,l.each)(this.children,function(e){return e.deselect()})}}]),t}(u.default);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(713),u=r(s),l=n(490),c=r(l),d=n(0),f=function(e){function t(e,n,r){i(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));return a.type="checkbox",a.children=(0,d.map)(r.options,function(t,n){return new u.default(e,n,t)}),a}return a(t,e),t}(c.default);t.default=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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 a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(231),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,o));return a.value=o.value,a.preset=o.preset,a.active=o.selected,a}return o(t,e),a(t,[{key:"toggleActive",value:function(){return this.active=!this.active,this.filter.changed()}},{key:"isActive",value:function(){return!!this.active}}]),t}(u.default);t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return t?new _.default(e):new p.default(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=n(715),l=r(u),c=n(717),d=r(c),f=n(491),p=r(f),h=n(493),_=r(h),m=function(){function e(t){var n=t.preset,r=t.uploadOptions;i(this,e),this._preset=n,this._uploadOptions=r}return a(e,[{key:"isValid",value:function(){return this._preset.isValid()}},{key:"uploadOptions",value:function(e){return(0,s.extend)({preset:this._preset.values(),upload:e},this._uploadOptions)}},{key:"errors",value:function(){return this._preset.errors()}}]),e}(),v=function(){function e(t){var n=t.inferCreationPresets,r=t.basePreset;i(this,e),this.basePreset=r,this.inferCreationPresets=n}return a(e,[{key:"buildObjUploadControl",value:function(e){var t=e.filter,n=e.activeTags,r=o(t,this.inferCreationPresets),i=r.generatePresetForUpload(),a={restrictedPreset:this.inferCreationPresets,basePreset:this.basePreset,activeTags:n};return new m({preset:i,uploadOptions:a})}},{key:"buildObjCreateControl",value:function(e){var t=e.filter,n=e.activeTags,r={restrictedPreset:this.inferCreationPresets,basePreset:this.basePreset,activeTags:n};return this.inferCreationPresets?new d.default({filter:t,createOptions:r}):new l.default({filter:t,createOptions:r})}}]),e}();t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=n(232),u=r(s),l=n(491),c=r(l),d=function(){function e(t){var n=t.filter,r=t.createOptions;i(this,e),this.filter=n,this._createOptions=r;var o=new u.default(n);if(this.activeConfigs=o.findActiveFilterItems(),this._showCreationItem=(0,a.some)(this.activeConfigs,function(e){return e.enablesCreation()}),this._showCreationItem){var s=new c.default(n);this.preset=s.generatePresetForCreate()}}return o(e,[{key:"createOptions",value:function(){return(0,a.extend)({preset:this.preset.values()},this._createOptions)}},{key:"showCreationItem",value:function(){return this._showCreationItem}},{key:"isActive",value:function(){return!(this.preventCreation()||!this.presetIsValid())}},{key:"error",value:function(){return this.preventCreation()?{type:"creation_not_possible",nodeTitles:this.nodeTitlesPreventingCreation()}:this.preset.isValid()?{type:"obj_class_not_provided"}:{type:"preset_conflict",fields:this.buildPresetConflictError()}}},{key:"preventCreation",value:function(){return(0,a.some)(this.activeConfigs,function(e){return e.preventsCreation()})}},{key:"presetIsValid",value:function(){return this.preset.isValid()&&this.preset.values()._obj_class}},{key:"nodeTitlesPreventingCreation",value:function(){var e=(0,a.flatten)((0,a.map)(this.activeConfigs,function(e){return e.nodesPreventingCreation()}));return(0,a.map)(e,function(e){return e.title})}},{key:"buildPresetConflictError",value:function(){var e={};return(0,a.each)(this.preset.errors(),function(t,n){return e[n]=t,e[n]}),e}}]),e}();t.default=d},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(e){return void 0===e.value?e.name:e.value},u=function(e,t,n){var r=t[0];if("checkbox"!==a.default.last(n).type&&r[e])return r[e];var i=a.default.find(n,function(t){return t[e]});return i&&i[e]},l=function(){function e(t,n){r(this,e),this.parents=t,this.nodes=n}return i(e,[{key:"activeNodes",value:function(){return this.nodes}},{key:"values",value:function(){return a.default.flatten(a.default.map(this.activeNodes(),s))}},{key:"query",value:function(){return"checkbox"!==a.default.last(this.parents).type&&this.activeNodes()[0].query}},{key:"hasQuery",value:function(){return!!this.query()}},{key:"field",value:function(){return u("field",this.activeNodes(),this.parents)}},{key:"hasField",value:function(){return!!this.field()}},{key:"preventsCreation",value:function(){return this.nodesPreventingCreation().length>0}},{key:"nodesPreventingCreation",value:function(){return a.default.select(this.activeNodes(),function(e){return!1===e.enable_create})}},{key:"enablesCreation",value:function(){return a.default.some(this.activeNodes(),function(e){return!0===e.enable_create})}},{key:"operator",value:function(){return u("operator",this.activeNodes(),this.parents)||"equals"}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=n(493),u=r(s),l=n(41),c=r(l),d=function(){function e(t){var n=t.filter,r=t.createOptions;i(this,e),this.filter=n;var o=new u.default(n);this.preset=o.generatePresetForCreate(),this._createOptions=r}return o(e,[{key:"createOptions",value:function(){return(0,a.extend)({preset:this.preset.values()},this._createOptions)}},{key:"showCreationItem",value:function(){return this.isActive()}},{key:"isActive",value:function(){if(!this.preset.isValid())return!1;var e=this.preset.values()._obj_class;if(!e)return!1;var t=c.default.find(e);return!!t&&!t.isBinary()}},{key:"error",value:function(){return{type:"obj_class_not_provided"}}}]),e}();t.default=d},function(e,t,n){var r,i,o,a,s,u,l,c,d,f,p,h,_,m,v,g,y,b,w,k,M;y=n(0),p=n(11),c=n(719),o=n(745),u=n(753),s=n(772).default,a=n(775),l=n(234),n(235),b=n(136),v=b.setObjSource,b.LAST_ADDED,w=n(123),f=w.createObj,_=w.objDeleted,k=n(321),k.fetchTags,k.disableTags,M=n(236),m=M.setInitiallySelectedObjIds,g=M.toggleSelect,d=M.changeSelectionMode,h=M.deselectObjs,r=p({displayName:"App",updateFilter:function(e){return this.setState({filter:e})},createObj:function(e){return this.props.dispatch(f(e))},destroyObj:function(e){return this.props.dispatch(_(e))},setInitiallySelectedObjIds:function(){var e;return e=this.props.options.selection||[],this.props.dispatch(m(e))},toggleObjSelection:function(e){return this.props.dispatch(g(e))},deselectObjs:function(){return this.props.dispatch(h())},setObjSource:function(e){return this.props.dispatch(v(e))},activateInitialFilter:function(){if(this.refs.filterView.activateInitialFilter)return this.props.options.selection&&y.map(this.props.options.selection,function(e){return function(t){return e.toggleObjSelection(t)}}(this)),this.refs.filterView.activateInitialFilter()},componentDidMount:function(){return this.props.dispatch(d(this.props.options.selectionMode)),this.state.filter.onChange(this.updateFilter),this.setInitiallySelectedObjIds(),this.activateInitialFilter()},getInitialState:function(){return{filter:this.props.initialFilter}},_getBodyClassName:function(){return this.props.inspector.isMaximized?"scrivito-content-browser-body scrivito-content-browser-inspector-max":"scrivito-content-browser-body"},render:function(){return React.createElement("div",{className:"scrivito-app-root"},React.createElement("div",{className:this._getBodyClassName()},React.createElement("div",{className:"scrivito-content-browser-wrapper"},React.createElement(c,{filter:this.state.filter,standAlone:this.props.options.standAlone}),React.createElement(o,{ref:"filterView",filter:this.state.filter,standAlone:this.props.options.standAlone,additionCount:this.props.lastAdded.additions.length,deselectObjs:this.deselectObjs,initialSelection:this.props.selection.initiallySelectedObjIds,selectedObjs:this.props.selection.selectedObjs,setObjSource:this.setObjSource,activeSource:this.props.objSource.activeSource}),React.createElement(u,{ref:"itemView",createObj:this.createObj,tags:this.props.tags,dispatch:this.props.dispatch,objCreationFactory:this.props.objCreationFactory,viewMode:this.props.objDisplay.viewMode,lastAdded:this.props.lastAdded,initialSelection:this.props.selection.initiallySelectedObjIds,toggleObjSelection:this.toggleObjSelection,selectedObjs:this.props.selection.selectedObjs,selectionMode:this.props.selection.selectionMode,setObjSource:this.setObjSource,activeSource:this.props.objSource.activeSource,baseQuery:this.props.baseQuery,numToLoad:this.props.objLoad.numToLoad,sortCriteria:this.props.sortCriteria,filter:this.state.filter,isEditingAllowed:this.props.options.isEditingAllowed})),React.createElement(s,{dispatch:this.props.dispatch,isEditingAllowed:this.props.options.isEditingAllowed,disableDelete:!!this.props.options.disableDelete,selectedObjs:this.props.selection.selectedObjs})),React.createElement(a,{promise:this.props.promise,dispatch:this.props.dispatch,isEditingAllowed:this.props.options.isEditingAllowed,disableDelete:this.props.options.disableDelete,selectedObjs:this.props.selection.selectedObjs,standAlone:this.props.options.standAlone}))}}),i=l.connect(function(e){return function(e){return e}}())(r),e.exports={App:r,AppContainer:i}},function(e,t,n){var r,i,o,a,s,u,l,c;l=n(11),s=n(720),o=n(722),r=n(743),i=n(744),u=n(234).connect,a=l({displayName:"TopBar",render:function(){return React.createElement("div",{className:"scrivito-content-browser-topbar"},React.createElement(r,{filter:this.props.filter}),this.props.standAlone?React.createElement(i,{selectionMode:this.props.selectionMode,dispatch:this.props.dispatch}):void 0,React.createElement(s,{viewMode:this.props.viewMode,dispatch:this.props.dispatch}),React.createElement(o,{dispatch:this.props.dispatch,sortCriteria:this.props.sortCriteria}))}}),c=function(e){return{selectionMode:e.selection.selectionMode,sortCriteria:e.sortCriteria,viewMode:e.objDisplay.viewMode}},e.exports=u(c)(a)},function(e,t,n){var r,i,o,a,s,u,l;s=n(11),a=n(721),l=n(233),i=l.THUMBNAIL_VIEW,r=l.TABLE_VIEW,u=l.setViewMode,o=s({displayName:"ViewModeBar",viewModeButtonsData:[r,i],setViewMode:function(e){return this.props.dispatch(u(e))},render:function(){var e;return React.createElement("div",null,function(){var t,n,r,i;for(r=this.viewModeButtonsData,i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push(React.createElement(a,{setViewMode:this.setViewMode,viewMode:this.props.viewMode,key:e,mode:e}));return i}.call(this))}}),e.exports=o},function(e,t,n){var r,i;i=n(11),r=i({displayName:"ViewModeBarItem",viewModeButtonsData:{THUMBNAIL_VIEW:{iconTitle:"Thumbnails",iconClassName:"scrivito_icon_th_small"},TABLE_VIEW:{iconTitle:"List",iconClassName:"scrivito_icon_list_medium"}},getIconClassName:function(){return"scrivito_icon "+this.viewModeButtonsData[this.props.mode].iconClassName},getIconTitle:function(){return this.viewModeButtonsData[this.props.mode].iconTitle},getLabelClasses:function(){var e;return e="",this.props.viewMode===this.props.mode&&(e+="active "),e+="editing-button-view"},changeViewMode:function(){return this.props.setViewMode(this.props.mode)},render:function(){return React.createElement("span",{"data-size":this.props.mode,className:this.getLabelClasses(),onClick:this.changeViewMode},React.createElement("i",{title:this.getIconTitle(),className:this.getIconClassName()}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u,l,c,d;c=n(0),s=n(11),i=n(40).default,a=n(723),n(234),d=n(318),u=d.sortInAscOrder,l=d.sortInDescOrder,r=d.DESC_SORT_ORDER,d.ASC_SORT_ORDER,o=s({displayName:"SortMenu",sortItemsData:function(){return{relevance:{itemTitle:i.translate("content_browser.sort.relevance.title"),descCriteriaTitle:i.translate("content_browser.sort.relevance.desc_criteria_title"),sortItemType:"relevance"},filename:{itemTitle:i.translate("content_browser.sort.file_name.title"),descCriteriaTitle:i.translate("content_browser.sort.file_name.desc_criteria_title"),ascCriteriaTitle:i.translate("content_browser.sort.file_name.asc_criteria_title"),sortItemType:"blob:filename"},date:{itemTitle:i.translate("content_browser.sort.date.title"),descCriteriaTitle:i.translate("content_browser.sort.date.desc_criteria_title"),ascCriteriaTitle:i.translate("content_browser.sort.date.asc_criteria_title"),sortItemType:"_lastChanged"}}},toggleSortMenu:function(){return $(".scrivito-content-browser-sort-menu .scrivito_menu_box").fadeToggle()},getSortActiveCriteriaTitle:function(){var e;if(void 0!==(e=c.findWhere(c.values(this.sortItemsData()),{sortItemType:this.props.sortCriteria.sortField})))switch(this.props.sortCriteria.sortDirection){case r:return e.descCriteriaTitle;default:return e.ascCriteriaTitle}},getSortIconClassName:function(){var e;return e="scrivito_icon ",this.props.sortCriteria.sortDirection===r?e+="scrivito_icon_sort_up":e+="scrivito_icon_sort_down",e},setDescSortCriteria:function(e){return this.props.dispatch(l(e))},setAscSortCriteria:function(e){return this.props.dispatch(u(e))},render:function(){var e;return React.createElement("span",{className:"scrivito-content-browser-sort-menu scrivito_button scrivito_lightgrey scrivito_right",onClick:this.toggleSortMenu},React.createElement("i",{className:this.getSortIconClassName()}),React.createElement("span",{className:"scrivito-content-browser-sort-menu-title"},this.getSortActiveCriteriaTitle()),React.createElement("i",{className:"scrivito_icon scrivito-content-browser-menu-icon scrivito_icon_chevron_down"}),React.createElement("ul",{className:"scrivito_menu_box scrivito_left"},function(){var t,n,r,i;for(r=Object.keys(this.sortItemsData()),i=[],t=0,n=r.length;t<n;t++)e=r[t],i.push(React.createElement(a,{sortCriteria:this.props.sortCriteria,key:e,sortItem:this.sortItemsData()[e],activeTitle:this.getSortActiveCriteriaTitle(),setAscSortCriteria:this.setAscSortCriteria,setDescSortCriteria:this.setDescSortCriteria}));return i}.call(this),React.createElement("li",{className:"scrivito_menu_box_overlay"})))}}),e.exports=o},function(e,t,n){var r,i;i=n(11),r=i({displayName:"SortMenuItem",basicIcon:"scrivito_icon ",_ascIconSortClass:function(){return this.basicIcon+"scrivito_icon_sort_down"},_descIconSortClass:function(){return this.basicIcon+"scrivito_icon_sort_up"},getSortLiClassName:function(e){var t;return t="scrivito_menu_item",this.props.activeTitle===e&&(t+=" active"),t},_getAscSortLiClassName:function(){return this.getSortLiClassName(this.currentSortItem().ascCriteriaTitle)},_getDescSortLiClassName:function(){return this.getSortLiClassName(this.currentSortItem().descCriteriaTitle)},currentSortItem:function(){return this.props.sortItem},_sortInAscOrder:function(){return this.props.setAscSortCriteria(this.currentSortItem().sortItemType)},_sortInDescOrder:function(){return this.props.setDescSortCriteria(this.currentSortItem().sortItemType)},render:function(){return React.createElement("div",null,React.createElement("li",{className:"scrivito_menu_separator"},React.createElement("span",null,this.currentSortItem().itemTitle)),this.currentSortItem().descCriteriaTitle?React.createElement("li",{className:this._getDescSortLiClassName(),onClick:this._sortInDescOrder},React.createElement("span",null,React.createElement("i",{className:this._descIconSortClass()}," "),this.currentSortItem().descCriteriaTitle)):void 0,this.currentSortItem().ascCriteriaTitle?React.createElement("li",{className:this._getAscSortLiClassName(),onClick:this._sortInAscOrder},React.createElement("span",null,React.createElement("i",{className:this._ascIconSortClass()}," "),this.currentSortItem().ascCriteriaTitle)):void 0)}}),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return{Provider:a.default(e),connect:u.default(e)}}t.__esModule=!0,t.default=i;var o=n(725),a=r(o),s=n(726),u=r(s);e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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)}function o(e){var t=e.version;if("string"!=typeof t)return!0;var n=t.split("."),r=parseInt(n[0],10),i=parseInt(n[1],10);return 0===r&&13===i}function a(e){function t(){h||p||(h=!0,console.error("With React 0.14 and later versions, you no longer need to wrap <Provider> child into a function."))}function n(){!h&&p&&(h=!0,console.error("With React 0.13, you need to wrap <Provider> child into a function. This restriction will be removed with React 0.14."))}function a(){_||(_=!0,console.error("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/rackt/react-redux/releases/tag/v2.0.0 for the migration instructions."))}var u=e.Component,c=e.PropTypes,d=e.Children,f=l.default(c),p=o(e),h=!1,_=!1;return function(e){function o(t,n){r(this,o),e.call(this,t,n),this.store=t.store}return i(o,e),o.prototype.getChildContext=function(){return{store:this.store}},s(o,null,[{key:"childContextTypes",value:{store:f.isRequired},enumerable:!0},{key:"propTypes",value:{store:f.isRequired,children:(p?c.func:c.element).isRequired},enumerable:!0}]),o.prototype.componentWillReceiveProps=function(e){this.store!==e.store&&a()},o.prototype.render=function(){var e=this.props.children;return"function"==typeof e?(t(),e=e()):n(),d.only(e)},o}(u)}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=a;var u=n(497),l=function(e){return e&&e.__esModule?e:{default:e}}(u);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("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)}function a(e){return e.displayName||e.name||"Component"}function s(e){var t=e.Component,n=e.PropTypes,r=d.default(n);return function(n,s,c){function d(e,t){var n=e.getState(),r=T?C(n,t):C(n);return y.default(_.default(r),"`mapStateToProps` must return an object. Instead received %s.",r),r}function f(e,t){var n=e.dispatch,r=D?E(n,t):E(n);return y.default(_.default(r),"`mapDispatchToProps` must return an object. Instead received %s.",r),r}function h(e,t,n){var r=x(e,t,n);return y.default(_.default(r),"`mergeProps` must return an object. Instead received %s.",r),r}var m=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],g=Boolean(n),C=n||b,E=_.default(s)?v.default(s):s||w,x=c||k,T=C.length>1,D=E.length>1,S=m.pure,O=void 0===S||S,j=M++;return function(n){var s=function(t){function s(e,n){i(this,s),t.call(this,e,n),this.version=j,this.store=e.store||n.store,y.default(this.store,'Could not find "store" in either the context or props of "'+this.constructor.displayName+'". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "'+this.constructor.displayName+'".'),this.stateProps=d(this.store,e),this.dispatchProps=f(this.store,e),this.state={props:this.computeNextState()}}return o(s,t),s.prototype.shouldComponentUpdate=function(e,t){return!O||!p.default(this.state.props,t.props)},u(s,null,[{key:"displayName",value:"Connect("+a(n)+")",enumerable:!0},{key:"WrappedComponent",value:n,enumerable:!0},{key:"contextTypes",value:{store:r},enumerable:!0},{key:"propTypes",value:{store:r},enumerable:!0}]),s.prototype.computeNextState=function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0];return h(this.stateProps,this.dispatchProps,e)},s.prototype.updateStateProps=function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=d(this.store,e);return!p.default(t,this.stateProps)&&(this.stateProps=t,!0)},s.prototype.updateDispatchProps=function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=f(this.store,e);return!p.default(t,this.dispatchProps)&&(this.dispatchProps=t,!0)},s.prototype.updateState=function(){var e=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],t=this.computeNextState(e);p.default(t,this.state.props)||this.setState({props:t})},s.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function(){g&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){p.default(e,this.props)||(T&&this.updateStateProps(e),D&&this.updateDispatchProps(e),this.updateState(e))},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},s.prototype.handleChange=function(){this.unsubscribe&&this.updateStateProps()&&this.updateState()},s.prototype.getWrappedInstance=function(){return this.refs.wrappedInstance},s.prototype.render=function(){return e.createElement(n,l({ref:"wrappedInstance"},this.state.props))},s}(t);return s}}}t.__esModule=!0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=s;var c=n(497),d=r(c),f=n(727),p=r(f),h=n(728),_=r(h),m=n(729),v=r(m),g=n(44),y=r(g),b=function(){return{}},w=function(e){return{dispatch:e}},k=function(e,t,n){return l({},n,e,t)},M=0;e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o++)if(!i.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;return!0}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&i(n)===i(Object)}t.__esModule=!0,t.default=r;var i=function(e){return Function.prototype.toString.call(e)};e.exports=t.default},function(e,t,n){"use strict";function r(e){return function(t){return i.bindActionCreators(e,t)}}t.__esModule=!0,t.default=r;var i=n(235);e.exports=t.default},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?u:s:l&&l in Object(e)?Object(o.a)(e):Object(a.a)(e)}var i=n(500),o=n(733),a=n(734),s="[object Null]",u="[object Undefined]",l=i.a?i.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";var r=n(732),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(51))},function(e,t,n){"use strict";function r(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[u]=n:delete e[u]),i}var i=n(500),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=i.a?i.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return o.call(e)}var i=Object.prototype,o=i.toString;t.a=r},function(e,t,n){"use strict";var r=n(736),i=Object(r.a)(Object.getPrototypeOf,Object);t.a=i},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(739),a=function(e){return e&&e.__esModule?e:{default:e}}(o);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var s=(0,a.default)(i);t.default=s}).call(t,n(51),n(78)(e))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:a.a.INIT}))throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.')})}function o(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var a=t[o];"function"==typeof e[a]&&(n[a]=e[a])}var s,u=Object.keys(n);try{i(n)}catch(e){s=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(s)throw s;for(var i=!1,o={},a=0;a<u.length;a++){var l=u[a],c=n[l],d=e[l],f=c(d,t);if(void 0===f){var p=r(l,t);throw new Error(p)}o[l]=f,i=i||f!==d}return i?o:e}}t.a=o;var a=n(498);n(499),n(502)},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function i(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),i={},o=0;o<n.length;o++){var a=n[o],s=e[a];"function"==typeof s&&(i[a]=r(s,t))}return i}t.a=i},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,a){var s=e(n,r,a),u=s.dispatch,l=[],c={getState:s.getState,dispatch:function(e){return u(e)}};return l=t.map(function(e){return e(c)}),u=i.a.apply(void 0,l)(s.dispatch),o({},s,{dispatch:u})}}}t.a=r;var i=n(503),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){var r,i,o,a,s,u;u=n(0),s=n(11),o=n(6),i=n(40).default,r=n(232).default,a=s({displayName:"SearchBar",propTypes:{filter:o.object.isRequired},updateSearchFilter:function(e){return this.props.filter.setSearchTerm(e)},getInitialState:function(){return{searchTerm:this.props.filter.searchTerm||""}},triggerSearchWithEnter:function(e){if(13===e.keyCode)return this.updateSearchFilter(this.state.searchTerm)},clearButtonClassName:function(){var e;return e="scrivito_customer_icon sci_inv_cross ",this.state.searchTerm.length>0&&(e+="show-clear"),e},clearSearchTerm:function(){var e;return e="",this.setState({searchTerm:e}),this.updateSearchFilter(e)},_getSearchPlaceholder:function(){var e,t,n,o,a;return o=new r(this.props.filter),a=i.translate("content_browser.search_bar.search_everywhere"),n=o.findActiveFilterItems(),t=u.flatten(u.map(n,function(e){return e.activeNodes()})),t.length>1?a=i.translate("content_browser.search_bar.search_filtered"):1===t.length&&(e=t[0].title,a=i.translate("content_browser.search_bar.search_in",e)),a},_updateSearchTerm:function(e){return this.setState({searchTerm:e.target.value})},render:function(){return React.createElement("div",{className:"scrivito-content-browser-search"},React.createElement("span",{className:"text-input-wrapper"},React.createElement("input",{type:"text",placeholder:this._getSearchPlaceholder(),className:"search-field",value:this.state.searchTerm,onChange:this._updateSearchTerm,onKeyUp:this.triggerSearchWithEnter}),React.createElement("span",{onClick:this.clearSearchTerm,className:this.clearButtonClassName(),title:i.translate("content_browser.search_bar.clear_button")})),React.createElement("button",{className:"search-field-button",onClick:this.updateSearchFilter.bind(this,this.state.searchTerm),title:i.translate("content_browser.search_bar.search_button")},React.createElement("i",{className:"scrivito_icon scrivito_icon_search"})))}}),e.exports=a},function(e,t,n){var r,i,o,a,s,u,l,c;o=n(6),r=n(40).default,l=n(11),c=n(236),u=c.changeSelectionMode,i=c.MULTI_SELECTION_MODE,a=c.SINGLE_SELECTION_MODE,s=l({displayName:"SelectionModeToggle",propTypes:{dispatch:o.func.isRequired,selectionMode:o.string.isRequired},multiToggleModeChange:function(e){return e.target.checked?this.props.dispatch(u(i)):this.props.dispatch(u(a))},render:function(){return React.createElement("div",{className:"cb_toggle"},React.createElement("input",{type:"checkbox",checked:this.props.selectionMode===i,id:"toggly",onChange:this.multiToggleModeChange}),React.createElement("label",{htmlFor:"toggly"},React.createElement("i",null)),React.createElement("span",null,r.translate("content_browser.search_bar.multi_selection_toggle")))}}),e.exports=s},function(e,t,n){var r,i,o,a,s,u,l,c,d,f,p;f=n(0),d=n(11),s=n(40).default,a=n(746),r=n(747),c=n(751),p=n(136),u=p.LAST_ADDED,i=p.FILTER,l=n(752),o=d({displayName:"Filter",mixins:[a],renderAdditionalFilters:function(){var e;return e=f.map(this.props.filter.additionalFilters,function(e){return React.createElement(r,{key:e.field,filter:e})}),this.renderSubFiltersList(e,"compact")},setFilterObjSource:function(){return this.props.setObjSource(i),this.props.deselectObjs()},getFilterClassName:function(){var e;return e="scrivito-content-browser-filter",this.props.additionCount>0&&(e+=" last_added"),this.props.standAlone&&(e+=" stand-alone"),e},componentDidMount:function(){return this.props.filter.onChange(this.setFilterObjSource)},activateInitialFilter:function(){return this.props.setObjSource(i)},activateLastAddedFilter:function(){return this.props.setObjSource(u),this.props.deselectObjs(),this.props.filter.deselectHierarchicalFilters()},renderFilterSeparator:function(){if(this.props.filter.hasAdditionalFilters()&&this.props.filter.hasHierarchicalFilters())return React.createElement("div",{className:"scrivito_separator"},s.translate("content_browser.filter.more_filters"))},render:function(){var e;return e=f.map(this.props.filter.getHierarchicalFilters(),function(e){return function(e){return React.createElement(c,{key:e.name,filter:e})}}()),React.createElement("div",{className:this.getFilterClassName()},React.createElement("div",{className:"scrivito-content-browser-filter-fixed"},this.props.additionCount>0?React.createElement(l,{addedCount:this.props.additionCount,active:this.props.activeSource===u,activateLastAddedFilter:this.activateLastAddedFilter}):void 0),React.createElement("div",{className:"scrivito-content-browser-filter-scroll"},this.renderSubFiltersList(e),this.renderFilterSeparator(),this.renderAdditionalFilters()))}}),e.exports=o},function(e,t){var n;n={renderSubFiltersList:function(e,t){var n;return n="scrivito-content-browser-hierarchy-filter",t&&t.length>0&&(n=n+" "+t),React.createElement("ul",{className:n},e)}},e.exports=n},function(e,t,n){var r,i,o,a,s,u;u=n(11),a=n(504),o=n(748),s=n(749),i=n(750),r=u({displayName:"AdditionalOptionFilter",mixins:[a],getInitialState:function(){return this.defaultExpansionState()},getAdditionalLableClasses:function(){return this.openClassSetOptions()},createDeselctAllRadioOption:function(){return React.createElement(o,{filter:this.props.filter})},renderSubRadioOptionFilters:function(){var e,t,n,r,o,a,u;for(a=this.props.filter.children,u=[],n=r=0,o=a.length;r<o;n=++r)t=a[n],e=t.title+"-"+n,"radio"===this.props.filter.type?u.push(React.createElement(s,{key:e,filter:t})):"checkbox"===this.props.filter.type?u.push(React.createElement(i,{key:e,filter:t})):u.push(void 0);return u},render:function(){var e;return e=this.getAdditionalLableClasses(),React.createElement("li",{className:e},this.renderArrowTag(),React.createElement("div",{className:"scrivito-content-browser-hierarchy-label",onClick:this.arrowHandleClick},React.createElement("span",null,this.props.filter.title)),React.createElement("ul",null,"radio"===this.props.filter.type?this.createDeselctAllRadioOption():void 0,this.renderSubRadioOptionFilters()))}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),i=n(505),r=o({displayName:"DeselectAllRadioOptionFilter",mixins:[i],getActiveClass:function(){return this.props.filter.hasActiveChildren()?"":"active"},deselectAllRadioOption:function(){return this.props.filter.deactivateAll()},render:function(){return React.createElement("li",{className:this.getActiveClass(),onClick:this.deselectAllRadioOption},React.createElement("div",{className:"scrivito-content-browser-hierarchy-radio"}),this.renderHierarchyLabelTitle("All"))}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),r=n(506),i=o({displayName:"RadioOptionFilter",mixins:[r],labelToggleClick:function(){if(!this.props.filter.isActive())return this.props.filter.setActive()},render:function(){return React.createElement("li",{className:this.activeClassName(),onClick:this.labelToggleClick},React.createElement("div",{className:"scrivito-content-browser-hierarchy-radio"}),this.renderOptionFilterTitle())}}),e.exports=i},function(e,t,n){var r,i,o;o=n(11),i=n(506),r=o({displayName:"CheckBoxOptionFilter",mixins:[i],render:function(){return React.createElement("li",{className:this.activeClassName(),onClick:this.optionLabelToggleClick},React.createElement("div",{className:"scrivito-content-browser-hierarchy-checkbox"}),this.renderOptionFilterTitle())}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),r=n(504),i=o({displayName:"TreeFilter",mixins:[r],getInitialState:function(){return this.defaultExpansionState()},_convertLegacyIconName:function(e){return"generic"===e?"sheet":e},renderIconTag:function(){var e,t;if(null!=this.props.filter.icon)return t=this._convertLegacyIconName(this.props.filter.icon),e="scrivito_customer_icon sci_"+t,React.createElement("i",{className:e})},getLabelClasses:function(){var e;return e="",this.props.filter.isActive()&&(e="active "),e+=this.openClassSetOptions()},renderSubTrees:function(){var e,t,n,r,o,a,s;for(a=this.props.filter.children,s=[],n=r=0,o=a.length;r<o;n=++r)t=a[n],e=t.title+"-"+n,s.push(React.createElement(i,{key:e,filter:t}));return s},labelToggleClick:function(){return this.props.filter.toggleActive()},render:function(){var e;return e=this.getLabelClasses(),React.createElement("li",{className:e},this.props.filter.isLeaf()?void 0:this.renderArrowTag(),React.createElement("div",{className:"scrivito-content-browser-hierarchy-label",onClick:this.labelToggleClick},this.renderIconTag(),React.createElement("span",null,this.props.filter.title)),this.props.filter.isLeaf()?void 0:React.createElement("ul",null,this.renderSubTrees()))}}),e.exports=i},function(e,t,n){var r,i,o;r=n(40).default,o=n(11),i=o({displayName:"LastAddedFilter",filterClass:function(){var e;return e="scrivito-content-browser-filter-item",this.props.active&&(e+=" active"),e},render:function(){return React.createElement("div",{className:this.filterClass(),onClick:this.props.activateLastAddedFilter},React.createElement("i",{className:"scrivito-content-browser-icon scrivito-content-browser-icon-ok-box"}),React.createElement("span",{className:"scrivito-content-browser-filter-label"},r.translate("content_browser.last_added.filter_name"),React.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.props.addedCount)))}}),e.exports=i},function(e,t,n){var r,i,o,a,s,u,l,c,d,f,p,h,_,m,v,g,y,b,w,k,M,C,E;k=n(0),r=n(3).default,p=n(507),m=n(754).default,c=n(759),h=n(767),_=n(769),f=n(770).default,y=n(233),M=n(136),l=M.LAST_ADDED,a=M.FILTER,C=n(321),b=C.toggleExpandTagBar,w=C.toggleTag,E=n(515),g=E.loadMoreObjs,i=E.DEFAULT_NUMBER_TO_LOAD,d=n(771).default,o=n(319),s=n(40).default,v=n(516).default,u=scrivito.legacyCreateConnectedComponent({displayName:"Items",getInitialState:function(){return{dragInProgress:!1}},baseItemsClass:function(e){var t;return t="scrivito-content-browser-items",e.length>0&&(t+=" tags-row",this.props.tags.isExpanded&&(t+=" expanded")),this.props.isEditingAllowed&&(t+=" upload-row"),t},toggleExpandTagBar:function(){return this.props.dispatch(b())},toggleTagAction:function(e){return this.props.dispatch(w(e,this.props.filter))},dropZoneClass:function(e){var t;return t=this.baseItemsClass(e),this.state.dragInProgress&&(this.props.isEditingAllowed?t+=" uploader-drag-over":t+=" uploader-drag-over-forbiden"),t},_buildErrorList:function(e){return React.createElement("ul",null,k.map(e,function(e){return React.createElement("li",null,e)}))},_showConflictingPresetsAlert:function(e){var t,n,r;return t=k.keys(e),n=k.first(t),r=React.createElement("div",null,React.createElement("p",null,"The selected properties could not be assigned to the uploaded files."),React.createElement("p",null,"Choose only one of these ",this._errorMessageForField(n),":"),this._buildErrorList(e[n]),k.map(k.rest(t),function(t){return function(n){return React.createElement("div",null,React.createElement("p",null,"Also, choose just one of these ",t._errorMessageForField(n),":"),t._buildErrorList(e[n]))}}(this)),"Please try again."),o.showAlert({title:"Upload cancelled",body:React.createElement("div",null,r)})},_errorMessageForField:function(e){return"_obj_class"===e?"types":'"'+e+'" options'},_handleFileDrop:function(e){var t,n;if(this._changeDragState(!1)(e),t=null!=(n=e.dataTransfer)?n.files:void 0,this.props.isEditingAllowed&&(null!=t?t.length:void 0))return this._uploadFiles(t)},_handleFileInput:function(e){if(this.props.isEditingAllowed)return this._uploadFiles(e.target.files)},_uploadFiles:function(e){var t,n;return t=this.props.objCreationFactory,n=t.buildObjUploadControl({filter:this.props.filter,activeTags:this.props.tags.activeTags}),n.isValid()?(k.each(e,function(e){return function(t){return e.props.createObj(n.uploadOptions(t))}}(this)),this.props.filter.deselectHierarchicalFilters()):this._showConflictingPresetsAlert(n.errors())},_changeDragState:function(e){return function(t){return function(n){return n.preventDefault(),n.stopPropagation(),t.setState({dragInProgress:e})}}(this)},_getTagsQueryRequest:function(){return new d({filter:this.props.filter,baseQuery:this.props.baseQuery,tags:this.props.tags.activeTags,sortCriteria:this.props.sortCriteria}).searchRequest()},_getItemsQueryRequest:function(){return new d({excludedObjIds:this.props.initialSelection,filter:this.props.filter,baseQuery:this.props.baseQuery,tags:this.props.tags.activeTags,sortCriteria:this.props.sortCriteria}).searchRequest()},_getTags:function(){var e,t;return t=[],e=this._getTagsQueryRequest(),e&&this.props.activeSource===a&&(t=scrivito.loadWithDefault(t,function(){return e.facet("tags",{limit:100})})),t},_loadNextObjs:function(){return this.props.dispatch(g(this.props.numToLoad+10))},_loadObjs:function(){var e;return e=this._getItemsQueryRequest(),void 0!==e?v(e.iterator(),this.props.numToLoad):{objs:[],done:!0}},_initiallySelectedAndLoadedObjs:function(){var e,t,n,i;return t=[],this.props.initialSelection&&(t=this.props.initialSelection.map(function(e){return r.get(e)})),i=this._loadObjs(),n=i.objs,e=i.done,{objs:t.concat(n),done:e}},render:function(){var e,t,n,r;return React.createElement("div",{className:this.dropZoneClass(this._getTags()),onDragOver:this._changeDragState(!0),onDrop:this._handleFileDrop,onDragLeave:this._changeDragState(!1)},React.createElement(_,{tags:this._getTags(),toggleTag:this.toggleTagAction,activeTags:this.props.tags.activeTags,toggleExpandTagBar:this.toggleExpandTagBar}),(r=this._initiallySelectedAndLoadedObjs(),n=r.objs,e=r.done,t=!e&&n.length<this.props.numToLoad,t&&this.props.numToLoad===i?React.createElement(f,null):this.props.activeSource===l?React.createElement(c,{activeTags:this.props.tags.activeTags,selectionMode:this.props.selectionMode,toggleObjSelection:this.props.toggleObjSelection,selectedObjs:this.props.selectedObjs,viewMode:this.props.viewMode,dragInProgress:this.state.dragInProgress,additions:this.props.lastAdded.additions}):this.props.viewMode===y.TABLE_VIEW?React.createElement(p,null,React.createElement(h,{activeTags:this.props.tags.activeTags,filter:this.props.filter,toggleObjSelection:this.props.toggleObjSelection,isLoading:t,fetch:this._loadNextObjs,objs:n,hasMore:!e,createObj:this.props.createObj,selectedObjs:this.props.selectedObjs,isEditingAllowed:this.props.isEditingAllowed,selectionMode:this.props.selectionMode,objCreationFactory:this.props.objCreationFactory})):React.createElement(m,{objs:n,viewMode:this.props.viewMode,toggleObjSelection:this.props.toggleObjSelection,selectionMode:this.props.selectionMode,activeTags:this.props.tags.activeTags,filter:this.props.filter,isEditingAllowed:this.props.isEditingAllowed,createObj:this.props.createObj,selectedObjs:this.props.selectedObjs,isLoading:t,fetch:this._loadNextObjs,hasMore:!e,objCreationFactory:this.props.objCreationFactory})),this.props.isEditingAllowed?React.createElement("div",{className:"scrivito-content-browser-upload"},React.createElement("input",{className:"scrivito-content-browser-file-input",type:"file",multiple:"multiple",onChange:this._handleFileInput}),React.createElement("i",{className:"scrivito_icon scrivito_icon_upload"}),React.createElement("span",null,s.translate("content_browser.add_item.browse_file"))):void 0)}}),e.exports=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(508),o=r(i),a=n(757),s=r(a),u=n(511),l=r(u),c=n(0),d=scrivito.legacyCreateConnectedComponent({render:function(){var e=this.props,t=e.isLoading,n=e.fetch,r=e.hasMore;return React.createElement(l.default,{tag:"ul",className:"items scrivito-content-browser-thumbnails small",isLoading:t,hasMore:r,fetch:n},this._renderCreationItem(),this._renderItems())},_renderCreationItem:function(){if(this.props.isEditingAllowed){var e=this.props,t=e.activeTags,n=e.createObj,r=e.filter,i=e.objCreationFactory,o=i.buildObjCreateControl({filter:r,activeTags:t});return o.showCreationItem()?React.createElement(s.default,{objCreation:o,createObj:n}):void 0}},_renderItems:function(){var e=this.props,t=e.objs,n=e.selectedObjs,r=e.selectionMode,i=e.toggleObjSelection,a=(0,c.reject)(t,function(e){return e.isDeleted()});return(0,c.map)(a,function(e){return React.createElement(o.default,{key:e.id(),selectedObjs:n,objId:e.id(),baseSelectClass:"scrivito-content-browser-meta",toggleObjSelection:i,selectionMode:r})})}});t.default=d},function(e,t,n){"use strict";function r(e){var t=void 0;if(e){var n=a(e);t=o[n]}return t||(t="scrivito_icon_generic"),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(0),o={video:"scrivito_icon_movie",audio:"scrivito_icon_music",msword:"scrivito_icon_doc",zip:"scrivito_icon_zip",pdf:"scrivito_icon_pdf","ms-excel":"scrivito_icon_xls","ms-powerpoint":"scrivito_icon_ppt","openxmlformats-officedocument.spreadsheetml":"scrivito_icon_xls",wordprocessingml:"scrivito_icon_doc",presentationml:"scrivito_icon_ppt"},a=function(e){return(0,i.find)(Object.keys(o),function(t){return e.match(new RegExp("\\b"+t+"\\b"))})}},function(e,t,n){var r,i;i=n(6),r=scrivito.legacyCreateConnectedComponent({displayName:"LoadableSpan",propTypes:{get:i.func.isRequired},_getTitle:function(){return void 0!==this.props.getTitle?this.props.getTitle():""},render:function(){return React.createElement("span",{title:this._getTitle(),className:this.props.className},this.props.get())},_scrivitoRenderWhileLoading:function(){return React.createElement("span",{className:"scrivito_loader"})}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),r=n(510).default,i=o({displayName:"ThumbnailAddItem",mixins:[r],render:function(){return React.createElement("li",{className:"content-browser-item",onClick:this.createClick},React.createElement("div",{className:this.itemClassName()},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:this.iconClassName(),title:this.iconTitle()}),React.createElement("span",null,this.textMessage()))))}}),e.exports=i},function(e,t,n){var r,i;i=n(11),r=i({displayName:"MoreItemsSpinner",render:function(){return React.createElement("div",{className:"scrivito-content-browser-endless-loader"},React.createElement("i",{className:"scrivito_icon scrivito_icon_refresh"}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u;s=n(11),i=n(760),o=n(764),a=n(507),u=n(233),r=s({displayName:"LastAddedItems",render:function(){return React.createElement("div",null,this.props.viewMode===u.TABLE_VIEW?React.createElement(a,null,React.createElement(i,{selectionMode:this.props.selectionMode,selectedObjs:this.props.selectedObjs,toggleObjSelection:this.props.toggleObjSelection,additions:this.props.additions})):React.createElement(o,{selectionMode:this.props.selectionMode,selectedObjs:this.props.selectedObjs,toggleObjSelection:this.props.toggleObjSelection,additions:this.props.additions}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u,l,c,d;c=n(0),i=n(761),o=n(762),a=n(514),d=n(320),l=d.isCompleted,u=d.isActive,s=d.failed,r=scrivito.legacyCreateConnectedComponent({displayName:"LastAddedTableViewContent",renderedLastAddedErrorThumbComponent:function(){var e;if(e=s(this.props.additions),e.length)return React.createElement(i,{failedAdditions:e})},getLastAddedTableViewItems:function(){return c.map(this.props.additions,function(e){return function(t){return u(t)?React.createElement(o,{key:t.additionId,addedItem:t}):l(t)?React.createElement(a,{toggleObjSelection:e.props.toggleObjSelection,objId:t.objId,baseSelectClass:"scrivito-content-browser-list-select ",key:t.objId,selectionMode:e.props.selectionMode,selectedObjs:e.props.selectedObjs}):void 0}}(this))},render:function(){return React.createElement("div",{className:"scrivito-content-browser-list-content"},React.createElement("table",null,React.createElement("tbody",null,this.renderedLastAddedErrorThumbComponent(),this.getLastAddedTableViewItems())))}}),e.exports=r},function(e,t,n){var r,i,o;o=n(11),r=n(512),i=o({displayName:"LastAddedTableViewError",mixins:[r],render:function(){return React.createElement("tr",null,React.createElement("td",{colSpan:"6"},React.createElement("div",{className:"scrivito-content-browser-add error",onClick:this.showAlert,title:this._titleInfo()},React.createElement("span",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,this.getErrorsCount(),React.createElement("span",null," during upload")))))}}),e.exports=i},function(e,t,n){var r,i,o;o=n(11),r=n(513),i=o({displayName:"LastAddedTableViewItem",mixins:[r],getUploadTitle:function(){return"uploading file "+this.props.addedItem.filename+" ..."},render:function(){return React.createElement("tr",null,React.createElement("td",{colSpan:"6"},this.renderUploadStateProgress(),React.createElement("div",{className:"scrivito-content-browser-add upload",title:this.getUploadTitle()},React.createElement("span",{className:"scrivito_icon scrivito_icon_generic"},this.getUploadTitle()))))}}),e.exports=i},function(e,t,n){var r,i;i=n(6),r=scrivito.legacyCreateConnectedComponent({displayName:"LoadableSpan",propTypes:{get:i.func.isRequired},_getTitle:function(){return this.props.getTitle?this.props.getTitle():""},render:function(){return React.createElement("td",{title:this._getTitle()},this.props.get())},_scrivitoRenderWhileLoading:function(){return React.createElement("td",null,React.createElement("span",{className:"scrivito_loader"}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u,l,c,d,f;d=n(0),s=n(11),r=n(765),i=n(766),a=n(508),f=n(320),c=f.isCompleted,l=f.isActive,u=f.failed,o=s({displayName:"LastAddedThumbnailItems",renderedLastAddedErrorThumbComponent:function(){var e;if(e=u(this.props.additions),e.length)return React.createElement(r,{failedAdditions:e})},getSizeClassName:function(){return"items scrivito-content-browser-thumbnails small"},baseSelectClass:function(){return"scrivito-content-browser-meta "},buildItems:function(){return d.map(this.props.additions,function(e){return function(t){return l(t)?React.createElement(i,{key:t.additionId,addedItem:t}):c(t)?React.createElement(a,{key:t.objId,selectedObjs:e.props.selectedObjs,baseSelectClass:e.baseSelectClass(),toggleObjSelection:e.props.toggleObjSelection,selectionMode:e.props.selectionMode,objId:t.objId}):void 0}}(this))},render:function(){return React.createElement("div",null,React.createElement("ul",{className:this.getSizeClassName()},this.renderedLastAddedErrorThumbComponent(),this.buildItems()))}}),e.exports=o},function(e,t,n){var r,i,o;o=n(11),r=n(512),i=o({displayName:"LastAddedThumbnailErrorItem",mixins:[r],render:function(){return React.createElement("li",{className:"content-browser-item",onClick:this.showAlert,title:this._titleInfo()},React.createElement("div",{className:"scrivito-content-browser-add error"},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,this.getErrorsCount(),React.createElement("span",null,React.createElement("br",null),"during upload")))))}}),e.exports=i},function(e,t,n){var r,i,o;o=n(11),r=n(513),i=o({displayName:"LastAddedThumbnailItem",mixins:[r],addedItemClassName:function(){var e;return e="content-browser-item",this.uploadInProgress()&&(e+=" upload"),e},render:function(){return React.createElement("li",{className:this.addedItemClassName()},this.renderUploadStateProgress(),React.createElement("div",{className:"scrivito-content-browser-item-wrapper"},React.createElement("div",{className:"scrivito-content-browser-preview"}),React.createElement("span",{className:"scrivito-content-browser-thumbnails-name"},this.props.addedItem.filename)))}}),e.exports=i},function(e,t,n){var r,i,o,a,s;s=n(0),a=n(514),i=n(768),r=n(511),o=scrivito.legacyCreateConnectedComponent({baseSelectClass:function(){return"scrivito-content-browser-list-select "},getTableViewItems:function(e){var t;return t=s.reject(e,function(e){return e.isDeleted()}),s.map(t,function(e){return function(t){return React.createElement(a,{key:t.id(),objId:t.id(),selectionMode:e.props.selectionMode,baseSelectClass:e.baseSelectClass(),selectedObjs:e.props.selectedObjs,toggleObjSelection:e.props.toggleObjSelection})}}(this))},_renderObjCreationItem:function(){var e;if(this.props.isEditingAllowed&&(e=this.props.objCreationFactory.buildObjCreateControl({filter:this.props.filter,activeTags:this.props.activeTags}),e.showCreationItem()))return React.createElement(i,{objCreation:e,createObj:this.props.createObj})},render:function(){return React.createElement(r,{isLoading:this.props.isLoading,hasMore:this.props.hasMore,fetch:this.props.fetch,tag:"div",className:"scrivito-content-browser-list-content"},React.createElement("table",null,React.createElement("tbody",null,this._renderObjCreationItem(),this.getTableViewItems(this.props.objs))))}}),e.exports=o},function(e,t,n){var r,i,o;o=n(11),r=n(510).default,i=o({mixins:[r],render:function(){return React.createElement("tr",{onClick:this.createClick},React.createElement("td",{colSpan:"6"},React.createElement("div",{className:this.itemClassName()},React.createElement("div",{className:"scrivito-content-browser-text"},React.createElement("span",{className:this.iconClassName(),title:this.iconTitle()}),React.createElement("span",null,this.textMessage())))))}}),e.exports=i},function(e,t,n){var r,i,o;o=n(0),i=n(11),r=i({displayName:"TagBar",_expandTagBar:function(){return this.props.toggleExpandTagBar()},_tagClasName:function(e){if(o.include(this.props.activeTags,e))return"active"},_renderTags:function(){return o.map(this.props.tags,function(e){return function(t){return React.createElement("li",{key:t.name(),onClick:function(){return e.props.toggleTag(t.name())},className:e._tagClasName(t.name())},t.name(),React.createElement("span",{className:"amount"},t.count()))}}(this))},render:function(){return React.createElement("div",{className:"scrivito-content-browser-items-tag-wrapper"},React.createElement("ul",{className:"scrivito-content-browser-items-tag-list"},this._renderTags()),React.createElement("i",{onClick:this._expandTagBar,className:"scrivito_icon scrivito_icon_slidedown"}))}}),e.exports=r},function(e,t,n){"use strict";function r(){return React.createElement("div",{className:"scrivito-content-browser-loading"},React.createElement("i",{className:"scrivito_icon scrivito_icon_refresh"}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(494),s=r(a),u=n(3),l=r(u),c=n(495),d=r(c),f=n(496),p=r(f),h=n(318),_=n(0),m=function(){function e(t){var n=t.filter,r=t.baseQuery,o=t.excludedObjIds,a=t.tags,u=t.sortCriteria;if(i(this,e),!u)throw new Error("sortCriteria is not initialized. Please explicit initialize the sort criteria param");this.nodeQueryBuilder=new s.default(n),this.filter=n,this.baseQuery=r,this.excludedObjIds=o,this.tags=a,this.sortCriteria=u}return o(e,[{key:"searchRequest",value:function(){var t=[];this.baseQuery&&t.push((0,d.default)(this.baseQuery)),t=t.concat(this.nodeQueryBuilder.searchRequest());var n=this.filter.searchTerm&&this.filter.searchTerm.length>0;if(n&&t.push(l.default.where("*","containsPrefix",this.filter.searchTerm)),!(t.length<1)){var r=(0,p.default)(t.shift().params());return(0,_.each)(t,function(e){r=r.and(e)}),r=this.tagsQuery(r),r=e.ignoreMigrationStore(r),r=this.excludeObjIds(r),r=this.sortQuery(r,n)}}},{key:"tagsQuery",value:function(e){var t=e;return this.tags&&this.tags.length>0&&(0,_.each)(this.tags,function(e){t=t.and("tags","equals",e)}),t}},{key:"excludeObjIds",value:function(e){var t=e;return this.excludedObjIds&&this.excludedObjIds.length>0&&(t=t.andNot("id","equals",this.excludedObjIds)),t}},{key:"sortQuery",value:function(e,t){var n=e;return"relevance"===this.sortCriteria.sortField?t||(n=n.order("_lastChanged",h.DESC_SORT_ORDER)):n=n.order(this.sortCriteria.sortField,this.sortCriteria.sortDirection),n}}],[{key:"ignoreMigrationStore",value:function(e){return e.andNot("_objClass","equals","MigrationStore")}}]),e}();t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(3),s=r(a),u=n(773),l=r(u),c=n(123),d=n(6),f=r(d),p=scrivito.legacyCreateConnectedComponent({displayName:"Inspector",propTypes:{isEditingAllowed:f.default.bool.isRequired,disableDelete:f.default.bool.isRequired,selectedObjs:f.default.arrayOf(f.default.string).isRequired,dispatch:f.default.func.isRequired},render:function(){return React.createElement("div",{className:"scrivito-content-browser-inspector"},this._renderContent())},_renderContent:function(){var e=this.props,t=e.selectedObjs,n=e.isEditingAllowed,r=e.disableDelete,i=e.dispatch;if(!t.length)return null;if(1===t.length){var a=o(t,1),u=a[0],c=s.default.get(u),d=void 0;return c&&(d=React.createElement(scrivito.PropertiesComponent,{content:c})),React.createElement("div",null,React.createElement(l.default,{isEditingAllowed:n,disableDelete:r,dispatch:i,selectedObjs:t,deleteInspectedObjs:this._deleteInspectedObjs}),React.createElement("div",{className:"inspector-content"},d))}return React.createElement(l.default,{isEditingAllowed:n,disableDelete:r,dispatch:i,selectedObjs:t,deleteInspectedObjs:this._deleteInspectedObjs})},_deleteInspectedObjs:function(){var e=this.props,t=e.selectedObjs,n=e.dispatch;if(t.length){var r;(r=scrivito.ConfirmDeleteDialog).open.apply(r,i(t)).then(function(e){e&&t.forEach(function(e){return n((0,c.objDeleted)(e))})})}}});t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=r(i),a=n(40),s=r(a),u=n(774),l=r(u),c=n(517),d=scrivito.legacyCreateConnectedComponent({displayName:"Inspector",propTypes:{isEditingAllowed:React.PropTypes.bool.isRequired,disableDelete:React.PropTypes.bool.isRequired,selectedObjs:React.PropTypes.arrayOf(React.PropTypes.string).isRequired,dispatch:React.PropTypes.func.isRequired,deleteInspectedObjs:React.PropTypes.func.isRequired},_getMultiSelectedTitle:function(){return s.default.translate("content_browser.header.selected_items",this.props.selectedObjs.length)},getDetailsClassName:function(){return"scrivito_icon scrivito_icon_eye"},_title:function(){return 1!==this.props.selectedObjs.length?this._getMultiSelectedTitle():null!==this._getInspectedObj()?scrivito.titleForObj(this._getInspectedObj()):void 0},_getInspectedObj:function(){var e=this.props.selectedObjs[0];return o.default.get(e)},toggleInspectorMaximized:function(){return this.props.dispatch((0,c.toggleInspectorMaximized)())},render:function(){return React.createElement("h3",{title:this._title()},React.createElement(l.default,{toggleInspectorMaximized:this.toggleInspectorMaximized}),React.createElement("span",{title:"Details",className:this.getDetailsClassName()}),React.createElement("span",{className:"title"},this._title()),this.props.isEditingAllowed&&!this.props.disableDelete&&React.createElement("span",{className:"scrivito_icon scrivito_icon_trash scrivito_delete",onClick:this.props.deleteInspectedObjs}))}});t.default=d},function(e,t,n){var r,i;i=n(11),r=i({displayName:"MaximizeInspectorToggle",_toggleMaximized:function(){return this.props.toggleInspectorMaximized()},render:function(){return React.createElement("span",{className:"scrivito_move_left",title:"Maximize details view",onClick:this._toggleMaximized},React.createElement("span",{className:"scrivito_icon scrivito_icon_chevron_left"}))}}),e.exports=r},function(e,t,n){var r,i,o,a,s;s=n(0),n(3).default,i=n(40).default,o=n(11),a=n(123).objDeleted,r=o({displayName:"Footer",currentSelectedCount:function(){return this.props.selectedObjs.length},deleteButtonClass:function(){var e;return e=" scrivito_button scrivito_lightgrey content-browser-delete scrivito_left",0===this.currentSelectedCount()&&(e+=" scrivito_disabled"),e},closeClick:function(){return this.props.standAlone?this.props.promise.resolve():this.props.promise.reject()},doneClick:function(){return this.props.promise.resolve(this.props.selectedObjs)},deleteClick:function(){var e;if(this.props.selectedObjs.length)return(e=scrivito.ConfirmDeleteDialog).open.apply(e,this.props.selectedObjs).then(function(e){return function(t){if(t)return s.each(e.props.selectedObjs,function(t){return e.props.dispatch(a(t))})}}(this))},_getClassNameCloseButton:function(){var e;return e="scrivito_button content-browser-close",this.props.standAlone&&(e+=" scrivito_green"),e},render:function(){return React.createElement("div",{className:"scrivito-content-browser-footer"},this.props.isEditingAllowed&&!this.props.disableDelete?React.createElement("a",{className:this.deleteButtonClass(),onClick:this.deleteClick},i.translate("content_browser.footer.delete"),React.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.currentSelectedCount())):void 0,this.props.standAlone?void 0:React.createElement("a",{className:"scrivito_button scrivito_green content-browser-save",onClick:this.doneClick},i.translate("content_browser.footer.select"),React.createElement("span",{className:"scrivito-content-browser-counter selected-total"},this.currentSelectedCount())),React.createElement("a",{className:this._getClassNameCloseButton(),onClick:this.closeClick},i.translate("content_browser.footer.close")))}}),e.exports=r},function(e,t,n){var r,i,o,a,s,u;s=n(777),u=n(235),a=u.createStore,r=u.applyMiddleware,i=n(778),o=function(e){return r(s)(a)(i,e)},e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}e.exports=r},function(e,t,n){var r,i,o,a,s,u,l,c,d,f;r=n(235),a=n(779),s=n(780),u=n(782).default,l=n(783),f=n(784),i=n(785),d=n(786).default,c=n(787),o=r.combineReducers({objDisplay:u,objLoad:l,inspector:a,lastAdded:s,sortCriteria:f,tags:i,selection:d,objSource:c}),e.exports=o},function(e,t,n){var r,i,o,a;a=n(0),i=n(517).MAXIMIZE_TOGGLE,r=n(123).DELETE_OBJ_FINISH,o=function(e,t){switch(null==e&&(e={isMaximized:!1}),t.type){case i:return a.extend({},e,{isMaximized:!e.isMaximized});case r:return a.extend({},e,{isMaximized:!1});default:return e}},e.exports=o},function(e,t,n){var r,i,o,a,s,u,l,c,d,f;d=n(0),f=n(123),o=f.CREATE_OBJ_START,i=f.CREATE_OBJ_FINISH,r=f.CREATE_OBJ_FAILED,a=f.DELETE_OBJ_FINISH,l=n(781),u=function(e,t){var n;return n=d.findIndex(e.additions,function(e){return 100===e.progress&&e.objId===t}),n>-1?l(e,{additions:{$splice:[[n,1]]}}):e},c=function(e,t,n){var r,i;return i=d.findIndex(e.additions,{additionId:t}),r=e.additions[i],r=l(r,{$merge:n}),l(e,{additions:{$splice:[[i,1,r]]}})},s=function(e,t){var n;switch(null==e&&(e={additions:[]}),t.type){case o:return n=d.omit(t,"type"),l(e,{additions:{$unshift:[n]}});case i:return c(e,t.additionId,{objId:t.objId,progress:100});case r:return c(e,t.additionId,{failureMessage:t.message,progress:0});case a:return u(e,t.objId);default:return e}},e.exports=s},function(e,t,n){function r(e){return e instanceof Array?e.slice():e&&"object"==typeof e?h(new e.constructor,e):e}function i(){function e(n,i){Array.isArray(n)&&Array.isArray(i)||d(!Array.isArray(i),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),d("object"==typeof i&&null!==i,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(t).join(", "));var o=n;_(i);return _(i).forEach(function(a){if(f.call(t,a))o=t[a](i[a],o,i,n);else{var s=e(n[a],i[a]);s!==o[a]&&(o===n&&(o=r(n)),o[a]=s)}}),o}var t=h({},m);return e.extend=function(e,n){t[e]=n},e}function o(e,t,n){d(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e);var r=t[n];d(Array.isArray(r),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",n,r)}function a(e,t){d(Array.isArray(e),"Expected $splice target to be an array; got %s",e),s(t.$splice)}function s(e){d(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function u(e){d("function"==typeof e,"update(): expected spec of $apply to be a function; got %s.",e)}function l(e){d(1===Object.keys(e).length,"Cannot have more than one key in an object with $set")}function c(e,t){d(t&&"object"==typeof t,"update(): $merge expects a spec of type 'object'; got %s",t),d(e&&"object"==typeof e,"update(): $merge expects a target of type 'object'; got %s",e)}var d=n(44),f=Object.prototype.hasOwnProperty,p=Array.prototype.splice,h=Object.assign||function(e,t){return _(t).forEach(function(n){f.call(t,n)&&(e[n]=t[n])}),e},_="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)},m={$push:function(e,t,n){return o(t,n,"$push"),t.concat(e)},$unshift:function(e,t,n){return o(t,n,"$unshift"),e.concat(t)},$splice:function(e,t,n,i){var o=t===i?r(i):t;return a(o,n),e.forEach(function(e){s(e),p.apply(o,e)}),o},$set:function(e,t,n){return l(n),e},$unset:function(e,t,n,i){d(Array.isArray(e),"update(): expected spec of $unset to be an array; got %s. Did you forget to wrap the key(s) in an array?",e);var o=t;return e.forEach(function(e){Object.hasOwnProperty.call(o,e)&&(t===i&&(t=r(i)),delete t[e])}),t},$merge:function(e,t,n,i){var t=t;return c(t,e),_(e).forEach(function(n){e[n]!==t[n]&&(t===i&&(t=r(i)),t[n]=e[n])}),t},$apply:function(e,t){return u(e),e(t)}};e.exports=i(),e.exports.newContext=i},function(e,t,n){"use strict";function r(e,t){switch(t.type){case i.SET_VIEW_MODE:return{viewMode:t.viewMode};default:return e||{viewMode:i.THUMBNAIL_VIEW}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(233)},function(e,t,n){var r,i,o,a,s,u,l,c;u=n(0),l=n(515),o=l.LOAD_MORE_OBJS,r=l.DEFAULT_NUMBER_TO_LOAD,c=n(136),i=c.FILTER,a=c.SET_OBJ_SOURCE,s=function(e,t){switch(null==e&&(e={numToLoad:r}),t.type){case o:return u.extend({},e,{numToLoad:t.numToLoad});case a:return t.activeSource===i?u.extend({},e,{numToLoad:r}):e;default:return e}},e.exports=s},function(e,t,n){var r,i,o,a;a=n(318),r=a.CHANGE_SORT_ORDER,i=a.DESC_SORT_ORDER,o=function(e,t){switch(null==e&&(e={sortField:"relevance",sortDirection:i}),t.type){case r:return{sortField:t.criteriaType,sortDirection:t.sortDirection};default:return e}},e.exports=o},function(e,t,n){var r,i,o,a,s,u,l;u=n(0),l=n(321),r=l.EXPAND_TOGGLE,i=l.TOGGLE_TAG,s=function(e,t){return u.include(e,t)?u.without(e,t):e.concat([t])},a=function(){return{isExpanded:!1,activeTags:[]}},o=function(e,t){switch(null==e&&(e=a()),t.type){case i:return u.extend({},e,{activeTags:s(e.activeTags,t.tag)});case r:return u.extend({},e,{isExpanded:!e.isExpanded});default:return e}},e.exports=o},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case a.CHANGE_SELECTION_MODE:return(0,o.extend)({},e,{selectedObjs:[],selectionMode:t.mode||e.selectionMode});case a.INITIALLY_SELECT:return(0,o.extend)({},e,{initiallySelectedObjIds:t.objIds});case a.TOGGLE_SELECT:return(0,o.extend)({},e,{selectedObjs:i(e.selectedObjs,t.objId,e.selectionMode)});case s.DELETE_OBJ_FINISH:return(0,o.extend)({},e,{selectedObjs:(0,o.without)(e.selectedObjs,t.objId)});case s.CREATE_OBJ_FINISH:return t.isLastAddedVisible?(0,o.extend)({},e,{selectedObjs:i(e.selectedObjs,t.objId,e.selectionMode)}):e;case a.DESELECT_OBJS:return(0,o.extend)({},e,{initiallySelectedObjIds:[],selectedObjs:[]});default:return e}}function i(e,t,n){return(0,o.contains)(e,t)?(0,o.without)(e,t):"multi"===n?e.concat([t]):[t]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(0),a=n(236),s=n(123),u={initiallySelectedObjIds:[],selectedObjs:[],selectionMode:a.MULTI_SELECTION_MODE}},function(e,t,n){var r,i,o,a,s,u,l;u=n(0),l=n(136),a=l.SET_OBJ_SOURCE,i=l.FILTER,o=l.LAST_ADDED,r=n(123).CREATE_OBJ_START,s=function(e,t){switch(null==e&&(e={activeSource:i}),t.type){case r:return t.activeSource!==o?u.extend({},e,{activeSource:o}):e;case a:return{activeSource:t.activeSource};default:return e}},e.exports=s},function(e,t,n){"use strict";n(789),n(790)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o={"content_browser.footer.close":"Close","content_browser.footer.select":"Select","content_browser.footer.delete":"Delete","content_browser.header.selected_items":"Selected: $1 items","content_browser.table_view.title":"Title","content_browser.table_view.type":"Type","content_browser.table_view.file_type":"File type","content_browser.table_view.file_size":"File size","content_browser.table_view.last_change":"Last change","content_browser.sort.relevance.title":"Sort by relevance","content_browser.sort.relevance.desc_criteria_title":"Relevance","content_browser.sort.file_name.title":"Sort by filename","content_browser.sort.file_name.asc_criteria_title":"Filename: From A to Z","content_browser.sort.file_name.desc_criteria_title":"Filename: From Z to A","content_browser.sort.date.title":"Sort by date","content_browser.sort.date.asc_criteria_title":"Last change: oldest first","content_browser.sort.date.desc_criteria_title":"Last change: latest first","content_browser.search_bar.clear_button":"Clear","content_browser.search_bar.search_button":"Search","content_browser.search_bar.search_everywhere":"Search everywhere","content_browser.search_bar.search_filtered":"Search filtered content","content_browser.search_bar.search_in":'Search "$1"',"content_browser.search_bar.multi_selection_toggle":"multi-select","content_browser.last_added.filter_name":"Last added","content_browser.last_added.failed_upload":"Upload failed. Please check your network connection.","content_browser.last_added.failed_upload_counts":"$1 Error(s)","content_browser.last_added.title_info":"Display full upload error message","content_browser.last_added.upload_error":"The selected filter options cannot be applied to the file(s) you wanted to upload","content_browser.last_added.preset_error":"#values can not be called on an invalid Preset","content_browser.filter.more_filters":"more filters","content_browser.add_item.browse_file":"Browse file to upload","content_browser.add_item.failed":"The selected filter options cannot be applied to the file(s) you wanted to upload. Please select only one of the following options, then try again:","content_browser.add_item.preset_conflict":"The selected filter options cannot be applied to the file(s) you wanted to upload. Please select only one of the following options, then try again:","content_browser.add_item.create_item":"Create item","content_browser.add_item.create_impossible":"Item creation not possible","content_browser.add_item.disabled_filters":"Creation of items matching the selected filters has been disabled.","content_browser.add_item.error_no_obj_class":"Configuration error: No '_obj_class' provided.","content_browser.add_item.prevent_creation":"The selected filter options $1 prevent item creation"};i.default.load("en",o),t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o={"content_browser.footer.close":"Schließen","content_browser.footer.select":"Auswählen","content_browser.footer.delete":"Löschen","content_browser.header.selected_items":"Ausgewählt: $1 Elemente","content_browser.table_view.title":"Titel","content_browser.table_view.type":"Typ","content_browser.table_view.file_type":"Dateityp","content_browser.table_view.file_size":"Dateigröße","content_browser.table_view.last_change":"Letzte Änderung","content_browser.sort.relevance.title":"Nach Relevanz sortieren","content_browser.sort.relevance.desc_criteria_title":"Relevanz","content_browser.sort.file_name.title":"Nach Dateiname sortieren","content_browser.sort.file_name.asc_criteria_title":"Dateiname: Von A bis Z","content_browser.sort.file_name.desc_criteria_title":"Dateiname: Von Z bis A","content_browser.sort.date.title":"Nach Datum sortieren","content_browser.sort.date.asc_criteria_title":"Letzte Änderung: Älteste zuerst","content_browser.sort.date.desc_criteria_title":"Letzte Änderung: Neueste zuerst","content_browser.search_bar.clear_button":"Löschen","content_browser.search_bar.search_button":"Suchen","content_browser.search_bar.search_everywhere":"Alles durchsuchen","content_browser.search_bar.search_filtered":"Gefilterte Inhalte durchsuchen","content_browser.search_bar.search_in":'"$1" durchsuchen',"content_browser.search_bar.multi_selection_toggle":"Mehrfachauswahl","content_browser.last_added.filter_name":"Zuletzt hinzugefügt","content_browser.last_added.failed_upload":"Fehler beim Hochladen. Bitte prüfen Sie Ihre Netzwerkverbindung","content_browser.last_added.failed_upload_counts":"$1 Fehler","content_browser.last_added.title_info":"Vollständige Fehlermeldung anzeigen","content_browser.last_added.upload_error":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten.","content_browser.last_added.preset_error":"#values kann nicht auf einer ungültigen Vorbelegung aufgerufen werden.","content_browser.filter.more_filters":"Weitere Filter","content_browser.add_item.browse_file":"Datei zum Hochladen auswählen","content_browser.add_item.failed":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten. Bitte versuchen Sie es mit nur einer der folgenden Optionen erneut:","content_browser.add_item.preset_conflict":"Die ausgewählten Filteroptionen können nicht auf die Datei(en) angewendet werden, die Sie hochladen wollten. Bitte versuchen Sie es mit nur einer der folgenden Optionen erneut","content_browser.add_item.create_item":"Element anlegen","content_browser.add_item.create_impossible":"Es kann kein Element angelegt werden","content_browser.add_item.disabled_filters":"Es ist nicht möglich, zu den Filtern passende Elemente anzulegen.","content_browser.add_item.error_no_obj_class":"Konfigurationsfehler: '_obj_class' wurde nicht angegeben.","content_browser.add_item.prevent_creation":"Elemente können aufgrund der ausgewählten Filteroptionen $1 nicht angelegt werden."};i.default.load("de",o),t.default=o},function(e,t,n){"use strict";function r(e){return new scrivito.Promise(function(t,n){e.then(t),e.fail(n)})}Object.defineProperty(t,"__esModule",{value:!0}),t.promiseFromJqueryDeferred=r},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){var t=e.onClick;return React.createElement("div",{className:"add_list_items_button",onClick:t},React.createElement("i",{className:"scrivito_icon scrivito_icon_plus"}))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=n(322),s=n(39),u=n(487),l=function(e){return e&&e.__esModule?e:{default:e}}(u),c=(0,s.createClassForCustomAttributeItemDescription)("linklist",{getInitialState:function(){return{emptyLinkPositions:[]}},render:function(){var e=this.props.field.get();return this.props.readOnly&&0===e.length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("linklist_item_component.linklist.undefined"))):React.createElement("div",{className:"scrivito_linklist_item"},React.createElement(d,{distance:10,helperClass:"scrivito_detail_content scrivito_detail_content_dragging",items:this._buildLinklist(),lockToContainerEdges:!0,onDelete:this._onDelete,onSortEnd:this._onSortEnd,readOnly:this.props.readOnly,onChange:this._onChange}),!this.props.readOnly&&React.createElement(i,{onClick:this._onAddLinkClick}))},_update:function(e){this.props.field.update((0,o.compact)(e))},_onDelete:function(e,t){e.preventDefault(),e.stopPropagation();var n=this._buildLinklist();if(null===n[t])return void this._removeEmptyLinkAt(t);n.splice(t,1),this._update(n)},_onChange:function(e,t){var n=this._buildLinklist();null===n[t]&&this._removeEmptyLinkAt(t),null===e&&this._addEmptyLinkAt(t);var i=[].concat(r(n.slice(0,t)),[e],r(n.slice(t+1,n.length)));this._update(i)},_onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex,r=this._buildLinklist(),i=(0,a.arrayMove)(this._buildLinklist(),t,n);this._update(i),null===r[t]&&this._swapEmptyLink(t,n),null===r[n]&&this._swapEmptyLink(n,n-1)},_onAddLinkClick:function(e){e.preventDefault(),e.stopPropagation(),this._addEmptyLinkAt(this.props.field.get().length+this.state.emptyLinkPositions.length)},_buildLinklist:function(){for(var e=this.props.field.get(),t=0;t<this.state.emptyLinkPositions.length;t++)e.splice(this.state.emptyLinkPositions[t],0,null);return e},_addEmptyLinkAt:function(e){var t=this.state.emptyLinkPositions;t.push(e),this.setState({emptyLinkPositions:t.sort()})},_removeEmptyLinkAt:function(e){var t=this.state.emptyLinkPositions;t.splice(t.indexOf(e),1),this.setState({emptyLinkPositions:t})},_swapEmptyLink:function(e,t){this._removeEmptyLinkAt(e),this._addEmptyLinkAt(t)}}),d=(0,a.SortableContainer)(function(e){return React.createElement("div",null,e.items.map(function(t,n){return React.createElement(f,{index:n,key:n.toString(),onDelete:function(t){return e.onDelete(t,n)},readOnly:e.readOnly,onChange:function(t){return e.onChange(t,n)},link:t})}))});d.displayName="PropertiesComponent.SortableLinklist";var f=(0,a.SortableElement)(function(e){return React.createElement("div",null,React.createElement(l.default,{link:e.link,readOnly:e.readOnly,onChange:e.onChange,onDelete:e.onDelete}))});f.displayName="PropertiesComponent.SortableLinklistItem",t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(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||"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);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)}function u(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleStart=function(e){var n=t.props,r=n.distance,i=n.shouldCancelStart;if(2===e.button||i(e))return!1;t._touched=!0,t._pos={x:e.pageX,y:e.pageY};var o=(0,w.closest)(e.target,function(e){return null!=e.sortableInfo});if(o&&o.sortableInfo&&t.nodeIsChild(o)&&!t.state.sorting){var a=t.props.useDragHandle,s=o.sortableInfo,u=s.index,l=s.collection;if(a&&!(0,w.closest)(e.target,function(e){return null!=e.sortableHandle}))return;t.manager.active={index:u,collection:l},"a"===e.target.tagName.toLowerCase()&&e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}},t.nodeIsChild=function(e){return e.sortableInfo.manager===t.manager},t.handleMove=function(e){var n=t.props,r=n.distance,i=n.pressThreshold;if(!t.state.sorting&&t._touched){t._delta={x:t._pos.x-e.pageX,y:t._pos.y-e.pageY};var o=Math.abs(t._delta.x)+Math.abs(t._delta.y);r||i&&!(i&&o>=i)?r&&o>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}},t.handleEnd=function(){var e=t.props.distance;t._touched=!1,e||t.cancel()},t.cancel=function(){t.state.sorting||(clearTimeout(t.pressTimer),t.manager.active=null)},t.handlePress=function(e){var n=t.manager.getActive();if(n){var r=t.props,o=r.axis,a=r.getHelperDimensions,s=r.helperClass,u=r.hideSortableGhost,l=r.onSortStart,c=r.useWindowAsScrollContainer,d=n.node,f=n.collection,p=d.sortableInfo.index,h=(0,w.getElementMargin)(d),_=t.container.getBoundingClientRect(),m=a({index:p,node:d,collection:f});t.node=d,t.margin=h,t.width=m.width,t.height=m.height,t.marginOffset={x:t.margin.left+t.margin.right,y:Math.max(t.margin.top,t.margin.bottom)},t.boundingClientRect=d.getBoundingClientRect(),t.containerBoundingRect=_,t.index=p,t.newIndex=p,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=t.getEdgeOffset(d),t.initialOffset=t.getOffset(e),t.initialScroll={top:t.scrollContainer.scrollTop,left:t.scrollContainer.scrollLeft},t.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset};var v=d.querySelectorAll("input, textarea, select"),g=d.cloneNode(!0);if([].concat(i(g.querySelectorAll("input, textarea, select"))).forEach(function(e,t){"file"!==e.type&&v[t]&&(e.value=v[t].value)}),t.helper=t.document.body.appendChild(g),t.helper.style.position="fixed",t.helper.style.top=t.boundingClientRect.top-h.top+"px",t.helper.style.left=t.boundingClientRect.left-h.left+"px",t.helper.style.width=t.width+"px",t.helper.style.height=t.height+"px",t.helper.style.boxSizing="border-box",t.helper.style.pointerEvents="none",u&&(t.sortableGhost=d,d.style.visibility="hidden",d.style.opacity=0),t.minTranslate={},t.maxTranslate={},t.axis.x&&(t.minTranslate.x=(c?0:_.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(c?t.contentWindow.innerWidth:_.left+_.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(c?0:_.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(c?t.contentWindow.innerHeight:_.top+_.height)-t.boundingClientRect.top-t.height/2),s){var y;(y=t.helper.classList).add.apply(y,i(s.split(" ")))}t.listenerNode=e.touches?d:t.contentWindow,w.events.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),w.events.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}),t.setState({sorting:!0,sortingIndex:p}),l&&l({node:d,index:p,collection:f},e)}},t.handleSortMove=function(e){var n=t.props.onSortMove;e.preventDefault(),t.updatePosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)},t.handleSortEnd=function(e){var n=t.props,r=n.hideSortableGhost,i=n.onSortEnd,o=t.manager.active.collection;t.listenerNode&&(w.events.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),w.events.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&(t.sortableGhost.style.visibility="",t.sortableGhost.style.opacity="");for(var a=t.manager.refs[o],s=0,u=a.length;s<u;s++){var l=a[s],c=l.node;l.edgeOffset=null,c.style[w.vendorPrefix+"Transform"]="",c.style[w.vendorPrefix+"TransitionDuration"]=""}clearInterval(t.autoscrollInterval),t.autoscrollInterval=null,t.manager.active=null,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({oldIndex:t.index,newIndex:t.newIndex,collection:o},e),t._touched=!1},t.autoscroll=function(){var e=t.translate,n={x:0,y:0},r={x:1,y:1},i={x:10,y:10};e.y>=t.maxTranslate.y-t.height/2?(n.y=1,r.y=i.y*Math.abs((t.maxTranslate.y-t.height/2-e.y)/t.height)):e.x>=t.maxTranslate.x-t.width/2?(n.x=1,r.x=i.x*Math.abs((t.maxTranslate.x-t.width/2-e.x)/t.width)):e.y<=t.minTranslate.y+t.height/2?(n.y=-1,r.y=i.y*Math.abs((e.y-t.height/2-t.minTranslate.y)/t.height)):e.x<=t.minTranslate.x+t.width/2&&(n.x=-1,r.x=i.x*Math.abs((e.x-t.width/2-t.minTranslate.x)/t.width)),t.autoscrollInterval&&(clearInterval(t.autoscrollInterval),t.autoscrollInterval=null,t.isAutoScrolling=!1),0===n.x&&0===n.y||(t.autoscrollInterval=setInterval(function(){t.isAutoScrolling=!0;var e={left:1*r.x*n.x,top:1*r.y*n.y};t.scrollContainer.scrollTop+=e.top,t.scrollContainer.scrollLeft+=e.left,t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()},5))},t.manager=new b.default,t.events={start:t.handleStart,move:t.handleMove,end:t.handleEnd},(0,g.default)(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time."),t.state={},t}return s(n,t),d(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.getContainer,r=t.useWindowAsScrollContainer,i=this.props.contentWindow||window;this.container="function"==typeof n?n(this.getWrappedInstance()):(0,m.findDOMNode)(this),this.document=this.container.ownerDocument||document,this.scrollContainer=r?this.document.body:this.container,this.contentWindow="function"==typeof i?i():i;for(var o in this.events)!function(t){e.events.hasOwnProperty(t)&&w.events[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}(o)}},{key:"componentWillUnmount",value:function(){var e=this;for(var t in this.events)!function(t){e.events.hasOwnProperty(t)&&w.events[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}(t)}},{key:"getEdgeOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{top:0,left:0};if(e){var n={top:t.top+e.offsetTop,left:t.left+e.offsetLeft};return e.parentNode!==this.container?this.getEdgeOffset(e.parentNode,n):n}}},{key:"getOffset",value:function(e){return{x:e.touches?e.touches[0].pageX:e.pageX,y:e.touches?e.touches[0].pageY:e.pageY}}},{key:"getLockPixelOffsets",value:function(){var e=this.props.lockOffset;Array.isArray(e)||(e=[e,e]),(0,g.default)(2===e.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",e);var t=e,n=c(t,2),r=n[0],i=n[1];return[this.getLockPixelOffset(r),this.getLockPixelOffset(i)]}},{key:"getLockPixelOffset",value:function(e){var t=e,n=e,r="px";if("string"==typeof e){var i=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);(0,g.default)(null!==i,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),t=n=parseFloat(e),r=i[1]}return(0,g.default)(isFinite(t)&&isFinite(n),"lockOffset value should be a finite. Given %s",e),"%"===r&&(t=t*this.width/100,n=n*this.height/100),{x:t,y:n}}},{key:"updatePosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockToContainerEdges,i=this.getOffset(e),o={x:i.x-this.initialOffset.x,y:i.y-this.initialOffset.y};if(o.y-=window.pageYOffset-this.initialWindowScroll.top,o.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=o,r){var a=this.getLockPixelOffsets(),s=c(a,2),u=s[0],l=s[1],d={x:this.width/2-u.x,y:this.height/2-u.y},f={x:this.width/2-l.x,y:this.height/2-l.y};o.x=(0,w.limit)(this.minTranslate.x+d.x,this.maxTranslate.x-f.x,o.x),o.y=(0,w.limit)(this.minTranslate.y+d.y,this.maxTranslate.y-f.y,o.y)}"x"===n?o.y=0:"y"===n&&(o.x=0),this.helper.style[w.vendorPrefix+"Transform"]="translate3d("+o.x+"px,"+o.y+"px, 0)"}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=this.manager.getOrderedRefs(),i={left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top},o={left:this.offsetEdge.left+this.translate.x+i.left,top:this.offsetEdge.top+this.translate.y+i.top},a={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};this.newIndex=null;for(var s=0,u=r.length;s<u;s++){var l=r[s].node,c=l.sortableInfo.index,d=l.offsetWidth,f=l.offsetHeight,p={width:this.width>d?d/2:this.width/2,height:this.height>f?f/2:this.height/2},h={x:0,y:0},_=r[s].edgeOffset;_||(r[s].edgeOffset=_=this.getEdgeOffset(l));var m=s<r.length-1&&r[s+1],v=s>0&&r[s-1];m&&!m.edgeOffset&&(m.edgeOffset=this.getEdgeOffset(m.node)),c!==this.index?(t&&(l.style[w.vendorPrefix+"TransitionDuration"]=t+"ms"),this.axis.x?this.axis.y?c<this.index&&(o.left+a.left-p.width<=_.left&&o.top+a.top<=_.top+p.height||o.top+a.top+p.height<=_.top)?(h.x=this.width+this.marginOffset.x,_.left+h.x>this.containerBoundingRect.width-p.width&&(h.x=m.edgeOffset.left-_.left,h.y=m.edgeOffset.top-_.top),null===this.newIndex&&(this.newIndex=c)):c>this.index&&(o.left+a.left+p.width>=_.left&&o.top+a.top+p.height>=_.top||o.top+a.top+p.height>=_.top+f)&&(h.x=-(this.width+this.marginOffset.x),_.left+h.x<this.containerBoundingRect.left+p.width&&(h.x=v.edgeOffset.left-_.left,h.y=v.edgeOffset.top-_.top),this.newIndex=c):c>this.index&&o.left+a.left+p.width>=_.left?(h.x=-(this.width+this.marginOffset.x),this.newIndex=c):c<this.index&&o.left+a.left<=_.left+p.width&&(h.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=c)):this.axis.y&&(c>this.index&&o.top+a.top+p.height>=_.top?(h.y=-(this.height+this.marginOffset.y),this.newIndex=c):c<this.index&&o.top+a.top<=_.top+p.height&&(h.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=c))),l.style[w.vendorPrefix+"Transform"]="translate3d("+h.x+"px,"+h.y+"px,0)"):n&&(this.sortableGhost=l,l.style.visibility="hidden",l.style.opacity=0)}null==this.newIndex&&(this.newIndex=this.index)}},{key:"getWrappedInstance",value:function(){return(0,g.default)(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return p.default.createElement(e,l({ref:t},(0,w.omit)(this.props,"contentWindow","useWindowAsScrollContainer","distance","helperClass","hideSortableGhost","transitionDuration","useDragHandle","pressDelay","pressThreshold","shouldCancelStart","onSortStart","onSortMove","onSortEnd","axis","lockAxis","lockOffset","lockToContainerEdges","getContainer","getHelperDimensions")))}}]),n}(f.Component),t.displayName=(0,w.provideDisplayName)("sortableList",e),t.defaultProps={axis:"y",transitionDuration:300,pressDelay:0,pressThreshold:5,distance:0,useWindowAsScrollContainer:!1,hideSortableGhost:!0,shouldCancelStart:function(e){if(-1!==["input","textarea","select","option","button"].indexOf(e.target.tagName.toLowerCase()))return!0},lockToContainerEdges:!1,lockOffset:"50%",getHelperDimensions:function(e){var t=e.node;return{width:t.offsetWidth,height:t.offsetHeight}}},t.propTypes={axis:_.default.oneOf(["x","y","xy"]),distance:_.default.number,lockAxis:_.default.string,helperClass:_.default.string,transitionDuration:_.default.number,contentWindow:_.default.any,onSortStart:_.default.func,onSortMove:_.default.func,onSortEnd:_.default.func,shouldCancelStart:_.default.func,pressDelay:_.default.number,useDragHandle:_.default.bool,useWindowAsScrollContainer:_.default.bool,hideSortableGhost:_.default.bool,lockToContainerEdges:_.default.bool,lockOffset:_.default.oneOfType([_.default.number,_.default.string,_.default.arrayOf(_.default.oneOfType([_.default.number,_.default.string]))]),getContainer:_.default.func,getHelperDimensions:_.default.func},t.childContextTypes={manager:_.default.object.isRequired},n}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=u;var f=n(20),p=r(f),h=n(6),_=r(h),m=n(31),v=n(44),g=r(v),y=n(794),b=r(y),w=n(237)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(795),s=r(a),u=n(866),l=r(u),c=function(){function e(){i(this,e),this.refs={}}return o(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return(0,s.default)(this.refs[this.active.collection],function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return(0,l.default)(this.refs[e],function(e){return e.node.sortableInfo.index})}}]),e}();t.default=c},function(e,t,n){var r=n(796),i=n(862),o=r(i);e.exports=o},function(e,t,n){function r(e){return function(t,n,r){var s=Object(t);if(!o(t)){var u=i(n,3);t=a(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,r);return l>-1?s[u?t[l]:l]:void 0}}var i=n(323),o=n(125),a=n(244);e.exports=r},function(e,t,n){function r(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}var i=n(798),o=n(849),a=n(535);e.exports=r},function(e,t,n){function r(e,t,n,r){var u=n.length,l=u,c=!r;if(null==e)return!l;for(e=Object(e);u--;){var d=n[u];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++u<l;){d=n[u];var f=d[0],p=e[f],h=d[1];if(c&&d[2]){if(void 0===p&&!(f in e))return!1}else{var _=new i;if(r)var m=r(p,h,f,e,t,_);if(!(void 0===m?o(h,p,a|s,r,_):m))return!1}}return!0}var i=n(520),o=n(326),a=1,s=2;e.exports=r},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var i=n(239),o=Array.prototype,a=o.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}var i=n(239);e.exports=r},function(e,t,n){function r(e){return i(this.__data__,e)>-1}var i=n(239);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(239);e.exports=r},function(e,t,n){function r(){this.__data__=new i,this.size=0}var i=n(238);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}var i=n(238),o=n(324),a=n(325),s=200;e.exports=r},function(e,t,n){function r(e){return!(!a(e)||o(e))&&(i(e)?h:l).test(s(e))}var i=n(521),o=n(812),a=n(107),s=n(523),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,d=Object.prototype,f=c.toString,p=d.hasOwnProperty,h=RegExp("^"+f.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[u]=n:delete e[u]),i}var i=n(222),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=i?i.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return i.call(e)}var r=Object.prototype,i=r.toString;e.exports=n},function(e,t,n){function r(e){return!!o&&o in e}var i=n(813),o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){var r=n(82),i=r["__core-js_shared__"];e.exports=i},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(816),o=n(238),a=n(324);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(817),o=n(818),a=n(819),s=n(820),u=n(821);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){function r(){this.__data__=i?i(null):{},this.size=0}var i=n(240);e.exports=r},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(i){var n=t[e];return n===o?void 0:n}return s.call(t,e)?t[e]:void 0}var i=n(240),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return i?void 0!==t[e]:a.call(t,e)}var i=n(240),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?o:t,this}var i=n(240),o="__lodash_hash_undefined__";e.exports=r},function(e,t,n){function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=n(241);e.exports=r},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function r(e){return i(this,e).get(e)}var i=n(241);e.exports=r},function(e,t,n){function r(e){return i(this,e).has(e)}var i=n(241);e.exports=r},function(e,t,n){function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=n(241);e.exports=r},function(e,t,n){function r(e,t,n,r,m,g){var y=l(e),b=l(t),w=y?h:u(e),k=b?h:u(t);w=w==p?_:w,k=k==p?_:k;var M=w==_,C=k==_,E=w==k;if(E&&c(e)){if(!c(t))return!1;y=!0,M=!1}if(E&&!M)return g||(g=new i),y||d(e)?o(e,t,n,r,m,g):a(e,t,w,n,r,m,g);if(!(n&f)){var x=M&&v.call(e,"__wrapped__"),T=C&&v.call(t,"__wrapped__");if(x||T){var D=x?e.value():e,S=T?t.value():t;return g||(g=new i),m(D,S,n,r,g)}}return!!E&&(g||(g=new i),s(e,t,n,r,m,g))}var i=n(520),o=n(524),a=n(831),s=n(834),u=n(846),l=n(50),c=n(528),d=n(529),f=1,p="[object Arguments]",h="[object Array]",_="[object Object]",m=Object.prototype,v=m.hasOwnProperty;e.exports=r},function(e,t){function n(e){return this.__data__.set(e,r),this}var r="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t,n){function r(e,t,n,r,i,M,E){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!M(new o(e),new o(t)));case f:case p:case m:return a(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case _:var x=u;case g:var T=r&c;if(x||(x=l),e.size!=t.size&&!T)return!1;var D=E.get(e);if(D)return D==t;r|=d,E.set(e,t);var S=s(x(e),x(t),r,i,M,E);return E.delete(e),S;case b:if(C)return C.call(e)==C.call(t)}return!1}var i=n(222),o=n(832),a=n(221),s=n(524),u=n(833),l=n(327),c=1,d=2,f="[object Boolean]",p="[object Date]",h="[object Error]",_="[object Map]",m="[object Number]",v="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",k="[object DataView]",M=i?i.prototype:void 0,C=M?M.valueOf:void 0;e.exports=r},function(e,t,n){var r=n(82),i=r.Uint8Array;e.exports=i},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},function(e,t,n){function r(e,t,n,r,a,u){var l=n&o,c=i(e),d=c.length;if(d!=i(t).length&&!l)return!1;for(var f=d;f--;){var p=c[f];if(!(l?p in t:s.call(t,p)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var _=!0;u.set(e,t),u.set(t,e);for(var m=l;++f<d;){p=c[f];var v=e[p],g=t[p];if(r)var y=l?r(g,v,p,t,e,u):r(v,g,p,e,t,u);if(!(void 0===y?v===g||a(v,g,n,r,u):y)){_=!1;break}m||(m="constructor"==p)}if(_&&!m){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(_=!1)}return u.delete(e),u.delete(t),_}var i=n(835),o=1,a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return i(e,a,o)}var i=n(836),o=n(837),a=n(244);e.exports=r},function(e,t,n){function r(e,t,n){var r=t(e);return o(e)?r:i(r,n(e))}var i=n(525),o=n(50);e.exports=r},function(e,t,n){var r=n(526),i=n(838),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return a.call(e,t)}))}:i;e.exports=u},function(e,t){function n(){return[]}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){function r(e){return o(e)&&i(e)==a}var i=n(137),o=n(108),a="[object Arguments]";e.exports=r},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){return a(e)&&o(e.length)&&!!s[i(e)]}var i=n(137),o=n(330),a=n(108),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){(function(e){var r=n(522),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n(78)(e))},function(e,t,n){function r(e){if(!i(e))return o(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var i=n(530),o=n(845),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(531),i=r(Object.keys,Object);e.exports=i},function(e,t,n){var r=n(847),i=n(324),o=n(848),a=n(532),s=n(533),u=n(137),l=n(523),c=l(r),d=l(i),f=l(o),p=l(a),h=l(s),_=u;(r&&"[object DataView]"!=_(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=_(new i)||o&&"[object Promise]"!=_(o.resolve())||a&&"[object Set]"!=_(new a)||s&&"[object WeakMap]"!=_(new s))&&(_=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=_},function(e,t,n){var r=n(124),i=n(82),o=r(i,"DataView");e.exports=o},function(e,t,n){var r=n(124),i=n(82),o=r(i,"Promise");e.exports=o},function(e,t,n){function r(e){for(var t=o(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,i(a)]}return t}var i=n(534),o=n(244);e.exports=r},function(e,t,n){function r(e,t){return s(e)&&u(t)?l(c(e),t):function(n){var r=o(n,e);return void 0===r&&r===t?a(n,e):i(t,r,d|f)}}var i=n(326),o=n(851),a=n(856),s=n(331),u=n(534),l=n(535),c=n(246),d=1,f=2;e.exports=r},function(e,t,n){function r(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}var i=n(536);e.exports=r},function(e,t,n){var r=n(853),i=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r(function(e){var t=[];return i.test(e)&&t.push(""),e.replace(o,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});e.exports=s},function(e,t,n){function r(e){var t=i(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var i=n(538),o=500;e.exports=r},function(e,t,n){function r(e){return null==e?"":i(e)}var i=n(855);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(a(e))return o(e,r)+"";if(s(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}var i=n(222),o=n(224),a=n(50),s=n(223),u=1/0,l=i?i.prototype:void 0,c=l?l.toString:void 0;e.exports=r},function(e,t,n){function r(e,t){return null!=e&&o(e,t,i)}var i=n(857),o=n(858);e.exports=r},function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t,n){function r(e,t,n){t=i(t,e);for(var r=-1,c=t.length,d=!1;++r<c;){var f=l(t[r]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++r!=c?d:!!(c=null==e?0:e.length)&&u(c)&&s(f,c)&&(a(e)||o(e))}var i=n(537),o=n(328),a=n(50),s=n(329),u=n(330),l=n(246);e.exports=r},function(e,t,n){function r(e){return a(e)?i(s(e)):o(e)}var i=n(860),o=n(861),a=n(331),s=n(246);e.exports=r},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){function r(e){return function(t){return i(t,e)}}var i=n(536);e.exports=r},function(e,t,n){function r(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var u=null==n?0:a(n);return u<0&&(u=s(r+u,0)),i(e,o(t,3),u)}var i=n(539),o=n(323),a=n(863),s=Math.max;e.exports=r},function(e,t,n){function r(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}var i=n(864);e.exports=r},function(e,t,n){function r(e){if(!e)return 0===e?e:0;if((e=i(e))===o||e===-o){return(e<0?-1:1)*a}return e===e?e:0}var i=n(865),o=1/0,a=1.7976931348623157e308;e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):u.test(e)?a:+e}var i=n(107),o=n(223),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=r},function(e,t,n){var r=n(248),i=n(868),o=n(126),a=n(544),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},function(e,t,n){function r(e){return a(e)||o(e)||!!(s&&e&&e[s])}var i=n(222),o=n(328),a=n(50),s=i?i.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){function r(e,t,n){var r=-1;t=i(t.length?t:[c],u(o));var d=a(e,function(e,n,o){return{criteria:i(t,function(t){return t(e)}),index:++r,value:e}});return s(d,function(e,t){return l(e,t,n)})}var i=n(224),o=n(323),a=n(869),s=n(875),u=n(245),l=n(876),c=n(247);e.exports=r},function(e,t,n){function r(e,t){var n=-1,r=o(e)?Array(e.length):[];return i(e,function(e,i,o){r[++n]=t(e,i,o)}),r}var i=n(870),o=n(125);e.exports=r},function(e,t,n){var r=n(871),i=n(874),o=i(r);e.exports=o},function(e,t,n){function r(e,t){return e&&i(e,t,o)}var i=n(872),o=n(244);e.exports=r},function(e,t,n){var r=n(873),i=r();e.exports=i},function(e,t){function n(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}e.exports=n},function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}var i=n(125);e.exports=r},function(e,t){function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}e.exports=n},function(e,t,n){function r(e,t,n){for(var r=-1,o=e.criteria,a=t.criteria,s=o.length,u=n.length;++r<s;){var l=i(o[r],a[r]);if(l){if(r>=u)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index}var i=n(877);e.exports=r},function(e,t,n){function r(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e===e,a=i(e),s=void 0!==t,u=null===t,l=t===t,c=i(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}var i=n(223);e.exports=r},function(e,t,n){var r=n(879),i=n(543),o=n(247),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var a=o(),s=i-(a-n);if(n=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return i(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,t),l(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index;n||this.setDraggable(t,r)}},{key:"componentWillReceiveProps",value:function(e){if(this.props.index!==e.index&&this.node&&(this.node.sortableInfo.index=e.index),this.props.disabled!==e.disabled){var t=e.collection,n=e.disabled,r=e.index;n?this.removeDraggable(t):this.setDraggable(t,r)}else this.props.collection!==e.collection&&(this.removeDraggable(this.props.collection),this.setDraggable(e.collection,e.index))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.collection;e.disabled||this.removeDraggable(t)}},{key:"setDraggable",value:function(e,t){var n=this.node=(0,h.findDOMNode)(this);n.sortableInfo={index:t,collection:e,manager:this.context.manager},this.ref={node:n},this.context.manager.add(e,this.ref)}},{key:"removeDraggable",value:function(e){this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return(0,m.default)(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return d.default.createElement(e,u({ref:t},(0,v.omit)(this.props,"collection","disabled","index")))}}]),n}(c.Component),t.displayName=(0,v.provideDisplayName)("sortableElement",e),t.contextTypes={manager:p.default.object.isRequired},t.propTypes={index:p.default.number.isRequired,collection:p.default.oneOfType([p.default.number,p.default.string]),disabled:p.default.bool},t.defaultProps={collection:0},n}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var c=n(20),d=r(c),f=n(6),p=r(f),h=n(31),_=n(44),m=r(_),v=n(237)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return i(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,t),l(n,[{key:"componentDidMount",value:function(){(0,f.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return(0,h.default)(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return d.default.createElement(e,u({ref:t},this.props))}}]),n}(c.Component),t.displayName=(0,_.provideDisplayName)("sortableHandle",e),n}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var c=n(20),d=r(c),f=n(31),p=n(44),h=r(p),_=n(237)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(39),o=(0,i.createClassForCustomAttributeItemDescription)("multienum",{render:function(){var e=this,t=this.props.field.get(),n=this.props.field.values();return this.props.readOnly?React.createElement("ul",null,t.map(function(t){return React.createElement("li",{key:t},e.props.field.titleForValue(t))})):React.createElement("ul",{className:"enum_attribute scrivito_multi"},n.map(function(i){return React.createElement("li",{key:i,className:(0,r.contains)(t,i)?"enum_attribute_active":"",onClick:function(r){return e._onClick(r,i,t,n)}},e.props.field.titleForValue(i))}))},_onClick:function(e,t,n,i){if(e.preventDefault(),e.stopPropagation(),(0,r.contains)(n,t)){var o=n.indexOf(t);n.splice(o,1)}else n.push(t);n.sort(function(e,t){return i.indexOf(e)-i.indexOf(t)}),this.props.field.update(n)}});t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.isPresent,n=e.onClick;return t?React.createElement("span",{className:"clear_button delete_list_item_button scrivito_pull_right",title:scrivito.t("reference_attribute_component.clear_button.title"),onClick:n},React.createElement("i",{className:"scrivito_icon scrivito_icon_cancel"})):null}Object.defineProperty(t,"__esModule",{value:!0});var o=n(39),a=n(545),s=r(a),u=n(122),l=r(u),c=(0,o.createClassForCustomAttributeItemDescription)("reference",{render:function(){return React.createElement("div",{className:this._className(),onClick:this._onClick},React.createElement(s.default,{obj:this.props.field.get(),isBrowsable:this._isBrowsable()}),React.createElement(i,{isPresent:this._canBeCleared(),onClick:this._onClear}))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this._isBrowsable()&&(this.props.readOnly?this._showObj():this._selectObj())},_onClear:function(e){e.preventDefault(),e.stopPropagation(),this.props.field.update(null)},_className:function(){return this._isBrowsable()?"reference_attribute scrivito_browsable":"reference_attribute"},_isBrowsable:function(){return!this.props.readOnly||null!==this.props.field.get()},_canBeCleared:function(){return!this.props.readOnly&&null!==this.props.field.get()},_showObj:function(){(0,l.default)({selectionMode:"single",standAlone:!0,selection:[this.props.field.get().id()],disableDelete:!0})},_selectObj:function(){var e=this,t=this.props.field.get(),n=t?[t.id()]:[];(0,l.default)({selection:n,selectionMode:"single",standAlone:!1}).then(function(t){var n=t.isSelected,r=t.selection;n&&e.props.field.update(r[0]||null)})}});t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){return h.default.createElement("div",{className:"referencelist_attribute_item",onClick:e.onClick},h.default.createElement(g.default,{obj:e.obj,isBrowsable:!0}),e.onDelete&&h.default.createElement(a,{onClick:e.onDelete}))}function a(e){return h.default.createElement("span",u({className:"delete_list_item_button scrivito_pull_right"},e),h.default.createElement("i",{className:"scrivito_icon scrivito_icon_trash"}))}function s(e){return h.default.createElement("div",u({className:"add_list_items_button"},e),h.default.createElement("i",{className:"scrivito_icon scrivito_icon_plus"}))}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(6),c=r(l),d=n(3),f=r(d),p=n(20),h=r(p),_=n(322),m=n(39),v=n(545),g=r(v),y=n(122),b=r(y),w=(0,m.createClassForCustomAttributeItemDescription)("referencelist",{render:function(){return this.props.readOnly?h.default.createElement(k,{objs:this.props.field.get()}):h.default.createElement("div",{className:"referencelist_attribute"},h.default.createElement(M,{distance:10,helperClass:"scrivito_detail_content scrivito_detail_content_dragging",items:this.props.field.get(),lockToContainerEdges:!0,onItemClick:this._selectObj,onItemDelete:this._onItemDelete,onSortEnd:this._onSortEnd}),h.default.createElement(s,{onClick:this._onAddObjsClick}))},_onItemDelete:function(e,t){e.preventDefault(),e.stopPropagation();var n=this.props.field.get();n.splice(t,1),this.props.field.update(n)},_onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex;this.props.field.update((0,_.arrayMove)(this.props.field.get(),t,n))},_selectObj:function(e,t){var n=this;e.preventDefault(),e.stopPropagation();var r=this.props.field.get();(0,b.default)({selection:[r[t].id()],selectionMode:"single",standAlone:!1}).then(function(e){var o=e.isSelected,a=e.selection;o&&n.props.field.update([].concat(i(r.slice(0,t)),i(a),i(r.slice(t+1,r.length))))})},_onAddObjsClick:function(e){var t=this;e.preventDefault(),e.stopPropagation(),(0,b.default)({selection:[],selectionMode:"multi",standAlone:!1}).then(function(e){var n=e.isSelected,r=e.selection;n&&t.props.field.update([].concat(i(t.props.field.get()),i(r)))})}}),k=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyReferencelist",propTypes:{objs:c.default.arrayOf(c.default.instanceOf(f.default)).isRequired},render:function(){var e=this;return h.default.createElement("div",{className:"referencelist_attribute"},this.props.objs.map(function(t,n){return h.default.createElement(o,{key:t.id()+"-"+n,obj:t,onClick:function(n){return e._showObj(n,t)}})}))},_showObj:function(e,t){e.preventDefault(),e.stopPropagation(),(0,b.default)({selectionMode:"single",standAlone:!0,disableDelete:!0,selection:[t.id()]})}}),M=(0,_.SortableContainer)(function(e){return h.default.createElement("div",null,e.items.map(function(t,n){return h.default.createElement(C,{index:n,key:n.toString(),onClick:function(t){return e.onItemClick(t,n)},onDelete:function(t){return e.onItemDelete(t,n)},value:t})}))});M.displayName="PropertiesComponent.SortableReferencelist";var C=(0,_.SortableElement)(function(e){return h.default.createElement("div",null,h.default.createElement(o,{obj:e.value,onClick:e.onClick,onDelete:e.onDelete}))});C.displayName="PropertiesComponent.SortableReferencelistItem",o.propTypes={obj:c.default.instanceOf(f.default).isRequired,onClick:c.default.func.isRequired,onDelete:c.default.func},a.propTypes={onClick:c.default.func.isRequired},s.propTypes={onClick:c.default.func.isRequired},t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForCustomAttributeItemDescription)("string",{render:function(){return React.createElement("input",{type:"text",value:this.props.field.get(),disabled:this.props.readOnly,onChange:this._onChange})},_onChange:function(e){this.props.readOnly||this.props.field.update(e.target.value)}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(546),i=function(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}(r),o=n(888),a=n(0),s=n(39),u=(0,s.createClassForCustomAttributeItemDescription)("stringlist",{getInitialState:function(){return{suggestions:[]}},render:function(){return this.props.readOnly&&0===this.props.field.get().length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("stringlist_item_component.read_stringlist.placeholder"))):React.createElement(o.WithContext,{allowDeleteFromEmptyInput:!1,autocomplete:1,autofocus:!1,classNames:this._getClassNames(),handleAddition:this._handleAddition,handleDelete:this._handleDelete,handleDrag:this._handleDrag,handleFilterSuggestions:this._handleFilterSuggestions,handleInputChange:this._handleInputChange,minQueryLength:1,placeholder:scrivito.t("stringlist_item_component.edit_stringlist.add_placeholder"),readOnly:this.props.readOnly,suggestions:this.state.suggestions,tags:this._getFormattedStrings()})},_getClassNames:function(){return{activeSuggestion:"active_suggestion",remove:"remove",selected:"selected",suggestions:"suggestions",tag:"string",tagInput:"string_input",tagInputField:"string_input_field",tags:"strings "+(this.props.readOnly?"read_stringlist":"edit_stringlist")}},_getFormattedStrings:function(){return this._getStrings().map(function(e){return{id:e,text:e}})},_getStrings:function(){return(0,a.uniq)(this.props.field.get())},_hasString:function(e){return(0,a.contains)(this._getStrings(),e)},_handleAddition:function(e){this._hasString(e)||this.props.field.update(this._getStrings().concat([e]))},_handleDelete:function(e){var t=this._getStrings();t.splice(e,1),this.props.field.update(t)},_handleDrag:function(e,t,n){var r=this._getStrings();r.splice(t,1),r.splice(n,0,e.text),this.props.field.update(r)},_handleFilterSuggestions:function(e,t){var n=this;return t.filter(function(e){return!n._hasString(e.toLowerCase())})},_handleInputChange:function(e){var t=this;this._input=e,i.suggest(this.props.field.name(),e).then(function(n){t._input===e&&t.setState({suggestions:n})})}});t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(20),c=r(l),d=n(31),f=(r(d),n(547)),p=n(931),h=r(p),_=n(949),m=r(_),v=n(6),g=r(v),y=n(951),b=r(y),w={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},k={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},M=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={suggestions:n.props.suggestions,query:"",selectedIndex:-1,selectionMode:!1},n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.resetAndFocusInput=n.resetAndFocusInput.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),n}return a(t,e),u(t,[{key:"componentWillMount",value:function(){this.setState({classNames:s({},k,this.props.classNames)})}},{key:"resetAndFocusInput",value:function(){this.textInput.value="",this.textInput.focus()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"filteredSuggestions",value:function(e,t){return this.props.handleFilterSuggestions?this.props.handleFilterSuggestions(e,t):t.filter(function(t){return 0===t.toLowerCase().indexOf(e.toLowerCase())})}},{key:"componentWillReceiveProps",value:function(e){var t=this.filteredSuggestions(this.state.query,e.suggestions);this.setState({suggestions:t,classNames:s({},k,e.classNames)})}},{key:"handleDelete",value:function(e,t){this.props.handleDelete(e),this.setState({query:""}),this.resetAndFocusInput()}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value.trim());var t=e.target.value.trim(),n=this.filteredSuggestions(t,this.props.suggestions),r=this.state.selectedIndex;r>=n.length&&(r=n.length-1),this.setState({query:t,suggestions:n,selectedIndex:r})}},{key:"handleBlur",value:function(e){var t=e.target.value.trim();this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput.value="")}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=(t.selectedIndex,t.suggestions);if(e.keyCode===w.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1===this.props.delimiters.indexOf(e.keyCode)||e.shiftKey||(e.keyCode===w.TAB&&""===n||e.preventDefault(),""!==n&&(this.state.selectionMode&&-1!=this.state.selectedIndex&&(n=this.state.suggestions[this.state.selectedIndex]),this.addTag(n))),e.keyCode===w.BACKSPACE&&""==n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1),e.keyCode===w.UP_ARROW){e.preventDefault();var i=this.state,o=i.selectedIndex,a=i.suggestions;o=o<=0?a.length-1:o-1,this.setState({selectedIndex:o,selectionMode:!0})}e.keyCode===w.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:(this.state.selectedIndex+1)%r.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;e.preventDefault();var n=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(this.props.delimiters.map(function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)}).join("")),r=e.clipboardData||window.clipboardData,i=r.getData("text"),o=new RegExp("["+n+"]+");i.split(o).forEach(function(e){return t.props.handleAddition(e)})}},{key:"addTag",value:function(e){if(this.props.autocomplete){var t=this.filteredSuggestions(e,this.props.suggestions);(1===this.props.autocomplete&&1===t.length||!0===this.props.autocomplete&&t.length)&&(e=t[0])}this.props.handleAddition(e),this.setState({query:"",selectionMode:!1,selectedIndex:-1}),this.resetAndFocusInput()}},{key:"handleSuggestionClick",value:function(e,t){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e,t){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags,r=n[e];this.props.handleDrag(r,e,t)}},{key:"render",value:function(){var e=this,t=this.props.handleDrag?this.moveTag:null,n=this.props.tags.map(function(e,n){return c.default.createElement(b.default,{key:e.id,index:n,tag:e,labelField:this.props.labelField,onDelete:this.handleDelete.bind(this,n),moveTag:t,removeComponent:this.props.removeComponent,readOnly:this.props.readOnly,classNames:this.state.classNames})}.bind(this)),r=this.state.query.trim(),i=this.state.selectedIndex,o=this.state.suggestions,a=this.props.placeholder,s=this.props.name,u=this.props.id,l=this.props.maxLength,d=this.props.readOnly?null:c.default.createElement("div",{className:this.state.classNames.tagInput},c.default.createElement("input",{ref:function(t){e.textInput=t},className:this.state.classNames.tagInputField,type:"text",placeholder:a,"aria-label":a,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:s,id:u,maxLength:l}),c.default.createElement(m.default,{query:r,suggestions:o,selectedIndex:i,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,classNames:this.state.classNames}));return c.default.createElement("div",{className:this.state.classNames.tags},c.default.createElement("div",{className:this.state.classNames.selected},n,this.props.inline&&d),!this.props.inline&&d)}}]),t}(l.Component);M.PropTypes={placeholder:g.default.string,labelField:g.default.string,suggestions:g.default.array,delimiters:g.default.array,autofocus:g.default.bool,inline:g.default.bool,handleDelete:g.default.func.isRequired,handleAddition:g.default.func.isRequired,handleDrag:g.default.func,handleFilterSuggestions:g.default.func,allowDeleteFromEmptyInput:g.default.bool,handleInputChange:g.default.func,handleInputBlur:g.default.func,minQueryLength:g.default.number,shouldRenderSuggestions:g.default.func,removeComponent:g.default.func,autocomplete:g.default.oneOfType([g.default.bool,g.default.number]),readOnly:g.default.bool,classNames:g.default.object,name:g.default.string,id:g.default.string,maxLength:g.default.string},M.defaultProps={placeholder:"Add new tag",tags:[],suggestions:[],delimiters:[w.ENTER,w.TAB],autofocus:!0,inline:!0,allowDeleteFromEmptyInput:!0,minQueryLength:2,autocomplete:!1,readOnly:!1},e.exports={WithContext:(0,f.DragDropContext)(h.default)(M),WithOutContext:M,Keys:w}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(890);Object.defineProperty(t,"DragDropManager",{enumerable:!0,get:function(){return r(i).default}});var o=n(911);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return r(o).default}});var a=n(912);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return r(a).default}});var s=n(913);Object.defineProperty(t,"createTestBackend",{enumerable:!0,get:function(){return r(s).default}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(891),s=r(a),u=n(893),l=r(u),c=n(249),d=function(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}(c),f=n(906),p=r(f),h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e);var r=(0,s.default)(l.default);this.context=n,this.store=r,this.monitor=new p.default(r),this.registry=this.monitor.registry,this.backend=t(this),r.subscribe(this.handleRefCountChange.bind(this))}return o(e,[{key:"handleRefCountChange",value:function(){var e=this.store.getState().refCount>0;e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){function e(e){return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=e.apply(t,i);void 0!==a&&n(a)}}var t=this,n=this.store.dispatch;return Object.keys(d).filter(function(e){return"function"==typeof d[e]}).reduce(function(t,n){var r=d[n];return t[n]=e(r),t},{})}}]),e}();t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){function r(){v===m&&(v=m.slice())}function o(){return _}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),v.push(e),function(){if(t){t=!1,r();var n=v.indexOf(e);v.splice(n,1)}}}function c(e){if(!(0,a.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,_=h(_,e)}finally{g=!1}for(var t=m=v,n=0;n<t.length;n++)t[n]();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,c({type:l.INIT})}function f(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(o())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[u.default]=function(){return this},e}var p;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,_=t,m=[],v=m,g=!1;return c({type:l.INIT}),p={dispatch:c,subscribe:s,getState:o,replaceReducer:d},p[u.default]=f,p}t.__esModule=!0,t.ActionTypes=void 0,t.default=i;var o=n(127),a=r(o),s=n(501),u=r(s),l=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,n){var r=n(531),i=r(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{dirtyHandlerIds:(0,f.default)(e.dirtyHandlerIds,t,e.dragOperation),dragOffset:(0,a.default)(e.dragOffset,t),refCount:(0,c.default)(e.refCount,t),dragOperation:(0,u.default)(e.dragOperation,t),stateId:(0,h.default)(e.stateId)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(549),a=r(o),s=n(894),u=r(s),l=n(898),c=r(l),d=n(553),f=r(d),p=n(905),h=r(p)},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case s.BEGIN_DRAG:return i({},e,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case s.PUBLISH_DRAG_SOURCE:return i({},e,{isSourcePublic:!0});case s.HOVER:return i({},e,{targetIds:t.targetIds});case u.REMOVE_TARGET:return-1===e.targetIds.indexOf(t.targetId)?e:i({},e,{targetIds:(0,a.default)(e.targetIds,t.targetId)});case s.DROP:return i({},e,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case s.END_DRAG:return i({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=r;var o=n(551),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=n(249),u=n(251),l={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null}},function(e,t,n){function r(e,t,n){return t===t?a(e,t,n):i(e,o,n)}var i=n(539),o=n(896),a=n(897);e.exports=r},function(e,t){function n(e){return e!==e}e.exports=n},function(e,t){function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}e.exports=n},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch(arguments[1].type){case i.ADD_SOURCE:case i.ADD_TARGET:return e+1;case i.REMOVE_SOURCE:case i.REMOVE_TARGET:return e-1;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(251)},function(e,t,n){var r=n(526),i=n(126),o=n(900),a=n(250),s=i(function(e){return o(r(e,a))});e.exports=s},function(e,t,n){function r(e,t,n){var r=e.length;if(r<2)return r?a(e[0]):[];for(var s=-1,u=Array(r);++s<r;)for(var l=e[s],c=-1;++c<r;)c!=s&&(u[s]=i(u[s]||l,e[c],t,n));return a(o(u,1),t,n)}var i=n(552),o=n(248),a=n(554);e.exports=r},function(e,t,n){var r=n(532),i=n(334),o=n(327),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t,n){var r=n(224),i=n(903),o=n(126),a=n(904),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},function(e,t,n){function r(e,t,n){for(var r=n?a:o,d=e[0].length,f=e.length,p=f,h=Array(f),_=1/0,m=[];p--;){var v=e[p];p&&t&&(v=s(v,u(t))),_=c(v.length,_),h[p]=!n&&(t||d>=120&&v.length>=120)?new i(p&&v):void 0}v=e[0];var g=-1,y=h[0];e:for(;++g<d&&m.length<_;){var b=v[g],w=t?t(b):b;if(b=n||0!==b?b:0,!(y?l(y,w):r(m,w,n))){for(p=f;--p;){var k=h[p];if(!(k?l(k,w):r(e[p],w,n)))continue e}y&&y.push(w),m.push(b)}}return m}var i=n(242),o=n(332),a=n(333),s=n(224),u=n(245),l=n(243),c=Math.min;e.exports=r},function(e,t,n){function r(e){return i(e)?e:[]}var i=n(250);e.exports=r},function(e,t,n){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(44),s=r(a),u=n(50),l=r(u),c=n(550),d=r(c),f=n(907),p=r(f),h=n(549),_=n(553),m=function(){function e(t){i(this,e),this.store=t,this.registry=new p.default(t)}return o(e,[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.handlerIds;(0,s.default)("function"==typeof e,"listener must be a function."),(0,s.default)(void 0===r||(0,l.default)(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,o=function(){var n=t.store.getState(),o=n.stateId;try{o===i||o===i+1&&!(0,_.areDirty)(n.dirtyHandlerIds,r)||e()}finally{i=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,s.default)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset,r=function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())};return this.store.subscribe(r)}},{key:"canDragSource",value:function(e){var t=this.registry.getSource(e);return(0,s.default)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){var t=this.registry.getTarget(e);if((0,s.default)(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();return(0,d.default)(n,r)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){var t=this.registry.getSource(e,!0);return(0,s.default)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1},n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),i=this.getItemType();if(!(0,d.default)(r,i))return!1;var o=this.getTargetIds();if(!o.length)return!1;var a=o.indexOf(e);return n?a===o.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,h.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,h.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),e}();t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){(0,p.default)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,p.default)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,p.default)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}function a(e){(0,p.default)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,p.default)("function"==typeof e.hover,"Expected hover to be a function."),(0,p.default)("function"==typeof e.drop,"Expected beginDrag to be a function.")}function s(e,t){if(t&&(0,_.default)(e))return void e.forEach(function(e){return s(e,!1)});(0,p.default)("string"==typeof e||"symbol"===(void 0===e?"undefined":d(e)),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function u(e){var t=(0,b.default)().toString();switch(e){case w.SOURCE:return"S"+t;case w.TARGET:return"T"+t;default:(0,p.default)(!1,"Unknown role: "+e)}}function l(e){switch(e[0]){case"S":return w.SOURCE;case"T":return w.TARGET;default:(0,p.default)(!1,"Cannot parse handler ID: "+e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=n(44),p=r(f),h=n(50),_=r(h),m=n(908),v=r(m),g=n(251),y=n(910),b=r(y),w={SOURCE:"SOURCE",TARGET:"TARGET"},k=function(){function e(t){i(this,e),this.store=t,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return c(e,[{key:"addSource",value:function(e,t){s(e),o(t);var n=this.addHandler(w.SOURCE,e,t);return this.store.dispatch((0,g.addSource)(n)),n}},{key:"addTarget",value:function(e,t){s(e,!0),a(t);var n=this.addHandler(w.TARGET,e,t);return this.store.dispatch((0,g.addTarget)(n)),n}},{key:"addHandler",value:function(e,t,n){var r=u(e);return this.types[r]=t,this.handlers[r]=n,r}},{key:"containsHandler",value:function(e){var t=this;return Object.keys(this.handlers).some(function(n){return t.handlers[n]===e})}},{key:"getSource",value:function(e,t){return(0,p.default)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.handlers[e]}},{key:"getTarget",value:function(e){return(0,p.default)(this.isTargetId(e),"Expected a valid target ID."),this.handlers[e]}},{key:"getSourceType",value:function(e){return(0,p.default)(this.isSourceId(e),"Expected a valid source ID."),this.types[e]}},{key:"getTargetType",value:function(e){return(0,p.default)(this.isTargetId(e),"Expected a valid target ID."),this.types[e]}},{key:"isSourceId",value:function(e){return l(e)===w.SOURCE}},{key:"isTargetId",value:function(e){return l(e)===w.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,p.default)(this.getSource(e),"Expected an existing source."),this.store.dispatch((0,g.removeSource)(e)),(0,v.default)(function(){delete t.handlers[e],delete t.types[e]})}},{key:"removeTarget",value:function(e){var t=this;(0,p.default)(this.getTarget(e),"Expected an existing target."),this.store.dispatch((0,g.removeTarget)(e)),(0,v.default)(function(){delete t.handlers[e],delete t.types[e]})}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,p.default)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,p.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}}]),e}();t.default=k},function(e,t,n){"use strict";function r(){if(u.length)throw u.shift()}function i(e){var t;t=s.length?s.pop():new o,t.task=e,a(t)}function o(){this.task=null}var a=n(909),s=[],u=[],l=a.makeRequestCallFromTimer(r);e.exports=i,o.prototype.call=function(){try{this.task.call()}catch(e){i.onerror?i.onerror(e):(u.push(e),l())}finally{this.task=null,s[s.length]=this}}},function(e,t,n){"use strict";(function(t){function n(e){a.length||(o(),s=!0),a[a.length]=e}function r(){for(;u<a.length;){var e=u;if(u+=1,a[e].call(),u>l){for(var t=0,n=a.length-u;t<n;t++)a[t]=a[t+u];a.length-=u,u=0}}a.length=0,u=0,s=!1}function i(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var o,a=[],s=!1,u=0,l=1024,c=void 0!==t?t:self,d=c.MutationObserver||c.WebKitMutationObserver;o="function"==typeof d?function(e){var t=1,n=new d(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):i(r),n.requestFlush=o,n.makeRequestCallFromTimer=i}).call(t,n(51))},function(e,t,n){"use strict";function r(){return i++}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=0},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,[{key:"canDrag",value:function(){return!0}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,[{key:"canDrop",value:function(){return!0}},{key:"hover",value:function(){}},{key:"drop",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return new u(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=i;var a=n(334),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=function(){function e(t){r(this,e),this.actions=t.getActions()}return o(e,[{key:"setup",value:function(){this.didCallSetup=!0}},{key:"teardown",value:function(){this.didCallTeardown=!0}},{key:"connectDragSource",value:function(){return s.default}},{key:"connectDragPreview",value:function(){return s.default}},{key:"connectDropTarget",value:function(){return s.default}},{key:"simulateBeginDrag",value:function(e,t){this.actions.beginDrag(e,t)}},{key:"simulatePublishDragSource",value:function(){this.actions.publishDragSource()}},{key:"simulateHover",value:function(e,t){this.actions.hover(e,t)}},{key:"simulateDrop",value:function(){this.actions.drop()}},{key:"simulateEndDrag",value:function(){this.actions.endDrag()}}]),e}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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.default=void 0;var a,s,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(20),c=n(6),d=function(e){return e&&e.__esModule?e:{default:e}}(c),f=n(548),p=(s=a=function(e){function t(e,n){r(this,t);var o=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.backend=(0,f.unpackBackendForEs5Users)(e.backend),o}return o(t,e),u(t,[{key:"getChildContext",value:function(){var e=this;return(0,f.createChildContext)(this.backend,{window:function(){return e.props&&e.props.window?e.props.window:e.context&&e.context.window?e.context.window:"undefined"!=typeof window?window:void 0}()})}},{key:"render",value:function(){return l.Children.only(this.props.children)}}]),t}(l.Component),a.propTypes={backend:d.default.oneOfType([d.default.func,d.default.object]).isRequired,children:d.default.element.isRequired,window:d.default.object},a.defaultProps={window:void 0},a.childContextTypes=f.CHILD_CONTEXT_TYPES,a.displayName="DragDropContextProvider",a.contextTypes={window:d.default.object},s);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x.default.apply(void 0,["DragLayer","collect[, options]"].concat(Array.prototype.slice.call(arguments))),(0,b.default)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",e),(0,b.default)((0,g.default)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',t),function(n){var r,s,p=t.arePropsEqual,_=void 0===p?C.default:p,v=n.displayName||n.name||"Component",g=(s=r=function(t){function r(e,t){i(this,r);var n=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return n.handleChange=n.handleChange.bind(n),n.manager=t.dragDropManager,(0,b.default)("object"===l(n.manager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",v,v),n.state=n.getCurrentState(),n}return a(r,t),c(r,[{key:"getDecoratedComponentInstance",value:function(){return(0,b.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"shouldComponentUpdate",value:function(e,t){return!_(e,this.props)||!(0,k.default)(t,this.state)}}]),c(r,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0;var e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,k.default)(e,this.state)||this.setState(e)}}},{key:"getCurrentState",value:function(){var t=this.manager.getMonitor();return e(t)}},{key:"render",value:function(){var e=this;return f.default.createElement(n,u({},this.props,this.state,{ref:function(t){return e.child=t}}))}}]),r}(d.Component),r.DecoratedComponent=n,r.displayName="DragLayer("+v+")",r.contextTypes={dragDropManager:h.default.object.isRequired},s);return(0,m.default)(g,n)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=s;var d=n(20),f=r(d),p=n(6),h=r(p),_=n(335),m=r(_),v=n(127),g=r(v),y=n(44),b=r(y),w=n(336),k=r(w),M=n(555),C=r(M),E=n(252),x=r(E)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c.default.apply(void 0,["DragSource","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var i=e;"function"!=typeof e&&((0,a.default)((0,k.default)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e),i=function(){return e}),(0,a.default)((0,u.default)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t);var o=(0,m.default)(t);return(0,a.default)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),(0,a.default)((0,u.default)(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),function(e){return(0,f.default)({connectBackend:function(e,t){return e.connectDragSource(t)},containerDisplayName:"DragSource",createHandler:o,registerHandler:h.default,createMonitor:g.default,createConnector:b.default,DecoratedComponent:e,getType:i,collect:n,options:r})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(44),a=r(o),s=n(127),u=r(s),l=n(252),c=r(l),d=n(556),f=r(d),p=n(921),h=r(p),_=n(922),m=r(_),v=n(923),g=r(v),y=n(924),b=r(y),w=n(559),k=r(w)},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(337),o=r(i);t.isDisposable=o.default;var a=n(918),s=r(a);t.Disposable=s.default;var u=n(919),l=r(u);t.CompositeDisposable=l.default;var c=n(920),d=r(c);t.SerialDisposable=d.default},function(e,t,n){"use strict";var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.__esModule=!0;var o=function(){},a=function(){function e(t){r(this,e),this.isDisposed=!1,this.action=t||o}return e.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},i(e,null,[{key:"empty",enumerable:!0,value:{dispose:o}}]),e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var i=n(337),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=function(){function e(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];r(this,e),Array.isArray(n[0])&&1===n.length&&(n=n[0]);for(var a=0;a<n.length;a++)if(!o.default(n[a]))throw new Error("Expected a disposable");this.disposables=n,this.isDisposed=!1}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){if(this.isDisposed)return!1;var t=this.disposables.indexOf(e);return-1!==t&&(this.disposables.splice(t,1),e.dispose(),!0)},e.prototype.dispose=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.isDisposed=!0,this.disposables=[],this.length=0;for(var n=0;n<e;n++)t[n].dispose()}},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var i=n(337),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=function(){function e(){r(this,e),this.isDisposed=!1,this.current=null}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(){var e=void 0===arguments[0]?null:arguments[0];if(null!=e&&!o.default(e))throw new Error("Expected either an empty value or a valid disposable");var t=this.isDisposed,n=void 0;t||(n=this.current,this.current=e),n&&n.dispose(),t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null,e&&e.dispose()}},e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){function r(){i.removeSource(o)}var i=n.getRegistry(),o=i.addSource(e,t);return{handlerId:o,unregister:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){Object.keys(e).forEach(function(t){(0,u.default)(c.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',c.join(", "),t),(0,u.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}),d.forEach(function(t){(0,u.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])});var t=function(){function t(e){i(this,t),this.monitor=e,this.props=null,this.component=null}return a(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrag",value:function(){return!e.canDrag||e.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function(t,n){return e.isDragging?e.isDragging(this.props,this.monitor):n===t.getSourceId()}},{key:"beginDrag",value:function(){var t=e.beginDrag(this.props,this.monitor,this.component);return t}},{key:"endDrag",value:function(){e.endDrag&&e.endDrag(this.props,this.monitor,this.component)}}]),t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var s=n(44),u=r(s),l=n(127),c=(r(l),["canDrag","beginDrag","isDragging","endDrag"]),d=["beginDrag"]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return new c(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=i;var a=n(44),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=!1,l=!1,c=function(){function e(t){r(this,e),this.internalMonitor=t.getMonitor()}return o(e,[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"canDrag",value:function(){(0,s.default)(!u,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return u=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{u=!1}}},{key:"isDragging",value:function(){(0,s.default)(!l,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return l=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{l=!1}}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(){l&&(l(),l=null),i&&o&&(l=e.connectDragSource(i,o,s))}function n(){f&&(f(),f=null),i&&c&&(f=e.connectDragPreview(i,c,d))}function r(e){e!==i&&(i=e,t(),n())}var i=void 0,o=void 0,s=void 0,l=void 0,c=void 0,d=void 0,f=void 0;return{receiveHandlerId:r,hooks:(0,a.default)({dragSource:function(e,n){e===o&&(0,u.default)(n,s)||(o=e,s=n,t())},dragPreview:function(e,t){e===c&&(0,u.default)(t,d)||(c=e,d=t,n())}})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(557),a=r(o),s=n(558),u=r(s)},function(e,t,n){"use strict";function r(e,t){var n=e.ref;return(0,o.default)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,a.cloneElement)(e,{ref:function(e){t(e),n&&n(e)}}):(0,a.cloneElement)(e,{ref:t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(44),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(20)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c.default.apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var i=e;"function"!=typeof e&&((0,a.default)((0,k.default)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e),i=function(){return e}),(0,a.default)((0,u.default)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t);var o=(0,m.default)(t);return(0,a.default)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),(0,a.default)((0,u.default)(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),function(e){return(0,f.default)({connectBackend:function(e,t){return e.connectDropTarget(t)},containerDisplayName:"DropTarget",createHandler:o,registerHandler:h.default,createMonitor:g.default,createConnector:b.default,DecoratedComponent:e,getType:i,collect:n,options:r})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(44),a=r(o),s=n(127),u=r(s),l=n(252),c=r(l),d=n(556),f=r(d),p=n(927),h=r(p),_=n(928),m=r(_),v=n(929),g=r(v),y=n(930),b=r(y),w=n(559),k=r(w)},function(e,t,n){"use strict";function r(e,t,n){function r(){i.removeTarget(o)}var i=n.getRegistry(),o=i.addTarget(e,t);return{handlerId:o,unregister:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){Object.keys(e).forEach(function(t){(0,u.default)(c.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',c.join(", "),t),(0,u.default)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])});var t=function(){function t(e){i(this,t),this.monitor=e,this.props=null,this.component=null}return a(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrop",value:function(){return!e.canDrop||e.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){e.hover&&e.hover(this.props,this.monitor,this.component)}},{key:"drop",value:function(){if(e.drop){var t=e.drop(this.props,this.monitor,this.component);return t}}}]),t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var s=n(44),u=r(s),l=n(127),c=(r(l),["canDrop","hover","drop"])},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return new l(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=i;var a=n(44),s=function(e){return e&&e.__esModule?e:{default:e}}(a),u=!1,l=function(){function e(t){r(this,e),this.internalMonitor=t.getMonitor()}return o(e,[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"canDrop",value:function(){(0,s.default)(!u,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return u=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{u=!1}}},{key:"isOver",value:function(e){return this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(){s&&(s(),s=null),r&&i&&(s=e.connectDropTarget(r,i,o))}function n(e){e!==r&&(r=e,t())}var r=void 0,i=void 0,o=void 0,s=void 0;return{receiveHandlerId:n,hooks:(0,a.default)({dropTarget:function(e,n){e===i&&(0,u.default)(n,o)||(i=e,o=n,t())}})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(557),a=r(o),s=n(558),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new a.default(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyImage=t.NativeTypes=void 0,t.default=i;var o=n(932),a=r(o),s=n(948),u=r(s),l=n(338),c=function(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}(l);t.NativeTypes=c,t.getEmptyImage=u.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(933),s=r(a),u=n(942),l=r(u),c=n(943),d=r(c),f=n(561),p=n(945),h=n(947),_=n(338),m=function(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}(_),v=function(){function e(t){i(this,e),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.context=t.getContext(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new d.default,this.dragStartSourceIds=[],this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.altKeyPressed=!1,this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this),this.asyncEndDragNativeItem=this.asyncEndDragNativeItem.bind(this)}return o(e,[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"addEventListeners",value:function(e){e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0)}},{key:"removeEventListeners",value:function(e){e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0)}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes[e]=t,this.sourceNodeOptions[e]=n;var i=function(t){return r.handleDragStart(t,e)},o=function(t){return r.handleSelectStart(t,e)};return t.setAttribute("draggable",!0),t.addEventListener("dragstart",i),t.addEventListener("selectstart",o),function(){delete r.sourceNodes[e],delete r.sourceNodeOptions[e],t.removeEventListener("dragstart",i),t.removeEventListener("selectstart",o),t.setAttribute("draggable",!1)}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",i),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",i),t.removeEventListener("drop",o)}}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions[e];return(0,s.default)(t||{},{dropEffect:this.altKeyPressed?"copy":"move"})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions[e];return(0,s.default)(t||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})}},{key:"getSourceClientOffset",value:function(e){return(0,p.getNodeClientOffset)(this.sourceNodes[e])}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(m).some(function(t){return m[t]===e})}},{key:"beginDragNativeItem",value:function(e){this.clearCurrentDragSourceNode();var t=(0,h.createNativeDragSource)(e);this.currentNativeSource=new t,this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle]),(0,f.isFirefox)()&&this.window.addEventListener("mouseover",this.asyncEndDragNativeItem,!0)}},{key:"asyncEndDragNativeItem",value:function(){this.asyncEndDragFrameId=this.window.requestAnimationFrame(this.endDragNativeItem),(0,f.isFirefox)()&&(this.window.removeEventListener("mouseover",this.asyncEndDragNativeItem,!0),this.enterLeaveCounter.reset())}},{key:"endDragNativeItem",value:function(){this.isDraggingNativeItem()&&(this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)}},{key:"endDragIfSourceWasRemovedFromDOM",value:function(){var e=this.currentDragSourceNode;document.body.contains(e)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"setCurrentDragSourceNode",value:function(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.currentDragSourceNodeOffset=(0,p.getNodeClientOffset)(e),this.currentDragSourceNodeOffsetChanged=!1,this.window.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),!0)}},{key:"checkIfCurrentDragSourceRectChanged",value:function(){var e=this.currentDragSourceNode;return!!e&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!(0,l.default)((0,p.getNodeClientOffset)(e),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))}},{key:"handleTopDragStartCapture",value:function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]}},{key:"handleDragStart",value:function(e,t){this.dragStartSourceIds.unshift(t)}},{key:"handleTopDragStart",value:function(e){var t=this,n=this.dragStartSourceIds;this.dragStartSourceIds=null;var r=(0,p.getEventClientOffset)(e);this.actions.beginDrag(n,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});var i=e.dataTransfer,o=(0,h.matchNativeItemType)(i);if(this.monitor.isDragging()){if("function"==typeof i.setDragImage){var a=this.monitor.getSourceId(),s=this.sourceNodes[a],u=this.sourcePreviewNodes[a]||s,l=this.getCurrentSourcePreviewNodeOptions(),c=l.anchorX,d=l.anchorY,f={anchorX:c,anchorY:d},_=(0,p.getDragPreviewOffset)(s,u,r,f);i.setDragImage(u,_.x,_.y)}try{i.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout(function(){return t.actions.publishDragSource()})}else if(o)this.beginDragNativeItem(o);else{if(!(i.types||e.target.hasAttribute&&e.target.hasAttribute("draggable")))return;e.preventDefault()}}},{key:"handleTopDragEndCapture",value:function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"handleTopDragEnterCapture",value:function(e){if(this.dragEnterTargetIds=[],this.enterLeaveCounter.enter(e.target)&&!this.monitor.isDragging()){var t=e.dataTransfer,n=(0,h.matchNativeItemType)(t);n&&this.beginDragNativeItem(n)}}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleTopDragEnter",value:function(e){var t=this,n=this.dragEnterTargetIds;if(this.dragEnterTargetIds=[],this.monitor.isDragging()){this.altKeyPressed=e.altKey,(0,f.isFirefox)()||this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(e)});n.some(function(e){return t.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect())}}},{key:"handleTopDragOverCapture",value:function(){this.dragOverTargetIds=[]}},{key:"handleDragOver",value:function(e,t){this.dragOverTargetIds.unshift(t)}},{key:"handleTopDragOver",value:function(e){var t=this,n=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer.dropEffect="none");this.altKeyPressed=e.altKey,this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(e)}),n.some(function(e){return t.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(e.preventDefault(),e.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(e.preventDefault(),e.dataTransfer.dropEffect="move")}},{key:"handleTopDragLeaveCapture",value:function(e){this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()}},{key:"handleTopDropCapture",value:function(e){this.dropTargetIds=[],e.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),this.enterLeaveCounter.reset()}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"handleTopDrop",value:function(e){var t=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:(0,p.getEventClientOffset)(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()}},{key:"handleSelectStart",value:function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}},{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}}]),e}();t.default=v},function(e,t,n){var r=n(541),i=n(934),o=n(126),a=n(941),s=o(function(e){return e.push(void 0,a),r(i,void 0,e)});e.exports=s},function(e,t,n){var r=n(935),i=n(937),o=n(938),a=i(function(e,t,n,i){r(t,o(t),e,i)});e.exports=a},function(e,t,n){function r(e,t,n,r){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=r?r(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?o(n,l,c):i(n,l,c)}return n}var i=n(936),o=n(560);e.exports=r},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||i(e,t,n)}var i=n(560),o=n(221),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return i(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}var i=n(126),o=n(544);e.exports=r},function(e,t,n){function r(e){return a(e)?i(e,!0):o(e)}var i=n(527),o=n(939),a=n(125);e.exports=r},function(e,t,n){function r(e){if(!i(e))return a(e);var t=o(e),n=[];for(var r in e)("constructor"!=r||!t&&u.call(e,r))&&n.push(r);return n}var i=n(107),o=n(530),a=n(940),s=Object.prototype,u=s.hasOwnProperty;e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){function r(e,t,n,r){return void 0===e||i(e,o[n])&&!a.call(r,n)?t:e}var i=n(221),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o+=1){if(!i.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;if(e[n[o]]!==t[n[o]])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(944),s=r(a),u=n(551),l=r(u),c=function(){function e(){i(this,e),this.entered=[]}return o(e,[{key:"enter",value:function(e){var t=this.entered.length,n=function(t){return document.documentElement.contains(t)&&(!t.contains||t.contains(e))};return this.entered=(0,s.default)(this.entered.filter(n),[e]),0===t&&this.entered.length>0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,l.default)(this.entered.filter(function(e){return document.documentElement.contains(e)}),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}();t.default=c},function(e,t,n){var r=n(248),i=n(126),o=n(554),a=n(250),s=i(function(e){return o(r(e,1,a,!0))});e.exports=s},function(e,t,n){"use strict";function r(e){var t=e.nodeType===l?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function i(e){return{x:e.clientX,y:e.clientY}}function o(e,t,n,i){var o="IMG"===t.nodeName&&((0,a.isFirefox)()||!document.documentElement.contains(t)),s=o?e:t,l=r(s),c={x:n.x-l.x,y:n.y-l.y},d=e.offsetWidth,f=e.offsetHeight,p=i.anchorX,h=i.anchorY,_=o?t.width:d,m=o?t.height:f;(0,a.isSafari)()&&o&&(m/=window.devicePixelRatio,_/=window.devicePixelRatio);var v=new u.default([0,.5,1],[c.x,c.x/d*_,c.x+_-d]),g=new u.default([0,.5,1],[c.y,c.y/f*m,c.y+m-f]),y=v.interpolate(p),b=g.interpolate(h);return(0,a.isSafari)()&&o&&(b+=(window.devicePixelRatio-1)*m),{x:y,y:b}}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=r,t.getEventClientOffset=i,t.getDragPreviewOffset=o;var a=n(561),s=n(946),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=1},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){r(this,e);for(var i=t.length,o=[],a=0;a<i;a++)o.push(a);o.sort(function(e,n){return t[e]<t[n]?-1:1});for(var s=[],u=[],l=[],c=void 0,d=void 0,f=0;f<i-1;f++)c=t[f+1]-t[f],d=n[f+1]-n[f],u.push(c),s.push(d),l.push(d/c);for(var p=[l[0]],h=0;h<u.length-1;h++){var _=l[h],m=l[h+1];if(_*m<=0)p.push(0);else{c=u[h];var v=u[h+1],g=c+v;p.push(3*g/((g+v)/_+(g+c)/m))}}p.push(l[l.length-1]);for(var y=[],b=[],w=void 0,k=0;k<p.length-1;k++){w=l[k];var M=p[k],C=1/u[k],E=M+p[k+1]-w-w;y.push((w-M-E)*C),b.push(E*C*C)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=b}return i(e,[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,i=this.c2s,o=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s=0,u=o.length-1,l=void 0;s<=u;){l=Math.floor(.5*(s+u));var c=t[l];if(c<e)s=l+1;else{if(!(c>e))return n[l];u=l-1}}a=Math.max(0,u);var d=e-t[a],f=d*d;return n[a]+r[a]*d+i[a]*f+o[a]*d*f}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},null);return null!=r?r:n}function s(e){var t=p[e],n=t.exposeProperty,o=t.matchesTypes,a=t.getData;return function(){function e(){var t,o;i(this,e),this.item=(t={},o={},o[n]=o[n]||{},o[n].get=function(){return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},r(t,o),t)}return c(e,[{key:"mutateItemByReadingDataTransfer",value:function(e){delete this.item[n],this.item[n]=a(e,o)}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}()}function u(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(p).filter(function(e){return p[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}Object.defineProperty(t,"__esModule",{value:!0});var l,c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.createNativeDragSource=s,t.matchNativeItemType=u;var d=n(338),f=function(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}(d),p=(l={},o(l,f.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}}),o(l,f.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return a(e,t,"").split("\n")}}),o(l,f.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return a(e,t,"")}}),l)},function(e,t,n){"use strict";function r(){return i||(i=new Image,i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=void 0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(20),u=r(s),l=n(6),c=r(l),d=n(950),f=r(d),p=function(e,t){var n=t.offsetHeight,r=e.offsetHeight,i=e.offsetTop-t.scrollTop;i+r>=n?t.scrollTop+=i-n+r:i<0&&(t.scrollTop+=i)},h=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.shouldComponentUpdate=function(e){var t=r,n=t.props,i=n.shouldRenderSuggestions||r.shouldRenderSuggestions;return!(0,f.default)(n.suggestions,e.suggestions)||i(e.query)||i(e.query)!=i(n.query)},r.componentDidUpdate=function(e){var t=r.refs.suggestionsContainer,n=r.props,i=n.selectedIndex,o=n.classNames;if(t&&e.selectedIndex!==i){var a=t.querySelector(o.activeSuggestion);a&&p(a,t)}},r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e.replace(RegExp(n,"gi"),"<mark>$&</mark>")}},r.shouldRenderSuggestions=function(e){var t=r,n=t.props,i=n.minQueryLength||2;return e.length>=i},r.render=function(){var e=r,t=e.props,n=t.suggestions.map(function(e,n){return u.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n==t.selectedIndex?t.classNames.activeSuggestion:""},u.default.createElement("span",{dangerouslySetInnerHTML:this.markIt(e,t.query)}))}.bind(r)),i=t.shouldRenderSuggestions||r.shouldRenderSuggestions;return 0!==n.length&&i(t.query)?u.default.createElement("div",{ref:"suggestionsContainer",className:r.props.classNames.suggestions},u.default.createElement("ul",null," ",n," ")):null},a=n,o(r,a)}return a(t,e),t}(s.Component);h.propTypes={query:c.default.string.isRequired,selectedIndex:c.default.number.isRequired,suggestions:c.default.array.isRequired,handleClick:c.default.func.isRequired,handleHover:c.default.func.isRequired,minQueryLength:c.default.number,shouldRenderSuggestions:c.default.func,classNames:c.default.object},t.default=h},function(e,t,n){function r(e,t){return i(e,t)}var i=n(326);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){if(e.readOnly)return l.default.createElement("span",null);if(e.removeComponent){var t=e.removeComponent;return l.default.createElement(t,e)}return l.default.createElement("a",{onClick:e.onClick,className:e.className},String.fromCharCode(215))}Object.defineProperty(t,"__esModule",{value:!0});var u=n(20),l=r(u),c=n(31),d=n(547),f=n(6),p=r(f),h=n(952),_=r(h),m={TAG:"tag"},v={beginDrag:function(e){return{id:e.tag.id,index:e.index}},canDrag:function(e){return e.moveTag&&!e.readOnly}},g={hover:function(e,t,n){var r=t.getItem().index,i=e.index;if(r!==i){var o=(0,c.findDOMNode)(n).getBoundingClientRect(),a=(o.right-o.left)/2,s=t.getClientOffset(),u=s.x-o.left;r<i&&u<a||r>i&&u>a||(e.moveTag(r,i),t.getItem().index=i)}},canDrop:function(e){return!e.readOnly}},y=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},b=function(e,t){return{connectDropTarget:e.dropTarget()}},w=function(e){function t(){var e,n,r,a;i(this,t);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.render=function(){var e=r,t=e.props,n=t.tag[t.labelField],i=t.connectDragSource,o=t.isDragging,a=t.connectDropTarget;t.readOnly,t.CustomRemoveComponent;return i(a(l.default.createElement("span",{style:{opacity:o?0:1},className:t.classNames.tag},n,l.default.createElement(s,{className:t.classNames.remove,removeComponent:t.removeComponent,onClick:t.onDelete,readOnly:t.readOnly}))))},a=n,o(r,a)}return a(t,e),t}(u.Component);w.PropTypes={labelField:p.default.string,onDelete:p.default.func.isRequired,tag:p.default.object.isRequired,moveTag:p.default.func,removeComponent:p.default.func,classNames:p.default.object,readOnly:p.default.bool,connectDragSource:p.default.func.isRequired,isDragging:p.default.bool.isRequired,connectDropTarget:p.default.func.isRequired},w.defaultProps={labelField:"text",readOnly:!1},t.default=(0,_.default)((0,d.DragSource)(m.TAG,v,y),(0,d.DropTarget)(m.TAG,g,b))(w)},function(e,t,n){var r=n(953),i=r();e.exports=i},function(e,t,n){function r(e){return o(function(t){var n=t.length,r=n,o=i.prototype.thru;for(e&&t.reverse();r--;){var _=t[r];if("function"!=typeof _)throw new TypeError(c);if(o&&!m&&"wrapper"==s(_))var m=new i([],!0)}for(r=m?r:n;++r<n;){_=t[r];var v=s(_),g="wrapper"==v?a(_):void 0;m=g&&l(g[0])&&g[1]==(p|d|f|h)&&!g[4].length&&1==g[9]?m[s(g[0])].apply(m,g[3]):1==_.length&&l(_)?m[v]():m.thru(_)}return function(){var e=arguments,r=e[0];if(m&&1==e.length&&u(r))return m.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}var i=n(339),o=n(954),a=n(563),s=n(564),u=n(50),l=n(958),c="Expected a function",d=8,f=32,p=128,h=256;e.exports=r},function(e,t,n){function r(e){return a(o(e,void 0,i),e+"")}var i=n(955),o=n(540),a=n(542);e.exports=r},function(e,t,n){function r(e){return(null==e?0:e.length)?i(e,1):[]}var i=n(248);e.exports=r},function(e,t,n){var r=n(533),i=r&&new r;e.exports=i},function(e,t){var n={};e.exports=n},function(e,t,n){function r(e){var t=a(e),n=s[t];if("function"!=typeof n||!(t in i.prototype))return!1;if(e===n)return!0;var r=o(n);return!!r&&e===r[0]}var i=n(341),o=n(563),a=n(564),s=n(959);e.exports=r},function(e,t,n){function r(e){if(u(e)&&!s(e)&&!(e instanceof i)){if(e instanceof o)return e;if(d.call(e,"__wrapped__"))return l(e)}return new o(e)}var i=n(341),o=n(339),a=n(340),s=n(50),u=n(108),l=n(960),c=Object.prototype,d=c.hasOwnProperty;r.prototype=a.prototype,r.prototype.constructor=r,e.exports=r},function(e,t,n){function r(e){if(e instanceof i)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var i=n(341),o=n(339),a=n(961);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(565),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=(0,i.default)("float",function(e){return parseFloat(e,10)});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForCustomAttributeItemDescription)("string",{render:function(){return React.createElement("textarea",{disabled:this.props.readOnly,onChange:this._onChange,value:scrivito.AppConfig.replaceInternalLinks(this.props.field.get())})},_onChange:function(e){this.props.readOnly||this.props.field.update(e.target.value)}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(565),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=(0,i.default)("integer",function(e){return parseInt(e,10)});t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),o=n(6),a=r(o),s=n(316),u=n(342),l=r(u),c=n(343),d=r(c),f=n(344),p=r(f),h=n(225),_=r(h),m=n(30),v=r(m),g=n(112),y=r(g),b=n(322),w=n(39),k=n(218),M=r(k),C=n(345),E=r(C),x=n(567),T=r(x),D=n(63),S=n(215),O=r(S),j=n(484),L=r(j),P=(0,w.createClassForCustomAttributeItemDescription)("widgetlist",{render:function(){var e=this.props.field.get();return this.props.readOnly?React.createElement(R,{widgets:e}):React.createElement(A,{field:this.props.field})}}),R=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyWidgetlist",propTypes:{widgets:a.default.arrayOf(a.default.instanceOf(v.default)).isRequired},render:function(){var e=this.props.widgets;return 0===e.length?React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("widgetlist_attribute_component.is_empty"))):React.createElement("div",{className:"scrivito_widget_list read_only"},e.map(function(e){return React.createElement(F,{key:e.id(),widget:e})}))}}),A=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.EditableWidgetlist",propTypes:{field:a.default.instanceOf(y.default).isRequired},render:function(){var e=this.props.field.get();return 0===e.length?React.createElement(N,{field:this.props.field}):React.createElement(I,{widgets:e,onSortEnd:this._onSortEnd,helperClass:"scrivito_detail_content_dragging",distance:10,lockToContainerEdges:!0,transitionDuration:0,useDragHandle:!0})},_onSortEnd:function(e){var t=e.newIndex,n=e.oldIndex,r=this.props.field;r.update((0,b.arrayMove)(r.get(),n,t))}}),I=(0,b.SortableContainer)(scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.SortableWidgetlistContainer",propTypes:{widgets:a.default.arrayOf(a.default.instanceOf(v.default)).isRequired},render:function(){return React.createElement("ul",{className:"scrivito_widget_list"},this.props.widgets.map(function(e,t){return React.createElement(W,{key:e.id(),index:t,widget:e})}))}})),N=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.EditableEmptyWidgetlist",propTypes:{field:a.default.instanceOf(y.default).isRequired},render:function(){return React.createElement("div",{className:"scrivito_empty_widget_field",onClick:this._onClick})},_onClick:function(e){e.preventDefault(),e.stopPropagation(),(0,T.default)((0,i.findDOMNode)(this),this.props.field,{x:e.pageX,y:e.pageY})}}),Y=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.WidgetItem",propTypes:{showDetails:a.default.bool,toggleDetails:a.default.func,widget:a.default.instanceOf(v.default).isRequired},render:function(){var e=this.props,t=e.showDetails,n=e.showMarker,r=e.widget,i=(0,D.titleForWidget)(r);return React.createElement("div",{className:"scrivito_widget_list_item"},n&&React.createElement(z,{widget:r}),React.createElement("div",{className:"list_item_content"},this._renderDetailsToggle(),React.createElement("span",{className:"item_content_body"},i),t&&React.createElement(L.default,{content:r})),n&&React.createElement("div",null,React.createElement(O.default,{widget:r,position:"top",insertWidget:E.default}),React.createElement(O.default,{widget:r,position:"bottom",insertWidget:E.default})))},_renderDetailsToggle:function(){var e=this.props,t=e.showDetails,n=e.toggleDetails,r=e.widget;if((0,s.hasInspectorDescription)(r)){var i="scrivito_icon scrivito_icon_chevron_down";return t&&(i="scrivito_icon scrivito_icon_chevron_up"),React.createElement("span",{className:"item_content_icon",onClick:n},React.createElement("i",{className:i}))}}}),F=scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.ReadOnlyWidgetItem",propTypes:{widget:a.default.instanceOf(v.default).isRequired},getInitialState:function(){return{showDetails:!1}},render:function(){var e=this.props.widget;return React.createElement("div",null,React.createElement(Y,{showDetails:this.state.showDetails,showMarker:!1,toggleDetails:this._toggleDetails,widget:e}))},_toggleDetails:function(){this.setState({showDetails:!this.state.showDetails})}}),H=(0,b.SortableHandle)(Y),W=(0,b.SortableElement)(scrivito.legacyCreateConnectedComponent({displayName:"PropertiesComponent.WidgetItem",propTypes:{widget:a.default.instanceOf(v.default).isRequired},getInitialState:function(){return{showDetails:!1}},render:function(){var e=this.props.widget;return React.createElement("div",null,React.createElement(H,{showDetails:this.state.showDetails,showMarker:!0,toggleDetails:this._toggleDetails,widget:e}))},_toggleDetails:function(){this.setState({showDetails:!this.state.showDetails})}})),z=scrivito.legacyCreateConnectedComponent({displayName:"Scrivito.ContentTag.MenuMarker",propTypes:{widget:a.default.instanceOf(v.default).isRequired},render:function(){return React.createElement("span",{className:"scrivito_editing_marker",onClick:this._onClick},React.createElement("i",{className:"scrivito_icon"}))},_onClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.props.widget,n=t.containingField();scrivito.ContextMenu.open($((0,i.findDOMNode)(this)),[(0,d.default)(t),(0,l.default)(t),(0,_.default)(n,t),new M.default({id:"scrivito.sdk.widget_commands.separator1"}),(0,p.default)(t)])}});t.default=P},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),o=n(6),a=r(o),s=n(3),u=r(s),l=n(39),c=n(967),d=r(c),f=n(968),p=r(f),h=n(63),_=(0,l.createClassForSystemItemDescription)("backlinks",{shouldRenderTitle:!1,shouldRenderLoaderError:!0,render:function(){var e=this.props.content.backlinks();return e.length?React.createElement("ul",null,e.map(function(e){return React.createElement("li",{key:e.id()},React.createElement(m,{backlink:e}))})):React.createElement(v,{content:this.props.content})},_renderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}}),m=scrivito.legacyCreateConnectedComponent({displayName:"BacklinksItemComponent.Backlink",propTypes:{backlink:a.default.instanceOf(u.default).isRequired},shouldRenderLoaderError:!0,render:function(){return React.createElement("a",{href:"#",onClick:this._onClick},(0,h.titleForObj)(this.props.backlink))},_renderWhileLoading:function(){return React.createElement(scrivito.Loader,null)},_onClick:function(e){e.preventDefault(),e.stopPropagation();var t=$((0,i.findDOMNode)(this)),n=[(0,p.default)(this.props.backlink.id()),(0,d.default)(this.props.backlink.id())],r={mousePosition:{x:e.pageX,y:e.pageY}};scrivito.ContextMenu.open(t,n,r)}}),v=scrivito.legacyCreateConnectedComponent({displayName:"BacklinksItemComponent.NoBacklinksBox",propTypes:{content:a.default.instanceOf(u.default).isRequired},render:function(){return React.createElement("div",{className:"scrivito_notice scrivito_blue"},React.createElement("div",{className:"scrivito_notice_icon"},React.createElement("i",{className:"scrivito_icon scrivito_icon_information"})),React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("backlinks_item_component.no_backlinks_box.message",(0,h.titleForObj)(this.props.content))))}});t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new a.default({id:"scrivito.sdk.navigate_ui_to_obj",icon:"&#xf11f;",title:scrivito.t("commands.navigate_ui_to_obj.title"),execute:function(){scrivito.applicationWindow.navigateTo(e),u.default.close(),c.default.close()}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),s=n(314),u=r(s),l=n(220),c=r(l);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new a.default({id:"scrivito.sdk.open_obj_in_content_browser",icon:"&#xf135;",title:scrivito.t("commands.open_obj_in_content_browser.title"),execute:function(){(0,u.default)({selectionMode:"single",standAlone:!0,selection:[e],disableDelete:!0})}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=r(o),s=n(122),u=r(s);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.metadataKey,n=e.metadataValue,r=e.className;return React.createElement("div",{className:"metadata-item "+r},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,t)),React.createElement("input",{value:o(n),type:"text",disabled:"true"}))}function o(e){return(0,p.isDate)(e)?(0,c.default)(e).format("lll"):(0,p.isArray)(e)?e.join(", "):e.toString()}function a(e){if(!(0,m.default)(e))return!1;var t=e.get("blob","binary");return!!t&&t.isImage()}Object.defineProperty(t,"__esModule",{value:!0});var s=n(6),u=r(s),l=n(2),c=r(l),d=n(230),f=r(d),p=n(0),h=n(19),_=n(219),m=r(_),v=n(39),g=["contentLength","contentType","filename","filesize","height","width"];t.default=(0,v.createClassForSystemItemDescription)("binaryMetadata",{shouldRenderTitle:!1,render:function(){var e=this.props.content.metadata(),t=void 0;return a(this.props.content)&&(t=React.createElement("div",{className:"row"},React.createElement(i,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.height"),metadataValue:e.get("height")+" px"}),React.createElement(i,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.width"),metadataValue:e.get("width")+" px"}))),React.createElement("div",null,React.createElement(i,{metadataKey:scrivito.t("binary_metadata_item_component.filename"),metadataValue:e.get("filename")}),React.createElement("div",{className:"row"},React.createElement(i,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.content_type"),metadataValue:e.get("contentType")}),React.createElement(i,{className:"col-sm-6",metadataKey:scrivito.t("binary_metadata_item_component.content_length"),metadataValue:(0,f.default)(e.get("contentLength"))})),t,p.without.apply(void 0,[e.keys()].concat(g)).sort().map(function(t){return React.createElement(i,{key:t,metadataKey:(0,h.sentenceCase)(t),metadataValue:e.get(t)})}))}}),i.displayName="PropertiesComponent.BinaryMetadataItemComponent.MetadataItem",i.propTypes={metadataKey:u.default.string.isRequired,metadataValue:u.default.oneOfType([u.default.string,u.default.arrayOf(u.default.string),u.default.instanceOf(Date)]),className:u.default.string}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),a=n(39),s=n(1),u=n(134),l=r(u),c=(0,a.createClassForSystemItemDescription)("history",{shouldRenderTitle:!1,render:function(){return React.createElement("div",null,React.createElement("div",{className:"row"},React.createElement("div",{className:"col-sm-6"},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,scrivito.t("item_description.system.history.created_at"))),React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_time"}),React.createElement("span",{className:"read_only"},this._formatDate(this.props.content.createdAt())))),React.createElement("div",{className:"col-sm-6"},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,scrivito.t("item_description.system.history.last_changed"))),React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_time"}),React.createElement("span",{className:"read_only"},this._formatDate(this.props.content.lastChanged()))))),React.createElement("div",{className:"row"},React.createElement("div",{className:"col-sm-6"},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,scrivito.t("item_description.system.history.created_by"))),React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_user"}),React.createElement("span",{className:"read_only"},this._getDescriptionForUser(this.props.content.createdBy())))),React.createElement("div",{className:"col-sm-6"},React.createElement("div",{className:"scrivito_detail_label"},React.createElement("span",null,scrivito.t("item_description.system.history.last_changed_by"))),React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_user"}),React.createElement("span",{className:"read_only"},this._getDescriptionForUser(this.props.content.lastChangedBy()))))))},_getDescriptionForUser:function(e){if(e)try{return l.default.get(e).description||this._defaultDescriptionTextFor(e)}catch(t){if(t instanceof s.ResourceNotFoundError)return this._defaultDescriptionTextFor(e);throw t}return scrivito.t("item_description.system.history.not_available")},_formatDate:function(e){return e?(0,o.default)(e).format("lll"):scrivito.t("item_description.system.history.not_available")},_defaultDescriptionTextFor:function(e){return scrivito.t("item_description.system.history.user_description_not_available",e)}});t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForSystemItemDescription)("id",{render:function(){return React.createElement("span",{className:"read_only"},this.props.content.id())}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForSystemItemDescription)("objClass",{render:function(){return React.createElement("span",{className:"read_only"},this.props.content.objClass())}});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),i=(0,r.createClassForSystemItemDescription)("path",{render:function(){return React.createElement("span",{className:"read_only"},this.props.content.path())}});t.default=i},function(e,t,n){"use strict";function r(e){var t=e.permalink,n=e.obj,r=e.readOnly,i=t||scrivito.t("permalink_item_component.permalink.is_empty");return r?React.createElement("span",{className:"read_only"},i):React.createElement("span",{className:"read_only scrivito_permalink_clickable",onClick:function(){return(0,o.default)(n)}},i)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(975),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(39),s=(0,a.createClassForSystemItemDescription)("permalink",{render:function(){return React.createElement("div",{className:"input_group"},React.createElement("span",{className:"input_group_icon scrivito_icon_link_perm"}),React.createElement(r,{permalink:this.props.content.permalink(),obj:this.props.content,readOnly:this.props.readOnly}))}});t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=e.permalink();o({title:function(){return scrivito.t("workflows.change_permalink.dialog.title",(0,m.titleForObj)(e))},value:n,info:t}).then(function(t){t!==n&&(t?a(t).then(function(n){n?i(e,scrivito.t("workflows.change_permalink.info."+n,t)):e.update({_permalink:[t]})}):e.update({_permalink:[null]}))})}function o(e){var t=e.title,n=e.value,r=e.info;return p.default.open({title:t,description:r,placeholder:scrivito.t("workflows.change_permalink.dialog.placeholder"),value:n,icon:"&#xf04e;",okButtonText:scrivito.t("workflows.change_permalink.dialog.change")}).then(function(e){return null===e?n:""===e?null:s(e)})}function a(e){return"scrivito"===(0,l.default)(e).segment(0).toLowerCase()?scrivito.Promise.resolve("is_scrivito"):e.match(/^([\w._-]+[\/\w._-]*)?$/)?scrivito.withSavingOverlay((0,_.default)(function(){return d.default.getByPermalink(e)}).then(function(e){if(e)return"is_taken"})):scrivito.Promise.resolve("is_invalid")}function s(e){return(0,l.default)(e).normalizePathname().toString().replace(/^\/|\/$/g,"")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var u=n(33),l=r(u),c=n(3),d=r(c),f=n(568),p=r(f),h=n(8),_=r(h),m=n(63)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){e.find("body").hasClass("scrivito_dialog")&&!e.get(0).defaultView.scrivito&&scrivito.AlertDialog.open('\n Missing required Scrivito assets in the details dialog.\n Are you sure your "scrivito_dialog.html.*" sources the Scrivito assets?\n ')}Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),a=r(o),s=n(11),u=r(s),l=(0,u.default)({displayName:"PropertiesComponent.LegacyDetails",propTypes:{src:a.default.string.isRequired,updateSize:a.default.func},getInitialState:function(){return{isLoaded:!1}},render:function(){var e=void 0;return this.state.isLoaded||(e=React.createElement("i",{className:"scrivito_icon scrivito_spinning"},"")),React.createElement("div",{className:"scrivito_details_dialog_markup"},e,React.createElement("iframe",{name:"scrivito_details_dialog",src:this.props.src,ref:this._ref,onLoad:this._onLoad}))},_ref:function(e){e&&(this._$iframe=$(e))},_onLoad:function(){this.setState({isLoaded:!0});var e=this._$iframe.contents();if(i(e),this.props.updateSize){var t=e.find("[data-scrivito-modal-size]").attr("data-scrivito-modal-size");this.props.updateSize(t)}}});t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new u.default({id:"scrivito.sdk.open_page_link_dialog",icon:"scrivito_icon_link",title:scrivito.t("commands.open_page_link_dialog.title"),disabled:function(){if(a.default.getIncludingDeleted(e).isDeleted())return scrivito.t("commands.open_page_link_dialog.is_deleted")},execute:function(){scrivito.current_page_link_dialog()}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),s=n(17),u=r(s);t.default=i},function(e,t,n){"use strict";function r(){return new o.default({id:"scrivito.sdk.open_user_guide",title:scrivito.t("commands.open_user_guide.title"),icon:"&#xf01c;",execute:function(){var e=(0,a.useRailsEngine)()?u:s;scrivito.open(e,"blank")}})}Object.defineProperty(t,"__esModule",{value:!0}),t.RAILS_USER_GUIDE=t.JS_USER_GUIDE=void 0,t.default=r;var i=n(17),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(47),s=t.JS_USER_GUIDE="https://scrivito.com/user-guide",u=t.RAILS_USER_GUIDE="https://scrivito.com/rails/user-guide"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commands.restore_obj";return new c.default({id:"scrivito.sdk.restore_obj",title:scrivito.t(t+".title"),icon:"&#xf032;",present:function(){return u.default.getIncludingDeleted(e).isDeleted()},execute:function(){scrivito.withSavingOverlay((0,f.default)(function(){return u.default.getIncludingDeleted(e)}).then(function(e){return a.restoreObj(e.objData)}).then(function(){return scrivito.reload()}))}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(128),a=function(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}(o),s=n(3),u=r(s),l=n(17),c=r(l),d=n(8),f=r(d);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new f.default({id:"scrivito.sdk.revert_obj",title:scrivito.t("commands.revert_obj.title"),icon:"&#xf032;",present:function(){return scrivito.editingContext.isMutable()&&u.default.get(e)},disabled:function(){var t=u.default.get(e);return t.isModified()?t.isNew()?scrivito.t("commands.revert_obj.is_new"):void 0:scrivito.t("commands.revert_obj.unmodified")},execute:function(){o().then(function(){return a(e)})}})}function o(){return scrivito.confirmation_dialog({title:scrivito.t("commands.revert_obj.dialog.title"),description:scrivito.t("commands.revert_obj.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_obj.dialog.confirm"),confirm_button_color:"red"})}function a(e){scrivito.withSavingOverlay(c.revertObj(u.default.get(e).objData).then(function(){return scrivito.applicationWindow.reload()}))}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),u=r(s),l=n(128),c=function(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}(l),d=n(17),f=r(d);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new u.default({id:"scrivito.sdk.save_obj_to_clipboard",title:scrivito.t("commands.save_obj_to_clipboard.title"),icon:"&#xf017;",disabled:function(){var t=a.default.getIncludingDeleted(e);return t.isDeleted()?scrivito.t("commands.save_obj_to_clipboard.is_deleted"):t.hasChildren()?scrivito.t("commands.save_obj_to_clipboard.has_children"):void 0},execute:function(){(0,c.default)(function(){return a.default.get(e)}).then(scrivito.objClipboard.save)}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),s=n(17),u=r(s),l=n(8),c=r(l);t.default=i},function(e,t,n){"use strict";function r(e){return scrivito.ajax("PUT","sessions/"+e,{skip_write_monitor:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.requestCustomUserSession=r},function(e,t,n){"use strict";function r(e){scrivito.on("pageChange",function(){var t=e.browserWindow(),n=scrivito.applicationWindow.browserWindow(),r=t.location.origin+"/scrivito"+n.location.pathname+n.location.search+n.location.hash;scrivito.cmsWindow.isLivingWindow(t)&&t.history.replaceState({},"",r)})}Object.defineProperty(t,"__esModule",{value:!0}),t.syncWithApplicationLocation=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=scrivito.AppConfig.getClasses()||[],t={},n={},r=function(e){if("Obj"===e.type)return void(t[e.name]=e);if("Widget"===e.type)return void(n[e.name]=e);throw new s.InternalError('Invalid type "'+e.type+'" for class data "'+e.name+'".')};f.forEach(r),e.forEach(r),l.default.init(a.default.values(t)),d.default.init(a.default.values(n))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=r(o),s=n(1),u=n(41),l=r(u),c=n(58),d=r(c),f=void 0,p={init:function(e){f=e,scrivito.AppConfig.onChange(i),i()},reset:function(){f=void 0}};t.default=p},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){return(0,a.contains)(u,e)}function o(e){var t=[e].concat(r((0,s.navigatorLocales)(navigator))),n=(0,a.map)(t,function(e){return e&&e.substr(0,2)});return(0,a.detect)(n,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.uiLanguage=o;var a=n(0),s=n(986),u=["de","en"]},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){var t=e.languages||[];return e.language&&(t=[].concat(r(t),[e.language])),t}Object.defineProperty(t,"__esModule",{value:!0}),t.navigatorLocales=i},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){var t={dom_element:function(){return e},equals:function(e){return e.dom_element().get(0)===t.dom_element().get(0)},menu:function(){var n=e.data("scrivito-menu");return n||(n=[],t.set_menu(n)),n},set_menu:function(t){e.data("scrivito-menu",t)}};return t},from_dom_element:function(e){var t=void 0;t=e&&e.jquery?e:$(e),0===t.length&&$.error("Expected a jquery instance with exactly one element, instead got "+t);var n=t[0].scrivito_cms_element;if(!n){var r=scrivito.cms_element.createInstance(t);i.default.find(scrivito.cms_element.definitions,function(e){return n=e.createInstance(r)}),n||$.error("This dom element is not a scrivito tag."),t[0].scrivito_cms_element=n}return n},definitions:[],all:function(e,t){return i.default.map(t.find(e).addBack(e),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.cms_element=e}()},function(e,t,n){"use strict";function r(e){var t=scrivito.cms_element.from_dom_element(e);return t.addAppExtensions(),e.addEventListener("DOMContentLoaded",function(){scrivito.on("load",function(){t.assertUserLoggedIn(),t.connect()})}),new s(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(989),o=n(570),a=n(5),s=function(){function e(e){this.cmsDocument=e,this.subscriptionProxy=new i.default(a.subscribe,e.browserWindow())}return e.prototype.setAppAdapter=function(e,t){if("1.0.0-52-ga45d8ed9"!==e)throw new Error("Scrivito UI version 1.0.0-52-ga45d8ed9 is not equal to the Scrivito SDK version "+e+" your application is using");this.cmsDocument.setAppAdapter(t)},e.prototype.uiAdapter=function(){return new o.default(this.cmsDocument)},e.prototype.installRailsApi=function(){this.cmsDocument.installRailsApi()},e.prototype.cmsState=function(){return a.cmsState},e.prototype.stateController=function(){var e=this;return{trackChanges:a.trackChanges,withBatchedUpdates:a.withBatchedUpdates,subscribe:function(t){return e.subscriptionProxy.subscribe(t)},withFrozenState:a.withFrozenState,failIfFrozen:a.failIfFrozen}},e.prototype.createAppState=function(){return a.createAppState()},e.prototype.clientModulesForExport=function(){return scrivito.client.modulesForExport()},e}();window.connectAppDocument=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=this;this.originalSubscribe=e,this.pendingUnsubscriptions=new Set,t.addEventListener("unload",function(){n.pendingUnsubscriptions.forEach(function(e){return e()})})}return e.prototype.subscribe=function(e){var t=this,n=this.originalSubscribe(e);return this.pendingUnsubscriptions.add(n),function(){n(),t.pendingUnsubscriptions.delete(n)}},e.prototype.pendingUnsubscriptionsCount=function(){return this.pendingUnsubscriptions.size},e}();t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=r(s),l=n(42),c=r(l),d={},f=function(){function e(t){i(this,e),this._objData=t,this._currentWorkers=[]}return a(e,null,[{key:"for",value:function(t){var n=t._id;return d[n]||(d[n]=new e(t)),d[n]}},{key:"clearCache",value:function(){d={}}}]),a(e,[{key:"start",value:function(){this._resolveData(this._objData.current)}},{key:"finishResolving",value:function(){var e=u.default.invoke(this._currentWorkers,"finish");return this._currentWorkers=u.default.select(this._currentWorkers,function(e){return!e.isFinished()}),scrivito.Promise.all(e)}},{key:"anyCurrentWorkerPresent",value:function(){return!!this._currentWorkers.length}},{key:"_resolveData",value:function(e,t){var n=this;u.default.each(e,function(e,r){"_widget_pool"===r?u.default.each(e,function(e,t){n._resolveData(e,t)}):n._resolveAttribute(r,e,t)})}},{key:"_resolveAttribute",value:function(e,t,n){if(!(0,c.default)(e)){var r=o(t,2),i=r[0],a=r[1];if(u.default.contains(["html","link","linklist"],i)&&!u.default.isEmpty(a)){var s=new scrivito.LinkResolutionWorker(this._objData,e,n);s.start(),this._currentWorkers.push(s)}}}}]),e}();t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new d.default({id:"scrivito.sdk.sort_items",title:scrivito.t("commands.sort_items.title"),icon:"&#xf03c;",tooltip:function(){var t=a.default.get(e);return scrivito.t("commands.sort_items.tooltip",(0,s.titleForObj)(t))},disabled:function(){var t=a.default.get(e);return t.hasChildren()?t.children().length<2?scrivito.t("commands.sort_items.too_less_children"):void 0:scrivito.t("commands.sort_items.auto_sort")},present:function(){var t=a.default.get(e);return l.default.find(t.objClass()).hasChildOrder()},execute:function(){var t=a.default.get(e),n=t.orderedChildren().map(function(e){return{id:e.id(),description:(0,s.titleForObj)(e)}});return p.default.open(n).then(function(e){var n=e.map(function(e){return a.default.get(e)});t.update({childOrder:[n,"referencelist"]}),t.finishSaving().then(function(){return(0,h.reloadStaticChildListDomFor)(t.path())})})}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),s=n(63),u=n(41),l=r(u),c=n(17),d=r(c),f=n(474),p=r(f),h=n(992);t.default=i},function(e,t,n){"use strict";function r(e){(0,a.useRailsEngine)()&&scrivito.cmsWindow.activeWindows().forEach(function(t){var n=$(t.browserWindow().document),r=scrivito.childListElement.all(n);o.default.any(r,function(t){return t.path()===e})&&t.reload()})}Object.defineProperty(t,"__esModule",{value:!0}),t.reloadStaticChildListDomFor=void 0;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(47);t.reloadStaticChildListDomFor=r},function(e,t,n){"use strict";n(994),n(995),n(996),n(997),n(998),n(999),n(1002),n(1003),n(1004),n(1005),n(1009),n(1010),n(1011),n(1012),n(1013),n(1014),n(40),n(317),n(1015),n(1016),n(1018),n(1020),n(1022),n(1023),n(1024),n(1025),n(1026),n(1027),n(1028),n(1029),n(1030),n(1031),n(1032),n(1033),n(1034),n(1035),n(1037),n(1038),n(1039),n(1040),n(1041),n(1042),n(1043),n(1044),n(1045),n(1046),n(1047),n(1048),n(1049),n(1050),n(1051),n(1052),n(1053),n(1056),n(1057),n(1058),n(1059),n(1063),n(1064),n(1065),n(1066),n(1067),n(1068),n(1069),n(1070),n(1071),n(1075),n(1076),n(1077),n(1078),n(1079),n(1080),n(1083),n(1084),n(1085),n(1086),n(1087),n(1099),n(1100),n(1116),n(1124),n(1137),n(1138),n(1139),n(1140)},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.default.contains(["PUT","POST","DELETE"],e),o=n&&n.skip_write_monitor;r&&(n.timeout=15e3,o||scrivito.WriteMonitor.startWrite());var s=a(e,t,n);return r&&!o&&scrivito.WriteMonitor.endWriteWhenDone(s),s}function t(e,t,r){return scrivito.ajax(e,t,r).catch(function(e){throw n(e),e})}function n(e){var t=void 0,n=void 0;i.default.isObject(e)?(t=scrivito.t("ajax_error",e.message),n=e.message_for_editor):t=i.default.contains(["abort","parsererror","timeout"],e)?scrivito.t("ajax_error.communication"):scrivito.t("ajax_error",e),scrivito.isDevelopmentMode?scrivito.AlertDialog.open(t):(scrivito.logError(t),scrivito.ErrorDialog.open(n||scrivito.t("ajax_error.message_for_editor"),[e.timestamp,t]))}function r(){s=!0}function o(){s=!1}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(s)return scrivito.Promise.reject(new Error("scrivito.ajax is disabled due to scrivito.disableAjax()!"));var r=window.location.protocol+"//"+window.location.host+"/__scrivito/";n.data&&(n.data=JSON.stringify(n.data));var o=$.ajax(r+t,i.default.extend({type:e,dataType:"json",contentType:"application/json; charset=utf-8",cache:!1},n));return new scrivito.Promise(function(e,t){o.then(e),o.fail(function(e,n,r){try{return t(JSON.parse(e.responseText))}catch(e){return t(r)}})})}var s=!1;scrivito.ajax=e,scrivito.ajaxWithErrorDialog=t,scrivito.displayAjaxError=n,scrivito.disableAjax=r,scrivito.enableAjax=o}()},function(e,t,n){"use strict";!function(){var e=void 0,t=[],n={setAppAdapter:function(n){e=n,t.forEach(function(e){return e()})},onChange:function(e){t.push(e)},reset:function(){e=void 0,t=[]}};["contentBrowserConfiguration","descriptionForObj","generalPropertiesForClass","getClasses","hideInSelectionDialogsForClass","initializeContentForObj","initializeContentForWidget","propertiesGroupsForClass","replaceInternalLinks","resolveUrl","thumbnailForObj","titleForClass","titleForObj","titleForWidget"].forEach(function(t){n[t]=function(){if(e)try{var n;return(n=e)[t].apply(n,arguments)}catch(e){scrivito.logError(e)}}}),scrivito.AppConfig=n}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{path_for_id:function(e){return"/__scrivito/"+e},id_from_path:function(e){var t=/__scrivito\/([a-z0-9]{16})/.exec(e);if(t)return t[1]},detailsPathForId:function(e){return"/__scrivito/page_details/"+e},detailsPathForWidget:function(e){return"/__scrivito/render_widget/"+e.obj().id()+"/widget_details/"+e.id()}})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(){return scrivito.CmsRestApi.get("blobs/upload_permission")}function t(e,t){var n=scrivito.BinaryRequest.getFormData();return i.default.each(t.fields,function(e,t){return n.append(t,e)}),n.append("file",e),scrivito.Promise.resolve($.ajax({method:"POST",url:t.url,data:n,contentType:!1,processData:!1})).then(function(){return t.blob})}function n(e,t,n,r){return scrivito.CmsRestApi.put("blobs/activate_upload",{obj_id:e,upload:t,filename:n,content_type:r})}scrivito.BinaryRequest={upload:function(r,i,o,a){return e().then(function(e){scrivito.WriteMonitor.startWrite();var s=t(i,e).then(function(e){return n(r,e,o,a)});return scrivito.WriteMonitor.endWriteWhenDone(s),s})},copy:function(e,t,n,r){var i=encodeURIComponent(e),o={};return n&&(o.filename=n),r&&(o.content_type=r),o.destination_obj_id=t,scrivito.CmsRestApi.put("blobs/"+i+"/copy",o)},getFormData:function(){return new FormData}}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(128),o=function(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}(i),a=n(3),s=r(a),u=n(17),l=r(u),c=n(8),d=r(c);!function(){function e(e){return new l.default({id:"scrivito.sdk.revert_resource",title:scrivito.t("commands.revert_resource.title"),icon:"&#xf032;",present:function(){return scrivito.editingContext.isMutable()&&!e.is_deleted()},disabled:function(){if(e.is_new())return scrivito.t("commands.revert_resource.is_new")},execute:function(){t().then(function(){return n(e)})}})}function t(){return scrivito.confirmation_dialog({title:scrivito.t("commands.revert_resource.dialog.title"),description:scrivito.t("commands.revert_resource.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_resource.dialog.confirm"),confirm_button_color:"red"})}function n(e){scrivito.withSavingOverlay((0,d.default)(function(){return s.default.get(e.id())}).then(function(e){return o.revertObj(e.objData)}).then(r))}function r(){scrivito.applicationWindow.reload(),scrivito.cmsWindow.from($("iframe[name=scrivito_details_dialog]")).reload()}scrivito.revert_resource_command=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(342),a=r(o),s=n(1e3),u=r(s),l=n(1001),c=r(l),d=n(343),f=r(d),p=n(344),h=r(p),_=n(225),m=r(_),v=n(0),g=r(v),y=n(218),b=r(y),w=n(571),k=r(w);!function(){function e(e){return new b.default({id:"scrivito.sdk.widget_commands.separator"+e})}var t={init:function(){scrivito.editingContext.isViewMode()||scrivito.on("content",function(t){g.default.each(scrivito.widgetElement.all($(t)),function(t){var n=t.widget().id(),r=t.widgetField().basic_obj(),o=t.basicWidget(),s=t.widgetField().basicField(),l=t.widgetField().renderMode();t.set_menu([(0,k.default)(o,{renderMode:l}),e(1),(0,f.default)(o),(0,a.default)(o),(0,m.default)(s,o),e(2),(0,c.default)(r,n),(0,u.default)(t),(0,h.default)(o)].concat(i(t.menu())))})})}};scrivito.widgetCommands=t}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.widget();return new f.default({id:"scrivito.sdk.revert_widget",title:scrivito.t("commands.revert_widget.title"),icon:"&#xf032;",present:function(){return scrivito.editingContext.isMutable()&&!t.is_deleted()},disabled:function(){return t.is_new()?scrivito.t("commands.revert_widget.is_new"):t.is_modified()?void 0:scrivito.t("commands.revert_widget.is_not_modified")},update:function(){return t.reload()},execute:function(){o().then(function(){var t=e.basicWidget();return scrivito.withSavingOverlay(a(t))})}})}function o(){return scrivito.confirmation_dialog({title:scrivito.t("commands.revert_widget.dialog.title"),description:scrivito.t("commands.revert_widget.dialog.description"),icon:"&#xf032;",color:"red",confirm_button_text:scrivito.t("commands.revert_obj.dialog.confirm"),confirm_button_color:"red"})}function a(e){var t=e.obj().objData;return c.revertWidget(t,e.id()).then(function(){return(0,u.default)(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(572),u=r(s),l=n(128),c=function(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}(l),d=n(17),f=r(d)},function(e,t,n){"use strict";function r(e,t){return new u.default({id:"scrivito.sdk.restore_widget",title:scrivito.t("commands.restore_widget.title"),icon:"&#xf032;",present:function(){return!e.widget(t)&&!e.isDeleted()},execute:function(){scrivito.withSavingOverlay(i(e,t)).then(function(){return scrivito.applicationWindow.reload()})}})}function i(e,t){return a.restoreWidget(e.objData,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(128),a=function(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}(o),s=n(17),u=function(e){return e&&e.__esModule?e:{default:e}}(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(346),a=r(o),s=n(225),u=r(s),l=n(347),c=r(l),d=n(0),f=r(d);!function(){var e={init:function(){scrivito.editingContext.isEditingMode()&&scrivito.on("content",function(e){var t=scrivito.WidgetlistFieldElement.all($(e));f.default.each(t,function(e){var t=e.basicField();e.set_menu([(0,a.default)(t),(0,c.default)(t),(0,u.default)(t)].concat(i(e.menu())))})})}};scrivito.widgetlistFieldCommands=e}()},function(e,t,n){"use strict";var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(5);!function(){function e(){scrivito.on("pageChange",function(e){e===scrivito.applicationDocument()&&n().set(e.pageId())})}function t(){var e=n().get();return e?i.default.getIncludingDeleted(e):null}function n(){return o.uiState.subState("currentPageId")}scrivito.observeApplicationPage=e,scrivito.currentApplicationPage=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{displayError:function(e){var t=void 0;if("precondition_not_met.workspace.create.exceeds_limit"===e.code)return void scrivito.workspace_limit_exceeded();t=e.message?scrivito.t("ajax_error",e.message):scrivito.t("ajax_error.communication"),scrivito.isDevelopmentMode?scrivito.AlertDialog.open(t):scrivito.ErrorDialog.open(scrivito.t("ajax_error.message_for_editor"),[t]),scrivito.logError(e)}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(33),o=r(i),a=n(0),s=r(a),u=n(1006),l=r(u),c=n(135),d=n(47),f=n(228),p=r(f),h=n(1008),_=n(59),m=r(_);!function(){function e(){var e=(0,o.default)(scrivito.location()).search(!0);e._scrivito_workspace_id&&(i=e._scrivito_workspace_id),e._scrivito_display_mode&&(r=e._scrivito_display_mode)}function t(){try{var e=JSON.parse((0,h.get)("scrivito_editing_context"));r=e.display_mode,i=e.workspace_id}catch(e){if(!(e instanceof SyntaxError))throw e}}function n(){return JSON.stringify({display_mode:r,workspace_id:i})}var r=void 0,i=void 0;scrivito.editingContext={init:function(){var n=this;t(),e(),document.hasFocus()&&this.writeCookie(),$.ajaxPrefilter(this.ajaxPrefilter),scrivito.Gui.on("document",function(e){(0,d.useRailsEngine)()&&e.localJquery().ajaxPrefilter(n.ajaxPrefilter),$(e.browserWindow()).on("focus",function(){return n.writeCookie()})}),p.default.subscribe("editingContext",function(){return n.writeCookie()})},get displayMode(){return r},set displayMode(e){r=e},get selectedWorkspaceId(){return i},set selectedWorkspaceId(e){i=e},uriWithEditingContextParams:function(e){var t=new o.default(scrivito.location().href);return e.workspaceId&&t.setQuery("_scrivito_workspace_id",e.workspaceId),e.displayMode&&t.setQuery("_scrivito_display_mode",e.displayMode),t},isViewMode:function(){return"view"===r},isEditingMode:function(){return"editing"===r},isDiffMode:function(){return"diff"===r},ajaxPrefilter:function(e,t,r){e.crossDomain||r.setRequestHeader("Scrivito-Editing-Context",n())},writeCookie:function(){var e={path:"/"};"https:"===location.protocol&&(e.secure=!0),(0,h.set)("scrivito_editing_context",n(),e)},comparingMode:function(){var e="editing_context.comparing_mode";return this.isDiffMode()?(scrivito.storage.set(e,r),r):scrivito.storage.hasKey(e)?scrivito.storage.get(e):"diff"},isMutable:function(){return"published"!==i},reasonForDisplayModeBeingDisabled:function(e){if("editing"===e)return scrivito.editingMode.reasonForBeingDisabled},conflictingWorkspacesFor:function(e){if(m.default.selected.isPublished())return[];var t=m.default.byModifiedObj(e);return s.default.reject(t,function(e){return e.id===i})},restrictionMessagesFor:function(e){return m.default.selected.isMutable()&&(0,c.useCustomUsers)()?l.default.get(e.id()).restrictionMessages:[]},reset:function(){i="published",r="view"}},scrivito.editingContext.reset()}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=r(a),u=n(1007),l=function(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}(u),c=n(16),d=r(c),f=n(5),p=function(){function e(t){var n=this;i(this,e);var r=f.uiState.subState("publishAbility").subState(t),o=function(){return l.retrieve(t)},a=function(){return n._objVersion(t)};this._loadableData=new d.default({state:r,loader:o,invalidation:a,throwNotLoaded:!0})}return o(e,null,[{key:"get",value:function(t){var n=new e(t);return n.ensureAvailable(),n}},{key:"store",value:function(t,n){new e(t).set(n)}}]),o(e,[{key:"set",value:function(e){this._loadableData.set(e)}},{key:"ensureAvailable",value:function(){this._loadableData.get()}},{key:"_objVersion",value:function(e){return scrivito.loadableWithDefault("",function(){return s.default.getIncludingDeleted(e).version()})}},{key:"restrictionMessages",get:function(){return this._loadableData.get().restriction_messages}}]),e}();t.default=p},function(e,t,n){"use strict";function r(e){return s.retrieve(e)}function i(){s.reset()}Object.defineProperty(t,"__esModule",{value:!0}),t.retrieve=r,t.reset=i;var o=n(87),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=new a.default(function(e){return scrivito.ajax("PUT","publish_abilities/mget",{data:{obj_ids:e},skip_write_monitor:!0})})},function(e,t,n){var r,i;!function(o){var a=!1;if(r=o,void 0!==(i="function"==typeof r?r.call(t,n,t,e):r)&&(e.exports=i),a=!0,e.exports=o(),a=!0,!a){var s=window.Cookies,u=window.Cookies=o();u.noConflict=function(){return window.Cookies=s,u}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(n){function r(t,i,o){var a;if("undefined"!=typeof document){if(arguments.length>1){if(o=e({path:"/"},r.defaults,o),"number"==typeof o.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,!0!==o[l]&&(u+="="+o[l]));return document.cookie=t+"="+i+u}t||(a={});for(var c=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;f<c.length;f++){var p=c[f].split("="),h=p.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var _=p[0].replace(d,decodeURIComponent);if(h=n.read?n.read(h,_):n(h,_)||h.replace(d,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===_){a=h;break}t||(a[_]=h)}catch(e){}}return a}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t(function(){})})},function(e,t,n){"use strict";!function(){function e(){scrivito.withSavingOverlay(scrivito.reload())}var t="edit_mode_disabled.reason";scrivito.editingMode={disable:function(n){var r=scrivito.editingMode.reasonForBeingDisabled;if(scrivito.storage.set(t,n),scrivito.editingContext.isEditingMode())return scrivito.withSavingOverlay(scrivito.changeEditingContext({displayMode:"view"}));r!==n&&e()},enable:function(n){scrivito.editingMode.isEnabled()||(scrivito.storage.remove(t),n?n():e())},isEnabled:function(){return!scrivito.editingMode.reasonForBeingDisabled},get reasonForBeingDisabled(){return scrivito.storage.get(t)}}}()},function(e,t,n){"use strict";!function(){scrivito.forgery_protection={init:function(){$.ajaxPrefilter(function(e,t,n){if(!e.crossDomain){var r=$("meta[name=csrf-token]").attr("content");r?n.setRequestHeader("X-CSRF-Token",r):scrivito.logError("Missing CSRF Token in UI, AJAX may fail!")}})}}}()},function(e,t,n){"use strict";function r(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 i(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)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(1);!function(){var e=function(){function e(t,n){var r=n.events,i=n.initialState,a=n.states,s=n.superStateEvents,u=n.actions;o(this,e),this._name=t,this._events=r,this._states=a,this._superStateEvents=s,this._actions=u,this._currentState=i}return a(e,[{key:"triggerEvent",value:function(e){if(!u.default.contains(this._events,e))throw new scrivito.FsmError('Unknown event "'+e+'"');if(!this._currentState)throw new scrivito.FsmError("Invalid state detected. Maybe initial state was not set?");if(this._superStateEvents){var t=this._superStateEvents[e];if(t)return void this._executeRule(t,e)}var n=this._states[this._currentState];if(!n)throw new scrivito.FsmError('Missing rules for state "'+this._currentState+'"');var r=n[e];r&&this._executeRule(r,e)}},{key:"_executeRule",value:function(e,t){var n=this,r=e.transitionTo,i=e.execute;if(!r)throw new scrivito.FsmError('Missing target state for source state "'+this._currentState+'" and event "'+t+'"');this._currentState=r,i&&i.forEach(function(e){var t=n._actions[e];if(!t)throw new scrivito.FsmError('Unknown action "'+e+'"');t()})}},{key:"currentState",get:function(){return this._currentState}}]),e}(),t=function(e){function t(e){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),t}(l.InternalError);scrivito.Fsm=e,scrivito.FsmError=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e){return scrivito.editingContext.isEditingMode()?scrivito.cms_field_element.preload($(e)):scrivito.Promise.resolve()}function t(e,t){r[e]&&i.default.each(r[e],function(e){e(t)})}var n=!1,r={},o={start:function(){scrivito.Gui.on("document",function(e){var t=e.dom_element().find("body");t.addClass("scrivito_editing_active"),t.attr("data-scrivito-display-mode",scrivito.editingContext.displayMode),i.default.each(["dragenter","dragover","drop"],function(e){return t.on(e,!1)})}),$("body").append('\n <div id="scrivito_editing">\n <div id="menubar"></div>\n <div id="publish_history_dialog"></div>\n <div id="workspace_settings_dialog"></div>\n <div id="workspace_changes_dialog"></div>\n <div id="details_dialog"></div>\n <div id="choose_obj_class_dialog"></div>\n <div id="error_dialog"></div>\n <div id="alert_dialog"></div>\n <div id="context_menu"></div>\n <div id="prompt_dialog"></div>\n <div id="image_editor_dialog"></div>\n </div>\n '),t("open"),t("content",window.document),n=!0},stop:function(){n=!1},cleanUp:function(){$("#scrivito_editing").remove()},newContent:function(n){n&&e(n).then(function(){t("content",n);var e=scrivito.CmsDocument.from($(n)).notifyNewContent(n);e.length?scrivito.Promise.all(e).then(function(){t("editor_selection",n)}):t("editor_selection",n)})},newDocument:function(e){i.default.each(r.document,function(t){t(e)}),e.window().notifyNewDocument(e)},on:function(e,t){void 0===r[e]&&(r[e]=[]),r[e].push(t)},resetCallbacks:function(){r={}},isStarted:function(){return n},hideControls:function(){$("#scrivito_ui").addClass("scrivito_hide_ui")},showControls:function(){$("#scrivito_ui").removeClass("scrivito_hide_ui")}};scrivito.Gui=o}()},function(e,t,n){"use strict";function r(e){var t=o.default.find(e);return!(!t||!t.attribute("tags"))&&"stringlist"===t.attribute("tags").type}var i=n(41),o=function(e){return e&&e.__esModule?e:{default:e}}(i);scrivito.hasTagsAttribute=r},function(e,t,n){"use strict";var r=n(106),i=function(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}(r);!function(){function e(){scrivito.Gui.on("document",function(e){e.dom_element().on("keyup",function(e){return $(document).trigger(e)})})}function t(e,t){var r=n+1;n=r;var o="keyup.scrivito_hotkeys."+r,a={13:t.enter,27:t.escape};return $(document).on(o,function(e){if(!(scrivito.savingOverlay.isPresent()||r<n)){var t=a[e.keyCode];t&&t(e)}}),i.finally(e,function(){n-=1,$(document).off(o)})}var n=0;scrivito.hotkeys={add:t,init:e}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(475),o=r(i),a=n(569),s=r(a);!function(){function e(e,t){var n=$(this);switch(e){case"save":return r(n,t);case"content":return i(n);case"valid_values":return a(n);case"valid_classes":return u(n);case"menu":return l(n);case"reload":c(n);break;default:$.error('Unknown method "'+e+'"')}}function t(e){e.length<1&&$.error('Can not call "scrivito" method on an empty element'),e.length>1&&$.error('Can not call "scrivito" method on more than one tag')}function n(e){return scrivito.cms_element.from_dom_element(e)}function r(e,t){if(e.length>0)if(1===e.length){if(void 0!==t){var r=n(e);r.set_original_content(t);var i=r.save(t).then(function(){}).catch(function(e){throw{message:e.message}});return(0,s.default)(i)}$.error('Can not call "save" with no content')}else $.error('Can not call "scrivito" method on more than one tag')}function i(e){return t(e),n(e).original_content()}function a(e){return t(e),n(e).valid_values()}function u(e){return t(e),n(e).valid_classes()}function l(e){t(e);var r=n(e);return new o.default(r)}function c(e){t(e),n(e),$(e).trigger("reload.scrivito")}scrivito.jQueryPlugin=e,$.fn.scrivito=scrivito.jQueryPlugin}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(15),l=r(u),c=n(1017),d=function(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}(c),f=n(0),p=r(f),h=n(1),_=n(573);!function(){scrivito.LinkResolutionWorker=function(){function e(t,n,r){o(this,e),this._objData=t,this._attributeName=n,this._widgetId=r,this._deferred=new l.default,this._startCount=0;var i=this._currentAttributeData(),s=a(i,2);this._attributeType=s[0],this._attributeValue=s[1]}return s(e,[{key:"finish",value:function(){return this._deferred.promise}},{key:"isFinished",value:function(){return!this._deferred.isPending()}},{key:"start",value:function(){var e=this;if(!(++this._startCount>2)&&this._deferred.isPending()){if(this._isConcurrentUpdate())return void this._deferred.resolve();var t=this._convertValue();p.default.isEmpty(t.unknownUrls)?(this._updateAttributeValue(t.result),this._deferred.resolve()):(scrivito.WriteMonitor.startWrite(),(0,_.preloadResolvedUrls)(t.unknownUrls).then(function(){scrivito.WriteMonitor.endWrite(),e.start()}).catch(function(t){scrivito.WriteMonitor.endWrite(),e._deferred.reject(t)}))}}},{key:"_convertValue",value:function(){switch(this._attributeType){case"html":return d.convertHtml(this._attributeValue);case"link":return d.convertLink(this._attributeValue);case"linklist":return d.convertLinklist(this._attributeValue);default:throw new h.InternalError('Attribute type "'+this._attributeType+'" is not supported.')}}},{key:"_currentAttributeData",value:function(){if(this._widgetId){return((this._objData.current._widget_pool||{})[this._widgetId]||{})[this._attributeName]||[]}return this._objData.current[this._attributeName]||[]}},{key:"_isConcurrentUpdate",value:function(){var e=[this._attributeType,this._attributeValue];return!p.default.isEqual(this._currentAttributeData(),e)}},{key:"_updateAttributeValue",value:function(e){if(e!==this._attributeValue){var t=i({},this._attributeName,[this._attributeType,e]);this._widgetId&&(t={_widget_pool:i({},this._widgetId,t)}),this._objData.update(t)}}}]),e}()}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=l(e,"a","href"),n=t.unknownUrls,r=t.convertedHtml,i=l(r,"img","src");return n=n.concat(i.unknownUrls),r=i.convertedHtml,s(r,n)}function o(e){var t=[],n=u(e),r=c(n,2),i=r[0],o=r[1];return o&&t.push(o),s(i,t)}function a(e){var t=[];return s(h.default.map(e,function(e){var n=u(e),r=c(n,2),i=r[0],o=r[1];return o&&t.push(o),i}),t)}function s(e,t){return{result:e,unknownUrls:h.default.uniq(t)}}function u(e){if(!e.url)return[e];var t=(0,_.resolveUrl)(e.url);return void 0===t?[e,e.url]:null===t?[e]:[{obj_id:t.obj_id,fragment:t.fragment,query:t.query,target:e.target,title:e.title}]}function l(e,t,n){var r=[],i=new RegExp("<"+t+"\\s+(?:[^>]*?\\s+)?"+n+"=([\"'])(.*?)\\1","gi"),o=e.replace(i,function(e,t,n){if(!n)return e;if(n.match(/^objid:/))return e;var i=(0,_.resolveUrl)(n);if(void 0===i)return r.push(n),e;if(null===i)return e;var o=new f.default("objid:"+i.obj_id);return i.fragment&&o.fragment(i.fragment),i.query&&o.query(i.query),e.replace(n,o.href())});return{unknownUrls:r,convertedHtml:o}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.convertHtml=i,t.convertLink=o,t.convertLinklist=a;var d=n(33),f=r(d),p=n(0),h=r(p),_=n(573)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(111),o=n(1019),a=r(o),s=n(0),u=r(s),l=n(24),c=r(l),d=n(64),f=r(d);!function(){scrivito.binaryFieldElement={createInstance:function(e){if("binary"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e),n=new a.default(function(e){return i.FileType.is(e)?c.default.upload(e).intoId(t.basic_obj().id()):e instanceof f.default?e.intoId(t.basic_obj().id()):scrivito.Promise.resolve(e)});return u.default.extend(t,{preprocess:function(e){return n.write(e).catch(function(e){throw scrivito.displayError(e),e})}}),t}}},scrivito.cms_element.definitions.push(scrivito.binaryFieldElement)}()},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(15),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t){r(this,e),this._preprocessor=t,this._valueOfWriteInProcess=null}return i(e,[{key:"write",value:function(e,t){var n=this._storeNextWrite(e,t);return this._hasRunningWrite()||this._initiateWrite(),n.promise}},{key:"pendingWrite",value:function(){return this._nextWrite?this._nextWrite.value:this._valueOfWriteInProcess}},{key:"_storeNextWrite",value:function(e,t){return this._nextWrite||(this._nextWrite={deferred:new a.default}),this._nextWrite.value=e,this._nextWrite.writeCallback=t,this._nextWrite.deferred}},{key:"_initiateWrite",value:function(){var e=this,t=this._nextWrite,n=t.value,r=t.writeCallback,i=t.deferred;return this._nextWrite=null,this._valueOfWriteInProcess=n,this._preprocess(n).then(function(e){return r&&r(e),e}).then(function(t){e._finishWrite(),i.resolve(t)}).catch(function(t){e._finishWrite(),i.reject(t)})}},{key:"_hasRunningWrite",value:function(){return!!this._valueOfWriteInProcess}},{key:"_finishWrite",value:function(){this._nextWrite?this._initiateWrite():this._valueOfWriteInProcess=null}},{key:"_preprocess",value:function(e){var t=this;return new scrivito.Promise(function(n){n(t._preprocessor(e))})}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(3),s=r(a),u=n(8),l=r(u),c=n(1021);!function(){scrivito.childListElement={createInstance:function(e){if(e.dom_element().attr("data-scrivito-private-child-list-path")){var t=e;return o.default.extend(t,{path:function(){return t.dom_element().attr("data-scrivito-private-child-list-path")},obj:function(){return scrivito.legacy_obj.create_instance({id:t.dom_element().attr("data-scrivito-private-child-list-order-obj-id"),description_for_editor:t.dom_element().attr("data-scrivito-private-obj-description-for-editor")})},fetchPageClassSelection:function(){return(0,c.fetchPageClassSelection)({parent_path:t.path()})},allowedClasses:function(){return JSON.parse(t.dom_element().attr("data-scrivito-private-child-list-allowed-classes"))},children:function(){return o.default.map(t.dom_element().find(">[data-scrivito-private-obj-id]"),function(e){return scrivito.cms_element.from_dom_element($(e))})},hasChildOrder:function(){return!!t.dom_element().attr("data-scrivito-private-child-list-order-obj-id")},fetchObj:function(){return(0,l.default)(function(){return s.default.get(t.obj().id())})},saveOrder:function(){if(t.hasChildOrder()){var e=o.default.map(t.children(),function(e){return e.obj().id()});return t.fetchObj().then(function(t){return t.update({childOrder:[e,["referencelist"]]}),t.finishSaving()}).catch(function(e){throw scrivito.displayError(e),e})}$.error("Can't save order, when child order is not allowed!")},isValidChildClass:function(e){var n=t.allowedClasses();return!n||o.default.contains(n,e)}}),t}},all:function(e){return scrivito.cms_element.all("[data-scrivito-private-child-list-path]",e)}},scrivito.cms_element.definitions.push(scrivito.childListElement)}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return o("objs/page_class_selection",e)}function o(e,t){return a(e,t).then(function(e){var t=c.default.pluck(e,"name"),n=void 0;t.length>=15&&(n=scrivito.ObjCreationHistory.recent(t));var r=c.default.take(c.default.intersection(scrivito.popular_obj_classes,t),5);return{all:e,recent:c.default.map(n,function(t){return c.default.findWhere(e,{name:t})}),popular:c.default.map(r,function(t){return c.default.findWhere(e,{name:t})})}})}function a(e,t){var n=e;t&&(n+="?"+$.param(t));var r=p.uiState.subState("getClassSelection").subState(n),i=function(){return scrivito.Promise.resolve(scrivito.ajaxWithErrorDialog("GET",n))},o=new u.default({state:r,loader:i});return(0,f.default)(function(){return o.get()})}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPageClassSelection=void 0;var s=n(16),u=r(s),l=n(0),c=r(l),d=n(8),f=r(d),p=n(5);t.fetchPageClassSelection=i},function(e,t,n){"use strict";function r(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 i(e){return e&&e.__esModule?e:{default:e}}var o=n(3),a=i(o),s=n(53),u=r(s),l=n(470),c=r(l),d=n(472),f=r(d),p=n(546),h=r(p),_=n(476),m=i(_),v=n(0),g=i(v),y=n(1),b=n(8),w=i(b),k=n(24),M=i(k),C=n(134),E=i(C),x=n(135),T=n(47),D=n(488),S=i(D);!function(){function e(e){function n(){if(!(0,T.useRailsEngine)())throw new y.InternalError("Unexpected attempt to access application frame's jQuery");if(l.jQuery)return l.jQuery;var e="jQuery is missing! In order for Scrivito to work, jQuery is needed. Please add jQuery to your assets.";scrivito.AlertDialog.open(e),$.error(e)}function r(e,t){"load"===e?_?scrivito.run_new_event(t):d.push(t):"content"===e?(p.push(t),_&&scrivito.run_new_event(function(){t(s)})):$.error("unknown event "+e)}function i(){var e=o.pageConfig();if(e&&!g.default.isEmpty(e.current_page))return e.current_page}var o=e,s=e.dom_element()[0],l=s.defaultView,d=[],p=[],_=!1,v=!1,b=void 0,k=void 0;return g.default.extend(o,{installRailsApi:function(){n().fn.scrivito=scrivito.jQueryPlugin;var e=l.scrivito||{};l.scrivito=g.default.extend(e,{on:r,trigger:scrivito.trigger,create_obj:scrivito.create_obj,delete_obj:scrivito.delete_obj,obj_where:scrivito.obj_where,is_current_page_restricted:scrivito.is_current_page_restricted,in_editable_view:scrivito.in_editable_view,register_default_obj_class_for_content_type:scrivito.register_default_obj_class_for_content_type,default_obj_class_for_content_type:scrivito.default_obj_class_for_content_type,page_menu:function(){return scrivito.page_menu(o)},define_editor:function(e,t){new m.default(o).define(e,t)},select_editor:function(e){o.select_editor=e},upload_binary:function(e){return M.default.upload(e.blob||e.file,{filename:e.filename,contentType:e.content_type})},suggest_completion:h.suggest,description_for_editor:scrivito.description_for_editor,path_for_id:scrivito.path_for_id,id_from_path:scrivito.id_from_path,content_browser:S.default,dialog:function(e,t){var n=o.window().iframe();return scrivito.custom_dialog(n,s,e,t)}}),t(l.scrivito,["menu_order","popular_obj_classes"])},setAppAdapter:function(e){b=e},appAdapter:function(){return b},assertUserLoggedIn:function(){(0,x.useCustomUsers)()&&(0,w.default)(function(){o.userId()!==E.default.current.id&&scrivito.change_location(o.window().browserWindow().location,window)})},connect:function(){if(v&&$.error("document connected twice!"),scrivito.cmsWindow.isLivingWindow(l))return v=!0,o.preloadObjs().then(function(){d.forEach(function(e){return scrivito.run_new_event(e)}),_=!0,scrivito.Gui.newDocument(o),scrivito.Gui.newContent(o.dom_element()[0]),c.notify(o)});scrivito.log_info("document inside closed window, refusing to connect")},preloadObjs:function(){return scrivito.editingContext.isViewMode()?scrivito.Promise.resolve():(g.default.each(o.preloadedObjData(),function(e){return u.store(e)}),scrivito.cms_field_element.preload(o.dom_element()))},notifyNewContent:function(e){var t=this;return _&&g.default.map(p,function(n){return new scrivito.Promise(function(r){scrivito.run_new_event(function(){try{n.apply(t,[e])}finally{r()}})})})},addAppExtensions:function(){if(scrivito.ui_config()){var e=scrivito.ui_config().app_extension_tags;l.document.write(e)}},window:function(){return scrivito.cmsWindow.from(l)},localJquery:function(e){return e?n()(e):n()},browserWindow:function(){return l},offset:function(e){var t=$(e).offset(),n=$(o.window().iframe()).offset();return n?{top:n.top-$(l.document).scrollTop()+t.top,left:n.left-$(l.document).scrollLeft()+t.left}:t},pageId:function(){if(k)return k;var e=i();return e?e.id:null},page:function(){var e=o.pageId();return e?a.default.getIncludingDeleted(e):null},setCurrentPageId:function(e){k=e,c.notify(o)},isCurrentPageStatic:function(){return!k},hasCurrentPage:function(){return!!o.pageId()},isCurrentPageRestricted:function(){if(o.hasCurrentPage()){var e=o.pageConfig();if(e)return e.current_page.is_restricted}return!1},userId:function(){var e=o.pageConfig();if(e)return e.user_id},preloadedObjData:function(){var e=o.pageConfig();if(e)return e.preloaded_obj_data},pageConfig:function(){return f.read(o.findPageConfig(),"data-scrivito-private-page-config")},setPageConfig:function(e){var t=o.findPageConfig();t.length||(t=o.dom_element().find("body")),e?f.write(t,"data-scrivito-private-page-config",e):t.removeAttr("data-scrivito-private-page-config")},findPageConfig:function(){return o.dom_element().find("[data-scrivito-private-page-config]")},setCurrentPageConfig:function(e){o.setPageConfig({current_page:e})},clearCurrentPage:function(){k=null}}),o}function t(e,t){g.default.each(t,function(t){Object.defineProperty(e,t,{get:function(){return scrivito[t]},set:function(e){scrivito[t]=e}})})}var n={offset:function(e){return this.from(e).offset(e)},localJquery:function(e){return this.from($(e)).localJquery(e)},from:function(e){var t=void 0,n=$(e);return 0===n.length&&$.error("empty jquery instance given"),n[0].ownerDocument?t=$(n[0].ownerDocument):n[0].nodeType===Node.DOCUMENT_NODE?t=n:$.error("scrivito.CmsDocument.from must be called with a dom element"),scrivito.cms_element.from_dom_element(t)},createInstance:function(t){if(t.dom_element()[0].nodeType===Node.DOCUMENT_NODE)return e(t)}};scrivito.cms_element.definitions.push(n),scrivito.CmsDocument=n}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(0),a=r(o),s=n(3),u=r(s),l=n(464),c=r(l),d=n(42),f=r(d),p=n(8),h=r(p),_=n(19);!function(){function e(e){return a.default.contains(["binary","date","enum","float","html","integer","link","linklist","multienum","reference","referencelist","string","stringlist"],e)}var t={createInstance:function(t){function n(){o.workspace_id()!==scrivito.editingContext.selectedWorkspaceId&&$.error("Tried to edit cms data from wrong workspace!")}function r(e,t){if(e&&"date"===t){return new(0,scrivito.CmsDocument.from(o.dom_element()).browserWindow().Date)(e)}return e&&"binary"===t?new c.default(e.id,e.url,e.filename,o.obj().id()):e}var o=t;return a.default.extend(o,{field_name:function(){return o.dom_element().attr("data-scrivito-field-name")},attr_name:function(){return(0,_.camelCase)(o.field_name())},field_type:function(){return o.dom_element().attr("data-scrivito-field-type")},type_info:function(){if(!(0,f.default)(o.attr_name())){var e=o.field_type();return"enum"===e||"multienum"===e?[e,{values:o.valid_values()}]:[e]}},obj:function(){return scrivito.legacy_obj.create_instance({id:o.dom_element().attr("data-scrivito-private-field-obj-id"),obj_class:o.dom_element().attr("data-scrivito-field-obj-class")})},workspace_id:function(){return o.dom_element().attr("data-scrivito-private-field-workspace-id")},widget:function(){var e=o.dom_element().attr("data-scrivito-private-field-widget-id");if(e)return scrivito.legacy_widget.create_instance(o.obj(),e,o.dom_element().attr("data-scrivito-widget-obj-class"))},save:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.content();return n(),void 0===e&&$.error("Can't save without content"),o.preprocess(e).then(function(e){var t=i({},o.attr_name(),[e,o.type_info()]);return o.container().update(t),o.container().finishSaving().catch(function(){throw new Error(scrivito.t("ajax_error.communication"))})})},preprocess:function(e){return scrivito.Promise.resolve(e)},preload_model:function(){var e=o.dom_element().attr("data-scrivito-private-field-obj-id");return(0,h.default)(function(){return u.default.getIncludingDeleted(e)})},basic_obj:function(){var e=o.dom_element().attr("data-scrivito-private-field-obj-id");return u.default.getIncludingDeleted(e)},basic_widget:function(){var e=o.dom_element().attr("data-scrivito-private-field-widget-id"),t=o.basic_obj();if(e)return t.widget(e)},container:function(){return o.basic_widget()||o.basic_obj()},original_content:function(){if(n(),e(o.field_type())){return r(scrivito.json_parse_base64(o.dom_element().attr("data-scrivito-private-field-original-content")),o.field_type())}$.error("Fields of type "+o.field_type()+" do not support original content")},set_original_content:function(t){e(o.field_type())&&o.dom_element().attr("data-scrivito-private-field-original-content",scrivito.json_stringify_base64(t))},valid_values:function(){return o.dom_element().data("scrivito-private-field-allowed-values")},valid_classes:function(){var e=o.widget()||o.obj(),t=e.model_class(),n=t.attribute(o.attr_name());return a.default.pluck(n.validClasses(),"name")}}),o},preload:function(e){var t=scrivito.cms_element.all("[data-scrivito-field-type]",e),n=[];a.default.each(t,function(e){e.preload_model&&n.push(e.preload_model())});var r=scrivito.Promise.all(n);return r.catch(function(e){scrivito.ErrorDialog.open("An error occured while loading some of the page contents. Please reload.",[e.message])}),r}};scrivito.cms_field_element=t}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(33),o=r(i),a=n(0),s=r(a),u=n(3),l=r(u),c=n(8),d=r(c),f=n(47);!function(){function e(e){function t(e){var t=n.iframe();return scrivito.withSavingOverlay(new scrivito.Promise(function(n,r){t&&$(t).one("load",n),e.then(n),e.catch(r)}))}var n={_isForcedEditingMode:!1,document:function(){return scrivito.cms_element.from_dom_element($(e.document))},on:function(e,t){"document"!==e&&$.error("invalid event name: "+e),r.push(t)},notifyNewDocument:function(e){s.default.each(r,function(t){return t(e)})},browserWindow:function(){return e},reload:function(){return t(scrivito.reload(e))},redirectTo:function(n){return t(scrivito.redirect_to(n,e))},onDocumentResize:function(e){i.push(e)},notifyDocumentResize:function(){i.forEach(function(e){return e()})},clearDocumentResizeCallbacks:function(){i=[]},getDocumentHeight:function(){var e=n.document().appAdapter();return e?e.getDocumentHeight():0},clearDocumentCallbacks:function(){r=[]},useFragmentOf:function(e){if(n!==e){var t=e.browserWindow().location.hash;if(t){var r=new o.default(n.iframe().src);r.fragment(t),n.iframe().src=r.href()}}},isFrame:function(){return e.parent!==e},iframe:s.default.once(function(){return s.default.find($(e.parent.document).find("iframe"),function(t){try{return $(t).contents()[0].defaultView===e}catch(e){}})}),fragment:function(){return e.location.hash},queryString:function(){return e.location.search},forceEditingMode:function(){n._isForcedEditingMode=!0},isForcedEditingMode:function(){return n._isForcedEditingMode},navigateTo:function(e){if((0,f.useRailsEngine)())return n.redirectTo(scrivito.path_for_id(e));var t=n.document().appAdapter();t?t.navigateTo(e):scrivito.logError("\n useRailsEngine is false but there is no AppAdapter,\n this means that there should be a JS application, but it is missing or broken somehow.\n ")},navigateToRoot:function(){return(0,d.default)(function(){return l.default.root()}).then(function(e){return n.navigateTo(e.id())})}},r=[],i=[];return n}function t(){a=s.default.reject(a,function(e){var t=e.browserWindow(),n=!0;if(t)try{n=!scrivito.cmsWindow.isLivingWindow(t)}catch(e){}return n})}function n(e){return t(),s.default.detect(a,function(t){return t.browserWindow()===e})}function r(e){a.push(e)}var i={from:function(t){t||$.error("no element given!");var i=void 0;if(t.jquery&&"IFRAME"===t[0].tagName){i=$(t).contents()[0].defaultView}else i=t;scrivito.cmsWindow.isLivingWindow(i)||$.error("element is a closed browser window or not a window element at all");var o=n(i);return o||(o=e(i),r(o)),o},isLivingWindow:function(e){return!!$.isWindow(e)&&(e.parent===e.self?e.self===top:!e.closed)},activeWindows:function(){return t(),a},instances:function(){return a}},a=[];scrivito.cmsWindow=i}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){if("date"===e.dom_element().attr("data-scrivito-field-type"))return scrivito.cms_field_element.createInstance(e)},all:function(){return i.default.map($('[data-scrivito-field-type="date"]'),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.cms_element.definitions.push(e),scrivito.DateFieldElement=e}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){if("html"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return i.default.extend(t,{content:function(){var e=t.dom_element().html();return $.trim(e)}}),t}},all:function(){return i.default.map($('[data-scrivito-field-type="html"]'),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.HtmlFieldElement=e,scrivito.cms_element.definitions.push(e)}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(41),s=r(a);!function(){var e={};o.default.extend(scrivito,{legacy_obj:{create_instance:function(t){var n={id:function(){return t.id},obj_class:function(){return t.obj_class},model_class:function(){return s.default.find(t.obj_class)},description_for_editor:function(){return t.description_for_editor},modification:function(){return t.modification},is_new:function(){return"new"===n.modification()},is_edited:function(){return"edited"===n.modification()},is_deleted:function(){return"deleted"===n.modification()},has_children:function(){return!!t.has_children},has_conflict:function(){return!!t.has_conflict},is_binary:function(){return!!t.is_binary},last_changed:function(){return t.last_changed},parent_path:function(){return t.parent_path},details_src:function(){return"/__scrivito/page_details/"+n.id()},reload_widget:function(e){return n.enqueue_ajax("GET","objs/"+n.id()+"/widget?widget_id="+e)},enqueue_ajax:function(){var t=arguments,r=function(){return scrivito.ajaxWithErrorDialog.apply(null,t)};if("GET"===t[0])return r();var i=$.Deferred();return(e[n.id()]||$.Deferred().resolve()).always(function(){r().then(function(){i.resolve.apply(i,arguments)},function(){i.reject.apply(i,arguments)})}),e[n.id()]=i,i}};return n},clear_write_promises:function(){e={}}}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(58),s=r(a);!function(){o.default.extend(scrivito,{legacy_widget:{create_instance:function(e,t,n,r){r=r||{};var i={id:function(){return t},obj:function(){return e},widget_class_name:function(){return n},model_class:function(){return s.default.find(i.widget_class_name())},modification:function(){return r.modification},placement_modification:function(){return r.placement_modification},description_for_editor:function(){return r.description_for_editor},is_modified:function(){return!!i.modification()},is_new:function(){return"new"===i.modification()},is_edited:function(){return"edited"===i.modification()},is_deleted:function(){return"deleted"===i.modification()},is_placement_modified:function(){return!!i.placement_modification()},fetch_markup:function(e,t){var n={render_mode:e,inner_tag:t};return scrivito.ajaxWithErrorDialog("GET",o("show_widget")+"?"+$.param(n),{dataType:"html"})},reload:function(){return i.obj().reload_widget(i.id()).then(function(e){r.modification=e.modification})}},o=function(e){return"render_widget/"+i.obj().id()+"/"+e+"/"+i.id()};return i}}})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){if(e.dom_element().attr("data-scrivito-private-obj-id")){var t=e;return i.default.extend(t,{obj:function(){return scrivito.legacy_obj.create_instance({id:t.dom_element().attr("data-scrivito-private-obj-id"),description_for_editor:t.dom_element().attr("data-scrivito-private-obj-description-for-editor")})}}),t}},all:function(){return i.default.map($("[data-scrivito-private-obj-id]"),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.cms_element.definitions.push(e),scrivito.ObjElement=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(2),a=r(o),s=n(0),u=r(s),l=n(48),c=r(l),d=n(19);!function(){function e(e,t){var n={hits:[],fetchedIds:u.default.clone(t||[])};return u.default.each(e.hits,function(e){u.default.contains(n.fetchedIds,e.id)||(n.hits.push(e.serialized_obj),n.fetchedIds.push(e.id))}),n}function t(e){var t=e;return u.default.isArray(e)||(t=[e]),u.default.map(t,function(e){return[o(e),n(e)]})}function n(e){return null===e?e:u.default.isDate(e)?a.default.utc(e).toISOString():String(e)}function r(e){return u.default.map(e,function(e){var t=i(e,2),n=t[0],r=t[1];return"date"===n?(0,a.default)(r).toDate():r})}function o(e){return u.default.isDate(e)?"date":"string"}function s(e){if(e){var t={};return u.default.each(e,function(e,n){var r=(0,d.camelCase)(n);t[r]=e}),t}}scrivito.chainable_search={create_instance:function(n,i,o){function a(e,n,r,i,o){var a={field:e,operator:n,value:t(r)};return o&&(a.negate=!0),i&&(a.boost=i),f.predicates.push(a),h}function l(e,t){var n={query:JSON.stringify(e),query_action:t};return i&&(n.continuation=i),scrivito.ajaxWithErrorDialog("GET","objs/search?"+$.param(n))}var f=n||{predicates:[]},p=o||[],h={query:function(){return f},and:function(e,t,n,r){if(u.default.isString(e))a(e,t,n,r);else{var i=e.query().predicates;f.predicates=f.predicates.concat(i)}return h},and_not:function(e,t,n){return a(e,t,n,void 0,!0),h},offset:function(e){return f.offset=e,h},order:function(e){return u.default.isString(e)?f.order=[e,"asc"]:f.order=u.default.first(u.default.pairs(e)),h},reverse_order:function(){if(f.order)return f.order[1]="asc"===f.order[1]?"desc":"asc",h;$.error("A search order has to be specified before reverse_order can be applied.")},batch_size:function(e){return f.batch_size=e,h},format:function(e){return f.format=e,h},include_deleted:function(){return f.include_deleted=!0,h},facet:function(e,t){var n=$.param({query:JSON.stringify(f),facet:JSON.stringify({attribute:e,options:t||{}})});return scrivito.ajaxWithErrorDialog("GET","objs/search?"+n)},load_batch:function(){var t=void 0;return l(f).then(function(n){var r=n.total,i=n.continuation,o=e(n,p);i?t=scrivito.chainable_search.create_instance(f,i,o.fetchedIds):(r=o.fetchedIds.length,t=void 0);var a={total:r,hits:o.hits};return $.Deferred().resolve(a,t)})},size:function(){return l(f,"size").then(function(e){return $.Deferred().resolve(e.total)})},clone:function(){var e=$.extend(!0,{},f);return scrivito.chainable_search.create_instance(e)},toBasicObjSearch:function(){var e=new c.default;return u.default.each(f.predicates,function(t){var n=t.field,i=t.operator,o=t.value,a=t.negate,u=t.boost,l=r(o),c=(0,d.camelCase)(n),f=s(u),p=(0,d.camelCase)(i);a?e.andNot(c,p,l):e.and(c,p,l,f)}),e}};return h}}}(),function(){scrivito.obj_where=function(e,t,n,r){return scrivito.chainable_search.create_instance().and(e,t,n,r)}}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e=["enum","float","integer","link","linklist","multienum","reference","referencelist","stringlist"],t={createInstance:function(t){if(i.default.include(e,t.dom_element().attr("data-scrivito-field-type")))return scrivito.cms_field_element.createInstance(t)}};scrivito.cms_element.definitions.push(t),scrivito.StandardFieldElement=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={createInstance:function(e){if("string"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return i.default.extend(t,{content:function(){var e=t.dom_element().text();return $.trim(e)}}),t}},all:function(){return i.default.map($('[data-scrivito-field-type="string"]'),function(e){return scrivito.cms_element.from_dom_element($(e))})}};scrivito.cms_element.definitions.push(e),scrivito.StringFieldElement=e}()},function(e,t,n){"use strict";var r=n(5);!function(){function e(){return r.uiState.subState("uiWarning")}var t={notify:function(){e().set(!0)},isPresent:function(){return!!e().get()},clear:function(){e().clear()}};scrivito.UiWarning=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){scrivito.widgetElement={createPlaceholder:function(e,t){var n=scrivito.Template.render("widget_element_placeholder",{tag:e,widget:{id:t.id(),objClass:t.objClass()}});return scrivito.cms_element.from_dom_element($(n))},isWidgetElement:function(e){return e.is("[data-scrivito-private-widget-id]")},createInstance:function(e){if(scrivito.widgetElement.isWidgetElement(e.dom_element())){var t=e;return i.default.extend(t,{widget:function(){var e=t.dom_element();return scrivito.legacy_widget.create_instance(t.widgetField().obj(),e.attr("data-scrivito-private-widget-id"),e.attr("data-scrivito-widget-obj-class"),{modification:e.attr("data-scrivito-private-widget-modification"),placement_modification:e.attr("data-scrivito-private-widget-placement-modification"),description_for_editor:e.attr("data-scrivito-private-widget-description-for-editor")})},widgetField:function(){return scrivito.cms_element.from_dom_element(t.dom_element().parent())},fetchMarkup:function(){var e=t.widgetField().renderMode(),n=t.widgetField().innerTag();return t.widget().fetch_markup(e,n)},fieldName:function(){return t.widgetField().field_name()},hasWidgetlist:function(){return!!t.dom_element().find("[data-scrivito-field-type=widgetlist]").length},widgetId:function(){return t.dom_element().attr("data-scrivito-private-widget-id")},basicWidget:function(){return t.widgetField().basic_obj().widget(t.widgetId())},materialize:function(){scrivito.ElementOverlay.create(t.dom_element()),t.basicWidget().finishSaving().then(function(){return t.fetchMarkup()}).then(function(e){var n=$(e);t.dom_element().replaceWith(n),scrivito.Gui.newContent(n),scrivito.ensure_fully_visible_within_window(n)})}}),t}},all:function(e){return scrivito.cms_element.all("[data-scrivito-private-widget-id]",e)}},scrivito.cms_element.definitions.push(scrivito.widgetElement)}()},function(e,t,n){"use strict";function r(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 i(e){return e&&e.__esModule?e:{default:e}}var o=n(1036),a=i(o),s=n(467),u=r(s),l=n(468),c=r(l),d=n(0),f=i(d);!function(){var e={all:function(e){return scrivito.cms_element.all('[data-scrivito-field-type="widgetlist"]',e)},createInstance:function(e){if("widgetlist"===e.dom_element().attr("data-scrivito-field-type")){var t=scrivito.cms_field_element.createInstance(e);return f.default.extend(t,{save:function(){scrivito.warn('save() on a "widgetlist" is not supported!')},content:function(){return f.default.map(t.widgetElements(),function(e){return e.widget().id()})},widgetElements:function(){return f.default.map(t.dom_element().children(),function(e){var t=$(e);if(t.is("[data-scrivito-private-widget-id]"))return scrivito.cms_element.from_dom_element(t);scrivito.throw_error("Scrivito found a widget with invalid markup",{params:[e],description:scrivito.t("widgetlist_field_element.markup_error")})})},isEmpty:function(){return 0===t.widgetElements().length},basicField:function(){return t.container().field(t.attr_name(),"widgetlist")},renderMode:function(){return t.dom_element().attr("data-scrivito-private-field-widget-render-mode")},innerTag:function(){return t.dom_element().attr("data-scrivito-private-field-widget-inner-tag")},refresh:function(){var e=this,n=t.container().get(t.attr_name(),["widgetlist"]),r=f.default.invoke(t.widgetElements(),"widgetId"),i=n.map(function(e){return e.id()}),o=(0,a.default)(r,i);f.default.each(o,function(t){"insert"===t.operation?e._insertWidgetElement(t.item,t.before[0]):"delete"===t.operation&&e._removeWidgetElement(t.item)}),u.update(t),c.update(t)},_removeWidgetElement:function(e){t._widgetElementWithId(e).dom_element().remove()},_insertWidgetElement:function(e,n){var r=t.basic_obj().widget(e),i=scrivito.widgetElement.createPlaceholder(t.innerTag(),r);t._insertIntoDom(i.dom_element(),n),i.materialize()},_insertIntoDom:function(e,n){if(n){t._widgetElementWithId(n).dom_element().before(e)}else t.dom_element().append(e)},_widgetElementWithId:function(e){var n="[data-scrivito-private-widget-id="+e+"]",r=t.dom_element().children(n);if(0!==r.length)return scrivito.cms_element.from_dom_element(r)}}),t}}};scrivito.cms_element.definitions.push(e),scrivito.WidgetlistFieldElement=e}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n=f(e,t),r=f(t,e);return o(t,n,u(f(e,n),f(t,r)),r)}function o(e,t,n,r){function i(){u.shift()}var o=d.default.map(t,function(e){return a("delete",e)}),u=n.concat(r);return d.default.each(n,function(t){o.push(s("move",t,e,u)),i()}),d.default.each(r,function(t){o.push(s("insert",t,e,u)),i()}),o}function a(e,t){return{item:t,operation:e}}function s(e,t,n,r){var i=n.indexOf(t);return{item:t,operation:e,after:f(n.slice(0,i),r),before:f(n.slice(i+1),r)}}function u(e,t){var n=l(e,t);return n?[n].concat(r(u(f(e,[n]),f(t,[n])))):[]}function l(e,t){if(0!==e.length){var n=d.default.map(e,function(n){return{item:n,distance:Math.abs(t.indexOf(n)-e.indexOf(n))}}),r=d.default.max(n,function(e){return e.distance});return r.distance>0?r.item:void 0}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var c=n(0),d=function(e){return e&&e.__esModule?e:{default:e}}(c),f=d.default.difference},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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||"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);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)}var u=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=n(77),c=i(l),d=n(128),f=i(d),p=n(0),h=r(p),_=n(1),m=n(59),v=r(m);!function(){function e(e){return new scrivito.Promise(function(t){if(e.current._conflicts)throw new k(e._id,"conflict");t()})}function t(e,t){var n=e._id;return y(n,t).then(function(e){if(e&&e._modification)throw new k(n,"modified")})}function n(e,t){var n=e._id,i=v.default.selected.id;return scrivito.Promise.all([b(n,i),b(n,t)]).then(function(e){var t=u(e,2),i=t[0],o=t[1];if(i&&o&&!r(i,o))throw new k(n,"conflict")})}function r(e,t){var n=c.diff(i(e),i(t));return h.default.isEmpty(n)}function i(e){return h.default.pick(e,function(e,t){return"_"!==t[0]||h.default.contains(["_path","_permalink","_obj_class"],t)})}function l(e,t){switch(e.current._modification){case"new":return d(e,t);case"deleted":return p(e,t);default:return m(e,t)}}function d(e,t){return g(e._id,t,e.current).then(function(){return e.update({_marked_deleted:!0}),e.finishSaving()})}function p(e,t){return g(e._id,t,{_marked_deleted:!0}).then(function(){return f.restoreObj(e)})}function m(e,t){var n=e._id;return y(n,t).then(function(r){var i=c.diff(r,e.current);return g(n,t,i).then(function(){return f.revertObj(e)})})}function g(e,t,n){return scrivito.CmsRestApi.put("workspaces/"+t+"/objs/"+e,{obj:n})}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"objs";return scrivito.CmsRestApi.get("workspaces/"+t+"/"+n+"/mget",{ids:[e]}).then(function(e){return u(e.results,1)[0]})}function b(e,t){return y(e,t,"base_objs")}var w={transferObjs:function(e,t){var n=this;return scrivito.Promise.all(h.default.map(e,function(e){return n.transferObj(e,t).catch(function(e){if(e instanceof k)return e;throw e})})).then(function(e){return h.default.filter(e,function(e){return e instanceof k})})},transferObj:function(r,i){return scrivito.Promise.all([e(r),t(r,i),n(r,i)]).then(function(){return l(r,i)})}},k=function(e){function t(e,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.objId=e,r.reason=n,r}return s(t,e),t}(_.ScrivitoError);scrivito.ModificationTransfer=w,scrivito.ModificationTransferError=k}()},function(e,t,n){"use strict";var r=n(1);!function(){var e="obj_clipboard";scrivito.objClipboard={save:function(t){var n=scrivito.editingContext.selectedWorkspaceId,r=t.serializeAttributes();scrivito.storage.set(e,{workspaceId:n,serializedAttributes:r})},isPresent:function(){return scrivito.storage.hasKey(e)},get serializedAttributes(){return this._clipboard.serializedAttributes},get objClass(){return this.serializedAttributes._obj_class},get objId(){return this.serializedAttributes._id},get workspaceId(){return this._clipboard.workspaceId},clear:function(){scrivito.storage.remove(e)},get _clipboard(){if(!this.isPresent())throw new r.InternalError("Obj clipboard is empty");return scrivito.storage.get(e)}}}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(){return scrivito.storage.get(t.storageKey)||[]}var t={get storageKey(){return"obj_class_selection.used_classes"},store:function(t){var n=e();n.unshift(t),n=i.default.uniq(n),n=i.default.take(n,200),scrivito.storage.set(this.storageKey,n)},recent:function(t){var n=i.default.intersection(e(),t);return i.default.take(n,5)}};scrivito.ObjCreationHistory=t}()},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i);!function(){o.default.extend(scrivito,{oncePerFrame:function(e){var t=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=t;t=i,a||scrivito.requestAnimationFrame(function(){e.apply(void 0,r(t)),t=!1})}},requestAnimationFrame:function(e){window.requestAnimationFrame(e)}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(33),o=r(i),a=n(0),s=r(a);!function(){function e(e){scrivito.toLegacyObj(e).then(function(e){if(e.is_binary()&&(e.is_edited()||e.is_new()))return scrivito.resourceDialog.open(e);var t=void 0,n={};if(e.is_binary())t="/__scrivito/resource_details/"+e.id(),n.return_to=document.URL;else{var r=(0,o.default)(scrivito.path_for_id(e.id()));r.path(""+scrivito.root_path()+r),t=r.normalizePath().toString()}return e.is_deleted()&&(n._scrivito_display_mode="diff"),s.default.isEmpty(n)||(t+="?"+$.param(n)),scrivito.withSavingOverlay(scrivito.redirect_to(t))})}scrivito.openObj=e}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(1);!function(){var e="devices.current",t={},n={get all(){return["mobile","tablet","laptop","desktop"]},get current(){return scrivito.storage.get(e)||"desktop"},set current(n){if(!i.default.contains(this.all,n))throw new o.InternalError('Unknown device "'+n+'"');scrivito.storage.set(e,n),i.default.map(t,function(e){return e(n)})},subscribeChange:function(e){var n=i.default.uniqueId("scrivito.devices.token");return t[n]=e,n},unsubscribeChange:function(e){delete t[e]},reset:function(){t={},scrivito.storage.remove(e)}};scrivito.PreviewDevice=n,scrivito.PreviewDevice.STORAGE_KEY=e}()},function(e,t,n){"use strict";var r=n(31);!function(){function e(e,t){var n=t.get(0);return o&&a.push(n),(0,r.render)(e,n)}function t(){o=!0}function n(){a.forEach(i),a=[]}function i(e){e&&(0,r.unmountComponentAtNode)(e)}var o=!1,a=[];scrivito.renderReactComponent=e,scrivito.trackRenderedComponents=t,scrivito.unmountAllComponents=n}()},function(e,t,n){"use strict";!function(){function e(e){var r=e.openSidebar,i=e.closeSidebar,o=new scrivito.Fsm("sidebar",{events:["open","close","mouseOver","willOpenTimeout","openTransitionFinished","mouseLeave","willCloseTimeout","closeTransitionFinished","hide","unhideAndClose","unhideAndDisable"],initialState:"isClosed",states:{isClosed:{open:{transitionTo:"isOpening",execute:["openSidebar"]},mouseOver:{transitionTo:"willOpen",execute:["setWillOpenTimeout"]}},willOpen:{open:{transitionTo:"isOpening",execute:["clearWillOpenTimeout","openSidebar"]},willOpenTimeout:{transitionTo:"isOpening",execute:["openSidebar"]},mouseLeave:{transitionTo:"isClosed",execute:["clearWillOpenTimeout"]}},isOpening:{openTransitionFinished:{transitionTo:"isOpen"}},isOpen:{mouseLeave:{transitionTo:"willClose",execute:["setWillCloseTimeout"]},close:{transitionTo:"isDisabled",execute:["closeSidebar"]}},willClose:{willCloseTimeout:{transitionTo:"isClosing",execute:["closeSidebar"]},mouseOver:{transitionTo:"isOpen",execute:["clearWillCloseTimeout"]}},isClosing:{closeTransitionFinished:{transitionTo:"isClosed"}},isDisabled:{open:{transitionTo:"isOpening",execute:["openSidebar"]}},isHidden:{unhideAndClose:{transitionTo:"isClosed"},unhideAndDisable:{transitionTo:"isDisabled"}}},superStateEvents:{hide:{transitionTo:"isHidden",execute:["closeSidebar"]}},actions:{openSidebar:r,closeSidebar:i,setWillOpenTimeout:function(){o._willOpenTimeout=setTimeout(function(){return o.triggerEvent("willOpenTimeout")},t)},setWillCloseTimeout:function(){o._willCloseTimeout=setTimeout(function(){return o.triggerEvent("willCloseTimeout")},n)},clearWillOpenTimeout:function(){o._willOpenTimeout&&clearTimeout(o._willOpenTimeout)},clearWillCloseTimeout:function(){o._willCloseTimeout&&clearTimeout(o._willCloseTimeout)}}});return o}var t=500,n=500;scrivito.sidebarFsm=e,scrivito.sidebarFsm.OPEN_TIMEOUT=t,scrivito.sidebarFsm.CLOSE_TIMEOUT=n}()},function(e,t,n){"use strict";!function(){function e(e){return t+"."+e}var t="scrivito.v1";scrivito.storage={set:function(t,n){localStorage.setItem(e(t),JSON.stringify(n))},get:function(t){return JSON.parse(localStorage.getItem(e(t)))},hasKey:function(e){return!!this.get(e)},remove:function(t){localStorage.removeItem(e(t))}}}()},function(e,t,n){"use strict";var r=n(40),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={get loadTemplatesFromServer(){return!1},render:function(e,t){var n=void 0;return window.ScrivitoHandlebarsTemplates&&(n=ScrivitoHandlebarsTemplates[e]),window.__hbs__&&__hbs__[e]&&(n=Handlebars.compile(__hbs__[e])),n||$.error("Could not load template: "+e),n(t)}};Handlebars.registerHelper("translate",function(){return i.default.translate(arguments.length<=0?void 0:arguments[0])}),Handlebars.registerHelper("localizeDate",function(e){return i.default.localizeDate(e())}),Handlebars.registerHelper("localizeDateRelative",function(e){return i.default.localizeDateRelative(e())}),Handlebars.registerHelper("array_to_title",function(e){var t=e().map(function(e){return Handlebars.Utils.escapeExpression(e)});return new Handlebars.SafeString(t.join("&#13;"))}),Handlebars.registerHelper("render",function(t,n){return new Handlebars.SafeString(e.render(t,n))}),scrivito.Template=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(63),s=n(8),u=r(s),l=n(219),c=r(l);!function(){function e(e){return scrivito.Promise.all(o.default.map(e,t))}function t(e){return(0,u.default)(function(){return(0,a.titleForObj)(e)}).then(function(){return scrivito.legacy_obj.create_instance({id:e.id(),obj_class:e.objClass(),description_for_editor:(0,a.titleForObj)(e),modification:e.modification(),is_binary:(0,c.default)(e),last_changed:e.lastChanged(),has_conflict:e.hasConflicts()})})}scrivito.toLegacyObjs=e,scrivito.toLegacyObj=t}()},function(e,t,n){"use strict";var r=n(36),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e=!1,t={get isImmediateMode(){return e},set immediateMode(t){e=!!t},wrap:function(e,t){var n=this;return new scrivito.Promise(function(r){n.isImmediateMode?(t(),r()):(e.on("webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd",function(){return r()}),(0,i.default)(t))})}};scrivito.Transition=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{child_list_marker:{init:function(){scrivito.inplace_marker.define(function(e,t){scrivito.editingContext.isEditingMode()&&i.default.each(scrivito.childListElement.all(t),function(t){var n=scrivito.t("child_list_menu.description",t.obj().description_for_editor());e.activate_for(t,{description:n})})})}}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(15),o=r(i),a=n(0),s=r(a);!function(){s.default.extend(scrivito,{confirmation_dialog:function(e){return scrivito.confirmation_dialog.open(e)}}),s.default.extend(scrivito.confirmation_dialog,{open:function(e){var t=$(scrivito.Template.render("confirmation_dialog",s.default.extend({icon:"&#xf01d;",cancel_button_text:scrivito.t("cancel"),confirm_button_text:scrivito.t("confirm")},e||{})));$("#scrivito_editing").append(t);var n=new o.default,r=function(){return scrivito.dialog.close_with_transition(t),n.resolve(),!1},i=function(){return scrivito.dialog.close_with_transition(t),n.reject(),!1};return t.find(".scrivito_confirm").on("click",r),t.find(".scrivito_cancel").on("click",i),scrivito.dialog.open_and_center_with_transition(t),scrivito.withDialogBehaviour(t,n.promise,{enter:r,escape:i})},remove_all:function(){$(".scrivito_confirmation_dialog").remove()}})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e,t,i){var c=i.when_closed,d=void 0;i.mousePosition&&(d=u(e,i.mousePosition)),l=n(t),r(t,c),o(e,d),a(c),s(e,i.css_class)}function t(e){return l.remove(),l=null,e&&e(),!1}function n(e){return $(scrivito.Template.render("menu",{menu_items:i.default.map(scrivito.pattern_sort(e,scrivito.menu_order),function(e){return scrivito.menu_item.create_instance(e)})}))}function r(e,n){i.default.each(e,function(e){e.domId&&l.on("click","."+e.domId(),function(){return e.isEnabled()&&t(n),e.execute(),!1})})}function o(e,t){l.update_position=function(){var n=scrivito.CmsDocument.offset(e);t&&(n.left+=t.x*e.width(),n.top+=t.y*e.height()),l.offset(n)},t&&l.addClass("scrivito_precise_offset")}function a(e){l.find(".scrivito_menu_box_overlay").on("click",function(){return t(e),!1})}function s(e,t){var n=l.find(".scrivito_menu_box");t&&n.addClass("scrivito_"+t),l.appendTo($("#scrivito_editing")),l.update_position();var r=$(".iframe_wrapper"),i=e.offset().left-r.scrollLeft();r.width()-i<n.width()&&n.addClass("scrivito_left");var o=$(scrivito.applicationWindow.browserWindow()),a=n.height()+25,s=e.offset().top-o.scrollTop();a>o.height()-s&&a<s&&n.addClass("scrivito_top"),n.fadeIn(500)}function u(e,t){var n=t.x,r=t.y,i=e.offset(),o=n-i.left,a=r-i.top;return{x:o/e.width(),y:a/e.height()}}var l=void 0,c={init:function(){scrivito.Gui.on("document",function(e){var t=$(e.browserWindow());i.default.each(["resize","scroll","load"],function(e){t.on(e,function(){return scrivito.context_menu.update_position()})})})},toggle:function(n,r,i){l?t():e(n,r,i||{})},update_position:function(){l&&l.update_position()},close:function(){l&&t()}};scrivito.context_menu=c}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(15),o=r(i),a=n(0),s=r(a);!function(){s.default.extend(scrivito,{current_page_link_dialog:function(){var e=scrivito.editingContext.selectedWorkspaceId,t=scrivito.editingContext.uriWithEditingContextParams({workspaceId:e,displayMode:"view"}),n=$(scrivito.Template.render("current_page_link_dialog",{current_page_link:t})),r=new o.default;$("#scrivito_editing").append(n),n.find("input").focus().select();var i=function(){return scrivito.dialog.close_with_transition(n),r.resolve(),!1};n.find(".scrivito_done").on("click",i),scrivito.dialog.open_and_adjust_with_transition(n),scrivito.withDialogBehaviour(n,r.promise,{enter:i,escape:i})}})}()},function(e,t,n){"use strict";function r(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 i(e){return e&&e.__esModule?e:{default:e}}var o=n(15),a=i(o),s=n(1054),u=r(s),l=n(1055),c=r(l),d=n(0),f=i(d);!function(){f.default.extend(scrivito,{details_dialog:{open:function(e,t,n,r){var i=new a.default,o=$(scrivito.Template.render("details_dialog",{src:e,title:t,obj:n}));n&&c.create(o.find(".scrivito_obj_menu"),n,r),$("#details_dialog").append(o);var s=u.create(o.find(".scrivito_saving_indicator")),l=o.find(".scrivito_modal_body .scrivito_spinning"),d=o.find("iframe");d.on("load",function(){d.contents().find("body").hasClass("scrivito_dialog")&&!d.contents().get(0).defaultView.scrivito&&scrivito.AlertDialog.open('Missing required Scrivito assets in the details dialog. Are you sure your "scrivito_dialog.html.*" sources the Scrivito assets?'),l.hide();var e=d.contents().find("[data-scrivito-modal-size]").attr("data-scrivito-modal-size");f.default.contains(["small","medium","large"],e)&&(o.removeClass("scrivito_modal_medium"),o.addClass("scrivito_modal_"+e)),scrivito.dialog.adjust(o)});var p=function(){return s.destroy(),scrivito.dialog.close_without_transition(o),i.resolve(),!1};return o.find(".scrivito_cancel").on("click",p),scrivito.dialog.open_and_adjust_without_transition(o),scrivito.withDialogBehaviour(o,i.promise,{escape:p})}}})}()},function(e,t,n){"use strict";function r(e){var t=i+" .scrivito_saving_in_progress",n=i+" .scrivito_saving_done";e.append(scrivito.Template.render("saving_indicator"));var r=scrivito.WriteMonitor.on("start_write",function(){e.find(t).show(),e.find(n).hide()}),o=scrivito.WriteMonitor.on("end_write",function(r){if(!scrivito.WriteMonitor.isWriting()&&(e.find(t).hide(),!r)){var i=e.find(n);i.show(),scrivito.Transition.isImmediateMode||setTimeout(function(){return i.fadeOut(1e3)},3e3)}});return{destroy:function(){scrivito.WriteMonitor.off(r),scrivito.WriteMonitor.off(o),e.find(i).remove()},startWriteToken:r,endWriteToken:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.create=r;var i=".scrivito_saving_indicator"},function(e,t,n){"use strict";function r(e,t,n){e.append(scrivito.Template.render("obj_menu",{obj:t})),e.on("click",function(){e.addClass("active");var t=o.default.isFunction(n)?n():n;return scrivito.context_menu.toggle(e,t,{css_class:"obj_menu",when_closed:function(){return e.removeClass("active")}}),!1})}Object.defineProperty(t,"__esModule",{value:!0}),t.create=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";var r=n(217),i=function(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}(r),o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o);!function(){a.default.extend(scrivito,{dialog:{open_without_transition:function(e){e.addClass("scrivito_show")},open_and_adjust_without_transition:function(e){scrivito.dialog.open_without_transition(e),scrivito.dialog.adjust(e)},open_with_transition:function(e){return scrivito.Transition.wrap(e,function(){scrivito.dialog.open_without_transition(e)})},open_and_adjust_with_transition:function(e){return scrivito.dialog.open_with_transition(e).then(function(){scrivito.dialog.adjust(e)})},open_and_center_with_transition:function(e){return scrivito.dialog.open_with_transition(e).then(function(){scrivito.center(e)})},close_with_transition:function(e){scrivito.Transition.wrap(e,function(){e.removeClass("scrivito_show")}).then(function(){e.remove()})},close_without_transition:function(e){e.removeClass("scrivito_show"),e.remove()},adjust:function(e){i.invalidateAutoHeightFor(e),i.updateAutoHeightFor(e)}}}),$(window).on("resize",function(){a.default.each($(".adjust_dialog"),function(e){scrivito.dialog.adjust($(e))}),a.default.each($(".scrivito_center_dialog"),function(e){scrivito.center($(e))})})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{withDialogBehaviour:function(e,t,n){return scrivito.withDialogOverlay(e,scrivito.hotkeys.add(t,n))}})}()},function(e,t,n){"use strict";var r=n(106),i=function(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}(r);!function(){function e(e,t){var n=scrivito.dialogOverlay.create(e);return i.finally(t,function(){scrivito.dialogOverlay.destroy(n)})}var t={create:function(e){var t=$(".scrivito_overlay").last();t.removeClass("scrivito_show");var n=$(scrivito.Template.render("overlay"));return e.before(n),scrivito.Transition.wrap(n,function(){n.addClass("scrivito_show")}),{overlay:n,predecessor:t}},destroy:function(e){var t=e.overlay,n=e.predecessor;scrivito.Transition.wrap(t,function(){t.removeClass("scrivito_show")}).then(function(){t.remove(),n.length&&n.addClass("scrivito_show")})},removeAll:function(){$(".scrivito_overlay").remove()}};scrivito.withDialogOverlay=e,scrivito.dialogOverlay=t}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(1060),o=r(i),a=n(1061),s=r(a),u=n(0),l=r(u);!function(){function e(e,t,n){var r=t.left+e.outerWidth(),i=n.left,o=(i-r)/2,a=r+o,s=t.top+e.outerHeight();return{left:a,top:s+(n.top-s)/2}}var t=void 0,n={},r={init:function(){t=$('<div class="scrivito_dnd_cursor"></div>'),t.hide(),$("body").append(t),scrivito.Gui.on("document",function(e){if(scrivito.in_editable_view()){var t=e.dom_element().find("body");t.on("dragover",function(e){return scrivito.dragDrool.onDragover(e,t)}),t.on("drop",function(e){return scrivito.dragDrool.onDrop(e)})}})},onDragstart:function(e,t){var n=new s.default(e,t);this.setState({widgetDrag:n})},onDragover:function(e,t){if(n.widgetDrag){e.originalEvent.dataTransfer.dropEffect="move",e.preventDefault&&e.preventDefault();var r={x:e.originalEvent.pageX,y:e.originalEvent.pageY};this._updateCursorDebounced(r,t)}},onDrop:function(e){var t=n.widgetDrag;if(!t)return!1;var r=this._dropZone();return r&&t.canDropInto(r)&&t.dropInto(r,n.gesture.edgeName),this._cleanup(),!1},onDragend:function(){this._cleanup()},showRowCursor:function(){var r=n.widgetDrag,i=n.gesture.target,o=n.gesture.edgeName;t.height("0px"),t.width(i.parent().outerWidth());var a=scrivito.CmsDocument.offset(i);if("top"===o){var s=i.prev();if(s.length){var u=scrivito.CmsDocument.offset(s);a.top=e(s,u,a).top}}else{var l=i.next();if(l.length){var c=scrivito.CmsDocument.offset(l);a.top=e(i,a,c).top}else a.top+=i.outerHeight()}a.left=scrivito.CmsDocument.offset(i.parent()).left,t.offset(a),this._showCursor(i,r)},get state(){return n},setState:function(e){n=l.default.extend(n,e)},reset:function(){t&&t.remove(),n={}},_updateCursorDebounced:scrivito.oncePerFrame(function(){var e;(e=scrivito.dragDrool)._updateCursor.apply(e,arguments)}),_updateCursor:function(e,t){if(n.widgetDrag){var r=(0,o.default)(e,t);if(!$(r.target).length)return void scrivito.logError("Missing target!");var i=r.edgeName;scrivito.dragDrool.setState({gesture:r}),"top"===i||"bottom"===i?scrivito.dragDrool.showRowCursor():"left"===i||"right"===i||$.error("Unknown gesture: "+r)}},_cleanup:function(){t.hide(),this.setState({widgetDrag:null})},_dropZone:function(){if(n.gesture&&n.gesture.target)return n.gesture.target.get(0).scrivitoPrivateDropzone()},_showCursor:function(e,n){n.canDropInto(this._dropZone())?t.removeClass("scrivito_dnd_forbidden"):t.addClass("scrivito_dnd_forbidden"),n.isStructureWidget()?t.addClass("scrivito_dnd_structure"):t.removeClass("scrivito_dnd_structure"),e.hasClass("scrivito_empty_widget_field")&&t.height(e.height()),t.show()}};scrivito.dragDrool=r}()},function(e,t,n){"use strict";function r(e,t){var n=l(e,t),r=h(p(a.default.map(n,u))),i=[];a.default.each(n,function(e,t){var n=r[t];n&&(i=i.concat(g(e,n)))});var o=a.default.min(i,function(t){return f(e,t.rectangle)});return{target:o.target,edgeName:o.name}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=r;var o=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=["top","bottom","right","left"],u=function(e){var t=$(e),n=t.offset(),r=t.outerHeight();return{x1:n.left,y1:n.top,x2:n.left+t.outerWidth(),y2:n.top+r}},l=function e(t,n){var r=c(n),i=d(t,r);return i?$(i).is("[data-scrivito-private-dropback]")?[i]:[i].concat(e(t,i)):[]},c=function(e){var t=$(e),n=t.find("[data-scrivito-private-dropzone]");return a.default.reject(n,function(e){var n=$(e).parent().closest("[data-scrivito-private-dropzone]").get(0);return n&&$.contains(t.get(0),n)})},d=function(e,t){if(t.length){var n=void 0,r=void 0;return a.default.each(t,function(t){if(n){var o=f(e,u(t));if(o<r)n=t,r=o;else if(o===r){var s=i([[n,r],[t,o]][a.default.random(1)],2);n=s[0],r=s[1]}}else n=t,r=f(e,u(t))}),n}},f=function(e,t){var n=Math.max(Math.min(e.x,t.x2),t.x1),r=Math.max(Math.min(e.y,t.y2),t.y1),i=e.x-n,o=e.y-r;return Math.sqrt(i*i+o*o)},p=function(e){var t=[],n=e[0];return 0===b(n)?[n]:(a.default.each(e,function(e){if(n=m(n,e),!(b(n)>0))return t;t.push(e)}),t)},h=function(e){var t=e[e.length-1];return a.default.each(e,function(e){t=m(t,e)}),_(v(t),e)},_=function e(t,n){var r=n[0],i=n[1];if(!i)return n;var o=(t.x-r.x1)/n.length,a=(t.y-r.y1)/n.length,s=(r.x2-t.x)/n.length,u=(r.y2-t.y)/n.length,l={x1:r.x1+Math.min(20,o),y1:r.y1+Math.min(20,a),x2:r.x2-Math.min(20,s),y2:r.y2-Math.min(20,u)};return[r].concat(e(t,[m(i,l)].concat(n.slice(2))))},m=function(e,t){return{x1:Math.min(t.x2,Math.max(t.x1,e.x1)),y1:Math.min(t.y2,Math.max(t.y1,e.y1)),x2:Math.min(t.x2,Math.max(t.x1,e.x2)),y2:Math.min(t.y2,Math.max(t.y1,e.y2))}},v=function(e){return{x:(e.x1+e.x2)/2,y:(e.y1+e.y2)/2}},g=function(e,t){var n=y(t),r=e.scrivitoPrivateDropzone().edges();a.default.each(a.default.difference(s,r),function(e){delete n[e]});var i=$(e);return a.default.map(n,function(e,t){return{rectangle:e,target:i,name:t}})},y=function(e){return{left:{x1:e.x1,y1:e.y1,x2:e.x1,y2:e.y2},right:{x1:e.x2,y1:e.y1,x2:e.x2,y2:e.y2},top:{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y1},bottom:{x1:e.x1,y1:e.y2,x2:e.x2,y2:e.y2}}},b=function(e){return(e.x2-e.x1)*(e.y2-e.y1)}},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1062),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=function(){function e(t,n){r(this,e),this._widget=t,this._domElement=n}return i(e,[{key:"canDropInto",value:function(e){return e.canDrop(this._widget.objClass())}},{key:"isStructureWidget",value:function(){return(0,a.default)(this._widget.objClass())}},{key:"dropInto",value:function(e,t){e.drop(this._widget,t,this._domElement)}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=u.default.find(e);return!!t&&a.default.some(t.attributes,function(e){return"widgetlist"===e.type})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(0),a=r(o),s=n(58),u=r(s)},function(e,t,n){"use strict";!function(){var e=void 0;scrivito.dragScroll={SENSIVITY:30,SPEED:25,init:function(){var t=this;e=$("body").offset().top,scrivito.Gui.on("document",function(e){var n=e.dom_element();n.find("body").on("dragover",function(e){return t.dragover(e,n)})})},dragover:function(t,n){var r=t.originalEvent.pageY,i=n.scrollTop();if(r-i<this.SENSIVITY)return void n.scrollTop(i-this.SPEED);$(window).height()-r+i-e<this.SENSIVITY&&n.scrollTop(i+this.SPEED)}}}()},function(e,t,n){"use strict";var r=n(106),i=function(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}(r);!function(){function e(e,n){var r=t.create(e);return i.finally(n,function(){return r.remove()})}var t={create:function(e){var t=e.position(),n=$(scrivito.Template.render("element_overlay")).css({position:"absolute",top:0,left:t.left,width:e.width(),height:e.height()});return e.append(n),n}};scrivito.withElementOverlay=e,scrivito.ElementOverlay=t}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e,t){if(e.protocol===window.location.protocol&&e.host===window.location.host){if(!t)return"_self"}else if(""===t||"_self"===t||"_parent"===t||/^scrivito/.test(t))return"_top";return t}i.default.extend(scrivito,{external_links:{init:function(){scrivito.Gui.on("document",function(e){var t=e.dom_element(),n=t.find("head > base");n.length||(n=$("<base>"),t.find("head").prepend(n)),n.attr("target","_top")}),scrivito.on("content",function(t){var n=$(t);i.default.each(n.find("a").not('[data-scrivito-display-mode="editing"] [data-scrivito-field-type="html"] a'),function(t){var n=$(t),r=e(t,n.attr("target"));n.attr("target",r)}),i.default.each(n.find("form").not('[data-scrivito-display-mode="editing"] [data-scrivito-field-type="html"] form'),function(t){var n=$(t),r=document.createElement("a");r.href=t.action;var i=e(r,n.attr("target"));n.attr("target",i)})})}}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(3),a=r(o),s=n(35),u=r(s),l=n(0),c=r(l),d=n(19),f=n(24),p=r(f),h=n(518);!function(){function e(e,i,o){return new scrivito.Promise(function(a){switch(e){case"binary":return a(t(i,o));case"link":return a(n(o));case"linklist":return a(r(o));case"reference":return a((0,h.createBinaryWithDefaults)(o))}})}function t(e,t){var n=e instanceof a.default?e:e.obj();return p.default.upload(t).intoId(n.id())}function n(e){return(0,h.createBinaryWithDefaults)(e).then(function(e){return new u.default({obj:e})})}function r(e){return(0,h.createBinaryWithDefaults)(e).then(function(e){return[new u.default({obj:e})]})}scrivito.fileDrop={init:function(){var e=this;scrivito.on("content",function(t){scrivito.in_editable_view()&&c.default.each($(t).find("\n [data-scrivito-field-type=binary],\n img[data-scrivito-field-type=link],\n img[data-scrivito-field-type=linklist],\n img[data-scrivito-field-type=reference]\n "),function(t){var n=$(t);n.on("dragenter",function(){return e.onDragenter(n),!1}),n.on("dragleave",function(){return e.onDragleave(n),!1}),n.on("drop",function(t){return e.onDrop(n,t.originalEvent.dataTransfer),!1})})})},onDragenter:function(e){e.addClass("scrivito_file_dragover");var t=e.data("scrivito-dragenter-counter")||0;t+=1,e.data("scrivito-dragenter-counter",t)},onDragleave:function(e){var t=e.data("scrivito-dragenter-counter");t-=1,e.data("scrivito-dragenter-counter",t),0===t&&e.removeClass("scrivito_file_dragover")},onDrop:function(e,t){if(t.files&&1===t.files.length){var n=scrivito.cms_element.from_dom_element(e);e.addClass("scrivito_element_overlay");var r=(0,d.camelCase)(n.field_name());this.save(n.field_type(),r,n.container(),t.files[0]).then(function(){return e.scrivito("reload")})}e.removeClass("scrivito_file_dragover")},save:function(t,n,r,o){return e(t,r,o).then(function(e){return r.update(i({},n,[e,[t]])),r.finishSaving()})}}}()},function(e,t,n){"use strict";var r=n(15),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e={open:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=$(e),r=void 0;n.is("[name=scrivito_application]")||(r=n.closest("#scrivito_editing > div"));var o=$(scrivito.Template.render("iframe_dialog",{color:t.color,confirm:t.confirm||scrivito.t("confirm"),cancel:t.cancel||scrivito.t("cancel"),disable_confirm:!1===t.confirm,disable_cancel:!1===t.cancel}));$("#scrivito_editing").append(o);var a=o.find(".scrivito_modal_body"),s=new i.default,u=function(){return scrivito.dialog.close_without_transition(o),s.resolve(),!1},l=function(){return scrivito.dialog.close_without_transition(o),s.reject(),!1};o.find(".scrivito_confirm").on("click",u),o.find(".scrivito_cancel").on("click",l),scrivito.withDialogBehaviour(o,s.promise,{enter:u,escape:l}),scrivito.dialog.open_and_adjust_without_transition(o),scrivito.restore_styles_afterwards(s.promise,n),n.css("z-index",this.zIndex(o)+1),r?(scrivito.restore_styles_afterwards(s.promise,r),r.addClass("scrivito_dialog_mode")):n.attr("class","");var c=function(){s.isPending()&&(n.width(a.width()),n.height(a.height()),n.offset(a.offset()))};return $(window).on("resize",c),c(),{when_open:scrivito.Promise.resolve(a),when_closed:s.promise}},zIndex:function(e){return parseInt(e.css("z-index"),10)}};scrivito.IframeDialog=e}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e=[];i.default.extend(scrivito,{inplace_marker:{init:function(){scrivito.on("content",function(e){scrivito.inplace_marker.refresh(scrivito.CmsDocument.from($(e)).dom_element())})},define:function(t){e.push(t)},refresh:function(t){scrivito.editingContext.isViewMode()||(t.find(".scrivito_editing_marker").remove(),i.default.each(e,function(e){e(a,t)}),scrivito.context_menu.update_position())},are_overlapping:function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.left<=r.right&&r.left<=n.right&&n.top<=r.bottom&&r.top<=n.bottom},reset_callbacks:function(){e=[]}}});var t=function(e){var t=$($(e).closest("body")).find(".scrivito_editing_marker").not(e),n=i.default.filter(t,function(t){return scrivito.inplace_marker.are_overlapping(e,t)});n.length&&scrivito.warn.apply(null,[scrivito.t("inplace_marker.overlapping"),e].concat(n))},n=function(e){e.addClass("scrivito_active scrivito_entered");var t=setTimeout(function(){e.removeClass("scrivito_entered")},2e3);e.data("scrivito-entered-timer",t)},r=function(e){e.find(".scrivito_active").removeClass("scrivito_active"),e.find(".scrivito_entered").removeClass("scrivito_entered").each(function(){clearTimeout($(this).data("scrivito-entered-timer"))})},o=function(e){if(!e.data("scrivito-highlightable")){e.data("scrivito-highlightable",!0);var t=scrivito.CmsDocument.from(e).dom_element();e.on("mouseenter",function(i){$(i.target).closest(":data(scrivito-highlightable)").is(e)&&(r(t),n(e))}),e.on("mouseleave",function(e){r(t);var i=$(e.relatedTarget).closest(":data(scrivito-highlightable)");i.length&&n(i)})}},a={activate_for:function(e,n){var r=$(scrivito.Template.render("inplace_marker",n||{}));r.on("click",function(){return scrivito.isDevelopmentMode&&t(r.get(0)),scrivito.context_menu.toggle(r,e.menu()),!1});var i=e.dom_element();r.prependTo(i),o(i)}}}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{menu_item:{create_instance:function(n){return n.execute?e(n):n.render?n:t(n)}}});var e=function(e){var t=e.icon(),n="menu_item/icon";0===t.indexOf("&")?n+="_hex":/^scrivito_icon_/.test(t)||(n+="_sci");var r=function(){return scrivito.Template.render("menu_item",{domId:e.domId(),title:e.title(),icon:scrivito.Template.render(n,{icon:t}),tooltip:e.tooltip(),isDisabled:e.isDisabled(),isEnabled:e.isEnabled(),reasonForBeingDisabled:e.reasonForBeingDisabled()})};return{render:function(){if(e.isPresent()){var t;if(e.needsUpdate()){var n=i.default.uniqueId(e.domId());t=scrivito.Template.render("menu_item/spinner",{id:n}),e.update().then(function(){$("#"+n).replaceWith(r())})}else t=r();return t}}}},t=function(e){return{render:function(){return scrivito.Template.render("menu_item/separator",e)}}}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(345),s=r(a);!function(){var e={init:function(){scrivito.on("content",function(e){scrivito.editingContext.isEditingMode()&&o.default.each(scrivito.widgetElement.all($(e)),function(e){scrivito.optionMarker.create(e,"top"),scrivito.optionMarker.create(e,"bottom")})})},create:function(e,t){var n=$(scrivito.Template.render("option_marker",{position:t,always_visible:scrivito.optionMarker.always_visible}));n.appendTo(e.dom_element()),n.on("click",function(){var n=e.basicWidget();return(0,s.default)(n,t),!1})}};scrivito.optionMarker=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(1072),o=r(i),a=n(1073),s=r(a),u=n(1074),l=r(u);!function(){scrivito.resourceDialog={init:function(e){if(e.obj){var t=scrivito.legacy_obj.create_instance(e.obj);scrivito.Gui.on("open",function(){scrivito.resourceDialog.open(t,e.return_to).then(function(){return scrivito.withSavingOverlay(scrivito.redirect_to(e.return_to))})})}},open:function(e,t){var n=scrivito.t("resource_dialog.title",e.description_for_editor());return scrivito.details_dialog.open(e.details_src(),n,e,[scrivito.revert_resource_command(e),(0,l.default)(e,"resource_dialog.commands.restore_obj"),(0,s.default)(e,"resource_dialog.commands.mark_resolved_obj"),(0,o.default)(e,"resource",t||scrivito.path_for_id(scrivito.applicationDocument().pageId()))])}}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page",n=arguments[2];return new p.default({id:"scrivito.sdk.delete_obj",title:scrivito.t("commands.delete_obj.title",scrivito.t("models."+t+".name")),icon:"&#xf018;",disabled:function(){return scrivito.editingContext.isMutable()?e.has_children()?scrivito.t("commands.delete_obj.has_children"):void 0:scrivito.t("commands.delete_obj.published_workspace")},execute:function(){scrivito.ConfirmDeleteDialog.open(e.id()).then(function(t){t&&scrivito.withSavingOverlay(o(e,n).then(a))})}})}function o(e,t){return(0,_.default)(function(){return d.default.get(e.id())}).then(function(e){return s(e,t).then(function(t){return e.destroy(),e.finishSaving().then(function(){return t})})})}function a(e){var t=(0,l.default)(e);return t.path(scrivito.root_path()+t.path()),scrivito.redirect_to(t.normalizePath().toString())}function s(e,t){return t?scrivito.Promise.resolve(t):(0,_.default)(function(){return e.parent()}).then(function(e){return scrivito.path_for_id(e.id())}).catch(function(){return"/"})}Object.defineProperty(t,"__esModule",{value:!0});var u=n(33),l=r(u),c=n(3),d=r(c),f=n(17),p=r(f),h=n(8),_=r(h);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commands.mark_resolved_obj";return new c.default({id:"scrivito.sdk.mark_resolved_obj",title:scrivito.t(t+".title"),icon:"&#xf124;",present:function(){return e.has_conflict()},execute:function(){o(t).then(function(){return scrivito.withSavingOverlay(a(e.id()).then(scrivito.applicationWindow.reload))})}})}function o(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.mark_resolved_obj.dialog.title"),description:scrivito.t(e+".dialog.description"),icon:"&#xf124;",color:"red",confirm_button_text:scrivito.t("commands.mark_resolved_obj.dialog.confirm"),confirm_button_color:"red"})}function a(e){return(0,f.default)(function(){return u.default.get(e)}).then(function(e){return e.markResolvedAsync()})}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),u=r(s),l=n(17),c=r(l),d=n(8),f=r(d);t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commands.restore_obj";return new c.default({id:"scrivito.sdk.restore_obj",title:scrivito.t(t+".title"),icon:"&#xf032;",present:function(){return e&&e.is_deleted()},execute:function(){var t=a.default.getIncludingDeleted(e.id()),n=u.restoreObj(t.objData);scrivito.withSavingOverlay(n.then(function(){return scrivito.reload()}))}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),s=n(128),u=function(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}(s),l=n(17),c=r(l);t.default=i},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(106),a=function(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}(o);!function(){var e=void 0;i.default.extend(scrivito,{withSavingOverlay:function(e){return scrivito.savingOverlay.show(),i.default.isFunction(e.always)?e.always(function(){return scrivito.savingOverlay.hide()}):(a.finally(e,scrivito.savingOverlay.hide),e)},savingOverlay:{show:function(){e||(e=$(scrivito.Template.render("saving_overlay")),$("#scrivito_editing").append(e)),scrivito.Transition.wrap(e,function(){e&&e.addClass("scrivito_show")})},hide:function(){e&&(e.remove(),e=null)},removeAll:function(){$(".scrivito_saving_overlay").remove(),e=null},isPresent:function(){return!!e}}})}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){i.default.extend(scrivito,{widget_marker:{init:function(){scrivito.inplace_marker.define(function(t,n){if(scrivito.editingContext.isMutable()){var r=scrivito.WidgetlistFieldElement.all(n);i.default.each(r,function(n){i.default.each(n.widgetElements(),function(n){var r=n.widget().is_modified()||n.widget().is_placement_modified();(scrivito.editingContext.isEditingMode()||scrivito.editingContext.isDiffMode()&&r)&&(n.hasWidgetlist()&&n.dom_element().attr("data-scrivito-private-structure-widget",!0),t.activate_for(n,e(n)))})})}})}}});var e=function(e){var t={};if(e.hasWidgetlist()&&(t.icon="scrivito_icon_structure_widget"),scrivito.editingContext.isDiffMode()){var n,r=e.widget().modification(),i=e.widget().placement_modification();switch(r){case"new":n="widget_is_new",t.icon="scrivito_icon_inv_plus";break;case"deleted":n="widget_is_deleted",t.icon="scrivito_icon_trash";break;case"edited":switch(t.icon="scrivito_icon_edited",i){case"new":n="widget_is_edited_and_dragged_here",t.css_classes="scrivito_widget_moved_icon";break;case"deleted":n="widget_is_edited_and_dragged_away",t.css_classes="scrivito_widget_moved_icon";break;default:n="widget_is_edited"}break;default:switch(t.icon="scrivito_icon_moved",i){case"new":n="widget_is_dragged_here";break;case"deleted":n="widget_is_dragged_away"}}n&&(t.tooltip=scrivito.t("widget_marker."+n))}return t.description=e.widget().description_for_editor(),t}}()},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e){var n=function(){if(!e.is("[data-scrivito-private-reloading]")){e.attr("data-scrivito-private-reloading",!0);var n=scrivito.cms_element.from_dom_element(e);t.reload(n)}};e.on("reload.scrivito",function(){return n(),!1})}var t={init:function(){scrivito.on("content",function(t){if(scrivito.in_editable_view()){var n=$(t);n.attr("data-scrivito-private-widget-id")&&e(n),i.default.each(n.find("[data-scrivito-private-widget-id]"),function(t){e($(t))})}})},reload:function(e){scrivito.withElementOverlay(e.dom_element(),e.fetchMarkup().then(function(t){var n=$(t);e.dom_element().replaceWith(n),scrivito.Gui.newContent(n)}))}};scrivito.WidgetReloading=t}()},function(e,t,n){"use strict";var r=n(30),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e="widget_clipboard";scrivito.widgetClipboard={saveWidget:function(t){scrivito.storage.set(e,{widgetAttributes:t.serializeAttributes(),objClass:t.objClass()})},isPresent:function(){return!!scrivito.storage.hasKey(e)},widget:function(){var t=scrivito.storage.get(e);if(t&&t.widgetAttributes)return i.default.newWithSerializedAttributes(t.widgetAttributes)},objClass:function(){var t=scrivito.storage.get(e);return t&&t.objClass},clear:function(){scrivito.storage.remove(e)}}}()},function(e,t,n){"use strict";!function(){function e(e){return scrivito.confirmation_dialog({title:scrivito.t("workflows.delete_workspace.dialog.title",e.titleForEditor),description:scrivito.t("workflows.delete_workspace.dialog.description"),icon:"&#xf018;",color:"red",confirm_button_text:scrivito.t("workflows.delete_workspace.dialog.confirm"),confirm_button_color:"red"})}function t(e){scrivito.withSavingOverlay(e.destroy().then(function(){if(e.id===scrivito.editingContext.selectedWorkspaceId)return scrivito.changeEditingContext({workspaceId:"published"})}))}scrivito.deleteWorkspace=function(n){e(n).then(function(){return t(n)})}}()},function(e,t,n){"use strict";var r=n(349),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){function e(e){return scrivito.confirmation_dialog({title:scrivito.t("workflows.publish_workspace.dialog.title",e.titleForEditor),description:scrivito.t("workflows.publish_workspace.dialog.description"),icon:"&#xf033;",color:"green",confirm_button_text:scrivito.t("workflows.publish_workspace.dialog.confirm"),confirm_button_color:"green"})}function t(e){return scrivito.withSavingOverlay(e.checkAndPublish().then(n))}function n(){return scrivito.changeEditingContext({workspaceId:"published"})}function r(){scrivito.confirmation_dialog({title:scrivito.t("workflows.publish_workspace.error_dialog.title"),description:scrivito.t("workflows.publish_workspace.error_dialog.description"),icon:"&#xf033;",confirm_button_text:scrivito.t("workflows.publish_workspace.error_dialog.confirm")}).then(function(){return i.default.open()})}function o(){scrivito.AlertDialog.open(scrivito.t("workflows.publish_workspace.alert.invalid_certificates"))}scrivito.publishWorkspace=function(n,i){e(n).then(function(){return t(i).catch(function(e){switch(e.type){case"check_failed":return r();case"outdated_certificates":return o()}})})}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return o().then(a).then(function(t){return t?s(e,t).then(function(t){return u(t,e)}):{isCancelled:!0}})}function o(){return scrivito.withSavingOverlay((0,m.default)(function(){return g.default.selected.otherWritableWorkspaces}))}function a(e){return(0,c.default)(e,"transfer_changes")}function s(e,t){var n=h.default.pluck(e,"objData");return scrivito.withSavingOverlay(scrivito.ModificationTransfer.transferObjs(n,t))}function u(e,t){var n=h.default.map(e,function(e){var n=e.reason,r=e.objId;return{reason:n,obj:h.default.find(t,function(e){return e.id()===r})}});return n.length&&f.open(n),{errors:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var l=n(574),c=r(l),d=n(1082),f=function(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}(d),p=n(0),h=r(p),_=n(8),m=r(_),v=n(59),g=r(v)},function(e,t,n){"use strict";function r(e){var t=o.default.pluck(e,"obj");scrivito.toLegacyObjs(t).then(function(t){var n=o.default.map(e,function(e){var n=e.reason,r=e.obj;return{reason:n,obj:o.default.find(t,function(e){return e.id()===r.id()})}});scrivito.AlertDialog.open(scrivito.t("transfer_errors_dialog.title"),{body:scrivito.Template.render("transfer_errors_dialog",{modified:o.default.pluck(o.default.where(n,{reason:"modified"}),"obj"),conflicting:o.default.pluck(o.default.where(n,{reason:"conflict"}),"obj")})})})}Object.defineProperty(t,"__esModule",{value:!0}),t.open=r;var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(106),a=function(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}(o);!function(){var e={},t=0,n=0,r=!1,o={on:function(n,r){return void 0===e[n]&&(e[n]={}),t+=1,e[n][t]=r,t},off:function(t){i.default.each(e,function(e){delete e[t]})},isWriting:function(){return n>0},hasErrors:function(){return r},startWrite:function(){scrivito.WriteMonitor.isWriting()||i.default.invoke(e.start_write,"call"),n+=1,r=!1},endWrite:function(){n-=1,scrivito.WriteMonitor.isWriting()||scrivito.run_new_event(function(){scrivito.WriteMonitor.isWriting()||i.default.each(e.end_write,function(e){return e(r)})})},endWriteWhenDone:function(e){a.finally(e.catch(function(e){throw r=!0,e}),scrivito.WriteMonitor.endWrite)},trackChanges:function(e,t){var n=!1,r=!1,i=scrivito.WriteMonitor.on("start_write",function(){n=!0,r=!1}),o=scrivito.WriteMonitor.on("end_write",function(){r=!0});return e().then(function(){scrivito.WriteMonitor.off(i),scrivito.WriteMonitor.off(o),n&&(r?t():scrivito.withSavingOverlay(new scrivito.Promise(function(e){var n=scrivito.WriteMonitor.on("end_write",function(){scrivito.WriteMonitor.off(n),e(),t()})})))})},simulateChanges:function(){scrivito.WriteMonitor.startWrite(),scrivito.WriteMonitor.endWrite()},reset:function(){e={},t=0,n=0,r=!1}};scrivito.WriteMonitor=o}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(31),a=n(6),s=r(a),u=n(15),l=r(u),c=n(0),d=r(c),f=n(11),p=r(f);!function(){function e(){t&&t.length&&(0,o.unmountComponentAtNode)(t.get(0)),n.resolve()}var t=void 0,n=void 0,r=(0,p.default)({displayName:"scrivito.AlertDialog",statics:{open:function(r,o){return t=$("#alert_dialog"),n=new l.default,scrivito.withDialogBehaviour(t,n.promise,{enter:e,escape:e}),scrivito.renderReactComponent(React.createElement(scrivito.AlertDialog,i({message:r},o)),t),n.promise}},propTypes:{message:s.default.string.isRequired,body:s.default.string,color:s.default.string,icon:s.default.string},render:function(){var e=d.default.extend({color:"red",icon:"attention"},this.props),t=e.color,n=e.icon,r="alert_dialog scrivito_modal_prompt scrivito_center_dialog scrivito_"+t+" scrivito_show",i=void 0;return d.default.isEmpty(this.props.body)||(i=React.createElement("div",{className:"scrivito_modal_body",dangerouslySetInnerHTML:{__html:this.props.body}})),React.createElement("div",{className:r},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon scrivito_icon_"+n}),React.createElement("h3",{className:"scrivito_title"},this.props.message)),i,React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{href:"#",onClick:this._onCloseClick,className:"scrivito_button scrivito_close"},scrivito.t("ok"))))},_onCloseClick:function(t){t.preventDefault(),t.stopPropagation(),e()}});scrivito.AlertDialog=r}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(31),o=n(6),a=r(o),s=n(3),u=r(s),l=n(15),c=r(l),d=n(217),f=function(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}(d),p=n(1),h=n(63),_=n(104),m=n(122),v=r(m),g=n(219),y=r(g);!function(){function e(){n(),s.resolve(!0)}function t(){n(),s.resolve(!1)}function n(){o&&o.length&&((0,i.unmountComponentAtNode)(o.get(0)),o.remove())}function r(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=scrivito).t.apply(t,["confirm_delete_dialog."+e].concat(r))}var o=void 0,s=void 0;scrivito.ConfirmDeleteDialog=scrivito.legacyCreateConnectedComponent({statics:{open:function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!r.length)throw new p.ArgumentError("Missing id(s)");return o=$('<div id="confirm_delete_dialog"></div>').appendTo($("#scrivito_editing")),s=new c.default,scrivito.withDialogBehaviour(o,s.promise,{enter:e,escape:t}),scrivito.renderReactComponent(React.createElement(scrivito.ConfirmDeleteDialog,{objIds:r}),o),s.promise},close:function(){n()}},propTypes:{objIds:a.default.arrayOf(a.default.string).isRequired},componentDidMount:function(){this._updateHeight()},componentDidUpdate:function(){this._updateHeight()},render:function(){var e=this.props.objIds.map(function(e){return u.default.get(e)}),t=this._subjectName(e),n=this._title(e,t),r=function(){return(0,_.arrayFromIterable)(u.default.where("*","linksTo",e))};return React.createElement("div",{className:"scrivito_modal_prompt scrivito_center_dialog scrivito_red scrivito_show"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("h3",{className:"scrivito_title"},n)),React.createElement("div",{className:"scrivito_modal_body"},React.createElement(l,{objs:e,backlinks:r,subjectName:t,onUpdate:this._centerDialog})),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement(g,null),React.createElement(m,{backlinks:r})))},_updateHeight:function(){var e=this._findDOMNode().find(".scrivito_modal_body");f.updateAutoHeightFor(e)},_centerDialog:function(){scrivito.center(this._findDOMNode())},_findDOMNode:function(){return $((0,i.findDOMNode)(this))},_subjectName:function(e){if(e.length>1)return scrivito.t("models.obj.name.plural");var t=(0,y.default)(e[0])?"resource":"page";return scrivito.t("models."+t+".name")},_title:function(e,t){return 1===e.length?r("title",t):e.length>1?r("title.many_subjects",t):void 0}});var l=scrivito.legacyCreateConnectedComponent({propTypes:{objs:a.default.arrayOf(a.default.instanceOf(u.default)).isRequired,backlinks:a.default.func.isRequired,subjectName:a.default.string.isRequired,onUpdate:a.default.func.isRequired},componentDidMount:function(){this.props.onUpdate()},componentDidUpdate:function(){this.props.onUpdate()},shouldRenderLoaderError:!0,render:function(){var e=this;return React.createElement("div",null,React.createElement("p",null,this._modificationNotice()),React.createElement("p",null,this._backlinksNotice()),React.createElement("ul",null,this.props.backlinks().map(function(t){return React.createElement(d,{key:t.id(),backlink:t,onClick:e._openBacklink})})))},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)},_modificationNotice:function(){if(!(this.props.objs.length>1)){var e=this.props.objs[0];return e.isNew()?r("is_new",this.props.subjectName,this.props.subjectName):e.isEdited()?r("is_edited",this.props.subjectName):r("not_modified",this.props.subjectName)}},_backlinksNotice:function(){var e=this.props.backlinks().length,t=this.props.objs.length;return 1===t&&1===e?r("one_obj_to_delete.one_backlink",this.props.subjectName):1===t&&e>1?r("one_obj_to_delete.many_backlinks",e,this.props.subjectName):t>1&&1===e?r("many_objs_to_delete.one_backlink",this.props.subjectName):t>1&&e>1?r("many_objs_to_delete.many_backlinks",e,this.props.subjectName):void 0},_openBacklink:function(e){var t=this;o.hide(),(0,v.default)({selectionMode:"single",standAlone:!0,selection:[e.id()],disableDelete:!0}).then(function(){o.show(),t.forceUpdate()})}}),d=scrivito.legacyCreateConnectedComponent({propTypes:{backlink:a.default.instanceOf(u.default).isRequired,onClick:a.default.func.isRequired},shouldRenderLoaderError:!0,render:function(){return React.createElement("li",null,React.createElement("a",{href:"#",onClick:this._onClick},(0,h.titleForObj)(this.props.backlink)))},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)},_onClick:function(e){this.props.onClick(this.props.backlink),e.stopPropagation()}}),m=scrivito.legacyCreateConnectedComponent({propTypes:{backlinks:a.default.func.isRequired},render:function(){var e=r(this.props.backlinks().length?"confirm.has_backlinks":"confirm");return React.createElement("a",{className:"scrivito_button scrivito_red scrivito_confirm",onClick:this._onClick},e)},_scrivitoRenderWhileLoading:function(){return null},_onClick:function(t){t.preventDefault(),e()}}),g=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onClick},r("cancel"))},_onClick:function(e){e.preventDefault(),t()}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(31),a=n(0),s=r(a),u=n(6),l=r(u),c=n(11),d=r(c),f=n(76),p=r(f);!function(){function e(e){var t=e.icon,n=t;return 0===n.indexOf("&")?React.createElement("i",{className:"scrivito_icon",dangerouslySetInnerHTML:{__html:n}}):(/^scrivito_icon_/.test(n)||(n="scrivito_customer_icon sci_"+n),React.createElement("i",{className:"scrivito_icon "+n}))}var t=void 0,n=void 0,r=!1,a=(0,d.default)({displayName:"scrivito.ContextMenuWrapper",statics:{init:function(){scrivito.Gui.on("document",function(e){var t=$(e.browserWindow());s.default.each(["resize","scroll","load"],function(e){t.on(e,function(){r&&n.forceUpdate()})})}),scrivito.on("pageChange",function(){return a.close()})},open:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=$("#context_menu"),n=scrivito.renderReactComponent(React.createElement(a,i({$domElement:e,commands:r},o)),t)},close:function(){n&&n.close()}},getDefaultProps:function(){return{customClassName:""}},getInitialState:function(){return{orientationClassName:"",relativeOffset:this._computeRelativeOffset()}},componentDidMount:function(){r=!0},componentWillUnmount:function(){r=!1},render:function(){var e=!1,t=scrivito.CmsDocument.offset(this.props.$domElement);return this.props.mousePosition&&(e=!0,t.left+=this.state.relativeOffset.x*this.props.$domElement.width(),t.top+=this.state.relativeOffset.y*this.props.$domElement.height()),React.createElement(u,i({},t,{hasPreciseOffset:e,close:this.close,commands:this.props.commands,className:this._contextMenuClassName(),componentDidUpdate:this._updateOrientationClassName}))},close:function(){(0,o.unmountComponentAtNode)(t.get(0)),n=null,this.props.whenClosed&&this.props.whenClosed()},_contextMenuClassName:function(){var e=this.props.customClassName;return this.state.orientationClassName&&(e+=" "+this.state.orientationClassName),e},_updateOrientationClassName:function(e){var t="";this._shouldAlignLeft(e)&&(t+=" scrivito_left"),this._shouldAlignTop(e)&&(t+=" scrivito_top"),t!==this.state.orientationClassName&&this.setState({orientationClassName:t})},_shouldAlignLeft:function(e){var t=$(".iframe_wrapper"),n=this.props.$domElement.offset().left-t.scrollLeft();return t.width()-n<e.clientWidth},_shouldAlignTop:function(e){var t=$(scrivito.applicationWindow.browserWindow()),n=e.clientHeight+25,r=void 0;if(this.props.mousePosition){r=scrivito.CmsDocument.offset(this.props.$domElement).top+this.state.relativeOffset.y*this.props.$domElement.height()-$(".iframe_wrapper").offset().top}else r=this.props.$domElement.offset().top-t.scrollTop();var i=t.height()-r;return n<r&&n>i},_computeRelativeOffset:function(){var e={x:0,y:0};if(!this.props.mousePosition)return e;var t=this.props.$domElement.offset(),n=this.props.mousePosition.x-t.left,r=this.props.mousePosition.y-t.top,i=this.props.$domElement.width();i&&(e.x=n/i);var o=this.props.$domElement.height();return o&&(e.y=r/o),e}}),u=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.ContextMenu",propTypes:{top:l.default.number.isRequired,left:l.default.number.isRequired,close:l.default.func.isRequired,className:l.default.string,hasPreciseOffset:l.default.bool.isRequired,componentDidUpdate:l.default.func.isRequired},componentDidMount:function(){this._menuBox&&this.props.componentDidUpdate(this._menuBox)},componentDidUpdate:function(){this._menuBox&&this.props.componentDidUpdate(this._menuBox)},render:function(){var e=this,t="scrivito_menu_box jsx visible",n="scrivito_editing_marker_menu jsx",r=scrivito.pattern_sort(this.props.commands,scrivito.menu_order);return this.props.className&&(t+=" "+this.props.className),this.props.hasPreciseOffset&&(n+=" scrivito_precise_offset"),React.createElement("div",{className:n,style:{top:this.props.top,left:this.props.left}},React.createElement("div",{className:"scrivito_menu_box_overlay",onClick:this.props.close}),React.createElement("ul",{className:t,ref:function(t){return e._menuBox=t}},r.map(function(t){return React.createElement(c,{key:t.id(),command:t,beforeExecute:e.props.close})})))}}),c=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.MenuItem",propTypes:{command:l.default.object.isRequired},render:function(){return this.props.command.execute?this.props.command.isPresent()?React.createElement("li",{className:this._className(),title:this._title(),onClick:this._onClick},React.createElement("span",null,React.createElement(e,{icon:this.props.command.icon()}),this.props.command.title())):null:React.createElement("li",{className:"scrivito_menu_separator"},React.createElement("span",null,this.props.command.title()))},_className:function(){var e="scrivito_menu_item "+this.props.command.domId();return this.props.command.isDisabled()&&(e+=" scrivito_disabled"),e},_title:function(){return this.props.command.isEnabled()?this.props.command.tooltip():this.props.command.reasonForBeingDisabled()},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.command.isEnabled()&&(this.props.beforeExecute(),this.props.command.execute())}});e.displayName="scrivito.MenuItem.Icon",e.propTypes={icon:l.default.string.isRequired},scrivito.ContextMenu=(0,p.default)(a)}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(20),o=r(i),a=n(31),s=n(6),u=r(s),l=n(11),c=r(l),d=n(1088);!function(){function e(e){return o.default.createElement(d.TransitionGroup,{},o.default.Children.map(e.children,function(t){return o.default.createElement(s,e,t)}))}function t(e,t){i?setTimeout(e,t):e()}function n(){i=!0}function r(){i=!1}var i=!0;e.propTypes={children:u.default.element};var s=(0,c.default)({propTypes:{children:u.default.element,transitionName:u.default.string.isRequired,transitionEnterTimeout:u.default.number.isRequired,transitionLeaveTimeout:u.default.number.isRequired,onEnter:u.default.func.isRequired,onLeave:u.default.func.isRequired},componentWillEnter:function(e){var t=this.props.transitionName,n=t+"-enter",r=this.props,i=r.transitionEnterTimeout,o=r.onEnter;this._transition(n,i,e,o)},componentWillLeave:function(e){var t=this.props.transitionName,n=t+"-leave",r=this.props,i=r.transitionLeaveTimeout,o=r.onLeave;this._transition(n,i,e,o)},render:function(){return this.props.children},_transition:function(e,n,r,i){var o=$((0,a.findDOMNode)(this)),s=e+"-active";t(function(){o.removeClass(e),o.removeClass(s),i(),r()},n),t(function(){return o.addClass(s)},17),o.addClass(e)}});scrivito.CSSTransitionGroup=e,scrivito.CSSTransitionGroup.enableTimeouts=n,scrivito.CSSTransitionGroup.disableTimeouts=r}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(1089),o=r(i),a=n(575),s=r(a);e.exports={TransitionGroup:s.default,CSSTransitionGroup:o.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(20),l=r(u),c=n(6),d=r(c),f=n(575),p=r(f),h=n(1093),_=r(h),m=n(577),v=(m.nameShape.isRequired,d.default.bool,d.default.bool,d.default.bool,(0,m.transitionTimeout)("Appear"),(0,m.transitionTimeout)("Enter"),(0,m.transitionTimeout)("Leave"),{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}),g=function(e){function t(){var n,r,a;i(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=o(this,e.call.apply(e,[this].concat(u))),r._wrapChild=function(e){return l.default.createElement(_.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},a=n,o(r,a)}return a(t,e),t.prototype.render=function(){return l.default.createElement(p.default,s({},this.props,{childFactory:this._wrapChild}))},t}(l.default.Component);g.displayName="CSSTransitionGroup",g.propTypes={},g.defaultProps=v,t.default=g,e.exports=t.default},function(e,t){e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter(function(e){return null!=e}),0!==t.length)return 1===t.length?t[0]:t.reduce(function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}})}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){if(!e)return e;var t={};return o.Children.map(e,function(e){return e}).forEach(function(e){t[e.key]=e}),t}function i(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=i;var o=n(20)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){return k.length?k.forEach(function(n){return e.addEventListener(n,t,!1)}):setTimeout(t,0),function(){k.length&&k.forEach(function(n){return e.removeEventListener(n,t,!1)})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(1094),c=r(l),d=n(1096),f=r(d),p=n(1097),h=r(p),_=n(1098),m=n(20),v=r(m),g=n(6),y=r(g),b=n(31),w=n(577),k=[];_.transitionEnd&&k.push(_.transitionEnd),_.animationEnd&&k.push(_.animationEnd);var M=(y.default.node,w.nameShape.isRequired,y.default.bool,y.default.bool,y.default.bool,y.default.number,y.default.number,y.default.number,function(e){function t(){var n,r,a;i(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=o(this,e.call.apply(e,[this].concat(u))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},a=n,o(r,a)}return a(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,b.findDOMNode)(this);if(!r)return void(t&&t());var i=this.props.name[e]||this.props.name+"-"+e,o=this.props.name[e+"Active"]||i+"-active",a=null,u=void 0;(0,c.default)(r,i),this.queueClassAndNode(o,r);var l=function(e){e&&e.target!==r||(clearTimeout(a),u&&u(),(0,f.default)(r,i),(0,f.default)(r,o),u&&u(),t&&t())};n?(a=setTimeout(l,n),this.transitionTimeouts.push(a)):_.transitionEnd&&(u=s(r,l))},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,h.default)(function(){return n.flushClassNameAndNodeQueue()}))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(e){e.node.scrollTop,(0,c.default)(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=u({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,v.default.cloneElement(v.default.Children.only(this.props.children),e)},t}(v.default.Component));M.displayName="CSSTransitionGroupChild",M.propTypes={},t.default=M,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){e.classList?e.classList.add(t):(0,o.default)(e)||(e.className=e.className+" "+t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(1095),o=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+e.className+" ").indexOf(" "+t+" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";e.exports=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}},function(e,t,n){"use strict";function r(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-d)),r=setTimeout(e,n);return d=t,r}Object.defineProperty(t,"__esModule",{value:!0});var i=n(576),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=["","webkit","moz","o","ms"],s="clearTimeout",u=r,l=void 0,c=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};o.default&&a.some(function(e){var t=c(e,"request");if(t in window)return s=c(e,"cancel"),u=function(e){return window[t](e)}});var d=(new Date).getTime();l=function(e){return u(e)},l.cancel=function(e){window[s]&&"function"==typeof window[s]&&window[s](e)},t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r=n(576),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o="transform",a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,d=void 0,f=void 0,p=void 0,h=void 0,_=void 0,m=void 0;if(i.default){var v=function(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),r=void 0,i=void 0,o="",a=0;a<n.length;a++){var s=n[a];if(s+"TransitionProperty"in e){o="-"+s.toLowerCase(),r=t[s]("TransitionEnd"),i=t[s]("AnimationEnd");break}}return!r&&"transitionProperty"in e&&(r="transitionend"),!i&&"animationName"in e&&(i="animationend"),e=null,{animationEnd:i,transitionEnd:r,prefix:o}}();a=v.prefix,t.transitionEnd=s=v.transitionEnd,t.animationEnd=u=v.animationEnd,t.transform=o=a+"-"+o,t.transitionProperty=l=a+"-transition-property",t.transitionDuration=c=a+"-transition-duration",t.transitionDelay=f=a+"-transition-delay",t.transitionTiming=d=a+"-transition-timing-function",t.animationName=p=a+"-animation-name",t.animationDuration=h=a+"-animation-duration",t.animationTiming=_=a+"-animation-delay",t.animationDelay=m=a+"-animation-timing-function"}t.transform=o,t.transitionProperty=l,t.transitionTiming=d,t.transitionDelay=f,t.transitionDuration=c,t.transitionEnd=s,t.animationName=p,t.animationDuration=h,t.animationTiming=_,t.animationDelay=m,t.animationEnd=u,t.default={transform:o,end:s,property:l,timing:d,delay:f,duration:c}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(31),o=n(6),a=r(o),s=n(15),u=r(s),l=n(0),c=r(l),d=n(11),f=r(d);!function(){function e(e){var t=e.details;return React.createElement("div",{className:"scrivito_modal_body"},React.createElement("h4",null,scrivito.t("error_dialog.error_details"),":"),t.map(function(e,t){return React.createElement("div",{key:t},e)}))}function t(){r(),s.resolve(!0)}function n(){r(),s.resolve(!1)}function r(){o&&o.length&&(0,i.unmountComponentAtNode)(o.get(0))}var o=void 0,s=void 0,l=(0,f.default)({displayName:"scrivito.ErrorDialog",statics:{open:function(e,r){return o=$("#error_dialog"),s=new u.default,scrivito.withDialogBehaviour(o,s.promise,{enter:t,escape:n}),scrivito.renderReactComponent(React.createElement(scrivito.ErrorDialog,{message:e,details:r}),o),s.promise}},propTypes:{message:a.default.string.isRequired,details:a.default.arrayOf(a.default.string)},getInitialState:function(){return{showDetails:!1}},render:function(){var t=void 0,n=void 0;return this.props.details&&this.state.showDetails&&(t=React.createElement(e,{details:this.props.details})),c.default.isEmpty(this.props.details)||(n=React.createElement("a",{className:"scrivito_toggle_details",href:"#",onClick:this._onToggleClick},scrivito.t("error_dialog.toggle_details"))),React.createElement("div",{className:"error_dialog scrivito_modal_prompt scrivito_center_dialog scrivito_red scrivito_show"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("i",{className:"scrivito_icon scrivito_icon_information"}),React.createElement("h3",{className:"scrivito_title"},this.props.message,n)),t,React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{href:"#",onClick:this._onCloseClick,className:"scrivito_button scrivito_close"},scrivito.t("close"))))},_onToggleClick:function(e){e.preventDefault(),e.stopPropagation(),this.setState({showDetails:!this.state.showDetails})},_onCloseClick:function(e){e.preventDefault(),e.stopPropagation(),n()}});e.displayName="scrivito.ErrorDialog.DialogBody",e.propTypes={details:a.default.arrayOf(a.default.string)},scrivito.ErrorDialog=l}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(20),o=r(i),a=n(6),s=r(a),u=n(350),l=n(11),c=r(l);!function(){var e=(0,c.default)({displayName:"scrivito.InfiniteScrollbars",propTypes:{isLoading:s.default.bool.isRequired,hasMore:s.default.bool.isRequired,loadMore:s.default.func.isRequired,children:s.default.element.isRequired,scrollbars:s.default.any},getDefaultProps:function(){return{scrollbars:u.Scrollbars}},componentDidMount:function(){this._fillContainer()},componentDidUpdate:function(){this._fillContainer()},render:function(){var e=this,t=o.default.Children.toArray(this.props.children);return this.props.isLoading&&t.push(o.default.createElement(scrivito.Loader,{key:"loader"})),o.default.createElement(this.props.scrollbars,{className:"infinite_scrollbars",ref:function(t){return e.container=t},onScrollFrame:this._onScrollFrame,children:t})},_fillContainer:function(){!this.props.hasMore||this.props.isLoading||this._isContainerFull()||this.props.loadMore()},_onScrollFrame:function(){this.props.hasMore&&!this.props.isLoading&&this._isViewportAtBottom()&&this.props.loadMore()},_isContainerFull:function(){var e=this.container.getValues();return e.scrollHeight>e.clientHeight},_isViewportAtBottom:function(){var e=this.container.getValues();return e.scrollTop>=e.scrollHeight-2*e.clientHeight}});scrivito.InfiniteScrollbars=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}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||"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);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 u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1102),d=r(c),f=n(578),p=r(f),h=n(20),_=n(6),m=r(_),v=n(1109),g=r(v),y=n(1110),b=r(y),w=n(1111),k=r(w),M=n(1112),C=r(M),E=n(1113),x=r(E),T=n(1114),D=n(1115),S=function(e){function t(e){var n;o(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];var u=a(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(i)));return u.getScrollLeft=u.getScrollLeft.bind(u),u.getScrollTop=u.getScrollTop.bind(u),u.getScrollWidth=u.getScrollWidth.bind(u),u.getScrollHeight=u.getScrollHeight.bind(u),u.getClientWidth=u.getClientWidth.bind(u),u.getClientHeight=u.getClientHeight.bind(u),u.getValues=u.getValues.bind(u),u.getThumbHorizontalWidth=u.getThumbHorizontalWidth.bind(u),u.getThumbVerticalHeight=u.getThumbVerticalHeight.bind(u),u.getScrollLeftForOffset=u.getScrollLeftForOffset.bind(u),u.getScrollTopForOffset=u.getScrollTopForOffset.bind(u),u.scrollLeft=u.scrollLeft.bind(u),u.scrollTop=u.scrollTop.bind(u),u.scrollToLeft=u.scrollToLeft.bind(u),u.scrollToTop=u.scrollToTop.bind(u),u.scrollToRight=u.scrollToRight.bind(u),u.scrollToBottom=u.scrollToBottom.bind(u),u.handleTrackMouseEnter=u.handleTrackMouseEnter.bind(u),u.handleTrackMouseLeave=u.handleTrackMouseLeave.bind(u),u.handleHorizontalTrackMouseDown=u.handleHorizontalTrackMouseDown.bind(u),u.handleVerticalTrackMouseDown=u.handleVerticalTrackMouseDown.bind(u),u.handleHorizontalThumbMouseDown=u.handleHorizontalThumbMouseDown.bind(u),u.handleVerticalThumbMouseDown=u.handleVerticalThumbMouseDown.bind(u),u.handleWindowResize=u.handleWindowResize.bind(u),u.handleScroll=u.handleScroll.bind(u),u.handleDrag=u.handleDrag.bind(u),u.handleDragEnd=u.handleDragEnd.bind(u),u.state={didMountUniversal:!1},u}return s(t,e),l(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,c.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,i=void 0===r?0:r,o=e.scrollWidth,a=void 0===o?0:o,s=e.scrollHeight,u=void 0===s?0:s,l=e.clientWidth,c=void 0===l?0:l,d=e.clientHeight,f=void 0===d?0:d;return{left:n/(a-c)||0,top:i/(u-f)||0,scrollLeft:n,scrollTop:i,scrollWidth:a,scrollHeight:u,clientWidth:c,clientHeight:f}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,o=r.clientWidth,a=(0,C.default)(this.trackHorizontal),s=Math.ceil(o/i*a);return a===s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollHeight,o=r.clientHeight,a=(0,x.default)(this.trackVertical),s=Math.ceil(o/i*a);return a===s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,C.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,x.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,b.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,b.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,i=n.onScrollFrame;r&&r(e),this.update(function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(e)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect(),i=r.left,o=this.getThumbHorizontalWidth(),a=Math.abs(i-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect(),i=r.top,o=this.getThumbVerticalHeight(),a=Math.abs(i-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(a)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,i=t.getBoundingClientRect(),o=i.left;this.prevPageX=r-(n-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,i=t.getBoundingClientRect(),o=i.top;this.prevPageY=r-(n-o)}},{key:"setupDragging",value:function(){(0,p.default)(document.body,T.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=k.default}},{key:"teardownDragging",value:function(){(0,p.default)(document.body,T.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=this.trackHorizontal.getBoundingClientRect(),r=n.left,i=this.getThumbHorizontalWidth(),o=i-this.prevPageX,a=-r+t-o;this.view.scrollLeft=this.getScrollLeftForOffset(a)}if(this.prevPageY){var s=e.clientY,u=this.trackVertical.getBoundingClientRect(),l=u.top,c=this.getThumbVerticalHeight(),d=c-this.prevPageY,f=-l+s-d;this.view.scrollTop=this.getScrollTopForOffset(f)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,p.default)(this.trackHorizontal,{opacity:1}),(0,p.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,p.default)(e.trackHorizontal,{opacity:0}),(0,p.default)(e.trackVertical,{opacity:0})},t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&d.default.cancel(this.requestFrame),this.requestFrame=(0,d.default)(function(){t.requestFrame=void 0,e()})}},{key:"update",value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,i=this.getValues();if((0,b.default)()){var o=i.scrollLeft,a=i.clientWidth,s=i.scrollWidth,u=(0,C.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),c=o/(s-a)*(u-l),d={width:l,transform:"translateX("+c+"px)"},f=i.scrollTop,h=i.clientHeight,_=i.scrollHeight,m=(0,x.default)(this.trackVertical),v=this.getThumbVerticalHeight(),g=f/(_-h)*(m-v),y={height:v,transform:"translateY("+g+"px)"};if(r){var w={visibility:s>a?"visible":"hidden"},k={visibility:_>h?"visible":"hidden"};(0,p.default)(this.trackHorizontal,w),(0,p.default)(this.trackVertical,k)}(0,p.default)(this.thumbHorizontal,d),(0,p.default)(this.thumbVertical,y)}n&&n(i),"function"==typeof e&&e(i)}},{key:"render",value:function(){var e=this,t=(0,b.default)(),n=this.props,r=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),o=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,l=n.renderThumbVertical,c=n.tagName,d=(n.hideTracksWhenNotNeeded,n.autoHide),f=(n.autoHideTimeout,n.autoHideDuration),p=(n.thumbSize,n.thumbMinSize,n.universal),_=n.autoHeight,m=n.autoHeightMin,v=n.autoHeightMax,y=n.style,w=n.children,k=i(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),M=this.state.didMountUniversal,C=u({},T.containerStyleDefault,_&&u({},T.containerStyleAutoHeight,{minHeight:m,maxHeight:v}),y),E=u({},T.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},_&&u({},T.viewStyleAutoHeight,{minHeight:(0,g.default)(m)?"calc("+m+" + "+t+"px)":m+t,maxHeight:(0,g.default)(v)?"calc("+v+" + "+t+"px)":v+t}),_&&p&&!M&&{minHeight:m,maxHeight:v},p&&!M&&T.viewStyleUniversalInitial),x={transition:"opacity "+f+"ms",opacity:0},D=u({},T.trackHorizontalStyleDefault,d&&x,(!t||p&&!M)&&{display:"none"}),S=u({},T.trackVerticalStyleDefault,d&&x,(!t||p&&!M)&&{display:"none"});return(0,h.createElement)(c,u({},k,{style:C,ref:function(t){e.container=t}}),[(0,h.cloneElement)(r({style:E}),{key:"view",ref:function(t){e.view=t}},w),(0,h.cloneElement)(o({style:D}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,h.cloneElement)(s({style:T.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,h.cloneElement)(a({style:S}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,h.cloneElement)(l({style:T.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(h.Component);t.default=S,S.propTypes={onScroll:m.default.func,onScrollFrame:m.default.func,onScrollStart:m.default.func,onScrollStop:m.default.func,onUpdate:m.default.func,renderView:m.default.func,renderTrackHorizontal:m.default.func,renderTrackVertical:m.default.func,renderThumbHorizontal:m.default.func,renderThumbVertical:m.default.func,tagName:m.default.string,thumbSize:m.default.number,thumbMinSize:m.default.number,hideTracksWhenNotNeeded:m.default.bool,autoHide:m.default.bool,autoHideTimeout:m.default.number,autoHideDuration:m.default.number,autoHeight:m.default.bool,autoHeightMin:m.default.oneOfType([m.default.number,m.default.string]),autoHeightMax:m.default.oneOfType([m.default.number,m.default.string]),universal:m.default.bool,style:m.default.object,children:m.default.node},S.defaultProps={renderView:D.renderViewDefault,renderTrackHorizontal:D.renderTrackHorizontalDefault,renderTrackVertical:D.renderTrackVerticalDefault,renderThumbHorizontal:D.renderThumbHorizontalDefault,renderThumbVertical:D.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},function(e,t,n){(function(t){for(var r=n(1103),i="undefined"==typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],l=0;!s&&l<o.length;l++)s=i[o[l]+"Request"+a],u=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!s||!u){var c=0,d=0,f=[];s=function(e){if(0===f.length){var t=r(),n=Math.max(0,1e3/60-(t-c));c=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(){i.requestAnimationFrame=s,i.cancelAnimationFrame=u}}).call(t,n(51))},function(e,t,n){(function(t){(function(){var n,r,i;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-i)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},i=n()):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(t,n(79))},function(e,t){var n=null,r=["Webkit","Moz","O","ms"];e.exports=function(e){n||(n=document.createElement("div"));var t=n.style;if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),o=r.length;o>=0;o--){var a=r[o]+i;if(a in t)return a}return!1}},function(e,t,n){function r(e){return i(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}var i=n(1106);e.exports=r},function(e,t,n){function r(e){return i(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?" "+t:""}).trim()}var i=n(1107);e.exports=r},function(e,t){function n(e){return o.test(e)?e.toLowerCase():a.test(e)?(r(e)||e).toLowerCase():s.test(e)?i(e).toLowerCase():e.toLowerCase()}function r(e){return e.replace(u,function(e,t){return t?" "+t:""})}function i(e){return e.replace(l,function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")})}e.exports=n;var o=/\s/,a=/(_|-|\.|:)/,s=/([a-z][A-Z]|[A-Z][a-z])/,u=/[\W_]+(.|$)/g,l=/(.)([A-Z]+)/g},function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},function(e,t,n){"use strict";function r(e){return"string"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(){if(!1!==a)return a;if("undefined"!=typeof document){var e=document.createElement("div");(0,o.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),a=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else a=0;return a||0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(578),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=!1},function(e,t,n){"use strict";function r(){return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return d.default.createElement("div",e)}function o(e){var t=e.style,n=r(e,["style"]),i=l({},t,{right:2,bottom:2,left:2,borderRadius:3});return d.default.createElement("div",l({style:i},n))}function a(e){var t=e.style,n=r(e,["style"]),i=l({},t,{right:2,bottom:2,top:2,borderRadius:3});return d.default.createElement("div",l({style:i},n))}function s(e){var t=e.style,n=r(e,["style"]),i=l({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return d.default.createElement("div",l({style:i},n))}function u(e){var t=e.style,n=r(e,["style"]),i=l({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return d.default.createElement("div",l({style:i},n))}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.renderViewDefault=i,t.renderTrackHorizontalDefault=o,t.renderTrackVerticalDefault=a,t.renderThumbHorizontalDefault=s,t.renderThumbVerticalDefault=u;var c=n(20),d=function(e){return e&&e.__esModule?e:{default:e}}(c)},function(e,t,n){"use strict";var r=n(1117),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){var e=scrivito.legacyCreateConnectedComponent({displayName:"scrivito.Menubar",statics:{init:function(){scrivito.Gui.on("open",function(){scrivito.renderReactComponent(React.createElement(e,null),$("#menubar"))})}},render:function(){var e=this;return React.createElement("div",{id:"scrivito_menubar"},React.createElement(i.default,{showMenubar:this._unhide,toggleWorkspacesPanel:this._toggleWorkspacesPanel}),React.createElement(scrivito.Sidebar,{ref:function(t){return e.sidebar=t},hideMenubar:this._hide}))},_hide:function(){$("#scrivito_ui").addClass("scrivito_hide_ui")},_unhide:function(){$("#scrivito_ui").removeClass("scrivito_hide_ui"),this.sidebar.unhide()},_toggleWorkspacesPanel:function(){this.sidebar.toggleWorkspacesPanel()}});scrivito.Menubar=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(1118),s=r(a),u=n(1119),l=r(u),c=n(1121),d=r(c),f=n(1122),p=r(f),h=n(1123),_=r(h),m=scrivito.legacyCreateConnectedComponent({displayName:"Topbar",propTypes:{showMenubar:o.default.func.isRequired,toggleWorkspacesPanel:o.default.func.isRequired},render:function(){return React.createElement("div",{className:"scrivito_topbar"},React.createElement(v,{showMenubar:this.props.showMenubar}),React.createElement("div",{className:"scrivito_first_level"},React.createElement("div",{className:"scrivito_button_bar scrivito_app scrivito_no_hover"},React.createElement("span",{className:"scrivito_logo"})),React.createElement(l.default,null),React.createElement(p.default,{toggleWorkspacesPanel:this.props.toggleWorkspacesPanel}),React.createElement(s.default,null),React.createElement(_.default,null),React.createElement(d.default,null)))}}),v=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.ShowMenubar",propTypes:{showMenubar:o.default.func.isRequired},render:function(){var e=scrivito.t("topbar.show_menubar");return React.createElement("div",{className:"scrivito_toggle_ui scrivito_icon scrivito_icon_show_ui",title:e,onClick:this._onClick})},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.showMenubar()}});t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31),i=n(1),o=n(478),a=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.CurrentPageMenu",getInitialState:function(){return{isContextMenuOpen:!1}},render:function(){return React.createElement("div",{className:this._className(),title:this._title(),onClick:this._onClick},React.createElement("span",{className:"bar"}),React.createElement("span",{className:"bar"}),React.createElement("span",{className:"bar"}),React.createElement("i",{className:this._iconClassName()}))},_className:function(){var e="scrivito_current_page scrivito_button_bar scrivito_hamburger scrivito_right";return this.state.isContextMenuOpen&&(e+=" active"),e},_title:function(){if(this._isCurrentPageModified())return scrivito.t("topbar.current_page_menu.title.is_"+this._currentPageModification())},_iconClassName:function(){var e="scrivito_icon";return this._isCurrentPageModified()&&(e+=" scrivito_"+this._currentPageModification()),e},_onClick:function(e){e.preventDefault(),e.stopPropagation(),scrivito.ContextMenu.open($((0,r.findDOMNode)(this)),this._getCommands(),{customClassName:"scrivito_obj_menu",whenClosed:this._onContextMenuClosed}),this.setState({isContextMenuOpen:!0})},_getCommands:function(){return scrivito.applicationDocument().isCurrentPageStatic()?scrivito.applicationDocument().menu():(0,o.currentPageCommands)()},_isCurrentPageModified:function(){var e=this._getCurrentPage();return e&&e.isModified()},_currentPageModification:function(){var e=this._getCurrentPage();return e&&e.modification()},_getCurrentPage:function(){try{return scrivito.currentApplicationPage()}catch(e){if(e instanceof i.ResourceNotFoundError)return null;throw e}},_onContextMenuClosed:function(){this.setState({isContextMenuOpen:!1})}});t.default=a},function(e,t,n){"use strict";function r(e){var t=(0,a.classify)(e)+"Mode";return scrivito.legacyCreateConnectedComponent({displayName:"Topbar.DisplayModeSelector."+t,render:function(){return React.createElement("div",{className:this._className(),title:this._title(),onClick:this._onClick},React.createElement("span",{className:"scrivito_viewmode_icon"}),React.createElement("span",{className:"scrivito_viewmode_label"},scrivito.t("topbar.display_mode_selector."+e+"_mode")))},_className:function(){var t="scrivito_viewmode_"+e;return this._isSelected()&&(t+=" scrivito_selected"),this._reasonForBeingDisabled()&&(t+=" scrivito_disabled"),t},_title:function(){return this._isSelected()?scrivito.t("topbar.display_mode_selector.is_selected"):this._reasonForBeingDisabled()},_reasonForBeingDisabled:function(){return scrivito.editingContext.reasonForDisplayModeBeingDisabled(e)},_isSelected:function(){return scrivito.editingContext.displayMode===e},_isDisabled:function(){return!!this._reasonForBeingDisabled()},_onClick:function(t){t.preventDefault(),t.stopPropagation(),this._isSelected()||this._isDisabled()||(0,o.default)(e)}})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1120),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(19),s=n(47),u=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.DisplayModeSelector",render:function(){var e=void 0,t="scrivito_viewmodes_wrapper";return(0,s.useRailsEngine)()?e=React.createElement(d,null):t+=" scrivito_viewmodes_no_diff",React.createElement("div",{className:t},React.createElement("div",{className:this._className()},React.createElement("span",{className:"scrivito_viewmode_pill"}),React.createElement(l,null),React.createElement(c,null),e))},_className:function(){return"scrivito_viewmodes scrivito_viewmode_"+scrivito.editingContext.displayMode+"_active"}}),l=r("view"),c=r("editing"),d=r("diff");t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){o().then(function(t){t.isPublished()?a(t).then(function(e){return(0,l.default)(e,"view_mode")}).then(function(t){t&&s(e,t)}):s(e)})}function o(){return(0,d.default)(function(){return p.default.selected})}function a(e){return scrivito.withSavingOverlay((0,d.default)(function(){return e.otherWritableWorkspaces}))}function s(e,t){scrivito.withSavingOverlay(scrivito.changeEditingContext({displayMode:e,workspaceId:t}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var u=n(574),l=r(u),c=n(8),d=r(c),f=n(59),p=r(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SavingIndicator",getInitialState:function(){return{savingState:null}},componentDidMount:function(){this._startWriteToken=scrivito.WriteMonitor.on("start_write",this._onStartWrite),this._endWriteToken=scrivito.WriteMonitor.on("end_write",this._onEndWrite)},componentWillUnmount:function(){scrivito.WriteMonitor.off(this._startWriteToken),scrivito.WriteMonitor.off(this._endWriteToken)},render:function(){var e=void 0;switch(this.state.savingState){case"writeStarted":e=React.createElement("span",{className:"scrivito_saving_in_progress"},React.createElement("i",{className:"scrivito_icon scrivito_spinning"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.saving_indicator.write_started"))));break;case"writeEnded":e=React.createElement("span",{className:"scrivito_saving_done"},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.saving_indicator.write_ended"))))}return React.createElement("div",{id:"scrivito_menu_bar_saving_indicator"},React.createElement("span",{className:"scrivito_saving_state_bar"},e))},_onStartWrite:function(){this._hideTimeout&&(clearTimeout(this._hideTimeout),delete this._hideTimeout),this.setState({savingState:"writeStarted"})},_onEndWrite:function(e){var t=this;e?this.setState({savingState:null}):(this.setState({savingState:"writeEnded"}),this._hideTimeout=setTimeout(function(){return t.setState({savingState:null})},3e3))}});r.HIDE_TIMEOUT=3e3,t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(59),s=r(a),u=n(579),l=r(u),c=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SelectedWorkspace",propTypes:{toggleWorkspacesPanel:o.default.func.isRequired},render:function(){var e="scrivito_icon scrivito_icon_ws";return s.default.selected.isPublished()&&(e+="_published"),React.createElement("div",{className:"scrivito_button_bar selected_workspace",onClick:this._onClick},React.createElement("i",{className:e}),React.createElement(d,null),React.createElement("span",{className:"scrivito_button_label_small"},React.createElement(l.default,{workspace:s.default.selected})))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.toggleWorkspacesPanel()}}),d=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.SelectedWorkspaceTitle",render:function(){return React.createElement("span",{className:"scrivito_button_label"},s.default.selected.titleForEditor)}});t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=scrivito.legacyCreateConnectedComponent({displayName:"Topbar.Warning",render:function(){return scrivito.UiWarning.isPresent()?React.createElement("div",null,React.createElement("span",{className:"scrivito_menu_bar_warning",onClick:this._onClick},React.createElement("i",{className:"scrivito_icon"},""),React.createElement("span",{className:"scrivito_button_label"},React.createElement("span",null,scrivito.t("topbar.warning.message"))))):null},_onClick:function(e){e.preventDefault(),e.stopPropagation(),scrivito.AlertDialog.open(scrivito.t("topbar.warning.alert_message")),scrivito.UiWarning.clear()}});t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(0),o=r(i),a=n(11),s=r(a),u=n(6),l=r(u),c=n(1),d=n(1125),f=r(d),p=n(122),h=r(p),_=n(228),m=r(_);!function(){function e(e,t){return scrivito.legacyCreateConnectedComponent(o.default.extend({propTypes:{isActive:l.default.bool.isRequired,togglePanel:l.default.func.isRequired},shouldRenderLoaderError:!0,render:function(){return React.createElement("div",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this.props.togglePanel},React.createElement("i",{className:this.getIconClassName()}))},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)},_buttonClassName:function(){var t="scrivito_"+e+"_button scrivito_button_bar";return this.props.isActive&&(t+=" active"),t},_buttonHint:function(){return this.props.isActive?scrivito.t("sidebar."+e+"_button.hint.active"):scrivito.t("sidebar."+e+"_button.hint")}},t))}scrivito.Sidebar=(0,s.default)({displayName:"scrivito.Sidebar",propTypes:{hideMenubar:l.default.func.isRequired},statics:{countNotifications:function(){var e=0,t=scrivito.applicationDocument().page();return t&&(t.hasConflicts()&&(e+=1),e+=scrivito.editingContext.restrictionMessagesFor(t).length,e+=scrivito.editingContext.conflictingWorkspacesFor(t).length),e},createPanelButtonClass:e,reset:function(){scrivito.storage.remove("sidebar.activePanel")},getActivePanel:function(){var e=scrivito.storage.get("sidebar.activePanel");return e?e.activePanel:"workspaces"},storeActivePanel:function(e){scrivito.storage.set("sidebar.activePanel",{activePanel:e})}},getInitialState:function(){return{isPanelOpen:!1,activePanel:scrivito.Sidebar.getActivePanel()}},componentWillMount:function(){var e=this;this._fsm=scrivito.sidebarFsm({openSidebar:function(){return e.setState(o.default.extend(e._pendingState(),{isPanelOpen:!0}))},closeSidebar:function(){return e.setState(o.default.extend(e._pendingState(),{isPanelOpen:!1}))}})},componentDidMount:function(){$("#scrivito_ui").addClass("scrivito_sidebar_show_first_level"),this._updateUIOffset()},componentDidUpdate:function(){this._updateUIOffset()},render:function(){var e=this,r=void 0;return this.state.isPanelOpen&&(r=React.createElement(n,{key:"sidebarPanels",activePanel:this.state.activePanel})),React.createElement("div",{className:"scrivito_sidebar",onMouseOver:this._onMouseOver,onMouseLeave:this._onMouseLeave},React.createElement(t,{activePanel:this.state.activePanel,togglePanel:this.togglePanel,hideMenubar:this._hide}),React.createElement(scrivito.CSSTransitionGroup,{transitionName:"sidebar-panels",transitionEnterTimeout:500,transitionLeaveTimeout:300,onEnter:function(){return e._fsm.triggerEvent("openTransitionFinished")},onLeave:function(){return e._fsm.triggerEvent("closeTransitionFinished")}},r))},toggleWorkspacesPanel:function(){this.togglePanel("workspaces")},togglePanel:function(e){if(!e)throw(0,c.InternalError)("Missing panel name");scrivito.Sidebar.storeActivePanel(e),this.state.isPanelOpen?e===this.state.activePanel&&"isOpen"===this._fsm.currentState?(this._pendingActivePanel=null,this._fsm.triggerEvent("close")):this.setState({activePanel:e}):(this._pendingActivePanel=e,this._fsm.triggerEvent("open"))},unhide:function(){this.state.activePanel?this._fsm.triggerEvent("unhideAndClose"):this._fsm.triggerEvent("unhideAndDisable")},_onMouseOver:function(){this._fsm.triggerEvent("mouseOver")},_onMouseLeave:function(){this._fsm.triggerEvent("mouseLeave")},_updateUIOffset:function(){this.state.isPanelOpen?$("#scrivito_ui").addClass("scrivito_sidebar_show_second_level"):$("#scrivito_ui").removeClass("scrivito_sidebar_show_second_level")},_pendingState:function(){var e={};return void 0!==this._pendingActivePanel&&(e.activePanel=this._pendingActivePanel,delete this._pendingActivePanel),e},_hide:function(){this.props.hideMenubar(),this._fsm.triggerEvent("hide")}});var t=scrivito.legacyCreateConnectedComponent({propTypes:{activePanel:l.default.string,togglePanel:l.default.func.isRequired,hideMenubar:l.default.func.isRequired},render:function(){var e=this,t=void 0;return scrivito.enableSidebarDetails&&(t=React.createElement("div",null,React.createElement(r,{isActive:"details"===this.props.activePanel,togglePanel:function(){return e.props.togglePanel("details")}}),React.createElement("div",{className:"scrivito_separator_bar"}))),React.createElement("div",{className:"scrivito_first_level"},t,React.createElement(a,null),React.createElement("div",{className:"scrivito_separator_bar"}),React.createElement(i,{isActive:"workspaces"===this.props.activePanel,togglePanel:function(){return e.props.togglePanel("workspaces")}}),React.createElement(scrivito.Sidebar.NotificationsButton,{isActive:"notifications"===this.props.activePanel,togglePanel:function(){return e.props.togglePanel("notifications")}}),React.createElement("div",{className:"scrivito_separator_bar"}),React.createElement(u,{isActive:"devices"===this.props.activePanel,togglePanel:function(){return e.props.togglePanel("devices")}}),React.createElement(d,{hideMenubar:this.props.hideMenubar}))}}),n=scrivito.legacyCreateConnectedComponent({propTypes:{activePanel:l.default.string},render:function(){var e=void 0;return scrivito.enableSidebarDetails&&(e=React.createElement(scrivito.Sidebar.DetailsPanel,{isActive:"details"===this.props.activePanel})),React.createElement("div",{className:"scrivito_second_level"},e,React.createElement(f.default,{isActive:"workspaces"===this.props.activePanel}),React.createElement(scrivito.Sidebar.NotificationsPanel,{isActive:"notifications"===this.props.activePanel}),React.createElement(scrivito.Sidebar.DevicesPanel,{isActive:"devices"===this.props.activePanel}))}}),r=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:l.default.bool.isRequired,togglePanel:l.default.func.isRequired},shouldRenderLoaderError:!0,render:function(){return this._render(scrivito.applicationDocument().page())},_scrivitoRenderWhileLoading:function(){return this._render()},_render:function(e){return React.createElement("div",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this.props.togglePanel},React.createElement("i",{className:this._iconClassName(e)}))},_buttonClassName:function(){var e="scrivito_details_button scrivito_button_bar";return this.props.isActive&&(e+=" active"),e},_buttonHint:function(){return this.props.isActive?scrivito.t("sidebar.details_button.hint.active"):scrivito.t("sidebar.details_button.hint")},_iconClassName:function(e){var t="scrivito_icon scrivito_icon_page";return e&&e.modification()&&(t+=" scrivito_"+e.modification()),t}}),i=e("workspaces",{getIconClassName:function(){return"scrivito_icon scrivito_icon_ws"}}),a=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("div",{className:"scrivito_browse_content scrivito_button_bar",title:scrivito.t("sidebar.browse_content_button.hint"),onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_content_browser"}))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),(0,h.default)({selectionMode:"single",standAlone:"true"})}}),u=e("devices",{componentDidMount:function(){var e=this;this._previewDeviceSubscriptionToken=scrivito.PreviewDevice.subscribeChange(function(){return e.forceUpdate()}),this._windowFocusSubscriptionToken=m.default.subscribe("sidebar.devicesButton",function(){return e.forceUpdate()})},componentWillUnmount:function(){scrivito.PreviewDevice.unsubscribeChange(this._previewDeviceSubscriptionToken),m.default.unsubscribe(this._windowFocusSubscriptionToken)},getIconClassName:function(){return"scrivito_icon scrivito_icon_"+scrivito.PreviewDevice.current}}),d=(0,s.default)({propTypes:{hideMenubar:l.default.func.isRequired},render:function(){var e=scrivito.t("sidebar.hide_controls_button.hint");return React.createElement("div",{className:"scrivito_hide_controls scrivito_button_bar scrivito_bottom_fixed",title:e,onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_hide_ui"}))},_onClick:function(e){e.preventDefault(),e.stopPropagation(),this.props.hideMenubar()}});scrivito.Sidebar.ENTER_TIMEOUT=500,scrivito.Sidebar.LEAVE_TIMEOUT=300}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=e.name,n=e.icon,r=e.color,i=e.verb,o=e.isButtonDisabled,a=e.onClick;return scrivito.legacyCreateConnectedComponent({propTypes:{workspace:s.default.instanceOf(C.default).isRequired},render:function(){return o&&o(this.props.workspace)?null:React.createElement("li",{className:this._buttonClassName(),title:this._title(),onClick:this._onClick},React.createElement("i",{className:this._iconClassName()}),React.createElement("span",null,scrivito.t("sidebar.workspaces_panel."+t+"_button.title")))},_buttonClassName:function(){var e="scrivito_sidebar_action_item scrivito_"+t+"_button";return this._canAccessWorkspace()||(e+=" scrivito_disabled"),e},_iconClassName:function(){var e="scrivito_icon scrivito_icon_"+(n||t);return r&&(e+=" scrivito_"+r),e},_title:function(){var e="sidebar.workspaces_panel."+t+"_button";return this._canAccessWorkspace()?scrivito.t(e+".hint"):scrivito.t(e+".is_forbidden")},_canAccessWorkspace:function(){return k.default.currentSession().can(i,this.props.workspace)},_onClick:function(e){var t=this;(0,b.default)(function(){return t._canAccessWorkspace()}).then(function(e){e&&a(t.props.workspace)}),e.stopPropagation()}})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),s=r(a),u=n(350),l=n(1126),c=r(l),d=n(1128),f=r(d),p=n(1129),h=r(p),_=n(1130),m=r(_),v=n(1131),g=r(v),y=n(8),b=r(y),w=n(121),k=r(w),M=n(59),C=r(M),E=n(580),x=r(E),T=n(1133),D=r(T),S=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:s.default.bool.isRequired},render:function(){return this.props.isActive?React.createElement(u.Scrollbars,{className:"scrivito_second_level_content scrivito_workspaces_panel scrivito_dark"},React.createElement(O,null),React.createElement(j,null),React.createElement(L,null)):null}}),O=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("div",{className:"scrivito_general_workspaces_group"},React.createElement("div",{className:"scrivito_sidebar_separator"},React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.general_workspaces_group.title"))),React.createElement("ul",{className:"scrivito_sidebar_action"},React.createElement(R,null),React.createElement(A,null)))}}),j=scrivito.legacyCreateConnectedComponent({render:function(){var e=C.default.selected,t=void 0;return e.isMutable()&&(t=React.createElement("ul",{className:"scrivito_sidebar_action"},React.createElement(N,{workspace:e}),React.createElement(I,{workspace:e}),React.createElement(Y,{workspace:e}),React.createElement(F,{workspace:e}))),React.createElement("div",{className:"scrivito_current_workspace_group"},React.createElement("div",{className:"scrivito_sidebar_separator"},React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.current_workspace_group.title"))),React.createElement(x.default,{workspaces:[e],isActive:!0}),t)}}),L=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("div",{className:"scrivito_other_workspaces_group"},React.createElement("div",{className:"scrivito_sidebar_separator"},React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.other_workspaces_group.title"))),React.createElement(P,null))}}),P=scrivito.legacyCreateConnectedComponent({shouldRenderLoaderError:!0,render:function(){var e=C.default.selected,t=e.otherWritableWorkspaces;return e.isMutable()&&(t=[C.default.published].concat(i(t))),React.createElement(x.default,{workspaces:t})},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}}),R=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("li",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_inv_plus scrivito_green"}),React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.create_workspace_button.title")))},_onClick:function(e){var t=this;(0,b.default)(function(){return t._isEnabled()}).then(function(e){e&&(0,m.default)().execute()}),e.stopPropagation()},_buttonClassName:function(){var e="scrivito_create_workspace_button scrivito_sidebar_action_item";return this._isEnabled()||(e+=" scrivito_disabled"),e},_buttonHint:function(){return this._isEnabled()?scrivito.t("sidebar.workspaces_panel.create_workspace_button.hint"):scrivito.t("sidebar.workspaces_panel.create_workspace_button.is_disabled")},_isEnabled:function(){return k.default.currentSession().can("create")}}),A=scrivito.legacyCreateConnectedComponent({render:function(){return React.createElement("li",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this._onClick},React.createElement("i",{className:"scrivito_icon scrivito_icon_history"}),React.createElement("span",null,scrivito.t("sidebar.workspaces_panel.publish_history_button.title")))},_onClick:function(e){this._isEnabled()&&D.default.open(),e.stopPropagation()},_buttonClassName:function(){var e="scrivito_publish_history_button scrivito_sidebar_action_item";return this._isEnabled()||(e+=" scrivito_disabled"),e},_buttonHint:function(){return this._isEnabled()?scrivito.t("sidebar.workspaces_panel.publish_history_button.hint"):scrivito.t("sidebar.workspaces_panel.publish_history_button.is_disabled")},_isEnabled:function(){return k.default.currentSession().can("read_history")}}),I=o({name:"changes",icon:"edited",verb:"read",onClick:function(){(0,f.default)()}}),N=o({name:"publish",verb:"publish",color:"green",onClick:function(e){var t=new g.default(e);scrivito.publishWorkspace(e,t)}}),Y=o({name:"settings",verb:"invite_to",onClick:function(e){(0,c.default)(e)}}),F=o({name:"rebase",icon:"refresh",verb:"write",isButtonDisabled:function(e){return e.isAutoUpdate()},onClick:function(e){(0,h.default)(e).execute()}});t.default=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){o(e).then(function(t){t&&a(e,t)})}function o(e){var t=e.title,n=e.titleForEditor,r=e.ownerIds;return c.default.open({title:t,titleForEditor:n,ownerIds:r})}function a(e,t){var n=t.title,r=t.ownerIds,i={};u.default.each(r,function(e){return i[e]={role:"owner"}}),scrivito.withSavingOverlay(e.update({title:n,memberships:i}).then(scrivito.reload))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(0),u=r(s),l=n(1127),c=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){(0,a.unmountComponentAtNode)(k.get(0)),M.resolve(!1)}function o(e){try{return w.default.get(e)}catch(e){if(e instanceof v.ResourceNotFoundError)return;throw e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(31),s=n(6),u=r(s),l=n(15),c=r(l),d=n(477),f=r(d),p=n(217),h=function(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}(p),_=n(0),m=r(_),v=n(1),g=n(8),y=r(g),b=n(134),w=r(b),k=void 0,M=void 0,C=scrivito.legacyCreateConnectedComponent({statics:{open:function(e){return k=$("#workspace_settings_dialog"),M=new c.default,scrivito.withDialogBehaviour(k,M.promise,{escape:i}),scrivito.renderReactComponent(React.createElement(C,e),k),M.promise}},propTypes:{title:u.default.string,titleForEditor:u.default.string.isRequired,ownerIds:u.default.arrayOf(u.default.string).isRequired},getInitialState:function(){return{title:this.props.title}},componentDidMount:function(){this._updateHeight()},render:function(){return this._preloadOwners(),React.createElement("div",{className:"workspace_settings scrivito_modal_medium scrivito_show adjust_dialog"},React.createElement("div",{className:"scrivito_modal_header"},React.createElement("h3",null,React.createElement("i",{className:"scrivito_icon scrivito_icon_settings"}),scrivito.t("workspace_settings_dialog.title",this.props.titleForEditor))),React.createElement("div",{className:"scrivito_modal_body scrivito_dialog scrivito_auto_height"},React.createElement("div",{className:"scrivito_content_group"},React.createElement("h4",null,scrivito.t("workspace_settings_dialog.input.title")),React.createElement("input",{name:"title",type:"text",onChange:this._onTitleChange,value:this.state.title,placeholder:this.props.titleForEditor})),React.createElement("div",{className:"scrivito_content_group"},React.createElement("h4",null,scrivito.t("workspace_settings_dialog.input.owners")),React.createElement(E,{ownerIds:this.props.ownerIds,onMount:this._updateHeight}))),React.createElement("div",{className:"scrivito_modal_footer"},React.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onCancel},scrivito.t("workspace_settings_dialog.cancel")),React.createElement("a",{className:"scrivito_button scrivito_green scrivito_confirm",onClick:this._onConfirm},scrivito.t("workspace_settings_dialog.confirm"))))},_updateHeight:function(){var e=$((0,a.findDOMNode)(this)).find(".scrivito_modal_body");h.updateAutoHeightFor(e)},_preloadOwners:function(){(0,f.default)(this.props.ownerIds,o)},_onTitleChange:function(e){this.setState({title:e.target.value})},_onConfirm:function(e){e.preventDefault();var t=this.state.title,n=m.default.pluck(k.find("input[name=owners]").select2("data"),"id");(0,a.unmountComponentAtNode)(k.get(0)),t===this.props.title&&m.default.isEqual(n,this.props.ownerIds)?M.resolve(!1):M.resolve({title:t,ownerIds:n})},_onCancel:function(e){e.preventDefault(),i()}}),E=scrivito.legacyCreateConnectedComponent({propTypes:{ownerIds:u.default.arrayOf(u.default.string).isRequired,onMount:u.default.func.isRequired},componentDidMount:function(){this._setupSelect2(),this.props.onMount()},componentWillUnmount:function(){k.find("input[name=owners]").select2("destroy")},render:function(){return React.createElement("input",{name:"owners",type:"hidden",value:this.props.ownerIds})},_setupSelect2:function(){k.find("input[name=owners]").select2({multiple:!0,minimumInputLength:1,query:scrivito.throttle(function(e){w.default.suggest(e.term).then(function(t){var n=m.default.map(t,function(e){return{id:e.id,text:e.description}});e.callback({results:n})})},500),initSelection:function(e,t){var n=$(e).val();n&&(0,y.default)(function(){t(m.default.map(n.split(","),function(e){var t=o(e);return{id:e,text:t?t.description:e,locked:e===w.default.current.id}}))})},formatNoMatches:scrivito.t("workspace_settings_dialog.nothing_found"),formatSearching:scrivito.t("workspace_settings_dialog.searching"),formatInputTooShort:scrivito.t("workspace_settings_dialog.too_short")})}});t.default=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){o().then(function(e){return u.default.open().then(function(t){if(t)return a(e)})})}function o(){return(0,c.default)(function(){return scrivito.applicationDocument().page()}).then(function(e){if(e&&e.isNew())return(0,c.default)(function(){return e.parent()})})}function a(e){return scrivito.applicationDocument().page()?(0,d.useRailsEngine)()?scrivito.applicationWindow.reload():void 0:e?scrivito.applicationWindow.navigateTo(e.id()):scrivito.applicationWindow.navigateToRoot()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(349),u=r(s),l=n(8),c=r(l),d=n(47)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new u.default({execute:function(){h.finally(o(e).then(function(){return a(e)}),function(){scrivito.withSavingOverlay(scrivito.Promise.resolve()),scrivito.reload()})}})}function o(e){return scrivito.withSavingOverlay(e.rebase().catch(scrivito.displayError))}function a(e){return(0,c.default)(function(){return e.hasConflicts()}).then(function(e){if(e)return scrivito.confirmation_dialog({title:scrivito.t("commands.rebase_workspace.has_conflicts.title"),description:scrivito.t("commands.rebase_workspace.has_conflicts.description"),confirm_button_text:scrivito.t("commands.rebase_workspace.open_changes_dialog"),cancel_button_text:scrivito.t("close")}).then(function(){return f.default.open()})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(17),u=r(s),l=n(8),c=r(l),d=n(349),f=r(d),p=n(106),h=function(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}(p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){return new s.default({execute:function(){o().then(function(e){null!==e&&scrivito.withSavingOverlay(l.default.createAsync(e)).then(function(e){var t={workspaceId:e.id};return scrivito.editingContext.isMutable()||(t.displayMode="editing"),scrivito.changeEditingContext(t)}).catch(scrivito.displayError)})}})}function o(){return d.default.open({title:scrivito.t("commands.create_workspace.dialog.title"),description:scrivito.t("commands.create_workspace.dialog.description"),placeholder:scrivito.t("commands.create_workspace.dialog.placeholder"),icon:"&#xf022;",okButtonText:scrivito.t("commands.create_workspace.dialog.accept")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(17),s=r(a),u=n(59),l=r(u),c=n(568),d=r(c)},function(e,t,n){"use strict";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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(135),a=function(){function e(t){r(this,e),this._workspace=t}return i(e,[{key:"check",value:function(){var e=this;return this._check(0).then(function(t){return e._handleCheckResult(t,[])})}},{key:"fetchPublishApproval",value:function(e){return scrivito.ajax("PUT","workspaces/"+this._workspace.id+"/publish_approval",{data:{certificates:e}})}},{key:"checkAndPublish",value:function(){return this._checkAndPublish(Date.now()+2e4)}},{key:"_checkAndPublish",value:function(e){var t=this;return this._checkAndFetchPublishApproval().then(function(e){return scrivito.CmsRestApi.put("workspaces/"+t._workspace.id+"/publish",e)}).catch(function(n){return t._handleCheckAndPublishError(n,e)})}},{key:"_checkAndFetchPublishApproval",value:function(){var e=this;return(0,o.useCustomUsers)()?this.check().then(function(t){return t?e.fetchPublishApproval(t):scrivito.Promise.reject({type:"check_failed"})}):scrivito.Promise.resolve()}},{key:"_check",value:function(e){return scrivito.ajax("GET","workspaces/"+this._workspace.id+"/check?from="+e)}},{key:"_handleCheckResult",value:function(e,t){var n=this;if("fail"===e.result)return scrivito.Promise.resolve(!1);if(t.push(e.certificate),"END"===e.pass.until)return scrivito.Promise.resolve(t);var r=parseInt(e.pass.until,10)+1;return this._check(r).then(function(e){return n._handleCheckResult(e,t)})}},{key:"_handleOutdatedError",value:function(e){return this._workspace.isAutoUpdate()?this.checkAndPublish():(scrivito.logError(e.message),scrivito.AlertDialog.open(e.message),scrivito.Promise.reject(e))}},{key:"_handleCheckAndPublishError",value:function(e,t){var n=this,r=e.backendCode;return"check_failed"===e.type?scrivito.Promise.reject(e):"precondition_not_verifiable.workspace.publish.content_state_id"===r?this._handleOutdatedError(e):"precondition_not_met.workspace.publish.content_state_id"===r?Date.now()>t?scrivito.Promise.reject({type:"outdated_certificates"}):scrivito.wait(1).then(function(){return n._checkAndPublish(t)}):"precondition_not_met.workspace.publish.exceeds_obj_limit"===r?(scrivito.logError(e.message),scrivito.ErrorDialog.open(scrivito.t("workspace_publisher.exceeds_obj_limit"),[e.message]),scrivito.Promise.reject(e)):(scrivito.displayAjaxError(e),scrivito.Promise.reject(e))}},{key:"workspace",get:function(){return this._workspace}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){scrivito.withSavingOverlay(scrivito.changeEditingContext({workspaceId:e.id}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){return m.default.createElement("div",{className:"scrivito_notice scrivito_blue"},m.default.createElement("div",{className:"scrivito_notice_icon"},m.default.createElement("i",{className:"scrivito_icon scrivito_icon_question"})),m.default.createElement("div",{className:"scrivito_notice_body"},scrivito.t("publish_history_dialog.info"),m.default.createElement("a",{href:"https://scrivito.com/publishing-history",target:"_blank"},scrivito.t("publish_history_dialog.link")),"."))}function u(){(0,c.unmountComponentAtNode)(y.get(0)),b.resolve()}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(31),d=n(15),f=r(d),p=n(217),h=function(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}(p),_=n(20),m=r(_),v=n(1134),g=r(v),y=void 0,b=void 0,w=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onCloseClick=n._onCloseClick.bind(n),n}return a(t,e),l(t,null,[{key:"open",value:function(){y=$("#publish_history_dialog"),b=new f.default,scrivito.withDialogBehaviour(y,b.promise,{escape:u}),scrivito.renderReactComponent(m.default.createElement(t,null),y)}}]),l(t,[{key:"componentDidMount",value:function(){this._updateHeight()}},{key:"componentDidUpdate",value:function(){this._updateHeight()}},{key:"render",value:function(){return m.default.createElement("div",{className:"publish_history scrivito_modal_large scrivito_show adjust_dialog"},m.default.createElement("div",{className:"scrivito_modal_header"},m.default.createElement("h3",null,m.default.createElement("i",{className:"scrivito_icon scrivito_icon_history"}),scrivito.t("publish_history_dialog.title"))),m.default.createElement("div",{className:"scrivito_modal_body scrivito_dialog scrivito_auto_height"},m.default.createElement(s,null),m.default.createElement(g.default,null)),m.default.createElement("div",{className:"scrivito_modal_footer"},m.default.createElement("a",{className:"scrivito_button scrivito_cancel",onClick:this._onCloseClick},scrivito.t("publish_history_dialog.close"))))}},{key:"_onCloseClick",value:function(e){e.preventDefault(),e.stopPropagation(),u()}},{key:"_updateHeight",value:function(){var e=$((0,c.findDOMNode)(this)).find(".scrivito_modal_body");h.updateAutoHeightFor(e)}}]),t}(m.default.Component);t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=e.publishedBy;return t?_.default.createElement("span",null,_.default.createElement("i",{className:"scrivito_icon scrivito_icon_user"}),t):null}function u(e){if(!e.isLimited)return null;var t=scrivito.t("publish_history_dialog.revision_list.is_limited",p.default.getRecent().length);return _.default.createElement("div",{className:"scrivito_limited_notice"},_.default.createElement("div",{className:"scrivito_notice_icon"},_.default.createElement("i",{className:"scrivito_icon scrivito_icon_attention"})),_.default.createElement("div",{className:"scrivito_notice_body"},t))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1135),d=r(c),f=n(1136),p=r(f),h=n(20),_=r(h),m=n(6),v=r(m),g=n(134),y=r(g),b=n(462),w=n(76),k=r(w),M=n(40),C=r(M),E=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){return _.default.createElement("div",null,_.default.createElement("ul",{className:"scrivito_list_big"},p.default.getRecent().map(function(e,t){return _.default.createElement(x,{key:e.id,revision:e,isPublished:0===t,publishedBy:e.publishedBy})})),_.default.createElement(u,{isLimited:p.default.getRecent().isLimited}))}},{key:"_scrivitoRenderWhileLoading",value:function(){return _.default.createElement(b.Loader,null)}}]),t}(_.default.Component);E.displayName="PublishHistoryDialog.RevisionList",E.shouldRenderLoaderError=!0;var x=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onClick=n._onClick.bind(n),n}return a(t,e),l(t,[{key:"render",value:function(){var e=void 0;return this.props.isPublished&&(e="is_published"),_.default.createElement("li",{className:e,onClick:this._onClick},_.default.createElement("span",{className:"scrivito_list_group"},_.default.createElement("i",{className:"scrivito_icon scrivito_icon_ws"})),_.default.createElement("span",{className:"scrivito_list_group"},_.default.createElement("span",{className:"scrivito_list_topic"},this.props.revision.title),_.default.createElement("span",{className:"scrivito_list_meta"},_.default.createElement("div",null,this._subtitle()),_.default.createElement(s,{publishedBy:this.props.publishedBy}))),_.default.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},_.default.createElement("span",{className:"scrivito_list_label"},scrivito.t("publish_history_dialog.revision_list.changes_count")),_.default.createElement("span",{className:"scrivito_list_value"},this._changesCount())),_.default.createElement("span",{className:"scrivito_list_group scrivito_pull_right"},_.default.createElement("span",{className:"scrivito_list_label"},this._publishedAtLabel()),_.default.createElement("span",{className:"scrivito_list_value"},this.props.revision.publishedAtForEditor)))}},{key:"_subtitle",value:function(){if(this.props.isPublished)return scrivito.t("publish_history_dialog.revision_list.not_restorable")}},{key:"_publishedAtLabel",value:function(){return scrivito.t("publish_history_dialog.revision_list.published_at")+C.default.localizeDateRelative(this.props.revision.publishedAt)}},{key:"_changesCount",value:function(){var e=this.props.revision.changesCount;return null===e?scrivito.t("publish_history_dialog.revision_list.changes_count.not_available"):1===e?scrivito.t("publish_history_dialog.revision_list.changes_count.one"):scrivito.t("publish_history_dialog.revision_list.changes_count.many",e)}},{key:"_onClick",value:function(){this.props.isPublished||(0,d.default)(this.props.revision).execute()}}]),t}(_.default.Component);x.displayName="PublishHistoryDialog.RevisionList.RevisionListItem",x.propTypes={revision:v.default.instanceOf(p.default).isRequired,isPublished:v.default.bool.isRequired,publishedBy:v.default.oneOfType([v.default.instanceOf(y.default),v.default.string])},s.displayName="PublishHistoryDialog.RevisionList.PublishedBy",s.propTypes={publishedBy:v.default.oneOfType([v.default.instanceOf(y.default),v.default.string])},u.displayName="PublishHistoryDialog.RevisionList.NoticeBox",u.propTypes={isLimited:v.default.bool},t.default=(0,k.default)(E)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new l.default({id:"scrivito.sdk.restore_workspace",execute:function(){o(e).then(function(){return a(e)})}})}function o(e){return scrivito.confirmation_dialog({title:scrivito.t("commands.restore_workspace.dialog.title",s(e)),description:scrivito.t("commands.restore_workspace.dialog.description",e.title),icon:"&#xf032",color:"green",confirm_button_text:scrivito.t("commands.restore_workspace.dialog.confirm"),confirm_button_color:"green"})}function a(e){var t=e.id;scrivito.withSavingOverlay(d.default.createAsync(s(e),{revisionId:t}).then(function(e){return scrivito.changeEditingContext({workspaceId:e.id,displayMode:"editing"})}).catch(scrivito.displayError))}function s(e){return scrivito.t("commands.restore_workspace.workspace_title",e.publishedAtForEditor)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var u=n(17),l=r(u),c=n(59),d=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return v.uiState.subState("revision")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(2),u=r(s),l=n(0),c=r(l),d=n(43),f=n(16),p=r(f),h=n(1),_=n(134),m=r(_),v=n(5),g=function(){function e(t){i(this,e),this._attributes=t}return a(e,[{key:"id",get:function(){return this._attributes.id}},{key:"title",get:function(){return this._attributes.title||this.publishedAtForEditor}},{key:"publishedAt",get:function(){return(0,d.parseStringToDate)(this._attributes.published_at)}},{key:"publishedBy",get:function(){var e=this._attributes.published_by;if(e)try{return m.default.get(e).description}catch(t){if(t instanceof h.ResourceNotFoundError)return scrivito.t("revision.published_by",e);throw t}return null}},{key:"changesCount",get:function(){return this._attributes.changes_count}},{key:"publishedAtForEditor",get:function(){return(0,u.default)(this.publishedAt).format("lll")}}],[{key:"getRecent",value:function(){var e=this,t=new p.default({state:o(),loader:function(){return scrivito.CmsRestApi.get("workspaces/published/revisions")},throwNotLoaded:!0}),n=c.default.map(t.get().results,function(t){return new e(t)});return t.get().isLimited&&(n.isLimited=!0),n}},{key:"clearCache",value:function(){o().set(null)}}]),e}();t.default=g},function(e,t,n){"use strict";var r=n(6),i=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(){scrivito.Sidebar.DetailsPanel=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:i.default.bool.isRequired},render:function(){if(!this.props.isActive)return null;var t=scrivito.applicationDocument().page();return t?React.createElement(e,{src:scrivito.detailsPathForId(t.id())}):React.createElement("div",{className:"scrivito_second_level_content scrivito_details_panel"})}});var e=scrivito.legacyCreateConnectedComponent({propTypes:{src:i.default.string.isRequired},getInitialState:function(){return{isLoaded:!1}},componentWillReceiveProps:function(e){this.props.src!==e.src&&this.setState({isLoaded:!1})},render:function(){var e=void 0;return this.state.isLoaded||(e=React.createElement("i",{className:"scrivito_icon scrivito_spinning"},"")),React.createElement("div",{className:"scrivito_second_level_content scrivito_details_panel"},e,React.createElement("iframe",{className:this._iframeClassName(),src:this.props.src,onLoad:this._onLoad}))},_iframeClassName:function(){var e="scrivito_second_level_content_iframe";return this.state.isLoaded&&(e+=" scrivito_show"),e},_onLoad:function(){this.setState({isLoaded:!0})}})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(6),o=r(i),a=n(228),s=r(a);!function(){scrivito.Sidebar.DevicesPanel=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:o.default.bool.isRequired},componentDidMount:function(){var e=this;this._previewDeviceSubscriptionToken=scrivito.PreviewDevice.subscribeChange(function(){return e.forceUpdate()}),this._windowFocusSubscriptionToken=s.default.subscribe("sidebar.devicesPanel",function(){return e.forceUpdate()})},componentWillUnmount:function(){scrivito.PreviewDevice.unsubscribeChange(this._previewDeviceSubscriptionToken),s.default.unsubscribe(this._windowFocusSubscriptionToken)},render:function(){return this.props.isActive?React.createElement("div",{className:"scrivito_second_level_content scrivito_devices_panel scrivito_dark"},React.createElement("div",{className:"scrivito_sidebar_separator"},React.createElement("span",null,scrivito.t("sidebar.devices_panel.title"))),React.createElement("div",{className:"scrivito_property_padding"},React.createElement("ul",{className:"scrivito_list_big"},scrivito.PreviewDevice.all.map(function(t){return React.createElement(e,{key:t,device:t})})))):null}});var e=scrivito.legacyCreateConnectedComponent({propTypes:{device:o.default.string.isRequired},render:function(){return React.createElement("li",{className:this._className(),onClick:this._onClick},React.createElement("span",{className:"scrivito_list_group"},React.createElement("i",{className:this._iconClassName()})),React.createElement("span",{className:"scrivito_list_group"},React.createElement("span",{className:"scrivito_list_topic"},scrivito.t("sidebar.devices_panel.device."+this.props.device))))},_className:function(){if(this._isActive())return"active"},_iconClassName:function(){return"scrivito_icon scrivito_icon_"+this.props.device},_isActive:function(){return this.props.device===scrivito.PreviewDevice.current},_onClick:function(e){this._isActive()||(scrivito.PreviewDevice.current=this.props.device),e.preventDefault()}})}()},function(e,t,n){"use strict";!function(){var e=scrivito.Sidebar.createPanelButtonClass("notifications",{render:function(){return React.createElement("div",{className:this._buttonClassName(),title:this._buttonHint(),onClick:this.props.togglePanel},React.createElement(t,null),React.createElement(n,null))}}),t=scrivito.legacyCreateConnectedComponent({shouldRenderLoaderError:!0,render:function(){var e="scrivito_icon scrivito_icon_pot_error";return scrivito.Sidebar.countNotifications()&&(e+=" scrivito_wobble scrivito_animated"),React.createElement("i",{className:e})},_scrivitoRenderWhileLoading:function(){return React.createElement("i",{className:"scrivito_icon scrivito_icon_pot_error"})}}),n=scrivito.legacyCreateConnectedComponent({render:function(){var e=scrivito.Sidebar.countNotifications();if(e){var t="amount scrivito_"+this._color();return React.createElement("span",{className:t},e)}return null},_color:function(){var e=scrivito.applicationDocument().page();return e&&e.hasConflicts()?"red":"orange"}});scrivito.Sidebar.NotificationsButton=e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(6),o=r(i),a=n(350),s=n(3),u=r(s),l=n(580),c=r(l);!function(){scrivito.Sidebar.NotificationsPanel=scrivito.legacyCreateConnectedComponent({propTypes:{isActive:o.default.bool.isRequired},render:function(){return this.props.isActive?React.createElement(a.Scrollbars,{className:"scrivito_notifications_panel scrivito_second_level_content scrivito_dark"},React.createElement(e,null),React.createElement(i,null)):null}});var e=scrivito.legacyCreateConnectedComponent({render:function(){var e=scrivito.applicationDocument().page();return e?React.createElement("div",null,React.createElement(t,{obj:e}),React.createElement(r,{obj:e}),React.createElement(n,{obj:e})):null}}),t=scrivito.legacyCreateConnectedComponent({propTypes:{obj:o.default.instanceOf(u.default).isRequired},render:function(){return this.props.obj.hasConflicts()?React.createElement("div",{className:"scrivito_conflict_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_red"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.conflict_group.title"))),React.createElement("div",{className:"scrivito_description"},scrivito.t("sidebar.notifications_panel.conflict_group.description1"),React.createElement("a",{href:"https://scrivito.com/conflicts",target:"_blank"},scrivito.t("sidebar.notifications_panel.conflict_group.link")),scrivito.t("sidebar.notifications_panel.conflict_group.description2"))):null}}),n=scrivito.legacyCreateConnectedComponent({propTypes:{obj:o.default.instanceOf(u.default).isRequired},shouldRenderLoaderError:!0,render:function(){var e=scrivito.editingContext.conflictingWorkspacesFor(this.props.obj);return e.length?React.createElement("div",{className:"scrivito_potential_conflicts_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_orange"},React.createElement("i",{className:"scrivito_icon scrivito_icon_error"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.potential_conflicts_group.title"))),React.createElement("span",{className:"scrivito_description"},scrivito.t("sidebar.notifications_panel.potential_conflicts_group.description")),React.createElement(c.default,{workspaces:e,includeInaccessible:!0})):null},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}}),r=scrivito.legacyCreateConnectedComponent({propTypes:{obj:o.default.instanceOf(u.default).isRequired},shouldRenderLoaderError:!0,render:function(){var e=scrivito.editingContext.restrictionMessagesFor(this.props.obj);return e.length?React.createElement("div",{className:"scrivito_publish_restrictions_group"},React.createElement("div",{className:"scrivito_sidebar_separator scrivito_orange"},React.createElement("i",{className:"scrivito_icon scrivito_icon_no_publish"}),React.createElement("span",null,scrivito.t("sidebar.notifications_panel.publish_restrictions_group.title"))),e.map(function(e){return React.createElement("span",{key:e,className:"scrivito_description"},e)})):null},_scrivitoRenderWhileLoading:function(){return React.createElement(scrivito.Loader,null)}}),i=scrivito.legacyCreateConnectedComponent({render:function(){return 0===scrivito.Sidebar.countNotifications()?React.createElement("div",{className:"scrivito_no_notifications_box scrivito_property_padding"},React.createElement("div",{className:"scrivito_list_big"},React.createElement("div",{className:"scrivito_notice scrivito_grey"},React.createElement("div",{className:"scrivito_notice_body"},scrivito.t("sidebar.notifications_panel.no_notifications"))))):null}})}()},function(e,t,n){"use strict";var r=n(40);(function(e){return e&&e.__esModule?e:{default:e}})(r).default.load("en",{confirm:"Confirm",cancel:"Cancel",save:"Save",welcome:"Welcome",welcome_x:"Welcome $1",accept:"Accept",close:"Close",done:"Done",loading:"Loading...",current_page:"current page",ok:"Ok","models.page.name":"page","models.resource.name":"resource","models.obj.name.plural":"objects","obj.tooltip.is_new":"This item is new.","obj.tooltip.is_new.has_conflicts":"This item is new in this working copy.\nIt has been created and published with a different working copy in the meantime.","obj.tooltip.is_new.has_conflicts.transfer_changes":"This item is new in this working copy.\nIt cannot be moved because it has been created and published with a different working copy in the meantime.","obj.tooltip.is_edited":"This item has been modified.","obj.tooltip.is_edited.has_conflicts":"This item has been modified in this working copy.\nIt has been changed and published with a different working copy in the meantime.","obj.tooltip.is_edited.has_conflicts.transfer_changes":"This item has been modified in this working copy.\nIt cannot be moved because it has been changed and published with a different working copy in the meantime.","obj.tooltip.is_deleted":"This item has been deleted.","obj.tooltip.is_deleted.has_conflicts":"This item has been deleted in this working copy.\nIt has been changed and published with a different working copy in the meantime.","obj.tooltip.is_deleted.has_conflicts.transfer_changes":"This item has been deleted in this working copy.\nIt cannot be moved because it has been changed and published with a different working copy in the meantime.","workspace.title_published":"Published content","workspace.empty_title":"<empty title>","workspace.publish_error.exceeds_obj_limit":"This working copy cannot be published because the maximum number of CMS objects included in your plan has been exceeded.","revision.published_by":'User with ID "$1"',"workspace.title.published":"Published content","workspace.title.blank":"[Empty title]","default_inspector_description_for_obj.group_general":"General","default_inspector_description_for_obj.group_backlinks":"Linked by","default_inspector_description_for_obj.group_binary_metadata":"Metadata","default_inspector_description_for_obj.group_system":"System","item_description.system.id.title":"Object ID","item_description.system.path.title":"Path","item_description.system.obj_class.title":"Object type","item_description.system.permalink.title":"Permalink","item_description.system.history.created_at":"Created","item_description.system.history.created_by":"Created by","item_description.system.history.last_changed":"Last changed","item_description.system.history.last_changed_by":"Last changed by","item_description.system.history.not_available":"Not available","item_description.system.history.user_description_not_available":'User with ID "$1"',"backlinks_item_component.no_backlinks_box.message":'No objects link to "$1".',"stringlist_item_component.read_stringlist.placeholder":"No items","stringlist_item_component.edit_stringlist.add_placeholder":"Add item","binary_attribute_component.download":"Download","binary_attribute_component.edit":"Edit","binary_attribute_component.empty":"Empty","binary_metadata_item_component.content_type":"Content type","binary_metadata_item_component.content_length":"Size","binary_metadata_item_component.filename":"Filename","binary_metadata_item_component.width":"Width","binary_metadata_item_component.height":"Height","permalink_item_component.permalink.is_empty":"Not assigned","widgetlist_attribute_component.is_empty":"No widgets present.","link_item_component.link.title_placeholder":"Title","link_item_component.link.url_placeholder":"URL","link_item_component.link.internal":"INTERNAL","link_item_component.link.new_tab":"Open link in new tab","link_item_component.link.delete":"Delete link","linklist_item_component.linklist.undefined":"No links specified","reference_attribute_component.clear_button.title":"Clear","details_dialog.title":'View properties of "$1"',"details_dialog.title.editing_mode":'Edit properties of "$1"',"details_dialog.close":"Close","workspace_settings_dialog.title":'Settings for "$1"',"workspace_settings_dialog.input.title":"Title","workspace_settings_dialog.input.owners":"Owners","workspace_settings_dialog.nothing_found":"Nothing found","workspace_settings_dialog.searching":"Searching...","workspace_settings_dialog.too_short":"Find user...","workspace_settings_dialog.cancel":"Cancel","workspace_settings_dialog.confirm":"Confirm","workspace_changes_dialog.dialog_header.title":'Changes to "$1"',"workspace_changes_dialog.dialog_header.title.is_transfer_mode":'Moving changes of "$1"',"workspace_changes_dialog.dialog_header.count_title.one":"($1 object)","workspace_changes_dialog.dialog_header.count_title.many":"($1 objects)","workspace_changes_dialog.dialog_header.count_title.many.has_more":"($1+ objects)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.one":"(selected $1 object for moving)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.many":"(selected $1 objects for moving)","workspace_changes_dialog.order_toggle.last_changed":"Sort by last change date","workspace_changes_dialog.order_toggle.last_changed.asc":"Oldest change first","workspace_changes_dialog.order_toggle.last_changed.desc":"Most recent change first","workspace_changes_dialog.order_toggle.obj_class":"Sort by object type","workspace_changes_dialog.order_toggle.obj_class.asc":"A to Z (type)","workspace_changes_dialog.order_toggle.obj_class.desc":"Z to A (type)","workspace_changes_dialog.order_toggle.modification":"Sort by modification type","workspace_changes_dialog.order_toggle.modification.desc":"New, edited, deleted","workspace_changes_dialog.order_toggle.modification.asc":"Deleted, edited, new","workspace_changes_dialog.order_toggle.is_disabled":"Currently selected order","workspace_changes_dialog.no_changes_notice":"Nothing was changed in this working copy.","workspace_changes_dialog.change_item.last_changed":"Last change","workspace_changes_dialog.change_item.publish_permission":"Publish","workspace_changes_dialog.publish_permission.is_permitted":"is permitted","workspace_changes_dialog.publish_permission.is_forbidden":"is not permitted","workspace_changes_dialog.enable_transfer_mode_button.title":"Move changes","workspace_changes_dialog.transfer_changes_button.title":"Select target working copy","workspace_changes_dialog.disable_transfer_mode_button.title.cancel":"Cancel","workspace_changes_dialog.disable_transfer_mode_button.title.done":"Done","workspace_changes_dialog.close_dialog_button.title":"Close","workspace_publisher.exceeds_obj_limit":"This working copy cannot be published because the maximum number of CMS objects included in your plan has been exceeded.","menu_item.spinner.loading":"Loading...","choose_obj_class_dialog.add_child_page.title":"Select Page Type","choose_obj_class_dialog.create_page.title":"Select Page Type","choose_obj_class_dialog.create_widget.title":"Select Widget","choose_obj_class_dialog.last_used":"Last used","choose_obj_class_dialog.popular":"Often used","choose_obj_class_dialog.all":"All","editable_ws_dialog.view_mode.title.select_or_create":"Choose a working copy","editable_ws_dialog.view_mode.title.select":"Select a working copy","editable_ws_dialog.view_mode.title.create":"Create a working copy","editable_ws_dialog.view_mode.title.forbidden":"No working copy available","editable_ws_dialog.view_mode.description.select_or_create":"To alter content, select or create a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.select":"To alter content, select a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.create":"To alter content, create a working copy first. When you finished editing, publish the working copy or have it published.","editable_ws_dialog.view_mode.description.forbidden":"There is no working copy you could use to alter content. Also, creating working copies has not been enabled for you.","editable_ws_dialog.transfer_changes.title.select_or_create":"Select target working copy","editable_ws_dialog.transfer_changes.title.select":"Select target working copy","editable_ws_dialog.transfer_changes.title.create":"Create target working copy","editable_ws_dialog.transfer_changes.title.forbidden":"No working copy available","editable_ws_dialog.transfer_changes.description.select_or_create":"The changes can be moved to an existing working copy or to a new one.","editable_ws_dialog.transfer_changes.description.select":"The changes will be moved to the selected working copy.","editable_ws_dialog.transfer_changes.description.create":"Please create the target working copy","editable_ws_dialog.transfer_changes.description.forbidden":"You are not permitted to move changes to one of the available working copies.","editable_ws_dialog.choose_existing":"Select an existing working copy:","editable_ws_dialog.create_new":"Create a new working copy:","editable_ws_dialog.or_create_new":"Or, create a new one:","editable_ws_dialog.create_new_playholder":"new working copy title","editable_ws_dialog.select":"Select","loader_error.title":"An error occurred while retrieving the data. Please try again later. If the problem persists, contact a technician familiar with this website.","publish_history_dialog.close":"Close","publish_history_dialog.info":"Pick a working copy from the list to view an archived state of your website. Learn more about the ","publish_history_dialog.link":"publishing history","publish_history_dialog.revision_list.changes_count":"Changed","publish_history_dialog.revision_list.changes_count.many":"$1 objects","publish_history_dialog.revision_list.changes_count.not_available":"Not available","publish_history_dialog.revision_list.changes_count.one":"1 object","publish_history_dialog.revision_list.is_limited":"The maximum number of history items displayed ($1) depends on your plan.","publish_history_dialog.revision_list.not_restorable":"This is the currently published content.","publish_history_dialog.revision_list.published_at":"Published ","publish_history_dialog.title":"Publishing history","sidebar.browse_content_button.hint":"Open the Content Browser","sidebar.browse_content_button.hint.is_disabled":"The Content Browser is not available while deleted content is being displayed.","sidebar.details_button.hint":"Show page details","sidebar.details_button.hint.active":"Page details","sidebar.workspaces_button.hint":"Show working copy menu","sidebar.workspaces_button.hint.active":"Working copy menu","sidebar.devices_button.hint":"View page in various sizes","sidebar.devices_button.hint.active":"Page in various sizes","sidebar.hide_controls_button.hint":"Hide control panel","sidebar.notifications_button.hint":"Show notifications","sidebar.notifications_button.hint.active":"Notifications","sidebar.workspace_list.workspace_item.hint.is_disabled":"This working copy can not be selected due to missing user permissions.","sidebar.workspace_list.workspace_item.hint.is_selectable":"Select this working copy","sidebar.workspace_list.workspace_item.hint.is_published":"Select published content","sidebar.workspace_list.workspace_item.hint":"Currently selected working copy","sidebar.workspace_list.workspace_item.delete":"Delete this working copy","sidebar.workspaces_panel.general_workspaces_group.title":"Working copies","sidebar.workspaces_panel.current_workspace_group.title":"This working copy","sidebar.workspaces_panel.other_workspaces_group.title":"Other working copies","sidebar.workspaces_panel.create_workspace_button.title":"New","sidebar.workspaces_panel.create_workspace_button.hint":"Create a working copy","sidebar.workspaces_panel.create_workspace_button.is_disabled":"You cannot create a working copy due to missing user permissions.","sidebar.workspaces_panel.publish_history_button.title":"History","sidebar.workspaces_panel.publish_history_button.hint":"Open publishing history","sidebar.workspaces_panel.publish_history_button.is_disabled":"You cannot view the publishing history due to missing user permissions.","sidebar.workspaces_panel.changes_button.title":"Changes","sidebar.workspaces_panel.changes_button.hint":"View changes to this working copy","sidebar.workspaces_panel.changes_button.is_forbidden":"The cannot view the changes to the working copy due to missing user permissions.","sidebar.workspaces_panel.publish_button.title":"Publish","sidebar.workspaces_panel.publish_button.hint":"Publish this working copy","sidebar.workspaces_panel.publish_button.is_forbidden":"The working copy can not be published due to missing user permissions.","sidebar.workspaces_panel.settings_button.title":"Settings","sidebar.workspaces_panel.settings_button.hint":"Change settings of this working copy","sidebar.workspaces_panel.settings_button.is_forbidden":"You cannot change the settings of the working copy due to missing user permissions.","sidebar.workspaces_panel.rebase_button.title":"Update","sidebar.workspaces_panel.rebase_button.hint":"Update this working copy","sidebar.workspaces_panel.rebase_button.is_forbidden":"You cannot update the working copy due to missing user permissions.","sidebar.notifications_panel.publish_restrictions_group.title":"Publishing not possible","sidebar.notifications_panel.potential_conflicts_group.title":"Potential conflict","sidebar.notifications_panel.potential_conflicts_group.description":"Changes to this page will cause a conflict when publishing. The page has already been modified in these working copies:","sidebar.notifications_panel.conflict_group.title":"Conflict","sidebar.notifications_panel.conflict_group.description1":"A different version of this page has been published in the meantime. ","sidebar.notifications_panel.conflict_group.link":"Resolve the conflict","sidebar.notifications_panel.conflict_group.description2":" to be able to publish this working copy.","sidebar.notifications_panel.no_notifications":"No notifications at present.","sidebar.devices_panel.title":"Preview sizes","sidebar.devices_panel.device.desktop":"Desktop","sidebar.devices_panel.device.laptop":"Laptop","sidebar.devices_panel.device.mobile":"Mobile phone, portrait","sidebar.devices_panel.device.tablet":"Tablet, portrait","confirm_delete_dialog.cancel":"Cancel","confirm_delete_dialog.confirm":"Delete","confirm_delete_dialog.confirm.has_backlinks":"Delete anyway","confirm_delete_dialog.is_edited":"This $1 can be restored if required. However, the changes made to it in this working copy cannot be recovered.","confirm_delete_dialog.is_new":"You are in the process of deleting a $1 that has been created in this working copy. This cannot be undone. However, you can create the $2 once again and reapply the links and references pointing to it.","confirm_delete_dialog.many_objs_to_delete.many_backlinks":"$1 objects link to these $2:","confirm_delete_dialog.many_objs_to_delete.one_backlink":"One object links to these $1:","confirm_delete_dialog.not_modified":"This $1 can be restored if required.","confirm_delete_dialog.one_obj_to_delete.many_backlinks":"$1 objects link to this $2","confirm_delete_dialog.one_obj_to_delete.one_backlink":"One object links to this $1:","confirm_delete_dialog.title":"Are you sure you want to delete this $1?","confirm_delete_dialog.title.many_subjects":"Are you sure you want to delete these $1?","resource_dialog.commands.mark_resolved_obj.dialog.description":"This resource was altered in a different working copy that has been published. Please confirm that you want to keep your changes and discard the ones concurrently made by others.","resource_dialog.commands.mark_resolved_obj.title":"Override concurrent changes to resource","resource_dialog.commands.restore_obj.title":"Restore resource","resource_dialog.title":'Properties of resource "$1"',"menu_bar.create":"Create","saving_indicator_item.saving":"Saving...","saving_indicator_item.saved":"Changes saved","inplace_marker.overlapping":"Two or more menu handles are overlapping. Please adjust your CSS. The following menu handles are overlapping:","widget_marker.widget_is_new":"Widget is new","widget_marker.widget_is_edited":"Widget has been modified","widget_marker.widget_is_edited_and_dragged_here":"Widget has been modified and dragged here","widget_marker.widget_is_edited_and_dragged_away":"Widget has been modified and dragged away from here","widget_marker.widget_is_deleted":"Widget has been deleted","widget_marker.widget_is_dragged_here":"Widget has been dragged here","widget_marker.widget_is_dragged_away":"Widget has been dragged away from here","child_list_menu.description":"Items of $1","transfer_errors_dialog.title":"Errors while moving content changes","transfer_errors_dialog.modified":"Some of the changes could not be moved because the content concerned has also been modified in the target working copy.","transfer_errors_dialog.conflicting":"Some of the changes have not been moved because the respective content in the target working copy is outdated and applying changes to it would cause a conflict. Please make sure that both working copies have been updated and are free of conflicts.","current_page_link_dialog.title":"Share page","current_page_link_dialog.description":"Using the URL below, you can share the current page as part of this working copy. The recipients need to be logged in and have access to the working copy.","error_dialog.toggle_details":"Toggle details","error_dialog.error_details":"Error details","commands.open_obj_in_content_browser.title":"Open in Content Browser","commands.navigate_ui_to_obj.title":"Navigate to object","commands.open_page_link_dialog.title":"Share page","commands.open_page_link_dialog.is_deleted":"A deleted page cannot be shared because it is inaccessible in preview mode","commands.create_workspace.dialog.title":"Create working copy","commands.create_workspace.dialog.description":"Please enter the title of the new working copy.","commands.create_workspace.dialog.placeholder":"new title","commands.create_workspace.dialog.accept":"Create","commands.open_dashboard.title":"Open dashboard","commands.open_user_guide.title":"Open help","commands.rebase_workspace.has_conflicts.title":"Changed content has been published intermediately","commands.rebase_workspace.has_conflicts.description":"Your working copy could not be fully updated. Some of its content has also been altered in a different working copy that has been published in the meantime. Please refer to the changes list for details.","commands.rebase_workspace.open_changes_dialog":"Show changes","workflows.delete_workspace.dialog.title":'Are you sure you want to delete "$1"?',"workflows.delete_workspace.dialog.description":"A deleted working copy cannot be restored.","workflows.delete_workspace.dialog.confirm":"Delete","workflows.change_permalink.dialog.title":'Change permalink of "$1"',"workflows.change_permalink.dialog.placeholder":"Please enter a new permalink","workflows.change_permalink.dialog.change":"Change","workflows.change_permalink.info.is_taken":'The "$1" is already in use.',"workflows.change_permalink.info.is_invalid":'The permalink "$1" is not valid: A permalink may only contain letters from A to Z, periods, hyphens, slashes and underscores.',"workflows.change_permalink.info.is_scrivito":'The permalink "$1" is not valid: A permalink must not be "scrivito" or start with "scrivito/".',"commands.restore_workspace.dialog.confirm":"Create","commands.restore_workspace.dialog.description":'This creates a working copy that reflects the archived state of your website after "$1" was published.',"commands.restore_workspace.dialog.title":'Create "$1"?',"commands.restore_workspace.workspace_title":"Archived: $1","commands.open_page_details.title.editing_mode":"Edit page properties","commands.open_page_details.title":"View page properties","commands.open_page_details.dialog.title.editing_mode":'Edit properties of "$1"',"commands.open_page_details.dialog.title":'View properties of "$1"',"commands.open_page_details.is_disabled":"This page has no properties","commands.save_obj_to_clipboard.title":"Copy or move page","commands.save_obj_to_clipboard.has_children":"Pages with subpages cannot be copied or moved yet.","commands.save_obj_to_clipboard.is_deleted":"Deleted pages cannot be copied or moved yet.","commands.delete_obj.has_children":"Pages with subpages can not yet be deleted.","commands.delete_obj.published_workspace":"Since this is the published content, nothing can be modified.","commands.delete_obj.title":"Delete $1","commands.revert_obj.title":"Discard changes to page","commands.revert_obj.published_workspace":"Since this is the published content, nothing has been modified. Therefore, nothing can be discarded.","commands.revert_obj.is_new":"This is a new page. To discard the creation of this page, please delete it.","commands.revert_obj.unmodified":"This page has not been modified. Therefore, nothing can be discarded.","commands.revert_obj.dialog.title":"Are you sure you want to discard the changes to this page?","commands.revert_obj.dialog.description":"Discarded changes cannot be restored.","commands.revert_obj.dialog.confirm":"Discard","commands.revert_resource.title":"Discard changes to resource","commands.revert_resource.is_new":"This is a new resource. To discard the creation of this resource, please delete it.","commands.revert_resource.dialog.title":"Are you sure you want to discard the changes to this resource?","commands.revert_resource.dialog.description":"Discarded changes cannot be restored.","commands.revert_resource.dialog.confirm":"Discard","commands.revert_widget.title":"Discard changes to widget","commands.revert_widget.is_new":"This is a new widget. To discard the creation of this widget, please delete it.","commands.revert_widget.is_not_modified":"This widget has not been modified. Therefore, nothing can be discarded.","commands.revert_widget.dialog.title":"Are you sure you want to discard the changes to this widget?","commands.revert_widget.dialog.description":"Discarded changes cannot be restored.","commands.revert_widget.dialog.confirm":"Discard","commands.restore_widget.title":"Restore widget","commands.restore_obj.title":"Restore page","commands.mark_resolved_obj.title":"Override concurrent changes to page","commands.mark_resolved_obj.dialog.confirm":"Override changes","commands.mark_resolved_obj.dialog.title":"Are you sure you want to override the changes made by others in the meantime?","commands.mark_resolved_obj.dialog.description":"This page was altered in a different working copy that has been published. Please confirm that you want to keep your changes and discard the ones concurrently made by others.","commands.duplicate_obj.title":"Duplicate page","commands.duplicate_obj.published_workspace":"Since this is the published content, nothing can be modified.","commands.duplicate_obj.has_children":"Pages with subpages cannot be duplicated yet.","commands.duplicate_widget.title":"Duplicate widget","commands.create_page.title":"Create page","commands.create_page.published_workspace":"Use a working copy for creating pages or editing existing content.","commands.add_subpage.child_list.no_path":"Subpages can only be added to pages that have a path.","commands.add_subpage.child_list.title":"Add page","commands.add_subpage.child_list.tooltip":'Add a page to "$1"',"commands.add_subpage.child_list.published_workspace":"Use a working copy to add subpages.","commands.add_subpage.current_page.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.add_subpage.current_page.title":"Add subpage","commands.add_subpage.current_page.tooltip":'Add a subpage to "$1"',"commands.add_subpage.current_page.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.child_list.no_path":"Subpages can only be added to pages that have a path.","commands.copy_obj_from_clipboard.child_list.paste_forbidden":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.copy_obj_from_clipboard.child_list.title":"Paste page here","commands.copy_obj_from_clipboard.child_list.tooltip":'Paste "$1" to "$2".',"commands.copy_obj_from_clipboard.child_list.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.child_list.obj_not_present":"There is no page on the clipboard","commands.copy_obj_from_clipboard.current_page.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.copy_obj_from_clipboard.current_page.paste_forbidden":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.copy_obj_from_clipboard.current_page.title":"Paste as subpage","commands.copy_obj_from_clipboard.current_page.tooltip":'Create a copy of "$1" and use it as a subpage of "$2".',"commands.copy_obj_from_clipboard.current_page.published_workspace":"Use a working copy to add subpages.","commands.copy_obj_from_clipboard.current_page.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.child_list.forbidden.invalid_class":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.move_obj_from_clipboard.child_list.forbidden.invalid_workspace":"A page can only be moved within its working copy.","commands.move_obj_from_clipboard.child_list.forbidden.no_path":"Subpages can only be added to pages that have a path.","commands.move_obj_from_clipboard.child_list.forbidden.obj_identity":"A page cannot be moved beneath itself.","commands.move_obj_from_clipboard.child_list.source_not_found":"The page to move could not be found in the current working copy.","commands.move_obj_from_clipboard.child_list.forbidden.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.child_list.title":"Move page here","commands.move_obj_from_clipboard.child_list.tooltip":'Move "$1" to "$2".',"commands.move_obj_from_clipboard.current_page.forbidden.invalid_class":"Due to its type, the page cannot be moved or pasted here. Only pages of the following types can be inserted here: $1","commands.move_obj_from_clipboard.current_page.forbidden.invalid_workspace":"A page can only be moved within its working copy.","commands.move_obj_from_clipboard.current_page.forbidden.no_path":"Subpages can only be added to pages that have a path. The current page doesn't have a path.","commands.move_obj_from_clipboard.current_page.forbidden.obj_identity":"A page cannot be moved beneath itself. The current page is on the clipboard.","commands.move_obj_from_clipboard.current_page.forbidden.obj_not_present":"There is no page on the clipboard","commands.move_obj_from_clipboard.current_page.source_not_found":"The page to move could not be found in the current working copy.","commands.move_obj_from_clipboard.current_page.title":"Move here as subpage","commands.move_obj_from_clipboard.current_page.tooltip":'Insert "$1" as a subpage of "$2".',"obj_sorting_dialog.title":"Sort items","commands.sort_items.title":"Sort items","commands.sort_items.tooltip":"Edit order of items underneath $1","commands.sort_items.auto_sort":"This navigation is sorted automatically.","commands.sort_items.too_less_children":"This navigation cannot be sorted because it consists of less than two items.","commands.choose_and_create_widget.title":"Insert widget","commands.choose_and_create_widget.disabled":"You cannot insert any widgets here.","commands.create_widget.title":"Insert $1","commands.widget_details.title":"Widget properties","commands.widget_details.has_no_properties":"This widget has no properties","commands.widget_details.dialog.title":'Properties of "$1"',"commands.save_widget_to_clipboard.title":"Copy widget","commands.copy_widget_from_clipboard.title":"Paste widget","commands.copy_widget_from_clipboard.paste_forbidden":"Due to its type, the widget cannot be moved or copied here. Only widgets of the following types can be inserted here: $1.","commands.delete_widget.title":"Delete widget","commands.delete_widget.dialog.title":"Are you sure you want to delete this widget?","commands.delete_widget.dialog.description":"A deleted widget cannot be restored.","commands.delete_widget.dialog.confirm":"Delete","topbar.show_menubar":"Show control panel","topbar.display_mode_selector.view_mode":"Preview","topbar.display_mode_selector.editing_mode":"Edit","topbar.display_mode_selector.diff_mode":"Changes","topbar.display_mode_selector.is_selected":"Currently selected display mode","topbar.saving_indicator.write_started":"Saving...","topbar.saving_indicator.write_ended":"Changes saved","topbar.warning.message":"Check JS console","topbar.warning.alert_message":"There are warnings. Please open the JavaScript console for details.","topbar.current_page_menu.title.is_new":"This page is new.","topbar.current_page_menu.title.is_edited":"This page has been modified.","topbar.current_page_menu.title.is_deleted":"This page has been deleted.","workflows.publish_workspace.dialog.confirm":"Publish","workflows.publish_workspace.dialog.title":'Publish "$1"?',"workflows.publish_workspace.dialog.description":"You can undo this publishing action using the publishing history.","workflows.publish_workspace.error_dialog.title":"Working copy could not be published","workflows.publish_workspace.error_dialog.description":"Please check the changes list for details.","workflows.publish_workspace.error_dialog.confirm":"Open changes list","workflows.publish_workspace.alert.invalid_certificates":"The working copy could not be published because at least one user is currently modifying content in it.",ajax_error:"Communication with the CMS failed with error: $1","ajax_error.communication":"Communication with the CMS failed. Please check your network connectivity.","ajax_error.message_for_editor":"During your last action, a technical error occurred. Please try again later. If the problem persists, please contact a technician familiar with this website and provide the error details.","workspace_limit_exceeded.message":"You have reached the maximum number of working copies included in your plan.",warn_before_unloading:"There are unsaved changes! Are you sure you want to close the page?","widgetlist_field_element.markup_error":"Scrivito found a widget with invalid markup. Please reload the page and try again. If the problem persists, please contact a technician familiar with this website.","test.two_arguments":"$1, $2","test.four_arguments":"$1, $2, $3, $4","image_editor_dialog.dialog_header.title":"Edit image"})},function(e,t,n){"use strict";var r=n(40);(function(e){return e&&e.__esModule?e:{default:e}})(r).default.load("de",{confirm:"Bestätigen",cancel:"Abbrechen",save:"Speichern",welcome:"Willkommen",welcome_x:"Willkommen $1",accept:"Übernehmen",close:"Schließen",done:"Fertig",loading:"Lade...",current_page:"Aktuelle Seite",ok:"Ok","models.page.name":"Seite","models.resource.name":"Ressource","models.obj.name.plural":"Objekte","obj.tooltip.is_new":"Dieses Element ist neu.","obj.tooltip.is_new.has_conflicts":"Dieses Element ist neu in dieser Arbeitskopie.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie angelegt und veröffentlicht.","obj.tooltip.is_new.has_conflicts.transfer_changes":"Dieses Element ist neu in dieser Arbeitskopie.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie angelegt und veröffentlicht wurde.","obj.tooltip.is_edited":"Dieses Element wurde geändert.","obj.tooltip.is_edited.has_conflicts":"Dieses Element wurde in dieser Arbeitskopie geändert.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht.","obj.tooltip.is_edited.has_conflicts.transfer_changes":"Dieses Element wurde in dieser Arbeitskopie geändert.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht wurde.","obj.tooltip.is_deleted":"Dieses Element wurde gelöscht.","obj.tooltip.is_deleted.has_conflicts":"Dieses Element wurde in dieser Arbeitskopie gelöscht.\nEs wurde zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht.","obj.tooltip.is_deleted.has_conflicts.transfer_changes":"Dieses Element wurde in dieser Arbeitskopie gelöscht.\nEs kann nicht verschoben werden, da es zwischenzeitlich mit einer anderen Arbeitskopie geändert und veröffentlicht wurde.","workspace.title_published":"Veröffentlichte Inhalte","workspace.empty_title":"<leerer Titel>","workspace.publish_error.exceeds_obj_limit":"Diese Arbeitskopie kann nicht veröffentlicht werden, weil die maximale Anzahl der in Ihrem Tarif enthaltenen CMS-Objekte überschritten wurde.","revision.published_by":'Benutzer mit der ID "$1"',"workspace.title.published":"Veröffentlichte Inhalte","workspace.title.blank":"[Leerer Titel]","default_inspector_description_for_obj.group_general":"Allgemein","default_inspector_description_for_obj.group_backlinks":"Verlinkt von","default_inspector_description_for_obj.group_binary_metadata":"Metadaten","default_inspector_description_for_obj.group_system":"System","item_description.system.id.title":"Objekt-ID","item_description.system.path.title":"Pfad","item_description.system.obj_class.title":"Objekttyp","item_description.system.permalink.title":"Permalink","item_description.system.history.created_at":"Erstellt","item_description.system.history.created_by":"Erstellt von","item_description.system.history.last_changed":"Zuletzt geändert","item_description.system.history.last_changed_by":"Zuletzt geändert von","item_description.system.history.not_available":"Nicht verfügbar","item_description.system.history.user_description_not_available":'Benutzer mit der ID "$1"',"backlinks_item_component.no_backlinks_box.message":'Keine Objekte verlinken "$1".',"stringlist_item_component.read_stringlist.placeholder":"Die Liste enthält keine Elemente","stringlist_item_component.edit_stringlist.add_placeholder":"Element hinzufügen","binary_attribute_component.download":"Herunterladen","binary_attribute_component.edit":"Bearbeiten","binary_attribute_component.empty":"Leer","binary_metadata_item_component.content_type":"Content type","binary_metadata_item_component.content_length":"Dateigröße","binary_metadata_item_component.filename":"Dateiname","binary_metadata_item_component.width":"Breite","binary_metadata_item_component.height":"Höhe","permalink_item_component.permalink.is_empty":"Nicht zugewiesen","widgetlist_attribute_component.is_empty":"Keine Widgets vorhanden.","link_item_component.link.title_placeholder":"Titel","link_item_component.link.url_placeholder":"URL","link_item_component.link.internal":"INTERN","link_item_component.link.new_tab":"Link in neuem Tab öffnen","link_item_component.link.delete":"Link löschen","linklist_item_component.linklist.undefined":"Keine Links gesetzt","reference_attribute_component.clear_button.title":"Löschen","details_dialog.title":'Eigenschaften von "$1" anzeigen',"details_dialog.title.editing_mode":'Eigenschaften von "$1" bearbeiten',"details_dialog.close":"Schließen","workspace_settings_dialog.title":'Einstellungen von "$1"',"workspace_settings_dialog.input.title":"Titel","workspace_settings_dialog.input.owners":"Besitzer","workspace_settings_dialog.nothing_found":"Nichts gefunden","workspace_settings_dialog.searching":"Suche...","workspace_settings_dialog.too_short":"Benutzer suchen...","workspace_settings_dialog.cancel":"Abbrechen","workspace_settings_dialog.confirm":"Bestätigen","workspace_changes_dialog.dialog_header.title":'Änderungen von "$1"',"workspace_changes_dialog.dialog_header.title.is_transfer_mode":'Änderungen verschieben von "$1"',"workspace_changes_dialog.dialog_header.count_title.one":"($1 Objekt)","workspace_changes_dialog.dialog_header.count_title.many":"($1 Objekte)","workspace_changes_dialog.dialog_header.count_title.many.has_more":"($1+ Objekte)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.one":"($1 Objekt zum verschieben)","workspace_changes_dialog.dialog_header.count_title.is_transfer_mode.many":"($1 Objekte zum verschieben)","workspace_changes_dialog.order_toggle.last_changed":"Nach Änderungsdatum sortieren","workspace_changes_dialog.order_toggle.last_changed.asc":"Älteste Änderung zuerst","workspace_changes_dialog.order_toggle.last_changed.desc":"Jüngste Änderung zuerst","workspace_changes_dialog.order_toggle.obj_class":"Nach Objekttyp sortieren","workspace_changes_dialog.order_toggle.obj_class.asc":"A bis Z (Typ)","workspace_changes_dialog.order_toggle.obj_class.desc":"Z bis A (Typ)","workspace_changes_dialog.order_toggle.modification":"Nach Art der Änderung sortieren","workspace_changes_dialog.order_toggle.modification.desc":"Neu, bearbeitet, gelöscht","workspace_changes_dialog.order_toggle.modification.asc":"Gelöscht, bearbeitet, neu","workspace_changes_dialog.order_toggle.is_disabled":"Aktuell ausgewählte Sortierung","workspace_changes_dialog.no_changes_notice":"In dieser Arbeitskopie wurde nichts geändert.","workspace_changes_dialog.change_item.last_changed":"Letzte Änderung","workspace_changes_dialog.change_item.publish_permission":"Veröffentlichung","workspace_changes_dialog.publish_permission.is_permitted":"ist erlaubt","workspace_changes_dialog.publish_permission.is_forbidden":"ist nicht erlaubt","workspace_changes_dialog.enable_transfer_mode_button.title":"Änderungen verschieben","workspace_changes_dialog.transfer_changes_button.title":"Ziel-Arbeitskopie auswählen","workspace_changes_dialog.disable_transfer_mode_button.title.cancel":"Abbrechen","workspace_changes_dialog.disable_transfer_mode_button.title.done":"Fertig","workspace_changes_dialog.close_dialog_button.title":"Schließen","workspace_publisher.exceeds_obj_limit":"Diese Arbeitskopie kann nicht veröffentlicht werden, weil die maximale Anzahl der in Ihrem Tarif enthaltenen CMS-Objekte überschritten wurde.","menu_item.spinner.loading":"Laden...","choose_obj_class_dialog.add_child_page.title":"Seitenvorlage auswählen","choose_obj_class_dialog.create_page.title":"Seitenvorlage auswählen","choose_obj_class_dialog.create_widget.title":"Widget auswählen","choose_obj_class_dialog.last_used":"Zuletzt verwendet","choose_obj_class_dialog.popular":"Oft verwendet","choose_obj_class_dialog.all":"Alle","editable_ws_dialog.view_mode.title.select_or_create":"Arbeitskopie wählen","editable_ws_dialog.view_mode.title.select":"Arbeitskopie auswählen","editable_ws_dialog.view_mode.title.create":"Arbeitskopie anlegen","editable_ws_dialog.view_mode.title.forbidden":"Keine Arbeitskopie verfügbar","editable_ws_dialog.view_mode.description.select_or_create":"Wählen Sie eine Arbeitskopie aus oder legen Sie eine neue an, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.select":"Wählen Sie eine Arbeitskopie aus, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.create":"Legen Sie eine neue Arbeitskopie an, um Inhalte zu ändern. Veröffentlichen Sie die Arbeitskopie nach Abschluss der Bearbeitung, oder lassen Sie sie veröffentlichen.","editable_ws_dialog.view_mode.description.forbidden":"Es gibt keine Arbeitskopie, in der Sie Inhalte ändern könnten. Auch wurde es Ihnen nicht ermöglicht, Arbeitskopien anzulegen.","editable_ws_dialog.transfer_changes.title.select_or_create":"Ziel-Arbeitskopie auswählen","editable_ws_dialog.transfer_changes.title.select":"Ziel-Arbeitskopie auswählen","editable_ws_dialog.transfer_changes.title.create":"Ziel-Arbeitskopie anlegen","editable_ws_dialog.transfer_changes.title.forbidden":"Keine Arbeitskopie verfügbar","editable_ws_dialog.transfer_changes.description.select_or_create":"Die Änderungen können in eine bestehende oder in eine neue Arbeitskopie verschoben werden.","editable_ws_dialog.transfer_changes.description.select":"Die Änderungen werden in die ausgewählte Arbeitskopie verschoben.","editable_ws_dialog.transfer_changes.description.create":"Bitte erstellen Sie die Ziel-Arbeitskopie","editable_ws_dialog.transfer_changes.description.forbidden":"Sie sind nicht dazu berechtigt, Änderungen in eine bestehende Arbeitskopie zu verschieben.","editable_ws_dialog.choose_existing":"Wählen Sie eine bestehende Arbeitskopie aus:","editable_ws_dialog.create_new":"Legen Sie eine neue Arbeitskopie an:","editable_ws_dialog.or_create_new":"Oder legen Sie eine neue an:","editable_ws_dialog.create_new_playholder":"Titel der neuen Arbeitskopie","editable_ws_dialog.select":"Auswählen","loader_error.title":"Beim Laden der Daten ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website.","publish_history_dialog.close":"Schließen","publish_history_dialog.info":"Wählen Sie aus der Liste eine Arbeitskopie, um einen archivierten Stand Ihrer Website zu sehen. Lernen Sie mehr über den ","publish_history_dialog.link":"Veröffentlichungsverlauf","publish_history_dialog.revision_list.changes_count":"Geändert","publish_history_dialog.revision_list.changes_count.many":"$1 Objekte","publish_history_dialog.revision_list.changes_count.not_available":"Nicht verfügbar","publish_history_dialog.revision_list.changes_count.one":"1 Objekt","publish_history_dialog.revision_list.is_limited":"Die Zahl der maximal angezeigten Verlaufseinträge ($1) hängt von Ihrem Tarif ab.","publish_history_dialog.revision_list.not_restorable":"Dies sind die aktuell veröffentlichten Inhalte.","publish_history_dialog.revision_list.published_at":"Veröffentlicht ","publish_history_dialog.title":"Veröffentlichungsverlauf","sidebar.browse_content_button.hint":"Content Browser öffnen","sidebar.browse_content_button.hint.is_disabled":"Der Content Browser ist nicht verfügbar, während gelöschte Inhalte angezeigt werden.","sidebar.details_button.hint":"Seiteneigenschaften anzeigen","sidebar.details_button.hint.active":"Seiteneigenschaften","sidebar.workspaces_button.hint":"Arbeitskopien anzeigen","sidebar.workspaces_button.hint.active":"Arbeitskopien","sidebar.devices_button.hint":"Seite in verschiedenen Größen betrachten","sidebar.devices_button.hint.active":"Seite in verschiedenen Größen","sidebar.hide_controls_button.hint":"Bedienleiste verstecken","sidebar.notifications_button.hint":"Benachrichtigungen anzeigen","sidebar.notifications_button.hint.active":"Benachrichtigungen","sidebar.workspace_list.workspace_item.hint.is_disabled":"Diese Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht ausgewählt werden","sidebar.workspace_list.workspace_item.hint.is_selectable":"Diese Arbeitskopie auswählen","sidebar.workspace_list.workspace_item.hint.is_published":"Veröffentlichte Inhalte auswählen","sidebar.workspace_list.workspace_item.hint":"Ausgewählte Arbeitskopie","sidebar.workspace_list.workspace_item.delete":"Diese Arbeitskopie löschen","sidebar.workspaces_panel.general_workspaces_group.title":"Arbeitskopien","sidebar.workspaces_panel.current_workspace_group.title":"Diese Arbeitskopie","sidebar.workspaces_panel.other_workspaces_group.title":"Andere Arbeitskopien","sidebar.workspaces_panel.create_workspace_button.title":"Neu","sidebar.workspaces_panel.create_workspace_button.hint":"Eine Arbeitskopie anlegen","sidebar.workspaces_panel.create_workspace_button.is_disabled":"Eine Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht angelegt werden.","sidebar.workspaces_panel.publish_history_button.title":"Verlauf","sidebar.workspaces_panel.publish_history_button.hint":"Veröffentlichungsverlauf anzeigen","sidebar.workspaces_panel.publish_history_button.is_disabled":"Der Veröffentlichungsverlauf kann aufgrund fehlender Benutzerrechte nicht angezeigt werden.","sidebar.workspaces_panel.changes_button.title":"Änderungen","sidebar.workspaces_panel.changes_button.hint":"Änderungen in dieser Arbeitskopie anzeigen","sidebar.workspaces_panel.changes_button.is_forbidden":"Die Änderungen in dieser Arbeitskopie können aufgrund fehlender Benutzerrechte nicht angezeigt werden.","sidebar.workspaces_panel.publish_button.title":"Veröffentlichen","sidebar.workspaces_panel.publish_button.hint":"Diese Arbeitskopie veröffentlichten","sidebar.workspaces_panel.publish_button.is_forbidden":"Die Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht veröffentlicht werden.","sidebar.workspaces_panel.rebase_button.title":"Aktualisieren","sidebar.workspaces_panel.rebase_button.hint":"Diese Arbeitskopie aktualisieren","sidebar.workspaces_panel.rebase_button.is_forbidden":"Die Arbeitskopie kann aufgrund fehlender Benutzerrechte nicht aktualisiert werden.","sidebar.workspaces_panel.settings_button.title":"Einstellungen","sidebar.workspaces_panel.settings_button.hint":"Einstellungen dieser Arbeitskopie bearbeiten","sidebar.workspaces_panel.settings_button.is_forbidden":"Die Einstellungen der Arbeitskopie können aufgrund fehlender Benutzerrechte nicht bearbeitet werden.","sidebar.notifications_panel.publish_restrictions_group.title":"Veröffentlichung nicht möglich","sidebar.notifications_panel.potential_conflicts_group.title":"Potenzieller Konflikt","sidebar.notifications_panel.potential_conflicts_group.description":"Änderungen an dieser Seite führen beim Veröffentlichen zu einem Konflikt. Die Seite wurde bereits in folgenden Arbeitskopien geändert:","sidebar.notifications_panel.conflict_group.title":"Konflikt","sidebar.notifications_panel.conflict_group.description1":"Eine andere Version dieser Seite wurde zwischenzeitlich veröffentlicht. ","sidebar.notifications_panel.conflict_group.link":"Lösen Sie den Konflikt","sidebar.notifications_panel.conflict_group.description2":", um diese Arbeitskopie veröffentlichen zu können.","sidebar.notifications_panel.no_notifications":"Derzeit keine Benachrichtigungen.","sidebar.devices_panel.title":"Vorschaugrößen","sidebar.devices_panel.device.desktop":"Desktop","sidebar.devices_panel.device.laptop":"Laptop","sidebar.devices_panel.device.mobile":"Mobiltelefon im Hochformat","sidebar.devices_panel.device.tablet":"Tablet im Hochformat","resource_dialog.commands.mark_resolved_obj.dialog.description":"Diese Ressource wurde in einer anderen, inzwischen veröffentlichten Arbeitskopie geändert. Bitte bestätigen Sie, dass Ihre Änderungen erhalten und die parallel durchgeführten Änderungen verworfen werden.","resource_dialog.commands.mark_resolved_obj.title":"Parallele Änderungen an der Ressource überschreiben","resource_dialog.commands.restore_obj.title":"Ressource wiederherstellen","resource_dialog.title":'Eigenschaften der Ressource "$1"',"menu_bar.create":"Anlegen","saving_indicator_item.saving":"Wird gespeichert...","saving_indicator_item.saved":"Änderungen gespeichert","inplace_marker.overlapping":"Zwei oder mehrere Menü-Handles überschneiden sich. Bitte passen Sie Ihr CSS an. Die folgenden Menü-Handles überschneiden sich:","widget_marker.widget_is_new":"Widget ist neu","widget_marker.widget_is_edited":"Widget wurde geändert","widget_marker.widget_is_edited_and_dragged_here":"Widget wurde geändert und hierher gezogen","widget_marker.widget_is_edited_and_dragged_away":"Widget wurde geändert und von hier weggezogen","widget_marker.widget_is_deleted":"Widget wurde gelöscht","widget_marker.widget_is_dragged_here":"Widget wurde hierher gezogen","widget_marker.widget_is_dragged_away":"Widget wurde von hier weggezogen","child_list_menu.description":"Elemente von $1","transfer_errors_dialog.title":"Fehler beim Verschieben von Änderungen","transfer_errors_dialog.modified":"Einige der Änderungen konnten nicht verschoben werden, weil die betreffenden Inhalte auch in der Ziel-Arbeitskopie modifiziert wurden.","transfer_errors_dialog.conflicting":"Einige der Änderungen wurden nicht verschoben, weil die betreffenden Inhalte in der Ziel-Arbeitskopie nicht aktuell sind. Die Änderungen auf diese Inhalte anzuwenden, würde zu einem Konflikt führen. Bitte stellen Sie sicher, dass beide Arbeitskopien aktualisiert wurden und konfliktfrei sind.","current_page_link_dialog.title":"Seite teilen","current_page_link_dialog.description":"Mit dieser URL können Sie die aktuelle Seite als Teil dieser Arbeitskopie teilen. Die Empfänger müssen angemeldet sein und Zugriff auf die Arbeitskopie haben.","error_dialog.toggle_details":"Technische Details","error_dialog.error_details":"Technische Details","commands.open_obj_in_content_browser.title":"Im Content Browser öffnen","commands.navigate_ui_to_obj.title":"Zum Objekt navigieren","commands.open_page_link_dialog.title":"Seite teilen","commands.open_page_link_dialog.is_deleted":"Eine gelöschte Seite kann nicht geteilt werden, weil sie in der Vorschau nicht zugänglich ist","commands.create_workspace.dialog.title":"Arbeitskopie anlegen","commands.create_workspace.dialog.description":"Bitte geben Sie den Titel der neuen Arbeitskopie ein.","commands.create_workspace.dialog.placeholder":"Neuer Titel","commands.create_workspace.dialog.accept":"Anlegen","commands.open_dashboard.title":"Dashboard öffnen","commands.open_user_guide.title":"Hilfe öffnen","commands.rebase_workspace.has_conflicts.title":"Geänderte Inhalte wurden zwischenzeitlich veröffentlicht","commands.rebase_workspace.has_conflicts.description":"Ihre Arbeitskopie konnte nicht vollständig aktualisiert werden. Einige Inhalte wurden auch in einer anderen Arbeitskopie geändert, die inzwischen veröffentlicht wurde. Bitte entnehmen Sie die Details der Liste der Änderungen.","commands.rebase_workspace.open_changes_dialog":"Änderungen anzeigen","workflows.delete_workspace.dialog.title":'Wirklich "$1" löschen?',"workflows.delete_workspace.dialog.description":"Eine gelöschte Arbeitskopie kann nicht wiederhergestellt werden.","workflows.delete_workspace.dialog.confirm":"Löschen","workflows.change_permalink.dialog.title":'Permalink von "$1" ändern',"workflows.change_permalink.dialog.placeholder":"Bitte geben Sie einen neuen Permalink ein.","workflows.change_permalink.dialog.change":"Ändern","workflows.change_permalink.info.is_taken":'Der Permalink "$1" wird bereits verwendet.',"workflows.change_permalink.info.is_invalid":'Der Permalink "$1" ist nicht zulässig: Ein Permalink darf nur die Buchstaben von A bis Z, Punkte, Schrägstriche, Trenn- und Unterstriche enthalten.',"workflows.change_permalink.info.is_scrivito":'Der Permalink "$1" ist nicht zulässig: Ein Permalink darf nicht "scrivito" lauten und darf nicht mit "scrivito/" anfangen.',"commands.restore_workspace.dialog.confirm":"Anlegen","commands.restore_workspace.dialog.description":'Dies legt eine Arbeitskopie an, die den archivierten Stand Ihrer Website enthält, nachdem "$1" veröffentlicht wurde.',"commands.restore_workspace.dialog.title":'"$1" anlegen?',"commands.restore_workspace.workspace_title":"Archiviert: $1","commands.open_page_details.title.editing_mode":"Seiteneigenschaften bearbeiten","commands.open_page_details.title":"Seiteneigenschaften anzeigen","commands.open_page_details.dialog.title.editing_mode":'Eigenschaften von "$1" bearbeiten',"commands.open_page_details.dialog.title":'Eigenschaften von "$1" anzeigen',"commands.open_page_details.is_disabled":"Diese Seite hat keine Eigenschaften","commands.save_obj_to_clipboard.title":"Seite kopieren oder verschieben","commands.save_obj_to_clipboard.has_children":"Seiten mit Unterseiten können noch nicht verschoben oder kopiert werden.","commands.save_obj_to_clipboard.is_deleted":"Gelöschte Seiten können nocht nicht verschoben oder kopiert werden.","confirm_delete_dialog.cancel":"Abbrechen","confirm_delete_dialog.confirm":"Löschen","confirm_delete_dialog.confirm.has_backlinks":"Trotzdem löschen","confirm_delete_dialog.is_edited":"Diese $1 kann bei Bedarf später wiederhergestellt werden, jedoch ohne die Änderungen, die in der aktuellen Arbeitskopie an ihr vorgenommen wurden.","confirm_delete_dialog.is_new":"Sie sind dabei, eine neue $1 dieser Arbeitskopie zu löschen. Dies kann nicht rückgängig gemacht werden. Bei Bedarf können Sie die $1 jedoch erneut erstellen und verlinken.","confirm_delete_dialog.one_obj_to_delete.many_backlinks":"$1 Objekte verlinken dieses $2:","confirm_delete_dialog.many_objs_to_delete.many_backlinks":"$1 Objekte verlinken diese $2:","confirm_delete_dialog.not_modified":"Diese $1 kann bei Bedarf später wiederhergestellt werden.","confirm_delete_dialog.one_obj_to_delete.one_backlink":"Ein Objekt verlinkt dieses $1:","confirm_delete_dialog.many_objs_to_delete.one_backlink":"Ein Objekt verlinkt diese $1:","confirm_delete_dialog.title":"Sind Sie sicher, dass Sie diese $1 löschen möchten?","confirm_delete_dialog.title.many_subjects":"Sind Sie sicher, dass Sie diese $1 löschen möchten?","commands.delete_obj.has_children":"Seiten mit Unterseiten können noch nicht gelöscht werden.","commands.delete_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden.","commands.delete_obj.title":"$1 löschen","commands.revert_obj.title":"Änderungen an Seite verwerfen","commands.revert_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden. Daher gibt es nichts zu verwerfen.","commands.revert_obj.is_new":"Dies ist eine neue Seite. Um die Erstellung dieser Seite rückgängig zu machen, löschen Sie sie bitte.","commands.revert_obj.unmodified":"Diese Seite wurde nicht geändert. Daher gibt es nichts zu verwerfen.","commands.revert_obj.dialog.title":"Wirklich Änderungen an dieser Seite verwerfen?","commands.revert_obj.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_obj.dialog.confirm":"Verwerfen","commands.revert_resource.title":"Änderungen an Ressource verwerfen","commands.revert_resource.is_new":"Dies ist eine neue Ressource. Um die Erstellung dieser Ressource rückgängig zu machen, löschen Sie sie bitte.","commands.revert_resource.dialog.title":"Wirklich Änderungen an dieser Ressource verwerfen?","commands.revert_resource.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_resource.dialog.confirm":"Verwerfen","commands.revert_widget.title":"Änderungen am Widget verwerfen","commands.revert_widget.is_new":"Dies ist ein neues Widget. Um die Erstellung dieses Widgets rückgängig zu machen, löschen Sie es bitte.","commands.revert_widget.is_not_modified":"Dieses Widget wurde nicht geändert. Daher gibt es nichts zu verwerfen.","commands.revert_widget.dialog.title":"Wirklich Änderungen an diesem Widget verwerfen?","commands.revert_widget.dialog.description":"Verworfene Änderungen können nicht wiederhergestellt werden.","commands.revert_widget.dialog.confirm":"Verwerfen","commands.restore_widget.title":"Widget wiederherstellen","commands.restore_obj.title":"Seite wiederherstellen","commands.mark_resolved_obj.title":"Parallele Änderungen an der Seite überschreiben","commands.mark_resolved_obj.dialog.title":"Wirklich parallele Änderungen an der Seite überschreiben?","commands.mark_resolved_obj.dialog.description":"Diese Seite wurde in einer anderen, inzwischen veröffentlichten Arbeitskopie geändert. Bitte bestätigen Sie, dass Ihre Änderungen erhalten und die parallel durchgeführten Änderungen verworfen werden.","commands.mark_resolved_obj.dialog.confirm":"Änderungen überschreiben","commands.duplicate_obj.title":"Seite duplizieren","commands.duplicate_obj.published_workspace":"Die veröffentlichten Inhalte können nicht direkt geändert werden.","commands.duplicate_obj.has_children":"Seiten mit Unterseiten können noch nicht dupliziert werden.","commands.duplicate_widget.title":"Widget duplizieren","commands.create_page.title":"Neue Seite","commands.create_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Seiten anzulegen oder bestehende Inhalte zu ändern.","commands.add_subpage.child_list.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.add_subpage.child_list.title":"Seite hinzufügen","commands.add_subpage.child_list.tooltip":'Eine Seite zu "$1" hinzufügen',"commands.add_subpage.child_list.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.add_subpage.current_page.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.add_subpage.current_page.title":"Unterseite hinzufügen","commands.add_subpage.current_page.tooltip":'Eine Unterseite zu "$1" hinzufügen',"commands.add_subpage.current_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.child_list.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.copy_obj_from_clipboard.child_list.paste_forbidden":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder kopiert werden: $1","commands.copy_obj_from_clipboard.child_list.title":"Seite hier einfügen","commands.copy_obj_from_clipboard.child_list.tooltip":'Seite "$1" unterhalb von "$2" einfügen.',"commands.copy_obj_from_clipboard.child_list.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.child_list.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.copy_obj_from_clipboard.current_page.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.copy_obj_from_clipboard.current_page.paste_forbidden":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder eingefügt werden: $1","commands.copy_obj_from_clipboard.current_page.title":"Als Unterseite einfügen","commands.copy_obj_from_clipboard.current_page.tooltip":'Erstelle eine Kopie von "$1" und verwende sie als eine Unterseite von "$2".',"commands.copy_obj_from_clipboard.current_page.published_workspace":"Verwenden Sie eine Arbeitskopie, um Unterseiten hinzuzufügen.","commands.copy_obj_from_clipboard.current_page.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.child_list.forbidden.invalid_class":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder kopiert werden: $1","commands.move_obj_from_clipboard.child_list.forbidden.invalid_workspace":"Eine Seite kann nur innerhalb ihrer Arbeitskopie verschoben werden.","commands.move_obj_from_clipboard.child_list.forbidden.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben.","commands.move_obj_from_clipboard.child_list.forbidden.obj_identity":"Eine Seite kann nicht unter sich selbst verschoben werden.","commands.move_obj_from_clipboard.child_list.forbidden.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.child_list.source_not_found":"Die zu verschiebende Seite konnte in der aktuellen Arbeitskopie nicht gefunden werden.","commands.move_obj_from_clipboard.child_list.title":"Seite hierher verschieben","commands.move_obj_from_clipboard.child_list.tooltip":'Seite "$1" unterhalb von "$2" verschieben.',"commands.move_obj_from_clipboard.current_page.forbidden.invalid_class":"Aufgrund ihres Typs kann die Seite hier nicht eingefügt werden. Nur Seiten der folgenden Typen können hierher verschoben oder hier eingefügt werden: $1","commands.move_obj_from_clipboard.current_page.forbidden.invalid_workspace":"Eine Seite kann nur innerhalb ihrer Arbeitskopie verschoben werden.","commands.move_obj_from_clipboard.current_page.forbidden.no_path":"Unterseiten können nur zu Seiten hinzugefügt werden, die einen Pfad haben. Die aktuelle Seite hat keinen Pfad.","commands.move_obj_from_clipboard.current_page.forbidden.obj_identity":"Eine Seite kann nicht unter sich selbst verschoben werden. Die aktuelle Seite liegt in der Zwischenablage.","commands.move_obj_from_clipboard.current_page.forbidden.obj_not_present":"Es befindet sich keine Seite in der Zwischenablage","commands.move_obj_from_clipboard.current_page.source_not_found":"Die zu verschiebende Seite konnte in der aktuellen Arbeitskopie nicht gefunden werden.","commands.move_obj_from_clipboard.current_page.title":"Als Unterseite hierher verschieben","commands.move_obj_from_clipboard.current_page.tooltip":'Füge "$1" als Unterseite von "$2" ein.',"obj_sorting_dialog.title":"Elemente sortieren","commands.sort_items.title":"Elemente sortieren","commands.sort_items.tooltip":"Reihenfolge der Elemente unterhalb $1 bearbeiten","commands.sort_items.auto_sort":"Diese Navigation wird automatisch sortiert.","commands.sort_items.too_less_children":"Die Navigation kann nicht sortiert werden, weil sie weniger als zwei Elemente enthält.","commands.choose_and_create_widget.title":"Widget hinzufügen","commands.choose_and_create_widget.disabled":"Sie können hier keine Widgets einfügen.","commands.create_widget.title":"$1 einfügen","commands.widget_details.title":"Widget-Eigenschaften","commands.widget_details.has_no_properties":"Dieses Widget hat keine Eigenschaften","commands.widget_details.dialog.title":'Eigenschaften von "$1"',"commands.save_widget_to_clipboard.title":"Widget kopieren","commands.copy_widget_from_clipboard.title":"Widget einfügen","commands.copy_widget_from_clipboard.paste_forbidden":"Aufgrund seines Typs kann das Widget hier nicht eingefügt werden. Nur Widgets der folgenden Typen können hierher verschoben oder kopiert werden: $1.","commands.delete_widget.title":"Widget löschen","commands.delete_widget.dialog.title":"Wirklich dieses Widget löschen?","commands.delete_widget.dialog.description":"Ein gelöschtes Widget kann nicht wiederhergestellt werden.","commands.delete_widget.dialog.confirm":"Löschen","topbar.show_menubar":"Bedienleiste einblenden","topbar.display_mode_selector.view_mode":"Vorschau","topbar.display_mode_selector.editing_mode":"Bearbeiten","topbar.display_mode_selector.diff_mode":"Vergleichen","topbar.display_mode_selector.is_selected":"Aktuell ausgewählter Anzeigemodus","topbar.saving_indicator.write_started":"Wird gespeichert...","topbar.saving_indicator.write_ended":"Änderungen gespeichert","topbar.warning.message":"Bitte die JS-Konsole prüfen","topbar.warning.alert_message":"Es gab Warnungen. Für Details, schauen Sie bitte in die JavaScript-Konsole.","topbar.current_page_menu.title.is_new":"Diese Seite ist neu.","topbar.current_page_menu.title.is_edited":"Diese Seite wurde geändert.","topbar.current_page_menu.title.is_deleted":"Diese Seite wurde gelöscht.","workflows.publish_workspace.dialog.confirm":"Veröffentlichen","workflows.publish_workspace.dialog.title":'"$1" veröffentlichen?',"workflows.publish_workspace.dialog.description":"Sie können diese Veröffentlichung mit Hilfe des Veröffentlichungsverlaufs rückgängig machen.","workflows.publish_workspace.error_dialog.title":"Arbeitskopie konnte nicht veröffentlicht werden","workflows.publish_workspace.error_dialog.description":"Bitte entnehmen Sie die Details der Liste der Änderungen.","workflows.publish_workspace.error_dialog.confirm":"Liste der Änderungen","workflows.publish_workspace.alert.invalid_certificates":"Die Arbeitskopie konnte nicht veröffentlicht werden, weil mindestens ein Benutzer gerade Inhalte darin ändert.",ajax_error:"Die Kommunikation mit dem CMS ist aufgrund eines Fehlers fehlgeschlagen: $1","ajax_error.communication":"Die Kommunikation mit dem CMS ist fehlgeschlagen. Bitte überprüfen Sie Ihre Netzwerkverbindung.","ajax_error.message_for_editor":"Bei Ihrer letzten Aktion ist ein technischer Fehler aufgetreten. Bitte versuchen Sie es später noch einmal. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website und geben Sie bitte die technischen Details an.","workspace_limit_exceeded.message":"In Ihrem Tarif sind keine weiteren Arbeitskopien verfügbar.",warn_before_unloading:"Es gibt nicht gespeicherte Änderungen! Möchten Sie das Browserfenster trotzdem schließen?","widgetlist_field_element.markup_error":"Scrivito hat festgestellt, dass eines der Widgets invalides Markup aufweist. Bitte laden Sie die Seite neu und versuchen Sie es noch einmal. Falls das Problem bestehen bleibt, wenden Sie sich bitte an Ihren technischen Ansprechpartner für diese Website.","test.two_arguments":"$1, $2","test.four_arguments":"$1, $2, $3, $4","image_editor_dialog.dialog_header.title":"Bild bearbeiten"})},function(e,t,n){"use strict";function r(e){Object.defineProperty(e,"Scrivito",{get:function(){throw new Error("Are you trying to access the Scrivito API? Switch your JavaScript console to the application frame first. See https://scrivito.com/using-browser-console")}})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r}]);