bonuspluscomponents 0.0.43 → 0.0.44
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/bonuspluscomponents.cjs.js +10 -48
- package/dist/bonuspluscomponents.es.js +399 -1897
- package/dist/bonuspluscomponents.umd.js +10 -48
- package/package.json +6 -7
|
@@ -1,42 +1,4 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Ur;function yt(){if(Ur)return g;Ur=1;var x=Symbol.for("react.element"),p=Symbol.for("react.portal"),Ce=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),te=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),Z=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),U=Symbol.iterator;function ee(n){return n===null||typeof n!="object"?null:(n=U&&n[U]||n["@@iterator"],typeof n=="function"?n:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},se=Object.assign,Le={};function ne(n,s,h){this.props=n,this.context=s,this.refs=Le,this.updater=h||G}ne.prototype.isReactComponent={},ne.prototype.setState=function(n,s){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,s,"setState")},ne.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function ae(){}ae.prototype=ne.prototype;function F(n,s,h){this.props=n,this.context=s,this.refs=Le,this.updater=h||G}var he=F.prototype=new ae;he.constructor=F,se(he,ne.prototype),he.isPureReactComponent=!0;var oe=Array.isArray,M=Object.prototype.hasOwnProperty,q={current:null},ce={key:!0,ref:!0,__self:!0,__source:!0};function pe(n,s,h){var C,_={},P=null,k=null;if(s!=null)for(C in s.ref!==void 0&&(k=s.ref),s.key!==void 0&&(P=""+s.key),s)M.call(s,C)&&!ce.hasOwnProperty(C)&&(_[C]=s[C]);var T=arguments.length-2;if(T===1)_.children=h;else if(1<T){for(var w=Array(T),V=0;V<T;V++)w[V]=arguments[V+2];_.children=w}if(n&&n.defaultProps)for(C in T=n.defaultProps,T)_[C]===void 0&&(_[C]=T[C]);return{$$typeof:x,type:n,key:P,ref:k,props:_,_owner:q.current}}function we(n,s){return{$$typeof:x,type:n.type,key:s,ref:n.ref,props:n.props,_owner:n._owner}}function Se(n){return typeof n=="object"&&n!==null&&n.$$typeof===x}function Ge(n){var s={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(h){return s[h]})}var Te=/\/+/g;function H(n,s){return typeof n=="object"&&n!==null&&n.key!=null?Ge(""+n.key):s.toString(36)}function K(n,s,h,C,_){var P=typeof n;(P==="undefined"||P==="boolean")&&(n=null);var k=!1;if(n===null)k=!0;else switch(P){case"string":case"number":k=!0;break;case"object":switch(n.$$typeof){case x:case p:k=!0}}if(k)return k=n,_=_(k),n=C===""?"."+H(k,0):C,oe(_)?(h="",n!=null&&(h=n.replace(Te,"$&/")+"/"),K(_,s,h,"",function(V){return V})):_!=null&&(Se(_)&&(_=we(_,h+(!_.key||k&&k.key===_.key?"":(""+_.key).replace(Te,"$&/")+"/")+n)),s.push(_)),1;if(k=0,C=C===""?".":C+":",oe(n))for(var T=0;T<n.length;T++){P=n[T];var w=C+H(P,T);k+=K(P,s,h,w,_)}else if(w=ee(n),typeof w=="function")for(n=w.call(n),T=0;!(P=n.next()).done;)P=P.value,w=C+H(P,T++),k+=K(P,s,h,w,_);else if(P==="object")throw s=String(n),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.");return k}function Y(n,s,h){if(n==null)return n;var C=[],_=0;return K(n,C,"","",function(P){return s.call(h,P,_++)}),C}function ue(n){if(n._status===-1){var s=n._result;s=s(),s.then(function(h){(n._status===0||n._status===-1)&&(n._status=1,n._result=h)},function(h){(n._status===0||n._status===-1)&&(n._status=2,n._result=h)}),n._status===-1&&(n._status=0,n._result=s)}if(n._status===1)return n._result.default;throw n._result}var d={current:null},fe={transition:null},Oe={ReactCurrentDispatcher:d,ReactCurrentBatchConfig:fe,ReactCurrentOwner:q};return g.Children={map:Y,forEach:function(n,s,h){Y(n,function(){s.apply(this,arguments)},h)},count:function(n){var s=0;return Y(n,function(){s++}),s},toArray:function(n){return Y(n,function(s){return s})||[]},only:function(n){if(!Se(n))throw Error("React.Children.only expected to receive a single React element child.");return n}},g.Component=ne,g.Fragment=Ce,g.Profiler=de,g.PureComponent=F,g.StrictMode=X,g.Suspense=L,g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oe,g.cloneElement=function(n,s,h){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var C=se({},n.props),_=n.key,P=n.ref,k=n._owner;if(s!=null){if(s.ref!==void 0&&(P=s.ref,k=q.current),s.key!==void 0&&(_=""+s.key),n.type&&n.type.defaultProps)var T=n.type.defaultProps;for(w in s)M.call(s,w)&&!ce.hasOwnProperty(w)&&(C[w]=s[w]===void 0&&T!==void 0?T[w]:s[w])}var w=arguments.length-2;if(w===1)C.children=h;else if(1<w){T=Array(w);for(var V=0;V<w;V++)T[V]=arguments[V+2];C.children=T}return{$$typeof:x,type:n.type,key:_,ref:P,props:C,_owner:k}},g.createContext=function(n){return n={$$typeof:te,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:re,_context:n},n.Consumer=n},g.createElement=pe,g.createFactory=function(n){var s=pe.bind(null,n);return s.type=n,s},g.createRef=function(){return{current:null}},g.forwardRef=function(n){return{$$typeof:Q,render:n}},g.isValidElement=Se,g.lazy=function(n){return{$$typeof:N,_payload:{_status:-1,_result:n},_init:ue}},g.memo=function(n,s){return{$$typeof:Z,type:n,compare:s===void 0?null:s}},g.startTransition=function(n){var s=fe.transition;fe.transition={};try{n()}finally{fe.transition=s}},g.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},g.useCallback=function(n,s){return d.current.useCallback(n,s)},g.useContext=function(n){return d.current.useContext(n)},g.useDebugValue=function(){},g.useDeferredValue=function(n){return d.current.useDeferredValue(n)},g.useEffect=function(n,s){return d.current.useEffect(n,s)},g.useId=function(){return d.current.useId()},g.useImperativeHandle=function(n,s,h){return d.current.useImperativeHandle(n,s,h)},g.useInsertionEffect=function(n,s){return d.current.useInsertionEffect(n,s)},g.useLayoutEffect=function(n,s){return d.current.useLayoutEffect(n,s)},g.useMemo=function(n,s){return d.current.useMemo(n,s)},g.useReducer=function(n,s,h){return d.current.useReducer(n,s,h)},g.useRef=function(n){return d.current.useRef(n)},g.useState=function(n){return d.current.useState(n)},g.useSyncExternalStore=function(n,s,h){return d.current.useSyncExternalStore(n,s,h)},g.useTransition=function(){return d.current.useTransition()},g.version="18.2.0",g}var qe={exports:{}};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/qe.exports;var Yr;function ht(){return Yr||(Yr=1,function(x,p){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var Ce="18.2.0",X=Symbol.for("react.element"),de=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),Z=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),ne=Symbol.iterator,ae="@@iterator";function F(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[ae];return typeof r=="function"?r:null}var he={current:null},oe={transition:null},M={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},q={current:null},ce={},pe=null;function we(e){pe=e}ce.setExtraStackFrame=function(e){pe=e},ce.getCurrentStack=null,ce.getStackAddendum=function(){var e="";pe&&(e+=pe);var r=ce.getCurrentStack;return r&&(e+=r()||""),e};var Se=!1,Ge=!1,Te=!1,H=!1,K=!1,Y={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:oe,ReactCurrentOwner:q};Y.ReactDebugCurrentFrame=ce,Y.ReactCurrentActQueue=M;function ue(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];fe("warn",e,a)}}function d(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];fe("error",e,a)}}function fe(e,r,a){{var o=Y.ReactDebugCurrentFrame,i=o.getStackAddendum();i!==""&&(r+="%s",a=a.concat([i]));var v=a.map(function(l){return String(l)});v.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,v)}}var Oe={};function n(e,r){{var a=e.constructor,o=a&&(a.displayName||a.name)||"ReactClass",i=o+"."+r;if(Oe[i])return;d("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",r,o),Oe[i]=!0}}var s={isMounted:function(e){return!1},enqueueForceUpdate:function(e,r,a){n(e,"forceUpdate")},enqueueReplaceState:function(e,r,a,o){n(e,"replaceState")},enqueueSetState:function(e,r,a,o){n(e,"setState")}},h=Object.assign,C={};Object.freeze(C);function _(e,r,a){this.props=e,this.context=r,this.refs=C,this.updater=a||s}_.prototype.isReactComponent={},_.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var P={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},k=function(e,r){Object.defineProperty(_.prototype,e,{get:function(){ue("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1])}})};for(var T in P)P.hasOwnProperty(T)&&k(T,P[T])}function w(){}w.prototype=_.prototype;function V(e,r,a){this.props=e,this.context=r,this.refs=C,this.updater=a||s}var me=V.prototype=new w;me.constructor=V,h(me,_.prototype),me.isPureReactComponent=!0;function br(){var e={current:null};return Object.seal(e),e}var Ze=Array.isArray;function Ne(e){return Ze(e)}function Er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Me(e){try{return Pe(e),!1}catch{return!0}}function Pe(e){return""+e}function ke(e){if(Me(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(e)),Pe(e)}function er(e,r,a){var o=e.displayName;if(o)return o;var i=r.displayName||r.name||"";return i!==""?a+"("+i+")":a}function je(e){return e.displayName||"Context"}function le(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case re:return"Fragment";case de:return"Portal";case Q:return"Profiler";case te:return"StrictMode";case U:return"Suspense";case ee:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z:var r=e;return je(r)+".Consumer";case L:var a=e;return je(a._context)+".Provider";case N:return er(e,e.render,"ForwardRef");case G:var o=e.displayName||null;return o!==null?o:le(e.type)||"Memo";case se:{var i=e,v=i._payload,l=i._init;try{return le(l(v))}catch{return null}}}return null}var Ae=Object.prototype.hasOwnProperty,We={key:!0,ref:!0,__self:!0,__source:!0},rr,tr,Ve;Ve={};function Ke(e){if(Ae.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ge(e){if(Ae.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Rr(e,r){var a=function(){rr||(rr=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function nr(e,r){var a=function(){tr||(tr=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}function ar(e){if(typeof e.ref=="string"&&q.current&&e.__self&&q.current.stateNode!==e.__self){var r=le(q.current.type);Ve[r]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,e.ref),Ve[r]=!0)}}var xe=function(e,r,a,o,i,v,l){var y={$$typeof:X,type:e,key:r,ref:a,props:l,_owner:v};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Cr(e,r,a){var o,i={},v=null,l=null,y=null,E=null;if(r!=null){Ke(r)&&(l=r.ref,ar(r)),ge(r)&&(ke(r.key),v=""+r.key),y=r.__self===void 0?null:r.__self,E=r.__source===void 0?null:r.__source;for(o in r)Ae.call(r,o)&&!We.hasOwnProperty(o)&&(i[o]=r[o])}var O=arguments.length-2;if(O===1)i.children=a;else if(O>1){for(var j=Array(O),A=0;A<O;A++)j[A]=arguments[A+2];Object.freeze&&Object.freeze(j),i.children=j}if(e&&e.defaultProps){var I=e.defaultProps;for(o in I)i[o]===void 0&&(i[o]=I[o])}if(v||l){var W=typeof e=="function"?e.displayName||e.name||"Unknown":e;v&&Rr(i,W),l&&nr(i,W)}return xe(e,v,l,y,E,q.current,i)}function wr(e,r){var a=xe(e.type,r,e.ref,e._self,e._source,e._owner,e.props);return a}function Sr(e,r,a){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,i=h({},e.props),v=e.key,l=e.ref,y=e._self,E=e._source,O=e._owner;if(r!=null){Ke(r)&&(l=r.ref,O=q.current),ge(r)&&(ke(r.key),v=""+r.key);var j;e.type&&e.type.defaultProps&&(j=e.type.defaultProps);for(o in r)Ae.call(r,o)&&!We.hasOwnProperty(o)&&(r[o]===void 0&&j!==void 0?i[o]=j[o]:i[o]=r[o])}var A=arguments.length-2;if(A===1)i.children=a;else if(A>1){for(var I=Array(A),W=0;W<A;W++)I[W]=arguments[W+2];i.children=I}return xe(e.type,v,l,y,E,O,i)}function _e(e){return typeof e=="object"&&e!==null&&e.$$typeof===X}var or=".",Tr=":";function Or(e){var r=/[=:]/g,a={"=":"=0",":":"=2"},o=e.replace(r,function(i){return a[i]});return"$"+o}var Ue=!1,ur=/\/+/g;function ve(e){return e.replace(ur,"$&/")}function De(e,r){return typeof e=="object"&&e!==null&&e.key!=null?(ke(e.key),Or(""+e.key)):r.toString(36)}function be(e,r,a,o,i){var v=typeof e;(v==="undefined"||v==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(v){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case X:case de:l=!0}}if(l){var y=e,E=i(y),O=o===""?or+De(y,0):o;if(Ne(E)){var j="";O!=null&&(j=ve(O)+"/"),be(E,r,j,"",function(Zt){return Zt})}else E!=null&&(_e(E)&&(E.key&&(!y||y.key!==E.key)&&ke(E.key),E=wr(E,a+(E.key&&(!y||y.key!==E.key)?ve(""+E.key)+"/":"")+O)),r.push(E));return 1}var A,I,W=0,z=o===""?or:o+Tr;if(Ne(e))for(var mr=0;mr<e.length;mr++)A=e[mr],I=z+De(A,mr),W+=be(A,r,a,I,i);else{var Vr=F(e);if(typeof Vr=="function"){var dt=e;Vr===dt.entries&&(Ue||ue("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ue=!0);for(var Xt=Vr.call(dt),pt,Qt=0;!(pt=Xt.next()).done;)A=pt.value,I=z+De(A,Qt++),W+=be(A,r,a,I,i)}else if(v==="object"){var vt=String(e);throw new Error("Objects are not valid as a React child (found: "+(vt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":vt)+"). If you meant to render a collection of children, use an array instead.")}}return W}function Ie(e,r,a){if(e==null)return e;var o=[],i=0;return be(e,o,"","",function(v){return r.call(a,v,i++)}),o}function Pr(e){var r=0;return Ie(e,function(){r++}),r}function ir(e,r,a){Ie(e,function(){r.apply(this,arguments)},a)}function kr(e){return Ie(e,function(r){return r})||[]}function sr(e){if(!_e(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function cr(e){var r={$$typeof:Z,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};r.Provider={$$typeof:L,_context:r};var a=!1,o=!1,i=!1;{var v={$$typeof:Z,_context:r};Object.defineProperties(v,{Provider:{get:function(){return o||(o=!0,d("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(l){r.Provider=l}},_currentValue:{get:function(){return r._currentValue},set:function(l){r._currentValue=l}},_currentValue2:{get:function(){return r._currentValue2},set:function(l){r._currentValue2=l}},_threadCount:{get:function(){return r._threadCount},set:function(l){r._threadCount=l}},Consumer:{get:function(){return a||(a=!0,d("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(l){i||(ue("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",l),i=!0)}}}),r.Consumer=v}return r._currentRenderer=null,r._currentRenderer2=null,r}var Fe=-1,Je=0,Xe=1,jr=2;function Ar(e){if(e._status===Fe){var r=e._result,a=r();if(a.then(function(v){if(e._status===Je||e._status===Fe){var l=e;l._status=Xe,l._result=v}},function(v){if(e._status===Je||e._status===Fe){var l=e;l._status=jr,l._result=v}}),e._status===Fe){var o=e;o._status=Je,o._result=a}}if(e._status===Xe){var i=e._result;return i===void 0&&d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
|
-
|
|
19
|
-
Your code should look like:
|
|
20
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
21
|
-
|
|
22
|
-
Did you accidentally put curly braces around the import?`,i),"default"in i||d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
23
|
-
|
|
24
|
-
Your code should look like:
|
|
25
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,i),i.default}else throw e._result}function xr(e){var r={_status:Fe,_result:e},a={$$typeof:se,_payload:r,_init:Ar};{var o,i;Object.defineProperties(a,{defaultProps:{configurable:!0,get:function(){return o},set:function(v){d("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),o=v,Object.defineProperty(a,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return i},set:function(v){d("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),i=v,Object.defineProperty(a,"propTypes",{enumerable:!0})}}})}return a}function Dr(e){e!=null&&e.$$typeof===G?d("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?d("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&d("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&d("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var r={$$typeof:N,render:e};{var a;Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(o){a=o,!e.name&&!e.displayName&&(e.displayName=o)}})}return r}var t;t=Symbol.for("react.module.reference");function u(e){return!!(typeof e=="string"||typeof e=="function"||e===re||e===Q||K||e===te||e===U||e===ee||H||e===Le||Se||Ge||Te||typeof e=="object"&&e!==null&&(e.$$typeof===se||e.$$typeof===G||e.$$typeof===L||e.$$typeof===Z||e.$$typeof===N||e.$$typeof===t||e.getModuleId!==void 0))}function c(e,r){u(e)||d("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var a={$$typeof:G,type:e,compare:r===void 0?null:r};{var o;Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(i){o=i,!e.name&&!e.displayName&&(e.displayName=i)}})}return a}function f(){var e=he.current;return e===null&&d(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
26
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
|
-
2. You might be breaking the Rules of Hooks
|
|
28
|
-
3. You might have more than one copy of React in the same app
|
|
29
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function R(e){var r=f();if(e._context!==void 0){var a=e._context;a.Consumer===e?d("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):a.Provider===e&&d("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e)}function S(e){var r=f();return r.useState(e)}function b(e,r,a){var o=f();return o.useReducer(e,r,a)}function m(e){var r=f();return r.useRef(e)}function B(e,r){var a=f();return a.useEffect(e,r)}function D(e,r){var a=f();return a.useInsertionEffect(e,r)}function $(e,r){var a=f();return a.useLayoutEffect(e,r)}function J(e,r){var a=f();return a.useCallback(e,r)}function Ee(e,r){var a=f();return a.useMemo(e,r)}function fr(e,r,a){var o=f();return o.useImperativeHandle(e,r,a)}function ie(e,r){{var a=f();return a.useDebugValue(e,r)}}function Pt(){var e=f();return e.useTransition()}function kt(e){var r=f();return r.useDeferredValue(e)}function jt(){var e=f();return e.useId()}function At(e,r,a){var o=f();return o.useSyncExternalStore(e,r,a)}var Qe=0,qr,Hr,Gr,Kr,Jr,Xr,Qr;function Zr(){}Zr.__reactDisabledLog=!0;function xt(){{if(Qe===0){qr=console.log,Hr=console.info,Gr=console.warn,Kr=console.error,Jr=console.group,Xr=console.groupCollapsed,Qr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Zr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Qe++}}function Dt(){{if(Qe--,Qe===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:qr}),info:h({},e,{value:Hr}),warn:h({},e,{value:Gr}),error:h({},e,{value:Kr}),group:h({},e,{value:Jr}),groupCollapsed:h({},e,{value:Xr}),groupEnd:h({},e,{value:Qr})})}Qe<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ir=Y.ReactCurrentDispatcher,Fr;function lr(e,r,a){{if(Fr===void 0)try{throw Error()}catch(i){var o=i.stack.trim().match(/\n( *(at )?)/);Fr=o&&o[1]||""}return`
|
|
30
|
-
`+Fr+e}}var $r=!1,dr;{var It=typeof WeakMap=="function"?WeakMap:Map;dr=new It}function et(e,r){if(!e||$r)return"";{var a=dr.get(e);if(a!==void 0)return a}var o;$r=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=Ir.current,Ir.current=null,xt();try{if(r){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(z){o=z}Reflect.construct(e,[],l)}else{try{l.call()}catch(z){o=z}e.call(l.prototype)}}else{try{throw Error()}catch(z){o=z}e()}}catch(z){if(z&&o&&typeof z.stack=="string"){for(var y=z.stack.split(`
|
|
31
|
-
`),E=o.stack.split(`
|
|
32
|
-
`),O=y.length-1,j=E.length-1;O>=1&&j>=0&&y[O]!==E[j];)j--;for(;O>=1&&j>=0;O--,j--)if(y[O]!==E[j]){if(O!==1||j!==1)do if(O--,j--,j<0||y[O]!==E[j]){var A=`
|
|
33
|
-
`+y[O].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),typeof e=="function"&&dr.set(e,A),A}while(O>=1&&j>=0);break}}}finally{$r=!1,Ir.current=v,Dt(),Error.prepareStackTrace=i}var I=e?e.displayName||e.name:"",W=I?lr(I):"";return typeof e=="function"&&dr.set(e,W),W}function Ft(e,r,a){return et(e,!1)}function $t(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function pr(e,r,a){if(e==null)return"";if(typeof e=="function")return et(e,$t(e));if(typeof e=="string")return lr(e);switch(e){case U:return lr("Suspense");case ee:return lr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case N:return Ft(e.render);case G:return pr(e.type,r,a);case se:{var o=e,i=o._payload,v=o._init;try{return pr(v(i),r,a)}catch{}}}return""}var rt={},tt=Y.ReactDebugCurrentFrame;function vr(e){if(e){var r=e._owner,a=pr(e.type,e._source,r?r.type:null);tt.setExtraStackFrame(a)}else tt.setExtraStackFrame(null)}function Lt(e,r,a,o,i){{var v=Function.call.bind(Ae);for(var l in e)if(v(e,l)){var y=void 0;try{if(typeof e[l]!="function"){var E=Error((o||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}y=e[l](r,l,o,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){y=O}y&&!(y instanceof Error)&&(vr(i),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",a,l,typeof y),vr(null)),y instanceof Error&&!(y.message in rt)&&(rt[y.message]=!0,vr(i),d("Failed %s type: %s",a,y.message),vr(null))}}}function Ye(e){if(e){var r=e._owner,a=pr(e.type,e._source,r?r.type:null);we(a)}else we(null)}var Lr;Lr=!1;function nt(){if(q.current){var e=le(q.current.type);if(e)return`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+e+"`."}return""}function Nt(e){if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
|
|
36
|
-
|
|
37
|
-
Check your code at `+r+":"+a+"."}return""}function Mt(e){return e!=null?Nt(e.__source):""}var at={};function Wt(e){var r=nt();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
|
|
38
|
-
|
|
39
|
-
Check the top-level render call using <`+a+">.")}return r}function ot(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var a=Wt(r);if(!at[a]){at[a]=!0;var o="";e&&e._owner&&e._owner!==q.current&&(o=" It was passed a child from "+le(e._owner.type)+"."),Ye(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,o),Ye(null)}}}function ut(e,r){if(typeof e=="object"){if(Ne(e))for(var a=0;a<e.length;a++){var o=e[a];_e(o)&&ot(o,r)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var i=F(e);if(typeof i=="function"&&i!==e.entries)for(var v=i.call(e),l;!(l=v.next()).done;)_e(l.value)&&ot(l.value,r)}}}function it(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===N||r.$$typeof===G))a=r.propTypes;else return;if(a){var o=le(r);Lt(a,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!Lr){Lr=!0;var i=le(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vt(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var o=r[a];if(o!=="children"&&o!=="key"){Ye(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),Ye(null);break}}e.ref!==null&&(Ye(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),Ye(null))}}function st(e,r,a){var o=u(e);if(!o){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=Mt(r);v?i+=v:i+=nt();var l;e===null?l="null":Ne(e)?l="array":e!==void 0&&e.$$typeof===X?(l="<"+(le(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,d("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,i)}var y=Cr.apply(this,arguments);if(y==null)return y;if(o)for(var E=2;E<arguments.length;E++)ut(arguments[E],e);return e===re?Vt(y):it(y),y}var ct=!1;function Ut(e){var r=st.bind(null,e);return r.type=e,ct||(ct=!0,ue("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:!1,get:function(){return ue("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function Yt(e,r,a){for(var o=Sr.apply(this,arguments),i=2;i<arguments.length;i++)ut(arguments[i],o.type);return it(o),o}function Bt(e,r){var a=oe.transition;oe.transition={};var o=oe.transition;oe.transition._updatedFibers=new Set;try{e()}finally{if(oe.transition=a,a===null&&o._updatedFibers){var i=o._updatedFibers.size;i>10&&ue("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),o._updatedFibers.clear()}}}var ft=!1,yr=null;function zt(e){if(yr===null)try{var r=("require"+Math.random()).slice(0,7),a=x&&x[r];yr=a.call(x,"timers").setImmediate}catch{yr=function(i){ft===!1&&(ft=!0,typeof MessageChannel>"u"&&d("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var v=new MessageChannel;v.port1.onmessage=i,v.port2.postMessage(void 0)}}return yr(e)}var Be=0,lt=!1;function qt(e){{var r=Be;Be++,M.current===null&&(M.current=[]);var a=M.isBatchingLegacy,o;try{if(M.isBatchingLegacy=!0,o=e(),!a&&M.didScheduleLegacyUpdate){var i=M.current;i!==null&&(M.didScheduleLegacyUpdate=!1,Wr(i))}}catch(I){throw hr(r),I}finally{M.isBatchingLegacy=a}if(o!==null&&typeof o=="object"&&typeof o.then=="function"){var v=o,l=!1,y={then:function(I,W){l=!0,v.then(function(z){hr(r),Be===0?Nr(z,I,W):I(z)},function(z){hr(r),W(z)})}};return!lt&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){l||(lt=!0,d("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),y}else{var E=o;if(hr(r),Be===0){var O=M.current;O!==null&&(Wr(O),M.current=null);var j={then:function(I,W){M.current===null?(M.current=[],Nr(E,I,W)):I(E)}};return j}else{var A={then:function(I,W){I(E)}};return A}}}}function hr(e){e!==Be-1&&d("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Be=e}function Nr(e,r,a){{var o=M.current;if(o!==null)try{Wr(o),zt(function(){o.length===0?(M.current=null,r(e)):Nr(e,r,a)})}catch(i){a(i)}else r(e)}}var Mr=!1;function Wr(e){if(!Mr){Mr=!0;var r=0;try{for(;r<e.length;r++){var a=e[r];do a=a(!0);while(a!==null)}e.length=0}catch(o){throw e=e.slice(r+1),o}finally{Mr=!1}}}var Ht=st,Gt=Yt,Kt=Ut,Jt={map:Ie,forEach:ir,count:Pr,toArray:kr,only:sr};p.Children=Jt,p.Component=_,p.Fragment=re,p.Profiler=Q,p.PureComponent=V,p.StrictMode=te,p.Suspense=U,p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,p.cloneElement=Gt,p.createContext=cr,p.createElement=Ht,p.createFactory=Kt,p.createRef=br,p.forwardRef=Dr,p.isValidElement=_e,p.lazy=xr,p.memo=c,p.startTransition=Bt,p.unstable_act=qt,p.useCallback=J,p.useContext=R,p.useDebugValue=ie,p.useDeferredValue=kt,p.useEffect=B,p.useId=jt,p.useImperativeHandle=fr,p.useInsertionEffect=D,p.useLayoutEffect=$,p.useMemo=Ee,p.useReducer=b,p.useRef=m,p.useState=S,p.useSyncExternalStore=At,p.useTransition=Pt,p.version=Ce,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(qe,qe.exports)),qe.exports}process.env.NODE_ENV==="production"?gr.exports=yt():gr.exports=ht();var $e=gr.exports;/**
|
|
1
|
+
(function(m,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],g):(m=typeof globalThis<"u"?globalThis:m||self,g(m.bonuspluscomponents={},m.require$$0))})(this,function(m,g){"use strict";var U={exports:{}},j={};/**
|
|
40
2
|
* @license React
|
|
41
3
|
* react-jsx-runtime.production.min.js
|
|
42
4
|
*
|
|
@@ -44,7 +6,7 @@ Check the top-level render call using <`+a+">.")}return r}function ot(e,r){if(!(
|
|
|
44
6
|
*
|
|
45
7
|
* This source code is licensed under the MIT license found in the
|
|
46
8
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var
|
|
9
|
+
*/var ee;function Oe(){if(ee)return j;ee=1;var v=g,b=Symbol.for("react.element"),J=Symbol.for("react.fragment"),C=Object.prototype.hasOwnProperty,I=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W={key:!0,ref:!0,__self:!0,__source:!0};function A(R,f,S){var p,y={},T=null,Y=null;S!==void 0&&(T=""+S),f.key!==void 0&&(T=""+f.key),f.ref!==void 0&&(Y=f.ref);for(p in f)C.call(f,p)&&!W.hasOwnProperty(p)&&(y[p]=f[p]);if(R&&R.defaultProps)for(p in f=R.defaultProps,f)y[p]===void 0&&(y[p]=f[p]);return{$$typeof:b,type:R,key:T,ref:Y,props:y,_owner:I.current}}return j.Fragment=J,j.jsx=A,j.jsxs=A,j}var k={};/**
|
|
48
10
|
* @license React
|
|
49
11
|
* react-jsx-runtime.development.js
|
|
50
12
|
*
|
|
@@ -52,14 +14,14 @@ Check the top-level render call using <`+a+">.")}return r}function ot(e,r){if(!(
|
|
|
52
14
|
*
|
|
53
15
|
* This source code is licensed under the MIT license found in the
|
|
54
16
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/var
|
|
56
|
-
`+
|
|
57
|
-
`),
|
|
58
|
-
`),
|
|
59
|
-
`+
|
|
17
|
+
*/var re;function xe(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var v=g,b=Symbol.for("react.element"),J=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),R=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),te=Symbol.iterator,Ne="@@iterator";function Le(e){if(e===null||typeof e!="object")return null;var r=te&&e[te]||e[Ne];return typeof r=="function"?r:null}var O=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];$e("error",e,t)}}function $e(e,r,t){{var n=O.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Me=!1,Ve=!1,Ue=!1,Be=!1,Je=!1,ne;ne=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===C||e===W||Je||e===I||e===S||e===p||Be||e===Y||Me||Ve||Ue||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===y||e.$$typeof===A||e.$$typeof===R||e.$$typeof===f||e.$$typeof===ne||e.getModuleId!==void 0))}function ze(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ae(e){return e.displayName||"Context"}function E(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case J:return"Portal";case W:return"Profiler";case I:return"StrictMode";case S:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ae(r)+".Consumer";case A:var t=e;return ae(t._context)+".Provider";case f:return ze(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:E(e.type)||"Memo";case T:{var i=e,u=i._payload,o=i._init;try{return E(o(u))}catch{return null}}}return null}var P=Object.assign,D=0,oe,ie,ue,se,le,fe,ce;function de(){}de.__reactDisabledLog=!0;function qe(){{if(D===0){oe=console.log,ie=console.info,ue=console.warn,se=console.error,le=console.group,fe=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function Ke(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:oe}),info:P({},e,{value:ie}),warn:P({},e,{value:ue}),error:P({},e,{value:se}),group:P({},e,{value:le}),groupCollapsed:P({},e,{value:fe}),groupEnd:P({},e,{value:ce})})}D<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=O.ReactCurrentDispatcher,z;function N(e,r,t){{if(z===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
|
|
18
|
+
`+z+e}}var q=!1,L;{var He=typeof WeakMap=="function"?WeakMap:Map;L=new He}function ve(e,r){if(!e||q)return"";{var t=L.get(e);if(t!==void 0)return t}var n;q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=G.current,G.current=null,qe();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(_){n=_}Reflect.construct(e,[],o)}else{try{o.call()}catch(_){n=_}e.call(o.prototype)}}else{try{throw Error()}catch(_){n=_}e()}}catch(_){if(_&&n&&typeof _.stack=="string"){for(var a=_.stack.split(`
|
|
19
|
+
`),d=n.stack.split(`
|
|
20
|
+
`),s=a.length-1,l=d.length-1;s>=1&&l>=0&&a[s]!==d[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==d[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==d[l]){var h=`
|
|
21
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,h),h}while(s>=1&&l>=0);break}}}finally{q=!1,G.current=u,Ke(),Error.prepareStackTrace=i}var w=e?e.displayName||e.name:"",Se=w?N(w):"";return typeof e=="function"&&L.set(e,Se),Se}function Xe(e,r,t){return ve(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function $(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Ze(e));if(typeof e=="string")return N(e);switch(e){case S:return N("Suspense");case p:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Xe(e.render);case y:return $(e.type,r,t);case T:{var n=e,i=n._payload,u=n._init;try{return $(u(i),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,pe={},be=O.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=$(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function Qe(e,r,t,n,i){{var u=Function.call.bind(M);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var d=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(V(i),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),V(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,V(i),c("Failed %s type: %s",t,a.message),V(null))}}}var er=Array.isArray;function K(e){return er(e)}function rr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function tr(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function ge(e){if(tr(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rr(e)),he(e)}var F=O.ReactCurrentOwner,nr={key:!0,ref:!0,__self:!0,__source:!0},me,ye,H;H={};function ar(e){if(M.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function or(e){if(M.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ir(e,r){if(typeof e.ref=="string"&&F.current&&r&&F.current.stateNode!==r){var t=E(F.current.type);H[t]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(F.current.type),e.ref),H[t]=!0)}}function ur(e,r){{var t=function(){me||(me=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){ye||(ye=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var lr=function(e,r,t,n,i,u,o){var a={$$typeof:b,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function fr(e,r,t,n,i){{var u,o={},a=null,d=null;t!==void 0&&(ge(t),a=""+t),or(r)&&(ge(r.key),a=""+r.key),ar(r)&&(d=r.ref,ir(r,i));for(u in r)M.call(r,u)&&!nr.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||d){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ur(o,l),d&&sr(o,l)}return lr(e,a,d,i,n,F.current,o)}}var X=O.ReactCurrentOwner,Ee=O.ReactDebugCurrentFrame;function x(e){if(e){var r=e._owner,t=$(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function _e(){{if(X.current){var e=E(X.current.type);if(e)return`
|
|
60
22
|
|
|
61
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function cr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
62
24
|
|
|
63
|
-
Check your code at `+
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var Re={};function dr(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
64
26
|
|
|
65
|
-
Check the top-level render call using <`+
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=dr(r);if(Re[t])return;Re[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),x(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),x(null)}}function Pe(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&Te(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var i=Le(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Q(o.value)&&Te(o.value,r)}}}function vr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=E(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var i=E(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){x(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),x(null);break}}e.ref!==null&&(x(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),x(null))}}function Ce(e,r,t,n,i,u){{var o=Ge(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=cr(i);d?a+=d:a+=_e();var s;e===null?s="null":K(e)?s="array":e!==void 0&&e.$$typeof===b?(s="<"+(E(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=fr(e,r,t,i,u);if(l==null)return l;if(o){var h=r.children;if(h!==void 0)if(n)if(K(h)){for(var w=0;w<h.length;w++)Pe(h[w],e);Object.freeze&&Object.freeze(h)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pe(h,e)}return e===C?pr(l):vr(l),l}}function br(e,r,t){return Ce(e,r,t,!0)}function hr(e,r,t){return Ce(e,r,t,!1)}var gr=hr,mr=br;k.Fragment=C,k.jsx=gr,k.jsxs=mr}()),k}process.env.NODE_ENV==="production"?U.exports=Oe():U.exports=xe();var B=U.exports;const we={popups:[]},je=g.createContext(we),ke=()=>{const[v,b]=g.useState([]);return{popups:v}},Ae=({children:v})=>{const b=ke();return B.jsx(je.Provider,{value:b,children:v})},De={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null},Fe=g.createContext(De),Ie=()=>{const[v,b]=g.useState(null);return{cabinetType:2,apiAxios:null,cabinetIsLoading:!1,cabinetSettings:null,phoneNumber:v,setPhoneNumber:b}},We=({children:v})=>{const b=Ie();return B.jsx(Fe.Provider,{value:b,children:v})},yr="",Ye=({number:v})=>B.jsx("div",{children:v});m.AppProvider=We,m.PopupProvider=Ae,m.TestComponent=Ye,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bonuspluscomponents",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.44",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
"@mui/material": "^5.14.1",
|
|
19
19
|
"axios": "^1.4.0",
|
|
20
20
|
"classnames": "^2.3.2",
|
|
21
|
-
"react": "^18.2.0",
|
|
22
|
-
"react-dom": "^18.2.0",
|
|
23
21
|
"react-qr-code": "^2.0.11",
|
|
24
22
|
"sass": "^1.63.6",
|
|
25
23
|
"react-redux": "^8.1.1"
|
|
@@ -41,9 +39,10 @@
|
|
|
41
39
|
"@types/react-dom": "^18.0.11",
|
|
42
40
|
"@vitejs/plugin-react": "^4.0.0",
|
|
43
41
|
"vite": "^4.3.2",
|
|
44
|
-
"vite-plugin-dts": "^3.3.1"
|
|
45
|
-
"react": "^18.2.0",
|
|
46
|
-
"react-dom": "^18.2.0"
|
|
42
|
+
"vite-plugin-dts": "^3.3.1"
|
|
47
43
|
},
|
|
48
|
-
"peerDependencies": {
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": "^17.0.2",
|
|
46
|
+
"react-dom": "^17.0.2"
|
|
47
|
+
}
|
|
49
48
|
}
|