@progress/kendo-react-layout 7.0.2-develop.1 → 7.0.2-develop.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
- import * as PropTypes from 'prop-types';
6
+ import PropTypes from 'prop-types';
7
7
  import { ActionSheetItemProps } from './interfaces/ActionSheetItemProps';
8
8
  /**
9
9
  * The props of the ActionSheet component.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- (function(b,fe){typeof exports=="object"&&typeof module<"u"?fe(exports,require("react"),require("prop-types"),require("@progress/kendo-react-common"),require("@progress/kendo-react-popup"),require("@progress/kendo-svg-icons"),require("@progress/kendo-react-buttons"),require("@progress/kendo-react-animation"),require("@progress/kendo-react-intl"),require("@progress/kendo-react-progressbars"),require("@progress/kendo-licensing")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-common","@progress/kendo-react-popup","@progress/kendo-svg-icons","@progress/kendo-react-buttons","@progress/kendo-react-animation","@progress/kendo-react-intl","@progress/kendo-react-progressbars","@progress/kendo-licensing"],fe):(b=typeof globalThis<"u"?globalThis:b||self,fe(b.KendoReactLayout={},b.React,b.PropTypes,b.KendoReactCommon,b.KendoReactPopup,b.KendoSvgIcons,b.KendoReactButtons,b.KendoReactAnimation,b.KendoReactIntl,b.KendoReactProgressbars,b.KendoLicensing))})(this,function(b,fe,Fs,o,Vt,z,Ks,Pe,ge,Bs,ie){"use strict";"use client";function qt(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(i,s,n.get?n:{enumerable:!0,get:()=>e[s]})}}return i.default=e,Object.freeze(i)}const t=qt(fe),r=qt(Fs),q="",Me="0",te="_";function be(e,i){if(X(e))return i[Number(e)];{const s=i[Number(le(e))];return s.items?be(Rs(e),s.items):void 0}}function le(e){return ce(e)?e:e.split(te)[0]}function Rs(e){if(ce(e))return e;{const i=e.indexOf(te);return e.substring(i+1)}}function Gt(e){return Ae("0",e)}function Hs(e,i){return i.indexOf(e)===0?i.length===e.length||i.charAt(e.length)===te:!1}function Ae(e,i){return i?i+te+e:e}function oe(e){const i=e.lastIndexOf(te);return i<0?q:e.substring(0,i)}function ce(e){return e===q||e.indexOf(te)<0}function X(e){return e!==q&&e.indexOf(te)<0}function Ws(e){return $s(e)===1}function _s(e){return it(e)===Me}function it(e){const i=e.lastIndexOf(te);return i<0?e:e.substring(i+1)}function Xt(e,i,s){return X(i)?e?Number(i)<s-1?(Number(i)+1).toString():"0":Number(i)>0?(Number(i)-1).toString():(s-1).toString():i}function $s(e){return e.split(te).length-1}class nt extends t.Component{render(){return null}}nt.propTypes={text:r.string,url:r.string,icon:r.string,disabled:r.bool,cssClass:r.string,cssStyle:r.object,render:r.any,linkRender:r.any,contentRender:r.any,data:r.any};function Us(e,i){if(e&&e.length>0)return{items:at(e),inputItems:e};if(rt(i).length>0){const s=Zt(rt(i));return{items:at(s),inputItems:s}}else return{items:[],inputItems:[]}}function Yt(e,i){let s={};const{text:n,url:a,icon:l,svgIcon:c,disabled:d,cssClass:u,cssStyle:h,render:p,linkRender:m,contentRender:f,data:y}=e||i.props;return n!==void 0&&(s.text=n),a!==void 0&&(s.url=a),l!==void 0&&(s.icon=l),c!==void 0&&(s.svgIcon=c),d!==void 0&&(s.disabled=d),u!==void 0&&(s.cssClass=u),h!==void 0&&(s.cssStyle=h),p!==void 0&&(s.render=p),m!==void 0&&(s.linkRender=m),f!==void 0&&(s.contentRender=f),y!==void 0&&(s.data=y),s}function rt(e){return t.Children.toArray(e).filter(i=>i&&i.type===nt)}function Zt(e){const i=[];for(let s=0;s<e.length;s++){const n=e[s],a=Yt(void 0,n),l=Zt(rt(n.props.children));l.length>0&&(a.items=l),i.push(a)}return i}function at(e,i){const s=[];for(let n=0;n<e.length;n++){const a=e[n],l=Yt(a);l.id=Ae(n.toString(),i),l.isLastFromSiblings=n===e.length-1,l.items=js(a,l),s.push(l)}return s}function js(e,i){return e.contentRender?[{contentParentItemId:i.id,id:Ae(Me,i.id),isLastFromSiblings:!0,contentRender:e.contentRender,items:[]}]:e.items?at(e.items,i.id):[]}const Vs=/\S/;function qs(e,i,s,n,a,l){const c=P();switch(s){case o.Keys.left:return d();case o.Keys.right:return u();case o.Keys.up:return p();case o.Keys.down:return h();case o.Keys.enter:case o.Keys.space:return m();case o.Keys.home:return f();case o.Keys.end:return y();case o.Keys.esc:return v();default:return T()?E():i}function d(){return a?l?O():w():l?g():k()}function u(){return a?l?w():O():l?k():g()}function h(){return a?L():X(i)?I():L()}function p(){return a?C():X(i)?S():C()}function m(){return c.disabled?i:F()?Gt(i):le(i)}function f(){return G()[0].id}function y(){const x=G();return x[x.length-1].id}function v(){return X(i)?i:oe(i)}function E(){const x=n.toLowerCase(),A=G(),j=Number(it(i)),Z=A.slice(j+1).concat(A.slice(0,j+1)).find(re=>(re.text||"").toLowerCase().startsWith(x));return Z?Z.id:i}function k(){return X(i)?C():Ws(i)?I(C(le(i))):oe(i)}function w(){return X(i)?S():oe(i)}function g(){return X(i)?L():I(F()?i:L(le(i)))}function O(){return I(X(i)||F()?i:L(le(i)))}function I(x){return Q(!0,x)}function S(x){return Q(!1,x)}function T(){return n.length===1&&Vs.test(n)}function P(x,A){return x===void 0&&(x=i),A===void 0&&(A=e),be(x,A)}function F(x){return P(x).items.length>0}function C(x){return $(!1,x)}function L(x){return $(!0,x)}function H(x){const A=P(x).items;return A[A.length-1].id}function G(){return X(i)?e:P(oe(i),e).items}function Q(x,A){A===void 0&&(A=i);const j=P(A);return F(A)&&!j.disabled?x?Gt(A):H(A):A}function $(x,A){if(A===void 0&&(A=i),X(A))return Xt(x,A,e.length);{const j=oe(A),Y=it(A),Z=P(j).items.length;return Ae(Xt(x,Y,Z),j)}}}function Gs(e){return e.hoverOpenDelay!==void 0?e.hoverOpenDelay:e.openOnClick?0:100}function Xs(e){return e.hoverCloseDelay!==void 0?e.hoverCloseDelay:100}const Jt={vertical:"top",horizontal:"left"},Qt={vertical:"top",horizontal:"right"},es={vertical:"flip",horizontal:"fit"},ts={vertical:"fit",horizontal:"flip"},ss={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:Qt,collision:es},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:Qt,collision:ts}},is={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:Jt,collision:es},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:Jt,collision:ts}};function Ys(e,i,s){const n=ns(e,i,s);return s?n==="downward"?ss.downward:ss.leftward:n==="downward"?is.downward:is.rightward}function ns(e,i,s){return X(e)?i?s?"leftward":"rightward":"downward":s?"leftward":"rightward"}function rs(e){return e?"rtl":"ltr"}function lt(e,i){return`${e}_${i}`}class ot extends t.Component{render(){return this.props.url?t.createElement("a",{className:this.getMenuItemClassName(),role:"presentation",href:this.props.url,tabIndex:-1},this.props.children):t.createElement("span",{id:this.props.id,className:o.classNames(this.getMenuItemClassName(),this.props.className),style:this.props.style,role:"presentation"},this.props.children)}getMenuItemClassName(){return o.classNames("k-link","k-menu-link",{"k-active":this.props.opened})}}ot.propTypes={opened:r.bool,url:r.string};const as="caret-alt-down",ls="caret-alt-right",os="caret-alt-left";class ct extends t.Component{render(){return t.createElement(o.IconWrap,{"aria-hidden":!0,...this.getIcon()})}getIcon(){switch(ns(this.props.itemId,this.props.verticalMenu===!0,this.props.dir==="rtl")){case"downward":return{name:as,icon:z.caretAltDownIcon};case"rightward":return{name:ls,icon:z.caretAltRightIcon};case"leftward":return{name:os,icon:z.caretAltLeftIcon};default:return{}}}}ct.propTypes={itemId:r.string,dir:r.string,verticalMenu:r.bool};class dt extends t.Component{constructor(){super(...arguments),this.onMouseOver=i=>{this.props.onMouseOver(this.props.parentItemId),i.stopPropagation()},this.onMouseLeave=i=>{this.props.onMouseLeave(this.props.parentItemId),i.stopPropagation()}}render(){const i=this.props.parentItemId;return t.createElement("ul",{className:this.props.className,role:this.props.role?this.props.role:i!==void 0?"menu":"menubar",id:i!==void 0?lt(this.props.menuGuid,i):void 0,onMouseOver:i!==void 0?this.onMouseOver:void 0,onMouseLeave:i!==void 0?this.onMouseLeave:void 0,"aria-orientation":this.props["aria-orientation"]},this.renderChildItems())}renderChildItems(){return this.props.items.length>0?this.props.items.map((i,s)=>t.createElement(Zs,{item:i,isMenuVertical:this.props.isMenuVertical,isDirectionRightToLeft:this.props.isDirectionRightToLeft,focusedItemId:this.props.focusedItemId,lastItemIdToBeOpened:this.props.lastItemIdToBeOpened,tabbableItemId:this.props.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,menuGuid:this.props.menuGuid,onMouseOver:this.props.onMouseOver,onMouseLeave:this.props.onMouseLeave,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:this.props.onClick,onOriginalItemNeeded:this.props.onOriginalItemNeeded,key:s})):null}}class Zs extends t.Component{constructor(i){super(i),this.isFirstRender=!0,this.onMouseOver=s=>{this.props.onMouseOver(this.props.item.id),s.stopPropagation()},this.onMouseLeave=s=>{this.props.onMouseLeave(this.props.item.id),s.stopPropagation()},this.state={opened:!1}}componentDidMount(){const i=this.props.focusedItemId,s=this.props.item.id;i&&i===s&&this.itemElement.focus(),this.isFirstRender=!1}componentDidUpdate(i){const s=this.props.focusedItemId,n=this.props.item.id;if(s){const a=o.getActiveElement(document);i.focusedItemId!==s&&s===n&&!this.itemElement.contains(a)&&this.itemElement.focus()}}render(){const i=this.props.item,s=i.id,n=lt(this.props.menuGuid,s);return t.createElement(t.Fragment,null,t.createElement("li",{id:lt(this.props.menuGuid,s),className:this.getMenuItemClassName(i),style:i.cssStyle,tabIndex:s===this.props.tabbableItemId?0:-1,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,onMouseDown:a=>this.props.onMouseDown(a),onBlur:a=>this.props.onBlur(s,a),onFocus:()=>this.props.onFocus(s),onClick:a=>this.props.onClick(a,s),role:"menuitem","aria-disabled":i.disabled?!0:void 0,"aria-haspopup":i.items.length>0?!0:void 0,"aria-expanded":i.items.length>0?this.Opened:void 0,"aria-label":i.text,"aria-owns":this.Opened?n:void 0,ref:a=>this.itemElement=a,key:"0"},this.contentRender?this.renderContent():this.renderMenuItemLink()),this.renderPopupIfOpened())}renderContent(){const i=this.props.item.contentParentItemId;return t.createElement("div",{className:"k-content",role:"presentation"},t.createElement(this.contentRender,{item:this.props.onOriginalItemNeeded(i),itemId:i}))}renderMenuItemLink(){const i=this.props.item;if(this.linkRender)return t.createElement(this.linkRender,{item:this.props.onOriginalItemNeeded(i.id),itemId:i.id,opened:this.Opened,dir:rs(this.props.isDirectionRightToLeft)});{const s=this.itemRender?t.createElement(this.itemRender,{item:this.props.onOriginalItemNeeded(i.id),itemId:i.id,key:"1"}):t.createElement("span",{className:"k-menu-link-text"},i.text);return t.createElement(ot,{url:i.url,opened:this.Opened},this.renderMenuIconIfApplicable(),s,this.renderArrowIfApplicable())}}renderPopupIfOpened(){if(this.Opened){const i=this.props.item.id,{anchorAlign:s,popupAlign:n,collision:a}=Ys(i,this.props.isMenuVertical,this.props.isDirectionRightToLeft);return t.createElement(Vt.Popup,{anchor:this.itemElement,show:!0,popupClass:this.getPopupClassName(),anchorAlign:s,popupAlign:n,collision:a,animate:!1,key:"1"},t.createElement(dt,{parentItemId:i,items:this.props.item.items,menuGuid:this.props.menuGuid,focusedItemId:this.props.focusedItemId,lastItemIdToBeOpened:this.props.lastItemIdToBeOpened,tabbableItemId:this.props.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,isMenuVertical:this.props.isMenuVertical,isDirectionRightToLeft:this.props.isDirectionRightToLeft,className:"k-group k-menu-group k-reset k-menu-group-md",onMouseOver:this.props.onMouseOver,onMouseLeave:this.props.onMouseLeave,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:this.props.onClick,onOriginalItemNeeded:this.props.onOriginalItemNeeded}))}else return null}renderMenuIconIfApplicable(){const{icon:i,svgIcon:s}=this.props.item;return i||s?t.createElement(o.IconWrap,{name:i,icon:s,key:"0"}):null}renderArrowIfApplicable(){return this.props.item.items.length>0?t.createElement("span",{className:"k-menu-expand-arrow","aria-hidden":!0},t.createElement(ct,{itemId:this.props.item.id,verticalMenu:this.props.isMenuVertical,dir:rs(this.props.isDirectionRightToLeft),key:"2"})):null}get itemRender(){return this.props.item.render||this.props.itemRender}get linkRender(){return this.props.item.linkRender||this.props.linkRender}get contentRender(){return this.props.item.contentParentItemId?this.props.item.contentRender:null}get Opened(){const i=this.props;return i.item.items.length>0&&Hs(i.item.id,i.lastItemIdToBeOpened)&&!this.isFirstRender}getPopupClassName(){return o.classNames("k-menu-popup",{"k-rtl":this.props.isDirectionRightToLeft})}getMenuItemClassName(i){return o.classNames("k-item","k-menu-item",{"k-first":_s(i.id),"k-last":i.isLastFromSiblings,"k-disabled":i.disabled},i.cssClass)}}class Js{constructor(){this.phase="Initialized"}getIsDirectionRightToLeft(){return this.isDirectionRightToLeft}setIsDirectionRightToLeft(i){this.phase=this.phase==="NotInitialized"?"Initialized":"NewValueReceived",this.previousIsDirectionRightToLeft=this.isDirectionRightToLeft,this.isDirectionRightToLeft=i}hasDirectionChanged(){return this.phase==="NewValueReceived"?this.previousIsDirectionRightToLeft!==this.isDirectionRightToLeft:!1}}class Qs{constructor(i,s,n){this.openOnClick=i,this.resetMenu=s,this.openItem=n,this.mouseDown=!1,this.openOnClick=i,this.isMouseOverEnabled=!i}set OpenOnClick(i){!!i!=!!this.openOnClick&&(this.mouseDown=!1,this.isMouseOverEnabled=!i),this.openOnClick=i}handleItemSelectedViaKeyboard(){this.openOnClick&&(this.isMouseOverEnabled=!1,this.resetMenu())}get IsMouseOverEnabled(){return this.isMouseOverEnabled}handleItemMouseDown(){this.mouseDown=!0}handleItemFocus(){this.openOnClick&&!this.mouseDown&&(this.isMouseOverEnabled=!0),this.mouseDown=!1}handleItemClick(i,s){this.openOnClick&&(this.isMouseOverEnabled?s&&(this.isMouseOverEnabled=!1,this.resetMenu()):(this.isMouseOverEnabled=!0,this.openItem(i)))}}const R={name:"@progress/kendo-react-layout",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"},cs={focusedItemId:q,hoveredItemId:q,tabbableItemId:Me};let ye=class extends t.Component{constructor(i){super(i),this.menuWrapperEl=null,this.directionHolder=new Js,this.inputItems=[],this.items=[],this.reset=()=>{this.clearItemHoverAndLeaveRequestsIfApplicable(),this.setState(cs)},this.onKeyDown=s=>{if(this.state.focusedItemId!==q){const n=be(this.state.focusedItemId,this.items),a=qs(this.items,n.id,s.keyCode,s.key,this.props.vertical,this.directionHolder.getIsDirectionRightToLeft());n.id!==a&&(s.preventDefault(),this.setFocusedItemId(a)),(s.keyCode===o.Keys.enter||s.keyCode===o.Keys.space)&&!n.disabled&&(this.mouseOverHandler.handleItemSelectedViaKeyboard(),this.dispatchSelectEventIfWired(s,n.id),!s.isDefaultPrevented()&&n.items.length===0&&n.url&&window.location.assign(n.url))}s.keyCode===o.Keys.esc&&this.props.onClose&&this.props.onClose.call(void 0,s)},this.onItemMouseOver=s=>{this.mouseOverHandler.IsMouseOverEnabled&&(this.clearItemHoverAndLeaveRequestsIfApplicable(),this.itemHoverRequest=window.setTimeout(()=>{this.setHoveredItemId(s),this.itemHoverRequest=null},Gs(this.props)))},this.onItemMouseLeave=s=>{this.mouseOverHandler.IsMouseOverEnabled&&this.isItemWithDefaultClose(s)&&(this.clearItemHoverAndLeaveRequestsIfApplicable(),this.itemLeaveRequest=window.setTimeout(()=>{this.setHoveredItemId(q),this.itemLeaveRequest=null},Xs(this.props)))},this.onItemMouseDown=()=>{this.mouseOverHandler.handleItemMouseDown()},this.onItemFocus=s=>{this.setFocusedItemId(s),this.mouseOverHandler.handleItemFocus()},this.onItemClick=(s,n)=>{const a=be(n,this.items);a.disabled||(this.setFocusedItemId(n),this.mouseOverHandler.handleItemClick(n,this.isItemWithDefaultClose(n)),this.dispatchSelectEventIfWired(s,n),!s.isDefaultPrevented()&&a.url&&window.location.assign(a.url))},this.onItemBlur=(s,n)=>{if(this.isItemWithDefaultClose(s)&&this.setFocusedItemId(q),n.relatedTarget&&n.relatedTarget.nodeName==="LI"){const a=n.relatedTarget.getAttribute("id");if(a&&a.includes(this.menuItemId))return}this.props.onClose&&this.props.onClose.call(void 0,n)},this.getInputItem=s=>be(s,this.inputItems),o.validatePackage(R),this.mouseOverHandler=new Qs(this.props.openOnClick,this.reset,this.onItemMouseOver),this.state=Object.assign({},cs,{isFirstRender:!0})}get menuItemId(){return this.props.id}get element(){return this.menuWrapperEl}render(){this.prepareItems(),this.state.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());let i=this.state.hoveredItemId?this.state.hoveredItemId:this.state.focusedItemId?oe(this.state.focusedItemId):q;return t.createElement("div",{id:this.props.id,onKeyDown:this.onKeyDown,style:this.props.style,className:this.directionHolder.getIsDirectionRightToLeft()?"k-rtl":void 0,ref:s=>this.menuWrapperEl=s},t.createElement(dt,{className:this.getMenuClassName(),"aria-orientation":this.props.vertical?"vertical":void 0,items:this.items,isMenuVertical:this.props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.state.focusedItemId,lastItemIdToBeOpened:i,tabbableItemId:this.state.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,menuGuid:this.menuItemId,onMouseLeave:this.onItemMouseLeave,onMouseOver:this.onItemMouseOver,onMouseDown:this.onItemMouseDown,onFocus:this.onItemFocus,onClick:this.onItemClick,onBlur:this.onItemBlur,onOriginalItemNeeded:this.getInputItem,role:this.props.role}))}componentDidMount(){this.setState({isFirstRender:!1})}componentDidUpdate(i){(!!i.vertical!=!!this.props.vertical||this.directionHolder.hasDirectionChanged())&&this.reset(),this.mouseOverHandler.OpenOnClick=this.props.openOnClick}componentWillUnmount(){this.clearItemHoverAndLeaveRequestsIfApplicable()}setFocusedItemId(i){this.setState(s=>{const n=i===q?s.tabbableItemId:le(i);return{hoveredItemId:i===q||ce(s.hoveredItemId)&&ce(i)?s.hoveredItemId:q,focusedItemId:i,tabbableItemId:n}})}setHoveredItemId(i){this.setState(s=>ce(i)&&ce(s.focusedItemId)?{hoveredItemId:i,focusedItemId:s.focusedItemId,tabbableItemId:s.tabbableItemId}:{hoveredItemId:i,focusedItemId:q,tabbableItemId:Me})}getMenuClassName(){return o.classNames("k-reset","k-header","k-menu",{"k-menu-horizontal":!this.props.vertical},{"k-menu-vertical":this.props.vertical},this.props.className)}clearItemHoverAndLeaveRequestsIfApplicable(){this.itemHoverRequest&&(clearTimeout(this.itemHoverRequest),this.itemHoverRequest=null),this.itemLeaveRequest&&(clearTimeout(this.itemLeaveRequest),this.itemLeaveRequest=null)}isItemWithDefaultClose(i){return!this.props.customCloseItemIds||this.props.customCloseItemIds.indexOf(i)===-1}checkIsDirectionRightToLeft(){return!!(this.props.dir!==void 0?this.props.dir==="rtl":this.menuWrapperEl&&getComputedStyle(this.menuWrapperEl).direction==="rtl")}prepareItems(){const{items:i,inputItems:s}=Us(this.props.items,this.props.children);this.items=i,this.inputItems=s}dispatchSelectEventIfWired(i,s){o.dispatchEvent(this.props.onSelect,i,this,{item:this.getInputItem(s),itemId:s})}};ye.propTypes={vertical:r.bool,items:r.arrayOf(r.object),style:r.object,dir:r.string,hoverOpenDelay:r.number,hoverCloseDelay:r.number,openOnClick:r.bool,itemRender:r.any,linkRender:r.any,customCloseItemIds:r.arrayOf(r.string),onSelect:r.func,role:r.string},ye.defaultProps={vertical:!1};class ut extends t.Component{constructor(){super(...arguments),this.itemRef=null,this.focus=()=>{this.itemRef&&(this.itemRef.tabIndex=0,this.itemRef.focus())},this.blur=()=>{this.itemRef&&(this.itemRef.tabIndex=-1,this.itemRef.blur())},this.onClick=()=>{this.props.onSelect&&this.props.onSelect(this.props.index),this.itemRef&&(this.itemRef.tabIndex=0,this.itemRef.focus())}}render(){const{id:i,active:s,disabled:n,title:a="Untitled",first:l,last:c,contentPanelId:d,index:u}=this.props,h={id:`${i}-${u.toString()}`,"aria-selected":s,"aria-controls":s?d:void 0,"aria-disabled":n,role:"tab",onClick:n?void 0:this.onClick},p=o.classNames("k-item",{["k-first"]:l,["k-last"]:c,["k-disabled"]:n,["k-active"]:s});return t.createElement("li",{...h,className:p,ref:m=>this.itemRef=m,onBlur:this.blur},t.createElement("span",{className:"k-link"},a))}}ut.propTypes={active:r.bool,disabled:r.bool,index:r.number,onSelect:r.func,title:r.oneOfType([r.string,r.element]),first:r.bool,last:r.bool};const ei=e=>Array.apply(null,Array(e)),ti=e=>e.preventDefault(),ve="smooth",ae="prev",Ie="next";class Le extends t.Component{constructor(i){super(i),this.itemsNavRef=t.createRef(),this.isRtl=()=>this.props.dir==="rtl",this.onWheel=s=>{s.stopPropagation();const n=s.deltaY<0?ae:Ie;this.setNewScrollPosition(n,s)},this.arrowClickPrev=s=>{this.handleArrowClick(ae,s)},this.arrowClickNext=s=>{this.handleArrowClick(Ie,s)},this.handleArrowClick=(s,n)=>{this.setNewScrollPosition(s,n)},this.setNewScrollPosition=(s,n)=>{const a=this.itemsNavRef.current;if(!a)return;const l=this.horizontalScroll(),c=l?a.scrollWidth-a.offsetWidth:a.scrollHeight-a.offsetHeight,d=(n.type==="click"?this.props.buttonScrollSpeed:this.props.mouseScrollSpeed)||0;let u=l?a.scrollLeft:a.scrollTop,h=l?a.scrollWidth-a.scrollLeft:a.scrollHeight-a.scrollTop,p=a.scrollWidth-a.scrollLeft*-1;this.isRtl()&&this.horizontalScroll()?(s===ae&&u<0&&(u+=d,p+=d),s===Ie&&u<c&&(u-=d,p-=d),u=Math.min(0,Math.min(c,u))):(s===ae&&u>0&&(u-=d,h+=d),s===Ie&&u<c&&(u+=d,h-=d),u=Math.max(0,Math.min(c,u)));const m=u===0,f=n.type==="click"?ve:void 0;if(l){const y=this.isRtl()?Math.round(p)<=a.clientWidth||Math.floor(p)<=a.clientWidth:Math.round(h)<=a.clientWidth||Math.floor(h)<=a.clientWidth;this.setState({disabledPrev:m,disabledNext:y}),a.scrollTo({left:u,behavior:f})}else this.setState({disabledPrev:m,disabledNext:Math.round(h)<=a.clientHeight||Math.floor(h)<=a.clientHeight}),a.scrollTo({top:u,behavior:f})},this.renderArrow=(s,n)=>{const a=this.horizontalScroll(),l={prev:{arrowTab:"k-tabstrip-prev",fontIcon:a?this.isRtl()?"caret-alt-right":"caret-alt-left":"caret-alt-up",svgIcon:a?this.isRtl()?z.caretAltRightIcon:z.caretAltLeftIcon:z.caretAltUpIcon},next:{arrowTab:"k-tabstrip-next",fontIcon:a?this.isRtl()?"caret-alt-left":"caret-alt-right":"caret-alt-down",svgIcon:a?this.isRtl()?z.caretAltLeftIcon:z.caretAltRightIcon:z.caretAltDownIcon}},c=(s===ae?this.props.prevButton:this.props.nextButton)||Ks.Button,d=s===ae?this.arrowClickPrev:this.arrowClickNext;return t.createElement(c,{disabled:n,className:`${l[s].arrowTab}`,onClick:d,icon:l[s].fontIcon,svgIcon:l[s].svgIcon,onMouseDown:ti,tabIndex:-1,fillMode:"flat"})},this.state={disabledPrev:this.props.selected===0,disabledNext:this.props.selected===t.Children.count(this.props.children)-1}}componentDidMount(){this.props.scrollable&&this.scrollToSelected()}componentDidUpdate(i){const{scrollable:s,selected:n}=this.props;s&&i.selected!==n&&(this.scrollToSelected(),this.setState({disabledPrev:n===0,disabledNext:n===t.Children.count(this.props.children)-1}))}render(){const{selected:i,tabPosition:s,children:n,onSelect:a,onKeyDown:l,navItemId:c}=this.props,d=t.Children.count(n),u=t.Children.toArray(n);let h;n&&(h=ei(d).map((f,y,v)=>{const E={active:i===y,disabled:u[y].props.disabled,index:y,title:u[y].props.title,first:y===0,last:y===v.length-1,contentPanelId:this.props.contentPanelId,id:c,onSelect:a};return t.createElement(ut,{key:y,...E})}));const p=o.classNames("k-tabstrip-items-wrapper",{"k-hstack":s==="top"||s==="bottom","k-vstack":s==="left"||s==="right"}),m=o.classNames("k-tabstrip-items","k-reset");return t.createElement("div",{className:p},this.props.scrollable?t.createElement(t.Fragment,null,this.renderArrow(ae,this.state.disabledPrev),t.createElement("ul",{ref:this.itemsNavRef,className:m,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:l,onWheel:this.onWheel,"aria-orientation":s==="left"||s==="right"?"vertical":void 0},h),this.renderArrow(Ie,this.state.disabledNext)):t.createElement("ul",{className:m,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:l},h))}scrollToSelected(){const i=this.itemsNavRef.current,s=i&&i.children[this.props.selected||0];if(s instanceof HTMLElement&&i instanceof HTMLElement){const n=this.horizontalScroll(),a=n?i.offsetWidth:i.offsetHeight,l=n?s.offsetWidth:s.offsetHeight,c=n?"left":"top";let d=n?i.scrollLeft:i.scrollTop,u=0;if(this.isRtl()){const h=s.offsetLeft;d=d*-1,h<0?(u=h-l+i.offsetLeft,i.scrollTo({[c]:u,behavior:ve})):h+l>a-d&&(u=d+h-l,i.scrollTo({[c]:u,behavior:ve}))}else{const h=n?s.offsetLeft-i.offsetLeft:s.offsetTop-i.offsetTop;d+a<h+l?(u=h+l-a,i.scrollTo({[c]:u,behavior:ve})):d>h&&(u=h,i.scrollTo({[c]:u,behavior:ve}))}}}horizontalScroll(){return/top|bottom/.test(this.props.tabPosition||"top")}}Le.propTypes={children:r.oneOfType([r.element,r.arrayOf(r.element)]),onSelect:r.func,onKeyDown:r.func,selected:r.number,tabIndex:r.number};class ht extends t.Component{constructor(){super(...arguments),this.contentId=this.props.contentPanelId,this.childFactory=i=>t.cloneElement(i,{...i.props,in:i.props.children.props.id===String(this.contentId+this.props.selected)})}render(){const{children:i,selected:s,contentPanelId:n,keepTabsMounted:a,navItemId:l}=this.props,c=i&&typeof s=="number"&&t.Children.toArray(i)[s],d=o.classNames("k-tabstrip-content","k-active",c&&c.props.contentClassName);return t.createElement("div",{className:d,style:this.props.style,id:n,role:"tabpanel","aria-hidden":a,"aria-describedby":`${l}-${(s||"").toString()}`},this.renderContent(i))}renderContent(i){return this.props.keepTabsMounted?t.Children.map(this.props.children,(s,n)=>this.renderChild(s,n)):this.renderChild(t.Children.toArray(i)[this.props.selected],this.props.selected)}renderChild(i,s){const n=s===this.props.selected,a={style:{display:n?void 0:"none"}},l={position:"initial",display:n?void 0:"none"};return i.props.disabled?null:this.props.animation?t.createElement(Pe.Fade,{appear:!0,exit:this.props.keepTabsMounted,style:l,childFactory:this.props.keepTabsMounted?this.childFactory:void 0},t.createElement("div",{...a,id:String(this.contentId+s),key:s},i.props.children)):t.createElement("div",{...a,key:s},i.props.children)}}ht.propTypes={animation:r.bool,children:r.oneOfType([r.element,r.arrayOf(r.element)]),selected:r.number,style:r.object};let ze=class extends t.Component{constructor(i){super(i),this._element=null,this.showLicenseWatermark=!1,this.keyBinding={[o.Keys.left]:()=>this.prevNavigatableTab(),[o.Keys.right]:()=>this.nextNavigatableTab(),[o.Keys.down]:()=>this.nextNavigatableTab(),[o.Keys.up]:()=>this.prevNavigatableTab(),[o.Keys.home]:()=>0,[o.Keys.end]:()=>t.Children.count(this.props.children)-1},this.onSelect=s=>{this.props.selected!==s&&this.props.onSelect&&this.props.onSelect({selected:s})},this.onKeyDown=s=>{let n;switch(s.keyCode){case o.Keys.left:n=this.keyBinding[this.invertKeys(o.Keys.left,o.Keys.right)];break;case o.Keys.right:n=this.keyBinding[this.invertKeys(o.Keys.right,o.Keys.left)];break;case o.Keys.up:n=this.keyBinding[o.Keys.up];break;case o.Keys.down:n=this.keyBinding[o.Keys.down];break;case o.Keys.home:n=this.keyBinding[o.Keys.home];break;case o.Keys.end:n=this.keyBinding[o.Keys.end];break}n&&(s.preventDefault(),this.onSelect(n()))},this.renderContent=s=>{const{selected:n,children:a,tabContentStyle:l}=s,c=t.Children.count(a);return n<c&&n>-1?t.createElement(ht,{index:n,...s,style:l}):null},this.firstNavigatableTab=()=>{const s=this.children(),n=t.Children.count(s);if(s){for(let a=0;a<n;a++)if(!s[a].props.disabled)return a}},this.lastNavigatableTab=()=>{const s=this.children(),n=t.Children.count(s);if(s){for(let a=n-1;a>0;a--)if(!s[a].props.disabled)return a}},this.prevNavigatableTab=()=>{const s=this.children(),{selected:n}=this.props,a=n?n-1:-1;if(a<0)return this.lastNavigatableTab();if(s)for(let l=a;l>-1;l--){if(!s[l].props.disabled)return l;if(l===0)return this.lastNavigatableTab()}},this.nextNavigatableTab=()=>{const s=this.children(),{selected:n}=this.props,a=n?n+1:1,l=t.Children.count(s);if(a>=l)return this.firstNavigatableTab();if(s)for(let c=a;c<l;c++){if(!s[c].props.disabled)return c;if(c+1===l)return this.firstNavigatableTab()}},o.validatePackage(R),this.showLicenseWatermark=o.shouldShowValidationUI(R)}get contentPanelId(){return this.props.id+"-content-panel-id"}get navItemId(){return this.props.id+"-nav-item-id"}render(){const i={...this.props,children:this.children(),contentPanelId:this.contentPanelId,navItemId:this.navItemId,onKeyDown:this.onKeyDown,onSelect:this.onSelect},{tabPosition:s,tabIndex:n=0}=i,a=s==="bottom",l=o.classNames("k-tabstrip k-pos-relative",{"k-tabstrip-left":s==="left","k-tabstrip-right":s==="right","k-tabstrip-bottom":s==="bottom","k-tabstrip-top":s==="top","k-tabstrip-scrollable":this.props.scrollable},this.props.className);return t.createElement("div",{id:this.props.id,ref:c=>this._element=c,dir:this.props.dir,className:l,style:this.props.style},!a&&t.createElement(Le,{...i,tabIndex:n}),this.renderContent(i),a&&t.createElement(Le,{...i,tabIndex:n}),this.showLicenseWatermark&&t.createElement(o.WatermarkOverlay,null))}invertKeys(i,s){return this._element&&getComputedStyle(this._element).direction==="rtl"||!1?s:i}children(){return t.Children.toArray(this.props.children).filter(i=>i)}};ze.propTypes={animation:r.bool,children:r.node,onSelect:r.func,selected:r.number,style:r.object,tabContentStyle:r.object,tabPosition:r.string,tabIndex:r.number,className:r.string,dir:r.string},ze.defaultProps={animation:!0,tabPosition:"top",keepTabsMounted:!1,buttonScrollSpeed:100,mouseScrollSpeed:10};class ds extends t.Component{constructor(i){super(i),this.draggable=null,this.onDrag=(s,n,a)=>{const{event:l}=s,{onDrag:c,index:d}=this.props,u=this.draggable&&this.draggable.element;u&&!this.isStatic&&this.isDraggable&&c(l,u,d,n,a)},this.onFocus=()=>{this.setState({focused:!0})},this.onBlur=()=>{this.setState({focused:!1})},this.onToggle=s=>{const{onToggle:n,index:a,prev:l,next:c}=this.props;(l.collapsible||c.collapsible)&&n(l.collapsible?a:a+1,s)},this.onPrevToggle=s=>{const{onToggle:n,index:a,prev:l}=this.props;l.collapsible&&n(a,s)},this.onNextToggle=s=>{const{onToggle:n,index:a,next:l}=this.props;l.collapsible&&n(a+1,s)},this.onKeyDown=s=>{const n=s&&s.keyCode,a=this.isHorizontal,{index:l}=this.props,c=this.draggable&&this.draggable.element,d=(u,h,p)=>{s.preventDefault(),this.props.onKeyboardResize(u,h,p,s)};c&&(n===o.Keys.enter?(s.preventDefault(),this.onToggle(s)):this.isDraggable&&(a&&n===o.Keys.left?d(c,l,-10):a&&n===o.Keys.right?d(c,l,10):!a&&n===o.Keys.up?d(c,l,-10):!a&&n===o.Keys.down&&d(c,l,10)))},this.state={focused:!1}}get isStatic(){const{prev:i,next:s}=this.props,n=i.resizable&&s.resizable,a=i.collapsible||s.collapsible;return!n&&!a}get isDraggable(){const{prev:i,next:s}=this.props,n=i.resizable&&s.resizable,a=i.collapsed||s.collapsed;return!!n&&!a}get isHorizontal(){return this.props.orientation==="horizontal"}render(){const i=this.isDraggable,s=this.isStatic,n=this.isHorizontal,a=o.classNames("k-splitbar",{["k-focus"]:this.state.focused,["k-splitbar-horizontal"]:n,["k-splitbar-vertical"]:!n,["k-splitbar-draggable-horizontal"]:n&&i,["k-splitbar-draggable-vertical"]:!n&&i,["k-splitbar-static-horizontal"]:n&&s,["k-splitbar-static-vertical"]:!n&&s});return t.createElement(o.Draggable,{onPress:l=>this.onDrag(l,!0,!1),onDrag:l=>this.onDrag(l,!1,!1),onRelease:l=>this.onDrag(l,!1,!0),ref:l=>{this.draggable=l}},t.createElement("div",{tabIndex:s?-1:0,role:"separator","aria-valuenow":0,"aria-label":this.props.ariaLabel,"aria-orientation":n?"vertical":void 0,className:a,style:{touchAction:"none"},onFocus:this.onFocus,onBlur:this.onBlur,onDoubleClick:this.onToggle,onKeyDown:this.onKeyDown},this.props.prev.collapsible&&t.createElement("div",{className:"k-collapse-prev",onClick:this.onPrevToggle},t.createElement(o.IconWrap,{name:this.props.prev.collapsible?n?this.props.prev.collapsed?this.props.isRtl?"caret-alt-left":"caret-alt-right":this.props.isRtl?"caret-alt-right":"caret-alt-left":this.props.prev.collapsed?"caret-alt-down":"caret-alt-up":void 0,icon:this.props.prev.collapsible?n?this.props.prev.collapsed?this.props.isRtl?z.caretAltLeftIcon:z.caretAltRightIcon:this.props.isRtl?z.caretAltRightIcon:z.caretAltLeftIcon:this.props.prev.collapsed?z.caretAltDownIcon:z.caretAltUpIcon:void 0,size:"xsmall"})),t.createElement("div",{className:"k-resize-handle"}),this.props.next.collapsible&&t.createElement("div",{className:"k-collapse-next",onClick:this.onNextToggle},t.createElement(o.IconWrap,{name:this.props.next.collapsible?n?this.props.next.collapsed?this.props.isRtl?"caret-alt-right":"caret-alt-left":this.props.isRtl?"caret-alt-left":"caret-alt-right":this.props.next.collapsed?"caret-alt-up":"caret-alt-down":void 0,icon:this.props.next.collapsible?n?this.props.next.collapsed?this.props.isRtl?z.caretAltRightIcon:z.caretAltLeftIcon:this.props.isRtl?z.caretAltLeftIcon:z.caretAltRightIcon:this.props.next.collapsed?z.caretAltUpIcon:z.caretAltDownIcon:void 0,size:"xsmall"}))))}}class us extends t.Component{render(){return null}}us.propTypes={disabled:r.bool,contentClassName:r.string,children:r.oneOfType([r.element,r.node]),title:r.oneOfType([r.string,r.element,r.node])};function si({imageUrl:e,icon:i,svgIcon:s,iconClass:n}){return e?t.createElement("img",{role:"presentation",className:"k-panelbar-item-icon k-image",src:e}):i||s?t.createElement(o.IconWrap,{className:"k-panelbar-item-icon",name:i,icon:s}):n?t.createElement("span",{role:"presentation",className:"k-panelbar-item-icon "+n}):null}class ne extends t.PureComponent{constructor(i){super(i),this.handleItemClick=()=>{const{onSelect:s,disabled:n,id:a}=this.props;s&&!n&&s.call(void 0,{uniquePrivateKey:this.props.uniquePrivateKey,id:a,target:this})},this.childFactory=s=>this.props.keepItemsMounted?t.cloneElement(s,{...s.props,in:this.props.expanded}):s,this.state={show:i.expanded||!1}}render(){const{id:i,children:s,title:n,uniquePrivateKey:a,disabled:l,selected:c,focused:d,expanded:u,className:h,level:p,headerClassName:m,animation:f,keepItemsMounted:y}=this.props,v={role:"treeitem","aria-disabled":l,"aria-hidden":!l&&!u,"aria-selected":!l&&c,"aria-expanded":!l&&u&&!!s},E=o.classNames("k-panelbar-item",{"k-panelbar-header":p===0,"k-expanded":u&&!!s,"k-disabled":l},`k-level-${p}`,h),k=o.classNames("k-link",{"k-selected":!l&&c,"k-focus":!l&&d},m),w={display:"block"},g=si(this.props),O=!l&&s?t.createElement(o.IconWrap,{name:u?"chevron-up":"chevron-down",icon:u?z.chevronUpIcon:z.chevronDownIcon,className:o.classNames("k-panelbar-toggle",u?"k-panelbar-collapse":"k-panelbar-expand")}):null,S=!l&&u||y?t.createElement("ul",{role:"group","aria-expanded":u,"aria-hidden":!u,className:"k-panelbar-group k-panel k-group",style:{display:y?this.state.show?"block":"none":"block"}},s):null,T=(f===void 0||f)&&!l&&s?t.createElement(Pe.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,key:a+"_animation",style:w,children:S,childFactory:y&&this.childFactory,unmountOnExit:!y,onBeforeEnter:()=>y&&this.setState({show:!0}),onAfterExited:()=>y&&this.setState({show:!1})}):S;return t.createElement("li",{id:i,className:E,...v},t.createElement("span",{className:k,onClick:this.handleItemClick},g,t.createElement("span",{className:"k-panelbar-item-text"},n),O),T)}}ne.propTypes={animation:r.bool,children:r.any,className:r.string,icon:r.string,iconClass:r.string,imageUrl:r.string,svgIcon:o.svgIconPropType,expanded:r.bool,disabled:r.bool,onSelect:r.func,selected:r.bool,level:r.number,title:r.oneOfType([r.string,r.element]),id:r.oneOfType([r.string,r.number]),focused:r.bool,keepItemsMounted:r.bool},ne.defaultProps={title:"Untitled"};const pt=({animation:e=!0,keepItemsMounted:i=!1,state:s,expanded:n,handleSelect:a,children:l,parentExpanded:c=!0,level:d=0,parentPrivateKey:u=[]})=>t.Children.map(l,(h,p)=>{if(h&&h.type===ne){let m,f=ft(h,u,p);if(h.props.children){const y={animation:e,keepItemsMounted:i,state:s,expanded:n,handleSelect:a,children:h.props.children,parentExpanded:(n||[]).indexOf(f)>-1,level:d+1,parentPrivateKey:[...u,f]};m=pt(y)}return t.cloneElement(h,{...h.props,animation:h.props.animation!==void 0?h.props.animation:e,keepItemsMounted:i,id:h.props.id||`k-panelbar-item-default-${f}`,uniquePrivateKey:f,parentUniquePrivateKey:u,parentExpanded:c,level:d,expanded:(n||[]).indexOf(f)>-1,focused:s.focused===f&&s.wrapperFocused,selected:s.selected===f,children:m,onSelect:a})}else return t.createElement("div",{className:"k-panelbar-content k-content"},h)}),hs=e=>{const i=t.Children.toArray(e.children)[0];return i?ft(i,[],0):""},mt=(e,i,s={expanded:e.expanded||[],selected:e.selected||"",focused:e.focused||"",wrapperFocused:!1},n=!0,a=[])=>(t.Children.map(e.children,(l,c)=>{if(l&&l.type===ne){let d=ft(l,a,c);!l.props.disabled&&n&&(l.props.selected&&(s.selected=d),l.props.focused&&(s.focused=d),l.props.expanded&&(i==="multiple"?s.expanded.push(d):i==="single"&&(s.expanded=[d])),l.props.children&&(s=mt(l.props,i,s,!!l.props.expanded,[...a,d])))}}),s),ft=(e,i,s)=>e&&e.props&&e.props.id?e.props.id:i.length?i[i.length-1]+`.${s}`:`.${s}`;function ps(e,i=[]){return(e||[]).forEach(s=>{s.disabled||(i.push(s),s.expanded&&s.children&&ps(s.children,i))}),i}function gt(e,i=[]){return t.Children.forEach(e,s=>{s&&s.props&&!s.props.disabled&&(i.push(s),s.props.children&&gt(s.props.children,i))}),i}function bt(e,i=[]){return t.Children.forEach(e,s=>{s&&s.props&&!s.props.disabled&&(s.props.expanded||s.props.parentExpanded)&&(i.push(s),s.props.children&&bt(s.props.children,i))}),i}const ii=e=>e!=null;b.PanelBarUtils=void 0,(e=>{function i(s){return s.map((n,a)=>{let l;return n.content&&(l=n.content),n.children&&(l=i(n.children)),t.createElement(ne,{...n,children:l,key:n.id||a})})}e.mapItemsToComponents=i})(b.PanelBarUtils||(b.PanelBarUtils={}));const ms=(e,i)=>e.length!==i.length?!1:e.every((s,n)=>s===i[n]);var J=(e=>(e[e.Toggle=0]="Toggle",e[e.Next=1]="Next",e[e.Previous=2]="Previous",e))(J||{});class yt extends t.Component{constructor(i){super(i),this._element=null,this.showLicenseWatermark=!1,this.handleSelect=n=>{this.onSelect(n),this.onFocus(n)},this.onSelect=n=>{const a=gt(t.Children.toArray(this.children));let l,c;switch(a.forEach(d=>{d.props.uniquePrivateKey===(n.uniquePrivateKey||this.state.focused)&&(l=d)}),this.expandMode){case"single":c=[...l.props.parentUniquePrivateKey,l.props.uniquePrivateKey],ms(this.expandedItems,c)&&(l.props.parentUniquePrivateKey?c=[...l.props.parentUniquePrivateKey]:c=[]);break;case"multiple":{c=this.expandedItems.slice();let d=c.indexOf(l.props.uniquePrivateKey);d===-1?c.push(l.props.uniquePrivateKey):c.splice(d,1);break}default:c=this.expandedItems.slice();break}this.setState({selected:l.props.uniquePrivateKey,expanded:c}),this.props.onSelect&&this.props.onSelect.call(void 0,{target:l,expandedItems:c})},this.onFocus=(n,a=0)=>{const l=bt(t.Children.toArray(this.children));let c;l.forEach((d,u)=>{if(d.props.uniquePrivateKey===(n.uniquePrivateKey||this.state.focused)){let h=u+a<0?0:u+a>l.length?l.length-1:u+a;c=l[h]}}),c&&(this.activeDescendant=c.props.id,this.setState({focused:c.props.uniquePrivateKey}))},this.onNavigate=(n,a)=>{let l;switch(a){case J.Previous:l=-1,this.onFocus(n,l);break;case J.Next:l=1,this.onFocus(n,l);break;case J.Toggle:this.onSelect(n);break}},this.handleWrapperFocus=()=>{clearTimeout(this.nextTickId),this.state.wrapperFocused||this.setState({wrapperFocused:!0})},this.handleWrapperBlur=()=>{this.nextTick(()=>{this.setState({wrapperFocused:!1})})},this.handleKeyDown=n=>{const a=this._element&&getComputedStyle(this._element).direction==="rtl"||!1;if(n.target===n.currentTarget){const l=n.keyCode;let c;switch(l){case o.Keys.left:c=a?J.Next:J.Previous;break;case o.Keys.up:c=J.Previous;break;case o.Keys.right:c=a?J.Previous:J.Next;break;case o.Keys.down:c=J.Next;break;case o.Keys.space:case o.Keys.enter:c=J.Toggle;break;default:c=null;break}c!==null&&(n.preventDefault(),this.onNavigate(n,c))}},o.validatePackage(R),this.showLicenseWatermark=o.shouldShowValidationUI(R);const s=mt(i,this.expandMode);s.focused||(s.focused=hs(i)),this.state=s}get expandMode(){return this.props.expandMode||"multiple"}get selectedItem(){const{selected:i=this.state.selected}=this.props;return i}get expandedItems(){return this.props.isControlled?this.props.expanded||[]:this.state.expanded}get children(){const i={...this.state,selected:this.selectedItem},s={animation:this.props.animation,keepItemsMounted:this.props.keepItemsMounted,state:i,expanded:this.expandedItems,handleSelect:this.handleSelect,children:this.props.children};return pt(s)}render(){const i={"aria-activedescendant":this.activeDescendant},s=o.classNames("k-panelbar","k-pos-relative",this.props.className);return t.createElement("ul",{ref:n=>{this._element=n},dir:this.props.dir,role:"tree",tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,className:s,style:this.props.style,...i},this.children,this.showLicenseWatermark&&t.createElement(o.WatermarkOverlay,null))}nextTick(i){this.nextTickId=window.setTimeout(()=>i())}}yt.propTypes={animation:r.bool,children:function(e,i){const s=e[i];if(s){if(Array.isArray(s)){for(let n of s)if(!n.type||n.type!==ne)return new Error("PanelBar children should be either PanelBarItem or Array of PanelBarItem.")}else if(s.type!==ne)return new Error("PanelBar child should be either PanelBarItem or Array of PanelBarItem.");return null}return null},dir:r.string,selected:r.string,expanded:r.arrayOf(r.string),focused:r.string,expandMode:r.oneOf(["single","multiple"]),className:r.string,keepItemsMounted:r.bool,onSelect:r.func,style:r.object},yt.defaultProps={expandMode:"multiple",animation:!0,keepItemsMounted:!1};class fs extends t.Component{render(){const{id:i,size:s,collapsed:n,overlay:a,containsSplitter:l,collapsible:c,resizable:d,scrollable:u,keepMounted:h}=this.props,p=s&&s.length>0,m={flexBasis:s},f=o.classNames("k-pane",{["k-hidden"]:n,hidden:n,["k-pane-flex"]:l,["k-pane-static"]:!d&&!c||p,["k-scrollable"]:u});return t.createElement("div",{id:i,role:"group",style:m,className:f},!n||h?this.props.children:void 0,a?t.createElement("div",{className:"k-splitter-overlay k-overlay"}):void 0)}}const vt="splitBarLabel",ni={[vt]:"split bar"},ri={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},ai=150;class gs extends t.Component{constructor(i){super(i),this._container=null,this.validatePanes=s=>{if(!s.filter(a=>a.size===void 0).length)throw new Error("The Splitter should have at least one pane without a set size.")},this.mapPaneOptions=(s,n)=>{const a=this.orientation,{dragIndex:l,isDragging:c}=this.state,d=[];for(let u=0;u<n.length;u++){let h=!1;const p=n[u];t.isValidElement(p)&&(h=p.type.displayName==="Splitter");let m=!1;c&&l!==void 0&&(m=l===u||l+1===u),d.push({...ri,orientation:a,containsSplitter:h,overlay:m,...(s||[])[u]})}return d},this.mapSplitterPanes=(s,n)=>{const a=ge.provideLocalizationService(this).toLanguageString(vt,ni[vt]);return s.map((l,c)=>{let d;const u=c*2,h=u+1;if(c+1<s.length){const m=s[c+1];d=t.createElement(ds,{key:h,index:c,orientation:l.orientation,prev:l,next:m,ariaLabel:a,onDrag:this.onBarDragResize,onToggle:this.onBarToggle,onKeyboardResize:this.onBarKeyboardResize,isRtl:this.isRtl})}return[t.createElement(fs,{key:u,...l},n[c]),d]})},this.onBarToggle=(s,n)=>{const l=this.panesOptions(this.panesContent).map((c,d)=>{const u=this.getPaneProps(c);return d===s?{...u,collapsed:!c.collapsed}:{...u}});this.props.onChange&&this.props.onChange({newState:l,isLast:!0,nativeEvent:n})},this.onBarDragResize=(s,n,a,l,c)=>{const d=new Date().getTime(),{pageX:u,pageY:h}=s,{prevElement:p,nextElement:m}=this.surroudingPanes(n);if(!p||!m)return;if(l){this.setState({isDragging:!0,dragIndex:a,startTime:d,originalX:u,originalY:h,originalPrevSize:this.elementSize(p),originalNextSize:this.elementSize(m)});return}const{originalPrevSize:f,originalNextSize:y,startTime:v,originalX:E,originalY:k}=this.state;if(!l&&d-v<ai){c&&this.resetDragState();return}let w;this.orientation==="vertical"?w=h-k:this.isRtl?w=E-u:w=u-E,this.resize(a,a+1,f,y,w,c,s),c&&this.resetDragState()},this.onBarKeyboardResize=(s,n,a,l)=>{const{prevElement:c,nextElement:d}=this.surroudingPanes(s),u=this.elementSize(c),h=this.elementSize(d);this.resize(n,n+1,u,h,a,!0,l)},this.containerSize=()=>this._container?this.elementSize(this._container,!0):0,this.panesOptions=s=>this.mapPaneOptions(this.panes,s),this.elementSize=(s,n)=>{const a=n?"client":"offset";return this.orientation==="vertical"?s[`${a}Height`]:s[`${a}Width`]},this.clamp=(s,n,a)=>Math.min(n,Math.max(s,a)),this.fixedSize=s=>s&&s.length>0,o.validatePackage(R),this.state={isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,panes:i.defaultPanes||[]}}get isControlledState(){return this.props.panes!==void 0}get panes(){return this.panesDuringOnChange!==void 0?this.panesDuringOnChange:this.isControlledState?this.props.panes:this.state.panes}get orientation(){return this.props.orientation||"horizontal"}get isRtl(){return this._container&&getComputedStyle(this._container).direction==="rtl"||!1}get panesContent(){return t.Children.toArray(this.props.children).filter(i=>i)}render(){const i=this.panesContent,s=this.panesOptions(i),n=o.classNames("k-widget","k-splitter","k-splitter-flex",`k-splitter-${this.orientation}`,this.props.className);return this.validatePanes(s),t.createElement("div",{style:this.props.style,ref:a=>this._container=a,className:n},this.mapSplitterPanes(s,i))}surroudingPanes(i){return{prevElement:i.previousElementSibling,nextElement:i.nextElementSibling}}isPercent(i){return/%$/.test(i)}toPixels(i,s){let n=parseInt(i,10);return this.isPercent(i)&&(n=s*n/100),n}resetDragState(){this.setState({isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0})}resize(i,s,n,a,l,c,d){const u=this.panesOptions(this.panesContent),h=u[i],p=u[s],m=n+a,f=this.containerSize(),y=I=>this.toPixels(I,f),v={index:i,initialSize:n,min:y(h.min)||m-y(p.max)||0,max:y(h.max)||m-y(p.min)||m},E={index:s,initialSize:a,min:y(p.min)||m-y(h.max)||0,max:y(p.max)||m-y(h.min)||m},k=(I,S)=>{const T=u[I.index],P=this.clamp(I.min,I.max,I.initialSize+S);return this.isPercent(T.size||"")?100*P/f+"%":P+"px"};let w,g;this.fixedSize(h.size)&&this.fixedSize(p.size)?(w=k(v,l),g=k(E,-l)):p.collapsible||this.fixedSize(p.size)?g=k(E,-l):w=k(v,l);const O=u.map((I,S)=>{const T=this.getPaneProps(I);return S===i?{...T,size:w}:S===s?{...T,size:g}:{...T}});this.panesDuringOnChange=O,this.isControlledState||this.setState({panes:O}),this.props.onChange&&this.props.onChange({newState:O,isLast:c,nativeEvent:d}),this.panesDuringOnChange=void 0}getPaneProps(i){const{orientation:s,overlay:n,containsSplitter:a,...l}=i;return l}}gs.displayName="Splitter";var bs=(e=>(e.TEXT="text",e.IMAGE="image",e.ICON="icon",e))(bs||{}),Ee=(e=>(e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e))(Ee||{}),It=(e=>(e.DEFAULT="default",e.primary="primary",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error",e))(It||{}),ys=(e=>(e.START="start",e.CENTER="center",e.END="end",e.STRETCHED="stretched",e))(ys||{});const Ne=t.forwardRef((e,i)=>{o.validatePackage(R);const{children:s,dir:n,style:a,className:l,type:c,orientation:d,...u}=e,h=t.useRef(null),p=t.useRef(null);return t.useImperativeHandle(h,()=>({element:p.current,props:e})),t.useImperativeHandle(i,()=>h.current),t.createElement("div",{dir:n,style:a,ref:p,className:o.classNames("k-card",l,{[`k-card-${c}`]:c!==It.DEFAULT},d!==Ee.HORIZONTAL?"k-card-vertical":"k-card-horizontal"),...u},s)});Ne.displayName="KendoReactCard",Ne.propTypes={children:r.node,className:r.string,dir:r.string,orientation:r.oneOf(["horizontal","vertical"]),style:r.object,type:r.oneOf(["default","primary","info","success","warning","error"])},Ne.defaultProps={type:It.DEFAULT,orientation:Ee.VERTICAL};const Et=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-header",e.className)},e.children);Et.propTypes={className:r.string};const Nt=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-title",e.className)},e.children);Nt.propTypes={className:r.string};const kt=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-body",e.className)},e.children);kt.propTypes={className:r.string};const wt=e=>{const i={layout:ys.START,orientation:Ee.HORIZONTAL,...e};return t.createElement("div",{style:i.style,className:o.classNames("k-card-actions",i.className,`k-card-actions-${i.layout}`,i.orientation!==Ee.VERTICAL?"k-card-actions-horizontal":"k-card-actions-vertical")},i.children)};wt.propTypes={layout:r.oneOf(["stretched","start","center","end"]),orientation:r.oneOf(["horizontal","vertical"])};const St=e=>{const i={src:"",...e};return t.createElement("img",{style:i.style,className:o.classNames("k-card-image",i.className),src:i.src,alt:i.alt})};St.propTypes={className:r.string,src:r.string};const Tt=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-subtitle",e.className)},e.children);Tt.propTypes={className:r.string};const vs=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-footer",e.className)},e.children);vs.propTypes={className:r.string};const Is=e=>{const i={type:bs.TEXT,size:"medium",rounded:"full",fillMode:"solid",themeColor:"primary",...e};return o.validatePackage(R),t.createElement("div",{style:i.style,className:o.classNames("k-avatar",{["k-avatar-bordered"]:i.border,[`k-rounded-${o.kendoThemeMaps.roundedMap[i.rounded]||i.rounded}`]:i.rounded,[`k-avatar-${o.kendoThemeMaps.sizeMap[i.size]||i.size}`]:i.size,[`k-avatar-${i.fillMode}`]:i.fillMode,[`k-avatar-${i.fillMode}-${i.themeColor}`]:!!(i.fillMode&&i.themeColor)},i.className)},t.createElement("span",{className:`k-avatar-${i.type}`},i.children))};Is.propTypes={className:r.string,type:r.oneOf(["text","image","icon"]),size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","outline"]),themeColor:r.oneOf([null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"])};const li={animation:!0,expanded:!1,mode:"overlay",position:"start",mini:!1,dir:"ltr",width:240,miniWidth:50},xt=t.createContext(li),Fe=t.forwardRef((e,i)=>{const{className:s,style:n,text:a,icon:l,svgIcon:c,separator:d,disabled:u,selected:h,onSelect:p,index:m,tabIndex:f,children:y,...v}=e,{expanded:E,mini:k,item:w}=t.useContext(xt),g=t.useRef(null),O=t.useCallback(()=>{g.current&&g.current.focus()},[]);t.useImperativeHandle(i,()=>({element:g.current,focus:O,props:e}));const I=o.classNames("k-drawer-item",{"k-selected":h,"k-disabled":u},s),S=t.useCallback(P=>{if(p&&!u){const F={element:g.current,focus:O,props:e};p(F,m,P)}},[p,m,u]),T=t.createElement(t.Fragment,null,(l||c)&&t.createElement(o.IconWrap,{name:l&&o.toIconName(l),icon:c}),!E&&k?null:t.createElement("span",{className:"k-item-text"},a));return d?t.createElement("li",{className:"k-drawer-item k-drawer-separator",role:"separator"}):t.createElement("li",{ref:g,className:I,style:n,role:"menuitem","aria-label":a,"aria-disabled":u,onClick:S,tabIndex:o.getTabIndex(f,u),...v},w?y:T)});Fe.propTypes={className:r.string,style:r.object,text:r.string,icon:r.string,svgIcon:o.svgIconPropType,separator:r.bool,selected:r.bool,disabled:r.bool,targetItem:r.any},Fe.displayName="KendoDrawerItem";const oi=240,ci=50,di={type:"slide",duration:200},ui={type:"slide",duration:0},Ke=t.forwardRef((e,i)=>{const{children:s,className:n,style:a}=e;o.validatePackage(R);const l=o.shouldShowValidationUI(R),{animation:c,expanded:d,mode:u,position:h,onOverlayClick:p,mini:m,dir:f,width:y,miniWidth:v,items:E,item:k,onSelect:w}=t.useContext(xt),g=t.useRef(null),O=t.useCallback(()=>{g.current&&g.current.focus()},[]),I=typeof c!="boolean"?c:c===!1?ui:di,S=y||oi,T=v||ci;t.useImperativeHandle(i,()=>({element:g.current,focus:O}));const P=t.useMemo(()=>"k-widget k-drawer "+o.classNames({"k-drawer-start":h==="start","k-drawer-end":h==="end"},n),[h]),F={opacity:1,flexBasis:S,WebkitTransition:"all "+(I&&I.duration)+"ms",transition:"all "+(I&&I.duration)+"ms"},C={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(I&&I.duration)+"ms",transition:"all "+(I&&I.duration)+"ms"},L={opacity:m?1:0,flexBasis:m?T:0,WebkitTransition:"all "+(I&&I.duration)+"ms",transition:"all "+(I&&I.duration)+"ms"},H={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(I&&I.duration)+"ms",transition:"all "+(I&&I.duration)+"ms"},G={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(I&&I.duration)+"ms",transition:"all "+(I&&I.duration)+"ms"},Q={transform:"translateX(0%)",WebkitTransitionDuration:(I&&I.duration)+"ms",transitionDuration:(I&&I.duration)+"ms"},$=d?u==="push"?F:C:u==="push"?L:f==="ltr"&&h==="start"||f==="rtl"&&h==="end"?m?Q:H:m?Q:G,x=E&&t.createElement("ul",{className:"k-drawer-items",role:"menubar","aria-label":"drawer-list","aria-expanded":d},E.map((j,Y)=>{const Z={index:Y,...j,onSelect:w},re=k||Fe;return t.createElement(re,{key:Y,...Z})})),A=t.createElement("div",{style:I?{...$,...a}:a,className:P,ref:g},t.createElement("div",{className:"k-drawer-wrapper",style:!d&&m&&u==="overlay"?{width:T}:{width:S}},x||s),l&&t.createElement(o.WatermarkOverlay,null));return u==="overlay"?t.createElement(t.Fragment,null,d&&t.createElement("div",{className:"k-overlay",onClick:p}),A):A});Ke.propTypes={children:r.any,className:r.string,style:r.object,item:r.any,tabIndex:r.number},Ke.displayName="KendoDrawerNavigation";const Be=t.forwardRef((e,i)=>{o.validatePackage(R);const{expanded:s,mode:n,position:a,className:l,children:c,style:d,animation:u,mini:h,width:p,miniWidth:m,items:f,item:y,tabIndex:v,onOverlayClick:E,onSelect:k}=e,w=t.useRef(null),g=t.useCallback(()=>{w.current&&w.current.focus()},[]);t.useImperativeHandle(i,()=>({element:w.current,focus:g}));const O=t.useCallback((T,P,F)=>{if(f&&k){const C={itemTarget:T,itemIndex:P,syntheticEvent:F,nativeEvent:F&&F.nativeEvent,target:void 0};k.call(void 0,C)}},[f,k]),I=o.useDir(w,e.dir),S=o.classNames({"k-drawer-container":!0,"k-drawer-expanded":s,"k-drawer-overlay":n==="overlay","k-drawer-push":n==="push","k-drawer-mini":h},l);return t.createElement(xt.Provider,{value:{animation:u,expanded:s,mode:n,position:a,mini:h,dir:I,items:f,item:y,width:p,miniWidth:m,onOverlayClick:E,onSelect:O}},t.createElement("div",{className:S,ref:w,dir:I,style:d,tabIndex:v},f&&t.createElement(Ke,null),c))});Be.propTypes={animation:r.any,expanded:r.bool,children:r.any,className:r.string,dir:r.string,mode:r.string,position:r.string,mini:r.bool,style:r.object,tabIndex:r.number,width:r.number,miniWidth:r.number,selected:r.number,onSelect:r.func,onOverlayClick:r.func};const hi={animation:!0,expanded:!1,mode:"overlay",position:"start",mini:!1,dir:"ltr",width:240,miniWidth:50};Be.defaultProps=hi,Be.displayName="KendoDrawer";const Dt=t.forwardRef((e,i)=>{const{children:s,className:n,style:a}=e,l=t.useRef(null);t.useImperativeHandle(i,()=>({element:l.current}));const c=o.classNames({"k-drawer-content":!0},n);return t.createElement("div",{className:c,style:a,ref:l},s)});Dt.propTypes={children:r.any,className:r.string,style:r.object},Dt.displayName="KendoDrawerContent";const pi={linear:!1,mode:"steps",value:0},Es=t.createContext(pi),Ns=400,ks=0,ws="stepper.optionalText",Ot="stepper.progBarAriaLabel",Ss={[ws]:"(Optional)",[Ot]:"progressbar"},ke=t.forwardRef((e,i)=>{const{children:s,className:n,current:a,disabled:l,focused:c,icon:d,svgIcon:u,index:h,isValid:p,label:m,optional:f,style:y,tabIndex:v,text:E,...k}=e,{animationDuration:w,isVertical:g,item:O,linear:I,mode:S,numOfSteps:T,value:P,onChange:F,onFocus:C,successIcon:L,errorIcon:H,successSVGIcon:G,errorSVGIcon:Q}=t.useContext(Es),$=t.useRef(null),x=t.useCallback(()=>{$.current&&o.focusFirstFocusableChild($.current)},[]),A=t.useCallback(()=>({element:$.current,focus:x}),[x]);t.useImperativeHandle(i,A);const j=!I||h===P-1||h===P||h===P+1,Y=S==="labels"||!!d&&!!m,Z=ge.useLocalization(),ue=(ee=>Z.toLanguageString(ee,Ss[ee]))(ws),se=typeof w=="number"?w:w!==!1?Ns:ks,Te=t.useCallback(ee=>{F&&!l&&o.dispatchEvent(F,ee,A(),{value:h})},[F,P,l]),he=t.useCallback(ee=>{C&&!l&&o.dispatchEvent(C,ee,A(),void 0)},[C,l]),W=t.useMemo(()=>o.classNames("k-step",{"k-step-first":h===0,"k-step-last":T&&h===T-1,"k-step-done":h<P,"k-step-current":a,"k-step-optional":f,"k-step-error":p!==void 0&&!p,"k-step-success":p},{"k-disabled":l,"k-focus":c},n),[h,T,P,a,f,l,c,p,n]),_=t.useMemo(()=>({maxWidth:g?void 0:`calc(100% / ${T})`,maxHeight:g?`calc(100% / ${T})`:void 0,pointerEvents:j?void 0:"none",...y}),[g,T,y,j]),B=p?L:H,V=B?t.createElement("span",{className:"k-step-indicator-icon "+B,"aria-hidden":"true"}):t.createElement(o.IconWrap,{className:"k-step-indicator-icon",name:p?"check-circle":"exclamation-circle",icon:p?G||z.checkOutlineIcon:Q||z.exclamationCircleIcon}),pe=t.createElement(t.Fragment,null,S!=="labels"?t.createElement("span",{className:"k-step-indicator","aria-hidden":!0,style:{transitionDuration:se+"ms"}},d||u?!Y&&p!==void 0?V:t.createElement(o.IconWrap,{className:"k-step-indicator-icon",name:d&&o.toIconName(d),icon:u}):p!==void 0?V:t.createElement("span",{className:"k-step-indicator-text"},E||h+1)):null),xe=t.createElement("span",{className:"k-step-label"},m&&t.createElement("span",{className:"k-step-text"},m),Y&&p!==void 0&&V,f&&t.createElement("span",{className:"k-step-label-optional"},ue)),me=t.createElement(t.Fragment,null,pe,xe);return t.createElement("li",{ref:$,className:W,style:_,...k},t.createElement("a",{className:"k-step-link",title:m||void 0,onClick:Te,onFocus:he,tabIndex:v||(c?0:-1),"aria-current":a,"aria-disabled":l||!j||void 0,"aria-invalid":p!==void 0&&!p||void 0},O?s:me))});ke.propTypes={children:r.any,className:r.string,current:r.bool,disabled:r.bool,icon:r.string,index:r.number,isValid:r.bool,label:r.string,optional:r.bool,style:r.object,tabIndex:r.number,text:r.string};const mi={tabIndex:0};ke.defaultProps=mi,ke.displayName="KendoStep";const Re=t.forwardRef((e,i)=>{o.validatePackage(R);const{animationDuration:s,children:n,className:a,disabled:l,errorIcon:c,errorSVGIcon:d,item:u,items:h,linear:p,mode:m,orientation:f,style:y,successIcon:v,successSVGIcon:E,onChange:k,onFocus:w}=e,O=ge.useLocalization().toLanguageString(Ot,Ss[Ot]),I=t.useRef(null),S=t.useCallback(()=>{I.current&&o.focusFirstFocusableChild(I.current)},[]),T=t.useCallback(()=>({element:I.current,focus:S}),[S]);t.useImperativeHandle(i,T);const P=e.value||Ts.value,[F,C]=t.useState(P),L=h?h.length:0,H=f==="vertical",G=o.useRtl(I,e.dir),Q=typeof s=="number"?s:s!==!1?Ns:ks;t.useEffect(()=>{C(P)},[P]);const $=t.useCallback((W,_)=>{const B=_===P-1,V=_===P,pe=_===P+1;P!==_&&k&&!l&&(!p||B||V||pe)&&(o.dispatchEvent(k,W,T(),{value:_}),C(_))},[P,p,k,l,C]),x=t.useCallback(W=>{let _=W.value,B=W.syntheticEvent;$(B,_)},[$]),A=t.useCallback(W=>{w&&!l&&o.dispatchEvent(w,W.syntheticEvent,T(),void 0)},[w,l]),j=t.useCallback(W=>{$(W,F)},[$,F]),Y=t.useCallback(W=>{const _=G==="rtl",B=F,V=h.length-1;switch(W.keyCode){case o.Keys.left:W.preventDefault(),!_&&B>0&&C(B-1),_&&B<V&&C(B+1);break;case o.Keys.right:W.preventDefault(),!_&&B<V&&C(B+1),_&&B>0&&C(B-1);break;case o.Keys.up:W.preventDefault(),!_&&B>0&&C(B-1),_&&B>0&&C(B-1);break;case o.Keys.down:W.preventDefault(),!_&&B<V&&C(B+1),_&&B<V&&C(B+1);break;case o.Keys.home:W.preventDefault(),C(0);break;case o.Keys.end:W.preventDefault(),C(V);break;case o.Keys.space:W.preventDefault();break;case o.Keys.enter:W.preventDefault(),h[B].disabled||j(W);break}},[h,C,F,G,j]),Z=t.useMemo(()=>o.classNames("k-stepper",{"k-stepper-linear":p},a),[p,a]),re=t.useMemo(()=>({display:"grid",gridTemplateColumns:H?void 0:"repeat("+L*2+", 1fr)",gridTemplateRows:H?"repeat("+L+", 1fr)":void 0,...y}),[H,L,y]),ue=t.useMemo(()=>o.classNames("k-step-list",{"k-step-list-horizontal":!H,"k-step-list-vertical":H}),[H]),se=t.useMemo(()=>({gridColumnStart:H?void 0:1,gridColumnEnd:H?void 0:-1,gridRowStart:H?1:void 0,gridRowEnd:H?-1:void 0}),[H]),Te=t.useMemo(()=>({gridColumnStart:H?void 0:2,gridColumnEnd:H?void 0:L*2,gridRowStart:H?1:void 0,gridRowEnd:H?L:void 0,top:H?17:void 0}),[H,L]),he=h&&h.map((W,_)=>{const B={index:_,disabled:l||W.disabled,focused:_===F,current:_===P,...W},V=u||ke;return t.createElement(V,{key:_,...B})});return t.createElement(Es.Provider,{value:{animationDuration:s,isVertical:H,item:u,linear:p,mode:m,numOfSteps:L,value:P,successIcon:v,successSVGIcon:E,errorIcon:c,errorSVGIcon:d,onChange:x,onFocus:A}},t.createElement("nav",{className:Z,style:re,dir:G,onKeyDown:Y},t.createElement("ol",{className:ue,style:se},he||n),t.createElement(Bs.ProgressBar,{style:Te,animation:{duration:Q},ariaLabel:O,"aria-hidden":!0,max:L-1,labelVisible:!1,orientation:f,reverse:f==="vertical",value:P,disabled:l,tabIndex:-1})))});Re.propTypes={animationDuration:r.oneOfType([r.bool,r.number]),children:r.any,className:r.string,dir:r.string,disabled:r.bool,errorIcon:r.string,errorSVGIcon:o.svgIconPropType,item:r.any,items:r.any,linear:r.bool,mode:r.oneOf(["steps","labels"]),orientation:r.oneOf(["horizontal","vertical"]),style:r.object,successIcon:r.string,successSVGIcon:o.svgIconPropType,value:r.number.isRequired,onChange:r.func,onFocus:r.func};const Ts={value:0};Re.defaultProps=Ts,Re.displayName="KendoStepper";const Ct=t.forwardRef((e,i)=>{o.validatePackage(R);const{children:s,className:n,style:a,id:l}=e,c=t.useRef(null),d=t.useCallback(()=>{c.current&&o.focusFirstFocusableChild(c.current)},[]),u=t.useCallback(()=>({element:c.current,focus:d}),[d]);t.useImperativeHandle(i,u);const h=o.useId(),p=t.useMemo(()=>e.themeColor||Pt.themeColor,[e.themeColor]),m=t.useMemo(()=>e.position||Pt.position,[e.position]),f=t.useMemo(()=>e.positionMode||Pt.positionMode,[e.positionMode]),y=t.useMemo(()=>o.classNames("k-appbar",{"k-appbar-top":m==="top","k-appbar-bottom":m==="bottom","k-appbar-static":f==="static","k-appbar-sticky":f==="sticky","k-appbar-fixed":f==="fixed","k-appbar-light":p==="light","k-appbar-dark":p==="dark","k-appbar-inherit":p==="inherit"},n),[m,f,p,n]);return t.createElement("div",{className:y,style:a,id:l||h},s)});Ct.propTypes={children:r.any,className:r.string,style:r.object,id:r.string,themeColor:r.string,position:r.oneOf(["top","bottom"]),positionMode:r.oneOf(["static","sticky","fixed"])};const Pt={themeColor:"light",position:"top",positionMode:"static"};Ct.displayName="KendoAppBar";const Mt=t.forwardRef((e,i)=>{const{children:s,className:n,style:a}=e,l=t.useRef(null),c=t.useCallback(()=>{l.current&&o.focusFirstFocusableChild(l.current)},[]),d=t.useCallback(()=>({element:l.current,focus:c}),[c]);t.useImperativeHandle(i,d);const u=t.useMemo(()=>o.classNames("k-appbar-section",n),[n]);return t.createElement("div",{className:u,style:a},s)});Mt.propTypes={children:r.any,className:r.string,style:r.object},Mt.displayName="KendoAppBarSection";const At=t.forwardRef((e,i)=>{const{children:s,className:n,style:a}=e,l=t.useRef(null),c=t.useCallback(()=>{l.current&&o.focusFirstFocusableChild(l.current)},[]),d=t.useCallback(()=>({element:l.current,focus:c}),[c]);t.useImperativeHandle(i,d);const u=t.useMemo(()=>o.classNames("k-appbar-spacer",{"k-appbar-spacer-sized":a&&a.width&&a.width!==null},n),[n,a]),h=t.useMemo(()=>({flexBasis:a&&a.width?a.width:void 0}),[a]);return t.createElement("span",{className:u,style:h},s)});At.propTypes={children:r.any,className:r.string,style:r.object},At.displayName="KendoAppBarSpacer";const Lt=e=>t.createElement(o.Draggable,{onPress:e.onPress,onDrag:i=>{e.onResize(i.event,!1,e.d)},onRelease:i=>{e.onResize(i.event,!0,e.d)}},t.createElement("div",{className:"k-resize-handle k-cursor-"+e.d+"-resize",style:{bottom:0,right:0,...e.style}}));class fi extends t.Component{constructor(){super(...arguments),this.handleResize=(i,s,n)=>{i.originalEvent.preventDefault(),this.props.onResize(i,{end:s,direction:n})}}render(){const{resizable:i,onPress:s,rtl:n}=this.props;return i?t.createElement(t.Fragment,null,i!=="vertical"&&t.createElement(Lt,{onPress:s,onResize:this.handleResize,d:"ew",style:n?{top:0,width:9,left:0,right:""}:{top:0,width:9,right:0,left:""}}),i!=="horizontal"&&t.createElement(Lt,{onPress:s,onResize:this.handleResize,d:"ns",style:{left:0,height:9}}),i===!0&&t.createElement(Lt,{onPress:s,onResize:this.handleResize,d:n?"nesw":"nwse",style:n?{width:9,height:9,right:"",left:0}:{width:9,height:9,right:0,left:""}})):null}}const xs=200,zt=class extends t.Component{constructor(){super(...arguments),this.state={rtl:!1},this.oldSize={},this.draggable=null,this.dragging=!1,this.resizing=!1,this.element=null,this.hintElement=null,this.ignoreDrag=!1,this.pressOffset={x:0,y:0},this.pressXY={x:0,y:0},this.currentTranslate={x:0,y:0},this.preventDataOps=void 0,this.handleResize=(e,i)=>{if(i.end){this.handleRelease();return}if(!this.element||!this.hintElement)return;const s=e.clientX,n=e.clientY;this.resizing=!0;const a=(i.direction!=="ns"?s-this.pressXY.x:0)*(this.state.rtl?-1:1),l=i.direction!=="ew"?n-this.pressXY.y:0;if(this.dragElement&&(this.state.rtl?this.dragElement.style.marginLeft=-a+"px":this.dragElement.style.marginRight=-a+"px",this.dragElement.style.height=`calc(100% + ${l}px)`),this.hintElement.classList.add("k-layout-item-hint-resize"),this.preventDataOps)return;let c=0,d=0;const u=this.element.getBoundingClientRect();a>u.width/this.props.defaultPosition.colSpan/3&&(c=1),a<-u.width/this.props.defaultPosition.colSpan/1.25&&(c=-1),l>u.height/this.props.defaultPosition.rowSpan/3&&(d=1),l<-u.height/this.props.defaultPosition.rowSpan/1.25&&(d=-1),(c!==0||d!==0)&&this.props.update(this.props.index,0,0,d,c)},this.handlePress=e=>{if(!this.dragElement)return;if(this.pressXY={x:e.event.clientX,y:e.event.clientY},this.ignoreDrag=!1,this.props.ignoreDrag&&this.props.ignoreDrag(e.event.originalEvent)){this.ignoreDrag=!0;return}this.element&&this.hintElement&&(this.element.style.zIndex="10",this.hintElement.style.display="block"),this.dragElement.classList.remove("k-cursor-grab"),this.dragElement.classList.add("k-cursor-grabbing");const i=this.dragElement.getBoundingClientRect();this.pressOffset={x:e.event.clientX-i.x,y:e.event.clientY-i.y}},this.handleDrag=e=>{if(this.ignoreDrag)return;const i=this.dragElement;if(e.event.originalEvent.defaultPrevented||!i)return;this.dragging=!0,e.event.originalEvent.preventDefault();const s=i.getBoundingClientRect();if(this.currentTranslate={x:e.event.clientX-s.x-this.pressOffset.x+this.currentTranslate.x,y:e.event.clientY-s.y-this.pressOffset.y+this.currentTranslate.y},i.style.transform=`translate(${this.currentTranslate.x}px, ${this.currentTranslate.y}px)`,i.style.transition="transform 0s",this.preventDataOps)return;let n=0,a=0;this.currentTranslate.y>.7*s.height/this.props.defaultPosition.rowSpan&&(a=1),this.currentTranslate.y<.7*-s.height/this.props.defaultPosition.rowSpan&&(a=-1),this.currentTranslate.x>.7*s.width/this.props.defaultPosition.colSpan&&(n=1),this.currentTranslate.x<.7*-s.width/this.props.defaultPosition.colSpan&&(n=-1),this.props.update(this.props.index,a,this.state.rtl?-n:n,0,0)},this.handleRelease=()=>{this.dragging=this.resizing=!1,this.currentTranslate={x:0,y:0},this.element&&this.hintElement&&(this.element.style.zIndex="1",this.hintElement.classList.remove("k-layout-item-hint-resize"),this.hintElement.style.display="none");const e=this.dragElement;e&&(e.style.transform="translate(0px, 0px)",e.style.transition=`transform ${xs}ms cubic-bezier(0.2, 0, 0, 1) 0s`,e.style.marginRight="0px",e.style.marginLeft="0px",e.style.height="100%",e.classList.remove("k-cursor-grabbing"),e.classList.add("k-cursor-grab"))}}get reorderable(){return this.props.reorderable!==void 0?this.props.reorderable:zt.defaultProps.reorderable}get dragElement(){return this.draggable?this.draggable.element:void 0}componentDidMount(){this.element&&(getComputedStyle(this.element).direction==="rtl"&&this.setState({rtl:!0}),this.hintElement&&(this.hintElement.style.height=this.element.offsetHeight+"px",this.hintElement.style.width=this.element.offsetWidth+"px"))}render(){o.canUseDOM&&clearTimeout&&typeof clearTimeout=="function"&&(clearTimeout(this.preventDataOps),this.preventDataOps=window.setTimeout(()=>{this.preventDataOps=void 0},200));const e=this.props.defaultPosition,i=this.props.resizable!==void 0?this.props.resizable:zt.defaultProps.resizable,s={gridColumnStart:e.col,gridColumnEnd:`span ${e.colSpan}`,gridRowStart:e.row,gridRowEnd:`span ${e.rowSpan}`,outline:"none",order:e.order,display:"none",...this.props.hintStyle},n={gridColumnStart:e.col,gridColumnEnd:`span ${e.colSpan}`,gridRowStart:e.row,gridRowEnd:`span ${e.rowSpan}`,order:e.order},a=t.createElement("div",{ref:l=>{this.draggable=l?{element:l}:null},className:o.classNames("k-tilelayout-item k-card",{"k-cursor-grab":this.reorderable},this.props.className),style:{height:"100%",...n,...this.props.style}},this.props.children,t.createElement(fi,{onPress:this.handlePress,onResize:this.handleResize,resizable:i,rtl:this.state.rtl}));return t.createElement("div",{ref:l=>{this.element=l},style:n},t.createElement("div",{ref:l=>{this.hintElement=l},style:{position:"absolute",...s},className:o.classNames("k-layout-item-hint",this.props.hintClassName)}),t.createElement(o.Draggable,{ref:l=>{this.draggable=l},onDrag:this.props.reorderable?this.handleDrag:void 0,onRelease:this.props.reorderable?this.handleRelease:void 0,onPress:this.props.reorderable?this.handlePress:void 0},a))}getSnapshotBeforeUpdate(e){return this.oldSize={},this.dragElement&&(this.oldSize=this.dragElement.getBoundingClientRect()),null}componentDidUpdate(e){const i=this.dragElement;if(!i)return;const s=i.getBoundingClientRect(),n=this.oldSize;if(this.resizing){const c=s.width-n.width;if(this.state.rtl){const h=parseFloat(i.style.marginLeft||"0");i.style.marginLeft=h-c+"px"}else{const h=parseFloat(i.style.marginRight||"0");i.style.marginRight=h+c+"px"}this.pressXY.x+=this.state.rtl?-c:c;const d=s.height-n.height,u=parseFloat(i.style.height.substring(12));i.style.height=`calc(100% + ${u+d}px)`,this.pressXY.y+=d}const a=n.left-s.left,l=n.top-s.top;if(!(a===0&&l===0)){if(this.dragging){(e.defaultPosition.order!==this.props.defaultPosition.order||e.defaultPosition.col!==this.props.defaultPosition.col)&&(this.currentTranslate.x=0,this.currentTranslate.y=0,i.style.transform="");return}Math.abs(l)<15&&Math.abs(a)<15||requestAnimationFrame(()=>{const c=this.element;c&&(c.style.transform=`translate(${a}px, ${l}px)`,c.style.transition="transform 0s",requestAnimationFrame(()=>{c.style.transform="",c.style.transition=`transform ${xs}ms cubic-bezier(0.2, 0, 0, 1) 0s`}))})}}};let He=zt;He.propTypes={defaultPosition:r.object.isRequired,style:r.object,className:r.string,hintStyle:r.object,hintClassName:r.string,header:r.any,body:r.any,item:r.any,resizable:r.oneOf(["horizontal","vertical",!0,!1]),reorderable:r.bool},He.displayName="KendoTileLayoutItem",He.defaultProps={resizable:!0,reorderable:!0};const gi={column:"k-grid-flow-col",row:"k-grid-flow-row","column dense":"k-grid-flow-col-dense","row dense":"k-grid-flow-row-dense",unset:"k-grid-flow-unset"};class Ft extends t.Component{constructor(i){super(i),this._element=null,this.state={positions:(this.props.items||[]).map((s,n)=>Object.assign({order:n,rowSpan:1,colSpan:1},s.defaultPosition))},this.showLicenseWatermark=!1,this.focus=()=>{this._element&&this._element.focus()},this.update=(s,n,a,l=0,c=0)=>{if(n===0&&a===0&&!c&&!l)return;let d=!1;const u=this.state.positions.map(v=>Object.assign({},v)),h=u[s],p=u.find(v=>v.order===h.order+n);p&&p!==h&&(h.order+=n,p.order+=-n,d=!0);const m=h.col+a;a!==0&&m>=1&&m+h.colSpan<=(this.props.columns||3)+1&&(h.col=m,d=!0);const f=h.colSpan+c;c&&f>=1&&f+h.col<=(this.props.columns||3)+1&&(h.colSpan=f,d=!0);const y=h.rowSpan+l;l&&y>=1&&(h.rowSpan=y,d=!0),d&&(this.setState({positions:u}),o.dispatchEvent(this.props.onReposition,{},this,{value:u}))},o.validatePackage(R),this.showLicenseWatermark=o.shouldShowValidationUI(R)}get element(){return this._element}static getDerivedStateFromProps(i,s){return i.positions?{positions:i.positions.map((n,a)=>Object.assign({order:a,rowSpan:1,colSpan:1},n))}:i.items&&(!s.positions||i.items.length!==s.positions.length)?{positions:i.items.map((n,a)=>Object.assign({order:a,rowSpan:1,colSpan:1},n.defaultPosition))}:null}render(){const{className:i,columns:s=3,columnWidth:n="1fr",gap:a,rowHeight:l="1fr",style:c,autoFlow:d="column",items:u=[]}=this.props,h=a?`${typeof a.rows=="number"?a.rows+"px":a.rows} ${typeof a.columns=="number"?a.columns+"px":a.columns}`:16,p={gridTemplateColumns:`repeat(${s}, minmax(0px, ${typeof n=="number"?n+"px":n}))`,gridAutoRows:`minmax(0px, ${typeof l=="number"?l+"px":l})`,gap:h,padding:h,...c};return t.createElement("div",{ref:m=>{this._element=m},dir:this.props.dir,className:o.classNames("k-tilelayout k-pos-relative",gi[d],i),style:p,id:this.props.id,children:u.map((m,f)=>t.createElement(t.Fragment,{key:this.props.dataItemKey?o.getter(this.props.dataItemKey)(m):f},t.createElement(He,{update:this.update,defaultPosition:this.state.positions[f],index:f,resizable:m.resizable,reorderable:m.reorderable,style:m.style,className:m.className,hintClassName:m.hintClassName,hintStyle:m.hintStyle,ignoreDrag:this.props.ignoreDrag},m.item?m.item:t.createElement(t.Fragment,null,t.createElement("div",{className:"k-tilelayout-item-header k-card-header"},t.isValidElement(m.header)?m.header:t.createElement("h5",{className:"k-card-title"},m.header)),t.createElement("div",{className:"k-tilelayout-item-body k-card-body"},m.body))),this.showLicenseWatermark&&t.createElement(o.WatermarkOverlay,null)))})}}Ft.propTypes={id:r.string,style:r.object,className:r.string,dir:r.string,gap:r.object,columns:r.number,columnWidth:r.oneOfType([r.number,r.string]),rowHeight:r.oneOfType([r.number,r.string]),dataItemKey:r.string,items:r.array,positions:r.array,autoFlow:r.oneOf(["column","row","column dense","row dense","unset"]),onReposition:r.func,ignoreDrag:r.func},Ft.displayName="KendoTileLayout";const bi={vertical:"k-bottom-nav-item-flow-vertical",horizontal:"k-bottom-nav-item-flow-horizontal"},yi={fixed:"k-pos-fixed",sticky:"k-pos-sticky"},we=t.forwardRef((e,i)=>{o.validatePackage(R);const s=t.useRef(null);t.useImperativeHandle(i,()=>({element:s.current}));const{className:n,style:a,selected:l,disabled:c,item:d,render:u,dataItem:h,icon:p,svgIcon:m,text:f,id:y,onSelect:v,onKeyDown:E,index:k,tabIndex:w}=e,g=t.useMemo(()=>o.classNames("k-bottom-nav-item",{"k-selected":l,"k-disabled":c},n),[l,c,n]),O=t.useCallback(F=>{v&&k!==void 0&&!c&&v(F,k)},[v,k,c]),I=t.useCallback(F=>{E&&k!==void 0&&!c&&E(F,k)},[E,k,c]),S=u,T=d,P=t.createElement("span",{ref:s,className:g,style:a,role:"link",id:y,tabIndex:w,onClick:O,onKeyDown:I,"aria-current":l,"aria-disabled":c},T?t.createElement(T,{itemIndex:k,item:h}):t.createElement(t.Fragment,null,(p||m)&&t.createElement(o.IconWrap,{className:"k-bottom-nav-item-icon",name:p,icon:m,size:"xlarge"}),f&&t.createElement("span",{className:"k-bottom-nav-item-text",style:{userSelect:"none"}},f)));return S!==void 0?S.call(void 0,P,e):P}),vi={tabIndex:0};we.propTypes={className:r.string,style:r.object,id:r.string,disabled:r.bool,selected:r.bool,icon:r.string,svgIcon:o.svgIconPropType,text:r.string,tabIndex:r.number},we.defaultProps=vi,we.displayName="KendoReactBottomNavigationItem";const We=t.forwardRef((e,i)=>{o.validatePackage(R);const s=t.useRef(null),n=t.useCallback(()=>{s.current&&o.focusFirstFocusableChild(s.current)},[]),a=t.useCallback(()=>({element:s.current,focus:n}),[n]);t.useImperativeHandle(i,a);const{positionMode:l=de.positionMode,itemFlow:c=de.itemFlow,border:d=de.border,className:u,items:h,item:p,itemRender:m,disabled:f,style:y,id:v,onSelect:E,onKeyDown:k}=e,w=o.useId(),g=o.useDir(s,e.dir),O=t.useMemo(()=>e.fillMode===null||e.fill===null?null:e.fill||e.fillMode||de.fillMode,[e.fillMode,e.fill]),I=t.useMemo(()=>e.themeColor||de.themeColor,[e.themeColor]),S=t.useMemo(()=>o.classNames("k-bottom-nav",yi[l],bi[c],{[`k-bottom-nav-${O}`]:O,[`k-bottom-nav-${O}-${I}`]:!!(O&&I),"k-bottom-nav-border":d,"k-disabled":f},u),[l,I,O,c,d,f,u]),T=t.useCallback((C,L)=>{h&&!h[L].disabled&&E&&o.dispatchEvent(E,C,a(),{itemTarget:h[L],itemIndex:L})},[h,E]),P=t.useCallback((C,L)=>{T(C,L)},[T]),F=t.useCallback((C,L)=>{switch(C.keyCode){case o.Keys.enter:case o.Keys.space:T(C,L),C.preventDefault();break}o.dispatchEvent(k,C,a(),void 0)},[T,k]);return t.createElement("nav",{ref:s,className:S,style:y,id:v||w,dir:g},h&&h.map((C,L)=>t.createElement(we,{...C,key:L,index:L,id:`${v||w}-${L}`,disabled:f||C.disabled,selected:C.selected,dataItem:C,item:p,render:m,onSelect:P,onKeyDown:F})))}),de={themeColor:"primary",fillMode:"flat",itemFlow:"vertical",positionMode:"fixed",border:!0};We.propTypes={className:r.string,style:r.object,id:r.string,dir:r.string,themeColor:r.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),fill:r.oneOf(["solid","flat"]),fillMode:r.oneOf(["solid","flat"]),itemFlow:r.oneOf(["vertical","horizontal"]),border:r.bool,disabled:r.bool,selected:r.number,onSelect:r.func},We.defaultProps=de,We.displayName="KendoReactBottomNavigation";const _e=t.forwardRef((e,i)=>{ie.validatePackage(R);const s=t.useRef(null),n=t.useCallback(()=>({element:s.current}),[]);t.useImperativeHandle(i,n);const{className:a,style:l,id:c,children:d}=e,u=o.useId(),h=t.useMemo(()=>e.orientation||$e.orientation,[e.orientation]),p=h==="horizontal",m=t.useMemo(()=>e.align&&e.align.horizontal?e.align.horizontal:$e.hAlign,[e.align]),f=t.useMemo(()=>e.align&&e.align.vertical?e.align.vertical:$e.vAlign,[e.align]),y=t.useMemo(()=>o.classNames("k-stack-layout",{"k-hstack":h==="horizontal","k-vstack":h==="vertical","k-justify-content-start":p&&m==="start"||!p&&f==="top","k-justify-content-center":p&&m==="center"||!p&&f==="middle","k-justify-content-end":p&&m==="end"||!p&&f==="bottom","k-justify-content-stretch":p&&m==="stretch"||!p&&f==="stretch","k-align-items-start":!p&&m==="start"||p&&f==="top","k-align-items-center":!p&&m==="center"||p&&f==="middle","k-align-items-end":!p&&m==="end"||p&&f==="bottom","k-align-items-stretch":!p&&m==="stretch"||p&&f==="stretch"},a),[h,p,m,f,a]),v={gap:`${typeof e.gap=="number"?e.gap+"px":e.gap}`,...l};return t.createElement("div",{ref:s,className:y,style:v,id:c||u},d)}),$e={orientation:"horizontal",hAlign:"stretch",vAlign:"stretch"};_e.propTypes={className:r.string,style:r.object,children:r.any,id:r.string,orientation:r.oneOf(["horizontal","vertical"]),gap:r.oneOfType([r.string,r.number]),align:r.shape({vertical:r.oneOf(["top","middle","bottom","stretch"]),horizontal:r.oneOf(["start","center","end","stretch"])})},_e.defaultProps=$e,_e.displayName="KendoReactStackLayout";const Ue=t.forwardRef((e,i)=>{ie.validatePackage(R);const s=t.useRef(null),n=t.useCallback(()=>({element:s.current}),[]);t.useImperativeHandle(i,n);const{className:a,style:l,id:c,children:d,gap:u}=e,h=o.useId(),p=t.useMemo(()=>e.align&&e.align.horizontal?e.align.horizontal:Kt.hAlign,[e.align]),m=t.useMemo(()=>e.align&&e.align.vertical?e.align.vertical:Kt.vAlign,[e.align]),f=t.useMemo(()=>o.classNames("k-grid-layout",{"k-justify-items-start":p==="start","k-justify-items-center":p==="center","k-justify-items-end":p==="end","k-justify-items-stretch":p==="stretch","k-align-items-start":m==="top","k-align-items-center":m==="middle","k-align-items-end":m==="bottom","k-align-items-stretch":m==="stretch"},a),[p,m,a]),y=u?`${typeof u.rows=="number"?u.rows+"px":u.rows} ${typeof u.cols=="number"?u.cols+"px":u.cols}`:void 0,v=e.rows&&e.rows.map(w=>`${typeof w.height=="number"?w.height+"px":w.height}`).join(" "),E=e.cols&&e.cols.map(w=>`${typeof w.width=="number"?w.width+"px":w.width}`).join(" "),k={gap:y,gridTemplateColumns:E,gridTemplateRows:v,...l};return t.createElement("div",{ref:s,className:f,style:k,id:c||h},d)}),Kt={hAlign:"stretch",vAlign:"stretch",gap:void 0};Ue.propTypes={className:r.string,style:r.object,children:r.any,id:r.string,gap:r.shape({rows:r.oneOfType([r.string,r.number]),columns:r.oneOfType([r.string,r.number])}),align:r.shape({vertical:r.oneOf(["top","middle","bottom","stretch"]),horizontal:r.oneOf(["start","center","end","stretch"])})},Ue.defaultProps=Kt,Ue.displayName="KendoReactGridLayout";const Bt=t.forwardRef((e,i)=>{ie.validatePackage(R);const s=t.useRef(null),n=t.useCallback(()=>({element:s.current}),[]);t.useImperativeHandle(i,n);const{className:a,style:l,id:c,children:d,row:u,col:h,rowSpan:p,colSpan:m}=e,f=o.useId(),y={gridArea:`${u||"auto"} / ${h||"auto"} / ${p?"span "+p:"auto"} / ${m?"span "+m:"auto"}`,...l};return t.createElement("div",{ref:s,className:a,style:y,id:c||f},d)});Bt.propTypes={className:r.string,style:r.object,children:r.any,id:r.string},Bt.displayName="KendoReactGridLayoutItem";const je=t.forwardRef((e,i)=>{ie.validatePackage(R);const s=t.useRef(null),n=t.useRef(null),a=t.useCallback(()=>{n.current&&n.current.focus()},[n]);return t.useImperativeHandle(s,()=>({element:n.current,focus:a,props:e})),t.useImperativeHandle(i,()=>s.current),t.createElement("li",{ref:n,id:e.id,style:e.style,className:o.classNames("k-breadcrumb-item",{"k-breadcrumb-root-item":e.isFirstItem,"k-breadcrumb-last-item":e.isLastItem},e.className)},e.children)}),Ii={id:r.string,className:r.string,children:r.any,style:r.object};je.displayName="KendoReactBreadcrumbListItem",je.propTypes=Ii;const Ve=t.forwardRef((e,i)=>{ie.validatePackage(R);const s=t.useRef(null),n=t.useRef(null);return t.useImperativeHandle(s,()=>{var a;return{element:((a=n.current)==null?void 0:a.element)||null,props:e}}),t.useImperativeHandle(i,()=>s.current),t.createElement(o.IconWrap,{ref:n,id:e.id,"aria-hidden":!0,tabIndex:e.tabIndex,style:e.style,name:e.dir==="rtl"?"chevron-left":"chevron-right",icon:e.dir==="rtl"?z.chevronLeftIcon:z.chevronRightIcon,className:"k-breadcrumb-delimiter-icon",size:"xsmall"})}),Ei={id:r.string,className:r.string,style:r.object,tabIndex:r.number,dir:r.string};Ve.displayName="KendoReactBreadcrumbDelimiter",Ve.propTypes=Ei;const qe=t.forwardRef((e,i)=>{ie.validatePackage(R);const s=t.useRef(null),n=t.useRef(null),a=t.useCallback(()=>{n.current&&n.current.focus()},[n]);t.useImperativeHandle(s,()=>({element:n.current,focus:a,props:e})),t.useImperativeHandle(i,()=>s.current);const l=t.useCallback(d=>{e.id&&o.dispatchEvent(e.onItemSelect,d,d.target,{id:e.id})},[e.onItemSelect]),c=t.useCallback(d=>{e.id&&o.dispatchEvent(e.onKeyDown,d,d.target,{id:e.id})},[e.onKeyDown]);return t.createElement("span",{"aria-current":e.ariaCurrent?e.ariaCurrent:e.isLast,role:"link",id:e.id,ref:n,style:e.style,dir:o.useDir(n,e.dir),tabIndex:o.getTabIndex(e.tabIndex,e.disabled),className:o.classNames({"k-breadcrumb-root-link":e.isFirst,"k-breadcrumb-link":!e.isFirst,"k-breadcrumb-icontext-link":e.iconClass!==void 0&&e.text,"k-breadcrumb-icon-link":e.iconClass!==void 0&&!e.text,"k-disabled":e.disabled}),onClick:l,onKeyDown:c},e.iconClass?t.createElement("span",{className:o.classNames("k-icon",e.iconClass)}):e.icon?e.icon:"",e.text&&t.createElement("span",{className:"k-breadcrumb-item-text"},e.text))}),Ni={id:r.string,className:r.string,tabIndex:r.number,style:r.object,dir:r.string,disabled:r.bool,text:r.string,icon:r.node,iconClass:r.string,onClick:r.func,ariaCurrent:r.bool};qe.displayName="KendoReactBreadcrumbLink",qe.propTypes=Ni;const Ge=t.forwardRef((e,i)=>{ie.validatePackage(R);const s=t.useRef(null),n=t.useRef(null);return t.useImperativeHandle(s,()=>({element:n.current,props:e})),t.useImperativeHandle(i,()=>s.current),t.createElement(t.Fragment,null,e.rootItem?t.createElement("ol",{id:e.id,ref:n,style:e.style,dir:o.useDir(n,e.dir),tabIndex:o.getTabIndex(e.tabIndex,e.disabled),className:o.classNames("k-breadcrumb-root-item-container",{"k-disabled":e.disabled},e.className)},e.children):t.createElement("ol",{id:e.id,ref:n,style:e.style,dir:o.useDir(n,e.dir),tabIndex:o.getTabIndex(e.tabIndex,e.disabled),className:o.classNames("k-breadcrumb-container !k-flex-wrap",{"k-disabled":e.disabled},e.className)},e.children))}),ki={id:r.string,className:r.string,children:r.element,tabIndex:r.number,style:r.object,dir:r.string,disabled:r.bool};Ge.displayName="KendoReactBreadcrumbOrderedList",Ge.propTypes=ki;const Xe=t.forwardRef((e,i)=>{ie.validatePackage(R);const s=t.useRef(null),n=t.useRef(null),a=t.useMemo(()=>e.breadcrumbOrderedList||Ge,[e.breadcrumbOrderedList]),l=t.useMemo(()=>e.breadcrumbListItem||je,[e.breadcrumbListItem]),c=t.useMemo(()=>e.breadcrumbDelimiter||Ve,[e.breadcrumbDelimiter]),d=t.useMemo(()=>e.breadcrumbLink||qe,[e.breadcrumbLink]),u=t.useCallback(()=>{n.current&&n.current.focus()},[n]),h=t.useMemo(()=>e.disabled||!1,[e.disabled]);t.useImperativeHandle(s,()=>({element:n.current,focus:u,props:e})),t.useImperativeHandle(i,()=>s.current);const p=o.useDir(n,e.dir),m=g=>{s.current&&o.dispatchEvent(e.onItemSelect,g,g.target,{id:g.target.id})},f=g=>{s.current&&o.dispatchEvent(e.onKeyDown,g,g.target,{id:g.target.id})},y=e.valueField||Se.valueField,v=e.iconField||Se.iconField,E=e.iconClassField||Se.iconClassField,k=e.textField||Se.textField,w=e.size||"medium";return t.createElement("nav",{"aria-label":e.ariaLabel,id:e.id,style:e.style,ref:n,dir:p,className:o.classNames("k-breadcrumb k-breadcrumb-wrap",{"k-rtl":p==="rtl","k-disabled":h,"k-breadcrumb-md":!e.size,[`k-breadcrumb-${o.kendoThemeMaps.sizeMap[w]||w}`]:w},e.className)},t.createElement(a,{rootItem:!0},t.createElement(t.Fragment,null,e.data.map((g,O,I)=>{const S=g[y];if(O===0)return t.createElement(l,{key:S,isFirstItem:!0,isLastItem:I.length-1===O},t.createElement(d,{isLast:I.length-1===O,isFirst:!0,id:String(S),icon:g[v]||void 0,iconClass:g[E]?String(g[E]):void 0,text:g[k]?String(g[k]):void 0,disabled:g.disabled||!1,onItemSelect:m,onKeyDown:f,...e}))}))),t.createElement(a,{rootItem:!1},t.createElement(t.Fragment,null,e.data.map((g,O,I)=>{const S=g[y];if(O!==0)return t.createElement(l,{key:S,isFirstItem:!1,isLastItem:I.length-1===O},t.createElement(c,{dir:p}),t.createElement(d,{isLast:I.length-1===O,isFirst:!1,id:String(S),icon:g[v]||void 0,iconClass:g[E]?String(g[E]):void 0,text:g[k]?String(g[k]):void 0,disabled:g.disabled||!1,onItemSelect:m,onKeyDown:f,...e}))}))))}),wi={id:r.string,style:r.object,className:r.string,breadcrumbOrderedList:r.elementType,breadcrumbListItem:r.elementType,breadcrumbDelimiter:r.elementType,breadcrumbLink:r.elementType,data:r.arrayOf(r.shape({id:r.string,text:r.string,icon:r.any,iconClass:r.string})),dir:r.oneOf(["ltr","rtl"]),disabled:r.bool,valueField:r.string,textField:r.string,iconField:r.string,iconClassField:r.string,onItemSelect:r.func,ariaLabel:r.string},Se={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass"};Xe.displayName="KendoReactBreadcrumb",Xe.propTypes=wi,Xe.defaultProps=Se;const Ye=e=>{const i=t.useRef(null),s=t.useCallback(n=>{e.onClick&&e.onClick.call(void 0,{syntheticEvent:n,item:e.item,title:e.title})},[e.item,e.title,e.onClick]);return t.useEffect(()=>{i.current&&e.focused&&i.current.focus()},[e.focused]),t.createElement("span",{style:e.style,tabIndex:e.tabIndex,className:o.classNames("k-actionsheet-item","k-cursor-pointer",e.disabled&&"k-disabled",e.className),ref:i,role:"button","aria-disabled":e.disabled,onClick:s},t.createElement("span",{className:"k-actionsheet-action"},e.icon&&t.createElement("span",{className:"k-icon-wrap"},e.icon),(e.title||e.description)&&t.createElement("span",{className:"k-actionsheet-item-text"},e.title&&t.createElement("span",{className:"k-actionsheet-item-title"},e.title),e.description&&t.createElement("span",{className:"k-actionsheet-item-description"},e.description))))};Ye.propTypes={className:r.string,style:r.object,description:r.string,disabled:r.bool,group:r.oneOf(["top","bottom"]),icon:r.element,title:r.string};const Ze="ActionSheetHeader",Je=e=>t.createElement("div",{className:o.classNames("k-actionsheet-titlebar",e.className)},e.children);Je.propTypes={className:r.string},Je.displayName=Ze,Je.propTypes={children:r.any};const Rt="ActionSheetFooter",Qe=e=>t.createElement("div",{className:o.classNames("k-actionsheet-footer",e.className)},e.children);Qe.propTypes={className:r.string},Qe.displayName=Rt,Qe.propTypes={children:r.any};const Ht="ActionSheetContent",et=e=>t.createElement("div",{className:o.classNames("k-actionsheet-content",e.className)},e.children);et.propTypes={className:r.string},et.displayName=Ht,et.propTypes={children:r.any};class tt extends t.Component{constructor(i){super(i),this.actionSheetRef=t.createRef(),this.actionSheetTitleClass="k-actionsheet-title",this.ariaLabeledBy=this.actionSheetTitleClass+1,this.animationDuration=300,this.bottomPosition={bottom:"0",width:"100%"},this.handleKeyDown=s=>{this.props.navigatable&&this.navigation.triggerKeyboardEvent(s)},this.onTab=(s,n,a)=>{a.preventDefault(),a.shiftKey?n.focusPrevious(s):n.focusNext(s)},this.handleOverlayClick=s=>{this.props.onOverlayClick&&this.props.onOverlayClick.call(void 0,s),this.props.onClose&&this.props.onClose.call(void 0,s),this.props.animation||this.hideActionSheet()},this.handleItemClick=s=>{this.props.onItemClick&&this.props.onItemClick.call(void 0,s),this.props.onItemSelect&&this.props.onItemSelect.call(void 0,s),this.props.animation||this.hideActionSheet()},this.onEnter=(s,n,a)=>{if(s.ariaDisabled)return;const l=s.className&&s.className.indexOf?s.className.indexOf("k-actionsheet-item")!==-1:!1,c=n.elements.filter(d=>d.className.indexOf("k-actionsheet-item")!==-1);if(l&&this.props.onItemClick){a.preventDefault();const d=this.props.items[c.indexOf(s)];this.props.onItemClick.call(void 0,{syntheticEvent:a,item:d,title:d&&d.title})}if(l&&this.props.onItemSelect){a.preventDefault();const d=this.props.items[c.indexOf(s)];this.props.onItemSelect.call(void 0,{syntheticEvent:a,item:d,title:d&&d.title})}this.props.animation||this.hideActionSheet()},this.onEscape=(s,n,a)=>{this.props.onOverlayClick&&(a.preventDefault(),this.props.onOverlayClick.call(void 0,a)),this.props.onClose&&(a.preventDefault(),this.props.onClose.call(void 0,a)),this.props.animation||this.hideActionSheet()},this.hideActionSheet=()=>{this.setState({show:!1})},this.children=s=>{const n={};return t.Children.forEach(s,a=>{a&&(n[a.type.displayName]=a)}),n},this.state={show:!1,slide:!1},o.validatePackage(R)}componentDidMount(){this.props.expand&&!this.state.show&&this.setState({show:!0})}componentDidUpdate(i,s){const n=this.actionSheetRef.current;if(this.props.expand&&!this.state.show&&this.setState({show:!0}),this.props.expand&&this.state.show&&!this.state.slide&&this.setState({slide:!0}),!this.props.expand&&this.state.show&&this.state.slide&&this.setState({slide:!1}),s!==this.state&&this.state.slide&&n&&!this.props.className&&(n.style.setProperty("--kendo-actionsheet-height","auto"),n.style.setProperty("--kendo-actionsheet-max-height","none")),n&&this.props.navigatable){const l=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-titlebar"].map(c=>o.FOCUSABLE_ELEMENTS.concat(this.props.navigatableElements).map(d=>`${c} ${d}`)).flat()];this.navigation=new o.Navigation({tabIndex:this.props.tabIndex||0,root:this.actionSheetRef,rovingTabIndex:!1,selectors:l,keyboardEvents:{keydown:{Tab:this.onTab,Enter:this.onEnter,Escape:this.onEscape}}}),this.navigation.focusElement(this.navigation.first,null)}}render(){const{title:i,subTitle:s,animationStyles:n,animation:a,expand:l,tabIndex:c,items:d}=this.props,u=d==null?void 0:d.filter(v=>!v.group||v.group==="top"),h=d==null?void 0:d.filter(v=>v.group==="bottom"),p=u&&u.length>0&&h&&h.length>0,m=this.children(this.props.children),f=this.props.animationDuration||this.animationDuration,y=this.state.slide&&t.createElement("div",{className:o.classNames("k-actionsheet",this.props.className,{"k-actionsheet-bottom":!this.props.className}),role:"dialog","aria-modal":"true","aria-hidden":!1,"aria-labelledby":this.ariaLabeledBy,ref:this.actionSheetRef,onKeyDown:this.handleKeyDown},m[Ze]&&!i&&!s&&m[Ze],(i||s)&&t.createElement("div",{className:"k-actionsheet-titlebar k-text-center"},t.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},t.createElement("div",{className:this.actionSheetTitleClass,id:this.ariaLabeledBy},i&&t.createElement("div",null,i),s&&t.createElement("div",{className:"k-actionsheet-subtitle"},s)))),m[Ht]||t.createElement("div",{className:"k-actionsheet-content"},t.createElement("div",{className:"k-list-ul",role:"group"},u&&u.map((v,E)=>t.createElement(Ye,{...v,id:E,key:E,item:v,tabIndex:c||0,onClick:this.handleItemClick}))),p&&t.createElement("hr",{className:"k-hr"}),t.createElement("div",{className:"k-list-ul",role:"group"},h&&h.map((v,E)=>t.createElement(Ye,{...v,id:E+((u==null?void 0:u.length)||0),key:E,item:v,tabIndex:c||0,onClick:this.handleItemClick})))),m[Rt]);return t.createElement(t.Fragment,null,l||this.state.show?t.createElement(t.Fragment,null,t.createElement("div",{className:"k-actionsheet-container"},t.createElement("div",{className:"k-overlay",onClick:this.handleOverlayClick}),a?t.createElement(Pe.Animation,{transitionName:this.state.slide?"slide-up":"slide-down",onExited:this.hideActionSheet,transitionEnterDuration:f,transitionExitDuration:f,animationEnteringStyle:n||this.bottomPosition,animationEnteredStyle:n||this.bottomPosition,animationExitingStyle:n||this.bottomPosition,exit:!0,enter:!0,appear:!1},y):y)):null)}}tt.displayName="KendoReactActionSheet",tt.propTypes={items:r.array,subTitle:r.string,title:r.string,navigatable:r.bool,navigatableElements:r.array},tt.defaultProps={navigatable:!0,navigatableElements:[]};const Wt=e=>{const{title:s,subtitle:n,actions:a,images:l,description:c}=e.eventData,[d,u]=t.useState(e.eventData.opened||!1),[h,p]=t.useState(e.eventData.opened||!!e.collapsible),m=v=>{if(u(!d),e.onChange){const E={syntheticEvent:v,nativeEvent:v.nativeEvent,eventData:e.eventData};e.onChange.call(void 0,E)}},f=v=>{if(e.onActionClick){const E={syntheticEvent:v,nativeEvent:v.nativeEvent,eventData:e.eventData};e.onActionClick.call(void 0,E)}},y=()=>t.createElement(t.Fragment,null,t.createElement(kt,null,t.createElement("div",{className:"k-card-description"},t.createElement("p",null,c),l&&l.map((v,E)=>t.createElement(St,{key:E,src:v.src})))),t.createElement(wt,null,a&&a.map((v,E)=>t.createElement("a",{key:E,href:v.url,className:"k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary",onClick:f},v.text))));return t.createElement("div",{"data-testid":"k-timeline-card",className:o.classNames("k-timeline-card",{"k-collapsed":e.collapsible&&h})},t.createElement(Ne,{"aria-live":"polite","aria-describedby":e.id,"aria-atomic":"true",tabIndex:e.tabindex,role:e.horizontal?"tabpanel":"button","aria-expanded":e.collapsible&&h},t.createElement("span",{style:e.calloutStyle,className:o.classNames("k-timeline-card-callout","k-card-callout",{"k-callout-n":e.horizontal},{"k-callout-e":e.alternated&&!e.horizontal},{"k-callout-w":!e.alternated&&!e.horizontal})}),t.createElement("div",{className:"k-card-inner"},t.createElement(Et,null,t.createElement(Nt,null,t.createElement("span",{className:"k-event-title"},s),e.collapsible&&t.createElement("span",{onClick:v=>m(v),className:"k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button"},t.createElement(o.SvgIcon,{icon:z.chevronRightIcon}))),n&&t.createElement(Tt,null,n)),e.collapsible?t.createElement(Pe.Reveal,{transitionEnterDuration:e.transitionDuration||400,transitionExitDuration:e.transitionDuration||400,onBeforeEnter:()=>p(!1),onAfterExited:()=>p(!0)},d?y():null):y())))};Wt.propTypes={onChange:r.func,onActionClick:r.func};const Si=e=>e.sort((s,n)=>s.date.getTime()-n.date.getTime()),_t=e=>{let i;return e.reduce((n,a)=>(i!==a.date.getFullYear()?(i=a.date.getFullYear(),n.push({yearFlag:i},a)):n.push(a),n),[])},Ds=e=>{const n=ge.useInternationalization(),[a,l]=t.useState(!1),[c,d]=t.useState(!0),[u,h]=t.useState(),[p,m]=t.useState(0),[f,y]=t.useState(),[v,E]=t.useState(0),[k,w]=t.useState(0),[g,O]=t.useState(1),[I,S]=t.useState(),[T,P]=t.useState(),[F,C]=t.useState([0,0,0]),[L,H]=t.useState(0),[G,Q]=t.useState(1),$=t.useRef(null),x=t.useRef(null),A=t.useRef(null),{eventsData:j,dateFormat:Y,navigatable:Z,onActionClick:re}=e,ue=f?`${f}%`:"150px",se=t.useRef(new o.Navigation({tabIndex:0,root:$,selectors:[".k-timeline-scrollable-wrap"]}));t.useEffect(()=>{$.current&&e.navigatable&&(setTimeout(()=>{const N=se.current.first;N&&N.setAttribute("tabindex",String(0))},0),se.current.keyboardEvents={keydown:{ArrowRight:he,ArrowLeft:W,End:B,Home:_}})},[e.navigatable,g,v]),t.useEffect(()=>{se.current.update()});const Te=N=>{Z&&se.current&&se.current.triggerKeyboardEvent(N)};t.useEffect(()=>{var K;const N=o.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(st),D=x.current,M=((K=$==null?void 0:$.current)==null?void 0:K.offsetWidth)||0;return N&&D&&N.observe(D),V(),st(),C([M,0,-M]),()=>{N&&N.disconnect()}},[]),t.useEffect(()=>{const N=x.current,D=N&&N.children[g];if(D){const M=D.offsetWidth,K=!(p>=0);if(l(K),T){const U=T.length*M>v*M*((p*-1+100)/100);d(U)}(N==null?void 0:N.offsetWidth)*-p/100>=N.children.length*M&&(V(),st(),m((D.offsetLeft-D.offsetWidth)/(v*D.offsetWidth)*100*-1)),As(D)}},[v,f,g]);const he=(N,D,M)=>{if(x.current){const K=x.current.children[g+1],U=K&&K.classList.contains("k-timeline-flag-wrap")?g+2:g+1;if(T&&T.length<=U)return;v+k<=U&&xe(),Oe(U,M)}},W=(N,D,M)=>{if(x.current){const K=x.current&&x.current.children[g-1],U=K&&K.classList.contains("k-timeline-flag-wrap")?g-2:g-1;if(U<=0)return;U<k&&pe(),Oe(U,M)}},_=(N,D,M)=>{if(x.current){if(g<=1)return;const K=1;me(!0,K,0,0),Oe(K,M)}},B=(N,D,M)=>{if(x.current){const K=x.current&&x.current.children.length-1;if(K<=g)return;const U=Math.floor(K/v),Ce=U*-100,jt=U*v;me(!0,K,jt,Ce),Oe(K,M)}},V=()=>{const N=_t(j);P(N),S([N[g-1],N[g],N[g+1]])},pe=()=>{var D;if(x.current&&T){const M=k-v,K=k-1,U=T[K]&&((D=T[K])!=null&&D.yearFlag)?K-1:K,Ce=p+100>0?0:p+100;me(!1,U,M,Ce)}},xe=()=>{if(x.current&&T){const D=k+v,M=T[D]&&T[D].yearFlag?D+1:D,K=p-100;me(!0,M,D,K)}},me=(N,D,M,K)=>{ee(N,D),st(),w(M),m(K),O(D)},ee=(N,D)=>{if(I&&T){const M=De(N,G),K=Object.assign([],I,{[M]:T[D]});S(K),Q(M),H(N?-100:100),setTimeout(()=>{var zs;const U=(zs=$.current)==null?void 0:zs.offsetWidth,Ce=Object.assign([],F,{[M]:0,[De(!0,M)]:U,[De(!1,M)]:U&&-U}),jt=Object.assign([],K,{[De(!0,M)]:{},[De(!1,M)]:{}});S(jt),C(Ce),H(0)},e.transitionDuration||300)}},De=(N,D)=>{const M=N?D+1:D-1;return I?M<0?I.length-1:M%I.length:0},As=N=>{var M;const D=(g-k)*N.offsetWidth+N.offsetWidth/2+(((M=A.current)==null?void 0:M.offsetWidth)||0);h(D)},Oe=(N,D)=>{D.preventDefault(),N>g?ee(!0,N):N<g&&ee(!1,N),O(N)},st=t.useCallback(()=>{const N=x.current,D=N&&N.children[g];if(N instanceof HTMLElement&&D){const M=Math.round(N.offsetWidth/150);As(D),y(100/M),E(M)}},[]),xi=()=>({transitionDuration:"300ms"}),Ls=N=>({transform:`translateX(${N}%)`,transformOrigin:"left top"});return t.createElement(t.Fragment,null,t.createElement("div",{className:"k-timeline-track-wrap",ref:$,onKeyDown:Te},t.createElement("a",{ref:A,"aria-hidden":"true",onClick:()=>a&&pe(),className:o.classNames("k-timeline-arrow","k-timeline-arrow-left","k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button",{"k-disabled":!a})},t.createElement(o.SvgIcon,{icon:z.caretAltLeftIcon})),t.createElement("a",{"aria-hidden":"true",onClick:()=>c&&xe(),className:o.classNames("k-timeline-arrow","k-timeline-arrow-right","k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button",{"k-disabled":!c})},t.createElement(o.SvgIcon,{icon:z.caretAltRightIcon})),t.createElement("div",{className:"k-timeline-track"},t.createElement("ul",{ref:x,className:"k-timeline-scrollable-wrap",role:"tablist",tabIndex:0,style:{transform:`translateX(${p}%)`}},T&&T.map((N,D)=>N.yearFlag?t.createElement("li",{role:"none",className:"k-timeline-track-item k-timeline-flag-wrap",style:{flex:`1 0 ${ue}`},key:D},t.createElement("span",{className:"k-timeline-flag"},N.yearFlag)):t.createElement("li",{role:"tab",className:o.classNames("k-timeline-track-item",{"k-focus":D===g}),"aria-selected":D===g,style:{flex:`1 0 ${ue}`},key:D},t.createElement("div",{className:"k-timeline-date-wrap"},t.createElement("span",{className:"k-timeline-date"},n.formatDate(N.date,Y))),t.createElement("span",{onClick:M=>Oe(D,M),className:"k-timeline-circle"})))))),t.createElement("div",{className:"k-timeline-events-list"},t.createElement("ul",{className:"k-timeline-scrollable-wrap",style:L===0?{...Ls(L)}:{...Ls(L),...xi()}},I&&I.map((N,D)=>t.createElement("li",{key:D,className:"k-timeline-event",style:{transform:`translate3d(${F[D]}px, 0px, 0px)`}},N&&t.createElement(Wt,{tabindex:F[D]===0?0:-1,eventData:N,onActionClick:re,horizontal:!0,collapsible:!1,calloutStyle:{left:`${u}px`}}))))))};Ds.propTypes={onActionClick:r.func};const Os=e=>{const i=ge.useInternationalization(),[s,n]=t.useState(),{collapsibleEvents:a,transitionDuration:l,eventsData:c,dateFormat:d,alterMode:u,navigatable:h,onChange:p,onActionClick:m}=e,f=t.useRef(null),y=t.useRef(new o.Navigation({tabIndex:0,root:f,selectors:[".k-card-vertical"]}));t.useEffect(()=>{f.current&&e.navigatable&&(setTimeout(()=>{const g=y.current.first;g&&g.setAttribute("tabindex",String(0))},0),y.current.keyboardEvents={keydown:{Space:E,Enter:E}})},[e.navigatable]),t.useEffect(()=>{n(_t(c))},[]),t.useEffect(()=>{y.current.update()});const v=g=>{h&&y.current&&y.current.triggerKeyboardEvent(g)},E=(g,O,I)=>{I.preventDefault();const S=g.querySelector(".k-card-title .k-event-collapse");S&&S.click()};let k=0;const w=o.useId();return t.createElement("ul",{ref:f,onKeyDown:v},s&&s.map((g,O)=>{const I=(O+k)%2===0;g.yearFlag&&(k+=1);const S=w+"-"+O;return t.createElement(t.Fragment,{key:O},g.yearFlag?t.createElement("li",{className:"k-timeline-flag-wrap"},t.createElement("span",{className:"k-timeline-flag"},g.yearFlag)):t.createElement("li",{className:o.classNames("k-timeline-event",{"k-reverse":I})},t.createElement("div",{className:"k-timeline-date-wrap"},t.createElement("span",{className:"k-timeline-date",id:S},i.formatDate(g.date,d))),t.createElement("a",{className:"k-timeline-circle"}),t.createElement(Wt,{id:S,tabindex:h?0:-1,eventData:g,alternated:u&&I,collapsible:a,transitionDuration:l,onChange:p,onActionClick:m})))}))};Os.propTypes={onActionClick:r.func};const Cs=e=>{const i={alterMode:!1,collapsibleEvents:!0,dateFormat:"MMM dd, yyyy",...e},{collapsibleEvents:s,transitionDuration:n,className:a,alterMode:l,navigatable:c,horizontal:d,events:u,dateFormat:h,onChange:p,onActionClick:m}=i,[f,y]=t.useState(),v=t.useRef(null);return t.useEffect(()=>{v.current&&y(v.current.offsetWidth)},[]),t.createElement("div",{ref:v,className:o.classNames("k-timeline",{"k-timeline-collapsible":s,"k-timeline-vertical":!d,"k-timeline-alternating":l,"k-timeline-horizontal":d},a),style:{width:`${f}px`}},d?t.createElement(Ds,{navigatable:c,eventsData:u,dateFormat:h,transitionDuration:n,onActionClick:m}):t.createElement(Os,{navigatable:c,eventsData:u,dateFormat:h,alterMode:l,collapsibleEvents:s,transitionDuration:n,onChange:p,onActionClick:m}))};Cs.propTypes={className:r.string};const Ps=e=>{const i=t.useRef(null);return t.useEffect(()=>{e.show&&setTimeout(()=>{const s=i.current&&i.current.element,n=s&&s.querySelector(".k-menu-item"),a=o.getActiveElement(n&&n.ownerDocument);n&&n!==a&&n.focus()})},[e.show]),t.createElement(Vt.Popup,{show:e.show,offset:e.offset,popupClass:"k-menu-popup",animate:!1},t.createElement(ye,{vertical:!0,...e,ref:i,className:o.classNames("k-context-menu",e.className),onClose:e.onClose,role:"menu"},e.children))};Ps.displayName="KendoReactContextMenu";const $t=t.forwardRef((e,i)=>{o.validatePackage(R);const s=t.useRef(null),[n,a]=t.useState(!1),l=t.useCallback(()=>({element:s.current}),[]);t.useImperativeHandle(i,l);const{expanded:c=!1,disabled:d,title:u,subtitle:h,onAction:p,expandIcon:m,collapseIcon:f,expandSVGIcon:y,collapseSVGIcon:v}=e,E=t.useCallback(S=>{o.dispatchEvent(p,S,l(),{expanded:c})},[p,c]),k=t.useCallback(S=>{(S.keyCode===o.Keys.enter||S.keyCode===o.Keys.space)&&(S.preventDefault(),o.dispatchEvent(p,S,l(),{expanded:c}))},[p,c]),w=t.useCallback(()=>{e.disabled||a(!0)},[e.disabled]),g=t.useCallback(()=>{e.disabled||a(!1)},[e.disabled]),{onFocus:O,onBlur:I}=o.useAsyncFocusBlur({onFocus:w,onBlur:g});return t.createElement("div",{ref:s,className:o.classNames("k-expander",e.className,{"k-expanded":c,"k-focus":n&&!d,"k-disabled":d}),onFocus:O,onBlur:I,style:e.style,id:e.id,dir:o.useRtl(s,e.dir),onKeyDown:d?void 0:k},t.createElement("div",{role:"button","aria-controls":e.ariaControls,"aria-expanded":c,"aria-disabled":d,tabIndex:o.getTabIndex(e.tabIndex,d),className:"k-expander-header",onClick:d?void 0:E},u!==void 0?t.createElement("div",{className:"k-expander-title"},u):void 0,t.createElement("span",{className:"k-spacer"}),h!==void 0?t.createElement("div",{className:"k-expander-sub-title"},h):void 0,t.createElement("span",{className:"k-expander-indicator"},t.createElement(o.IconWrap,{name:c?f?void 0:"chevron-up":m?void 0:"chevron-down",icon:c?!v&&!f?z.chevronUpIcon:v:!y&&!m?z.chevronDownIcon:y,className:o.classNames(c?{[String(f)]:!!f}:{[String(m)]:!!m})}))),e.children)});$t.propTypes={children:r.node,className:r.string,style:r.object,dir:r.string,id:r.string,tabIndex:r.number,title:r.node,subtitle:r.node,expandIcon:r.string,collapseIcon:r.string,expanded:r.bool,disabled:r.bool,onAction:r.func},$t.displayName="KendoReactExpansionPanel";const Ms=t.forwardRef((e,i)=>t.createElement("div",{ref:i,...e,className:o.classNames("k-expander-content-wrapper",e.className)},t.createElement("div",{className:"k-expander-content"},e.children)));Ms.displayName="KendoReactExpansionPanelContent";const Ut=o.withIdHOC(ye);Ut.displayName="KendoReactMenu";const Ti=o.withIdHOC(ze);Ut.displayName="KendoReactMenu",b.ActionSheet=tt,b.ActionSheetContent=et,b.ActionSheetFooter=Qe,b.ActionSheetHeader=Je,b.ActionSheetItem=Ye,b.AppBar=Ct,b.AppBarSection=Mt,b.AppBarSpacer=At,b.Avatar=Is,b.BottomNavigation=We,b.BottomNavigationItem=we,b.Breadcrumb=Xe,b.BreadcrumbDelimiter=Ve,b.BreadcrumbLink=qe,b.BreadcrumbListItem=je,b.BreadcrumbOrderedList=Ge,b.Card=Ne,b.CardActions=wt,b.CardBody=kt,b.CardFooter=vs,b.CardHeader=Et,b.CardImage=St,b.CardSubtitle=Tt,b.CardTitle=Nt,b.ContextMenu=Ps,b.Drawer=Be,b.DrawerContent=Dt,b.DrawerItem=Fe,b.DrawerNavigation=Ke,b.ExpansionPanel=$t,b.ExpansionPanelContent=Ms,b.GridLayout=Ue,b.GridLayoutItem=Bt,b.Menu=Ut,b.MenuClassComponent=ye,b.MenuItem=nt,b.MenuItemArrow=ct,b.MenuItemInternalsList=dt,b.MenuItemLink=ot,b.PanelBar=yt,b.PanelBarItem=ne,b.Splitter=gs,b.SplitterBar=ds,b.SplitterPane=fs,b.StackLayout=_e,b.Step=ke,b.Stepper=Re,b.TabStrip=Ti,b.TabStripClassComponent=ze,b.TabStripContent=ht,b.TabStripNavigation=Le,b.TabStripNavigationItem=ut,b.TabStripTab=us,b.TileLayout=Ft,b.Timeline=Cs,b.addYearsFlags=_t,b.contentDisplayName=Ht,b.downArrowName=as,b.flatChildren=gt,b.flatVisibleChildren=bt,b.flatVisibleItems=ps,b.footerDisplayName=Rt,b.getFirstId=hs,b.getInitialState=mt,b.headerDisplayName=Ze,b.isArrayEqual=ms,b.isPresent=ii,b.leftArrowName=os,b.renderChildren=pt,b.rightArrowName=ls,b.sortEventList=Si,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
5
+ (function(b,fe){typeof exports=="object"&&typeof module<"u"?fe(exports,require("react"),require("prop-types"),require("@progress/kendo-react-common"),require("@progress/kendo-react-popup"),require("@progress/kendo-svg-icons"),require("@progress/kendo-react-buttons"),require("@progress/kendo-react-animation"),require("@progress/kendo-react-intl"),require("@progress/kendo-react-progressbars")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-common","@progress/kendo-react-popup","@progress/kendo-svg-icons","@progress/kendo-react-buttons","@progress/kendo-react-animation","@progress/kendo-react-intl","@progress/kendo-react-progressbars"],fe):(b=typeof globalThis<"u"?globalThis:b||self,fe(b.KendoReactLayout={},b.React,b.PropTypes,b.KendoReactCommon,b.KendoReactPopup,b.KendoSvgIcons,b.KendoReactButtons,b.KendoReactAnimation,b.KendoReactIntl,b.KendoReactProgressbars))})(this,function(b,fe,a,o,qt,K,Fs,Me,pe,Ks){"use strict";"use client";function Bs(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(i,s,n.get?n:{enumerable:!0,get:()=>e[s]})}}return i.default=e,Object.freeze(i)}const t=Bs(fe),X="",Le="0",te="_";function ge(e,i){if(T(e))return i[Number(e)];{const s=i[Number(re(e))];return s.items?ge(Rs(e),s.items):void 0}}function re(e){return oe(e)?e:e.split(te)[0]}function Rs(e){if(oe(e))return e;{const i=e.indexOf(te);return e.substring(i+1)}}function Gt(e){return Ae("0",e)}function Hs(e,i){return i.indexOf(e)===0?i.length===e.length||i.charAt(e.length)===te:!1}function Ae(e,i){return i?i+te+e:e}function le(e){const i=e.lastIndexOf(te);return i<0?X:e.substring(0,i)}function oe(e){return e===X||e.indexOf(te)<0}function T(e){return e!==X&&e.indexOf(te)<0}function Ws(e){return $s(e)===1}function _s(e){return st(e)===Le}function st(e){const i=e.lastIndexOf(te);return i<0?e:e.substring(i+1)}function Xt(e,i,s){return T(i)?e?Number(i)<s-1?(Number(i)+1).toString():"0":Number(i)>0?(Number(i)-1).toString():(s-1).toString():i}function $s(e){return e.split(te).length-1}class it extends t.Component{render(){return null}}it.propTypes={text:a.string,url:a.string,icon:a.string,disabled:a.bool,cssClass:a.string,cssStyle:a.object,render:a.any,linkRender:a.any,contentRender:a.any,data:a.any};function Us(e,i){if(e&&e.length>0)return{items:at(e),inputItems:e};if(nt(i).length>0){const s=Tt(nt(i));return{items:at(s),inputItems:s}}else return{items:[],inputItems:[]}}function Yt(e,i){let s={};const{text:n,url:r,icon:l,svgIcon:c,disabled:d,cssClass:u,cssStyle:h,render:m,linkRender:f,contentRender:p,data:v}=e||i.props;return n!==void 0&&(s.text=n),r!==void 0&&(s.url=r),l!==void 0&&(s.icon=l),c!==void 0&&(s.svgIcon=c),d!==void 0&&(s.disabled=d),u!==void 0&&(s.cssClass=u),h!==void 0&&(s.cssStyle=h),m!==void 0&&(s.render=m),f!==void 0&&(s.linkRender=f),p!==void 0&&(s.contentRender=p),v!==void 0&&(s.data=v),s}function nt(e){return t.Children.toArray(e).filter(i=>i&&i.type===it)}function Tt(e){const i=[];for(let s=0;s<e.length;s++){const n=e[s],r=Yt(void 0,n),l=Tt(nt(n.props.children));l.length>0&&(r.items=l),i.push(r)}return i}function at(e,i){const s=[];for(let n=0;n<e.length;n++){const r=e[n],l=Yt(r);l.id=Ae(n.toString(),i),l.isLastFromSiblings=n===e.length-1,l.items=js(r,l),s.push(l)}return s}function js(e,i){return e.contentRender?[{contentParentItemId:i.id,id:Ae(Le,i.id),isLastFromSiblings:!0,contentRender:e.contentRender,items:[]}]:e.items?at(e.items,i.id):[]}const Vs=/\S/;function qs(e,i,s,n,r,l){const c=L();switch(s){case o.Keys.left:return d();case o.Keys.right:return u();case o.Keys.up:return m();case o.Keys.down:return h();case o.Keys.enter:case o.Keys.space:return f();case o.Keys.home:return p();case o.Keys.end:return v();case o.Keys.esc:return I();default:return x()?N():i}function d(){return r?l?C():w():l?g():y()}function u(){return r?l?w():C():l?y():g()}function h(){return r?F():T(i)?E():F()}function m(){return r?M():T(i)?S():M()}function f(){return c.disabled?i:B()?Gt(i):re(i)}function p(){return Y()[0].id}function v(){const D=Y();return D[D.length-1].id}function I(){return T(i)?i:le(i)}function N(){const D=n.toLowerCase(),z=Y(),q=Number(st(i)),J=z.slice(q+1).concat(z.slice(0,q+1)).find(ne=>(ne.text||"").toLowerCase().startsWith(D));return J?J.id:i}function y(){return T(i)?M():Ws(i)?E(M(re(i))):le(i)}function w(){return T(i)?S():le(i)}function g(){return T(i)?F():E(B()?i:F(re(i)))}function C(){return E(T(i)||B()?i:F(re(i)))}function E(D){return P(!0,D)}function S(D){return P(!1,D)}function x(){return n.length===1&&Vs.test(n)}function L(D,z){return D===void 0&&(D=i),z===void 0&&(z=e),ge(D,z)}function B(D){return L(D).items.length>0}function M(D){return j(!1,D)}function F(D){return j(!0,D)}function _(D){const z=L(D).items;return z[z.length-1].id}function Y(){return T(i)?e:L(le(i),e).items}function P(D,z){z===void 0&&(z=i);const q=L(z);return B(z)&&!q.disabled?D?Gt(z):_(z):z}function j(D,z){if(z===void 0&&(z=i),T(z))return Xt(D,z,e.length);{const q=le(z),Z=st(z),J=L(q).items.length;return Ae(Xt(D,Z,J),q)}}}function Gs(e){return e.hoverOpenDelay!==void 0?e.hoverOpenDelay:e.openOnClick?0:100}function Xs(e){return e.hoverCloseDelay!==void 0?e.hoverCloseDelay:100}const Zt={vertical:"top",horizontal:"left"},Jt={vertical:"top",horizontal:"right"},Qt={vertical:"flip",horizontal:"fit"},Pt={vertical:"fit",horizontal:"flip"},es={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:Jt,collision:Qt},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:Jt,collision:Pt}},ts={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:Zt,collision:Qt},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:Zt,collision:Pt}};function Ys(e,i,s){const n=ss(e,i,s);return s?n==="downward"?es.downward:es.leftward:n==="downward"?ts.downward:ts.rightward}function ss(e,i,s){return T(e)?i?s?"leftward":"rightward":"downward":s?"leftward":"rightward"}function is(e){return e?"rtl":"ltr"}function rt(e,i){return`${e}_${i}`}class lt extends t.Component{render(){return this.props.url?t.createElement("a",{className:this.getMenuItemClassName(),role:"presentation",href:this.props.url,tabIndex:-1},this.props.children):t.createElement("span",{id:this.props.id,className:o.classNames(this.getMenuItemClassName(),this.props.className),style:this.props.style,role:"presentation"},this.props.children)}getMenuItemClassName(){return o.classNames("k-link","k-menu-link",{"k-active":this.props.opened})}}lt.propTypes={opened:a.bool,url:a.string};const ns="caret-alt-down",as="caret-alt-right",rs="caret-alt-left";class ot extends t.Component{render(){return t.createElement(o.IconWrap,{"aria-hidden":!0,...this.getIcon()})}getIcon(){switch(ss(this.props.itemId,this.props.verticalMenu===!0,this.props.dir==="rtl")){case"downward":return{name:ns,icon:K.caretAltDownIcon};case"rightward":return{name:as,icon:K.caretAltRightIcon};case"leftward":return{name:rs,icon:K.caretAltLeftIcon};default:return{}}}}ot.propTypes={itemId:a.string,dir:a.string,verticalMenu:a.bool};class ct extends t.Component{constructor(){super(...arguments),this.onMouseOver=i=>{this.props.onMouseOver(this.props.parentItemId),i.stopPropagation()},this.onMouseLeave=i=>{this.props.onMouseLeave(this.props.parentItemId),i.stopPropagation()}}render(){const i=this.props.parentItemId;return t.createElement("ul",{className:this.props.className,role:this.props.role?this.props.role:i!==void 0?"menu":"menubar",id:i!==void 0?rt(this.props.menuGuid,i):void 0,onMouseOver:i!==void 0?this.onMouseOver:void 0,onMouseLeave:i!==void 0?this.onMouseLeave:void 0,"aria-orientation":this.props["aria-orientation"]},this.renderChildItems())}renderChildItems(){return this.props.items.length>0?this.props.items.map((i,s)=>t.createElement(Ts,{item:i,isMenuVertical:this.props.isMenuVertical,isDirectionRightToLeft:this.props.isDirectionRightToLeft,focusedItemId:this.props.focusedItemId,lastItemIdToBeOpened:this.props.lastItemIdToBeOpened,tabbableItemId:this.props.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,menuGuid:this.props.menuGuid,onMouseOver:this.props.onMouseOver,onMouseLeave:this.props.onMouseLeave,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:this.props.onClick,onOriginalItemNeeded:this.props.onOriginalItemNeeded,key:s})):null}}class Ts extends t.Component{constructor(i){super(i),this.isFirstRender=!0,this.onMouseOver=s=>{this.props.onMouseOver(this.props.item.id),s.stopPropagation()},this.onMouseLeave=s=>{this.props.onMouseLeave(this.props.item.id),s.stopPropagation()},this.state={opened:!1}}componentDidMount(){const i=this.props.focusedItemId,s=this.props.item.id;i&&i===s&&this.itemElement.focus(),this.isFirstRender=!1}componentDidUpdate(i){const s=this.props.focusedItemId,n=this.props.item.id;if(s){const r=o.getActiveElement(document);i.focusedItemId!==s&&s===n&&!this.itemElement.contains(r)&&this.itemElement.focus()}}render(){const i=this.props.item,s=i.id,n=rt(this.props.menuGuid,s);return t.createElement(t.Fragment,null,t.createElement("li",{id:rt(this.props.menuGuid,s),className:this.getMenuItemClassName(i),style:i.cssStyle,tabIndex:s===this.props.tabbableItemId?0:-1,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,onMouseDown:r=>this.props.onMouseDown(r),onBlur:r=>this.props.onBlur(s,r),onFocus:()=>this.props.onFocus(s),onClick:r=>this.props.onClick(r,s),role:"menuitem","aria-disabled":i.disabled?!0:void 0,"aria-haspopup":i.items.length>0?!0:void 0,"aria-expanded":i.items.length>0?this.Opened:void 0,"aria-label":i.text,"aria-owns":this.Opened?n:void 0,ref:r=>this.itemElement=r,key:"0"},this.contentRender?this.renderContent():this.renderMenuItemLink()),this.renderPopupIfOpened())}renderContent(){const i=this.props.item.contentParentItemId;return t.createElement("div",{className:"k-content",role:"presentation"},t.createElement(this.contentRender,{item:this.props.onOriginalItemNeeded(i),itemId:i}))}renderMenuItemLink(){const i=this.props.item;if(this.linkRender)return t.createElement(this.linkRender,{item:this.props.onOriginalItemNeeded(i.id),itemId:i.id,opened:this.Opened,dir:is(this.props.isDirectionRightToLeft)});{const s=this.itemRender?t.createElement(this.itemRender,{item:this.props.onOriginalItemNeeded(i.id),itemId:i.id,key:"1"}):t.createElement("span",{className:"k-menu-link-text"},i.text);return t.createElement(lt,{url:i.url,opened:this.Opened},this.renderMenuIconIfApplicable(),s,this.renderArrowIfApplicable())}}renderPopupIfOpened(){if(this.Opened){const i=this.props.item.id,{anchorAlign:s,popupAlign:n,collision:r}=Ys(i,this.props.isMenuVertical,this.props.isDirectionRightToLeft);return t.createElement(qt.Popup,{anchor:this.itemElement,show:!0,popupClass:this.getPopupClassName(),anchorAlign:s,popupAlign:n,collision:r,animate:!1,key:"1"},t.createElement(ct,{parentItemId:i,items:this.props.item.items,menuGuid:this.props.menuGuid,focusedItemId:this.props.focusedItemId,lastItemIdToBeOpened:this.props.lastItemIdToBeOpened,tabbableItemId:this.props.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,isMenuVertical:this.props.isMenuVertical,isDirectionRightToLeft:this.props.isDirectionRightToLeft,className:"k-group k-menu-group k-reset k-menu-group-md",onMouseOver:this.props.onMouseOver,onMouseLeave:this.props.onMouseLeave,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:this.props.onClick,onOriginalItemNeeded:this.props.onOriginalItemNeeded}))}else return null}renderMenuIconIfApplicable(){const{icon:i,svgIcon:s}=this.props.item;return i||s?t.createElement(o.IconWrap,{name:i,icon:s,key:"0"}):null}renderArrowIfApplicable(){return this.props.item.items.length>0?t.createElement("span",{className:"k-menu-expand-arrow","aria-hidden":!0},t.createElement(ot,{itemId:this.props.item.id,verticalMenu:this.props.isMenuVertical,dir:is(this.props.isDirectionRightToLeft),key:"2"})):null}get itemRender(){return this.props.item.render||this.props.itemRender}get linkRender(){return this.props.item.linkRender||this.props.linkRender}get contentRender(){return this.props.item.contentParentItemId?this.props.item.contentRender:null}get Opened(){const i=this.props;return i.item.items.length>0&&Hs(i.item.id,i.lastItemIdToBeOpened)&&!this.isFirstRender}getPopupClassName(){return o.classNames("k-menu-popup",{"k-rtl":this.props.isDirectionRightToLeft})}getMenuItemClassName(i){return o.classNames("k-item","k-menu-item",{"k-first":_s(i.id),"k-last":i.isLastFromSiblings,"k-disabled":i.disabled},i.cssClass)}}class Zs{constructor(){this.phase="Initialized"}getIsDirectionRightToLeft(){return this.isDirectionRightToLeft}setIsDirectionRightToLeft(i){this.phase=this.phase==="NotInitialized"?"Initialized":"NewValueReceived",this.previousIsDirectionRightToLeft=this.isDirectionRightToLeft,this.isDirectionRightToLeft=i}hasDirectionChanged(){return this.phase==="NewValueReceived"?this.previousIsDirectionRightToLeft!==this.isDirectionRightToLeft:!1}}class Js{constructor(i,s,n){this.openOnClick=i,this.resetMenu=s,this.openItem=n,this.mouseDown=!1,this.openOnClick=i,this.isMouseOverEnabled=!i}set OpenOnClick(i){!!i!=!!this.openOnClick&&(this.mouseDown=!1,this.isMouseOverEnabled=!i),this.openOnClick=i}handleItemSelectedViaKeyboard(){this.openOnClick&&(this.isMouseOverEnabled=!1,this.resetMenu())}get IsMouseOverEnabled(){return this.isMouseOverEnabled}handleItemMouseDown(){this.mouseDown=!0}handleItemFocus(){this.openOnClick&&!this.mouseDown&&(this.isMouseOverEnabled=!0),this.mouseDown=!1}handleItemClick(i,s){this.openOnClick&&(this.isMouseOverEnabled?s&&(this.isMouseOverEnabled=!1,this.resetMenu()):(this.isMouseOverEnabled=!0,this.openItem(i)))}}const W={name:"@progress/kendo-react-layout",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"},ls={focusedItemId:X,hoveredItemId:X,tabbableItemId:Le};let be=class extends t.Component{constructor(i){super(i),this.menuWrapperEl=null,this.directionHolder=new Zs,this.inputItems=[],this.items=[],this.reset=()=>{this.clearItemHoverAndLeaveRequestsIfApplicable(),this.setState(ls)},this.onKeyDown=s=>{if(this.state.focusedItemId!==X){const n=ge(this.state.focusedItemId,this.items),r=qs(this.items,n.id,s.keyCode,s.key,this.props.vertical,this.directionHolder.getIsDirectionRightToLeft());n.id!==r&&(s.preventDefault(),this.setFocusedItemId(r)),(s.keyCode===o.Keys.enter||s.keyCode===o.Keys.space)&&!n.disabled&&(this.mouseOverHandler.handleItemSelectedViaKeyboard(),this.dispatchSelectEventIfWired(s,n.id),!s.isDefaultPrevented()&&n.items.length===0&&n.url&&window.location.assign(n.url))}s.keyCode===o.Keys.esc&&this.props.onClose&&this.props.onClose.call(void 0,s)},this.onItemMouseOver=s=>{this.mouseOverHandler.IsMouseOverEnabled&&(this.clearItemHoverAndLeaveRequestsIfApplicable(),this.itemHoverRequest=window.setTimeout(()=>{this.setHoveredItemId(s),this.itemHoverRequest=null},Gs(this.props)))},this.onItemMouseLeave=s=>{this.mouseOverHandler.IsMouseOverEnabled&&this.isItemWithDefaultClose(s)&&(this.clearItemHoverAndLeaveRequestsIfApplicable(),this.itemLeaveRequest=window.setTimeout(()=>{this.setHoveredItemId(X),this.itemLeaveRequest=null},Xs(this.props)))},this.onItemMouseDown=()=>{this.mouseOverHandler.handleItemMouseDown()},this.onItemFocus=s=>{this.setFocusedItemId(s),this.mouseOverHandler.handleItemFocus()},this.onItemClick=(s,n)=>{const r=ge(n,this.items);r.disabled||(this.setFocusedItemId(n),this.mouseOverHandler.handleItemClick(n,this.isItemWithDefaultClose(n)),this.dispatchSelectEventIfWired(s,n),!s.isDefaultPrevented()&&r.url&&window.location.assign(r.url))},this.onItemBlur=(s,n)=>{if(this.isItemWithDefaultClose(s)&&this.setFocusedItemId(X),n.relatedTarget&&n.relatedTarget.nodeName==="LI"){const r=n.relatedTarget.getAttribute("id");if(r&&r.includes(this.menuItemId))return}this.props.onClose&&this.props.onClose.call(void 0,n)},this.getInputItem=s=>ge(s,this.inputItems),o.validatePackage(W),this.mouseOverHandler=new Js(this.props.openOnClick,this.reset,this.onItemMouseOver),this.state=Object.assign({},ls,{isFirstRender:!0})}get menuItemId(){return this.props.id}get element(){return this.menuWrapperEl}render(){this.prepareItems(),this.state.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());let i=this.state.hoveredItemId?this.state.hoveredItemId:this.state.focusedItemId?le(this.state.focusedItemId):X;return t.createElement("div",{id:this.props.id,onKeyDown:this.onKeyDown,style:this.props.style,className:this.directionHolder.getIsDirectionRightToLeft()?"k-rtl":void 0,ref:s=>this.menuWrapperEl=s},t.createElement(ct,{className:this.getMenuClassName(),"aria-orientation":this.props.vertical?"vertical":void 0,items:this.items,isMenuVertical:this.props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.state.focusedItemId,lastItemIdToBeOpened:i,tabbableItemId:this.state.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,menuGuid:this.menuItemId,onMouseLeave:this.onItemMouseLeave,onMouseOver:this.onItemMouseOver,onMouseDown:this.onItemMouseDown,onFocus:this.onItemFocus,onClick:this.onItemClick,onBlur:this.onItemBlur,onOriginalItemNeeded:this.getInputItem,role:this.props.role}))}componentDidMount(){this.setState({isFirstRender:!1})}componentDidUpdate(i){(!!i.vertical!=!!this.props.vertical||this.directionHolder.hasDirectionChanged())&&this.reset(),this.mouseOverHandler.OpenOnClick=this.props.openOnClick}componentWillUnmount(){this.clearItemHoverAndLeaveRequestsIfApplicable()}setFocusedItemId(i){this.setState(s=>{const n=i===X?s.tabbableItemId:re(i);return{hoveredItemId:i===X||oe(s.hoveredItemId)&&oe(i)?s.hoveredItemId:X,focusedItemId:i,tabbableItemId:n}})}setHoveredItemId(i){this.setState(s=>oe(i)&&oe(s.focusedItemId)?{hoveredItemId:i,focusedItemId:s.focusedItemId,tabbableItemId:s.tabbableItemId}:{hoveredItemId:i,focusedItemId:X,tabbableItemId:Le})}getMenuClassName(){return o.classNames("k-reset","k-header","k-menu",{"k-menu-horizontal":!this.props.vertical},{"k-menu-vertical":this.props.vertical},this.props.className)}clearItemHoverAndLeaveRequestsIfApplicable(){this.itemHoverRequest&&(clearTimeout(this.itemHoverRequest),this.itemHoverRequest=null),this.itemLeaveRequest&&(clearTimeout(this.itemLeaveRequest),this.itemLeaveRequest=null)}isItemWithDefaultClose(i){return!this.props.customCloseItemIds||this.props.customCloseItemIds.indexOf(i)===-1}checkIsDirectionRightToLeft(){return!!(this.props.dir!==void 0?this.props.dir==="rtl":this.menuWrapperEl&&getComputedStyle(this.menuWrapperEl).direction==="rtl")}prepareItems(){const{items:i,inputItems:s}=Us(this.props.items,this.props.children);this.items=i,this.inputItems=s}dispatchSelectEventIfWired(i,s){o.dispatchEvent(this.props.onSelect,i,this,{item:this.getInputItem(s),itemId:s})}};be.propTypes={vertical:a.bool,items:a.arrayOf(a.object),style:a.object,dir:a.string,hoverOpenDelay:a.number,hoverCloseDelay:a.number,openOnClick:a.bool,itemRender:a.any,linkRender:a.any,customCloseItemIds:a.arrayOf(a.string),onSelect:a.func,role:a.string},be.defaultProps={vertical:!1};class dt extends t.Component{constructor(){super(...arguments),this.itemRef=null,this.focus=()=>{this.itemRef&&(this.itemRef.tabIndex=0,this.itemRef.focus())},this.blur=()=>{this.itemRef&&(this.itemRef.tabIndex=-1,this.itemRef.blur())},this.onClick=()=>{this.props.onSelect&&this.props.onSelect(this.props.index),this.itemRef&&(this.itemRef.tabIndex=0,this.itemRef.focus())}}render(){const{id:i,active:s,disabled:n,title:r="Untitled",first:l,last:c,contentPanelId:d,index:u}=this.props,h={id:`${i}-${u.toString()}`,"aria-selected":s,"aria-controls":s?d:void 0,"aria-disabled":n,role:"tab",onClick:n?void 0:this.onClick},m=o.classNames("k-item",{["k-first"]:l,["k-last"]:c,["k-disabled"]:n,["k-active"]:s});return t.createElement("li",{...h,className:m,ref:f=>this.itemRef=f,onBlur:this.blur},t.createElement("span",{className:"k-link"},r))}}dt.propTypes={active:a.bool,disabled:a.bool,index:a.number,onSelect:a.func,title:a.oneOfType([a.string,a.element]),first:a.bool,last:a.bool};const Qs=e=>Array.apply(null,Array(e)),Ps=e=>e.preventDefault(),ve="smooth",ae="prev",Ie="next";class ze extends t.Component{constructor(i){super(i),this.itemsNavRef=t.createRef(),this.isRtl=()=>this.props.dir==="rtl",this.onWheel=s=>{s.stopPropagation();const n=s.deltaY<0?ae:Ie;this.setNewScrollPosition(n,s)},this.arrowClickPrev=s=>{this.handleArrowClick(ae,s)},this.arrowClickNext=s=>{this.handleArrowClick(Ie,s)},this.handleArrowClick=(s,n)=>{this.setNewScrollPosition(s,n)},this.setNewScrollPosition=(s,n)=>{const r=this.itemsNavRef.current;if(!r)return;const l=this.horizontalScroll(),c=l?r.scrollWidth-r.offsetWidth:r.scrollHeight-r.offsetHeight,d=(n.type==="click"?this.props.buttonScrollSpeed:this.props.mouseScrollSpeed)||0;let u=l?r.scrollLeft:r.scrollTop,h=l?r.scrollWidth-r.scrollLeft:r.scrollHeight-r.scrollTop,m=r.scrollWidth-r.scrollLeft*-1;this.isRtl()&&this.horizontalScroll()?(s===ae&&u<0&&(u+=d,m+=d),s===Ie&&u<c&&(u-=d,m-=d),u=Math.min(0,Math.min(c,u))):(s===ae&&u>0&&(u-=d,h+=d),s===Ie&&u<c&&(u+=d,h-=d),u=Math.max(0,Math.min(c,u)));const f=u===0,p=n.type==="click"?ve:void 0;if(l){const v=this.isRtl()?Math.round(m)<=r.clientWidth||Math.floor(m)<=r.clientWidth:Math.round(h)<=r.clientWidth||Math.floor(h)<=r.clientWidth;this.setState({disabledPrev:f,disabledNext:v}),r.scrollTo({left:u,behavior:p})}else this.setState({disabledPrev:f,disabledNext:Math.round(h)<=r.clientHeight||Math.floor(h)<=r.clientHeight}),r.scrollTo({top:u,behavior:p})},this.renderArrow=(s,n)=>{const r=this.horizontalScroll(),l={prev:{arrowTab:"k-tabstrip-prev",fontIcon:r?this.isRtl()?"caret-alt-right":"caret-alt-left":"caret-alt-up",svgIcon:r?this.isRtl()?K.caretAltRightIcon:K.caretAltLeftIcon:K.caretAltUpIcon},next:{arrowTab:"k-tabstrip-next",fontIcon:r?this.isRtl()?"caret-alt-left":"caret-alt-right":"caret-alt-down",svgIcon:r?this.isRtl()?K.caretAltLeftIcon:K.caretAltRightIcon:K.caretAltDownIcon}},c=(s===ae?this.props.prevButton:this.props.nextButton)||Fs.Button,d=s===ae?this.arrowClickPrev:this.arrowClickNext;return t.createElement(c,{disabled:n,className:`${l[s].arrowTab}`,onClick:d,icon:l[s].fontIcon,svgIcon:l[s].svgIcon,onMouseDown:Ps,tabIndex:-1,fillMode:"flat"})},this.state={disabledPrev:this.props.selected===0,disabledNext:this.props.selected===t.Children.count(this.props.children)-1}}componentDidMount(){this.props.scrollable&&this.scrollToSelected()}componentDidUpdate(i){const{scrollable:s,selected:n}=this.props;s&&i.selected!==n&&(this.scrollToSelected(),this.setState({disabledPrev:n===0,disabledNext:n===t.Children.count(this.props.children)-1}))}render(){const{selected:i,tabPosition:s,children:n,onSelect:r,onKeyDown:l,navItemId:c}=this.props,d=t.Children.count(n),u=t.Children.toArray(n);let h;n&&(h=Qs(d).map((p,v,I)=>{const N={active:i===v,disabled:u[v].props.disabled,index:v,title:u[v].props.title,first:v===0,last:v===I.length-1,contentPanelId:this.props.contentPanelId,id:c,onSelect:r};return t.createElement(dt,{key:v,...N})}));const m=o.classNames("k-tabstrip-items-wrapper",{"k-hstack":s==="top"||s==="bottom","k-vstack":s==="left"||s==="right"}),f=o.classNames("k-tabstrip-items","k-reset");return t.createElement("div",{className:m},this.props.scrollable?t.createElement(t.Fragment,null,this.renderArrow(ae,this.state.disabledPrev),t.createElement("ul",{ref:this.itemsNavRef,className:f,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:l,onWheel:this.onWheel,"aria-orientation":s==="left"||s==="right"?"vertical":void 0},h),this.renderArrow(Ie,this.state.disabledNext)):t.createElement("ul",{className:f,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:l},h))}scrollToSelected(){const i=this.itemsNavRef.current,s=i&&i.children[this.props.selected||0];if(s instanceof HTMLElement&&i instanceof HTMLElement){const n=this.horizontalScroll(),r=n?i.offsetWidth:i.offsetHeight,l=n?s.offsetWidth:s.offsetHeight,c=n?"left":"top";let d=n?i.scrollLeft:i.scrollTop,u=0;if(this.isRtl()){const h=s.offsetLeft;d=d*-1,h<0?(u=h-l+i.offsetLeft,i.scrollTo({[c]:u,behavior:ve})):h+l>r-d&&(u=d+h-l,i.scrollTo({[c]:u,behavior:ve}))}else{const h=n?s.offsetLeft-i.offsetLeft:s.offsetTop-i.offsetTop;d+r<h+l?(u=h+l-r,i.scrollTo({[c]:u,behavior:ve})):d>h&&(u=h,i.scrollTo({[c]:u,behavior:ve}))}}}horizontalScroll(){return/top|bottom/.test(this.props.tabPosition||"top")}}ze.propTypes={children:a.oneOfType([a.element,a.arrayOf(a.element)]),onSelect:a.func,onKeyDown:a.func,selected:a.number,tabIndex:a.number};class ut extends t.Component{constructor(){super(...arguments),this.contentId=this.props.contentPanelId,this.childFactory=i=>t.cloneElement(i,{...i.props,in:i.props.children.props.id===String(this.contentId+this.props.selected)})}render(){const{children:i,selected:s,contentPanelId:n,keepTabsMounted:r,navItemId:l}=this.props,c=i&&typeof s=="number"&&t.Children.toArray(i)[s],d=o.classNames("k-tabstrip-content","k-active",c&&c.props.contentClassName);return t.createElement("div",{className:d,style:this.props.style,id:n,role:"tabpanel","aria-hidden":r,"aria-describedby":`${l}-${(s||"").toString()}`},this.renderContent(i))}renderContent(i){return this.props.keepTabsMounted?t.Children.map(this.props.children,(s,n)=>this.renderChild(s,n)):this.renderChild(t.Children.toArray(i)[this.props.selected],this.props.selected)}renderChild(i,s){const n=s===this.props.selected,r={style:{display:n?void 0:"none"}},l={position:"initial",display:n?void 0:"none"};return i.props.disabled?null:this.props.animation?t.createElement(Me.Fade,{appear:!0,exit:this.props.keepTabsMounted,style:l,childFactory:this.props.keepTabsMounted?this.childFactory:void 0},t.createElement("div",{...r,id:String(this.contentId+s),key:s},i.props.children)):t.createElement("div",{...r,key:s},i.props.children)}}ut.propTypes={animation:a.bool,children:a.oneOfType([a.element,a.arrayOf(a.element)]),selected:a.number,style:a.object};let Fe=class extends t.Component{constructor(i){super(i),this._element=null,this.showLicenseWatermark=!1,this.keyBinding={[o.Keys.left]:()=>this.prevNavigatableTab(),[o.Keys.right]:()=>this.nextNavigatableTab(),[o.Keys.down]:()=>this.nextNavigatableTab(),[o.Keys.up]:()=>this.prevNavigatableTab(),[o.Keys.home]:()=>0,[o.Keys.end]:()=>t.Children.count(this.props.children)-1},this.onSelect=s=>{this.props.selected!==s&&this.props.onSelect&&this.props.onSelect({selected:s})},this.onKeyDown=s=>{let n;switch(s.keyCode){case o.Keys.left:n=this.keyBinding[this.invertKeys(o.Keys.left,o.Keys.right)];break;case o.Keys.right:n=this.keyBinding[this.invertKeys(o.Keys.right,o.Keys.left)];break;case o.Keys.up:n=this.keyBinding[o.Keys.up];break;case o.Keys.down:n=this.keyBinding[o.Keys.down];break;case o.Keys.home:n=this.keyBinding[o.Keys.home];break;case o.Keys.end:n=this.keyBinding[o.Keys.end];break}n&&(s.preventDefault(),this.onSelect(n()))},this.renderContent=s=>{const{selected:n,children:r,tabContentStyle:l}=s,c=t.Children.count(r);return n<c&&n>-1?t.createElement(ut,{index:n,...s,style:l}):null},this.firstNavigatableTab=()=>{const s=this.children(),n=t.Children.count(s);if(s){for(let r=0;r<n;r++)if(!s[r].props.disabled)return r}},this.lastNavigatableTab=()=>{const s=this.children(),n=t.Children.count(s);if(s){for(let r=n-1;r>0;r--)if(!s[r].props.disabled)return r}},this.prevNavigatableTab=()=>{const s=this.children(),{selected:n}=this.props,r=n?n-1:-1;if(r<0)return this.lastNavigatableTab();if(s)for(let l=r;l>-1;l--){if(!s[l].props.disabled)return l;if(l===0)return this.lastNavigatableTab()}},this.nextNavigatableTab=()=>{const s=this.children(),{selected:n}=this.props,r=n?n+1:1,l=t.Children.count(s);if(r>=l)return this.firstNavigatableTab();if(s)for(let c=r;c<l;c++){if(!s[c].props.disabled)return c;if(c+1===l)return this.firstNavigatableTab()}},o.validatePackage(W),this.showLicenseWatermark=o.shouldShowValidationUI(W)}get contentPanelId(){return this.props.id+"-content-panel-id"}get navItemId(){return this.props.id+"-nav-item-id"}render(){const i={...this.props,children:this.children(),contentPanelId:this.contentPanelId,navItemId:this.navItemId,onKeyDown:this.onKeyDown,onSelect:this.onSelect},{tabPosition:s,tabIndex:n=0}=i,r=s==="bottom",l=o.classNames("k-tabstrip k-pos-relative",{"k-tabstrip-left":s==="left","k-tabstrip-right":s==="right","k-tabstrip-bottom":s==="bottom","k-tabstrip-top":s==="top","k-tabstrip-scrollable":this.props.scrollable},this.props.className);return t.createElement("div",{id:this.props.id,ref:c=>this._element=c,dir:this.props.dir,className:l,style:this.props.style},!r&&t.createElement(ze,{...i,tabIndex:n}),this.renderContent(i),r&&t.createElement(ze,{...i,tabIndex:n}),this.showLicenseWatermark&&t.createElement(o.WatermarkOverlay,null))}invertKeys(i,s){return this._element&&getComputedStyle(this._element).direction==="rtl"||!1?s:i}children(){return t.Children.toArray(this.props.children).filter(i=>i)}};Fe.propTypes={animation:a.bool,children:a.node,onSelect:a.func,selected:a.number,style:a.object,tabContentStyle:a.object,tabPosition:a.string,tabIndex:a.number,className:a.string,dir:a.string},Fe.defaultProps={animation:!0,tabPosition:"top",keepTabsMounted:!1,buttonScrollSpeed:100,mouseScrollSpeed:10};class os extends t.Component{constructor(i){super(i),this.draggable=null,this.onDrag=(s,n,r)=>{const{event:l}=s,{onDrag:c,index:d}=this.props,u=this.draggable&&this.draggable.element;u&&!this.isStatic&&this.isDraggable&&c(l,u,d,n,r)},this.onFocus=()=>{this.setState({focused:!0})},this.onBlur=()=>{this.setState({focused:!1})},this.onToggle=s=>{const{onToggle:n,index:r,prev:l,next:c}=this.props;(l.collapsible||c.collapsible)&&n(l.collapsible?r:r+1,s)},this.onPrevToggle=s=>{const{onToggle:n,index:r,prev:l}=this.props;l.collapsible&&n(r,s)},this.onNextToggle=s=>{const{onToggle:n,index:r,next:l}=this.props;l.collapsible&&n(r+1,s)},this.onKeyDown=s=>{const n=s&&s.keyCode,r=this.isHorizontal,{index:l}=this.props,c=this.draggable&&this.draggable.element,d=(u,h,m)=>{s.preventDefault(),this.props.onKeyboardResize(u,h,m,s)};c&&(n===o.Keys.enter?(s.preventDefault(),this.onToggle(s)):this.isDraggable&&(r&&n===o.Keys.left?d(c,l,-10):r&&n===o.Keys.right?d(c,l,10):!r&&n===o.Keys.up?d(c,l,-10):!r&&n===o.Keys.down&&d(c,l,10)))},this.state={focused:!1}}get isStatic(){const{prev:i,next:s}=this.props,n=i.resizable&&s.resizable,r=i.collapsible||s.collapsible;return!n&&!r}get isDraggable(){const{prev:i,next:s}=this.props,n=i.resizable&&s.resizable,r=i.collapsed||s.collapsed;return!!n&&!r}get isHorizontal(){return this.props.orientation==="horizontal"}render(){const i=this.isDraggable,s=this.isStatic,n=this.isHorizontal,r=o.classNames("k-splitbar",{["k-focus"]:this.state.focused,["k-splitbar-horizontal"]:n,["k-splitbar-vertical"]:!n,["k-splitbar-draggable-horizontal"]:n&&i,["k-splitbar-draggable-vertical"]:!n&&i,["k-splitbar-static-horizontal"]:n&&s,["k-splitbar-static-vertical"]:!n&&s});return t.createElement(o.Draggable,{onPress:l=>this.onDrag(l,!0,!1),onDrag:l=>this.onDrag(l,!1,!1),onRelease:l=>this.onDrag(l,!1,!0),ref:l=>{this.draggable=l}},t.createElement("div",{tabIndex:s?-1:0,role:"separator","aria-valuenow":0,"aria-label":this.props.ariaLabel,"aria-orientation":n?"vertical":void 0,className:r,style:{touchAction:"none"},onFocus:this.onFocus,onBlur:this.onBlur,onDoubleClick:this.onToggle,onKeyDown:this.onKeyDown},this.props.prev.collapsible&&t.createElement("div",{className:"k-collapse-prev",onClick:this.onPrevToggle},t.createElement(o.IconWrap,{name:this.props.prev.collapsible?n?this.props.prev.collapsed?this.props.isRtl?"caret-alt-left":"caret-alt-right":this.props.isRtl?"caret-alt-right":"caret-alt-left":this.props.prev.collapsed?"caret-alt-down":"caret-alt-up":void 0,icon:this.props.prev.collapsible?n?this.props.prev.collapsed?this.props.isRtl?K.caretAltLeftIcon:K.caretAltRightIcon:this.props.isRtl?K.caretAltRightIcon:K.caretAltLeftIcon:this.props.prev.collapsed?K.caretAltDownIcon:K.caretAltUpIcon:void 0,size:"xsmall"})),t.createElement("div",{className:"k-resize-handle"}),this.props.next.collapsible&&t.createElement("div",{className:"k-collapse-next",onClick:this.onNextToggle},t.createElement(o.IconWrap,{name:this.props.next.collapsible?n?this.props.next.collapsed?this.props.isRtl?"caret-alt-right":"caret-alt-left":this.props.isRtl?"caret-alt-left":"caret-alt-right":this.props.next.collapsed?"caret-alt-up":"caret-alt-down":void 0,icon:this.props.next.collapsible?n?this.props.next.collapsed?this.props.isRtl?K.caretAltRightIcon:K.caretAltLeftIcon:this.props.isRtl?K.caretAltLeftIcon:K.caretAltRightIcon:this.props.next.collapsed?K.caretAltUpIcon:K.caretAltDownIcon:void 0,size:"xsmall"}))))}}class cs extends t.Component{render(){return null}}cs.propTypes={disabled:a.bool,contentClassName:a.string,children:a.oneOfType([a.element,a.node]),title:a.oneOfType([a.string,a.element,a.node])};function ei({imageUrl:e,icon:i,svgIcon:s,iconClass:n}){return e?t.createElement("img",{role:"presentation",className:"k-panelbar-item-icon k-image",src:e}):i||s?t.createElement(o.IconWrap,{className:"k-panelbar-item-icon",name:i,icon:s}):n?t.createElement("span",{role:"presentation",className:"k-panelbar-item-icon "+n}):null}class ie extends t.PureComponent{constructor(i){super(i),this.handleItemClick=()=>{const{onSelect:s,disabled:n,id:r}=this.props;s&&!n&&s.call(void 0,{uniquePrivateKey:this.props.uniquePrivateKey,id:r,target:this})},this.childFactory=s=>this.props.keepItemsMounted?t.cloneElement(s,{...s.props,in:this.props.expanded}):s,this.state={show:i.expanded||!1}}render(){const{id:i,children:s,title:n,uniquePrivateKey:r,disabled:l,selected:c,focused:d,expanded:u,className:h,level:m,headerClassName:f,animation:p,keepItemsMounted:v}=this.props,I={role:"treeitem","aria-disabled":l,"aria-hidden":!l&&!u,"aria-selected":!l&&c,"aria-expanded":!l&&u&&!!s},N=o.classNames("k-panelbar-item",{"k-panelbar-header":m===0,"k-expanded":u&&!!s,"k-disabled":l},`k-level-${m}`,h),y=o.classNames("k-link",{"k-selected":!l&&c,"k-focus":!l&&d},f),w={display:"block"},g=ei(this.props),C=!l&&s?t.createElement(o.IconWrap,{name:u?"chevron-up":"chevron-down",icon:u?K.chevronUpIcon:K.chevronDownIcon,className:o.classNames("k-panelbar-toggle",u?"k-panelbar-collapse":"k-panelbar-expand")}):null,S=!l&&u||v?t.createElement("ul",{role:"group","aria-expanded":u,"aria-hidden":!u,className:"k-panelbar-group k-panel k-group",style:{display:v?this.state.show?"block":"none":"block"}},s):null,x=(p===void 0||p)&&!l&&s?t.createElement(Me.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,key:r+"_animation",style:w,children:S,childFactory:v&&this.childFactory,unmountOnExit:!v,onBeforeEnter:()=>v&&this.setState({show:!0}),onAfterExited:()=>v&&this.setState({show:!1})}):S;return t.createElement("li",{id:i,className:N,...I},t.createElement("span",{className:y,onClick:this.handleItemClick},g,t.createElement("span",{className:"k-panelbar-item-text"},n),C),x)}}ie.propTypes={animation:a.bool,children:a.any,className:a.string,icon:a.string,iconClass:a.string,imageUrl:a.string,svgIcon:o.svgIconPropType,expanded:a.bool,disabled:a.bool,onSelect:a.func,selected:a.bool,level:a.number,title:a.oneOfType([a.string,a.element]),id:a.oneOfType([a.string,a.number]),focused:a.bool,keepItemsMounted:a.bool},ie.defaultProps={title:"Untitled"};const ht=({animation:e=!0,keepItemsMounted:i=!1,state:s,expanded:n,handleSelect:r,children:l,parentExpanded:c=!0,level:d=0,parentPrivateKey:u=[]})=>t.Children.map(l,(h,m)=>{if(h&&h.type===ie){let f,p=ft(h,u,m);if(h.props.children){const v={animation:e,keepItemsMounted:i,state:s,expanded:n,handleSelect:r,children:h.props.children,parentExpanded:(n||[]).indexOf(p)>-1,level:d+1,parentPrivateKey:[...u,p]};f=ht(v)}return t.cloneElement(h,{...h.props,animation:h.props.animation!==void 0?h.props.animation:e,keepItemsMounted:i,id:h.props.id||`k-panelbar-item-default-${p}`,uniquePrivateKey:p,parentUniquePrivateKey:u,parentExpanded:c,level:d,expanded:(n||[]).indexOf(p)>-1,focused:s.focused===p&&s.wrapperFocused,selected:s.selected===p,children:f,onSelect:r})}else return t.createElement("div",{className:"k-panelbar-content k-content"},h)}),ds=e=>{const i=t.Children.toArray(e.children)[0];return i?ft(i,[],0):""},mt=(e,i,s={expanded:e.expanded||[],selected:e.selected||"",focused:e.focused||"",wrapperFocused:!1},n=!0,r=[])=>(t.Children.map(e.children,(l,c)=>{if(l&&l.type===ie){let d=ft(l,r,c);!l.props.disabled&&n&&(l.props.selected&&(s.selected=d),l.props.focused&&(s.focused=d),l.props.expanded&&(i==="multiple"?s.expanded.push(d):i==="single"&&(s.expanded=[d])),l.props.children&&(s=mt(l.props,i,s,!!l.props.expanded,[...r,d])))}}),s),ft=(e,i,s)=>e&&e.props&&e.props.id?e.props.id:i.length?i[i.length-1]+`.${s}`:`.${s}`;function us(e,i=[]){return(e||[]).forEach(s=>{s.disabled||(i.push(s),s.expanded&&s.children&&us(s.children,i))}),i}function pt(e,i=[]){return t.Children.forEach(e,s=>{s&&s.props&&!s.props.disabled&&(i.push(s),s.props.children&&pt(s.props.children,i))}),i}function gt(e,i=[]){return t.Children.forEach(e,s=>{s&&s.props&&!s.props.disabled&&(s.props.expanded||s.props.parentExpanded)&&(i.push(s),s.props.children&&gt(s.props.children,i))}),i}const ti=e=>e!=null;b.PanelBarUtils=void 0,(e=>{function i(s){return s.map((n,r)=>{let l;return n.content&&(l=n.content),n.children&&(l=i(n.children)),t.createElement(ie,{...n,children:l,key:n.id||r})})}e.mapItemsToComponents=i})(b.PanelBarUtils||(b.PanelBarUtils={}));const hs=(e,i)=>e.length!==i.length?!1:e.every((s,n)=>s===i[n]);var Q=(e=>(e[e.Toggle=0]="Toggle",e[e.Next=1]="Next",e[e.Previous=2]="Previous",e))(Q||{});class bt extends t.Component{constructor(i){super(i),this._element=null,this.showLicenseWatermark=!1,this.handleSelect=n=>{this.onSelect(n),this.onFocus(n)},this.onSelect=n=>{const r=pt(t.Children.toArray(this.children));let l,c;switch(r.forEach(d=>{d.props.uniquePrivateKey===(n.uniquePrivateKey||this.state.focused)&&(l=d)}),this.expandMode){case"single":c=[...l.props.parentUniquePrivateKey,l.props.uniquePrivateKey],hs(this.expandedItems,c)&&(l.props.parentUniquePrivateKey?c=[...l.props.parentUniquePrivateKey]:c=[]);break;case"multiple":{c=this.expandedItems.slice();let d=c.indexOf(l.props.uniquePrivateKey);d===-1?c.push(l.props.uniquePrivateKey):c.splice(d,1);break}default:c=this.expandedItems.slice();break}this.setState({selected:l.props.uniquePrivateKey,expanded:c}),this.props.onSelect&&this.props.onSelect.call(void 0,{target:l,expandedItems:c})},this.onFocus=(n,r=0)=>{const l=gt(t.Children.toArray(this.children));let c;l.forEach((d,u)=>{if(d.props.uniquePrivateKey===(n.uniquePrivateKey||this.state.focused)){let h=u+r<0?0:u+r>l.length?l.length-1:u+r;c=l[h]}}),c&&(this.activeDescendant=c.props.id,this.setState({focused:c.props.uniquePrivateKey}))},this.onNavigate=(n,r)=>{let l;switch(r){case Q.Previous:l=-1,this.onFocus(n,l);break;case Q.Next:l=1,this.onFocus(n,l);break;case Q.Toggle:this.onSelect(n);break}},this.handleWrapperFocus=()=>{clearTimeout(this.nextTickId),this.state.wrapperFocused||this.setState({wrapperFocused:!0})},this.handleWrapperBlur=()=>{this.nextTick(()=>{this.setState({wrapperFocused:!1})})},this.handleKeyDown=n=>{const r=this._element&&getComputedStyle(this._element).direction==="rtl"||!1;if(n.target===n.currentTarget){const l=n.keyCode;let c;switch(l){case o.Keys.left:c=r?Q.Next:Q.Previous;break;case o.Keys.up:c=Q.Previous;break;case o.Keys.right:c=r?Q.Previous:Q.Next;break;case o.Keys.down:c=Q.Next;break;case o.Keys.space:case o.Keys.enter:c=Q.Toggle;break;default:c=null;break}c!==null&&(n.preventDefault(),this.onNavigate(n,c))}},o.validatePackage(W),this.showLicenseWatermark=o.shouldShowValidationUI(W);const s=mt(i,this.expandMode);s.focused||(s.focused=ds(i)),this.state=s}get expandMode(){return this.props.expandMode||"multiple"}get selectedItem(){const{selected:i=this.state.selected}=this.props;return i}get expandedItems(){return this.props.isControlled?this.props.expanded||[]:this.state.expanded}get children(){const i={...this.state,selected:this.selectedItem},s={animation:this.props.animation,keepItemsMounted:this.props.keepItemsMounted,state:i,expanded:this.expandedItems,handleSelect:this.handleSelect,children:this.props.children};return ht(s)}render(){const i={"aria-activedescendant":this.activeDescendant},s=o.classNames("k-panelbar","k-pos-relative",this.props.className);return t.createElement("ul",{ref:n=>{this._element=n},dir:this.props.dir,role:"tree",tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,className:s,style:this.props.style,...i},this.children,this.showLicenseWatermark&&t.createElement(o.WatermarkOverlay,null))}nextTick(i){this.nextTickId=window.setTimeout(()=>i())}}bt.propTypes={animation:a.bool,children:function(e,i){const s=e[i];if(s){if(Array.isArray(s)){for(let n of s)if(!n.type||n.type!==ie)return new Error("PanelBar children should be either PanelBarItem or Array of PanelBarItem.")}else if(s.type!==ie)return new Error("PanelBar child should be either PanelBarItem or Array of PanelBarItem.");return null}return null},dir:a.string,selected:a.string,expanded:a.arrayOf(a.string),focused:a.string,expandMode:a.oneOf(["single","multiple"]),className:a.string,keepItemsMounted:a.bool,onSelect:a.func,style:a.object},bt.defaultProps={expandMode:"multiple",animation:!0,keepItemsMounted:!1};class ms extends t.Component{render(){const{id:i,size:s,collapsed:n,overlay:r,containsSplitter:l,collapsible:c,resizable:d,scrollable:u,keepMounted:h}=this.props,m=s&&s.length>0,f={flexBasis:s},p=o.classNames("k-pane",{["k-hidden"]:n,hidden:n,["k-pane-flex"]:l,["k-pane-static"]:!d&&!c||m,["k-scrollable"]:u});return t.createElement("div",{id:i,role:"group",style:f,className:p},!n||h?this.props.children:void 0,r?t.createElement("div",{className:"k-splitter-overlay k-overlay"}):void 0)}}const vt="splitBarLabel",si={[vt]:"split bar"},ii={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},ni=150;class fs extends t.Component{constructor(i){super(i),this._container=null,this.validatePanes=s=>{if(!s.filter(r=>r.size===void 0).length)throw new Error("The Splitter should have at least one pane without a set size.")},this.mapPaneOptions=(s,n)=>{const r=this.orientation,{dragIndex:l,isDragging:c}=this.state,d=[];for(let u=0;u<n.length;u++){let h=!1;const m=n[u];t.isValidElement(m)&&(h=m.type.displayName==="Splitter");let f=!1;c&&l!==void 0&&(f=l===u||l+1===u),d.push({...ii,orientation:r,containsSplitter:h,overlay:f,...(s||[])[u]})}return d},this.mapSplitterPanes=(s,n)=>{const r=pe.provideLocalizationService(this).toLanguageString(vt,si[vt]);return s.map((l,c)=>{let d;const u=c*2,h=u+1;if(c+1<s.length){const f=s[c+1];d=t.createElement(os,{key:h,index:c,orientation:l.orientation,prev:l,next:f,ariaLabel:r,onDrag:this.onBarDragResize,onToggle:this.onBarToggle,onKeyboardResize:this.onBarKeyboardResize,isRtl:this.isRtl})}return[t.createElement(ms,{key:u,...l},n[c]),d]})},this.onBarToggle=(s,n)=>{const l=this.panesOptions(this.panesContent).map((c,d)=>{const u=this.getPaneProps(c);return d===s?{...u,collapsed:!c.collapsed}:{...u}});this.props.onChange&&this.props.onChange({newState:l,isLast:!0,nativeEvent:n})},this.onBarDragResize=(s,n,r,l,c)=>{const d=new Date().getTime(),{pageX:u,pageY:h}=s,{prevElement:m,nextElement:f}=this.surroudingPanes(n);if(!m||!f)return;if(l){this.setState({isDragging:!0,dragIndex:r,startTime:d,originalX:u,originalY:h,originalPrevSize:this.elementSize(m),originalNextSize:this.elementSize(f)});return}const{originalPrevSize:p,originalNextSize:v,startTime:I,originalX:N,originalY:y}=this.state;if(!l&&d-I<ni){c&&this.resetDragState();return}let w;this.orientation==="vertical"?w=h-y:this.isRtl?w=N-u:w=u-N,this.resize(r,r+1,p,v,w,c,s),c&&this.resetDragState()},this.onBarKeyboardResize=(s,n,r,l)=>{const{prevElement:c,nextElement:d}=this.surroudingPanes(s),u=this.elementSize(c),h=this.elementSize(d);this.resize(n,n+1,u,h,r,!0,l)},this.containerSize=()=>this._container?this.elementSize(this._container,!0):0,this.panesOptions=s=>this.mapPaneOptions(this.panes,s),this.elementSize=(s,n)=>{const r=n?"client":"offset";return this.orientation==="vertical"?s[`${r}Height`]:s[`${r}Width`]},this.clamp=(s,n,r)=>Math.min(n,Math.max(s,r)),this.fixedSize=s=>s&&s.length>0,o.validatePackage(W),this.state={isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,panes:i.defaultPanes||[]}}get isControlledState(){return this.props.panes!==void 0}get panes(){return this.panesDuringOnChange!==void 0?this.panesDuringOnChange:this.isControlledState?this.props.panes:this.state.panes}get orientation(){return this.props.orientation||"horizontal"}get isRtl(){return this._container&&getComputedStyle(this._container).direction==="rtl"||!1}get panesContent(){return t.Children.toArray(this.props.children).filter(i=>i)}render(){const i=this.panesContent,s=this.panesOptions(i),n=o.classNames("k-widget","k-splitter","k-splitter-flex",`k-splitter-${this.orientation}`,this.props.className);return this.validatePanes(s),t.createElement("div",{style:this.props.style,ref:r=>this._container=r,className:n},this.mapSplitterPanes(s,i))}surroudingPanes(i){return{prevElement:i.previousElementSibling,nextElement:i.nextElementSibling}}isPercent(i){return/%$/.test(i)}toPixels(i,s){let n=parseInt(i,10);return this.isPercent(i)&&(n=s*n/100),n}resetDragState(){this.setState({isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0})}resize(i,s,n,r,l,c,d){const u=this.panesOptions(this.panesContent),h=u[i],m=u[s],f=n+r,p=this.containerSize(),v=E=>this.toPixels(E,p),I={index:i,initialSize:n,min:v(h.min)||f-v(m.max)||0,max:v(h.max)||f-v(m.min)||f},N={index:s,initialSize:r,min:v(m.min)||f-v(h.max)||0,max:v(m.max)||f-v(h.min)||f},y=(E,S)=>{const x=u[E.index],L=this.clamp(E.min,E.max,E.initialSize+S);return this.isPercent(x.size||"")?100*L/p+"%":L+"px"};let w,g;this.fixedSize(h.size)&&this.fixedSize(m.size)?(w=y(I,l),g=y(N,-l)):m.collapsible||this.fixedSize(m.size)?g=y(N,-l):w=y(I,l);const C=u.map((E,S)=>{const x=this.getPaneProps(E);return S===i?{...x,size:w}:S===s?{...x,size:g}:{...x}});this.panesDuringOnChange=C,this.isControlledState||this.setState({panes:C}),this.props.onChange&&this.props.onChange({newState:C,isLast:c,nativeEvent:d}),this.panesDuringOnChange=void 0}getPaneProps(i){const{orientation:s,overlay:n,containsSplitter:r,...l}=i;return l}}fs.displayName="Splitter";var ps=(e=>(e.TEXT="text",e.IMAGE="image",e.ICON="icon",e))(ps||{}),Ee=(e=>(e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e))(Ee||{}),It=(e=>(e.DEFAULT="default",e.primary="primary",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error",e))(It||{}),gs=(e=>(e.START="start",e.CENTER="center",e.END="end",e.STRETCHED="stretched",e))(gs||{});const Ne=t.forwardRef((e,i)=>{o.validatePackage(W);const{children:s,dir:n,style:r,className:l,type:c,orientation:d,...u}=e,h=t.useRef(null),m=t.useRef(null);return t.useImperativeHandle(h,()=>({element:m.current,props:e})),t.useImperativeHandle(i,()=>h.current),t.createElement("div",{dir:n,style:r,ref:m,className:o.classNames("k-card",l,{[`k-card-${c}`]:c!==It.DEFAULT},d!==Ee.HORIZONTAL?"k-card-vertical":"k-card-horizontal"),...u},s)});Ne.displayName="KendoReactCard",Ne.propTypes={children:a.node,className:a.string,dir:a.string,orientation:a.oneOf(["horizontal","vertical"]),style:a.object,type:a.oneOf(["default","primary","info","success","warning","error"])},Ne.defaultProps={type:It.DEFAULT,orientation:Ee.VERTICAL};const Et=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-header",e.className)},e.children);Et.propTypes={className:a.string};const Nt=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-title",e.className)},e.children);Nt.propTypes={className:a.string};const kt=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-body",e.className)},e.children);kt.propTypes={className:a.string};const yt=e=>{const i={layout:gs.START,orientation:Ee.HORIZONTAL,...e};return t.createElement("div",{style:i.style,className:o.classNames("k-card-actions",i.className,`k-card-actions-${i.layout}`,i.orientation!==Ee.VERTICAL?"k-card-actions-horizontal":"k-card-actions-vertical")},i.children)};yt.propTypes={layout:a.oneOf(["stretched","start","center","end"]),orientation:a.oneOf(["horizontal","vertical"])};const wt=e=>{const i={src:"",...e};return t.createElement("img",{style:i.style,className:o.classNames("k-card-image",i.className),src:i.src,alt:i.alt})};wt.propTypes={className:a.string,src:a.string};const St=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-subtitle",e.className)},e.children);St.propTypes={className:a.string};const bs=e=>t.createElement("div",{style:e.style,className:o.classNames("k-card-footer",e.className)},e.children);bs.propTypes={className:a.string};const vs=e=>{const i={type:ps.TEXT,size:"medium",rounded:"full",fillMode:"solid",themeColor:"primary",...e};return o.validatePackage(W),t.createElement("div",{style:i.style,className:o.classNames("k-avatar",{["k-avatar-bordered"]:i.border,[`k-rounded-${o.kendoThemeMaps.roundedMap[i.rounded]||i.rounded}`]:i.rounded,[`k-avatar-${o.kendoThemeMaps.sizeMap[i.size]||i.size}`]:i.size,[`k-avatar-${i.fillMode}`]:i.fillMode,[`k-avatar-${i.fillMode}-${i.themeColor}`]:!!(i.fillMode&&i.themeColor)},i.className)},t.createElement("span",{className:`k-avatar-${i.type}`},i.children))};vs.propTypes={className:a.string,type:a.oneOf(["text","image","icon"]),size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),fillMode:a.oneOf([null,"solid","outline"]),themeColor:a.oneOf([null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"])};const ai={animation:!0,expanded:!1,mode:"overlay",position:"start",mini:!1,dir:"ltr",width:240,miniWidth:50},xt=t.createContext(ai),Ke=t.forwardRef((e,i)=>{const{className:s,style:n,text:r,icon:l,svgIcon:c,separator:d,disabled:u,selected:h,onSelect:m,index:f,tabIndex:p,children:v,...I}=e,{expanded:N,mini:y,item:w}=t.useContext(xt),g=t.useRef(null),C=t.useCallback(()=>{g.current&&g.current.focus()},[]);t.useImperativeHandle(i,()=>({element:g.current,focus:C,props:e}));const E=o.classNames("k-drawer-item",{"k-selected":h,"k-disabled":u},s),S=t.useCallback(L=>{if(m&&!u){const B={element:g.current,focus:C,props:e};m(B,f,L)}},[m,f,u]),x=t.createElement(t.Fragment,null,(l||c)&&t.createElement(o.IconWrap,{name:l&&o.toIconName(l),icon:c}),!N&&y?null:t.createElement("span",{className:"k-item-text"},r));return d?t.createElement("li",{className:"k-drawer-item k-drawer-separator",role:"separator"}):t.createElement("li",{ref:g,className:E,style:n,role:"menuitem","aria-label":r,"aria-disabled":u,onClick:S,tabIndex:o.getTabIndex(p,u),...I},w?v:x)});Ke.propTypes={className:a.string,style:a.object,text:a.string,icon:a.string,svgIcon:o.svgIconPropType,separator:a.bool,selected:a.bool,disabled:a.bool,targetItem:a.any},Ke.displayName="KendoDrawerItem";const ri=240,li=50,oi={type:"slide",duration:200},ci={type:"slide",duration:0},Be=t.forwardRef((e,i)=>{const{children:s,className:n,style:r}=e;o.validatePackage(W);const l=o.shouldShowValidationUI(W),{animation:c,expanded:d,mode:u,position:h,onOverlayClick:m,mini:f,dir:p,width:v,miniWidth:I,items:N,item:y,onSelect:w}=t.useContext(xt),g=t.useRef(null),C=t.useCallback(()=>{g.current&&g.current.focus()},[]),E=typeof c!="boolean"?c:c===!1?ci:oi,S=v||ri,x=I||li;t.useImperativeHandle(i,()=>({element:g.current,focus:C}));const L=t.useMemo(()=>"k-widget k-drawer "+o.classNames({"k-drawer-start":h==="start","k-drawer-end":h==="end"},n),[h]),B={opacity:1,flexBasis:S,WebkitTransition:"all "+(E&&E.duration)+"ms",transition:"all "+(E&&E.duration)+"ms"},M={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(E&&E.duration)+"ms",transition:"all "+(E&&E.duration)+"ms"},F={opacity:f?1:0,flexBasis:f?x:0,WebkitTransition:"all "+(E&&E.duration)+"ms",transition:"all "+(E&&E.duration)+"ms"},_={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(E&&E.duration)+"ms",transition:"all "+(E&&E.duration)+"ms"},Y={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(E&&E.duration)+"ms",transition:"all "+(E&&E.duration)+"ms"},P={transform:"translateX(0%)",WebkitTransitionDuration:(E&&E.duration)+"ms",transitionDuration:(E&&E.duration)+"ms"},j=d?u==="push"?B:M:u==="push"?F:p==="ltr"&&h==="start"||p==="rtl"&&h==="end"?f?P:_:f?P:Y,D=N&&t.createElement("ul",{className:"k-drawer-items",role:"menubar","aria-label":"drawer-list","aria-expanded":d},N.map((q,Z)=>{const J={index:Z,...q,onSelect:w},ne=y||Ke;return t.createElement(ne,{key:Z,...J})})),z=t.createElement("div",{style:E?{...j,...r}:r,className:L,ref:g},t.createElement("div",{className:"k-drawer-wrapper",style:!d&&f&&u==="overlay"?{width:x}:{width:S}},D||s),l&&t.createElement(o.WatermarkOverlay,null));return u==="overlay"?t.createElement(t.Fragment,null,d&&t.createElement("div",{className:"k-overlay",onClick:m}),z):z});Be.propTypes={children:a.any,className:a.string,style:a.object,item:a.any,tabIndex:a.number},Be.displayName="KendoDrawerNavigation";const Re=t.forwardRef((e,i)=>{o.validatePackage(W);const{expanded:s,mode:n,position:r,className:l,children:c,style:d,animation:u,mini:h,width:m,miniWidth:f,items:p,item:v,tabIndex:I,onOverlayClick:N,onSelect:y}=e,w=t.useRef(null),g=t.useCallback(()=>{w.current&&w.current.focus()},[]);t.useImperativeHandle(i,()=>({element:w.current,focus:g}));const C=t.useCallback((x,L,B)=>{if(p&&y){const M={itemTarget:x,itemIndex:L,syntheticEvent:B,nativeEvent:B&&B.nativeEvent,target:void 0};y.call(void 0,M)}},[p,y]),E=o.useDir(w,e.dir),S=o.classNames({"k-drawer-container":!0,"k-drawer-expanded":s,"k-drawer-overlay":n==="overlay","k-drawer-push":n==="push","k-drawer-mini":h},l);return t.createElement(xt.Provider,{value:{animation:u,expanded:s,mode:n,position:r,mini:h,dir:E,items:p,item:v,width:m,miniWidth:f,onOverlayClick:N,onSelect:C}},t.createElement("div",{className:S,ref:w,dir:E,style:d,tabIndex:I},p&&t.createElement(Be,null),c))});Re.propTypes={animation:a.any,expanded:a.bool,children:a.any,className:a.string,dir:a.string,mode:a.string,position:a.string,mini:a.bool,style:a.object,tabIndex:a.number,width:a.number,miniWidth:a.number,selected:a.number,onSelect:a.func,onOverlayClick:a.func};const di={animation:!0,expanded:!1,mode:"overlay",position:"start",mini:!1,dir:"ltr",width:240,miniWidth:50};Re.defaultProps=di,Re.displayName="KendoDrawer";const Dt=t.forwardRef((e,i)=>{const{children:s,className:n,style:r}=e,l=t.useRef(null);t.useImperativeHandle(i,()=>({element:l.current}));const c=o.classNames({"k-drawer-content":!0},n);return t.createElement("div",{className:c,style:r,ref:l},s)});Dt.propTypes={children:a.any,className:a.string,style:a.object},Dt.displayName="KendoDrawerContent";const ui={linear:!1,mode:"steps",value:0},Is=t.createContext(ui),Es=400,Ns=0,ks="stepper.optionalText",Ot="stepper.progBarAriaLabel",ys={[ks]:"(Optional)",[Ot]:"progressbar"},ke=t.forwardRef((e,i)=>{const{children:s,className:n,current:r,disabled:l,focused:c,icon:d,svgIcon:u,index:h,isValid:m,label:f,optional:p,style:v,tabIndex:I,text:N,...y}=e,{animationDuration:w,isVertical:g,item:C,linear:E,mode:S,numOfSteps:x,value:L,onChange:B,onFocus:M,successIcon:F,errorIcon:_,successSVGIcon:Y,errorSVGIcon:P}=t.useContext(Is),j=t.useRef(null),D=t.useCallback(()=>{j.current&&o.focusFirstFocusableChild(j.current)},[]),z=t.useCallback(()=>({element:j.current,focus:D}),[D]);t.useImperativeHandle(i,z);const q=!E||h===L-1||h===L||h===L+1,Z=S==="labels"||!!d&&!!f,J=pe.useLocalization(),de=(ee=>J.toLanguageString(ee,ys[ee]))(ks),se=typeof w=="number"?w:w!==!1?Es:Ns,Se=t.useCallback(ee=>{B&&!l&&o.dispatchEvent(B,ee,z(),{value:h})},[B,L,l]),ue=t.useCallback(ee=>{M&&!l&&o.dispatchEvent(M,ee,z(),void 0)},[M,l]),$=t.useMemo(()=>o.classNames("k-step",{"k-step-first":h===0,"k-step-last":x&&h===x-1,"k-step-done":h<L,"k-step-current":r,"k-step-optional":p,"k-step-error":m!==void 0&&!m,"k-step-success":m},{"k-disabled":l,"k-focus":c},n),[h,x,L,r,p,l,c,m,n]),U=t.useMemo(()=>({maxWidth:g?void 0:`calc(100% / ${x})`,maxHeight:g?`calc(100% / ${x})`:void 0,pointerEvents:q?void 0:"none",...v}),[g,x,v,q]),H=m?F:_,G=H?t.createElement("span",{className:"k-step-indicator-icon "+H,"aria-hidden":"true"}):t.createElement(o.IconWrap,{className:"k-step-indicator-icon",name:m?"check-circle":"exclamation-circle",icon:m?Y||K.checkOutlineIcon:P||K.exclamationCircleIcon}),he=t.createElement(t.Fragment,null,S!=="labels"?t.createElement("span",{className:"k-step-indicator","aria-hidden":!0,style:{transitionDuration:se+"ms"}},d||u?!Z&&m!==void 0?G:t.createElement(o.IconWrap,{className:"k-step-indicator-icon",name:d&&o.toIconName(d),icon:u}):m!==void 0?G:t.createElement("span",{className:"k-step-indicator-text"},N||h+1)):null),xe=t.createElement("span",{className:"k-step-label"},f&&t.createElement("span",{className:"k-step-text"},f),Z&&m!==void 0&&G,p&&t.createElement("span",{className:"k-step-label-optional"},de)),me=t.createElement(t.Fragment,null,he,xe);return t.createElement("li",{ref:j,className:$,style:U,...y},t.createElement("a",{className:"k-step-link",title:f||void 0,onClick:Se,onFocus:ue,tabIndex:I||(c?0:-1),"aria-current":r,"aria-disabled":l||!q||void 0,"aria-invalid":m!==void 0&&!m||void 0},C?s:me))});ke.propTypes={children:a.any,className:a.string,current:a.bool,disabled:a.bool,icon:a.string,index:a.number,isValid:a.bool,label:a.string,optional:a.bool,style:a.object,tabIndex:a.number,text:a.string};const hi={tabIndex:0};ke.defaultProps=hi,ke.displayName="KendoStep";const He=t.forwardRef((e,i)=>{o.validatePackage(W);const{animationDuration:s,children:n,className:r,disabled:l,errorIcon:c,errorSVGIcon:d,item:u,items:h,linear:m,mode:f,orientation:p,style:v,successIcon:I,successSVGIcon:N,onChange:y,onFocus:w}=e,C=pe.useLocalization().toLanguageString(Ot,ys[Ot]),E=t.useRef(null),S=t.useCallback(()=>{E.current&&o.focusFirstFocusableChild(E.current)},[]),x=t.useCallback(()=>({element:E.current,focus:S}),[S]);t.useImperativeHandle(i,x);const L=e.value||ws.value,[B,M]=t.useState(L),F=h?h.length:0,_=p==="vertical",Y=o.useRtl(E,e.dir),P=typeof s=="number"?s:s!==!1?Es:Ns;t.useEffect(()=>{M(L)},[L]);const j=t.useCallback(($,U)=>{const H=U===L-1,G=U===L,he=U===L+1;L!==U&&y&&!l&&(!m||H||G||he)&&(o.dispatchEvent(y,$,x(),{value:U}),M(U))},[L,m,y,l,M]),D=t.useCallback($=>{let U=$.value,H=$.syntheticEvent;j(H,U)},[j]),z=t.useCallback($=>{w&&!l&&o.dispatchEvent(w,$.syntheticEvent,x(),void 0)},[w,l]),q=t.useCallback($=>{j($,B)},[j,B]),Z=t.useCallback($=>{const U=Y==="rtl",H=B,G=h.length-1;switch($.keyCode){case o.Keys.left:$.preventDefault(),!U&&H>0&&M(H-1),U&&H<G&&M(H+1);break;case o.Keys.right:$.preventDefault(),!U&&H<G&&M(H+1),U&&H>0&&M(H-1);break;case o.Keys.up:$.preventDefault(),!U&&H>0&&M(H-1),U&&H>0&&M(H-1);break;case o.Keys.down:$.preventDefault(),!U&&H<G&&M(H+1),U&&H<G&&M(H+1);break;case o.Keys.home:$.preventDefault(),M(0);break;case o.Keys.end:$.preventDefault(),M(G);break;case o.Keys.space:$.preventDefault();break;case o.Keys.enter:$.preventDefault(),h[H].disabled||q($);break}},[h,M,B,Y,q]),J=t.useMemo(()=>o.classNames("k-stepper",{"k-stepper-linear":m},r),[m,r]),ne=t.useMemo(()=>({display:"grid",gridTemplateColumns:_?void 0:"repeat("+F*2+", 1fr)",gridTemplateRows:_?"repeat("+F+", 1fr)":void 0,...v}),[_,F,v]),de=t.useMemo(()=>o.classNames("k-step-list",{"k-step-list-horizontal":!_,"k-step-list-vertical":_}),[_]),se=t.useMemo(()=>({gridColumnStart:_?void 0:1,gridColumnEnd:_?void 0:-1,gridRowStart:_?1:void 0,gridRowEnd:_?-1:void 0}),[_]),Se=t.useMemo(()=>({gridColumnStart:_?void 0:2,gridColumnEnd:_?void 0:F*2,gridRowStart:_?1:void 0,gridRowEnd:_?F:void 0,top:_?17:void 0}),[_,F]),ue=h&&h.map(($,U)=>{const H={index:U,disabled:l||$.disabled,focused:U===B,current:U===L,...$},G=u||ke;return t.createElement(G,{key:U,...H})});return t.createElement(Is.Provider,{value:{animationDuration:s,isVertical:_,item:u,linear:m,mode:f,numOfSteps:F,value:L,successIcon:I,successSVGIcon:N,errorIcon:c,errorSVGIcon:d,onChange:D,onFocus:z}},t.createElement("nav",{className:J,style:ne,dir:Y,onKeyDown:Z},t.createElement("ol",{className:de,style:se},ue||n),t.createElement(Ks.ProgressBar,{style:Se,animation:{duration:P},ariaLabel:C,"aria-hidden":!0,max:F-1,labelVisible:!1,orientation:p,reverse:p==="vertical",value:L,disabled:l,tabIndex:-1})))});He.propTypes={animationDuration:a.oneOfType([a.bool,a.number]),children:a.any,className:a.string,dir:a.string,disabled:a.bool,errorIcon:a.string,errorSVGIcon:o.svgIconPropType,item:a.any,items:a.any,linear:a.bool,mode:a.oneOf(["steps","labels"]),orientation:a.oneOf(["horizontal","vertical"]),style:a.object,successIcon:a.string,successSVGIcon:o.svgIconPropType,value:a.number.isRequired,onChange:a.func,onFocus:a.func};const ws={value:0};He.defaultProps=ws,He.displayName="KendoStepper";const Ct=t.forwardRef((e,i)=>{o.validatePackage(W);const{children:s,className:n,style:r,id:l}=e,c=t.useRef(null),d=t.useCallback(()=>{c.current&&o.focusFirstFocusableChild(c.current)},[]),u=t.useCallback(()=>({element:c.current,focus:d}),[d]);t.useImperativeHandle(i,u);const h=o.useId(),m=t.useMemo(()=>e.themeColor||Mt.themeColor,[e.themeColor]),f=t.useMemo(()=>e.position||Mt.position,[e.position]),p=t.useMemo(()=>e.positionMode||Mt.positionMode,[e.positionMode]),v=t.useMemo(()=>o.classNames("k-appbar",{"k-appbar-top":f==="top","k-appbar-bottom":f==="bottom","k-appbar-static":p==="static","k-appbar-sticky":p==="sticky","k-appbar-fixed":p==="fixed","k-appbar-light":m==="light","k-appbar-dark":m==="dark","k-appbar-inherit":m==="inherit"},n),[f,p,m,n]);return t.createElement("div",{className:v,style:r,id:l||h},s)});Ct.propTypes={children:a.any,className:a.string,style:a.object,id:a.string,themeColor:a.string,position:a.oneOf(["top","bottom"]),positionMode:a.oneOf(["static","sticky","fixed"])};const Mt={themeColor:"light",position:"top",positionMode:"static"};Ct.displayName="KendoAppBar";const Lt=t.forwardRef((e,i)=>{const{children:s,className:n,style:r}=e,l=t.useRef(null),c=t.useCallback(()=>{l.current&&o.focusFirstFocusableChild(l.current)},[]),d=t.useCallback(()=>({element:l.current,focus:c}),[c]);t.useImperativeHandle(i,d);const u=t.useMemo(()=>o.classNames("k-appbar-section",n),[n]);return t.createElement("div",{className:u,style:r},s)});Lt.propTypes={children:a.any,className:a.string,style:a.object},Lt.displayName="KendoAppBarSection";const At=t.forwardRef((e,i)=>{const{children:s,className:n,style:r}=e,l=t.useRef(null),c=t.useCallback(()=>{l.current&&o.focusFirstFocusableChild(l.current)},[]),d=t.useCallback(()=>({element:l.current,focus:c}),[c]);t.useImperativeHandle(i,d);const u=t.useMemo(()=>o.classNames("k-appbar-spacer",{"k-appbar-spacer-sized":r&&r.width&&r.width!==null},n),[n,r]),h=t.useMemo(()=>({flexBasis:r&&r.width?r.width:void 0}),[r]);return t.createElement("span",{className:u,style:h},s)});At.propTypes={children:a.any,className:a.string,style:a.object},At.displayName="KendoAppBarSpacer";const zt=e=>t.createElement(o.Draggable,{onPress:e.onPress,onDrag:i=>{e.onResize(i.event,!1,e.d)},onRelease:i=>{e.onResize(i.event,!0,e.d)}},t.createElement("div",{className:"k-resize-handle k-cursor-"+e.d+"-resize",style:{bottom:0,right:0,...e.style}}));class mi extends t.Component{constructor(){super(...arguments),this.handleResize=(i,s,n)=>{i.originalEvent.preventDefault(),this.props.onResize(i,{end:s,direction:n})}}render(){const{resizable:i,onPress:s,rtl:n}=this.props;return i?t.createElement(t.Fragment,null,i!=="vertical"&&t.createElement(zt,{onPress:s,onResize:this.handleResize,d:"ew",style:n?{top:0,width:9,left:0,right:""}:{top:0,width:9,right:0,left:""}}),i!=="horizontal"&&t.createElement(zt,{onPress:s,onResize:this.handleResize,d:"ns",style:{left:0,height:9}}),i===!0&&t.createElement(zt,{onPress:s,onResize:this.handleResize,d:n?"nesw":"nwse",style:n?{width:9,height:9,right:"",left:0}:{width:9,height:9,right:0,left:""}})):null}}const Ss=200,Ft=class extends t.Component{constructor(){super(...arguments),this.state={rtl:!1},this.oldSize={},this.draggable=null,this.dragging=!1,this.resizing=!1,this.element=null,this.hintElement=null,this.ignoreDrag=!1,this.pressOffset={x:0,y:0},this.pressXY={x:0,y:0},this.currentTranslate={x:0,y:0},this.preventDataOps=void 0,this.handleResize=(e,i)=>{if(i.end){this.handleRelease();return}if(!this.element||!this.hintElement)return;const s=e.clientX,n=e.clientY;this.resizing=!0;const r=(i.direction!=="ns"?s-this.pressXY.x:0)*(this.state.rtl?-1:1),l=i.direction!=="ew"?n-this.pressXY.y:0;if(this.dragElement&&(this.state.rtl?this.dragElement.style.marginLeft=-r+"px":this.dragElement.style.marginRight=-r+"px",this.dragElement.style.height=`calc(100% + ${l}px)`),this.hintElement.classList.add("k-layout-item-hint-resize"),this.preventDataOps)return;let c=0,d=0;const u=this.element.getBoundingClientRect();r>u.width/this.props.defaultPosition.colSpan/3&&(c=1),r<-u.width/this.props.defaultPosition.colSpan/1.25&&(c=-1),l>u.height/this.props.defaultPosition.rowSpan/3&&(d=1),l<-u.height/this.props.defaultPosition.rowSpan/1.25&&(d=-1),(c!==0||d!==0)&&this.props.update(this.props.index,0,0,d,c)},this.handlePress=e=>{if(!this.dragElement)return;if(this.pressXY={x:e.event.clientX,y:e.event.clientY},this.ignoreDrag=!1,this.props.ignoreDrag&&this.props.ignoreDrag(e.event.originalEvent)){this.ignoreDrag=!0;return}this.element&&this.hintElement&&(this.element.style.zIndex="10",this.hintElement.style.display="block"),this.dragElement.classList.remove("k-cursor-grab"),this.dragElement.classList.add("k-cursor-grabbing");const i=this.dragElement.getBoundingClientRect();this.pressOffset={x:e.event.clientX-i.x,y:e.event.clientY-i.y}},this.handleDrag=e=>{if(this.ignoreDrag)return;const i=this.dragElement;if(e.event.originalEvent.defaultPrevented||!i)return;this.dragging=!0,e.event.originalEvent.preventDefault();const s=i.getBoundingClientRect();if(this.currentTranslate={x:e.event.clientX-s.x-this.pressOffset.x+this.currentTranslate.x,y:e.event.clientY-s.y-this.pressOffset.y+this.currentTranslate.y},i.style.transform=`translate(${this.currentTranslate.x}px, ${this.currentTranslate.y}px)`,i.style.transition="transform 0s",this.preventDataOps)return;let n=0,r=0;this.currentTranslate.y>.7*s.height/this.props.defaultPosition.rowSpan&&(r=1),this.currentTranslate.y<.7*-s.height/this.props.defaultPosition.rowSpan&&(r=-1),this.currentTranslate.x>.7*s.width/this.props.defaultPosition.colSpan&&(n=1),this.currentTranslate.x<.7*-s.width/this.props.defaultPosition.colSpan&&(n=-1),this.props.update(this.props.index,r,this.state.rtl?-n:n,0,0)},this.handleRelease=()=>{this.dragging=this.resizing=!1,this.currentTranslate={x:0,y:0},this.element&&this.hintElement&&(this.element.style.zIndex="1",this.hintElement.classList.remove("k-layout-item-hint-resize"),this.hintElement.style.display="none");const e=this.dragElement;e&&(e.style.transform="translate(0px, 0px)",e.style.transition=`transform ${Ss}ms cubic-bezier(0.2, 0, 0, 1) 0s`,e.style.marginRight="0px",e.style.marginLeft="0px",e.style.height="100%",e.classList.remove("k-cursor-grabbing"),e.classList.add("k-cursor-grab"))}}get reorderable(){return this.props.reorderable!==void 0?this.props.reorderable:Ft.defaultProps.reorderable}get dragElement(){return this.draggable?this.draggable.element:void 0}componentDidMount(){this.element&&(getComputedStyle(this.element).direction==="rtl"&&this.setState({rtl:!0}),this.hintElement&&(this.hintElement.style.height=this.element.offsetHeight+"px",this.hintElement.style.width=this.element.offsetWidth+"px"))}render(){o.canUseDOM&&clearTimeout&&typeof clearTimeout=="function"&&(clearTimeout(this.preventDataOps),this.preventDataOps=window.setTimeout(()=>{this.preventDataOps=void 0},200));const e=this.props.defaultPosition,i=this.props.resizable!==void 0?this.props.resizable:Ft.defaultProps.resizable,s={gridColumnStart:e.col,gridColumnEnd:`span ${e.colSpan}`,gridRowStart:e.row,gridRowEnd:`span ${e.rowSpan}`,outline:"none",order:e.order,display:"none",...this.props.hintStyle},n={gridColumnStart:e.col,gridColumnEnd:`span ${e.colSpan}`,gridRowStart:e.row,gridRowEnd:`span ${e.rowSpan}`,order:e.order},r=t.createElement("div",{ref:l=>{this.draggable=l?{element:l}:null},className:o.classNames("k-tilelayout-item k-card",{"k-cursor-grab":this.reorderable},this.props.className),style:{height:"100%",...n,...this.props.style}},this.props.children,t.createElement(mi,{onPress:this.handlePress,onResize:this.handleResize,resizable:i,rtl:this.state.rtl}));return t.createElement("div",{ref:l=>{this.element=l},style:n},t.createElement("div",{ref:l=>{this.hintElement=l},style:{position:"absolute",...s},className:o.classNames("k-layout-item-hint",this.props.hintClassName)}),t.createElement(o.Draggable,{ref:l=>{this.draggable=l},onDrag:this.props.reorderable?this.handleDrag:void 0,onRelease:this.props.reorderable?this.handleRelease:void 0,onPress:this.props.reorderable?this.handlePress:void 0},r))}getSnapshotBeforeUpdate(e){return this.oldSize={},this.dragElement&&(this.oldSize=this.dragElement.getBoundingClientRect()),null}componentDidUpdate(e){const i=this.dragElement;if(!i)return;const s=i.getBoundingClientRect(),n=this.oldSize;if(this.resizing){const c=s.width-n.width;if(this.state.rtl){const h=parseFloat(i.style.marginLeft||"0");i.style.marginLeft=h-c+"px"}else{const h=parseFloat(i.style.marginRight||"0");i.style.marginRight=h+c+"px"}this.pressXY.x+=this.state.rtl?-c:c;const d=s.height-n.height,u=parseFloat(i.style.height.substring(12));i.style.height=`calc(100% + ${u+d}px)`,this.pressXY.y+=d}const r=n.left-s.left,l=n.top-s.top;if(!(r===0&&l===0)){if(this.dragging){(e.defaultPosition.order!==this.props.defaultPosition.order||e.defaultPosition.col!==this.props.defaultPosition.col)&&(this.currentTranslate.x=0,this.currentTranslate.y=0,i.style.transform="");return}Math.abs(l)<15&&Math.abs(r)<15||requestAnimationFrame(()=>{const c=this.element;c&&(c.style.transform=`translate(${r}px, ${l}px)`,c.style.transition="transform 0s",requestAnimationFrame(()=>{c.style.transform="",c.style.transition=`transform ${Ss}ms cubic-bezier(0.2, 0, 0, 1) 0s`}))})}}};let We=Ft;We.propTypes={defaultPosition:a.object.isRequired,style:a.object,className:a.string,hintStyle:a.object,hintClassName:a.string,header:a.any,body:a.any,item:a.any,resizable:a.oneOf(["horizontal","vertical",!0,!1]),reorderable:a.bool},We.displayName="KendoTileLayoutItem",We.defaultProps={resizable:!0,reorderable:!0};const fi={column:"k-grid-flow-col",row:"k-grid-flow-row","column dense":"k-grid-flow-col-dense","row dense":"k-grid-flow-row-dense",unset:"k-grid-flow-unset"};class Kt extends t.Component{constructor(i){super(i),this._element=null,this.state={positions:(this.props.items||[]).map((s,n)=>Object.assign({order:n,rowSpan:1,colSpan:1},s.defaultPosition))},this.showLicenseWatermark=!1,this.focus=()=>{this._element&&this._element.focus()},this.update=(s,n,r,l=0,c=0)=>{if(n===0&&r===0&&!c&&!l)return;let d=!1;const u=this.state.positions.map(I=>Object.assign({},I)),h=u[s],m=u.find(I=>I.order===h.order+n);m&&m!==h&&(h.order+=n,m.order+=-n,d=!0);const f=h.col+r;r!==0&&f>=1&&f+h.colSpan<=(this.props.columns||3)+1&&(h.col=f,d=!0);const p=h.colSpan+c;c&&p>=1&&p+h.col<=(this.props.columns||3)+1&&(h.colSpan=p,d=!0);const v=h.rowSpan+l;l&&v>=1&&(h.rowSpan=v,d=!0),d&&(this.setState({positions:u}),o.dispatchEvent(this.props.onReposition,{},this,{value:u}))},o.validatePackage(W),this.showLicenseWatermark=o.shouldShowValidationUI(W)}get element(){return this._element}static getDerivedStateFromProps(i,s){return i.positions?{positions:i.positions.map((n,r)=>Object.assign({order:r,rowSpan:1,colSpan:1},n))}:i.items&&(!s.positions||i.items.length!==s.positions.length)?{positions:i.items.map((n,r)=>Object.assign({order:r,rowSpan:1,colSpan:1},n.defaultPosition))}:null}render(){const{className:i,columns:s=3,columnWidth:n="1fr",gap:r,rowHeight:l="1fr",style:c,autoFlow:d="column",items:u=[]}=this.props,h=r?`${typeof r.rows=="number"?r.rows+"px":r.rows} ${typeof r.columns=="number"?r.columns+"px":r.columns}`:16,m={gridTemplateColumns:`repeat(${s}, minmax(0px, ${typeof n=="number"?n+"px":n}))`,gridAutoRows:`minmax(0px, ${typeof l=="number"?l+"px":l})`,gap:h,padding:h,...c};return t.createElement("div",{ref:f=>{this._element=f},dir:this.props.dir,className:o.classNames("k-tilelayout k-pos-relative",fi[d],i),style:m,id:this.props.id,children:u.map((f,p)=>t.createElement(t.Fragment,{key:this.props.dataItemKey?o.getter(this.props.dataItemKey)(f):p},t.createElement(We,{update:this.update,defaultPosition:this.state.positions[p],index:p,resizable:f.resizable,reorderable:f.reorderable,style:f.style,className:f.className,hintClassName:f.hintClassName,hintStyle:f.hintStyle,ignoreDrag:this.props.ignoreDrag},f.item?f.item:t.createElement(t.Fragment,null,t.createElement("div",{className:"k-tilelayout-item-header k-card-header"},t.isValidElement(f.header)?f.header:t.createElement("h5",{className:"k-card-title"},f.header)),t.createElement("div",{className:"k-tilelayout-item-body k-card-body"},f.body))),this.showLicenseWatermark&&t.createElement(o.WatermarkOverlay,null)))})}}Kt.propTypes={id:a.string,style:a.object,className:a.string,dir:a.string,gap:a.object,columns:a.number,columnWidth:a.oneOfType([a.number,a.string]),rowHeight:a.oneOfType([a.number,a.string]),dataItemKey:a.string,items:a.array,positions:a.array,autoFlow:a.oneOf(["column","row","column dense","row dense","unset"]),onReposition:a.func,ignoreDrag:a.func},Kt.displayName="KendoTileLayout";const pi={vertical:"k-bottom-nav-item-flow-vertical",horizontal:"k-bottom-nav-item-flow-horizontal"},gi={fixed:"k-pos-fixed",sticky:"k-pos-sticky"},ye=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null);t.useImperativeHandle(i,()=>({element:s.current}));const{className:n,style:r,selected:l,disabled:c,item:d,render:u,dataItem:h,icon:m,svgIcon:f,text:p,id:v,onSelect:I,onKeyDown:N,index:y,tabIndex:w}=e,g=t.useMemo(()=>o.classNames("k-bottom-nav-item",{"k-selected":l,"k-disabled":c},n),[l,c,n]),C=t.useCallback(B=>{I&&y!==void 0&&!c&&I(B,y)},[I,y,c]),E=t.useCallback(B=>{N&&y!==void 0&&!c&&N(B,y)},[N,y,c]),S=u,x=d,L=t.createElement("span",{ref:s,className:g,style:r,role:"link",id:v,tabIndex:w,onClick:C,onKeyDown:E,"aria-current":l,"aria-disabled":c},x?t.createElement(x,{itemIndex:y,item:h}):t.createElement(t.Fragment,null,(m||f)&&t.createElement(o.IconWrap,{className:"k-bottom-nav-item-icon",name:m,icon:f,size:"xlarge"}),p&&t.createElement("span",{className:"k-bottom-nav-item-text",style:{userSelect:"none"}},p)));return S!==void 0?S.call(void 0,L,e):L}),bi={tabIndex:0};ye.propTypes={className:a.string,style:a.object,id:a.string,disabled:a.bool,selected:a.bool,icon:a.string,svgIcon:o.svgIconPropType,text:a.string,tabIndex:a.number},ye.defaultProps=bi,ye.displayName="KendoReactBottomNavigationItem";const _e=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useCallback(()=>{s.current&&o.focusFirstFocusableChild(s.current)},[]),r=t.useCallback(()=>({element:s.current,focus:n}),[n]);t.useImperativeHandle(i,r);const{positionMode:l=ce.positionMode,itemFlow:c=ce.itemFlow,border:d=ce.border,className:u,items:h,item:m,itemRender:f,disabled:p,style:v,id:I,onSelect:N,onKeyDown:y}=e,w=o.useId(),g=o.useDir(s,e.dir),C=t.useMemo(()=>e.fillMode===null||e.fill===null?null:e.fill||e.fillMode||ce.fillMode,[e.fillMode,e.fill]),E=t.useMemo(()=>e.themeColor||ce.themeColor,[e.themeColor]),S=t.useMemo(()=>o.classNames("k-bottom-nav",gi[l],pi[c],{[`k-bottom-nav-${C}`]:C,[`k-bottom-nav-${C}-${E}`]:!!(C&&E),"k-bottom-nav-border":d,"k-disabled":p},u),[l,E,C,c,d,p,u]),x=t.useCallback((M,F)=>{h&&!h[F].disabled&&N&&o.dispatchEvent(N,M,r(),{itemTarget:h[F],itemIndex:F})},[h,N]),L=t.useCallback((M,F)=>{x(M,F)},[x]),B=t.useCallback((M,F)=>{switch(M.keyCode){case o.Keys.enter:case o.Keys.space:x(M,F),M.preventDefault();break}o.dispatchEvent(y,M,r(),void 0)},[x,y]);return t.createElement("nav",{ref:s,className:S,style:v,id:I||w,dir:g},h&&h.map((M,F)=>t.createElement(ye,{...M,key:F,index:F,id:`${I||w}-${F}`,disabled:p||M.disabled,selected:M.selected,dataItem:M,item:m,render:f,onSelect:L,onKeyDown:B})))}),ce={themeColor:"primary",fillMode:"flat",itemFlow:"vertical",positionMode:"fixed",border:!0};_e.propTypes={className:a.string,style:a.object,id:a.string,dir:a.string,themeColor:a.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),fill:a.oneOf(["solid","flat"]),fillMode:a.oneOf(["solid","flat"]),itemFlow:a.oneOf(["vertical","horizontal"]),border:a.bool,disabled:a.bool,selected:a.number,onSelect:a.func},_e.defaultProps=ce,_e.displayName="KendoReactBottomNavigation";const $e=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useCallback(()=>({element:s.current}),[]);t.useImperativeHandle(i,n);const{className:r,style:l,id:c,children:d}=e,u=o.useId(),h=t.useMemo(()=>e.orientation||Ue.orientation,[e.orientation]),m=h==="horizontal",f=t.useMemo(()=>e.align&&e.align.horizontal?e.align.horizontal:Ue.hAlign,[e.align]),p=t.useMemo(()=>e.align&&e.align.vertical?e.align.vertical:Ue.vAlign,[e.align]),v=t.useMemo(()=>o.classNames("k-stack-layout",{"k-hstack":h==="horizontal","k-vstack":h==="vertical","k-justify-content-start":m&&f==="start"||!m&&p==="top","k-justify-content-center":m&&f==="center"||!m&&p==="middle","k-justify-content-end":m&&f==="end"||!m&&p==="bottom","k-justify-content-stretch":m&&f==="stretch"||!m&&p==="stretch","k-align-items-start":!m&&f==="start"||m&&p==="top","k-align-items-center":!m&&f==="center"||m&&p==="middle","k-align-items-end":!m&&f==="end"||m&&p==="bottom","k-align-items-stretch":!m&&f==="stretch"||m&&p==="stretch"},r),[h,m,f,p,r]),I={gap:`${typeof e.gap=="number"?e.gap+"px":e.gap}`,...l};return t.createElement("div",{ref:s,className:v,style:I,id:c||u},d)}),Ue={orientation:"horizontal",hAlign:"stretch",vAlign:"stretch"};$e.propTypes={className:a.string,style:a.object,children:a.any,id:a.string,orientation:a.oneOf(["horizontal","vertical"]),gap:a.oneOfType([a.string,a.number]),align:a.shape({vertical:a.oneOf(["top","middle","bottom","stretch"]),horizontal:a.oneOf(["start","center","end","stretch"])})},$e.defaultProps=Ue,$e.displayName="KendoReactStackLayout";const je=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useCallback(()=>({element:s.current}),[]);t.useImperativeHandle(i,n);const{className:r,style:l,id:c,children:d,gap:u}=e,h=o.useId(),m=t.useMemo(()=>e.align&&e.align.horizontal?e.align.horizontal:Bt.hAlign,[e.align]),f=t.useMemo(()=>e.align&&e.align.vertical?e.align.vertical:Bt.vAlign,[e.align]),p=t.useMemo(()=>o.classNames("k-grid-layout",{"k-justify-items-start":m==="start","k-justify-items-center":m==="center","k-justify-items-end":m==="end","k-justify-items-stretch":m==="stretch","k-align-items-start":f==="top","k-align-items-center":f==="middle","k-align-items-end":f==="bottom","k-align-items-stretch":f==="stretch"},r),[m,f,r]),v=u?`${typeof u.rows=="number"?u.rows+"px":u.rows} ${typeof u.cols=="number"?u.cols+"px":u.cols}`:void 0,I=e.rows&&e.rows.map(w=>`${typeof w.height=="number"?w.height+"px":w.height}`).join(" "),N=e.cols&&e.cols.map(w=>`${typeof w.width=="number"?w.width+"px":w.width}`).join(" "),y={gap:v,gridTemplateColumns:N,gridTemplateRows:I,...l};return t.createElement("div",{ref:s,className:p,style:y,id:c||h},d)}),Bt={hAlign:"stretch",vAlign:"stretch",gap:void 0};je.propTypes={className:a.string,style:a.object,children:a.any,id:a.string,gap:a.shape({rows:a.oneOfType([a.string,a.number]),columns:a.oneOfType([a.string,a.number])}),align:a.shape({vertical:a.oneOf(["top","middle","bottom","stretch"]),horizontal:a.oneOf(["start","center","end","stretch"])})},je.defaultProps=Bt,je.displayName="KendoReactGridLayout";const Rt=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useCallback(()=>({element:s.current}),[]);t.useImperativeHandle(i,n);const{className:r,style:l,id:c,children:d,row:u,col:h,rowSpan:m,colSpan:f}=e,p=o.useId(),v={gridArea:`${u||"auto"} / ${h||"auto"} / ${m?"span "+m:"auto"} / ${f?"span "+f:"auto"}`,...l};return t.createElement("div",{ref:s,className:r,style:v,id:c||p},d)});Rt.propTypes={className:a.string,style:a.object,children:a.any,id:a.string},Rt.displayName="KendoReactGridLayoutItem";const Ve=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useRef(null),r=t.useCallback(()=>{n.current&&n.current.focus()},[n]);return t.useImperativeHandle(s,()=>({element:n.current,focus:r,props:e})),t.useImperativeHandle(i,()=>s.current),t.createElement("li",{ref:n,id:e.id,style:e.style,className:o.classNames("k-breadcrumb-item",{"k-breadcrumb-root-item":e.isFirstItem,"k-breadcrumb-last-item":e.isLastItem},e.className)},e.children)}),vi={id:a.string,className:a.string,children:a.any,style:a.object};Ve.displayName="KendoReactBreadcrumbListItem",Ve.propTypes=vi;const qe=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useRef(null);return t.useImperativeHandle(s,()=>{var r;return{element:((r=n.current)==null?void 0:r.element)||null,props:e}}),t.useImperativeHandle(i,()=>s.current),t.createElement(o.IconWrap,{ref:n,id:e.id,"aria-hidden":!0,tabIndex:e.tabIndex,style:e.style,name:e.dir==="rtl"?"chevron-left":"chevron-right",icon:e.dir==="rtl"?K.chevronLeftIcon:K.chevronRightIcon,className:"k-breadcrumb-delimiter-icon",size:"xsmall"})}),Ii={id:a.string,className:a.string,style:a.object,tabIndex:a.number,dir:a.string};qe.displayName="KendoReactBreadcrumbDelimiter",qe.propTypes=Ii;const Ge=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useRef(null),r=t.useCallback(()=>{n.current&&n.current.focus()},[n]);t.useImperativeHandle(s,()=>({element:n.current,focus:r,props:e})),t.useImperativeHandle(i,()=>s.current);const l=t.useCallback(d=>{e.id&&o.dispatchEvent(e.onItemSelect,d,d.target,{id:e.id})},[e.onItemSelect]),c=t.useCallback(d=>{e.id&&o.dispatchEvent(e.onKeyDown,d,d.target,{id:e.id})},[e.onKeyDown]);return t.createElement("span",{"aria-current":e.ariaCurrent?e.ariaCurrent:e.isLast,role:"link",id:e.id,ref:n,style:e.style,dir:o.useDir(n,e.dir),tabIndex:o.getTabIndex(e.tabIndex,e.disabled),className:o.classNames({"k-breadcrumb-root-link":e.isFirst,"k-breadcrumb-link":!e.isFirst,"k-breadcrumb-icontext-link":e.iconClass!==void 0&&e.text,"k-breadcrumb-icon-link":e.iconClass!==void 0&&!e.text,"k-disabled":e.disabled}),onClick:l,onKeyDown:c},e.iconClass?t.createElement("span",{className:o.classNames("k-icon",e.iconClass)}):e.icon?e.icon:"",e.text&&t.createElement("span",{className:"k-breadcrumb-item-text"},e.text))}),Ei={id:a.string,className:a.string,tabIndex:a.number,style:a.object,dir:a.string,disabled:a.bool,text:a.string,icon:a.node,iconClass:a.string,onClick:a.func,ariaCurrent:a.bool};Ge.displayName="KendoReactBreadcrumbLink",Ge.propTypes=Ei;const Xe=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useRef(null);return t.useImperativeHandle(s,()=>({element:n.current,props:e})),t.useImperativeHandle(i,()=>s.current),t.createElement(t.Fragment,null,e.rootItem?t.createElement("ol",{id:e.id,ref:n,style:e.style,dir:o.useDir(n,e.dir),tabIndex:o.getTabIndex(e.tabIndex,e.disabled),className:o.classNames("k-breadcrumb-root-item-container",{"k-disabled":e.disabled},e.className)},e.children):t.createElement("ol",{id:e.id,ref:n,style:e.style,dir:o.useDir(n,e.dir),tabIndex:o.getTabIndex(e.tabIndex,e.disabled),className:o.classNames("k-breadcrumb-container !k-flex-wrap",{"k-disabled":e.disabled},e.className)},e.children))}),Ni={id:a.string,className:a.string,children:a.element,tabIndex:a.number,style:a.object,dir:a.string,disabled:a.bool};Xe.displayName="KendoReactBreadcrumbOrderedList",Xe.propTypes=Ni;const Ye=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),n=t.useRef(null),r=t.useMemo(()=>e.breadcrumbOrderedList||Xe,[e.breadcrumbOrderedList]),l=t.useMemo(()=>e.breadcrumbListItem||Ve,[e.breadcrumbListItem]),c=t.useMemo(()=>e.breadcrumbDelimiter||qe,[e.breadcrumbDelimiter]),d=t.useMemo(()=>e.breadcrumbLink||Ge,[e.breadcrumbLink]),u=t.useCallback(()=>{n.current&&n.current.focus()},[n]),h=t.useMemo(()=>e.disabled||!1,[e.disabled]);t.useImperativeHandle(s,()=>({element:n.current,focus:u,props:e})),t.useImperativeHandle(i,()=>s.current);const m=o.useDir(n,e.dir),f=g=>{s.current&&o.dispatchEvent(e.onItemSelect,g,g.target,{id:g.target.id})},p=g=>{s.current&&o.dispatchEvent(e.onKeyDown,g,g.target,{id:g.target.id})},v=e.valueField||we.valueField,I=e.iconField||we.iconField,N=e.iconClassField||we.iconClassField,y=e.textField||we.textField,w=e.size||"medium";return t.createElement("nav",{"aria-label":e.ariaLabel,id:e.id,style:e.style,ref:n,dir:m,className:o.classNames("k-breadcrumb k-breadcrumb-wrap",{"k-rtl":m==="rtl","k-disabled":h,"k-breadcrumb-md":!e.size,[`k-breadcrumb-${o.kendoThemeMaps.sizeMap[w]||w}`]:w},e.className)},t.createElement(r,{rootItem:!0},t.createElement(t.Fragment,null,e.data.map((g,C,E)=>{const S=g[v];if(C===0)return t.createElement(l,{key:S,isFirstItem:!0,isLastItem:E.length-1===C},t.createElement(d,{isLast:E.length-1===C,isFirst:!0,id:String(S),icon:g[I]||void 0,iconClass:g[N]?String(g[N]):void 0,text:g[y]?String(g[y]):void 0,disabled:g.disabled||!1,onItemSelect:f,onKeyDown:p,...e}))}))),t.createElement(r,{rootItem:!1},t.createElement(t.Fragment,null,e.data.map((g,C,E)=>{const S=g[v];if(C!==0)return t.createElement(l,{key:S,isFirstItem:!1,isLastItem:E.length-1===C},t.createElement(c,{dir:m}),t.createElement(d,{isLast:E.length-1===C,isFirst:!1,id:String(S),icon:g[I]||void 0,iconClass:g[N]?String(g[N]):void 0,text:g[y]?String(g[y]):void 0,disabled:g.disabled||!1,onItemSelect:f,onKeyDown:p,...e}))}))))}),ki={id:a.string,style:a.object,className:a.string,breadcrumbOrderedList:a.elementType,breadcrumbListItem:a.elementType,breadcrumbDelimiter:a.elementType,breadcrumbLink:a.elementType,data:a.arrayOf(a.shape({id:a.string,text:a.string,icon:a.any,iconClass:a.string})),dir:a.oneOf(["ltr","rtl"]),disabled:a.bool,valueField:a.string,textField:a.string,iconField:a.string,iconClassField:a.string,onItemSelect:a.func,ariaLabel:a.string},we={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass"};Ye.displayName="KendoReactBreadcrumb",Ye.propTypes=ki,Ye.defaultProps=we;const Te=e=>{const i=t.useRef(null),s=t.useCallback(n=>{e.onClick&&e.onClick.call(void 0,{syntheticEvent:n,item:e.item,title:e.title})},[e.item,e.title,e.onClick]);return t.useEffect(()=>{i.current&&e.focused&&i.current.focus()},[e.focused]),t.createElement("span",{style:e.style,tabIndex:e.tabIndex,className:o.classNames("k-actionsheet-item","k-cursor-pointer",e.disabled&&"k-disabled",e.className),ref:i,role:"button","aria-disabled":e.disabled,onClick:s},t.createElement("span",{className:"k-actionsheet-action"},e.icon&&t.createElement("span",{className:"k-icon-wrap"},e.icon),(e.title||e.description)&&t.createElement("span",{className:"k-actionsheet-item-text"},e.title&&t.createElement("span",{className:"k-actionsheet-item-title"},e.title),e.description&&t.createElement("span",{className:"k-actionsheet-item-description"},e.description))))};Te.propTypes={className:a.string,style:a.object,description:a.string,disabled:a.bool,group:a.oneOf(["top","bottom"]),icon:a.element,title:a.string};const Ze="ActionSheetHeader",Je=e=>t.createElement("div",{className:o.classNames("k-actionsheet-titlebar",e.className)},e.children);Je.propTypes={className:a.string},Je.displayName=Ze,Je.propTypes={children:a.any};const Ht="ActionSheetFooter",Qe=e=>t.createElement("div",{className:o.classNames("k-actionsheet-footer",e.className)},e.children);Qe.propTypes={className:a.string},Qe.displayName=Ht,Qe.propTypes={children:a.any};const Wt="ActionSheetContent",Pe=e=>t.createElement("div",{className:o.classNames("k-actionsheet-content",e.className)},e.children);Pe.propTypes={className:a.string},Pe.displayName=Wt,Pe.propTypes={children:a.any};class et extends t.Component{constructor(i){super(i),this.actionSheetRef=t.createRef(),this.actionSheetTitleClass="k-actionsheet-title",this.ariaLabeledBy=this.actionSheetTitleClass+1,this.animationDuration=300,this.bottomPosition={bottom:"0",width:"100%"},this.handleKeyDown=s=>{this.props.navigatable&&this.navigation.triggerKeyboardEvent(s)},this.onTab=(s,n,r)=>{r.preventDefault(),r.shiftKey?n.focusPrevious(s):n.focusNext(s)},this.handleOverlayClick=s=>{this.props.onOverlayClick&&this.props.onOverlayClick.call(void 0,s),this.props.onClose&&this.props.onClose.call(void 0,s),this.props.animation||this.hideActionSheet()},this.handleItemClick=s=>{this.props.onItemClick&&this.props.onItemClick.call(void 0,s),this.props.onItemSelect&&this.props.onItemSelect.call(void 0,s),this.props.animation||this.hideActionSheet()},this.onEnter=(s,n,r)=>{if(s.ariaDisabled)return;const l=s.className&&s.className.indexOf?s.className.indexOf("k-actionsheet-item")!==-1:!1,c=n.elements.filter(d=>d.className.indexOf("k-actionsheet-item")!==-1);if(l&&this.props.onItemClick){r.preventDefault();const d=this.props.items[c.indexOf(s)];this.props.onItemClick.call(void 0,{syntheticEvent:r,item:d,title:d&&d.title})}if(l&&this.props.onItemSelect){r.preventDefault();const d=this.props.items[c.indexOf(s)];this.props.onItemSelect.call(void 0,{syntheticEvent:r,item:d,title:d&&d.title})}this.props.animation||this.hideActionSheet()},this.onEscape=(s,n,r)=>{this.props.onOverlayClick&&(r.preventDefault(),this.props.onOverlayClick.call(void 0,r)),this.props.onClose&&(r.preventDefault(),this.props.onClose.call(void 0,r)),this.props.animation||this.hideActionSheet()},this.hideActionSheet=()=>{this.setState({show:!1})},this.children=s=>{const n={};return t.Children.forEach(s,r=>{r&&(n[r.type.displayName]=r)}),n},this.state={show:!1,slide:!1},o.validatePackage(W)}componentDidMount(){this.props.expand&&!this.state.show&&this.setState({show:!0})}componentDidUpdate(i,s){const n=this.actionSheetRef.current;if(this.props.expand&&!this.state.show&&this.setState({show:!0}),this.props.expand&&this.state.show&&!this.state.slide&&this.setState({slide:!0}),!this.props.expand&&this.state.show&&this.state.slide&&this.setState({slide:!1}),s!==this.state&&this.state.slide&&n&&!this.props.className&&(n.style.setProperty("--kendo-actionsheet-height","auto"),n.style.setProperty("--kendo-actionsheet-max-height","none")),n&&this.props.navigatable){const l=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-titlebar"].map(c=>o.FOCUSABLE_ELEMENTS.concat(this.props.navigatableElements).map(d=>`${c} ${d}`)).flat()];this.navigation=new o.Navigation({tabIndex:this.props.tabIndex||0,root:this.actionSheetRef,rovingTabIndex:!1,selectors:l,keyboardEvents:{keydown:{Tab:this.onTab,Enter:this.onEnter,Escape:this.onEscape}}}),this.navigation.focusElement(this.navigation.first,null)}}render(){const{title:i,subTitle:s,animationStyles:n,animation:r,expand:l,tabIndex:c,items:d}=this.props,u=d==null?void 0:d.filter(I=>!I.group||I.group==="top"),h=d==null?void 0:d.filter(I=>I.group==="bottom"),m=u&&u.length>0&&h&&h.length>0,f=this.children(this.props.children),p=this.props.animationDuration||this.animationDuration,v=this.state.slide&&t.createElement("div",{className:o.classNames("k-actionsheet",this.props.className,{"k-actionsheet-bottom":!this.props.className}),role:"dialog","aria-modal":"true","aria-hidden":!1,"aria-labelledby":this.ariaLabeledBy,ref:this.actionSheetRef,onKeyDown:this.handleKeyDown},f[Ze]&&!i&&!s&&f[Ze],(i||s)&&t.createElement("div",{className:"k-actionsheet-titlebar k-text-center"},t.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},t.createElement("div",{className:this.actionSheetTitleClass,id:this.ariaLabeledBy},i&&t.createElement("div",null,i),s&&t.createElement("div",{className:"k-actionsheet-subtitle"},s)))),f[Wt]||t.createElement("div",{className:"k-actionsheet-content"},t.createElement("div",{className:"k-list-ul",role:"group"},u&&u.map((I,N)=>t.createElement(Te,{...I,id:N,key:N,item:I,tabIndex:c||0,onClick:this.handleItemClick}))),m&&t.createElement("hr",{className:"k-hr"}),t.createElement("div",{className:"k-list-ul",role:"group"},h&&h.map((I,N)=>t.createElement(Te,{...I,id:N+((u==null?void 0:u.length)||0),key:N,item:I,tabIndex:c||0,onClick:this.handleItemClick})))),f[Ht]);return t.createElement(t.Fragment,null,l||this.state.show?t.createElement(t.Fragment,null,t.createElement("div",{className:"k-actionsheet-container"},t.createElement("div",{className:"k-overlay",onClick:this.handleOverlayClick}),r?t.createElement(Me.Animation,{transitionName:this.state.slide?"slide-up":"slide-down",onExited:this.hideActionSheet,transitionEnterDuration:p,transitionExitDuration:p,animationEnteringStyle:n||this.bottomPosition,animationEnteredStyle:n||this.bottomPosition,animationExitingStyle:n||this.bottomPosition,exit:!0,enter:!0,appear:!1},v):v)):null)}}et.displayName="KendoReactActionSheet",et.propTypes={items:a.array,subTitle:a.string,title:a.string,navigatable:a.bool,navigatableElements:a.array},et.defaultProps={navigatable:!0,navigatableElements:[]};const _t=e=>{const{title:s,subtitle:n,actions:r,images:l,description:c}=e.eventData,[d,u]=t.useState(e.eventData.opened||!1),[h,m]=t.useState(e.eventData.opened||!!e.collapsible),f=I=>{if(u(!d),e.onChange){const N={syntheticEvent:I,nativeEvent:I.nativeEvent,eventData:e.eventData};e.onChange.call(void 0,N)}},p=I=>{if(e.onActionClick){const N={syntheticEvent:I,nativeEvent:I.nativeEvent,eventData:e.eventData};e.onActionClick.call(void 0,N)}},v=()=>t.createElement(t.Fragment,null,t.createElement(kt,null,t.createElement("div",{className:"k-card-description"},t.createElement("p",null,c),l&&l.map((I,N)=>t.createElement(wt,{key:N,src:I.src})))),t.createElement(yt,null,r&&r.map((I,N)=>t.createElement("a",{key:N,href:I.url,className:"k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary",onClick:p},I.text))));return t.createElement("div",{"data-testid":"k-timeline-card",className:o.classNames("k-timeline-card",{"k-collapsed":e.collapsible&&h})},t.createElement(Ne,{"aria-live":"polite","aria-describedby":e.id,"aria-atomic":"true",tabIndex:e.tabindex,role:e.horizontal?"tabpanel":"button","aria-expanded":e.collapsible&&h},t.createElement("span",{style:e.calloutStyle,className:o.classNames("k-timeline-card-callout","k-card-callout",{"k-callout-n":e.horizontal},{"k-callout-e":e.alternated&&!e.horizontal},{"k-callout-w":!e.alternated&&!e.horizontal})}),t.createElement("div",{className:"k-card-inner"},t.createElement(Et,null,t.createElement(Nt,null,t.createElement("span",{className:"k-event-title"},s),e.collapsible&&t.createElement("span",{onClick:I=>f(I),className:"k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button"},t.createElement(o.SvgIcon,{icon:K.chevronRightIcon}))),n&&t.createElement(St,null,n)),e.collapsible?t.createElement(Me.Reveal,{transitionEnterDuration:e.transitionDuration||400,transitionExitDuration:e.transitionDuration||400,onBeforeEnter:()=>m(!1),onAfterExited:()=>m(!0)},d?v():null):v())))};_t.propTypes={onChange:a.func,onActionClick:a.func};const yi=e=>e.sort((s,n)=>s.date.getTime()-n.date.getTime()),$t=e=>{let i;return e.reduce((n,r)=>(i!==r.date.getFullYear()?(i=r.date.getFullYear(),n.push({yearFlag:i},r)):n.push(r),n),[])},xs=e=>{const n=pe.useInternationalization(),[r,l]=t.useState(!1),[c,d]=t.useState(!0),[u,h]=t.useState(),[m,f]=t.useState(0),[p,v]=t.useState(),[I,N]=t.useState(0),[y,w]=t.useState(0),[g,C]=t.useState(1),[E,S]=t.useState(),[x,L]=t.useState(),[B,M]=t.useState([0,0,0]),[F,_]=t.useState(0),[Y,P]=t.useState(1),j=t.useRef(null),D=t.useRef(null),z=t.useRef(null),{eventsData:q,dateFormat:Z,navigatable:J,onActionClick:ne}=e,de=p?`${p}%`:"150px",se=t.useRef(new o.Navigation({tabIndex:0,root:j,selectors:[".k-timeline-scrollable-wrap"]}));t.useEffect(()=>{j.current&&e.navigatable&&(setTimeout(()=>{const k=se.current.first;k&&k.setAttribute("tabindex",String(0))},0),se.current.keyboardEvents={keydown:{ArrowRight:ue,ArrowLeft:$,End:H,Home:U}})},[e.navigatable,g,I]),t.useEffect(()=>{se.current.update()});const Se=k=>{J&&se.current&&se.current.triggerKeyboardEvent(k)};t.useEffect(()=>{var R;const k=o.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(tt),O=D.current,A=((R=j==null?void 0:j.current)==null?void 0:R.offsetWidth)||0;return k&&O&&k.observe(O),G(),tt(),M([A,0,-A]),()=>{k&&k.disconnect()}},[]),t.useEffect(()=>{const k=D.current,O=k&&k.children[g];if(O){const A=O.offsetWidth,R=!(m>=0);if(l(R),x){const V=x.length*A>I*A*((m*-1+100)/100);d(V)}(k==null?void 0:k.offsetWidth)*-m/100>=k.children.length*A&&(G(),tt(),f((O.offsetLeft-O.offsetWidth)/(I*O.offsetWidth)*100*-1)),Ls(O)}},[I,p,g]);const ue=(k,O,A)=>{if(D.current){const R=D.current.children[g+1],V=R&&R.classList.contains("k-timeline-flag-wrap")?g+2:g+1;if(x&&x.length<=V)return;I+y<=V&&xe(),Oe(V,A)}},$=(k,O,A)=>{if(D.current){const R=D.current&&D.current.children[g-1],V=R&&R.classList.contains("k-timeline-flag-wrap")?g-2:g-1;if(V<=0)return;V<y&&he(),Oe(V,A)}},U=(k,O,A)=>{if(D.current){if(g<=1)return;const R=1;me(!0,R,0,0),Oe(R,A)}},H=(k,O,A)=>{if(D.current){const R=D.current&&D.current.children.length-1;if(R<=g)return;const V=Math.floor(R/I),Ce=V*-100,Vt=V*I;me(!0,R,Vt,Ce),Oe(R,A)}},G=()=>{const k=$t(q);L(k),S([k[g-1],k[g],k[g+1]])},he=()=>{var O;if(D.current&&x){const A=y-I,R=y-1,V=x[R]&&((O=x[R])!=null&&O.yearFlag)?R-1:R,Ce=m+100>0?0:m+100;me(!1,V,A,Ce)}},xe=()=>{if(D.current&&x){const O=y+I,A=x[O]&&x[O].yearFlag?O+1:O,R=m-100;me(!0,A,O,R)}},me=(k,O,A,R)=>{ee(k,O),tt(),w(A),f(R),C(O)},ee=(k,O)=>{if(E&&x){const A=De(k,Y),R=Object.assign([],E,{[A]:x[O]});S(R),P(A),_(k?-100:100),setTimeout(()=>{var zs;const V=(zs=j.current)==null?void 0:zs.offsetWidth,Ce=Object.assign([],B,{[A]:0,[De(!0,A)]:V,[De(!1,A)]:V&&-V}),Vt=Object.assign([],R,{[De(!0,A)]:{},[De(!1,A)]:{}});S(Vt),M(Ce),_(0)},e.transitionDuration||300)}},De=(k,O)=>{const A=k?O+1:O-1;return E?A<0?E.length-1:A%E.length:0},Ls=k=>{var A;const O=(g-y)*k.offsetWidth+k.offsetWidth/2+(((A=z.current)==null?void 0:A.offsetWidth)||0);h(O)},Oe=(k,O)=>{O.preventDefault(),k>g?ee(!0,k):k<g&&ee(!1,k),C(k)},tt=t.useCallback(()=>{const k=D.current,O=k&&k.children[g];if(k instanceof HTMLElement&&O){const A=Math.round(k.offsetWidth/150);Ls(O),v(100/A),N(A)}},[]),Si=()=>({transitionDuration:"300ms"}),As=k=>({transform:`translateX(${k}%)`,transformOrigin:"left top"});return t.createElement(t.Fragment,null,t.createElement("div",{className:"k-timeline-track-wrap",ref:j,onKeyDown:Se},t.createElement("a",{ref:z,"aria-hidden":"true",onClick:()=>r&&he(),className:o.classNames("k-timeline-arrow","k-timeline-arrow-left","k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button",{"k-disabled":!r})},t.createElement(o.SvgIcon,{icon:K.caretAltLeftIcon})),t.createElement("a",{"aria-hidden":"true",onClick:()=>c&&xe(),className:o.classNames("k-timeline-arrow","k-timeline-arrow-right","k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button",{"k-disabled":!c})},t.createElement(o.SvgIcon,{icon:K.caretAltRightIcon})),t.createElement("div",{className:"k-timeline-track"},t.createElement("ul",{ref:D,className:"k-timeline-scrollable-wrap",role:"tablist",tabIndex:0,style:{transform:`translateX(${m}%)`}},x&&x.map((k,O)=>k.yearFlag?t.createElement("li",{role:"none",className:"k-timeline-track-item k-timeline-flag-wrap",style:{flex:`1 0 ${de}`},key:O},t.createElement("span",{className:"k-timeline-flag"},k.yearFlag)):t.createElement("li",{role:"tab",className:o.classNames("k-timeline-track-item",{"k-focus":O===g}),"aria-selected":O===g,style:{flex:`1 0 ${de}`},key:O},t.createElement("div",{className:"k-timeline-date-wrap"},t.createElement("span",{className:"k-timeline-date"},n.formatDate(k.date,Z))),t.createElement("span",{onClick:A=>Oe(O,A),className:"k-timeline-circle"})))))),t.createElement("div",{className:"k-timeline-events-list"},t.createElement("ul",{className:"k-timeline-scrollable-wrap",style:F===0?{...As(F)}:{...As(F),...Si()}},E&&E.map((k,O)=>t.createElement("li",{key:O,className:"k-timeline-event",style:{transform:`translate3d(${B[O]}px, 0px, 0px)`}},k&&t.createElement(_t,{tabindex:B[O]===0?0:-1,eventData:k,onActionClick:ne,horizontal:!0,collapsible:!1,calloutStyle:{left:`${u}px`}}))))))};xs.propTypes={onActionClick:a.func};const Ds=e=>{const i=pe.useInternationalization(),[s,n]=t.useState(),{collapsibleEvents:r,transitionDuration:l,eventsData:c,dateFormat:d,alterMode:u,navigatable:h,onChange:m,onActionClick:f}=e,p=t.useRef(null),v=t.useRef(new o.Navigation({tabIndex:0,root:p,selectors:[".k-card-vertical"]}));t.useEffect(()=>{p.current&&e.navigatable&&(setTimeout(()=>{const g=v.current.first;g&&g.setAttribute("tabindex",String(0))},0),v.current.keyboardEvents={keydown:{Space:N,Enter:N}})},[e.navigatable]),t.useEffect(()=>{n($t(c))},[]),t.useEffect(()=>{v.current.update()});const I=g=>{h&&v.current&&v.current.triggerKeyboardEvent(g)},N=(g,C,E)=>{E.preventDefault();const S=g.querySelector(".k-card-title .k-event-collapse");S&&S.click()};let y=0;const w=o.useId();return t.createElement("ul",{ref:p,onKeyDown:I},s&&s.map((g,C)=>{const E=(C+y)%2===0;g.yearFlag&&(y+=1);const S=w+"-"+C;return t.createElement(t.Fragment,{key:C},g.yearFlag?t.createElement("li",{className:"k-timeline-flag-wrap"},t.createElement("span",{className:"k-timeline-flag"},g.yearFlag)):t.createElement("li",{className:o.classNames("k-timeline-event",{"k-reverse":E})},t.createElement("div",{className:"k-timeline-date-wrap"},t.createElement("span",{className:"k-timeline-date",id:S},i.formatDate(g.date,d))),t.createElement("a",{className:"k-timeline-circle"}),t.createElement(_t,{id:S,tabindex:h?0:-1,eventData:g,alternated:u&&E,collapsible:r,transitionDuration:l,onChange:m,onActionClick:f})))}))};Ds.propTypes={onActionClick:a.func};const Os=e=>{const i={alterMode:!1,collapsibleEvents:!0,dateFormat:"MMM dd, yyyy",...e},{collapsibleEvents:s,transitionDuration:n,className:r,alterMode:l,navigatable:c,horizontal:d,events:u,dateFormat:h,onChange:m,onActionClick:f}=i,[p,v]=t.useState(),I=t.useRef(null);return t.useEffect(()=>{I.current&&v(I.current.offsetWidth)},[]),t.createElement("div",{ref:I,className:o.classNames("k-timeline",{"k-timeline-collapsible":s,"k-timeline-vertical":!d,"k-timeline-alternating":l,"k-timeline-horizontal":d},r),style:{width:`${p}px`}},d?t.createElement(xs,{navigatable:c,eventsData:u,dateFormat:h,transitionDuration:n,onActionClick:f}):t.createElement(Ds,{navigatable:c,eventsData:u,dateFormat:h,alterMode:l,collapsibleEvents:s,transitionDuration:n,onChange:m,onActionClick:f}))};Os.propTypes={className:a.string};const Cs=e=>{const i=t.useRef(null);return t.useEffect(()=>{e.show&&setTimeout(()=>{const s=i.current&&i.current.element,n=s&&s.querySelector(".k-menu-item"),r=o.getActiveElement(n&&n.ownerDocument);n&&n!==r&&n.focus()})},[e.show]),t.createElement(qt.Popup,{show:e.show,offset:e.offset,popupClass:"k-menu-popup",animate:!1},t.createElement(be,{vertical:!0,...e,ref:i,className:o.classNames("k-context-menu",e.className),onClose:e.onClose,role:"menu"},e.children))};Cs.displayName="KendoReactContextMenu";const Ut=t.forwardRef((e,i)=>{o.validatePackage(W);const s=t.useRef(null),[n,r]=t.useState(!1),l=t.useCallback(()=>({element:s.current}),[]);t.useImperativeHandle(i,l);const{expanded:c=!1,disabled:d,title:u,subtitle:h,onAction:m,expandIcon:f,collapseIcon:p,expandSVGIcon:v,collapseSVGIcon:I}=e,N=t.useCallback(S=>{o.dispatchEvent(m,S,l(),{expanded:c})},[m,c]),y=t.useCallback(S=>{(S.keyCode===o.Keys.enter||S.keyCode===o.Keys.space)&&(S.preventDefault(),o.dispatchEvent(m,S,l(),{expanded:c}))},[m,c]),w=t.useCallback(()=>{e.disabled||r(!0)},[e.disabled]),g=t.useCallback(()=>{e.disabled||r(!1)},[e.disabled]),{onFocus:C,onBlur:E}=o.useAsyncFocusBlur({onFocus:w,onBlur:g});return t.createElement("div",{ref:s,className:o.classNames("k-expander",e.className,{"k-expanded":c,"k-focus":n&&!d,"k-disabled":d}),onFocus:C,onBlur:E,style:e.style,id:e.id,dir:o.useRtl(s,e.dir),onKeyDown:d?void 0:y},t.createElement("div",{role:"button","aria-controls":e.ariaControls,"aria-expanded":c,"aria-disabled":d,tabIndex:o.getTabIndex(e.tabIndex,d),className:"k-expander-header",onClick:d?void 0:N},u!==void 0?t.createElement("div",{className:"k-expander-title"},u):void 0,t.createElement("span",{className:"k-spacer"}),h!==void 0?t.createElement("div",{className:"k-expander-sub-title"},h):void 0,t.createElement("span",{className:"k-expander-indicator"},t.createElement(o.IconWrap,{name:c?p?void 0:"chevron-up":f?void 0:"chevron-down",icon:c?!I&&!p?K.chevronUpIcon:I:!v&&!f?K.chevronDownIcon:v,className:o.classNames(c?{[String(p)]:!!p}:{[String(f)]:!!f})}))),e.children)});Ut.propTypes={children:a.node,className:a.string,style:a.object,dir:a.string,id:a.string,tabIndex:a.number,title:a.node,subtitle:a.node,expandIcon:a.string,collapseIcon:a.string,expanded:a.bool,disabled:a.bool,onAction:a.func},Ut.displayName="KendoReactExpansionPanel";const Ms=t.forwardRef((e,i)=>t.createElement("div",{ref:i,...e,className:o.classNames("k-expander-content-wrapper",e.className)},t.createElement("div",{className:"k-expander-content"},e.children)));Ms.displayName="KendoReactExpansionPanelContent";const jt=o.withIdHOC(be);jt.displayName="KendoReactMenu";const wi=o.withIdHOC(Fe);jt.displayName="KendoReactMenu",b.ActionSheet=et,b.ActionSheetContent=Pe,b.ActionSheetFooter=Qe,b.ActionSheetHeader=Je,b.ActionSheetItem=Te,b.AppBar=Ct,b.AppBarSection=Lt,b.AppBarSpacer=At,b.Avatar=vs,b.BottomNavigation=_e,b.BottomNavigationItem=ye,b.Breadcrumb=Ye,b.BreadcrumbDelimiter=qe,b.BreadcrumbLink=Ge,b.BreadcrumbListItem=Ve,b.BreadcrumbOrderedList=Xe,b.Card=Ne,b.CardActions=yt,b.CardBody=kt,b.CardFooter=bs,b.CardHeader=Et,b.CardImage=wt,b.CardSubtitle=St,b.CardTitle=Nt,b.ContextMenu=Cs,b.Drawer=Re,b.DrawerContent=Dt,b.DrawerItem=Ke,b.DrawerNavigation=Be,b.ExpansionPanel=Ut,b.ExpansionPanelContent=Ms,b.GridLayout=je,b.GridLayoutItem=Rt,b.Menu=jt,b.MenuClassComponent=be,b.MenuItem=it,b.MenuItemArrow=ot,b.MenuItemInternalsList=ct,b.MenuItemLink=lt,b.PanelBar=bt,b.PanelBarItem=ie,b.Splitter=fs,b.SplitterBar=os,b.SplitterPane=ms,b.StackLayout=$e,b.Step=ke,b.Stepper=He,b.TabStrip=wi,b.TabStripClassComponent=Fe,b.TabStripContent=ut,b.TabStripNavigation=ze,b.TabStripNavigationItem=dt,b.TabStripTab=cs,b.TileLayout=Kt,b.Timeline=Os,b.addYearsFlags=$t,b.contentDisplayName=Wt,b.downArrowName=ns,b.flatChildren=pt,b.flatVisibleChildren=gt,b.flatVisibleItems=us,b.footerDisplayName=Ht,b.getFirstId=ds,b.getInitialState=mt,b.headerDisplayName=Ze,b.isArrayEqual=hs,b.isPresent=ti,b.leftArrowName=rs,b.renderChildren=ht,b.rightArrowName=as,b.sortEventList=yi,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/index.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export * from './index';