From 2e88ff4949e8d23ac5aa13130031cccb1b408770 Mon Sep 17 00:00:00 2001 From: "serhiy.melnychuk" Date: Fri, 2 Feb 2024 18:45:48 +0200 Subject: [PATCH] UIB-46 [Mention] Extra search text isn't vanished after mention. --- components/bl-mention/src/index.js | 3 +- components/bl-mention/src/lib/core.js | 47 ------------------- components/bl-mention/src/lib/mention.min.js | 1 + .../src/lib/react-transition-group.js | 9 ---- 4 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 components/bl-mention/src/lib/core.js create mode 100644 components/bl-mention/src/lib/mention.min.js delete mode 100644 components/bl-mention/src/lib/react-transition-group.js diff --git a/components/bl-mention/src/index.js b/components/bl-mention/src/index.js index 635bd8ef1..5a5c3b9c6 100644 --- a/components/bl-mention/src/index.js +++ b/components/bl-mention/src/index.js @@ -1,13 +1,12 @@ import { useCallback, useEffect, useRef, useState } from 'react'; -import primereact from './lib/core'; +import { Mention } from './lib/mention.min'; import { filterSuggestions, orderFields, positionMentionPanel, stringToList, updateSuggestionsMap, useTriggers, } from './helpers.js'; import { SuggestionCard } from './suggestion-card.js'; -const { Mention } = primereact.mention; const { cn } = BackendlessUI.CSSUtils; const BLACKLISTED_FIELDS = new Set(['created', '___class', 'ownerId', 'updated', 'objectId']); diff --git a/components/bl-mention/src/lib/core.js b/components/bl-mention/src/lib/core.js deleted file mode 100644 index 0c5084f57..000000000 --- a/components/bl-mention/src/lib/core.js +++ /dev/null @@ -1,47 +0,0 @@ -const primereact = {}; - -primereact.utils=function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=n(t);function i(e){if(Array.isArray(e))return e}function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){a=!0,i=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw i}}return o}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){a=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw o}}}}function v(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3])||arguments[3];t&&n&&("self"===r?this.relativePosition(t,n):(i&&(t.style.minWidth=e.getOuterWidth(n)+"px"),this.absolutePosition(t,n)))}},{key:"absolutePosition",value:function(e,t){if(e){var n,r,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=i.height,l=i.width,a=t.offsetHeight,u=t.offsetWidth,s=t.getBoundingClientRect(),c=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),d=this.getViewport();s.top+a+o>d.height?((n=s.top+c-o)<0&&(n=c),e.style.transformOrigin="bottom"):(n=a+s.top+c,e.style.transformOrigin="top"),r=s.left+u+l>d.width?Math.max(0,s.left+f+u-l):s.left+f,e.style.top=n+"px",e.style.left=r+"px"}}},{key:"relativePosition",value:function(e,t){if(e){var n,r,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=t.offsetHeight,l=t.getBoundingClientRect(),a=this.getViewport();l.top+o+i.height>a.height?(l.top+(n=-1*i.height)<0&&(n=-1*l.top),e.style.transformOrigin="bottom"):(n=o,e.style.transformOrigin="top"),r=i.width>a.width?-1*l.left:l.left+i.width>a.width?-1*(l.left+i.width-a.width):0,e.style.top=n+"px",e.style.left=r+"px"}}},{key:"flipfitCollision",value:function(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left top",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left bottom",l=arguments.length>4?arguments[4]:void 0;if(t&&n){var a=n.getBoundingClientRect(),u=this.getViewport(),s=i.split(" "),c=o.split(" "),f=function(e,t){return t?+e.substring(e.search(/(\+|-)/g))||0:e.substring(0,e.search(/(\+|-)/g))||e},d={my:{x:f(s[0]),y:f(s[1]||s[0]),offsetX:f(s[0],!0),offsetY:f(s[1]||s[0],!0)},at:{x:f(c[0]),y:f(c[1]||c[0]),offsetX:f(c[0],!0),offsetY:f(c[1]||c[0],!0)}},g={left:function(){return d.my.offsetX+d.at.offsetX+a.left+("left"===d.my.x?0:-1*("center"===d.my.x?r.getOuterWidth(t)/2:r.getOuterWidth(t)))},top:function(){return d.my.offsetY+d.at.offsetY+a.top+("top"===d.my.y?0:-1*("center"===d.my.y?r.getOuterHeight(t)/2:r.getOuterHeight(t)))}},y={count:{x:0,y:0},left:function(){var n=g.left(),r=e.getWindowScrollLeft();t.style.left=n+r+"px",2===this.count.x?(t.style.left=r+"px",this.count.x=0):n<0&&(this.count.x++,d.my.x="left",d.at.x="right",d.my.offsetX*=-1,d.at.offsetX*=-1,this.right())},right:function(){var r=g.left()+e.getOuterWidth(n),i=e.getWindowScrollLeft();t.style.left=r+i+"px",2===this.count.x?(t.style.left=u.width-e.getOuterWidth(t)+i+"px",this.count.x=0):r+e.getOuterWidth(t)>u.width&&(this.count.x++,d.my.x="right",d.at.x="left",d.my.offsetX*=-1,d.at.offsetX*=-1,this.left())},top:function(){var n=g.top(),r=e.getWindowScrollTop();t.style.top=n+r+"px",2===this.count.y?(t.style.left=r+"px",this.count.y=0):n<0&&(this.count.y++,d.my.y="top",d.at.y="bottom",d.my.offsetY*=-1,d.at.offsetY*=-1,this.bottom())},bottom:function(){var r=g.top()+e.getOuterHeight(n),i=e.getWindowScrollTop();t.style.top=r+i+"px",2===this.count.y?(t.style.left=u.height-e.getOuterHeight(t)+i+"px",this.count.y=0):r+e.getOuterHeight(n)>u.height&&(this.count.y++,d.my.y="bottom",d.at.y="top",d.my.offsetY*=-1,d.at.offsetY*=-1,this.top())},center:function(r){if("y"===r){var i=g.top()+e.getOuterHeight(n)/2;t.style.top=i+e.getWindowScrollTop()+"px",i<0?this.bottom():i+e.getOuterHeight(n)>u.height&&this.top()}else{var o=g.left()+e.getOuterWidth(n)/2;t.style.left=o+e.getWindowScrollLeft()+"px",o<0?this.left():o+e.getOuterWidth(t)>u.width&&this.right()}}};y[d.at.x]("x"),y[d.at.y]("y"),this.isFunction(l)&&l(d)}}},{key:"findCollisionPosition",value:function(e){if(e){var t="left"===e?"right":"left";return"top"===e||"bottom"===e?{axis:"y",my:"center ".concat("top"===e?"bottom":"top"),at:"center ".concat(e)}:{axis:"x",my:"".concat(t," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var t=[];if(e){var n,r=this.getParents(e),i=/(auto|scroll)/,o=function(e){var t=e?getComputedStyle(e):null;return t&&(i.test(t.getPropertyValue("overflow"))||i.test(t.getPropertyValue("overflowX"))||i.test(t.getPropertyValue("overflowY")))},l=p(r);try{for(l.s();!(n=l.n()).done;){var a=n.value,u=1===a.nodeType&&a.dataset.scrollselectors;if(u){var s,c=p(u.split(","));try{for(c.s();!(s=c.n()).done;){var f=this.findSingle(a,s.value);f&&o(f)&&t.push(f)}}catch(e){c.e(e)}finally{c.f()}}9!==a.nodeType&&o(a)&&t.push(a)}}catch(e){l.e(e)}finally{l.f()}}return t}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementDimensions",value:function(e){var t={};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}},{key:"fadeIn",value:function(e,t){if(e){e.style.opacity=0;var n=+new Date,r=0;!function i(){r=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))}()}}},{key:"fadeOut",value:function(e,t){if(e)var n=1,r=50/t,i=setInterval((function(){(n-=r)<=0&&(n=0,clearInterval(i)),e.style.opacity=n}),50)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}}},{key:"removeChild",value:function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}}},{key:"isElement",value:function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":c(HTMLElement))?e instanceof HTMLElement:e&&"object"===c(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}},{key:"scrollInView",value:function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),o=i?parseFloat(i):0,l=e.getBoundingClientRect(),a=t.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-r-o,u=e.scrollTop,s=e.clientHeight,c=this.getOuterHeight(t);a<0?e.scrollTop=u+a:a+c>s&&(e.scrollTop=u+a-s+c)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var r=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}},{key:"isVisible",value:function(e){return e&&(0!==e.clientHeight||0!==e.getClientRects().length||"none"!==getComputedStyle(e).display)}},{key:"isExist",value:function(e){return null!=e&&e.nodeName&&e.parentNode}},{key:"hasDOM",value:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},{key:"getFocusableElements",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)),o=[],l=p(i);try{for(l.s();!(n=l.n()).done;){var a=n.value;"none"!==getComputedStyle(a).display&&"hidden"!==getComputedStyle(a).visibility&&o.push(a)}}catch(e){l.e(e)}finally{l.f()}return o}},{key:"getFirstFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[0]:null}},{key:"getLastFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[r.length-1]:null}},{key:"focus",value:function(e,t){e&&document.activeElement!==e&&e.focus({preventScroll:void 0===t||!t})}},{key:"getCursorOffset",value:function(e,t,n,r){if(e){var i=getComputedStyle(e),o=document.createElement("div");o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.visibility="hidden",o.style.pointerEvents="none",o.style.overflow=i.overflow,o.style.width=i.width,o.style.height=i.height,o.style.padding=i.padding,o.style.border=i.border,o.style.overflowWrap=i.overflowWrap,o.style.whiteSpace=i.whiteSpace,o.style.lineHeight=i.lineHeight,o.innerHTML=t.replace(/\r\n|\r|\n/g,"
");var l=document.createElement("span");l.textContent=r,o.appendChild(l);var a=document.createTextNode(n);o.appendChild(a),document.body.appendChild(o);var u=l.offsetLeft,s=l.offsetTop,c=l.clientHeight;return document.body.removeChild(o),{left:Math.abs(u-e.scrollLeft),top:Math.abs(s-e.scrollTop)+c}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"isClickable",value:function(e){var t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"===t||"TEXTAREA"===t||"BUTTON"===t||"A"===t||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(e,t){if("string"==typeof t)e.style.cssText=this.style;else for(var n in this.style)e.style[n]=t[n]}},{key:"exportCSV",value:function(t,n){var r=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(r,n+".csv"):e.saveAs({name:n+".csv",src:URL.createObjectURL(r)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}},{key:"saveAs",value:function(e){if(e){var t=document.createElement("a");if(void 0!==t.download){var n=e.name;return t.setAttribute("href",e.src),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),!0}}return!1}},{key:"createInlineStyle",value:function(e){var t=document.createElement("style");try{e||(e=process.env.REACT_APP_CSS_NONCE)}catch(e){}return e&&t.setAttribute("nonce",e),document.head.appendChild(t),t}},{key:"removeInlineStyle",value:function(e){if(this.isExist(e)){try{document.head.removeChild(e)}catch(e){}e=null}return e}},{key:"getTargetElement",value:function(e){if(!e)return null;if("document"===e)return document;if("window"===e)return window;if("object"===c(e)&&e.hasOwnProperty("current"))return this.isExist(e.current)?e.current:null;var t,n=(t=e)&&t.constructor&&t.call&&t.apply?e():e;return n&&9===n.nodeType||this.isExist(n)?n:null}},{key:"getAttributeNames",value:function(e){var t,n,r;for(n=[],r=e.attributes,t=0;t1&&void 0!==arguments[1]?arguments[1]:function(){};d(this,e),this.element=t,this.listener=n}return y(e,[{key:"bindScrollListener",value:function(){this.scrollableParents=b.getScrollableParents(this.element);for(var e=0;e=e.length)for(r=n-e.length;1+r--;)e.push(void 0);e.splice(n,0,e.splice(t,1)[0])}}},{key:"findIndexInList",value:function(e,t,n){var r=this;return t?t.findIndex(n?function(t){return r.equals(t,e,n)}:function(t){return t===e}):-1}},{key:"getJSXElement",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===c(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"sort",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=e.compare(t,n,i,r),a=1===o?r:o;return a*l}},{key:"compare",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=this.isEmpty(e),o=this.isEmpty(t);return i&&o?0:i?r:o?-r:"string"==typeof e&&"string"==typeof t?e.localeCompare(t,n,{numeric:!0}):et?1:0}}]),e}();function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null;if(null!==e){var o=c(e),l=f(t.className,"string"===o&&e);if(i=r.createElement("span",j({},t,{className:l})),"string"!==o){var a=T({iconProps:t,element:i},n);return A.getJSXElement(e,a)}}return i}}]),e}(),F=0;var W,R,H,D,N=(W=[],R=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=D(e,t,n),i=r.value+(r.key===e?0:n)+1;return W.push({key:e,value:i}),i},H=function(e,t){return D(e,t).value},D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return S(W).reverse().find((function(n){return!!t||n.key===e}))||{key:e,value:n}},{get:function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n,r){t&&(t.style.zIndex=String(R(e,n,r)))},clear:function(e){var t;e&&(t=N.get(e),W=W.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(e,t){return H(e,t)}});return e.ConnectedOverlayScrollHandler=w,e.DomHandler=b,e.EventBus=function(){var e=new Map;return{on:function(t,n){var r=e.get(t);r?r.push(n):r=[n],e.set(t,r)},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){var r=e.get(t);r&&r.slice().forEach((function(e){return e(n)}))}}},e.IconUtils=L,e.ObjectUtils=A,e.UniqueComponentId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pr_id_";return F++,"".concat(e).concat(F)},e.ZIndexUtils=N,e.classNames=f,e.mask=function(e,t){var n,r,i,o,l,a,u,s,c,f,d,g;t=E(E({},{mask:null,slotChar:"_",autoClear:!0,unmask:!1,readOnly:!1,onComplete:null,onChange:null,onFocus:null,onBlur:null}),t);var y=function(t,n){var r,i,o;if(e.offsetParent&&e===document.activeElement)return"number"!=typeof t?(e.setSelectionRange?(i=e.selectionStart,o=e.selectionEnd):document.selection&&document.selection.createRange&&(o=(i=0-(r=document.selection.createRange()).duplicate().moveStart("character",-1e5))+r.text.length),{begin:i,end:o}):(i=t,o="number"==typeof n?n:i,void(e.setSelectionRange?e.setSelectionRange(i,o):e.createTextRange&&((r=e.createTextRange()).collapse(!0),r.moveEnd("character",o),r.moveStart("character",i),r.select())))},h=function(){for(var e=o;e<=u;e++)if(n[e]&&d[e]===p(e))return!1;return!0},p=function(e){return t.slotChar.charAt(e=0&&!n[e];);return e},k=function(e,t){var r,l;if(!(e<0)){for(r=e,l=m(t);rl.length){for(T(!0);a.begin>0&&!n[a.begin-1];)a.begin--;if(0===a.begin)for(;a.beginc.length){j(a+1,i);break}}else d[a]===c.charAt(s)&&s++,a=i.length?{done:!0}:{done:!1,value:i[p++]}},e:function(i){throw i},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){t=t.call(i)},n:function(){var i=t.next();return a=i.done,i},e:function(i){l=!0,o=i},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw o}}}}function n(i,e){if(i){if("string"==typeof i)return o(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);return"Object"===t&&i.constructor&&(t=i.constructor.name),"Map"===t||"Set"===t?Array.from(i):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(i,e):void 0}}function o(i,e){(null==e||e>i.length)&&(e=i.length);for(var t=0,p=new Array(e);te.getTime():i>e)},gte:function(i,e){return null==e||null!=i&&(i.getTime&&e.getTime?i.getTime()>=e.getTime():i>=e)},dateIs:function(i,e){return null==e||null!=i&&i.toDateString()===e.toDateString()},dateIsNot:function(i,e){return null==e||null!=i&&i.toDateString()!==e.toDateString()},dateBefore:function(i,e){return null==e||null!=i&&i.getTime()e.getTime()}},register:function(i,e){this.filters[i]=e}};function l(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function c(i,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};r.ObjectUtils.isNotEmpty(e.target)&&(y(),(e.when||s)&&(v.current=r.DomHandler.getTargetElement(e.target))),!d.current&&v.current&&(d.current=function(e){return l&&l(e)},v.current.addEventListener(i,d.current,a))},y=function(){d.current&&(v.current.removeEventListener(i,d.current,a),d.current=null)};return u.useEffect((function(){s?v.current=r.DomHandler.getTargetElement(n):(y(),v.current=null)}),[n,s]),u.useEffect((function(){!d.current||d.current===l&&g===a||(y(),s&&m())}),[l,a]),o((function(){y()})),[m,y]};function l(e){if(Array.isArray(e))return e}function a(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,c=[],o=!0,i=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);o=!0);}catch(e){i=!0,u=e}finally{try{o||null==r.return||r.return()}finally{if(i)throw u}}return c}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{};if(r.ObjectUtils.isNotEmpty(e.target)&&(m(),(e.when||a)&&(f.current=r.DomHandler.getTargetElement(e.target))),!s.current&&f.current){var t=v.current=r.DomHandler.getScrollableParents(f.current);s.current=function(e){return n&&n(e)},t.forEach((function(e){return e.addEventListener("scroll",s.current,i)}))}},m=function(){s.current&&(v.current.forEach((function(e){return e.removeEventListener("scroll",s.current,i)})),s.current=null)};return u.useEffect((function(){a?f.current=r.DomHandler.getTargetElement(t):(m(),f.current=null)}),[t,a]),u.useEffect((function(){!s.current||s.current===n&&d===i||(m(),a&&g())}),[n,i]),o((function(){m()})),[g,m]},m=function(e){return i({target:"window",type:"resize",listener:e.listener})},y=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"local",n="undefined"!=typeof window,c=i({target:"window",type:"storage",listener:function(e){var n="local"===r?window.localStorage:window.sessionStorage;e.storageArea===n&&e.key===t&&g(e.newValue||void 0)}}),o=d(c,2),l=o[0],a=o[1],f=u.useState((function(){if(!n)return e;try{var u="local"===r?window.localStorage.getItem(t):window.sessionStorage.getItem(t);return u?JSON.parse(u):e}catch(t){return e}})),s=d(f,2),v=s[0],g=s[1],m=function(e){try{var u=e instanceof Function?e(v):e;if(g(u),n){var c=JSON.stringify(u);"local"===r?window.localStorage.setItem(t,c):window.sessionStorage.setItem(t,c)}}catch(e){throw new Error("PrimeReact useStorage: Failed to serialize the value at key: ".concat(t))}};return u.useEffect((function(){return l(),function(){return a()}}),[]),[v,m]};return e.useEventListener=i,e.useInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=u.useRef(null),c=u.useRef(null),i=u.useCallback((function(){return clearInterval(n.current)}),[n.current]);return u.useEffect((function(){c.current=e})),u.useEffect((function(){if(r)return n.current=setInterval((function(){c.current()}),t),i;i()}),[t,r]),o((function(){i()})),[i]},e.useLocalStorage=function(e,t){return y(e,t,"local")},e.useMountEffect=function(e){return u.useEffect(e,[])},e.useOverlayListener=function(e){var t=e.target,n=e.overlay,c=e.listener,l=e.when,a=void 0===l||l,f=u.useRef(null),s=u.useRef(null),v=d(i({type:"click",listener:function(e){c&&c(e,{type:"outside",valid:3!==e.which&&O(e)})}}),2),y=v[0],E=v[1],h=d(m({listener:function(e){c&&c(e,{type:"resize",valid:!r.DomHandler.isTouchDevice()})}}),2),w=h[0],p=h[1],S=d(g({target:f,listener:function(e){c&&c(e,{type:"scroll",valid:!0})}}),2),b=S[0],R=S[1],O=function(e){return f.current&&!(f.current.isSameNode(e.target)||f.current.contains(e.target)||s.current&&s.current.contains(e.target))},j=function(){E(),p(),R()};return u.useEffect((function(){a?(f.current=r.DomHandler.getTargetElement(t),s.current=r.DomHandler.getTargetElement(n)):(j(),f.current=s.current=null)}),[t,n,a]),u.useEffect((function(){j()}),[a]),o((function(){j()})),[function(){y(),w(),b()},j]},e.useOverlayScrollListener=g,e.usePrevious=c,e.useResizeListener=m,e.useSessionStorage=function(e,t){return y(e,t,"session")},e.useStorage=y,e.useTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=u.useRef(null),c=u.useRef(null),i=u.useCallback((function(){return clearTimeout(n.current)}),[n.current]);return u.useEffect((function(){c.current=e})),u.useEffect((function(){if(r)return n.current=setTimeout((function(){c.current()}),t),i;i()}),[t,r]),o((function(){i()})),[i]},e.useUnmountEffect=o,e.useUpdateEffect=function(e,t){var r=u.useRef(!1);return u.useEffect((function(){if(r.current)return e&&e();r.current=!0}),t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils); - -primereact.ripple=function(e,t,r,n,u){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=o(t),a=c(r),l=i.memo(i.forwardRef((function(){var e=i.useRef(null),t=i.useRef(null),r=function(){return e.current&&e.current.parentElement},c=function(){t.current&&t.current.addEventListener("mousedown",o)},o=function(r){if(e.current&&"none"!==getComputedStyle(e.current,null).display){if(u.DomHandler.removeClass(e.current,"p-ink-active"),!u.DomHandler.getHeight(e.current)&&!u.DomHandler.getWidth(e.current)){var n=Math.max(u.DomHandler.getOuterWidth(t.current),u.DomHandler.getOuterHeight(t.current));e.current.style.height=n+"px",e.current.style.width=n+"px"}var c=u.DomHandler.getOffset(t.current),o=r.pageX-c.left+document.body.scrollTop-u.DomHandler.getWidth(e.current)/2,i=r.pageY-c.top+document.body.scrollLeft-u.DomHandler.getHeight(e.current)/2;e.current.style.top=i+"px",e.current.style.left=o+"px",u.DomHandler.addClass(e.current,"p-ink-active")}};return n.useMountEffect((function(){e.current&&(t.current=r(),c())})),n.useUpdateEffect((function(){e.current&&!t.current&&(t.current=r(),c())})),n.useUnmountEffect((function(){e.current&&(t.current=null,t.current&&t.current.removeEventListener("mousedown",o))})),a.default.ripple?i.createElement("span",{role:"presentation",ref:e,className:"p-ink",onAnimationEnd:function(e){u.DomHandler.removeClass(e.currentTarget,"p-ink-active")}}):null})));return l.displayName="Ripple",l.defaultProps={__TYPE:"Ripple"},e.Ripple=l,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.utils); - -primereact.csstransition=function(n,t,e,o,i,r){"use strict";function c(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}function s(n){if(n&&n.__esModule)return n;var t=Object.create(null);return n&&Object.keys(n).forEach((function(e){if("default"!==e){var o=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:function(){return n[e]}})}})),t.default=n,Object.freeze(t)}var u=s(t),a=c(o);function p(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function f(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function E(n){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.length)&&(e=t.length);for(var r=0,n=new Array(e);re.length)&&(t=e.length);for(var r=0,n=new Array(t);rc.width?(x.current.style.left="0px",x.current.style.right=window.innerWidth-c.width-o+"px"):(x.current.style.right="",x.current.style.left=o+"px"),x.current.style.top=a+"px",u.DomHandler.addClass(x.current,"p-tooltip-active")}else{var d=u.DomHandler.findCollisionPosition(i),p=M(t,"my")||e.my||d.my,h=M(t,"at")||e.at||d.at;x.current.style.padding="0px",u.DomHandler.flipfitCollision(x.current,t,p,h,(function(t){var r=t.at,n=r.x,o=e.at?"center"!==n&&n!==t.my.x?n:r.y:t.at["".concat(d.axis)];x.current.style.padding="",y(o),q(o),u.DomHandler.addClass(x.current,"p-tooltip-active")}))}},q=function(e){if(x.current){var t=getComputedStyle(x.current);"left"===e?x.current.style.left=parseFloat(t.left)-2*parseFloat(t.paddingLeft)+"px":"top"===e&&(x.current.style.top=parseFloat(t.top)-2*parseFloat(t.paddingTop)+"px")}},G=function(){W()||(j.current=!1)},J=function(e){W()||(j.current=!0,X(e))},Q=function(e){if(e){var t=B(e),r=t.showEvents,n=t.hideEvents,o=ne(e);r.forEach((function(e){return o.addEventListener(e,K)})),n.forEach((function(e){return o.addEventListener(e,X)}))}},V=function(e){if(e){var t=B(e),r=t.showEvents,n=t.hideEvents,o=ne(e);r.forEach((function(e){return o.removeEventListener(e,K)})),n.forEach((function(e){return o.removeEventListener(e,X)}))}},ee=function(t,r){re();var n=M(O.current,t.toLowerCase())||e[t];n?S.current["".concat(t)]=setTimeout((function(){return r()}),n):r()},te=function(e){if(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:"auto",n=Y(),o=n.numToleratedItems,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return e<=t?0:e},i=function(e,t){return e*t},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return X({left:e,top:t,behavior:r})};if(c){var f={rows:l(t[0],o[0]),cols:l(t[1],o[1])};f.rows===u.rows&&f.cols===u.cols||a(i(f.cols,e.itemSize[1]),i(f.rows,e.itemSize[0]))}else{var m=l(t,o);m!==u&&(s?a(i(m,e.itemSize),0):a(0,i(m,e.itemSize)))}},B=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(r){var o=K(),l=o.first,i=o.viewport,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return X({left:e,top:t,behavior:n})},u="to-start"===r,f="to-end"===r;if(u){if(c)i.first.rows-l.rows>t[0]?a(i.first.cols*e.itemSize[1],(i.first.rows-1)*e.itemSize[0]):i.first.cols-l.cols>t[1]&&a((i.first.cols-1)*e.itemSize[1],i.first.rows*e.itemSize[0]);else if(i.first-l>t){var m=(i.first-1)*e.itemSize;s?a(m,0):a(0,m)}}else if(f)if(c)i.last.rows-l.rows<=t[0]+1?a(i.first.cols*e.itemSize[1],(i.first.rows+1)*e.itemSize[0]):i.last.cols-l.cols<=t[1]+1&&a((i.first.cols+1)*e.itemSize[1],i.first.rows*e.itemSize[0]);else if(i.last-l<=t+1){var d=(i.first+1)*e.itemSize;s?a(d,0):a(0,d)}}else F(t,n)},K=function(){var t=function(e,t){return Math.floor(e/(t||e))},r=u,n=0;if(L.current){var o=L.current,l=o.scrollTop,i=o.scrollLeft;if(c)n={rows:(r={rows:t(l,e.itemSize[0]),cols:t(i,e.itemSize[1])}).rows+y.rows,cols:r.cols+y.cols};else n=(r=t(s?i:l,e.itemSize))+y}return{first:u,last:p,viewport:{first:r,last:n}}},Y=function(){var t=G(),r=L.current?L.current.offsetWidth-t.left:0,n=L.current?L.current.offsetHeight-t.top:0,o=function(e,t){return Math.ceil(e/(t||e))},l=function(e){return Math.ceil(e/2)},i=c?{rows:o(n,e.itemSize[0]),cols:o(r,e.itemSize[1])}:o(s?r:n,e.itemSize);return{numItemsInViewport:i,numToleratedItems:z||(c?[l(i.rows),l(i.cols)]:l(i))}},$=function(t){e.autoSize&&!t&&Promise.resolve().then((function(){if(P.current){P.current.style.minHeight=P.current.style.minWidth="auto";var e=P.current,t=e.offsetWidth,r=e.offsetHeight;(c||s)&&(L.current.style.width=(t0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;return e.items?Math.min(r?(e.columns||e.items[0]).length:e.items.length,t):0},G=function(){if(P.current){var e=getComputedStyle(P.current),t=parseInt(e.paddingLeft,10)+Math.max(parseInt(e.left,10),0),r=parseInt(e.paddingRight,10)+Math.max(parseInt(e.right,10),0),n=parseInt(e.paddingTop,10)+Math.max(parseInt(e.top,10),0),o=parseInt(e.paddingBottom,10)+Math.max(parseInt(e.bottom,10),0);return{left:t,right:r,top:n,bottom:o,x:t+r,y:n+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},Q=function(){if(L.current){var t=L.current.parentElement,r=e.scrollWidth||"".concat(L.current.offsetWidth||t.offsetWidth,"px"),n=e.scrollHeight||"".concat(L.current.offsetHeight||t.offsetHeight,"px"),o=function(e,t){return L.current.style[e]=t};c||s?(o("height",n),o("width",r)):o("height",n)}},Z=function(){var t=e.items;if(D.current&&t){var r=G(),n=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return D.current.style[e]=(t||[]).length*r+n+"px"};c?(n("height",t,e.itemSize[0],r.y),n("width",e.columns||t[1],e.itemSize[1],r.x)):s?n("width",e.columns||t,e.itemSize,r.x):n("height",t,e.itemSize,r.y)}},ee=function(t){if(P.current){var r=t?t.first:u,n=function(e,t){return e*t},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;H.current&&(H.current.style.top="-".concat(t,"px")),P.current.style.transform="translate3d(".concat(e,"px, ").concat(t,"px, 0)")};if(c)o(n(r.cols,e.itemSize[1]),n(r.rows,e.itemSize[0]));else{var l=n(r,e.itemSize);s?o(l,0):o(0,l)}}},te=function(t){var r=t.target,n=G(),o=function(e,t){return e?e>t?e-t:e:0},l=function(e,t){return Math.floor(e/(t||e))},i=function(e,t,r,n,o,l){return e<=o?o:l?r-n-o:t+o-1},a=function(e,t,r,n,o,l,i){return e<=l?0:Math.max(0,i?et?r:e-2*l)},f=function(e,t,r,n,o,l){var i=t+n+2*o;return e>=o&&(i+=o+1),q(i,l)},m=o(r.scrollTop,n.top),d=o(r.scrollLeft,n.left),g=c?{rows:0,cols:0}:0,h=p,v=!1,w=U.current;if(c){var S=U.current.top<=m,b=U.current.left<=d,O={rows:l(m,e.itemSize[0]),cols:l(d,e.itemSize[1])},T={rows:i(O.rows,u.rows,p.rows,y.rows,z[0],S),cols:i(O.cols,u.cols,p.cols,y.cols,z[1],b)};g={rows:a(O.rows,T.rows,u.rows,0,0,z[0],S),cols:a(O.cols,T.cols,u.cols,0,0,z[1],b)},h={rows:f(O.rows,g.rows,0,y.rows,z[0]),cols:f(O.cols,g.cols,0,y.cols,z[1],!0)},v=g.rows!==u.rows||h.rows!==p.rows||g.cols!==u.cols||h.cols!==p.cols,w={top:m,left:d}}else{var I=s?d:m,j=U.current<=I,E=l(I,e.itemSize);h=f(E,g=a(E,i(E,u,p,y,z,j),u,0,0,z,j),0,y,z),v=g!==u||h!==p,w=I}return{first:g,last:h,isRangeChanged:v,scrollPos:w}},re=function(t){var r=te(t),n=r.first,o=r.last,l=r.scrollPos;if(r.isRangeChanged){var i={first:n,last:o};ee(i),f(n),v(o),U.current=l,e.onScrollIndexChange&&e.onScrollIndexChange(i),e.lazy&&e.onLazyLoad&&e.onLazyLoad(i)}},ne=function(){N.current&&clearTimeout(N.current),N.current=setTimeout((function(){if(L.current){var t=[n.DomHandler.getWidth(L.current),n.DomHandler.getHeight(L.current)],r=t[0],l=t[1],i=r!==W.current,a=l!==A.current;(c?i||a:s?i:!!o&&a)&&(O(e.numToleratedItems),W.current=r,A.current=l)}}),e.resizeDelay)},oe=function(t){var r=(e.items||[]).length,n=c?u.rows+t:u+t;return{index:n,count:r,first:0===n,last:n===r-1,even:n%2==0,odd:n%2!=0,props:e}},le=function(t,r){var n=x.length;return g({index:t,count:n,first:0===t,last:t===n-1,even:t%2==0,odd:t%2!=0,props:e},r)},ie=function(){var t=e.items;return t&&!I?c?t.slice(u.rows,p.rows).map((function(t){return e.columns?t:t.slice(u.cols,p.cols)})):s&&e.columns?t:t.slice(u,p):[]},se=function(){var t,r,n,o,l;e.disabled||(Q(),t=Y(),r=t.numItemsInViewport,n=t.numToleratedItems,o=function(e,t,r,n){return q(e+t+(e1&&void 0!==arguments[1]?arguments[1]:{},o=le(t,r),i=n.ObjectUtils.getJSXElement(e.loadingTemplate,o);return l.createElement(l.Fragment,{key:t},i)},ae=function(t,r){var o=oe(r),i=n.ObjectUtils.getJSXElement(e.itemTemplate,t,o);return l.createElement(l.Fragment,{key:o.index},i)};if(e.disabled){var ue=n.ObjectUtils.getJSXElement(e.contentTemplate,{items:e.items,rows:e.items,columns:e.columns});return l.createElement(l.Fragment,null,e.children,ue)}var fe=n.ObjectUtils.findDiffKeys(e,h.defaultProps),me=n.classNames("p-virtualscroller",{"p-both-scroll":c,"p-horizontal-scroll":s},e.className),de=function(){if(!e.loaderDisabled&&e.showLoader&&I){var t=n.classNames("p-virtualscroller-loader",{"p-component-overlay":!e.loadingTemplate}),r=l.createElement("i",{className:"p-virtualscroller-loading-icon pi pi-spinner pi-spin"});return e.loadingTemplate?r=x.map((function(e,t){return ce(t,c&&{numCols:y.cols})})):e.loaderIconTemplate&&(r=n.ObjectUtils.getJSXElement(e.loaderIconTemplate,{className:"p-virtualscroller-loading-icon",element:r,props:e})),l.createElement("div",{className:t},r)}return null}(),pe=function(){var t=ie().map(ae),r=n.classNames("p-virtualscroller-content",{"p-virtualscroller-loading":I}),i=l.createElement("div",{ref:P,className:r},t);if(e.contentTemplate){var a={className:r,contentRef:function(e){return P.current=n.ObjectUtils.getRefElement(e)},spacerRef:function(e){return D.current=n.ObjectUtils.getRefElement(e)},stickyRef:function(e){return H.current=n.ObjectUtils.getRefElement(e)},items:ie(),getItemOptions:function(e){return oe(e)},children:t,element:i,props:e,loading:I,getLoaderOptions:function(e,t){return le(e,t)},loadingTemplate:e.loadingTemplate,itemSize:e.itemSize,rows:I?e.loaderDisabled?x:[]:ie(),columns:e.columns&&c||s?I&&e.loaderDisabled?c?x[0]:x:e.columns.slice(c?u.cols:u,c?p.cols:p):e.columns,vertical:o,horizontal:s,both:c};return n.ObjectUtils.getJSXElement(e.contentTemplate,a)}return i}(),ge=e.showSpacer?l.createElement("div",{ref:D,className:"p-virtualscroller-spacer"}):null;return l.createElement("div",i({ref:L,className:me,tabIndex:0,style:e.style},fe,{onScroll:function(t){e.onScroll&&e.onScroll(t),e.delay?(M.current&&clearTimeout(M.current),!I&&e.showLoader&&te(t).isRangeChanged&&j(!0),M.current=setTimeout((function(){re(t),!I||!e.showLoader||e.lazy&&void 0!==e.loading||j(!1)}),e.delay)):re(t)}}),pe,ge,de)})));return h.displayName="VirtualScroller",h.defaultProps={__TYPE:"VirtualScroller",id:null,style:null,className:null,items:null,itemSize:0,scrollHeight:null,scrollWidth:null,orientation:"vertical",numToleratedItems:null,delay:0,resizeDelay:10,lazy:!1,disabled:!1,loaderDisabled:!1,columns:null,loading:void 0,autoSize:!1,showSpacer:!0,showLoader:!1,loadingTemplate:null,loaderIconTemplate:null,itemTemplate:null,contentTemplate:null,onScroll:null,onScrollIndexChange:null,onLazyLoad:null},e.VirtualScroller=h,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.utils); - -primereact.terminalservice=function(e,r){"use strict";var t=primereact.utils.EventBus();return e.TerminalService=t,Object.defineProperty(e,"__esModule",{value:!0}),e}({}); - -primereact.overlayservice=function(e,r){"use strict";var t=primereact.utils.EventBus();return e.OverlayService=t,Object.defineProperty(e,"__esModule",{value:!0}),e}({}); - -primereact.checkbox=function(e,t,n,r,o){"use strict";function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=c(t);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&t>c){var f=we()&&(e.minFractionDigits||0)0?l:""):l=u.slice(0,t-1)+u.slice(t)}Pe(n,l,null,"delete-single")}else l=Fe(u,t,r),Pe(n,l,null,"delete-range");break;case 46:if(n.preventDefault(),t===r){var p=u.charAt(t),d=Oe(u),m=d.decimalCharIndex,g=d.decimalCharIndexWithoutPrefix;if(je(p)){var v=_e(u);if(A.current.test(p))A.current.lastIndex=0,l=u.slice(0,t)+u.slice(t+2);else if(M.current.test(p))M.current.lastIndex=0,v?$refs.input.$el.setSelectionRange(t+1,t+1):l=u.slice(0,t)+u.slice(t+1);else if(m>0&&t>m){var b=we()&&(e.minFractionDigits||0)0?l:""):l=u.slice(0,t)+u.slice(t+1)}Pe(n,l,null,"delete-back-single")}else l=Fe(u,t,r),Pe(n,l,null,"delete-range")}e.onKeyDown&&e.onKeyDown(n)}},ye=function(n){if(!e.disabled&&!e.readOnly){var t=n.which||n.keyCode;13!==t&&n.preventDefault();var r=String.fromCharCode(t),u=De(r),l=Ie(r);(48<=t&&t<=57||l||u)&&Se(n,r,{isDecimalSign:u,isMinusSign:l})}},he=function(n){if(n.preventDefault(),!e.disabled&&!e.readOnly){var t=(n.clipboardData||window.clipboardData).getData("Text");if(t){var r=Z(t);null!=r&&Se(n,r.toString())}}},xe=function(){return null===e.min||e.min<0},Ie=function(e){return!(!P.current.test(e)&&"-"!==e)&&(P.current.lastIndex=0,!0)},De=function(e){return!!M.current.test(e)&&(M.current.lastIndex=0,!0)},we=function(){return"decimal"===e.mode},Oe=function(e){var n=e.search(M.current);M.current.lastIndex=0;var t=e.replace(K.current,"").trim().replace(/\s/g,"").replace(k.current,"").search(M.current);return M.current.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:t}},Re=function(e){var n=e.search(M.current);M.current.lastIndex=0;var t=e.search(P.current);P.current.lastIndex=0;var r=e.search(B.current);B.current.lastIndex=0;var u=e.search(k.current);return k.current.lastIndex=0,{decimalCharIndex:n,minusCharIndex:t,suffixCharIndex:r,currencyCharIndex:u}},Se=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},u=t.search(P.current);if(P.current.lastIndex=0,xe()||-1===u){var l,a=w.current.selectionStart,i=w.current.selectionEnd,c=w.current.value.trim(),o=Re(c),s=o.decimalCharIndex,f=o.minusCharIndex,p=o.suffixCharIndex,d=o.currencyCharIndex;if(r.isMinusSign)0===a&&(l=c,-1!==f&&0===i||(l=Ee(c,t,0,i)),Pe(n,l,t,"insert"));else if(r.isDecimalSign)s>0&&a===s?Pe(n,c,t,"insert"):(s>a&&s0&&a>s){if(a+t.length-(s+1)<=m){var v=d>=a?d-1:p>=a?p:c.length;l=c.slice(0,a)+t+c.slice(a+t.length,v)+c.slice(v),Pe(n,l,t,g)}}else l=Ee(c,t,a,i),Pe(n,l,t,g)}}},Ee=function(e,n,t,r){if(2===("."===n?n:n.split(".")).length){var u=e.slice(t,r).search(M.current);return M.current.lastIndex=0,u>0?e.slice(0,t)+X(n)+e.slice(r):e||X(n)}return r-t===e.length?X(n):0===t?n+e.slice(r):r===e.length?e.slice(0,t)+n:e.slice(0,t)+n+e.slice(r)},Fe=function(e,n,t){return t-n===e.length?"":0===n?e.slice(t):t===e.length?e.slice(0,n):e.slice(0,n)+e.slice(t)},Ne=function(){var e=w.current.selectionStart,n=w.current.value,t=n.length,r=null,u=(F.current||"").length,l=(n=n.replace(K.current,"")).charAt(e-=u);if(je(l))return e+u;for(var a=e-1;a>=0;){if(l=n.charAt(a),je(l)){r=a+u;break}a--}if(null!==r)w.current.setSelectionRange(r+1,r+1);else{for(a=e;ae.max?e.max:n},Te=function(e,n,t,r){n=n||"";var u=w.current,l=u.value,a=X(e),i=l.length;if(a!==r&&(a=Ge(a,r)),0===i){u.value=a,u.setSelectionRange(0,0);var c=Ne()+n.length;u.setSelectionRange(c,c)}else{var o=u.selectionStart,s=u.selectionEnd;u.value=a;var f=a.length;if("range-insert"===t){var p=Z((l||"").slice(0,o)),d=(null!==p?p.toString():"").split("").join("(".concat(E.current,")?")),m=new RegExp(d,"g");m.test(a);var g=n.split("").join("(".concat(E.current,")?")),v=new RegExp(g,"g");v.test(a.slice(m.lastIndex)),u.setSelectionRange(s=m.lastIndex+v.lastIndex,s)}else if(f===i)"insert"===t||"delete-back-single"===t?u.setSelectionRange(s+1,s+1):"delete-single"===t?u.setSelectionRange(s-1,s-1):"delete-range"!==t&&"spin"!==t||u.setSelectionRange(s,s);else if("delete-back-single"===t){var b=l.charAt(s-1),y=l.charAt(s),h=i-f,x=A.current.test(y);x&&1===h?s+=1:!x&&je(b)&&(s+=-1*h+1),A.current.lastIndex=0,u.setSelectionRange(s,s)}else if("-"===l&&"insert"===t){u.setSelectionRange(0,0);var I=Ne()+n.length+1;u.setSelectionRange(I,I)}else u.setSelectionRange(s+=f-i,s)}u.setAttribute("aria-valuenow",e)},Ue=function(e){e=ke(e);var n=w.current,t=n.value,r=Le(e);t!==r&&(n.value=r,n.setAttribute("aria-valuenow",e))},Le=function(e){return X(ke(e))},Ge=function(e,n){if(e&&n){var t=n.search(M.current);return M.current.lastIndex=0,-1!==t?e.split(M.current)[0]+n.slice(t):e}return e},_e=function(e){if(e){var n=e.split(M.current);if(2===n.length)return n[1].replace(B.current,"").trim().replace(/\s/g,"").replace(k.current,"").length}return 0},ze=function(n,t){e.onValueChange&&e.onValueChange({originalEvent:n,value:t,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:t}})},He=function(n){g(!0),e.onFocus&&e.onFocus(n)},$e=function(n){if(g(!1),w.current){var t=w.current.value;if(Be(t,e.value)){var r=Ke(Z(t));Ue(r),ze(n,r)}}e.onBlur&&e.onBlur(n)},Ve=function(){O.current&&clearInterval(O.current)},qe=function(){var n=Ke(e.value);Ue(n),null!==e.value&&e.value!==n&&ze(null,n)},We=function(){return S.current};c.useImperativeHandle(n,(function(){return{props:e,getFormatter:We,getElement:function(){return x.current},getInput:function(){return w.current}}})),c.useEffect((function(){a.ObjectUtils.combinedRefs(w,e.inputRef)}),[w,e.inputRef]),t.useMountEffect((function(){H();var n=Ke(e.value);null!==e.value&&e.value!==n&&ze(null,n)})),t.useUpdateEffect((function(){H(),qe()}),[e.locale,e.localeMatcher,e.mode,e.currency,e.currencyDisplay,e.useGrouping,e.minFractionDigits,e.maxFractionDigits,e.suffix,e.prefix]),t.useUpdateEffect((function(){qe()}),[e.value]);var Ye,Je,Qe=function(){var n=a.classNames("p-inputnumber-button p-inputnumber-button-up p-button p-button-icon-only p-component",{"p-disabled":e.disabled},e.incrementButtonClassName),t=a.classNames("p-button-icon",e.incrementButtonIcon);return c.createElement("button",{type:"button",className:n,onMouseLeave:ae,onMouseDown:re,onMouseUp:le,onKeyDown:ce,onKeyUp:ie,onTouchStart:te,onTouchEnd:ue,disabled:e.disabled,tabIndex:-1},c.createElement("span",{className:t}),c.createElement(u.Ripple,null))},Xe=function(){var n=a.classNames("p-inputnumber-button p-inputnumber-button-down p-button p-button-icon-only p-component",{"p-disabled":e.disabled},e.decrementButtonClassName),t=a.classNames("p-button-icon",e.decrementButtonIcon);return c.createElement("button",{type:"button",className:n,onMouseLeave:de,onMouseDown:fe,onMouseUp:pe,onKeyDown:ge,onKeyUp:me,onTouchStart:oe,onTouchEnd:se,disabled:e.disabled,tabIndex:-1},c.createElement("span",{className:t}),c.createElement(u.Ripple,null))},Ze=a.ObjectUtils.isNotEmpty(e.tooltip),en=a.ObjectUtils.findDiffKeys(e,D.defaultProps),nn=a.ObjectUtils.reduceKeys(en,a.DomHandler.DATA_PROPS),tn=a.ObjectUtils.reduceKeys(en,a.DomHandler.ARIA_PROPS),rn=a.classNames("p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":null!=e.value&&e.value.toString().length>0,"p-inputwrapper-focus":d,"p-inputnumber-buttons-stacked":U,"p-inputnumber-buttons-horizontal":L,"p-inputnumber-buttons-vertical":G},e.className),un=function(){var n=a.classNames("p-inputnumber-input",e.inputClassName),t=Le(e.value);return c.createElement(r.InputText,o({ref:w,id:e.inputId,style:e.inputStyle,role:"spinbutton",className:n,defaultValue:t,type:e.type,size:e.size,tabIndex:e.tabIndex,inputMode:_,maxLength:e.maxLength,disabled:e.disabled,required:e.required,pattern:e.pattern,placeholder:e.placeholder,readOnly:e.readOnly,name:e.name,autoFocus:e.autoFocus,onKeyDown:be,onKeyPress:ye,onInput:ve,onClick:Ce,onBlur:$e,onFocus:He,onPaste:he,min:e.min,max:e.max,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.value},tn,nn))}(),ln=(Ye=e.showButtons&&Qe(),Je=e.showButtons&&Xe(),U?c.createElement("span",{className:"p-inputnumber-button-group"},Ye,Je):c.createElement(c.Fragment,null,Ye,Je));return c.createElement(c.Fragment,null,c.createElement("span",o({ref:x,id:e.id,className:rn,style:e.style},en),un,ln),Ze&&c.createElement(l.Tooltip,o({target:x,content:e.tooltip},e.tooltipOptions)))})));return D.displayName="InputNumber",D.defaultProps={__TYPE:"InputNumber",allowEmpty:!0,ariaLabelledBy:null,autoFocus:!1,buttonLayout:"stacked",className:null,currency:void 0,currencyDisplay:void 0,decrementButtonClassName:null,decrementButtonIcon:"pi pi-angle-down",disabled:!1,format:!0,id:null,incrementButtonClassName:null,incrementButtonIcon:"pi pi-angle-up",inputClassName:null,inputId:null,inputMode:null,inputRef:null,inputStyle:null,locale:void 0,localeMatcher:void 0,max:null,maxFractionDigits:void 0,min:null,minFractionDigits:void 0,mode:"decimal",name:null,onBlur:null,onChange:null,onFocus:null,onKeyDown:null,onValueChange:null,pattern:null,placeholder:null,prefix:null,readOnly:!1,required:!1,showButtons:!1,size:null,step:1,style:null,suffix:null,tabIndex:null,tooltip:null,tooltipOptions:null,type:"text",useGrouping:!0,value:null},e.InputNumber=D,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.inputtext,primereact.ripple,primereact.tooltip,primereact.utils); - -primereact.messages=function(e,t,r,n,a,i,o,s){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=l(t);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},o={height:r.props?r.props.itemSize:void 0};if(e.optionGroupLabel){var l=e.optionGroupTemplate?i.ObjectUtils.getJSXElement(e.optionGroupTemplate,t,n):e.getOptionGroupLabel(t),a=h(t,o),u=n+"_"+e.getOptionGroupRenderKey(t);return d.createElement(d.Fragment,{key:u},d.createElement("li",{className:"p-dropdown-item-group",style:o},l),a)}var c=e.getOptionLabel(t),p=n+"_"+e.getOptionRenderKey(t),s=e.isOptionDisabled(t);return d.createElement(D,{key:p,label:c,option:t,style:o,template:e.itemTemplate,selected:e.isSelected(t),disabled:s,onClick:e.onOptionClick})},E=function(){if(e.showFilterClear&&e.filterValue){var t=n.localeOption("clear");return d.createElement("i",{className:"p-dropdown-filter-clear-icon pi pi-times","aria-label":t,onClick:function(){return e.onFilterClearIconClick((function(){return i.DomHandler.focus(s.current)}))}})}return null},j=function(){if(e.filter){var t=E(),n=i.classNames("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!t}),r=d.createElement("div",{className:n},d.createElement("input",{ref:s,type:"text",autoComplete:"off",className:"p-dropdown-filter p-inputtext p-component",placeholder:e.filterPlaceholder,onKeyDown:e.onFilterInputKeyDown,onChange:y,value:e.filterValue}),t,d.createElement("i",{className:"p-dropdown-filter-icon pi pi-search"}));if(e.filterTemplate)r=i.ObjectUtils.getJSXElement(e.filterTemplate,{className:n,element:r,filterOptions:m,filterInputKeyDown:e.onFilterInputKeyDown,filterInputChange:y,filterIconClassName:"p-dropdown-filter-icon pi pi-search",clearIcon:t,props:e});return d.createElement("div",{className:"p-dropdown-header"},r)}return null},S=function(){if(e.virtualScrollerOptions){var t=C(C({},e.virtualScrollerOptions),{style:C(C({},e.virtualScrollerOptions.style),{height:e.scrollHeight}),className:i.classNames("p-dropdown-items-wrapper",e.virtualScrollerOptions.className),items:e.visibleOptions,autoSize:!0,onLazyLoad:function(t){return e.virtualScrollerOptions.onLazyLoad(C(C({},t),{filter:e.filterValue}))},itemTemplate:function(e,t){return e&&w(e,t.index,t)},contentTemplate:function(e){var t=i.classNames("p-dropdown-items",e.className),n=f?O():e.children;return d.createElement("ul",{ref:e.contentRef,className:t,role:"listbox"},n)}});return d.createElement(c.VirtualScroller,v({ref:p},t))}var n=i.ObjectUtils.isNotEmpty(e.visibleOptions)?e.visibleOptions.map(w):e.hasFilter?O(e.emptyFilterMessage,!0):O(e.emptyMessage);return d.createElement("div",{className:"p-dropdown-items-wrapper",style:{maxHeight:e.scrollHeight||"auto"}},d.createElement("ul",{className:"p-dropdown-items",role:"listbox"},n))},F=(r=i.classNames("p-dropdown-panel p-component",e.panelClassName),o=j(),l=S(),d.createElement(a.CSSTransition,{nodeRef:t,classNames:"p-connected-overlay",in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:b,onEntering:e.onEntering,onEntered:g,onExit:e.onExit,onExited:e.onExited},d.createElement("div",{ref:t,className:r,style:e.panelStyle,onClick:e.onClick},o,l)));return d.createElement(u.Portal,{element:F,appendTo:e.appendTo})})));function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,l=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw l}}}}function L(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?t({group:r-1,option:me(ye[r-1]).length}):null)}return J(ye,n)},J=function(e,t){var n=t-1;if(n<0)return null;var r=e[n];return de(r)?q(n):r},X=function(t){S.current&&clearTimeout(S.current);var n=t.key;if("Shift"!==n&&"Control"!==n&&"Alt"!==n){if(C.current=I.current===n?n:C.current?C.current+n:n,I.current=n,C.current){var r=oe(),o=e.optionGroupLabel?W(r):Z(r+1);o&&re({originalEvent:t,option:o})}S.current=setTimeout((function(){C.current=null}),250)}},Z=function(e){return C.current?$(e,ye.length)||$(0,e):null},$=function(e,t){for(var n=e;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)if(document.activeElement){var s=u.indexOf(document.activeElement);t.shiftKey?-1===s||0===s?u[u.length-1].focus():u[s-1].focus():-1===s||s===u.length-1?u[0].focus():u[s+1].focus()}else u[0].focus()}}}},ie=function(t){i.DomHandler.hasClass(t.target,"p-dialog-header-icon")||i.DomHandler.hasClass(t.target.parentElement,"p-dialog-header-icon")||e.draggable&&(M.current=!0,X.current=t.pageX,A.current=t.pageY,O.current.style.margin="0",i.DomHandler.addClass(document.body,"p-unselectable-text"),e.onDragStart&&e.onDragStart(t))},ue=function(t){if(M.current){var n=i.DomHandler.getOuterWidth(O.current),r=i.DomHandler.getOuterHeight(O.current),a=t.pageX-X.current,o=t.pageY-A.current,l=O.current.getBoundingClientRect(),u=l.left+a,c=l.top+o,s=i.DomHandler.getViewport();O.current.style.position="fixed",e.keepInViewport?(u>=e.minX&&u+n=e.minY&&c+rs)&&l.left+md)&&l.top+pe.length)&&(t=e.length);for(var a=0,n=new Array(t);a0?e.page+1:0,l=p.createElement(o.InputNumber,{value:a,onChange:t,className:"p-paginator-page-input",disabled:e.disabled});return e.template?n.ObjectUtils.getJSXElement(e.template,{value:a,onChange:t,disabled:e.disabled,className:"p-paginator-page-input",element:l,props:e}):l}));C.displayName="JumpToPageInput",C.defaultProps={__TYPE:"JumbToPageInput",page:null,rows:null,pageCount:null,disabled:!1,template:null,onChange:null};var h=p.memo((function(e){var t=n.classNames("p-paginator-last p-paginator-element p-link",{"p-disabled":e.disabled}),a="p-paginator-icon pi pi-angle-double-right",o=p.createElement("button",{type:"button",className:t,onClick:e.onClick,disabled:e.disabled,"aria-label":l.ariaLabel("lastPageLabel")},p.createElement("span",{className:a}),p.createElement(r.Ripple,null));return e.template?n.ObjectUtils.getJSXElement(e.template,{onClick:e.onClick,className:t,iconClassName:a,disabled:e.disabled,element:o,props:e}):o}));h.displayName="LastPageLink",h.defaultProps={__TYPE:"LastPageLink",disabled:!1,onClick:null,template:null};var E=p.memo((function(e){var t=n.classNames("p-paginator-next p-paginator-element p-link",{"p-disabled":e.disabled}),a="p-paginator-icon pi pi-angle-right",o=p.createElement("button",{type:"button",className:t,onClick:e.onClick,disabled:e.disabled,"aria-label":l.ariaLabel("nextPageLabel")},p.createElement("span",{className:a}),p.createElement(r.Ripple,null));return e.template?n.ObjectUtils.getJSXElement(e.template,{onClick:e.onClick,className:t,iconClassName:a,disabled:e.disabled,element:o,props:e}):o}));E.displayName="NextPageLink",E.defaultProps={__TYPE:"NextPageLink",disabled:!1,onClick:null,template:null};var N=p.memo((function(e){var t,a=function(t,a){e.onClick&&e.onClick({originalEvent:t,value:a}),t.preventDefault()};if(e.value){var o=e.value[0],i=e.value[e.value.length-1];t=e.value.map((function(t){var s=n.classNames("p-paginator-page p-paginator-element p-link",{"p-paginator-page-start":t===o,"p-paginator-page-end":t===i,"p-highlight":t-1===e.page}),c=p.createElement("button",{type:"button",className:s,onClick:function(e){return a(e,t)},"aria-label":"".concat(l.ariaLabel("pageLabel")," ").concat(t+1)},t,p.createElement(r.Ripple,null));e.template&&(c=n.ObjectUtils.getJSXElement(e.template,{onClick:function(e){return a(e,t)},className:s,view:{startPage:o-1,endPage:i-1},page:t-1,currentPage:e.page,totalPages:e.pageCount,element:c,props:e}));return p.createElement(p.Fragment,{key:t},c)}))}return p.createElement("span",{className:"p-paginator-pages"},t)}));N.displayName="PageLinks",N.defaultProps={__TYPE:"PageLinks",value:null,page:null,rows:null,pageCount:null,links:null,template:null};var O=p.memo((function(e){var t=n.classNames("p-paginator-prev p-paginator-element p-link",{"p-disabled":e.disabled}),a="p-paginator-icon pi pi-angle-left",o=p.createElement("button",{type:"button",className:t,onClick:e.onClick,disabled:e.disabled,"aria-label":l.ariaLabel("previousPageLabel")},p.createElement("span",{className:a}),p.createElement(r.Ripple,null));return e.template?n.ObjectUtils.getJSXElement(e.template,{onClick:e.onClick,className:t,iconClassName:a,disabled:e.disabled,element:o,props:e}):o}));O.displayName="PrevPageLink",O.defaultProps={__TYPE:"PrevPageLink",disabled:!1,onClick:null,template:null};var L=p.memo((function(e){var t=e.options&&e.options.length>0,a=t?e.options.map((function(e){return{label:String(e),value:e}})):[],r=l.localeOption("choose"),o=t?p.createElement(i.Dropdown,{value:e.value,options:a,onChange:e.onChange,appendTo:e.appendTo,disabled:e.disabled,placeholder:r,ariaLabel:r}):null;return e.template?n.ObjectUtils.getJSXElement(e.template,{value:e.value,options:a,onChange:e.onChange,appendTo:e.appendTo,currentPage:e.page,totalPages:e.pageCount,totalRecords:e.totalRecords,disabled:e.disabled,element:o,props:e}):o}));L.displayName="RowsPerPageDropdown",L.defaultProps={__TYPE:"RowsPerPageDropdown",options:null,value:null,page:null,pageCount:null,totalRecords:0,appendTo:null,onChange:null,template:null,disabled:!1};var j=p.memo(p.forwardRef((function(e,t){var l=p.useRef(null),r=p.useRef(!1),o=Math.floor(e.first/e.rows),i=Math.ceil(e.totalRecords/e.rows),s=0===o,g=o===i-1,P=0===i,v=function(){var t=i,a=Math.min(e.pageLinkSize,t),n=Math.max(0,Math.ceil(o-a/2)),l=Math.min(t-1,n+a-1);return[n=Math.max(0,n-(e.pageLinkSize-(l-n+1))),l]},y=function(){for(var e=[],t=v(),a=t[1],n=t[0];n<=a;n++)e.push(n+1);return e},R=function(t,a){var n=i,l=Math.floor(t/a);l>=0&&l0&&e.first>=e.totalRecords&&R((i-1)*e.rows,e.rows)}),[e.totalRecords]);var M,X=function(t,a){var n;switch(t){case"FirstPageLink":n=p.createElement(w,{key:t,onClick:S,disabled:s||P,template:a});break;case"PrevPageLink":n=p.createElement(O,{key:t,onClick:T,disabled:s||P,template:a});break;case"NextPageLink":n=p.createElement(E,{key:t,onClick:D,disabled:g||P,template:a});break;case"LastPageLink":n=p.createElement(h,{key:t,onClick:U,disabled:g||P,template:a});break;case"PageLinks":n=p.createElement(N,{key:t,value:y(),page:o,rows:e.rows,pageCount:i,onClick:_,template:a});break;case"RowsPerPageDropdown":n=p.createElement(L,{key:t,value:e.rows,page:o,pageCount:i,totalRecords:e.totalRecords,options:e.rowsPerPageOptions,onChange:J,appendTo:e.dropdownAppendTo,template:a,disabled:P});break;case"CurrentPageReport":n=p.createElement(k,{reportTemplate:e.currentPageReportTemplate,key:t,page:o,pageCount:i,first:e.first,rows:e.rows,totalRecords:e.totalRecords,template:a});break;case"JumpToPageInput":n=p.createElement(C,{key:t,rows:e.rows,page:o,pageCount:i,onChange:R,disabled:P,template:a});break;default:n=null}return n};if(e.alwaysShow||1!==i){var x=n.ObjectUtils.findDiffKeys(e,j.defaultProps),Y=n.classNames("p-paginator p-component",e.className),A=n.ObjectUtils.getJSXElement(e.leftContent,e),I=n.ObjectUtils.getJSXElement(e.rightContent,e),F=(M=e.template)?"object"===b(M)?M.layout?M.layout.split(" ").map((function(e){var t=e.trim();return X(t,M[t])})):Object.entries(M).map((function(e){var t,a,n=(a=2,u(t=e)||m(t,a)||d(t,a)||f());return X(n[0],n[1])})):M.split(" ").map((function(e){return X(e.trim())})):null,z=A&&p.createElement("div",{className:"p-paginator-left-content"},A),H=I&&p.createElement("div",{className:"p-paginator-right-content"},I);return p.createElement("div",c({ref:l,className:Y,style:e.style},x),z,F,H)}return null})));return j.displayName="Paginator",j.defaultProps={__TYPE:"Paginator",totalRecords:0,rows:0,first:0,pageLinkSize:5,rowsPerPageOptions:null,alwaysShow:!0,style:null,className:null,template:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown",onPageChange:null,leftContent:null,rightContent:null,dropdownAppendTo:null,currentPageReportTemplate:"({currentPage} of {totalPages})"},e.Paginator=j,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.utils,primereact.api,primereact.ripple,primereact.inputnumber,primereact.dropdown); - -primereact.tree=function(e,n,t,r,o){"use strict";function l(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var a=l(n);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function b(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&l!==e.node.children.length?o[e.node.key]={checked:!1,partialChecked:!0}:delete o[e.node.key]),e.propagateSelectionUp&&e.onPropagateUp&&e.onPropagateUp(n)},w=function e(n,t,r){if(t?r[n.key]={checked:!0,partialChecked:!1}:delete r[n.key],n.children&&n.children.length)for(var o=0;or.left+r.width||n.nativeEvent.x=Math.floor(r.top+r.height)||n.nativeEvent.y=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function N(e,n){if(e){if("string"==typeof e)return w(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,n):void 0}}function w(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tn.index?n.index:n.index-1:n.index;a?a.children.splice(d,0,i):t.splice(d,0,i)}else a?a.children.push(i):t.push(i);e.onDragDrop&&e.onDragDrop({originalEvent:n.originalEvent,value:t,dragNode:i,dropNode:a,dropIndex:n.index})}},M=function(e,n){return!!e&&(e!==n&&0!==n.indexOf(e))},U=function(e,n){return!!M(e,n)&&!(e.indexOf("-")>0&&e.substring(0,e.lastIndexOf("-"))===n)},P=function(e){return!!M(v.current.path,e.path)&&(-1!==e.position||!I(v.current.path,e.path)||v.current.index+1!==e.index)},I=function(e,n){return 1===e.length&&1===n.length||e.substring(0,e.lastIndexOf("-"))===n.substring(0,n.lastIndexOf("-"))},L=function e(n,t){if(0===t.length)return null;var r=parseInt(t[0],10),o=n.children?n.children[r]:n[r];return 1===t.length?o:(t.shift(),e(o,t))},A=function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},H=function(e){13===e.which&&e.preventDefault()},R=function(n){b.current=!0;var t=n.target.value;e.onFilterValueChange?e.onFilterValueChange({originalEvent:n,value:t}):l(t)},F=function(e){l(t.ObjectUtils.isNotEmpty(e)?e:""),J()},J=function(){if(b.current){if(t.ObjectUtils.isEmpty(S))h.current=e.value;else{h.current=[];var n,r=e.filterBy.split(","),o=S.toLocaleLowerCase(e.filterLocale),l="strict"===e.filterMode,a=O(e.value);try{for(a.s();!(n=a.n()).done;){var i=k({},n.value),c={searchFields:r,filterText:o,isStrictMode:l};(l&&(_(i,c)||V(i,c))||!l&&(V(i,c)||_(i,c)))&&h.current.push(i)}}catch(e){a.e(e)}finally{a.f()}}b.current=!1}},_=function(e,n){if(e){var t=!1;if(e.children){var r=d(i=e.children)||s(i)||p(i)||u();e.children=[];var o,l=O(r);try{for(l.s();!(o=l.n()).done;){var a=k({},o.value);V(a,n)&&(t=!0,e.children.push(a))}}catch(e){l.e(e)}finally{l.f()}}if(t)return e.expanded=!0,!0}var i},V=function(n,r){var o,l=r.searchFields,a=r.filterText,i=r.isStrictMode,c=!1,d=O(l);try{for(d.s();!(o=d.n()).done;){String(t.ObjectUtils.resolveFieldData(n,o.value)).toLocaleLowerCase(e.filterLocale).indexOf(a)>-1&&(c=!0)}}catch(e){d.e(e)}finally{d.f()}return(!c||i&&!A(n))&&(c=_(n,{searchFields:l,filterText:a,isStrictMode:i})||c),c},X=function(){l("")};a.useImperativeHandle(n,(function(){return{props:e,filter:F,getElement:function(){return y.current}}}));var B=function(n,t,r){return a.createElement(C,{key:n.key||n.label,node:n,index:t,last:r,path:String(t),disabled:e.disabled,selectionMode:e.selectionMode,selectionKeys:e.selectionKeys,onSelectionChange:e.onSelectionChange,metaKeySelection:e.metaKeySelection,contextMenuSelectionKey:e.contextMenuSelectionKey,onContextMenuSelectionChange:e.onContextMenuSelectionChange,onContextMenu:e.onContextMenu,propagateSelectionDown:e.propagateSelectionDown,propagateSelectionUp:e.propagateSelectionUp,onExpand:e.onExpand,onCollapse:e.onCollapse,onSelect:e.onSelect,onUnselect:e.onUnselect,expandedKeys:x,onToggle:D,nodeTemplate:e.nodeTemplate,togglerTemplate:e.togglerTemplate,isNodeLeaf:A,dragdropScope:e.dragdropScope,onDragStart:N,onDragEnd:w,onDrop:j,onDropPoint:T,onClick:e.onNodeClick,onDoubleClick:e.onNodeDoubleClick})},$=function(){e.filter&&(b.current=!0,J());var n=e.filter&&h.current?h.current:e.value;return n.map((function(e,t){return B(e,t,t===n.length-1)}))},z=function(){if(e.filter){var n=t.ObjectUtils.isNotEmpty(S)?S:"",r=a.createElement("div",{className:"p-tree-filter-container"},a.createElement("input",{type:"text",value:n,autoComplete:"off",className:"p-tree-filter p-inputtext p-component",placeholder:e.filterPlaceholder,onKeyDown:H,onChange:R,disabled:e.disabled}),a.createElement("span",{className:"p-tree-filter-icon pi pi-search"}));if(e.filterTemplate)r=t.ObjectUtils.getJSXElement(e.filterTemplate,{className:"p-tree-filter-container",element:r,filterOptions:E,filterInputKeyDown:H,filterInputChange:R,filterIconClassName:"p-dropdown-filter-icon pi pi-search",props:e});return a.createElement(a.Fragment,null,r)}return null},Y=t.ObjectUtils.findDiffKeys(e,K.defaultProps),q=t.ObjectUtils.reduceKeys(Y,t.DomHandler.ARIA_PROPS),G=t.classNames("p-tree p-component",e.className,{"p-tree-selectable":e.selectionMode,"p-tree-loading":e.loading,"p-disabled":e.disabled}),Q=function(){if(e.loading){var n=t.classNames("p-tree-loading-icon pi-spin",e.loadingIcon);return a.createElement("div",{className:"p-tree-loading-overlay p-component-overlay"},a.createElement("i",{className:n}))}return null}(),W=function(){if(e.value){var n=$(),r=t.classNames("p-tree-container",e.contentClassName);return a.createElement("ul",i({className:r,role:"tree",style:e.contentStyle},q),n)}return null}(),Z=function(){if(e.showHeader){var n=z(),r=n;if(e.header)r=t.ObjectUtils.getJSXElement(e.header,{filterContainerClassName:"p-tree-filter-container",filterIconClasssName:"p-tree-filter-icon pi pi-search",filterInput:{className:"p-tree-filter p-inputtext p-component",onKeyDown:H,onChange:R},filterElement:n,element:r,props:e});return a.createElement("div",{className:"p-tree-header"},r)}return null}(),ee=function(){var n=t.ObjectUtils.getJSXElement(e.footer,e);return a.createElement("div",{className:"p-tree-footer"},n)}();return a.createElement("div",i({id:e.id,ref:y,className:G,style:e.style},Y),Q,Z,W,ee)})));return K.displayName="Tree",K.defaultProps={__TYPE:"Tree",id:null,value:null,disabled:!1,selectionMode:null,selectionKeys:null,onSelectionChange:null,contextMenuSelectionKey:null,onContextMenuSelectionChange:null,expandedKeys:null,style:null,className:null,contentStyle:null,contentClassName:null,metaKeySelection:!0,propagateSelectionUp:!0,propagateSelectionDown:!0,loading:!1,loadingIcon:"pi pi-spinner",dragdropScope:null,header:null,footer:null,showHeader:!0,filter:!1,filterValue:null,filterBy:"label",filterMode:"lenient",filterPlaceholder:null,filterLocale:void 0,filterTemplate:null,nodeTemplate:null,togglerTemplate:null,onSelect:null,onUnselect:null,onExpand:null,onCollapse:null,onToggle:null,onDragDrop:null,onContextMenu:null,onFilterValueChange:null,onNodeClick:null,onNodeDoubleClick:null},e.Tree=K,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils,primereact.api,primereact.ripple); - -primereact.mention=function(e,t,n,r,l,i,o,a,u,s,c){"use strict";function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var d=p(t),g=f(n);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=parseFloat(t.style.maxHeight)?(t.style.overflowY="scroll",t.style.height=t.style.maxHeight):t.style.overflow="hidden",r.current=t.scrollHeight))},u=n.current&&n.current.value,s=d.useMemo((function(){return a.ObjectUtils.isNotEmpty(e.value)||a.ObjectUtils.isNotEmpty(e.defaultValue)||a.ObjectUtils.isNotEmpty(u)}),[e.value,e.defaultValue,u]);d.useEffect((function(){a.ObjectUtils.combinedRefs(n,t)}),[n,t]),d.useEffect((function(){e.autoResize&&l(!0)}),[e.autoResize]);var c=a.ObjectUtils.isNotEmpty(e.tooltip),f=a.ObjectUtils.findDiffKeys(e,j.defaultProps),p=a.classNames("p-inputtextarea p-inputtext p-component",{"p-disabled":e.disabled,"p-filled":s,"p-inputtextarea-resizable":e.autoResize},e.className);return d.createElement(d.Fragment,null,d.createElement("textarea",m({ref:n},f,{className:p,onFocus:function(t){e.autoResize&&l(),e.onFocus&&e.onFocus(t)},onBlur:function(t){e.autoResize&&l(),e.onBlur&&e.onBlur(t)},onKeyUp:function(t){e.autoResize&&l(),e.onKeyUp&&e.onKeyUp(t)},onKeyDown:function(t){e.onKeyDown&&e.onKeyDown(t),e.keyfilter&&i.KeyFilter.onKeyPress(t,e.keyfilter,e.validateOnly)},onInput:function(t){e.autoResize&&l(),e.onInput&&e.onInput(t);var n=t.target;a.ObjectUtils.isNotEmpty(n.value)?a.DomHandler.addClass(n,"p-filled"):a.DomHandler.removeClass(n,"p-filled")},onPaste:function(t){e.onPaste&&e.onPaste(t),e.keyfilter&&i.KeyFilter.onPaste(t,e.keyfilter,e.validateOnly)}})),c&&d.createElement(o.Tooltip,m({target:n,content:e.tooltip},e.tooltipOptions)))})));function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;ti)return o}return E},J=function(t,n){if(Array.isArray(e.trigger)){var r={};return e.trigger.forEach((function(e){var l=t.substring(0,n).lastIndexOf(e);-1!==l&&(l>r.index||!r.index)&&(r={key:e,index:-1!==l?l+1:-1})})),r}var l=t.substring(0,n).lastIndexOf(e.trigger);return{key:e.trigger,index:-1!==l?l+1:-1}},X=function(t){U.current&&clearTimeout(U.current);var n=t.target,r=n.value,l=n.selectionStart,i=r.substring(l-1,l);if(" "!==i){var o=Z(r,i,l);if(o&&o.index>-1){var a=r.substring(o.index,l);U.current=setTimeout((function(){Y(t,a,o)}),e.delay)}}else K()},Y=function(t,n,r){e.onSearch&&(b(!0),w(r),e.onSearch({originalEvent:t,trigger:r.key,query:n}))},q=function(t,n){var r=I.current.value,l=t.target.selectionStart,i=r.indexOf(" ",E.index),o=r.substring(E.index,i>-1?i:l),a=L(n).replace(/\s+/g,"");if(o.trim()!==a){for(var u=0;u0?a.DomHandler.addClass(H.current,"p-inputwrapper-filled"):a.DomHandler.removeClass(H.current,"p-inputwrapper-filled")},onKeyUp:function(e){37!==e.which&&39!==e.which||X(e)},onChange:function(t){e.onChange&&e.onChange(t),X(t)}})),se)})));return D.displayName="Mention",D.defaultProps={__TYPE:"Mention",autoHighlight:!0,className:null,delay:0,field:null,footerTemplate:null,headerTemplate:null,id:null,inputClassName:null,inputId:null,inputRef:null,inputStyle:null,itemTemplate:null,panelClassName:null,panelStyle:null,scrollHeight:"200px",style:null,suggestions:null,transitionOptions:null,trigger:"@",onBlur:null,onChange:null,onFocus:null,onHide:null,onInput:null,onSearch:null,onSelect:null,onShow:null},e.Mention=D,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.csstransition,primereact.hooks,primereact.keyfilter,primereact.tooltip,primereact.utils,primereact.overlayservice,primereact.portal,primereact.ripple); - -export default primereact; diff --git a/components/bl-mention/src/lib/mention.min.js b/components/bl-mention/src/lib/mention.min.js new file mode 100644 index 000000000..f6a26b645 --- /dev/null +++ b/components/bl-mention/src/lib/mention.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.PrimereactLib=t(require("react"),require("react-dom")):e.PrimereactLib=t(e.react,e["react-dom"])}(self,((e,t)=>(()=>{"use strict";var n={156:t=>{t.exports=e},111:e=>{e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{Mention:()=>Rt});var e=i(156),t=i.n(e);function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};e&&Object.entries(t).forEach((function(t){var n=a(t,2),r=n[0],i=n[1];return e.style[r]=i}))}},{key:"find",value:function(e,t){return e?Array.from(e.querySelectorAll(t)):[]}},{key:"findSingle",value:function(e,t){return e?e.querySelector(t):null}},{key:"setAttributes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var r=function t(n,r){var i,o,u=null!=e&&null!==(i=e.$attrs)&&void 0!==i&&i[n]?[null==e||null===(o=e.$attrs)||void 0===o?void 0:o[n]]:[];return[r].flat().reduce((function(e,r){if(null!=r){var i=l(r);if("string"===i||"number"===i)e.push(r);else if("object"===i){var o=Array.isArray(r)?t(n,r):Object.entries(r).map((function(e){var t=a(e,2),r=t[0],i=t[1];return"style"!==n||!i&&0!==i?i?r:void 0:"".concat(r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(i)}));e=o.length?e.concat(o.filter((function(e){return!!e}))):e}}return e}),u)};Object.entries(n).forEach((function(n){var i=a(n,2),o=i[0],l=i[1];if(null!=l){var u=o.match(/^on(.+)/);u?e.addEventListener(u[1].toLowerCase(),l):"p-bind"===o?t.setAttributes(e,l):(l="class"===o?s(new Set(r("class",l))).join(" ").trim():"style"===o?r("style",l).join(";").trim():l,(e.$attrs=e.$attrs||{})&&(e.$attrs[o]=l),e.setAttribute(o,l))}}))}}},{key:"getAttribute",value:function(e,t){if(e){var n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}},{key:"isAttributeEquals",value:function(e,t,n){return!!e&&this.getAttribute(e,t)===n}},{key:"isAttributeNotEquals",value:function(e,t,n){return!this.isAttributeEquals(e,t,n)}},{key:"getHeight",value:function(e){if(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth))}return 0}},{key:"getWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-(parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth))}return 0}},{key:"alignOverlay",value:function(t,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t&&n&&("self"===r?this.relativePosition(t,n):(i&&(t.style.minWidth=e.getOuterWidth(n)+"px"),this.absolutePosition(t,n)))}},{key:"absolutePosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left";if(e&&t){var r,i,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=o.height,l=o.width,u=t.offsetHeight,s=t.offsetWidth,p=t.getBoundingClientRect(),c=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),d=this.getViewport();p.top+u+a>d.height?((r=p.top+c-a)<0&&(r=c),e.style.transformOrigin="bottom"):(r=u+p.top+c,e.style.transformOrigin="top");var y=p.left,v="left"===n?0:l-s;i=y+s+l>d.width?Math.max(0,y+f+s-l):y-v+f,e.style.top=r+"px",e.style.left=i+"px"}}},{key:"relativePosition",value:function(e,t){if(e&&t){var n,r,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=t.offsetHeight,a=t.getBoundingClientRect(),l=this.getViewport();a.top+o+i.height>l.height?(n=-1*i.height,a.top+n<0&&(n=-1*a.top),e.style.transformOrigin="bottom"):(n=o,e.style.transformOrigin="top"),r=i.width>l.width?-1*a.left:a.left+i.width>l.width?-1*(a.left+i.width-l.width):0,e.style.top=n+"px",e.style.left=r+"px"}}},{key:"flipfitCollision",value:function(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left top",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left bottom",a=arguments.length>4?arguments[4]:void 0;if(t&&n){var l=n.getBoundingClientRect(),u=this.getViewport(),s=i.split(" "),p=o.split(" "),c=function(e,t){return t?+e.substring(e.search(/(\+|-)/g))||0:e.substring(0,e.search(/(\+|-)/g))||e},f={my:{x:c(s[0]),y:c(s[1]||s[0]),offsetX:c(s[0],!0),offsetY:c(s[1]||s[0],!0)},at:{x:c(p[0]),y:c(p[1]||p[0]),offsetX:c(p[0],!0),offsetY:c(p[1]||p[0],!0)}},d={left:function(){return f.my.offsetX+f.at.offsetX+l.left+("left"===f.my.x?0:-1*("center"===f.my.x?r.getOuterWidth(t)/2:r.getOuterWidth(t)))},top:function(){return f.my.offsetY+f.at.offsetY+l.top+("top"===f.my.y?0:-1*("center"===f.my.y?r.getOuterHeight(t)/2:r.getOuterHeight(t)))}},y={count:{x:0,y:0},left:function(){var n=d.left(),r=e.getWindowScrollLeft();t.style.left=n+r+"px",2===this.count.x?(t.style.left=r+"px",this.count.x=0):n<0&&(this.count.x++,f.my.x="left",f.at.x="right",f.my.offsetX*=-1,f.at.offsetX*=-1,this.right())},right:function(){var r=d.left()+e.getOuterWidth(n),i=e.getWindowScrollLeft();t.style.left=r+i+"px",2===this.count.x?(t.style.left=u.width-e.getOuterWidth(t)+i+"px",this.count.x=0):r+e.getOuterWidth(t)>u.width&&(this.count.x++,f.my.x="right",f.at.x="left",f.my.offsetX*=-1,f.at.offsetX*=-1,this.left())},top:function(){var n=d.top(),r=e.getWindowScrollTop();t.style.top=n+r+"px",2===this.count.y?(t.style.left=r+"px",this.count.y=0):n<0&&(this.count.y++,f.my.y="top",f.at.y="bottom",f.my.offsetY*=-1,f.at.offsetY*=-1,this.bottom())},bottom:function(){var r=d.top()+e.getOuterHeight(n),i=e.getWindowScrollTop();t.style.top=r+i+"px",2===this.count.y?(t.style.left=u.height-e.getOuterHeight(t)+i+"px",this.count.y=0):r+e.getOuterHeight(n)>u.height&&(this.count.y++,f.my.y="bottom",f.at.y="top",f.my.offsetY*=-1,f.at.offsetY*=-1,this.top())},center:function(r){if("y"===r){var i=d.top()+e.getOuterHeight(n)/2;t.style.top=i+e.getWindowScrollTop()+"px",i<0?this.bottom():i+e.getOuterHeight(n)>u.height&&this.top()}else{var o=d.left()+e.getOuterWidth(n)/2;t.style.left=o+e.getWindowScrollLeft()+"px",o<0?this.left():o+e.getOuterWidth(t)>u.width&&this.right()}}};y[f.at.x]("x"),y[f.at.y]("y"),this.isFunction(a)&&a(f)}}},{key:"findCollisionPosition",value:function(e){if(e){var t="left"===e?"right":"left";return"top"===e||"bottom"===e?{axis:"y",my:"center ".concat("top"===e?"bottom":"top"),at:"center ".concat(e)}:{axis:"x",my:"".concat(t," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(e){var r,i=this.getParents(e),o=/(auto|scroll)/,a=function(e){var t=e?getComputedStyle(e):null;return t&&(o.test(t.getPropertyValue("overflow"))||o.test(t.getPropertyValue("overflowX"))||o.test(t.getPropertyValue("overflowY")))},l=function(e){t?n.push("BODY"===e.nodeName||"HTML"===e.nodeName||9===e.nodeType?window:e):n.push(e)},u=v(i);try{for(u.s();!(r=u.n()).done;){var s=r.value,p=1===s.nodeType&&s.dataset.scrollselectors;if(p){var c,f=p.split(","),d=v(f);try{for(d.s();!(c=d.n()).done;){var y=c.value,g=this.findSingle(s,y);g&&a(g)&&l(g)}}catch(e){d.e(e)}finally{d.f()}}1===s.nodeType&&a(s)&&l(s)}}catch(e){u.e(e)}finally{u.f()}}return n.some((function(e){return e===document.body||e===window}))||n.push(window),n}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementDimensions",value:function(e){var t={};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}},{key:"fadeIn",value:function(e,t){if(e){e.style.opacity=0;var n=+new Date,r=0;!function i(){r=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))}()}}},{key:"fadeOut",value:function(e,t){if(e)var n=1,r=50/t,i=setInterval((function(){(n-=r)<=0&&(n=0,clearInterval(i)),e.style.opacity=n}),50)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}}},{key:"removeChild",value:function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}}},{key:"isElement",value:function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":l(HTMLElement))?e instanceof HTMLElement:e&&"object"===l(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}},{key:"scrollInView",value:function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),o=i?parseFloat(i):0,a=e.getBoundingClientRect(),l=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-r-o,u=e.scrollTop,s=e.clientHeight,p=this.getOuterHeight(t);l<0?e.scrollTop=u+l:l+p>s&&(e.scrollTop=u+l-s+p)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var r=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}},{key:"blockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden",t=!!document.body.style.getPropertyValue("--scrollbar-width");!t&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}},{key:"unblockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}},{key:"isVisible",value:function(e){return e&&(0!==e.clientHeight||0!==e.getClientRects().length||"none"!==getComputedStyle(e).display)}},{key:"isExist",value:function(e){return!(null==e||!e.nodeName||!e.parentNode)}},{key:"getFocusableElements",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)),o=[],a=v(i);try{for(a.s();!(n=a.n()).done;){var l=n.value;"none"!==getComputedStyle(l).display&&"hidden"!==getComputedStyle(l).visibility&&o.push(l)}}catch(e){a.e(e)}finally{a.f()}return o}},{key:"getFirstFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[0]:null}},{key:"getLastFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[r.length-1]:null}},{key:"focus",value:function(e,t){var n=void 0===t||!t;e&&document.activeElement!==e&&e.focus({preventScroll:n})}},{key:"focusFirstElement",value:function(t,n){if(t){var r=e.getFirstFocusableElement(t);return r&&e.focus(r,n),r}}},{key:"getCursorOffset",value:function(e,t,n,r){if(e){var i=getComputedStyle(e),o=document.createElement("div");o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.visibility="hidden",o.style.pointerEvents="none",o.style.overflow=i.overflow,o.style.width=i.width,o.style.height=i.height,o.style.padding=i.padding,o.style.border=i.border,o.style.overflowWrap=i.overflowWrap,o.style.whiteSpace=i.whiteSpace,o.style.lineHeight=i.lineHeight,o.innerHTML=t.replace(/\r\n|\r|\n/g,"
");var a=document.createElement("span");a.textContent=r,o.appendChild(a);var l=document.createTextNode(n);o.appendChild(l),document.body.appendChild(o);var u=a.offsetLeft,s=a.offsetTop,p=a.clientHeight;return document.body.removeChild(o),{left:Math.abs(u-e.scrollLeft),top:Math.abs(s-e.scrollTop)+p}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"isClickable",value:function(e){var t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"===t||"TEXTAREA"===t||"BUTTON"===t||"A"===t||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(e,t){if("string"==typeof t)e.style.cssText=this.style;else for(var n in this.style)e.style[n]=t[n]}},{key:"exportCSV",value:function(t,n){var r=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(r,n+".csv"):e.saveAs({name:n+".csv",src:URL.createObjectURL(r)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}},{key:"saveAs",value:function(e){if(e){var t=document.createElement("a");if(void 0!==t.download){var n=e.name,r=e.src;return t.setAttribute("href",r),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),!0}}return!1}},{key:"createInlineStyle",value:function(t,n){var r=document.createElement("style");return e.addNonce(r,t),n||(n=document.head),n.appendChild(r),r}},{key:"removeInlineStyle",value:function(e){if(this.isExist(e)){try{e.parentNode.removeChild(e)}catch(e){}e=null}return e}},{key:"addNonce",value:function(e,t){try{t||(t=process.env.REACT_APP_CSS_NONCE)}catch(e){}t&&e.setAttribute("nonce",t)}},{key:"getTargetElement",value:function(e){if(!e)return null;if("document"===e)return document;if("window"===e)return window;if("object"===l(e)&&e.hasOwnProperty("current"))return this.isExist(e.current)?e.current:null;var t,n=(t=e)&&t.constructor&&t.call&&t.apply?e():e;return n&&9===n.nodeType||this.isExist(n)?n:null}},{key:"getAttributeNames",value:function(e){var t,n,r;for(n=[],r=e.attributes,t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}},{key:"findIndexInList",value:function(e,t,n){var r=this;return t?n?t.findIndex((function(t){return r.equals(t,e,n)})):t.findIndex((function(t){return t===e})):-1}},{key:"getJSXElement",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e?e[t]:void 0;return void 0===r?n[t]:r}},{key:"getPropCaseInsensitive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.toFlatCase(t);for(var i in e)if(e.hasOwnProperty(i)&&this.toFlatCase(i)===r)return e[i];for(var o in n)if(n.hasOwnProperty(o)&&this.toFlatCase(o)===r)return n[o]}},{key:"getMergedProps",value:function(e,t){return Object.assign({},t,e)}},{key:"getDiffProps",value:function(e,t){return this.findDiffKeys(e,t)}},{key:"getPropValue",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isNotEmpty(e)?this.getProp(e.props,t,n):void 0}},{key:"getComponentProps",value:function(e,t){return this.isNotEmpty(e)?this.getMergedProps(e.props,t):void 0}},{key:"getComponentDiffProps",value:function(e,t){return this.isNotEmpty(e)?this.getDiffProps(e.props,t):void 0}},{key:"isValidChild",value:function(e,t,n){if(e){var r,i=this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0);return!i&&null!=e&&null!==(r=e.type)&&void 0!==r&&null!==(r=r._payload)&&void 0!==r&&r.value&&(i=e.type._payload.value.find((function(e){return e===t}))),i===t}return!1}},{key:"getRefElement",value:function(e){return e?"object"===l(e)&&e.hasOwnProperty("current")?e.current:e:null}},{key:"combinedRefs",value:function(e,t){e&&t&&("function"==typeof t?t(e.current):t.current=e.current)}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}},{key:"toFlatCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"toCapitalCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e[0].toUpperCase()+e.slice(1):e}},{key:"trim",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.trim():e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===l(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isObject",value:function(e){return null!==e&&e instanceof Object&&e.constructor===Object}},{key:"isDate",value:function(e){return null!==e&&e instanceof Date&&e.constructor===Date}},{key:"isArray",value:function(e){return null!==e&&Array.isArray(e)}},{key:"isString",value:function(e){return null!==e&&"string"==typeof e}},{key:"isPrintableCharacter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}},{key:"isLetter",value:function(e){return/^[a-zA-Z\u00C0-\u017F]$/.test(e)}},{key:"findLast",value:function(e,t){var n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch(r){n=s(e).reverse().find(t)}return n}},{key:"findLastIndex",value:function(e,t){var n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf(s(e).reverse().find(t))}return n}},{key:"sort",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=this.compare(e,t,r,n),a=n;return(this.isEmpty(e)||this.isEmpty(t))&&(a=1===i?n:i),a*o}},{key:"compare",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=this.isEmpty(e),o=this.isEmpty(t);return i&&o?0:i?r:o?-r:"string"==typeof e&&"string"==typeof t?n(e,t):et?1:0}},{key:"localeComparator",value:function(e){return new Intl.Collator(e,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.key===t)return i.children||[];if(i.children){var o=this.findChildrenByKey(i.children,t);if(o.length>0)return o}}}catch(e){r.e(e)}finally{r.f()}return[]}},{key:"mutateFieldData",value:function(e,t,n){if("object"===l(e)&&"string"==typeof t)for(var r=t.split("."),i=e,o=0,a=r.length;o1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=t.classNameMergeFunction,r=function(e){return!!(e&&e.constructor&&e.call&&e.apply)};return e.reduce((function(e,t){var i=function(){var i=t[o];if("style"===o)e.style=O(O({},e.style),t.style);else if("className"===o){var a,l=null==(a=n&&n instanceof Function?n(e.className,t.className):[e.className,t.className].join(" ").trim())||""===a;e.className=l?void 0:a}else if(r(i)){var u=e[o];e[o]=u?function(){u.apply(void 0,arguments),i.apply(void 0,arguments)}:i}else e[o]=i};for(var o in t)i();return e}),{})}}var S,x,A=(S=[],x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return s(S).reverse().find((function(n){return!!t||n.key===e}))||{key:e,value:n}},{get:function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n,r){t&&(t.style.zIndex=String(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=x(e,t,n),i=r.value+(r.key===e?0:n)+1;return S.push({key:e,value:i}),i}(e,n,r)))},clear:function(e){var t;e&&(t=A.get(e),S=S.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(e,t){return function(e,t){return x(e,t).value}(e,t)}}),T=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function R(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===C(t)?t:String(t)}function P(e,t,n){return(t=R(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};b.isNotEmpty(e.target)&&(y(),(e.when||u)&&(s.current=m.getTargetElement(e.target))),!p.current&&s.current&&(p.current=function(e){return o&&o(e)},s.current.addEventListener(i,p.current,a))},y=function(){p.current&&(s.current.removeEventListener(i,p.current,a),p.current=null)};return e.useEffect((function(){u?s.current=m.getTargetElement(r):(y(),s.current=null)}),[r,u]),e.useEffect((function(){!p.current||""+c==""+o&&f===a||(y(),u&&d())}),[o,a,u]),M((function(){y()})),[d,y]};function U(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var B={escKeyListeners:new Map,onGlobalKeyDown:function(e){if("Escape"===e.code){var t=B.escKeyListeners,n=Math.max.apply(Math,U(t.keys())),r=t.get(n),i=Math.max.apply(Math,U(r.keys()));r.get(i)(e)}},refreshGlobalKeyDownListener:function(){var e=m.getTargetElement("document");this.escKeyListeners.size>0?e.addEventListener("keydown",this.onGlobalKeyDown):e.removeEventListener("keydown",this.onGlobalKeyDown)},addListener:function(e,t){var n=this,r=F(t,2),i=r[0],o=r[1],a=this.escKeyListeners;a.has(i)||a.set(i,new Map);var l=a.get(i);if(l.has(o))throw new Error("Unexpected: global esc key listener with priority [".concat(i,", ").concat(o,"] already exists."));return l.set(o,e),this.refreshGlobalKeyDownListener(),function(){l.delete(o),0===l.size&&a.delete(i),n.refreshGlobalKeyDownListener()}}};function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==G(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===G(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(b.isNotEmpty(e.target)&&(d(),(e.when||a)&&(l.current=m.getTargetElement(e.target))),!u.current&&l.current){var t=c?c.hideOverlaysOnDocumentScrolling:_.hideOverlaysOnDocumentScrolling,n=s.current=m.getScrollableParents(l.current,t);u.current=function(e){return r&&r(e)},n.forEach((function(e){return e.addEventListener("scroll",u.current,i)}))}},d=function(){u.current&&(s.current.forEach((function(e){return e.removeEventListener("scroll",u.current,i)})),u.current=null)};return e.useEffect((function(){a?l.current=m.getTargetElement(n):(d(),l.current=null)}),[n,a]),e.useEffect((function(){!u.current||u.current===r&&p===i||(d(),a&&f())}),[r,i]),M((function(){d()})),[f,d]},$=function(e){var t=e.listener,n=e.when;return W({target:"window",type:"resize",listener:t,when:void 0===n||n})},Z=0,Q=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,e.useState)(!1),i=F(r,2),o=i[0],a=i[1],l=(0,e.useRef)(null),u=(0,e.useContext)(I),s=m.isClient()?window.document:void 0,p=n.document,c=void 0===p?s:p,f=n.manual,d=void 0!==f&&f,y=n.name,v=void 0===y?"style_".concat(++Z):y,g=n.id,h=void 0===g?void 0:g,b=n.media,E=void 0===b?void 0:b,O=function(e){o&&t!==e&&(l.current.textContent=e)},w=function(){if(c&&!o){var e=(null==u?void 0:u.styleContainer)||c.head;l.current=e.querySelector('style[data-primereact-style-id="'.concat(v,'"]'))||c.getElementById(h)||c.createElement("style"),l.current.isConnected||(l.current.type="text/css",h&&(l.current.id=h),E&&(l.current.media=E),m.addNonce(l.current,u&&u.nonce||_.nonce),e.appendChild(l.current),v&&l.current.setAttribute("data-primereact-style-id",v)),l.current.textContent=t,a(!0)}},S=function(){c&&l.current&&(m.removeInlineStyle(l.current),a(!1))};return(0,e.useEffect)((function(){d||w()}),[d]),{id:h,name:v,update:O,unload:S,load:w,isLoaded:o}},J=function(t,n){var r=e.useRef(!1);return e.useEffect((function(){if(r.current)return t&&t();r.current=!0}),n)};function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n i,\n.p-input-icon-right > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > svg,\n.p-input-icon-left > .p-input-prefix,\n.p-input-icon-right > .p-input-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n","\n ").concat("\n.p-radiobutton {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n}\n\n.p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n}\n\n.p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n}\n\n","\n ").concat("\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\nsvg.p-icon {\n pointer-events: auto;\n}\n\nsvg.p-icon g,\n.p-disabled svg.p-icon {\n pointer-events: none;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n","\n}\n"),ue={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.css,n=oe(oe({},e.defaultProps),ue.defaultProps),r={},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ue.context=t,ue.cProps=e,b.getMergedProps(e,n)},o=function(e){return b.getDiffProps(e,n)},a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t.hasOwnProperty("pt")&&void 0!==t.pt&&(t=t.pt);var o=n,a=/./g.test(o)&&!!r[o.split(".")[0]],l=a?b.toFlatCase(o.split(".")[1]):b.toFlatCase(o),s=r.hostName&&b.toFlatCase(r.hostName),p=s||r.props&&r.props.__TYPE&&b.toFlatCase(r.props.__TYPE)||"",c="transition"===l,f="data-pc-",d=function e(t){return null!=t&&t.props?t.hostName?t.props.__TYPE===t.hostName?t.props:e(t.parent):t.parent:void 0},y=function(e){var t,n;return(null===(t=r.props)||void 0===t?void 0:t[e])||(null===(n=d(r))||void 0===n?void 0:n[e])};ue.cParams=r,ue.cName=p;var v=y("ptOptions")||ue.context.ptOptions||{},g=v.mergeSections,m=void 0===g||g,h=v.mergeProps,E=void 0!==h&&h,O=function(){var e=se.apply(void 0,arguments);return Array.isArray(e)?{className:u.apply(void 0,te(e))}:b.isString(e)?{className:e}:null!=e&&e.hasOwnProperty("className")&&Array.isArray(e.className)?{className:u.apply(void 0,te(e.className))}:e},S=i?a?fe(O,o,r):de(O,o,r):void 0,x=a?void 0:ce(pe(t,p),O,o,r),A=!c&&oe(oe({},"root"===l&&re({},"".concat(f,"name"),r.props&&r.props.__parentMetadata?b.toFlatCase(r.props.__TYPE):p)),{},re({},"".concat(f,"section"),l));return m||!m&&x?E?w([S,x,Object.keys(A).length?A:{}],{classNameMergeFunction:null===(e=ue.context.ptOptions)||void 0===e?void 0:e.classNameMergeFunction}):oe(oe(oe({},S),x),Object.keys(A).length?A:{}):oe(oe({},x),Object.keys(A).length?A:{})},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props,i=e.state,o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a((n||{}).pt,t,oe(oe({},e),r))},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a(e,t,n,!1)},u=function(){return ue.context.unstyled||_.unstyled||n.unstyled},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u()?void 0:se(t&&t.classes,e,oe({props:n,state:i},r))},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(a){var l,u=se(t&&t.inlineStyles,e,oe({props:n,state:i},o)),s=se(r,e,oe({props:n,state:i},o));return w([s,u],{classNameMergeFunction:null===(l=ue.context.ptOptions)||void 0===l?void 0:l.classNameMergeFunction})}};return{ptm:o,ptmo:l,sx:p,cx:s,isUnstyled:u}};return oe(oe({getProps:i,getOtherProps:o,setMetaData:l},e),{},{defaultProps:n})}},se=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=String(b.toFlatCase(n)).split("."),o=i.shift(),a=b.isNotEmpty(t)?Object.keys(t).find((function(e){return b.toFlatCase(e)===o})):"";return o?b.isObject(t)?e(b.getItemValue(t[a],r),i.join("."),r):void 0:b.getItemValue(t,r)},pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=null==e?void 0:e._usept,i=function(e){var r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n?n(e):e,a=b.toFlatCase(t);return null!==(r=i?a!==ue.cName?null==o?void 0:o[a]:void 0:null==o?void 0:o[a])&&void 0!==r?r:o};return b.isNotEmpty(r)?{_usept:r,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},ce=function(e,t,n,r){var i=function(e){return t(e,n,r)};if(null!=e&&e.hasOwnProperty("_usept")){var o=e._usept||ue.context.ptOptions||{},a=o.mergeSections,l=void 0===a||a,u=o.mergeProps,s=void 0!==u&&u,p=o.classNameMergeFunction,c=i(e.originalValue),f=i(e.value);if(void 0===c&&void 0===f)return;return b.isString(f)?f:b.isString(c)?c:l||!l&&f?s?w([c,f],{classNameMergeFunction:p}):oe(oe({},c),f):f}return i(e)},fe=function(e,t,n){return ce(pe(ue.context.pt||_.pt,void 0,(function(e){return b.getItemValue(e,ue.cParams)})),e,t,n)},de=function(e,t,n){return ce(pe(ue.context.pt||_.pt,void 0,(function(e){return se(e,ue.cName,ue.cParams)||b.getItemValue(e,ue.cParams)})),e,t,n)},ye=function(e){var t=arguments.length>2?arguments[2]:void 0,n=t.name,r=t.styled,i=void 0!==r&&r,o=t.hostName,a=void 0===o?"":o,l=fe(se,"global.css",ue.cParams),u=b.toFlatCase(n),s=Q(ae,{name:"base",manual:!0}),p=s.load,c=Q(le,{name:"common",manual:!0}),f=c.load,d=Q(l,{name:"global",manual:!0}),y=d.load,v=Q(e,{name:n,manual:!0}),g=v.load,m=function(e){if(!a){var t=ce(pe((ue.cProps||{}).pt,u),se,"hooks.".concat(e)),n=de(se,"hooks.".concat(e));null==t||t(),null==n||n()}};m("useMountEffect"),q((function(){p(),y(),f(),i||g()})),J((function(){m("useUpdateEffect")})),M((function(){m("useUnmountEffect")}))};function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}function he(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,me(e,t)}function be(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Ee=i(111),Oe=i.n(Ee);const we=t().createContext(null);var Se=function(e){return e.scrollTop},xe="unmounted",Ae="exited",Te="entering",Ce="entered",Re="exiting",Pe=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Ae,r.appearStatus=Te):i=Ce:i=t.unmountOnExit||t.mountOnEnter?xe:Ae,r.state={status:i},r.nextCallback=null,r}he(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xe?{status:Ae}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Te&&n!==Ce&&(t=Te):n!==Te&&n!==Ce||(t=Re)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Te){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Oe().findDOMNode(this);n&&Se(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ae&&this.setState({status:xe})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Oe().findDOMNode(this),r],o=i[0],a=i[1],l=this.getTimeouts(),u=r?l.appear:l.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:Te},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:Ce},(function(){t.props.onEntered(o,a)}))}))}))):this.safeSetState({status:Ce},(function(){t.props.onEntered(o)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Oe().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Re},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ae},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ae},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Oe().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===xe)return null;var n=this.props,r=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,ge(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t().createElement(we.Provider,{value:null},"function"==typeof r?r(e,i):t().cloneElement(t().Children.only(r),i))},n}(t().Component);function Ne(){}Pe.contextType=we,Pe.propTypes={},Pe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ne,onEntering:Ne,onEntered:Ne,onExit:Ne,onExiting:Ne,onExited:Ne},Pe.UNMOUNTED=xe,Pe.EXITED=Ae,Pe.ENTERING=Te,Pe.ENTERED=Ce,Pe.EXITING=Re;const ke=Pe;var Le=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=be(n.className,r):n.setAttribute("class",be(n.className&&n.className.baseVal||"",r)));var n,r}))},Ie=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nl.width?(N.current.style.left="0px",N.current.style.right=window.innerWidth-l.width-r+"px"):(N.current.style.right="",N.current.style.left=r+"px"),N.current.style.top=i+"px",m.addClass(N.current,"p-tooltip-active")}else{var d=m.findCollisionPosition(a),y=te(e,"my")||o.my||d.my,v=te(e,"at")||o.at||d.at;N.current.style.padding="0px",m.flipfitCollision(N.current,e,y,v,(function(e){var t=e.at,n=t.x,r=t.y,i=e.my.x,a=o.at?"center"!==n&&n!==i?n:r:e.at["".concat(d.axis)];N.current.style.padding="",f(a),se(a),m.addClass(N.current,"p-tooltip-active")}))}},se=function(e){if(N.current){var t=getComputedStyle(N.current);"left"===e?N.current.style.left=parseFloat(t.left)-2*parseFloat(t.paddingLeft)+"px":"top"===e&&(N.current.style.top=parseFloat(t.top)-2*parseFloat(t.paddingTop)+"px")}},pe=function(e){if(e){var t=re(e),n=t.showEvents,r=t.hideEvents,i=ge(e);n.forEach((function(e){return null==i?void 0:i.addEventListener(e,ae)})),r.forEach((function(e){return null==i?void 0:i.addEventListener(e,le)}))}},ce=function(e){if(e){var t=re(e),n=t.showEvents,r=t.hideEvents,i=ge(e);n.forEach((function(e){return null==i?void 0:i.removeEventListener(e,ae)})),r.forEach((function(e){return null==i?void 0:i.removeEventListener(e,le)}))}},fe=function(e,t){ve();var n=te(L.current,e.toLowerCase())||o[e];n?F.current["".concat(e)]=setTimeout((function(){return t()}),n):t()},de=function(e){if(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0,1)},emit:function(e,t){var n=rt.get(e);n&&n.slice().forEach((function(e){return e(t)}))}});function ot(){return ot=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=parseFloat(t.style.maxHeight)?(t.style.overflowY="scroll",t.style.height=t.style.maxHeight):t.style.overflow="hidden",l.current=t.scrollHeight))};e.useEffect((function(){b.combinedRefs(a,n)}),[a,n]),e.useEffect((function(){o.autoResize&&f(!0)}),[o.autoResize]);var d=e.useMemo((function(){return b.isNotEmpty(o.value)||b.isNotEmpty(o.defaultValue)}),[o.value,o.defaultValue]),y=b.isNotEmpty(o.tooltip),v=r({ref:a,className:p("root",{isFilled:d}),onFocus:function(e){o.autoResize&&f(),o.onFocus&&o.onFocus(e)},onBlur:function(e){o.autoResize&&f(),o.onBlur&&o.onBlur(e)},onKeyUp:function(e){o.autoResize&&f(),o.onKeyUp&&o.onKeyUp(e)},onKeyDown:function(e){o.onKeyDown&&o.onKeyDown(e),o.keyfilter&&Be.onKeyPress(e,o.keyfilter,o.validateOnly)},onBeforeInput:function(e){o.onBeforeInput&&o.onBeforeInput(e),o.keyfilter&&Be.onBeforeInput(e,o.keyfilter,o.validateOnly)},onInput:function(e){var t=e.target;o.autoResize&&f(b.isEmpty(t.value)),o.onInput&&o.onInput(e),b.isNotEmpty(t.value)?m.addClass(t,"p-filled"):m.removeClass(t,"p-filled")},onPaste:function(e){o.onPaste&&o.onPaste(e),o.keyfilter&&Be.onPaste(e,o.keyfilter,o.validateOnly)}},Et.getOtherProps(o),s("root"));return e.createElement(e.Fragment,null,e.createElement("textarea",v),y&&e.createElement(nt,ft({target:a,content:o.tooltip},o.tooltipOptions,{pt:s("tooltip")})))})));St.displayName="InputTextarea";var xt={item:function(e){return u("p-mention-item",{"p-highlight":e.isSelected})},items:"p-mention-items",panel:function(e){return u("p-mention-panel p-component",e.props.panelClassName)},input:function(e){return u("p-mention-input",e.props.inputClassName)},root:function(e){var t=e.props;return u("p-mention p-component p-inputwrapper",{"p-inputwrapper-filled":e.isFilled,"p-inputwrapper-focus":e.focusedState},t.className)},transition:"p-connected-overlay"},At=ue.extend({defaultProps:{__TYPE:"Mention",autoHighlight:!0,className:null,delay:0,field:null,footerTemplate:null,headerTemplate:null,id:null,inputClassName:null,inputId:null,inputRef:null,inputStyle:null,itemTemplate:null,panelClassName:null,panelStyle:null,scrollHeight:"200px",style:null,suggestions:null,transitionOptions:null,trigger:"@",onBlur:null,onChange:null,onFocus:null,onHide:null,onInput:null,onSearch:null,onSelect:null,onShow:null,children:void 0},css:{classes:xt,styles:"\n@layer primereact {\n .p-mention {\n display: inline-flex;\n position: relative;\n }\n \n .p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n \n .p-mention .p-mention-panel {\n min-width: 100%;\n }\n \n .p-mention-panel {\n position: absolute;\n top: 0;\n left: 0;\n overflow: auto;\n }\n \n .p-mention-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n \n .p-mention-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n \n .p-fluid .p-mention {\n display: flex;\n }\n}\n"}});function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;tn.index||!n.index)&&(n={key:r,index:-1!==i?i+1:-1})})),n}var r=e.substring(0,t).lastIndexOf(o.trigger);return{key:o.trigger,index:-1!==r?r+1:-1}}(e,n);if(a.index>i)return a}return g}(n,i,r);if(a&&a.index>-1){var l=n.substring(a.index,r);R.current=setTimeout((function(){re(e,l,a)}),o.delay)}}else K()},re=function(e,t,n){o.onSearch&&(y(!0),h(n),o.onSearch({originalEvent:e,trigger:n.key,query:t}))},ie=function(e,t){var n=T.current.value,r=e.target.selectionStart,i=n.indexOf(" ",g.index),a=n.substring(g.index,i>-1?i:r),l=oe(t).replace(/\s+/g,"");if(a.trim()!==l){var u=n.substring(0,g.index),s=n.substring(i>-1?r:g.index+a.length);T.current.value="".concat(u).concat(l," ").concat(s),e.target=T.current,o.onChange&&o.onChange(e)}var p=g.index+l.length+1;T.current.setSelectionRange(p,p),K(),o.onSelect&&o.onSelect({originalEvent:e,suggestion:t})},oe=function(e){if(e){var t=Array.isArray(o.field)?o.field[o.trigger.findIndex((function(e){return e===g.key}))]:o.field;return t?b.resolveFieldData(e,t):e}return""},ae=T.current&&T.current.value,le=e.useMemo((function(){return b.isNotEmpty(o.value)||b.isNotEmpty(o.defaultValue)||b.isNotEmpty(ae)}),[o.value,o.defaultValue,ae]);e.useImperativeHandle(n,(function(){return{props:o,show:G,hide:K,focus:function(){return m.focus(T.current)},getElement:function(){return S.current},getOverlay:function(){return x.current},getInput:function(){return T.current}}})),e.useEffect((function(){b.combinedRefs(T,o.inputRef)}),[T,o.inputRef]),J((function(){var e=o.suggestions&&o.suggestions.length;if(e){var t=o.suggestions.map((function(){return!1}));w(t)}d&&(e?G():K(),l&&ee(),y(!1))}),[o.suggestions]),J((function(){var e=j(),t=e?m.isAttributeEquals(S.current,"data-p-inputwrapper-filled",!0):m.hasClass(S.current,"p-inputwrapper-filled");!le&&t&&(e?m.setAttributes(S.current,{"data-p-inputwrapper-filled":!1}):m.removeClass(S.current,"p-inputwrapper-filled"))}),[le]),M((function(){A.clear(x.current)}));var ue=function(t,n){var i,a=n+"_item",l=o.itemTemplate?b.getJSXElement(o.itemTemplate,t,{trigger:g?g.key:"",index:n}):oe(t),u=O[n],s=r({key:a,className:L("item",{isSelected:u}),onClick:function(e){return function(e,t){m.focus(T.current),ie(e,t)}(e,t)},"data-p-highlight":u},(i={selected:u},k("item",{context:{trigger:g?g.key:""},state:Ct({},i)})));return e.createElement("li",s,l,e.createElement(ct,null))},se=At.getOtherProps(o),pe=function(){var t=b.getJSXElement(o.headerTemplate,o),n=b.getJSXElement(o.footerTemplate,o),i=function(){var t=r({ref:C,className:L("items")},k("items"));if(o.suggestions){var n=o.suggestions.map(ue);return e.createElement("ul",t,n)}return null}(),a=r({ref:x,className:L("panel"),style:Ct({maxHeight:o.scrollHeight},o.panelStyle),onClick:te},k("panel")),u=r({classNames:L("transition"),in:l,timeout:{enter:120,exit:100},options:o.transitionOptions,unmountOnExit:!0,onEnter:V,onEntering:z,onEntered:q,onExit:Z,onExited:Q},k("transition")),s=e.createElement(We,ft({nodeRef:x},u),e.createElement("div",a,t,i,n));return e.createElement(Ve,{element:s,appendTo:"self"})}(),ce=r(Ct(Ct({ref:T,id:o.inputId,className:L("input"),style:o.inputStyle},se),{},{onFocus:function(e){c(!0),o.onFocus&&o.onFocus(e)},onBlur:function(e){c(!1),o.onBlur&&o.onBlur(e)},onKeyDown:function(e){if(l){var t=m.findSingle(x.current,'li[data-p-highlight="true"]');switch(e.which){case 40:if(t){var n=t.nextElementSibling;if(n){var r=m.index(n),i=m.index(t);w((function(e){var t=vt(e);return t[r]=!0,t[i]=!1,t})),m.scrollInView(x.current,n)}}else if(t=m.findSingle(x.current,"li")){var a=m.index(t);w((function(e){var t=vt(e);return t[a]=!0,t}))}e.preventDefault();break;case 38:if(t){var u=t.previousElementSibling;if(u){var s=m.index(u),p=m.index(t);w((function(e){var t=vt(e);return t[s]=!0,t[p]=!1,t})),m.scrollInView(x.current,u)}}e.preventDefault();break;case 8:var c=e.target,f=c.value,d=c.selectionStart;f.substring(d-1,d)===g.key&&K();break;case 13:t&&ie(e,o.suggestions[m.index(t)]),e.preventDefault();break;case 27:K(),e.preventDefault()}}},onInput:function(e){o.onInput&&o.onInput(e);var t=e.target.value.length>0;j()?m.setAttributes(S.current,{"data-p-inputwrapper-filled":t}):t?m.addClass(S.current,"p-inputwrapper-filled"):m.removeClass(S.current,"p-inputwrapper-filled")},onKeyUp:function(e){37!==e.which&&39!==e.which||ne(e)},onChange:function(e){o.onChange&&o.onChange(e),ne(e)},__parentMetadata:{parent:P}}),k("input")),fe=r({ref:S,id:o.id,className:L("root",{focusedState:p,isFilled:le}),style:o.style},At.getOtherProps(o),k("root"));return e.createElement("div",fe,e.createElement(St,ce),pe)})));Rt.displayName="Mention"})(),o})())); \ No newline at end of file diff --git a/components/bl-mention/src/lib/react-transition-group.js b/components/bl-mention/src/lib/react-transition-group.js deleted file mode 100644 index 463bb205a..000000000 --- a/components/bl-mention/src/lib/react-transition-group.js +++ /dev/null @@ -1,9 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e=e||self).ReactTransitionGroup={},e.React,e.ReactDOM)}(this,(function(e,t,n){"use strict";var r="default"in t?t.default:t;function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e,t){return e(t={exports:{}},t.exports),t.exports - /** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var c="function"==typeof Symbol&&Symbol.for,l=c?Symbol.for("react.element"):60103,u=c?Symbol.for("react.portal"):60106,p=c?Symbol.for("react.fragment"):60107,d=c?Symbol.for("react.strict_mode"):60108,f=c?Symbol.for("react.profiler"):60114,h=c?Symbol.for("react.provider"):60109,m=c?Symbol.for("react.context"):60110,E=c?Symbol.for("react.async_mode"):60111,y=c?Symbol.for("react.concurrent_mode"):60111,x=c?Symbol.for("react.forward_ref"):60112,v=c?Symbol.for("react.suspense"):60113,g=c?Symbol.for("react.suspense_list"):60120,b=c?Symbol.for("react.memo"):60115,C=c?Symbol.for("react.lazy"):60116,S=c?Symbol.for("react.block"):60121,O=c?Symbol.for("react.fundamental"):60117,N=c?Symbol.for("react.responder"):60118,T=c?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case l:switch(e=e.type){case E:case y:case p:case f:case d:case v:return e;default:switch(e=e&&e.$$typeof){case m:case x:case C:case b:case h:return e;default:return t}}case u:return t}}}function P(e){return k(e)===y}var w={AsyncMode:E,ConcurrentMode:y,ContextConsumer:m,ContextProvider:h,Element:l,ForwardRef:x,Fragment:p,Lazy:C,Memo:b,Portal:u,Profiler:f,StrictMode:d,Suspense:v,isAsyncMode:function(e){return P(e)||k(e)===E},isConcurrentMode:P,isContextConsumer:function(e){return k(e)===m},isContextProvider:function(e){return k(e)===h},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},isForwardRef:function(e){return k(e)===x},isFragment:function(e){return k(e)===p},isLazy:function(e){return k(e)===C},isMemo:function(e){return k(e)===b},isPortal:function(e){return k(e)===u},isProfiler:function(e){return k(e)===f},isStrictMode:function(e){return k(e)===d},isSuspense:function(e){return k(e)===v},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===p||e===y||e===f||e===d||e===v||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===C||e.$$typeof===b||e.$$typeof===h||e.$$typeof===m||e.$$typeof===x||e.$$typeof===O||e.$$typeof===N||e.$$typeof===T||e.$$typeof===S)},typeOf:k},j=a((function(e,t){})),M=(j.AsyncMode,j.ConcurrentMode,j.ContextConsumer,j.ContextProvider,j.Element,j.ForwardRef,j.Fragment,j.Lazy,j.Memo,j.Portal,j.Profiler,j.StrictMode,j.Suspense,j.isAsyncMode,j.isConcurrentMode,j.isContextConsumer,j.isContextProvider,j.isElement,j.isForwardRef,j.isFragment,j.isLazy,j.isMemo,j.isPortal,j.isProfiler,j.isStrictMode,j.isSuspense,j.isValidElementType,j.typeOf,a((function(e){e.exports=w})),Object.getOwnPropertySymbols),R=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;function A(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}})()&&Object.assign,Function.call.bind(Object.prototype.hasOwnProperty);function L(){}function _(){}_.resetWarningCache=L;var D=a((function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_,resetWarningCache:L};return n.PropTypes=n,n}()}));D.object,D.oneOfType,D.element,D.bool,D.func;function F(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var V={disabled:!1},I=r.createContext(null),U=function(e){return e.scrollTop},q="entering",z="entered",W=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus=q):o=z:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}s(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==q&&n!==z&&(t=q):n!==q&&n!==z||(t="exiting")}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===q){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this);r&&U(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},o.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[n.findDOMNode(this),o],s=i[0],a=i[1],c=this.getTimeouts(),l=o?c.appear:c.enter;!e&&!r||V.disabled?this.safeSetState({status:z},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,a),this.safeSetState({status:q},(function(){t.props.onEntering(s,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:z},(function(){t.props.onEntered(s,a)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n.findDOMNode(this);t&&!V.disabled?(this.props.onExit(o),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=i[0],a=i[1];this.props.addEndListener(s,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,i(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(I.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function G(){}W.contextType=I,W.propTypes={},W.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:G,onEntering:G,onEntered:G,onExit:G,onExiting:G,onExited:G},W.UNMOUNTED="unmounted",W.EXITED="exited",W.ENTERING=q,W.ENTERED=z,W.EXITING="exiting";var X=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},B=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=F(n.className,r):n.setAttribute("class",F(n.className&&n.className.baseVal||"",r)));var n,r}))},H=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o