bonuspluscomponents 0.0.45 → 0.0.47
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.
|
@@ -9,21 +9,21 @@ object-assign
|
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var Ce;function
|
|
12
|
+
*/var Ce;function ir(){if(Ce)return D;Ce=1,Se();var c=I,R=60103;if(D.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;R=O("react.element"),D.Fragment=O("react.fragment")}var x=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function P(f,v,g){var s,m={},_=null,C=null;g!==void 0&&(_=""+g),v.key!==void 0&&(_=""+v.key),v.ref!==void 0&&(C=v.ref);for(s in v)w.call(v,s)&&!E.hasOwnProperty(s)&&(m[s]=v[s]);if(f&&f.defaultProps)for(s in v=f.defaultProps,v)m[s]===void 0&&(m[s]=v[s]);return{$$typeof:R,type:f,key:_,ref:C,props:m,_owner:x.current}}return D.jsx=P,D.jsxs=P,D}var X={};/** @license React v17.0.2
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var we;function
|
|
20
|
-
`+M+e}}var q=!1,N;{var
|
|
19
|
+
*/var we;function or(){return we||(we=1,function(c){process.env.NODE_ENV!=="production"&&function(){var R=I,O=Se(),x=60103,w=60106;c.Fragment=60107;var E=60108,P=60114,f=60109,v=60110,g=60112,s=60113,m=60120,_=60115,C=60116,W=60121,ee=60122,re=60117,te=60129,ne=60131;if(typeof Symbol=="function"&&Symbol.for){var d=Symbol.for;x=d("react.element"),w=d("react.portal"),c.Fragment=d("react.fragment"),E=d("react.strict_mode"),P=d("react.profiler"),f=d("react.provider"),v=d("react.context"),g=d("react.forward_ref"),s=d("react.suspense"),m=d("react.suspense_list"),_=d("react.memo"),C=d("react.lazy"),W=d("react.block"),ee=d("react.server.block"),re=d("react.fundamental"),d("react.scope"),d("react.opaque.id"),te=d("react.debug_trace_mode"),d("react.offscreen"),ne=d("react.legacy_hidden")}var ae=typeof Symbol=="function"&&Symbol.iterator,ke="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[ke];return typeof r=="function"?r:null}var S=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=S.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return""+i});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var $e=!1;function Ye(e){return!!(typeof e=="string"||typeof e=="function"||e===c.Fragment||e===P||e===te||e===E||e===s||e===m||e===ne||$e||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===_||e.$$typeof===f||e.$$typeof===v||e.$$typeof===g||e.$$typeof===re||e.$$typeof===W||e[0]===ee))}function We(e,r,t){var n=r.displayName||r.name||"";return e.displayName||(n!==""?t+"("+n+")":t)}function ie(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentName(). 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.Fragment:return"Fragment";case w:return"Portal";case P:return"Profiler";case E:return"StrictMode";case s:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var r=e;return ie(r)+".Consumer";case f:var t=e;return ie(t._context)+".Provider";case g:return We(e,e.render,"ForwardRef");case _:return y(e.type);case W:return y(e._render);case C:{var n=e,o=n._payload,u=n._init;try{return y(u(o))}catch{return null}}}return null}var $=0,oe,ue,se,ce,fe,le,ve;function de(){}de.__reactDisabledLog=!0;function Le(){{if($===0){oe=console.log,ue=console.info,se=console.warn,ce=console.error,fe=console.group,le=console.groupCollapsed,ve=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})}$++}}function Ne(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:oe}),info:O({},e,{value:ue}),warn:O({},e,{value:se}),error:O({},e,{value:ce}),group:O({},e,{value:fe}),groupCollapsed:O({},e,{value:le}),groupEnd:O({},e,{value:ve})})}$<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var F=S.ReactCurrentDispatcher,M;function L(e,r,t){{if(M===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);M=n&&n[1]||""}return`
|
|
20
|
+
`+M+e}}var q=!1,N;{var Ue=typeof WeakMap=="function"?WeakMap:Map;N=new Ue}function pe(e,r){if(!e||q)return"";{var t=N.get(e);if(t!==void 0)return t}var n;q=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=F.current,F.current=null,Le();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(j){n=j}Reflect.construct(e,[],i)}else{try{i.call()}catch(j){n=j}e.call(i.prototype)}}else{try{throw Error()}catch(j){n=j}e()}}catch(j){if(j&&n&&typeof j.stack=="string"){for(var a=j.stack.split(`
|
|
21
21
|
`),h=n.stack.split(`
|
|
22
22
|
`),l=a.length-1,p=h.length-1;l>=1&&p>=0&&a[l]!==h[p];)p--;for(;l>=1&&p>=0;l--,p--)if(a[l]!==h[p]){if(l!==1||p!==1)do if(l--,p--,p<0||a[l]!==h[p]){var T=`
|
|
23
|
-
`+a[l].replace(" at new "," at ");return typeof e=="function"&&N.set(e,T),T}while(l>=1&&p>=0);break}}}finally{q=!1,F.current=u,
|
|
23
|
+
`+a[l].replace(" at new "," at ");return typeof e=="function"&&N.set(e,T),T}while(l>=1&&p>=0);break}}}finally{q=!1,F.current=u,Ne(),Error.prepareStackTrace=o}var k=e?e.displayName||e.name:"",je=k?L(k):"";return typeof e=="function"&&N.set(e,je),je}function ge(e,r,t){return pe(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,Ve(e));if(typeof e=="string")return L(e);switch(e){case s:return L("Suspense");case m:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return ge(e.render);case _:return U(e.type,r,t);case W:return ge(e._render);case C:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var _e={},he=S.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Fe(e,r,t,n,o){{var u=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var h=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(V(o),b("%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,i,typeof a),V(null)),a instanceof Error&&!(a.message in _e)&&(_e[a.message]=!0,V(o),b("Failed %s type: %s",t,a.message),V(null))}}}var Y=S.ReactCurrentOwner,B=Object.prototype.hasOwnProperty,Me={key:!0,ref:!0,__self:!0,__source:!0},Ee,be,G;G={};function qe(e){if(B.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Be(e){if(B.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ge(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=y(Y.current.type);G[t]||(b('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',y(Y.current.type),e.ref),G[t]=!0)}}function Je(e,r){{var t=function(){Ee||(Ee=!0,b("%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 Ke(e,r){{var t=function(){be||(be=!0,b("%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 ze=function(e,r,t,n,o,u,i){var a={$$typeof:x,type:e,key:r,ref:t,props:i,_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:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function He(e,r,t,n,o){{var u,i={},a=null,h=null;t!==void 0&&(a=""+t),Be(r)&&(a=""+r.key),qe(r)&&(h=r.ref,Ge(r,o));for(u in r)B.call(r,u)&&!Me.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var l=e.defaultProps;for(u in l)i[u]===void 0&&(i[u]=l[u])}if(a||h){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Je(i,p),h&&Ke(i,p)}return ze(e,a,h,o,n,Y.current,i)}}var J=S.ReactCurrentOwner,Re=S.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var K;K=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function me(){{if(J.current){var e=y(J.current.type);if(e)return`
|
|
24
24
|
|
|
25
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
25
|
+
Check the render method of \``+e+"`."}return""}}function Xe(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
26
26
|
|
|
27
|
-
Check your code at `+r+":"+t+"."}return""}}var Oe={};function
|
|
27
|
+
Check your code at `+r+":"+t+"."}return""}}var Oe={};function Ze(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
28
28
|
|
|
29
|
-
Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=
|
|
29
|
+
Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Ze(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),A(e),b('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),A(null)}}function ye(e,r){{if(typeof e!="object")return;if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&Pe(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var o=De(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)z(i.value)&&Pe(i.value,r)}}}function Qe(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===g||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=y(r);Fe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var o=y(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function er(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Te(e,r,t,n,o,u){{var i=Ye(e);if(!i){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 h=Xe(o);h?a+=h:a+=me();var l;e===null?l="null":Array.isArray(e)?l="array":e!==void 0&&e.$$typeof===x?(l="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var p=He(e,r,t,o,u);if(p==null)return p;if(i){var T=r.children;if(T!==void 0)if(n)if(Array.isArray(T)){for(var k=0;k<T.length;k++)ye(T[k],e);Object.freeze&&Object.freeze(T)}else b("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 ye(T,e)}return e===c.Fragment?er(p):Qe(p),p}}function rr(e,r,t){return Te(e,r,t,!0)}function tr(e,r,t){return Te(e,r,t,!1)}var nr=tr,ar=rr;c.jsx=nr,c.jsxs=ar}()}(X)),X}process.env.NODE_ENV==="production"?Z.exports=ir():Z.exports=or();var Q=Z.exports;const ur={popups:[]},sr=I.createContext(ur),cr=()=>{const[c,R]=I.useState([]);return{popups:c}},fr=({children:c})=>{const R=cr();return Q.jsx(sr.Provider,{value:R,children:c})},lr={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null},Ae=I.createContext(lr),vr=()=>{const[c,R]=I.useState(null);return{cabinetType:2,apiAxios:null,cabinetIsLoading:!1,cabinetSettings:null,phoneNumber:c,setPhoneNumber:R}},dr=({children:c})=>{const R=vr();return Q.jsx(Ae.Provider,{value:R,children:c})};const pr=({number:c})=>Q.jsx("div",{children:c});exports.AppContext=Ae;exports.AppProvider=dr;exports.PopupProvider=fr;exports.TestComponent=pr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(y,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],T):(y=typeof globalThis<"u"?globalThis:y||self,T(y.bonuspluscomponents={},y.require$$1))})(this,function(y,T){"use strict";var M={exports:{}},A={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
@@ -9,21 +9,21 @@ object-assign
|
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var ne;function
|
|
12
|
+
*/var ne;function De(){if(ne)return A;ne=1,te();var c=T,R=60103;if(A.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;R=O("react.element"),A.Fragment=O("react.fragment")}var w=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function P(f,d,g){var s,m={},_=null,S=null;g!==void 0&&(_=""+g),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(S=d.ref);for(s in d)k.call(d,s)&&!E.hasOwnProperty(s)&&(m[s]=d[s]);if(f&&f.defaultProps)for(s in d=f.defaultProps,d)m[s]===void 0&&(m[s]=d[s]);return{$$typeof:R,type:f,key:_,ref:S,props:m,_owner:w.current}}return A.jsx=P,A.jsxs=P,A}var q={};/** @license React v17.0.2
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var ae;function
|
|
20
|
-
`+K+e}}var z=!1,U;{var Xe=typeof WeakMap=="function"?WeakMap:Map;U=new Xe}function
|
|
19
|
+
*/var ae;function Ie(){return ae||(ae=1,function(c){process.env.NODE_ENV!=="production"&&function(){var R=T,O=te(),w=60103,k=60106;c.Fragment=60107;var E=60108,P=60114,f=60109,d=60110,g=60112,s=60113,m=60120,_=60115,S=60116,N=60121,oe=60122,ue=60117,se=60129,ce=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;w=v("react.element"),k=v("react.portal"),c.Fragment=v("react.fragment"),E=v("react.strict_mode"),P=v("react.profiler"),f=v("react.provider"),d=v("react.context"),g=v("react.forward_ref"),s=v("react.suspense"),m=v("react.suspense_list"),_=v("react.memo"),S=v("react.lazy"),N=v("react.block"),oe=v("react.server.block"),ue=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),se=v("react.debug_trace_mode"),v("react.offscreen"),ce=v("react.legacy_hidden")}var fe=typeof Symbol=="function"&&Symbol.iterator,Me="@@iterator";function Be(e){if(e===null||typeof e!="object")return null;var r=fe&&e[fe]||e[Me];return typeof r=="function"?r:null}var D=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];qe("error",e,t)}}function qe(e,r,t){{var n=D.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return""+i});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ge=!1;function Je(e){return!!(typeof e=="string"||typeof e=="function"||e===c.Fragment||e===P||e===se||e===E||e===s||e===m||e===ce||Ge||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===_||e.$$typeof===f||e.$$typeof===d||e.$$typeof===g||e.$$typeof===ue||e.$$typeof===N||e[0]===oe))}function Ke(e,r,t){var n=r.displayName||r.name||"";return e.displayName||(n!==""?t+"("+n+")":t)}function le(e){return e.displayName||"Context"}function j(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentName(). 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.Fragment:return"Fragment";case k:return"Portal";case P:return"Profiler";case E:return"StrictMode";case s:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var r=e;return le(r)+".Consumer";case f:var t=e;return le(t._context)+".Provider";case g:return Ke(e,e.render,"ForwardRef");case _:return j(e.type);case N:return j(e._render);case S:{var n=e,o=n._payload,u=n._init;try{return j(u(o))}catch{return null}}}return null}var W=0,de,ve,pe,ge,_e,he,Ee;function be(){}be.__reactDisabledLog=!0;function ze(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,ge=console.error,_e=console.group,he=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function He(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:de}),info:O({},e,{value:ve}),warn:O({},e,{value:pe}),error:O({},e,{value:ge}),group:O({},e,{value:_e}),groupCollapsed:O({},e,{value:he}),groupEnd:O({},e,{value:Ee})})}W<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=D.ReactCurrentDispatcher,K;function $(e,r,t){{if(K===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);K=n&&n[1]||""}return`
|
|
20
|
+
`+K+e}}var z=!1,U;{var Xe=typeof WeakMap=="function"?WeakMap:Map;U=new Xe}function Re(e,r){if(!e||z)return"";{var t=U.get(e);if(t!==void 0)return t}var n;z=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,ze();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(C){n=C}Reflect.construct(e,[],i)}else{try{i.call()}catch(C){n=C}e.call(i.prototype)}}else{try{throw Error()}catch(C){n=C}e()}}catch(C){if(C&&n&&typeof C.stack=="string"){for(var a=C.stack.split(`
|
|
21
21
|
`),h=n.stack.split(`
|
|
22
22
|
`),l=a.length-1,p=h.length-1;l>=1&&p>=0&&a[l]!==h[p];)p--;for(;l>=1&&p>=0;l--,p--)if(a[l]!==h[p]){if(l!==1||p!==1)do if(l--,p--,p<0||a[l]!==h[p]){var x=`
|
|
23
|
-
`+a[l].replace(" at new "," at ");return typeof e=="function"&&U.set(e,x),x}while(l>=1&&p>=0);break}}}finally{z=!1,J.current=u,He(),Error.prepareStackTrace=o}var Y=e?e.displayName||e.name:"",
|
|
23
|
+
`+a[l].replace(" at new "," at ");return typeof e=="function"&&U.set(e,x),x}while(l>=1&&p>=0);break}}}finally{z=!1,J.current=u,He(),Error.prepareStackTrace=o}var Y=e?e.displayName||e.name:"",ke=Y?$(Y):"";return typeof e=="function"&&U.set(e,ke),ke}function me(e,r,t){return Re(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,Ze(e));if(typeof e=="string")return $(e);switch(e){case s:return $("Suspense");case m:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return me(e.render);case _:return V(e.type,r,t);case N:return me(e._render);case S:{var n=e,o=n._payload,u=n._init;try{return V(u(o),r,t)}catch{}}}return""}var Oe={},Pe=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}function Qe(e,r,t,n,o){{var u=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var h=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(F(o),b("%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,i,typeof a),F(null)),a instanceof Error&&!(a.message in Oe)&&(Oe[a.message]=!0,F(o),b("Failed %s type: %s",t,a.message),F(null))}}}var L=D.ReactCurrentOwner,H=Object.prototype.hasOwnProperty,er={key:!0,ref:!0,__self:!0,__source:!0},ye,Te,X;X={};function rr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function nr(e,r){if(typeof e.ref=="string"&&L.current&&r&&L.current.stateNode!==r){var t=j(L.current.type);X[t]||(b('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',j(L.current.type),e.ref),X[t]=!0)}}function ar(e,r){{var t=function(){ye||(ye=!0,b("%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 ir(e,r){{var t=function(){Te||(Te=!0,b("%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 or=function(e,r,t,n,o,u,i){var a={$$typeof:w,type:e,key:r,ref:t,props:i,_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:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ur(e,r,t,n,o){{var u,i={},a=null,h=null;t!==void 0&&(a=""+t),tr(r)&&(a=""+r.key),rr(r)&&(h=r.ref,nr(r,o));for(u in r)H.call(r,u)&&!er.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var l=e.defaultProps;for(u in l)i[u]===void 0&&(i[u]=l[u])}if(a||h){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ar(i,p),h&&ir(i,p)}return or(e,a,h,o,n,L.current,i)}}var Z=D.ReactCurrentOwner,je=D.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===w}function xe(){{if(Z.current){var e=j(Z.current.type);if(e)return`
|
|
24
24
|
|
|
25
25
|
Check the render method of \``+e+"`."}return""}}function sr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
26
26
|
|
|
27
|
-
Check your code at `+r+":"+t+"."}return""}}var
|
|
27
|
+
Check your code at `+r+":"+t+"."}return""}}var Ce={};function cr(e){{var r=xe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
28
28
|
|
|
29
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
29
|
+
Check the top-level render call using <`+t+">.")}return r}}function we(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),I(e),b('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),I(null)}}function Se(e,r){{if(typeof e!="object")return;if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&we(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=Be(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)ee(i.value)&&we(i.value,r)}}}function fr(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===g||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=j(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var o=j(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Ae(e,r,t,n,o,u){{var i=Je(e);if(!i){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 h=sr(o);h?a+=h:a+=xe();var l;e===null?l="null":Array.isArray(e)?l="array":e!==void 0&&e.$$typeof===w?(l="<"+(j(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var p=ur(e,r,t,o,u);if(p==null)return p;if(i){var x=r.children;if(x!==void 0)if(n)if(Array.isArray(x)){for(var Y=0;Y<x.length;Y++)Se(x[Y],e);Object.freeze&&Object.freeze(x)}else b("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 Se(x,e)}return e===c.Fragment?lr(p):fr(p),p}}function dr(e,r,t){return Ae(e,r,t,!0)}function vr(e,r,t){return Ae(e,r,t,!1)}var pr=vr,gr=dr;c.jsx=pr,c.jsxs=gr}()}(q)),q}process.env.NODE_ENV==="production"?M.exports=De():M.exports=Ie();var G=M.exports;const Ye={popups:[]},We=T.createContext(Ye),Le=()=>{const[c,R]=T.useState([]);return{popups:c}},Ne=({children:c})=>{const R=Le();return G.jsx(We.Provider,{value:R,children:c})},$e={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null},ie=T.createContext($e),Ue=()=>{const[c,R]=T.useState(null);return{cabinetType:2,apiAxios:null,cabinetIsLoading:!1,cabinetSettings:null,phoneNumber:c,setPhoneNumber:R}},Ve=({children:c})=>{const R=Ue();return G.jsx(ie.Provider,{value:R,children:c})},_r="",Fe=({number:c})=>G.jsx("div",{children:c});y.AppContext=ie,y.AppProvider=Ve,y.PopupProvider=Ne,y.TestComponent=Fe,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { PopupProvider } from "../AppContext/Context/PopupContext";
|
|
2
|
+
export { AppContext } from "../AppContext/Context/AppContext";
|
|
2
3
|
export { AppProvider } from "../AppContext/Context/AppContext";
|
|
3
4
|
export { default as TestComponent } from "./testComponent/TestComponent";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAEjE,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAC,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAE7D,OAAO,EAAC,OAAO,IAAK,aAAa,EAAC,MAAM,+BAA+B,CAAC"}
|
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.47",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -10,18 +10,7 @@
|
|
|
10
10
|
"preview": "vite preview",
|
|
11
11
|
"publish_with_new_version": "vite build --mode production && npm --no-git-tag-version version patch && npm publish"
|
|
12
12
|
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@emotion/react": "^11.11.1",
|
|
15
|
-
"@emotion/styled": "^11.11.0",
|
|
16
|
-
"@mui/icons-material": "^5.14.1",
|
|
17
|
-
"@mui/lab": "^5.0.0-alpha.137",
|
|
18
|
-
"@mui/material": "^5.14.1",
|
|
19
|
-
"axios": "^1.4.0",
|
|
20
|
-
"classnames": "^2.3.2",
|
|
21
|
-
"react-qr-code": "^2.0.11",
|
|
22
|
-
"sass": "^1.63.6",
|
|
23
|
-
"react-redux": "^8.1.1"
|
|
24
|
-
},
|
|
13
|
+
"dependencies": {},
|
|
25
14
|
"files": [
|
|
26
15
|
"./dist"
|
|
27
16
|
],
|