@progress/kendo-react-dialogs 5.5.1-dev.202207141327 → 5.6.0-dev.202208040930

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- System.register("@progress/kendo-react-dialogs",["@progress/kendo-react-buttons","@progress/kendo-react-common","prop-types","react","react-dom"],function(e,t){var l={},p={},c={},u={},h={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(h,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){h[e]=t[e]})}],execute:function(){e((()=>{"use strict";var o={580:function(e,t,o){var n,r,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),f=this&&this.__assign||function(){return(f=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},w=(Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=t.DialogPropsContext=void 0,o(954)),y=o(493),a=o(895),v=o(348),s=o(379),m=o(811),d=o(811),l=o(363),p=o(147),E=o(56),o=(r=w.Component,i(c,r),c.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},c.prototype.render=function(){var t=this,e=void 0!==this.props.id?this.props.id:this.titleId,o=this.props,n=o.title,i=o.width,r=o.height,a=o.children,s=o.minWidth,d=o.dir,l=o.style,o=o.contentStyle,a=w.Children.toArray(a),p=this.getContent(a),a=this.getActionBar(a),c=n?{"aria-labelledby":e}:null,u=void 0===this.props.closeIcon||this.props.closeIcon,h=this.getCurrentZIndex(),g=w.createElement(m.ZIndexContext.Provider,{value:h},w.createElement("div",f({},((g={})[E.DATA_DIALOGS_ID]=this._id,g),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:d,style:f({zIndex:h},l),ref:function(e){return t.element=e}}),w.createElement("div",{className:"k-overlay"}),w.createElement("div",f({},c,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:i,height:r,minWidth:s}}),this.props.title&&w.createElement(v.DialogTitleBar,{closeIcon:u,onCloseButtonClick:this.onCloseDialog,id:e},n),w.createElement("div",{className:"k-window-content k-dialog-content",style:o},p),a)));return m.canUseDOM?null!==this.props.appendTo?y.createPortal(g,this.props.appendTo||document.body):g:null},c.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===s.DialogActionsBar})},c.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==s.DialogActionsBar})},c.prototype.generateTitleId=function(){return"dialog-title"+this._id},c.displayName="Dialog",c.propTypes={title:a.any,id:a.string,dir:a.string,style:a.object,closeIcon:a.bool,width:a.oneOfType([a.number,a.string]),height:a.oneOfType([a.number,a.string]),minWidth:a.oneOfType([a.number,a.string]),autoFocus:a.bool},c.defaultProps={autoFocus:!1},c.contextType=m.ZIndexContext,c);function c(e){var i=r.call(this,e)||this;return i.context=0,i._id=(0,m.guid)(),i.titleId=i.generateTitleId(),i.onCloseDialog=function(e){e.preventDefault(),(0,m.dispatchEvent)(i.props.onClose,e,i,void 0)},i.onKeyDown=function(e){e.keyCode===m.Keys.esc&&i.props.onClose&&(e.preventDefault(),i.onCloseDialog(e));var t,o,n=i.element;n&&e.keyCode===m.Keys.tab&&(t=(n=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))[0],n=n[n.length-1],o=i.getDocument(),e.shiftKey?(o&&o.activeElement===t||o&&o.activeElement===i.element)&&(n.focus(),e.preventDefault()):o&&o.activeElement===n&&(t.focus(),e.preventDefault()))},i.getCurrentZIndex=function(){return i.state&&void 0!==i.context?i.state.zIndex>(i.context?i.context+E.ZINDEX_DIALOGS_STEP:0)?i.state.zIndex:i.context+E.ZINDEX_DIALOGS_STEP:i.context||E.DEFAULT_DIALOGS_ZINDEX},i.getDocument=function(){return i.props.appendTo?i.props.appendTo.ownerDocument:document},(0,d.validatePackage)(l.packageMetadata),i.state={zIndex:(0,p.getMaxZIndex)(i.getCurrentZIndex(),i.getDocument(),i._id)},i}t.DialogPropsContext=(0,m.createPropsContext)(),t.Dialog=(0,m.withPropsContext)(t.DialogPropsContext,o),t.Dialog.displayName="KendoReactDialog"},379:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogActionsBar=void 0;var n=o(954),i=o(895),r=o(811),a=(t.DialogActionsBar=function(e){var t=e.layout,t=void 0===t?a.layout:t,e=e.children,t=(0,r.classNames)("k-dialog-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===t,"k-justify-content-center":"center"===t,"k-justify-content-end":"end"===t,"k-justify-content-stretch":"stretched"===t});return n.createElement("div",{className:t},e)},t.DialogActionsBar.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])},{layout:"stretched"})},348:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogTitleBar=void 0;var i=o(954),r=o(536);t.DialogTitleBar=function(e){var t=e.children,o=e.onCloseButtonClick,n=e.id,e=e.closeIcon;return i.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:n},i.createElement("div",{className:"k-window-title k-dialog-title"},t),i.createElement("div",{className:"k-window-actions k-dialog-actions"},e&&i.createElement(r.Button,{role:"button","aria-label":"Close",onClick:o,icon:"x",fillMode:"flat",className:"k-window-action k-dialog-action k-dialog-close"})))}},522:function(e,t,o){var n,i,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.MiddleLayerOptimization=void 0,i=o(954).Component,r(a,i),a.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},a.prototype.render=function(){return this.props.children},a);function a(){return null!==i&&i.apply(this,arguments)||this}t.MiddleLayerOptimization=o},259:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.windowStage=void 0,(t=t.windowStage||(t.windowStage={})).DEFAULT="DEFAULT",t.FULLSCREEN="FULLSCREEN",t.MINIMIZED="MINIMIZED"},891:function(e,t,o){var n,i,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.Window=t.WindowPropsContext=void 0,o(954)),d=o(493),l=o(895),p=o(583),c=o(811),u=o(811),h=o(151),g=o(522),f=o(259),w=o(811),y=o(363),v=o(617),m=o(56),E=o(147),o=(i=s.Component,r(S,i),S.prototype.componentDidMount=function(){var e,t=this.getWindow(),t=(t&&t.addEventListener("resize",this.handleBrowserWindowResize),this.getDocument());this.props.appendTo&&t&&(e=this.props.appendTo.getBoundingClientRect(),t=t.body.getBoundingClientRect(),this.offSetCoordinates.x=e.left-t.left,this.offSetCoordinates.y=e.top-t.top)},S.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},S.prototype.componentDidUpdate=function(){var e,t=this.getDocument();this.props.appendTo&&t&&(e=this.props.appendTo.getBoundingClientRect(),t=t.body.getBoundingClientRect(),this.offSetCoordinates.x=e.left-t.left,this.offSetCoordinates.y=e.top-t.top)},S.prototype.render=function(){var t=this,e=s.Children.toArray(this.props.children),o=this.getContent(e),e=this.getActionBar(e),n=this.getCurrentZIndex(),i=(0,c.classNames)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),r=s.createElement(c.ZIndexContext.Provider,{value:n},s.createElement(s.Fragment,null,this.props.modal&&s.createElement("div",{className:"k-overlay",style:a({zIndex:n},this.props.overlayStyle)}),s.createElement("div",a({},((r={})[m.DATA_DIALOGS_ID]=this._id,r),{tabIndex:0,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:i,style:a({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:n},this.props.style)}),s.createElement(g.MiddleLayerOptimization,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},s.createElement(u.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},s.createElement(p.WindowTitleBar,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton},this.props.title)),this.windowStage!==f.windowStage.MINIMIZED?s.createElement(s.Fragment,null,s.createElement("div",{className:"k-window-content"},o),e):null,this.windowStage===f.windowStage.DEFAULT&&this.props.resizable?s.createElement(h.ResizeHandlers,{onResize:this.handleResize}):null))));return c.canUseDOM?null!==this.props.appendTo?d.createPortal(r,this.props.appendTo||document.body):r:null},Object.defineProperty(S.prototype,"top",{get:function(){return this.windowStage!==f.windowStage.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"left",{get:function(){return this.windowStage!==f.windowStage.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===f.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow(),e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===f.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow(),e=t?t.innerHeight:0}else this.windowStage===f.windowStage.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),S.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===v.WindowActionsBar})},S.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==v.WindowActionsBar})},S.displayName="Window",S.propTypes={width:l.number,height:l.number,left:l.number,top:l.number,initialWidth:l.number,initialHeight:l.number,initialLeft:l.number,initialTop:l.number,minWidth:l.number,minHeight:l.number,resizable:l.bool,draggable:l.bool,title:l.any,shouldUpdateOnDrag:l.bool,stage:l.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:l.string,style:l.object,overlayStyle:l.object},S.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},S.contextType=c.ZIndexContext,S);function S(e){var h=i.call(this,e)||this;return h.context=0,h.draggable=null,h.offSetCoordinates={x:0,y:0},h._id=(0,c.guid)(),h.onKeyDown=function(e){if(e.target===e.currentTarget){var t=h.props.minWidth||120,o=h.props.minHeight||100;if(e.ctrlKey&&h.props.resizable){switch(e.keyCode){case c.Keys.up:e.preventDefault(),o<=h.height-5&&h.setState({height:h.height-5});break;case c.Keys.down:e.preventDefault(),h.setState({height:h.height+5});break;case c.Keys.left:t<=h.width-5&&h.setState({width:h.width-5});break;case c.Keys.right:h.setState({width:h.width+5});break;default:return}h.dispatchMoveEvent(h.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case c.Keys.up:h.windowStage===f.windowStage.MINIMIZED?(h.handleRestore(e),(0,c.dispatchEvent)(h.props.onStageChange,e,h,{state:f.windowStage.DEFAULT})):h.windowStage===f.windowStage.DEFAULT&&(h.handleFullscreen(e),(0,c.dispatchEvent)(h.props.onStageChange,e,h,{state:f.windowStage.FULLSCREEN}));break;case c.Keys.down:h.windowStage===f.windowStage.FULLSCREEN?(h.handleRestore(e),(0,c.dispatchEvent)(h.props.onStageChange,e,h,{state:f.windowStage.DEFAULT})):h.windowStage===f.windowStage.DEFAULT&&(h.handleMinimize(e),(0,c.dispatchEvent)(h.props.onStageChange,e,h,{state:f.windowStage.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case c.Keys.esc:return void(h.props.onClose&&h.handleCloseWindow(e));case c.Keys.up:h.setState({top:h.state.top-5});break;case c.Keys.down:h.setState({top:h.state.top+5});break;case c.Keys.left:h.setState({left:h.state.left-5});break;case c.Keys.right:h.setState({left:h.state.left+5});break;default:return}h.dispatchMoveEvent(h.props.onMove,e,!1,void 0)}}},h.onPress=function(e){e=e.event;h.windowCoordinatesState.differenceLeft=e.pageX-h.left,h.windowCoordinatesState.differenceTop=e.pageY-h.top},h.onDrag=function(e){e=e.event;e.originalEvent.preventDefault(),h.windowStage!==f.windowStage.FULLSCREEN&&h.props.draggable&&(h.setState({top:Math.max(e.pageY-h.windowCoordinatesState.differenceTop,0),left:e.pageX-h.windowCoordinatesState.differenceLeft,isDragging:!0}),h.props.onMove&&h.dispatchMoveEvent(h.props.onMove,e,!0,!1))},h.onRelease=function(e){e=e.event;h.windowStage!==f.windowStage.FULLSCREEN&&h.props.draggable&&h.props.onMove&&h.dispatchMoveEvent(h.props.onMove,e,!0,!0),h.setState({isDragging:!1})},h.onFocus=function(){h._blurTimeout?(clearTimeout(h._blurTimeout),h._blurTimeout=void 0):h.setState({focused:!0,zIndex:(0,E.getMaxZIndex)(h.getCurrentZIndex(),h.getDocument(),h._id)})},h.onBlur=function(){clearTimeout(h._blurTimeout);var e=h.getWindow();e&&(h._blurTimeout=e.setTimeout(function(){h.setState({focused:!1}),h._blurTimeout=void 0}))},h.getInitialTop=function(){if(void 0!==h.props.top)return h.props.top;if(void 0!==h.props.initialTop)return h.props.initialTop;var e=300;if(void 0!==h.props.height?e=h.props.height:void 0!==h.props.initialHeight&&(e=h.props.initialHeight),h.props.appendTo)return h.props.appendTo.offsetHeight/2-e/2;var t=h.getWindow();return t?t.innerHeight/2-e/2:0},h.getInitialLeft=function(){if(void 0!==h.props.left)return h.props.left;if(void 0!==h.props.initialLeft)return h.props.initialLeft;var e=300;if(void 0!==h.props.width?e=h.props.width:void 0!==h.props.initialWidth&&(e=h.props.initialWidth),h.props.appendTo)return h.props.appendTo.offsetWidth/2-e/2;var t=h.getWindow();return t?t.innerWidth/2-e/2:0},h.getInitialWidth=function(){var e=300;return void 0!==h.props.width?e=h.props.width:void 0!==h.props.initialWidth&&(e=h.props.initialWidth),e},h.getInitialHeight=function(){var e=300;return void 0!==h.props.height?e=h.props.height:void 0!==h.props.initialHeight&&(e=h.props.initialHeight),e},h.handleMinimize=function(e){e.preventDefault(),h.windowCoordinatesState.leftBeforeAction=h.left,h.windowCoordinatesState.topBeforeAction=h.top,h.windowCoordinatesState.widthBeforeAction=h.width,h.windowCoordinatesState.heightBeforeAction=h.height,h.setState({stage:f.windowStage.MINIMIZED,height:0}),(0,c.dispatchEvent)(h.props.onStageChange,e,h,{state:f.windowStage.MINIMIZED})},h.handleFullscreen=function(e){e.preventDefault(),h.windowCoordinatesState.leftBeforeAction=h.left,h.windowCoordinatesState.topBeforeAction=h.top,h.windowCoordinatesState.widthBeforeAction=h.width,h.windowCoordinatesState.heightBeforeAction=h.height;var t=h.getWindow(),o=t?t.innerWidth:0,t=t?t.innerHeight:0;h.setState({left:0,top:0,width:h.props.appendTo?h.props.appendTo.offsetWidth:o,height:h.props.appendTo?h.props.appendTo.offsetHeight:t,stage:f.windowStage.FULLSCREEN}),(0,c.dispatchEvent)(h.props.onStageChange,e,h,{state:f.windowStage.FULLSCREEN})},h.handleRestore=function(e){e.preventDefault(),h.windowStage===f.windowStage.FULLSCREEN?h.setState({stage:f.windowStage.DEFAULT,left:h.windowCoordinatesState.leftBeforeAction,top:h.windowCoordinatesState.topBeforeAction,width:h.windowCoordinatesState.widthBeforeAction,height:h.windowCoordinatesState.heightBeforeAction}):h.windowStage===f.windowStage.MINIMIZED&&h.setState({stage:f.windowStage.DEFAULT,height:h.windowCoordinatesState.heightBeforeAction}),(0,c.dispatchEvent)(h.props.onStageChange,e,h,{state:f.windowStage.DEFAULT})},h.handleCloseWindow=function(e){e.preventDefault(),(0,c.dispatchEvent)(h.props.onClose,e,h,{state:void 0})},h.handleDoubleClick=function(e){h.windowStage===f.windowStage.FULLSCREEN||h.windowStage===f.windowStage.MINIMIZED?h.handleRestore(e):h.handleFullscreen(e)},h.handleResize=function(e,t){var o=h.props.appendTo?e.pageX-h.offSetCoordinates.x:e.pageX,n=h.props.appendTo?e.pageY-h.offSetCoordinates.y:e.pageY,i=h.width,r=h.height,a=h.props.minWidth||120,s=h.props.minHeight||100,d=h.top-n,l=h.left-o,p=o-h.left,c=n-h.top,u=Object.assign({},h.state,{isDragging:!t.end});0<=t.direction.indexOf("n")&&s-(r+d)<0&&(0<h.top&&(u.height=r+d),u.top=n),0<=t.direction.indexOf("s")&&s-c<0&&(u.height=c),0<=t.direction.indexOf("w")&&a-(i+l)<0&&(0<h.left&&(u.width=i+l),u.left=o),0<=t.direction.indexOf("e")&&a-p<0&&(u.width=p),h.setState(u),h.dispatchMoveEvent(h.props.onResize,e,!0,t.end)},h.dispatchMoveEvent=function(e,t,o,n){e&&e.call(void 0,{nativeEvent:t.nativeEvent||t.originalEvent,drag:o,end:n,target:h,left:h.state.left,top:h.state.top,width:h.state.width,hight:h.state.height,height:h.state.height})},h.handleBrowserWindowResize=function(){var e,t;h.windowStage===f.windowStage.FULLSCREEN&&(e=(t=h.getWindow())?t.innerWidth:0,t=t?t.innerHeight:0,h.setState({width:h.props.appendTo?h.props.appendTo.offsetWidth:e,height:h.props.appendTo?h.props.appendTo.offsetHeight:t}))},h.getCurrentZIndex=function(){return h.state&&void 0!==h.context?h.state.zIndex>(h.context?h.context+m.ZINDEX_DIALOGS_STEP:0)?h.state.zIndex:h.context+m.ZINDEX_DIALOGS_STEP:h.context||m.DEFAULT_DIALOGS_ZINDEX},h.getDocument=function(){return h.props.appendTo?h.props.appendTo.ownerDocument:document},h.getWindow=function(){var e=h.getDocument();return e&&e.defaultView},(0,w.validatePackage)(y.packageMetadata),h.state={stage:h.props.stage||f.windowStage.DEFAULT,isDragging:!1,top:h.getInitialTop(),left:h.getInitialLeft(),width:h.getInitialWidth(),height:h.getInitialHeight(),focused:!0,zIndex:(0,E.getMaxZIndex)(h.getCurrentZIndex(),h.getDocument(),h._id)},h.windowCoordinatesState={leftBeforeAction:h.getInitialLeft(),topBeforeAction:h.getInitialTop(),widthBeforeAction:h.getInitialWidth(),heightBeforeAction:h.getInitialHeight()},h}t.WindowPropsContext=(0,u.createPropsContext)(),t.Window=(0,u.withPropsContext)(t.WindowPropsContext,o),t.Window.displayName="KendoReactWindow"},617:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowActionsBar=void 0;var n=o(954),i=o(895),r=o(811),a=(t.WindowActionsBar=function(e){var t=e.layout,t=void 0===t?a.layout:t,e=e.children,t=(0,r.classNames)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===t,"k-justify-content-center":"center"===t,"k-justify-content-end":"end"===t,"k-justify-content-stretch":"stretched"===t});return n.createElement("div",{className:t},e)},t.WindowActionsBar.propTypes={children:i.any,layout:i.oneOf(["start","center","end","stretched"])},{layout:"end"})},151:function(e,t,o){var n,i,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandlers=void 0,o(954)),s=o(811),d=["n","e","s","w","se","sw","ne","nw"],o=(i=a.Component,r(l,i),l.prototype.render=function(){var o=this;return a.createElement("div",null," ",d.map(function(t,e){return a.createElement(s.Draggable,{key:e,onDrag:function(e){e=e.event;e.originalEvent.preventDefault(),o.props.onResize(e,{end:!1,direction:t})},onRelease:function(e){e=e.event;e.originalEvent.preventDefault(),o.props.onResize(e,{end:!0,direction:t})}},a.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))}))},l);function l(){return null!==i&&i.apply(this,arguments)||this}t.ResizeHandlers=o},583:function(e,t,o){function n(e){var t=e.children,o=e.onCloseButtonClick,n=e.onMinimizeButtonClick,i=e.onFullScreenButtonClick,r=e.onRestoreButtonClick,a=e.onDoubleClick,s=e.stage,d=e.forwardedRef,n=e.minimizeButton?l.createElement(e.minimizeButton,{onClick:n,stage:s}):l.createElement(c.Button,{fillMode:"flat",icon:"window-minimize",onClick:n}),i=e.maximizeButton?l.createElement(e.maximizeButton,{onClick:i,stage:s}):l.createElement(c.Button,{fillMode:"flat",icon:"window-maximize",onClick:i}),r=e.restoreButton?l.createElement(e.restoreButton,{onClick:r,stage:s}):l.createElement(c.Button,{fillMode:"flat",icon:"window-restore",onClick:r}),e=e.closeButton?l.createElement(e.closeButton,{onClick:o,stage:s}):l.createElement(c.Button,{fillMode:"flat",icon:"close",onClick:o});return l.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:d,onDoubleClick:a},l.createElement("div",{className:"k-window-title"},t||""),l.createElement("div",{className:"k-window-actions"},s===p.windowStage.DEFAULT&&n,s===p.windowStage.DEFAULT&&i,s!==p.windowStage.DEFAULT&&r,e))}var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=(Object.defineProperty(t,"__esModule",{value:!0}),t.WindowTitleBar=void 0,o(954)),p=o(259),c=o(536);t.WindowTitleBar=l.forwardRef(function(e,t){return l.createElement(n,i({},e,{forwardedRef:t}))})},56:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DIALOGS_SELECTOR=t.ZINDEX_DIALOGS_STEP=t.DEFAULT_DIALOGS_ZINDEX=t.DATA_DIALOGS_ID=void 0,t.DATA_DIALOGS_ID="data-windowid",t.DEFAULT_DIALOGS_ZINDEX=10002,t.ZINDEX_DIALOGS_STEP=2,t.DIALOGS_SELECTOR=".k-window:not(.k-dialog), .k-dialog-wrapper"},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1657804398,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},147:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxZIndex=void 0;var a=o(56);t.getMaxZIndex=function(e,o,n){var i,r=e;return o&&o.defaultView?(e=o.querySelectorAll(a.DIALOGS_SELECTOR),i=!1,e.forEach(function(e){var t=o.defaultView.getComputedStyle(e,null);e.getAttribute(a.DATA_DIALOGS_ID)!==n&&null!==t.zIndex&&(e=parseInt(t.zIndex,10),r<=e&&(r=e,i=!0))}),i?r+a.ZINDEX_DIALOGS_STEP:r):r}},536:e=>{e.exports=l},811:e=>{e.exports=p},895:e=>{e.exports=c},954:e=>{e.exports=u},493:e=>{e.exports=h}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;t=n[e]={exports:{}};return o[e].call(t.exports,t,t.exports,i),t.exports}var e,t,r,a,s,d={};return e=d,Object.defineProperty(e,"__esModule",{value:!0}),e.WindowPropsContext=e.WindowActionsBar=e.Window=e.DialogPropsContext=e.DialogActionsBar=e.Dialog=void 0,t=i(580),Object.defineProperty(e,"Dialog",{enumerable:!0,get:function(){return t.Dialog}}),Object.defineProperty(e,"DialogPropsContext",{enumerable:!0,get:function(){return t.DialogPropsContext}}),r=i(379),Object.defineProperty(e,"DialogActionsBar",{enumerable:!0,get:function(){return r.DialogActionsBar}}),a=i(891),Object.defineProperty(e,"Window",{enumerable:!0,get:function(){return a.Window}}),Object.defineProperty(e,"WindowPropsContext",{enumerable:!0,get:function(){return a.WindowPropsContext}}),s=i(617),Object.defineProperty(e,"WindowActionsBar",{enumerable:!0,get:function(){return s.WindowActionsBar}}),d})())}}});
1
+ System.register("@progress/kendo-react-dialogs",["react","react-dom","prop-types","@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-licensing"],function(e,t){var u={},d={},c={},p={},f={},m={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(m,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){d[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){m[e]=t[e]})}],execute:function(){e((()=>{"use strict";var n={580:function(e,t,n){var r,i,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=this&&this.__assign||function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},h=(Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=t.DialogPropsContext=void 0,n(954)),y=n(493),a=n(895),v=n(348),s=n(379),w=n(811),l=n(811),u=n(363),d=n(147),M=n(56),n=(i=h.Component,o(c,i),c.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},c.prototype.render=function(){var t=this,e=void 0!==this.props.id?this.props.id:this.titleId,n=this.props,r=n.title,o=n.width,i=n.height,a=n.children,s=n.minWidth,l=n.dir,u=n.style,n=n.contentStyle,a=h.Children.toArray(a),d=this.getContent(a),a=this.getActionBar(a),c=r?{"aria-labelledby":e}:null,p=void 0===this.props.closeIcon||this.props.closeIcon,f=this.getCurrentZIndex(),m=h.createElement(w.ZIndexContext.Provider,{value:f},h.createElement("div",g({},((m={})[M.DATA_DIALOGS_ID]=this._id,m),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:l,style:g({zIndex:f},u),ref:function(e){return t.element=e}}),h.createElement("div",{className:"k-overlay"}),h.createElement("div",g({},c,{className:"k-widget k-window k-dialog",role:"dialog","aria-modal":!0,"aria-describedby":this.contentId,style:{width:o,height:i,minWidth:s}}),this.props.title&&h.createElement(v.DialogTitleBar,{closeIcon:p,onCloseButtonClick:this.onCloseDialog,id:e},r),h.createElement("div",{className:"k-window-content k-dialog-content",style:n,id:this.contentId},d),a)));return w.canUseDOM?null!==this.props.appendTo?y.createPortal(m,this.props.appendTo||document.body):m:null},c.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===s.DialogActionsBar})},c.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==s.DialogActionsBar})},c.prototype.generateTitleId=function(){return"dialog-title"+this._id},c.prototype.generateContentId=function(){return"dialog-content"+this._id},c.displayName="Dialog",c.propTypes={title:a.any,id:a.string,dir:a.string,style:a.object,closeIcon:a.bool,width:a.oneOfType([a.number,a.string]),height:a.oneOfType([a.number,a.string]),minWidth:a.oneOfType([a.number,a.string]),autoFocus:a.bool},c.defaultProps={autoFocus:!1},c.contextType=w.ZIndexContext,c);function c(e){var o=i.call(this,e)||this;return o.context=0,o._id=(0,w.guid)(),o.titleId=o.generateTitleId(),o.contentId=o.generateContentId(),o.onCloseDialog=function(e){e.preventDefault(),(0,w.dispatchEvent)(o.props.onClose,e,o,void 0)},o.onKeyDown=function(e){e.keyCode===w.Keys.esc&&o.props.onClose&&(e.preventDefault(),o.onCloseDialog(e));var t,n,r=o.element;r&&e.keyCode===w.Keys.tab&&(t=(r=r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))[0],r=r[r.length-1],n=o.getDocument(),e.shiftKey?(n&&n.activeElement===t||n&&n.activeElement===o.element)&&(r.focus(),e.preventDefault()):n&&n.activeElement===r&&(t.focus(),e.preventDefault()))},o.getCurrentZIndex=function(){return o.state&&void 0!==o.context?o.state.zIndex>(o.context?o.context+M.ZINDEX_DIALOGS_STEP:0)?o.state.zIndex:o.context+M.ZINDEX_DIALOGS_STEP:o.context||M.DEFAULT_DIALOGS_ZINDEX},o.getDocument=function(){return o.props.appendTo?o.props.appendTo.ownerDocument:document},(0,l.validatePackage)(u.packageMetadata),o.state={zIndex:(0,d.getMaxZIndex)(o.getCurrentZIndex(),o.getDocument(),o._id)},o}t.DialogPropsContext=(0,w.createPropsContext)(),t.Dialog=(0,w.withPropsContext)(t.DialogPropsContext,n),t.Dialog.displayName="KendoReactDialog"},379:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogActionsBar=void 0;var r=n(954),o=n(895),i=n(811),a=(t.DialogActionsBar=function(e){var t=e.layout,t=void 0===t?a.layout:t,e=e.children,t=(0,i.classNames)("k-dialog-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===t,"k-justify-content-center":"center"===t,"k-justify-content-end":"end"===t,"k-justify-content-stretch":"stretched"===t});return r.createElement("div",{className:t},e)},t.DialogActionsBar.propTypes={children:o.any,layout:o.oneOf(["start","center","end","stretched"])},{layout:"stretched"})},348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogTitleBar=void 0;var o=n(954),i=n(536);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,r=e.id,e=e.closeIcon;return o.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:r},o.createElement("div",{className:"k-window-title k-dialog-title"},t),o.createElement("div",{className:"k-window-actions k-dialog-actions"},e&&o.createElement(i.Button,{role:"button","aria-label":"Close",onClick:n,icon:"x",fillMode:"flat",className:"k-window-action k-dialog-action k-dialog-close"})))}},522:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.MiddleLayerOptimization=void 0,o=n(954).Component,i(a,o),a.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},a.prototype.render=function(){return this.props.children},a);function a(){return null!==o&&o.apply(this,arguments)||this}t.MiddleLayerOptimization=n},259:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.windowStage=void 0,(t=t.windowStage||(t.windowStage={})).DEFAULT="DEFAULT",t.FULLSCREEN="FULLSCREEN",t.MINIMIZED="MINIMIZED"},891:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.Window=t.WindowPropsContext=void 0,n(954)),l=n(493),u=n(895),d=n(583),c=n(811),p=n(811),f=n(151),m=n(522),g=n(259),h=n(811),y=n(363),v=n(617),w=n(56),M=n(147),n=(o=s.Component,i(b,o),b.prototype.componentDidMount=function(){var e,t=this.getWindow(),t=(t&&t.addEventListener("resize",this.handleBrowserWindowResize),this.getDocument());this.props.appendTo&&t&&(e=this.props.appendTo.getBoundingClientRect(),t=t.body.getBoundingClientRect(),this.offSetCoordinates.x=e.left-t.left,this.offSetCoordinates.y=e.top-t.top)},b.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize)},b.prototype.componentDidUpdate=function(){var e,t=this.getDocument();this.props.appendTo&&t&&(e=this.props.appendTo.getBoundingClientRect(),t=t.body.getBoundingClientRect(),this.offSetCoordinates.x=e.left-t.left,this.offSetCoordinates.y=e.top-t.top)},b.prototype.render=function(){var t=this,e=s.Children.toArray(this.props.children),n=this.getContent(e),e=this.getActionBar(e),r=this.getCurrentZIndex(),o=(0,c.classNames)("k-widget","k-window",this.props.className,{"k-window-minimized":"MINIMIZED"===this.state.stage},{"k-window-focused":this.state.focused}),i=s.createElement(c.ZIndexContext.Provider,{value:r},s.createElement(s.Fragment,null,this.props.modal&&s.createElement("div",{className:"k-overlay",style:a({zIndex:r},this.props.overlayStyle)}),s.createElement("div",a({},((i={})[w.DATA_DIALOGS_ID]=this._id,i),{tabIndex:0,role:"dialog","aria-labelledby":this.titleId,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){t.windowElement=e,t.element=e},className:o,style:a({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:r},this.props.style)}),s.createElement(m.MiddleLayerOptimization,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},s.createElement(p.Draggable,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return t.draggable=e}},s.createElement(d.WindowTitleBar,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton,id:this.titleId},this.props.title)),this.windowStage!==g.windowStage.MINIMIZED?s.createElement(s.Fragment,null,s.createElement("div",{className:"k-window-content"},n),e):null,this.windowStage===g.windowStage.DEFAULT&&this.props.resizable?s.createElement(f.ResizeHandlers,{onResize:this.handleResize}):null))));return c.canUseDOM?null!==this.props.appendTo?l.createPortal(i,this.props.appendTo||document.body):i:null},Object.defineProperty(b.prototype,"top",{get:function(){return this.windowStage!==g.windowStage.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"left",{get:function(){return this.windowStage!==g.windowStage.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===g.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow(),e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===g.windowStage.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow(),e=t?t.innerHeight:0}else this.windowStage===g.windowStage.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),b.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===v.WindowActionsBar})},b.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==v.WindowActionsBar})},b.prototype.generateTitleId=function(){return"window-title-"+this._id},b.displayName="Window",b.propTypes={width:u.number,height:u.number,left:u.number,top:u.number,initialWidth:u.number,initialHeight:u.number,initialLeft:u.number,initialTop:u.number,minWidth:u.number,minHeight:u.number,resizable:u.bool,draggable:u.bool,title:u.any,shouldUpdateOnDrag:u.bool,stage:u.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:u.string,style:u.object,overlayStyle:u.object},b.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},b.contextType=c.ZIndexContext,b);function b(e){var f=o.call(this,e)||this;return f.context=0,f.draggable=null,f.offSetCoordinates={x:0,y:0},f._id=(0,c.guid)(),f.titleId=f.generateTitleId(),f.onKeyDown=function(e){if(e.target===e.currentTarget){var t=f.props.minWidth||120,n=f.props.minHeight||100;if(e.ctrlKey&&f.props.resizable){switch(e.keyCode){case c.Keys.up:e.preventDefault(),n<=f.height-5&&f.setState({height:f.height-5});break;case c.Keys.down:e.preventDefault(),f.setState({height:f.height+5});break;case c.Keys.left:t<=f.width-5&&f.setState({width:f.width-5});break;case c.Keys.right:f.setState({width:f.width+5});break;default:return}f.dispatchMoveEvent(f.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case c.Keys.up:f.windowStage===g.windowStage.MINIMIZED?(f.handleRestore(e),(0,c.dispatchEvent)(f.props.onStageChange,e,f,{state:g.windowStage.DEFAULT})):f.windowStage===g.windowStage.DEFAULT&&(f.handleFullscreen(e),(0,c.dispatchEvent)(f.props.onStageChange,e,f,{state:g.windowStage.FULLSCREEN}));break;case c.Keys.down:f.windowStage===g.windowStage.FULLSCREEN?(f.handleRestore(e),(0,c.dispatchEvent)(f.props.onStageChange,e,f,{state:g.windowStage.DEFAULT})):f.windowStage===g.windowStage.DEFAULT&&(f.handleMinimize(e),(0,c.dispatchEvent)(f.props.onStageChange,e,f,{state:g.windowStage.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case c.Keys.esc:return void(f.props.onClose&&f.handleCloseWindow(e));case c.Keys.up:f.setState({top:f.state.top-5});break;case c.Keys.down:f.setState({top:f.state.top+5});break;case c.Keys.left:f.setState({left:f.state.left-5});break;case c.Keys.right:f.setState({left:f.state.left+5});break;default:return}f.dispatchMoveEvent(f.props.onMove,e,!1,void 0)}}},f.onPress=function(e){e=e.event;f.windowCoordinatesState.differenceLeft=e.pageX-f.left,f.windowCoordinatesState.differenceTop=e.pageY-f.top},f.onDrag=function(e){e=e.event;e.originalEvent.preventDefault(),f.windowStage!==g.windowStage.FULLSCREEN&&f.props.draggable&&(f.setState({top:Math.max(e.pageY-f.windowCoordinatesState.differenceTop,0),left:e.pageX-f.windowCoordinatesState.differenceLeft,isDragging:!0}),f.props.onMove&&f.dispatchMoveEvent(f.props.onMove,e,!0,!1))},f.onRelease=function(e){e=e.event;f.windowStage!==g.windowStage.FULLSCREEN&&f.props.draggable&&f.props.onMove&&f.dispatchMoveEvent(f.props.onMove,e,!0,!0),f.setState({isDragging:!1})},f.onFocus=function(){f._blurTimeout?(clearTimeout(f._blurTimeout),f._blurTimeout=void 0):f.setState({focused:!0,zIndex:(0,M.getMaxZIndex)(f.getCurrentZIndex(),f.getDocument(),f._id)})},f.onBlur=function(){clearTimeout(f._blurTimeout);var e=f.getWindow();e&&(f._blurTimeout=e.setTimeout(function(){f.setState({focused:!1}),f._blurTimeout=void 0}))},f.getInitialTop=function(){if(void 0!==f.props.top)return f.props.top;if(void 0!==f.props.initialTop)return f.props.initialTop;var e=300;if(void 0!==f.props.height?e=f.props.height:void 0!==f.props.initialHeight&&(e=f.props.initialHeight),f.props.appendTo)return f.props.appendTo.offsetHeight/2-e/2;var t=f.getWindow();return t?t.innerHeight/2-e/2:0},f.getInitialLeft=function(){if(void 0!==f.props.left)return f.props.left;if(void 0!==f.props.initialLeft)return f.props.initialLeft;var e=300;if(void 0!==f.props.width?e=f.props.width:void 0!==f.props.initialWidth&&(e=f.props.initialWidth),f.props.appendTo)return f.props.appendTo.offsetWidth/2-e/2;var t=f.getWindow();return t?t.innerWidth/2-e/2:0},f.getInitialWidth=function(){var e=300;return void 0!==f.props.width?e=f.props.width:void 0!==f.props.initialWidth&&(e=f.props.initialWidth),e},f.getInitialHeight=function(){var e=300;return void 0!==f.props.height?e=f.props.height:void 0!==f.props.initialHeight&&(e=f.props.initialHeight),e},f.handleMinimize=function(e){e.preventDefault(),f.windowCoordinatesState.leftBeforeAction=f.left,f.windowCoordinatesState.topBeforeAction=f.top,f.windowCoordinatesState.widthBeforeAction=f.width,f.windowCoordinatesState.heightBeforeAction=f.height,f.setState({stage:g.windowStage.MINIMIZED,height:0}),(0,c.dispatchEvent)(f.props.onStageChange,e,f,{state:g.windowStage.MINIMIZED})},f.handleFullscreen=function(e){e.preventDefault(),f.windowCoordinatesState.leftBeforeAction=f.left,f.windowCoordinatesState.topBeforeAction=f.top,f.windowCoordinatesState.widthBeforeAction=f.width,f.windowCoordinatesState.heightBeforeAction=f.height;var t=f.getWindow(),n=t?t.innerWidth:0,t=t?t.innerHeight:0;f.setState({left:0,top:0,width:f.props.appendTo?f.props.appendTo.offsetWidth:n,height:f.props.appendTo?f.props.appendTo.offsetHeight:t,stage:g.windowStage.FULLSCREEN}),(0,c.dispatchEvent)(f.props.onStageChange,e,f,{state:g.windowStage.FULLSCREEN})},f.handleRestore=function(e){e.preventDefault(),f.windowStage===g.windowStage.FULLSCREEN?f.setState({stage:g.windowStage.DEFAULT,left:f.windowCoordinatesState.leftBeforeAction,top:f.windowCoordinatesState.topBeforeAction,width:f.windowCoordinatesState.widthBeforeAction,height:f.windowCoordinatesState.heightBeforeAction}):f.windowStage===g.windowStage.MINIMIZED&&f.setState({stage:g.windowStage.DEFAULT,height:f.windowCoordinatesState.heightBeforeAction}),(0,c.dispatchEvent)(f.props.onStageChange,e,f,{state:g.windowStage.DEFAULT})},f.handleCloseWindow=function(e){e.preventDefault(),(0,c.dispatchEvent)(f.props.onClose,e,f,{state:void 0})},f.handleDoubleClick=function(e){f.windowStage===g.windowStage.FULLSCREEN||f.windowStage===g.windowStage.MINIMIZED?f.handleRestore(e):f.handleFullscreen(e)},f.handleResize=function(e,t){var n=f.props.appendTo?e.pageX-f.offSetCoordinates.x:e.pageX,r=f.props.appendTo?e.pageY-f.offSetCoordinates.y:e.pageY,o=f.width,i=f.height,a=f.props.minWidth||120,s=f.props.minHeight||100,l=f.top-r,u=f.left-n,d=n-f.left,c=r-f.top,p=Object.assign({},f.state,{isDragging:!t.end});0<=t.direction.indexOf("n")&&s-(i+l)<0&&(0<f.top&&(p.height=i+l),p.top=r),0<=t.direction.indexOf("s")&&s-c<0&&(p.height=c),0<=t.direction.indexOf("w")&&a-(o+u)<0&&(0<f.left&&(p.width=o+u),p.left=n),0<=t.direction.indexOf("e")&&a-d<0&&(p.width=d),f.setState(p),f.dispatchMoveEvent(f.props.onResize,e,!0,t.end)},f.dispatchMoveEvent=function(e,t,n,r){e&&e.call(void 0,{nativeEvent:t.nativeEvent||t.originalEvent,drag:n,end:r,target:f,left:f.state.left,top:f.state.top,width:f.state.width,hight:f.state.height,height:f.state.height})},f.handleBrowserWindowResize=function(){var e,t;f.windowStage===g.windowStage.FULLSCREEN&&(e=(t=f.getWindow())?t.innerWidth:0,t=t?t.innerHeight:0,f.setState({width:f.props.appendTo?f.props.appendTo.offsetWidth:e,height:f.props.appendTo?f.props.appendTo.offsetHeight:t}))},f.getCurrentZIndex=function(){return f.state&&void 0!==f.context?f.state.zIndex>(f.context?f.context+w.ZINDEX_DIALOGS_STEP:0)?f.state.zIndex:f.context+w.ZINDEX_DIALOGS_STEP:f.context||w.DEFAULT_DIALOGS_ZINDEX},f.getDocument=function(){return f.props.appendTo?f.props.appendTo.ownerDocument:document},f.getWindow=function(){var e=f.getDocument();return e&&e.defaultView},(0,h.validatePackage)(y.packageMetadata),f.state={stage:f.props.stage||g.windowStage.DEFAULT,isDragging:!1,top:f.getInitialTop(),left:f.getInitialLeft(),width:f.getInitialWidth(),height:f.getInitialHeight(),focused:!0,zIndex:(0,M.getMaxZIndex)(f.getCurrentZIndex(),f.getDocument(),f._id)},f.windowCoordinatesState={leftBeforeAction:f.getInitialLeft(),topBeforeAction:f.getInitialTop(),widthBeforeAction:f.getInitialWidth(),heightBeforeAction:f.getInitialHeight()},f}t.WindowPropsContext=(0,p.createPropsContext)(),t.Window=(0,p.withPropsContext)(t.WindowPropsContext,n),t.Window.displayName="KendoReactWindow"},617:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WindowActionsBar=void 0;var r=n(954),o=n(895),i=n(811),a=(t.WindowActionsBar=function(e){var t=e.layout,t=void 0===t?a.layout:t,e=e.children,t=(0,i.classNames)("k-window-buttongroup","k-actions","k-hstack",{"k-justify-content-start":"start"===t,"k-justify-content-center":"center"===t,"k-justify-content-end":"end"===t,"k-justify-content-stretch":"stretched"===t});return r.createElement("div",{className:t},e)},t.WindowActionsBar.propTypes={children:o.any,layout:o.oneOf(["start","center","end","stretched"])},{layout:"end"})},151:function(e,t,n){var r,o,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandlers=void 0,n(954)),s=n(811),l=["n","e","s","w","se","sw","ne","nw"],n=(o=a.Component,i(u,o),u.prototype.render=function(){var n=this;return a.createElement("div",null," ",l.map(function(t,e){return a.createElement(s.Draggable,{key:e,onDrag:function(e){e=e.event;e.originalEvent.preventDefault(),n.props.onResize(e,{end:!1,direction:t})},onRelease:function(e){e=e.event;e.originalEvent.preventDefault(),n.props.onResize(e,{end:!0,direction:t})}},a.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))}))},u);function u(){return null!==o&&o.apply(this,arguments)||this}t.ResizeHandlers=n},583:function(e,t,n){function r(e){var t=e.children,n=e.onCloseButtonClick,r=e.onMinimizeButtonClick,o=e.onFullScreenButtonClick,i=e.onRestoreButtonClick,a=e.onDoubleClick,s=e.stage,l=e.forwardedRef,u=e.id,d=(0,m.useLocalization)(),r=e.minimizeButton?c.createElement(e.minimizeButton,{onClick:r,stage:s}):c.createElement(f.Button,{fillMode:"flat",icon:"window-minimize",onClick:r,"aria-label":d.toLanguageString(g.dialogsWindowMinimizeButton,g.messages[g.dialogsWindowMinimizeButton])}),o=e.maximizeButton?c.createElement(e.maximizeButton,{onClick:o,stage:s}):c.createElement(f.Button,{fillMode:"flat",icon:"window-maximize",onClick:o,"aria-label":d.toLanguageString(g.dialogsWindowMaximizeButton,g.messages[g.dialogsWindowMaximizeButton])}),i=e.restoreButton?c.createElement(e.restoreButton,{onClick:i,stage:s}):c.createElement(f.Button,{fillMode:"flat",icon:"window-restore",onClick:i,"aria-label":d.toLanguageString(g.dialogsWindowRestoreButton,g.messages[g.dialogsWindowRestoreButton])}),e=e.closeButton?c.createElement(e.closeButton,{onClick:n,stage:s}):c.createElement(f.Button,{fillMode:"flat",icon:"close",onClick:n,"aria-label":d.toLanguageString(g.dialogsWindowCloseButton,g.messages[g.dialogsWindowCloseButton])});return c.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},ref:l,onDoubleClick:a},c.createElement("div",{className:"k-window-title",id:u},t||""),c.createElement("div",{className:"k-window-actions"},s===p.windowStage.DEFAULT&&r,s===p.windowStage.DEFAULT&&o,s!==p.windowStage.DEFAULT&&i,e))}var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.WindowTitleBar=void 0,n(954)),p=n(259),f=n(536),m=n(603),g=n(364);t.WindowTitleBar=c.forwardRef(function(e,t){return c.createElement(r,o({},e,{forwardedRef:t}))})},56:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DIALOGS_SELECTOR=t.ZINDEX_DIALOGS_STEP=t.DEFAULT_DIALOGS_ZINDEX=t.DATA_DIALOGS_ID=void 0,t.DATA_DIALOGS_ID="data-windowid",t.DEFAULT_DIALOGS_ZINDEX=10002,t.ZINDEX_DIALOGS_STEP=2,t.DIALOGS_SELECTOR=".k-window:not(.k-dialog), .k-dialog-wrapper"},364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.dialogsWindowCloseButton=t.dialogsWindowRestoreButton=t.dialogsWindowMinimizeButton=t.dialogsWindowMaximizeButton=void 0,t.dialogsWindowMaximizeButton="dialogs.windowMaximizeButton",t.dialogsWindowMinimizeButton="dialogs.windowMinimizeButton",t.dialogsWindowRestoreButton="dialogs.windowRestoreButton",t.dialogsWindowCloseButton="dialogs.windowCloseButton",t.messages=((n={})[t.dialogsWindowMaximizeButton]="maximize",n[t.dialogsWindowMinimizeButton]="minimize",n[t.dialogsWindowRestoreButton]="restore",n[t.dialogsWindowCloseButton]="close",n)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1659604312,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},147:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxZIndex=void 0;var a=n(56);t.getMaxZIndex=function(e,n,r){var o,i=e;return n&&n.defaultView?(e=n.querySelectorAll(a.DIALOGS_SELECTOR),o=!1,e.forEach(function(e){var t=n.defaultView.getComputedStyle(e,null);e.getAttribute(a.DATA_DIALOGS_ID)!==r&&null!==t.zIndex&&(e=parseInt(t.zIndex,10),i<=e&&(i=e,o=!0))}),o?i+a.ZINDEX_DIALOGS_STEP:i):i}},603:(B,e,t)=>{t.r(e),t.d(e,{IntlProvider:()=>Bt,IntlService:()=>Nt,LocalizationProvider:()=>Ut,LocalizationService:()=>At,load:()=>function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var r,o,i,a=e[n];a.main?(r=Object.keys(a.main)[0],o=a.main[r],i=b[r]=b[r]||{},o.units?function(e,t){e.calendar.dateFields.millisecond={narrow:re(t.narrow[te]),short:re(t.short[te]),wide:re(t.long[te])}}(i,o.units):(i.name=i.name||r,i.identity=i.identity||o.identity,ee(i),function(e,t){for(var n in t)"numbers"===n?function(e,t){var n,e=b[e],r=e.numbers=e.numbers||{};for(n in r.symbols=r.symbols||{},t){var o,i;"symbols-numberSystem-latn"===n?Object.assign(r.symbols,t[n]):n.includes(G)?(o=n.substr(0,n.indexOf(G)),i=t[n].standard,r[o]={patterns:K(i)},o===m?(r[o].groupSize=q((t[U+G]||t[n]).standard),function(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}",E).replace("{1}",D))}(r[o],t[n]),r.accounting={patterns:K(t[n].accounting),groupSize:r[o].groupSize}):r[o].groupSize=q(i)):"currencies"===n&&(r.currencies=t[n])}}(e,t[n]):"dates"===n&&function(e,t){var n,r=b[e].calendar=b[e].calendar||{};for(n in t)"timeZoneNames"===n?(r.gmtFormat=t[n].gmtFormat,r.gmtZeroFormat=t[n].gmtZeroFormat):"calendars"===n&&t[n].gregorian?(function(e,t){var n,r,e=b[e].calendar,o=e.patterns={};for(n in o.d=V(Y,t).replace(J,"y"),$)o[n]=V($[n],t);for(r in Q)o[r]=Q[r];var i=t.dateTimeFormats;e.dateTimeFormats={full:i.full,long:i.long,medium:i.medium,short:i.short,availableFormats:i.availableFormats},e.timeFormats=t.timeFormats,e.dateFormats=t.dateFormats}(e,t[n].gregorian),function(e,t){e=b[e].calendar;e.days=l(t.days),e.months=l(t.months),e.quarters=l(t.quarters),e.dayPeriods=l(t.dayPeriods,!0),e.eras=function(e){var t,n={},r=n.format={},o={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(t in e)r[o[t]]=e[t];return n}(t.eras)}(e,t[n].gregorian)):"fields"===n&&function(e,t){var n,e=b[e].calendar,r={};for(n in t){var o=n.split("-"),i=o[0],o=o[1],a=(void 0===o&&(o="wide"),r[i]||{}),s=t[n].displayName;s&&(a[o]=s,r[i]=a)}e.dateFields=r}(e,t.fields)}(e,t[n])}(r,o))):a.supplemental&&(a.supplemental.weekData?b.supplemental.weekData={firstDay:a.supplemental.weekData.firstDay,weekendStart:a.supplemental.weekData.weekendStart,weekendEnd:a.supplemental.weekData.weekendEnd}:a.supplemental.likelySubtags?b.supplemental.likelySubtags=Object.assign(b.supplemental.likelySubtags,a.supplemental.likelySubtags):a.supplemental.currencyData&&((i=b.supplemental.currencyData).region=Object.assign(i.region||{},a.supplemental.currencyData.region),i.fractions=Object.assign(i.fractions||{},a.supplemental.currencyData.fractions)))}},loadMessages:()=>function(e,t){t=r[t]=r[t]||{};Pt(e,t,[])},provideIntlService:()=>function(e){e=e.context;return e&&e.intl?e.intl:new Nt("en")},provideLocalizationService:()=>function(e){e=e.context;return e&&e.localization?e.localization:new At},registerForIntl:()=>function(e){e.contextType=N},registerForLocalization:()=>function(e){e.contextType=N},useInternationalization:()=>Rt,useLocalization:()=>Zt});var i=t(954),P=t(895);function a(e){return"string"==typeof e}function z(e){var t=e.name,e=e.message;if(!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}var H,W=/\{(\d+)}?\}/g,j=(z.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=j(e),r=this.message.replace(W,function(e,t){return n[parseInt(t,10)]});return this.name+": "+r},z.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))},function(e){return e.reduce(function(e,t){return e.concat(t)},[])}),u=(H={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(H).reduce(function(e,t){return e[t]=new z({name:t,message:H[t]}),e},{})),b={en:{name:"en",identity:{version:{_unicodeVersion:"14.0.0",_cldrVersion:"41"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":",approximatelySign:"~"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y GGGGG",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era",short:"era",narrow:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},weekOfMonth:{wide:"week of month",short:"wk. of mo.",narrow:"wk. of mo."},day:{wide:"day",short:"day",narrow:"day"},dayOfYear:{wide:"day of year",short:"day of yr.",narrow:"day of yr."},weekday:{wide:"day of the week",short:"day of wk.",narrow:"day of wk."},weekdayOfMonth:{wide:"weekday of the month",short:"wkday. of mo.",narrow:"wkday. of mo."},dayperiod:{short:"AM/PM",wide:"AM/PM",narrow:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone",short:"zone",narrow:"zone"},millisecond:{narrow:"ms",short:"ms",wide:"millisecond"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function s(e){return a(e)?f(e):e}function f(e){if(b[e])return b[e];if(b.supplemental.likelySubtags){var t=e.split("-"),n=t[0],t=t.slice(1),n=function(e,t){for(var n=b.supplemental.likelySubtags,r=0;r<t.length;r++){var o=n[e+"-"+t[r]];if(o)return o}if(n[e])return n[e]}(n,t),n=n?(t=t,r=(n=n).split("-"),o=r[0],i=r[1],r=r[2],b[n]||-1!==t.indexOf(r)&&b[o+"-"+r]||-1!==t.indexOf(i)&&b[o+"-"+i]||b[o]):null;if(n)return n}var r,o,i;throw u.NoLocale.error(e)}var U="decimal",m="currency",R="accounting",S="percent",Z="scientific",D="$",E="n",x=".",C="",g="en",G="Formats-numberSystem-latn",n=/([#,0.]+)/g,X=/¤/g;function K(e){return n.lastIndex=0,e.replace(X,D).replace(n,E).split(";")}function q(e){return n.lastIndex=0,n.exec(e.split(";")[0])[0].split(x)[0].split(",").slice(1).map(function(e){return e.length}).reverse()}var Q={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},J=/y+/g,Y=[["dateFormats","short"]],$={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function l(e,t){var n,r={};for(n in e){var o,i=r[n]={};for(o in e[n]){var a=e[n][o];i[o]=t?a:function(e){for(var t=[],n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=e[n[r]];t.push(o)}return t}(a)}}return r}function V(e,t){for(var n=[],r=0;r<e.length;r++){for(var o=e[r],i=t,a=0;a<o.length;a++)i=i[o[a]];n.push(i)}return n.join(" ")}function ee(e){if(e.territory)return e.territory;var t=e.name,n=e.identity,t=n&&n.territory?n.territory:function(e,t){var n=b.supplemental.likelySubtags,r=e.split("-");if(!n||(e=n[e]||n[r[0]])&&(r=e.split("-")),t)for(var o=r.length-1;1<=o;o--){var i=r[o];i!==t.variant&&i!==t.script||r.splice(o,1)}n=r.length;if(1<n)return r[n-1].toUpperCase()}(t,n);return e.territory=t}var te="duration-millisecond",ne=/\{0\}\s?/;function re(e){return(e["unitPattern-count-one"]||e["unitPattern-count-other"]).replace(ne,"")}function oe(e,t){var n=t.type,r=t.nameType,o=t.standAlone,t=t.lower,e=s(e),i=(t?"lower-":C)+r,e=e.calendar[n][o?"stand-alone":"format"],n=e[i];return n=!n&&t?e[i]=(o=e[r],(Array.isArray(o)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}:function(e){var t,n={};for(t in e)n[t]=e[t].toLowerCase();return n})(o)):n}function ie(e){var e=e.split("-"),t=parseInt(e[0],10),n=parseInt(e[1],10)-1,e=parseInt(e[2],10);return new Date(t,n,e)}var ae=u.NoCurrency,se=u.NoCurrencyDisplay,le=u.NoSupplementalCurrency,ue=u.NoCurrencyRegion,de=u.NoValidCurrency,ce="symbol",pe={"001":"USD",150:"EUR"};function fe(e,t,n){e=s(e).numbers.currencies;if(e){e=e[t];if(e)return e;if(n)throw se.error()}else if(n)throw ae.error()}function me(e,t){return t.length-e.length}function ge(e,t){var e=s(e),n=e.numbers;if(!n.localeCurrency){var r=function(e,t){if(void 0===t&&(t=!0),pe[e])return pe[e];var n=b.supplemental.currencyData;if(n){n=n.region[e];if(n){for(var r,o,i,a,s=n,l=0;l<s.length;l++){var u,d,c=s[l],p=Object.keys(c)[0],c=c[p];"XXX"!==p&&"false"!==c._tender&&c._from&&(c._to?i||(d=ie(c._from),u=ie(c._to),(!o||o.to<u||o.from<d)&&(r=p,o={from:d,to:u})):(d=ie(c._from),(!a||a<d)&&(i=p,a=d)))}return i||r}if(t)throw ue.error(e)}else if(t)throw le.error()}(ee(e),t);if(!r&&t)throw de.error(e.name);n.localeCurrency=r}return n.localeCurrency}var he=["sun","mon","tue","wed","thu","fri","sat"],ye=u.NoWeekData,ve=u.NoFirstDay;function we(e){e=s(e);if(!isNaN(e.firstDay))return e.firstDay;var t=b.supplemental.weekData;if(!t)throw ye.error();t=t.firstDay[ee(e)]||t.firstDay["001"];if(t)return e.firstDay=he.indexOf(t),e.firstDay;throw ve.error()}function Me(e){return 1/e==-1/0}function be(e,t){(t=void 0===t?{}:t).currency||(t.currency=ge(e,!0));var n=t.value,r=t.currency;return"code"===(t=void 0===(t=t.currencyDisplay)?ce:t)?r:(r=fe(e,r,!0),t===ce?r["symbol-alt-narrow"]||r.symbol:void 0===n||1!==n?r["displayName-count-other"]:r["displayName-count-one"])}function Se(e,t,n,r,o){var o=o.numbers.symbols,i=e.indexOf(o.decimal),a=r.groupSize.slice(),s=a.shift(),r=-1!==i?i:n+1,l=e.substring(t,r),i=e,n=l.length;if(s<=n){for(var u=n,d=[];-1<u;){var c=l.substring(u-s,u),p=(c&&d.push(c),u-=s,a.shift());if(0===(s=void 0!==p?p:s)){(c=l.substring(0,u))&&d.push(c);break}}l=d.reverse().join(o.group),i=e.substring(0,t)+l+e.substring(r)}return i}function De(e){return e===m||e===R}function O(e,t,n){void 0===n&&(n=!1);var t=(t=void 0===t?2:t)-String(e).length,r=e;return 0<t&&(t=new Array(1+t).join("0"),r=n?e+t:t+e),r}function k(e,t){t=t||0,e=(e=e).toString().split("e");return e=(e=Math.round(Number(e[0]+"e"+(e[1]?Number(e[1])+t:t)))).toString().split("e"),(e=Number(e[0]+"e"+(e[1]?Number(e[1])-t:-t))).toFixed(Math.min(t,20))}u.NoWeekData;var Ee=/0+$/;var xe=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,Ce="__??__";function Oe(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style=S,e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf(D)&&(e.style=m,e.symbol=be(t))}function ke(e){var n,t=e.format;(-1<t.indexOf("'")||-1<t.indexOf('"')||-1<t.indexOf("\\"))&&(n=e.literals=[],e.format=t.replace(xe,function(e){var t=e.charAt(0).replace("\\",C),e=e.slice(1).replace(t,C);return n.push(e),Ce}))}var M="#",I="0",Ie=/(\.(?:[0-9]*[1-9])?)0+$/g,Te=/\.$/,_e=/,/g;function Fe(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}var Ne=/^(n|c|p|e|a)(\d*)$/i;function Ae(e){if(!a(e))return e;var t,n,e=Ne.exec(e);return e?(t={style:U},"c"===(n=e[1].toLowerCase())?t.style=m:"a"===n?t.style=R:"p"===n?t.style=S:"e"===n&&(t.style=Z),e[2]&&(t.minimumFractionDigits=t.maximumFractionDigits=parseInt(e[2],10)),t):void 0}function Le(e,t,n){if(void 0===t&&(t=E),void 0===n&&(n=g),null==e)return C;if(!isFinite(e))return String(e);var r,w,o,i,a,s,l,u,d,c,n=f(n),p=Ae(t);return p?(r=p.style||U,function(e,t,n){var r=n.numbers.symbols,o=t.style,i=De(o);if(o===Z)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(x,r.decimal);var a,s,l=e,u=(i&&(t.value=l,a=be(n,t)),o===S&&(l*=100,a=r.percentSign),o=t.minimumFractionDigits,f=t.maximumFractionDigits,c=t.style,(p=De(c))&&(s=t.currency,d=u=2,(s=((b.supplemental.currencyData||{}).fractions||{})[s])&&s._digits&&(d=u=parseInt(s._digits,10)),s={minimumFractionDigits:u,maximumFractionDigits:d}),{minimumFractionDigits:o=void 0===o?p?s.minimumFractionDigits:0:o,maximumFractionDigits:f=void 0===f?c===S?Math.max(o,0):p?Math.max(o,s.maximumFractionDigits):Math.max(o,3):f}),d=u.minimumFractionDigits,c=(l=k(l,u.maximumFractionDigits))<0,p=Me(e),f=(o=l.split(x))[0],l=O(o[1]?o[1].replace(Ee,C):C,d,!0);if(c&&(f=f.substring(1)),t.minimumIntegerDigits&&(f=O(f,t.minimumIntegerDigits)),o=!1!==t.useGrouping?Se(f,0,f.length,t,n):f,l&&(o+=r.decimal+l),(l=i&&"name"===t.currencyDisplay?(f=n.numbers.currency,f=1!==e?f["unitPattern-count-other"]:f["unitPattern-count-one"],f=e<0?f.replace(E,"-n"):f):(r=t.patterns,c||p?r[1]||"-"+r[0]:r[0]))!==E||c){for(var m=o,g=l,h=a,y=C,v=0,w=g.length;v<w;v++){var M=g.charAt(v);y+=M===E?m:M===D||"%"===M?h:M}return y}return o}(e,Object.assign({},n.numbers[r],p),n)):(r=t,p=n,t={negative:(t=e)<0,number:Math.abs(t),negativeZero:Me(t),format:r},n=(r=t).number,e=(e=r.format).split(";"),(r.negative||r.negativeZero)&&e[1]?(e=e[1],r.hasNegativeFormat=!0):0===n?(e=(n=e[2])||e[0],n&&(-1===(c=n).indexOf(M)&&-1===c.indexOf(I))&&(r.constant=n)):e=e[0],r.format=e,t.constant||(ke(t),Oe(t,p),(c=t).hasGroup=-1<c.format.indexOf(","),c.hasGroup&&(c.format=c.format.replace(_e,C)),r=(n=t).number,e=n.format,-1!==(d=e.indexOf(x))?(a=-1<(o=e.lastIndexOf(I)-d),s=-1<(i=e.lastIndexOf(M)-d),l=(l=(l=(l=r.toString().split("e"))[1]?k(r,Math.abs(l[1])):l[0]).split(x)[1]||C).length,u=-1,a||s?a&&i<o?l=o:o<i&&(s&&i<l?l=i:a&&l<o&&(l=o),u=a?o:0):(n.format=e.substring(0,d)+e.substring(d+1),d=-1,l=0),-1<l&&(r=k(r,l),-1<u&&(s=r,i=0===u?Ie:new RegExp("(\\.[0-9]{"+u+"}[1-9]*)0+$","g"),r=s.replace(i,"$1").replace(Te,C)))):r=k(r),n.negative&&0<=-1*r&&!n.negativeZero&&(n.negative=!1),n.number=r,n.decimalIndex=d,o=(a=t).format,e=Fe(o.indexOf(M),o.indexOf(I),!0),u=Fe(o.lastIndexOf(M),l=o.lastIndexOf(I)),e===o.length&&(u=e),a.start=e,a.end=u,a.lastZeroIndex=l,s=(w=t).number,s=-1!==w.start?function(e,t){var n=e;if(t)for(var r=t.length,o=0;o<r;o++)n=n.replace(Ce,t[o]);return n}(s=function(e,t,n){var r=e;if(t===m||t===S)for(var r=C,o=0,i=e.length;o<i;o++){var a=e.charAt(o);r+=a===D||"%"===a?n:a}return r}(s=function(e){var t=w.start,n=w.end,r=w.negative,o=w.negativeZero,i=w.format,a=w.decimalIndex,s=w.lastZeroIndex,l=w.hasNegativeFormat,u=w.hasGroup,d=(h=w.number).toString().split(x),c=i.length,p=d[0],f=d[1]||C,m=p.length,g=C,h=i.substring(0,t);!r&&!o||l||(h+="-");for(var y=t;y<c;y++){var v=i.charAt(y);if(-1===a){if(n-y<m){h+=p;break}}else if(-1!==s&&s<y&&(g=C),a-y<=m&&-1<a-y&&(h+=p,y=a),a===y){h+=(f?e.numbers.symbols.decimal:C)+f,y+=n-a+1;continue}v===I?(h+=v,g=v):v===M&&(h+=g)}return u&&(h=Se(h,t+(r&&!l?1:0),Math.max(n,m+t),e.numbers.decimal,e)),t<=n&&(h+=i.substring(n+1)),h}(p),w.style,w.symbol),w.literals):s))}function Be(e){return"number"==typeof e}var Pe=/[eE][-+]?[0-9]+/,ze=/\u00A0/g;function He(e,t){if(1<t.length){t=(t[1]||C).replace(D,C).split(E);if(-1<e.indexOf(t[0])&&-1<e.indexOf(t[1]))return e.replace(t[0],C).replace(t[1],C)}}var We=/\{(\d+)}/g;function je(e){var n=arguments;return e.replace(We,function(e,t){return n[parseInt(t,10)+1]})}var Ue=[2,1,5,3,4],h={},Re=(h[(-2).toString()]=8,h[(-1).toString()]=6,h[2..toString()]=6,{numeric:1,"2-digit":2,short:h[1..toString()]=3,long:4,narrow:5}),Ze=/[hHmsSzZoOvVxX]/,Ge=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Xe={e:"c",E:"c",M:"L",Q:"q"},Ke={},d={};function qe(e){return Ke[e]||(Ke[e]=new RegExp(e+"+")),Ke[e]}function y(e){for(var t=[],n=e.charAt(0),r=n,o=1;o<e.length;o++){var i=e.charAt(o);i===r?n+=i:(t.push(n),n=r=i)}return t.push(n),t}function Qe(e,t){var n,r,o=e.length,i=-Number.MAX_VALUE;for(r in t){for(var a=[],s=r.replace("v","z"),l=0,u=0;u<o;u++){var d=e[u],c=(qe(d[0]).exec(s)||[])[0];if(c?(s=s.replace(c,C),c.length!==d.length&&(d=Math.max(Math.min(Ue[c.length]-Ue[d.length],2),-2),l-=h[d])):l-=120,a.push(c),l<i)break}s.length&&(l-=20*y(s).length),i<l&&(i=l,n=a,f=t[r])}f=f.replace("v","z");for(var p=0;p<o;p++){var f,m=n[p];m&&m!==e[p]&&(m=n[p][0],f=f.replace(qe(m),e[p]),Xe[m]&&(f=f.replace(qe(Xe[m]),e[p])))}return f}function Je(e,t){var n,r=t.calendar;if(a(e))n=r.patterns[e]||e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?n=je(r.dateTimeFormats[e.datetime],r.timeFormats[e.datetime],r.dateFormats[e.datetime]):e.date?n=r.dateFormats[e.date]:e.time?n=r.timeFormats[e.time]:o=function(e){for(var t=[],n=0;n<Ge.length;n++){var r=Ge[n],o=e[r.key];o&&(r=r.specifier||r.getSpecifier(e),t.push(r.repeat(Re[o])))}return t.join(C)}(e)),o&&(n=function(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(d[t.name]&&d[t.name][e])return d[t.name][e];var r,o=e.search(Ze);return o=0<o?(r=e.substr(0,o),o=e.substr(o),je(t.calendar.dateTimeFormats.short,n[o]||Qe(y(o),n),n[r]||Qe(y(r),n))):Qe(y(e),n),r=e,n=o,e=t.name,d[e]||(d[e]={}),d[e][r]=n,o}(o,t))}return n=n||r.patterns.d}function Ye(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function c(e,t,n,r,o){return oe(e,{type:t,nameType:Ye(n),standAlone:r,lower:o})}function $e(e){return"function"==typeof e}function Ve(e){return Boolean(e)&&$e(e.getTime)&&$e(e.getMonth)}var e="hour",et="zone",tt="weekday",nt="quarter",rt={G:"era",y:"year",q:nt,Q:nt,M:"month",L:"month",d:"day",E:tt,c:tt,e:tt,h:e,H:e,k:e,K:e,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:et,X:et,z:et,Z:et},p=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function ot(e,t,n,r){return t<=2?O(e+1,t):c(n,"months",t,r)[e]}function it(e,t,n,r){e=Math.floor(e.getMonth()/3);return t<3?e+1:c(n,"quarters",t,r)[e]}function at(e,t,n){var r=n.shortHours,o=n.optionalMinutes,i=n.separator,a=n.localizedName,n=n.zZeroOffset,e=e.getTimezoneOffset()/60;if(0==e&&n)return"Z";var n=e<=0?"+":"-",s=Math.abs(e).toString().split("."),l=s[1]||0,n=n+(r?s[0]:O(s[0],2));return!l&&o||(n+=(i?":":C)+O(l,2)),n=a?je(0==e?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,n):n}function st(e,t,n,r){var o,i;return t<3?(o=e.getDay(),i=we(n),(o<i?7-i+o:o-i)+1):c(n,"days",t,r)[e.getDay()]}var o={};function lt(n,e,t){if(void 0===t&&(t=g),!Ve(n))return null==n?C:n;var r=f(t);return Je(e,r).replace(p,function(e){var t=e.length;return e.includes("'")||e.includes('"')?e.slice(1,t-1):o[e[0]](n,t,r)})}function ut(e,t,n){var r=e.getTimezoneOffset(),e=new Date(e.getTime()+6e4*(t-n)),t=e.getTimezoneOffset();return new Date(e.getTime()+6e4*(t-r))}o.d=function(e,t){return O(e.getDate(),t)},o.E=function(e,t,n){return c(n,"days",t)[e.getDay()]},o.M=function(e,t,n){return ot(e.getMonth(),t,n,!1)},o.L=function(e,t,n){return ot(e.getMonth(),t,n,!0)},o.y=function(e,t){e=e.getFullYear();return 2===t&&(e%=100),O(e,t)},o.h=function(e,t){return O(e.getHours()%12||12,t)},o.H=function(e,t){return O(e.getHours(),t)},o.k=function(e,t){return O(e.getHours()||24,t)},o.K=function(e,t){return O(e.getHours()%12,t)},o.m=function(e,t){return O(e.getMinutes(),t)},o.s=function(e,t){return O(e.getSeconds(),t)},o.S=function(e,t){e=e.getMilliseconds();return 0!==e?O(String(e/1e3).split(".")[1].substr(0,t),t,!0):O(C,t)},o.a=function(e,t,n){return c(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},o.z=function(e,t,n){return at(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},o.Z=function(e,t,n){return at(e,n,{separator:3<t,localizedName:4===t,zZeroOffset:5===t})},o.x=function(e,t,n){return at(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},o.X=function(e,t,n){return at(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},o.G=function(e,t,n){e=0<=e.getFullYear()?1:0;return c(n,"eras",t)[e]},o.e=st,o.c=function(e,t,n){return st(e,t,n,!0)},o.q=function(e,t,n){return it(e,t,n,!0)},o.Q=it;var dt=/([+|-]\d{1,2})(:?)(\d{2})?/,ct=/^\/Date\((.*?)\)\/$/,pt=/[+-]\d*/,ft={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},mt=/\d+/,gt=/^ */,ht=/ *$/,yt=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],vt=["G","g","F","Y","y","M","m","D","d","y","T","t"];function v(e,t,n){return!(t<=e&&e<=n)}function w(e,t){for(var n=t.format,r=t.idx,o=0;n[r]===e;)o++,r++;return 0<o&&--r,t.idx=r,o}function T(e,t){var n=e?ft[e]||new RegExp("^\\d{1,"+e+"}"):mt,e=t.value.substr(t.valueIdx,e).match(n);return e?(e=e[0],t.valueIdx+=e.length,parseInt(e,10)):null}function _(e,t,n){for(var r,o,i,a=0,s=e.length,l=0,u=0;a<s;a++)o=(r=e[a]).length,i=t.value.substr(t.valueIdx,o),(i=n?i.toLowerCase():i)===r&&l<o&&(l=o,u=a);return l?(t.valueIdx+=l,u+1):null}function wt(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function Mt(e,t,n){var r=n.shortHours,o=n.noSeparator,i=n.optionalMinutes,a=n.localizedName,n=n.zLiteral;if(e.UTC=!0,n&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!_(function(e){var t=e.gmtFormat,e=e.gmtZeroFormat;if(t)return[t.replace("{0}",C).toLowerCase(),e.replace("{0}",C).toLowerCase()];throw u.NoGMTInfo.error()}(t.calendar),e,!0))return!0;n=dt.exec(e.value.substr(e.valueIdx,6));if(!n)return!a;var t=n[1],a=n[3],s=parseInt(t,10),l=n[2],a=parseInt(a,10);return!!(isNaN(s)||!r&&3!==t.length||!i&&isNaN(a)||o&&l)||(isNaN(a)&&(a=null),!!(v(s,-12,13)||a&&v(a,0,59))||(e.valueIdx+=n[0].length,e.hoursOffset=s,void(e.minutesOffset=a)))}function bt(e,t,n){var r=w(e,t),n=c(n,"months",r,"L"===e,!0),e=r<3?T(2,t):_(n,t,!0);if(null===e||v(e,1,12))return!0;t.month=e-1}function St(e,t,n){var r=w(e,t),n=c(n,"days",r,"c"===e,!0),e=r<3?T(1,t):_(n,t,!0);if(!e&&0!==e||v(e,1,7))return!0}var F={};function Dt(e,t,n){for(var r,o,i,a,s,l,u,d,c,p,f,m,g=Je(t,n).split(C),h={format:g,idx:0,value:(o=e,t=t,""+gt.exec(t)[0]+o+ht.exec(t)[0]),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},y=g.length,v=!1;h.idx<y;h.idx++){var w=g[h.idx];if(v)"'"===w&&(v=!1),wt(h);else if(F[w]){if(F[w](h,n))return null}else if("'"===w)v=!0,wt(h);else if(!wt(h))return null}return h.valueIdx<e.length?null:(o=h.year,t=h.month,e=h.day,i=h.hours,a=h.minutes,s=h.seconds,l=h.milliseconds,u=h.pmHour,d=h.UTC,c=h.hoursOffset,p=h.minutesOffset,f=null!==i||null!==a||s||null,m=new Date,null===o&&null===t&&null===e&&f?(o=m.getFullYear(),t=m.getMonth(),e=m.getDate()):(null===o&&(o=m.getFullYear()),null===e&&(e=1)),u&&i<12&&(i+=12),d?(c&&(i+=-c),p&&(a+=-p*(c<0?-1:1)),r=new Date(Date.UTC(o,t,e,i,a,s,l))):(f=r=new Date(o,t,e,i,a,s,l),i||23!==f.getHours()||f.setHours(f.getHours()+2)),o<100&&r.setFullYear(o),(r.getDate()!==e&&void 0===d?null:r)||null)}F.d=function(e){w("d",e);var t=T(2,e);if(null===t||v(t,1,31))return!0;null===e.day&&(e.day=t)},F.E=function(e,t){if(null===_(c(t,"days",w("E",e),!1,!0),e,!0))return!0},F.M=function(e,t){return bt("M",e,t)},F.L=function(e,t){return bt("L",e,t)},F.y=function(e){var t=w("y",e),n=T(1===t?void 0:t,e);if(null===n)return!0;2===t&&2029<(n=(t=(new Date).getFullYear())-t%100+n)&&(n-=100),e.year=n},F.h=function(e){w("h",e);var t=T(2,e);if(null===(t=12===t?0:t)||v(t,0,11))return!0;e.hours=t},F.K=function(e){w("K",e);var t=T(2,e);if(null===t||v(t,0,11))return!0;e.hours=t},F.a=function(e,t){var t=c(t,"dayPeriods",w("a",e),!1,!0),n=_([t.pm],e,!0);if(!n&&!_([t.am],e,!0))return!0;e.pmHour=n},F.H=function(e){w("H",e);var t=T(2,e);if(null===t||v(t,0,23))return!0;e.hours=t},F.k=function(e){w("k",e);var t=T(2,e);if(null===t||v(t,1,24))return!0;e.hours=24===t?0:t},F.m=function(e){w("m",e);var t=T(2,e);if(null===t||v(t,0,59))return!0;e.minutes=t},F.s=function(e){w("s",e);var t=T(2,e);if(null===t||v(t,0,59))return!0;e.seconds=t},F.S=function(e){var t=w("S",e),n=e.value.substr(e.valueIdx,t),r=null;if(isNaN(parseInt(n,10))||(r=k(r=parseFloat("0."+n,10),3),r*=1e3,e.valueIdx+=t),null===r||v(r,0,999))return!0;e.milliseconds=r},F.z=function(e,t){var n=w("z",e)<4,e=Mt(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(e)return e},F.Z=function(e,t){var n=w("Z",e),e=Mt(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(e)return e},F.x=function(e,t){var n=w("x",e),e=Mt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(e)return e},F.X=function(e,t){var n=w("X",e),e=Mt(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(e)return e},F.G=function(e,t){t=c(t,"eras",w("G",e),!1,!0);if(null===_([t[0],t[1]],e,!0))return!0},F.e=function(e,t){return St("e",e,t)},F.c=function(e,t){return St("c",e,t)};var Et={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},xt="literal";function Ct(e,t){var n=e[e.length-1];n&&n.type===xt?n.pattern+=t:e.push({type:xt,pattern:t})}var Ot=/\{(\d+)(:[^}]+)?\}/g;function kt(e,t,n){if(t){if(Ve(e))return lt(e,t,n);if(Be(e))return Le(e,t,n)}return null!=e?e:C}function It(e,r,o){return e.replace(Ot,function(e,t,n){return kt(r[parseInt(t,10)],n?n.substring(1):C,o)})}var Tt,_t=t(527),Ft={name:"@progress/kendo-react-intl",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1659603857,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},Nt=(A.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 1===t.length&&Array.isArray(t[0])?It(e,t[0],this.locale):It(e,t,this.locale)},A.prototype.formatDate=function(e,t){return lt(e,t,this.locale)},A.prototype.toString=function(e,t){return kt(e,t,this.locale)},A.prototype.parseNumber=function(e,t){var n=this.locale;if(void 0===t&&(t={}),!e&&0!==e)return null;if(!Be(e)){var r,o=(n=f(n=void 0===n?g:n)).numbers.symbols,e=e.toString(),i=t||{};if(a(t)&&(ke(i={format:t}),e=function(e){var t=i.literals,n=e;if(t)for(var r=0;r<t.length;r++)n=n.replace(t[r],C);return n}(e),Oe(i,n)),(i.style===S||-1<e.indexOf(o.percentSign))&&(e=e.replace(o.percentSign,C),r=!0),Pe.test(e))return e=parseFloat(e.replace(o.decimal,x)),isNaN(e)?null:e;if(t=function(e,o,t){var n,i=De((t=Ae(t)||{}).style),r=e;if(e=t.currency||ge(o,i)){var a=function(e){var t=fe(o,e,void 0===i?!0:i);if(t){if(!t.displays){var n,r=[e];for(n in t)r.push(t[n]);r.sort(me),t.displays=r}return t.displays}}(e);if(a)for(var s=0;s<a.length;s++){var l=a[s];if(r.includes(l)){r=r.replace(l,C),i=!0;break}}!i||(t=He(r,o.numbers.currency.patterns)||He(r,o.numbers.accounting.patterns))&&(n=!0,r=t)}return{number:r,negative:n}}(e,n,i),n=t.negative,t=t.number,0<(t=(e=String(t).trim()).indexOf("-")))return null;t=-1<t,t=void 0!==n?n:t,e=e.replace("-",C).replace(ze," ").split(o.group.replace(ze," ")).join(C).replace(o.decimal,x),e=parseFloat(e),isNaN(e)?e=null:t&&(e*=-1),e&&r&&(e/=100)}return e},A.prototype.parseDate=function(e,t){var n=this.locale;if(void 0===n&&(n=g),!e)return null;if(Ve(e))return e;var r=String(e).trim(),o=function(e){if(e&&0===e.indexOf("/D")){var t,e=ct.exec(e);if(e)return e=e[1],t=pt.exec(e.substring(1)),e=new Date(parseInt(e,10)),t&&(n="-"===(r=t[0]).substr(0,1)?-1:1,r=r.substring(1),t=n*(60*parseInt(r.substr(0,2),10)+parseInt(r.substring(2),10)),e=ut(e,e.getTimezoneOffset(),0),e=ut(e,0,-1*t)),e}var n,r}(r);if(!o)for(var i=f(n),a=t||function(){for(var e=[],t=i.calendar.patterns,n=vt.length,r=0;r<n;r++)e.push(t[vt[r]]);return e.concat(yt)}(),s=(a=Array.isArray(a)?a:[a]).length,l=0;l<s;l++)if(o=Dt(r,a[l],i))return o;return o},A.prototype.formatNumber=function(e,t){return Le(e,t,this.locale)},A.prototype.dateFieldName=function(e){var t=this.locale;if(t=f(t=void 0===t?g:t).calendar.dateFields)return(t=t[e.type]||{})[e.nameType]||t.wide;throw u.NoDateFieldNames.error()},A.prototype.dateFormatNames=function(e){return oe(this.locale,e)},A.prototype.splitDateFormat=function(e){for(var t=this.locale,n=Je(e,f(t=void 0===t?g:t)),r=[],o=p.lastIndex=0,i=p.exec(n);i;){var a,s,l,u,d=i[0];o<i.index&&Ct(r,n.substring(o,i.index)),d.startsWith('"')||d.startsWith("'")?Ct(r,d):(a=d[0],s={type:u=rt[a],pattern:d},"hour"===u&&(s.hour12="h"===(l=d)||"K"===l),(l=Et[u])&&(Be(l.minLength)?l.minLength:l.minLength[a])<=(u=d.length)&&(s.names={type:l.type,nameType:Ye(u),standAlone:l.standAlone===a}),r.push(s)),o=p.lastIndex,i=p.exec(n)}return o<n.length&&Ct(r,n.substring(o)),r},A.prototype.numberSymbols=function(){return s(this.locale).numbers.symbols},A.prototype.firstDay=function(){return we(this.locale)},A),r=Object.create({}),At=(zt.prototype.toLanguageString=function(e,t){return this.language&&r[this.language]&&r[this.language].hasOwnProperty(e)?r[this.language][e]:t},zt),N=i.createContext({intl:new Nt("en"),localization:new At}),Lt=(Tt=function(e,t){return(Tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(){return(Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)}),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n=t,r=e;if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=n}return Tt(n,r),n.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o),t.prototype.getIntlService=function(){return new Nt(this.props.locale)},t.prototype.render=function(){var t=this;return i.createElement(N.Consumer,null,function(e){return i.createElement(N.Provider,{value:Lt(Lt({},e),{intl:t.getIntlService()})},t.props.children)})},t.propTypes={locale:P.string},t}(i.Component),Pt=function(e,t,n){for(var r in e){var o;e.hasOwnProperty(r)&&((o=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],n,!0)).push(r),"string"!=typeof e[r]?Pt(e[r],t,o):(r=e[r],Object.defineProperty(t,o.join("."),{value:r})))}};function zt(e){this.language=e}function A(e){this.locale=e,void 0!==_t?_t.validatePackage(Ft):(e="License activation failed for ".concat(Ft.name,"\n"),e=(e+="The @progress/kendo-licensing script is not loaded.\n")+"See ".concat(Ft.licensingDocsUrl," for more information.\n"),console.warn(e))}Wt=function(e,t){return(Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var Ht,Wt,nt=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},jt=function(){return(jt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Ut=(Ht=i.Component,nt(L,Ht),L.prototype.getLocalizationService=function(){return new At(this.props.language)},L.prototype.render=function(){var t=this;return i.createElement(N.Consumer,null,function(e){return i.createElement(N.Provider,{value:jt(jt({},e),{localization:t.getLocalizationService()})},t.props.children)})},L.propTypes={language:P.string},L);function L(){return null!==Ht&&Ht.apply(this,arguments)||this}var Rt=function(){return i.useContext(N).intl},Zt=function(){return i.useContext(N).localization}},527:e=>{e.exports=m},536:e=>{e.exports=p},811:e=>{e.exports=f},895:e=>{e.exports=c},954:e=>{e.exports=u},493:e=>{e.exports=d}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;t=r[e]={exports:{}};return n[e].call(t.exports,t,t.exports,o),t.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var e,t,i,a,s,l={};return e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.WindowPropsContext=e.WindowActionsBar=e.Window=e.DialogPropsContext=e.DialogActionsBar=e.Dialog=void 0,t=o(580),Object.defineProperty(e,"Dialog",{enumerable:!0,get:function(){return t.Dialog}}),Object.defineProperty(e,"DialogPropsContext",{enumerable:!0,get:function(){return t.DialogPropsContext}}),i=o(379),Object.defineProperty(e,"DialogActionsBar",{enumerable:!0,get:function(){return i.DialogActionsBar}}),a=o(891),Object.defineProperty(e,"Window",{enumerable:!0,get:function(){return a.Window}}),Object.defineProperty(e,"WindowPropsContext",{enumerable:!0,get:function(){return a.WindowPropsContext}}),s=o(617),Object.defineProperty(e,"WindowActionsBar",{enumerable:!0,get:function(){return s.WindowActionsBar}}),l})())}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dialogs",
3
- "version": "5.5.1-dev.202207141327",
3
+ "version": "5.6.0-dev.202208040930",
4
4
  "description": "KendoReact Dialogs package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,6 +13,7 @@
13
13
  "scripts": {
14
14
  "test": "cd ../../ && npm run test -- --testPathPattern=/packages/dialogs/.*",
15
15
  "e2e": "cd ../../ && npx jest --maxWorkers=4 --config jest.e2e.js packages/dialogs",
16
+ "e2e-axe": "cd ../../ && npx jest --maxWorkers=4 --config jest.e2e.js packages/dialogs/e2e/accessibility.tests.ts",
16
17
  "start": "gulp start",
17
18
  "build-package": "gulp build-package"
18
19
  },
@@ -36,14 +37,14 @@
36
37
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
37
38
  },
38
39
  "dependencies": {
39
- "@progress/kendo-react-common": "5.5.1-dev.202207141327",
40
+ "@progress/kendo-react-common": "5.6.0-dev.202208040930",
40
41
  "prop-types": "^15.6.0"
41
42
  },
42
43
  "devDependencies": {
43
- "@progress/kendo-react-buttons": "5.5.1-dev.202207141327",
44
- "@progress/kendo-react-dropdowns": "5.5.1-dev.202207141327",
45
- "@progress/kendo-react-intl": "5.5.1-dev.202207141327",
46
- "@progress/kendo-react-tooltip": "5.5.1-dev.202207141327"
44
+ "@progress/kendo-react-buttons": "5.6.0-dev.202208040930",
45
+ "@progress/kendo-react-dropdowns": "5.6.0-dev.202208040930",
46
+ "@progress/kendo-react-intl": "5.6.0-dev.202208040930",
47
+ "@progress/kendo-react-tooltip": "5.6.0-dev.202208040930"
47
48
  },
48
49
  "@progress": {
49
50
  "friendlyName": "Dialogs",