@syncfusion/ej2-react-ribbon 23.1.43 → 23.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 23.1.44 (2023-11-07)
6
+
7
+ ### Ribbon
8
+
9
+ #### Bug Fixes
10
+
11
+ `#I509963` - Now the issue with hide/disable method not working properly with the tab items that are not loaded in initial rendering has been resolved.
12
+
13
+
14
+ `#I510661` - Now the script issue raised with the createPopupOnClick property enabled in the dropdown item overflow popup has been resolved.
15
+
16
+
17
+ ## 23.1.43 (2023-10-31)
18
+
5
19
  ### Ribbon
6
20
 
7
21
  #### Features
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * filename: ej2-react-ribbon.min.js
3
- * version : 23.1.43
3
+ * version : 23.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
8
8
  * applicable laws.
9
9
  */
10
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionPopups"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSplitbuttons","SyncfusionReactBase","SyncfusionButtons","SyncfusionNavigations","SyncfusionPopups","SyncfusionDropdowns","React","SyncfusionInputs"],e):"object"==typeof exports?exports.SyncfusionReactRibbon=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionPopups"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):t.SyncfusionReactRibbon=e(t.SyncfusionBase,t.SyncfusionSplitbuttons,t.SyncfusionReactBase,t.SyncfusionButtons,t.SyncfusionNavigations,t.SyncfusionPopups,t.SyncfusionDropdowns,t.React,t.SyncfusionInputs)}(this,function(t,e,n,r,o,i,s,c,u){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.d(e,"G",function(){return r}),n.d(e,"P",function(){return o}),n.d(e,"j",function(){return i}),n.d(e,"Q",function(){return s}),n.d(e,"I",function(){return c}),n.d(e,"R",function(){return u}),n.d(e,"S",function(){return a}),n.d(e,"K",function(){return l}),n.d(e,"H",function(){return p}),n.d(e,"L",function(){return d}),n.d(e,"J",function(){return f}),n.d(e,"F",function(){return h}),n.d(e,"T",function(){return b}),n.d(e,"U",function(){return m}),n.d(e,"V",function(){return v}),n.d(e,"W",function(){return y}),n.d(e,"X",function(){return g}),n.d(e,"Y",function(){return _}),n.d(e,"Z",function(){return S}),n.d(e,"_0",function(){return I}),n.d(e,"_1",function(){return C}),n.d(e,"_2",function(){return B}),n.d(e,"_3",function(){return O}),n.d(e,"_4",function(){return w}),n.d(e,"_5",function(){return P}),n.d(e,"_6",function(){return D}),n.d(e,"_7",function(){return L}),n.d(e,"C",function(){return k}),n.d(e,"D",function(){return T}),n.d(e,"B",function(){return E}),n.d(e,"E",function(){return x}),n.d(e,"_8",function(){return M}),n.d(e,"_9",function(){return R}),n.d(e,"_10",function(){return q}),n.d(e,"_11",function(){return A}),n.d(e,"_12",function(){return j}),n.d(e,"_13",function(){return N}),n.d(e,"_14",function(){return G}),n.d(e,"O",function(){return z}),n.d(e,"_15",function(){return F}),n.d(e,"_16",function(){return H}),n.d(e,"_17",function(){return W}),n.d(e,"_18",function(){return U}),n.d(e,"_19",function(){return K}),n.d(e,"_20",function(){return V}),n.d(e,"_21",function(){return J}),n.d(e,"_22",function(){return X}),n.d(e,"_23",function(){return Z}),n.d(e,"_24",function(){return Y}),n.d(e,"_25",function(){return Q}),n.d(e,"_26",function(){return $}),n.d(e,"_27",function(){return tt}),n.d(e,"_28",function(){return et}),n.d(e,"_29",function(){return nt}),n.d(e,"x",function(){return rt}),n.d(e,"e",function(){return ot}),n.d(e,"t",function(){return it}),n.d(e,"w",function(){return st}),n.d(e,"v",function(){return ct}),n.d(e,"s",function(){return ut}),n.d(e,"u",function(){return at}),n.d(e,"_30",function(){return lt}),n.d(e,"h",function(){return pt}),n.d(e,"d",function(){return dt}),n.d(e,"p",function(){return ft}),n.d(e,"_31",function(){return ht}),n.d(e,"b",function(){return bt}),n.d(e,"n",function(){return mt}),n.d(e,"q",function(){return vt}),n.d(e,"i",function(){return yt}),n.d(e,"k",function(){return gt}),n.d(e,"f",function(){return _t}),n.d(e,"_32",function(){return St}),n.d(e,"_33",function(){return It}),n.d(e,"_34",function(){return Ct}),n.d(e,"_35",function(){return Bt}),n.d(e,"_36",function(){return Ot}),n.d(e,"_37",function(){return wt}),n.d(e,"r",function(){return Pt}),n.d(e,"_38",function(){return Dt}),n.d(e,"_39",function(){return Lt}),n.d(e,"o",function(){return kt}),n.d(e,"_40",function(){return Tt}),n.d(e,"M",function(){return Et}),n.d(e,"N",function(){return xt}),n.d(e,"y",function(){return Mt}),n.d(e,"a",function(){return Rt}),n.d(e,"g",function(){return qt}),n.d(e,"z",function(){return At}),n.d(e,"m",function(){return jt}),n.d(e,"l",function(){return Nt}),n.d(e,"_41",function(){return Gt}),n.d(e,"A",function(){return zt}),n.d(e,"c",function(){return Ft}),n.d(e,"_42",function(){return Ht});var r="e-ribbon-vertical-center",o="e-icons e-drop-icon",i="e-icons e-arrow-left",s="e-icons e-more-horizontal-1",c="e-vertical",u="e-disabled",a="e-rtl",l="e-ribbon-hover",p="e-ribbon-control",d="e-ribbon-popup-control",f="e-ribbon-open",h=" ",b="e-hscroll-bar",m="e-ribbon-hide",v="e-ribbon-tab",y="e-ribbon-active",g="e-ribbon-tab-item",_="e-ribbon-collapse-btn",S="e-ribbon-expand-btn",I="e-ribbon-collapsible",C="e-ribbon-overall-of-btn",B="e-ribbon-group-of-btn",O="e-ribbon-overflow-target",w="e-ribbon-overflow",P="e-content",D="e-ribbon-minimize",L="e-ribbon-group",k="e-ribbon-single-selection",T="e-ribbon-multiple-selection",E="e-ribbon-group-button",x="e-ribbon-group-button-overflow-popup",M="e-ribbon-group-container",R="e-ribbon-of-tab",q="e-ribbon-of-group-container",A="e-ribbon-group-content",j="e-ribbon-group-header",N="e-ribbon-overflow-header",G="e-ribbon-group-overflow",z="e-ribbon-group-overflow-ddb",F="e-ribbon-launcher",H="e-ribbon-launcher-icon",W="e-icons e-launcher",U="e-ribbon-collection",K="e-ribbon-item",V="e-ribbon-row",J="e-ribbon-column",X="e-ribbon-large-item",Z="e-ribbon-medium-item",Y="e-ribbon-small-item",Q="e-ribbon-content-height",$="e-dropdown-btn",tt="e-caret-hide",et="e-ribbon-template",nt="e-ribbon-help-template",rt="e-ribbon-tooltip",ot="e-ribbon-tooltip-target",it="e-ribbon-tooltip-title",st="e-ribbon-tooltip-content",ct="e-ribbon-tooltip-icon",ut="e-ribbon-tooltip-container",at="e-ribbon-text-container",lt="e-ribbon-simplified-mode",pt="e-ribbon-backstage-popup",dt="e-ribbon-backstage-open",ft="e-ribbon-backstage-content",ht="e-ribbon-selected-content",bt="e-ribbon-backstage",mt="e-ribbon-backstage-menu",vt="e-ribbon-backstage-template",yt="e-ribbon-backstage-wrapper",gt="e-ribbon-backstage-items-wrapper",_t="e-blankicon",St="_tab",It="_group",Ct="_collection",Bt="_item",Ot="_collapsebutton",wt="_sim_ovrl_overflow",Pt="_sim_grp_overflow",Dt="_header",Lt="_launcher",kt="_content",Tt="_container",Et="_overflow",xt="_dropdown",Mt="_filemenu",Rt="_backstage",qt="_backstagepopup",At="_filemenulist",jt="_menulist",Nt="_footermenulist",Gt="_helppanetemplate",zt="_grpbtn",Ft="--fileMenuWidth",Ht="--helpTemplateWidth"},function(t,e,n){"use strict";var r=n(30);n.d(e,"a",function(){return r.a});var o=n(5);n.d(e,"b",function(){return o.a}),n.d(e,"c",function(){return o.e}),n.d(e,"d",function(){return o.c}),n.d(e,"e",function(){return o.b}),n.d(e,"f",function(){return o.f}),n.d(e,"g",function(){return o.d});var i=n(1);n.d(e,"h",function(){return i.G}),n.d(e,"i",function(){return i.P}),n.d(e,"j",function(){return i.j}),n.d(e,"k",function(){return i.Q}),n.d(e,"l",function(){return i.I}),n.d(e,"m",function(){return i.R}),n.d(e,"n",function(){return i.S}),n.d(e,"o",function(){return i.K}),n.d(e,"p",function(){return i.H}),n.d(e,"q",function(){return i.L}),n.d(e,"r",function(){return i.J}),n.d(e,"s",function(){return i.F}),n.d(e,"t",function(){return i.T}),n.d(e,"u",function(){return i.U}),n.d(e,"v",function(){return i.V}),n.d(e,"w",function(){return i.W}),n.d(e,"x",function(){return i.X}),n.d(e,"y",function(){return i.Y}),n.d(e,"z",function(){return i.Z}),n.d(e,"A",function(){return i._0}),n.d(e,"B",function(){return i._1}),n.d(e,"C",function(){return i._2}),n.d(e,"D",function(){return i._3}),n.d(e,"E",function(){return i._4}),n.d(e,"F",function(){return i._5}),n.d(e,"G",function(){return i._6}),n.d(e,"H",function(){return i._7}),n.d(e,"I",function(){return i.C}),n.d(e,"J",function(){return i.D}),n.d(e,"K",function(){return i.B}),n.d(e,"L",function(){return i.E}),n.d(e,"M",function(){return i._8}),n.d(e,"N",function(){return i._9}),n.d(e,"O",function(){return i._10}),n.d(e,"P",function(){return i._11}),n.d(e,"Q",function(){return i._12}),n.d(e,"R",function(){return i._13}),n.d(e,"S",function(){return i._14}),n.d(e,"T",function(){return i.O}),n.d(e,"U",function(){return i._15}),n.d(e,"V",function(){return i._16}),n.d(e,"W",function(){return i._17}),n.d(e,"X",function(){return i._18}),n.d(e,"Y",function(){return i._19}),n.d(e,"Z",function(){return i._20}),n.d(e,"_0",function(){return i._21}),n.d(e,"_1",function(){return i._22}),n.d(e,"_2",function(){return i._23}),n.d(e,"_3",function(){return i._24}),n.d(e,"_4",function(){return i._25}),n.d(e,"_5",function(){return i._26}),n.d(e,"_6",function(){return i._27}),n.d(e,"_7",function(){return i._28}),n.d(e,"_8",function(){return i._29}),n.d(e,"_9",function(){return i.x}),n.d(e,"_10",function(){return i.e}),n.d(e,"_11",function(){return i.t}),n.d(e,"_12",function(){return i.w}),n.d(e,"_13",function(){return i.v}),n.d(e,"_14",function(){return i.s}),n.d(e,"_15",function(){return i.u}),n.d(e,"_16",function(){return i._30}),n.d(e,"_17",function(){return i.h}),n.d(e,"_18",function(){return i.d}),n.d(e,"_19",function(){return i.p}),n.d(e,"_20",function(){return i._31}),n.d(e,"_21",function(){return i.b}),n.d(e,"_22",function(){return i.n}),n.d(e,"_23",function(){return i.q}),n.d(e,"_24",function(){return i.i}),n.d(e,"_25",function(){return i.k}),n.d(e,"_26",function(){return i.f}),n.d(e,"_27",function(){return i._32}),n.d(e,"_28",function(){return i._33}),n.d(e,"_29",function(){return i._34}),n.d(e,"_30",function(){return i._35}),n.d(e,"_31",function(){return i._36}),n.d(e,"_32",function(){return i._37}),n.d(e,"_33",function(){return i.r}),n.d(e,"_34",function(){return i._38}),n.d(e,"_35",function(){return i._39}),n.d(e,"_36",function(){return i.o}),n.d(e,"_37",function(){return i._40}),n.d(e,"_38",function(){return i.M}),n.d(e,"_39",function(){return i.N}),n.d(e,"_40",function(){return i.y}),n.d(e,"_41",function(){return i.a}),n.d(e,"_42",function(){return i.g}),n.d(e,"_43",function(){return i.z}),n.d(e,"_44",function(){return i.m}),n.d(e,"_45",function(){return i.l}),n.d(e,"_46",function(){return i._41}),n.d(e,"_47",function(){return i.A}),n.d(e,"_48",function(){return i.c}),n.d(e,"_49",function(){return i._42});var s=n(8);n.d(e,"_50",function(){return s.e}),n.d(e,"_51",function(){return s.b}),n.d(e,"_52",function(){return s.f}),n.d(e,"_53",function(){return s.g}),n.d(e,"_54",function(){return s.h}),n.d(e,"_55",function(){return s.i}),n.d(e,"_56",function(){return s.j}),n.d(e,"_57",function(){return s.k}),n.d(e,"_58",function(){return s.l}),n.d(e,"_59",function(){return s.a}),n.d(e,"_60",function(){return s.m}),n.d(e,"_61",function(){return s.d}),n.d(e,"_62",function(){return s.n}),n.d(e,"_63",function(){return s.o}),n.d(e,"_64",function(){return s.c})},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return u});var r;!function(t){t.Classic="Classic",t.Simplified="Simplified"}(r||(r={}));var o;!function(t){t.Row="Row",t.Column="Column"}(o||(o={}));var i;!function(t){t[t.Large=4]="Large",t[t.Medium=2]="Medium",t[t.Small=1]="Small"}(i||(i={}));var s;!function(t){t[t.Classic=4]="Classic",t[t.Simplified=2]="Simplified",t[t.Overflow=1]="Overflow",t[t.Auto=7]="Auto"}(s||(s={}));var c;!function(t){t.Button="Button",t.CheckBox="CheckBox",t.ColorPicker="ColorPicker",t.ComboBox="ComboBox",t.DropDown="DropDown",t.SplitButton="SplitButton",t.GroupButton="GroupButton",t.Template="Template"}(c||(c={}));var u;!function(t){t.Single="Single",t.Multiple="Multiple"}(u||(u={}))},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"id",void 0),i([n.i(r.Property)("")],e.prototype,"title",void 0),i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),e}(r.ChildProperty)},function(t,e){t.exports=r},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<t.length;n++)if(e(t[parseInt(n.toString(),10)],n))return n;return-1}function o(t){if("string"==typeof t){var e="";try{var r=n.i(y.select)(t);e=r?"SCRIPT"===r.tagName?r.innerHTML:r.outerHTML:t}catch(n){e=t}return n.i(y.compile)(e)}return n.i(y.compile)(t)}function i(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++)for(var i=r.groups[parseInt(o.toString(),10)],s=0;s<i.collections.length;s++)for(var c=i.collections[parseInt(s.toString(),10)],u=0;u<c.items.length;u++){var a=c.items[parseInt(u.toString(),10)];if(a.id===e)return{item:a,collection:c,group:i,tabIndex:n,groupIndex:o,collectionIndex:s,itemIndex:u}}return null}function s(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++)for(var i=r.groups[parseInt(o.toString(),10)],s=0;s<i.collections.length;s++){var c=i.collections[parseInt(s.toString(),10)];if(c.id===e)return{collection:c,group:i,tabIndex:n,groupIndex:o,collectionIndex:s}}return null}function c(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++){var i=r.groups[parseInt(o.toString(),10)];if(i.id===e)return{group:i,tabIndex:n,groupIndex:o}}return null}function u(t,e){n.i(y.getComponent)(t,e).destroy()}function a(t,e,r){n.i(y.getComponent)(t,e).setProperties(r)}function l(t,e,r){n.i(y.getComponent)(t,e).setProperties("combobox"===e?{enabled:!r}:{disabled:r})}function p(t,e,r){if(!r&&!(r=i(t.tabs,e)))return null;var o=t.tabObj.items[r.tabIndex].content;if(""===o.innerHTML)return null;if(t.activeLayout===_.a.Classic)return r.item.displayOptions&_.b.Classic?(o=r.group.isCollapsed?t.ribbonDropDownModule.getOverflowDropDownPopup(r,o):o,o.querySelector("#"+e)):null;var s=r.item.displayOptions&_.b.Simplified?o.querySelector("#"+r.item.id):null;if(!s){s=(r.group.enableGroupOverflow?n.i(y.getComponent)(o.querySelector("#"+r.group.id+S.r),I.DropDownButton):t.overflowDDB).target.querySelector("#"+r.item.id)}return s}function d(t){return!!(t.content||t.iconCss||t.title||t.id||t.cssClass)}function f(t,e,n){var r=t.target.getAttribute("id"),o=n.filter(function(t){return t.id===r})[0],i=o.data,s=e.createElement("div",{id:i.id?S.s+"_"+i.id:S.s});if(e.element.append(s),i.title){var c=e.createElement("div",{innerHTML:i.title,className:S.t});s.appendChild(c)}var u=e.createElement("div",{className:S.u});if(s.appendChild(u),i.iconCss){var a=e.createElement("div",{className:i.iconCss+" "+S.v});u.appendChild(a)}if(i.content){var l=e.createElement("div",{innerHTML:i.content,className:S.w});u.appendChild(l)}e.setProperties({content:s,cssClass:i.cssClass?i.cssClass+" "+S.x:S.x})}function h(t,e){function n(t){f(t,r,e.tooltipData)}var r=new g.Tooltip({target:"."+S.e,beforeRender:n.bind(this),windowCollision:!0});r.appendTo(t)}function b(t){n.i(y.getComponent)(t,g.Tooltip).destroy()}function m(t,e){n.i(y.getComponent)(t,g.Tooltip).setProperties(e)}function v(t,e){for(var r in e)if("class"===r){var o=e.class.replace(/\s+/g," ").trim();o&&n.i(y.addClass)([t],o.split(" "))}else if("style"===r){var i=t.getAttribute("style")||"",s=""+i+e[""+r];t.setAttribute(""+r,s)}else t.setAttribute(r,e[""+r])}e.e=r,e.b=o,e.f=i,e.g=s,e.h=c,e.i=u,e.j=a,e.k=l,e.l=p,e.a=d,e.m=f,e.d=h,e.n=b,e.o=m,e.c=v;var y=n(0),g=(n.n(y),n(10)),_=(n.n(g),n(5)),S=n(1),I=n(3);n.n(I)},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){"use strict";var r=n(29);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63}),n.d(e,"_64",function(){return r._64}),n.d(e,"_65",function(){return r._65}),n.d(e,"_66",function(){return r._66}),n.d(e,"_67",function(){return r._67}),n.d(e,"_68",function(){return r._68}),n.d(e,"_69",function(){return r._69}),n.d(e,"_70",function(){return r._70}),n.d(e,"_71",function(){return r._71}),n.d(e,"_72",function(){return r._72}),n.d(e,"_73",function(){return r._73}),n.d(e,"_74",function(){return r._74}),n.d(e,"_75",function(){return r._75}),n.d(e,"_76",function(){return r._76}),n.d(e,"_77",function(){return r._77}),n.d(e,"_78",function(){return r._78}),n.d(e,"_79",function(){return r._79}),n.d(e,"_80",function(){return r._80}),n.d(e,"_81",function(){return r._81}),n.d(e,"_82",function(){return r._82}),n.d(e,"_83",function(){return r._83}),n.d(e,"_84",function(){return r._84}),n.d(e,"_85",function(){return r._85}),n.d(e,"_86",function(){return r._86}),n.d(e,"_87",function(){return r._87}),n.d(e,"_88",function(){return r._88}),n.d(e,"_89",function(){return r._89}),n.d(e,"_90",function(){return r._90})},function(t,e,n){"use strict";var r=n(32);n.d(e,"a",function(){return r.a});var o=n(33);n.d(e,"b",function(){return o.a});var i=n(34);n.d(e,"c",function(){return i.a});var s=n(35);n.d(e,"d",function(){return s.a});var c=n(36);n.d(e,"e",function(){return c.a});var u=n(38);n.d(e,"f",function(){return u.a});var a=n(37);n.d(e,"g",function(){return a.a})},function(t,e,n){"use strict";var r=n(41);n.d(e,"a",function(){return r.a});var o=n(24);n.d(e,"b",function(){return o.a});var i=n(18);n.d(e,"c",function(){return i.a});var s=n(25);n.d(e,"d",function(){return s.a});var c=n(16);n.d(e,"e",function(){return c.a});var u=n(17);n.d(e,"f",function(){return u.a});var a=n(19);n.d(e,"g",function(){return a.a});var l=n(20);n.d(e,"h",function(){return l.a});var p=n(21);n.d(e,"i",function(){return p.a});var d=n(26);n.d(e,"j",function(){return d.a});var f=n(40);n.d(e,"k",function(){return f.a});var h=n(39);n.d(e,"l",function(){return h.a});var b=n(14);n.d(e,"m",function(){return b.a});var m=n(15);n.d(e,"n",function(){return m.a});var v=n(6);n.d(e,"o",function(){return v.a});var y=n(23);n.d(e,"p",function(){return y.a});var g=n(22);n.d(e,"q",function(){return g.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"text",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!0)],e.prototype,"visible",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"text",void 0),i([n.i(r.Property)("")],e.prototype,"id",void 0),i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!1)],e.prototype,"separator",void 0),i([n.i(r.Property)(!1)],e.prototype,"isFooter",void 0),i([n.i(r.Event)()],e.prototype,"backStageItemClick",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!1)],e.prototype,"isToggle",void 0),i([n.i(r.Property)(!1)],e.prototype,"isPrimary",void 0),i([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"clicked",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)(!1)],e.prototype,"checked",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"label",void 0),i([n.i(r.Property)("After")],e.prototype,"labelPosition",void 0),i([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"change",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(25)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)(10)],e.prototype,"columns",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)(!0)],e.prototype,"enableOpacity",void 0),i([n.i(r.Property)("Picker")],e.prototype,"mode",void 0),i([n.i(r.Property)(!0)],e.prototype,"modeSwitcher",void 0),i([n.i(r.Property)(!1)],e.prototype,"noColor",void 0),i([n.i(r.Property)(null)],e.prototype,"presetColors",void 0),i([n.i(r.Property)(!0)],e.prototype,"showButtons",void 0),i([n.i(r.Property)("#008000ff")],e.prototype,"value",void 0),i([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),i([n.i(r.Event)()],e.prototype,"beforeClose",void 0),i([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),i([n.i(r.Event)()],e.prototype,"beforeTileRender",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"change",void 0),i([n.i(r.Event)()],e.prototype,"open",void 0),i([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(27)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)(!1)],e.prototype,"allowFiltering",void 0),s([n.i(r.Property)(!0)],e.prototype,"autofill",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)([])],e.prototype,"dataSource",void 0),s([n.i(r.Complex)({text:null,value:null,iconCss:null,groupBy:null},o.FieldSettings)],e.prototype,"fields",void 0),s([n.i(r.Property)("Contains")],e.prototype,"filterType",void 0),s([n.i(r.Property)(null)],e.prototype,"footerTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"groupTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"headerTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"index",void 0),s([n.i(r.Property)(null)],e.prototype,"itemTemplate",void 0),s([n.i(r.Property)("No records found")],e.prototype,"noRecordsTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"placeholder",void 0),s([n.i(r.Property)("300px")],e.prototype,"popupHeight",void 0),s([n.i(r.Property)("100%")],e.prototype,"popupWidth",void 0),s([n.i(r.Property)(!0)],e.prototype,"showClearButton",void 0),s([n.i(r.Property)("None")],e.prototype,"sortOrder",void 0),s([n.i(r.Property)(null)],e.prototype,"text",void 0),s([n.i(r.Property)(null)],e.prototype,"value",void 0),s([n.i(r.Property)("150px")],e.prototype,"width",void 0),s([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"change",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"filtering",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"closeActionEvents",void 0),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Collection)([],o.Item)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"target",void 0),s([n.i(r.Property)(!1)],e.prototype,"createPopupOnClick",void 0),s([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),s([n.i(r.Event)()],e.prototype,"beforeClose",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(6)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Complex)({},o.a)],e.prototype,"ribbonTooltipSettings",void 0),s([n.i(r.Property)(!1)],e.prototype,"selected",void 0),s([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),s([n.i(r.Event)()],e.prototype,"beforeClick",void 0),s([n.i(r.Event)()],e.prototype,"click",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(22)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),s([n.i(r.Property)("Single")],e.prototype,"selection",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(18)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Collection)([],o.a)],e.prototype,"collections",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)(!1)],e.prototype,"isCollapsed",void 0),s([n.i(r.Property)(!0)],e.prototype,"isCollapsible",void 0),s([n.i(r.Property)(!1)],e.prototype,"enableGroupOverflow",void 0),s([n.i(r.Property)("")],e.prototype,"groupIconCss",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),s([n.i(r.Property)("Column")],e.prototype,"orientation",void 0),s([n.i(r.Property)(0)],e.prototype,"priority",void 0),s([n.i(r.Property)(!1)],e.prototype,"showLauncherIcon",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return b});var r=n(0),o=(n.n(r),n(5)),i=n(16),s=n(17),c=n(19),u=n(20),a=n(21),l=n(26),p=n(6),d=n(23),f=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},h([n.i(r.Property)(o.c.Medium)],e.prototype,"activeSize",void 0),h([n.i(r.Property)(o.c.Small|o.c.Medium|o.c.Large)],e.prototype,"allowedSizes",void 0),h([n.i(r.Property)("")],e.prototype,"id",void 0),h([n.i(r.Property)("")],e.prototype,"cssClass",void 0),h([n.i(r.Property)(!1)],e.prototype,"disabled",void 0),h([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),h([n.i(r.Property)("Button")],e.prototype,"type",void 0),h([n.i(r.Property)(o.b.Auto)],e.prototype,"displayOptions",void 0),h([n.i(r.Complex)({},p.a)],e.prototype,"ribbonTooltipSettings",void 0),h([n.i(r.Complex)({},i.a)],e.prototype,"buttonSettings",void 0),h([n.i(r.Complex)({},a.a)],e.prototype,"dropDownSettings",void 0),h([n.i(r.Complex)({},s.a)],e.prototype,"checkBoxSettings",void 0),h([n.i(r.Complex)({},c.a)],e.prototype,"colorPickerSettings",void 0),h([n.i(r.Complex)({},u.a)],e.prototype,"comboBoxSettings",void 0),h([n.i(r.Complex)({},l.a)],e.prototype,"splitButtonSettings",void 0),h([n.i(r.Complex)({},d.a)],e.prototype,"groupButtonSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"closeActionEvents",void 0),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Collection)([],o.Item)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"target",void 0),s([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),s([n.i(r.Event)()],e.prototype,"beforeClose",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"click",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e){t.exports=s},function(t,e,n){"use strict";var r=n(50);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var o=n(47);n.d(e,"c",function(){return o.a}),n.d(e,"d",function(){return o.b});var i=n(46);n.d(e,"e",function(){return i.a}),n.d(e,"f",function(){return i.b});var s=n(48);n.d(e,"g",function(){return s.a}),n.d(e,"h",function(){return s.b});var c=n(49);n.d(e,"i",function(){return c.a})},function(t,e,n){"use strict";var r=n(31);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63}),n.d(e,"_64",function(){return r._64}),n.d(e,"_65",function(){return r._65}),n.d(e,"_66",function(){return r._66}),n.d(e,"_67",function(){return r._67}),n.d(e,"_68",function(){return r._68}),n.d(e,"_69",function(){return r._69}),n.d(e,"_70",function(){return r._70}),n.d(e,"_71",function(){return r._71}),n.d(e,"_72",function(){return r._72}),n.d(e,"_73",function(){return r._73}),n.d(e,"_74",function(){return r._74}),n.d(e,"_75",function(){return r._75}),n.d(e,"_76",function(){return r._76}),n.d(e,"_77",function(){return r._77}),n.d(e,"_78",function(){return r._78}),n.d(e,"_79",function(){return r._79}),n.d(e,"_80",function(){return r._80}),n.d(e,"_81",function(){return r._81}),n.d(e,"_82",function(){return r._82}),n.d(e,"_83",function(){return r._83}),n.d(e,"_84",function(){return r._84}),n.d(e,"_85",function(){return r._85}),n.d(e,"_86",function(){return r._86}),n.d(e,"_87",function(){return r._87}),n.d(e,"_88",function(){return r._88}),n.d(e,"_89",function(){return r._89}),n.d(e,"_90",function(){return r._90})},function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(13)),s=n(5),c=n(12),u=n(8),a=n(1),l=n(3),p=(n.n(l),n(7)),d=(n.n(p),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),f=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},h=function(t){function e(e,n){return h.Inject(c.a,c.b,c.e,c.f,c.d,c.g),t.call(this,e,n)||this}d(e,t),h=e,e.prototype.render=function(){this.initialize()},e.prototype.preRender=function(){this.idIndex=0,this.tooltipData=[],this.isAddRemove=!1,this.keyConfigs={leftarrow:"leftarrow",rightarrow:"rightarrow",tab:"tab",shiftTab:"shift+tab"}},e.prototype.getPersistData=function(){return this.addOnPersist(["activeLayout"])},e.prototype.getModuleName=function(){return"ribbon"},e.prototype.requiredModules=function(){var t=[];return t.push({member:"ribbonButton",args:[this]},{member:"ribbonDropDown",args:[this]},{member:"ribbonSplitButton",args:[this]},{member:"ribbonCheckBox",args:[this]},{member:"ribbonColorPicker",args:[this]},{member:"ribbonComboBox",args:[this]},{member:"ribbonGroupButton",args:[this]},{member:"ribbonFileMenu",args:[this]},{member:"ribbonBackstage",args:[this]}),t},e.prototype.initialize=function(){this.element.id=this.element.id||n.i(r.getUniqueID)("e-"+this.getModuleName()),n.i(r.addClass)([this.element],["e-rbn"].concat(this.cssClass?this.cssClass.split(a.F):[])),this.enableRtl&&this.element.classList.add(a.S),this.element.style.width=n.i(r.formatUnit)(this.width),this.renderTabs(),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.createFileMenu(this.fileMenu),this.ribbonBackstageModule&&this.ribbonBackstageModule.createBackStage(this.backStageMenu),this.createHelpPaneTemplate(),this.tabObj.tbObj.refreshOverflow(),n.i(u.d)(this.element,this),this.wireEvents(),this.wireKeyboardEvent(),this.currentControlIndex=0},e.prototype.wireEvents=function(){r.EventHandler.add(window,"resize",this.resizeHandler,this)},e.prototype.wireKeyboardEvent=function(){this.keyboardModuleRibbon=new r.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},e.prototype.keyActionHandler=function(t){"Tab"!==t.key||t.target.classList.contains("e-tab-wrap")||t.target.classList.contains("e-combobox")||t.preventDefault();var e,n=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o),r=n.querySelectorAll(".e-control"),o=n.querySelectorAll(".e-combobox");if(o)for(var i=0;i<o.length;i++)o[parseInt(i.toString(),10)].closest(".e-input-focus")&&(e=o[parseInt(i.toString(),10)]);if(e)for(var i=0;i<r.length;i++)r[parseInt(i.toString(),10)].classList.contains("e-combobox")&&r[parseInt(i.toString(),10)].closest(".e-input-focus")&&(this.currentControlIndex=i);if(0===this.currentControlIndex)for(var s=r[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");)this.currentControlIndex++,s=r[this.currentControlIndex].closest(".e-ribbon-item");if(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-launcher-icon")||t.target.classList.contains("e-ribbon-collapse-btn")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-first-item")||t.target.classList.contains("e-ribbon-group-of-btn")||t.target.classList.contains("e-ribbon-overall-of-btn"))switch(t.action){case"rightarrow":this.handleNavigation(t,!this.enableRtl,r);break;case"leftarrow":this.handleNavigation(t,this.enableRtl,r);break;case"tab":t.target.classList.contains("e-combobox")&&this.currentControlIndex<r.length-1&&this.currentControlIndex++;break;case"shiftTab":t.target.classList.contains("e-combobox")?this.currentControlIndex>0&&this.currentControlIndex--:(this.tabObj.element.querySelector(".e-toolbar-item.e-active").querySelector(".e-tab-wrap").focus(),this.currentControlIndex=0)}},e.prototype.handleNavigation=function(t,e,n){var r,o;if(e?this.currentControlIndex<n.length-1&&n[this.currentControlIndex+1].classList.contains("e-colorpicker")&&this.currentControlIndex++:this.currentControlIndex>0&&n[this.currentControlIndex-1].classList.contains("e-colorpicker")&&this.currentControlIndex--,!e&&this.currentControlIndex>0||e&&this.currentControlIndex<n.length-1){if(!t.target.classList.contains("e-combobox")&&t.target.classList.contains("e-control")&&!t.target.classList.contains("e-ribbon-last-item")){if(e)this.currentControlIndex++;else{var i=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a._8);i&&(o=i.getAttribute("id")),this.currentControlIndex--}for(var s=n[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");){if((e&&this.currentControlIndex===n.length-1||!e&&0===this.currentControlIndex)&&n[this.currentControlIndex].closest(".e-ribbon-item").classList.contains("e-disabled")){this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus();break}e?this.currentControlIndex++:this.currentControlIndex--,s=n[this.currentControlIndex].closest(".e-ribbon-item")}if(n[parseInt(this.currentControlIndex.toString(),10)].focus(),"Classic"===this.activeLayout){if(r=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a._8),e){var c=void 0;if(r&&(c=r.querySelector(".e-ribbon-launcher-icon")),c){var u=r.querySelectorAll(".e-ribbon-item");u[u.length-1].querySelector(".e-control").classList.add("e-ribbon-last-item")}}else if(r){var l=r.getAttribute("id");if(o!==l){var c=r.querySelector(".e-ribbon-launcher-icon");c&&n[parseInt((this.currentControlIndex+1).toString(),10)].classList.add("e-ribbon-first-item")}}}else n[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-first-item")?n[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-first-item"):n[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-last-item")&&n[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-last-item")}}else if("Classic"===this.activeLayout&&this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus(),"Simplified"===this.activeLayout){var p=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");e&&p&&!p.classList.contains("e-ribbon-hide")?p.focus():this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus()}if(t.target.classList.contains("e-ribbon-last-item")&&(e?(r=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a._8),r.querySelector(".e-ribbon-launcher-icon").focus()):(this.currentControlIndex--,n[parseInt(this.currentControlIndex.toString(),10)].focus())),!e&&t.target.classList.contains("e-ribbon-first-item")){r=n[parseInt((this.currentControlIndex-1).toString(),10)].closest("."+a._8);var c=r.querySelector(".e-ribbon-launcher-icon");c&&r.querySelector(".e-ribbon-launcher-icon").focus()}if(t.target.classList.contains("e-ribbon-launcher-icon")&&(e?(this.currentControlIndex++,n[parseInt(this.currentControlIndex.toString(),10)].focus(),n[parseInt((this.currentControlIndex-1).toString(),10)].classList.contains("e-ribbon-last-item")&&n[parseInt((this.currentControlIndex-1).toString(),10)].classList.remove("e-ribbon-last-item")):(this.currentControlIndex,n[parseInt(this.currentControlIndex.toString(),10)].focus())),t.target.classList.contains("e-ribbon-collapse-btn"))if(e){this.currentControlIndex=0;for(var d=n[this.currentControlIndex].closest(".e-ribbon-item");d&&d.classList.contains("e-disabled");)this.currentControlIndex++,d=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}else{var p=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");if(p&&!p.classList.contains("e-ribbon-hide"))p.focus();else{this.currentControlIndex=n.length-1;for(var d=n[this.currentControlIndex].closest(".e-ribbon-item");d&&d.classList.contains("e-disabled");)this.currentControlIndex--,d=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}}"Simplified"===this.activeLayout&&t.target.classList.contains("e-ribbon-overall-of-btn")&&(e?this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus():(this.currentControlIndex=n.length-1,n[parseInt(this.currentControlIndex.toString(),10)].focus()))},e.prototype.resizeHandler=function(){var t=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o);if(this.checkOverflow(this.selectedTab,t),this.scrollModule){var e=this.tabObj.element.querySelector("."+a.T);this.scrollModule.scrollStep=e.offsetWidth}},e.prototype.renderTabs=function(){this.tabsInternal=this.tabs.slice(),this.tabsInternal=this.checkID(this.tabsInternal,"tab",this.element.id),this.setProperties({tabs:this.tabsInternal},!0);var t=this.createElement("div",{id:this.element.id+a._32});this.element.appendChild(t),this.validateItemSize();var e=this.createTabItems(this.tabs);this.tabObj=new o.Tab({cssClass:a.V,selectedItem:this.selectedTab,overflowMode:"Popup",width:this.width,items:e,enableRtl:this.enableRtl,created:this.tabCreated.bind(this),selected:this.ribbonTabSelected.bind(this),selecting:this.ribbonTabSelecting.bind(this)}),this.tabObj.appendTo(t),this.element.style.setProperty(a.c,"0px"),this.element.style.setProperty(a._42,"0px");var i=t.querySelector(".e-toolbar");n.i(r.getComponent)(i,o.Toolbar).setProperties({width:"calc(100% - var(--fileMenuWidth) - var(--helpTemplateWidth))"}),this.element.classList[this.isMinimized?"add":"remove"](a._6)},e.prototype.minimize=function(t){var e=this;if(t!==this.isMinimized){var n={cancel:!1};this.trigger(t?"ribbonCollapsing":"ribbonExpanding",n,function(n){n.cancel||(e.setProperties({isMinimized:t},!0),e.element.classList.toggle(a._6,e.isMinimized),e.tabObj.element.querySelector(".e-content").style.display=t?"none":"block",t||e.refreshLayout())})}},e.prototype.toggleLayout=function(){this.setProperties({activeLayout:"Simplified"===this.activeLayout?"Classic":"Simplified"},!0),this.switchLayout()},e.prototype.tabCreated=function(){this.hideLayoutSwitcher||this.addExpandCollapse(),this.renderInitialTab(this.selectedTab)},e.prototype.ribbonTabSelected=function(t){this.isAddRemove=!1;var e=t.selectedItem.getAttribute("data-id"),r=n.i(u.e)(this.tabs,function(t){return t.id===e});r=-1===r?this.selectedTab:r;var o={previousIndex:this.selectedTab,selectedIndex:r};if(this.setProperties({selectedTab:r},!0),this.checkOverflow(r,t.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var i=this.overflowDDB.target,s=i.querySelector("."+a.W);s&&s.classList.remove(a.W);var c=i.querySelector("#"+e+a.M);c?(c.classList.add(a.W),this.overflowDDB.element.classList.remove(a.U)):this.overflowDDB.element.classList.add(a.U)}this.trigger("tabSelected",o)},e.prototype.checkOverflow=function(t,e){var n=e.closest("."+a._5),r=n.offsetWidth<e.offsetWidth;if(r&&!this.scrollModule){if("Classic"===this.activeLayout){var i=!1;i=this.checkGroupShrinking(t,n,e,!0),!i&&n.offsetWidth<e.offsetWidth&&(i=this.checkGroupShrinking(t,n,e,!1)),n.offsetWidth<e.offsetWidth&&this.createOverflowDropdown(t,n,e)}else this.checkSimplifiedItemShrinking(t,n,e),n.offsetWidth<e.offsetWidth&&this.createSimplfiedOverflow(n,e,t);n.offsetWidth<e.offsetWidth&&!this.scrollModule&&(this.scrollModule=new o.HScroll({enableRtl:this.enableRtl},this.tabObj.element.querySelector("."+a._5)))}else if(!r)if(this.destroyScroll(),"Classic"===this.activeLayout){var i=!1;i=this.removeOverflowDropdown(n,e,!1,t),!i&&n.offsetWidth>e.offsetWidth&&(i=this.checkGroupExpanding(t,n,e,!0)),!i&&n.offsetWidth>e.offsetWidth&&(i=this.checkGroupExpanding(t,n,e,!1))}else this.removeSimplfiedOverflow(n,e,t),n.offsetWidth>e.offsetWidth&&this.checkSimplifiedItemExpanding(t,n,e)},e.prototype.checkSimplifiedItemShrinking=function(t,e,n){for(var r=this.tabs[parseInt(t.toString(),10)],o=r.groups.length-1;o>=0;o--)for(var i=r.groups[parseInt(o.toString(),10)],c=e.querySelector("#"+i.id+a._40),u=0;u<i.collections.length&&e.offsetWidth<n.offsetWidth;u++)for(var l=i.collections[parseInt(u.toString(),10)],p=l.items.length;p>=1&&e.offsetWidth<n.offsetWidth;p--){var d=l.items[p-1];if(d.allowedSizes&s.c.Small&&d.allowedSizes&s.c.Medium&&d.activeSize===s.c.Medium&&d.displayOptions&s.b.Simplified){var f=c.querySelector("#"+d.id+a._40);if(f){var h=f.querySelector("#"+d.id);f.setAttribute("data-medium-width",n.offsetWidth.toString()),d.setProperties({activeSize:s.c.Small},!0),this.setItemSize(h,d)}}}},e.prototype.checkSimplifiedItemExpanding=function(t,e,n){for(var r=this.tabs[parseInt(t.toString(),10)],o=r.groups.length-1;o>=0;o--)for(var i=r.groups[parseInt(o.toString(),10)],c=e.querySelector("#"+i.id+a._40),u=0;u<i.collections.length&&e.offsetWidth>n.offsetWidth;u++)for(var l=i.collections[parseInt(u.toString(),10)],p=l.items.length;p>=1&&e.offsetWidth>n.offsetWidth;p--){var d=l.items[p-1];if(d.allowedSizes&s.c.Small&&d.allowedSizes&s.c.Medium&&d.activeSize===s.c.Small&&d.displayOptions&s.b.Simplified){var f=c.querySelector("#"+d.id+a._40);if(f){var h=f.getAttribute("data-medium-width"),b=h?parseInt(h,10):null;if(b&&e.offsetWidth>b){f.removeAttribute("data-medium-width");var m=f.querySelector("#"+d.id);d.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(m,d)}}}}},e.prototype.createSimplfiedOverflow=function(t,e,o){for(var i=this.getGroupResizeOrder(!0,o),c=0;c<i.length&&t.offsetWidth<e.offsetWidth;c++){for(var u=i[parseInt(c.toString(),10)],l=t.querySelector("#"+u.id),p=l.querySelector("#"+u.id+a._40),d=u.collections.length;d>=1&&t.offsetWidth<e.offsetWidth;d--)for(var f=u.collections[parseInt((d-1).toString(),10)],h=l.querySelector("#"+f.id),b=f.items.length;b>=1&&t.offsetWidth<e.offsetWidth;b--){var m=f.items[b-1],v=h.querySelector("#"+m.id+a._40);if((m.displayOptions===s.b.Auto||m.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(v)){if(v.setAttribute("data-simplified-width",e.offsetWidth.toString()),this.createOverflowPopup(m,o,u.enableGroupOverflow,u.id,u.header,v,p,!0),m.activeSize===s.c.Small){var y=v.querySelector("#"+m.id);m.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(y,m)}m.type!==s.f.DropDown&&m.type!==s.f.SplitButton&&m.type!==s.f.GroupButton||this.updatePopupItems(m,v,u.enableGroupOverflow,!0)}}u.enableGroupOverflow||l.querySelector("."+a._19)||l.classList.add("e-ribbon-emptyCollection")}},e.prototype.updatePopupItems=function(t,e,o,i){var c=n.i(r.getComponent)(e.querySelector("#"+t.id),t.type===s.f.DropDown||t.type===s.f.GroupButton?l.DropDownButton:l.SplitButton),u=c.dropDown,a=(o&&i)===this.enableRtl;u.setProperties({position:{X:a?"left":"right",Y:i?"top":"bottom"}},!0),i?c.beforeOpen=function(){a&&(u.element.style.setProperty("visibility","hidden"),u.element.style.setProperty("display","block"),u.setProperties({offsetX:-1*u.element.offsetWidth}),u.element.style.removeProperty("display"),u.element.style.removeProperty("visibility"))}:(u.setProperties({offsetX:0},!0),c.beforeOpen=null)},e.prototype.removeSimplfiedOverflow=function(t,e,o,i){void 0===i&&(i=!1);for(var c=this.getGroupResizeOrder(!1,o),u=!0,p=0;p<c.length&&u;p++){var d=c[parseInt(p.toString(),10)],f=void 0,h=void 0;if(d.enableGroupOverflow){var b=t.querySelector("#"+d.id+a.r);b&&(f=n.i(r.getInstance)(b,l.DropDownButton),h=f.target)}else f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null;for(var m=0;m<d.collections.length&&u;m++)for(var v=d.collections[parseInt(m.toString(),10)],y=0;y<v.items.length&&u&&!i&&t.offsetWidth>e.offsetWidth;y++){var g=v.items[parseInt(y.toString(),10)],_=void 0;if(h&&(_=h.querySelector("#"+g.id+a._40)),(g.displayOptions===s.b.Auto||g.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(_)){var S=parseInt(_.getAttribute("data-simplified-width"),10);if(!i&&t.offsetWidth<S){u=!1;break}var I=t.querySelector("#"+v.id);g.type!==s.f.DropDown&&g.type!==s.f.SplitButton&&g.type!==s.f.GroupButton||this.updatePopupItems(g,_,d.enableGroupOverflow,!1),I.append(_),this.removeOverflowEvent(g,_),g.allowedSizes&s.c.Small&&(g.setProperties({activeSize:s.c.Small},!0),this.setItemSize(_.querySelector("#"+g.id),g))}}var C=t.querySelector("#"+d.id),B=C.querySelector("."+a._19);if(C.classList.contains("e-ribbon-emptyCollection")&&null!==B&&C.classList.remove("e-ribbon-emptyCollection"),f)if(d.enableGroupOverflow)0===h.childElementCount&&this.removeOverflowButton(f);else{var O=h.querySelector("#"+d.id+a._40);O&&1===O.childElementCount&&O.remove();var w=h.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+a.M);w&&0===w.childElementCount&&(w.remove(),this.overflowDDB.element.classList.add(a.U))}}if(this.overflowDDB){0===this.overflowDDB.target.childElementCount&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)}},e.prototype.createOverflowPopup=function(t,e,o,i,s,c,u,p){var d,f=this.tabObj.items[parseInt(e.toString(),10)].content,h=f.querySelector("#"+i);if(o){var b=u.querySelector("#"+i+a.r);b?d=n.i(r.getInstance)(b,l.DropDownButton):(d=this.addOverflowButton(i+a.r),d.element.classList.add(a._2),u.appendChild(d.element));var m=d.target;h&&h.classList.contains("e-disabled")&&m.classList.add("e-disabled"),p?m.insertBefore(c,m.querySelector("."+a._19)):m.append(c)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(a.U);var v=this.overflowDDB.target,y=v.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+a.M);if(y){var g=v.querySelector("#"+i+a._40);g||(g=this.createGroupContainer(i,s),h&&h.classList.contains("e-disabled")&&g.classList.add("e-disabled"),y.append(g)),p?g.insertBefore(c,g.querySelector("."+a._19)):g.append(c)}else this.createOfTabContainer(i,s,c,e)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+a._37),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(a._1),this.createOfTabContainer(i,s,c,e);d=this.overflowDDB}null!==c&&this.addOverflowEvents(t,c,d)},e.prototype.addOverflowEvents=function(t,e,n){switch(t.type){case"Button":this.ribbonButtonModule.addOverFlowEvents(t,e,n);break;case"DropDown":this.ribbonDropDownModule.addOverFlowEvents(t,e,n);break;case"SplitButton":this.ribbonSplitButtonModule.addOverFlowEvents(t,e,n);break;case"CheckBox":this.ribbonCheckBoxModule.addOverFlowEvents(t,e,n);break;case"ColorPicker":this.ribbonColorPickerModule.addOverFlowEvents(t,e,n);break;case"ComboBox":this.ribbonComboBoxModule.addOverFlowEvents(t,e,n);break;case"GroupButton":if("Simplified"===this.activeLayout){this.ribbonGroupButtonModule.addOverFlowEvents(t,e);break}}},e.prototype.createOfTabContainer=function(t,e,n,r){var o=this.createElement("div",{id:this.tabs[parseInt(r.toString(),10)].id+a.M,className:a._9});this.overflowDDB.target.append(o);var i=this.createGroupContainer(t,e);i.append(n),o.append(i),r===this.selectedTab&&o.classList.add(a.W)},e.prototype.checkGroupShrinking=function(t,e,n,r){for(var o=!0,i=!1,s=this.tabs[parseInt(t.toString(),10)],c=s.groups.length-1;o&&c>=0;c--)i=r?this.checkLargeToMedium(t,s,c,e,n):this.checkMediumToSmall(t,s,c,e,n),o=!i&&e.offsetWidth<n.offsetWidth;return i},e.prototype.checkValidCollectionLength=function(t){for(var e=0,n=0;n<t.length;n++){for(var r=t[parseInt(n.toString(),10)].items,o=0;o<r.length;o++)if(r[parseInt(o.toString(),10)].displayOptions&s.b.Classic){e++;break}if(e>1)return!1}return 1===e},e.prototype.checkClassicCollection=function(t,e,n){for(var r=t[parseInt(e.toString(),10)].items,o=0;o<r.length;o++)if(r[parseInt(o.toString(),10)].displayOptions&s.b.Classic)return e;return e=n?e+1:e-1,n?e===t.length?e:this.checkClassicCollection(t,e,n):e<0?e:this.checkClassicCollection(t,e,n)},e.prototype.checkClassicItem=function(t,e,n){return t[parseInt(e.toString(),10)].displayOptions&s.b.Classic?e:(e=n?e+1:e-1,n?e===t.length?e:this.checkClassicItem(t,e,n):e<0?e:this.checkClassicItem(t,e,n))},e.prototype.checkLargeToMedium=function(t,e,n,r,o,i){var c=this;void 0===i&&(i=!1);var u=e.groups[parseInt(n.toString(),10)];if(u.isCollapsed&&!i)return!1;var l=function(t){return 1===t.items.length&&p(t.items[0])},p=function(t){return t.allowedSizes&s.c.Medium&&t.activeSize===s.c.Large},d=function(t,e,n,r){var s=c.createElement("div",{className:"e-ribbon-shrink"+a.F+a._20,id:t+"_shrink_container"+n,attrs:{"data-start":n.toString(),"data-end":r.toString()}});return e.parentElement.insertBefore(s,e),i||s.setAttribute("data-large-width",o.offsetWidth.toString()),s},f=function(e,r){for(var u=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[0],l=o.querySelector("#"+u.items[parseInt(e.toString(),10)].id+a._40),p=i?o.querySelector("#"+u.id+"_shrink_container"+e):d(u.id,l,e,r),f=e;f<=r;f++){var h=u.items[parseInt(f.toString(),10)];if(h.displayOptions&s.b.Classic){var b=o.querySelector("#"+h.id+a._40);p.appendChild(b),h.setProperties({activeSize:s.c.Medium},!0),h.type===s.f.GroupButton&&"Classic"===c.activeLayout?c.setItemSize(b.querySelector("#"+h.id+a.A),h):c.setItemSize(b.querySelector("#"+h.id),h)}}},h=function(e,r){for(var u=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)],l=o.querySelector("#"+u.collections[parseInt(e.toString(),10)].id),p=i?o.querySelector("#"+u.id+"_shrink_container"+e):d(u.id,l,e,r),f=e;f<=r;f++){var h=u.collections[parseInt(f.toString(),10)],b=o.querySelector("#"+h.id);p.appendChild(b),h.items[0].setProperties({activeSize:s.c.Medium},!0),h.items[0].type===s.f.GroupButton&&"Classic"===c.activeLayout?c.setItemSize(b.querySelector("#"+h.items[0].id+a.A),h.items[0]):c.setItemSize(b.querySelector("#"+h.items[0].id),h.items[0])}};if(u.orientation===s.e.Column)for(var b=u.collections.length-1;b>0;b--){b=this.checkClassicCollection(u.collections,b,!1);var m=b-1;if(m>=0&&l(u.collections[parseInt(b.toString(),10)]))if((m=this.checkClassicCollection(u.collections,m,!1))>=0&&l(u.collections[parseInt(m.toString(),10)])){var v=m-1;if(v>=0&&(v=this.checkClassicCollection(u.collections,v,!1)),v>=0&&l(u.collections[parseInt(v.toString(),10)])?h(v,b):h(m,b),b=v,!i&&r.offsetWidth>o.offsetWidth)return!0}else b=m}else if(this.checkValidCollectionLength(u.collections))for(var y=u.collections[0],b=y.items.length-1;b>0;b--){b=this.checkClassicItem(y.items,b,!1);var m=b-1;if(m>=0&&p(y.items[parseInt(b.toString(),10)]))if((m=this.checkClassicItem(y.items,m,!1))>=0&&p(y.items[parseInt(m.toString(),10)])){var v=m-1;if(v>=0&&(v=this.checkClassicItem(y.items,v,!1)),v>=0&&p(y.items[parseInt(v.toString(),10)])?f(v,b):f(m,b),b=v,!i&&r.offsetWidth>o.offsetWidth)return!0}else b=m}return!1},e.prototype.checkMediumToSmall=function(t,e,n,r,o,i){var c=this;void 0===i&&(i=!1);var u=e.groups[parseInt(n.toString(),10)];if(u.isCollapsed&&!i)return!1;var l=u.orientation,p=o.querySelector("#"+u.id),d=p.querySelectorAll(".e-ribbon-shrink"),f=function(t){return t.allowedSizes&s.c.Small&&t.activeSize===s.c.Medium},h=function(e,r,i,u){void 0===u&&(u=null);var a=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],l=function(t){var e=a.items[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=o.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Small},!0),e.type===s.f.GroupButton&&(n=o.querySelector("#"+e.id+"_grpbtn")),c.setItemSize(n,e)}};l(r),u&&l(u),l(i)},b=function(e,r,u,l){void 0===l&&(l=null);var p=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)];i||d[parseInt(e.toString(),10)].setAttribute("data-medium-width",o.offsetWidth.toString());var f=function(t){var e=p.collections[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=o.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.c.Small},!0),e.items[0].type===s.f.GroupButton&&(n=o.querySelector("#"+e.items[0].id+a.A)),c.setItemSize(n,e.items[0])}};f(r),l&&f(l),f(u)},m=function(t){if(!i){o.querySelector("#"+t).setAttribute("data-medium-width",o.offsetWidth.toString())}};if(l===s.e.Column){if(d.length>0)for(var v=d.length-1;v>=0;v--){var y=parseInt(d[parseInt(v.toString(),10)].getAttribute("data-start"),10),g=parseInt(d[parseInt(v.toString(),10)].getAttribute("data-end"),10),_=this.checkClassicCollection(u.collections,y+1,!1);if(f(u.collections[parseInt(y.toString(),10)].items[0])&&f(u.collections[parseInt(_.toString(),10)].items[0])&&(g===_?b(v,y,g):f(u.collections[parseInt(g.toString(),10)].items[0])&&b(v,y,g,_),!i&&r.offsetWidth>o.offsetWidth))return!0}for(var v=u.collections.length-1;v>=0;v--){for(var S=u.collections[parseInt(v.toString(),10)],I=[],C=0;C<S.items.length;C++)S.items[parseInt(C.toString(),10)].displayOptions&s.b.Classic&&I.push(C);if(I.length>1&&f(S.items[I[0]])&&f(S.items[I[1]])&&(2===I.length?(m(S.id),h(v,I[0],I[1])):f(S.items[I[2]])&&(m(S.id),h(v,I[0],I[2],I[1])),!i&&r.offsetWidth>o.offsetWidth))return!0}}else if(this.checkValidCollectionLength(u.collections)){if(d.length>0)for(var v=d.length-1;v>=0;v--){var B=d[parseInt(v.toString(),10)],y=parseInt(B.getAttribute("data-start"),10),g=parseInt(B.getAttribute("data-end"),10),S=u.collections[0],_=this.checkClassicItem(S.items,y+1,!1);if(f(u.collections[0].items[parseInt(y.toString(),10)])&&f(u.collections[0].items[parseInt(_.toString(),10)])&&(g===_?(m(B.id),h(0,y,g)):f(u.collections[0].items[parseInt(g.toString(),10)])&&(m(B.id),h(0,y,g,_)),!i&&r.offsetWidth>o.offsetWidth))return!0}}else for(var v=u.collections.length-1;v>=0;v--)for(var S=u.collections[parseInt(v.toString(),10)],_=S.items.length-1;_>=0;_--)if(!((_=this.checkClassicItem(S.items,_,!1))<0)){var O=S.items[parseInt(_.toString(),10)];if(f(O)&&(m(O.type!==s.f.GroupButton?O.id:O.id+a.A),h(v,_,_),!i&&r.offsetWidth>o.offsetWidth))return!0}return!1},e.prototype.checkGroupExpanding=function(t,e,n,r){for(var o=!1,i=this.tabs[parseInt(t.toString(),10)],s=0;!o&&s<i.groups.length;s++)o=r?this.checkSmallToMedium(t,i,s,e,n,!1,!0):this.checkMediumToLarge(t,i,s,e,n,!1,!0);return o},e.prototype.checkSmallToMedium=function(t,e,n,r,o,i,c){var u=this,l=e.groups[parseInt(n.toString(),10)],p=l.orientation,d=o.querySelector("#"+l.id),f=d.querySelectorAll(".e-ribbon-shrink"),h=function(e,r,o){var i=u.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],c=i.items[parseInt(r.toString(),10)];if(c.displayOptions&s.b.Classic){var l=o.id===c.id?o:o.querySelector("#"+c.id);c.setProperties({activeSize:s.c.Medium},!0),c.type===s.f.GroupButton&&(l=document.querySelector("#"+c.id+a.A)),u.setItemSize(l,c)}},b=function(e){var r=u.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections,i=r[parseInt(e.toString(),10)].items[0];if(i.displayOptions&s.b.Classic){var c=o.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id);r[parseInt(e.toString(),10)].items[0].setProperties({activeSize:s.c.Medium},!0),i.type===s.f.GroupButton&&(c=o.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id+a.A)),u.setItemSize(c,r[parseInt(e.toString(),10)].items[0])}};if(p===s.e.Row){if(!this.checkValidCollectionLength(l.collections))for(var m=0;m<l.collections.length;m++)for(var v=l.collections[parseInt(m.toString(),10)],y=0;y<v.items.length;y++)if((y=this.checkClassicItem(v.items,y,!0))!==v.items.length){var g=v.items[parseInt(y.toString(),10)];if(function(t){return t.allowedSizes&s.c.Medium&&t.activeSize===s.c.Small}(g)){var _=o.querySelector("#"+g.id);"GroupButton"===g.type&&(_=o.querySelector("#"+g.id+a.A));var S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(i||r.offsetWidth>I))h(m,y,_),i&&!c||_.removeAttribute("data-medium-width");else if(I)return!0}}}else for(var m=0;m<l.collections.length;m++)if(l.collections[parseInt(m.toString(),10)].items.length>1){for(var v=l.collections[parseInt(m.toString(),10)],_=o.querySelector("#"+v.id),S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null,C=[],B=0;B<v.items.length;B++)v.items[parseInt(B.toString(),10)].displayOptions&s.b.Classic&&C.push(B);if(C.length>1&&I&&(i||r.offsetWidth>I))h(m,C[0],_),h(m,C[1],_),3===C.length&&h(m,C[2],_),i&&!c||_.removeAttribute("data-medium-width");else if(I)return!0}if(f.length>0)for(var m=0;m<f.length;m++){var O=f[parseInt(m.toString(),10)],S=O.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(i||r.offsetWidth>I)){var w=parseInt(O.getAttribute("data-start"),10),P=parseInt(O.getAttribute("data-end"),10);if(p===s.e.Row){var v=l.collections[0],y=this.checkClassicItem(v.items,w+1,!0);h(0,w,O),h(0,y,O),y!==P&&h(0,P,O)}else{var D=this.checkClassicCollection(l.collections,w+1,!0);b(w),b(D),D!==P&&b(P)}i&&!c||O.removeAttribute("data-medium-width")}else if(I)return!0}return!1},e.prototype.checkMediumToLarge=function(t,e,o,i,c,u,l){var p=this,d=e.groups[parseInt(o.toString(),10)],f=d.orientation,h=c.querySelector("#"+d.id),b=h.querySelectorAll(".e-ribbon-shrink");if(0===b.length)return!1;for(var m=function(e,i,c,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(o.toString(),10)].collections[0].items,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=c.querySelector("#"+e.id+a._40),r=n.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Large},!0),e.type===s.f.GroupButton&&(r=n.querySelector("#"+e.id+a.A)),p.setItemSize(r,e),c.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(i),u&&!l||n.i(r.remove)(c)},v=function(e,i,c,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(o.toString(),10)].collections,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=c.querySelector("#"+e.id),r=n.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.c.Large},!0),e.items[0].type===s.f.GroupButton&&(r=n.querySelector("#"+e.items[0].id+a.A)),p.setItemSize(r,e.items[0]),c.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(i),u&&!l||n.i(r.remove)(c)},y=0;y<b.length;y++){var g=b[parseInt(y.toString(),10)],_=g.getAttribute("data-large-width"),S=_?parseInt(_,10):null;if(S&&(u||i.offsetWidth>S)){var I=parseInt(g.getAttribute("data-start"),10),C=parseInt(g.getAttribute("data-end"),10);if(f===s.e.Row){var B=d.collections[0],O=this.checkClassicItem(B.items,I+1,!0);O===C?m(I,C,g):m(I,C,g,O)}else{var w=this.checkClassicCollection(d.collections,I+1,!0);w===C?v(I,C,g):v(I,C,g,w)}u&&!l||g.removeAttribute("data-large-width")}else if(S)return!0}return!1},e.prototype.handleContentSize=function(t,e){var n=t.closest("."+a._11);e?n.classList.add(a._25):n.classList.remove(a._25)},e.prototype.setItemSize=function(t,e){var o=t.closest("."+a._19);e.type===s.f.Button?this.ribbonButtonModule.updateButtonSize(t,e):e.type===s.f.DropDown?this.ribbonDropDownModule.updateDropDownSize(t,e):e.type===s.f.SplitButton?this.ribbonSplitButtonModule.updateSplitButtonSize(t,e):e.type===s.f.Template?(n.i(r.remove)(t),this.createTemplateContent(e,o)):e.type===s.f.GroupButton&&this.ribbonGroupButtonModule.updateGroupButtonSize(t,e),o.classList.remove(a._25,a._22,a._23,a._24),e.activeSize===s.c.Large?o.classList.add(a._22,a._25):o.classList.add(e.activeSize===s.c.Medium?a._23:a._24)},e.prototype.createOverflowDropdown=function(t,e,r){var o=this.getGroupResizeOrder(!0,t);if(0!==o.length)for(var i=this,s=0;s<o.length&&e.offsetWidth<r.offsetWidth;s++)!function(s){var c=o[parseInt(s.toString(),10)],l=i.tabObj.element.querySelector("#"+c.id);l.setAttribute("data-expanded-width",r.offsetWidth.toString());var p=l.querySelector("#"+c.id+a._40),d=i.createElement("div",{className:a._14+a.F+a._22,id:c.id+a.M+a._40});l.insertBefore(d,p);var f=n.i(u.e)(i.tabs[parseInt(t.toString(),10)].groups,function(t){return t.id===c.id}),h=i.tabs[parseInt(t.toString(),10)];i.checkSmallToMedium(t,h,f,e,r,!0,!1),i.checkMediumToLarge(t,h,f,e,r,!0,!1);var b=i.ribbonDropDownModule.createOverFlowDropDown(c.id,c.header,c.groupIconCss,p,d,i.enableRtl);i.tabs[parseInt(t.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!0},!0);for(var m=0;m<c.collections.length;m++)for(var v=c.collections[parseInt(m.toString(),10)],y=p.querySelector("#"+v.id),g=0;g<v.items.length;g++){var _=v.items[parseInt(g.toString(),10)],S=y.querySelector("#"+_.id+a._40);null!==S&&(i.handleContentSize(S),i.addOverflowEvents(_,S,b))}}(s)},e.prototype.removeOverflowDropdown=function(t,e,r,o){void 0===r&&(r=!1);var i=this.getGroupResizeOrder(!1,o);if(0===i.length)return!1;for(var s=this,c=0;c<i.length;c++){var l=function(c){var l=i[parseInt(c.toString(),10)],p=s.tabObj.element.querySelector("#"+l.id);if(!p)return"break";var d=parseInt(p.getAttribute("data-expanded-width"),10);if(!r&&t.offsetWidth<d)return{value:!0};s.removeDropdown(l.id);var f=n.i(u.e)(s.tabs[parseInt(o.toString(),10)].groups,function(t){return t.id===l.id});s.tabs[parseInt(o.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!1},!0);var h=s.tabs[parseInt(o.toString(),10)];s.checkLargeToMedium(o,h,f,t,e,!0),s.checkMediumToSmall(o,h,f,t,e,!0);for(var b=0;b<l.collections.length;b++)for(var m=l.collections[parseInt(b.toString(),10)],v=p.querySelector("#"+m.id),y=0;y<m.items.length;y++){var g=m.items[parseInt(y.toString(),10)],_=v.querySelector("#"+g.id+a._40);null!==_&&(s.handleContentSize(_,!0),s.removeOverflowEvent(g,_))}}(c);if("object"==typeof l)return l.value;if("break"===l)break}return!1},e.prototype.removeDropdown=function(t){var e=this.tabObj.element.querySelector("#"+t+a.M+a.N);if(e){var o=e.parentElement;this.ribbonDropDownModule.removeOverFlowDropDown(e),n.i(r.remove)(o)}},e.prototype.getGroupResizeOrder=function(t,e){var o=this,i=this.tabs[parseInt(e.toString(),10)].groups;return i=i.filter(function(e){return"Classic"!==o.activeLayout||(n.i(r.isUndefined)(e.isCollapsible)||e.isCollapsible)&&(t&&n.i(r.isUndefined)(e.isCollapsed)||!n.i(r.isUndefined)(e.isCollapsed)&&t!==e.isCollapsed)}),i.sort(function(t,e){return t.priority-e.priority}),t?i.reverse():i},e.prototype.destroyScroll=function(){this.scrollModule&&(this.scrollModule.destroy(),this.scrollModule=null)},e.prototype.clearOverflowDropDown=function(t){var e=this.tabObj.element.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+a.o);if(e){var n=e.closest("."+a._5);"Simplified"===this.activeLayout?this.removeSimplfiedOverflow(e,n,t,!0):this.removeOverflowDropdown(e,n,!0,t)}},e.prototype.ribbonTabSelecting=function(t){var e=this;this.currentControlIndex=0;var o=t.selectingItem.getAttribute("data-id"),i=t.previousItem.getAttribute("data-id"),s=n.i(u.e)(this.tabs,function(t){return t.id===o}),c=n.i(u.e)(this.tabs,function(t){return t.id===i});s=-1===s?this.selectedTab:s;var l={cancel:t.cancel,isInteracted:t.isInteracted,previousIndex:c,selectedIndex:s};this.trigger("tabSelecting",l,function(t){if(!t.cancel){e.destroyScroll(),e.isAddRemove||-1===c||e.clearOverflowDropDown(c);var o=e.tabObj.items[parseInt(s.toString(),10)].content;if(!o.querySelector("."+a._7)&&0!==e.tabs[parseInt(s.toString(),10)].groups.length){var i=e.createGroups(e.tabs[parseInt(s.toString(),10)].groups,s);n.i(r.append)(i,o)}}})},e.prototype.createTabItems=function(t){for(var e=this,n=[],r=0;r<t.length;r++){var o=t[parseInt(r.toString(),10)],i=this.createElement("span",{innerHTML:o.header,id:o.id+a._38});i.onclick=function(){e.minimize(!1)},i.ondblclick=function(){e.minimize(!0)};var s={header:{text:i},id:o.id,cssClass:o.cssClass},c=this.createElement("div",{className:s.cssClass,id:o.id+a.o});c.classList.add(a.X),s.content=c,n.push(s)}return n},e.prototype.renderInitialTab=function(t){var e=this.createGroups(this.tabs[parseInt(t.toString(),10)].groups,t),o=this.tabObj.items[parseInt(t.toString(),10)].content;n.i(r.append)(e,o),"Simplified"===this.activeLayout&&this.element.classList.add(a._30);var i=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o);this.checkOverflow(this.selectedTab,i)},e.prototype.addOverflowButton=function(t){var e=this,o=this.createElement("button",{id:t}),i=this.createElement("div",{className:a._3,attrs:{tabindex:"0"}}),s=new l.DropDownButton({iconCss:a.Q,cssClass:a._27+a.F+a.O,target:i,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeClose:function(t){(t.event?n.i(r.closest)(t.event.target,"."+a.L):null)&&(t.cancel=!0)}},o);this.element.classList.add(a._4),n.i(u.d)(i,this);var c;return o.onkeydown=o.onclick=function(){e.itemIndex=-1,c=!o.classList.contains("e-ribbon-overall-of-btn")},i.onkeydown=function(t){return e.upDownKeyHandler(t,i,c),e},s},e.prototype.upDownKeyHandler=function(t,e,o){var i;if(o)i=e.getElementsByClassName("e-ribbon-item");else{i=e.querySelector(".e-ribbon-of-tab.e-ribbon-active").getElementsByClassName("e-ribbon-item")}var s,c=i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control").classList.contains("e-combobox")?i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;(null===c||"Tab"===t.key||this.itemIndex<0)&&("ArrowDown"===t.key||!t.shiftKey&&"Tab"===t.key?!this.itemIndex&&0!==this.itemIndex||this.itemIndex<0||this.itemIndex===i.length-1?(this.itemIndex=0,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0),c&&"Tab"===t.key&&(t.preventDefault(),i[this.itemIndex].querySelector(".e-control").focus())):this.itemIndex<i.length-1&&this.itemIndex>=0&&(this.itemIndex++,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0)):("ArrowUp"===t.key||t.shiftKey&&"Tab"===t.key)&&(null!==c&&"Tab"!==t.key||(this.itemIndex&&-1!==this.itemIndex?this.itemIndex<=i.length-1&&this.itemIndex>0&&(this.itemIndex--,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1)):(this.itemIndex=i.length-1,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1),c&&t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),i[this.itemIndex].querySelector(".e-control").focus())))),e.setAttribute("index",this.itemIndex.toString()));var u=parseInt(e.getAttribute("index"),10),a=i[parseInt(u.toString(),10)]?i[parseInt(u.toString(),10)].querySelector(".e-control").getAttribute("data-control"):null;if(("ArrowDown"===t.key||"ArrowUp"===t.key||" "===t.key||"Tab"===t.key)&&("ColorPicker"===a?("Tab"===t.key&&t.preventDefault(),i[parseInt(u.toString(),10)].querySelector(".e-split-colorpicker").focus()):("Tab"===t.key&&t.preventDefault(),i[parseInt(u.toString(),10)].querySelector(".e-control").focus())," "===t.key&&"CheckBox"===a)){var l=i[parseInt(u.toString(),10)].querySelector(".e-control"),d=n.i(r.getComponent)(l,p.CheckBox);this.itemIndex=-1,d.click()}"SplitButton"!==a||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||("ArrowRight"===t.key&&(this.enableRtl?i[parseInt(u.toString(),10)].querySelector(".e-control").focus():i[parseInt(u.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===t.key&&(this.enableRtl?i[parseInt(u.toString(),10)].querySelector(".e-dropdown-btn").focus():i[parseInt(u.toString(),10)].querySelector(".e-control").focus())),"Enter"===t.key&&(this.itemIndex=-1)},e.prototype.findDisabledItem=function(t,e,n){for(;t&&t.classList.contains("e-disabled");)n?this.itemIndex===e.length-1&&e[this.itemIndex].closest(".e-ribbon-item").classList.contains("e-disabled")&&(this.itemIndex=-1):0===this.itemIndex&&e[this.itemIndex].closest(".e-ribbon-item").classList.contains("e-disabled")&&(this.itemIndex=e.length),n?this.itemIndex++:this.itemIndex--,t=e[this.itemIndex].closest(".e-ribbon-item")},e.prototype.removeOverflowButton=function(t){if(t){var e=t.element;n.i(u.n)(t.target),t.destroy(),e.remove()}},e.prototype.removeOverflowEvent=function(t,e){switch(t.type){case"Button":this.ribbonButtonModule.removeOverFlowEvents(t,e);break;case"DropDown":this.ribbonDropDownModule.removeOverFlowEvents(t,e);break;case"SplitButton":this.ribbonSplitButtonModule.removeOverFlowEvents(t,e);break;case"CheckBox":this.ribbonCheckBoxModule.removeOverFlowEvents(t,e);break;case"ColorPicker":this.ribbonColorPickerModule.removeOverFlowEvents(t,e);break;case"ComboBox":this.ribbonComboBoxModule.removeOverFlowEvents(t,e);break;case"GroupButton":this.ribbonGroupButtonModule.removeOverFlowEvents(t,e)}},e.prototype.createGroupContainer=function(t,e){var n=this.createElement("div",{className:a._10,id:t+a._40}),r=this.createElement("div",{className:a._13,id:t+a._38,innerHTML:e});return n.append(r),n},e.prototype.addExpandCollapse=function(){var t=this;this.collapseButton=this.createElement("span",{className:a.Y+a.F+a.P,id:this.tabObj.element.id+a._36,attrs:{tabindex:"0",type:"button","aria-label":"Layout Switcher",role:"button"}}),this.collapseButton.onclick=function(){t.toggleLayout()},this.collapseButton.onkeydown=function(e){"Enter"===e.key&&t.toggleLayout()},this.element.classList.add(a._0),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(a.Z),this.tabObj.element.appendChild(this.collapseButton)},e.prototype.removeExpandCollapse=function(){var t=this,e=n.i(u.e)(this.tooltipData,function(e){return e.id===t.collapseButton.id});-1!==e&&this.tooltipData.splice(e,1),this.element.classList.remove(a._0),n.i(r.remove)(this.tabObj.element.querySelector("."+a.Y)),this.collapseButton=null},e.prototype.reRenderTabs=function(t){this.destroyScroll(),this.checkID(this.tabs,"tab",this.element.id);for(var e in t){for(var o=parseInt(e,10),i=t[parseInt(o.toString(),10)],s=!1,c=0;c<this.tabObj.items.length;c++)if(this.tabs[parseInt(o.toString(),10)].id===this.tabObj.items[parseInt(c.toString(),10)].id){s=!0;break}if(!s){this.destroyTabItems(this.tabsInternal),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var u=this.createTabItems(this.tabs);this.selectedTab>=this.tabs.length&&(this.selectedTab=this.tabs.length-1),this.tabObj.setProperties({items:u,selectedItem:this.selectedTab});break}var l=this.tabs[parseInt(o.toString(),10)].groups,p=this.tabObj.element,d=this.tabs[parseInt(o.toString(),10)];d.setProperties(i,!0),this.setProperties({groups:this.checkID(d.groups,"group",d.id)},!0),this.validateItemSize();var f=this.tabObj.items[parseInt(o.toString(),10)].content;if(l&&(i.header&&(this.tabObj.items[parseInt(o.toString(),10)].header.text.innerText=d.header),i.cssClass&&(this.tabObj.items[parseInt(o.toString(),10)].cssClass&&(f.classList.remove(this.tabObj.items[parseInt(o.toString(),10)].cssClass),p.querySelector(".e-active").classList.remove(this.tabObj.items[parseInt(o.toString(),10)].cssClass)),f.classList.add(d.cssClass),p.querySelector(".e-active").classList.add(d.cssClass)),i.groups)){for(var h=0,b=l;h<b.length;h++){for(var m=b[h],v=m.isCollapsed?f.querySelector("#"+m.id+a.M+a.N):null,y=0,g=m.collections;y<g.length;y++)for(var _=g[y],S=0,I=_.items;S<I.length;S++){var C=I[S],B=v?this.ribbonDropDownModule.getDDBItemElement(v,C.id):f.querySelector("#"+C.id);B&&this.destroyFunction(C,B)}v&&this.ribbonDropDownModule.removeOverFlowDropDown(v)}f.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()});var O=this.createGroups(d.groups,o);n.i(r.append)(O,f)}}var w=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o);this.checkOverflow(this.selectedTab,w)},e.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(a.Z,"Simplified"===this.activeLayout),this.element.classList.toggle(a._30,"Simplified"===this.activeLayout);for(var t=0;t<=this.tabs.length-1;t++){var e=t;if(""!==this.tabObj.items[parseInt(e.toString(),10)].content.innerHTML){var o=this.tabs[parseInt(e.toString(),10)],i=this.tabs[parseInt(e.toString(),10)].groups,c=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+a.o),u=c.closest("."+a._5);if("Simplified"===this.activeLayout)for(var p=0;p<i.length;p++){var d=i[parseInt(p.toString(),10)],f=i[parseInt(p.toString(),10)].orientation;d.isCollapsed?(d.setProperties({isCollapsed:!1},!0),this.removeDropdown(d.id)):(this.checkSmallToMedium(e,o,p,u,c,!0,!1),this.checkMediumToLarge(e,o,p,u,c,!0,!1));for(var h=u.querySelector("#"+d.id),b=h.querySelector("#"+d.id+a._40),m=b.querySelectorAll(".e-ribbon-shrink"),v=0;v<m.length;v++)m[parseInt(v.toString(),10)].remove();var y=b.querySelector("#"+d.id+a._38);y.remove();var g=b.querySelector("#"+d.id+a.o);g.classList.replace(a._20,a._21),g.classList.remove(a._25);for(var _=0;_<d.collections.length;_++){var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);I.classList.replace(a._20,a._21);for(var C=0;C<S.items.length;C++){for(var B=S.items,O=S.items[parseInt(C.toString(),10)],w=!0;w&&O.displayOptions===s.b.Classic;){C++;var P=b.querySelector("#"+O.id+a._40),D=P.querySelector("#"+O.id);this.destroyFunction(O,D),P.remove(),C<B.length?O=B[parseInt(C.toString(),10)]:w=!1}if(!w)break;var L=O.allowedSizes===s.c.Large||O.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;L=!(O.displayOptions&s.b.Simplified)&&O.displayOptions&s.b.Overflow?s.c.Medium:L;var k=void 0;if(O.displayOptions&s.b.Classic){k=b.querySelector("#"+O.id+a._40),O.displayOptions===(s.b.Classic|s.b.Overflow)&&(this.createOverflowPopup(O,e,d.enableGroupOverflow,d.id,d.header,k,b),O.type!==s.f.DropDown&&O.type!==s.f.SplitButton&&O.type!==s.f.GroupButton||this.updatePopupItems(O,k,d.enableGroupOverflow,!0)),O.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(O,k),O.setProperties({activeSize:L},!0);var D=k.querySelector("#"+O.id);this.setItemSize(D,O)}else k=this.createItems([O],f,d.id,d.header,d.enableGroupOverflow,e,b)[0],O.displayOptions&s.b.Simplified&&I.append(k)}}d.enableGroupOverflow||h.querySelector("."+a._19)||h.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(a._4);for(var T=0;T<i.length;T++){var d=i[parseInt(T.toString(),10)],f=i[parseInt(T.toString(),10)].orientation,b=u.querySelector("#"+d.id+a._40),g=b.querySelector("#"+d.id+a.o),y=this.createElement("div",{className:a._12,id:d.id+a._38,innerHTML:d.header});b.appendChild(y),"Row"===f&&g.classList.replace(a._21,a._20),g.classList.add(a._25);for(var _=0;_<d.collections.length;_++){var E=void 0,x=void 0;if(d.enableGroupOverflow){var M=b.querySelector("#"+d.id+a.r);M&&(E=n.i(r.getInstance)(M,l.DropDownButton),x=E.target)}else(E=this.overflowDDB)&&(x=this.overflowDDB.target);var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);"Column"===f&&I.classList.replace(a._21,a._20);for(var C=0;C<S.items.length;C++){for(var B=S.items,O=S.items[parseInt(C.toString(),10)],w=!0;w&&!(O.displayOptions&s.b.Classic);){C++;var k=void 0;if((O.displayOptions&s.b.Simplified||O.displayOptions&s.b.Overflow)&&null!==(k=O.displayOptions&s.b.Simplified?b.querySelector("#"+O.id+a._40):x.querySelector("#"+O.id+a._40))){var R=k.querySelector("#"+O.id);this.destroyFunction(O,R),k.remove()}C<B.length?O=B[parseInt(C.toString(),10)]:w=!1}if(!w)break;if(O.displayOptions&(s.b.Simplified|s.b.Overflow)){var k=b.querySelector("#"+O.id+a._40);k||(k=x.querySelector("#"+O.id+a._40),O.type!==s.f.DropDown&&O.type!==s.f.SplitButton&&O.type!==s.f.GroupButton||this.updatePopupItems(O,k,d.enableGroupOverflow,!1),this.removeOverflowEvent(O,k)),O.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(O,k),I.append(k)}else{var k=this.createItems([O],f,d.id,d.header,d.enableGroupOverflow,e)[0];I.append(k)}var D=b.querySelector("#"+O.id);O.type===s.f.GroupButton&&(D=b.querySelector("#"+O.id+a.A));var q=O.allowedSizes&s.c.Large?s.c.Large:O.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;O.setProperties({activeSize:q},!0),this.setItemSize(D,O)}d.enableGroupOverflow&&E&&0===x.childElementCount&&this.removeOverflowButton(E)}}}this.selectedTab===e&&this.checkOverflow(e,c)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.createLauncherIcon=function(t,e){var n=this,o=this.createElement("div",{className:a._16+" "+(this.launcherIconCss?this.launcherIconCss:a._17),id:t+a._39,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});e.appendChild(o),e.classList.add(a._15),r.EventHandler.add(o,"click",this.launcherIconClicked.bind(this,t),this),r.EventHandler.add(o,"keydown",function(e){"Enter"===e.key&&n.launcherIconClicked(t)},this)},e.prototype.launcherIconClicked=function(t){var e={groupId:t};this.trigger("launcherIconClick",e)},e.prototype.createGroups=function(t,e){for(var o=[],i=0;i<t.length;i++){var s=t[parseInt(i.toString(),10)],c=s.orientation,u=this.createElement("div",{className:s.cssClass,id:s.id});u.classList.add(a._7),o.push(u);var l=this.createElement("div",{className:s.cssClass,id:s.id+a._40});l.classList.add(a._8),u.appendChild(l);var p=this.createElement("div",{className:"Simplified"===this.activeLayout?a._11:a._11+a.F+a._25,id:s.id+a.o});if(p.classList.add("Column"===c||"Simplified"===this.activeLayout?a._21:a._20),l.appendChild(p),"Classic"===this.activeLayout){var d=this.createElement("div",{className:a._12,id:s.id+a._38,innerHTML:s.header});l.appendChild(d)}s.showLauncherIcon&&this.createLauncherIcon(s.id,l);var f=this.createCollection(s.collections,s.orientation,s.id,s.header,s.enableGroupOverflow,e,l);n.i(r.append)(f,p),"Simplified"!==this.activeLayout||s.enableGroupOverflow||u.querySelector("."+a._19)||u.classList.add("e-ribbon-emptyCollection")}return o},e.prototype.validateItemSize=function(){for(var t=0;t<this.tabs.length;t++)for(var e=this.tabs[parseInt(t.toString(),10)].groups,n=0;n<e.length;n++)for(var r=e[parseInt(n.toString(),10)].collections,o=e[parseInt(n.toString(),10)].orientation,i=0;i<r.length;i++)for(var c=r[parseInt(i.toString(),10)].items,u=0;u<c.length;u++){var a=c[parseInt(u.toString(),10)];if(a.allowedSizes&&0!==a.allowedSizes||a.setProperties({allowedSizes:s.c.Small|s.c.Medium|s.c.Large},!0),"ColorPicker"===a.type&&a.allowedSizes!==s.c.Small)a.setProperties({allowedSizes:s.c.Small},!0);else if("ComboBox"!==a.type&&"CheckBox"!==a.type||a.allowedSizes===s.c.Medium){if(("Column"===o&&c.length>1||"Row"===o&&r.length>1)&&a.allowedSizes&s.c.Large){var l=a.allowedSizes&(s.c.Small|s.c.Medium);l=l||s.c.Medium,a.setProperties({allowedSizes:l},!0)}}else a.setProperties({allowedSizes:s.c.Medium},!0);var p=a.allowedSizes&s.c.Large?s.c.Large:a.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;a.setProperties({activeSize:p},!0)}},e.prototype.createCollection=function(t,e,o,i,s,c,u){for(var l=[],p=0;p<t.length;p++){var d=t[parseInt(p.toString(),10)],f=this.createElement("div",{className:d.cssClass,id:d.id});f.classList.add(a._18),f.classList.add("Column"!==e||"Simplified"===this.activeLayout?a._21:a._20),l.push(f);var h=this.createItems(d.items,e,o,i,s,c,u);if(n.i(r.append)(h,f),"Row"===e&&2===p)break}return l},e.prototype.createRibbonItem=function(t,e){switch(t.type){case"Button":this.ribbonButtonModule.createButton(t,e);break;case"DropDown":this.ribbonDropDownModule.createDropDown(t,e);break;case"SplitButton":this.ribbonSplitButtonModule.createSplitButton(t,e);break;case"CheckBox":this.ribbonCheckBoxModule.createCheckBox(t,e);break;case"ColorPicker":this.ribbonColorPickerModule.createColorPicker(t,e);break;case"ComboBox":this.ribbonComboBoxModule.createComboBox(t,e);break;case"Template":this.createTemplateContent(t,e);break;case"GroupButton":this.ribbonGroupButtonModule.createGroupButton(t,e)}},e.prototype.createItems=function(t,e,r,o,i,c,l){for(var p,d=[],f=0;f<t.length;f++){for(var h=t[parseInt(f.toString(),10)],b=!0;b&&("Simplified"===this.activeLayout&&!(h.displayOptions&(s.b.Simplified|s.b.Overflow))||"Classic"===this.activeLayout&&!(h.displayOptions&s.b.Classic));)f++,f<t.length?h=t[parseInt(f.toString(),10)]:b=!1;if(!b)break;var m=this.createElement("div",{className:h.cssClass,id:h.id+a._40});(p=m.classList).add.apply(p,[a._19].concat(h.disabled?[a.R]:[])),h.ribbonTooltipSettings&&n.i(u.a)(h.ribbonTooltipSettings)&&(m.classList.add(a.e),this.tooltipData.push({id:m.id,data:h.ribbonTooltipSettings}));var v=h.activeSize;if("Simplified"===this.activeLayout&&(v=h.allowedSizes===s.c.Large||h.allowedSizes&s.c.Medium||h.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,h.setProperties({activeSize:v},!0)),v&s.c.Large?m.classList.add(a._22,a._25):m.classList.add(v&s.c.Medium?a._23:a._24),this.createRibbonItem(h,m),"Simplified"!==this.activeLayout||h.displayOptions!==s.b.Overflow&&h.displayOptions!==(s.b.Classic|s.b.Overflow)?d.push(m):(this.createOverflowPopup(h,c,i,r,o,m,l),h.type!==s.f.DropDown&&h.type!==s.f.SplitButton&&h.type!==s.f.GroupButton||this.updatePopupItems(h,m,i,!0)),"Column"===e&&2===f)break}return d},e.prototype.createHelpPaneTemplate=function(){if(this.helpPaneTemplate){this.clearTemplate(["helpPaneTemplate"]),this.ribbonTempEle=this.createElement("div",{className:a._29,id:this.element.id+a._41});var t=n.i(u.b)(this.helpPaneTemplate);n.i(r.append)(t({},this,"helpPaneTemplate","helpPaneTemplate",this.isStringTemplate),this.ribbonTempEle);var e=this.tabObj.element;e.querySelector(".e-toolbar").after(this.ribbonTempEle),e.style.setProperty(a._42,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},e.prototype.createTemplateContent=function(t,e){var n=this.createElement("div",{className:t.cssClass?a._28+a.F+t.cssClass:a._28,id:t.id});t.disabled&&(n.classList.add(a.R),n.setAttribute("disabled","")),e.appendChild(n),this.renderItemTemplate(t,n)},e.prototype.renderItemTemplate=function(t,e){var o="ribbon"+t.id+"itemTemplate";this.clearTemplate([o]);var i=n.i(u.b)(t.itemTemplate);n.i(r.append)(i({activeSize:s.c[t.activeSize]},this,o,t.id+"itemTemplate",this.isStringTemplate),e),this.renderReactTemplates()},e.prototype.checkID=function(t,e,n){for(var r="tab"===e?a._32:"group"===e?a._33:"collection"===e?a._34:a._35,o=0;o<t.length;o++){var i=t[parseInt(o.toString(),10)];switch(i.id||i.setProperties({id:n+r+this.idIndex++},!0),e){case"tab":i.setProperties({groups:this.checkID(i.groups,"group",i.id)},!0);break;case"group":i.setProperties({collections:this.checkID(i.collections,"collection",i.id)},!0);break;case"collection":i.setProperties({items:this.checkID(i.items,"item",i.id)},!0)}}return t},e.prototype.updateCommonProperty=function(t){this.tabObj.setProperties(t),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.setCommonProperties(t),this.ribbonBackstageModule&&this.ribbonBackstageModule.setCommonProperties(t);for(var e=0;e<this.tabs.length;e++){var o=this.tabs[parseInt(e.toString(),10)],i=this.tabObj.items[parseInt(e.toString(),10)].content;if(i.querySelector("."+a._7))for(var c=0,p=o.groups;c<p.length;c++){var d=p[c],f=void 0,h=void 0;this.activeLayout===s.a.Classic?f=d.isCollapsed?i.querySelector("#"+d.id+a.M+a.N):null:(f=d.enableGroupOverflow?i.querySelector("#"+d.id+a.r):null,(h=f?n.i(r.getComponent)(f,l.DropDownButton):this.overflowDDB)&&(n.i(u.o)(h.target,t),h.setProperties(t)));for(var b=0,m=d.collections;b<m.length;b++)for(var v=m[b],y=0,g=v.items;y<g.length;y++){var _=g[y],S=null;if(this.activeLayout===s.a.Classic?_.displayOptions&s.b.Classic&&(S=f?this.ribbonDropDownModule.getDDBItemElement(f,_.id):_.type===s.f.GroupButton?i.querySelector("#"+_.id+a.A):i.querySelector("#"+_.id)):(S=_.displayOptions&s.b.Simplified?i.querySelector("#"+_.id):null)||(S=h.target.querySelector("#"+_.id),"DropDown"===_.type&&this.updatePopupItems(_,h.target,d.enableGroupOverflow,!0)),S){var I=this.getItemModuleName(_);if("template"!==I)if("group-btn"===I&&"Classic"===this.activeLayout)for(var C=0;C<_.groupButtonSettings.items.length;C++){var B=S.querySelector("#"+_.id+a.A+C);n.i(u.j)(B,"btn",t)}else if("group-btn"===I&&"Simplified"===this.activeLayout){n.i(u.j)(S,"dropdown-btn",t);for(var O=0;O<_.groupButtonSettings.items.length;O++){var B=document.querySelector("#"+_.id+a.A+O);n.i(u.j)(B,"btn",t)}}else n.i(u.j)(S,I,t);else n.i(r.isNullOrUndefined)(t.enableRtl)||S.classList.toggle(a.S,t.enableRtl)}}}}},e.prototype.removeLauncherIcon=function(t,e,o){var i=t+a._40,s=e?this.ribbonDropDownModule.getDDBItemElement(e,i):o.querySelector("#"+i);if(s){s.classList.remove(a._15);var c=s.querySelector("#"+t+a._39);n.i(r.remove)(c)}},e.prototype.destroyTabItems=function(t){for(var e=0;e<t.length;e++)for(var o=t[parseInt(e.toString(),10)],i=this.tabObj.items[parseInt(e.toString(),10)].content,c=0,u=o.groups;c<u.length;c++){var p=u[c],d=void 0,f=void 0;this.activeLayout===s.a.Classic?(d=p.isCollapsed?i.querySelector("#"+p.id+a.M+a.N):null,p.showLauncherIcon&&this.removeLauncherIcon(p.id,d,i)):(d=p.enableGroupOverflow?i.querySelector("#"+p.id+a.r):null,f=d?n.i(r.getComponent)(d,l.DropDownButton):this.overflowDDB);for(var h=0,b=p.collections;h<b.length;h++)for(var m=b[h],v=0,y=m.items;v<y.length;v++){var g=y[v],_=void 0;this.activeLayout===s.a.Classic?g.displayOptions&s.b.Classic&&(_=d?this.ribbonDropDownModule.getDDBItemElement(d,g.id):i.querySelector("#"+g.id),g.type===s.f.GroupButton&&(_=d?this.ribbonDropDownModule.getDDBItemElement(d,g.id+a.A):i.querySelector("#"+g.id+a.A))):(_=g.displayOptions&s.b.Simplified?i.querySelector("#"+g.id):null)||(_=f?f.target.querySelector("#"+g.id):null),_&&this.destroyFunction(g,_)}this.activeLayout===s.a.Classic&&d?this.ribbonDropDownModule.removeOverFlowDropDown(d):this.activeLayout===s.a.Simplified&&p.enableGroupOverflow&&d&&this.removeOverflowButton(f)}this.overflowDDB&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.destroyFunction=function(t,e){var r=this.getItemModuleName(t);if("colorpicker"===r)this.ribbonColorPickerModule.unwireColorPickerEvents(e);else if("group-btn"===r){if("Classic"===this.activeLayout)for(var o=0;o<t.groupButtonSettings.items.length;o++){var i=e.querySelector("#"+t.id+a.A+o);i&&n.i(u.i)(i,"btn")}else this.ribbonGroupButtonModule.destroyDropDown(t);for(var s=this,o=0;o<t.groupButtonSettings.items.length;o++)!function(e){if(t.groupButtonSettings.items[parseInt(e.toString(),10)].ribbonTooltipSettings){var r=t.id+a.A+e,o=n.i(u.e)(s.tooltipData,function(t){return t.id===r});-1!==o&&s.tooltipData.splice(o,1)}}(o)}else"template"!==r&&n.i(u.i)(e,r);if(t.ribbonTooltipSettings){var c=n.i(u.e)(this.tooltipData,function(e){return e.id===t.id+a._40});-1!==c&&this.tooltipData.splice(c,1)}"GroupButton"===t.type&&this.ribbonGroupButtonModule.destroyDropDown(t)},e.prototype.getItemModuleName=function(t){switch(t.type){case"Button":return"btn";case"DropDown":return"dropdown-btn";case"SplitButton":return"split-btn";case"CheckBox":return"checkbox";case"ColorPicker":return"colorpicker";case"ComboBox":return"combobox";case"GroupButton":return"group-btn";default:return"template"}},e.prototype.clearOverflowResize=function(){this.destroyScroll(),this.clearOverflowDropDown(this.selectedTab);for(var t=this.tabs[this.selectedTab],e=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o),n=e.closest("."+a._5),r=0;r<t.groups.length;r++)this.checkSmallToMedium(this.selectedTab,t,r,n,e,!0,!0),this.checkMediumToLarge(this.selectedTab,t,r,n,e,!0,!0)},e.prototype.refreshLayout=function(){this.resizeHandler()},e.prototype.selectTab=function(t){var e=n.i(u.e)(this.tabs,function(e){return e.id===t});this.setProperties({selectedTab:e})},e.prototype.showTab=function(t){this.showHideTab(t,!1)},e.prototype.hideTab=function(t){this.showHideTab(t,!0)},e.prototype.showHideTab=function(t,e){var r=n.i(u.e)(this.tabs,function(e){return e.id===t});-1!==r&&this.tabObj.hideTab(r,e)},e.prototype.enableTab=function(t){this.enableDisableTab(t,!0)},e.prototype.disableTab=function(t){this.enableDisableTab(t,!1)},e.prototype.enableDisableTab=function(t,e){var r=n.i(u.e)(this.tabs,function(e){return e.id===t});-1!==r&&this.tabObj.enableTab(r,e)},e.prototype.addTab=function(t,e,r){var o=e?n.i(u.e)(this.tabs,function(t){return t.id===e}):-1;o=-1===o?this.tabs.length:o+(r?1:0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(o,0,t),this.setProperties({tabs:this.tabsInternal},!0),this.checkID([this.tabs[parseInt(o.toString(),10)]],"tab",this.element.id),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var i=this.createTabItems([t]);this.tabObj.addTab(i,o)},e.prototype.removeTab=function(t){var e=n.i(u.e)(this.tabs,function(e){return e.id===t});if(-1!==e){var r=this.tabObj.items[parseInt(e.toString(),10)].content,o=this.tabs[parseInt(e.toString(),10)].groups;if(o&&""!==r.innerHTML)for(var i=0,c=o;i<c.length;i++){for(var l=c[i],p=l.isCollapsed?r.querySelector("#"+l.id+a.M+a.N):null,d=0,f=l.collections;d<f.length;d++)for(var h=f[d],b=0,m=h.items;b<m.length;b++){var v=m[b],y=p?this.ribbonDropDownModule.getDDBItemElement(p,v.id):r.querySelector("#"+v.id);v.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(y=p?this.ribbonDropDownModule.getDDBItemElement(p,v.id+a.A):r.querySelector("#"+v.id+a.A)),y&&this.destroyFunction(v,y)}p&&this.ribbonDropDownModule.removeOverFlowDropDown(p)}e===this.selectedTab&&(this.isAddRemove=!0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(e,1),this.setProperties({tabs:this.tabsInternal},!0),this.tabObj.removeTab(e)}},e.prototype.addGroup=function(t,e,r,o){var i=n.i(u.e)(this.tabs,function(e){return e.id===t});if(-1!==i){this.selectedTab===i&&this.clearOverflowResize();var s=this.tabs[parseInt(i.toString(),10)],c=s.groups.slice(),a=r?n.i(u.e)(c,function(t){return t.id===r}):-1;a=-1===a?c.length:a+(o?1:0),c.splice(a,0,e),s.setProperties({groups:c},!0),this.checkID([s.groups[parseInt(a.toString(),10)]],"group",t),this.validateItemSize();var l=this.tabObj.items[parseInt(i.toString(),10)].content;if(""!==l.innerHTML){var p=this.createGroups([s.groups[parseInt(a.toString(),10)]],i)[0],d=r?l.querySelector("#"+r):null;d?d.insertAdjacentElement(o?"afterend":"beforebegin",p):l.append(p)}this.selectedTab===i&&this.refreshLayout()}},e.prototype.removeGroup=function(t){var e=n.i(u.h)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;e.group.showLauncherIcon&&this.removeLauncherIcon(e.group.id,null,o),this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);for(var p=0,d=e.group.collections;p<d.length;p++)for(var f=d[p],h=0,b=f.items;h<b.length;h++){var m=b[h];this.removeItemElement(o,m,c)}if(this.activeLayout===s.a.Simplified)if(e.group.enableGroupOverflow)0===c.target.childElementCount&&this.removeOverflowButton(c);else{var v=c.target.querySelector("#"+e.group.id+a._40);v&&1===v.childElementCount&&v.remove();var y=c.target.querySelector("#"+this.tabs[parseInt(e.tabIndex.toString(),10)].id+a.M);y&&0===y.childElementCount&&y.remove()}var g=o.querySelector("#"+t);g&&g.remove()}var _=this.tabs[e.tabIndex].groups.slice();_.splice(e.groupIndex,1),this.tabs[e.tabIndex].setProperties({groups:_},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.hideGroup=function(t){this.showHideGroup(t,!0)},e.prototype.showGroup=function(t){this.showHideGroup(t,!1)},e.prototype.showHideGroup=function(t,e){var o,i,s=n.i(u.h)(this.tabs,t);if(s){var c=this.tabObj.items[s.tabIndex].content,p=c.querySelector("#"+t);if(e?p.classList.add("e-hidden"):p.classList.remove("e-hidden"),this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(s.tabIndex.toString(),10)].id+a.M);if(s.group.enableGroupOverflow){var h=c.querySelector("#"+t+a.r);h&&(o=n.i(r.getInstance)(h,l.DropDownButton),i=o.target),i&&(e?i.classList.add("e-hidden"):i.classList.remove("e-hidden"))}else if(f){var b=f.querySelector("#"+t+a._40);b&&(e?b.classList.add("e-hidden"):b.classList.remove("e-hidden"))}}this.refreshLayout()}},e.prototype.disableGroup=function(t){this.enableDisableGroup(t,!0)},e.prototype.enableGroup=function(t){this.enableDisableGroup(t,!1)},e.prototype.enableDisableGroup=function(t,e){var o,i,s=n.i(u.h)(this.tabs,t);if(s){var c=this.tabObj.items[s.tabIndex].content,p=c.querySelector("#"+t);if(e?p.classList.add("e-disabled"):p.classList.remove("e-disabled"),this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(s.tabIndex.toString(),10)].id+a.M);if(s.group.enableGroupOverflow){var h=c.querySelector("#"+t+a.r);h&&(o=n.i(r.getInstance)(h,l.DropDownButton),i=o.target),i&&(e?i.classList.add("e-disabled"):i.classList.remove("e-disabled"))}else if(f){var b=f.querySelector("#"+t+a._40);b&&(e?b.classList.add("e-disabled"):b.classList.remove("e-disabled"))}}}},e.prototype.addCollection=function(t,e,r,o){var i=n.i(u.h)(this.tabs,t);if(i&&("Row"!==i.group.orientation||3!==i.group.collections.length)){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var s=i.group.collections.slice(),c=r?n.i(u.e)(s,function(t){return t.id===r}):-1;c=-1===c?s.length:c+(o?1:0),s.splice(c,0,e),i.group.setProperties({collections:s},!0),this.checkID([i.group.collections[parseInt(c.toString(),10)]],"collection",t),this.validateItemSize();var l=this.tabObj.items[i.tabIndex].content;if(""!==l.innerHTML){var p=i.group.collections[parseInt(c.toString(),10)],d=this.createCollection([p],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex)[0];i.group.isCollapsed&&(l=this.ribbonDropDownModule.getOverflowDropDownPopup(i,l));var f=r?l.querySelector("#"+r):null;f?f.insertAdjacentElement(o?"afterend":"beforebegin",d):l.querySelector("#"+t+a.o).append(d)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeCollection=function(t){var e=n.i(u.g)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);for(var p=0,d=e.collection.items;p<d.length;p++){var f=d[p];this.removeItemElement(o,f,c)}var h=o.querySelector("#"+t);h&&h.remove()}var b=e.group,m=b.collections.slice();m.splice(e.collectionIndex,1),b.setProperties({collections:m},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.addItem=function(t,e,r,o){var i=n.i(u.g)(this.tabs,t);if(i&&("Column"!==i.group.orientation||3!==i.collection.items.length)){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var s=i.collection.items.slice(),c=r?n.i(u.e)(s,function(t){return t.id===r}):-1;c=-1===c?s.length:c+(o?1:0),s.splice(c,0,e),i.collection.setProperties({items:s},!0),this.checkID([i.collection.items[parseInt(c.toString(),10)]],"item",t),this.validateItemSize();var l=this.tabObj.items[i.tabIndex].content,p=l.querySelector("#"+i.group.id+a._40);if(""!==l.innerHTML){var d=i.collection.items[parseInt(c.toString(),10)],f=this.createItems([d],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex,p)[0];i.group.isCollapsed&&(l=this.ribbonDropDownModule.getOverflowDropDownPopup(i,l));var h=r?l.querySelector("#"+r):null;h?h.closest("."+a._19).insertAdjacentElement(o?"afterend":"beforebegin",f):f&&l.querySelector("#"+t).append(f)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeItem=function(t){var e=n.i(u.f)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);var p=e.item;this.removeItemElement(o,p,c)}var d=e.collection,f=d.items;f.splice(e.itemIndex,1),d.setProperties({items:f},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.hideItem=function(t){this.showHideItem(t,!0)},e.prototype.showItem=function(t){this.showHideItem(t,!1)},e.prototype.showHideItem=function(t,e){var o=n.i(u.f)(this.tabs,t);if(o){var i;if(i="GroupButton"===o.item.type?n.i(u.l)(this,t+a.A,o):n.i(u.l)(this,t,o)){var s=n.i(r.closest)(i,".e-ribbon-item");e?s.classList.add("e-hidden"):s.classList.remove("e-hidden")}}},e.prototype.updateTab=function(t){var e=t.id,o=n.i(u.e)(this.tabs,function(t){return t.id===e});if(-1!==o){var i=this.tabObj.items[parseInt(o.toString(),10)].content,c=this.tabs[parseInt(o.toString(),10)].groups,l=this.tabObj.element;if(c&&""!==i.innerHTML&&(t.cssClass&&this.tabs[parseInt(o.toString(),10)].cssClass&&(i.classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass),l.querySelector(".e-active").classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass)),t.groups)){for(var p=0,d=c;p<d.length;p++){for(var f=d[p],h=f.isCollapsed?i.querySelector("#"+f.id+a.M+a.N):null,b=0,m=f.collections;b<m.length;b++)for(var v=m[b],y=0,g=v.items;y<g.length;y++){var _=g[y],S=h?this.ribbonDropDownModule.getDDBItemElement(h,_.id):i.querySelector("#"+_.id);_.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(S=h?this.ribbonDropDownModule.getDDBItemElement(h,_.id+a.A):i.querySelector("#"+_.id+a.A)),S&&this.destroyFunction(_,S)}h&&this.ribbonDropDownModule.removeOverFlowDropDown(h)}i.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()})}o===this.selectedTab&&(this.isAddRemove=!0);var I=this.tabs[parseInt(o.toString(),10)];if(I.setProperties(t,!0),this.setProperties({groups:this.checkID(I.groups,"group",I.id)},!0),this.validateItemSize(),""===i.innerHTML){if(t.groups){var C=this.createGroups(I.groups,o);n.i(r.append)(C,i)}this.selectedTab===o&&this.refreshLayout(),t.cssClass&&(i.classList.add(I.cssClass),l.querySelector(".e-active").classList.add(I.cssClass)),t.header&&(l.querySelector("#"+e+a._38).innerText=I.header)}}},e.prototype.updateGroup=function(t){var e=t.id,o=n.i(u.h)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,c,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+e),f=d.querySelector("#"+t.id+a._40);if(""!==p.innerHTML){if(o.group.showLauncherIcon&&this.removeLauncherIcon(o.group.id,null,p),this.activeLayout===s.a.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB),t.cssClass&&o.group.cssClass&&(d.classList.remove(o.group.cssClass),f&&f.classList.remove(o.group.cssClass)),(t.collections||t.orientation)&&(o.group.collections||o.group.orientation)){for(var h=0,b=o.group.collections;h<b.length;h++)for(var m=b[h],v=0,y=m.items;v<y.length;v++){var g=y[v];this.removeItemElement(p,g,c)}if(d.querySelectorAll(".e-ribbon-collection").forEach(function(t){t.remove()}),t.orientation){var _=f.querySelector(".e-ribbon-group-content"),S=_.classList.value.match(/(e-ribbon-[column|row]+)/g);S&&n.i(r.removeClass)([_],S)}}if(this.activeLayout===s.a.Simplified)if(o.group.enableGroupOverflow)0===c.target.childElementCount&&this.removeOverflowButton(c);else{var I=c.target.querySelector("#"+o.group.id+a._40);I&&1===I.childElementCount&&I.remove();var C=c.target.querySelector("#"+this.tabs[parseInt(o.tabIndex.toString(),10)].id+a.M);C&&0===C.childElementCount&&C.remove()}}var B=o.group;if(B.setProperties(t,!0),B.setProperties({collections:this.checkID(B.collections,"collection",B.id)},!0),this.validateItemSize(),""!==p.innerHTML){if(t.showLauncherIcon&&this.createLauncherIcon(B.id,f),t.collections||t.orientation){var _=f.querySelector(".e-ribbon-group-content");_.classList.add("Column"===B.orientation||"Simplified"===this.activeLayout?a._21:a._20);var O=this.createCollection(B.collections,B.orientation,B.id,B.header,B.enableGroupOverflow,o.tabIndex,f);n.i(r.append)(O,_)}if(this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&(d.classList.add(B.cssClass),f&&f.classList.add(B.cssClass)),t.header)if(this.activeLayout!==s.a.Simplified||t.enableGroupOverflow)if(this.activeLayout!==s.a.Classic||B.isCollapsed){if(this.activeLayout===s.a.Classic&&B.isCollapsed){var w=d.querySelector("#"+B.id+a.M+a.N),P=n.i(r.getInstance)(w,l.DropDownButton),D=P.target.querySelector("#"+t.id+a._38);D&&(D.innerText=B.header)}}else d.querySelector(".e-ribbon-group-header").innerText=B.header;else{var D=c.target.querySelector("#"+t.id+a._38);D&&(D.innerText=B.header)}}}},e.prototype.updateCollection=function(t){var e=t.id,o=n.i(u.g)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[o.tabIndex].content,c=i.querySelector("#"+e);if(""!==i.innerHTML){var p=void 0,d=void 0;if(this.activeLayout===s.a.Simplified&&(p=o.group.enableGroupOverflow?i.querySelector("#"+o.group.id+a.r):null,d=p?n.i(r.getComponent)(p,l.DropDownButton):this.overflowDDB),t.cssClass&&o.collection.cssClass&&c.classList.remove(o.collection.cssClass),t.items&&o.collection.items)for(var f=0,h=o.collection.items;f<h.length;f++){var b=h[f];this.removeItemElement(i,b,d)}}var m=o.collection;if(m.setProperties(t,!0),m.setProperties({items:this.checkID(m.items,"item",m.id)},!0),this.validateItemSize(),""!==i.innerHTML&&t.items){var v=i.querySelector("#"+o.group.id+a._40),y=this.createItems(m.items,o.group.orientation,o.group.id,o.group.header,o.group.enableGroupOverflow,o.tabIndex,v);n.i(r.append)(y,c)}this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&c.classList.add(m.cssClass)}},e.prototype.updateItem=function(t){var e=t.id,o=n.i(u.f)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,c,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+o.group.id),f=d.querySelector("#"+o.group.id+a._40),h=null,b=null;if(""!==p.innerHTML){if(this.activeLayout===s.a.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB),this.activeLayout===s.a.Simplified&&o.item.displayOptions===s.b.Overflow){if(h=c.target.querySelector("#"+e+a._40),b=c.target.querySelector("#"+e),t.displayOptions&&t.displayOptions!==s.b.Overflow){var m=f.querySelector("#"+o.collection.id);m&&m.appendChild(h)}}else h=f.querySelector("#"+e+a._40),b=p.querySelector("#"+e),"GroupButton"===o.item.type&&this.activeLayout===s.a.Classic&&(b=p.querySelector("#"+e+a.A)),this.activeLayout===s.a.Simplified&&t.displayOptions===s.b.Overflow&&(this.createOverflowPopup(o.item,o.tabIndex,o.group.enableGroupOverflow,o.group.id,o.group.header,h,f),o.item.type!==s.f.DropDown&&o.item.type!==s.f.SplitButton&&t.type!==s.f.GroupButton||this.updatePopupItems(o.item,h,o.group.enableGroupOverflow,!0));t.cssClass&&o.item.cssClass&&h.classList.remove(o.item.cssClass),this.destroyFunction(o.item,b),b.remove();var v=h.classList.value.match(/(e-ribbon-[large|medium|small]+-item)/g);v&&n.i(r.removeClass)([h],v)}var y=o.item;if(y.setProperties(t,!0),this.validateItemSize(),""!==p.innerHTML){h=this.activeLayout!==s.a.Simplified||y.displayOptions!==s.b.Overflow?f.querySelector("#"+e+a._40):c.target.querySelector("#"+e+a._40),y.ribbonTooltipSettings&&n.i(u.a)(y.ribbonTooltipSettings)&&(h.classList.add(a.e),this.tooltipData.push({id:h.id,data:y.ribbonTooltipSettings}));var g=y.activeSize;"Simplified"===this.activeLayout&&(g=y.allowedSizes===s.c.Large||y.allowedSizes&s.c.Medium||y.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,y.setProperties({activeSize:g},!0)),g&s.c.Large?h.classList.add(a._22,a._25):h.classList.add(g&s.c.Medium?a._23:a._24),this.createRibbonItem(y,h),"Simplified"===this.activeLayout&&o.group.enableGroupOverflow&&0===c.target.childElementCount&&this.removeOverflowButton(c),this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&h.classList.add(y.cssClass),this.enableDisableItem(y.id,y.disabled)}}},e.prototype.removeItemElement=function(t,e,n){var r=null;this.activeLayout===s.a.Classic?(r=e.displayOptions&s.b.Classic?t.querySelector("#"+e.id):null,"GroupButton"===e.type&&(r=e.displayOptions&s.b.Classic?t.querySelector("#"+e.id+a.A):null)):(r=e.displayOptions&s.b.Simplified?t.querySelector("#"+e.id):null)||(r=n.target.querySelector("#"+e.id)),r&&(this.destroyFunction(e,r),"GroupButton"===e.type&&this.activeLayout===s.a.Simplified?document.getElementById(e.id+a._40).remove():r.closest("#"+e.id+a._40).remove())},e.prototype.enableItem=function(t){this.enableDisableItem(t,!1)},e.prototype.disableItem=function(t){this.enableDisableItem(t,!0)},e.prototype.enableDisableItem=function(t,e){var o=n.i(u.f)(this.tabs,t);if(o){o.item.setProperties({disabled:e},!0);var i;if(i="GroupButton"===o.item.type?n.i(u.l)(this,t+a.A,o):n.i(u.l)(this,t,o)){n.i(r.closest)(i,".e-ribbon-item").classList.toggle(a.R,o.item.disabled);var s=this.getItemModuleName(o.item);if("template"!==s)if("group-btn"===s&&"Simplified"===this.activeLayout){n.i(u.k)(i,"dropdown-btn",e);for(var c=0;c<o.item.groupButtonSettings.items.length;c++){var l=document.querySelector("#"+t+a.A+c);n.i(u.k)(l,"btn",e)}}else if("group-btn"===s&&"Classic"===this.activeLayout)for(var c=0;c<o.item.groupButtonSettings.items.length;c++){var l=i.querySelector("#"+t+a.A+c);n.i(u.k)(l,"btn",e)}else n.i(u.k)(i,s,e);else i.classList.toggle(a.R,e),i.toggleAttribute("disabled",e)}}},e.prototype.unwireEvents=function(){r.EventHandler.remove(window,"resize",this.resizeHandler)},e.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,n.i(u.n)(this.element),this.destroyTabItems(this.tabs),this.hideLayoutSwitcher||this.removeExpandCollapse(),this.collapseButton=void 0,this.scrollModule&&this.scrollModule.destroy(),this.ribbonTempEle&&(n.i(r.remove)(this.ribbonTempEle),this.ribbonTempEle=null),t.prototype.destroy.call(this),this.tabObj.destroy(),this.tabObj=void 0,n.i(r.remove)(this.element.querySelector("#"+this.element.id+a._32)),this.element.style.removeProperty(a.c),this.element.style.removeProperty(a._42),this.element.style.removeProperty("width"),this.cssClass&&n.i(r.removeClass)([this.element],this.cssClass.split(a.F)),this.element.classList.remove(a.S,a._30,a._4,a._0,a._6,"e-rbn"),this.unwireEvents()},e.prototype.onPropertyChanged=function(t,e){for(var o,i,s=0,c=Object.keys(t);s<c.length;s++){switch(c[s]){case"activeLayout":this.switchLayout();break;case"cssClass":e.cssClass&&(o=this.element.classList).remove.apply(o,e.cssClass.split(a.F)),t.cssClass&&(i=this.element.classList).add.apply(i,t.cssClass.split(a.F));break;case"isMinimized":this.element.classList.toggle(a._6,this.isMinimized),this.tabObj.element.querySelector(".e-content").style.display=this.isMinimized?"none":"block",this.isMinimized||this.refreshLayout();break;case"locale":this.updateCommonProperty({locale:this.locale});break;case"enablePersistence":this.updateCommonProperty({enablePersistence:this.enablePersistence});break;case"enableRtl":this.element.classList.toggle(a.S,this.enableRtl),this.updateCommonProperty({enableRtl:t.enableRtl}),this.scrollModule&&this.scrollModule.setProperties({enableRtl:t.enableRtl});break;case"launcherIconCss":for(var u=0;u<this.tabs.length;u++){var p=this.tabObj.items[parseInt(u.toString(),10)].content,d=this.tabs[parseInt(u.toString(),10)];if(p.querySelector("."+a._7))for(var f=0,h=d.groups;f<h.length;f++){var b=h[f];if(b.showLauncherIcon){var m=a._16+" "+(this.launcherIconCss||a._17);if(b.isCollapsed){var v=p.querySelector("#"+b.id+a.M+a.N),y=n.i(r.getComponent)(v,l.DropDownButton),g=y.target.querySelector("#"+b.id+a._39);g.className=m}else{var v=p.querySelector("#"+b.id+a._39);v.className=m}}}}break;case"selectedTab":this.tabObj.setProperties({selectedItem:t.selectedTab});break;case"tabAnimation":this.tabObj.setProperties({animation:t.tabAnimation});break;case"tabs":this.reRenderTabs(t.tabs);break;case"width":this.element.style.width=n.i(r.formatUnit)(t.width),this.refreshLayout();break;case"fileMenu":this.ribbonFileMenuModule&&this.ribbonFileMenuModule.updateFileMenu(this.fileMenu);this.tabObj.tbObj.refreshOverflow();break;case"backStageMenu":this.ribbonBackstageModule&&this.ribbonBackstageModule.updateBackStageMenu(this.backStageMenu);this.tabObj.tbObj.refreshOverflow();break;case"helpPaneTemplate":this.ribbonTempEle&&(n.i(r.remove)(this.ribbonTempEle),this.ribbonTempEle=null,this.tabObj.element.style.setProperty(a._42,"0px")),this.helpPaneTemplate&&this.createHelpPaneTemplate();this.tabObj.tbObj.refreshOverflow();break;case"hideLayoutSwitcher":this.hideLayoutSwitcher?this.removeExpandCollapse():this.addExpandCollapse()}}};var h;return f([n.i(r.Property)("Classic")],e.prototype,"activeLayout",void 0),f([n.i(r.Property)("")],e.prototype,"cssClass",void 0),f([n.i(r.Complex)({},i.k)],e.prototype,"fileMenu",void 0),f([n.i(r.Complex)({},i.l)],e.prototype,"backStageMenu",void 0),f([n.i(r.Property)("")],e.prototype,"launcherIconCss",void 0),f([n.i(r.Property)(!1)],e.prototype,"isMinimized",void 0),f([n.i(r.Property)("en-us")],e.prototype,"locale",void 0),f([n.i(r.Property)(0)],e.prototype,"selectedTab",void 0),f([n.i(r.Complex)({},o.TabAnimationSettings)],e.prototype,"tabAnimation",void 0),f([n.i(r.Collection)([],i.a)],e.prototype,"tabs",void 0),f([n.i(r.Property)("100%")],e.prototype,"width",void 0),f([n.i(r.Property)("")],e.prototype,"helpPaneTemplate",void 0),f([n.i(r.Property)(!1)],e.prototype,"hideLayoutSwitcher",void 0),f([n.i(r.Event)()],e.prototype,"tabSelecting",void 0),f([n.i(r.Event)()],e.prototype,"tabSelected",void 0),f([n.i(r.Event)()],e.prototype,"ribbonExpanding",void 0),f([n.i(r.Event)()],e.prototype,"ribbonCollapsing",void 0),f([n.i(r.Event)()],e.prototype,"launcherIconClick",void 0),f([n.i(r.Event)()],e.prototype,"created",void 0),e=h=f([r.NotifyPropertyChanges],e)}(r.Component)},function(t,e,n){"use strict";var r=n(2);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63}),n.d(e,"_64",function(){return r._64});var o=n(13);n.d(e,"_65",function(){return o.a}),n.d(e,"_66",function(){return o.b}),n.d(e,"_67",function(){return o.c}),n.d(e,"_68",function(){return o.d}),n.d(e,"_69",function(){return o.e}),n.d(e,"_70",function(){return o.f}),n.d(e,"_71",function(){return o.g}),n.d(e,"_72",function(){return o.h}),n.d(e,"_73",function(){return o.i}),n.d(e,"_74",function(){return o.j}),n.d(e,"_75",function(){return o.k}),n.d(e,"_76",function(){return o.l}),n.d(e,"_77",function(){return o.m}),n.d(e,"_78",function(){return o.n}),n.d(e,"_79",function(){return o.o}),n.d(e,"_80",function(){return o.p}),n.d(e,"_81",function(){return o.q});var i=n(12);n.d(e,"_82",function(){return i.a}),n.d(e,"_83",function(){return i.b}),n.d(e,"_84",function(){return i.c}),n.d(e,"_85",function(){return i.d}),n.d(e,"_86",function(){return i.e}),n.d(e,"_87",function(){return i.f}),n.d(e,"_88",function(){return i.g});var s=n(42);n.d(e,"_89",function(){return s.a}),n.d(e,"_90",function(){return s.b})},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createButton=function(t,e){var r=this,c=this.parent.createElement("button",{id:t.id});e.appendChild(c);var u=t.buttonSettings;new o.Button({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===i.d.Large?"Top":"Left",iconCss:u.iconCss,disabled:t.disabled,cssClass:(s.G+s.F+s.H+s.F+(u.cssClass?u.cssClass:"")).trim(),content:t.activeSize===i.d.Small?"":u.content,isPrimary:u.isPrimary,isToggle:u.isToggle,created:u.created},c),u.htmlAttributes&&n.i(i._64)(c,u.htmlAttributes),c.onclick=function(t){u.clicked&&u.clicked.call(r,t)},c.setAttribute("aria-label",u.content)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.Button);a.setProperties({cssClass:a.cssClass+s.F+s.L}),u.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(c,e),i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.Button),a=u.cssClass.split(s.F);a=a.filter(function(t){return t!==s.L}),u.setProperties({cssClass:a.join(s.F)}),c.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(i,e)}},t.prototype.click=function(t){var e=n.i(i._58)(this.parent,t);if(e){n.i(r.getComponent)(e,o.Button).click()}},t.prototype.updateButton=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.buttonSettings,t);var u=n.i(i._58)(this.parent,e,c);if(u){var a=n.i(r.getComponent)(u,o.Button);t.isToggle&&u.classList.add("e-active"),t.cssClass&&(t.cssClass=(s.G+s.F+s.H+s.F+t.cssClass).trim()),t.content&&(t.content=c.item.activeSize===i.d.Small?"":t.content,u.setAttribute("aria-label",t.content)),delete t.clicked,a.setProperties(t)}}},t.prototype.updateButtonSize=function(t,e){n.i(r.getComponent)(t,o.Button).setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left",content:e.activeSize===i.d.Small?"":e.buttonSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonCheckBox"},t.prototype.destroy=function(){this.parent=null},t.prototype.createCheckBox=function(t,e){var n=this,r=this.parent.createElement("input",{id:t.id});e.appendChild(r);var s=t.checkBoxSettings;new o.CheckBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,checked:s.checked,cssClass:(i.p+i.s+(s.cssClass?s.cssClass:"")).trim(),label:s.label,labelPosition:s.labelPosition,disabled:t.disabled,created:s.created,htmlAttributes:s.htmlAttributes,change:function(t){s.change&&s.change.call(n,t)}},r)},t.prototype.addOverFlowEvents=function(t,e,s){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.CheckBox);a.cssClass=a.cssClass+i.s+i.q,a.dataBind(),a.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(c,e),s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.CheckBox),a=u.cssClass.split(i.s);a=a.filter(function(t){return t!==i.q}),u.cssClass=a.join(i.s),u.dataBind(),u.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(s,e)}},t.prototype.click=function(t){var e=n.i(i._58)(this.parent,t);if(e){n.i(r.getComponent)(e,o.CheckBox).click()}},t.prototype.updateCheckBox=function(t,e){var s=n.i(i._52)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.checkBoxSettings,t);var c=n.i(i._58)(this.parent,e,s);if(c){t.cssClass&&(t.cssClass=(i.p+i.s+t.cssClass).trim()),delete t.change;n.i(r.getComponent)(c,o.CheckBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(52)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonColorPicker"},t.prototype.destroy=function(){this.parent=null},t.prototype.createColorPicker=function(t,e){var c=this,u=this.parent.createElement("input",{id:t.id});e.appendChild(u);var a=t.colorPickerSettings,l=new o.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:a.columns,cssClass:(s.H+s.F+(a.cssClass?a.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:a.enableOpacity,mode:a.mode,modeSwitcher:a.modeSwitcher,noColor:a.noColor,presetColors:a.presetColors,showButtons:a.showButtons,value:a.value,beforeClose:function(){l.element.parentElement.classList.remove(s.J),a.beforeClose&&a.beforeClose.call(c)},beforeOpen:a.beforeOpen,beforeTileRender:a.beforeTileRender,created:a.created,change:a.change,open:function(){l.element.parentElement.classList.add(s.J),a.open&&a.open.call(c)},select:a.select},u);a.htmlAttributes&&n.i(i._64)(u,a.htmlAttributes);var p=l.element.parentElement;r.EventHandler.add(p,"mouseenter",this.toggleWrapperHover.bind(this,p,!0),this),r.EventHandler.add(p,"mouseleave",this.toggleWrapperHover.bind(this,p,!1),this)},t.prototype.toggleWrapperHover=function(t,e){e?t.classList.add(s.K):t.classList.remove(s.K)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.ColorPicker);a.setProperties({cssClass:a.cssClass+s.F+s.L});var l,p=a.splitBtn;a.beforeClose=function(e){l=e.event?e.event.target:null,a.element.parentElement.classList.remove(s.J),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(c)},p.close=function(){l&&!l.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.ColorPicker),a=u.cssClass.split(s.F);a=a.filter(function(t){return t!==s.L}),u.setProperties({cssClass:a.join(s.F)}),u.splitBtn.close=null,u.beforeClose=function(){u.element.parentElement.classList.remove(s.J),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(i)}},t.prototype.getColorPickerObj=function(t){var e=n.i(i._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.ColorPicker):null},t.prototype.getValue=function(t,e,n){var r=this.getColorPickerObj(t);return r?r.getValue(e,n):""},t.prototype.toggle=function(t){var e=this.getColorPickerObj(t);e&&e.toggle()},t.prototype.updateColorPicker=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.checkBoxSettings,t);var u=n.i(i._58)(this.parent,e,c);if(u){t.cssClass&&(t.cssClass=(s.H+s.F+t.cssClass).trim()),delete t.beforeClose,delete t.open;n.i(r.getComponent)(u,o.ColorPicker).setProperties(t)}}},t.prototype.unwireColorPickerEvents=function(t){var e=n.i(r.getComponent)(t,o.ColorPicker),i=e.element.parentElement;r.EventHandler.remove(i,"mouseenter",this.toggleWrapperHover),r.EventHandler.remove(i,"mouseleave",this.toggleWrapperHover)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),n(27)),i=(n.n(o),n(2)),s=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonComboBox"},t.prototype.destroy=function(){this.parent=null},t.prototype.createComboBox=function(t,e){var n=this,r=this.parent.createElement("input",{id:t.id});e.appendChild(r);var s=t.comboBoxSettings;new o.ComboBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,allowCustom:!1,floatLabelType:"Never",ignoreAccent:!0,ignoreCase:!0,allowFiltering:s.allowFiltering,autofill:s.autofill,cssClass:(i.p+i.s+(s.cssClass?s.cssClass:"")).trim(),dataSource:s.dataSource,enabled:!t.disabled,fields:s.fields,filterType:s.filterType,footerTemplate:s.footerTemplate,groupTemplate:s.groupTemplate,headerTemplate:s.headerTemplate,index:s.index,itemTemplate:s.itemTemplate,noRecordsTemplate:s.noRecordsTemplate,placeholder:s.placeholder,popupHeight:s.popupHeight,popupWidth:s.popupWidth,showClearButton:s.showClearButton,sortOrder:s.sortOrder,text:s.text,value:s.value,width:s.width,beforeOpen:s.beforeOpen,open:s.open,htmlAttributes:s.htmlAttributes,close:function(t){s.close&&s.close.call(n,t)},filtering:s.filtering,change:s.change,select:s.select,created:s.created},r)},t.prototype.addOverFlowEvents=function(t,e,s){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.ComboBox);a.setProperties({cssClass:a.cssClass+i.s+i.q}),a.close=function(e){var n=e.event?e.event.target:null;t.comboBoxSettings.close&&t.comboBoxSettings.close.call(c,e),n&&!n.closest(".e-ribbon-group-overflow-ddb")&&s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.ComboBox),a=u.cssClass.split(i.s);a=a.filter(function(t){return t!==i.q}),u.setProperties({cssClass:a.join(i.s)}),u.close=function(e){t.comboBoxSettings.close&&t.comboBoxSettings.close.call(s,e)}},t.prototype.getComboBoxObj=function(t){var e=n.i(i._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.ComboBox):null},t.prototype.filter=function(t,e,n,r){this.getComboBoxObj(t).filter(e,n,r)},t.prototype.hidePopup=function(t){var e=this.getComboBoxObj(t);e&&e.hidePopup()},t.prototype.showPopup=function(t){var e=this.getComboBoxObj(t);e&&e.showPopup()},t.prototype.updateComboBox=function(t,e){var s=n.i(i._52)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.comboBoxSettings,t);var c=n.i(i._58)(this.parent,e,s);if(c){t.cssClass&&(t.cssClass=(i.p+i.s+t.cssClass).trim()),delete t.close;n.i(r.getComponent)(c,o.ComboBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(10)),s=(n.n(i),n(2)),c=n(1),u=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonDropDown"},t.prototype.destroy=function(){this.parent=null},t.prototype.createDropDown=function(t,e){var r=this,i=this.parent.createElement("button",{id:t.id});e.appendChild(i);var u=t.dropDownSettings,a=(c.G+c.F+c.H+c.F+(u.cssClass?u.cssClass:"")).trim();new o.DropDownButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===s.d.Large?"Top":"Left",closeActionEvents:u.closeActionEvents,content:t.activeSize===s.d.Small?"":u.content,cssClass:a+(t.activeSize===s.d.Large?c.F+c.I:""),disabled:t.disabled,iconCss:u.iconCss,items:u.items,target:u.target,createPopupOnClick:u.createPopupOnClick,beforeClose:function(t){u.beforeClose&&u.beforeClose.call(r,t)},beforeItemRender:u.beforeItemRender,beforeOpen:u.beforeOpen,close:function(t){u.close&&u.close.call(r,t)},created:u.created,open:u.open,select:u.select}).appendTo(i),u.htmlAttributes&&n.i(s._64)(i,u.htmlAttributes)},t.prototype.addOverFlowEvents=function(t,e,i){var s=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.DropDownButton);a.cssClass=a.cssClass+c.F+c.L,a.dataBind();var l;a.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(s,e),l=e.event?e.event.target:null},a.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(s,e),l&&!l.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,s=e.querySelector("#"+t.id),u=n.i(r.getComponent)(s,o.DropDownButton),a=u.cssClass.split(c.F);a=a.filter(function(t){return t!==c.L}),u.cssClass=a.join(c.F),u.dataBind(),u.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(i,e)},u.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(i,e)}},t.prototype.createOverFlowDropDown=function(t,e,i,u,a,l){var p=this;this.enableRtl=l;var d=this.parent.createElement("button",{id:t+c.M+c.N});u.setAttribute("tabindex","0"),a.appendChild(d);var f=new o.DropDownButton({iconCss:i,target:u,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:c.I+c.F+c.O,iconPosition:"Top",content:e,beforeClose:function(t){t.cancel=!n.i(r.isNullOrUndefined)(t.event&&n.i(r.closest)(t.event.target,"."+c.L))}},d);return n.i(s._61)(u,this.parent),d.onclick=d.onkeydown=function(){p.itemIndex=0},u.onkeydown=function(t){p.keyActionHandler(t,u)},f},t.prototype.keyActionHandler=function(t,e){var n,r=e.querySelectorAll(".e-control"),o=e.querySelectorAll(".e-combobox");if(o)for(var i=0;i<o.length;i++)o[parseInt(i.toString(),10)].closest(".e-input-focus")&&(n=o[parseInt(i.toString(),10)]);if(n)for(var i=0;i<r.length;i++)r[parseInt(i.toString(),10)].classList.contains("e-combobox")&&r[parseInt(i.toString(),10)].closest(".e-input-focus")&&(this.itemIndex=i);(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-launcher-icon")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-first-item"))&&(("ArrowRight"===t.key||!t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,!this.enableRtl,r),("ArrowLeft"===t.key||t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,this.enableRtl,r))},t.prototype.handleNavigation=function(t,e,n){if(n[0].classList.contains("e-ribbon-first-item")||n[0].classList.add("e-ribbon-first-item"),n[n.length-1].classList.contains("e-ribbon-last-item")||n[n.length-1].classList.add("e-ribbon-last-item"),e){if(0===this.itemIndex&&n[parseInt(this.itemIndex.toString(),10)].classList.contains("e-ribbon-first-item")&&this.updateItemIndex(t,n,!0),t.target.classList.contains("e-combobox")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-group-container")||!t.target.classList.contains("e-ribbon-first-item")&&0===this.itemIndex||!t.target.classList.contains("e-control")||(this.itemIndex++,this.updateItemIndex(t,n,!0)),t.target.classList.contains("e-ribbon-last-item")){var r=!1;r=this.focusLauncherIcon(t,n),r||(this.itemIndex=0,this.updateItemIndex(t,n,!0))}t.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=0,this.updateItemIndex(t,n,!0))}else{if(t.target.classList.contains("e-combobox")||0===this.itemIndex||(this.itemIndex--,this.updateItemIndex(t,n,!1)),t.target.classList.contains("e-ribbon-first-item")){var r=!1;r=this.focusLauncherIcon(t,n),r||(this.itemIndex=n.length-1,this.updateItemIndex(t,n,!1))}t.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=n.length-1,this.updateItemIndex(t,n,!1))}t.target.classList.contains("e-combobox")&&"Tab"===t.key&&(e?this.itemIndex<n.length-1&&this.itemIndex++:this.itemIndex>0&&this.itemIndex--)},t.prototype.focusLauncherIcon=function(t,e){var n,r=e[parseInt(this.itemIndex.toString(),10)].closest(".e-ribbon-group-container");return r&&(n=r.querySelector(".e-ribbon-launcher-icon")),!!n&&("Tab"===t.key&&t.preventDefault(),r.querySelector(".e-ribbon-launcher-icon").focus(),!0)},t.prototype.updateItemIndex=function(t,e,n){for(var r=e[this.itemIndex].closest(".e-ribbon-item");r&&r.classList.contains("e-disabled");){if(n)if(this.itemIndex<e.length-1)this.itemIndex++;else{if(this.focusLauncherIcon(t,e))break;this.itemIndex=0}else if(this.itemIndex>0)this.itemIndex--;else{if(this.focusLauncherIcon(t,e))break;this.itemIndex=e.length-1}r=e[this.itemIndex].closest(".e-ribbon-item")}"Tab"===t.key&&t.preventDefault(),e[parseInt(this.itemIndex.toString(),10)].focus()},t.prototype.removeOverFlowDropDown=function(t){var e=n.i(r.getComponent)(t,o.DropDownButton);n.i(r.getComponent)(e.target,i.Tooltip).destroy(),t.parentElement.parentElement.insertBefore(e.target,t.parentElement),e.destroy(),n.i(r.remove)(t)},t.prototype.getDDBItemElement=function(t,e){return n.i(r.getComponent)(t,o.DropDownButton).dropDown.element.querySelector("#"+e)},t.prototype.getOverflowDropDownPopup=function(t,e){var i=e.querySelector("#"+this.parent.tabs[t.tabIndex].groups[t.groupIndex].id+c.M+c.N);return n.i(r.getComponent)(i,o.DropDownButton).dropDown.element},t.prototype.getDropDownObj=function(t){var e=n.i(s._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.DropDownButton):null},t.prototype.addItems=function(t,e,n){this.getDropDownObj(t).addItems(e,n)},t.prototype.removeItems=function(t,e,n){this.getDropDownObj(t).removeItems(e,n)},t.prototype.toggle=function(t){this.getDropDownObj(t).toggle()},t.prototype.updateDropDown=function(t,e){var i=n.i(s._52)(this.parent.tabs,e);if(i){n.i(r.merge)(i.item.dropDownSettings,t);var u=n.i(s._58)(this.parent,e,i);if(u){var a=n.i(r.getComponent)(u,o.DropDownButton);t.cssClass&&(t.cssClass=(c.H+c.F+c.G+c.F+t.cssClass).trim(),t.cssClass=i.item.activeSize===s.d.Large?(c.I+c.F+t.cssClass).trim():t.cssClass,a.cssClass=t.cssClass),delete t.close,delete t.beforeClose,t.content&&(t.content=i.item.activeSize===s.d.Small?"":t.content),a.setProperties(t)}}},t.prototype.updateDropDownSize=function(t,e){var i=n.i(r.getComponent)(t,o.DropDownButton),u=i.cssClass.split(c.F);e.activeSize===s.d.Large?u.push(c.I):u=u.filter(function(t){return t!==c.I}),i.cssClass=u.join(c.F),i.setProperties({iconPosition:e.activeSize===s.d.Large?"Top":"Left"}),i.setProperties({content:e.activeSize===s.d.Small?"":e.dropDownSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),o=(n.n(r),n(1)),i=n(7),s=(n.n(i),n(5)),c=n(3),u=(n.n(c),n(8)),a=n(10),l=(n.n(a),function(){function t(t){this.parent=t,this.isSelected=!1}return t.prototype.getModuleName=function(){return"ribbonGroupButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createGroupButton=function(t,e){var a=this,l=t.groupButtonSettings;this.count=0;var p=this.parent.createElement("div",{id:t.id+o.A,className:"e-btn-group"});e.appendChild(p);for(var d=0;d<l.items.length;d++)if(l.items[parseInt(d.toString(),10)].iconCss){var f=this.parent.createElement("button",{id:t.id+o.A+d,className:o.B});p.appendChild(f),new i.Button({iconCss:l.items[parseInt(d.toString(),10)].iconCss,disabled:t.disabled,enableRtl:this.parent.enableRtl,content:t.activeSize===s.c.Small?"":l.items[parseInt(d.toString(),10)].content,iconPosition:t.activeSize===s.c.Large?"Top":"Left"},f),l.items[parseInt(d.toString(),10)].htmlAttributes&&n.i(u.c)(f,l.items[parseInt(d.toString(),10)].htmlAttributes);var h=e.querySelector("#"+t.id+o.A+d);l.selection===s.d.Single?p.classList.add(o.C):p.classList.add(o.D),l.items[parseInt(d.toString(),10)].selected&&(l.selection===s.d.Multiple?h.classList.add("e-active"):this.count<1&&(h.classList.add("e-active"),this.count++)),l.items[parseInt(d.toString(),10)].ribbonTooltipSettings&&n.i(u.a)(l.items[parseInt(d.toString(),10)].ribbonTooltipSettings)&&(f.classList.add(o.e),this.parent.tooltipData.push({id:f.id,data:l.items[parseInt(d.toString(),10)].ribbonTooltipSettings})),r.EventHandler.add(h,"click",this.groupButtonClicked.bind(this,d,t,l),this)}if("Simplified"===this.parent.activeLayout){var b=void 0,m=0,v=0,h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var d=0;d<l.items.length;d++)t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&!this.isSelected&&l.selection===s.d.Single?(b=t.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss,this.isSelected=!0):t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&l.selection===s.d.Multiple&&(m++,b=1===m?t.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss:null);for(;v<t.groupButtonSettings.items.length&&!this.isSelected&&!b;)t.groupButtonSettings.items[parseInt(v.toString(),10)].iconCss&&(b=t.groupButtonSettings.items[parseInt(v.toString(),10)].iconCss,this.isSelected=!0),v++;new c.DropDownButton({iconCss:b,target:p,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h),h.onclick=h.onkeydown=function(){e.querySelector("#"+t.id).classList.contains("e-active")&&(document.querySelector("#"+t.id+o.A+0).focus(),a.grpBtnIndex=0)},p.onkeydown=function(e){"Simplified"===a.parent.activeLayout&&a.handleGroupButtonNavigation(e,t)},n.i(u.d)(p,this.parent),this.isSelected=!1}},t.prototype.groupButtonClicked=function(t,e,i){for(var u,a,l=[],p=[],d=[],f=0;f<i.items.length;f++)document.querySelector("#"+e.id+o.A+f)&&document.querySelector("#"+e.id+o.A+f).classList.contains("e-active")&&l.push(i.items[parseInt(f.toString(),10)]);document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")||p.push(i.items[parseInt(t.toString(),10)]);var h={cancel:!1,previousItems:l,selectingItems:p};if(i.items[parseInt(t.toString(),10)].beforeClick&&i.items[parseInt(t.toString(),10)].beforeClick.call(this,h),!h.cancel){if(i.selection===s.d.Single){document.querySelector("#"+e.id+o.A).classList.contains(o.D)&&(document.querySelector("#"+e.id+o.A).classList.remove(o.D),document.querySelector("#"+e.id+o.A).classList.add(o.C));for(var f=0;f<i.items.length;f++)document.querySelector("#"+e.id+o.A+f)&&document.querySelector("#"+e.id+o.A+f).classList.contains("e-active")&&document.querySelector("#"+e.id+o.A+f).classList.remove("e-active");document.querySelector("#"+e.id+o.A+t).classList.toggle("e-active"),document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&(this.grpBtnIndex=t,u=document.querySelector("#"+e.id),a=n.i(r.getComponent)(u,c.DropDownButton),a.setProperties({iconCss:i.items[parseInt(t.toString(),10)].iconCss}))}else{document.querySelector("#"+e.id+o.A).classList.contains(o.C)&&(document.querySelector("#"+e.id+o.A).classList.remove(o.C),document.querySelector("#"+e.id+o.A).classList.add(o.D)),document.querySelector("#"+e.id+o.A+t).classList.toggle("e-active");for(var b=0,m=0;m<i.items.length;m++)document.querySelector("#"+e.id+o.A+m)&&document.querySelector("#"+e.id+o.A+m).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&m!==t&&(this.isSelected=!0,b++);if("Simplified"===this.parent.activeLayout){var v=null,y=0;if(u=document.querySelector("#"+e.id),a=n.i(r.getComponent)(u,c.DropDownButton),this.isSelected){if(1===b&&!document.querySelector("#"+e.id+o.A+t).classList.contains("e-active"))for(var m=0;m<i.items.length;m++)document.querySelector("#"+e.id+o.A+m)&&document.querySelector("#"+e.id+o.A+m).classList.contains("e-active")&&(v=i.items[parseInt(m.toString(),10)].iconCss)}else document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&(v=i.items[parseInt(t.toString(),10)].iconCss);for(;y<i.items.length&&!v;)i.items[parseInt(y.toString(),10)].iconCss&&(v=i.items[parseInt(y.toString(),10)].iconCss),y++;a.setProperties({iconCss:v}),this.grpBtnIndex=t}this.isSelected=!1}document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&d.push(i.items[parseInt(t.toString(),10)]);var g={previousItems:l,selectedItems:d};i.items[parseInt(t.toString(),10)].click&&i.items[parseInt(t.toString(),10)].click.call(this,g)}},t.prototype.switchGroupButton=function(t,e){var i=this,a=t.groupButtonSettings,l=null,p=0,d=0;if("Simplified"===this.parent.activeLayout){var f=e.querySelector("#"+t.id+o.A),h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var b=0;b<a.items.length;b++)document.querySelector("#"+t.id+o.A+b)&&(document.querySelector("#"+t.id+o.A+b).classList.contains("e-active")&&a.selection===s.d.Single?l=a.items[parseInt(b.toString(),10)].iconCss:document.querySelector("#"+t.id+o.A+b).classList.contains("e-active")&&a.selection===s.d.Multiple&&(p++,1===p?l=a.items[parseInt(b.toString(),10)].iconCss:p>1&&(l=null)));for(;d<a.items.length&&!l;)a.items[parseInt(d.toString(),10)].iconCss&&(l=a.items[parseInt(d.toString(),10)].iconCss),d++;new c.DropDownButton({iconCss:l,target:f,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h),h.onclick=h.onkeydown=function(){e.querySelector("#"+t.id).classList.contains("e-active")&&(document.querySelector("#"+t.id+o.A+0).focus(),i.grpBtnIndex=0)},f.onkeydown=function(e){"Simplified"===i.parent.activeLayout&&i.handleGroupButtonNavigation(e,t)},n.i(u.d)(f,this.parent)}else{var m=e.querySelector("#"+t.id),v=n.i(r.getComponent)(m,c.DropDownButton);e.appendChild(v.target),m&&(v.destroy(),n.i(r.remove)(m))}},t.prototype.handleGroupButtonNavigation=function(t,e){var i=document.querySelector("#"+e.id),s=n.i(r.getComponent)(i,c.DropDownButton),u=s.target,a=!1;"Simplified"===this.parent.activeLayout&&u.closest(".e-ribbon-dropdown-group-button").classList.contains(o.E)&&(a=!0),"Tab"===t.key&&t.preventDefault();var l=e.groupButtonSettings;"ArrowRight"===t.key&&!a||"ArrowDown"===t.key&&a?!this.parent.enableRtl||"ArrowDown"===t.key&&a?(this.grpBtnIndex++,this.grpBtnIndex<l.items.length?document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus())):0===this.grpBtnIndex?(this.grpBtnIndex=l.items.length-1,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):("ArrowLeft"===t.key&&!a||"ArrowUp"===t.key&&a)&&(!this.parent.enableRtl||"ArrowUp"===t.key&&a?0===this.grpBtnIndex?(this.grpBtnIndex=l.items.length-1,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex++,this.grpBtnIndex<l.items.length?document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus())))},t.prototype.addOverFlowEvents=function(t,e){var i=this,s=e.querySelector("#"+t.id),u=n.i(r.getComponent)(s,c.DropDownButton);u.setProperties({cssClass:u.cssClass+o.F+o.E});var a=u.target;a.onclick=function(){"Simplified"===i.parent.activeLayout&&a.closest(".e-ribbon-dropdown-group-button").classList.contains(o.E)&&(u.element.focus(),u.toggle())}},t.prototype.removeOverFlowEvents=function(t,e){var i=e.querySelector("#"+t.id);if(i){var s=n.i(r.getComponent)(i,c.DropDownButton),u=s.cssClass.split(o.F);u=u.filter(function(t){return t!==o.E}),s.setProperties({cssClass:u.join(o.F)})}},t.prototype.destroyDropDown=function(t){var e=document.querySelector("#"+t.id);if(e){var o=n.i(r.getComponent)(e,c.DropDownButton);n.i(r.getComponent)(o.target,a.Tooltip).destroy(),o.destroy(),n.i(r.remove)(e)}},t.prototype.updateGroupButtonSize=function(t,e){for(var c,u=e.groupButtonSettings,a=0;a<u.items.length;a++)if(c="Classic"===this.parent.activeLayout?t.querySelector("#"+e.id+o.A+a):document.querySelector("#"+e.id+o.A+a)){var l=n.i(r.getComponent)(c,i.Button);l.setProperties({iconPosition:e.activeSize===s.c.Large?"Top":"Left",content:e.activeSize===s.c.Small?"":u.items[parseInt(a.toString(),10)].content})}},t}())},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonSplitButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createSplitButton=function(t,e){var c=this,u=this.parent.createElement("button",{id:t.id});e.appendChild(u);var a=t.splitButtonSettings,l=(s.G+s.F+s.H+s.F+(a.cssClass?a.cssClass:"")).trim(),p=new o.SplitButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===i.d.Large?"Top":"Left",closeActionEvents:a.closeActionEvents,cssClass:l+(t.activeSize===i.d.Large?s.F+s.I:""),disabled:t.disabled,iconCss:a.iconCss,items:a.items,target:a.target,beforeClose:function(t){a.beforeClose&&a.beforeClose.call(c,t)},beforeItemRender:a.beforeItemRender,beforeOpen:a.beforeOpen,close:function(){p.wrapper.classList.remove(s.J),a.close&&a.close.call(c)},created:a.created,open:function(){p.wrapper.classList.add(s.J),a.open&&a.open.call(c)},select:a.select,click:function(t){a.click&&a.click.call(c,t)}},u);a.htmlAttributes&&n.i(i._64)(u,a.htmlAttributes);var d=u.parentElement.querySelector(".e-dropdown-btn");d.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),d.click())},this.setContent(t,p);var f=p.wrapper;r.EventHandler.add(f,"mouseenter",function(){f.classList.add(s.K)},this),r.EventHandler.add(f,"mouseleave",function(){f.classList.remove(s.K)},this)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.SplitButton);a.cssClass=a.cssClass+s.F+s.L,a.dataBind();var l=u.parentElement.querySelector(".e-dropdown-btn"),p=l.getAttribute("id"),d=document.querySelector("#"+p+"-popup");l.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),l.click())},d.onkeydown=function(t){"Enter"===t.key&&(t.preventDefault(),a.wrapper.classList.remove("e-ribbon-open"),d.querySelector(".e-focused").click())};var f;a.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(c,e),f=e.event?e.event.target:null},a.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(c,e),i.toggle()},a.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(c,e),a.wrapper.classList.remove(s.J),f&&!f.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.SplitButton),a=u.cssClass.split(s.F);a=a.filter(function(t){return t!==s.L}),u.cssClass=a.join(s.F),u.dataBind(),u.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(i,e)},u.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(i,e)},u.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(i,e),u.wrapper.classList.remove(s.J)}},t.prototype.setContent=function(t,e){e.primaryBtnObj.setProperties({content:t.activeSize===i.d.Medium?t.splitButtonSettings.content:""}),e.secondaryBtnObj.setProperties({content:t.activeSize===i.d.Large?t.splitButtonSettings.content:""})},t.prototype.getSplitButtonObj=function(t){var e=n.i(i._58)(this.parent,t);return n.i(r.getComponent)(e,o.SplitButton)},t.prototype.addItems=function(t,e,n){this.getSplitButtonObj(t).addItems(e,n)},t.prototype.removeItems=function(t,e,n){this.getSplitButtonObj(t).removeItems(e,n)},t.prototype.toggle=function(t){this.getSplitButtonObj(t).toggle()},t.prototype.updateSplitButton=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.splitButtonSettings,t);var u=n.i(i._58)(this.parent,e,c);if(u){var a=n.i(r.getComponent)(u,o.SplitButton);t.cssClass&&(t.cssClass=(s.H+s.F+s.G+s.F+t.cssClass).trim(),t.cssClass=c.item.activeSize===i.d.Large?(s.I+s.F+t.cssClass).trim():t.cssClass,a.cssClass=t.cssClass),delete t.open,delete t.click,delete t.close,delete t.beforeClose,a.setProperties(t),t.content&&this.setContent(c.item,a)}}},t.prototype.updateSplitButtonSize=function(t,e){var c=n.i(r.getComponent)(t,o.SplitButton),u=c.cssClass.split(s.F);e.activeSize===i.d.Large?u.push(s.I):u=u.filter(function(t){return t!==s.I}),c.cssClass=u.join(s.F),c.setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left"}),this.setContent(e,c)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),o=(n.n(r),n(14)),i=n(15),s=n(6),c=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},u([n.i(r.Property)("File")],e.prototype,"text",void 0),u([n.i(r.Property)(!1)],e.prototype,"visible",void 0),u([n.i(r.Property)("auto")],e.prototype,"height",void 0),u([n.i(r.Property)("auto")],e.prototype,"width",void 0),u([n.i(r.Property)(null)],e.prototype,"target",void 0),u([n.i(r.Complex)({},o.a)],e.prototype,"backButton",void 0),u([n.i(r.Collection)([],i.a)],e.prototype,"items",void 0),u([n.i(r.Property)("")],e.prototype,"template",void 0),u([n.i(r.Complex)({},s.a)],e.prototype,"ribbonTooltipSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(6)),s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},c([n.i(r.Property)("File")],e.prototype,"text",void 0),c([n.i(r.Property)(!1)],e.prototype,"visible",void 0),c([n.i(r.Collection)([],o.MenuItem)],e.prototype,"menuItems",void 0),c([n.i(r.Property)(!1)],e.prototype,"showItemOnClick",void 0),c([n.i(r.Complex)({},o.MenuAnimationSettings)],e.prototype,"animationSettings",void 0),c([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),c([n.i(r.Property)("")],e.prototype,"popupTemplate",void 0),c([n.i(r.Complex)({},i.a)],e.prototype,"ribbonTooltipSettings",void 0),c([n.i(r.Event)()],e.prototype,"beforeClose",void 0),c([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),c([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),c([n.i(r.Event)()],e.prototype,"close",void 0),c([n.i(r.Event)()],e.prototype,"open",void 0),c([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(24)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"groups",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";var r=n(44);n.d(e,"a",function(){return r.a});var o=n(43);n.d(e,"b",function(){return o.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(2)),s=n(8),c=n(1),u=n(7),a=(n.n(u),n(10)),l=(n.n(a),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),p=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return l(e,t),e.prototype.render=function(){},e.prototype.preRender=function(){},e.prototype.getPersistData=function(){return""},e.prototype.onPropertyChanged=function(){},e.prototype.getModuleName=function(){return"ribbonBackstage"},e.prototype.destroy=function(){this.backstageButton&&this.destroyDDB(),this.parent=null},e.prototype.createBackStage=function(t){var e=this;if(t.visible){this.backstageButtonEle=this.parent.createElement("button",{id:this.parent.element.id+c.a});var n=this.parent.tabObj.element,o=n.querySelector(".e-toolbar");if(n.insertBefore(this.backstageButtonEle,o),this.backstageButton=new u.Button({content:t.text,enableRtl:this.parent.enableRtl,cssClass:c.b,created:function(){n.style.setProperty(c.c,e.backstageButtonEle.offsetWidth+"px")}},this.backstageButtonEle),this.createBackStagePopup(t),this.parent.backStageMenu.template)this.createBackStageTemplate(this.parent.backStageMenu.template);else{for(var i=0,s=0,a=0;a<t.items.length;a++){t.items[parseInt(a.toString(),10)].isFooter?i++:s++}s>0&&this.createBackstageMenu(t,!1),i>0&&this.createBackstageMenu(t,!0),this.menuCtrl&&this.checkMenuItems(this.menuCtrl.items),this.footerMenuCtrl&&this.checkMenuItems(this.footerMenuCtrl.items)}this.backstageButtonEle.onclick=function(n){n.stopPropagation(),e.showBackstage(),e.popupHTMLElement.classList.add(c.d);var r=e.menuWrapper.querySelector(".e-menu-item.e-selected");r&&r.classList.remove("e-selected");for(var o=0;o<t.items.length;o++){var i=t.items[parseInt(o.toString(),10)];if(!i.isFooter&&e.menuCtrl.items[0].text===i.text){var s=e.popupHTMLElement.querySelector("#"+e.menuCtrl.items[0].id);s&&(s.classList.add("e-selected"),s.focus()),e.createBackStageContent(e.menuCtrl.items[0].id,i.content);break}}},this.parent.tabObj.refreshActiveTabBorder(),this.addBackStageMenuTooltip(t),r.EventHandler.add(document,"click",this.onClickEvent,this)}},e.prototype.onClickEvent=function(t){var e=t.target;this.popupHTMLElement.contains(e)||this.hideBackstage()},e.prototype.addBackStageMenuTooltip=function(t){n.i(s.a)(t.ribbonTooltipSettings)&&(this.backstageButtonEle.classList.add(c.e),this.parent.tooltipData.push({id:this.backstageButtonEle.id,data:t.ribbonTooltipSettings}))},e.prototype.checkMenuItems=function(t){for(var e=0;e<t.length;e++){var n=t[parseInt(e.toString(),10)];if(!n.iconCss){this.popupHTMLElement.querySelector("#"+n.id).classList.add(c.f)}}},e.prototype.createBackStagePopup=function(t){var e=this;this.popupHTMLElement=this.parent.createElement("div",{id:this.parent.element.id+c.g,className:c.h});var n;t.target?(n=t.target instanceof HTMLElement?t.target:document.querySelector(t.target),n.appendChild(this.popupHTMLElement)):this.parent.element.appendChild(this.popupHTMLElement),this.popupEle=new a.Popup(this.popupHTMLElement,{height:t.height,width:t.width,relateTo:t.target||this.parent.element,enableRtl:this.parent.enableRtl}),this.parent.enableRtl&&this.updatePopupPositionOnRtl(this.parent.enableRtl),this.popupHTMLElement.onkeydown=function(t){"Escape"===t.code&&e.hideBackstage()},this.hideBackstage()},e.prototype.updatePopupPositionOnRtl=function(t){var e=this.popupHTMLElement.style;t?(e.right=e.left,e.left="unset"):(e.left=e.right,e.right="unset")},e.prototype.createBackstageMenu=function(t,e){var n=this;if(this.popupHTMLElement.querySelector("#"+this.parent.element.id+"_wrapper")||(this.menuWrapper=this.parent.createElement("div",{id:this.parent.element.id+"_wrapper",className:c.i}),this.popupHTMLElement.appendChild(this.menuWrapper)),t.backButton.visible&&!e){var r=this.parent.createElement("button",{id:this.parent.element.id+"_close",className:"e-ribbon-close-btn"});this.closeBtn=new u.Button({content:t.backButton.text,iconCss:t.backButton.iconCss?t.backButton.iconCss:c.j,enableRtl:this.parent.enableRtl},r),this.menuWrapper.append(r),r.onclick=function(){n.popupHTMLElement.classList.remove(c.d),n.hideBackstage(),n.isBackButtonClicked=!0}}this.popupHTMLElement.querySelector("#"+this.parent.element.id+"_itemswrapper")||(this.itemsWrapperEle=this.parent.createElement("div",{id:this.parent.element.id+"_itemswrapper",className:c.k}),this.menuWrapper.append(this.itemsWrapperEle));var i;e?(i=this.parent.createElement("ul",{id:this.parent.element.id+c.l}),this.itemsWrapperEle.appendChild(i)):(this.ulMenuElem=this.parent.createElement("ul",{id:this.parent.element.id+c.m}),this.itemsWrapperEle.appendChild(this.ulMenuElem)),e?this.footerMenuCtrl=new o.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:c.n,items:this.cloneFooterMenuItem(t.items),select:this.menuSelect.bind(this,t)},i):this.menuCtrl=new o.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:c.n,items:this.cloneMenuItem(t.items),select:this.menuSelect.bind(this,t)},this.ulMenuElem)},e.prototype.cloneMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];r.isFooter||e.push({id:r.id,iconCss:r.iconCss,separator:r.separator,text:r.text})}return e},e.prototype.cloneFooterMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];r.isFooter&&e.push({id:r.id,iconCss:r.iconCss,separator:r.separator,text:r.text})}return e},e.prototype.createBackStageContent=function(t,e){this.clearTemplate(["backstageContent"]),this.backstageContentEle?(this.backstageContentEle.innerHTML="",this.backstageContentEle.id=t+c.o):this.backstageContentEle=this.parent.createElement("div",{id:t+c.o,className:c.p});var o=n.i(s.b)(e);return n.i(r.append)(o({},this,"backstageContent","backstageContent",this.parent.isStringTemplate),this.backstageContentEle),e&&this.popupHTMLElement.append(this.backstageContentEle),this.renderReactTemplates(),o},e.prototype.createBackStageTemplate=function(t){this.clearTemplate(["backstageTemplate"]),this.backstageTempEle=this.parent.createElement("div",{id:this.parent.element.id+c.a+"_template",className:c.q});var e=n.i(s.b)(t);return n.i(r.append)(e({},this,"backstageTemplate","backstageTemplate",this.parent.isStringTemplate),this.backstageTempEle),this.popupHTMLElement.append(this.backstageTempEle),this.renderReactTemplates(),e},e.prototype.menuSelect=function(t,e){for(var n=0;n<t.items.length;n++){var r=t.items[parseInt(n.toString(),10)];if(r.text===e.item.text){this.contentItem=r;break}}this.createBackStageContent(e.item.id,this.contentItem.content);var o={cancel:!1,target:e.element,item:this.contentItem,isBackButton:this.isBackButtonClicked};this.contentItem.backStageItemClick&&this.contentItem.backStageItemClick.call(this,o)},e.prototype.setCommonProperties=function(t){this.backstageButton&&(this.backstageButton.setProperties(t),this.popupEle&&(this.popupEle.setProperties(t),this.popupHTMLElement&&this.updatePopupPositionOnRtl(t.enableRtl),this.menuCtrl&&(this.menuCtrl.setProperties(t),this.closeBtn&&this.closeBtn.setProperties(t))))},e.prototype.updateBackStageMenu=function(t){if(t.visible)if(this.backstageButton){if(t.text&&(this.backstageButton.setProperties({content:t.text}),this.parent.tabObj.element.style.setProperty(c.c,this.backstageButtonEle.offsetWidth+"px")),this.popupEle&&this.popupEle.setProperties({height:t.height,width:t.width,target:t.target||this.parent.element}),t.template)this.backstageTempEle&&(n.i(r.remove)(this.backstageTempEle),this.backstageTempEle=null),this.createBackStageTemplate(t.template);else if(this.menuCtrl&&this.menuCtrl.setProperties({items:this.cloneMenuItem(t.items)}),this.footerMenuCtrl)this.footerMenuCtrl.setProperties({items:this.cloneFooterMenuItem(t.items)});else{for(var e=0,o=0,i=0;i<t.items.length;i++){var s=t.items[parseInt(i.toString(),10)];s.isFooter?e++:o++}o>0&&this.createBackstageMenu(t,!1),e>0&&this.createBackstageMenu(t,!0)}this.removeBackstageMenuTooltip(),this.addBackStageMenuTooltip(t)}else this.createBackStage(t);else this.backstageButton&&this.destroyDDB();this.parent.tabObj.refreshActiveTabBorder()},e.prototype.destroyMenu=function(){this.menuCtrl&&(this.menuCtrl.destroy(),this.menuCtrl=null)},e.prototype.destroyDDB=function(){this.removeBackstageMenuTooltip(),this.parent.tabObj.element.style.removeProperty(c.c),this.destroyMenu(),this.backstageButton.destroy(),this.backstageButton=null,n.i(r.remove)(this.backstageButtonEle),this.backstageButtonEle=null,r.EventHandler.remove(document,"click",this.onClickEvent)},e.prototype.removeBackstageMenuTooltip=function(){var t=this,e=n.i(i._50)(this.parent.tooltipData,function(e){return e.id===t.backstageButtonEle.id});-1!==e&&(this.backstageButtonEle.classList.remove(c.e),this.parent.tooltipData.splice(e,1))},e.prototype.addBackstageItems=function(t,e,n,r){for(var o=0;o<t.length;o++){var i=t[parseInt(o.toString(),10)];i.isFooter?n?this.footerMenuCtrl.insertAfter(t,e,r):this.footerMenuCtrl.insertBefore(t,e,r):n?this.menuCtrl.insertAfter(t,e,r):this.menuCtrl.insertBefore(t,e,r)}for(var s=[].concat(this.menuCtrl.items,this.footerMenuCtrl.items),c=this.parent.backStageMenu,o=0;o<c.items.length;o++)for(var i=c.items[parseInt(o.toString(),10)],u=0;u<s.length;u++){var a=s[parseInt(u.toString(),10)];if(i.text===a.text){a.content=i.content;break}}this.parent.backStageMenu.setProperties({items:s},!0)},e.prototype.removeBackstageItems=function(t,e){this.menuCtrl.removeItems(t,e),this.footerMenuCtrl.removeItems(t,e);var n=[].concat(this.menuCtrl.items,this.footerMenuCtrl.items);this.parent.backStageMenu.setProperties({items:n},!0)},e.prototype.showBackstage=function(){this.popupEle.show()},e.prototype.hideBackstage=function(){this.popupEle.element.classList.contains(c.d)&&this.popupEle.element.classList.remove(c.d),this.popupEle.hide()},e}(r.Component)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(9)),s=(n.n(i),n(2)),c=n(1),u=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonFileMenu"},t.prototype.destroy=function(){this.fileMenuDDB&&this.destroyDDB(),this.parent=null},t.prototype.createFileMenu=function(t){var e=this;if(t.visible){this.ddbElement=this.parent.createElement("button",{id:this.parent.element.id+c.y});var n=this.parent.tabObj.element,r=n.querySelector(".e-toolbar");n.insertBefore(this.ddbElement,r),this.fileMenuDDB=new o.DropDownButton({content:t.text,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-file-menu e-caret-hide",created:function(){n.style.setProperty(c.c,e.ddbElement.offsetWidth+"px")},beforeClose:this.ddbBeforeEvent.bind(this,!1),beforeOpen:this.ddbBeforeEvent.bind(this,!0),close:this.ddbAfterEvent.bind(this,!1),open:this.ddbAfterEvent.bind(this,!0)},this.ddbElement),this.parent.fileMenu.popupTemplate?this.fileMenuDDB.setProperties({target:this.parent.fileMenu.popupTemplate}):this.createRibbonMenu(t),this.parent.tabObj.refreshActiveTabBorder(),this.addFileMenuTooltip(t)}},t.prototype.addFileMenuTooltip=function(t){n.i(s._59)(t.ribbonTooltipSettings)&&(this.ddbElement.classList.add(c.e),this.parent.tooltipData.push({id:this.ddbElement.id,data:t.ribbonTooltipSettings}))},t.prototype.ddbBeforeEvent=function(t,e){!t&&e.event&&e.event.target.closest(".e-ribbon-menu")&&(e.cancel=!0);var n=t?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(n){var r={cancel:e.cancel,element:e.element,event:e.event};n.call(this,r),e.cancel=r.cancel}},t.prototype.ddbAfterEvent=function(t,e){(t?this.fileMenuDDB.target:this.fileMenuDDB.element).focus();var n=t?this.parent.fileMenu.open:this.parent.fileMenu.close;if(n){var r={element:e.element};n.call(this,r)}},t.prototype.cloneMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];e.push({iconCss:r.iconCss,id:r.id,separator:r.separator,text:r.text,url:r.url,items:this.cloneMenuItem(r.items)})}return e},t.prototype.createRibbonMenu=function(t){var e=this,n=this.parent.createElement("ul",{id:this.parent.element.id+c.z});this.fileMenuDDB.setProperties({target:n}),this.menuctrl=new i.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-menu",animationSettings:t.animationSettings,items:this.cloneMenuItem(t.menuItems),showItemOnClick:t.showItemOnClick,template:t.itemTemplate,beforeClose:this.menuBeforeEvent.bind(this,!1),beforeOpen:this.menuBeforeEvent.bind(this,!0),beforeItemRender:this.beforeItemRender.bind(this),onClose:this.menuAfterEvent.bind(this,!1),onOpen:this.menuAfterEvent.bind(this,!0),select:this.menuSelect.bind(this)},n),r.EventHandler.add(n,"keydown",function(t){"Tab"===t.key&&e.fileMenuDDB.toggle()},this)},t.prototype.menuBeforeEvent=function(t,e){var n=t?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(n){var r={cancel:e.cancel,element:e.element,event:e.event,items:e.items,parentItem:e.parentItem};n.call(this,r),e.cancel=r.cancel}},t.prototype.menuAfterEvent=function(t,e){var n=t?this.parent.fileMenu.open:this.parent.fileMenu.close;if(n){var r={element:e.element,items:e.items,parentItem:e.parentItem};n.call(this,r)}},t.prototype.beforeItemRender=function(t){var e=this.parent.fileMenu.beforeItemRender;if(e){var n={element:t.element,item:t.item};e.call(this,n)}},t.prototype.menuSelect=function(t){var e=this.parent.fileMenu.select;if(e){var n={element:t.element,item:t.item,event:t.event};e.call(this,n),t.element.classList.contains("e-menu-caret-icon")||this.fileMenuDDB.toggle()}},t.prototype.setCommonProperties=function(t){this.fileMenuDDB&&(this.fileMenuDDB.setProperties(t),this.menuctrl&&this.menuctrl.setProperties(t))},t.prototype.updateFileMenu=function(t){t.visible?this.fileMenuDDB?(t.text&&(this.fileMenuDDB.setProperties({content:t.text}),this.parent.tabObj.element.style.setProperty(c.c,this.ddbElement.offsetWidth+"px")),t.popupTemplate?(this.menuctrl&&this.destroyMenu(),this.fileMenuDDB.setProperties({target:t.popupTemplate})):this.menuctrl?this.menuctrl.setProperties({animationSettings:t.animationSettings,items:this.cloneMenuItem(t.menuItems),showItemOnClick:t.showItemOnClick,template:t.itemTemplate}):this.createRibbonMenu(t),this.removeFileMenuTooltip(),this.addFileMenuTooltip(t)):this.createFileMenu(t):this.fileMenuDDB&&this.destroyDDB(),this.parent.tabObj.refreshActiveTabBorder()},t.prototype.destroyMenu=function(){this.menuctrl&&(this.menuctrl.destroy(),this.menuctrl=null)},t.prototype.destroyDDB=function(){this.removeFileMenuTooltip(),this.parent.tabObj.element.style.removeProperty(c.c),this.destroyMenu(),this.fileMenuDDB.destroy(),this.fileMenuDDB=null,n.i(r.remove)(this.ddbElement),this.ddbElement=null},t.prototype.removeFileMenuTooltip=function(){var t=this,e=n.i(s._50)(this.parent.tooltipData,function(e){return e.id===t.ddbElement.id});-1!==e&&(this.ddbElement.classList.remove(c.e),this.parent.tooltipData.splice(e,1))},t.prototype.addItems=function(t,e,n,r){n?this.menuctrl.insertAfter(t,e,r):this.menuctrl.insertBefore(t,e,r),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.removeItems=function(t,e){this.menuctrl.removeItems(t,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.enableItems=function(t,e){this.menuctrl.enableItems(t,!0,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.disableItems=function(t,e){this.menuctrl.enableItems(t,!1,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.setItem=function(t,e,n){this.menuctrl.setItem(t,e,n),this.menuctrl.refresh(),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(28);n.d(e,"RibbonTabDirective",function(){return r.a}),n.d(e,"RibbonTabsDirective",function(){return r.b}),n.d(e,"RibbonGroupDirective",function(){return r.c}),n.d(e,"RibbonGroupsDirective",function(){return r.d}),n.d(e,"RibbonCollectionDirective",function(){return r.e}),n.d(e,"RibbonCollectionsDirective",function(){return r.f}),n.d(e,"RibbonItemDirective",function(){return r.g}),n.d(e,"RibbonItemsDirective",function(){return r.h}),n.d(e,"RibbonComponent",function(){return r.i});var o=n(4);n.n(o);n.o(o,"Inject")&&n.d(e,"Inject",function(){return o.Inject});var i=n(11);n.d(e,"Ribbon",function(){return i.a}),n.d(e,"RibbonLayout",function(){return i.b}),n.d(e,"ItemOrientation",function(){return i.c}),n.d(e,"RibbonItemSize",function(){return i.d}),n.d(e,"DisplayMode",function(){return i.e}),n.d(e,"RibbonItemType",function(){return i.f}),n.d(e,"RibbonGroupButtonSelection",function(){return i.g}),n.d(e,"ITEM_VERTICAL_CENTER",function(){return i.h}),n.d(e,"EXPAND_COLLAPSE_ICON",function(){return i.i}),n.d(e,"BACKSTAGE_CLOSE_ICON",function(){return i.j}),n.d(e,"OVERFLOW_ICON",function(){return i.k}),n.d(e,"VERTICAL_DDB",function(){return i.l}),n.d(e,"DISABLED_CSS",function(){return i.m}),n.d(e,"RTL_CSS",function(){return i.n}),n.d(e,"RIBBON_HOVER",function(){return i.o}),n.d(e,"RIBBON_CONTROL",function(){return i.p}),n.d(e,"RIBBON_POPUP_CONTROL",function(){return i.q}),n.d(e,"RIBBON_POPUP_OPEN",function(){return i.r}),n.d(e,"SPACE",function(){return i.s}),n.d(e,"HORIZONTAL_SCROLLBAR",function(){return i.t}),n.d(e,"HIDE_CSS",function(){return i.u}),n.d(e,"RIBBON_TAB",function(){return i.v}),n.d(e,"RIBBON_TAB_ACTIVE",function(){return i.w}),n.d(e,"RIBBON_TAB_ITEM",function(){return i.x}),n.d(e,"RIBBON_COLLAPSE_BUTTON",function(){return i.y}),n.d(e,"RIBBON_EXPAND_BUTTON",function(){return i.z}),n.d(e,"RIBBON_COLLAPSIBLE",function(){return i.A}),n.d(e,"RIBBON_OVERALL_OF_BUTTON",function(){return i.B}),n.d(e,"RIBBON_GROUP_OF_BUTTON",function(){return i.C}),n.d(e,"RIBBON_OVERFLOW_TARGET",function(){return i.D}),n.d(e,"RIBBON_OVERFLOW",function(){return i.E}),n.d(e,"TAB_CONTENT",function(){return i.F}),n.d(e,"RIBBON_MINIMIZE",function(){return i.G}),n.d(e,"RIBBON_GROUP",function(){return i.H}),n.d(e,"RIBBON_SINGLE_BUTTON_SELECTION",function(){return i.I}),n.d(e,"RIBBON_MULTIPLE_BUTTON_SELECTION",function(){return i.J}),n.d(e,"RIBBON_GROUP_BUTTON",function(){return i.K}),n.d(e,"RIBBON_GROUP_BUTTON_OVERFLOW_POPUP",function(){return i.L}),n.d(e,"RIBBON_GROUP_CONTAINER",function(){return i.M}),n.d(e,"RIBBON_OF_TAB_CONTAINER",function(){return i.N}),n.d(e,"RIBBON_OF_GROUP_CONTAINER",function(){return i.O}),n.d(e,"RIBBON_GROUP_CONTENT",function(){return i.P}),n.d(e,"RIBBON_GROUP_HEADER",function(){return i.Q}),n.d(e,"RIBBON_OVERFLOW_HEADER",function(){return i.R}),n.d(e,"RIBBON_GROUP_OVERFLOW",function(){return i.S}),n.d(e,"RIBBON_GROUP_OVERFLOW_DDB",function(){return i.T}),n.d(e,"RIBBON_LAUNCHER",function(){return i.U}),n.d(e,"RIBBON_LAUNCHER_ICON_ELE",function(){return i.V}),n.d(e,"RIBBON_LAUNCHER_ICON",function(){return i.W}),n.d(e,"RIBBON_COLLECTION",function(){return i.X}),n.d(e,"RIBBON_ITEM",function(){return i.Y}),n.d(e,"RIBBON_ROW",function(){return i.Z}),n.d(e,"RIBBON_COLUMN",function(){return i._0}),n.d(e,"RIBBON_LARGE_ITEM",function(){return i._1}),n.d(e,"RIBBON_MEDIUM_ITEM",function(){return i._2}),n.d(e,"RIBBON_SMALL_ITEM",function(){return i._3}),n.d(e,"RIBBON_CONTENT_HEIGHT",function(){return i._4}),n.d(e,"DROPDOWNBUTTON",function(){return i._5}),n.d(e,"DROPDOWNBUTTON_HIDE",function(){return i._6}),n.d(e,"RIBBON_TEMPLATE",function(){return i._7}),n.d(e,"RIBBON_HELP_TEMPLATE",function(){return i._8}),n.d(e,"RIBBON_TOOLTIP",function(){return i._9}),n.d(e,"RIBBON_TOOLTIP_TARGET",function(){return i._10}),n.d(e,"RIBBON_TOOLTIP_TITLE",function(){return i._11}),n.d(e,"RIBBON_TOOLTIP_CONTENT",function(){return i._12}),n.d(e,"RIBBON_TOOLTIP_ICON",function(){return i._13}),n.d(e,"RIBBON_TOOLTIP_CONTAINER",function(){return i._14}),n.d(e,"RIBBON_TEXT_CONTAINER",function(){return i._15}),n.d(e,"RIBBON_SIMPLIFIED_MODE",function(){return i._16}),n.d(e,"RIBBON_BACKSTAGE_POPUP",function(){return i._17}),n.d(e,"RIBBON_BACKSTAGE_OPEN",function(){return i._18}),n.d(e,"RIBBON_BACKSTAGE_CONTENT",function(){return i._19}),n.d(e,"RIBBON_SELECTED_CONTENT",function(){return i._20}),n.d(e,"RIBBON_BACKSTAGE",function(){return i._21}),n.d(e,"RIBBON_BACKSTAGE_MENU",function(){return i._22}),n.d(e,"RIBBON_BACKSTAGE_TEMPLATE",function(){return i._23}),n.d(e,"RIBBON_BACKSTAGE_MENU_WRAPPER",function(){return i._24}),n.d(e,"RIBBON_BACKSTAGE_ITEMS_WRAPPER",function(){return i._25}),n.d(e,"RIBBON_BACKSTAGE_TEXT_MENU",function(){return i._26}),n.d(e,"TAB_ID",function(){return i._27}),n.d(e,"GROUP_ID",function(){return i._28}),n.d(e,"COLLECTION_ID",function(){return i._29}),n.d(e,"ITEM_ID",function(){return i._30}),n.d(e,"COLLAPSE_BUTTON_ID",function(){return i._31}),n.d(e,"OVRLOF_BUTTON_ID",function(){return i._32}),n.d(e,"GROUPOF_BUTTON_ID",function(){return i._33}),n.d(e,"HEADER_ID",function(){return i._34}),n.d(e,"LAUNCHER_ID",function(){return i._35}),n.d(e,"CONTENT_ID",function(){return i._36}),n.d(e,"CONTAINER_ID",function(){return i._37}),n.d(e,"OVERFLOW_ID",function(){return i._38}),n.d(e,"DROPDOWN_ID",function(){return i._39}),n.d(e,"RIBBON_FILE_MENU_ID",function(){return i._40}),n.d(e,"RIBBON_BACKSTAGE_MENU_ID",function(){return i._41}),n.d(e,"RIBBON_BACKSTAGE_POPUP_ID",function(){return i._42}),n.d(e,"RIBBON_FILE_MENU_LIST",function(){return i._43}),n.d(e,"RIBBON_MENU_LIST",function(){return i._44}),n.d(e,"RIBBON_FOOTER_MENU_LIST",function(){return i._45}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_ID",function(){return i._46}),n.d(e,"RIBBON_GROUP_BUTTON_ID",function(){return i._47}),n.d(e,"RIBBON_FILE_MENU_WIDTH",function(){return i._48}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_WIDTH",function(){return i._49}),n.d(e,"getIndex",function(){return i._50}),n.d(e,"getTemplateFunction",function(){return i._51}),n.d(e,"getItem",function(){return i._52}),n.d(e,"getCollection",function(){return i._53}),n.d(e,"getGroup",function(){return i._54}),n.d(e,"destroyControl",function(){return i._55}),n.d(e,"updateCommonProperty",function(){return i._56}),n.d(e,"updateControlDisabled",function(){return i._57}),n.d(e,"getItemElement",function(){return i._58}),n.d(e,"isTooltipPresent",function(){return i._59}),n.d(e,"setToolTipContent",function(){return i._60}),n.d(e,"createTooltip",function(){return i._61}),n.d(e,"destroyTooltip",function(){return i._62}),n.d(e,"updateTooltipProp",function(){return i._63}),n.d(e,"setCustomAttributes",function(){return i._64}),n.d(e,"RibbonTab",function(){return i._65}),n.d(e,"RibbonGroup",function(){return i._66}),n.d(e,"RibbonCollection",function(){return i._67}),n.d(e,"RibbonItem",function(){return i._68}),n.d(e,"RibbonButtonSettings",function(){return i._69}),n.d(e,"RibbonCheckBoxSettings",function(){return i._70}),n.d(e,"RibbonColorPickerSettings",function(){return i._71}),n.d(e,"RibbonComboBoxSettings",function(){return i._72}),n.d(e,"RibbonDropDownSettings",function(){return i._73}),n.d(e,"RibbonSplitButtonSettings",function(){return i._74}),n.d(e,"FileMenuSettings",function(){return i._75}),n.d(e,"BackStageMenu",function(){return i._76}),n.d(e,"BackstageBackButton",function(){return i._77}),n.d(e,"BackstageItem",function(){return i._78}),n.d(e,"RibbonTooltip",function(){return i._79}),n.d(e,"RibbonGroupButtonSettings",function(){return i._80}),n.d(e,"RibbonGroupButtonItem",function(){return i._81}),n.d(e,"RibbonButton",function(){return i._82}),n.d(e,"RibbonCheckBox",function(){return i._83}),n.d(e,"RibbonColorPicker",function(){return i._84}),n.d(e,"RibbonComboBox",function(){return i._85}),n.d(e,"RibbonDropDown",function(){return i._86}),n.d(e,"RibbonSplitButton",function(){return i._87}),n.d(e,"RibbonGroupButton",function(){return i._88}),n.d(e,"RibbonFileMenu",function(){return i._89}),n.d(e,"RibbonBackstage",function(){return i._90})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonCollection",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="collections",e.moduleName="ribbonCollections",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonGroup",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="groups",e.moduleName="ribbonGroups",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonItem",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="items",e.moduleName="ribbonItems",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(51),o=(n.n(r),n(11)),i=n(4),s=(n.n(i),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),c=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.directivekeys={ribbonTabs:{ribbonTab:{ribbonGroups:{ribbonGroup:{ribbonCollections:{ribbonCollection:{ribbonItems:"ribbonItem"}}}}}}},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(o.a);n.i(i.applyMixins)(c,[i.ComponentBase,r.Component])},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonTab",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="tabs",e.moduleName="ribbonTabs",e}(r.ComplexBase)},function(t,e){t.exports=c},function(t,e){t.exports=u}])});
10
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionPopups"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSplitbuttons","SyncfusionReactBase","SyncfusionButtons","SyncfusionNavigations","SyncfusionPopups","SyncfusionDropdowns","React","SyncfusionInputs"],e):"object"==typeof exports?exports.SyncfusionReactRibbon=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionPopups"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):t.SyncfusionReactRibbon=e(t.SyncfusionBase,t.SyncfusionSplitbuttons,t.SyncfusionReactBase,t.SyncfusionButtons,t.SyncfusionNavigations,t.SyncfusionPopups,t.SyncfusionDropdowns,t.React,t.SyncfusionInputs)}(this,function(t,e,n,r,o,i,s,c,a){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.d(e,"G",function(){return r}),n.d(e,"P",function(){return o}),n.d(e,"j",function(){return i}),n.d(e,"Q",function(){return s}),n.d(e,"I",function(){return c}),n.d(e,"R",function(){return a}),n.d(e,"S",function(){return u}),n.d(e,"K",function(){return l}),n.d(e,"H",function(){return p}),n.d(e,"L",function(){return d}),n.d(e,"J",function(){return f}),n.d(e,"F",function(){return h}),n.d(e,"T",function(){return b}),n.d(e,"U",function(){return m}),n.d(e,"V",function(){return v}),n.d(e,"W",function(){return y}),n.d(e,"X",function(){return g}),n.d(e,"Y",function(){return _}),n.d(e,"Z",function(){return S}),n.d(e,"_0",function(){return I}),n.d(e,"_1",function(){return C}),n.d(e,"_2",function(){return B}),n.d(e,"_3",function(){return O}),n.d(e,"_4",function(){return w}),n.d(e,"_5",function(){return P}),n.d(e,"_6",function(){return D}),n.d(e,"_7",function(){return L}),n.d(e,"C",function(){return k}),n.d(e,"D",function(){return T}),n.d(e,"B",function(){return E}),n.d(e,"E",function(){return x}),n.d(e,"_8",function(){return M}),n.d(e,"_9",function(){return R}),n.d(e,"_10",function(){return q}),n.d(e,"_11",function(){return A}),n.d(e,"_12",function(){return j}),n.d(e,"_13",function(){return N}),n.d(e,"_14",function(){return G}),n.d(e,"O",function(){return z}),n.d(e,"_15",function(){return F}),n.d(e,"_16",function(){return H}),n.d(e,"_17",function(){return W}),n.d(e,"_18",function(){return U}),n.d(e,"_19",function(){return K}),n.d(e,"_20",function(){return V}),n.d(e,"_21",function(){return J}),n.d(e,"_22",function(){return X}),n.d(e,"_23",function(){return Z}),n.d(e,"_24",function(){return Y}),n.d(e,"_25",function(){return Q}),n.d(e,"_26",function(){return $}),n.d(e,"_27",function(){return tt}),n.d(e,"_28",function(){return et}),n.d(e,"_29",function(){return nt}),n.d(e,"x",function(){return rt}),n.d(e,"e",function(){return ot}),n.d(e,"t",function(){return it}),n.d(e,"w",function(){return st}),n.d(e,"v",function(){return ct}),n.d(e,"s",function(){return at}),n.d(e,"u",function(){return ut}),n.d(e,"_30",function(){return lt}),n.d(e,"h",function(){return pt}),n.d(e,"d",function(){return dt}),n.d(e,"p",function(){return ft}),n.d(e,"_31",function(){return ht}),n.d(e,"b",function(){return bt}),n.d(e,"n",function(){return mt}),n.d(e,"q",function(){return vt}),n.d(e,"i",function(){return yt}),n.d(e,"k",function(){return gt}),n.d(e,"f",function(){return _t}),n.d(e,"_32",function(){return St}),n.d(e,"_33",function(){return It}),n.d(e,"_34",function(){return Ct}),n.d(e,"_35",function(){return Bt}),n.d(e,"_36",function(){return Ot}),n.d(e,"_37",function(){return wt}),n.d(e,"r",function(){return Pt}),n.d(e,"_38",function(){return Dt}),n.d(e,"_39",function(){return Lt}),n.d(e,"o",function(){return kt}),n.d(e,"_40",function(){return Tt}),n.d(e,"M",function(){return Et}),n.d(e,"N",function(){return xt}),n.d(e,"y",function(){return Mt}),n.d(e,"a",function(){return Rt}),n.d(e,"g",function(){return qt}),n.d(e,"z",function(){return At}),n.d(e,"m",function(){return jt}),n.d(e,"l",function(){return Nt}),n.d(e,"_41",function(){return Gt}),n.d(e,"A",function(){return zt}),n.d(e,"c",function(){return Ft}),n.d(e,"_42",function(){return Ht});var r="e-ribbon-vertical-center",o="e-icons e-drop-icon",i="e-icons e-arrow-left",s="e-icons e-more-horizontal-1",c="e-vertical",a="e-disabled",u="e-rtl",l="e-ribbon-hover",p="e-ribbon-control",d="e-ribbon-popup-control",f="e-ribbon-open",h=" ",b="e-hscroll-bar",m="e-ribbon-hide",v="e-ribbon-tab",y="e-ribbon-active",g="e-ribbon-tab-item",_="e-ribbon-collapse-btn",S="e-ribbon-expand-btn",I="e-ribbon-collapsible",C="e-ribbon-overall-of-btn",B="e-ribbon-group-of-btn",O="e-ribbon-overflow-target",w="e-ribbon-overflow",P="e-content",D="e-ribbon-minimize",L="e-ribbon-group",k="e-ribbon-single-selection",T="e-ribbon-multiple-selection",E="e-ribbon-group-button",x="e-ribbon-group-button-overflow-popup",M="e-ribbon-group-container",R="e-ribbon-of-tab",q="e-ribbon-of-group-container",A="e-ribbon-group-content",j="e-ribbon-group-header",N="e-ribbon-overflow-header",G="e-ribbon-group-overflow",z="e-ribbon-group-overflow-ddb",F="e-ribbon-launcher",H="e-ribbon-launcher-icon",W="e-icons e-launcher",U="e-ribbon-collection",K="e-ribbon-item",V="e-ribbon-row",J="e-ribbon-column",X="e-ribbon-large-item",Z="e-ribbon-medium-item",Y="e-ribbon-small-item",Q="e-ribbon-content-height",$="e-dropdown-btn",tt="e-caret-hide",et="e-ribbon-template",nt="e-ribbon-help-template",rt="e-ribbon-tooltip",ot="e-ribbon-tooltip-target",it="e-ribbon-tooltip-title",st="e-ribbon-tooltip-content",ct="e-ribbon-tooltip-icon",at="e-ribbon-tooltip-container",ut="e-ribbon-text-container",lt="e-ribbon-simplified-mode",pt="e-ribbon-backstage-popup",dt="e-ribbon-backstage-open",ft="e-ribbon-backstage-content",ht="e-ribbon-selected-content",bt="e-ribbon-backstage",mt="e-ribbon-backstage-menu",vt="e-ribbon-backstage-template",yt="e-ribbon-backstage-wrapper",gt="e-ribbon-backstage-items-wrapper",_t="e-blankicon",St="_tab",It="_group",Ct="_collection",Bt="_item",Ot="_collapsebutton",wt="_sim_ovrl_overflow",Pt="_sim_grp_overflow",Dt="_header",Lt="_launcher",kt="_content",Tt="_container",Et="_overflow",xt="_dropdown",Mt="_filemenu",Rt="_backstage",qt="_backstagepopup",At="_filemenulist",jt="_menulist",Nt="_footermenulist",Gt="_helppanetemplate",zt="_grpbtn",Ft="--fileMenuWidth",Ht="--helpTemplateWidth"},function(t,e,n){"use strict";var r=n(30);n.d(e,"a",function(){return r.a});var o=n(5);n.d(e,"b",function(){return o.a}),n.d(e,"c",function(){return o.e}),n.d(e,"d",function(){return o.c}),n.d(e,"e",function(){return o.b}),n.d(e,"f",function(){return o.f}),n.d(e,"g",function(){return o.d});var i=n(1);n.d(e,"h",function(){return i.G}),n.d(e,"i",function(){return i.P}),n.d(e,"j",function(){return i.j}),n.d(e,"k",function(){return i.Q}),n.d(e,"l",function(){return i.I}),n.d(e,"m",function(){return i.R}),n.d(e,"n",function(){return i.S}),n.d(e,"o",function(){return i.K}),n.d(e,"p",function(){return i.H}),n.d(e,"q",function(){return i.L}),n.d(e,"r",function(){return i.J}),n.d(e,"s",function(){return i.F}),n.d(e,"t",function(){return i.T}),n.d(e,"u",function(){return i.U}),n.d(e,"v",function(){return i.V}),n.d(e,"w",function(){return i.W}),n.d(e,"x",function(){return i.X}),n.d(e,"y",function(){return i.Y}),n.d(e,"z",function(){return i.Z}),n.d(e,"A",function(){return i._0}),n.d(e,"B",function(){return i._1}),n.d(e,"C",function(){return i._2}),n.d(e,"D",function(){return i._3}),n.d(e,"E",function(){return i._4}),n.d(e,"F",function(){return i._5}),n.d(e,"G",function(){return i._6}),n.d(e,"H",function(){return i._7}),n.d(e,"I",function(){return i.C}),n.d(e,"J",function(){return i.D}),n.d(e,"K",function(){return i.B}),n.d(e,"L",function(){return i.E}),n.d(e,"M",function(){return i._8}),n.d(e,"N",function(){return i._9}),n.d(e,"O",function(){return i._10}),n.d(e,"P",function(){return i._11}),n.d(e,"Q",function(){return i._12}),n.d(e,"R",function(){return i._13}),n.d(e,"S",function(){return i._14}),n.d(e,"T",function(){return i.O}),n.d(e,"U",function(){return i._15}),n.d(e,"V",function(){return i._16}),n.d(e,"W",function(){return i._17}),n.d(e,"X",function(){return i._18}),n.d(e,"Y",function(){return i._19}),n.d(e,"Z",function(){return i._20}),n.d(e,"_0",function(){return i._21}),n.d(e,"_1",function(){return i._22}),n.d(e,"_2",function(){return i._23}),n.d(e,"_3",function(){return i._24}),n.d(e,"_4",function(){return i._25}),n.d(e,"_5",function(){return i._26}),n.d(e,"_6",function(){return i._27}),n.d(e,"_7",function(){return i._28}),n.d(e,"_8",function(){return i._29}),n.d(e,"_9",function(){return i.x}),n.d(e,"_10",function(){return i.e}),n.d(e,"_11",function(){return i.t}),n.d(e,"_12",function(){return i.w}),n.d(e,"_13",function(){return i.v}),n.d(e,"_14",function(){return i.s}),n.d(e,"_15",function(){return i.u}),n.d(e,"_16",function(){return i._30}),n.d(e,"_17",function(){return i.h}),n.d(e,"_18",function(){return i.d}),n.d(e,"_19",function(){return i.p}),n.d(e,"_20",function(){return i._31}),n.d(e,"_21",function(){return i.b}),n.d(e,"_22",function(){return i.n}),n.d(e,"_23",function(){return i.q}),n.d(e,"_24",function(){return i.i}),n.d(e,"_25",function(){return i.k}),n.d(e,"_26",function(){return i.f}),n.d(e,"_27",function(){return i._32}),n.d(e,"_28",function(){return i._33}),n.d(e,"_29",function(){return i._34}),n.d(e,"_30",function(){return i._35}),n.d(e,"_31",function(){return i._36}),n.d(e,"_32",function(){return i._37}),n.d(e,"_33",function(){return i.r}),n.d(e,"_34",function(){return i._38}),n.d(e,"_35",function(){return i._39}),n.d(e,"_36",function(){return i.o}),n.d(e,"_37",function(){return i._40}),n.d(e,"_38",function(){return i.M}),n.d(e,"_39",function(){return i.N}),n.d(e,"_40",function(){return i.y}),n.d(e,"_41",function(){return i.a}),n.d(e,"_42",function(){return i.g}),n.d(e,"_43",function(){return i.z}),n.d(e,"_44",function(){return i.m}),n.d(e,"_45",function(){return i.l}),n.d(e,"_46",function(){return i._41}),n.d(e,"_47",function(){return i.A}),n.d(e,"_48",function(){return i.c}),n.d(e,"_49",function(){return i._42});var s=n(8);n.d(e,"_50",function(){return s.e}),n.d(e,"_51",function(){return s.b}),n.d(e,"_52",function(){return s.f}),n.d(e,"_53",function(){return s.g}),n.d(e,"_54",function(){return s.h}),n.d(e,"_55",function(){return s.i}),n.d(e,"_56",function(){return s.j}),n.d(e,"_57",function(){return s.k}),n.d(e,"_58",function(){return s.l}),n.d(e,"_59",function(){return s.a}),n.d(e,"_60",function(){return s.m}),n.d(e,"_61",function(){return s.d}),n.d(e,"_62",function(){return s.n}),n.d(e,"_63",function(){return s.o}),n.d(e,"_64",function(){return s.c})},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return a});var r;!function(t){t.Classic="Classic",t.Simplified="Simplified"}(r||(r={}));var o;!function(t){t.Row="Row",t.Column="Column"}(o||(o={}));var i;!function(t){t[t.Large=4]="Large",t[t.Medium=2]="Medium",t[t.Small=1]="Small"}(i||(i={}));var s;!function(t){t[t.Classic=4]="Classic",t[t.Simplified=2]="Simplified",t[t.Overflow=1]="Overflow",t[t.Auto=7]="Auto"}(s||(s={}));var c;!function(t){t.Button="Button",t.CheckBox="CheckBox",t.ColorPicker="ColorPicker",t.ComboBox="ComboBox",t.DropDown="DropDown",t.SplitButton="SplitButton",t.GroupButton="GroupButton",t.Template="Template"}(c||(c={}));var a;!function(t){t.Single="Single",t.Multiple="Multiple"}(a||(a={}))},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"id",void 0),i([n.i(r.Property)("")],e.prototype,"title",void 0),i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),e}(r.ChildProperty)},function(t,e){t.exports=r},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<t.length;n++)if(e(t[parseInt(n.toString(),10)],n))return n;return-1}function o(t){if("string"==typeof t){var e="";try{var r=n.i(y.select)(t);e=r?"SCRIPT"===r.tagName?r.innerHTML:r.outerHTML:t}catch(n){e=t}return n.i(y.compile)(e)}return n.i(y.compile)(t)}function i(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++)for(var i=r.groups[parseInt(o.toString(),10)],s=0;s<i.collections.length;s++)for(var c=i.collections[parseInt(s.toString(),10)],a=0;a<c.items.length;a++){var u=c.items[parseInt(a.toString(),10)];if(u.id===e)return{item:u,collection:c,group:i,tabIndex:n,groupIndex:o,collectionIndex:s,itemIndex:a}}return null}function s(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++)for(var i=r.groups[parseInt(o.toString(),10)],s=0;s<i.collections.length;s++){var c=i.collections[parseInt(s.toString(),10)];if(c.id===e)return{collection:c,group:i,tabIndex:n,groupIndex:o,collectionIndex:s}}return null}function c(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++){var i=r.groups[parseInt(o.toString(),10)];if(i.id===e)return{group:i,tabIndex:n,groupIndex:o}}return null}function a(t,e){n.i(y.getComponent)(t,e).destroy()}function u(t,e,r){n.i(y.getComponent)(t,e).setProperties(r)}function l(t,e,r){n.i(y.getComponent)(t,e).setProperties("combobox"===e?{enabled:!r}:{disabled:r})}function p(t,e,r){if(!r&&!(r=i(t.tabs,e)))return null;var o=t.tabObj.items[r.tabIndex].content;if(""===o.innerHTML)return null;if(t.activeLayout===_.a.Classic)return r.item.displayOptions&_.b.Classic?(o=r.group.isCollapsed?t.ribbonDropDownModule.getOverflowDropDownPopup(r,o):o,o.querySelector("#"+e)):null;var s=r.item.displayOptions&_.b.Simplified?o.querySelector("#"+r.item.id):null;if(!s){s=(r.group.enableGroupOverflow?n.i(y.getComponent)(o.querySelector("#"+r.group.id+S.r),I.DropDownButton):t.overflowDDB).target.querySelector("#"+r.item.id)}return s}function d(t){return!!(t.content||t.iconCss||t.title||t.id||t.cssClass)}function f(t,e,n){var r=t.target.getAttribute("id"),o=n.filter(function(t){return t.id===r})[0],i=o.data,s=e.createElement("div",{id:i.id?S.s+"_"+i.id:S.s});if(e.element.append(s),i.title){var c=e.createElement("div",{innerHTML:i.title,className:S.t});s.appendChild(c)}var a=e.createElement("div",{className:S.u});if(s.appendChild(a),i.iconCss){var u=e.createElement("div",{className:i.iconCss+" "+S.v});a.appendChild(u)}if(i.content){var l=e.createElement("div",{innerHTML:i.content,className:S.w});a.appendChild(l)}e.setProperties({content:s,cssClass:i.cssClass?i.cssClass+" "+S.x:S.x})}function h(t,e){function n(t){f(t,r,e.tooltipData)}var r=new g.Tooltip({target:"."+S.e,beforeRender:n.bind(this),windowCollision:!0});r.appendTo(t)}function b(t){n.i(y.getComponent)(t,g.Tooltip).destroy()}function m(t,e){n.i(y.getComponent)(t,g.Tooltip).setProperties(e)}function v(t,e){for(var r in e)if("class"===r){var o=e.class.replace(/\s+/g," ").trim();o&&n.i(y.addClass)([t],o.split(" "))}else if("style"===r){var i=t.getAttribute("style")||"",s=""+i+e[""+r];t.setAttribute(""+r,s)}else t.setAttribute(r,e[""+r])}e.e=r,e.b=o,e.f=i,e.g=s,e.h=c,e.i=a,e.j=u,e.k=l,e.l=p,e.a=d,e.m=f,e.d=h,e.n=b,e.o=m,e.c=v;var y=n(0),g=(n.n(y),n(10)),_=(n.n(g),n(5)),S=n(1),I=n(3);n.n(I)},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){"use strict";var r=n(29);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63}),n.d(e,"_64",function(){return r._64}),n.d(e,"_65",function(){return r._65}),n.d(e,"_66",function(){return r._66}),n.d(e,"_67",function(){return r._67}),n.d(e,"_68",function(){return r._68}),n.d(e,"_69",function(){return r._69}),n.d(e,"_70",function(){return r._70}),n.d(e,"_71",function(){return r._71}),n.d(e,"_72",function(){return r._72}),n.d(e,"_73",function(){return r._73}),n.d(e,"_74",function(){return r._74}),n.d(e,"_75",function(){return r._75}),n.d(e,"_76",function(){return r._76}),n.d(e,"_77",function(){return r._77}),n.d(e,"_78",function(){return r._78}),n.d(e,"_79",function(){return r._79}),n.d(e,"_80",function(){return r._80}),n.d(e,"_81",function(){return r._81}),n.d(e,"_82",function(){return r._82}),n.d(e,"_83",function(){return r._83}),n.d(e,"_84",function(){return r._84}),n.d(e,"_85",function(){return r._85}),n.d(e,"_86",function(){return r._86}),n.d(e,"_87",function(){return r._87}),n.d(e,"_88",function(){return r._88}),n.d(e,"_89",function(){return r._89}),n.d(e,"_90",function(){return r._90})},function(t,e,n){"use strict";var r=n(32);n.d(e,"a",function(){return r.a});var o=n(33);n.d(e,"b",function(){return o.a});var i=n(34);n.d(e,"c",function(){return i.a});var s=n(35);n.d(e,"d",function(){return s.a});var c=n(36);n.d(e,"e",function(){return c.a});var a=n(38);n.d(e,"f",function(){return a.a});var u=n(37);n.d(e,"g",function(){return u.a})},function(t,e,n){"use strict";var r=n(41);n.d(e,"a",function(){return r.a});var o=n(24);n.d(e,"b",function(){return o.a});var i=n(18);n.d(e,"c",function(){return i.a});var s=n(25);n.d(e,"d",function(){return s.a});var c=n(16);n.d(e,"e",function(){return c.a});var a=n(17);n.d(e,"f",function(){return a.a});var u=n(19);n.d(e,"g",function(){return u.a});var l=n(20);n.d(e,"h",function(){return l.a});var p=n(21);n.d(e,"i",function(){return p.a});var d=n(26);n.d(e,"j",function(){return d.a});var f=n(40);n.d(e,"k",function(){return f.a});var h=n(39);n.d(e,"l",function(){return h.a});var b=n(14);n.d(e,"m",function(){return b.a});var m=n(15);n.d(e,"n",function(){return m.a});var v=n(6);n.d(e,"o",function(){return v.a});var y=n(23);n.d(e,"p",function(){return y.a});var g=n(22);n.d(e,"q",function(){return g.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"text",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!0)],e.prototype,"visible",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"text",void 0),i([n.i(r.Property)("")],e.prototype,"id",void 0),i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!1)],e.prototype,"separator",void 0),i([n.i(r.Property)(!1)],e.prototype,"isFooter",void 0),i([n.i(r.Event)()],e.prototype,"backStageItemClick",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!1)],e.prototype,"isToggle",void 0),i([n.i(r.Property)(!1)],e.prototype,"isPrimary",void 0),i([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"clicked",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)(!1)],e.prototype,"checked",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"label",void 0),i([n.i(r.Property)("After")],e.prototype,"labelPosition",void 0),i([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"change",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(25)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)(10)],e.prototype,"columns",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)(!0)],e.prototype,"enableOpacity",void 0),i([n.i(r.Property)("Picker")],e.prototype,"mode",void 0),i([n.i(r.Property)(!0)],e.prototype,"modeSwitcher",void 0),i([n.i(r.Property)(!1)],e.prototype,"noColor",void 0),i([n.i(r.Property)(null)],e.prototype,"presetColors",void 0),i([n.i(r.Property)(!0)],e.prototype,"showButtons",void 0),i([n.i(r.Property)("#008000ff")],e.prototype,"value",void 0),i([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),i([n.i(r.Event)()],e.prototype,"beforeClose",void 0),i([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),i([n.i(r.Event)()],e.prototype,"beforeTileRender",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"change",void 0),i([n.i(r.Event)()],e.prototype,"open",void 0),i([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(27)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)(!1)],e.prototype,"allowFiltering",void 0),s([n.i(r.Property)(!0)],e.prototype,"autofill",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)([])],e.prototype,"dataSource",void 0),s([n.i(r.Complex)({text:null,value:null,iconCss:null,groupBy:null},o.FieldSettings)],e.prototype,"fields",void 0),s([n.i(r.Property)("Contains")],e.prototype,"filterType",void 0),s([n.i(r.Property)(null)],e.prototype,"footerTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"groupTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"headerTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"index",void 0),s([n.i(r.Property)(null)],e.prototype,"itemTemplate",void 0),s([n.i(r.Property)("No records found")],e.prototype,"noRecordsTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"placeholder",void 0),s([n.i(r.Property)("300px")],e.prototype,"popupHeight",void 0),s([n.i(r.Property)("100%")],e.prototype,"popupWidth",void 0),s([n.i(r.Property)(!0)],e.prototype,"showClearButton",void 0),s([n.i(r.Property)("None")],e.prototype,"sortOrder",void 0),s([n.i(r.Property)(null)],e.prototype,"text",void 0),s([n.i(r.Property)(null)],e.prototype,"value",void 0),s([n.i(r.Property)("150px")],e.prototype,"width",void 0),s([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"change",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"filtering",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"closeActionEvents",void 0),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Collection)([],o.Item)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"target",void 0),s([n.i(r.Property)(!1)],e.prototype,"createPopupOnClick",void 0),s([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),s([n.i(r.Event)()],e.prototype,"beforeClose",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(6)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Complex)({},o.a)],e.prototype,"ribbonTooltipSettings",void 0),s([n.i(r.Property)(!1)],e.prototype,"selected",void 0),s([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),s([n.i(r.Event)()],e.prototype,"beforeClick",void 0),s([n.i(r.Event)()],e.prototype,"click",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(22)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),s([n.i(r.Property)("Single")],e.prototype,"selection",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(18)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Collection)([],o.a)],e.prototype,"collections",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)(!1)],e.prototype,"isCollapsed",void 0),s([n.i(r.Property)(!0)],e.prototype,"isCollapsible",void 0),s([n.i(r.Property)(!1)],e.prototype,"enableGroupOverflow",void 0),s([n.i(r.Property)("")],e.prototype,"groupIconCss",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),s([n.i(r.Property)("Column")],e.prototype,"orientation",void 0),s([n.i(r.Property)(0)],e.prototype,"priority",void 0),s([n.i(r.Property)(!1)],e.prototype,"showLauncherIcon",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return b});var r=n(0),o=(n.n(r),n(5)),i=n(16),s=n(17),c=n(19),a=n(20),u=n(21),l=n(26),p=n(6),d=n(23),f=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},h([n.i(r.Property)(o.c.Medium)],e.prototype,"activeSize",void 0),h([n.i(r.Property)(o.c.Small|o.c.Medium|o.c.Large)],e.prototype,"allowedSizes",void 0),h([n.i(r.Property)("")],e.prototype,"id",void 0),h([n.i(r.Property)("")],e.prototype,"cssClass",void 0),h([n.i(r.Property)(!1)],e.prototype,"disabled",void 0),h([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),h([n.i(r.Property)("Button")],e.prototype,"type",void 0),h([n.i(r.Property)(o.b.Auto)],e.prototype,"displayOptions",void 0),h([n.i(r.Complex)({},p.a)],e.prototype,"ribbonTooltipSettings",void 0),h([n.i(r.Complex)({},i.a)],e.prototype,"buttonSettings",void 0),h([n.i(r.Complex)({},u.a)],e.prototype,"dropDownSettings",void 0),h([n.i(r.Complex)({},s.a)],e.prototype,"checkBoxSettings",void 0),h([n.i(r.Complex)({},c.a)],e.prototype,"colorPickerSettings",void 0),h([n.i(r.Complex)({},a.a)],e.prototype,"comboBoxSettings",void 0),h([n.i(r.Complex)({},l.a)],e.prototype,"splitButtonSettings",void 0),h([n.i(r.Complex)({},d.a)],e.prototype,"groupButtonSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"closeActionEvents",void 0),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Collection)([],o.Item)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"target",void 0),s([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),s([n.i(r.Event)()],e.prototype,"beforeClose",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"click",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e){t.exports=s},function(t,e,n){"use strict";var r=n(50);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var o=n(47);n.d(e,"c",function(){return o.a}),n.d(e,"d",function(){return o.b});var i=n(46);n.d(e,"e",function(){return i.a}),n.d(e,"f",function(){return i.b});var s=n(48);n.d(e,"g",function(){return s.a}),n.d(e,"h",function(){return s.b});var c=n(49);n.d(e,"i",function(){return c.a})},function(t,e,n){"use strict";var r=n(31);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63}),n.d(e,"_64",function(){return r._64}),n.d(e,"_65",function(){return r._65}),n.d(e,"_66",function(){return r._66}),n.d(e,"_67",function(){return r._67}),n.d(e,"_68",function(){return r._68}),n.d(e,"_69",function(){return r._69}),n.d(e,"_70",function(){return r._70}),n.d(e,"_71",function(){return r._71}),n.d(e,"_72",function(){return r._72}),n.d(e,"_73",function(){return r._73}),n.d(e,"_74",function(){return r._74}),n.d(e,"_75",function(){return r._75}),n.d(e,"_76",function(){return r._76}),n.d(e,"_77",function(){return r._77}),n.d(e,"_78",function(){return r._78}),n.d(e,"_79",function(){return r._79}),n.d(e,"_80",function(){return r._80}),n.d(e,"_81",function(){return r._81}),n.d(e,"_82",function(){return r._82}),n.d(e,"_83",function(){return r._83}),n.d(e,"_84",function(){return r._84}),n.d(e,"_85",function(){return r._85}),n.d(e,"_86",function(){return r._86}),n.d(e,"_87",function(){return r._87}),n.d(e,"_88",function(){return r._88}),n.d(e,"_89",function(){return r._89}),n.d(e,"_90",function(){return r._90})},function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(13)),s=n(5),c=n(12),a=n(8),u=n(1),l=n(3),p=(n.n(l),n(7)),d=(n.n(p),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),f=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},h=function(t){function e(e,n){return h.Inject(c.a,c.b,c.e,c.f,c.d,c.g),t.call(this,e,n)||this}d(e,t),h=e,e.prototype.render=function(){this.initialize()},e.prototype.preRender=function(){this.idIndex=0,this.tooltipData=[],this.initialPropsData={},this.isAddRemove=!1,this.keyConfigs={leftarrow:"leftarrow",rightarrow:"rightarrow",tab:"tab",shiftTab:"shift+tab"}},e.prototype.getPersistData=function(){return this.addOnPersist(["activeLayout"])},e.prototype.getModuleName=function(){return"ribbon"},e.prototype.requiredModules=function(){var t=[];return t.push({member:"ribbonButton",args:[this]},{member:"ribbonDropDown",args:[this]},{member:"ribbonSplitButton",args:[this]},{member:"ribbonCheckBox",args:[this]},{member:"ribbonColorPicker",args:[this]},{member:"ribbonComboBox",args:[this]},{member:"ribbonGroupButton",args:[this]},{member:"ribbonFileMenu",args:[this]},{member:"ribbonBackstage",args:[this]}),t},e.prototype.initialize=function(){this.element.id=this.element.id||n.i(r.getUniqueID)("e-"+this.getModuleName()),n.i(r.addClass)([this.element],["e-rbn"].concat(this.cssClass?this.cssClass.split(u.F):[])),this.enableRtl&&this.element.classList.add(u.S),this.element.style.width=n.i(r.formatUnit)(this.width),this.renderTabs(),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.createFileMenu(this.fileMenu),this.ribbonBackstageModule&&this.ribbonBackstageModule.createBackStage(this.backStageMenu),this.createHelpPaneTemplate(),this.tabObj.tbObj.refreshOverflow(),n.i(a.d)(this.element,this),this.wireEvents(),this.wireKeyboardEvent(),this.currentControlIndex=0},e.prototype.wireEvents=function(){r.EventHandler.add(window,"resize",this.resizeHandler,this)},e.prototype.wireKeyboardEvent=function(){this.keyboardModuleRibbon=new r.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},e.prototype.keyActionHandler=function(t){"Tab"!==t.key||t.target.classList.contains("e-tab-wrap")||t.target.classList.contains("e-combobox")||t.preventDefault();var e,n=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+u.o),r=n.querySelectorAll(".e-control"),o=n.querySelectorAll(".e-combobox");if(o)for(var i=0;i<o.length;i++)o[parseInt(i.toString(),10)].closest(".e-input-focus")&&(e=o[parseInt(i.toString(),10)]);if(e)for(var i=0;i<r.length;i++)r[parseInt(i.toString(),10)].classList.contains("e-combobox")&&r[parseInt(i.toString(),10)].closest(".e-input-focus")&&(this.currentControlIndex=i);if(0===this.currentControlIndex)for(var s=r[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");)this.currentControlIndex++,s=r[this.currentControlIndex].closest(".e-ribbon-item");if(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-launcher-icon")||t.target.classList.contains("e-ribbon-collapse-btn")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-first-item")||t.target.classList.contains("e-ribbon-group-of-btn")||t.target.classList.contains("e-ribbon-overall-of-btn"))switch(t.action){case"rightarrow":this.handleNavigation(t,!this.enableRtl,r);break;case"leftarrow":this.handleNavigation(t,this.enableRtl,r);break;case"tab":t.target.classList.contains("e-combobox")&&this.currentControlIndex<r.length-1&&this.currentControlIndex++;break;case"shiftTab":t.target.classList.contains("e-combobox")?this.currentControlIndex>0&&this.currentControlIndex--:(this.tabObj.element.querySelector(".e-toolbar-item.e-active").querySelector(".e-tab-wrap").focus(),this.currentControlIndex=0)}},e.prototype.handleNavigation=function(t,e,n){var r,o;if(e?this.currentControlIndex<n.length-1&&n[this.currentControlIndex+1].classList.contains("e-colorpicker")&&this.currentControlIndex++:this.currentControlIndex>0&&n[this.currentControlIndex-1].classList.contains("e-colorpicker")&&this.currentControlIndex--,!e&&this.currentControlIndex>0||e&&this.currentControlIndex<n.length-1){if(!t.target.classList.contains("e-combobox")&&t.target.classList.contains("e-control")&&!t.target.classList.contains("e-ribbon-last-item")){if(e)this.currentControlIndex++;else{var i=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+u._8);i&&(o=i.getAttribute("id")),this.currentControlIndex--}for(var s=n[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");){if((e&&this.currentControlIndex===n.length-1||!e&&0===this.currentControlIndex)&&n[this.currentControlIndex].closest(".e-ribbon-item").classList.contains("e-disabled")){this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus();break}e?this.currentControlIndex++:this.currentControlIndex--,s=n[this.currentControlIndex].closest(".e-ribbon-item")}if(n[parseInt(this.currentControlIndex.toString(),10)].focus(),"Classic"===this.activeLayout){if(r=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+u._8),e){var c=void 0;if(r&&(c=r.querySelector(".e-ribbon-launcher-icon")),c){var a=r.querySelectorAll(".e-ribbon-item");a[a.length-1].querySelector(".e-control").classList.add("e-ribbon-last-item")}}else if(r){var l=r.getAttribute("id");if(o!==l){var c=r.querySelector(".e-ribbon-launcher-icon");c&&n[parseInt((this.currentControlIndex+1).toString(),10)].classList.add("e-ribbon-first-item")}}}else n[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-first-item")?n[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-first-item"):n[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-last-item")&&n[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-last-item")}}else if("Classic"===this.activeLayout&&this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus(),"Simplified"===this.activeLayout){var p=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");e&&p&&!p.classList.contains("e-ribbon-hide")?p.focus():this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus()}if(t.target.classList.contains("e-ribbon-last-item")&&(e?(r=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+u._8),r.querySelector(".e-ribbon-launcher-icon").focus()):(this.currentControlIndex--,n[parseInt(this.currentControlIndex.toString(),10)].focus())),!e&&t.target.classList.contains("e-ribbon-first-item")){r=n[parseInt((this.currentControlIndex-1).toString(),10)].closest("."+u._8);var c=r.querySelector(".e-ribbon-launcher-icon");c&&r.querySelector(".e-ribbon-launcher-icon").focus()}if(t.target.classList.contains("e-ribbon-launcher-icon")&&(e?(this.currentControlIndex++,n[parseInt(this.currentControlIndex.toString(),10)].focus(),n[parseInt((this.currentControlIndex-1).toString(),10)].classList.contains("e-ribbon-last-item")&&n[parseInt((this.currentControlIndex-1).toString(),10)].classList.remove("e-ribbon-last-item")):(this.currentControlIndex,n[parseInt(this.currentControlIndex.toString(),10)].focus())),t.target.classList.contains("e-ribbon-collapse-btn"))if(e){this.currentControlIndex=0;for(var d=n[this.currentControlIndex].closest(".e-ribbon-item");d&&d.classList.contains("e-disabled");)this.currentControlIndex++,d=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}else{var p=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");if(p&&!p.classList.contains("e-ribbon-hide"))p.focus();else{this.currentControlIndex=n.length-1;for(var d=n[this.currentControlIndex].closest(".e-ribbon-item");d&&d.classList.contains("e-disabled");)this.currentControlIndex--,d=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}}"Simplified"===this.activeLayout&&t.target.classList.contains("e-ribbon-overall-of-btn")&&(e?this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus():(this.currentControlIndex=n.length-1,n[parseInt(this.currentControlIndex.toString(),10)].focus()))},e.prototype.resizeHandler=function(){var t=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+u.o);if(this.checkOverflow(this.selectedTab,t),this.scrollModule){var e=this.tabObj.element.querySelector("."+u.T);this.scrollModule.scrollStep=e.offsetWidth}},e.prototype.renderTabs=function(){this.tabsInternal=this.tabs.slice(),this.tabsInternal=this.checkID(this.tabsInternal,"tab",this.element.id),this.setProperties({tabs:this.tabsInternal},!0);var t=this.createElement("div",{id:this.element.id+u._32});this.element.appendChild(t),this.validateItemSize();var e=this.createTabItems(this.tabs);this.tabObj=new o.Tab({cssClass:u.V,selectedItem:this.selectedTab,overflowMode:"Popup",width:this.width,items:e,enableRtl:this.enableRtl,created:this.tabCreated.bind(this),selected:this.ribbonTabSelected.bind(this),selecting:this.ribbonTabSelecting.bind(this)}),this.tabObj.appendTo(t),this.element.style.setProperty(u.c,"0px"),this.element.style.setProperty(u._42,"0px");var i=t.querySelector(".e-toolbar");n.i(r.getComponent)(i,o.Toolbar).setProperties({width:"calc(100% - var(--fileMenuWidth) - var(--helpTemplateWidth))"}),this.element.classList[this.isMinimized?"add":"remove"](u._6)},e.prototype.minimize=function(t){var e=this;if(t!==this.isMinimized){var n={cancel:!1};this.trigger(t?"ribbonCollapsing":"ribbonExpanding",n,function(n){n.cancel||(e.setProperties({isMinimized:t},!0),e.element.classList.toggle(u._6,e.isMinimized),e.tabObj.element.querySelector(".e-content").style.display=t?"none":"block",t||e.refreshLayout())})}},e.prototype.toggleLayout=function(){this.setProperties({activeLayout:"Simplified"===this.activeLayout?"Classic":"Simplified"},!0),this.switchLayout()},e.prototype.tabCreated=function(){this.hideLayoutSwitcher||this.addExpandCollapse(),this.renderInitialTab(this.selectedTab)},e.prototype.ribbonTabSelected=function(t){this.isAddRemove=!1;var e=t.selectedItem.getAttribute("data-id"),r=n.i(a.e)(this.tabs,function(t){return t.id===e});r=-1===r?this.selectedTab:r;var o={previousIndex:this.selectedTab,selectedIndex:r};if(this.setProperties({selectedTab:r},!0),this.checkOverflow(r,t.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var i=this.overflowDDB.target,s=i.querySelector("."+u.W);s&&s.classList.remove(u.W);var c=i.querySelector("#"+e+u.M);c?(c.classList.add(u.W),this.overflowDDB.element.classList.remove(u.U)):this.overflowDDB.element.classList.add(u.U)}this.trigger("tabSelected",o)},e.prototype.checkOverflow=function(t,e){var n=e.closest("."+u._5),r=n.offsetWidth<e.offsetWidth;if(r&&!this.scrollModule){if("Classic"===this.activeLayout){var i=!1;i=this.checkGroupShrinking(t,n,e,!0),!i&&n.offsetWidth<e.offsetWidth&&(i=this.checkGroupShrinking(t,n,e,!1)),n.offsetWidth<e.offsetWidth&&this.createOverflowDropdown(t,n,e)}else this.checkSimplifiedItemShrinking(t,n,e),n.offsetWidth<e.offsetWidth&&this.createSimplfiedOverflow(n,e,t);n.offsetWidth<e.offsetWidth&&!this.scrollModule&&(this.scrollModule=new o.HScroll({enableRtl:this.enableRtl},this.tabObj.element.querySelector("."+u._5)))}else if(!r)if(this.destroyScroll(),"Classic"===this.activeLayout){var i=!1;i=this.removeOverflowDropdown(n,e,!1,t),!i&&n.offsetWidth>e.offsetWidth&&(i=this.checkGroupExpanding(t,n,e,!0)),!i&&n.offsetWidth>e.offsetWidth&&(i=this.checkGroupExpanding(t,n,e,!1))}else this.removeSimplfiedOverflow(n,e,t),n.offsetWidth>e.offsetWidth&&this.checkSimplifiedItemExpanding(t,n,e)},e.prototype.checkSimplifiedItemShrinking=function(t,e,n){for(var r=this.tabs[parseInt(t.toString(),10)],o=r.groups.length-1;o>=0;o--)for(var i=r.groups[parseInt(o.toString(),10)],c=e.querySelector("#"+i.id+u._40),a=0;a<i.collections.length&&e.offsetWidth<n.offsetWidth;a++)for(var l=i.collections[parseInt(a.toString(),10)],p=l.items.length;p>=1&&e.offsetWidth<n.offsetWidth;p--){var d=l.items[p-1];if(d.allowedSizes&s.c.Small&&d.allowedSizes&s.c.Medium&&d.activeSize===s.c.Medium&&d.displayOptions&s.b.Simplified){var f=c.querySelector("#"+d.id+u._40);if(f){var h=f.querySelector("#"+d.id);f.setAttribute("data-medium-width",n.offsetWidth.toString()),d.setProperties({activeSize:s.c.Small},!0),this.setItemSize(h,d)}}}},e.prototype.checkSimplifiedItemExpanding=function(t,e,n){for(var r=this.tabs[parseInt(t.toString(),10)],o=r.groups.length-1;o>=0;o--)for(var i=r.groups[parseInt(o.toString(),10)],c=e.querySelector("#"+i.id+u._40),a=0;a<i.collections.length&&e.offsetWidth>n.offsetWidth;a++)for(var l=i.collections[parseInt(a.toString(),10)],p=l.items.length;p>=1&&e.offsetWidth>n.offsetWidth;p--){var d=l.items[p-1];if(d.allowedSizes&s.c.Small&&d.allowedSizes&s.c.Medium&&d.activeSize===s.c.Small&&d.displayOptions&s.b.Simplified){var f=c.querySelector("#"+d.id+u._40);if(f){var h=f.getAttribute("data-medium-width"),b=h?parseInt(h,10):null;if(b&&e.offsetWidth>b){f.removeAttribute("data-medium-width");var m=f.querySelector("#"+d.id);d.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(m,d)}}}}},e.prototype.createSimplfiedOverflow=function(t,e,o){for(var i=this.getGroupResizeOrder(!0,o),c=0;c<i.length&&t.offsetWidth<e.offsetWidth;c++){for(var a=i[parseInt(c.toString(),10)],l=t.querySelector("#"+a.id),p=l.querySelector("#"+a.id+u._40),d=a.collections.length;d>=1&&t.offsetWidth<e.offsetWidth;d--)for(var f=a.collections[parseInt((d-1).toString(),10)],h=l.querySelector("#"+f.id),b=f.items.length;b>=1&&t.offsetWidth<e.offsetWidth;b--){var m=f.items[b-1],v=h.querySelector("#"+m.id+u._40);if((m.displayOptions===s.b.Auto||m.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(v)){if(v.setAttribute("data-simplified-width",e.offsetWidth.toString()),this.createOverflowPopup(m,o,a.enableGroupOverflow,a.id,a.header,v,p,!0),m.activeSize===s.c.Small){var y=v.querySelector("#"+m.id);m.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(y,m)}m.type!==s.f.DropDown&&m.type!==s.f.SplitButton&&m.type!==s.f.GroupButton||this.updatePopupItems(m,v,a.enableGroupOverflow,!0)}}a.enableGroupOverflow||l.querySelector("."+u._19)||l.classList.add("e-ribbon-emptyCollection")}},e.prototype.updatePopupItems=function(t,e,o,i){var c=n.i(r.getComponent)(e.querySelector("#"+t.id),t.type===s.f.DropDown||t.type===s.f.GroupButton?l.DropDownButton:l.SplitButton),a=c.dropDown,u=(o&&i)===this.enableRtl;a&&(a.setProperties({position:{X:u?"left":"right",Y:i?"top":"bottom"}},!0),i?c.beforeOpen=function(){u&&(a.element.style.setProperty("visibility","hidden"),a.element.style.setProperty("display","block"),a.setProperties({offsetX:-1*a.element.offsetWidth}),a.element.style.removeProperty("display"),a.element.style.removeProperty("visibility"))}:(a.setProperties({offsetX:0},!0),c.beforeOpen=null))},e.prototype.removeSimplfiedOverflow=function(t,e,o,i){void 0===i&&(i=!1);for(var c=this.getGroupResizeOrder(!1,o),a=!0,p=0;p<c.length&&a;p++){var d=c[parseInt(p.toString(),10)],f=void 0,h=void 0;if(d.enableGroupOverflow){var b=t.querySelector("#"+d.id+u.r);b&&(f=n.i(r.getInstance)(b,l.DropDownButton),h=f.target)}else f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null;for(var m=0;m<d.collections.length&&a;m++)for(var v=d.collections[parseInt(m.toString(),10)],y=0;y<v.items.length&&a&&!i&&t.offsetWidth>e.offsetWidth;y++){var g=v.items[parseInt(y.toString(),10)],_=void 0;if(h&&(_=h.querySelector("#"+g.id+u._40)),(g.displayOptions===s.b.Auto||g.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(_)){var S=parseInt(_.getAttribute("data-simplified-width"),10);if(!i&&t.offsetWidth<S){a=!1;break}var I=t.querySelector("#"+v.id);g.type!==s.f.DropDown&&g.type!==s.f.SplitButton&&g.type!==s.f.GroupButton||this.updatePopupItems(g,_,d.enableGroupOverflow,!1),I.append(_),this.removeOverflowEvent(g,_),g.allowedSizes&s.c.Small&&(g.setProperties({activeSize:s.c.Small},!0),this.setItemSize(_.querySelector("#"+g.id),g))}}var C=t.querySelector("#"+d.id),B=C.querySelector("."+u._19);if(C.classList.contains("e-ribbon-emptyCollection")&&null!==B&&C.classList.remove("e-ribbon-emptyCollection"),f)if(d.enableGroupOverflow)0===h.childElementCount&&this.removeOverflowButton(f);else{var O=h.querySelector("#"+d.id+u._40);O&&1===O.childElementCount&&O.remove();var w=h.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+u.M);w&&0===w.childElementCount&&(w.remove(),this.overflowDDB.element.classList.add(u.U))}}if(this.overflowDDB){0===this.overflowDDB.target.childElementCount&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)}},e.prototype.createOverflowPopup=function(t,e,o,i,s,c,a,p){var d,f=this.tabObj.items[parseInt(e.toString(),10)].content,h=f.querySelector("#"+i);if(o){var b=a.querySelector("#"+i+u.r);b?d=n.i(r.getInstance)(b,l.DropDownButton):(d=this.addOverflowButton(i+u.r),d.element.classList.add(u._2),a.appendChild(d.element));var m=d.target;h&&h.classList.contains("e-disabled")&&m.classList.add("e-disabled"),h&&h.classList.contains("e-hidden")&&m.classList.add("e-hidden"),p?m.insertBefore(c,m.querySelector("."+u._19)):m.append(c)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(u.U);var v=this.overflowDDB.target,y=v.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+u.M);if(y){var g=v.querySelector("#"+i+u._40);g||(g=this.createGroupContainer(i,s),h&&h.classList.contains("e-disabled")&&g.classList.add("e-disabled"),y.append(g)),p?g.insertBefore(c,g.querySelector("."+u._19)):g.append(c)}else this.createOfTabContainer(i,s,c,e)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+u._37),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(u._1),this.createOfTabContainer(i,s,c,e);d=this.overflowDDB}null!==c&&this.addOverflowEvents(t,c,d)},e.prototype.addOverflowEvents=function(t,e,n){switch(t.type){case"Button":this.ribbonButtonModule.addOverFlowEvents(t,e,n);break;case"DropDown":this.ribbonDropDownModule.addOverFlowEvents(t,e,n);break;case"SplitButton":this.ribbonSplitButtonModule.addOverFlowEvents(t,e,n);break;case"CheckBox":this.ribbonCheckBoxModule.addOverFlowEvents(t,e,n);break;case"ColorPicker":this.ribbonColorPickerModule.addOverFlowEvents(t,e,n);break;case"ComboBox":this.ribbonComboBoxModule.addOverFlowEvents(t,e,n);break;case"GroupButton":if("Simplified"===this.activeLayout){this.ribbonGroupButtonModule.addOverFlowEvents(t,e);break}}},e.prototype.createOfTabContainer=function(t,e,n,r){var o=this.createElement("div",{id:this.tabs[parseInt(r.toString(),10)].id+u.M,className:u._9});this.overflowDDB.target.append(o);var i=this.createGroupContainer(t,e);i.append(n),o.append(i),r===this.selectedTab&&o.classList.add(u.W);var s=document.querySelector("#"+t);s&&(s.classList.contains("e-disabled")&&i.classList.add("e-disabled"),s.classList.contains("e-hidden")&&i.classList.add("e-hidden"))},e.prototype.checkGroupShrinking=function(t,e,n,r){for(var o=!0,i=!1,s=this.tabs[parseInt(t.toString(),10)],c=s.groups.length-1;o&&c>=0;c--)i=r?this.checkLargeToMedium(t,s,c,e,n):this.checkMediumToSmall(t,s,c,e,n),o=!i&&e.offsetWidth<n.offsetWidth;return i},e.prototype.checkValidCollectionLength=function(t){for(var e=0,n=0;n<t.length;n++){for(var r=t[parseInt(n.toString(),10)].items,o=0;o<r.length;o++)if(r[parseInt(o.toString(),10)].displayOptions&s.b.Classic){e++;break}if(e>1)return!1}return 1===e},e.prototype.checkClassicCollection=function(t,e,n){for(var r=t[parseInt(e.toString(),10)].items,o=0;o<r.length;o++)if(r[parseInt(o.toString(),10)].displayOptions&s.b.Classic)return e;return e=n?e+1:e-1,n?e===t.length?e:this.checkClassicCollection(t,e,n):e<0?e:this.checkClassicCollection(t,e,n)},e.prototype.checkClassicItem=function(t,e,n){return t[parseInt(e.toString(),10)].displayOptions&s.b.Classic?e:(e=n?e+1:e-1,n?e===t.length?e:this.checkClassicItem(t,e,n):e<0?e:this.checkClassicItem(t,e,n))},e.prototype.checkLargeToMedium=function(t,e,n,r,o,i){var c=this;void 0===i&&(i=!1);var a=e.groups[parseInt(n.toString(),10)];if(a.isCollapsed&&!i)return!1;var l=function(t){return 1===t.items.length&&p(t.items[0])},p=function(t){return t.allowedSizes&s.c.Medium&&t.activeSize===s.c.Large},d=function(t,e,n,r){var s=c.createElement("div",{className:"e-ribbon-shrink"+u.F+u._20,id:t+"_shrink_container"+n,attrs:{"data-start":n.toString(),"data-end":r.toString()}});return e.parentElement.insertBefore(s,e),i||s.setAttribute("data-large-width",o.offsetWidth.toString()),s},f=function(e,r){for(var a=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[0],l=o.querySelector("#"+a.items[parseInt(e.toString(),10)].id+u._40),p=i?o.querySelector("#"+a.id+"_shrink_container"+e):d(a.id,l,e,r),f=e;f<=r;f++){var h=a.items[parseInt(f.toString(),10)];if(h.displayOptions&s.b.Classic){var b=o.querySelector("#"+h.id+u._40);p.appendChild(b),h.setProperties({activeSize:s.c.Medium},!0),h.type===s.f.GroupButton&&"Classic"===c.activeLayout?c.setItemSize(b.querySelector("#"+h.id+u.A),h):c.setItemSize(b.querySelector("#"+h.id),h)}}},h=function(e,r){for(var a=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)],l=o.querySelector("#"+a.collections[parseInt(e.toString(),10)].id),p=i?o.querySelector("#"+a.id+"_shrink_container"+e):d(a.id,l,e,r),f=e;f<=r;f++){var h=a.collections[parseInt(f.toString(),10)],b=o.querySelector("#"+h.id);p.appendChild(b),h.items[0].setProperties({activeSize:s.c.Medium},!0),h.items[0].type===s.f.GroupButton&&"Classic"===c.activeLayout?c.setItemSize(b.querySelector("#"+h.items[0].id+u.A),h.items[0]):c.setItemSize(b.querySelector("#"+h.items[0].id),h.items[0])}};if(a.orientation===s.e.Column)for(var b=a.collections.length-1;b>0;b--){b=this.checkClassicCollection(a.collections,b,!1);var m=b-1;if(m>=0&&l(a.collections[parseInt(b.toString(),10)]))if((m=this.checkClassicCollection(a.collections,m,!1))>=0&&l(a.collections[parseInt(m.toString(),10)])){var v=m-1;if(v>=0&&(v=this.checkClassicCollection(a.collections,v,!1)),v>=0&&l(a.collections[parseInt(v.toString(),10)])?h(v,b):h(m,b),b=v,!i&&r.offsetWidth>o.offsetWidth)return!0}else b=m}else if(this.checkValidCollectionLength(a.collections))for(var y=a.collections[0],b=y.items.length-1;b>0;b--){b=this.checkClassicItem(y.items,b,!1);var m=b-1;if(m>=0&&p(y.items[parseInt(b.toString(),10)]))if((m=this.checkClassicItem(y.items,m,!1))>=0&&p(y.items[parseInt(m.toString(),10)])){var v=m-1;if(v>=0&&(v=this.checkClassicItem(y.items,v,!1)),v>=0&&p(y.items[parseInt(v.toString(),10)])?f(v,b):f(m,b),b=v,!i&&r.offsetWidth>o.offsetWidth)return!0}else b=m}return!1},e.prototype.checkMediumToSmall=function(t,e,n,r,o,i){var c=this;void 0===i&&(i=!1);var a=e.groups[parseInt(n.toString(),10)];if(a.isCollapsed&&!i)return!1;var l=a.orientation,p=o.querySelector("#"+a.id),d=p.querySelectorAll(".e-ribbon-shrink"),f=function(t){return t.allowedSizes&s.c.Small&&t.activeSize===s.c.Medium},h=function(e,r,i,a){void 0===a&&(a=null);var u=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],l=function(t){var e=u.items[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=o.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Small},!0),e.type===s.f.GroupButton&&(n=o.querySelector("#"+e.id+"_grpbtn")),c.setItemSize(n,e)}};l(r),a&&l(a),l(i)},b=function(e,r,a,l){void 0===l&&(l=null);var p=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)];i||d[parseInt(e.toString(),10)].setAttribute("data-medium-width",o.offsetWidth.toString());var f=function(t){var e=p.collections[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=o.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.c.Small},!0),e.items[0].type===s.f.GroupButton&&(n=o.querySelector("#"+e.items[0].id+u.A)),c.setItemSize(n,e.items[0])}};f(r),l&&f(l),f(a)},m=function(t){if(!i){o.querySelector("#"+t).setAttribute("data-medium-width",o.offsetWidth.toString())}};if(l===s.e.Column){if(d.length>0)for(var v=d.length-1;v>=0;v--){var y=parseInt(d[parseInt(v.toString(),10)].getAttribute("data-start"),10),g=parseInt(d[parseInt(v.toString(),10)].getAttribute("data-end"),10),_=this.checkClassicCollection(a.collections,y+1,!1);if(f(a.collections[parseInt(y.toString(),10)].items[0])&&f(a.collections[parseInt(_.toString(),10)].items[0])&&(g===_?b(v,y,g):f(a.collections[parseInt(g.toString(),10)].items[0])&&b(v,y,g,_),!i&&r.offsetWidth>o.offsetWidth))return!0}for(var v=a.collections.length-1;v>=0;v--){for(var S=a.collections[parseInt(v.toString(),10)],I=[],C=0;C<S.items.length;C++)S.items[parseInt(C.toString(),10)].displayOptions&s.b.Classic&&I.push(C);if(I.length>1&&f(S.items[I[0]])&&f(S.items[I[1]])&&(2===I.length?(m(S.id),h(v,I[0],I[1])):f(S.items[I[2]])&&(m(S.id),h(v,I[0],I[2],I[1])),!i&&r.offsetWidth>o.offsetWidth))return!0}}else if(this.checkValidCollectionLength(a.collections)){if(d.length>0)for(var v=d.length-1;v>=0;v--){var B=d[parseInt(v.toString(),10)],y=parseInt(B.getAttribute("data-start"),10),g=parseInt(B.getAttribute("data-end"),10),S=a.collections[0],_=this.checkClassicItem(S.items,y+1,!1);if(f(a.collections[0].items[parseInt(y.toString(),10)])&&f(a.collections[0].items[parseInt(_.toString(),10)])&&(g===_?(m(B.id),h(0,y,g)):f(a.collections[0].items[parseInt(g.toString(),10)])&&(m(B.id),h(0,y,g,_)),!i&&r.offsetWidth>o.offsetWidth))return!0}}else for(var v=a.collections.length-1;v>=0;v--)for(var S=a.collections[parseInt(v.toString(),10)],_=S.items.length-1;_>=0;_--)if(!((_=this.checkClassicItem(S.items,_,!1))<0)){var O=S.items[parseInt(_.toString(),10)];if(f(O)&&(m(O.type!==s.f.GroupButton?O.id:O.id+u.A),h(v,_,_),!i&&r.offsetWidth>o.offsetWidth))return!0}return!1},e.prototype.checkGroupExpanding=function(t,e,n,r){for(var o=!1,i=this.tabs[parseInt(t.toString(),10)],s=0;!o&&s<i.groups.length;s++)o=r?this.checkSmallToMedium(t,i,s,e,n,!1,!0):this.checkMediumToLarge(t,i,s,e,n,!1,!0);return o},e.prototype.checkSmallToMedium=function(t,e,n,r,o,i,c){var a=this,l=e.groups[parseInt(n.toString(),10)],p=l.orientation,d=o.querySelector("#"+l.id),f=d.querySelectorAll(".e-ribbon-shrink"),h=function(e,r,o){var i=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],c=i.items[parseInt(r.toString(),10)];if(c.displayOptions&s.b.Classic){var l=o.id===c.id?o:o.querySelector("#"+c.id);c.setProperties({activeSize:s.c.Medium},!0),c.type===s.f.GroupButton&&(l=document.querySelector("#"+c.id+u.A)),a.setItemSize(l,c)}},b=function(e){var r=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections,i=r[parseInt(e.toString(),10)].items[0];if(i.displayOptions&s.b.Classic){var c=o.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id);r[parseInt(e.toString(),10)].items[0].setProperties({activeSize:s.c.Medium},!0),i.type===s.f.GroupButton&&(c=o.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id+u.A)),a.setItemSize(c,r[parseInt(e.toString(),10)].items[0])}};if(p===s.e.Row){if(!this.checkValidCollectionLength(l.collections))for(var m=0;m<l.collections.length;m++)for(var v=l.collections[parseInt(m.toString(),10)],y=0;y<v.items.length;y++)if((y=this.checkClassicItem(v.items,y,!0))!==v.items.length){var g=v.items[parseInt(y.toString(),10)];if(function(t){return t.allowedSizes&s.c.Medium&&t.activeSize===s.c.Small}(g)){var _=o.querySelector("#"+g.id);"GroupButton"===g.type&&(_=o.querySelector("#"+g.id+u.A));var S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(i||r.offsetWidth>I))h(m,y,_),i&&!c||_.removeAttribute("data-medium-width");else if(I)return!0}}}else for(var m=0;m<l.collections.length;m++)if(l.collections[parseInt(m.toString(),10)].items.length>1){for(var v=l.collections[parseInt(m.toString(),10)],_=o.querySelector("#"+v.id),S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null,C=[],B=0;B<v.items.length;B++)v.items[parseInt(B.toString(),10)].displayOptions&s.b.Classic&&C.push(B);if(C.length>1&&I&&(i||r.offsetWidth>I))h(m,C[0],_),h(m,C[1],_),3===C.length&&h(m,C[2],_),i&&!c||_.removeAttribute("data-medium-width");else if(I)return!0}if(f.length>0)for(var m=0;m<f.length;m++){var O=f[parseInt(m.toString(),10)],S=O.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(i||r.offsetWidth>I)){var w=parseInt(O.getAttribute("data-start"),10),P=parseInt(O.getAttribute("data-end"),10);if(p===s.e.Row){var v=l.collections[0],y=this.checkClassicItem(v.items,w+1,!0);h(0,w,O),h(0,y,O),y!==P&&h(0,P,O)}else{var D=this.checkClassicCollection(l.collections,w+1,!0);b(w),b(D),D!==P&&b(P)}i&&!c||O.removeAttribute("data-medium-width")}else if(I)return!0}return!1},e.prototype.checkMediumToLarge=function(t,e,o,i,c,a,l){var p=this,d=e.groups[parseInt(o.toString(),10)],f=d.orientation,h=c.querySelector("#"+d.id),b=h.querySelectorAll(".e-ribbon-shrink");if(0===b.length)return!1;for(var m=function(e,i,c,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(o.toString(),10)].collections[0].items,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=c.querySelector("#"+e.id+u._40),r=n.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Large},!0),e.type===s.f.GroupButton&&(r=n.querySelector("#"+e.id+u.A)),p.setItemSize(r,e),c.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(i),a&&!l||n.i(r.remove)(c)},v=function(e,i,c,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(o.toString(),10)].collections,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=c.querySelector("#"+e.id),r=n.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.c.Large},!0),e.items[0].type===s.f.GroupButton&&(r=n.querySelector("#"+e.items[0].id+u.A)),p.setItemSize(r,e.items[0]),c.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(i),a&&!l||n.i(r.remove)(c)},y=0;y<b.length;y++){var g=b[parseInt(y.toString(),10)],_=g.getAttribute("data-large-width"),S=_?parseInt(_,10):null;if(S&&(a||i.offsetWidth>S)){var I=parseInt(g.getAttribute("data-start"),10),C=parseInt(g.getAttribute("data-end"),10);if(f===s.e.Row){var B=d.collections[0],O=this.checkClassicItem(B.items,I+1,!0);O===C?m(I,C,g):m(I,C,g,O)}else{var w=this.checkClassicCollection(d.collections,I+1,!0);w===C?v(I,C,g):v(I,C,g,w)}a&&!l||g.removeAttribute("data-large-width")}else if(S)return!0}return!1},e.prototype.handleContentSize=function(t,e){var n=t.closest("."+u._11);e?n.classList.add(u._25):n.classList.remove(u._25)},e.prototype.setItemSize=function(t,e){if(t){var o=t.closest("."+u._19);e.type===s.f.Button?this.ribbonButtonModule.updateButtonSize(t,e):e.type===s.f.DropDown?this.ribbonDropDownModule.updateDropDownSize(t,e):e.type===s.f.SplitButton?this.ribbonSplitButtonModule.updateSplitButtonSize(t,e):e.type===s.f.Template?(n.i(r.remove)(t),this.createTemplateContent(e,o)):e.type===s.f.GroupButton&&this.ribbonGroupButtonModule.updateGroupButtonSize(t,e),o.classList.remove(u._25,u._22,u._23,u._24),e.activeSize===s.c.Large?o.classList.add(u._22,u._25):o.classList.add(e.activeSize===s.c.Medium?u._23:u._24)}},e.prototype.createOverflowDropdown=function(t,e,r){var o=this.getGroupResizeOrder(!0,t);if(0!==o.length)for(var i=this,s=0;s<o.length&&e.offsetWidth<r.offsetWidth;s++)!function(s){var c=o[parseInt(s.toString(),10)],l=i.tabObj.element.querySelector("#"+c.id);l.setAttribute("data-expanded-width",r.offsetWidth.toString());var p=l.querySelector("#"+c.id+u._40),d=i.createElement("div",{className:u._14+u.F+u._22,id:c.id+u.M+u._40});l.insertBefore(d,p);var f=n.i(a.e)(i.tabs[parseInt(t.toString(),10)].groups,function(t){return t.id===c.id}),h=i.tabs[parseInt(t.toString(),10)];i.checkSmallToMedium(t,h,f,e,r,!0,!1),i.checkMediumToLarge(t,h,f,e,r,!0,!1);var b=i.ribbonDropDownModule.createOverFlowDropDown(c.id,c.header,c.groupIconCss,p,d,i.enableRtl);i.tabs[parseInt(t.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!0},!0);for(var m=0;m<c.collections.length;m++)for(var v=c.collections[parseInt(m.toString(),10)],y=p.querySelector("#"+v.id),g=0;g<v.items.length;g++){var _=v.items[parseInt(g.toString(),10)],S=y.querySelector("#"+_.id+u._40);null!==S&&(i.handleContentSize(S),i.addOverflowEvents(_,S,b))}}(s)},e.prototype.removeOverflowDropdown=function(t,e,r,o){void 0===r&&(r=!1);var i=this.getGroupResizeOrder(!1,o);if(0===i.length)return!1;for(var s=this,c=0;c<i.length;c++){var l=function(c){var l=i[parseInt(c.toString(),10)],p=s.tabObj.element.querySelector("#"+l.id);if(!p)return"break";var d=parseInt(p.getAttribute("data-expanded-width"),10);if(!r&&t.offsetWidth<d)return{value:!0};s.removeDropdown(l.id);var f=n.i(a.e)(s.tabs[parseInt(o.toString(),10)].groups,function(t){return t.id===l.id});s.tabs[parseInt(o.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!1},!0);var h=s.tabs[parseInt(o.toString(),10)];s.checkLargeToMedium(o,h,f,t,e,!0),s.checkMediumToSmall(o,h,f,t,e,!0);for(var b=0;b<l.collections.length;b++)for(var m=l.collections[parseInt(b.toString(),10)],v=p.querySelector("#"+m.id),y=0;y<m.items.length;y++){var g=m.items[parseInt(y.toString(),10)],_=v.querySelector("#"+g.id+u._40);null!==_&&(s.handleContentSize(_,!0),s.removeOverflowEvent(g,_))}}(c);if("object"==typeof l)return l.value;if("break"===l)break}return!1},e.prototype.removeDropdown=function(t){var e=this.tabObj.element.querySelector("#"+t+u.M+u.N);if(e){var o=e.parentElement;this.ribbonDropDownModule.removeOverFlowDropDown(e),n.i(r.remove)(o)}},e.prototype.getGroupResizeOrder=function(t,e){var o=this,i=this.tabs[parseInt(e.toString(),10)].groups;return i=i.filter(function(e){return"Classic"!==o.activeLayout||(n.i(r.isUndefined)(e.isCollapsible)||e.isCollapsible)&&(t&&n.i(r.isUndefined)(e.isCollapsed)||!n.i(r.isUndefined)(e.isCollapsed)&&t!==e.isCollapsed)}),i.sort(function(t,e){return t.priority-e.priority}),t?i.reverse():i},e.prototype.destroyScroll=function(){this.scrollModule&&(this.scrollModule.destroy(),this.scrollModule=null)},e.prototype.clearOverflowDropDown=function(t){var e=this.tabObj.element.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+u.o);if(e){var n=e.closest("."+u._5);"Simplified"===this.activeLayout?this.removeSimplfiedOverflow(e,n,t,!0):this.removeOverflowDropdown(e,n,!0,t)}},e.prototype.ribbonTabSelecting=function(t){var e=this;this.currentControlIndex=0;var o=t.selectingItem.getAttribute("data-id"),i=t.previousItem.getAttribute("data-id"),s=n.i(a.e)(this.tabs,function(t){return t.id===o}),c=n.i(a.e)(this.tabs,function(t){return t.id===i});s=-1===s?this.selectedTab:s;var l={cancel:t.cancel,isInteracted:t.isInteracted,previousIndex:c,selectedIndex:s};this.trigger("tabSelecting",l,function(t){if(!t.cancel){e.destroyScroll(),e.isAddRemove||-1===c||e.clearOverflowDropDown(c);var o=e.tabObj.items[parseInt(s.toString(),10)].content;if(!o.querySelector("."+u._7)&&0!==e.tabs[parseInt(s.toString(),10)].groups.length){var i=e.createGroups(e.tabs[parseInt(s.toString(),10)].groups,s);n.i(r.append)(i,o)}}})},e.prototype.createTabItems=function(t){for(var e=this,n=[],r=0;r<t.length;r++){var o=t[parseInt(r.toString(),10)],i=this.createElement("span",{innerHTML:o.header,id:o.id+u._38});i.onclick=function(){e.minimize(!1)},i.ondblclick=function(){e.minimize(!0)};var s={header:{text:i},id:o.id,cssClass:o.cssClass},c=this.createElement("div",{className:s.cssClass,id:o.id+u.o});c.classList.add(u.X),s.content=c,n.push(s)}return n},e.prototype.renderInitialTab=function(t){var e=this.createGroups(this.tabs[parseInt(t.toString(),10)].groups,t),o=this.tabObj.items[parseInt(t.toString(),10)].content;n.i(r.append)(e,o),"Simplified"===this.activeLayout&&this.element.classList.add(u._30);var i=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+u.o);this.checkOverflow(this.selectedTab,i)},e.prototype.addOverflowButton=function(t){var e=this,o=this.createElement("button",{id:t}),i=this.createElement("div",{className:u._3,attrs:{tabindex:"0"}}),s=new l.DropDownButton({iconCss:u.Q,cssClass:u._27+u.F+u.O,target:i,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeClose:function(t){(t.event?n.i(r.closest)(t.event.target,"."+u.L):null)&&(t.cancel=!0)}},o);this.element.classList.add(u._4),n.i(a.d)(i,this);var c;return o.onkeydown=o.onclick=function(){e.itemIndex=-1,c=!o.classList.contains("e-ribbon-overall-of-btn")},i.onkeydown=function(t){return e.upDownKeyHandler(t,i,c),e},s},e.prototype.upDownKeyHandler=function(t,e,o){var i;if(o)i=e.getElementsByClassName("e-ribbon-item");else{i=e.querySelector(".e-ribbon-of-tab.e-ribbon-active").getElementsByClassName("e-ribbon-item")}var s,c=i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control").classList.contains("e-combobox")?i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;(null===c||"Tab"===t.key||this.itemIndex<0)&&("ArrowDown"===t.key||!t.shiftKey&&"Tab"===t.key?!this.itemIndex&&0!==this.itemIndex||this.itemIndex<0||this.itemIndex===i.length-1?(this.itemIndex=0,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0),c&&"Tab"===t.key&&(t.preventDefault(),i[this.itemIndex].querySelector(".e-control").focus())):this.itemIndex<i.length-1&&this.itemIndex>=0&&(this.itemIndex++,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0)):("ArrowUp"===t.key||t.shiftKey&&"Tab"===t.key)&&(null!==c&&"Tab"!==t.key||(this.itemIndex&&-1!==this.itemIndex?this.itemIndex<=i.length-1&&this.itemIndex>0&&(this.itemIndex--,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1)):(this.itemIndex=i.length-1,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1),c&&t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),i[this.itemIndex].querySelector(".e-control").focus())))),e.setAttribute("index",this.itemIndex.toString()));var a=parseInt(e.getAttribute("index"),10),u=i[parseInt(a.toString(),10)]?i[parseInt(a.toString(),10)].querySelector(".e-control").getAttribute("data-control"):null;if(("ArrowDown"===t.key||"ArrowUp"===t.key||" "===t.key||"Tab"===t.key)&&("ColorPicker"===u?("Tab"===t.key&&t.preventDefault(),i[parseInt(a.toString(),10)].querySelector(".e-split-colorpicker").focus()):("Tab"===t.key&&t.preventDefault(),i[parseInt(a.toString(),10)].querySelector(".e-control").focus())," "===t.key&&"CheckBox"===u)){var l=i[parseInt(a.toString(),10)].querySelector(".e-control"),d=n.i(r.getComponent)(l,p.CheckBox);this.itemIndex=-1,d.click()}"SplitButton"!==u||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||("ArrowRight"===t.key&&(this.enableRtl?i[parseInt(a.toString(),10)].querySelector(".e-control").focus():i[parseInt(a.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===t.key&&(this.enableRtl?i[parseInt(a.toString(),10)].querySelector(".e-dropdown-btn").focus():i[parseInt(a.toString(),10)].querySelector(".e-control").focus())),"Enter"===t.key&&(this.itemIndex=-1)},e.prototype.findDisabledItem=function(t,e,n){for(;t&&t.classList.contains("e-disabled");)n?this.itemIndex===e.length-1&&e[this.itemIndex].closest(".e-ribbon-item").classList.contains("e-disabled")&&(this.itemIndex=-1):0===this.itemIndex&&e[this.itemIndex].closest(".e-ribbon-item").classList.contains("e-disabled")&&(this.itemIndex=e.length),n?this.itemIndex++:this.itemIndex--,t=e[this.itemIndex].closest(".e-ribbon-item")},e.prototype.removeOverflowButton=function(t){if(t){var e=t.element;n.i(a.n)(t.target),t.destroy(),e.remove()}},e.prototype.removeOverflowEvent=function(t,e){if(e)switch(t.type){case"Button":this.ribbonButtonModule.removeOverFlowEvents(t,e);break;case"DropDown":this.ribbonDropDownModule.removeOverFlowEvents(t,e);break;case"SplitButton":this.ribbonSplitButtonModule.removeOverFlowEvents(t,e);break;case"CheckBox":this.ribbonCheckBoxModule.removeOverFlowEvents(t,e);break;case"ColorPicker":this.ribbonColorPickerModule.removeOverFlowEvents(t,e);break;case"ComboBox":this.ribbonComboBoxModule.removeOverFlowEvents(t,e);break;case"GroupButton":this.ribbonGroupButtonModule.removeOverFlowEvents(t,e)}},e.prototype.createGroupContainer=function(t,e){var n=this.createElement("div",{className:u._10,id:t+u._40}),r=this.createElement("div",{className:u._13,id:t+u._38,innerHTML:e});return n.append(r),n},e.prototype.addExpandCollapse=function(){var t=this;this.collapseButton=this.createElement("span",{className:u.Y+u.F+u.P,id:this.tabObj.element.id+u._36,attrs:{tabindex:"0",type:"button","aria-label":"Layout Switcher",role:"button"}}),this.collapseButton.onclick=function(){t.toggleLayout()},this.collapseButton.onkeydown=function(e){"Enter"===e.key&&t.toggleLayout()},this.element.classList.add(u._0),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(u.Z),this.tabObj.element.appendChild(this.collapseButton)},e.prototype.removeExpandCollapse=function(){var t=this,e=n.i(a.e)(this.tooltipData,function(e){return e.id===t.collapseButton.id});-1!==e&&this.tooltipData.splice(e,1),this.element.classList.remove(u._0),n.i(r.remove)(this.tabObj.element.querySelector("."+u.Y)),this.collapseButton=null},e.prototype.reRenderTabs=function(t){this.destroyScroll(),this.checkID(this.tabs,"tab",this.element.id);for(var e in t){for(var o=parseInt(e,10),i=t[parseInt(o.toString(),10)],s=!1,c=0;c<this.tabObj.items.length;c++)if(this.tabs[parseInt(o.toString(),10)].id===this.tabObj.items[parseInt(c.toString(),10)].id){s=!0;break}if(!s){this.destroyTabItems(this.tabsInternal),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var a=this.createTabItems(this.tabs);this.selectedTab>=this.tabs.length&&(this.selectedTab=this.tabs.length-1),this.tabObj.setProperties({items:a,selectedItem:this.selectedTab});break}var l=this.tabs[parseInt(o.toString(),10)].groups,p=this.tabObj.element,d=this.tabs[parseInt(o.toString(),10)];d.setProperties(i,!0),this.setProperties({groups:this.checkID(d.groups,"group",d.id)},!0),this.validateItemSize();var f=this.tabObj.items[parseInt(o.toString(),10)].content;if(l&&(i.header&&(this.tabObj.items[parseInt(o.toString(),10)].header.text.innerText=d.header),i.cssClass&&(this.tabObj.items[parseInt(o.toString(),10)].cssClass&&(f.classList.remove(this.tabObj.items[parseInt(o.toString(),10)].cssClass),p.querySelector(".e-active").classList.remove(this.tabObj.items[parseInt(o.toString(),10)].cssClass)),f.classList.add(d.cssClass),p.querySelector(".e-active").classList.add(d.cssClass)),i.groups)){for(var h=0,b=l;h<b.length;h++){for(var m=b[h],v=m.isCollapsed?f.querySelector("#"+m.id+u.M+u.N):null,y=0,g=m.collections;y<g.length;y++)for(var _=g[y],S=0,I=_.items;S<I.length;S++){var C=I[S],B=v?this.ribbonDropDownModule.getDDBItemElement(v,C.id):f.querySelector("#"+C.id);B&&this.destroyFunction(C,B)}v&&this.ribbonDropDownModule.removeOverFlowDropDown(v)}f.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()});var O=this.createGroups(d.groups,o);n.i(r.append)(O,f)}}var w=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+u.o);this.checkOverflow(this.selectedTab,w)},e.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(u.Z,"Simplified"===this.activeLayout),this.element.classList.toggle(u._30,"Simplified"===this.activeLayout);for(var t=0;t<=this.tabs.length-1;t++){var e=t;if(""!==this.tabObj.items[parseInt(e.toString(),10)].content.innerHTML){var o=this.tabs[parseInt(e.toString(),10)],i=this.tabs[parseInt(e.toString(),10)].groups,c=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+u.o),a=c.closest("."+u._5);if("Simplified"===this.activeLayout)for(var p=0;p<i.length;p++){var d=i[parseInt(p.toString(),10)],f=i[parseInt(p.toString(),10)].orientation;d.isCollapsed?(d.setProperties({isCollapsed:!1},!0),this.removeDropdown(d.id)):(this.checkSmallToMedium(e,o,p,a,c,!0,!1),this.checkMediumToLarge(e,o,p,a,c,!0,!1));for(var h=a.querySelector("#"+d.id),b=h.querySelector("#"+d.id+u._40),m=b.querySelectorAll(".e-ribbon-shrink"),v=0;v<m.length;v++)m[parseInt(v.toString(),10)].remove();var y=b.querySelector("#"+d.id+u._38);y.remove();var g=b.querySelector("#"+d.id+u.o);g.classList.replace(u._20,u._21),g.classList.remove(u._25);for(var _=0;_<d.collections.length;_++){var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);I.classList.replace(u._20,u._21);for(var C=0;C<S.items.length;C++){for(var B=S.items,O=S.items[parseInt(C.toString(),10)],w=!0;w&&O.displayOptions===s.b.Classic;){C++;var P=b.querySelector("#"+O.id+u._40),D=P.querySelector("#"+O.id);this.destroyFunction(O,D),P.remove(),C<B.length?O=B[parseInt(C.toString(),10)]:w=!1}if(!w)break;var L=O.allowedSizes===s.c.Large||O.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;L=!(O.displayOptions&s.b.Simplified)&&O.displayOptions&s.b.Overflow?s.c.Medium:L;var k=void 0;if(O.displayOptions&s.b.Classic){if(k=b.querySelector("#"+O.id+u._40),O.displayOptions===(s.b.Classic|s.b.Overflow)&&(this.createOverflowPopup(O,e,d.enableGroupOverflow,d.id,d.header,k,b),O.type!==s.f.DropDown&&O.type!==s.f.SplitButton&&O.type!==s.f.GroupButton||this.updatePopupItems(O,k,d.enableGroupOverflow,!0)),O.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(O,k),O.setProperties({activeSize:L},!0),k){var D=k.querySelector("#"+O.id);this.setItemSize(D,O)}}else k=this.createItems([O],f,d.id,d.header,d.enableGroupOverflow,e,b)[0],O.displayOptions&s.b.Simplified&&I.append(k)}}d.enableGroupOverflow||h.querySelector("."+u._19)||h.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(u._4);for(var T=0;T<i.length;T++){var d=i[parseInt(T.toString(),10)],f=i[parseInt(T.toString(),10)].orientation,b=a.querySelector("#"+d.id+u._40),g=b.querySelector("#"+d.id+u.o),y=this.createElement("div",{className:u._12,id:d.id+u._38,innerHTML:d.header});b.appendChild(y),"Row"===f&&g.classList.replace(u._21,u._20),g.classList.add(u._25);for(var _=0;_<d.collections.length;_++){var E=void 0,x=void 0;if(d.enableGroupOverflow){var M=b.querySelector("#"+d.id+u.r);M&&(E=n.i(r.getInstance)(M,l.DropDownButton),x=E.target)}else(E=this.overflowDDB)&&(x=this.overflowDDB.target);var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);"Column"===f&&I.classList.replace(u._21,u._20);for(var C=0;C<S.items.length;C++){for(var B=S.items,O=S.items[parseInt(C.toString(),10)],w=!0;w&&!(O.displayOptions&s.b.Classic);){C++;var k=void 0;if((O.displayOptions&s.b.Simplified||O.displayOptions&s.b.Overflow)&&null!==(k=O.displayOptions&s.b.Simplified?b.querySelector("#"+O.id+u._40):x.querySelector("#"+O.id+u._40))){var R=k.querySelector("#"+O.id);this.destroyFunction(O,R),k.remove()}C<B.length?O=B[parseInt(C.toString(),10)]:w=!1}if(!w)break;if(O.displayOptions&(s.b.Simplified|s.b.Overflow)){var k=b.querySelector("#"+O.id+u._40);!k&&x&&(k=x.querySelector("#"+O.id+u._40),O.type!==s.f.DropDown&&O.type!==s.f.SplitButton&&O.type!==s.f.GroupButton||this.updatePopupItems(O,k,d.enableGroupOverflow,!1),this.removeOverflowEvent(O,k)),O.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(O,k),k&&I.append(k)}else{var k=this.createItems([O],f,d.id,d.header,d.enableGroupOverflow,e)[0];I.append(k)}var D=b.querySelector("#"+O.id);O.type===s.f.GroupButton&&(D=b.querySelector("#"+O.id+u.A));var q=O.allowedSizes&s.c.Large?s.c.Large:O.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;O.setProperties({activeSize:q},!0),this.setItemSize(D,O)}d.enableGroupOverflow&&E&&0===x.childElementCount&&this.removeOverflowButton(E)}}}this.selectedTab===e&&this.checkOverflow(e,c)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.createLauncherIcon=function(t,e){var n=this,o=this.createElement("div",{className:u._16+" "+(this.launcherIconCss?this.launcherIconCss:u._17),id:t+u._39,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});e.appendChild(o),e.classList.add(u._15),r.EventHandler.add(o,"click",this.launcherIconClicked.bind(this,t),this),r.EventHandler.add(o,"keydown",function(e){"Enter"===e.key&&n.launcherIconClicked(t)},this)},e.prototype.launcherIconClicked=function(t){var e={groupId:t};this.trigger("launcherIconClick",e)},e.prototype.createGroups=function(t,e){for(var o=[],i=0;i<t.length;i++){var s=t[parseInt(i.toString(),10)],c=s.orientation,a=this.createElement("div",{className:s.cssClass,id:s.id});a.classList.add(u._7),o.push(a);var l=this.createElement("div",{className:s.cssClass,id:s.id+u._40});l.classList.add(u._8),a.appendChild(l);var p=this.createElement("div",{className:"Simplified"===this.activeLayout?u._11:u._11+u.F+u._25,id:s.id+u.o});if(p.classList.add("Column"===c||"Simplified"===this.activeLayout?u._21:u._20),l.appendChild(p),"Classic"===this.activeLayout){var d=this.createElement("div",{className:u._12,id:s.id+u._38,innerHTML:s.header});l.appendChild(d)}s.showLauncherIcon&&this.createLauncherIcon(s.id,l);var f=this.createCollection(s.collections,s.orientation,s.id,s.header,s.enableGroupOverflow,e,l);n.i(r.append)(f,p),"Simplified"!==this.activeLayout||s.enableGroupOverflow||a.querySelector("."+u._19)||a.classList.add("e-ribbon-emptyCollection");var h=this.initialPropsData[parseInt(e.toString(),10)];h&&(h.hiddenGroups&&h.hiddenGroups.length&&this.updateGroupProps("hiddenGroups",h,a),h.disabledGroups&&h.disabledGroups.length&&this.updateGroupProps("disabledGroups",h,a))}return this.initialPropsData[parseInt(e.toString(),10)]&&delete this.initialPropsData[parseInt(e.toString(),10)],o},e.prototype.updateGroupProps=function(t,e,n){-1!==e[t].indexOf(n.id)&&("hiddenGroups"===t?n.classList.add("e-hidden"):n.classList.add("e-disabled"))},e.prototype.validateItemSize=function(){for(var t=0;t<this.tabs.length;t++)for(var e=this.tabs[parseInt(t.toString(),10)].groups,n=0;n<e.length;n++)for(var r=e[parseInt(n.toString(),10)].collections,o=e[parseInt(n.toString(),10)].orientation,i=0;i<r.length;i++)for(var c=r[parseInt(i.toString(),10)].items,a=0;a<c.length;a++){var u=c[parseInt(a.toString(),10)];if(u.allowedSizes&&0!==u.allowedSizes||u.setProperties({allowedSizes:s.c.Small|s.c.Medium|s.c.Large},!0),"ColorPicker"===u.type&&u.allowedSizes!==s.c.Small)u.setProperties({allowedSizes:s.c.Small},!0);else if("ComboBox"!==u.type&&"CheckBox"!==u.type||u.allowedSizes===s.c.Medium){if(("Column"===o&&c.length>1||"Row"===o&&r.length>1)&&u.allowedSizes&s.c.Large){var l=u.allowedSizes&(s.c.Small|s.c.Medium);l=l||s.c.Medium,u.setProperties({allowedSizes:l},!0)}}else u.setProperties({allowedSizes:s.c.Medium},!0);var p=u.allowedSizes&s.c.Large?s.c.Large:u.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;u.setProperties({activeSize:p},!0)}},e.prototype.createCollection=function(t,e,o,i,s,c,a){for(var l=[],p=0;p<t.length;p++){var d=t[parseInt(p.toString(),10)],f=this.createElement("div",{className:d.cssClass,id:d.id});f.classList.add(u._18),f.classList.add("Column"!==e||"Simplified"===this.activeLayout?u._21:u._20),l.push(f);var h=this.createItems(d.items,e,o,i,s,c,a);if(n.i(r.append)(h,f),"Row"===e&&2===p)break}return l},e.prototype.createRibbonItem=function(t,e){switch(t.type){case"Button":this.ribbonButtonModule.createButton(t,e);break;case"DropDown":this.ribbonDropDownModule.createDropDown(t,e);break;case"SplitButton":this.ribbonSplitButtonModule.createSplitButton(t,e);break;case"CheckBox":this.ribbonCheckBoxModule.createCheckBox(t,e);break;case"ColorPicker":this.ribbonColorPickerModule.createColorPicker(t,e);break;case"ComboBox":this.ribbonComboBoxModule.createComboBox(t,e);break;case"Template":this.createTemplateContent(t,e);break;case"GroupButton":this.ribbonGroupButtonModule.createGroupButton(t,e)}},e.prototype.createItems=function(t,e,r,o,i,c,l){for(var p,d=[],f=0;f<t.length;f++){for(var h=t[parseInt(f.toString(),10)],b=!0;b&&("Simplified"===this.activeLayout&&!(h.displayOptions&(s.b.Simplified|s.b.Overflow))||"Classic"===this.activeLayout&&!(h.displayOptions&s.b.Classic));)f++,f<t.length?h=t[parseInt(f.toString(),10)]:b=!1;if(!b)break;var m=this.createElement("div",{className:h.cssClass,id:h.id+u._40});(p=m.classList).add.apply(p,[u._19].concat(h.disabled?[u.R]:[])),h.ribbonTooltipSettings&&n.i(a.a)(h.ribbonTooltipSettings)&&(m.classList.add(u.e),this.tooltipData.push({id:m.id,data:h.ribbonTooltipSettings}));var v=h.activeSize;"Simplified"===this.activeLayout&&(v=h.allowedSizes===s.c.Large||h.allowedSizes&s.c.Medium||h.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,h.setProperties({activeSize:v},!0)),v&s.c.Large?m.classList.add(u._22,u._25):m.classList.add(v&s.c.Medium?u._23:u._24);var y=this.initialPropsData[parseInt(c.toString(),10)];if(y&&y.hiddenItems&&y.hiddenItems.length){-1!==y.hiddenItems.indexOf(h.id)&&m.classList.add("e-hidden")}if(this.createRibbonItem(h,m),"Simplified"!==this.activeLayout||h.displayOptions!==s.b.Overflow&&h.displayOptions!==(s.b.Classic|s.b.Overflow)?d.push(m):(this.createOverflowPopup(h,c,i,r,o,m,l),h.type!==s.f.DropDown&&h.type!==s.f.SplitButton&&h.type!==s.f.GroupButton||this.updatePopupItems(h,m,i,!0)),"Column"===e&&2===f)break}return d},e.prototype.createHelpPaneTemplate=function(){if(this.helpPaneTemplate){this.clearTemplate(["helpPaneTemplate"]),this.ribbonTempEle=this.createElement("div",{className:u._29,id:this.element.id+u._41});var t=n.i(a.b)(this.helpPaneTemplate);n.i(r.append)(t({},this,"helpPaneTemplate","helpPaneTemplate",this.isStringTemplate),this.ribbonTempEle);var e=this.tabObj.element;e.querySelector(".e-toolbar").after(this.ribbonTempEle),e.style.setProperty(u._42,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},e.prototype.createTemplateContent=function(t,e){var n=this.createElement("div",{className:t.cssClass?u._28+u.F+t.cssClass:u._28,id:t.id});t.disabled&&(n.classList.add(u.R),n.setAttribute("disabled","")),e.appendChild(n),this.renderItemTemplate(t,n)},e.prototype.renderItemTemplate=function(t,e){var o="ribbon"+t.id+"itemTemplate";this.clearTemplate([o]);var i=n.i(a.b)(t.itemTemplate);n.i(r.append)(i({activeSize:s.c[t.activeSize]},this,o,t.id+"itemTemplate",this.isStringTemplate),e),this.renderReactTemplates()},e.prototype.checkID=function(t,e,n){for(var r="tab"===e?u._32:"group"===e?u._33:"collection"===e?u._34:u._35,o=0;o<t.length;o++){var i=t[parseInt(o.toString(),10)];switch(i.id||i.setProperties({id:n+r+this.idIndex++},!0),e){case"tab":i.setProperties({groups:this.checkID(i.groups,"group",i.id)},!0);break;case"group":i.setProperties({collections:this.checkID(i.collections,"collection",i.id)},!0);break;case"collection":i.setProperties({items:this.checkID(i.items,"item",i.id)},!0)}}return t},e.prototype.updateCommonProperty=function(t){this.tabObj.setProperties(t),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.setCommonProperties(t),this.ribbonBackstageModule&&this.ribbonBackstageModule.setCommonProperties(t);for(var e=0;e<this.tabs.length;e++){var o=this.tabs[parseInt(e.toString(),10)],i=this.tabObj.items[parseInt(e.toString(),10)].content;if(i.querySelector("."+u._7))for(var c=0,p=o.groups;c<p.length;c++){var d=p[c],f=void 0,h=void 0;this.activeLayout===s.a.Classic?f=d.isCollapsed?i.querySelector("#"+d.id+u.M+u.N):null:(f=d.enableGroupOverflow?i.querySelector("#"+d.id+u.r):null,(h=f?n.i(r.getComponent)(f,l.DropDownButton):this.overflowDDB)&&(n.i(a.o)(h.target,t),h.setProperties(t)));for(var b=0,m=d.collections;b<m.length;b++)for(var v=m[b],y=0,g=v.items;y<g.length;y++){var _=g[y],S=null;if(this.activeLayout===s.a.Classic?_.displayOptions&s.b.Classic&&(S=f?this.ribbonDropDownModule.getDDBItemElement(f,_.id):_.type===s.f.GroupButton?i.querySelector("#"+_.id+u.A):i.querySelector("#"+_.id)):(S=_.displayOptions&s.b.Simplified?i.querySelector("#"+_.id):null)||(S=h.target.querySelector("#"+_.id),"DropDown"===_.type&&this.updatePopupItems(_,h.target,d.enableGroupOverflow,!0)),S){var I=this.getItemModuleName(_);if("template"!==I)if("group-btn"===I&&"Classic"===this.activeLayout)for(var C=0;C<_.groupButtonSettings.items.length;C++){var B=S.querySelector("#"+_.id+u.A+C);n.i(a.j)(B,"btn",t)}else if("group-btn"===I&&"Simplified"===this.activeLayout){n.i(a.j)(S,"dropdown-btn",t);for(var O=0;O<_.groupButtonSettings.items.length;O++){var B=document.querySelector("#"+_.id+u.A+O);n.i(a.j)(B,"btn",t)}}else n.i(a.j)(S,I,t);else n.i(r.isNullOrUndefined)(t.enableRtl)||S.classList.toggle(u.S,t.enableRtl)}}}}},e.prototype.removeLauncherIcon=function(t,e,o){var i=t+u._40,s=e?this.ribbonDropDownModule.getDDBItemElement(e,i):o.querySelector("#"+i);if(s){s.classList.remove(u._15);var c=s.querySelector("#"+t+u._39);n.i(r.remove)(c)}},e.prototype.destroyTabItems=function(t){for(var e=0;e<t.length;e++)for(var o=t[parseInt(e.toString(),10)],i=this.tabObj.items[parseInt(e.toString(),10)].content,c=0,a=o.groups;c<a.length;c++){var p=a[c],d=void 0,f=void 0;this.activeLayout===s.a.Classic?(d=p.isCollapsed?i.querySelector("#"+p.id+u.M+u.N):null,p.showLauncherIcon&&this.removeLauncherIcon(p.id,d,i)):(d=p.enableGroupOverflow?i.querySelector("#"+p.id+u.r):null,f=d?n.i(r.getComponent)(d,l.DropDownButton):this.overflowDDB);for(var h=0,b=p.collections;h<b.length;h++)for(var m=b[h],v=0,y=m.items;v<y.length;v++){var g=y[v],_=void 0;this.activeLayout===s.a.Classic?g.displayOptions&s.b.Classic&&(_=d?this.ribbonDropDownModule.getDDBItemElement(d,g.id):i.querySelector("#"+g.id),g.type===s.f.GroupButton&&(_=d?this.ribbonDropDownModule.getDDBItemElement(d,g.id+u.A):i.querySelector("#"+g.id+u.A))):(_=g.displayOptions&s.b.Simplified?i.querySelector("#"+g.id):null)||(_=f?f.target.querySelector("#"+g.id):null),_&&this.destroyFunction(g,_)}this.activeLayout===s.a.Classic&&d?this.ribbonDropDownModule.removeOverFlowDropDown(d):this.activeLayout===s.a.Simplified&&p.enableGroupOverflow&&d&&this.removeOverflowButton(f)}this.overflowDDB&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.destroyFunction=function(t,e){var r=this.getItemModuleName(t);if("colorpicker"===r)this.ribbonColorPickerModule.unwireColorPickerEvents(e);else if("group-btn"===r){if("Classic"===this.activeLayout)for(var o=0;o<t.groupButtonSettings.items.length;o++){var i=e.querySelector("#"+t.id+u.A+o);i&&n.i(a.i)(i,"btn")}else this.ribbonGroupButtonModule.destroyDropDown(t);for(var s=this,o=0;o<t.groupButtonSettings.items.length;o++)!function(e){if(t.groupButtonSettings.items[parseInt(e.toString(),10)].ribbonTooltipSettings){var r=t.id+u.A+e,o=n.i(a.e)(s.tooltipData,function(t){return t.id===r});-1!==o&&s.tooltipData.splice(o,1)}}(o)}else"template"!==r&&n.i(a.i)(e,r);if(t.ribbonTooltipSettings){var c=n.i(a.e)(this.tooltipData,function(e){return e.id===t.id+u._40});-1!==c&&this.tooltipData.splice(c,1)}"GroupButton"===t.type&&this.ribbonGroupButtonModule.destroyDropDown(t)},e.prototype.getItemModuleName=function(t){switch(t.type){case"Button":return"btn";case"DropDown":return"dropdown-btn";case"SplitButton":return"split-btn";case"CheckBox":return"checkbox";case"ColorPicker":return"colorpicker";case"ComboBox":return"combobox";case"GroupButton":return"group-btn";default:return"template"}},e.prototype.clearOverflowResize=function(){this.destroyScroll(),this.clearOverflowDropDown(this.selectedTab);for(var t=this.tabs[this.selectedTab],e=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+u.o),n=e.closest("."+u._5),r=0;r<t.groups.length;r++)this.checkSmallToMedium(this.selectedTab,t,r,n,e,!0,!0),this.checkMediumToLarge(this.selectedTab,t,r,n,e,!0,!0)},e.prototype.refreshLayout=function(){this.resizeHandler()},e.prototype.selectTab=function(t){var e=n.i(a.e)(this.tabs,function(e){return e.id===t});this.setProperties({selectedTab:e})},e.prototype.showTab=function(t){this.showHideTab(t,!1)},e.prototype.hideTab=function(t){this.showHideTab(t,!0)},e.prototype.showHideTab=function(t,e){var r=n.i(a.e)(this.tabs,function(e){return e.id===t});-1!==r&&this.tabObj.hideTab(r,e)},e.prototype.enableTab=function(t){this.enableDisableTab(t,!0)},e.prototype.disableTab=function(t){this.enableDisableTab(t,!1)},e.prototype.enableDisableTab=function(t,e){var r=n.i(a.e)(this.tabs,function(e){return e.id===t});-1!==r&&this.tabObj.enableTab(r,e)},e.prototype.addTab=function(t,e,r){var o=e?n.i(a.e)(this.tabs,function(t){return t.id===e}):-1;o=-1===o?this.tabs.length:o+(r?1:0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(o,0,t),this.setProperties({tabs:this.tabsInternal},!0),this.checkID([this.tabs[parseInt(o.toString(),10)]],"tab",this.element.id),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var i=this.createTabItems([t]);this.tabObj.addTab(i,o)},e.prototype.removeTab=function(t){var e=n.i(a.e)(this.tabs,function(e){return e.id===t});if(-1!==e){var r=this.tabObj.items[parseInt(e.toString(),10)].content,o=this.tabs[parseInt(e.toString(),10)].groups;if(o&&""!==r.innerHTML)for(var i=0,c=o;i<c.length;i++){for(var l=c[i],p=l.isCollapsed?r.querySelector("#"+l.id+u.M+u.N):null,d=0,f=l.collections;d<f.length;d++)for(var h=f[d],b=0,m=h.items;b<m.length;b++){var v=m[b],y=p?this.ribbonDropDownModule.getDDBItemElement(p,v.id):r.querySelector("#"+v.id);v.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(y=p?this.ribbonDropDownModule.getDDBItemElement(p,v.id+u.A):r.querySelector("#"+v.id+u.A)),y&&this.destroyFunction(v,y)}p&&this.ribbonDropDownModule.removeOverFlowDropDown(p)}e===this.selectedTab&&(this.isAddRemove=!0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(e,1),this.setProperties({tabs:this.tabsInternal},!0),this.tabObj.removeTab(e)}},e.prototype.addGroup=function(t,e,r,o){var i=n.i(a.e)(this.tabs,function(e){return e.id===t});if(-1!==i){this.selectedTab===i&&this.clearOverflowResize();var s=this.tabs[parseInt(i.toString(),10)],c=s.groups.slice(),u=r?n.i(a.e)(c,function(t){return t.id===r}):-1;u=-1===u?c.length:u+(o?1:0),c.splice(u,0,e),s.setProperties({groups:c},!0),this.checkID([s.groups[parseInt(u.toString(),10)]],"group",t),this.validateItemSize();var l=this.tabObj.items[parseInt(i.toString(),10)].content;if(""!==l.innerHTML){var p=this.createGroups([s.groups[parseInt(u.toString(),10)]],i)[0],d=r?l.querySelector("#"+r):null;d?d.insertAdjacentElement(o?"afterend":"beforebegin",p):l.append(p)}this.selectedTab===i&&this.refreshLayout()}},e.prototype.removeGroup=function(t){var e=n.i(a.h)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;e.group.showLauncherIcon&&this.removeLauncherIcon(e.group.id,null,o),this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+u.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);for(var p=0,d=e.group.collections;p<d.length;p++)for(var f=d[p],h=0,b=f.items;h<b.length;h++){var m=b[h];this.removeItemElement(o,m,c)}if(this.activeLayout===s.a.Simplified)if(e.group.enableGroupOverflow)0===c.target.childElementCount&&this.removeOverflowButton(c);else{var v=c.target.querySelector("#"+e.group.id+u._40);v&&1===v.childElementCount&&v.remove();var y=c.target.querySelector("#"+this.tabs[parseInt(e.tabIndex.toString(),10)].id+u.M);y&&0===y.childElementCount&&y.remove()}var g=o.querySelector("#"+t);g&&g.remove()}var _=this.tabs[e.tabIndex].groups.slice();_.splice(e.groupIndex,1),this.tabs[e.tabIndex].setProperties({groups:_},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.hideGroup=function(t){this.showHideGroup(t,!0)},e.prototype.showGroup=function(t){this.showHideGroup(t,!1)},e.prototype.showHideGroup=function(t,e){var o,i,s=n.i(a.h)(this.tabs,t);if(s){var c=this.tabObj.items[s.tabIndex].content,p=c.querySelector("#"+t);if(p?e?p.classList.add("e-hidden"):p.classList.remove("e-hidden"):this.updateInitialProps(s.tabIndex,t,"hiddenGroups",e),this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(s.tabIndex.toString(),10)].id+u.M);if(s.group.enableGroupOverflow){var h=c.querySelector("#"+t+u.r);h&&(o=n.i(r.getInstance)(h,l.DropDownButton),i=o.target),i&&(e?i.classList.add("e-hidden"):i.classList.remove("e-hidden"))}else if(f){var b=f.querySelector("#"+t+u._40);b&&(e?b.classList.add("e-hidden"):b.classList.remove("e-hidden"))}}this.refreshLayout()}},e.prototype.disableGroup=function(t){this.enableDisableGroup(t,!0)},e.prototype.enableGroup=function(t){this.enableDisableGroup(t,!1)},e.prototype.enableDisableGroup=function(t,e){var o,i,s=n.i(a.h)(this.tabs,t);if(s){var c=this.tabObj.items[s.tabIndex].content,p=c.querySelector("#"+t);if(p?e?p.classList.add("e-disabled"):p.classList.remove("e-disabled"):this.updateInitialProps(s.tabIndex,t,"disabledGroups",e),this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(s.tabIndex.toString(),10)].id+u.M);if(s.group.enableGroupOverflow){var h=c.querySelector("#"+t+u.r);h&&(o=n.i(r.getInstance)(h,l.DropDownButton),i=o.target),i&&(e?i.classList.add("e-disabled"):i.classList.remove("e-disabled"))}else if(f){var b=f.querySelector("#"+t+u._40);b&&(e?b.classList.add("e-disabled"):b.classList.remove("e-disabled"))}}}},e.prototype.addCollection=function(t,e,r,o){var i=n.i(a.h)(this.tabs,t);if(i&&("Row"!==i.group.orientation||3!==i.group.collections.length)){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var s=i.group.collections.slice(),c=r?n.i(a.e)(s,function(t){return t.id===r}):-1;c=-1===c?s.length:c+(o?1:0),s.splice(c,0,e),i.group.setProperties({collections:s},!0),this.checkID([i.group.collections[parseInt(c.toString(),10)]],"collection",t),this.validateItemSize();var l=this.tabObj.items[i.tabIndex].content;if(""!==l.innerHTML){var p=i.group.collections[parseInt(c.toString(),10)],d=this.createCollection([p],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex)[0];i.group.isCollapsed&&(l=this.ribbonDropDownModule.getOverflowDropDownPopup(i,l));var f=r?l.querySelector("#"+r):null;f?f.insertAdjacentElement(o?"afterend":"beforebegin",d):l.querySelector("#"+t+u.o).append(d)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeCollection=function(t){var e=n.i(a.g)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+u.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);for(var p=0,d=e.collection.items;p<d.length;p++){var f=d[p];this.removeItemElement(o,f,c)}var h=o.querySelector("#"+t);h&&h.remove()}var b=e.group,m=b.collections.slice();m.splice(e.collectionIndex,1),b.setProperties({collections:m},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.addItem=function(t,e,r,o){var i=n.i(a.g)(this.tabs,t);if(i&&("Column"!==i.group.orientation||3!==i.collection.items.length)){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var s=i.collection.items.slice(),c=r?n.i(a.e)(s,function(t){return t.id===r}):-1;c=-1===c?s.length:c+(o?1:0),s.splice(c,0,e),i.collection.setProperties({items:s},!0),this.checkID([i.collection.items[parseInt(c.toString(),10)]],"item",t),this.validateItemSize();var l=this.tabObj.items[i.tabIndex].content,p=l.querySelector("#"+i.group.id+u._40);if(""!==l.innerHTML){var d=i.collection.items[parseInt(c.toString(),10)],f=this.createItems([d],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex,p)[0];i.group.isCollapsed&&(l=this.ribbonDropDownModule.getOverflowDropDownPopup(i,l));var h=r?l.querySelector("#"+r):null;h?h.closest("."+u._19).insertAdjacentElement(o?"afterend":"beforebegin",f):f&&l.querySelector("#"+t).append(f)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeItem=function(t){var e=n.i(a.f)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+u.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);var p=e.item;this.removeItemElement(o,p,c)}var d=e.collection,f=d.items;f.splice(e.itemIndex,1),d.setProperties({items:f},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.hideItem=function(t){this.showHideItem(t,!0)},e.prototype.showItem=function(t){this.showHideItem(t,!1)},e.prototype.showHideItem=function(t,e){var o=n.i(a.f)(this.tabs,t);if(o){var i;if(i="GroupButton"===o.item.type?n.i(a.l)(this,t+u.A,o):n.i(a.l)(this,t,o)){var s=n.i(r.closest)(i,".e-ribbon-item");e?s.classList.add("e-hidden"):s.classList.remove("e-hidden"),this.refreshLayout()}else this.updateInitialProps(o.tabIndex,t,"hiddenItems",e)}},e.prototype.updateInitialProps=function(t,e,n,r){var o=this.initialPropsData[parseInt(t.toString(),10)];if(o||(this.initialPropsData[parseInt(t.toString(),10)]={},o=this.initialPropsData[parseInt(t.toString(),10)]),o){o[n]||(o[n]=[]);var i=o[n].indexOf(e);r?-1===i&&o[n].push(e):(-1!==i&&o[n].splice(i,1),0===o[n].length&&delete o[n],0===Object.keys(o).length&&delete this.initialPropsData[parseInt(t.toString(),10)])}},e.prototype.updateTab=function(t){var e=t.id,o=n.i(a.e)(this.tabs,function(t){return t.id===e});if(-1!==o){var i=this.tabObj.items[parseInt(o.toString(),10)].content,c=this.tabs[parseInt(o.toString(),10)].groups,l=this.tabObj.element;if(c&&""!==i.innerHTML&&(t.cssClass&&this.tabs[parseInt(o.toString(),10)].cssClass&&(i.classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass),l.querySelector(".e-active").classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass)),t.groups)){for(var p=0,d=c;p<d.length;p++){for(var f=d[p],h=f.isCollapsed?i.querySelector("#"+f.id+u.M+u.N):null,b=0,m=f.collections;b<m.length;b++)for(var v=m[b],y=0,g=v.items;y<g.length;y++){var _=g[y],S=h?this.ribbonDropDownModule.getDDBItemElement(h,_.id):i.querySelector("#"+_.id);_.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(S=h?this.ribbonDropDownModule.getDDBItemElement(h,_.id+u.A):i.querySelector("#"+_.id+u.A)),S&&this.destroyFunction(_,S)}h&&this.ribbonDropDownModule.removeOverFlowDropDown(h)}i.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()})}o===this.selectedTab&&(this.isAddRemove=!0);var I=this.tabs[parseInt(o.toString(),10)];if(I.setProperties(t,!0),this.setProperties({groups:this.checkID(I.groups,"group",I.id)},!0),this.validateItemSize(),""===i.innerHTML){if(t.groups){var C=this.createGroups(I.groups,o);n.i(r.append)(C,i)}this.selectedTab===o&&this.refreshLayout(),t.cssClass&&(i.classList.add(I.cssClass),l.querySelector(".e-active").classList.add(I.cssClass)),t.header&&(l.querySelector("#"+e+u._38).innerText=I.header)}}},e.prototype.updateGroup=function(t){var e=t.id,o=n.i(a.h)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,c,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+e),f=d.querySelector("#"+t.id+u._40);if(""!==p.innerHTML){if(o.group.showLauncherIcon&&this.removeLauncherIcon(o.group.id,null,p),this.activeLayout===s.a.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+u.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB),t.cssClass&&o.group.cssClass&&(d.classList.remove(o.group.cssClass),f&&f.classList.remove(o.group.cssClass)),(t.collections||t.orientation)&&(o.group.collections||o.group.orientation)){for(var h=0,b=o.group.collections;h<b.length;h++)for(var m=b[h],v=0,y=m.items;v<y.length;v++){var g=y[v];this.removeItemElement(p,g,c)}if(d.querySelectorAll(".e-ribbon-collection").forEach(function(t){t.remove()}),t.orientation){var _=f.querySelector(".e-ribbon-group-content"),S=_.classList.value.match(/(e-ribbon-[column|row]+)/g);S&&n.i(r.removeClass)([_],S)}}if(this.activeLayout===s.a.Simplified)if(o.group.enableGroupOverflow)0===c.target.childElementCount&&this.removeOverflowButton(c);else{var I=c.target.querySelector("#"+o.group.id+u._40);I&&1===I.childElementCount&&I.remove();var C=c.target.querySelector("#"+this.tabs[parseInt(o.tabIndex.toString(),10)].id+u.M);C&&0===C.childElementCount&&C.remove()}}var B=o.group;if(B.setProperties(t,!0),B.setProperties({collections:this.checkID(B.collections,"collection",B.id)},!0),this.validateItemSize(),""!==p.innerHTML){if(t.showLauncherIcon&&this.createLauncherIcon(B.id,f),t.collections||t.orientation){var _=f.querySelector(".e-ribbon-group-content");_.classList.add("Column"===B.orientation||"Simplified"===this.activeLayout?u._21:u._20);var O=this.createCollection(B.collections,B.orientation,B.id,B.header,B.enableGroupOverflow,o.tabIndex,f);n.i(r.append)(O,_)}if(this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&(d.classList.add(B.cssClass),f&&f.classList.add(B.cssClass)),t.header)if(this.activeLayout!==s.a.Simplified||t.enableGroupOverflow)if(this.activeLayout!==s.a.Classic||B.isCollapsed){if(this.activeLayout===s.a.Classic&&B.isCollapsed){var w=d.querySelector("#"+B.id+u.M+u.N),P=n.i(r.getInstance)(w,l.DropDownButton),D=P.target.querySelector("#"+t.id+u._38);D&&(D.innerText=B.header)}}else d.querySelector(".e-ribbon-group-header").innerText=B.header;else{var D=c.target.querySelector("#"+t.id+u._38);D&&(D.innerText=B.header)}}}},e.prototype.updateCollection=function(t){var e=t.id,o=n.i(a.g)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[o.tabIndex].content,c=i.querySelector("#"+e);if(""!==i.innerHTML){var p=void 0,d=void 0;if(this.activeLayout===s.a.Simplified&&(p=o.group.enableGroupOverflow?i.querySelector("#"+o.group.id+u.r):null,d=p?n.i(r.getComponent)(p,l.DropDownButton):this.overflowDDB),t.cssClass&&o.collection.cssClass&&c.classList.remove(o.collection.cssClass),t.items&&o.collection.items)for(var f=0,h=o.collection.items;f<h.length;f++){var b=h[f];this.removeItemElement(i,b,d)}}var m=o.collection;if(m.setProperties(t,!0),m.setProperties({items:this.checkID(m.items,"item",m.id)},!0),this.validateItemSize(),""!==i.innerHTML&&t.items){var v=i.querySelector("#"+o.group.id+u._40),y=this.createItems(m.items,o.group.orientation,o.group.id,o.group.header,o.group.enableGroupOverflow,o.tabIndex,v);n.i(r.append)(y,c)}this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&c.classList.add(m.cssClass)}},e.prototype.updateItem=function(t){var e=t.id,o=n.i(a.f)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,c,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+o.group.id),f=d.querySelector("#"+o.group.id+u._40),h=null,b=null;if(""!==p.innerHTML){if(this.activeLayout===s.a.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+u.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB),this.activeLayout===s.a.Simplified&&o.item.displayOptions===s.b.Overflow){if(h=c.target.querySelector("#"+e+u._40),b=c.target.querySelector("#"+e),t.displayOptions&&t.displayOptions!==s.b.Overflow){var m=f.querySelector("#"+o.collection.id);m&&m.appendChild(h)}}else h=f.querySelector("#"+e+u._40),b=p.querySelector("#"+e),"GroupButton"===o.item.type&&this.activeLayout===s.a.Classic&&(b=p.querySelector("#"+e+u.A)),this.activeLayout===s.a.Simplified&&t.displayOptions===s.b.Overflow&&(this.createOverflowPopup(o.item,o.tabIndex,o.group.enableGroupOverflow,o.group.id,o.group.header,h,f),o.item.type!==s.f.DropDown&&o.item.type!==s.f.SplitButton&&t.type!==s.f.GroupButton||this.updatePopupItems(o.item,h,o.group.enableGroupOverflow,!0));t.cssClass&&o.item.cssClass&&h.classList.remove(o.item.cssClass),this.destroyFunction(o.item,b),b.remove();var v=h.classList.value.match(/(e-ribbon-[large|medium|small]+-item)/g);v&&n.i(r.removeClass)([h],v)}var y=o.item;if(y.setProperties(t,!0),this.validateItemSize(),""!==p.innerHTML){h=this.activeLayout!==s.a.Simplified||y.displayOptions!==s.b.Overflow?f.querySelector("#"+e+u._40):c.target.querySelector("#"+e+u._40),y.ribbonTooltipSettings&&n.i(a.a)(y.ribbonTooltipSettings)&&(h.classList.add(u.e),this.tooltipData.push({id:h.id,data:y.ribbonTooltipSettings}));var g=y.activeSize;"Simplified"===this.activeLayout&&(g=y.allowedSizes===s.c.Large||y.allowedSizes&s.c.Medium||y.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,y.setProperties({activeSize:g},!0)),g&s.c.Large?h.classList.add(u._22,u._25):h.classList.add(g&s.c.Medium?u._23:u._24),this.createRibbonItem(y,h),"Simplified"===this.activeLayout&&o.group.enableGroupOverflow&&0===c.target.childElementCount&&this.removeOverflowButton(c),this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&h.classList.add(y.cssClass),this.enableDisableItem(y.id,y.disabled)}}},e.prototype.removeItemElement=function(t,e,n){var r=null;this.activeLayout===s.a.Classic?(r=e.displayOptions&s.b.Classic?t.querySelector("#"+e.id):null,"GroupButton"===e.type&&(r=e.displayOptions&s.b.Classic?t.querySelector("#"+e.id+u.A):null)):(r=e.displayOptions&s.b.Simplified?t.querySelector("#"+e.id):null)||(r=n.target.querySelector("#"+e.id)),r&&(this.destroyFunction(e,r),"GroupButton"===e.type&&this.activeLayout===s.a.Simplified?document.getElementById(e.id+u._40).remove():r.closest("#"+e.id+u._40).remove())},e.prototype.enableItem=function(t){this.enableDisableItem(t,!1)},e.prototype.disableItem=function(t){this.enableDisableItem(t,!0)},e.prototype.enableDisableItem=function(t,e){var o=n.i(a.f)(this.tabs,t);if(o){o.item.setProperties({disabled:e},!0);var i;if(i="GroupButton"===o.item.type?n.i(a.l)(this,t+u.A,o):n.i(a.l)(this,t,o)){n.i(r.closest)(i,".e-ribbon-item").classList.toggle(u.R,o.item.disabled);var s=this.getItemModuleName(o.item);if("template"!==s)if("group-btn"===s&&"Simplified"===this.activeLayout){n.i(a.k)(i,"dropdown-btn",e);for(var c=0;c<o.item.groupButtonSettings.items.length;c++){var l=document.querySelector("#"+t+u.A+c);n.i(a.k)(l,"btn",e)}}else if("group-btn"===s&&"Classic"===this.activeLayout)for(var c=0;c<o.item.groupButtonSettings.items.length;c++){var l=i.querySelector("#"+t+u.A+c);n.i(a.k)(l,"btn",e)}else n.i(a.k)(i,s,e);else i.classList.toggle(u.R,e),i.toggleAttribute("disabled",e)}}},e.prototype.unwireEvents=function(){r.EventHandler.remove(window,"resize",this.resizeHandler)},e.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,n.i(a.n)(this.element),this.destroyTabItems(this.tabs),this.hideLayoutSwitcher||this.removeExpandCollapse(),this.collapseButton=void 0,this.scrollModule&&this.scrollModule.destroy(),this.ribbonTempEle&&(n.i(r.remove)(this.ribbonTempEle),this.ribbonTempEle=null),t.prototype.destroy.call(this),this.tabObj.destroy(),this.tabObj=void 0,this.initialPropsData={},n.i(r.remove)(this.element.querySelector("#"+this.element.id+u._32)),this.element.style.removeProperty(u.c),this.element.style.removeProperty(u._42),this.element.style.removeProperty("width"),this.cssClass&&n.i(r.removeClass)([this.element],this.cssClass.split(u.F)),this.element.classList.remove(u.S,u._30,u._4,u._0,u._6,"e-rbn"),this.unwireEvents()},e.prototype.onPropertyChanged=function(t,e){for(var o,i,s=0,c=Object.keys(t);s<c.length;s++){switch(c[s]){case"activeLayout":this.switchLayout();break;case"cssClass":e.cssClass&&(o=this.element.classList).remove.apply(o,e.cssClass.split(u.F)),t.cssClass&&(i=this.element.classList).add.apply(i,t.cssClass.split(u.F));break;case"isMinimized":this.element.classList.toggle(u._6,this.isMinimized),this.tabObj.element.querySelector(".e-content").style.display=this.isMinimized?"none":"block",this.isMinimized||this.refreshLayout();break;case"locale":this.updateCommonProperty({locale:this.locale});break;case"enablePersistence":this.updateCommonProperty({enablePersistence:this.enablePersistence});break;case"enableRtl":this.element.classList.toggle(u.S,this.enableRtl),this.updateCommonProperty({enableRtl:t.enableRtl}),this.scrollModule&&this.scrollModule.setProperties({enableRtl:t.enableRtl});break;case"launcherIconCss":for(var a=0;a<this.tabs.length;a++){var p=this.tabObj.items[parseInt(a.toString(),10)].content,d=this.tabs[parseInt(a.toString(),10)];if(p.querySelector("."+u._7))for(var f=0,h=d.groups;f<h.length;f++){var b=h[f];if(b.showLauncherIcon){var m=u._16+" "+(this.launcherIconCss||u._17);if(b.isCollapsed){var v=p.querySelector("#"+b.id+u.M+u.N),y=n.i(r.getComponent)(v,l.DropDownButton),g=y.target.querySelector("#"+b.id+u._39);g.className=m}else{var v=p.querySelector("#"+b.id+u._39);v.className=m}}}}break;case"selectedTab":this.tabObj.setProperties({selectedItem:t.selectedTab});break;case"tabAnimation":this.tabObj.setProperties({animation:t.tabAnimation});break;case"tabs":this.reRenderTabs(t.tabs);break;case"width":this.element.style.width=n.i(r.formatUnit)(t.width),this.refreshLayout();break;case"fileMenu":this.ribbonFileMenuModule&&this.ribbonFileMenuModule.updateFileMenu(this.fileMenu);this.tabObj.tbObj.refreshOverflow();break;case"backStageMenu":this.ribbonBackstageModule&&this.ribbonBackstageModule.updateBackStageMenu(this.backStageMenu);this.tabObj.tbObj.refreshOverflow();break;case"helpPaneTemplate":this.ribbonTempEle&&(n.i(r.remove)(this.ribbonTempEle),this.ribbonTempEle=null,this.tabObj.element.style.setProperty(u._42,"0px")),this.helpPaneTemplate&&this.createHelpPaneTemplate();this.tabObj.tbObj.refreshOverflow();break;case"hideLayoutSwitcher":this.hideLayoutSwitcher?this.removeExpandCollapse():this.addExpandCollapse()}}};var h;return f([n.i(r.Property)("Classic")],e.prototype,"activeLayout",void 0),f([n.i(r.Property)("")],e.prototype,"cssClass",void 0),f([n.i(r.Complex)({},i.k)],e.prototype,"fileMenu",void 0),f([n.i(r.Complex)({},i.l)],e.prototype,"backStageMenu",void 0),f([n.i(r.Property)("")],e.prototype,"launcherIconCss",void 0),f([n.i(r.Property)(!1)],e.prototype,"isMinimized",void 0),f([n.i(r.Property)("en-us")],e.prototype,"locale",void 0),f([n.i(r.Property)(0)],e.prototype,"selectedTab",void 0),f([n.i(r.Complex)({},o.TabAnimationSettings)],e.prototype,"tabAnimation",void 0),f([n.i(r.Collection)([],i.a)],e.prototype,"tabs",void 0),f([n.i(r.Property)("100%")],e.prototype,"width",void 0),f([n.i(r.Property)("")],e.prototype,"helpPaneTemplate",void 0),f([n.i(r.Property)(!1)],e.prototype,"hideLayoutSwitcher",void 0),f([n.i(r.Event)()],e.prototype,"tabSelecting",void 0),f([n.i(r.Event)()],e.prototype,"tabSelected",void 0),f([n.i(r.Event)()],e.prototype,"ribbonExpanding",void 0),f([n.i(r.Event)()],e.prototype,"ribbonCollapsing",void 0),f([n.i(r.Event)()],e.prototype,"launcherIconClick",void 0),f([n.i(r.Event)()],e.prototype,"created",void 0),e=h=f([r.NotifyPropertyChanges],e)}(r.Component)},function(t,e,n){"use strict";var r=n(2);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63}),n.d(e,"_64",function(){return r._64});var o=n(13);n.d(e,"_65",function(){return o.a}),n.d(e,"_66",function(){return o.b}),n.d(e,"_67",function(){return o.c}),n.d(e,"_68",function(){return o.d}),n.d(e,"_69",function(){return o.e}),n.d(e,"_70",function(){return o.f}),n.d(e,"_71",function(){return o.g}),n.d(e,"_72",function(){return o.h}),n.d(e,"_73",function(){return o.i}),n.d(e,"_74",function(){return o.j}),n.d(e,"_75",function(){return o.k}),n.d(e,"_76",function(){return o.l}),n.d(e,"_77",function(){return o.m}),n.d(e,"_78",function(){return o.n}),n.d(e,"_79",function(){return o.o}),n.d(e,"_80",function(){return o.p}),n.d(e,"_81",function(){return o.q});var i=n(12);n.d(e,"_82",function(){return i.a}),n.d(e,"_83",function(){return i.b}),n.d(e,"_84",function(){return i.c}),n.d(e,"_85",function(){return i.d}),n.d(e,"_86",function(){return i.e}),n.d(e,"_87",function(){return i.f}),n.d(e,"_88",function(){return i.g});var s=n(42);n.d(e,"_89",function(){return s.a}),n.d(e,"_90",function(){return s.b})},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createButton=function(t,e){var r=this,c=this.parent.createElement("button",{id:t.id});e.appendChild(c);var a=t.buttonSettings;new o.Button({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===i.d.Large?"Top":"Left",iconCss:a.iconCss,disabled:t.disabled,cssClass:(s.G+s.F+s.H+s.F+(a.cssClass?a.cssClass:"")).trim(),content:t.activeSize===i.d.Small?"":a.content,isPrimary:a.isPrimary,isToggle:a.isToggle,created:a.created},c),a.htmlAttributes&&n.i(i._64)(c,a.htmlAttributes),c.onclick=function(t){a.clicked&&a.clicked.call(r,t)},c.setAttribute("aria-label",a.content)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,a=e.querySelector("#"+t.id);a.setAttribute("data-control",t.type.toString());var u=n.i(r.getComponent)(a,o.Button);u.setProperties({cssClass:u.cssClass+s.F+s.L}),a.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(c,e),i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),a=n.i(r.getComponent)(c,o.Button),u=a.cssClass.split(s.F);u=u.filter(function(t){return t!==s.L}),a.setProperties({cssClass:u.join(s.F)}),c.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(i,e)}},t.prototype.click=function(t){var e=n.i(i._58)(this.parent,t);if(e){n.i(r.getComponent)(e,o.Button).click()}},t.prototype.updateButton=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.buttonSettings,t);var a=n.i(i._58)(this.parent,e,c);if(a){var u=n.i(r.getComponent)(a,o.Button);t.isToggle&&a.classList.add("e-active"),t.cssClass&&(t.cssClass=(s.G+s.F+s.H+s.F+t.cssClass).trim()),t.content&&(t.content=c.item.activeSize===i.d.Small?"":t.content,a.setAttribute("aria-label",t.content)),delete t.clicked,u.setProperties(t)}}},t.prototype.updateButtonSize=function(t,e){n.i(r.getComponent)(t,o.Button).setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left",content:e.activeSize===i.d.Small?"":e.buttonSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonCheckBox"},t.prototype.destroy=function(){this.parent=null},t.prototype.createCheckBox=function(t,e){var n=this,r=this.parent.createElement("input",{id:t.id});e.appendChild(r);var s=t.checkBoxSettings;new o.CheckBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,checked:s.checked,cssClass:(i.p+i.s+(s.cssClass?s.cssClass:"")).trim(),label:s.label,labelPosition:s.labelPosition,disabled:t.disabled,created:s.created,htmlAttributes:s.htmlAttributes,change:function(t){s.change&&s.change.call(n,t)}},r)},t.prototype.addOverFlowEvents=function(t,e,s){var c=this,a=e.querySelector("#"+t.id);a.setAttribute("data-control",t.type.toString());var u=n.i(r.getComponent)(a,o.CheckBox);u.cssClass=u.cssClass+i.s+i.q,u.dataBind(),u.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(c,e),s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,c=e.querySelector("#"+t.id),a=n.i(r.getComponent)(c,o.CheckBox),u=a.cssClass.split(i.s);u=u.filter(function(t){return t!==i.q}),a.cssClass=u.join(i.s),a.dataBind(),a.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(s,e)}},t.prototype.click=function(t){var e=n.i(i._58)(this.parent,t);if(e){n.i(r.getComponent)(e,o.CheckBox).click()}},t.prototype.updateCheckBox=function(t,e){var s=n.i(i._52)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.checkBoxSettings,t);var c=n.i(i._58)(this.parent,e,s);if(c){t.cssClass&&(t.cssClass=(i.p+i.s+t.cssClass).trim()),delete t.change;n.i(r.getComponent)(c,o.CheckBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(52)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonColorPicker"},t.prototype.destroy=function(){this.parent=null},t.prototype.createColorPicker=function(t,e){var c=this,a=this.parent.createElement("input",{id:t.id});e.appendChild(a);var u=t.colorPickerSettings,l=new o.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:u.columns,cssClass:(s.H+s.F+(u.cssClass?u.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:u.enableOpacity,mode:u.mode,modeSwitcher:u.modeSwitcher,noColor:u.noColor,presetColors:u.presetColors,showButtons:u.showButtons,value:u.value,beforeClose:function(){l.element.parentElement.classList.remove(s.J),u.beforeClose&&u.beforeClose.call(c)},beforeOpen:u.beforeOpen,beforeTileRender:u.beforeTileRender,created:u.created,change:u.change,open:function(){l.element.parentElement.classList.add(s.J),u.open&&u.open.call(c)},select:u.select},a);u.htmlAttributes&&n.i(i._64)(a,u.htmlAttributes);var p=l.element.parentElement;r.EventHandler.add(p,"mouseenter",this.toggleWrapperHover.bind(this,p,!0),this),r.EventHandler.add(p,"mouseleave",this.toggleWrapperHover.bind(this,p,!1),this)},t.prototype.toggleWrapperHover=function(t,e){e?t.classList.add(s.K):t.classList.remove(s.K)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,a=e.querySelector("#"+t.id);a.setAttribute("data-control",t.type.toString());var u=n.i(r.getComponent)(a,o.ColorPicker);u.setProperties({cssClass:u.cssClass+s.F+s.L});var l,p=u.splitBtn;u.beforeClose=function(e){l=e.event?e.event.target:null,u.element.parentElement.classList.remove(s.J),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(c)},p.close=function(){l&&!l.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),a=n.i(r.getComponent)(c,o.ColorPicker),u=a.cssClass.split(s.F);u=u.filter(function(t){return t!==s.L}),a.setProperties({cssClass:u.join(s.F)}),a.splitBtn.close=null,a.beforeClose=function(){a.element.parentElement.classList.remove(s.J),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(i)}},t.prototype.getColorPickerObj=function(t){var e=n.i(i._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.ColorPicker):null},t.prototype.getValue=function(t,e,n){var r=this.getColorPickerObj(t);return r?r.getValue(e,n):""},t.prototype.toggle=function(t){var e=this.getColorPickerObj(t);e&&e.toggle()},t.prototype.updateColorPicker=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.checkBoxSettings,t);var a=n.i(i._58)(this.parent,e,c);if(a){t.cssClass&&(t.cssClass=(s.H+s.F+t.cssClass).trim()),delete t.beforeClose,delete t.open;n.i(r.getComponent)(a,o.ColorPicker).setProperties(t)}}},t.prototype.unwireColorPickerEvents=function(t){var e=n.i(r.getComponent)(t,o.ColorPicker),i=e.element.parentElement;r.EventHandler.remove(i,"mouseenter",this.toggleWrapperHover),r.EventHandler.remove(i,"mouseleave",this.toggleWrapperHover)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),n(27)),i=(n.n(o),n(2)),s=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonComboBox"},t.prototype.destroy=function(){this.parent=null},t.prototype.createComboBox=function(t,e){var n=this,r=this.parent.createElement("input",{id:t.id});e.appendChild(r);var s=t.comboBoxSettings;new o.ComboBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,allowCustom:!1,floatLabelType:"Never",ignoreAccent:!0,ignoreCase:!0,allowFiltering:s.allowFiltering,autofill:s.autofill,cssClass:(i.p+i.s+(s.cssClass?s.cssClass:"")).trim(),dataSource:s.dataSource,enabled:!t.disabled,fields:s.fields,filterType:s.filterType,footerTemplate:s.footerTemplate,groupTemplate:s.groupTemplate,headerTemplate:s.headerTemplate,index:s.index,itemTemplate:s.itemTemplate,noRecordsTemplate:s.noRecordsTemplate,placeholder:s.placeholder,popupHeight:s.popupHeight,popupWidth:s.popupWidth,showClearButton:s.showClearButton,sortOrder:s.sortOrder,text:s.text,value:s.value,width:s.width,beforeOpen:s.beforeOpen,open:s.open,htmlAttributes:s.htmlAttributes,close:function(t){s.close&&s.close.call(n,t)},filtering:s.filtering,change:s.change,select:s.select,created:s.created},r)},t.prototype.addOverFlowEvents=function(t,e,s){var c=this,a=e.querySelector("#"+t.id);a.setAttribute("data-control",t.type.toString());var u=n.i(r.getComponent)(a,o.ComboBox);u.setProperties({cssClass:u.cssClass+i.s+i.q}),u.close=function(e){var n=e.event?e.event.target:null;t.comboBoxSettings.close&&t.comboBoxSettings.close.call(c,e),n&&!n.closest(".e-ribbon-group-overflow-ddb")&&s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,c=e.querySelector("#"+t.id),a=n.i(r.getComponent)(c,o.ComboBox),u=a.cssClass.split(i.s);u=u.filter(function(t){return t!==i.q}),a.setProperties({cssClass:u.join(i.s)}),a.close=function(e){t.comboBoxSettings.close&&t.comboBoxSettings.close.call(s,e)}},t.prototype.getComboBoxObj=function(t){var e=n.i(i._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.ComboBox):null},t.prototype.filter=function(t,e,n,r){this.getComboBoxObj(t).filter(e,n,r)},t.prototype.hidePopup=function(t){var e=this.getComboBoxObj(t);e&&e.hidePopup()},t.prototype.showPopup=function(t){var e=this.getComboBoxObj(t);e&&e.showPopup()},t.prototype.updateComboBox=function(t,e){var s=n.i(i._52)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.comboBoxSettings,t);var c=n.i(i._58)(this.parent,e,s);if(c){t.cssClass&&(t.cssClass=(i.p+i.s+t.cssClass).trim()),delete t.close;n.i(r.getComponent)(c,o.ComboBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(10)),s=(n.n(i),n(2)),c=n(1),a=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonDropDown"},t.prototype.destroy=function(){this.parent=null},t.prototype.createDropDown=function(t,e){var r=this,i=this.parent.createElement("button",{id:t.id});e.appendChild(i);var a=t.dropDownSettings,u=(c.G+c.F+c.H+c.F+(a.cssClass?a.cssClass:"")).trim();new o.DropDownButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===s.d.Large?"Top":"Left",closeActionEvents:a.closeActionEvents,content:t.activeSize===s.d.Small?"":a.content,cssClass:u+(t.activeSize===s.d.Large?c.F+c.I:""),disabled:t.disabled,iconCss:a.iconCss,items:a.items,target:a.target,createPopupOnClick:a.createPopupOnClick,beforeClose:function(t){a.beforeClose&&a.beforeClose.call(r,t)},beforeItemRender:a.beforeItemRender,beforeOpen:a.beforeOpen,close:function(t){a.close&&a.close.call(r,t)},created:a.created,open:a.open,select:a.select}).appendTo(i),a.htmlAttributes&&n.i(s._64)(i,a.htmlAttributes)},t.prototype.addOverFlowEvents=function(t,e,i){var s=this,a=e.querySelector("#"+t.id);a.setAttribute("data-control",t.type.toString());var u=n.i(r.getComponent)(a,o.DropDownButton);u.cssClass=u.cssClass+c.F+c.L,u.dataBind();var l;u.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(s,e),l=e.event?e.event.target:null},u.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(s,e),l&&!l.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,s=e.querySelector("#"+t.id),a=n.i(r.getComponent)(s,o.DropDownButton),u=a.cssClass.split(c.F);u=u.filter(function(t){return t!==c.L}),a.cssClass=u.join(c.F),a.dataBind(),a.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(i,e)},a.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(i,e)}},t.prototype.createOverFlowDropDown=function(t,e,i,a,u,l){var p=this;this.enableRtl=l;var d=this.parent.createElement("button",{id:t+c.M+c.N});a.setAttribute("tabindex","0"),u.appendChild(d);var f=new o.DropDownButton({iconCss:i,target:a,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:c.I+c.F+c.O,iconPosition:"Top",content:e,beforeClose:function(t){t.cancel=!n.i(r.isNullOrUndefined)(t.event&&n.i(r.closest)(t.event.target,"."+c.L))}},d);return n.i(s._61)(a,this.parent),d.onclick=d.onkeydown=function(){p.itemIndex=0},a.onkeydown=function(t){p.keyActionHandler(t,a)},f},t.prototype.keyActionHandler=function(t,e){var n,r=e.querySelectorAll(".e-control"),o=e.querySelectorAll(".e-combobox");if(o)for(var i=0;i<o.length;i++)o[parseInt(i.toString(),10)].closest(".e-input-focus")&&(n=o[parseInt(i.toString(),10)]);if(n)for(var i=0;i<r.length;i++)r[parseInt(i.toString(),10)].classList.contains("e-combobox")&&r[parseInt(i.toString(),10)].closest(".e-input-focus")&&(this.itemIndex=i);(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-launcher-icon")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-first-item"))&&(("ArrowRight"===t.key||!t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,!this.enableRtl,r),("ArrowLeft"===t.key||t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,this.enableRtl,r))},t.prototype.handleNavigation=function(t,e,n){if(n[0].classList.contains("e-ribbon-first-item")||n[0].classList.add("e-ribbon-first-item"),n[n.length-1].classList.contains("e-ribbon-last-item")||n[n.length-1].classList.add("e-ribbon-last-item"),e){if(0===this.itemIndex&&n[parseInt(this.itemIndex.toString(),10)].classList.contains("e-ribbon-first-item")&&this.updateItemIndex(t,n,!0),t.target.classList.contains("e-combobox")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-group-container")||!t.target.classList.contains("e-ribbon-first-item")&&0===this.itemIndex||!t.target.classList.contains("e-control")||(this.itemIndex++,this.updateItemIndex(t,n,!0)),t.target.classList.contains("e-ribbon-last-item")){var r=!1;r=this.focusLauncherIcon(t,n),r||(this.itemIndex=0,this.updateItemIndex(t,n,!0))}t.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=0,this.updateItemIndex(t,n,!0))}else{if(t.target.classList.contains("e-combobox")||0===this.itemIndex||(this.itemIndex--,this.updateItemIndex(t,n,!1)),t.target.classList.contains("e-ribbon-first-item")){var r=!1;r=this.focusLauncherIcon(t,n),r||(this.itemIndex=n.length-1,this.updateItemIndex(t,n,!1))}t.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=n.length-1,this.updateItemIndex(t,n,!1))}t.target.classList.contains("e-combobox")&&"Tab"===t.key&&(e?this.itemIndex<n.length-1&&this.itemIndex++:this.itemIndex>0&&this.itemIndex--)},t.prototype.focusLauncherIcon=function(t,e){var n,r=e[parseInt(this.itemIndex.toString(),10)].closest(".e-ribbon-group-container");return r&&(n=r.querySelector(".e-ribbon-launcher-icon")),!!n&&("Tab"===t.key&&t.preventDefault(),r.querySelector(".e-ribbon-launcher-icon").focus(),!0)},t.prototype.updateItemIndex=function(t,e,n){for(var r=e[this.itemIndex].closest(".e-ribbon-item");r&&r.classList.contains("e-disabled");){if(n)if(this.itemIndex<e.length-1)this.itemIndex++;else{if(this.focusLauncherIcon(t,e))break;this.itemIndex=0}else if(this.itemIndex>0)this.itemIndex--;else{if(this.focusLauncherIcon(t,e))break;this.itemIndex=e.length-1}r=e[this.itemIndex].closest(".e-ribbon-item")}"Tab"===t.key&&t.preventDefault(),e[parseInt(this.itemIndex.toString(),10)].focus()},t.prototype.removeOverFlowDropDown=function(t){var e=n.i(r.getComponent)(t,o.DropDownButton);n.i(r.getComponent)(e.target,i.Tooltip).destroy(),t.parentElement.parentElement.insertBefore(e.target,t.parentElement),e.destroy(),n.i(r.remove)(t)},t.prototype.getDDBItemElement=function(t,e){return n.i(r.getComponent)(t,o.DropDownButton).dropDown.element.querySelector("#"+e)},t.prototype.getOverflowDropDownPopup=function(t,e){var i=e.querySelector("#"+this.parent.tabs[t.tabIndex].groups[t.groupIndex].id+c.M+c.N);return n.i(r.getComponent)(i,o.DropDownButton).dropDown.element},t.prototype.getDropDownObj=function(t){var e=n.i(s._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.DropDownButton):null},t.prototype.addItems=function(t,e,n){this.getDropDownObj(t).addItems(e,n)},t.prototype.removeItems=function(t,e,n){this.getDropDownObj(t).removeItems(e,n)},t.prototype.toggle=function(t){this.getDropDownObj(t).toggle()},t.prototype.updateDropDown=function(t,e){var i=n.i(s._52)(this.parent.tabs,e);if(i){n.i(r.merge)(i.item.dropDownSettings,t);var a=n.i(s._58)(this.parent,e,i);if(a){var u=n.i(r.getComponent)(a,o.DropDownButton);t.cssClass&&(t.cssClass=(c.H+c.F+c.G+c.F+t.cssClass).trim(),t.cssClass=i.item.activeSize===s.d.Large?(c.I+c.F+t.cssClass).trim():t.cssClass,u.cssClass=t.cssClass),delete t.close,delete t.beforeClose,t.content&&(t.content=i.item.activeSize===s.d.Small?"":t.content),u.setProperties(t)}}},t.prototype.updateDropDownSize=function(t,e){var i=n.i(r.getComponent)(t,o.DropDownButton),a=i.cssClass.split(c.F);e.activeSize===s.d.Large?a.push(c.I):a=a.filter(function(t){return t!==c.I}),i.cssClass=a.join(c.F),i.setProperties({iconPosition:e.activeSize===s.d.Large?"Top":"Left"}),i.setProperties({content:e.activeSize===s.d.Small?"":e.dropDownSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),o=(n.n(r),n(1)),i=n(7),s=(n.n(i),n(5)),c=n(3),a=(n.n(c),n(8)),u=n(10),l=(n.n(u),function(){function t(t){this.parent=t,this.isSelected=!1}return t.prototype.getModuleName=function(){return"ribbonGroupButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createGroupButton=function(t,e){var u=this,l=t.groupButtonSettings;this.count=0;var p=this.parent.createElement("div",{id:t.id+o.A,className:"e-btn-group"});e.appendChild(p);for(var d=0;d<l.items.length;d++)if(l.items[parseInt(d.toString(),10)].iconCss){var f=this.parent.createElement("button",{id:t.id+o.A+d,className:o.B});p.appendChild(f),new i.Button({iconCss:l.items[parseInt(d.toString(),10)].iconCss,disabled:t.disabled,enableRtl:this.parent.enableRtl,content:t.activeSize===s.c.Small?"":l.items[parseInt(d.toString(),10)].content,iconPosition:t.activeSize===s.c.Large?"Top":"Left"},f),l.items[parseInt(d.toString(),10)].htmlAttributes&&n.i(a.c)(f,l.items[parseInt(d.toString(),10)].htmlAttributes);var h=e.querySelector("#"+t.id+o.A+d);l.selection===s.d.Single?p.classList.add(o.C):p.classList.add(o.D),l.items[parseInt(d.toString(),10)].selected&&(l.selection===s.d.Multiple?h.classList.add("e-active"):this.count<1&&(h.classList.add("e-active"),this.count++)),l.items[parseInt(d.toString(),10)].ribbonTooltipSettings&&n.i(a.a)(l.items[parseInt(d.toString(),10)].ribbonTooltipSettings)&&(f.classList.add(o.e),this.parent.tooltipData.push({id:f.id,data:l.items[parseInt(d.toString(),10)].ribbonTooltipSettings})),r.EventHandler.add(h,"click",this.groupButtonClicked.bind(this,d,t,l),this)}if("Simplified"===this.parent.activeLayout){var b=void 0,m=0,v=0,h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var d=0;d<l.items.length;d++)t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&!this.isSelected&&l.selection===s.d.Single?(b=t.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss,this.isSelected=!0):t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&l.selection===s.d.Multiple&&(m++,b=1===m?t.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss:null);for(;v<t.groupButtonSettings.items.length&&!this.isSelected&&!b;)t.groupButtonSettings.items[parseInt(v.toString(),10)].iconCss&&(b=t.groupButtonSettings.items[parseInt(v.toString(),10)].iconCss,this.isSelected=!0),v++;new c.DropDownButton({iconCss:b,target:p,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h),h.onclick=h.onkeydown=function(){e.querySelector("#"+t.id).classList.contains("e-active")&&(document.querySelector("#"+t.id+o.A+0).focus(),u.grpBtnIndex=0)},p.onkeydown=function(e){"Simplified"===u.parent.activeLayout&&u.handleGroupButtonNavigation(e,t)},n.i(a.d)(p,this.parent),this.isSelected=!1}},t.prototype.groupButtonClicked=function(t,e,i){for(var a,u,l=[],p=[],d=[],f=0;f<i.items.length;f++)document.querySelector("#"+e.id+o.A+f)&&document.querySelector("#"+e.id+o.A+f).classList.contains("e-active")&&l.push(i.items[parseInt(f.toString(),10)]);document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")||p.push(i.items[parseInt(t.toString(),10)]);var h={cancel:!1,previousItems:l,selectingItems:p};if(i.items[parseInt(t.toString(),10)].beforeClick&&i.items[parseInt(t.toString(),10)].beforeClick.call(this,h),!h.cancel){if(i.selection===s.d.Single){document.querySelector("#"+e.id+o.A).classList.contains(o.D)&&(document.querySelector("#"+e.id+o.A).classList.remove(o.D),document.querySelector("#"+e.id+o.A).classList.add(o.C));for(var f=0;f<i.items.length;f++)document.querySelector("#"+e.id+o.A+f)&&document.querySelector("#"+e.id+o.A+f).classList.contains("e-active")&&document.querySelector("#"+e.id+o.A+f).classList.remove("e-active");document.querySelector("#"+e.id+o.A+t).classList.toggle("e-active"),document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&(this.grpBtnIndex=t,a=document.querySelector("#"+e.id),u=n.i(r.getComponent)(a,c.DropDownButton),u.setProperties({iconCss:i.items[parseInt(t.toString(),10)].iconCss}))}else{document.querySelector("#"+e.id+o.A).classList.contains(o.C)&&(document.querySelector("#"+e.id+o.A).classList.remove(o.C),document.querySelector("#"+e.id+o.A).classList.add(o.D)),document.querySelector("#"+e.id+o.A+t).classList.toggle("e-active");for(var b=0,m=0;m<i.items.length;m++)document.querySelector("#"+e.id+o.A+m)&&document.querySelector("#"+e.id+o.A+m).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&m!==t&&(this.isSelected=!0,b++);if("Simplified"===this.parent.activeLayout){var v=null,y=0;if(a=document.querySelector("#"+e.id),u=n.i(r.getComponent)(a,c.DropDownButton),this.isSelected){if(1===b&&!document.querySelector("#"+e.id+o.A+t).classList.contains("e-active"))for(var m=0;m<i.items.length;m++)document.querySelector("#"+e.id+o.A+m)&&document.querySelector("#"+e.id+o.A+m).classList.contains("e-active")&&(v=i.items[parseInt(m.toString(),10)].iconCss)}else document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&(v=i.items[parseInt(t.toString(),10)].iconCss);for(;y<i.items.length&&!v;)i.items[parseInt(y.toString(),10)].iconCss&&(v=i.items[parseInt(y.toString(),10)].iconCss),y++;u.setProperties({iconCss:v}),this.grpBtnIndex=t}this.isSelected=!1}document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&d.push(i.items[parseInt(t.toString(),10)]);var g={previousItems:l,selectedItems:d};i.items[parseInt(t.toString(),10)].click&&i.items[parseInt(t.toString(),10)].click.call(this,g)}},t.prototype.switchGroupButton=function(t,e){var i=this,u=t.groupButtonSettings,l=null,p=0,d=0;if("Simplified"===this.parent.activeLayout){var f=e.querySelector("#"+t.id+o.A),h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var b=0;b<u.items.length;b++)document.querySelector("#"+t.id+o.A+b)&&(document.querySelector("#"+t.id+o.A+b).classList.contains("e-active")&&u.selection===s.d.Single?l=u.items[parseInt(b.toString(),10)].iconCss:document.querySelector("#"+t.id+o.A+b).classList.contains("e-active")&&u.selection===s.d.Multiple&&(p++,1===p?l=u.items[parseInt(b.toString(),10)].iconCss:p>1&&(l=null)));for(;d<u.items.length&&!l;)u.items[parseInt(d.toString(),10)].iconCss&&(l=u.items[parseInt(d.toString(),10)].iconCss),d++;new c.DropDownButton({iconCss:l,target:f,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h),h.onclick=h.onkeydown=function(){e.querySelector("#"+t.id).classList.contains("e-active")&&(document.querySelector("#"+t.id+o.A+0).focus(),i.grpBtnIndex=0)},f.onkeydown=function(e){"Simplified"===i.parent.activeLayout&&i.handleGroupButtonNavigation(e,t)},n.i(a.d)(f,this.parent)}else{var m=e.querySelector("#"+t.id),v=n.i(r.getComponent)(m,c.DropDownButton);e.appendChild(v.target),m&&(v.destroy(),n.i(r.remove)(m))}},t.prototype.handleGroupButtonNavigation=function(t,e){var i=document.querySelector("#"+e.id),s=n.i(r.getComponent)(i,c.DropDownButton),a=s.target,u=!1;"Simplified"===this.parent.activeLayout&&a.closest(".e-ribbon-dropdown-group-button").classList.contains(o.E)&&(u=!0),"Tab"===t.key&&t.preventDefault();var l=e.groupButtonSettings;"ArrowRight"===t.key&&!u||"ArrowDown"===t.key&&u?!this.parent.enableRtl||"ArrowDown"===t.key&&u?(this.grpBtnIndex++,this.grpBtnIndex<l.items.length?document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus())):0===this.grpBtnIndex?(this.grpBtnIndex=l.items.length-1,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):("ArrowLeft"===t.key&&!u||"ArrowUp"===t.key&&u)&&(!this.parent.enableRtl||"ArrowUp"===t.key&&u?0===this.grpBtnIndex?(this.grpBtnIndex=l.items.length-1,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex++,this.grpBtnIndex<l.items.length?document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus())))},t.prototype.addOverFlowEvents=function(t,e){var i=this,s=e.querySelector("#"+t.id),a=n.i(r.getComponent)(s,c.DropDownButton);a.setProperties({cssClass:a.cssClass+o.F+o.E});var u=a.target;u.onclick=function(){"Simplified"===i.parent.activeLayout&&u.closest(".e-ribbon-dropdown-group-button").classList.contains(o.E)&&(a.element.focus(),a.toggle())}},t.prototype.removeOverFlowEvents=function(t,e){var i=e.querySelector("#"+t.id);if(i){var s=n.i(r.getComponent)(i,c.DropDownButton),a=s.cssClass.split(o.F);a=a.filter(function(t){return t!==o.E}),s.setProperties({cssClass:a.join(o.F)})}},t.prototype.destroyDropDown=function(t){var e=document.querySelector("#"+t.id);if(e){var o=n.i(r.getComponent)(e,c.DropDownButton);n.i(r.getComponent)(o.target,u.Tooltip).destroy(),o.destroy(),n.i(r.remove)(e)}},t.prototype.updateGroupButtonSize=function(t,e){for(var c,a=e.groupButtonSettings,u=0;u<a.items.length;u++)if(c="Classic"===this.parent.activeLayout?t.querySelector("#"+e.id+o.A+u):document.querySelector("#"+e.id+o.A+u)){var l=n.i(r.getComponent)(c,i.Button);l.setProperties({iconPosition:e.activeSize===s.c.Large?"Top":"Left",content:e.activeSize===s.c.Small?"":a.items[parseInt(u.toString(),10)].content})}},t}())},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonSplitButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createSplitButton=function(t,e){var c=this,a=this.parent.createElement("button",{id:t.id});e.appendChild(a);var u=t.splitButtonSettings,l=(s.G+s.F+s.H+s.F+(u.cssClass?u.cssClass:"")).trim(),p=new o.SplitButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===i.d.Large?"Top":"Left",closeActionEvents:u.closeActionEvents,cssClass:l+(t.activeSize===i.d.Large?s.F+s.I:""),disabled:t.disabled,iconCss:u.iconCss,items:u.items,target:u.target,beforeClose:function(t){u.beforeClose&&u.beforeClose.call(c,t)},beforeItemRender:u.beforeItemRender,beforeOpen:u.beforeOpen,close:function(){p.wrapper.classList.remove(s.J),u.close&&u.close.call(c)},created:u.created,open:function(){p.wrapper.classList.add(s.J),u.open&&u.open.call(c)},select:u.select,click:function(t){u.click&&u.click.call(c,t)}},a);u.htmlAttributes&&n.i(i._64)(a,u.htmlAttributes);var d=a.parentElement.querySelector(".e-dropdown-btn");d.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),d.click())},this.setContent(t,p);var f=p.wrapper;r.EventHandler.add(f,"mouseenter",function(){f.classList.add(s.K)},this),r.EventHandler.add(f,"mouseleave",function(){f.classList.remove(s.K)},this)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,a=e.querySelector("#"+t.id);a.setAttribute("data-control",t.type.toString());var u=n.i(r.getComponent)(a,o.SplitButton);u.cssClass=u.cssClass+s.F+s.L,u.dataBind();var l=a.parentElement.querySelector(".e-dropdown-btn"),p=l.getAttribute("id"),d=document.querySelector("#"+p+"-popup");l.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),l.click())},d.onkeydown=function(t){"Enter"===t.key&&(t.preventDefault(),u.wrapper.classList.remove("e-ribbon-open"),d.querySelector(".e-focused").click())};var f;u.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(c,e),f=e.event?e.event.target:null},u.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(c,e),i.toggle()},u.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(c,e),u.wrapper.classList.remove(s.J),f&&!f.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),a=n.i(r.getComponent)(c,o.SplitButton),u=a.cssClass.split(s.F);u=u.filter(function(t){return t!==s.L}),a.cssClass=u.join(s.F),a.dataBind(),a.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(i,e)},a.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(i,e)},a.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(i,e),a.wrapper.classList.remove(s.J)}},t.prototype.setContent=function(t,e){e.primaryBtnObj.setProperties({content:t.activeSize===i.d.Medium?t.splitButtonSettings.content:""}),e.secondaryBtnObj.setProperties({content:t.activeSize===i.d.Large?t.splitButtonSettings.content:""})},t.prototype.getSplitButtonObj=function(t){var e=n.i(i._58)(this.parent,t);return n.i(r.getComponent)(e,o.SplitButton)},t.prototype.addItems=function(t,e,n){this.getSplitButtonObj(t).addItems(e,n)},t.prototype.removeItems=function(t,e,n){this.getSplitButtonObj(t).removeItems(e,n)},t.prototype.toggle=function(t){this.getSplitButtonObj(t).toggle()},t.prototype.updateSplitButton=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.splitButtonSettings,t);var a=n.i(i._58)(this.parent,e,c);if(a){var u=n.i(r.getComponent)(a,o.SplitButton);t.cssClass&&(t.cssClass=(s.H+s.F+s.G+s.F+t.cssClass).trim(),t.cssClass=c.item.activeSize===i.d.Large?(s.I+s.F+t.cssClass).trim():t.cssClass,u.cssClass=t.cssClass),delete t.open,delete t.click,delete t.close,delete t.beforeClose,u.setProperties(t),t.content&&this.setContent(c.item,u)}}},t.prototype.updateSplitButtonSize=function(t,e){var c=n.i(r.getComponent)(t,o.SplitButton),a=c.cssClass.split(s.F);e.activeSize===i.d.Large?a.push(s.I):a=a.filter(function(t){return t!==s.I}),c.cssClass=a.join(s.F),c.setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left"}),this.setContent(e,c)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),o=(n.n(r),n(14)),i=n(15),s=n(6),c=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},a([n.i(r.Property)("File")],e.prototype,"text",void 0),a([n.i(r.Property)(!1)],e.prototype,"visible",void 0),a([n.i(r.Property)("auto")],e.prototype,"height",void 0),a([n.i(r.Property)("auto")],e.prototype,"width",void 0),a([n.i(r.Property)(null)],e.prototype,"target",void 0),a([n.i(r.Complex)({},o.a)],e.prototype,"backButton",void 0),a([n.i(r.Collection)([],i.a)],e.prototype,"items",void 0),a([n.i(r.Property)("")],e.prototype,"template",void 0),a([n.i(r.Complex)({},s.a)],e.prototype,"ribbonTooltipSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(6)),s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},c([n.i(r.Property)("File")],e.prototype,"text",void 0),c([n.i(r.Property)(!1)],e.prototype,"visible",void 0),c([n.i(r.Collection)([],o.MenuItem)],e.prototype,"menuItems",void 0),c([n.i(r.Property)(!1)],e.prototype,"showItemOnClick",void 0),c([n.i(r.Complex)({},o.MenuAnimationSettings)],e.prototype,"animationSettings",void 0),c([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),c([n.i(r.Property)("")],e.prototype,"popupTemplate",void 0),c([n.i(r.Complex)({},i.a)],e.prototype,"ribbonTooltipSettings",void 0),c([n.i(r.Event)()],e.prototype,"beforeClose",void 0),c([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),c([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),c([n.i(r.Event)()],e.prototype,"close",void 0),c([n.i(r.Event)()],e.prototype,"open",void 0),c([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(24)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"groups",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";var r=n(44);n.d(e,"a",function(){return r.a});var o=n(43);n.d(e,"b",function(){return o.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(2)),s=n(8),c=n(1),a=n(7),u=(n.n(a),n(10)),l=(n.n(u),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),p=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return l(e,t),e.prototype.render=function(){},e.prototype.preRender=function(){},e.prototype.getPersistData=function(){return""},e.prototype.onPropertyChanged=function(){},e.prototype.getModuleName=function(){return"ribbonBackstage"},e.prototype.destroy=function(){this.backstageButton&&this.destroyDDB(),this.parent=null},e.prototype.createBackStage=function(t){var e=this;if(t.visible){this.backstageButtonEle=this.parent.createElement("button",{id:this.parent.element.id+c.a});var n=this.parent.tabObj.element,o=n.querySelector(".e-toolbar");if(n.insertBefore(this.backstageButtonEle,o),this.backstageButton=new a.Button({content:t.text,enableRtl:this.parent.enableRtl,cssClass:c.b,created:function(){n.style.setProperty(c.c,e.backstageButtonEle.offsetWidth+"px")}},this.backstageButtonEle),this.createBackStagePopup(t),this.parent.backStageMenu.template)this.createBackStageTemplate(this.parent.backStageMenu.template);else{for(var i=0,s=0,u=0;u<t.items.length;u++){t.items[parseInt(u.toString(),10)].isFooter?i++:s++}s>0&&this.createBackstageMenu(t,!1),i>0&&this.createBackstageMenu(t,!0),this.menuCtrl&&this.checkMenuItems(this.menuCtrl.items),this.footerMenuCtrl&&this.checkMenuItems(this.footerMenuCtrl.items)}this.backstageButtonEle.onclick=function(n){n.stopPropagation(),e.showBackstage(),e.popupHTMLElement.classList.add(c.d);var r=e.menuWrapper.querySelector(".e-menu-item.e-selected");r&&r.classList.remove("e-selected");for(var o=0;o<t.items.length;o++){var i=t.items[parseInt(o.toString(),10)];if(!i.isFooter&&e.menuCtrl.items[0].text===i.text){var s=e.popupHTMLElement.querySelector("#"+e.menuCtrl.items[0].id);s&&(s.classList.add("e-selected"),s.focus()),e.createBackStageContent(e.menuCtrl.items[0].id,i.content);break}}},this.parent.tabObj.refreshActiveTabBorder(),this.addBackStageMenuTooltip(t),r.EventHandler.add(document,"click",this.onClickEvent,this)}},e.prototype.onClickEvent=function(t){var e=t.target;this.popupHTMLElement.contains(e)||this.hideBackstage()},e.prototype.addBackStageMenuTooltip=function(t){n.i(s.a)(t.ribbonTooltipSettings)&&(this.backstageButtonEle.classList.add(c.e),this.parent.tooltipData.push({id:this.backstageButtonEle.id,data:t.ribbonTooltipSettings}))},e.prototype.checkMenuItems=function(t){for(var e=0;e<t.length;e++){var n=t[parseInt(e.toString(),10)];if(!n.iconCss){this.popupHTMLElement.querySelector("#"+n.id).classList.add(c.f)}}},e.prototype.createBackStagePopup=function(t){var e=this;this.popupHTMLElement=this.parent.createElement("div",{id:this.parent.element.id+c.g,className:c.h});var n;t.target?(n=t.target instanceof HTMLElement?t.target:document.querySelector(t.target),n.appendChild(this.popupHTMLElement)):this.parent.element.appendChild(this.popupHTMLElement),this.popupEle=new u.Popup(this.popupHTMLElement,{height:t.height,width:t.width,relateTo:t.target||this.parent.element,enableRtl:this.parent.enableRtl}),this.parent.enableRtl&&this.updatePopupPositionOnRtl(this.parent.enableRtl),this.popupHTMLElement.onkeydown=function(t){"Escape"===t.code&&e.hideBackstage()},this.hideBackstage()},e.prototype.updatePopupPositionOnRtl=function(t){var e=this.popupHTMLElement.style;t?(e.right=e.left,e.left="unset"):(e.left=e.right,e.right="unset")},e.prototype.createBackstageMenu=function(t,e){var n=this;if(this.popupHTMLElement.querySelector("#"+this.parent.element.id+"_wrapper")||(this.menuWrapper=this.parent.createElement("div",{id:this.parent.element.id+"_wrapper",className:c.i}),this.popupHTMLElement.appendChild(this.menuWrapper)),t.backButton.visible&&!e){var r=this.parent.createElement("button",{id:this.parent.element.id+"_close",className:"e-ribbon-close-btn"});this.closeBtn=new a.Button({content:t.backButton.text,iconCss:t.backButton.iconCss?t.backButton.iconCss:c.j,enableRtl:this.parent.enableRtl},r),this.menuWrapper.append(r),r.onclick=function(){n.popupHTMLElement.classList.remove(c.d),n.hideBackstage(),n.isBackButtonClicked=!0}}this.popupHTMLElement.querySelector("#"+this.parent.element.id+"_itemswrapper")||(this.itemsWrapperEle=this.parent.createElement("div",{id:this.parent.element.id+"_itemswrapper",className:c.k}),this.menuWrapper.append(this.itemsWrapperEle));var i;e?(i=this.parent.createElement("ul",{id:this.parent.element.id+c.l}),this.itemsWrapperEle.appendChild(i)):(this.ulMenuElem=this.parent.createElement("ul",{id:this.parent.element.id+c.m}),this.itemsWrapperEle.appendChild(this.ulMenuElem)),e?this.footerMenuCtrl=new o.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:c.n,items:this.cloneFooterMenuItem(t.items),select:this.menuSelect.bind(this,t)},i):this.menuCtrl=new o.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:c.n,items:this.cloneMenuItem(t.items),select:this.menuSelect.bind(this,t)},this.ulMenuElem)},e.prototype.cloneMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];r.isFooter||e.push({id:r.id,iconCss:r.iconCss,separator:r.separator,text:r.text})}return e},e.prototype.cloneFooterMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];r.isFooter&&e.push({id:r.id,iconCss:r.iconCss,separator:r.separator,text:r.text})}return e},e.prototype.createBackStageContent=function(t,e){this.clearTemplate(["backstageContent"]),this.backstageContentEle?(this.backstageContentEle.innerHTML="",this.backstageContentEle.id=t+c.o):this.backstageContentEle=this.parent.createElement("div",{id:t+c.o,className:c.p});var o=n.i(s.b)(e);return n.i(r.append)(o({},this,"backstageContent","backstageContent",this.parent.isStringTemplate),this.backstageContentEle),e&&this.popupHTMLElement.append(this.backstageContentEle),this.renderReactTemplates(),o},e.prototype.createBackStageTemplate=function(t){this.clearTemplate(["backstageTemplate"]),this.backstageTempEle=this.parent.createElement("div",{id:this.parent.element.id+c.a+"_template",className:c.q});var e=n.i(s.b)(t);return n.i(r.append)(e({},this,"backstageTemplate","backstageTemplate",this.parent.isStringTemplate),this.backstageTempEle),this.popupHTMLElement.append(this.backstageTempEle),this.renderReactTemplates(),e},e.prototype.menuSelect=function(t,e){for(var n=0;n<t.items.length;n++){var r=t.items[parseInt(n.toString(),10)];if(r.text===e.item.text){this.contentItem=r;break}}this.createBackStageContent(e.item.id,this.contentItem.content);var o={cancel:!1,target:e.element,item:this.contentItem,isBackButton:this.isBackButtonClicked};this.contentItem.backStageItemClick&&this.contentItem.backStageItemClick.call(this,o)},e.prototype.setCommonProperties=function(t){this.backstageButton&&(this.backstageButton.setProperties(t),this.popupEle&&(this.popupEle.setProperties(t),this.popupHTMLElement&&this.updatePopupPositionOnRtl(t.enableRtl),this.menuCtrl&&(this.menuCtrl.setProperties(t),this.closeBtn&&this.closeBtn.setProperties(t))))},e.prototype.updateBackStageMenu=function(t){if(t.visible)if(this.backstageButton){if(t.text&&(this.backstageButton.setProperties({content:t.text}),this.parent.tabObj.element.style.setProperty(c.c,this.backstageButtonEle.offsetWidth+"px")),this.popupEle&&this.popupEle.setProperties({height:t.height,width:t.width,target:t.target||this.parent.element}),t.template)this.backstageTempEle&&(n.i(r.remove)(this.backstageTempEle),this.backstageTempEle=null),this.createBackStageTemplate(t.template);else if(this.menuCtrl&&this.menuCtrl.setProperties({items:this.cloneMenuItem(t.items)}),this.footerMenuCtrl)this.footerMenuCtrl.setProperties({items:this.cloneFooterMenuItem(t.items)});else{for(var e=0,o=0,i=0;i<t.items.length;i++){var s=t.items[parseInt(i.toString(),10)];s.isFooter?e++:o++}o>0&&this.createBackstageMenu(t,!1),e>0&&this.createBackstageMenu(t,!0)}this.removeBackstageMenuTooltip(),this.addBackStageMenuTooltip(t)}else this.createBackStage(t);else this.backstageButton&&this.destroyDDB();this.parent.tabObj.refreshActiveTabBorder()},e.prototype.destroyMenu=function(){this.menuCtrl&&(this.menuCtrl.destroy(),this.menuCtrl=null)},e.prototype.destroyDDB=function(){this.removeBackstageMenuTooltip(),this.parent.tabObj.element.style.removeProperty(c.c),this.destroyMenu(),this.backstageButton.destroy(),this.backstageButton=null,n.i(r.remove)(this.backstageButtonEle),this.backstageButtonEle=null,r.EventHandler.remove(document,"click",this.onClickEvent)},e.prototype.removeBackstageMenuTooltip=function(){var t=this,e=n.i(i._50)(this.parent.tooltipData,function(e){return e.id===t.backstageButtonEle.id});-1!==e&&(this.backstageButtonEle.classList.remove(c.e),this.parent.tooltipData.splice(e,1))},e.prototype.addBackstageItems=function(t,e,n,r){for(var o=0;o<t.length;o++){var i=t[parseInt(o.toString(),10)];i.isFooter?n?this.footerMenuCtrl.insertAfter(t,e,r):this.footerMenuCtrl.insertBefore(t,e,r):n?this.menuCtrl.insertAfter(t,e,r):this.menuCtrl.insertBefore(t,e,r)}for(var s=[].concat(this.menuCtrl.items,this.footerMenuCtrl.items),c=this.parent.backStageMenu,o=0;o<c.items.length;o++)for(var i=c.items[parseInt(o.toString(),10)],a=0;a<s.length;a++){var u=s[parseInt(a.toString(),10)];if(i.text===u.text){u.content=i.content;break}}this.parent.backStageMenu.setProperties({items:s},!0)},e.prototype.removeBackstageItems=function(t,e){this.menuCtrl.removeItems(t,e),this.footerMenuCtrl.removeItems(t,e);var n=[].concat(this.menuCtrl.items,this.footerMenuCtrl.items);this.parent.backStageMenu.setProperties({items:n},!0)},e.prototype.showBackstage=function(){this.popupEle.show()},e.prototype.hideBackstage=function(){this.popupEle.element.classList.contains(c.d)&&this.popupEle.element.classList.remove(c.d),this.popupEle.hide()},e}(r.Component)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(9)),s=(n.n(i),n(2)),c=n(1),a=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonFileMenu"},t.prototype.destroy=function(){this.fileMenuDDB&&this.destroyDDB(),this.parent=null},t.prototype.createFileMenu=function(t){var e=this;if(t.visible){this.ddbElement=this.parent.createElement("button",{id:this.parent.element.id+c.y});var n=this.parent.tabObj.element,r=n.querySelector(".e-toolbar");n.insertBefore(this.ddbElement,r),this.fileMenuDDB=new o.DropDownButton({content:t.text,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-file-menu e-caret-hide",created:function(){n.style.setProperty(c.c,e.ddbElement.offsetWidth+"px")},beforeClose:this.ddbBeforeEvent.bind(this,!1),beforeOpen:this.ddbBeforeEvent.bind(this,!0),close:this.ddbAfterEvent.bind(this,!1),open:this.ddbAfterEvent.bind(this,!0)},this.ddbElement),this.parent.fileMenu.popupTemplate?this.fileMenuDDB.setProperties({target:this.parent.fileMenu.popupTemplate}):this.createRibbonMenu(t),this.parent.tabObj.refreshActiveTabBorder(),this.addFileMenuTooltip(t)}},t.prototype.addFileMenuTooltip=function(t){n.i(s._59)(t.ribbonTooltipSettings)&&(this.ddbElement.classList.add(c.e),this.parent.tooltipData.push({id:this.ddbElement.id,data:t.ribbonTooltipSettings}))},t.prototype.ddbBeforeEvent=function(t,e){!t&&e.event&&e.event.target.closest(".e-ribbon-menu")&&(e.cancel=!0);var n=t?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(n){var r={cancel:e.cancel,element:e.element,event:e.event};n.call(this,r),e.cancel=r.cancel}},t.prototype.ddbAfterEvent=function(t,e){(t?this.fileMenuDDB.target:this.fileMenuDDB.element).focus();var n=t?this.parent.fileMenu.open:this.parent.fileMenu.close;if(n){var r={element:e.element};n.call(this,r)}},t.prototype.cloneMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];e.push({iconCss:r.iconCss,id:r.id,separator:r.separator,text:r.text,url:r.url,items:this.cloneMenuItem(r.items)})}return e},t.prototype.createRibbonMenu=function(t){var e=this,n=this.parent.createElement("ul",{id:this.parent.element.id+c.z});this.fileMenuDDB.setProperties({target:n}),this.menuctrl=new i.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-menu",animationSettings:t.animationSettings,items:this.cloneMenuItem(t.menuItems),showItemOnClick:t.showItemOnClick,template:t.itemTemplate,beforeClose:this.menuBeforeEvent.bind(this,!1),beforeOpen:this.menuBeforeEvent.bind(this,!0),beforeItemRender:this.beforeItemRender.bind(this),onClose:this.menuAfterEvent.bind(this,!1),onOpen:this.menuAfterEvent.bind(this,!0),select:this.menuSelect.bind(this)},n),r.EventHandler.add(n,"keydown",function(t){"Tab"===t.key&&e.fileMenuDDB.toggle()},this)},t.prototype.menuBeforeEvent=function(t,e){var n=t?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(n){var r={cancel:e.cancel,element:e.element,event:e.event,items:e.items,parentItem:e.parentItem};n.call(this,r),e.cancel=r.cancel}},t.prototype.menuAfterEvent=function(t,e){var n=t?this.parent.fileMenu.open:this.parent.fileMenu.close;if(n){var r={element:e.element,items:e.items,parentItem:e.parentItem};n.call(this,r)}},t.prototype.beforeItemRender=function(t){var e=this.parent.fileMenu.beforeItemRender;if(e){var n={element:t.element,item:t.item};e.call(this,n)}},t.prototype.menuSelect=function(t){var e=this.parent.fileMenu.select;if(e){var n={element:t.element,item:t.item,event:t.event};e.call(this,n),t.element.classList.contains("e-menu-caret-icon")||this.fileMenuDDB.toggle()}},t.prototype.setCommonProperties=function(t){this.fileMenuDDB&&(this.fileMenuDDB.setProperties(t),this.menuctrl&&this.menuctrl.setProperties(t))},t.prototype.updateFileMenu=function(t){t.visible?this.fileMenuDDB?(t.text&&(this.fileMenuDDB.setProperties({content:t.text}),this.parent.tabObj.element.style.setProperty(c.c,this.ddbElement.offsetWidth+"px")),t.popupTemplate?(this.menuctrl&&this.destroyMenu(),this.fileMenuDDB.setProperties({target:t.popupTemplate})):this.menuctrl?this.menuctrl.setProperties({animationSettings:t.animationSettings,items:this.cloneMenuItem(t.menuItems),showItemOnClick:t.showItemOnClick,template:t.itemTemplate}):this.createRibbonMenu(t),this.removeFileMenuTooltip(),this.addFileMenuTooltip(t)):this.createFileMenu(t):this.fileMenuDDB&&this.destroyDDB(),this.parent.tabObj.refreshActiveTabBorder()},t.prototype.destroyMenu=function(){this.menuctrl&&(this.menuctrl.destroy(),this.menuctrl=null)},t.prototype.destroyDDB=function(){this.removeFileMenuTooltip(),this.parent.tabObj.element.style.removeProperty(c.c),this.destroyMenu(),this.fileMenuDDB.destroy(),this.fileMenuDDB=null,n.i(r.remove)(this.ddbElement),this.ddbElement=null},t.prototype.removeFileMenuTooltip=function(){var t=this,e=n.i(s._50)(this.parent.tooltipData,function(e){return e.id===t.ddbElement.id});-1!==e&&(this.ddbElement.classList.remove(c.e),this.parent.tooltipData.splice(e,1))},t.prototype.addItems=function(t,e,n,r){n?this.menuctrl.insertAfter(t,e,r):this.menuctrl.insertBefore(t,e,r),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.removeItems=function(t,e){this.menuctrl.removeItems(t,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.enableItems=function(t,e){this.menuctrl.enableItems(t,!0,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.disableItems=function(t,e){this.menuctrl.enableItems(t,!1,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.setItem=function(t,e,n){this.menuctrl.setItem(t,e,n),this.menuctrl.refresh(),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(28);n.d(e,"RibbonTabDirective",function(){return r.a}),n.d(e,"RibbonTabsDirective",function(){return r.b}),n.d(e,"RibbonGroupDirective",function(){return r.c}),n.d(e,"RibbonGroupsDirective",function(){return r.d}),n.d(e,"RibbonCollectionDirective",function(){return r.e}),n.d(e,"RibbonCollectionsDirective",function(){return r.f}),n.d(e,"RibbonItemDirective",function(){return r.g}),n.d(e,"RibbonItemsDirective",function(){return r.h}),n.d(e,"RibbonComponent",function(){return r.i});var o=n(4);n.n(o);n.o(o,"Inject")&&n.d(e,"Inject",function(){return o.Inject});var i=n(11);n.d(e,"Ribbon",function(){return i.a}),n.d(e,"RibbonLayout",function(){return i.b}),n.d(e,"ItemOrientation",function(){return i.c}),n.d(e,"RibbonItemSize",function(){return i.d}),n.d(e,"DisplayMode",function(){return i.e}),n.d(e,"RibbonItemType",function(){return i.f}),n.d(e,"RibbonGroupButtonSelection",function(){return i.g}),n.d(e,"ITEM_VERTICAL_CENTER",function(){return i.h}),n.d(e,"EXPAND_COLLAPSE_ICON",function(){return i.i}),n.d(e,"BACKSTAGE_CLOSE_ICON",function(){return i.j}),n.d(e,"OVERFLOW_ICON",function(){return i.k}),n.d(e,"VERTICAL_DDB",function(){return i.l}),n.d(e,"DISABLED_CSS",function(){return i.m}),n.d(e,"RTL_CSS",function(){return i.n}),n.d(e,"RIBBON_HOVER",function(){return i.o}),n.d(e,"RIBBON_CONTROL",function(){return i.p}),n.d(e,"RIBBON_POPUP_CONTROL",function(){return i.q}),n.d(e,"RIBBON_POPUP_OPEN",function(){return i.r}),n.d(e,"SPACE",function(){return i.s}),n.d(e,"HORIZONTAL_SCROLLBAR",function(){return i.t}),n.d(e,"HIDE_CSS",function(){return i.u}),n.d(e,"RIBBON_TAB",function(){return i.v}),n.d(e,"RIBBON_TAB_ACTIVE",function(){return i.w}),n.d(e,"RIBBON_TAB_ITEM",function(){return i.x}),n.d(e,"RIBBON_COLLAPSE_BUTTON",function(){return i.y}),n.d(e,"RIBBON_EXPAND_BUTTON",function(){return i.z}),n.d(e,"RIBBON_COLLAPSIBLE",function(){return i.A}),n.d(e,"RIBBON_OVERALL_OF_BUTTON",function(){return i.B}),n.d(e,"RIBBON_GROUP_OF_BUTTON",function(){return i.C}),n.d(e,"RIBBON_OVERFLOW_TARGET",function(){return i.D}),n.d(e,"RIBBON_OVERFLOW",function(){return i.E}),n.d(e,"TAB_CONTENT",function(){return i.F}),n.d(e,"RIBBON_MINIMIZE",function(){return i.G}),n.d(e,"RIBBON_GROUP",function(){return i.H}),n.d(e,"RIBBON_SINGLE_BUTTON_SELECTION",function(){return i.I}),n.d(e,"RIBBON_MULTIPLE_BUTTON_SELECTION",function(){return i.J}),n.d(e,"RIBBON_GROUP_BUTTON",function(){return i.K}),n.d(e,"RIBBON_GROUP_BUTTON_OVERFLOW_POPUP",function(){return i.L}),n.d(e,"RIBBON_GROUP_CONTAINER",function(){return i.M}),n.d(e,"RIBBON_OF_TAB_CONTAINER",function(){return i.N}),n.d(e,"RIBBON_OF_GROUP_CONTAINER",function(){return i.O}),n.d(e,"RIBBON_GROUP_CONTENT",function(){return i.P}),n.d(e,"RIBBON_GROUP_HEADER",function(){return i.Q}),n.d(e,"RIBBON_OVERFLOW_HEADER",function(){return i.R}),n.d(e,"RIBBON_GROUP_OVERFLOW",function(){return i.S}),n.d(e,"RIBBON_GROUP_OVERFLOW_DDB",function(){return i.T}),n.d(e,"RIBBON_LAUNCHER",function(){return i.U}),n.d(e,"RIBBON_LAUNCHER_ICON_ELE",function(){return i.V}),n.d(e,"RIBBON_LAUNCHER_ICON",function(){return i.W}),n.d(e,"RIBBON_COLLECTION",function(){return i.X}),n.d(e,"RIBBON_ITEM",function(){return i.Y}),n.d(e,"RIBBON_ROW",function(){return i.Z}),n.d(e,"RIBBON_COLUMN",function(){return i._0}),n.d(e,"RIBBON_LARGE_ITEM",function(){return i._1}),n.d(e,"RIBBON_MEDIUM_ITEM",function(){return i._2}),n.d(e,"RIBBON_SMALL_ITEM",function(){return i._3}),n.d(e,"RIBBON_CONTENT_HEIGHT",function(){return i._4}),n.d(e,"DROPDOWNBUTTON",function(){return i._5}),n.d(e,"DROPDOWNBUTTON_HIDE",function(){return i._6}),n.d(e,"RIBBON_TEMPLATE",function(){return i._7}),n.d(e,"RIBBON_HELP_TEMPLATE",function(){return i._8}),n.d(e,"RIBBON_TOOLTIP",function(){return i._9}),n.d(e,"RIBBON_TOOLTIP_TARGET",function(){return i._10}),n.d(e,"RIBBON_TOOLTIP_TITLE",function(){return i._11}),n.d(e,"RIBBON_TOOLTIP_CONTENT",function(){return i._12}),n.d(e,"RIBBON_TOOLTIP_ICON",function(){return i._13}),n.d(e,"RIBBON_TOOLTIP_CONTAINER",function(){return i._14}),n.d(e,"RIBBON_TEXT_CONTAINER",function(){return i._15}),n.d(e,"RIBBON_SIMPLIFIED_MODE",function(){return i._16}),n.d(e,"RIBBON_BACKSTAGE_POPUP",function(){return i._17}),n.d(e,"RIBBON_BACKSTAGE_OPEN",function(){return i._18}),n.d(e,"RIBBON_BACKSTAGE_CONTENT",function(){return i._19}),n.d(e,"RIBBON_SELECTED_CONTENT",function(){return i._20}),n.d(e,"RIBBON_BACKSTAGE",function(){return i._21}),n.d(e,"RIBBON_BACKSTAGE_MENU",function(){return i._22}),n.d(e,"RIBBON_BACKSTAGE_TEMPLATE",function(){return i._23}),n.d(e,"RIBBON_BACKSTAGE_MENU_WRAPPER",function(){return i._24}),n.d(e,"RIBBON_BACKSTAGE_ITEMS_WRAPPER",function(){return i._25}),n.d(e,"RIBBON_BACKSTAGE_TEXT_MENU",function(){return i._26}),n.d(e,"TAB_ID",function(){return i._27}),n.d(e,"GROUP_ID",function(){return i._28}),n.d(e,"COLLECTION_ID",function(){return i._29}),n.d(e,"ITEM_ID",function(){return i._30}),n.d(e,"COLLAPSE_BUTTON_ID",function(){return i._31}),n.d(e,"OVRLOF_BUTTON_ID",function(){return i._32}),n.d(e,"GROUPOF_BUTTON_ID",function(){return i._33}),n.d(e,"HEADER_ID",function(){return i._34}),n.d(e,"LAUNCHER_ID",function(){return i._35}),n.d(e,"CONTENT_ID",function(){return i._36}),n.d(e,"CONTAINER_ID",function(){return i._37}),n.d(e,"OVERFLOW_ID",function(){return i._38}),n.d(e,"DROPDOWN_ID",function(){return i._39}),n.d(e,"RIBBON_FILE_MENU_ID",function(){return i._40}),n.d(e,"RIBBON_BACKSTAGE_MENU_ID",function(){return i._41}),n.d(e,"RIBBON_BACKSTAGE_POPUP_ID",function(){return i._42}),n.d(e,"RIBBON_FILE_MENU_LIST",function(){return i._43}),n.d(e,"RIBBON_MENU_LIST",function(){return i._44}),n.d(e,"RIBBON_FOOTER_MENU_LIST",function(){return i._45}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_ID",function(){return i._46}),n.d(e,"RIBBON_GROUP_BUTTON_ID",function(){return i._47}),n.d(e,"RIBBON_FILE_MENU_WIDTH",function(){return i._48}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_WIDTH",function(){return i._49}),n.d(e,"getIndex",function(){return i._50}),n.d(e,"getTemplateFunction",function(){return i._51}),n.d(e,"getItem",function(){return i._52}),n.d(e,"getCollection",function(){return i._53}),n.d(e,"getGroup",function(){return i._54}),n.d(e,"destroyControl",function(){return i._55}),n.d(e,"updateCommonProperty",function(){return i._56}),n.d(e,"updateControlDisabled",function(){return i._57}),n.d(e,"getItemElement",function(){return i._58}),n.d(e,"isTooltipPresent",function(){return i._59}),n.d(e,"setToolTipContent",function(){return i._60}),n.d(e,"createTooltip",function(){return i._61}),n.d(e,"destroyTooltip",function(){return i._62}),n.d(e,"updateTooltipProp",function(){return i._63}),n.d(e,"setCustomAttributes",function(){return i._64}),n.d(e,"RibbonTab",function(){return i._65}),n.d(e,"RibbonGroup",function(){return i._66}),n.d(e,"RibbonCollection",function(){return i._67}),n.d(e,"RibbonItem",function(){return i._68}),n.d(e,"RibbonButtonSettings",function(){return i._69}),n.d(e,"RibbonCheckBoxSettings",function(){return i._70}),n.d(e,"RibbonColorPickerSettings",function(){return i._71}),n.d(e,"RibbonComboBoxSettings",function(){return i._72}),n.d(e,"RibbonDropDownSettings",function(){return i._73}),n.d(e,"RibbonSplitButtonSettings",function(){return i._74}),n.d(e,"FileMenuSettings",function(){return i._75}),n.d(e,"BackStageMenu",function(){return i._76}),n.d(e,"BackstageBackButton",function(){return i._77}),n.d(e,"BackstageItem",function(){return i._78}),n.d(e,"RibbonTooltip",function(){return i._79}),n.d(e,"RibbonGroupButtonSettings",function(){return i._80}),n.d(e,"RibbonGroupButtonItem",function(){return i._81}),n.d(e,"RibbonButton",function(){return i._82}),n.d(e,"RibbonCheckBox",function(){return i._83}),n.d(e,"RibbonColorPicker",function(){return i._84}),n.d(e,"RibbonComboBox",function(){return i._85}),n.d(e,"RibbonDropDown",function(){return i._86}),n.d(e,"RibbonSplitButton",function(){return i._87}),n.d(e,"RibbonGroupButton",function(){return i._88}),n.d(e,"RibbonFileMenu",function(){return i._89}),n.d(e,"RibbonBackstage",function(){return i._90})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonCollection",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="collections",e.moduleName="ribbonCollections",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonGroup",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="groups",e.moduleName="ribbonGroups",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonItem",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="items",e.moduleName="ribbonItems",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(51),o=(n.n(r),n(11)),i=n(4),s=(n.n(i),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),c=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.directivekeys={ribbonTabs:{ribbonTab:{ribbonGroups:{ribbonGroup:{ribbonCollections:{ribbonCollection:{ribbonItems:"ribbonItem"}}}}}}},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(o.a);n.i(i.applyMixins)(c,[i.ComponentBase,r.Component])},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonTab",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="tabs",e.moduleName="ribbonTabs",e}(r.ComplexBase)},function(t,e){t.exports=c},function(t,e){t.exports=a}])});
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: ej2-react-ribbon.umd.min.js
3
- * version : 23.1.43
3
+ * version : 23.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-react-ribbon@*",
3
- "_id": "@syncfusion/ej2-react-ribbon@23.1.41",
3
+ "_id": "@syncfusion/ej2-react-ribbon@23.1.44",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-kjVcV5LbLktkKcfo3NzYQlxteO0oJLm7mdjVWbteHxfvqoSq3xRl1cxbbTRVIVgO9HOHZN3auC4xSJ8JIWOU3w==",
5
+ "_integrity": "sha512-PaHQz06+HpVI/4+I0LyJvB6lah0ZvcqjMotl4dKkV2gcbFi0cAdTm/s+cgWBDvpWpFpQgGdGb1V8qjQQPdsY8Q==",
6
6
  "_location": "/@syncfusion/ej2-react-ribbon",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,8 +19,8 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-ribbon/-/ej2-react-ribbon-23.1.41.tgz",
23
- "_shasum": "c752c644c2a9da96c43960e4041f6fb69dd67cfc",
22
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-react-ribbon/-/ej2-react-ribbon-23.1.44.tgz",
23
+ "_shasum": "6f082419c392f945acbe776e1a454b24308a51dc",
24
24
  "_spec": "@syncfusion/ej2-react-ribbon@*",
25
25
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
26
26
  "author": {
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "bundleDependencies": false,
33
33
  "dependencies": {
34
- "@syncfusion/ej2-base": "~23.1.41",
35
- "@syncfusion/ej2-react-base": "~23.1.43",
36
- "@syncfusion/ej2-ribbon": "23.1.43"
34
+ "@syncfusion/ej2-base": "~23.2.4",
35
+ "@syncfusion/ej2-react-base": "~23.2.4",
36
+ "@syncfusion/ej2-ribbon": "23.2.4"
37
37
  },
38
38
  "deprecated": false,
39
39
  "description": "Essential JS 2 Component for React",
@@ -54,6 +54,6 @@
54
54
  "type": "git",
55
55
  "url": "git+https://github.com/syncfusion/ej2-react-ui-components.git"
56
56
  },
57
- "version": "23.1.43",
57
+ "version": "23.2.4",
58
58
  "sideEffects": false
59
59
  }
@@ -13,7 +13,7 @@ export interface RibbonTypecast {
13
13
  export declare class RibbonComponent extends Ribbon {
14
14
  state: Readonly<{
15
15
  children?: React.ReactNode | React.ReactNode[];
16
- }> & Readonly<RibbonModel & DefaultHtmlAttributes | RibbonTypecast>;
16
+ }> & Readonly<RibbonModel | DefaultHtmlAttributes | RibbonTypecast>;
17
17
  setState: any;
18
18
  private getDefaultAttributes;
19
19
  initRenderCalled: boolean;
@@ -26,7 +26,7 @@ export declare class RibbonComponent extends Ribbon {
26
26
  private immediateRender;
27
27
  props: Readonly<{
28
28
  children?: React.ReactNode | React.ReactNode[];
29
- }> & Readonly<RibbonModel & DefaultHtmlAttributes | RibbonTypecast>;
29
+ }> & Readonly<RibbonModel | DefaultHtmlAttributes | RibbonTypecast>;
30
30
  forceUpdate: (callBack?: () => any) => void;
31
31
  context: Object;
32
32
  portals: any;