@syncfusion/ej2-react-ribbon 22.2.12 → 23.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -24
- package/diConfig.json +46 -3
- package/dist/ej2-react-ribbon.min.js +2 -2
- package/dist/ej2-react-ribbon.umd.min.js +1 -1
- package/package.json +9 -9
- package/styles/bootstrap-dark.css +511 -8
- package/styles/bootstrap.css +511 -8
- package/styles/bootstrap4.css +511 -8
- package/styles/bootstrap5-dark.css +511 -8
- package/styles/bootstrap5.css +511 -8
- package/styles/fabric-dark.css +511 -8
- package/styles/fabric.css +511 -8
- package/styles/fluent-dark.css +511 -8
- package/styles/fluent.css +511 -8
- package/styles/highcontrast-light.css +511 -8
- package/styles/highcontrast.css +511 -8
- package/styles/material-dark.css +511 -9
- package/styles/material.css +512 -9
- package/styles/material3-dark.css +511 -9
- package/styles/material3.css +511 -9
- package/styles/ribbon/bootstrap-dark.css +511 -8
- package/styles/ribbon/bootstrap.css +511 -8
- package/styles/ribbon/bootstrap4.css +511 -8
- package/styles/ribbon/bootstrap5-dark.css +511 -8
- package/styles/ribbon/bootstrap5.css +511 -8
- package/styles/ribbon/fabric-dark.css +511 -8
- package/styles/ribbon/fabric.css +511 -8
- package/styles/ribbon/fluent-dark.css +511 -8
- package/styles/ribbon/fluent.css +511 -8
- package/styles/ribbon/highcontrast-light.css +511 -8
- package/styles/ribbon/highcontrast.css +511 -8
- package/styles/ribbon/material-dark.css +511 -9
- package/styles/ribbon/material.css +512 -9
- package/styles/ribbon/material3-dark.css +511 -9
- package/styles/ribbon/material3-dark.scss +1 -1
- package/styles/ribbon/material3.css +511 -9
- package/styles/ribbon/material3.scss +1 -1
- package/styles/ribbon/tailwind-dark.css +511 -9
- package/styles/ribbon/tailwind.css +511 -9
- package/styles/tailwind-dark.css +511 -9
- package/styles/tailwind.css +511 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-react-ribbon.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 23.1.36
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionDropdowns"),require("SyncfusionPopups"),require("React"),require("SyncfusionInputs")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSplitbuttons","SyncfusionReactBase","SyncfusionButtons","SyncfusionNavigations","SyncfusionDropdowns","SyncfusionPopups","React","SyncfusionInputs"],e):"object"==typeof exports?exports.SyncfusionReactRibbon=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionDropdowns"),require("SyncfusionPopups"),require("React"),require("SyncfusionInputs")):t.SyncfusionReactRibbon=e(t.SyncfusionBase,t.SyncfusionSplitbuttons,t.SyncfusionReactBase,t.SyncfusionButtons,t.SyncfusionNavigations,t.SyncfusionDropdowns,t.SyncfusionPopups,t.React,t.SyncfusionInputs)}(this,function(t,e,n,r,o,i,s,c,l){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=38)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.d(e,"e",function(){return r}),n.d(e,"o",function(){return o}),n.d(e,"p",function(){return i}),n.d(e,"h",function(){return s}),n.d(e,"q",function(){return c}),n.d(e,"r",function(){return l}),n.d(e,"j",function(){return a}),n.d(e,"g",function(){return u}),n.d(e,"k",function(){return p}),n.d(e,"i",function(){return d}),n.d(e,"f",function(){return f}),n.d(e,"s",function(){return h}),n.d(e,"t",function(){return b}),n.d(e,"u",function(){return v}),n.d(e,"v",function(){return m}),n.d(e,"w",function(){return y}),n.d(e,"x",function(){return g}),n.d(e,"y",function(){return _}),n.d(e,"z",function(){return S}),n.d(e,"A",function(){return I}),n.d(e,"B",function(){return C}),n.d(e,"C",function(){return O}),n.d(e,"D",function(){return w}),n.d(e,"E",function(){return P}),n.d(e,"F",function(){return D}),n.d(e,"G",function(){return B}),n.d(e,"H",function(){return L}),n.d(e,"I",function(){return x}),n.d(e,"J",function(){return T}),n.d(e,"K",function(){return k}),n.d(e,"L",function(){return E}),n.d(e,"M",function(){return R}),n.d(e,"N",function(){return M}),n.d(e,"n",function(){return q}),n.d(e,"O",function(){return j}),n.d(e,"P",function(){return N}),n.d(e,"Q",function(){return A}),n.d(e,"R",function(){return z}),n.d(e,"S",function(){return W}),n.d(e,"T",function(){return F}),n.d(e,"U",function(){return G}),n.d(e,"V",function(){return H}),n.d(e,"W",function(){return U}),n.d(e,"X",function(){return V}),n.d(e,"Y",function(){return K}),n.d(e,"Z",function(){return X}),n.d(e,"_0",function(){return Y}),n.d(e,"_1",function(){return Q}),n.d(e,"_2",function(){return Z}),n.d(e,"_3",function(){return J}),n.d(e,"c",function(){return $}),n.d(e,"_4",function(){return tt}),n.d(e,"_5",function(){return et}),n.d(e,"_6",function(){return nt}),n.d(e,"_7",function(){return rt}),n.d(e,"_8",function(){return ot}),n.d(e,"_9",function(){return it}),n.d(e,"_10",function(){return st}),n.d(e,"_11",function(){return ct}),n.d(e,"_12",function(){return lt}),n.d(e,"_13",function(){return at}),n.d(e,"_14",function(){return ut}),n.d(e,"_15",function(){return pt}),n.d(e,"_16",function(){return dt}),n.d(e,"_17",function(){return ft}),n.d(e,"_18",function(){return ht}),n.d(e,"_19",function(){return bt}),n.d(e,"_20",function(){return vt}),n.d(e,"l",function(){return mt}),n.d(e,"m",function(){return yt}),n.d(e,"a",function(){return gt}),n.d(e,"d",function(){return _t}),n.d(e,"_21",function(){return St}),n.d(e,"b",function(){return It}),n.d(e,"_22",function(){return Ct});var r="e-ribbon-vertical-center",o="e-icons e-drop-icon",i="e-icons e-more-horizontal-1",s="e-vertical",c="e-disabled",l="e-rtl",a="e-ribbon-hover",u="e-ribbon-control",p="e-ribbon-popup-control",d="e-ribbon-open",f=" ",h="e-hscroll-bar",b="e-ribbon-hide",v="e-ribbon-tab",m="e-ribbon-active",y="e-ribbon-tab-item",g="e-ribbon-collapse-btn",_="e-ribbon-expand-btn",S="e-ribbon-collapsible",I="e-ribbon-overall-of-btn",C="e-ribbon-group-of-btn",O="e-ribbon-overflow-target",w="e-ribbon-overflow",P="e-content",D="e-ribbon-minimize",B="e-ribbon-group",L="e-ribbon-group-container",x="e-ribbon-of-tab",T="e-ribbon-of-group-container",k="e-ribbon-group-content",E="e-ribbon-group-header",R="e-ribbon-overflow-header",M="e-ribbon-group-overflow",q="e-ribbon-group-overflow-ddb",j="e-ribbon-launcher",N="e-ribbon-launcher-icon",A="e-icons e-launcher",z="e-ribbon-collection",W="e-ribbon-item",F="e-ribbon-row",G="e-ribbon-column",H="e-ribbon-large-item",U="e-ribbon-medium-item",V="e-ribbon-small-item",K="e-ribbon-content-height",X="e-dropdown-btn",Y="e-caret-hide",Q="e-ribbon-template",Z="e-ribbon-help-template",J="e-ribbon-tooltip",$="e-ribbon-tooltip-target",tt="e-ribbon-tooltip-title",et="e-ribbon-tooltip-content",nt="e-ribbon-tooltip-icon",rt="e-ribbon-tooltip-container",ot="e-ribbon-text-container",it="e-ribbon-simplified-mode",st="_tab",ct="_group",lt="_collection",at="_item",ut="_collapsebutton",pt="_sim_ovrl_overflow",dt="_sim_grp_overflow",ft="_header",ht="_launcher",bt="_content",vt="_container",mt="_overflow",yt="_dropdown",gt="_filemenu",_t="_filemenulist",St="_helppanetemplate",It="--fileMenuWidth",Ct="--helpTemplateWidth"},function(t,e,n){"use strict";var r=n(26);n.d(e,"a",function(){return r.a});var o=n(5);n.d(e,"b",function(){return o.c}),n.d(e,"c",function(){return o.d}),n.d(e,"d",function(){return o.a}),n.d(e,"e",function(){return o.b}),n.d(e,"f",function(){return o.e});var i=n(1);n.d(e,"g",function(){return i.e}),n.d(e,"h",function(){return i.o}),n.d(e,"i",function(){return i.p}),n.d(e,"j",function(){return i.h}),n.d(e,"k",function(){return i.q}),n.d(e,"l",function(){return i.r}),n.d(e,"m",function(){return i.j}),n.d(e,"n",function(){return i.g}),n.d(e,"o",function(){return i.k}),n.d(e,"p",function(){return i.i}),n.d(e,"q",function(){return i.f}),n.d(e,"r",function(){return i.s}),n.d(e,"s",function(){return i.t}),n.d(e,"t",function(){return i.u}),n.d(e,"u",function(){return i.v}),n.d(e,"v",function(){return i.w}),n.d(e,"w",function(){return i.x}),n.d(e,"x",function(){return i.y}),n.d(e,"y",function(){return i.z}),n.d(e,"z",function(){return i.A}),n.d(e,"A",function(){return i.B}),n.d(e,"B",function(){return i.C}),n.d(e,"C",function(){return i.D}),n.d(e,"D",function(){return i.E}),n.d(e,"E",function(){return i.F}),n.d(e,"F",function(){return i.G}),n.d(e,"G",function(){return i.H}),n.d(e,"H",function(){return i.I}),n.d(e,"I",function(){return i.J}),n.d(e,"J",function(){return i.K}),n.d(e,"K",function(){return i.L}),n.d(e,"L",function(){return i.M}),n.d(e,"M",function(){return i.N}),n.d(e,"N",function(){return i.n}),n.d(e,"O",function(){return i.O}),n.d(e,"P",function(){return i.P}),n.d(e,"Q",function(){return i.Q}),n.d(e,"R",function(){return i.R}),n.d(e,"S",function(){return i.S}),n.d(e,"T",function(){return i.T}),n.d(e,"U",function(){return i.U}),n.d(e,"V",function(){return i.V}),n.d(e,"W",function(){return i.W}),n.d(e,"X",function(){return i.X}),n.d(e,"Y",function(){return i.Y}),n.d(e,"Z",function(){return i.Z}),n.d(e,"_0",function(){return i._0}),n.d(e,"_1",function(){return i._1}),n.d(e,"_2",function(){return i._2}),n.d(e,"_3",function(){return i._3}),n.d(e,"_4",function(){return i.c}),n.d(e,"_5",function(){return i._4}),n.d(e,"_6",function(){return i._5}),n.d(e,"_7",function(){return i._6}),n.d(e,"_8",function(){return i._7}),n.d(e,"_9",function(){return i._8}),n.d(e,"_10",function(){return i._9}),n.d(e,"_11",function(){return i._10}),n.d(e,"_12",function(){return i._11}),n.d(e,"_13",function(){return i._12}),n.d(e,"_14",function(){return i._13}),n.d(e,"_15",function(){return i._14}),n.d(e,"_16",function(){return i._15}),n.d(e,"_17",function(){return i._16}),n.d(e,"_18",function(){return i._17}),n.d(e,"_19",function(){return i._18}),n.d(e,"_20",function(){return i._19}),n.d(e,"_21",function(){return i._20}),n.d(e,"_22",function(){return i.l}),n.d(e,"_23",function(){return i.m}),n.d(e,"_24",function(){return i.a}),n.d(e,"_25",function(){return i.d}),n.d(e,"_26",function(){return i._21}),n.d(e,"_27",function(){return i.b}),n.d(e,"_28",function(){return i._22});var s=n(10);n.d(e,"_29",function(){return s.a}),n.d(e,"_30",function(){return s.b}),n.d(e,"_31",function(){return s.c}),n.d(e,"_32",function(){return s.d}),n.d(e,"_33",function(){return s.e}),n.d(e,"_34",function(){return s.f}),n.d(e,"_35",function(){return s.g}),n.d(e,"_36",function(){return s.h}),n.d(e,"_37",function(){return s.i}),n.d(e,"_38",function(){return s.j}),n.d(e,"_39",function(){return s.k}),n.d(e,"_40",function(){return s.l}),n.d(e,"_41",function(){return s.m}),n.d(e,"_42",function(){return s.n})},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"d",function(){return o}),n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"e",function(){return c});var r;!function(t){t.Classic="Classic",t.Simplified="Simplified"}(r||(r={}));var o;!function(t){t.Row="Row",t.Column="Column"}(o||(o={}));var i;!function(t){t[t.Large=4]="Large",t[t.Medium=2]="Medium",t[t.Small=1]="Small"}(i||(i={}));var s;!function(t){t[t.Classic=4]="Classic",t[t.Simplified=2]="Simplified",t[t.Overflow=1]="Overflow",t[t.Auto=7]="Auto"}(s||(s={}));var c;!function(t){t.Button="Button",t.CheckBox="CheckBox",t.ColorPicker="ColorPicker",t.ComboBox="ComboBox",t.DropDown="DropDown",t.SplitButton="SplitButton",t.Template="Template"}(c||(c={}))},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"id",void 0),i([n.i(r.Property)("")],e.prototype,"title",void 0),i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),e}(r.ChildProperty)},function(t,e){t.exports=r},function(t,e){t.exports=o},function(t,e,n){"use strict";var r=n(25);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})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<t.length;n++)if(e(t[parseInt(n.toString(),10)],n))return n;return-1}function o(t){if("string"==typeof t){var e="";try{var r=n.i(m.select)(t);e=r?"SCRIPT"===r.tagName?r.innerHTML:r.outerHTML:t}catch(n){e=t}return n.i(m.compile)(e)}return n.i(m.compile)(t)}function i(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++)for(var i=r.groups[parseInt(o.toString(),10)],s=0;s<i.collections.length;s++)for(var c=i.collections[parseInt(s.toString(),10)],l=0;l<c.items.length;l++){var a=c.items[parseInt(l.toString(),10)];if(a.id===e)return{item:a,collection:c,group:i,tabIndex:n,groupIndex:o,collectionIndex:s,itemIndex:l}}return null}function s(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++)for(var i=r.groups[parseInt(o.toString(),10)],s=0;s<i.collections.length;s++){var c=i.collections[parseInt(s.toString(),10)];if(c.id===e)return{collection:c,group:i,tabIndex:n,groupIndex:o,collectionIndex:s}}return null}function c(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++){var i=r.groups[parseInt(o.toString(),10)];if(i.id===e)return{group:i,tabIndex:n,groupIndex:o}}return null}function l(t,e){n.i(m.getComponent)(t,e).destroy()}function a(t,e,r){n.i(m.getComponent)(t,e).setProperties(r)}function u(t,e,r){n.i(m.getComponent)(t,e).setProperties("combobox"===e?{enabled:!r}:{disabled:r})}function p(t,e,r){if(!r&&!(r=i(t.tabs,e)))return null;var o=t.tabObj.items[r.tabIndex].content;if(""===o.innerHTML)return null;if(t.activeLayout===g.c.Classic)return r.item.displayOptions&g.b.Classic?(o=r.group.isCollapsed?t.ribbonDropDownModule.getOverflowDropDownPopup(r,o):o,o.querySelector("#"+e)):null;var s=r.item.displayOptions&g.b.Simplified?o.querySelector("#"+r.item.id):null;if(!s){s=(r.group.enableGroupOverflow?n.i(m.getComponent)(o.querySelector("#"+r.group.id+_._16),S.DropDownButton):t.overflowDDB).target.querySelector("#"+r.item.id)}return s}function d(t){return!!(t.content||t.iconCss||t.title||t.id||t.cssClass)}function f(t,e,n){var r=t.target.getAttribute("id"),o=n.filter(function(t){return t.id===r})[0],i=o.data,s=e.createElement("div",{id:i.id?_._7+"_"+i.id:_._7});if(e.element.append(s),i.title){var c=e.createElement("div",{innerHTML:i.title,className:_._4});s.appendChild(c)}var l=e.createElement("div",{className:_._8});if(s.appendChild(l),i.iconCss){var a=e.createElement("div",{className:i.iconCss+" "+_._6});l.appendChild(a)}if(i.content){var u=e.createElement("div",{innerHTML:i.content,className:_._5});l.appendChild(u)}e.setProperties({content:s,cssClass:i.cssClass?i.cssClass+" "+_._3:_._3})}function h(t,e){function n(t){f(t,r,e.tooltipData)}var r=new y.Tooltip({target:"."+_.c,beforeRender:n.bind(this),windowCollision:!0});r.appendTo(t)}function b(t){n.i(m.getComponent)(t,y.Tooltip).destroy()}function v(t,e){n.i(m.getComponent)(t,y.Tooltip).setProperties(e)}e.a=r,e.b=o,e.c=i,e.d=s,e.e=c,e.f=l,e.g=a,e.h=u,e.i=p,e.j=d,e.k=f,e.l=h,e.m=b,e.n=v;var m=n(0),y=(n.n(m),n(23)),g=(n.n(y),n(5)),_=n(1),S=n(3);n.n(S)},function(t,e,n){"use strict";var r=n(28);n.d(e,"a",function(){return r.a});var o=n(29);n.d(e,"b",function(){return o.a});var i=n(30);n.d(e,"c",function(){return i.a});var s=n(31);n.d(e,"d",function(){return s.a});var c=n(32);n.d(e,"e",function(){return c.a});var l=n(33);n.d(e,"f",function(){return l.a})},function(t,e,n){"use strict";var r=n(35);n.d(e,"a",function(){return r.a});var o=n(19);n.d(e,"b",function(){return o.a});var i=n(15);n.d(e,"c",function(){return i.a});var s=n(20);n.d(e,"d",function(){return s.a});var c=n(13);n.d(e,"e",function(){return c.a});var l=n(14);n.d(e,"f",function(){return l.a});var a=n(16);n.d(e,"g",function(){return a.a});var u=n(17);n.d(e,"h",function(){return u.a});var p=n(18);n.d(e,"i",function(){return p.a});var d=n(21);n.d(e,"j",function(){return d.a});var f=n(34);n.d(e,"k",function(){return f.a});var h=n(6);n.d(e,"l",function(){return h.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!1)],e.prototype,"isToggle",void 0),i([n.i(r.Property)(!1)],e.prototype,"isPrimary",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"clicked",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)(!1)],e.prototype,"checked",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"label",void 0),i([n.i(r.Property)("After")],e.prototype,"labelPosition",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"change",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(20)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)(10)],e.prototype,"columns",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)(!0)],e.prototype,"enableOpacity",void 0),i([n.i(r.Property)("Picker")],e.prototype,"mode",void 0),i([n.i(r.Property)(!0)],e.prototype,"modeSwitcher",void 0),i([n.i(r.Property)(!1)],e.prototype,"noColor",void 0),i([n.i(r.Property)(null)],e.prototype,"presetColors",void 0),i([n.i(r.Property)(!0)],e.prototype,"showButtons",void 0),i([n.i(r.Property)("#008000ff")],e.prototype,"value",void 0),i([n.i(r.Event)()],e.prototype,"beforeClose",void 0),i([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),i([n.i(r.Event)()],e.prototype,"beforeTileRender",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"change",void 0),i([n.i(r.Event)()],e.prototype,"open",void 0),i([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(22)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)(!1)],e.prototype,"allowFiltering",void 0),s([n.i(r.Property)(!0)],e.prototype,"autofill",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)([])],e.prototype,"dataSource",void 0),s([n.i(r.Complex)({text:null,value:null,iconCss:null,groupBy:null},o.FieldSettings)],e.prototype,"fields",void 0),s([n.i(r.Property)("Contains")],e.prototype,"filterType",void 0),s([n.i(r.Property)(null)],e.prototype,"footerTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"groupTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"headerTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"index",void 0),s([n.i(r.Property)(null)],e.prototype,"itemTemplate",void 0),s([n.i(r.Property)("No records found")],e.prototype,"noRecordsTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"placeholder",void 0),s([n.i(r.Property)("300px")],e.prototype,"popupHeight",void 0),s([n.i(r.Property)("100%")],e.prototype,"popupWidth",void 0),s([n.i(r.Property)(!0)],e.prototype,"showClearButton",void 0),s([n.i(r.Property)("None")],e.prototype,"sortOrder",void 0),s([n.i(r.Property)(null)],e.prototype,"text",void 0),s([n.i(r.Property)(null)],e.prototype,"value",void 0),s([n.i(r.Property)("150px")],e.prototype,"width",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"change",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"filtering",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"closeActionEvents",void 0),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Collection)([],o.Item)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"target",void 0),s([n.i(r.Event)()],e.prototype,"beforeClose",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(15)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Collection)([],o.a)],e.prototype,"collections",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)(!1)],e.prototype,"isCollapsed",void 0),s([n.i(r.Property)(!0)],e.prototype,"isCollapsible",void 0),s([n.i(r.Property)(!1)],e.prototype,"enableGroupOverflow",void 0),s([n.i(r.Property)("")],e.prototype,"groupIconCss",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),s([n.i(r.Property)("Column")],e.prototype,"orientation",void 0),s([n.i(r.Property)(0)],e.prototype,"priority",void 0),s([n.i(r.Property)(!1)],e.prototype,"showLauncherIcon",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(0),o=(n.n(r),n(5)),i=n(13),s=n(14),c=n(16),l=n(17),a=n(18),u=n(21),p=n(6),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)}}(),f=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},f([n.i(r.Property)(o.a.Medium)],e.prototype,"activeSize",void 0),f([n.i(r.Property)(o.a.Small|o.a.Medium|o.a.Large)],e.prototype,"allowedSizes",void 0),f([n.i(r.Property)("")],e.prototype,"id",void 0),f([n.i(r.Property)("")],e.prototype,"cssClass",void 0),f([n.i(r.Property)(!1)],e.prototype,"disabled",void 0),f([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),f([n.i(r.Property)("Button")],e.prototype,"type",void 0),f([n.i(r.Property)(o.b.Auto)],e.prototype,"displayOptions",void 0),f([n.i(r.Complex)({},p.a)],e.prototype,"ribbonTooltipSettings",void 0),f([n.i(r.Complex)({},i.a)],e.prototype,"buttonSettings",void 0),f([n.i(r.Complex)({},a.a)],e.prototype,"dropDownSettings",void 0),f([n.i(r.Complex)({},s.a)],e.prototype,"checkBoxSettings",void 0),f([n.i(r.Complex)({},c.a)],e.prototype,"colorPickerSettings",void 0),f([n.i(r.Complex)({},l.a)],e.prototype,"comboBoxSettings",void 0),f([n.i(r.Complex)({},u.a)],e.prototype,"splitButtonSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"closeActionEvents",void 0),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Collection)([],o.Item)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"target",void 0),s([n.i(r.Event)()],e.prototype,"beforeClose",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"click",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e){t.exports=i},function(t,e){t.exports=s},function(t,e,n){"use strict";var r=n(43);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var o=n(40);n.d(e,"c",function(){return o.a}),n.d(e,"d",function(){return o.b});var i=n(39);n.d(e,"e",function(){return i.a}),n.d(e,"f",function(){return i.b});var s=n(41);n.d(e,"g",function(){return s.a}),n.d(e,"h",function(){return s.b});var c=n(42);n.d(e,"i",function(){return c.a})},function(t,e,n){"use strict";var r=n(27);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})},function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(0),o=(n.n(r),n(8)),i=(n.n(o),n(12)),s=n(5),c=n(11),l=n(10),a=n(1),u=n(3),p=(n.n(u),n(7)),d=(n.n(p),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),f=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},h=function(t){function e(e,n){return h.Inject(c.a,c.b,c.e,c.f,c.d),t.call(this,e,n)||this}d(e,t),h=e,e.prototype.render=function(){this.initialize()},e.prototype.preRender=function(){this.idIndex=0,this.tooltipData=[],this.isAddRemove=!1,this.keyConfigs={leftarrow:"leftarrow",rightarrow:"rightarrow",tab:"tab",shiftTab:"shift+tab"}},e.prototype.getPersistData=function(){return this.addOnPersist(["activeLayout"])},e.prototype.getModuleName=function(){return"ribbon"},e.prototype.requiredModules=function(){var t=[];return t.push({member:"ribbonButton",args:[this]},{member:"ribbonDropDown",args:[this]},{member:"ribbonSplitButton",args:[this]},{member:"ribbonCheckBox",args:[this]},{member:"ribbonColorPicker",args:[this]},{member:"ribbonComboBox",args:[this]},{member:"ribbonFileMenu",args:[this]}),t},e.prototype.initialize=function(){this.element.id=this.element.id||n.i(r.getUniqueID)("e-"+this.getModuleName()),n.i(r.addClass)([this.element],["e-rbn"].concat(this.cssClass?this.cssClass.split(a.f):[])),this.enableRtl&&this.element.classList.add(a.r),this.element.style.width=n.i(r.formatUnit)(this.width),this.renderTabs(),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.createFileMenu(this.fileMenu),this.createHelpPaneTemplate(),this.tabObj.tbObj.refreshOverflow(),n.i(l.l)(this.element,this),this.wireEvents(),this.wireKeyboardEvent(),this.currentControlIndex=0},e.prototype.wireEvents=function(){r.EventHandler.add(window,"resize",this.resizeHandler,this)},e.prototype.wireKeyboardEvent=function(){this.keyboardModuleRibbon=new r.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},e.prototype.keyActionHandler=function(t){"Tab"!==t.key||t.target.classList.contains("e-tab-wrap")||t.target.classList.contains("e-combobox")||t.preventDefault();var e,n=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a._19),r=n.querySelectorAll(".e-control"),o=n.querySelectorAll(".e-combobox");if(o)for(var i=0;i<o.length;i++)o[parseInt(i.toString(),10)].closest(".e-input-focus")&&(e=o[parseInt(i.toString(),10)]);if(e)for(var i=0;i<r.length;i++)r[parseInt(i.toString(),10)].classList.contains("e-combobox")&&r[parseInt(i.toString(),10)].closest(".e-input-focus")&&(this.currentControlIndex=i);if(0===this.currentControlIndex)for(var s=r[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");)this.currentControlIndex++,s=r[this.currentControlIndex].closest(".e-ribbon-item");if(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-launcher-icon")||t.target.classList.contains("e-ribbon-collapse-btn")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-first-item")||t.target.classList.contains("e-ribbon-group-of-btn")||t.target.classList.contains("e-ribbon-overall-of-btn"))switch(t.action){case"rightarrow":this.handleNavigation(t,!this.enableRtl,r);break;case"leftarrow":this.handleNavigation(t,this.enableRtl,r);break;case"tab":t.target.classList.contains("e-combobox")&&this.currentControlIndex<r.length-1&&this.currentControlIndex++;break;case"shiftTab":t.target.classList.contains("e-combobox")?this.currentControlIndex>0&&this.currentControlIndex--:(this.tabObj.element.querySelector(".e-toolbar-item.e-active").querySelector(".e-tab-wrap").focus(),this.currentControlIndex=0)}},e.prototype.handleNavigation=function(t,e,n){var r,o;if(e?this.currentControlIndex<n.length-1&&n[this.currentControlIndex+1].classList.contains("e-colorpicker")&&this.currentControlIndex++:this.currentControlIndex>0&&n[this.currentControlIndex-1].classList.contains("e-colorpicker")&&this.currentControlIndex--,!e&&this.currentControlIndex>0||e&&this.currentControlIndex<n.length-1){if(!t.target.classList.contains("e-combobox")&&t.target.classList.contains("e-control")&&!t.target.classList.contains("e-ribbon-last-item")){if(e)this.currentControlIndex++;else{var i=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a.H);i&&(o=i.getAttribute("id")),this.currentControlIndex--}for(var s=n[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");){if((e&&this.currentControlIndex===n.length-1||!e&&0===this.currentControlIndex)&&n[this.currentControlIndex].closest(".e-ribbon-item").classList.contains("e-disabled")){this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus();break}e?this.currentControlIndex++:this.currentControlIndex--,s=n[this.currentControlIndex].closest(".e-ribbon-item")}if(n[parseInt(this.currentControlIndex.toString(),10)].focus(),"Classic"===this.activeLayout){if(r=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a.H),e){var c=void 0;if(r&&(c=r.querySelector(".e-ribbon-launcher-icon")),c){var l=r.querySelectorAll(".e-ribbon-item");l[l.length-1].querySelector(".e-control").classList.add("e-ribbon-last-item")}}else if(r){var u=r.getAttribute("id");if(o!==u){var c=r.querySelector(".e-ribbon-launcher-icon");c&&n[parseInt((this.currentControlIndex+1).toString(),10)].classList.add("e-ribbon-first-item")}}}else n[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-first-item")?n[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-first-item"):n[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-last-item")&&n[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-last-item")}}else if("Classic"===this.activeLayout&&this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus(),"Simplified"===this.activeLayout){var p=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");e&&p&&!p.classList.contains("e-ribbon-hide")?p.focus():this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus()}if(t.target.classList.contains("e-ribbon-last-item")&&(e?(r=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a.H),r.querySelector(".e-ribbon-launcher-icon").focus()):(this.currentControlIndex--,n[parseInt(this.currentControlIndex.toString(),10)].focus())),!e&&t.target.classList.contains("e-ribbon-first-item")){r=n[parseInt((this.currentControlIndex-1).toString(),10)].closest("."+a.H);var c=r.querySelector(".e-ribbon-launcher-icon");c&&r.querySelector(".e-ribbon-launcher-icon").focus()}if(t.target.classList.contains("e-ribbon-launcher-icon")&&(e?(this.currentControlIndex++,n[parseInt(this.currentControlIndex.toString(),10)].focus(),n[parseInt((this.currentControlIndex-1).toString(),10)].classList.contains("e-ribbon-last-item")&&n[parseInt((this.currentControlIndex-1).toString(),10)].classList.remove("e-ribbon-last-item")):(this.currentControlIndex,n[parseInt(this.currentControlIndex.toString(),10)].focus())),t.target.classList.contains("e-ribbon-collapse-btn"))if(e){this.currentControlIndex=0;for(var d=n[this.currentControlIndex].closest(".e-ribbon-item");d&&d.classList.contains("e-disabled");)this.currentControlIndex++,d=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}else{var p=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");if(p&&!p.classList.contains("e-ribbon-hide"))p.focus();else{this.currentControlIndex=n.length-1;for(var d=n[this.currentControlIndex].closest(".e-ribbon-item");d&&d.classList.contains("e-disabled");)this.currentControlIndex--,d=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}}"Simplified"===this.activeLayout&&t.target.classList.contains("e-ribbon-overall-of-btn")&&(e?this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus():(this.currentControlIndex=n.length-1,n[parseInt(this.currentControlIndex.toString(),10)].focus()))},e.prototype.resizeHandler=function(){var t=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a._19);if(this.checkOverflow(this.selectedTab,t),this.scrollModule){var e=this.tabObj.element.querySelector("."+a.s);this.scrollModule.scrollStep=e.offsetWidth}},e.prototype.renderTabs=function(){this.tabsInternal=this.tabs.slice(),this.tabsInternal=this.checkID(this.tabsInternal,"tab",this.element.id),this.setProperties({tabs:this.tabsInternal},!0);var t=this.createElement("div",{id:this.element.id+a._10});this.element.appendChild(t),this.validateItemSize();var e=this.createTabItems(this.tabs);this.tabObj=new o.Tab({cssClass:a.u,selectedItem:this.selectedTab,overflowMode:"Popup",width:this.width,items:e,enableRtl:this.enableRtl,created:this.tabCreated.bind(this),selected:this.ribbonTabSelected.bind(this),selecting:this.ribbonTabSelecting.bind(this)}),this.tabObj.appendTo(t),this.element.style.setProperty(a.b,"0px"),this.element.style.setProperty(a._22,"0px");var i=t.querySelector(".e-toolbar");n.i(r.getComponent)(i,o.Toolbar).setProperties({width:"calc(100% - var(--fileMenuWidth) - var(--helpTemplateWidth))"}),this.element.classList[this.isMinimized?"add":"remove"](a.F)},e.prototype.minimize=function(t){var e=this;if(t!==this.isMinimized){var n={cancel:!1};this.trigger(t?"ribbonCollapsing":"ribbonExpanding",n,function(n){n.cancel||(e.setProperties({isMinimized:t},!0),e.element.classList.toggle(a.F,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.addExpandCollapse(),this.renderInitialTab(this.selectedTab)},e.prototype.ribbonTabSelected=function(t){this.isAddRemove=!1;var e=t.selectedItem.getAttribute("data-id"),r=n.i(l.a)(this.tabs,function(t){return t.id===e});r=-1===r?this.selectedTab:r;var o={previousIndex:this.selectedTab,selectedIndex:r};if(this.setProperties({selectedTab:r},!0),this.checkOverflow(r,t.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var i=this.overflowDDB.target,s=i.querySelector("."+a.v);s&&s.classList.remove(a.v);var c=i.querySelector("#"+e+a.l);c?(c.classList.add(a.v),this.overflowDDB.element.classList.remove(a.t)):this.overflowDDB.element.classList.add(a.t)}this.trigger("tabSelected",o)},e.prototype.checkOverflow=function(t,e){var n=e.closest("."+a.E),r=n.offsetWidth<e.offsetWidth;if(r&&!this.scrollModule){if("Classic"===this.activeLayout){var i=!1;i=this.checkGroupShrinking(t,n,e,!0),!i&&n.offsetWidth<e.offsetWidth&&(i=this.checkGroupShrinking(t,n,e,!1)),n.offsetWidth<e.offsetWidth&&this.createOverflowDropdown(t,n,e)}else this.checkSimplifiedItemShrinking(t,n,e),n.offsetWidth<e.offsetWidth&&this.createSimplfiedOverflow(n,e,t);n.offsetWidth<e.offsetWidth&&!this.scrollModule&&(this.scrollModule=new o.HScroll({enableRtl:this.enableRtl},this.tabObj.element.querySelector("."+a.E)))}else if(!r)if(this.destroyScroll(),"Classic"===this.activeLayout){var i=!1;i=this.removeOverflowDropdown(n,e,!1,t),!i&&n.offsetWidth>e.offsetWidth&&(i=this.checkGroupExpanding(t,n,e,!0)),!i&&n.offsetWidth>e.offsetWidth&&(i=this.checkGroupExpanding(t,n,e,!1))}else this.removeSimplfiedOverflow(n,e,t),n.offsetWidth>e.offsetWidth&&this.checkSimplifiedItemExpanding(t,n,e)},e.prototype.checkSimplifiedItemShrinking=function(t,e,n){for(var r=this.tabs[parseInt(t.toString(),10)],o=r.groups.length-1;o>=0;o--)for(var i=r.groups[parseInt(o.toString(),10)],c=e.querySelector("#"+i.id+a._20),l=0;l<i.collections.length&&e.offsetWidth<n.offsetWidth;l++)for(var u=i.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.a.Small&&d.allowedSizes&s.a.Medium&&d.activeSize===s.a.Medium&&d.displayOptions&s.b.Simplified){var f=c.querySelector("#"+d.id+a._20);if(f){var h=f.querySelector("#"+d.id);f.setAttribute("data-medium-width",n.offsetWidth.toString()),d.setProperties({activeSize:s.a.Small},!0),this.setItemSize(h,d)}}}},e.prototype.checkSimplifiedItemExpanding=function(t,e,n){for(var r=this.tabs[parseInt(t.toString(),10)],o=r.groups.length-1;o>=0;o--)for(var i=r.groups[parseInt(o.toString(),10)],c=e.querySelector("#"+i.id+a._20),l=0;l<i.collections.length&&e.offsetWidth>n.offsetWidth;l++)for(var u=i.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.a.Small&&d.allowedSizes&s.a.Medium&&d.activeSize===s.a.Small&&d.displayOptions&s.b.Simplified){var f=c.querySelector("#"+d.id+a._20);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 v=f.querySelector("#"+d.id);d.setProperties({activeSize:s.a.Medium},!0),this.setItemSize(v,d)}}}}},e.prototype.createSimplfiedOverflow=function(t,e,o){for(var i=this.getGroupResizeOrder(!0,o),c=0;c<i.length&&t.offsetWidth<e.offsetWidth;c++){for(var l=i[parseInt(c.toString(),10)],u=t.querySelector("#"+l.id),p=u.querySelector("#"+l.id+a._20),d=l.collections.length;d>=1&&t.offsetWidth<e.offsetWidth;d--)for(var f=l.collections[parseInt((d-1).toString(),10)],h=u.querySelector("#"+f.id),b=f.items.length;b>=1&&t.offsetWidth<e.offsetWidth;b--){var v=f.items[b-1],m=h.querySelector("#"+v.id+a._20);if((v.displayOptions===s.b.Auto||v.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(m)){if(m.setAttribute("data-simplified-width",e.offsetWidth.toString()),this.createOverflowPopup(v,o,l.enableGroupOverflow,l.id,l.header,m,p),v.activeSize===s.a.Small){var y=m.querySelector("#"+v.id);v.setProperties({activeSize:s.a.Medium},!0),this.setItemSize(y,v)}v.type!==s.e.DropDown&&v.type!==s.e.SplitButton||this.updatePopupItems(v,m,l.enableGroupOverflow,!0)}}l.enableGroupOverflow||u.querySelector("."+a.S)||u.classList.add("e-ribbon-emptyCollection")}},e.prototype.updatePopupItems=function(t,e,o,i){var c=n.i(r.getComponent)(e.querySelector("#"+t.id),t.type===s.e.DropDown?u.DropDownButton:u.SplitButton),l=c.dropDown,a=(o&&i)===this.enableRtl;l.setProperties({position:{X:a?"left":"right",Y:i?"top":"bottom"}},!0),i?c.beforeOpen=function(){a&&(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),c.beforeOpen=null)},e.prototype.removeSimplfiedOverflow=function(t,e,o,i){void 0===i&&(i=!1);for(var c=this.getGroupResizeOrder(!1,o),l=!0,p=0;p<c.length&&l;p++){var d=c[parseInt(p.toString(),10)],f=void 0,h=void 0;if(d.enableGroupOverflow){var b=t.querySelector("#"+d.id+a._16);b&&(f=n.i(r.getInstance)(b,u.DropDownButton),h=f.target)}else f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null;for(var v=0;v<d.collections.length&&l;v++)for(var m=d.collections[parseInt(v.toString(),10)],y=0;y<m.items.length&&l&&!i&&t.offsetWidth>e.offsetWidth;y++){var g=m.items[parseInt(y.toString(),10)],_=void 0;if(h&&(_=h.querySelector("#"+g.id+a._20)),(g.displayOptions===s.b.Auto||g.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(_)){var S=parseInt(_.getAttribute("data-simplified-width"),10);if(!i&&t.offsetWidth<S){l=!1;break}var I=t.querySelector("#"+m.id);g.type!==s.e.DropDown&&g.type!==s.e.SplitButton||this.updatePopupItems(g,_,d.enableGroupOverflow,!1),I.append(_),this.removeOverflowEvent(g,_),g.allowedSizes&s.a.Small&&(g.setProperties({activeSize:s.a.Small},!0),this.setItemSize(_.querySelector("#"+g.id),g))}}var C=t.querySelector("#"+d.id),O=C.querySelector("."+a.S);if(C.classList.contains("e-ribbon-emptyCollection")&&null!==O&&C.classList.remove("e-ribbon-emptyCollection"),f)if(d.enableGroupOverflow)0===h.childElementCount&&this.removeOverflowButton(f);else{var w=h.querySelector("#"+d.id+a._20);w&&1===w.childElementCount&&w.remove();var P=h.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+a.l);P&&0===P.childElementCount&&(P.remove(),this.overflowDDB.element.classList.add(a.t))}}if(this.overflowDDB){0===this.overflowDDB.target.childElementCount&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)}},e.prototype.createOverflowPopup=function(t,e,o,i,s,c,l){var p;if(o){var d=l.querySelector("#"+i+a._16);d?p=n.i(r.getInstance)(d,u.DropDownButton):(p=this.addOverflowButton(i+a._16),p.element.classList.add(a.B),l.appendChild(p.element)),p.target.append(c)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(a.t);var f=this.overflowDDB.target,h=f.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+a.l);if(h){var b=f.querySelector("#"+i+a._20);b||(b=this.createGroupContainer(i,s),h.append(b)),b.append(c)}else this.createOfTabContainer(i,s,c,e)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+a._15),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(a.A),this.createOfTabContainer(i,s,c,e);p=this.overflowDDB}null!==c&&this.addOverflowEvents(t,c,p)},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)}},e.prototype.createOfTabContainer=function(t,e,n,r){var o=this.createElement("div",{id:this.tabs[parseInt(r.toString(),10)].id+a.l,className:a.I});this.overflowDDB.target.append(o);var i=this.createGroupContainer(t,e);i.append(n),o.append(i),r===this.selectedTab&&o.classList.add(a.v)},e.prototype.checkGroupShrinking=function(t,e,n,r){for(var o=!0,i=!1,s=this.tabs[parseInt(t.toString(),10)],c=s.groups.length-1;o&&c>=0;c--)i=r?this.checkLargeToMedium(t,s,c,e,n):this.checkMediumToSmall(t,s,c,e,n),o=!i&&e.offsetWidth<n.offsetWidth;return i},e.prototype.checkValidCollectionLength=function(t){for(var e=0,n=0;n<t.length;n++){for(var r=t[parseInt(n.toString(),10)].items,o=0;o<r.length;o++)if(r[parseInt(o.toString(),10)].displayOptions&s.b.Classic){e++;break}if(e>1)return!1}return 1===e},e.prototype.checkClassicCollection=function(t,e,n){for(var r=t[parseInt(e.toString(),10)].items,o=0;o<r.length;o++)if(r[parseInt(o.toString(),10)].displayOptions&s.b.Classic)return e;return e=n?e+1:e-1,n?e===t.length?e:this.checkClassicCollection(t,e,n):e<0?e:this.checkClassicCollection(t,e,n)},e.prototype.checkClassicItem=function(t,e,n){return t[parseInt(e.toString(),10)].displayOptions&s.b.Classic?e:(e=n?e+1:e-1,n?e===t.length?e:this.checkClassicItem(t,e,n):e<0?e:this.checkClassicItem(t,e,n))},e.prototype.checkLargeToMedium=function(t,e,n,r,o,i){var c=this;void 0===i&&(i=!1);var l=e.groups[parseInt(n.toString(),10)];if(l.isCollapsed&&!i)return!1;var u=function(t){return 1===t.items.length&&p(t.items[0])},p=function(t){return t.allowedSizes&s.a.Medium&&t.activeSize===s.a.Large},d=function(t,e,n,r){var s=c.createElement("div",{className:"e-ribbon-shrink"+a.f+a.T,id:t+"_shrink_container"+n,attrs:{"data-start":n.toString(),"data-end":r.toString()}});return e.parentElement.insertBefore(s,e),i||s.setAttribute("data-large-width",o.offsetWidth.toString()),s},f=function(e,r){for(var l=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[0],u=o.querySelector("#"+l.items[parseInt(e.toString(),10)].id+a._20),p=i?o.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=o.querySelector("#"+h.id+a._20);p.appendChild(b),h.setProperties({activeSize:s.a.Medium},!0),c.setItemSize(b.querySelector("#"+h.id),h)}}},h=function(e,r){for(var l=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)],a=o.querySelector("#"+l.collections[parseInt(e.toString(),10)].id),u=i?o.querySelector("#"+l.id+"_shrink_container"+e):d(l.id,a,e,r),p=e;p<=r;p++){var f=l.collections[parseInt(p.toString(),10)],h=o.querySelector("#"+f.id);u.appendChild(h),f.items[0].setProperties({activeSize:s.a.Medium},!0),c.setItemSize(h.querySelector("#"+f.items[0].id),f.items[0])}};if(l.orientation===s.d.Column)for(var b=l.collections.length-1;b>0;b--){b=this.checkClassicCollection(l.collections,b,!1);var v=b-1;if(v>=0&&u(l.collections[parseInt(b.toString(),10)]))if((v=this.checkClassicCollection(l.collections,v,!1))>=0&&u(l.collections[parseInt(v.toString(),10)])){var m=v-1;if(m>=0&&(m=this.checkClassicCollection(l.collections,m,!1)),m>=0&&u(l.collections[parseInt(m.toString(),10)])?h(m,b):h(v,b),b=m,!i&&r.offsetWidth>o.offsetWidth)return!0}else b=v}else if(this.checkValidCollectionLength(l.collections))for(var y=l.collections[0],b=y.items.length-1;b>0;b--){b=this.checkClassicItem(y.items,b,!1);var v=b-1;if(v>=0&&p(y.items[parseInt(b.toString(),10)]))if((v=this.checkClassicItem(y.items,v,!1))>=0&&p(y.items[parseInt(v.toString(),10)])){var m=v-1;if(m>=0&&(m=this.checkClassicItem(y.items,m,!1)),m>=0&&p(y.items[parseInt(m.toString(),10)])?f(m,b):f(v,b),b=m,!i&&r.offsetWidth>o.offsetWidth)return!0}else b=v}return!1},e.prototype.checkMediumToSmall=function(t,e,n,r,o,i){var c=this;void 0===i&&(i=!1);var l=e.groups[parseInt(n.toString(),10)];if(l.isCollapsed&&!i)return!1;var a=l.orientation,u=o.querySelector("#"+l.id),p=u.querySelectorAll(".e-ribbon-shrink"),d=function(t){return t.allowedSizes&s.a.Small&&t.activeSize===s.a.Medium},f=function(e,r,i,l){void 0===l&&(l=null);var a=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],u=function(t){var e=a.items[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=o.querySelector("#"+e.id);e.setProperties({activeSize:s.a.Small},!0),c.setItemSize(n,e)}};u(r),l&&u(l),u(i)},h=function(e,r,l,a){void 0===a&&(a=null);var u=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)];i||p[parseInt(e.toString(),10)].setAttribute("data-medium-width",o.offsetWidth.toString());var d=function(t){var e=u.collections[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=o.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.a.Small},!0),c.setItemSize(n,e.items[0])}};d(r),a&&d(a),d(l)},b=function(t){if(!i){o.querySelector("#"+t).setAttribute("data-medium-width",o.offsetWidth.toString())}};if(a===s.d.Column){if(p.length>0)for(var v=p.length-1;v>=0;v--){var m=parseInt(p[parseInt(v.toString(),10)].getAttribute("data-start"),10),y=parseInt(p[parseInt(v.toString(),10)].getAttribute("data-end"),10),g=this.checkClassicCollection(l.collections,m+1,!1);if(d(l.collections[parseInt(m.toString(),10)].items[0])&&d(l.collections[parseInt(g.toString(),10)].items[0])&&(y===g?h(v,m,y):d(l.collections[parseInt(y.toString(),10)].items[0])&&h(v,m,y,g),!i&&r.offsetWidth>o.offsetWidth))return!0}for(var v=l.collections.length-1;v>=0;v--){for(var _=l.collections[parseInt(v.toString(),10)],S=[],I=0;I<_.items.length;I++)_.items[parseInt(I.toString(),10)].displayOptions&s.b.Classic&&S.push(I);if(S.length>1&&d(_.items[S[0]])&&d(_.items[S[1]])&&(2===S.length?(b(_.id),f(v,S[0],S[1])):d(_.items[S[2]])&&(b(_.id),f(v,S[0],S[2],S[1])),!i&&r.offsetWidth>o.offsetWidth))return!0}}else if(this.checkValidCollectionLength(l.collections)){if(p.length>0)for(var v=p.length-1;v>=0;v--){var C=p[parseInt(v.toString(),10)],m=parseInt(C.getAttribute("data-start"),10),y=parseInt(C.getAttribute("data-end"),10),_=l.collections[0],g=this.checkClassicItem(_.items,m+1,!1);if(d(l.collections[0].items[parseInt(m.toString(),10)])&&d(l.collections[0].items[parseInt(g.toString(),10)])&&(y===g?(b(C.id),f(0,m,y)):d(l.collections[0].items[parseInt(y.toString(),10)])&&(b(C.id),f(0,m,y,g)),!i&&r.offsetWidth>o.offsetWidth))return!0}}else for(var v=l.collections.length-1;v>=0;v--)for(var _=l.collections[parseInt(v.toString(),10)],g=_.items.length-1;g>=0;g--)if(!((g=this.checkClassicItem(_.items,g,!1))<0)){var O=_.items[parseInt(g.toString(),10)];if(d(O)&&(b(O.id),f(v,g,g),!i&&r.offsetWidth>o.offsetWidth))return!0}return!1},e.prototype.checkGroupExpanding=function(t,e,n,r){for(var o=!1,i=this.tabs[parseInt(t.toString(),10)],s=0;!o&&s<i.groups.length;s++)o=r?this.checkSmallToMedium(t,i,s,e,n,!1,!0):this.checkMediumToLarge(t,i,s,e,n,!1,!0);return o},e.prototype.checkSmallToMedium=function(t,e,n,r,o,i,c){var l=this,a=e.groups[parseInt(n.toString(),10)],u=a.orientation,p=o.querySelector("#"+a.id),d=p.querySelectorAll(".e-ribbon-shrink"),f=function(e,r,o){var i=l.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],c=i.items[parseInt(r.toString(),10)];if(c.displayOptions&s.b.Classic){var a=o.id===c.id?o:o.querySelector("#"+c.id);c.setProperties({activeSize:s.a.Medium},!0),l.setItemSize(a,c)}},h=function(e){var r=l.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections;if(r[parseInt(e.toString(),10)].items[0].displayOptions&s.b.Classic){var i=o.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id);r[parseInt(e.toString(),10)].items[0].setProperties({activeSize:s.a.Medium},!0),l.setItemSize(i,r[parseInt(e.toString(),10)].items[0])}};if(u===s.d.Row){if(!this.checkValidCollectionLength(a.collections))for(var b=0;b<a.collections.length;b++)for(var v=a.collections[parseInt(b.toString(),10)],m=0;m<v.items.length;m++)if((m=this.checkClassicItem(v.items,m,!0))!==v.items.length){var y=v.items[parseInt(m.toString(),10)];if(function(t){return t.allowedSizes&s.a.Medium&&t.activeSize===s.a.Small}(y)){var g=o.querySelector("#"+y.id),_=g.getAttribute("data-medium-width"),S=_?parseInt(_,10):null;if(S&&(i||r.offsetWidth>S))f(b,m,g),i&&!c||g.removeAttribute("data-medium-width");else if(S)return!0}}}else for(var b=0;b<a.collections.length;b++)if(a.collections[parseInt(b.toString(),10)].items.length>1){for(var v=a.collections[parseInt(b.toString(),10)],g=o.querySelector("#"+v.id),_=g.getAttribute("data-medium-width"),S=_?parseInt(_,10):null,I=[],C=0;C<v.items.length;C++)v.items[parseInt(C.toString(),10)].displayOptions&s.b.Classic&&I.push(C);if(I.length>1&&S&&(i||r.offsetWidth>S))f(b,I[0],g),f(b,I[1],g),3===I.length&&f(b,I[2],g),i&&!c||g.removeAttribute("data-medium-width");else if(S)return!0}if(d.length>0)for(var b=0;b<d.length;b++){var O=d[parseInt(b.toString(),10)],_=O.getAttribute("data-medium-width"),S=_?parseInt(_,10):null;if(S&&(i||r.offsetWidth>S)){var w=parseInt(O.getAttribute("data-start"),10),P=parseInt(O.getAttribute("data-end"),10);if(u===s.d.Row){var v=a.collections[0],m=this.checkClassicItem(v.items,w+1,!0);f(0,w,O),f(0,m,O),m!==P&&f(0,P,O)}else{var D=this.checkClassicCollection(a.collections,w+1,!0);h(w),h(D),D!==P&&h(P)}i&&!c||O.removeAttribute("data-medium-width")}else if(S)return!0}return!1},e.prototype.checkMediumToLarge=function(t,e,o,i,c,l,u){var p=this,d=e.groups[parseInt(o.toString(),10)],f=d.orientation,h=c.querySelector("#"+d.id),b=h.querySelectorAll(".e-ribbon-shrink");if(0===b.length)return!1;for(var v=function(e,i,c,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(o.toString(),10)].collections[0].items,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=c.querySelector("#"+e.id+a._20),r=n.querySelector("#"+e.id);e.setProperties({activeSize:s.a.Large},!0),p.setItemSize(r,e),c.insertAdjacentElement("afterend",n)}};h(e),d&&h(d),h(i),l&&!u||n.i(r.remove)(c)},m=function(e,i,c,a){var d=p.tabs[parseInt(t.toString(),10)].groups[parseInt(o.toString(),10)].collections,f=function(t){var e=d[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=c.querySelector("#"+e.id),r=n.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.a.Large},!0),p.setItemSize(r,e.items[0]),c.insertAdjacentElement("afterend",n)}};f(e),a&&f(a),f(i),l&&!u||n.i(r.remove)(c)},y=0;y<b.length;y++){var g=b[parseInt(y.toString(),10)],_=g.getAttribute("data-large-width"),S=_?parseInt(_,10):null;if(S&&(l||i.offsetWidth>S)){var I=parseInt(g.getAttribute("data-start"),10),C=parseInt(g.getAttribute("data-end"),10);if(f===s.d.Row){var O=d.collections[0],w=this.checkClassicItem(O.items,I+1,!0);w===C?v(I,C,g):v(I,C,g,w)}else{var P=this.checkClassicCollection(d.collections,I+1,!0);P===C?m(I,C,g):m(I,C,g,P)}l&&!u||g.removeAttribute("data-large-width")}else if(S)return!0}return!1},e.prototype.setItemSize=function(t,e){var o=t.closest("."+a.S);e.type===s.e.Button?this.ribbonButtonModule.updateButtonSize(t,e):e.type===s.e.DropDown?this.ribbonDropDownModule.updateDropDownSize(t,e):e.type===s.e.SplitButton?this.ribbonSplitButtonModule.updateSplitButtonSize(t,e):e.type===s.e.Template&&(n.i(r.remove)(t),this.createTemplateContent(e,o)),o.classList.remove(a.Y,a.V,a.W,a.X),e.activeSize===s.a.Large?o.classList.add(a.V,a.Y):o.classList.add(e.activeSize===s.a.Medium?a.W:a.X)},e.prototype.createOverflowDropdown=function(t,e,r){var o=this.getGroupResizeOrder(!0,t);if(0!==o.length)for(var i=this,s=0;s<o.length&&e.offsetWidth<r.offsetWidth;s++)!function(s){var c=o[parseInt(s.toString(),10)],u=i.tabObj.element.querySelector("#"+c.id);u.setAttribute("data-expanded-width",r.offsetWidth.toString());var p=u.querySelector("#"+c.id+a._20),d=i.createElement("div",{className:a.N+a.f+a.V,id:c.id+a.l+a._20});u.insertBefore(d,p);var f=n.i(l.a)(i.tabs[parseInt(t.toString(),10)].groups,function(t){return t.id===c.id}),h=i.tabs[parseInt(t.toString(),10)];i.checkSmallToMedium(t,h,f,e,r,!0,!1),i.checkMediumToLarge(t,h,f,e,r,!0,!1);var b=i.ribbonDropDownModule.createOverFlowDropDown(c.id,c.header,c.groupIconCss,p,d,i.enableRtl);i.tabs[parseInt(t.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!0},!0);for(var v=0;v<c.collections.length;v++)for(var m=c.collections[parseInt(v.toString(),10)],y=p.querySelector("#"+m.id),g=0;g<m.items.length;g++){var _=m.items[parseInt(g.toString(),10)],S=y.querySelector("#"+_.id+a._20);null!==S&&i.addOverflowEvents(_,S,b)}}(s)},e.prototype.removeOverflowDropdown=function(t,e,r,o){void 0===r&&(r=!1);var i=this.getGroupResizeOrder(!1,o);if(0===i.length)return!1;for(var s=this,c=0;c<i.length;c++){var u=function(c){var u=i[parseInt(c.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.a)(s.tabs[parseInt(o.toString(),10)].groups,function(t){return t.id===u.id});s.tabs[parseInt(o.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!1},!0);var h=s.tabs[parseInt(o.toString(),10)];s.checkLargeToMedium(o,h,f,t,e,!0),s.checkMediumToSmall(o,h,f,t,e,!0);for(var b=0;b<u.collections.length;b++)for(var v=u.collections[parseInt(b.toString(),10)],m=p.querySelector("#"+v.id),y=0;y<v.items.length;y++){var g=v.items[parseInt(y.toString(),10)],_=m.querySelector("#"+g.id+a._20);null!==_&&s.removeOverflowEvent(g,_)}}(c);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+a.l+a.m);if(e){var o=e.parentElement;this.ribbonDropDownModule.removeOverFlowDropDown(e),n.i(r.remove)(o)}},e.prototype.getGroupResizeOrder=function(t,e){var o=this,i=this.tabs[parseInt(e.toString(),10)].groups;return i=i.filter(function(e){return"Classic"!==o.activeLayout||(n.i(r.isUndefined)(e.isCollapsible)||e.isCollapsible)&&(t&&n.i(r.isUndefined)(e.isCollapsed)||!n.i(r.isUndefined)(e.isCollapsed)&&t!==e.isCollapsed)}),i.sort(function(t,e){return t.priority-e.priority}),t?i.reverse():i},e.prototype.destroyScroll=function(){this.scrollModule&&(this.scrollModule.destroy(),this.scrollModule=null)},e.prototype.clearOverflowDropDown=function(t){var e=this.tabObj.element.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+a._19);if(e){var n=e.closest("."+a.E);"Simplified"===this.activeLayout?this.removeSimplfiedOverflow(e,n,t,!0):this.removeOverflowDropdown(e,n,!0,t)}},e.prototype.ribbonTabSelecting=function(t){var e=this;this.currentControlIndex=0;var o=t.selectingItem.getAttribute("data-id"),i=t.previousItem.getAttribute("data-id"),s=n.i(l.a)(this.tabs,function(t){return t.id===o}),c=n.i(l.a)(this.tabs,function(t){return t.id===i});s=-1===s?this.selectedTab:s;var u={cancel:t.cancel,isInteracted:t.isInteracted,previousIndex:c,selectedIndex:s};this.trigger("tabSelecting",u,function(t){if(!t.cancel){e.destroyScroll(),e.isAddRemove||-1===c||e.clearOverflowDropDown(c);var o=e.tabObj.items[parseInt(s.toString(),10)].content;if(!o.querySelector("."+a.G)&&0!==e.tabs[parseInt(s.toString(),10)].groups.length){var i=e.createGroups(e.tabs[parseInt(s.toString(),10)].groups,s);n.i(r.append)(i,o)}}})},e.prototype.createTabItems=function(t){for(var e=this,n=[],r=0;r<t.length;r++){var o=t[parseInt(r.toString(),10)],i=this.createElement("span",{innerHTML:o.header,id:o.id+a._17});i.onclick=function(){e.minimize(!1)},i.ondblclick=function(){e.minimize(!0)};var s={header:{text:i},id:o.id,cssClass:o.cssClass},c=this.createElement("div",{className:s.cssClass,id:o.id+a._19});c.classList.add(a.w),s.content=c,n.push(s)}return n},e.prototype.renderInitialTab=function(t){var e=this.createGroups(this.tabs[parseInt(t.toString(),10)].groups,t),o=this.tabObj.items[parseInt(t.toString(),10)].content;n.i(r.append)(e,o),"Simplified"===this.activeLayout&&this.element.classList.add(a._9);var i=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a._19);this.checkOverflow(this.selectedTab,i)},e.prototype.addOverflowButton=function(t){var e=this,o=this.createElement("button",{id:t}),i=this.createElement("div",{className:a.C,attrs:{tabindex:"0"}}),s=new u.DropDownButton({iconCss:a.p,cssClass:a._0+a.f+a.n,target:i,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeClose:function(t){(t.event?n.i(r.closest)(t.event.target,"."+a.k):null)&&(t.cancel=!0)}},o);this.element.classList.add(a.D),n.i(l.l)(i,this);var c;return o.onkeydown=o.onclick=function(){e.itemIndex=-1,c=!o.classList.contains("e-ribbon-overall-of-btn")},i.onkeydown=function(t){return e.upDownKeyHandler(t,i,c),e},s},e.prototype.upDownKeyHandler=function(t,e,o){var i;if(o)i=e.getElementsByClassName("e-ribbon-item");else{i=e.querySelector(".e-ribbon-of-tab.e-ribbon-active").getElementsByClassName("e-ribbon-item")}var s,c=i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control").classList.contains("e-combobox")?i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;(null===c||"Tab"===t.key||this.itemIndex<0)&&("ArrowDown"===t.key||!t.shiftKey&&"Tab"===t.key?!this.itemIndex&&0!==this.itemIndex||this.itemIndex<0||this.itemIndex===i.length-1?(this.itemIndex=0,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0),c&&"Tab"===t.key&&(t.preventDefault(),i[this.itemIndex].querySelector(".e-control").focus())):this.itemIndex<i.length-1&&this.itemIndex>=0&&(this.itemIndex++,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0)):("ArrowUp"===t.key||t.shiftKey&&"Tab"===t.key)&&(null!==c&&"Tab"!==t.key||(this.itemIndex&&-1!==this.itemIndex?this.itemIndex<=i.length-1&&this.itemIndex>0&&(this.itemIndex--,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1)):(this.itemIndex=i.length-1,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1),c&&t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),i[this.itemIndex].querySelector(".e-control").focus())))),e.setAttribute("index",this.itemIndex.toString()));var l=parseInt(e.getAttribute("index"),10),a=i[parseInt(l.toString(),10)]?i[parseInt(l.toString(),10)].querySelector(".e-control").getAttribute("data-control"):null;if(("ArrowDown"===t.key||"ArrowUp"===t.key||" "===t.key||"Tab"===t.key)&&("ColorPicker"===a?("Tab"===t.key&&t.preventDefault(),i[parseInt(l.toString(),10)].querySelector(".e-split-colorpicker").focus()):("Tab"===t.key&&t.preventDefault(),i[parseInt(l.toString(),10)].querySelector(".e-control").focus())," "===t.key&&"CheckBox"===a)){var u=i[parseInt(l.toString(),10)].querySelector(".e-control"),d=n.i(r.getComponent)(u,p.CheckBox);this.itemIndex=-1,d.click()}"SplitButton"!==a||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||("ArrowRight"===t.key&&(this.enableRtl?i[parseInt(l.toString(),10)].querySelector(".e-control").focus():i[parseInt(l.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===t.key&&(this.enableRtl?i[parseInt(l.toString(),10)].querySelector(".e-dropdown-btn").focus():i[parseInt(l.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.m)(t.target),t.destroy(),e.remove()}},e.prototype.removeOverflowEvent=function(t,e){switch(t.type){case"Button":this.ribbonButtonModule.removeOverFlowEvents(t,e);break;case"DropDown":this.ribbonDropDownModule.removeOverFlowEvents(t,e);break;case"SplitButton":this.ribbonSplitButtonModule.removeOverFlowEvents(t,e);break;case"CheckBox":this.ribbonCheckBoxModule.removeOverFlowEvents(t,e);break;case"ColorPicker":this.ribbonColorPickerModule.removeOverFlowEvents(t,e);break;case"ComboBox":this.ribbonComboBoxModule.removeOverFlowEvents(t,e)}},e.prototype.createGroupContainer=function(t,e){var n=this.createElement("div",{className:a.J,id:t+a._20}),r=this.createElement("div",{className:a.M,id:t+a._17,innerHTML:e});return n.append(r),n},e.prototype.addExpandCollapse=function(){var t=this;this.collapseButton=this.createElement("span",{className:a.x+a.f+a.o,id:this.tabObj.element.id+a._14,attrs:{tabindex:"0",type:"button","aria-label":"Layout Switcher",role:"button"}}),this.collapseButton.onclick=function(){t.toggleLayout()},this.collapseButton.onkeydown=function(e){"Enter"===e.key&&t.toggleLayout()},this.element.classList.add(a.z),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(a.y),this.tabObj.element.appendChild(this.collapseButton)},e.prototype.removeExpandCollapse=function(){var t=this,e=n.i(l.a)(this.tooltipData,function(e){return e.id===t.collapseButton.id});-1!==e&&this.tooltipData.splice(e,1),this.element.classList.remove(a.z),n.i(r.remove)(this.tabObj.element.querySelector("."+a.x)),this.collapseButton=null},e.prototype.reRenderTabs=function(){this.destroyScroll(),this.checkID(this.tabs,"tab",this.element.id),this.destroyTabItems(this.tabsInternal),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var t=this.createTabItems(this.tabs);this.selectedTab>=this.tabs.length&&(this.selectedTab=this.tabs.length-1),this.tabObj.setProperties({items:t,selectedItem:this.selectedTab}),""===this.tabObj.items[this.selectedTab].content.innerHTML&&this.renderInitialTab(this.selectedTab)},e.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(a.y,"Simplified"===this.activeLayout),this.element.classList.toggle(a._9,"Simplified"===this.activeLayout);for(var t=0;t<=this.tabs.length-1;t++){var e=t;if(""!==this.tabObj.items[parseInt(e.toString(),10)].content.innerHTML){var o=this.tabs[parseInt(e.toString(),10)],i=this.tabs[parseInt(e.toString(),10)].groups,c=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+a._19),l=c.closest("."+a.E);if("Simplified"===this.activeLayout)for(var p=0;p<i.length;p++){var d=i[parseInt(p.toString(),10)],f=i[parseInt(p.toString(),10)].orientation;d.isCollapsed?(d.setProperties({isCollapsed:!1},!0),this.removeDropdown(d.id)):(this.checkSmallToMedium(e,o,p,l,c,!0,!1),this.checkMediumToLarge(e,o,p,l,c,!0,!1));for(var h=l.querySelector("#"+d.id),b=h.querySelector("#"+d.id+a._20),v=b.querySelectorAll(".e-ribbon-shrink"),m=0;m<v.length;m++)v[parseInt(m.toString(),10)].remove();var y=b.querySelector("#"+d.id+a._17);y.remove();var g=b.querySelector("#"+d.id+a._19);g.classList.replace(a.T,a.U),g.classList.remove(a.Y);for(var _=0;_<d.collections.length;_++){var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);I.classList.replace(a.T,a.U);for(var C=0;C<S.items.length;C++){for(var O=S.items,w=S.items[parseInt(C.toString(),10)],P=!0;P&&w.displayOptions===s.b.Classic;){C++;var D=b.querySelector("#"+w.id+a._20),B=D.querySelector("#"+w.id);this.destroyFunction(w,B),D.remove(),C<O.length?w=O[parseInt(C.toString(),10)]:P=!1}if(!P)break;var L=w.allowedSizes===s.a.Large||w.allowedSizes&s.a.Medium?s.a.Medium:s.a.Small;L=!(w.displayOptions&s.b.Simplified)&&w.displayOptions&s.b.Overflow?s.a.Medium:L;var x=void 0;if(w.displayOptions&s.b.Classic){x=b.querySelector("#"+w.id+a._20),w.displayOptions===(s.b.Classic|s.b.Overflow)&&(this.createOverflowPopup(w,e,d.enableGroupOverflow,d.id,d.header,x,b),w.type!==s.e.DropDown&&w.type!==s.e.SplitButton||this.updatePopupItems(w,x,d.enableGroupOverflow,!0)),w.setProperties({activeSize:L},!0);var B=x.querySelector("#"+w.id);this.setItemSize(B,w)}else x=this.createItems([w],f,d.id,d.header,d.enableGroupOverflow,e,b)[0],w.displayOptions&s.b.Simplified&&I.append(x)}}d.enableGroupOverflow||h.querySelector("."+a.S)||h.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(a.D);for(var T=0;T<i.length;T++){var d=i[parseInt(T.toString(),10)],f=i[parseInt(T.toString(),10)].orientation,b=l.querySelector("#"+d.id+a._20),g=b.querySelector("#"+d.id+a._19),y=this.createElement("div",{className:a.L,id:d.id+a._17,innerHTML:d.header});b.appendChild(y),"Row"===f&&g.classList.replace(a.U,a.T),g.classList.add(a.Y);for(var _=0;_<d.collections.length;_++){var k=void 0,E=void 0;if(d.enableGroupOverflow){var R=b.querySelector("#"+d.id+a._16);R&&(k=n.i(r.getInstance)(R,u.DropDownButton),E=k.target)}else(k=this.overflowDDB)&&(E=this.overflowDDB.target);var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);"Column"===f&&I.classList.replace(a.U,a.T);for(var C=0;C<S.items.length;C++){for(var O=S.items,w=S.items[parseInt(C.toString(),10)],P=!0;P&&!(w.displayOptions&s.b.Classic);){C++;var x=void 0;if((w.displayOptions&s.b.Simplified||w.displayOptions&s.b.Overflow)&&null!==(x=w.displayOptions&s.b.Simplified?b.querySelector("#"+w.id+a._20):E.querySelector("#"+w.id+a._20))){var M=x.querySelector("#"+w.id);this.destroyFunction(w,M),x.remove()}C<O.length?w=O[parseInt(C.toString(),10)]:P=!1}if(!P)break;if(w.displayOptions&(s.b.Simplified|s.b.Overflow)){var x=b.querySelector("#"+w.id+a._20);x||(x=E.querySelector("#"+w.id+a._20),w.type!==s.e.DropDown&&w.type!==s.e.SplitButton||this.updatePopupItems(w,x,d.enableGroupOverflow,!1),this.removeOverflowEvent(w,x)),I.append(x)}else{var x=this.createItems([w],f,d.id,d.header,d.enableGroupOverflow,e)[0];I.append(x)}var B=b.querySelector("#"+w.id),q=w.allowedSizes&s.a.Large?s.a.Large:w.allowedSizes&s.a.Medium?s.a.Medium:s.a.Small;w.setProperties({activeSize:q},!0),this.setItemSize(B,w)}d.enableGroupOverflow&&k&&0===E.childElementCount&&this.removeOverflowButton(k)}}}this.selectedTab===e&&this.checkOverflow(e,c)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.createLauncherIcon=function(t,e){var n=this,o=this.createElement("div",{className:a.P+" "+(this.launcherIconCss?this.launcherIconCss:a.Q),id:t+a._18,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});e.appendChild(o),e.classList.add(a.O),r.EventHandler.add(o,"click",this.launcherIconClicked.bind(this,t),this),r.EventHandler.add(o,"keydown",function(e){"Enter"===e.key&&n.launcherIconClicked(t)},this)},e.prototype.launcherIconClicked=function(t){var e={groupId:t};this.trigger("launcherIconClick",e)},e.prototype.createGroups=function(t,e){for(var o=[],i=0;i<t.length;i++){var s=t[parseInt(i.toString(),10)],c=s.orientation,l=this.createElement("div",{className:s.cssClass,id:s.id});l.classList.add(a.G),o.push(l);var u=this.createElement("div",{className:s.cssClass,id:s.id+a._20});u.classList.add(a.H),l.appendChild(u);var p=this.createElement("div",{className:"Simplified"===this.activeLayout?a.K:a.K+a.f+a.Y,id:s.id+a._19});if(p.classList.add("Column"===c||"Simplified"===this.activeLayout?a.U:a.T),u.appendChild(p),"Classic"===this.activeLayout){var d=this.createElement("div",{className:a.L,id:s.id+a._17,innerHTML:s.header});u.appendChild(d)}s.showLauncherIcon&&this.createLauncherIcon(s.id,u);var f=this.createCollection(s.collections,s.orientation,s.id,s.header,s.enableGroupOverflow,e,u);n.i(r.append)(f,p),"Simplified"!==this.activeLayout||s.enableGroupOverflow||l.querySelector("."+a.S)||l.classList.add("e-ribbon-emptyCollection")}return o},e.prototype.validateItemSize=function(){for(var t=0;t<this.tabs.length;t++)for(var e=this.tabs[parseInt(t.toString(),10)].groups,n=0;n<e.length;n++)for(var r=e[parseInt(n.toString(),10)].collections,o=e[parseInt(n.toString(),10)].orientation,i=0;i<r.length;i++)for(var c=r[parseInt(i.toString(),10)].items,l=0;l<c.length;l++){var a=c[parseInt(l.toString(),10)];if(a.allowedSizes&&0!==a.allowedSizes||a.setProperties({allowedSizes:s.a.Small|s.a.Medium|s.a.Large},!0),"ColorPicker"===a.type&&a.allowedSizes!==s.a.Small)a.setProperties({allowedSizes:s.a.Small},!0);else if("ComboBox"!==a.type&&"CheckBox"!==a.type||a.allowedSizes===s.a.Medium){if(("Column"===o&&c.length>1||"Row"===o&&r.length>1)&&a.allowedSizes&s.a.Large){var u=a.allowedSizes&(s.a.Small|s.a.Medium);u=u||s.a.Medium,a.setProperties({allowedSizes:u},!0)}}else a.setProperties({allowedSizes:s.a.Medium},!0);var p=a.allowedSizes&s.a.Large?s.a.Large:a.allowedSizes&s.a.Medium?s.a.Medium:s.a.Small;a.setProperties({activeSize:p},!0)}},e.prototype.createCollection=function(t,e,o,i,s,c,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(a.R),f.classList.add("Column"!==e||"Simplified"===this.activeLayout?a.U:a.T),u.push(f);var h=this.createItems(d.items,e,o,i,s,c,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)}},e.prototype.createItems=function(t,e,r,o,i,c,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 v=this.createElement("div",{className:h.cssClass,id:h.id+a._20});(p=v.classList).add.apply(p,[a.S].concat(h.disabled?[a.q]:[])),h.ribbonTooltipSettings&&n.i(l.j)(h.ribbonTooltipSettings)&&(v.classList.add(a.c),this.tooltipData.push({id:v.id,data:h.ribbonTooltipSettings}));var m=h.activeSize;if("Simplified"===this.activeLayout&&(m=h.allowedSizes===s.a.Large||h.allowedSizes&s.a.Medium||h.displayOptions===s.b.Overflow?s.a.Medium:s.a.Small,h.setProperties({activeSize:m},!0)),m&s.a.Large?v.classList.add(a.V,a.Y):v.classList.add(m&s.a.Medium?a.W:a.X),this.createRibbonItem(h,v),"Simplified"!==this.activeLayout||h.displayOptions!==s.b.Overflow&&h.displayOptions!==(s.b.Classic|s.b.Overflow)?d.push(v):(this.createOverflowPopup(h,c,i,r,o,v,u),h.type!==s.e.DropDown&&h.type!==s.e.SplitButton||this.updatePopupItems(h,v,i,!0)),"Column"===e&&2===f)break}return d},e.prototype.createHelpPaneTemplate=function(){if(this.helpPaneTemplate){this.clearTemplate(["helpPaneTemplate"]),this.ribbonTempEle=this.createElement("div",{className:a._2,id:this.element.id+a._21});var t=n.i(l.b)(this.helpPaneTemplate);n.i(r.append)(t({},this,"helpPaneTemplate","helpPaneTemplate",this.isStringTemplate),this.ribbonTempEle);var e=this.tabObj.element;e.querySelector(".e-toolbar").after(this.ribbonTempEle),e.style.setProperty(a._22,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},e.prototype.createTemplateContent=function(t,e){var n=this.createElement("div",{className:t.cssClass?a._1+a.f+t.cssClass:a._1,id:t.id});t.disabled&&(n.classList.add(a.q),n.setAttribute("disabled","")),e.appendChild(n),this.renderItemTemplate(t,n)},e.prototype.renderItemTemplate=function(t,e){var o="ribbon"+t.id+"itemTemplate";this.clearTemplate([o]);var i=n.i(l.b)(t.itemTemplate);n.i(r.append)(i({activeSize:s.a[t.activeSize]},this,o,t.id+"itemTemplate",this.isStringTemplate),e),this.renderReactTemplates()},e.prototype.checkID=function(t,e,n){for(var r="tab"===e?a._10:"group"===e?a._11:"collection"===e?a._12:a._13,o=0;o<t.length;o++){var i=t[parseInt(o.toString(),10)];switch(i.id||i.setProperties({id:n+r+this.idIndex++},!0),e){case"tab":i.setProperties({groups:this.checkID(i.groups,"group",i.id)},!0);break;case"group":i.setProperties({collections:this.checkID(i.collections,"collection",i.id)},!0);break;case"collection":i.setProperties({items:this.checkID(i.items,"item",i.id)},!0)}}return t},e.prototype.updateCommonProperty=function(t){this.tabObj.setProperties(t),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.setCommonProperties(t);for(var e=0;e<this.tabs.length;e++)for(var o=this.tabs[parseInt(e.toString(),10)],i=this.tabObj.items[parseInt(e.toString(),10)].content,c=0,p=o.groups;c<p.length;c++){var d=p[c],f=void 0,h=void 0;this.activeLayout===s.c.Classic?f=d.isCollapsed?i.querySelector("#"+d.id+a.l+a.m):null:(f=d.enableGroupOverflow?i.querySelector("#"+d.id+a._16):null,(h=f?n.i(r.getComponent)(f,u.DropDownButton):this.overflowDDB)&&(n.i(l.n)(h.target,t),h.setProperties(t)));for(var b=0,v=d.collections;b<v.length;b++)for(var m=v[b],y=0,g=m.items;y<g.length;y++){var _=g[y],S=null;if(this.activeLayout===s.c.Classic?_.displayOptions&s.b.Classic&&(S=f?this.ribbonDropDownModule.getDDBItemElement(f,_.id):i.querySelector("#"+_.id)):(S=_.displayOptions&s.b.Simplified?i.querySelector("#"+_.id):null)||(S=h.target.querySelector("#"+_.id),"DropDown"===_.type&&this.updatePopupItems(_,h.target,d.enableGroupOverflow,!0)),S){var I=this.getItemModuleName(_);"template"!==I?n.i(l.g)(S,I,t):n.i(r.isNullOrUndefined)(t.enableRtl)||S.classList.toggle(a.r,t.enableRtl)}}}},e.prototype.removeLauncherIcon=function(t,e,o){var i=t+a._20,s=e?this.ribbonDropDownModule.getDDBItemElement(e,i):o.querySelector("#"+i);if(s){s.classList.remove(a.O);var c=s.querySelector("#"+t+a._18);n.i(r.remove)(c)}},e.prototype.destroyTabItems=function(t){for(var e=0;e<t.length;e++)for(var o=t[parseInt(e.toString(),10)],i=this.tabObj.items[parseInt(e.toString(),10)].content,c=0,l=o.groups;c<l.length;c++){var p=l[c],d=void 0,f=void 0;this.activeLayout===s.c.Classic?(d=p.isCollapsed?i.querySelector("#"+p.id+a.l+a.m):null,p.showLauncherIcon&&this.removeLauncherIcon(p.id,d,i)):(d=p.enableGroupOverflow?i.querySelector("#"+p.id+a._16):null,f=d?n.i(r.getComponent)(d,u.DropDownButton):this.overflowDDB);for(var h=0,b=p.collections;h<b.length;h++)for(var v=b[h],m=0,y=v.items;m<y.length;m++){var g=y[m],_=void 0;this.activeLayout===s.c.Classic?g.displayOptions&s.b.Classic&&(_=d?this.ribbonDropDownModule.getDDBItemElement(d,g.id):i.querySelector("#"+g.id)):(_=g.displayOptions&s.b.Simplified?i.querySelector("#"+g.id):null)||(_=f?f.target.querySelector("#"+g.id):null),_&&this.destroyFunction(g,_)}this.activeLayout===s.c.Classic&&d?this.ribbonDropDownModule.removeOverFlowDropDown(d):this.activeLayout===s.c.Simplified&&p.enableGroupOverflow&&d&&this.removeOverflowButton(f)}this.overflowDDB&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.destroyFunction=function(t,e){var r=this.getItemModuleName(t);if("colorpicker"===r?this.ribbonColorPickerModule.unwireColorPickerEvents(e):"template"!==r&&n.i(l.f)(e,r),t.ribbonTooltipSettings){var o=n.i(l.a)(this.tooltipData,function(e){return e.id===t.id+a._20});-1!==o&&this.tooltipData.splice(o,1)}},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";default:return"template"}},e.prototype.clearOverflowResize=function(){this.destroyScroll(),this.clearOverflowDropDown(this.selectedTab);for(var t=this.tabs[this.selectedTab],e=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a._19),n=e.closest("."+a.E),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.a)(this.tabs,function(e){return e.id===t});this.setProperties({selectedTab:e})},e.prototype.addTab=function(t,e,r){var o=e?n.i(l.a)(this.tabs,function(t){return t.id===e}):-1;o=-1===o?this.tabs.length:o+(r?1:0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(o,0,t),this.setProperties({tabs:this.tabsInternal},!0),this.checkID([this.tabs[parseInt(o.toString(),10)]],"tab",this.element.id),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var i=this.createTabItems([t]);this.tabObj.addTab(i,o)},e.prototype.removeTab=function(t){var e=n.i(l.a)(this.tabs,function(e){return e.id===t});if(-1!==e){var r=this.tabObj.items[parseInt(e.toString(),10)].content,o=this.tabs[parseInt(e.toString(),10)].groups;if(o&&""!==r.innerHTML)for(var i=0,s=o;i<s.length;i++){for(var c=s[i],u=c.isCollapsed?r.querySelector("#"+c.id+a.l+a.m):null,p=0,d=c.collections;p<d.length;p++)for(var f=d[p],h=0,b=f.items;h<b.length;h++){var v=b[h],m=u?this.ribbonDropDownModule.getDDBItemElement(u,v.id):r.querySelector("#"+v.id);m&&this.destroyFunction(v,m)}u&&this.ribbonDropDownModule.removeOverFlowDropDown(u)}e===this.selectedTab&&(this.isAddRemove=!0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(e,1),this.setProperties({tabs:this.tabsInternal},!0),this.tabObj.removeTab(e)}},e.prototype.addGroup=function(t,e,r,o){var i=n.i(l.a)(this.tabs,function(e){return e.id===t});if(-1!==i){this.selectedTab===i&&this.clearOverflowResize();var s=this.tabs[parseInt(i.toString(),10)],c=s.groups.slice(),a=r?n.i(l.a)(c,function(t){return t.id===r}):-1;a=-1===a?c.length:a+(o?1:0),c.splice(a,0,e),s.setProperties({groups:c},!0),this.checkID([s.groups[parseInt(a.toString(),10)]],"group",t),this.validateItemSize();var u=this.tabObj.items[parseInt(i.toString(),10)].content;if(""!==u.innerHTML){var p=this.createGroups([s.groups[parseInt(a.toString(),10)]],i)[0],d=r?u.querySelector("#"+r):null;d?d.insertAdjacentElement(o?"afterend":"beforebegin",p):u.append(p)}this.selectedTab===i&&this.refreshLayout()}},e.prototype.removeGroup=function(t){var e=n.i(l.e)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;e.group.showLauncherIcon&&this.removeLauncherIcon(e.group.id,null,o),this.activeLayout===s.c.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a._16):null,c=i?n.i(r.getComponent)(i,u.DropDownButton):this.overflowDDB);for(var p=0,d=e.group.collections;p<d.length;p++)for(var f=d[p],h=0,b=f.items;h<b.length;h++){var v=b[h];this.removeItemElement(o,v,c)}if(this.activeLayout===s.c.Simplified)if(e.group.enableGroupOverflow)0===c.target.childElementCount&&this.removeOverflowButton(c);else{var m=c.target.querySelector("#"+e.group.id+a._20);m&&1===m.childElementCount&&m.remove();var y=c.target.querySelector("#"+this.tabs[parseInt(e.tabIndex.toString(),10)].id+a.l);y&&0===y.childElementCount&&y.remove()}var g=o.querySelector("#"+t);g&&g.remove()}var _=this.tabs[e.tabIndex].groups.slice();_.splice(e.groupIndex,1),this.tabs[e.tabIndex].setProperties({groups:_},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.addCollection=function(t,e,r,o){var i=n.i(l.e)(this.tabs,t);if(i&&("Row"!==i.group.orientation||3!==i.group.collections.length)){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var s=i.group.collections.slice(),c=r?n.i(l.a)(s,function(t){return t.id===r}):-1;c=-1===c?s.length:c+(o?1:0),s.splice(c,0,e),i.group.setProperties({collections:s},!0),this.checkID([i.group.collections[parseInt(c.toString(),10)]],"collection",t),this.validateItemSize();var u=this.tabObj.items[i.tabIndex].content;if(""!==u.innerHTML){var p=i.group.collections[parseInt(c.toString(),10)],d=this.createCollection([p],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex)[0];i.group.isCollapsed&&(u=this.ribbonDropDownModule.getOverflowDropDownPopup(i,u));var f=r?u.querySelector("#"+r):null;f?f.insertAdjacentElement(o?"afterend":"beforebegin",d):u.querySelector("#"+t+a._19).append(d)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeCollection=function(t){var e=n.i(l.d)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;this.activeLayout===s.c.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a._16):null,c=i?n.i(r.getComponent)(i,u.DropDownButton):this.overflowDDB);for(var p=0,d=e.collection.items;p<d.length;p++){var f=d[p];this.removeItemElement(o,f,c)}var h=o.querySelector("#"+t);h&&h.remove()}var b=e.group,v=b.collections.slice();v.splice(e.collectionIndex,1),b.setProperties({collections:v},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.addItem=function(t,e,r,o){var i=n.i(l.d)(this.tabs,t);if(i&&("Column"!==i.group.orientation||3!==i.collection.items.length)){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var s=i.collection.items.slice(),c=r?n.i(l.a)(s,function(t){return t.id===r}):-1;c=-1===c?s.length:c+(o?1:0),s.splice(c,0,e),i.collection.setProperties({items:s},!0),this.checkID([i.collection.items[parseInt(c.toString(),10)]],"item",t),this.validateItemSize();var u=this.tabObj.items[i.tabIndex].content,p=u.querySelector("#"+i.group.id+a._20);if(""!==u.innerHTML){var d=i.collection.items[parseInt(c.toString(),10)],f=this.createItems([d],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex,p)[0];i.group.isCollapsed&&(u=this.ribbonDropDownModule.getOverflowDropDownPopup(i,u));var h=r?u.querySelector("#"+r):null;h?h.closest("."+a.S).insertAdjacentElement(o?"afterend":"beforebegin",f):f&&u.querySelector("#"+t).append(f)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeItem=function(t){var e=n.i(l.c)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;this.activeLayout===s.c.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a._16):null,c=i?n.i(r.getComponent)(i,u.DropDownButton):this.overflowDDB);var p=e.item;this.removeItemElement(o,p,c)}var d=e.collection,f=d.items;f.splice(e.itemIndex,1),d.setProperties({items:f},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.updateTab=function(t){var e=t.id,o=n.i(l.a)(this.tabs,function(t){return t.id===e});if(-1!==o){var i=this.tabObj.items[parseInt(o.toString(),10)].content,s=this.tabs[parseInt(o.toString(),10)].groups,c=this.tabObj.element;if(s&&""!==i.innerHTML&&(t.cssClass&&this.tabs[parseInt(o.toString(),10)].cssClass&&(i.classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass),c.querySelector(".e-active").classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass)),t.groups)){for(var u=0,p=s;u<p.length;u++){for(var d=p[u],f=d.isCollapsed?i.querySelector("#"+d.id+a.l+a.m):null,h=0,b=d.collections;h<b.length;h++)for(var v=b[h],m=0,y=v.items;m<y.length;m++){var g=y[m],_=f?this.ribbonDropDownModule.getDDBItemElement(f,g.id):i.querySelector("#"+g.id);_&&this.destroyFunction(g,_)}f&&this.ribbonDropDownModule.removeOverFlowDropDown(f)}i.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()})}o===this.selectedTab&&(this.isAddRemove=!0);var S=this.tabs[parseInt(o.toString(),10)];if(S.setProperties(t,!0),this.setProperties({groups:this.checkID(S.groups,"group",S.id)},!0),this.validateItemSize(),""===i.innerHTML){if(t.groups){var I=this.createGroups(S.groups,o);n.i(r.append)(I,i)}this.selectedTab===o&&this.refreshLayout(),t.cssClass&&(i.classList.add(S.cssClass),c.querySelector(".e-active").classList.add(S.cssClass)),t.header&&(c.querySelector("#"+e+a._17).innerText=S.header)}}},e.prototype.updateGroup=function(t){var e=t.id,o=n.i(l.e)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,c,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+e),f=d.querySelector("#"+t.id+a._20);if(""!==p.innerHTML){if(o.group.showLauncherIcon&&this.removeLauncherIcon(o.group.id,null,p),this.activeLayout===s.c.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+a._16):null,c=i?n.i(r.getComponent)(i,u.DropDownButton):this.overflowDDB),t.cssClass&&o.group.cssClass&&(d.classList.remove(o.group.cssClass),f&&f.classList.remove(o.group.cssClass)),(t.collections||t.orientation)&&(o.group.collections||o.group.orientation)){for(var h=0,b=o.group.collections;h<b.length;h++)for(var v=b[h],m=0,y=v.items;m<y.length;m++){var g=y[m];this.removeItemElement(p,g,c)}if(d.querySelectorAll(".e-ribbon-collection").forEach(function(t){t.remove()}),t.orientation){var _=f.querySelector(".e-ribbon-group-content"),S=_.classList.value.match(/(e-ribbon-[column|row]+)/g);S&&n.i(r.removeClass)([_],S)}}if(this.activeLayout===s.c.Simplified)if(o.group.enableGroupOverflow)0===c.target.childElementCount&&this.removeOverflowButton(c);else{var I=c.target.querySelector("#"+o.group.id+a._20);I&&1===I.childElementCount&&I.remove();var C=c.target.querySelector("#"+this.tabs[parseInt(o.tabIndex.toString(),10)].id+a.l);C&&0===C.childElementCount&&C.remove()}}var O=o.group;if(O.setProperties(t,!0),O.setProperties({collections:this.checkID(O.collections,"collection",O.id)},!0),this.validateItemSize(),""!==p.innerHTML){if(t.showLauncherIcon&&this.createLauncherIcon(O.id,f),t.collections||t.orientation){var _=f.querySelector(".e-ribbon-group-content");_.classList.add("Column"===O.orientation||"Simplified"===this.activeLayout?a.U:a.T);var w=this.createCollection(O.collections,O.orientation,O.id,O.header,O.enableGroupOverflow,o.tabIndex,f);n.i(r.append)(w,_)}if(this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&(d.classList.add(O.cssClass),f&&f.classList.add(O.cssClass)),t.header)if(this.activeLayout!==s.c.Simplified||t.enableGroupOverflow)if(this.activeLayout!==s.c.Classic||O.isCollapsed){if(this.activeLayout===s.c.Classic&&O.isCollapsed){var P=d.querySelector("#"+O.id+a.l+a.m),D=n.i(r.getInstance)(P,u.DropDownButton),B=D.target.querySelector("#"+t.id+a._17);B&&(B.innerText=O.header)}}else d.querySelector(".e-ribbon-group-header").innerText=O.header;else{var B=c.target.querySelector("#"+t.id+a._17);B&&(B.innerText=O.header)}}}},e.prototype.updateCollection=function(t){var e=t.id,o=n.i(l.d)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[o.tabIndex].content,c=i.querySelector("#"+e);if(""!==i.innerHTML){var p=void 0,d=void 0;if(this.activeLayout===s.c.Simplified&&(p=o.group.enableGroupOverflow?i.querySelector("#"+o.group.id+a._16):null,d=p?n.i(r.getComponent)(p,u.DropDownButton):this.overflowDDB),t.cssClass&&o.collection.cssClass&&c.classList.remove(o.collection.cssClass),t.items&&o.collection.items)for(var f=0,h=o.collection.items;f<h.length;f++){var b=h[f];this.removeItemElement(i,b,d)}}var v=o.collection;if(v.setProperties(t,!0),v.setProperties({items:this.checkID(v.items,"item",v.id)},!0),this.validateItemSize(),""!==i.innerHTML&&t.items){var m=i.querySelector("#"+o.group.id+a._20),y=this.createItems(v.items,o.group.orientation,o.group.id,o.group.header,o.group.enableGroupOverflow,o.tabIndex,m);n.i(r.append)(y,c)}this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&c.classList.add(v.cssClass)}},e.prototype.updateItem=function(t){var e=t.id,o=n.i(l.c)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,c,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+o.group.id),f=d.querySelector("#"+o.group.id+a._20),h=null,b=null;if(""!==p.innerHTML){if(this.activeLayout===s.c.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+a._16):null,c=i?n.i(r.getComponent)(i,u.DropDownButton):this.overflowDDB),this.activeLayout===s.c.Simplified&&o.item.displayOptions===s.b.Overflow){if(h=c.target.querySelector("#"+e+a._20),b=c.target.querySelector("#"+e),t.displayOptions&&t.displayOptions!==s.b.Overflow){var v=f.querySelector("#"+o.collection.id);v&&v.appendChild(h)}}else h=f.querySelector("#"+e+a._20),b=p.querySelector("#"+e),this.activeLayout===s.c.Simplified&&t.displayOptions===s.b.Overflow&&(this.createOverflowPopup(o.item,o.tabIndex,o.group.enableGroupOverflow,o.group.id,o.group.header,h,f),o.item.type!==s.e.DropDown&&o.item.type!==s.e.SplitButton||this.updatePopupItems(o.item,h,o.group.enableGroupOverflow,!0));t.cssClass&&o.item.cssClass&&h.classList.remove(o.item.cssClass),this.destroyFunction(o.item,b),b.remove();var m=h.classList.value.match(/(e-ribbon-[large|medium|small]+-item)/g);m&&n.i(r.removeClass)([h],m)}var y=o.item;if(y.setProperties(t,!0),this.validateItemSize(),""!==p.innerHTML){h=this.activeLayout!==s.c.Simplified||y.displayOptions!==s.b.Overflow?f.querySelector("#"+e+a._20):c.target.querySelector("#"+e+a._20),y.ribbonTooltipSettings&&n.i(l.j)(y.ribbonTooltipSettings)&&(h.classList.add(a.c),this.tooltipData.push({id:h.id,data:y.ribbonTooltipSettings}));var g=y.activeSize;"Simplified"===this.activeLayout&&(g=y.allowedSizes===s.a.Large||y.allowedSizes&s.a.Medium||y.displayOptions===s.b.Overflow?s.a.Medium:s.a.Small,y.setProperties({activeSize:g},!0)),g&s.a.Large?h.classList.add(a.V,a.Y):h.classList.add(g&s.a.Medium?a.W:a.X),this.createRibbonItem(y,h),"Simplified"===this.activeLayout&&o.group.enableGroupOverflow&&0===c.target.childElementCount&&this.removeOverflowButton(c),this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&h.classList.add(y.cssClass),this.enableDisableItem(y.id,y.disabled)}}},e.prototype.removeItemElement=function(t,e,n){var r=null;this.activeLayout===s.c.Classic?r=e.displayOptions&s.b.Classic?t.querySelector("#"+e.id):null:(r=e.displayOptions&s.b.Simplified?t.querySelector("#"+e.id):null)||(r=n.target.querySelector("#"+e.id)),r&&(this.destroyFunction(e,r),r.closest("#"+e.id+a._20).remove())},e.prototype.enableItem=function(t){this.enableDisableItem(t,!1)},e.prototype.disableItem=function(t){this.enableDisableItem(t,!0)},e.prototype.enableDisableItem=function(t,e){var o=n.i(l.c)(this.tabs,t);if(o){o.item.setProperties({disabled:e},!0);var i=n.i(l.i)(this,t,o);if(i){n.i(r.closest)(i,".e-ribbon-item").classList.toggle(a.q,o.item.disabled);var s=this.getItemModuleName(o.item);"template"!==s?n.i(l.h)(i,s,e):(i.classList.toggle(a.q,e),i.toggleAttribute("disabled",e))}}},e.prototype.unwireEvents=function(){r.EventHandler.remove(window,"resize",this.resizeHandler)},e.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,n.i(l.m)(this.element),this.destroyTabItems(this.tabs),this.removeExpandCollapse(),this.collapseButton=void 0,this.scrollModule&&this.scrollModule.destroy(),this.ribbonTempEle&&(n.i(r.remove)(this.ribbonTempEle),this.ribbonTempEle=null),t.prototype.destroy.call(this),this.tabObj.destroy(),this.tabObj=void 0,n.i(r.remove)(this.element.querySelector("#"+this.element.id+a._10)),this.element.style.removeProperty(a.b),this.element.style.removeProperty(a._22),this.element.style.removeProperty("width"),this.cssClass&&n.i(r.removeClass)([this.element],this.cssClass.split(a.f)),this.element.classList.remove(a.r,a._9,a.D,a.z,a.F,"e-rbn"),this.unwireEvents()},e.prototype.onPropertyChanged=function(t,e){for(var o,i,s=0,c=Object.keys(t);s<c.length;s++){switch(c[s]){case"activeLayout":this.switchLayout();break;case"cssClass":e.cssClass&&(o=this.element.classList).remove.apply(o,e.cssClass.split(a.f)),t.cssClass&&(i=this.element.classList).add.apply(i,t.cssClass.split(a.f));break;case"isMinimized":this.element.classList.toggle(a.F,this.isMinimized),this.tabObj.element.querySelector(".e-content").style.display=this.isMinimized?"none":"block",this.isMinimized||this.refreshLayout();break;case"locale":this.updateCommonProperty({locale:this.locale});break;case"enablePersistence":this.updateCommonProperty({enablePersistence:this.enablePersistence});break;case"enableRtl":this.element.classList.toggle(a.r,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 p=this.tabObj.items[parseInt(l.toString(),10)].content,d=this.tabs[parseInt(l.toString(),10)];if(p.querySelector("."+a.G))for(var f=0,h=d.groups;f<h.length;f++){var b=h[f];if(b.showLauncherIcon){var v=a.P+" "+(this.launcherIconCss||a.Q);if(b.isCollapsed){var m=p.querySelector("#"+b.id+a.l+a.m),y=n.i(r.getComponent)(m,u.DropDownButton),g=y.target.querySelector("#"+b.id+a._18);g.className=v}else{var m=p.querySelector("#"+b.id+a._18);m.className=v}}}}break;case"selectedTab":this.tabObj.setProperties({selectedItem:t.selectedTab});break;case"tabAnimation":this.tabObj.setProperties({animation:t.tabAnimation});break;case"tabs":this.reRenderTabs();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"helpPaneTemplate":this.ribbonTempEle&&(n.i(r.remove)(this.ribbonTempEle),this.ribbonTempEle=null,this.tabObj.element.style.setProperty(a._22,"0px")),this.helpPaneTemplate&&this.createHelpPaneTemplate();this.tabObj.tbObj.refreshOverflow()}}};var h;return f([n.i(r.Property)("Classic")],e.prototype,"activeLayout",void 0),f([n.i(r.Property)("")],e.prototype,"cssClass",void 0),f([n.i(r.Complex)({},i.k)],e.prototype,"fileMenu",void 0),f([n.i(r.Property)("")],e.prototype,"launcherIconCss",void 0),f([n.i(r.Property)(!1)],e.prototype,"isMinimized",void 0),f([n.i(r.Property)("en-us")],e.prototype,"locale",void 0),f([n.i(r.Property)(0)],e.prototype,"selectedTab",void 0),f([n.i(r.Complex)({},o.TabAnimationSettings)],e.prototype,"tabAnimation",void 0),f([n.i(r.Collection)([],i.a)],e.prototype,"tabs",void 0),f([n.i(r.Property)("100%")],e.prototype,"width",void 0),f([n.i(r.Property)("")],e.prototype,"helpPaneTemplate",void 0),f([n.i(r.Event)()],e.prototype,"tabSelecting",void 0),f([n.i(r.Event)()],e.prototype,"tabSelected",void 0),f([n.i(r.Event)()],e.prototype,"ribbonExpanding",void 0),f([n.i(r.Event)()],e.prototype,"ribbonCollapsing",void 0),f([n.i(r.Event)()],e.prototype,"launcherIconClick",void 0),e=h=f([r.NotifyPropertyChanges],e)}(r.Component)},function(t,e,n){"use strict";var r=n(2);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42});var o=n(12);n.d(e,"_43",function(){return o.a}),n.d(e,"_44",function(){return o.b}),n.d(e,"_45",function(){return o.c}),n.d(e,"_46",function(){return o.d}),n.d(e,"_47",function(){return o.e}),n.d(e,"_48",function(){return o.f}),n.d(e,"_49",function(){return o.g}),n.d(e,"_50",function(){return o.h}),n.d(e,"_51",function(){return o.i}),n.d(e,"_52",function(){return o.j}),n.d(e,"_53",function(){return o.k}),n.d(e,"_54",function(){return o.l});var i=n(11);n.d(e,"_55",function(){return i.a}),n.d(e,"_56",function(){return i.b}),n.d(e,"_57",function(){return i.c}),n.d(e,"_58",function(){return i.d}),n.d(e,"_59",function(){return i.e}),n.d(e,"_60",function(){return i.f});var s=n(36);n.d(e,"_61",function(){return s.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createButton=function(t,e){var n=this,r=this.parent.createElement("button",{id:t.id});e.appendChild(r);var c=t.buttonSettings;new o.Button({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===i.d.Large?"Top":"Left",iconCss:c.iconCss,disabled:t.disabled,cssClass:(s.e+s.f+s.g+s.f+(c.cssClass?c.cssClass:"")).trim(),content:t.activeSize===i.d.Small?"":c.content,isPrimary:c.isPrimary,isToggle:c.isToggle,created:c.created},r),r.onclick=function(t){c.clicked&&c.clicked.call(n,t)},r.setAttribute("aria-label",c.content)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(l,o.Button);a.setProperties({cssClass:a.cssClass+s.f+s.k}),l.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(c,e),i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,o.Button),a=l.cssClass.split(s.f);a=a.filter(function(t){return t!==s.k}),l.setProperties({cssClass:a.join(s.f)}),c.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(i,e)}},t.prototype.click=function(t){var e=n.i(i._37)(this.parent,t);if(e){n.i(r.getComponent)(e,o.Button).click()}},t.prototype.updateButton=function(t,e){var c=n.i(i._31)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.buttonSettings,t);var l=n.i(i._37)(this.parent,e,c);if(l){var a=n.i(r.getComponent)(l,o.Button);t.cssClass&&(t.cssClass=(s.e+s.f+s.g+s.f+t.cssClass).trim()),t.content&&(t.content=c.item.activeSize===i.d.Small?"":t.content,l.setAttribute("aria-label",t.content)),delete t.clicked,a.setProperties(t)}}},t.prototype.updateButtonSize=function(t,e){n.i(r.getComponent)(t,o.Button).setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left",content:e.activeSize===i.d.Small?"":e.buttonSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonCheckBox"},t.prototype.destroy=function(){this.parent=null},t.prototype.createCheckBox=function(t,e){var n=this,r=this.parent.createElement("input",{id:t.id});e.appendChild(r);var s=t.checkBoxSettings;new o.CheckBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,checked:s.checked,cssClass:(i.n+i.q+(s.cssClass?s.cssClass:"")).trim(),label:s.label,labelPosition:s.labelPosition,disabled:t.disabled,created:s.created,change:function(t){s.change&&s.change.call(n,t)}},r)},t.prototype.addOverFlowEvents=function(t,e,s){var c=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(l,o.CheckBox);a.cssClass=a.cssClass+i.q+i.o,a.dataBind(),a.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(c,e),s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,o.CheckBox),a=l.cssClass.split(i.q);a=a.filter(function(t){return t!==i.o}),l.cssClass=a.join(i.q),l.dataBind(),l.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(s,e)}},t.prototype.click=function(t){var e=n.i(i._37)(this.parent,t);if(e){n.i(r.getComponent)(e,o.CheckBox).click()}},t.prototype.updateCheckBox=function(t,e){var s=n.i(i._31)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.checkBoxSettings,t);var c=n.i(i._37)(this.parent,e,s);if(c){t.cssClass&&(t.cssClass=(i.n+i.q+t.cssClass).trim()),delete t.change;n.i(r.getComponent)(c,o.CheckBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(45)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonColorPicker"},t.prototype.destroy=function(){this.parent=null},t.prototype.createColorPicker=function(t,e){var n=this,i=this.parent.createElement("input",{id:t.id});e.appendChild(i);var c=t.colorPickerSettings,l=new o.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:c.columns,cssClass:(s.g+s.f+(c.cssClass?c.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:c.enableOpacity,mode:c.mode,modeSwitcher:c.modeSwitcher,noColor:c.noColor,presetColors:c.presetColors,showButtons:c.showButtons,value:c.value,beforeClose:function(){l.element.parentElement.classList.remove(s.i),c.beforeClose&&c.beforeClose.call(n)},beforeOpen:c.beforeOpen,beforeTileRender:c.beforeTileRender,created:c.created,change:c.change,open:function(){l.element.parentElement.classList.add(s.i),c.open&&c.open.call(n)},select:c.select},i),a=l.element.parentElement;r.EventHandler.add(a,"mouseenter",this.toggleWrapperHover.bind(this,a,!0),this),r.EventHandler.add(a,"mouseleave",this.toggleWrapperHover.bind(this,a,!1),this)},t.prototype.toggleWrapperHover=function(t,e){e?t.classList.add(s.j):t.classList.remove(s.j)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(l,o.ColorPicker);a.setProperties({cssClass:a.cssClass+s.f+s.k});var u,p=a.splitBtn;a.beforeClose=function(e){u=e.event?e.event.target:null,a.element.parentElement.classList.remove(s.i),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(c)},p.close=function(){u&&!u.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,o.ColorPicker),a=l.cssClass.split(s.f);a=a.filter(function(t){return t!==s.k}),l.setProperties({cssClass:a.join(s.f)}),l.splitBtn.close=null,l.beforeClose=function(e){l.element.parentElement.classList.remove(s.i),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(i)}},t.prototype.getColorPickerObj=function(t){var e=n.i(i._37)(this.parent,t);return e?n.i(r.getComponent)(e,o.ColorPicker):null},t.prototype.getValue=function(t,e,n){var r=this.getColorPickerObj(t);return r?r.getValue(e,n):""},t.prototype.toggle=function(t){var e=this.getColorPickerObj(t);e&&e.toggle()},t.prototype.updateColorPicker=function(t,e){var c=n.i(i._31)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.checkBoxSettings,t);var l=n.i(i._37)(this.parent,e,c);if(l){t.cssClass&&(t.cssClass=(s.g+s.f+t.cssClass).trim()),delete t.beforeClose,delete t.open;n.i(r.getComponent)(l,o.ColorPicker).setProperties(t)}}},t.prototype.unwireColorPickerEvents=function(t){var e=n.i(r.getComponent)(t,o.ColorPicker),i=e.element.parentElement;r.EventHandler.remove(i,"mouseenter",this.toggleWrapperHover),r.EventHandler.remove(i,"mouseleave",this.toggleWrapperHover)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),n(22)),i=(n.n(o),n(2)),s=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonComboBox"},t.prototype.destroy=function(){this.parent=null},t.prototype.createComboBox=function(t,e){var n=this,r=this.parent.createElement("input",{id:t.id});e.appendChild(r);var s=t.comboBoxSettings;new o.ComboBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,allowCustom:!1,floatLabelType:"Never",ignoreAccent:!0,ignoreCase:!0,allowFiltering:s.allowFiltering,autofill:s.autofill,cssClass:(i.n+i.q+(s.cssClass?s.cssClass:"")).trim(),dataSource:s.dataSource,enabled:!t.disabled,fields:s.fields,filterType:s.filterType,footerTemplate:s.footerTemplate,groupTemplate:s.groupTemplate,headerTemplate:s.headerTemplate,index:s.index,itemTemplate:s.itemTemplate,noRecordsTemplate:s.noRecordsTemplate,placeholder:s.placeholder,popupHeight:s.popupHeight,popupWidth:s.popupWidth,showClearButton:s.showClearButton,sortOrder:s.sortOrder,text:s.text,value:s.value,width:s.width,beforeOpen:s.beforeOpen,open:s.open,close:function(t){s.close&&s.close.call(n,t)},filtering:s.filtering,change:s.change,select:s.select,created:s.created},r)},t.prototype.addOverFlowEvents=function(t,e,s){var c=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(l,o.ComboBox);a.setProperties({cssClass:a.cssClass+i.q+i.o}),a.close=function(e){var n=e.event?e.event.target:null;t.comboBoxSettings.close&&t.comboBoxSettings.close.call(c,e),n&&!n.closest(".e-ribbon-group-overflow-ddb")&&s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,o.ComboBox),a=l.cssClass.split(i.q);a=a.filter(function(t){return t!==i.o}),l.setProperties({cssClass:a.join(i.q)}),l.close=function(e){t.comboBoxSettings.close&&t.comboBoxSettings.close.call(s,e)}},t.prototype.getComboBoxObj=function(t){var e=n.i(i._37)(this.parent,t);return e?n.i(r.getComponent)(e,o.ComboBox):null},t.prototype.filter=function(t,e,n,r){this.getComboBoxObj(t).filter(e,n,r)},t.prototype.hidePopup=function(t){var e=this.getComboBoxObj(t);e&&e.hidePopup()},t.prototype.showPopup=function(t){var e=this.getComboBoxObj(t);e&&e.showPopup()},t.prototype.updateComboBox=function(t,e){var s=n.i(i._31)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.comboBoxSettings,t);var c=n.i(i._37)(this.parent,e,s);if(c){t.cssClass&&(t.cssClass=(i.n+i.q+t.cssClass).trim()),delete t.close;n.i(r.getComponent)(c,o.ComboBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(23)),s=(n.n(i),n(2)),c=n(1),l=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonDropDown"},t.prototype.destroy=function(){this.parent=null},t.prototype.createDropDown=function(t,e){var n=this,r=this.parent.createElement("button",{id:t.id});e.appendChild(r);var i=t.dropDownSettings,l=(c.e+c.f+c.g+c.f+(i.cssClass?i.cssClass:"")).trim();new o.DropDownButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===s.d.Large?"Top":"Left",closeActionEvents:i.closeActionEvents,content:t.activeSize===s.d.Small?"":i.content,cssClass:l+(t.activeSize===s.d.Large?c.f+c.h:""),disabled:t.disabled,iconCss:i.iconCss,items:i.items,target:i.target,beforeClose:function(t){i.beforeClose&&i.beforeClose.call(n,t)},beforeItemRender:i.beforeItemRender,beforeOpen:i.beforeOpen,close:function(t){i.close&&i.close.call(n,t)},created:i.created,open:i.open,select:i.select},r)},t.prototype.addOverFlowEvents=function(t,e,i){var s=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(l,o.DropDownButton);a.cssClass=a.cssClass+c.f+c.k,a.dataBind();var u;a.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(s,e),u=e.event?e.event.target:null},a.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(s,e),u&&!u.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,s=e.querySelector("#"+t.id),l=n.i(r.getComponent)(s,o.DropDownButton),a=l.cssClass.split(c.f);a=a.filter(function(t){return t!==c.k}),l.cssClass=a.join(c.f),l.dataBind(),l.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(i,e)},l.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(i,e)}},t.prototype.createOverFlowDropDown=function(t,e,i,l,a,u){var p=this;this.enableRtl=u;var d=this.parent.createElement("button",{id:t+c.l+c.m});l.setAttribute("tabindex","0"),a.appendChild(d);var f=new o.DropDownButton({iconCss:i,target:l,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:c.h+c.f+c.n,iconPosition:"Top",content:e,beforeClose:function(t){t.cancel=!n.i(r.isNullOrUndefined)(t.event&&n.i(r.closest)(t.event.target,"."+c.k))}},d);return n.i(s._40)(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=e.querySelectorAll(".e-control"),o=e.querySelectorAll(".e-combobox");if(o)for(var i=0;i<o.length;i++)o[parseInt(i.toString(),10)].closest(".e-input-focus")&&(n=o[parseInt(i.toString(),10)]);if(n)for(var i=0;i<r.length;i++)r[parseInt(i.toString(),10)].classList.contains("e-combobox")&&r[parseInt(i.toString(),10)].closest(".e-input-focus")&&(this.itemIndex=i);(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-launcher-icon")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-first-item"))&&(("ArrowRight"===t.key||!t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,!this.enableRtl,r),("ArrowLeft"===t.key||t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,this.enableRtl,r))},t.prototype.handleNavigation=function(t,e,n){if(n[0].classList.contains("e-ribbon-first-item")||n[0].classList.add("e-ribbon-first-item"),n[n.length-1].classList.contains("e-ribbon-last-item")||n[n.length-1].classList.add("e-ribbon-last-item"),e){if(0===this.itemIndex&&n[parseInt(this.itemIndex.toString(),10)].classList.contains("e-ribbon-first-item")&&this.updateItemIndex(t,n,!0),t.target.classList.contains("e-combobox")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-group-container")||!t.target.classList.contains("e-ribbon-first-item")&&0===this.itemIndex||!t.target.classList.contains("e-control")||(this.itemIndex++,this.updateItemIndex(t,n,!0)),t.target.classList.contains("e-ribbon-last-item")){var r=!1;r=this.focusLauncherIcon(t,n),r||(this.itemIndex=0,this.updateItemIndex(t,n,!0))}t.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=0,this.updateItemIndex(t,n,!0))}else{if(t.target.classList.contains("e-combobox")||0===this.itemIndex||(this.itemIndex--,this.updateItemIndex(t,n,!1)),t.target.classList.contains("e-ribbon-first-item")){var r=!1;r=this.focusLauncherIcon(t,n),r||(this.itemIndex=n.length-1,this.updateItemIndex(t,n,!1))}t.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=n.length-1,this.updateItemIndex(t,n,!1))}t.target.classList.contains("e-combobox")&&"Tab"===t.key&&(e?this.itemIndex<n.length-1&&this.itemIndex++:this.itemIndex>0&&this.itemIndex--)},t.prototype.focusLauncherIcon=function(t,e){var n,r=e[parseInt(this.itemIndex.toString(),10)].closest(".e-ribbon-group-container");return r&&(n=r.querySelector(".e-ribbon-launcher-icon")),!!n&&("Tab"===t.key&&t.preventDefault(),r.querySelector(".e-ribbon-launcher-icon").focus(),!0)},t.prototype.updateItemIndex=function(t,e,n){for(var r=e[this.itemIndex].closest(".e-ribbon-item");r&&r.classList.contains("e-disabled");){if(n)if(this.itemIndex<e.length-1)this.itemIndex++;else{if(this.focusLauncherIcon(t,e))break;this.itemIndex=0}else if(this.itemIndex>0)this.itemIndex--;else{if(this.focusLauncherIcon(t,e))break;this.itemIndex=e.length-1}r=e[this.itemIndex].closest(".e-ribbon-item")}"Tab"===t.key&&t.preventDefault(),e[parseInt(this.itemIndex.toString(),10)].focus()},t.prototype.removeOverFlowDropDown=function(t){var e=n.i(r.getComponent)(t,o.DropDownButton);n.i(r.getComponent)(e.target,i.Tooltip).destroy(),t.parentElement.parentElement.insertBefore(e.target,t.parentElement),e.destroy(),n.i(r.remove)(t)},t.prototype.getDDBItemElement=function(t,e){return n.i(r.getComponent)(t,o.DropDownButton).dropDown.element.querySelector("#"+e)},t.prototype.getOverflowDropDownPopup=function(t,e){var i=e.querySelector("#"+this.parent.tabs[t.tabIndex].groups[t.groupIndex].id+c.l+c.m);return n.i(r.getComponent)(i,o.DropDownButton).dropDown.element},t.prototype.getDropDownObj=function(t){var e=n.i(s._37)(this.parent,t);return e?n.i(r.getComponent)(e,o.DropDownButton):null},t.prototype.addItems=function(t,e,n){this.getDropDownObj(t).addItems(e,n)},t.prototype.removeItems=function(t,e,n){this.getDropDownObj(t).removeItems(e,n)},t.prototype.toggle=function(t){this.getDropDownObj(t).toggle()},t.prototype.updateDropDown=function(t,e){var i=n.i(s._31)(this.parent.tabs,e);if(i){n.i(r.merge)(i.item.dropDownSettings,t);var l=n.i(s._37)(this.parent,e,i);if(l){var a=n.i(r.getComponent)(l,o.DropDownButton);t.cssClass&&(t.cssClass=(c.g+c.f+c.e+c.f+t.cssClass).trim(),t.cssClass=i.item.activeSize===s.d.Large?(c.h+c.f+t.cssClass).trim():t.cssClass,a.cssClass=t.cssClass),delete t.close,delete t.beforeClose,t.content&&(t.content=i.item.activeSize===s.d.Small?"":t.content),a.setProperties(t)}}},t.prototype.updateDropDownSize=function(t,e){var i=n.i(r.getComponent)(t,o.DropDownButton),l=i.cssClass.split(c.f);e.activeSize===s.d.Large?l.push(c.h):l=l.filter(function(t){return t!==c.h}),i.cssClass=l.join(c.f),i.setProperties({iconPosition:e.activeSize===s.d.Large?"Top":"Left"}),i.setProperties({content:e.activeSize===s.d.Small?"":e.dropDownSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonSplitButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createSplitButton=function(t,e){var n=this,c=this.parent.createElement("button",{id:t.id});e.appendChild(c);var l=t.splitButtonSettings,a=(s.e+s.f+s.g+s.f+(l.cssClass?l.cssClass:"")).trim(),u=new o.SplitButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===i.d.Large?"Top":"Left",closeActionEvents:l.closeActionEvents,cssClass:a+(t.activeSize===i.d.Large?s.f+s.h:""),disabled:t.disabled,iconCss:l.iconCss,items:l.items,target:l.target,beforeClose:function(t){l.beforeClose&&l.beforeClose.call(n,t)},beforeItemRender:l.beforeItemRender,beforeOpen:l.beforeOpen,close:function(){u.wrapper.classList.remove(s.i),l.close&&l.close.call(n)},created:l.created,open:function(){u.wrapper.classList.add(s.i),l.open&&l.open.call(n)},select:l.select,click:function(t){l.click&&l.click.call(n,t)}},c),p=c.parentElement.querySelector(".e-dropdown-btn");p.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),p.click())},this.setContent(t,u);var d=u.wrapper;r.EventHandler.add(d,"mouseenter",function(){d.classList.add(s.j)},this),r.EventHandler.add(d,"mouseleave",function(){d.classList.remove(s.j)},this)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,l=e.querySelector("#"+t.id);l.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(l,o.SplitButton);a.cssClass=a.cssClass+s.f+s.k,a.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(),a.wrapper.classList.remove("e-ribbon-open"),d.querySelector(".e-focused").click())};var f;a.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(c,e),f=e.event?e.event.target:null},a.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(c,e),i.toggle()},a.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(c,e),a.wrapper.classList.remove(s.i),f&&!f.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),l=n.i(r.getComponent)(c,o.SplitButton),a=l.cssClass.split(s.f);a=a.filter(function(t){return t!==s.k}),l.cssClass=a.join(s.f),l.dataBind(),l.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(i,e)},l.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(i,e)},l.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(i,e),l.wrapper.classList.remove(s.i)}},t.prototype.setContent=function(t,e){e.primaryBtnObj.setProperties({content:t.activeSize===i.d.Medium?t.splitButtonSettings.content:""}),e.secondaryBtnObj.setProperties({content:t.activeSize===i.d.Large?t.splitButtonSettings.content:""})},t.prototype.getSplitButtonObj=function(t){var e=n.i(i._37)(this.parent,t);return n.i(r.getComponent)(e,o.SplitButton)},t.prototype.addItems=function(t,e,n){this.getSplitButtonObj(t).addItems(e,n)},t.prototype.removeItems=function(t,e,n){this.getSplitButtonObj(t).removeItems(e,n)},t.prototype.toggle=function(t){this.getSplitButtonObj(t).toggle()},t.prototype.updateSplitButton=function(t,e){var c=n.i(i._31)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.splitButtonSettings,t);var l=n.i(i._37)(this.parent,e,c);if(l){var a=n.i(r.getComponent)(l,o.SplitButton);t.cssClass&&(t.cssClass=(s.g+s.f+s.e+s.f+t.cssClass).trim(),t.cssClass=c.item.activeSize===i.d.Large?(s.h+s.f+t.cssClass).trim():t.cssClass,a.cssClass=t.cssClass),delete t.open,delete t.click,delete t.close,delete t.beforeClose,a.setProperties(t),t.content&&this.setContent(c.item,a)}}},t.prototype.updateSplitButtonSize=function(t,e){var c=n.i(r.getComponent)(t,o.SplitButton),l=c.cssClass.split(s.f);e.activeSize===i.d.Large?l.push(s.h):l=l.filter(function(t){return t!==s.h}),c.cssClass=l.join(s.f),c.setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left"}),this.setContent(e,c)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),o=(n.n(r),n(8)),i=(n.n(o),n(6)),s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},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)},c([n.i(r.Property)("File")],e.prototype,"text",void 0),c([n.i(r.Property)(!1)],e.prototype,"visible",void 0),c([n.i(r.Collection)([],o.MenuItem)],e.prototype,"menuItems",void 0),c([n.i(r.Property)(!1)],e.prototype,"showItemOnClick",void 0),c([n.i(r.Complex)({},o.MenuAnimationSettings)],e.prototype,"animationSettings",void 0),c([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),c([n.i(r.Property)("")],e.prototype,"popupTemplate",void 0),c([n.i(r.Complex)({},i.a)],e.prototype,"ribbonTooltipSettings",void 0),c([n.i(r.Event)()],e.prototype,"beforeClose",void 0),c([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),c([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),c([n.i(r.Event)()],e.prototype,"close",void 0),c([n.i(r.Event)()],e.prototype,"open",void 0),c([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(19)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"groups",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";var r=n(37);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(8)),s=(n.n(i),n(2)),c=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+c.a});var n=this.parent.tabObj.element,r=n.querySelector(".e-toolbar");n.insertBefore(this.ddbElement,r),this.fileMenuDDB=new o.DropDownButton({content:t.text,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-file-menu e-caret-hide",created:function(){n.style.setProperty(c.b,e.ddbElement.offsetWidth+"px")},beforeClose:this.ddbBeforeEvent.bind(this,!1),beforeOpen:this.ddbBeforeEvent.bind(this,!0),close:this.ddbAfterEvent.bind(this,!1),open:this.ddbAfterEvent.bind(this,!0)},this.ddbElement),this.parent.fileMenu.popupTemplate?this.fileMenuDDB.setProperties({target:this.parent.fileMenu.popupTemplate}):this.createRibbonMenu(t),this.parent.tabObj.refreshActiveTabBorder(),this.addFileMenuTooltip(t)}},t.prototype.addFileMenuTooltip=function(t){n.i(s._38)(t.ribbonTooltipSettings)&&(this.ddbElement.classList.add(c.c),this.parent.tooltipData.push({id:this.ddbElement.id,data:t.ribbonTooltipSettings}))},t.prototype.ddbBeforeEvent=function(t,e){!t&&e.event&&e.event.target.closest(".e-ribbon-menu")&&(e.cancel=!0);var n=t?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(n){var r={cancel:e.cancel,element:e.element,event:e.event};n.call(this,r),e.cancel=r.cancel}},t.prototype.ddbAfterEvent=function(t,e){(t?this.fileMenuDDB.target:this.fileMenuDDB.element).focus();var n=t?this.parent.fileMenu.open:this.parent.fileMenu.close;if(n){var r={element:e.element};n.call(this,r)}},t.prototype.cloneMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];e.push({iconCss:r.iconCss,id:r.id,separator:r.separator,text:r.text,url:r.url,items:this.cloneMenuItem(r.items)})}return e},t.prototype.createRibbonMenu=function(t){var e=this,n=this.parent.createElement("ul",{id:this.parent.element.id+c.d});this.fileMenuDDB.setProperties({target:n}),this.menuctrl=new i.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-menu",animationSettings:t.animationSettings,items:this.cloneMenuItem(t.menuItems),showItemOnClick:t.showItemOnClick,template:t.itemTemplate,beforeClose:this.menuBeforeEvent.bind(this,!1),beforeOpen:this.menuBeforeEvent.bind(this,!0),beforeItemRender:this.beforeItemRender.bind(this),onClose:this.menuAfterEvent.bind(this,!1),onOpen:this.menuAfterEvent.bind(this,!0),select:this.menuSelect.bind(this)},n),r.EventHandler.add(n,"keydown",function(t){"Tab"===t.key&&e.fileMenuDDB.toggle()},this)},t.prototype.menuBeforeEvent=function(t,e){var n=t?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(n){var r={cancel:e.cancel,element:e.element,event:e.event,items:e.items,parentItem:e.parentItem};n.call(this,r),e.cancel=r.cancel}},t.prototype.menuAfterEvent=function(t,e){var n=t?this.parent.fileMenu.open:this.parent.fileMenu.close;if(n){var r={element:e.element,items:e.items,parentItem:e.parentItem};n.call(this,r)}},t.prototype.beforeItemRender=function(t){var e=this.parent.fileMenu.beforeItemRender;if(e){var n={element:t.element,item:t.item};e.call(this,n)}},t.prototype.menuSelect=function(t){var e=this.parent.fileMenu.select;if(e){var n={element:t.element,item:t.item,event:t.event};e.call(this,n),t.element.classList.contains("e-menu-caret-icon")||this.fileMenuDDB.toggle()}},t.prototype.setCommonProperties=function(t){this.fileMenuDDB&&(this.fileMenuDDB.setProperties(t),this.menuctrl&&this.menuctrl.setProperties(t))},t.prototype.updateFileMenu=function(t){t.visible?this.fileMenuDDB?(t.text&&(this.fileMenuDDB.setProperties({content:t.text}),this.parent.tabObj.element.style.setProperty(c.b,this.ddbElement.offsetWidth+"px")),t.popupTemplate?(this.menuctrl&&this.destroyMenu(),this.fileMenuDDB.setProperties({target:t.popupTemplate})):this.menuctrl?this.menuctrl.setProperties({animationSettings:t.animationSettings,items:this.cloneMenuItem(t.menuItems),showItemOnClick:t.showItemOnClick,template:t.itemTemplate}):this.createRibbonMenu(t),this.removeFileMenuTooltip(),this.addFileMenuTooltip(t)):this.createFileMenu(t):this.fileMenuDDB&&this.destroyDDB(),this.parent.tabObj.refreshActiveTabBorder()},t.prototype.destroyMenu=function(){this.menuctrl&&(this.menuctrl.destroy(),this.menuctrl=null)},t.prototype.destroyDDB=function(){this.removeFileMenuTooltip(),this.parent.tabObj.element.style.removeProperty(c.b),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._29)(this.parent.tooltipData,function(e){return e.id===t.ddbElement.id});-1!==e&&(this.ddbElement.classList.remove(c.c),this.parent.tooltipData.splice(e,1))},t.prototype.addItems=function(t,e,n,r){n?this.menuctrl.insertAfter(t,e,r):this.menuctrl.insertBefore(t,e,r),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.removeItems=function(t,e){this.menuctrl.removeItems(t,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.enableItems=function(t,e){this.menuctrl.enableItems(t,!0,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.disableItems=function(t,e){this.menuctrl.enableItems(t,!1,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.setItem=function(t,e,n){this.menuctrl.setItem(t,e,n),this.menuctrl.refresh(),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24);n.d(e,"RibbonTabDirective",function(){return r.a}),n.d(e,"RibbonTabsDirective",function(){return r.b}),n.d(e,"RibbonGroupDirective",function(){return r.c}),n.d(e,"RibbonGroupsDirective",function(){return r.d}),n.d(e,"RibbonCollectionDirective",function(){return r.e}),n.d(e,"RibbonCollectionsDirective",function(){return r.f}),n.d(e,"RibbonItemDirective",function(){return r.g}),n.d(e,"RibbonItemsDirective",function(){return r.h}),n.d(e,"RibbonComponent",function(){return r.i});var o=n(4);n.n(o);n.o(o,"Inject")&&n.d(e,"Inject",function(){return o.Inject});var i=n(9);n.d(e,"Ribbon",function(){return i.a}),n.d(e,"RibbonLayout",function(){return i.b}),n.d(e,"ItemOrientation",function(){return i.c}),n.d(e,"RibbonItemSize",function(){return i.d}),n.d(e,"DisplayMode",function(){return i.e}),n.d(e,"RibbonItemType",function(){return i.f}),n.d(e,"ITEM_VERTICAL_CENTER",function(){return i.g}),n.d(e,"EXPAND_COLLAPSE_ICON",function(){return i.h}),n.d(e,"OVERFLOW_ICON",function(){return i.i}),n.d(e,"VERTICAL_DDB",function(){return i.j}),n.d(e,"DISABLED_CSS",function(){return i.k}),n.d(e,"RTL_CSS",function(){return i.l}),n.d(e,"RIBBON_HOVER",function(){return i.m}),n.d(e,"RIBBON_CONTROL",function(){return i.n}),n.d(e,"RIBBON_POPUP_CONTROL",function(){return i.o}),n.d(e,"RIBBON_POPUP_OPEN",function(){return i.p}),n.d(e,"SPACE",function(){return i.q}),n.d(e,"HORIZONTAL_SCROLLBAR",function(){return i.r}),n.d(e,"HIDE_CSS",function(){return i.s}),n.d(e,"RIBBON_TAB",function(){return i.t}),n.d(e,"RIBBON_TAB_ACTIVE",function(){return i.u}),n.d(e,"RIBBON_TAB_ITEM",function(){return i.v}),n.d(e,"RIBBON_COLLAPSE_BUTTON",function(){return i.w}),n.d(e,"RIBBON_EXPAND_BUTTON",function(){return i.x}),n.d(e,"RIBBON_COLLAPSIBLE",function(){return i.y}),n.d(e,"RIBBON_OVERALL_OF_BUTTON",function(){return i.z}),n.d(e,"RIBBON_GROUP_OF_BUTTON",function(){return i.A}),n.d(e,"RIBBON_OVERFLOW_TARGET",function(){return i.B}),n.d(e,"RIBBON_OVERFLOW",function(){return i.C}),n.d(e,"TAB_CONTENT",function(){return i.D}),n.d(e,"RIBBON_MINIMIZE",function(){return i.E}),n.d(e,"RIBBON_GROUP",function(){return i.F}),n.d(e,"RIBBON_GROUP_CONTAINER",function(){return i.G}),n.d(e,"RIBBON_OF_TAB_CONTAINER",function(){return i.H}),n.d(e,"RIBBON_OF_GROUP_CONTAINER",function(){return i.I}),n.d(e,"RIBBON_GROUP_CONTENT",function(){return i.J}),n.d(e,"RIBBON_GROUP_HEADER",function(){return i.K}),n.d(e,"RIBBON_OVERFLOW_HEADER",function(){return i.L}),n.d(e,"RIBBON_GROUP_OVERFLOW",function(){return i.M}),n.d(e,"RIBBON_GROUP_OVERFLOW_DDB",function(){return i.N}),n.d(e,"RIBBON_LAUNCHER",function(){return i.O}),n.d(e,"RIBBON_LAUNCHER_ICON_ELE",function(){return i.P}),n.d(e,"RIBBON_LAUNCHER_ICON",function(){return i.Q}),n.d(e,"RIBBON_COLLECTION",function(){return i.R}),n.d(e,"RIBBON_ITEM",function(){return i.S}),n.d(e,"RIBBON_ROW",function(){return i.T}),n.d(e,"RIBBON_COLUMN",function(){return i.U}),n.d(e,"RIBBON_LARGE_ITEM",function(){return i.V}),n.d(e,"RIBBON_MEDIUM_ITEM",function(){return i.W}),n.d(e,"RIBBON_SMALL_ITEM",function(){return i.X}),n.d(e,"RIBBON_CONTENT_HEIGHT",function(){return i.Y}),n.d(e,"DROPDOWNBUTTON",function(){return i.Z}),n.d(e,"DROPDOWNBUTTON_HIDE",function(){return i._0}),n.d(e,"RIBBON_TEMPLATE",function(){return i._1}),n.d(e,"RIBBON_HELP_TEMPLATE",function(){return i._2}),n.d(e,"RIBBON_TOOLTIP",function(){return i._3}),n.d(e,"RIBBON_TOOLTIP_TARGET",function(){return i._4}),n.d(e,"RIBBON_TOOLTIP_TITLE",function(){return i._5}),n.d(e,"RIBBON_TOOLTIP_CONTENT",function(){return i._6}),n.d(e,"RIBBON_TOOLTIP_ICON",function(){return i._7}),n.d(e,"RIBBON_TOOLTIP_CONTAINER",function(){return i._8}),n.d(e,"RIBBON_TEXT_CONTAINER",function(){return i._9}),n.d(e,"RIBBON_SIMPLIFIED_MODE",function(){return i._10}),n.d(e,"TAB_ID",function(){return i._11}),n.d(e,"GROUP_ID",function(){return i._12}),n.d(e,"COLLECTION_ID",function(){return i._13}),n.d(e,"ITEM_ID",function(){return i._14}),n.d(e,"COLLAPSE_BUTTON_ID",function(){return i._15}),n.d(e,"OVRLOF_BUTTON_ID",function(){return i._16}),n.d(e,"GROUPOF_BUTTON_ID",function(){return i._17}),n.d(e,"HEADER_ID",function(){return i._18}),n.d(e,"LAUNCHER_ID",function(){return i._19}),n.d(e,"CONTENT_ID",function(){return i._20}),n.d(e,"CONTAINER_ID",function(){return i._21}),n.d(e,"OVERFLOW_ID",function(){return i._22}),n.d(e,"DROPDOWN_ID",function(){return i._23}),n.d(e,"RIBBON_FILE_MENU_ID",function(){return i._24}),n.d(e,"RIBBON_FILE_MENU_LIST",function(){return i._25}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_ID",function(){return i._26}),n.d(e,"RIBBON_FILE_MENU_WIDTH",function(){return i._27}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_WIDTH",function(){return i._28}),n.d(e,"getIndex",function(){return i._29}),n.d(e,"getTemplateFunction",function(){return i._30}),n.d(e,"getItem",function(){return i._31}),n.d(e,"getCollection",function(){return i._32}),n.d(e,"getGroup",function(){return i._33}),n.d(e,"destroyControl",function(){return i._34}),n.d(e,"updateCommonProperty",function(){return i._35}),n.d(e,"updateControlDisabled",function(){return i._36}),n.d(e,"getItemElement",function(){return i._37}),n.d(e,"isTooltipPresent",function(){return i._38}),n.d(e,"setToolTipContent",function(){return i._39}),n.d(e,"createTooltip",function(){return i._40}),n.d(e,"destroyTooltip",function(){return i._41}),n.d(e,"updateTooltipProp",function(){return i._42}),n.d(e,"RibbonTab",function(){return i._43}),n.d(e,"RibbonGroup",function(){return i._44}),n.d(e,"RibbonCollection",function(){return i._45}),n.d(e,"RibbonItem",function(){return i._46}),n.d(e,"RibbonButtonSettings",function(){return i._47}),n.d(e,"RibbonCheckBoxSettings",function(){return i._48}),n.d(e,"RibbonColorPickerSettings",function(){return i._49}),n.d(e,"RibbonComboBoxSettings",function(){return i._50}),n.d(e,"RibbonDropDownSettings",function(){return i._51}),n.d(e,"RibbonSplitButtonSettings",function(){return i._52}),n.d(e,"FileMenuSettings",function(){return i._53}),n.d(e,"RibbonTooltip",function(){return i._54}),n.d(e,"RibbonButton",function(){return i._55}),n.d(e,"RibbonCheckBox",function(){return i._56}),n.d(e,"RibbonColorPicker",function(){return i._57}),n.d(e,"RibbonComboBox",function(){return i._58}),n.d(e,"RibbonDropDown",function(){return i._59}),n.d(e,"RibbonSplitButton",function(){return i._60}),n.d(e,"RibbonFileMenu",function(){return i._61})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonCollection",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="collections",e.moduleName="ribbonCollections",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonGroup",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="groups",e.moduleName="ribbonGroups",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonItem",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="items",e.moduleName="ribbonItems",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(44),o=(n.n(r),n(9)),i=n(4),s=(n.n(i),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),c=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.directivekeys={ribbonTabs:{ribbonTab:{ribbonGroups:{ribbonGroup:{ribbonCollections:{ribbonCollection:{ribbonItems:"ribbonItem"}}}}}}},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(o.a);n.i(i.applyMixins)(c,[i.ComponentBase,r.Component])},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonTab",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="tabs",e.moduleName="ribbonTabs",e}(r.ComplexBase)},function(t,e){t.exports=c},function(t,e){t.exports=l}])});
|
|
10
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionPopups"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSplitbuttons","SyncfusionReactBase","SyncfusionButtons","SyncfusionNavigations","SyncfusionPopups","SyncfusionDropdowns","React","SyncfusionInputs"],e):"object"==typeof exports?exports.SyncfusionReactRibbon=e(require("SyncfusionBase"),require("SyncfusionSplitbuttons"),require("SyncfusionReactBase"),require("SyncfusionButtons"),require("SyncfusionNavigations"),require("SyncfusionPopups"),require("SyncfusionDropdowns"),require("React"),require("SyncfusionInputs")):t.SyncfusionReactRibbon=e(t.SyncfusionBase,t.SyncfusionSplitbuttons,t.SyncfusionReactBase,t.SyncfusionButtons,t.SyncfusionNavigations,t.SyncfusionPopups,t.SyncfusionDropdowns,t.React,t.SyncfusionInputs)}(this,function(t,e,n,r,o,i,s,c,u){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.d(e,"G",function(){return r}),n.d(e,"P",function(){return o}),n.d(e,"j",function(){return i}),n.d(e,"Q",function(){return s}),n.d(e,"I",function(){return c}),n.d(e,"R",function(){return u}),n.d(e,"S",function(){return a}),n.d(e,"K",function(){return l}),n.d(e,"H",function(){return p}),n.d(e,"L",function(){return d}),n.d(e,"J",function(){return f}),n.d(e,"F",function(){return h}),n.d(e,"T",function(){return b}),n.d(e,"U",function(){return m}),n.d(e,"V",function(){return v}),n.d(e,"W",function(){return y}),n.d(e,"X",function(){return g}),n.d(e,"Y",function(){return _}),n.d(e,"Z",function(){return S}),n.d(e,"_0",function(){return I}),n.d(e,"_1",function(){return C}),n.d(e,"_2",function(){return B}),n.d(e,"_3",function(){return O}),n.d(e,"_4",function(){return w}),n.d(e,"_5",function(){return P}),n.d(e,"_6",function(){return L}),n.d(e,"_7",function(){return D}),n.d(e,"C",function(){return k}),n.d(e,"D",function(){return T}),n.d(e,"B",function(){return E}),n.d(e,"E",function(){return x}),n.d(e,"_8",function(){return M}),n.d(e,"_9",function(){return R}),n.d(e,"_10",function(){return q}),n.d(e,"_11",function(){return A}),n.d(e,"_12",function(){return N}),n.d(e,"_13",function(){return j}),n.d(e,"_14",function(){return G}),n.d(e,"O",function(){return z}),n.d(e,"_15",function(){return F}),n.d(e,"_16",function(){return H}),n.d(e,"_17",function(){return W}),n.d(e,"_18",function(){return U}),n.d(e,"_19",function(){return K}),n.d(e,"_20",function(){return V}),n.d(e,"_21",function(){return J}),n.d(e,"_22",function(){return X}),n.d(e,"_23",function(){return Z}),n.d(e,"_24",function(){return Y}),n.d(e,"_25",function(){return Q}),n.d(e,"_26",function(){return $}),n.d(e,"_27",function(){return tt}),n.d(e,"_28",function(){return et}),n.d(e,"_29",function(){return nt}),n.d(e,"x",function(){return rt}),n.d(e,"e",function(){return ot}),n.d(e,"t",function(){return it}),n.d(e,"w",function(){return st}),n.d(e,"v",function(){return ct}),n.d(e,"s",function(){return ut}),n.d(e,"u",function(){return at}),n.d(e,"_30",function(){return lt}),n.d(e,"h",function(){return pt}),n.d(e,"d",function(){return dt}),n.d(e,"p",function(){return ft}),n.d(e,"_31",function(){return ht}),n.d(e,"b",function(){return bt}),n.d(e,"n",function(){return mt}),n.d(e,"q",function(){return vt}),n.d(e,"i",function(){return yt}),n.d(e,"k",function(){return gt}),n.d(e,"f",function(){return _t}),n.d(e,"_32",function(){return St}),n.d(e,"_33",function(){return It}),n.d(e,"_34",function(){return Ct}),n.d(e,"_35",function(){return Bt}),n.d(e,"_36",function(){return Ot}),n.d(e,"_37",function(){return wt}),n.d(e,"r",function(){return Pt}),n.d(e,"_38",function(){return Lt}),n.d(e,"_39",function(){return Dt}),n.d(e,"o",function(){return kt}),n.d(e,"_40",function(){return Tt}),n.d(e,"M",function(){return Et}),n.d(e,"N",function(){return xt}),n.d(e,"y",function(){return Mt}),n.d(e,"a",function(){return Rt}),n.d(e,"g",function(){return qt}),n.d(e,"z",function(){return At}),n.d(e,"m",function(){return Nt}),n.d(e,"l",function(){return jt}),n.d(e,"_41",function(){return Gt}),n.d(e,"A",function(){return zt}),n.d(e,"c",function(){return Ft}),n.d(e,"_42",function(){return Ht});var r="e-ribbon-vertical-center",o="e-icons e-drop-icon",i="e-icons e-arrow-left",s="e-icons e-more-horizontal-1",c="e-vertical",u="e-disabled",a="e-rtl",l="e-ribbon-hover",p="e-ribbon-control",d="e-ribbon-popup-control",f="e-ribbon-open",h=" ",b="e-hscroll-bar",m="e-ribbon-hide",v="e-ribbon-tab",y="e-ribbon-active",g="e-ribbon-tab-item",_="e-ribbon-collapse-btn",S="e-ribbon-expand-btn",I="e-ribbon-collapsible",C="e-ribbon-overall-of-btn",B="e-ribbon-group-of-btn",O="e-ribbon-overflow-target",w="e-ribbon-overflow",P="e-content",L="e-ribbon-minimize",D="e-ribbon-group",k="e-ribbon-single-selection",T="e-ribbon-multiple-selection",E="e-ribbon-group-button",x="e-ribbon-group-button-overflow-popup",M="e-ribbon-group-container",R="e-ribbon-of-tab",q="e-ribbon-of-group-container",A="e-ribbon-group-content",N="e-ribbon-group-header",j="e-ribbon-overflow-header",G="e-ribbon-group-overflow",z="e-ribbon-group-overflow-ddb",F="e-ribbon-launcher",H="e-ribbon-launcher-icon",W="e-icons e-launcher",U="e-ribbon-collection",K="e-ribbon-item",V="e-ribbon-row",J="e-ribbon-column",X="e-ribbon-large-item",Z="e-ribbon-medium-item",Y="e-ribbon-small-item",Q="e-ribbon-content-height",$="e-dropdown-btn",tt="e-caret-hide",et="e-ribbon-template",nt="e-ribbon-help-template",rt="e-ribbon-tooltip",ot="e-ribbon-tooltip-target",it="e-ribbon-tooltip-title",st="e-ribbon-tooltip-content",ct="e-ribbon-tooltip-icon",ut="e-ribbon-tooltip-container",at="e-ribbon-text-container",lt="e-ribbon-simplified-mode",pt="e-ribbon-backstage-popup",dt="e-ribbon-backstage-open",ft="e-ribbon-backstage-content",ht="e-ribbon-selected-content",bt="e-ribbon-backstage",mt="e-ribbon-backstage-menu",vt="e-ribbon-backstage-template",yt="e-ribbon-backstage-wrapper",gt="e-ribbon-backstage-items-wrapper",_t="e-blankicon",St="_tab",It="_group",Ct="_collection",Bt="_item",Ot="_collapsebutton",wt="_sim_ovrl_overflow",Pt="_sim_grp_overflow",Lt="_header",Dt="_launcher",kt="_content",Tt="_container",Et="_overflow",xt="_dropdown",Mt="_filemenu",Rt="_backstage",qt="_backstagepopup",At="_filemenulist",Nt="_menulist",jt="_footermenulist",Gt="_helppanetemplate",zt="_grpbtn",Ft="--fileMenuWidth",Ht="--helpTemplateWidth"},function(t,e,n){"use strict";var r=n(30);n.d(e,"a",function(){return r.a});var o=n(5);n.d(e,"b",function(){return o.a}),n.d(e,"c",function(){return o.e}),n.d(e,"d",function(){return o.c}),n.d(e,"e",function(){return o.b}),n.d(e,"f",function(){return o.f}),n.d(e,"g",function(){return o.d});var i=n(1);n.d(e,"h",function(){return i.G}),n.d(e,"i",function(){return i.P}),n.d(e,"j",function(){return i.j}),n.d(e,"k",function(){return i.Q}),n.d(e,"l",function(){return i.I}),n.d(e,"m",function(){return i.R}),n.d(e,"n",function(){return i.S}),n.d(e,"o",function(){return i.K}),n.d(e,"p",function(){return i.H}),n.d(e,"q",function(){return i.L}),n.d(e,"r",function(){return i.J}),n.d(e,"s",function(){return i.F}),n.d(e,"t",function(){return i.T}),n.d(e,"u",function(){return i.U}),n.d(e,"v",function(){return i.V}),n.d(e,"w",function(){return i.W}),n.d(e,"x",function(){return i.X}),n.d(e,"y",function(){return i.Y}),n.d(e,"z",function(){return i.Z}),n.d(e,"A",function(){return i._0}),n.d(e,"B",function(){return i._1}),n.d(e,"C",function(){return i._2}),n.d(e,"D",function(){return i._3}),n.d(e,"E",function(){return i._4}),n.d(e,"F",function(){return i._5}),n.d(e,"G",function(){return i._6}),n.d(e,"H",function(){return i._7}),n.d(e,"I",function(){return i.C}),n.d(e,"J",function(){return i.D}),n.d(e,"K",function(){return i.B}),n.d(e,"L",function(){return i.E}),n.d(e,"M",function(){return i._8}),n.d(e,"N",function(){return i._9}),n.d(e,"O",function(){return i._10}),n.d(e,"P",function(){return i._11}),n.d(e,"Q",function(){return i._12}),n.d(e,"R",function(){return i._13}),n.d(e,"S",function(){return i._14}),n.d(e,"T",function(){return i.O}),n.d(e,"U",function(){return i._15}),n.d(e,"V",function(){return i._16}),n.d(e,"W",function(){return i._17}),n.d(e,"X",function(){return i._18}),n.d(e,"Y",function(){return i._19}),n.d(e,"Z",function(){return i._20}),n.d(e,"_0",function(){return i._21}),n.d(e,"_1",function(){return i._22}),n.d(e,"_2",function(){return i._23}),n.d(e,"_3",function(){return i._24}),n.d(e,"_4",function(){return i._25}),n.d(e,"_5",function(){return i._26}),n.d(e,"_6",function(){return i._27}),n.d(e,"_7",function(){return i._28}),n.d(e,"_8",function(){return i._29}),n.d(e,"_9",function(){return i.x}),n.d(e,"_10",function(){return i.e}),n.d(e,"_11",function(){return i.t}),n.d(e,"_12",function(){return i.w}),n.d(e,"_13",function(){return i.v}),n.d(e,"_14",function(){return i.s}),n.d(e,"_15",function(){return i.u}),n.d(e,"_16",function(){return i._30}),n.d(e,"_17",function(){return i.h}),n.d(e,"_18",function(){return i.d}),n.d(e,"_19",function(){return i.p}),n.d(e,"_20",function(){return i._31}),n.d(e,"_21",function(){return i.b}),n.d(e,"_22",function(){return i.n}),n.d(e,"_23",function(){return i.q}),n.d(e,"_24",function(){return i.i}),n.d(e,"_25",function(){return i.k}),n.d(e,"_26",function(){return i.f}),n.d(e,"_27",function(){return i._32}),n.d(e,"_28",function(){return i._33}),n.d(e,"_29",function(){return i._34}),n.d(e,"_30",function(){return i._35}),n.d(e,"_31",function(){return i._36}),n.d(e,"_32",function(){return i._37}),n.d(e,"_33",function(){return i.r}),n.d(e,"_34",function(){return i._38}),n.d(e,"_35",function(){return i._39}),n.d(e,"_36",function(){return i.o}),n.d(e,"_37",function(){return i._40}),n.d(e,"_38",function(){return i.M}),n.d(e,"_39",function(){return i.N}),n.d(e,"_40",function(){return i.y}),n.d(e,"_41",function(){return i.a}),n.d(e,"_42",function(){return i.g}),n.d(e,"_43",function(){return i.z}),n.d(e,"_44",function(){return i.m}),n.d(e,"_45",function(){return i.l}),n.d(e,"_46",function(){return i._41}),n.d(e,"_47",function(){return i.A}),n.d(e,"_48",function(){return i.c}),n.d(e,"_49",function(){return i._42});var s=n(8);n.d(e,"_50",function(){return s.d}),n.d(e,"_51",function(){return s.b}),n.d(e,"_52",function(){return s.e}),n.d(e,"_53",function(){return s.f}),n.d(e,"_54",function(){return s.g}),n.d(e,"_55",function(){return s.h}),n.d(e,"_56",function(){return s.i}),n.d(e,"_57",function(){return s.j}),n.d(e,"_58",function(){return s.k}),n.d(e,"_59",function(){return s.a}),n.d(e,"_60",function(){return s.l}),n.d(e,"_61",function(){return s.c}),n.d(e,"_62",function(){return s.m}),n.d(e,"_63",function(){return s.n})},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return u});var r;!function(t){t.Classic="Classic",t.Simplified="Simplified"}(r||(r={}));var o;!function(t){t.Row="Row",t.Column="Column"}(o||(o={}));var i;!function(t){t[t.Large=4]="Large",t[t.Medium=2]="Medium",t[t.Small=1]="Small"}(i||(i={}));var s;!function(t){t[t.Classic=4]="Classic",t[t.Simplified=2]="Simplified",t[t.Overflow=1]="Overflow",t[t.Auto=7]="Auto"}(s||(s={}));var c;!function(t){t.Button="Button",t.CheckBox="CheckBox",t.ColorPicker="ColorPicker",t.ComboBox="ComboBox",t.DropDown="DropDown",t.SplitButton="SplitButton",t.GroupButton="GroupButton",t.Template="Template"}(c||(c={}));var u;!function(t){t.Single="Single",t.Multiple="Multiple"}(u||(u={}))},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"id",void 0),i([n.i(r.Property)("")],e.prototype,"title",void 0),i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),e}(r.ChildProperty)},function(t,e){t.exports=r},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<t.length;n++)if(e(t[parseInt(n.toString(),10)],n))return n;return-1}function o(t){if("string"==typeof t){var e="";try{var r=n.i(v.select)(t);e=r?"SCRIPT"===r.tagName?r.innerHTML:r.outerHTML:t}catch(n){e=t}return n.i(v.compile)(e)}return n.i(v.compile)(t)}function i(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++)for(var i=r.groups[parseInt(o.toString(),10)],s=0;s<i.collections.length;s++)for(var c=i.collections[parseInt(s.toString(),10)],u=0;u<c.items.length;u++){var a=c.items[parseInt(u.toString(),10)];if(a.id===e)return{item:a,collection:c,group:i,tabIndex:n,groupIndex:o,collectionIndex:s,itemIndex:u}}return null}function s(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++)for(var i=r.groups[parseInt(o.toString(),10)],s=0;s<i.collections.length;s++){var c=i.collections[parseInt(s.toString(),10)];if(c.id===e)return{collection:c,group:i,tabIndex:n,groupIndex:o,collectionIndex:s}}return null}function c(t,e){for(var n=0;n<t.length;n++)for(var r=t[parseInt(n.toString(),10)],o=0;o<r.groups.length;o++){var i=r.groups[parseInt(o.toString(),10)];if(i.id===e)return{group:i,tabIndex:n,groupIndex:o}}return null}function u(t,e){n.i(v.getComponent)(t,e).destroy()}function a(t,e,r){n.i(v.getComponent)(t,e).setProperties(r)}function l(t,e,r){n.i(v.getComponent)(t,e).setProperties("combobox"===e?{enabled:!r}:{disabled:r})}function p(t,e,r){if(!r&&!(r=i(t.tabs,e)))return null;var o=t.tabObj.items[r.tabIndex].content;if(""===o.innerHTML)return null;if(t.activeLayout===g.a.Classic)return r.item.displayOptions&g.b.Classic?(o=r.group.isCollapsed?t.ribbonDropDownModule.getOverflowDropDownPopup(r,o):o,o.querySelector("#"+e)):null;var s=r.item.displayOptions&g.b.Simplified?o.querySelector("#"+r.item.id):null;if(!s){s=(r.group.enableGroupOverflow?n.i(v.getComponent)(o.querySelector("#"+r.group.id+_.r),S.DropDownButton):t.overflowDDB).target.querySelector("#"+r.item.id)}return s}function d(t){return!!(t.content||t.iconCss||t.title||t.id||t.cssClass)}function f(t,e,n){var r=t.target.getAttribute("id"),o=n.filter(function(t){return t.id===r})[0],i=o.data,s=e.createElement("div",{id:i.id?_.s+"_"+i.id:_.s});if(e.element.append(s),i.title){var c=e.createElement("div",{innerHTML:i.title,className:_.t});s.appendChild(c)}var u=e.createElement("div",{className:_.u});if(s.appendChild(u),i.iconCss){var a=e.createElement("div",{className:i.iconCss+" "+_.v});u.appendChild(a)}if(i.content){var l=e.createElement("div",{innerHTML:i.content,className:_.w});u.appendChild(l)}e.setProperties({content:s,cssClass:i.cssClass?i.cssClass+" "+_.x:_.x})}function h(t,e){function n(t){f(t,r,e.tooltipData)}var r=new y.Tooltip({target:"."+_.e,beforeRender:n.bind(this),windowCollision:!0});r.appendTo(t)}function b(t){n.i(v.getComponent)(t,y.Tooltip).destroy()}function m(t,e){n.i(v.getComponent)(t,y.Tooltip).setProperties(e)}e.d=r,e.b=o,e.e=i,e.f=s,e.g=c,e.h=u,e.i=a,e.j=l,e.k=p,e.a=d,e.l=f,e.c=h,e.m=b,e.n=m;var v=n(0),y=(n.n(v),n(10)),g=(n.n(y),n(5)),_=n(1),S=n(3);n.n(S)},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){"use strict";var r=n(29);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63}),n.d(e,"_64",function(){return r._64}),n.d(e,"_65",function(){return r._65}),n.d(e,"_66",function(){return r._66}),n.d(e,"_67",function(){return r._67}),n.d(e,"_68",function(){return r._68}),n.d(e,"_69",function(){return r._69}),n.d(e,"_70",function(){return r._70}),n.d(e,"_71",function(){return r._71}),n.d(e,"_72",function(){return r._72}),n.d(e,"_73",function(){return r._73}),n.d(e,"_74",function(){return r._74}),n.d(e,"_75",function(){return r._75}),n.d(e,"_76",function(){return r._76}),n.d(e,"_77",function(){return r._77}),n.d(e,"_78",function(){return r._78}),n.d(e,"_79",function(){return r._79}),n.d(e,"_80",function(){return r._80}),n.d(e,"_81",function(){return r._81}),n.d(e,"_82",function(){return r._82}),n.d(e,"_83",function(){return r._83}),n.d(e,"_84",function(){return r._84}),n.d(e,"_85",function(){return r._85}),n.d(e,"_86",function(){return r._86}),n.d(e,"_87",function(){return r._87}),n.d(e,"_88",function(){return r._88}),n.d(e,"_89",function(){return r._89})},function(t,e,n){"use strict";var r=n(32);n.d(e,"a",function(){return r.a});var o=n(33);n.d(e,"b",function(){return o.a});var i=n(34);n.d(e,"c",function(){return i.a});var s=n(35);n.d(e,"d",function(){return s.a});var c=n(36);n.d(e,"e",function(){return c.a});var u=n(38);n.d(e,"f",function(){return u.a});var a=n(37);n.d(e,"g",function(){return a.a})},function(t,e,n){"use strict";var r=n(41);n.d(e,"a",function(){return r.a});var o=n(24);n.d(e,"b",function(){return o.a});var i=n(18);n.d(e,"c",function(){return i.a});var s=n(25);n.d(e,"d",function(){return s.a});var c=n(16);n.d(e,"e",function(){return c.a});var u=n(17);n.d(e,"f",function(){return u.a});var a=n(19);n.d(e,"g",function(){return a.a});var l=n(20);n.d(e,"h",function(){return l.a});var p=n(21);n.d(e,"i",function(){return p.a});var d=n(26);n.d(e,"j",function(){return d.a});var f=n(40);n.d(e,"k",function(){return f.a});var h=n(39);n.d(e,"l",function(){return h.a});var b=n(14);n.d(e,"m",function(){return b.a});var m=n(15);n.d(e,"n",function(){return m.a});var v=n(6);n.d(e,"o",function(){return v.a});var y=n(23);n.d(e,"p",function(){return y.a});var g=n(22);n.d(e,"q",function(){return g.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"text",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!0)],e.prototype,"visible",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),i([n.i(r.Property)("")],e.prototype,"text",void 0),i([n.i(r.Property)("")],e.prototype,"id",void 0),i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!1)],e.prototype,"separator",void 0),i([n.i(r.Property)(!1)],e.prototype,"isFooter",void 0),i([n.i(r.Event)()],e.prototype,"backStageItemClick",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)("")],e.prototype,"content",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"iconCss",void 0),i([n.i(r.Property)(!1)],e.prototype,"isToggle",void 0),i([n.i(r.Property)(!1)],e.prototype,"isPrimary",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"clicked",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)(!1)],e.prototype,"checked",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)("")],e.prototype,"label",void 0),i([n.i(r.Property)("After")],e.prototype,"labelPosition",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"change",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(25)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},i([n.i(r.Property)(10)],e.prototype,"columns",void 0),i([n.i(r.Property)("")],e.prototype,"cssClass",void 0),i([n.i(r.Property)(!0)],e.prototype,"enableOpacity",void 0),i([n.i(r.Property)("Picker")],e.prototype,"mode",void 0),i([n.i(r.Property)(!0)],e.prototype,"modeSwitcher",void 0),i([n.i(r.Property)(!1)],e.prototype,"noColor",void 0),i([n.i(r.Property)(null)],e.prototype,"presetColors",void 0),i([n.i(r.Property)(!0)],e.prototype,"showButtons",void 0),i([n.i(r.Property)("#008000ff")],e.prototype,"value",void 0),i([n.i(r.Event)()],e.prototype,"beforeClose",void 0),i([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),i([n.i(r.Event)()],e.prototype,"beforeTileRender",void 0),i([n.i(r.Event)()],e.prototype,"created",void 0),i([n.i(r.Event)()],e.prototype,"change",void 0),i([n.i(r.Event)()],e.prototype,"open",void 0),i([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(27)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)(!1)],e.prototype,"allowFiltering",void 0),s([n.i(r.Property)(!0)],e.prototype,"autofill",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)([])],e.prototype,"dataSource",void 0),s([n.i(r.Complex)({text:null,value:null,iconCss:null,groupBy:null},o.FieldSettings)],e.prototype,"fields",void 0),s([n.i(r.Property)("Contains")],e.prototype,"filterType",void 0),s([n.i(r.Property)(null)],e.prototype,"footerTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"groupTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"headerTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"index",void 0),s([n.i(r.Property)(null)],e.prototype,"itemTemplate",void 0),s([n.i(r.Property)("No records found")],e.prototype,"noRecordsTemplate",void 0),s([n.i(r.Property)(null)],e.prototype,"placeholder",void 0),s([n.i(r.Property)("300px")],e.prototype,"popupHeight",void 0),s([n.i(r.Property)("100%")],e.prototype,"popupWidth",void 0),s([n.i(r.Property)(!0)],e.prototype,"showClearButton",void 0),s([n.i(r.Property)("None")],e.prototype,"sortOrder",void 0),s([n.i(r.Property)(null)],e.prototype,"text",void 0),s([n.i(r.Property)(null)],e.prototype,"value",void 0),s([n.i(r.Property)("150px")],e.prototype,"width",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"change",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"filtering",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"closeActionEvents",void 0),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Collection)([],o.Item)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"target",void 0),s([n.i(r.Property)(!1)],e.prototype,"createPopupOnClick",void 0),s([n.i(r.Event)()],e.prototype,"beforeClose",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(6)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Complex)({},o.a)],e.prototype,"ribbonTooltipSettings",void 0),s([n.i(r.Property)(!1)],e.prototype,"selected",void 0),s([n.i(r.Event)()],e.prototype,"beforeClick",void 0),s([n.i(r.Event)()],e.prototype,"click",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(22)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),s([n.i(r.Property)("Single")],e.prototype,"selection",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"items",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(18)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Collection)([],o.a)],e.prototype,"collections",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)(!1)],e.prototype,"isCollapsed",void 0),s([n.i(r.Property)(!0)],e.prototype,"isCollapsible",void 0),s([n.i(r.Property)(!1)],e.prototype,"enableGroupOverflow",void 0),s([n.i(r.Property)("")],e.prototype,"groupIconCss",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),s([n.i(r.Property)("Column")],e.prototype,"orientation",void 0),s([n.i(r.Property)(0)],e.prototype,"priority",void 0),s([n.i(r.Property)(!1)],e.prototype,"showLauncherIcon",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return b});var r=n(0),o=(n.n(r),n(5)),i=n(16),s=n(17),c=n(19),u=n(20),a=n(21),l=n(26),p=n(6),d=n(23),f=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},h([n.i(r.Property)(o.c.Medium)],e.prototype,"activeSize",void 0),h([n.i(r.Property)(o.c.Small|o.c.Medium|o.c.Large)],e.prototype,"allowedSizes",void 0),h([n.i(r.Property)("")],e.prototype,"id",void 0),h([n.i(r.Property)("")],e.prototype,"cssClass",void 0),h([n.i(r.Property)(!1)],e.prototype,"disabled",void 0),h([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),h([n.i(r.Property)("Button")],e.prototype,"type",void 0),h([n.i(r.Property)(o.b.Auto)],e.prototype,"displayOptions",void 0),h([n.i(r.Complex)({},p.a)],e.prototype,"ribbonTooltipSettings",void 0),h([n.i(r.Complex)({},i.a)],e.prototype,"buttonSettings",void 0),h([n.i(r.Complex)({},a.a)],e.prototype,"dropDownSettings",void 0),h([n.i(r.Complex)({},s.a)],e.prototype,"checkBoxSettings",void 0),h([n.i(r.Complex)({},c.a)],e.prototype,"colorPickerSettings",void 0),h([n.i(r.Complex)({},u.a)],e.prototype,"comboBoxSettings",void 0),h([n.i(r.Complex)({},l.a)],e.prototype,"splitButtonSettings",void 0),h([n.i(r.Complex)({},d.a)],e.prototype,"groupButtonSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"closeActionEvents",void 0),s([n.i(r.Property)("")],e.prototype,"content",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Property)("")],e.prototype,"iconCss",void 0),s([n.i(r.Collection)([],o.Item)],e.prototype,"items",void 0),s([n.i(r.Property)("")],e.prototype,"target",void 0),s([n.i(r.Event)()],e.prototype,"beforeClose",void 0),s([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),s([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),s([n.i(r.Event)()],e.prototype,"close",void 0),s([n.i(r.Event)()],e.prototype,"click",void 0),s([n.i(r.Event)()],e.prototype,"created",void 0),s([n.i(r.Event)()],e.prototype,"open",void 0),s([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e){t.exports=s},function(t,e,n){"use strict";var r=n(50);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var o=n(47);n.d(e,"c",function(){return o.a}),n.d(e,"d",function(){return o.b});var i=n(46);n.d(e,"e",function(){return i.a}),n.d(e,"f",function(){return i.b});var s=n(48);n.d(e,"g",function(){return s.a}),n.d(e,"h",function(){return s.b});var c=n(49);n.d(e,"i",function(){return c.a})},function(t,e,n){"use strict";var r=n(31);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63}),n.d(e,"_64",function(){return r._64}),n.d(e,"_65",function(){return r._65}),n.d(e,"_66",function(){return r._66}),n.d(e,"_67",function(){return r._67}),n.d(e,"_68",function(){return r._68}),n.d(e,"_69",function(){return r._69}),n.d(e,"_70",function(){return r._70}),n.d(e,"_71",function(){return r._71}),n.d(e,"_72",function(){return r._72}),n.d(e,"_73",function(){return r._73}),n.d(e,"_74",function(){return r._74}),n.d(e,"_75",function(){return r._75}),n.d(e,"_76",function(){return r._76}),n.d(e,"_77",function(){return r._77}),n.d(e,"_78",function(){return r._78}),n.d(e,"_79",function(){return r._79}),n.d(e,"_80",function(){return r._80}),n.d(e,"_81",function(){return r._81}),n.d(e,"_82",function(){return r._82}),n.d(e,"_83",function(){return r._83}),n.d(e,"_84",function(){return r._84}),n.d(e,"_85",function(){return r._85}),n.d(e,"_86",function(){return r._86}),n.d(e,"_87",function(){return r._87}),n.d(e,"_88",function(){return r._88}),n.d(e,"_89",function(){return r._89})},function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(13)),s=n(5),c=n(12),u=n(8),a=n(1),l=n(3),p=(n.n(l),n(7)),d=(n.n(p),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),f=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},h=function(t){function e(e,n){return h.Inject(c.a,c.b,c.e,c.f,c.d,c.g),t.call(this,e,n)||this}d(e,t),h=e,e.prototype.render=function(){this.initialize()},e.prototype.preRender=function(){this.idIndex=0,this.tooltipData=[],this.isAddRemove=!1,this.keyConfigs={leftarrow:"leftarrow",rightarrow:"rightarrow",tab:"tab",shiftTab:"shift+tab"}},e.prototype.getPersistData=function(){return this.addOnPersist(["activeLayout"])},e.prototype.getModuleName=function(){return"ribbon"},e.prototype.requiredModules=function(){var t=[];return t.push({member:"ribbonButton",args:[this]},{member:"ribbonDropDown",args:[this]},{member:"ribbonSplitButton",args:[this]},{member:"ribbonCheckBox",args:[this]},{member:"ribbonColorPicker",args:[this]},{member:"ribbonComboBox",args:[this]},{member:"ribbonGroupButton",args:[this]},{member:"ribbonFileMenu",args:[this]},{member:"ribbonBackstage",args:[this]}),t},e.prototype.initialize=function(){this.element.id=this.element.id||n.i(r.getUniqueID)("e-"+this.getModuleName()),n.i(r.addClass)([this.element],["e-rbn"].concat(this.cssClass?this.cssClass.split(a.F):[])),this.enableRtl&&this.element.classList.add(a.S),this.element.style.width=n.i(r.formatUnit)(this.width),this.renderTabs(),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.createFileMenu(this.fileMenu),this.ribbonBackstageModule&&this.ribbonBackstageModule.createBackStage(this.backStageMenu),this.createHelpPaneTemplate(),this.tabObj.tbObj.refreshOverflow(),n.i(u.c)(this.element,this),this.wireEvents(),this.wireKeyboardEvent(),this.currentControlIndex=0},e.prototype.wireEvents=function(){r.EventHandler.add(window,"resize",this.resizeHandler,this)},e.prototype.wireKeyboardEvent=function(){this.keyboardModuleRibbon=new r.KeyboardEvents(this.element,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},e.prototype.keyActionHandler=function(t){"Tab"!==t.key||t.target.classList.contains("e-tab-wrap")||t.target.classList.contains("e-combobox")||t.preventDefault();var e,n=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o),r=n.querySelectorAll(".e-control"),o=n.querySelectorAll(".e-combobox");if(o)for(var i=0;i<o.length;i++)o[parseInt(i.toString(),10)].closest(".e-input-focus")&&(e=o[parseInt(i.toString(),10)]);if(e)for(var i=0;i<r.length;i++)r[parseInt(i.toString(),10)].classList.contains("e-combobox")&&r[parseInt(i.toString(),10)].closest(".e-input-focus")&&(this.currentControlIndex=i);if(0===this.currentControlIndex)for(var s=r[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");)this.currentControlIndex++,s=r[this.currentControlIndex].closest(".e-ribbon-item");if(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-launcher-icon")||t.target.classList.contains("e-ribbon-collapse-btn")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-first-item")||t.target.classList.contains("e-ribbon-group-of-btn")||t.target.classList.contains("e-ribbon-overall-of-btn"))switch(t.action){case"rightarrow":this.handleNavigation(t,!this.enableRtl,r);break;case"leftarrow":this.handleNavigation(t,this.enableRtl,r);break;case"tab":t.target.classList.contains("e-combobox")&&this.currentControlIndex<r.length-1&&this.currentControlIndex++;break;case"shiftTab":t.target.classList.contains("e-combobox")?this.currentControlIndex>0&&this.currentControlIndex--:(this.tabObj.element.querySelector(".e-toolbar-item.e-active").querySelector(".e-tab-wrap").focus(),this.currentControlIndex=0)}},e.prototype.handleNavigation=function(t,e,n){var r,o;if(e?this.currentControlIndex<n.length-1&&n[this.currentControlIndex+1].classList.contains("e-colorpicker")&&this.currentControlIndex++:this.currentControlIndex>0&&n[this.currentControlIndex-1].classList.contains("e-colorpicker")&&this.currentControlIndex--,!e&&this.currentControlIndex>0||e&&this.currentControlIndex<n.length-1){if(!t.target.classList.contains("e-combobox")&&t.target.classList.contains("e-control")&&!t.target.classList.contains("e-ribbon-last-item")){if(e)this.currentControlIndex++;else{var i=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a._8);i&&(o=i.getAttribute("id")),this.currentControlIndex--}for(var s=n[this.currentControlIndex].closest(".e-ribbon-item");s&&s.classList.contains("e-disabled");){if((e&&this.currentControlIndex===n.length-1||!e&&0===this.currentControlIndex)&&n[this.currentControlIndex].closest(".e-ribbon-item").classList.contains("e-disabled")){this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus();break}e?this.currentControlIndex++:this.currentControlIndex--,s=n[this.currentControlIndex].closest(".e-ribbon-item")}if(n[parseInt(this.currentControlIndex.toString(),10)].focus(),"Classic"===this.activeLayout){if(r=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a._8),e){var c=void 0;if(r&&(c=r.querySelector(".e-ribbon-launcher-icon")),c){var u=r.querySelectorAll(".e-ribbon-item");u[u.length-1].querySelector(".e-control").classList.add("e-ribbon-last-item")}}else if(r){var l=r.getAttribute("id");if(o!==l){var c=r.querySelector(".e-ribbon-launcher-icon");c&&n[parseInt((this.currentControlIndex+1).toString(),10)].classList.add("e-ribbon-first-item")}}}else n[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-first-item")?n[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-first-item"):n[parseInt(this.currentControlIndex.toString(),10)].classList.contains("e-ribbon-last-item")&&n[parseInt(this.currentControlIndex.toString(),10)].classList.remove("e-ribbon-last-item")}}else if("Classic"===this.activeLayout&&this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus(),"Simplified"===this.activeLayout){var p=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");e&&p&&!p.classList.contains("e-ribbon-hide")?p.focus():this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus()}if(t.target.classList.contains("e-ribbon-last-item")&&(e?(r=n[parseInt(this.currentControlIndex.toString(),10)].closest("."+a._8),r.querySelector(".e-ribbon-launcher-icon").focus()):(this.currentControlIndex--,n[parseInt(this.currentControlIndex.toString(),10)].focus())),!e&&t.target.classList.contains("e-ribbon-first-item")){r=n[parseInt((this.currentControlIndex-1).toString(),10)].closest("."+a._8);var c=r.querySelector(".e-ribbon-launcher-icon");c&&r.querySelector(".e-ribbon-launcher-icon").focus()}if(t.target.classList.contains("e-ribbon-launcher-icon")&&(e?(this.currentControlIndex++,n[parseInt(this.currentControlIndex.toString(),10)].focus(),n[parseInt((this.currentControlIndex-1).toString(),10)].classList.contains("e-ribbon-last-item")&&n[parseInt((this.currentControlIndex-1).toString(),10)].classList.remove("e-ribbon-last-item")):(this.currentControlIndex,n[parseInt(this.currentControlIndex.toString(),10)].focus())),t.target.classList.contains("e-ribbon-collapse-btn"))if(e){this.currentControlIndex=0;for(var d=n[this.currentControlIndex].closest(".e-ribbon-item");d&&d.classList.contains("e-disabled");)this.currentControlIndex++,d=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}else{var p=this.tabObj.element.querySelector(".e-ribbon-overall-of-btn");if(p&&!p.classList.contains("e-ribbon-hide"))p.focus();else{this.currentControlIndex=n.length-1;for(var d=n[this.currentControlIndex].closest(".e-ribbon-item");d&&d.classList.contains("e-disabled");)this.currentControlIndex--,d=n[this.currentControlIndex].closest(".e-ribbon-item");n[parseInt(this.currentControlIndex.toString(),10)].focus()}}"Simplified"===this.activeLayout&&t.target.classList.contains("e-ribbon-overall-of-btn")&&(e?this.tabObj.element.querySelector(".e-ribbon-collapse-btn").focus():(this.currentControlIndex=n.length-1,n[parseInt(this.currentControlIndex.toString(),10)].focus()))},e.prototype.resizeHandler=function(){var t=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o);if(this.checkOverflow(this.selectedTab,t),this.scrollModule){var e=this.tabObj.element.querySelector("."+a.T);this.scrollModule.scrollStep=e.offsetWidth}},e.prototype.renderTabs=function(){this.tabsInternal=this.tabs.slice(),this.tabsInternal=this.checkID(this.tabsInternal,"tab",this.element.id),this.setProperties({tabs:this.tabsInternal},!0);var t=this.createElement("div",{id:this.element.id+a._32});this.element.appendChild(t),this.validateItemSize();var e=this.createTabItems(this.tabs);this.tabObj=new o.Tab({cssClass:a.V,selectedItem:this.selectedTab,overflowMode:"Popup",width:this.width,items:e,enableRtl:this.enableRtl,created:this.tabCreated.bind(this),selected:this.ribbonTabSelected.bind(this),selecting:this.ribbonTabSelecting.bind(this)}),this.tabObj.appendTo(t),this.element.style.setProperty(a.c,"0px"),this.element.style.setProperty(a._42,"0px");var i=t.querySelector(".e-toolbar");n.i(r.getComponent)(i,o.Toolbar).setProperties({width:"calc(100% - var(--fileMenuWidth) - var(--helpTemplateWidth))"}),this.element.classList[this.isMinimized?"add":"remove"](a._6)},e.prototype.minimize=function(t){var e=this;if(t!==this.isMinimized){var n={cancel:!1};this.trigger(t?"ribbonCollapsing":"ribbonExpanding",n,function(n){n.cancel||(e.setProperties({isMinimized:t},!0),e.element.classList.toggle(a._6,e.isMinimized),e.tabObj.element.querySelector(".e-content").style.display=t?"none":"block",t||e.refreshLayout())})}},e.prototype.toggleLayout=function(){this.setProperties({activeLayout:"Simplified"===this.activeLayout?"Classic":"Simplified"},!0),this.switchLayout()},e.prototype.tabCreated=function(){this.hideLayoutSwitcher||this.addExpandCollapse(),this.renderInitialTab(this.selectedTab)},e.prototype.ribbonTabSelected=function(t){this.isAddRemove=!1;var e=t.selectedItem.getAttribute("data-id"),r=n.i(u.d)(this.tabs,function(t){return t.id===e});r=-1===r?this.selectedTab:r;var o={previousIndex:this.selectedTab,selectedIndex:r};if(this.setProperties({selectedTab:r},!0),this.checkOverflow(r,t.selectedContent.firstChild),"Simplified"===this.activeLayout&&this.overflowDDB){var i=this.overflowDDB.target,s=i.querySelector("."+a.W);s&&s.classList.remove(a.W);var c=i.querySelector("#"+e+a.M);c?(c.classList.add(a.W),this.overflowDDB.element.classList.remove(a.U)):this.overflowDDB.element.classList.add(a.U)}this.trigger("tabSelected",o)},e.prototype.checkOverflow=function(t,e){var n=e.closest("."+a._5),r=n.offsetWidth<e.offsetWidth;if(r&&!this.scrollModule){if("Classic"===this.activeLayout){var i=!1;i=this.checkGroupShrinking(t,n,e,!0),!i&&n.offsetWidth<e.offsetWidth&&(i=this.checkGroupShrinking(t,n,e,!1)),n.offsetWidth<e.offsetWidth&&this.createOverflowDropdown(t,n,e)}else this.checkSimplifiedItemShrinking(t,n,e),n.offsetWidth<e.offsetWidth&&this.createSimplfiedOverflow(n,e,t);n.offsetWidth<e.offsetWidth&&!this.scrollModule&&(this.scrollModule=new o.HScroll({enableRtl:this.enableRtl},this.tabObj.element.querySelector("."+a._5)))}else if(!r)if(this.destroyScroll(),"Classic"===this.activeLayout){var i=!1;i=this.removeOverflowDropdown(n,e,!1,t),!i&&n.offsetWidth>e.offsetWidth&&(i=this.checkGroupExpanding(t,n,e,!0)),!i&&n.offsetWidth>e.offsetWidth&&(i=this.checkGroupExpanding(t,n,e,!1))}else this.removeSimplfiedOverflow(n,e,t),n.offsetWidth>e.offsetWidth&&this.checkSimplifiedItemExpanding(t,n,e)},e.prototype.checkSimplifiedItemShrinking=function(t,e,n){for(var r=this.tabs[parseInt(t.toString(),10)],o=r.groups.length-1;o>=0;o--)for(var i=r.groups[parseInt(o.toString(),10)],c=e.querySelector("#"+i.id+a._40),u=0;u<i.collections.length&&e.offsetWidth<n.offsetWidth;u++)for(var l=i.collections[parseInt(u.toString(),10)],p=l.items.length;p>=1&&e.offsetWidth<n.offsetWidth;p--){var d=l.items[p-1];if(d.allowedSizes&s.c.Small&&d.allowedSizes&s.c.Medium&&d.activeSize===s.c.Medium&&d.displayOptions&s.b.Simplified){var f=c.querySelector("#"+d.id+a._40);if(f){var h=f.querySelector("#"+d.id);f.setAttribute("data-medium-width",n.offsetWidth.toString()),d.setProperties({activeSize:s.c.Small},!0),this.setItemSize(h,d)}}}},e.prototype.checkSimplifiedItemExpanding=function(t,e,n){for(var r=this.tabs[parseInt(t.toString(),10)],o=r.groups.length-1;o>=0;o--)for(var i=r.groups[parseInt(o.toString(),10)],c=e.querySelector("#"+i.id+a._40),u=0;u<i.collections.length&&e.offsetWidth>n.offsetWidth;u++)for(var l=i.collections[parseInt(u.toString(),10)],p=l.items.length;p>=1&&e.offsetWidth>n.offsetWidth;p--){var d=l.items[p-1];if(d.allowedSizes&s.c.Small&&d.allowedSizes&s.c.Medium&&d.activeSize===s.c.Small&&d.displayOptions&s.b.Simplified){var f=c.querySelector("#"+d.id+a._40);if(f){var h=f.getAttribute("data-medium-width"),b=h?parseInt(h,10):null;if(b&&e.offsetWidth>b){f.removeAttribute("data-medium-width");var m=f.querySelector("#"+d.id);d.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(m,d)}}}}},e.prototype.createSimplfiedOverflow=function(t,e,o){for(var i=this.getGroupResizeOrder(!0,o),c=0;c<i.length&&t.offsetWidth<e.offsetWidth;c++){for(var u=i[parseInt(c.toString(),10)],l=t.querySelector("#"+u.id),p=l.querySelector("#"+u.id+a._40),d=u.collections.length;d>=1&&t.offsetWidth<e.offsetWidth;d--)for(var f=u.collections[parseInt((d-1).toString(),10)],h=l.querySelector("#"+f.id),b=f.items.length;b>=1&&t.offsetWidth<e.offsetWidth;b--){var m=f.items[b-1],v=h.querySelector("#"+m.id+a._40);if((m.displayOptions===s.b.Auto||m.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(v)){if(v.setAttribute("data-simplified-width",e.offsetWidth.toString()),this.createOverflowPopup(m,o,u.enableGroupOverflow,u.id,u.header,v,p),m.activeSize===s.c.Small){var y=v.querySelector("#"+m.id);m.setProperties({activeSize:s.c.Medium},!0),this.setItemSize(y,m)}m.type!==s.f.DropDown&&m.type!==s.f.SplitButton&&m.type!==s.f.GroupButton||this.updatePopupItems(m,v,u.enableGroupOverflow,!0)}}u.enableGroupOverflow||l.querySelector("."+a._19)||l.classList.add("e-ribbon-emptyCollection")}},e.prototype.updatePopupItems=function(t,e,o,i){var c=n.i(r.getComponent)(e.querySelector("#"+t.id),t.type===s.f.DropDown||t.type===s.f.GroupButton?l.DropDownButton:l.SplitButton),u=c.dropDown,a=(o&&i)===this.enableRtl;u.setProperties({position:{X:a?"left":"right",Y:i?"top":"bottom"}},!0),i?c.beforeOpen=function(){a&&(u.element.style.setProperty("visibility","hidden"),u.element.style.setProperty("display","block"),u.setProperties({offsetX:-1*u.element.offsetWidth}),u.element.style.removeProperty("display"),u.element.style.removeProperty("visibility"))}:(u.setProperties({offsetX:0},!0),c.beforeOpen=null)},e.prototype.removeSimplfiedOverflow=function(t,e,o,i){void 0===i&&(i=!1);for(var c=this.getGroupResizeOrder(!1,o),u=!0,p=0;p<c.length&&u;p++){var d=c[parseInt(p.toString(),10)],f=void 0,h=void 0;if(d.enableGroupOverflow){var b=t.querySelector("#"+d.id+a.r);b&&(f=n.i(r.getInstance)(b,l.DropDownButton),h=f.target)}else f=this.overflowDDB,h=this.overflowDDB?this.overflowDDB.target:null;for(var m=0;m<d.collections.length&&u;m++)for(var v=d.collections[parseInt(m.toString(),10)],y=0;y<v.items.length&&u&&!i&&t.offsetWidth>e.offsetWidth;y++){var g=v.items[parseInt(y.toString(),10)],_=void 0;if(h&&(_=h.querySelector("#"+g.id+a._40)),(g.displayOptions===s.b.Auto||g.displayOptions===(s.b.Simplified|s.b.Overflow))&&!n.i(r.isNullOrUndefined)(_)){var S=parseInt(_.getAttribute("data-simplified-width"),10);if(!i&&t.offsetWidth<S){u=!1;break}var I=t.querySelector("#"+v.id);g.type!==s.f.DropDown&&g.type!==s.f.SplitButton&&g.type!==s.f.GroupButton||this.updatePopupItems(g,_,d.enableGroupOverflow,!1),I.append(_),this.removeOverflowEvent(g,_),g.allowedSizes&s.c.Small&&(g.setProperties({activeSize:s.c.Small},!0),this.setItemSize(_.querySelector("#"+g.id),g))}}var C=t.querySelector("#"+d.id),B=C.querySelector("."+a._19);if(C.classList.contains("e-ribbon-emptyCollection")&&null!==B&&C.classList.remove("e-ribbon-emptyCollection"),f)if(d.enableGroupOverflow)0===h.childElementCount&&this.removeOverflowButton(f);else{var O=h.querySelector("#"+d.id+a._40);O&&1===O.childElementCount&&O.remove();var w=h.querySelector("#"+this.tabs[parseInt(o.toString(),10)].id+a.M);w&&0===w.childElementCount&&(w.remove(),this.overflowDDB.element.classList.add(a.U))}}if(this.overflowDDB){0===this.overflowDDB.target.childElementCount&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)}},e.prototype.createOverflowPopup=function(t,e,o,i,s,c,u){var p,d=this.tabObj.items[parseInt(e.toString(),10)].content,f=d.querySelector("#"+i);if(o){var h=u.querySelector("#"+i+a.r);h?p=n.i(r.getInstance)(h,l.DropDownButton):(p=this.addOverflowButton(i+a.r),p.element.classList.add(a._2),u.appendChild(p.element)),f&&f.classList.contains("e-disabled")&&p.target.classList.add("e-disabled"),p.target.append(c)}else{if(this.overflowDDB){this.overflowDDB.element.classList.remove(a.U);var b=this.overflowDDB.target,m=b.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+a.M);if(m){var v=b.querySelector("#"+i+a._40);v||(v=this.createGroupContainer(i,s),f&&f.classList.contains("e-disabled")&&v.classList.add("e-disabled"),m.append(v)),v.append(c)}else this.createOfTabContainer(i,s,c,e)}else this.overflowDDB=this.addOverflowButton(this.tabObj.element.id+a._37),this.tabObj.element.insertBefore(this.overflowDDB.element,this.collapseButton),this.overflowDDB.element.classList.add(a._1),this.createOfTabContainer(i,s,c,e);p=this.overflowDDB}null!==c&&this.addOverflowEvents(t,c,p)},e.prototype.addOverflowEvents=function(t,e,n){switch(t.type){case"Button":this.ribbonButtonModule.addOverFlowEvents(t,e,n);break;case"DropDown":this.ribbonDropDownModule.addOverFlowEvents(t,e,n);break;case"SplitButton":this.ribbonSplitButtonModule.addOverFlowEvents(t,e,n);break;case"CheckBox":this.ribbonCheckBoxModule.addOverFlowEvents(t,e,n);break;case"ColorPicker":this.ribbonColorPickerModule.addOverFlowEvents(t,e,n);break;case"ComboBox":this.ribbonComboBoxModule.addOverFlowEvents(t,e,n);break;case"GroupButton":if("Simplified"===this.activeLayout){this.ribbonGroupButtonModule.addOverFlowEvents(t,e);break}}},e.prototype.createOfTabContainer=function(t,e,n,r){var o=this.createElement("div",{id:this.tabs[parseInt(r.toString(),10)].id+a.M,className:a._9});this.overflowDDB.target.append(o);var i=this.createGroupContainer(t,e);i.append(n),o.append(i),r===this.selectedTab&&o.classList.add(a.W)},e.prototype.checkGroupShrinking=function(t,e,n,r){for(var o=!0,i=!1,s=this.tabs[parseInt(t.toString(),10)],c=s.groups.length-1;o&&c>=0;c--)i=r?this.checkLargeToMedium(t,s,c,e,n):this.checkMediumToSmall(t,s,c,e,n),o=!i&&e.offsetWidth<n.offsetWidth;return i},e.prototype.checkValidCollectionLength=function(t){for(var e=0,n=0;n<t.length;n++){for(var r=t[parseInt(n.toString(),10)].items,o=0;o<r.length;o++)if(r[parseInt(o.toString(),10)].displayOptions&s.b.Classic){e++;break}if(e>1)return!1}return 1===e},e.prototype.checkClassicCollection=function(t,e,n){for(var r=t[parseInt(e.toString(),10)].items,o=0;o<r.length;o++)if(r[parseInt(o.toString(),10)].displayOptions&s.b.Classic)return e;return e=n?e+1:e-1,n?e===t.length?e:this.checkClassicCollection(t,e,n):e<0?e:this.checkClassicCollection(t,e,n)},e.prototype.checkClassicItem=function(t,e,n){return t[parseInt(e.toString(),10)].displayOptions&s.b.Classic?e:(e=n?e+1:e-1,n?e===t.length?e:this.checkClassicItem(t,e,n):e<0?e:this.checkClassicItem(t,e,n))},e.prototype.checkLargeToMedium=function(t,e,n,r,o,i){var c=this;void 0===i&&(i=!1);var u=e.groups[parseInt(n.toString(),10)];if(u.isCollapsed&&!i)return!1;var l=function(t){return 1===t.items.length&&p(t.items[0])},p=function(t){return t.allowedSizes&s.c.Medium&&t.activeSize===s.c.Large},d=function(t,e,n,r){var s=c.createElement("div",{className:"e-ribbon-shrink"+a.F+a._20,id:t+"_shrink_container"+n,attrs:{"data-start":n.toString(),"data-end":r.toString()}});return e.parentElement.insertBefore(s,e),i||s.setAttribute("data-large-width",o.offsetWidth.toString()),s},f=function(e,r){for(var u=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[0],l=o.querySelector("#"+u.items[parseInt(e.toString(),10)].id+a._40),p=i?o.querySelector("#"+u.id+"_shrink_container"+e):d(u.id,l,e,r),f=e;f<=r;f++){var h=u.items[parseInt(f.toString(),10)];if(h.displayOptions&s.b.Classic){var b=o.querySelector("#"+h.id+a._40);p.appendChild(b),h.setProperties({activeSize:s.c.Medium},!0),h.type===s.f.GroupButton&&"Classic"===c.activeLayout?c.setItemSize(b.querySelector("#"+h.id+a.A),h):c.setItemSize(b.querySelector("#"+h.id),h)}}},h=function(e,r){for(var u=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)],l=o.querySelector("#"+u.collections[parseInt(e.toString(),10)].id),p=i?o.querySelector("#"+u.id+"_shrink_container"+e):d(u.id,l,e,r),f=e;f<=r;f++){var h=u.collections[parseInt(f.toString(),10)],b=o.querySelector("#"+h.id);p.appendChild(b),h.items[0].setProperties({activeSize:s.c.Medium},!0),h.items[0].type===s.f.GroupButton&&"Classic"===c.activeLayout?c.setItemSize(b.querySelector("#"+h.items[0].id+a.A),h.items[0]):c.setItemSize(b.querySelector("#"+h.items[0].id),h.items[0])}};if(u.orientation===s.e.Column)for(var b=u.collections.length-1;b>0;b--){b=this.checkClassicCollection(u.collections,b,!1);var m=b-1;if(m>=0&&l(u.collections[parseInt(b.toString(),10)]))if((m=this.checkClassicCollection(u.collections,m,!1))>=0&&l(u.collections[parseInt(m.toString(),10)])){var v=m-1;if(v>=0&&(v=this.checkClassicCollection(u.collections,v,!1)),v>=0&&l(u.collections[parseInt(v.toString(),10)])?h(v,b):h(m,b),b=v,!i&&r.offsetWidth>o.offsetWidth)return!0}else b=m}else if(this.checkValidCollectionLength(u.collections))for(var y=u.collections[0],b=y.items.length-1;b>0;b--){b=this.checkClassicItem(y.items,b,!1);var m=b-1;if(m>=0&&p(y.items[parseInt(b.toString(),10)]))if((m=this.checkClassicItem(y.items,m,!1))>=0&&p(y.items[parseInt(m.toString(),10)])){var v=m-1;if(v>=0&&(v=this.checkClassicItem(y.items,v,!1)),v>=0&&p(y.items[parseInt(v.toString(),10)])?f(v,b):f(m,b),b=v,!i&&r.offsetWidth>o.offsetWidth)return!0}else b=m}return!1},e.prototype.checkMediumToSmall=function(t,e,n,r,o,i){var c=this;void 0===i&&(i=!1);var u=e.groups[parseInt(n.toString(),10)];if(u.isCollapsed&&!i)return!1;var l=u.orientation,p=o.querySelector("#"+u.id),d=p.querySelectorAll(".e-ribbon-shrink"),f=function(t){return t.allowedSizes&s.c.Small&&t.activeSize===s.c.Medium},h=function(e,r,i,u){void 0===u&&(u=null);var a=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],l=function(t){var e=a.items[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=o.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Small},!0),e.type===s.f.GroupButton&&(n=o.querySelector("#"+e.id+"_grpbtn")),c.setItemSize(n,e)}};l(r),u&&l(u),l(i)},b=function(e,r,u,l){void 0===l&&(l=null);var p=c.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)];i||d[parseInt(e.toString(),10)].setAttribute("data-medium-width",o.offsetWidth.toString());var f=function(t){var e=p.collections[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=o.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.c.Small},!0),e.items[0].type===s.f.GroupButton&&(n=o.querySelector("#"+e.items[0].id+a.A)),c.setItemSize(n,e.items[0])}};f(r),l&&f(l),f(u)},m=function(t){if(!i){o.querySelector("#"+t).setAttribute("data-medium-width",o.offsetWidth.toString())}};if(l===s.e.Column){if(d.length>0)for(var v=d.length-1;v>=0;v--){var y=parseInt(d[parseInt(v.toString(),10)].getAttribute("data-start"),10),g=parseInt(d[parseInt(v.toString(),10)].getAttribute("data-end"),10),_=this.checkClassicCollection(u.collections,y+1,!1);if(f(u.collections[parseInt(y.toString(),10)].items[0])&&f(u.collections[parseInt(_.toString(),10)].items[0])&&(g===_?b(v,y,g):f(u.collections[parseInt(g.toString(),10)].items[0])&&b(v,y,g,_),!i&&r.offsetWidth>o.offsetWidth))return!0}for(var v=u.collections.length-1;v>=0;v--){for(var S=u.collections[parseInt(v.toString(),10)],I=[],C=0;C<S.items.length;C++)S.items[parseInt(C.toString(),10)].displayOptions&s.b.Classic&&I.push(C);if(I.length>1&&f(S.items[I[0]])&&f(S.items[I[1]])&&(2===I.length?(m(S.id),h(v,I[0],I[1])):f(S.items[I[2]])&&(m(S.id),h(v,I[0],I[2],I[1])),!i&&r.offsetWidth>o.offsetWidth))return!0}}else if(this.checkValidCollectionLength(u.collections)){if(d.length>0)for(var v=d.length-1;v>=0;v--){var B=d[parseInt(v.toString(),10)],y=parseInt(B.getAttribute("data-start"),10),g=parseInt(B.getAttribute("data-end"),10),S=u.collections[0],_=this.checkClassicItem(S.items,y+1,!1);if(f(u.collections[0].items[parseInt(y.toString(),10)])&&f(u.collections[0].items[parseInt(_.toString(),10)])&&(g===_?(m(B.id),h(0,y,g)):f(u.collections[0].items[parseInt(g.toString(),10)])&&(m(B.id),h(0,y,g,_)),!i&&r.offsetWidth>o.offsetWidth))return!0}}else for(var v=u.collections.length-1;v>=0;v--)for(var S=u.collections[parseInt(v.toString(),10)],_=S.items.length-1;_>=0;_--)if(!((_=this.checkClassicItem(S.items,_,!1))<0)){var O=S.items[parseInt(_.toString(),10)];if(f(O)&&(m(O.type!==s.f.GroupButton?O.id:O.id+a.A),h(v,_,_),!i&&r.offsetWidth>o.offsetWidth))return!0}return!1},e.prototype.checkGroupExpanding=function(t,e,n,r){for(var o=!1,i=this.tabs[parseInt(t.toString(),10)],s=0;!o&&s<i.groups.length;s++)o=r?this.checkSmallToMedium(t,i,s,e,n,!1,!0):this.checkMediumToLarge(t,i,s,e,n,!1,!0);return o},e.prototype.checkSmallToMedium=function(t,e,n,r,o,i,c){var u=this,l=e.groups[parseInt(n.toString(),10)],p=l.orientation,d=o.querySelector("#"+l.id),f=d.querySelectorAll(".e-ribbon-shrink"),h=function(e,r,o){var i=u.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections[parseInt(e.toString(),10)],c=i.items[parseInt(r.toString(),10)];if(c.displayOptions&s.b.Classic){var l=o.id===c.id?o:o.querySelector("#"+c.id);c.setProperties({activeSize:s.c.Medium},!0),c.type===s.f.GroupButton&&(l=document.querySelector("#"+c.id+a.A)),u.setItemSize(l,c)}},b=function(e){var r=u.tabs[parseInt(t.toString(),10)].groups[parseInt(n.toString(),10)].collections,i=r[parseInt(e.toString(),10)].items[0];if(i.displayOptions&s.b.Classic){var c=o.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id);r[parseInt(e.toString(),10)].items[0].setProperties({activeSize:s.c.Medium},!0),i.type===s.f.GroupButton&&(c=o.querySelector("#"+r[parseInt(e.toString(),10)].items[0].id+a.A)),u.setItemSize(c,r[parseInt(e.toString(),10)].items[0])}};if(p===s.e.Row){if(!this.checkValidCollectionLength(l.collections))for(var m=0;m<l.collections.length;m++)for(var v=l.collections[parseInt(m.toString(),10)],y=0;y<v.items.length;y++)if((y=this.checkClassicItem(v.items,y,!0))!==v.items.length){var g=v.items[parseInt(y.toString(),10)];if(function(t){return t.allowedSizes&s.c.Medium&&t.activeSize===s.c.Small}(g)){var _=o.querySelector("#"+g.id);"GroupButton"===g.type&&(_=o.querySelector("#"+g.id+a.A));var S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(i||r.offsetWidth>I))h(m,y,_),i&&!c||_.removeAttribute("data-medium-width");else if(I)return!0}}}else for(var m=0;m<l.collections.length;m++)if(l.collections[parseInt(m.toString(),10)].items.length>1){for(var v=l.collections[parseInt(m.toString(),10)],_=o.querySelector("#"+v.id),S=_.getAttribute("data-medium-width"),I=S?parseInt(S,10):null,C=[],B=0;B<v.items.length;B++)v.items[parseInt(B.toString(),10)].displayOptions&s.b.Classic&&C.push(B);if(C.length>1&&I&&(i||r.offsetWidth>I))h(m,C[0],_),h(m,C[1],_),3===C.length&&h(m,C[2],_),i&&!c||_.removeAttribute("data-medium-width");else if(I)return!0}if(f.length>0)for(var m=0;m<f.length;m++){var O=f[parseInt(m.toString(),10)],S=O.getAttribute("data-medium-width"),I=S?parseInt(S,10):null;if(I&&(i||r.offsetWidth>I)){var w=parseInt(O.getAttribute("data-start"),10),P=parseInt(O.getAttribute("data-end"),10);if(p===s.e.Row){var v=l.collections[0],y=this.checkClassicItem(v.items,w+1,!0);h(0,w,O),h(0,y,O),y!==P&&h(0,P,O)}else{var L=this.checkClassicCollection(l.collections,w+1,!0);b(w),b(L),L!==P&&b(P)}i&&!c||O.removeAttribute("data-medium-width")}else if(I)return!0}return!1},e.prototype.checkMediumToLarge=function(t,e,o,i,c,u,l){var p=this,d=e.groups[parseInt(o.toString(),10)],f=d.orientation,h=c.querySelector("#"+d.id),b=h.querySelectorAll(".e-ribbon-shrink");if(0===b.length)return!1;for(var m=function(e,i,c,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(o.toString(),10)].collections[0].items,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.displayOptions&s.b.Classic){var n=c.querySelector("#"+e.id+a._40),r=n.querySelector("#"+e.id);e.setProperties({activeSize:s.c.Large},!0),e.type===s.f.GroupButton&&(r=n.querySelector("#"+e.id+a.A)),p.setItemSize(r,e),c.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(i),u&&!l||n.i(r.remove)(c)},v=function(e,i,c,d){var f=p.tabs[parseInt(t.toString(),10)].groups[parseInt(o.toString(),10)].collections,h=function(t){var e=f[parseInt(t.toString(),10)];if(e.items[0].displayOptions&s.b.Classic){var n=c.querySelector("#"+e.id),r=n.querySelector("#"+e.items[0].id);e.items[0].setProperties({activeSize:s.c.Large},!0),e.items[0].type===s.f.GroupButton&&(r=n.querySelector("#"+e.items[0].id+a.A)),p.setItemSize(r,e.items[0]),c.insertAdjacentElement("beforebegin",n)}};h(e),d&&h(d),h(i),u&&!l||n.i(r.remove)(c)},y=0;y<b.length;y++){var g=b[parseInt(y.toString(),10)],_=g.getAttribute("data-large-width"),S=_?parseInt(_,10):null;if(S&&(u||i.offsetWidth>S)){var I=parseInt(g.getAttribute("data-start"),10),C=parseInt(g.getAttribute("data-end"),10);if(f===s.e.Row){var B=d.collections[0],O=this.checkClassicItem(B.items,I+1,!0);O===C?m(I,C,g):m(I,C,g,O)}else{var w=this.checkClassicCollection(d.collections,I+1,!0);w===C?v(I,C,g):v(I,C,g,w)}u&&!l||g.removeAttribute("data-large-width")}else if(S)return!0}return!1},e.prototype.handleContentSize=function(t,e){var n=t.closest("."+a._11);e?n.classList.add(a._25):n.classList.remove(a._25)},e.prototype.setItemSize=function(t,e){var o=t.closest("."+a._19);e.type===s.f.Button?this.ribbonButtonModule.updateButtonSize(t,e):e.type===s.f.DropDown?this.ribbonDropDownModule.updateDropDownSize(t,e):e.type===s.f.SplitButton?this.ribbonSplitButtonModule.updateSplitButtonSize(t,e):e.type===s.f.Template?(n.i(r.remove)(t),this.createTemplateContent(e,o)):e.type===s.f.GroupButton&&this.ribbonGroupButtonModule.updateGroupButtonSize(t,e),o.classList.remove(a._25,a._22,a._23,a._24),e.activeSize===s.c.Large?o.classList.add(a._22,a._25):o.classList.add(e.activeSize===s.c.Medium?a._23:a._24)},e.prototype.createOverflowDropdown=function(t,e,r){var o=this.getGroupResizeOrder(!0,t);if(0!==o.length)for(var i=this,s=0;s<o.length&&e.offsetWidth<r.offsetWidth;s++)!function(s){var c=o[parseInt(s.toString(),10)],l=i.tabObj.element.querySelector("#"+c.id);l.setAttribute("data-expanded-width",r.offsetWidth.toString());var p=l.querySelector("#"+c.id+a._40),d=i.createElement("div",{className:a._14+a.F+a._22,id:c.id+a.M+a._40});l.insertBefore(d,p);var f=n.i(u.d)(i.tabs[parseInt(t.toString(),10)].groups,function(t){return t.id===c.id}),h=i.tabs[parseInt(t.toString(),10)];i.checkSmallToMedium(t,h,f,e,r,!0,!1),i.checkMediumToLarge(t,h,f,e,r,!0,!1);var b=i.ribbonDropDownModule.createOverFlowDropDown(c.id,c.header,c.groupIconCss,p,d,i.enableRtl);i.tabs[parseInt(t.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!0},!0);for(var m=0;m<c.collections.length;m++)for(var v=c.collections[parseInt(m.toString(),10)],y=p.querySelector("#"+v.id),g=0;g<v.items.length;g++){var _=v.items[parseInt(g.toString(),10)],S=y.querySelector("#"+_.id+a._40);null!==S&&(i.handleContentSize(S),i.addOverflowEvents(_,S,b))}}(s)},e.prototype.removeOverflowDropdown=function(t,e,r,o){void 0===r&&(r=!1);var i=this.getGroupResizeOrder(!1,o);if(0===i.length)return!1;for(var s=this,c=0;c<i.length;c++){var l=function(c){var l=i[parseInt(c.toString(),10)],p=s.tabObj.element.querySelector("#"+l.id);if(!p)return"break";var d=parseInt(p.getAttribute("data-expanded-width"),10);if(!r&&t.offsetWidth<d)return{value:!0};s.removeDropdown(l.id);var f=n.i(u.d)(s.tabs[parseInt(o.toString(),10)].groups,function(t){return t.id===l.id});s.tabs[parseInt(o.toString(),10)].groups[parseInt(f.toString(),10)].setProperties({isCollapsed:!1},!0);var h=s.tabs[parseInt(o.toString(),10)];s.checkLargeToMedium(o,h,f,t,e,!0),s.checkMediumToSmall(o,h,f,t,e,!0);for(var b=0;b<l.collections.length;b++)for(var m=l.collections[parseInt(b.toString(),10)],v=p.querySelector("#"+m.id),y=0;y<m.items.length;y++){var g=m.items[parseInt(y.toString(),10)],_=v.querySelector("#"+g.id+a._40);null!==_&&(s.handleContentSize(_,!0),s.removeOverflowEvent(g,_))}}(c);if("object"==typeof l)return l.value;if("break"===l)break}return!1},e.prototype.removeDropdown=function(t){var e=this.tabObj.element.querySelector("#"+t+a.M+a.N);if(e){var o=e.parentElement;this.ribbonDropDownModule.removeOverFlowDropDown(e),n.i(r.remove)(o)}},e.prototype.getGroupResizeOrder=function(t,e){var o=this,i=this.tabs[parseInt(e.toString(),10)].groups;return i=i.filter(function(e){return"Classic"!==o.activeLayout||(n.i(r.isUndefined)(e.isCollapsible)||e.isCollapsible)&&(t&&n.i(r.isUndefined)(e.isCollapsed)||!n.i(r.isUndefined)(e.isCollapsed)&&t!==e.isCollapsed)}),i.sort(function(t,e){return t.priority-e.priority}),t?i.reverse():i},e.prototype.destroyScroll=function(){this.scrollModule&&(this.scrollModule.destroy(),this.scrollModule=null)},e.prototype.clearOverflowDropDown=function(t){var e=this.tabObj.element.querySelector("#"+this.tabs[parseInt(t.toString(),10)].id+a.o);if(e){var n=e.closest("."+a._5);"Simplified"===this.activeLayout?this.removeSimplfiedOverflow(e,n,t,!0):this.removeOverflowDropdown(e,n,!0,t)}},e.prototype.ribbonTabSelecting=function(t){var e=this;this.currentControlIndex=0;var o=t.selectingItem.getAttribute("data-id"),i=t.previousItem.getAttribute("data-id"),s=n.i(u.d)(this.tabs,function(t){return t.id===o}),c=n.i(u.d)(this.tabs,function(t){return t.id===i});s=-1===s?this.selectedTab:s;var l={cancel:t.cancel,isInteracted:t.isInteracted,previousIndex:c,selectedIndex:s};this.trigger("tabSelecting",l,function(t){if(!t.cancel){e.destroyScroll(),e.isAddRemove||-1===c||e.clearOverflowDropDown(c);var o=e.tabObj.items[parseInt(s.toString(),10)].content;if(!o.querySelector("."+a._7)&&0!==e.tabs[parseInt(s.toString(),10)].groups.length){var i=e.createGroups(e.tabs[parseInt(s.toString(),10)].groups,s);n.i(r.append)(i,o)}}})},e.prototype.createTabItems=function(t){for(var e=this,n=[],r=0;r<t.length;r++){var o=t[parseInt(r.toString(),10)],i=this.createElement("span",{innerHTML:o.header,id:o.id+a._38});i.onclick=function(){e.minimize(!1)},i.ondblclick=function(){e.minimize(!0)};var s={header:{text:i},id:o.id,cssClass:o.cssClass},c=this.createElement("div",{className:s.cssClass,id:o.id+a.o});c.classList.add(a.X),s.content=c,n.push(s)}return n},e.prototype.renderInitialTab=function(t){var e=this.createGroups(this.tabs[parseInt(t.toString(),10)].groups,t),o=this.tabObj.items[parseInt(t.toString(),10)].content;n.i(r.append)(e,o),"Simplified"===this.activeLayout&&this.element.classList.add(a._30);var i=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o);this.checkOverflow(this.selectedTab,i)},e.prototype.addOverflowButton=function(t){var e=this,o=this.createElement("button",{id:t}),i=this.createElement("div",{className:a._3,attrs:{tabindex:"0"}}),s=new l.DropDownButton({iconCss:a.Q,cssClass:a._27+a.F+a.O,target:i,locale:this.locale,enableRtl:this.enableRtl,enablePersistence:this.enablePersistence,beforeClose:function(t){(t.event?n.i(r.closest)(t.event.target,"."+a.L):null)&&(t.cancel=!0)}},o);this.element.classList.add(a._4),n.i(u.c)(i,this);var c;return o.onkeydown=o.onclick=function(){e.itemIndex=-1,c=!o.classList.contains("e-ribbon-overall-of-btn")},i.onkeydown=function(t){return e.upDownKeyHandler(t,i,c),e},s},e.prototype.upDownKeyHandler=function(t,e,o){var i;if(o)i=e.getElementsByClassName("e-ribbon-item");else{i=e.querySelector(".e-ribbon-of-tab.e-ribbon-active").getElementsByClassName("e-ribbon-item")}var s,c=i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-control").classList.contains("e-combobox")?i[!this.itemIndex||this.itemIndex<0?0:this.itemIndex].querySelector(".e-combobox"):null;(null===c||"Tab"===t.key||this.itemIndex<0)&&("ArrowDown"===t.key||!t.shiftKey&&"Tab"===t.key?!this.itemIndex&&0!==this.itemIndex||this.itemIndex<0||this.itemIndex===i.length-1?(this.itemIndex=0,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0),c&&"Tab"===t.key&&(t.preventDefault(),i[this.itemIndex].querySelector(".e-control").focus())):this.itemIndex<i.length-1&&this.itemIndex>=0&&(this.itemIndex++,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!0)):("ArrowUp"===t.key||t.shiftKey&&"Tab"===t.key)&&(null!==c&&"Tab"!==t.key||(this.itemIndex&&-1!==this.itemIndex?this.itemIndex<=i.length-1&&this.itemIndex>0&&(this.itemIndex--,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1)):(this.itemIndex=i.length-1,s=i[this.itemIndex].closest(".e-ribbon-item"),this.findDisabledItem(s,i,!1),c&&t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),i[this.itemIndex].querySelector(".e-control").focus())))),e.setAttribute("index",this.itemIndex.toString()));var u=parseInt(e.getAttribute("index"),10),a=i[parseInt(u.toString(),10)]?i[parseInt(u.toString(),10)].querySelector(".e-control").getAttribute("data-control"):null;if(("ArrowDown"===t.key||"ArrowUp"===t.key||" "===t.key||"Tab"===t.key)&&("ColorPicker"===a?("Tab"===t.key&&t.preventDefault(),i[parseInt(u.toString(),10)].querySelector(".e-split-colorpicker").focus()):("Tab"===t.key&&t.preventDefault(),i[parseInt(u.toString(),10)].querySelector(".e-control").focus())," "===t.key&&"CheckBox"===a)){var l=i[parseInt(u.toString(),10)].querySelector(".e-control"),d=n.i(r.getComponent)(l,p.CheckBox);this.itemIndex=-1,d.click()}"SplitButton"!==a||"ArrowRight"!==t.key&&"ArrowLeft"!==t.key||("ArrowRight"===t.key&&(this.enableRtl?i[parseInt(u.toString(),10)].querySelector(".e-control").focus():i[parseInt(u.toString(),10)].querySelector(".e-dropdown-btn").focus()),"ArrowLeft"===t.key&&(this.enableRtl?i[parseInt(u.toString(),10)].querySelector(".e-dropdown-btn").focus():i[parseInt(u.toString(),10)].querySelector(".e-control").focus())),"Enter"===t.key&&(this.itemIndex=-1)},e.prototype.findDisabledItem=function(t,e,n){for(;t&&t.classList.contains("e-disabled");)n?this.itemIndex===e.length-1&&e[this.itemIndex].closest(".e-ribbon-item").classList.contains("e-disabled")&&(this.itemIndex=-1):0===this.itemIndex&&e[this.itemIndex].closest(".e-ribbon-item").classList.contains("e-disabled")&&(this.itemIndex=e.length),n?this.itemIndex++:this.itemIndex--,t=e[this.itemIndex].closest(".e-ribbon-item")},e.prototype.removeOverflowButton=function(t){if(t){var e=t.element;n.i(u.m)(t.target),t.destroy(),e.remove()}},e.prototype.removeOverflowEvent=function(t,e){switch(t.type){case"Button":this.ribbonButtonModule.removeOverFlowEvents(t,e);break;case"DropDown":this.ribbonDropDownModule.removeOverFlowEvents(t,e);break;case"SplitButton":this.ribbonSplitButtonModule.removeOverFlowEvents(t,e);break;case"CheckBox":this.ribbonCheckBoxModule.removeOverFlowEvents(t,e);break;case"ColorPicker":this.ribbonColorPickerModule.removeOverFlowEvents(t,e);break;case"ComboBox":this.ribbonComboBoxModule.removeOverFlowEvents(t,e);break;case"GroupButton":this.ribbonGroupButtonModule.removeOverFlowEvents(t,e)}},e.prototype.createGroupContainer=function(t,e){var n=this.createElement("div",{className:a._10,id:t+a._40}),r=this.createElement("div",{className:a._13,id:t+a._38,innerHTML:e});return n.append(r),n},e.prototype.addExpandCollapse=function(){var t=this;this.collapseButton=this.createElement("span",{className:a.Y+a.F+a.P,id:this.tabObj.element.id+a._36,attrs:{tabindex:"0",type:"button","aria-label":"Layout Switcher",role:"button"}}),this.collapseButton.onclick=function(){t.toggleLayout()},this.collapseButton.onkeydown=function(e){"Enter"===e.key&&t.toggleLayout()},this.element.classList.add(a._0),"Simplified"===this.activeLayout&&this.collapseButton.classList.add(a.Z),this.tabObj.element.appendChild(this.collapseButton)},e.prototype.removeExpandCollapse=function(){var t=this,e=n.i(u.d)(this.tooltipData,function(e){return e.id===t.collapseButton.id});-1!==e&&this.tooltipData.splice(e,1),this.element.classList.remove(a._0),n.i(r.remove)(this.tabObj.element.querySelector("."+a.Y)),this.collapseButton=null},e.prototype.reRenderTabs=function(){this.destroyScroll(),this.checkID(this.tabs,"tab",this.element.id),this.destroyTabItems(this.tabsInternal),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var t=this.createTabItems(this.tabs);this.selectedTab>=this.tabs.length&&(this.selectedTab=this.tabs.length-1),this.tabObj.setProperties({items:t,selectedItem:this.selectedTab}),""===this.tabObj.items[this.selectedTab].content.innerHTML&&this.renderInitialTab(this.selectedTab)},e.prototype.switchLayout=function(){this.currentControlIndex=0,this.destroyScroll(),this.collapseButton.classList.toggle(a.Z,"Simplified"===this.activeLayout),this.element.classList.toggle(a._30,"Simplified"===this.activeLayout);for(var t=0;t<=this.tabs.length-1;t++){var e=t;if(""!==this.tabObj.items[parseInt(e.toString(),10)].content.innerHTML){var o=this.tabs[parseInt(e.toString(),10)],i=this.tabs[parseInt(e.toString(),10)].groups,c=this.tabObj.element.querySelector("#"+this.tabs[parseInt(e.toString(),10)].id+a.o),u=c.closest("."+a._5);if("Simplified"===this.activeLayout)for(var p=0;p<i.length;p++){var d=i[parseInt(p.toString(),10)],f=i[parseInt(p.toString(),10)].orientation;d.isCollapsed?(d.setProperties({isCollapsed:!1},!0),this.removeDropdown(d.id)):(this.checkSmallToMedium(e,o,p,u,c,!0,!1),this.checkMediumToLarge(e,o,p,u,c,!0,!1));for(var h=u.querySelector("#"+d.id),b=h.querySelector("#"+d.id+a._40),m=b.querySelectorAll(".e-ribbon-shrink"),v=0;v<m.length;v++)m[parseInt(v.toString(),10)].remove();var y=b.querySelector("#"+d.id+a._38);y.remove();var g=b.querySelector("#"+d.id+a.o);g.classList.replace(a._20,a._21),g.classList.remove(a._25);for(var _=0;_<d.collections.length;_++){var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);I.classList.replace(a._20,a._21);for(var C=0;C<S.items.length;C++){for(var B=S.items,O=S.items[parseInt(C.toString(),10)],w=!0;w&&O.displayOptions===s.b.Classic;){C++;var P=b.querySelector("#"+O.id+a._40),L=P.querySelector("#"+O.id);this.destroyFunction(O,L),P.remove(),C<B.length?O=B[parseInt(C.toString(),10)]:w=!1}if(!w)break;var D=O.allowedSizes===s.c.Large||O.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;D=!(O.displayOptions&s.b.Simplified)&&O.displayOptions&s.b.Overflow?s.c.Medium:D;var k=void 0;if(O.displayOptions&s.b.Classic){k=b.querySelector("#"+O.id+a._40),O.displayOptions===(s.b.Classic|s.b.Overflow)&&(this.createOverflowPopup(O,e,d.enableGroupOverflow,d.id,d.header,k,b),O.type!==s.f.DropDown&&O.type!==s.f.SplitButton&&O.type!==s.f.GroupButton||this.updatePopupItems(O,k,d.enableGroupOverflow,!0)),O.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(O,k),O.setProperties({activeSize:D},!0);var L=k.querySelector("#"+O.id);this.setItemSize(L,O)}else k=this.createItems([O],f,d.id,d.header,d.enableGroupOverflow,e,b)[0],O.displayOptions&s.b.Simplified&&I.append(k)}}d.enableGroupOverflow||h.querySelector("."+a._19)||h.classList.add("e-ribbon-emptyCollection")}else{this.element.classList.remove(a._4);for(var T=0;T<i.length;T++){var d=i[parseInt(T.toString(),10)],f=i[parseInt(T.toString(),10)].orientation,b=u.querySelector("#"+d.id+a._40),g=b.querySelector("#"+d.id+a.o),y=this.createElement("div",{className:a._12,id:d.id+a._38,innerHTML:d.header});b.appendChild(y),"Row"===f&&g.classList.replace(a._21,a._20),g.classList.add(a._25);for(var _=0;_<d.collections.length;_++){var E=void 0,x=void 0;if(d.enableGroupOverflow){var M=b.querySelector("#"+d.id+a.r);M&&(E=n.i(r.getInstance)(M,l.DropDownButton),x=E.target)}else(E=this.overflowDDB)&&(x=this.overflowDDB.target);var S=d.collections[parseInt(_.toString(),10)],I=b.querySelector("#"+S.id);"Column"===f&&I.classList.replace(a._21,a._20);for(var C=0;C<S.items.length;C++){for(var B=S.items,O=S.items[parseInt(C.toString(),10)],w=!0;w&&!(O.displayOptions&s.b.Classic);){C++;var k=void 0;if((O.displayOptions&s.b.Simplified||O.displayOptions&s.b.Overflow)&&null!==(k=O.displayOptions&s.b.Simplified?b.querySelector("#"+O.id+a._40):x.querySelector("#"+O.id+a._40))){var R=k.querySelector("#"+O.id);this.destroyFunction(O,R),k.remove()}C<B.length?O=B[parseInt(C.toString(),10)]:w=!1}if(!w)break;if(O.displayOptions&(s.b.Simplified|s.b.Overflow)){var k=b.querySelector("#"+O.id+a._40);k||(k=x.querySelector("#"+O.id+a._40),O.type!==s.f.DropDown&&O.type!==s.f.SplitButton&&O.type!==s.f.GroupButton||this.updatePopupItems(O,k,d.enableGroupOverflow,!1),this.removeOverflowEvent(O,k)),O.type===s.f.GroupButton&&this.ribbonGroupButtonModule.switchGroupButton(O,k),I.append(k)}else{var k=this.createItems([O],f,d.id,d.header,d.enableGroupOverflow,e)[0];I.append(k)}var L=b.querySelector("#"+O.id);O.type===s.f.GroupButton&&(L=b.querySelector("#"+O.id+a.A));var q=O.allowedSizes&s.c.Large?s.c.Large:O.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;O.setProperties({activeSize:q},!0),this.setItemSize(L,O)}d.enableGroupOverflow&&E&&0===x.childElementCount&&this.removeOverflowButton(E)}}}this.selectedTab===e&&this.checkOverflow(e,c)}}"Classic"===this.activeLayout&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.createLauncherIcon=function(t,e){var n=this,o=this.createElement("div",{className:a._16+" "+(this.launcherIconCss?this.launcherIconCss:a._17),id:t+a._39,attrs:{tabindex:"0",type:"button","aria-label":"Launcher Icon",role:"button"}});e.appendChild(o),e.classList.add(a._15),r.EventHandler.add(o,"click",this.launcherIconClicked.bind(this,t),this),r.EventHandler.add(o,"keydown",function(e){"Enter"===e.key&&n.launcherIconClicked(t)},this)},e.prototype.launcherIconClicked=function(t){var e={groupId:t};this.trigger("launcherIconClick",e)},e.prototype.createGroups=function(t,e){for(var o=[],i=0;i<t.length;i++){var s=t[parseInt(i.toString(),10)],c=s.orientation,u=this.createElement("div",{className:s.cssClass,id:s.id});u.classList.add(a._7),o.push(u);var l=this.createElement("div",{className:s.cssClass,id:s.id+a._40});l.classList.add(a._8),u.appendChild(l);var p=this.createElement("div",{className:"Simplified"===this.activeLayout?a._11:a._11+a.F+a._25,id:s.id+a.o});if(p.classList.add("Column"===c||"Simplified"===this.activeLayout?a._21:a._20),l.appendChild(p),"Classic"===this.activeLayout){var d=this.createElement("div",{className:a._12,id:s.id+a._38,innerHTML:s.header});l.appendChild(d)}s.showLauncherIcon&&this.createLauncherIcon(s.id,l);var f=this.createCollection(s.collections,s.orientation,s.id,s.header,s.enableGroupOverflow,e,l);n.i(r.append)(f,p),"Simplified"!==this.activeLayout||s.enableGroupOverflow||u.querySelector("."+a._19)||u.classList.add("e-ribbon-emptyCollection")}return o},e.prototype.validateItemSize=function(){for(var t=0;t<this.tabs.length;t++)for(var e=this.tabs[parseInt(t.toString(),10)].groups,n=0;n<e.length;n++)for(var r=e[parseInt(n.toString(),10)].collections,o=e[parseInt(n.toString(),10)].orientation,i=0;i<r.length;i++)for(var c=r[parseInt(i.toString(),10)].items,u=0;u<c.length;u++){var a=c[parseInt(u.toString(),10)];if(a.allowedSizes&&0!==a.allowedSizes||a.setProperties({allowedSizes:s.c.Small|s.c.Medium|s.c.Large},!0),"ColorPicker"===a.type&&a.allowedSizes!==s.c.Small)a.setProperties({allowedSizes:s.c.Small},!0);else if("ComboBox"!==a.type&&"CheckBox"!==a.type||a.allowedSizes===s.c.Medium){if(("Column"===o&&c.length>1||"Row"===o&&r.length>1)&&a.allowedSizes&s.c.Large){var l=a.allowedSizes&(s.c.Small|s.c.Medium);l=l||s.c.Medium,a.setProperties({allowedSizes:l},!0)}}else a.setProperties({allowedSizes:s.c.Medium},!0);var p=a.allowedSizes&s.c.Large?s.c.Large:a.allowedSizes&s.c.Medium?s.c.Medium:s.c.Small;a.setProperties({activeSize:p},!0)}},e.prototype.createCollection=function(t,e,o,i,s,c,u){for(var l=[],p=0;p<t.length;p++){var d=t[parseInt(p.toString(),10)],f=this.createElement("div",{className:d.cssClass,id:d.id});f.classList.add(a._18),f.classList.add("Column"!==e||"Simplified"===this.activeLayout?a._21:a._20),l.push(f);var h=this.createItems(d.items,e,o,i,s,c,u);if(n.i(r.append)(h,f),"Row"===e&&2===p)break}return l},e.prototype.createRibbonItem=function(t,e){switch(t.type){case"Button":this.ribbonButtonModule.createButton(t,e);break;case"DropDown":this.ribbonDropDownModule.createDropDown(t,e);break;case"SplitButton":this.ribbonSplitButtonModule.createSplitButton(t,e);break;case"CheckBox":this.ribbonCheckBoxModule.createCheckBox(t,e);break;case"ColorPicker":this.ribbonColorPickerModule.createColorPicker(t,e);break;case"ComboBox":this.ribbonComboBoxModule.createComboBox(t,e);break;case"Template":this.createTemplateContent(t,e);break;case"GroupButton":this.ribbonGroupButtonModule.createGroupButton(t,e)}},e.prototype.createItems=function(t,e,r,o,i,c,l){for(var p,d=[],f=0;f<t.length;f++){for(var h=t[parseInt(f.toString(),10)],b=!0;b&&("Simplified"===this.activeLayout&&!(h.displayOptions&(s.b.Simplified|s.b.Overflow))||"Classic"===this.activeLayout&&!(h.displayOptions&s.b.Classic));)f++,f<t.length?h=t[parseInt(f.toString(),10)]:b=!1;if(!b)break;var m=this.createElement("div",{className:h.cssClass,id:h.id+a._40});(p=m.classList).add.apply(p,[a._19].concat(h.disabled?[a.R]:[])),h.ribbonTooltipSettings&&n.i(u.a)(h.ribbonTooltipSettings)&&(m.classList.add(a.e),this.tooltipData.push({id:m.id,data:h.ribbonTooltipSettings}));var v=h.activeSize;if("Simplified"===this.activeLayout&&(v=h.allowedSizes===s.c.Large||h.allowedSizes&s.c.Medium||h.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,h.setProperties({activeSize:v},!0)),v&s.c.Large?m.classList.add(a._22,a._25):m.classList.add(v&s.c.Medium?a._23:a._24),this.createRibbonItem(h,m),"Simplified"!==this.activeLayout||h.displayOptions!==s.b.Overflow&&h.displayOptions!==(s.b.Classic|s.b.Overflow)?d.push(m):(this.createOverflowPopup(h,c,i,r,o,m,l),h.type!==s.f.DropDown&&h.type!==s.f.SplitButton&&h.type!==s.f.GroupButton||this.updatePopupItems(h,m,i,!0)),"Column"===e&&2===f)break}return d},e.prototype.createHelpPaneTemplate=function(){if(this.helpPaneTemplate){this.clearTemplate(["helpPaneTemplate"]),this.ribbonTempEle=this.createElement("div",{className:a._29,id:this.element.id+a._41});var t=n.i(u.b)(this.helpPaneTemplate);n.i(r.append)(t({},this,"helpPaneTemplate","helpPaneTemplate",this.isStringTemplate),this.ribbonTempEle);var e=this.tabObj.element;e.querySelector(".e-toolbar").after(this.ribbonTempEle),e.style.setProperty(a._42,this.ribbonTempEle.offsetWidth+"px"),this.renderReactTemplates()}},e.prototype.createTemplateContent=function(t,e){var n=this.createElement("div",{className:t.cssClass?a._28+a.F+t.cssClass:a._28,id:t.id});t.disabled&&(n.classList.add(a.R),n.setAttribute("disabled","")),e.appendChild(n),this.renderItemTemplate(t,n)},e.prototype.renderItemTemplate=function(t,e){var o="ribbon"+t.id+"itemTemplate";this.clearTemplate([o]);var i=n.i(u.b)(t.itemTemplate);n.i(r.append)(i({activeSize:s.c[t.activeSize]},this,o,t.id+"itemTemplate",this.isStringTemplate),e),this.renderReactTemplates()},e.prototype.checkID=function(t,e,n){for(var r="tab"===e?a._32:"group"===e?a._33:"collection"===e?a._34:a._35,o=0;o<t.length;o++){var i=t[parseInt(o.toString(),10)];switch(i.id||i.setProperties({id:n+r+this.idIndex++},!0),e){case"tab":i.setProperties({groups:this.checkID(i.groups,"group",i.id)},!0);break;case"group":i.setProperties({collections:this.checkID(i.collections,"collection",i.id)},!0);break;case"collection":i.setProperties({items:this.checkID(i.items,"item",i.id)},!0)}}return t},e.prototype.updateCommonProperty=function(t){this.tabObj.setProperties(t),this.ribbonFileMenuModule&&this.ribbonFileMenuModule.setCommonProperties(t),this.ribbonBackstageModule&&this.ribbonBackstageModule.setCommonProperties(t);for(var e=0;e<this.tabs.length;e++){var o=this.tabs[parseInt(e.toString(),10)],i=this.tabObj.items[parseInt(e.toString(),10)].content;if(i.querySelector("."+a._7))for(var c=0,p=o.groups;c<p.length;c++){var d=p[c],f=void 0,h=void 0;this.activeLayout===s.a.Classic?f=d.isCollapsed?i.querySelector("#"+d.id+a.M+a.N):null:(f=d.enableGroupOverflow?i.querySelector("#"+d.id+a.r):null,(h=f?n.i(r.getComponent)(f,l.DropDownButton):this.overflowDDB)&&(n.i(u.n)(h.target,t),h.setProperties(t)));for(var b=0,m=d.collections;b<m.length;b++)for(var v=m[b],y=0,g=v.items;y<g.length;y++){var _=g[y],S=null;if(this.activeLayout===s.a.Classic?_.displayOptions&s.b.Classic&&(S=f?this.ribbonDropDownModule.getDDBItemElement(f,_.id):_.type===s.f.GroupButton?i.querySelector("#"+_.id+a.A):i.querySelector("#"+_.id)):(S=_.displayOptions&s.b.Simplified?i.querySelector("#"+_.id):null)||(S=h.target.querySelector("#"+_.id),"DropDown"===_.type&&this.updatePopupItems(_,h.target,d.enableGroupOverflow,!0)),S){var I=this.getItemModuleName(_);if("template"!==I)if("group-btn"===I&&"Classic"===this.activeLayout)for(var C=0;C<_.groupButtonSettings.items.length;C++){var B=S.querySelector("#"+_.id+a.A+C);n.i(u.i)(B,"btn",t)}else if("group-btn"===I&&"Simplified"===this.activeLayout){n.i(u.i)(S,"dropdown-btn",t);for(var O=0;O<_.groupButtonSettings.items.length;O++){var B=document.querySelector("#"+_.id+a.A+O);n.i(u.i)(B,"btn",t)}}else n.i(u.i)(S,I,t);else n.i(r.isNullOrUndefined)(t.enableRtl)||S.classList.toggle(a.S,t.enableRtl)}}}}},e.prototype.removeLauncherIcon=function(t,e,o){var i=t+a._40,s=e?this.ribbonDropDownModule.getDDBItemElement(e,i):o.querySelector("#"+i);if(s){s.classList.remove(a._15);var c=s.querySelector("#"+t+a._39);n.i(r.remove)(c)}},e.prototype.destroyTabItems=function(t){for(var e=0;e<t.length;e++)for(var o=t[parseInt(e.toString(),10)],i=this.tabObj.items[parseInt(e.toString(),10)].content,c=0,u=o.groups;c<u.length;c++){var p=u[c],d=void 0,f=void 0;this.activeLayout===s.a.Classic?(d=p.isCollapsed?i.querySelector("#"+p.id+a.M+a.N):null,p.showLauncherIcon&&this.removeLauncherIcon(p.id,d,i)):(d=p.enableGroupOverflow?i.querySelector("#"+p.id+a.r):null,f=d?n.i(r.getComponent)(d,l.DropDownButton):this.overflowDDB);for(var h=0,b=p.collections;h<b.length;h++)for(var m=b[h],v=0,y=m.items;v<y.length;v++){var g=y[v],_=void 0;this.activeLayout===s.a.Classic?g.displayOptions&s.b.Classic&&(_=d?this.ribbonDropDownModule.getDDBItemElement(d,g.id):i.querySelector("#"+g.id),g.type===s.f.GroupButton&&(_=d?this.ribbonDropDownModule.getDDBItemElement(d,g.id+a.A):i.querySelector("#"+g.id+a.A))):(_=g.displayOptions&s.b.Simplified?i.querySelector("#"+g.id):null)||(_=f?f.target.querySelector("#"+g.id):null),_&&this.destroyFunction(g,_)}this.activeLayout===s.a.Classic&&d?this.ribbonDropDownModule.removeOverFlowDropDown(d):this.activeLayout===s.a.Simplified&&p.enableGroupOverflow&&d&&this.removeOverflowButton(f)}this.overflowDDB&&(this.removeOverflowButton(this.overflowDDB),this.overflowDDB=null)},e.prototype.destroyFunction=function(t,e){var r=this.getItemModuleName(t);if("colorpicker"===r)this.ribbonColorPickerModule.unwireColorPickerEvents(e);else if("group-btn"===r){if("Classic"===this.activeLayout)for(var o=0;o<t.groupButtonSettings.items.length;o++){var i=e.querySelector("#"+t.id+a.A+o);i&&n.i(u.h)(i,"btn")}else this.ribbonGroupButtonModule.destroyDropDown(t);for(var s=this,o=0;o<t.groupButtonSettings.items.length;o++)!function(e){if(t.groupButtonSettings.items[parseInt(e.toString(),10)].ribbonTooltipSettings){var r=t.id+a.A+e,o=n.i(u.d)(s.tooltipData,function(t){return t.id===r});-1!==o&&s.tooltipData.splice(o,1)}}(o)}else"template"!==r&&n.i(u.h)(e,r);if(t.ribbonTooltipSettings){var c=n.i(u.d)(this.tooltipData,function(e){return e.id===t.id+a._40});-1!==c&&this.tooltipData.splice(c,1)}"GroupButton"===t.type&&this.ribbonGroupButtonModule.destroyDropDown(t)},e.prototype.getItemModuleName=function(t){switch(t.type){case"Button":return"btn";case"DropDown":return"dropdown-btn";case"SplitButton":return"split-btn";case"CheckBox":return"checkbox";case"ColorPicker":return"colorpicker";case"ComboBox":return"combobox";case"GroupButton":return"group-btn";default:return"template"}},e.prototype.clearOverflowResize=function(){this.destroyScroll(),this.clearOverflowDropDown(this.selectedTab);for(var t=this.tabs[this.selectedTab],e=this.tabObj.element.querySelector("#"+this.tabs[this.selectedTab].id+a.o),n=e.closest("."+a._5),r=0;r<t.groups.length;r++)this.checkSmallToMedium(this.selectedTab,t,r,n,e,!0,!0),this.checkMediumToLarge(this.selectedTab,t,r,n,e,!0,!0)},e.prototype.refreshLayout=function(){this.resizeHandler()},e.prototype.selectTab=function(t){var e=n.i(u.d)(this.tabs,function(e){return e.id===t});this.setProperties({selectedTab:e})},e.prototype.showTab=function(t){this.showHideTab(t,!1)},e.prototype.hideTab=function(t){this.showHideTab(t,!0)},e.prototype.showHideTab=function(t,e){var r=n.i(u.d)(this.tabs,function(e){return e.id===t});-1!==r&&this.tabObj.hideTab(r,e)},e.prototype.enableTab=function(t){this.enableDisableTab(t,!0)},e.prototype.disableTab=function(t){this.enableDisableTab(t,!1)},e.prototype.enableDisableTab=function(t,e){var r=n.i(u.d)(this.tabs,function(e){return e.id===t});-1!==r&&this.tabObj.enableTab(r,e)},e.prototype.addTab=function(t,e,r){var o=e?n.i(u.d)(this.tabs,function(t){return t.id===e}):-1;o=-1===o?this.tabs.length:o+(r?1:0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(o,0,t),this.setProperties({tabs:this.tabsInternal},!0),this.checkID([this.tabs[parseInt(o.toString(),10)]],"tab",this.element.id),this.tabsInternal=this.tabs.slice(),this.validateItemSize();var i=this.createTabItems([t]);this.tabObj.addTab(i,o)},e.prototype.removeTab=function(t){var e=n.i(u.d)(this.tabs,function(e){return e.id===t});if(-1!==e){var r=this.tabObj.items[parseInt(e.toString(),10)].content,o=this.tabs[parseInt(e.toString(),10)].groups;if(o&&""!==r.innerHTML)for(var i=0,c=o;i<c.length;i++){for(var l=c[i],p=l.isCollapsed?r.querySelector("#"+l.id+a.M+a.N):null,d=0,f=l.collections;d<f.length;d++)for(var h=f[d],b=0,m=h.items;b<m.length;b++){var v=m[b],y=p?this.ribbonDropDownModule.getDDBItemElement(p,v.id):r.querySelector("#"+v.id);v.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(y=p?this.ribbonDropDownModule.getDDBItemElement(p,v.id+a.A):r.querySelector("#"+v.id+a.A)),y&&this.destroyFunction(v,y)}p&&this.ribbonDropDownModule.removeOverFlowDropDown(p)}e===this.selectedTab&&(this.isAddRemove=!0),this.tabsInternal=this.tabs.slice(),this.tabsInternal.splice(e,1),this.setProperties({tabs:this.tabsInternal},!0),this.tabObj.removeTab(e)}},e.prototype.addGroup=function(t,e,r,o){var i=n.i(u.d)(this.tabs,function(e){return e.id===t});if(-1!==i){this.selectedTab===i&&this.clearOverflowResize();var s=this.tabs[parseInt(i.toString(),10)],c=s.groups.slice(),a=r?n.i(u.d)(c,function(t){return t.id===r}):-1;a=-1===a?c.length:a+(o?1:0),c.splice(a,0,e),s.setProperties({groups:c},!0),this.checkID([s.groups[parseInt(a.toString(),10)]],"group",t),this.validateItemSize();var l=this.tabObj.items[parseInt(i.toString(),10)].content;if(""!==l.innerHTML){var p=this.createGroups([s.groups[parseInt(a.toString(),10)]],i)[0],d=r?l.querySelector("#"+r):null;d?d.insertAdjacentElement(o?"afterend":"beforebegin",p):l.append(p)}this.selectedTab===i&&this.refreshLayout()}},e.prototype.removeGroup=function(t){var e=n.i(u.g)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;e.group.showLauncherIcon&&this.removeLauncherIcon(e.group.id,null,o),this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);for(var p=0,d=e.group.collections;p<d.length;p++)for(var f=d[p],h=0,b=f.items;h<b.length;h++){var m=b[h];this.removeItemElement(o,m,c)}if(this.activeLayout===s.a.Simplified)if(e.group.enableGroupOverflow)0===c.target.childElementCount&&this.removeOverflowButton(c);else{var v=c.target.querySelector("#"+e.group.id+a._40);v&&1===v.childElementCount&&v.remove();var y=c.target.querySelector("#"+this.tabs[parseInt(e.tabIndex.toString(),10)].id+a.M);y&&0===y.childElementCount&&y.remove()}var g=o.querySelector("#"+t);g&&g.remove()}var _=this.tabs[e.tabIndex].groups.slice();_.splice(e.groupIndex,1),this.tabs[e.tabIndex].setProperties({groups:_},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.hideGroup=function(t){this.showHideGroup(t,!0)},e.prototype.showGroup=function(t){this.showHideGroup(t,!1)},e.prototype.showHideGroup=function(t,e){var o,i,s=n.i(u.g)(this.tabs,t);if(s){var c=this.tabObj.items[s.tabIndex].content,p=c.querySelector("#"+t);if(e?p.classList.add("e-hidden"):p.classList.remove("e-hidden"),this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(s.tabIndex.toString(),10)].id+a.M);if(s.group.enableGroupOverflow){var h=c.querySelector("#"+t+a.r);h&&(o=n.i(r.getInstance)(h,l.DropDownButton),i=o.target),i&&(e?i.classList.add("e-hidden"):i.classList.remove("e-hidden"))}else if(f){var b=f.querySelector("#"+t+a._40);b&&(e?b.classList.add("e-hidden"):b.classList.remove("e-hidden"))}}this.refreshLayout()}},e.prototype.disableGroup=function(t){this.enableDisableGroup(t,!0)},e.prototype.enableGroup=function(t){this.enableDisableGroup(t,!1)},e.prototype.enableDisableGroup=function(t,e){var o,i,s=n.i(u.g)(this.tabs,t);if(s){var c=this.tabObj.items[s.tabIndex].content,p=c.querySelector("#"+t);if(e?p.classList.add("e-disabled"):p.classList.remove("e-disabled"),this.overflowDDB){var d=this.overflowDDB.target,f=d.querySelector("#"+this.tabs[parseInt(s.tabIndex.toString(),10)].id+a.M);if(s.group.enableGroupOverflow){var h=c.querySelector("#"+t+a.r);h&&(o=n.i(r.getInstance)(h,l.DropDownButton),i=o.target),i&&(e?i.classList.add("e-disabled"):i.classList.remove("e-disabled"))}else if(f){var b=f.querySelector("#"+t+a._40);b&&(e?b.classList.add("e-disabled"):b.classList.remove("e-disabled"))}}}},e.prototype.addCollection=function(t,e,r,o){var i=n.i(u.g)(this.tabs,t);if(i&&("Row"!==i.group.orientation||3!==i.group.collections.length)){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var s=i.group.collections.slice(),c=r?n.i(u.d)(s,function(t){return t.id===r}):-1;c=-1===c?s.length:c+(o?1:0),s.splice(c,0,e),i.group.setProperties({collections:s},!0),this.checkID([i.group.collections[parseInt(c.toString(),10)]],"collection",t),this.validateItemSize();var l=this.tabObj.items[i.tabIndex].content;if(""!==l.innerHTML){var p=i.group.collections[parseInt(c.toString(),10)],d=this.createCollection([p],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex)[0];i.group.isCollapsed&&(l=this.ribbonDropDownModule.getOverflowDropDownPopup(i,l));var f=r?l.querySelector("#"+r):null;f?f.insertAdjacentElement(o?"afterend":"beforebegin",d):l.querySelector("#"+t+a.o).append(d)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeCollection=function(t){var e=n.i(u.f)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);for(var p=0,d=e.collection.items;p<d.length;p++){var f=d[p];this.removeItemElement(o,f,c)}var h=o.querySelector("#"+t);h&&h.remove()}var b=e.group,m=b.collections.slice();m.splice(e.collectionIndex,1),b.setProperties({collections:m},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.addItem=function(t,e,r,o){var i=n.i(u.f)(this.tabs,t);if(i&&("Column"!==i.group.orientation||3!==i.collection.items.length)){this.selectedTab===i.tabIndex&&this.clearOverflowResize();var s=i.collection.items.slice(),c=r?n.i(u.d)(s,function(t){return t.id===r}):-1;c=-1===c?s.length:c+(o?1:0),s.splice(c,0,e),i.collection.setProperties({items:s},!0),this.checkID([i.collection.items[parseInt(c.toString(),10)]],"item",t),this.validateItemSize();var l=this.tabObj.items[i.tabIndex].content,p=l.querySelector("#"+i.group.id+a._40);if(""!==l.innerHTML){var d=i.collection.items[parseInt(c.toString(),10)],f=this.createItems([d],i.group.orientation,i.group.id,i.group.header,i.group.enableGroupOverflow,i.tabIndex,p)[0];i.group.isCollapsed&&(l=this.ribbonDropDownModule.getOverflowDropDownPopup(i,l));var h=r?l.querySelector("#"+r):null;h?h.closest("."+a._19).insertAdjacentElement(o?"afterend":"beforebegin",f):f&&l.querySelector("#"+t).append(f)}this.selectedTab===i.tabIndex&&this.refreshLayout()}},e.prototype.removeItem=function(t){var e=n.i(u.e)(this.tabs,t);if(e){this.selectedTab===e.tabIndex&&this.clearOverflowResize();var o=this.tabObj.items[e.tabIndex].content;if(""!==o.innerHTML){var i=void 0,c=void 0;this.activeLayout===s.a.Simplified&&(i=e.group.enableGroupOverflow?o.querySelector("#"+e.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB);var p=e.item;this.removeItemElement(o,p,c)}var d=e.collection,f=d.items;f.splice(e.itemIndex,1),d.setProperties({items:f},!0),this.selectedTab===e.tabIndex&&this.refreshLayout()}},e.prototype.hideItem=function(t){this.showHideItem(t,!0)},e.prototype.showItem=function(t){this.showHideItem(t,!1)},e.prototype.showHideItem=function(t,e){var o=n.i(u.e)(this.tabs,t);if(o){var i;if(i="GroupButton"===o.item.type?n.i(u.k)(this,t+a.A,o):n.i(u.k)(this,t,o)){var s=n.i(r.closest)(i,".e-ribbon-item");e?s.classList.add("e-hidden"):s.classList.remove("e-hidden")}}},e.prototype.updateTab=function(t){var e=t.id,o=n.i(u.d)(this.tabs,function(t){return t.id===e});if(-1!==o){var i=this.tabObj.items[parseInt(o.toString(),10)].content,c=this.tabs[parseInt(o.toString(),10)].groups,l=this.tabObj.element;if(c&&""!==i.innerHTML&&(t.cssClass&&this.tabs[parseInt(o.toString(),10)].cssClass&&(i.classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass),l.querySelector(".e-active").classList.remove(this.tabs[parseInt(o.toString(),10)].cssClass)),t.groups)){for(var p=0,d=c;p<d.length;p++){for(var f=d[p],h=f.isCollapsed?i.querySelector("#"+f.id+a.M+a.N):null,b=0,m=f.collections;b<m.length;b++)for(var v=m[b],y=0,g=v.items;y<g.length;y++){var _=g[y],S=h?this.ribbonDropDownModule.getDDBItemElement(h,_.id):i.querySelector("#"+_.id);_.type===s.f.GroupButton&&"Classic"===this.activeLayout&&(S=h?this.ribbonDropDownModule.getDDBItemElement(h,_.id+a.A):i.querySelector("#"+_.id+a.A)),S&&this.destroyFunction(_,S)}h&&this.ribbonDropDownModule.removeOverFlowDropDown(h)}i.querySelectorAll(".e-ribbon-group").forEach(function(t){t.remove()})}o===this.selectedTab&&(this.isAddRemove=!0);var I=this.tabs[parseInt(o.toString(),10)];if(I.setProperties(t,!0),this.setProperties({groups:this.checkID(I.groups,"group",I.id)},!0),this.validateItemSize(),""===i.innerHTML){if(t.groups){var C=this.createGroups(I.groups,o);n.i(r.append)(C,i)}this.selectedTab===o&&this.refreshLayout(),t.cssClass&&(i.classList.add(I.cssClass),l.querySelector(".e-active").classList.add(I.cssClass)),t.header&&(l.querySelector("#"+e+a._38).innerText=I.header)}}},e.prototype.updateGroup=function(t){var e=t.id,o=n.i(u.g)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,c,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+e),f=d.querySelector("#"+t.id+a._40);if(""!==p.innerHTML){if(o.group.showLauncherIcon&&this.removeLauncherIcon(o.group.id,null,p),this.activeLayout===s.a.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB),t.cssClass&&o.group.cssClass&&(d.classList.remove(o.group.cssClass),f&&f.classList.remove(o.group.cssClass)),(t.collections||t.orientation)&&(o.group.collections||o.group.orientation)){for(var h=0,b=o.group.collections;h<b.length;h++)for(var m=b[h],v=0,y=m.items;v<y.length;v++){var g=y[v];this.removeItemElement(p,g,c)}if(d.querySelectorAll(".e-ribbon-collection").forEach(function(t){t.remove()}),t.orientation){var _=f.querySelector(".e-ribbon-group-content"),S=_.classList.value.match(/(e-ribbon-[column|row]+)/g);S&&n.i(r.removeClass)([_],S)}}if(this.activeLayout===s.a.Simplified)if(o.group.enableGroupOverflow)0===c.target.childElementCount&&this.removeOverflowButton(c);else{var I=c.target.querySelector("#"+o.group.id+a._40);I&&1===I.childElementCount&&I.remove();var C=c.target.querySelector("#"+this.tabs[parseInt(o.tabIndex.toString(),10)].id+a.M);C&&0===C.childElementCount&&C.remove()}}var B=o.group;if(B.setProperties(t,!0),B.setProperties({collections:this.checkID(B.collections,"collection",B.id)},!0),this.validateItemSize(),""!==p.innerHTML){if(t.showLauncherIcon&&this.createLauncherIcon(B.id,f),t.collections||t.orientation){var _=f.querySelector(".e-ribbon-group-content");_.classList.add("Column"===B.orientation||"Simplified"===this.activeLayout?a._21:a._20);var O=this.createCollection(B.collections,B.orientation,B.id,B.header,B.enableGroupOverflow,o.tabIndex,f);n.i(r.append)(O,_)}if(this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&(d.classList.add(B.cssClass),f&&f.classList.add(B.cssClass)),t.header)if(this.activeLayout!==s.a.Simplified||t.enableGroupOverflow)if(this.activeLayout!==s.a.Classic||B.isCollapsed){if(this.activeLayout===s.a.Classic&&B.isCollapsed){var w=d.querySelector("#"+B.id+a.M+a.N),P=n.i(r.getInstance)(w,l.DropDownButton),L=P.target.querySelector("#"+t.id+a._38);L&&(L.innerText=B.header)}}else d.querySelector(".e-ribbon-group-header").innerText=B.header;else{var L=c.target.querySelector("#"+t.id+a._38);L&&(L.innerText=B.header)}}}},e.prototype.updateCollection=function(t){var e=t.id,o=n.i(u.f)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i=this.tabObj.items[o.tabIndex].content,c=i.querySelector("#"+e);if(""!==i.innerHTML){var p=void 0,d=void 0;if(this.activeLayout===s.a.Simplified&&(p=o.group.enableGroupOverflow?i.querySelector("#"+o.group.id+a.r):null,d=p?n.i(r.getComponent)(p,l.DropDownButton):this.overflowDDB),t.cssClass&&o.collection.cssClass&&c.classList.remove(o.collection.cssClass),t.items&&o.collection.items)for(var f=0,h=o.collection.items;f<h.length;f++){var b=h[f];this.removeItemElement(i,b,d)}}var m=o.collection;if(m.setProperties(t,!0),m.setProperties({items:this.checkID(m.items,"item",m.id)},!0),this.validateItemSize(),""!==i.innerHTML&&t.items){var v=i.querySelector("#"+o.group.id+a._40),y=this.createItems(m.items,o.group.orientation,o.group.id,o.group.header,o.group.enableGroupOverflow,o.tabIndex,v);n.i(r.append)(y,c)}this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&c.classList.add(m.cssClass)}},e.prototype.updateItem=function(t){var e=t.id,o=n.i(u.e)(this.tabs,e);if(o){this.selectedTab===o.tabIndex&&this.clearOverflowResize();var i,c,p=this.tabObj.items[o.tabIndex].content,d=p.querySelector("#"+o.group.id),f=d.querySelector("#"+o.group.id+a._40),h=null,b=null;if(""!==p.innerHTML){if(this.activeLayout===s.a.Simplified&&(i=o.group.enableGroupOverflow?p.querySelector("#"+o.group.id+a.r):null,c=i?n.i(r.getComponent)(i,l.DropDownButton):this.overflowDDB),this.activeLayout===s.a.Simplified&&o.item.displayOptions===s.b.Overflow){if(h=c.target.querySelector("#"+e+a._40),b=c.target.querySelector("#"+e),t.displayOptions&&t.displayOptions!==s.b.Overflow){var m=f.querySelector("#"+o.collection.id);m&&m.appendChild(h)}}else h=f.querySelector("#"+e+a._40),b=p.querySelector("#"+e),"GroupButton"===o.item.type&&this.activeLayout===s.a.Classic&&(b=p.querySelector("#"+e+a.A)),this.activeLayout===s.a.Simplified&&t.displayOptions===s.b.Overflow&&(this.createOverflowPopup(o.item,o.tabIndex,o.group.enableGroupOverflow,o.group.id,o.group.header,h,f),o.item.type!==s.f.DropDown&&o.item.type!==s.f.SplitButton&&t.type!==s.f.GroupButton||this.updatePopupItems(o.item,h,o.group.enableGroupOverflow,!0));t.cssClass&&o.item.cssClass&&h.classList.remove(o.item.cssClass),this.destroyFunction(o.item,b),b.remove();var v=h.classList.value.match(/(e-ribbon-[large|medium|small]+-item)/g);v&&n.i(r.removeClass)([h],v)}var y=o.item;if(y.setProperties(t,!0),this.validateItemSize(),""!==p.innerHTML){h=this.activeLayout!==s.a.Simplified||y.displayOptions!==s.b.Overflow?f.querySelector("#"+e+a._40):c.target.querySelector("#"+e+a._40),y.ribbonTooltipSettings&&n.i(u.a)(y.ribbonTooltipSettings)&&(h.classList.add(a.e),this.tooltipData.push({id:h.id,data:y.ribbonTooltipSettings}));var g=y.activeSize;"Simplified"===this.activeLayout&&(g=y.allowedSizes===s.c.Large||y.allowedSizes&s.c.Medium||y.displayOptions===s.b.Overflow?s.c.Medium:s.c.Small,y.setProperties({activeSize:g},!0)),g&s.c.Large?h.classList.add(a._22,a._25):h.classList.add(g&s.c.Medium?a._23:a._24),this.createRibbonItem(y,h),"Simplified"===this.activeLayout&&o.group.enableGroupOverflow&&0===c.target.childElementCount&&this.removeOverflowButton(c),this.selectedTab===o.tabIndex&&this.refreshLayout(),t.cssClass&&h.classList.add(y.cssClass),this.enableDisableItem(y.id,y.disabled)}}},e.prototype.removeItemElement=function(t,e,n){var r=null;this.activeLayout===s.a.Classic?(r=e.displayOptions&s.b.Classic?t.querySelector("#"+e.id):null,"GroupButton"===e.type&&(r=e.displayOptions&s.b.Classic?t.querySelector("#"+e.id+a.A):null)):(r=e.displayOptions&s.b.Simplified?t.querySelector("#"+e.id):null)||(r=n.target.querySelector("#"+e.id)),r&&(this.destroyFunction(e,r),"GroupButton"===e.type&&this.activeLayout===s.a.Simplified?document.getElementById(e.id+a._40).remove():r.closest("#"+e.id+a._40).remove())},e.prototype.enableItem=function(t){this.enableDisableItem(t,!1)},e.prototype.disableItem=function(t){this.enableDisableItem(t,!0)},e.prototype.enableDisableItem=function(t,e){var o=n.i(u.e)(this.tabs,t);if(o){o.item.setProperties({disabled:e},!0);var i;if(i="GroupButton"===o.item.type?n.i(u.k)(this,t+a.A,o):n.i(u.k)(this,t,o)){n.i(r.closest)(i,".e-ribbon-item").classList.toggle(a.R,o.item.disabled);var s=this.getItemModuleName(o.item);if("template"!==s)if("group-btn"===s&&"Simplified"===this.activeLayout){n.i(u.j)(i,"dropdown-btn",e);for(var c=0;c<o.item.groupButtonSettings.items.length;c++){var l=document.querySelector("#"+t+a.A+c);n.i(u.j)(l,"btn",e)}}else if("group-btn"===s&&"Classic"===this.activeLayout)for(var c=0;c<o.item.groupButtonSettings.items.length;c++){var l=i.querySelector("#"+t+a.A+c);n.i(u.j)(l,"btn",e)}else n.i(u.j)(i,s,e);else i.classList.toggle(a.R,e),i.toggleAttribute("disabled",e)}}},e.prototype.unwireEvents=function(){r.EventHandler.remove(window,"resize",this.resizeHandler)},e.prototype.destroy=function(){this.keyboardModuleRibbon.destroy(),this.keyboardModuleRibbon=null,n.i(u.m)(this.element),this.destroyTabItems(this.tabs),this.hideLayoutSwitcher||this.removeExpandCollapse(),this.collapseButton=void 0,this.scrollModule&&this.scrollModule.destroy(),this.ribbonTempEle&&(n.i(r.remove)(this.ribbonTempEle),this.ribbonTempEle=null),t.prototype.destroy.call(this),this.tabObj.destroy(),this.tabObj=void 0,n.i(r.remove)(this.element.querySelector("#"+this.element.id+a._32)),this.element.style.removeProperty(a.c),this.element.style.removeProperty(a._42),this.element.style.removeProperty("width"),this.cssClass&&n.i(r.removeClass)([this.element],this.cssClass.split(a.F)),this.element.classList.remove(a.S,a._30,a._4,a._0,a._6,"e-rbn"),this.unwireEvents()},e.prototype.onPropertyChanged=function(t,e){for(var o,i,s=0,c=Object.keys(t);s<c.length;s++){switch(c[s]){case"activeLayout":this.switchLayout();break;case"cssClass":e.cssClass&&(o=this.element.classList).remove.apply(o,e.cssClass.split(a.F)),t.cssClass&&(i=this.element.classList).add.apply(i,t.cssClass.split(a.F));break;case"isMinimized":this.element.classList.toggle(a._6,this.isMinimized),this.tabObj.element.querySelector(".e-content").style.display=this.isMinimized?"none":"block",this.isMinimized||this.refreshLayout();break;case"locale":this.updateCommonProperty({locale:this.locale});break;case"enablePersistence":this.updateCommonProperty({enablePersistence:this.enablePersistence});break;case"enableRtl":this.element.classList.toggle(a.S,this.enableRtl),this.updateCommonProperty({enableRtl:t.enableRtl}),this.scrollModule&&this.scrollModule.setProperties({enableRtl:t.enableRtl});break;case"launcherIconCss":for(var u=0;u<this.tabs.length;u++){var p=this.tabObj.items[parseInt(u.toString(),10)].content,d=this.tabs[parseInt(u.toString(),10)];if(p.querySelector("."+a._7))for(var f=0,h=d.groups;f<h.length;f++){var b=h[f];if(b.showLauncherIcon){var m=a._16+" "+(this.launcherIconCss||a._17);if(b.isCollapsed){var v=p.querySelector("#"+b.id+a.M+a.N),y=n.i(r.getComponent)(v,l.DropDownButton),g=y.target.querySelector("#"+b.id+a._39);g.className=m}else{var v=p.querySelector("#"+b.id+a._39);v.className=m}}}}break;case"selectedTab":this.tabObj.setProperties({selectedItem:t.selectedTab});break;case"tabAnimation":this.tabObj.setProperties({animation:t.tabAnimation});break;case"tabs":this.reRenderTabs();break;case"width":this.element.style.width=n.i(r.formatUnit)(t.width),this.refreshLayout();break;case"fileMenu":this.ribbonFileMenuModule&&this.ribbonFileMenuModule.updateFileMenu(this.fileMenu);this.tabObj.tbObj.refreshOverflow();break;case"backStageMenu":this.ribbonBackstageModule&&this.ribbonBackstageModule.updateBackStageMenu(this.backStageMenu);this.tabObj.tbObj.refreshOverflow();break;case"helpPaneTemplate":this.ribbonTempEle&&(n.i(r.remove)(this.ribbonTempEle),this.ribbonTempEle=null,this.tabObj.element.style.setProperty(a._42,"0px")),this.helpPaneTemplate&&this.createHelpPaneTemplate();this.tabObj.tbObj.refreshOverflow();break;case"hideLayoutSwitcher":this.hideLayoutSwitcher?this.removeExpandCollapse():this.addExpandCollapse()}}};var h;return f([n.i(r.Property)("Classic")],e.prototype,"activeLayout",void 0),f([n.i(r.Property)("")],e.prototype,"cssClass",void 0),f([n.i(r.Complex)({},i.k)],e.prototype,"fileMenu",void 0),f([n.i(r.Complex)({},i.l)],e.prototype,"backStageMenu",void 0),f([n.i(r.Property)("")],e.prototype,"launcherIconCss",void 0),f([n.i(r.Property)(!1)],e.prototype,"isMinimized",void 0),f([n.i(r.Property)("en-us")],e.prototype,"locale",void 0),f([n.i(r.Property)(0)],e.prototype,"selectedTab",void 0),f([n.i(r.Complex)({},o.TabAnimationSettings)],e.prototype,"tabAnimation",void 0),f([n.i(r.Collection)([],i.a)],e.prototype,"tabs",void 0),f([n.i(r.Property)("100%")],e.prototype,"width",void 0),f([n.i(r.Property)("")],e.prototype,"helpPaneTemplate",void 0),f([n.i(r.Property)(!1)],e.prototype,"hideLayoutSwitcher",void 0),f([n.i(r.Event)()],e.prototype,"tabSelecting",void 0),f([n.i(r.Event)()],e.prototype,"tabSelected",void 0),f([n.i(r.Event)()],e.prototype,"ribbonExpanding",void 0),f([n.i(r.Event)()],e.prototype,"ribbonCollapsing",void 0),f([n.i(r.Event)()],e.prototype,"launcherIconClick",void 0),f([n.i(r.Event)()],e.prototype,"created",void 0),e=h=f([r.NotifyPropertyChanges],e)}(r.Component)},function(t,e,n){"use strict";var r=n(2);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d}),n.d(e,"e",function(){return r.e}),n.d(e,"f",function(){return r.f}),n.d(e,"g",function(){return r.g}),n.d(e,"h",function(){return r.h}),n.d(e,"i",function(){return r.i}),n.d(e,"j",function(){return r.j}),n.d(e,"k",function(){return r.k}),n.d(e,"l",function(){return r.l}),n.d(e,"m",function(){return r.m}),n.d(e,"n",function(){return r.n}),n.d(e,"o",function(){return r.o}),n.d(e,"p",function(){return r.p}),n.d(e,"q",function(){return r.q}),n.d(e,"r",function(){return r.r}),n.d(e,"s",function(){return r.s}),n.d(e,"t",function(){return r.t}),n.d(e,"u",function(){return r.u}),n.d(e,"v",function(){return r.v}),n.d(e,"w",function(){return r.w}),n.d(e,"x",function(){return r.x}),n.d(e,"y",function(){return r.y}),n.d(e,"z",function(){return r.z}),n.d(e,"A",function(){return r.A}),n.d(e,"B",function(){return r.B}),n.d(e,"C",function(){return r.C}),n.d(e,"D",function(){return r.D}),n.d(e,"E",function(){return r.E}),n.d(e,"F",function(){return r.F}),n.d(e,"G",function(){return r.G}),n.d(e,"H",function(){return r.H}),n.d(e,"I",function(){return r.I}),n.d(e,"J",function(){return r.J}),n.d(e,"K",function(){return r.K}),n.d(e,"L",function(){return r.L}),n.d(e,"M",function(){return r.M}),n.d(e,"N",function(){return r.N}),n.d(e,"O",function(){return r.O}),n.d(e,"P",function(){return r.P}),n.d(e,"Q",function(){return r.Q}),n.d(e,"R",function(){return r.R}),n.d(e,"S",function(){return r.S}),n.d(e,"T",function(){return r.T}),n.d(e,"U",function(){return r.U}),n.d(e,"V",function(){return r.V}),n.d(e,"W",function(){return r.W}),n.d(e,"X",function(){return r.X}),n.d(e,"Y",function(){return r.Y}),n.d(e,"Z",function(){return r.Z}),n.d(e,"_0",function(){return r._0}),n.d(e,"_1",function(){return r._1}),n.d(e,"_2",function(){return r._2}),n.d(e,"_3",function(){return r._3}),n.d(e,"_4",function(){return r._4}),n.d(e,"_5",function(){return r._5}),n.d(e,"_6",function(){return r._6}),n.d(e,"_7",function(){return r._7}),n.d(e,"_8",function(){return r._8}),n.d(e,"_9",function(){return r._9}),n.d(e,"_10",function(){return r._10}),n.d(e,"_11",function(){return r._11}),n.d(e,"_12",function(){return r._12}),n.d(e,"_13",function(){return r._13}),n.d(e,"_14",function(){return r._14}),n.d(e,"_15",function(){return r._15}),n.d(e,"_16",function(){return r._16}),n.d(e,"_17",function(){return r._17}),n.d(e,"_18",function(){return r._18}),n.d(e,"_19",function(){return r._19}),n.d(e,"_20",function(){return r._20}),n.d(e,"_21",function(){return r._21}),n.d(e,"_22",function(){return r._22}),n.d(e,"_23",function(){return r._23}),n.d(e,"_24",function(){return r._24}),n.d(e,"_25",function(){return r._25}),n.d(e,"_26",function(){return r._26}),n.d(e,"_27",function(){return r._27}),n.d(e,"_28",function(){return r._28}),n.d(e,"_29",function(){return r._29}),n.d(e,"_30",function(){return r._30}),n.d(e,"_31",function(){return r._31}),n.d(e,"_32",function(){return r._32}),n.d(e,"_33",function(){return r._33}),n.d(e,"_34",function(){return r._34}),n.d(e,"_35",function(){return r._35}),n.d(e,"_36",function(){return r._36}),n.d(e,"_37",function(){return r._37}),n.d(e,"_38",function(){return r._38}),n.d(e,"_39",function(){return r._39}),n.d(e,"_40",function(){return r._40}),n.d(e,"_41",function(){return r._41}),n.d(e,"_42",function(){return r._42}),n.d(e,"_43",function(){return r._43}),n.d(e,"_44",function(){return r._44}),n.d(e,"_45",function(){return r._45}),n.d(e,"_46",function(){return r._46}),n.d(e,"_47",function(){return r._47}),n.d(e,"_48",function(){return r._48}),n.d(e,"_49",function(){return r._49}),n.d(e,"_50",function(){return r._50}),n.d(e,"_51",function(){return r._51}),n.d(e,"_52",function(){return r._52}),n.d(e,"_53",function(){return r._53}),n.d(e,"_54",function(){return r._54}),n.d(e,"_55",function(){return r._55}),n.d(e,"_56",function(){return r._56}),n.d(e,"_57",function(){return r._57}),n.d(e,"_58",function(){return r._58}),n.d(e,"_59",function(){return r._59}),n.d(e,"_60",function(){return r._60}),n.d(e,"_61",function(){return r._61}),n.d(e,"_62",function(){return r._62}),n.d(e,"_63",function(){return r._63});var o=n(13);n.d(e,"_64",function(){return o.a}),n.d(e,"_65",function(){return o.b}),n.d(e,"_66",function(){return o.c}),n.d(e,"_67",function(){return o.d}),n.d(e,"_68",function(){return o.e}),n.d(e,"_69",function(){return o.f}),n.d(e,"_70",function(){return o.g}),n.d(e,"_71",function(){return o.h}),n.d(e,"_72",function(){return o.i}),n.d(e,"_73",function(){return o.j}),n.d(e,"_74",function(){return o.k}),n.d(e,"_75",function(){return o.l}),n.d(e,"_76",function(){return o.m}),n.d(e,"_77",function(){return o.n}),n.d(e,"_78",function(){return o.o}),n.d(e,"_79",function(){return o.p}),n.d(e,"_80",function(){return o.q});var i=n(12);n.d(e,"_81",function(){return i.a}),n.d(e,"_82",function(){return i.b}),n.d(e,"_83",function(){return i.c}),n.d(e,"_84",function(){return i.d}),n.d(e,"_85",function(){return i.e}),n.d(e,"_86",function(){return i.f}),n.d(e,"_87",function(){return i.g});var s=n(42);n.d(e,"_88",function(){return s.a}),n.d(e,"_89",function(){return s.b})},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createButton=function(t,e){var n=this,r=this.parent.createElement("button",{id:t.id});e.appendChild(r);var c=t.buttonSettings;new o.Button({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===i.d.Large?"Top":"Left",iconCss:c.iconCss,disabled:t.disabled,cssClass:(s.G+s.F+s.H+s.F+(c.cssClass?c.cssClass:"")).trim(),content:t.activeSize===i.d.Small?"":c.content,isPrimary:c.isPrimary,isToggle:c.isToggle,created:c.created},r),r.onclick=function(t){c.clicked&&c.clicked.call(n,t)},r.setAttribute("aria-label",c.content)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.Button);a.setProperties({cssClass:a.cssClass+s.F+s.L}),u.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(c,e),i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.Button),a=u.cssClass.split(s.F);a=a.filter(function(t){return t!==s.L}),u.setProperties({cssClass:a.join(s.F)}),c.onclick=function(e){t.buttonSettings.clicked&&t.buttonSettings.clicked.call(i,e)}},t.prototype.click=function(t){var e=n.i(i._58)(this.parent,t);if(e){n.i(r.getComponent)(e,o.Button).click()}},t.prototype.updateButton=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.buttonSettings,t);var u=n.i(i._58)(this.parent,e,c);if(u){var a=n.i(r.getComponent)(u,o.Button);t.isToggle&&u.classList.add("e-active"),t.cssClass&&(t.cssClass=(s.G+s.F+s.H+s.F+t.cssClass).trim()),t.content&&(t.content=c.item.activeSize===i.d.Small?"":t.content,u.setAttribute("aria-label",t.content)),delete t.clicked,a.setProperties(t)}}},t.prototype.updateButtonSize=function(t,e){n.i(r.getComponent)(t,o.Button).setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left",content:e.activeSize===i.d.Small?"":e.buttonSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),n(7)),i=(n.n(o),n(2)),s=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonCheckBox"},t.prototype.destroy=function(){this.parent=null},t.prototype.createCheckBox=function(t,e){var n=this,r=this.parent.createElement("input",{id:t.id});e.appendChild(r);var s=t.checkBoxSettings;new o.CheckBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,checked:s.checked,cssClass:(i.p+i.s+(s.cssClass?s.cssClass:"")).trim(),label:s.label,labelPosition:s.labelPosition,disabled:t.disabled,created:s.created,change:function(t){s.change&&s.change.call(n,t)}},r)},t.prototype.addOverFlowEvents=function(t,e,s){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.CheckBox);a.cssClass=a.cssClass+i.s+i.q,a.dataBind(),a.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(c,e),s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.CheckBox),a=u.cssClass.split(i.s);a=a.filter(function(t){return t!==i.q}),u.cssClass=a.join(i.s),u.dataBind(),u.change=function(e){t.checkBoxSettings.change&&t.checkBoxSettings.change.call(s,e)}},t.prototype.click=function(t){var e=n.i(i._58)(this.parent,t);if(e){n.i(r.getComponent)(e,o.CheckBox).click()}},t.prototype.updateCheckBox=function(t,e){var s=n.i(i._52)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.checkBoxSettings,t);var c=n.i(i._58)(this.parent,e,s);if(c){t.cssClass&&(t.cssClass=(i.p+i.s+t.cssClass).trim()),delete t.change;n.i(r.getComponent)(c,o.CheckBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(52)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonColorPicker"},t.prototype.destroy=function(){this.parent=null},t.prototype.createColorPicker=function(t,e){var n=this,i=this.parent.createElement("input",{id:t.id});e.appendChild(i);var c=t.colorPickerSettings,u=new o.ColorPicker({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,columns:c.columns,cssClass:(s.H+s.F+(c.cssClass?c.cssClass:"")).trim(),disabled:t.disabled,enableOpacity:c.enableOpacity,mode:c.mode,modeSwitcher:c.modeSwitcher,noColor:c.noColor,presetColors:c.presetColors,showButtons:c.showButtons,value:c.value,beforeClose:function(){u.element.parentElement.classList.remove(s.J),c.beforeClose&&c.beforeClose.call(n)},beforeOpen:c.beforeOpen,beforeTileRender:c.beforeTileRender,created:c.created,change:c.change,open:function(){u.element.parentElement.classList.add(s.J),c.open&&c.open.call(n)},select:c.select},i),a=u.element.parentElement;r.EventHandler.add(a,"mouseenter",this.toggleWrapperHover.bind(this,a,!0),this),r.EventHandler.add(a,"mouseleave",this.toggleWrapperHover.bind(this,a,!1),this)},t.prototype.toggleWrapperHover=function(t,e){e?t.classList.add(s.K):t.classList.remove(s.K)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.ColorPicker);a.setProperties({cssClass:a.cssClass+s.F+s.L});var l,p=a.splitBtn;a.beforeClose=function(e){l=e.event?e.event.target:null,a.element.parentElement.classList.remove(s.J),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(c)},p.close=function(){l&&!l.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.ColorPicker),a=u.cssClass.split(s.F);a=a.filter(function(t){return t!==s.L}),u.setProperties({cssClass:a.join(s.F)}),u.splitBtn.close=null,u.beforeClose=function(){u.element.parentElement.classList.remove(s.J),t.colorPickerSettings.beforeClose&&t.colorPickerSettings.beforeClose.call(i)}},t.prototype.getColorPickerObj=function(t){var e=n.i(i._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.ColorPicker):null},t.prototype.getValue=function(t,e,n){var r=this.getColorPickerObj(t);return r?r.getValue(e,n):""},t.prototype.toggle=function(t){var e=this.getColorPickerObj(t);e&&e.toggle()},t.prototype.updateColorPicker=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.checkBoxSettings,t);var u=n.i(i._58)(this.parent,e,c);if(u){t.cssClass&&(t.cssClass=(s.H+s.F+t.cssClass).trim()),delete t.beforeClose,delete t.open;n.i(r.getComponent)(u,o.ColorPicker).setProperties(t)}}},t.prototype.unwireColorPickerEvents=function(t){var e=n.i(r.getComponent)(t,o.ColorPicker),i=e.element.parentElement;r.EventHandler.remove(i,"mouseenter",this.toggleWrapperHover),r.EventHandler.remove(i,"mouseleave",this.toggleWrapperHover)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(0),o=(n.n(r),n(27)),i=(n.n(o),n(2)),s=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonComboBox"},t.prototype.destroy=function(){this.parent=null},t.prototype.createComboBox=function(t,e){var n=this,r=this.parent.createElement("input",{id:t.id});e.appendChild(r);var s=t.comboBoxSettings;new o.ComboBox({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,allowCustom:!1,floatLabelType:"Never",ignoreAccent:!0,ignoreCase:!0,allowFiltering:s.allowFiltering,autofill:s.autofill,cssClass:(i.p+i.s+(s.cssClass?s.cssClass:"")).trim(),dataSource:s.dataSource,enabled:!t.disabled,fields:s.fields,filterType:s.filterType,footerTemplate:s.footerTemplate,groupTemplate:s.groupTemplate,headerTemplate:s.headerTemplate,index:s.index,itemTemplate:s.itemTemplate,noRecordsTemplate:s.noRecordsTemplate,placeholder:s.placeholder,popupHeight:s.popupHeight,popupWidth:s.popupWidth,showClearButton:s.showClearButton,sortOrder:s.sortOrder,text:s.text,value:s.value,width:s.width,beforeOpen:s.beforeOpen,open:s.open,close:function(t){s.close&&s.close.call(n,t)},filtering:s.filtering,change:s.change,select:s.select,created:s.created},r)},t.prototype.addOverFlowEvents=function(t,e,s){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.ComboBox);a.setProperties({cssClass:a.cssClass+i.s+i.q}),a.close=function(e){var n=e.event?e.event.target:null;t.comboBoxSettings.close&&t.comboBoxSettings.close.call(c,e),n&&!n.closest(".e-ribbon-group-overflow-ddb")&&s.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var s=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.ComboBox),a=u.cssClass.split(i.s);a=a.filter(function(t){return t!==i.q}),u.setProperties({cssClass:a.join(i.s)}),u.close=function(e){t.comboBoxSettings.close&&t.comboBoxSettings.close.call(s,e)}},t.prototype.getComboBoxObj=function(t){var e=n.i(i._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.ComboBox):null},t.prototype.filter=function(t,e,n,r){this.getComboBoxObj(t).filter(e,n,r)},t.prototype.hidePopup=function(t){var e=this.getComboBoxObj(t);e&&e.hidePopup()},t.prototype.showPopup=function(t){var e=this.getComboBoxObj(t);e&&e.showPopup()},t.prototype.updateComboBox=function(t,e){var s=n.i(i._52)(this.parent.tabs,e);if(s){n.i(r.merge)(s.item.comboBoxSettings,t);var c=n.i(i._58)(this.parent,e,s);if(c){t.cssClass&&(t.cssClass=(i.p+i.s+t.cssClass).trim()),delete t.close;n.i(r.getComponent)(c,o.ComboBox).setProperties(t)}}},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(10)),s=(n.n(i),n(2)),c=n(1),u=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonDropDown"},t.prototype.destroy=function(){this.parent=null},t.prototype.createDropDown=function(t,e){var n=this,r=this.parent.createElement("button",{id:t.id});e.appendChild(r);var i=t.dropDownSettings,u=(c.G+c.F+c.H+c.F+(i.cssClass?i.cssClass:"")).trim();new o.DropDownButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===s.d.Large?"Top":"Left",closeActionEvents:i.closeActionEvents,content:t.activeSize===s.d.Small?"":i.content,cssClass:u+(t.activeSize===s.d.Large?c.F+c.I:""),disabled:t.disabled,iconCss:i.iconCss,items:i.items,target:i.target,createPopupOnClick:i.createPopupOnClick,beforeClose:function(t){i.beforeClose&&i.beforeClose.call(n,t)},beforeItemRender:i.beforeItemRender,beforeOpen:i.beforeOpen,close:function(t){i.close&&i.close.call(n,t)},created:i.created,open:i.open,select:i.select}).appendTo(r)},t.prototype.addOverFlowEvents=function(t,e,i){var s=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.DropDownButton);a.cssClass=a.cssClass+c.F+c.L,a.dataBind();var l;a.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(s,e),l=e.event?e.event.target:null},a.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(s,e),l&&!l.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,s=e.querySelector("#"+t.id),u=n.i(r.getComponent)(s,o.DropDownButton),a=u.cssClass.split(c.F);a=a.filter(function(t){return t!==c.L}),u.cssClass=a.join(c.F),u.dataBind(),u.close=function(e){t.dropDownSettings.close&&t.dropDownSettings.close.call(i,e)},u.beforeClose=function(e){t.dropDownSettings.beforeClose&&t.dropDownSettings.beforeClose.call(i,e)}},t.prototype.createOverFlowDropDown=function(t,e,i,u,a,l){var p=this;this.enableRtl=l;var d=this.parent.createElement("button",{id:t+c.M+c.N});u.setAttribute("tabindex","0"),a.appendChild(d);var f=new o.DropDownButton({iconCss:i,target:u,locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,cssClass:c.I+c.F+c.O,iconPosition:"Top",content:e,beforeClose:function(t){t.cancel=!n.i(r.isNullOrUndefined)(t.event&&n.i(r.closest)(t.event.target,"."+c.L))}},d);return n.i(s._61)(u,this.parent),d.onclick=d.onkeydown=function(){p.itemIndex=0},u.onkeydown=function(t){p.keyActionHandler(t,u)},f},t.prototype.keyActionHandler=function(t,e){var n,r=e.querySelectorAll(".e-control"),o=e.querySelectorAll(".e-combobox");if(o)for(var i=0;i<o.length;i++)o[parseInt(i.toString(),10)].closest(".e-input-focus")&&(n=o[parseInt(i.toString(),10)]);if(n)for(var i=0;i<r.length;i++)r[parseInt(i.toString(),10)].classList.contains("e-combobox")&&r[parseInt(i.toString(),10)].closest(".e-input-focus")&&(this.itemIndex=i);(t.target.classList.contains("e-control")||t.target.classList.contains("e-ribbon-launcher-icon")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-first-item"))&&(("ArrowRight"===t.key||!t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,!this.enableRtl,r),("ArrowLeft"===t.key||t.shiftKey&&"Tab"===t.key)&&this.handleNavigation(t,this.enableRtl,r))},t.prototype.handleNavigation=function(t,e,n){if(n[0].classList.contains("e-ribbon-first-item")||n[0].classList.add("e-ribbon-first-item"),n[n.length-1].classList.contains("e-ribbon-last-item")||n[n.length-1].classList.add("e-ribbon-last-item"),e){if(0===this.itemIndex&&n[parseInt(this.itemIndex.toString(),10)].classList.contains("e-ribbon-first-item")&&this.updateItemIndex(t,n,!0),t.target.classList.contains("e-combobox")||t.target.classList.contains("e-ribbon-last-item")||t.target.classList.contains("e-ribbon-group-container")||!t.target.classList.contains("e-ribbon-first-item")&&0===this.itemIndex||!t.target.classList.contains("e-control")||(this.itemIndex++,this.updateItemIndex(t,n,!0)),t.target.classList.contains("e-ribbon-last-item")){var r=!1;r=this.focusLauncherIcon(t,n),r||(this.itemIndex=0,this.updateItemIndex(t,n,!0))}t.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=0,this.updateItemIndex(t,n,!0))}else{if(t.target.classList.contains("e-combobox")||0===this.itemIndex||(this.itemIndex--,this.updateItemIndex(t,n,!1)),t.target.classList.contains("e-ribbon-first-item")){var r=!1;r=this.focusLauncherIcon(t,n),r||(this.itemIndex=n.length-1,this.updateItemIndex(t,n,!1))}t.target.classList.contains("e-ribbon-launcher-icon")&&(this.itemIndex=n.length-1,this.updateItemIndex(t,n,!1))}t.target.classList.contains("e-combobox")&&"Tab"===t.key&&(e?this.itemIndex<n.length-1&&this.itemIndex++:this.itemIndex>0&&this.itemIndex--)},t.prototype.focusLauncherIcon=function(t,e){var n,r=e[parseInt(this.itemIndex.toString(),10)].closest(".e-ribbon-group-container");return r&&(n=r.querySelector(".e-ribbon-launcher-icon")),!!n&&("Tab"===t.key&&t.preventDefault(),r.querySelector(".e-ribbon-launcher-icon").focus(),!0)},t.prototype.updateItemIndex=function(t,e,n){for(var r=e[this.itemIndex].closest(".e-ribbon-item");r&&r.classList.contains("e-disabled");){if(n)if(this.itemIndex<e.length-1)this.itemIndex++;else{if(this.focusLauncherIcon(t,e))break;this.itemIndex=0}else if(this.itemIndex>0)this.itemIndex--;else{if(this.focusLauncherIcon(t,e))break;this.itemIndex=e.length-1}r=e[this.itemIndex].closest(".e-ribbon-item")}"Tab"===t.key&&t.preventDefault(),e[parseInt(this.itemIndex.toString(),10)].focus()},t.prototype.removeOverFlowDropDown=function(t){var e=n.i(r.getComponent)(t,o.DropDownButton);n.i(r.getComponent)(e.target,i.Tooltip).destroy(),t.parentElement.parentElement.insertBefore(e.target,t.parentElement),e.destroy(),n.i(r.remove)(t)},t.prototype.getDDBItemElement=function(t,e){return n.i(r.getComponent)(t,o.DropDownButton).dropDown.element.querySelector("#"+e)},t.prototype.getOverflowDropDownPopup=function(t,e){var i=e.querySelector("#"+this.parent.tabs[t.tabIndex].groups[t.groupIndex].id+c.M+c.N);return n.i(r.getComponent)(i,o.DropDownButton).dropDown.element},t.prototype.getDropDownObj=function(t){var e=n.i(s._58)(this.parent,t);return e?n.i(r.getComponent)(e,o.DropDownButton):null},t.prototype.addItems=function(t,e,n){this.getDropDownObj(t).addItems(e,n)},t.prototype.removeItems=function(t,e,n){this.getDropDownObj(t).removeItems(e,n)},t.prototype.toggle=function(t){this.getDropDownObj(t).toggle()},t.prototype.updateDropDown=function(t,e){var i=n.i(s._52)(this.parent.tabs,e);if(i){n.i(r.merge)(i.item.dropDownSettings,t);var u=n.i(s._58)(this.parent,e,i);if(u){var a=n.i(r.getComponent)(u,o.DropDownButton);t.cssClass&&(t.cssClass=(c.H+c.F+c.G+c.F+t.cssClass).trim(),t.cssClass=i.item.activeSize===s.d.Large?(c.I+c.F+t.cssClass).trim():t.cssClass,a.cssClass=t.cssClass),delete t.close,delete t.beforeClose,t.content&&(t.content=i.item.activeSize===s.d.Small?"":t.content),a.setProperties(t)}}},t.prototype.updateDropDownSize=function(t,e){var i=n.i(r.getComponent)(t,o.DropDownButton),u=i.cssClass.split(c.F);e.activeSize===s.d.Large?u.push(c.I):u=u.filter(function(t){return t!==c.I}),i.cssClass=u.join(c.F),i.setProperties({iconPosition:e.activeSize===s.d.Large?"Top":"Left"}),i.setProperties({content:e.activeSize===s.d.Small?"":e.dropDownSettings.content})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),o=(n.n(r),n(1)),i=n(7),s=(n.n(i),n(5)),c=n(3),u=(n.n(c),n(8)),a=n(10),l=(n.n(a),function(){function t(t){this.parent=t,this.isSelected=!1}return t.prototype.getModuleName=function(){return"ribbonGroupButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createGroupButton=function(t,e){var a=this,l=t.groupButtonSettings;this.count=0;var p=this.parent.createElement("div",{id:t.id+o.A,className:"e-btn-group"});e.appendChild(p);for(var d=0;d<l.items.length;d++)if(l.items[parseInt(d.toString(),10)].iconCss){var f=this.parent.createElement("button",{id:t.id+o.A+d,className:o.B});p.appendChild(f),new i.Button({iconCss:l.items[parseInt(d.toString(),10)].iconCss,disabled:t.disabled,enableRtl:this.parent.enableRtl,content:t.activeSize===s.c.Small?"":l.items[parseInt(d.toString(),10)].content,iconPosition:t.activeSize===s.c.Large?"Top":"Left"},f);var h=e.querySelector("#"+t.id+o.A+d);l.selection===s.d.Single?p.classList.add(o.C):p.classList.add(o.D),l.items[parseInt(d.toString(),10)].selected&&(l.selection===s.d.Multiple?h.classList.add("e-active"):this.count<1&&(h.classList.add("e-active"),this.count++)),l.items[parseInt(d.toString(),10)].ribbonTooltipSettings&&n.i(u.a)(l.items[parseInt(d.toString(),10)].ribbonTooltipSettings)&&(f.classList.add(o.e),this.parent.tooltipData.push({id:f.id,data:l.items[parseInt(d.toString(),10)].ribbonTooltipSettings})),r.EventHandler.add(h,"click",this.groupButtonClicked.bind(this,d,t,l),this)}if("Simplified"===this.parent.activeLayout){var b=void 0,m=0,v=0,h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var d=0;d<l.items.length;d++)t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&!this.isSelected&&l.selection===s.d.Single?(b=t.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss,this.isSelected=!0):t.groupButtonSettings.items[parseInt(d.toString(),10)].selected&&l.selection===s.d.Multiple&&(m++,b=1===m?t.groupButtonSettings.items[parseInt(d.toString(),10)].iconCss:null);for(;v<t.groupButtonSettings.items.length&&!this.isSelected&&!b;)t.groupButtonSettings.items[parseInt(v.toString(),10)].iconCss&&(b=t.groupButtonSettings.items[parseInt(v.toString(),10)].iconCss,this.isSelected=!0),v++;new c.DropDownButton({iconCss:b,target:p,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h),h.onclick=h.onkeydown=function(){e.querySelector("#"+t.id).classList.contains("e-active")&&(document.querySelector("#"+t.id+o.A+0).focus(),a.grpBtnIndex=0)},p.onkeydown=function(e){"Simplified"===a.parent.activeLayout&&a.handleGroupButtonNavigation(e,t)},n.i(u.c)(p,this.parent),this.isSelected=!1}},t.prototype.groupButtonClicked=function(t,e,i){for(var u,a,l=[],p=[],d=[],f=0;f<i.items.length;f++)document.querySelector("#"+e.id+o.A+f)&&document.querySelector("#"+e.id+o.A+f).classList.contains("e-active")&&l.push(i.items[parseInt(f.toString(),10)]);document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")||p.push(i.items[parseInt(t.toString(),10)]);var h={cancel:!1,previousItems:l,selectingItems:p};if(i.items[parseInt(t.toString(),10)].beforeClick&&i.items[parseInt(t.toString(),10)].beforeClick.call(this,h),!h.cancel){if(i.selection===s.d.Single){document.querySelector("#"+e.id+o.A).classList.contains(o.D)&&(document.querySelector("#"+e.id+o.A).classList.remove(o.D),document.querySelector("#"+e.id+o.A).classList.add(o.C));for(var f=0;f<i.items.length;f++)document.querySelector("#"+e.id+o.A+f)&&document.querySelector("#"+e.id+o.A+f).classList.contains("e-active")&&document.querySelector("#"+e.id+o.A+f).classList.remove("e-active");document.querySelector("#"+e.id+o.A+t).classList.toggle("e-active"),document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&(this.grpBtnIndex=t,u=document.querySelector("#"+e.id),a=n.i(r.getComponent)(u,c.DropDownButton),a.setProperties({iconCss:i.items[parseInt(t.toString(),10)].iconCss}))}else{document.querySelector("#"+e.id+o.A).classList.contains(o.C)&&(document.querySelector("#"+e.id+o.A).classList.remove(o.C),document.querySelector("#"+e.id+o.A).classList.add(o.D)),document.querySelector("#"+e.id+o.A+t).classList.toggle("e-active");for(var b=0,m=0;m<i.items.length;m++)document.querySelector("#"+e.id+o.A+m)&&document.querySelector("#"+e.id+o.A+m).classList.contains("e-active")&&"Simplified"===this.parent.activeLayout&&m!==t&&(this.isSelected=!0,b++);if("Simplified"===this.parent.activeLayout){var v=null,y=0;if(u=document.querySelector("#"+e.id),a=n.i(r.getComponent)(u,c.DropDownButton),this.isSelected){if(1===b&&!document.querySelector("#"+e.id+o.A+t).classList.contains("e-active"))for(var m=0;m<i.items.length;m++)document.querySelector("#"+e.id+o.A+m)&&document.querySelector("#"+e.id+o.A+m).classList.contains("e-active")&&(v=i.items[parseInt(m.toString(),10)].iconCss)}else document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&(v=i.items[parseInt(t.toString(),10)].iconCss);for(;y<i.items.length&&!v;)i.items[parseInt(y.toString(),10)].iconCss&&(v=i.items[parseInt(y.toString(),10)].iconCss),y++;a.setProperties({iconCss:v}),this.grpBtnIndex=t}this.isSelected=!1}document.querySelector("#"+e.id+o.A+t).classList.contains("e-active")&&d.push(i.items[parseInt(t.toString(),10)]);var g={previousItems:l,selectedItems:d};i.items[parseInt(t.toString(),10)].click&&i.items[parseInt(t.toString(),10)].click.call(this,g)}},t.prototype.switchGroupButton=function(t,e){var i=this,a=t.groupButtonSettings,l=null,p=0,d=0;if("Simplified"===this.parent.activeLayout){var f=e.querySelector("#"+t.id+o.A),h=this.parent.createElement("button",{id:t.id});e.appendChild(h);for(var b=0;b<a.items.length;b++)document.querySelector("#"+t.id+o.A+b)&&(document.querySelector("#"+t.id+o.A+b).classList.contains("e-active")&&a.selection===s.d.Single?l=a.items[parseInt(b.toString(),10)].iconCss:document.querySelector("#"+t.id+o.A+b).classList.contains("e-active")&&a.selection===s.d.Multiple&&(p++,1===p?l=a.items[parseInt(b.toString(),10)].iconCss:p>1&&(l=null)));for(;d<a.items.length&&!l;)a.items[parseInt(d.toString(),10)].iconCss&&(l=a.items[parseInt(d.toString(),10)].iconCss),d++;new c.DropDownButton({iconCss:l,target:f,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-dropdown-group-button",disabled:t.disabled},h),h.onclick=h.onkeydown=function(){e.querySelector("#"+t.id).classList.contains("e-active")&&(document.querySelector("#"+t.id+o.A+0).focus(),i.grpBtnIndex=0)},f.onkeydown=function(e){"Simplified"===i.parent.activeLayout&&i.handleGroupButtonNavigation(e,t)},n.i(u.c)(f,this.parent)}else{var m=e.querySelector("#"+t.id),v=n.i(r.getComponent)(m,c.DropDownButton);e.appendChild(v.target),m&&(v.destroy(),n.i(r.remove)(m))}},t.prototype.handleGroupButtonNavigation=function(t,e){var i=document.querySelector("#"+e.id),s=n.i(r.getComponent)(i,c.DropDownButton),u=s.target,a=!1;"Simplified"===this.parent.activeLayout&&u.closest(".e-ribbon-dropdown-group-button").classList.contains(o.E)&&(a=!0),"Tab"===t.key&&t.preventDefault();var l=e.groupButtonSettings;"ArrowRight"===t.key&&!a||"ArrowDown"===t.key&&a?!this.parent.enableRtl||"ArrowDown"===t.key&&a?(this.grpBtnIndex++,this.grpBtnIndex<l.items.length?document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus())):0===this.grpBtnIndex?(this.grpBtnIndex=l.items.length-1,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):("ArrowLeft"===t.key&&!a||"ArrowUp"===t.key&&a)&&(!this.parent.enableRtl||"ArrowUp"===t.key&&a?0===this.grpBtnIndex?(this.grpBtnIndex=l.items.length-1,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex--,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus()):(this.grpBtnIndex++,this.grpBtnIndex<l.items.length?document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus():(this.grpBtnIndex=0,document.querySelector("#"+e.id+o.A+this.grpBtnIndex).focus())))},t.prototype.addOverFlowEvents=function(t,e){var i=this,s=e.querySelector("#"+t.id),u=n.i(r.getComponent)(s,c.DropDownButton);u.setProperties({cssClass:u.cssClass+o.F+o.E});var a=u.target;a.onclick=function(){"Simplified"===i.parent.activeLayout&&a.closest(".e-ribbon-dropdown-group-button").classList.contains(o.E)&&(u.element.focus(),u.toggle())}},t.prototype.removeOverFlowEvents=function(t,e){var i=e.querySelector("#"+t.id);if(i){var s=n.i(r.getComponent)(i,c.DropDownButton),u=s.cssClass.split(o.F);u=u.filter(function(t){return t!==o.E}),s.setProperties({cssClass:u.join(o.F)})}},t.prototype.destroyDropDown=function(t){var e=document.querySelector("#"+t.id);if(e){var o=n.i(r.getComponent)(e,c.DropDownButton);n.i(r.getComponent)(o.target,a.Tooltip).destroy(),o.destroy(),n.i(r.remove)(e)}},t.prototype.updateGroupButtonSize=function(t,e){for(var c,u=e.groupButtonSettings,a=0;a<u.items.length;a++)if(c="Classic"===this.parent.activeLayout?t.querySelector("#"+e.id+o.A+a):document.querySelector("#"+e.id+o.A+a)){var l=n.i(r.getComponent)(c,i.Button);l.setProperties({iconPosition:e.activeSize===s.c.Large?"Top":"Left",content:e.activeSize===s.c.Small?"":u.items[parseInt(a.toString(),10)].content})}},t}())},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(2)),s=n(1),c=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonSplitButton"},t.prototype.destroy=function(){this.parent=null},t.prototype.createSplitButton=function(t,e){var n=this,c=this.parent.createElement("button",{id:t.id});e.appendChild(c);var u=t.splitButtonSettings,a=(s.G+s.F+s.H+s.F+(u.cssClass?u.cssClass:"")).trim(),l=new o.SplitButton({locale:this.parent.locale,enableRtl:this.parent.enableRtl,enablePersistence:this.parent.enablePersistence,iconPosition:t.activeSize===i.d.Large?"Top":"Left",closeActionEvents:u.closeActionEvents,cssClass:a+(t.activeSize===i.d.Large?s.F+s.I:""),disabled:t.disabled,iconCss:u.iconCss,items:u.items,target:u.target,beforeClose:function(t){u.beforeClose&&u.beforeClose.call(n,t)},beforeItemRender:u.beforeItemRender,beforeOpen:u.beforeOpen,close:function(){l.wrapper.classList.remove(s.J),u.close&&u.close.call(n)},created:u.created,open:function(){l.wrapper.classList.add(s.J),u.open&&u.open.call(n)},select:u.select,click:function(t){u.click&&u.click.call(n,t)}},c),p=c.parentElement.querySelector(".e-dropdown-btn");p.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),p.click())},this.setContent(t,l);var d=l.wrapper;r.EventHandler.add(d,"mouseenter",function(){d.classList.add(s.K)},this),r.EventHandler.add(d,"mouseleave",function(){d.classList.remove(s.K)},this)},t.prototype.addOverFlowEvents=function(t,e,i){var c=this,u=e.querySelector("#"+t.id);u.setAttribute("data-control",t.type.toString());var a=n.i(r.getComponent)(u,o.SplitButton);a.cssClass=a.cssClass+s.F+s.L,a.dataBind();var l=u.parentElement.querySelector(".e-dropdown-btn"),p=l.getAttribute("id"),d=document.querySelector("#"+p+"-popup");l.onkeydown=function(t){"Enter"===t.key&&(t.stopImmediatePropagation(),l.click())},d.onkeydown=function(t){"Enter"===t.key&&(t.preventDefault(),a.wrapper.classList.remove("e-ribbon-open"),d.querySelector(".e-focused").click())};var f;a.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(c,e),f=e.event?e.event.target:null},a.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(c,e),i.toggle()},a.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(c,e),a.wrapper.classList.remove(s.J),f&&!f.closest(".e-ribbon-group-overflow-ddb")&&i.toggle()}},t.prototype.removeOverFlowEvents=function(t,e){var i=this,c=e.querySelector("#"+t.id),u=n.i(r.getComponent)(c,o.SplitButton),a=u.cssClass.split(s.F);a=a.filter(function(t){return t!==s.L}),u.cssClass=a.join(s.F),u.dataBind(),u.beforeClose=function(e){t.splitButtonSettings.beforeClose&&t.splitButtonSettings.beforeClose.call(i,e)},u.click=function(e){t.splitButtonSettings.click&&t.splitButtonSettings.click.call(i,e)},u.close=function(e){t.splitButtonSettings.close&&t.splitButtonSettings.close.call(i,e),u.wrapper.classList.remove(s.J)}},t.prototype.setContent=function(t,e){e.primaryBtnObj.setProperties({content:t.activeSize===i.d.Medium?t.splitButtonSettings.content:""}),e.secondaryBtnObj.setProperties({content:t.activeSize===i.d.Large?t.splitButtonSettings.content:""})},t.prototype.getSplitButtonObj=function(t){var e=n.i(i._58)(this.parent,t);return n.i(r.getComponent)(e,o.SplitButton)},t.prototype.addItems=function(t,e,n){this.getSplitButtonObj(t).addItems(e,n)},t.prototype.removeItems=function(t,e,n){this.getSplitButtonObj(t).removeItems(e,n)},t.prototype.toggle=function(t){this.getSplitButtonObj(t).toggle()},t.prototype.updateSplitButton=function(t,e){var c=n.i(i._52)(this.parent.tabs,e);if(c){n.i(r.merge)(c.item.splitButtonSettings,t);var u=n.i(i._58)(this.parent,e,c);if(u){var a=n.i(r.getComponent)(u,o.SplitButton);t.cssClass&&(t.cssClass=(s.H+s.F+s.G+s.F+t.cssClass).trim(),t.cssClass=c.item.activeSize===i.d.Large?(s.I+s.F+t.cssClass).trim():t.cssClass,a.cssClass=t.cssClass),delete t.open,delete t.click,delete t.close,delete t.beforeClose,a.setProperties(t),t.content&&this.setContent(c.item,a)}}},t.prototype.updateSplitButtonSize=function(t,e){var c=n.i(r.getComponent)(t,o.SplitButton),u=c.cssClass.split(s.F);e.activeSize===i.d.Large?u.push(s.I):u=u.filter(function(t){return t!==s.I}),c.cssClass=u.join(s.F),c.setProperties({iconPosition:e.activeSize===i.d.Large?"Top":"Left"}),this.setContent(e,c)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),o=(n.n(r),n(14)),i=n(15),s=n(6),c=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},u([n.i(r.Property)("File")],e.prototype,"text",void 0),u([n.i(r.Property)(!1)],e.prototype,"visible",void 0),u([n.i(r.Property)("auto")],e.prototype,"height",void 0),u([n.i(r.Property)("auto")],e.prototype,"width",void 0),u([n.i(r.Property)(null)],e.prototype,"target",void 0),u([n.i(r.Complex)({},o.a)],e.prototype,"backButton",void 0),u([n.i(r.Collection)([],i.a)],e.prototype,"items",void 0),u([n.i(r.Property)("")],e.prototype,"template",void 0),u([n.i(r.Complex)({},s.a)],e.prototype,"ribbonTooltipSettings",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(6)),s=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},c([n.i(r.Property)("File")],e.prototype,"text",void 0),c([n.i(r.Property)(!1)],e.prototype,"visible",void 0),c([n.i(r.Collection)([],o.MenuItem)],e.prototype,"menuItems",void 0),c([n.i(r.Property)(!1)],e.prototype,"showItemOnClick",void 0),c([n.i(r.Complex)({},o.MenuAnimationSettings)],e.prototype,"animationSettings",void 0),c([n.i(r.Property)("")],e.prototype,"itemTemplate",void 0),c([n.i(r.Property)("")],e.prototype,"popupTemplate",void 0),c([n.i(r.Complex)({},i.a)],e.prototype,"ribbonTooltipSettings",void 0),c([n.i(r.Event)()],e.prototype,"beforeClose",void 0),c([n.i(r.Event)()],e.prototype,"beforeOpen",void 0),c([n.i(r.Event)()],e.prototype,"beforeItemRender",void 0),c([n.i(r.Event)()],e.prototype,"close",void 0),c([n.i(r.Event)()],e.prototype,"open",void 0),c([n.i(r.Event)()],e.prototype,"select",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(0),o=(n.n(r),n(24)),i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setProperties=function(e,n){t.prototype.setProperties.call(this,e,n)},s([n.i(r.Property)("")],e.prototype,"id",void 0),s([n.i(r.Property)("")],e.prototype,"cssClass",void 0),s([n.i(r.Collection)([],o.a)],e.prototype,"groups",void 0),s([n.i(r.Property)("")],e.prototype,"header",void 0),e}(r.ChildProperty)},function(t,e,n){"use strict";var r=n(44);n.d(e,"a",function(){return r.a});var o=n(43);n.d(e,"b",function(){return o.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(0),o=(n.n(r),n(9)),i=(n.n(o),n(2)),s=n(8),c=n(1),u=n(7),a=(n.n(u),n(10)),l=(n.n(a),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),p=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return l(e,t),e.prototype.render=function(){},e.prototype.preRender=function(){},e.prototype.getPersistData=function(){return""},e.prototype.onPropertyChanged=function(){},e.prototype.getModuleName=function(){return"ribbonBackstage"},e.prototype.destroy=function(){this.backstageButton&&this.destroyDDB(),this.parent=null},e.prototype.createBackStage=function(t){var e=this;if(t.visible){this.backstageButtonEle=this.parent.createElement("button",{id:this.parent.element.id+c.a});var n=this.parent.tabObj.element,o=n.querySelector(".e-toolbar");if(n.insertBefore(this.backstageButtonEle,o),this.backstageButton=new u.Button({content:t.text,enableRtl:this.parent.enableRtl,cssClass:c.b,created:function(){n.style.setProperty(c.c,e.backstageButtonEle.offsetWidth+"px")}},this.backstageButtonEle),this.createBackStagePopup(t),this.parent.backStageMenu.template)this.createBackStageTemplate(this.parent.backStageMenu.template);else{for(var i=0,s=0,a=0;a<t.items.length;a++){t.items[parseInt(a.toString(),10)].isFooter?i++:s++}s>0&&this.createBackstageMenu(t,!1),i>0&&this.createBackstageMenu(t,!0),this.menuCtrl&&this.checkMenuItems(this.menuCtrl.items),this.footerMenuCtrl&&this.checkMenuItems(this.footerMenuCtrl.items)}this.backstageButtonEle.onclick=function(n){n.stopPropagation(),e.showBackstage(),e.popupHTMLElement.classList.add(c.d);var r=e.menuWrapper.querySelector(".e-menu-item.e-selected");r&&r.classList.remove("e-selected");for(var o=0;o<t.items.length;o++){var i=t.items[parseInt(o.toString(),10)];if(!i.isFooter&&e.menuCtrl.items[0].text===i.text){var s=e.popupHTMLElement.querySelector("#"+e.menuCtrl.items[0].id);s&&(s.classList.add("e-selected"),s.focus()),e.createBackStageContent(e.menuCtrl.items[0].id,i.content);break}}},this.parent.tabObj.refreshActiveTabBorder(),this.addBackStageMenuTooltip(t),r.EventHandler.add(document,"click",this.onClickEvent,this)}},e.prototype.onClickEvent=function(t){var e=t.target;this.popupHTMLElement.contains(e)||this.hideBackstage()},e.prototype.addBackStageMenuTooltip=function(t){n.i(s.a)(t.ribbonTooltipSettings)&&(this.backstageButtonEle.classList.add(c.e),this.parent.tooltipData.push({id:this.backstageButtonEle.id,data:t.ribbonTooltipSettings}))},e.prototype.checkMenuItems=function(t){for(var e=0;e<t.length;e++){var n=t[parseInt(e.toString(),10)];if(!n.iconCss){this.popupHTMLElement.querySelector("#"+n.id).classList.add(c.f)}}},e.prototype.createBackStagePopup=function(t){var e=this;this.popupHTMLElement=this.parent.createElement("div",{id:this.parent.element.id+c.g,className:c.h});var n;t.target?(n=t.target instanceof HTMLElement?t.target:document.querySelector(t.target),n.appendChild(this.popupHTMLElement)):this.parent.element.appendChild(this.popupHTMLElement),this.popupEle=new a.Popup(this.popupHTMLElement,{height:t.height,width:t.width,relateTo:t.target||this.parent.element,enableRtl:this.parent.enableRtl}),this.parent.enableRtl&&this.updatePopupPositionOnRtl(this.parent.enableRtl),this.popupHTMLElement.onkeydown=function(t){"Escape"===t.code&&e.hideBackstage()},this.hideBackstage()},e.prototype.updatePopupPositionOnRtl=function(t){var e=this.popupHTMLElement.style;t?(e.right=e.left,e.left="unset"):(e.left=e.right,e.right="unset")},e.prototype.createBackstageMenu=function(t,e){var n=this;if(this.popupHTMLElement.querySelector("#"+this.parent.element.id+"_wrapper")||(this.menuWrapper=this.parent.createElement("div",{id:this.parent.element.id+"_wrapper",className:c.i}),this.popupHTMLElement.appendChild(this.menuWrapper)),t.backButton.visible&&!e){var r=this.parent.createElement("button",{id:this.parent.element.id+"_close",className:"e-ribbon-close-btn"});this.closeBtn=new u.Button({content:t.backButton.text,iconCss:t.backButton.iconCss?t.backButton.iconCss:c.j,enableRtl:this.parent.enableRtl},r),this.menuWrapper.append(r),r.onclick=function(){n.popupHTMLElement.classList.remove(c.d),n.hideBackstage(),n.isBackButtonClicked=!0}}this.popupHTMLElement.querySelector("#"+this.parent.element.id+"_itemswrapper")||(this.itemsWrapperEle=this.parent.createElement("div",{id:this.parent.element.id+"_itemswrapper",className:c.k}),this.menuWrapper.append(this.itemsWrapperEle));var i;e?(i=this.parent.createElement("ul",{id:this.parent.element.id+c.l}),this.itemsWrapperEle.appendChild(i)):(this.ulMenuElem=this.parent.createElement("ul",{id:this.parent.element.id+c.m}),this.itemsWrapperEle.appendChild(this.ulMenuElem)),e?this.footerMenuCtrl=new o.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:c.n,items:this.cloneFooterMenuItem(t.items),select:this.menuSelect.bind(this,t)},i):this.menuCtrl=new o.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:c.n,items:this.cloneMenuItem(t.items),select:this.menuSelect.bind(this,t)},this.ulMenuElem)},e.prototype.cloneMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];r.isFooter||e.push({id:r.id,iconCss:r.iconCss,separator:r.separator,text:r.text})}return e},e.prototype.cloneFooterMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];r.isFooter&&e.push({id:r.id,iconCss:r.iconCss,separator:r.separator,text:r.text})}return e},e.prototype.createBackStageContent=function(t,e){this.clearTemplate(["backstageContent"]),this.backstageContentEle?(this.backstageContentEle.innerHTML="",this.backstageContentEle.id=t+c.o):this.backstageContentEle=this.parent.createElement("div",{id:t+c.o,className:c.p});var o=n.i(s.b)(e);return n.i(r.append)(o({},this,"backstageContent","backstageContent",this.parent.isStringTemplate),this.backstageContentEle),e&&this.popupHTMLElement.append(this.backstageContentEle),this.renderReactTemplates(),o},e.prototype.createBackStageTemplate=function(t){this.clearTemplate(["backstageTemplate"]),this.backstageTempEle=this.parent.createElement("div",{id:this.parent.element.id+c.a+"_template",className:c.q});var e=n.i(s.b)(t);return n.i(r.append)(e({},this,"backstageTemplate","backstageTemplate",this.parent.isStringTemplate),this.backstageTempEle),this.popupHTMLElement.append(this.backstageTempEle),this.renderReactTemplates(),e},e.prototype.menuSelect=function(t,e){for(var n=0;n<t.items.length;n++){var r=t.items[parseInt(n.toString(),10)];if(r.text===e.item.text){this.contentItem=r;break}}this.createBackStageContent(e.item.id,this.contentItem.content);var o={cancel:!1,target:e.element,item:this.contentItem,isBackButton:this.isBackButtonClicked};this.contentItem.backStageItemClick&&this.contentItem.backStageItemClick.call(this,o)},e.prototype.setCommonProperties=function(t){this.backstageButton&&(this.backstageButton.setProperties(t),this.popupEle&&(this.popupEle.setProperties(t),this.popupHTMLElement&&this.updatePopupPositionOnRtl(t.enableRtl),this.menuCtrl&&(this.menuCtrl.setProperties(t),this.closeBtn&&this.closeBtn.setProperties(t))))},e.prototype.updateBackStageMenu=function(t){if(t.visible)if(this.backstageButton){if(t.text&&(this.backstageButton.setProperties({content:t.text}),this.parent.tabObj.element.style.setProperty(c.c,this.backstageButtonEle.offsetWidth+"px")),this.popupEle&&this.popupEle.setProperties({height:t.height,width:t.width,target:t.target||this.parent.element}),t.template)this.backstageTempEle&&(n.i(r.remove)(this.backstageTempEle),this.backstageTempEle=null),this.createBackStageTemplate(t.template);else if(this.menuCtrl&&this.menuCtrl.setProperties({items:this.cloneMenuItem(t.items)}),this.footerMenuCtrl)this.footerMenuCtrl.setProperties({items:this.cloneFooterMenuItem(t.items)});else{for(var e=0,o=0,i=0;i<t.items.length;i++){var s=t.items[parseInt(i.toString(),10)];s.isFooter?e++:o++}o>0&&this.createBackstageMenu(t,!1),e>0&&this.createBackstageMenu(t,!0)}this.removeBackstageMenuTooltip(),this.addBackStageMenuTooltip(t)}else this.createBackStage(t);else this.backstageButton&&this.destroyDDB();this.parent.tabObj.refreshActiveTabBorder()},e.prototype.destroyMenu=function(){this.menuCtrl&&(this.menuCtrl.destroy(),this.menuCtrl=null)},e.prototype.destroyDDB=function(){this.removeBackstageMenuTooltip(),this.parent.tabObj.element.style.removeProperty(c.c),this.destroyMenu(),this.backstageButton.destroy(),this.backstageButton=null,n.i(r.remove)(this.backstageButtonEle),this.backstageButtonEle=null,r.EventHandler.remove(document,"click",this.onClickEvent)},e.prototype.removeBackstageMenuTooltip=function(){var t=this,e=n.i(i._50)(this.parent.tooltipData,function(e){return e.id===t.backstageButtonEle.id});-1!==e&&(this.backstageButtonEle.classList.remove(c.e),this.parent.tooltipData.splice(e,1))},e.prototype.addBackstageItems=function(t,e,n,r){for(var o=0;o<t.length;o++){var i=t[parseInt(o.toString(),10)];i.isFooter?n?this.footerMenuCtrl.insertAfter(t,e,r):this.footerMenuCtrl.insertBefore(t,e,r):n?this.menuCtrl.insertAfter(t,e,r):this.menuCtrl.insertBefore(t,e,r)}for(var s=[].concat(this.menuCtrl.items,this.footerMenuCtrl.items),c=this.parent.backStageMenu,o=0;o<c.items.length;o++)for(var i=c.items[parseInt(o.toString(),10)],u=0;u<s.length;u++){var a=s[parseInt(u.toString(),10)];if(i.text===a.text){a.content=i.content;break}}this.parent.backStageMenu.setProperties({items:s},!0)},e.prototype.removeBackstageItems=function(t,e){this.menuCtrl.removeItems(t,e),this.footerMenuCtrl.removeItems(t,e);var n=[].concat(this.menuCtrl.items,this.footerMenuCtrl.items);this.parent.backStageMenu.setProperties({items:n},!0)},e.prototype.showBackstage=function(){this.popupEle.show()},e.prototype.hideBackstage=function(){this.popupEle.element.classList.contains(c.d)&&this.popupEle.element.classList.remove(c.d),this.popupEle.hide()},e}(r.Component)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(0),o=(n.n(r),n(3)),i=(n.n(o),n(9)),s=(n.n(i),n(2)),c=n(1),u=function(){function t(t){this.parent=t}return t.prototype.getModuleName=function(){return"ribbonFileMenu"},t.prototype.destroy=function(){this.fileMenuDDB&&this.destroyDDB(),this.parent=null},t.prototype.createFileMenu=function(t){var e=this;if(t.visible){this.ddbElement=this.parent.createElement("button",{id:this.parent.element.id+c.y});var n=this.parent.tabObj.element,r=n.querySelector(".e-toolbar");n.insertBefore(this.ddbElement,r),this.fileMenuDDB=new o.DropDownButton({content:t.text,enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-file-menu e-caret-hide",created:function(){n.style.setProperty(c.c,e.ddbElement.offsetWidth+"px")},beforeClose:this.ddbBeforeEvent.bind(this,!1),beforeOpen:this.ddbBeforeEvent.bind(this,!0),close:this.ddbAfterEvent.bind(this,!1),open:this.ddbAfterEvent.bind(this,!0)},this.ddbElement),this.parent.fileMenu.popupTemplate?this.fileMenuDDB.setProperties({target:this.parent.fileMenu.popupTemplate}):this.createRibbonMenu(t),this.parent.tabObj.refreshActiveTabBorder(),this.addFileMenuTooltip(t)}},t.prototype.addFileMenuTooltip=function(t){n.i(s._59)(t.ribbonTooltipSettings)&&(this.ddbElement.classList.add(c.e),this.parent.tooltipData.push({id:this.ddbElement.id,data:t.ribbonTooltipSettings}))},t.prototype.ddbBeforeEvent=function(t,e){!t&&e.event&&e.event.target.closest(".e-ribbon-menu")&&(e.cancel=!0);var n=t?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(n){var r={cancel:e.cancel,element:e.element,event:e.event};n.call(this,r),e.cancel=r.cancel}},t.prototype.ddbAfterEvent=function(t,e){(t?this.fileMenuDDB.target:this.fileMenuDDB.element).focus();var n=t?this.parent.fileMenu.open:this.parent.fileMenu.close;if(n){var r={element:e.element};n.call(this,r)}},t.prototype.cloneMenuItem=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[parseInt(n.toString(),10)];e.push({iconCss:r.iconCss,id:r.id,separator:r.separator,text:r.text,url:r.url,items:this.cloneMenuItem(r.items)})}return e},t.prototype.createRibbonMenu=function(t){var e=this,n=this.parent.createElement("ul",{id:this.parent.element.id+c.z});this.fileMenuDDB.setProperties({target:n}),this.menuctrl=new i.Menu({orientation:"Vertical",enableRtl:this.parent.enableRtl,cssClass:"e-ribbon-menu",animationSettings:t.animationSettings,items:this.cloneMenuItem(t.menuItems),showItemOnClick:t.showItemOnClick,template:t.itemTemplate,beforeClose:this.menuBeforeEvent.bind(this,!1),beforeOpen:this.menuBeforeEvent.bind(this,!0),beforeItemRender:this.beforeItemRender.bind(this),onClose:this.menuAfterEvent.bind(this,!1),onOpen:this.menuAfterEvent.bind(this,!0),select:this.menuSelect.bind(this)},n),r.EventHandler.add(n,"keydown",function(t){"Tab"===t.key&&e.fileMenuDDB.toggle()},this)},t.prototype.menuBeforeEvent=function(t,e){var n=t?this.parent.fileMenu.beforeOpen:this.parent.fileMenu.beforeClose;if(n){var r={cancel:e.cancel,element:e.element,event:e.event,items:e.items,parentItem:e.parentItem};n.call(this,r),e.cancel=r.cancel}},t.prototype.menuAfterEvent=function(t,e){var n=t?this.parent.fileMenu.open:this.parent.fileMenu.close;if(n){var r={element:e.element,items:e.items,parentItem:e.parentItem};n.call(this,r)}},t.prototype.beforeItemRender=function(t){var e=this.parent.fileMenu.beforeItemRender;if(e){var n={element:t.element,item:t.item};e.call(this,n)}},t.prototype.menuSelect=function(t){var e=this.parent.fileMenu.select;if(e){var n={element:t.element,item:t.item,event:t.event};e.call(this,n),t.element.classList.contains("e-menu-caret-icon")||this.fileMenuDDB.toggle()}},t.prototype.setCommonProperties=function(t){this.fileMenuDDB&&(this.fileMenuDDB.setProperties(t),this.menuctrl&&this.menuctrl.setProperties(t))},t.prototype.updateFileMenu=function(t){t.visible?this.fileMenuDDB?(t.text&&(this.fileMenuDDB.setProperties({content:t.text}),this.parent.tabObj.element.style.setProperty(c.c,this.ddbElement.offsetWidth+"px")),t.popupTemplate?(this.menuctrl&&this.destroyMenu(),this.fileMenuDDB.setProperties({target:t.popupTemplate})):this.menuctrl?this.menuctrl.setProperties({animationSettings:t.animationSettings,items:this.cloneMenuItem(t.menuItems),showItemOnClick:t.showItemOnClick,template:t.itemTemplate}):this.createRibbonMenu(t),this.removeFileMenuTooltip(),this.addFileMenuTooltip(t)):this.createFileMenu(t):this.fileMenuDDB&&this.destroyDDB(),this.parent.tabObj.refreshActiveTabBorder()},t.prototype.destroyMenu=function(){this.menuctrl&&(this.menuctrl.destroy(),this.menuctrl=null)},t.prototype.destroyDDB=function(){this.removeFileMenuTooltip(),this.parent.tabObj.element.style.removeProperty(c.c),this.destroyMenu(),this.fileMenuDDB.destroy(),this.fileMenuDDB=null,n.i(r.remove)(this.ddbElement),this.ddbElement=null},t.prototype.removeFileMenuTooltip=function(){var t=this,e=n.i(s._50)(this.parent.tooltipData,function(e){return e.id===t.ddbElement.id});-1!==e&&(this.ddbElement.classList.remove(c.e),this.parent.tooltipData.splice(e,1))},t.prototype.addItems=function(t,e,n,r){n?this.menuctrl.insertAfter(t,e,r):this.menuctrl.insertBefore(t,e,r),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.removeItems=function(t,e){this.menuctrl.removeItems(t,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.enableItems=function(t,e){this.menuctrl.enableItems(t,!0,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.disableItems=function(t,e){this.menuctrl.enableItems(t,!1,e),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t.prototype.setItem=function(t,e,n){this.menuctrl.setItem(t,e,n),this.menuctrl.refresh(),this.parent.fileMenu.setProperties({menuItems:this.menuctrl.items},!0)},t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(28);n.d(e,"RibbonTabDirective",function(){return r.a}),n.d(e,"RibbonTabsDirective",function(){return r.b}),n.d(e,"RibbonGroupDirective",function(){return r.c}),n.d(e,"RibbonGroupsDirective",function(){return r.d}),n.d(e,"RibbonCollectionDirective",function(){return r.e}),n.d(e,"RibbonCollectionsDirective",function(){return r.f}),n.d(e,"RibbonItemDirective",function(){return r.g}),n.d(e,"RibbonItemsDirective",function(){return r.h}),n.d(e,"RibbonComponent",function(){return r.i});var o=n(4);n.n(o);n.o(o,"Inject")&&n.d(e,"Inject",function(){return o.Inject});var i=n(11);n.d(e,"Ribbon",function(){return i.a}),n.d(e,"RibbonLayout",function(){return i.b}),n.d(e,"ItemOrientation",function(){return i.c}),n.d(e,"RibbonItemSize",function(){return i.d}),n.d(e,"DisplayMode",function(){return i.e}),n.d(e,"RibbonItemType",function(){return i.f}),n.d(e,"RibbonGroupButtonSelection",function(){return i.g}),n.d(e,"ITEM_VERTICAL_CENTER",function(){return i.h}),n.d(e,"EXPAND_COLLAPSE_ICON",function(){return i.i}),n.d(e,"BACKSTAGE_CLOSE_ICON",function(){return i.j}),n.d(e,"OVERFLOW_ICON",function(){return i.k}),n.d(e,"VERTICAL_DDB",function(){return i.l}),n.d(e,"DISABLED_CSS",function(){return i.m}),n.d(e,"RTL_CSS",function(){return i.n}),n.d(e,"RIBBON_HOVER",function(){return i.o}),n.d(e,"RIBBON_CONTROL",function(){return i.p}),n.d(e,"RIBBON_POPUP_CONTROL",function(){return i.q}),n.d(e,"RIBBON_POPUP_OPEN",function(){return i.r}),n.d(e,"SPACE",function(){return i.s}),n.d(e,"HORIZONTAL_SCROLLBAR",function(){return i.t}),n.d(e,"HIDE_CSS",function(){return i.u}),n.d(e,"RIBBON_TAB",function(){return i.v}),n.d(e,"RIBBON_TAB_ACTIVE",function(){return i.w}),n.d(e,"RIBBON_TAB_ITEM",function(){return i.x}),n.d(e,"RIBBON_COLLAPSE_BUTTON",function(){return i.y}),n.d(e,"RIBBON_EXPAND_BUTTON",function(){return i.z}),n.d(e,"RIBBON_COLLAPSIBLE",function(){return i.A}),n.d(e,"RIBBON_OVERALL_OF_BUTTON",function(){return i.B}),n.d(e,"RIBBON_GROUP_OF_BUTTON",function(){return i.C}),n.d(e,"RIBBON_OVERFLOW_TARGET",function(){return i.D}),n.d(e,"RIBBON_OVERFLOW",function(){return i.E}),n.d(e,"TAB_CONTENT",function(){return i.F}),n.d(e,"RIBBON_MINIMIZE",function(){return i.G}),n.d(e,"RIBBON_GROUP",function(){return i.H}),n.d(e,"RIBBON_SINGLE_BUTTON_SELECTION",function(){return i.I}),n.d(e,"RIBBON_MULTIPLE_BUTTON_SELECTION",function(){return i.J}),n.d(e,"RIBBON_GROUP_BUTTON",function(){return i.K}),n.d(e,"RIBBON_GROUP_BUTTON_OVERFLOW_POPUP",function(){return i.L}),n.d(e,"RIBBON_GROUP_CONTAINER",function(){return i.M}),n.d(e,"RIBBON_OF_TAB_CONTAINER",function(){return i.N}),n.d(e,"RIBBON_OF_GROUP_CONTAINER",function(){return i.O}),n.d(e,"RIBBON_GROUP_CONTENT",function(){return i.P}),n.d(e,"RIBBON_GROUP_HEADER",function(){return i.Q}),n.d(e,"RIBBON_OVERFLOW_HEADER",function(){return i.R}),n.d(e,"RIBBON_GROUP_OVERFLOW",function(){return i.S}),n.d(e,"RIBBON_GROUP_OVERFLOW_DDB",function(){return i.T}),n.d(e,"RIBBON_LAUNCHER",function(){return i.U}),n.d(e,"RIBBON_LAUNCHER_ICON_ELE",function(){return i.V}),n.d(e,"RIBBON_LAUNCHER_ICON",function(){return i.W}),n.d(e,"RIBBON_COLLECTION",function(){return i.X}),n.d(e,"RIBBON_ITEM",function(){return i.Y}),n.d(e,"RIBBON_ROW",function(){return i.Z}),n.d(e,"RIBBON_COLUMN",function(){return i._0}),n.d(e,"RIBBON_LARGE_ITEM",function(){return i._1}),n.d(e,"RIBBON_MEDIUM_ITEM",function(){return i._2}),n.d(e,"RIBBON_SMALL_ITEM",function(){return i._3}),n.d(e,"RIBBON_CONTENT_HEIGHT",function(){return i._4}),n.d(e,"DROPDOWNBUTTON",function(){return i._5}),n.d(e,"DROPDOWNBUTTON_HIDE",function(){return i._6}),n.d(e,"RIBBON_TEMPLATE",function(){return i._7}),n.d(e,"RIBBON_HELP_TEMPLATE",function(){return i._8}),n.d(e,"RIBBON_TOOLTIP",function(){return i._9}),n.d(e,"RIBBON_TOOLTIP_TARGET",function(){return i._10}),n.d(e,"RIBBON_TOOLTIP_TITLE",function(){return i._11}),n.d(e,"RIBBON_TOOLTIP_CONTENT",function(){return i._12}),n.d(e,"RIBBON_TOOLTIP_ICON",function(){return i._13}),n.d(e,"RIBBON_TOOLTIP_CONTAINER",function(){return i._14}),n.d(e,"RIBBON_TEXT_CONTAINER",function(){return i._15}),n.d(e,"RIBBON_SIMPLIFIED_MODE",function(){return i._16}),n.d(e,"RIBBON_BACKSTAGE_POPUP",function(){return i._17}),n.d(e,"RIBBON_BACKSTAGE_OPEN",function(){return i._18}),n.d(e,"RIBBON_BACKSTAGE_CONTENT",function(){return i._19}),n.d(e,"RIBBON_SELECTED_CONTENT",function(){return i._20}),n.d(e,"RIBBON_BACKSTAGE",function(){return i._21}),n.d(e,"RIBBON_BACKSTAGE_MENU",function(){return i._22}),n.d(e,"RIBBON_BACKSTAGE_TEMPLATE",function(){return i._23}),n.d(e,"RIBBON_BACKSTAGE_MENU_WRAPPER",function(){return i._24}),n.d(e,"RIBBON_BACKSTAGE_ITEMS_WRAPPER",function(){return i._25}),n.d(e,"RIBBON_BACKSTAGE_TEXT_MENU",function(){return i._26}),n.d(e,"TAB_ID",function(){return i._27}),n.d(e,"GROUP_ID",function(){return i._28}),n.d(e,"COLLECTION_ID",function(){return i._29}),n.d(e,"ITEM_ID",function(){return i._30}),n.d(e,"COLLAPSE_BUTTON_ID",function(){return i._31}),n.d(e,"OVRLOF_BUTTON_ID",function(){return i._32}),n.d(e,"GROUPOF_BUTTON_ID",function(){return i._33}),n.d(e,"HEADER_ID",function(){return i._34}),n.d(e,"LAUNCHER_ID",function(){return i._35}),n.d(e,"CONTENT_ID",function(){return i._36}),n.d(e,"CONTAINER_ID",function(){return i._37}),n.d(e,"OVERFLOW_ID",function(){return i._38}),n.d(e,"DROPDOWN_ID",function(){return i._39}),n.d(e,"RIBBON_FILE_MENU_ID",function(){return i._40}),n.d(e,"RIBBON_BACKSTAGE_MENU_ID",function(){return i._41}),n.d(e,"RIBBON_BACKSTAGE_POPUP_ID",function(){return i._42}),n.d(e,"RIBBON_FILE_MENU_LIST",function(){return i._43}),n.d(e,"RIBBON_MENU_LIST",function(){return i._44}),n.d(e,"RIBBON_FOOTER_MENU_LIST",function(){return i._45}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_ID",function(){return i._46}),n.d(e,"RIBBON_GROUP_BUTTON_ID",function(){return i._47}),n.d(e,"RIBBON_FILE_MENU_WIDTH",function(){return i._48}),n.d(e,"RIBBON_HELP_PANE_TEMPLATE_WIDTH",function(){return i._49}),n.d(e,"getIndex",function(){return i._50}),n.d(e,"getTemplateFunction",function(){return i._51}),n.d(e,"getItem",function(){return i._52}),n.d(e,"getCollection",function(){return i._53}),n.d(e,"getGroup",function(){return i._54}),n.d(e,"destroyControl",function(){return i._55}),n.d(e,"updateCommonProperty",function(){return i._56}),n.d(e,"updateControlDisabled",function(){return i._57}),n.d(e,"getItemElement",function(){return i._58}),n.d(e,"isTooltipPresent",function(){return i._59}),n.d(e,"setToolTipContent",function(){return i._60}),n.d(e,"createTooltip",function(){return i._61}),n.d(e,"destroyTooltip",function(){return i._62}),n.d(e,"updateTooltipProp",function(){return i._63}),n.d(e,"RibbonTab",function(){return i._64}),n.d(e,"RibbonGroup",function(){return i._65}),n.d(e,"RibbonCollection",function(){return i._66}),n.d(e,"RibbonItem",function(){return i._67}),n.d(e,"RibbonButtonSettings",function(){return i._68}),n.d(e,"RibbonCheckBoxSettings",function(){return i._69}),n.d(e,"RibbonColorPickerSettings",function(){return i._70}),n.d(e,"RibbonComboBoxSettings",function(){return i._71}),n.d(e,"RibbonDropDownSettings",function(){return i._72}),n.d(e,"RibbonSplitButtonSettings",function(){return i._73}),n.d(e,"FileMenuSettings",function(){return i._74}),n.d(e,"BackStageMenu",function(){return i._75}),n.d(e,"BackstageBackButton",function(){return i._76}),n.d(e,"BackstageItem",function(){return i._77}),n.d(e,"RibbonTooltip",function(){return i._78}),n.d(e,"RibbonGroupButtonSettings",function(){return i._79}),n.d(e,"RibbonGroupButtonItem",function(){return i._80}),n.d(e,"RibbonButton",function(){return i._81}),n.d(e,"RibbonCheckBox",function(){return i._82}),n.d(e,"RibbonColorPicker",function(){return i._83}),n.d(e,"RibbonComboBox",function(){return i._84}),n.d(e,"RibbonDropDown",function(){return i._85}),n.d(e,"RibbonSplitButton",function(){return i._86}),n.d(e,"RibbonGroupButton",function(){return i._87}),n.d(e,"RibbonFileMenu",function(){return i._88}),n.d(e,"RibbonBackstage",function(){return i._89})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonCollection",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="collections",e.moduleName="ribbonCollections",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonGroup",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="groups",e.moduleName="ribbonGroups",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonItem",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="items",e.moduleName="ribbonItems",e}(r.ComplexBase)},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(51),o=(n.n(r),n(11)),i=n(4),s=(n.n(i),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),c=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.directivekeys={ribbonTabs:{ribbonTab:{ribbonGroups:{ribbonGroup:{ribbonCollections:{ribbonCollection:{ribbonItems:"ribbonItem"}}}}}}},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(o.a);n.i(i.applyMixins)(c,[i.ComponentBase,r.Component])},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s});var r=n(4),o=(n.n(r),this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.moduleName="ribbonTab",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.propertyName="tabs",e.moduleName="ribbonTabs",e}(r.ComplexBase)},function(t,e){t.exports=c},function(t,e){t.exports=u}])});
|