@obb871001/api-integration-sdk 1.0.19 → 1.0.21
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/index.cjs +8 -8
- package/dist/index.js +141 -135
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("@tanstack/react-query"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("@tanstack/react-query"),T=require("react"),pr=require("axios"),Z=T.createContext(null),je=()=>{const c=T.useContext(Z);if(!c)throw new Error("useApiContext must be used within ApiProvider");return c},yr=()=>{const{client:c}=je(),v=T.useCallback(async d=>{const{mac_address:p="",app_version:o="",anydesk_id:C=""}=d,{data:y}=await c.post("/cash-register/login",{mac_address:p,app_version:o,anydesk_id:C});return y},[c]),R=T.useCallback(async()=>{const{data:d}=await c.get("/getMemberInfo");return d},[c]),E=T.useCallback(async()=>{const{data:d}=await c.get("/getGameList");return d},[c]),_=T.useCallback(async()=>{const{data:d}=await c.get("/getNowCurrencyExchange");return d},[c]),P=T.useCallback(async()=>{const{data:d}=await c.get("/getFavoriteGame");return d},[c]);return{machineLoginApi:v,userInfoApi:R,userGameListApi:E,userFavoriteGameApi:P,userCurrencyExchangeApi:_}},hr=()=>{const{userInfoApi:c}=yr(),v=H.useQueries({queries:[{queryKey:["getMemberInfo"],queryFn:c,refetchInterval:5e4}]});console.log(c());const{data:R,isFetching:E,error:_}=v[0]||{};return{data:R,isFetching:E,error:_}};var V={exports:{}},$={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Pe;function gr(){if(Pe)return $;Pe=1;var c=
|
|
9
|
+
*/var Pe;function gr(){if(Pe)return $;Pe=1;var c=T,v=Symbol.for("react.element"),R=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,_=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function d(p,o,C){var y,w={},x=null,Y=null;C!==void 0&&(x=""+C),o.key!==void 0&&(x=""+o.key),o.ref!==void 0&&(Y=o.ref);for(y in o)E.call(o,y)&&!P.hasOwnProperty(y)&&(w[y]=o[y]);if(p&&p.defaultProps)for(y in o=p.defaultProps,o)w[y]===void 0&&(w[y]=o[y]);return{$$typeof:v,type:p,key:x,ref:Y,props:w,_owner:_.current}}return $.Fragment=R,$.jsx=d,$.jsxs=d,$}var W={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Oe;function br(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&(function(){var c=
|
|
18
|
-
`+J+e}}var B=!1,
|
|
17
|
+
*/var Oe;function br(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&(function(){var c=T,v=Symbol.for("react.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ee=Symbol.iterator,ke="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=ee&&e[ee]||e[ke];return typeof r=="function"?r:null}var k=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=k.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var De=!1,Ie=!1,$e=!1,We=!1,Ye=!1,re;re=Symbol.for("react.module.reference");function Le(e){return!!(typeof e=="string"||typeof e=="function"||e===E||e===P||Ye||e===_||e===C||e===y||We||e===Y||De||Ie||$e||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===w||e.$$typeof===d||e.$$typeof===p||e.$$typeof===o||e.$$typeof===re||e.getModuleId!==void 0))}function Me(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function te(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case R:return"Portal";case P:return"Profiler";case _:return"StrictMode";case C:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var r=e;return te(r)+".Consumer";case d:var t=e;return te(t._context)+".Provider";case o:return Me(e,e.render,"ForwardRef");case w:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case x:{var u=e,s=u._payload,i=u._init;try{return O(i(s))}catch{return null}}}return null}var S=Object.assign,D=0,ne,ae,ie,oe,ue,se,ce;function le(){}le.__reactDisabledLog=!0;function Ue(){{if(D===0){ne=console.log,ae=console.info,ie=console.warn,oe=console.error,ue=console.group,se=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function qe(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:ne}),info:S({},e,{value:ae}),warn:S({},e,{value:ie}),error:S({},e,{value:oe}),group:S({},e,{value:ue}),groupCollapsed:S({},e,{value:se}),groupEnd:S({},e,{value:ce})})}D<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=k.ReactCurrentDispatcher,J;function L(e,r,t){{if(J===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
|
|
18
|
+
`+J+e}}var B=!1,M;{var Ve=typeof WeakMap=="function"?WeakMap:Map;M=new Ve}function fe(e,r){if(!e||B)return"";{var t=M.get(e);if(t!==void 0)return t}var n;B=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=N.current,N.current=null,Ue();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(b){n=b}Reflect.construct(e,[],i)}else{try{i.call()}catch(b){n=b}e.call(i.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
|
|
19
19
|
`),g=n.stack.split(`
|
|
20
|
-
`),l=a.length-1,f=g.length-1;l>=1&&f>=0&&a[l]!==g[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==g[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==g[f]){var
|
|
21
|
-
`+a[l].replace(" at new "," at ");return e.displayName&&
|
|
20
|
+
`),l=a.length-1,f=g.length-1;l>=1&&f>=0&&a[l]!==g[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==g[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==g[f]){var m=`
|
|
21
|
+
`+a[l].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,m),m}while(l>=1&&f>=0);break}}}finally{B=!1,N.current=s,qe(),Error.prepareStackTrace=u}var F=e?e.displayName||e.name:"",j=F?L(F):"";return typeof e=="function"&&M.set(e,j),j}function Ne(e,r,t){return fe(e,!1)}function Je(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,Je(e));if(typeof e=="string")return L(e);switch(e){case C:return L("Suspense");case y:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case o:return Ne(e.render);case w:return U(e.type,r,t);case x:{var n=e,u=n._payload,s=n._init;try{return U(s(u),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,de={},ve=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ve.setExtraStackFrame(t)}else ve.setExtraStackFrame(null)}function Be(e,r,t,n,u){{var s=Function.call.bind(I);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var g=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 g.name="Invariant Violation",g}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)&&(q(u),h("%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),q(null)),a instanceof Error&&!(a.message in de)&&(de[a.message]=!0,q(u),h("Failed %s type: %s",t,a.message),q(null))}}}var Ge=Array.isArray;function G(e){return Ge(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Qe(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function ye(e){if(Qe(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),pe(e)}var he=k.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},ge,be;function Xe(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){typeof e.ref=="string"&&he.current}function er(e,r){{var t=function(){ge||(ge=!0,h("%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 rr(e,r){{var t=function(){be||(be=!0,h("%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 tr=function(e,r,t,n,u,s,i){var a={$$typeof:v,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 nr(e,r,t,n,u){{var s,i={},a=null,g=null;t!==void 0&&(ye(t),a=""+t),He(r)&&(ye(r.key),a=""+r.key),Xe(r)&&(g=r.ref,Ze(r,u));for(s in r)I.call(r,s)&&!ze.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||g){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&er(i,f),g&&rr(i,f)}return tr(e,a,g,u,n,he.current,i)}}var K=k.ReactCurrentOwner,Ee=k.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var Q;Q=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function _e(){{if(K.current){var e=O(K.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function ar(e){return""}var me={};function ir(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function Re(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),A(e),h('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 Ce(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Re(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),A(e),h('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 Ce(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&Re(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var u=Ae(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),i;!(i=s.next()).done;)z(i.value)&&Re(i.value,r)}}}function or(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===o||r.$$typeof===w))t=r.propTypes;else return;if(t){var n=O(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var u=O(r);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(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),h("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),h("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Te={};function we(e,r,t,n,u,s){{var i=Le(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 g=ar();g?a+=g:a+=_e();var l;e===null?l="null":G(e)?l="array":e!==void 0&&e.$$typeof===v?(l="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,h("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 f=nr(e,r,t,u,s);if(f==null)return f;if(i){var m=r.children;if(m!==void 0)if(n)if(G(m)){for(var F=0;F<m.length;F++)Ce(m[F],e);Object.freeze&&Object.freeze(m)}else h("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 Ce(m,e)}if(I.call(r,"key")){var j=O(e),b=Object.keys(r).filter(function(vr){return vr!=="key"}),X=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[j+X]){var dr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,X,j,dr,j),Te[j+X]=!0}}return e===E?ur(f):or(f),f}}function sr(e,r,t){return we(e,r,t,!0)}function cr(e,r,t){return we(e,r,t,!1)}var lr=cr,fr=sr;W.Fragment=E,W.jsx=lr,W.jsxs=fr})()),W}var xe;function Er(){return xe||(xe=1,process.env.NODE_ENV==="production"?V.exports=gr():V.exports=br()),V.exports}var Se=Er();function _r({baseURL:c,getToken:v,timeoutMs:R=15e3,axiosInstance:E,currency:_,lng:P,onError:d}={}){const p=E??pr.create({baseURL:c,timeout:R,headers:{"Content-Type":"application/json"}});return p.interceptors.request.use(async o=>{if(v){const C=await v();C&&(o.headers=o.headers||{},o.headers.Authorization=`Bearer ${C}`)}return o}),p.interceptors.request.use(o=>{o.headers.Currency=_,o.headers["currency-code"]=_,o.headers.lang=P}),p.interceptors.response.use(o=>o,o=>d?d(o,{instance:p}):Promise.reject(o)),p}function mr({children:c,...v}){const R=T.useMemo(()=>_r(v),[v]),_=T.useMemo(()=>new H.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}),[]);return Se.jsx(H.QueryClientProvider,{client:_,children:Se.jsx(Z.Provider,{value:{client:R},children:c})})}exports.ApiCtx=Z;exports.ApiProvider=mr;exports.useApiContext=je;exports.usePeriodicDataUpdater=hr;
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { useQueries as
|
|
2
|
-
import
|
|
1
|
+
import { useQueries as pr, QueryClient as yr, QueryClientProvider as hr } from "@tanstack/react-query";
|
|
2
|
+
import Se, { createContext as gr, useContext as mr, useCallback as I, useMemo as Te } from "react";
|
|
3
3
|
import br from "axios";
|
|
4
|
-
const
|
|
5
|
-
const c =
|
|
4
|
+
const je = gr(null), Er = () => {
|
|
5
|
+
const c = mr(je);
|
|
6
6
|
if (!c)
|
|
7
7
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
8
8
|
return c;
|
|
9
9
|
}, _r = () => {
|
|
10
10
|
const { client: c } = Er(), v = I(
|
|
11
11
|
async (d) => {
|
|
12
|
-
const { mac_address: p = "", app_version: o = "", anydesk_id:
|
|
12
|
+
const { mac_address: p = "", app_version: o = "", anydesk_id: C = "" } = d, { data: y } = await c.post("/cash-register/login", {
|
|
13
13
|
mac_address: p,
|
|
14
14
|
app_version: o,
|
|
15
|
-
anydesk_id:
|
|
15
|
+
anydesk_id: C
|
|
16
16
|
});
|
|
17
|
-
return
|
|
17
|
+
return y;
|
|
18
18
|
},
|
|
19
19
|
[c]
|
|
20
|
-
),
|
|
20
|
+
), R = I(async () => {
|
|
21
21
|
const { data: d } = await c.get("/getMemberInfo");
|
|
22
22
|
return d;
|
|
23
23
|
}, [c]), b = I(async () => {
|
|
24
24
|
const { data: d } = await c.get("/getGameList");
|
|
25
25
|
return d;
|
|
26
|
-
}, [c]),
|
|
26
|
+
}, [c]), E = I(async () => {
|
|
27
27
|
const { data: d } = await c.get("/getNowCurrencyExchange");
|
|
28
28
|
return d;
|
|
29
29
|
}, [c]), w = I(async () => {
|
|
@@ -32,13 +32,13 @@ const Se = yr(null), Er = () => {
|
|
|
32
32
|
}, [c]);
|
|
33
33
|
return {
|
|
34
34
|
machineLoginApi: v,
|
|
35
|
-
userInfoApi:
|
|
35
|
+
userInfoApi: R,
|
|
36
36
|
userGameListApi: b,
|
|
37
37
|
userFavoriteGameApi: w,
|
|
38
|
-
userCurrencyExchangeApi:
|
|
38
|
+
userCurrencyExchangeApi: E
|
|
39
39
|
};
|
|
40
40
|
}, Sr = () => {
|
|
41
|
-
const { userInfoApi: c } = _r(),
|
|
41
|
+
const { userInfoApi: c } = _r(), v = pr({
|
|
42
42
|
queries: [
|
|
43
43
|
{
|
|
44
44
|
queryKey: ["getMemberInfo"],
|
|
@@ -47,9 +47,11 @@ const Se = yr(null), Er = () => {
|
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
49
|
});
|
|
50
|
-
|
|
50
|
+
console.log(c());
|
|
51
|
+
const { data: R, isFetching: b, error: E } = v[0] || {};
|
|
52
|
+
return { data: R, isFetching: b, error: E };
|
|
51
53
|
};
|
|
52
|
-
var
|
|
54
|
+
var q = { exports: {} }, $ = {};
|
|
53
55
|
/**
|
|
54
56
|
* @license React
|
|
55
57
|
* react-jsx-runtime.production.min.js
|
|
@@ -59,19 +61,19 @@ var V = { exports: {} }, $ = {};
|
|
|
59
61
|
* This source code is licensed under the MIT license found in the
|
|
60
62
|
* LICENSE file in the root directory of this source tree.
|
|
61
63
|
*/
|
|
62
|
-
var
|
|
64
|
+
var we;
|
|
63
65
|
function Rr() {
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
var c =
|
|
67
|
-
function d(p, o,
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
for (
|
|
71
|
-
if (p && p.defaultProps) for (
|
|
72
|
-
return { $$typeof: v, type: p, key: P, ref: Y, props: T, _owner:
|
|
66
|
+
if (we) return $;
|
|
67
|
+
we = 1;
|
|
68
|
+
var c = Se, v = Symbol.for("react.element"), R = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, E = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
69
|
+
function d(p, o, C) {
|
|
70
|
+
var y, T = {}, P = null, Y = null;
|
|
71
|
+
C !== void 0 && (P = "" + C), o.key !== void 0 && (P = "" + o.key), o.ref !== void 0 && (Y = o.ref);
|
|
72
|
+
for (y in o) b.call(o, y) && !w.hasOwnProperty(y) && (T[y] = o[y]);
|
|
73
|
+
if (p && p.defaultProps) for (y in o = p.defaultProps, o) T[y] === void 0 && (T[y] = o[y]);
|
|
74
|
+
return { $$typeof: v, type: p, key: P, ref: Y, props: T, _owner: E.current };
|
|
73
75
|
}
|
|
74
|
-
return $.Fragment =
|
|
76
|
+
return $.Fragment = R, $.jsx = d, $.jsxs = d, $;
|
|
75
77
|
}
|
|
76
78
|
var W = {};
|
|
77
79
|
/**
|
|
@@ -83,25 +85,25 @@ var W = {};
|
|
|
83
85
|
* This source code is licensed under the MIT license found in the
|
|
84
86
|
* LICENSE file in the root directory of this source tree.
|
|
85
87
|
*/
|
|
86
|
-
var
|
|
88
|
+
var Oe;
|
|
87
89
|
function Cr() {
|
|
88
|
-
return
|
|
89
|
-
var c =
|
|
90
|
-
function
|
|
90
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
91
|
+
var c = Se, v = Symbol.for("react.element"), R = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), H = Symbol.iterator, ke = "@@iterator";
|
|
92
|
+
function Ae(e) {
|
|
91
93
|
if (e === null || typeof e != "object")
|
|
92
94
|
return null;
|
|
93
|
-
var r =
|
|
95
|
+
var r = H && e[H] || e[ke];
|
|
94
96
|
return typeof r == "function" ? r : null;
|
|
95
97
|
}
|
|
96
98
|
var j = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
97
|
-
function
|
|
99
|
+
function h(e) {
|
|
98
100
|
{
|
|
99
101
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
100
102
|
t[n - 1] = arguments[n];
|
|
101
|
-
|
|
103
|
+
Fe("error", e, t);
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
|
-
function
|
|
106
|
+
function Fe(e, r, t) {
|
|
105
107
|
{
|
|
106
108
|
var n = j.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
107
109
|
u !== "" && (r += "%s", t = t.concat([u]));
|
|
@@ -111,16 +113,16 @@ function Cr() {
|
|
|
111
113
|
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
112
114
|
}
|
|
113
115
|
}
|
|
114
|
-
var
|
|
116
|
+
var De = !1, Ie = !1, $e = !1, We = !1, Ye = !1, Z;
|
|
115
117
|
Z = Symbol.for("react.module.reference");
|
|
116
|
-
function
|
|
117
|
-
return !!(typeof e == "string" || typeof e == "function" || e === b || e === w ||
|
|
118
|
+
function Le(e) {
|
|
119
|
+
return !!(typeof e == "string" || typeof e == "function" || e === b || e === w || Ye || e === E || e === C || e === y || We || e === Y || De || Ie || $e || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === T || e.$$typeof === d || e.$$typeof === p || e.$$typeof === o || // This needs to include all possible module reference object
|
|
118
120
|
// types supported by any Flight configuration anywhere since
|
|
119
121
|
// we don't know which Flight build this will end up being used
|
|
120
122
|
// with.
|
|
121
123
|
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
122
124
|
}
|
|
123
|
-
function
|
|
125
|
+
function Me(e, r, t) {
|
|
124
126
|
var n = e.displayName;
|
|
125
127
|
if (n)
|
|
126
128
|
return n;
|
|
@@ -133,22 +135,22 @@ function Cr() {
|
|
|
133
135
|
function O(e) {
|
|
134
136
|
if (e == null)
|
|
135
137
|
return null;
|
|
136
|
-
if (typeof e.tag == "number" &&
|
|
138
|
+
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
137
139
|
return e.displayName || e.name || null;
|
|
138
140
|
if (typeof e == "string")
|
|
139
141
|
return e;
|
|
140
142
|
switch (e) {
|
|
141
143
|
case b:
|
|
142
144
|
return "Fragment";
|
|
143
|
-
case
|
|
145
|
+
case R:
|
|
144
146
|
return "Portal";
|
|
145
147
|
case w:
|
|
146
148
|
return "Profiler";
|
|
147
|
-
case
|
|
149
|
+
case E:
|
|
148
150
|
return "StrictMode";
|
|
149
|
-
case
|
|
151
|
+
case C:
|
|
150
152
|
return "Suspense";
|
|
151
|
-
case
|
|
153
|
+
case y:
|
|
152
154
|
return "SuspenseList";
|
|
153
155
|
}
|
|
154
156
|
if (typeof e == "object")
|
|
@@ -160,7 +162,7 @@ function Cr() {
|
|
|
160
162
|
var t = e;
|
|
161
163
|
return ee(t._context) + ".Provider";
|
|
162
164
|
case o:
|
|
163
|
-
return
|
|
165
|
+
return Me(e, e.render, "ForwardRef");
|
|
164
166
|
case T:
|
|
165
167
|
var n = e.displayName || null;
|
|
166
168
|
return n !== null ? n : O(e.type) || "Memo";
|
|
@@ -179,7 +181,7 @@ function Cr() {
|
|
|
179
181
|
function se() {
|
|
180
182
|
}
|
|
181
183
|
se.__reactDisabledLog = !0;
|
|
182
|
-
function
|
|
184
|
+
function Ue() {
|
|
183
185
|
{
|
|
184
186
|
if (F === 0) {
|
|
185
187
|
re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
|
|
@@ -202,7 +204,7 @@ function Cr() {
|
|
|
202
204
|
F++;
|
|
203
205
|
}
|
|
204
206
|
}
|
|
205
|
-
function
|
|
207
|
+
function Ve() {
|
|
206
208
|
{
|
|
207
209
|
if (F--, F === 0) {
|
|
208
210
|
var e = {
|
|
@@ -234,7 +236,7 @@ function Cr() {
|
|
|
234
236
|
})
|
|
235
237
|
});
|
|
236
238
|
}
|
|
237
|
-
F < 0 &&
|
|
239
|
+
F < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
238
240
|
}
|
|
239
241
|
}
|
|
240
242
|
var N = j.ReactCurrentDispatcher, J;
|
|
@@ -269,7 +271,7 @@ function Cr() {
|
|
|
269
271
|
var u = Error.prepareStackTrace;
|
|
270
272
|
Error.prepareStackTrace = void 0;
|
|
271
273
|
var s;
|
|
272
|
-
s = N.current, N.current = null,
|
|
274
|
+
s = N.current, N.current = null, Ue();
|
|
273
275
|
try {
|
|
274
276
|
if (r) {
|
|
275
277
|
var i = function() {
|
|
@@ -313,24 +315,24 @@ function Cr() {
|
|
|
313
315
|
if (l !== 1 || f !== 1)
|
|
314
316
|
do
|
|
315
317
|
if (l--, f--, f < 0 || a[l] !== g[f]) {
|
|
316
|
-
var
|
|
318
|
+
var _ = `
|
|
317
319
|
` + a[l].replace(" at new ", " at ");
|
|
318
|
-
return e.displayName &&
|
|
320
|
+
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, _), _;
|
|
319
321
|
}
|
|
320
322
|
while (l >= 1 && f >= 0);
|
|
321
323
|
break;
|
|
322
324
|
}
|
|
323
325
|
}
|
|
324
326
|
} finally {
|
|
325
|
-
B = !1, N.current = s,
|
|
327
|
+
B = !1, N.current = s, Ve(), Error.prepareStackTrace = u;
|
|
326
328
|
}
|
|
327
329
|
var A = e ? e.displayName || e.name : "", S = A ? L(A) : "";
|
|
328
330
|
return typeof e == "function" && M.set(e, S), S;
|
|
329
331
|
}
|
|
330
|
-
function
|
|
332
|
+
function Ne(e, r, t) {
|
|
331
333
|
return ce(e, !1);
|
|
332
334
|
}
|
|
333
|
-
function
|
|
335
|
+
function Je(e) {
|
|
334
336
|
var r = e.prototype;
|
|
335
337
|
return !!(r && r.isReactComponent);
|
|
336
338
|
}
|
|
@@ -338,19 +340,19 @@ function Cr() {
|
|
|
338
340
|
if (e == null)
|
|
339
341
|
return "";
|
|
340
342
|
if (typeof e == "function")
|
|
341
|
-
return ce(e,
|
|
343
|
+
return ce(e, Je(e));
|
|
342
344
|
if (typeof e == "string")
|
|
343
345
|
return L(e);
|
|
344
346
|
switch (e) {
|
|
345
|
-
case
|
|
347
|
+
case C:
|
|
346
348
|
return L("Suspense");
|
|
347
|
-
case
|
|
349
|
+
case y:
|
|
348
350
|
return L("SuspenseList");
|
|
349
351
|
}
|
|
350
352
|
if (typeof e == "object")
|
|
351
353
|
switch (e.$$typeof) {
|
|
352
354
|
case o:
|
|
353
|
-
return
|
|
355
|
+
return Ne(e.render);
|
|
354
356
|
case T:
|
|
355
357
|
return U(e.type, r, t);
|
|
356
358
|
case P: {
|
|
@@ -364,14 +366,14 @@ function Cr() {
|
|
|
364
366
|
return "";
|
|
365
367
|
}
|
|
366
368
|
var D = Object.prototype.hasOwnProperty, le = {}, fe = j.ReactDebugCurrentFrame;
|
|
367
|
-
function
|
|
369
|
+
function V(e) {
|
|
368
370
|
if (e) {
|
|
369
371
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
370
372
|
fe.setExtraStackFrame(t);
|
|
371
373
|
} else
|
|
372
374
|
fe.setExtraStackFrame(null);
|
|
373
375
|
}
|
|
374
|
-
function
|
|
376
|
+
function Be(e, r, t, n, u) {
|
|
375
377
|
{
|
|
376
378
|
var s = Function.call.bind(D);
|
|
377
379
|
for (var i in e)
|
|
@@ -386,21 +388,21 @@ function Cr() {
|
|
|
386
388
|
} catch (l) {
|
|
387
389
|
a = l;
|
|
388
390
|
}
|
|
389
|
-
a && !(a instanceof Error) && (
|
|
391
|
+
a && !(a instanceof Error) && (V(u), h("%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 le) && (le[a.message] = !0, V(u), h("Failed %s type: %s", t, a.message), V(null));
|
|
390
392
|
}
|
|
391
393
|
}
|
|
392
394
|
}
|
|
393
|
-
var
|
|
395
|
+
var Ge = Array.isArray;
|
|
394
396
|
function G(e) {
|
|
395
|
-
return
|
|
397
|
+
return Ge(e);
|
|
396
398
|
}
|
|
397
|
-
function
|
|
399
|
+
function Ke(e) {
|
|
398
400
|
{
|
|
399
401
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
400
402
|
return t;
|
|
401
403
|
}
|
|
402
404
|
}
|
|
403
|
-
function
|
|
405
|
+
function ze(e) {
|
|
404
406
|
try {
|
|
405
407
|
return de(e), !1;
|
|
406
408
|
} catch {
|
|
@@ -411,15 +413,15 @@ function Cr() {
|
|
|
411
413
|
return "" + e;
|
|
412
414
|
}
|
|
413
415
|
function ve(e) {
|
|
414
|
-
if (
|
|
415
|
-
return
|
|
416
|
+
if (ze(e))
|
|
417
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), de(e);
|
|
416
418
|
}
|
|
417
|
-
var pe = j.ReactCurrentOwner,
|
|
419
|
+
var pe = j.ReactCurrentOwner, Qe = {
|
|
418
420
|
key: !0,
|
|
419
421
|
ref: !0,
|
|
420
422
|
__self: !0,
|
|
421
423
|
__source: !0
|
|
422
|
-
},
|
|
424
|
+
}, ye, he;
|
|
423
425
|
function Xe(e) {
|
|
424
426
|
if (D.call(e, "ref")) {
|
|
425
427
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -436,13 +438,13 @@ function Cr() {
|
|
|
436
438
|
}
|
|
437
439
|
return e.key !== void 0;
|
|
438
440
|
}
|
|
439
|
-
function
|
|
441
|
+
function Ze(e, r) {
|
|
440
442
|
typeof e.ref == "string" && pe.current;
|
|
441
443
|
}
|
|
442
|
-
function
|
|
444
|
+
function er(e, r) {
|
|
443
445
|
{
|
|
444
446
|
var t = function() {
|
|
445
|
-
|
|
447
|
+
ye || (ye = !0, h("%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));
|
|
446
448
|
};
|
|
447
449
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
448
450
|
get: t,
|
|
@@ -450,10 +452,10 @@ function Cr() {
|
|
|
450
452
|
});
|
|
451
453
|
}
|
|
452
454
|
}
|
|
453
|
-
function
|
|
455
|
+
function rr(e, r) {
|
|
454
456
|
{
|
|
455
457
|
var t = function() {
|
|
456
|
-
|
|
458
|
+
he || (he = !0, h("%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));
|
|
457
459
|
};
|
|
458
460
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
459
461
|
get: t,
|
|
@@ -461,7 +463,7 @@ function Cr() {
|
|
|
461
463
|
});
|
|
462
464
|
}
|
|
463
465
|
}
|
|
464
|
-
var
|
|
466
|
+
var tr = function(e, r, t, n, u, s, i) {
|
|
465
467
|
var a = {
|
|
466
468
|
// This tag allows us to uniquely identify this as a React Element
|
|
467
469
|
$$typeof: v,
|
|
@@ -490,12 +492,12 @@ function Cr() {
|
|
|
490
492
|
value: u
|
|
491
493
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
492
494
|
};
|
|
493
|
-
function
|
|
495
|
+
function nr(e, r, t, n, u) {
|
|
494
496
|
{
|
|
495
497
|
var s, i = {}, a = null, g = null;
|
|
496
|
-
t !== void 0 && (ve(t), a = "" + t), He(r) && (ve(r.key), a = "" + r.key), Xe(r) && (g = r.ref,
|
|
498
|
+
t !== void 0 && (ve(t), a = "" + t), He(r) && (ve(r.key), a = "" + r.key), Xe(r) && (g = r.ref, Ze(r, u));
|
|
497
499
|
for (s in r)
|
|
498
|
-
D.call(r, s) && !
|
|
500
|
+
D.call(r, s) && !Qe.hasOwnProperty(s) && (i[s] = r[s]);
|
|
499
501
|
if (e && e.defaultProps) {
|
|
500
502
|
var l = e.defaultProps;
|
|
501
503
|
for (s in l)
|
|
@@ -503,9 +505,9 @@ function Cr() {
|
|
|
503
505
|
}
|
|
504
506
|
if (a || g) {
|
|
505
507
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
506
|
-
a &&
|
|
508
|
+
a && er(i, f), g && rr(i, f);
|
|
507
509
|
}
|
|
508
|
-
return
|
|
510
|
+
return tr(e, a, g, u, n, pe.current, i);
|
|
509
511
|
}
|
|
510
512
|
}
|
|
511
513
|
var K = j.ReactCurrentOwner, ge = j.ReactDebugCurrentFrame;
|
|
@@ -518,7 +520,7 @@ function Cr() {
|
|
|
518
520
|
}
|
|
519
521
|
var z;
|
|
520
522
|
z = !1;
|
|
521
|
-
function
|
|
523
|
+
function Q(e) {
|
|
522
524
|
return typeof e == "object" && e !== null && e.$$typeof === v;
|
|
523
525
|
}
|
|
524
526
|
function me() {
|
|
@@ -533,11 +535,11 @@ Check the render method of \`` + e + "`.";
|
|
|
533
535
|
return "";
|
|
534
536
|
}
|
|
535
537
|
}
|
|
536
|
-
function
|
|
538
|
+
function ar(e) {
|
|
537
539
|
return "";
|
|
538
540
|
}
|
|
539
541
|
var be = {};
|
|
540
|
-
function
|
|
542
|
+
function ir(e) {
|
|
541
543
|
{
|
|
542
544
|
var r = me();
|
|
543
545
|
if (!r) {
|
|
@@ -554,12 +556,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
554
556
|
if (!e._store || e._store.validated || e.key != null)
|
|
555
557
|
return;
|
|
556
558
|
e._store.validated = !0;
|
|
557
|
-
var t =
|
|
559
|
+
var t = ir(r);
|
|
558
560
|
if (be[t])
|
|
559
561
|
return;
|
|
560
562
|
be[t] = !0;
|
|
561
563
|
var n = "";
|
|
562
|
-
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + O(e._owner.type) + "."), k(e),
|
|
564
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + O(e._owner.type) + "."), k(e), h('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);
|
|
563
565
|
}
|
|
564
566
|
}
|
|
565
567
|
function _e(e, r) {
|
|
@@ -569,19 +571,19 @@ Check the top-level render call using <` + t + ">.");
|
|
|
569
571
|
if (G(e))
|
|
570
572
|
for (var t = 0; t < e.length; t++) {
|
|
571
573
|
var n = e[t];
|
|
572
|
-
|
|
574
|
+
Q(n) && Ee(n, r);
|
|
573
575
|
}
|
|
574
|
-
else if (
|
|
576
|
+
else if (Q(e))
|
|
575
577
|
e._store && (e._store.validated = !0);
|
|
576
578
|
else if (e) {
|
|
577
|
-
var u =
|
|
579
|
+
var u = Ae(e);
|
|
578
580
|
if (typeof u == "function" && u !== e.entries)
|
|
579
581
|
for (var s = u.call(e), i; !(i = s.next()).done; )
|
|
580
|
-
|
|
582
|
+
Q(i.value) && Ee(i.value, r);
|
|
581
583
|
}
|
|
582
584
|
}
|
|
583
585
|
}
|
|
584
|
-
function
|
|
586
|
+
function or(e) {
|
|
585
587
|
{
|
|
586
588
|
var r = e.type;
|
|
587
589
|
if (r == null || typeof r == "string")
|
|
@@ -597,126 +599,130 @@ Check the top-level render call using <` + t + ">.");
|
|
|
597
599
|
return;
|
|
598
600
|
if (t) {
|
|
599
601
|
var n = O(r);
|
|
600
|
-
|
|
602
|
+
Be(t, e.props, "prop", n, e);
|
|
601
603
|
} else if (r.PropTypes !== void 0 && !z) {
|
|
602
604
|
z = !0;
|
|
603
605
|
var u = O(r);
|
|
604
|
-
|
|
606
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
605
607
|
}
|
|
606
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
608
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
607
609
|
}
|
|
608
610
|
}
|
|
609
|
-
function
|
|
611
|
+
function ur(e) {
|
|
610
612
|
{
|
|
611
613
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
612
614
|
var n = r[t];
|
|
613
615
|
if (n !== "children" && n !== "key") {
|
|
614
|
-
k(e),
|
|
616
|
+
k(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
615
617
|
break;
|
|
616
618
|
}
|
|
617
619
|
}
|
|
618
|
-
e.ref !== null && (k(e),
|
|
620
|
+
e.ref !== null && (k(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
619
621
|
}
|
|
620
622
|
}
|
|
621
623
|
var Re = {};
|
|
622
624
|
function Ce(e, r, t, n, u, s) {
|
|
623
625
|
{
|
|
624
|
-
var i =
|
|
626
|
+
var i = Le(e);
|
|
625
627
|
if (!i) {
|
|
626
628
|
var a = "";
|
|
627
629
|
(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 g =
|
|
630
|
+
var g = ar();
|
|
629
631
|
g ? a += g : a += me();
|
|
630
632
|
var l;
|
|
631
|
-
e === null ? l = "null" : G(e) ? l = "array" : e !== void 0 && e.$$typeof === v ? (l = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e,
|
|
633
|
+
e === null ? l = "null" : G(e) ? l = "array" : e !== void 0 && e.$$typeof === v ? (l = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, h("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);
|
|
632
634
|
}
|
|
633
|
-
var f =
|
|
635
|
+
var f = nr(e, r, t, u, s);
|
|
634
636
|
if (f == null)
|
|
635
637
|
return f;
|
|
636
638
|
if (i) {
|
|
637
|
-
var
|
|
638
|
-
if (
|
|
639
|
+
var _ = r.children;
|
|
640
|
+
if (_ !== void 0)
|
|
639
641
|
if (n)
|
|
640
|
-
if (G(
|
|
641
|
-
for (var A = 0; A <
|
|
642
|
-
_e(
|
|
643
|
-
Object.freeze && Object.freeze(
|
|
642
|
+
if (G(_)) {
|
|
643
|
+
for (var A = 0; A < _.length; A++)
|
|
644
|
+
_e(_[A], e);
|
|
645
|
+
Object.freeze && Object.freeze(_);
|
|
644
646
|
} else
|
|
645
|
-
|
|
647
|
+
h("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
648
|
else
|
|
647
|
-
_e(
|
|
649
|
+
_e(_, e);
|
|
648
650
|
}
|
|
649
651
|
if (D.call(r, "key")) {
|
|
650
|
-
var S = O(e), m = Object.keys(r).filter(function(
|
|
651
|
-
return
|
|
652
|
-
}),
|
|
653
|
-
if (!Re[S +
|
|
654
|
-
var
|
|
655
|
-
|
|
652
|
+
var S = O(e), m = Object.keys(r).filter(function(vr) {
|
|
653
|
+
return vr !== "key";
|
|
654
|
+
}), X = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
655
|
+
if (!Re[S + X]) {
|
|
656
|
+
var dr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
|
|
657
|
+
h(`A props object containing a "key" prop is being spread into JSX:
|
|
656
658
|
let props = %s;
|
|
657
659
|
<%s {...props} />
|
|
658
660
|
React keys must be passed directly to JSX without using spread:
|
|
659
661
|
let props = %s;
|
|
660
|
-
<%s key={someKey} {...props} />`,
|
|
662
|
+
<%s key={someKey} {...props} />`, X, S, dr, S), Re[S + X] = !0;
|
|
661
663
|
}
|
|
662
664
|
}
|
|
663
|
-
return e === b ?
|
|
665
|
+
return e === b ? ur(f) : or(f), f;
|
|
664
666
|
}
|
|
665
667
|
}
|
|
666
|
-
function
|
|
668
|
+
function sr(e, r, t) {
|
|
667
669
|
return Ce(e, r, t, !0);
|
|
668
670
|
}
|
|
669
|
-
function
|
|
671
|
+
function cr(e, r, t) {
|
|
670
672
|
return Ce(e, r, t, !1);
|
|
671
673
|
}
|
|
672
|
-
var
|
|
673
|
-
W.Fragment = b, W.jsx =
|
|
674
|
+
var lr = cr, fr = sr;
|
|
675
|
+
W.Fragment = b, W.jsx = lr, W.jsxs = fr;
|
|
674
676
|
})()), W;
|
|
675
677
|
}
|
|
676
|
-
var
|
|
678
|
+
var Pe;
|
|
677
679
|
function Tr() {
|
|
678
|
-
return
|
|
680
|
+
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? q.exports = Rr() : q.exports = Cr()), q.exports;
|
|
679
681
|
}
|
|
680
|
-
var
|
|
682
|
+
var xe = Tr();
|
|
681
683
|
function wr({
|
|
682
684
|
baseURL: c,
|
|
683
685
|
getToken: v,
|
|
684
|
-
timeoutMs:
|
|
686
|
+
timeoutMs: R = 15e3,
|
|
685
687
|
axiosInstance: b,
|
|
686
|
-
currency:
|
|
688
|
+
currency: E,
|
|
687
689
|
lng: w,
|
|
688
690
|
onError: d
|
|
689
691
|
} = {}) {
|
|
690
692
|
const p = b ?? br.create({
|
|
691
693
|
baseURL: c,
|
|
692
|
-
timeout:
|
|
694
|
+
timeout: R,
|
|
693
695
|
headers: { "Content-Type": "application/json" }
|
|
694
696
|
});
|
|
695
697
|
return p.interceptors.request.use(async (o) => {
|
|
696
698
|
if (v) {
|
|
697
|
-
const
|
|
698
|
-
|
|
699
|
+
const C = await v();
|
|
700
|
+
C && (o.headers = o.headers || {}, o.headers.Authorization = `Bearer ${C}`);
|
|
699
701
|
}
|
|
700
702
|
return o;
|
|
701
703
|
}), p.interceptors.request.use((o) => {
|
|
702
|
-
o.headers.Currency =
|
|
704
|
+
o.headers.Currency = E, o.headers["currency-code"] = E, o.headers.lang = w;
|
|
703
705
|
}), p.interceptors.response.use(
|
|
704
706
|
(o) => o,
|
|
705
707
|
(o) => d ? d(o, { instance: p }) : Promise.reject(o)
|
|
706
708
|
), p;
|
|
707
709
|
}
|
|
708
710
|
function jr({ children: c, ...v }) {
|
|
709
|
-
const
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
const R = Te(() => wr(v), [v]), E = Te(
|
|
712
|
+
() => new yr({
|
|
713
|
+
defaultOptions: {
|
|
714
|
+
queries: {
|
|
715
|
+
refetchOnWindowFocus: !1,
|
|
716
|
+
retry: 1
|
|
717
|
+
}
|
|
713
718
|
}
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
719
|
+
}),
|
|
720
|
+
[]
|
|
721
|
+
);
|
|
722
|
+
return /* @__PURE__ */ xe.jsx(hr, { client: E, children: /* @__PURE__ */ xe.jsx(je.Provider, { value: { client: R }, children: c }) });
|
|
717
723
|
}
|
|
718
724
|
export {
|
|
719
|
-
|
|
725
|
+
je as ApiCtx,
|
|
720
726
|
jr as ApiProvider,
|
|
721
727
|
Er as useApiContext,
|
|
722
728
|
Sr as usePeriodicDataUpdater
|