@syncfusion/ej2-react-ribbon 24.2.3 → 24.2.8
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-react-ribbon.min.js
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.8
|
|
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,a,c){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,"H",function(){return r}),n.d(e,"Q",function(){return o}),n.d(e,"j",function(){return i}),n.d(e,"R",function(){return s}),n.d(e,"J",function(){return a}),n.d(e,"S",function(){return c}),n.d(e,"T",function(){return l}),n.d(e,"L",function(){return u}),n.d(e,"I",function(){return p}),n.d(e,"M",function(){return d}),n.d(e,"K",function(){return f}),n.d(e,"G",function(){return h}),n.d(e,"U",function(){return b}),n.d(e,"V",function(){return m}),n.d(e,"W",function(){return v}),n.d(e,"X",function(){return y}),n.d(e,"Y",function(){return g}),n.d(e,"Z",function(){return _}),n.d(e,"_0",function(){return S}),n.d(e,"_1",function(){return I}),n.d(e,"_2",function(){return C}),n.d(e,"_3",function(){return O}),n.d(e,"_4",function(){return B}),n.d(e,"_5",function(){return w}),n.d(e,"_6",function(){return L}),n.d(e,"_7",function(){return P}),n.d(e,"_8",function(){return D}),n.d(e,"C",function(){return k}),n.d(e,"D",function(){return E}),n.d(e,"B",function(){return T}),n.d(e,"F",function(){return x}),n.d(e,"_9",function(){return M}),n.d(e,"_10",function(){return q}),n.d(e,"_11",function(){return R}),n.d(e,"_12",function(){return A}),n.d(e,"_13",function(){return G}),n.d(e,"_14",function(){return N}),n.d(e,"_15",function(){return j}),n.d(e,"P",function(){return z}),n.d(e,"_16",function(){return H}),n.d(e,"_17",function(){return W}),n.d(e,"_18",function(){return F}),n.d(e,"_19",function(){return U}),n.d(e,"_20",function(){return V}),n.d(e,"_21",function(){return K}),n.d(e,"_22",function(){return X}),n.d(e,"_23",function(){return J}),n.d(e,"_24",function(){return Z}),n.d(e,"_25",function(){return Y}),n.d(e,"_26",function(){return Q}),n.d(e,"_27",function(){return $}),n.d(e,"_28",function(){return tt}),n.d(e,"_29",function(){return et}),n.d(e,"_30",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 at}),n.d(e,"s",function(){return ct}),n.d(e,"u",function(){return lt}),n.d(e,"_31",function(){return ut}),n.d(e,"h",function(){return pt}),n.d(e,"d",function(){return dt}),n.d(e,"p",function(){return ft}),n.d(e,"_32",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,"_33",function(){return St}),n.d(e,"_34",function(){return It}),n.d(e,"_35",function(){return Ct}),n.d(e,"_36",function(){return Ot}),n.d(e,"_37",function(){return Bt}),n.d(e,"_38",function(){return wt}),n.d(e,"r",function(){return Lt}),n.d(e,"E",function(){return Pt}),n.d(e,"_39",function(){return Dt}),n.d(e,"o",function(){return kt}),n.d(e,"_40",function(){return Et}),n.d(e,"N",function(){return Tt}),n.d(e,"O",function(){return xt}),n.d(e,"y",function(){return Mt}),n.d(e,"a",function(){return qt}),n.d(e,"g",function(){return Rt}),n.d(e,"z",function(){return At}),n.d(e,"m",function(){return Gt}),n.d(e,"l",function(){return Nt}),n.d(e,"_41",function(){return jt}),n.d(e,"A",function(){return zt}),n.d(e,"c",function(){return Ht}),n.d(e,"_42",function(){return Wt});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",a="e-vertical",c="e-disabled",l="e-rtl",u="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",O="e-ribbon-group-of-btn",B="e-ribbon-overflow-target",w="e-ribbon-overflow",L="e-content",P="e-ribbon-minimize",D="e-ribbon-group",k="e-ribbon-single-selection",E="e-ribbon-multiple-selection",T="e-ribbon-group-button",x="e-ribbon-group-button-overflow-popup",M="e-ribbon-group-container",q="e-ribbon-of-tab",R="e-ribbon-of-group-container",A="e-ribbon-group-content",G="e-ribbon-group-header",N="e-ribbon-overflow-header",j="e-ribbon-group-overflow",z="e-ribbon-group-overflow-ddb",H="e-ribbon-launcher",W="e-ribbon-launcher-icon",F="e-icons e-launcher",U="e-ribbon-collection",V="e-ribbon-item",K="e-ribbon-row",X="e-ribbon-column",J="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",at="e-ribbon-tooltip-icon",ct="e-ribbon-tooltip-container",lt="e-ribbon-text-container",ut="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",Ot="_item",Bt="_collapsebutton",wt="_sim_ovrl_overflow",Lt="_sim_grp_overflow",Pt="_header",Dt="_launcher",kt="_content",Et="_container",Tt="_overflow",xt="_dropdown",Mt="_filemenu",qt="_backstage",Rt="_backstagepopup",At="_filemenulist",Gt="_menulist",Nt="_footermenulist",jt="_helppanetemplate",zt="_grpbtn",Ht="--fileMenuWidth",Wt="--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.H}),n.d(e,"i",function(){return i.Q}),n.d(e,"j",function(){return i.j}),n.d(e,"k",function(){return i.R}),n.d(e,"l",function(){return i.J}),n.d(e,"m",function(){return i.S}),n.d(e,"n",function(){return i.T}),n.d(e,"o",function(){return i.L}),n.d(e,"p",function(){return i.I}),n.d(e,"q",function(){return i.M}),n.d(e,"r",function(){return i.K}),n.d(e,"s",function(){return i.G}),n.d(e,"t",function(){return i.U}),n.d(e,"u",function(){return i.V}),n.d(e,"v",function(){return i.W}),n.d(e,"w",function(){return i.X}),n.d(e,"x",function(){return i.Y}),n.d(e,"y",function(){return i.Z}),n.d(e,"z",function(){return i._0}),n.d(e,"A",function(){return i._1}),n.d(e,"B",function(){return i._2}),n.d(e,"C",function(){return i._3}),n.d(e,"D",function(){return i._4}),n.d(e,"E",function(){return i._5}),n.d(e,"F",function(){return i._6}),n.d(e,"G",function(){return i._7}),n.d(e,"H",function(){return i._8}),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.F}),n.d(e,"M",function(){return i._9}),n.d(e,"N",function(){return i._10}),n.d(e,"O",function(){return i._11}),n.d(e,"P",function(){return i._12}),n.d(e,"Q",function(){return i._13}),n.d(e,"R",function(){return i._14}),n.d(e,"S",function(){return i._15}),n.d(e,"T",function(){return i.P}),n.d(e,"U",function(){return i._16}),n.d(e,"V",function(){return i._17}),n.d(e,"W",function(){return i._18}),n.d(e,"X",function(){return i._19}),n.d(e,"Y",function(){return i._20}),n.d(e,"Z",function(){return i._21}),n.d(e,"_0",function(){return i._22}),n.d(e,"_1",function(){return i._23}),n.d(e,"_2",function(){return i._24}),n.d(e,"_3",function(){return i._25}),n.d(e,"_4",function(){return i._26}),n.d(e,"_5",function(){return i._27}),n.d(e,"_6",function(){return i._28}),n.d(e,"_7",function(){return i._29}),n.d(e,"_8",function(){return i._30}),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._31}),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._32}),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._33}),n.d(e,"_28",function(){return i._34}),n.d(e,"_29",function(){return i._35}),n.d(e,"_30",function(){return i._36}),n.d(e,"_31",function(){return i._37}),n.d(e,"_32",function(){return i._38}),n.d(e,"_33",function(){return i.r}),n.d(e,"_34",function(){return i.E}),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.N}),n.d(e,"_39",function(){return i.O}),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 a}),n.d(e,"d",function(){return c});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 a;!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"}(a||(a={}));var c;!function(t){t.Single="Single",t.Multiple="Multiple"}(c||(c={}))},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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 a=i.collections[parseInt(s.toString(),10)],c=0;c<a.items.length;c++){var l=a.items[parseInt(c.toString(),10)];if(l.id===e)return{item:l,collection:a,group:i,tabIndex:n,groupIndex:o,collectionIndex:s,itemIndex:c}}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 a=i.collections[parseInt(s.toString(),10)];if(a.id===e)return{collection:a,group:i,tabIndex:n,groupIndex:o,collectionIndex:s}}return null}function a(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 c(t,e){n.i(y.getComponent)(t,e).destroy()}function l(t,e,r){n.i(y.getComponent)(t,e).setProperties(r)}function u(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 a=e.createElement("div",{innerHTML:i.title,className:S.t});s.appendChild(a)}var c=e.createElement("div",{className:S.u});if(s.appendChild(c),i.iconCss){var l=e.createElement("div",{className:i.iconCss+" "+S.v});c.appendChild(l)}if(i.content){var u=e.createElement("div",{innerHTML:i.content,className:S.w});c.appendChild(u)}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=a,e.i=c,e.j=l,e.k=u,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 a=n(36);n.d(e,"e",function(){return a.a});var c=n(38);n.d(e,"f",function(){return c.a});var l=n(37);n.d(e,"g",function(){return l.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 a=n(16);n.d(e,"e",function(){return a.a});var c=n(17);n.d(e,"f",function(){return c.a});var l=n(19);n.d(e,"g",function(){return l.a});var u=n(20);n.d(e,"h",function(){return u.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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 a});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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 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 a=t.length-1;a>=0;a--)(o=t[a])&&(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)("")],e.prototype,"label",void 0),i([n.i(r.Property)(!0)],e.prototype,"enableOpacity",void 0),i([n.i(r.Property)("Palette")],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 a});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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 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,"label",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 a});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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 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 a});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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},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 a});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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 i(e,t),s([n.i(r.Property)("")],e.prototype,"header",void 0),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 a});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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 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)("")],e.prototype,"overflowHeader",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),a=n(19),c=n(20),l=n(21),u=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 a=t.length-1;a>=0;a--)(o=t[a])&&(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)({},l.a)],e.prototype,"dropDownSettings",void 0),h([n.i(r.Complex)({},s.a)],e.prototype,"checkBoxSettings",void 0),h([n.i(r.Complex)({},a.a)],e.prototype,"colorPickerSettings",void 0),h([n.i(r.Complex)({},c.a)],e.prototype,"comboBoxSettings",void 0),h([n.i(r.Complex)({},u.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 a});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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 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 a=n(49);n.d(e,"i",function(){return a.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),a=n(12),c=n(8),l=n(1),u=n(3),p=(n.n(u),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 a=t.length-1;a>=0;a--)(o=t[a])&&(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(a.a,a.b,a.e,a.f,a.d,a.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.hiddenElements={},this.hiddenGroups=[],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(l.G):[])),this.enableRtl&&this.element.classList.add(l.T),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(c.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+l.o),r=Array.prototype.slice.call(n.querySelectorAll(".e-control")),o=Array.prototype.slice.call(n.querySelectorAll(".e-ribbon-template")),i=r.concat(o),s=n.querySelectorAll(".e-combobox");if(s)for(var a=0;a<s.length;a++)s[parseInt(a.toString(),10)].closest(".e-input-focus")&&(e=s[parseInt(a.toString(),10)]);if(e)for(var a=0;a<i.length;a++)i[parseInt(a.toString(),10)].classList.contains("e-combobox")&&i[parseInt(a.toString(),10)].closest(".e-input-focus")&&(this.currentControlIndex=a);if(0===this.currentControlIndex)for(var c=i[this.currentControlIndex].closest(".e-ribbon-item");c&&c.classList.contains("e-disabled");)this.currentControlIndex++,c=i[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")||t.target.classList.contains("e-ribbon-template"))switch(t.action){case"rightarrow":this.handleNavigation(t,!this.enableRtl,i);break;case"leftarrow":this.handleNavigation(t,this.enableRtl,i);break;case"tab":t.target.classList.contains("e-combobox")&&this.currentControlIndex<i.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-template"))&&!t.target.classList.contains("e-ribbon-last-item")){if(e)this.currentControlIndex++;else{var i=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+l._9);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("."+l._9),e){var a=void 0;if(r&&(a=r.querySelector(".e-ribbon-launcher-icon")),a){var c=r.querySelectorAll(".e-ribbon-item"),u=c[c.length-1].querySelector(".e-control");u&&u.classList.add("e-ribbon-last-item")}}else if(r){var p=r.getAttribute("id");if(o!==p){var a=r.querySelector(".e-ribbon-launcher-icon");a&&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 d=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");e&&d&&!d.classList.contains("e-ribbon-hide")?d.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("."+l._9),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("."+l._9);var a=r.querySelector(".e-ribbon-launcher-icon");a&&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 f=n[this.currentControlIndex].closest(".e-ribbon-item");f&&f.classList.contains("e-disabled");)this.currentControlIndex++,f=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}else{var d=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");if(d&&!d.classList.contains("e-ribbon-hide"))d.focus();else{this.currentControlIndex=n.length-1;for(var f=n[this.currentControlIndex].closest(".e-ribbon-item");f&&f.classList.contains("e-disabled");)this.currentControlIndex--,f=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+l.o);if(this.checkOverflow(this.selectedTab,t),this.scrollModule){var e=this.tabObj.element.querySelector("."+l.U);this.scrollModule.scrollStep=e.offsetWidth}if("Simplified"===this.activeLayout){var o=document.querySelectorAll(".e-ribbon .e-dropdown-btn.e-active, .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active");if(o.length)for(var i=0;i<o.length;i++){var s=n.i(r.getInstance)(o[parseInt(i.toString(),10)],u.DropDownButton);s.toggle()}}},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+l._33});this.element.appendChild(t),this.validateItemSize();var e=this.createTabItems(this.tabs);this.tabObj=new o.Tab({cssClass:l.W,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(l.c,"0px"),this.element.style.setProperty(l._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"](l._7)},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(l._7,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(c.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.calculateHiddenElementsWidth(r),this.checkOverflow(r,t.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var i=this.overflowDDB.target,s=i.querySelector("."+l.X);s&&s.classList.remove(l.X);var a=i.querySelector("#"+e+l.N);a?(a.classList.add(l.X),this.overflowDDB.element.classList.remove(l.V),this.checkOverflowHiddenItems(!1,r)):this.overflowDDB.element.classList.add(l.V)}this.trigger("tabSelected",o)},e.prototype.checkOverflow=function(t,e){var n=e.closest("."+l._6),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("."+l._6)))}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)],a=e.querySelector("#"+i.id+l._40),c=0;c<i.collections.length&&e.offsetWidth<n.offsetWidth;c++)for(var u=i.collections[parseInt(c.toString(),10)],p=u.items.length;p>=1&&e.offsetWidth<n.offsetWidth;p--){var d=u.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=a.querySelector("#"+d.id+l._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)],a=e.querySelector("#"+i.id+l._40),c=0;c<i.collections.length&&e.offsetWidth>n.offsetWidth;c++)for(var u=i.collections[parseInt(c.toString(),10)],p=u.items.length;p>=1&&e.offsetWidth>n.offsetWidth;p--){var d=u.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=a.querySelector("#"+d.id+l._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),a=0;a<i.length&&t.offsetWidth<e.offsetWidth;a++){for(var c=!1,u=i[parseInt(a.toString(),10)],p=t.querySelector("#"+u.id),d=p.querySelector("#"+u.id+l._40),f=u.collections.length;f>=1&&t.offsetWidth<e.offsetWidth;f--)for(var h=u.collections[parseInt((f-1).toString(),10)],b=p.querySelector("#"+h.id),m=h.items.length;m>=1&&t.offsetWidth<e.offsetWidth;m--){var v=h.items[m-1],y=b.querySelector("#"+v.id+l._40);if((v.displayOptions===s.b.Auto||v.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(y)){var g=!1,_=!1,S=!1,I=!1,C=void 0;if(p.classList.contains("e-hidden")||p.classList.contains("e-hide-group")){if(C=p.querySelectorAll(".e-ribbon-item.e-hidden"),C.length)for(var O=0;O<C.length;O++)C[parseInt(O.toString(),10)].classList.remove("e-hidden");p.classList.contains("e-hide-group")?(S=!0,p.classList.remove("e-hide-group"),p.classList.remove("e-ribbon-emptyCollection"),-1!==this.hiddenGroups.indexOf(p.id)&&this.hiddenGroups.splice(this.hiddenGroups.indexOf(p.id),1)):(g=!0,p.classList.remove("e-hidden")),c||(this.calculateOverflowItemsWidth(p.offsetWidth,!1,o),this.calculateMediumDataWidth(p.offsetWidth,o,!1),c=!0)}else y.classList.contains("e-hidden")&&(_=!0,y.classList.remove("e-hidden"),p.classList.contains("e-ribbon-emptyCollection")&&(I=!0,p.classList.remove("e-ribbon-emptyCollection")),this.calculateOverflowItemsWidth(y.offsetWidth,!1,o),this.calculateMediumDataWidth(y.offsetWidth,o,!1));if(y.setAttribute("data-simplified-width",e.offsetWidth.toString()),_&&y.classList.add("e-hidden"),C&&C.length)for(var B=0;B<C.length;B++)C[parseInt(B.toString(),10)].classList.add("e-hidden");if(g&&p.classList.add("e-hidden"),S&&(p.classList.add("e-hide-group"),p.classList.add("e-ribbon-emptyCollection")),I&&p.classList.add("e-ribbon-emptyCollection"),this.createOverflowPopup(v,o,u.enableGroupOverflow,u.id,u.header,y,d,!0),v.activeSize===s.c.Small){var w=y.querySelector("#"+v.id);v.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(w,v)}v.type!==s.f.DropDown&&v.type!==s.f.SplitButton&&v.type!==s.f.GroupButton||this.updatePopupItems(v,y,u.enableGroupOverflow,!0)}}u.enableGroupOverflow||p.querySelector("."+l._20)||p.classList.add("e-ribbon-emptyCollection");var L=p.querySelectorAll("."+l._20);L&&!u.enableGroupOverflow&&this.checkEmptyCollection(L)&&p.classList.add("e-ribbon-emptyCollection"),this.checkOverflowHiddenItems(u.enableGroupOverflow,o,u.id)}},e.prototype.checkEmptyCollection=function(t){for(var e=!0,n=0;n<t.length;n++)if(!t[parseInt(n.toString(),10)].classList.contains("e-hidden")){e=!1;break}return e},e.prototype.updatePopupItems=function(t,e,o,i){var a=n.i(r.getComponent)(e.querySelector("#"+t.id),t.type===s.f.DropDown||t.type===s.f.GroupButton?u.DropDownButton:u.SplitButton),c=a.dropDown,l=(o&&i)===this.enableRtl;c&&(c.setProperties({position:{X:l?"left":"right",Y:i?"top":"bottom"}},!0),i?a.beforeOpen=function(){l&&(c.element.style.setProperty("visibility","hidden"),c.element.style.setProperty("display","block"),c.setProperties({offsetX:-1*c.element.offsetWidth}),c.element.style.removeProperty("display"),c.element.style.removeProperty("visibility"))}:(c.setProperties({offsetX:0},!0),a.beforeOpen=null))},e.prototype.removeSimplfiedOverflow=function(t,e,o,i){void 0===i&&(i=!1);for(var a=this.getGroupResizeOrder(!1,o),c=!0,p=0;p<a.length&&c;p++){var d=a[parseInt(p.toString(),10)],f=void 0,h=void 0;if(d.enableGroupOverflow){var b=t.querySelector("#"+d.id+l.r);b&&(f=n.i(r.getInstance)(b,u.DropDownButton),h=f.target)}else f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null;for(var m=0;m<d.collections.length&&c;m++)for(var v=d.collections[parseInt(m.toString(),10)],y=0;y<v.items.length&&c&&!i&&t.offsetWidth>e.offsetWidth;y++){var g=v.items[parseInt(y.toString(),10)],_=void 0;if(h&&(_=h.querySelector("#"+g.id+l._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),I=t.querySelector("#"+d.id);if((_.classList.contains("e-hidden")||I.classList.contains("e-hidden"))&&(S=Math.abs(S-e.offsetWidth)),!i&&t.offsetWidth<S){c=!1;break}var C=t.querySelector("#"+v.id);if(g.type!==s.f.DropDown&&g.type!==s.f.SplitButton&&g.type!==s.f.GroupButton||this.updatePopupItems(g,_,d.enableGroupOverflow,!1),C.append(_),_.classList.contains("e-hidden")||I.classList.contains("e-hidden")){_.setAttribute("data-simplified-width",S.toString());var O=!1,B=0;_.classList.contains("e-hidden")&&(_.classList.remove("e-hidden"),I.classList.contains("e-hide-group")&&(O=!0,B=this.checkWidthDifference(_,I)),S=_.offsetWidth+B,_.classList.add("e-hidden")),this.calculateOverflowItemsWidth(S,!0,o),this.calculateMediumDataWidth(S,o,!0),O&&(I.classList.add("e-hide-group"),I.classList.add("e-ribbon-emptyCollection"))}this.removeOverflowEvent(g,_),g.allowedSizes&s.c.Small&&(g.setProperties({activeSize:s.c.Small},!0),this.setItemSize(_.querySelector("#"+g.id),g));var w=t.querySelector("#"+d.id),L=w.querySelector("."+l._20);if(w.classList.contains("e-ribbon-emptyCollection")&&null!==L){var P=w.querySelectorAll("."+l._20);P&&(this.checkEmptyCollection(P)||w.classList.remove("e-ribbon-emptyCollection"))}}}if(f)if(d.enableGroupOverflow)(0===h.childElementCount||1===h.childElementCount&&this.isHeaderVisible(h,d.id))&&this.removeOverflowButton(f);else{var D=h.querySelector("#"+d.id+l._40);D&&1===D.childElementCount&&D.remove();var k=h.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+l.N);k&&0===k.childElementCount&&(k.remove(),this.overflowDDB.element.classList.add(l.V))}}for(var p=0;p<a.length;p++)this.checkOverflowHiddenItems(a[parseInt(p.toString(),10)].enableGroupOverflow,o,a[parseInt(p.toString(),10)].id);if(this.overflowDDB){0===this.overflowDDB.target.childElementCount&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)}},e.prototype.checkOverflowHiddenItems=function(t,e,o){if(t){var i=document.querySelector("#"+o+l.r);if(i){for(var s=n.i(r.getInstance)(i,u.DropDownButton),a=s.target,c=a.querySelectorAll(".e-ribbon-item"),p=!0,d=0;d<c.length;d++)if(!c[parseInt(d.toString(),10)].classList.contains("e-hidden")){p=!1;break}s.element.classList[p?"add":"remove"]("e-hidden")}}else if(this.overflowDDB){var f=!0,h=void 0,b=this.overflowDDB.target,m=b.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.N);if(m){for(var v=0;v<m.children.length;v++){h=!0;for(var y=m.children[parseInt(v.toString(),10)],g=y.querySelectorAll(".e-ribbon-item"),_=0;_<g.length;_++)if(!g[parseInt(_.toString(),10)].classList.contains("e-hidden")){h=!1;break}y.classList[h?"add":"remove"]("e-hide-group"),y.classList.contains("e-hide-group")||y.classList.contains("e-hidden")||(f=!1)}this.overflowDDB.element.classList[f?"add":"remove"](l.V)}}},e.prototype.createOverflowPopup=function(t,e,o,i,s,a,p,d){var f,h=n.i(c.h)(this.tabs,i),b=this.tabObj.items[parseInt(e.toString(),10)].content,m=b.querySelector("#"+i);if(o){var v=p.querySelector("#"+i+l.r);v?f=n.i(r.getInstance)(v,u.DropDownButton):(f=this.addOverflowButton(i+l.r),f.element.classList.add(l._3),p.appendChild(f.element));var y=f.target;if(!y.querySelector("#"+i+l.r+l.E)&&h.group.overflowHeader){var g=this.createElement("div",{className:l._14,id:i+l.r+l.E,innerHTML:h.group.overflowHeader});y.append(g)}m&&(m.classList.contains("e-disabled")&&y.classList.add("e-disabled"),m.classList.contains("e-hidden")&&y.classList.add("e-hidden"),m.classList.contains("e-hide-group")&&y.classList.add("e-hide-group")),d?y.insertBefore(a,y.querySelector("."+l._20)):y.append(a)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(l.V);var _=this.overflowDDB.target,S=_.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.N);if(S){var I=_.querySelector("#"+i+l._40);I||(I=h.group.overflowHeader?this.createGroupContainer(i,h.group.overflowHeader):this.createGroupContainer(i,s),m&&(m.classList.contains("e-disabled")&&I.classList.add("e-disabled"),m.classList.contains("e-hidden")&&I.classList.add("e-hidden"),m.classList.contains("e-hide-group")&&I.classList.add("e-hide-group")),S.append(I)),d?I.insertBefore(a,I.querySelector("."+l._20)):I.append(a)}else this.createOfTabContainer(i,s,a,e)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+l._38),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(l._2),this.createOfTabContainer(i,s,a,e);f=this.overflowDDB}null!==a&&this.addOverflowEvents(t,a,f)},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,n);break}}},e.prototype.createOfTabContainer=function(t,e,r,o){var i=this.createElement("div",{id:this.tabs[parseInt(o.toString(),10)].id+l.N,className:l._10});this.overflowDDB.target.append(i);var s=n.i(c.h)(this.tabs,t),a=s.group.overflowHeader?this.createGroupContainer(t,s.group.overflowHeader):this.createGroupContainer(t,e);a.append(r),i.append(a),o===this.selectedTab&&i.classList.add(l.X);var u=document.querySelector("#"+t);u&&(u.classList.contains("e-disabled")&&a.classList.add("e-disabled"),u.classList.contains("e-hidden")&&a.classList.add("e-hidden"),u.classList.contains("e-hide-group")&&a.classList.add("e-hide-group"))},e.prototype.checkGroupShrinking=function(t,e,n,r){for(var o=!0,i=!1,s=this.tabs[parseInt(t.toString(),10)],a=s.groups.length-1;o&&a>=0;a--)i=r?this.checkLargeToMedium(t,s,a,e,n):this.checkMediumToSmall(t,s,a,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 a=this;void 0===i&&(i=!1);var c=e.groups[parseInt(n.toString(),10)];if(c.isCollapsed&&!i)return!1;var u=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=a.createElement("div",{className:"e-ribbon-shrink"+l.G+l._21,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 c=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[0],u=o.querySelector("#"+c.items[parseInt(e.toString(),10)].id+l._40),p=i?o.querySelector("#"+c.id+"_shrink_container"+e):d(c.id,u,e,r),f=e;f<=r;f++){var h=c.items[parseInt(f.toString(),10)];if(h.displayOptions&s.b.Classic){var b=o.querySelector("#"+h.id+l._40);p.appendChild(b),h.setProperties({activeSize:s.c.Medium},!0),h.type===s.f.GroupButton&&"Classic"===a.activeLayout?a.setItemSize(b.querySelector("#"+h.id+l.A),h):a.setItemSize(b.querySelector("#"+h.id),h)}}},h=function(e,r){for(var c=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)],u=o.querySelector("#"+c.collections[parseInt(e.toString(),10)].id),p=i?o.querySelector("#"+c.id+"_shrink_container"+e):d(c.id,u,e,r),f=e;f<=r;f++){var h=c.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"===a.activeLayout?a.setItemSize(b.querySelector("#"+h.items[0].id+l.A),h.items[0]):a.setItemSize(b.querySelector("#"+h.items[0].id),h.items[0])}};if(c.orientation===s.e.Column)for(var b=c.collections.length-1;b>0;b--){b=this.checkClassicCollection(c.collections,b,!1);var m=b-1;if(m>=0&&u(c.collections[parseInt(b.toString(),10)]))if((m=this.checkClassicCollection(c.collections,m,!1))>=0&&u(c.collections[parseInt(m.toString(),10)])){var v=m-1;if(v>=0&&(v=this.checkClassicCollection(c.collections,v,!1)),v>=0&&u(c.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(c.collections))for(var y=c.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 a=this;void 0===i&&(i=!1);var c=e.groups[parseInt(n.toString(),10)];if(c.isCollapsed&&!i)return!1;var u=c.orientation,p=o.querySelector("#"+c.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,c){void 0===c&&(c=null);var l=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],u=function(t){var e=l.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")),a.setItemSize(n,e)}};u(r),c&&u(c),u(i)},b=function(e,r,c,u){void 0===u&&(u=null);var p=a.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+l.A)),a.setItemSize(n,e.items[0])}};f(r),u&&f(u),f(c)},m=function(t){if(!i){o.querySelector("#"+t).setAttribute("data-medium-width",o.offsetWidth.toString())}};if(u===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(c.collections,y+1,!1);if(f(c.collections[parseInt(y.toString(),10)].items[0])&&f(c.collections[parseInt(_.toString(),10)].items[0])&&(g===_?b(v,y,g):f(c.collections[parseInt(g.toString(),10)].items[0])&&b(v,y,g,_),!i&&r.offsetWidth>o.offsetWidth))return!0}for(var v=c.collections.length-1;v>=0;v--){for(var S=c.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(c.collections)){if(d.length>0)for(var v=d.length-1;v>=0;v--){var O=d[parseInt(v.toString(),10)],y=parseInt(O.getAttribute("data-start"),10),g=parseInt(O.getAttribute("data-end"),10),S=c.collections[0],_=this.checkClassicItem(S.items,y+1,!1);if(f(c.collections[0].items[parseInt(y.toString(),10)])&&f(c.collections[0].items[parseInt(_.toString(),10)])&&(g===_?(m(O.id),h(0,y,g)):f(c.collections[0].items[parseInt(g.toString(),10)])&&(m(O.id),h(0,y,g,_)),!i&&r.offsetWidth>o.offsetWidth))return!0}}else for(var v=c.collections.length-1;v>=0;v--)for(var S=c.collections[parseInt(v.toString(),10)],_=S.items.length-1;_>=0;_--)if(!((_=this.checkClassicItem(S.items,_,!1))<0)){var B=S.items[parseInt(_.toString(),10)];if(f(B)&&(m(B.type!==s.f.GroupButton?B.id:B.id+l.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,a){var c=this,u=e.groups[parseInt(n.toString(),10)],p=u.orientation,d=o.querySelector("#"+u.id),f=d.querySelectorAll(".e-ribbon-shrink"),h=function(e,r,o){var i=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],a=i.items[parseInt(r.toString(),10)];if(a.displayOptions&s.b.Classic){var u=o.id===a.id?o:o.querySelector("#"+a.id);a.setProperties({activeSize:s.c.Medium},!0),a.type===s.f.GroupButton&&(u=document.querySelector("#"+a.id+l.A)),c.setItemSize(u,a)}},b=function(e){var r=c.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 a=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&&(a=o.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id+l.A)),c.setItemSize(a,r[parseInt(e.toString(),10)].items[0])}};if(p===s.e.Row){if(!this.checkValidCollectionLength(u.collections))for(var m=0;m<u.collections.length;m++)for(var v=u.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+l.A));var S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(i||r.offsetWidth>I))h(m,y,_),i&&!a||_.removeAttribute("data-medium-width");else if(I)return!0}}}else for(var m=0;m<u.collections.length;m++)if(u.collections[parseInt(m.toString(),10)].items.length>1){for(var v=u.collections[parseInt(m.toString(),10)],_=o.querySelector("#"+v.id),S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null,C=[],O=0;O<v.items.length;O++)v.items[parseInt(O.toString(),10)].displayOptions&s.b.Classic&&C.push(O);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&&!a||_.removeAttribute("data-medium-width");else if(I)return!0}if(f.length>0)for(var m=0;m<f.length;m++){var B=f[parseInt(m.toString(),10)],S=B.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(i||r.offsetWidth>I)){var w=parseInt(B.getAttribute("data-start"),10),L=parseInt(B.getAttribute("data-end"),10);if(p===s.e.Row){var v=u.collections[0],y=this.checkClassicItem(v.items,w+1,!0);h(0,w,B),h(0,y,B),y!==L&&h(0,L,B)}else{var P=this.checkClassicCollection(u.collections,w+1,!0);b(w),b(P),P!==L&&b(L)}i&&!a||B.removeAttribute("data-medium-width")}else if(I)return!0}return!1},e.prototype.checkMediumToLarge=function(t,e,o,i,a,c,u){var p=this,d=e.groups[parseInt(o.toString(),10)],f=d.orientation,h=a.querySelector("#"+d.id),b=h.querySelectorAll(".e-ribbon-shrink");if(0===b.length)return!1;for(var m=function(e,i,a,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=a.querySelector("#"+e.id+l._40),r=n.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Large},!0),e.type===s.f.GroupButton&&(r=n.querySelector("#"+e.id+l.A)),p.setItemSize(r,e),a.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(i),c&&!u||n.i(r.remove)(a)},v=function(e,i,a,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=a.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+l.A)),p.setItemSize(r,e.items[0]),a.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(i),c&&!u||n.i(r.remove)(a)},y=0;y<b.length;y++){var g=b[parseInt(y.toString(),10)],_=g.getAttribute("data-large-width"),S=_?parseInt(_,10):null;if(S&&(c||i.offsetWidth>S)){var I=parseInt(g.getAttribute("data-start"),10),C=parseInt(g.getAttribute("data-end"),10);if(f===s.e.Row){var O=d.collections[0],B=this.checkClassicItem(O.items,I+1,!0);B===C?m(I,C,g):m(I,C,g,B)}else{var w=this.checkClassicCollection(d.collections,I+1,!0);w===C?v(I,C,g):v(I,C,g,w)}c&&!u||g.removeAttribute("data-large-width")}else if(S)return!0}return!1},e.prototype.handleContentSize=function(t,e){var n=t.closest("."+l._12);e?n.classList.add(l._26):n.classList.remove(l._26)},e.prototype.setItemSize=function(t,e){if(t){var o=t.closest("."+l._20);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(l._26,l._23,l._24,l._25),e.activeSize===s.c.Large?o.classList.add(l._23,l._26):o.classList.add(e.activeSize===s.c.Medium?l._24:l._25)}},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 a=o[parseInt(s.toString(),10)],u=i.tabObj.element.querySelector("#"+a.id);u.setAttribute("data-expanded-width",r.offsetWidth.toString());var p=u.querySelector("#"+a.id+l._40),d=i.createElement("div",{className:l._15+l.G+l._23,id:a.id+l.N+l._40});u.insertBefore(d,p);var f=n.i(c.e)(i.tabs[parseInt(t.toString(),10)].groups,function(t){return t.id===a.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(a.id,a.header,a.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<a.collections.length;m++)for(var v=a.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+l._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,a=0;a<i.length;a++){var u=function(a){var u=i[parseInt(a.toString(),10)],p=s.tabObj.element.querySelector("#"+u.id);if(!p)return"break";var d=parseInt(p.getAttribute("data-expanded-width"),10);if(!r&&t.offsetWidth<d)return{value:!0};s.removeDropdown(u.id);var f=n.i(c.e)(s.tabs[parseInt(o.toString(),10)].groups,function(t){return t.id===u.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<u.collections.length;b++)for(var m=u.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+l._40);null!==_&&(s.handleContentSize(_,!0),s.removeOverflowEvent(g,_))}}(a);if("object"==typeof u)return u.value;if("break"===u)break}return!1},e.prototype.removeDropdown=function(t){var e=this.tabObj.element.querySelector("#"+t+l.N+l.O);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+l.o);if(e){var n=e.closest("."+l._6);"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(c.e)(this.tabs,function(t){return t.id===o}),a=n.i(c.e)(this.tabs,function(t){return t.id===i});s=-1===s?this.selectedTab:s;var u={cancel:t.cancel,isInteracted:t.isInteracted,previousIndex:a,selectedIndex:s};this.trigger("tabSelecting",u,function(t){if(!t.cancel){e.destroyScroll(),e.isAddRemove||-1===a||e.clearOverflowDropDown(a);var o=e.tabObj.items[parseInt(s.toString(),10)].content;if(!o.querySelector("."+l._8)&&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+l.E});i.onclick=function(){e.minimize(!1)},i.ondblclick=function(){e.minimize(!0)};var s={header:{text:i},id:o.id,cssClass:o.cssClass},a=this.createElement("div",{className:s.cssClass,id:o.id+l.o});a.classList.add(l.Y),s.content=a,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(l._31);var i=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+l.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:l._4,attrs:{tabindex:"0"}}),s=new u.DropDownButton({iconCss:l.R,cssClass:l._28+l.G+l.P,target:i,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeOpen:function(t){var n={element:t.element,event:t.event,cancel:t.cancel};e.trigger("overflowPopupOpen",n,function(e){e.cancel&&(t.cancel=!0)})},beforeClose:function(t){var o=t.event?n.i(r.closest)(t.event.target,"."+l.M):null,i=t.event?n.i(r.closest)(t.event.target,".e-ribbon-group-button-overflow-popup"):null,s={element:t.element,event:t.event,cancel:t.cancel};e.trigger("overflowPopupClose",s,function(e){(o||e.cancel||i)&&(t.cancel=!0)})}},o);this.element.classList.add(l._5),n.i(c.d)(i,this);var a;return o.onkeydown=o.onclick=function(){e.itemIndex=-1,a=!o.classList.contains("e-ribbon-overall-of-btn")},i.onkeydown=function(t){return e.upDownKeyHandler(t,i,a),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,a,c=i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control"),l=c&&c.classList.contains("e-combobox")?i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;if(null===l||"Tab"===t.key||this.itemIndex<0){if("ArrowDown"===t.key||!t.shiftKey&&"Tab"===t.key){if(!this.itemIndex&&0!==this.itemIndex||this.itemIndex<0||this.itemIndex===i.length-1){if(this.itemIndex=0,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0),l&&"Tab"===t.key){t.preventDefault();var u=i[this.itemIndex].querySelector(".e-control");u&&u.focus()}a=i[this.itemIndex].querySelector(".e-ribbon-template")}else this.itemIndex<i.length-1&&this.itemIndex>=0&&(this.itemIndex++,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0),a=i[this.itemIndex].querySelector(".e-ribbon-template"));a&&a.focus()}else if(("ArrowUp"===t.key||t.shiftKey&&"Tab"===t.key)&&(null===l||"Tab"===t.key)){if(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),a=i[this.itemIndex].querySelector(".e-ribbon-template"));else{if(this.itemIndex=i.length-1,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1),l&&t.shiftKey&&"Tab"===t.key){t.preventDefault();var u=i[this.itemIndex].querySelector(".e-control");u&&u.focus()}a=i[this.itemIndex].querySelector(".e-ribbon-template")}a&&a.focus()}e.setAttribute("index",this.itemIndex.toString())}var d=parseInt(e.getAttribute("index"),10),f="",h=i[parseInt(d.toString(),10)]?i[parseInt(d.toString(),10)].querySelector(".e-control"):null;if(h&&(f=h.getAttribute("data-control")),"ArrowDown"===t.key||"ArrowUp"===t.key||" "===t.key||"Tab"===t.key){if("ColorPicker"===f)"Tab"===t.key&&t.preventDefault(),i[parseInt(d.toString(),10)].querySelector(".e-split-colorpicker").focus();else{"Tab"===t.key&&t.preventDefault();var b=i[parseInt(d.toString(),10)].querySelector(".e-control");b&&b.focus()}if(" "===t.key&&"CheckBox"===f){var m=i[parseInt(d.toString(),10)].querySelector(".e-control"),v=n.i(r.getComponent)(m,p.CheckBox);this.itemIndex=-1,v.click()}}"SplitButton"!==f||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||("ArrowRight"===t.key&&(this.enableRtl?i[parseInt(d.toString(),10)].querySelector(".e-control").focus():i[parseInt(d.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===t.key&&(this.enableRtl?i[parseInt(d.toString(),10)].querySelector(".e-dropdown-btn").focus():i[parseInt(d.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(c.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:l._11,id:t+l._40}),r=this.createElement("div",{className:l._14,id:t+l.E,innerHTML:e});return n.append(r),n},e.prototype.addExpandCollapse=function(){var t=this;this.collapseButton=this.createElement("span",{className:l.Z+l.G+l.Q,id:this.tabObj.element.id+l._37,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(l._1),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(l._0),this.tabObj.element.appendChild(this.collapseButton)},e.prototype.removeExpandCollapse=function(){var t=this,e=n.i(c.e)(this.tooltipData,function(e){return e.id===t.collapseButton.id});-1!==e&&this.tooltipData.splice(e,1),this.element.classList.remove(l._1),n.i(r.remove)(this.tabObj.element.querySelector("."+l.Z)),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,a=0;a<this.tabObj.items.length;a++)if(this.tabs[parseInt(o.toString(),10)].id===this.tabObj.items[parseInt(a.toString(),10)].id){s=!0;break}if(!s){this.destroyTabItems(this.tabsInternal),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var c=this.createTabItems(this.tabs);this.selectedTab>=this.tabs.length&&(this.selectedTab=this.tabs.length-1),this.tabObj.setProperties({items:c,selectedItem:this.selectedTab});break}var u=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(u&&(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=u;h<b.length;h++){for(var m=b[h],v=m.isCollapsed?f.querySelector("#"+m.id+l.N+l.O):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],O=v?this.ribbonDropDownModule.getDDBItemElement(v,C.id):f.querySelector("#"+C.id);O&&this.destroyFunction(C,O)}v&&this.ribbonDropDownModule.removeOverFlowDropDown(v)}f.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()});var B=this.createGroups(d.groups,o);n.i(r.append)(B,f)}}var w=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+l.o);this.checkOverflow(this.selectedTab,w)},e.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(l._0,"Simplified"===this.activeLayout),this.element.classList.toggle(l._31,"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,a=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.o),c=a.closest("."+l._6);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,c,a,!0,!1),this.checkMediumToLarge(e,o,p,c,a,!0,!1));for(var h=c.querySelector("#"+d.id),b=h.querySelector("#"+d.id+l._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+l.E);y.remove();var g=b.querySelector("#"+d.id+l.o);g.classList.replace(l._21,l._22),g.classList.remove(l._26);for(var _=0;_<d.collections.length;_++){var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);I.classList.replace(l._21,l._22);for(var C=0;C<S.items.length;C++){for(var O=S.items,B=S.items[parseInt(C.toString(),10)],w=!0;w&&B.displayOptions===s.b.Classic;){C++;var L=b.querySelector("#"+B.id+l._40),P=L.querySelector("#"+B.id);this.destroyFunction(B,P),L.remove(),C<O.length?B=O[parseInt(C.toString(),10)]:w=!1}if(!w)break;var D=B.allowedSizes===s.c.Large||B.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;D=!(B.displayOptions&s.b.Simplified)&&B.displayOptions&s.b.Overflow?s.c.Medium:D;var k=void 0;if(B.displayOptions&s.b.Classic){if(k=b.querySelector("#"+B.id+l._40),B.displayOptions===(s.b.Classic|s.b.Overflow)&&(this.createOverflowPopup(B,e,d.enableGroupOverflow,d.id,d.header,k,b),B.type!==s.f.DropDown&&B.type!==s.f.SplitButton&&B.type!==s.f.GroupButton||this.updatePopupItems(B,k,d.enableGroupOverflow,!0)),B.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(B,k),B.setProperties({activeSize:D},!0),k){var P=k.querySelector("#"+B.id);this.setItemSize(P,B)}}else k=this.createItems([B],f,d.id,d.header,d.enableGroupOverflow,e,b)[0],B.displayOptions&s.b.Simplified&&I.append(k)}}d.enableGroupOverflow||h.querySelector("."+l._20)||h.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(l._5);for(var E=0;E<i.length;E++){var d=i[parseInt(E.toString(),10)],f=i[parseInt(E.toString(),10)].orientation,b=c.querySelector("#"+d.id+l._40),g=b.querySelector("#"+d.id+l.o),y=this.createElement("div",{className:l._13,id:d.id+l.E,innerHTML:d.header});b.appendChild(y),"Row"===f&&g.classList.replace(l._22,l._21),g.classList.add(l._26);for(var _=0;_<d.collections.length;_++){var T=void 0,x=void 0;if(d.enableGroupOverflow){var M=b.querySelector("#"+d.id+l.r);M&&(T=n.i(r.getInstance)(M,u.DropDownButton),x=T.target)}else(T=this.overflowDDB)&&(x=this.overflowDDB.target);var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);"Column"===f&&I.classList.replace(l._22,l._21);for(var C=0;C<S.items.length;C++){for(var O=S.items,B=S.items[parseInt(C.toString(),10)],w=!0;w&&!(B.displayOptions&s.b.Classic);){C++;var k=void 0;if((B.displayOptions&s.b.Simplified||B.displayOptions&s.b.Overflow)&&null!==(k=B.displayOptions&s.b.Simplified?b.querySelector("#"+B.id+l._40):x.querySelector("#"+B.id+l._40))){var q=k.querySelector("#"+B.id);this.destroyFunction(B,q),k.remove()}C<O.length?B=O[parseInt(C.toString(),10)]:w=!1}if(!w)break;if(B.displayOptions&(s.b.Simplified|s.b.Overflow)){var k=b.querySelector("#"+B.id+l._40);!k&&x&&(k=x.querySelector("#"+B.id+l._40),B.type!==s.f.DropDown&&B.type!==s.f.SplitButton&&B.type!==s.f.GroupButton||this.updatePopupItems(B,k,d.enableGroupOverflow,!1),this.removeOverflowEvent(B,k)),B.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(B,k),k&&I.append(k)}else{var k=this.createItems([B],f,d.id,d.header,d.enableGroupOverflow,e)[0];I.append(k)}var P=b.querySelector("#"+B.id);B.type===s.f.GroupButton&&(P=b.querySelector("#"+B.id+l.A));var R=B.allowedSizes&s.c.Large?s.c.Large:B.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;B.setProperties({activeSize:R},!0),this.setItemSize(P,B)}d.enableGroupOverflow&&T&&(0===x.childElementCount||1===x.childElementCount&&this.isHeaderVisible(x,d.id))&&this.removeOverflowButton(T)}}}this.selectedTab===e&&this.checkOverflow(e,a)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.createLauncherIcon=function(t,e){var n=this,o=this.createElement("div",{className:l._17+" "+(this.launcherIconCss?this.launcherIconCss:l._18),id:t+l._39,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});e.appendChild(o),e.classList.add(l._16),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)],a=s.orientation,c=this.createElement("div",{className:s.cssClass,id:s.id});c.classList.add(l._8),o.push(c);var u=this.createElement("div",{className:s.cssClass,id:s.id+l._40});u.classList.add(l._9),c.appendChild(u);var p=this.createElement("div",{className:"Simplified"===this.activeLayout?l._12:l._12+l.G+l._26,id:s.id+l.o});if(p.classList.add("Column"===a||"Simplified"===this.activeLayout?l._22:l._21),u.appendChild(p),"Classic"===this.activeLayout){var d=this.createElement("div",{className:l._13,id:s.id+l.E,innerHTML:s.header});u.appendChild(d)}s.showLauncherIcon&&this.createLauncherIcon(s.id,u);var f=this.createCollection(s.collections,s.orientation,s.id,s.header,s.enableGroupOverflow,e,u);n.i(r.append)(f,p);for(var h=!0,b=0;b<f.length;b++)if(h)for(var m=0;m<f[parseInt(b.toString(),10)].children.length;m++)if(!f[parseInt(b.toString(),10)].children[parseInt(m.toString(),10)].classList.contains("e-hidden")){h=!1;break}h&&c.classList.add("e-hide-group"),"Simplified"!==this.activeLayout||s.enableGroupOverflow||c.querySelector("."+l._20)||c.classList.add("e-ribbon-emptyCollection");var v=this.initialPropsData[parseInt(e.toString(),10)];v&&(v.hiddenGroups&&v.hiddenGroups.length&&this.updateGroupProps("hiddenGroups",v,c),v.disabledGroups&&v.disabledGroups.length&&this.updateGroupProps("disabledGroups",v,c))}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 a=r[parseInt(i.toString(),10)].items,c=0;c<a.length;c++){var l=a[parseInt(c.toString(),10)];if(l.allowedSizes&&0!==l.allowedSizes||l.setProperties({allowedSizes:s.c.Small|s.c.Medium|s.c.Large},!0),"ColorPicker"===l.type&&l.allowedSizes!==s.c.Small)l.setProperties({allowedSizes:s.c.Small},!0);else if("ComboBox"!==l.type&&"CheckBox"!==l.type||l.allowedSizes===s.c.Medium){if(("Column"===o&&a.length>1||"Row"===o&&r.length>1)&&l.allowedSizes&s.c.Large){var u=l.allowedSizes&(s.c.Small|s.c.Medium);u=u||s.c.Medium,l.setProperties({allowedSizes:u},!0)}}else l.setProperties({allowedSizes:s.c.Medium},!0);var p=l.allowedSizes&s.c.Large?s.c.Large:l.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;l.setProperties({activeSize:p},!0)}},e.prototype.createCollection=function(t,e,o,i,s,a,c){for(var u=[],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(l._19),f.classList.add("Column"!==e||"Simplified"===this.activeLayout?l._22:l._21),u.push(f);var h=this.createItems(d.items,e,o,i,s,a,c);if(n.i(r.append)(h,f),"Row"===e&&2===p)break}return u},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,a,u){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+l._40});(p=m.classList).add.apply(p,[l._20].concat(h.disabled?[l.S]:[])),h.ribbonTooltipSettings&&n.i(c.a)(h.ribbonTooltipSettings)&&(m.classList.add(l.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(l._23,l._26):m.classList.add(v&s.c.Medium?l._24:l._25);var y=this.initialPropsData[parseInt(a.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,a,i,r,o,m,u),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:l._30,id:this.element.id+l._41});var t=n.i(c.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(l._42,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},e.prototype.createTemplateContent=function(t,e){var n=this.createElement("div",{className:t.cssClass?l._29+l.G+t.cssClass:l._29,id:t.id,attrs:{tabindex:"-1"}});t.disabled&&(n.classList.add(l.S),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(c.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?l._33:"group"===e?l._34:"collection"===e?l._35:l._36,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("."+l._8))for(var a=0,p=o.groups;a<p.length;a++){var d=p[a],f=void 0,h=void 0;this.activeLayout===s.a.Classic?f=d.isCollapsed?i.querySelector("#"+d.id+l.N+l.O):null:(f=d.enableGroupOverflow?i.querySelector("#"+d.id+l.r):null,(h=f?n.i(r.getComponent)(f,u.DropDownButton):this.overflowDDB)&&(n.i(c.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+l.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 O=S.querySelector("#"+_.id+l.A+C);n.i(c.j)(O,"btn",t)}else if("group-btn"===I&&"Simplified"===this.activeLayout){n.i(c.j)(S,"dropdown-btn",t);for(var B=0;B<_.groupButtonSettings.items.length;B++){var O=document.querySelector("#"+_.id+l.A+B);n.i(c.j)(O,"btn",t)}}else n.i(c.j)(S,I,t);else n.i(r.isNullOrUndefined)(t.enableRtl)||S.classList.toggle(l.T,t.enableRtl)}}}}},e.prototype.removeLauncherIcon=function(t,e,o){var i=t+l._40,s=e?this.ribbonDropDownModule.getDDBItemElement(e,i):o.querySelector("#"+i);if(s){s.classList.remove(l._16);var a=s.querySelector("#"+t+l._39);n.i(r.remove)(a)}},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,a=0,c=o.groups;a<c.length;a++){var p=c[a],d=void 0,f=void 0;this.activeLayout===s.a.Classic?(d=p.isCollapsed?i.querySelector("#"+p.id+l.N+l.O):null,p.showLauncherIcon&&this.removeLauncherIcon(p.id,d,i)):(d=p.enableGroupOverflow?i.querySelector("#"+p.id+l.r):null,f=d?n.i(r.getComponent)(d,u.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+l.A):i.querySelector("#"+g.id+l.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+l.A+o);i&&n.i(c.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+l.A+e,o=n.i(c.e)(s.tooltipData,function(t){return t.id===r});-1!==o&&s.tooltipData.splice(o,1)}}(o)}else"template"!==r&&n.i(c.i)(e,r);if(t.ribbonTooltipSettings){var a=n.i(c.e)(this.tooltipData,function(e){return e.id===t.id+l._40});-1!==a&&this.tooltipData.splice(a,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+l.o),n=e.closest("."+l._6),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(c.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(c.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(c.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(c.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(c.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,a=o;i<a.length;i++){for(var u=a[i],p=u.isCollapsed?r.querySelector("#"+u.id+l.N+l.O):null,d=0,f=u.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+l.A):r.querySelector("#"+v.id+l.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(c.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)],a=s.groups.slice(),l=r?n.i(c.e)(a,function(t){return t.id===r}):-1;l=-1===l?a.length:l+(o?1:0),a.splice(l,0,e),s.setProperties({groups:a},!0),this.checkID([s.groups[parseInt(l.toString(),10)]],"group",t),this.validateItemSize();var u=this.tabObj.items[parseInt(i.toString(),10)].content;if(""!==u.innerHTML){var p=this.createGroups([s.groups[parseInt(l.toString(),10)]],i)[0],d=r?u.querySelector("#"+r):null;d?d.insertAdjacentElement(o?"afterend":"beforebegin",p):u.append(p)}this.selectedTab===i&&this.refreshLayout()}},e.prototype.removeGroup=function(t){var e=n.i(c.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,a=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+l.r):null,a=i?n.i(r.getComponent)(i,u.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,a)}if(this.activeLayout===s.a.Simplified)if(e.group.enableGroupOverflow)(0===a.target.childElementCount||1===a.target.childElementCount&&this.isHeaderVisible(a.target,e.group.id))&&this.removeOverflowButton(a);else{var v=a.target.querySelector("#"+e.group.id+l._40);v&&1===v.childElementCount&&v.remove();var y=a.target.querySelector("#"+this.tabs[parseInt(e.tabIndex.toString(),10)].id+l.N);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.isHeaderVisible=function(t,e){return!!t.querySelector("#"+e+l.r+l.E)},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(c.h)(this.tabs,t);if(s){var a=this.tabObj.items[s.tabIndex].content,p=a.querySelector("#"+t);if(p?this.updateHiddenElements(s.tabIndex,e?"hideGroup":"showGroup",t,e,p):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+l.N);if(s.group.enableGroupOverflow){var h=a.querySelector("#"+t+l.r);h&&(o=n.i(r.getInstance)(h,u.DropDownButton),i=o.target),i&&(e?i.classList.add("e-hidden"):i.classList.remove("e-hidden"))}else if(f){var b=f.querySelector("#"+t+l._40);b&&(e?b.classList.add("e-hidden"):b.classList.remove("e-hidden"))}}this.selectedTab===s.tabIndex&&this.refreshLayout()}},e.prototype.updateHiddenElements=function(t,e,n,r,o,i){r?o.classList.contains("e-hidden")||(this.checkHiddenElements(e,n,t),o.classList.add("e-hidden"),"hideItem"===e&&this.checkHiddenItems(i,r,t),this.calculateHiddenElementsWidth(t)):o.classList.contains("e-hidden")&&(this.checkHiddenElements(e,n,t),o.classList.remove("e-hidden"),this.calculateHiddenElementsWidth(t),"showItem"===e&&this.checkHiddenItems(i,r,t))},e.prototype.checkHiddenElements=function(t,e,n){if("Simplified"===this.activeLayout){var r=this.hiddenElements[parseInt(n.toString(),10)];if(r||(this.hiddenElements[parseInt(n.toString(),10)]={},r=this.hiddenElements[parseInt(n.toString(),10)]),r)if(r[t]||(r[t]=[]),r[t].length){var o=r[t].indexOf(e);-1===o&&r[t].push(e)}else r[t].push(e)}},e.prototype.updateItemsSimplifiedWidth=function(t,e){var n=this.hiddenElements[parseInt(t.toString(),10)];if(n&&n[e]&&n[e].length)for(var r,o=this,i=0;i<n[e].length;i++)!function(i){var s,a=o.tabObj.items[t].content,c=void 0,u=!1,p=0;if(s="hideGroup"===e||"showGroup"===e?a.querySelector("#"+n[e][i]):a.querySelector("#"+n[e][i]+l._40)){if("hideGroup"===e||"hideItem"===e){var d=!1;s.classList.contains("e-hidden")&&(d=!0,s.classList.remove("e-hidden")),"hideItem"===e&&(c=s.closest(".e-ribbon-group"),c.classList.contains("e-hide-group")&&(u=!0,p=o.checkWidthDifference(s,c))),o.calculateOverflowItemsWidth(s.offsetWidth+p,!0,t),o.calculateMediumDataWidth(s.offsetWidth+p,t,!0),d&&s.classList.add("e-hidden")}else{if("showItem"===e)if(c=s.closest(".e-ribbon-group"),c.classList.contains("e-hide-group"))u=!0,c.classList.remove("e-hide-group"),c.classList.remove("e-ribbon-emptyCollection"),p=Math.abs(s.offsetWidth-c.offsetWidth),-1!==o.hiddenGroups.indexOf(c.id)&&o.hiddenGroups.splice(o.hiddenGroups.indexOf(c.id),1);else if(-1!==o.hiddenGroups.indexOf(c.id)){var f=c.querySelectorAll(".e-ribbon-item:not(.e-hidden)");f.forEach(function(t){t.id!==s.id&&t.classList.add("e-hidden")}),p=Math.abs(s.offsetWidth-c.offsetWidth),f.forEach(function(t){t.id!==s.id&&t.classList.remove("e-hidden")}),o.hiddenGroups.splice(o.hiddenGroups.indexOf(c.id),1)}o.calculateOverflowItemsWidth(s.offsetWidth+p,!1,t),o.calculateMediumDataWidth(s.offsetWidth+p,t,!1)}u&&(c.classList.add("e-hide-group"),c.classList.add("e-ribbon-emptyCollection"))}var h=n[e].indexOf(n[e][i]);-1!==h&&(n[e].splice(h,1),i--),r=i}(i),i=r},e.prototype.checkWidthDifference=function(t,e){var n=0;return e.classList.remove("e-hide-group"),e.classList.remove("e-ribbon-emptyCollection"),this.hiddenGroups.length?-1===this.hiddenGroups.indexOf(e.id)&&(this.hiddenGroups.push(e.id),n=Math.abs(t.offsetWidth-e.offsetWidth)):(this.hiddenGroups.push(e.id),n=Math.abs(t.offsetWidth-e.offsetWidth)),n},e.prototype.calculateHiddenElementsWidth=function(t){if(t===this.selectedTab&&"Simplified"===this.activeLayout){var e=this.hiddenElements[parseInt(t.toString(),10)];if(e)for(var n=0;n<Object.keys(e).length;n++)this.updateItemsSimplifiedWidth(t,Object.keys(e)[parseInt(n.toString(),10)])}},e.prototype.calculateMediumDataWidth=function(t,e,o){if(this.selectedTab===e&&"Simplified"===this.activeLayout){var i=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.o),s=Array.prototype.slice.call(i.querySelectorAll(".e-ribbon-item"));if(this.overflowDDB)for(var a=this.overflowDDB.target,c=a.querySelectorAll(".e-ribbon-item"),p=document.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.N),d=0;d<c.length;d++){var f=c[parseInt(d.toString(),10)].closest("#"+this.tabs[parseInt(e.toString(),10)].id+l.N);p&&f&&p.id===f.id&&c[parseInt(d.toString(),10)].hasAttribute("data-medium-width")&&s.push(c[parseInt(d.toString(),10)])}for(var h=i.querySelectorAll(".e-ribbon-group-of-btn"),d=0;d<h.length;d++)for(var b=n.i(r.getInstance)(h[parseInt(d.toString(),10)],u.DropDownButton),m=b.target,c=m.querySelectorAll(".e-ribbon-item"),v=0;v<c.length;v++)c[parseInt(v.toString(),10)].hasAttribute("data-medium-width")&&s.push(c[parseInt(v.toString(),10)]);for(var d=0;d<s.length;d++)if(s[parseInt(d.toString(),10)].hasAttribute("data-medium-width")){var y=parseInt(s[parseInt(d.toString(),10)].getAttribute("data-medium-width"),10);s[parseInt(d.toString(),10)].setAttribute("data-medium-width",o?(y-t).toString():(y+t).toString())}}},e.prototype.calculateOverflowItemsWidth=function(t,e,o){if(this.selectedTab===o&&"Simplified"===this.activeLayout)for(var i=this.tabs[parseInt(o.toString(),10)].groups,s=0;s<i.length;s++){var a=i[parseInt(s.toString(),10)];if(a.enableGroupOverflow){var c=document.querySelector("#"+a.id),p=void 0,d=c.querySelector("#"+a.id+l.r);if(d&&(p=n.i(r.getInstance)(d,u.DropDownButton)),p)for(var f=p.target,h=f.querySelectorAll(".e-ribbon-item"),b=0;b<h.length;b++){var m=parseInt(h[parseInt(b.toString(),10)].getAttribute("data-simplified-width"),10);m&&h[parseInt(b.toString(),10)].setAttribute("data-simplified-width",e?(m-t).toString():(m+t).toString())}}}if(this.overflowDDB)for(var v=document.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+l.N),f=this.overflowDDB.target,h=f.querySelectorAll(".e-ribbon-item"),s=0;s<h.length;s++){var y=h[parseInt(s.toString(),10)].closest("#"+this.tabs[parseInt(o.toString(),10)].id+l.N);if(v&&y&&v.id===y.id){var m=parseInt(h[parseInt(s.toString(),10)].getAttribute("data-simplified-width"),10);m&&h[parseInt(s.toString(),10)].setAttribute("data-simplified-width",e?(m-t).toString():(m+t).toString())}}},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(c.h)(this.tabs,t);if(s){var a=this.tabObj.items[s.tabIndex].content,p=a.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+l.N);if(s.group.enableGroupOverflow){var h=a.querySelector("#"+t+l.r);h&&(o=n.i(r.getInstance)(h,u.DropDownButton),i=o.target),i&&(e?i.classList.add("e-disabled"):i.classList.remove("e-disabled"))}else if(f){var b=f.querySelector("#"+t+l._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(c.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(),a=r?n.i(c.e)(s,function(t){return t.id===r}):-1;a=-1===a?s.length:a+(o?1:0),s.splice(a,0,e),i.group.setProperties({collections:s},!0),this.checkID([i.group.collections[parseInt(a.toString(),10)]],"collection",t),this.validateItemSize();var u=this.tabObj.items[i.tabIndex].content;if(""!==u.innerHTML){var p=i.group.collections[parseInt(a.toString(),10)],d=this.createCollection([p],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex)[0];i.group.isCollapsed&&(u=this.ribbonDropDownModule.getOverflowDropDownPopup(i,u));var f=r?u.querySelector("#"+r):null;f?f.insertAdjacentElement(o?"afterend":"beforebegin",d):u.querySelector("#"+t+l.o).append(d)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeCollection=function(t){var e=n.i(c.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,a=void 0;this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+l.r):null,a=i?n.i(r.getComponent)(i,u.DropDownButton):this.overflowDDB);for(var p=0,d=e.collection.items;p<d.length;p++){var f=d[p];this.removeItemElement(o,f,a)}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(c.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(),a=r?n.i(c.e)(s,function(t){return t.id===r}):-1;a=-1===a?s.length:a+(o?1:0),s.splice(a,0,e),i.collection.setProperties({items:s},!0),this.checkID([i.collection.items[parseInt(a.toString(),10)]],"item",t),this.validateItemSize();var u=this.tabObj.items[i.tabIndex].content,p=u.querySelector("#"+i.group.id+l._40);if(""!==u.innerHTML){var d=i.collection.items[parseInt(a.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&&(u=this.ribbonDropDownModule.getOverflowDropDownPopup(i,u));var h=r?u.querySelector("#"+r):null;h?h.closest("."+l._20).insertAdjacentElement(o?"afterend":"beforebegin",f):f&&u.querySelector("#"+t).append(f)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeItem=function(t){var e=n.i(c.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,a=void 0;this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+l.r):null,a=i?n.i(r.getComponent)(i,u.DropDownButton):this.overflowDDB);var p=e.item;this.removeItemElement(o,p,a)}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(c.f)(this.tabs,t);if(o){var i;if(i="GroupButton"===o.item.type?n.i(c.l)(this,t+l.A,o):n.i(c.l)(this,t,o)){var s=n.i(r.closest)(i,".e-ribbon-item");this.updateHiddenElements(o.tabIndex,e?"hideItem":"showItem",t,e,s,o.group),this.selectedTab===o.tabIndex&&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.checkHiddenItems=function(t,e,r){var o,i=!0,s=this.tabObj.items[parseInt(r.toString(),10)].content,a=s.querySelector("#"+t.id);if(e){for(var u=0;u<t.collections.length;u++)if(i)for(var p=t.collections[parseInt(u.toString(),10)],d=0;d<p.items.length;d++){var f=p.items[parseInt(d.toString(),10)],h=void 0;if("GroupButton"===f.type){var b=n.i(c.f)(this.tabs,f.id);h=n.i(c.l)(this,f.id+l.A,b)}else h=n.i(c.l)(this,f.id);var m=h?h.closest(".e-ribbon-item"):null;if(!m.classList.contains("e-hidden")){i=!1;break}}i&&(a.classList.add("e-hide-group"),this.checkOverflowItems(e,s,t.enableGroupOverflow,r,t.id))}else a.classList.remove("e-hide-group"),this.checkOverflowItems(e,s,t.enableGroupOverflow,r,t.id);if("Simplified"===this.activeLayout&&!t.enableGroupOverflow){var v=a.querySelectorAll("."+l._20);v&&(o=this.checkEmptyCollection(v),a.classList[o?"add":"remove"]("e-ribbon-emptyCollection"))}},e.prototype.checkOverflowItems=function(t,e,o,i,s){var a,c;if(o){var p=e.querySelector("#"+s+l.r);p&&(a=n.i(r.getInstance)(p,u.DropDownButton),c=a.target),c&&(t?c.classList.add("e-hide-group"):c.classList.remove("e-hide-group"))}else if(this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(i.toString(),10)].id+l.N);if(f){var h=f.querySelector("#"+s+l._40);h&&(t?h.classList.add("e-hide-group"):h.classList.remove("e-hide-group"))}}},e.prototype.updateTab=function(t){var e=t.id,o=n.i(c.e)(this.tabs,function(t){return t.id===e});if(-1!==o){var i=this.tabObj.items[parseInt(o.toString(),10)].content,a=this.tabs[parseInt(o.toString(),10)].groups,u=this.tabObj.element;if(a&&""!==i.innerHTML&&(t.cssClass&&this.tabs[parseInt(o.toString(),10)].cssClass&&(i.classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass),u.querySelector(".e-active").classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass)),t.groups)){for(var p=0,d=a;p<d.length;p++){for(var f=d[p],h=f.isCollapsed?i.querySelector("#"+f.id+l.N+l.O):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+l.A):i.querySelector("#"+_.id+l.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),u.querySelector(".e-active").classList.add(I.cssClass)),t.header&&(u.querySelector("#"+e+l.E).innerText=I.header)}}},e.prototype.updateGroup=function(t){var e=t.id,o=n.i(c.h)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,a,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+e),f=d.querySelector("#"+t.id+l._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+l.r):null,a=i?n.i(r.getComponent)(i,u.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,a)}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===a.target.childElementCount||1===a.target.childElementCount&&this.isHeaderVisible(a.target,o.group.id))&&this.removeOverflowButton(a);else{var I=a.target.querySelector("#"+o.group.id+l._40);I&&1===I.childElementCount&&I.remove();var C=a.target.querySelector("#"+this.tabs[parseInt(o.tabIndex.toString(),10)].id+l.N);C&&0===C.childElementCount&&C.remove()}}var O=o.group;if(O.setProperties(t,!0),O.setProperties({collections:this.checkID(O.collections,"collection",O.id)},!0),this.validateItemSize(),""!==p.innerHTML){if(t.showLauncherIcon&&this.createLauncherIcon(O.id,f),t.collections||t.orientation){var _=f.querySelector(".e-ribbon-group-content");_.classList.add("Column"===O.orientation||"Simplified"===this.activeLayout?l._22:l._21);var B=this.createCollection(O.collections,O.orientation,O.id,O.header,O.enableGroupOverflow,o.tabIndex,f);n.i(r.append)(B,_)}if(this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&(d.classList.add(O.cssClass),f&&f.classList.add(O.cssClass)),t.header)if(this.activeLayout!==s.a.Simplified||t.enableGroupOverflow)if(this.activeLayout!==s.a.Classic||O.isCollapsed){if(this.activeLayout===s.a.Classic&&O.isCollapsed){var w=d.querySelector("#"+O.id+l.N+l.O),L=n.i(r.getInstance)(w,u.DropDownButton),P=L.target.querySelector("#"+t.id+l.E);P&&(P.innerText=O.header)}}else d.querySelector(".e-ribbon-group-header").innerText=O.header;else{var P=a.target.querySelector("#"+t.id+l.E);P&&(P.innerText=O.header)}}}},e.prototype.updateCollection=function(t){var e=t.id,o=n.i(c.g)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[o.tabIndex].content,a=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+l.r):null,d=p?n.i(r.getComponent)(p,u.DropDownButton):this.overflowDDB),t.cssClass&&o.collection.cssClass&&a.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+l._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,a)}this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&a.classList.add(m.cssClass)}},e.prototype.updateItem=function(t){var e=t.id,o=n.i(c.f)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,a,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+o.group.id),f=d.querySelector("#"+o.group.id+l._40),h=null,b=null;if(""!==p.innerHTML){if(this.activeLayout===s.a.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+l.r):null,a=i?n.i(r.getComponent)(i,u.DropDownButton):this.overflowDDB),this.activeLayout===s.a.Simplified&&o.item.displayOptions===s.b.Overflow){if(h=a.target.querySelector("#"+e+l._40),b=a.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+l._40),b=p.querySelector("#"+e),"GroupButton"===o.item.type&&this.activeLayout===s.a.Classic&&(b=p.querySelector("#"+e+l.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+l._40):a.target.querySelector("#"+e+l._40),y.ribbonTooltipSettings&&n.i(c.a)(y.ribbonTooltipSettings)&&(h.classList.add(l.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(l._23,l._26):h.classList.add(g&s.c.Medium?l._24:l._25),this.createRibbonItem(y,h),"Simplified"===this.activeLayout&&o.group.enableGroupOverflow&&(0===a.target.childElementCount||1===a.target.childElementCount&&this.isHeaderVisible(a.target,o.group.id))&&this.removeOverflowButton(a),this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&h.classList.add(y.cssClass),!y.disabled&&h.classList.contains(l.S)&&h.classList.remove(l.S),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+l.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+l._40).remove():r.closest("#"+e.id+l._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=!1,i=n.i(c.f)(this.tabs,t);if(i){i.item.setProperties({disabled:e},!0);var s;if(s="GroupButton"===i.item.type?n.i(c.l)(this,t+l.A,i):n.i(c.l)(this,t,i)){var a=n.i(r.closest)(s,".e-ribbon-item"),u=this.getItemModuleName(i.item);if(o=e?!a.classList.contains(l.S):a.classList.contains(l.S),"template"!==u){if(o)if("group-btn"===u&&"Simplified"===this.activeLayout){n.i(c.k)(s,"dropdown-btn",e);for(var p=0;p<i.item.groupButtonSettings.items.length;p++){var d=document.querySelector("#"+t+l.A+p);n.i(c.k)(d,"btn",e)}}else if("group-btn"===u&&"Classic"===this.activeLayout)for(var p=0;p<i.item.groupButtonSettings.items.length;p++){var d=s.querySelector("#"+t+l.A+p);n.i(c.k)(d,"btn",e)}else n.i(c.k)(s,u,e)}else s.classList.toggle(l.S,e),s.toggleAttribute("disabled",e);a.classList.toggle(l.S,i.item.disabled)}}},e.prototype.unwireEvents=function(){r.EventHandler.remove(window,"resize",this.resizeHandler)},e.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,n.i(c.n)(this.element),this.refreshing&&this.clearOverflowDropDown(this.selectedTab),this.destroyTabItems(this.tabs),this.hideLayoutSwitcher||this.removeExpandCollapse(),this.collapseButton=void 0,this.scrollModule&&(this.scrollModule.destroy(),this.scrollModule=null),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={},this.hiddenGroups=[],this.hiddenElements={},n.i(r.remove)(this.element.querySelector("#"+this.element.id+l._33)),this.element.style.removeProperty(l.c),this.element.style.removeProperty(l._42),this.element.style.removeProperty("width"),this.cssClass&&n.i(r.removeClass)([this.element],this.cssClass.split(l.G)),this.element.classList.remove(l.T,l._31,l._5,l._1,l._7,"e-rbn"),this.unwireEvents()},e.prototype.onPropertyChanged=function(t,e){for(var o,i,s=0,a=Object.keys(t);s<a.length;s++){switch(a[s]){case"activeLayout":this.switchLayout();break;case"cssClass":e.cssClass&&(o=this.element.classList).remove.apply(o,e.cssClass.split(l.G)),t.cssClass&&(i=this.element.classList).add.apply(i,t.cssClass.split(l.G));break;case"isMinimized":this.element.classList.toggle(l._7,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(l.T,this.enableRtl),this.updateCommonProperty({enableRtl:t.enableRtl}),this.scrollModule&&this.scrollModule.setProperties({enableRtl:t.enableRtl});break;case"launcherIconCss":for(var c=0;c<this.tabs.length;c++){var p=this.tabObj.items[parseInt(c.toString(),10)].content,d=this.tabs[parseInt(c.toString(),10)];if(p.querySelector("."+l._8))for(var f=0,h=d.groups;f<h.length;f++){var b=h[f];if(b.showLauncherIcon){var m=l._17+" "+(this.launcherIconCss||l._18);if(b.isCollapsed){var v=p.querySelector("#"+b.id+l.N+l.O),y=n.i(r.getComponent)(v,u.DropDownButton),g=y.target.querySelector("#"+b.id+l._39);g.className=m}else{var v=p.querySelector("#"+b.id+l._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(l._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),f([n.i(r.Event)()],e.prototype,"overflowPopupOpen",void 0),f([n.i(r.Event)()],e.prototype,"overflowPopupClose",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 a});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=n(1),a=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,a=this.parent.createElement("button",{id:t.id});e.appendChild(a);var c=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:c.iconCss,disabled:t.disabled,cssClass:(s.H+s.G+s.I+s.G+(c.cssClass?c.cssClass:"")).trim(),content:t.activeSize===i.d.Small?"":c.content,isPrimary:c.isPrimary,isToggle:c.isToggle,created:c.created},a),c.htmlAttributes&&n.i(i._64)(a,c.htmlAttributes),a.onclick=function(t){c.clicked&&c.clicked.call(r,t)},a.setAttribute("aria-label",c.content)},t.prototype.addOverFlowEvents=function(t,e,i){var a=this,c=e.querySelector("#"+t.id);c.setAttribute("data-control",t.type.toString());var l=n.i(r.getComponent)(c,o.Button);l.setProperties({cssClass:l.cssClass+s.G+s.M}),c.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(a,e),i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,a=e.querySelector("#"+t.id),c=n.i(r.getComponent)(a,o.Button),l=c.cssClass.split(s.G);l=l.filter(function(t){return t!==s.M}),c.setProperties({cssClass:l.join(s.G)}),a.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 a=n.i(i._52)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.buttonSettings,t);var c=n.i(i._58)(this.parent,e,a);if(c){var l=n.i(r.getComponent)(c,o.Button);t.isToggle&&c.classList.add("e-active"),t.cssClass&&(t.cssClass=(s.H+s.G+s.I+s.G+t.cssClass).trim()),t.content&&(t.content=a.item.activeSize===i.d.Small?"":t.content,c.setAttribute("aria-label",t.content)),delete t.clicked,l.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 a=this,c=e.querySelector("#"+t.id);c.setAttribute("data-control",t.type.toString());var l=n.i(r.getComponent)(c,o.CheckBox);l.cssClass=l.cssClass+i.s+i.q,l.dataBind(),l.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(a,e),s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,a=e.querySelector("#"+t.id),c=n.i(r.getComponent)(a,o.CheckBox),l=c.cssClass.split(i.s);l=l.filter(function(t){return t!==i.q}),c.cssClass=l.join(i.s),c.dataBind(),c.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 a=n.i(i._58)(this.parent,e,s);if(a){t.cssClass&&(t.cssClass=(i.p+i.s+t.cssClass).trim()),delete t.change;n.i(r.getComponent)(a,o.CheckBox).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(52)),i=(n.n(o),n(2)),s=n(1),a=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 a=this,c=this.parent.createElement("input",{id:t.id});e.appendChild(c);var l=t.colorPickerSettings,u=new o.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:l.columns,cssClass:(s.I+s.G+(l.cssClass?l.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:l.enableOpacity,mode:l.mode,modeSwitcher:l.modeSwitcher,noColor:l.noColor,presetColors:l.presetColors,showButtons:l.showButtons,value:l.value,beforeClose:function(){u.element.parentElement.classList.remove(s.K),l.beforeClose&&l.beforeClose.call(a)},beforeOpen:l.beforeOpen,beforeTileRender:l.beforeTileRender,created:l.created,change:l.change,open:function(){u.element.parentElement.classList.add(s.K),l.open&&l.open.call(a)},select:l.select},c);l.htmlAttributes&&n.i(i._64)(c,l.htmlAttributes);var p=u.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.L):t.classList.remove(s.L)},t.prototype.addOverFlowEvents=function(t,e,i){var a=this,c=t.colorPickerSettings;if(c.label&&"Simplified"===this.parent.activeLayout){var l=this.parent.createElement("div",{className:"e-ribbon-colorpicker-label",id:t.id+"_label",innerHTML:c.label});e.insertBefore(l,e.firstChild)}var u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var p=n.i(r.getComponent)(u,o.ColorPicker);p.setProperties({cssClass:p.cssClass+s.G+s.M});var d,f=p.splitBtn;p.beforeClose=function(e){d=e.event?e.event.target:null,p.element.parentElement.classList.remove(s.K),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(a)},f.close=function(){d&&!d.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this;if(t.colorPickerSettings.label){var a=e.querySelector("#"+t.id+"_label");a&&a.remove()}var c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,o.ColorPicker),u=l.cssClass.split(s.G);u=u.filter(function(t){return t!==s.M}),l.setProperties({cssClass:u.join(s.G)}),l.splitBtn.close=null,l.beforeClose=function(){l.element.parentElement.classList.remove(s.K),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 a=n.i(i._52)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.checkBoxSettings,t);var c=n.i(i._58)(this.parent,e,a);if(c){t.cssClass&&(t.cssClass=(s.I+s.G+t.cssClass).trim()),delete t.beforeClose,delete t.open;n.i(r.getComponent)(c,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 a=this,c=t.comboBoxSettings;if(c.label&&"Simplified"===this.parent.activeLayout){var l=this.parent.createElement("div",{className:"e-ribbon-combobox-label",id:t.id+"_label",innerHTML:c.label});e.insertBefore(l,e.firstChild)}var u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var p=n.i(r.getComponent)(u,o.ComboBox);p.setProperties({cssClass:p.cssClass+i.s+i.q}),p.close=function(e){var n=e.event?e.event.target:null;t.comboBoxSettings.close&&t.comboBoxSettings.close.call(a,e),n&&!n.closest(".e-ribbon-group-overflow-ddb")&&s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this;if(t.comboBoxSettings.label){var a=e.querySelector("#"+t.id+"_label");a&&a.remove()}var c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,o.ComboBox),u=l.cssClass.split(i.s);u=u.filter(function(t){return t!==i.q}),l.setProperties({cssClass:u.join(i.s)}),l.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 a=n.i(i._58)(this.parent,e,s);if(a){t.cssClass&&(t.cssClass=(i.p+i.s+t.cssClass).trim()),delete t.close;n.i(r.getComponent)(a,o.ComboBox).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(3)),i=(n.n(o),n(10)),s=(n.n(i),n(2)),a=n(1),c=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 c=t.dropDownSettings,l=(a.H+a.G+a.I+a.G+(c.cssClass?c.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:c.closeActionEvents,content:t.activeSize===s.d.Small?"":c.content,cssClass:l+(t.activeSize===s.d.Large?a.G+a.J:""),disabled:t.disabled,iconCss:c.iconCss,items:c.items,target:c.target,createPopupOnClick:c.createPopupOnClick,beforeClose:function(t){c.beforeClose&&c.beforeClose.call(r,t)},beforeItemRender:c.beforeItemRender,beforeOpen:c.beforeOpen,close:function(t){c.close&&c.close.call(r,t)},created:c.created,open:c.open,select:c.select}).appendTo(i),c.htmlAttributes&&n.i(s._64)(i,c.htmlAttributes)},t.prototype.addOverFlowEvents=function(t,e,i){var s=this,c=e.querySelector("#"+t.id);c.setAttribute("data-control",t.type.toString());var l=n.i(r.getComponent)(c,o.DropDownButton);l.cssClass=l.cssClass+a.G+a.M,l.dataBind();var u;l.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(s,e),u=e.event?e.event.target:null},l.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(s,e),u&&!u.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,s=e.querySelector("#"+t.id),c=n.i(r.getComponent)(s,o.DropDownButton),l=c.cssClass.split(a.G);l=l.filter(function(t){return t!==a.M}),c.cssClass=l.join(a.G),c.dataBind(),c.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(i,e)},c.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(i,e)}},t.prototype.createOverFlowDropDown=function(t,e,i,c,l,u){var p=this;this.enableRtl=u;var d=this.parent.createElement("button",{id:t+a.N+a.O});c.setAttribute("tabindex","0"),l.appendChild(d);var f=new o.DropDownButton({iconCss:i,target:c,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:a.J+a.G+a.P,iconPosition:"Top",content:e,beforeClose:function(t){t.cancel=!n.i(r.isNullOrUndefined)(t.event&&n.i(r.closest)(t.event.target,"."+a.M))}},d);return n.i(s._61)(c,this.parent),d.onclick=d.onkeydown=function(){p.itemIndex=0},c.onkeydown=function(t){p.keyActionHandler(t,c)},f},t.prototype.keyActionHandler=function(t,e){var n,r=Array.prototype.slice.call(e.querySelectorAll(".e-control")),o=Array.prototype.slice.call(e.querySelectorAll(".e-ribbon-template")),i=r.concat(o),s=e.querySelectorAll(".e-combobox");if(s)for(var a=0;a<s.length;a++)s[parseInt(a.toString(),10)].closest(".e-input-focus")&&(n=s[parseInt(a.toString(),10)]);if(n)for(var a=0;a<i.length;a++)i[parseInt(a.toString(),10)].classList.contains("e-combobox")&&i[parseInt(a.toString(),10)].closest(".e-input-focus")&&(this.itemIndex=a);(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-template")||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,i),("ArrowLeft"===t.key||t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,this.enableRtl,i))},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")&&!t.target.classList.contains("e-ribbon-template")||(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+a.N+a.O);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 c=n.i(s._58)(this.parent,e,i);if(c){var l=n.i(r.getComponent)(c,o.DropDownButton);t.cssClass&&(t.cssClass=(a.I+a.G+a.H+a.G+t.cssClass).trim(),t.cssClass=i.item.activeSize===s.d.Large?(a.J+a.G+t.cssClass).trim():t.cssClass,l.cssClass=t.cssClass),delete t.close,delete t.beforeClose,t.content&&(t.content=i.item.activeSize===s.d.Small?"":t.content),l.setProperties(t)}}},t.prototype.updateDropDownSize=function(t,e){var i=n.i(r.getComponent)(t,o.DropDownButton),c=i.cssClass.split(a.G);e.activeSize===s.d.Large?c.push(a.J):c=c.filter(function(t){return t!==a.J}),i.cssClass=c.join(a.G),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 u});var r=n(0),o=(n.n(r),n(1)),i=n(7),s=(n.n(i),n(5)),a=n(3),c=(n.n(a),n(8)),l=n(10),u=(n.n(l),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 l=this,u=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<u.items.length;d++)if(u.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:u.items[parseInt(d.toString(),10)].iconCss,disabled:t.disabled,enableRtl:this.parent.enableRtl,content:t.activeSize===s.c.Small?"":u.items[parseInt(d.toString(),10)].content,iconPosition:t.activeSize===s.c.Large?"Top":"Left"},f),u.items[parseInt(d.toString(),10)].htmlAttributes&&n.i(c.c)(f,u.items[parseInt(d.toString(),10)].htmlAttributes);var h=e.querySelector("#"+t.id+o.A+d);u.selection===s.d.Single?p.classList.add(o.C):p.classList.add(o.D),u.items[parseInt(d.toString(),10)].selected&&(u.selection===s.d.Multiple?h.classList.add("e-active"):this.count<1&&(h.classList.add("e-active"),this.count++)),u.items[parseInt(d.toString(),10)].ribbonTooltipSettings&&n.i(c.a)(u.items[parseInt(d.toString(),10)].ribbonTooltipSettings)&&(f.classList.add(o.e),this.parent.tooltipData.push({id:f.id,data:u.items[parseInt(d.toString(),10)].ribbonTooltipSettings})),r.EventHandler.add(h,"click",this.groupButtonClicked.bind(this,d,t,u),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<u.items.length;d++)t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&!this.isSelected&&u.selection===s.d.Single?(b=t.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss,this.isSelected=!0):t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&u.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++;var y=new a.DropDownButton({iconCss:b,target:p,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h);if(u.header){var g=y.dropDown;this.addGroupButtonHeader(t.id,u,g.element)}h.onclick=h.onkeydown=function(){l.handleFocusState(t,e)},p.onkeydown=function(e){"Simplified"===l.parent.activeLayout&&l.handleGroupButtonNavigation(e,t)},n.i(c.d)(p,this.parent),this.isSelected=!1}},t.prototype.groupButtonClicked=function(t,e,i){for(var c,l,u=[],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")&&u.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:u,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"),i.items[parseInt(f.toString(),10)].setProperties({selected:!1},!0));document.querySelector("#"+e.id+o.A+t).classList.toggle("e-active"),i.items[parseInt(t.toString(),10)].setProperties({selected:!0},!0),document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&(this.grpBtnIndex=t,c=document.querySelector("#"+e.id),l=n.i(r.getComponent)(c,a.DropDownButton),l.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"),document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")?i.items[parseInt(t.toString(),10)].setProperties({selected:!0},!0):i.items[parseInt(t.toString(),10)].setProperties({selected:!1},!0);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(c=document.querySelector("#"+e.id),l=n.i(r.getComponent)(c,a.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++;l.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:u,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,l=t.groupButtonSettings,u=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<l.items.length;b++)document.querySelector("#"+t.id+o.A+b)&&(document.querySelector("#"+t.id+o.A+b).classList.contains("e-active")&&l.selection===s.d.Single?u=l.items[parseInt(b.toString(),10)].iconCss:document.querySelector("#"+t.id+o.A+b).classList.contains("e-active")&&l.selection===s.d.Multiple&&(p++,1===p?u=l.items[parseInt(b.toString(),10)].iconCss:p>1&&(u=null)));for(;d<l.items.length&&!u;)l.items[parseInt(d.toString(),10)].iconCss&&(u=l.items[parseInt(d.toString(),10)].iconCss),d++;var m=new a.DropDownButton({iconCss:u,target:f,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h);if(l.header){var v=m.dropDown;this.addGroupButtonHeader(t.id,l,v.element)}h.onclick=h.onkeydown=function(){i.handleFocusState(t,e)},f.onkeydown=function(e){"Simplified"===i.parent.activeLayout&&i.handleGroupButtonNavigation(e,t)},n.i(c.d)(f,this.parent)}else{var y=e.querySelector("#"+t.id),m=n.i(r.getComponent)(y,a.DropDownButton);e.appendChild(m.target),y&&(m.destroy(),n.i(r.remove)(y))}},t.prototype.handleFocusState=function(t,e){if(e.querySelector("#"+t.id).classList.contains("e-active")){var n=document.querySelector("#"+t.id+"_grpbtn").querySelector("."+o.B+".e-active");n?n.focus():document.querySelector("#"+t.id+o.A+0).focus(),this.grpBtnIndex=0}},t.prototype.addGroupButtonHeader=function(t,e,n){var r=this.parent.createElement("div",{className:"e-ribbon-groupbutton-header",id:t+o.E,innerHTML:e.header});n.insertBefore(r,n.firstChild)},t.prototype.handleGroupButtonNavigation=function(t,e){var i=document.querySelector("#"+e.id),s=n.i(r.getComponent)(i,a.DropDownButton),c=s.target,l=!1;"Simplified"===this.parent.activeLayout&&c.closest(".e-ribbon-dropdown-group-button").classList.contains(o.F)&&(l=!0),"Tab"===t.key&&t.preventDefault();var u=e.groupButtonSettings;"ArrowRight"===t.key&&!l||"ArrowDown"===t.key&&l?!this.parent.enableRtl||"ArrowDown"===t.key&&l?(this.grpBtnIndex++,this.grpBtnIndex<u.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=u.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&&!l||"ArrowUp"===t.key&&l)&&(!this.parent.enableRtl||"ArrowUp"===t.key&&l?0===this.grpBtnIndex?(this.grpBtnIndex=u.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<u.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,i){var s=this,c=t.groupButtonSettings,l=!0,u=e.querySelector("#"+t.id),p=n.i(r.getComponent)(u,a.DropDownButton);p.setProperties({cssClass:p.cssClass+o.G+o.F,content:c.header?c.header:""});var d=p.target;if(d.children.length){for(var f=0;f<d.children.length;f++)if(c.items[parseInt(f.toString(),10)].content){l=!1;break}l&&d.classList.add("e-icon-btn")}d.onclick=function(){"Simplified"===s.parent.activeLayout&&d.closest(".e-ribbon-dropdown-group-button").classList.contains(o.F)&&(p.toggle(),i.toggle())}},t.prototype.removeOverFlowEvents=function(t,e){var i=e.querySelector("#"+t.id);if(i){var s=n.i(r.getComponent)(i,a.DropDownButton),c=s.target;c.classList.contains("e-icon-btn")&&c.classList.remove("e-icon-btn");var l=s.cssClass.split(o.G);l=l.filter(function(t){return t!==o.F}),s.setProperties({cssClass:l.join(o.G),content:""})}},t.prototype.destroyDropDown=function(t){var e=document.querySelector("#"+t.id);if(e){var o=n.i(r.getComponent)(e,a.DropDownButton);n.i(r.getComponent)(o.target,l.Tooltip).destroy(),o.destroy(),n.i(r.remove)(e)}},t.prototype.updateGroupButtonSize=function(t,e){for(var a,c=e.groupButtonSettings,l=0;l<c.items.length;l++)if(a="Classic"===this.parent.activeLayout?t.querySelector("#"+e.id+o.A+l):document.querySelector("#"+e.id+o.A+l)){var u=n.i(r.getComponent)(a,i.Button);u.setProperties({iconPosition:e.activeSize===s.c.Large?"Top":"Left",content:e.activeSize===s.c.Small?"":c.items[parseInt(l.toString(),10)].content})}},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(2)),s=n(1),a=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 a=this,c=this.parent.createElement("button",{id:t.id});e.appendChild(c);var l=t.splitButtonSettings,u=(s.H+s.G+s.I+s.G+(l.cssClass?l.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:l.closeActionEvents,cssClass:u+(t.activeSize===i.d.Large?s.G+s.J:""),disabled:t.disabled,iconCss:l.iconCss,items:l.items,target:l.target,beforeClose:function(t){l.beforeClose&&l.beforeClose.call(a,t)},beforeItemRender:l.beforeItemRender,beforeOpen:l.beforeOpen,close:function(){p.wrapper.classList.remove(s.K),l.close&&l.close.call(a)},created:l.created,open:function(){p.wrapper.classList.add(s.K),l.open&&l.open.call(a)},select:l.select,click:function(t){l.click&&l.click.call(a,t)}},c);l.htmlAttributes&&n.i(i._64)(c,l.htmlAttributes);var d=c.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.L)},this),r.EventHandler.add(f,"mouseleave",function(){f.classList.remove(s.L)},this)},t.prototype.addOverFlowEvents=function(t,e,i){var a=this,c=e.querySelector("#"+t.id);c.setAttribute("data-control",t.type.toString());var l=n.i(r.getComponent)(c,o.SplitButton);l.cssClass=l.cssClass+s.G+s.M,l.dataBind();var u=c.parentElement.querySelector(".e-dropdown-btn"),p=u.getAttribute("id"),d=document.querySelector("#"+p+"-popup");u.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),u.click())},d.onkeydown=function(t){"Enter"===t.key&&(t.preventDefault(),l.wrapper.classList.remove("e-ribbon-open"),d.querySelector(".e-focused").click())};var f;l.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(a,e),f=e.event?e.event.target:null},l.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(a,e),i.toggle()},l.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(a,e),l.wrapper.classList.remove(s.K),f&&!f.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,a=e.querySelector("#"+t.id),c=n.i(r.getComponent)(a,o.SplitButton),l=c.cssClass.split(s.G);l=l.filter(function(t){return t!==s.M}),c.cssClass=l.join(s.G),c.dataBind(),c.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(i,e)},c.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(i,e)},c.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(i,e),c.wrapper.classList.remove(s.K)}},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 a=n.i(i._52)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.splitButtonSettings,t);var c=n.i(i._58)(this.parent,e,a);if(c){var l=n.i(r.getComponent)(c,o.SplitButton);t.cssClass&&(t.cssClass=(s.I+s.G+s.H+s.G+t.cssClass).trim(),t.cssClass=a.item.activeSize===i.d.Large?(s.J+s.G+t.cssClass).trim():t.cssClass,l.cssClass=t.cssClass),delete t.open,delete t.click,delete t.close,delete t.beforeClose,l.setProperties(t),t.content&&this.setContent(a.item,l)}}},t.prototype.updateSplitButtonSize=function(t,e){var a=n.i(r.getComponent)(t,o.SplitButton),c=a.cssClass.split(s.G);e.activeSize===i.d.Large?c.push(s.J):c=c.filter(function(t){return t!==s.J}),a.cssClass=c.join(s.G),a.setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left"}),this.setContent(e,a)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),o=(n.n(r),n(14)),i=n(15),s=n(6),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)}}(),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 a=t.length-1;a>=0;a--)(o=t[a])&&(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},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(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.Property)("auto")],e.prototype,"height",void 0),c([n.i(r.Property)("auto")],e.prototype,"width",void 0),c([n.i(r.Property)(null)],e.prototype,"target",void 0),c([n.i(r.Complex)({},o.a)],e.prototype,"backButton",void 0),c([n.i(r.Collection)([],i.a)],e.prototype,"items",void 0),c([n.i(r.Property)("")],e.prototype,"template",void 0),c([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 c});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)}}(),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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 s(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.Collection)([],o.MenuItem)],e.prototype,"menuItems",void 0),a([n.i(r.Property)(!1)],e.prototype,"showItemOnClick",void 0),a([n.i(r.Complex)({},o.MenuAnimationSettings)],e.prototype,"animationSettings",void 0),a([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),a([n.i(r.Property)("")],e.prototype,"popupTemplate",void 0),a([n.i(r.Complex)({},i.a)],e.prototype,"ribbonTooltipSettings",void 0),a([n.i(r.Event)()],e.prototype,"beforeClose",void 0),a([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),a([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),a([n.i(r.Event)()],e.prototype,"close",void 0),a([n.i(r.Event)()],e.prototype,"open",void 0),a([n.i(r.Event)()],e.prototype,"select",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(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 a=t.length-1;a>=0;a--)(o=t[a])&&(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 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),a=n(1),c=n(7),l=(n.n(c),n(10)),u=(n.n(l),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 u(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+a.a});var n=this.parent.tabObj.element,o=n.querySelector(".e-toolbar");if(n.insertBefore(this.backstageButtonEle,o),this.backstageButton=new c.Button({content:t.text,enableRtl:this.parent.enableRtl,cssClass:a.b,created:function(){n.style.setProperty(a.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,l=0;l<t.items.length;l++){t.items[parseInt(l.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(a.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(a.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(a.f)}}},e.prototype.createBackStagePopup=function(t){var e=this;this.popupHTMLElement=this.parent.createElement("div",{id:this.parent.element.id+a.g,className:a.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 l.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:a.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 c.Button({content:t.backButton.text,iconCss:t.backButton.iconCss?t.backButton.iconCss:a.j,enableRtl:this.parent.enableRtl},r),this.menuWrapper.append(r),r.onclick=function(){n.popupHTMLElement.classList.remove(a.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:a.k}),this.menuWrapper.append(this.itemsWrapperEle));var i;e?(i=this.parent.createElement("ul",{id:this.parent.element.id+a.l}),this.itemsWrapperEle.appendChild(i)):(this.ulMenuElem=this.parent.createElement("ul",{id:this.parent.element.id+a.m}),this.itemsWrapperEle.appendChild(this.ulMenuElem)),e?this.footerMenuCtrl=new o.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:a.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:a.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+a.o):this.backstageContentEle=this.parent.createElement("div",{id:t+a.o,className:a.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+a.a+"_template",className:a.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)),this.footerMenuCtrl&&this.footerMenuCtrl.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(a.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(a.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(a.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),a=this.parent.backStageMenu,o=0;o<a.items.length;o++)for(var i=a.items[parseInt(o.toString(),10)],c=0;c<s.length;c++){var l=s[parseInt(c.toString(),10)];if(i.text===l.text){l.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(a.d)&&this.popupEle.element.classList.remove(a.d),this.popupEle.hide()},e}(r.Component)},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(9)),s=(n.n(i),n(2)),a=n(1),c=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+a.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(a.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(a.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+a.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(a.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(a.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(a.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 a});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)}}()),a=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)(a,[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=a},function(t,e){t.exports=c}])});
|
|
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,i,o,s,a,c){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.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,"H",function(){return r}),n.d(e,"Q",function(){return i}),n.d(e,"j",function(){return o}),n.d(e,"R",function(){return s}),n.d(e,"J",function(){return a}),n.d(e,"S",function(){return c}),n.d(e,"T",function(){return l}),n.d(e,"L",function(){return u}),n.d(e,"I",function(){return p}),n.d(e,"M",function(){return d}),n.d(e,"K",function(){return f}),n.d(e,"G",function(){return h}),n.d(e,"U",function(){return b}),n.d(e,"V",function(){return m}),n.d(e,"W",function(){return v}),n.d(e,"X",function(){return y}),n.d(e,"Y",function(){return g}),n.d(e,"Z",function(){return _}),n.d(e,"_0",function(){return S}),n.d(e,"_1",function(){return I}),n.d(e,"_2",function(){return C}),n.d(e,"_3",function(){return O}),n.d(e,"_4",function(){return B}),n.d(e,"_5",function(){return w}),n.d(e,"_6",function(){return L}),n.d(e,"_7",function(){return P}),n.d(e,"_8",function(){return D}),n.d(e,"C",function(){return k}),n.d(e,"D",function(){return E}),n.d(e,"B",function(){return T}),n.d(e,"F",function(){return x}),n.d(e,"_9",function(){return M}),n.d(e,"_10",function(){return q}),n.d(e,"_11",function(){return R}),n.d(e,"_12",function(){return A}),n.d(e,"_13",function(){return G}),n.d(e,"_14",function(){return N}),n.d(e,"_15",function(){return j}),n.d(e,"P",function(){return z}),n.d(e,"_16",function(){return H}),n.d(e,"_17",function(){return W}),n.d(e,"_18",function(){return F}),n.d(e,"_19",function(){return U}),n.d(e,"_20",function(){return V}),n.d(e,"_21",function(){return K}),n.d(e,"_22",function(){return X}),n.d(e,"_23",function(){return J}),n.d(e,"_24",function(){return Z}),n.d(e,"_25",function(){return Y}),n.d(e,"_26",function(){return Q}),n.d(e,"_27",function(){return $}),n.d(e,"_28",function(){return tt}),n.d(e,"_29",function(){return et}),n.d(e,"_30",function(){return nt}),n.d(e,"x",function(){return rt}),n.d(e,"e",function(){return it}),n.d(e,"t",function(){return ot}),n.d(e,"w",function(){return st}),n.d(e,"v",function(){return at}),n.d(e,"s",function(){return ct}),n.d(e,"u",function(){return lt}),n.d(e,"_31",function(){return ut}),n.d(e,"h",function(){return pt}),n.d(e,"d",function(){return dt}),n.d(e,"p",function(){return ft}),n.d(e,"_32",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,"_33",function(){return St}),n.d(e,"_34",function(){return It}),n.d(e,"_35",function(){return Ct}),n.d(e,"_36",function(){return Ot}),n.d(e,"_37",function(){return Bt}),n.d(e,"_38",function(){return wt}),n.d(e,"r",function(){return Lt}),n.d(e,"E",function(){return Pt}),n.d(e,"_39",function(){return Dt}),n.d(e,"o",function(){return kt}),n.d(e,"_40",function(){return Et}),n.d(e,"N",function(){return Tt}),n.d(e,"O",function(){return xt}),n.d(e,"y",function(){return Mt}),n.d(e,"a",function(){return qt}),n.d(e,"g",function(){return Rt}),n.d(e,"z",function(){return At}),n.d(e,"m",function(){return Gt}),n.d(e,"l",function(){return Nt}),n.d(e,"_41",function(){return jt}),n.d(e,"A",function(){return zt}),n.d(e,"c",function(){return Ht}),n.d(e,"_42",function(){return Wt});var r="e-ribbon-vertical-center",i="e-icons e-drop-icon",o="e-icons e-arrow-left",s="e-icons e-more-horizontal-1",a="e-vertical",c="e-disabled",l="e-rtl",u="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",O="e-ribbon-group-of-btn",B="e-ribbon-overflow-target",w="e-ribbon-overflow",L="e-content",P="e-ribbon-minimize",D="e-ribbon-group",k="e-ribbon-single-selection",E="e-ribbon-multiple-selection",T="e-ribbon-group-button",x="e-ribbon-group-button-overflow-popup",M="e-ribbon-group-container",q="e-ribbon-of-tab",R="e-ribbon-of-group-container",A="e-ribbon-group-content",G="e-ribbon-group-header",N="e-ribbon-overflow-header",j="e-ribbon-group-overflow",z="e-ribbon-group-overflow-ddb",H="e-ribbon-launcher",W="e-ribbon-launcher-icon",F="e-icons e-launcher",U="e-ribbon-collection",V="e-ribbon-item",K="e-ribbon-row",X="e-ribbon-column",J="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",it="e-ribbon-tooltip-target",ot="e-ribbon-tooltip-title",st="e-ribbon-tooltip-content",at="e-ribbon-tooltip-icon",ct="e-ribbon-tooltip-container",lt="e-ribbon-text-container",ut="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",Ot="_item",Bt="_collapsebutton",wt="_sim_ovrl_overflow",Lt="_sim_grp_overflow",Pt="_header",Dt="_launcher",kt="_content",Et="_container",Tt="_overflow",xt="_dropdown",Mt="_filemenu",qt="_backstage",Rt="_backstagepopup",At="_filemenulist",Gt="_menulist",Nt="_footermenulist",jt="_helppanetemplate",zt="_grpbtn",Ht="--fileMenuWidth",Wt="--helpTemplateWidth"},function(t,e,n){"use strict";var r=n(30);n.d(e,"a",function(){return r.a});var i=n(5);n.d(e,"b",function(){return i.a}),n.d(e,"c",function(){return i.e}),n.d(e,"d",function(){return i.c}),n.d(e,"e",function(){return i.b}),n.d(e,"f",function(){return i.f}),n.d(e,"g",function(){return i.d});var o=n(1);n.d(e,"h",function(){return o.H}),n.d(e,"i",function(){return o.Q}),n.d(e,"j",function(){return o.j}),n.d(e,"k",function(){return o.R}),n.d(e,"l",function(){return o.J}),n.d(e,"m",function(){return o.S}),n.d(e,"n",function(){return o.T}),n.d(e,"o",function(){return o.L}),n.d(e,"p",function(){return o.I}),n.d(e,"q",function(){return o.M}),n.d(e,"r",function(){return o.K}),n.d(e,"s",function(){return o.G}),n.d(e,"t",function(){return o.U}),n.d(e,"u",function(){return o.V}),n.d(e,"v",function(){return o.W}),n.d(e,"w",function(){return o.X}),n.d(e,"x",function(){return o.Y}),n.d(e,"y",function(){return o.Z}),n.d(e,"z",function(){return o._0}),n.d(e,"A",function(){return o._1}),n.d(e,"B",function(){return o._2}),n.d(e,"C",function(){return o._3}),n.d(e,"D",function(){return o._4}),n.d(e,"E",function(){return o._5}),n.d(e,"F",function(){return o._6}),n.d(e,"G",function(){return o._7}),n.d(e,"H",function(){return o._8}),n.d(e,"I",function(){return o.C}),n.d(e,"J",function(){return o.D}),n.d(e,"K",function(){return o.B}),n.d(e,"L",function(){return o.F}),n.d(e,"M",function(){return o._9}),n.d(e,"N",function(){return o._10}),n.d(e,"O",function(){return o._11}),n.d(e,"P",function(){return o._12}),n.d(e,"Q",function(){return o._13}),n.d(e,"R",function(){return o._14}),n.d(e,"S",function(){return o._15}),n.d(e,"T",function(){return o.P}),n.d(e,"U",function(){return o._16}),n.d(e,"V",function(){return o._17}),n.d(e,"W",function(){return o._18}),n.d(e,"X",function(){return o._19}),n.d(e,"Y",function(){return o._20}),n.d(e,"Z",function(){return o._21}),n.d(e,"_0",function(){return o._22}),n.d(e,"_1",function(){return o._23}),n.d(e,"_2",function(){return o._24}),n.d(e,"_3",function(){return o._25}),n.d(e,"_4",function(){return o._26}),n.d(e,"_5",function(){return o._27}),n.d(e,"_6",function(){return o._28}),n.d(e,"_7",function(){return o._29}),n.d(e,"_8",function(){return o._30}),n.d(e,"_9",function(){return o.x}),n.d(e,"_10",function(){return o.e}),n.d(e,"_11",function(){return o.t}),n.d(e,"_12",function(){return o.w}),n.d(e,"_13",function(){return o.v}),n.d(e,"_14",function(){return o.s}),n.d(e,"_15",function(){return o.u}),n.d(e,"_16",function(){return o._31}),n.d(e,"_17",function(){return o.h}),n.d(e,"_18",function(){return o.d}),n.d(e,"_19",function(){return o.p}),n.d(e,"_20",function(){return o._32}),n.d(e,"_21",function(){return o.b}),n.d(e,"_22",function(){return o.n}),n.d(e,"_23",function(){return o.q}),n.d(e,"_24",function(){return o.i}),n.d(e,"_25",function(){return o.k}),n.d(e,"_26",function(){return o.f}),n.d(e,"_27",function(){return o._33}),n.d(e,"_28",function(){return o._34}),n.d(e,"_29",function(){return o._35}),n.d(e,"_30",function(){return o._36}),n.d(e,"_31",function(){return o._37}),n.d(e,"_32",function(){return o._38}),n.d(e,"_33",function(){return o.r}),n.d(e,"_34",function(){return o.E}),n.d(e,"_35",function(){return o._39}),n.d(e,"_36",function(){return o.o}),n.d(e,"_37",function(){return o._40}),n.d(e,"_38",function(){return o.N}),n.d(e,"_39",function(){return o.O}),n.d(e,"_40",function(){return o.y}),n.d(e,"_41",function(){return o.a}),n.d(e,"_42",function(){return o.g}),n.d(e,"_43",function(){return o.z}),n.d(e,"_44",function(){return o.m}),n.d(e,"_45",function(){return o.l}),n.d(e,"_46",function(){return o._41}),n.d(e,"_47",function(){return o.A}),n.d(e,"_48",function(){return o.c}),n.d(e,"_49",function(){return o._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 i}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return s}),n.d(e,"f",function(){return a}),n.d(e,"d",function(){return c});var r;!function(t){t.Classic="Classic",t.Simplified="Simplified"}(r||(r={}));var i;!function(t){t.Row="Row",t.Column="Column"}(i||(i={}));var o;!function(t){t[t.Large=4]="Large",t[t.Medium=2]="Medium",t[t.Small=1]="Small"}(o||(o={}));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 a;!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"}(a||(a={}));var c;!function(t){t.Single="Single",t.Multiple="Multiple"}(c||(c={}))},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=(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)}}()),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),o([n.i(r.Property)("")],e.prototype,"cssClass",void 0),o([n.i(r.Property)("")],e.prototype,"id",void 0),o([n.i(r.Property)("")],e.prototype,"title",void 0),o([n.i(r.Property)("")],e.prototype,"content",void 0),o([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 i(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 o(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],i=0;i<r.groups.length;i++)for(var o=r.groups[parseInt(i.toString(),10)],s=0;s<o.collections.length;s++)for(var a=o.collections[parseInt(s.toString(),10)],c=0;c<a.items.length;c++){var l=a.items[parseInt(c.toString(),10)];if(l.id===e)return{item:l,collection:a,group:o,tabIndex:n,groupIndex:i,collectionIndex:s,itemIndex:c}}return null}function s(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],i=0;i<r.groups.length;i++)for(var o=r.groups[parseInt(i.toString(),10)],s=0;s<o.collections.length;s++){var a=o.collections[parseInt(s.toString(),10)];if(a.id===e)return{collection:a,group:o,tabIndex:n,groupIndex:i,collectionIndex:s}}return null}function a(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],i=0;i<r.groups.length;i++){var o=r.groups[parseInt(i.toString(),10)];if(o.id===e)return{group:o,tabIndex:n,groupIndex:i}}return null}function c(t,e){n.i(y.getComponent)(t,e).destroy()}function l(t,e,r){n.i(y.getComponent)(t,e).setProperties(r)}function u(t,e,r){n.i(y.getComponent)(t,e).setProperties("combobox"===e?{enabled:!r}:{disabled:r})}function p(t,e,r){if(!r&&!(r=o(t.tabs,e)))return null;var i=t.tabObj.items[r.tabIndex].content;if(""===i.innerHTML)return null;if(t.activeLayout===_.a.Classic)return r.item.displayOptions&_.b.Classic?(i=r.group.isCollapsed?t.ribbonDropDownModule.getOverflowDropDownPopup(r,i):i,i.querySelector("#"+e)):null;var s=r.item.displayOptions&_.b.Simplified?i.querySelector("#"+r.item.id):null;if(!s){s=(r.group.enableGroupOverflow?n.i(y.getComponent)(i.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"),i=n.filter(function(t){return t.id===r})[0],o=i.data,s=e.createElement("div",{id:o.id?S.s+"_"+o.id:S.s});if(e.element.append(s),o.title){var a=e.createElement("div",{innerHTML:o.title,className:S.t});s.appendChild(a)}var c=e.createElement("div",{className:S.u});if(s.appendChild(c),o.iconCss){var l=e.createElement("div",{className:o.iconCss+" "+S.v});c.appendChild(l)}if(o.content){var u=e.createElement("div",{innerHTML:o.content,className:S.w});c.appendChild(u)}e.setProperties({content:s,cssClass:o.cssClass?o.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 i=e.class.replace(/\s+/g," ").trim();i&&n.i(y.addClass)([t],i.split(" "))}else if("style"===r){var o=t.getAttribute("style")||"",s=""+o+e[""+r];t.setAttribute(""+r,s)}else t.setAttribute(r,e[""+r])}e.e=r,e.b=i,e.f=o,e.g=s,e.h=a,e.i=c,e.j=l,e.k=u,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=i},function(t,e){t.exports=o},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 i=n(33);n.d(e,"b",function(){return i.a});var o=n(34);n.d(e,"c",function(){return o.a});var s=n(35);n.d(e,"d",function(){return s.a});var a=n(36);n.d(e,"e",function(){return a.a});var c=n(38);n.d(e,"f",function(){return c.a});var l=n(37);n.d(e,"g",function(){return l.a})},function(t,e,n){"use strict";var r=n(41);n.d(e,"a",function(){return r.a});var i=n(24);n.d(e,"b",function(){return i.a});var o=n(18);n.d(e,"c",function(){return o.a});var s=n(25);n.d(e,"d",function(){return s.a});var a=n(16);n.d(e,"e",function(){return a.a});var c=n(17);n.d(e,"f",function(){return c.a});var l=n(19);n.d(e,"g",function(){return l.a});var u=n(20);n.d(e,"h",function(){return u.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),i=(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)}}()),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),o([n.i(r.Property)("")],e.prototype,"text",void 0),o([n.i(r.Property)("")],e.prototype,"iconCss",void 0),o([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),i=(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)}}()),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),o([n.i(r.Property)("")],e.prototype,"text",void 0),o([n.i(r.Property)("")],e.prototype,"id",void 0),o([n.i(r.Property)("")],e.prototype,"content",void 0),o([n.i(r.Property)("")],e.prototype,"iconCss",void 0),o([n.i(r.Property)(!1)],e.prototype,"separator",void 0),o([n.i(r.Property)(!1)],e.prototype,"isFooter",void 0),o([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),i=(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)}}()),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=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)},o([n.i(r.Property)("")],e.prototype,"content",void 0),o([n.i(r.Property)("")],e.prototype,"cssClass",void 0),o([n.i(r.Property)("")],e.prototype,"iconCss",void 0),o([n.i(r.Property)(!1)],e.prototype,"isToggle",void 0),o([n.i(r.Property)(!1)],e.prototype,"isPrimary",void 0),o([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),o([n.i(r.Event)()],e.prototype,"created",void 0),o([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),i=(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)}}()),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=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)},o([n.i(r.Property)(!1)],e.prototype,"checked",void 0),o([n.i(r.Property)("")],e.prototype,"cssClass",void 0),o([n.i(r.Property)("")],e.prototype,"label",void 0),o([n.i(r.Property)("After")],e.prototype,"labelPosition",void 0),o([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),o([n.i(r.Event)()],e.prototype,"created",void 0),o([n.i(r.Event)()],e.prototype,"change",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(25)),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 i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=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)},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)([],i.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),i=(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)}}()),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=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)},o([n.i(r.Property)(10)],e.prototype,"columns",void 0),o([n.i(r.Property)("")],e.prototype,"cssClass",void 0),o([n.i(r.Property)("")],e.prototype,"label",void 0),o([n.i(r.Property)(!0)],e.prototype,"enableOpacity",void 0),o([n.i(r.Property)("Palette")],e.prototype,"mode",void 0),o([n.i(r.Property)(!0)],e.prototype,"modeSwitcher",void 0),o([n.i(r.Property)(!1)],e.prototype,"noColor",void 0),o([n.i(r.Property)(null)],e.prototype,"presetColors",void 0),o([n.i(r.Property)(!0)],e.prototype,"showButtons",void 0),o([n.i(r.Property)("#008000ff")],e.prototype,"value",void 0),o([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),o([n.i(r.Event)()],e.prototype,"beforeClose",void 0),o([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),o([n.i(r.Event)()],e.prototype,"beforeTileRender",void 0),o([n.i(r.Event)()],e.prototype,"created",void 0),o([n.i(r.Event)()],e.prototype,"change",void 0),o([n.i(r.Event)()],e.prototype,"open",void 0),o([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(27)),o=(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)}}()),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=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)},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,"label",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},i.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 a});var r=n(0),i=(n.n(r),n(3)),o=(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)}}()),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=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)},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)([],i.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 a});var r=n(0),i=(n.n(r),n(6)),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 i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=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)},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)({},i.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 a});var r=n(0),i=(n.n(r),n(22)),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 i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),s([n.i(r.Property)("")],e.prototype,"header",void 0),s([n.i(r.Property)("Single")],e.prototype,"selection",void 0),s([n.i(r.Collection)([],i.a)],e.prototype,"items",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(18)),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 i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=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)},s([n.i(r.Collection)([],i.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)("")],e.prototype,"overflowHeader",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),i=(n.n(r),n(5)),o=n(16),s=n(17),a=n(19),c=n(20),l=n(21),u=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 i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>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)(i.c.Medium)],e.prototype,"activeSize",void 0),h([n.i(r.Property)(i.c.Small|i.c.Medium|i.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)(i.b.Auto)],e.prototype,"displayOptions",void 0),h([n.i(r.Complex)({},p.a)],e.prototype,"ribbonTooltipSettings",void 0),h([n.i(r.Complex)({},o.a)],e.prototype,"buttonSettings",void 0),h([n.i(r.Complex)({},l.a)],e.prototype,"dropDownSettings",void 0),h([n.i(r.Complex)({},s.a)],e.prototype,"checkBoxSettings",void 0),h([n.i(r.Complex)({},a.a)],e.prototype,"colorPickerSettings",void 0),h([n.i(r.Complex)({},c.a)],e.prototype,"comboBoxSettings",void 0),h([n.i(r.Complex)({},u.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 a});var r=n(0),i=(n.n(r),n(3)),o=(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)}}()),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=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)},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)([],i.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 i=n(47);n.d(e,"c",function(){return i.a}),n.d(e,"d",function(){return i.b});var o=n(46);n.d(e,"e",function(){return o.a}),n.d(e,"f",function(){return o.b});var s=n(48);n.d(e,"g",function(){return s.a}),n.d(e,"h",function(){return s.b});var a=n(49);n.d(e,"i",function(){return a.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),i=(n.n(r),n(9)),o=(n.n(i),n(13)),s=n(5),a=n(12),c=n(8),l=n(1),u=n(3),p=(n.n(u),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 i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},h=function(t){function e(e,n){return h.Inject(a.a,a.b,a.e,a.f,a.d,a.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.hiddenElements={},this.hiddenGroups=[],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(l.G):[])),this.enableRtl&&this.element.classList.add(l.T),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(c.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+l.o),r=Array.prototype.slice.call(n.querySelectorAll(".e-control")),i=Array.prototype.slice.call(n.querySelectorAll(".e-ribbon-template")),o=r.concat(i),s=n.querySelectorAll(".e-combobox");if(s)for(var a=0;a<s.length;a++)s[parseInt(a.toString(),10)].closest(".e-input-focus")&&(e=s[parseInt(a.toString(),10)]);if(e)for(var a=0;a<o.length;a++)o[parseInt(a.toString(),10)].classList.contains("e-combobox")&&o[parseInt(a.toString(),10)].closest(".e-input-focus")&&(this.currentControlIndex=a);if(0===this.currentControlIndex)for(var c=o[this.currentControlIndex].closest(".e-ribbon-item");c&&c.classList.contains("e-disabled");)this.currentControlIndex++,c=o[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")||t.target.classList.contains("e-ribbon-template"))switch(t.action){case"rightarrow":this.handleNavigation(t,!this.enableRtl,o);break;case"leftarrow":this.handleNavigation(t,this.enableRtl,o);break;case"tab":t.target.classList.contains("e-combobox")&&this.currentControlIndex<o.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,i;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-template"))&&!t.target.classList.contains("e-ribbon-last-item")){if(e)this.currentControlIndex++;else{var o=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+l._9);o&&(i=o.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("."+l._9),e){var a=void 0;if(r&&(a=r.querySelector(".e-ribbon-launcher-icon")),a){var c=r.querySelectorAll(".e-ribbon-item"),u=c[c.length-1].querySelector(".e-control");u&&u.classList.add("e-ribbon-last-item")}}else if(r){var p=r.getAttribute("id");if(i!==p){var a=r.querySelector(".e-ribbon-launcher-icon");a&&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 d=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");e&&d&&!d.classList.contains("e-ribbon-hide")?d.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("."+l._9),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("."+l._9);var a=r.querySelector(".e-ribbon-launcher-icon");a&&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 f=n[this.currentControlIndex].closest(".e-ribbon-item");f&&f.classList.contains("e-disabled");)this.currentControlIndex++,f=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}else{var d=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");if(d&&!d.classList.contains("e-ribbon-hide"))d.focus();else{this.currentControlIndex=n.length-1;for(var f=n[this.currentControlIndex].closest(".e-ribbon-item");f&&f.classList.contains("e-disabled");)this.currentControlIndex--,f=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+l.o);if(this.checkOverflow(this.selectedTab,t),this.scrollModule){var e=this.tabObj.element.querySelector("."+l.U);this.scrollModule.scrollStep=e.offsetWidth}if("Simplified"===this.activeLayout){var i=document.querySelectorAll(".e-ribbon .e-dropdown-btn.e-active, .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active");if(i.length)for(var o=0;o<i.length;o++){var s=n.i(r.getInstance)(i[parseInt(o.toString(),10)],u.DropDownButton);s.toggle()}}},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+l._33});this.element.appendChild(t),this.validateItemSize();var e=this.createTabItems(this.tabs);this.tabObj=new i.Tab({cssClass:l.W,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),animation:this.tabAnimation}),this.tabObj.appendTo(t),this.element.style.setProperty(l.c,"0px"),this.element.style.setProperty(l._42,"0px");var o=t.querySelector(".e-toolbar");n.i(r.getComponent)(o,i.Toolbar).setProperties({width:"calc(100% - var(--fileMenuWidth) - var(--helpTemplateWidth))"}),this.element.classList[this.isMinimized?"add":"remove"](l._7)},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(l._7,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(c.e)(this.tabs,function(t){return t.id===e});r=-1===r?this.selectedTab:r;var i={previousIndex:this.selectedTab,selectedIndex:r};if(this.setProperties({selectedTab:r},!0),this.calculateHiddenElementsWidth(r),this.checkOverflow(r,t.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var o=this.overflowDDB.target,s=o.querySelector("."+l.X);s&&s.classList.remove(l.X);var a=o.querySelector("#"+e+l.N);a?(a.classList.add(l.X),this.overflowDDB.element.classList.remove(l.V),this.checkOverflowHiddenItems(!1,r)):this.overflowDDB.element.classList.add(l.V)}this.trigger("tabSelected",i)},e.prototype.checkOverflow=function(t,e){var n=e.closest("."+l._6),r=n.offsetWidth<e.offsetWidth;if(r&&!this.scrollModule){if("Classic"===this.activeLayout){var o=!1;o=this.checkGroupShrinking(t,n,e,!0),!o&&n.offsetWidth<e.offsetWidth&&(o=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 i.HScroll({enableRtl:this.enableRtl},this.tabObj.element.querySelector("."+l._6)))}else if(!r)if(this.destroyScroll(),"Classic"===this.activeLayout){var o=!1;o=this.removeOverflowDropdown(n,e,!1,t),!o&&n.offsetWidth>e.offsetWidth&&(o=this.checkGroupExpanding(t,n,e,!0)),!o&&n.offsetWidth>e.offsetWidth&&(o=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)],i=r.groups.length-1;i>=0;i--)for(var o=r.groups[parseInt(i.toString(),10)],a=e.querySelector("#"+o.id+l._40),c=0;c<o.collections.length&&e.offsetWidth<n.offsetWidth;c++)for(var u=o.collections[parseInt(c.toString(),10)],p=u.items.length;p>=1&&e.offsetWidth<n.offsetWidth;p--){var d=u.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=a.querySelector("#"+d.id+l._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)],i=r.groups.length-1;i>=0;i--)for(var o=r.groups[parseInt(i.toString(),10)],a=e.querySelector("#"+o.id+l._40),c=0;c<o.collections.length&&e.offsetWidth>n.offsetWidth;c++)for(var u=o.collections[parseInt(c.toString(),10)],p=u.items.length;p>=1&&e.offsetWidth>n.offsetWidth;p--){var d=u.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=a.querySelector("#"+d.id+l._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,i){for(var o=this.getGroupResizeOrder(!0,i),a=0;a<o.length&&t.offsetWidth<e.offsetWidth;a++){for(var c=!1,u=o[parseInt(a.toString(),10)],p=t.querySelector("#"+u.id),d=p.querySelector("#"+u.id+l._40),f=u.collections.length;f>=1&&t.offsetWidth<e.offsetWidth;f--)for(var h=u.collections[parseInt((f-1).toString(),10)],b=p.querySelector("#"+h.id),m=h.items.length;m>=1&&t.offsetWidth<e.offsetWidth;m--){var v=h.items[m-1],y=b.querySelector("#"+v.id+l._40);if((v.displayOptions===s.b.Auto||v.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(y)){var g=!1,_=!1,S=!1,I=!1,C=void 0;if(p.classList.contains("e-hidden")||p.classList.contains("e-hide-group")){if(C=p.querySelectorAll(".e-ribbon-item.e-hidden"),C.length)for(var O=0;O<C.length;O++)C[parseInt(O.toString(),10)].classList.remove("e-hidden");p.classList.contains("e-hide-group")?(S=!0,p.classList.remove("e-hide-group"),p.classList.remove("e-ribbon-emptyCollection"),-1!==this.hiddenGroups.indexOf(p.id)&&this.hiddenGroups.splice(this.hiddenGroups.indexOf(p.id),1)):(g=!0,p.classList.remove("e-hidden")),c||(this.calculateOverflowItemsWidth(p.offsetWidth,!1,i),this.calculateMediumDataWidth(p.offsetWidth,i,!1),c=!0)}else y.classList.contains("e-hidden")&&(_=!0,y.classList.remove("e-hidden"),p.classList.contains("e-ribbon-emptyCollection")&&(I=!0,p.classList.remove("e-ribbon-emptyCollection")),this.calculateOverflowItemsWidth(y.offsetWidth,!1,i),this.calculateMediumDataWidth(y.offsetWidth,i,!1));if(y.setAttribute("data-simplified-width",e.offsetWidth.toString()),_&&y.classList.add("e-hidden"),C&&C.length)for(var B=0;B<C.length;B++)C[parseInt(B.toString(),10)].classList.add("e-hidden");if(g&&p.classList.add("e-hidden"),S&&(p.classList.add("e-hide-group"),p.classList.add("e-ribbon-emptyCollection")),I&&p.classList.add("e-ribbon-emptyCollection"),this.createOverflowPopup(v,i,u.enableGroupOverflow,u.id,u.header,y,d,!0),v.activeSize===s.c.Small){var w=y.querySelector("#"+v.id);v.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(w,v)}v.type!==s.f.DropDown&&v.type!==s.f.SplitButton&&v.type!==s.f.GroupButton||this.updatePopupItems(v,y,u.enableGroupOverflow,!0)}}u.enableGroupOverflow||p.querySelector("."+l._20)||p.classList.add("e-ribbon-emptyCollection");var L=p.querySelectorAll("."+l._20);L&&!u.enableGroupOverflow&&this.checkEmptyCollection(L)&&p.classList.add("e-ribbon-emptyCollection"),this.checkOverflowHiddenItems(u.enableGroupOverflow,i,u.id)}},e.prototype.checkEmptyCollection=function(t){for(var e=!0,n=0;n<t.length;n++)if(!t[parseInt(n.toString(),10)].classList.contains("e-hidden")){e=!1;break}return e},e.prototype.updatePopupItems=function(t,e,i,o){var a=n.i(r.getComponent)(e.querySelector("#"+t.id),t.type===s.f.DropDown||t.type===s.f.GroupButton?u.DropDownButton:u.SplitButton),c=a.dropDown,l=(i&&o)===this.enableRtl;c&&(c.setProperties({position:{X:l?"left":"right",Y:o?"top":"bottom"}},!0),o?a.beforeOpen=function(){l&&(c.element.style.setProperty("visibility","hidden"),c.element.style.setProperty("display","block"),c.setProperties({offsetX:-1*c.element.offsetWidth}),c.element.style.removeProperty("display"),c.element.style.removeProperty("visibility"))}:(c.setProperties({offsetX:0},!0),a.beforeOpen=null))},e.prototype.removeSimplfiedOverflow=function(t,e,i,o){void 0===o&&(o=!1);for(var a=this.getGroupResizeOrder(!1,i),c=!0,p=0;p<a.length&&c;p++){var d=a[parseInt(p.toString(),10)],f=void 0,h=void 0;if(d.enableGroupOverflow){var b=t.querySelector("#"+d.id+l.r);b&&(f=n.i(r.getInstance)(b,u.DropDownButton),h=f.target)}else f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null;for(var m=0;m<d.collections.length&&c;m++)for(var v=d.collections[parseInt(m.toString(),10)],y=0;y<v.items.length&&c&&!o&&t.offsetWidth>e.offsetWidth;y++){var g=v.items[parseInt(y.toString(),10)],_=void 0;if(h&&(_=h.querySelector("#"+g.id+l._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),I=t.querySelector("#"+d.id);if((_.classList.contains("e-hidden")||I.classList.contains("e-hidden"))&&(S=Math.abs(S-e.offsetWidth)),!o&&t.offsetWidth<S){c=!1;break}var C=t.querySelector("#"+v.id);if(g.type!==s.f.DropDown&&g.type!==s.f.SplitButton&&g.type!==s.f.GroupButton||this.updatePopupItems(g,_,d.enableGroupOverflow,!1),C.append(_),_.classList.contains("e-hidden")||I.classList.contains("e-hidden")){_.setAttribute("data-simplified-width",S.toString());var O=!1,B=0;_.classList.contains("e-hidden")&&(_.classList.remove("e-hidden"),I.classList.contains("e-hide-group")&&(O=!0,B=this.checkWidthDifference(_,I)),S=_.offsetWidth+B,_.classList.add("e-hidden")),this.calculateOverflowItemsWidth(S,!0,i),this.calculateMediumDataWidth(S,i,!0),O&&(I.classList.add("e-hide-group"),I.classList.add("e-ribbon-emptyCollection"))}this.removeOverflowEvent(g,_),g.allowedSizes&s.c.Small&&(g.setProperties({activeSize:s.c.Small},!0),this.setItemSize(_.querySelector("#"+g.id),g));var w=t.querySelector("#"+d.id),L=w.querySelector("."+l._20);if(w.classList.contains("e-ribbon-emptyCollection")&&null!==L){var P=w.querySelectorAll("."+l._20);P&&(this.checkEmptyCollection(P)||w.classList.remove("e-ribbon-emptyCollection"))}}}if(f)if(d.enableGroupOverflow)(0===h.childElementCount||1===h.childElementCount&&this.isHeaderVisible(h,d.id))&&this.removeOverflowButton(f);else{var D=h.querySelector("#"+d.id+l._40);D&&1===D.childElementCount&&D.remove();var k=h.querySelector("#"+this.tabs[parseInt(i.toString(),10)].id+l.N);k&&0===k.childElementCount&&(k.remove(),this.overflowDDB.element.classList.add(l.V))}}for(var p=0;p<a.length;p++)this.checkOverflowHiddenItems(a[parseInt(p.toString(),10)].enableGroupOverflow,i,a[parseInt(p.toString(),10)].id);if(this.overflowDDB){0===this.overflowDDB.target.childElementCount&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)}},e.prototype.checkOverflowHiddenItems=function(t,e,i){if(t){var o=document.querySelector("#"+i+l.r);if(o){for(var s=n.i(r.getInstance)(o,u.DropDownButton),a=s.target,c=a.querySelectorAll(".e-ribbon-item"),p=!0,d=0;d<c.length;d++)if(!c[parseInt(d.toString(),10)].classList.contains("e-hidden")){p=!1;break}s.element.classList[p?"add":"remove"]("e-hidden")}}else if(this.overflowDDB){var f=!0,h=void 0,b=this.overflowDDB.target,m=b.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.N);if(m){for(var v=0;v<m.children.length;v++){h=!0;for(var y=m.children[parseInt(v.toString(),10)],g=y.querySelectorAll(".e-ribbon-item"),_=0;_<g.length;_++)if(!g[parseInt(_.toString(),10)].classList.contains("e-hidden")){h=!1;break}y.classList[h?"add":"remove"]("e-hide-group"),y.classList.contains("e-hide-group")||y.classList.contains("e-hidden")||(f=!1)}this.overflowDDB.element.classList[f?"add":"remove"](l.V)}}},e.prototype.createOverflowPopup=function(t,e,i,o,s,a,p,d){var f,h=n.i(c.h)(this.tabs,o),b=this.tabObj.items[parseInt(e.toString(),10)].content,m=b.querySelector("#"+o);if(i){var v=p.querySelector("#"+o+l.r);v?f=n.i(r.getInstance)(v,u.DropDownButton):(f=this.addOverflowButton(o+l.r),f.element.classList.add(l._3),p.appendChild(f.element));var y=f.target;if(!y.querySelector("#"+o+l.r+l.E)&&h.group.overflowHeader){var g=this.createElement("div",{className:l._14,id:o+l.r+l.E,innerHTML:h.group.overflowHeader});y.append(g)}m&&(m.classList.contains("e-disabled")&&y.classList.add("e-disabled"),m.classList.contains("e-hidden")&&y.classList.add("e-hidden"),m.classList.contains("e-hide-group")&&y.classList.add("e-hide-group")),d?y.insertBefore(a,y.querySelector("."+l._20)):y.append(a)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(l.V);var _=this.overflowDDB.target,S=_.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.N);if(S){var I=_.querySelector("#"+o+l._40);I||(I=h.group.overflowHeader?this.createGroupContainer(o,h.group.overflowHeader):this.createGroupContainer(o,s),m&&(m.classList.contains("e-disabled")&&I.classList.add("e-disabled"),m.classList.contains("e-hidden")&&I.classList.add("e-hidden"),m.classList.contains("e-hide-group")&&I.classList.add("e-hide-group")),S.append(I)),d?I.insertBefore(a,I.querySelector("."+l._20)):I.append(a)}else this.createOfTabContainer(o,s,a,e)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+l._38),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(l._2),this.createOfTabContainer(o,s,a,e);f=this.overflowDDB}null!==a&&this.addOverflowEvents(t,a,f)},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,n);break}}},e.prototype.createOfTabContainer=function(t,e,r,i){var o=this.createElement("div",{id:this.tabs[parseInt(i.toString(),10)].id+l.N,className:l._10});this.overflowDDB.target.append(o);var s=n.i(c.h)(this.tabs,t),a=s.group.overflowHeader?this.createGroupContainer(t,s.group.overflowHeader):this.createGroupContainer(t,e);a.append(r),o.append(a),i===this.selectedTab&&o.classList.add(l.X);var u=document.querySelector("#"+t);u&&(u.classList.contains("e-disabled")&&a.classList.add("e-disabled"),u.classList.contains("e-hidden")&&a.classList.add("e-hidden"),u.classList.contains("e-hide-group")&&a.classList.add("e-hide-group"))},e.prototype.checkGroupShrinking=function(t,e,n,r){for(var i=!0,o=!1,s=this.tabs[parseInt(t.toString(),10)],a=s.groups.length-1;i&&a>=0;a--)o=r?this.checkLargeToMedium(t,s,a,e,n):this.checkMediumToSmall(t,s,a,e,n),i=!o&&e.offsetWidth<n.offsetWidth;return o},e.prototype.checkValidCollectionLength=function(t){for(var e=0,n=0;n<t.length;n++){for(var r=t[parseInt(n.toString(),10)].items,i=0;i<r.length;i++)if(r[parseInt(i.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,i=0;i<r.length;i++)if(r[parseInt(i.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,i,o){var a=this;void 0===o&&(o=!1);var c=e.groups[parseInt(n.toString(),10)];if(c.isCollapsed&&!o)return!1;var u=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=a.createElement("div",{className:"e-ribbon-shrink"+l.G+l._21,id:t+"_shrink_container"+n,attrs:{"data-start":n.toString(),"data-end":r.toString()}});return e.parentElement.insertBefore(s,e),o||s.setAttribute("data-large-width",i.offsetWidth.toString()),s},f=function(e,r){for(var c=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[0],u=i.querySelector("#"+c.items[parseInt(e.toString(),10)].id+l._40),p=o?i.querySelector("#"+c.id+"_shrink_container"+e):d(c.id,u,e,r),f=e;f<=r;f++){var h=c.items[parseInt(f.toString(),10)];if(h.displayOptions&s.b.Classic){var b=i.querySelector("#"+h.id+l._40);p.appendChild(b),h.setProperties({activeSize:s.c.Medium},!0),h.type===s.f.GroupButton&&"Classic"===a.activeLayout?a.setItemSize(b.querySelector("#"+h.id+l.A),h):a.setItemSize(b.querySelector("#"+h.id),h)}}},h=function(e,r){for(var c=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)],u=i.querySelector("#"+c.collections[parseInt(e.toString(),10)].id),p=o?i.querySelector("#"+c.id+"_shrink_container"+e):d(c.id,u,e,r),f=e;f<=r;f++){var h=c.collections[parseInt(f.toString(),10)],b=i.querySelector("#"+h.id);p.appendChild(b),h.items[0].setProperties({activeSize:s.c.Medium},!0),h.items[0].type===s.f.GroupButton&&"Classic"===a.activeLayout?a.setItemSize(b.querySelector("#"+h.items[0].id+l.A),h.items[0]):a.setItemSize(b.querySelector("#"+h.items[0].id),h.items[0])}};if(c.orientation===s.e.Column)for(var b=c.collections.length-1;b>0;b--){b=this.checkClassicCollection(c.collections,b,!1);var m=b-1;if(m>=0&&u(c.collections[parseInt(b.toString(),10)]))if((m=this.checkClassicCollection(c.collections,m,!1))>=0&&u(c.collections[parseInt(m.toString(),10)])){var v=m-1;if(v>=0&&(v=this.checkClassicCollection(c.collections,v,!1)),v>=0&&u(c.collections[parseInt(v.toString(),10)])?h(v,b):h(m,b),b=v,!o&&r.offsetWidth>i.offsetWidth)return!0}else b=m}else if(this.checkValidCollectionLength(c.collections))for(var y=c.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,!o&&r.offsetWidth>i.offsetWidth)return!0}else b=m}return!1},e.prototype.checkMediumToSmall=function(t,e,n,r,i,o){var a=this;void 0===o&&(o=!1);var c=e.groups[parseInt(n.toString(),10)];if(c.isCollapsed&&!o)return!1;var u=c.orientation,p=i.querySelector("#"+c.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,o,c){void 0===c&&(c=null);var l=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],u=function(t){var e=l.items[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=i.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Small},!0),e.type===s.f.GroupButton&&(n=i.querySelector("#"+e.id+"_grpbtn")),a.setItemSize(n,e)}};u(r),c&&u(c),u(o)},b=function(e,r,c,u){void 0===u&&(u=null);var p=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)];o||d[parseInt(e.toString(),10)].setAttribute("data-medium-width",i.offsetWidth.toString());var f=function(t){var e=p.collections[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=i.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.c.Small},!0),e.items[0].type===s.f.GroupButton&&(n=i.querySelector("#"+e.items[0].id+l.A)),a.setItemSize(n,e.items[0])}};f(r),u&&f(u),f(c)},m=function(t){if(!o){i.querySelector("#"+t).setAttribute("data-medium-width",i.offsetWidth.toString())}};if(u===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(c.collections,y+1,!1);if(f(c.collections[parseInt(y.toString(),10)].items[0])&&f(c.collections[parseInt(_.toString(),10)].items[0])&&(g===_?b(v,y,g):f(c.collections[parseInt(g.toString(),10)].items[0])&&b(v,y,g,_),!o&&r.offsetWidth>i.offsetWidth))return!0}for(var v=c.collections.length-1;v>=0;v--){for(var S=c.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])),!o&&r.offsetWidth>i.offsetWidth))return!0}}else if(this.checkValidCollectionLength(c.collections)){if(d.length>0)for(var v=d.length-1;v>=0;v--){var O=d[parseInt(v.toString(),10)],y=parseInt(O.getAttribute("data-start"),10),g=parseInt(O.getAttribute("data-end"),10),S=c.collections[0],_=this.checkClassicItem(S.items,y+1,!1);if(f(c.collections[0].items[parseInt(y.toString(),10)])&&f(c.collections[0].items[parseInt(_.toString(),10)])&&(g===_?(m(O.id),h(0,y,g)):f(c.collections[0].items[parseInt(g.toString(),10)])&&(m(O.id),h(0,y,g,_)),!o&&r.offsetWidth>i.offsetWidth))return!0}}else for(var v=c.collections.length-1;v>=0;v--)for(var S=c.collections[parseInt(v.toString(),10)],_=S.items.length-1;_>=0;_--)if(!((_=this.checkClassicItem(S.items,_,!1))<0)){var B=S.items[parseInt(_.toString(),10)];if(f(B)&&(m(B.type!==s.f.GroupButton?B.id:B.id+l.A),h(v,_,_),!o&&r.offsetWidth>i.offsetWidth))return!0}return!1},e.prototype.checkGroupExpanding=function(t,e,n,r){for(var i=!1,o=this.tabs[parseInt(t.toString(),10)],s=0;!i&&s<o.groups.length;s++)i=r?this.checkSmallToMedium(t,o,s,e,n,!1,!0):this.checkMediumToLarge(t,o,s,e,n,!1,!0);return i},e.prototype.checkSmallToMedium=function(t,e,n,r,i,o,a){var c=this,u=e.groups[parseInt(n.toString(),10)],p=u.orientation,d=i.querySelector("#"+u.id),f=d.querySelectorAll(".e-ribbon-shrink"),h=function(e,r,i){var o=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],a=o.items[parseInt(r.toString(),10)];if(a.displayOptions&s.b.Classic){var u=i.id===a.id?i:i.querySelector("#"+a.id);a.setProperties({activeSize:s.c.Medium},!0),a.type===s.f.GroupButton&&(u=document.querySelector("#"+a.id+l.A)),c.setItemSize(u,a)}},b=function(e){var r=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections,o=r[parseInt(e.toString(),10)].items[0];if(o.displayOptions&s.b.Classic){var a=i.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id);r[parseInt(e.toString(),10)].items[0].setProperties({activeSize:s.c.Medium},!0),o.type===s.f.GroupButton&&(a=i.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id+l.A)),c.setItemSize(a,r[parseInt(e.toString(),10)].items[0])}};if(p===s.e.Row){if(!this.checkValidCollectionLength(u.collections))for(var m=0;m<u.collections.length;m++)for(var v=u.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 _=i.querySelector("#"+g.id);"GroupButton"===g.type&&(_=i.querySelector("#"+g.id+l.A));var S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(o||r.offsetWidth>I))h(m,y,_),o&&!a||_.removeAttribute("data-medium-width");else if(I)return!0}}}else for(var m=0;m<u.collections.length;m++)if(u.collections[parseInt(m.toString(),10)].items.length>1){for(var v=u.collections[parseInt(m.toString(),10)],_=i.querySelector("#"+v.id),S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null,C=[],O=0;O<v.items.length;O++)v.items[parseInt(O.toString(),10)].displayOptions&s.b.Classic&&C.push(O);if(C.length>1&&I&&(o||r.offsetWidth>I))h(m,C[0],_),h(m,C[1],_),3===C.length&&h(m,C[2],_),o&&!a||_.removeAttribute("data-medium-width");else if(I)return!0}if(f.length>0)for(var m=0;m<f.length;m++){var B=f[parseInt(m.toString(),10)],S=B.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(o||r.offsetWidth>I)){var w=parseInt(B.getAttribute("data-start"),10),L=parseInt(B.getAttribute("data-end"),10);if(p===s.e.Row){var v=u.collections[0],y=this.checkClassicItem(v.items,w+1,!0);h(0,w,B),h(0,y,B),y!==L&&h(0,L,B)}else{var P=this.checkClassicCollection(u.collections,w+1,!0);b(w),b(P),P!==L&&b(L)}o&&!a||B.removeAttribute("data-medium-width")}else if(I)return!0}return!1},e.prototype.checkMediumToLarge=function(t,e,i,o,a,c,u){var p=this,d=e.groups[parseInt(i.toString(),10)],f=d.orientation,h=a.querySelector("#"+d.id),b=h.querySelectorAll(".e-ribbon-shrink");if(0===b.length)return!1;for(var m=function(e,o,a,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(i.toString(),10)].collections[0].items,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=a.querySelector("#"+e.id+l._40),r=n.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Large},!0),e.type===s.f.GroupButton&&(r=n.querySelector("#"+e.id+l.A)),p.setItemSize(r,e),a.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(o),c&&!u||n.i(r.remove)(a)},v=function(e,o,a,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(i.toString(),10)].collections,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=a.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+l.A)),p.setItemSize(r,e.items[0]),a.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(o),c&&!u||n.i(r.remove)(a)},y=0;y<b.length;y++){var g=b[parseInt(y.toString(),10)],_=g.getAttribute("data-large-width"),S=_?parseInt(_,10):null;if(S&&(c||o.offsetWidth>S)){var I=parseInt(g.getAttribute("data-start"),10),C=parseInt(g.getAttribute("data-end"),10);if(f===s.e.Row){var O=d.collections[0],B=this.checkClassicItem(O.items,I+1,!0);B===C?m(I,C,g):m(I,C,g,B)}else{var w=this.checkClassicCollection(d.collections,I+1,!0);w===C?v(I,C,g):v(I,C,g,w)}c&&!u||g.removeAttribute("data-large-width")}else if(S)return!0}return!1},e.prototype.handleContentSize=function(t,e){var n=t.closest("."+l._12);e?n.classList.add(l._26):n.classList.remove(l._26)},e.prototype.setItemSize=function(t,e){if(t){var i=t.closest("."+l._20);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,i)):e.type===s.f.GroupButton&&this.ribbonGroupButtonModule.updateGroupButtonSize(t,e),i.classList.remove(l._26,l._23,l._24,l._25),e.activeSize===s.c.Large?i.classList.add(l._23,l._26):i.classList.add(e.activeSize===s.c.Medium?l._24:l._25)}},e.prototype.createOverflowDropdown=function(t,e,r){var i=this.getGroupResizeOrder(!0,t);if(0!==i.length)for(var o=this,s=0;s<i.length&&e.offsetWidth<r.offsetWidth;s++)!function(s){var a=i[parseInt(s.toString(),10)],u=o.tabObj.element.querySelector("#"+a.id);u.setAttribute("data-expanded-width",r.offsetWidth.toString());var p=u.querySelector("#"+a.id+l._40),d=o.createElement("div",{className:l._15+l.G+l._23,id:a.id+l.N+l._40});u.insertBefore(d,p);var f=n.i(c.e)(o.tabs[parseInt(t.toString(),10)].groups,function(t){return t.id===a.id}),h=o.tabs[parseInt(t.toString(),10)];o.checkSmallToMedium(t,h,f,e,r,!0,!1),o.checkMediumToLarge(t,h,f,e,r,!0,!1);var b=o.ribbonDropDownModule.createOverFlowDropDown(a.id,a.header,a.groupIconCss,p,d,o.enableRtl);o.tabs[parseInt(t.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!0},!0);for(var m=0;m<a.collections.length;m++)for(var v=a.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+l._40);null!==S&&(o.handleContentSize(S),o.addOverflowEvents(_,S,b))}}(s)},e.prototype.removeOverflowDropdown=function(t,e,r,i){void 0===r&&(r=!1);var o=this.getGroupResizeOrder(!1,i);if(0===o.length)return!1;for(var s=this,a=0;a<o.length;a++){var u=function(a){var u=o[parseInt(a.toString(),10)],p=s.tabObj.element.querySelector("#"+u.id);if(!p)return"break";var d=parseInt(p.getAttribute("data-expanded-width"),10);if(!r&&t.offsetWidth<d)return{value:!0};s.removeDropdown(u.id);var f=n.i(c.e)(s.tabs[parseInt(i.toString(),10)].groups,function(t){return t.id===u.id});s.tabs[parseInt(i.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!1},!0);var h=s.tabs[parseInt(i.toString(),10)];s.checkLargeToMedium(i,h,f,t,e,!0),s.checkMediumToSmall(i,h,f,t,e,!0);for(var b=0;b<u.collections.length;b++)for(var m=u.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+l._40);null!==_&&(s.handleContentSize(_,!0),s.removeOverflowEvent(g,_))}}(a);if("object"==typeof u)return u.value;if("break"===u)break}return!1},e.prototype.removeDropdown=function(t){var e=this.tabObj.element.querySelector("#"+t+l.N+l.O);if(e){var i=e.parentElement;this.ribbonDropDownModule.removeOverFlowDropDown(e),n.i(r.remove)(i)}},e.prototype.getGroupResizeOrder=function(t,e){var i=this,o=this.tabs[parseInt(e.toString(),10)].groups;return o=o.filter(function(e){return"Classic"!==i.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)}),o.sort(function(t,e){return t.priority-e.priority}),t?o.reverse():o},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+l.o);if(e){var n=e.closest("."+l._6);"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 i=t.selectingItem.getAttribute("data-id"),o=t.previousItem.getAttribute("data-id"),s=n.i(c.e)(this.tabs,function(t){return t.id===i}),a=n.i(c.e)(this.tabs,function(t){return t.id===o});s=-1===s?this.selectedTab:s;var u={cancel:t.cancel,isInteracted:t.isInteracted,previousIndex:a,selectedIndex:s};this.trigger("tabSelecting",u,function(t){if(!t.cancel){e.destroyScroll(),e.isAddRemove||-1===a||e.clearOverflowDropDown(a);var i=e.tabObj.items[parseInt(s.toString(),10)].content;if(!i.querySelector("."+l._8)&&0!==e.tabs[parseInt(s.toString(),10)].groups.length){var o=e.createGroups(e.tabs[parseInt(s.toString(),10)].groups,s);n.i(r.append)(o,i)}}})},e.prototype.createTabItems=function(t){for(var e=this,n=[],r=0;r<t.length;r++){var i=t[parseInt(r.toString(),10)],o=this.createElement("span",{innerHTML:i.header,id:i.id+l.E});o.onclick=function(){e.minimize(!1)},o.ondblclick=function(){e.minimize(!0)};var s={header:{text:o},id:i.id,cssClass:i.cssClass},a=this.createElement("div",{className:s.cssClass,id:i.id+l.o});a.classList.add(l.Y),s.content=a,n.push(s)}return n},e.prototype.renderInitialTab=function(t){var e=this.createGroups(this.tabs[parseInt(t.toString(),10)].groups,t),i=this.tabObj.items[parseInt(t.toString(),10)].content;n.i(r.append)(e,i),"Simplified"===this.activeLayout&&this.element.classList.add(l._31);var o=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+l.o);this.checkOverflow(this.selectedTab,o)},e.prototype.addOverflowButton=function(t){var e=this,i=this.createElement("button",{id:t}),o=this.createElement("div",{className:l._4,attrs:{tabindex:"0"}}),s=new u.DropDownButton({iconCss:l.R,cssClass:l._28+l.G+l.P,target:o,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeOpen:function(t){var n={element:t.element,event:t.event,cancel:t.cancel};e.trigger("overflowPopupOpen",n,function(e){e.cancel&&(t.cancel=!0)})},beforeClose:function(t){var i=t.event?n.i(r.closest)(t.event.target,"."+l.M):null,o=t.event?n.i(r.closest)(t.event.target,".e-ribbon-group-button-overflow-popup"):null,s={element:t.element,event:t.event,cancel:t.cancel};e.trigger("overflowPopupClose",s,function(e){(i||e.cancel||o)&&(t.cancel=!0)})}},i);this.element.classList.add(l._5),n.i(c.d)(o,this);var a;return i.onkeydown=i.onclick=function(){e.itemIndex=-1,a=!i.classList.contains("e-ribbon-overall-of-btn")},o.onkeydown=function(t){return e.upDownKeyHandler(t,o,a),e},s},e.prototype.upDownKeyHandler=function(t,e,i){var o;if(i)o=e.getElementsByClassName("e-ribbon-item");else{o=e.querySelector(".e-ribbon-of-tab.e-ribbon-active").getElementsByClassName("e-ribbon-item")}var s,a,c=o[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control"),l=c&&c.classList.contains("e-combobox")?o[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;if(null===l||"Tab"===t.key||this.itemIndex<0){if("ArrowDown"===t.key||!t.shiftKey&&"Tab"===t.key){if(!this.itemIndex&&0!==this.itemIndex||this.itemIndex<0||this.itemIndex===o.length-1){if(this.itemIndex=0,s=o[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,o,!0),l&&"Tab"===t.key){t.preventDefault();var u=o[this.itemIndex].querySelector(".e-control");u&&u.focus()}a=o[this.itemIndex].querySelector(".e-ribbon-template")}else this.itemIndex<o.length-1&&this.itemIndex>=0&&(this.itemIndex++,s=o[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,o,!0),a=o[this.itemIndex].querySelector(".e-ribbon-template"));a&&a.focus()}else if(("ArrowUp"===t.key||t.shiftKey&&"Tab"===t.key)&&(null===l||"Tab"===t.key)){if(this.itemIndex&&-1!==this.itemIndex)this.itemIndex<=o.length-1&&this.itemIndex>0&&(this.itemIndex--,s=o[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,o,!1),a=o[this.itemIndex].querySelector(".e-ribbon-template"));else{if(this.itemIndex=o.length-1,s=o[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,o,!1),l&&t.shiftKey&&"Tab"===t.key){t.preventDefault();var u=o[this.itemIndex].querySelector(".e-control");u&&u.focus()}a=o[this.itemIndex].querySelector(".e-ribbon-template")}a&&a.focus()}e.setAttribute("index",this.itemIndex.toString())}var d=parseInt(e.getAttribute("index"),10),f="",h=o[parseInt(d.toString(),10)]?o[parseInt(d.toString(),10)].querySelector(".e-control"):null;if(h&&(f=h.getAttribute("data-control")),"ArrowDown"===t.key||"ArrowUp"===t.key||" "===t.key||"Tab"===t.key){if("ColorPicker"===f)"Tab"===t.key&&t.preventDefault(),o[parseInt(d.toString(),10)].querySelector(".e-split-colorpicker").focus();else{"Tab"===t.key&&t.preventDefault();var b=o[parseInt(d.toString(),10)].querySelector(".e-control");b&&b.focus()}if(" "===t.key&&"CheckBox"===f){var m=o[parseInt(d.toString(),10)].querySelector(".e-control"),v=n.i(r.getComponent)(m,p.CheckBox);this.itemIndex=-1,v.click()}}"SplitButton"!==f||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||("ArrowRight"===t.key&&(this.enableRtl?o[parseInt(d.toString(),10)].querySelector(".e-control").focus():o[parseInt(d.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===t.key&&(this.enableRtl?o[parseInt(d.toString(),10)].querySelector(".e-dropdown-btn").focus():o[parseInt(d.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(c.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:l._11,id:t+l._40}),r=this.createElement("div",{className:l._14,id:t+l.E,innerHTML:e});return n.append(r),n},e.prototype.addExpandCollapse=function(){var t=this;this.collapseButton=this.createElement("span",{className:l.Z+l.G+l.Q,id:this.tabObj.element.id+l._37,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(l._1),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(l._0),this.tabObj.element.appendChild(this.collapseButton)},e.prototype.removeExpandCollapse=function(){var t=this,e=n.i(c.e)(this.tooltipData,function(e){return e.id===t.collapseButton.id});-1!==e&&this.tooltipData.splice(e,1),this.element.classList.remove(l._1),n.i(r.remove)(this.tabObj.element.querySelector("."+l.Z)),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 i=parseInt(e,10),o=t[parseInt(i.toString(),10)],s=!1,a=0;a<this.tabObj.items.length;a++)if(this.tabs[parseInt(i.toString(),10)].id===this.tabObj.items[parseInt(a.toString(),10)].id){s=!0;break}if(!s){this.destroyTabItems(this.tabsInternal),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var c=this.createTabItems(this.tabs);this.selectedTab>=this.tabs.length&&(this.selectedTab=this.tabs.length-1),this.tabObj.setProperties({items:c,selectedItem:this.selectedTab});break}var u=this.tabs[parseInt(i.toString(),10)].groups,p=this.tabObj.element,d=this.tabs[parseInt(i.toString(),10)];d.setProperties(o,!0),this.setProperties({groups:this.checkID(d.groups,"group",d.id)},!0),this.validateItemSize();var f=this.tabObj.items[parseInt(i.toString(),10)].content;if(u&&(o.header&&(this.tabObj.items[parseInt(i.toString(),10)].header.text.innerText=d.header),o.cssClass&&(this.tabObj.items[parseInt(i.toString(),10)].cssClass&&(f.classList.remove(this.tabObj.items[parseInt(i.toString(),10)].cssClass),p.querySelector(".e-active").classList.remove(this.tabObj.items[parseInt(i.toString(),10)].cssClass)),f.classList.add(d.cssClass),p.querySelector(".e-active").classList.add(d.cssClass)),o.groups)){for(var h=0,b=u;h<b.length;h++){for(var m=b[h],v=m.isCollapsed?f.querySelector("#"+m.id+l.N+l.O):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],O=v?this.ribbonDropDownModule.getDDBItemElement(v,C.id):f.querySelector("#"+C.id);O&&this.destroyFunction(C,O)}v&&this.ribbonDropDownModule.removeOverFlowDropDown(v)}f.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()});var B=this.createGroups(d.groups,i);n.i(r.append)(B,f)}}var w=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+l.o);this.checkOverflow(this.selectedTab,w)},e.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(l._0,"Simplified"===this.activeLayout),this.element.classList.toggle(l._31,"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 i=this.tabs[parseInt(e.toString(),10)],o=this.tabs[parseInt(e.toString(),10)].groups,a=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.o),c=a.closest("."+l._6);if("Simplified"===this.activeLayout)for(var p=0;p<o.length;p++){var d=o[parseInt(p.toString(),10)],f=o[parseInt(p.toString(),10)].orientation;d.isCollapsed?(d.setProperties({isCollapsed:!1},!0),this.removeDropdown(d.id)):(this.checkSmallToMedium(e,i,p,c,a,!0,!1),this.checkMediumToLarge(e,i,p,c,a,!0,!1));for(var h=c.querySelector("#"+d.id),b=h.querySelector("#"+d.id+l._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+l.E);y.remove();var g=b.querySelector("#"+d.id+l.o);g.classList.replace(l._21,l._22),g.classList.remove(l._26);for(var _=0;_<d.collections.length;_++){var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);I.classList.replace(l._21,l._22);for(var C=0;C<S.items.length;C++){for(var O=S.items,B=S.items[parseInt(C.toString(),10)],w=!0;w&&B.displayOptions===s.b.Classic;){C++;var L=b.querySelector("#"+B.id+l._40),P=L.querySelector("#"+B.id);this.destroyFunction(B,P),L.remove(),C<O.length?B=O[parseInt(C.toString(),10)]:w=!1}if(!w)break;var D=B.allowedSizes===s.c.Large||B.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;D=!(B.displayOptions&s.b.Simplified)&&B.displayOptions&s.b.Overflow?s.c.Medium:D;var k=void 0;if(B.displayOptions&s.b.Classic){if(k=b.querySelector("#"+B.id+l._40),B.displayOptions===(s.b.Classic|s.b.Overflow)&&(this.createOverflowPopup(B,e,d.enableGroupOverflow,d.id,d.header,k,b),B.type!==s.f.DropDown&&B.type!==s.f.SplitButton&&B.type!==s.f.GroupButton||this.updatePopupItems(B,k,d.enableGroupOverflow,!0)),B.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(B,k),B.setProperties({activeSize:D},!0),k){var P=k.querySelector("#"+B.id);this.setItemSize(P,B)}}else k=this.createItems([B],f,d.id,d.header,d.enableGroupOverflow,e,b)[0],B.displayOptions&s.b.Simplified&&I.append(k)}}d.enableGroupOverflow||h.querySelector("."+l._20)||h.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(l._5);for(var E=0;E<o.length;E++){var d=o[parseInt(E.toString(),10)],f=o[parseInt(E.toString(),10)].orientation,b=c.querySelector("#"+d.id+l._40),g=b.querySelector("#"+d.id+l.o),y=this.createElement("div",{className:l._13,id:d.id+l.E,innerHTML:d.header});b.appendChild(y),"Row"===f&&g.classList.replace(l._22,l._21),g.classList.add(l._26);for(var _=0;_<d.collections.length;_++){var T=void 0,x=void 0;if(d.enableGroupOverflow){var M=b.querySelector("#"+d.id+l.r);M&&(T=n.i(r.getInstance)(M,u.DropDownButton),x=T.target)}else(T=this.overflowDDB)&&(x=this.overflowDDB.target);var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);"Column"===f&&I.classList.replace(l._22,l._21);for(var C=0;C<S.items.length;C++){for(var O=S.items,B=S.items[parseInt(C.toString(),10)],w=!0;w&&!(B.displayOptions&s.b.Classic);){C++;var k=void 0;if((B.displayOptions&s.b.Simplified||B.displayOptions&s.b.Overflow)&&null!==(k=B.displayOptions&s.b.Simplified?b.querySelector("#"+B.id+l._40):x.querySelector("#"+B.id+l._40))){var q=k.querySelector("#"+B.id);this.destroyFunction(B,q),k.remove()}C<O.length?B=O[parseInt(C.toString(),10)]:w=!1}if(!w)break;if(B.displayOptions&(s.b.Simplified|s.b.Overflow)){var k=b.querySelector("#"+B.id+l._40);!k&&x&&(k=x.querySelector("#"+B.id+l._40),B.type!==s.f.DropDown&&B.type!==s.f.SplitButton&&B.type!==s.f.GroupButton||this.updatePopupItems(B,k,d.enableGroupOverflow,!1),this.removeOverflowEvent(B,k)),B.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(B,k),k&&I.append(k)}else{var k=this.createItems([B],f,d.id,d.header,d.enableGroupOverflow,e)[0];I.append(k)}var P=b.querySelector("#"+B.id);B.type===s.f.GroupButton&&(P=b.querySelector("#"+B.id+l.A));var R=B.allowedSizes&s.c.Large?s.c.Large:B.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;B.setProperties({activeSize:R},!0),this.setItemSize(P,B)}d.enableGroupOverflow&&T&&(0===x.childElementCount||1===x.childElementCount&&this.isHeaderVisible(x,d.id))&&this.removeOverflowButton(T)}}}this.selectedTab===e&&this.checkOverflow(e,a)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.createLauncherIcon=function(t,e){var n=this,i=this.createElement("div",{className:l._17+" "+(this.launcherIconCss?this.launcherIconCss:l._18),id:t+l._39,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});e.appendChild(i),e.classList.add(l._16),r.EventHandler.add(i,"click",this.launcherIconClicked.bind(this,t),this),r.EventHandler.add(i,"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 i=[],o=0;o<t.length;o++){var s=t[parseInt(o.toString(),10)],a=s.orientation,c=this.createElement("div",{className:s.cssClass,id:s.id});c.classList.add(l._8),i.push(c);var u=this.createElement("div",{className:s.cssClass,id:s.id+l._40});u.classList.add(l._9),c.appendChild(u);var p=this.createElement("div",{className:"Simplified"===this.activeLayout?l._12:l._12+l.G+l._26,id:s.id+l.o});if(p.classList.add("Column"===a||"Simplified"===this.activeLayout?l._22:l._21),u.appendChild(p),"Classic"===this.activeLayout){var d=this.createElement("div",{className:l._13,id:s.id+l.E,innerHTML:s.header});u.appendChild(d)}s.showLauncherIcon&&this.createLauncherIcon(s.id,u);var f=this.createCollection(s.collections,s.orientation,s.id,s.header,s.enableGroupOverflow,e,u);n.i(r.append)(f,p);for(var h=!0,b=0;b<f.length;b++)if(h)for(var m=0;m<f[parseInt(b.toString(),10)].children.length;m++)if(!f[parseInt(b.toString(),10)].children[parseInt(m.toString(),10)].classList.contains("e-hidden")){h=!1;break}h&&c.classList.add("e-hide-group"),"Simplified"!==this.activeLayout||s.enableGroupOverflow||c.querySelector("."+l._20)||c.classList.add("e-ribbon-emptyCollection");var v=this.initialPropsData[parseInt(e.toString(),10)];v&&(v.hiddenGroups&&v.hiddenGroups.length&&this.updateGroupProps("hiddenGroups",v,c),v.disabledGroups&&v.disabledGroups.length&&this.updateGroupProps("disabledGroups",v,c))}return this.initialPropsData[parseInt(e.toString(),10)]&&delete this.initialPropsData[parseInt(e.toString(),10)],i},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,i=e[parseInt(n.toString(),10)].orientation,o=0;o<r.length;o++)for(var a=r[parseInt(o.toString(),10)].items,c=0;c<a.length;c++){var l=a[parseInt(c.toString(),10)];if(l.allowedSizes&&0!==l.allowedSizes||l.setProperties({allowedSizes:s.c.Small|s.c.Medium|s.c.Large},!0),"ColorPicker"===l.type&&l.allowedSizes!==s.c.Small)l.setProperties({allowedSizes:s.c.Small},!0);else if("ComboBox"!==l.type&&"CheckBox"!==l.type||l.allowedSizes===s.c.Medium){if(("Column"===i&&a.length>1||"Row"===i&&r.length>1)&&l.allowedSizes&s.c.Large){var u=l.allowedSizes&(s.c.Small|s.c.Medium);u=u||s.c.Medium,l.setProperties({allowedSizes:u},!0)}}else l.setProperties({allowedSizes:s.c.Medium},!0);var p=l.allowedSizes&s.c.Large?s.c.Large:l.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;l.setProperties({activeSize:p},!0)}},e.prototype.createCollection=function(t,e,i,o,s,a,c){for(var u=[],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(l._19),f.classList.add("Column"!==e||"Simplified"===this.activeLayout?l._22:l._21),u.push(f);var h=this.createItems(d.items,e,i,o,s,a,c);if(n.i(r.append)(h,f),"Row"===e&&2===p)break}return u},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,i,o,a,u){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+l._40});(p=m.classList).add.apply(p,[l._20].concat(h.disabled?[l.S]:[])),h.ribbonTooltipSettings&&n.i(c.a)(h.ribbonTooltipSettings)&&(m.classList.add(l.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(l._23,l._26):m.classList.add(v&s.c.Medium?l._24:l._25);var y=this.initialPropsData[parseInt(a.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,a,o,r,i,m,u),h.type!==s.f.DropDown&&h.type!==s.f.SplitButton&&h.type!==s.f.GroupButton||this.updatePopupItems(h,m,o,!0)),"Column"===e&&2===f)break}return d},e.prototype.createHelpPaneTemplate=function(){if(this.helpPaneTemplate){this.clearTemplate(["helpPaneTemplate"]),this.ribbonTempEle=this.createElement("div",{className:l._30,id:this.element.id+l._41});var t=n.i(c.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(l._42,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},e.prototype.createTemplateContent=function(t,e){var n=this.createElement("div",{className:t.cssClass?l._29+l.G+t.cssClass:l._29,id:t.id,attrs:{tabindex:"-1"}});t.disabled&&(n.classList.add(l.S),n.setAttribute("disabled","")),e.appendChild(n),this.renderItemTemplate(t,n)},e.prototype.renderItemTemplate=function(t,e){var i="ribbon"+t.id+"itemTemplate";this.clearTemplate([i]);var o=n.i(c.b)(t.itemTemplate);n.i(r.append)(o({activeSize:s.c[t.activeSize]},this,i,t.id+"itemTemplate",this.isStringTemplate),e),this.renderReactTemplates()},e.prototype.checkID=function(t,e,n){for(var r="tab"===e?l._33:"group"===e?l._34:"collection"===e?l._35:l._36,i=0;i<t.length;i++){var o=t[parseInt(i.toString(),10)];switch(o.id||o.setProperties({id:n+r+this.idIndex++},!0),e){case"tab":o.setProperties({groups:this.checkID(o.groups,"group",o.id)},!0);break;case"group":o.setProperties({collections:this.checkID(o.collections,"collection",o.id)},!0);break;case"collection":o.setProperties({items:this.checkID(o.items,"item",o.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 i=this.tabs[parseInt(e.toString(),10)],o=this.tabObj.items[parseInt(e.toString(),10)].content;if(o.querySelector("."+l._8))for(var a=0,p=i.groups;a<p.length;a++){var d=p[a],f=void 0,h=void 0;this.activeLayout===s.a.Classic?f=d.isCollapsed?o.querySelector("#"+d.id+l.N+l.O):null:(f=d.enableGroupOverflow?o.querySelector("#"+d.id+l.r):null,(h=f?n.i(r.getComponent)(f,u.DropDownButton):this.overflowDDB)&&(n.i(c.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?o.querySelector("#"+_.id+l.A):o.querySelector("#"+_.id)):(S=_.displayOptions&s.b.Simplified?o.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 O=S.querySelector("#"+_.id+l.A+C);n.i(c.j)(O,"btn",t)}else if("group-btn"===I&&"Simplified"===this.activeLayout){n.i(c.j)(S,"dropdown-btn",t);for(var B=0;B<_.groupButtonSettings.items.length;B++){var O=document.querySelector("#"+_.id+l.A+B);n.i(c.j)(O,"btn",t)}}else n.i(c.j)(S,I,t);else n.i(r.isNullOrUndefined)(t.enableRtl)||S.classList.toggle(l.T,t.enableRtl)}}}}},e.prototype.removeLauncherIcon=function(t,e,i){var o=t+l._40,s=e?this.ribbonDropDownModule.getDDBItemElement(e,o):i.querySelector("#"+o);if(s){s.classList.remove(l._16);var a=s.querySelector("#"+t+l._39);n.i(r.remove)(a)}},e.prototype.destroyTabItems=function(t){for(var e=0;e<t.length;e++)for(var i=t[parseInt(e.toString(),10)],o=this.tabObj.items[parseInt(e.toString(),10)].content,a=0,c=i.groups;a<c.length;a++){var p=c[a],d=void 0,f=void 0;this.activeLayout===s.a.Classic?(d=p.isCollapsed?o.querySelector("#"+p.id+l.N+l.O):null,p.showLauncherIcon&&this.removeLauncherIcon(p.id,d,o)):(d=p.enableGroupOverflow?o.querySelector("#"+p.id+l.r):null,f=d?n.i(r.getComponent)(d,u.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):o.querySelector("#"+g.id),g.type===s.f.GroupButton&&(_=d?this.ribbonDropDownModule.getDDBItemElement(d,g.id+l.A):o.querySelector("#"+g.id+l.A))):(_=g.displayOptions&s.b.Simplified?o.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 i=0;i<t.groupButtonSettings.items.length;i++){var o=e.querySelector("#"+t.id+l.A+i);o&&n.i(c.i)(o,"btn")}else this.ribbonGroupButtonModule.destroyDropDown(t);for(var s=this,i=0;i<t.groupButtonSettings.items.length;i++)!function(e){if(t.groupButtonSettings.items[parseInt(e.toString(),10)].ribbonTooltipSettings){var r=t.id+l.A+e,i=n.i(c.e)(s.tooltipData,function(t){return t.id===r});-1!==i&&s.tooltipData.splice(i,1)}}(i)}else"template"!==r&&n.i(c.i)(e,r);if(t.ribbonTooltipSettings){var a=n.i(c.e)(this.tooltipData,function(e){return e.id===t.id+l._40});-1!==a&&this.tooltipData.splice(a,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+l.o),n=e.closest("."+l._6),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(c.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(c.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(c.e)(this.tabs,function(e){return e.id===t});-1!==r&&this.tabObj.enableTab(r,e)},e.prototype.addTab=function(t,e,r){var i=e?n.i(c.e)(this.tabs,function(t){return t.id===e}):-1;i=-1===i?this.tabs.length:i+(r?1:0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(i,0,t),this.setProperties({tabs:this.tabsInternal},!0),this.checkID([this.tabs[parseInt(i.toString(),10)]],"tab",this.element.id),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var o=this.createTabItems([t]);this.tabObj.addTab(o,i)},e.prototype.removeTab=function(t){var e=n.i(c.e)(this.tabs,function(e){return e.id===t});if(-1!==e){var r=this.tabObj.items[parseInt(e.toString(),10)].content,i=this.tabs[parseInt(e.toString(),10)].groups;if(i&&""!==r.innerHTML)for(var o=0,a=i;o<a.length;o++){for(var u=a[o],p=u.isCollapsed?r.querySelector("#"+u.id+l.N+l.O):null,d=0,f=u.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+l.A):r.querySelector("#"+v.id+l.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,i){var o=n.i(c.e)(this.tabs,function(e){return e.id===t});if(-1!==o){this.selectedTab===o&&this.clearOverflowResize();var s=this.tabs[parseInt(o.toString(),10)],a=s.groups.slice(),l=r?n.i(c.e)(a,function(t){return t.id===r}):-1;l=-1===l?a.length:l+(i?1:0),a.splice(l,0,e),s.setProperties({groups:a},!0),this.checkID([s.groups[parseInt(l.toString(),10)]],"group",t),this.validateItemSize();var u=this.tabObj.items[parseInt(o.toString(),10)].content;if(""!==u.innerHTML){var p=this.createGroups([s.groups[parseInt(l.toString(),10)]],o)[0],d=r?u.querySelector("#"+r):null;d?d.insertAdjacentElement(i?"afterend":"beforebegin",p):u.append(p)}this.selectedTab===o&&this.refreshLayout()}},e.prototype.removeGroup=function(t){var e=n.i(c.h)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[e.tabIndex].content;if(""!==i.innerHTML){var o=void 0,a=void 0;e.group.showLauncherIcon&&this.removeLauncherIcon(e.group.id,null,i),this.activeLayout===s.a.Simplified&&(o=e.group.enableGroupOverflow?i.querySelector("#"+e.group.id+l.r):null,a=o?n.i(r.getComponent)(o,u.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(i,m,a)}if(this.activeLayout===s.a.Simplified)if(e.group.enableGroupOverflow)(0===a.target.childElementCount||1===a.target.childElementCount&&this.isHeaderVisible(a.target,e.group.id))&&this.removeOverflowButton(a);else{var v=a.target.querySelector("#"+e.group.id+l._40);v&&1===v.childElementCount&&v.remove();var y=a.target.querySelector("#"+this.tabs[parseInt(e.tabIndex.toString(),10)].id+l.N);y&&0===y.childElementCount&&y.remove()}var g=i.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.isHeaderVisible=function(t,e){return!!t.querySelector("#"+e+l.r+l.E)},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 i,o,s=n.i(c.h)(this.tabs,t);if(s){var a=this.tabObj.items[s.tabIndex].content,p=a.querySelector("#"+t);if(p?this.updateHiddenElements(s.tabIndex,e?"hideGroup":"showGroup",t,e,p):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+l.N);if(s.group.enableGroupOverflow){var h=a.querySelector("#"+t+l.r);h&&(i=n.i(r.getInstance)(h,u.DropDownButton),o=i.target),o&&(e?o.classList.add("e-hidden"):o.classList.remove("e-hidden"))}else if(f){var b=f.querySelector("#"+t+l._40);b&&(e?b.classList.add("e-hidden"):b.classList.remove("e-hidden"))}}this.selectedTab===s.tabIndex&&this.refreshLayout()}},e.prototype.updateHiddenElements=function(t,e,n,r,i,o){r?i.classList.contains("e-hidden")||(this.checkHiddenElements(e,n,t),i.classList.add("e-hidden"),"hideItem"===e&&this.checkHiddenItems(o,r,t),this.calculateHiddenElementsWidth(t)):i.classList.contains("e-hidden")&&(this.checkHiddenElements(e,n,t),i.classList.remove("e-hidden"),this.calculateHiddenElementsWidth(t),"showItem"===e&&this.checkHiddenItems(o,r,t))},e.prototype.checkHiddenElements=function(t,e,n){if("Simplified"===this.activeLayout){var r=this.hiddenElements[parseInt(n.toString(),10)];if(r||(this.hiddenElements[parseInt(n.toString(),10)]={},r=this.hiddenElements[parseInt(n.toString(),10)]),r)if(r[t]||(r[t]=[]),r[t].length){var i=r[t].indexOf(e);-1===i&&r[t].push(e)}else r[t].push(e)}},e.prototype.updateItemsSimplifiedWidth=function(t,e){var n=this.hiddenElements[parseInt(t.toString(),10)];if(n&&n[e]&&n[e].length)for(var r,i=this,o=0;o<n[e].length;o++)!function(o){var s,a=i.tabObj.items[t].content,c=void 0,u=!1,p=0;if(s="hideGroup"===e||"showGroup"===e?a.querySelector("#"+n[e][o]):a.querySelector("#"+n[e][o]+l._40)){if("hideGroup"===e||"hideItem"===e){var d=!1;s.classList.contains("e-hidden")&&(d=!0,s.classList.remove("e-hidden")),"hideItem"===e&&(c=s.closest(".e-ribbon-group"),c.classList.contains("e-hide-group")&&(u=!0,p=i.checkWidthDifference(s,c))),i.calculateOverflowItemsWidth(s.offsetWidth+p,!0,t),i.calculateMediumDataWidth(s.offsetWidth+p,t,!0),d&&s.classList.add("e-hidden")}else{if("showItem"===e)if(c=s.closest(".e-ribbon-group"),c.classList.contains("e-hide-group"))u=!0,c.classList.remove("e-hide-group"),c.classList.remove("e-ribbon-emptyCollection"),p=Math.abs(s.offsetWidth-c.offsetWidth),-1!==i.hiddenGroups.indexOf(c.id)&&i.hiddenGroups.splice(i.hiddenGroups.indexOf(c.id),1);else if(-1!==i.hiddenGroups.indexOf(c.id)){var f=c.querySelectorAll(".e-ribbon-item:not(.e-hidden)");f.forEach(function(t){t.id!==s.id&&t.classList.add("e-hidden")}),p=Math.abs(s.offsetWidth-c.offsetWidth),f.forEach(function(t){t.id!==s.id&&t.classList.remove("e-hidden")}),i.hiddenGroups.splice(i.hiddenGroups.indexOf(c.id),1)}i.calculateOverflowItemsWidth(s.offsetWidth+p,!1,t),i.calculateMediumDataWidth(s.offsetWidth+p,t,!1)}u&&(c.classList.add("e-hide-group"),c.classList.add("e-ribbon-emptyCollection"))}var h=n[e].indexOf(n[e][o]);-1!==h&&(n[e].splice(h,1),o--),r=o}(o),o=r},e.prototype.checkWidthDifference=function(t,e){var n=0;return e.classList.remove("e-hide-group"),e.classList.remove("e-ribbon-emptyCollection"),this.hiddenGroups.length?-1===this.hiddenGroups.indexOf(e.id)&&(this.hiddenGroups.push(e.id),n=Math.abs(t.offsetWidth-e.offsetWidth)):(this.hiddenGroups.push(e.id),n=Math.abs(t.offsetWidth-e.offsetWidth)),n},e.prototype.calculateHiddenElementsWidth=function(t){if(t===this.selectedTab&&"Simplified"===this.activeLayout){var e=this.hiddenElements[parseInt(t.toString(),10)];if(e)for(var n=0;n<Object.keys(e).length;n++)this.updateItemsSimplifiedWidth(t,Object.keys(e)[parseInt(n.toString(),10)])}},e.prototype.calculateMediumDataWidth=function(t,e,i){if(this.selectedTab===e&&"Simplified"===this.activeLayout){var o=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.o),s=Array.prototype.slice.call(o.querySelectorAll(".e-ribbon-item"));if(this.overflowDDB)for(var a=this.overflowDDB.target,c=a.querySelectorAll(".e-ribbon-item"),p=document.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+l.N),d=0;d<c.length;d++){var f=c[parseInt(d.toString(),10)].closest("#"+this.tabs[parseInt(e.toString(),10)].id+l.N);p&&f&&p.id===f.id&&c[parseInt(d.toString(),10)].hasAttribute("data-medium-width")&&s.push(c[parseInt(d.toString(),10)])}for(var h=o.querySelectorAll(".e-ribbon-group-of-btn"),d=0;d<h.length;d++)for(var b=n.i(r.getInstance)(h[parseInt(d.toString(),10)],u.DropDownButton),m=b.target,c=m.querySelectorAll(".e-ribbon-item"),v=0;v<c.length;v++)c[parseInt(v.toString(),10)].hasAttribute("data-medium-width")&&s.push(c[parseInt(v.toString(),10)]);for(var d=0;d<s.length;d++)if(s[parseInt(d.toString(),10)].hasAttribute("data-medium-width")){var y=parseInt(s[parseInt(d.toString(),10)].getAttribute("data-medium-width"),10);s[parseInt(d.toString(),10)].setAttribute("data-medium-width",i?(y-t).toString():(y+t).toString())}}},e.prototype.calculateOverflowItemsWidth=function(t,e,i){if(this.selectedTab===i&&"Simplified"===this.activeLayout)for(var o=this.tabs[parseInt(i.toString(),10)].groups,s=0;s<o.length;s++){var a=o[parseInt(s.toString(),10)];if(a.enableGroupOverflow){var c=document.querySelector("#"+a.id),p=void 0,d=c.querySelector("#"+a.id+l.r);if(d&&(p=n.i(r.getInstance)(d,u.DropDownButton)),p)for(var f=p.target,h=f.querySelectorAll(".e-ribbon-item"),b=0;b<h.length;b++){var m=parseInt(h[parseInt(b.toString(),10)].getAttribute("data-simplified-width"),10);m&&h[parseInt(b.toString(),10)].setAttribute("data-simplified-width",e?(m-t).toString():(m+t).toString())}}}if(this.overflowDDB)for(var v=document.querySelector("#"+this.tabs[parseInt(i.toString(),10)].id+l.N),f=this.overflowDDB.target,h=f.querySelectorAll(".e-ribbon-item"),s=0;s<h.length;s++){var y=h[parseInt(s.toString(),10)].closest("#"+this.tabs[parseInt(i.toString(),10)].id+l.N);if(v&&y&&v.id===y.id){var m=parseInt(h[parseInt(s.toString(),10)].getAttribute("data-simplified-width"),10);m&&h[parseInt(s.toString(),10)].setAttribute("data-simplified-width",e?(m-t).toString():(m+t).toString())}}},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 i,o,s=n.i(c.h)(this.tabs,t);if(s){var a=this.tabObj.items[s.tabIndex].content,p=a.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+l.N);if(s.group.enableGroupOverflow){var h=a.querySelector("#"+t+l.r);h&&(i=n.i(r.getInstance)(h,u.DropDownButton),o=i.target),o&&(e?o.classList.add("e-disabled"):o.classList.remove("e-disabled"))}else if(f){var b=f.querySelector("#"+t+l._40);b&&(e?b.classList.add("e-disabled"):b.classList.remove("e-disabled"))}}}},e.prototype.addCollection=function(t,e,r,i){var o=n.i(c.h)(this.tabs,t);if(o&&("Row"!==o.group.orientation||3!==o.group.collections.length)){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var s=o.group.collections.slice(),a=r?n.i(c.e)(s,function(t){return t.id===r}):-1;a=-1===a?s.length:a+(i?1:0),s.splice(a,0,e),o.group.setProperties({collections:s},!0),this.checkID([o.group.collections[parseInt(a.toString(),10)]],"collection",t),this.validateItemSize();var u=this.tabObj.items[o.tabIndex].content;if(""!==u.innerHTML){var p=o.group.collections[parseInt(a.toString(),10)],d=this.createCollection([p],o.group.orientation,o.group.id,o.group.header,o.group.enableGroupOverflow,o.tabIndex)[0];o.group.isCollapsed&&(u=this.ribbonDropDownModule.getOverflowDropDownPopup(o,u));var f=r?u.querySelector("#"+r):null;f?f.insertAdjacentElement(i?"afterend":"beforebegin",d):u.querySelector("#"+t+l.o).append(d)}this.selectedTab===o.tabIndex&&this.refreshLayout()}},e.prototype.removeCollection=function(t){var e=n.i(c.g)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[e.tabIndex].content;if(""!==i.innerHTML){var o=void 0,a=void 0;this.activeLayout===s.a.Simplified&&(o=e.group.enableGroupOverflow?i.querySelector("#"+e.group.id+l.r):null,a=o?n.i(r.getComponent)(o,u.DropDownButton):this.overflowDDB);for(var p=0,d=e.collection.items;p<d.length;p++){var f=d[p];this.removeItemElement(i,f,a)}var h=i.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,i){var o=n.i(c.g)(this.tabs,t);if(o&&("Column"!==o.group.orientation||3!==o.collection.items.length)){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var s=o.collection.items.slice(),a=r?n.i(c.e)(s,function(t){return t.id===r}):-1;a=-1===a?s.length:a+(i?1:0),s.splice(a,0,e),o.collection.setProperties({items:s},!0),this.checkID([o.collection.items[parseInt(a.toString(),10)]],"item",t),this.validateItemSize();var u=this.tabObj.items[o.tabIndex].content,p=u.querySelector("#"+o.group.id+l._40);if(""!==u.innerHTML){var d=o.collection.items[parseInt(a.toString(),10)],f=this.createItems([d],o.group.orientation,o.group.id,o.group.header,o.group.enableGroupOverflow,o.tabIndex,p)[0];o.group.isCollapsed&&(u=this.ribbonDropDownModule.getOverflowDropDownPopup(o,u));var h=r?u.querySelector("#"+r):null;h?h.closest("."+l._20).insertAdjacentElement(i?"afterend":"beforebegin",f):f&&u.querySelector("#"+t).append(f)}this.selectedTab===o.tabIndex&&this.refreshLayout()}},e.prototype.removeItem=function(t){var e=n.i(c.f)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[e.tabIndex].content;if(""!==i.innerHTML){var o=void 0,a=void 0;this.activeLayout===s.a.Simplified&&(o=e.group.enableGroupOverflow?i.querySelector("#"+e.group.id+l.r):null,a=o?n.i(r.getComponent)(o,u.DropDownButton):this.overflowDDB);var p=e.item;this.removeItemElement(i,p,a)}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 i=n.i(c.f)(this.tabs,t);if(i){var o;if(o="GroupButton"===i.item.type?n.i(c.l)(this,t+l.A,i):n.i(c.l)(this,t,i)){var s=n.i(r.closest)(o,".e-ribbon-item");this.updateHiddenElements(i.tabIndex,e?"hideItem":"showItem",t,e,s,i.group),this.selectedTab===i.tabIndex&&this.refreshLayout()}else this.updateInitialProps(i.tabIndex,t,"hiddenItems",e)}},e.prototype.updateInitialProps=function(t,e,n,r){var i=this.initialPropsData[parseInt(t.toString(),10)];if(i||(this.initialPropsData[parseInt(t.toString(),10)]={},i=this.initialPropsData[parseInt(t.toString(),10)]),i){i[n]||(i[n]=[]);var o=i[n].indexOf(e);r?-1===o&&i[n].push(e):(-1!==o&&i[n].splice(o,1),0===i[n].length&&delete i[n],0===Object.keys(i).length&&delete this.initialPropsData[parseInt(t.toString(),10)])}},e.prototype.checkHiddenItems=function(t,e,r){var i,o=!0,s=this.tabObj.items[parseInt(r.toString(),10)].content,a=s.querySelector("#"+t.id);if(e){for(var u=0;u<t.collections.length;u++)if(o)for(var p=t.collections[parseInt(u.toString(),10)],d=0;d<p.items.length;d++){var f=p.items[parseInt(d.toString(),10)],h=void 0;if("GroupButton"===f.type){var b=n.i(c.f)(this.tabs,f.id);h=n.i(c.l)(this,f.id+l.A,b)}else h=n.i(c.l)(this,f.id);var m=h?h.closest(".e-ribbon-item"):null;if(!m.classList.contains("e-hidden")){o=!1;break}}o&&(a.classList.add("e-hide-group"),this.checkOverflowItems(e,s,t.enableGroupOverflow,r,t.id))}else a.classList.remove("e-hide-group"),this.checkOverflowItems(e,s,t.enableGroupOverflow,r,t.id);if("Simplified"===this.activeLayout&&!t.enableGroupOverflow){var v=a.querySelectorAll("."+l._20);v&&(i=this.checkEmptyCollection(v),a.classList[i?"add":"remove"]("e-ribbon-emptyCollection"))}},e.prototype.checkOverflowItems=function(t,e,i,o,s){var a,c;if(i){var p=e.querySelector("#"+s+l.r);p&&(a=n.i(r.getInstance)(p,u.DropDownButton),c=a.target),c&&(t?c.classList.add("e-hide-group"):c.classList.remove("e-hide-group"))}else if(this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+l.N);if(f){var h=f.querySelector("#"+s+l._40);h&&(t?h.classList.add("e-hide-group"):h.classList.remove("e-hide-group"))}}},e.prototype.updateTab=function(t){var e=t.id,i=n.i(c.e)(this.tabs,function(t){return t.id===e});if(-1!==i){var o=this.tabObj.items[parseInt(i.toString(),10)].content,a=this.tabs[parseInt(i.toString(),10)].groups,u=this.tabObj.element;if(a&&""!==o.innerHTML&&(t.cssClass&&this.tabs[parseInt(i.toString(),10)].cssClass&&(o.classList.remove(this.tabs[parseInt(i.toString(),10)].cssClass),u.querySelector(".e-active").classList.remove(this.tabs[parseInt(i.toString(),10)].cssClass)),t.groups)){for(var p=0,d=a;p<d.length;p++){for(var f=d[p],h=f.isCollapsed?o.querySelector("#"+f.id+l.N+l.O):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):o.querySelector("#"+_.id);_.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(S=h?this.ribbonDropDownModule.getDDBItemElement(h,_.id+l.A):o.querySelector("#"+_.id+l.A)),S&&this.destroyFunction(_,S)}h&&this.ribbonDropDownModule.removeOverFlowDropDown(h)}o.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()})}i===this.selectedTab&&(this.isAddRemove=!0);var I=this.tabs[parseInt(i.toString(),10)];if(I.setProperties(t,!0),this.setProperties({groups:this.checkID(I.groups,"group",I.id)},!0),this.validateItemSize(),""===o.innerHTML){if(t.groups){var C=this.createGroups(I.groups,i);n.i(r.append)(C,o)}this.selectedTab===i&&this.refreshLayout(),t.cssClass&&(o.classList.add(I.cssClass),u.querySelector(".e-active").classList.add(I.cssClass)),t.header&&(u.querySelector("#"+e+l.E).innerText=I.header)}}},e.prototype.updateGroup=function(t){var e=t.id,i=n.i(c.h)(this.tabs,e);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var o,a,p=this.tabObj.items[i.tabIndex].content,d=p.querySelector("#"+e),f=d.querySelector("#"+t.id+l._40);if(""!==p.innerHTML){if(i.group.showLauncherIcon&&this.removeLauncherIcon(i.group.id,null,p),this.activeLayout===s.a.Simplified&&(o=i.group.enableGroupOverflow?p.querySelector("#"+i.group.id+l.r):null,a=o?n.i(r.getComponent)(o,u.DropDownButton):this.overflowDDB),t.cssClass&&i.group.cssClass&&(d.classList.remove(i.group.cssClass),f&&f.classList.remove(i.group.cssClass)),(t.collections||t.orientation)&&(i.group.collections||i.group.orientation)){for(var h=0,b=i.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,a)}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(i.group.enableGroupOverflow)(0===a.target.childElementCount||1===a.target.childElementCount&&this.isHeaderVisible(a.target,i.group.id))&&this.removeOverflowButton(a);else{var I=a.target.querySelector("#"+i.group.id+l._40);I&&1===I.childElementCount&&I.remove();var C=a.target.querySelector("#"+this.tabs[parseInt(i.tabIndex.toString(),10)].id+l.N);C&&0===C.childElementCount&&C.remove()}}var O=i.group;if(O.setProperties(t,!0),O.setProperties({collections:this.checkID(O.collections,"collection",O.id)},!0),this.validateItemSize(),""!==p.innerHTML){if(t.showLauncherIcon&&this.createLauncherIcon(O.id,f),t.collections||t.orientation){var _=f.querySelector(".e-ribbon-group-content");_.classList.add("Column"===O.orientation||"Simplified"===this.activeLayout?l._22:l._21);var B=this.createCollection(O.collections,O.orientation,O.id,O.header,O.enableGroupOverflow,i.tabIndex,f);n.i(r.append)(B,_)}if(this.selectedTab===i.tabIndex&&this.refreshLayout(),t.cssClass&&(d.classList.add(O.cssClass),f&&f.classList.add(O.cssClass)),t.header)if(this.activeLayout!==s.a.Simplified||t.enableGroupOverflow)if(this.activeLayout!==s.a.Classic||O.isCollapsed){if(this.activeLayout===s.a.Classic&&O.isCollapsed){var w=d.querySelector("#"+O.id+l.N+l.O),L=n.i(r.getInstance)(w,u.DropDownButton),P=L.target.querySelector("#"+t.id+l.E);P&&(P.innerText=O.header)}}else d.querySelector(".e-ribbon-group-header").innerText=O.header;else{var P=a.target.querySelector("#"+t.id+l.E);P&&(P.innerText=O.header)}}}},e.prototype.updateCollection=function(t){var e=t.id,i=n.i(c.g)(this.tabs,e);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[i.tabIndex].content,a=o.querySelector("#"+e);if(""!==o.innerHTML){var p=void 0,d=void 0;if(this.activeLayout===s.a.Simplified&&(p=i.group.enableGroupOverflow?o.querySelector("#"+i.group.id+l.r):null,d=p?n.i(r.getComponent)(p,u.DropDownButton):this.overflowDDB),t.cssClass&&i.collection.cssClass&&a.classList.remove(i.collection.cssClass),t.items&&i.collection.items)for(var f=0,h=i.collection.items;f<h.length;f++){var b=h[f];this.removeItemElement(o,b,d)}}var m=i.collection;if(m.setProperties(t,!0),m.setProperties({items:this.checkID(m.items,"item",m.id)},!0),this.validateItemSize(),""!==o.innerHTML&&t.items){var v=o.querySelector("#"+i.group.id+l._40),y=this.createItems(m.items,i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex,v);n.i(r.append)(y,a)}this.selectedTab===i.tabIndex&&this.refreshLayout(),t.cssClass&&a.classList.add(m.cssClass)}},e.prototype.updateItem=function(t){var e=t.id,i=n.i(c.f)(this.tabs,e);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var o,a,p=this.tabObj.items[i.tabIndex].content,d=p.querySelector("#"+i.group.id),f=d.querySelector("#"+i.group.id+l._40),h=null,b=null;if(""!==p.innerHTML){if(this.activeLayout===s.a.Simplified&&(o=i.group.enableGroupOverflow?p.querySelector("#"+i.group.id+l.r):null,a=o?n.i(r.getComponent)(o,u.DropDownButton):this.overflowDDB),this.activeLayout===s.a.Simplified&&i.item.displayOptions===s.b.Overflow){if(h=a.target.querySelector("#"+e+l._40),b=a.target.querySelector("#"+e),t.displayOptions&&t.displayOptions!==s.b.Overflow){var m=f.querySelector("#"+i.collection.id);m&&m.appendChild(h)}}else h=f.querySelector("#"+e+l._40),b=p.querySelector("#"+e),"GroupButton"===i.item.type&&this.activeLayout===s.a.Classic&&(b=p.querySelector("#"+e+l.A)),this.activeLayout===s.a.Simplified&&t.displayOptions===s.b.Overflow&&(this.createOverflowPopup(i.item,i.tabIndex,i.group.enableGroupOverflow,i.group.id,i.group.header,h,f),i.item.type!==s.f.DropDown&&i.item.type!==s.f.SplitButton&&t.type!==s.f.GroupButton||this.updatePopupItems(i.item,h,i.group.enableGroupOverflow,!0));t.cssClass&&i.item.cssClass&&h.classList.remove(i.item.cssClass),this.destroyFunction(i.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=i.item;if(y.setProperties(t,!0),this.validateItemSize(),""!==p.innerHTML){h=this.activeLayout!==s.a.Simplified||y.displayOptions!==s.b.Overflow?f.querySelector("#"+e+l._40):a.target.querySelector("#"+e+l._40),y.ribbonTooltipSettings&&n.i(c.a)(y.ribbonTooltipSettings)&&(h.classList.add(l.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(l._23,l._26):h.classList.add(g&s.c.Medium?l._24:l._25),this.createRibbonItem(y,h),"Simplified"===this.activeLayout&&i.group.enableGroupOverflow&&(0===a.target.childElementCount||1===a.target.childElementCount&&this.isHeaderVisible(a.target,i.group.id))&&this.removeOverflowButton(a),this.selectedTab===i.tabIndex&&this.refreshLayout(),t.cssClass&&h.classList.add(y.cssClass),!y.disabled&&h.classList.contains(l.S)&&h.classList.remove(l.S),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+l.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+l._40).remove():r.closest("#"+e.id+l._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 i=!1,o=n.i(c.f)(this.tabs,t);if(o){o.item.setProperties({disabled:e},!0);var s;if(s="GroupButton"===o.item.type?n.i(c.l)(this,t+l.A,o):n.i(c.l)(this,t,o)){var a=n.i(r.closest)(s,".e-ribbon-item"),u=this.getItemModuleName(o.item);if(i=e?!a.classList.contains(l.S):a.classList.contains(l.S),"template"!==u){if(i)if("group-btn"===u&&"Simplified"===this.activeLayout){n.i(c.k)(s,"dropdown-btn",e);for(var p=0;p<o.item.groupButtonSettings.items.length;p++){var d=document.querySelector("#"+t+l.A+p);n.i(c.k)(d,"btn",e)}}else if("group-btn"===u&&"Classic"===this.activeLayout)for(var p=0;p<o.item.groupButtonSettings.items.length;p++){var d=s.querySelector("#"+t+l.A+p);n.i(c.k)(d,"btn",e)}else n.i(c.k)(s,u,e)}else s.classList.toggle(l.S,e),s.toggleAttribute("disabled",e);a.classList.toggle(l.S,o.item.disabled)}}},e.prototype.unwireEvents=function(){r.EventHandler.remove(window,"resize",this.resizeHandler)},e.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,n.i(c.n)(this.element),this.refreshing&&this.clearOverflowDropDown(this.selectedTab),this.destroyTabItems(this.tabs),this.hideLayoutSwitcher||this.removeExpandCollapse(),this.collapseButton=void 0,this.scrollModule&&(this.scrollModule.destroy(),this.scrollModule=null),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={},this.hiddenGroups=[],this.hiddenElements={},n.i(r.remove)(this.element.querySelector("#"+this.element.id+l._33)),this.element.style.removeProperty(l.c),this.element.style.removeProperty(l._42),this.element.style.removeProperty("width"),this.cssClass&&n.i(r.removeClass)([this.element],this.cssClass.split(l.G)),this.element.classList.remove(l.T,l._31,l._5,l._1,l._7,"e-rbn"),this.unwireEvents()},e.prototype.onPropertyChanged=function(t,e){for(var i,o,s=0,a=Object.keys(t);s<a.length;s++){switch(a[s]){case"activeLayout":this.switchLayout();break;case"cssClass":e.cssClass&&(i=this.element.classList).remove.apply(i,e.cssClass.split(l.G)),t.cssClass&&(o=this.element.classList).add.apply(o,t.cssClass.split(l.G));break;case"isMinimized":this.element.classList.toggle(l._7,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(l.T,this.enableRtl),this.updateCommonProperty({enableRtl:t.enableRtl}),this.scrollModule&&this.scrollModule.setProperties({enableRtl:t.enableRtl});break;case"launcherIconCss":for(var c=0;c<this.tabs.length;c++){var p=this.tabObj.items[parseInt(c.toString(),10)].content,d=this.tabs[parseInt(c.toString(),10)];if(p.querySelector("."+l._8))for(var f=0,h=d.groups;f<h.length;f++){var b=h[f];if(b.showLauncherIcon){var m=l._17+" "+(this.launcherIconCss||l._18);if(b.isCollapsed){var v=p.querySelector("#"+b.id+l.N+l.O),y=n.i(r.getComponent)(v,u.DropDownButton),g=y.target.querySelector("#"+b.id+l._39);g.className=m}else{var v=p.querySelector("#"+b.id+l._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(l._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)({},o.k)],e.prototype,"fileMenu",void 0),f([n.i(r.Complex)({},o.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)({},i.TabAnimationSettings)],e.prototype,"tabAnimation",void 0),f([n.i(r.Collection)([],o.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),f([n.i(r.Event)()],e.prototype,"overflowPopupOpen",void 0),f([n.i(r.Event)()],e.prototype,"overflowPopupClose",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 i=n(13);n.d(e,"_65",function(){return i.a}),n.d(e,"_66",function(){return i.b}),n.d(e,"_67",function(){return i.c}),n.d(e,"_68",function(){return i.d}),n.d(e,"_69",function(){return i.e}),n.d(e,"_70",function(){return i.f}),n.d(e,"_71",function(){return i.g}),n.d(e,"_72",function(){return i.h}),n.d(e,"_73",function(){return i.i}),n.d(e,"_74",function(){return i.j}),n.d(e,"_75",function(){return i.k}),n.d(e,"_76",function(){return i.l}),n.d(e,"_77",function(){return i.m}),n.d(e,"_78",function(){return i.n}),n.d(e,"_79",function(){return i.o}),n.d(e,"_80",function(){return i.p}),n.d(e,"_81",function(){return i.q});var o=n(12);n.d(e,"_82",function(){return o.a}),n.d(e,"_83",function(){return o.b}),n.d(e,"_84",function(){return o.c}),n.d(e,"_85",function(){return o.d}),n.d(e,"_86",function(){return o.e}),n.d(e,"_87",function(){return o.f}),n.d(e,"_88",function(){return o.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 a});var r=n(0),i=(n.n(r),n(7)),o=(n.n(i),n(2)),s=n(1),a=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,a=this.parent.createElement("button",{id:t.id});e.appendChild(a);var c=t.buttonSettings;new i.Button({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===o.d.Large?"Top":"Left",iconCss:c.iconCss,disabled:t.disabled,cssClass:(s.H+s.G+s.I+s.G+(c.cssClass?c.cssClass:"")).trim(),content:t.activeSize===o.d.Small?"":c.content,isPrimary:c.isPrimary,isToggle:c.isToggle,created:c.created},a),c.htmlAttributes&&n.i(o._64)(a,c.htmlAttributes),a.onclick=function(t){c.clicked&&c.clicked.call(r,t)},a.setAttribute("aria-label",c.content)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,c=e.querySelector("#"+t.id);c.setAttribute("data-control",t.type.toString());var l=n.i(r.getComponent)(c,i.Button);l.setProperties({cssClass:l.cssClass+s.G+s.M}),c.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(a,e),o.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var o=this,a=e.querySelector("#"+t.id),c=n.i(r.getComponent)(a,i.Button),l=c.cssClass.split(s.G);l=l.filter(function(t){return t!==s.M}),c.setProperties({cssClass:l.join(s.G)}),a.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(o,e)}},t.prototype.click=function(t){var e=n.i(o._58)(this.parent,t);if(e){n.i(r.getComponent)(e,i.Button).click()}},t.prototype.updateButton=function(t,e){var a=n.i(o._52)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.buttonSettings,t);var c=n.i(o._58)(this.parent,e,a);if(c){var l=n.i(r.getComponent)(c,i.Button);t.isToggle&&c.classList.add("e-active"),t.cssClass&&(t.cssClass=(s.H+s.G+s.I+s.G+t.cssClass).trim()),t.content&&(t.content=a.item.activeSize===o.d.Small?"":t.content,c.setAttribute("aria-label",t.content)),delete t.clicked,l.setProperties(t)}}},t.prototype.updateButtonSize=function(t,e){n.i(r.getComponent)(t,i.Button).setProperties({iconPosition:e.activeSize===o.d.Large?"Top":"Left",content:e.activeSize===o.d.Small?"":e.buttonSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=(n.n(r),n(7)),o=(n.n(i),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 i.CheckBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,checked:s.checked,cssClass:(o.p+o.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 a=this,c=e.querySelector("#"+t.id);c.setAttribute("data-control",t.type.toString());var l=n.i(r.getComponent)(c,i.CheckBox);l.cssClass=l.cssClass+o.s+o.q,l.dataBind(),l.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(a,e),s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,a=e.querySelector("#"+t.id),c=n.i(r.getComponent)(a,i.CheckBox),l=c.cssClass.split(o.s);l=l.filter(function(t){return t!==o.q}),c.cssClass=l.join(o.s),c.dataBind(),c.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(s,e)}},t.prototype.click=function(t){var e=n.i(o._58)(this.parent,t);if(e){n.i(r.getComponent)(e,i.CheckBox).click()}},t.prototype.updateCheckBox=function(t,e){var s=n.i(o._52)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.checkBoxSettings,t);var a=n.i(o._58)(this.parent,e,s);if(a){t.cssClass&&(t.cssClass=(o.p+o.s+t.cssClass).trim()),delete t.change;n.i(r.getComponent)(a,i.CheckBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(52)),o=(n.n(i),n(2)),s=n(1),a=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 a=this,c=this.parent.createElement("input",{id:t.id});e.appendChild(c);var l=t.colorPickerSettings,u=new i.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:l.columns,cssClass:(s.I+s.G+(l.cssClass?l.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:l.enableOpacity,mode:l.mode,modeSwitcher:l.modeSwitcher,noColor:l.noColor,presetColors:l.presetColors,showButtons:l.showButtons,value:l.value,beforeClose:function(){u.element.parentElement.classList.remove(s.K),l.beforeClose&&l.beforeClose.call(a)},beforeOpen:l.beforeOpen,beforeTileRender:l.beforeTileRender,created:l.created,change:l.change,open:function(){u.element.parentElement.classList.add(s.K),l.open&&l.open.call(a)},select:l.select},c);l.htmlAttributes&&n.i(o._64)(c,l.htmlAttributes);var p=u.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.L):t.classList.remove(s.L)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,c=t.colorPickerSettings;if(c.label&&"Simplified"===this.parent.activeLayout){var l=this.parent.createElement("div",{className:"e-ribbon-colorpicker-label",id:t.id+"_label",innerHTML:c.label});e.insertBefore(l,e.firstChild)}var u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var p=n.i(r.getComponent)(u,i.ColorPicker);p.setProperties({cssClass:p.cssClass+s.G+s.M});var d,f=p.splitBtn;p.beforeClose=function(e){d=e.event?e.event.target:null,p.element.parentElement.classList.remove(s.K),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(a)},f.close=function(){d&&!d.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var o=this;if(t.colorPickerSettings.label){var a=e.querySelector("#"+t.id+"_label");a&&a.remove()}var c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,i.ColorPicker),u=l.cssClass.split(s.G);u=u.filter(function(t){return t!==s.M}),l.setProperties({cssClass:u.join(s.G)}),l.splitBtn.close=null,l.beforeClose=function(){l.element.parentElement.classList.remove(s.K),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(o)}},t.prototype.getColorPickerObj=function(t){var e=n.i(o._58)(this.parent,t);return e?n.i(r.getComponent)(e,i.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 a=n.i(o._52)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.checkBoxSettings,t);var c=n.i(o._58)(this.parent,e,a);if(c){t.cssClass&&(t.cssClass=(s.I+s.G+t.cssClass).trim()),delete t.beforeClose,delete t.open;n.i(r.getComponent)(c,i.ColorPicker).setProperties(t)}}},t.prototype.unwireColorPickerEvents=function(t){var e=n.i(r.getComponent)(t,i.ColorPicker),o=e.element.parentElement;r.EventHandler.remove(o,"mouseenter",this.toggleWrapperHover),r.EventHandler.remove(o,"mouseleave",this.toggleWrapperHover)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),i=(n.n(r),n(27)),o=(n.n(i),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 i.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:(o.p+o.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 a=this,c=t.comboBoxSettings;if(c.label&&"Simplified"===this.parent.activeLayout){var l=this.parent.createElement("div",{className:"e-ribbon-combobox-label",id:t.id+"_label",innerHTML:c.label});e.insertBefore(l,e.firstChild)}var u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var p=n.i(r.getComponent)(u,i.ComboBox);p.setProperties({cssClass:p.cssClass+o.s+o.q}),p.close=function(e){var n=e.event?e.event.target:null;t.comboBoxSettings.close&&t.comboBoxSettings.close.call(a,e),n&&!n.closest(".e-ribbon-group-overflow-ddb")&&s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this;if(t.comboBoxSettings.label){var a=e.querySelector("#"+t.id+"_label");a&&a.remove()}var c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,i.ComboBox),u=l.cssClass.split(o.s);u=u.filter(function(t){return t!==o.q}),l.setProperties({cssClass:u.join(o.s)}),l.close=function(e){t.comboBoxSettings.close&&t.comboBoxSettings.close.call(s,e)}},t.prototype.getComboBoxObj=function(t){var e=n.i(o._58)(this.parent,t);return e?n.i(r.getComponent)(e,i.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(o._52)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.comboBoxSettings,t);var a=n.i(o._58)(this.parent,e,s);if(a){t.cssClass&&(t.cssClass=(o.p+o.s+t.cssClass).trim()),delete t.close;n.i(r.getComponent)(a,i.ComboBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),i=(n.n(r),n(3)),o=(n.n(i),n(10)),s=(n.n(o),n(2)),a=n(1),c=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,o=this.parent.createElement("button",{id:t.id});e.appendChild(o);var c=t.dropDownSettings,l=(a.H+a.G+a.I+a.G+(c.cssClass?c.cssClass:"")).trim();new i.DropDownButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===s.d.Large?"Top":"Left",closeActionEvents:c.closeActionEvents,content:t.activeSize===s.d.Small?"":c.content,cssClass:l+(t.activeSize===s.d.Large?a.G+a.J:""),disabled:t.disabled,iconCss:c.iconCss,items:c.items,target:c.target,createPopupOnClick:c.createPopupOnClick,beforeClose:function(t){c.beforeClose&&c.beforeClose.call(r,t)},beforeItemRender:c.beforeItemRender,beforeOpen:c.beforeOpen,close:function(t){c.close&&c.close.call(r,t)},created:c.created,open:c.open,select:c.select}).appendTo(o),c.htmlAttributes&&n.i(s._64)(o,c.htmlAttributes)},t.prototype.addOverFlowEvents=function(t,e,o){var s=this,c=e.querySelector("#"+t.id);c.setAttribute("data-control",t.type.toString());var l=n.i(r.getComponent)(c,i.DropDownButton);l.cssClass=l.cssClass+a.G+a.M,l.dataBind();var u;l.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(s,e),u=e.event?e.event.target:null},l.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(s,e),u&&!u.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var o=this,s=e.querySelector("#"+t.id),c=n.i(r.getComponent)(s,i.DropDownButton),l=c.cssClass.split(a.G);l=l.filter(function(t){return t!==a.M}),c.cssClass=l.join(a.G),c.dataBind(),c.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(o,e)},c.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(o,e)}},t.prototype.createOverFlowDropDown=function(t,e,o,c,l,u){var p=this;this.enableRtl=u;var d=this.parent.createElement("button",{id:t+a.N+a.O});c.setAttribute("tabindex","0"),l.appendChild(d);var f=new i.DropDownButton({iconCss:o,target:c,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:a.J+a.G+a.P,iconPosition:"Top",content:e,beforeClose:function(t){t.cancel=!n.i(r.isNullOrUndefined)(t.event&&n.i(r.closest)(t.event.target,"."+a.M))}},d);return n.i(s._61)(c,this.parent),d.onclick=d.onkeydown=function(){p.itemIndex=0},c.onkeydown=function(t){p.keyActionHandler(t,c)},f},t.prototype.keyActionHandler=function(t,e){var n,r=Array.prototype.slice.call(e.querySelectorAll(".e-control")),i=Array.prototype.slice.call(e.querySelectorAll(".e-ribbon-template")),o=r.concat(i),s=e.querySelectorAll(".e-combobox");if(s)for(var a=0;a<s.length;a++)s[parseInt(a.toString(),10)].closest(".e-input-focus")&&(n=s[parseInt(a.toString(),10)]);if(n)for(var a=0;a<o.length;a++)o[parseInt(a.toString(),10)].classList.contains("e-combobox")&&o[parseInt(a.toString(),10)].closest(".e-input-focus")&&(this.itemIndex=a);(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-template")||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,o),("ArrowLeft"===t.key||t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,this.enableRtl,o))},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")&&!t.target.classList.contains("e-ribbon-template")||(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,i.DropDownButton);n.i(r.getComponent)(e.target,o.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,i.DropDownButton).dropDown.element.querySelector("#"+e)},t.prototype.getOverflowDropDownPopup=function(t,e){var o=e.querySelector("#"+this.parent.tabs[t.tabIndex].groups[t.groupIndex].id+a.N+a.O);return n.i(r.getComponent)(o,i.DropDownButton).dropDown.element},t.prototype.getDropDownObj=function(t){var e=n.i(s._58)(this.parent,t);return e?n.i(r.getComponent)(e,i.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 o=n.i(s._52)(this.parent.tabs,e);if(o){n.i(r.merge)(o.item.dropDownSettings,t);var c=n.i(s._58)(this.parent,e,o);if(c){var l=n.i(r.getComponent)(c,i.DropDownButton);t.cssClass&&(t.cssClass=(a.I+a.G+a.H+a.G+t.cssClass).trim(),t.cssClass=o.item.activeSize===s.d.Large?(a.J+a.G+t.cssClass).trim():t.cssClass,l.cssClass=t.cssClass),delete t.close,delete t.beforeClose,t.content&&(t.content=o.item.activeSize===s.d.Small?"":t.content),l.setProperties(t)}}},t.prototype.updateDropDownSize=function(t,e){var o=n.i(r.getComponent)(t,i.DropDownButton),c=o.cssClass.split(a.G);e.activeSize===s.d.Large?c.push(a.J):c=c.filter(function(t){return t!==a.J}),o.cssClass=c.join(a.G),o.setProperties({iconPosition:e.activeSize===s.d.Large?"Top":"Left"}),o.setProperties({content:e.activeSize===s.d.Small?"":e.dropDownSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),i=(n.n(r),n(1)),o=n(7),s=(n.n(o),n(5)),a=n(3),c=(n.n(a),n(8)),l=n(10),u=(n.n(l),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 l=this,u=t.groupButtonSettings;this.count=0;var p=this.parent.createElement("div",{id:t.id+i.A,className:"e-btn-group"});e.appendChild(p);for(var d=0;d<u.items.length;d++)if(u.items[parseInt(d.toString(),10)].iconCss){var f=this.parent.createElement("button",{id:t.id+i.A+d,className:i.B});p.appendChild(f),new o.Button({iconCss:u.items[parseInt(d.toString(),10)].iconCss,disabled:t.disabled,enableRtl:this.parent.enableRtl,content:t.activeSize===s.c.Small?"":u.items[parseInt(d.toString(),10)].content,iconPosition:t.activeSize===s.c.Large?"Top":"Left"},f),u.items[parseInt(d.toString(),10)].htmlAttributes&&n.i(c.c)(f,u.items[parseInt(d.toString(),10)].htmlAttributes);var h=e.querySelector("#"+t.id+i.A+d);u.selection===s.d.Single?p.classList.add(i.C):p.classList.add(i.D),u.items[parseInt(d.toString(),10)].selected&&(u.selection===s.d.Multiple?h.classList.add("e-active"):this.count<1&&(h.classList.add("e-active"),this.count++)),u.items[parseInt(d.toString(),10)].ribbonTooltipSettings&&n.i(c.a)(u.items[parseInt(d.toString(),10)].ribbonTooltipSettings)&&(f.classList.add(i.e),this.parent.tooltipData.push({id:f.id,data:u.items[parseInt(d.toString(),10)].ribbonTooltipSettings})),r.EventHandler.add(h,"click",this.groupButtonClicked.bind(this,d,t,u),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<u.items.length;d++)t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&!this.isSelected&&u.selection===s.d.Single?(b=t.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss,this.isSelected=!0):t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&u.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++;var y=new a.DropDownButton({iconCss:b,target:p,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h);if(u.header){var g=y.dropDown;this.addGroupButtonHeader(t.id,u,g.element)}h.onclick=h.onkeydown=function(){l.handleFocusState(t,e)},p.onkeydown=function(e){"Simplified"===l.parent.activeLayout&&l.handleGroupButtonNavigation(e,t)},n.i(c.d)(p,this.parent),this.isSelected=!1}},t.prototype.groupButtonClicked=function(t,e,o){for(var c,l,u=[],p=[],d=[],f=0;f<o.items.length;f++)document.querySelector("#"+e.id+i.A+f)&&document.querySelector("#"+e.id+i.A+f).classList.contains("e-active")&&u.push(o.items[parseInt(f.toString(),10)]);document.querySelector("#"+e.id+i.A+t).classList.contains("e-active")||p.push(o.items[parseInt(t.toString(),10)]);var h={cancel:!1,previousItems:u,selectingItems:p};if(o.items[parseInt(t.toString(),10)].beforeClick&&o.items[parseInt(t.toString(),10)].beforeClick.call(this,h),!h.cancel){if(o.selection===s.d.Single){document.querySelector("#"+e.id+i.A).classList.contains(i.D)&&(document.querySelector("#"+e.id+i.A).classList.remove(i.D),document.querySelector("#"+e.id+i.A).classList.add(i.C));for(var f=0;f<o.items.length;f++)document.querySelector("#"+e.id+i.A+f)&&document.querySelector("#"+e.id+i.A+f).classList.contains("e-active")&&(document.querySelector("#"+e.id+i.A+f).classList.remove("e-active"),o.items[parseInt(f.toString(),10)].setProperties({selected:!1},!0));document.querySelector("#"+e.id+i.A+t).classList.toggle("e-active"),o.items[parseInt(t.toString(),10)].setProperties({selected:!0},!0),document.querySelector("#"+e.id+i.A+t).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&(this.grpBtnIndex=t,c=document.querySelector("#"+e.id),l=n.i(r.getComponent)(c,a.DropDownButton),l.setProperties({iconCss:o.items[parseInt(t.toString(),10)].iconCss}))}else{document.querySelector("#"+e.id+i.A).classList.contains(i.C)&&(document.querySelector("#"+e.id+i.A).classList.remove(i.C),document.querySelector("#"+e.id+i.A).classList.add(i.D)),document.querySelector("#"+e.id+i.A+t).classList.toggle("e-active"),document.querySelector("#"+e.id+i.A+t).classList.contains("e-active")?o.items[parseInt(t.toString(),10)].setProperties({selected:!0},!0):o.items[parseInt(t.toString(),10)].setProperties({selected:!1},!0);for(var b=0,m=0;m<o.items.length;m++)document.querySelector("#"+e.id+i.A+m)&&document.querySelector("#"+e.id+i.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(c=document.querySelector("#"+e.id),l=n.i(r.getComponent)(c,a.DropDownButton),this.isSelected){if(1===b&&!document.querySelector("#"+e.id+i.A+t).classList.contains("e-active"))for(var m=0;m<o.items.length;m++)document.querySelector("#"+e.id+i.A+m)&&document.querySelector("#"+e.id+i.A+m).classList.contains("e-active")&&(v=o.items[parseInt(m.toString(),10)].iconCss)}else document.querySelector("#"+e.id+i.A+t).classList.contains("e-active")&&(v=o.items[parseInt(t.toString(),10)].iconCss);for(;y<o.items.length&&!v;)o.items[parseInt(y.toString(),10)].iconCss&&(v=o.items[parseInt(y.toString(),10)].iconCss),y++;l.setProperties({iconCss:v}),this.grpBtnIndex=t}this.isSelected=!1}document.querySelector("#"+e.id+i.A+t).classList.contains("e-active")&&d.push(o.items[parseInt(t.toString(),10)]);var g={previousItems:u,selectedItems:d};o.items[parseInt(t.toString(),10)].click&&o.items[parseInt(t.toString(),10)].click.call(this,g)}},t.prototype.switchGroupButton=function(t,e){var o=this,l=t.groupButtonSettings,u=null,p=0,d=0;if("Simplified"===this.parent.activeLayout){var f=e.querySelector("#"+t.id+i.A),h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var b=0;b<l.items.length;b++)document.querySelector("#"+t.id+i.A+b)&&(document.querySelector("#"+t.id+i.A+b).classList.contains("e-active")&&l.selection===s.d.Single?u=l.items[parseInt(b.toString(),10)].iconCss:document.querySelector("#"+t.id+i.A+b).classList.contains("e-active")&&l.selection===s.d.Multiple&&(p++,1===p?u=l.items[parseInt(b.toString(),10)].iconCss:p>1&&(u=null)));for(;d<l.items.length&&!u;)l.items[parseInt(d.toString(),10)].iconCss&&(u=l.items[parseInt(d.toString(),10)].iconCss),d++;var m=new a.DropDownButton({iconCss:u,target:f,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h);if(l.header){var v=m.dropDown;this.addGroupButtonHeader(t.id,l,v.element)}h.onclick=h.onkeydown=function(){o.handleFocusState(t,e)},f.onkeydown=function(e){"Simplified"===o.parent.activeLayout&&o.handleGroupButtonNavigation(e,t)},n.i(c.d)(f,this.parent)}else{var y=e.querySelector("#"+t.id),m=n.i(r.getComponent)(y,a.DropDownButton);e.appendChild(m.target),y&&(m.destroy(),n.i(r.remove)(y))}},t.prototype.handleFocusState=function(t,e){if(e.querySelector("#"+t.id).classList.contains("e-active")){var n=document.querySelector("#"+t.id+"_grpbtn").querySelector("."+i.B+".e-active");n?n.focus():document.querySelector("#"+t.id+i.A+0).focus(),this.grpBtnIndex=0}},t.prototype.addGroupButtonHeader=function(t,e,n){var r=this.parent.createElement("div",{className:"e-ribbon-groupbutton-header",id:t+i.E,innerHTML:e.header});n.insertBefore(r,n.firstChild)},t.prototype.handleGroupButtonNavigation=function(t,e){var o=document.querySelector("#"+e.id),s=n.i(r.getComponent)(o,a.DropDownButton),c=s.target,l=!1;"Simplified"===this.parent.activeLayout&&c.closest(".e-ribbon-dropdown-group-button").classList.contains(i.F)&&(l=!0),"Tab"===t.key&&t.preventDefault();var u=e.groupButtonSettings;"ArrowRight"===t.key&&!l||"ArrowDown"===t.key&&l?!this.parent.enableRtl||"ArrowDown"===t.key&&l?(this.grpBtnIndex++,this.grpBtnIndex<u.items.length?document.querySelector("#"+e.id+i.A+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+i.A+this.grpBtnIndex).focus())):0===this.grpBtnIndex?(this.grpBtnIndex=u.items.length-1,document.querySelector("#"+e.id+i.A+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+i.A+this.grpBtnIndex).focus()):("ArrowLeft"===t.key&&!l||"ArrowUp"===t.key&&l)&&(!this.parent.enableRtl||"ArrowUp"===t.key&&l?0===this.grpBtnIndex?(this.grpBtnIndex=u.items.length-1,document.querySelector("#"+e.id+i.A+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+i.A+this.grpBtnIndex).focus()):(this.grpBtnIndex++,this.grpBtnIndex<u.items.length?document.querySelector("#"+e.id+i.A+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+i.A+this.grpBtnIndex).focus())))},t.prototype.addOverFlowEvents=function(t,e,o){var s=this,c=t.groupButtonSettings,l=!0,u=e.querySelector("#"+t.id),p=n.i(r.getComponent)(u,a.DropDownButton);p.setProperties({cssClass:p.cssClass+i.G+i.F,content:c.header?c.header:""});var d=p.target;if(d.children.length){for(var f=0;f<d.children.length;f++)if(c.items[parseInt(f.toString(),10)].content){l=!1;break}l&&d.classList.add("e-icon-btn")}d.onclick=function(){"Simplified"===s.parent.activeLayout&&d.closest(".e-ribbon-dropdown-group-button").classList.contains(i.F)&&(p.toggle(),o.toggle())}},t.prototype.removeOverFlowEvents=function(t,e){var o=e.querySelector("#"+t.id);if(o){var s=n.i(r.getComponent)(o,a.DropDownButton),c=s.target;c.classList.contains("e-icon-btn")&&c.classList.remove("e-icon-btn");var l=s.cssClass.split(i.G);l=l.filter(function(t){return t!==i.F}),s.setProperties({cssClass:l.join(i.G),content:""})}},t.prototype.destroyDropDown=function(t){var e=document.querySelector("#"+t.id);if(e){var i=n.i(r.getComponent)(e,a.DropDownButton);n.i(r.getComponent)(i.target,l.Tooltip).destroy(),i.destroy(),n.i(r.remove)(e)}},t.prototype.updateGroupButtonSize=function(t,e){for(var a,c=e.groupButtonSettings,l=0;l<c.items.length;l++)if(a="Classic"===this.parent.activeLayout?t.querySelector("#"+e.id+i.A+l):document.querySelector("#"+e.id+i.A+l)){var u=n.i(r.getComponent)(a,o.Button);u.setProperties({iconPosition:e.activeSize===s.c.Large?"Top":"Left",content:e.activeSize===s.c.Small?"":c.items[parseInt(l.toString(),10)].content})}},t}())},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(3)),o=(n.n(i),n(2)),s=n(1),a=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 a=this,c=this.parent.createElement("button",{id:t.id});e.appendChild(c);var l=t.splitButtonSettings,u=(s.H+s.G+s.I+s.G+(l.cssClass?l.cssClass:"")).trim(),p=new i.SplitButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===o.d.Large?"Top":"Left",closeActionEvents:l.closeActionEvents,cssClass:u+(t.activeSize===o.d.Large?s.G+s.J:""),disabled:t.disabled,iconCss:l.iconCss,items:l.items,target:l.target,beforeClose:function(t){l.beforeClose&&l.beforeClose.call(a,t)},beforeItemRender:l.beforeItemRender,beforeOpen:l.beforeOpen,close:function(){p.wrapper.classList.remove(s.K),l.close&&l.close.call(a)},created:l.created,open:function(){p.wrapper.classList.add(s.K),l.open&&l.open.call(a)},select:l.select,click:function(t){l.click&&l.click.call(a,t)}},c);l.htmlAttributes&&n.i(o._64)(c,l.htmlAttributes);var d=c.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.L)},this),r.EventHandler.add(f,"mouseleave",function(){f.classList.remove(s.L)},this)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,c=e.querySelector("#"+t.id);c.setAttribute("data-control",t.type.toString());var l=n.i(r.getComponent)(c,i.SplitButton);l.cssClass=l.cssClass+s.G+s.M,l.dataBind();var u=c.parentElement.querySelector(".e-dropdown-btn"),p=u.getAttribute("id"),d=document.querySelector("#"+p+"-popup");u.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),u.click())},d.onkeydown=function(t){"Enter"===t.key&&(t.preventDefault(),l.wrapper.classList.remove("e-ribbon-open"),d.querySelector(".e-focused").click())};var f;l.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(a,e),f=e.event?e.event.target:null},l.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(a,e),o.toggle()},l.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(a,e),l.wrapper.classList.remove(s.K),f&&!f.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var o=this,a=e.querySelector("#"+t.id),c=n.i(r.getComponent)(a,i.SplitButton),l=c.cssClass.split(s.G);l=l.filter(function(t){return t!==s.M}),c.cssClass=l.join(s.G),c.dataBind(),c.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(o,e)},c.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(o,e)},c.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(o,e),c.wrapper.classList.remove(s.K)}},t.prototype.setContent=function(t,e){e.primaryBtnObj.setProperties({content:t.activeSize===o.d.Medium?t.splitButtonSettings.content:""}),e.secondaryBtnObj.setProperties({content:t.activeSize===o.d.Large?t.splitButtonSettings.content:""})},t.prototype.getSplitButtonObj=function(t){var e=n.i(o._58)(this.parent,t);return n.i(r.getComponent)(e,i.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 a=n.i(o._52)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.splitButtonSettings,t);var c=n.i(o._58)(this.parent,e,a);if(c){var l=n.i(r.getComponent)(c,i.SplitButton);t.cssClass&&(t.cssClass=(s.I+s.G+s.H+s.G+t.cssClass).trim(),t.cssClass=a.item.activeSize===o.d.Large?(s.J+s.G+t.cssClass).trim():t.cssClass,l.cssClass=t.cssClass),delete t.open,delete t.click,delete t.close,delete t.beforeClose,l.setProperties(t),t.content&&this.setContent(a.item,l)}}},t.prototype.updateSplitButtonSize=function(t,e){var a=n.i(r.getComponent)(t,i.SplitButton),c=a.cssClass.split(s.G);e.activeSize===o.d.Large?c.push(s.J):c=c.filter(function(t){return t!==s.J}),a.cssClass=c.join(s.G),a.setProperties({iconPosition:e.activeSize===o.d.Large?"Top":"Left"}),this.setContent(e,a)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),i=(n.n(r),n(14)),o=n(15),s=n(6),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)}}(),c=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(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.Property)("auto")],e.prototype,"height",void 0),c([n.i(r.Property)("auto")],e.prototype,"width",void 0),c([n.i(r.Property)(null)],e.prototype,"target",void 0),c([n.i(r.Complex)({},i.a)],e.prototype,"backButton",void 0),c([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),c([n.i(r.Property)("")],e.prototype,"template",void 0),c([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 c});var r=n(0),i=(n.n(r),n(9)),o=(n.n(i),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)}}(),a=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},c=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)},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.Collection)([],i.MenuItem)],e.prototype,"menuItems",void 0),a([n.i(r.Property)(!1)],e.prototype,"showItemOnClick",void 0),a([n.i(r.Complex)({},i.MenuAnimationSettings)],e.prototype,"animationSettings",void 0),a([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),a([n.i(r.Property)("")],e.prototype,"popupTemplate",void 0),a([n.i(r.Complex)({},o.a)],e.prototype,"ribbonTooltipSettings",void 0),a([n.i(r.Event)()],e.prototype,"beforeClose",void 0),a([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),a([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),a([n.i(r.Event)()],e.prototype,"close",void 0),a([n.i(r.Event)()],e.prototype,"open",void 0),a([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(24)),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 i,o=arguments.length,s=o<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 a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=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)},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)([],i.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 i=n(43);n.d(e,"b",function(){return i.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(0),i=(n.n(r),n(9)),o=(n.n(i),n(2)),s=n(8),a=n(1),c=n(7),l=(n.n(c),n(10)),u=(n.n(l),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 u(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+a.a});var n=this.parent.tabObj.element,i=n.querySelector(".e-toolbar");if(n.insertBefore(this.backstageButtonEle,i),this.backstageButton=new c.Button({content:t.text,enableRtl:this.parent.enableRtl,cssClass:a.b,created:function(){n.style.setProperty(a.c,e.backstageButtonEle.offsetWidth+"px")}},this.backstageButtonEle),this.createBackStagePopup(t),this.parent.backStageMenu.template)this.createBackStageTemplate(this.parent.backStageMenu.template);else{for(var o=0,s=0,l=0;l<t.items.length;l++){t.items[parseInt(l.toString(),10)].isFooter?o++:s++}s>0&&this.createBackstageMenu(t,!1),o>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(a.d);var r=e.menuWrapper.querySelector(".e-menu-item.e-selected");r&&r.classList.remove("e-selected");for(var i=0;i<t.items.length;i++){var o=t.items[parseInt(i.toString(),10)];if(!o.isFooter&&e.menuCtrl.items[0].text===o.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,o.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(a.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(a.f)}}},e.prototype.createBackStagePopup=function(t){var e=this;this.popupHTMLElement=this.parent.createElement("div",{id:this.parent.element.id+a.g,className:a.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 l.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:a.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 c.Button({content:t.backButton.text,iconCss:t.backButton.iconCss?t.backButton.iconCss:a.j,enableRtl:this.parent.enableRtl},r),this.menuWrapper.append(r),r.onclick=function(){n.popupHTMLElement.classList.remove(a.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:a.k}),this.menuWrapper.append(this.itemsWrapperEle));var o;e?(o=this.parent.createElement("ul",{id:this.parent.element.id+a.l}),this.itemsWrapperEle.appendChild(o)):(this.ulMenuElem=this.parent.createElement("ul",{id:this.parent.element.id+a.m}),this.itemsWrapperEle.appendChild(this.ulMenuElem)),e?this.footerMenuCtrl=new i.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:a.n,items:this.cloneFooterMenuItem(t.items),select:this.menuSelect.bind(this,t)},o):this.menuCtrl=new i.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:a.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+a.o):this.backstageContentEle=this.parent.createElement("div",{id:t+a.o,className:a.p});var i=n.i(s.b)(e);return n.i(r.append)(i({},this,"backstageContent","backstageContent",this.parent.isStringTemplate),this.backstageContentEle),e&&this.popupHTMLElement.append(this.backstageContentEle),this.renderReactTemplates(),i},e.prototype.createBackStageTemplate=function(t){this.clearTemplate(["backstageTemplate"]),this.backstageTempEle=this.parent.createElement("div",{id:this.parent.element.id+a.a+"_template",className:a.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 i={cancel:!1,target:e.element,item:this.contentItem,isBackButton:this.isBackButtonClicked};this.contentItem.backStageItemClick&&this.contentItem.backStageItemClick.call(this,i)},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)),this.footerMenuCtrl&&this.footerMenuCtrl.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(a.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,i=0,o=0;o<t.items.length;o++){var s=t.items[parseInt(o.toString(),10)];s.isFooter?e++:i++}i>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(a.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(o._50)(this.parent.tooltipData,function(e){return e.id===t.backstageButtonEle.id});-1!==e&&(this.backstageButtonEle.classList.remove(a.e),this.parent.tooltipData.splice(e,1))},e.prototype.addBackstageItems=function(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[parseInt(i.toString(),10)];o.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),a=this.parent.backStageMenu,i=0;i<a.items.length;i++)for(var o=a.items[parseInt(i.toString(),10)],c=0;c<s.length;c++){var l=s[parseInt(c.toString(),10)];if(o.text===l.text){l.content=o.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(a.d)&&this.popupEle.element.classList.remove(a.d),this.popupEle.hide()},e}(r.Component)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),i=(n.n(r),n(3)),o=(n.n(i),n(9)),s=(n.n(o),n(2)),a=n(1),c=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+a.y});var n=this.parent.tabObj.element,r=n.querySelector(".e-toolbar");n.insertBefore(this.ddbElement,r),this.fileMenuDDB=new i.DropDownButton({content:t.text,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-file-menu e-caret-hide",created:function(){n.style.setProperty(a.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(a.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+a.z});this.fileMenuDDB.setProperties({target:n}),this.menuctrl=new o.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(a.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(a.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(a.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 i=n(4);n.n(i);n.o(i,"Inject")&&n.d(e,"Inject",function(){return i.Inject});var o=n(11);n.d(e,"Ribbon",function(){return o.a}),n.d(e,"RibbonLayout",function(){return o.b}),n.d(e,"ItemOrientation",function(){return o.c}),n.d(e,"RibbonItemSize",function(){return o.d}),n.d(e,"DisplayMode",function(){return o.e}),n.d(e,"RibbonItemType",function(){return o.f}),n.d(e,"RibbonGroupButtonSelection",function(){return o.g}),n.d(e,"ITEM_VERTICAL_CENTER",function(){return o.h}),n.d(e,"EXPAND_COLLAPSE_ICON",function(){return o.i}),n.d(e,"BACKSTAGE_CLOSE_ICON",function(){return o.j}),n.d(e,"OVERFLOW_ICON",function(){return o.k}),n.d(e,"VERTICAL_DDB",function(){return o.l}),n.d(e,"DISABLED_CSS",function(){return o.m}),n.d(e,"RTL_CSS",function(){return o.n}),n.d(e,"RIBBON_HOVER",function(){return o.o}),n.d(e,"RIBBON_CONTROL",function(){return o.p}),n.d(e,"RIBBON_POPUP_CONTROL",function(){return o.q}),n.d(e,"RIBBON_POPUP_OPEN",function(){return o.r}),n.d(e,"SPACE",function(){return o.s}),n.d(e,"HORIZONTAL_SCROLLBAR",function(){return o.t}),n.d(e,"HIDE_CSS",function(){return o.u}),n.d(e,"RIBBON_TAB",function(){return o.v}),n.d(e,"RIBBON_TAB_ACTIVE",function(){return o.w}),n.d(e,"RIBBON_TAB_ITEM",function(){return o.x}),n.d(e,"RIBBON_COLLAPSE_BUTTON",function(){return o.y}),n.d(e,"RIBBON_EXPAND_BUTTON",function(){return o.z}),n.d(e,"RIBBON_COLLAPSIBLE",function(){return o.A}),n.d(e,"RIBBON_OVERALL_OF_BUTTON",function(){return o.B}),n.d(e,"RIBBON_GROUP_OF_BUTTON",function(){return o.C}),n.d(e,"RIBBON_OVERFLOW_TARGET",function(){return o.D}),n.d(e,"RIBBON_OVERFLOW",function(){return o.E}),n.d(e,"TAB_CONTENT",function(){return o.F}),n.d(e,"RIBBON_MINIMIZE",function(){return o.G}),n.d(e,"RIBBON_GROUP",function(){return o.H}),n.d(e,"RIBBON_SINGLE_BUTTON_SELECTION",function(){return o.I}),n.d(e,"RIBBON_MULTIPLE_BUTTON_SELECTION",function(){return o.J}),n.d(e,"RIBBON_GROUP_BUTTON",function(){return o.K}),n.d(e,"RIBBON_GROUP_BUTTON_OVERFLOW_POPUP",function(){return o.L}),n.d(e,"RIBBON_GROUP_CONTAINER",function(){return o.M}),n.d(e,"RIBBON_OF_TAB_CONTAINER",function(){return o.N}),n.d(e,"RIBBON_OF_GROUP_CONTAINER",function(){return o.O}),n.d(e,"RIBBON_GROUP_CONTENT",function(){return o.P}),n.d(e,"RIBBON_GROUP_HEADER",function(){return o.Q}),n.d(e,"RIBBON_OVERFLOW_HEADER",function(){return o.R}),n.d(e,"RIBBON_GROUP_OVERFLOW",function(){return o.S}),n.d(e,"RIBBON_GROUP_OVERFLOW_DDB",function(){return o.T}),n.d(e,"RIBBON_LAUNCHER",function(){return o.U}),n.d(e,"RIBBON_LAUNCHER_ICON_ELE",function(){return o.V}),n.d(e,"RIBBON_LAUNCHER_ICON",function(){return o.W}),n.d(e,"RIBBON_COLLECTION",function(){return o.X}),n.d(e,"RIBBON_ITEM",function(){return o.Y}),n.d(e,"RIBBON_ROW",function(){return o.Z}),n.d(e,"RIBBON_COLUMN",function(){return o._0}),n.d(e,"RIBBON_LARGE_ITEM",function(){return o._1}),n.d(e,"RIBBON_MEDIUM_ITEM",function(){return o._2}),n.d(e,"RIBBON_SMALL_ITEM",function(){return o._3}),n.d(e,"RIBBON_CONTENT_HEIGHT",function(){return o._4}),n.d(e,"DROPDOWNBUTTON",function(){return o._5}),n.d(e,"DROPDOWNBUTTON_HIDE",function(){return o._6}),n.d(e,"RIBBON_TEMPLATE",function(){return o._7}),n.d(e,"RIBBON_HELP_TEMPLATE",function(){return o._8}),n.d(e,"RIBBON_TOOLTIP",function(){return o._9}),n.d(e,"RIBBON_TOOLTIP_TARGET",function(){return o._10}),n.d(e,"RIBBON_TOOLTIP_TITLE",function(){return o._11}),n.d(e,"RIBBON_TOOLTIP_CONTENT",function(){return o._12}),n.d(e,"RIBBON_TOOLTIP_ICON",function(){return o._13}),n.d(e,"RIBBON_TOOLTIP_CONTAINER",function(){return o._14}),n.d(e,"RIBBON_TEXT_CONTAINER",function(){return o._15}),n.d(e,"RIBBON_SIMPLIFIED_MODE",function(){return o._16}),n.d(e,"RIBBON_BACKSTAGE_POPUP",function(){return o._17}),n.d(e,"RIBBON_BACKSTAGE_OPEN",function(){return o._18}),n.d(e,"RIBBON_BACKSTAGE_CONTENT",function(){return o._19}),n.d(e,"RIBBON_SELECTED_CONTENT",function(){return o._20}),n.d(e,"RIBBON_BACKSTAGE",function(){return o._21}),n.d(e,"RIBBON_BACKSTAGE_MENU",function(){return o._22}),n.d(e,"RIBBON_BACKSTAGE_TEMPLATE",function(){return o._23}),n.d(e,"RIBBON_BACKSTAGE_MENU_WRAPPER",function(){return o._24}),n.d(e,"RIBBON_BACKSTAGE_ITEMS_WRAPPER",function(){return o._25}),n.d(e,"RIBBON_BACKSTAGE_TEXT_MENU",function(){return o._26}),n.d(e,"TAB_ID",function(){return o._27}),n.d(e,"GROUP_ID",function(){return o._28}),n.d(e,"COLLECTION_ID",function(){return o._29}),n.d(e,"ITEM_ID",function(){return o._30}),n.d(e,"COLLAPSE_BUTTON_ID",function(){return o._31}),n.d(e,"OVRLOF_BUTTON_ID",function(){return o._32}),n.d(e,"GROUPOF_BUTTON_ID",function(){return o._33}),n.d(e,"HEADER_ID",function(){return o._34}),n.d(e,"LAUNCHER_ID",function(){return o._35}),n.d(e,"CONTENT_ID",function(){return o._36}),n.d(e,"CONTAINER_ID",function(){return o._37}),n.d(e,"OVERFLOW_ID",function(){return o._38}),n.d(e,"DROPDOWN_ID",function(){return o._39}),n.d(e,"RIBBON_FILE_MENU_ID",function(){return o._40}),n.d(e,"RIBBON_BACKSTAGE_MENU_ID",function(){return o._41}),n.d(e,"RIBBON_BACKSTAGE_POPUP_ID",function(){return o._42}),n.d(e,"RIBBON_FILE_MENU_LIST",function(){return o._43}),n.d(e,"RIBBON_MENU_LIST",function(){return o._44}),n.d(e,"RIBBON_FOOTER_MENU_LIST",function(){return o._45}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_ID",function(){return o._46}),n.d(e,"RIBBON_GROUP_BUTTON_ID",function(){return o._47}),n.d(e,"RIBBON_FILE_MENU_WIDTH",function(){return o._48}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_WIDTH",function(){return o._49}),n.d(e,"getIndex",function(){return o._50}),n.d(e,"getTemplateFunction",function(){return o._51}),n.d(e,"getItem",function(){return o._52}),n.d(e,"getCollection",function(){return o._53}),n.d(e,"getGroup",function(){return o._54}),n.d(e,"destroyControl",function(){return o._55}),n.d(e,"updateCommonProperty",function(){return o._56}),n.d(e,"updateControlDisabled",function(){return o._57}),n.d(e,"getItemElement",function(){return o._58}),n.d(e,"isTooltipPresent",function(){return o._59}),n.d(e,"setToolTipContent",function(){return o._60}),n.d(e,"createTooltip",function(){return o._61}),n.d(e,"destroyTooltip",function(){return o._62}),n.d(e,"updateTooltipProp",function(){return o._63}),n.d(e,"setCustomAttributes",function(){return o._64}),n.d(e,"RibbonTab",function(){return o._65}),n.d(e,"RibbonGroup",function(){return o._66}),n.d(e,"RibbonCollection",function(){return o._67}),n.d(e,"RibbonItem",function(){return o._68}),n.d(e,"RibbonButtonSettings",function(){return o._69}),n.d(e,"RibbonCheckBoxSettings",function(){return o._70}),n.d(e,"RibbonColorPickerSettings",function(){return o._71}),n.d(e,"RibbonComboBoxSettings",function(){return o._72}),n.d(e,"RibbonDropDownSettings",function(){return o._73}),n.d(e,"RibbonSplitButtonSettings",function(){return o._74}),n.d(e,"FileMenuSettings",function(){return o._75}),n.d(e,"BackStageMenu",function(){return o._76}),n.d(e,"BackstageBackButton",function(){return o._77}),n.d(e,"BackstageItem",function(){return o._78}),n.d(e,"RibbonTooltip",function(){return o._79}),n.d(e,"RibbonGroupButtonSettings",function(){return o._80}),n.d(e,"RibbonGroupButtonItem",function(){return o._81}),n.d(e,"RibbonButton",function(){return o._82}),n.d(e,"RibbonCheckBox",function(){return o._83}),n.d(e,"RibbonColorPicker",function(){return o._84}),n.d(e,"RibbonComboBox",function(){return o._85}),n.d(e,"RibbonDropDown",function(){return o._86}),n.d(e,"RibbonSplitButton",function(){return o._87}),n.d(e,"RibbonGroupButton",function(){return o._88}),n.d(e,"RibbonFileMenu",function(){return o._89}),n.d(e,"RibbonBackstage",function(){return o._90})},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=n(4),i=(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)}}()),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="ribbonCollection",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="collections",e.moduleName="ribbonCollections",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=n(4),i=(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)}}()),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="ribbonGroup",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="groups",e.moduleName="ribbonGroups",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=n(4),i=(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)}}()),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="ribbonItem",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="ribbonItems",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(51),i=(n.n(r),n(11)),o=n(4),s=(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)}}()),a=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}(i.a);n.i(o.applyMixins)(a,[o.ComponentBase,r.Component])},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=n(4),i=(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)}}()),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="ribbonTab",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="tabs",e.moduleName="ribbonTabs",e}(r.ComplexBase)},function(t,e){t.exports=a},function(t,e){t.exports=c}])});
|