@syncfusion/ej2-react-ribbon 25.2.5 → 26.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-react-ribbon.min.js +2 -2
- package/dist/ej2-react-ribbon.umd.min.js +2 -2
- package/dist/ej2-react-ribbon.umd.min.js.map +1 -1
- package/dist/es6/ej2-react-ribbon.es2015.js +5 -5
- package/dist/es6/ej2-react-ribbon.es2015.js.map +1 -1
- package/package.json +9 -9
- package/styles/bootstrap-dark.css +2723 -1
- package/styles/bootstrap.css +2725 -1
- package/styles/bootstrap4.css +2789 -1
- package/styles/bootstrap5-dark.css +2816 -1
- package/styles/bootstrap5.css +2816 -1
- package/styles/fabric-dark.css +2698 -1
- package/styles/fabric.css +2692 -1
- package/styles/fluent-dark.css +2795 -1
- package/styles/fluent.css +2795 -1
- package/styles/fluent2.css +3868 -0
- package/styles/fluent2.scss +1 -0
- package/styles/highcontrast-light.css +2705 -1
- package/styles/highcontrast.css +2710 -1
- package/styles/material-dark.css +2842 -1
- package/styles/material.css +2869 -1
- package/styles/material3-dark.css +2918 -1
- package/styles/material3.css +3030 -1
- package/styles/ribbon/bootstrap-dark.css +2723 -1
- package/styles/ribbon/bootstrap.css +2725 -1
- package/styles/ribbon/bootstrap4.css +2789 -1
- package/styles/ribbon/bootstrap5-dark.css +2816 -1
- package/styles/ribbon/bootstrap5.css +2816 -1
- package/styles/ribbon/fabric-dark.css +2698 -1
- package/styles/ribbon/fabric.css +2692 -1
- package/styles/ribbon/fluent-dark.css +2795 -1
- package/styles/ribbon/fluent.css +2795 -1
- package/styles/ribbon/fluent2.css +3868 -0
- package/styles/ribbon/fluent2.scss +1 -0
- package/styles/ribbon/highcontrast-light.css +2705 -1
- package/styles/ribbon/highcontrast.css +2710 -1
- package/styles/ribbon/material-dark.css +2842 -1
- package/styles/ribbon/material.css +2869 -1
- package/styles/ribbon/material3-dark.css +2918 -1
- package/styles/ribbon/material3.css +3030 -1
- package/styles/ribbon/tailwind-dark.css +2823 -1
- package/styles/ribbon/tailwind.css +2823 -1
- package/styles/tailwind-dark.css +2823 -1
- package/styles/tailwind.css +2823 -1
- package/CHANGELOG.md +0 -115
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-react-ribbon.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 26.1.35
|
|
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 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)];if(!o.id){var s=void 0;"item"===e&&(s=this.hasHtmlAtrrID(o)),o.setProperties({id:s||n+r+this.idIndex++},!0)}switch(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.hasHtmlAtrrID=function(t){var e="";return t.buttonSettings.htmlAttributes.id?e=t.buttonSettings.htmlAttributes.id:t.checkBoxSettings.htmlAttributes.id?e=t.checkBoxSettings.htmlAttributes.id:t.colorPickerSettings.htmlAttributes.id?e=t.colorPickerSettings.htmlAttributes.id:t.comboBoxSettings.htmlAttributes.id?e=t.comboBoxSettings.htmlAttributes.id:t.dropDownSettings.htmlAttributes.id?e=t.dropDownSettings.htmlAttributes.id:t.splitButtonSettings.htmlAttributes.id&&(e=t.splitButtonSettings.htmlAttributes.id),e},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 l});var r=n(0),i=(n.n(r),n(9)),o=(n.n(i),n(2)),s=n(1),a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)},l=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,l=this.parent.createElement("button",{id:t.id});e.appendChild(l);var c=t.buttonSettings;if(new i.Button({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===o.d.Large?"Top":"Left",iconCss:c.iconCss,disabled:t.disabled,cssClass:(s.P+s.O+s.Q+s.O+(c.cssClass?c.cssClass:"")).trim(),content:t.activeSize===o.d.Small?"":c.content,isPrimary:c.isPrimary,isToggle:c.isToggle,created:c.created},l),c.htmlAttributes){var u=a({},c.htmlAttributes);u.id&&delete u.id,n.i(o._68)(l,u)}l.onclick=function(t){c.clicked&&c.clicked.call(r,t)},l.setAttribute("aria-label",c.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 a});var r=n(0),i=(n.n(r),n(9)),o=(n.n(i),n(2)),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},s.apply(this,arguments)},a=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 a=t.checkBoxSettings,l={};a.htmlAttributes&&(l=s({},a.htmlAttributes),l.id&&delete l.id),new i.CheckBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,checked:a.checked,cssClass:(o.p+o.t+(a.cssClass?a.cssClass:"")).trim(),label:a.label,labelPosition:a.labelPosition,disabled:t.disabled,created:a.created,htmlAttributes:l,change:function(t){a.change&&a.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 l});var r=n(0),i=(n.n(r),n(60)),o=(n.n(i),n(2)),s=n(1),a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)},l=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 l=this,c=this.parent.createElement("input",{id:t.id});e.appendChild(c);var u=t.colorPickerSettings,p=new i.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:u.columns,cssClass:(s.Q+s.O+(u.cssClass?u.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:u.enableOpacity,mode:u.mode,modeSwitcher:u.modeSwitcher,noColor:u.noColor,presetColors:u.presetColors,showButtons:u.showButtons,value:u.value,beforeClose:function(){p.element.parentElement.classList.remove(s.S),u.beforeClose&&u.beforeClose.call(l)},beforeOpen:u.beforeOpen,beforeTileRender:u.beforeTileRender,created:u.created,change:function(t){u.value=t.value.toString(),u.change&&u.change.call(l,t)},open:function(){p.element.parentElement.classList.add(s.S),u.open&&u.open.call(l)},select:u.select},c);if(u.htmlAttributes){var d=a({},u.htmlAttributes);d.id&&delete d.id,n.i(o._68)(c,d)}var f=p.element.parentElement;r.EventHandler.add(f,"mouseenter",this.toggleWrapperHover.bind(this,f,!0),this),r.EventHandler.add(f,"mouseleave",this.toggleWrapperHover.bind(this,f,!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 a});var r=n(0),i=(n.n(r),n(31)),o=(n.n(i),n(2)),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},s.apply(this,arguments)},a=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 a=t.comboBoxSettings,l={};a.htmlAttributes&&(l=s({},a.htmlAttributes),l.id&&delete l.id),new i.ComboBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,allowCustom:!1,floatLabelType:"Never",ignoreAccent:!0,ignoreCase:!0,allowFiltering:a.allowFiltering,autofill:a.autofill,cssClass:(o.p+o.t+(a.cssClass?a.cssClass:"")).trim(),dataSource:a.dataSource,enabled:!t.disabled,fields:a.fields,filterType:a.filterType,footerTemplate:a.footerTemplate,groupTemplate:a.groupTemplate,headerTemplate:a.headerTemplate,index:a.index,itemTemplate:a.itemTemplate,noRecordsTemplate:a.noRecordsTemplate,placeholder:a.placeholder,popupHeight:a.popupHeight,popupWidth:a.popupWidth,showClearButton:a.showClearButton,sortOrder:a.sortOrder,text:a.text,value:a.value,width:a.width,beforeOpen:a.beforeOpen,open:a.open,htmlAttributes:l,close:function(t){a.close&&a.close.call(n,t)},filtering:a.filtering,change:a.change,select:a.select,created:a.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 c});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=this&&this.__assign||function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)},c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonDropDown"},t.prototype.destroy=function(){this.parent=null},t.prototype.createDropDown=function(t,e){var r=this,o=this.parent.createElement("button",{id:t.id});e.appendChild(o);var c=t.dropDownSettings,u=(a.P+a.O+a.Q+a.O+(c.cssClass?c.cssClass:"")).trim();if(new i.DropDownButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===s.d.Large?"Top":"Left",closeActionEvents:c.closeActionEvents,content:t.activeSize===s.d.Small?"":c.content,cssClass:u+(t.activeSize===s.d.Large?a.O+a.R:""),disabled:t.disabled,iconCss:c.iconCss,items:c.items,target:c.target,createPopupOnClick:c.createPopupOnClick,beforeClose:function(t){c.beforeClose&&c.beforeClose.call(r,t)},beforeItemRender:c.beforeItemRender,beforeOpen:c.beforeOpen,close:function(t){c.close&&c.close.call(r,t)},created:c.created,open:c.open,select:c.select}).appendTo(o),c.htmlAttributes){var p=l({},c.htmlAttributes);p.id&&delete p.id,n.i(s._68)(o,p)}},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 l});var r=n(0),i=(n.n(r),n(3)),o=(n.n(i),n(2)),s=n(1),a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},a.apply(this,arguments)},l=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 l=this,c=this.parent.createElement("button",{id:t.id});e.appendChild(c);var u=t.splitButtonSettings,p=(s.P+s.O+s.Q+s.O+(u.cssClass?u.cssClass:"")).trim(),d=new i.SplitButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===o.d.Large?"Top":"Left",closeActionEvents:u.closeActionEvents,cssClass:p+(t.activeSize===o.d.Large?s.O+s.R:""),disabled:t.disabled,iconCss:u.iconCss,items:u.items,target:u.target,beforeClose:function(t){u.beforeClose&&u.beforeClose.call(l,t)},beforeItemRender:u.beforeItemRender,beforeOpen:u.beforeOpen,close:function(){d.wrapper.classList.remove(s.S),u.close&&u.close.call(l)},created:u.created,open:function(){d.wrapper.classList.add(s.S),u.open&&u.open.call(l)},select:u.select,click:function(t){u.click&&u.click.call(l,t)}},c);if(u.htmlAttributes){var f=a({},u.htmlAttributes);f.id&&delete f.id,n.i(o._68)(c,f)}var h=c.parentElement.querySelector(".e-dropdown-btn");h.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),h.click())},this.setContent(t,d);var b=d.wrapper;r.EventHandler.add(b,"mouseenter",function(){b.classList.add(s.T)},this),r.EventHandler.add(b,"mouseleave",function(){b.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(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionReactBase"),require("React"),require("SyncfusionBase"),require("SyncfusionNavigations"),require("SyncfusionDropdowns"),require("SyncfusionSplitbuttons"),require("SyncfusionButtons"),require("SyncfusionInputs"),require("SyncfusionPopups")):"function"==typeof define&&define.amd?define(["SyncfusionReactBase","React","SyncfusionBase","SyncfusionNavigations","SyncfusionDropdowns","SyncfusionSplitbuttons","SyncfusionButtons","SyncfusionInputs","SyncfusionPopups"],t):"object"==typeof exports?exports.SyncfusionReactRibbon=t(require("SyncfusionReactBase"),require("React"),require("SyncfusionBase"),require("SyncfusionNavigations"),require("SyncfusionDropdowns"),require("SyncfusionSplitbuttons"),require("SyncfusionButtons"),require("SyncfusionInputs"),require("SyncfusionPopups")):e.SyncfusionReactRibbon=t(e.SyncfusionReactBase,e.React,e.SyncfusionBase,e.SyncfusionNavigations,e.SyncfusionDropdowns,e.SyncfusionSplitbuttons,e.SyncfusionButtons,e.SyncfusionInputs,e.SyncfusionPopups)}(self,((e,t,o,i,r,n,s,a,l)=>(()=>{"use strict";var p={24:e=>{e.exports=t},766:e=>{e.exports=o},741:e=>{e.exports=s},778:e=>{e.exports=r},323:e=>{e.exports=a},215:e=>{e.exports=i},197:e=>{e.exports=l},705:t=>{t.exports=e},295:e=>{e.exports=n}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var o=c[e]={exports:{}};return p[e](o,o.exports,u),o.exports}u.d=(e,t)=>{for(var o in t)u.o(t,o)&&!u.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{u.r(d),u.d(d,{BACKSTAGE_CLOSE_ICON:()=>We,BackStageMenu:()=>qe,BackstageBackButton:()=>Le,BackstageItem:()=>xe,COLLAPSE_BUTTON_ID:()=>uo,COLLECTION_ID:()=>po,CONTAINER_ID:()=>go,CONTENT_ID:()=>yo,DISABLED_CSS:()=>Ke,DROPDOWNBUTTON:()=>Gt,DROPDOWNBUTTON_HIDE:()=>Nt,DROPDOWN_ID:()=>So,DisplayMode:()=>r,EXPAND_COLLAPSE_ICON:()=>He,FileMenuSettings:()=>Te,GROUPOF_BUTTON_ID:()=>bo,GROUP_ID:()=>lo,HEADER_ID:()=>fo,HIDE_CSS:()=>et,HORIZONTAL_SCROLLBAR:()=>$e,ITEM_ID:()=>co,ITEM_VERTICAL_CENTER:()=>Ne,Inject:()=>a.Inject,ItemOrientation:()=>o,LAUNCHER_ID:()=>mo,OVERFLOW_ICON:()=>ze,OVERFLOW_ID:()=>vo,OVRLOF_BUTTON_ID:()=>ho,RIBBON_BACKSTAGE:()=>to,RIBBON_BACKSTAGE_CONTENT:()=>$t,RIBBON_BACKSTAGE_ITEMS_WRAPPER:()=>no,RIBBON_BACKSTAGE_MENU:()=>oo,RIBBON_BACKSTAGE_MENU_ID:()=>Co,RIBBON_BACKSTAGE_MENU_WRAPPER:()=>ro,RIBBON_BACKSTAGE_OPEN:()=>Qt,RIBBON_BACKSTAGE_POPUP:()=>Jt,RIBBON_BACKSTAGE_POPUP_ID:()=>wo,RIBBON_BACKSTAGE_TEMPLATE:()=>io,RIBBON_BACKSTAGE_TEXT_MENU:()=>so,RIBBON_COLLAPSE_BUTTON:()=>nt,RIBBON_COLLAPSIBLE:()=>at,RIBBON_COLLECTION:()=>Dt,RIBBON_COLUMN:()=>Mt,RIBBON_CONTENT_HEIGHT:()=>jt,RIBBON_CONTEXTUAL_TAB:()=>ot,RIBBON_CONTROL:()=>Xe,RIBBON_EXPAND_BUTTON:()=>st,RIBBON_FILE_MENU_ID:()=>Io,RIBBON_FILE_MENU_LIST:()=>Oo,RIBBON_FILE_MENU_WIDTH:()=>Eo,RIBBON_FOOTER_MENU_LIST:()=>To,RIBBON_GROUP:()=>bt,RIBBON_GROUP_BUTTON:()=>yt,RIBBON_GROUP_BUTTON_CONTENT:()=>vt,RIBBON_GROUP_BUTTON_ID:()=>Po,RIBBON_GROUP_BUTTON_OVERFLOW_POPUP:()=>gt,RIBBON_GROUP_CONTAINER:()=>St,RIBBON_GROUP_CONTENT:()=>wt,RIBBON_GROUP_HEADER:()=>Ot,RIBBON_GROUP_OF_BUTTON:()=>pt,RIBBON_GROUP_OVERFLOW:()=>Tt,RIBBON_GROUP_OVERFLOW_DDB:()=>Bt,RIBBON_HELP_PANE_TEMPLATE_ID:()=>Bo,RIBBON_HELP_PANE_TEMPLATE_WIDTH:()=>Do,RIBBON_HELP_TEMPLATE:()=>Wt,RIBBON_HOVER:()=>Ve,RIBBON_ITEM:()=>xt,RIBBON_KEYTIP:()=>Je,RIBBON_KEYTIP_ID:()=>Lo,RIBBON_LARGE_ITEM:()=>qt,RIBBON_LAUNCHER:()=>Pt,RIBBON_LAUNCHER_ICON:()=>Et,RIBBON_LAUNCHER_ICON_ELE:()=>Lt,RIBBON_MEDIUM_ITEM:()=>Rt,RIBBON_MENU_LIST:()=>ko,RIBBON_MINIMIZE:()=>ht,RIBBON_MULTIPLE_BUTTON_SELECTION:()=>mt,RIBBON_OF_GROUP_CONTAINER:()=>Ct,RIBBON_OF_TAB_CONTAINER:()=>It,RIBBON_OVERALL_OF_BUTTON:()=>lt,RIBBON_OVERFLOW:()=>ut,RIBBON_OVERFLOW_HEADER:()=>kt,RIBBON_OVERFLOW_TARGET:()=>ct,RIBBON_POPUP_CONTROL:()=>Ye,RIBBON_POPUP_OPEN:()=>Ze,RIBBON_ROW:()=>_t,RIBBON_SELECTED_CONTENT:()=>eo,RIBBON_SIMPLIFIED_MODE:()=>Zt,RIBBON_SINGLE_BUTTON_SELECTION:()=>ft,RIBBON_SMALL_ITEM:()=>At,RIBBON_TAB:()=>tt,RIBBON_TAB_ACTIVE:()=>it,RIBBON_TAB_ITEM:()=>rt,RIBBON_TEMPLATE:()=>Ht,RIBBON_TEXT_CONTAINER:()=>Yt,RIBBON_TOOLTIP:()=>zt,RIBBON_TOOLTIP_CONTAINER:()=>Xt,RIBBON_TOOLTIP_CONTENT:()=>Ut,RIBBON_TOOLTIP_ICON:()=>Vt,RIBBON_TOOLTIP_TARGET:()=>Ft,RIBBON_TOOLTIP_TITLE:()=>Kt,RTL_CSS:()=>Ue,Ribbon:()=>ui,RibbonBackstage:()=>bi,RibbonButton:()=>_o,RibbonButtonSettings:()=>E,RibbonCheckBox:()=>qo,RibbonCheckBoxSettings:()=>_,RibbonCollection:()=>ye,RibbonCollectionDirective:()=>y,RibbonCollectionsDirective:()=>g,RibbonColorPicker:()=>jo,RibbonColorPickerSettings:()=>R,RibbonComboBox:()=>No,RibbonComboBoxSettings:()=>N,RibbonComponent:()=>gi,RibbonContextualTab:()=>fi,RibbonContextualTabDirective:()=>w,RibbonContextualTabSettings:()=>je,RibbonContextualTabsDirective:()=>O,RibbonDropDown:()=>zo,RibbonDropDownSettings:()=>F,RibbonFileMenu:()=>di,RibbonGallery:()=>li,RibbonGalleryGroup:()=>le,RibbonGalleryItem:()=>ne,RibbonGallerySettings:()=>ue,RibbonGroup:()=>Se,RibbonGroupButton:()=>ai,RibbonGroupButtonItem:()=>$,RibbonGroupButtonSelection:()=>s,RibbonGroupButtonSettings:()=>oe,RibbonGroupDirective:()=>b,RibbonGroupsDirective:()=>f,RibbonItem:()=>be,RibbonItemDirective:()=>S,RibbonItemSize:()=>i,RibbonItemType:()=>n,RibbonItemsDirective:()=>I,RibbonKeyTip:()=>mi,RibbonLayout:()=>t,RibbonSplitButton:()=>Ko,RibbonSplitButtonSettings:()=>V,RibbonTab:()=>we,RibbonTabDirective:()=>p,RibbonTabsDirective:()=>c,RibbonTooltip:()=>Z,SPACE:()=>Qe,TAB_CONTENT:()=>dt,TAB_ID:()=>ao,VERTICAL_DDB:()=>Fe,createTooltip:()=>ii,destroyControl:()=>Jo,destroyTooltip:()=>ri,getCollection:()=>Yo,getGroup:()=>Zo,getIndex:()=>Uo,getItem:()=>Xo,getItemElement:()=>ei,getTemplateFunction:()=>Vo,isTooltipPresent:()=>ti,setCustomAttributes:()=>si,setToolTipContent:()=>oi,updateCommonProperty:()=>Qo,updateControlDisabled:()=>$o,updateTooltipProp:()=>ni});var e,t,o,i,r,n,s,a=u(705),l=(e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)},function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.moduleName="ribbonTab",t}(a.ComplexBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.propertyName="tabs",t.moduleName="ribbonTabs",t}(a.ComplexBase),h=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.moduleName="ribbonGroup",t}(a.ComplexBase),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.propertyName="groups",t.moduleName="ribbonGroups",t}(a.ComplexBase),m=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.moduleName="ribbonCollection",t}(a.ComplexBase),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.propertyName="collections",t.moduleName="ribbonCollections",t}(a.ComplexBase),v=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return v(t,e),t.moduleName="ribbonItem",t}(a.ComplexBase),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return v(t,e),t.propertyName="items",t.moduleName="ribbonItems",t}(a.ComplexBase),C=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return C(t,e),t.moduleName="ribbonContextualTab",t}(a.ComplexBase),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return C(t,e),t.propertyName="contextualTabs",t.moduleName="ribbonContextualTabs",t}(a.ComplexBase),k=u(24),T=u(766),B=u(215);!function(e){e.Classic="Classic",e.Simplified="Simplified"}(t||(t={})),function(e){e.Row="Row",e.Column="Column"}(o||(o={})),function(e){e[e.Large=4]="Large",e[e.Medium=2]="Medium",e[e.Small=1]="Small"}(i||(i={})),function(e){e[e.Classic=4]="Classic",e[e.Simplified=2]="Simplified",e[e.Overflow=1]="Overflow",e[e.Auto=7]="Auto"}(r||(r={})),function(e){e.Button="Button",e.CheckBox="CheckBox",e.ColorPicker="ColorPicker",e.ComboBox="ComboBox",e.DropDown="DropDown",e.SplitButton="SplitButton",e.GroupButton="GroupButton",e.Gallery="Gallery",e.Template="Template"}(n||(n={})),function(e){e.Single="Single",e.Multiple="Multiple"}(s||(s={}));var P=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),L=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},L([(0,T.Property)("")],t.prototype,"content",void 0),L([(0,T.Property)("")],t.prototype,"cssClass",void 0),L([(0,T.Property)("")],t.prototype,"iconCss",void 0),L([(0,T.Property)(!1)],t.prototype,"isToggle",void 0),L([(0,T.Property)(!1)],t.prototype,"isPrimary",void 0),L([(0,T.Property)({})],t.prototype,"htmlAttributes",void 0),L([(0,T.Event)()],t.prototype,"created",void 0),L([(0,T.Event)()],t.prototype,"clicked",void 0),t}(T.ChildProperty),D=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),x=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return D(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},x([(0,T.Property)(!1)],t.prototype,"checked",void 0),x([(0,T.Property)("")],t.prototype,"cssClass",void 0),x([(0,T.Property)("")],t.prototype,"label",void 0),x([(0,T.Property)("After")],t.prototype,"labelPosition",void 0),x([(0,T.Property)({})],t.prototype,"htmlAttributes",void 0),x([(0,T.Event)()],t.prototype,"created",void 0),x([(0,T.Event)()],t.prototype,"change",void 0),t}(T.ChildProperty),M=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),q=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},q([(0,T.Property)(10)],t.prototype,"columns",void 0),q([(0,T.Property)("")],t.prototype,"cssClass",void 0),q([(0,T.Property)("")],t.prototype,"label",void 0),q([(0,T.Property)(!0)],t.prototype,"enableOpacity",void 0),q([(0,T.Property)("Palette")],t.prototype,"mode",void 0),q([(0,T.Property)(!0)],t.prototype,"modeSwitcher",void 0),q([(0,T.Property)(!1)],t.prototype,"noColor",void 0),q([(0,T.Property)(null)],t.prototype,"presetColors",void 0),q([(0,T.Property)(!0)],t.prototype,"showButtons",void 0),q([(0,T.Property)("#008000ff")],t.prototype,"value",void 0),q([(0,T.Property)({})],t.prototype,"htmlAttributes",void 0),q([(0,T.Event)()],t.prototype,"beforeClose",void 0),q([(0,T.Event)()],t.prototype,"beforeOpen",void 0),q([(0,T.Event)()],t.prototype,"beforeTileRender",void 0),q([(0,T.Event)()],t.prototype,"created",void 0),q([(0,T.Event)()],t.prototype,"change",void 0),q([(0,T.Event)()],t.prototype,"open",void 0),q([(0,T.Event)()],t.prototype,"select",void 0),t}(T.ChildProperty),A=u(778),j=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),G=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},G([(0,T.Property)(!1)],t.prototype,"allowFiltering",void 0),G([(0,T.Property)(!0)],t.prototype,"autofill",void 0),G([(0,T.Property)("")],t.prototype,"cssClass",void 0),G([(0,T.Property)("")],t.prototype,"label",void 0),G([(0,T.Property)([])],t.prototype,"dataSource",void 0),G([(0,T.Complex)({text:null,value:null,iconCss:null,groupBy:null},A.FieldSettings)],t.prototype,"fields",void 0),G([(0,T.Property)("Contains")],t.prototype,"filterType",void 0),G([(0,T.Property)(null)],t.prototype,"footerTemplate",void 0),G([(0,T.Property)(null)],t.prototype,"groupTemplate",void 0),G([(0,T.Property)(null)],t.prototype,"headerTemplate",void 0),G([(0,T.Property)(null)],t.prototype,"index",void 0),G([(0,T.Property)(null)],t.prototype,"itemTemplate",void 0),G([(0,T.Property)("No records found")],t.prototype,"noRecordsTemplate",void 0),G([(0,T.Property)(null)],t.prototype,"placeholder",void 0),G([(0,T.Property)("300px")],t.prototype,"popupHeight",void 0),G([(0,T.Property)("100%")],t.prototype,"popupWidth",void 0),G([(0,T.Property)(!0)],t.prototype,"showClearButton",void 0),G([(0,T.Property)("None")],t.prototype,"sortOrder",void 0),G([(0,T.Property)(null)],t.prototype,"text",void 0),G([(0,T.Property)(null)],t.prototype,"value",void 0),G([(0,T.Property)("150px")],t.prototype,"width",void 0),G([(0,T.Property)({})],t.prototype,"htmlAttributes",void 0),G([(0,T.Event)()],t.prototype,"beforeOpen",void 0),G([(0,T.Event)()],t.prototype,"change",void 0),G([(0,T.Event)()],t.prototype,"close",void 0),G([(0,T.Event)()],t.prototype,"created",void 0),G([(0,T.Event)()],t.prototype,"filtering",void 0),G([(0,T.Event)()],t.prototype,"open",void 0),G([(0,T.Event)()],t.prototype,"select",void 0),t}(T.ChildProperty),H=u(295),W=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),z=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},z([(0,T.Property)("")],t.prototype,"closeActionEvents",void 0),z([(0,T.Property)("")],t.prototype,"content",void 0),z([(0,T.Property)("")],t.prototype,"cssClass",void 0),z([(0,T.Property)("")],t.prototype,"iconCss",void 0),z([(0,T.Collection)([],H.Item)],t.prototype,"items",void 0),z([(0,T.Property)("")],t.prototype,"target",void 0),z([(0,T.Property)(!1)],t.prototype,"createPopupOnClick",void 0),z([(0,T.Property)({})],t.prototype,"htmlAttributes",void 0),z([(0,T.Event)()],t.prototype,"beforeClose",void 0),z([(0,T.Event)()],t.prototype,"beforeItemRender",void 0),z([(0,T.Event)()],t.prototype,"beforeOpen",void 0),z([(0,T.Event)()],t.prototype,"close",void 0),z([(0,T.Event)()],t.prototype,"created",void 0),z([(0,T.Event)()],t.prototype,"open",void 0),z([(0,T.Event)()],t.prototype,"select",void 0),t}(T.ChildProperty),K=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),U=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},U([(0,T.Property)("")],t.prototype,"closeActionEvents",void 0),U([(0,T.Property)("")],t.prototype,"content",void 0),U([(0,T.Property)("")],t.prototype,"cssClass",void 0),U([(0,T.Property)("")],t.prototype,"iconCss",void 0),U([(0,T.Collection)([],H.Item)],t.prototype,"items",void 0),U([(0,T.Property)("")],t.prototype,"target",void 0),U([(0,T.Property)({})],t.prototype,"htmlAttributes",void 0),U([(0,T.Event)()],t.prototype,"beforeClose",void 0),U([(0,T.Event)()],t.prototype,"beforeItemRender",void 0),U([(0,T.Event)()],t.prototype,"beforeOpen",void 0),U([(0,T.Event)()],t.prototype,"close",void 0),U([(0,T.Event)()],t.prototype,"click",void 0),U([(0,T.Event)()],t.prototype,"created",void 0),U([(0,T.Event)()],t.prototype,"open",void 0),U([(0,T.Event)()],t.prototype,"select",void 0),t}(T.ChildProperty),X=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Y=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),Y([(0,T.Property)("")],t.prototype,"cssClass",void 0),Y([(0,T.Property)("")],t.prototype,"id",void 0),Y([(0,T.Property)("")],t.prototype,"title",void 0),Y([(0,T.Property)("")],t.prototype,"content",void 0),Y([(0,T.Property)("")],t.prototype,"iconCss",void 0),t}(T.ChildProperty),J=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Q=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return J(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},Q([(0,T.Property)("")],t.prototype,"content",void 0),Q([(0,T.Property)("")],t.prototype,"iconCss",void 0),Q([(0,T.Property)("")],t.prototype,"keyTip",void 0),Q([(0,T.Complex)({},Z)],t.prototype,"ribbonTooltipSettings",void 0),Q([(0,T.Property)(!1)],t.prototype,"selected",void 0),Q([(0,T.Property)({})],t.prototype,"htmlAttributes",void 0),Q([(0,T.Event)()],t.prototype,"beforeClick",void 0),Q([(0,T.Event)()],t.prototype,"click",void 0),t}(T.ChildProperty),ee=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),te=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ee(t,e),te([(0,T.Property)("")],t.prototype,"header",void 0),te([(0,T.Property)("Single")],t.prototype,"selection",void 0),te([(0,T.Collection)([],$)],t.prototype,"items",void 0),t}(T.ChildProperty),ie=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),re=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ie(t,e),re([(0,T.Property)("")],t.prototype,"content",void 0),re([(0,T.Property)("")],t.prototype,"iconCss",void 0),re([(0,T.Property)({})],t.prototype,"htmlAttributes",void 0),re([(0,T.Property)("")],t.prototype,"cssClass",void 0),re([(0,T.Property)(!1)],t.prototype,"disabled",void 0),t}(T.ChildProperty),se=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ae=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return se(t,e),ae([(0,T.Collection)([],ne)],t.prototype,"items",void 0),ae([(0,T.Property)("")],t.prototype,"header",void 0),ae([(0,T.Property)("auto")],t.prototype,"itemWidth",void 0),ae([(0,T.Property)("auto")],t.prototype,"itemHeight",void 0),ae([(0,T.Property)("")],t.prototype,"cssClass",void 0),t}(T.ChildProperty),pe=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ce=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pe(t,e),ce([(0,T.Collection)([],le)],t.prototype,"groups",void 0),ce([(0,T.Property)(3)],t.prototype,"itemCount",void 0),ce([(0,T.Property)(null)],t.prototype,"selectedItemIndex",void 0),ce([(0,T.Property)("auto")],t.prototype,"popupHeight",void 0),ce([(0,T.Property)("auto")],t.prototype,"popupWidth",void 0),ce([(0,T.Property)("")],t.prototype,"template",void 0),ce([(0,T.Property)("")],t.prototype,"popupTemplate",void 0),ce([(0,T.Event)()],t.prototype,"popupOpen",void 0),ce([(0,T.Event)()],t.prototype,"popupClose",void 0),ce([(0,T.Event)()],t.prototype,"itemHover",void 0),ce([(0,T.Event)()],t.prototype,"beforeItemRender",void 0),ce([(0,T.Event)()],t.prototype,"beforeSelect",void 0),ce([(0,T.Event)()],t.prototype,"select",void 0),t}(T.ChildProperty),de=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),he=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return de(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},he([(0,T.Property)("")],t.prototype,"keyTip",void 0),he([(0,T.Property)(i.Medium)],t.prototype,"activeSize",void 0),he([(0,T.Property)(i.Small|i.Medium|i.Large)],t.prototype,"allowedSizes",void 0),he([(0,T.Property)("")],t.prototype,"id",void 0),he([(0,T.Property)("")],t.prototype,"cssClass",void 0),he([(0,T.Property)(!1)],t.prototype,"disabled",void 0),he([(0,T.Property)("")],t.prototype,"itemTemplate",void 0),he([(0,T.Property)("Button")],t.prototype,"type",void 0),he([(0,T.Property)(r.Auto)],t.prototype,"displayOptions",void 0),he([(0,T.Complex)({},Z)],t.prototype,"ribbonTooltipSettings",void 0),he([(0,T.Complex)({},E)],t.prototype,"buttonSettings",void 0),he([(0,T.Complex)({},F)],t.prototype,"dropDownSettings",void 0),he([(0,T.Complex)({},_)],t.prototype,"checkBoxSettings",void 0),he([(0,T.Complex)({},R)],t.prototype,"colorPickerSettings",void 0),he([(0,T.Complex)({},N)],t.prototype,"comboBoxSettings",void 0),he([(0,T.Complex)({},V)],t.prototype,"splitButtonSettings",void 0),he([(0,T.Complex)({},oe)],t.prototype,"groupButtonSettings",void 0),he([(0,T.Complex)({},ue)],t.prototype,"gallerySettings",void 0),t}(T.ChildProperty),fe=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),me=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fe(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},me([(0,T.Property)("")],t.prototype,"id",void 0),me([(0,T.Property)("")],t.prototype,"cssClass",void 0),me([(0,T.Collection)([],be)],t.prototype,"items",void 0),t}(T.ChildProperty),ge=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ve=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ge(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},ve([(0,T.Property)("")],t.prototype,"keyTip",void 0),ve([(0,T.Property)("")],t.prototype,"launcherIconKeyTip",void 0),ve([(0,T.Collection)([],ye)],t.prototype,"collections",void 0),ve([(0,T.Property)("")],t.prototype,"cssClass",void 0),ve([(0,T.Property)("")],t.prototype,"id",void 0),ve([(0,T.Property)(!1)],t.prototype,"isCollapsed",void 0),ve([(0,T.Property)(!0)],t.prototype,"isCollapsible",void 0),ve([(0,T.Property)(!1)],t.prototype,"enableGroupOverflow",void 0),ve([(0,T.Property)("")],t.prototype,"groupIconCss",void 0),ve([(0,T.Property)("")],t.prototype,"header",void 0),ve([(0,T.Property)("Column")],t.prototype,"orientation",void 0),ve([(0,T.Property)("")],t.prototype,"overflowHeader",void 0),ve([(0,T.Property)(0)],t.prototype,"priority",void 0),ve([(0,T.Property)(!1)],t.prototype,"showLauncherIcon",void 0),t}(T.ChildProperty),Ie=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ce=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ie(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},Ce([(0,T.Property)("")],t.prototype,"keyTip",void 0),Ce([(0,T.Property)("")],t.prototype,"id",void 0),Ce([(0,T.Property)("")],t.prototype,"cssClass",void 0),Ce([(0,T.Collection)([],Se)],t.prototype,"groups",void 0),Ce([(0,T.Property)("")],t.prototype,"header",void 0),t}(T.ChildProperty),Oe=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ke=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oe(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},ke([(0,T.Property)("File")],t.prototype,"text",void 0),ke([(0,T.Property)(!1)],t.prototype,"visible",void 0),ke([(0,T.Collection)([],B.MenuItem)],t.prototype,"menuItems",void 0),ke([(0,T.Property)(!1)],t.prototype,"showItemOnClick",void 0),ke([(0,T.Complex)({},B.MenuAnimationSettings)],t.prototype,"animationSettings",void 0),ke([(0,T.Property)("")],t.prototype,"itemTemplate",void 0),ke([(0,T.Property)("")],t.prototype,"popupTemplate",void 0),ke([(0,T.Complex)({},Z)],t.prototype,"ribbonTooltipSettings",void 0),ke([(0,T.Event)()],t.prototype,"beforeClose",void 0),ke([(0,T.Event)()],t.prototype,"beforeOpen",void 0),ke([(0,T.Event)()],t.prototype,"beforeItemRender",void 0),ke([(0,T.Event)()],t.prototype,"close",void 0),ke([(0,T.Event)()],t.prototype,"open",void 0),ke([(0,T.Event)()],t.prototype,"select",void 0),ke([(0,T.Property)("")],t.prototype,"keyTip",void 0),t}(T.ChildProperty),Be=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Pe=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),Pe([(0,T.Property)("")],t.prototype,"text",void 0),Pe([(0,T.Property)("")],t.prototype,"iconCss",void 0),Pe([(0,T.Property)(!0)],t.prototype,"visible",void 0),t}(T.ChildProperty),Ee=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),De=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),De([(0,T.Property)("")],t.prototype,"text",void 0),De([(0,T.Property)("")],t.prototype,"id",void 0),De([(0,T.Property)("")],t.prototype,"keyTip",void 0),De([(0,T.Property)("")],t.prototype,"content",void 0),De([(0,T.Property)("")],t.prototype,"iconCss",void 0),De([(0,T.Property)(!1)],t.prototype,"separator",void 0),De([(0,T.Property)(!1)],t.prototype,"isFooter",void 0),De([(0,T.Event)()],t.prototype,"backStageItemClick",void 0),t}(T.ChildProperty),_e=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Me=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _e(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},Me([(0,T.Property)("File")],t.prototype,"text",void 0),Me([(0,T.Property)("")],t.prototype,"keyTip",void 0),Me([(0,T.Property)(!1)],t.prototype,"visible",void 0),Me([(0,T.Property)("auto")],t.prototype,"height",void 0),Me([(0,T.Property)("auto")],t.prototype,"width",void 0),Me([(0,T.Property)(null)],t.prototype,"target",void 0),Me([(0,T.Complex)({},Le)],t.prototype,"backButton",void 0),Me([(0,T.Collection)([],xe)],t.prototype,"items",void 0),Me([(0,T.Property)("")],t.prototype,"template",void 0),Me([(0,T.Complex)({},Z)],t.prototype,"ribbonTooltipSettings",void 0),t}(T.ChildProperty),Re=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),Ae=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Re(t,e),t.prototype.setProperties=function(t,o){e.prototype.setProperties.call(this,t,o)},Ae([(0,T.Property)(!1)],t.prototype,"visible",void 0),Ae([(0,T.Property)(!1)],t.prototype,"isSelected",void 0),Ae([(0,T.Collection)([],we)],t.prototype,"tabs",void 0),t}(T.ChildProperty),Ge=u(741),Ne="e-ribbon-vertical-center",He="e-icons e-drop-icon",We="e-icons e-arrow-left",ze="e-icons e-more-horizontal-1",Fe="e-vertical",Ke="e-disabled",Ue="e-rtl",Ve="e-ribbon-hover",Xe="e-ribbon-control",Ye="e-ribbon-popup-control",Ze="e-ribbon-open",Je="e-ribbon-keytip",Qe=" ",$e="e-hscroll-bar",et="e-ribbon-hide",tt="e-ribbon-tab",ot="e-ribbon-contextual-tab",it="e-ribbon-active",rt="e-ribbon-tab-item",nt="e-ribbon-collapse-btn",st="e-ribbon-expand-btn",at="e-ribbon-collapsible",lt="e-ribbon-overall-of-btn",pt="e-ribbon-group-of-btn",ct="e-ribbon-overflow-target",ut="e-ribbon-overflow",dt="e-content",ht="e-ribbon-minimize",bt="e-ribbon-group",ft="e-ribbon-single-selection",mt="e-ribbon-multiple-selection",yt="e-ribbon-group-button",gt="e-ribbon-group-button-overflow-popup",vt="e-ribbon-group-button-content",St="e-ribbon-group-container",It="e-ribbon-of-tab",Ct="e-ribbon-of-group-container",wt="e-ribbon-group-content",Ot="e-ribbon-group-header",kt="e-ribbon-overflow-header",Tt="e-ribbon-group-overflow",Bt="e-ribbon-group-overflow-ddb",Pt="e-ribbon-launcher",Lt="e-ribbon-launcher-icon",Et="e-icons e-launcher",Dt="e-ribbon-collection",xt="e-ribbon-item",_t="e-ribbon-row",Mt="e-ribbon-column",qt="e-ribbon-large-item",Rt="e-ribbon-medium-item",At="e-ribbon-small-item",jt="e-ribbon-content-height",Gt="e-dropdown-btn",Nt="e-caret-hide",Ht="e-ribbon-template",Wt="e-ribbon-help-template",zt="e-ribbon-tooltip",Ft="e-ribbon-tooltip-target",Kt="e-ribbon-tooltip-title",Ut="e-ribbon-tooltip-content",Vt="e-ribbon-tooltip-icon",Xt="e-ribbon-tooltip-container",Yt="e-ribbon-text-container",Zt="e-ribbon-simplified-mode",Jt="e-ribbon-backstage-popup",Qt="e-ribbon-backstage-open",$t="e-ribbon-backstage-content",eo="e-ribbon-selected-content",to="e-ribbon-backstage",oo="e-ribbon-backstage-menu",io="e-ribbon-backstage-template",ro="e-ribbon-backstage-wrapper",no="e-ribbon-backstage-items-wrapper",so="e-blankicon",ao="_tab",lo="_group",po="_collection",co="_item",uo="_collapsebutton",ho="_sim_ovrl_overflow",bo="_sim_grp_overflow",fo="_header",mo="_launcher",yo="_content",go="_container",vo="_overflow",So="_dropdown",Io="_filemenu",Co="_backstage",wo="_backstagepopup",Oo="_filemenulist",ko="_menulist",To="_footermenulist",Bo="_helppanetemplate",Po="_grpbtn",Lo="_keytip",Eo="--fileMenuWidth",Do="--helpTemplateWidth",xo=function(){return xo=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xo.apply(this,arguments)},_o=function(){function e(e){this.parent=e}return e.prototype.getModuleName=function(){return"ribbonButton"},e.prototype.destroy=function(){this.parent=null},e.prototype.createButton=function(e,t){var o=this,r=this.parent.createElement("button",{id:e.id});t.appendChild(r);var n=e.buttonSettings;if(new Ge.Button({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:e.activeSize===i.Large?"Top":"Left",iconCss:n.iconCss,disabled:e.disabled,cssClass:(Ne+Qe+Xe+Qe+(n.cssClass?n.cssClass:"")).trim(),content:e.activeSize===i.Small?"":n.content,isPrimary:n.isPrimary,isToggle:n.isToggle,created:n.created},r),n.htmlAttributes){var s=xo({},n.htmlAttributes);s.id&&delete s.id,si(r,s)}r.onclick=function(e){n.clicked&&n.clicked.call(o,e)},n.content?r.setAttribute("aria-label",n.content):r.setAttribute("aria-label","button")},e.prototype.addOverFlowEvents=function(e,t,o){var i=this,r=t.querySelector("#"+e.id);r.setAttribute("data-control",e.type.toString());var n=(0,T.getComponent)(r,Ge.Button);n.setProperties({cssClass:n.cssClass+Qe+Ye}),r.onclick=function(t){e.buttonSettings.clicked&&e.buttonSettings.clicked.call(i,t),o.toggle()}},e.prototype.removeOverFlowEvents=function(e,t){var o=this,i=t.querySelector("#"+e.id),r=(0,T.getComponent)(i,Ge.Button),n=r.cssClass.split(Qe);n=n.filter((function(e){return e!==Ye})),r.setProperties({cssClass:n.join(Qe)}),i.onclick=function(t){e.buttonSettings.clicked&&e.buttonSettings.clicked.call(o,t)}},e.prototype.click=function(e){var t=ei(this.parent,e);t&&(0,T.getComponent)(t,Ge.Button).click()},e.prototype.updateButton=function(e,t){var o=Xo(this.parent.tabs,t);if(o){(0,T.merge)(o.item.buttonSettings,e);var r=ei(this.parent,t,o);if(r){var n=(0,T.getComponent)(r,Ge.Button);e.isToggle&&r.classList.add("e-active"),e.cssClass&&(e.cssClass=(Ne+Qe+Xe+Qe+e.cssClass).trim()),e.content&&(e.content=o.item.activeSize===i.Small?"":e.content,r.setAttribute("aria-label",e.content)),delete e.clicked,n.setProperties(e)}}},e.prototype.updateButtonSize=function(e,t){(0,T.getComponent)(e,Ge.Button).setProperties({iconPosition:t.activeSize===i.Large?"Top":"Left",content:t.activeSize===i.Small?"":t.buttonSettings.content})},e}(),Mo=function(){return Mo=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Mo.apply(this,arguments)},qo=function(){function e(e){this.parent=e}return e.prototype.getModuleName=function(){return"ribbonCheckBox"},e.prototype.destroy=function(){this.parent=null},e.prototype.createCheckBox=function(e,t){var o=this,i=this.parent.createElement("input",{id:e.id});t.appendChild(i);var r=e.checkBoxSettings,n={};r.htmlAttributes&&(n=Mo({},r.htmlAttributes)).id&&delete n.id,new Ge.CheckBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,checked:r.checked,cssClass:(Xe+Qe+(r.cssClass?r.cssClass:"")).trim(),label:r.label,labelPosition:r.labelPosition,disabled:e.disabled,created:r.created,htmlAttributes:n,change:function(e){r.change&&r.change.call(o,e)}},i)},e.prototype.addOverFlowEvents=function(e,t,o){var i=this,r=t.querySelector("#"+e.id);r.setAttribute("data-control",e.type.toString());var n=(0,T.getComponent)(r,Ge.CheckBox);n.cssClass=n.cssClass+Qe+Ye,n.dataBind(),n.change=function(t){e.checkBoxSettings.change&&e.checkBoxSettings.change.call(i,t),o.toggle()}},e.prototype.removeOverFlowEvents=function(e,t){var o=this,i=t.querySelector("#"+e.id),r=(0,T.getComponent)(i,Ge.CheckBox),n=r.cssClass.split(Qe);n=n.filter((function(e){return e!==Ye})),r.cssClass=n.join(Qe),r.dataBind(),r.change=function(t){e.checkBoxSettings.change&&e.checkBoxSettings.change.call(o,t)}},e.prototype.click=function(e){var t=ei(this.parent,e);t&&(0,T.getComponent)(t,Ge.CheckBox).click()},e.prototype.updateCheckBox=function(e,t){var o=Xo(this.parent.tabs,t);if(o){(0,T.merge)(o.item.checkBoxSettings,e);var i=ei(this.parent,t,o);if(i)e.cssClass&&(e.cssClass=(Xe+Qe+e.cssClass).trim()),delete e.change,(0,T.getComponent)(i,Ge.CheckBox).setProperties(e)}},e}(),Ro=u(323),Ao=function(){return Ao=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ao.apply(this,arguments)},jo=function(){function e(e){this.parent=e}return e.prototype.getModuleName=function(){return"ribbonColorPicker"},e.prototype.destroy=function(){this.parent=null},e.prototype.createColorPicker=function(e,t){var o=this,i=this.parent.createElement("input",{id:e.id});t.appendChild(i);var r=e.colorPickerSettings,n=new Ro.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:r.columns,cssClass:(Xe+Qe+(r.cssClass?r.cssClass:"")).trim(),disabled:e.disabled,enableOpacity:r.enableOpacity,mode:r.mode,modeSwitcher:r.modeSwitcher,noColor:r.noColor,presetColors:r.presetColors,showButtons:r.showButtons,value:r.value,beforeClose:function(){n.element.parentElement.classList.remove(Ze),r.beforeClose&&r.beforeClose.call(o)},beforeOpen:r.beforeOpen,beforeTileRender:r.beforeTileRender,created:r.created,change:function(e){r.value=e.value.toString(),r.change&&r.change.call(o,e)},open:function(){n.element.parentElement.classList.add(Ze),r.open&&r.open.call(o)},select:r.select},i);if(r.htmlAttributes){var s=Ao({},r.htmlAttributes);s.id&&delete s.id,si(i,s)}var a=n.element.parentElement;T.EventHandler.add(a,"mouseenter",this.toggleWrapperHover.bind(this,a,!0),this),T.EventHandler.add(a,"mouseleave",this.toggleWrapperHover.bind(this,a,!1),this)},e.prototype.toggleWrapperHover=function(e,t){t?e.classList.add(Ve):e.classList.remove(Ve)},e.prototype.addOverFlowEvents=function(e,t,o){var i=this,r=e.colorPickerSettings;if(r.label&&"Simplified"===this.parent.activeLayout){var n=this.parent.createElement("div",{className:"e-ribbon-colorpicker-label",id:e.id+"_label",innerHTML:r.label});t.insertBefore(n,t.firstChild)}var s=t.querySelector("#"+e.id);s.setAttribute("data-control",e.type.toString());var a=(0,T.getComponent)(s,Ro.ColorPicker);a.setProperties({cssClass:a.cssClass+Qe+Ye});var l,p=a.splitBtn;a.beforeClose=function(t){l=t.event?t.event.target:null,a.element.parentElement.classList.remove(Ze),e.colorPickerSettings.beforeClose&&e.colorPickerSettings.beforeClose.call(i)},p.close=function(){l&&!l.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},e.prototype.removeOverFlowEvents=function(e,t){var o=this;if(e.colorPickerSettings.label){var i=t.querySelector("#"+e.id+"_label");i&&i.remove()}var r=t.querySelector("#"+e.id),n=(0,T.getComponent)(r,Ro.ColorPicker),s=n.cssClass.split(Qe);s=s.filter((function(e){return e!==Ye})),n.setProperties({cssClass:s.join(Qe)}),n.splitBtn.close=null,n.beforeClose=function(){n.element.parentElement.classList.remove(Ze),e.colorPickerSettings.beforeClose&&e.colorPickerSettings.beforeClose.call(o)}},e.prototype.getColorPickerObj=function(e){var t=ei(this.parent,e);return t?(0,T.getComponent)(t,Ro.ColorPicker):null},e.prototype.getValue=function(e,t,o){var i=this.getColorPickerObj(e);return i?i.getValue(t,o):""},e.prototype.toggle=function(e){var t=this.getColorPickerObj(e);t&&t.toggle()},e.prototype.updateColorPicker=function(e,t){var o=Xo(this.parent.tabs,t);if(o){(0,T.merge)(o.item.checkBoxSettings,e);var i=ei(this.parent,t,o);if(i)e.cssClass&&(e.cssClass=(Xe+Qe+e.cssClass).trim()),delete e.beforeClose,delete e.open,(0,T.getComponent)(i,Ro.ColorPicker).setProperties(e)}},e.prototype.unwireColorPickerEvents=function(e){var t=(0,T.getComponent)(e,Ro.ColorPicker).element.parentElement;T.EventHandler.remove(t,"mouseenter",this.toggleWrapperHover),T.EventHandler.remove(t,"mouseleave",this.toggleWrapperHover)},e}(),Go=function(){return Go=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Go.apply(this,arguments)},No=function(){function e(e){this.parent=e}return e.prototype.getModuleName=function(){return"ribbonComboBox"},e.prototype.destroy=function(){this.parent=null},e.prototype.createComboBox=function(e,t){var o=this,i=this.parent.createElement("input",{id:e.id});t.appendChild(i);var r=e.comboBoxSettings,n={};r.htmlAttributes&&(n=Go({},r.htmlAttributes)).id&&delete n.id,new A.ComboBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,allowCustom:!1,floatLabelType:"Never",ignoreAccent:!0,ignoreCase:!0,allowFiltering:r.allowFiltering,autofill:r.autofill,cssClass:(Xe+Qe+(r.cssClass?r.cssClass:"")).trim(),dataSource:r.dataSource,enabled:!e.disabled,fields:r.fields,filterType:r.filterType,footerTemplate:r.footerTemplate,groupTemplate:r.groupTemplate,headerTemplate:r.headerTemplate,index:r.index,itemTemplate:r.itemTemplate,noRecordsTemplate:r.noRecordsTemplate,placeholder:r.placeholder,popupHeight:r.popupHeight,popupWidth:r.popupWidth,showClearButton:r.showClearButton,sortOrder:r.sortOrder,text:r.text,value:r.value,width:r.width,beforeOpen:r.beforeOpen,open:r.open,htmlAttributes:n,close:function(e){r.close&&r.close.call(o,e)},filtering:r.filtering,change:r.change,select:r.select,created:r.created},i)},e.prototype.addOverFlowEvents=function(e,t,o){var i=this,r=e.comboBoxSettings;if(r.label&&"Simplified"===this.parent.activeLayout){var n=this.parent.createElement("div",{className:"e-ribbon-combobox-label",id:e.id+"_label",innerHTML:r.label});t.insertBefore(n,t.firstChild)}var s=t.querySelector("#"+e.id);s.setAttribute("data-control",e.type.toString());var a=(0,T.getComponent)(s,A.ComboBox);a.setProperties({cssClass:a.cssClass+Qe+Ye}),a.close=function(t){var r=t.event?t.event.target:null;e.comboBoxSettings.close&&e.comboBoxSettings.close.call(i,t),r&&!r.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},e.prototype.removeOverFlowEvents=function(e,t){var o=this;if(e.comboBoxSettings.label){var i=t.querySelector("#"+e.id+"_label");i&&i.remove()}var r=t.querySelector("#"+e.id),n=(0,T.getComponent)(r,A.ComboBox),s=n.cssClass.split(Qe);s=s.filter((function(e){return e!==Ye})),n.setProperties({cssClass:s.join(Qe)}),n.close=function(t){e.comboBoxSettings.close&&e.comboBoxSettings.close.call(o,t)}},e.prototype.getComboBoxObj=function(e){var t=ei(this.parent,e);return t?(0,T.getComponent)(t,A.ComboBox):null},e.prototype.filter=function(e,t,o,i){this.getComboBoxObj(e).filter(t,o,i)},e.prototype.hidePopup=function(e){var t=this.getComboBoxObj(e);t&&t.hidePopup()},e.prototype.showPopup=function(e){var t=this.getComboBoxObj(e);t&&t.showPopup()},e.prototype.updateComboBox=function(e,t){var o=Xo(this.parent.tabs,t);if(o){(0,T.merge)(o.item.comboBoxSettings,e);var i=ei(this.parent,t,o);if(i)e.cssClass&&(e.cssClass=(Xe+Qe+e.cssClass).trim()),delete e.close,(0,T.getComponent)(i,A.ComboBox).setProperties(e)}},e}(),Ho=u(197),Wo=function(){return Wo=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Wo.apply(this,arguments)},zo=function(){function e(e){this.parent=e}return e.prototype.getModuleName=function(){return"ribbonDropDown"},e.prototype.destroy=function(){this.parent=null},e.prototype.createDropDown=function(e,t){var o=this,r=this.parent.createElement("button",{id:e.id});t.appendChild(r);var n=e.dropDownSettings,s=(Ne+Qe+Xe+Qe+(n.cssClass?n.cssClass:"")).trim();if(new H.DropDownButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:e.activeSize===i.Large?"Top":"Left",closeActionEvents:n.closeActionEvents,content:e.activeSize===i.Small?"":n.content,cssClass:s+(e.activeSize===i.Large?Qe+Fe:""),disabled:e.disabled,iconCss:n.iconCss,items:n.items,target:n.target,createPopupOnClick:n.createPopupOnClick,beforeClose:function(e){n.beforeClose&&n.beforeClose.call(o,e)},beforeItemRender:n.beforeItemRender,beforeOpen:n.beforeOpen,close:function(e){n.close&&n.close.call(o,e)},created:n.created,open:n.open,select:n.select}).appendTo(r),n.htmlAttributes){var a=Wo({},n.htmlAttributes);a.id&&delete a.id,si(r,a)}},e.prototype.addOverFlowEvents=function(e,t,o){var i=this,r=t.querySelector("#"+e.id);r.setAttribute("data-control",e.type.toString());var n,s=(0,T.getComponent)(r,H.DropDownButton);s.cssClass=s.cssClass+Qe+Ye,s.dataBind(),s.beforeClose=function(t){e.dropDownSettings.beforeClose&&e.dropDownSettings.beforeClose.call(i,t),n=t.event?t.event.target:null},s.close=function(t){e.dropDownSettings.close&&e.dropDownSettings.close.call(i,t),n&&!n.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},e.prototype.removeOverFlowEvents=function(e,t){var o=this,i=t.querySelector("#"+e.id),r=(0,T.getComponent)(i,H.DropDownButton),n=r.cssClass.split(Qe);n=n.filter((function(e){return e!==Ye})),r.cssClass=n.join(Qe),r.dataBind(),r.close=function(t){e.dropDownSettings.close&&e.dropDownSettings.close.call(o,t)},r.beforeClose=function(t){e.dropDownSettings.beforeClose&&e.dropDownSettings.beforeClose.call(o,t)}},e.prototype.createOverFlowDropDown=function(e,t,o,i,r,n){var s=this;this.enableRtl=n;var a=this.parent.createElement("button",{id:e+vo+So});i.setAttribute("tabindex","0"),r.appendChild(a);var l=new H.DropDownButton({iconCss:o,target:i,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:Fe+Qe+Bt,iconPosition:"Top",content:t,beforeClose:function(e){e.cancel=!(0,T.isNullOrUndefined)(e.event&&(0,T.closest)(e.event.target,"."+Ye))}},a);return ii(i,this.parent),a.onclick=a.onkeydown=function(){s.itemIndex=0},i.onkeydown=function(e){s.keyActionHandler(e,i)},l},e.prototype.keyActionHandler=function(e,t){var o,i=Array.prototype.slice.call(t.querySelectorAll(".e-control")),r=Array.prototype.slice.call(t.querySelectorAll(".e-ribbon-template")),n=i.concat(r),s=t.querySelectorAll(".e-combobox");if(s)for(var a=0;a<s.length;a++)s[parseInt(a.toString(),10)].closest(".e-input-focus")&&(o=s[parseInt(a.toString(),10)]);if(o)for(a=0;a<n.length;a++)n[parseInt(a.toString(),10)].classList.contains("e-combobox")&&n[parseInt(a.toString(),10)].closest(".e-input-focus")&&(this.itemIndex=a);(e.target.classList.contains("e-control")||e.target.classList.contains("e-ribbon-template")||e.target.classList.contains("e-ribbon-launcher-icon")||e.target.classList.contains("e-ribbon-last-item")||e.target.classList.contains("e-ribbon-first-item"))&&(("ArrowRight"===e.key||!e.shiftKey&&"Tab"===e.key)&&this.handleNavigation(e,!this.enableRtl,n),("ArrowLeft"===e.key||e.shiftKey&&"Tab"===e.key)&&this.handleNavigation(e,this.enableRtl,n))},e.prototype.handleNavigation=function(e,t,o){if(o[0].classList.contains("e-ribbon-first-item")||o[0].classList.add("e-ribbon-first-item"),o[o.length-1].classList.contains("e-ribbon-last-item")||o[o.length-1].classList.add("e-ribbon-last-item"),t){if(0===this.itemIndex&&o[parseInt(this.itemIndex.toString(),10)].classList.contains("e-ribbon-first-item")&&this.updateItemIndex(e,o,!0),e.target.classList.contains("e-combobox")||e.target.classList.contains("e-ribbon-last-item")||e.target.classList.contains("e-ribbon-group-container")||!e.target.classList.contains("e-ribbon-first-item")&&0===this.itemIndex||!e.target.classList.contains("e-control")&&!e.target.classList.contains("e-ribbon-template")||(this.itemIndex++,this.updateItemIndex(e,o,!0)),e.target.classList.contains("e-ribbon-last-item")){this.focusLauncherIcon(e,o)||(this.itemIndex=0,this.updateItemIndex(e,o,!0))}e.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=0,this.updateItemIndex(e,o,!0))}else{if(e.target.classList.contains("e-combobox")||0===this.itemIndex||(this.itemIndex--,this.updateItemIndex(e,o,!1)),e.target.classList.contains("e-ribbon-first-item")){this.focusLauncherIcon(e,o)||(this.itemIndex=o.length-1,this.updateItemIndex(e,o,!1))}e.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=o.length-1,this.updateItemIndex(e,o,!1))}e.target.classList.contains("e-combobox")&&"Tab"===e.key&&(t?this.itemIndex<o.length-1&&this.itemIndex++:this.itemIndex>0&&this.itemIndex--)},e.prototype.focusLauncherIcon=function(e,t){var o,i=t[parseInt(this.itemIndex.toString(),10)].closest(".e-ribbon-group-container");return i&&(o=i.querySelector(".e-ribbon-launcher-icon")),!!o&&("Tab"===e.key&&e.preventDefault(),i.querySelector(".e-ribbon-launcher-icon").focus(),!0)},e.prototype.updateItemIndex=function(e,t,o){for(var i=t[this.itemIndex].closest(".e-ribbon-item");i&&i.classList.contains("e-disabled");){if(o)if(this.itemIndex<t.length-1)this.itemIndex++;else{if(this.focusLauncherIcon(e,t))break;this.itemIndex=0}else if(this.itemIndex>0)this.itemIndex--;else{if(this.focusLauncherIcon(e,t))break;this.itemIndex=t.length-1}i=t[this.itemIndex].closest(".e-ribbon-item")}"Tab"===e.key&&e.preventDefault(),t[parseInt(this.itemIndex.toString(),10)].focus()},e.prototype.removeOverFlowDropDown=function(e){var t=(0,T.getComponent)(e,H.DropDownButton);(0,T.getComponent)(t.target,Ho.Tooltip).destroy(),e.parentElement.parentElement.insertBefore(t.target,e.parentElement),t.destroy(),(0,T.remove)(e)},e.prototype.getDDBItemElement=function(e,t){return(0,T.getComponent)(e,H.DropDownButton).dropDown.element.querySelector("#"+t)},e.prototype.getOverflowDropDownPopup=function(e,t){var o=t.querySelector("#"+this.parent.tabs[e.tabIndex].groups[e.groupIndex].id+vo+So);return(0,T.getComponent)(o,H.DropDownButton).dropDown.element},e.prototype.getDropDownObj=function(e){var t=ei(this.parent,e);return t?(0,T.getComponent)(t,H.DropDownButton):null},e.prototype.addItems=function(e,t,o){this.getDropDownObj(e).addItems(t,o)},e.prototype.removeItems=function(e,t,o){this.getDropDownObj(e).removeItems(t,o)},e.prototype.toggle=function(e){this.getDropDownObj(e).toggle()},e.prototype.updateDropDown=function(e,t){var o=Xo(this.parent.tabs,t);if(o){(0,T.merge)(o.item.dropDownSettings,e);var r=ei(this.parent,t,o);if(r){var n=(0,T.getComponent)(r,H.DropDownButton);e.cssClass&&(e.cssClass=(Xe+Qe+Ne+Qe+e.cssClass).trim(),e.cssClass=o.item.activeSize===i.Large?(Fe+Qe+e.cssClass).trim():e.cssClass,n.cssClass=e.cssClass),delete e.close,delete e.beforeClose,e.content&&(e.content=o.item.activeSize===i.Small?"":e.content),n.setProperties(e)}}},e.prototype.updateDropDownSize=function(e,t){var o=(0,T.getComponent)(e,H.DropDownButton),r=o.cssClass.split(Qe);t.activeSize===i.Large?r.push(Fe):r=r.filter((function(e){return e!==Fe})),o.cssClass=r.join(Qe),o.setProperties({iconPosition:t.activeSize===i.Large?"Top":"Left"}),o.setProperties({content:t.activeSize===i.Small?"":t.dropDownSettings.content})},e}(),Fo=function(){return Fo=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Fo.apply(this,arguments)},Ko=function(){function e(e){this.parent=e}return e.prototype.getModuleName=function(){return"ribbonSplitButton"},e.prototype.destroy=function(){this.parent=null},e.prototype.createSplitButton=function(e,t){var o=this,r=this.parent.createElement("button",{id:e.id});t.appendChild(r);var n=e.splitButtonSettings,s=(Ne+Qe+Xe+Qe+(n.cssClass?n.cssClass:"")).trim(),a=new H.SplitButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:e.activeSize===i.Large?"Top":"Left",closeActionEvents:n.closeActionEvents,cssClass:s+(e.activeSize===i.Large?Qe+Fe:""),disabled:e.disabled,iconCss:n.iconCss,items:n.items,target:n.target,beforeClose:function(e){n.beforeClose&&n.beforeClose.call(o,e)},beforeItemRender:n.beforeItemRender,beforeOpen:n.beforeOpen,close:function(){a.wrapper.classList.remove(Ze),n.close&&n.close.call(o)},created:n.created,open:function(){a.wrapper.classList.add(Ze),n.open&&n.open.call(o)},select:n.select,click:function(e){n.click&&n.click.call(o,e)}},r);if(n.htmlAttributes){var l=Fo({},n.htmlAttributes);l.id&&delete l.id,si(r,l)}var p=r.parentElement.querySelector(".e-dropdown-btn");p.onkeydown=function(e){"Enter"===e.key&&(e.stopImmediatePropagation(),p.click())},this.setContent(e,a);var c=a.wrapper;T.EventHandler.add(c,"mouseenter",(function(){c.classList.add(Ve)}),this),T.EventHandler.add(c,"mouseleave",(function(){c.classList.remove(Ve)}),this)},e.prototype.addOverFlowEvents=function(e,t,o){var i=this,r=t.querySelector("#"+e.id);r.setAttribute("data-control",e.type.toString());var n=(0,T.getComponent)(r,H.SplitButton);n.cssClass=n.cssClass+Qe+Ye,n.dataBind();var s,a=r.parentElement.querySelector(".e-dropdown-btn"),l=a.getAttribute("id"),p=document.querySelector("#"+l+"-popup");a.onkeydown=function(e){"Enter"===e.key&&(e.stopImmediatePropagation(),a.click())},p.onkeydown=function(e){"Enter"===e.key&&(e.preventDefault(),n.wrapper.classList.remove("e-ribbon-open"),p.querySelector(".e-focused").click())},n.beforeClose=function(t){e.splitButtonSettings.beforeClose&&e.splitButtonSettings.beforeClose.call(i,t),s=t.event?t.event.target:null},n.click=function(t){e.splitButtonSettings.click&&e.splitButtonSettings.click.call(i,t),o.toggle()},n.close=function(t){e.splitButtonSettings.close&&e.splitButtonSettings.close.call(i,t),n.wrapper.classList.remove(Ze),s&&!s.closest(".e-ribbon-group-overflow-ddb")&&o.toggle()}},e.prototype.removeOverFlowEvents=function(e,t){var o=this,i=t.querySelector("#"+e.id),r=(0,T.getComponent)(i,H.SplitButton),n=r.cssClass.split(Qe);n=n.filter((function(e){return e!==Ye})),r.cssClass=n.join(Qe),r.dataBind(),r.beforeClose=function(t){e.splitButtonSettings.beforeClose&&e.splitButtonSettings.beforeClose.call(o,t)},r.click=function(t){e.splitButtonSettings.click&&e.splitButtonSettings.click.call(o,t)},r.close=function(t){e.splitButtonSettings.close&&e.splitButtonSettings.close.call(o,t),r.wrapper.classList.remove(Ze)}},e.prototype.setContent=function(e,t){t.primaryBtnObj.setProperties({content:e.activeSize===i.Medium?e.splitButtonSettings.content:""}),t.secondaryBtnObj.setProperties({content:e.activeSize===i.Large?e.splitButtonSettings.content:""})},e.prototype.getSplitButtonObj=function(e){var t=ei(this.parent,e);return(0,T.getComponent)(t,H.SplitButton)},e.prototype.addItems=function(e,t,o){this.getSplitButtonObj(e).addItems(t,o)},e.prototype.removeItems=function(e,t,o){this.getSplitButtonObj(e).removeItems(t,o)},e.prototype.toggle=function(e){this.getSplitButtonObj(e).toggle()},e.prototype.updateSplitButton=function(e,t){var o=Xo(this.parent.tabs,t);if(o){(0,T.merge)(o.item.splitButtonSettings,e);var r=ei(this.parent,t,o);if(r){var n=(0,T.getComponent)(r,H.SplitButton);e.cssClass&&(e.cssClass=(Xe+Qe+Ne+Qe+e.cssClass).trim(),e.cssClass=o.item.activeSize===i.Large?(Fe+Qe+e.cssClass).trim():e.cssClass,n.cssClass=e.cssClass),delete e.open,delete e.click,delete e.close,delete e.beforeClose,n.setProperties(e),e.content&&this.setContent(o.item,n)}}},e.prototype.updateSplitButtonSize=function(e,t){var o=(0,T.getComponent)(e,H.SplitButton),r=o.cssClass.split(Qe);t.activeSize===i.Large?r.push(Fe):r=r.filter((function(e){return e!==Fe})),o.cssClass=r.join(Qe),o.setProperties({iconPosition:t.activeSize===i.Large?"Top":"Left"}),this.setContent(t,o)},e}();function Uo(e,t){for(var o=0;o<e.length;o++)if(t(e[parseInt(o.toString(),10)],o))return o;return-1}function Vo(e){if("string"==typeof e){var t="";try{var o=(0,T.select)(e);t=o?"SCRIPT"===o.tagName?o.innerHTML:o.outerHTML:e}catch(o){t=e}return(0,T.compile)(t)}return(0,T.compile)(e)}function Xo(e,t,o){for(var i=0;i<e.length;i++)for(var r=e[parseInt(i.toString(),10)],n=0;n<r.groups.length;n++)for(var s=r.groups[parseInt(n.toString(),10)],a=0;a<s.collections.length;a++)for(var l=s.collections[parseInt(a.toString(),10)],p=0;p<l.items.length;p++){var c=l.items[parseInt(p.toString(),10)];if(t&&c.id===t||o&&c.type===o)return{item:c,collection:l,group:s,tabIndex:i,groupIndex:n,collectionIndex:a,itemIndex:p}}return null}function Yo(e,t){for(var o=0;o<e.length;o++)for(var i=e[parseInt(o.toString(),10)],r=0;r<i.groups.length;r++)for(var n=i.groups[parseInt(r.toString(),10)],s=0;s<n.collections.length;s++){var a=n.collections[parseInt(s.toString(),10)];if(a.id===t)return{collection:a,group:n,tabIndex:o,groupIndex:r,collectionIndex:s}}return null}function Zo(e,t){for(var o=0;o<e.length;o++)for(var i=e[parseInt(o.toString(),10)],r=0;r<i.groups.length;r++){var n=i.groups[parseInt(r.toString(),10)];if(n.id===t)return{group:n,tabIndex:o,groupIndex:r}}return null}function Jo(e,t){(0,T.getComponent)(e,t).destroy()}function Qo(e,t,o){(0,T.getComponent)(e,t).setProperties(o)}function $o(e,t,o){(0,T.getComponent)(e,t).setProperties("combobox"===t?{enabled:!o}:{disabled:o})}function ei(e,o,i){if(!i&&!(i=Xo(e.tabs,o)))return null;var n=e.tabObj.items[i.tabIndex].content;if(""===n.innerHTML)return null;if(e.activeLayout===t.Classic)return i.item.displayOptions&r.Classic?(n=i.group.isCollapsed?e.ribbonDropDownModule.getOverflowDropDownPopup(i,n):n).querySelector("#"+o):null;var s=i.item.displayOptions&r.Simplified?n.querySelector("#"+i.item.id):null;return s||(s=(i.group.enableGroupOverflow?(0,T.getComponent)(n.querySelector("#"+i.group.id+bo),H.DropDownButton):e.overflowDDB).target.querySelector("#"+i.item.id)),s}function ti(e){return!!(e.content||e.iconCss||e.title||e.id||e.cssClass)}function oi(e,t,o){var i=e.target.getAttribute("id"),r=o.filter((function(e){return e.id===i}))[0].data,n=t.createElement("div",{id:r.id?Xt+"_"+r.id:Xt});if(t.element.append(n),r.title){var s=t.createElement("div",{innerHTML:r.title,className:Kt});n.appendChild(s)}var a=t.createElement("div",{className:Yt});if(n.appendChild(a),r.iconCss){var l=t.createElement("div",{className:r.iconCss+" "+Vt});a.appendChild(l)}if(r.content){var p=t.createElement("div",{innerHTML:r.content,className:Ut});a.appendChild(p)}t.setProperties({content:n,cssClass:r.cssClass?r.cssClass+" "+zt:zt})}function ii(e,t){var o=new Ho.Tooltip({target:"."+Ft,beforeRender:function(e){oi(e,o,t.tooltipData)}.bind(this),windowCollision:!0});o.appendTo(e)}function ri(e){(0,T.getComponent)(e,Ho.Tooltip).destroy()}function ni(e,t){(0,T.getComponent)(e,Ho.Tooltip).setProperties(t)}function si(e,t){for(var o in t)if("class"===o){var i=t.class.replace(/\s+/g," ").trim();i&&(0,T.addClass)([e],i.split(" "))}else if("style"===o){var r=""+(e.getAttribute("style")||"")+t[""+o];e.setAttribute(""+o,r)}else e.setAttribute(o,t[""+o])}var ai=function(){function e(e){this.parent=e,this.isSelected=!1}return e.prototype.getModuleName=function(){return"ribbonGroupButton"},e.prototype.destroy=function(){this.parent=null},e.prototype.createGroupButton=function(e,t){var o=this,r=e.groupButtonSettings;this.count=0;var n=this.parent.createElement("div",{id:e.id+Po,className:"e-btn-group"});t.appendChild(n);for(var a=0;a<r.items.length;a++)if(r.items[parseInt(a.toString(),10)].iconCss){var l=this.parent.createElement("button",{id:e.id+Po+a,className:yt});n.appendChild(l),new Ge.Button({iconCss:r.items[parseInt(a.toString(),10)].iconCss,disabled:e.disabled,enableRtl:this.parent.enableRtl,content:e.activeSize===i.Small?"":r.items[parseInt(a.toString(),10)].content,iconPosition:e.activeSize===i.Large?"Top":"Left"},l),r.items[parseInt(a.toString(),10)].htmlAttributes&&si(l,r.items[parseInt(a.toString(),10)].htmlAttributes),r.items[parseInt(a.toString(),10)].content?(l.classList.add(vt),l.setAttribute("aria-label",r.items[parseInt(a.toString(),10)].content)):l.setAttribute("aria-label","groupbuttonitem");var p=t.querySelector("#"+e.id+Po+a);r.selection===s.Single?n.classList.add(ft):n.classList.add(mt),r.items[parseInt(a.toString(),10)].selected&&(r.selection===s.Multiple?p.classList.add("e-active"):this.count<1&&(p.classList.add("e-active"),this.count++)),r.items[parseInt(a.toString(),10)].ribbonTooltipSettings&&ti(r.items[parseInt(a.toString(),10)].ribbonTooltipSettings)&&(l.classList.add(Ft),this.parent.tooltipData.push({id:l.id,data:r.items[parseInt(a.toString(),10)].ribbonTooltipSettings})),T.EventHandler.add(p,"click",this.groupButtonClicked.bind(this,a,e,r),this)}if("Simplified"===this.parent.activeLayout){var c=void 0,u=0,d=0;p=this.parent.createElement("button",{id:e.id});t.appendChild(p);for(a=0;a<r.items.length;a++)e.groupButtonSettings.items[parseInt(a.toString(),10)].selected&&!this.isSelected&&r.selection===s.Single?(c=e.groupButtonSettings.items[parseInt(a.toString(),10)].iconCss,this.isSelected=!0):e.groupButtonSettings.items[parseInt(a.toString(),10)].selected&&r.selection===s.Multiple&&(c=1===++u?e.groupButtonSettings.items[parseInt(a.toString(),10)].iconCss:null);for(;d<e.groupButtonSettings.items.length&&!this.isSelected&&!c;)e.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss&&(c=e.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss,this.isSelected=!0),d++;var h=new H.DropDownButton({iconCss:c,target:n,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:e.disabled},p);if(r.header){var b=h.dropDown;this.addGroupButtonHeader(e.id,r,b.element)}p.onclick=p.onkeydown=function(){o.handleFocusState(e,t)},n.onkeydown=function(t){"Simplified"===o.parent.activeLayout&&o.handleGroupButtonNavigation(t,e)},ii(n,this.parent),this.isSelected=!1}},e.prototype.groupButtonClicked=function(e,t,o){for(var i,r,n=[],a=[],l=[],p=0;p<o.items.length;p++)document.querySelector("#"+t.id+Po+p)&&document.querySelector("#"+t.id+Po+p).classList.contains("e-active")&&n.push(o.items[parseInt(p.toString(),10)]);document.querySelector("#"+t.id+Po+e).classList.contains("e-active")||a.push(o.items[parseInt(e.toString(),10)]);var c={cancel:!1,previousItems:n,selectingItems:a};if(o.items[parseInt(e.toString(),10)].beforeClick&&o.items[parseInt(e.toString(),10)].beforeClick.call(this,c),!c.cancel){if(o.selection===s.Single){document.querySelector("#"+t.id+Po).classList.contains(mt)&&(document.querySelector("#"+t.id+Po).classList.remove(mt),document.querySelector("#"+t.id+Po).classList.add(ft));for(p=0;p<o.items.length;p++)document.querySelector("#"+t.id+Po+p)&&document.querySelector("#"+t.id+Po+p).classList.contains("e-active")&&(document.querySelector("#"+t.id+Po+p).classList.remove("e-active"),o.items[parseInt(p.toString(),10)].setProperties({selected:!1},!0));document.querySelector("#"+t.id+Po+e).classList.toggle("e-active"),o.items[parseInt(e.toString(),10)].setProperties({selected:!0},!0),document.querySelector("#"+t.id+Po+e).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&(this.grpBtnIndex=e,i=document.querySelector("#"+t.id),(r=(0,T.getComponent)(i,H.DropDownButton)).setProperties({iconCss:o.items[parseInt(e.toString(),10)].iconCss}))}else{document.querySelector("#"+t.id+Po).classList.contains(ft)&&(document.querySelector("#"+t.id+Po).classList.remove(ft),document.querySelector("#"+t.id+Po).classList.add(mt)),document.querySelector("#"+t.id+Po+e).classList.toggle("e-active"),document.querySelector("#"+t.id+Po+e).classList.contains("e-active")?o.items[parseInt(e.toString(),10)].setProperties({selected:!0},!0):o.items[parseInt(e.toString(),10)].setProperties({selected:!1},!0);for(var u=0,d=0;d<o.items.length;d++)document.querySelector("#"+t.id+Po+d)&&document.querySelector("#"+t.id+Po+d).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&d!==e&&(this.isSelected=!0,u++);if("Simplified"===this.parent.activeLayout){var h=null,b=0;if(i=document.querySelector("#"+t.id),r=(0,T.getComponent)(i,H.DropDownButton),this.isSelected){if(1===u&&!document.querySelector("#"+t.id+Po+e).classList.contains("e-active"))for(d=0;d<o.items.length;d++)document.querySelector("#"+t.id+Po+d)&&document.querySelector("#"+t.id+Po+d).classList.contains("e-active")&&(h=o.items[parseInt(d.toString(),10)].iconCss)}else document.querySelector("#"+t.id+Po+e).classList.contains("e-active")&&(h=o.items[parseInt(e.toString(),10)].iconCss);for(;b<o.items.length&&!h;)o.items[parseInt(b.toString(),10)].iconCss&&(h=o.items[parseInt(b.toString(),10)].iconCss),b++;r.setProperties({iconCss:h}),this.grpBtnIndex=e}this.isSelected=!1}document.querySelector("#"+t.id+Po+e).classList.contains("e-active")&&l.push(o.items[parseInt(e.toString(),10)]);var f={previousItems:n,selectedItems:l};o.items[parseInt(e.toString(),10)].click&&o.items[parseInt(e.toString(),10)].click.call(this,f)}},e.prototype.switchGroupButton=function(e,t){var o=this,i=e.groupButtonSettings,r=null,n=0,a=0;if("Simplified"===this.parent.activeLayout){var l=t.querySelector("#"+e.id+Po),p=this.parent.createElement("button",{id:e.id});t.appendChild(p);for(var c=0;c<i.items.length;c++)document.querySelector("#"+e.id+Po+c)&&(document.querySelector("#"+e.id+Po+c).classList.contains("e-active")&&i.selection===s.Single?r=i.items[parseInt(c.toString(),10)].iconCss:document.querySelector("#"+e.id+Po+c).classList.contains("e-active")&&i.selection===s.Multiple&&(1===++n?r=i.items[parseInt(c.toString(),10)].iconCss:n>1&&(r=null)));for(;a<i.items.length&&!r;)i.items[parseInt(a.toString(),10)].iconCss&&(r=i.items[parseInt(a.toString(),10)].iconCss),a++;var u=new H.DropDownButton({iconCss:r,target:l,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:e.disabled},p);if(i.header){var d=u.dropDown;this.addGroupButtonHeader(e.id,i,d.element)}p.onclick=p.onkeydown=function(){o.handleFocusState(e,t)},l.onkeydown=function(t){"Simplified"===o.parent.activeLayout&&o.handleGroupButtonNavigation(t,e)},ii(l,this.parent)}else{var h=t.querySelector("#"+e.id);u=(0,T.getComponent)(h,H.DropDownButton);t.appendChild(u.target),h&&(u.destroy(),(0,T.remove)(h))}},e.prototype.handleFocusState=function(e,t){if(t.querySelector("#"+e.id).classList.contains("e-active")){var o=document.querySelector("#"+e.id+"_grpbtn").querySelector("."+yt+".e-active");o?o.focus():document.querySelector("#"+e.id+Po+0).focus(),this.grpBtnIndex=0}},e.prototype.addGroupButtonHeader=function(e,t,o){var i=this.parent.createElement("div",{className:"e-ribbon-groupbutton-header",id:e+fo,innerHTML:t.header});o.insertBefore(i,o.firstChild)},e.prototype.handleGroupButtonNavigation=function(e,t){var o=document.querySelector("#"+t.id),i=(0,T.getComponent)(o,H.DropDownButton).target,r=!1;"Simplified"===this.parent.activeLayout&&i.closest(".e-ribbon-dropdown-group-button").classList.contains(gt)&&(r=!0),"Tab"===e.key&&e.preventDefault();var n=t.groupButtonSettings;"ArrowRight"===e.key&&!r||"ArrowDown"===e.key&&r?!this.parent.enableRtl||"ArrowDown"===e.key&&r?(this.grpBtnIndex++,this.grpBtnIndex<n.items.length||(this.grpBtnIndex=0),document.querySelector("#"+t.id+Po+this.grpBtnIndex).focus()):0===this.grpBtnIndex?(this.grpBtnIndex=n.items.length-1,document.querySelector("#"+t.id+Po+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+t.id+Po+this.grpBtnIndex).focus()):("ArrowLeft"===e.key&&!r||"ArrowUp"===e.key&&r)&&(!this.parent.enableRtl||"ArrowUp"===e.key&&r?0===this.grpBtnIndex?(this.grpBtnIndex=n.items.length-1,document.querySelector("#"+t.id+Po+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+t.id+Po+this.grpBtnIndex).focus()):(this.grpBtnIndex++,this.grpBtnIndex<n.items.length||(this.grpBtnIndex=0),document.querySelector("#"+t.id+Po+this.grpBtnIndex).focus()))},e.prototype.addOverFlowEvents=function(e,t,o){var i=this,r=e.groupButtonSettings,n=!0,s=t.querySelector("#"+e.id),a=(0,T.getComponent)(s,H.DropDownButton);a.setProperties({cssClass:a.cssClass+Qe+gt,content:r.header?r.header:""});var l=a.target;if(l.children.length){for(var p=0;p<l.children.length;p++)if(r.items[parseInt(p.toString(),10)].content){n=!1;break}n&&l.classList.add("e-icon-btn")}l.onclick=function(){"Simplified"===i.parent.activeLayout&&l.closest(".e-ribbon-dropdown-group-button").classList.contains(gt)&&(a.toggle(),o.toggle())}},e.prototype.removeOverFlowEvents=function(e,t){var o=t.querySelector("#"+e.id);if(o){var i=(0,T.getComponent)(o,H.DropDownButton),r=i.target;r.classList.contains("e-icon-btn")&&r.classList.remove("e-icon-btn");var n=i.cssClass.split(Qe);n=n.filter((function(e){return e!==gt})),i.setProperties({cssClass:n.join(Qe),content:""})}},e.prototype.destroyDropDown=function(e){var t=document.querySelector("#"+e.id);if(t){var o=(0,T.getComponent)(t,H.DropDownButton);(0,T.getComponent)(o.target,Ho.Tooltip).destroy(),o.destroy(),(0,T.remove)(t)}},e.prototype.updateGroupButtonSize=function(e,t){for(var o,r=t.groupButtonSettings,n=0;n<r.items.length;n++){if(o="Classic"===this.parent.activeLayout?e.querySelector("#"+t.id+Po+n):document.querySelector("#"+t.id+Po+n))(0,T.getComponent)(o,Ge.Button).setProperties({iconPosition:t.activeSize===i.Large?"Top":"Left",content:t.activeSize===i.Small?"":r.items[parseInt(n.toString(),10)].content})}},e}(),li=function(){function e(e){this.count=0,this.isAdded=!1,this.galleryItemsIndex=0,this.registeredTemplate={},this.parent=e;var t="viewContainerRef";(0,T.setValue)("registeredTemplate",this.registeredTemplate,this),(0,T.setValue)(t,this.parent[""+t],this)}return e.prototype.getModuleName=function(){return"ribbonGallery"},e.prototype.destroy=function(){this.parent=null},e.prototype.createGallery=function(e,t){var o=this,i=e.gallerySettings;this.renderGalleryItems(i,!1,e.id,t);var r=this.parent.createElement("button",{id:e.id+"_popupButton",className:"e-ribbon-gallery-button e-icons e-drop-icon"});r.setAttribute("aria-label","gallerydropdownbutton"),t.appendChild(r),this.createPopup(e,r),r.onclick=function(t){var r=document.querySelector("#"+e.id+"_galleryPopup");if(r){var n=(0,T.getComponent)(r,Ho.Popup);r.classList.contains("e-popup-close")?o.showPopup(n,r,t,i,e.id):o.hidePopup(n,r,t,i,e.id)}},document.onclick=function(e){for(var t,i,r=document.querySelectorAll(".e-ribbon-gallery-popup.e-popup-open"),n=0;n<r.length;n++){var s=(0,T.getComponent)(r[parseInt(n.toString(),10)],Ho.Popup);if(!e.target.classList.contains("e-ribbon-gallery-button")){t=r[parseInt(n.toString(),10)].id.replace(/_galleryPopup/g,""),i=Xo(o.parent.tabs,t),o.hidePopup(s,r[parseInt(n.toString(),10)],e,i.item.gallerySettings,t);break}if(t=r[parseInt(n.toString(),10)].id.replace(/_galleryPopup/g,""),e.target.id.replace(/_popupButton/g,"")!==t){i=Xo(o.parent.tabs,t),o.hidePopup(s,r[parseInt(n.toString(),10)],e,i.item.gallerySettings,t);break}}}},e.prototype.renderGalleryItems=function(e,t,o,i){var r,n,s=this,a=Xo(this.parent.tabs,o);a&&a.group&&(a.group.isCollapsible=!1);var l=this.parent.createElement("div",{className:"e-ribbon-gallery-wrapper",id:o+"_galleryWrapper"});t||i.appendChild(l);for(var p=function(a){var p=!1;r=c.parent.createElement("ol",{className:"e-ribbon-gallery-container",id:o+"_galleryContainer"+a}),e.groups[parseInt(a.toString(),10)].itemHeight&&"auto"!==e.groups[parseInt(a.toString(),10)].itemHeight&&(p=!0),e.groups[parseInt(a.toString(),10)].cssClass&&r.classList.add(e.groups[parseInt(a.toString(),10)].cssClass);for(var u=function(i){n=c.parent.createElement("li",{className:"e-ribbon-gallery-item",id:(t?"popup_":"")+r.id+"_gallery"+i,attrs:{tabindex:"0"}});var u={name:"beforeItemRender",item:e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)]};if(e.beforeItemRender&&e.beforeItemRender.call(c,u),r.appendChild(n),e.selectedItemIndex&&e.selectedItemIndex===c.count?n.classList.add("e-ribbon-gallery-selected"):e.selectedItemIndex||0!==c.count||(n.classList.add("e-ribbon-gallery-selected"),e.selectedItemIndex=c.count),c.count=c.count+1,n.onclick=function(i){s.setActiveState(i.currentTarget,e,o,!0,i,t)},n.onkeydown=function(i){"Enter"!==i.key&&" "!==i.key||s.setActiveState(i.currentTarget,e,o,!0,i,t)},n.onmouseover=function(t){var o={event:t,name:"itemHover",item:e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)]};e.itemHover&&e.itemHover.call(s,o)},e.groups[parseInt(a.toString(),10)].itemWidth&&"auto"!==e.groups[parseInt(a.toString(),10)].itemWidth&&(n.style.width=e.groups[parseInt(a.toString(),10)].itemWidth+"px"),e.groups[parseInt(a.toString(),10)].itemHeight&&"auto"!==e.groups[parseInt(a.toString(),10)].itemHeight&&(n.style.height=e.groups[parseInt(a.toString(),10)].itemHeight+"px",n.style.paddingTop="0px",n.style.paddingBottom="0px","Simplified"===c.parent.activeLayout||t||(r.style.flexFlow="wrap")),!e.template&&!e.popupTemplate||e.template&&!e.popupTemplate&&t||e.popupTemplate&&!e.template&&!t){if(e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].htmlAttributes&&si(n,e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].htmlAttributes),e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].iconCss){var d=c.parent.createElement("span",{className:"e-ribbon-gallery-icons "+e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].iconCss});n.appendChild(d),"Simplified"!==c.parent.activeLayout||t||d.classList.add("e-hidden")}e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].content&&n.appendChild(c.parent.createElement("span",{innerHTML:e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].content,className:"e-ribbon-gallery-text"})),e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].disabled&&n.classList.add("e-disabled"),e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].cssClass&&n.classList.add(e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)].cssClass)}if(e.template&&!t&&c.createGalleryTemplate(n,e,o,e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)]),e.popupTemplate&&t&&c.createGalleryPopupTemplate(n,e,o,e.groups[parseInt(a.toString(),10)].items[parseInt(i.toString(),10)]),!t&&!p&&e.itemCount===c.count)return l.appendChild(r),c.isAdded=!0,"break"},d=0;d<e.groups[parseInt(a.toString(),10)].items.length;d++){if("break"===u(d))break}if(c.isAdded&&!t)return"break";if(t?i.appendChild(r):l.appendChild(r),t&&e.groups[parseInt(a.toString(),10)].header){var h=c.parent.createElement("div",{className:"e-ribbon-gallery-header",innerHTML:e.groups[parseInt(a.toString(),10)].header});i.insertBefore(h,r)}},c=this,u=0;u<e.groups.length;u++){if("break"===p(u))break}this.count=0,this.isAdded=!1,this.parent.isReact&&(this.parent.portals=this.parent.portals.concat(this.portals),this.parent.renderReactTemplates(),this.portals=void 0)},e.prototype.setWrapperWidth=function(e,t,o,i){for(var r=1,n=0,s=!1,a=0;a<o.groups.length;a++){for(var l=0;l<o.groups[parseInt(a.toString(),10)].items.length;l++){if(!(e>=r)){s=!0;break}var p=t.querySelector("#"+i+"_galleryContainer"+a+"_gallery"+l);if(p){n+=p.offsetWidth;var c=window.getComputedStyle(p);if(c){var u=parseFloat(c.paddingLeft)+parseFloat(c.paddingRight);(0,T.isNullOrUndefined)(u)||(n+=u);var d=parseFloat(c.marginLeft)+parseFloat(c.marginRight);(0,T.isNullOrUndefined)(d)||(n+=d)}}r++}if(s)break}n>0&&(t.style.width=n+"px")},e.prototype.checkAvailableHeight=function(e){for(var t=e.querySelectorAll(".e-ribbon-gallery-wrapper"),o=0;o<t.length;o++){var i=0,r=0,n=!1,s=t[parseInt(o.toString(),10)],a=s.id.replace(/_galleryWrapper/g,""),l=s.offsetHeight,p=Xo(this.parent.tabs,a);if(p){this.setWrapperWidth(p.item.gallerySettings.itemCount,s,p.item.gallerySettings,a);for(var c=0;c<p.item.gallerySettings.groups.length;c++)for(var u=0;u<p.item.gallerySettings.groups[parseInt(c.toString(),10)].items.length;u++){var d=s.querySelector("#"+a+"_galleryContainer"+c+"_gallery"+u);if(d)if("Classic"===this.parent.activeLayout)if(d.classList.contains("e-hidden")&&d.classList.remove("e-hidden"),n)d.remove();else{var h=0,b=window.getComputedStyle(d);if(b){var f=parseFloat(b.marginTop)+parseFloat(b.marginBottom);(0,T.isNullOrUndefined)(f)||(h+=f)}i++,p.item.gallerySettings.itemCount===i?(i=0,l>=d.offsetHeight+h?l-=d.offsetHeight+h:(n=!0,d.remove())):l<d.offsetHeight+h&&(n=!0,d.remove())}else++r>p.item.gallerySettings.itemCount&&d.classList.add("e-hidden")}}}},e.prototype.checkCollision=function(e,t,o){void 0===o&&(o=0);var i=0,r=0;if(t){var n=window.innerWidth,s=0===o?n:Math.abs(n-(n-o)),a=window.getComputedStyle(t);a&&(i=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight),(0,T.isNullOrUndefined)(i)||(s-=i));var l=t.querySelectorAll(".e-ribbon-gallery-container");"auto"!==e.width&&l.forEach((function(e){e.style.flexFlow="wrap"}));for(var p=!1,c=0;c<l.length;c++){for(var u=0,d=0;d<l[parseInt(c.toString(),10)].querySelectorAll(".e-ribbon-gallery-item").length;d++){var h=window.getComputedStyle(l[parseInt(c.toString(),10)].querySelectorAll(".e-ribbon-gallery-item")[parseInt(d.toString(),10)]);if(h&&(r=parseFloat(h.marginLeft)+parseFloat(h.marginRight),(0,T.isNullOrUndefined)(r)||(u+=r)),s<=(u+=Math.round(parseFloat(h.width)))&&"auto"===e.width||"auto"!==e.width&&s<=parseInt(e.width.toString(),10)&&s<=u){t.style.width=u+Math.abs(i-r)-Math.round(parseFloat(h.width))+"px",p=!0;break}}if(p){l.forEach((function(e){e.style.flexFlow="wrap"})),"auto"===e.height&&this.setGalleryPopupHeight(t,parseFloat(a.height),parseFloat(a.top));break}}p||("auto"===e.width?(l.forEach((function(e){e.style.flexFlow="nowrap"})),t.style.width="auto"):t.style.width=e.width.toString(),"auto"===e.height&&this.setGalleryPopupHeight(t,parseFloat(a.height),parseFloat(a.top)))}},e.prototype.setGalleryPopupHeight=function(e,t,o){window.innerHeight<t||window.innerHeight<Math.round(t+o)?e.style.height=window.innerHeight-o+"px":e.style.height="auto"},e.prototype.createPopup=function(e,t){var o=this.parent.createElement("div",{className:"e-ribbon-popup-container",id:e.id+"_popupContainer"});this.renderGalleryItems(e.gallerySettings,!0,e.id,o);var i=this.parent.createElement("div",{className:"e-ribbon-gallery-popup",id:e.id+"_galleryPopup"});document.body.append(i),new Ho.Popup(i,{relateTo:t,content:o,collision:{X:"fit",Y:"flip"},actionOnScroll:"hide",targetType:"relative",position:{X:"left",Y:"bottom"},enableRtl:this.parent.enableRtl,width:e.gallerySettings.popupWidth,height:e.gallerySettings.popupHeight}).hide()},e.prototype.switchGalleryItems=function(e,t){var o=this.parent.element.querySelector("#"+t+go),i=Xo(this.parent.tabs,t);if(o){var r=o.querySelectorAll(".e-ribbon-gallery-icons"),n=o.querySelectorAll(".e-ribbon-gallery-container");if(r.length)for(var s=0;s<r.length;s++)"Simplified"===e?r[parseInt(s.toString(),10)].classList.add("e-hidden"):r[parseInt(s.toString(),10)].classList.remove("e-hidden");if(n.length&&i)for(var a=0;a<i.item.gallerySettings.groups.length;a++)for(s=0;s<n.length;s++)i.item.gallerySettings.groups[parseInt(a.toString(),10)].itemHeight&&"auto"!==i.item.gallerySettings.groups[parseInt(a.toString(),10)].itemHeight&&t+"_galleryContainer"+a===n[parseInt(s.toString(),10)].id&&(n[parseInt(s.toString(),10)].style.flexFlow="Simplified"===e?"nowrap":"wrap");var l=this.parent.tabObj.element.querySelector("#"+this.parent.tabs[this.parent.selectedTab].id+yo);l&&this.checkAvailableHeight(l)}},e.prototype.addOverFlowEvents=function(e,t){var o=this;if(t.closest(".e-ribbon-overflow-target")){var i=this.parent.createElement("button",{id:e.id});t.appendChild(i),t.querySelector(".e-ribbon-gallery-wrapper").classList.add("e-hidden"),t.querySelectorAll(".e-ribbon-gallery-container").forEach((function(e){e.classList.add("e-hidden")}));var r=t.querySelector("#"+e.id+"_popupButton");r&&r.classList.add("e-hidden");var n=Xo(this.parent.tabs,e.id),s=n&&n.group.groupIconCss?n.group.groupIconCss:"",a=n&&n.group.header?n.group.header:"";if(!s)for(var l=0;l<e.gallerySettings.groups.length;l++){for(var p=0;p<e.gallerySettings.groups[parseInt(l.toString(),10)].items.length;p++)if(e.gallerySettings.groups[parseInt(l.toString(),10)].items[parseInt(p.toString(),10)].iconCss){s=e.gallerySettings.groups[parseInt(l.toString(),10)].items[parseInt(p.toString(),10)].iconCss;break}if(s)break}var c=document.querySelector("#"+e.id+"_galleryPopup"),u=(0,T.getComponent)(c,Ho.Popup),d=document.querySelector("#"+e.id+"_galleryPopup .e-ribbon-popup-container"),h=new H.DropDownButton({iconCss:s,content:a,target:d,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-gallery-dropdown",disabled:e.disabled,open:function(){o.setFoucsToFirstItem(d,!0,e.id)},beforeClose:function(t){o.popupEvents(t.event,e.gallerySettings,"popupClose",!1)&&(t.cancel=!0)}},i);"auto"!==u.width&&(h.dropDown.width=(0,T.formatUnit)(u.width)),"auto"!==u.height&&(h.dropDown.height=(0,T.formatUnit)(u.height),h.dropDown.element.style.height=u.height.toString())}},e.prototype.removeOverFlowEvents=function(e,t){var o=t.querySelector("#"+e.id+"_popupButton");o&&o.classList.remove("e-hidden"),t.querySelector(".e-ribbon-gallery-wrapper").classList.remove("e-hidden"),t.querySelectorAll(".e-ribbon-gallery-container").forEach((function(e){e.classList.remove("e-hidden")}));var i=document.querySelector("#"+e.id);if(i){var r=document.querySelector("#"+e.id+"_galleryPopup"),n=(0,T.getComponent)(i,H.DropDownButton);r.appendChild(n.target),n.destroy(),(0,T.remove)(i)}},e.prototype.setActiveState=function(e,t,o,i,r,n){var s,a,l=document.querySelector("#"+o+go),p=Array.prototype.slice.call(l.querySelectorAll(".e-ribbon-gallery-selected")),c=document.querySelector("#"+o+"_popupContainer"),u=Array.prototype.slice.call(c.querySelectorAll(".e-ribbon-gallery-selected"));u.length&&(p=p.concat(u));for(var d=0;d<t.groups.length;d++)for(var h=0;h<t.groups[parseInt(d.toString(),10)].items.length;h++)p[0].id===o+"_galleryContainer"+d+"_gallery"+h&&(s=t.groups[parseInt(d.toString(),10)].items[parseInt(h.toString(),10)]),e.id===(n?"popup_":"")+o+"_galleryContainer"+d+"_gallery"+h&&(a=t.groups[parseInt(d.toString(),10)].items[parseInt(h.toString(),10)]);var b,f=document.getElementById(e.id),m={cancel:!1,name:"beforeSelect",previousItem:s,currentItem:a,isInteracted:i,event:r};if(t.beforeSelect&&t.beforeSelect.call(this,m),!m.cancel){for(d=0;d<p.length;d++)p[parseInt(d.toString(),10)].classList.remove("e-ribbon-gallery-selected");f.id.startsWith("popup_")?document.getElementById(f.id.slice(6))&&(b=document.getElementById(f.id.slice(6))):b=document.getElementById("popup_"+e.id),b&&b.classList.add("e-ribbon-gallery-selected"),f.classList.add("e-ribbon-gallery-selected");var y={previousItem:s,currentItem:a,name:"select",isInteracted:i,event:r},g=document.querySelectorAll("#"+o+"_popupContainer .e-ribbon-gallery-item");for(d=0;d<g.length;d++)if(g[parseInt(d.toString(),10)].id===e.id){t.selectedItemIndex=d;break}t.select&&t.select.call(this,y)}},e.prototype.popupEvents=function(e,t,o,i){var r={cancel:!1,event:e,name:o};return i&&t.popupOpen?t.popupOpen.call(this,r):!i&&t.popupClose&&t.popupClose.call(this,r),!!r.cancel},e.prototype.showPopup=function(e,t,o,i,r){if(!this.popupEvents(o,i,"popupOpen",!0)){e.show(),this.checkCollision(e,t);var n=document.querySelector("#"+r+"_popupButton");n.classList.add("e-gallery-button-active");var s=n.getBoundingClientRect();t.offsetWidth>s.left&&this.checkCollision(e,t,s.left);var a=Math.abs(t.offsetWidth-s.left)+n.offsetWidth;t.style.left=a+"px",t.style.top=t.getBoundingClientRect().top+2+"px",this.setFoucsToFirstItem(t,!1,r,e,i)}},e.prototype.hidePopup=function(e,t,o,i,r){this.popupEvents(o,i,"popupClose",!1)||(e.hide(),document.querySelector("#"+r+"_popupButton").classList.remove("e-gallery-button-active"))},e.prototype.showGalleryPopup=function(e){var t=Xo(this.parent.tabs,e),o=document.querySelector("#"+e+"_galleryPopup"),i=(0,T.getComponent)(o,Ho.Popup);this.showPopup(i,o,null,t.item.gallerySettings,e)},e.prototype.hideGalleryPopup=function(e){var t=Xo(this.parent.tabs,e),o=document.querySelector("#"+e+"_galleryPopup"),i=(0,T.getComponent)(o,Ho.Popup);this.hidePopup(i,o,null,t.item.gallerySettings,e)},e.prototype.setFoucsToFirstItem=function(e,t,o,i,r){var n=this;e.querySelectorAll(".e-ribbon-gallery-item")[0].focus(),this.galleryItemsIndex=0,e.onkeydown=function(s){n.handleGalleryPopupNavigation(s,e,t,o,i,r)}},e.prototype.handleGalleryPopupNavigation=function(e,t,o,i,r,n){var s=t.querySelectorAll(".e-ribbon-gallery-item");s&&("Home"===e.key?(this.galleryItemsIndex=0,s[this.galleryItemsIndex].focus()):"End"===e.key?(this.galleryItemsIndex=s.length-1,s[this.galleryItemsIndex].focus()):"ArrowRight"===e.key||"ArrowDown"===e.key?(this.galleryItemsIndex++,this.galleryItemsIndex!==s.length?s&&s[this.galleryItemsIndex]&&s[this.galleryItemsIndex].focus():(this.galleryItemsIndex=0,s[this.galleryItemsIndex].focus())):"ArrowLeft"===e.key||"ArrowUp"===e.key?0!==this.galleryItemsIndex?(this.galleryItemsIndex--,s&&s[this.galleryItemsIndex]&&s[this.galleryItemsIndex].focus()):(this.galleryItemsIndex=s.length-1,s[this.galleryItemsIndex].focus()):("Enter"===e.key||"Space"===e.code||"Escape"===e.key&&!o)&&this.hidePopup(r,t,e,n,i))},e.prototype.createGalleryTemplate=function(e,t,o,i){e.classList.add("e-ribbon-gallery-template");var r="ribbon"+o+"galleryTemplate";this.parent.clearTemplate([r]);var n=Vo(t.template);i.disabled&&e.classList.add("e-disabled"),i.cssClass&&e.classList.add(i.cssClass),(0,T.append)(n({items:i},this,r,o+"galleryTemplate",this.parent.isStringTemplate,null,null,this.parent),e)},e.prototype.createGalleryPopupTemplate=function(e,t,o,i){e.classList.add("e-ribbon-gallery-popup-template");var r="ribbon"+o+"galleryPopupTemplate";this.parent.clearTemplate([r]);var n=Vo(t.popupTemplate);i.disabled&&e.classList.add("e-disabled"),i.cssClass&&e.classList.add(i.cssClass),(0,T.append)(n({items:i},this,r,o+"galleryPopupTemplate",this.parent.isStringTemplate,null,null,this.parent),e)},e}(),pi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),ci=function(e,t,o,i){var r,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ui=function(e){function s(t,o){return a.Inject(_o,qo,zo,Ko,No,ai),e.call(this,t,o)||this}var a;return pi(s,e),a=s,s.prototype.render=function(){this.initialize()},s.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"}},s.prototype.getPersistData=function(){return this.addOnPersist(["activeLayout"])},s.prototype.getModuleName=function(){return"ribbon"},s.prototype.requiredModules=function(){var e=[];e.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 t=Xo(this.tabs,null,n.ColorPicker),o=Xo(this.tabs,null,n.Gallery);return t&&e.push({member:"ribbonColorPicker",args:[this],name:"RibbonColorPicker"}),o&&e.push({member:"ribbonGallery",args:[this],name:"RibbonGallery"}),(this.backStageMenu.visible||this.backStageMenu.items.length)&&e.push({member:"ribbonBackstage",args:[this],name:"RibbonBackstage"}),(this.fileMenu.visible||this.fileMenu.menuItems.length)&&e.push({member:"ribbonFileMenu",args:[this],name:"RibbonFileMenu"}),this.contextualTabs.length&&e.push({member:"ribbonContextualTab",args:[this],name:"RibbonContextualTab"}),this.enableKeyTips&&e.push({member:"ribbonKeyTip",args:[this],name:"RibbonKeyTip"}),e},s.prototype.initialize=function(){this.element.id=this.element.id||(0,T.getUniqueID)("e-"+this.getModuleName()),(0,T.addClass)([this.element],["e-rbn"].concat(this.cssClass?this.cssClass.split(Qe):[])),this.enableRtl&&this.element.classList.add(Ue),this.element.style.width=(0,T.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(),ii(this.element,this),this.isKeytipOpen=!1,this.wireEvents(),this.wireKeyboardEvent(),this.currentControlIndex=0},s.prototype.wireEvents=function(){T.EventHandler.add(window,"resize",this.resizeHandler,this),T.EventHandler.add(document.body,"keydown",this.keytipActionHandler,this),T.EventHandler.add(document,"mousedown",this.mouseEventHandler,this),T.EventHandler.add(document,"scroll",this.mouseEventHandler,this)},s.prototype.wireKeyboardEvent=function(){this.keyboardModuleRibbon=new T.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},s.prototype.keyActionHandler=function(e){"Tab"!==e.key||e.target.classList.contains("e-tab-wrap")||e.target.classList.contains("e-combobox")||e.preventDefault();var t,o=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+yo),i=Array.prototype.slice.call(o.querySelectorAll(".e-control")),r=Array.prototype.slice.call(o.querySelectorAll(".e-ribbon-template")),n=Array.prototype.slice.call(o.querySelectorAll(".e-ribbon-gallery-item")),s=i.concat(r,n),a=o.querySelectorAll(".e-combobox");if(a)for(var l=0;l<a.length;l++)a[parseInt(l.toString(),10)].closest(".e-input-focus")&&(t=a[parseInt(l.toString(),10)]);if(t)for(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 p=s[this.currentControlIndex].closest(".e-ribbon-item");p&&p.classList.contains("e-disabled");)this.currentControlIndex++,p=s[this.currentControlIndex].closest(".e-ribbon-item");if(e.target.classList.contains("e-control")||e.target.classList.contains("e-ribbon-launcher-icon")||e.target.classList.contains("e-ribbon-collapse-btn")||e.target.classList.contains("e-ribbon-last-item")||e.target.classList.contains("e-ribbon-first-item")||e.target.classList.contains("e-ribbon-group-of-btn")||e.target.classList.contains("e-ribbon-overall-of-btn")||e.target.classList.contains("e-ribbon-template")||e.target.classList.contains("e-ribbon-gallery-item"))switch(e.action){case"rightarrow":this.handleNavigation(e,!this.enableRtl,s);break;case"leftarrow":this.handleNavigation(e,this.enableRtl,s);break;case"tab":e.target.classList.contains("e-combobox")&&this.currentControlIndex<s.length-1&&this.currentControlIndex++;break;case"shiftTab":e.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)}},s.prototype.handleNavigation=function(e,t,o){var i,r;if(t?this.currentControlIndex<o.length-1&&o[this.currentControlIndex+1].classList.contains("e-colorpicker")&&this.currentControlIndex++:this.currentControlIndex>0&&o[this.currentControlIndex-1].classList.contains("e-colorpicker")&&this.currentControlIndex--,!t&&this.currentControlIndex>0||t&&this.currentControlIndex<o.length-1){if(!e.target.classList.contains("e-combobox")&&(e.target.classList.contains("e-control")||e.target.classList.contains("e-ribbon-template")||e.target.classList.contains("e-ribbon-gallery-item"))&&!e.target.classList.contains("e-ribbon-last-item")){if(t)this.currentControlIndex++;else{var n=o[parseInt(this.currentControlIndex.toString(),10)].closest("."+St);n&&(r=n.getAttribute("id")),this.currentControlIndex--}for(var s=o[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");){if((t&&this.currentControlIndex===o.length-1||!t&&0===this.currentControlIndex)&&o[this.currentControlIndex].closest(".e-ribbon-item").classList.contains("e-disabled")){this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus();break}t?this.currentControlIndex++:this.currentControlIndex--,s=o[this.currentControlIndex].closest(".e-ribbon-item")}if(o[parseInt(this.currentControlIndex.toString(),10)].focus(),"Classic"===this.activeLayout)if(i=o[parseInt(this.currentControlIndex.toString(),10)].closest("."+St),t){var a=void 0;if(i&&(a=i.querySelector(".e-ribbon-launcher-icon")),a){var l=i.querySelectorAll(".e-ribbon-item"),p=l[l.length-1].querySelector(".e-control");p&&p.classList.add("e-ribbon-last-item")}}else{if(i)if(r!==i.getAttribute("id"))(a=i.querySelector(".e-ribbon-launcher-icon"))&&o[parseInt((this.currentControlIndex+1).toString(),10)].classList.add("e-ribbon-first-item")}else o[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-first-item")?o[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-first-item"):o[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-last-item")&&o[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 c=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");t&&c&&!c.classList.contains("e-ribbon-hide")?c.focus():this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus()}(e.target.classList.contains("e-ribbon-last-item")&&(t?(i=o[parseInt(this.currentControlIndex.toString(),10)].closest("."+St)).querySelector(".e-ribbon-launcher-icon").focus():(this.currentControlIndex--,o[parseInt(this.currentControlIndex.toString(),10)].focus())),!t&&e.target.classList.contains("e-ribbon-first-item"))&&((a=(i=o[parseInt((this.currentControlIndex-1).toString(),10)].closest("."+St)).querySelector(".e-ribbon-launcher-icon"))&&i.querySelector(".e-ribbon-launcher-icon").focus());if(e.target.classList.contains("e-ribbon-launcher-icon")&&(t?(this.currentControlIndex++,o[parseInt(this.currentControlIndex.toString(),10)].focus(),o[parseInt((this.currentControlIndex-1).toString(),10)].classList.contains("e-ribbon-last-item")&&o[parseInt((this.currentControlIndex-1).toString(),10)].classList.remove("e-ribbon-last-item")):(this.currentControlIndex,o[parseInt(this.currentControlIndex.toString(),10)].focus())),e.target.classList.contains("e-ribbon-collapse-btn"))if(t){this.currentControlIndex=0;for(var u=o[this.currentControlIndex].closest(".e-ribbon-item");u&&u.classList.contains("e-disabled");)this.currentControlIndex++,u=o[this.currentControlIndex].closest(".e-ribbon-item");o[parseInt(this.currentControlIndex.toString(),10)].focus()}else{if((c=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn"))&&!c.classList.contains("e-ribbon-hide"))c.focus();else{this.currentControlIndex=o.length-1;for(u=o[this.currentControlIndex].closest(".e-ribbon-item");u&&u.classList.contains("e-disabled");)this.currentControlIndex--,u=o[this.currentControlIndex].closest(".e-ribbon-item");o[parseInt(this.currentControlIndex.toString(),10)].focus()}}"Simplified"===this.activeLayout&&e.target.classList.contains("e-ribbon-overall-of-btn")&&(t?this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus():(this.currentControlIndex=o.length-1,o[parseInt(this.currentControlIndex.toString(),10)].focus()))},s.prototype.resizeHandler=function(){var e=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+yo);if(this.checkOverflow(this.selectedTab,e),this.scrollModule){var t=this.tabObj.element.querySelector("."+$e);this.scrollModule.scrollStep=t.offsetWidth}if("Simplified"===this.activeLayout){var o=document.querySelectorAll(".e-ribbon .e-dropdown-btn.e-active, .e-ribbon-group-overflow-ddb .e-dropdown-btn.e-active");if(o.length)for(var i=0;i<o.length;i++){(0,T.getInstance)(o[parseInt(i.toString(),10)],H.DropDownButton).toggle()}}var r=document.querySelector(".e-ribbon-gallery-popup.e-popup-open");r&&(0,T.getComponent)(r,Ho.Popup).hide();this.ribbonKeyTipModule&&this.enableKeyTips&&this.ribbonKeyTipModule.removeKeytip()},s.prototype.mouseEventHandler=function(){this.ribbonKeyTipModule&&this.enableKeyTips&&this.ribbonKeyTipModule.removeKeytip()},s.prototype.keytipActionHandler=function(e){if(this.enableKeyTips){var t=!1,o=e.key;if(e.altKey&&"Meta"===e.key){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 r=0;r<i.length;r++){(0,T.getInstance)(i[parseInt(r.toString(),10)],H.DropDownButton).toggle()}this.ribbonKeyTipModule.removeKeytip()}else if(this.isKeytipOpen)this.ribbonKeyTipModule.removeKeytip();else{var n=document.querySelector(".e-ribbon-backstage-popup");n&&n.classList.contains("e-popup-open")&&this.ribbonBackstageModule.hideBackstage(),this.ribbonKeyTipModule.createKeytip("tab")}}else if("Escape"===e.key||"Tab"===e.key||"ArrowLeft"===e.key||"ArrowUp"===e.key||"ArrowRight"===e.key||"ArrowDown"===e.key)this.ribbonKeyTipModule.removeKeytip(e.key);else{var s=document.querySelectorAll(".e-ribbon-keytip");if(s){for(r=0;r<s.length;r++){if(s[parseInt(r.toString(),10)].innerHTML.toLowerCase()===o){t=!0,this.ribbonKeyTipModule.keytipPress(o);break}}t||this.checkKeyTipPresent(o,this.keysPress.length)}}}},s.prototype.checkKeyTipPresent=function(e,t){for(var o=document.querySelectorAll(".e-ribbon-keytip"),i=0;i<o.length;i++){var r=o[parseInt(i.toString(),10)];if(r.innerHTML.length>1&&r.innerHTML[parseInt(t.toString(),10)].toLowerCase()===e){this.keysPress+=e,this.ribbonKeyTipModule.keytipPress(this.keysPress),this.removeKeytip(this.keysPress);break}}},s.prototype.removeKeytip=function(e){for(var t=document.querySelectorAll(".e-ribbon-keytip"),o=0;o<t.length;o++){var i=t[parseInt(o.toString(),10)];i.innerHTML[0].toLowerCase()!==e&&""!==e&&(0,T.remove)(i)}},s.prototype.addKeyTip=function(e,t,o,i){if(this.keyTipElements&&this.keyTipElements[parseInt(e.toString(),10)]){var r=!1;if(this.keyTipElements[parseInt(e.toString(),10)][""+i]||(this.keyTipElements[parseInt(e.toString(),10)][""+i]=[]),Object.keys(this.keyTipElements[parseInt(e.toString(),10)][""+i]).length){for(var n=this.keyTipElements[parseInt(e.toString(),10)][""+i],s=0;s<Object.keys(this.keyTipElements[parseInt(e.toString(),10)][""+i]).length;s++)n[parseInt(s.toString(),10)].id===o&&(r=!0);r||this.keyTipElements[parseInt(e.toString(),10)][""+i].push({id:o,type:i,keyTip:t})}else this.keyTipElements[parseInt(e.toString(),10)][""+i].push({id:o,type:i,keyTip:t})}},s.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 e=this.createElement("div",{id:this.element.id+ao});this.element.appendChild(e),this.validateItemSize();var t=this.createTabItems(this.tabs);this.tabObj=new B.Tab({cssClass:tt,selectedItem:this.selectedTab,overflowMode:"Popup",width:this.width,items:t,enableRtl:this.enableRtl,created:this.tabCreated.bind(this),selected:this.ribbonTabSelected.bind(this),selecting:this.ribbonTabSelecting.bind(this),animation:this.tabAnimation}),this.tabObj.appendTo(e),this.element.style.setProperty(Eo,"0px"),this.element.style.setProperty(Do,"0px");var o=e.querySelector(".e-toolbar");(0,T.getComponent)(o,B.Toolbar).setProperties({width:"calc(100% - var(--fileMenuWidth) - var(--helpTemplateWidth))"}),this.element.classList[this.isMinimized?"add":"remove"](ht)},s.prototype.minimize=function(e){var t=this;if(e!==this.isMinimized){this.trigger(e?"ribbonCollapsing":"ribbonExpanding",{cancel:!1},(function(o){o.cancel||(t.setProperties({isMinimized:e},!0),t.element.classList.toggle(ht,t.isMinimized),t.tabObj.element.querySelector(".e-content").style.display=e?"none":"block",e||t.refreshLayout())}))}},s.prototype.toggleLayout=function(){this.setProperties({activeLayout:"Simplified"===this.activeLayout?"Classic":"Simplified"},!0),this.switchLayout()},s.prototype.tabCreated=function(){this.hideLayoutSwitcher||this.addExpandCollapse(),this.renderInitialTab(this.selectedTab)},s.prototype.ribbonTabSelected=function(e){e.preventFocus=!0,this.isAddRemove=!1;var t=e.selectedItem.getAttribute("data-id"),o=Uo(this.tabs,(function(e){return e.id===t}));o=-1===o?this.selectedTab:o;var i=this.isContextualTab(t);this.updateSelectedState(t);var r={previousIndex:this.selectedTab,selectedIndex:o,isContextual:i};if(this.setProperties({selectedTab:o},!0),this.calculateHiddenElementsWidth(o),this.isUpdateItems){for(var n=0;n<this.itemsModel.length;n++){var s=this.itemsModel[parseInt(n.toString(),10)];this.selectedTab===this.targetTabs[s.id]&&(this.updateItem(s),this.itemsModel.splice(n,1),n--)}0===this.itemsModel.length&&(this.isUpdateItems=!1)}if(this.ribbonGalleryModule&&this.ribbonGalleryModule.checkAvailableHeight(e.selectedContent.firstChild),this.checkOverflow(o,e.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var a=this.overflowDDB.target,l=a.querySelector("."+it);l&&l.classList.remove(it);var p=a.querySelector("#"+t+vo);p?(p.classList.add(it),this.overflowDDB.element.classList.remove(et),this.checkOverflowHiddenItems(!1,o)):this.overflowDDB.element.classList.add(et)}this.trigger("tabSelected",r)},s.prototype.updateSelectedState=function(e){if(this.contextualTabs.length)for(var t=0;t<this.contextualTabs.length;t++){for(var o=!1,i=0;i<this.contextualTabs[parseInt(t.toString(),10)].tabs.length;i++)if(this.contextualTabs[parseInt(t.toString(),10)].tabs[parseInt(i.toString(),10)].id===e){o=!0;break}this.contextualTabs[parseInt(t.toString(),10)].setProperties({isSelected:o},!0)}},s.prototype.checkOverflow=function(e,t){var o=t.closest("."+dt),i=o.offsetWidth<t.offsetWidth;if(i&&!this.scrollModule){if("Classic"===this.activeLayout){var r=!1;!(r=this.checkGroupShrinking(e,o,t,!0))&&o.offsetWidth<t.offsetWidth&&(r=this.checkGroupShrinking(e,o,t,!1)),o.offsetWidth<t.offsetWidth&&this.createOverflowDropdown(e,o,t)}else this.checkSimplifiedItemShrinking(e,o,t),o.offsetWidth<t.offsetWidth&&this.createSimplfiedOverflow(o,t,e);o.offsetWidth<t.offsetWidth&&!this.scrollModule&&(this.scrollModule=new B.HScroll({enableRtl:this.enableRtl},this.tabObj.element.querySelector("."+dt)))}else if(!i)if(this.destroyScroll(),"Classic"===this.activeLayout){r=!1;!(r=this.removeOverflowDropdown(o,t,!1,e))&&o.offsetWidth>t.offsetWidth&&(r=this.checkGroupExpanding(e,o,t,!0)),!r&&o.offsetWidth>t.offsetWidth&&(r=this.checkGroupExpanding(e,o,t,!1))}else this.removeSimplfiedOverflow(o,t,e),o.offsetWidth>t.offsetWidth&&this.checkSimplifiedItemExpanding(e,o,t);this.addTabOverflowKeyTip()},s.prototype.addTabOverflowKeyTip=function(){var e=this.tabObj.element.querySelector("#_nav");e?(this.keyTipElements.taboverflow=[],this.keyTipElements.taboverflow.push({id:e.id,type:"taboverflow",keyTip:"00"})):delete this.keyTipElements.taboverflow},s.prototype.checkSimplifiedItemShrinking=function(e,t,o){for(var n=this.tabs[parseInt(e.toString(),10)],s=n.groups.length-1;s>=0;s--)for(var a=n.groups[parseInt(s.toString(),10)],l=t.querySelector("#"+a.id+go),p=0;p<a.collections.length&&t.offsetWidth<o.offsetWidth;p++)for(var c=a.collections[parseInt(p.toString(),10)],u=c.items.length;u>=1&&t.offsetWidth<o.offsetWidth;u--){var d=c.items[u-1];if(d.allowedSizes&i.Small&&d.allowedSizes&i.Medium&&d.activeSize===i.Medium&&d.displayOptions&r.Simplified){var h=l.querySelector("#"+d.id+go);if(h){var b=h.querySelector("#"+d.id);h.setAttribute("data-medium-width",o.offsetWidth.toString()),d.setProperties({activeSize:i.Small},!0),this.setItemSize(b,d)}}}},s.prototype.checkSimplifiedItemExpanding=function(e,t,o){for(var n=this.tabs[parseInt(e.toString(),10)],s=n.groups.length-1;s>=0;s--)for(var a=n.groups[parseInt(s.toString(),10)],l=t.querySelector("#"+a.id+go),p=0;p<a.collections.length&&t.offsetWidth>o.offsetWidth;p++)for(var c=a.collections[parseInt(p.toString(),10)],u=c.items.length;u>=1&&t.offsetWidth>o.offsetWidth;u--){var d=c.items[u-1];if(d.allowedSizes&i.Small&&d.allowedSizes&i.Medium&&d.activeSize===i.Small&&d.displayOptions&r.Simplified){var h=l.querySelector("#"+d.id+go);if(h){var b=h.getAttribute("data-medium-width"),f=b?parseInt(b,10):null;if(f&&t.offsetWidth>f){h.removeAttribute("data-medium-width");var m=h.querySelector("#"+d.id);d.setProperties({activeSize:i.Medium},!0),this.setItemSize(m,d)}}}}},s.prototype.createSimplfiedOverflow=function(e,t,o){for(var s=this.getGroupResizeOrder(!0,o),a=0;a<s.length&&e.offsetWidth<t.offsetWidth;a++){for(var l=!1,p=s[parseInt(a.toString(),10)],c=e.querySelector("#"+p.id),u=c.querySelector("#"+p.id+go),d=p.collections.length;d>=1&&e.offsetWidth<t.offsetWidth;d--)for(var h=p.collections[parseInt((d-1).toString(),10)],b=c.querySelector("#"+h.id),f=h.items.length;f>=1&&e.offsetWidth<t.offsetWidth;f--){var m=h.items[f-1],y=b.querySelector("#"+m.id+go);if((m.displayOptions===r.Auto||m.displayOptions===(r.Simplified|r.Overflow))&&!(0,T.isNullOrUndefined)(y)){var g=!1,v=!1,S=!1,I=!1,C=void 0;if(c.classList.contains("e-hidden")||c.classList.contains("e-hide-group")){if((C=c.querySelectorAll(".e-ribbon-item.e-hidden")).length)for(var w=0;w<C.length;w++)C[parseInt(w.toString(),10)].classList.remove("e-hidden");c.classList.contains("e-hide-group")?(S=!0,c.classList.remove("e-hide-group"),c.classList.remove("e-ribbon-emptyCollection"),-1!==this.hiddenGroups.indexOf(c.id)&&this.hiddenGroups.splice(this.hiddenGroups.indexOf(c.id),1)):(g=!0,c.classList.remove("e-hidden")),l||(this.calculateOverflowItemsWidth(c.offsetWidth,!1,o),this.calculateMediumDataWidth(c.offsetWidth,o,!1),l=!0)}else y.classList.contains("e-hidden")&&(v=!0,y.classList.remove("e-hidden"),c.classList.contains("e-ribbon-emptyCollection")&&(I=!0,c.classList.remove("e-ribbon-emptyCollection")),this.calculateOverflowItemsWidth(y.offsetWidth,!1,o),this.calculateMediumDataWidth(y.offsetWidth,o,!1));if(y.setAttribute("data-simplified-width",t.offsetWidth.toString()),v&&y.classList.add("e-hidden"),C&&C.length)for(var O=0;O<C.length;O++)C[parseInt(O.toString(),10)].classList.add("e-hidden");if(g&&c.classList.add("e-hidden"),S&&(c.classList.add("e-hide-group"),c.classList.add("e-ribbon-emptyCollection")),I&&c.classList.add("e-ribbon-emptyCollection"),this.createOverflowPopup(m,o,p.enableGroupOverflow,p.id,p.header,y,u,!0),m.activeSize===i.Small){var k=y.querySelector("#"+m.id);m.setProperties({activeSize:i.Medium},!0),this.setItemSize(k,m)}m.type!==n.DropDown&&m.type!==n.SplitButton&&m.type!==n.GroupButton&&m.type!==n.Gallery||this.updatePopupItems(m,y,p.enableGroupOverflow,!0)}}p.enableGroupOverflow||c.querySelector("."+xt)||c.classList.add("e-ribbon-emptyCollection");var B=c.querySelectorAll("."+xt);B&&!p.enableGroupOverflow&&this.checkEmptyCollection(B)&&c.classList.add("e-ribbon-emptyCollection"),this.checkOverflowHiddenItems(p.enableGroupOverflow,o,p.id)}},s.prototype.checkEmptyCollection=function(e){for(var t=!0,o=0;o<e.length;o++)if(!e[parseInt(o.toString(),10)].classList.contains("e-hidden")){t=!1;break}return t},s.prototype.updatePopupItems=function(e,t,o,i){var r=this,s=(0,T.getComponent)(t.querySelector("#"+e.id),e.type===n.DropDown||e.type===n.Gallery||e.type===n.GroupButton?H.DropDownButton:H.SplitButton),a=s.dropDown,l=(o&&i)===this.enableRtl;a&&(a.setProperties({position:{X:l?"left":"right",Y:i?"top":"bottom"}},!0),i?s.beforeOpen=function(){l&&(e.type===n.Gallery&&r.ribbonGalleryModule&&r.ribbonGalleryModule.checkCollision(a,a.element),a.element.style.setProperty("visibility","hidden"),a.element.style.setProperty("display","block"),a.setProperties({offsetX:-1*a.element.offsetWidth}),a.element.style.removeProperty("display"),a.element.style.removeProperty("visibility"))}:(a.setProperties({offsetX:0},!0),s.beforeOpen=null))},s.prototype.removeSimplfiedOverflow=function(e,t,o,s){void 0===s&&(s=!1);for(var a=this.getGroupResizeOrder(!1,o),l=!0,p=0;p<a.length&&l;p++){var c=a[parseInt(p.toString(),10)],u=void 0,d=void 0;if(c.enableGroupOverflow){var h=e.querySelector("#"+c.id+bo);h&&(d=(u=(0,T.getInstance)(h,H.DropDownButton)).target)}else u=this.overflowDDB,d=this.overflowDDB?this.overflowDDB.target:null;for(var b=0;b<c.collections.length&&l;b++)for(var f=c.collections[parseInt(b.toString(),10)],m=0;m<f.items.length&&l&&!s&&e.offsetWidth>t.offsetWidth;m++){var y=f.items[parseInt(m.toString(),10)],g=void 0;if(d&&(g=d.querySelector("#"+y.id+go)),(y.displayOptions===r.Auto||y.displayOptions===(r.Simplified|r.Overflow))&&!(0,T.isNullOrUndefined)(g)){var v=parseInt(g.getAttribute("data-simplified-width"),10),S=e.querySelector("#"+c.id);if((g.classList.contains("e-hidden")||S.classList.contains("e-hidden"))&&(v=Math.abs(v-t.offsetWidth)),!s&&e.offsetWidth<v){l=!1;break}var I=e.querySelector("#"+f.id);if(y.type!==n.DropDown&&y.type!==n.SplitButton&&y.type!==n.GroupButton&&y.type!==n.Gallery||this.updatePopupItems(y,g,c.enableGroupOverflow,!1),I.append(g),g.classList.contains("e-hidden")||S.classList.contains("e-hidden")){g.setAttribute("data-simplified-width",v.toString());var C=!1,w=0;g.classList.contains("e-hidden")&&(g.classList.remove("e-hidden"),S.classList.contains("e-hide-group")&&(C=!0,w=this.checkWidthDifference(g,S)),v=g.offsetWidth+w,g.classList.add("e-hidden")),this.calculateOverflowItemsWidth(v,!0,o),this.calculateMediumDataWidth(v,o,!0),C&&(S.classList.add("e-hide-group"),S.classList.add("e-ribbon-emptyCollection"))}this.removeOverflowEvent(y,g),y.allowedSizes&i.Small&&(y.setProperties({activeSize:i.Small},!0),this.setItemSize(g.querySelector("#"+y.id),y));var O=e.querySelector("#"+c.id),k=O.querySelector("."+xt);if(O.classList.contains("e-ribbon-emptyCollection")&&null!==k){var B=O.querySelectorAll("."+xt);B&&(this.checkEmptyCollection(B)||O.classList.remove("e-ribbon-emptyCollection"))}}}if(u)if(c.enableGroupOverflow)(0===d.childElementCount||1===d.childElementCount&&this.isHeaderVisible(d,c.id))&&this.removeOverflowButton(u);else{var P=d.querySelector("#"+c.id+go);P&&1===P.childElementCount&&P.remove();var L=d.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+vo);L&&0===L.childElementCount&&(L.remove(),this.overflowDDB.element.classList.add(et))}}for(p=0;p<a.length;p++)this.checkOverflowHiddenItems(a[parseInt(p.toString(),10)].enableGroupOverflow,o,a[parseInt(p.toString(),10)].id);this.overflowDDB&&(0===this.overflowDDB.target.childElementCount&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null))},s.prototype.checkOverflowHiddenItems=function(e,t,o){if(e){var i=document.querySelector("#"+o+bo);if(i){for(var r=(0,T.getInstance)(i,H.DropDownButton),n=r.target.querySelectorAll(".e-ribbon-item"),s=!0,a=0;a<n.length;a++)if(!n[parseInt(a.toString(),10)].classList.contains("e-hidden")){s=!1;break}r.element.classList[s?"add":"remove"]("e-hidden")}}else if(this.overflowDDB){var l=!0,p=void 0,c=this.overflowDDB.target.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+vo);if(c){for(var u=0;u<c.children.length;u++){p=!0;for(var d=c.children[parseInt(u.toString(),10)],h=d.querySelectorAll(".e-ribbon-item"),b=0;b<h.length;b++)if(!h[parseInt(b.toString(),10)].classList.contains("e-hidden")){p=!1;break}d.classList[p?"add":"remove"]("e-hide-group"),d.classList.contains("e-hide-group")||d.classList.contains("e-hidden")||(l=!1)}this.overflowDDB.element.classList[l?"add":"remove"](et)}}},s.prototype.createOverflowPopup=function(e,t,o,i,r,n,s,a){var l,p,c=Zo(this.tabs,i),u=this.tabObj.items[parseInt(t.toString(),10)].content.querySelector("#"+i);if(o){var d=s.querySelector("#"+i+bo);d?l=(0,T.getInstance)(d,H.DropDownButton):((l=this.addOverflowButton(i+bo,o)).element.classList.add(pt),s.appendChild(l.element)),this.addKeyTip(t,"0"+(c.groupIndex+1),l.element.id,"grpofbtn"),p=l.target;var h=l.target;if(!h.querySelector("#"+i+bo+fo)&&c.group.overflowHeader){var b=this.createElement("div",{className:kt,id:i+bo+fo,innerHTML:c.group.overflowHeader});h.append(b)}u&&(u.classList.contains("e-disabled")&&h.classList.add("e-disabled"),u.classList.contains("e-hidden")&&h.classList.add("e-hidden"),u.classList.contains("e-hide-group")&&h.classList.add("e-hide-group")),a?h.insertBefore(n,h.querySelector("."+xt)):h.append(n)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(et);var f=this.overflowDDB.target,m=f.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+vo);if(m){var y=f.querySelector("#"+i+go);y||(y=c.group.overflowHeader?this.createGroupContainer(i,c.group.overflowHeader):this.createGroupContainer(i,r),u&&(u.classList.contains("e-disabled")&&y.classList.add("e-disabled"),u.classList.contains("e-hidden")&&y.classList.add("e-hidden"),u.classList.contains("e-hide-group")&&y.classList.add("e-hide-group")),m.append(y)),a?y.insertBefore(n,y.querySelector("."+xt)):y.append(n)}else this.createOfTabContainer(i,r,n,t)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+ho,o),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(lt),this.createOfTabContainer(i,r,n,t);l=this.overflowDDB,p=this.overflowDDB?this.overflowDDB.target:null}null!==n&&this.addOverflowEvents(e,n,l),p&&e.keyTip&&this.addKeyTip(t,e.keyTip,e.id,"popupitem")},s.prototype.addOverflowEvents=function(e,t,o){switch(e.type){case"Button":this.ribbonButtonModule.addOverFlowEvents(e,t,o);break;case"DropDown":this.ribbonDropDownModule.addOverFlowEvents(e,t,o);break;case"SplitButton":this.ribbonSplitButtonModule.addOverFlowEvents(e,t,o);break;case"CheckBox":this.ribbonCheckBoxModule.addOverFlowEvents(e,t,o);break;case"ColorPicker":this.ribbonColorPickerModule.addOverFlowEvents(e,t,o);break;case"ComboBox":this.ribbonComboBoxModule.addOverFlowEvents(e,t,o);break;case"Gallery":"Simplified"===this.activeLayout&&this.ribbonGalleryModule.addOverFlowEvents(e,t);break;case"GroupButton":if("Simplified"===this.activeLayout){this.ribbonGroupButtonModule.addOverFlowEvents(e,t,o);break}}},s.prototype.createOfTabContainer=function(e,t,o,i){var r=this.createElement("div",{id:this.tabs[parseInt(i.toString(),10)].id+vo,className:It});this.overflowDDB.target.append(r);var n=Zo(this.tabs,e),s=n.group.overflowHeader?this.createGroupContainer(e,n.group.overflowHeader):this.createGroupContainer(e,t);s.append(o),r.append(s),i===this.selectedTab&&r.classList.add(it);var a=document.querySelector("#"+e);a&&(a.classList.contains("e-disabled")&&s.classList.add("e-disabled"),a.classList.contains("e-hidden")&&s.classList.add("e-hidden"),a.classList.contains("e-hide-group")&&s.classList.add("e-hide-group"))},s.prototype.checkGroupShrinking=function(e,t,o,i){for(var r=!0,n=!1,s=this.tabs[parseInt(e.toString(),10)],a=s.groups.length-1;r&&a>=0;a--)r=!(n=i?this.checkLargeToMedium(e,s,a,t,o):this.checkMediumToSmall(e,s,a,t,o))&&t.offsetWidth<o.offsetWidth;return n},s.prototype.checkValidCollectionLength=function(e){for(var t=0,o=0;o<e.length;o++){for(var i=e[parseInt(o.toString(),10)].items,n=0;n<i.length;n++)if(i[parseInt(n.toString(),10)].displayOptions&r.Classic){t++;break}if(t>1)return!1}return 1===t},s.prototype.checkClassicCollection=function(e,t,o){for(var i=e[parseInt(t.toString(),10)].items,n=0;n<i.length;n++)if(i[parseInt(n.toString(),10)].displayOptions&r.Classic)return t;return t=o?t+1:t-1,o?t===e.length?t:this.checkClassicCollection(e,t,o):t<0?t:this.checkClassicCollection(e,t,o)},s.prototype.checkClassicItem=function(e,t,o){return e[parseInt(t.toString(),10)].displayOptions&r.Classic?t:(t=o?t+1:t-1,o?t===e.length?t:this.checkClassicItem(e,t,o):t<0?t:this.checkClassicItem(e,t,o))},s.prototype.checkLargeToMedium=function(e,t,s,a,l,p){var c=this;void 0===p&&(p=!1);var u=t.groups[parseInt(s.toString(),10)];if(u.isCollapsed&&!p)return!1;var d=function(e){return 1===e.items.length&&h(e.items[0])},h=function(e){return e.allowedSizes&i.Medium&&e.activeSize===i.Large},b=function(e,t,o,i){var r=c.createElement("div",{className:"e-ribbon-shrink"+Qe+_t,id:e+"_shrink_container"+o,attrs:{"data-start":o.toString(),"data-end":i.toString()}});return t.parentElement.insertBefore(r,t),p||r.setAttribute("data-large-width",l.offsetWidth.toString()),r},f=function(t,o){for(var a=c.tabs[parseInt(e.toString(),10)].groups[parseInt(s.toString(),10)].collections[0],u=l.querySelector("#"+a.items[parseInt(t.toString(),10)].id+go),d=p?l.querySelector("#"+a.id+"_shrink_container"+t):b(a.id,u,t,o),h=t;h<=o;h++){var f=a.items[parseInt(h.toString(),10)];if(f.displayOptions&r.Classic){var m=l.querySelector("#"+f.id+go);d.appendChild(m),f.setProperties({activeSize:i.Medium},!0),f.type===n.GroupButton&&"Classic"===c.activeLayout?c.setItemSize(m.querySelector("#"+f.id+Po),f):c.setItemSize(m.querySelector("#"+f.id),f)}}},m=function(t,o){for(var r=c.tabs[parseInt(e.toString(),10)].groups[parseInt(s.toString(),10)],a=l.querySelector("#"+r.collections[parseInt(t.toString(),10)].id),u=p?l.querySelector("#"+r.id+"_shrink_container"+t):b(r.id,a,t,o),d=t;d<=o;d++){var h=r.collections[parseInt(d.toString(),10)],f=l.querySelector("#"+h.id);u.appendChild(f),h.items[0].setProperties({activeSize:i.Medium},!0),h.items[0].type===n.GroupButton&&"Classic"===c.activeLayout?c.setItemSize(f.querySelector("#"+h.items[0].id+Po),h.items[0]):c.setItemSize(f.querySelector("#"+h.items[0].id),h.items[0])}};if(u.orientation===o.Column)for(var y=u.collections.length-1;y>0;y--){if((v=(y=this.checkClassicCollection(u.collections,y,!1))-1)>=0&&d(u.collections[parseInt(y.toString(),10)]))if((v=this.checkClassicCollection(u.collections,v,!1))>=0&&d(u.collections[parseInt(v.toString(),10)])){if((S=v-1)>=0&&(S=this.checkClassicCollection(u.collections,S,!1)),S>=0&&d(u.collections[parseInt(S.toString(),10)])?m(S,y):m(v,y),y=S,!p&&a.offsetWidth>l.offsetWidth)return!0}else y=v}else if(this.checkValidCollectionLength(u.collections)){var g=u.collections[0];for(y=g.items.length-1;y>0;y--){var v,S;if((v=(y=this.checkClassicItem(g.items,y,!1))-1)>=0&&h(g.items[parseInt(y.toString(),10)]))if((v=this.checkClassicItem(g.items,v,!1))>=0&&h(g.items[parseInt(v.toString(),10)])){if((S=v-1)>=0&&(S=this.checkClassicItem(g.items,S,!1)),S>=0&&h(g.items[parseInt(S.toString(),10)])?f(S,y):f(v,y),y=S,!p&&a.offsetWidth>l.offsetWidth)return!0}else y=v}}return!1},s.prototype.checkMediumToSmall=function(e,t,s,a,l,p){var c=this;void 0===p&&(p=!1);var u=t.groups[parseInt(s.toString(),10)];if(u.isCollapsed&&!p)return!1;var d=u.orientation,h=l.querySelector("#"+u.id).querySelectorAll(".e-ribbon-shrink"),b=function(e){return e.allowedSizes&i.Small&&e.activeSize===i.Medium},f=function(t,o,a,p){void 0===p&&(p=null);var u=c.tabs[parseInt(e.toString(),10)].groups[parseInt(s.toString(),10)].collections[parseInt(t.toString(),10)],d=function(e){var t=u.items[parseInt(e.toString(),10)];if(t.displayOptions&r.Classic){var o=l.querySelector("#"+t.id);t.setProperties({activeSize:i.Small},!0),t.type===n.GroupButton&&(o=l.querySelector("#"+t.id+"_grpbtn")),c.setItemSize(o,t)}};d(o),p&&d(p),d(a)},m=function(t,o,a,u){void 0===u&&(u=null);var d=c.tabs[parseInt(e.toString(),10)].groups[parseInt(s.toString(),10)];p||h[parseInt(t.toString(),10)].setAttribute("data-medium-width",l.offsetWidth.toString());var b=function(e){var t=d.collections[parseInt(e.toString(),10)];if(t.items[0].displayOptions&r.Classic){var o=l.querySelector("#"+t.items[0].id);t.items[0].setProperties({activeSize:i.Small},!0),t.items[0].type===n.GroupButton&&(o=l.querySelector("#"+t.items[0].id+Po)),c.setItemSize(o,t.items[0])}};b(o),u&&b(u),b(a)},y=function(e){p||l.querySelector("#"+e).setAttribute("data-medium-width",l.offsetWidth.toString())};if(d===o.Column){if(h.length>0)for(var g=h.length-1;g>=0;g--){var v=parseInt(h[parseInt(g.toString(),10)].getAttribute("data-start"),10),S=parseInt(h[parseInt(g.toString(),10)].getAttribute("data-end"),10),I=this.checkClassicCollection(u.collections,v+1,!1);if(b(u.collections[parseInt(v.toString(),10)].items[0])&&b(u.collections[parseInt(I.toString(),10)].items[0])&&(S===I?m(g,v,S):b(u.collections[parseInt(S.toString(),10)].items[0])&&m(g,v,S,I),!p&&a.offsetWidth>l.offsetWidth))return!0}for(g=u.collections.length-1;g>=0;g--){for(var C=u.collections[parseInt(g.toString(),10)],w=[],O=0;O<C.items.length;O++)C.items[parseInt(O.toString(),10)].displayOptions&r.Classic&&w.push(O);if(w.length>1&&b(C.items[w[0]])&&b(C.items[w[1]])&&(2===w.length?(y(C.id),f(g,w[0],w[1])):b(C.items[w[2]])&&(y(C.id),f(g,w[0],w[2],w[1])),!p&&a.offsetWidth>l.offsetWidth))return!0}}else if(this.checkValidCollectionLength(u.collections)){if(h.length>0)for(g=h.length-1;g>=0;g--){var k=h[parseInt(g.toString(),10)];v=parseInt(k.getAttribute("data-start"),10),S=parseInt(k.getAttribute("data-end"),10),C=u.collections[0],I=this.checkClassicItem(C.items,v+1,!1);if(b(u.collections[0].items[parseInt(v.toString(),10)])&&b(u.collections[0].items[parseInt(I.toString(),10)])&&(S===I?(y(k.id),f(0,v,S)):b(u.collections[0].items[parseInt(S.toString(),10)])&&(y(k.id),f(0,v,S,I)),!p&&a.offsetWidth>l.offsetWidth))return!0}}else for(g=u.collections.length-1;g>=0;g--)for(I=(C=u.collections[parseInt(g.toString(),10)]).items.length-1;I>=0;I--)if(!((I=this.checkClassicItem(C.items,I,!1))<0)){var T=C.items[parseInt(I.toString(),10)];if(b(T)&&(T.type!==n.GroupButton?y(T.id):y(T.id+Po),f(g,I,I),!p&&a.offsetWidth>l.offsetWidth))return!0}return!1},s.prototype.checkGroupExpanding=function(e,t,o,i){for(var r=!1,n=this.tabs[parseInt(e.toString(),10)],s=0;!r&&s<n.groups.length;s++)r=i?this.checkSmallToMedium(e,n,s,t,o,!1,!0):this.checkMediumToLarge(e,n,s,t,o,!1,!0);return r},s.prototype.checkSmallToMedium=function(e,t,s,a,l,p,c){var u=this,d=t.groups[parseInt(s.toString(),10)],h=d.orientation,b=l.querySelector("#"+d.id).querySelectorAll(".e-ribbon-shrink"),f=function(e){return e.allowedSizes&i.Medium&&e.activeSize===i.Small},m=function(t,o,a){var l=u.tabs[parseInt(e.toString(),10)].groups[parseInt(s.toString(),10)].collections[parseInt(t.toString(),10)].items[parseInt(o.toString(),10)];if(l.displayOptions&r.Classic){var p=a.id===l.id?a:a.querySelector("#"+l.id);l.setProperties({activeSize:i.Medium},!0),l.type===n.GroupButton&&(p=document.querySelector("#"+l.id+Po)),u.setItemSize(p,l)}},y=function(t){var o=u.tabs[parseInt(e.toString(),10)].groups[parseInt(s.toString(),10)].collections,a=o[parseInt(t.toString(),10)].items[0];if(a.displayOptions&r.Classic){var p=l.querySelector("#"+o[parseInt(t.toString(),10)].items[0].id);o[parseInt(t.toString(),10)].items[0].setProperties({activeSize:i.Medium},!0),a.type===n.GroupButton&&(p=l.querySelector("#"+o[parseInt(t.toString(),10)].items[0].id+Po)),u.setItemSize(p,o[parseInt(t.toString(),10)].items[0])}};if(h===o.Row){if(!this.checkValidCollectionLength(d.collections))for(var g=0;g<d.collections.length;g++)for(var v=d.collections[parseInt(g.toString(),10)],S=0;S<v.items.length;S++)if((S=this.checkClassicItem(v.items,S,!0))!==v.items.length){var I=v.items[parseInt(S.toString(),10)];if(f(I)){var C=l.querySelector("#"+I.id);if("GroupButton"===I.type&&(C=l.querySelector("#"+I.id+Po)),(w=(T=C.getAttribute("data-medium-width"))?parseInt(T,10):null)&&(p||a.offsetWidth>w))m(g,S,C),p&&!c||C.removeAttribute("data-medium-width");else if(w)return!0}}}else for(g=0;g<d.collections.length;g++)if(d.collections[parseInt(g.toString(),10)].items.length>1){v=d.collections[parseInt(g.toString(),10)];for(var w=(T=(C=l.querySelector("#"+v.id)).getAttribute("data-medium-width"))?parseInt(T,10):null,O=[],k=0;k<v.items.length;k++)v.items[parseInt(k.toString(),10)].displayOptions&r.Classic&&O.push(k);if(O.length>1&&w&&(p||a.offsetWidth>w))m(g,O[0],C),m(g,O[1],C),3===O.length&&m(g,O[2],C),p&&!c||C.removeAttribute("data-medium-width");else if(w)return!0}if(b.length>0)for(g=0;g<b.length;g++){var T,B=b[parseInt(g.toString(),10)];if((w=(T=B.getAttribute("data-medium-width"))?parseInt(T,10):null)&&(p||a.offsetWidth>w)){var P=parseInt(B.getAttribute("data-start"),10),L=parseInt(B.getAttribute("data-end"),10);if(h===o.Row){v=d.collections[0],S=this.checkClassicItem(v.items,P+1,!0);m(0,P,B),m(0,S,B),S!==L&&m(0,L,B)}else{var E=this.checkClassicCollection(d.collections,P+1,!0);y(P),y(E),E!==L&&y(L)}p&&!c||B.removeAttribute("data-medium-width")}else if(w)return!0}return!1},s.prototype.checkMediumToLarge=function(e,t,s,a,l,p,c){var u=this,d=t.groups[parseInt(s.toString(),10)],h=d.orientation,b=l.querySelector("#"+d.id).querySelectorAll(".e-ribbon-shrink");if(0===b.length)return!1;for(var f=function(t,o,a,l){var d=u.tabs[parseInt(e.toString(),10)].groups[parseInt(s.toString(),10)].collections[0].items,h=function(e){var t=d[parseInt(e.toString(),10)];if(t.displayOptions&r.Classic){var o=a.querySelector("#"+t.id+go),s=o.querySelector("#"+t.id);t.setProperties({activeSize:i.Large},!0),t.type===n.GroupButton&&(s=o.querySelector("#"+t.id+Po)),u.setItemSize(s,t),a.insertAdjacentElement("beforebegin",o)}};h(t),l&&h(l),h(o),p&&!c||(0,T.remove)(a)},m=function(t,o,a,l){var d=u.tabs[parseInt(e.toString(),10)].groups[parseInt(s.toString(),10)].collections,h=function(e){var t=d[parseInt(e.toString(),10)];if(t.items[0].displayOptions&r.Classic){var o=a.querySelector("#"+t.id),s=o.querySelector("#"+t.items[0].id);t.items[0].setProperties({activeSize:i.Large},!0),t.items[0].type===n.GroupButton&&(s=o.querySelector("#"+t.items[0].id+Po)),u.setItemSize(s,t.items[0]),a.insertAdjacentElement("beforebegin",o)}};h(t),l&&h(l),h(o),p&&!c||(0,T.remove)(a)},y=0;y<b.length;y++){var g=b[parseInt(y.toString(),10)],v=g.getAttribute("data-large-width"),S=v?parseInt(v,10):null;if(S&&(p||a.offsetWidth>S)){var I=parseInt(g.getAttribute("data-start"),10),C=parseInt(g.getAttribute("data-end"),10);if(h===o.Row){var w=d.collections[0],O=this.checkClassicItem(w.items,I+1,!0);O===C?f(I,C,g):f(I,C,g,O)}else{var k=this.checkClassicCollection(d.collections,I+1,!0);k===C?m(I,C,g):m(I,C,g,k)}p&&!c||g.removeAttribute("data-large-width")}else if(S)return!0}return!1},s.prototype.handleContentSize=function(e,t){var o=e.closest("."+wt);t?o.classList.add(jt):o.classList.remove(jt)},s.prototype.setItemSize=function(e,t){if(e){var o=e.closest("."+xt);t.type===n.Button?this.ribbonButtonModule.updateButtonSize(e,t):t.type===n.DropDown?this.ribbonDropDownModule.updateDropDownSize(e,t):t.type===n.SplitButton?this.ribbonSplitButtonModule.updateSplitButtonSize(e,t):t.type===n.Template?((0,T.remove)(e),this.createTemplateContent(t,o)):t.type===n.GroupButton&&this.ribbonGroupButtonModule.updateGroupButtonSize(e,t),o.classList.remove(jt,qt,Rt,At),t.activeSize===i.Large?o.classList.add(qt,jt):o.classList.add(t.activeSize===i.Medium?Rt:At)}},s.prototype.createOverflowDropdown=function(e,t,o){var i=this.getGroupResizeOrder(!0,e);if(0!==i.length)for(var r=function(r){var a=i[parseInt(r.toString(),10)],l=s.tabObj.element.querySelector("#"+a.id);l.setAttribute("data-expanded-width",o.offsetWidth.toString());var p=l.querySelector("#"+a.id+go),c=s.createElement("div",{className:Tt+Qe+qt,id:a.id+vo+go});l.insertBefore(c,p);var u=Uo(s.tabs[parseInt(e.toString(),10)].groups,(function(e){return e.id===a.id})),d=s.tabs[parseInt(e.toString(),10)];s.checkSmallToMedium(e,d,u,t,o,!0,!1),s.checkMediumToLarge(e,d,u,t,o,!0,!1);var h=s.ribbonDropDownModule.createOverFlowDropDown(a.id,a.header,a.groupIconCss,p,c,s.enableRtl);if(a.keyTip){var b=a.id+vo+So;s.addKeyTip(e,a.keyTip,b,"grpoverflow")}s.tabs[parseInt(e.toString(),10)].groups[parseInt(u.toString(),10)].setProperties({isCollapsed:!0},!0);for(var f=0;f<a.collections.length;f++)for(var m=a.collections[parseInt(f.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+go);null!==S&&(s.handleContentSize(S),s.addOverflowEvents(v,S,h));b=document.querySelector("#"+a.id+vo+So);var I=(0,T.getInstance)(b,H.DropDownButton);if(I)if(I.target&&s.keyTipElements[parseInt(e.toString(),10)]){if(v.type===n.GroupButton)for(var C=0;C<v.groupButtonSettings.items.length;C++)v.groupButtonSettings.items[parseInt(C.toString(),10)].keyTip&&s.addKeyTip(e,v.groupButtonSettings.items[parseInt(C.toString(),10)].keyTip,v.id+(Po+C),"grpoverflowpopup");v.keyTip&&s.addKeyTip(e,v.keyTip,v.id,"grpoverflowpopup")}}},s=this,a=0;a<i.length&&t.offsetWidth<o.offsetWidth;a++)r(a)},s.prototype.removeOverflowDropdown=function(e,t,o,i){void 0===o&&(o=!1);var r=this.getGroupResizeOrder(!1,i);if(0===r.length)return!1;for(var n=function(n){var a=r[parseInt(n.toString(),10)],l=s.tabObj.element.querySelector("#"+a.id);if(!l)return"break";var p=parseInt(l.getAttribute("data-expanded-width"),10);if(!o&&e.offsetWidth<p)return{value:!0};s.removeDropdown(a.id);var c=Uo(s.tabs[parseInt(i.toString(),10)].groups,(function(e){return e.id===a.id}));s.tabs[parseInt(i.toString(),10)].groups[parseInt(c.toString(),10)].setProperties({isCollapsed:!1},!0);var u=s.tabs[parseInt(i.toString(),10)];s.checkLargeToMedium(i,u,c,e,t,!0),s.checkMediumToSmall(i,u,c,e,t,!0);for(var d=0;d<a.collections.length;d++)for(var h=a.collections[parseInt(d.toString(),10)],b=l.querySelector("#"+h.id),f=0;f<h.items.length;f++){var m=h.items[parseInt(f.toString(),10)],y=b.querySelector("#"+m.id+go);null!==y&&(s.handleContentSize(y,!0),s.removeOverflowEvent(m,y))}},s=this,a=0;a<r.length;a++){var l=n(a);if("object"==typeof l)return l.value;if("break"===l)break}return!1},s.prototype.removeDropdown=function(e){var t=this.tabObj.element.querySelector("#"+e+vo+So);if(t){var o=t.parentElement;this.ribbonDropDownModule.removeOverFlowDropDown(t),(0,T.remove)(o)}},s.prototype.getGroupResizeOrder=function(e,t){var o=this,i=this.tabs[parseInt(t.toString(),10)].groups;return(i=i.filter((function(t){return"Classic"!==o.activeLayout||((0,T.isUndefined)(t.isCollapsible)||t.isCollapsible)&&(e&&(0,T.isUndefined)(t.isCollapsed)||!(0,T.isUndefined)(t.isCollapsed)&&e!==t.isCollapsed)}))).sort((function(e,t){return e.priority-t.priority})),e?i.reverse():i},s.prototype.destroyScroll=function(){this.scrollModule&&(this.scrollModule.destroy(),this.scrollModule=null)},s.prototype.clearOverflowDropDown=function(e){var t=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+yo);if(t){var o=t.closest("."+dt);"Simplified"===this.activeLayout?this.removeSimplfiedOverflow(t,o,e,!0):this.removeOverflowDropdown(t,o,!0,e)}},s.prototype.isContextualTab=function(e){var t=!1;if(this.contextualTabs.length)for(var o=0;o<this.contextualTabs.length;o++)for(var i=0;i<this.contextualTabs[parseInt(o.toString(),10)].tabs.length;i++)if(this.contextualTabs[parseInt(o.toString(),10)].tabs[parseInt(i.toString(),10)].id===e){t=!0;break}return t},s.prototype.ribbonTabSelecting=function(e){var t=this;this.currentControlIndex=0;var o=e.selectingItem.getAttribute("data-id"),i=e.previousItem.getAttribute("data-id"),r=Uo(this.tabs,(function(e){return e.id===o})),n=this.isContextualTab(o),s=Uo(this.tabs,(function(e){return e.id===i}));r=-1===r?this.selectedTab:r;var a={cancel:e.cancel,isInteracted:e.isInteracted,previousIndex:s,selectedIndex:r,isContextual:n};this.trigger("tabSelecting",a,(function(e){if(!e.cancel){t.destroyScroll(),t.isAddRemove||-1===s||t.clearOverflowDropDown(s);var o=t.tabObj.items[parseInt(r.toString(),10)].content;if(!o.querySelector("."+bt)&&0!==t.tabs[parseInt(r.toString(),10)].groups.length){var i=t.createGroups(t.tabs[parseInt(r.toString(),10)].groups,r);(0,T.append)(i,o)}}}))},s.prototype.createTabItems=function(e){for(var t=this,o=[],i=function(i){var n=e[parseInt(i.toString(),10)],s=r.createElement("span",{innerHTML:n.header,id:n.id+fo}),a=Uo(r.tabs,(function(e){return e.id===n.id}));n.keyTip&&(r.keyTipElements[parseInt(a.toString(),10)]||(r.keyTipElements[parseInt(a.toString(),10)]={}),r.addKeyTip(a,n.keyTip,n.id,"tab")),s.onclick=function(){t.minimize(!1)},s.ondblclick=function(){t.minimize(!0)};var l={header:{text:s},id:n.id,cssClass:n.cssClass},p=r.createElement("div",{className:l.cssClass,id:n.id+yo});p.classList.add(rt),l.content=p,o.push(l)},r=this,n=0;n<e.length;n++)i(n);return o},s.prototype.renderInitialTab=function(e){var t=this.createGroups(this.tabs[parseInt(e.toString(),10)].groups,e),o=this.tabObj.items[parseInt(e.toString(),10)].content;(0,T.append)(t,o),"Simplified"===this.activeLayout&&this.element.classList.add(Zt);var i=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+yo);this.ribbonGalleryModule&&this.ribbonGalleryModule.checkAvailableHeight(i),this.checkOverflow(this.selectedTab,i)},s.prototype.addOverflowButton=function(e,t){var o,i=this,r=this.createElement("button",{id:e}),n=this.createElement("div",{className:ct,attrs:{tabindex:"0"}}),s=new H.DropDownButton({iconCss:ze,cssClass:Nt+Qe+Bt,target:n,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeOpen:function(e){var t={element:e.element,event:e.event,cancel:e.cancel};i.trigger("overflowPopupOpen",t,(function(t){t.cancel&&(e.cancel=!0)}))},beforeClose:function(e){var t=e.event?(0,T.closest)(e.event.target,"."+Ye):null,o=e.event?(0,T.closest)(e.event.target,".e-ribbon-group-button-overflow-popup"):null,r={element:e.element,event:e.event,cancel:e.cancel};i.trigger("overflowPopupClose",r,(function(i){(t||i.cancel||o)&&(e.cancel=!0)}))}},r);return this.element.classList.add(ut),ii(n,this),t||(this.keyTipElements.overflowbtn=[],this.keyTipElements.overflowbtn.push({id:e,type:"overflowbtn",keyTip:"00"})),r.onkeydown=r.onclick=function(){i.itemIndex=-1,o=!r.classList.contains("e-ribbon-overall-of-btn")},n.onkeydown=function(e){return i.upDownKeyHandler(e,n,o),i},s},s.prototype.upDownKeyHandler=function(e,t,o){var i;o?i=t.getElementsByClassName("e-ribbon-item"):i=t.querySelector(".e-ribbon-of-tab.e-ribbon-active").getElementsByClassName("e-ribbon-item");var r,n,s=i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control"),a=s&&s.classList.contains("e-combobox")?i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;if(null===a||"Tab"===e.key||this.itemIndex<0){if("ArrowDown"===e.key||!e.shiftKey&&"Tab"===e.key){if(!this.itemIndex&&0!==this.itemIndex||this.itemIndex<0||this.itemIndex===i.length-1){if(this.itemIndex=0,r=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(r,i,!0),a&&"Tab"===e.key)e.preventDefault(),(l=i[this.itemIndex].querySelector(".e-control"))&&l.focus();n=i[this.itemIndex].querySelector(".e-ribbon-template")}else this.itemIndex<i.length-1&&this.itemIndex>=0&&(this.itemIndex++,r=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(r,i,!0),n=i[this.itemIndex].querySelector(".e-ribbon-template"));n&&n.focus()}else if(("ArrowUp"===e.key||e.shiftKey&&"Tab"===e.key)&&(null===a||"Tab"===e.key)){if(this.itemIndex&&-1!==this.itemIndex)this.itemIndex<=i.length-1&&this.itemIndex>0&&(this.itemIndex--,r=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(r,i,!1),n=i[this.itemIndex].querySelector(".e-ribbon-template"));else{var l;if(this.itemIndex=i.length-1,r=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(r,i,!1),a&&e.shiftKey&&"Tab"===e.key)e.preventDefault(),(l=i[this.itemIndex].querySelector(".e-control"))&&l.focus();n=i[this.itemIndex].querySelector(".e-ribbon-template")}n&&n.focus()}t.setAttribute("index",this.itemIndex.toString())}var p=parseInt(t.getAttribute("index"),10),c="",u=i[parseInt(p.toString(),10)]?i[parseInt(p.toString(),10)].querySelector(".e-control"):null;if(u&&(c=u.getAttribute("data-control")),"ArrowDown"===e.key||"ArrowUp"===e.key||" "===e.key||"Tab"===e.key){if("ColorPicker"===c)"Tab"===e.key&&e.preventDefault(),i[parseInt(p.toString(),10)].querySelector(".e-split-colorpicker").focus();else{"Tab"===e.key&&e.preventDefault();var d=i[parseInt(p.toString(),10)].querySelector(".e-control");d&&d.focus()}if(" "===e.key&&"CheckBox"===c){var h=i[parseInt(p.toString(),10)].querySelector(".e-control"),b=(0,T.getComponent)(h,Ge.CheckBox);this.itemIndex=-1,b.click()}}"SplitButton"!==c||"ArrowRight"!==e.key&&"ArrowLeft"!==e.key||("ArrowRight"===e.key&&(this.enableRtl?i[parseInt(p.toString(),10)].querySelector(".e-control").focus():i[parseInt(p.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===e.key&&(this.enableRtl?i[parseInt(p.toString(),10)].querySelector(".e-dropdown-btn").focus():i[parseInt(p.toString(),10)].querySelector(".e-control").focus())),"Enter"===e.key&&(this.itemIndex=-1)},s.prototype.findDisabledItem=function(e,t,o){for(;e&&e.classList.contains("e-disabled");)o?this.itemIndex===t.length-1&&t[this.itemIndex].closest(".e-ribbon-item").classList.contains("e-disabled")&&(this.itemIndex=-1):0===this.itemIndex&&t[this.itemIndex].closest(".e-ribbon-item").classList.contains("e-disabled")&&(this.itemIndex=t.length),o?this.itemIndex++:this.itemIndex--,e=t[this.itemIndex].closest(".e-ribbon-item")},s.prototype.removeOverflowButton=function(e){if(e){var t=e.element;ri(e.target),e.destroy(),t.remove()}},s.prototype.removeOverflowEvent=function(e,t){if(t)switch(e.type){case"Button":this.ribbonButtonModule.removeOverFlowEvents(e,t);break;case"DropDown":this.ribbonDropDownModule.removeOverFlowEvents(e,t);break;case"SplitButton":this.ribbonSplitButtonModule.removeOverFlowEvents(e,t);break;case"CheckBox":this.ribbonCheckBoxModule.removeOverFlowEvents(e,t);break;case"ColorPicker":this.ribbonColorPickerModule.removeOverFlowEvents(e,t);break;case"ComboBox":this.ribbonComboBoxModule.removeOverFlowEvents(e,t);break;case"Gallery":this.ribbonGalleryModule.removeOverFlowEvents(e,t);break;case"GroupButton":this.ribbonGroupButtonModule.removeOverFlowEvents(e,t)}},s.prototype.createGroupContainer=function(e,t){var o=this.createElement("div",{className:Ct,id:e+go}),i=this.createElement("div",{className:kt,id:e+fo,innerHTML:t});return o.append(i),o},s.prototype.addExpandCollapse=function(){var e=this;this.collapseButton=this.createElement("span",{className:nt+Qe+He,id:this.tabObj.element.id+uo,attrs:{tabindex:"0",type:"button","aria-label":"Layout Switcher",role:"button"}}),this.collapseButton.onclick=function(){e.toggleLayout()},this.collapseButton.onkeydown=function(t){"Enter"===t.key&&e.toggleLayout()},this.element.classList.add(at),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(st),this.tabObj.element.appendChild(this.collapseButton),this.layoutSwitcherKeyTip&&(this.keyTipElements.collapse=[],this.keyTipElements.collapse.push({id:this.collapseButton.id,type:"collapse",keyTip:this.layoutSwitcherKeyTip}))},s.prototype.removeExpandCollapse=function(){var e=this,t=Uo(this.tooltipData,(function(t){return t.id===e.collapseButton.id}));-1!==t&&this.tooltipData.splice(t,1),this.element.classList.remove(at),(0,T.remove)(this.tabObj.element.querySelector("."+nt)),this.collapseButton=null},s.prototype.reRenderTabs=function(e){this.destroyScroll(),this.checkID(this.tabs,"tab",this.element.id);for(var t=0,o=Object.keys(e);t<o.length;t++){for(var i=o[t],r=parseInt(i,10),n=e[parseInt(r.toString(),10)],s=!1,a=0;a<this.tabObj.items.length;a++)if(this.tabs[parseInt(r.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 p=this.tabs[parseInt(r.toString(),10)].groups,c=this.tabObj.element,u=this.tabs[parseInt(r.toString(),10)];u.setProperties(n,!0),this.setProperties({groups:this.checkID(u.groups,"group",u.id)},!0),this.validateItemSize();var d=this.tabObj.items[parseInt(r.toString(),10)].content;if(p&&(n.header&&(this.tabObj.items[parseInt(r.toString(),10)].header.text.innerText=u.header),n.cssClass&&(this.tabObj.items[parseInt(r.toString(),10)].cssClass&&(d.classList.remove(this.tabObj.items[parseInt(r.toString(),10)].cssClass),c.querySelector(".e-active").classList.remove(this.tabObj.items[parseInt(r.toString(),10)].cssClass)),d.classList.add(u.cssClass),c.querySelector(".e-active").classList.add(u.cssClass)),n.groups)){for(var h=0,b=p;h<b.length;h++){for(var f=b[h],m=f.isCollapsed?d.querySelector("#"+f.id+vo+So):null,y=0,g=f.collections;y<g.length;y++)for(var v=0,S=g[y].items;v<S.length;v++){var I=S[v],C=m?this.ribbonDropDownModule.getDDBItemElement(m,I.id):d.querySelector("#"+I.id);C&&this.destroyFunction(I,C)}m&&this.ribbonDropDownModule.removeOverFlowDropDown(m)}d.querySelectorAll(".e-ribbon-group").forEach((function(e){e.remove()}));var w=this.createGroups(u.groups,r);(0,T.append)(w,d)}}var O=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+yo);this.checkOverflow(this.selectedTab,O)},s.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(st,"Simplified"===this.activeLayout),this.element.classList.toggle(Zt,"Simplified"===this.activeLayout);for(var e=0;e<=this.tabs.length-1;e++){var t=e;if(""!==this.tabObj.items[parseInt(t.toString(),10)].content.innerHTML){var o=this.tabs[parseInt(t.toString(),10)],s=this.tabs[parseInt(t.toString(),10)].groups,a=this.tabObj.element.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+yo),l=a.closest("."+dt);if("Simplified"===this.activeLayout)for(var p=0;p<s.length;p++){var c=s[parseInt(p.toString(),10)],u=s[parseInt(p.toString(),10)].orientation;c.isCollapsed?(c.setProperties({isCollapsed:!1},!0),this.removeDropdown(c.id)):(this.checkSmallToMedium(t,o,p,l,a,!0,!1),this.checkMediumToLarge(t,o,p,l,a,!0,!1));for(var d=l.querySelector("#"+c.id),h=(B=d.querySelector("#"+c.id+go)).querySelectorAll(".e-ribbon-shrink"),b=0;b<h.length;b++)h[parseInt(b.toString(),10)].remove();(L=B.querySelector("#"+c.id+fo)).remove(),(P=B.querySelector("#"+c.id+yo)).classList.replace(_t,Mt),P.classList.remove(jt);for(var f=0;f<c.collections.length;f++){var m=c.collections[parseInt(f.toString(),10)];(_=B.querySelector("#"+m.id)).classList.replace(_t,Mt);for(var y=0;y<m.items.length;y++){for(var g=m.items,v=m.items[parseInt(y.toString(),10)],S=!0;S&&v.displayOptions===r.Classic;){y++;var I=B.querySelector("#"+v.id+go),C=I.querySelector("#"+v.id);this.destroyFunction(v,C),I.remove(),y<g.length?v=g[parseInt(y.toString(),10)]:S=!1}if(!S)break;var w=v.allowedSizes===i.Large||v.allowedSizes&i.Medium?i.Medium:i.Small;w=!(v.displayOptions&r.Simplified)&&v.displayOptions&r.Overflow?i.Medium:w;var O=void 0;if(v.displayOptions&r.Classic){if(O=B.querySelector("#"+v.id+go),v.displayOptions===(r.Classic|r.Overflow)&&(this.createOverflowPopup(v,t,c.enableGroupOverflow,c.id,c.header,O,B),v.type!==n.DropDown&&v.type!==n.SplitButton&&v.type!==n.GroupButton&&v.type!==n.Gallery||this.updatePopupItems(v,O,c.enableGroupOverflow,!0)),v.type===n.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(v,O),v.setProperties({activeSize:w},!0),O){C=O.querySelector("#"+v.id);this.setItemSize(C,v)}}else O=this.createItems([v],u,c.id,c.header,c.enableGroupOverflow,t,B)[0],v.displayOptions&r.Simplified&&_.append(O);v.type===n.Gallery&&this.ribbonGalleryModule.switchGalleryItems(this.activeLayout,v.id)}}c.enableGroupOverflow||d.querySelector("."+xt)||d.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(ut);for(var k=0;k<s.length;k++){c=s[parseInt(k.toString(),10)],u=s[parseInt(k.toString(),10)].orientation;var B,P=(B=l.querySelector("#"+c.id+go)).querySelector("#"+c.id+yo),L=this.createElement("div",{className:Ot,id:c.id+fo,innerHTML:c.header});B.appendChild(L),"Row"===u&&P.classList.replace(Mt,_t),P.classList.add(jt);for(f=0;f<c.collections.length;f++){var E=void 0,D=void 0;if(c.enableGroupOverflow){var x=B.querySelector("#"+c.id+bo);x&&(D=(E=(0,T.getInstance)(x,H.DropDownButton)).target)}else(E=this.overflowDDB)&&(D=this.overflowDDB.target);m=c.collections[parseInt(f.toString(),10)];var _=B.querySelector("#"+m.id);"Column"===u&&_.classList.replace(Mt,_t);for(y=0;y<m.items.length;y++){for(g=m.items,v=m.items[parseInt(y.toString(),10)],S=!0;S&&!(v.displayOptions&r.Classic);){y++;O=void 0;if((v.displayOptions&r.Simplified||v.displayOptions&r.Overflow)&&null!==(O=v.displayOptions&r.Simplified?B.querySelector("#"+v.id+go):D.querySelector("#"+v.id+go))){var M=O.querySelector("#"+v.id);this.destroyFunction(v,M),O.remove()}y<g.length?v=g[parseInt(y.toString(),10)]:S=!1}if(!S)break;if(v.displayOptions&(r.Simplified|r.Overflow)){!(O=B.querySelector("#"+v.id+go))&&D&&(O=D.querySelector("#"+v.id+go),v.type!==n.DropDown&&v.type!==n.SplitButton&&v.type!==n.GroupButton&&v.type!==n.Gallery||this.updatePopupItems(v,O,c.enableGroupOverflow,!1),this.removeOverflowEvent(v,O)),v.type===n.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(v,O),O&&_.append(O)}else{var O=this.createItems([v],u,c.id,c.header,c.enableGroupOverflow,t)[0];_.append(O)}C=B.querySelector("#"+v.id);v.type===n.GroupButton&&(C=B.querySelector("#"+v.id+Po));var q=v.allowedSizes&i.Large?i.Large:v.allowedSizes&i.Medium?i.Medium:i.Small;v.setProperties({activeSize:q},!0),this.setItemSize(C,v),v.type===n.Gallery&&this.ribbonGalleryModule.switchGalleryItems(this.activeLayout,v.id)}c.enableGroupOverflow&&E&&(0===D.childElementCount||1===D.childElementCount&&this.isHeaderVisible(D,c.id))&&this.removeOverflowButton(E)}}}this.selectedTab===t&&this.checkOverflow(t,a)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},s.prototype.createLauncherIcon=function(e,t,o){var i=this,r=this.createElement("div",{className:Lt+" "+(this.launcherIconCss?this.launcherIconCss:Et),id:e+mo,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});t.appendChild(r),t.classList.add(Pt),T.EventHandler.add(r,"click",this.launcherIconClicked.bind(this,e),this),T.EventHandler.add(r,"keydown",(function(t){"Enter"===t.key&&i.launcherIconClicked(e)}),this);var n=Zo(this.tabs,e);n.group.launcherIconKeyTip&&this.addKeyTip(o,n.group.launcherIconKeyTip,r.id,"launcher")},s.prototype.launcherIconClicked=function(e){var t={groupId:e};this.trigger("launcherIconClick",t)},s.prototype.createGroups=function(e,t){for(var o=[],i=0;i<e.length;i++){var r=e[parseInt(i.toString(),10)],n=r.orientation,s=this.createElement("div",{className:r.cssClass,id:r.id});s.classList.add(bt),o.push(s);var a=this.createElement("div",{className:r.cssClass,id:r.id+go});a.classList.add(St),s.appendChild(a);var l=this.createElement("div",{className:"Simplified"===this.activeLayout?wt:wt+Qe+jt,id:r.id+yo});if(l.classList.add("Column"===n||"Simplified"===this.activeLayout?Mt:_t),a.appendChild(l),"Classic"===this.activeLayout){var p=this.createElement("div",{className:Ot,id:r.id+fo,innerHTML:r.header});a.appendChild(p)}r.showLauncherIcon&&this.createLauncherIcon(r.id,a,t);var c=this.createCollection(r.collections,r.orientation,r.id,r.header,r.enableGroupOverflow,t,a);(0,T.append)(c,l);for(var u=!0,d=0;d<c.length;d++)if(u)for(var h=0;h<c[parseInt(d.toString(),10)].children.length;h++)if(!c[parseInt(d.toString(),10)].children[parseInt(h.toString(),10)].classList.contains("e-hidden")){u=!1;break}u&&s.classList.add("e-hide-group"),"Simplified"!==this.activeLayout||r.enableGroupOverflow||s.querySelector("."+xt)||s.classList.add("e-ribbon-emptyCollection");var b=this.initialPropsData[parseInt(t.toString(),10)];b&&(b.hiddenGroups&&b.hiddenGroups.length&&this.updateGroupProps("hiddenGroups",b,s),b.disabledGroups&&b.disabledGroups.length&&this.updateGroupProps("disabledGroups",b,s))}return this.initialPropsData[parseInt(t.toString(),10)]&&delete this.initialPropsData[parseInt(t.toString(),10)],o},s.prototype.updateGroupProps=function(e,t,o){-1!==t[e].indexOf(o.id)&&("hiddenGroups"===e?o.classList.add("e-hidden"):o.classList.add("e-disabled"))},s.prototype.validateItemSize=function(){for(var e=0;e<this.tabs.length;e++)for(var t=this.tabs[parseInt(e.toString(),10)].groups,o=0;o<t.length;o++)for(var r=t[parseInt(o.toString(),10)].collections,n=t[parseInt(o.toString(),10)].orientation,s=0;s<r.length;s++)for(var a=r[parseInt(s.toString(),10)].items,l=0;l<a.length;l++){var p=a[parseInt(l.toString(),10)];if(p.allowedSizes&&0!==p.allowedSizes||p.setProperties({allowedSizes:i.Small|i.Medium|i.Large},!0),"ColorPicker"===p.type&&p.allowedSizes!==i.Small)p.setProperties({allowedSizes:i.Small},!0);else if("ComboBox"!==p.type&&"CheckBox"!==p.type||p.allowedSizes===i.Medium){if(("Column"===n&&a.length>1||"Row"===n&&r.length>1)&&p.allowedSizes&i.Large){var c=p.allowedSizes&(i.Small|i.Medium);c=c||i.Medium,p.setProperties({allowedSizes:c},!0)}}else p.setProperties({allowedSizes:i.Medium},!0);var u=p.allowedSizes&i.Large?i.Large:p.allowedSizes&i.Medium?i.Medium:i.Small;p.setProperties({activeSize:u},!0)}},s.prototype.createCollection=function(e,t,o,i,r,n,s){for(var a=[],l=0;l<e.length;l++){var p=e[parseInt(l.toString(),10)],c=this.createElement("div",{className:p.cssClass,id:p.id});c.classList.add(Dt),c.classList.add("Column"!==t||"Simplified"===this.activeLayout?Mt:_t),a.push(c);var u=this.createItems(p.items,t,o,i,r,n,s);if((0,T.append)(u,c),"Row"===t&&2===l)break}return a},s.prototype.createRibbonItem=function(e,t){switch(e.type){case"Button":this.ribbonButtonModule.createButton(e,t);break;case"DropDown":this.ribbonDropDownModule.createDropDown(e,t);break;case"SplitButton":this.ribbonSplitButtonModule.createSplitButton(e,t);break;case"CheckBox":this.ribbonCheckBoxModule.createCheckBox(e,t);break;case"ColorPicker":this.ribbonColorPickerModule.createColorPicker(e,t);break;case"ComboBox":this.ribbonComboBoxModule.createComboBox(e,t);break;case"Template":this.createTemplateContent(e,t);break;case"GroupButton":this.ribbonGroupButtonModule.createGroupButton(e,t);break;case"Gallery":this.ribbonGalleryModule.createGallery(e,t)}},s.prototype.createItems=function(e,t,o,s,a,l,p){for(var c,u=[],d=0;d<e.length;d++){for(var h=e[parseInt(d.toString(),10)],b=!0;b&&("Simplified"===this.activeLayout&&!(h.displayOptions&(r.Simplified|r.Overflow))||"Classic"===this.activeLayout&&!(h.displayOptions&r.Classic));)++d<e.length?h=e[parseInt(d.toString(),10)]:b=!1;if(!b)break;var f=this.createElement("div",{className:h.cssClass,id:h.id+go});if((c=f.classList).add.apply(c,[xt].concat(h.disabled?[Ke]:[])),h.ribbonTooltipSettings&&ti(h.ribbonTooltipSettings)&&(f.classList.add(Ft),this.tooltipData.push({id:f.id,data:h.ribbonTooltipSettings})),h.type===n.GroupButton)for(var m=0;m<h.groupButtonSettings.items.length;m++)this.keyTipElements[parseInt(l.toString(),10)]&&h.groupButtonSettings.items[parseInt(m.toString(),10)].keyTip&&this.addKeyTip(l,h.groupButtonSettings.items[parseInt(m.toString(),10)].keyTip,h.id+(Po+m),"item");h.keyTip&&(h.type===n.Gallery?this.addKeyTip(l,h.keyTip,h.id+"_popupButton","item"):this.addKeyTip(l,h.keyTip,h.id,"item"));var y=h.activeSize;h.type!==n.Gallery&&("Simplified"===this.activeLayout&&(y=h.allowedSizes===i.Large||h.allowedSizes&i.Medium||h.displayOptions===r.Overflow?i.Medium:i.Small,h.setProperties({activeSize:y},!0)),y&i.Large?f.classList.add(qt,jt):f.classList.add(y&i.Medium?Rt:At));var g=this.initialPropsData[parseInt(l.toString(),10)];if(g&&g.hiddenItems&&g.hiddenItems.length)-1!==g.hiddenItems.indexOf(h.id)&&f.classList.add("e-hidden");if(this.createRibbonItem(h,f),"Simplified"!==this.activeLayout||h.displayOptions!==r.Overflow&&h.displayOptions!==(r.Classic|r.Overflow)?u.push(f):(this.createOverflowPopup(h,l,a,o,s,f,p),h.type!==n.DropDown&&h.type!==n.SplitButton&&h.type!==n.GroupButton&&h.type!==n.Gallery||this.updatePopupItems(h,f,a,!0)),"Column"===t&&2===d)break}return u},s.prototype.createHelpPaneTemplate=function(){if(this.helpPaneTemplate){var e="helpPaneTemplate";this.clearTemplate([e]),this.ribbonTempEle=this.createElement("div",{className:Wt,id:this.element.id+Bo});var t=Vo(this.helpPaneTemplate);(0,T.append)(t({},this,e,"helpPaneTemplate",this.isStringTemplate),this.ribbonTempEle);var o=this.tabObj.element;o.querySelector(".e-toolbar").after(this.ribbonTempEle),o.style.setProperty(Do,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},s.prototype.createTemplateContent=function(e,t){var o=this.createElement("div",{className:e.cssClass?Ht+Qe+e.cssClass:Ht,id:e.id,attrs:{tabindex:"-1"}});e.disabled&&(o.classList.add(Ke),o.setAttribute("disabled","")),t.appendChild(o),this.renderItemTemplate(e,o)},s.prototype.renderItemTemplate=function(e,t){var o="ribbon"+e.id+"itemTemplate";this.clearTemplate([o]);var r=Vo(e.itemTemplate);(0,T.append)(r({activeSize:i[e.activeSize]},this,o,e.id+"itemTemplate",this.isStringTemplate),t),this.renderReactTemplates()},s.prototype.checkID=function(e,t,o){for(var i="tab"===t?ao:"group"===t?lo:"collection"===t?po:co,r=0;r<e.length;r++){var n=e[parseInt(r.toString(),10)];if(!n.id){var s=void 0;"item"===t&&(s=this.hasHtmlAtrrID(n)),n.setProperties({id:s||o+i+this.idIndex++},!0)}switch(t){case"tab":n.setProperties({groups:this.checkID(n.groups,"group",n.id)},!0);break;case"group":n.setProperties({collections:this.checkID(n.collections,"collection",n.id)},!0);break;case"collection":n.setProperties({items:this.checkID(n.items,"item",n.id)},!0)}}return e},s.prototype.hasHtmlAtrrID=function(e){var t="";return e.buttonSettings.htmlAttributes.id?t=e.buttonSettings.htmlAttributes.id:e.checkBoxSettings.htmlAttributes.id?t=e.checkBoxSettings.htmlAttributes.id:e.colorPickerSettings.htmlAttributes.id?t=e.colorPickerSettings.htmlAttributes.id:e.comboBoxSettings.htmlAttributes.id?t=e.comboBoxSettings.htmlAttributes.id:e.dropDownSettings.htmlAttributes.id?t=e.dropDownSettings.htmlAttributes.id:e.splitButtonSettings.htmlAttributes.id&&(t=e.splitButtonSettings.htmlAttributes.id),t},s.prototype.updateCommonProperty=function(e){this.tabObj.setProperties(e),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.setCommonProperties(e),this.ribbonBackstageModule&&this.ribbonBackstageModule.setCommonProperties(e);for(var o=0;o<this.tabs.length;o++){var i=this.tabs[parseInt(o.toString(),10)],s=this.tabObj.items[parseInt(o.toString(),10)].content;if(s.querySelector("."+bt))for(var a=0,l=i.groups;a<l.length;a++){var p=l[a],c=void 0,u=void 0;this.activeLayout===t.Classic?c=p.isCollapsed?s.querySelector("#"+p.id+vo+So):null:(u=(c=p.enableGroupOverflow?s.querySelector("#"+p.id+bo):null)?(0,T.getComponent)(c,H.DropDownButton):this.overflowDDB)&&(ni(u.target,e),u.setProperties(e));for(var d=0,h=p.collections;d<h.length;d++)for(var b=0,f=h[d].items;b<f.length;b++){var m=f[b],y=null;if(this.activeLayout===t.Classic?m.displayOptions&r.Classic&&(y=c?this.ribbonDropDownModule.getDDBItemElement(c,m.id):m.type===n.GroupButton?s.querySelector("#"+m.id+Po):s.querySelector("#"+m.id)):(y=m.displayOptions&r.Simplified?s.querySelector("#"+m.id):null)||(y=u.target.querySelector("#"+m.id),"DropDown"===m.type&&this.updatePopupItems(m,u.target,p.enableGroupOverflow,!0)),y){var g=this.getItemModuleName(m);if("template"!==g)if("group-btn"===g&&"Classic"===this.activeLayout)for(var v=0;v<m.groupButtonSettings.items.length;v++){Qo(y.querySelector("#"+m.id+Po+v),"btn",e)}else if("group-btn"===g&&"Simplified"===this.activeLayout){Qo(y,"dropdown-btn",e);for(var S=0;S<m.groupButtonSettings.items.length;S++){Qo(document.querySelector("#"+m.id+Po+S),"btn",e)}}else Qo(y,g,e);else(0,T.isNullOrUndefined)(e.enableRtl)||y.classList.toggle(Ue,e.enableRtl)}}}}},s.prototype.removeLauncherIcon=function(e,t,o){var i=e+go,r=t?this.ribbonDropDownModule.getDDBItemElement(t,i):o.querySelector("#"+i);if(r){r.classList.remove(Pt);var n=r.querySelector("#"+e+mo);(0,T.remove)(n)}},s.prototype.destroyTabItems=function(e){for(var o=0;o<e.length;o++)for(var i=e[parseInt(o.toString(),10)],s=this.tabObj.items[parseInt(o.toString(),10)].content,a=0,l=i.groups;a<l.length;a++){var p=l[a],c=void 0,u=void 0;this.activeLayout===t.Classic?(c=p.isCollapsed?s.querySelector("#"+p.id+vo+So):null,p.showLauncherIcon&&this.removeLauncherIcon(p.id,c,s)):u=(c=p.enableGroupOverflow?s.querySelector("#"+p.id+bo):null)?(0,T.getComponent)(c,H.DropDownButton):this.overflowDDB;for(var d=0,h=p.collections;d<h.length;d++)for(var b=0,f=h[d].items;b<f.length;b++){var m=f[b],y=void 0;this.activeLayout===t.Classic?m.displayOptions&r.Classic&&(y=c?this.ribbonDropDownModule.getDDBItemElement(c,m.id):s.querySelector("#"+m.id),m.type===n.GroupButton&&(y=c?this.ribbonDropDownModule.getDDBItemElement(c,m.id+Po):s.querySelector("#"+m.id+Po)),m.type===n.Gallery&&(y=s.querySelector("#"+m.id+go))):(y=m.displayOptions&r.Simplified?s.querySelector("#"+m.id):null,m.type===n.Gallery&&(y=m.displayOptions&r.Simplified?s.querySelector("#"+m.id+go):null),y||(y=u?u.target.querySelector("#"+m.id):null)),y&&this.destroyFunction(m,y)}this.activeLayout===t.Classic&&c?this.ribbonDropDownModule.removeOverFlowDropDown(c):this.activeLayout===t.Simplified&&p.enableGroupOverflow&&c&&this.removeOverflowButton(u)}this.overflowDDB&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},s.prototype.destroyFunction=function(e,t){var o=this.getItemModuleName(e);if("colorpicker"===o)this.ribbonColorPickerModule.unwireColorPickerEvents(t);else if("group-btn"===o){if("Classic"===this.activeLayout)for(var i=0;i<e.groupButtonSettings.items.length;i++){var r=t.querySelector("#"+e.id+Po+i);r&&Jo(r,"btn")}else this.ribbonGroupButtonModule.destroyDropDown(e);var n=function(t){if(e.groupButtonSettings.items[parseInt(t.toString(),10)].ribbonTooltipSettings){var o=e.id+Po+t,i=Uo(s.tooltipData,(function(e){return e.id===o}));-1!==i&&s.tooltipData.splice(i,1)}},s=this;for(i=0;i<e.groupButtonSettings.items.length;i++)n(i)}else if("gallery"===o)if(t.closest(".e-ribbon-overflow-target")){Jo(t,"dropdown-btn"),(p=Array.prototype.slice.call(document.querySelectorAll("#"+e.id+"_galleryPopup"))).concat(Array.prototype.slice.call(document.querySelectorAll("#"+e.id+"-popup")));for(i=0;i<p.length;i++)p[parseInt(i.toString(),10)].remove()}else{var a=t.querySelectorAll(".e-ribbon-gallery-item"),l=t.querySelector("#"+e.id+"_popupButton");l&&l.remove();for(i=0;i<a.length;i++)a[parseInt(i.toString(),10)].remove();var p=document.querySelectorAll("#"+e.id+"_galleryPopup");for(i=0;i<p.length;i++)p[parseInt(i.toString(),10)].remove()}else"template"!==o&&Jo(t,o);if(e.ribbonTooltipSettings){var c=Uo(this.tooltipData,(function(t){return t.id===e.id+go}));-1!==c&&this.tooltipData.splice(c,1)}"GroupButton"===e.type&&this.ribbonGroupButtonModule.destroyDropDown(e)},s.prototype.getItemModuleName=function(e){switch(e.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"}},s.prototype.clearOverflowResize=function(){this.destroyScroll(),this.clearOverflowDropDown(this.selectedTab);for(var e=this.tabs[this.selectedTab],t=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+yo),o=t.closest("."+dt),i=0;i<e.groups.length;i++)this.checkSmallToMedium(this.selectedTab,e,i,o,t,!0,!0),this.checkMediumToLarge(this.selectedTab,e,i,o,t,!0,!0)},s.prototype.refreshLayout=function(){this.resizeHandler()},s.prototype.selectTab=function(e){var t=Uo(this.tabs,(function(t){return t.id===e}));this.setProperties({selectedTab:t})},s.prototype.showTab=function(e,t){void 0===t&&(t=!1),this.showHideTab(e,!1,t)},s.prototype.hideTab=function(e,t){void 0===t&&(t=!1),this.showHideTab(e,!0,t)},s.prototype.showHideTab=function(e,t,o){var i=Uo(this.tabs,(function(t){return t.id===e}));if(-1!==i&&(this.tabObj.hideTab(i,t),o)){for(var r,n=this.tabObj.element,s=0;s<this.contextualTabs.length;s++)for(var a=0;a<this.contextualTabs[parseInt(s.toString(),10)].tabs.length;a++)e===this.contextualTabs[parseInt(s.toString(),10)].tabs[parseInt(a.toString(),10)].id&&(r=this.contextualTabs[parseInt(s.toString(),10)]);if(r){var l=!0,p=function(e){var t=Uo(c.tabs,(function(t){return t.id===r.tabs[parseInt(e.toString(),10)].id}));-1!==t&&(n.querySelectorAll(".e-toolbar-item")[parseInt(t.toString(),10)].classList.contains("e-hidden")||(l=!1))},c=this;for(s=0;s<r.tabs.length;s++)p(s);l?r.setProperties({visible:!1},!0):r.setProperties({visible:!0},!0)}}},s.prototype.enableTab=function(e){this.enableDisableTab(e,!0)},s.prototype.disableTab=function(e){this.enableDisableTab(e,!1)},s.prototype.enableDisableTab=function(e,t){var o=Uo(this.tabs,(function(t){return t.id===e}));-1!==o&&this.tabObj.enableTab(o,t)},s.prototype.addTab=function(e,t,o){var i=t?Uo(this.tabs,(function(e){return e.id===t})):-1;i=-1===i?this.tabs.length:i+(o?1:0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(i,0,e),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 r=this.createTabItems([e]);this.tabObj.addTab(r,i)},s.prototype.removeTab=function(e){var t=Uo(this.tabs,(function(t){return t.id===e}));if(-1!==t){var o=this.tabObj.items[parseInt(t.toString(),10)].content,i=this.tabs[parseInt(t.toString(),10)].groups;if(i&&""!==o.innerHTML)for(var r=0,s=i;r<s.length;r++){for(var a=s[r],l=a.isCollapsed?o.querySelector("#"+a.id+vo+So):null,p=0,c=a.collections;p<c.length;p++)for(var u=0,d=c[p].items;u<d.length;u++){var h=d[u],b=l?this.ribbonDropDownModule.getDDBItemElement(l,h.id):o.querySelector("#"+h.id);h.type===n.GroupButton&&"Classic"===this.activeLayout&&(b=l?this.ribbonDropDownModule.getDDBItemElement(l,h.id+Po):o.querySelector("#"+h.id+Po)),b&&this.destroyFunction(h,b)}l&&this.ribbonDropDownModule.removeOverFlowDropDown(l)}t===this.selectedTab&&(this.isAddRemove=!0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(t,1),this.setProperties({tabs:this.tabsInternal},!0),this.tabObj.removeTab(t)}},s.prototype.addGroup=function(e,t,o,i){var r=Uo(this.tabs,(function(t){return t.id===e}));if(-1!==r){this.selectedTab===r&&this.clearOverflowResize();var n=this.tabs[parseInt(r.toString(),10)],s=n.groups.slice(),a=o?Uo(s,(function(e){return e.id===o})):-1;a=-1===a?s.length:a+(i?1:0),s.splice(a,0,t),n.setProperties({groups:s},!0),this.checkID([n.groups[parseInt(a.toString(),10)]],"group",e),this.validateItemSize();var l=this.tabObj.items[parseInt(r.toString(),10)].content;if(""!==l.innerHTML){var p=this.createGroups([n.groups[parseInt(a.toString(),10)]],r)[0],c=o?l.querySelector("#"+o):null;c?c.insertAdjacentElement(i?"afterend":"beforebegin",p):l.append(p)}this.selectedTab===r&&this.refreshLayout()}},s.prototype.removeGroup=function(e){var o=Zo(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[o.tabIndex].content;if(""!==i.innerHTML){var r=void 0,n=void 0;o.group.showLauncherIcon&&this.removeLauncherIcon(o.group.id,null,i),this.activeLayout===t.Simplified&&(n=(r=o.group.enableGroupOverflow?i.querySelector("#"+o.group.id+bo):null)?(0,T.getComponent)(r,H.DropDownButton):this.overflowDDB);for(var s=0,a=o.group.collections;s<a.length;s++)for(var l=0,p=a[s].items;l<p.length;l++){var c=p[l];this.removeItemElement(i,c,n)}if(this.activeLayout===t.Simplified)if(o.group.enableGroupOverflow)(0===n.target.childElementCount||1===n.target.childElementCount&&this.isHeaderVisible(n.target,o.group.id))&&this.removeOverflowButton(n);else{var u=n.target.querySelector("#"+o.group.id+go);u&&1===u.childElementCount&&u.remove();var d=n.target.querySelector("#"+this.tabs[parseInt(o.tabIndex.toString(),10)].id+vo);d&&0===d.childElementCount&&d.remove()}var h=i.querySelector("#"+e);h&&h.remove()}var b=this.tabs[o.tabIndex].groups.slice();b.splice(o.groupIndex,1),this.tabs[o.tabIndex].setProperties({groups:b},!0),this.selectedTab===o.tabIndex&&this.refreshLayout()}},s.prototype.isHeaderVisible=function(e,t){return!!e.querySelector("#"+t+bo+fo)},s.prototype.hideGroup=function(e){this.showHideGroup(e,!0)},s.prototype.showGroup=function(e){this.showHideGroup(e,!1)},s.prototype.showHideGroup=function(e,t){var o,i=Zo(this.tabs,e);if(i){var r=this.tabObj.items[i.tabIndex].content,n=r.querySelector("#"+e);if(n?this.updateHiddenElements(i.tabIndex,t?"hideGroup":"showGroup",e,t,n):this.updateInitialProps(i.tabIndex,e,"hiddenGroups",t),this.overflowDDB){var s=this.overflowDDB.target.querySelector("#"+this.tabs[parseInt(i.tabIndex.toString(),10)].id+vo);if(i.group.enableGroupOverflow){var a=r.querySelector("#"+e+bo);a&&(o=(0,T.getInstance)(a,H.DropDownButton).target),o&&(t?o.classList.add("e-hidden"):o.classList.remove("e-hidden"))}else if(s){var l=s.querySelector("#"+e+go);l&&(t?l.classList.add("e-hidden"):l.classList.remove("e-hidden"))}}this.selectedTab===i.tabIndex&&this.refreshLayout()}},s.prototype.updateHiddenElements=function(e,t,o,i,r,n){i?r.classList.contains("e-hidden")||(this.checkHiddenElements(t,o,e),r.classList.add("e-hidden"),"hideItem"===t&&this.checkHiddenItems(n,i,e),this.calculateHiddenElementsWidth(e)):r.classList.contains("e-hidden")&&(this.checkHiddenElements(t,o,e),r.classList.remove("e-hidden"),this.calculateHiddenElementsWidth(e),"showItem"===t&&this.checkHiddenItems(n,i,e))},s.prototype.checkHiddenElements=function(e,t,o){if("Simplified"===this.activeLayout){var i=this.hiddenElements[parseInt(o.toString(),10)];if(i||(this.hiddenElements[parseInt(o.toString(),10)]={},i=this.hiddenElements[parseInt(o.toString(),10)]),i)if(i[""+e]||(i[""+e]=[]),i[""+e].length)-1===i[""+e].indexOf(t)&&i[""+e].push(t);else i[""+e].push(t)}},s.prototype.updateItemsSimplifiedWidth=function(e,t){var o=this.hiddenElements[parseInt(e.toString(),10)];if(o&&o[""+t]&&o[""+t].length)for(var i,r=function(r){var s,a=n.tabObj.items[parseInt(e.toString(),10)].content,l=void 0,p=!1,c=0;if(s="hideGroup"===t||"showGroup"===t?a.querySelector("#"+o[""+t][parseInt(r.toString(),10)]):a.querySelector("#"+o[""+t][parseInt(r.toString(),10)]+go)){if("hideGroup"===t||"hideItem"===t){var u=!1;s.classList.contains("e-hidden")&&(u=!0,s.classList.remove("e-hidden")),"hideItem"===t&&(l=s.closest(".e-ribbon-group")).classList.contains("e-hide-group")&&(p=!0,c=n.checkWidthDifference(s,l)),n.calculateOverflowItemsWidth(s.offsetWidth+c,!0,e),n.calculateMediumDataWidth(s.offsetWidth+c,e,!0),u&&s.classList.add("e-hidden")}else{if("showItem"===t)if((l=s.closest(".e-ribbon-group")).classList.contains("e-hide-group"))p=!0,l.classList.remove("e-hide-group"),l.classList.remove("e-ribbon-emptyCollection"),c=Math.abs(s.offsetWidth-l.offsetWidth),-1!==n.hiddenGroups.indexOf(l.id)&&n.hiddenGroups.splice(n.hiddenGroups.indexOf(l.id),1);else if(-1!==n.hiddenGroups.indexOf(l.id)){var d=l.querySelectorAll(".e-ribbon-item:not(.e-hidden)");d.forEach((function(e){e.id!==s.id&&e.classList.add("e-hidden")})),c=Math.abs(s.offsetWidth-l.offsetWidth),d.forEach((function(e){e.id!==s.id&&e.classList.remove("e-hidden")})),n.hiddenGroups.splice(n.hiddenGroups.indexOf(l.id),1)}n.calculateOverflowItemsWidth(s.offsetWidth+c,!1,e),n.calculateMediumDataWidth(s.offsetWidth+c,e,!1)}p&&(l.classList.add("e-hide-group"),l.classList.add("e-ribbon-emptyCollection"))}var h=o[""+t].indexOf(o[""+t][parseInt(r.toString(),10)]);-1!==h&&(o[""+t].splice(h,1),r--),i=r},n=this,s=0;s<o[""+t].length;s++)r(s),s=i},s.prototype.checkWidthDifference=function(e,t){var o=0;return t.classList.remove("e-hide-group"),t.classList.remove("e-ribbon-emptyCollection"),this.hiddenGroups.length?-1===this.hiddenGroups.indexOf(t.id)&&(this.hiddenGroups.push(t.id),o=Math.abs(e.offsetWidth-t.offsetWidth)):(this.hiddenGroups.push(t.id),o=Math.abs(e.offsetWidth-t.offsetWidth)),o},s.prototype.calculateHiddenElementsWidth=function(e){if(e===this.selectedTab&&"Simplified"===this.activeLayout){var t=this.hiddenElements[parseInt(e.toString(),10)];if(t)for(var o=0;o<Object.keys(t).length;o++)this.updateItemsSimplifiedWidth(e,Object.keys(t)[parseInt(o.toString(),10)])}},s.prototype.calculateMediumDataWidth=function(e,t,o){if(this.selectedTab===t&&"Simplified"===this.activeLayout){var i=this.tabObj.element.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+yo),r=Array.prototype.slice.call(i.querySelectorAll(".e-ribbon-item"));if(this.overflowDDB)for(var n=this.overflowDDB.target.querySelectorAll(".e-ribbon-item"),s=document.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+vo),a=0;a<n.length;a++){var l=n[parseInt(a.toString(),10)].closest("#"+this.tabs[parseInt(t.toString(),10)].id+vo);s&&l&&s.id===l.id&&n[parseInt(a.toString(),10)].hasAttribute("data-medium-width")&&r.push(n[parseInt(a.toString(),10)])}var p=i.querySelectorAll(".e-ribbon-group-of-btn");for(a=0;a<p.length;a++){n=(0,T.getInstance)(p[parseInt(a.toString(),10)],H.DropDownButton).target.querySelectorAll(".e-ribbon-item");for(var c=0;c<n.length;c++)n[parseInt(c.toString(),10)].hasAttribute("data-medium-width")&&r.push(n[parseInt(c.toString(),10)])}for(a=0;a<r.length;a++)if(r[parseInt(a.toString(),10)].hasAttribute("data-medium-width")){var u=parseInt(r[parseInt(a.toString(),10)].getAttribute("data-medium-width"),10);r[parseInt(a.toString(),10)].setAttribute("data-medium-width",o?(u-e).toString():(u+e).toString())}}},s.prototype.calculateOverflowItemsWidth=function(e,t,o){if(this.selectedTab===o&&"Simplified"===this.activeLayout)for(var i=this.tabs[parseInt(o.toString(),10)].groups,r=0;r<i.length;r++){var n=i[parseInt(r.toString(),10)];if(n.enableGroupOverflow){var s=void 0,a=document.querySelector("#"+n.id).querySelector("#"+n.id+bo);if(a&&(s=(0,T.getInstance)(a,H.DropDownButton)),s)for(var l=s.target.querySelectorAll(".e-ribbon-item"),p=0;p<l.length;p++){(u=parseInt(l[parseInt(p.toString(),10)].getAttribute("data-simplified-width"),10))&&l[parseInt(p.toString(),10)].setAttribute("data-simplified-width",t?(u-e).toString():(u+e).toString())}}}if(this.overflowDDB){var c=document.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+vo);for(l=this.overflowDDB.target.querySelectorAll(".e-ribbon-item"),r=0;r<l.length;r++){var u,d=l[parseInt(r.toString(),10)].closest("#"+this.tabs[parseInt(o.toString(),10)].id+vo);if(c&&d&&c.id===d.id)(u=parseInt(l[parseInt(r.toString(),10)].getAttribute("data-simplified-width"),10))&&l[parseInt(r.toString(),10)].setAttribute("data-simplified-width",t?(u-e).toString():(u+e).toString())}}},s.prototype.disableGroup=function(e){this.enableDisableGroup(e,!0)},s.prototype.enableGroup=function(e){this.enableDisableGroup(e,!1)},s.prototype.enableDisableGroup=function(e,t){var o,i=Zo(this.tabs,e);if(i){var r=this.tabObj.items[i.tabIndex].content,n=r.querySelector("#"+e);if(n?t?n.classList.add("e-disabled"):n.classList.remove("e-disabled"):this.updateInitialProps(i.tabIndex,e,"disabledGroups",t),this.overflowDDB){var s=this.overflowDDB.target.querySelector("#"+this.tabs[parseInt(i.tabIndex.toString(),10)].id+vo);if(i.group.enableGroupOverflow){var a=r.querySelector("#"+e+bo);a&&(o=(0,T.getInstance)(a,H.DropDownButton).target),o&&(t?o.classList.add("e-disabled"):o.classList.remove("e-disabled"))}else if(s){var l=s.querySelector("#"+e+go);l&&(t?l.classList.add("e-disabled"):l.classList.remove("e-disabled"))}}}},s.prototype.addCollection=function(e,t,o,i){var r=Zo(this.tabs,e);if(r&&("Row"!==r.group.orientation||3!==r.group.collections.length)){this.selectedTab===r.tabIndex&&this.clearOverflowResize();var n=r.group.collections.slice(),s=o?Uo(n,(function(e){return e.id===o})):-1;s=-1===s?n.length:s+(i?1:0),n.splice(s,0,t),r.group.setProperties({collections:n},!0),this.checkID([r.group.collections[parseInt(s.toString(),10)]],"collection",e),this.validateItemSize();var a=this.tabObj.items[r.tabIndex].content;if(""!==a.innerHTML){var l=r.group.collections[parseInt(s.toString(),10)],p=this.createCollection([l],r.group.orientation,r.group.id,r.group.header,r.group.enableGroupOverflow,r.tabIndex)[0];r.group.isCollapsed&&(a=this.ribbonDropDownModule.getOverflowDropDownPopup(r,a));var c=o?a.querySelector("#"+o):null;c?c.insertAdjacentElement(i?"afterend":"beforebegin",p):a.querySelector("#"+e+yo).append(p)}this.selectedTab===r.tabIndex&&this.refreshLayout()}},s.prototype.removeCollection=function(e){var o=Yo(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[o.tabIndex].content;if(""!==i.innerHTML){var r=void 0,n=void 0;this.activeLayout===t.Simplified&&(n=(r=o.group.enableGroupOverflow?i.querySelector("#"+o.group.id+bo):null)?(0,T.getComponent)(r,H.DropDownButton):this.overflowDDB);for(var s=0,a=o.collection.items;s<a.length;s++){var l=a[s];this.removeItemElement(i,l,n)}var p=i.querySelector("#"+e);p&&p.remove()}var c=o.group,u=c.collections.slice();u.splice(o.collectionIndex,1),c.setProperties({collections:u},!0),this.selectedTab===o.tabIndex&&this.refreshLayout()}},s.prototype.addItem=function(e,t,o,i){var r=Yo(this.tabs,e);if(r&&("Column"!==r.group.orientation||3!==r.collection.items.length)){this.selectedTab===r.tabIndex&&this.clearOverflowResize();var n=r.collection.items.slice(),s=o?Uo(n,(function(e){return e.id===o})):-1;s=-1===s?n.length:s+(i?1:0),n.splice(s,0,t),r.collection.setProperties({items:n},!0),this.checkID([r.collection.items[parseInt(s.toString(),10)]],"item",e),this.validateItemSize();var a=this.tabObj.items[r.tabIndex].content,l=a.querySelector("#"+r.group.id+go);if(""!==a.innerHTML){var p=r.collection.items[parseInt(s.toString(),10)],c=this.createItems([p],r.group.orientation,r.group.id,r.group.header,r.group.enableGroupOverflow,r.tabIndex,l)[0];r.group.isCollapsed&&(a=this.ribbonDropDownModule.getOverflowDropDownPopup(r,a));var u=o?a.querySelector("#"+o):null;u?u.closest("."+xt).insertAdjacentElement(i?"afterend":"beforebegin",c):c&&a.querySelector("#"+e).append(c)}this.selectedTab===r.tabIndex&&this.refreshLayout()}},s.prototype.removeItem=function(e){var o=Xo(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[o.tabIndex].content;if(""!==i.innerHTML){var r=void 0,n=void 0;this.activeLayout===t.Simplified&&(n=(r=o.group.enableGroupOverflow?i.querySelector("#"+o.group.id+bo):null)?(0,T.getComponent)(r,H.DropDownButton):this.overflowDDB);var s=o.item;this.removeItemElement(i,s,n)}var a=o.collection,l=a.items;l.splice(o.itemIndex,1),a.setProperties({items:l},!0),this.selectedTab===o.tabIndex&&this.refreshLayout()}},s.prototype.hideItem=function(e){this.showHideItem(e,!0)},s.prototype.showItem=function(e){this.showHideItem(e,!1)},s.prototype.showHideItem=function(e,t){var o,i=Xo(this.tabs,e);if(i)if(o="GroupButton"===i.item.type?ei(this,e+Po,i):ei(this,e,i)){var r=(0,T.closest)(o,".e-ribbon-item");this.updateHiddenElements(i.tabIndex,t?"hideItem":"showItem",e,t,r,i.group),this.selectedTab===i.tabIndex&&this.refreshLayout()}else this.updateInitialProps(i.tabIndex,e,"hiddenItems",t)},s.prototype.updateInitialProps=function(e,t,o,i){var r=this.initialPropsData[parseInt(e.toString(),10)];if(r||(this.initialPropsData[parseInt(e.toString(),10)]={},r=this.initialPropsData[parseInt(e.toString(),10)]),r){r[""+o]||(r[""+o]=[]);var n=r[""+o].indexOf(t);i?-1===n&&r[""+o].push(t):(-1!==n&&r[""+o].splice(n,1),0===r[""+o].length&&delete r[""+o],0===Object.keys(r).length&&delete this.initialPropsData[parseInt(e.toString(),10)])}},s.prototype.checkHiddenItems=function(e,t,o){var i,r=!0,n=this.tabObj.items[parseInt(o.toString(),10)].content,s=n.querySelector("#"+e.id);if(t){for(var a=0;a<e.collections.length;a++)if(r)for(var l=e.collections[parseInt(a.toString(),10)],p=0;p<l.items.length;p++){var c=l.items[parseInt(p.toString(),10)],u=void 0;if("GroupButton"===c.type){var d=Xo(this.tabs,c.id);u=ei(this,c.id+Po,d)}else u=ei(this,c.id);if(!(u?u.closest(".e-ribbon-item"):null).classList.contains("e-hidden")){r=!1;break}}r&&(s.classList.add("e-hide-group"),this.checkOverflowItems(t,n,e.enableGroupOverflow,o,e.id))}else s.classList.remove("e-hide-group"),this.checkOverflowItems(t,n,e.enableGroupOverflow,o,e.id);if("Simplified"===this.activeLayout&&!e.enableGroupOverflow){var h=s.querySelectorAll("."+xt);h&&(i=this.checkEmptyCollection(h),s.classList[i?"add":"remove"]("e-ribbon-emptyCollection"))}},s.prototype.checkOverflowItems=function(e,t,o,i,r){var n;if(o){var s=t.querySelector("#"+r+bo);s&&(n=(0,T.getInstance)(s,H.DropDownButton).target),n&&(e?n.classList.add("e-hide-group"):n.classList.remove("e-hide-group"))}else if(this.overflowDDB){var a=this.overflowDDB.target.querySelector("#"+this.tabs[parseInt(i.toString(),10)].id+vo);if(a){var l=a.querySelector("#"+r+go);l&&(e?l.classList.add("e-hide-group"):l.classList.remove("e-hide-group"))}}},s.prototype.updateTab=function(e){var t=e.id,o=Uo(this.tabs,(function(e){return e.id===t}));if(-1!==o){var i=this.tabObj.items[parseInt(o.toString(),10)].content,r=this.tabs[parseInt(o.toString(),10)].groups,s=this.tabObj.element;if(r&&""!==i.innerHTML&&(e.cssClass&&this.tabs[parseInt(o.toString(),10)].cssClass&&(i.classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass),s.querySelector(".e-active").classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass)),e.groups)){for(var a=0,l=r;a<l.length;a++){for(var p=l[a],c=p.isCollapsed?i.querySelector("#"+p.id+vo+So):null,u=0,d=p.collections;u<d.length;u++)for(var h=0,b=d[u].items;h<b.length;h++){var f=b[h],m=c?this.ribbonDropDownModule.getDDBItemElement(c,f.id):i.querySelector("#"+f.id);f.type===n.GroupButton&&"Classic"===this.activeLayout&&(m=c?this.ribbonDropDownModule.getDDBItemElement(c,f.id+Po):i.querySelector("#"+f.id+Po)),m&&this.destroyFunction(f,m)}c&&this.ribbonDropDownModule.removeOverFlowDropDown(c)}i.querySelectorAll(".e-ribbon-group").forEach((function(e){e.remove()}))}o===this.selectedTab&&(this.isAddRemove=!0);var y=this.tabs[parseInt(o.toString(),10)];if(y.setProperties(e,!0),this.setProperties({groups:this.checkID(y.groups,"group",y.id)},!0),this.validateItemSize(),""===i.innerHTML){if(e.groups){var g=this.createGroups(y.groups,o);(0,T.append)(g,i)}this.selectedTab===o&&this.refreshLayout(),e.cssClass&&(i.classList.add(y.cssClass),s.querySelector(".e-active").classList.add(y.cssClass)),e.header&&(s.querySelector("#"+t+fo).innerText=y.header)}}},s.prototype.updateGroup=function(e){var o=e.id,i=Zo(this.tabs,o);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var r,n,s=this.tabObj.items[i.tabIndex].content,a=s.querySelector("#"+o),l=a.querySelector("#"+e.id+go);if(""!==s.innerHTML){if(i.group.showLauncherIcon&&this.removeLauncherIcon(i.group.id,null,s),this.activeLayout===t.Simplified&&(n=(r=i.group.enableGroupOverflow?s.querySelector("#"+i.group.id+bo):null)?(0,T.getComponent)(r,H.DropDownButton):this.overflowDDB),e.cssClass&&i.group.cssClass&&(a.classList.remove(i.group.cssClass),l&&l.classList.remove(i.group.cssClass)),(e.collections||e.orientation)&&(i.group.collections||i.group.orientation)){for(var p=0,c=i.group.collections;p<c.length;p++)for(var u=0,d=c[p].items;u<d.length;u++){var h=d[u];this.removeItemElement(s,h,n)}if(a.querySelectorAll(".e-ribbon-collection").forEach((function(e){e.remove()})),e.orientation){var b=(g=l.querySelector(".e-ribbon-group-content")).classList.value.match(/(e-ribbon-[column|row]+)/g);b&&(0,T.removeClass)([g],b)}}if(this.activeLayout===t.Simplified)if(i.group.enableGroupOverflow)(0===n.target.childElementCount||1===n.target.childElementCount&&this.isHeaderVisible(n.target,i.group.id))&&this.removeOverflowButton(n);else{var f=n.target.querySelector("#"+i.group.id+go);f&&1===f.childElementCount&&f.remove();var m=n.target.querySelector("#"+this.tabs[parseInt(i.tabIndex.toString(),10)].id+vo);m&&0===m.childElementCount&&m.remove()}}var y=i.group;if(y.setProperties(e,!0),y.setProperties({collections:this.checkID(y.collections,"collection",y.id)},!0),this.validateItemSize(),""!==s.innerHTML){if(e.showLauncherIcon&&this.createLauncherIcon(y.id,l,i.tabIndex),e.collections||e.orientation){var g;(g=l.querySelector(".e-ribbon-group-content")).classList.add("Column"===y.orientation||"Simplified"===this.activeLayout?Mt:_t);var v=this.createCollection(y.collections,y.orientation,y.id,y.header,y.enableGroupOverflow,i.tabIndex,l);(0,T.append)(v,g)}if(this.selectedTab===i.tabIndex&&this.refreshLayout(),e.cssClass&&(a.classList.add(y.cssClass),l&&l.classList.add(y.cssClass)),e.header)if(this.activeLayout!==t.Simplified||e.enableGroupOverflow)if(this.activeLayout!==t.Classic||y.isCollapsed){if(this.activeLayout===t.Classic&&y.isCollapsed){var S,I=a.querySelector("#"+y.id+vo+So);(S=(0,T.getInstance)(I,H.DropDownButton).target.querySelector("#"+e.id+fo))&&(S.innerText=y.header)}}else a.querySelector(".e-ribbon-group-header").innerText=y.header;else(S=n.target.querySelector("#"+e.id+fo))&&(S.innerText=y.header)}}},s.prototype.updateCollection=function(e){var o=e.id,i=Yo(this.tabs,o);if(i){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var r=this.tabObj.items[i.tabIndex].content,n=r.querySelector("#"+o);if(""!==r.innerHTML){var s=void 0,a=void 0;if(this.activeLayout===t.Simplified&&(a=(s=i.group.enableGroupOverflow?r.querySelector("#"+i.group.id+bo):null)?(0,T.getComponent)(s,H.DropDownButton):this.overflowDDB),e.cssClass&&i.collection.cssClass&&n.classList.remove(i.collection.cssClass),e.items&&i.collection.items)for(var l=0,p=i.collection.items;l<p.length;l++){var c=p[l];this.removeItemElement(r,c,a)}}var u=i.collection;if(u.setProperties(e,!0),u.setProperties({items:this.checkID(u.items,"item",u.id)},!0),this.validateItemSize(),""!==r.innerHTML&&e.items){var d=r.querySelector("#"+i.group.id+go),h=this.createItems(u.items,i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex,d);(0,T.append)(h,n)}this.selectedTab===i.tabIndex&&this.refreshLayout(),e.cssClass&&n.classList.add(u.cssClass)}},s.prototype.updateItem=function(e){var o=e.id,s=Xo(this.tabs,o);if(s){this.selectedTab===s.tabIndex&&this.clearOverflowResize();var a=this.tabObj.items[s.tabIndex].content,l=a.querySelector("#"+s.group.id);if(l){var p=l.querySelector("#"+s.group.id+go),c=null,u=null,d=void 0,h=void 0;if(""!==a.innerHTML){if(this.activeLayout===t.Simplified&&(h=(d=s.group.enableGroupOverflow?a.querySelector("#"+s.group.id+bo):null)?(0,T.getComponent)(d,H.DropDownButton):this.overflowDDB),this.activeLayout===t.Simplified&&s.item.displayOptions===r.Overflow){if(c=h.target.querySelector("#"+o+go),u=h.target.querySelector("#"+o),e.displayOptions&&e.displayOptions!==r.Overflow){var b=p.querySelector("#"+s.collection.id);b&&b.appendChild(c)}}else c=p.querySelector("#"+o+go),u=a.querySelector("#"+o),"GroupButton"===s.item.type&&this.activeLayout===t.Classic&&(u=a.querySelector("#"+o+Po)),this.activeLayout===t.Simplified&&e.displayOptions===r.Overflow&&(this.createOverflowPopup(s.item,s.tabIndex,s.group.enableGroupOverflow,s.group.id,s.group.header,c,p),s.item.type!==n.DropDown&&s.item.type!==n.SplitButton&&e.type!==n.GroupButton&&e.type!==n.Gallery||this.updatePopupItems(s.item,c,s.group.enableGroupOverflow,!0));e.cssClass&&s.item.cssClass&&c.classList.remove(s.item.cssClass),this.destroyFunction(s.item,u),u.remove();var f=c.classList.value.match(/(e-ribbon-[large|medium|small]+-item)/g);f&&(0,T.removeClass)([c],f)}var m=s.item;if(m.setProperties(e,!0),this.validateItemSize(),""!==a.innerHTML){c=this.activeLayout!==t.Simplified||m.displayOptions!==r.Overflow?p.querySelector("#"+o+go):h.target.querySelector("#"+o+go),m.ribbonTooltipSettings&&ti(m.ribbonTooltipSettings)&&(c.classList.add(Ft),this.tooltipData.push({id:c.id,data:m.ribbonTooltipSettings}));var y=m.activeSize;"Simplified"===this.activeLayout&&(y=m.allowedSizes===i.Large||m.allowedSizes&i.Medium||m.displayOptions===r.Overflow?i.Medium:i.Small,m.setProperties({activeSize:y},!0)),y&i.Large?c.classList.add(qt,jt):y&i.Medium?c.classList.add(Rt):c.classList.add(At),this.createRibbonItem(m,c),"Simplified"===this.activeLayout&&s.group.enableGroupOverflow&&(0===h.target.childElementCount||1===h.target.childElementCount&&this.isHeaderVisible(h.target,s.group.id))&&this.removeOverflowButton(h),this.selectedTab===s.tabIndex&&this.refreshLayout(),e.cssClass&&c.classList.add(m.cssClass),!m.disabled&&c.classList.contains(Ke)&&c.classList.remove(Ke),this.enableDisableItem(m.id,m.disabled)}}else this.isUpdateItems=!0,this.itemsModel.push(e),this.targetTabs[e.id]=s.tabIndex}},s.prototype.removeItemElement=function(e,o,i){var n=null;this.activeLayout===t.Classic?(n=o.displayOptions&r.Classic?e.querySelector("#"+o.id):null,"GroupButton"===o.type&&(n=o.displayOptions&r.Classic?e.querySelector("#"+o.id+Po):null)):(n=o.displayOptions&r.Simplified?e.querySelector("#"+o.id):null)||(n=i.target.querySelector("#"+o.id)),n&&(this.destroyFunction(o,n),"GroupButton"===o.type&&this.activeLayout===t.Simplified?document.getElementById(o.id+go).remove():n.closest("#"+o.id+go).remove())},s.prototype.enableItem=function(e){this.enableDisableItem(e,!1)},s.prototype.disableItem=function(e){this.enableDisableItem(e,!0)},s.prototype.getItem=function(e){return Xo(this.tabs,e).item},s.prototype.enableDisableItem=function(e,t){var o,i=!1,r=Xo(this.tabs,e);if(r&&(r.item.setProperties({disabled:t},!0),o="GroupButton"===r.item.type?ei(this,e+Po,r):ei(this,e,r))){var n=(0,T.closest)(o,".e-ribbon-item"),s=this.getItemModuleName(r.item);if(i=t?!n.classList.contains(Ke):n.classList.contains(Ke),"template"!==s){if(i)if("group-btn"===s&&"Simplified"===this.activeLayout){$o(o,"dropdown-btn",t);for(var a=0;a<r.item.groupButtonSettings.items.length;a++){$o(document.querySelector("#"+e+Po+a),"btn",t)}}else if("group-btn"===s&&"Classic"===this.activeLayout)for(a=0;a<r.item.groupButtonSettings.items.length;a++){$o(o.querySelector("#"+e+Po+a),"btn",t)}else $o(o,s,t)}else o.classList.toggle(Ke,t),o.toggleAttribute("disabled",t);n.classList.toggle(Ke,r.item.disabled)}},s.prototype.unwireEvents=function(){T.EventHandler.remove(window,"resize",this.resizeHandler),T.EventHandler.remove(document.body,"keydown",this.keytipActionHandler),T.EventHandler.remove(document,"mousedown",this.mouseEventHandler),T.EventHandler.remove(document,"scroll",this.mouseEventHandler)},s.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,ri(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&&((0,T.remove)(this.ribbonTempEle),this.ribbonTempEle=null),e.prototype.destroy.call(this),this.tabObj.destroy(),this.tabObj=void 0,this.initialPropsData={},this.hiddenGroups=[],this.hiddenElements={},this.keyTipElements={},this.itemsModel=[],this.targetTabs={},(0,T.remove)(this.element.querySelector("#"+this.element.id+ao)),this.element.style.removeProperty(Eo),this.element.style.removeProperty(Do),this.element.style.removeProperty("width"),this.cssClass&&(0,T.removeClass)([this.element],this.cssClass.split(Qe)),this.element.classList.remove(Ue,Zt,ut,at,ht,"e-rbn"),this.unwireEvents()},s.prototype.onPropertyChanged=function(e,t){for(var o,i,r=0,n=Object.keys(e);r<n.length;r++){switch(n[r]){case"activeLayout":this.switchLayout();break;case"cssClass":t.cssClass&&(o=this.element.classList).remove.apply(o,t.cssClass.split(Qe)),e.cssClass&&(i=this.element.classList).add.apply(i,e.cssClass.split(Qe));break;case"isMinimized":this.element.classList.toggle(ht,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(Ue,this.enableRtl),this.updateCommonProperty({enableRtl:e.enableRtl}),this.scrollModule&&this.scrollModule.setProperties({enableRtl:e.enableRtl});break;case"launcherIconCss":for(var s=0;s<this.tabs.length;s++){var a=this.tabObj.items[parseInt(s.toString(),10)].content,l=this.tabs[parseInt(s.toString(),10)];if(a.querySelector("."+bt))for(var p=0,c=l.groups;p<c.length;p++){var u=c[p];if(u.showLauncherIcon){var d=Lt+" "+(this.launcherIconCss||Et);if(u.isCollapsed){var h=a.querySelector("#"+u.id+vo+So);(0,T.getComponent)(h,H.DropDownButton).target.querySelector("#"+u.id+mo).className=d}else{(h=a.querySelector("#"+u.id+mo)).className=d}}}}break;case"selectedTab":var b=this.tabObj.element.querySelectorAll(".e-toolbar-item")[parseInt(e.selectedTab.toString(),10)];b.classList.contains("e-hidden")||b.classList.contains("e-disable")||this.tabObj.setProperties({selectedItem:e.selectedTab});break;case"tabAnimation":this.tabObj.setProperties({animation:e.tabAnimation});break;case"tabs":this.reRenderTabs(e.tabs);break;case"contextualTabs":for(s=0;s<this.contextualTabs.length;s++)e.contextualTabs[parseInt(s.toString(),10)]&&this.ribbonContextualTabModule.updateContextualTabs(e.contextualTabs[parseInt(s.toString(),10)],this.contextualTabs[parseInt(s.toString(),10)]);break;case"width":this.element.style.width=(0,T.formatUnit)(e.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&&((0,T.remove)(this.ribbonTempEle),this.ribbonTempEle=null,this.tabObj.element.style.setProperty(Do,"0px")),this.helpPaneTemplate&&this.createHelpPaneTemplate(),this.tabObj.tbObj.refreshOverflow();break;case"hideLayoutSwitcher":this.hideLayoutSwitcher?this.removeExpandCollapse():this.addExpandCollapse()}}},ci([(0,T.Property)("Classic")],s.prototype,"activeLayout",void 0),ci([(0,T.Property)("")],s.prototype,"cssClass",void 0),ci([(0,T.Property)(!1)],s.prototype,"enableKeyTips",void 0),ci([(0,T.Property)("")],s.prototype,"layoutSwitcherKeyTip",void 0),ci([(0,T.Complex)({},Te)],s.prototype,"fileMenu",void 0),ci([(0,T.Complex)({},qe)],s.prototype,"backStageMenu",void 0),ci([(0,T.Property)("")],s.prototype,"launcherIconCss",void 0),ci([(0,T.Property)(!1)],s.prototype,"isMinimized",void 0),ci([(0,T.Property)("en-us")],s.prototype,"locale",void 0),ci([(0,T.Property)(0)],s.prototype,"selectedTab",void 0),ci([(0,T.Complex)({},B.TabAnimationSettings)],s.prototype,"tabAnimation",void 0),ci([(0,T.Collection)([],we)],s.prototype,"tabs",void 0),ci([(0,T.Collection)([],je)],s.prototype,"contextualTabs",void 0),ci([(0,T.Property)("100%")],s.prototype,"width",void 0),ci([(0,T.Property)("")],s.prototype,"helpPaneTemplate",void 0),ci([(0,T.Property)(!1)],s.prototype,"hideLayoutSwitcher",void 0),ci([(0,T.Event)()],s.prototype,"tabSelecting",void 0),ci([(0,T.Event)()],s.prototype,"tabSelected",void 0),ci([(0,T.Event)()],s.prototype,"ribbonExpanding",void 0),ci([(0,T.Event)()],s.prototype,"ribbonCollapsing",void 0),ci([(0,T.Event)()],s.prototype,"launcherIconClick",void 0),ci([(0,T.Event)()],s.prototype,"created",void 0),ci([(0,T.Event)()],s.prototype,"overflowPopupOpen",void 0),ci([(0,T.Event)()],s.prototype,"overflowPopupClose",void 0),s=a=ci([T.NotifyPropertyChanges],s)}(T.Component),di=function(){function e(e){this.parent=e}return e.prototype.getModuleName=function(){return"ribbonFileMenu"},e.prototype.destroy=function(){this.fileMenuDDB&&this.destroyDDB(),this.parent=null},e.prototype.createFileMenu=function(e){var t=this;if(e.visible){this.ddbElement=this.parent.createElement("button",{id:this.parent.element.id+Io});var o=this.parent.tabObj.element,i=o.querySelector(".e-toolbar");o.insertBefore(this.ddbElement,i),this.fileMenuDDB=new H.DropDownButton({content:e.text,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-file-menu e-caret-hide",created:function(){o.style.setProperty(Eo,t.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(e),this.parent.tabObj.refreshActiveTabBorder(),this.addFileMenuTooltip(e),this.addFileMenuKeytip()}},e.prototype.addFileMenuTooltip=function(e){ti(e.ribbonTooltipSettings)&&(this.ddbElement.classList.add(Ft),this.parent.tooltipData.push({id:this.ddbElement.id,data:e.ribbonTooltipSettings}))},e.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}))},e.prototype.ddbBeforeEvent=function(e,t){!e&&t.event&&t.event.target.closest(".e-ribbon-menu")&&(t.cancel=!0);var o=e?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(o){var i={cancel:t.cancel,element:t.element,event:t.event};o.call(this,i),t.cancel=i.cancel}},e.prototype.ddbAfterEvent=function(e,t){(e?this.fileMenuDDB.target:this.fileMenuDDB.element).focus();var o=e?this.parent.fileMenu.open:this.parent.fileMenu.close;if(o){var i={element:t.element};o.call(this,i)}},e.prototype.cloneMenuItem=function(e){for(var t=[],o=0;o<e.length;o++){var i=e[parseInt(o.toString(),10)];t.push({iconCss:i.iconCss,id:i.id,separator:i.separator,text:i.text,url:i.url,items:this.cloneMenuItem(i.items)})}return t},e.prototype.createRibbonMenu=function(e){var t=this,o=this.parent.createElement("ul",{id:this.parent.element.id+Oo});this.fileMenuDDB.setProperties({target:o}),this.menuctrl=new B.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-menu",animationSettings:e.animationSettings,items:this.cloneMenuItem(e.menuItems),showItemOnClick:e.showItemOnClick,template:e.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)},o),T.EventHandler.add(o,"keydown",(function(e){"Tab"===e.key&&t.fileMenuDDB.toggle()}),this)},e.prototype.menuBeforeEvent=function(e,t){var o=e?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(o){var i={cancel:t.cancel,element:t.element,event:t.event,items:t.items,parentItem:t.parentItem};o.call(this,i),t.cancel=i.cancel}},e.prototype.menuAfterEvent=function(e,t){var o=e?this.parent.fileMenu.open:this.parent.fileMenu.close;if(o){var i={element:t.element,items:t.items,parentItem:t.parentItem};o.call(this,i)}},e.prototype.beforeItemRender=function(e){var t=this.parent.fileMenu.beforeItemRender;if(t){var o={element:e.element,item:e.item};t.call(this,o)}},e.prototype.menuSelect=function(e){var t=this.parent.fileMenu.select;if(t){var o={element:e.element,item:e.item,event:e.event};t.call(this,o),e.element.classList.contains("e-menu-caret-icon")||this.fileMenuDDB.toggle()}},e.prototype.setCommonProperties=function(e){this.fileMenuDDB&&(this.fileMenuDDB.setProperties(e),this.menuctrl&&this.menuctrl.setProperties(e))},e.prototype.updateFileMenu=function(e){e.visible?this.fileMenuDDB?(e.text&&(this.fileMenuDDB.setProperties({content:e.text}),this.parent.tabObj.element.style.setProperty(Eo,this.ddbElement.offsetWidth+"px")),e.popupTemplate?(this.menuctrl&&this.destroyMenu(),this.fileMenuDDB.setProperties({target:e.popupTemplate})):this.menuctrl?this.menuctrl.setProperties({animationSettings:e.animationSettings,items:this.cloneMenuItem(e.menuItems),showItemOnClick:e.showItemOnClick,template:e.itemTemplate}):this.createRibbonMenu(e),this.removeFileMenuTooltip(),this.removeFileMenuKeytip(),this.addFileMenuTooltip(e),this.addFileMenuKeytip()):this.createFileMenu(e):this.fileMenuDDB&&this.destroyDDB(),this.parent.tabObj.refreshActiveTabBorder()},e.prototype.destroyMenu=function(){this.menuctrl&&(this.menuctrl.destroy(),this.menuctrl=null)},e.prototype.destroyDDB=function(){this.removeFileMenuTooltip(),this.removeFileMenuKeytip(),this.parent.tabObj.element.style.removeProperty(Eo),this.destroyMenu(),this.fileMenuDDB.destroy(),this.fileMenuDDB=null,(0,T.remove)(this.ddbElement),this.ddbElement=null},e.prototype.removeFileMenuTooltip=function(){var e=this,t=Uo(this.parent.tooltipData,(function(t){return t.id===e.ddbElement.id}));-1!==t&&(this.ddbElement.classList.remove(Ft),this.parent.tooltipData.splice(t,1))},e.prototype.removeFileMenuKeytip=function(){var e=this;if(this.parent.keyTipElements.filemenu){var t=Uo(this.parent.keyTipElements.filemenu,(function(t){return t.id===e.ddbElement.id}));-1!==t&&this.parent.keyTipElements.filemenu.splice(t,1)}},e.prototype.addItems=function(e,t,o,i){o?this.menuctrl.insertAfter(e,t,i):this.menuctrl.insertBefore(e,t,i),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},e.prototype.removeItems=function(e,t){this.menuctrl.removeItems(e,t),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},e.prototype.enableItems=function(e,t){this.menuctrl.enableItems(e,!0,t),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},e.prototype.disableItems=function(e,t){this.menuctrl.enableItems(e,!1,t),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},e.prototype.setItem=function(e,t,o){this.menuctrl.setItem(e,t,o),this.menuctrl.refresh(),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},e}(),hi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),bi=function(e){function t(t){var o=e.call(this)||this;return o.parent=t,o}return hi(t,e),t.prototype.render=function(){},t.prototype.preRender=function(){},t.prototype.getPersistData=function(){return""},t.prototype.onPropertyChanged=function(){},t.prototype.getModuleName=function(){return"ribbonBackstage"},t.prototype.destroy=function(){this.backstageButton&&this.destroyDDB(),this.parent=null},t.prototype.createBackStage=function(e){var t=this;if(e.visible){this.backstageButtonEle=this.parent.createElement("button",{id:this.parent.element.id+Co});var o=this.parent.tabObj.element,i=o.querySelector(".e-toolbar");if(o.insertBefore(this.backstageButtonEle,i),this.backstageButton=new Ge.Button({content:e.text,enableRtl:this.parent.enableRtl,cssClass:to,created:function(){o.style.setProperty(Eo,t.backstageButtonEle.offsetWidth+"px")}},this.backstageButtonEle),this.createBackStagePopup(e),this.parent.backStageMenu.template)this.createBackStageTemplate(this.parent.backStageMenu.template);else{for(var r=0,n=0,s=0;s<e.items.length;s++){e.items[parseInt(s.toString(),10)].isFooter?r++:n++}n>0&&this.createBackstageMenu(e,!1),r>0&&this.createBackstageMenu(e,!0),this.menuCtrl&&this.checkMenuItems(this.menuCtrl.items),this.footerMenuCtrl&&this.checkMenuItems(this.footerMenuCtrl.items)}this.backstageButtonEle.onclick=function(o){o.stopPropagation(),t.showBackstage(),t.popupHTMLElement.classList.add(Qt);var i=t.menuWrapper.querySelector(".e-menu-item.e-selected");i&&i.classList.remove("e-selected");for(var r=0;r<e.items.length;r++){var n=e.items[parseInt(r.toString(),10)];if(!n.isFooter&&t.menuCtrl.items[0].text===n.text){var s=t.popupHTMLElement.querySelector("#"+t.menuCtrl.items[0].id);s&&(s.classList.add("e-selected"),s.focus(),t.menuIndex=0,t.isCloseBtn=!1),t.createBackStageContent(t.menuCtrl.items[0].id,n.content);break}}},this.parent.tabObj.refreshActiveTabBorder(),this.addBackStageMenuTooltip(e),this.addBackStageMenuKeyTip(e),T.EventHandler.add(document,"click",this.onClickEvent,this)}},t.prototype.onClickEvent=function(e){var t=e.target;this.popupHTMLElement.contains(t)||this.hideBackstage()},t.prototype.addBackStageMenuTooltip=function(e){ti(e.ribbonTooltipSettings)&&(this.backstageButtonEle.classList.add(Ft),this.parent.tooltipData.push({id:this.backstageButtonEle.id,data:e.ribbonTooltipSettings}))},t.prototype.addBackStageMenuKeyTip=function(e){if(e.keyTip&&(this.parent.keyTipElements.backstage||(this.parent.keyTipElements.backstage=[]),this.parent.keyTipElements.backstage.push({id:this.backstageButtonEle.id,type:"backstage",keyTip:e.keyTip})),e.items&&e.items.length){this.parent.keyTipElements.backstageMenu||(this.parent.keyTipElements.backstageMenu=[]);for(var t=0;t<e.items.length;t++)e.items[parseInt(t.toString(),10)].keyTip&&this.parent.keyTipElements.backstageMenu.push({id:e.items[parseInt(t.toString(),10)].id,type:"backstageMenu",keyTip:e.items[parseInt(t.toString(),10)].keyTip})}},t.prototype.checkMenuItems=function(e){for(var t=0;t<e.length;t++){var o=e[parseInt(t.toString(),10)];if(!o.iconCss)this.popupHTMLElement.querySelector("#"+o.id).classList.add(so)}},t.prototype.createBackStagePopup=function(e){var t=this;this.popupHTMLElement=this.parent.createElement("div",{id:this.parent.element.id+wo,className:Jt}),e.target?(e.target instanceof HTMLElement?e.target:document.querySelector(e.target)).appendChild(this.popupHTMLElement):this.parent.element.appendChild(this.popupHTMLElement),this.popupEle=new Ho.Popup(this.popupHTMLElement,{height:e.height,width:e.width,relateTo:e.target||this.parent.element,enableRtl:this.parent.enableRtl}),this.parent.enableRtl&&this.updatePopupPositionOnRtl(this.parent.enableRtl),this.hideBackstage(),T.EventHandler.add(this.popupHTMLElement,"keyup",(function(e){"Escape"===e.code&&t.hideBackstage(),t.handleNavigation(e)}),this)},t.prototype.handleNavigation=function(e){var t=this.popupHTMLElement.querySelector(".e-ribbon-close-btn"),o=this.popupHTMLElement.querySelectorAll(".e-menu-item"),i="ArrowUp"===e.key,r="ArrowDown"===e.key;if(i||r){i&&this.menuIndex>0||r&&this.menuIndex<o.length-1&&!this.isCloseBtn?this.menuIndex=i?this.menuIndex-1:this.menuIndex+1:t&&!this.isCloseBtn?(t.focus(),this.isCloseBtn=!0):(this.menuIndex=i?o.length-1:0,this.isCloseBtn=!1);for(var n=0;n<o.length;n++)o[parseInt(n.toString(),10)].classList.remove("e-focused");this.isCloseBtn||(i&&o[this.menuIndex].classList.contains("e-separator")?this.menuIndex--:r&&o[this.menuIndex].classList.contains("e-separator")&&this.menuIndex++,o[this.menuIndex].classList.add("e-focused"),o[this.menuIndex].focus())}},t.prototype.updatePopupPositionOnRtl=function(e){var t=this.popupHTMLElement.style;e?(t.right=t.left,t.left="unset"):(t.left=t.right,t.right="unset")},t.prototype.createBackstageMenu=function(e,t){var o,i=this;if(this.popupHTMLElement.querySelector("#"+this.parent.element.id+"_wrapper")||(this.menuWrapper=this.parent.createElement("div",{id:this.parent.element.id+"_wrapper",className:ro}),this.popupHTMLElement.appendChild(this.menuWrapper)),e.backButton.visible&&!t){var r=this.parent.createElement("button",{id:this.parent.element.id+"_close",className:"e-ribbon-close-btn"});this.closeBtn=new Ge.Button({content:e.backButton.text,iconCss:e.backButton.iconCss?e.backButton.iconCss:We,enableRtl:this.parent.enableRtl},r),this.menuWrapper.append(r),r.onclick=function(){i.popupHTMLElement.classList.remove(Qt),i.hideBackstage(),i.isBackButtonClicked=!0}}this.popupHTMLElement.querySelector("#"+this.parent.element.id+"_itemswrapper")||(this.itemsWrapperEle=this.parent.createElement("div",{id:this.parent.element.id+"_itemswrapper",className:no}),this.menuWrapper.append(this.itemsWrapperEle)),t?(o=this.parent.createElement("ul",{id:this.parent.element.id+To}),this.itemsWrapperEle.appendChild(o)):(this.ulMenuElem=this.parent.createElement("ul",{id:this.parent.element.id+ko}),this.itemsWrapperEle.appendChild(this.ulMenuElem)),t?this.footerMenuCtrl=new B.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:oo,items:this.cloneFooterMenuItem(e.items),select:this.menuSelect.bind(this,e)},o):this.menuCtrl=new B.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:oo,items:this.cloneMenuItem(e.items),select:this.menuSelect.bind(this,e)},this.ulMenuElem)},t.prototype.cloneMenuItem=function(e){for(var t=[],o=0;o<e.length;o++){var i=e[parseInt(o.toString(),10)];i.isFooter||t.push({id:i.id,iconCss:i.iconCss,separator:i.separator,text:i.text})}return t},t.prototype.cloneFooterMenuItem=function(e){for(var t=[],o=0;o<e.length;o++){var i=e[parseInt(o.toString(),10)];i.isFooter&&t.push({id:i.id,iconCss:i.iconCss,separator:i.separator,text:i.text})}return t},t.prototype.createBackStageContent=function(e,t){var o="backstageContent";this.clearTemplate([o]),this.backstageContentEle?(this.backstageContentEle.innerHTML="",this.backstageContentEle.id=e+yo):this.backstageContentEle=this.parent.createElement("div",{id:e+yo,className:$t});var i=Vo(t);return(0,T.append)(i({},this,o,"backstageContent",this.parent.isStringTemplate),this.backstageContentEle),t&&this.popupHTMLElement.append(this.backstageContentEle),this.renderReactTemplates(),i},t.prototype.createBackStageTemplate=function(e){var t="backstageTemplate";this.clearTemplate([t]),this.backstageTempEle=this.parent.createElement("div",{id:this.parent.element.id+Co+"_template",className:io});var o=Vo(e);return(0,T.append)(o({},this,t,"backstageTemplate",this.parent.isStringTemplate),this.backstageTempEle),this.popupHTMLElement.append(this.backstageTempEle),this.renderReactTemplates(),o},t.prototype.menuSelect=function(e,t){for(var o=0;o<e.items.length;o++){var i=e.items[parseInt(o.toString(),10)];if(i.text===t.item.text){this.contentItem=i,this.menuIndex=o;break}}this.createBackStageContent(t.item.id,this.contentItem.content);var r={cancel:!1,target:t.element,item:this.contentItem,isBackButton:this.isBackButtonClicked};this.contentItem.backStageItemClick&&this.contentItem.backStageItemClick.call(this,r)},t.prototype.setCommonProperties=function(e){this.backstageButton&&(this.backstageButton.setProperties(e),this.popupEle&&(this.popupEle.setProperties(e),this.popupHTMLElement&&this.updatePopupPositionOnRtl(e.enableRtl),this.menuCtrl&&(this.menuCtrl.setProperties(e),this.closeBtn&&this.closeBtn.setProperties(e)),this.footerMenuCtrl&&this.footerMenuCtrl.setProperties(e)))},t.prototype.updateBackStageMenu=function(e){if(e.visible)if(this.backstageButton){if(e.text&&(this.backstageButton.setProperties({content:e.text}),this.parent.tabObj.element.style.setProperty(Eo,this.backstageButtonEle.offsetWidth+"px")),this.popupEle&&this.popupEle.setProperties({height:e.height,width:e.width,target:e.target||this.parent.element}),e.template)this.backstageTempEle&&((0,T.remove)(this.backstageTempEle),this.backstageTempEle=null),this.createBackStageTemplate(e.template);else if(this.menuCtrl&&this.menuCtrl.setProperties({items:this.cloneMenuItem(e.items)}),this.footerMenuCtrl)this.footerMenuCtrl.setProperties({items:this.cloneFooterMenuItem(e.items)});else{for(var t=0,o=0,i=0;i<e.items.length;i++){e.items[parseInt(i.toString(),10)].isFooter?t++:o++}o>0&&this.createBackstageMenu(e,!1),t>0&&this.createBackstageMenu(e,!0)}this.removeBackstageMenuTooltip(),this.removeBackstageMenuKeyTip(),this.addBackStageMenuTooltip(e),this.addBackStageMenuKeyTip(e)}else this.createBackStage(e);else this.backstageButton&&this.destroyDDB();this.parent.tabObj.refreshActiveTabBorder()},t.prototype.destroyMenu=function(){this.menuCtrl&&(this.menuCtrl.destroy(),this.menuCtrl=null)},t.prototype.destroyDDB=function(){this.removeBackstageMenuTooltip(),this.removeBackstageMenuKeyTip(),this.parent.tabObj.element.style.removeProperty(Eo),this.destroyMenu(),this.backstageButton.destroy(),this.backstageButton=null,(0,T.remove)(this.backstageButtonEle),this.backstageButtonEle=null,T.EventHandler.remove(document,"click",this.onClickEvent)},t.prototype.removeBackstageMenuTooltip=function(){var e=this,t=Uo(this.parent.tooltipData,(function(t){return t.id===e.backstageButtonEle.id}));-1!==t&&(this.backstageButtonEle.classList.remove(Ft),this.parent.tooltipData.splice(t,1))},t.prototype.removeBackstageMenuKeyTip=function(){var e=this;if(this.parent.keyTipElements.backstage&&this.parent.keyTipElements.backstage.length){var t=Uo(this.parent.keyTipElements.backstage,(function(t){return t.id===e.backstageButtonEle.id}));-1!==t&&this.parent.keyTipElements.backstage.splice(t,1)}if(this.parent.keyTipElements.backstageMenu&&this.parent.keyTipElements.backstageMenu.length)for(var o=0;o<this.parent.keyTipElements.backstageMenu.length;o++)this.parent.keyTipElements.backstageMenu.splice(o,1),o--},t.prototype.addBackstageItems=function(e,t,o,i){for(var r=0;r<e.length;r++){(a=e[parseInt(r.toString(),10)]).isFooter?o?this.footerMenuCtrl.insertAfter(e,t,i):this.footerMenuCtrl.insertBefore(e,t,i):o?this.menuCtrl.insertAfter(e,t,i):this.menuCtrl.insertBefore(e,t,i)}var n=[].concat(this.menuCtrl.items,this.footerMenuCtrl.items),s=this.parent.backStageMenu;for(r=0;r<s.items.length;r++)for(var a=s.items[parseInt(r.toString(),10)],l=0;l<n.length;l++){var p=n[parseInt(l.toString(),10)];if(a.text===p.text){p.content=a.content;break}}this.parent.backStageMenu.setProperties({items:n},!0)},t.prototype.removeBackstageItems=function(e,t){this.menuCtrl.removeItems(e,t),this.footerMenuCtrl.removeItems(e,t);var o=[].concat(this.menuCtrl.items,this.footerMenuCtrl.items);this.parent.backStageMenu.setProperties({items:o},!0)},t.prototype.showBackstage=function(){this.popupEle.show()},t.prototype.hideBackstage=function(){this.popupEle.element.classList.contains(Qt)&&this.popupEle.element.classList.remove(Qt),this.popupEle.hide()},t}(T.Component),fi=function(){function e(e){this.parent=e}return e.prototype.getModuleName=function(){return"ribbonContextualTab"},e.prototype.destroy=function(){this.parent=null},e.prototype.addContextualTabs=function(){for(var e=!1,t=0;t<this.parent.contextualTabs.length;t++)for(var o=0;o<this.parent.contextualTabs[parseInt(t.toString(),10)].tabs.length;o++){this.parent.addTab(this.parent.contextualTabs[parseInt(t.toString(),10)].tabs[parseInt(o.toString(),10)]);var i=this.parent.tabs.length-1,r=this.parent.tabObj.element.querySelectorAll(".e-toolbar-item")[parseInt(i.toString(),10)];r.classList.add(ot),r.classList.add("e-hidden"),this.parent.contextualTabs[parseInt(t.toString(),10)].visible&&(this.parent.showTab(this.parent.contextualTabs[parseInt(t.toString(),10)].tabs[parseInt(o.toString(),10)].id,!0),this.parent.contextualTabs[parseInt(t.toString(),10)].isSelected&&!e&&(this.parent.selectTab(this.parent.contextualTabs[parseInt(t.toString(),10)].tabs[0].id),e=!0))}},e.prototype.updateContextualTabs=function(e,t){if(!(0,T.isNullOrUndefined)(e.visible))for(var o=0;o<t.tabs.length;o++)e.visible?this.parent.showTab(t.tabs[parseInt(o.toString(),10)].id,!0):this.parent.hideTab(t.tabs[parseInt(o.toString(),10)].id,!0);if(!(0,T.isNullOrUndefined)(e.isSelected))if(e.isSelected&&t.visible)this.parent.selectTab(t.tabs[0].id);else{var i=this.parent.tabObj.element;for(o=0;o<this.parent.tabs.length;o++){var r=i.querySelectorAll(".e-toolbar-item")[parseInt(o.toString(),10)];if(!r.classList.contains("e-hidden")&&!r.classList.contains("e-disable")){this.parent.selectTab(this.parent.tabs[parseInt(o.toString(),10)].id);break}}}if(e.tabs)for(var n=function(e){var o=parseInt(e,10),i=s.parent.tabs.filter((function(e){return e.id===t.tabs[parseInt(o.toString(),10)].id}))[0];s.parent.updateTab(i)},s=this,a=0,l=Object.keys(e.tabs);a<l.length;a++){n(l[a])}},e}(),mi=function(){function e(e){this.isKeytipPopupOpen=!1,this.parent=e}return e.prototype.getModuleName=function(){return"ribbonKeyTip"},e.prototype.destroy=function(){this.parent=null},e.prototype.createKeytip=function(e){if(this.parent.keyTipElements){var t=void 0;if("tab"===e){for(var o=0;o<this.parent.tabs.length;o++)this.parent.keyTipElements[parseInt(o.toString(),10)]&&(t=this.parent.keyTipElements[parseInt(o.toString(),10)][""+e],this.createKeyTipElement(t[0].id,t[0].keyTip,"tab","center","bottom",!0));this.parent.keyTipElements.filemenu&&(t=this.parent.keyTipElements.filemenu,this.createKeyTipElement(t[0].id,t[0].keyTip,"filemenu")),this.parent.keyTipElements.backstage&&(t=this.parent.keyTipElements.backstage,this.createKeyTipElement(t[0].id,t[0].keyTip,"backstage")),this.parent.keyTipElements.collapse&&(t=this.parent.keyTipElements.collapse,this.createKeyTipElement(t[0].id,t[0].keyTip,"collapse")),this.parent.keyTipElements.taboverflow&&(t=this.parent.keyTipElements.taboverflow,this.createKeyTipElement(t[0].id,t[0].keyTip,"taboverflow"))}else if("popupitem"===e){if(this.parent.keyTipElements[this.parent.selectedTab].popupitem){var i=this.parent.keyTipElements[this.parent.selectedTab].popupitem;for(o=0;o<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].popupitem).length;o++)this.createKeyTipElement(i[parseInt(o.toString(),10)].id,i[parseInt(o.toString(),10)].keyTip,"popupitem","left","top",!1,!0)}}else if("backstageMenu"===e){if(this.parent.keyTipElements.backstageMenu){var r=this.parent.keyTipElements.backstageMenu;for(o=0;o<Object.keys(this.parent.keyTipElements.backstageMenu).length;o++)this.createKeyTipElement(r[parseInt(o.toString(),10)].id,r[parseInt(o.toString(),10)].keyTip,"backstageMenu","left","center")}}else if("grpoverflowpopup"===e&&"Classic"===this.parent.activeLayout){if(this.parent.keyTipElements[this.parent.selectedTab].grpoverflowpopup&&this.calculateItemPosition(e),this.parent.keyTipElements[this.parent.selectedTab].launcher)for(o=0;o<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].launcher).length;o++)t=this.parent.keyTipElements[this.parent.selectedTab].launcher,this.createKeyTipElement(t[parseInt(o.toString(),10)].id,t[parseInt(o.toString(),10)].keyTip,"launcher","center","bottom",!1,!0)}else{if(this.calculateItemPosition(e),"Classic"===this.parent.activeLayout){if(this.parent.keyTipElements[this.parent.selectedTab].launcher)for(o=0;o<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].launcher).length;o++)t=this.parent.keyTipElements[this.parent.selectedTab].launcher,this.createKeyTipElement(t[parseInt(o.toString(),10)].id,t[parseInt(o.toString(),10)].keyTip,"launcher");if(this.parent.keyTipElements[this.parent.selectedTab].grpoverflow)for(o=0;o<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].grpoverflow).length;o++)t=this.parent.keyTipElements[this.parent.selectedTab].grpoverflow,this.createKeyTipElement(t[parseInt(o.toString(),10)].id,t[parseInt(o.toString(),10)].keyTip,"grpoverflow")}if("Simplified"===this.parent.activeLayout&&(this.parent.keyTipElements.overflowbtn&&(t=this.parent.keyTipElements.overflowbtn,this.createKeyTipElement(t[0].id,t[0].keyTip,"overflowbtn")),this.parent.keyTipElements[this.parent.selectedTab].grpofbtn))for(o=0;o<Object.keys(this.parent.keyTipElements[this.parent.selectedTab].grpofbtn).length;o++)t=this.parent.keyTipElements[this.parent.selectedTab].grpofbtn,this.createKeyTipElement(t[parseInt(o.toString(),10)].id,t[parseInt(o.toString(),10)].keyTip,"grpofbtn")}}},e.prototype.calculateItemPosition=function(e,t,o){var i,r;void 0===t&&(t=!1);var n=this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(),10)][""+e];if(n)for(var s=0;s<Object.keys(this.parent.keyTipElements[parseInt(this.parent.selectedTab.toString(),10)][""+e]).length;s++)if(t&&n[parseInt(s.toString(),10)].keyTip===o||!t){var a=n[parseInt(s.toString(),10)].id;-1!==n[parseInt(s.toString(),10)].id.indexOf("_grpbtn")&&(a=n[parseInt(s.toString(),10)].id.replace(/_grpbtn\d+/,""));var l=Xo(this.parent.tabs,a);l&&"Column"===l.group.orientation&&l.collection.items.length>1&&"Simplified"!==this.parent.activeLayout?0===l.itemIndex?(i="center",r="top"):1===l.itemIndex?(i="center",r="center"):(i="center",r="bottom"):l&&"Row"===l.group.orientation&&l.group.collections.length>1&&"Simplified"!==this.parent.activeLayout&&(0===l.collectionIndex?(i="center",r="top"):(i="center",r="bottom")),"item"===e?this.createKeyTipElement(n[parseInt(s.toString(),10)].id,n[parseInt(s.toString(),10)].keyTip,e,i,r):this.createKeyTipElement(n[parseInt(s.toString(),10)].id,n[parseInt(s.toString(),10)].keyTip,e,i,r,!1,!0)}},e.prototype.createKeyTipElement=function(e,t,o,i,r,n,s){void 0===i&&(i="center"),void 0===r&&(r="bottom"),void 0===n&&(n=!1),void 0===s&&(s=!1);var a,l=document.querySelector("#"+e),p=!1;(n&&(l=document.querySelector("#"+e+fo)),l)&&(l.closest(".e-ribbon-group-overflow-ddb")&&(p=!0),n&&s&&l.closest(".e-toolbar-pop")&&(p=!0),l.closest(".e-split-btn-wrapper")?a=l.closest(".e-split-btn-wrapper").closest(".e-ribbon-item").id:l.closest(".e-colorpicker-wrapper")&&(a=(l=l.closest(".e-colorpicker-wrapper")).closest(".e-ribbon-item").id));if((l&&l.offsetParent||n&&s)&&(s&&p||!s)){var c=this.parent.createElement("div",{className:Je,id:e+Lo});document.body.append(c),new Ho.Popup(c,{relateTo:"#"+(n?e+fo:a||e),content:t,collision:{X:"fit",Y:"flip"},targetType:"relative",position:{X:i,Y:r},enableRtl:this.parent.enableRtl}).show(),this.calculateKeyTipPosition(l,c,o,r),this.parent.isKeytipOpen=!0}},e.prototype.calculateKeyTipPosition=function(e,t,o,i){var r=e.getBoundingClientRect();"backstageMenu"===o?(t.style.top=r.top+t.offsetHeight/2+"px",t.style.left=r.left+e.offsetWidth/5+"px"):"popupitem"!==o&&(t.style.left=r.left+(r.width-t.offsetWidth)/2+"px"),"filemenu"===o||"backstage"===o?t.style.top=r.top+(e.offsetHeight-e.offsetHeight/3+t.offsetHeight/6)+"px":"item"===o&&"top"===i&&(t.style.top=r.top-e.offsetHeight/2+"px")},e.prototype.keytipPress=function(e,t){var o=this;void 0===t&&(t=!1),this.isKeytipPresent=!1;for(var i=0;i<Object.keys(this.parent.keyTipElements).length&&!this.isKeytipPresent;i++)if(this.parent.keyTipElements[parseInt(i.toString(),10)])for(var r=0;r<Object.keys(this.parent.keyTipElements[parseInt(i.toString(),10)]).length&&!this.isKeytipPresent;r++)for(var n=this.parent.keyTipElements[parseInt(i.toString(),10)][Object.keys(this.parent.keyTipElements[parseInt(i.toString(),10)])[parseInt(r.toString(),10)]],s=0;s<Object.keys(n).length&&!this.isKeytipPresent;s++){if(e.toUpperCase()===n[parseInt(s.toString(),10)].keyTip)if(document.querySelector("#"+n[parseInt(s.toString(),10)].id+Lo)||t)if(this.isKeytipPresent=!0,this.removeKeytip(),"tab"===n[parseInt(s.toString(),10)].type)i!==this.parent.selectedTab?(this.parent.tabObj.select(i),setTimeout((function(){var e=o.parent.tabObj.element.querySelector(".e-nav-active");e&&e.click(),o.createKeytip("item")}),600)):this.createKeytip("item");else if("item"===n[parseInt(s.toString(),10)].type||"grpoverflowpopup"===n[parseInt(s.toString(),10)].type||"popupitem"===n[parseInt(s.toString(),10)].type)if(document.getElementById(n[parseInt(s.toString(),10)].id)&&document.getElementById(n[parseInt(s.toString(),10)].id).classList.contains("e-ribbon-group-button"))document.getElementById(n[parseInt(s.toString(),10)].id).click();else{var a=void 0;if(-1!==n[parseInt(s.toString(),10)].id.indexOf("_popupButton")){var l=n[parseInt(s.toString(),10)].id.replace(/_popupButton/g,"");a=Xo(this.parent.tabs,l)}else a=Xo(this.parent.tabs,n[parseInt(s.toString(),10)].id);(!t||t&&a.tabIndex===this.parent.selectedTab)&&this.clickItems(a,n,s,!1,t)}else if("grpoverflow"===n[parseInt(s.toString(),10)].type||"grpofbtn"===n[parseInt(s.toString(),10)].type||"launcher"===n[parseInt(s.toString(),10)].type){var p=document.querySelector("#"+n[parseInt(s.toString(),10)].id);if(this.removeKeytip(),p){var c=n[parseInt(s.toString(),10)].id;if(t){if(-1!==n[parseInt(s.toString(),10)].id.indexOf("_launcher")||-1!==n[parseInt(s.toString(),10)].id.indexOf("_sim_grp_overflow")||-1!==n[parseInt(s.toString(),10)].id.indexOf("_overflow_dropdown"))c=n[parseInt(s.toString(),10)].id.replace(/_launcher|_sim_grp_overflow|_overflow_dropdown/g,""),(a=Zo(this.parent.tabs,c)).tabIndex===this.parent.selectedTab&&this.clickItems(a,n,s,!0,t,p)}else this.clickItems(null,n,s,!0,t,p)}}}else this.parent.keyTipElements&&this.commonItemsKeyTipPress(e,Object.keys(this.parent.keyTipElements)[parseInt(i.toString(),10)],t)},e.prototype.clickItems=function(e,t,o,i,r,n){if(i)n.click(),"launcher"!==t[parseInt(o.toString(),10)].type&&(this.isKeytipPopupOpen=!0,"grpoverflow"===t[parseInt(o.toString(),10)].type?this.createKeytip("grpoverflowpopup"):this.createKeytip("popupitem"));else{var s=t[parseInt(o.toString(),10)].id;switch(document.querySelector("#"+s)&&r&&("Simplified"===this.parent.activeLayout?document.querySelector("#"+s).closest("#"+e.group.id+"_sim_grp_overflow-popup")&&document.querySelector("#"+s).closest("#"+e.group.id+"_sim_grp_overflow-popup").classList.contains("e-popup-close")?document.querySelector("#"+e.group.id+"_sim_grp_overflow").click():document.querySelector("#"+s).closest("#"+this.parent.tabObj.element.id+ho+"-popup")&&document.querySelector("#"+s).closest("#"+this.parent.tabObj.element.id+ho+"-popup").classList.contains("e-popup-close")&&document.querySelector("#"+this.parent.tabObj.element.id+ho).click():document.querySelector("#"+s).closest("#"+e.group.id+vo+So+"-popup")&&document.querySelector("#"+s).closest("#"+e.group.id+vo+So+"-popup").classList.contains("e-popup-close")&&document.querySelector("#"+e.group.id+vo+So).click()),this.parent.getItemModuleName(e.item)){case"btn":this.parent.ribbonButtonModule.click(s);break;case"dropdown-btn":this.parent.ribbonDropDownModule.toggle(s);break;case"split-btn":this.parent.ribbonSplitButtonModule.toggle(s);break;case"checkbox":this.parent.ribbonCheckBoxModule.click(s);break;case"colorpicker":this.parent.ribbonColorPickerModule.toggle(s);break;case"combobox":var a=document.querySelector("#"+s);setTimeout((function(){a.focus()}),100);break;case"gallery":document.querySelector("#"+s).click();break;case"template":document.querySelector("#"+s).focus();break;case"group-btn":var l=document.querySelector("#"+s);if(l){(0,T.getInstance)(l,H.DropDownButton).toggle();for(var p=0;p<e.item.groupButtonSettings.items.length;p++)e.item.groupButtonSettings.items[parseInt(p.toString(),10)].keyTip&&this.createKeyTipElement(s+(Po+p),e.item.groupButtonSettings.items[parseInt(p.toString(),10)].keyTip,"item")}}}},e.prototype.commonItemsKeyTipPress=function(e,t,o){var i=this;if(this.parent.keyTipElements[""+t]){var r=!1,n=this.parent.keyTipElements[""+t],s=void 0;if(n)if("backstageMenu"===t){for(var a=0;a<Object.keys(this.parent.keyTipElements[""+t]).length;a++)if(n[parseInt(a.toString(),10)].keyTip===e.toUpperCase()&&(s=document.querySelector("#"+n[parseInt(a.toString(),10)].id),document.querySelector("#"+s.id+Lo)||o)){r=!0,o&&document.querySelector(".e-ribbon-backstage-popup").classList.contains("e-popup-close")&&this.parent.tabObj.element.querySelector(".e-ribbon-backstage").click();break}}else n[0]&&n[0].keyTip===e.toUpperCase()&&(s=document.querySelector("#"+n[0].id),(document.querySelector("#"+n[0].id+Lo)||o)&&(r=!0));r&&(this.removeKeytip(),this.isKeytipPresent=!0,s&&(s.click(),"backstage"===t?this.createKeytip("backstageMenu"):"overflowbtn"===t?(this.isKeytipPopupOpen=!0,this.createKeytip("popupitem")):"taboverflow"===t&&setTimeout((function(){for(var e=0;e<Object.keys(i.parent.keyTipElements).length;e++)if(i.parent.keyTipElements[parseInt(e.toString(),10)]){var t=i.parent.keyTipElements[parseInt(e.toString(),10)].tab;i.createKeyTipElement(t[0].id,t[0].keyTip,"tab","center","bottom",!0,!0)}}),600)))}},e.prototype.removeKeytip=function(e){var t=this,o=document.querySelectorAll(".e-ribbon-keytip"),i=!1;this.parent.keysPress="";for(var r=function(r){var s=o[parseInt(r.toString(),10)];if("Escape"===e&&n.parent.keyTipElements&&n.parent.keyTipElements[n.parent.selectedTab]){for(var a=0;a<Object.keys(n.parent.keyTipElements[n.parent.selectedTab]).length;a++){var l=Object.keys(n.parent.keyTipElements[parseInt(n.parent.selectedTab.toString(),10)])[parseInt(a.toString(),10)];if(-1!==Uo(n.parent.keyTipElements[parseInt(n.parent.selectedTab.toString(),10)][""+l],(function(e){return e.id+Lo===o[parseInt(r.toString(),10)].id}))){if("item"===l&&!n.isKeytipPopupOpen||"grpoverflow"===l&&"Classic"===n.parent.activeLayout){n.createKeytip("tab"),e="",i=!0;break}if(n.isKeytipPopupOpen&&("popupitem"===l&&"Simplified"===n.parent.activeLayout||"grpoverflowpopup"===l&&"Classic"===n.parent.activeLayout)){n.createKeytip("item"),e="",i=!0;break}}}for(var p=0;p<Object.keys(n.parent.keyTipElements).length;p++)if(n.parent.keyTipElements[parseInt(p.toString(),10)]){var c=n.parent.keyTipElements[parseInt(p.toString(),10)].tab;for(a=0;a<Object.keys(c).length;a++)if(s.id===c[0].id+Lo&&document.querySelector("#"+c[0].id+fo).closest(".e-toolbar-pop")){n.parent.tabObj.element.querySelector(".e-nav-active").click(),setTimeout((function(){t.createKeytip("tab")}),600),e="",i=!0;break}if(i)break}if(!i&&n.parent.keyTipElements.backstageMenu)-1!==Uo(n.parent.keyTipElements.backstageMenu,(function(e){return e.id+Lo===o[parseInt(r.toString(),10)].id}))&&(n.createKeytip("tab"),e="",i=!0)}s&&(0,T.remove)(s)},n=this,s=0;s<o.length;s++)r(s);this.isKeytipPopupOpen=!1,i||(this.parent.isKeytipOpen=!1)},e.prototype.showKeyTips=function(e){this.parent.enableKeyTips&&(e?this.keytipPress(e,!0):this.createKeytip("tab"))},e.prototype.hideKeyTips=function(){this.removeKeytip()},e}(),yi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),gi=function(e){function t(t){var o=e.call(this,t)||this;return o.initRenderCalled=!1,o.checkInjectedModules=!0,o.directivekeys={ribbonTabs:{ribbonTab:{ribbonGroups:{ribbonGroup:{ribbonCollections:{ribbonCollection:{ribbonItems:"ribbonItem"}}}}}},ribbonContextualTabs:{ribbonContextualTab:{ribbonTabs:{ribbonTab:{ribbonGroups:{ribbonGroup:{ribbonCollections:{ribbonCollection:{ribbonItems:"ribbonItem"}}}}}}}}},o.statelessTemplateProps=null,o.templateProps=null,o.immediateRender=!1,o.portals=[],o}return yi(t,e),t.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return k.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));e.prototype.render.call(this),this.initRenderCalled=!0},t}(ui);(0,a.applyMixins)(gi,[a.ComponentBase,k.Component])})(),d})()));
|