hplx-react-elements-dev 1.2.12 → 1.2.13

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.
@@ -38,3 +38,4 @@ export { default as Notification } from "./notification/Notification";
38
38
  export { default as Popover } from "./popover/Popover";
39
39
  export { default as MultiDateRangePicker } from "./datePicker/MultiDateRangePicker";
40
40
  export { default as Stepper } from "./stepper/Stepper";
41
+ export { default as ToggleButton } from './toggleButton/ToggleButton';
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}(H_),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}}(H_.exports);var q_=Y_.default,$_=q_.canUseDOM?window.HTMLElement:{};U_.SafeHTMLCollection=q_.canUseDOM?window.HTMLCollection:{},U_.SafeNodeList=q_.canUseDOM?window.NodeList:{},U_.canUseDOM=q_.canUseDOM,U_.default=$_,Object.defineProperty(I_,'__esModule',{value:!0}),I_.resetState=function(){K_&&(K_.removeAttribute?K_.removeAttribute('aria-hidden'):null!=K_.length?K_.forEach((function(t){return t.removeAttribute('aria-hidden')})):document.querySelectorAll(K_).forEach((function(t){return t.removeAttribute('aria-hidden')})));K_=null},I_.log=function(){},I_.assertNodeList=X_,I_.setElement=function(t){var e=t;if('string'==typeof e&&Q_.canUseDOM){var r=document.querySelectorAll(e);X_(r,e),e=r}return K_=e||K_},I_.validateElement=J_,I_.hide=function(t){var e=!0,r=!1,n=void 0;try{for(var o,a=J_(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}}},I_.show=function(t){var e=!0,r=!1,n=void 0;try{for(var o,a=J_(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}}},I_.documentNotReadyOrSSRTesting=function(){K_=null};var V_=function(t){return t&&t.__esModule?t:{default:t}}(z_),Q_=U_;var K_=null;function X_(t,e){if(!t||!t.length)throw new Error('react-modal: No elements were found for selector '+e+'.')}function J_(t){var e=t||K_;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,V_.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 Z_={};Object.defineProperty(Z_,'__esModule',{value:!0}),Z_.resetState=function(){var t=document.getElementsByTagName('html')[0];for(var e in tD)rD(t,tD[e]);var r=document.body;for(var n in eD)rD(r,eD[n]);tD={},eD={}},Z_.log=function(){};var tD={},eD={};function rD(t,e){t.classList.remove(e)}Z_.add=function(t,e){return r=t.classList,n='html'==t.nodeName.toLowerCase()?tD:eD,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},Z_.remove=function(t,e){return r=t.classList,n='html'==t.nodeName.toLowerCase()?tD:eD,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 nD={};Object.defineProperty(nD,'__esModule',{value:!0}),nD.log=function(){aD.openInstances.forEach((function(t){}))},nD.resetState=function(){aD=new oD};var oD=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=[]},aD=new oD;nD.default=aD;var lD={};Object.defineProperty(lD,'__esModule',{value:!0}),lD.resetState=function(){for(var t=[sD,cD],e=0;e<t.length;e++){var r=t[e];r&&(r.parentNode&&r.parentNode.removeChild(r))}sD=cD=null,uD=[]},lD.log=function(){for(var t=[sD,cD],e=0;e<t.length;e++);};var iD=function(t){return t&&t.__esModule?t:{default:t}}(nD);var sD=void 0,cD=void 0,uD=[];function pD(){0!==uD.length&&uD[uD.length-1].focusContent()}iD.default.subscribe((function(t,e){sD||cD||((sD=document.createElement('div')).setAttribute('data-react-modal-body-trap',''),sD.style.position='absolute',sD.style.opacity='0',sD.setAttribute('tabindex','0'),sD.addEventListener('focus',pD),(cD=sD.cloneNode()).addEventListener('focus',pD)),(uD=e).length>0?(document.body.firstChild!==sD&&document.body.insertBefore(sD,document.body.firstChild),document.body.lastChild!==cD&&document.body.appendChild(cD)):(sD.parentElement&&sD.parentElement.removeChild(sD),cD.parentElement&&cD.parentElement.removeChild(cD))})),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(A_.exports),p=y(I_),f=y(Z_),h=U_,d=b(h),x=b(nD);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}(N_,N_.exports);var fD={};function hD(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function dD(t){this.setState(function(e){var r=this.constructor.getDerivedStateFromProps(t,e);return null!=r?r:null}.bind(this))}function xD(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(fD,'__esModule',{value:!0}),hD.__suppressDeprecationWarning=!0,dD.__suppressDeprecationWarning=!0,xD.__suppressDeprecationWarning=!0,fD.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=hD,e.componentWillReceiveProps=dD),'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=xD;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(T_,'__esModule',{value:!0}),T_.bodyOpenClassName=T_.portalClassName=void 0;var yD=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},bD=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}}(),mD=t,vD=_D(mD),gD=_D(a),wD=_D(o),OD=_D(N_.exports),jD=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}(I_),PD=U_,SD=_D(PD),kD=fD;function _D(t){return t&&t.__esModule?t:{default:t}}function DD(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}function CD(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 TD=T_.portalClassName='ReactModalPortal',ND=T_.bodyOpenClassName='ReactModal__Body--open',RD=PD.canUseDOM&&void 0!==gD.default.createPortal,MD=function(t){return document.createElement(t)},ED=function(){return RD?gD.default.createPortal:gD.default.unstable_renderSubtreeIntoContainer};function BD(t){return t()}var GD=function(t){function e(){var t,r,n;DD(this,e);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return r=n=CD(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),n.removePortal=function(){!RD&&gD.default.unmountComponentAtNode(n.node);var t=BD(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=ED()(n,vD.default.createElement(OD.default,yD({defaultStyles:e.defaultStyles},t)),n.node);n.portalRef(r)},CD(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,mD.Component),bD(e,[{key:'componentDidMount',value:function(){PD.canUseDOM&&(RD||(this.node=MD('div')),this.node.className=this.props.portalClassName,BD(this.props.parentSelector).appendChild(this.node),!RD&&this.renderPortal(this.props))}},{key:'getSnapshotBeforeUpdate',value:function(t){return{prevParent:BD(t.parentSelector),nextParent:BD(this.props.parentSelector)}}},{key:'componentDidUpdate',value:function(t,e,r){if(PD.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(PD.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 PD.canUseDOM&&RD?(!this.node&&RD&&(this.node=MD('div')),ED()(vD.default.createElement(OD.default,yD({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:'setAppElement',value:function(t){jD.setElement(t)}}]),e}();GD.propTypes={isOpen:wD.default.bool.isRequired,style:wD.default.shape({content:wD.default.object,overlay:wD.default.object}),portalClassName:wD.default.string,bodyOpenClassName:wD.default.string,htmlOpenClassName:wD.default.string,className:wD.default.oneOfType([wD.default.string,wD.default.shape({base:wD.default.string.isRequired,afterOpen:wD.default.string.isRequired,beforeClose:wD.default.string.isRequired})]),overlayClassName:wD.default.oneOfType([wD.default.string,wD.default.shape({base:wD.default.string.isRequired,afterOpen:wD.default.string.isRequired,beforeClose:wD.default.string.isRequired})]),appElement:wD.default.oneOfType([wD.default.instanceOf(SD.default),wD.default.instanceOf(PD.SafeHTMLCollection),wD.default.instanceOf(PD.SafeNodeList),wD.default.arrayOf(wD.default.instanceOf(SD.default))]),onAfterOpen:wD.default.func,onRequestClose:wD.default.func,closeTimeoutMS:wD.default.number,ariaHideApp:wD.default.bool,shouldFocusAfterRender:wD.default.bool,shouldCloseOnOverlayClick:wD.default.bool,shouldReturnFocusAfterClose:wD.default.bool,preventScroll:wD.default.bool,parentSelector:wD.default.func,aria:wD.default.object,data:wD.default.object,role:wD.default.string,contentLabel:wD.default.string,shouldCloseOnEsc:wD.default.bool,overlayRef:wD.default.func,contentRef:wD.default.func,id:wD.default.string,overlayElement:wD.default.func,contentElement:wD.default.func},GD.defaultProps={isOpen:!1,portalClassName:TD,bodyOpenClassName:ND,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 vD.default.createElement('div',t,e)},contentElement:function(t,e){return vD.default.createElement('div',t,e)}},GD.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,kD.polyfill)(GD),T_.default=GD,function(t,e){Object.defineProperty(e,'__esModule',{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(T_);e.default=r.default,t.exports=e.default}(C_,C_.exports);var WD=i(C_.exports);const FD=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(WD,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}))}))}))},LD=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}))]}))},AD={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'},ID={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'},zD=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(AD[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(ID[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()}})]}))},HD=t=>{let e;switch(t){case'Bottom':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-top-full hplxt-left-1/2 hplxt-translate-x-[-50%]';break;case'Left':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-right-full hplxt-top-1/2 hplxt-translate-y-[-50%]';break;case'Right':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-left-full hplxt-top-1/2 hplxt-translate-y-[-50%]';break;case'Top':default:e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-1/2 hplxt-translate-x-[-50%]';break;case'Top end':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-full';break;case'Top start':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-0'}return e},YD=t=>{let e;switch(t){case'Bottom':e='hplxt-mt-3';break;case'Left':e='hplxt-mr-3';break;case'Right':e='hplxt-ml-3';break;case'Top':default:e='hplxt-mb-3';break;case'Top end':case'Top start':e='hplxt-mb-3 -hplxt-ml-4'}return e},qD=t=>{let e;switch(t){case'Bottom':e='hplxt-top-2 hplxt-left-1/2 hplxt-translate-x-[-50%]';break;case'Left':e='hplxt-right-2 hplxt-top-1/2 hplxt-translate-y-[-50%]';break;case'Right':e='hplxt-left-2 hplxt-top-1/2 hplxt-translate-y-[-50%]';break;case'Top':e='hplxt-bottom-2 hplxt-left-1/2 hplxt-translate-x-[-50%]';break;case'Top start':case'Top end':e='hplxt-bottom-2 -hplxt-left-1.5';break;default:e='hplxt-hidden'}return e},$D=t=>{const{variant:e='Bottom',children:o,isOpen:a,content:l,onClickOutside:i,backgroundClassname:s}=t||{},c=n(null),u=t=>{c.current&&!c.current.contains(t.target)&&i()};return r((()=>(document.addEventListener('mousedown',u),()=>{document.removeEventListener('mousedown',u)})),[]),pc.exports.jsxs('div',Object.assign({className:'hplxt-group hplxt-w-max hplxt-relative hplxt-inline-block',ref:c},{children:[o,a&&pc.exports.jsxs('div',Object.assign({className:'hplxt-w-max hplxt-max-w-xs '.concat(HD(e))},{children:[pc.exports.jsx('div',Object.assign({className:YD(e)},{children:l})),e&&pc.exports.jsx('div',{className:'hplxt-absolute hplxt-w-3 hplxt-h-3 hplxt-rotate-45 '.concat(s,' ').concat(qD(e))})]}))]}))},VD=t=>{let{maxDate:r,minDate:n,dateFormat:o='MMM dd, yyyy',showFooterActions:a=!1,disabledDates:l,selectedDate:i={startDate:Yd(new Date,-7),endDate:new Date},staticDateRanges:s=[],disabledDay:c,onChange:u,onApply:p,onCancel:f}=t;const[h,d]=e(Object.assign(Object.assign({},i),{key:'selection'})),x=''.concat(ad(h.startDate,o),' - ').concat(ad(h.endDate,o));return pc.exports.jsx('div',Object.assign({className:''},{children:pc.exports.jsxs('div',Object.assign({className:'multi-calender-range hplxt-w-max hplxt-bg-White hplxt-left-0 hplxt-border hplxt-border-Gray-300 hplxt-rounded-md hplxt-overflow-hidden'},{children:[pc.exports.jsx(Gf.DateRangePicker,{direction:'horizontal',disabledDates:l,disabledDay:c,minDate:n,maxDate:r,months:2,ranges:[h],rangeColors:['#4b51e7','#3ecf8e','#fed14c'],staticRanges:s,showDateDisplay:!1,showPreview:!1,onChange:t=>{d(t.selection),!a&&u&&u(t.selection)}}),pc.exports.jsxs('div',Object.assign({className:'hplxt-flex'},{children:[pc.exports.jsx('div',{className:'hplxt-w-[160px]'}),pc.exports.jsx('div',Object.assign({className:'hplxt-flex hplxt-justify-between hplxt-items-center hplxt-flex-1 hplxt-p-3 hplxt-border-t hplxt-border-l hplxt-border-Gray-200'},{children:pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-gap-1'},{children:[pc.exports.jsx(jc,Object.assign({variant:'Regular',type:'Text sm',className:'hplxt-text-Gray-400'},{children:'Range:'})),pc.exports.jsx(jc,Object.assign({variant:'Regular',type:'Text sm'},{children:x}))]}))})),a&&pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-gap-2 hplxt-pr-2 hplxt-py-2'},{children:[pc.exports.jsx(Ju,{hierarchy:'Secondary-Grey',size:'sm',textField:'Cancel',icon:'Left',className:'hplxt-w-[100px] hplxt-justify-center',onClick:t=>{t.stopPropagation(),d(Object.assign(Object.assign({},i),{key:'selection'})),f&&f(h)}}),pc.exports.jsx(Ju,{hierarchy:'Primary',size:'sm',textField:'Apply',className:'hplxt-w-[100px] hplxt-justify-center',onClick:t=>{t.stopPropagation(),u&&u(h),p&&p(h)}})]}))]}))]}))}))},QD=t=>{let{data:n,height:o=450,time:a=4e3,startOver:l=!1,showPause:i=!1,children:s}=t;const[c,u]=e(2),[p,f]=e(!1);let h;return r((()=>(p||(h=setInterval((()=>{u((t=>(t+1)%n.length))}),a)),()=>clearInterval(h))),[n,a,p]),r((()=>{l||c!==n.length-1||clearInterval(h)}),[c,l]),pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-h-['.concat(o,'px] hplxt-border hplxt-border-Gray-200 hplxt-rounded-md hplxt-shadow-inner')},{children:[pc.exports.jsx('div',Object.assign({className:'hplxt-flex hplxt-w-3/5 hplxt-justify-center hplxt-bg-Blue-50 hplxt-py-2 hplxt-px-4'},{children:pc.exports.jsx('img',{src:n[c].image,alt:n[c].title,className:' hplxt-rounded-lg hplxt-border-3 hplxt-border-White'})})),pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-flex-col hplxt-w-2/5 hplxt-pl-3 hplxt-pt-1.5 hplxt-gap-0.5 hplxt-justify-between'},{children:[pc.exports.jsx('div',Object.assign({className:'hplxt-flex hplxt-flex-col hplxt-border hplxt-rounded-md hplxt-mr-3 hplxt-pr-3 hplxt-border-Gray-200 hplxt-overflow-y-auto hplxt-gap-3'},{children:pc.exports.jsx('div',Object.assign({className:'hplxt-flex hplxt-flex-col hplxt-flex-start hplxt-justify-center hplxt-py-2 hplxt-px-3 hplxt-gap-2'},{children:n.map(((t,e)=>e===c?pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-flex-col hplxt-border hplxt-border-b-3 hplxt-rounded-2xl hplxt-border-Blue-600 hplxt-py-2 hplxt-px-3.5 hplxt-gap-1'},{children:[pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-flex-start hplxt-items-center hplxt-gap-1 hplxt-border-b hplxt-border-Gray-200 hplxt-pb-1'},{children:[pc.exports.jsx('div',Object.assign({className:' hplxt-flex hplxt-rounded-full hplxt-items-center hplxt-justify-center hplxt-w-5 hplxt-h-5 hplxt-bg-Blue-50 hplxt-text-Blue-600'},{children:e+1})),pc.exports.jsx(jc,Object.assign({variant:'Semibold',type:'Text sm',className:'hplxt-text-0'},{children:t.title}))]})),pc.exports.jsx(jc,Object.assign({variant:'Regular',type:'Text sm',className:'hplxt-text-0 hplxt-leading-12 '},{children:t.details}))]})):pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-flex-start hplxt-items-center hplxt-border hplxt-border-b-3 hplxt-rounded-3xl hplxt-py-2 hplxt-px-3 hplxt-gap-1 hplxt-cursor-pointer '.concat(e<c?'hplxt-bg-Success-50 hplxt-border-Success-800':'hplxt-bg-Gray-100 hplxt-border-Gray-300'),onClick:()=>u(e)},{children:[pc.exports.jsx('i',{className:'hx_checkmark-circle-filled hplxt-text-4 '.concat(e<c?'hplxt-text-Success-600':'hplxt-text-Gray-400')}),pc.exports.jsx(jc,Object.assign({variant:'Semibold',type:'Text sm',className:'hplxt-text-0'},{children:t.title}))]}))))}))})),pc.exports.jsxs('div',Object.assign({className:' hplxt-flex hplxt-gap-1 hplxt-px-4 hplxt-py-2 hplxt-border-Blue-400 hplxt-rounded-tl-xl hplxt-border-t hplxt-border-l hplxt-bg-Blue-50'},{children:[pc.exports.jsx(Ju,{className:'hplxt-justify-center hplxt-items-center hplxt-h-[28px] hplxt-bg-White','data-qa':'testid_delete',hierarchy:'Secondary-Grey',disabled:0===c,size:'lg',icon:'Only',iconFile:'hx_left hplxt-text-4 hplxt-text-Gray-400 ',onClick:()=>u((t=>t-1)),textField:''}),i&&pc.exports.jsx(Ju,{className:'hplxt-justify-center hplxt-items-center hplxt-h-[28px] hplxt-bg-White','data-qa':'testid_delete',hierarchy:'Secondary-Grey',size:'lg',icon:'Only',iconFile:''.concat(p?'hx_play':'hx_pause',' hplxt-text-4 hplxt-text-Gray-400 '),onClick:()=>{f((t=>!t)),clearInterval(h)},textField:''}),pc.exports.jsx(Ju,{className:'hplxt-justify-center hplxt-items-center hplxt-h-[28px] hplxt-bg-White','data-qa':'testid_delete',hierarchy:'Secondary-Grey',disabled:c===n.length-1,size:'lg',icon:'Only',iconFile:'hx_right hplxt-text-4 hplxt-text-Gray-400 ',onClick:()=>u((t=>t+1)),textField:''}),s]}))]}))]}))};export{Mp as AddSuggestion,zD as Alert,ep as Avatar,ip as Badge,Rp as BadgeGroup,Ju as Button,Su as ButtonGroups,D_ as CalendarView,cp as Card,_c as Checkbox,Pp as CheckboxGroup,jp as CheckboxGroupItem,pp as CollapsibleCard,bk as DatePicker,vk as DatePickerWithToday,d_ as DoubleInput,sp as DropdownField,Dc as DropdownItem,LD as ImageCarousel,Tc as InputField,Nc as InputFieldSplit,__ as InputTag,k_ as InputTagDropdownItem,ef as MessageToast,VD as MultiDateRangePicker,Rf as NestedDropdown,UD as Notification,Pu as OtpField,FD as PopUpModal,$D as Popover,Mu as ProgressBar,Eu as ProgressCircle,yp as RadioBtn,mk as SingleDatePicker,Dp as Slider,QD as Stepper,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}(H_),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}}(H_.exports);var q_=Y_.default,$_=q_.canUseDOM?window.HTMLElement:{};U_.SafeHTMLCollection=q_.canUseDOM?window.HTMLCollection:{},U_.SafeNodeList=q_.canUseDOM?window.NodeList:{},U_.canUseDOM=q_.canUseDOM,U_.default=$_,Object.defineProperty(I_,'__esModule',{value:!0}),I_.resetState=function(){K_&&(K_.removeAttribute?K_.removeAttribute('aria-hidden'):null!=K_.length?K_.forEach((function(t){return t.removeAttribute('aria-hidden')})):document.querySelectorAll(K_).forEach((function(t){return t.removeAttribute('aria-hidden')})));K_=null},I_.log=function(){},I_.assertNodeList=X_,I_.setElement=function(t){var e=t;if('string'==typeof e&&Q_.canUseDOM){var r=document.querySelectorAll(e);X_(r,e),e=r}return K_=e||K_},I_.validateElement=J_,I_.hide=function(t){var e=!0,r=!1,n=void 0;try{for(var o,a=J_(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}}},I_.show=function(t){var e=!0,r=!1,n=void 0;try{for(var o,a=J_(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}}},I_.documentNotReadyOrSSRTesting=function(){K_=null};var V_=function(t){return t&&t.__esModule?t:{default:t}}(z_),Q_=U_;var K_=null;function X_(t,e){if(!t||!t.length)throw new Error('react-modal: No elements were found for selector '+e+'.')}function J_(t){var e=t||K_;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,V_.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 Z_={};Object.defineProperty(Z_,'__esModule',{value:!0}),Z_.resetState=function(){var t=document.getElementsByTagName('html')[0];for(var e in tD)rD(t,tD[e]);var r=document.body;for(var n in eD)rD(r,eD[n]);tD={},eD={}},Z_.log=function(){};var tD={},eD={};function rD(t,e){t.classList.remove(e)}Z_.add=function(t,e){return r=t.classList,n='html'==t.nodeName.toLowerCase()?tD:eD,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},Z_.remove=function(t,e){return r=t.classList,n='html'==t.nodeName.toLowerCase()?tD:eD,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 nD={};Object.defineProperty(nD,'__esModule',{value:!0}),nD.log=function(){aD.openInstances.forEach((function(t){}))},nD.resetState=function(){aD=new oD};var oD=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=[]},aD=new oD;nD.default=aD;var lD={};Object.defineProperty(lD,'__esModule',{value:!0}),lD.resetState=function(){for(var t=[sD,cD],e=0;e<t.length;e++){var r=t[e];r&&(r.parentNode&&r.parentNode.removeChild(r))}sD=cD=null,uD=[]},lD.log=function(){for(var t=[sD,cD],e=0;e<t.length;e++);};var iD=function(t){return t&&t.__esModule?t:{default:t}}(nD);var sD=void 0,cD=void 0,uD=[];function pD(){0!==uD.length&&uD[uD.length-1].focusContent()}iD.default.subscribe((function(t,e){sD||cD||((sD=document.createElement('div')).setAttribute('data-react-modal-body-trap',''),sD.style.position='absolute',sD.style.opacity='0',sD.setAttribute('tabindex','0'),sD.addEventListener('focus',pD),(cD=sD.cloneNode()).addEventListener('focus',pD)),(uD=e).length>0?(document.body.firstChild!==sD&&document.body.insertBefore(sD,document.body.firstChild),document.body.lastChild!==cD&&document.body.appendChild(cD)):(sD.parentElement&&sD.parentElement.removeChild(sD),cD.parentElement&&cD.parentElement.removeChild(cD))})),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(A_.exports),p=y(I_),f=y(Z_),h=U_,d=b(h),x=b(nD);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}(N_,N_.exports);var fD={};function hD(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function dD(t){this.setState(function(e){var r=this.constructor.getDerivedStateFromProps(t,e);return null!=r?r:null}.bind(this))}function xD(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(fD,'__esModule',{value:!0}),hD.__suppressDeprecationWarning=!0,dD.__suppressDeprecationWarning=!0,xD.__suppressDeprecationWarning=!0,fD.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=hD,e.componentWillReceiveProps=dD),'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=xD;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(T_,'__esModule',{value:!0}),T_.bodyOpenClassName=T_.portalClassName=void 0;var yD=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},bD=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}}(),mD=t,vD=_D(mD),gD=_D(a),wD=_D(o),OD=_D(N_.exports),jD=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}(I_),PD=U_,SD=_D(PD),kD=fD;function _D(t){return t&&t.__esModule?t:{default:t}}function DD(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}function CD(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 TD=T_.portalClassName='ReactModalPortal',ND=T_.bodyOpenClassName='ReactModal__Body--open',RD=PD.canUseDOM&&void 0!==gD.default.createPortal,MD=function(t){return document.createElement(t)},ED=function(){return RD?gD.default.createPortal:gD.default.unstable_renderSubtreeIntoContainer};function BD(t){return t()}var GD=function(t){function e(){var t,r,n;DD(this,e);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return r=n=CD(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),n.removePortal=function(){!RD&&gD.default.unmountComponentAtNode(n.node);var t=BD(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=ED()(n,vD.default.createElement(OD.default,yD({defaultStyles:e.defaultStyles},t)),n.node);n.portalRef(r)},CD(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,mD.Component),bD(e,[{key:'componentDidMount',value:function(){PD.canUseDOM&&(RD||(this.node=MD('div')),this.node.className=this.props.portalClassName,BD(this.props.parentSelector).appendChild(this.node),!RD&&this.renderPortal(this.props))}},{key:'getSnapshotBeforeUpdate',value:function(t){return{prevParent:BD(t.parentSelector),nextParent:BD(this.props.parentSelector)}}},{key:'componentDidUpdate',value:function(t,e,r){if(PD.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(PD.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 PD.canUseDOM&&RD?(!this.node&&RD&&(this.node=MD('div')),ED()(vD.default.createElement(OD.default,yD({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:'setAppElement',value:function(t){jD.setElement(t)}}]),e}();GD.propTypes={isOpen:wD.default.bool.isRequired,style:wD.default.shape({content:wD.default.object,overlay:wD.default.object}),portalClassName:wD.default.string,bodyOpenClassName:wD.default.string,htmlOpenClassName:wD.default.string,className:wD.default.oneOfType([wD.default.string,wD.default.shape({base:wD.default.string.isRequired,afterOpen:wD.default.string.isRequired,beforeClose:wD.default.string.isRequired})]),overlayClassName:wD.default.oneOfType([wD.default.string,wD.default.shape({base:wD.default.string.isRequired,afterOpen:wD.default.string.isRequired,beforeClose:wD.default.string.isRequired})]),appElement:wD.default.oneOfType([wD.default.instanceOf(SD.default),wD.default.instanceOf(PD.SafeHTMLCollection),wD.default.instanceOf(PD.SafeNodeList),wD.default.arrayOf(wD.default.instanceOf(SD.default))]),onAfterOpen:wD.default.func,onRequestClose:wD.default.func,closeTimeoutMS:wD.default.number,ariaHideApp:wD.default.bool,shouldFocusAfterRender:wD.default.bool,shouldCloseOnOverlayClick:wD.default.bool,shouldReturnFocusAfterClose:wD.default.bool,preventScroll:wD.default.bool,parentSelector:wD.default.func,aria:wD.default.object,data:wD.default.object,role:wD.default.string,contentLabel:wD.default.string,shouldCloseOnEsc:wD.default.bool,overlayRef:wD.default.func,contentRef:wD.default.func,id:wD.default.string,overlayElement:wD.default.func,contentElement:wD.default.func},GD.defaultProps={isOpen:!1,portalClassName:TD,bodyOpenClassName:ND,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 vD.default.createElement('div',t,e)},contentElement:function(t,e){return vD.default.createElement('div',t,e)}},GD.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,kD.polyfill)(GD),T_.default=GD,function(t,e){Object.defineProperty(e,'__esModule',{value:!0});var r=function(t){return t&&t.__esModule?t:{default:t}}(T_);e.default=r.default,t.exports=e.default}(C_,C_.exports);var WD=i(C_.exports);const FD=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(WD,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}))}))}))},LD=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}))]}))},AD={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'},ID={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'},zD=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(AD[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(ID[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()}})]}))},HD=t=>{let e;switch(t){case'Bottom':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-top-full hplxt-left-1/2 hplxt-translate-x-[-50%]';break;case'Left':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-right-full hplxt-top-1/2 hplxt-translate-y-[-50%]';break;case'Right':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-left-full hplxt-top-1/2 hplxt-translate-y-[-50%]';break;case'Top':default:e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-1/2 hplxt-translate-x-[-50%]';break;case'Top end':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-full';break;case'Top start':e='hplxt-absolute hplxt-block hplxt-z-10 hplxt-bottom-full hplxt-left-0'}return e},YD=t=>{let e;switch(t){case'Bottom':e='hplxt-mt-3';break;case'Left':e='hplxt-mr-3';break;case'Right':e='hplxt-ml-3';break;case'Top':default:e='hplxt-mb-3';break;case'Top end':case'Top start':e='hplxt-mb-3 -hplxt-ml-4'}return e},qD=t=>{let e;switch(t){case'Bottom':e='hplxt-top-2 hplxt-left-1/2 hplxt-translate-x-[-50%]';break;case'Left':e='hplxt-right-2 hplxt-top-1/2 hplxt-translate-y-[-50%]';break;case'Right':e='hplxt-left-2 hplxt-top-1/2 hplxt-translate-y-[-50%]';break;case'Top':e='hplxt-bottom-2 hplxt-left-1/2 hplxt-translate-x-[-50%]';break;case'Top start':case'Top end':e='hplxt-bottom-2 -hplxt-left-1.5';break;default:e='hplxt-hidden'}return e},$D=t=>{const{variant:e='Bottom',children:o,isOpen:a,content:l,onClickOutside:i,backgroundClassname:s}=t||{},c=n(null),u=t=>{c.current&&!c.current.contains(t.target)&&i()};return r((()=>(document.addEventListener('mousedown',u),()=>{document.removeEventListener('mousedown',u)})),[]),pc.exports.jsxs('div',Object.assign({className:'hplxt-group hplxt-w-max hplxt-relative hplxt-inline-block',ref:c},{children:[o,a&&pc.exports.jsxs('div',Object.assign({className:'hplxt-w-max hplxt-max-w-xs '.concat(HD(e))},{children:[pc.exports.jsx('div',Object.assign({className:YD(e)},{children:l})),e&&pc.exports.jsx('div',{className:'hplxt-absolute hplxt-w-3 hplxt-h-3 hplxt-rotate-45 '.concat(s,' ').concat(qD(e))})]}))]}))},VD=t=>{let{maxDate:r,minDate:n,dateFormat:o='MMM dd, yyyy',showFooterActions:a=!1,disabledDates:l,selectedDate:i={startDate:Yd(new Date,-7),endDate:new Date},staticDateRanges:s=[],disabledDay:c,onChange:u,onApply:p,onCancel:f}=t;const[h,d]=e(Object.assign(Object.assign({},i),{key:'selection'})),x=''.concat(ad(h.startDate,o),' - ').concat(ad(h.endDate,o));return pc.exports.jsx('div',Object.assign({className:''},{children:pc.exports.jsxs('div',Object.assign({className:'multi-calender-range hplxt-w-max hplxt-bg-White hplxt-left-0 hplxt-border hplxt-border-Gray-300 hplxt-rounded-md hplxt-overflow-hidden'},{children:[pc.exports.jsx(Gf.DateRangePicker,{direction:'horizontal',disabledDates:l,disabledDay:c,minDate:n,maxDate:r,months:2,ranges:[h],rangeColors:['#4b51e7','#3ecf8e','#fed14c'],staticRanges:s,showDateDisplay:!1,showPreview:!1,onChange:t=>{d(t.selection),!a&&u&&u(t.selection)}}),pc.exports.jsxs('div',Object.assign({className:'hplxt-flex'},{children:[pc.exports.jsx('div',{className:'hplxt-w-[160px]'}),pc.exports.jsx('div',Object.assign({className:'hplxt-flex hplxt-justify-between hplxt-items-center hplxt-flex-1 hplxt-p-3 hplxt-border-t hplxt-border-l hplxt-border-Gray-200'},{children:pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-gap-1'},{children:[pc.exports.jsx(jc,Object.assign({variant:'Regular',type:'Text sm',className:'hplxt-text-Gray-400'},{children:'Range:'})),pc.exports.jsx(jc,Object.assign({variant:'Regular',type:'Text sm'},{children:x}))]}))})),a&&pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-gap-2 hplxt-pr-2 hplxt-py-2'},{children:[pc.exports.jsx(Ju,{hierarchy:'Secondary-Grey',size:'sm',textField:'Cancel',icon:'Left',className:'hplxt-w-[100px] hplxt-justify-center',onClick:t=>{t.stopPropagation(),d(Object.assign(Object.assign({},i),{key:'selection'})),f&&f(h)}}),pc.exports.jsx(Ju,{hierarchy:'Primary',size:'sm',textField:'Apply',className:'hplxt-w-[100px] hplxt-justify-center',onClick:t=>{t.stopPropagation(),u&&u(h),p&&p(h)}})]}))]}))]}))}))},QD=t=>{let{data:n,height:o=450,time:a=4e3,startOver:l=!1,showPause:i=!1,children:s}=t;const[c,u]=e(2),[p,f]=e(!1);let h;return r((()=>(p||(h=setInterval((()=>{u((t=>(t+1)%n.length))}),a)),()=>clearInterval(h))),[n,a,p]),r((()=>{l||c!==n.length-1||clearInterval(h)}),[c,l]),pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-h-['.concat(o,'px] hplxt-border hplxt-border-Gray-200 hplxt-rounded-md hplxt-shadow-inner')},{children:[pc.exports.jsx('div',Object.assign({className:'hplxt-flex hplxt-w-3/5 hplxt-justify-center hplxt-bg-Blue-50 hplxt-py-2 hplxt-px-4'},{children:pc.exports.jsx('img',{src:n[c].image,alt:n[c].title,className:' hplxt-rounded-lg hplxt-border-3 hplxt-border-White'})})),pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-flex-col hplxt-w-2/5 hplxt-pl-3 hplxt-pt-1.5 hplxt-gap-0.5 hplxt-justify-between'},{children:[pc.exports.jsx('div',Object.assign({className:'hplxt-flex hplxt-flex-col hplxt-border hplxt-rounded-md hplxt-mr-3 hplxt-pr-3 hplxt-border-Gray-200 hplxt-overflow-y-auto hplxt-gap-3'},{children:pc.exports.jsx('div',Object.assign({className:'hplxt-flex hplxt-flex-col hplxt-flex-start hplxt-justify-center hplxt-py-2 hplxt-px-3 hplxt-gap-2'},{children:n.map(((t,e)=>e===c?pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-flex-col hplxt-border hplxt-border-b-3 hplxt-rounded-2xl hplxt-border-Blue-600 hplxt-py-2 hplxt-px-3.5 hplxt-gap-1'},{children:[pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-flex-start hplxt-items-center hplxt-gap-1 hplxt-border-b hplxt-border-Gray-200 hplxt-pb-1'},{children:[pc.exports.jsx('div',Object.assign({className:' hplxt-flex hplxt-rounded-full hplxt-items-center hplxt-justify-center hplxt-w-5 hplxt-h-5 hplxt-bg-Blue-50 hplxt-text-Blue-600'},{children:e+1})),pc.exports.jsx(jc,Object.assign({variant:'Semibold',type:'Text sm',className:'hplxt-text-0'},{children:t.title}))]})),pc.exports.jsx(jc,Object.assign({variant:'Regular',type:'Text sm',className:'hplxt-text-0 hplxt-leading-12 '},{children:t.details}))]})):pc.exports.jsxs('div',Object.assign({className:'hplxt-flex hplxt-flex-start hplxt-items-center hplxt-border hplxt-border-b-3 hplxt-rounded-3xl hplxt-py-2 hplxt-px-3 hplxt-gap-1 hplxt-cursor-pointer '.concat(e<c?'hplxt-bg-Success-50 hplxt-border-Success-800':'hplxt-bg-Gray-100 hplxt-border-Gray-300'),onClick:()=>u(e)},{children:[pc.exports.jsx('i',{className:'hx_checkmark-circle-filled hplxt-text-4 '.concat(e<c?'hplxt-text-Success-600':'hplxt-text-Gray-400')}),pc.exports.jsx(jc,Object.assign({variant:'Semibold',type:'Text sm',className:'hplxt-text-0'},{children:t.title}))]}))))}))})),pc.exports.jsxs('div',Object.assign({className:' hplxt-flex hplxt-gap-1 hplxt-px-4 hplxt-py-2 hplxt-border-Blue-400 hplxt-rounded-tl-xl hplxt-border-t hplxt-border-l hplxt-bg-Blue-50'},{children:[pc.exports.jsx(Ju,{className:'hplxt-justify-center hplxt-items-center hplxt-h-[28px] hplxt-bg-White','data-qa':'testid_delete',hierarchy:'Secondary-Grey',disabled:0===c,size:'lg',icon:'Only',iconFile:'hx_left hplxt-text-4 hplxt-text-Gray-400 ',onClick:()=>u((t=>t-1)),textField:''}),i&&pc.exports.jsx(Ju,{className:'hplxt-justify-center hplxt-items-center hplxt-h-[28px] hplxt-bg-White','data-qa':'testid_delete',hierarchy:'Secondary-Grey',size:'lg',icon:'Only',iconFile:''.concat(p?'hx_play':'hx_pause',' hplxt-text-4 hplxt-text-Gray-400 '),onClick:()=>{f((t=>!t)),clearInterval(h)},textField:''}),pc.exports.jsx(Ju,{className:'hplxt-justify-center hplxt-items-center hplxt-h-[28px] hplxt-bg-White','data-qa':'testid_delete',hierarchy:'Secondary-Grey',disabled:c===n.length-1,size:'lg',icon:'Only',iconFile:'hx_right hplxt-text-4 hplxt-text-Gray-400 ',onClick:()=>u((t=>t+1)),textField:''}),s]}))]}))]}))},KD=t=>{let{isToggled:e,setToggled:r,primaryText:n,secondaryText:o,type:a,variant:l,classNameParent:i,classNameText:s}=t;return pc.exports.jsxs('div',Object.assign({className:''.concat(i||'','hplxt-flex hplxt-gap-2 hplxt-bg-Gray-200 hplxt-rounded-lg hplxt-w-fit')},{children:[pc.exports.jsxs(jc,Object.assign({variant:l,type:a,className:''.concat(e?'hplxt-bg-White hplxt-border-1 hplxt-border-Gray-300 hplxt-rounded-md':'',' hplxt-px-3 ').concat(s),onClick:()=>{r(!0)}},{children:[' ',n]})),pc.exports.jsxs(jc,Object.assign({variant:l,type:a,className:''.concat(e?'':'hplxt-bg-White hplxt-border-1 hplxt-border-Gray-300 hplxt-rounded-md',' hplxt-px-3 ').concat(s),onClick:()=>{r(!1)}},{children:[' ',o]}))]}))};export{Mp as AddSuggestion,zD as Alert,ep as Avatar,ip as Badge,Rp as BadgeGroup,Ju as Button,Su as ButtonGroups,D_ as CalendarView,cp as Card,_c as Checkbox,Pp as CheckboxGroup,jp as CheckboxGroupItem,pp as CollapsibleCard,bk as DatePicker,vk as DatePickerWithToday,d_ as DoubleInput,sp as DropdownField,Dc as DropdownItem,LD as ImageCarousel,Tc as InputField,Nc as InputFieldSplit,__ as InputTag,k_ as InputTagDropdownItem,ef as MessageToast,VD as MultiDateRangePicker,Rf as NestedDropdown,UD as Notification,Pu as OtpField,FD as PopUpModal,$D as Popover,Mu as ProgressBar,Eu as ProgressCircle,yp as RadioBtn,mk as SingleDatePicker,Dp as Slider,QD as Stepper,Ou as TextAreaField,KD as ToggleButton,wp as ToggleSwitch,Tu as Tooltip,jc as Typography};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ToggleButtonProps } from "../types";
3
+ declare const ToggleButton: ({ isToggled, setToggled, primaryText, secondaryText, type, variant, classNameParent, classNameText }: ToggleButtonProps) => JSX.Element;
4
+ export default ToggleButton;
@@ -347,6 +347,18 @@ export interface ToggleSwitchProps {
347
347
  onClick?: () => void;
348
348
  isToggled: boolean;
349
349
  }
350
+ export interface ToggleButtonProps {
351
+ variant: typographyVariantType;
352
+ type: typographyTextType;
353
+ primaryText: string;
354
+ secondaryText: string;
355
+ classNameParent?: string;
356
+ disabled?: boolean;
357
+ onClick?: () => void;
358
+ isToggled: boolean;
359
+ setToggled: any;
360
+ classNameText?: string;
361
+ }
350
362
  type CheckboxGroupSize = "sm" | "md";
351
363
  type CheckboxGroupType = "Icon Simple" | "Icon Card" | "Avatar" | "Payment icon" | "Radio button" | "Checkbox";
352
364
  export interface CheckboxGroupItemProps {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.2.12",
12
+ "version": "1.2.13",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",