hplx-react-elements-dev 1.1.57 → 1.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.css +3 -3
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.css
CHANGED
|
@@ -2122,7 +2122,7 @@
|
|
|
2122
2122
|
transition-duration: 1s;
|
|
2123
2123
|
transform: scale(1);
|
|
2124
2124
|
}
|
|
2125
|
-
.
|
|
2125
|
+
.slider-indicators li {
|
|
2126
2126
|
width: 10px;
|
|
2127
2127
|
height: 10px;
|
|
2128
2128
|
border-radius: 100%;
|
|
@@ -2132,11 +2132,11 @@
|
|
|
2132
2132
|
margin: 0px 5px;
|
|
2133
2133
|
cursor: pointer;
|
|
2134
2134
|
}
|
|
2135
|
-
.
|
|
2135
|
+
.slider-indicators li.active {
|
|
2136
2136
|
background: #fff;
|
|
2137
2137
|
border: 1px solid #fff;
|
|
2138
2138
|
}
|
|
2139
|
-
.
|
|
2139
|
+
.slider-indicators {
|
|
2140
2140
|
position: absolute;
|
|
2141
2141
|
left: 50%;
|
|
2142
2142
|
bottom: 5%;
|
package/dist/esm/index.js
CHANGED
|
@@ -22,4 +22,4 @@ var r=/input|select|textarea|button|object|iframe/;function n(t){var e=t.offsetW
|
|
|
22
22
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
23
23
|
All rights reserved.
|
|
24
24
|
*/
|
|
25
|
-
!function(t){var e,r;e=!('undefined'==typeof window||!window.document||!window.document.createElement),r={canUseDOM:e,canUseWorkers:'undefined'!=typeof Worker,canUseEventListeners:e&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:e&&!!window.screen},t.exports?t.exports=r:window.ExecutionEnvironment=r}(z_),Object.defineProperty(U_,'__esModule',{value:!0}),U_.canUseDOM=U_.SafeNodeList=U_.SafeHTMLCollection=void 0;var Y_=function(t){return t&&t.__esModule?t:{default:t}}(z_.exports);var H_=Y_.default,q_=H_.canUseDOM?window.HTMLElement:{};U_.SafeHTMLCollection=H_.canUseDOM?window.HTMLCollection:{},U_.SafeNodeList=H_.canUseDOM?window.NodeList:{},U_.canUseDOM=H_.canUseDOM,U_.default=q_,Object.defineProperty(A_,'__esModule',{value:!0}),A_.resetState=function(){Q_&&(Q_.removeAttribute?Q_.removeAttribute('aria-hidden'):null!=Q_.length?Q_.forEach((function(t){return t.removeAttribute('aria-hidden')})):document.querySelectorAll(Q_).forEach((function(t){return t.removeAttribute('aria-hidden')})));Q_=null},A_.log=function(){},A_.assertNodeList=X_,A_.setElement=function(t){var e=t;if('string'==typeof e&&V_.canUseDOM){var r=document.querySelectorAll(e);X_(r,e),e=r}return Q_=e||Q_},A_.validateElement=K_,A_.hide=function(t){var e=!0,r=!1,n=void 0;try{for(var o,a=K_(t)[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){o.value.setAttribute('aria-hidden','true')}}catch(t){r=!0,n=t}finally{try{!e&&a.return&&a.return()}finally{if(r)throw n}}},A_.show=function(t){var e=!0,r=!1,n=void 0;try{for(var o,a=K_(t)[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){o.value.removeAttribute('aria-hidden')}}catch(t){r=!0,n=t}finally{try{!e&&a.return&&a.return()}finally{if(r)throw n}}},A_.documentNotReadyOrSSRTesting=function(){Q_=null};var $_=function(t){return t&&t.__esModule?t:{default:t}}(I_),V_=U_;var Q_=null;function X_(t,e){if(!t||!t.length)throw new Error('react-modal: No elements were found for selector '+e+'.')}function K_(t){var e=t||Q_;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,$_.default)(!1,['react-modal: App element is not defined.','Please use `Modal.setAppElement(el)` or set `appElement={el}`.','This is needed so screen readers don\'t see main content','when modal is opened. It is not recommended, but you can opt-out','by setting `ariaHideApp={false}`.'].join(' ')),[])}var J_={};Object.defineProperty(J_,'__esModule',{value:!0}),J_.resetState=function(){var t=document.getElementsByTagName('html')[0];for(var e in Z_)eD(t,Z_[e]);var r=document.body;for(var n in tD)eD(r,tD[n]);Z_={},tD={}},J_.log=function(){};var Z_={},tD={};function eD(t,e){t.classList.remove(e)}J_.add=function(t,e){return r=t.classList,n='html'==t.nodeName.toLowerCase()?Z_:tD,void e.split(' ').forEach((function(t){!function(t,e){t[e]||(t[e]=0),t[e]+=1}(n,t),r.add(t)}));var r,n},J_.remove=function(t,e){return r=t.classList,n='html'==t.nodeName.toLowerCase()?Z_:tD,void e.split(' ').forEach((function(t){!function(t,e){t[e]&&(t[e]-=1)}(n,t),0===n[t]&&r.remove(t)}));var r,n};var rD={};Object.defineProperty(rD,'__esModule',{value:!0}),rD.log=function(){oD.openInstances.forEach((function(t){}))},rD.resetState=function(){oD=new nD};var nD=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit('register'))},this.deregister=function(t){var r=e.openInstances.indexOf(t);-1!==r&&(e.openInstances.splice(r,1),e.emit('deregister'))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(r){return r(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},oD=new nD;rD.default=oD;var aD={};Object.defineProperty(aD,'__esModule',{value:!0}),aD.resetState=function(){for(var t=[iD,sD],e=0;e<t.length;e++){var r=t[e];r&&(r.parentNode&&r.parentNode.removeChild(r))}iD=sD=null,cD=[]},aD.log=function(){for(var t=[iD,sD],e=0;e<t.length;e++);};var lD=function(t){return t&&t.__esModule?t:{default:t}}(rD);var iD=void 0,sD=void 0,cD=[];function uD(){0!==cD.length&&cD[cD.length-1].focusContent()}lD.default.subscribe((function(t,e){iD||sD||((iD=document.createElement('div')).setAttribute('data-react-modal-body-trap',''),iD.style.position='absolute',iD.style.opacity='0',iD.setAttribute('tabindex','0'),iD.addEventListener('focus',uD),(sD=iD.cloneNode()).addEventListener('focus',uD)),(cD=e).length>0?(document.body.firstChild!==iD&&document.body.insertBefore(iD,document.body.firstChild),document.body.lastChild!==sD&&document.body.appendChild(sD)):(iD.parentElement&&iD.parentElement.removeChild(iD),sD.parentElement&&sD.parentElement.removeChild(sD))})),function(e,r){Object.defineProperty(r,'__esModule',{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&'function'==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?'symbol':typeof t},l=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=t,s=b(o),c=y(R_),u=b(L_.exports),p=y(A_),f=y(J_),h=U_,d=b(h),x=b(rD);function y(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function b(t){return t&&t.__esModule?t:{default:t}}var m={overlay:'ReactModal__Overlay',content:'ReactModal__Content'},v=0,g=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}(this,e);var r=function(t,e){if(!t)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return!e||'object'!=typeof e&&'function'!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.setOverlayRef=function(t){r.overlay=t,r.props.overlayRef&&r.props.overlayRef(t)},r.setContentRef=function(t){r.content=t,r.props.contentRef&&r.props.contentRef(t)},r.afterClose=function(){var t=r.props,e=t.appElement,n=t.ariaHideApp,o=t.htmlOpenClassName,a=t.bodyOpenClassName,l=t.parentSelector,i=l&&l().ownerDocument||document;a&&f.remove(i.body,a),o&&f.remove(i.getElementsByTagName('html')[0],o),n&&v>0&&0===(v-=1)&&p.show(e),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(c.returnFocus(r.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),x.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(c.setupScopedFocus(r.node),c.markForFocusLater()),r.setState({isOpen:!0},(function(){r.openAnimationFrame=requestAnimationFrame((function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})}))})))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var t=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:t},(function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())}))},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(t){(function(t){return'Tab'===t.code||9===t.keyCode})(t)&&(0,u.default)(r.content,t),r.props.shouldCloseOnEsc&&function(t){return'Escape'===t.code||27===t.keyCode}(t)&&(t.stopPropagation(),r.requestClose(t))},r.handleOverlayOnClick=function(t){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(t):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(t){r.props.shouldCloseOnOverlayClick||t.target!=r.overlay||t.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(t){return r.ownerHandlesClose()&&r.props.onRequestClose(t)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(t,e){var n='object'===(void 0===e?'undefined':a(e))?e:{base:m[t],afterOpen:m[t]+'--after-open',beforeClose:m[t]+'--before-close'},o=n.base;return r.state.afterOpen&&(o=o+' '+n.afterOpen),r.state.beforeClose&&(o=o+' '+n.beforeClose),'string'==typeof e&&e?o+' '+e:o},r.attributesFromObject=function(t,e){return Object.keys(e).reduce((function(r,n){return r[t+'-'+n]=e[n],r}),{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return function(t,e){if('function'!=typeof e&&null!==e)throw new TypeError('Super expression must either be null or a function, not '+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l(e,[{key:'componentDidMount',value:function(){this.props.isOpen&&this.open()}},{key:'componentDidUpdate',value:function(t,e){this.props.isOpen&&!t.isOpen?this.open():!this.props.isOpen&&t.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!e.isOpen&&this.focusContent()}},{key:'componentWillUnmount',value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:'beforeOpen',value:function(){var t=this.props,e=t.appElement,r=t.ariaHideApp,n=t.htmlOpenClassName,o=t.bodyOpenClassName,a=t.parentSelector,l=a&&a().ownerDocument||document;o&&f.add(l.body,o),n&&f.add(l.getElementsByTagName('html')[0],n),r&&(v+=1,p.hide(e)),x.default.register(this)}},{key:'render',value:function(){var t=this.props,e=t.id,r=t.className,o=t.overlayClassName,a=t.defaultStyles,l=t.children,i=r?{}:a.content,s=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName('overlay',o),style:n({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:e,ref:this.setContentRef,style:n({},i,this.props.style.content),className:this.buildClassName('content',r),tabIndex:'-1',onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,'aria-label':this.props.contentLabel},this.attributesFromObject('aria',n({modal:!0},this.props.aria)),this.attributesFromObject('data',this.props.data||{}),{'data-testid':this.props.testId}),p=this.props.contentElement(u,l);return this.props.overlayElement(c,p)}}]),e}(i.Component);g.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},g.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(h.SafeHTMLCollection),s.default.instanceOf(h.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},r.default=g,e.exports=r.default}(T_,T_.exports);var pD={};function fD(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function hD(t){this.setState(function(e){var r=this.constructor.getDerivedStateFromProps(t,e);return null!=r?r:null}.bind(this))}function dD(t,e){try{var r=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Object.defineProperty(pD,'__esModule',{value:!0}),fD.__suppressDeprecationWarning=!0,hD.__suppressDeprecationWarning=!0,dD.__suppressDeprecationWarning=!0,pD.polyfill=function(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error('Can only polyfill class components');if('function'!=typeof t.getDerivedStateFromProps&&'function'!=typeof e.getSnapshotBeforeUpdate)return t;var r=null,n=null,o=null;if('function'==typeof e.componentWillMount?r='componentWillMount':'function'==typeof e.UNSAFE_componentWillMount&&(r='UNSAFE_componentWillMount'),'function'==typeof e.componentWillReceiveProps?n='componentWillReceiveProps':'function'==typeof e.UNSAFE_componentWillReceiveProps&&(n='UNSAFE_componentWillReceiveProps'),'function'==typeof e.componentWillUpdate?o='componentWillUpdate':'function'==typeof e.UNSAFE_componentWillUpdate&&(o='UNSAFE_componentWillUpdate'),null!==r||null!==n||null!==o){var a=t.displayName||t.name,l='function'==typeof t.getDerivedStateFromProps?'getDerivedStateFromProps()':'getSnapshotBeforeUpdate()';throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n'+a+' uses '+l+' but also contains the following legacy lifecycles:'+(null!==r?'\n '+r:'')+(null!==n?'\n '+n:'')+(null!==o?'\n '+o:'')+'\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks')}if('function'==typeof t.getDerivedStateFromProps&&(e.componentWillMount=fD,e.componentWillReceiveProps=hD),'function'==typeof e.getSnapshotBeforeUpdate){if('function'!=typeof e.componentDidUpdate)throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype');e.componentWillUpdate=dD;var i=e.componentDidUpdate;e.componentDidUpdate=function(t,e,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;i.call(this,t,e,n)}}return t},Object.defineProperty(C_,'__esModule',{value:!0}),C_.bodyOpenClassName=C_.portalClassName=void 0;var xD=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yD=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),bD=t,mD=kD(bD),vD=kD(a),gD=kD(o),wD=kD(T_.exports),OD=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(A_),jD=U_,PD=kD(jD),SD=pD;function kD(t){return t&&t.__esModule?t:{default:t}}function _D(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}function DD(t,e){if(!t)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return!e||'object'!=typeof e&&'function'!=typeof e?t:e}var CD=C_.portalClassName='ReactModalPortal',TD=C_.bodyOpenClassName='ReactModal__Body--open',RD=jD.canUseDOM&&void 0!==vD.default.createPortal,ND=function(t){return document.createElement(t)},MD=function(){return RD?vD.default.createPortal:vD.default.unstable_renderSubtreeIntoContainer};function ED(t){return t()}var WD=function(t){function e(){var t,r,n;_D(this,e);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return r=n=DD(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),n.removePortal=function(){!RD&&vD.default.unmountComponentAtNode(n.node);var t=ED(n.props.parentSelector);t&&t.contains(n.node)&&t.removeChild(n.node)},n.portalRef=function(t){n.portal=t},n.renderPortal=function(t){var r=MD()(n,mD.default.createElement(wD.default,xD({defaultStyles:e.defaultStyles},t)),n.node);n.portalRef(r)},DD(n,r)}return function(t,e){if('function'!=typeof e&&null!==e)throw new TypeError('Super expression must either be null or a function, not '+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,bD.Component),yD(e,[{key:'componentDidMount',value:function(){jD.canUseDOM&&(RD||(this.node=ND('div')),this.node.className=this.props.portalClassName,ED(this.props.parentSelector).appendChild(this.node),!RD&&this.renderPortal(this.props))}},{key:'getSnapshotBeforeUpdate',value:function(t){return{prevParent:ED(t.parentSelector),nextParent:ED(this.props.parentSelector)}}},{key:'componentDidUpdate',value:function(t,e,r){if(jD.canUseDOM){var n=this.props,o=n.isOpen,a=n.portalClassName;t.portalClassName!==a&&(this.node.className=a);var l=r.prevParent,i=r.nextParent;i!==l&&(l.removeChild(this.node),i.appendChild(this.node)),(t.isOpen||o)&&!RD&&this.renderPortal(this.props)}}},{key:'componentWillUnmount',value:function(){if(jD.canUseDOM&&this.node&&this.portal){var t=this.portal.state,e=Date.now(),r=t.isOpen&&this.props.closeTimeoutMS&&(t.closesAt||e+this.props.closeTimeoutMS);r?(t.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,r-e)):this.removePortal()}}},{key:'render',value:function(){return jD.canUseDOM&&RD?(!this.node&&RD&&(this.node=ND('div')),MD()(mD.default.createElement(wD.default,xD({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:'setAppElement',value:function(t){OD.setElement(t)}}]),e}();WD.propTypes={isOpen:gD.default.bool.isRequired,style:gD.default.shape({content:gD.default.object,overlay:gD.default.object}),portalClassName:gD.default.string,bodyOpenClassName:gD.default.string,htmlOpenClassName:gD.default.string,className:gD.default.oneOfType([gD.default.string,gD.default.shape({base:gD.default.string.isRequired,afterOpen:gD.default.string.isRequired,beforeClose:gD.default.string.isRequired})]),overlayClassName:gD.default.oneOfType([gD.default.string,gD.default.shape({base:gD.default.string.isRequired,afterOpen:gD.default.string.isRequired,beforeClose:gD.default.string.isRequired})]),appElement:gD.default.oneOfType([gD.default.instanceOf(PD.default),gD.default.instanceOf(jD.SafeHTMLCollection),gD.default.instanceOf(jD.SafeNodeList),gD.default.arrayOf(gD.default.instanceOf(PD.default))]),onAfterOpen:gD.default.func,onRequestClose:gD.default.func,closeTimeoutMS:gD.default.number,ariaHideApp:gD.default.bool,shouldFocusAfterRender:gD.default.bool,shouldCloseOnOverlayClick:gD.default.bool,shouldReturnFocusAfterClose:gD.default.bool,preventScroll:gD.default.bool,parentSelector:gD.default.func,aria:gD.default.object,data:gD.default.object,role:gD.default.string,contentLabel:gD.default.string,shouldCloseOnEsc:gD.default.bool,overlayRef:gD.default.func,contentRef:gD.default.func,id:gD.default.string,overlayElement:gD.default.func,contentElement:gD.default.func},WD.defaultProps={isOpen:!1,portalClassName:CD,bodyOpenClassName:TD,role:'dialog',ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,e){return mD.default.createElement('div',t,e)},contentElement:function(t,e){return mD.default.createElement('div',t,e)}},WD.defaultStyles={overlay:{position:'fixed',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(255, 255, 255, 0.75)'},content:{position:'absolute',top:'40px',left:'40px',right:'40px',bottom:'40px',border:'1px solid #ccc',background:'#fff',overflow:'auto',WebkitOverflowScrolling:'touch',borderRadius:'4px',outline:'none',padding:'20px'}},(0,SD.polyfill)(WD),C_.default=WD,function(t,e){Object.defineProperty(e,'__esModule',{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(C_);e.default=r.default,t.exports=e.default}(D_,D_.exports);var BD=i(D_.exports);const GD=t=>{let{backgroundColor:e,position:r,margin:n,zIndex:o,padding:a,width:l,height:i,boxShadow:s,borderRadius:c,ClassNames:u,openModal:p=!1,closeModal:f,Children:h,style:d}=t;return pc.exports.jsx('div',Object.assign({className:'',style:d},{children:pc.exports.jsx(BD,Object.assign({isOpen:p,onRequestClose:()=>f,shouldCloseOnOverlayClick:!0,style:{overlay:{backgroundColor:e,position:r,alignContent:'center',justifyContent:'center'},content:{zIndex:o,boxShadow:s,padding:a,width:l,height:i,margin:n,borderRadius:c}}},{children:pc.exports.jsx('div',Object.assign({onClick:f,className:''.concat(u)},{children:h}))}))}))},FD=t=>{let{leftIconClassName:r='',rightIconClassName:n='',imageList:o,isNextPrev:a=!0,caroselLeftIcon:l='hx_left',caroselRightIcon:i='hx_right',timeInterval:s=5e3,autoPlay:c=!0,carouselIndicator:u=!0}=t;const[p,f]=e(0),[h,d]=e(c),x=o.length,y=()=>{f(p===x-1?0:p+1),d(!1)};if(!Array.isArray(o)||o.length<=0)return pc.exports.jsx('p',{children:'Image list data is not available !'});1===o.length&&(u=!1,a=!1,c=!1),s>0&&h&&setTimeout((()=>{y(),d(c)}),s),s>0&&h&&!h&&setTimeout((()=>{c&&d(c)}),s);const b=[];return pc.exports.jsxs('div',Object.assign({className:'slider'},{children:[Boolean(l)&&a&&pc.exports.jsx('div',Object.assign({className:'left-arrow hplxt-flex hplxt-items-center hplxt-justify-center '.concat(r)},{children:pc.exports.jsx('span',{className:''.concat(l),onClick:()=>{d(!1),f(0===p?x-1:p-1)}})})),Boolean(i)&&a&&pc.exports.jsx('div',Object.assign({className:'right-arrow hplxt-flex hplxt-items-center hplxt-justify-center '.concat(n)},{children:pc.exports.jsx('span',{className:''.concat(i),onClick:y})})),o.map(((t,e)=>(b.push(pc.exports.jsx('li',{className:e===p?'active':'',onClick:()=>{var t;t=e,d(!1),f(t)}})),pc.exports.jsx('div',Object.assign({className:e===p?'carousel-slide active ':'carousel-slide'},{children:e===p&&pc.exports.jsx('img',{src:t,alt:t,className:'image'})}),e)))),u&&pc.exports.jsx('ul',Object.assign({className:'carousel-indicators'},{children:b}))]}))},LD={Info:'hplxt-border-Blue-200 hplxt-bg-Blue-50',Warning:'hplxt-border-Warning-200 hplxt-bg-Warning-50',Error:'hplxt-border-Error-200 hplxt-bg-Error-50',Success:'hplxt-border-Success-200 hplxt-bg-Success-50'},AD={Info:'hx_info-filled hplxt-text-Blue-600',Warning:'hx_warning-filled hplxt-text-Error-600',Error:'hx_info-filled hplxt-text-Error-600',Success:'hx_checkmark-circle-filled hplxt-text-Success-600'},ID=t=>{let{type:r,message:n,showCloseIcon:o}=t;const[a,l]=e(!0);return a?pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-justify-between hplxt-items-center hplxt-gap-2.5 hplxt-p-2.5 hplxt-border hplxt-rounded '.concat(LD[r])},{children:[pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-justify-between hplxt-items-center hplxt-gap-2.5'},{children:[pc.exports.jsx('i',{className:'hplxt-text-5 '.concat(AD[r])}),pc.exports.jsx(jc,Object.assign({variant:'Regular',type:'Text sm',className:'hplxt-text-Primary-900'},{children:n}))]})),o&&pc.exports.jsx('i',{className:'hx_close',onClick:()=>l(!1)})]})):null},UD=t=>{const{icon:e='',showCloseIcon:r=!0,className:n,children:o,handleCloseClick:a}=t||{};return pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-items-stretch hplxt-border hplxt-rounded hplxt-px-3 hplxt-py-2.5 hplxt-gap-x-2.5 '.concat(n)},{children:[pc.exports.jsx('div',{className:'hplxt-text-4 '.concat(e)}),pc.exports.jsx('div',Object.assign({className:'hplxt-flex-1 hplxt-self-stretch hplxt-text-Gray-500'},{children:o})),r&&pc.exports.jsx('i',{className:'hx_close hplxt-shrink-0 hplxt-text-4 hplxt-text-Gray-500 hplxt-cursor-pointer',onClick:()=>{a&&a()}})]}))};export{Mp as AddSuggestion,ID as Alert,ep as Avatar,ip as Badge,Np as BadgeGroup,Ju as Button,Su as ButtonGroups,__ as CalendarView,cp as Card,_c as Checkbox,Pp as CheckboxGroup,jp as CheckboxGroupItem,pp as CollapsibleCard,yk as DatePicker,mk as DatePickerWithToday,h_ as DoubleInput,sp as DropdownField,Dc as DropdownItem,FD as ImageCarousel,Tc as InputField,Rc as InputFieldSplit,k_ as InputTag,S_ as InputTagDropdownItem,ef as MessageToast,Nf as NestedDropdown,UD as Notification,Pu as OtpField,GD as PopUpModal,Mu as ProgressBar,Eu as ProgressCircle,yp as RadioBtn,bk as SingleDatePicker,Dp as Slider,Ou as TextAreaField,wp as ToggleSwitch,Tu as Tooltip,jc as Typography};
|
|
25
|
+
!function(t){var e,r;e=!('undefined'==typeof window||!window.document||!window.document.createElement),r={canUseDOM:e,canUseWorkers:'undefined'!=typeof Worker,canUseEventListeners:e&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:e&&!!window.screen},t.exports?t.exports=r:window.ExecutionEnvironment=r}(z_),Object.defineProperty(U_,'__esModule',{value:!0}),U_.canUseDOM=U_.SafeNodeList=U_.SafeHTMLCollection=void 0;var Y_=function(t){return t&&t.__esModule?t:{default:t}}(z_.exports);var H_=Y_.default,q_=H_.canUseDOM?window.HTMLElement:{};U_.SafeHTMLCollection=H_.canUseDOM?window.HTMLCollection:{},U_.SafeNodeList=H_.canUseDOM?window.NodeList:{},U_.canUseDOM=H_.canUseDOM,U_.default=q_,Object.defineProperty(A_,'__esModule',{value:!0}),A_.resetState=function(){Q_&&(Q_.removeAttribute?Q_.removeAttribute('aria-hidden'):null!=Q_.length?Q_.forEach((function(t){return t.removeAttribute('aria-hidden')})):document.querySelectorAll(Q_).forEach((function(t){return t.removeAttribute('aria-hidden')})));Q_=null},A_.log=function(){},A_.assertNodeList=X_,A_.setElement=function(t){var e=t;if('string'==typeof e&&V_.canUseDOM){var r=document.querySelectorAll(e);X_(r,e),e=r}return Q_=e||Q_},A_.validateElement=K_,A_.hide=function(t){var e=!0,r=!1,n=void 0;try{for(var o,a=K_(t)[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){o.value.setAttribute('aria-hidden','true')}}catch(t){r=!0,n=t}finally{try{!e&&a.return&&a.return()}finally{if(r)throw n}}},A_.show=function(t){var e=!0,r=!1,n=void 0;try{for(var o,a=K_(t)[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){o.value.removeAttribute('aria-hidden')}}catch(t){r=!0,n=t}finally{try{!e&&a.return&&a.return()}finally{if(r)throw n}}},A_.documentNotReadyOrSSRTesting=function(){Q_=null};var $_=function(t){return t&&t.__esModule?t:{default:t}}(I_),V_=U_;var Q_=null;function X_(t,e){if(!t||!t.length)throw new Error('react-modal: No elements were found for selector '+e+'.')}function K_(t){var e=t||Q_;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,$_.default)(!1,['react-modal: App element is not defined.','Please use `Modal.setAppElement(el)` or set `appElement={el}`.','This is needed so screen readers don\'t see main content','when modal is opened. It is not recommended, but you can opt-out','by setting `ariaHideApp={false}`.'].join(' ')),[])}var J_={};Object.defineProperty(J_,'__esModule',{value:!0}),J_.resetState=function(){var t=document.getElementsByTagName('html')[0];for(var e in Z_)eD(t,Z_[e]);var r=document.body;for(var n in tD)eD(r,tD[n]);Z_={},tD={}},J_.log=function(){};var Z_={},tD={};function eD(t,e){t.classList.remove(e)}J_.add=function(t,e){return r=t.classList,n='html'==t.nodeName.toLowerCase()?Z_:tD,void e.split(' ').forEach((function(t){!function(t,e){t[e]||(t[e]=0),t[e]+=1}(n,t),r.add(t)}));var r,n},J_.remove=function(t,e){return r=t.classList,n='html'==t.nodeName.toLowerCase()?Z_:tD,void e.split(' ').forEach((function(t){!function(t,e){t[e]&&(t[e]-=1)}(n,t),0===n[t]&&r.remove(t)}));var r,n};var rD={};Object.defineProperty(rD,'__esModule',{value:!0}),rD.log=function(){oD.openInstances.forEach((function(t){}))},rD.resetState=function(){oD=new nD};var nD=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit('register'))},this.deregister=function(t){var r=e.openInstances.indexOf(t);-1!==r&&(e.openInstances.splice(r,1),e.emit('deregister'))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(r){return r(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},oD=new nD;rD.default=oD;var aD={};Object.defineProperty(aD,'__esModule',{value:!0}),aD.resetState=function(){for(var t=[iD,sD],e=0;e<t.length;e++){var r=t[e];r&&(r.parentNode&&r.parentNode.removeChild(r))}iD=sD=null,cD=[]},aD.log=function(){for(var t=[iD,sD],e=0;e<t.length;e++);};var lD=function(t){return t&&t.__esModule?t:{default:t}}(rD);var iD=void 0,sD=void 0,cD=[];function uD(){0!==cD.length&&cD[cD.length-1].focusContent()}lD.default.subscribe((function(t,e){iD||sD||((iD=document.createElement('div')).setAttribute('data-react-modal-body-trap',''),iD.style.position='absolute',iD.style.opacity='0',iD.setAttribute('tabindex','0'),iD.addEventListener('focus',uD),(sD=iD.cloneNode()).addEventListener('focus',uD)),(cD=e).length>0?(document.body.firstChild!==iD&&document.body.insertBefore(iD,document.body.firstChild),document.body.lastChild!==sD&&document.body.appendChild(sD)):(iD.parentElement&&iD.parentElement.removeChild(iD),sD.parentElement&&sD.parentElement.removeChild(sD))})),function(e,r){Object.defineProperty(r,'__esModule',{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&'function'==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?'symbol':typeof t},l=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=t,s=b(o),c=y(R_),u=b(L_.exports),p=y(A_),f=y(J_),h=U_,d=b(h),x=b(rD);function y(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function b(t){return t&&t.__esModule?t:{default:t}}var m={overlay:'ReactModal__Overlay',content:'ReactModal__Content'},v=0,g=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}(this,e);var r=function(t,e){if(!t)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return!e||'object'!=typeof e&&'function'!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.setOverlayRef=function(t){r.overlay=t,r.props.overlayRef&&r.props.overlayRef(t)},r.setContentRef=function(t){r.content=t,r.props.contentRef&&r.props.contentRef(t)},r.afterClose=function(){var t=r.props,e=t.appElement,n=t.ariaHideApp,o=t.htmlOpenClassName,a=t.bodyOpenClassName,l=t.parentSelector,i=l&&l().ownerDocument||document;a&&f.remove(i.body,a),o&&f.remove(i.getElementsByTagName('html')[0],o),n&&v>0&&0===(v-=1)&&p.show(e),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(c.returnFocus(r.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),x.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(c.setupScopedFocus(r.node),c.markForFocusLater()),r.setState({isOpen:!0},(function(){r.openAnimationFrame=requestAnimationFrame((function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})}))})))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var t=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:t},(function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())}))},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(t){(function(t){return'Tab'===t.code||9===t.keyCode})(t)&&(0,u.default)(r.content,t),r.props.shouldCloseOnEsc&&function(t){return'Escape'===t.code||27===t.keyCode}(t)&&(t.stopPropagation(),r.requestClose(t))},r.handleOverlayOnClick=function(t){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(t):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(t){r.props.shouldCloseOnOverlayClick||t.target!=r.overlay||t.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(t){return r.ownerHandlesClose()&&r.props.onRequestClose(t)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(t,e){var n='object'===(void 0===e?'undefined':a(e))?e:{base:m[t],afterOpen:m[t]+'--after-open',beforeClose:m[t]+'--before-close'},o=n.base;return r.state.afterOpen&&(o=o+' '+n.afterOpen),r.state.beforeClose&&(o=o+' '+n.beforeClose),'string'==typeof e&&e?o+' '+e:o},r.attributesFromObject=function(t,e){return Object.keys(e).reduce((function(r,n){return r[t+'-'+n]=e[n],r}),{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return function(t,e){if('function'!=typeof e&&null!==e)throw new TypeError('Super expression must either be null or a function, not '+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l(e,[{key:'componentDidMount',value:function(){this.props.isOpen&&this.open()}},{key:'componentDidUpdate',value:function(t,e){this.props.isOpen&&!t.isOpen?this.open():!this.props.isOpen&&t.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!e.isOpen&&this.focusContent()}},{key:'componentWillUnmount',value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:'beforeOpen',value:function(){var t=this.props,e=t.appElement,r=t.ariaHideApp,n=t.htmlOpenClassName,o=t.bodyOpenClassName,a=t.parentSelector,l=a&&a().ownerDocument||document;o&&f.add(l.body,o),n&&f.add(l.getElementsByTagName('html')[0],n),r&&(v+=1,p.hide(e)),x.default.register(this)}},{key:'render',value:function(){var t=this.props,e=t.id,r=t.className,o=t.overlayClassName,a=t.defaultStyles,l=t.children,i=r?{}:a.content,s=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName('overlay',o),style:n({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:e,ref:this.setContentRef,style:n({},i,this.props.style.content),className:this.buildClassName('content',r),tabIndex:'-1',onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,'aria-label':this.props.contentLabel},this.attributesFromObject('aria',n({modal:!0},this.props.aria)),this.attributesFromObject('data',this.props.data||{}),{'data-testid':this.props.testId}),p=this.props.contentElement(u,l);return this.props.overlayElement(c,p)}}]),e}(i.Component);g.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},g.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(h.SafeHTMLCollection),s.default.instanceOf(h.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},r.default=g,e.exports=r.default}(T_,T_.exports);var pD={};function fD(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function hD(t){this.setState(function(e){var r=this.constructor.getDerivedStateFromProps(t,e);return null!=r?r:null}.bind(this))}function dD(t,e){try{var r=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Object.defineProperty(pD,'__esModule',{value:!0}),fD.__suppressDeprecationWarning=!0,hD.__suppressDeprecationWarning=!0,dD.__suppressDeprecationWarning=!0,pD.polyfill=function(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error('Can only polyfill class components');if('function'!=typeof t.getDerivedStateFromProps&&'function'!=typeof e.getSnapshotBeforeUpdate)return t;var r=null,n=null,o=null;if('function'==typeof e.componentWillMount?r='componentWillMount':'function'==typeof e.UNSAFE_componentWillMount&&(r='UNSAFE_componentWillMount'),'function'==typeof e.componentWillReceiveProps?n='componentWillReceiveProps':'function'==typeof e.UNSAFE_componentWillReceiveProps&&(n='UNSAFE_componentWillReceiveProps'),'function'==typeof e.componentWillUpdate?o='componentWillUpdate':'function'==typeof e.UNSAFE_componentWillUpdate&&(o='UNSAFE_componentWillUpdate'),null!==r||null!==n||null!==o){var a=t.displayName||t.name,l='function'==typeof t.getDerivedStateFromProps?'getDerivedStateFromProps()':'getSnapshotBeforeUpdate()';throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n'+a+' uses '+l+' but also contains the following legacy lifecycles:'+(null!==r?'\n '+r:'')+(null!==n?'\n '+n:'')+(null!==o?'\n '+o:'')+'\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks')}if('function'==typeof t.getDerivedStateFromProps&&(e.componentWillMount=fD,e.componentWillReceiveProps=hD),'function'==typeof e.getSnapshotBeforeUpdate){if('function'!=typeof e.componentDidUpdate)throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype');e.componentWillUpdate=dD;var i=e.componentDidUpdate;e.componentDidUpdate=function(t,e,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;i.call(this,t,e,n)}}return t},Object.defineProperty(C_,'__esModule',{value:!0}),C_.bodyOpenClassName=C_.portalClassName=void 0;var xD=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yD=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,'value'in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),bD=t,mD=kD(bD),vD=kD(a),gD=kD(o),wD=kD(T_.exports),OD=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(A_),jD=U_,PD=kD(jD),SD=pD;function kD(t){return t&&t.__esModule?t:{default:t}}function _D(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}function DD(t,e){if(!t)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return!e||'object'!=typeof e&&'function'!=typeof e?t:e}var CD=C_.portalClassName='ReactModalPortal',TD=C_.bodyOpenClassName='ReactModal__Body--open',RD=jD.canUseDOM&&void 0!==vD.default.createPortal,ND=function(t){return document.createElement(t)},MD=function(){return RD?vD.default.createPortal:vD.default.unstable_renderSubtreeIntoContainer};function ED(t){return t()}var WD=function(t){function e(){var t,r,n;_D(this,e);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return r=n=DD(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),n.removePortal=function(){!RD&&vD.default.unmountComponentAtNode(n.node);var t=ED(n.props.parentSelector);t&&t.contains(n.node)&&t.removeChild(n.node)},n.portalRef=function(t){n.portal=t},n.renderPortal=function(t){var r=MD()(n,mD.default.createElement(wD.default,xD({defaultStyles:e.defaultStyles},t)),n.node);n.portalRef(r)},DD(n,r)}return function(t,e){if('function'!=typeof e&&null!==e)throw new TypeError('Super expression must either be null or a function, not '+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,bD.Component),yD(e,[{key:'componentDidMount',value:function(){jD.canUseDOM&&(RD||(this.node=ND('div')),this.node.className=this.props.portalClassName,ED(this.props.parentSelector).appendChild(this.node),!RD&&this.renderPortal(this.props))}},{key:'getSnapshotBeforeUpdate',value:function(t){return{prevParent:ED(t.parentSelector),nextParent:ED(this.props.parentSelector)}}},{key:'componentDidUpdate',value:function(t,e,r){if(jD.canUseDOM){var n=this.props,o=n.isOpen,a=n.portalClassName;t.portalClassName!==a&&(this.node.className=a);var l=r.prevParent,i=r.nextParent;i!==l&&(l.removeChild(this.node),i.appendChild(this.node)),(t.isOpen||o)&&!RD&&this.renderPortal(this.props)}}},{key:'componentWillUnmount',value:function(){if(jD.canUseDOM&&this.node&&this.portal){var t=this.portal.state,e=Date.now(),r=t.isOpen&&this.props.closeTimeoutMS&&(t.closesAt||e+this.props.closeTimeoutMS);r?(t.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,r-e)):this.removePortal()}}},{key:'render',value:function(){return jD.canUseDOM&&RD?(!this.node&&RD&&(this.node=ND('div')),MD()(mD.default.createElement(wD.default,xD({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:'setAppElement',value:function(t){OD.setElement(t)}}]),e}();WD.propTypes={isOpen:gD.default.bool.isRequired,style:gD.default.shape({content:gD.default.object,overlay:gD.default.object}),portalClassName:gD.default.string,bodyOpenClassName:gD.default.string,htmlOpenClassName:gD.default.string,className:gD.default.oneOfType([gD.default.string,gD.default.shape({base:gD.default.string.isRequired,afterOpen:gD.default.string.isRequired,beforeClose:gD.default.string.isRequired})]),overlayClassName:gD.default.oneOfType([gD.default.string,gD.default.shape({base:gD.default.string.isRequired,afterOpen:gD.default.string.isRequired,beforeClose:gD.default.string.isRequired})]),appElement:gD.default.oneOfType([gD.default.instanceOf(PD.default),gD.default.instanceOf(jD.SafeHTMLCollection),gD.default.instanceOf(jD.SafeNodeList),gD.default.arrayOf(gD.default.instanceOf(PD.default))]),onAfterOpen:gD.default.func,onRequestClose:gD.default.func,closeTimeoutMS:gD.default.number,ariaHideApp:gD.default.bool,shouldFocusAfterRender:gD.default.bool,shouldCloseOnOverlayClick:gD.default.bool,shouldReturnFocusAfterClose:gD.default.bool,preventScroll:gD.default.bool,parentSelector:gD.default.func,aria:gD.default.object,data:gD.default.object,role:gD.default.string,contentLabel:gD.default.string,shouldCloseOnEsc:gD.default.bool,overlayRef:gD.default.func,contentRef:gD.default.func,id:gD.default.string,overlayElement:gD.default.func,contentElement:gD.default.func},WD.defaultProps={isOpen:!1,portalClassName:CD,bodyOpenClassName:TD,role:'dialog',ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,e){return mD.default.createElement('div',t,e)},contentElement:function(t,e){return mD.default.createElement('div',t,e)}},WD.defaultStyles={overlay:{position:'fixed',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(255, 255, 255, 0.75)'},content:{position:'absolute',top:'40px',left:'40px',right:'40px',bottom:'40px',border:'1px solid #ccc',background:'#fff',overflow:'auto',WebkitOverflowScrolling:'touch',borderRadius:'4px',outline:'none',padding:'20px'}},(0,SD.polyfill)(WD),C_.default=WD,function(t,e){Object.defineProperty(e,'__esModule',{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(C_);e.default=r.default,t.exports=e.default}(D_,D_.exports);var BD=i(D_.exports);const GD=t=>{let{backgroundColor:e,position:r,margin:n,zIndex:o,padding:a,width:l,height:i,boxShadow:s,borderRadius:c,ClassNames:u,openModal:p=!1,closeModal:f,Children:h,style:d}=t;return pc.exports.jsx('div',Object.assign({className:'',style:d},{children:pc.exports.jsx(BD,Object.assign({isOpen:p,onRequestClose:()=>f,shouldCloseOnOverlayClick:!0,style:{overlay:{backgroundColor:e,position:r,alignContent:'center',justifyContent:'center'},content:{zIndex:o,boxShadow:s,padding:a,width:l,height:i,margin:n,borderRadius:c}}},{children:pc.exports.jsx('div',Object.assign({onClick:f,className:''.concat(u)},{children:h}))}))}))},FD=t=>{let{leftIconClassName:r='',rightIconClassName:n='',imageList:o,isNextPrev:a=!0,caroselLeftIcon:l='hx_left',caroselRightIcon:i='hx_right',timeInterval:s=5e3,autoPlay:c=!0,carouselIndicator:u=!0}=t;const[p,f]=e(0),[h,d]=e(c),x=o.length,y=()=>{f(p===x-1?0:p+1),d(!1)};if(!Array.isArray(o)||o.length<=0)return pc.exports.jsx('p',{children:'Image list data is not available !'});1===o.length&&(u=!1,a=!1,c=!1),s>0&&h&&setTimeout((()=>{y(),d(c)}),s),s>0&&h&&!h&&setTimeout((()=>{c&&d(c)}),s);const b=[];return pc.exports.jsxs('div',Object.assign({className:'slider'},{children:[Boolean(l)&&a&&pc.exports.jsx('div',Object.assign({className:'left-arrow hplxt-flex hplxt-items-center hplxt-justify-center '.concat(r)},{children:pc.exports.jsx('span',{className:''.concat(l),onClick:()=>{d(!1),f(0===p?x-1:p-1)}})})),Boolean(i)&&a&&pc.exports.jsx('div',Object.assign({className:'right-arrow hplxt-flex hplxt-items-center hplxt-justify-center '.concat(n)},{children:pc.exports.jsx('span',{className:''.concat(i),onClick:y})})),o.map(((t,e)=>(b.push(pc.exports.jsx('li',{className:e===p?'active':'',onClick:()=>{var t;t=e,d(!1),f(t)}})),pc.exports.jsx('div',Object.assign({className:e===p?'carousel-slide active ':'carousel-slide'},{children:e===p&&pc.exports.jsx('img',{src:t,alt:t,className:'image'})}),e)))),u&&pc.exports.jsx('ul',Object.assign({className:'slider-indicators'},{children:b}))]}))},LD={Info:'hplxt-border-Blue-200 hplxt-bg-Blue-50',Warning:'hplxt-border-Warning-200 hplxt-bg-Warning-50',Error:'hplxt-border-Error-200 hplxt-bg-Error-50',Success:'hplxt-border-Success-200 hplxt-bg-Success-50'},AD={Info:'hx_info-filled hplxt-text-Blue-600',Warning:'hx_warning-filled hplxt-text-Error-600',Error:'hx_info-filled hplxt-text-Error-600',Success:'hx_checkmark-circle-filled hplxt-text-Success-600'},ID=t=>{let{type:r,message:n,showCloseIcon:o}=t;const[a,l]=e(!0);return a?pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-justify-between hplxt-items-center hplxt-gap-2.5 hplxt-p-2.5 hplxt-border hplxt-rounded '.concat(LD[r])},{children:[pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-justify-between hplxt-items-center hplxt-gap-2.5'},{children:[pc.exports.jsx('i',{className:'hplxt-text-5 '.concat(AD[r])}),pc.exports.jsx(jc,Object.assign({variant:'Regular',type:'Text sm',className:'hplxt-text-Primary-900'},{children:n}))]})),o&&pc.exports.jsx('i',{className:'hx_close',onClick:()=>l(!1)})]})):null},UD=t=>{const{icon:e='',showCloseIcon:r=!0,className:n,children:o,handleCloseClick:a}=t||{};return pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-items-stretch hplxt-border hplxt-rounded hplxt-px-3 hplxt-py-2.5 hplxt-gap-x-2.5 '.concat(n)},{children:[pc.exports.jsx('div',{className:'hplxt-text-4 '.concat(e)}),pc.exports.jsx('div',Object.assign({className:'hplxt-flex-1 hplxt-self-stretch hplxt-text-Gray-500'},{children:o})),r&&pc.exports.jsx('i',{className:'hx_close hplxt-shrink-0 hplxt-text-4 hplxt-text-Gray-500 hplxt-cursor-pointer',onClick:()=>{a&&a()}})]}))};export{Mp as AddSuggestion,ID as Alert,ep as Avatar,ip as Badge,Np as BadgeGroup,Ju as Button,Su as ButtonGroups,__ as CalendarView,cp as Card,_c as Checkbox,Pp as CheckboxGroup,jp as CheckboxGroupItem,pp as CollapsibleCard,yk as DatePicker,mk as DatePickerWithToday,h_ as DoubleInput,sp as DropdownField,Dc as DropdownItem,FD as ImageCarousel,Tc as InputField,Rc as InputFieldSplit,k_ as InputTag,S_ as InputTagDropdownItem,ef as MessageToast,Nf as NestedDropdown,UD as Notification,Pu as OtpField,GD as PopUpModal,Mu as ProgressBar,Eu as ProgressCircle,yp as RadioBtn,bk as SingleDatePicker,Dp as Slider,Ou as TextAreaField,wp as ToggleSwitch,Tu as Tooltip,jc as Typography};
|