//>>built
require({cache:{"url:mill/jssupport/layout/carouselView/carouselView.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeCarouselViewViewport"\x3e\x3cdiv data-dojo-attach-point\x3d"slides" class\x3d"officeCarouselViewSlidesContainer"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'}});
define("mill/jssupport/layout/carouselView/CarouselView","dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/query dojo/topic dojo/Deferred dojo/dom-style dojo/dom-construct dojo/html dojo/router dijit/registry dijit/_WidgetBase dijit/_Container dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dijit/_CssStateMixin dojo/text!mill/jssupport/layout/carouselView/carouselView.html mill/jssupport/layout/layoutMenu/LayoutMenuTreeNode mill/jssupport/layout/carouselView/LayoutScrollSpy mill/jssupport/layout/carouselView/CarouselViewSlideBreadcrumbs mill/jssupport/base".split(" "),function(k,
f,w,h,p,x,l,y,H,z,q,m,r,t,A,B,C,u,D,E,v){var F=k("office.layout._CarouselViewSlideContent",[m,r,t,A],{}),G=k("office.layout._CarouselViewSlide",[m,r,B],{baseClass:"officeCarouselViewSlide",content:null,anchor:null,selected:null,doScrollSpy:null,scrollSpyFullWidth:null,breadcrumbs:null,_carouselWidget:null,_layoutMenuItemWidget:null,_layoutMobileMenuItemWidget:null,_layoutScrollSpyWidget:null,_breadcrumbsWidget:null,_setContentAttr:function(a){a=(new F({templateString:"\x3cdiv\x3e"+(this.content=a)+
"\x3c/div\x3e",attachScope:this})).placeAt(this.domNode);this.breadcrumbs&&(this._breadcrumbsWidget=new E({refSlideContent:a}),this._breadcrumbsWidget.placeAt(this._carouselWidget.domNode,"before"))},_setDoScrollSpyAttr:function(a){var b=this._carouselWidget.getParent();b&&a&&(this.doScrollSpy=a,this._layoutScrollSpyWidget=new D({fullWidth:this.scrollSpyFullWidth},y.create("div",{},b.containerNode||b.domNode)),this._layoutScrollSpyWidget.startup())},postCreate:function(){this.inherited(arguments);
var a=z.register(this.anchor.replace(/^#/,""),function(b){});this.own(a.register(f.hitch(this,this.selectSlide)))},startup:function(){this.inherited(arguments);if(this._layoutScrollSpyWidget){for(var a=this;!a.isInstanceOf(office.form._FormWrapper)&&a.getChildren()&&a.getChildren()[0];)a=a.getChildren()[0];if(a.isInstanceOf(office.form._FormWrapper))for(var b=0;b<a.forms.length;b++){var c=new offce.layout._LayoutScrollSpyItem({formContentWidget:a.forms[b].widget,textIdentifier:a.forms[b].widget.scrollSpyTitle||
a.forms[b].widget.formTitle,idx:this._layoutScrollSpyWidget.getChildren().length});c.startup();this._layoutScrollSpyWidget.addChild(c);a.forms[b].widget.set("_layoutScrollSpyItem",c)}}},selectSlide:function(){for(var a=0;a<this._carouselWidget._createdSlides.length;a++){var b=this._carouselWidget._createdSlides[a],c=b._layoutMenuItemWidget,n=null,d=b===this;window.xwz&&d!==b.get("selected")&&(n=d);b.set("selected",d);b.setFocusable(d);l.set(b.domNode,{display:d?"inline-block":"none"});var g=q.byId("main");
g&&g.hasOwnProperty("contentPane")&&(g=g.contentPane.domNode)&&(g.scrollTop=0);b._layoutScrollSpyWidget&&l.set(b._layoutScrollSpyWidget.domNode,{display:d?"block":"none"});b._breadcrumbsWidget&&(l.set(b._breadcrumbsWidget.domNode,{display:d?"inline-block":"none"}),d&&b._breadcrumbsWidget.init());if(c){for(c.set("selected",b.get("selected"));!c.isInstanceOf(u)&&c.getParent();)c=c.getParent();c.isInstanceOf(u)&&(d=!!w.filter(h("li.officeLayoutMenuElem",c.domNode),function(e){return!!h(".officeLayoutMenuItem.officeLayoutMenuItemSelected",
e).length}).length,c.set("selected",d))}"boolean"===typeof n&&p.publish("office.layout._CarouselViewSlide/changedState",{slide:b,newValue:n})}f.hitch(this,function(){if(!window.xwz){for(var e=this;!e.isInstanceOf(office.form._FormWrapper)&&e.getChildren()&&e.getChildren()[0];)e=e.getChildren()[0];e.isInstanceOf(office.form._FormWrapper)&&(f.hitch(e.forms[0].widget,function(){this._deferredActionHandler||(this._deferredActionHandler=new x);this._deferredActionHandler.isResolved()||this._deferredActionHandler.resolve()})(),
e.onSelect())}})()},setFocusable:function(a){h("[widgetid]",this.domNode).forEach(function(b){(b=q.byNode(b))&&b.focusNode&&b.focusNode.setAttribute("tabIndex",!a||!window.xwz&&b.isInstanceOf(office.form.Attachment)?"-1":"0")});h("a",this.domNode).forEach(function(b){b.setAttribute("tabIndex","-1")})}});return mill.registerAlias("office.layout.CarouselView",k("mill.jssupport.layout.carouselView.CarouselView",[m,t],{baseClass:"officeCarouselView",templateString:C,region:null,_createdSlides:null,postMixInProperties:function(){this.inherited(arguments);
this._createdSlides=this._createdSlides||[]},postCreate:function(){this.inherited(arguments);this.own(p.subscribe("office.layout.CarouselView.registerItem",f.hitch(this,this.registerItem)))},registerItem:function(a){if(this.region===a.region){var b={};a.hasOwnProperty("preventMenuItem")?!0!==a.preventMenuItem&&(b=v.registerMenuItem(a)):b=v.registerMenuItem(a);b={content:a.node,anchor:a.anchor,_carouselWidget:this,_layoutMenuItemWidget:b.layoutItem||null,_layoutMobileMenuItemWidget:b.mobileItem||null};
a.doScrollSpy&&f.mixin(b,{doScrollSpy:a.doScrollSpy});a.scrollSpyFullWidth&&f.mixin(b,{scrollSpyFullWidth:a.scrollSpyFullWidth});a.breadcrumbs&&(b.breadcrumbs=a.breadcrumbs);a=new G(b,this.slides.appendChild(document.createElement("div")));a.startup();this._createdSlides.push(a)}}}))});