//>>built
define("mill/jssupport/jsApplication/controlSet/_ControlSetFullScreenModeMixin",["dojo/_base/declare","dojo/on"],function(e,d){return e("mill.jssupport.jsApplication.controlSet._ControlSetFullScreenModeMixin",null,{fullScreenMode:null,overlay:null,offFullScreenMode:function(){if(this.fullScreenMode&&this.overlay){this.placeAt(this.overlay,"before");this.overlay.remove();this.overlay=this.fullScreenMode=null;var a=app.getControlNestedControlSetGroup(this)[0];a&&(a.set("contentHidden",!0),a.titleCollapseButton.innerHTML=
"\x26#9998;",a.set("toggleContentView",function(){this.initFullScreenMode()}.bind(this)),a.finalizeButtonWidget.set("labelIdent",window.app.combinedTranslationIdent(a.finalizeButtonIdent)||"Office.SubmitApplication"),window.app.setControlValue([a.finalizeButtonWidget],!1,"disabled"))}},initFullScreenMode:function(){if(!this.overlay){this.fullScreenMode=!0;this.overlay=function(c){var b=document.createElement("div");b.classList.add("controlSetOverlay");c.parentNode.insertBefore(b,c);return b}(this.domNode);
var a=function(c){var b=document.createElement("div");b.classList.add("controlSetWrapper");c.appendChild(b);return c.childNodes[c.childNodes.length-1]}(function(c){var b=document.createElement("div");b.classList.add("controlSetWrapperOuter");c.appendChild(b);return b}(this.overlay));this.placeAt(a,"last");(function(c,b,f,g){d(c,"click",g);d(b,"click",f)})(this.overlay,a,this.preventDefaultEvt.bind(this),this.offFullScreenMode.bind(this));if(a=app.getControlNestedControlSetGroup(this)[0])a.set("contentHidden",
!1),a.titleCollapseButton.innerHTML=""}},preventDefaultEvt:function(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},destroyRecursive:function(){var a=this.overlay;this.inherited(arguments);a&&a.remove()}})});