bonuspluscomponents 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppContext/Hooks.d.ts +1 -4
- package/dist/AppContext/Hooks.d.ts.map +1 -1
- package/dist/AppContext/Store.d.ts +1 -7
- package/dist/AppContext/Store.d.ts.map +1 -1
- package/dist/Reducers/CabinetSlice.d.ts +6 -30
- package/dist/Reducers/CabinetSlice.d.ts.map +1 -1
- package/dist/Reducers/PopupsSlice.d.ts +4 -31
- package/dist/Reducers/PopupsSlice.d.ts.map +1 -1
- package/dist/bonuspluscomponents.cjs.js +14 -12
- package/dist/bonuspluscomponents.es.js +607 -572
- package/dist/bonuspluscomponents.umd.js +14 -12
- package/package.json +2 -13
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
2
|
import type { RootState } from './Store';
|
|
3
|
-
export declare const useAppDispatch: () =>
|
|
4
|
-
popups: import("../Reducers/PopupsSlice").PopupsState;
|
|
5
|
-
cabinet: import("../Reducers/CabinetSlice").ICabinetState;
|
|
6
|
-
}, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
|
|
3
|
+
export declare const useAppDispatch: () => any;
|
|
7
4
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
8
5
|
//# sourceMappingURL=Hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hooks.d.ts","sourceRoot":"","sources":["../../src/AppContext/Hooks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA4B,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,SAAS,CAAC;AAGtD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"Hooks.d.ts","sourceRoot":"","sources":["../../src/AppContext/Hooks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA4B,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,SAAS,CAAC;AAGtD,eAAO,MAAM,cAAc,WAAmC,CAAC;AAC/D,eAAO,MAAM,cAAc,EAAE,oBAAoB,CAAC,SAAS,CAAe,CAAC"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Action, ThunkAction } from "@reduxjs/toolkit";
|
|
2
|
-
export declare const store:
|
|
3
|
-
popups: import("../Reducers/PopupsSlice").PopupsState;
|
|
4
|
-
cabinet: import("../Reducers/CabinetSlice").ICabinetState;
|
|
5
|
-
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
|
|
6
|
-
popups: import("../Reducers/PopupsSlice").PopupsState;
|
|
7
|
-
cabinet: import("../Reducers/CabinetSlice").ICabinetState;
|
|
8
|
-
}, import("redux").AnyAction>]>>;
|
|
2
|
+
export declare const store: any;
|
|
9
3
|
export type AppDispatch = typeof store.dispatch;
|
|
10
4
|
export type RootState = ReturnType<typeof store.getState>;
|
|
11
5
|
export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../src/AppContext/Store.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAkB,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAKrE,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../src/AppContext/Store.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAkB,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAKrE,eAAO,MAAM,KAAK,KAQhB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC;AAChD,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC1D,MAAM,MAAM,QAAQ,CAAC,UAAU,GAAG,IAAI,IAAI,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
import { RootState } from "../AppContext/Store";
|
|
3
1
|
import { AxiosInstance } from "axios";
|
|
4
2
|
declare enum CabinetType {
|
|
5
3
|
CustomerCabinet = 0,
|
|
@@ -22,33 +20,11 @@ export interface ICabinetState {
|
|
|
22
20
|
phoneNumber: string | null;
|
|
23
21
|
cabinetSettings: CabinetSettings | null;
|
|
24
22
|
}
|
|
25
|
-
export declare const getCabinetSettings:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
pendingMeta?: unknown;
|
|
32
|
-
fulfilledMeta?: unknown;
|
|
33
|
-
rejectedMeta?: unknown;
|
|
34
|
-
}>;
|
|
35
|
-
export declare const CabinetSlice: import("@reduxjs/toolkit").Slice<ICabinetState, {
|
|
36
|
-
setPhoneNumber: (state: import("immer/dist/internal").WritableDraft<ICabinetState>, action: PayloadAction<string>) => void;
|
|
37
|
-
setCabinetSettings: (state: import("immer/dist/internal").WritableDraft<ICabinetState>, action: PayloadAction<CabinetSettings>) => void;
|
|
38
|
-
setCabinetIsLoading: (state: import("immer/dist/internal").WritableDraft<ICabinetState>, action: PayloadAction<boolean>) => void;
|
|
39
|
-
setInitialParameters: (state: import("immer/dist/internal").WritableDraft<ICabinetState>, action: PayloadAction<{
|
|
40
|
-
axios: AxiosInstance;
|
|
41
|
-
cabinetType: CabinetType;
|
|
42
|
-
phoneNumber: string;
|
|
43
|
-
}>) => void;
|
|
44
|
-
}, "CabinetSlice">;
|
|
45
|
-
export declare const selectCabinetSettings: (state: RootState) => CabinetSettings | null;
|
|
46
|
-
export declare const selectCabinetState: (state: RootState) => ICabinetState;
|
|
47
|
-
export declare const setPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "CabinetSlice/setPhoneNumber">, setCabinetSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<CabinetSettings, "CabinetSlice/setCabinetSettings">, setCabinetIsLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "CabinetSlice/setCabinetIsLoading">, setInitialParameters: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
48
|
-
axios: AxiosInstance;
|
|
49
|
-
cabinetType: CabinetType;
|
|
50
|
-
phoneNumber: string;
|
|
51
|
-
}, "CabinetSlice/setInitialParameters">;
|
|
52
|
-
declare const _default: import("redux").Reducer<ICabinetState>;
|
|
23
|
+
export declare const getCabinetSettings: any;
|
|
24
|
+
export declare const CabinetSlice: any;
|
|
25
|
+
export declare const selectCabinetSettings: (state: any) => any;
|
|
26
|
+
export declare const selectCabinetState: (state: any) => any;
|
|
27
|
+
export declare const setPhoneNumber: any, setCabinetSettings: any, setCabinetIsLoading: any, setInitialParameters: any;
|
|
28
|
+
declare const _default: any;
|
|
53
29
|
export default _default;
|
|
54
30
|
//# sourceMappingURL=CabinetSlice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CabinetSlice.d.ts","sourceRoot":"","sources":["../../src/Reducers/CabinetSlice.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CabinetSlice.d.ts","sourceRoot":"","sources":["../../src/Reducers/CabinetSlice.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEpC,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;AAED,MAAM,WAAW,aAAa;IAC1B,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,eAAe,EAAE,eAAe,GAAG,IAAI,CAAA;CAC1C;AAUD,eAAO,MAAM,kBAAkB,KAsB9B,CAAA;AAED,eAAO,MAAM,YAAY,KAwBvB,CAAA;AAEF,eAAO,MAAM,qBAAqB,qBAAsD,CAAC;AACzF,eAAO,MAAM,kBAAkB,qBAAsC,CAAC;AAEtE,eAAO,MACH,cAAc,OACd,kBAAkB,OAClB,mBAAmB,OACnB,oBAAoB,KACA,CAAA;;AAGxB,wBAAoC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
import { RootState } from "../AppContext/Store";
|
|
3
1
|
export type IPopup = {
|
|
4
2
|
content: any;
|
|
5
3
|
title: any;
|
|
@@ -10,34 +8,9 @@ export type IPopup = {
|
|
|
10
8
|
export interface PopupsState {
|
|
11
9
|
popups: IPopup[];
|
|
12
10
|
}
|
|
13
|
-
export declare const PopupsSlice:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
showErrorAlert: (state: import("immer/dist/internal").WritableDraft<PopupsState>, action: PayloadAction<{
|
|
18
|
-
msg: string;
|
|
19
|
-
axiosError?: any;
|
|
20
|
-
}>) => void;
|
|
21
|
-
showSuccessAlert: (state: import("immer/dist/internal").WritableDraft<PopupsState>, action: PayloadAction<{
|
|
22
|
-
msg: string;
|
|
23
|
-
onConfirm?: () => void;
|
|
24
|
-
}>) => void;
|
|
25
|
-
showConfirmation: (state: import("immer/dist/internal").WritableDraft<PopupsState>, action: PayloadAction<{
|
|
26
|
-
message: string;
|
|
27
|
-
onConfirm?: () => void;
|
|
28
|
-
}>) => void;
|
|
29
|
-
}, "PopupsSlice">;
|
|
30
|
-
export declare const selectPopups: (state: RootState) => IPopup[];
|
|
31
|
-
export declare const showNewPopup: import("@reduxjs/toolkit").ActionCreatorWithPayload<IPopup, "PopupsSlice/showNewPopup">, closePopup: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "PopupsSlice/closePopup">, closePopupById: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "PopupsSlice/closePopupById">, showErrorAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
32
|
-
msg: string;
|
|
33
|
-
axiosError?: any;
|
|
34
|
-
}, "PopupsSlice/showErrorAlert">, showSuccessAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
35
|
-
msg: string;
|
|
36
|
-
onConfirm?: (() => void) | undefined;
|
|
37
|
-
}, "PopupsSlice/showSuccessAlert">, showConfirmation: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
38
|
-
message: string;
|
|
39
|
-
onConfirm?: (() => void) | undefined;
|
|
40
|
-
}, "PopupsSlice/showConfirmation">;
|
|
41
|
-
declare const _default: import("redux").Reducer<PopupsState>;
|
|
11
|
+
export declare const PopupsSlice: any;
|
|
12
|
+
export declare const selectPopups: (state: any) => any;
|
|
13
|
+
export declare const showNewPopup: any, closePopup: any, closePopupById: any, showErrorAlert: any, showSuccessAlert: any, showConfirmation: any;
|
|
14
|
+
declare const _default: any;
|
|
42
15
|
export default _default;
|
|
43
16
|
//# sourceMappingURL=PopupsSlice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupsSlice.d.ts","sourceRoot":"","sources":["../../src/Reducers/PopupsSlice.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PopupsSlice.d.ts","sourceRoot":"","sources":["../../src/Reducers/PopupsSlice.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,MAAM,GAAG;IACjB,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,CAAC,EAAC,GAAG,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAC,OAAO,CAAC;CAC1B,CAAA;AAGD,MAAM,WAAW,WAAW;IACxB,MAAM,EAAE,MAAM,EAAE,CAAA;CACnB;AAOD,eAAO,MAAM,WAAW,KA4DtB,CAAA;AAEF,eAAO,MAAM,YAAY,qBAA4C,CAAC;AAEtE,eAAO,MACH,YAAY,OACZ,UAAU,OACV,cAAc,OACd,cAAc,OACd,gBAAgB,OAChB,gBAAgB,KACG,CAAA;;AAGvB,wBAAmC"}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react");var Z={exports:{}},D={};/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/var H,xe;function Se(){if(xe)return H;xe=1;var c=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;function x(E){if(E==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(E)}function w(){try{if(!Object.assign)return!1;var E=new String("abc");if(E[5]="de",Object.getOwnPropertyNames(E)[0]==="5")return!1;for(var P={},f=0;f<10;f++)P["_"+String.fromCharCode(f)]=f;var v=Object.getOwnPropertyNames(P).map(function(s){return P[s]});if(v.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=w()?Object.assign:function(E,P){for(var f,v=x(E),g,s=1;s<arguments.length;s++){f=Object(arguments[s]);for(var m in f)R.call(f,m)&&(v[m]=f[m]);if(c){g=c(f);for(var _=0;_<g.length;_++)O.call(f,g[_])&&(v[g[_]]=f[g[_]])}}return v},H}/** @license React v17.0.2
|
|
3
6
|
* react-jsx-runtime.production.min.js
|
|
4
7
|
*
|
|
5
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
9
|
*
|
|
7
10
|
* This source code is licensed under the MIT license found in the
|
|
8
11
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
10
|
-
* @license React
|
|
12
|
+
*/var Ce;function ar(){if(Ce)return D;Ce=1,Se();var c=I,R=60103;if(D.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;R=O("react.element"),D.Fragment=O("react.fragment")}var x=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function P(f,v,g){var s,m={},_=null,C=null;g!==void 0&&(_=""+g),v.key!==void 0&&(_=""+v.key),v.ref!==void 0&&(C=v.ref);for(s in v)w.call(v,s)&&!E.hasOwnProperty(s)&&(m[s]=v[s]);if(f&&f.defaultProps)for(s in v=f.defaultProps,v)m[s]===void 0&&(m[s]=v[s]);return{$$typeof:R,type:f,key:_,ref:C,props:m,_owner:x.current}}return D.jsx=P,D.jsxs=P,D}var X={};/** @license React v17.0.2
|
|
11
13
|
* react-jsx-runtime.development.js
|
|
12
14
|
*
|
|
13
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
16
|
*
|
|
15
17
|
* This source code is licensed under the MIT license found in the
|
|
16
18
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+a[
|
|
19
|
+
*/var we;function ir(){return we||(we=1,function(c){process.env.NODE_ENV!=="production"&&function(){var R=I,O=Se(),x=60103,w=60106;c.Fragment=60107;var E=60108,P=60114,f=60109,v=60110,g=60112,s=60113,m=60120,_=60115,C=60116,W=60121,ee=60122,re=60117,te=60129,ne=60131;if(typeof Symbol=="function"&&Symbol.for){var d=Symbol.for;x=d("react.element"),w=d("react.portal"),c.Fragment=d("react.fragment"),E=d("react.strict_mode"),P=d("react.profiler"),f=d("react.provider"),v=d("react.context"),g=d("react.forward_ref"),s=d("react.suspense"),m=d("react.suspense_list"),_=d("react.memo"),C=d("react.lazy"),W=d("react.block"),ee=d("react.server.block"),re=d("react.fundamental"),d("react.scope"),d("react.opaque.id"),te=d("react.debug_trace_mode"),d("react.offscreen"),ne=d("react.legacy_hidden")}var ae=typeof Symbol=="function"&&Symbol.iterator,Ae="@@iterator";function ke(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[Ae];return typeof r=="function"?r:null}var S=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];De("error",e,t)}}function De(e,r,t){{var n=S.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return""+i});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ie=!1;function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===c.Fragment||e===P||e===te||e===E||e===s||e===m||e===ne||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===_||e.$$typeof===f||e.$$typeof===v||e.$$typeof===g||e.$$typeof===re||e.$$typeof===W||e[0]===ee))}function Ye(e,r,t){var n=r.displayName||r.name||"";return e.displayName||(n!==""?t+"("+n+")":t)}function ie(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c.Fragment:return"Fragment";case w:return"Portal";case P:return"Profiler";case E:return"StrictMode";case s:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var r=e;return ie(r)+".Consumer";case f:var t=e;return ie(t._context)+".Provider";case g:return Ye(e,e.render,"ForwardRef");case _:return y(e.type);case W:return y(e._render);case C:{var n=e,o=n._payload,u=n._init;try{return y(u(o))}catch{return null}}}return null}var $=0,oe,ue,se,ce,fe,le,ve;function de(){}de.__reactDisabledLog=!0;function We(){{if($===0){oe=console.log,ue=console.info,se=console.warn,ce=console.error,fe=console.group,le=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function Le(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:oe}),info:O({},e,{value:ue}),warn:O({},e,{value:se}),error:O({},e,{value:ce}),group:O({},e,{value:fe}),groupCollapsed:O({},e,{value:le}),groupEnd:O({},e,{value:ve})})}$<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var F=S.ReactCurrentDispatcher,M;function L(e,r,t){{if(M===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);M=n&&n[1]||""}return`
|
|
20
|
+
`+M+e}}var q=!1,N;{var Ne=typeof WeakMap=="function"?WeakMap:Map;N=new Ne}function pe(e,r){if(!e||q)return"";{var t=N.get(e);if(t!==void 0)return t}var n;q=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=F.current,F.current=null,We();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(j){n=j}Reflect.construct(e,[],i)}else{try{i.call()}catch(j){n=j}e.call(i.prototype)}}else{try{throw Error()}catch(j){n=j}e()}}catch(j){if(j&&n&&typeof j.stack=="string"){for(var a=j.stack.split(`
|
|
21
|
+
`),h=n.stack.split(`
|
|
22
|
+
`),l=a.length-1,p=h.length-1;l>=1&&p>=0&&a[l]!==h[p];)p--;for(;l>=1&&p>=0;l--,p--)if(a[l]!==h[p]){if(l!==1||p!==1)do if(l--,p--,p<0||a[l]!==h[p]){var T=`
|
|
23
|
+
`+a[l].replace(" at new "," at ");return typeof e=="function"&&N.set(e,T),T}while(l>=1&&p>=0);break}}}finally{q=!1,F.current=u,Le(),Error.prepareStackTrace=o}var k=e?e.displayName||e.name:"",je=k?L(k):"";return typeof e=="function"&&N.set(e,je),je}function ge(e,r,t){return pe(e,!1)}function Ue(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,Ue(e));if(typeof e=="string")return L(e);switch(e){case s:return L("Suspense");case m:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return ge(e.render);case _:return U(e.type,r,t);case W:return ge(e._render);case C:{var n=e,o=n._payload,u=n._init;try{return U(u(o),r,t)}catch{}}}return""}var _e={},he=S.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Ve(e,r,t,n,o){{var u=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var h=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(V(o),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),V(null)),a instanceof Error&&!(a.message in _e)&&(_e[a.message]=!0,V(o),b("Failed %s type: %s",t,a.message),V(null))}}}var Y=S.ReactCurrentOwner,B=Object.prototype.hasOwnProperty,Fe={key:!0,ref:!0,__self:!0,__source:!0},Ee,be,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 qe(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 Be(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=y(Y.current.type);G[t]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',y(Y.current.type),e.ref),G[t]=!0)}}function Ge(e,r){{var t=function(){Ee||(Ee=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Je(e,r){{var t=function(){be||(be=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ke=function(e,r,t,n,o,u,i){var a={$$typeof:x,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ze(e,r,t,n,o){{var u,i={},a=null,h=null;t!==void 0&&(a=""+t),qe(r)&&(a=""+r.key),Me(r)&&(h=r.ref,Be(r,o));for(u in r)B.call(r,u)&&!Fe.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var l=e.defaultProps;for(u in l)i[u]===void 0&&(i[u]=l[u])}if(a||h){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ge(i,p),h&&Je(i,p)}return Ke(e,a,h,o,n,Y.current,i)}}var J=S.ReactCurrentOwner,Re=S.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var K;K=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function me(){{if(J.current){var e=y(J.current.type);if(e)return`
|
|
22
24
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
25
|
+
Check the render method of \``+e+"`."}return""}}function He(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
26
|
|
|
25
|
-
Check your code at `+r+":"+t+"."}return""}}var
|
|
27
|
+
Check your code at `+r+":"+t+"."}return""}}var Oe={};function Xe(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
28
|
|
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
29
|
+
Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Xe(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),A(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function ye(e,r){{if(typeof e!="object")return;if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&Pe(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var o=ke(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)z(i.value)&&Pe(i.value,r)}}}function Ze(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===g||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=y(r);Ve(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var o=y(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Te(e,r,t,n,o,u){{var i=$e(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=He(o);h?a+=h:a+=me();var l;e===null?l="null":Array.isArray(e)?l="array":e!==void 0&&e.$$typeof===x?(l="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var p=ze(e,r,t,o,u);if(p==null)return p;if(i){var T=r.children;if(T!==void 0)if(n)if(Array.isArray(T)){for(var k=0;k<T.length;k++)ye(T[k],e);Object.freeze&&Object.freeze(T)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ye(T,e)}return e===c.Fragment?Qe(p):Ze(p),p}}function er(e,r,t){return Te(e,r,t,!0)}function rr(e,r,t){return Te(e,r,t,!1)}var tr=rr,nr=er;c.jsx=tr,c.jsxs=nr}()}(X)),X}process.env.NODE_ENV==="production"?Z.exports=ar():Z.exports=ir();var Q=Z.exports;const or={popups:[]},ur=I.createContext(or),sr=()=>{const[c,R]=I.useState([]);return{popups:c}},cr=({children:c})=>{const R=sr();return Q.jsx(ur.Provider,{value:R,children:c})},fr={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null},lr=I.createContext(fr),vr=()=>{const[c,R]=I.useState(null);return{cabinetType:2,apiAxios:null,cabinetIsLoading:!1,cabinetSettings:null,phoneNumber:c,setPhoneNumber:R}},dr=({children:c})=>{const R=vr();return Q.jsx(lr.Provider,{value:R,children:c})};const pr=({number:c})=>Q.jsx("div",{children:c});exports.AppProvider=dr;exports.PopupProvider=cr;exports.TestComponent=pr;
|