@biznext-ui/react 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -6740,28 +6740,28 @@ function yg(e) {
6740
6740
  return n && r ? St(t, r) : St(t, document.body);
6741
6741
  }
6742
6742
  const Qr = Ue({ onClose: () => console.warn("Biznext-UI-Modal: Close Function not Implemented!") }), Zt = (e) => {
6743
- const { type: t, index: n, height: i, width: r, draggable: o, sx: s, isOpen: u, onClose: a, children: c } = e, l = !o;
6744
- return /* @__PURE__ */ w(Qr.Provider, { value: { onClose: a }, children: /* @__PURE__ */ w(yg, { children: /* @__PURE__ */ w(Yr, { children: u && /* @__PURE__ */ Ve("div", { className: Xe["modal-wrapper"], children: [
6743
+ const { type: t, index: n, height: i, width: r, sx: o, isOpen: s, onClose: u, children: a } = e;
6744
+ return /* @__PURE__ */ w(Qr.Provider, { value: { onClose: u }, children: /* @__PURE__ */ w(yg, { children: /* @__PURE__ */ w(Yr, { children: s && /* @__PURE__ */ Ve("div", { className: Xe["modal-wrapper"], children: [
6745
6745
  /* @__PURE__ */ w(
6746
6746
  un.div,
6747
6747
  {
6748
6748
  className: Xe["modal-overlay"],
6749
6749
  style: { zIndex: 9999 + (n || 0) },
6750
- onClick: a,
6750
+ onClick: u,
6751
6751
  initial: { opacity: 0 },
6752
6752
  animate: { opacity: 1 },
6753
6753
  exit: { opacity: 0 }
6754
6754
  }
6755
6755
  ),
6756
- /* @__PURE__ */ w(vg, { handle: "#handle", disabled: l, children: /* @__PURE__ */ w(
6756
+ /* @__PURE__ */ w(vg, { handle: "#handle", disabled: !1, children: /* @__PURE__ */ w(
6757
6757
  un.div,
6758
6758
  {
6759
6759
  initial: { opacity: 0, scale: 0.95 },
6760
6760
  className: Lt(Xe.modal, Xe[t]),
6761
- style: { height: i, width: r, zIndex: 99999 + (n || 0), ...s },
6761
+ style: { height: i, width: r, zIndex: 99999 + (n || 0), ...o },
6762
6762
  animate: { opacity: 1, scale: 1 },
6763
6763
  exit: { opacity: 0, scale: 0.95 },
6764
- children: c
6764
+ children: a
6765
6765
  }
6766
6766
  ) })
6767
6767
  ] }) }) }) });
package/dist/index.umd.js CHANGED
@@ -31,7 +31,7 @@ object-assign
31
31
  */var ci,qa;function Hp(){if(qa)return ci;qa=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var a=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(a.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ci=i()?Object.assign:function(o,s){for(var u,a=r(o),l,c=1;c<arguments.length;c++){u=Object(arguments[c]);for(var d in u)t.call(u,d)&&(a[d]=u[d]);if(e){l=e(u);for(var f=0;f<l.length;f++)n.call(u,l[f])&&(a[l[f]]=u[l[f]])}}return a},ci}var di,eu;function fi(){if(eu)return di;eu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return di=e,di}var hi,tu;function nu(){return tu||(tu=1,hi=Function.call.bind(Object.prototype.hasOwnProperty)),hi}var pi,ru;function kp(){if(ru)return pi;ru=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=fi(),n={},r=nu();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,u,a,l){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var d;try{if(typeof o[c]!="function"){var f=Error((a||"React class")+": "+u+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[c](s,c,a,u,null,t)}catch(b){d=b}if(d&&!(d instanceof Error)&&e((a||"React class")+": type specification of "+u+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+u+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},pi=i,pi}var mi,iu;function zp(){if(iu)return mi;iu=1;var e=$a(),t=Hp(),n=fi(),r=nu(),i=kp(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var a="Warning: "+u;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}});function s(){return null}return mi=function(u,a){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(E){var V=E&&(l&&E[l]||E[c]);if(typeof V=="function")return V}var f="<<anonymous>>",p={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:y(),arrayOf:m,element:I(),elementType:h(),instanceOf:S,node:X(),objectOf:P,oneOf:T,oneOfType:M,shape:ne,exact:de};function b(E,V){return E===V?E!==0||1/E===1/V:E!==E&&V!==V}function g(E,V){this.message=E,this.data=V&&typeof V=="object"?V:{},this.stack=""}g.prototype=Error.prototype;function v(E){if(process.env.NODE_ENV!=="production")var V={},D=0;function G(j,N,W,H,Y,J,fe){if(H=H||f,J=J||W,fe!==n){if(a){var A=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 A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=H+":"+W;!V[xe]&&D<3&&(o("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[xe]=!0,D++)}}return N[W]==null?j?N[W]===null?new g("The "+Y+" `"+J+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new g("The "+Y+" `"+J+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:E(N,W,H,Y,J)}var O=G.bind(null,!1);return O.isRequired=G.bind(null,!0),O}function C(E){function V(D,G,O,j,N,W){var H=D[G],Y=z(H);if(Y!==E){var J=re(H);return new g("Invalid "+j+" `"+N+"` of type "+("`"+J+"` supplied to `"+O+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return v(V)}function y(){return v(s)}function m(E){function V(D,G,O,j,N){if(typeof E!="function")return new g("Property `"+N+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var W=D[G];if(!Array.isArray(W)){var H=z(W);return new g("Invalid "+j+" `"+N+"` of type "+("`"+H+"` supplied to `"+O+"`, expected an array."))}for(var Y=0;Y<W.length;Y++){var J=E(W,Y,O,j,N+"["+Y+"]",n);if(J instanceof Error)return J}return null}return v(V)}function I(){function E(V,D,G,O,j){var N=V[D];if(!u(N)){var W=z(N);return new g("Invalid "+O+" `"+j+"` of type "+("`"+W+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return v(E)}function h(){function E(V,D,G,O,j){var N=V[D];if(!e.isValidElementType(N)){var W=z(N);return new g("Invalid "+O+" `"+j+"` of type "+("`"+W+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return v(E)}function S(E){function V(D,G,O,j,N){if(!(D[G]instanceof E)){var W=E.name||f,H=be(D[G]);return new g("Invalid "+j+" `"+N+"` of type "+("`"+H+"` supplied to `"+O+"`, expected ")+("instance of `"+W+"`."))}return null}return v(V)}function T(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function V(D,G,O,j,N){for(var W=D[G],H=0;H<E.length;H++)if(b(W,E[H]))return null;var Y=JSON.stringify(E,function(fe,A){var xe=re(A);return xe==="symbol"?String(A):A});return new g("Invalid "+j+" `"+N+"` of value `"+String(W)+"` "+("supplied to `"+O+"`, expected one of "+Y+"."))}return v(V)}function P(E){function V(D,G,O,j,N){if(typeof E!="function")return new g("Property `"+N+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var W=D[G],H=z(W);if(H!=="object")return new g("Invalid "+j+" `"+N+"` of type "+("`"+H+"` supplied to `"+O+"`, expected an object."));for(var Y in W)if(r(W,Y)){var J=E(W,Y,O,j,N+"."+Y,n);if(J instanceof Error)return J}return null}return v(V)}function M(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var V=0;V<E.length;V++){var D=E[V];if(typeof D!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(D)+" at index "+V+"."),s}function G(O,j,N,W,H){for(var Y=[],J=0;J<E.length;J++){var fe=E[J],A=fe(O,j,N,W,H,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&Y.push(A.data.expectedType)}var xe=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new g("Invalid "+W+" `"+H+"` supplied to "+("`"+N+"`"+xe+"."))}return v(G)}function X(){function E(V,D,G,O,j){return oe(V[D])?null:new g("Invalid "+O+" `"+j+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return v(E)}function U(E,V,D,G,O){return new g((E||"React class")+": "+V+" type `"+D+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function ne(E){function V(D,G,O,j,N){var W=D[G],H=z(W);if(H!=="object")return new g("Invalid "+j+" `"+N+"` of type `"+H+"` "+("supplied to `"+O+"`, expected `object`."));for(var Y in E){var J=E[Y];if(typeof J!="function")return U(O,j,N,Y,re(J));var fe=J(W,Y,O,j,N+"."+Y,n);if(fe)return fe}return null}return v(V)}function de(E){function V(D,G,O,j,N){var W=D[G],H=z(W);if(H!=="object")return new g("Invalid "+j+" `"+N+"` of type `"+H+"` "+("supplied to `"+O+"`, expected `object`."));var Y=t({},D[G],E);for(var J in Y){var fe=E[J];if(r(E,J)&&typeof fe!="function")return U(O,j,N,J,re(fe));if(!fe)return new g("Invalid "+j+" `"+N+"` key `"+J+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(D[G],null," ")+`
32
32
  Valid keys: `+JSON.stringify(Object.keys(E),null," "));var A=fe(W,J,O,j,N+"."+J,n);if(A)return A}return null}return v(V)}function oe(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(oe);if(E===null||u(E))return!0;var V=d(E);if(V){var D=V.call(E),G;if(V!==E.entries){for(;!(G=D.next()).done;)if(!oe(G.value))return!1}else for(;!(G=D.next()).done;){var O=G.value;if(O&&!oe(O[1]))return!1}}else return!1;return!0;default:return!1}}function k(E,V){return E==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function z(E){var V=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":k(V,E)?"symbol":V}function re(E){if(typeof E>"u"||E===null)return""+E;var V=z(E);if(V==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return V}function ie(E){var V=re(E);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function be(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},mi}var gi,ou;function jp(){if(ou)return gi;ou=1;var e=fi();function t(){}function n(){}return n.resetWarningCache=t,gi=function(){function r(s,u,a,l,c,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},gi}if(process.env.NODE_ENV!=="production"){var Yp=$a(),Jp=!0;li.exports=zp()(Yp.isElement,Jp)}else li.exports=jp()();var su=li.exports;function au(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=au(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function uu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=au(e))&&(r&&(r+=" "),r+=t);return r}const Up=Hl(Object.freeze(Object.defineProperty({__proto__:null,clsx:uu,default:uu},Symbol.toStringTag,{value:"Module"})));var ae={},Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.dontSetMe=qp,Ze.findInArray=_p,Ze.int=$p,Ze.isFunction=Qp,Ze.isNum=Kp;function _p(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function Qp(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function Kp(e){return typeof e=="number"&&!isNaN(e)}function $p(e){return parseInt(e,10)}function qp(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var vt={};Object.defineProperty(vt,"__esModule",{value:!0}),vt.browserPrefixToKey=cu,vt.browserPrefixToStyle=em,vt.default=void 0,vt.getPrefix=lu;const bi=["Moz","Webkit","O","ms"];function lu(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<bi.length;r++)if(cu(t,bi[r])in n)return bi[r];return""}function cu(e,t){return t?"".concat(t).concat(tm(e)):e}function em(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function tm(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}vt.default=lu(),Object.defineProperty(ae,"__esModule",{value:!0}),ae.addClassName=pu,ae.addEvent=im,ae.addUserSelectStyles=mm,ae.createCSSTransform=dm,ae.createSVGTransform=fm,ae.getTouch=hm,ae.getTouchIdentifier=pm,ae.getTranslation=vi,ae.innerHeight=um,ae.innerWidth=lm,ae.matchesSelector=hu,ae.matchesSelectorAndParentsTo=rm,ae.offsetXYFromParent=cm,ae.outerHeight=sm,ae.outerWidth=am,ae.removeClassName=mu,ae.removeEvent=om,ae.removeUserSelectStyles=gm;var we=Ze,du=nm(vt);function fu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fu=function(r){return r?n:t})(e)}function nm(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}let Gn="";function hu(e,t){return Gn||(Gn=(0,we.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,we.isFunction)(e[n])})),(0,we.isFunction)(e[Gn])?e[Gn](t):!1}function rm(e,t,n){let r=e;do{if(hu(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function im(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function om(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function sm(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,we.int)(n.borderTopWidth),t+=(0,we.int)(n.borderBottomWidth),t}function am(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,we.int)(n.borderLeftWidth),t+=(0,we.int)(n.borderRightWidth),t}function um(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,we.int)(n.paddingTop),t-=(0,we.int)(n.paddingBottom),t}function lm(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,we.int)(n.paddingLeft),t-=(0,we.int)(n.paddingRight),t}function cm(e,t,n){const i=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-i.left)/n,s=(e.clientY+t.scrollTop-i.top)/n;return{x:o,y:s}}function dm(e,t){const n=vi(e,t,"px");return{[(0,du.browserPrefixToKey)("transform",du.default)]:n}}function fm(e,t){return vi(e,t,"")}function vi(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const s="".concat(typeof t.x=="string"?t.x:t.x+n),u="".concat(typeof t.y=="string"?t.y:t.y+n);o="translate(".concat(s,", ").concat(u,")")+o}return o}function hm(e,t){return e.targetTouches&&(0,we.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,we.findInArray)(e.changedTouches,n=>t===n.identifier)}function pm(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function mm(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
33
33
  `,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
34
- `,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&pu(e.body,"react-draggable-transparent-selection")}function gm(e){if(e)try{if(e.body&&mu(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function pu(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function mu(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var He={};Object.defineProperty(He,"__esModule",{value:!0}),He.canDragX=ym,He.canDragY=Cm,He.createCoreData=xm,He.createDraggableData=Am,He.getBoundPosition=bm,He.getControlPosition=Im,He.snapToGrid=vm;var Ve=Ze,Dt=ae;function bm(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:Sm(r);const i=yi(e);if(typeof r=="string"){const{ownerDocument:o}=i,s=o.defaultView;let u;if(r==="parent"?u=i.parentNode:u=o.querySelector(r),!(u instanceof s.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const a=u,l=s.getComputedStyle(i),c=s.getComputedStyle(a);r={left:-i.offsetLeft+(0,Ve.int)(c.paddingLeft)+(0,Ve.int)(l.marginLeft),top:-i.offsetTop+(0,Ve.int)(c.paddingTop)+(0,Ve.int)(l.marginTop),right:(0,Dt.innerWidth)(a)-(0,Dt.outerWidth)(i)-i.offsetLeft+(0,Ve.int)(c.paddingRight)-(0,Ve.int)(l.marginRight),bottom:(0,Dt.innerHeight)(a)-(0,Dt.outerHeight)(i)-i.offsetTop+(0,Ve.int)(c.paddingBottom)-(0,Ve.int)(l.marginBottom)}}return(0,Ve.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,Ve.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,Ve.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,Ve.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function vm(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function ym(e){return e.props.axis==="both"||e.props.axis==="x"}function Cm(e){return e.props.axis==="both"||e.props.axis==="y"}function Im(e,t,n){const r=typeof t=="number"?(0,Dt.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const i=yi(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,Dt.offsetXYFromParent)(r||e,o,n.props.scale)}function xm(e,t,n){const r=!(0,Ve.isNum)(e.lastX),i=yi(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function Am(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function Sm(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function yi(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var On={},Nn={};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=Tm;function Tm(){}Object.defineProperty(On,"__esModule",{value:!0}),On.default=void 0;var Ci=Pm(x),Se=xi(su),Em=xi(Le),Ce=ae,lt=He,Ii=Ze,qt=xi(Nn);function xi(e){return e&&e.__esModule?e:{default:e}}function gu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(gu=function(r){return r?n:t})(e)}function Pm(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=gu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function Ae(e,t,n){return t=wm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wm(e){var t=Vm(e,"string");return typeof t=="symbol"?t:String(t)}function Vm(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const Ne={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let ct=Ne.mouse,Rn=class extends Ci.Component{constructor(){super(...arguments),Ae(this,"dragging",!1),Ae(this,"lastX",NaN),Ae(this,"lastY",NaN),Ae(this,"touchIdentifier",null),Ae(this,"mounted",!1),Ae(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,Ce.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,Ce.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const i=(0,Ce.getTouchIdentifier)(t);this.touchIdentifier=i;const o=(0,lt.getControlPosition)(t,i,this);if(o==null)return;const{x:s,y:u}=o,a=(0,lt.createCoreData)(this,s,u);(0,qt.default)("DraggableCore: handleDragStart: %j",a),(0,qt.default)("calling",this.props.onStart),!(this.props.onStart(t,a)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ce.addUserSelectStyles)(r),this.dragging=!0,this.lastX=s,this.lastY=u,(0,Ce.addEvent)(r,ct.move,this.handleDrag),(0,Ce.addEvent)(r,ct.stop,this.handleDragStop))}),Ae(this,"handleDrag",t=>{const n=(0,lt.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let u=r-this.lastX,a=i-this.lastY;if([u,a]=(0,lt.snapToGrid)(this.props.grid,u,a),!u&&!a)return;r=this.lastX+u,i=this.lastY+a}const o=(0,lt.createCoreData)(this,r,i);if((0,qt.default)("DraggableCore: handleDrag: %j",o),this.props.onDrag(t,o)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const a=document.createEvent("MouseEvents");a.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(a)}return}this.lastX=r,this.lastY=i}),Ae(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,lt.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let a=r-this.lastX||0,l=i-this.lastY||0;[a,l]=(0,lt.snapToGrid)(this.props.grid,a,l),r=this.lastX+a,i=this.lastY+l}const o=(0,lt.createCoreData)(this,r,i);if(this.props.onStop(t,o)===!1||this.mounted===!1)return!1;const u=this.findDOMNode();u&&this.props.enableUserSelectHack&&(0,Ce.removeUserSelectStyles)(u.ownerDocument),(0,qt.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,u&&((0,qt.default)("DraggableCore: Removing handlers"),(0,Ce.removeEvent)(u.ownerDocument,ct.move,this.handleDrag),(0,Ce.removeEvent)(u.ownerDocument,ct.stop,this.handleDragStop))}),Ae(this,"onMouseDown",t=>(ct=Ne.mouse,this.handleDragStart(t))),Ae(this,"onMouseUp",t=>(ct=Ne.mouse,this.handleDragStop(t))),Ae(this,"onTouchStart",t=>(ct=Ne.touch,this.handleDragStart(t))),Ae(this,"onTouchEnd",t=>(ct=Ne.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,Ce.addEvent)(t,Ne.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,Ce.removeEvent)(n,Ne.mouse.move,this.handleDrag),(0,Ce.removeEvent)(n,Ne.touch.move,this.handleDrag),(0,Ce.removeEvent)(n,Ne.mouse.stop,this.handleDragStop),(0,Ce.removeEvent)(n,Ne.touch.stop,this.handleDragStop),(0,Ce.removeEvent)(t,Ne.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ce.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:Em.default.findDOMNode(this)}render(){return Ci.cloneElement(Ci.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};On.default=Rn,Ae(Rn,"displayName","DraggableCore"),Ae(Rn,"propTypes",{allowAnyClick:Se.default.bool,children:Se.default.node.isRequired,disabled:Se.default.bool,enableUserSelectHack:Se.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Se.default.arrayOf(Se.default.number),handle:Se.default.string,cancel:Se.default.string,nodeRef:Se.default.object,onStart:Se.default.func,onDrag:Se.default.func,onStop:Se.default.func,onMouseDown:Se.default.func,scale:Se.default.number,className:Ii.dontSetMe,style:Ii.dontSetMe,transform:Ii.dontSetMe}),Ae(Rn,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return a.default}}),e.default=void 0;var t=f(x),n=c(su),r=c(Le),i=c(Up),o=ae,s=He,u=Ze,a=c(On),l=c(Nn);function c(y){return y&&y.__esModule?y:{default:y}}function d(y){if(typeof WeakMap!="function")return null;var m=new WeakMap,I=new WeakMap;return(d=function(h){return h?I:m})(y)}function f(y,m){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var I=d(m);if(I&&I.has(y))return I.get(y);var h={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in y)if(T!=="default"&&Object.prototype.hasOwnProperty.call(y,T)){var P=S?Object.getOwnPropertyDescriptor(y,T):null;P&&(P.get||P.set)?Object.defineProperty(h,T,P):h[T]=y[T]}return h.default=y,I&&I.set(y,h),h}function p(){return p=Object.assign?Object.assign.bind():function(y){for(var m=1;m<arguments.length;m++){var I=arguments[m];for(var h in I)Object.prototype.hasOwnProperty.call(I,h)&&(y[h]=I[h])}return y},p.apply(this,arguments)}function b(y,m,I){return m=g(m),m in y?Object.defineProperty(y,m,{value:I,enumerable:!0,configurable:!0,writable:!0}):y[m]=I,y}function g(y){var m=v(y,"string");return typeof m=="symbol"?m:String(m)}function v(y,m){if(typeof y!="object"||y===null)return y;var I=y[Symbol.toPrimitive];if(I!==void 0){var h=I.call(y,m||"default");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(y)}class C extends t.Component{static getDerivedStateFromProps(m,I){let{position:h}=m,{prevPropsPosition:S}=I;return h&&(!S||h.x!==S.x||h.y!==S.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:h,prevPropsPosition:S}),{x:h.x,y:h.y,prevPropsPosition:{...h}}):null}constructor(m){super(m),b(this,"onDragStart",(I,h)=>{if((0,l.default)("Draggable: onDragStart: %j",h),this.props.onStart(I,(0,s.createDraggableData)(this,h))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),b(this,"onDrag",(I,h)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",h);const S=(0,s.createDraggableData)(this,h),T={x:S.x,y:S.y,slackX:0,slackY:0};if(this.props.bounds){const{x:M,y:X}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[U,ne]=(0,s.getBoundPosition)(this,T.x,T.y);T.x=U,T.y=ne,T.slackX=this.state.slackX+(M-T.x),T.slackY=this.state.slackY+(X-T.y),S.x=T.x,S.y=T.y,S.deltaX=T.x-this.state.x,S.deltaY=T.y-this.state.y}if(this.props.onDrag(I,S)===!1)return!1;this.setState(T)}),b(this,"onDragStop",(I,h)=>{if(!this.state.dragging||this.props.onStop(I,(0,s.createDraggableData)(this,h))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",h);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:M,y:X}=this.props.position;T.x=M,T.y=X}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:m.position?m.position.x:m.defaultPosition.x,y:m.position?m.position.y:m.defaultPosition.y,prevPropsPosition:{...m.position},slackX:0,slackY:0,isElementSVG:!1},m.position&&!(m.onDrag||m.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var m,I;return(m=(I=this.props)===null||I===void 0||(I=I.nodeRef)===null||I===void 0?void 0:I.current)!==null&&m!==void 0?m:r.default.findDOMNode(this)}render(){const{axis:m,bounds:I,children:h,defaultPosition:S,defaultClassName:T,defaultClassNameDragging:P,defaultClassNameDragged:M,position:X,positionOffset:U,scale:ne,...de}=this.props;let oe={},k=null;const re=!!!X||this.state.dragging,ie=X||S,be={x:(0,s.canDragX)(this)&&re?this.state.x:ie.x,y:(0,s.canDragY)(this)&&re?this.state.y:ie.y};this.state.isElementSVG?k=(0,o.createSVGTransform)(be,U):oe=(0,o.createCSSTransform)(be,U);const E=(0,i.default)(h.props.className||"",T,{[P]:this.state.dragging,[M]:this.state.dragged});return t.createElement(a.default,p({},de,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(h),{className:E,style:{...h.props.style,...oe},transform:k}))}}e.default=C,b(C,"displayName","Draggable"),b(C,"propTypes",{...a.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),b(C,"defaultProps",{...a.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Ua);const{default:bu,DraggableCore:Dm}=Ua;Mn.exports=bu,Mn.exports.default=bu,Mn.exports.DraggableCore=Dm;var Fm=Mn.exports;const Mm=$i(Fm);function Bm(e){const{children:t}=e,[n,r]=x.useState(!1);x.useEffect(()=>{r(!0)},[]);const i=document.getElementById("biznext-ui-modal-portal");return n&&i?Le.createPortal(t,i):Le.createPortal(t,document.body)}const Ai=x.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),Ft=e=>{const{type:t,index:n,height:r,width:i,draggable:o,sx:s,isOpen:u,onClose:a,children:l}=e,c=!o;return w.jsx(Ai.Provider,{value:{onClose:a},children:w.jsx(Bm,{children:w.jsx(ai,{children:u&&w.jsxs("div",{className:Oe["modal-wrapper"],children:[w.jsx($t.div,{className:Oe["modal-overlay"],style:{zIndex:9999+(n||0)},onClick:a,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),w.jsx(Mm,{handle:"#handle",disabled:c,children:w.jsx($t.div,{initial:{opacity:0,scale:.95},className:It(Oe.modal,Oe[t]),style:{height:r,width:i,zIndex:99999+(n||0),...s},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:l})})]})})})})},Gm=Ft,Om=({children:e})=>w.jsx("div",{className:Oe["modal-content"],children:e}),Nm=({children:e})=>{const{onClose:t}=x.useContext(Ai);return w.jsxs("header",{id:"handle",className:Oe["modal-header"],children:[e,w.jsx("button",{type:"button",className:Oe["module-header-close-btn"],onClick:t,children:w.jsx(Wp,{})})]})},Rm=({children:e})=>w.jsx("h2",{className:Oe["modal-title"],children:e}),Lm=({children:e})=>w.jsx("div",{className:Oe["modal-body"],children:e}),Wm=e=>{const{children:t,closeTitle:n}=e,{onClose:r}=x.useContext(Ai);return w.jsxs("footer",{className:Oe["modal-footer"],children:[t,w.jsx("button",{type:"button",className:Oe["modal-footer-close-btn"],onClick:r,children:n||"Cancel"})]})};Ft.Content=Om,Ft.Header=Nm,Ft.Title=Rm,Ft.Body=Lm,Ft.Footer=Wm;const Xm=()=>x.useContext(Ja),Re={form:"biznext-ui-WgISRe1bJDU-5","form-group":"biznext-ui-PDYbgOuoFL0-3","form-input-group":"biznext-ui-7dIDGqcfwy4-e","form-input-group-label":"biznext-ui-3qrluRcbSyQ-d",required:"biznext-ui-S1AWtF9fE-s-4","form-input-control-group":"biznext-ui-GQweSyKURD4-1","form-input-control":"biznext-ui-Pxa8kMsnvaQ-3","validation-error":"biznext-ui-B7sgFlayyBI-0","form-select-control":"biznext-ui-TyZSBF2HLh0-4","form-input-group-error-text":"biznext-ui-npOI3UC2M38-9"};function yt(e){"@babel/helpers - typeof";return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(e)}function Zm(e,t){if(yt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vu(e){var t=Zm(e,"string");return yt(t)=="symbol"?t:t+""}function en(e,t,n){return(t=vu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yu(Object(n),!0).forEach(function(r){en(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hm(e){if(Array.isArray(e))return e}function km(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function Si(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cu(e,t){if(e){if(typeof e=="string")return Si(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Si(e,t):void 0}}function zm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34
+ `,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&pu(e.body,"react-draggable-transparent-selection")}function gm(e){if(e)try{if(e.body&&mu(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function pu(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function mu(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var He={};Object.defineProperty(He,"__esModule",{value:!0}),He.canDragX=ym,He.canDragY=Cm,He.createCoreData=xm,He.createDraggableData=Am,He.getBoundPosition=bm,He.getControlPosition=Im,He.snapToGrid=vm;var Ve=Ze,Dt=ae;function bm(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:Sm(r);const i=yi(e);if(typeof r=="string"){const{ownerDocument:o}=i,s=o.defaultView;let u;if(r==="parent"?u=i.parentNode:u=o.querySelector(r),!(u instanceof s.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const a=u,l=s.getComputedStyle(i),c=s.getComputedStyle(a);r={left:-i.offsetLeft+(0,Ve.int)(c.paddingLeft)+(0,Ve.int)(l.marginLeft),top:-i.offsetTop+(0,Ve.int)(c.paddingTop)+(0,Ve.int)(l.marginTop),right:(0,Dt.innerWidth)(a)-(0,Dt.outerWidth)(i)-i.offsetLeft+(0,Ve.int)(c.paddingRight)-(0,Ve.int)(l.marginRight),bottom:(0,Dt.innerHeight)(a)-(0,Dt.outerHeight)(i)-i.offsetTop+(0,Ve.int)(c.paddingBottom)-(0,Ve.int)(l.marginBottom)}}return(0,Ve.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,Ve.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,Ve.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,Ve.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function vm(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function ym(e){return e.props.axis==="both"||e.props.axis==="x"}function Cm(e){return e.props.axis==="both"||e.props.axis==="y"}function Im(e,t,n){const r=typeof t=="number"?(0,Dt.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const i=yi(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,Dt.offsetXYFromParent)(r||e,o,n.props.scale)}function xm(e,t,n){const r=!(0,Ve.isNum)(e.lastX),i=yi(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function Am(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function Sm(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function yi(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var On={},Nn={};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=Tm;function Tm(){}Object.defineProperty(On,"__esModule",{value:!0}),On.default=void 0;var Ci=Pm(x),Se=xi(su),Em=xi(Le),Ce=ae,lt=He,Ii=Ze,qt=xi(Nn);function xi(e){return e&&e.__esModule?e:{default:e}}function gu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(gu=function(r){return r?n:t})(e)}function Pm(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=gu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function Ae(e,t,n){return t=wm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wm(e){var t=Vm(e,"string");return typeof t=="symbol"?t:String(t)}function Vm(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const Ne={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let ct=Ne.mouse,Rn=class extends Ci.Component{constructor(){super(...arguments),Ae(this,"dragging",!1),Ae(this,"lastX",NaN),Ae(this,"lastY",NaN),Ae(this,"touchIdentifier",null),Ae(this,"mounted",!1),Ae(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,Ce.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,Ce.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const i=(0,Ce.getTouchIdentifier)(t);this.touchIdentifier=i;const o=(0,lt.getControlPosition)(t,i,this);if(o==null)return;const{x:s,y:u}=o,a=(0,lt.createCoreData)(this,s,u);(0,qt.default)("DraggableCore: handleDragStart: %j",a),(0,qt.default)("calling",this.props.onStart),!(this.props.onStart(t,a)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ce.addUserSelectStyles)(r),this.dragging=!0,this.lastX=s,this.lastY=u,(0,Ce.addEvent)(r,ct.move,this.handleDrag),(0,Ce.addEvent)(r,ct.stop,this.handleDragStop))}),Ae(this,"handleDrag",t=>{const n=(0,lt.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let u=r-this.lastX,a=i-this.lastY;if([u,a]=(0,lt.snapToGrid)(this.props.grid,u,a),!u&&!a)return;r=this.lastX+u,i=this.lastY+a}const o=(0,lt.createCoreData)(this,r,i);if((0,qt.default)("DraggableCore: handleDrag: %j",o),this.props.onDrag(t,o)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const a=document.createEvent("MouseEvents");a.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(a)}return}this.lastX=r,this.lastY=i}),Ae(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,lt.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let a=r-this.lastX||0,l=i-this.lastY||0;[a,l]=(0,lt.snapToGrid)(this.props.grid,a,l),r=this.lastX+a,i=this.lastY+l}const o=(0,lt.createCoreData)(this,r,i);if(this.props.onStop(t,o)===!1||this.mounted===!1)return!1;const u=this.findDOMNode();u&&this.props.enableUserSelectHack&&(0,Ce.removeUserSelectStyles)(u.ownerDocument),(0,qt.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,u&&((0,qt.default)("DraggableCore: Removing handlers"),(0,Ce.removeEvent)(u.ownerDocument,ct.move,this.handleDrag),(0,Ce.removeEvent)(u.ownerDocument,ct.stop,this.handleDragStop))}),Ae(this,"onMouseDown",t=>(ct=Ne.mouse,this.handleDragStart(t))),Ae(this,"onMouseUp",t=>(ct=Ne.mouse,this.handleDragStop(t))),Ae(this,"onTouchStart",t=>(ct=Ne.touch,this.handleDragStart(t))),Ae(this,"onTouchEnd",t=>(ct=Ne.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,Ce.addEvent)(t,Ne.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,Ce.removeEvent)(n,Ne.mouse.move,this.handleDrag),(0,Ce.removeEvent)(n,Ne.touch.move,this.handleDrag),(0,Ce.removeEvent)(n,Ne.mouse.stop,this.handleDragStop),(0,Ce.removeEvent)(n,Ne.touch.stop,this.handleDragStop),(0,Ce.removeEvent)(t,Ne.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ce.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:Em.default.findDOMNode(this)}render(){return Ci.cloneElement(Ci.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};On.default=Rn,Ae(Rn,"displayName","DraggableCore"),Ae(Rn,"propTypes",{allowAnyClick:Se.default.bool,children:Se.default.node.isRequired,disabled:Se.default.bool,enableUserSelectHack:Se.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Se.default.arrayOf(Se.default.number),handle:Se.default.string,cancel:Se.default.string,nodeRef:Se.default.object,onStart:Se.default.func,onDrag:Se.default.func,onStop:Se.default.func,onMouseDown:Se.default.func,scale:Se.default.number,className:Ii.dontSetMe,style:Ii.dontSetMe,transform:Ii.dontSetMe}),Ae(Rn,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return a.default}}),e.default=void 0;var t=f(x),n=c(su),r=c(Le),i=c(Up),o=ae,s=He,u=Ze,a=c(On),l=c(Nn);function c(y){return y&&y.__esModule?y:{default:y}}function d(y){if(typeof WeakMap!="function")return null;var m=new WeakMap,I=new WeakMap;return(d=function(h){return h?I:m})(y)}function f(y,m){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var I=d(m);if(I&&I.has(y))return I.get(y);var h={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in y)if(T!=="default"&&Object.prototype.hasOwnProperty.call(y,T)){var P=S?Object.getOwnPropertyDescriptor(y,T):null;P&&(P.get||P.set)?Object.defineProperty(h,T,P):h[T]=y[T]}return h.default=y,I&&I.set(y,h),h}function p(){return p=Object.assign?Object.assign.bind():function(y){for(var m=1;m<arguments.length;m++){var I=arguments[m];for(var h in I)Object.prototype.hasOwnProperty.call(I,h)&&(y[h]=I[h])}return y},p.apply(this,arguments)}function b(y,m,I){return m=g(m),m in y?Object.defineProperty(y,m,{value:I,enumerable:!0,configurable:!0,writable:!0}):y[m]=I,y}function g(y){var m=v(y,"string");return typeof m=="symbol"?m:String(m)}function v(y,m){if(typeof y!="object"||y===null)return y;var I=y[Symbol.toPrimitive];if(I!==void 0){var h=I.call(y,m||"default");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(y)}class C extends t.Component{static getDerivedStateFromProps(m,I){let{position:h}=m,{prevPropsPosition:S}=I;return h&&(!S||h.x!==S.x||h.y!==S.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:h,prevPropsPosition:S}),{x:h.x,y:h.y,prevPropsPosition:{...h}}):null}constructor(m){super(m),b(this,"onDragStart",(I,h)=>{if((0,l.default)("Draggable: onDragStart: %j",h),this.props.onStart(I,(0,s.createDraggableData)(this,h))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),b(this,"onDrag",(I,h)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",h);const S=(0,s.createDraggableData)(this,h),T={x:S.x,y:S.y,slackX:0,slackY:0};if(this.props.bounds){const{x:M,y:X}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[U,ne]=(0,s.getBoundPosition)(this,T.x,T.y);T.x=U,T.y=ne,T.slackX=this.state.slackX+(M-T.x),T.slackY=this.state.slackY+(X-T.y),S.x=T.x,S.y=T.y,S.deltaX=T.x-this.state.x,S.deltaY=T.y-this.state.y}if(this.props.onDrag(I,S)===!1)return!1;this.setState(T)}),b(this,"onDragStop",(I,h)=>{if(!this.state.dragging||this.props.onStop(I,(0,s.createDraggableData)(this,h))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",h);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:M,y:X}=this.props.position;T.x=M,T.y=X}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:m.position?m.position.x:m.defaultPosition.x,y:m.position?m.position.y:m.defaultPosition.y,prevPropsPosition:{...m.position},slackX:0,slackY:0,isElementSVG:!1},m.position&&!(m.onDrag||m.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var m,I;return(m=(I=this.props)===null||I===void 0||(I=I.nodeRef)===null||I===void 0?void 0:I.current)!==null&&m!==void 0?m:r.default.findDOMNode(this)}render(){const{axis:m,bounds:I,children:h,defaultPosition:S,defaultClassName:T,defaultClassNameDragging:P,defaultClassNameDragged:M,position:X,positionOffset:U,scale:ne,...de}=this.props;let oe={},k=null;const re=!!!X||this.state.dragging,ie=X||S,be={x:(0,s.canDragX)(this)&&re?this.state.x:ie.x,y:(0,s.canDragY)(this)&&re?this.state.y:ie.y};this.state.isElementSVG?k=(0,o.createSVGTransform)(be,U):oe=(0,o.createCSSTransform)(be,U);const E=(0,i.default)(h.props.className||"",T,{[P]:this.state.dragging,[M]:this.state.dragged});return t.createElement(a.default,p({},de,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(h),{className:E,style:{...h.props.style,...oe},transform:k}))}}e.default=C,b(C,"displayName","Draggable"),b(C,"propTypes",{...a.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),b(C,"defaultProps",{...a.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Ua);const{default:bu,DraggableCore:Dm}=Ua;Mn.exports=bu,Mn.exports.default=bu,Mn.exports.DraggableCore=Dm;var Fm=Mn.exports;const Mm=$i(Fm);function Bm(e){const{children:t}=e,[n,r]=x.useState(!1);x.useEffect(()=>{r(!0)},[]);const i=document.getElementById("biznext-ui-modal-portal");return n&&i?Le.createPortal(t,i):Le.createPortal(t,document.body)}const Ai=x.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),Ft=e=>{const{type:t,index:n,height:r,width:i,sx:o,isOpen:s,onClose:u,children:a}=e;return w.jsx(Ai.Provider,{value:{onClose:u},children:w.jsx(Bm,{children:w.jsx(ai,{children:s&&w.jsxs("div",{className:Oe["modal-wrapper"],children:[w.jsx($t.div,{className:Oe["modal-overlay"],style:{zIndex:9999+(n||0)},onClick:u,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),w.jsx(Mm,{handle:"#handle",disabled:!1,children:w.jsx($t.div,{initial:{opacity:0,scale:.95},className:It(Oe.modal,Oe[t]),style:{height:r,width:i,zIndex:99999+(n||0),...o},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:a})})]})})})})},Gm=Ft,Om=({children:e})=>w.jsx("div",{className:Oe["modal-content"],children:e}),Nm=({children:e})=>{const{onClose:t}=x.useContext(Ai);return w.jsxs("header",{id:"handle",className:Oe["modal-header"],children:[e,w.jsx("button",{type:"button",className:Oe["module-header-close-btn"],onClick:t,children:w.jsx(Wp,{})})]})},Rm=({children:e})=>w.jsx("h2",{className:Oe["modal-title"],children:e}),Lm=({children:e})=>w.jsx("div",{className:Oe["modal-body"],children:e}),Wm=e=>{const{children:t,closeTitle:n}=e,{onClose:r}=x.useContext(Ai);return w.jsxs("footer",{className:Oe["modal-footer"],children:[t,w.jsx("button",{type:"button",className:Oe["modal-footer-close-btn"],onClick:r,children:n||"Cancel"})]})};Ft.Content=Om,Ft.Header=Nm,Ft.Title=Rm,Ft.Body=Lm,Ft.Footer=Wm;const Xm=()=>x.useContext(Ja),Re={form:"biznext-ui-WgISRe1bJDU-5","form-group":"biznext-ui-PDYbgOuoFL0-3","form-input-group":"biznext-ui-7dIDGqcfwy4-e","form-input-group-label":"biznext-ui-3qrluRcbSyQ-d",required:"biznext-ui-S1AWtF9fE-s-4","form-input-control-group":"biznext-ui-GQweSyKURD4-1","form-input-control":"biznext-ui-Pxa8kMsnvaQ-3","validation-error":"biznext-ui-B7sgFlayyBI-0","form-select-control":"biznext-ui-TyZSBF2HLh0-4","form-input-group-error-text":"biznext-ui-npOI3UC2M38-9"};function yt(e){"@babel/helpers - typeof";return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(e)}function Zm(e,t){if(yt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vu(e){var t=Zm(e,"string");return yt(t)=="symbol"?t:t+""}function en(e,t,n){return(t=vu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yu(Object(n),!0).forEach(function(r){en(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hm(e){if(Array.isArray(e))return e}function km(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function Si(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cu(e,t){if(e){if(typeof e=="string")return Si(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Si(e,t):void 0}}function zm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
35
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(e,t){return Hm(e)||km(e,t)||Cu(e,t)||zm()}function jm(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function et(e,t){if(e==null)return{};var n,r,i=jm(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Ym=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Jm(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,b=et(e,Ym),g=x.useState(u!==void 0?u:n),v=qe(g,2),C=v[0],y=v[1],m=x.useState(a!==void 0?a:i),I=qe(m,2),h=I[0],S=I[1],T=x.useState(p!==void 0?p:s),P=qe(T,2),M=P[0],X=P[1],U=x.useCallback(function(ie,be){typeof l=="function"&&l(ie,be),X(ie)},[l]),ne=x.useCallback(function(ie,be){var E;typeof c=="function"&&(E=c(ie,be)),y(E!==void 0?E:ie)},[c]),de=x.useCallback(function(){typeof f=="function"&&f(),S(!0)},[f]),oe=x.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),k=u!==void 0?u:C,z=a!==void 0?a:h,re=p!==void 0?p:M;return B(B({},b),{},{inputValue:k,menuIsOpen:z,onChange:U,onInputChange:ne,onMenuClose:oe,onMenuOpen:de,value:re})}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(null,arguments)}function Um(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vu(r.key),r)}}function _m(e,t,n){return t&&Iu(e.prototype,t),n&&Iu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ti(e,t){return Ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ti(e,t)}function Qm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ti(e,t)}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ln(e)}function xu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xu=function(){return!!e})()}function Km(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $m(e,t){if(t&&(yt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Km(e)}function qm(e){var t=xu();return function(){var n,r=Ln(e);if(t){var i=Ln(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $m(this,n)}}function eg(e){if(Array.isArray(e))return Si(e)}function tg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ng(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
36
36
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ei(e){return eg(e)||tg(e)||Cu(e)||ng()}var rg=!1;function ig(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function og(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sg=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!rg:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(og(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ig(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ie="-ms-",Wn="-moz-",_="-webkit-",Au="comm",Pi="rule",wi="decl",ag="@import",Su="@keyframes",ug="@layer",lg=Math.abs,Xn=String.fromCharCode,cg=Object.assign;function dg(e,t){return ge(e,0)^45?(((t<<2^ge(e,0))<<2^ge(e,1))<<2^ge(e,2))<<2^ge(e,3):0}function Tu(e){return e.trim()}function fg(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,n){return e.replace(t,n)}function Vi(e,t){return e.indexOf(t)}function ge(e,t){return e.charCodeAt(t)|0}function tn(e,t,n){return e.slice(t,n)}function ke(e){return e.length}function Di(e){return e.length}function Zn(e,t){return t.push(e),e}function hg(e,t){return e.map(t).join("")}var Hn=1,Mt=1,Eu=0,Te=0,ce=0,Bt="";function kn(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Hn,column:Mt,length:s,return:""}}function nn(e,t){return cg(kn("",null,null,"",null,null,0),e,{length:-e.length},t)}function pg(){return ce}function mg(){return ce=Te>0?ge(Bt,--Te):0,Mt--,ce===10&&(Mt=1,Hn--),ce}function De(){return ce=Te<Eu?ge(Bt,Te++):0,Mt++,ce===10&&(Mt=1,Hn++),ce}function ze(){return ge(Bt,Te)}function zn(){return Te}function rn(e,t){return tn(Bt,e,t)}function on(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pu(e){return Hn=Mt=1,Eu=ke(Bt=e),Te=0,[]}function wu(e){return Bt="",e}function jn(e){return Tu(rn(Te-1,Fi(e===91?e+2:e===40?e+1:e)))}function gg(e){for(;(ce=ze())&&ce<33;)De();return on(e)>2||on(ce)>3?"":" "}function bg(e,t){for(;--t&&De()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return rn(e,zn()+(t<6&&ze()==32&&De()==32))}function Fi(e){for(;De();)switch(ce){case e:return Te;case 34:case 39:e!==34&&e!==39&&Fi(ce);break;case 40:e===41&&Fi(e);break;case 92:De();break}return Te}function vg(e,t){for(;De()&&e+ce!==57;)if(e+ce===84&&ze()===47)break;return"/*"+rn(t,Te-1)+"*"+Xn(e===47?e:De())}function yg(e){for(;!on(ze());)De();return rn(e,Te)}function Cg(e){return wu(Yn("",null,null,null,[""],e=Pu(e),0,[0],e))}function Yn(e,t,n,r,i,o,s,u,a){for(var l=0,c=0,d=s,f=0,p=0,b=0,g=1,v=1,C=1,y=0,m="",I=i,h=o,S=r,T=m;v;)switch(b=y,y=De()){case 40:if(b!=108&&ge(T,d-1)==58){Vi(T+=Q(jn(y),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:T+=jn(y);break;case 9:case 10:case 13:case 32:T+=gg(b);break;case 92:T+=bg(zn()-1,7);continue;case 47:switch(ze()){case 42:case 47:Zn(Ig(vg(De(),zn()),t,n),a);break;default:T+="/"}break;case 123*g:u[l++]=ke(T)*C;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:C==-1&&(T=Q(T,/\f/g,"")),p>0&&ke(T)-d&&Zn(p>32?Du(T+";",r,n,d-1):Du(Q(T," ","")+";",r,n,d-2),a);break;case 59:T+=";";default:if(Zn(S=Vu(T,t,n,l,c,i,u,m,I=[],h=[],d),o),y===123)if(c===0)Yn(T,t,S,S,I,o,d,u,h);else switch(f===99&&ge(T,3)===110?100:f){case 100:case 108:case 109:case 115:Yn(e,S,S,r&&Zn(Vu(e,S,S,0,0,i,u,m,i,I=[],d),h),i,h,d,u,r?I:h);break;default:Yn(T,S,S,S,[""],h,0,u,h)}}l=c=p=0,g=C=1,m=T="",d=s;break;case 58:d=1+ke(T),p=b;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&mg()==125)continue}switch(T+=Xn(y),y*g){case 38:C=c>0?1:(T+="\f",-1);break;case 44:u[l++]=(ke(T)-1)*C,C=1;break;case 64:ze()===45&&(T+=jn(De())),f=ze(),c=d=ke(m=T+=yg(zn())),y++;break;case 45:b===45&&ke(T)==2&&(g=0)}}return o}function Vu(e,t,n,r,i,o,s,u,a,l,c){for(var d=i-1,f=i===0?o:[""],p=Di(f),b=0,g=0,v=0;b<r;++b)for(var C=0,y=tn(e,d+1,d=lg(g=s[b])),m=e;C<p;++C)(m=Tu(g>0?f[C]+" "+y:Q(y,/&\f/g,f[C])))&&(a[v++]=m);return kn(e,t,n,i===0?Pi:u,a,l,c)}function Ig(e,t,n){return kn(e,t,n,Au,Xn(pg()),tn(e,2,-2),0)}function Du(e,t,n,r){return kn(e,t,n,wi,tn(e,0,r),tn(e,r+1,-1),r)}function Gt(e,t){for(var n="",r=Di(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function xg(e,t,n,r){switch(e.type){case ug:if(e.children.length)break;case ag:case wi:return e.return=e.return||e.value;case Au:return"";case Su:return e.return=e.value+"{"+Gt(e.children,r)+"}";case Pi:e.value=e.props.join(",")}return ke(n=Gt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ag(e){var t=Di(e);return function(n,r,i,o){for(var s="",u=0;u<t;u++)s+=e[u](n,r,i,o)||"";return s}}function Sg(e){return function(t){t.root||(t=t.return)&&e(t)}}function Tg(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Eg=function(t,n,r){for(var i=0,o=0;i=o,o=ze(),i===38&&o===12&&(n[r]=1),!on(o);)De();return rn(t,Te)},Pg=function(t,n){var r=-1,i=44;do switch(on(i)){case 0:i===38&&ze()===12&&(n[r]=1),t[r]+=Eg(Te-1,n,r);break;case 2:t[r]+=jn(i);break;case 4:if(i===44){t[++r]=ze()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Xn(i)}while(i=De());return t},wg=function(t,n){return wu(Pg(Pu(t),n))},Fu=new WeakMap,Vg=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Fu.get(r))&&!i){Fu.set(t,!0);for(var o=[],s=wg(n,o),u=r.props,a=0,l=0;a<s.length;a++)for(var c=0;c<u.length;c++,l++)t.props[l]=o[a]?s[a].replace(/&\f/g,u[c]):u[c]+" "+s[a]}}},Dg=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Mu(e,t){switch(dg(e,t)){case 5103:return _+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _+e+Wn+e+Ie+e+e;case 6828:case 4268:return _+e+Ie+e+e;case 6165:return _+e+Ie+"flex-"+e+e;case 5187:return _+e+Q(e,/(\w+).+(:[^]+)/,_+"box-$1$2"+Ie+"flex-$1$2")+e;case 5443:return _+e+Ie+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return _+e+Ie+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return _+e+Ie+Q(e,"shrink","negative")+e;case 5292:return _+e+Ie+Q(e,"basis","preferred-size")+e;case 6060:return _+"box-"+Q(e,"-grow","")+_+e+Ie+Q(e,"grow","positive")+e;case 4554:return _+Q(e,/([^-])(transform)/g,"$1"+_+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+Ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,_+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ke(e)-1-t>6)switch(ge(e,t+1)){case 109:if(ge(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+Wn+(ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vi(e,"stretch")?Mu(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ge(e,t+1)!==115)break;case 6444:switch(ge(e,ke(e)-3-(~Vi(e,"!important")&&10))){case 107:return Q(e,":",":"+_)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(ge(e,14)===45?"inline-":"")+"box$3$1"+_+"$2$3$1"+Ie+"$2box$3")+e}break;case 5936:switch(ge(e,t+11)){case 114:return _+e+Ie+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _+e+Ie+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _+e+Ie+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _+e+Ie+e+e}return e}var Fg=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case wi:t.return=Mu(t.value,t.length);break;case Su:return Gt([nn(t,{value:Q(t.value,"@","@"+_)})],i);case Pi:if(t.length)return hg(t.props,function(o){switch(fg(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gt([nn(t,{props:[Q(o,/:(read-\w+)/,":"+Wn+"$1")]})],i);case"::placeholder":return Gt([nn(t,{props:[Q(o,/:(plac\w+)/,":"+_+"input-$1")]}),nn(t,{props:[Q(o,/:(plac\w+)/,":"+Wn+"$1")]}),nn(t,{props:[Q(o,/:(plac\w+)/,Ie+"input-$1")]})],i)}return""})}},Mg=[Fg],Bg=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||Mg,o={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),C=1;C<v.length;C++)o[v[C]]=!0;u.push(g)});var a,l=[Vg,Dg];{var c,d=[xg,Sg(function(g){c.insert(g)})],f=Ag(l.concat(i,d)),p=function(v){return Gt(Cg(v),f)};a=function(v,C,y,m){c=y,p(v?v+"{"+C.styles+"}":C.styles),m&&(b.inserted[C.name]=!0)}}var b={key:n,sheet:new sg({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:a};return b.sheet.hydrate(u),b},Mi={exports:{}},ee={};/** @license React v16.13.1
37
37
  * react-is.production.min.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biznext-ui/react",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "private": false,
5
5
  "author": "Biznext Team",
6
6
  "description": "Responsive and accessible React UI components!",