@syncfusion/ej2-react-ribbon 25.1.35 → 25.2.3

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 : 25.1.35
3
+ * version : 25.2.3
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("SyncfusionPopups"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSplitbuttons","SyncfusionReactBase","SyncfusionPopups","SyncfusionButtons","SyncfusionNavigations","SyncfusionDropdowns","React","SyncfusionInputs"],e):"object"==typeof exports?exports.SyncfusionReactRibbon=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionPopups"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):t.SyncfusionReactRibbon=e(t.SyncfusionBase,t.SyncfusionSplitbuttons,t.SyncfusionReactBase,t.SyncfusionPopups,t.SyncfusionButtons,t.SyncfusionNavigations,t.SyncfusionDropdowns,t.React,t.SyncfusionInputs)}(this,function(t,e,n,r,i,o,s,a,l){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=52)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.d(e,"P",function(){return r}),n.d(e,"W",function(){return i}),n.d(e,"y",function(){return o}),n.d(e,"X",function(){return s}),n.d(e,"R",function(){return a}),n.d(e,"Y",function(){return l}),n.d(e,"Z",function(){return c}),n.d(e,"T",function(){return u}),n.d(e,"Q",function(){return p}),n.d(e,"U",function(){return d}),n.d(e,"S",function(){return f}),n.d(e,"b",function(){return h}),n.d(e,"O",function(){return b}),n.d(e,"_0",function(){return m}),n.d(e,"_1",function(){return y}),n.d(e,"_2",function(){return g}),n.d(e,"p",function(){return v}),n.d(e,"_3",function(){return S}),n.d(e,"_4",function(){return _}),n.d(e,"_5",function(){return I}),n.d(e,"_6",function(){return C}),n.d(e,"_7",function(){return O}),n.d(e,"_8",function(){return w}),n.d(e,"_9",function(){return k}),n.d(e,"_10",function(){return T}),n.d(e,"_11",function(){return B}),n.d(e,"_12",function(){return P}),n.d(e,"_13",function(){return L}),n.d(e,"_14",function(){return E}),n.d(e,"L",function(){return D}),n.d(e,"M",function(){return x}),n.d(e,"J",function(){return q}),n.d(e,"N",function(){return M}),n.d(e,"K",function(){return R}),n.d(e,"_15",function(){return A}),n.d(e,"_16",function(){return j}),n.d(e,"_17",function(){return G}),n.d(e,"_18",function(){return N}),n.d(e,"_19",function(){return H}),n.d(e,"_20",function(){return W}),n.d(e,"_21",function(){return z}),n.d(e,"V",function(){return K}),n.d(e,"_22",function(){return F}),n.d(e,"_23",function(){return U}),n.d(e,"_24",function(){return V}),n.d(e,"_25",function(){return Y}),n.d(e,"_26",function(){return X}),n.d(e,"_27",function(){return Q}),n.d(e,"_28",function(){return Z}),n.d(e,"_29",function(){return J}),n.d(e,"_30",function(){return $}),n.d(e,"_31",function(){return tt}),n.d(e,"_32",function(){return et}),n.d(e,"_33",function(){return nt}),n.d(e,"_34",function(){return rt}),n.d(e,"_35",function(){return it}),n.d(e,"_36",function(){return ot}),n.d(e,"n",function(){return st}),n.d(e,"o",function(){return at}),n.d(e,"j",function(){return lt}),n.d(e,"m",function(){return ct}),n.d(e,"l",function(){return ut}),n.d(e,"i",function(){return pt}),n.d(e,"k",function(){return dt}),n.d(e,"_37",function(){return ft}),n.d(e,"w",function(){return ht}),n.d(e,"t",function(){return bt}),n.d(e,"E",function(){return mt}),n.d(e,"_38",function(){return yt}),n.d(e,"r",function(){return gt}),n.d(e,"C",function(){return vt}),n.d(e,"F",function(){return St}),n.d(e,"x",function(){return _t}),n.d(e,"z",function(){return It}),n.d(e,"u",function(){return Ct}),n.d(e,"_39",function(){return Ot}),n.d(e,"_40",function(){return wt}),n.d(e,"_41",function(){return kt}),n.d(e,"_42",function(){return Tt}),n.d(e,"_43",function(){return Bt}),n.d(e,"d",function(){return Pt}),n.d(e,"h",function(){return Lt}),n.d(e,"a",function(){return Et}),n.d(e,"_44",function(){return Dt}),n.d(e,"D",function(){return xt}),n.d(e,"I",function(){return qt}),n.d(e,"e",function(){return Mt}),n.d(e,"f",function(){return Rt}),n.d(e,"G",function(){return At}),n.d(e,"q",function(){return jt}),n.d(e,"v",function(){return Gt}),n.d(e,"H",function(){return Nt}),n.d(e,"B",function(){return Ht}),n.d(e,"A",function(){return Wt}),n.d(e,"_45",function(){return zt}),n.d(e,"g",function(){return Kt}),n.d(e,"c",function(){return Ft}),n.d(e,"s",function(){return Ut}),n.d(e,"_46",function(){return Vt});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",l="e-disabled",c="e-rtl",u="e-ribbon-hover",p="e-ribbon-control",d="e-ribbon-popup-control",f="e-ribbon-open",h="e-ribbon-keytip",b=" ",m="e-hscroll-bar",y="e-ribbon-hide",g="e-ribbon-tab",v="e-ribbon-contextual-tab",S="e-ribbon-active",_="e-ribbon-tab-item",I="e-ribbon-collapse-btn",C="e-ribbon-expand-btn",O="e-ribbon-collapsible",w="e-ribbon-overall-of-btn",k="e-ribbon-group-of-btn",T="e-ribbon-overflow-target",B="e-ribbon-overflow",P="e-content",L="e-ribbon-minimize",E="e-ribbon-group",D="e-ribbon-single-selection",x="e-ribbon-multiple-selection",q="e-ribbon-group-button",M="e-ribbon-group-button-overflow-popup",R="e-ribbon-group-button-content",A="e-ribbon-group-container",j="e-ribbon-of-tab",G="e-ribbon-of-group-container",N="e-ribbon-group-content",H="e-ribbon-group-header",W="e-ribbon-overflow-header",z="e-ribbon-group-overflow",K="e-ribbon-group-overflow-ddb",F="e-ribbon-launcher",U="e-ribbon-launcher-icon",V="e-icons e-launcher",Y="e-ribbon-collection",X="e-ribbon-item",Q="e-ribbon-row",Z="e-ribbon-column",J="e-ribbon-large-item",$="e-ribbon-medium-item",tt="e-ribbon-small-item",et="e-ribbon-content-height",nt="e-dropdown-btn",rt="e-caret-hide",it="e-ribbon-template",ot="e-ribbon-help-template",st="e-ribbon-tooltip",at="e-ribbon-tooltip-target",lt="e-ribbon-tooltip-title",ct="e-ribbon-tooltip-content",ut="e-ribbon-tooltip-icon",pt="e-ribbon-tooltip-container",dt="e-ribbon-text-container",ft="e-ribbon-simplified-mode",ht="e-ribbon-backstage-popup",bt="e-ribbon-backstage-open",mt="e-ribbon-backstage-content",yt="e-ribbon-selected-content",gt="e-ribbon-backstage",vt="e-ribbon-backstage-menu",St="e-ribbon-backstage-template",_t="e-ribbon-backstage-wrapper",It="e-ribbon-backstage-items-wrapper",Ct="e-blankicon",Ot="_tab",wt="_group",kt="_collection",Tt="_item",Bt="_collapsebutton",Pt="_sim_ovrl_overflow",Lt="_sim_grp_overflow",Et="_header",Dt="_launcher",xt="_content",qt="_container",Mt="_overflow",Rt="_dropdown",At="_filemenu",jt="_backstage",Gt="_backstagepopup",Nt="_filemenulist",Ht="_menulist",Wt="_footermenulist",zt="_helppanetemplate",Kt="_grpbtn",Ft="_keytip",Ut="--fileMenuWidth",Vt="--helpTemplateWidth"},function(t,e,n){"use strict";var r=n(34);n.d(e,"a",function(){return r.a});var i=n(6);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.P}),n.d(e,"i",function(){return o.W}),n.d(e,"j",function(){return o.y}),n.d(e,"k",function(){return o.X}),n.d(e,"l",function(){return o.R}),n.d(e,"m",function(){return o.Y}),n.d(e,"n",function(){return o.Z}),n.d(e,"o",function(){return o.T}),n.d(e,"p",function(){return o.Q}),n.d(e,"q",function(){return o.U}),n.d(e,"r",function(){return o.S}),n.d(e,"s",function(){return o.b}),n.d(e,"t",function(){return o.O}),n.d(e,"u",function(){return o._0}),n.d(e,"v",function(){return o._1}),n.d(e,"w",function(){return o._2}),n.d(e,"x",function(){return o.p}),n.d(e,"y",function(){return o._3}),n.d(e,"z",function(){return o._4}),n.d(e,"A",function(){return o._5}),n.d(e,"B",function(){return o._6}),n.d(e,"C",function(){return o._7}),n.d(e,"D",function(){return o._8}),n.d(e,"E",function(){return o._9}),n.d(e,"F",function(){return o._10}),n.d(e,"G",function(){return o._11}),n.d(e,"H",function(){return o._12}),n.d(e,"I",function(){return o._13}),n.d(e,"J",function(){return o._14}),n.d(e,"K",function(){return o.L}),n.d(e,"L",function(){return o.M}),n.d(e,"M",function(){return o.J}),n.d(e,"N",function(){return o.N}),n.d(e,"O",function(){return o.K}),n.d(e,"P",function(){return o._15}),n.d(e,"Q",function(){return o._16}),n.d(e,"R",function(){return o._17}),n.d(e,"S",function(){return o._18}),n.d(e,"T",function(){return o._19}),n.d(e,"U",function(){return o._20}),n.d(e,"V",function(){return o._21}),n.d(e,"W",function(){return o.V}),n.d(e,"X",function(){return o._22}),n.d(e,"Y",function(){return o._23}),n.d(e,"Z",function(){return o._24}),n.d(e,"_0",function(){return o._25}),n.d(e,"_1",function(){return o._26}),n.d(e,"_2",function(){return o._27}),n.d(e,"_3",function(){return o._28}),n.d(e,"_4",function(){return o._29}),n.d(e,"_5",function(){return o._30}),n.d(e,"_6",function(){return o._31}),n.d(e,"_7",function(){return o._32}),n.d(e,"_8",function(){return o._33}),n.d(e,"_9",function(){return o._34}),n.d(e,"_10",function(){return o._35}),n.d(e,"_11",function(){return o._36}),n.d(e,"_12",function(){return o.n}),n.d(e,"_13",function(){return o.o}),n.d(e,"_14",function(){return o.j}),n.d(e,"_15",function(){return o.m}),n.d(e,"_16",function(){return o.l}),n.d(e,"_17",function(){return o.i}),n.d(e,"_18",function(){return o.k}),n.d(e,"_19",function(){return o._37}),n.d(e,"_20",function(){return o.w}),n.d(e,"_21",function(){return o.t}),n.d(e,"_22",function(){return o.E}),n.d(e,"_23",function(){return o._38}),n.d(e,"_24",function(){return o.r}),n.d(e,"_25",function(){return o.C}),n.d(e,"_26",function(){return o.F}),n.d(e,"_27",function(){return o.x}),n.d(e,"_28",function(){return o.z}),n.d(e,"_29",function(){return o.u}),n.d(e,"_30",function(){return o._39}),n.d(e,"_31",function(){return o._40}),n.d(e,"_32",function(){return o._41}),n.d(e,"_33",function(){return o._42}),n.d(e,"_34",function(){return o._43}),n.d(e,"_35",function(){return o.d}),n.d(e,"_36",function(){return o.h}),n.d(e,"_37",function(){return o.a}),n.d(e,"_38",function(){return o._44}),n.d(e,"_39",function(){return o.D}),n.d(e,"_40",function(){return o.I}),n.d(e,"_41",function(){return o.e}),n.d(e,"_42",function(){return o.f}),n.d(e,"_43",function(){return o.G}),n.d(e,"_44",function(){return o.q}),n.d(e,"_45",function(){return o.v}),n.d(e,"_46",function(){return o.H}),n.d(e,"_47",function(){return o.B}),n.d(e,"_48",function(){return o.A}),n.d(e,"_49",function(){return o._45}),n.d(e,"_50",function(){return o.g}),n.d(e,"_51",function(){return o.c}),n.d(e,"_52",function(){return o.s}),n.d(e,"_53",function(){return o._46});var s=n(7);n.d(e,"_54",function(){return s.g}),n.d(e,"_55",function(){return s.d}),n.d(e,"_56",function(){return s.a}),n.d(e,"_57",function(){return s.h}),n.d(e,"_58",function(){return s.b}),n.d(e,"_59",function(){return s.i}),n.d(e,"_60",function(){return s.j}),n.d(e,"_61",function(){return s.k}),n.d(e,"_62",function(){return s.l}),n.d(e,"_63",function(){return s.c}),n.d(e,"_64",function(){return s.m}),n.d(e,"_65",function(){return s.f}),n.d(e,"_66",function(){return s.n}),n.d(e,"_67",function(){return s.o}),n.d(e,"_68",function(){return s.e})},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){t.exports=r},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 l});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.Gallery="Gallery",t.Template="Template"}(a||(a={}));var l;!function(t){t.Single="Single",t.Multiple="Multiple"}(l||(l={}))},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(g.select)(t);e=r?"SCRIPT"===r.tagName?r.innerHTML:r.outerHTML:t}catch(n){e=t}return n.i(g.compile)(e)}return n.i(g.compile)(t)}function o(t,e,n){for(var r=0;r<t.length;r++)for(var i=t[parseInt(r.toString(),10)],o=0;o<i.groups.length;o++)for(var s=i.groups[parseInt(o.toString(),10)],a=0;a<s.collections.length;a++)for(var l=s.collections[parseInt(a.toString(),10)],c=0;c<l.items.length;c++){var u=l.items[parseInt(c.toString(),10)];if(e&&u.id===e||n&&u.type===n)return{item:u,collection:l,group:s,tabIndex:r,groupIndex:o,collectionIndex:a,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 l(t,e){n.i(g.getComponent)(t,e).destroy()}function c(t,e,r){n.i(g.getComponent)(t,e).setProperties(r)}function u(t,e,r){n.i(g.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===S.a.Classic)return r.item.displayOptions&S.b.Classic?(i=r.group.isCollapsed?t.ribbonDropDownModule.getOverflowDropDownPopup(r,i):i,i.querySelector("#"+e)):null;var s=r.item.displayOptions&S.b.Simplified?i.querySelector("#"+r.item.id):null;if(!s){s=(r.group.enableGroupOverflow?n.i(g.getComponent)(i.querySelector("#"+r.group.id+_.h),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?_.i+"_"+o.id:_.i});if(e.element.append(s),o.title){var a=e.createElement("div",{innerHTML:o.title,className:_.j});s.appendChild(a)}var l=e.createElement("div",{className:_.k});if(s.appendChild(l),o.iconCss){var c=e.createElement("div",{className:o.iconCss+" "+_.l});l.appendChild(c)}if(o.content){var u=e.createElement("div",{innerHTML:o.content,className:_.m});l.appendChild(u)}e.setProperties({content:s,cssClass:o.cssClass?o.cssClass+" "+_.n:_.n})}function h(t,e){function n(t){f(t,r,e.tooltipData)}var r=new v.Tooltip({target:"."+_.o,beforeRender:n.bind(this),windowCollision:!0});r.appendTo(t)}function b(t){n.i(g.getComponent)(t,v.Tooltip).destroy()}function m(t,e){n.i(g.getComponent)(t,v.Tooltip).setProperties(e)}function y(t,e){for(var r in e)if("class"===r){var i=e.class.replace(/\s+/g," ").trim();i&&n.i(g.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.g=r,e.d=i,e.a=o,e.h=s,e.b=a,e.i=l,e.j=c,e.k=u,e.l=p,e.c=d,e.m=f,e.f=h,e.n=b,e.o=m,e.e=y;var g=n(0),v=(n.n(g),n(5)),S=(n.n(v),n(6)),_=n(1),I=n(3);n.n(I)},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=i},function(t,e){t.exports=o},function(t,e,n){"use strict";var r=n(33);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}),n.d(e,"_91",function(){return r._91}),n.d(e,"_92",function(){return r._92}),n.d(e,"_93",function(){return r._93}),n.d(e,"_94",function(){return r._94}),n.d(e,"_95",function(){return r._95}),n.d(e,"_96",function(){return r._96}),n.d(e,"_97",function(){return r._97}),n.d(e,"_98",function(){return r._98}),n.d(e,"_99",function(){return r._99}),n.d(e,"_100",function(){return r._100}),n.d(e,"_101",function(){return r._101})},function(t,e,n){"use strict";var r=n(36);n.d(e,"a",function(){return r.a});var i=n(37);n.d(e,"b",function(){return i.a});var o=n(38);n.d(e,"c",function(){return o.a});var s=n(39);n.d(e,"d",function(){return s.a});var a=n(40);n.d(e,"e",function(){return a.a});var l=n(43);n.d(e,"f",function(){return l.a});var c=n(42);n.d(e,"g",function(){return c.a});var u=n(41);n.d(e,"h",function(){return u.a})},function(t,e,n){"use strict";var r=n(30);n.d(e,"a",function(){return r.a});var i=n(27);n.d(e,"b",function(){return i.a});var o=n(18);n.d(e,"c",function(){return o.a});var s=n(28);n.d(e,"d",function(){return s.a});var a=n(16);n.d(e,"e",function(){return a.a});var l=n(17);n.d(e,"f",function(){return l.a});var c=n(19);n.d(e,"g",function(){return c.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(29);n.d(e,"j",function(){return d.a});var f=n(46);n.d(e,"k",function(){return f.a});var h=n(44);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 y=n(8);n.d(e,"o",function(){return y.a});var g=n(26);n.d(e,"p",function(){return g.a});var v=n(25);n.d(e,"q",function(){return v.a});var S=n(45);n.d(e,"r",function(){return S.a});var _=n(22);n.d(e,"s",function(){return _.a});var I=n(23);n.d(e,"t",function(){return I.a});var C=n(24);n.d(e,"u",function(){return C.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,"keyTip",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(28)),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(31)),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(23)),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.Collection)([],i.a)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),s([n.i(r.Property)("auto")],e.prototype,"itemWidth",void 0),s([n.i(r.Property)("auto")],e.prototype,"itemHeight",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",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,"content",void 0),o([n.i(r.Property)("")],e.prototype,"iconCss",void 0),o([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),o([n.i(r.Property)("")],e.prototype,"cssClass",void 0),o([n.i(r.Property)(!1)],e.prototype,"disabled",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.Collection)([],i.a)],e.prototype,"groups",void 0),s([n.i(r.Property)(3)],e.prototype,"itemCount",void 0),s([n.i(r.Property)(null)],e.prototype,"selectedItemIndex",void 0),s([n.i(r.Property)("auto")],e.prototype,"popupHeight",void 0),s([n.i(r.Property)("auto")],e.prototype,"popupWidth",void 0),s([n.i(r.Property)("")],e.prototype,"template",void 0),s([n.i(r.Property)("")],e.prototype,"popupTemplate",void 0),s([n.i(r.Event)()],e.prototype,"popupOpen",void 0),s([n.i(r.Event)()],e.prototype,"popupClose",void 0),s([n.i(r.Event)()],e.prototype,"itemHover",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeSelect",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(8)),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.Property)("")],e.prototype,"keyTip",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(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),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.Property)("")],e.prototype,"keyTip",void 0),s([n.i(r.Property)("")],e.prototype,"launcherIconKeyTip",void 0),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 m});var r=n(0),i=(n.n(r),n(6)),o=n(16),s=n(17),a=n(19),l=n(20),c=n(21),u=n(29),p=n(8),d=n(26),f=n(24),h=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)}}(),b=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},m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},b([n.i(r.Property)("")],e.prototype,"keyTip",void 0),b([n.i(r.Property)(i.c.Medium)],e.prototype,"activeSize",void 0),b([n.i(r.Property)(i.c.Small|i.c.Medium|i.c.Large)],e.prototype,"allowedSizes",void 0),b([n.i(r.Property)("")],e.prototype,"id",void 0),b([n.i(r.Property)("")],e.prototype,"cssClass",void 0),b([n.i(r.Property)(!1)],e.prototype,"disabled",void 0),b([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),b([n.i(r.Property)("Button")],e.prototype,"type",void 0),b([n.i(r.Property)(i.b.Auto)],e.prototype,"displayOptions",void 0),b([n.i(r.Complex)({},p.a)],e.prototype,"ribbonTooltipSettings",void 0),b([n.i(r.Complex)({},o.a)],e.prototype,"buttonSettings",void 0),b([n.i(r.Complex)({},c.a)],e.prototype,"dropDownSettings",void 0),b([n.i(r.Complex)({},s.a)],e.prototype,"checkBoxSettings",void 0),b([n.i(r.Complex)({},a.a)],e.prototype,"colorPickerSettings",void 0),b([n.i(r.Complex)({},l.a)],e.prototype,"comboBoxSettings",void 0),b([n.i(r.Complex)({},u.a)],e.prototype,"splitButtonSettings",void 0),b([n.i(r.Complex)({},d.a)],e.prototype,"groupButtonSettings",void 0),b([n.i(r.Complex)({},f.a)],e.prototype,"gallerySettings",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,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(27)),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,"keyTip",void 0),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){t.exports=s},function(t,e,n){"use strict";var r=n(58);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var i=n(55);n.d(e,"c",function(){return i.a}),n.d(e,"d",function(){return i.b});var o=n(53);n.d(e,"e",function(){return o.a}),n.d(e,"f",function(){return o.b});var s=n(56);n.d(e,"g",function(){return s.a}),n.d(e,"h",function(){return s.b});var a=n(54);n.d(e,"i",function(){return a.a}),n.d(e,"j",function(){return a.b});var l=n(57);n.d(e,"k",function(){return l.a})},function(t,e,n){"use strict";var r=n(35);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}),n.d(e,"_91",function(){return r._91}),n.d(e,"_92",function(){return r._92}),n.d(e,"_93",function(){return r._93}),n.d(e,"_94",function(){return r._94}),n.d(e,"_95",function(){return r._95}),n.d(e,"_96",function(){return r._96}),n.d(e,"_97",function(){return r._97}),n.d(e,"_98",function(){return r._98}),n.d(e,"_99",function(){return r._99}),n.d(e,"_100",function(){return r._100}),n.d(e,"_101",function(){return r._101})},function(t,e,n){"use strict";n.d(e,"a",function(){return b});var r=n(0),i=(n.n(r),n(10)),o=(n.n(i),n(13)),s=n(6),a=n(12),l=n(7),c=n(1),u=n(5),p=(n.n(u),n(3)),d=(n.n(p),n(9)),f=(n.n(d),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(e,n){return b.Inject(a.a,a.b,a.e,a.f,a.d,a.g),t.call(this,e,n)||this}f(e,t),b=e,e.prototype.render=function(){this.initialize()},e.prototype.preRender=function(){this.keysPress="",this.idIndex=0,this.tooltipData=[],this.initialPropsData={},this.hiddenElements={},this.keyTipElements={},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=[];t.push({member:"ribbonButton",args:[this],name:"RibbonButton"},{member:"ribbonDropDown",args:[this],name:"RibbonDropDown"},{member:"ribbonSplitButton",args:[this],name:"RibbonSplitButton"},{member:"ribbonCheckBox",args:[this],name:"RibbonCheckBox"},{member:"ribbonComboBox",args:[this],name:"RibbonComboBox"},{member:"ribbonGroupButton",args:[this],name:"RibbonGroupButton"});var e=n.i(l.a)(this.tabs,null,s.f.ColorPicker),r=n.i(l.a)(this.tabs,null,s.f.Gallery);return e&&t.push({member:"ribbonColorPicker",args:[this],name:"RibbonColorPicker"}),r&&t.push({member:"ribbonGallery",args:[this],name:"RibbonGallery"}),(this.backStageMenu.visible||this.backStageMenu.items.length)&&t.push({member:"ribbonBackstage",args:[this],name:"RibbonBackstage"}),(this.fileMenu.visible||this.fileMenu.menuItems.length)&&t.push({member:"ribbonFileMenu",args:[this],name:"RibbonFileMenu"}),this.contextualTabs.length&&t.push({member:"ribbonContextualTab",args:[this],name:"RibbonContextualTab"}),this.enableKeyTips&&t.push({member:"ribbonKeyTip",args:[this],name:"RibbonKeyTip"}),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(c.O):[])),this.enableRtl&&this.element.classList.add(c.Z),this.element.style.width=n.i(r.formatUnit)(this.width),this.renderTabs(),this.ribbonContextualTabModule&&this.ribbonContextualTabModule.addContextualTabs(),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.createFileMenu(this.fileMenu),this.ribbonBackstageModule&&this.ribbonBackstageModule.createBackStage(this.backStageMenu),this.createHelpPaneTemplate(),this.tabObj.tbObj.refreshOverflow(),this.addTabOverflowKeyTip(),n.i(l.f)(this.element,this),this.isKeytipOpen=!1,this.wireEvents(),this.wireKeyboardEvent(),this.currentControlIndex=0},e.prototype.wireEvents=function(){r.EventHandler.add(window,"resize",this.resizeHandler,this),r.EventHandler.add(document.body,"keydown",this.keytipActionHandler,this),r.EventHandler.add(document,"mousedown",this.mouseEventHandler,this),r.EventHandler.add(document,"scroll",this.mouseEventHandler,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+c.D),r=Array.prototype.slice.call(n.querySelectorAll(".e-control")),i=Array.prototype.slice.call(n.querySelectorAll(".e-ribbon-template")),o=Array.prototype.slice.call(n.querySelectorAll(".e-ribbon-gallery-item")),s=r.concat(i,o),a=n.querySelectorAll(".e-combobox");if(a)for(var l=0;l<a.length;l++)a[parseInt(l.toString(),10)].closest(".e-input-focus")&&(e=a[parseInt(l.toString(),10)]);if(e)for(var l=0;l<s.length;l++)s[parseInt(l.toString(),10)].classList.contains("e-combobox")&&s[parseInt(l.toString(),10)].closest(".e-input-focus")&&(this.currentControlIndex=l);if(0===this.currentControlIndex)for(var u=s[this.currentControlIndex].closest(".e-ribbon-item");u&&u.classList.contains("e-disabled");)this.currentControlIndex++,u=s[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")||t.target.classList.contains("e-ribbon-gallery-item"))switch(t.action){case"rightarrow":this.handleNavigation(t,!this.enableRtl,s);break;case"leftarrow":this.handleNavigation(t,this.enableRtl,s);break;case"tab":t.target.classList.contains("e-combobox")&&this.currentControlIndex<s.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-gallery-item"))&&!t.target.classList.contains("e-ribbon-last-item")){if(e)this.currentControlIndex++;else{var o=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+c._15);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("."+c._15),e){var a=void 0;if(r&&(a=r.querySelector(".e-ribbon-launcher-icon")),a){var l=r.querySelectorAll(".e-ribbon-item"),u=l[l.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("."+c._15),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("."+c._15);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+c.D);if(this.checkOverflow(this.selectedTab,t),this.scrollModule){var e=this.tabObj.element.querySelector("."+c._0);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)],p.DropDownButton);s.toggle()}}var a=document.querySelector(".e-ribbon-gallery-popup.e-popup-open");if(a){n.i(r.getComponent)(a,u.Popup).hide()}this.ribbonKeyTipModule&&this.enableKeyTips&&this.ribbonKeyTipModule.removeKeytip()},e.prototype.mouseEventHandler=function(t){this.ribbonKeyTipModule&&this.enableKeyTips&&this.ribbonKeyTipModule.removeKeytip()},e.prototype.keytipActionHandler=function(t){if(this.enableKeyTips){var e=!1,i=t.key;if(t.altKey&&"Meta"===t.key){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 s=0;s<o.length;s++){n.i(r.getInstance)(o[parseInt(s.toString(),10)],p.DropDownButton).toggle()}this.ribbonKeyTipModule.removeKeytip()}else if(this.isKeytipOpen)this.ribbonKeyTipModule.removeKeytip();else{var a=document.querySelector(".e-ribbon-backstage-popup");a&&a.classList.contains("e-popup-open")&&this.ribbonBackstageModule.hideBackstage(),this.ribbonKeyTipModule.createKeytip("tab")}}else if("Escape"===t.key||"Tab"===t.key||"ArrowLeft"===t.key||"ArrowUp"===t.key||"ArrowRight"===t.key||"ArrowDown"===t.key)this.ribbonKeyTipModule.removeKeytip(t.key);else{var l=document.querySelectorAll(".e-ribbon-keytip");if(l){for(var s=0;s<l.length;s++){var c=l[parseInt(s.toString(),10)];if(c.innerHTML.toLowerCase()===i){e=!0,this.ribbonKeyTipModule.keytipPress(i);break}}e||this.checkKeyTipPresent(i,this.keysPress.length)}}}},e.prototype.checkKeyTipPresent=function(t,e){for(var n=document.querySelectorAll(".e-ribbon-keytip"),r=0;r<n.length;r++){var i=n[parseInt(r.toString(),10)];if(i.innerHTML.length>1&&i.innerHTML[parseInt(e.toString(),10)].toLowerCase()===t){this.keysPress+=t,this.ribbonKeyTipModule.keytipPress(this.keysPress),this.removeKeytip(this.keysPress);break}}},e.prototype.removeKeytip=function(t){for(var e=document.querySelectorAll(".e-ribbon-keytip"),i=0;i<e.length;i++){var o=e[parseInt(i.toString(),10)];o.innerHTML[0].toLowerCase()!==t&&""!==t&&n.i(r.remove)(o)}},e.prototype.addKeyTip=function(t,e,n,r){if(this.keyTipElements&&this.keyTipElements[parseInt(t.toString(),10)]){var i=!1;if(this.keyTipElements[parseInt(t.toString(),10)][r]||(this.keyTipElements[parseInt(t.toString(),10)][r]=[]),Object.keys(this.keyTipElements[t][r]).length){for(var o=this.keyTipElements[t][r],s=0;s<Object.keys(this.keyTipElements[t][r]).length;s++)o[parseInt(s.toString(),10)].id===n&&(i=!0);i||this.keyTipElements[t][r].push({id:n,type:r,keyTip:e})}else this.keyTipElements[t][r].push({id:n,type:r,keyTip:e})}},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+c._39});this.element.appendChild(t),this.validateItemSize();var e=this.createTabItems(this.tabs);this.tabObj=new i.Tab({cssClass:c._2,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(c.s,"0px"),this.element.style.setProperty(c._46,"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"](c._13)},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(c._13,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){t.preventFocus=!0,this.isAddRemove=!1;var e=t.selectedItem.getAttribute("data-id"),r=n.i(l.g)(this.tabs,function(t){return t.id===e});r=-1===r?this.selectedTab:r;var i=this.isContextualTab(e);this.updateSelectedState(e);var o={previousIndex:this.selectedTab,selectedIndex:r,isContextual:i};if(this.setProperties({selectedTab:r},!0),this.calculateHiddenElementsWidth(r),this.checkOverflow(r,t.selectedContent.firstChild),"Classic"===this.activeLayout&&this.ribbonGalleryModule&&this.ribbonGalleryModule.checkAvailableHeight(r,t.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var s=this.overflowDDB.target,a=s.querySelector("."+c._3);a&&a.classList.remove(c._3);var u=s.querySelector("#"+e+c.e);u?(u.classList.add(c._3),this.overflowDDB.element.classList.remove(c._1),this.checkOverflowHiddenItems(!1,r)):this.overflowDDB.element.classList.add(c._1)}this.trigger("tabSelected",o)},e.prototype.updateSelectedState=function(t){if(this.contextualTabs.length)for(var e=0;e<this.contextualTabs.length;e++){for(var n=!1,r=0;r<this.contextualTabs[parseInt(e.toString(),10)].tabs.length;r++)if(this.contextualTabs[parseInt(e.toString(),10)].tabs[parseInt(r.toString(),10)].id===t){n=!0;break}this.contextualTabs[parseInt(e.toString(),10)].setProperties({isSelected:n},!0)}},e.prototype.checkOverflow=function(t,e){var n=e.closest("."+c._12),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("."+c._12)))}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);this.addTabOverflowKeyTip()},e.prototype.addTabOverflowKeyTip=function(){var t=this.tabObj.element.querySelector("#_nav");t?(this.keyTipElements.taboverflow=[],this.keyTipElements.taboverflow.push({id:t.id,type:"taboverflow",keyTip:"00"})):delete this.keyTipElements.taboverflow},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+c.I),l=0;l<o.collections.length&&e.offsetWidth<n.offsetWidth;l++)for(var u=o.collections[parseInt(l.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+c.I);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+c.I),l=0;l<o.collections.length&&e.offsetWidth>n.offsetWidth;l++)for(var u=o.collections[parseInt(l.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+c.I);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 l=!1,u=o[parseInt(a.toString(),10)],p=t.querySelector("#"+u.id),d=p.querySelector("#"+u.id+c.I),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 y=h.items[m-1],g=b.querySelector("#"+y.id+c.I);if((y.displayOptions===s.b.Auto||y.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(g)){var v=!1,S=!1,_=!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")?(_=!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)):(v=!0,p.classList.remove("e-hidden")),l||(this.calculateOverflowItemsWidth(p.offsetWidth,!1,i),this.calculateMediumDataWidth(p.offsetWidth,i,!1),l=!0)}else g.classList.contains("e-hidden")&&(S=!0,g.classList.remove("e-hidden"),p.classList.contains("e-ribbon-emptyCollection")&&(I=!0,p.classList.remove("e-ribbon-emptyCollection")),this.calculateOverflowItemsWidth(g.offsetWidth,!1,i),this.calculateMediumDataWidth(g.offsetWidth,i,!1));if(g.setAttribute("data-simplified-width",e.offsetWidth.toString()),S&&g.classList.add("e-hidden"),C&&C.length)for(var w=0;w<C.length;w++)C[parseInt(w.toString(),10)].classList.add("e-hidden");if(v&&p.classList.add("e-hidden"),_&&(p.classList.add("e-hide-group"),p.classList.add("e-ribbon-emptyCollection")),I&&p.classList.add("e-ribbon-emptyCollection"),this.createOverflowPopup(y,i,u.enableGroupOverflow,u.id,u.header,g,d,!0),y.activeSize===s.c.Small){var k=g.querySelector("#"+y.id);y.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(k,y)}y.type!==s.f.DropDown&&y.type!==s.f.SplitButton&&y.type!==s.f.GroupButton&&y.type!==s.f.Gallery||this.updatePopupItems(y,g,u.enableGroupOverflow,!0)}}u.enableGroupOverflow||p.querySelector("."+c._26)||p.classList.add("e-ribbon-emptyCollection");var T=p.querySelectorAll("."+c._26);T&&!u.enableGroupOverflow&&this.checkEmptyCollection(T)&&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.Gallery||t.type===s.f.GroupButton?p.DropDownButton:p.SplitButton),l=a.dropDown,c=(i&&o)===this.enableRtl;l&&(l.setProperties({position:{X:c?"left":"right",Y:o?"top":"bottom"}},!0),o?a.beforeOpen=function(){c&&(l.element.style.setProperty("visibility","hidden"),l.element.style.setProperty("display","block"),l.setProperties({offsetX:-1*l.element.offsetWidth}),l.element.style.removeProperty("display"),l.element.style.removeProperty("visibility"))}:(l.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),l=!0,u=0;u<a.length&&l;u++){var d=a[parseInt(u.toString(),10)],f=void 0,h=void 0;if(d.enableGroupOverflow){var b=t.querySelector("#"+d.id+c.h);b&&(f=n.i(r.getInstance)(b,p.DropDownButton),h=f.target)}else f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null;for(var m=0;m<d.collections.length&&l;m++)for(var y=d.collections[parseInt(m.toString(),10)],g=0;g<y.items.length&&l&&!o&&t.offsetWidth>e.offsetWidth;g++){var v=y.items[parseInt(g.toString(),10)],S=void 0;if(h&&(S=h.querySelector("#"+v.id+c.I)),(v.displayOptions===s.b.Auto||v.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(S)){var _=parseInt(S.getAttribute("data-simplified-width"),10),I=t.querySelector("#"+d.id);if((S.classList.contains("e-hidden")||I.classList.contains("e-hidden"))&&(_=Math.abs(_-e.offsetWidth)),!o&&t.offsetWidth<_){l=!1;break}var C=t.querySelector("#"+y.id);if(v.type!==s.f.DropDown&&v.type!==s.f.SplitButton&&v.type!==s.f.GroupButton&&v.type!==s.f.Gallery||this.updatePopupItems(v,S,d.enableGroupOverflow,!1),C.append(S),S.classList.contains("e-hidden")||I.classList.contains("e-hidden")){S.setAttribute("data-simplified-width",_.toString());var O=!1,w=0;S.classList.contains("e-hidden")&&(S.classList.remove("e-hidden"),I.classList.contains("e-hide-group")&&(O=!0,w=this.checkWidthDifference(S,I)),_=S.offsetWidth+w,S.classList.add("e-hidden")),this.calculateOverflowItemsWidth(_,!0,i),this.calculateMediumDataWidth(_,i,!0),O&&(I.classList.add("e-hide-group"),I.classList.add("e-ribbon-emptyCollection"))}this.removeOverflowEvent(v,S),v.allowedSizes&s.c.Small&&(v.setProperties({activeSize:s.c.Small},!0),this.setItemSize(S.querySelector("#"+v.id),v));var k=t.querySelector("#"+d.id),T=k.querySelector("."+c._26);if(k.classList.contains("e-ribbon-emptyCollection")&&null!==T){var B=k.querySelectorAll("."+c._26);B&&(this.checkEmptyCollection(B)||k.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 P=h.querySelector("#"+d.id+c.I);P&&1===P.childElementCount&&P.remove();var L=h.querySelector("#"+this.tabs[parseInt(i.toString(),10)].id+c.e);L&&0===L.childElementCount&&(L.remove(),this.overflowDDB.element.classList.add(c._1))}}for(var u=0;u<a.length;u++)this.checkOverflowHiddenItems(a[parseInt(u.toString(),10)].enableGroupOverflow,i,a[parseInt(u.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+c.h);if(o){for(var s=n.i(r.getInstance)(o,p.DropDownButton),a=s.target,l=a.querySelectorAll(".e-ribbon-item"),u=!0,d=0;d<l.length;d++)if(!l[parseInt(d.toString(),10)].classList.contains("e-hidden")){u=!1;break}s.element.classList[u?"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+c.e);if(m){for(var y=0;y<m.children.length;y++){h=!0;for(var g=m.children[parseInt(y.toString(),10)],v=g.querySelectorAll(".e-ribbon-item"),S=0;S<v.length;S++)if(!v[parseInt(S.toString(),10)].classList.contains("e-hidden")){h=!1;break}g.classList[h?"add":"remove"]("e-hide-group"),g.classList.contains("e-hide-group")||g.classList.contains("e-hidden")||(f=!1)}this.overflowDDB.element.classList[f?"add":"remove"](c._1)}}},e.prototype.createOverflowPopup=function(t,e,i,o,s,a,u,d){var f,h,b=n.i(l.b)(this.tabs,o),m=this.tabObj.items[parseInt(e.toString(),10)].content,y=m.querySelector("#"+o);if(i){var g=u.querySelector("#"+o+c.h);g?f=n.i(r.getInstance)(g,p.DropDownButton):(f=this.addOverflowButton(o+c.h,i),f.element.classList.add(c._9),u.appendChild(f.element)),this.addKeyTip(e,"0"+(b.groupIndex+1),f.element.id,"grpofbtn"),h=f.target;var v=f.target;if(!v.querySelector("#"+o+c.h+c.a)&&b.group.overflowHeader){var S=this.createElement("div",{className:c._20,id:o+c.h+c.a,innerHTML:b.group.overflowHeader});v.append(S)}y&&(y.classList.contains("e-disabled")&&v.classList.add("e-disabled"),y.classList.contains("e-hidden")&&v.classList.add("e-hidden"),y.classList.contains("e-hide-group")&&v.classList.add("e-hide-group")),d?v.insertBefore(a,v.querySelector("."+c._26)):v.append(a)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(c._1);var _=this.overflowDDB.target,I=_.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+c.e);if(I){var C=_.querySelector("#"+o+c.I);C||(C=b.group.overflowHeader?this.createGroupContainer(o,b.group.overflowHeader):this.createGroupContainer(o,s),y&&(y.classList.contains("e-disabled")&&C.classList.add("e-disabled"),y.classList.contains("e-hidden")&&C.classList.add("e-hidden"),y.classList.contains("e-hide-group")&&C.classList.add("e-hide-group")),I.append(C)),d?C.insertBefore(a,C.querySelector("."+c._26)):C.append(a)}else this.createOfTabContainer(o,s,a,e)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+c.d,i),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(c._8),this.createOfTabContainer(o,s,a,e);f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null}null!==a&&this.addOverflowEvents(t,a,f),h&&t.keyTip&&this.addKeyTip(e,t.keyTip,t.id,"popupitem")},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"Gallery":"Simplified"===this.activeLayout&&this.ribbonGalleryModule.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+c.e,className:c._16});this.overflowDDB.target.append(o);var s=n.i(l.b)(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(c._3);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 l=e.groups[parseInt(n.toString(),10)];if(l.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"+c.O+c._27,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 l=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[0],u=i.querySelector("#"+l.items[parseInt(e.toString(),10)].id+c.I),p=o?i.querySelector("#"+l.id+"_shrink_container"+e):d(l.id,u,e,r),f=e;f<=r;f++){var h=l.items[parseInt(f.toString(),10)];if(h.displayOptions&s.b.Classic){var b=i.querySelector("#"+h.id+c.I);p.appendChild(b),h.setProperties({activeSize:s.c.Medium},!0),h.type===s.f.GroupButton&&"Classic"===a.activeLayout?a.setItemSize(b.querySelector("#"+h.id+c.g),h):a.setItemSize(b.querySelector("#"+h.id),h)}}},h=function(e,r){for(var l=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)],u=i.querySelector("#"+l.collections[parseInt(e.toString(),10)].id),p=o?i.querySelector("#"+l.id+"_shrink_container"+e):d(l.id,u,e,r),f=e;f<=r;f++){var h=l.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+c.g),h.items[0]):a.setItemSize(b.querySelector("#"+h.items[0].id),h.items[0])}};if(l.orientation===s.e.Column)for(var b=l.collections.length-1;b>0;b--){b=this.checkClassicCollection(l.collections,b,!1);var m=b-1;if(m>=0&&u(l.collections[parseInt(b.toString(),10)]))if((m=this.checkClassicCollection(l.collections,m,!1))>=0&&u(l.collections[parseInt(m.toString(),10)])){var y=m-1;if(y>=0&&(y=this.checkClassicCollection(l.collections,y,!1)),y>=0&&u(l.collections[parseInt(y.toString(),10)])?h(y,b):h(m,b),b=y,!o&&r.offsetWidth>i.offsetWidth)return!0}else b=m}else if(this.checkValidCollectionLength(l.collections))for(var g=l.collections[0],b=g.items.length-1;b>0;b--){b=this.checkClassicItem(g.items,b,!1);var m=b-1;if(m>=0&&p(g.items[parseInt(b.toString(),10)]))if((m=this.checkClassicItem(g.items,m,!1))>=0&&p(g.items[parseInt(m.toString(),10)])){var y=m-1;if(y>=0&&(y=this.checkClassicItem(g.items,y,!1)),y>=0&&p(g.items[parseInt(y.toString(),10)])?f(y,b):f(m,b),b=y,!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 l=e.groups[parseInt(n.toString(),10)];if(l.isCollapsed&&!o)return!1;var u=l.orientation,p=i.querySelector("#"+l.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,l){void 0===l&&(l=null);var c=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],u=function(t){var e=c.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),l&&u(l),u(o)},b=function(e,r,l,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+c.g)),a.setItemSize(n,e.items[0])}};f(r),u&&f(u),f(l)},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 y=d.length-1;y>=0;y--){var g=parseInt(d[parseInt(y.toString(),10)].getAttribute("data-start"),10),v=parseInt(d[parseInt(y.toString(),10)].getAttribute("data-end"),10),S=this.checkClassicCollection(l.collections,g+1,!1);if(f(l.collections[parseInt(g.toString(),10)].items[0])&&f(l.collections[parseInt(S.toString(),10)].items[0])&&(v===S?b(y,g,v):f(l.collections[parseInt(v.toString(),10)].items[0])&&b(y,g,v,S),!o&&r.offsetWidth>i.offsetWidth))return!0}for(var y=l.collections.length-1;y>=0;y--){for(var _=l.collections[parseInt(y.toString(),10)],I=[],C=0;C<_.items.length;C++)_.items[parseInt(C.toString(),10)].displayOptions&s.b.Classic&&I.push(C);if(I.length>1&&f(_.items[I[0]])&&f(_.items[I[1]])&&(2===I.length?(m(_.id),h(y,I[0],I[1])):f(_.items[I[2]])&&(m(_.id),h(y,I[0],I[2],I[1])),!o&&r.offsetWidth>i.offsetWidth))return!0}}else if(this.checkValidCollectionLength(l.collections)){if(d.length>0)for(var y=d.length-1;y>=0;y--){var O=d[parseInt(y.toString(),10)],g=parseInt(O.getAttribute("data-start"),10),v=parseInt(O.getAttribute("data-end"),10),_=l.collections[0],S=this.checkClassicItem(_.items,g+1,!1);if(f(l.collections[0].items[parseInt(g.toString(),10)])&&f(l.collections[0].items[parseInt(S.toString(),10)])&&(v===S?(m(O.id),h(0,g,v)):f(l.collections[0].items[parseInt(v.toString(),10)])&&(m(O.id),h(0,g,v,S)),!o&&r.offsetWidth>i.offsetWidth))return!0}}else for(var y=l.collections.length-1;y>=0;y--)for(var _=l.collections[parseInt(y.toString(),10)],S=_.items.length-1;S>=0;S--)if(!((S=this.checkClassicItem(_.items,S,!1))<0)){var w=_.items[parseInt(S.toString(),10)];if(f(w)&&(m(w.type!==s.f.GroupButton?w.id:w.id+c.g),h(y,S,S),!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 l=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=l.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+c.g)),l.setItemSize(u,a)}},b=function(e){var r=l.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+c.g)),l.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 y=u.collections[parseInt(m.toString(),10)],g=0;g<y.items.length;g++)if((g=this.checkClassicItem(y.items,g,!0))!==y.items.length){var v=y.items[parseInt(g.toString(),10)];if(function(t){return t.allowedSizes&s.c.Medium&&t.activeSize===s.c.Small}(v)){var S=i.querySelector("#"+v.id);"GroupButton"===v.type&&(S=i.querySelector("#"+v.id+c.g));var _=S.getAttribute("data-medium-width"),I=_?parseInt(_,10):null;if(I&&(o||r.offsetWidth>I))h(m,g,S),o&&!a||S.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 y=u.collections[parseInt(m.toString(),10)],S=i.querySelector("#"+y.id),_=S.getAttribute("data-medium-width"),I=_?parseInt(_,10):null,C=[],O=0;O<y.items.length;O++)y.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],S),h(m,C[1],S),3===C.length&&h(m,C[2],S),o&&!a||S.removeAttribute("data-medium-width");else if(I)return!0}if(f.length>0)for(var m=0;m<f.length;m++){var w=f[parseInt(m.toString(),10)],_=w.getAttribute("data-medium-width"),I=_?parseInt(_,10):null;if(I&&(o||r.offsetWidth>I)){var k=parseInt(w.getAttribute("data-start"),10),T=parseInt(w.getAttribute("data-end"),10);if(p===s.e.Row){var y=u.collections[0],g=this.checkClassicItem(y.items,k+1,!0);h(0,k,w),h(0,g,w),g!==T&&h(0,T,w)}else{var B=this.checkClassicCollection(u.collections,k+1,!0);b(k),b(B),B!==T&&b(T)}o&&!a||w.removeAttribute("data-medium-width")}else if(I)return!0}return!1},e.prototype.checkMediumToLarge=function(t,e,i,o,a,l,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+c.I),r=n.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Large},!0),e.type===s.f.GroupButton&&(r=n.querySelector("#"+e.id+c.g)),p.setItemSize(r,e),a.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(o),l&&!u||n.i(r.remove)(a)},y=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+c.g)),p.setItemSize(r,e.items[0]),a.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(o),l&&!u||n.i(r.remove)(a)},g=0;g<b.length;g++){var v=b[parseInt(g.toString(),10)],S=v.getAttribute("data-large-width"),_=S?parseInt(S,10):null;if(_&&(l||o.offsetWidth>_)){var I=parseInt(v.getAttribute("data-start"),10),C=parseInt(v.getAttribute("data-end"),10);if(f===s.e.Row){var O=d.collections[0],w=this.checkClassicItem(O.items,I+1,!0);w===C?m(I,C,v):m(I,C,v,w)}else{var k=this.checkClassicCollection(d.collections,I+1,!0);k===C?y(I,C,v):y(I,C,v,k)}l&&!u||v.removeAttribute("data-large-width")}else if(_)return!0}return!1},e.prototype.handleContentSize=function(t,e){var n=t.closest("."+c._18);e?n.classList.add(c._32):n.classList.remove(c._32)},e.prototype.setItemSize=function(t,e){if(t){var i=t.closest("."+c._26);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(c._32,c._29,c._30,c._31),e.activeSize===s.c.Large?i.classList.add(c._29,c._32):i.classList.add(e.activeSize===s.c.Medium?c._30:c._31)}},e.prototype.createOverflowDropdown=function(t,e,i){var o=this.getGroupResizeOrder(!0,t);if(0!==o.length)for(var a=this,u=0;u<o.length&&e.offsetWidth<i.offsetWidth;u++)!function(u){var d=o[parseInt(u.toString(),10)],f=a.tabObj.element.querySelector("#"+d.id);f.setAttribute("data-expanded-width",i.offsetWidth.toString());var h=f.querySelector("#"+d.id+c.I),b=a.createElement("div",{className:c._21+c.O+c._29,id:d.id+c.e+c.I});f.insertBefore(b,h);var m=n.i(l.g)(a.tabs[parseInt(t.toString(),10)].groups,function(t){return t.id===d.id}),y=a.tabs[parseInt(t.toString(),10)];a.checkSmallToMedium(t,y,m,e,i,!0,!1),a.checkMediumToLarge(t,y,m,e,i,!0,!1);var g=a.ribbonDropDownModule.createOverFlowDropDown(d.id,d.header,d.groupIconCss,h,b,a.enableRtl);if(d.keyTip){var v=d.id+c.e+c.f;a.addKeyTip(t,d.keyTip,v,"grpoverflow")}a.tabs[parseInt(t.toString(),10)].groups[parseInt(m.toString(),10)].setProperties({isCollapsed:!0},!0);for(var S=0;S<d.collections.length;S++)for(var _=d.collections[parseInt(S.toString(),10)],I=h.querySelector("#"+_.id),C=0;C<_.items.length;C++){var O=_.items[parseInt(C.toString(),10)],w=I.querySelector("#"+O.id+c.I);null!==w&&(a.handleContentSize(w),a.addOverflowEvents(O,w,g));var v=document.querySelector("#"+d.id+c.e+c.f),k=n.i(r.getInstance)(v,p.DropDownButton);if(k){var T=k.target;if(T&&a.keyTipElements[parseInt(t.toString(),10)]){if(O.type===s.f.GroupButton)for(var B=0;B<O.groupButtonSettings.items.length;B++)O.groupButtonSettings.items[parseInt(B.toString(),10)].keyTip&&a.addKeyTip(t,O.groupButtonSettings.items[parseInt(B.toString(),10)].keyTip,O.id+(c.g+B),"grpoverflowpopup");O.keyTip&&a.addKeyTip(t,O.keyTip,O.id,"grpoverflowpopup")}}}}(u)},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(l.g)(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)],y=p.querySelector("#"+m.id),g=0;g<m.items.length;g++){var v=m.items[parseInt(g.toString(),10)],S=y.querySelector("#"+v.id+c.I);null!==S&&(s.handleContentSize(S,!0),s.removeOverflowEvent(v,S))}}(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+c.e+c.f);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+c.D);if(e){var n=e.closest("."+c._12);"Simplified"===this.activeLayout?this.removeSimplfiedOverflow(e,n,t,!0):this.removeOverflowDropdown(e,n,!0,t)}},e.prototype.isContextualTab=function(t){var e=!1;if(this.contextualTabs.length)for(var n=0;n<this.contextualTabs.length;n++)for(var r=0;r<this.contextualTabs[parseInt(n.toString(),10)].tabs.length;r++)if(this.contextualTabs[parseInt(n.toString(),10)].tabs[parseInt(r.toString(),10)].id===t){e=!0;break}return e},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(l.g)(this.tabs,function(t){return t.id===i}),a=this.isContextualTab(i),u=n.i(l.g)(this.tabs,function(t){return t.id===o});s=-1===s?this.selectedTab:s;var p={cancel:t.cancel,isInteracted:t.isInteracted,previousIndex:u,selectedIndex:s,isContextual:a};this.trigger("tabSelecting",p,function(t){if(!t.cancel){e.destroyScroll(),e.isAddRemove||-1===u||e.clearOverflowDropDown(u);var i=e.tabObj.items[parseInt(s.toString(),10)].content;if(!i.querySelector("."+c._14)&&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,r=[],i=this,o=0;o<t.length;o++)!function(o){var s=t[parseInt(o.toString(),10)],a=i.createElement("span",{innerHTML:s.header,id:s.id+c.a}),u=n.i(l.g)(i.tabs,function(t){return t.id===s.id});s.keyTip&&(i.keyTipElements[parseInt(u.toString(),10)]||(i.keyTipElements[parseInt(u.toString(),10)]={}),i.addKeyTip(u,s.keyTip,s.id,"tab")),a.onclick=function(){e.minimize(!1)},a.ondblclick=function(){e.minimize(!0)};var p={header:{text:a},id:s.id,cssClass:s.cssClass},d=i.createElement("div",{className:p.cssClass,id:s.id+c.D});d.classList.add(c._4),p.content=d,r.push(p)}(o);return r},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(c._37);var o=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+c.D);this.checkOverflow(this.selectedTab,o),"Classic"===this.activeLayout&&this.ribbonGalleryModule&&this.ribbonGalleryModule.checkAvailableHeight(this.selectedTab,o)},e.prototype.addOverflowButton=function(t,e){var i=this,o=this.createElement("button",{id:t}),s=this.createElement("div",{className:c._10,attrs:{tabindex:"0"}}),a=new p.DropDownButton({iconCss:c.X,cssClass:c._34+c.O+c.V,target:s,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeOpen:function(t){var e={element:t.element,event:t.event,cancel:t.cancel};i.trigger("overflowPopupOpen",e,function(e){e.cancel&&(t.cancel=!0)})},beforeClose:function(t){var e=t.event?n.i(r.closest)(t.event.target,"."+c.U):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};i.trigger("overflowPopupClose",s,function(n){(e||n.cancel||o)&&(t.cancel=!0)})}},o);this.element.classList.add(c._11),n.i(l.f)(s,this),e||(this.keyTipElements.overflowbtn=[],this.keyTipElements.overflowbtn.push({id:t,type:"overflowbtn",keyTip:"00"}));var u;return o.onkeydown=o.onclick=function(){i.itemIndex=-1,u=!o.classList.contains("e-ribbon-overall-of-btn")},s.onkeydown=function(t){return i.upDownKeyHandler(t,s,u),i},a},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,l=o[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control"),c=l&&l.classList.contains("e-combobox")?o[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;if(null===c||"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),c&&"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===c||"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),c&&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 p=parseInt(e.getAttribute("index"),10),f="",h=o[parseInt(p.toString(),10)]?o[parseInt(p.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(p.toString(),10)].querySelector(".e-split-colorpicker").focus();else{"Tab"===t.key&&t.preventDefault();var b=o[parseInt(p.toString(),10)].querySelector(".e-control");b&&b.focus()}if(" "===t.key&&"CheckBox"===f){var m=o[parseInt(p.toString(),10)].querySelector(".e-control"),y=n.i(r.getComponent)(m,d.CheckBox);this.itemIndex=-1,y.click()}}"SplitButton"!==f||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||("ArrowRight"===t.key&&(this.enableRtl?o[parseInt(p.toString(),10)].querySelector(".e-control").focus():o[parseInt(p.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===t.key&&(this.enableRtl?o[parseInt(p.toString(),10)].querySelector(".e-dropdown-btn").focus():o[parseInt(p.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(l.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"Gallery":this.ribbonGalleryModule.removeOverFlowEvents(t,e);break;case"GroupButton":this.ribbonGroupButtonModule.removeOverFlowEvents(t,e)}},e.prototype.createGroupContainer=function(t,e){var n=this.createElement("div",{className:c._17,id:t+c.I}),r=this.createElement("div",{className:c._20,id:t+c.a,innerHTML:e});return n.append(r),n},e.prototype.addExpandCollapse=function(){var t=this;this.collapseButton=this.createElement("span",{className:c._5+c.O+c.W,id:this.tabObj.element.id+c._43,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(c._7),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(c._6),this.tabObj.element.appendChild(this.collapseButton),this.layoutSwitcherKeyTip&&(this.keyTipElements.collapse=[],this.keyTipElements.collapse.push({id:this.collapseButton.id,type:"collapse",keyTip:this.layoutSwitcherKeyTip}))},e.prototype.removeExpandCollapse=function(){var t=this,e=n.i(l.g)(this.tooltipData,function(e){return e.id===t.collapseButton.id});-1!==e&&this.tooltipData.splice(e,1),this.element.classList.remove(c._7),n.i(r.remove)(this.tabObj.element.querySelector("."+c._5)),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 l=this.createTabItems(this.tabs);this.selectedTab>=this.tabs.length&&(this.selectedTab=this.tabs.length-1),this.tabObj.setProperties({items:l,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],y=m.isCollapsed?f.querySelector("#"+m.id+c.e+c.f):null,g=0,v=m.collections;g<v.length;g++)for(var S=v[g],_=0,I=S.items;_<I.length;_++){var C=I[_],O=y?this.ribbonDropDownModule.getDDBItemElement(y,C.id):f.querySelector("#"+C.id);O&&this.destroyFunction(C,O)}y&&this.ribbonDropDownModule.removeOverFlowDropDown(y)}f.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()});var w=this.createGroups(d.groups,i);n.i(r.append)(w,f)}}var k=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+c.D);this.checkOverflow(this.selectedTab,k)},e.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(c._6,"Simplified"===this.activeLayout),this.element.classList.toggle(c._37,"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+c.D),l=a.closest("."+c._12);if("Simplified"===this.activeLayout)for(var u=0;u<o.length;u++){var d=o[parseInt(u.toString(),10)],f=o[parseInt(u.toString(),10)].orientation;d.isCollapsed?(d.setProperties({isCollapsed:!1},!0),this.removeDropdown(d.id)):(this.checkSmallToMedium(e,i,u,l,a,!0,!1),this.checkMediumToLarge(e,i,u,l,a,!0,!1));for(var h=l.querySelector("#"+d.id),b=h.querySelector("#"+d.id+c.I),m=b.querySelectorAll(".e-ribbon-shrink"),y=0;y<m.length;y++)m[parseInt(y.toString(),10)].remove();var g=b.querySelector("#"+d.id+c.a);g.remove();var v=b.querySelector("#"+d.id+c.D);v.classList.replace(c._27,c._28),v.classList.remove(c._32);for(var S=0;S<d.collections.length;S++){var _=d.collections[parseInt(S.toString(),10)],I=b.querySelector("#"+_.id);I.classList.replace(c._27,c._28);for(var C=0;C<_.items.length;C++){for(var O=_.items,w=_.items[parseInt(C.toString(),10)],k=!0;k&&w.displayOptions===s.b.Classic;){C++;var T=b.querySelector("#"+w.id+c.I),B=T.querySelector("#"+w.id);this.destroyFunction(w,B),T.remove(),C<O.length?w=O[parseInt(C.toString(),10)]:k=!1}if(!k)break;var P=w.allowedSizes===s.c.Large||w.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;P=!(w.displayOptions&s.b.Simplified)&&w.displayOptions&s.b.Overflow?s.c.Medium:P;var L=void 0;if(w.displayOptions&s.b.Classic){if(L=b.querySelector("#"+w.id+c.I),w.displayOptions===(s.b.Classic|s.b.Overflow)&&(this.createOverflowPopup(w,e,d.enableGroupOverflow,d.id,d.header,L,b),w.type!==s.f.DropDown&&w.type!==s.f.SplitButton&&w.type!==s.f.GroupButton&&w.type!==s.f.Gallery||this.updatePopupItems(w,L,d.enableGroupOverflow,!0)),w.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(w,L),w.setProperties({activeSize:P},!0),L){var B=L.querySelector("#"+w.id);this.setItemSize(B,w)}}else L=this.createItems([w],f,d.id,d.header,d.enableGroupOverflow,e,b)[0],w.displayOptions&s.b.Simplified&&I.append(L);w.type===s.f.Gallery&&this.ribbonGalleryModule.switchGalleryItems(this.activeLayout,w.id)}}d.enableGroupOverflow||h.querySelector("."+c._26)||h.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(c._11);for(var E=0;E<o.length;E++){var d=o[parseInt(E.toString(),10)],f=o[parseInt(E.toString(),10)].orientation,b=l.querySelector("#"+d.id+c.I),v=b.querySelector("#"+d.id+c.D),g=this.createElement("div",{className:c._19,id:d.id+c.a,innerHTML:d.header});b.appendChild(g),"Row"===f&&v.classList.replace(c._28,c._27),v.classList.add(c._32);for(var S=0;S<d.collections.length;S++){var D=void 0,x=void 0;if(d.enableGroupOverflow){var q=b.querySelector("#"+d.id+c.h);q&&(D=n.i(r.getInstance)(q,p.DropDownButton),x=D.target)}else(D=this.overflowDDB)&&(x=this.overflowDDB.target);var _=d.collections[parseInt(S.toString(),10)],I=b.querySelector("#"+_.id);"Column"===f&&I.classList.replace(c._28,c._27);for(var C=0;C<_.items.length;C++){for(var O=_.items,w=_.items[parseInt(C.toString(),10)],k=!0;k&&!(w.displayOptions&s.b.Classic);){C++;var L=void 0;if((w.displayOptions&s.b.Simplified||w.displayOptions&s.b.Overflow)&&null!==(L=w.displayOptions&s.b.Simplified?b.querySelector("#"+w.id+c.I):x.querySelector("#"+w.id+c.I))){var M=L.querySelector("#"+w.id);this.destroyFunction(w,M),L.remove()}C<O.length?w=O[parseInt(C.toString(),10)]:k=!1}if(!k)break;if(w.displayOptions&(s.b.Simplified|s.b.Overflow)){var L=b.querySelector("#"+w.id+c.I);!L&&x&&(L=x.querySelector("#"+w.id+c.I),w.type!==s.f.DropDown&&w.type!==s.f.SplitButton&&w.type!==s.f.GroupButton&&w.type!==s.f.Gallery||this.updatePopupItems(w,L,d.enableGroupOverflow,!1),this.removeOverflowEvent(w,L)),w.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(w,L),L&&I.append(L)}else{var L=this.createItems([w],f,d.id,d.header,d.enableGroupOverflow,e)[0];I.append(L)}var B=b.querySelector("#"+w.id);w.type===s.f.GroupButton&&(B=b.querySelector("#"+w.id+c.g));var R=w.allowedSizes&s.c.Large?s.c.Large:w.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;w.setProperties({activeSize:R},!0),this.setItemSize(B,w),w.type===s.f.Gallery&&this.ribbonGalleryModule.switchGalleryItems(this.activeLayout,w.id)}d.enableGroupOverflow&&D&&(0===x.childElementCount||1===x.childElementCount&&this.isHeaderVisible(x,d.id))&&this.removeOverflowButton(D)}}}this.selectedTab===e&&this.checkOverflow(e,a)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.createLauncherIcon=function(t,e,i){var o=this,s=this.createElement("div",{className:c._23+" "+(this.launcherIconCss?this.launcherIconCss:c._24),id:t+c._44,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});e.appendChild(s),e.classList.add(c._22),r.EventHandler.add(s,"click",this.launcherIconClicked.bind(this,t),this),r.EventHandler.add(s,"keydown",function(e){"Enter"===e.key&&o.launcherIconClicked(t)},this);var a=n.i(l.b)(this.tabs,t);a.group.launcherIconKeyTip&&this.addKeyTip(i,a.group.launcherIconKeyTip,s.id,"launcher")},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,l=this.createElement("div",{className:s.cssClass,id:s.id});l.classList.add(c._14),i.push(l);var u=this.createElement("div",{className:s.cssClass,id:s.id+c.I});u.classList.add(c._15),l.appendChild(u);var p=this.createElement("div",{className:"Simplified"===this.activeLayout?c._18:c._18+c.O+c._32,id:s.id+c.D});if(p.classList.add("Column"===a||"Simplified"===this.activeLayout?c._28:c._27),u.appendChild(p),"Classic"===this.activeLayout){var d=this.createElement("div",{className:c._19,id:s.id+c.a,innerHTML:s.header});u.appendChild(d)}s.showLauncherIcon&&this.createLauncherIcon(s.id,u,e);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&&l.classList.add("e-hide-group"),"Simplified"!==this.activeLayout||s.enableGroupOverflow||l.querySelector("."+c._26)||l.classList.add("e-ribbon-emptyCollection");var y=this.initialPropsData[parseInt(e.toString(),10)];y&&(y.hiddenGroups&&y.hiddenGroups.length&&this.updateGroupProps("hiddenGroups",y,l),y.disabledGroups&&y.disabledGroups.length&&this.updateGroupProps("disabledGroups",y,l))}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,l=0;l<a.length;l++){var c=a[parseInt(l.toString(),10)];if(c.allowedSizes&&0!==c.allowedSizes||c.setProperties({allowedSizes:s.c.Small|s.c.Medium|s.c.Large},!0),"ColorPicker"===c.type&&c.allowedSizes!==s.c.Small)c.setProperties({allowedSizes:s.c.Small},!0);else if("ComboBox"!==c.type&&"CheckBox"!==c.type||c.allowedSizes===s.c.Medium){if(("Column"===i&&a.length>1||"Row"===i&&r.length>1)&&c.allowedSizes&s.c.Large){var u=c.allowedSizes&(s.c.Small|s.c.Medium);u=u||s.c.Medium,c.setProperties({allowedSizes:u},!0)}}else c.setProperties({allowedSizes:s.c.Medium},!0);var p=c.allowedSizes&s.c.Large?s.c.Large:c.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;c.setProperties({activeSize:p},!0)}},e.prototype.createCollection=function(t,e,i,o,s,a,l){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(c._25),f.classList.add("Column"!==e||"Simplified"===this.activeLayout?c._28:c._27),u.push(f);var h=this.createItems(d.items,e,i,o,s,a,l);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);break;case"Gallery":this.ribbonGalleryModule.createGallery(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+c.I});if((p=m.classList).add.apply(p,[c._26].concat(h.disabled?[c.Y]:[])),h.ribbonTooltipSettings&&n.i(l.c)(h.ribbonTooltipSettings)&&(m.classList.add(c.o),this.tooltipData.push({id:m.id,data:h.ribbonTooltipSettings})),h.type===s.f.GroupButton)for(var y=0;y<h.groupButtonSettings.items.length;y++)this.keyTipElements[parseInt(a.toString(),10)]&&h.groupButtonSettings.items[parseInt(y.toString(),10)].keyTip&&this.addKeyTip(a,h.groupButtonSettings.items[parseInt(y.toString(),10)].keyTip,h.id+(c.g+y),"item");h.keyTip&&(h.type===s.f.Gallery?this.addKeyTip(a,h.keyTip,h.id+"_popupButton","item"):this.addKeyTip(a,h.keyTip,h.id,"item"));var g=h.activeSize;h.type!==s.f.Gallery&&("Simplified"===this.activeLayout&&(g=h.allowedSizes===s.c.Large||h.allowedSizes&s.c.Medium||h.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,h.setProperties({activeSize:g},!0)),g&s.c.Large?m.classList.add(c._29,c._32):m.classList.add(g&s.c.Medium?c._30:c._31));var v=this.initialPropsData[parseInt(a.toString(),10)];if(v&&v.hiddenItems&&v.hiddenItems.length){-1!==v.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&&h.type!==s.f.Gallery||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:c._36,id:this.element.id+c._45});var t=n.i(l.d)(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(c._46,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},e.prototype.createTemplateContent=function(t,e){var n=this.createElement("div",{className:t.cssClass?c._35+c.O+t.cssClass:c._35,id:t.id,attrs:{tabindex:"-1"}});t.disabled&&(n.classList.add(c.Y),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(l.d)(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?c._39:"group"===e?c._40:"collection"===e?c._41:c._42,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("."+c._14))for(var a=0,u=i.groups;a<u.length;a++){var d=u[a],f=void 0,h=void 0;this.activeLayout===s.a.Classic?f=d.isCollapsed?o.querySelector("#"+d.id+c.e+c.f):null:(f=d.enableGroupOverflow?o.querySelector("#"+d.id+c.h):null,(h=f?n.i(r.getComponent)(f,p.DropDownButton):this.overflowDDB)&&(n.i(l.o)(h.target,t),h.setProperties(t)));for(var b=0,m=d.collections;b<m.length;b++)for(var y=m[b],g=0,v=y.items;g<v.length;g++){var S=v[g],_=null;if(this.activeLayout===s.a.Classic?S.displayOptions&s.b.Classic&&(_=f?this.ribbonDropDownModule.getDDBItemElement(f,S.id):S.type===s.f.GroupButton?o.querySelector("#"+S.id+c.g):o.querySelector("#"+S.id)):(_=S.displayOptions&s.b.Simplified?o.querySelector("#"+S.id):null)||(_=h.target.querySelector("#"+S.id),"DropDown"===S.type&&this.updatePopupItems(S,h.target,d.enableGroupOverflow,!0)),_){var I=this.getItemModuleName(S);if("template"!==I)if("group-btn"===I&&"Classic"===this.activeLayout)for(var C=0;C<S.groupButtonSettings.items.length;C++){var O=_.querySelector("#"+S.id+c.g+C);n.i(l.j)(O,"btn",t)}else if("group-btn"===I&&"Simplified"===this.activeLayout){n.i(l.j)(_,"dropdown-btn",t);for(var w=0;w<S.groupButtonSettings.items.length;w++){var O=document.querySelector("#"+S.id+c.g+w);n.i(l.j)(O,"btn",t)}}else n.i(l.j)(_,I,t);else n.i(r.isNullOrUndefined)(t.enableRtl)||_.classList.toggle(c.Z,t.enableRtl)}}}}},e.prototype.removeLauncherIcon=function(t,e,i){var o=t+c.I,s=e?this.ribbonDropDownModule.getDDBItemElement(e,o):i.querySelector("#"+o);if(s){s.classList.remove(c._22);var a=s.querySelector("#"+t+c._44);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,l=i.groups;a<l.length;a++){var u=l[a],d=void 0,f=void 0;this.activeLayout===s.a.Classic?(d=u.isCollapsed?o.querySelector("#"+u.id+c.e+c.f):null,u.showLauncherIcon&&this.removeLauncherIcon(u.id,d,o)):(d=u.enableGroupOverflow?o.querySelector("#"+u.id+c.h):null,f=d?n.i(r.getComponent)(d,p.DropDownButton):this.overflowDDB);for(var h=0,b=u.collections;h<b.length;h++)for(var m=b[h],y=0,g=m.items;y<g.length;y++){var v=g[y],S=void 0;this.activeLayout===s.a.Classic?v.displayOptions&s.b.Classic&&(S=d?this.ribbonDropDownModule.getDDBItemElement(d,v.id):o.querySelector("#"+v.id),v.type===s.f.GroupButton&&(S=d?this.ribbonDropDownModule.getDDBItemElement(d,v.id+c.g):o.querySelector("#"+v.id+c.g)),v.type===s.f.Gallery&&(S=o.querySelector("#"+v.id+c.I))):(S=v.displayOptions&s.b.Simplified?o.querySelector("#"+v.id):null,v.type===s.f.Gallery&&(S=v.displayOptions&s.b.Simplified?o.querySelector("#"+v.id+c.I):null),S||(S=f?f.target.querySelector("#"+v.id):null)),S&&this.destroyFunction(v,S)}this.activeLayout===s.a.Classic&&d?this.ribbonDropDownModule.removeOverFlowDropDown(d):this.activeLayout===s.a.Simplified&&u.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+c.g+i);o&&n.i(l.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+c.g+e,i=n.i(l.g)(s.tooltipData,function(t){return t.id===r});-1!==i&&s.tooltipData.splice(i,1)}}(i)}else if("gallery"===r)if(e.closest(".e-ribbon-overflow-target")){n.i(l.i)(e,"dropdown-btn");var a=Array.prototype.slice.call(document.querySelectorAll("#"+t.id+"_galleryPopup"));a.concat(Array.prototype.slice.call(document.querySelectorAll("#"+t.id+"-popup")));for(var i=0;i<a.length;i++)a[parseInt(i.toString(),10)].remove()}else{var u=e.querySelectorAll(".e-ribbon-gallery-item"),p=e.querySelector("#"+t.id+"_popupButton");p&&p.remove();for(var i=0;i<u.length;i++)u[parseInt(i.toString(),10)].remove();for(var a=document.querySelectorAll("#"+t.id+"_galleryPopup"),i=0;i<a.length;i++)a[parseInt(i.toString(),10)].remove()}else"template"!==r&&n.i(l.i)(e,r);if(t.ribbonTooltipSettings){var d=n.i(l.g)(this.tooltipData,function(e){return e.id===t.id+c.I});-1!==d&&this.tooltipData.splice(d,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";case"Gallery":return"gallery";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+c.D),n=e.closest("."+c._12),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(l.g)(this.tabs,function(e){return e.id===t});this.setProperties({selectedTab:e})},e.prototype.showTab=function(t,e){void 0===e&&(e=!1),this.showHideTab(t,!1,e)},e.prototype.hideTab=function(t,e){void 0===e&&(e=!1),this.showHideTab(t,!0,e)},e.prototype.showHideTab=function(t,e,r){var i=n.i(l.g)(this.tabs,function(e){return e.id===t});if(-1!==i&&(this.tabObj.hideTab(i,e),r)){for(var o,s=this.tabObj.element,a=0;a<this.contextualTabs.length;a++)for(var c=0;c<this.contextualTabs[parseInt(a.toString(),10)].tabs.length;c++)t===this.contextualTabs[parseInt(a.toString(),10)].tabs[parseInt(c.toString(),10)].id&&(o=this.contextualTabs[parseInt(a.toString(),10)]);if(o){for(var u=!0,p=this,a=0;a<o.tabs.length;a++)!function(t){var e=n.i(l.g)(p.tabs,function(e){return e.id===o.tabs[parseInt(t.toString(),10)].id});if(-1!==e){s.querySelectorAll(".e-toolbar-item")[parseInt(e.toString(),10)].classList.contains("e-hidden")||(u=!1)}}(a);u?o.setProperties({visible:!1},!0):o.setProperties({visible:!0},!0)}}},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(l.g)(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(l.g)(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(l.g)(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+c.e+c.f):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 y=m[b],g=p?this.ribbonDropDownModule.getDDBItemElement(p,y.id):r.querySelector("#"+y.id);y.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(g=p?this.ribbonDropDownModule.getDDBItemElement(p,y.id+c.g):r.querySelector("#"+y.id+c.g)),g&&this.destroyFunction(y,g)}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(l.g)(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(),c=r?n.i(l.g)(a,function(t){return t.id===r}):-1;c=-1===c?a.length:c+(i?1:0),a.splice(c,0,e),s.setProperties({groups:a},!0),this.checkID([s.groups[parseInt(c.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(c.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(l.b)(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+c.h):null,a=o?n.i(r.getComponent)(o,p.DropDownButton):this.overflowDDB);for(var u=0,d=e.group.collections;u<d.length;u++)for(var f=d[u],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 y=a.target.querySelector("#"+e.group.id+c.I);y&&1===y.childElementCount&&y.remove();var g=a.target.querySelector("#"+this.tabs[parseInt(e.tabIndex.toString(),10)].id+c.e);g&&0===g.childElementCount&&g.remove()}var v=i.querySelector("#"+t);v&&v.remove()}var S=this.tabs[e.tabIndex].groups.slice();S.splice(e.groupIndex,1),this.tabs[e.tabIndex].setProperties({groups:S},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.isHeaderVisible=function(t,e){return!!t.querySelector("#"+e+c.h+c.a)},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(l.b)(this.tabs,t);if(s){var a=this.tabObj.items[s.tabIndex].content,u=a.querySelector("#"+t);if(u?this.updateHiddenElements(s.tabIndex,e?"hideGroup":"showGroup",t,e,u):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+c.e);if(s.group.enableGroupOverflow){var h=a.querySelector("#"+t+c.h);h&&(i=n.i(r.getInstance)(h,p.DropDownButton),o=i.target),o&&(e?o.classList.add("e-hidden"):o.classList.remove("e-hidden"))}else if(f){var b=f.querySelector("#"+t+c.I);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,l=void 0,u=!1,p=0;if(s="hideGroup"===e||"showGroup"===e?a.querySelector("#"+n[e][o]):a.querySelector("#"+n[e][o]+c.I)){if("hideGroup"===e||"hideItem"===e){var d=!1;s.classList.contains("e-hidden")&&(d=!0,s.classList.remove("e-hidden")),"hideItem"===e&&(l=s.closest(".e-ribbon-group"),l.classList.contains("e-hide-group")&&(u=!0,p=i.checkWidthDifference(s,l))),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(l=s.closest(".e-ribbon-group"),l.classList.contains("e-hide-group"))u=!0,l.classList.remove("e-hide-group"),l.classList.remove("e-ribbon-emptyCollection"),p=Math.abs(s.offsetWidth-l.offsetWidth),-1!==i.hiddenGroups.indexOf(l.id)&&i.hiddenGroups.splice(i.hiddenGroups.indexOf(l.id),1);else if(-1!==i.hiddenGroups.indexOf(l.id)){var f=l.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-l.offsetWidth),f.forEach(function(t){t.id!==s.id&&t.classList.remove("e-hidden")}),i.hiddenGroups.splice(i.hiddenGroups.indexOf(l.id),1)}i.calculateOverflowItemsWidth(s.offsetWidth+p,!1,t),i.calculateMediumDataWidth(s.offsetWidth+p,t,!1)}u&&(l.classList.add("e-hide-group"),l.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+c.D),s=Array.prototype.slice.call(o.querySelectorAll(".e-ribbon-item"));if(this.overflowDDB)for(var a=this.overflowDDB.target,l=a.querySelectorAll(".e-ribbon-item"),u=document.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+c.e),d=0;d<l.length;d++){var f=l[parseInt(d.toString(),10)].closest("#"+this.tabs[parseInt(e.toString(),10)].id+c.e);u&&f&&u.id===f.id&&l[parseInt(d.toString(),10)].hasAttribute("data-medium-width")&&s.push(l[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)],p.DropDownButton),m=b.target,l=m.querySelectorAll(".e-ribbon-item"),y=0;y<l.length;y++)l[parseInt(y.toString(),10)].hasAttribute("data-medium-width")&&s.push(l[parseInt(y.toString(),10)]);for(var d=0;d<s.length;d++)if(s[parseInt(d.toString(),10)].hasAttribute("data-medium-width")){var g=parseInt(s[parseInt(d.toString(),10)].getAttribute("data-medium-width"),10);s[parseInt(d.toString(),10)].setAttribute("data-medium-width",i?(g-t).toString():(g+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 l=document.querySelector("#"+a.id),u=void 0,d=l.querySelector("#"+a.id+c.h);if(d&&(u=n.i(r.getInstance)(d,p.DropDownButton)),u)for(var f=u.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 y=document.querySelector("#"+this.tabs[parseInt(i.toString(),10)].id+c.e),f=this.overflowDDB.target,h=f.querySelectorAll(".e-ribbon-item"),s=0;s<h.length;s++){var g=h[parseInt(s.toString(),10)].closest("#"+this.tabs[parseInt(i.toString(),10)].id+c.e);if(y&&g&&y.id===g.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(l.b)(this.tabs,t);if(s){var a=this.tabObj.items[s.tabIndex].content,u=a.querySelector("#"+t);if(u?e?u.classList.add("e-disabled"):u.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+c.e);if(s.group.enableGroupOverflow){var h=a.querySelector("#"+t+c.h);h&&(i=n.i(r.getInstance)(h,p.DropDownButton),o=i.target),o&&(e?o.classList.add("e-disabled"):o.classList.remove("e-disabled"))}else if(f){var b=f.querySelector("#"+t+c.I);b&&(e?b.classList.add("e-disabled"):b.classList.remove("e-disabled"))}}}},e.prototype.addCollection=function(t,e,r,i){var o=n.i(l.b)(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(l.g)(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+c.D).append(d)}this.selectedTab===o.tabIndex&&this.refreshLayout()}},e.prototype.removeCollection=function(t){var e=n.i(l.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;this.activeLayout===s.a.Simplified&&(o=e.group.enableGroupOverflow?i.querySelector("#"+e.group.id+c.h):null,a=o?n.i(r.getComponent)(o,p.DropDownButton):this.overflowDDB);for(var u=0,d=e.collection.items;u<d.length;u++){var f=d[u];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(l.h)(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(l.g)(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+c.I);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("."+c._26).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(l.a)(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+c.h):null,a=o?n.i(r.getComponent)(o,p.DropDownButton):this.overflowDDB);var u=e.item;this.removeItemElement(i,u,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(l.a)(this.tabs,t);if(i){var o;if(o="GroupButton"===i.item.type?n.i(l.l)(this,t+c.g,i):n.i(l.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(l.a)(this.tabs,f.id);h=n.i(l.l)(this,f.id+c.g,b)}else h=n.i(l.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 y=a.querySelectorAll("."+c._26);y&&(i=this.checkEmptyCollection(y),a.classList[i?"add":"remove"]("e-ribbon-emptyCollection"))}},e.prototype.checkOverflowItems=function(t,e,i,o,s){var a,l;if(i){var u=e.querySelector("#"+s+c.h);u&&(a=n.i(r.getInstance)(u,p.DropDownButton),l=a.target),l&&(t?l.classList.add("e-hide-group"):l.classList.remove("e-hide-group"))}else if(this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+c.e);if(f){var h=f.querySelector("#"+s+c.I);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(l.g)(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+c.e+c.f):null,b=0,m=f.collections;b<m.length;b++)for(var y=m[b],g=0,v=y.items;g<v.length;g++){var S=v[g],_=h?this.ribbonDropDownModule.getDDBItemElement(h,S.id):o.querySelector("#"+S.id);S.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(_=h?this.ribbonDropDownModule.getDDBItemElement(h,S.id+c.g):o.querySelector("#"+S.id+c.g)),_&&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+c.a).innerText=I.header)}}},e.prototype.updateGroup=function(t){var e=t.id,i=n.i(l.b)(this.tabs,e);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var o,a,u=this.tabObj.items[i.tabIndex].content,d=u.querySelector("#"+e),f=d.querySelector("#"+t.id+c.I);if(""!==u.innerHTML){if(i.group.showLauncherIcon&&this.removeLauncherIcon(i.group.id,null,u),this.activeLayout===s.a.Simplified&&(o=i.group.enableGroupOverflow?u.querySelector("#"+i.group.id+c.h):null,a=o?n.i(r.getComponent)(o,p.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],y=0,g=m.items;y<g.length;y++){var v=g[y];this.removeItemElement(u,v,a)}if(d.querySelectorAll(".e-ribbon-collection").forEach(function(t){t.remove()}),t.orientation){var S=f.querySelector(".e-ribbon-group-content"),_=S.classList.value.match(/(e-ribbon-[column|row]+)/g);_&&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+c.I);I&&1===I.childElementCount&&I.remove();var C=a.target.querySelector("#"+this.tabs[parseInt(i.tabIndex.toString(),10)].id+c.e);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(),""!==u.innerHTML){if(t.showLauncherIcon&&this.createLauncherIcon(O.id,f,i.tabIndex),t.collections||t.orientation){var S=f.querySelector(".e-ribbon-group-content");S.classList.add("Column"===O.orientation||"Simplified"===this.activeLayout?c._28:c._27);var w=this.createCollection(O.collections,O.orientation,O.id,O.header,O.enableGroupOverflow,i.tabIndex,f);n.i(r.append)(w,S)}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 k=d.querySelector("#"+O.id+c.e+c.f),T=n.i(r.getInstance)(k,p.DropDownButton),B=T.target.querySelector("#"+t.id+c.a);B&&(B.innerText=O.header)}}else d.querySelector(".e-ribbon-group-header").innerText=O.header;else{var B=a.target.querySelector("#"+t.id+c.a);B&&(B.innerText=O.header)}}}},e.prototype.updateCollection=function(t){var e=t.id,i=n.i(l.h)(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 u=void 0,d=void 0;if(this.activeLayout===s.a.Simplified&&(u=i.group.enableGroupOverflow?o.querySelector("#"+i.group.id+c.h):null,d=u?n.i(r.getComponent)(u,p.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 y=o.querySelector("#"+i.group.id+c.I),g=this.createItems(m.items,i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex,y);n.i(r.append)(g,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(l.a)(this.tabs,e);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var o,a,u=this.tabObj.items[i.tabIndex].content,d=u.querySelector("#"+i.group.id),f=d.querySelector("#"+i.group.id+c.I),h=null,b=null;if(""!==u.innerHTML){if(this.activeLayout===s.a.Simplified&&(o=i.group.enableGroupOverflow?u.querySelector("#"+i.group.id+c.h):null,a=o?n.i(r.getComponent)(o,p.DropDownButton):this.overflowDDB),this.activeLayout===s.a.Simplified&&i.item.displayOptions===s.b.Overflow){if(h=a.target.querySelector("#"+e+c.I),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+c.I),b=u.querySelector("#"+e),"GroupButton"===i.item.type&&this.activeLayout===s.a.Classic&&(b=u.querySelector("#"+e+c.g)),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&&t.type!==s.f.Gallery||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 y=h.classList.value.match(/(e-ribbon-[large|medium|small]+-item)/g);y&&n.i(r.removeClass)([h],y)}var g=i.item;if(g.setProperties(t,!0),this.validateItemSize(),""!==u.innerHTML){h=this.activeLayout!==s.a.Simplified||g.displayOptions!==s.b.Overflow?f.querySelector("#"+e+c.I):a.target.querySelector("#"+e+c.I),g.ribbonTooltipSettings&&n.i(l.c)(g.ribbonTooltipSettings)&&(h.classList.add(c.o),this.tooltipData.push({id:h.id,data:g.ribbonTooltipSettings}));var v=g.activeSize;"Simplified"===this.activeLayout&&(v=g.allowedSizes===s.c.Large||g.allowedSizes&s.c.Medium||g.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,g.setProperties({activeSize:v},!0)),v&s.c.Large?h.classList.add(c._29,c._32):h.classList.add(v&s.c.Medium?c._30:c._31),this.createRibbonItem(g,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(g.cssClass),!g.disabled&&h.classList.contains(c.Y)&&h.classList.remove(c.Y),this.enableDisableItem(g.id,g.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+c.g):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+c.I).remove():r.closest("#"+e.id+c.I).remove())},e.prototype.enableItem=function(t){this.enableDisableItem(t,!1)},e.prototype.disableItem=function(t){this.enableDisableItem(t,!0)},e.prototype.getItem=function(t){return n.i(l.a)(this.tabs,t).item},e.prototype.enableDisableItem=function(t,e){var i=!1,o=n.i(l.a)(this.tabs,t);if(o){o.item.setProperties({disabled:e},!0);var s;if(s="GroupButton"===o.item.type?n.i(l.l)(this,t+c.g,o):n.i(l.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(c.Y):a.classList.contains(c.Y),"template"!==u){if(i)if("group-btn"===u&&"Simplified"===this.activeLayout){n.i(l.k)(s,"dropdown-btn",e);for(var p=0;p<o.item.groupButtonSettings.items.length;p++){var d=document.querySelector("#"+t+c.g+p);n.i(l.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+c.g+p);n.i(l.k)(d,"btn",e)}else n.i(l.k)(s,u,e)}else s.classList.toggle(c.Y,e),s.toggleAttribute("disabled",e);a.classList.toggle(c.Y,o.item.disabled)}}},e.prototype.unwireEvents=function(){r.EventHandler.remove(window,"resize",this.resizeHandler),r.EventHandler.remove(document.body,"keydown",this.keytipActionHandler),r.EventHandler.remove(document,"mousedown",this.mouseEventHandler),r.EventHandler.remove(document,"scroll",this.mouseEventHandler)},e.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,n.i(l.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={},this.keyTipElements={},n.i(r.remove)(this.element.querySelector("#"+this.element.id+c._39)),this.element.style.removeProperty(c.s),this.element.style.removeProperty(c._46),this.element.style.removeProperty("width"),this.cssClass&&n.i(r.removeClass)([this.element],this.cssClass.split(c.O)),this.element.classList.remove(c.Z,c._37,c._11,c._7,c._13,"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(c.O)),t.cssClass&&(o=this.element.classList).add.apply(o,t.cssClass.split(c.O));break;case"isMinimized":this.element.classList.toggle(c._13,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(c.Z,this.enableRtl),this.updateCommonProperty({enableRtl:t.enableRtl}),this.scrollModule&&this.scrollModule.setProperties({enableRtl:t.enableRtl});break;case"launcherIconCss":for(var l=0;l<this.tabs.length;l++){var u=this.tabObj.items[parseInt(l.toString(),10)].content,d=this.tabs[parseInt(l.toString(),10)];if(u.querySelector("."+c._14))for(var f=0,h=d.groups;f<h.length;f++){var b=h[f];if(b.showLauncherIcon){var m=c._23+" "+(this.launcherIconCss||c._24);if(b.isCollapsed){var y=u.querySelector("#"+b.id+c.e+c.f),g=n.i(r.getComponent)(y,p.DropDownButton),v=g.target.querySelector("#"+b.id+c._44);v.className=m}else{var y=u.querySelector("#"+b.id+c._44);y.className=m}}}}break;case"selectedTab":var S=this.tabObj.element,_=S.querySelectorAll(".e-toolbar-item")[parseInt(t.selectedTab.toString(),10)];_.classList.contains("e-hidden")||_.classList.contains("e-disable")||this.tabObj.setProperties({selectedItem:t.selectedTab});break;case"tabAnimation":this.tabObj.setProperties({animation:t.tabAnimation});break;case"tabs":this.reRenderTabs(t.tabs);break;case"contextualTabs":for(var l=0;l<this.contextualTabs.length;l++)t.contextualTabs[parseInt(l.toString(),10)]&&this.ribbonContextualTabModule.updateContextualTabs(t.contextualTabs[parseInt(l.toString(),10)],this.contextualTabs[parseInt(l.toString(),10)]);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(c._46,"0px")),this.helpPaneTemplate&&this.createHelpPaneTemplate();this.tabObj.tbObj.refreshOverflow();break;case"hideLayoutSwitcher":this.hideLayoutSwitcher?this.removeExpandCollapse():this.addExpandCollapse()}}};var b;return h([n.i(r.Property)("Classic")],e.prototype,"activeLayout",void 0),h([n.i(r.Property)("")],e.prototype,"cssClass",void 0),h([n.i(r.Property)(!1)],e.prototype,"enableKeyTips",void 0),h([n.i(r.Property)("")],e.prototype,"layoutSwitcherKeyTip",void 0),h([n.i(r.Complex)({},o.k)],e.prototype,"fileMenu",void 0),h([n.i(r.Complex)({},o.l)],e.prototype,"backStageMenu",void 0),h([n.i(r.Property)("")],e.prototype,"launcherIconCss",void 0),h([n.i(r.Property)(!1)],e.prototype,"isMinimized",void 0),h([n.i(r.Property)("en-us")],e.prototype,"locale",void 0),h([n.i(r.Property)(0)],e.prototype,"selectedTab",void 0),h([n.i(r.Complex)({},i.TabAnimationSettings)],e.prototype,"tabAnimation",void 0),h([n.i(r.Collection)([],o.a)],e.prototype,"tabs",void 0),h([n.i(r.Collection)([],o.r)],e.prototype,"contextualTabs",void 0),h([n.i(r.Property)("100%")],e.prototype,"width",void 0),h([n.i(r.Property)("")],e.prototype,"helpPaneTemplate",void 0),h([n.i(r.Property)(!1)],e.prototype,"hideLayoutSwitcher",void 0),h([n.i(r.Event)()],e.prototype,"tabSelecting",void 0),h([n.i(r.Event)()],e.prototype,"tabSelected",void 0),h([n.i(r.Event)()],e.prototype,"ribbonExpanding",void 0),h([n.i(r.Event)()],e.prototype,"ribbonCollapsing",void 0),h([n.i(r.Event)()],e.prototype,"launcherIconClick",void 0),h([n.i(r.Event)()],e.prototype,"created",void 0),h([n.i(r.Event)()],e.prototype,"overflowPopupOpen",void 0),h([n.i(r.Event)()],e.prototype,"overflowPopupClose",void 0),e=b=h([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}),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});var i=n(13);n.d(e,"_69",function(){return i.a}),n.d(e,"_70",function(){return i.b}),n.d(e,"_71",function(){return i.c}),n.d(e,"_72",function(){return i.d}),n.d(e,"_73",function(){return i.e}),n.d(e,"_74",function(){return i.f}),n.d(e,"_75",function(){return i.g}),n.d(e,"_76",function(){return i.h}),n.d(e,"_77",function(){return i.i}),n.d(e,"_78",function(){return i.j}),n.d(e,"_79",function(){return i.k}),n.d(e,"_80",function(){return i.l}),n.d(e,"_81",function(){return i.m}),n.d(e,"_82",function(){return i.n}),n.d(e,"_83",function(){return i.o}),n.d(e,"_84",function(){return i.p}),n.d(e,"_85",function(){return i.q}),n.d(e,"_86",function(){return i.r}),n.d(e,"_87",function(){return i.s}),n.d(e,"_88",function(){return i.t}),n.d(e,"_89",function(){return i.u});var o=n(12);n.d(e,"_90",function(){return o.a}),n.d(e,"_91",function(){return o.b}),n.d(e,"_92",function(){return o.c}),n.d(e,"_93",function(){return o.d}),n.d(e,"_94",function(){return o.e}),n.d(e,"_95",function(){return o.f}),n.d(e,"_96",function(){return o.g}),n.d(e,"_97",function(){return o.h});var s=n(47);n.d(e,"_98",function(){return s.a}),n.d(e,"_99",function(){return s.b}),n.d(e,"_100",function(){return s.c}),n.d(e,"_101",function(){return s.d})},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(9)),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 l=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:l.iconCss,disabled:t.disabled,cssClass:(s.P+s.O+s.Q+s.O+(l.cssClass?l.cssClass:"")).trim(),content:t.activeSize===o.d.Small?"":l.content,isPrimary:l.isPrimary,isToggle:l.isToggle,created:l.created},a),l.htmlAttributes&&n.i(o._68)(a,l.htmlAttributes),a.onclick=function(t){l.clicked&&l.clicked.call(r,t)},a.setAttribute("aria-label",l.content)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var c=n.i(r.getComponent)(l,i.Button);c.setProperties({cssClass:c.cssClass+s.O+s.U}),l.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),l=n.i(r.getComponent)(a,i.Button),c=l.cssClass.split(s.O);c=c.filter(function(t){return t!==s.U}),l.setProperties({cssClass:c.join(s.O)}),a.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(o,e)}},t.prototype.click=function(t){var e=n.i(o._62)(this.parent,t);if(e){n.i(r.getComponent)(e,i.Button).click()}},t.prototype.updateButton=function(t,e){var a=n.i(o._56)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.buttonSettings,t);var l=n.i(o._62)(this.parent,e,a);if(l){var c=n.i(r.getComponent)(l,i.Button);t.isToggle&&l.classList.add("e-active"),t.cssClass&&(t.cssClass=(s.P+s.O+s.Q+s.O+t.cssClass).trim()),t.content&&(t.content=a.item.activeSize===o.d.Small?"":t.content,l.setAttribute("aria-label",t.content)),delete t.clicked,c.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(9)),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.t+(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,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var c=n.i(r.getComponent)(l,i.CheckBox);c.cssClass=c.cssClass+o.t+o.q,c.dataBind(),c.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),l=n.i(r.getComponent)(a,i.CheckBox),c=l.cssClass.split(o.t);c=c.filter(function(t){return t!==o.q}),l.cssClass=c.join(o.t),l.dataBind(),l.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(s,e)}},t.prototype.click=function(t){var e=n.i(o._62)(this.parent,t);if(e){n.i(r.getComponent)(e,i.CheckBox).click()}},t.prototype.updateCheckBox=function(t,e){var s=n.i(o._56)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.checkBoxSettings,t);var a=n.i(o._62)(this.parent,e,s);if(a){t.cssClass&&(t.cssClass=(o.p+o.t+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(60)),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,l=this.parent.createElement("input",{id:t.id});e.appendChild(l);var c=t.colorPickerSettings,u=new i.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:c.columns,cssClass:(s.Q+s.O+(c.cssClass?c.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:c.enableOpacity,mode:c.mode,modeSwitcher:c.modeSwitcher,noColor:c.noColor,presetColors:c.presetColors,showButtons:c.showButtons,value:c.value,beforeClose:function(){u.element.parentElement.classList.remove(s.S),c.beforeClose&&c.beforeClose.call(a)},beforeOpen:c.beforeOpen,beforeTileRender:c.beforeTileRender,created:c.created,change:function(t){c.value=t.value.toString(),c.change&&c.change.call(a,t)},open:function(){u.element.parentElement.classList.add(s.S),c.open&&c.open.call(a)},select:c.select},l);c.htmlAttributes&&n.i(o._68)(l,c.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.T):t.classList.remove(s.T)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,l=t.colorPickerSettings;if(l.label&&"Simplified"===this.parent.activeLayout){var c=this.parent.createElement("div",{className:"e-ribbon-colorpicker-label",id:t.id+"_label",innerHTML:l.label});e.insertBefore(c,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.O+s.U});var d,f=p.splitBtn;p.beforeClose=function(e){d=e.event?e.event.target:null,p.element.parentElement.classList.remove(s.S),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 l=e.querySelector("#"+t.id),c=n.i(r.getComponent)(l,i.ColorPicker),u=c.cssClass.split(s.O);u=u.filter(function(t){return t!==s.U}),c.setProperties({cssClass:u.join(s.O)}),c.splitBtn.close=null,c.beforeClose=function(){c.element.parentElement.classList.remove(s.S),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(o)}},t.prototype.getColorPickerObj=function(t){var e=n.i(o._62)(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._56)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.checkBoxSettings,t);var l=n.i(o._62)(this.parent,e,a);if(l){t.cssClass&&(t.cssClass=(s.Q+s.O+t.cssClass).trim()),delete t.beforeClose,delete t.open;n.i(r.getComponent)(l,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(31)),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.t+(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,l=t.comboBoxSettings;if(l.label&&"Simplified"===this.parent.activeLayout){var c=this.parent.createElement("div",{className:"e-ribbon-combobox-label",id:t.id+"_label",innerHTML:l.label});e.insertBefore(c,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.t+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 l=e.querySelector("#"+t.id),c=n.i(r.getComponent)(l,i.ComboBox),u=c.cssClass.split(o.t);u=u.filter(function(t){return t!==o.q}),c.setProperties({cssClass:u.join(o.t)}),c.close=function(e){t.comboBoxSettings.close&&t.comboBoxSettings.close.call(s,e)}},t.prototype.getComboBoxObj=function(t){var e=n.i(o._62)(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._56)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.comboBoxSettings,t);var a=n.i(o._62)(this.parent,e,s);if(a){t.cssClass&&(t.cssClass=(o.p+o.t+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 l});var r=n(0),i=(n.n(r),n(3)),o=(n.n(i),n(5)),s=(n.n(o),n(2)),a=n(1),l=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 l=t.dropDownSettings,c=(a.P+a.O+a.Q+a.O+(l.cssClass?l.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:l.closeActionEvents,content:t.activeSize===s.d.Small?"":l.content,cssClass:c+(t.activeSize===s.d.Large?a.O+a.R:""),disabled:t.disabled,iconCss:l.iconCss,items:l.items,target:l.target,createPopupOnClick:l.createPopupOnClick,beforeClose:function(t){l.beforeClose&&l.beforeClose.call(r,t)},beforeItemRender:l.beforeItemRender,beforeOpen:l.beforeOpen,close:function(t){l.close&&l.close.call(r,t)},created:l.created,open:l.open,select:l.select}).appendTo(o),l.htmlAttributes&&n.i(s._68)(o,l.htmlAttributes)},t.prototype.addOverFlowEvents=function(t,e,o){var s=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var c=n.i(r.getComponent)(l,i.DropDownButton);c.cssClass=c.cssClass+a.O+a.U,c.dataBind();var u;c.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(s,e),u=e.event?e.event.target:null},c.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),l=n.i(r.getComponent)(s,i.DropDownButton),c=l.cssClass.split(a.O);c=c.filter(function(t){return t!==a.U}),l.cssClass=c.join(a.O),l.dataBind(),l.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(o,e)},l.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(o,e)}},t.prototype.createOverFlowDropDown=function(t,e,o,l,c,u){var p=this;this.enableRtl=u;var d=this.parent.createElement("button",{id:t+a.e+a.f});l.setAttribute("tabindex","0"),c.appendChild(d);var f=new i.DropDownButton({iconCss:o,target:l,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:a.R+a.O+a.V,iconPosition:"Top",content:e,beforeClose:function(t){t.cancel=!n.i(r.isNullOrUndefined)(t.event&&n.i(r.closest)(t.event.target,"."+a.U))}},d);return n.i(s._65)(l,this.parent),d.onclick=d.onkeydown=function(){p.itemIndex=0},l.onkeydown=function(t){p.keyActionHandler(t,l)},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.e+a.f);return n.i(r.getComponent)(o,i.DropDownButton).dropDown.element},t.prototype.getDropDownObj=function(t){var e=n.i(s._62)(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._56)(this.parent.tabs,e);if(o){n.i(r.merge)(o.item.dropDownSettings,t);var l=n.i(s._62)(this.parent,e,o);if(l){var c=n.i(r.getComponent)(l,i.DropDownButton);t.cssClass&&(t.cssClass=(a.Q+a.O+a.P+a.O+t.cssClass).trim(),t.cssClass=o.item.activeSize===s.d.Large?(a.R+a.O+t.cssClass).trim():t.cssClass,c.cssClass=t.cssClass),delete t.close,delete t.beforeClose,t.content&&(t.content=o.item.activeSize===s.d.Small?"":t.content),c.setProperties(t)}}},t.prototype.updateDropDownSize=function(t,e){var o=n.i(r.getComponent)(t,i.DropDownButton),l=o.cssClass.split(a.O);e.activeSize===s.d.Large?l.push(a.R):l=l.filter(function(t){return t!==a.R}),o.cssClass=l.join(a.O),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 l});var r=n(0),i=(n.n(r),n(2)),o=n(3),s=(n.n(o),n(1)),a=n(5),l=(n.n(a),function(){function t(t){this.count=0,this.isAdded=!1,this.galleryItemsIndex=0,this.parent=t}return t.prototype.getModuleName=function(){return"ribbonGallery"},t.prototype.destroy=function(){this.parent=null},t.prototype.createGallery=function(t,e){var o=this,s=t.gallerySettings;this.renderGalleryItems(s,!1,t.id,e);var l=this.parent.createElement("button",{id:t.id+"_popupButton",className:"e-ribbon-gallery-button e-icons e-drop-icon"});e.appendChild(l),this.createPopup(t,l),l.onclick=function(e){var i=document.querySelector("#"+t.id+"_galleryPopup");if(i){var l=n.i(r.getComponent)(i,a.Popup);i.classList.contains("e-popup-close")?o.showPopup(l,i,e,s,t.id):o.hidePopup(l,i,e,s,t.id)}},document.onclick=function(t){for(var e,s,l=document.querySelectorAll(".e-ribbon-gallery-popup.e-popup-open"),c=0;c<l.length;c++){var u=n.i(r.getComponent)(l[parseInt(c.toString(),10)],a.Popup);if(!t.target.classList.contains("e-ribbon-gallery-button")){e=l[parseInt(c.toString(),10)].id.replace(/_galleryPopup/g,""),s=n.i(i._56)(o.parent.tabs,e),o.hidePopup(u,l[parseInt(c.toString(),10)],t,s.item.gallerySettings,e);break}if(e=l[parseInt(c.toString(),10)].id.replace(/_galleryPopup/g,""),t.target.id.replace(/_popupButton/g,"")!==e){s=n.i(i._56)(o.parent.tabs,e),o.hidePopup(u,l[parseInt(c.toString(),10)],t,s.item.gallerySettings,e);break}}}},t.prototype.renderGalleryItems=function(t,e,r,o){var s,a,l=this,c=n.i(i._56)(this.parent.tabs,r);c&&c.group&&(c.group.isCollapsible=!1);var u=this.parent.createElement("div",{className:"e-ribbon-gallery-wrapper",id:r+"_galleryWrapper"});e||o.appendChild(u);for(var p=this,d=0;d<t.groups.length;d++){if("break"===function(c){var d=!1;s=p.parent.createElement("ol",{className:"e-ribbon-gallery-container",id:r+"_galleryContainer"+c}),t.groups[parseInt(c.toString(),10)].itemHeight&&"auto"!==t.groups[parseInt(c.toString(),10)].itemHeight&&(d=!0),t.groups[parseInt(c.toString(),10)].cssClass&&s.classList.add(t.groups[parseInt(c.toString(),10)].cssClass);for(var f=0;f<t.groups[parseInt(c.toString(),10)].items.length;f++){if("break"===function(o){a=p.parent.createElement("li",{className:"e-ribbon-gallery-item",id:s.id+"_gallery"+o,attrs:{tabindex:"0"}});var f={name:"beforeItemRender",item:t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)]};if(t.beforeItemRender&&t.beforeItemRender.call(p,f),s.appendChild(a),t.selectedItemIndex&&t.selectedItemIndex===p.count?a.classList.add("e-ribbon-gallery-selected"):t.selectedItemIndex||0!==p.count||(a.classList.add("e-ribbon-gallery-selected"),t.selectedItemIndex=p.count),p.count=p.count+1,a.onclick=function(e){l.setActiveState(e.currentTarget,t,r,!0,e)},a.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||l.setActiveState(e.currentTarget,t,r,!0,e)},a.onmouseover=function(e){var n={event:e,name:"itemHover",item:t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)]};t.itemHover&&t.itemHover.call(l,n)},t.groups[parseInt(c.toString(),10)].itemWidth&&"auto"!==t.groups[parseInt(c.toString(),10)].itemWidth&&(a.style.width=t.groups[parseInt(c.toString(),10)].itemWidth+"px"),t.groups[parseInt(c.toString(),10)].itemHeight&&"auto"!==t.groups[parseInt(c.toString(),10)].itemHeight&&(a.style.height=t.groups[parseInt(c.toString(),10)].itemHeight+"px",a.style.paddingTop="0px",a.style.paddingBottom="0px","Simplified"===p.parent.activeLayout||e||(s.style.flexFlow="wrap")),!t.template&&!t.popupTemplate||t.template&&!t.popupTemplate&&e||t.popupTemplate&&!t.template&&!e){if(t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].htmlAttributes&&n.i(i._68)(a,t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].htmlAttributes),t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].iconCss){var h=p.parent.createElement("span",{className:"e-ribbon-gallery-icons "+t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].iconCss});a.appendChild(h),"Simplified"!==p.parent.activeLayout||e||h.classList.add("e-hidden")}t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].content&&a.appendChild(p.parent.createElement("span",{innerHTML:t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].content,className:"e-ribbon-gallery-text"})),t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].disabled&&a.classList.add("e-disabled"),t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].cssClass&&a.classList.add(t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].cssClass)}if(t.template&&!e&&p.createGalleryTemplate(a,t,r,t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)]),t.popupTemplate&&e&&p.createGalleryPopupTemplate(a,t,r,t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)]),!e&&!d&&t.itemCount===p.count)return u.appendChild(s),p.isAdded=!0,"break"}(f))break}if(p.isAdded&&!e)return"break";if(e?o.appendChild(s):u.appendChild(s),e&&t.groups[parseInt(c.toString(),10)].header){var h=p.parent.createElement("div",{className:"e-ribbon-gallery-header",innerHTML:t.groups[parseInt(c.toString(),10)].header});o.insertBefore(h,s)}}(d))break}this.count=0,this.isAdded=!1},t.prototype.setWrapperWidth=function(t,e,i,o){for(var s=1,a=0,l=!1,c=0;c<i.groups.length;c++){for(var u=0;u<i.groups[parseInt(c.toString(),10)].items.length;u++)if(i.groups[parseInt(c.toString(),10)].itemHeight&&"auto"!==i.groups[parseInt(c.toString(),10)].itemHeight){if(!(t>=s)){l=!0;break}var p=e.querySelector("#"+o+"_galleryContainer"+c+"_gallery"+u);if(p){a+=p.offsetWidth;var d=window.getComputedStyle(p);if(d){var f=parseFloat(d.paddingLeft)+parseFloat(d.paddingRight);n.i(r.isNullOrUndefined)(f)||(a+=f);var h=parseFloat(d.marginLeft)+parseFloat(d.marginRight);n.i(r.isNullOrUndefined)(h)||(a+=h)}}s++}if(l)break}a>0&&(e.style.width=a+"px")},t.prototype.checkAvailableHeight=function(t,e){for(var o=e.querySelectorAll(".e-ribbon-gallery-wrapper"),s=0;s<o.length;s++){var a=!1,l=0,c=o[parseInt(s.toString(),10)],u=c.offsetHeight,p=c.id.replace(/_galleryWrapper/g,""),d=n.i(i._56)(this.parent.tabs,p);if(d){this.setWrapperWidth(d.item.gallerySettings.itemCount,c,d.item.gallerySettings,p);for(var f=0;f<d.item.gallerySettings.groups.length;f++)if(d.item.gallerySettings.groups[parseInt(f.toString(),10)].itemHeight&&"auto"!==d.item.gallerySettings.groups[parseInt(f.toString(),10)].itemHeight)for(var h=0;h<d.item.gallerySettings.groups[parseInt(f.toString(),10)].items.length;h++){var b=c.querySelector("#"+p+"_galleryContainer"+f+"_gallery"+h);if(b)if(l++,a)b.remove();else{if(1===l){var m=0,y=window.getComputedStyle(b);if(y){var g=parseFloat(y.paddingTop)+parseFloat(y.paddingBottom);n.i(r.isNullOrUndefined)(g)||(m+=g);var v=parseFloat(y.marginTop)+parseFloat(y.marginBottom);n.i(r.isNullOrUndefined)(v)||(m+=v)}u>b.offsetHeight+m?u-=b.offsetHeight+m:(a=!0,b.remove())}l===d.item.gallerySettings.itemCount&&(l=0)}}}}},t.prototype.checkCollision=function(t,e){var i=0,o=0;if(e){var s=window.innerWidth,a=window.getComputedStyle(e);a&&(i=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight),n.i(r.isNullOrUndefined)(i)||(s-=i));var l=e.querySelectorAll(".e-ribbon-gallery-container");"auto"!==t.width&&l.forEach(function(t){t.style.flexFlow="wrap"});for(var c=!1,u=0;u<l.length;u++){for(var p=0,d=0;d<l[parseInt(u.toString(),10)].querySelectorAll(".e-ribbon-gallery-item").length;d++){var f=window.getComputedStyle(l[parseInt(u.toString(),10)].querySelectorAll(".e-ribbon-gallery-item")[parseInt(d.toString(),10)]);if(f&&(o=parseFloat(f.marginLeft)+parseFloat(f.marginRight),n.i(r.isNullOrUndefined)(o)||(p+=o)),p+=l[parseInt(u.toString(),10)].querySelectorAll(".e-ribbon-gallery-item")[parseInt(d.toString(),10)].offsetWidth,s<=p&&"auto"===t.width||"auto"!==t.width&&s<=parseInt(t.width.toString(),10)&&s<=p){e.style.width=p+Math.abs(i-o)-l[parseInt(u.toString(),10)].querySelectorAll(".e-ribbon-gallery-item")[parseInt(d.toString(),10)].offsetWidth+"px",c=!0;break}}if(c){l.forEach(function(t){t.style.flexFlow="wrap"});break}}c||("auto"===t.width?(l.forEach(function(t){t.style.flexFlow="nowrap"}),e.style.width="auto"):e.style.width=t.width.toString())}},t.prototype.createPopup=function(t,e){var n=this.parent.createElement("div",{className:"e-ribbon-popup-container",id:t.id+"_popupContainer"});this.renderGalleryItems(t.gallerySettings,!0,t.id,n);var r=this.parent.createElement("div",{className:"e-ribbon-gallery-popup",id:t.id+"_galleryPopup"});document.body.append(r),new a.Popup(r,{relateTo:e,content:n,collision:{X:"fit",Y:"flip"},actionOnScroll:"hide",targetType:"relative",position:{X:"left",Y:"bottom"},enableRtl:this.parent.enableRtl,width:t.gallerySettings.popupWidth,height:t.gallerySettings.popupHeight}).hide()},t.prototype.switchGalleryItems=function(t,e){var r=this.parent.element.querySelector("#"+e+s.I),o=0,a=n.i(i._56)(this.parent.tabs,e);if(r){var l=r.querySelector(".e-ribbon-gallery-wrapper"),c=r.querySelectorAll(".e-ribbon-gallery-icons"),u=r.querySelectorAll(".e-ribbon-gallery-container");if(c.length)for(var p=0;p<c.length;p++)"Simplified"===t?c[parseInt(p.toString(),10)].classList.add("e-hidden"):c[parseInt(p.toString(),10)].classList.remove("e-hidden");if(u.length&&a)for(var d=0;d<a.item.gallerySettings.groups.length;d++)for(var p=0;p<u.length;p++)a.item.gallerySettings.groups[parseInt(d.toString(),10)].itemHeight&&"auto"!==a.item.gallerySettings.groups[parseInt(d.toString(),10)].itemHeight&&e+"_galleryContainer"+d===u[parseInt(p.toString(),10)].id&&(u[parseInt(p.toString(),10)].style.flexFlow="Simplified"===t?"nowrap":"wrap");if(l)for(var d=0;d<a.item.gallerySettings.groups.length;d++)for(var p=0;p<a.item.gallerySettings.groups[parseInt(d.toString(),10)].items.length;p++)if(++o>a.item.gallerySettings.itemCount){var f=l.querySelector("#"+e+"_galleryContainer"+d+"_gallery"+p);f&&("Simplified"===t?f.classList.add("e-hidden"):f.classList.remove("e-hidden"))}}},t.prototype.addOverFlowEvents=function(t,e,s){var l=this;if(e.closest(".e-ribbon-overflow-target")){var c=this.parent.createElement("button",{id:t.id});e.appendChild(c),e.querySelector(".e-ribbon-gallery-wrapper").classList.add("e-hidden"),e.querySelectorAll(".e-ribbon-gallery-container").forEach(function(t){t.classList.add("e-hidden")});var u=e.querySelector("#"+t.id+"_popupButton");u&&u.classList.add("e-hidden");var p=n.i(i._56)(this.parent.tabs,t.id),d=p&&p.group.groupIconCss?p.group.groupIconCss:"",f=p&&p.group.header?p.group.header:"";if(!d)for(var h=0;h<t.gallerySettings.groups.length;h++){for(var b=0;b<t.gallerySettings.groups[parseInt(h.toString(),10)].items.length;b++)if(t.gallerySettings.groups[parseInt(h.toString(),10)].items[parseInt(b.toString(),10)].iconCss){d=t.gallerySettings.groups[parseInt(h.toString(),10)].items[parseInt(b.toString(),10)].iconCss;break}if(d)break}var m=document.querySelector("#"+t.id+"_galleryPopup"),y=n.i(r.getComponent)(m,a.Popup),g=document.querySelector("#"+t.id+"_galleryPopup .e-ribbon-popup-container"),v=new o.DropDownButton({iconCss:d,content:f,target:g,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-gallery-dropdown",disabled:t.disabled,open:function(){l.setFoucsToFirstItem(g,!0,t.id),l.checkCollision(v.dropDown,v.dropDown.element)},beforeClose:function(e){l.popupEvents(e.event,t.gallerySettings,"popupClose",!1)&&(e.cancel=!0)}},c);"auto"!==y.width&&(v.dropDown.width=n.i(r.formatUnit)(y.width)),"auto"!==y.height&&(v.dropDown.height=n.i(r.formatUnit)(y.height),v.dropDown.element.style.height=y.height.toString())}},t.prototype.removeOverFlowEvents=function(t,e){var i=e.querySelector("#"+t.id+"_popupButton");i&&i.classList.remove("e-hidden"),e.querySelector(".e-ribbon-gallery-wrapper").classList.remove("e-hidden"),e.querySelectorAll(".e-ribbon-gallery-container").forEach(function(t){t.classList.remove("e-hidden")});var s=document.querySelector("#"+t.id);if(s){var a=document.querySelector("#"+t.id+"_galleryPopup"),l=n.i(r.getComponent)(s,o.DropDownButton);a.appendChild(l.target),l.destroy(),n.i(r.remove)(s)}},t.prototype.setActiveState=function(t,e,n,r,i){var o,a,l=document.querySelector("#"+n+s.I),c=Array.prototype.slice.call(l.querySelectorAll(".e-ribbon-gallery-selected")),u=document.querySelector("#"+n+"_popupContainer"),p=Array.prototype.slice.call(u.querySelectorAll(".e-ribbon-gallery-selected"));p.length&&(c=c.concat(p));for(var d=0;d<e.groups.length;d++)for(var f=0;f<e.groups[parseInt(d.toString(),10)].items.length;f++)c[0].id===n+"_galleryContainer"+d+"_gallery"+f&&(o=e.groups[parseInt(d.toString(),10)].items[parseInt(f.toString(),10)]),t.id===n+"_galleryContainer"+d+"_gallery"+f&&(a=e.groups[parseInt(d.toString(),10)].items[parseInt(f.toString(),10)]);var h=document.querySelectorAll("#"+t.id),b={cancel:!1,name:"beforeSelect",previousItem:o,currentItem:a,isInteracted:r,event:i};if(e.beforeSelect&&e.beforeSelect.call(this,b),!b.cancel){for(var d=0;d<c.length;d++)c[parseInt(d.toString(),10)].classList.remove("e-ribbon-gallery-selected");for(var d=0;d<h.length;d++)h[parseInt(d.toString(),10)].classList.add("e-ribbon-gallery-selected");for(var m={previousItem:o,currentItem:a,name:"select",isInteracted:r,event:i},y=document.querySelectorAll("#"+n+"_popupContainer .e-ribbon-gallery-item"),d=0;d<y.length;d++)if(y[parseInt(d.toString(),10)].id===t.id){e.selectedItemIndex=d;break}e.select&&e.select.call(this,m)}},t.prototype.popupEvents=function(t,e,n,r){var i={cancel:!1,event:t,name:n};return r&&e.popupOpen?e.popupOpen.call(this,i):!r&&e.popupClose&&e.popupClose.call(this,i),!!i.cancel},t.prototype.showPopup=function(t,e,n,r,i){if(!this.popupEvents(n,r,"popupOpen",!0)){t.show(),this.checkCollision(t,e);var o=document.querySelector("#"+i+"_popupButton");o.classList.add("e-gallery-button-active");var s=o.getBoundingClientRect(),a=Math.abs(e.offsetWidth-s.left)+o.offsetWidth;e.style.left=a+"px",e.style.top=e.getBoundingClientRect().top+2+"px",this.setFoucsToFirstItem(e,!1,i,t,r)}},t.prototype.hidePopup=function(t,e,n,r,i){this.popupEvents(n,r,"popupClose",!1)||(t.hide(),document.querySelector("#"+i+"_popupButton").classList.remove("e-gallery-button-active"))},t.prototype.showGalleryPopup=function(t){var e=n.i(i._56)(this.parent.tabs,t),o=document.querySelector("#"+t+"_galleryPopup"),s=n.i(r.getComponent)(o,a.Popup);this.showPopup(s,o,null,e.item.gallerySettings,t)},t.prototype.hideGalleryPopup=function(t){var e=n.i(i._56)(this.parent.tabs,t),o=document.querySelector("#"+t+"_galleryPopup"),s=n.i(r.getComponent)(o,a.Popup);this.hidePopup(s,o,null,e.item.gallerySettings,t)},t.prototype.setFoucsToFirstItem=function(t,e,n,r,i){var o=this;t.querySelectorAll(".e-ribbon-gallery-item")[0].focus(),this.galleryItemsIndex=0,t.onkeydown=function(s){o.handleGalleryPopupNavigation(s,t,e,n,r,i)}},t.prototype.handleGalleryPopupNavigation=function(t,e,n,r,i,o){var s=e.querySelectorAll(".e-ribbon-gallery-item");s&&("Home"===t.key?(this.galleryItemsIndex=0,s[this.galleryItemsIndex].focus()):"End"===t.key?(this.galleryItemsIndex=s.length-1,s[this.galleryItemsIndex].focus()):"ArrowRight"===t.key||"ArrowDown"===t.key?(this.galleryItemsIndex++,this.galleryItemsIndex!==s.length?s&&s[this.galleryItemsIndex]&&s[this.galleryItemsIndex].focus():(this.galleryItemsIndex=0,s[this.galleryItemsIndex].focus())):"ArrowLeft"===t.key||"ArrowUp"===t.key?0!==this.galleryItemsIndex?(this.galleryItemsIndex--,s&&s[this.galleryItemsIndex]&&s[this.galleryItemsIndex].focus()):(this.galleryItemsIndex=s.length-1,s[this.galleryItemsIndex].focus()):"Enter"===t.key||"Space"===t.code?s[this.galleryItemsIndex].click():"Escape"!==t.key||n||this.hidePopup(i,e,t,o,r))},t.prototype.createGalleryTemplate=function(t,e,o,s){t.classList.add("e-ribbon-gallery-template");var a="ribbon"+o+"galleryTemplate";this.parent.clearTemplate([a]);var l=n.i(i._55)(e.template);s.disabled&&t.classList.add("e-disabled"),s.cssClass&&t.classList.add(s.cssClass),n.i(r.append)(l({items:s},this,a,o+"galleryTemplate",this.parent.isStringTemplate),t),this.parent.renderReactTemplates()},t.prototype.createGalleryPopupTemplate=function(t,e,o,s){t.classList.add("e-ribbon-gallery-popup-template");var a="ribbon"+o+"galleryPopupTemplate";this.parent.clearTemplate([a]);var l=n.i(i._55)(e.popupTemplate);s.disabled&&t.classList.add("e-disabled"),s.cssClass&&t.classList.add(s.cssClass),n.i(r.append)(l({items:s},this,a,o+"galleryPopupTemplate",this.parent.isStringTemplate),t),this.parent.renderReactTemplates()},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(9),s=(n.n(o),n(6)),a=n(3),l=(n.n(a),n(7)),c=n(5),u=(n.n(c),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 c=this,u=t.groupButtonSettings;this.count=0;var p=this.parent.createElement("div",{id:t.id+i.g,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.g+d,className:i.J});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(l.e)(f,u.items[parseInt(d.toString(),10)].htmlAttributes),u.items[parseInt(d.toString(),10)].content&&f.classList.add(i.K);var h=e.querySelector("#"+t.id+i.g+d);u.selection===s.d.Single?p.classList.add(i.L):p.classList.add(i.M),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(l.c)(u.items[parseInt(d.toString(),10)].ribbonTooltipSettings)&&(f.classList.add(i.o),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,y=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(;y<t.groupButtonSettings.items.length&&!this.isSelected&&!b;)t.groupButtonSettings.items[parseInt(y.toString(),10)].iconCss&&(b=t.groupButtonSettings.items[parseInt(y.toString(),10)].iconCss,this.isSelected=!0),y++;var g=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 v=g.dropDown;this.addGroupButtonHeader(t.id,u,v.element)}h.onclick=h.onkeydown=function(){c.handleFocusState(t,e)},p.onkeydown=function(e){"Simplified"===c.parent.activeLayout&&c.handleGroupButtonNavigation(e,t)},n.i(l.f)(p,this.parent),this.isSelected=!1}},t.prototype.groupButtonClicked=function(t,e,o){for(var l,c,u=[],p=[],d=[],f=0;f<o.items.length;f++)document.querySelector("#"+e.id+i.g+f)&&document.querySelector("#"+e.id+i.g+f).classList.contains("e-active")&&u.push(o.items[parseInt(f.toString(),10)]);document.querySelector("#"+e.id+i.g+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.g).classList.contains(i.M)&&(document.querySelector("#"+e.id+i.g).classList.remove(i.M),document.querySelector("#"+e.id+i.g).classList.add(i.L));for(var f=0;f<o.items.length;f++)document.querySelector("#"+e.id+i.g+f)&&document.querySelector("#"+e.id+i.g+f).classList.contains("e-active")&&(document.querySelector("#"+e.id+i.g+f).classList.remove("e-active"),o.items[parseInt(f.toString(),10)].setProperties({selected:!1},!0));document.querySelector("#"+e.id+i.g+t).classList.toggle("e-active"),o.items[parseInt(t.toString(),10)].setProperties({selected:!0},!0),document.querySelector("#"+e.id+i.g+t).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&(this.grpBtnIndex=t,l=document.querySelector("#"+e.id),c=n.i(r.getComponent)(l,a.DropDownButton),c.setProperties({iconCss:o.items[parseInt(t.toString(),10)].iconCss}))}else{document.querySelector("#"+e.id+i.g).classList.contains(i.L)&&(document.querySelector("#"+e.id+i.g).classList.remove(i.L),document.querySelector("#"+e.id+i.g).classList.add(i.M)),document.querySelector("#"+e.id+i.g+t).classList.toggle("e-active"),document.querySelector("#"+e.id+i.g+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.g+m)&&document.querySelector("#"+e.id+i.g+m).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&m!==t&&(this.isSelected=!0,b++);if("Simplified"===this.parent.activeLayout){var y=null,g=0;if(l=document.querySelector("#"+e.id),c=n.i(r.getComponent)(l,a.DropDownButton),this.isSelected){if(1===b&&!document.querySelector("#"+e.id+i.g+t).classList.contains("e-active"))for(var m=0;m<o.items.length;m++)document.querySelector("#"+e.id+i.g+m)&&document.querySelector("#"+e.id+i.g+m).classList.contains("e-active")&&(y=o.items[parseInt(m.toString(),10)].iconCss)}else document.querySelector("#"+e.id+i.g+t).classList.contains("e-active")&&(y=o.items[parseInt(t.toString(),10)].iconCss);for(;g<o.items.length&&!y;)o.items[parseInt(g.toString(),10)].iconCss&&(y=o.items[parseInt(g.toString(),10)].iconCss),g++;c.setProperties({iconCss:y}),this.grpBtnIndex=t}this.isSelected=!1}document.querySelector("#"+e.id+i.g+t).classList.contains("e-active")&&d.push(o.items[parseInt(t.toString(),10)]);var v={previousItems:u,selectedItems:d};o.items[parseInt(t.toString(),10)].click&&o.items[parseInt(t.toString(),10)].click.call(this,v)}},t.prototype.switchGroupButton=function(t,e){var o=this,c=t.groupButtonSettings,u=null,p=0,d=0;if("Simplified"===this.parent.activeLayout){var f=e.querySelector("#"+t.id+i.g),h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var b=0;b<c.items.length;b++)document.querySelector("#"+t.id+i.g+b)&&(document.querySelector("#"+t.id+i.g+b).classList.contains("e-active")&&c.selection===s.d.Single?u=c.items[parseInt(b.toString(),10)].iconCss:document.querySelector("#"+t.id+i.g+b).classList.contains("e-active")&&c.selection===s.d.Multiple&&(p++,1===p?u=c.items[parseInt(b.toString(),10)].iconCss:p>1&&(u=null)));for(;d<c.items.length&&!u;)c.items[parseInt(d.toString(),10)].iconCss&&(u=c.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(c.header){var y=m.dropDown;this.addGroupButtonHeader(t.id,c,y.element)}h.onclick=h.onkeydown=function(){o.handleFocusState(t,e)},f.onkeydown=function(e){"Simplified"===o.parent.activeLayout&&o.handleGroupButtonNavigation(e,t)},n.i(l.f)(f,this.parent)}else{var g=e.querySelector("#"+t.id),m=n.i(r.getComponent)(g,a.DropDownButton);e.appendChild(m.target),g&&(m.destroy(),n.i(r.remove)(g))}},t.prototype.handleFocusState=function(t,e){if(e.querySelector("#"+t.id).classList.contains("e-active")){var n=document.querySelector("#"+t.id+"_grpbtn").querySelector("."+i.J+".e-active");n?n.focus():document.querySelector("#"+t.id+i.g+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.a,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),l=s.target,c=!1;"Simplified"===this.parent.activeLayout&&l.closest(".e-ribbon-dropdown-group-button").classList.contains(i.N)&&(c=!0),"Tab"===t.key&&t.preventDefault();var u=e.groupButtonSettings;"ArrowRight"===t.key&&!c||"ArrowDown"===t.key&&c?!this.parent.enableRtl||"ArrowDown"===t.key&&c?(this.grpBtnIndex++,this.grpBtnIndex<u.items.length?document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus())):0===this.grpBtnIndex?(this.grpBtnIndex=u.items.length-1,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus()):("ArrowLeft"===t.key&&!c||"ArrowUp"===t.key&&c)&&(!this.parent.enableRtl||"ArrowUp"===t.key&&c?0===this.grpBtnIndex?(this.grpBtnIndex=u.items.length-1,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus()):(this.grpBtnIndex++,this.grpBtnIndex<u.items.length?document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus())))},t.prototype.addOverFlowEvents=function(t,e,o){var s=this,l=t.groupButtonSettings,c=!0,u=e.querySelector("#"+t.id),p=n.i(r.getComponent)(u,a.DropDownButton);p.setProperties({cssClass:p.cssClass+i.O+i.N,content:l.header?l.header:""});var d=p.target;if(d.children.length){for(var f=0;f<d.children.length;f++)if(l.items[parseInt(f.toString(),10)].content){c=!1;break}c&&d.classList.add("e-icon-btn")}d.onclick=function(){"Simplified"===s.parent.activeLayout&&d.closest(".e-ribbon-dropdown-group-button").classList.contains(i.N)&&(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),l=s.target;l.classList.contains("e-icon-btn")&&l.classList.remove("e-icon-btn");var c=s.cssClass.split(i.O);c=c.filter(function(t){return t!==i.N}),s.setProperties({cssClass:c.join(i.O),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,c.Tooltip).destroy(),i.destroy(),n.i(r.remove)(e)}},t.prototype.updateGroupButtonSize=function(t,e){for(var a,l=e.groupButtonSettings,c=0;c<l.items.length;c++)if(a="Classic"===this.parent.activeLayout?t.querySelector("#"+e.id+i.g+c):document.querySelector("#"+e.id+i.g+c)){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?"":l.items[parseInt(c.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,l=this.parent.createElement("button",{id:t.id});e.appendChild(l);var c=t.splitButtonSettings,u=(s.P+s.O+s.Q+s.O+(c.cssClass?c.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:c.closeActionEvents,cssClass:u+(t.activeSize===o.d.Large?s.O+s.R:""),disabled:t.disabled,iconCss:c.iconCss,items:c.items,target:c.target,beforeClose:function(t){c.beforeClose&&c.beforeClose.call(a,t)},beforeItemRender:c.beforeItemRender,beforeOpen:c.beforeOpen,close:function(){p.wrapper.classList.remove(s.S),c.close&&c.close.call(a)},created:c.created,open:function(){p.wrapper.classList.add(s.S),c.open&&c.open.call(a)},select:c.select,click:function(t){c.click&&c.click.call(a,t)}},l);c.htmlAttributes&&n.i(o._68)(l,c.htmlAttributes);var d=l.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.T)},this),r.EventHandler.add(f,"mouseleave",function(){f.classList.remove(s.T)},this)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var c=n.i(r.getComponent)(l,i.SplitButton);c.cssClass=c.cssClass+s.O+s.U,c.dataBind();var u=l.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(),c.wrapper.classList.remove("e-ribbon-open"),d.querySelector(".e-focused").click())};var f;c.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(a,e),f=e.event?e.event.target:null},c.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(a,e),o.toggle()},c.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(a,e),c.wrapper.classList.remove(s.S),f&&!f.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var o=this,a=e.querySelector("#"+t.id),l=n.i(r.getComponent)(a,i.SplitButton),c=l.cssClass.split(s.O);c=c.filter(function(t){return t!==s.U}),l.cssClass=c.join(s.O),l.dataBind(),l.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(o,e)},l.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(o,e)},l.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(o,e),l.wrapper.classList.remove(s.S)}},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._62)(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._56)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.splitButtonSettings,t);var l=n.i(o._62)(this.parent,e,a);if(l){var c=n.i(r.getComponent)(l,i.SplitButton);t.cssClass&&(t.cssClass=(s.Q+s.O+s.P+s.O+t.cssClass).trim(),t.cssClass=a.item.activeSize===o.d.Large?(s.R+s.O+t.cssClass).trim():t.cssClass,c.cssClass=t.cssClass),delete t.open,delete t.click,delete t.close,delete t.beforeClose,c.setProperties(t),t.content&&this.setContent(a.item,c)}}},t.prototype.updateSplitButtonSize=function(t,e){var a=n.i(r.getComponent)(t,i.SplitButton),l=a.cssClass.split(s.O);e.activeSize===o.d.Large?l.push(s.R):l=l.filter(function(t){return t!==s.R}),a.cssClass=l.join(s.O),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 c});var r=n(0),i=(n.n(r),n(14)),o=n(15),s=n(8),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)}}(),l=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 a(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},l([n.i(r.Property)("File")],e.prototype,"text",void 0),l([n.i(r.Property)("")],e.prototype,"keyTip",void 0),l([n.i(r.Property)(!1)],e.prototype,"visible",void 0),l([n.i(r.Property)("auto")],e.prototype,"height",void 0),l([n.i(r.Property)("auto")],e.prototype,"width",void 0),l([n.i(r.Property)(null)],e.prototype,"target",void 0),l([n.i(r.Complex)({},i.a)],e.prototype,"backButton",void 0),l([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),l([n.i(r.Property)("")],e.prototype,"template",void 0),l([n.i(r.Complex)({},s.a)],e.prototype,"ribbonTooltipSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(30)),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)(!1)],e.prototype,"visible",void 0),s([n.i(r.Property)(!1)],e.prototype,"isSelected",void 0),s([n.i(r.Collection)([],i.a)],e.prototype,"tabs",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),i=(n.n(r),n(10)),o=(n.n(i),n(8)),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},l=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),a([n.i(r.Property)("")],e.prototype,"keyTip",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";var r=n(50);n.d(e,"a",function(){return r.a});var i=n(48);n.d(e,"b",function(){return i.a});var o=n(49);n.d(e,"c",function(){return o.a});var s=n(51);n.d(e,"d",function(){return s.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(0),i=(n.n(r),n(10)),o=(n.n(i),n(2)),s=n(7),a=n(1),l=n(9),c=(n.n(l),n(5)),u=(n.n(c),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),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.q});var n=this.parent.tabObj.element,i=n.querySelector(".e-toolbar");if(n.insertBefore(this.backstageButtonEle,i),this.backstageButton=new l.Button({content:t.text,enableRtl:this.parent.enableRtl,cssClass:a.r,created:function(){n.style.setProperty(a.s,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,c=0;c<t.items.length;c++){t.items[parseInt(c.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.t);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),this.addBackStageMenuKeyTip(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.c)(t.ribbonTooltipSettings)&&(this.backstageButtonEle.classList.add(a.o),this.parent.tooltipData.push({id:this.backstageButtonEle.id,data:t.ribbonTooltipSettings}))},e.prototype.addBackStageMenuKeyTip=function(t){if(t.keyTip&&(this.parent.keyTipElements.backstage||(this.parent.keyTipElements.backstage=[]),this.parent.keyTipElements.backstage.push({id:this.backstageButtonEle.id,type:"backstage",keyTip:t.keyTip})),t.items&&t.items.length){this.parent.keyTipElements.backstageMenu||(this.parent.keyTipElements.backstageMenu=[]);for(var e=0;e<t.items.length;e++)t.items[parseInt(e.toString(),10)].keyTip&&this.parent.keyTipElements.backstageMenu.push({id:t.items[parseInt(e.toString(),10)].id,type:"backstageMenu",keyTip:t.items[parseInt(e.toString(),10)].keyTip})}},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.u)}}},e.prototype.createBackStagePopup=function(t){var e=this;this.popupHTMLElement=this.parent.createElement("div",{id:this.parent.element.id+a.v,className:a.w});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 c.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.x}),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 l.Button({content:t.backButton.text,iconCss:t.backButton.iconCss?t.backButton.iconCss:a.y,enableRtl:this.parent.enableRtl},r),this.menuWrapper.append(r),r.onclick=function(){n.popupHTMLElement.classList.remove(a.t),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.z}),this.menuWrapper.append(this.itemsWrapperEle));var o;e?(o=this.parent.createElement("ul",{id:this.parent.element.id+a.A}),this.itemsWrapperEle.appendChild(o)):(this.ulMenuElem=this.parent.createElement("ul",{id:this.parent.element.id+a.B}),this.itemsWrapperEle.appendChild(this.ulMenuElem)),e?this.footerMenuCtrl=new i.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:a.C,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.C,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.D):this.backstageContentEle=this.parent.createElement("div",{id:t+a.D,className:a.E});var i=n.i(s.d)(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.q+"_template",className:a.F});var e=n.i(s.d)(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.s,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.removeBackstageMenuKeyTip(),this.addBackStageMenuTooltip(t),this.addBackStageMenuKeyTip(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.removeBackstageMenuKeyTip(),this.parent.tabObj.element.style.removeProperty(a.s),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._54)(this.parent.tooltipData,function(e){return e.id===t.backstageButtonEle.id});-1!==e&&(this.backstageButtonEle.classList.remove(a.o),this.parent.tooltipData.splice(e,1))},e.prototype.removeBackstageMenuKeyTip=function(){var t=this;if(this.parent.keyTipElements.backstage&&this.parent.keyTipElements.backstage.length){var e=n.i(o._54)(this.parent.keyTipElements.backstage,function(e){return e.id===t.backstageButtonEle.id});-1!==e&&this.parent.keyTipElements.backstage.splice(e,1)}if(this.parent.keyTipElements.backstageMenu&&this.parent.keyTipElements.backstageMenu.length)for(var r=0;r<this.parent.keyTipElements.backstageMenu.length;r++)this.parent.keyTipElements.backstageMenu.splice(r,1),r--},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)],l=0;l<s.length;l++){var c=s[parseInt(l.toString(),10)];if(o.text===c.text){c.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.t)&&this.popupEle.element.classList.remove(a.t),this.popupEle.hide()},e}(r.Component)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(1),i=n(0),o=(n.n(i),function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonContextualTab"},t.prototype.destroy=function(){this.parent=null},t.prototype.addContextualTabs=function(){for(var t=!1,e=0;e<this.parent.contextualTabs.length;e++)for(var n=0;n<this.parent.contextualTabs[parseInt(e.toString(),10)].tabs.length;n++){this.parent.addTab(this.parent.contextualTabs[parseInt(e.toString(),10)].tabs[parseInt(n.toString(),10)]);var i=this.parent.tabs.length-1,o=this.parent.tabObj.element,s=o.querySelectorAll(".e-toolbar-item")[parseInt(i.toString(),10)];s.classList.add(r.p),s.classList.add("e-hidden"),this.parent.contextualTabs[parseInt(e.toString(),10)].visible&&(this.parent.showTab(this.parent.contextualTabs[parseInt(e.toString(),10)].tabs[parseInt(n.toString(),10)].id,!0),this.parent.contextualTabs[parseInt(e.toString(),10)].isSelected&&!t&&(this.parent.selectTab(this.parent.contextualTabs[parseInt(e.toString(),10)].tabs[0].id),t=!0))}},t.prototype.updateContextualTabs=function(t,e){if(!n.i(i.isNullOrUndefined)(t.visible))for(var r=0;r<e.tabs.length;r++)t.visible?this.parent.showTab(e.tabs[parseInt(r.toString(),10)].id,!0):this.parent.hideTab(e.tabs[parseInt(r.toString(),10)].id,!0);if(!n.i(i.isNullOrUndefined)(t.isSelected))if(t.isSelected&&e.visible)this.parent.selectTab(e.tabs[0].id);else for(var o=this.parent.tabObj.element,r=0;r<this.parent.tabs.length;r++){var s=o.querySelectorAll(".e-toolbar-item")[parseInt(r.toString(),10)];if(!s.classList.contains("e-hidden")&&!s.classList.contains("e-disable")){this.parent.selectTab(this.parent.tabs[parseInt(r.toString(),10)].id);break}}if(t.tabs){var a=this;for(var l in t.tabs)!function(t){var n=parseInt(t,10),r=a.parent.tabs.filter(function(t){return t.id===e.tabs[parseInt(n.toString(),10)].id})[0];a.parent.updateTab(r)}(l)}},t}())},function(t,e,n){"use strict";n.d(e,"a",function(){return l});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),l=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.G});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.s,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),this.addFileMenuKeytip()}},t.prototype.addFileMenuTooltip=function(t){n.i(s._63)(t.ribbonTooltipSettings)&&(this.ddbElement.classList.add(a.o),this.parent.tooltipData.push({id:this.ddbElement.id,data:t.ribbonTooltipSettings}))},t.prototype.addFileMenuKeytip=function(){this.parent.fileMenu.keyTip&&(this.parent.keyTipElements.filemenu=[],this.parent.keyTipElements.filemenu.push({id:this.ddbElement.id,type:"filemenu",keyTip:this.parent.fileMenu.keyTip}))},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.H});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.s,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.removeFileMenuKeytip(),this.addFileMenuTooltip(t),this.addFileMenuKeytip()):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.removeFileMenuKeytip(),this.parent.tabObj.element.style.removeProperty(a.s),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._54)(this.parent.tooltipData,function(e){return e.id===t.ddbElement.id});-1!==e&&(this.ddbElement.classList.remove(a.o),this.parent.tooltipData.splice(e,1))},t.prototype.removeFileMenuKeytip=function(){var t=this;if(this.parent.keyTipElements.filemenu){var e=n.i(s._54)(this.parent.keyTipElements.filemenu,function(e){return e.id===t.ddbElement.id});-1!==e&&this.parent.keyTipElements.filemenu.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";n.d(e,"a",function(){return c});var r=n(7),i=n(2),o=n(1),s=n(5),a=(n.n(s),n(0)),l=(n.n(a),n(3)),c=(n.n(l),function(){function t(t){this.isKeytipPopupOpen=!1,this.parent=t}return t.prototype.getModuleName=function(){return"ribbonKeyTip"},t.prototype.destroy=function(){this.parent=null},t.prototype.createKeytip=function(t){if(this.parent.keyTipElements){var e=void 0;if("tab"===t){for(var n=0;n<this.parent.tabs.length;n++)this.parent.keyTipElements[parseInt(n.toString(),10)]&&(e=this.parent.keyTipElements[n][t],this.createKeyTipElement(e[0].id,e[0].keyTip,"tab","center","bottom",!0));this.parent.keyTipElements.filemenu&&(e=this.parent.keyTipElements.filemenu,this.createKeyTipElement(e[0].id,e[0].keyTip,"filemenu")),this.parent.keyTipElements.backstage&&(e=this.parent.keyTipElements.backstage,this.createKeyTipElement(e[0].id,e[0].keyTip,"backstage")),this.parent.keyTipElements.collapse&&(e=this.parent.keyTipElements.collapse,this.createKeyTipElement(e[0].id,e[0].keyTip,"collapse")),this.parent.keyTipElements.taboverflow&&(e=this.parent.keyTipElements.taboverflow,this.createKeyTipElement(e[0].id,e[0].keyTip,"taboverflow"))}else if("popupitem"===t){if(this.parent.keyTipElements[this.parent.selectedTab].popupitem)for(var r=this.parent.keyTipElements[this.parent.selectedTab].popupitem,n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].popupitem).length;n++)this.createKeyTipElement(r[parseInt(n.toString(),10)].id,r[parseInt(n.toString(),10)].keyTip,"popupitem","left","top",!1,!0)}else if("backstageMenu"===t){if(this.parent.keyTipElements.backstageMenu)for(var i=this.parent.keyTipElements.backstageMenu,n=0;n<Object.keys(this.parent.keyTipElements.backstageMenu).length;n++)this.createKeyTipElement(i[parseInt(n.toString(),10)].id,i[parseInt(n.toString(),10)].keyTip,"backstageMenu","left","center")}else if("grpoverflowpopup"===t&&"Classic"===this.parent.activeLayout){if(this.parent.keyTipElements[this.parent.selectedTab].grpoverflowpopup&&this.calculateItemPosition(t),this.parent.keyTipElements[this.parent.selectedTab].launcher)for(var n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].launcher).length;n++)e=this.parent.keyTipElements[this.parent.selectedTab].launcher,this.createKeyTipElement(e[parseInt(n.toString(),10)].id,e[parseInt(n.toString(),10)].keyTip,"launcher","center","bottom",!1,!0)}else{if(this.calculateItemPosition(t),"Classic"===this.parent.activeLayout){if(this.parent.keyTipElements[this.parent.selectedTab].launcher)for(var n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].launcher).length;n++)e=this.parent.keyTipElements[this.parent.selectedTab].launcher,this.createKeyTipElement(e[parseInt(n.toString(),10)].id,e[parseInt(n.toString(),10)].keyTip,"launcher");if(this.parent.keyTipElements[this.parent.selectedTab].grpoverflow)for(var n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].grpoverflow).length;n++)e=this.parent.keyTipElements[this.parent.selectedTab].grpoverflow,this.createKeyTipElement(e[parseInt(n.toString(),10)].id,e[parseInt(n.toString(),10)].keyTip,"grpoverflow")}if("Simplified"===this.parent.activeLayout&&(this.parent.keyTipElements.overflowbtn&&(e=this.parent.keyTipElements.overflowbtn,this.createKeyTipElement(e[0].id,e[0].keyTip,"overflowbtn")),this.parent.keyTipElements[this.parent.selectedTab].grpofbtn))for(var n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].grpofbtn).length;n++)e=this.parent.keyTipElements[this.parent.selectedTab].grpofbtn,this.createKeyTipElement(e[parseInt(n.toString(),10)].id,e[parseInt(n.toString(),10)].keyTip,"grpofbtn")}}},t.prototype.calculateItemPosition=function(t,e,i){void 0===e&&(e=!1);var o,s,a;if(a=this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(),10)][t])for(var l=0;l<Object.keys(this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(),10)][t]).length;l++)if(e&&a[parseInt(l.toString(),10)].keyTip===i||!e){var c=a[parseInt(l.toString(),10)].id;a[parseInt(l.toString(),10)].id.includes("_grpbtn")&&(c=a[parseInt(l.toString(),10)].id.replace(/_grpbtn\d+/,""));var u=n.i(r.a)(this.parent.tabs,c);u&&"Column"===u.group.orientation&&u.collection.items.length>1&&"Simplified"!==this.parent.activeLayout?0===u.itemIndex?(o="center",s="top"):1===u.itemIndex?(o="center",s="center"):(o="center",s="bottom"):u&&"Row"===u.group.orientation&&u.group.collections.length>1&&"Simplified"!==this.parent.activeLayout&&(0===u.collectionIndex?(o="center",s="top"):(o="center",s="bottom")),"item"===t?this.createKeyTipElement(a[parseInt(l.toString(),10)].id,a[parseInt(l.toString(),10)].keyTip,t,o,s):this.createKeyTipElement(a[parseInt(l.toString(),10)].id,a[parseInt(l.toString(),10)].keyTip,t,o,s,!1,!0)}},t.prototype.createKeyTipElement=function(t,e,n,r,i,a,l){void 0===r&&(r="center"),void 0===i&&(i="bottom"),void 0===a&&(a=!1),void 0===l&&(l=!1);var c,u=document.querySelector("#"+t),p=!1;if(a&&(u=document.querySelector("#"+t+o.a)),u)if(u.closest(".e-ribbon-group-overflow-ddb")&&(p=!0),a&&l&&u.closest(".e-toolbar-pop")&&(p=!0),u.closest(".e-split-btn-wrapper")){var d=u.closest(".e-split-btn-wrapper");c=d.closest(".e-ribbon-item").id}else u.closest(".e-colorpicker-wrapper")&&(u=u.closest(".e-colorpicker-wrapper"),c=u.closest(".e-ribbon-item").id);if((u&&u.offsetParent||a&&l)&&(l&&p||!l)){var f=this.parent.createElement("div",{className:o.b,id:t+o.c});document.body.append(f);new s.Popup(f,{relateTo:"#"+(a?t+o.a:c||t),content:e,collision:{X:"fit",Y:"flip"},targetType:"relative",position:{X:r,Y:i},enableRtl:this.parent.enableRtl}).show(),this.calculateKeyTipPosition(u,f,n,i,a&&l),this.parent.isKeytipOpen=!0}},t.prototype.calculateKeyTipPosition=function(t,e,n,r,i){void 0===i&&(i=!1);var o=t.getBoundingClientRect();"backstageMenu"===n?(e.style.top=o.top+e.offsetHeight/2+"px",e.style.left=o.left+t.offsetWidth/5+"px"):"popupitem"!==n&&(e.style.left=o.left+(o.width-e.offsetWidth)/2+"px"),"filemenu"===n||"backstage"===n?e.style.top=o.top+(t.offsetHeight-t.offsetHeight/3+e.offsetHeight/6)+"px":"item"===n&&"top"===r&&(e.style.top=o.top-t.offsetHeight/2+"px")},t.prototype.keytipPress=function(t,e){var i=this;void 0===e&&(e=!1),this.isKeytipPresent=!1;for(var s=0;s<Object.keys(this.parent.keyTipElements).length&&!this.isKeytipPresent;s++)if(this.parent.keyTipElements[parseInt(s.toString(),10)]){for(var a=0;a<Object.keys(this.parent.keyTipElements[parseInt(s.toString(),10)]).length&&!this.isKeytipPresent;a++)for(var l=this.parent.keyTipElements[parseInt(s.toString(),10)][Object.keys(this.parent.keyTipElements[parseInt(s.toString(),10)])[parseInt(a.toString(),10)]],c=0;c<l.length&&!this.isKeytipPresent;c++)if(t.toUpperCase()===l[parseInt(c.toString(),10)].keyTip){var u=document.querySelector("#"+l[parseInt(c.toString(),10)].id+o.c);if(u||e)if(this.isKeytipPresent=!0,this.removeKeytip(),"tab"===l[parseInt(c.toString(),10)].type)s!==this.parent.selectedTab?(this.parent.tabObj.select(s),setTimeout(function(){var t=i.parent.tabObj.element.querySelector(".e-nav-active");t&&t.click(),i.createKeytip("item")},600)):this.createKeytip("item");else if("item"===l[parseInt(c.toString(),10)].type||"grpoverflowpopup"===l[parseInt(c.toString(),10)].type||"popupitem"===l[parseInt(c.toString(),10)].type)if(document.getElementById(l[parseInt(c.toString(),10)].id)&&document.getElementById(l[parseInt(c.toString(),10)].id).classList.contains("e-ribbon-group-button"))document.getElementById(l[parseInt(c.toString(),10)].id).click();else{var p=void 0;if(l[parseInt(c.toString(),10)].id.includes("_popupButton")){var d=l[parseInt(c.toString(),10)].id.replace(/_popupButton/g,"");p=n.i(r.a)(this.parent.tabs,d)}else p=n.i(r.a)(this.parent.tabs,l[parseInt(c.toString(),10)].id);(!e||e&&p.tabIndex===this.parent.selectedTab)&&this.clickItems(p,l,c,!1,e)}else if("grpoverflow"===l[parseInt(c.toString(),10)].type||"grpofbtn"===l[parseInt(c.toString(),10)].type||"launcher"===l[parseInt(c.toString(),10)].type){var f=document.querySelector("#"+l[parseInt(c.toString(),10)].id);if(this.removeKeytip(),f){var h=l[parseInt(c.toString(),10)].id;if(e){if(l[parseInt(c.toString(),10)].id.includes("_launcher")||l[parseInt(c.toString(),10)].id.includes("_sim_grp_overflow")||l[parseInt(c.toString(),10)].id.includes("_overflow_dropdown")){h=l[parseInt(c.toString(),10)].id.replace(/_launcher|_sim_grp_overflow|_overflow_dropdown/g,"");var p=n.i(r.b)(this.parent.tabs,h);p.tabIndex===this.parent.selectedTab&&this.clickItems(p,l,c,!0,e,f)}}else this.clickItems(null,l,c,!0,e,f)}}}}else this.parent.keyTipElements&&this.commonItemsKeyTipPress(t,Object.keys(this.parent.keyTipElements)[parseInt(s.toString(),10)],e)},t.prototype.clickItems=function(t,e,r,i,s,c){if(i)c.click(),"launcher"!==e[parseInt(r.toString(),10)].type&&(this.isKeytipPopupOpen=!0,"grpoverflow"===e[parseInt(r.toString(),10)].type?this.createKeytip("grpoverflowpopup"):this.createKeytip("popupitem"));else{var u=e[parseInt(r.toString(),10)].id;document.querySelector("#"+u)&&s&&("Simplified"===this.parent.activeLayout?document.querySelector("#"+u).closest("#"+t.group.id+"_sim_grp_overflow-popup")&&document.querySelector("#"+u).closest("#"+t.group.id+"_sim_grp_overflow-popup").classList.contains("e-popup-close")?document.querySelector("#"+t.group.id+"_sim_grp_overflow").click():document.querySelector("#"+u).closest("#"+this.parent.tabObj.element.id+o.d+"-popup")&&document.querySelector("#"+u).closest("#"+this.parent.tabObj.element.id+o.d+"-popup").classList.contains("e-popup-close")&&document.querySelector("#"+this.parent.tabObj.element.id+o.d).click():document.querySelector("#"+u).closest("#"+t.group.id+o.e+o.f+"-popup")&&document.querySelector("#"+u).closest("#"+t.group.id+o.e+o.f+"-popup").classList.contains("e-popup-close")&&document.querySelector("#"+t.group.id+o.e+o.f).click());switch(this.parent.getItemModuleName(t.item)){case"btn":this.parent.ribbonButtonModule.click(u);break;case"dropdown-btn":this.parent.ribbonDropDownModule.toggle(u);break;case"split-btn":this.parent.ribbonSplitButtonModule.toggle(u);break;case"checkbox":this.parent.ribbonCheckBoxModule.click(u);break;case"colorpicker":this.parent.ribbonColorPickerModule.toggle(u);break;case"combobox":var p=document.querySelector("#"+u);setTimeout(function(){p.focus()},100);break;case"gallery":document.querySelector("#"+u).click();break;case"template":document.querySelector("#"+u).focus();break;case"group-btn":var d=document.querySelector("#"+u);if(d){n.i(a.getInstance)(d,l.DropDownButton).toggle();for(var f=0;f<t.item.groupButtonSettings.items.length;f++)t.item.groupButtonSettings.items[parseInt(f.toString(),10)].keyTip&&this.createKeyTipElement(u+(o.g+f),t.item.groupButtonSettings.items[parseInt(f.toString(),10)].keyTip,"item")}}}},t.prototype.commonItemsKeyTipPress=function(t,e,n){var r=this;if(this.parent.keyTipElements[e]){var i=!1,s=this.parent.keyTipElements[e],a=void 0;if(s)if("backstageMenu"===e){for(var l=0;l<Object.keys(this.parent.keyTipElements[e]).length;l++)if(s[parseInt(l.toString(),10)].keyTip===t.toUpperCase()&&(a=document.querySelector("#"+s[parseInt(l.toString(),10)].id),document.querySelector("#"+a.id+o.c)||n)){i=!0,n&&document.querySelector(".e-ribbon-backstage-popup").classList.contains("e-popup-close")&&this.parent.tabObj.element.querySelector(".e-ribbon-backstage").click();break}}else s[0]&&s[0].keyTip===t.toUpperCase()&&(a=document.querySelector("#"+s[0].id),(document.querySelector("#"+s[0].id+o.c)||n)&&(i=!0));i&&(this.removeKeytip(),this.isKeytipPresent=!0,a&&(a.click(),"backstage"===e?this.createKeytip("backstageMenu"):"overflowbtn"===e?(this.isKeytipPopupOpen=!0,this.createKeytip("popupitem")):"taboverflow"===e&&setTimeout(function(){for(var t=0;t<Object.keys(r.parent.keyTipElements).length;t++)if(r.parent.keyTipElements[parseInt(t.toString(),10)]){var e=r.parent.keyTipElements[parseInt(t.toString(),10)].tab;r.createKeyTipElement(e[0].id,e[0].keyTip,"tab","center","bottom",!0,!0)}},600)))}},t.prototype.removeKeytip=function(t){var e=this,r=document.querySelectorAll(".e-ribbon-keytip"),s=!1;this.parent.keysPress="";for(var l=this,c=0;c<r.length;c++)!function(c){var u=r[parseInt(c.toString(),10)];if("Escape"===t&&l.parent.keyTipElements&&l.parent.keyTipElements[l.parent.selectedTab]){for(var p=0;p<Object.keys(l.parent.keyTipElements[l.parent.selectedTab]).length;p++){var d=Object.keys(l.parent.keyTipElements[l.parent.selectedTab])[p];if(l.parent.keyTipElements[l.parent.selectedTab][d]){var f=n.i(i._54)(l.parent.keyTipElements[l.parent.selectedTab][d],function(t){return t.id+o.c===r[parseInt(c.toString(),10)].id});if(-1!==f){if("item"===d&&!l.isKeytipPopupOpen||"grpoverflow"===d&&"Classic"===l.parent.activeLayout){l.createKeytip("tab"),t="",s=!0;break}if(l.isKeytipPopupOpen&&("popupitem"===d&&"Simplified"===l.parent.activeLayout||"grpoverflowpopup"===d&&"Classic"===l.parent.activeLayout)){l.createKeytip("item"),t="",s=!0;break}}}}for(var h=0;h<Object.keys(l.parent.keyTipElements).length;h++)if(l.parent.keyTipElements[parseInt(h.toString(),10)]){for(var b=l.parent.keyTipElements[parseInt(h.toString(),10)].tab,p=0;p<b.length;p++)if(u.id===b[0].id+o.c&&document.querySelector("#"+b[0].id+o.a).closest(".e-toolbar-pop")){var m=l.parent.tabObj.element.querySelector(".e-nav-active");m.click(),setTimeout(function(){e.createKeytip("tab")},600),t="",s=!0;break}if(s)break}if(!s&&l.parent.keyTipElements.backstageMenu){var f=n.i(i._54)(l.parent.keyTipElements.backstageMenu,function(t){return t.id+o.c===r[parseInt(c.toString(),10)].id});-1!==f&&(l.createKeytip("tab"),t="",s=!0)}}u&&n.i(a.remove)(u)}(c);this.isKeytipPopupOpen=!1,s||(this.parent.isKeytipOpen=!1)},t.prototype.showKeyTips=function(t){this.parent.enableKeyTips&&(t?this.keytipPress(t,!0):this.createKeytip("tab"))},t.prototype.hideKeyTips=function(){this.removeKeytip()},t}())},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);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,"RibbonContextualTabDirective",function(){return r.i}),n.d(e,"RibbonContextualTabsDirective",function(){return r.j}),n.d(e,"RibbonComponent",function(){return r.k});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,"RIBBON_KEYTIP",function(){return o.s}),n.d(e,"SPACE",function(){return o.t}),n.d(e,"HORIZONTAL_SCROLLBAR",function(){return o.u}),n.d(e,"HIDE_CSS",function(){return o.v}),n.d(e,"RIBBON_TAB",function(){return o.w}),n.d(e,"RIBBON_CONTEXTUAL_TAB",function(){return o.x}),n.d(e,"RIBBON_TAB_ACTIVE",function(){return o.y}),n.d(e,"RIBBON_TAB_ITEM",function(){return o.z}),n.d(e,"RIBBON_COLLAPSE_BUTTON",function(){return o.A}),n.d(e,"RIBBON_EXPAND_BUTTON",function(){return o.B}),n.d(e,"RIBBON_COLLAPSIBLE",function(){return o.C}),n.d(e,"RIBBON_OVERALL_OF_BUTTON",function(){return o.D}),n.d(e,"RIBBON_GROUP_OF_BUTTON",function(){return o.E}),n.d(e,"RIBBON_OVERFLOW_TARGET",function(){return o.F}),n.d(e,"RIBBON_OVERFLOW",function(){return o.G}),n.d(e,"TAB_CONTENT",function(){return o.H}),n.d(e,"RIBBON_MINIMIZE",function(){return o.I}),n.d(e,"RIBBON_GROUP",function(){return o.J}),n.d(e,"RIBBON_SINGLE_BUTTON_SELECTION",function(){return o.K}),n.d(e,"RIBBON_MULTIPLE_BUTTON_SELECTION",function(){return o.L}),n.d(e,"RIBBON_GROUP_BUTTON",function(){return o.M}),n.d(e,"RIBBON_GROUP_BUTTON_OVERFLOW_POPUP",function(){return o.N}),n.d(e,"RIBBON_GROUP_BUTTON_CONTENT",function(){return o.O}),n.d(e,"RIBBON_GROUP_CONTAINER",function(){return o.P}),n.d(e,"RIBBON_OF_TAB_CONTAINER",function(){return o.Q}),n.d(e,"RIBBON_OF_GROUP_CONTAINER",function(){return o.R}),n.d(e,"RIBBON_GROUP_CONTENT",function(){return o.S}),n.d(e,"RIBBON_GROUP_HEADER",function(){return o.T}),n.d(e,"RIBBON_OVERFLOW_HEADER",function(){return o.U}),n.d(e,"RIBBON_GROUP_OVERFLOW",function(){return o.V}),n.d(e,"RIBBON_GROUP_OVERFLOW_DDB",function(){return o.W}),n.d(e,"RIBBON_LAUNCHER",function(){return o.X}),n.d(e,"RIBBON_LAUNCHER_ICON_ELE",function(){return o.Y}),n.d(e,"RIBBON_LAUNCHER_ICON",function(){return o.Z}),n.d(e,"RIBBON_COLLECTION",function(){return o._0}),n.d(e,"RIBBON_ITEM",function(){return o._1}),n.d(e,"RIBBON_ROW",function(){return o._2}),n.d(e,"RIBBON_COLUMN",function(){return o._3}),n.d(e,"RIBBON_LARGE_ITEM",function(){return o._4}),n.d(e,"RIBBON_MEDIUM_ITEM",function(){return o._5}),n.d(e,"RIBBON_SMALL_ITEM",function(){return o._6}),n.d(e,"RIBBON_CONTENT_HEIGHT",function(){return o._7}),n.d(e,"DROPDOWNBUTTON",function(){return o._8}),n.d(e,"DROPDOWNBUTTON_HIDE",function(){return o._9}),n.d(e,"RIBBON_TEMPLATE",function(){return o._10}),n.d(e,"RIBBON_HELP_TEMPLATE",function(){return o._11}),n.d(e,"RIBBON_TOOLTIP",function(){return o._12}),n.d(e,"RIBBON_TOOLTIP_TARGET",function(){return o._13}),n.d(e,"RIBBON_TOOLTIP_TITLE",function(){return o._14}),n.d(e,"RIBBON_TOOLTIP_CONTENT",function(){return o._15}),n.d(e,"RIBBON_TOOLTIP_ICON",function(){return o._16}),n.d(e,"RIBBON_TOOLTIP_CONTAINER",function(){return o._17}),n.d(e,"RIBBON_TEXT_CONTAINER",function(){return o._18}),n.d(e,"RIBBON_SIMPLIFIED_MODE",function(){return o._19}),n.d(e,"RIBBON_BACKSTAGE_POPUP",function(){return o._20}),n.d(e,"RIBBON_BACKSTAGE_OPEN",function(){return o._21}),n.d(e,"RIBBON_BACKSTAGE_CONTENT",function(){return o._22}),n.d(e,"RIBBON_SELECTED_CONTENT",function(){return o._23}),n.d(e,"RIBBON_BACKSTAGE",function(){return o._24}),n.d(e,"RIBBON_BACKSTAGE_MENU",function(){return o._25}),n.d(e,"RIBBON_BACKSTAGE_TEMPLATE",function(){return o._26}),n.d(e,"RIBBON_BACKSTAGE_MENU_WRAPPER",function(){return o._27}),n.d(e,"RIBBON_BACKSTAGE_ITEMS_WRAPPER",function(){return o._28}),n.d(e,"RIBBON_BACKSTAGE_TEXT_MENU",function(){return o._29}),n.d(e,"TAB_ID",function(){return o._30}),n.d(e,"GROUP_ID",function(){return o._31}),n.d(e,"COLLECTION_ID",function(){return o._32}),n.d(e,"ITEM_ID",function(){return o._33}),n.d(e,"COLLAPSE_BUTTON_ID",function(){return o._34}),n.d(e,"OVRLOF_BUTTON_ID",function(){return o._35}),n.d(e,"GROUPOF_BUTTON_ID",function(){return o._36}),n.d(e,"HEADER_ID",function(){return o._37}),n.d(e,"LAUNCHER_ID",function(){return o._38}),n.d(e,"CONTENT_ID",function(){return o._39}),n.d(e,"CONTAINER_ID",function(){return o._40}),n.d(e,"OVERFLOW_ID",function(){return o._41}),n.d(e,"DROPDOWN_ID",function(){return o._42}),n.d(e,"RIBBON_FILE_MENU_ID",function(){return o._43}),n.d(e,"RIBBON_BACKSTAGE_MENU_ID",function(){return o._44}),n.d(e,"RIBBON_BACKSTAGE_POPUP_ID",function(){return o._45}),n.d(e,"RIBBON_FILE_MENU_LIST",function(){return o._46}),n.d(e,"RIBBON_MENU_LIST",function(){return o._47}),n.d(e,"RIBBON_FOOTER_MENU_LIST",function(){return o._48}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_ID",function(){return o._49}),n.d(e,"RIBBON_GROUP_BUTTON_ID",function(){return o._50}),n.d(e,"RIBBON_KEYTIP_ID",function(){return o._51}),n.d(e,"RIBBON_FILE_MENU_WIDTH",function(){return o._52}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_WIDTH",function(){return o._53}),n.d(e,"getIndex",function(){return o._54}),n.d(e,"getTemplateFunction",function(){return o._55}),n.d(e,"getItem",function(){return o._56}),n.d(e,"getCollection",function(){return o._57}),n.d(e,"getGroup",function(){return o._58}),n.d(e,"destroyControl",function(){return o._59}),n.d(e,"updateCommonProperty",function(){return o._60}),n.d(e,"updateControlDisabled",function(){return o._61}),n.d(e,"getItemElement",function(){return o._62}),n.d(e,"isTooltipPresent",function(){return o._63}),n.d(e,"setToolTipContent",function(){return o._64}),n.d(e,"createTooltip",function(){return o._65}),n.d(e,"destroyTooltip",function(){return o._66}),n.d(e,"updateTooltipProp",function(){return o._67}),n.d(e,"setCustomAttributes",function(){return o._68}),n.d(e,"RibbonTab",function(){return o._69}),n.d(e,"RibbonGroup",function(){return o._70}),n.d(e,"RibbonCollection",function(){return o._71}),n.d(e,"RibbonItem",function(){return o._72}),n.d(e,"RibbonButtonSettings",function(){return o._73}),n.d(e,"RibbonCheckBoxSettings",function(){return o._74}),n.d(e,"RibbonColorPickerSettings",function(){return o._75}),n.d(e,"RibbonComboBoxSettings",function(){return o._76}),n.d(e,"RibbonDropDownSettings",function(){return o._77}),n.d(e,"RibbonSplitButtonSettings",function(){return o._78}),n.d(e,"FileMenuSettings",function(){return o._79}),n.d(e,"BackStageMenu",function(){return o._80}),n.d(e,"BackstageBackButton",function(){return o._81}),n.d(e,"BackstageItem",function(){return o._82}),n.d(e,"RibbonTooltip",function(){return o._83}),n.d(e,"RibbonGroupButtonSettings",function(){return o._84}),n.d(e,"RibbonGroupButtonItem",function(){return o._85}),n.d(e,"RibbonContextualTabSettings",function(){return o._86}),n.d(e,"RibbonGalleryGroup",function(){return o._87}),n.d(e,"RibbonGalleryItem",function(){return o._88}),n.d(e,"RibbonGallerySettings",function(){return o._89}),n.d(e,"RibbonButton",function(){return o._90}),n.d(e,"RibbonCheckBox",function(){return o._91}),n.d(e,"RibbonColorPicker",function(){return o._92}),n.d(e,"RibbonComboBox",function(){return o._93}),n.d(e,"RibbonDropDown",function(){return o._94}),n.d(e,"RibbonSplitButton",function(){return o._95}),n.d(e,"RibbonGroupButton",function(){return o._96}),n.d(e,"RibbonGallery",function(){return o._97}),n.d(e,"RibbonFileMenu",function(){return o._98}),n.d(e,"RibbonBackstage",function(){return o._99}),n.d(e,"RibbonContextualTab",function(){return o._100}),n.d(e,"RibbonKeyTip",function(){return o._101})},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="ribbonContextualTab",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="contextualTabs",e.moduleName="ribbonContextualTabs",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(59),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"}}}}}},ribbonContextualTabs:{ribbonContextualTab:{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=l}])});
10
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionPopups"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSplitbuttons","SyncfusionReactBase","SyncfusionPopups","SyncfusionButtons","SyncfusionNavigations","SyncfusionDropdowns","React","SyncfusionInputs"],e):"object"==typeof exports?exports.SyncfusionReactRibbon=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionPopups"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):t.SyncfusionReactRibbon=e(t.SyncfusionBase,t.SyncfusionSplitbuttons,t.SyncfusionReactBase,t.SyncfusionPopups,t.SyncfusionButtons,t.SyncfusionNavigations,t.SyncfusionDropdowns,t.React,t.SyncfusionInputs)}(this,function(t,e,n,r,i,o,s,a,l){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=52)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.d(e,"P",function(){return r}),n.d(e,"W",function(){return i}),n.d(e,"y",function(){return o}),n.d(e,"X",function(){return s}),n.d(e,"R",function(){return a}),n.d(e,"Y",function(){return l}),n.d(e,"Z",function(){return c}),n.d(e,"T",function(){return u}),n.d(e,"Q",function(){return p}),n.d(e,"U",function(){return d}),n.d(e,"S",function(){return f}),n.d(e,"b",function(){return h}),n.d(e,"O",function(){return b}),n.d(e,"_0",function(){return m}),n.d(e,"_1",function(){return y}),n.d(e,"_2",function(){return g}),n.d(e,"p",function(){return v}),n.d(e,"_3",function(){return S}),n.d(e,"_4",function(){return _}),n.d(e,"_5",function(){return I}),n.d(e,"_6",function(){return C}),n.d(e,"_7",function(){return O}),n.d(e,"_8",function(){return w}),n.d(e,"_9",function(){return k}),n.d(e,"_10",function(){return T}),n.d(e,"_11",function(){return B}),n.d(e,"_12",function(){return P}),n.d(e,"_13",function(){return L}),n.d(e,"_14",function(){return E}),n.d(e,"L",function(){return D}),n.d(e,"M",function(){return x}),n.d(e,"J",function(){return M}),n.d(e,"N",function(){return q}),n.d(e,"K",function(){return R}),n.d(e,"_15",function(){return A}),n.d(e,"_16",function(){return j}),n.d(e,"_17",function(){return G}),n.d(e,"_18",function(){return N}),n.d(e,"_19",function(){return H}),n.d(e,"_20",function(){return W}),n.d(e,"_21",function(){return z}),n.d(e,"V",function(){return K}),n.d(e,"_22",function(){return F}),n.d(e,"_23",function(){return U}),n.d(e,"_24",function(){return V}),n.d(e,"_25",function(){return Y}),n.d(e,"_26",function(){return X}),n.d(e,"_27",function(){return Q}),n.d(e,"_28",function(){return Z}),n.d(e,"_29",function(){return J}),n.d(e,"_30",function(){return $}),n.d(e,"_31",function(){return tt}),n.d(e,"_32",function(){return et}),n.d(e,"_33",function(){return nt}),n.d(e,"_34",function(){return rt}),n.d(e,"_35",function(){return it}),n.d(e,"_36",function(){return ot}),n.d(e,"n",function(){return st}),n.d(e,"o",function(){return at}),n.d(e,"j",function(){return lt}),n.d(e,"m",function(){return ct}),n.d(e,"l",function(){return ut}),n.d(e,"i",function(){return pt}),n.d(e,"k",function(){return dt}),n.d(e,"_37",function(){return ft}),n.d(e,"w",function(){return ht}),n.d(e,"t",function(){return bt}),n.d(e,"E",function(){return mt}),n.d(e,"_38",function(){return yt}),n.d(e,"r",function(){return gt}),n.d(e,"C",function(){return vt}),n.d(e,"F",function(){return St}),n.d(e,"x",function(){return _t}),n.d(e,"z",function(){return It}),n.d(e,"u",function(){return Ct}),n.d(e,"_39",function(){return Ot}),n.d(e,"_40",function(){return wt}),n.d(e,"_41",function(){return kt}),n.d(e,"_42",function(){return Tt}),n.d(e,"_43",function(){return Bt}),n.d(e,"d",function(){return Pt}),n.d(e,"h",function(){return Lt}),n.d(e,"a",function(){return Et}),n.d(e,"_44",function(){return Dt}),n.d(e,"D",function(){return xt}),n.d(e,"I",function(){return Mt}),n.d(e,"e",function(){return qt}),n.d(e,"f",function(){return Rt}),n.d(e,"G",function(){return At}),n.d(e,"q",function(){return jt}),n.d(e,"v",function(){return Gt}),n.d(e,"H",function(){return Nt}),n.d(e,"B",function(){return Ht}),n.d(e,"A",function(){return Wt}),n.d(e,"_45",function(){return zt}),n.d(e,"g",function(){return Kt}),n.d(e,"c",function(){return Ft}),n.d(e,"s",function(){return Ut}),n.d(e,"_46",function(){return Vt});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",l="e-disabled",c="e-rtl",u="e-ribbon-hover",p="e-ribbon-control",d="e-ribbon-popup-control",f="e-ribbon-open",h="e-ribbon-keytip",b=" ",m="e-hscroll-bar",y="e-ribbon-hide",g="e-ribbon-tab",v="e-ribbon-contextual-tab",S="e-ribbon-active",_="e-ribbon-tab-item",I="e-ribbon-collapse-btn",C="e-ribbon-expand-btn",O="e-ribbon-collapsible",w="e-ribbon-overall-of-btn",k="e-ribbon-group-of-btn",T="e-ribbon-overflow-target",B="e-ribbon-overflow",P="e-content",L="e-ribbon-minimize",E="e-ribbon-group",D="e-ribbon-single-selection",x="e-ribbon-multiple-selection",M="e-ribbon-group-button",q="e-ribbon-group-button-overflow-popup",R="e-ribbon-group-button-content",A="e-ribbon-group-container",j="e-ribbon-of-tab",G="e-ribbon-of-group-container",N="e-ribbon-group-content",H="e-ribbon-group-header",W="e-ribbon-overflow-header",z="e-ribbon-group-overflow",K="e-ribbon-group-overflow-ddb",F="e-ribbon-launcher",U="e-ribbon-launcher-icon",V="e-icons e-launcher",Y="e-ribbon-collection",X="e-ribbon-item",Q="e-ribbon-row",Z="e-ribbon-column",J="e-ribbon-large-item",$="e-ribbon-medium-item",tt="e-ribbon-small-item",et="e-ribbon-content-height",nt="e-dropdown-btn",rt="e-caret-hide",it="e-ribbon-template",ot="e-ribbon-help-template",st="e-ribbon-tooltip",at="e-ribbon-tooltip-target",lt="e-ribbon-tooltip-title",ct="e-ribbon-tooltip-content",ut="e-ribbon-tooltip-icon",pt="e-ribbon-tooltip-container",dt="e-ribbon-text-container",ft="e-ribbon-simplified-mode",ht="e-ribbon-backstage-popup",bt="e-ribbon-backstage-open",mt="e-ribbon-backstage-content",yt="e-ribbon-selected-content",gt="e-ribbon-backstage",vt="e-ribbon-backstage-menu",St="e-ribbon-backstage-template",_t="e-ribbon-backstage-wrapper",It="e-ribbon-backstage-items-wrapper",Ct="e-blankicon",Ot="_tab",wt="_group",kt="_collection",Tt="_item",Bt="_collapsebutton",Pt="_sim_ovrl_overflow",Lt="_sim_grp_overflow",Et="_header",Dt="_launcher",xt="_content",Mt="_container",qt="_overflow",Rt="_dropdown",At="_filemenu",jt="_backstage",Gt="_backstagepopup",Nt="_filemenulist",Ht="_menulist",Wt="_footermenulist",zt="_helppanetemplate",Kt="_grpbtn",Ft="_keytip",Ut="--fileMenuWidth",Vt="--helpTemplateWidth"},function(t,e,n){"use strict";var r=n(34);n.d(e,"a",function(){return r.a});var i=n(6);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.P}),n.d(e,"i",function(){return o.W}),n.d(e,"j",function(){return o.y}),n.d(e,"k",function(){return o.X}),n.d(e,"l",function(){return o.R}),n.d(e,"m",function(){return o.Y}),n.d(e,"n",function(){return o.Z}),n.d(e,"o",function(){return o.T}),n.d(e,"p",function(){return o.Q}),n.d(e,"q",function(){return o.U}),n.d(e,"r",function(){return o.S}),n.d(e,"s",function(){return o.b}),n.d(e,"t",function(){return o.O}),n.d(e,"u",function(){return o._0}),n.d(e,"v",function(){return o._1}),n.d(e,"w",function(){return o._2}),n.d(e,"x",function(){return o.p}),n.d(e,"y",function(){return o._3}),n.d(e,"z",function(){return o._4}),n.d(e,"A",function(){return o._5}),n.d(e,"B",function(){return o._6}),n.d(e,"C",function(){return o._7}),n.d(e,"D",function(){return o._8}),n.d(e,"E",function(){return o._9}),n.d(e,"F",function(){return o._10}),n.d(e,"G",function(){return o._11}),n.d(e,"H",function(){return o._12}),n.d(e,"I",function(){return o._13}),n.d(e,"J",function(){return o._14}),n.d(e,"K",function(){return o.L}),n.d(e,"L",function(){return o.M}),n.d(e,"M",function(){return o.J}),n.d(e,"N",function(){return o.N}),n.d(e,"O",function(){return o.K}),n.d(e,"P",function(){return o._15}),n.d(e,"Q",function(){return o._16}),n.d(e,"R",function(){return o._17}),n.d(e,"S",function(){return o._18}),n.d(e,"T",function(){return o._19}),n.d(e,"U",function(){return o._20}),n.d(e,"V",function(){return o._21}),n.d(e,"W",function(){return o.V}),n.d(e,"X",function(){return o._22}),n.d(e,"Y",function(){return o._23}),n.d(e,"Z",function(){return o._24}),n.d(e,"_0",function(){return o._25}),n.d(e,"_1",function(){return o._26}),n.d(e,"_2",function(){return o._27}),n.d(e,"_3",function(){return o._28}),n.d(e,"_4",function(){return o._29}),n.d(e,"_5",function(){return o._30}),n.d(e,"_6",function(){return o._31}),n.d(e,"_7",function(){return o._32}),n.d(e,"_8",function(){return o._33}),n.d(e,"_9",function(){return o._34}),n.d(e,"_10",function(){return o._35}),n.d(e,"_11",function(){return o._36}),n.d(e,"_12",function(){return o.n}),n.d(e,"_13",function(){return o.o}),n.d(e,"_14",function(){return o.j}),n.d(e,"_15",function(){return o.m}),n.d(e,"_16",function(){return o.l}),n.d(e,"_17",function(){return o.i}),n.d(e,"_18",function(){return o.k}),n.d(e,"_19",function(){return o._37}),n.d(e,"_20",function(){return o.w}),n.d(e,"_21",function(){return o.t}),n.d(e,"_22",function(){return o.E}),n.d(e,"_23",function(){return o._38}),n.d(e,"_24",function(){return o.r}),n.d(e,"_25",function(){return o.C}),n.d(e,"_26",function(){return o.F}),n.d(e,"_27",function(){return o.x}),n.d(e,"_28",function(){return o.z}),n.d(e,"_29",function(){return o.u}),n.d(e,"_30",function(){return o._39}),n.d(e,"_31",function(){return o._40}),n.d(e,"_32",function(){return o._41}),n.d(e,"_33",function(){return o._42}),n.d(e,"_34",function(){return o._43}),n.d(e,"_35",function(){return o.d}),n.d(e,"_36",function(){return o.h}),n.d(e,"_37",function(){return o.a}),n.d(e,"_38",function(){return o._44}),n.d(e,"_39",function(){return o.D}),n.d(e,"_40",function(){return o.I}),n.d(e,"_41",function(){return o.e}),n.d(e,"_42",function(){return o.f}),n.d(e,"_43",function(){return o.G}),n.d(e,"_44",function(){return o.q}),n.d(e,"_45",function(){return o.v}),n.d(e,"_46",function(){return o.H}),n.d(e,"_47",function(){return o.B}),n.d(e,"_48",function(){return o.A}),n.d(e,"_49",function(){return o._45}),n.d(e,"_50",function(){return o.g}),n.d(e,"_51",function(){return o.c}),n.d(e,"_52",function(){return o.s}),n.d(e,"_53",function(){return o._46});var s=n(7);n.d(e,"_54",function(){return s.g}),n.d(e,"_55",function(){return s.d}),n.d(e,"_56",function(){return s.a}),n.d(e,"_57",function(){return s.h}),n.d(e,"_58",function(){return s.b}),n.d(e,"_59",function(){return s.i}),n.d(e,"_60",function(){return s.j}),n.d(e,"_61",function(){return s.k}),n.d(e,"_62",function(){return s.l}),n.d(e,"_63",function(){return s.c}),n.d(e,"_64",function(){return s.m}),n.d(e,"_65",function(){return s.f}),n.d(e,"_66",function(){return s.n}),n.d(e,"_67",function(){return s.o}),n.d(e,"_68",function(){return s.e})},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){t.exports=r},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 l});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.Gallery="Gallery",t.Template="Template"}(a||(a={}));var l;!function(t){t.Single="Single",t.Multiple="Multiple"}(l||(l={}))},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(g.select)(t);e=r?"SCRIPT"===r.tagName?r.innerHTML:r.outerHTML:t}catch(n){e=t}return n.i(g.compile)(e)}return n.i(g.compile)(t)}function o(t,e,n){for(var r=0;r<t.length;r++)for(var i=t[parseInt(r.toString(),10)],o=0;o<i.groups.length;o++)for(var s=i.groups[parseInt(o.toString(),10)],a=0;a<s.collections.length;a++)for(var l=s.collections[parseInt(a.toString(),10)],c=0;c<l.items.length;c++){var u=l.items[parseInt(c.toString(),10)];if(e&&u.id===e||n&&u.type===n)return{item:u,collection:l,group:s,tabIndex:r,groupIndex:o,collectionIndex:a,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 l(t,e){n.i(g.getComponent)(t,e).destroy()}function c(t,e,r){n.i(g.getComponent)(t,e).setProperties(r)}function u(t,e,r){n.i(g.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===S.a.Classic)return r.item.displayOptions&S.b.Classic?(i=r.group.isCollapsed?t.ribbonDropDownModule.getOverflowDropDownPopup(r,i):i,i.querySelector("#"+e)):null;var s=r.item.displayOptions&S.b.Simplified?i.querySelector("#"+r.item.id):null;if(!s){s=(r.group.enableGroupOverflow?n.i(g.getComponent)(i.querySelector("#"+r.group.id+_.h),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?_.i+"_"+o.id:_.i});if(e.element.append(s),o.title){var a=e.createElement("div",{innerHTML:o.title,className:_.j});s.appendChild(a)}var l=e.createElement("div",{className:_.k});if(s.appendChild(l),o.iconCss){var c=e.createElement("div",{className:o.iconCss+" "+_.l});l.appendChild(c)}if(o.content){var u=e.createElement("div",{innerHTML:o.content,className:_.m});l.appendChild(u)}e.setProperties({content:s,cssClass:o.cssClass?o.cssClass+" "+_.n:_.n})}function h(t,e){function n(t){f(t,r,e.tooltipData)}var r=new v.Tooltip({target:"."+_.o,beforeRender:n.bind(this),windowCollision:!0});r.appendTo(t)}function b(t){n.i(g.getComponent)(t,v.Tooltip).destroy()}function m(t,e){n.i(g.getComponent)(t,v.Tooltip).setProperties(e)}function y(t,e){for(var r in e)if("class"===r){var i=e.class.replace(/\s+/g," ").trim();i&&n.i(g.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.g=r,e.d=i,e.a=o,e.h=s,e.b=a,e.i=l,e.j=c,e.k=u,e.l=p,e.c=d,e.m=f,e.f=h,e.n=b,e.o=m,e.e=y;var g=n(0),v=(n.n(g),n(5)),S=(n.n(v),n(6)),_=n(1),I=n(3);n.n(I)},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=i},function(t,e){t.exports=o},function(t,e,n){"use strict";var r=n(33);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}),n.d(e,"_91",function(){return r._91}),n.d(e,"_92",function(){return r._92}),n.d(e,"_93",function(){return r._93}),n.d(e,"_94",function(){return r._94}),n.d(e,"_95",function(){return r._95}),n.d(e,"_96",function(){return r._96}),n.d(e,"_97",function(){return r._97}),n.d(e,"_98",function(){return r._98}),n.d(e,"_99",function(){return r._99}),n.d(e,"_100",function(){return r._100}),n.d(e,"_101",function(){return r._101})},function(t,e,n){"use strict";var r=n(36);n.d(e,"a",function(){return r.a});var i=n(37);n.d(e,"b",function(){return i.a});var o=n(38);n.d(e,"c",function(){return o.a});var s=n(39);n.d(e,"d",function(){return s.a});var a=n(40);n.d(e,"e",function(){return a.a});var l=n(43);n.d(e,"f",function(){return l.a});var c=n(42);n.d(e,"g",function(){return c.a});var u=n(41);n.d(e,"h",function(){return u.a})},function(t,e,n){"use strict";var r=n(30);n.d(e,"a",function(){return r.a});var i=n(27);n.d(e,"b",function(){return i.a});var o=n(18);n.d(e,"c",function(){return o.a});var s=n(28);n.d(e,"d",function(){return s.a});var a=n(16);n.d(e,"e",function(){return a.a});var l=n(17);n.d(e,"f",function(){return l.a});var c=n(19);n.d(e,"g",function(){return c.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(29);n.d(e,"j",function(){return d.a});var f=n(46);n.d(e,"k",function(){return f.a});var h=n(44);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 y=n(8);n.d(e,"o",function(){return y.a});var g=n(26);n.d(e,"p",function(){return g.a});var v=n(25);n.d(e,"q",function(){return v.a});var S=n(45);n.d(e,"r",function(){return S.a});var _=n(22);n.d(e,"s",function(){return _.a});var I=n(23);n.d(e,"t",function(){return I.a});var C=n(24);n.d(e,"u",function(){return C.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,"keyTip",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(28)),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(31)),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(23)),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.Collection)([],i.a)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),s([n.i(r.Property)("auto")],e.prototype,"itemWidth",void 0),s([n.i(r.Property)("auto")],e.prototype,"itemHeight",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",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,"content",void 0),o([n.i(r.Property)("")],e.prototype,"iconCss",void 0),o([n.i(r.Property)({})],e.prototype,"htmlAttributes",void 0),o([n.i(r.Property)("")],e.prototype,"cssClass",void 0),o([n.i(r.Property)(!1)],e.prototype,"disabled",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.Collection)([],i.a)],e.prototype,"groups",void 0),s([n.i(r.Property)(3)],e.prototype,"itemCount",void 0),s([n.i(r.Property)(null)],e.prototype,"selectedItemIndex",void 0),s([n.i(r.Property)("auto")],e.prototype,"popupHeight",void 0),s([n.i(r.Property)("auto")],e.prototype,"popupWidth",void 0),s([n.i(r.Property)("")],e.prototype,"template",void 0),s([n.i(r.Property)("")],e.prototype,"popupTemplate",void 0),s([n.i(r.Event)()],e.prototype,"popupOpen",void 0),s([n.i(r.Event)()],e.prototype,"popupClose",void 0),s([n.i(r.Event)()],e.prototype,"itemHover",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeSelect",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(8)),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.Property)("")],e.prototype,"keyTip",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(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),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.Property)("")],e.prototype,"keyTip",void 0),s([n.i(r.Property)("")],e.prototype,"launcherIconKeyTip",void 0),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 m});var r=n(0),i=(n.n(r),n(6)),o=n(16),s=n(17),a=n(19),l=n(20),c=n(21),u=n(29),p=n(8),d=n(26),f=n(24),h=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)}}(),b=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},m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},b([n.i(r.Property)("")],e.prototype,"keyTip",void 0),b([n.i(r.Property)(i.c.Medium)],e.prototype,"activeSize",void 0),b([n.i(r.Property)(i.c.Small|i.c.Medium|i.c.Large)],e.prototype,"allowedSizes",void 0),b([n.i(r.Property)("")],e.prototype,"id",void 0),b([n.i(r.Property)("")],e.prototype,"cssClass",void 0),b([n.i(r.Property)(!1)],e.prototype,"disabled",void 0),b([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),b([n.i(r.Property)("Button")],e.prototype,"type",void 0),b([n.i(r.Property)(i.b.Auto)],e.prototype,"displayOptions",void 0),b([n.i(r.Complex)({},p.a)],e.prototype,"ribbonTooltipSettings",void 0),b([n.i(r.Complex)({},o.a)],e.prototype,"buttonSettings",void 0),b([n.i(r.Complex)({},c.a)],e.prototype,"dropDownSettings",void 0),b([n.i(r.Complex)({},s.a)],e.prototype,"checkBoxSettings",void 0),b([n.i(r.Complex)({},a.a)],e.prototype,"colorPickerSettings",void 0),b([n.i(r.Complex)({},l.a)],e.prototype,"comboBoxSettings",void 0),b([n.i(r.Complex)({},u.a)],e.prototype,"splitButtonSettings",void 0),b([n.i(r.Complex)({},d.a)],e.prototype,"groupButtonSettings",void 0),b([n.i(r.Complex)({},f.a)],e.prototype,"gallerySettings",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,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(27)),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,"keyTip",void 0),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){t.exports=s},function(t,e,n){"use strict";var r=n(58);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var i=n(55);n.d(e,"c",function(){return i.a}),n.d(e,"d",function(){return i.b});var o=n(53);n.d(e,"e",function(){return o.a}),n.d(e,"f",function(){return o.b});var s=n(56);n.d(e,"g",function(){return s.a}),n.d(e,"h",function(){return s.b});var a=n(54);n.d(e,"i",function(){return a.a}),n.d(e,"j",function(){return a.b});var l=n(57);n.d(e,"k",function(){return l.a})},function(t,e,n){"use strict";var r=n(35);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}),n.d(e,"_91",function(){return r._91}),n.d(e,"_92",function(){return r._92}),n.d(e,"_93",function(){return r._93}),n.d(e,"_94",function(){return r._94}),n.d(e,"_95",function(){return r._95}),n.d(e,"_96",function(){return r._96}),n.d(e,"_97",function(){return r._97}),n.d(e,"_98",function(){return r._98}),n.d(e,"_99",function(){return r._99}),n.d(e,"_100",function(){return r._100}),n.d(e,"_101",function(){return r._101})},function(t,e,n){"use strict";n.d(e,"a",function(){return b});var r=n(0),i=(n.n(r),n(10)),o=(n.n(i),n(13)),s=n(6),a=n(12),l=n(7),c=n(1),u=n(5),p=(n.n(u),n(3)),d=(n.n(p),n(9)),f=(n.n(d),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(e,n){return b.Inject(a.a,a.b,a.e,a.f,a.d,a.g),t.call(this,e,n)||this}f(e,t),b=e,e.prototype.render=function(){this.initialize()},e.prototype.preRender=function(){this.keysPress="",this.idIndex=0,this.tooltipData=[],this.initialPropsData={},this.hiddenElements={},this.keyTipElements={},this.hiddenGroups=[],this.itemsModel=[],this.targetTabs={},this.isAddRemove=!1,this.isUpdateItems=!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=[];t.push({member:"ribbonButton",args:[this],name:"RibbonButton"},{member:"ribbonDropDown",args:[this],name:"RibbonDropDown"},{member:"ribbonSplitButton",args:[this],name:"RibbonSplitButton"},{member:"ribbonCheckBox",args:[this],name:"RibbonCheckBox"},{member:"ribbonComboBox",args:[this],name:"RibbonComboBox"},{member:"ribbonGroupButton",args:[this],name:"RibbonGroupButton"});var e=n.i(l.a)(this.tabs,null,s.f.ColorPicker),r=n.i(l.a)(this.tabs,null,s.f.Gallery);return e&&t.push({member:"ribbonColorPicker",args:[this],name:"RibbonColorPicker"}),r&&t.push({member:"ribbonGallery",args:[this],name:"RibbonGallery"}),(this.backStageMenu.visible||this.backStageMenu.items.length)&&t.push({member:"ribbonBackstage",args:[this],name:"RibbonBackstage"}),(this.fileMenu.visible||this.fileMenu.menuItems.length)&&t.push({member:"ribbonFileMenu",args:[this],name:"RibbonFileMenu"}),this.contextualTabs.length&&t.push({member:"ribbonContextualTab",args:[this],name:"RibbonContextualTab"}),this.enableKeyTips&&t.push({member:"ribbonKeyTip",args:[this],name:"RibbonKeyTip"}),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(c.O):[])),this.enableRtl&&this.element.classList.add(c.Z),this.element.style.width=n.i(r.formatUnit)(this.width),this.renderTabs(),this.ribbonContextualTabModule&&this.ribbonContextualTabModule.addContextualTabs(),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.createFileMenu(this.fileMenu),this.ribbonBackstageModule&&this.ribbonBackstageModule.createBackStage(this.backStageMenu),this.createHelpPaneTemplate(),this.tabObj.tbObj.refreshOverflow(),this.addTabOverflowKeyTip(),n.i(l.f)(this.element,this),this.isKeytipOpen=!1,this.wireEvents(),this.wireKeyboardEvent(),this.currentControlIndex=0},e.prototype.wireEvents=function(){r.EventHandler.add(window,"resize",this.resizeHandler,this),r.EventHandler.add(document.body,"keydown",this.keytipActionHandler,this),r.EventHandler.add(document,"mousedown",this.mouseEventHandler,this),r.EventHandler.add(document,"scroll",this.mouseEventHandler,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+c.D),r=Array.prototype.slice.call(n.querySelectorAll(".e-control")),i=Array.prototype.slice.call(n.querySelectorAll(".e-ribbon-template")),o=Array.prototype.slice.call(n.querySelectorAll(".e-ribbon-gallery-item")),s=r.concat(i,o),a=n.querySelectorAll(".e-combobox");if(a)for(var l=0;l<a.length;l++)a[parseInt(l.toString(),10)].closest(".e-input-focus")&&(e=a[parseInt(l.toString(),10)]);if(e)for(var l=0;l<s.length;l++)s[parseInt(l.toString(),10)].classList.contains("e-combobox")&&s[parseInt(l.toString(),10)].closest(".e-input-focus")&&(this.currentControlIndex=l);if(0===this.currentControlIndex)for(var u=s[this.currentControlIndex].closest(".e-ribbon-item");u&&u.classList.contains("e-disabled");)this.currentControlIndex++,u=s[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")||t.target.classList.contains("e-ribbon-gallery-item"))switch(t.action){case"rightarrow":this.handleNavigation(t,!this.enableRtl,s);break;case"leftarrow":this.handleNavigation(t,this.enableRtl,s);break;case"tab":t.target.classList.contains("e-combobox")&&this.currentControlIndex<s.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-gallery-item"))&&!t.target.classList.contains("e-ribbon-last-item")){if(e)this.currentControlIndex++;else{var o=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+c._15);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("."+c._15),e){var a=void 0;if(r&&(a=r.querySelector(".e-ribbon-launcher-icon")),a){var l=r.querySelectorAll(".e-ribbon-item"),u=l[l.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("."+c._15),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("."+c._15);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+c.D);if(this.checkOverflow(this.selectedTab,t),this.scrollModule){var e=this.tabObj.element.querySelector("."+c._0);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)],p.DropDownButton);s.toggle()}}var a=document.querySelector(".e-ribbon-gallery-popup.e-popup-open");if(a){n.i(r.getComponent)(a,u.Popup).hide()}this.ribbonKeyTipModule&&this.enableKeyTips&&this.ribbonKeyTipModule.removeKeytip()},e.prototype.mouseEventHandler=function(t){this.ribbonKeyTipModule&&this.enableKeyTips&&this.ribbonKeyTipModule.removeKeytip()},e.prototype.keytipActionHandler=function(t){if(this.enableKeyTips){var e=!1,i=t.key;if(t.altKey&&"Meta"===t.key){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 s=0;s<o.length;s++){n.i(r.getInstance)(o[parseInt(s.toString(),10)],p.DropDownButton).toggle()}this.ribbonKeyTipModule.removeKeytip()}else if(this.isKeytipOpen)this.ribbonKeyTipModule.removeKeytip();else{var a=document.querySelector(".e-ribbon-backstage-popup");a&&a.classList.contains("e-popup-open")&&this.ribbonBackstageModule.hideBackstage(),this.ribbonKeyTipModule.createKeytip("tab")}}else if("Escape"===t.key||"Tab"===t.key||"ArrowLeft"===t.key||"ArrowUp"===t.key||"ArrowRight"===t.key||"ArrowDown"===t.key)this.ribbonKeyTipModule.removeKeytip(t.key);else{var l=document.querySelectorAll(".e-ribbon-keytip");if(l){for(var s=0;s<l.length;s++){var c=l[parseInt(s.toString(),10)];if(c.innerHTML.toLowerCase()===i){e=!0,this.ribbonKeyTipModule.keytipPress(i);break}}e||this.checkKeyTipPresent(i,this.keysPress.length)}}}},e.prototype.checkKeyTipPresent=function(t,e){for(var n=document.querySelectorAll(".e-ribbon-keytip"),r=0;r<n.length;r++){var i=n[parseInt(r.toString(),10)];if(i.innerHTML.length>1&&i.innerHTML[parseInt(e.toString(),10)].toLowerCase()===t){this.keysPress+=t,this.ribbonKeyTipModule.keytipPress(this.keysPress),this.removeKeytip(this.keysPress);break}}},e.prototype.removeKeytip=function(t){for(var e=document.querySelectorAll(".e-ribbon-keytip"),i=0;i<e.length;i++){var o=e[parseInt(i.toString(),10)];o.innerHTML[0].toLowerCase()!==t&&""!==t&&n.i(r.remove)(o)}},e.prototype.addKeyTip=function(t,e,n,r){if(this.keyTipElements&&this.keyTipElements[parseInt(t.toString(),10)]){var i=!1;if(this.keyTipElements[parseInt(t.toString(),10)][r]||(this.keyTipElements[parseInt(t.toString(),10)][r]=[]),Object.keys(this.keyTipElements[t][r]).length){for(var o=this.keyTipElements[t][r],s=0;s<Object.keys(this.keyTipElements[t][r]).length;s++)o[parseInt(s.toString(),10)].id===n&&(i=!0);i||this.keyTipElements[t][r].push({id:n,type:r,keyTip:e})}else this.keyTipElements[t][r].push({id:n,type:r,keyTip:e})}},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+c._39});this.element.appendChild(t),this.validateItemSize();var e=this.createTabItems(this.tabs);this.tabObj=new i.Tab({cssClass:c._2,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(c.s,"0px"),this.element.style.setProperty(c._46,"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"](c._13)},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(c._13,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){t.preventFocus=!0,this.isAddRemove=!1;var e=t.selectedItem.getAttribute("data-id"),r=n.i(l.g)(this.tabs,function(t){return t.id===e});r=-1===r?this.selectedTab:r;var i=this.isContextualTab(e);this.updateSelectedState(e);var o={previousIndex:this.selectedTab,selectedIndex:r,isContextual:i};if(this.setProperties({selectedTab:r},!0),this.calculateHiddenElementsWidth(r),this.isUpdateItems){for(var s=0;s<this.itemsModel.length;s++){var a=this.itemsModel[parseInt(s.toString(),10)];this.selectedTab===this.targetTabs[a.id]&&(this.updateItem(a),this.itemsModel.splice(s,1),s--)}0===this.itemsModel.length&&(this.isUpdateItems=!1)}if(this.checkOverflow(r,t.selectedContent.firstChild),"Classic"===this.activeLayout&&this.ribbonGalleryModule&&this.ribbonGalleryModule.checkAvailableHeight(r,t.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var u=this.overflowDDB.target,p=u.querySelector("."+c._3);p&&p.classList.remove(c._3);var d=u.querySelector("#"+e+c.e);d?(d.classList.add(c._3),this.overflowDDB.element.classList.remove(c._1),this.checkOverflowHiddenItems(!1,r)):this.overflowDDB.element.classList.add(c._1)}this.trigger("tabSelected",o)},e.prototype.updateSelectedState=function(t){if(this.contextualTabs.length)for(var e=0;e<this.contextualTabs.length;e++){for(var n=!1,r=0;r<this.contextualTabs[parseInt(e.toString(),10)].tabs.length;r++)if(this.contextualTabs[parseInt(e.toString(),10)].tabs[parseInt(r.toString(),10)].id===t){n=!0;break}this.contextualTabs[parseInt(e.toString(),10)].setProperties({isSelected:n},!0)}},e.prototype.checkOverflow=function(t,e){var n=e.closest("."+c._12),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("."+c._12)))}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);this.addTabOverflowKeyTip()},e.prototype.addTabOverflowKeyTip=function(){var t=this.tabObj.element.querySelector("#_nav");t?(this.keyTipElements.taboverflow=[],this.keyTipElements.taboverflow.push({id:t.id,type:"taboverflow",keyTip:"00"})):delete this.keyTipElements.taboverflow},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+c.I),l=0;l<o.collections.length&&e.offsetWidth<n.offsetWidth;l++)for(var u=o.collections[parseInt(l.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+c.I);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+c.I),l=0;l<o.collections.length&&e.offsetWidth>n.offsetWidth;l++)for(var u=o.collections[parseInt(l.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+c.I);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 l=!1,u=o[parseInt(a.toString(),10)],p=t.querySelector("#"+u.id),d=p.querySelector("#"+u.id+c.I),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 y=h.items[m-1],g=b.querySelector("#"+y.id+c.I);if((y.displayOptions===s.b.Auto||y.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(g)){var v=!1,S=!1,_=!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")?(_=!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)):(v=!0,p.classList.remove("e-hidden")),l||(this.calculateOverflowItemsWidth(p.offsetWidth,!1,i),this.calculateMediumDataWidth(p.offsetWidth,i,!1),l=!0)}else g.classList.contains("e-hidden")&&(S=!0,g.classList.remove("e-hidden"),p.classList.contains("e-ribbon-emptyCollection")&&(I=!0,p.classList.remove("e-ribbon-emptyCollection")),this.calculateOverflowItemsWidth(g.offsetWidth,!1,i),this.calculateMediumDataWidth(g.offsetWidth,i,!1));if(g.setAttribute("data-simplified-width",e.offsetWidth.toString()),S&&g.classList.add("e-hidden"),C&&C.length)for(var w=0;w<C.length;w++)C[parseInt(w.toString(),10)].classList.add("e-hidden");if(v&&p.classList.add("e-hidden"),_&&(p.classList.add("e-hide-group"),p.classList.add("e-ribbon-emptyCollection")),I&&p.classList.add("e-ribbon-emptyCollection"),this.createOverflowPopup(y,i,u.enableGroupOverflow,u.id,u.header,g,d,!0),y.activeSize===s.c.Small){var k=g.querySelector("#"+y.id);y.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(k,y)}y.type!==s.f.DropDown&&y.type!==s.f.SplitButton&&y.type!==s.f.GroupButton&&y.type!==s.f.Gallery||this.updatePopupItems(y,g,u.enableGroupOverflow,!0)}}u.enableGroupOverflow||p.querySelector("."+c._26)||p.classList.add("e-ribbon-emptyCollection");var T=p.querySelectorAll("."+c._26);T&&!u.enableGroupOverflow&&this.checkEmptyCollection(T)&&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.Gallery||t.type===s.f.GroupButton?p.DropDownButton:p.SplitButton),l=a.dropDown,c=(i&&o)===this.enableRtl;l&&(l.setProperties({position:{X:c?"left":"right",Y:o?"top":"bottom"}},!0),o?a.beforeOpen=function(){c&&(l.element.style.setProperty("visibility","hidden"),l.element.style.setProperty("display","block"),l.setProperties({offsetX:-1*l.element.offsetWidth}),l.element.style.removeProperty("display"),l.element.style.removeProperty("visibility"))}:(l.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),l=!0,u=0;u<a.length&&l;u++){var d=a[parseInt(u.toString(),10)],f=void 0,h=void 0;if(d.enableGroupOverflow){var b=t.querySelector("#"+d.id+c.h);b&&(f=n.i(r.getInstance)(b,p.DropDownButton),h=f.target)}else f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null;for(var m=0;m<d.collections.length&&l;m++)for(var y=d.collections[parseInt(m.toString(),10)],g=0;g<y.items.length&&l&&!o&&t.offsetWidth>e.offsetWidth;g++){var v=y.items[parseInt(g.toString(),10)],S=void 0;if(h&&(S=h.querySelector("#"+v.id+c.I)),(v.displayOptions===s.b.Auto||v.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(S)){var _=parseInt(S.getAttribute("data-simplified-width"),10),I=t.querySelector("#"+d.id);if((S.classList.contains("e-hidden")||I.classList.contains("e-hidden"))&&(_=Math.abs(_-e.offsetWidth)),!o&&t.offsetWidth<_){l=!1;break}var C=t.querySelector("#"+y.id);if(v.type!==s.f.DropDown&&v.type!==s.f.SplitButton&&v.type!==s.f.GroupButton&&v.type!==s.f.Gallery||this.updatePopupItems(v,S,d.enableGroupOverflow,!1),C.append(S),S.classList.contains("e-hidden")||I.classList.contains("e-hidden")){S.setAttribute("data-simplified-width",_.toString());var O=!1,w=0;S.classList.contains("e-hidden")&&(S.classList.remove("e-hidden"),I.classList.contains("e-hide-group")&&(O=!0,w=this.checkWidthDifference(S,I)),_=S.offsetWidth+w,S.classList.add("e-hidden")),this.calculateOverflowItemsWidth(_,!0,i),this.calculateMediumDataWidth(_,i,!0),O&&(I.classList.add("e-hide-group"),I.classList.add("e-ribbon-emptyCollection"))}this.removeOverflowEvent(v,S),v.allowedSizes&s.c.Small&&(v.setProperties({activeSize:s.c.Small},!0),this.setItemSize(S.querySelector("#"+v.id),v));var k=t.querySelector("#"+d.id),T=k.querySelector("."+c._26);if(k.classList.contains("e-ribbon-emptyCollection")&&null!==T){var B=k.querySelectorAll("."+c._26);B&&(this.checkEmptyCollection(B)||k.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 P=h.querySelector("#"+d.id+c.I);P&&1===P.childElementCount&&P.remove();var L=h.querySelector("#"+this.tabs[parseInt(i.toString(),10)].id+c.e);L&&0===L.childElementCount&&(L.remove(),this.overflowDDB.element.classList.add(c._1))}}for(var u=0;u<a.length;u++)this.checkOverflowHiddenItems(a[parseInt(u.toString(),10)].enableGroupOverflow,i,a[parseInt(u.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+c.h);if(o){for(var s=n.i(r.getInstance)(o,p.DropDownButton),a=s.target,l=a.querySelectorAll(".e-ribbon-item"),u=!0,d=0;d<l.length;d++)if(!l[parseInt(d.toString(),10)].classList.contains("e-hidden")){u=!1;break}s.element.classList[u?"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+c.e);if(m){for(var y=0;y<m.children.length;y++){h=!0;for(var g=m.children[parseInt(y.toString(),10)],v=g.querySelectorAll(".e-ribbon-item"),S=0;S<v.length;S++)if(!v[parseInt(S.toString(),10)].classList.contains("e-hidden")){h=!1;break}g.classList[h?"add":"remove"]("e-hide-group"),g.classList.contains("e-hide-group")||g.classList.contains("e-hidden")||(f=!1)}this.overflowDDB.element.classList[f?"add":"remove"](c._1)}}},e.prototype.createOverflowPopup=function(t,e,i,o,s,a,u,d){var f,h,b=n.i(l.b)(this.tabs,o),m=this.tabObj.items[parseInt(e.toString(),10)].content,y=m.querySelector("#"+o);if(i){var g=u.querySelector("#"+o+c.h);g?f=n.i(r.getInstance)(g,p.DropDownButton):(f=this.addOverflowButton(o+c.h,i),f.element.classList.add(c._9),u.appendChild(f.element)),this.addKeyTip(e,"0"+(b.groupIndex+1),f.element.id,"grpofbtn"),h=f.target;var v=f.target;if(!v.querySelector("#"+o+c.h+c.a)&&b.group.overflowHeader){var S=this.createElement("div",{className:c._20,id:o+c.h+c.a,innerHTML:b.group.overflowHeader});v.append(S)}y&&(y.classList.contains("e-disabled")&&v.classList.add("e-disabled"),y.classList.contains("e-hidden")&&v.classList.add("e-hidden"),y.classList.contains("e-hide-group")&&v.classList.add("e-hide-group")),d?v.insertBefore(a,v.querySelector("."+c._26)):v.append(a)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(c._1);var _=this.overflowDDB.target,I=_.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+c.e);if(I){var C=_.querySelector("#"+o+c.I);C||(C=b.group.overflowHeader?this.createGroupContainer(o,b.group.overflowHeader):this.createGroupContainer(o,s),y&&(y.classList.contains("e-disabled")&&C.classList.add("e-disabled"),y.classList.contains("e-hidden")&&C.classList.add("e-hidden"),y.classList.contains("e-hide-group")&&C.classList.add("e-hide-group")),I.append(C)),d?C.insertBefore(a,C.querySelector("."+c._26)):C.append(a)}else this.createOfTabContainer(o,s,a,e)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+c.d,i),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(c._8),this.createOfTabContainer(o,s,a,e);f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null}null!==a&&this.addOverflowEvents(t,a,f),h&&t.keyTip&&this.addKeyTip(e,t.keyTip,t.id,"popupitem")},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"Gallery":"Simplified"===this.activeLayout&&this.ribbonGalleryModule.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+c.e,className:c._16});this.overflowDDB.target.append(o);var s=n.i(l.b)(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(c._3);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 l=e.groups[parseInt(n.toString(),10)];if(l.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"+c.O+c._27,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 l=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[0],u=i.querySelector("#"+l.items[parseInt(e.toString(),10)].id+c.I),p=o?i.querySelector("#"+l.id+"_shrink_container"+e):d(l.id,u,e,r),f=e;f<=r;f++){var h=l.items[parseInt(f.toString(),10)];if(h.displayOptions&s.b.Classic){var b=i.querySelector("#"+h.id+c.I);p.appendChild(b),h.setProperties({activeSize:s.c.Medium},!0),h.type===s.f.GroupButton&&"Classic"===a.activeLayout?a.setItemSize(b.querySelector("#"+h.id+c.g),h):a.setItemSize(b.querySelector("#"+h.id),h)}}},h=function(e,r){for(var l=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)],u=i.querySelector("#"+l.collections[parseInt(e.toString(),10)].id),p=o?i.querySelector("#"+l.id+"_shrink_container"+e):d(l.id,u,e,r),f=e;f<=r;f++){var h=l.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+c.g),h.items[0]):a.setItemSize(b.querySelector("#"+h.items[0].id),h.items[0])}};if(l.orientation===s.e.Column)for(var b=l.collections.length-1;b>0;b--){b=this.checkClassicCollection(l.collections,b,!1);var m=b-1;if(m>=0&&u(l.collections[parseInt(b.toString(),10)]))if((m=this.checkClassicCollection(l.collections,m,!1))>=0&&u(l.collections[parseInt(m.toString(),10)])){var y=m-1;if(y>=0&&(y=this.checkClassicCollection(l.collections,y,!1)),y>=0&&u(l.collections[parseInt(y.toString(),10)])?h(y,b):h(m,b),b=y,!o&&r.offsetWidth>i.offsetWidth)return!0}else b=m}else if(this.checkValidCollectionLength(l.collections))for(var g=l.collections[0],b=g.items.length-1;b>0;b--){b=this.checkClassicItem(g.items,b,!1);var m=b-1;if(m>=0&&p(g.items[parseInt(b.toString(),10)]))if((m=this.checkClassicItem(g.items,m,!1))>=0&&p(g.items[parseInt(m.toString(),10)])){var y=m-1;if(y>=0&&(y=this.checkClassicItem(g.items,y,!1)),y>=0&&p(g.items[parseInt(y.toString(),10)])?f(y,b):f(m,b),b=y,!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 l=e.groups[parseInt(n.toString(),10)];if(l.isCollapsed&&!o)return!1;var u=l.orientation,p=i.querySelector("#"+l.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,l){void 0===l&&(l=null);var c=a.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],u=function(t){var e=c.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),l&&u(l),u(o)},b=function(e,r,l,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+c.g)),a.setItemSize(n,e.items[0])}};f(r),u&&f(u),f(l)},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 y=d.length-1;y>=0;y--){var g=parseInt(d[parseInt(y.toString(),10)].getAttribute("data-start"),10),v=parseInt(d[parseInt(y.toString(),10)].getAttribute("data-end"),10),S=this.checkClassicCollection(l.collections,g+1,!1);if(f(l.collections[parseInt(g.toString(),10)].items[0])&&f(l.collections[parseInt(S.toString(),10)].items[0])&&(v===S?b(y,g,v):f(l.collections[parseInt(v.toString(),10)].items[0])&&b(y,g,v,S),!o&&r.offsetWidth>i.offsetWidth))return!0}for(var y=l.collections.length-1;y>=0;y--){for(var _=l.collections[parseInt(y.toString(),10)],I=[],C=0;C<_.items.length;C++)_.items[parseInt(C.toString(),10)].displayOptions&s.b.Classic&&I.push(C);if(I.length>1&&f(_.items[I[0]])&&f(_.items[I[1]])&&(2===I.length?(m(_.id),h(y,I[0],I[1])):f(_.items[I[2]])&&(m(_.id),h(y,I[0],I[2],I[1])),!o&&r.offsetWidth>i.offsetWidth))return!0}}else if(this.checkValidCollectionLength(l.collections)){if(d.length>0)for(var y=d.length-1;y>=0;y--){var O=d[parseInt(y.toString(),10)],g=parseInt(O.getAttribute("data-start"),10),v=parseInt(O.getAttribute("data-end"),10),_=l.collections[0],S=this.checkClassicItem(_.items,g+1,!1);if(f(l.collections[0].items[parseInt(g.toString(),10)])&&f(l.collections[0].items[parseInt(S.toString(),10)])&&(v===S?(m(O.id),h(0,g,v)):f(l.collections[0].items[parseInt(v.toString(),10)])&&(m(O.id),h(0,g,v,S)),!o&&r.offsetWidth>i.offsetWidth))return!0}}else for(var y=l.collections.length-1;y>=0;y--)for(var _=l.collections[parseInt(y.toString(),10)],S=_.items.length-1;S>=0;S--)if(!((S=this.checkClassicItem(_.items,S,!1))<0)){var w=_.items[parseInt(S.toString(),10)];if(f(w)&&(m(w.type!==s.f.GroupButton?w.id:w.id+c.g),h(y,S,S),!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 l=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=l.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+c.g)),l.setItemSize(u,a)}},b=function(e){var r=l.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+c.g)),l.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 y=u.collections[parseInt(m.toString(),10)],g=0;g<y.items.length;g++)if((g=this.checkClassicItem(y.items,g,!0))!==y.items.length){var v=y.items[parseInt(g.toString(),10)];if(function(t){return t.allowedSizes&s.c.Medium&&t.activeSize===s.c.Small}(v)){var S=i.querySelector("#"+v.id);"GroupButton"===v.type&&(S=i.querySelector("#"+v.id+c.g));var _=S.getAttribute("data-medium-width"),I=_?parseInt(_,10):null;if(I&&(o||r.offsetWidth>I))h(m,g,S),o&&!a||S.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 y=u.collections[parseInt(m.toString(),10)],S=i.querySelector("#"+y.id),_=S.getAttribute("data-medium-width"),I=_?parseInt(_,10):null,C=[],O=0;O<y.items.length;O++)y.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],S),h(m,C[1],S),3===C.length&&h(m,C[2],S),o&&!a||S.removeAttribute("data-medium-width");else if(I)return!0}if(f.length>0)for(var m=0;m<f.length;m++){var w=f[parseInt(m.toString(),10)],_=w.getAttribute("data-medium-width"),I=_?parseInt(_,10):null;if(I&&(o||r.offsetWidth>I)){var k=parseInt(w.getAttribute("data-start"),10),T=parseInt(w.getAttribute("data-end"),10);if(p===s.e.Row){var y=u.collections[0],g=this.checkClassicItem(y.items,k+1,!0);h(0,k,w),h(0,g,w),g!==T&&h(0,T,w)}else{var B=this.checkClassicCollection(u.collections,k+1,!0);b(k),b(B),B!==T&&b(T)}o&&!a||w.removeAttribute("data-medium-width")}else if(I)return!0}return!1},e.prototype.checkMediumToLarge=function(t,e,i,o,a,l,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+c.I),r=n.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Large},!0),e.type===s.f.GroupButton&&(r=n.querySelector("#"+e.id+c.g)),p.setItemSize(r,e),a.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(o),l&&!u||n.i(r.remove)(a)},y=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+c.g)),p.setItemSize(r,e.items[0]),a.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(o),l&&!u||n.i(r.remove)(a)},g=0;g<b.length;g++){var v=b[parseInt(g.toString(),10)],S=v.getAttribute("data-large-width"),_=S?parseInt(S,10):null;if(_&&(l||o.offsetWidth>_)){var I=parseInt(v.getAttribute("data-start"),10),C=parseInt(v.getAttribute("data-end"),10);if(f===s.e.Row){var O=d.collections[0],w=this.checkClassicItem(O.items,I+1,!0);w===C?m(I,C,v):m(I,C,v,w)}else{var k=this.checkClassicCollection(d.collections,I+1,!0);k===C?y(I,C,v):y(I,C,v,k)}l&&!u||v.removeAttribute("data-large-width")}else if(_)return!0}return!1},e.prototype.handleContentSize=function(t,e){var n=t.closest("."+c._18);e?n.classList.add(c._32):n.classList.remove(c._32)},e.prototype.setItemSize=function(t,e){if(t){var i=t.closest("."+c._26);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(c._32,c._29,c._30,c._31),e.activeSize===s.c.Large?i.classList.add(c._29,c._32):i.classList.add(e.activeSize===s.c.Medium?c._30:c._31)}},e.prototype.createOverflowDropdown=function(t,e,i){var o=this.getGroupResizeOrder(!0,t);if(0!==o.length)for(var a=this,u=0;u<o.length&&e.offsetWidth<i.offsetWidth;u++)!function(u){var d=o[parseInt(u.toString(),10)],f=a.tabObj.element.querySelector("#"+d.id);f.setAttribute("data-expanded-width",i.offsetWidth.toString());var h=f.querySelector("#"+d.id+c.I),b=a.createElement("div",{className:c._21+c.O+c._29,id:d.id+c.e+c.I});f.insertBefore(b,h);var m=n.i(l.g)(a.tabs[parseInt(t.toString(),10)].groups,function(t){return t.id===d.id}),y=a.tabs[parseInt(t.toString(),10)];a.checkSmallToMedium(t,y,m,e,i,!0,!1),a.checkMediumToLarge(t,y,m,e,i,!0,!1);var g=a.ribbonDropDownModule.createOverFlowDropDown(d.id,d.header,d.groupIconCss,h,b,a.enableRtl);if(d.keyTip){var v=d.id+c.e+c.f;a.addKeyTip(t,d.keyTip,v,"grpoverflow")}a.tabs[parseInt(t.toString(),10)].groups[parseInt(m.toString(),10)].setProperties({isCollapsed:!0},!0);for(var S=0;S<d.collections.length;S++)for(var _=d.collections[parseInt(S.toString(),10)],I=h.querySelector("#"+_.id),C=0;C<_.items.length;C++){var O=_.items[parseInt(C.toString(),10)],w=I.querySelector("#"+O.id+c.I);null!==w&&(a.handleContentSize(w),a.addOverflowEvents(O,w,g));var v=document.querySelector("#"+d.id+c.e+c.f),k=n.i(r.getInstance)(v,p.DropDownButton);if(k){var T=k.target;if(T&&a.keyTipElements[parseInt(t.toString(),10)]){if(O.type===s.f.GroupButton)for(var B=0;B<O.groupButtonSettings.items.length;B++)O.groupButtonSettings.items[parseInt(B.toString(),10)].keyTip&&a.addKeyTip(t,O.groupButtonSettings.items[parseInt(B.toString(),10)].keyTip,O.id+(c.g+B),"grpoverflowpopup");O.keyTip&&a.addKeyTip(t,O.keyTip,O.id,"grpoverflowpopup")}}}}(u)},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(l.g)(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)],y=p.querySelector("#"+m.id),g=0;g<m.items.length;g++){var v=m.items[parseInt(g.toString(),10)],S=y.querySelector("#"+v.id+c.I);null!==S&&(s.handleContentSize(S,!0),s.removeOverflowEvent(v,S))}}(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+c.e+c.f);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+c.D);if(e){var n=e.closest("."+c._12);"Simplified"===this.activeLayout?this.removeSimplfiedOverflow(e,n,t,!0):this.removeOverflowDropdown(e,n,!0,t)}},e.prototype.isContextualTab=function(t){var e=!1;if(this.contextualTabs.length)for(var n=0;n<this.contextualTabs.length;n++)for(var r=0;r<this.contextualTabs[parseInt(n.toString(),10)].tabs.length;r++)if(this.contextualTabs[parseInt(n.toString(),10)].tabs[parseInt(r.toString(),10)].id===t){e=!0;break}return e},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(l.g)(this.tabs,function(t){return t.id===i}),a=this.isContextualTab(i),u=n.i(l.g)(this.tabs,function(t){return t.id===o});s=-1===s?this.selectedTab:s;var p={cancel:t.cancel,isInteracted:t.isInteracted,previousIndex:u,selectedIndex:s,isContextual:a};this.trigger("tabSelecting",p,function(t){if(!t.cancel){e.destroyScroll(),e.isAddRemove||-1===u||e.clearOverflowDropDown(u);var i=e.tabObj.items[parseInt(s.toString(),10)].content;if(!i.querySelector("."+c._14)&&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,r=[],i=this,o=0;o<t.length;o++)!function(o){var s=t[parseInt(o.toString(),10)],a=i.createElement("span",{innerHTML:s.header,id:s.id+c.a}),u=n.i(l.g)(i.tabs,function(t){return t.id===s.id});s.keyTip&&(i.keyTipElements[parseInt(u.toString(),10)]||(i.keyTipElements[parseInt(u.toString(),10)]={}),i.addKeyTip(u,s.keyTip,s.id,"tab")),a.onclick=function(){e.minimize(!1)},a.ondblclick=function(){e.minimize(!0)};var p={header:{text:a},id:s.id,cssClass:s.cssClass},d=i.createElement("div",{className:p.cssClass,id:s.id+c.D});d.classList.add(c._4),p.content=d,r.push(p)}(o);return r},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(c._37);var o=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+c.D);this.checkOverflow(this.selectedTab,o),"Classic"===this.activeLayout&&this.ribbonGalleryModule&&this.ribbonGalleryModule.checkAvailableHeight(this.selectedTab,o)},e.prototype.addOverflowButton=function(t,e){var i=this,o=this.createElement("button",{id:t}),s=this.createElement("div",{className:c._10,attrs:{tabindex:"0"}}),a=new p.DropDownButton({iconCss:c.X,cssClass:c._34+c.O+c.V,target:s,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeOpen:function(t){var e={element:t.element,event:t.event,cancel:t.cancel};i.trigger("overflowPopupOpen",e,function(e){e.cancel&&(t.cancel=!0)})},beforeClose:function(t){var e=t.event?n.i(r.closest)(t.event.target,"."+c.U):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};i.trigger("overflowPopupClose",s,function(n){(e||n.cancel||o)&&(t.cancel=!0)})}},o);this.element.classList.add(c._11),n.i(l.f)(s,this),e||(this.keyTipElements.overflowbtn=[],this.keyTipElements.overflowbtn.push({id:t,type:"overflowbtn",keyTip:"00"}));var u;return o.onkeydown=o.onclick=function(){i.itemIndex=-1,u=!o.classList.contains("e-ribbon-overall-of-btn")},s.onkeydown=function(t){return i.upDownKeyHandler(t,s,u),i},a},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,l=o[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control"),c=l&&l.classList.contains("e-combobox")?o[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;if(null===c||"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),c&&"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===c||"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),c&&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 p=parseInt(e.getAttribute("index"),10),f="",h=o[parseInt(p.toString(),10)]?o[parseInt(p.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(p.toString(),10)].querySelector(".e-split-colorpicker").focus();else{"Tab"===t.key&&t.preventDefault();var b=o[parseInt(p.toString(),10)].querySelector(".e-control");b&&b.focus()}if(" "===t.key&&"CheckBox"===f){var m=o[parseInt(p.toString(),10)].querySelector(".e-control"),y=n.i(r.getComponent)(m,d.CheckBox);this.itemIndex=-1,y.click()}}"SplitButton"!==f||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||("ArrowRight"===t.key&&(this.enableRtl?o[parseInt(p.toString(),10)].querySelector(".e-control").focus():o[parseInt(p.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===t.key&&(this.enableRtl?o[parseInt(p.toString(),10)].querySelector(".e-dropdown-btn").focus():o[parseInt(p.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(l.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"Gallery":this.ribbonGalleryModule.removeOverFlowEvents(t,e);break;case"GroupButton":this.ribbonGroupButtonModule.removeOverFlowEvents(t,e)}},e.prototype.createGroupContainer=function(t,e){var n=this.createElement("div",{className:c._17,id:t+c.I}),r=this.createElement("div",{className:c._20,id:t+c.a,innerHTML:e});return n.append(r),n},e.prototype.addExpandCollapse=function(){var t=this;this.collapseButton=this.createElement("span",{className:c._5+c.O+c.W,id:this.tabObj.element.id+c._43,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(c._7),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(c._6),this.tabObj.element.appendChild(this.collapseButton),this.layoutSwitcherKeyTip&&(this.keyTipElements.collapse=[],this.keyTipElements.collapse.push({id:this.collapseButton.id,type:"collapse",keyTip:this.layoutSwitcherKeyTip}))},e.prototype.removeExpandCollapse=function(){var t=this,e=n.i(l.g)(this.tooltipData,function(e){return e.id===t.collapseButton.id});-1!==e&&this.tooltipData.splice(e,1),this.element.classList.remove(c._7),n.i(r.remove)(this.tabObj.element.querySelector("."+c._5)),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 l=this.createTabItems(this.tabs);this.selectedTab>=this.tabs.length&&(this.selectedTab=this.tabs.length-1),this.tabObj.setProperties({items:l,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],y=m.isCollapsed?f.querySelector("#"+m.id+c.e+c.f):null,g=0,v=m.collections;g<v.length;g++)for(var S=v[g],_=0,I=S.items;_<I.length;_++){var C=I[_],O=y?this.ribbonDropDownModule.getDDBItemElement(y,C.id):f.querySelector("#"+C.id);O&&this.destroyFunction(C,O)}y&&this.ribbonDropDownModule.removeOverFlowDropDown(y)}f.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()});var w=this.createGroups(d.groups,i);n.i(r.append)(w,f)}}var k=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+c.D);this.checkOverflow(this.selectedTab,k)},e.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(c._6,"Simplified"===this.activeLayout),this.element.classList.toggle(c._37,"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+c.D),l=a.closest("."+c._12);if("Simplified"===this.activeLayout)for(var u=0;u<o.length;u++){var d=o[parseInt(u.toString(),10)],f=o[parseInt(u.toString(),10)].orientation;d.isCollapsed?(d.setProperties({isCollapsed:!1},!0),this.removeDropdown(d.id)):(this.checkSmallToMedium(e,i,u,l,a,!0,!1),this.checkMediumToLarge(e,i,u,l,a,!0,!1));for(var h=l.querySelector("#"+d.id),b=h.querySelector("#"+d.id+c.I),m=b.querySelectorAll(".e-ribbon-shrink"),y=0;y<m.length;y++)m[parseInt(y.toString(),10)].remove();var g=b.querySelector("#"+d.id+c.a);g.remove();var v=b.querySelector("#"+d.id+c.D);v.classList.replace(c._27,c._28),v.classList.remove(c._32);for(var S=0;S<d.collections.length;S++){var _=d.collections[parseInt(S.toString(),10)],I=b.querySelector("#"+_.id);I.classList.replace(c._27,c._28);for(var C=0;C<_.items.length;C++){for(var O=_.items,w=_.items[parseInt(C.toString(),10)],k=!0;k&&w.displayOptions===s.b.Classic;){C++;var T=b.querySelector("#"+w.id+c.I),B=T.querySelector("#"+w.id);this.destroyFunction(w,B),T.remove(),C<O.length?w=O[parseInt(C.toString(),10)]:k=!1}if(!k)break;var P=w.allowedSizes===s.c.Large||w.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;P=!(w.displayOptions&s.b.Simplified)&&w.displayOptions&s.b.Overflow?s.c.Medium:P;var L=void 0;if(w.displayOptions&s.b.Classic){if(L=b.querySelector("#"+w.id+c.I),w.displayOptions===(s.b.Classic|s.b.Overflow)&&(this.createOverflowPopup(w,e,d.enableGroupOverflow,d.id,d.header,L,b),w.type!==s.f.DropDown&&w.type!==s.f.SplitButton&&w.type!==s.f.GroupButton&&w.type!==s.f.Gallery||this.updatePopupItems(w,L,d.enableGroupOverflow,!0)),w.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(w,L),w.setProperties({activeSize:P},!0),L){var B=L.querySelector("#"+w.id);this.setItemSize(B,w)}}else L=this.createItems([w],f,d.id,d.header,d.enableGroupOverflow,e,b)[0],w.displayOptions&s.b.Simplified&&I.append(L);w.type===s.f.Gallery&&this.ribbonGalleryModule.switchGalleryItems(this.activeLayout,w.id)}}d.enableGroupOverflow||h.querySelector("."+c._26)||h.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(c._11);for(var E=0;E<o.length;E++){var d=o[parseInt(E.toString(),10)],f=o[parseInt(E.toString(),10)].orientation,b=l.querySelector("#"+d.id+c.I),v=b.querySelector("#"+d.id+c.D),g=this.createElement("div",{className:c._19,id:d.id+c.a,innerHTML:d.header});b.appendChild(g),"Row"===f&&v.classList.replace(c._28,c._27),v.classList.add(c._32);for(var S=0;S<d.collections.length;S++){var D=void 0,x=void 0;if(d.enableGroupOverflow){var M=b.querySelector("#"+d.id+c.h);M&&(D=n.i(r.getInstance)(M,p.DropDownButton),x=D.target)}else(D=this.overflowDDB)&&(x=this.overflowDDB.target);var _=d.collections[parseInt(S.toString(),10)],I=b.querySelector("#"+_.id);"Column"===f&&I.classList.replace(c._28,c._27);for(var C=0;C<_.items.length;C++){for(var O=_.items,w=_.items[parseInt(C.toString(),10)],k=!0;k&&!(w.displayOptions&s.b.Classic);){C++;var L=void 0;if((w.displayOptions&s.b.Simplified||w.displayOptions&s.b.Overflow)&&null!==(L=w.displayOptions&s.b.Simplified?b.querySelector("#"+w.id+c.I):x.querySelector("#"+w.id+c.I))){var q=L.querySelector("#"+w.id);this.destroyFunction(w,q),L.remove()}C<O.length?w=O[parseInt(C.toString(),10)]:k=!1}if(!k)break;if(w.displayOptions&(s.b.Simplified|s.b.Overflow)){var L=b.querySelector("#"+w.id+c.I);!L&&x&&(L=x.querySelector("#"+w.id+c.I),w.type!==s.f.DropDown&&w.type!==s.f.SplitButton&&w.type!==s.f.GroupButton&&w.type!==s.f.Gallery||this.updatePopupItems(w,L,d.enableGroupOverflow,!1),this.removeOverflowEvent(w,L)),w.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(w,L),L&&I.append(L)}else{var L=this.createItems([w],f,d.id,d.header,d.enableGroupOverflow,e)[0];I.append(L)}var B=b.querySelector("#"+w.id);w.type===s.f.GroupButton&&(B=b.querySelector("#"+w.id+c.g));var R=w.allowedSizes&s.c.Large?s.c.Large:w.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;w.setProperties({activeSize:R},!0),this.setItemSize(B,w),w.type===s.f.Gallery&&this.ribbonGalleryModule.switchGalleryItems(this.activeLayout,w.id)}d.enableGroupOverflow&&D&&(0===x.childElementCount||1===x.childElementCount&&this.isHeaderVisible(x,d.id))&&this.removeOverflowButton(D)}}}this.selectedTab===e&&this.checkOverflow(e,a)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.createLauncherIcon=function(t,e,i){var o=this,s=this.createElement("div",{className:c._23+" "+(this.launcherIconCss?this.launcherIconCss:c._24),id:t+c._44,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});e.appendChild(s),e.classList.add(c._22),r.EventHandler.add(s,"click",this.launcherIconClicked.bind(this,t),this),r.EventHandler.add(s,"keydown",function(e){"Enter"===e.key&&o.launcherIconClicked(t)},this);var a=n.i(l.b)(this.tabs,t);a.group.launcherIconKeyTip&&this.addKeyTip(i,a.group.launcherIconKeyTip,s.id,"launcher")},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,l=this.createElement("div",{className:s.cssClass,id:s.id});l.classList.add(c._14),i.push(l);var u=this.createElement("div",{className:s.cssClass,id:s.id+c.I});u.classList.add(c._15),l.appendChild(u);var p=this.createElement("div",{className:"Simplified"===this.activeLayout?c._18:c._18+c.O+c._32,id:s.id+c.D});if(p.classList.add("Column"===a||"Simplified"===this.activeLayout?c._28:c._27),u.appendChild(p),"Classic"===this.activeLayout){var d=this.createElement("div",{className:c._19,id:s.id+c.a,innerHTML:s.header});u.appendChild(d)}s.showLauncherIcon&&this.createLauncherIcon(s.id,u,e);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&&l.classList.add("e-hide-group"),"Simplified"!==this.activeLayout||s.enableGroupOverflow||l.querySelector("."+c._26)||l.classList.add("e-ribbon-emptyCollection");var y=this.initialPropsData[parseInt(e.toString(),10)];y&&(y.hiddenGroups&&y.hiddenGroups.length&&this.updateGroupProps("hiddenGroups",y,l),y.disabledGroups&&y.disabledGroups.length&&this.updateGroupProps("disabledGroups",y,l))}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,l=0;l<a.length;l++){var c=a[parseInt(l.toString(),10)];if(c.allowedSizes&&0!==c.allowedSizes||c.setProperties({allowedSizes:s.c.Small|s.c.Medium|s.c.Large},!0),"ColorPicker"===c.type&&c.allowedSizes!==s.c.Small)c.setProperties({allowedSizes:s.c.Small},!0);else if("ComboBox"!==c.type&&"CheckBox"!==c.type||c.allowedSizes===s.c.Medium){if(("Column"===i&&a.length>1||"Row"===i&&r.length>1)&&c.allowedSizes&s.c.Large){var u=c.allowedSizes&(s.c.Small|s.c.Medium);u=u||s.c.Medium,c.setProperties({allowedSizes:u},!0)}}else c.setProperties({allowedSizes:s.c.Medium},!0);var p=c.allowedSizes&s.c.Large?s.c.Large:c.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;c.setProperties({activeSize:p},!0)}},e.prototype.createCollection=function(t,e,i,o,s,a,l){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(c._25),f.classList.add("Column"!==e||"Simplified"===this.activeLayout?c._28:c._27),u.push(f);var h=this.createItems(d.items,e,i,o,s,a,l);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);break;case"Gallery":this.ribbonGalleryModule.createGallery(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+c.I});if((p=m.classList).add.apply(p,[c._26].concat(h.disabled?[c.Y]:[])),h.ribbonTooltipSettings&&n.i(l.c)(h.ribbonTooltipSettings)&&(m.classList.add(c.o),this.tooltipData.push({id:m.id,data:h.ribbonTooltipSettings})),h.type===s.f.GroupButton)for(var y=0;y<h.groupButtonSettings.items.length;y++)this.keyTipElements[parseInt(a.toString(),10)]&&h.groupButtonSettings.items[parseInt(y.toString(),10)].keyTip&&this.addKeyTip(a,h.groupButtonSettings.items[parseInt(y.toString(),10)].keyTip,h.id+(c.g+y),"item");h.keyTip&&(h.type===s.f.Gallery?this.addKeyTip(a,h.keyTip,h.id+"_popupButton","item"):this.addKeyTip(a,h.keyTip,h.id,"item"));var g=h.activeSize;h.type!==s.f.Gallery&&("Simplified"===this.activeLayout&&(g=h.allowedSizes===s.c.Large||h.allowedSizes&s.c.Medium||h.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,h.setProperties({activeSize:g},!0)),g&s.c.Large?m.classList.add(c._29,c._32):m.classList.add(g&s.c.Medium?c._30:c._31));var v=this.initialPropsData[parseInt(a.toString(),10)];if(v&&v.hiddenItems&&v.hiddenItems.length){-1!==v.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&&h.type!==s.f.Gallery||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:c._36,id:this.element.id+c._45});var t=n.i(l.d)(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(c._46,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},e.prototype.createTemplateContent=function(t,e){var n=this.createElement("div",{className:t.cssClass?c._35+c.O+t.cssClass:c._35,id:t.id,attrs:{tabindex:"-1"}});t.disabled&&(n.classList.add(c.Y),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(l.d)(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?c._39:"group"===e?c._40:"collection"===e?c._41:c._42,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("."+c._14))for(var a=0,u=i.groups;a<u.length;a++){var d=u[a],f=void 0,h=void 0;this.activeLayout===s.a.Classic?f=d.isCollapsed?o.querySelector("#"+d.id+c.e+c.f):null:(f=d.enableGroupOverflow?o.querySelector("#"+d.id+c.h):null,(h=f?n.i(r.getComponent)(f,p.DropDownButton):this.overflowDDB)&&(n.i(l.o)(h.target,t),h.setProperties(t)));for(var b=0,m=d.collections;b<m.length;b++)for(var y=m[b],g=0,v=y.items;g<v.length;g++){var S=v[g],_=null;if(this.activeLayout===s.a.Classic?S.displayOptions&s.b.Classic&&(_=f?this.ribbonDropDownModule.getDDBItemElement(f,S.id):S.type===s.f.GroupButton?o.querySelector("#"+S.id+c.g):o.querySelector("#"+S.id)):(_=S.displayOptions&s.b.Simplified?o.querySelector("#"+S.id):null)||(_=h.target.querySelector("#"+S.id),"DropDown"===S.type&&this.updatePopupItems(S,h.target,d.enableGroupOverflow,!0)),_){var I=this.getItemModuleName(S);if("template"!==I)if("group-btn"===I&&"Classic"===this.activeLayout)for(var C=0;C<S.groupButtonSettings.items.length;C++){var O=_.querySelector("#"+S.id+c.g+C);n.i(l.j)(O,"btn",t)}else if("group-btn"===I&&"Simplified"===this.activeLayout){n.i(l.j)(_,"dropdown-btn",t);for(var w=0;w<S.groupButtonSettings.items.length;w++){var O=document.querySelector("#"+S.id+c.g+w);n.i(l.j)(O,"btn",t)}}else n.i(l.j)(_,I,t);else n.i(r.isNullOrUndefined)(t.enableRtl)||_.classList.toggle(c.Z,t.enableRtl)}}}}},e.prototype.removeLauncherIcon=function(t,e,i){var o=t+c.I,s=e?this.ribbonDropDownModule.getDDBItemElement(e,o):i.querySelector("#"+o);if(s){s.classList.remove(c._22);var a=s.querySelector("#"+t+c._44);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,l=i.groups;a<l.length;a++){var u=l[a],d=void 0,f=void 0;this.activeLayout===s.a.Classic?(d=u.isCollapsed?o.querySelector("#"+u.id+c.e+c.f):null,u.showLauncherIcon&&this.removeLauncherIcon(u.id,d,o)):(d=u.enableGroupOverflow?o.querySelector("#"+u.id+c.h):null,f=d?n.i(r.getComponent)(d,p.DropDownButton):this.overflowDDB);for(var h=0,b=u.collections;h<b.length;h++)for(var m=b[h],y=0,g=m.items;y<g.length;y++){var v=g[y],S=void 0;this.activeLayout===s.a.Classic?v.displayOptions&s.b.Classic&&(S=d?this.ribbonDropDownModule.getDDBItemElement(d,v.id):o.querySelector("#"+v.id),v.type===s.f.GroupButton&&(S=d?this.ribbonDropDownModule.getDDBItemElement(d,v.id+c.g):o.querySelector("#"+v.id+c.g)),v.type===s.f.Gallery&&(S=o.querySelector("#"+v.id+c.I))):(S=v.displayOptions&s.b.Simplified?o.querySelector("#"+v.id):null,v.type===s.f.Gallery&&(S=v.displayOptions&s.b.Simplified?o.querySelector("#"+v.id+c.I):null),S||(S=f?f.target.querySelector("#"+v.id):null)),S&&this.destroyFunction(v,S)}this.activeLayout===s.a.Classic&&d?this.ribbonDropDownModule.removeOverFlowDropDown(d):this.activeLayout===s.a.Simplified&&u.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+c.g+i);o&&n.i(l.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+c.g+e,i=n.i(l.g)(s.tooltipData,function(t){return t.id===r});-1!==i&&s.tooltipData.splice(i,1)}}(i)}else if("gallery"===r)if(e.closest(".e-ribbon-overflow-target")){n.i(l.i)(e,"dropdown-btn");var a=Array.prototype.slice.call(document.querySelectorAll("#"+t.id+"_galleryPopup"));a.concat(Array.prototype.slice.call(document.querySelectorAll("#"+t.id+"-popup")));for(var i=0;i<a.length;i++)a[parseInt(i.toString(),10)].remove()}else{var u=e.querySelectorAll(".e-ribbon-gallery-item"),p=e.querySelector("#"+t.id+"_popupButton");p&&p.remove();for(var i=0;i<u.length;i++)u[parseInt(i.toString(),10)].remove();for(var a=document.querySelectorAll("#"+t.id+"_galleryPopup"),i=0;i<a.length;i++)a[parseInt(i.toString(),10)].remove()}else"template"!==r&&n.i(l.i)(e,r);if(t.ribbonTooltipSettings){var d=n.i(l.g)(this.tooltipData,function(e){return e.id===t.id+c.I});-1!==d&&this.tooltipData.splice(d,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";case"Gallery":return"gallery";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+c.D),n=e.closest("."+c._12),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(l.g)(this.tabs,function(e){return e.id===t});this.setProperties({selectedTab:e})},e.prototype.showTab=function(t,e){void 0===e&&(e=!1),this.showHideTab(t,!1,e)},e.prototype.hideTab=function(t,e){void 0===e&&(e=!1),this.showHideTab(t,!0,e)},e.prototype.showHideTab=function(t,e,r){var i=n.i(l.g)(this.tabs,function(e){return e.id===t});if(-1!==i&&(this.tabObj.hideTab(i,e),r)){for(var o,s=this.tabObj.element,a=0;a<this.contextualTabs.length;a++)for(var c=0;c<this.contextualTabs[parseInt(a.toString(),10)].tabs.length;c++)t===this.contextualTabs[parseInt(a.toString(),10)].tabs[parseInt(c.toString(),10)].id&&(o=this.contextualTabs[parseInt(a.toString(),10)]);if(o){for(var u=!0,p=this,a=0;a<o.tabs.length;a++)!function(t){var e=n.i(l.g)(p.tabs,function(e){return e.id===o.tabs[parseInt(t.toString(),10)].id});if(-1!==e){s.querySelectorAll(".e-toolbar-item")[parseInt(e.toString(),10)].classList.contains("e-hidden")||(u=!1)}}(a);u?o.setProperties({visible:!1},!0):o.setProperties({visible:!0},!0)}}},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(l.g)(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(l.g)(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(l.g)(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+c.e+c.f):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 y=m[b],g=p?this.ribbonDropDownModule.getDDBItemElement(p,y.id):r.querySelector("#"+y.id);y.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(g=p?this.ribbonDropDownModule.getDDBItemElement(p,y.id+c.g):r.querySelector("#"+y.id+c.g)),g&&this.destroyFunction(y,g)}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(l.g)(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(),c=r?n.i(l.g)(a,function(t){return t.id===r}):-1;c=-1===c?a.length:c+(i?1:0),a.splice(c,0,e),s.setProperties({groups:a},!0),this.checkID([s.groups[parseInt(c.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(c.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(l.b)(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+c.h):null,a=o?n.i(r.getComponent)(o,p.DropDownButton):this.overflowDDB);for(var u=0,d=e.group.collections;u<d.length;u++)for(var f=d[u],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 y=a.target.querySelector("#"+e.group.id+c.I);y&&1===y.childElementCount&&y.remove();var g=a.target.querySelector("#"+this.tabs[parseInt(e.tabIndex.toString(),10)].id+c.e);g&&0===g.childElementCount&&g.remove()}var v=i.querySelector("#"+t);v&&v.remove()}var S=this.tabs[e.tabIndex].groups.slice();S.splice(e.groupIndex,1),this.tabs[e.tabIndex].setProperties({groups:S},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.isHeaderVisible=function(t,e){return!!t.querySelector("#"+e+c.h+c.a)},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(l.b)(this.tabs,t);if(s){var a=this.tabObj.items[s.tabIndex].content,u=a.querySelector("#"+t);if(u?this.updateHiddenElements(s.tabIndex,e?"hideGroup":"showGroup",t,e,u):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+c.e);if(s.group.enableGroupOverflow){var h=a.querySelector("#"+t+c.h);h&&(i=n.i(r.getInstance)(h,p.DropDownButton),o=i.target),o&&(e?o.classList.add("e-hidden"):o.classList.remove("e-hidden"))}else if(f){var b=f.querySelector("#"+t+c.I);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,l=void 0,u=!1,p=0;if(s="hideGroup"===e||"showGroup"===e?a.querySelector("#"+n[e][o]):a.querySelector("#"+n[e][o]+c.I)){if("hideGroup"===e||"hideItem"===e){var d=!1;s.classList.contains("e-hidden")&&(d=!0,s.classList.remove("e-hidden")),"hideItem"===e&&(l=s.closest(".e-ribbon-group"),l.classList.contains("e-hide-group")&&(u=!0,p=i.checkWidthDifference(s,l))),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(l=s.closest(".e-ribbon-group"),l.classList.contains("e-hide-group"))u=!0,l.classList.remove("e-hide-group"),l.classList.remove("e-ribbon-emptyCollection"),p=Math.abs(s.offsetWidth-l.offsetWidth),-1!==i.hiddenGroups.indexOf(l.id)&&i.hiddenGroups.splice(i.hiddenGroups.indexOf(l.id),1);else if(-1!==i.hiddenGroups.indexOf(l.id)){var f=l.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-l.offsetWidth),f.forEach(function(t){t.id!==s.id&&t.classList.remove("e-hidden")}),i.hiddenGroups.splice(i.hiddenGroups.indexOf(l.id),1)}i.calculateOverflowItemsWidth(s.offsetWidth+p,!1,t),i.calculateMediumDataWidth(s.offsetWidth+p,t,!1)}u&&(l.classList.add("e-hide-group"),l.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+c.D),s=Array.prototype.slice.call(o.querySelectorAll(".e-ribbon-item"));if(this.overflowDDB)for(var a=this.overflowDDB.target,l=a.querySelectorAll(".e-ribbon-item"),u=document.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+c.e),d=0;d<l.length;d++){var f=l[parseInt(d.toString(),10)].closest("#"+this.tabs[parseInt(e.toString(),10)].id+c.e);u&&f&&u.id===f.id&&l[parseInt(d.toString(),10)].hasAttribute("data-medium-width")&&s.push(l[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)],p.DropDownButton),m=b.target,l=m.querySelectorAll(".e-ribbon-item"),y=0;y<l.length;y++)l[parseInt(y.toString(),10)].hasAttribute("data-medium-width")&&s.push(l[parseInt(y.toString(),10)]);for(var d=0;d<s.length;d++)if(s[parseInt(d.toString(),10)].hasAttribute("data-medium-width")){var g=parseInt(s[parseInt(d.toString(),10)].getAttribute("data-medium-width"),10);s[parseInt(d.toString(),10)].setAttribute("data-medium-width",i?(g-t).toString():(g+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 l=document.querySelector("#"+a.id),u=void 0,d=l.querySelector("#"+a.id+c.h);if(d&&(u=n.i(r.getInstance)(d,p.DropDownButton)),u)for(var f=u.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 y=document.querySelector("#"+this.tabs[parseInt(i.toString(),10)].id+c.e),f=this.overflowDDB.target,h=f.querySelectorAll(".e-ribbon-item"),s=0;s<h.length;s++){var g=h[parseInt(s.toString(),10)].closest("#"+this.tabs[parseInt(i.toString(),10)].id+c.e);if(y&&g&&y.id===g.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(l.b)(this.tabs,t);if(s){var a=this.tabObj.items[s.tabIndex].content,u=a.querySelector("#"+t);if(u?e?u.classList.add("e-disabled"):u.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+c.e);if(s.group.enableGroupOverflow){var h=a.querySelector("#"+t+c.h);h&&(i=n.i(r.getInstance)(h,p.DropDownButton),o=i.target),o&&(e?o.classList.add("e-disabled"):o.classList.remove("e-disabled"))}else if(f){var b=f.querySelector("#"+t+c.I);b&&(e?b.classList.add("e-disabled"):b.classList.remove("e-disabled"))}}}},e.prototype.addCollection=function(t,e,r,i){var o=n.i(l.b)(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(l.g)(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+c.D).append(d)}this.selectedTab===o.tabIndex&&this.refreshLayout()}},e.prototype.removeCollection=function(t){var e=n.i(l.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;this.activeLayout===s.a.Simplified&&(o=e.group.enableGroupOverflow?i.querySelector("#"+e.group.id+c.h):null,a=o?n.i(r.getComponent)(o,p.DropDownButton):this.overflowDDB);for(var u=0,d=e.collection.items;u<d.length;u++){var f=d[u];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(l.h)(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(l.g)(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+c.I);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("."+c._26).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(l.a)(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+c.h):null,a=o?n.i(r.getComponent)(o,p.DropDownButton):this.overflowDDB);var u=e.item;this.removeItemElement(i,u,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(l.a)(this.tabs,t);if(i){var o;if(o="GroupButton"===i.item.type?n.i(l.l)(this,t+c.g,i):n.i(l.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(l.a)(this.tabs,f.id);h=n.i(l.l)(this,f.id+c.g,b)}else h=n.i(l.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 y=a.querySelectorAll("."+c._26);y&&(i=this.checkEmptyCollection(y),a.classList[i?"add":"remove"]("e-ribbon-emptyCollection"))}},e.prototype.checkOverflowItems=function(t,e,i,o,s){var a,l;if(i){var u=e.querySelector("#"+s+c.h);u&&(a=n.i(r.getInstance)(u,p.DropDownButton),l=a.target),l&&(t?l.classList.add("e-hide-group"):l.classList.remove("e-hide-group"))}else if(this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+c.e);if(f){var h=f.querySelector("#"+s+c.I);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(l.g)(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+c.e+c.f):null,b=0,m=f.collections;b<m.length;b++)for(var y=m[b],g=0,v=y.items;g<v.length;g++){var S=v[g],_=h?this.ribbonDropDownModule.getDDBItemElement(h,S.id):o.querySelector("#"+S.id);S.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(_=h?this.ribbonDropDownModule.getDDBItemElement(h,S.id+c.g):o.querySelector("#"+S.id+c.g)),_&&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+c.a).innerText=I.header)}}},e.prototype.updateGroup=function(t){var e=t.id,i=n.i(l.b)(this.tabs,e);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var o,a,u=this.tabObj.items[i.tabIndex].content,d=u.querySelector("#"+e),f=d.querySelector("#"+t.id+c.I);if(""!==u.innerHTML){if(i.group.showLauncherIcon&&this.removeLauncherIcon(i.group.id,null,u),this.activeLayout===s.a.Simplified&&(o=i.group.enableGroupOverflow?u.querySelector("#"+i.group.id+c.h):null,a=o?n.i(r.getComponent)(o,p.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],y=0,g=m.items;y<g.length;y++){var v=g[y];this.removeItemElement(u,v,a)}if(d.querySelectorAll(".e-ribbon-collection").forEach(function(t){t.remove()}),t.orientation){var S=f.querySelector(".e-ribbon-group-content"),_=S.classList.value.match(/(e-ribbon-[column|row]+)/g);_&&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+c.I);I&&1===I.childElementCount&&I.remove();var C=a.target.querySelector("#"+this.tabs[parseInt(i.tabIndex.toString(),10)].id+c.e);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(),""!==u.innerHTML){if(t.showLauncherIcon&&this.createLauncherIcon(O.id,f,i.tabIndex),t.collections||t.orientation){var S=f.querySelector(".e-ribbon-group-content");S.classList.add("Column"===O.orientation||"Simplified"===this.activeLayout?c._28:c._27);var w=this.createCollection(O.collections,O.orientation,O.id,O.header,O.enableGroupOverflow,i.tabIndex,f);n.i(r.append)(w,S)}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 k=d.querySelector("#"+O.id+c.e+c.f),T=n.i(r.getInstance)(k,p.DropDownButton),B=T.target.querySelector("#"+t.id+c.a);B&&(B.innerText=O.header)}}else d.querySelector(".e-ribbon-group-header").innerText=O.header;else{var B=a.target.querySelector("#"+t.id+c.a);B&&(B.innerText=O.header)}}}},e.prototype.updateCollection=function(t){var e=t.id,i=n.i(l.h)(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 u=void 0,d=void 0;if(this.activeLayout===s.a.Simplified&&(u=i.group.enableGroupOverflow?o.querySelector("#"+i.group.id+c.h):null,d=u?n.i(r.getComponent)(u,p.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 y=o.querySelector("#"+i.group.id+c.I),g=this.createItems(m.items,i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex,y);n.i(r.append)(g,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(l.a)(this.tabs,e);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[i.tabIndex].content,a=o.querySelector("#"+i.group.id);if(a){var u=a.querySelector("#"+i.group.id+c.I),d=null,f=null,h=void 0,b=void 0;if(""!==o.innerHTML){if(this.activeLayout===s.a.Simplified&&(h=i.group.enableGroupOverflow?o.querySelector("#"+i.group.id+c.h):null,b=h?n.i(r.getComponent)(h,p.DropDownButton):this.overflowDDB),this.activeLayout===s.a.Simplified&&i.item.displayOptions===s.b.Overflow){if(d=b.target.querySelector("#"+e+c.I),f=b.target.querySelector("#"+e),t.displayOptions&&t.displayOptions!==s.b.Overflow){var m=u.querySelector("#"+i.collection.id);m&&m.appendChild(d)}}else d=u.querySelector("#"+e+c.I),f=o.querySelector("#"+e),"GroupButton"===i.item.type&&this.activeLayout===s.a.Classic&&(f=o.querySelector("#"+e+c.g)),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,d,u),i.item.type!==s.f.DropDown&&i.item.type!==s.f.SplitButton&&t.type!==s.f.GroupButton&&t.type!==s.f.Gallery||this.updatePopupItems(i.item,d,i.group.enableGroupOverflow,!0));t.cssClass&&i.item.cssClass&&d.classList.remove(i.item.cssClass),this.destroyFunction(i.item,f),f.remove();var y=d.classList.value.match(/(e-ribbon-[large|medium|small]+-item)/g);y&&n.i(r.removeClass)([d],y)}var g=i.item;if(g.setProperties(t,!0),this.validateItemSize(),""!==o.innerHTML){d=this.activeLayout!==s.a.Simplified||g.displayOptions!==s.b.Overflow?u.querySelector("#"+e+c.I):b.target.querySelector("#"+e+c.I),g.ribbonTooltipSettings&&n.i(l.c)(g.ribbonTooltipSettings)&&(d.classList.add(c.o),this.tooltipData.push({id:d.id,data:g.ribbonTooltipSettings}));var v=g.activeSize;"Simplified"===this.activeLayout&&(v=g.allowedSizes===s.c.Large||g.allowedSizes&s.c.Medium||g.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,g.setProperties({activeSize:v},!0)),v&s.c.Large?d.classList.add(c._29,c._32):v&s.c.Medium?d.classList.add(c._30):d.classList.add(c._31),this.createRibbonItem(g,d),"Simplified"===this.activeLayout&&i.group.enableGroupOverflow&&(0===b.target.childElementCount||1===b.target.childElementCount&&this.isHeaderVisible(b.target,i.group.id))&&this.removeOverflowButton(b),this.selectedTab===i.tabIndex&&this.refreshLayout(),t.cssClass&&d.classList.add(g.cssClass),!g.disabled&&d.classList.contains(c.Y)&&d.classList.remove(c.Y),this.enableDisableItem(g.id,g.disabled)}}else this.isUpdateItems=!0,this.itemsModel.push(t),this.targetTabs[t.id]=i.tabIndex}},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+c.g):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+c.I).remove():r.closest("#"+e.id+c.I).remove())},e.prototype.enableItem=function(t){this.enableDisableItem(t,!1)},e.prototype.disableItem=function(t){this.enableDisableItem(t,!0)},e.prototype.getItem=function(t){return n.i(l.a)(this.tabs,t).item},e.prototype.enableDisableItem=function(t,e){var i=!1,o=n.i(l.a)(this.tabs,t);if(o){o.item.setProperties({disabled:e},!0);var s;if(s="GroupButton"===o.item.type?n.i(l.l)(this,t+c.g,o):n.i(l.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(c.Y):a.classList.contains(c.Y),"template"!==u){if(i)if("group-btn"===u&&"Simplified"===this.activeLayout){n.i(l.k)(s,"dropdown-btn",e);for(var p=0;p<o.item.groupButtonSettings.items.length;p++){var d=document.querySelector("#"+t+c.g+p);n.i(l.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+c.g+p);n.i(l.k)(d,"btn",e)}else n.i(l.k)(s,u,e)}else s.classList.toggle(c.Y,e),s.toggleAttribute("disabled",e);a.classList.toggle(c.Y,o.item.disabled)}}},e.prototype.unwireEvents=function(){r.EventHandler.remove(window,"resize",this.resizeHandler),r.EventHandler.remove(document.body,"keydown",this.keytipActionHandler),r.EventHandler.remove(document,"mousedown",this.mouseEventHandler),r.EventHandler.remove(document,"scroll",this.mouseEventHandler)},e.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,n.i(l.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={},this.keyTipElements={},this.itemsModel=[],this.targetTabs={},n.i(r.remove)(this.element.querySelector("#"+this.element.id+c._39)),this.element.style.removeProperty(c.s),this.element.style.removeProperty(c._46),this.element.style.removeProperty("width"),this.cssClass&&n.i(r.removeClass)([this.element],this.cssClass.split(c.O)),this.element.classList.remove(c.Z,c._37,c._11,c._7,c._13,"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(c.O)),t.cssClass&&(o=this.element.classList).add.apply(o,t.cssClass.split(c.O));break;case"isMinimized":this.element.classList.toggle(c._13,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(c.Z,this.enableRtl),this.updateCommonProperty({enableRtl:t.enableRtl}),this.scrollModule&&this.scrollModule.setProperties({enableRtl:t.enableRtl});break;case"launcherIconCss":for(var l=0;l<this.tabs.length;l++){var u=this.tabObj.items[parseInt(l.toString(),10)].content,d=this.tabs[parseInt(l.toString(),10)];if(u.querySelector("."+c._14))for(var f=0,h=d.groups;f<h.length;f++){var b=h[f];if(b.showLauncherIcon){var m=c._23+" "+(this.launcherIconCss||c._24);if(b.isCollapsed){var y=u.querySelector("#"+b.id+c.e+c.f),g=n.i(r.getComponent)(y,p.DropDownButton),v=g.target.querySelector("#"+b.id+c._44);v.className=m}else{var y=u.querySelector("#"+b.id+c._44);y.className=m}}}}break;case"selectedTab":var S=this.tabObj.element,_=S.querySelectorAll(".e-toolbar-item")[parseInt(t.selectedTab.toString(),10)];_.classList.contains("e-hidden")||_.classList.contains("e-disable")||this.tabObj.setProperties({selectedItem:t.selectedTab});break;case"tabAnimation":this.tabObj.setProperties({animation:t.tabAnimation});break;case"tabs":this.reRenderTabs(t.tabs);break;case"contextualTabs":for(var l=0;l<this.contextualTabs.length;l++)t.contextualTabs[parseInt(l.toString(),10)]&&this.ribbonContextualTabModule.updateContextualTabs(t.contextualTabs[parseInt(l.toString(),10)],this.contextualTabs[parseInt(l.toString(),10)]);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(c._46,"0px")),this.helpPaneTemplate&&this.createHelpPaneTemplate();this.tabObj.tbObj.refreshOverflow();break;case"hideLayoutSwitcher":this.hideLayoutSwitcher?this.removeExpandCollapse():this.addExpandCollapse()}}};var b;return h([n.i(r.Property)("Classic")],e.prototype,"activeLayout",void 0),h([n.i(r.Property)("")],e.prototype,"cssClass",void 0),h([n.i(r.Property)(!1)],e.prototype,"enableKeyTips",void 0),h([n.i(r.Property)("")],e.prototype,"layoutSwitcherKeyTip",void 0),h([n.i(r.Complex)({},o.k)],e.prototype,"fileMenu",void 0),h([n.i(r.Complex)({},o.l)],e.prototype,"backStageMenu",void 0),h([n.i(r.Property)("")],e.prototype,"launcherIconCss",void 0),h([n.i(r.Property)(!1)],e.prototype,"isMinimized",void 0),h([n.i(r.Property)("en-us")],e.prototype,"locale",void 0),h([n.i(r.Property)(0)],e.prototype,"selectedTab",void 0),h([n.i(r.Complex)({},i.TabAnimationSettings)],e.prototype,"tabAnimation",void 0),h([n.i(r.Collection)([],o.a)],e.prototype,"tabs",void 0),h([n.i(r.Collection)([],o.r)],e.prototype,"contextualTabs",void 0),h([n.i(r.Property)("100%")],e.prototype,"width",void 0),h([n.i(r.Property)("")],e.prototype,"helpPaneTemplate",void 0),h([n.i(r.Property)(!1)],e.prototype,"hideLayoutSwitcher",void 0),h([n.i(r.Event)()],e.prototype,"tabSelecting",void 0),h([n.i(r.Event)()],e.prototype,"tabSelected",void 0),h([n.i(r.Event)()],e.prototype,"ribbonExpanding",void 0),h([n.i(r.Event)()],e.prototype,"ribbonCollapsing",void 0),h([n.i(r.Event)()],e.prototype,"launcherIconClick",void 0),h([n.i(r.Event)()],e.prototype,"created",void 0),h([n.i(r.Event)()],e.prototype,"overflowPopupOpen",void 0),h([n.i(r.Event)()],e.prototype,"overflowPopupClose",void 0),e=b=h([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}),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});var i=n(13);n.d(e,"_69",function(){return i.a}),n.d(e,"_70",function(){return i.b}),n.d(e,"_71",function(){return i.c}),n.d(e,"_72",function(){return i.d}),n.d(e,"_73",function(){return i.e}),n.d(e,"_74",function(){return i.f}),n.d(e,"_75",function(){return i.g}),n.d(e,"_76",function(){return i.h}),n.d(e,"_77",function(){return i.i}),n.d(e,"_78",function(){return i.j}),n.d(e,"_79",function(){return i.k}),n.d(e,"_80",function(){return i.l}),n.d(e,"_81",function(){return i.m}),n.d(e,"_82",function(){return i.n}),n.d(e,"_83",function(){return i.o}),n.d(e,"_84",function(){return i.p}),n.d(e,"_85",function(){return i.q}),n.d(e,"_86",function(){return i.r}),n.d(e,"_87",function(){return i.s}),n.d(e,"_88",function(){return i.t}),n.d(e,"_89",function(){return i.u});var o=n(12);n.d(e,"_90",function(){return o.a}),n.d(e,"_91",function(){return o.b}),n.d(e,"_92",function(){return o.c}),n.d(e,"_93",function(){return o.d}),n.d(e,"_94",function(){return o.e}),n.d(e,"_95",function(){return o.f}),n.d(e,"_96",function(){return o.g}),n.d(e,"_97",function(){return o.h});var s=n(47);n.d(e,"_98",function(){return s.a}),n.d(e,"_99",function(){return s.b}),n.d(e,"_100",function(){return s.c}),n.d(e,"_101",function(){return s.d})},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(9)),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 l=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:l.iconCss,disabled:t.disabled,cssClass:(s.P+s.O+s.Q+s.O+(l.cssClass?l.cssClass:"")).trim(),content:t.activeSize===o.d.Small?"":l.content,isPrimary:l.isPrimary,isToggle:l.isToggle,created:l.created},a),l.htmlAttributes&&n.i(o._68)(a,l.htmlAttributes),a.onclick=function(t){l.clicked&&l.clicked.call(r,t)},a.setAttribute("aria-label",l.content)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var c=n.i(r.getComponent)(l,i.Button);c.setProperties({cssClass:c.cssClass+s.O+s.U}),l.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),l=n.i(r.getComponent)(a,i.Button),c=l.cssClass.split(s.O);c=c.filter(function(t){return t!==s.U}),l.setProperties({cssClass:c.join(s.O)}),a.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(o,e)}},t.prototype.click=function(t){var e=n.i(o._62)(this.parent,t);if(e){n.i(r.getComponent)(e,i.Button).click()}},t.prototype.updateButton=function(t,e){var a=n.i(o._56)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.buttonSettings,t);var l=n.i(o._62)(this.parent,e,a);if(l){var c=n.i(r.getComponent)(l,i.Button);t.isToggle&&l.classList.add("e-active"),t.cssClass&&(t.cssClass=(s.P+s.O+s.Q+s.O+t.cssClass).trim()),t.content&&(t.content=a.item.activeSize===o.d.Small?"":t.content,l.setAttribute("aria-label",t.content)),delete t.clicked,c.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(9)),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.t+(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,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var c=n.i(r.getComponent)(l,i.CheckBox);c.cssClass=c.cssClass+o.t+o.q,c.dataBind(),c.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),l=n.i(r.getComponent)(a,i.CheckBox),c=l.cssClass.split(o.t);c=c.filter(function(t){return t!==o.q}),l.cssClass=c.join(o.t),l.dataBind(),l.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(s,e)}},t.prototype.click=function(t){var e=n.i(o._62)(this.parent,t);if(e){n.i(r.getComponent)(e,i.CheckBox).click()}},t.prototype.updateCheckBox=function(t,e){var s=n.i(o._56)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.checkBoxSettings,t);var a=n.i(o._62)(this.parent,e,s);if(a){t.cssClass&&(t.cssClass=(o.p+o.t+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(60)),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,l=this.parent.createElement("input",{id:t.id});e.appendChild(l);var c=t.colorPickerSettings,u=new i.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:c.columns,cssClass:(s.Q+s.O+(c.cssClass?c.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:c.enableOpacity,mode:c.mode,modeSwitcher:c.modeSwitcher,noColor:c.noColor,presetColors:c.presetColors,showButtons:c.showButtons,value:c.value,beforeClose:function(){u.element.parentElement.classList.remove(s.S),c.beforeClose&&c.beforeClose.call(a)},beforeOpen:c.beforeOpen,beforeTileRender:c.beforeTileRender,created:c.created,change:function(t){c.value=t.value.toString(),c.change&&c.change.call(a,t)},open:function(){u.element.parentElement.classList.add(s.S),c.open&&c.open.call(a)},select:c.select},l);c.htmlAttributes&&n.i(o._68)(l,c.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.T):t.classList.remove(s.T)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,l=t.colorPickerSettings;if(l.label&&"Simplified"===this.parent.activeLayout){var c=this.parent.createElement("div",{className:"e-ribbon-colorpicker-label",id:t.id+"_label",innerHTML:l.label});e.insertBefore(c,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.O+s.U});var d,f=p.splitBtn;p.beforeClose=function(e){d=e.event?e.event.target:null,p.element.parentElement.classList.remove(s.S),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 l=e.querySelector("#"+t.id),c=n.i(r.getComponent)(l,i.ColorPicker),u=c.cssClass.split(s.O);u=u.filter(function(t){return t!==s.U}),c.setProperties({cssClass:u.join(s.O)}),c.splitBtn.close=null,c.beforeClose=function(){c.element.parentElement.classList.remove(s.S),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(o)}},t.prototype.getColorPickerObj=function(t){var e=n.i(o._62)(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._56)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.checkBoxSettings,t);var l=n.i(o._62)(this.parent,e,a);if(l){t.cssClass&&(t.cssClass=(s.Q+s.O+t.cssClass).trim()),delete t.beforeClose,delete t.open;n.i(r.getComponent)(l,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(31)),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.t+(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,l=t.comboBoxSettings;if(l.label&&"Simplified"===this.parent.activeLayout){var c=this.parent.createElement("div",{className:"e-ribbon-combobox-label",id:t.id+"_label",innerHTML:l.label});e.insertBefore(c,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.t+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 l=e.querySelector("#"+t.id),c=n.i(r.getComponent)(l,i.ComboBox),u=c.cssClass.split(o.t);u=u.filter(function(t){return t!==o.q}),c.setProperties({cssClass:u.join(o.t)}),c.close=function(e){t.comboBoxSettings.close&&t.comboBoxSettings.close.call(s,e)}},t.prototype.getComboBoxObj=function(t){var e=n.i(o._62)(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._56)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.comboBoxSettings,t);var a=n.i(o._62)(this.parent,e,s);if(a){t.cssClass&&(t.cssClass=(o.p+o.t+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 l});var r=n(0),i=(n.n(r),n(3)),o=(n.n(i),n(5)),s=(n.n(o),n(2)),a=n(1),l=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 l=t.dropDownSettings,c=(a.P+a.O+a.Q+a.O+(l.cssClass?l.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:l.closeActionEvents,content:t.activeSize===s.d.Small?"":l.content,cssClass:c+(t.activeSize===s.d.Large?a.O+a.R:""),disabled:t.disabled,iconCss:l.iconCss,items:l.items,target:l.target,createPopupOnClick:l.createPopupOnClick,beforeClose:function(t){l.beforeClose&&l.beforeClose.call(r,t)},beforeItemRender:l.beforeItemRender,beforeOpen:l.beforeOpen,close:function(t){l.close&&l.close.call(r,t)},created:l.created,open:l.open,select:l.select}).appendTo(o),l.htmlAttributes&&n.i(s._68)(o,l.htmlAttributes)},t.prototype.addOverFlowEvents=function(t,e,o){var s=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var c=n.i(r.getComponent)(l,i.DropDownButton);c.cssClass=c.cssClass+a.O+a.U,c.dataBind();var u;c.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(s,e),u=e.event?e.event.target:null},c.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),l=n.i(r.getComponent)(s,i.DropDownButton),c=l.cssClass.split(a.O);c=c.filter(function(t){return t!==a.U}),l.cssClass=c.join(a.O),l.dataBind(),l.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(o,e)},l.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(o,e)}},t.prototype.createOverFlowDropDown=function(t,e,o,l,c,u){var p=this;this.enableRtl=u;var d=this.parent.createElement("button",{id:t+a.e+a.f});l.setAttribute("tabindex","0"),c.appendChild(d);var f=new i.DropDownButton({iconCss:o,target:l,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:a.R+a.O+a.V,iconPosition:"Top",content:e,beforeClose:function(t){t.cancel=!n.i(r.isNullOrUndefined)(t.event&&n.i(r.closest)(t.event.target,"."+a.U))}},d);return n.i(s._65)(l,this.parent),d.onclick=d.onkeydown=function(){p.itemIndex=0},l.onkeydown=function(t){p.keyActionHandler(t,l)},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.e+a.f);return n.i(r.getComponent)(o,i.DropDownButton).dropDown.element},t.prototype.getDropDownObj=function(t){var e=n.i(s._62)(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._56)(this.parent.tabs,e);if(o){n.i(r.merge)(o.item.dropDownSettings,t);var l=n.i(s._62)(this.parent,e,o);if(l){var c=n.i(r.getComponent)(l,i.DropDownButton);t.cssClass&&(t.cssClass=(a.Q+a.O+a.P+a.O+t.cssClass).trim(),t.cssClass=o.item.activeSize===s.d.Large?(a.R+a.O+t.cssClass).trim():t.cssClass,c.cssClass=t.cssClass),delete t.close,delete t.beforeClose,t.content&&(t.content=o.item.activeSize===s.d.Small?"":t.content),c.setProperties(t)}}},t.prototype.updateDropDownSize=function(t,e){var o=n.i(r.getComponent)(t,i.DropDownButton),l=o.cssClass.split(a.O);e.activeSize===s.d.Large?l.push(a.R):l=l.filter(function(t){return t!==a.R}),o.cssClass=l.join(a.O),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 l});var r=n(0),i=(n.n(r),n(2)),o=n(3),s=(n.n(o),n(1)),a=n(5),l=(n.n(a),function(){function t(t){this.count=0,this.isAdded=!1,this.galleryItemsIndex=0,this.parent=t}return t.prototype.getModuleName=function(){return"ribbonGallery"},t.prototype.destroy=function(){this.parent=null},t.prototype.createGallery=function(t,e){var o=this,s=t.gallerySettings;this.renderGalleryItems(s,!1,t.id,e);var l=this.parent.createElement("button",{id:t.id+"_popupButton",className:"e-ribbon-gallery-button e-icons e-drop-icon"});e.appendChild(l),this.createPopup(t,l),l.onclick=function(e){var i=document.querySelector("#"+t.id+"_galleryPopup");if(i){var l=n.i(r.getComponent)(i,a.Popup);i.classList.contains("e-popup-close")?o.showPopup(l,i,e,s,t.id):o.hidePopup(l,i,e,s,t.id)}},document.onclick=function(t){for(var e,s,l=document.querySelectorAll(".e-ribbon-gallery-popup.e-popup-open"),c=0;c<l.length;c++){var u=n.i(r.getComponent)(l[parseInt(c.toString(),10)],a.Popup);if(!t.target.classList.contains("e-ribbon-gallery-button")){e=l[parseInt(c.toString(),10)].id.replace(/_galleryPopup/g,""),s=n.i(i._56)(o.parent.tabs,e),o.hidePopup(u,l[parseInt(c.toString(),10)],t,s.item.gallerySettings,e);break}if(e=l[parseInt(c.toString(),10)].id.replace(/_galleryPopup/g,""),t.target.id.replace(/_popupButton/g,"")!==e){s=n.i(i._56)(o.parent.tabs,e),o.hidePopup(u,l[parseInt(c.toString(),10)],t,s.item.gallerySettings,e);break}}}},t.prototype.renderGalleryItems=function(t,e,r,o){var s,a,l=this,c=n.i(i._56)(this.parent.tabs,r);c&&c.group&&(c.group.isCollapsible=!1);var u=this.parent.createElement("div",{className:"e-ribbon-gallery-wrapper",id:r+"_galleryWrapper"});e||o.appendChild(u);for(var p=this,d=0;d<t.groups.length;d++){if("break"===function(c){var d=!1;s=p.parent.createElement("ol",{className:"e-ribbon-gallery-container",id:r+"_galleryContainer"+c}),t.groups[parseInt(c.toString(),10)].itemHeight&&"auto"!==t.groups[parseInt(c.toString(),10)].itemHeight&&(d=!0),t.groups[parseInt(c.toString(),10)].cssClass&&s.classList.add(t.groups[parseInt(c.toString(),10)].cssClass);for(var f=0;f<t.groups[parseInt(c.toString(),10)].items.length;f++){if("break"===function(o){a=p.parent.createElement("li",{className:"e-ribbon-gallery-item",id:s.id+"_gallery"+o,attrs:{tabindex:"0"}});var f={name:"beforeItemRender",item:t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)]};if(t.beforeItemRender&&t.beforeItemRender.call(p,f),s.appendChild(a),t.selectedItemIndex&&t.selectedItemIndex===p.count?a.classList.add("e-ribbon-gallery-selected"):t.selectedItemIndex||0!==p.count||(a.classList.add("e-ribbon-gallery-selected"),t.selectedItemIndex=p.count),p.count=p.count+1,a.onclick=function(e){l.setActiveState(e.currentTarget,t,r,!0,e)},a.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||l.setActiveState(e.currentTarget,t,r,!0,e)},a.onmouseover=function(e){var n={event:e,name:"itemHover",item:t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)]};t.itemHover&&t.itemHover.call(l,n)},t.groups[parseInt(c.toString(),10)].itemWidth&&"auto"!==t.groups[parseInt(c.toString(),10)].itemWidth&&(a.style.width=t.groups[parseInt(c.toString(),10)].itemWidth+"px"),t.groups[parseInt(c.toString(),10)].itemHeight&&"auto"!==t.groups[parseInt(c.toString(),10)].itemHeight&&(a.style.height=t.groups[parseInt(c.toString(),10)].itemHeight+"px",a.style.paddingTop="0px",a.style.paddingBottom="0px","Simplified"===p.parent.activeLayout||e||(s.style.flexFlow="wrap")),!t.template&&!t.popupTemplate||t.template&&!t.popupTemplate&&e||t.popupTemplate&&!t.template&&!e){if(t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].htmlAttributes&&n.i(i._68)(a,t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].htmlAttributes),t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].iconCss){var h=p.parent.createElement("span",{className:"e-ribbon-gallery-icons "+t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].iconCss});a.appendChild(h),"Simplified"!==p.parent.activeLayout||e||h.classList.add("e-hidden")}t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].content&&a.appendChild(p.parent.createElement("span",{innerHTML:t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].content,className:"e-ribbon-gallery-text"})),t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].disabled&&a.classList.add("e-disabled"),t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].cssClass&&a.classList.add(t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)].cssClass)}if(t.template&&!e&&p.createGalleryTemplate(a,t,r,t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)]),t.popupTemplate&&e&&p.createGalleryPopupTemplate(a,t,r,t.groups[parseInt(c.toString(),10)].items[parseInt(o.toString(),10)]),!e&&!d&&t.itemCount===p.count)return u.appendChild(s),p.isAdded=!0,"break"}(f))break}if(p.isAdded&&!e)return"break";if(e?o.appendChild(s):u.appendChild(s),e&&t.groups[parseInt(c.toString(),10)].header){var h=p.parent.createElement("div",{className:"e-ribbon-gallery-header",innerHTML:t.groups[parseInt(c.toString(),10)].header});o.insertBefore(h,s)}}(d))break}this.count=0,this.isAdded=!1},t.prototype.setWrapperWidth=function(t,e,i,o){for(var s=1,a=0,l=!1,c=0;c<i.groups.length;c++){for(var u=0;u<i.groups[parseInt(c.toString(),10)].items.length;u++)if(i.groups[parseInt(c.toString(),10)].itemHeight&&"auto"!==i.groups[parseInt(c.toString(),10)].itemHeight){if(!(t>=s)){l=!0;break}var p=e.querySelector("#"+o+"_galleryContainer"+c+"_gallery"+u);if(p){a+=p.offsetWidth;var d=window.getComputedStyle(p);if(d){var f=parseFloat(d.paddingLeft)+parseFloat(d.paddingRight);n.i(r.isNullOrUndefined)(f)||(a+=f);var h=parseFloat(d.marginLeft)+parseFloat(d.marginRight);n.i(r.isNullOrUndefined)(h)||(a+=h)}}s++}if(l)break}a>0&&(e.style.width=a+"px")},t.prototype.checkAvailableHeight=function(t,e){for(var o=e.querySelectorAll(".e-ribbon-gallery-wrapper"),s=0;s<o.length;s++){var a=!1,l=0,c=o[parseInt(s.toString(),10)],u=c.offsetHeight,p=c.id.replace(/_galleryWrapper/g,""),d=n.i(i._56)(this.parent.tabs,p);if(d){this.setWrapperWidth(d.item.gallerySettings.itemCount,c,d.item.gallerySettings,p);for(var f=0;f<d.item.gallerySettings.groups.length;f++)if(d.item.gallerySettings.groups[parseInt(f.toString(),10)].itemHeight&&"auto"!==d.item.gallerySettings.groups[parseInt(f.toString(),10)].itemHeight)for(var h=0;h<d.item.gallerySettings.groups[parseInt(f.toString(),10)].items.length;h++){var b=c.querySelector("#"+p+"_galleryContainer"+f+"_gallery"+h);if(b)if(l++,a)b.remove();else{if(1===l){var m=0,y=window.getComputedStyle(b);if(y){var g=parseFloat(y.paddingTop)+parseFloat(y.paddingBottom);n.i(r.isNullOrUndefined)(g)||(m+=g);var v=parseFloat(y.marginTop)+parseFloat(y.marginBottom);n.i(r.isNullOrUndefined)(v)||(m+=v)}u>b.offsetHeight+m?u-=b.offsetHeight+m:(a=!0,b.remove())}l===d.item.gallerySettings.itemCount&&(l=0)}}}}},t.prototype.checkCollision=function(t,e){var i=0,o=0;if(e){var s=window.innerWidth,a=window.getComputedStyle(e);a&&(i=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight),n.i(r.isNullOrUndefined)(i)||(s-=i));var l=e.querySelectorAll(".e-ribbon-gallery-container");"auto"!==t.width&&l.forEach(function(t){t.style.flexFlow="wrap"});for(var c=!1,u=0;u<l.length;u++){for(var p=0,d=0;d<l[parseInt(u.toString(),10)].querySelectorAll(".e-ribbon-gallery-item").length;d++){var f=window.getComputedStyle(l[parseInt(u.toString(),10)].querySelectorAll(".e-ribbon-gallery-item")[parseInt(d.toString(),10)]);if(f&&(o=parseFloat(f.marginLeft)+parseFloat(f.marginRight),n.i(r.isNullOrUndefined)(o)||(p+=o)),p+=l[parseInt(u.toString(),10)].querySelectorAll(".e-ribbon-gallery-item")[parseInt(d.toString(),10)].offsetWidth,s<=p&&"auto"===t.width||"auto"!==t.width&&s<=parseInt(t.width.toString(),10)&&s<=p){e.style.width=p+Math.abs(i-o)-l[parseInt(u.toString(),10)].querySelectorAll(".e-ribbon-gallery-item")[parseInt(d.toString(),10)].offsetWidth+"px",c=!0;break}}if(c){l.forEach(function(t){t.style.flexFlow="wrap"});break}}c||("auto"===t.width?(l.forEach(function(t){t.style.flexFlow="nowrap"}),e.style.width="auto"):e.style.width=t.width.toString())}},t.prototype.createPopup=function(t,e){var n=this.parent.createElement("div",{className:"e-ribbon-popup-container",id:t.id+"_popupContainer"});this.renderGalleryItems(t.gallerySettings,!0,t.id,n);var r=this.parent.createElement("div",{className:"e-ribbon-gallery-popup",id:t.id+"_galleryPopup"});document.body.append(r),new a.Popup(r,{relateTo:e,content:n,collision:{X:"fit",Y:"flip"},actionOnScroll:"hide",targetType:"relative",position:{X:"left",Y:"bottom"},enableRtl:this.parent.enableRtl,width:t.gallerySettings.popupWidth,height:t.gallerySettings.popupHeight}).hide()},t.prototype.switchGalleryItems=function(t,e){var r=this.parent.element.querySelector("#"+e+s.I),o=0,a=n.i(i._56)(this.parent.tabs,e);if(r){var l=r.querySelector(".e-ribbon-gallery-wrapper"),c=r.querySelectorAll(".e-ribbon-gallery-icons"),u=r.querySelectorAll(".e-ribbon-gallery-container");if(c.length)for(var p=0;p<c.length;p++)"Simplified"===t?c[parseInt(p.toString(),10)].classList.add("e-hidden"):c[parseInt(p.toString(),10)].classList.remove("e-hidden");if(u.length&&a)for(var d=0;d<a.item.gallerySettings.groups.length;d++)for(var p=0;p<u.length;p++)a.item.gallerySettings.groups[parseInt(d.toString(),10)].itemHeight&&"auto"!==a.item.gallerySettings.groups[parseInt(d.toString(),10)].itemHeight&&e+"_galleryContainer"+d===u[parseInt(p.toString(),10)].id&&(u[parseInt(p.toString(),10)].style.flexFlow="Simplified"===t?"nowrap":"wrap");if(l)for(var d=0;d<a.item.gallerySettings.groups.length;d++)for(var p=0;p<a.item.gallerySettings.groups[parseInt(d.toString(),10)].items.length;p++)if(++o>a.item.gallerySettings.itemCount){var f=l.querySelector("#"+e+"_galleryContainer"+d+"_gallery"+p);f&&("Simplified"===t?f.classList.add("e-hidden"):f.classList.remove("e-hidden"))}}},t.prototype.addOverFlowEvents=function(t,e,s){var l=this;if(e.closest(".e-ribbon-overflow-target")){var c=this.parent.createElement("button",{id:t.id});e.appendChild(c),e.querySelector(".e-ribbon-gallery-wrapper").classList.add("e-hidden"),e.querySelectorAll(".e-ribbon-gallery-container").forEach(function(t){t.classList.add("e-hidden")});var u=e.querySelector("#"+t.id+"_popupButton");u&&u.classList.add("e-hidden");var p=n.i(i._56)(this.parent.tabs,t.id),d=p&&p.group.groupIconCss?p.group.groupIconCss:"",f=p&&p.group.header?p.group.header:"";if(!d)for(var h=0;h<t.gallerySettings.groups.length;h++){for(var b=0;b<t.gallerySettings.groups[parseInt(h.toString(),10)].items.length;b++)if(t.gallerySettings.groups[parseInt(h.toString(),10)].items[parseInt(b.toString(),10)].iconCss){d=t.gallerySettings.groups[parseInt(h.toString(),10)].items[parseInt(b.toString(),10)].iconCss;break}if(d)break}var m=document.querySelector("#"+t.id+"_galleryPopup"),y=n.i(r.getComponent)(m,a.Popup),g=document.querySelector("#"+t.id+"_galleryPopup .e-ribbon-popup-container"),v=new o.DropDownButton({iconCss:d,content:f,target:g,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-gallery-dropdown",disabled:t.disabled,open:function(){l.setFoucsToFirstItem(g,!0,t.id),l.checkCollision(v.dropDown,v.dropDown.element)},beforeClose:function(e){l.popupEvents(e.event,t.gallerySettings,"popupClose",!1)&&(e.cancel=!0)}},c);"auto"!==y.width&&(v.dropDown.width=n.i(r.formatUnit)(y.width)),"auto"!==y.height&&(v.dropDown.height=n.i(r.formatUnit)(y.height),v.dropDown.element.style.height=y.height.toString())}},t.prototype.removeOverFlowEvents=function(t,e){var i=e.querySelector("#"+t.id+"_popupButton");i&&i.classList.remove("e-hidden"),e.querySelector(".e-ribbon-gallery-wrapper").classList.remove("e-hidden"),e.querySelectorAll(".e-ribbon-gallery-container").forEach(function(t){t.classList.remove("e-hidden")});var s=document.querySelector("#"+t.id);if(s){var a=document.querySelector("#"+t.id+"_galleryPopup"),l=n.i(r.getComponent)(s,o.DropDownButton);a.appendChild(l.target),l.destroy(),n.i(r.remove)(s)}},t.prototype.setActiveState=function(t,e,n,r,i){var o,a,l=document.querySelector("#"+n+s.I),c=Array.prototype.slice.call(l.querySelectorAll(".e-ribbon-gallery-selected")),u=document.querySelector("#"+n+"_popupContainer"),p=Array.prototype.slice.call(u.querySelectorAll(".e-ribbon-gallery-selected"));p.length&&(c=c.concat(p));for(var d=0;d<e.groups.length;d++)for(var f=0;f<e.groups[parseInt(d.toString(),10)].items.length;f++)c[0].id===n+"_galleryContainer"+d+"_gallery"+f&&(o=e.groups[parseInt(d.toString(),10)].items[parseInt(f.toString(),10)]),t.id===n+"_galleryContainer"+d+"_gallery"+f&&(a=e.groups[parseInt(d.toString(),10)].items[parseInt(f.toString(),10)]);var h=document.querySelectorAll("#"+t.id),b={cancel:!1,name:"beforeSelect",previousItem:o,currentItem:a,isInteracted:r,event:i};if(e.beforeSelect&&e.beforeSelect.call(this,b),!b.cancel){for(var d=0;d<c.length;d++)c[parseInt(d.toString(),10)].classList.remove("e-ribbon-gallery-selected");for(var d=0;d<h.length;d++)h[parseInt(d.toString(),10)].classList.add("e-ribbon-gallery-selected");for(var m={previousItem:o,currentItem:a,name:"select",isInteracted:r,event:i},y=document.querySelectorAll("#"+n+"_popupContainer .e-ribbon-gallery-item"),d=0;d<y.length;d++)if(y[parseInt(d.toString(),10)].id===t.id){e.selectedItemIndex=d;break}e.select&&e.select.call(this,m)}},t.prototype.popupEvents=function(t,e,n,r){var i={cancel:!1,event:t,name:n};return r&&e.popupOpen?e.popupOpen.call(this,i):!r&&e.popupClose&&e.popupClose.call(this,i),!!i.cancel},t.prototype.showPopup=function(t,e,n,r,i){if(!this.popupEvents(n,r,"popupOpen",!0)){t.show(),this.checkCollision(t,e);var o=document.querySelector("#"+i+"_popupButton");o.classList.add("e-gallery-button-active");var s=o.getBoundingClientRect(),a=Math.abs(e.offsetWidth-s.left)+o.offsetWidth;e.style.left=a+"px",e.style.top=e.getBoundingClientRect().top+2+"px",this.setFoucsToFirstItem(e,!1,i,t,r)}},t.prototype.hidePopup=function(t,e,n,r,i){this.popupEvents(n,r,"popupClose",!1)||(t.hide(),document.querySelector("#"+i+"_popupButton").classList.remove("e-gallery-button-active"))},t.prototype.showGalleryPopup=function(t){var e=n.i(i._56)(this.parent.tabs,t),o=document.querySelector("#"+t+"_galleryPopup"),s=n.i(r.getComponent)(o,a.Popup);this.showPopup(s,o,null,e.item.gallerySettings,t)},t.prototype.hideGalleryPopup=function(t){var e=n.i(i._56)(this.parent.tabs,t),o=document.querySelector("#"+t+"_galleryPopup"),s=n.i(r.getComponent)(o,a.Popup);this.hidePopup(s,o,null,e.item.gallerySettings,t)},t.prototype.setFoucsToFirstItem=function(t,e,n,r,i){var o=this;t.querySelectorAll(".e-ribbon-gallery-item")[0].focus(),this.galleryItemsIndex=0,t.onkeydown=function(s){o.handleGalleryPopupNavigation(s,t,e,n,r,i)}},t.prototype.handleGalleryPopupNavigation=function(t,e,n,r,i,o){var s=e.querySelectorAll(".e-ribbon-gallery-item");s&&("Home"===t.key?(this.galleryItemsIndex=0,s[this.galleryItemsIndex].focus()):"End"===t.key?(this.galleryItemsIndex=s.length-1,s[this.galleryItemsIndex].focus()):"ArrowRight"===t.key||"ArrowDown"===t.key?(this.galleryItemsIndex++,this.galleryItemsIndex!==s.length?s&&s[this.galleryItemsIndex]&&s[this.galleryItemsIndex].focus():(this.galleryItemsIndex=0,s[this.galleryItemsIndex].focus())):"ArrowLeft"===t.key||"ArrowUp"===t.key?0!==this.galleryItemsIndex?(this.galleryItemsIndex--,s&&s[this.galleryItemsIndex]&&s[this.galleryItemsIndex].focus()):(this.galleryItemsIndex=s.length-1,s[this.galleryItemsIndex].focus()):"Enter"===t.key||"Space"===t.code?s[this.galleryItemsIndex].click():"Escape"!==t.key||n||this.hidePopup(i,e,t,o,r))},t.prototype.createGalleryTemplate=function(t,e,o,s){t.classList.add("e-ribbon-gallery-template");var a="ribbon"+o+"galleryTemplate";this.parent.clearTemplate([a]);var l=n.i(i._55)(e.template);s.disabled&&t.classList.add("e-disabled"),s.cssClass&&t.classList.add(s.cssClass),n.i(r.append)(l({items:s},this,a,o+"galleryTemplate",this.parent.isStringTemplate),t),this.parent.renderReactTemplates()},t.prototype.createGalleryPopupTemplate=function(t,e,o,s){t.classList.add("e-ribbon-gallery-popup-template");var a="ribbon"+o+"galleryPopupTemplate";this.parent.clearTemplate([a]);var l=n.i(i._55)(e.popupTemplate);s.disabled&&t.classList.add("e-disabled"),s.cssClass&&t.classList.add(s.cssClass),n.i(r.append)(l({items:s},this,a,o+"galleryPopupTemplate",this.parent.isStringTemplate),t),this.parent.renderReactTemplates()},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(9),s=(n.n(o),n(6)),a=n(3),l=(n.n(a),n(7)),c=n(5),u=(n.n(c),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 c=this,u=t.groupButtonSettings;this.count=0;var p=this.parent.createElement("div",{id:t.id+i.g,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.g+d,className:i.J});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(l.e)(f,u.items[parseInt(d.toString(),10)].htmlAttributes),u.items[parseInt(d.toString(),10)].content&&f.classList.add(i.K);var h=e.querySelector("#"+t.id+i.g+d);u.selection===s.d.Single?p.classList.add(i.L):p.classList.add(i.M),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(l.c)(u.items[parseInt(d.toString(),10)].ribbonTooltipSettings)&&(f.classList.add(i.o),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,y=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(;y<t.groupButtonSettings.items.length&&!this.isSelected&&!b;)t.groupButtonSettings.items[parseInt(y.toString(),10)].iconCss&&(b=t.groupButtonSettings.items[parseInt(y.toString(),10)].iconCss,this.isSelected=!0),y++;var g=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 v=g.dropDown;this.addGroupButtonHeader(t.id,u,v.element)}h.onclick=h.onkeydown=function(){c.handleFocusState(t,e)},p.onkeydown=function(e){"Simplified"===c.parent.activeLayout&&c.handleGroupButtonNavigation(e,t)},n.i(l.f)(p,this.parent),this.isSelected=!1}},t.prototype.groupButtonClicked=function(t,e,o){for(var l,c,u=[],p=[],d=[],f=0;f<o.items.length;f++)document.querySelector("#"+e.id+i.g+f)&&document.querySelector("#"+e.id+i.g+f).classList.contains("e-active")&&u.push(o.items[parseInt(f.toString(),10)]);document.querySelector("#"+e.id+i.g+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.g).classList.contains(i.M)&&(document.querySelector("#"+e.id+i.g).classList.remove(i.M),document.querySelector("#"+e.id+i.g).classList.add(i.L));for(var f=0;f<o.items.length;f++)document.querySelector("#"+e.id+i.g+f)&&document.querySelector("#"+e.id+i.g+f).classList.contains("e-active")&&(document.querySelector("#"+e.id+i.g+f).classList.remove("e-active"),o.items[parseInt(f.toString(),10)].setProperties({selected:!1},!0));document.querySelector("#"+e.id+i.g+t).classList.toggle("e-active"),o.items[parseInt(t.toString(),10)].setProperties({selected:!0},!0),document.querySelector("#"+e.id+i.g+t).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&(this.grpBtnIndex=t,l=document.querySelector("#"+e.id),c=n.i(r.getComponent)(l,a.DropDownButton),c.setProperties({iconCss:o.items[parseInt(t.toString(),10)].iconCss}))}else{document.querySelector("#"+e.id+i.g).classList.contains(i.L)&&(document.querySelector("#"+e.id+i.g).classList.remove(i.L),document.querySelector("#"+e.id+i.g).classList.add(i.M)),document.querySelector("#"+e.id+i.g+t).classList.toggle("e-active"),document.querySelector("#"+e.id+i.g+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.g+m)&&document.querySelector("#"+e.id+i.g+m).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&m!==t&&(this.isSelected=!0,b++);if("Simplified"===this.parent.activeLayout){var y=null,g=0;if(l=document.querySelector("#"+e.id),c=n.i(r.getComponent)(l,a.DropDownButton),this.isSelected){if(1===b&&!document.querySelector("#"+e.id+i.g+t).classList.contains("e-active"))for(var m=0;m<o.items.length;m++)document.querySelector("#"+e.id+i.g+m)&&document.querySelector("#"+e.id+i.g+m).classList.contains("e-active")&&(y=o.items[parseInt(m.toString(),10)].iconCss)}else document.querySelector("#"+e.id+i.g+t).classList.contains("e-active")&&(y=o.items[parseInt(t.toString(),10)].iconCss);for(;g<o.items.length&&!y;)o.items[parseInt(g.toString(),10)].iconCss&&(y=o.items[parseInt(g.toString(),10)].iconCss),g++;c.setProperties({iconCss:y}),this.grpBtnIndex=t}this.isSelected=!1}document.querySelector("#"+e.id+i.g+t).classList.contains("e-active")&&d.push(o.items[parseInt(t.toString(),10)]);var v={previousItems:u,selectedItems:d};o.items[parseInt(t.toString(),10)].click&&o.items[parseInt(t.toString(),10)].click.call(this,v)}},t.prototype.switchGroupButton=function(t,e){var o=this,c=t.groupButtonSettings,u=null,p=0,d=0;if("Simplified"===this.parent.activeLayout){var f=e.querySelector("#"+t.id+i.g),h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var b=0;b<c.items.length;b++)document.querySelector("#"+t.id+i.g+b)&&(document.querySelector("#"+t.id+i.g+b).classList.contains("e-active")&&c.selection===s.d.Single?u=c.items[parseInt(b.toString(),10)].iconCss:document.querySelector("#"+t.id+i.g+b).classList.contains("e-active")&&c.selection===s.d.Multiple&&(p++,1===p?u=c.items[parseInt(b.toString(),10)].iconCss:p>1&&(u=null)));for(;d<c.items.length&&!u;)c.items[parseInt(d.toString(),10)].iconCss&&(u=c.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(c.header){var y=m.dropDown;this.addGroupButtonHeader(t.id,c,y.element)}h.onclick=h.onkeydown=function(){o.handleFocusState(t,e)},f.onkeydown=function(e){"Simplified"===o.parent.activeLayout&&o.handleGroupButtonNavigation(e,t)},n.i(l.f)(f,this.parent)}else{var g=e.querySelector("#"+t.id),m=n.i(r.getComponent)(g,a.DropDownButton);e.appendChild(m.target),g&&(m.destroy(),n.i(r.remove)(g))}},t.prototype.handleFocusState=function(t,e){if(e.querySelector("#"+t.id).classList.contains("e-active")){var n=document.querySelector("#"+t.id+"_grpbtn").querySelector("."+i.J+".e-active");n?n.focus():document.querySelector("#"+t.id+i.g+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.a,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),l=s.target,c=!1;"Simplified"===this.parent.activeLayout&&l.closest(".e-ribbon-dropdown-group-button").classList.contains(i.N)&&(c=!0),"Tab"===t.key&&t.preventDefault();var u=e.groupButtonSettings;"ArrowRight"===t.key&&!c||"ArrowDown"===t.key&&c?!this.parent.enableRtl||"ArrowDown"===t.key&&c?(this.grpBtnIndex++,this.grpBtnIndex<u.items.length?document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus())):0===this.grpBtnIndex?(this.grpBtnIndex=u.items.length-1,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus()):("ArrowLeft"===t.key&&!c||"ArrowUp"===t.key&&c)&&(!this.parent.enableRtl||"ArrowUp"===t.key&&c?0===this.grpBtnIndex?(this.grpBtnIndex=u.items.length-1,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus()):(this.grpBtnIndex++,this.grpBtnIndex<u.items.length?document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+i.g+this.grpBtnIndex).focus())))},t.prototype.addOverFlowEvents=function(t,e,o){var s=this,l=t.groupButtonSettings,c=!0,u=e.querySelector("#"+t.id),p=n.i(r.getComponent)(u,a.DropDownButton);p.setProperties({cssClass:p.cssClass+i.O+i.N,content:l.header?l.header:""});var d=p.target;if(d.children.length){for(var f=0;f<d.children.length;f++)if(l.items[parseInt(f.toString(),10)].content){c=!1;break}c&&d.classList.add("e-icon-btn")}d.onclick=function(){"Simplified"===s.parent.activeLayout&&d.closest(".e-ribbon-dropdown-group-button").classList.contains(i.N)&&(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),l=s.target;l.classList.contains("e-icon-btn")&&l.classList.remove("e-icon-btn");var c=s.cssClass.split(i.O);c=c.filter(function(t){return t!==i.N}),s.setProperties({cssClass:c.join(i.O),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,c.Tooltip).destroy(),i.destroy(),n.i(r.remove)(e)}},t.prototype.updateGroupButtonSize=function(t,e){for(var a,l=e.groupButtonSettings,c=0;c<l.items.length;c++)if(a="Classic"===this.parent.activeLayout?t.querySelector("#"+e.id+i.g+c):document.querySelector("#"+e.id+i.g+c)){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?"":l.items[parseInt(c.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,l=this.parent.createElement("button",{id:t.id});e.appendChild(l);var c=t.splitButtonSettings,u=(s.P+s.O+s.Q+s.O+(c.cssClass?c.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:c.closeActionEvents,cssClass:u+(t.activeSize===o.d.Large?s.O+s.R:""),disabled:t.disabled,iconCss:c.iconCss,items:c.items,target:c.target,beforeClose:function(t){c.beforeClose&&c.beforeClose.call(a,t)},beforeItemRender:c.beforeItemRender,beforeOpen:c.beforeOpen,close:function(){p.wrapper.classList.remove(s.S),c.close&&c.close.call(a)},created:c.created,open:function(){p.wrapper.classList.add(s.S),c.open&&c.open.call(a)},select:c.select,click:function(t){c.click&&c.click.call(a,t)}},l);c.htmlAttributes&&n.i(o._68)(l,c.htmlAttributes);var d=l.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.T)},this),r.EventHandler.add(f,"mouseleave",function(){f.classList.remove(s.T)},this)},t.prototype.addOverFlowEvents=function(t,e,o){var a=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var c=n.i(r.getComponent)(l,i.SplitButton);c.cssClass=c.cssClass+s.O+s.U,c.dataBind();var u=l.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(),c.wrapper.classList.remove("e-ribbon-open"),d.querySelector(".e-focused").click())};var f;c.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(a,e),f=e.event?e.event.target:null},c.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(a,e),o.toggle()},c.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(a,e),c.wrapper.classList.remove(s.S),f&&!f.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var o=this,a=e.querySelector("#"+t.id),l=n.i(r.getComponent)(a,i.SplitButton),c=l.cssClass.split(s.O);c=c.filter(function(t){return t!==s.U}),l.cssClass=c.join(s.O),l.dataBind(),l.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(o,e)},l.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(o,e)},l.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(o,e),l.wrapper.classList.remove(s.S)}},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._62)(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._56)(this.parent.tabs,e);if(a){n.i(r.merge)(a.item.splitButtonSettings,t);var l=n.i(o._62)(this.parent,e,a);if(l){var c=n.i(r.getComponent)(l,i.SplitButton);t.cssClass&&(t.cssClass=(s.Q+s.O+s.P+s.O+t.cssClass).trim(),t.cssClass=a.item.activeSize===o.d.Large?(s.R+s.O+t.cssClass).trim():t.cssClass,c.cssClass=t.cssClass),delete t.open,delete t.click,delete t.close,delete t.beforeClose,c.setProperties(t),t.content&&this.setContent(a.item,c)}}},t.prototype.updateSplitButtonSize=function(t,e){var a=n.i(r.getComponent)(t,i.SplitButton),l=a.cssClass.split(s.O);e.activeSize===o.d.Large?l.push(s.R):l=l.filter(function(t){return t!==s.R}),a.cssClass=l.join(s.O),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 c});var r=n(0),i=(n.n(r),n(14)),o=n(15),s=n(8),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)}}(),l=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 a(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},l([n.i(r.Property)("File")],e.prototype,"text",void 0),l([n.i(r.Property)("")],e.prototype,"keyTip",void 0),l([n.i(r.Property)(!1)],e.prototype,"visible",void 0),l([n.i(r.Property)("auto")],e.prototype,"height",void 0),l([n.i(r.Property)("auto")],e.prototype,"width",void 0),l([n.i(r.Property)(null)],e.prototype,"target",void 0),l([n.i(r.Complex)({},i.a)],e.prototype,"backButton",void 0),l([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),l([n.i(r.Property)("")],e.prototype,"template",void 0),l([n.i(r.Complex)({},s.a)],e.prototype,"ribbonTooltipSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=(n.n(r),n(30)),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)(!1)],e.prototype,"visible",void 0),s([n.i(r.Property)(!1)],e.prototype,"isSelected",void 0),s([n.i(r.Collection)([],i.a)],e.prototype,"tabs",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),i=(n.n(r),n(10)),o=(n.n(i),n(8)),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},l=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),a([n.i(r.Property)("")],e.prototype,"keyTip",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";var r=n(50);n.d(e,"a",function(){return r.a});var i=n(48);n.d(e,"b",function(){return i.a});var o=n(49);n.d(e,"c",function(){return o.a});var s=n(51);n.d(e,"d",function(){return s.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(0),i=(n.n(r),n(10)),o=(n.n(i),n(2)),s=n(7),a=n(1),l=n(9),c=(n.n(l),n(5)),u=(n.n(c),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),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.q});var n=this.parent.tabObj.element,i=n.querySelector(".e-toolbar");if(n.insertBefore(this.backstageButtonEle,i),this.backstageButton=new l.Button({content:t.text,enableRtl:this.parent.enableRtl,cssClass:a.r,created:function(){n.style.setProperty(a.s,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,c=0;c<t.items.length;c++){t.items[parseInt(c.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.t);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),this.addBackStageMenuKeyTip(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.c)(t.ribbonTooltipSettings)&&(this.backstageButtonEle.classList.add(a.o),this.parent.tooltipData.push({id:this.backstageButtonEle.id,data:t.ribbonTooltipSettings}))},e.prototype.addBackStageMenuKeyTip=function(t){if(t.keyTip&&(this.parent.keyTipElements.backstage||(this.parent.keyTipElements.backstage=[]),this.parent.keyTipElements.backstage.push({id:this.backstageButtonEle.id,type:"backstage",keyTip:t.keyTip})),t.items&&t.items.length){this.parent.keyTipElements.backstageMenu||(this.parent.keyTipElements.backstageMenu=[]);for(var e=0;e<t.items.length;e++)t.items[parseInt(e.toString(),10)].keyTip&&this.parent.keyTipElements.backstageMenu.push({id:t.items[parseInt(e.toString(),10)].id,type:"backstageMenu",keyTip:t.items[parseInt(e.toString(),10)].keyTip})}},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.u)}}},e.prototype.createBackStagePopup=function(t){var e=this;this.popupHTMLElement=this.parent.createElement("div",{id:this.parent.element.id+a.v,className:a.w});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 c.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.x}),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 l.Button({content:t.backButton.text,iconCss:t.backButton.iconCss?t.backButton.iconCss:a.y,enableRtl:this.parent.enableRtl},r),this.menuWrapper.append(r),r.onclick=function(){n.popupHTMLElement.classList.remove(a.t),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.z}),this.menuWrapper.append(this.itemsWrapperEle));var o;e?(o=this.parent.createElement("ul",{id:this.parent.element.id+a.A}),this.itemsWrapperEle.appendChild(o)):(this.ulMenuElem=this.parent.createElement("ul",{id:this.parent.element.id+a.B}),this.itemsWrapperEle.appendChild(this.ulMenuElem)),e?this.footerMenuCtrl=new i.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:a.C,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.C,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.D):this.backstageContentEle=this.parent.createElement("div",{id:t+a.D,className:a.E});var i=n.i(s.d)(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.q+"_template",className:a.F});var e=n.i(s.d)(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.s,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.removeBackstageMenuKeyTip(),this.addBackStageMenuTooltip(t),this.addBackStageMenuKeyTip(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.removeBackstageMenuKeyTip(),this.parent.tabObj.element.style.removeProperty(a.s),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._54)(this.parent.tooltipData,function(e){return e.id===t.backstageButtonEle.id});-1!==e&&(this.backstageButtonEle.classList.remove(a.o),this.parent.tooltipData.splice(e,1))},e.prototype.removeBackstageMenuKeyTip=function(){var t=this;if(this.parent.keyTipElements.backstage&&this.parent.keyTipElements.backstage.length){var e=n.i(o._54)(this.parent.keyTipElements.backstage,function(e){return e.id===t.backstageButtonEle.id});-1!==e&&this.parent.keyTipElements.backstage.splice(e,1)}if(this.parent.keyTipElements.backstageMenu&&this.parent.keyTipElements.backstageMenu.length)for(var r=0;r<this.parent.keyTipElements.backstageMenu.length;r++)this.parent.keyTipElements.backstageMenu.splice(r,1),r--},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)],l=0;l<s.length;l++){var c=s[parseInt(l.toString(),10)];if(o.text===c.text){c.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.t)&&this.popupEle.element.classList.remove(a.t),this.popupEle.hide()},e}(r.Component)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(1),i=n(0),o=(n.n(i),function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonContextualTab"},t.prototype.destroy=function(){this.parent=null},t.prototype.addContextualTabs=function(){for(var t=!1,e=0;e<this.parent.contextualTabs.length;e++)for(var n=0;n<this.parent.contextualTabs[parseInt(e.toString(),10)].tabs.length;n++){this.parent.addTab(this.parent.contextualTabs[parseInt(e.toString(),10)].tabs[parseInt(n.toString(),10)]);var i=this.parent.tabs.length-1,o=this.parent.tabObj.element,s=o.querySelectorAll(".e-toolbar-item")[parseInt(i.toString(),10)];s.classList.add(r.p),s.classList.add("e-hidden"),this.parent.contextualTabs[parseInt(e.toString(),10)].visible&&(this.parent.showTab(this.parent.contextualTabs[parseInt(e.toString(),10)].tabs[parseInt(n.toString(),10)].id,!0),this.parent.contextualTabs[parseInt(e.toString(),10)].isSelected&&!t&&(this.parent.selectTab(this.parent.contextualTabs[parseInt(e.toString(),10)].tabs[0].id),t=!0))}},t.prototype.updateContextualTabs=function(t,e){if(!n.i(i.isNullOrUndefined)(t.visible))for(var r=0;r<e.tabs.length;r++)t.visible?this.parent.showTab(e.tabs[parseInt(r.toString(),10)].id,!0):this.parent.hideTab(e.tabs[parseInt(r.toString(),10)].id,!0);if(!n.i(i.isNullOrUndefined)(t.isSelected))if(t.isSelected&&e.visible)this.parent.selectTab(e.tabs[0].id);else for(var o=this.parent.tabObj.element,r=0;r<this.parent.tabs.length;r++){var s=o.querySelectorAll(".e-toolbar-item")[parseInt(r.toString(),10)];if(!s.classList.contains("e-hidden")&&!s.classList.contains("e-disable")){this.parent.selectTab(this.parent.tabs[parseInt(r.toString(),10)].id);break}}if(t.tabs){var a=this;for(var l in t.tabs)!function(t){var n=parseInt(t,10),r=a.parent.tabs.filter(function(t){return t.id===e.tabs[parseInt(n.toString(),10)].id})[0];a.parent.updateTab(r)}(l)}},t}())},function(t,e,n){"use strict";n.d(e,"a",function(){return l});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),l=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.G});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.s,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),this.addFileMenuKeytip()}},t.prototype.addFileMenuTooltip=function(t){n.i(s._63)(t.ribbonTooltipSettings)&&(this.ddbElement.classList.add(a.o),this.parent.tooltipData.push({id:this.ddbElement.id,data:t.ribbonTooltipSettings}))},t.prototype.addFileMenuKeytip=function(){this.parent.fileMenu.keyTip&&(this.parent.keyTipElements.filemenu=[],this.parent.keyTipElements.filemenu.push({id:this.ddbElement.id,type:"filemenu",keyTip:this.parent.fileMenu.keyTip}))},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.H});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.s,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.removeFileMenuKeytip(),this.addFileMenuTooltip(t),this.addFileMenuKeytip()):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.removeFileMenuKeytip(),this.parent.tabObj.element.style.removeProperty(a.s),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._54)(this.parent.tooltipData,function(e){return e.id===t.ddbElement.id});-1!==e&&(this.ddbElement.classList.remove(a.o),this.parent.tooltipData.splice(e,1))},t.prototype.removeFileMenuKeytip=function(){var t=this;if(this.parent.keyTipElements.filemenu){var e=n.i(s._54)(this.parent.keyTipElements.filemenu,function(e){return e.id===t.ddbElement.id});-1!==e&&this.parent.keyTipElements.filemenu.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";n.d(e,"a",function(){return c});var r=n(7),i=n(2),o=n(1),s=n(5),a=(n.n(s),n(0)),l=(n.n(a),n(3)),c=(n.n(l),function(){function t(t){this.isKeytipPopupOpen=!1,this.parent=t}return t.prototype.getModuleName=function(){return"ribbonKeyTip"},t.prototype.destroy=function(){this.parent=null},t.prototype.createKeytip=function(t){if(this.parent.keyTipElements){var e=void 0;if("tab"===t){for(var n=0;n<this.parent.tabs.length;n++)this.parent.keyTipElements[parseInt(n.toString(),10)]&&(e=this.parent.keyTipElements[n][t],this.createKeyTipElement(e[0].id,e[0].keyTip,"tab","center","bottom",!0));this.parent.keyTipElements.filemenu&&(e=this.parent.keyTipElements.filemenu,this.createKeyTipElement(e[0].id,e[0].keyTip,"filemenu")),this.parent.keyTipElements.backstage&&(e=this.parent.keyTipElements.backstage,this.createKeyTipElement(e[0].id,e[0].keyTip,"backstage")),this.parent.keyTipElements.collapse&&(e=this.parent.keyTipElements.collapse,this.createKeyTipElement(e[0].id,e[0].keyTip,"collapse")),this.parent.keyTipElements.taboverflow&&(e=this.parent.keyTipElements.taboverflow,this.createKeyTipElement(e[0].id,e[0].keyTip,"taboverflow"))}else if("popupitem"===t){if(this.parent.keyTipElements[this.parent.selectedTab].popupitem)for(var r=this.parent.keyTipElements[this.parent.selectedTab].popupitem,n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].popupitem).length;n++)this.createKeyTipElement(r[parseInt(n.toString(),10)].id,r[parseInt(n.toString(),10)].keyTip,"popupitem","left","top",!1,!0)}else if("backstageMenu"===t){if(this.parent.keyTipElements.backstageMenu)for(var i=this.parent.keyTipElements.backstageMenu,n=0;n<Object.keys(this.parent.keyTipElements.backstageMenu).length;n++)this.createKeyTipElement(i[parseInt(n.toString(),10)].id,i[parseInt(n.toString(),10)].keyTip,"backstageMenu","left","center")}else if("grpoverflowpopup"===t&&"Classic"===this.parent.activeLayout){if(this.parent.keyTipElements[this.parent.selectedTab].grpoverflowpopup&&this.calculateItemPosition(t),this.parent.keyTipElements[this.parent.selectedTab].launcher)for(var n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].launcher).length;n++)e=this.parent.keyTipElements[this.parent.selectedTab].launcher,this.createKeyTipElement(e[parseInt(n.toString(),10)].id,e[parseInt(n.toString(),10)].keyTip,"launcher","center","bottom",!1,!0)}else{if(this.calculateItemPosition(t),"Classic"===this.parent.activeLayout){if(this.parent.keyTipElements[this.parent.selectedTab].launcher)for(var n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].launcher).length;n++)e=this.parent.keyTipElements[this.parent.selectedTab].launcher,this.createKeyTipElement(e[parseInt(n.toString(),10)].id,e[parseInt(n.toString(),10)].keyTip,"launcher");if(this.parent.keyTipElements[this.parent.selectedTab].grpoverflow)for(var n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].grpoverflow).length;n++)e=this.parent.keyTipElements[this.parent.selectedTab].grpoverflow,this.createKeyTipElement(e[parseInt(n.toString(),10)].id,e[parseInt(n.toString(),10)].keyTip,"grpoverflow")}if("Simplified"===this.parent.activeLayout&&(this.parent.keyTipElements.overflowbtn&&(e=this.parent.keyTipElements.overflowbtn,this.createKeyTipElement(e[0].id,e[0].keyTip,"overflowbtn")),this.parent.keyTipElements[this.parent.selectedTab].grpofbtn))for(var n=0;n<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].grpofbtn).length;n++)e=this.parent.keyTipElements[this.parent.selectedTab].grpofbtn,this.createKeyTipElement(e[parseInt(n.toString(),10)].id,e[parseInt(n.toString(),10)].keyTip,"grpofbtn")}}},t.prototype.calculateItemPosition=function(t,e,i){void 0===e&&(e=!1);var o,s,a;if(a=this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(),10)][t])for(var l=0;l<Object.keys(this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(),10)][t]).length;l++)if(e&&a[parseInt(l.toString(),10)].keyTip===i||!e){var c=a[parseInt(l.toString(),10)].id;a[parseInt(l.toString(),10)].id.includes("_grpbtn")&&(c=a[parseInt(l.toString(),10)].id.replace(/_grpbtn\d+/,""));var u=n.i(r.a)(this.parent.tabs,c);u&&"Column"===u.group.orientation&&u.collection.items.length>1&&"Simplified"!==this.parent.activeLayout?0===u.itemIndex?(o="center",s="top"):1===u.itemIndex?(o="center",s="center"):(o="center",s="bottom"):u&&"Row"===u.group.orientation&&u.group.collections.length>1&&"Simplified"!==this.parent.activeLayout&&(0===u.collectionIndex?(o="center",s="top"):(o="center",s="bottom")),"item"===t?this.createKeyTipElement(a[parseInt(l.toString(),10)].id,a[parseInt(l.toString(),10)].keyTip,t,o,s):this.createKeyTipElement(a[parseInt(l.toString(),10)].id,a[parseInt(l.toString(),10)].keyTip,t,o,s,!1,!0)}},t.prototype.createKeyTipElement=function(t,e,n,r,i,a,l){void 0===r&&(r="center"),void 0===i&&(i="bottom"),void 0===a&&(a=!1),void 0===l&&(l=!1);var c,u=document.querySelector("#"+t),p=!1;if(a&&(u=document.querySelector("#"+t+o.a)),u)if(u.closest(".e-ribbon-group-overflow-ddb")&&(p=!0),a&&l&&u.closest(".e-toolbar-pop")&&(p=!0),u.closest(".e-split-btn-wrapper")){var d=u.closest(".e-split-btn-wrapper");c=d.closest(".e-ribbon-item").id}else u.closest(".e-colorpicker-wrapper")&&(u=u.closest(".e-colorpicker-wrapper"),c=u.closest(".e-ribbon-item").id);if((u&&u.offsetParent||a&&l)&&(l&&p||!l)){var f=this.parent.createElement("div",{className:o.b,id:t+o.c});document.body.append(f);new s.Popup(f,{relateTo:"#"+(a?t+o.a:c||t),content:e,collision:{X:"fit",Y:"flip"},targetType:"relative",position:{X:r,Y:i},enableRtl:this.parent.enableRtl}).show(),this.calculateKeyTipPosition(u,f,n,i,a&&l),this.parent.isKeytipOpen=!0}},t.prototype.calculateKeyTipPosition=function(t,e,n,r,i){void 0===i&&(i=!1);var o=t.getBoundingClientRect();"backstageMenu"===n?(e.style.top=o.top+e.offsetHeight/2+"px",e.style.left=o.left+t.offsetWidth/5+"px"):"popupitem"!==n&&(e.style.left=o.left+(o.width-e.offsetWidth)/2+"px"),"filemenu"===n||"backstage"===n?e.style.top=o.top+(t.offsetHeight-t.offsetHeight/3+e.offsetHeight/6)+"px":"item"===n&&"top"===r&&(e.style.top=o.top-t.offsetHeight/2+"px")},t.prototype.keytipPress=function(t,e){var i=this;void 0===e&&(e=!1),this.isKeytipPresent=!1;for(var s=0;s<Object.keys(this.parent.keyTipElements).length&&!this.isKeytipPresent;s++)if(this.parent.keyTipElements[parseInt(s.toString(),10)]){for(var a=0;a<Object.keys(this.parent.keyTipElements[parseInt(s.toString(),10)]).length&&!this.isKeytipPresent;a++)for(var l=this.parent.keyTipElements[parseInt(s.toString(),10)][Object.keys(this.parent.keyTipElements[parseInt(s.toString(),10)])[parseInt(a.toString(),10)]],c=0;c<l.length&&!this.isKeytipPresent;c++)if(t.toUpperCase()===l[parseInt(c.toString(),10)].keyTip){var u=document.querySelector("#"+l[parseInt(c.toString(),10)].id+o.c);if(u||e)if(this.isKeytipPresent=!0,this.removeKeytip(),"tab"===l[parseInt(c.toString(),10)].type)s!==this.parent.selectedTab?(this.parent.tabObj.select(s),setTimeout(function(){var t=i.parent.tabObj.element.querySelector(".e-nav-active");t&&t.click(),i.createKeytip("item")},600)):this.createKeytip("item");else if("item"===l[parseInt(c.toString(),10)].type||"grpoverflowpopup"===l[parseInt(c.toString(),10)].type||"popupitem"===l[parseInt(c.toString(),10)].type)if(document.getElementById(l[parseInt(c.toString(),10)].id)&&document.getElementById(l[parseInt(c.toString(),10)].id).classList.contains("e-ribbon-group-button"))document.getElementById(l[parseInt(c.toString(),10)].id).click();else{var p=void 0;if(l[parseInt(c.toString(),10)].id.includes("_popupButton")){var d=l[parseInt(c.toString(),10)].id.replace(/_popupButton/g,"");p=n.i(r.a)(this.parent.tabs,d)}else p=n.i(r.a)(this.parent.tabs,l[parseInt(c.toString(),10)].id);(!e||e&&p.tabIndex===this.parent.selectedTab)&&this.clickItems(p,l,c,!1,e)}else if("grpoverflow"===l[parseInt(c.toString(),10)].type||"grpofbtn"===l[parseInt(c.toString(),10)].type||"launcher"===l[parseInt(c.toString(),10)].type){var f=document.querySelector("#"+l[parseInt(c.toString(),10)].id);if(this.removeKeytip(),f){var h=l[parseInt(c.toString(),10)].id;if(e){if(l[parseInt(c.toString(),10)].id.includes("_launcher")||l[parseInt(c.toString(),10)].id.includes("_sim_grp_overflow")||l[parseInt(c.toString(),10)].id.includes("_overflow_dropdown")){h=l[parseInt(c.toString(),10)].id.replace(/_launcher|_sim_grp_overflow|_overflow_dropdown/g,"");var p=n.i(r.b)(this.parent.tabs,h);p.tabIndex===this.parent.selectedTab&&this.clickItems(p,l,c,!0,e,f)}}else this.clickItems(null,l,c,!0,e,f)}}}}else this.parent.keyTipElements&&this.commonItemsKeyTipPress(t,Object.keys(this.parent.keyTipElements)[parseInt(s.toString(),10)],e)},t.prototype.clickItems=function(t,e,r,i,s,c){if(i)c.click(),"launcher"!==e[parseInt(r.toString(),10)].type&&(this.isKeytipPopupOpen=!0,"grpoverflow"===e[parseInt(r.toString(),10)].type?this.createKeytip("grpoverflowpopup"):this.createKeytip("popupitem"));else{var u=e[parseInt(r.toString(),10)].id;document.querySelector("#"+u)&&s&&("Simplified"===this.parent.activeLayout?document.querySelector("#"+u).closest("#"+t.group.id+"_sim_grp_overflow-popup")&&document.querySelector("#"+u).closest("#"+t.group.id+"_sim_grp_overflow-popup").classList.contains("e-popup-close")?document.querySelector("#"+t.group.id+"_sim_grp_overflow").click():document.querySelector("#"+u).closest("#"+this.parent.tabObj.element.id+o.d+"-popup")&&document.querySelector("#"+u).closest("#"+this.parent.tabObj.element.id+o.d+"-popup").classList.contains("e-popup-close")&&document.querySelector("#"+this.parent.tabObj.element.id+o.d).click():document.querySelector("#"+u).closest("#"+t.group.id+o.e+o.f+"-popup")&&document.querySelector("#"+u).closest("#"+t.group.id+o.e+o.f+"-popup").classList.contains("e-popup-close")&&document.querySelector("#"+t.group.id+o.e+o.f).click());switch(this.parent.getItemModuleName(t.item)){case"btn":this.parent.ribbonButtonModule.click(u);break;case"dropdown-btn":this.parent.ribbonDropDownModule.toggle(u);break;case"split-btn":this.parent.ribbonSplitButtonModule.toggle(u);break;case"checkbox":this.parent.ribbonCheckBoxModule.click(u);break;case"colorpicker":this.parent.ribbonColorPickerModule.toggle(u);break;case"combobox":var p=document.querySelector("#"+u);setTimeout(function(){p.focus()},100);break;case"gallery":document.querySelector("#"+u).click();break;case"template":document.querySelector("#"+u).focus();break;case"group-btn":var d=document.querySelector("#"+u);if(d){n.i(a.getInstance)(d,l.DropDownButton).toggle();for(var f=0;f<t.item.groupButtonSettings.items.length;f++)t.item.groupButtonSettings.items[parseInt(f.toString(),10)].keyTip&&this.createKeyTipElement(u+(o.g+f),t.item.groupButtonSettings.items[parseInt(f.toString(),10)].keyTip,"item")}}}},t.prototype.commonItemsKeyTipPress=function(t,e,n){var r=this;if(this.parent.keyTipElements[e]){var i=!1,s=this.parent.keyTipElements[e],a=void 0;if(s)if("backstageMenu"===e){for(var l=0;l<Object.keys(this.parent.keyTipElements[e]).length;l++)if(s[parseInt(l.toString(),10)].keyTip===t.toUpperCase()&&(a=document.querySelector("#"+s[parseInt(l.toString(),10)].id),document.querySelector("#"+a.id+o.c)||n)){i=!0,n&&document.querySelector(".e-ribbon-backstage-popup").classList.contains("e-popup-close")&&this.parent.tabObj.element.querySelector(".e-ribbon-backstage").click();break}}else s[0]&&s[0].keyTip===t.toUpperCase()&&(a=document.querySelector("#"+s[0].id),(document.querySelector("#"+s[0].id+o.c)||n)&&(i=!0));i&&(this.removeKeytip(),this.isKeytipPresent=!0,a&&(a.click(),"backstage"===e?this.createKeytip("backstageMenu"):"overflowbtn"===e?(this.isKeytipPopupOpen=!0,this.createKeytip("popupitem")):"taboverflow"===e&&setTimeout(function(){for(var t=0;t<Object.keys(r.parent.keyTipElements).length;t++)if(r.parent.keyTipElements[parseInt(t.toString(),10)]){var e=r.parent.keyTipElements[parseInt(t.toString(),10)].tab;r.createKeyTipElement(e[0].id,e[0].keyTip,"tab","center","bottom",!0,!0)}},600)))}},t.prototype.removeKeytip=function(t){var e=this,r=document.querySelectorAll(".e-ribbon-keytip"),s=!1;this.parent.keysPress="";for(var l=this,c=0;c<r.length;c++)!function(c){var u=r[parseInt(c.toString(),10)];if("Escape"===t&&l.parent.keyTipElements&&l.parent.keyTipElements[l.parent.selectedTab]){for(var p=0;p<Object.keys(l.parent.keyTipElements[l.parent.selectedTab]).length;p++){var d=Object.keys(l.parent.keyTipElements[l.parent.selectedTab])[p];if(l.parent.keyTipElements[l.parent.selectedTab][d]){var f=n.i(i._54)(l.parent.keyTipElements[l.parent.selectedTab][d],function(t){return t.id+o.c===r[parseInt(c.toString(),10)].id});if(-1!==f){if("item"===d&&!l.isKeytipPopupOpen||"grpoverflow"===d&&"Classic"===l.parent.activeLayout){l.createKeytip("tab"),t="",s=!0;break}if(l.isKeytipPopupOpen&&("popupitem"===d&&"Simplified"===l.parent.activeLayout||"grpoverflowpopup"===d&&"Classic"===l.parent.activeLayout)){l.createKeytip("item"),t="",s=!0;break}}}}for(var h=0;h<Object.keys(l.parent.keyTipElements).length;h++)if(l.parent.keyTipElements[parseInt(h.toString(),10)]){for(var b=l.parent.keyTipElements[parseInt(h.toString(),10)].tab,p=0;p<b.length;p++)if(u.id===b[0].id+o.c&&document.querySelector("#"+b[0].id+o.a).closest(".e-toolbar-pop")){var m=l.parent.tabObj.element.querySelector(".e-nav-active");m.click(),setTimeout(function(){e.createKeytip("tab")},600),t="",s=!0;break}if(s)break}if(!s&&l.parent.keyTipElements.backstageMenu){var f=n.i(i._54)(l.parent.keyTipElements.backstageMenu,function(t){return t.id+o.c===r[parseInt(c.toString(),10)].id});-1!==f&&(l.createKeytip("tab"),t="",s=!0)}}u&&n.i(a.remove)(u)}(c);this.isKeytipPopupOpen=!1,s||(this.parent.isKeytipOpen=!1)},t.prototype.showKeyTips=function(t){this.parent.enableKeyTips&&(t?this.keytipPress(t,!0):this.createKeytip("tab"))},t.prototype.hideKeyTips=function(){this.removeKeytip()},t}())},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);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,"RibbonContextualTabDirective",function(){return r.i}),n.d(e,"RibbonContextualTabsDirective",function(){return r.j}),n.d(e,"RibbonComponent",function(){return r.k});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,"RIBBON_KEYTIP",function(){return o.s}),n.d(e,"SPACE",function(){return o.t}),n.d(e,"HORIZONTAL_SCROLLBAR",function(){return o.u}),n.d(e,"HIDE_CSS",function(){return o.v}),n.d(e,"RIBBON_TAB",function(){return o.w}),n.d(e,"RIBBON_CONTEXTUAL_TAB",function(){return o.x}),n.d(e,"RIBBON_TAB_ACTIVE",function(){return o.y}),n.d(e,"RIBBON_TAB_ITEM",function(){return o.z}),n.d(e,"RIBBON_COLLAPSE_BUTTON",function(){return o.A}),n.d(e,"RIBBON_EXPAND_BUTTON",function(){return o.B}),n.d(e,"RIBBON_COLLAPSIBLE",function(){return o.C}),n.d(e,"RIBBON_OVERALL_OF_BUTTON",function(){return o.D}),n.d(e,"RIBBON_GROUP_OF_BUTTON",function(){return o.E}),n.d(e,"RIBBON_OVERFLOW_TARGET",function(){return o.F}),n.d(e,"RIBBON_OVERFLOW",function(){return o.G}),n.d(e,"TAB_CONTENT",function(){return o.H}),n.d(e,"RIBBON_MINIMIZE",function(){return o.I}),n.d(e,"RIBBON_GROUP",function(){return o.J}),n.d(e,"RIBBON_SINGLE_BUTTON_SELECTION",function(){return o.K}),n.d(e,"RIBBON_MULTIPLE_BUTTON_SELECTION",function(){return o.L}),n.d(e,"RIBBON_GROUP_BUTTON",function(){return o.M}),n.d(e,"RIBBON_GROUP_BUTTON_OVERFLOW_POPUP",function(){return o.N}),n.d(e,"RIBBON_GROUP_BUTTON_CONTENT",function(){return o.O}),n.d(e,"RIBBON_GROUP_CONTAINER",function(){return o.P}),n.d(e,"RIBBON_OF_TAB_CONTAINER",function(){return o.Q}),n.d(e,"RIBBON_OF_GROUP_CONTAINER",function(){return o.R}),n.d(e,"RIBBON_GROUP_CONTENT",function(){return o.S}),n.d(e,"RIBBON_GROUP_HEADER",function(){return o.T}),n.d(e,"RIBBON_OVERFLOW_HEADER",function(){return o.U}),n.d(e,"RIBBON_GROUP_OVERFLOW",function(){return o.V}),n.d(e,"RIBBON_GROUP_OVERFLOW_DDB",function(){return o.W}),n.d(e,"RIBBON_LAUNCHER",function(){return o.X}),n.d(e,"RIBBON_LAUNCHER_ICON_ELE",function(){return o.Y}),n.d(e,"RIBBON_LAUNCHER_ICON",function(){return o.Z}),n.d(e,"RIBBON_COLLECTION",function(){return o._0}),n.d(e,"RIBBON_ITEM",function(){return o._1}),n.d(e,"RIBBON_ROW",function(){return o._2}),n.d(e,"RIBBON_COLUMN",function(){return o._3}),n.d(e,"RIBBON_LARGE_ITEM",function(){return o._4}),n.d(e,"RIBBON_MEDIUM_ITEM",function(){return o._5}),n.d(e,"RIBBON_SMALL_ITEM",function(){return o._6}),n.d(e,"RIBBON_CONTENT_HEIGHT",function(){return o._7}),n.d(e,"DROPDOWNBUTTON",function(){return o._8}),n.d(e,"DROPDOWNBUTTON_HIDE",function(){return o._9}),n.d(e,"RIBBON_TEMPLATE",function(){return o._10}),n.d(e,"RIBBON_HELP_TEMPLATE",function(){return o._11}),n.d(e,"RIBBON_TOOLTIP",function(){return o._12}),n.d(e,"RIBBON_TOOLTIP_TARGET",function(){return o._13}),n.d(e,"RIBBON_TOOLTIP_TITLE",function(){return o._14}),n.d(e,"RIBBON_TOOLTIP_CONTENT",function(){return o._15}),n.d(e,"RIBBON_TOOLTIP_ICON",function(){return o._16}),n.d(e,"RIBBON_TOOLTIP_CONTAINER",function(){return o._17}),n.d(e,"RIBBON_TEXT_CONTAINER",function(){return o._18}),n.d(e,"RIBBON_SIMPLIFIED_MODE",function(){return o._19}),n.d(e,"RIBBON_BACKSTAGE_POPUP",function(){return o._20}),n.d(e,"RIBBON_BACKSTAGE_OPEN",function(){return o._21}),n.d(e,"RIBBON_BACKSTAGE_CONTENT",function(){return o._22}),n.d(e,"RIBBON_SELECTED_CONTENT",function(){return o._23}),n.d(e,"RIBBON_BACKSTAGE",function(){return o._24}),n.d(e,"RIBBON_BACKSTAGE_MENU",function(){return o._25}),n.d(e,"RIBBON_BACKSTAGE_TEMPLATE",function(){return o._26}),n.d(e,"RIBBON_BACKSTAGE_MENU_WRAPPER",function(){return o._27}),n.d(e,"RIBBON_BACKSTAGE_ITEMS_WRAPPER",function(){return o._28}),n.d(e,"RIBBON_BACKSTAGE_TEXT_MENU",function(){return o._29}),n.d(e,"TAB_ID",function(){return o._30}),n.d(e,"GROUP_ID",function(){return o._31}),n.d(e,"COLLECTION_ID",function(){return o._32}),n.d(e,"ITEM_ID",function(){return o._33}),n.d(e,"COLLAPSE_BUTTON_ID",function(){return o._34}),n.d(e,"OVRLOF_BUTTON_ID",function(){return o._35}),n.d(e,"GROUPOF_BUTTON_ID",function(){return o._36}),n.d(e,"HEADER_ID",function(){return o._37}),n.d(e,"LAUNCHER_ID",function(){return o._38}),n.d(e,"CONTENT_ID",function(){return o._39}),n.d(e,"CONTAINER_ID",function(){return o._40}),n.d(e,"OVERFLOW_ID",function(){return o._41}),n.d(e,"DROPDOWN_ID",function(){return o._42}),n.d(e,"RIBBON_FILE_MENU_ID",function(){return o._43}),n.d(e,"RIBBON_BACKSTAGE_MENU_ID",function(){return o._44}),n.d(e,"RIBBON_BACKSTAGE_POPUP_ID",function(){return o._45}),n.d(e,"RIBBON_FILE_MENU_LIST",function(){return o._46}),n.d(e,"RIBBON_MENU_LIST",function(){return o._47}),n.d(e,"RIBBON_FOOTER_MENU_LIST",function(){return o._48}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_ID",function(){return o._49}),n.d(e,"RIBBON_GROUP_BUTTON_ID",function(){return o._50}),n.d(e,"RIBBON_KEYTIP_ID",function(){return o._51}),n.d(e,"RIBBON_FILE_MENU_WIDTH",function(){return o._52}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_WIDTH",function(){return o._53}),n.d(e,"getIndex",function(){return o._54}),n.d(e,"getTemplateFunction",function(){return o._55}),n.d(e,"getItem",function(){return o._56}),n.d(e,"getCollection",function(){return o._57}),n.d(e,"getGroup",function(){return o._58}),n.d(e,"destroyControl",function(){return o._59}),n.d(e,"updateCommonProperty",function(){return o._60}),n.d(e,"updateControlDisabled",function(){return o._61}),n.d(e,"getItemElement",function(){return o._62}),n.d(e,"isTooltipPresent",function(){return o._63}),n.d(e,"setToolTipContent",function(){return o._64}),n.d(e,"createTooltip",function(){return o._65}),n.d(e,"destroyTooltip",function(){return o._66}),n.d(e,"updateTooltipProp",function(){return o._67}),n.d(e,"setCustomAttributes",function(){return o._68}),n.d(e,"RibbonTab",function(){return o._69}),n.d(e,"RibbonGroup",function(){return o._70}),n.d(e,"RibbonCollection",function(){return o._71}),n.d(e,"RibbonItem",function(){return o._72}),n.d(e,"RibbonButtonSettings",function(){return o._73}),n.d(e,"RibbonCheckBoxSettings",function(){return o._74}),n.d(e,"RibbonColorPickerSettings",function(){return o._75}),n.d(e,"RibbonComboBoxSettings",function(){return o._76}),n.d(e,"RibbonDropDownSettings",function(){return o._77}),n.d(e,"RibbonSplitButtonSettings",function(){return o._78}),n.d(e,"FileMenuSettings",function(){return o._79}),n.d(e,"BackStageMenu",function(){return o._80}),n.d(e,"BackstageBackButton",function(){return o._81}),n.d(e,"BackstageItem",function(){return o._82}),n.d(e,"RibbonTooltip",function(){return o._83}),n.d(e,"RibbonGroupButtonSettings",function(){return o._84}),n.d(e,"RibbonGroupButtonItem",function(){return o._85}),n.d(e,"RibbonContextualTabSettings",function(){return o._86}),n.d(e,"RibbonGalleryGroup",function(){return o._87}),n.d(e,"RibbonGalleryItem",function(){return o._88}),n.d(e,"RibbonGallerySettings",function(){return o._89}),n.d(e,"RibbonButton",function(){return o._90}),n.d(e,"RibbonCheckBox",function(){return o._91}),n.d(e,"RibbonColorPicker",function(){return o._92}),n.d(e,"RibbonComboBox",function(){return o._93}),n.d(e,"RibbonDropDown",function(){return o._94}),n.d(e,"RibbonSplitButton",function(){return o._95}),n.d(e,"RibbonGroupButton",function(){return o._96}),n.d(e,"RibbonGallery",function(){return o._97}),n.d(e,"RibbonFileMenu",function(){return o._98}),n.d(e,"RibbonBackstage",function(){return o._99}),n.d(e,"RibbonContextualTab",function(){return o._100}),n.d(e,"RibbonKeyTip",function(){return o._101})},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="ribbonContextualTab",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="contextualTabs",e.moduleName="ribbonContextualTabs",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(59),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"}}}}}},ribbonContextualTabs:{ribbonContextualTab:{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=l}])});