bonuspluscomponents 0.0.54 → 0.0.56

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.
@@ -17,7 +17,7 @@ interface CabinetSettings {
17
17
  type ProviderApp = {
18
18
  cabinetType: CabinetType | null;
19
19
  cabinetIsLoading: boolean;
20
- apiAxios: AxiosInstance | null;
20
+ apiAxios: () => AxiosInstance;
21
21
  phoneNumber: string | null;
22
22
  setPhoneNumber: React.Dispatch<React.SetStateAction<string | null>>;
23
23
  cabinetSettings: CabinetSettings | null;
@@ -1 +1 @@
1
- {"version":3,"file":"AppContext.d.ts","sourceRoot":"","sources":["../../../src/AppContext/Context/AppContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAIpC,aAAK,WAAW;IACZ,eAAe,IAAA;IACf,QAAQ,IAAA;IACR,EAAE,IAAA;CACL;AAED,UAAU,eAAe;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;CAClB;AAGD,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;IAE9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAEpE,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IAExC,SAAS,EAAC,MAAM,GAAC,IAAI,CAAC;IACtB,YAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAEjE,WAAW,EAAC,CAAC,SAAS,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,KAAG,IAAI,CAAC;CACrD,CAAC;AAqBF,eAAO,MAAM,UAAU,4BAAmC,CAAC;AAqD3D,eAAO,MAAM,WAAW;cAAyC,WAAW;iBAAe,WAAW;6CAIrG,CAAC"}
1
+ {"version":3,"file":"AppContext.d.ts","sourceRoot":"","sources":["../../../src/AppContext/Context/AppContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAC5E,OAAc,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAK3C,aAAK,WAAW;IACZ,eAAe,IAAA;IACf,QAAQ,IAAA;IACR,EAAE,IAAA;CACL;AAED,UAAU,eAAe;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;CAClB;AAGD,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAC,MAAK,aAAa,CAAC;IAE5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAEpE,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IAExC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAElE,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1D,CAAC;AAqBF,eAAO,MAAM,UAAU,4BAAmC,CAAC;AA0D3D,eAAO,MAAM,WAAW;cAAyC,WAAW;iBAAe,WAAW;6CAIrG,CAAC"}
@@ -2,28 +2,28 @@
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var H,Ce;function we(){if(Ce)return H;Ce=1;var f=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;function x(g){if(g==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(g)}function w(){try{if(!Object.assign)return!1;var g=new String("abc");if(g[5]="de",Object.getOwnPropertyNames(g)[0]==="5")return!1;for(var P={},c=0;c<10;c++)P["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(P).map(function(o){return P[o]});if(l.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(o){h[o]=o}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return H=w()?Object.assign:function(g,P){for(var c,l=x(g),h,o=1;o<arguments.length;o++){c=Object(arguments[o]);for(var b in c)E.call(c,b)&&(l[b]=c[b]);if(f){h=f(c);for(var _=0;_<h.length;_++)R.call(c,h[_])&&(l[h[_]]=c[h[_]])}}return l},H}/** @license React v17.0.2
5
+ */var H,Ce;function we(){if(Ce)return H;Ce=1;var f=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;function P(b){if(b==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(b)}function j(){try{if(!Object.assign)return!1;var b=new String("abc");if(b[5]="de",Object.getOwnPropertyNames(b)[0]==="5")return!1;for(var y={},c=0;c<10;c++)y["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(y).map(function(s){return y[s]});if(l.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(s){g[s]=s}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return H=j()?Object.assign:function(b,y){for(var c,l=P(b),g,s=1;s<arguments.length;s++){c=Object(arguments[s]);for(var R in c)_.call(c,R)&&(l[R]=c[R]);if(f){g=f(c);for(var h=0;h<g.length;h++)E.call(c,g[h])&&(l[g[h]]=c[g[h]])}}return l},H}/** @license React v17.0.2
6
6
  * react-jsx-runtime.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
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 je;function or(){if(je)return I;je=1,we();var f=C,E=60103;if(I.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;E=R("react.element"),I.Fragment=R("react.fragment")}var x=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w=Object.prototype.hasOwnProperty,g={key:!0,ref:!0,__self:!0,__source:!0};function P(c,l,h){var o,b={},_=null,A=null;h!==void 0&&(_=""+h),l.key!==void 0&&(_=""+l.key),l.ref!==void 0&&(A=l.ref);for(o in l)w.call(l,o)&&!g.hasOwnProperty(o)&&(b[o]=l[o]);if(c&&c.defaultProps)for(o in l=c.defaultProps,l)b[o]===void 0&&(b[o]=l[o]);return{$$typeof:E,type:c,key:_,ref:A,props:b,_owner:x.current}}return I.jsx=P,I.jsxs=P,I}var X={};/** @license React v17.0.2
12
+ */var je;function or(){if(je)return I;je=1,we();var f=C,_=60103;if(I.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;_=E("react.element"),I.Fragment=E("react.fragment")}var P=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j=Object.prototype.hasOwnProperty,b={key:!0,ref:!0,__self:!0,__source:!0};function y(c,l,g){var s,R={},h=null,S=null;g!==void 0&&(h=""+g),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(S=l.ref);for(s in l)j.call(l,s)&&!b.hasOwnProperty(s)&&(R[s]=l[s]);if(c&&c.defaultProps)for(s in l=c.defaultProps,l)R[s]===void 0&&(R[s]=l[s]);return{$$typeof:_,type:c,key:h,ref:S,props:R,_owner:P.current}}return I.jsx=y,I.jsxs=y,I}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 Te;function ur(){return Te||(Te=1,function(f){process.env.NODE_ENV!=="production"&&function(){var E=C,R=we(),x=60103,w=60106;f.Fragment=60107;var g=60108,P=60114,c=60109,l=60110,h=60112,o=60113,b=60120,_=60115,A=60116,W=60121,Q=60122,ee=60117,re=60129,te=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;x=v("react.element"),w=v("react.portal"),f.Fragment=v("react.fragment"),g=v("react.strict_mode"),P=v("react.profiler"),c=v("react.provider"),l=v("react.context"),h=v("react.forward_ref"),o=v("react.suspense"),b=v("react.suspense_list"),_=v("react.memo"),A=v("react.lazy"),W=v("react.block"),Q=v("react.server.block"),ee=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),re=v("react.debug_trace_mode"),v("react.offscreen"),te=v("react.legacy_hidden")}var ne=typeof Symbol=="function"&&Symbol.iterator,ke="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[ke];return typeof r=="function"?r:null}var S=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(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,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(i){return""+i});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var $e=!1;function Ye(e){return!!(typeof e=="string"||typeof e=="function"||e===f.Fragment||e===P||e===re||e===g||e===o||e===b||e===te||$e||typeof e=="object"&&e!==null&&(e.$$typeof===A||e.$$typeof===_||e.$$typeof===c||e.$$typeof===l||e.$$typeof===h||e.$$typeof===ee||e.$$typeof===W||e[0]===Q))}function We(e,r,t){var n=r.displayName||r.name||"";return e.displayName||(n!==""?t+"("+n+")":t)}function ae(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 f.Fragment:return"Fragment";case w:return"Portal";case P:return"Profiler";case g:return"StrictMode";case o:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var r=e;return ae(r)+".Consumer";case c:var t=e;return ae(t._context)+".Provider";case h:return We(e,e.render,"ForwardRef");case _:return y(e.type);case W:return y(e._render);case A:{var n=e,u=n._payload,s=n._init;try{return y(s(u))}catch{return null}}}return null}var $=0,ie,oe,ue,se,ce,fe,le;function de(){}de.__reactDisabledLog=!0;function Le(){{if($===0){ie=console.log,oe=console.info,ue=console.warn,se=console.error,ce=console.group,fe=console.groupCollapsed,le=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:R({},e,{value:ie}),info:R({},e,{value:oe}),warn:R({},e,{value:ue}),error:R({},e,{value:se}),group:R({},e,{value:ce}),groupCollapsed:R({},e,{value:fe}),groupEnd:R({},e,{value:le})})}$<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var F=S.ReactCurrentDispatcher,q;function L(e,r,t){{if(q===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
20
- `+q+e}}var M=!1,N;{var Ue=typeof WeakMap=="function"?WeakMap:Map;N=new Ue}function ve(e,r){if(!e||M)return"";{var t=N.get(e);if(t!==void 0)return t}var n;M=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=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(T){n=T}Reflect.construct(e,[],i)}else{try{i.call()}catch(T){n=T}e.call(i.prototype)}}else{try{throw Error()}catch(T){n=T}e()}}catch(T){if(T&&n&&typeof T.stack=="string"){for(var a=T.stack.split(`
19
+ */var Te;function ur(){return Te||(Te=1,function(f){process.env.NODE_ENV!=="production"&&function(){var _=C,E=we(),P=60103,j=60106;f.Fragment=60107;var b=60108,y=60114,c=60109,l=60110,g=60112,s=60113,R=60120,h=60115,S=60116,W=60121,Q=60122,ee=60117,re=60129,te=60131;if(typeof Symbol=="function"&&Symbol.for){var d=Symbol.for;P=d("react.element"),j=d("react.portal"),f.Fragment=d("react.fragment"),b=d("react.strict_mode"),y=d("react.profiler"),c=d("react.provider"),l=d("react.context"),g=d("react.forward_ref"),s=d("react.suspense"),R=d("react.suspense_list"),h=d("react.memo"),S=d("react.lazy"),W=d("react.block"),Q=d("react.server.block"),ee=d("react.fundamental"),d("react.scope"),d("react.opaque.id"),re=d("react.debug_trace_mode"),d("react.offscreen"),te=d("react.legacy_hidden")}var ne=typeof Symbol=="function"&&Symbol.iterator,ke="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[ke];return typeof r=="function"?r:null}var A=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(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=A.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===f.Fragment||e===y||e===re||e===b||e===s||e===R||e===te||$e||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===g||e.$$typeof===ee||e.$$typeof===W||e[0]===Q))}function We(e,r,t){var n=r.displayName||r.name||"";return e.displayName||(n!==""?t+"("+n+")":t)}function ae(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 f.Fragment:return"Fragment";case j:return"Portal";case y:return"Profiler";case b:return"StrictMode";case s:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var r=e;return ae(r)+".Consumer";case c:var t=e;return ae(t._context)+".Provider";case g:return We(e,e.render,"ForwardRef");case h:return x(e.type);case W:return x(e._render);case S:{var n=e,o=n._payload,u=n._init;try{return x(u(o))}catch{return null}}}return null}var $=0,ie,oe,ue,se,ce,fe,le;function ve(){}ve.__reactDisabledLog=!0;function Le(){{if($===0){ie=console.log,oe=console.info,ue=console.warn,se=console.error,ce=console.group,fe=console.groupCollapsed,le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,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:E({},e,{value:ie}),info:E({},e,{value:oe}),warn:E({},e,{value:ue}),error:E({},e,{value:se}),group:E({},e,{value:ce}),groupCollapsed:E({},e,{value:fe}),groupEnd:E({},e,{value:le})})}$<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var F=A.ReactCurrentDispatcher,q;function L(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
20
+ `+q+e}}var M=!1,N;{var Ue=typeof WeakMap=="function"?WeakMap:Map;N=new Ue}function de(e,r){if(!e||M)return"";{var t=N.get(e);if(t!==void 0)return t}var n;M=!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(w){n=w}Reflect.construct(e,[],i)}else{try{i.call()}catch(w){n=w}e.call(i.prototype)}}else{try{throw Error()}catch(w){n=w}e()}}catch(w){if(w&&n&&typeof w.stack=="string"){for(var a=w.stack.split(`
21
21
  `),m=n.stack.split(`
22
- `),d=a.length-1,p=m.length-1;d>=1&&p>=0&&a[d]!==m[p];)p--;for(;d>=1&&p>=0;d--,p--)if(a[d]!==m[p]){if(d!==1||p!==1)do if(d--,p--,p<0||a[d]!==m[p]){var j=`
23
- `+a[d].replace(" at new "," at ");return typeof e=="function"&&N.set(e,j),j}while(d>=1&&p>=0);break}}}finally{M=!1,F.current=s,Ne(),Error.prepareStackTrace=u}var D=e?e.displayName||e.name:"",ye=D?L(D):"";return typeof e=="function"&&N.set(e,ye),ye}function pe(e,r,t){return ve(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 ve(e,Ve(e));if(typeof e=="string")return L(e);switch(e){case o:return L("Suspense");case b:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return pe(e.render);case _:return U(e.type,r,t);case W:return pe(e._render);case A:{var n=e,u=n._payload,s=n._init;try{return U(s(u),r,t)}catch{}}}return""}var ge={},_e=S.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}function Fe(e,r,t,n,u){{var s=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=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 m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(V(u),O("%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 ge)&&(ge[a.message]=!0,V(u),O("Failed %s type: %s",t,a.message),V(null))}}}var Y=S.ReactCurrentOwner,B=Object.prototype.hasOwnProperty,qe={key:!0,ref:!0,__self:!0,__source:!0},he,Ee,G;G={};function Me(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]||(O('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(){he||(he=!0,O("%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 ze(e,r){{var t=function(){Ee||(Ee=!0,O("%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 Ke=function(e,r,t,n,u,s,i){var a={$$typeof:x,type:e,key:r,ref:t,props:i,_owner:s};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:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function He(e,r,t,n,u){{var s,i={},a=null,m=null;t!==void 0&&(a=""+t),Be(r)&&(a=""+r.key),Me(r)&&(m=r.ref,Ge(r,u));for(s in r)B.call(r,s)&&!qe.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var d=e.defaultProps;for(s in d)i[s]===void 0&&(i[s]=d[s])}if(a||m){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Je(i,p),m&&ze(i,p)}return Ke(e,a,m,u,n,Y.current,i)}}var J=S.ReactCurrentOwner,be=S.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var z;z=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function Re(){{if(J.current){var e=y(J.current.type);if(e)return`
22
+ `),v=a.length-1,p=m.length-1;v>=1&&p>=0&&a[v]!==m[p];)p--;for(;v>=1&&p>=0;v--,p--)if(a[v]!==m[p]){if(v!==1||p!==1)do if(v--,p--,p<0||a[v]!==m[p]){var T=`
23
+ `+a[v].replace(" at new "," at ");return typeof e=="function"&&N.set(e,T),T}while(v>=1&&p>=0);break}}}finally{M=!1,F.current=u,Ne(),Error.prepareStackTrace=o}var D=e?e.displayName||e.name:"",xe=D?L(D):"";return typeof e=="function"&&N.set(e,xe),xe}function pe(e,r,t){return de(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 de(e,Ve(e));if(typeof e=="string")return L(e);switch(e){case s:return L("Suspense");case R:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return pe(e.render);case h:return U(e.type,r,t);case W:return pe(e._render);case S:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var ge={},he=A.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 m=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 m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){a=v}a&&!(a instanceof Error)&&(V(o),O("%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 ge)&&(ge[a.message]=!0,V(o),O("Failed %s type: %s",t,a.message),V(null))}}}var Y=A.ReactCurrentOwner,B=Object.prototype.hasOwnProperty,qe={key:!0,ref:!0,__self:!0,__source:!0},_e,Ee,G;G={};function Me(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=x(Y.current.type);G[t]||(O('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',x(Y.current.type),e.ref),G[t]=!0)}}function Je(e,r){{var t=function(){_e||(_e=!0,O("%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 ze(e,r){{var t=function(){Ee||(Ee=!0,O("%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 Ke=function(e,r,t,n,o,u,i){var a={$$typeof:P,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,m=null;t!==void 0&&(a=""+t),Be(r)&&(a=""+r.key),Me(r)&&(m=r.ref,Ge(r,o));for(u in r)B.call(r,u)&&!qe.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var v=e.defaultProps;for(u in v)i[u]===void 0&&(i[u]=v[u])}if(a||m){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Je(i,p),m&&ze(i,p)}return Ke(e,a,m,o,n,Y.current,i)}}var J=A.ReactCurrentOwner,be=A.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var z;z=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===P}function Re(){{if(J.current){var e=x(J.current.type);if(e)return`
24
24
 
25
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
27
  Check your code at `+r+":"+t+"."}return""}}var me={};function Ze(e){{var r=Re();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 Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Ze(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),k(e),O('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),k(null)}}function Pe(e,r){{if(typeof e!="object")return;if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];K(n)&&Oe(n,r)}else if(K(e))e._store&&(e._store.validated=!0);else if(e){var u=De(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),i;!(i=s.next()).done;)K(i.value)&&Oe(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===h||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&&!z){z=!0;var u=y(r);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&O("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"){k(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),k(null);break}}e.ref!==null&&(k(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}function xe(e,r,t,n,u,s){{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 m=Xe(u);m?a+=m:a+=Re();var d;e===null?d="null":Array.isArray(e)?d="array":e!==void 0&&e.$$typeof===x?(d="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var p=He(e,r,t,u,s);if(p==null)return p;if(i){var j=r.children;if(j!==void 0)if(n)if(Array.isArray(j)){for(var D=0;D<j.length;D++)Pe(j[D],e);Object.freeze&&Object.freeze(j)}else O("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(j,e)}return e===f.Fragment?er(p):Qe(p),p}}function rr(e,r,t){return xe(e,r,t,!0)}function tr(e,r,t){return xe(e,r,t,!1)}var nr=tr,ar=rr;f.jsx=nr,f.jsxs=ar}()}(X)),X}process.env.NODE_ENV==="production"?Z.exports=or():Z.exports=ur();var Ae=Z.exports;const sr={popups:[]},cr=C.createContext(sr),fr=()=>{const[f,E]=C.useState([]);return{popups:f}},lr=({children:f})=>{const E=fr();return Ae.jsx(cr.Provider,{value:E,children:f})},dr={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null,authToken:null,setAuthToken:null,createAxios:null},Se=C.createContext(dr),vr=({cabinetType:f})=>{const[E,R]=C.useState(null),[x,w]=C.useState(null),[g,P]=C.useState(null),[c,l]=C.useState(null);return C.useEffect(()=>{(async()=>{if(!g||!E||f===null)return;const b=await g.post("/externalCustomerCabinet/cabinetInfo",{phoneNumber:E,cabinetType:f});l(b.data)})()},[E,g]),{cabinetType:f,apiAxios:g,cabinetIsLoading:!1,cabinetSettings:c,phoneNumber:E,setPhoneNumber:R,authToken:x,setAuthToken:w,createAxios:(o,b)=>{const _=ir.create();_.defaults.baseURL=b,_.defaults.headers.common.Authorization=o,P(_)}}},pr=({children:f,cabinetType:E})=>{const R=vr({cabinetType:E});return Ae.jsx(Se.Provider,{value:{...R,cabinetType:E},children:f})};exports.AppContext=Se;exports.AppProvider=pr;exports.PopupProvider=lr;
29
+ Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Ze(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+x(e._owner.type)+"."),k(e),O('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),k(null)}}function Pe(e,r){{if(typeof e!="object")return;if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];K(n)&&Oe(n,r)}else if(K(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;)K(i.value)&&Oe(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===h))t=r.propTypes;else return;if(t){var n=x(r);Fe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!z){z=!0;var o=x(r);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&O("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"){k(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),k(null);break}}e.ref!==null&&(k(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}function ye(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 m=Xe(o);m?a+=m:a+=Re();var v;e===null?v="null":Array.isArray(e)?v="array":e!==void 0&&e.$$typeof===P?(v="<"+(x(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,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 D=0;D<T.length;D++)Pe(T[D],e);Object.freeze&&Object.freeze(T)}else O("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(T,e)}return e===f.Fragment?er(p):Qe(p),p}}function rr(e,r,t){return ye(e,r,t,!0)}function tr(e,r,t){return ye(e,r,t,!1)}var nr=tr,ar=rr;f.jsx=nr,f.jsxs=ar}()}(X)),X}process.env.NODE_ENV==="production"?Z.exports=or():Z.exports=ur();var Se=Z.exports;const sr={popups:[]},cr=C.createContext(sr),fr=()=>{const[f,_]=C.useState([]);return{popups:f}},lr=({children:f})=>{const _=fr();return Se.jsx(cr.Provider,{value:_,children:f})},vr={cabinetType:null,cabinetIsLoading:!0,apiAxios:()=>null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null,authToken:null,setAuthToken:null,createAxios:null},Ae=C.createContext(vr),dr=({cabinetType:f})=>{const[_,E]=C.useState(null),[P,j]=C.useState(null),[b,y]=C.useState(null),c=()=>ir.create({baseURL:b??"",headers:{Authorization:P}}),[l,g]=C.useState(null);return C.useEffect(()=>{(async()=>{if(!P||!_||f===null)return;const h=await c().post("/externalCustomerCabinet/cabinetInfo",{phoneNumber:_,cabinetType:f});g(h.data)})()},[_,P]),{cabinetType:f,apiAxios:c,cabinetIsLoading:!1,cabinetSettings:l,phoneNumber:_,setPhoneNumber:E,authToken:P,setAuthToken:j,createAxios:(R,h)=>{j(R),y(h)}}},pr=({children:f,cabinetType:_})=>{const E=dr({cabinetType:_});return Se.jsx(Ae.Provider,{value:{...E,cabinetType:_},children:f})};exports.AppContext=Ae;exports.AppProvider=pr;exports.PopupProvider=lr;
@@ -11,43 +11,43 @@ function Se() {
11
11
  if (je)
12
12
  return H;
13
13
  je = 1;
14
- var f = Object.getOwnPropertySymbols, E = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
15
- function x(g) {
16
- if (g == null)
14
+ var f = Object.getOwnPropertySymbols, _ = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
15
+ function P(b) {
16
+ if (b == null)
17
17
  throw new TypeError("Object.assign cannot be called with null or undefined");
18
- return Object(g);
18
+ return Object(b);
19
19
  }
20
- function T() {
20
+ function j() {
21
21
  try {
22
22
  if (!Object.assign)
23
23
  return !1;
24
- var g = new String("abc");
25
- if (g[5] = "de", Object.getOwnPropertyNames(g)[0] === "5")
24
+ var b = new String("abc");
25
+ if (b[5] = "de", Object.getOwnPropertyNames(b)[0] === "5")
26
26
  return !1;
27
- for (var P = {}, c = 0; c < 10; c++)
28
- P["_" + String.fromCharCode(c)] = c;
29
- var l = Object.getOwnPropertyNames(P).map(function(o) {
30
- return P[o];
27
+ for (var x = {}, c = 0; c < 10; c++)
28
+ x["_" + String.fromCharCode(c)] = c;
29
+ var l = Object.getOwnPropertyNames(x).map(function(s) {
30
+ return x[s];
31
31
  });
32
32
  if (l.join("") !== "0123456789")
33
33
  return !1;
34
- var h = {};
35
- return "abcdefghijklmnopqrst".split("").forEach(function(o) {
36
- h[o] = o;
37
- }), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
34
+ var g = {};
35
+ return "abcdefghijklmnopqrst".split("").forEach(function(s) {
36
+ g[s] = s;
37
+ }), Object.keys(Object.assign({}, g)).join("") === "abcdefghijklmnopqrst";
38
38
  } catch {
39
39
  return !1;
40
40
  }
41
41
  }
42
- return H = T() ? Object.assign : function(g, P) {
43
- for (var c, l = x(g), h, o = 1; o < arguments.length; o++) {
44
- c = Object(arguments[o]);
45
- for (var b in c)
46
- E.call(c, b) && (l[b] = c[b]);
42
+ return H = j() ? Object.assign : function(b, x) {
43
+ for (var c, l = P(b), g, s = 1; s < arguments.length; s++) {
44
+ c = Object(arguments[s]);
45
+ for (var R in c)
46
+ _.call(c, R) && (l[R] = c[R]);
47
47
  if (f) {
48
- h = f(c);
49
- for (var _ = 0; _ < h.length; _++)
50
- R.call(c, h[_]) && (l[h[_]] = c[h[_]]);
48
+ g = f(c);
49
+ for (var h = 0; h < g.length; h++)
50
+ E.call(c, g[h]) && (l[g[h]] = c[g[h]]);
51
51
  }
52
52
  }
53
53
  return l;
@@ -66,23 +66,23 @@ function sr() {
66
66
  if (Ce)
67
67
  return D;
68
68
  Ce = 1, Se();
69
- var f = we, E = 60103;
69
+ var f = we, _ = 60103;
70
70
  if (D.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
71
- var R = Symbol.for;
72
- E = R("react.element"), D.Fragment = R("react.fragment");
71
+ var E = Symbol.for;
72
+ _ = E("react.element"), D.Fragment = E("react.fragment");
73
73
  }
74
- var x = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = Object.prototype.hasOwnProperty, g = { key: !0, ref: !0, __self: !0, __source: !0 };
75
- function P(c, l, h) {
76
- var o, b = {}, _ = null, w = null;
77
- h !== void 0 && (_ = "" + h), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (w = l.ref);
78
- for (o in l)
79
- T.call(l, o) && !g.hasOwnProperty(o) && (b[o] = l[o]);
74
+ var P = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, j = Object.prototype.hasOwnProperty, b = { key: !0, ref: !0, __self: !0, __source: !0 };
75
+ function x(c, l, g) {
76
+ var s, R = {}, h = null, w = null;
77
+ g !== void 0 && (h = "" + g), l.key !== void 0 && (h = "" + l.key), l.ref !== void 0 && (w = l.ref);
78
+ for (s in l)
79
+ j.call(l, s) && !b.hasOwnProperty(s) && (R[s] = l[s]);
80
80
  if (c && c.defaultProps)
81
- for (o in l = c.defaultProps, l)
82
- b[o] === void 0 && (b[o] = l[o]);
83
- return { $$typeof: E, type: c, key: _, ref: w, props: b, _owner: x.current };
81
+ for (s in l = c.defaultProps, l)
82
+ R[s] === void 0 && (R[s] = l[s]);
83
+ return { $$typeof: _, type: c, key: h, ref: w, props: R, _owner: P.current };
84
84
  }
85
- return D.jsx = P, D.jsxs = P, D;
85
+ return D.jsx = x, D.jsxs = x, D;
86
86
  }
87
87
  var X = {};
88
88
  /** @license React v17.0.2
@@ -97,12 +97,12 @@ var Te;
97
97
  function cr() {
98
98
  return Te || (Te = 1, function(f) {
99
99
  process.env.NODE_ENV !== "production" && function() {
100
- var E = we, R = Se(), x = 60103, T = 60106;
100
+ var _ = we, E = Se(), P = 60103, j = 60106;
101
101
  f.Fragment = 60107;
102
- var g = 60108, P = 60114, c = 60109, l = 60110, h = 60112, o = 60113, b = 60120, _ = 60115, w = 60116, W = 60121, Q = 60122, ee = 60117, re = 60129, te = 60131;
102
+ var b = 60108, x = 60114, c = 60109, l = 60110, g = 60112, s = 60113, R = 60120, h = 60115, w = 60116, W = 60121, Q = 60122, ee = 60117, re = 60129, te = 60131;
103
103
  if (typeof Symbol == "function" && Symbol.for) {
104
- var v = Symbol.for;
105
- x = v("react.element"), T = v("react.portal"), f.Fragment = v("react.fragment"), g = v("react.strict_mode"), P = v("react.profiler"), c = v("react.provider"), l = v("react.context"), h = v("react.forward_ref"), o = v("react.suspense"), b = v("react.suspense_list"), _ = v("react.memo"), w = v("react.lazy"), W = v("react.block"), Q = v("react.server.block"), ee = v("react.fundamental"), v("react.scope"), v("react.opaque.id"), re = v("react.debug_trace_mode"), v("react.offscreen"), te = v("react.legacy_hidden");
104
+ var d = Symbol.for;
105
+ P = d("react.element"), j = d("react.portal"), f.Fragment = d("react.fragment"), b = d("react.strict_mode"), x = d("react.profiler"), c = d("react.provider"), l = d("react.context"), g = d("react.forward_ref"), s = d("react.suspense"), R = d("react.suspense_list"), h = d("react.memo"), w = d("react.lazy"), W = d("react.block"), Q = d("react.server.block"), ee = d("react.fundamental"), d("react.scope"), d("react.opaque.id"), re = d("react.debug_trace_mode"), d("react.offscreen"), te = d("react.legacy_hidden");
106
106
  }
107
107
  var ne = typeof Symbol == "function" && Symbol.iterator, De = "@@iterator";
108
108
  function Ie(e) {
@@ -111,7 +111,7 @@ function cr() {
111
111
  var r = ne && e[ne] || e[De];
112
112
  return typeof r == "function" ? r : null;
113
113
  }
114
- var A = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
114
+ var A = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
115
115
  function O(e) {
116
116
  {
117
117
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
@@ -121,17 +121,17 @@ function cr() {
121
121
  }
122
122
  function $e(e, r, t) {
123
123
  {
124
- var n = A.ReactDebugCurrentFrame, u = n.getStackAddendum();
125
- u !== "" && (r += "%s", t = t.concat([u]));
126
- var s = t.map(function(i) {
124
+ var n = A.ReactDebugCurrentFrame, o = n.getStackAddendum();
125
+ o !== "" && (r += "%s", t = t.concat([o]));
126
+ var u = t.map(function(i) {
127
127
  return "" + i;
128
128
  });
129
- s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
129
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
130
130
  }
131
131
  }
132
132
  var Ye = !1;
133
133
  function We(e) {
134
- return !!(typeof e == "string" || typeof e == "function" || e === f.Fragment || e === P || e === re || e === g || e === o || e === b || e === te || Ye || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === _ || e.$$typeof === c || e.$$typeof === l || e.$$typeof === h || e.$$typeof === ee || e.$$typeof === W || e[0] === Q));
134
+ return !!(typeof e == "string" || typeof e == "function" || e === f.Fragment || e === x || e === re || e === b || e === s || e === R || e === te || Ye || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === h || e.$$typeof === c || e.$$typeof === l || e.$$typeof === g || e.$$typeof === ee || e.$$typeof === W || e[0] === Q));
135
135
  }
136
136
  function Le(e, r, t) {
137
137
  var n = r.displayName || r.name || "";
@@ -150,15 +150,15 @@ function cr() {
150
150
  switch (e) {
151
151
  case f.Fragment:
152
152
  return "Fragment";
153
- case T:
153
+ case j:
154
154
  return "Portal";
155
- case P:
155
+ case x:
156
156
  return "Profiler";
157
- case g:
157
+ case b:
158
158
  return "StrictMode";
159
- case o:
159
+ case s:
160
160
  return "Suspense";
161
- case b:
161
+ case R:
162
162
  return "SuspenseList";
163
163
  }
164
164
  if (typeof e == "object")
@@ -169,16 +169,16 @@ function cr() {
169
169
  case c:
170
170
  var t = e;
171
171
  return ae(t._context) + ".Provider";
172
- case h:
172
+ case g:
173
173
  return Le(e, e.render, "ForwardRef");
174
- case _:
174
+ case h:
175
175
  return y(e.type);
176
176
  case W:
177
177
  return y(e._render);
178
178
  case w: {
179
- var n = e, u = n._payload, s = n._init;
179
+ var n = e, o = n._payload, u = n._init;
180
180
  try {
181
- return y(s(u));
181
+ return y(u(o));
182
182
  } catch {
183
183
  return null;
184
184
  }
@@ -187,9 +187,9 @@ function cr() {
187
187
  return null;
188
188
  }
189
189
  var I = 0, ie, oe, ue, se, ce, fe, le;
190
- function de() {
190
+ function ve() {
191
191
  }
192
- de.__reactDisabledLog = !0;
192
+ ve.__reactDisabledLog = !0;
193
193
  function Ne() {
194
194
  {
195
195
  if (I === 0) {
@@ -197,7 +197,7 @@ function cr() {
197
197
  var e = {
198
198
  configurable: !0,
199
199
  enumerable: !0,
200
- value: de,
200
+ value: ve,
201
201
  writable: !0
202
202
  };
203
203
  Object.defineProperties(console, {
@@ -222,25 +222,25 @@ function cr() {
222
222
  writable: !0
223
223
  };
224
224
  Object.defineProperties(console, {
225
- log: R({}, e, {
225
+ log: E({}, e, {
226
226
  value: ie
227
227
  }),
228
- info: R({}, e, {
228
+ info: E({}, e, {
229
229
  value: oe
230
230
  }),
231
- warn: R({}, e, {
231
+ warn: E({}, e, {
232
232
  value: ue
233
233
  }),
234
- error: R({}, e, {
234
+ error: E({}, e, {
235
235
  value: se
236
236
  }),
237
- group: R({}, e, {
237
+ group: E({}, e, {
238
238
  value: ce
239
239
  }),
240
- groupCollapsed: R({}, e, {
240
+ groupCollapsed: E({}, e, {
241
241
  value: fe
242
242
  }),
243
- groupEnd: R({}, e, {
243
+ groupEnd: E({}, e, {
244
244
  value: le
245
245
  })
246
246
  });
@@ -254,8 +254,8 @@ function cr() {
254
254
  if (M === void 0)
255
255
  try {
256
256
  throw Error();
257
- } catch (u) {
258
- var n = u.stack.trim().match(/\n( *(at )?)/);
257
+ } catch (o) {
258
+ var n = o.stack.trim().match(/\n( *(at )?)/);
259
259
  M = n && n[1] || "";
260
260
  }
261
261
  return `
@@ -267,7 +267,7 @@ function cr() {
267
267
  var Ve = typeof WeakMap == "function" ? WeakMap : Map;
268
268
  N = new Ve();
269
269
  }
270
- function ve(e, r) {
270
+ function de(e, r) {
271
271
  if (!e || q)
272
272
  return "";
273
273
  {
@@ -277,10 +277,10 @@ function cr() {
277
277
  }
278
278
  var n;
279
279
  q = !0;
280
- var u = Error.prepareStackTrace;
280
+ var o = Error.prepareStackTrace;
281
281
  Error.prepareStackTrace = void 0;
282
- var s;
283
- s = F.current, F.current = null, Ne();
282
+ var u;
283
+ u = F.current, F.current = null, Ne();
284
284
  try {
285
285
  if (r) {
286
286
  var i = function() {
@@ -293,53 +293,53 @@ function cr() {
293
293
  }), typeof Reflect == "object" && Reflect.construct) {
294
294
  try {
295
295
  Reflect.construct(i, []);
296
- } catch (C) {
297
- n = C;
296
+ } catch (T) {
297
+ n = T;
298
298
  }
299
299
  Reflect.construct(e, [], i);
300
300
  } else {
301
301
  try {
302
302
  i.call();
303
- } catch (C) {
304
- n = C;
303
+ } catch (T) {
304
+ n = T;
305
305
  }
306
306
  e.call(i.prototype);
307
307
  }
308
308
  } else {
309
309
  try {
310
310
  throw Error();
311
- } catch (C) {
312
- n = C;
311
+ } catch (T) {
312
+ n = T;
313
313
  }
314
314
  e();
315
315
  }
316
- } catch (C) {
317
- if (C && n && typeof C.stack == "string") {
318
- for (var a = C.stack.split(`
316
+ } catch (T) {
317
+ if (T && n && typeof T.stack == "string") {
318
+ for (var a = T.stack.split(`
319
319
  `), m = n.stack.split(`
320
- `), d = a.length - 1, p = m.length - 1; d >= 1 && p >= 0 && a[d] !== m[p]; )
320
+ `), v = a.length - 1, p = m.length - 1; v >= 1 && p >= 0 && a[v] !== m[p]; )
321
321
  p--;
322
- for (; d >= 1 && p >= 0; d--, p--)
323
- if (a[d] !== m[p]) {
324
- if (d !== 1 || p !== 1)
322
+ for (; v >= 1 && p >= 0; v--, p--)
323
+ if (a[v] !== m[p]) {
324
+ if (v !== 1 || p !== 1)
325
325
  do
326
- if (d--, p--, p < 0 || a[d] !== m[p]) {
327
- var j = `
328
- ` + a[d].replace(" at new ", " at ");
329
- return typeof e == "function" && N.set(e, j), j;
326
+ if (v--, p--, p < 0 || a[v] !== m[p]) {
327
+ var C = `
328
+ ` + a[v].replace(" at new ", " at ");
329
+ return typeof e == "function" && N.set(e, C), C;
330
330
  }
331
- while (d >= 1 && p >= 0);
331
+ while (v >= 1 && p >= 0);
332
332
  break;
333
333
  }
334
334
  }
335
335
  } finally {
336
- q = !1, F.current = s, Ue(), Error.prepareStackTrace = u;
336
+ q = !1, F.current = u, Ue(), Error.prepareStackTrace = o;
337
337
  }
338
338
  var k = e ? e.displayName || e.name : "", ye = k ? L(k) : "";
339
339
  return typeof e == "function" && N.set(e, ye), ye;
340
340
  }
341
341
  function pe(e, r, t) {
342
- return ve(e, !1);
342
+ return de(e, !1);
343
343
  }
344
344
  function Fe(e) {
345
345
  var r = e.prototype;
@@ -349,46 +349,46 @@ function cr() {
349
349
  if (e == null)
350
350
  return "";
351
351
  if (typeof e == "function")
352
- return ve(e, Fe(e));
352
+ return de(e, Fe(e));
353
353
  if (typeof e == "string")
354
354
  return L(e);
355
355
  switch (e) {
356
- case o:
356
+ case s:
357
357
  return L("Suspense");
358
- case b:
358
+ case R:
359
359
  return L("SuspenseList");
360
360
  }
361
361
  if (typeof e == "object")
362
362
  switch (e.$$typeof) {
363
- case h:
363
+ case g:
364
364
  return pe(e.render);
365
- case _:
365
+ case h:
366
366
  return U(e.type, r, t);
367
367
  case W:
368
368
  return pe(e._render);
369
369
  case w: {
370
- var n = e, u = n._payload, s = n._init;
370
+ var n = e, o = n._payload, u = n._init;
371
371
  try {
372
- return U(s(u), r, t);
372
+ return U(u(o), r, t);
373
373
  } catch {
374
374
  }
375
375
  }
376
376
  }
377
377
  return "";
378
378
  }
379
- var ge = {}, _e = A.ReactDebugCurrentFrame;
379
+ var ge = {}, he = A.ReactDebugCurrentFrame;
380
380
  function V(e) {
381
381
  if (e) {
382
382
  var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
383
- _e.setExtraStackFrame(t);
383
+ he.setExtraStackFrame(t);
384
384
  } else
385
- _e.setExtraStackFrame(null);
385
+ he.setExtraStackFrame(null);
386
386
  }
387
- function Me(e, r, t, n, u) {
387
+ function Me(e, r, t, n, o) {
388
388
  {
389
- var s = Function.call.bind(Object.prototype.hasOwnProperty);
389
+ var u = Function.call.bind(Object.prototype.hasOwnProperty);
390
390
  for (var i in e)
391
- if (s(e, i)) {
391
+ if (u(e, i)) {
392
392
  var a = void 0;
393
393
  try {
394
394
  if (typeof e[i] != "function") {
@@ -396,10 +396,10 @@ function cr() {
396
396
  throw m.name = "Invariant Violation", m;
397
397
  }
398
398
  a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
399
- } catch (d) {
400
- a = d;
399
+ } catch (v) {
400
+ a = v;
401
401
  }
402
- a && !(a instanceof Error) && (V(u), O("%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 ge) && (ge[a.message] = !0, V(u), O("Failed %s type: %s", t, a.message), V(null));
402
+ a && !(a instanceof Error) && (V(o), O("%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 ge) && (ge[a.message] = !0, V(o), O("Failed %s type: %s", t, a.message), V(null));
403
403
  }
404
404
  }
405
405
  }
@@ -408,7 +408,7 @@ function cr() {
408
408
  ref: !0,
409
409
  __self: !0,
410
410
  __source: !0
411
- }, he, Ee, G;
411
+ }, _e, Ee, G;
412
412
  G = {};
413
413
  function Be(e) {
414
414
  if (B.call(e, "ref")) {
@@ -435,7 +435,7 @@ function cr() {
435
435
  function ze(e, r) {
436
436
  {
437
437
  var t = function() {
438
- he || (he = !0, O("%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));
438
+ _e || (_e = !0, O("%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));
439
439
  };
440
440
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
441
441
  get: t,
@@ -454,17 +454,17 @@ function cr() {
454
454
  });
455
455
  }
456
456
  }
457
- var He = function(e, r, t, n, u, s, i) {
457
+ var He = function(e, r, t, n, o, u, i) {
458
458
  var a = {
459
459
  // This tag allows us to uniquely identify this as a React Element
460
- $$typeof: x,
460
+ $$typeof: P,
461
461
  // Built-in properties that belong on the element
462
462
  type: e,
463
463
  key: r,
464
464
  ref: t,
465
465
  props: i,
466
466
  // Record the component responsible for creating this element.
467
- _owner: s
467
+ _owner: u
468
468
  };
469
469
  return a._store = {}, Object.defineProperty(a._store, "validated", {
470
470
  configurable: !1,
@@ -480,25 +480,25 @@ function cr() {
480
480
  configurable: !1,
481
481
  enumerable: !1,
482
482
  writable: !1,
483
- value: u
483
+ value: o
484
484
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
485
485
  };
486
- function Xe(e, r, t, n, u) {
486
+ function Xe(e, r, t, n, o) {
487
487
  {
488
- var s, i = {}, a = null, m = null;
489
- t !== void 0 && (a = "" + t), Ge(r) && (a = "" + r.key), Be(r) && (m = r.ref, Je(r, u));
490
- for (s in r)
491
- B.call(r, s) && !qe.hasOwnProperty(s) && (i[s] = r[s]);
488
+ var u, i = {}, a = null, m = null;
489
+ t !== void 0 && (a = "" + t), Ge(r) && (a = "" + r.key), Be(r) && (m = r.ref, Je(r, o));
490
+ for (u in r)
491
+ B.call(r, u) && !qe.hasOwnProperty(u) && (i[u] = r[u]);
492
492
  if (e && e.defaultProps) {
493
- var d = e.defaultProps;
494
- for (s in d)
495
- i[s] === void 0 && (i[s] = d[s]);
493
+ var v = e.defaultProps;
494
+ for (u in v)
495
+ i[u] === void 0 && (i[u] = v[u]);
496
496
  }
497
497
  if (a || m) {
498
498
  var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
499
499
  a && ze(i, p), m && Ke(i, p);
500
500
  }
501
- return He(e, a, m, u, n, $.current, i);
501
+ return He(e, a, m, o, n, $.current, i);
502
502
  }
503
503
  }
504
504
  var J = A.ReactCurrentOwner, be = A.ReactDebugCurrentFrame;
@@ -512,7 +512,7 @@ function cr() {
512
512
  var z;
513
513
  z = !1;
514
514
  function K(e) {
515
- return typeof e == "object" && e !== null && e.$$typeof === x;
515
+ return typeof e == "object" && e !== null && e.$$typeof === P;
516
516
  }
517
517
  function Re() {
518
518
  {
@@ -575,9 +575,9 @@ Check the top-level render call using <` + t + ">.");
575
575
  else if (K(e))
576
576
  e._store && (e._store.validated = !0);
577
577
  else if (e) {
578
- var u = Ie(e);
579
- if (typeof u == "function" && u !== e.entries)
580
- for (var s = u.call(e), i; !(i = s.next()).done; )
578
+ var o = Ie(e);
579
+ if (typeof o == "function" && o !== e.entries)
580
+ for (var u = o.call(e), i; !(i = u.next()).done; )
581
581
  K(i.value) && Oe(i.value, r);
582
582
  }
583
583
  }
@@ -590,9 +590,9 @@ Check the top-level render call using <` + t + ">.");
590
590
  var t;
591
591
  if (typeof r == "function")
592
592
  t = r.propTypes;
593
- else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
593
+ else if (typeof r == "object" && (r.$$typeof === g || // Note: Memo only checks outer props here.
594
594
  // Inner props are checked in the reconciler.
595
- r.$$typeof === _))
595
+ r.$$typeof === h))
596
596
  t = r.propTypes;
597
597
  else
598
598
  return;
@@ -601,8 +601,8 @@ Check the top-level render call using <` + t + ">.");
601
601
  Me(t, e.props, "prop", n, e);
602
602
  } else if (r.PropTypes !== void 0 && !z) {
603
603
  z = !0;
604
- var u = y(r);
605
- O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
604
+ var o = y(r);
605
+ O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
606
606
  }
607
607
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
608
608
  }
@@ -619,32 +619,32 @@ Check the top-level render call using <` + t + ">.");
619
619
  e.ref !== null && (S(e), O("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
620
620
  }
621
621
  }
622
- function xe(e, r, t, n, u, s) {
622
+ function xe(e, r, t, n, o, u) {
623
623
  {
624
624
  var i = We(e);
625
625
  if (!i) {
626
626
  var a = "";
627
627
  (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.");
628
- var m = Ze(u);
628
+ var m = Ze(o);
629
629
  m ? a += m : a += Re();
630
- var d;
631
- e === null ? d = "null" : Array.isArray(e) ? d = "array" : e !== void 0 && e.$$typeof === x ? (d = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, a);
630
+ var v;
631
+ e === null ? v = "null" : Array.isArray(e) ? v = "array" : e !== void 0 && e.$$typeof === P ? (v = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, a);
632
632
  }
633
- var p = Xe(e, r, t, u, s);
633
+ var p = Xe(e, r, t, o, u);
634
634
  if (p == null)
635
635
  return p;
636
636
  if (i) {
637
- var j = r.children;
638
- if (j !== void 0)
637
+ var C = r.children;
638
+ if (C !== void 0)
639
639
  if (n)
640
- if (Array.isArray(j)) {
641
- for (var k = 0; k < j.length; k++)
642
- Pe(j[k], e);
643
- Object.freeze && Object.freeze(j);
640
+ if (Array.isArray(C)) {
641
+ for (var k = 0; k < C.length; k++)
642
+ Pe(C[k], e);
643
+ Object.freeze && Object.freeze(C);
644
644
  } else
645
645
  O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
646
646
  else
647
- Pe(j, e);
647
+ Pe(C, e);
648
648
  }
649
649
  return e === f.Fragment ? rr(p) : er(p), p;
650
650
  }
@@ -664,53 +664,57 @@ process.env.NODE_ENV === "production" ? Z.exports = sr() : Z.exports = cr();
664
664
  var ke = Z.exports;
665
665
  const fr = {
666
666
  popups: []
667
- }, lr = Ae(fr), dr = () => {
668
- const [f, E] = Y([]);
667
+ }, lr = Ae(fr), vr = () => {
668
+ const [f, _] = Y([]);
669
669
  return {
670
670
  popups: f
671
671
  };
672
672
  }, Er = ({ children: f }) => {
673
- const E = dr();
674
- return /* @__PURE__ */ ke.jsx(lr.Provider, { value: E, children: f });
675
- }, vr = {
673
+ const _ = vr();
674
+ return /* @__PURE__ */ ke.jsx(lr.Provider, { value: _, children: f });
675
+ }, dr = {
676
676
  cabinetType: null,
677
677
  cabinetIsLoading: !0,
678
- apiAxios: null,
678
+ apiAxios: () => null,
679
679
  phoneNumber: null,
680
680
  setPhoneNumber: null,
681
681
  cabinetSettings: null,
682
682
  authToken: null,
683
683
  setAuthToken: null,
684
684
  createAxios: null
685
- }, pr = Ae(vr), gr = ({ cabinetType: f }) => {
686
- const [E, R] = Y(null), [x, T] = Y(null), [g, P] = Y(null), [c, l] = Y(null);
685
+ }, pr = Ae(dr), gr = ({ cabinetType: f }) => {
686
+ const [_, E] = Y(null), [P, j] = Y(null), [b, x] = Y(null), c = () => ur.create({
687
+ baseURL: b ?? "",
688
+ headers: {
689
+ Authorization: P
690
+ }
691
+ }), [l, g] = Y(null);
687
692
  return or(() => {
688
693
  (async () => {
689
- if (!g || !E || f === null)
694
+ if (!P || !_ || f === null)
690
695
  return;
691
- const b = await g.post("/externalCustomerCabinet/cabinetInfo", {
692
- phoneNumber: E,
696
+ const h = await c().post("/externalCustomerCabinet/cabinetInfo", {
697
+ phoneNumber: _,
693
698
  cabinetType: f
694
699
  });
695
- l(b.data);
700
+ g(h.data);
696
701
  })();
697
- }, [E, g]), {
702
+ }, [_, P]), {
698
703
  cabinetType: f,
699
- apiAxios: g,
704
+ apiAxios: c,
700
705
  cabinetIsLoading: !1,
701
- cabinetSettings: c,
702
- phoneNumber: E,
703
- setPhoneNumber: R,
704
- authToken: x,
705
- setAuthToken: T,
706
- createAxios: (o, b) => {
707
- const _ = ur.create();
708
- _.defaults.baseURL = b, _.defaults.headers.common.Authorization = o, P(_);
706
+ cabinetSettings: l,
707
+ phoneNumber: _,
708
+ setPhoneNumber: E,
709
+ authToken: P,
710
+ setAuthToken: j,
711
+ createAxios: (R, h) => {
712
+ j(R), x(h);
709
713
  }
710
714
  };
711
- }, br = ({ children: f, cabinetType: E }) => {
712
- const R = gr({ cabinetType: E });
713
- return /* @__PURE__ */ ke.jsx(pr.Provider, { value: { ...R, cabinetType: E }, children: f });
715
+ }, br = ({ children: f, cabinetType: _ }) => {
716
+ const E = gr({ cabinetType: _ });
717
+ return /* @__PURE__ */ ke.jsx(pr.Provider, { value: { ...E, cabinetType: _ }, children: f });
714
718
  };
715
719
  export {
716
720
  pr as AppContext,
@@ -1,29 +1,29 @@
1
- (function(y,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("axios")):typeof define=="function"&&define.amd?define(["exports","react","axios"],O):(y=typeof globalThis<"u"?globalThis:y||self,O(y.bonuspluscomponents={},y.require$$1,y.Axios))})(this,function(y,O,De){"use strict";var B={exports:{}},k={};/*
1
+ (function(T,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("axios")):typeof define=="function"&&define.amd?define(["exports","react","axios"],O):(T=typeof globalThis<"u"?globalThis:T||self,O(T.bonuspluscomponents={},T.require$$1,T.axios))})(this,function(T,O,De){"use strict";var B={exports:{}},k={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var $,ee;function re(){if(ee)return $;ee=1;var f=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;function T(g){if(g==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(g)}function A(){try{if(!Object.assign)return!1;var g=new String("abc");if(g[5]="de",Object.getOwnPropertyNames(g)[0]==="5")return!1;for(var x={},c=0;c<10;c++)x["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(x).map(function(o){return x[o]});if(l.join("")!=="0123456789")return!1;var _={};return"abcdefghijklmnopqrst".split("").forEach(function(o){_[o]=o}),Object.keys(Object.assign({},_)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $=A()?Object.assign:function(g,x){for(var c,l=T(g),_,o=1;o<arguments.length;o++){c=Object(arguments[o]);for(var b in c)E.call(c,b)&&(l[b]=c[b]);if(f){_=f(c);for(var h=0;h<_.length;h++)R.call(c,_[h])&&(l[_[h]]=c[_[h]])}}return l},$}/** @license React v17.0.2
5
+ */var $,ee;function re(){if(ee)return $;ee=1;var f=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;function y(b){if(b==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(b)}function C(){try{if(!Object.assign)return!1;var b=new String("abc");if(b[5]="de",Object.getOwnPropertyNames(b)[0]==="5")return!1;for(var x={},c=0;c<10;c++)x["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(x).map(function(s){return x[s]});if(l.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(s){g[s]=s}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $=C()?Object.assign:function(b,x){for(var c,l=y(b),g,s=1;s<arguments.length;s++){c=Object(arguments[s]);for(var R in c)_.call(c,R)&&(l[R]=c[R]);if(f){g=f(c);for(var h=0;h<g.length;h++)E.call(c,g[h])&&(l[g[h]]=c[g[h]])}}return l},$}/** @license React v17.0.2
6
6
  * react-jsx-runtime.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
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 te;function Ie(){if(te)return k;te=1,re();var f=O,E=60103;if(k.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;E=R("react.element"),k.Fragment=R("react.fragment")}var T=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A=Object.prototype.hasOwnProperty,g={key:!0,ref:!0,__self:!0,__source:!0};function x(c,l,_){var o,b={},h=null,S=null;_!==void 0&&(h=""+_),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(S=l.ref);for(o in l)A.call(l,o)&&!g.hasOwnProperty(o)&&(b[o]=l[o]);if(c&&c.defaultProps)for(o in l=c.defaultProps,l)b[o]===void 0&&(b[o]=l[o]);return{$$typeof:E,type:c,key:h,ref:S,props:b,_owner:T.current}}return k.jsx=x,k.jsxs=x,k}var G={};/** @license React v17.0.2
12
+ */var te;function Ie(){if(te)return k;te=1,re();var f=O,_=60103;if(k.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;_=E("react.element"),k.Fragment=E("react.fragment")}var y=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C=Object.prototype.hasOwnProperty,b={key:!0,ref:!0,__self:!0,__source:!0};function x(c,l,g){var s,R={},h=null,A=null;g!==void 0&&(h=""+g),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(A=l.ref);for(s in l)C.call(l,s)&&!b.hasOwnProperty(s)&&(R[s]=l[s]);if(c&&c.defaultProps)for(s in l=c.defaultProps,l)R[s]===void 0&&(R[s]=l[s]);return{$$typeof:_,type:c,key:h,ref:A,props:R,_owner:y.current}}return k.jsx=x,k.jsxs=x,k}var G={};/** @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 ne;function Ye(){return ne||(ne=1,function(f){process.env.NODE_ENV!=="production"&&function(){var E=O,R=re(),T=60103,A=60106;f.Fragment=60107;var g=60108,x=60114,c=60109,l=60110,_=60112,o=60113,b=60120,h=60115,S=60116,N=60121,oe=60122,ue=60117,se=60129,ce=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;T=v("react.element"),A=v("react.portal"),f.Fragment=v("react.fragment"),g=v("react.strict_mode"),x=v("react.profiler"),c=v("react.provider"),l=v("react.context"),_=v("react.forward_ref"),o=v("react.suspense"),b=v("react.suspense_list"),h=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,Be="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=fe&&e[fe]||e[Be];return typeof r=="function"?r:null}var D=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ge("error",e,t)}}function Ge(e,r,t){{var n=D.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(i){return""+i});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Je=!1;function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===f.Fragment||e===x||e===se||e===g||e===o||e===b||e===ce||Je||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===_||e.$$typeof===ue||e.$$typeof===N||e[0]===oe))}function ze(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"&&P("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 f.Fragment:return"Fragment";case A:return"Portal";case x:return"Profiler";case g:return"StrictMode";case o:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var r=e;return le(r)+".Consumer";case c:var t=e;return le(t._context)+".Provider";case _:return ze(e,e.render,"ForwardRef");case h:return j(e.type);case N:return j(e._render);case S:{var n=e,u=n._payload,s=n._init;try{return j(s(u))}catch{return null}}}return null}var W=0,de,ve,pe,ge,he,_e,Ee;function be(){}be.__reactDisabledLog=!0;function Ke(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,ge=console.error,he=console.group,_e=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:R({},e,{value:de}),info:R({},e,{value:ve}),warn:R({},e,{value:pe}),error:R({},e,{value:ge}),group:R({},e,{value:he}),groupCollapsed:R({},e,{value:_e}),groupEnd:R({},e,{value:Ee})})}W<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=D.ReactCurrentDispatcher,q;function U(e,r,t){{if(q===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
20
- `+q+e}}var z=!1,V;{var Xe=typeof WeakMap=="function"?WeakMap:Map;V=new Xe}function Re(e,r){if(!e||z)return"";{var t=V.get(e);if(t!==void 0)return t}var n;z=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=J.current,J.current=null,Ke();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(w){n=w}Reflect.construct(e,[],i)}else{try{i.call()}catch(w){n=w}e.call(i.prototype)}}else{try{throw Error()}catch(w){n=w}e()}}catch(w){if(w&&n&&typeof w.stack=="string"){for(var a=w.stack.split(`
19
+ */var ne;function Ye(){return ne||(ne=1,function(f){process.env.NODE_ENV!=="production"&&function(){var _=O,E=re(),y=60103,C=60106;f.Fragment=60107;var b=60108,x=60114,c=60109,l=60110,g=60112,s=60113,R=60120,h=60115,A=60116,N=60121,oe=60122,ue=60117,se=60129,ce=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;y=v("react.element"),C=v("react.portal"),f.Fragment=v("react.fragment"),b=v("react.strict_mode"),x=v("react.profiler"),c=v("react.provider"),l=v("react.context"),g=v("react.forward_ref"),s=v("react.suspense"),R=v("react.suspense_list"),h=v("react.memo"),A=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,Be="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=fe&&e[fe]||e[Be];return typeof r=="function"?r:null}var D=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ge("error",e,t)}}function Ge(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 Je=!1;function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===f.Fragment||e===x||e===se||e===b||e===s||e===R||e===ce||Je||typeof e=="object"&&e!==null&&(e.$$typeof===A||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===g||e.$$typeof===ue||e.$$typeof===N||e[0]===oe))}function ze(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"&&P("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 f.Fragment:return"Fragment";case C:return"Portal";case x:return"Profiler";case b:return"StrictMode";case s:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var r=e;return le(r)+".Consumer";case c:var t=e;return le(t._context)+".Provider";case g:return ze(e,e.render,"ForwardRef");case h:return j(e.type);case N:return j(e._render);case A:{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,he,_e,Ee;function be(){}be.__reactDisabledLog=!0;function Ke(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,ge=console.error,he=console.group,_e=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:E({},e,{value:de}),info:E({},e,{value:ve}),warn:E({},e,{value:pe}),error:E({},e,{value:ge}),group:E({},e,{value:he}),groupCollapsed:E({},e,{value:_e}),groupEnd:E({},e,{value:Ee})})}W<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=D.ReactCurrentDispatcher,q;function U(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
20
+ `+q+e}}var z=!1,V;{var Xe=typeof WeakMap=="function"?WeakMap:Map;V=new Xe}function Re(e,r){if(!e||z)return"";{var t=V.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,Ke();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(S){n=S}Reflect.construct(e,[],i)}else{try{i.call()}catch(S){n=S}e.call(i.prototype)}}else{try{throw Error()}catch(S){n=S}e()}}catch(S){if(S&&n&&typeof S.stack=="string"){for(var a=S.stack.split(`
21
21
  `),m=n.stack.split(`
22
- `),d=a.length-1,p=m.length-1;d>=1&&p>=0&&a[d]!==m[p];)p--;for(;d>=1&&p>=0;d--,p--)if(a[d]!==m[p]){if(d!==1||p!==1)do if(d--,p--,p<0||a[d]!==m[p]){var C=`
23
- `+a[d].replace(" at new "," at ");return typeof e=="function"&&V.set(e,C),C}while(d>=1&&p>=0);break}}}finally{z=!1,J.current=s,He(),Error.prepareStackTrace=u}var Y=e?e.displayName||e.name:"",ke=Y?U(Y):"";return typeof e=="function"&&V.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 F(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,Ze(e));if(typeof e=="string")return U(e);switch(e){case o:return U("Suspense");case b:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case _:return me(e.render);case h:return F(e.type,r,t);case N:return me(e._render);case S:{var n=e,u=n._payload,s=n._init;try{return F(s(u),r,t)}catch{}}}return""}var Oe={},Pe=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=F(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}function Qe(e,r,t,n,u){{var s=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=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 m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(M(u),P("%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),M(null)),a instanceof Error&&!(a.message in Oe)&&(Oe[a.message]=!0,M(u),P("Failed %s type: %s",t,a.message),M(null))}}}var L=D.ReactCurrentOwner,K=Object.prototype.hasOwnProperty,er={key:!0,ref:!0,__self:!0,__source:!0},xe,ye,H;H={};function rr(e){if(K.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(K.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);H[t]||(P('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),H[t]=!0)}}function ar(e,r){{var t=function(){xe||(xe=!0,P("%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(){ye||(ye=!0,P("%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,u,s,i){var a={$$typeof:T,type:e,key:r,ref:t,props:i,_owner:s};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:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ur(e,r,t,n,u){{var s,i={},a=null,m=null;t!==void 0&&(a=""+t),tr(r)&&(a=""+r.key),rr(r)&&(m=r.ref,nr(r,u));for(s in r)K.call(r,s)&&!er.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var d=e.defaultProps;for(s in d)i[s]===void 0&&(i[s]=d[s])}if(a||m){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ar(i,p),m&&ir(i,p)}return or(e,a,m,u,n,L.current,i)}}var X=D.ReactCurrentOwner,Te=D.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=F(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===T}function je(){{if(X.current){var e=j(X.current.type);if(e)return`
22
+ `),d=a.length-1,p=m.length-1;d>=1&&p>=0&&a[d]!==m[p];)p--;for(;d>=1&&p>=0;d--,p--)if(a[d]!==m[p]){if(d!==1||p!==1)do if(d--,p--,p<0||a[d]!==m[p]){var w=`
23
+ `+a[d].replace(" at new "," at ");return typeof e=="function"&&V.set(e,w),w}while(d>=1&&p>=0);break}}}finally{z=!1,J.current=u,He(),Error.prepareStackTrace=o}var Y=e?e.displayName||e.name:"",ke=Y?U(Y):"";return typeof e=="function"&&V.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 F(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,Ze(e));if(typeof e=="string")return U(e);switch(e){case s:return U("Suspense");case R:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return me(e.render);case h:return F(e.type,r,t);case N:return me(e._render);case A:{var n=e,o=n._payload,u=n._init;try{return F(u(o),r,t)}catch{}}}return""}var Oe={},Pe=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=F(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 m=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 m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(M(o),P("%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),M(null)),a instanceof Error&&!(a.message in Oe)&&(Oe[a.message]=!0,M(o),P("Failed %s type: %s",t,a.message),M(null))}}}var L=D.ReactCurrentOwner,K=Object.prototype.hasOwnProperty,er={key:!0,ref:!0,__self:!0,__source:!0},ye,xe,H;H={};function rr(e){if(K.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(K.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);H[t]||(P('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),H[t]=!0)}}function ar(e,r){{var t=function(){ye||(ye=!0,P("%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(){xe||(xe=!0,P("%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:y,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,m=null;t!==void 0&&(a=""+t),tr(r)&&(a=""+r.key),rr(r)&&(m=r.ref,nr(r,o));for(u in r)K.call(r,u)&&!er.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var d=e.defaultProps;for(u in d)i[u]===void 0&&(i[u]=d[u])}if(a||m){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ar(i,p),m&&ir(i,p)}return or(e,a,m,o,n,L.current,i)}}var X=D.ReactCurrentOwner,Te=D.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=F(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function je(){{if(X.current){var e=j(X.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
27
  Check your code at `+r+":"+t+"."}return""}}var Ce={};function cr(e){{var r=je();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 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!==X.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),I(e),P('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 Ae(e,r){{if(typeof e!="object")return;if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&we(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var u=$e(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),i;!(i=s.next()).done;)Q(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===_||r.$$typeof===h))t=r.propTypes;else return;if(t){var n=j(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var u=j(r);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&P("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),P("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),P("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Se(e,r,t,n,u,s){{var i=qe(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 m=sr(u);m?a+=m:a+=je();var d;e===null?d="null":Array.isArray(e)?d="array":e!==void 0&&e.$$typeof===T?(d="<"+(j(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var p=ur(e,r,t,u,s);if(p==null)return p;if(i){var C=r.children;if(C!==void 0)if(n)if(Array.isArray(C)){for(var Y=0;Y<C.length;Y++)Ae(C[Y],e);Object.freeze&&Object.freeze(C)}else P("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 Ae(C,e)}return e===f.Fragment?lr(p):fr(p),p}}function dr(e,r,t){return Se(e,r,t,!0)}function vr(e,r,t){return Se(e,r,t,!1)}var pr=vr,gr=dr;f.jsx=pr,f.jsxs=gr}()}(G)),G}process.env.NODE_ENV==="production"?B.exports=Ie():B.exports=Ye();var ae=B.exports;const We={popups:[]},Le=O.createContext(We),Ne=()=>{const[f,E]=O.useState([]);return{popups:f}},Ue=({children:f})=>{const E=Ne();return ae.jsx(Le.Provider,{value:E,children:f})},Ve={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null,authToken:null,setAuthToken:null,createAxios:null},ie=O.createContext(Ve),Fe=({cabinetType:f})=>{const[E,R]=O.useState(null),[T,A]=O.useState(null),[g,x]=O.useState(null),[c,l]=O.useState(null);return O.useEffect(()=>{(async()=>{if(!g||!E||f===null)return;const b=await g.post("/externalCustomerCabinet/cabinetInfo",{phoneNumber:E,cabinetType:f});l(b.data)})()},[E,g]),{cabinetType:f,apiAxios:g,cabinetIsLoading:!1,cabinetSettings:c,phoneNumber:E,setPhoneNumber:R,authToken:T,setAuthToken:A,createAxios:(o,b)=>{const h=De.create();h.defaults.baseURL=b,h.defaults.headers.common.Authorization=o,x(h)}}},Me=({children:f,cabinetType:E})=>{const R=Fe({cabinetType:E});return ae.jsx(ie.Provider,{value:{...R,cabinetType:E},children:f})};y.AppContext=ie,y.AppProvider=Me,y.PopupProvider=Ue,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
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!==X.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),I(e),P('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];Q(n)&&we(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var o=$e(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)Q(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===h))t=r.propTypes;else return;if(t){var n=j(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var o=j(r);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&P("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),P("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),P("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Ae(e,r,t,n,o,u){{var i=qe(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 m=sr(o);m?a+=m:a+=je();var d;e===null?d="null":Array.isArray(e)?d="array":e!==void 0&&e.$$typeof===y?(d="<"+(j(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var p=ur(e,r,t,o,u);if(p==null)return p;if(i){var w=r.children;if(w!==void 0)if(n)if(Array.isArray(w)){for(var Y=0;Y<w.length;Y++)Se(w[Y],e);Object.freeze&&Object.freeze(w)}else P("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(w,e)}return e===f.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;f.jsx=pr,f.jsxs=gr}()}(G)),G}process.env.NODE_ENV==="production"?B.exports=Ie():B.exports=Ye();var ae=B.exports;const We={popups:[]},Le=O.createContext(We),Ne=()=>{const[f,_]=O.useState([]);return{popups:f}},Ue=({children:f})=>{const _=Ne();return ae.jsx(Le.Provider,{value:_,children:f})},Ve={cabinetType:null,cabinetIsLoading:!0,apiAxios:()=>null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null,authToken:null,setAuthToken:null,createAxios:null},ie=O.createContext(Ve),Fe=({cabinetType:f})=>{const[_,E]=O.useState(null),[y,C]=O.useState(null),[b,x]=O.useState(null),c=()=>De.create({baseURL:b??"",headers:{Authorization:y}}),[l,g]=O.useState(null);return O.useEffect(()=>{(async()=>{if(!y||!_||f===null)return;const h=await c().post("/externalCustomerCabinet/cabinetInfo",{phoneNumber:_,cabinetType:f});g(h.data)})()},[_,y]),{cabinetType:f,apiAxios:c,cabinetIsLoading:!1,cabinetSettings:l,phoneNumber:_,setPhoneNumber:E,authToken:y,setAuthToken:C,createAxios:(R,h)=>{C(R),x(h)}}},Me=({children:f,cabinetType:_})=>{const E=Fe({cabinetType:_});return ae.jsx(ie.Provider,{value:{...E,cabinetType:_},children:f})};T.AppContext=ie,T.AppProvider=Me,T.PopupProvider=Ue,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Method } from "axios";
2
+ import { AxiosInstance, Method } from "axios";
3
+ export declare const apiAxios: AxiosInstance;
3
4
  export type ApiAxiosProps<T> = {
4
5
  url: string;
5
6
  method: Method;
@@ -1 +1 @@
1
- {"version":3,"file":"useAxios.d.ts","sourceRoot":"","sources":["../../../src/components/UseAxios/useAxios.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,MAAM,EAAC,MAAM,OAAO,CAAC;AAM5C,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC3B,GAAG,EAAC,MAAM,CAAC;IACX,MAAM,EAAC,MAAM,CAAC;IACd,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,IAAI,CAAC,EAAC,GAAG,CAAC;IACV,eAAe,CAAC,EAAC,CAAC,KAAK,EAAC,OAAO,KAAG,IAAI,CAAC;IACvC,aAAa,CAAC,EAAC,MAAM,EAAE,CAAC;IACxB,cAAc,CAAC,EAAC,MAAM,CAAC;IACvB,uBAAuB,CAAC,EAAC,MAAI,IAAI,CAAC;CACrC,CAAA;AAED,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,EAEzC,CAAA;AAGD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,aAAa,EAAE,WAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAC,EAAC,KAAK,CAAC,CAAC,CAAC;;;qBAQrH,GAAG,cAAa,MAAI,IAAI;EA6CxD"}
1
+ {"version":3,"file":"useAxios.d.ts","sourceRoot":"","sources":["../../../src/components/UseAxios/useAxios.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAC,aAAa,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAInD,eAAO,MAAM,QAAQ,eAAiB,CAAC;AAEvC,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC3B,GAAG,EAAC,MAAM,CAAC;IACX,MAAM,EAAC,MAAM,CAAC;IACd,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,IAAI,CAAC,EAAC,GAAG,CAAC;IACV,eAAe,CAAC,EAAC,CAAC,KAAK,EAAC,OAAO,KAAG,IAAI,CAAC;IACvC,aAAa,CAAC,EAAC,MAAM,EAAE,CAAC;IACxB,cAAc,CAAC,EAAC,MAAM,CAAC;IACvB,uBAAuB,CAAC,EAAC,MAAI,IAAI,CAAC;CACrC,CAAA;AAED,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,EAEzC,CAAA;AAGD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,aAAa,EAAE,WAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAC,EAAC,KAAK,CAAC,CAAC,CAAC;;;qBAQrH,GAAG,cAAa,MAAI,IAAI;EA6CxD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bonuspluscomponents",
3
3
  "private": false,
4
- "version": "0.0.54",
4
+ "version": "0.0.56",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",