bonuspluscomponents 0.0.47 → 0.0.49
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/Context/AppContext.d.ts +5 -1
- package/dist/AppContext/Context/AppContext.d.ts.map +1 -1
- package/dist/bonuspluscomponents.cjs.js +13 -11
- package/dist/bonuspluscomponents.es.js +1860 -429
- package/dist/bonuspluscomponents.umd.js +13 -11
- package/dist/components/UseAxios/useAxios.d.ts +3 -19
- package/dist/components/UseAxios/useAxios.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/manifest.json +0 -4
- package/package.json +1 -1
- package/dist/style.css +0 -1
|
@@ -21,10 +21,14 @@ type ProviderApp = {
|
|
|
21
21
|
phoneNumber: string | null;
|
|
22
22
|
setPhoneNumber: React.Dispatch<React.SetStateAction<string | null>>;
|
|
23
23
|
cabinetSettings: CabinetSettings | null;
|
|
24
|
+
authToken: string | null;
|
|
25
|
+
setAuthToken: React.Dispatch<React.SetStateAction<string | null>>;
|
|
26
|
+
createAxios: (authToken: string, host: string) => void;
|
|
24
27
|
};
|
|
25
28
|
export declare const AppContext: React.Context<ProviderApp>;
|
|
26
|
-
export declare const AppProvider: ({ children }: {
|
|
29
|
+
export declare const AppProvider: ({ children, cabinetType }: {
|
|
27
30
|
children: JSX.Element;
|
|
31
|
+
cabinetType: CabinetType;
|
|
28
32
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
33
|
export {};
|
|
30
34
|
//# sourceMappingURL=AppContext.d.ts.map
|
|
@@ -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;
|
|
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;AAKpC,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;AA0D3D,eAAO,MAAM,WAAW;cAAyC,WAAW;iBAAe,WAAW;6CAIrG,CAAC"}
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("react");var Ne={exports:{}},J={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var
|
|
5
|
+
*/var Ae,lt;function Ot(){if(lt)return Ae;lt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(h.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ae=s()?Object.assign:function(i,a){for(var c,h=n(i),l,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var m in c)t.call(c,m)&&(h[m]=c[m]);if(e){l=e(c);for(var R=0;R<l.length;R++)r.call(c,l[R])&&(h[l[R]]=c[l[R]])}}return h},Ae}/** @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
|
|
12
|
+
*/var ft;function br(){if(ft)return J;ft=1,Ot();var e=L,t=60103;if(J.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),J.Fragment=r("react.fragment")}var n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function a(c,h,l){var d,m={},R=null,g=null;l!==void 0&&(R=""+l),h.key!==void 0&&(R=""+h.key),h.ref!==void 0&&(g=h.ref);for(d in h)s.call(h,d)&&!i.hasOwnProperty(d)&&(m[d]=h[d]);if(c&&c.defaultProps)for(d in h=c.defaultProps,h)m[d]===void 0&&(m[d]=h[d]);return{$$typeof:t,type:c,key:R,ref:g,props:m,_owner:n.current}}return J.jsx=a,J.jsxs=a,J}var Te={};/** @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
|
|
20
|
-
`+
|
|
21
|
-
`),
|
|
22
|
-
`),
|
|
23
|
-
`+
|
|
19
|
+
*/var dt;function Rr(){return dt||(dt=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=L,r=Ot(),n=60103,s=60106;e.Fragment=60107;var i=60108,a=60114,c=60109,h=60110,l=60112,d=60113,m=60120,R=60115,g=60116,E=60121,b=60122,D=60117,j=60129,I=60131;if(typeof Symbol=="function"&&Symbol.for){var A=Symbol.for;n=A("react.element"),s=A("react.portal"),e.Fragment=A("react.fragment"),i=A("react.strict_mode"),a=A("react.profiler"),c=A("react.provider"),h=A("react.context"),l=A("react.forward_ref"),d=A("react.suspense"),m=A("react.suspense_list"),R=A("react.memo"),g=A("react.lazy"),E=A("react.block"),b=A("react.server.block"),D=A("react.fundamental"),A("react.scope"),A("react.opaque.id"),j=A("react.debug_trace_mode"),A("react.offscreen"),I=A("react.legacy_hidden")}var re=typeof Symbol=="function"&&Symbol.iterator,Vt="@@iterator";function zt(o){if(o===null||typeof o!="object")return null;var f=re&&o[re]||o[Vt];return typeof f=="function"?f:null}var W=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(o){{for(var f=arguments.length,p=new Array(f>1?f-1:0),y=1;y<f;y++)p[y-1]=arguments[y];Jt("error",o,p)}}function Jt(o,f,p){{var y=W.ReactDebugCurrentFrame,S=y.getStackAddendum();S!==""&&(f+="%s",p=p.concat([S]));var _=p.map(function(v){return""+v});_.unshift("Warning: "+f),Function.prototype.apply.call(console[o],console,_)}}var Yt=!1;function Kt(o){return!!(typeof o=="string"||typeof o=="function"||o===e.Fragment||o===a||o===j||o===i||o===d||o===m||o===I||Yt||typeof o=="object"&&o!==null&&(o.$$typeof===g||o.$$typeof===R||o.$$typeof===c||o.$$typeof===h||o.$$typeof===l||o.$$typeof===D||o.$$typeof===E||o[0]===b))}function Gt(o,f,p){var y=f.displayName||f.name||"";return o.displayName||(y!==""?p+"("+y+")":p)}function $e(o){return o.displayName||"Context"}function F(o){if(o==null)return null;if(typeof o.tag=="number"&&N("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case e.Fragment:return"Fragment";case s:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case m:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case h:var f=o;return $e(f)+".Consumer";case c:var p=o;return $e(p._context)+".Provider";case l:return Gt(o,o.render,"ForwardRef");case R:return F(o.type);case E:return F(o._render);case g:{var y=o,S=y._payload,_=y._init;try{return F(_(S))}catch{return null}}}return null}var G=0,He,We,Ve,ze,Je,Ye,Ke;function Ge(){}Ge.__reactDisabledLog=!0;function Xt(){{if(G===0){He=console.log,We=console.info,Ve=console.warn,ze=console.error,Je=console.group,Ye=console.groupCollapsed,Ke=console.groupEnd;var o={configurable:!0,enumerable:!0,value:Ge,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}G++}}function Qt(){{if(G--,G===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},o,{value:He}),info:r({},o,{value:We}),warn:r({},o,{value:Ve}),error:r({},o,{value:ze}),group:r({},o,{value:Je}),groupCollapsed:r({},o,{value:Ye}),groupEnd:r({},o,{value:Ke})})}G<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=W.ReactCurrentDispatcher,Re;function ne(o,f,p){{if(Re===void 0)try{throw Error()}catch(S){var y=S.stack.trim().match(/\n( *(at )?)/);Re=y&&y[1]||""}return`
|
|
20
|
+
`+Re+o}}var we=!1,oe;{var Zt=typeof WeakMap=="function"?WeakMap:Map;oe=new Zt}function Xe(o,f){if(!o||we)return"";{var p=oe.get(o);if(p!==void 0)return p}var y;we=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=be.current,be.current=null,Xt();try{if(f){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(q){y=q}Reflect.construct(o,[],v)}else{try{v.call()}catch(q){y=q}o.call(v.prototype)}}else{try{throw Error()}catch(q){y=q}o()}}catch(q){if(q&&y&&typeof q.stack=="string"){for(var w=q.stack.split(`
|
|
21
|
+
`),C=y.stack.split(`
|
|
22
|
+
`),T=w.length-1,P=C.length-1;T>=1&&P>=0&&w[T]!==C[P];)P--;for(;T>=1&&P>=0;T--,P--)if(w[T]!==C[P]){if(T!==1||P!==1)do if(T--,P--,P<0||w[T]!==C[P]){var M=`
|
|
23
|
+
`+w[T].replace(" at new "," at ");return typeof o=="function"&&oe.set(o,M),M}while(T>=1&&P>=0);break}}}finally{we=!1,be.current=_,Qt(),Error.prepareStackTrace=S}var z=o?o.displayName||o.name:"",ct=z?ne(z):"";return typeof o=="function"&&oe.set(o,ct),ct}function Qe(o,f,p){return Xe(o,!1)}function er(o){var f=o.prototype;return!!(f&&f.isReactComponent)}function se(o,f,p){if(o==null)return"";if(typeof o=="function")return Xe(o,er(o));if(typeof o=="string")return ne(o);switch(o){case d:return ne("Suspense");case m:return ne("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case l:return Qe(o.render);case R:return se(o.type,f,p);case E:return Qe(o._render);case g:{var y=o,S=y._payload,_=y._init;try{return se(_(S),f,p)}catch{}}}return""}var Ze={},et=W.ReactDebugCurrentFrame;function ie(o){if(o){var f=o._owner,p=se(o.type,o._source,f?f.type:null);et.setExtraStackFrame(p)}else et.setExtraStackFrame(null)}function tr(o,f,p,y,S){{var _=Function.call.bind(Object.prototype.hasOwnProperty);for(var v in o)if(_(o,v)){var w=void 0;try{if(typeof o[v]!="function"){var C=Error((y||"React class")+": "+p+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}w=o[v](f,v,y,p,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){w=T}w&&!(w instanceof Error)&&(ie(S),N("%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).",y||"React class",p,v,typeof w),ie(null)),w instanceof Error&&!(w.message in Ze)&&(Ze[w.message]=!0,ie(S),N("Failed %s type: %s",p,w.message),ie(null))}}}var X=W.ReactCurrentOwner,ge=Object.prototype.hasOwnProperty,rr={key:!0,ref:!0,__self:!0,__source:!0},tt,rt,ve;ve={};function nr(o){if(ge.call(o,"ref")){var f=Object.getOwnPropertyDescriptor(o,"ref").get;if(f&&f.isReactWarning)return!1}return o.ref!==void 0}function or(o){if(ge.call(o,"key")){var f=Object.getOwnPropertyDescriptor(o,"key").get;if(f&&f.isReactWarning)return!1}return o.key!==void 0}function sr(o,f){if(typeof o.ref=="string"&&X.current&&f&&X.current.stateNode!==f){var p=F(X.current.type);ve[p]||(N('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',F(X.current.type),o.ref),ve[p]=!0)}}function ir(o,f){{var p=function(){tt||(tt=!0,N("%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)",f))};p.isReactWarning=!0,Object.defineProperty(o,"key",{get:p,configurable:!0})}}function ar(o,f){{var p=function(){rt||(rt=!0,N("%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)",f))};p.isReactWarning=!0,Object.defineProperty(o,"ref",{get:p,configurable:!0})}}var ur=function(o,f,p,y,S,_,v){var w={$$typeof:n,type:o,key:f,ref:p,props:v,_owner:_};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function cr(o,f,p,y,S){{var _,v={},w=null,C=null;p!==void 0&&(w=""+p),or(f)&&(w=""+f.key),nr(f)&&(C=f.ref,sr(f,S));for(_ in f)ge.call(f,_)&&!rr.hasOwnProperty(_)&&(v[_]=f[_]);if(o&&o.defaultProps){var T=o.defaultProps;for(_ in T)v[_]===void 0&&(v[_]=T[_])}if(w||C){var P=typeof o=="function"?o.displayName||o.name||"Unknown":o;w&&ir(v,P),C&&ar(v,P)}return ur(o,w,C,S,y,X.current,v)}}var Oe=W.ReactCurrentOwner,nt=W.ReactDebugCurrentFrame;function V(o){if(o){var f=o._owner,p=se(o.type,o._source,f?f.type:null);nt.setExtraStackFrame(p)}else nt.setExtraStackFrame(null)}var Se;Se=!1;function _e(o){return typeof o=="object"&&o!==null&&o.$$typeof===n}function ot(){{if(Oe.current){var o=F(Oe.current.type);if(o)return`
|
|
24
24
|
|
|
25
|
-
Check the render method of \``+
|
|
25
|
+
Check the render method of \``+o+"`."}return""}}function lr(o){{if(o!==void 0){var f=o.fileName.replace(/^.*[\\\/]/,""),p=o.lineNumber;return`
|
|
26
26
|
|
|
27
|
-
Check your code at `+
|
|
27
|
+
Check your code at `+f+":"+p+"."}return""}}var st={};function fr(o){{var f=ot();if(!f){var p=typeof o=="string"?o:o.displayName||o.name;p&&(f=`
|
|
28
28
|
|
|
29
|
-
Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Ze(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),A(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function ye(e,r){{if(typeof e!="object")return;if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&Pe(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var o=De(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)z(i.value)&&Pe(i.value,r)}}}function Qe(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===g||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=y(r);Fe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var o=y(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function er(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Te(e,r,t,n,o,u){{var i=Ye(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=Xe(o);h?a+=h:a+=me();var l;e===null?l="null":Array.isArray(e)?l="array":e!==void 0&&e.$$typeof===x?(l="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var p=He(e,r,t,o,u);if(p==null)return p;if(i){var T=r.children;if(T!==void 0)if(n)if(Array.isArray(T)){for(var k=0;k<T.length;k++)ye(T[k],e);Object.freeze&&Object.freeze(T)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ye(T,e)}return e===c.Fragment?er(p):Qe(p),p}}function rr(e,r,t){return Te(e,r,t,!0)}function tr(e,r,t){return Te(e,r,t,!1)}var nr=tr,ar=rr;c.jsx=nr,c.jsxs=ar}()}(X)),X}process.env.NODE_ENV==="production"?Z.exports=ir():Z.exports=or();var Q=Z.exports;const ur={popups:[]},sr=I.createContext(ur),cr=()=>{const[c,R]=I.useState([]);return{popups:c}},fr=({children:c})=>{const R=cr();return Q.jsx(sr.Provider,{value:R,children:c})},lr={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null},Ae=I.createContext(lr),vr=()=>{const[c,R]=I.useState(null);return{cabinetType:2,apiAxios:null,cabinetIsLoading:!1,cabinetSettings:null,phoneNumber:c,setPhoneNumber:R}},dr=({children:c})=>{const R=vr();return Q.jsx(Ae.Provider,{value:R,children:c})};const pr=({number:c})=>Q.jsx("div",{children:c});exports.AppContext=Ae;exports.AppProvider=dr;exports.PopupProvider=fr;exports.TestComponent=pr;
|
|
29
|
+
Check the top-level render call using <`+p+">.")}return f}}function it(o,f){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var p=fr(f);if(st[p])return;st[p]=!0;var y="";o&&o._owner&&o._owner!==Oe.current&&(y=" It was passed a child from "+F(o._owner.type)+"."),V(o),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',p,y),V(null)}}function at(o,f){{if(typeof o!="object")return;if(Array.isArray(o))for(var p=0;p<o.length;p++){var y=o[p];_e(y)&&it(y,f)}else if(_e(o))o._store&&(o._store.validated=!0);else if(o){var S=zt(o);if(typeof S=="function"&&S!==o.entries)for(var _=S.call(o),v;!(v=_.next()).done;)_e(v.value)&&it(v.value,f)}}}function dr(o){{var f=o.type;if(f==null||typeof f=="string")return;var p;if(typeof f=="function")p=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===l||f.$$typeof===R))p=f.propTypes;else return;if(p){var y=F(f);tr(p,o.props,"prop",y,o)}else if(f.PropTypes!==void 0&&!Se){Se=!0;var S=F(f);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(o){{for(var f=Object.keys(o.props),p=0;p<f.length;p++){var y=f[p];if(y!=="children"&&y!=="key"){V(o),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),V(null);break}}o.ref!==null&&(V(o),N("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function ut(o,f,p,y,S,_){{var v=Kt(o);if(!v){var w="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(w+=" 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 C=lr(S);C?w+=C:w+=ot();var T;o===null?T="null":Array.isArray(o)?T="array":o!==void 0&&o.$$typeof===n?(T="<"+(F(o.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):T=typeof o,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,w)}var P=cr(o,f,p,S,_);if(P==null)return P;if(v){var M=f.children;if(M!==void 0)if(y)if(Array.isArray(M)){for(var z=0;z<M.length;z++)at(M[z],o);Object.freeze&&Object.freeze(M)}else N("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 at(M,o)}return o===e.Fragment?pr(P):dr(P),P}}function hr(o,f,p){return ut(o,f,p,!0)}function mr(o,f,p){return ut(o,f,p,!1)}var Er=mr,yr=hr;e.jsx=Er,e.jsxs=yr}()}(Te)),Te}process.env.NODE_ENV==="production"?Ne.exports=br():Ne.exports=Rr();var St=Ne.exports;const wr={popups:[]},gr=L.createContext(wr),vr=()=>{const[e,t]=L.useState([]);return{popups:e}},Or=({children:e})=>{const t=vr();return St.jsx(gr.Provider,{value:t,children:e})};function _t(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sr}=Object.prototype,{getPrototypeOf:Ue}=Object,de=(e=>t=>{const r=Sr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),B=e=>(e=e.toLowerCase(),t=>de(t)===e),pe=e=>t=>typeof t===e,{isArray:K}=Array,Z=pe("undefined");function _r(e){return e!==null&&!Z(e)&&e.constructor!==null&&!Z(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const At=B("ArrayBuffer");function Ar(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&At(e.buffer),t}const Tr=pe("string"),k=pe("function"),Tt=pe("number"),he=e=>e!==null&&typeof e=="object",Pr=e=>e===!0||e===!1,ae=e=>{if(de(e)!=="object")return!1;const t=Ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xr=B("Date"),Cr=B("File"),jr=B("Blob"),Nr=B("FileList"),Dr=e=>he(e)&&k(e.pipe),kr=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||k(e.append)&&((t=de(e))==="formdata"||t==="object"&&k(e.toString)&&e.toString()==="[object FormData]"))},Fr=B("URLSearchParams"),Lr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ee(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),K(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(n=0;n<a;n++)c=i[n],t.call(null,e[c],c,e)}}function Pt(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const xt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ct=e=>!Z(e)&&e!==xt;function De(){const{caseless:e}=Ct(this)&&this||{},t={},r=(n,s)=>{const i=e&&Pt(t,s)||s;ae(t[i])&&ae(n)?t[i]=De(t[i],n):ae(n)?t[i]=De({},n):K(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&ee(arguments[n],r);return t}const Ur=(e,t,r,{allOwnKeys:n}={})=>(ee(t,(s,i)=>{r&&k(s)?e[i]=_t(s,r):e[i]=s},{allOwnKeys:n}),e),Br=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ir=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Mr=(e,t,r,n)=>{let s,i,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=r!==!1&&Ue(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},$r=e=>{if(!e)return null;if(K(e))return e;let t=e.length;if(!Tt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Hr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ue(Uint8Array)),Wr=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Vr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},zr=B("HTMLFormElement"),Jr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),pt=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Yr=B("RegExp"),jt=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ee(r,(s,i)=>{t(s,i,e)!==!1&&(n[i]=s)}),Object.defineProperties(e,n)},Kr=e=>{jt(e,(t,r)=>{if(k(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(k(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Gr=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return K(e)?n(e):n(String(e).split(t)),r},Xr=()=>{},Qr=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Pe="abcdefghijklmnopqrstuvwxyz",ht="0123456789",Nt={DIGIT:ht,ALPHA:Pe,ALPHA_DIGIT:Pe+Pe.toUpperCase()+ht},Zr=(e=16,t=Nt.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function en(e){return!!(e&&k(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tn=e=>{const t=new Array(10),r=(n,s)=>{if(he(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=K(n)?[]:{};return ee(n,(a,c)=>{const h=r(a,s+1);!Z(h)&&(i[c]=h)}),t[s]=void 0,i}}return n};return r(e,0)},rn=B("AsyncFunction"),nn=e=>e&&(he(e)||k(e))&&k(e.then)&&k(e.catch),u={isArray:K,isArrayBuffer:At,isBuffer:_r,isFormData:kr,isArrayBufferView:Ar,isString:Tr,isNumber:Tt,isBoolean:Pr,isObject:he,isPlainObject:ae,isUndefined:Z,isDate:xr,isFile:Cr,isBlob:jr,isRegExp:Yr,isFunction:k,isStream:Dr,isURLSearchParams:Fr,isTypedArray:Hr,isFileList:Nr,forEach:ee,merge:De,extend:Ur,trim:Lr,stripBOM:Br,inherits:Ir,toFlatObject:Mr,kindOf:de,kindOfTest:B,endsWith:qr,toArray:$r,forEachEntry:Wr,matchAll:Vr,isHTMLForm:zr,hasOwnProperty:pt,hasOwnProp:pt,reduceDescriptors:jt,freezeMethods:Kr,toObjectSet:Gr,toCamelCase:Jr,noop:Xr,toFiniteNumber:Qr,findKey:Pt,global:xt,isContextDefined:Ct,ALPHABET:Nt,generateString:Zr,isSpecCompliantForm:en,toJSONObject:tn,isAsyncFn:rn,isThenable:nn};function O(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}u.inherits(O,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Dt=O.prototype,kt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{kt[e]={value:e}});Object.defineProperties(O,kt);Object.defineProperty(Dt,"isAxiosError",{value:!0});O.from=(e,t,r,n,s,i)=>{const a=Object.create(Dt);return u.toFlatObject(e,a,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),O.call(a,e.message,t,r,n,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const on=null;function ke(e){return u.isPlainObject(e)||u.isArray(e)}function Ft(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function mt(e,t,r){return e?e.concat(t).map(function(s,i){return s=Ft(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function sn(e){return u.isArray(e)&&!e.some(ke)}const an=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function me(e,t,r){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,D){return!u.isUndefined(D[b])});const n=r.metaTokens,s=r.visitor||d,i=r.dots,a=r.indexes,h=(r.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function l(E){if(E===null)return"";if(u.isDate(E))return E.toISOString();if(!h&&u.isBlob(E))throw new O("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(E)||u.isTypedArray(E)?h&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function d(E,b,D){let j=E;if(E&&!D&&typeof E=="object"){if(u.endsWith(b,"{}"))b=n?b:b.slice(0,-2),E=JSON.stringify(E);else if(u.isArray(E)&&sn(E)||(u.isFileList(E)||u.endsWith(b,"[]"))&&(j=u.toArray(E)))return b=Ft(b),j.forEach(function(A,re){!(u.isUndefined(A)||A===null)&&t.append(a===!0?mt([b],re,i):a===null?b:b+"[]",l(A))}),!1}return ke(E)?!0:(t.append(mt(D,b,i),l(E)),!1)}const m=[],R=Object.assign(an,{defaultVisitor:d,convertValue:l,isVisitable:ke});function g(E,b){if(!u.isUndefined(E)){if(m.indexOf(E)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(E),u.forEach(E,function(j,I){(!(u.isUndefined(j)||j===null)&&s.call(t,j,u.isString(I)?I.trim():I,b,R))===!0&&g(j,b?b.concat(I):[I])}),m.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Et(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Be(e,t){this._pairs=[],e&&me(e,this,t)}const Lt=Be.prototype;Lt.append=function(t,r){this._pairs.push([t,r])};Lt.toString=function(t){const r=t?function(n){return t.call(this,n,Et)}:Et;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function un(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ut(e,t,r){if(!t)return e;const n=r&&r.encode||un,s=r&&r.serialize;let i;if(s?i=s(t,r):i=u.isURLSearchParams(t)?t.toString():new Be(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cn{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(n){n!==null&&t(n)})}}const yt=cn,Bt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ln=typeof URLSearchParams<"u"?URLSearchParams:Be,fn=typeof FormData<"u"?FormData:null,dn=typeof Blob<"u"?Blob:null,pn=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),hn=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),U={isBrowser:!0,classes:{URLSearchParams:ln,FormData:fn,Blob:dn},isStandardBrowserEnv:pn,isStandardBrowserWebWorkerEnv:hn,protocols:["http","https","file","blob","url","data"]};function mn(e,t){return me(e,new U.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return U.isNode&&u.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function En(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yn(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}function It(e){function t(r,n,s,i){let a=r[i++];const c=Number.isFinite(+a),h=i>=r.length;return a=!a&&u.isArray(s)?s.length:a,h?(u.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!c):((!s[a]||!u.isObject(s[a]))&&(s[a]=[]),t(r,n,s[a],i)&&u.isArray(s[a])&&(s[a]=yn(s[a])),!c)}if(u.isFormData(e)&&u.isFunction(e.entries)){const r={};return u.forEachEntry(e,(n,s)=>{t(En(n),s,r,0)}),r}return null}const bn={"Content-Type":void 0};function Rn(e,t,r){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ee={transitional:Bt,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=u.isObject(t);if(i&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s&&s?JSON.stringify(It(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return mn(t,this.formSerializer).toString();if((c=u.isFileList(t))||n.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return me(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),Rn(t)):t}],transformResponse:[function(t){const r=this.transitional||Ee.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(t&&u.isString(t)&&(n&&!this.responseType||s)){const a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?O.from(c,O.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};u.forEach(["delete","get","head"],function(t){Ee.headers[t]={}});u.forEach(["post","put","patch"],function(t){Ee.headers[t]=u.merge(bn)});const Ie=Ee,wn=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gn=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
30
|
+
`).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&wn[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},bt=Symbol("internals");function Q(e){return e&&String(e).trim().toLowerCase()}function ue(e){return e===!1||e==null?e:u.isArray(e)?e.map(ue):String(e)}function vn(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const On=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xe(e,t,r,n,s){if(u.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!u.isString(t)){if(u.isString(n))return t.indexOf(n)!==-1;if(u.isRegExp(n))return n.test(t)}}function Sn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function _n(e,t){const r=u.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,a){return this[n].call(this,t,s,i,a)},configurable:!0})})}class ye{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(c,h,l){const d=Q(h);if(!d)throw new Error("header name must be a non-empty string");const m=u.findKey(s,d);(!m||s[m]===void 0||l===!0||l===void 0&&s[m]!==!1)&&(s[m||h]=ue(c))}const a=(c,h)=>u.forEach(c,(l,d)=>i(l,d,h));return u.isPlainObject(t)||t instanceof this.constructor?a(t,r):u.isString(t)&&(t=t.trim())&&!On(t)?a(gn(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=Q(t),t){const n=u.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return vn(s);if(u.isFunction(r))return r.call(this,s,n);if(u.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Q(t),t){const n=u.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||xe(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(a){if(a=Q(a),a){const c=u.findKey(n,a);c&&(!r||xe(n,n[c],c,r))&&(delete n[c],s=!0)}}return u.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||xe(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return u.forEach(this,(s,i)=>{const a=u.findKey(n,i);if(a){r[a]=ue(s),delete r[i];return}const c=t?Sn(i):String(i).trim();c!==i&&delete r[i],r[c]=ue(s),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return u.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&u.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
31
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[bt]=this[bt]={accessors:{}}).accessors,s=this.prototype;function i(a){const c=Q(a);n[c]||(_n(s,a),n[c]=!0)}return u.isArray(t)?t.forEach(i):i(t),this}}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.freezeMethods(ye.prototype);u.freezeMethods(ye);const $=ye;function Ce(e,t){const r=this||Ie,n=t||r,s=$.from(n.headers);let i=n.data;return u.forEach(e,function(c){i=c.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Mt(e){return!!(e&&e.__CANCEL__)}function te(e,t,r){O.call(this,e??"canceled",O.ERR_CANCELED,t,r),this.name="CanceledError"}u.inherits(te,O,{__CANCEL__:!0});function An(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new O("Request failed with status code "+r.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Tn=U.isStandardBrowserEnv?function(){return{write:function(r,n,s,i,a,c){const h=[];h.push(r+"="+encodeURIComponent(n)),u.isNumber(s)&&h.push("expires="+new Date(s).toGMTString()),u.isString(i)&&h.push("path="+i),u.isString(a)&&h.push("domain="+a),c===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Pn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xn(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function qt(e,t){return e&&!Pn(t)?xn(e,t):t}const Cn=U.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function s(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(a){const c=u.isString(a)?s(a):a;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}();function jn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nn(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(h){const l=Date.now(),d=n[i];a||(a=l),r[s]=h,n[s]=l;let m=i,R=0;for(;m!==s;)R+=r[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-a<t)return;const g=d&&l-d;return g?Math.round(R*1e3/g):void 0}}function Rt(e,t){let r=0;const n=Nn(50,250);return s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-r,h=n(c),l=i<=a;r=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:h||void 0,estimated:h&&a&&l?(a-i)/h:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const Dn=typeof XMLHttpRequest<"u",kn=Dn&&function(e){return new Promise(function(r,n){let s=e.data;const i=$.from(e.headers).normalize(),a=e.responseType;let c;function h(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}u.isFormData(s)&&(U.isStandardBrowserEnv||U.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+E))}const d=qt(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ut(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function m(){if(!l)return;const g=$.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:g,config:e,request:l};An(function(j){r(j),h()},function(j){n(j),h()},b),l=null}if("onloadend"in l?l.onloadend=m:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(m)},l.onabort=function(){l&&(n(new O("Request aborted",O.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new O("Network Error",O.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||Bt;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),n(new O(E,b.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,e,l)),l=null},U.isStandardBrowserEnv){const g=(e.withCredentials||Cn(d))&&e.xsrfCookieName&&Tn.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}s===void 0&&i.setContentType(null),"setRequestHeader"in l&&u.forEach(i.toJSON(),function(E,b){l.setRequestHeader(b,E)}),u.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Rt(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Rt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=g=>{l&&(n(!g||g.type?new te(null,e,l):g),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const R=jn(d);if(R&&U.protocols.indexOf(R)===-1){n(new O("Unsupported protocol "+R+":",O.ERR_BAD_REQUEST,e));return}l.send(s||null)})},ce={http:on,xhr:kn};u.forEach(ce,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fn={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let s=0;s<t&&(r=e[s],!(n=u.isString(r)?ce[r.toLowerCase()]:r));s++);if(!n)throw n===!1?new O(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(u.hasOwnProp(ce,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!u.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:ce};function je(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new te(null,e)}function wt(e){return je(e),e.headers=$.from(e.headers),e.data=Ce.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fn.getAdapter(e.adapter||Ie.adapter)(e).then(function(n){return je(e),n.data=Ce.call(e,e.transformResponse,n),n.headers=$.from(n.headers),n},function(n){return Mt(n)||(je(e),n&&n.response&&(n.response.data=Ce.call(e,e.transformResponse,n.response),n.response.headers=$.from(n.response.headers))),Promise.reject(n)})}const gt=e=>e instanceof $?e.toJSON():e;function Y(e,t){t=t||{};const r={};function n(l,d,m){return u.isPlainObject(l)&&u.isPlainObject(d)?u.merge.call({caseless:m},l,d):u.isPlainObject(d)?u.merge({},d):u.isArray(d)?d.slice():d}function s(l,d,m){if(u.isUndefined(d)){if(!u.isUndefined(l))return n(void 0,l,m)}else return n(l,d,m)}function i(l,d){if(!u.isUndefined(d))return n(void 0,d)}function a(l,d){if(u.isUndefined(d)){if(!u.isUndefined(l))return n(void 0,l)}else return n(void 0,d)}function c(l,d,m){if(m in t)return n(l,d);if(m in e)return n(void 0,l)}const h={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(l,d)=>s(gt(l),gt(d),!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(d){const m=h[d]||s,R=m(e[d],t[d],d);u.isUndefined(R)&&m!==c||(r[d]=R)}),r}const $t="1.4.0",Me={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Me[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const vt={};Me.transitional=function(t,r,n){function s(i,a){return"[Axios v"+$t+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,c)=>{if(t===!1)throw new O(s(a," has been removed"+(r?" in "+r:"")),O.ERR_DEPRECATED);return r&&!vt[a]&&(vt[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,c):!0}};function Ln(e,t,r){if(typeof e!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],a=t[i];if(a){const c=e[i],h=c===void 0||a(c,i,e);if(h!==!0)throw new O("option "+i+" must be "+h,O.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new O("Unknown option "+i,O.ERR_BAD_OPTION)}}const Fe={assertOptions:Ln,validators:Me},H=Fe.validators;let fe=class{constructor(t){this.defaults=t,this.interceptors={request:new yt,response:new yt}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Y(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&Fe.assertOptions(n,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean)},!1),s!=null&&(u.isFunction(s)?r.paramsSerializer={serialize:s}:Fe.assertOptions(s,{encode:H.function,serialize:H.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a;a=i&&u.merge(i.common,i[r.method]),a&&u.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),r.headers=$.concat(a,i);const c=[];let h=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(h=h&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const l=[];this.interceptors.response.forEach(function(b){l.push(b.fulfilled,b.rejected)});let d,m=0,R;if(!h){const E=[wt.bind(this),void 0];for(E.unshift.apply(E,c),E.push.apply(E,l),R=E.length,d=Promise.resolve(r);m<R;)d=d.then(E[m++],E[m++]);return d}R=c.length;let g=r;for(m=0;m<R;){const E=c[m++],b=c[m++];try{g=E(g)}catch(D){b.call(this,D);break}}try{d=wt.call(this,g)}catch(E){return Promise.reject(E)}for(m=0,R=l.length;m<R;)d=d.then(l[m++],l[m++]);return d}getUri(t){t=Y(this.defaults,t);const r=qt(t.baseURL,t.url);return Ut(r,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){fe.prototype[t]=function(r,n){return this.request(Y(n||{},{method:t,url:r,data:(n||{}).data}))}});u.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,c){return this.request(Y(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}fe.prototype[t]=r(),fe.prototype[t+"Form"]=r(!0)});const le=fe;class qe{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(c=>{n.subscribe(c),i=c}).then(s);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,c){n.reason||(n.reason=new te(i,a,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new qe(function(s){t=s}),cancel:t}}}const Un=qe;function Bn(e){return function(r){return e.apply(null,r)}}function In(e){return u.isObject(e)&&e.isAxiosError===!0}const Le={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Le).forEach(([e,t])=>{Le[t]=e});const Mn=Le;function Ht(e){const t=new le(e),r=_t(le.prototype.request,t);return u.extend(r,le.prototype,t,{allOwnKeys:!0}),u.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Ht(Y(e,s))},r}const x=Ht(Ie);x.Axios=le;x.CanceledError=te;x.CancelToken=Un;x.isCancel=Mt;x.VERSION=$t;x.toFormData=me;x.AxiosError=O;x.Cancel=x.CanceledError;x.all=function(t){return Promise.all(t)};x.spread=Bn;x.isAxiosError=In;x.mergeConfig=Y;x.AxiosHeaders=$;x.formToJSON=e=>It(u.isHTMLForm(e)?new FormData(e):e);x.HttpStatusCode=Mn;x.default=x;const qn=x,$n={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null,authToken:null,setAuthToken:null,createAxios:null},Wt=L.createContext($n),Hn=({cabinetType:e})=>{const[t,r]=L.useState(null),[n,s]=L.useState(null),[i,a]=L.useState(null),[c,h]=L.useState(null);return L.useEffect(()=>{(async()=>{if(!i||!t||!e)return;const m=await i.post("/externalCustomerCabinet/cabinetInfo",{phoneNumber:t,cabinetType:e});h(m.data)})()},[t,i]),{cabinetType:e,apiAxios:null,cabinetIsLoading:!1,cabinetSettings:c,phoneNumber:t,setPhoneNumber:r,authToken:n,setAuthToken:s,createAxios:(d,m)=>{const R=qn.create({headers:{common:{Authorization:d}}});R.defaults.baseURL=m,a(R)}}},Wn=({children:e,cabinetType:t})=>{const r=Hn({cabinetType:t});return St.jsx(Wt.Provider,{value:{...r,cabinetType:t},children:e})};exports.AppContext=Wt;exports.AppProvider=Wn;exports.PopupProvider=Or;
|