//>>built
require({cache:{"url:mill/jssupport/layout/carouselView/carouselViewSlideBreadcrumbsItem.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsItemContainer"\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsItemContainerCell"\x3e\x3ci class\x3d"icon-set-circle-down"\x3e\x3c/i\x3e\x3c/div\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsItemContainerCell"\x3e\x3cdiv\x3e\x3ca href\x3d"javascript:" data-dojo-attach-event\x3d"onClick: onClick" data-dojo-attach-point\x3d"titleNode"\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsItemTooltip" data-dojo-attach-point\x3d"messageNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e',
"url:mill/jssupport/layout/carouselView/carouselViewSlideBreadcrumbs.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeCarouselViewSlideBreadcrumbsContent" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e'}});
define("mill/jssupport/layout/carouselView/CarouselViewSlideBreadcrumbs","dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/dom-class dojo/dom-construct dojo/dom-style dojo/query dojo/on dijit/registry dijit/_WidgetBase dijit/_Container dijit/_TemplatedMixin dijit/_CssStateMixin dojo/text!mill/jssupport/layout/carouselView/carouselViewSlideBreadcrumbs.html dojo/text!mill/jssupport/layout/carouselView/carouselViewSlideBreadcrumbsItem.html mill/jssupport/base mill/jssupport/jsApplication/controlSet/ControlSet mill/mill".split(" "),function(m,
g,e,h,n,l,u,p,v,q,w,r,x,y,z,A,B,k){var C=m("office.layout.CarouselViewSlideBreadcrumbsItem",[q,r,x],{baseClass:"officeCarouselViewSlideBreadcrumbsItem",templateString:z,controlSetGroup:null,selected:null,isFilled:null,index:null,title:null,message:null,disabled:null,titleNode:null,messageNode:null,attributeMap:{title:{node:"titleNode",type:"innerHTML"},message:{node:"messageNode",type:"innerHTML"}},postMixInProperties:function(){this.inherited(arguments);this.message=this.title="";window.hasOwnProperty("app")&&
(this.title=A.getLocalization("Office.Step")+" "+String(this.index)+". "+(window.app.getTranslation(this.controlSetGroup.titleIdent)||this.controlSetGroup.description));this.controlSetGroup.isRequired&&(this.title+="\x26#160;\x3cspan class\x3d'red'\x3e*\x3c/span\x3e",this.state=this.controlSetGroup.isRequired?"Required":null)},startup:function(){this.inherited(arguments);this.init()},init:function(){this.controlSetGroup.set("breadcrumbs",this.getParent());this.controlSetGroup.set("breadcrumbItem",
this);this.initControlSetGroupVisibility();this.initState()},initControlSetGroupVisibility:function(){var a=v.byId("main");a&&a.hasOwnProperty("contentPane")&&a.contentPane.domNode.scrollTo(0,0);h[this.selected?"remove":"add"](this.controlSetGroup.domNode,"hide-on-all")},initState:function(){var a=this.controlSetGroup,c=this.controlSetGroup.getIsAvail(),b=!c,d;null!==c&&g.isObject(c)&&(b=!k.fieldValue(c,"value"),c=k.fieldValue(c,"tooltips"),g.isArray(c)&&(d="\x3cdiv\x3e"+window.app.getTranslation("SubsetDisabledReasons")+
":\x3c/div\x3e\x3cul\x3e"+e.map(c,function(f){return"\x3cli\x3e"+f+"\x3c/li\x3e"})+"\x3c/ul\x3e"));this.set("disabled",b);b&&d?this.set("message",d):b||(this.set("message",""),this.isFilled=h.contains(a.domNode,"notChangeMode"),b=null,a.hasOwnProperty("contentFormWrapper")&&(b=h.contains(a.contentFormWrapper,"officeFormContentFormWrapperInvalid")||!!u(".officeFormContentFormWrapperInvalid",a.contentFormWrapper).length),h[!0===b?"add":"remove"](this.domNode,"officeCarouselViewSlideBreadcrumbsItemIsInvalid"),
h[!b&&this.isFilled?"add":"remove"](this.domNode,"officeCarouselViewSlideBreadcrumbsItemIsFilled"))},onClick:function(){this.getParent().selectBreadcrumb(this)}});return k.registerAlias("office.layout.CarouselViewSlideBreadcrumbs",m("mill.jssupport.layout.carouselView.CarouselViewSlideBreadcrumbs",[q,w,r],{baseClass:"officeCarouselViewSlideBreadcrumbs",templateString:y,refSlideContent:null,initialInitialized:null,_getControlSetGroupsAttr:function(){return function(){if(window.hasOwnProperty("app")){for(var a=
this.refSlideContent;a&&a.getChildren()&&!a.isInstanceOf(B);)a=a.getChildren()[0];return a&&g.isObject(a)&&g.isFunction(a.getChildren)?a.getChildren():[]}}}(),init:function(){if(!this.initialInitialized){this.initialInitialized=!0;var a=this.get("controlSetGroups");a.length&&(e.forEach(a,function(c,b){this.addChild(new C({controlSetGroup:c,selected:0===b,index:b+1}))},this),a=n.create("div",{innerHTML:"\u0428\u0430\u0433\u0438",className:"officeBreadcrumbsMobileIcon"},this.domNode),p(a,"click",function(){l.set(this.domNode,
{left:"0"})}.bind(this)),a=n.create("div",{innerHTML:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",className:"officeBreadcrumbsMobileCloseIcon"},this.domNode),p(a,"click",function(){l.set(this.domNode,{left:"100%"})}.bind(this)))}},initItemsState:function(){e.forEach(this.getChildren(),function(a){a.initState()})},selectBreadcrumb:function(a){a&&!a.disabled&&(e.forEach(this.getChildren(),function(c){c!==a&&c.get("selected")&&(c.set("selected",!1),c.initControlSetGroupVisibility())}),a.set("selected",
!0),a.initControlSetGroupVisibility(),l.set(this.domNode,{left:"100%"}))},nextItem:function(){var a=e.filter(this.getChildren(),function(d){return d.get("selected")})[0],c=k.fieldValue(a,"index"),b=null;e.forEach(this.getChildren(),function(d){var f=d.controlSetGroup.getIsAvail(),t=!!f;null!==f&&g.isObject(f)&&(t=!!k.fieldValue(f,"value"));null===b&&d.get("index")>c&&!d.isFilled&&t&&(b=d)});b||e.forEach(this.getChildren(),function(d){null===b&&!d.isFilled&&d.controlSetGroup.getIsAvail()&&(b=d)});
b&&this.selectBreadcrumb(b)}}))});