@obb871001/api-integration-sdk 1.0.26 → 1.0.28
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 +7 -7
- package/dist/index.js +97 -102
- 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"),T=require("react"),pr=require("axios"),Z=T.createContext(null),je=()=>{const c=T.useContext(Z);if(console.log(c),!c)throw new Error("useApiContext must be used within ApiProvider");return c},yr=()=>{const{client:c}=je();console.log(c);const
|
|
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(console.log(c),!c)throw new Error("useApiContext must be used within ApiProvider");return c},yr=()=>{const{client:c}=je();console.log(c);const d=T.useCallback(async v=>{const{mac_address:p="",app_version:o="",anydesk_id:C=""}=v,{data:y}=await c.post("/cash-register/login",{mac_address:p,app_version:o,anydesk_id:C});return y},[c]),R=T.useCallback(async()=>await c.get("/getMemberInfo"),[c]),E=T.useCallback(async()=>{const{data:v}=await c.get("/getGameList");return v},[c]),_=T.useCallback(async()=>{const{data:v}=await c.get("/getNowCurrencyExchange");return v},[c]),P=T.useCallback(async()=>{const{data:v}=await c.get("/getFavoriteGame");return v},[c]);return{machineLoginApi:d,userInfoApi:R,userGameListApi:E,userFavoriteGameApi:P,userCurrencyExchangeApi:_}},gr=()=>{const{userInfoApi:c}=yr(),d=H.useQueries({queries:[{queryKey:["getMemberInfo"],queryFn:async()=>await c(),refetchInterval:5e4}]});console.log(d,"123");const{data:R,isFetching:E,error:_}=d[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 hr(){if(Pe)return $;Pe=1;var c=T,
|
|
9
|
+
*/var Pe;function hr(){if(Pe)return $;Pe=1;var c=T,d=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 v(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:d,type:p,key:x,ref:Y,props:w,_owner:_.current}}return $.Fragment=R,$.jsx=v,$.jsxs=v,$}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=T,
|
|
17
|
+
*/var Oe;function br(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&(function(){var c=T,d=Symbol.for("react.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),v=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 g(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===v||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"&&g("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 v: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&&g("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
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
|
`),h=n.stack.split(`
|
|
20
|
-
`),l=a.length-1,f=h.length-1;l>=1&&f>=0&&a[l]!==h[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==h[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==h[f]){var
|
|
21
|
-
`+a[l].replace(" at new "," at ");return e.displayName&&
|
|
20
|
+
`),l=a.length-1,f=h.length-1;l>=1&&f>=0&&a[l]!==h[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==h[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==h[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 h=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(q(u),g("%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),g("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 g("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 ge=k.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},he,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"&&ge.current}function er(e,r){{var t=function(){he||(he=!0,g("%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,g("%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:d,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,h=null;t!==void 0&&(ye(t),a=""+t),He(r)&&(ye(r.key),a=""+r.key),Xe(r)&&(h=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||h){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&er(i,f),h&&rr(i,f)}return tr(e,a,h,u,n,ge.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===d}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),g('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);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("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),g("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),g("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 h=ar();h?a+=h:a+=_e();var l;e===null?l="null":G(e)?l="array":e!==void 0&&e.$$typeof===
|
|
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),g('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);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("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),g("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),g("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 h=ar();h?a+=h:a+=_e();var l;e===null?l="null":G(e)?l="array":e!==void 0&&e.$$typeof===d?(l="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,g("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 g("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(": ..., ")+": ...}":"{}";g(`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} />`,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=hr():V.exports=br()),V.exports}var Se=Er();function _r({baseURL:c,getToken:
|
|
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=hr():V.exports=br()),V.exports}var Se=Er();function _r({baseURL:c,getToken:d,timeoutMs:R=15e3,axiosInstance:E,currency:_,lng:P,onError:v}={}){const p=E??pr.create({baseURL:c,timeout:R,headers:{"Content-Type":"application/json"}});return p.interceptors.request.use(async o=>{if(d){const C=await d();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=>v?v(o,{instance:p}):Promise.reject(o)),p}function mr({children:c,...d}){console.log(d);const R=T.useMemo(()=>_r(d),[d]),_=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=gr;
|
package/dist/index.js
CHANGED
|
@@ -9,40 +9,35 @@ const je = hr(null), Er = () => {
|
|
|
9
9
|
}, _r = () => {
|
|
10
10
|
const { client: c } = Er();
|
|
11
11
|
console.log(c);
|
|
12
|
-
const
|
|
13
|
-
async (
|
|
14
|
-
const { mac_address: p = "", app_version:
|
|
12
|
+
const d = I(
|
|
13
|
+
async (v) => {
|
|
14
|
+
const { mac_address: p = "", app_version: o = "", anydesk_id: C = "" } = v, { data: y } = await c.post("/cash-register/login", {
|
|
15
15
|
mac_address: p,
|
|
16
|
-
app_version:
|
|
16
|
+
app_version: o,
|
|
17
17
|
anydesk_id: C
|
|
18
18
|
});
|
|
19
19
|
return y;
|
|
20
20
|
},
|
|
21
21
|
[c]
|
|
22
|
-
),
|
|
23
|
-
const { data:
|
|
24
|
-
return
|
|
25
|
-
}, [c]);
|
|
26
|
-
console.log(_);
|
|
27
|
-
const b = I(async () => {
|
|
28
|
-
const { data: d } = await c.get("/getGameList");
|
|
29
|
-
return d;
|
|
22
|
+
), R = I(async () => await c.get("/getMemberInfo"), [c]), b = I(async () => {
|
|
23
|
+
const { data: v } = await c.get("/getGameList");
|
|
24
|
+
return v;
|
|
30
25
|
}, [c]), E = I(async () => {
|
|
31
|
-
const { data:
|
|
32
|
-
return
|
|
26
|
+
const { data: v } = await c.get("/getNowCurrencyExchange");
|
|
27
|
+
return v;
|
|
33
28
|
}, [c]), T = I(async () => {
|
|
34
|
-
const { data:
|
|
35
|
-
return
|
|
29
|
+
const { data: v } = await c.get("/getFavoriteGame");
|
|
30
|
+
return v;
|
|
36
31
|
}, [c]);
|
|
37
32
|
return {
|
|
38
|
-
machineLoginApi:
|
|
39
|
-
userInfoApi:
|
|
33
|
+
machineLoginApi: d,
|
|
34
|
+
userInfoApi: R,
|
|
40
35
|
userGameListApi: b,
|
|
41
36
|
userFavoriteGameApi: T,
|
|
42
37
|
userCurrencyExchangeApi: E
|
|
43
38
|
};
|
|
44
39
|
}, Sr = () => {
|
|
45
|
-
const { userInfoApi: c } = _r(),
|
|
40
|
+
const { userInfoApi: c } = _r(), d = pr({
|
|
46
41
|
queries: [
|
|
47
42
|
{
|
|
48
43
|
queryKey: ["getMemberInfo"],
|
|
@@ -51,9 +46,9 @@ const je = hr(null), Er = () => {
|
|
|
51
46
|
}
|
|
52
47
|
]
|
|
53
48
|
});
|
|
54
|
-
console.log(
|
|
55
|
-
const { data:
|
|
56
|
-
return { data:
|
|
49
|
+
console.log(d, "123");
|
|
50
|
+
const { data: R, isFetching: b, error: E } = d[0] || {};
|
|
51
|
+
return { data: R, isFetching: b, error: E };
|
|
57
52
|
};
|
|
58
53
|
var q = { exports: {} }, $ = {};
|
|
59
54
|
/**
|
|
@@ -69,15 +64,15 @@ var Te;
|
|
|
69
64
|
function Rr() {
|
|
70
65
|
if (Te) return $;
|
|
71
66
|
Te = 1;
|
|
72
|
-
var c = Se,
|
|
73
|
-
function
|
|
67
|
+
var c = Se, d = 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, T = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
68
|
+
function v(p, o, C) {
|
|
74
69
|
var y, w = {}, P = null, Y = null;
|
|
75
|
-
C !== void 0 && (P = "" + C),
|
|
76
|
-
for (y in
|
|
77
|
-
if (p && p.defaultProps) for (y in
|
|
78
|
-
return { $$typeof:
|
|
70
|
+
C !== void 0 && (P = "" + C), o.key !== void 0 && (P = "" + o.key), o.ref !== void 0 && (Y = o.ref);
|
|
71
|
+
for (y in o) b.call(o, y) && !T.hasOwnProperty(y) && (w[y] = o[y]);
|
|
72
|
+
if (p && p.defaultProps) for (y in o = p.defaultProps, o) w[y] === void 0 && (w[y] = o[y]);
|
|
73
|
+
return { $$typeof: d, type: p, key: P, ref: Y, props: w, _owner: E.current };
|
|
79
74
|
}
|
|
80
|
-
return $.Fragment =
|
|
75
|
+
return $.Fragment = R, $.jsx = v, $.jsxs = v, $;
|
|
81
76
|
}
|
|
82
77
|
var W = {};
|
|
83
78
|
/**
|
|
@@ -92,7 +87,7 @@ var W = {};
|
|
|
92
87
|
var Oe;
|
|
93
88
|
function Cr() {
|
|
94
89
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
95
|
-
var c = Se,
|
|
90
|
+
var c = Se, d = Symbol.for("react.element"), R = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), v = 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"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), H = Symbol.iterator, ke = "@@iterator";
|
|
96
91
|
function Ae(e) {
|
|
97
92
|
if (e === null || typeof e != "object")
|
|
98
93
|
return null;
|
|
@@ -111,8 +106,8 @@ function Cr() {
|
|
|
111
106
|
{
|
|
112
107
|
var n = j.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
113
108
|
u !== "" && (r += "%s", t = t.concat([u]));
|
|
114
|
-
var s = t.map(function(
|
|
115
|
-
return String(
|
|
109
|
+
var s = t.map(function(i) {
|
|
110
|
+
return String(i);
|
|
116
111
|
});
|
|
117
112
|
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
118
113
|
}
|
|
@@ -120,7 +115,7 @@ function Cr() {
|
|
|
120
115
|
var De = !1, Ie = !1, $e = !1, We = !1, Ye = !1, Z;
|
|
121
116
|
Z = Symbol.for("react.module.reference");
|
|
122
117
|
function Le(e) {
|
|
123
|
-
return !!(typeof e == "string" || typeof e == "function" || e === b || e === T || Ye || e === E || e === C || e === y || We || e === Y || De || Ie || $e || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === w || e.$$typeof ===
|
|
118
|
+
return !!(typeof e == "string" || typeof e == "function" || e === b || e === T || Ye || e === E || e === C || e === y || We || e === Y || De || Ie || $e || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === w || e.$$typeof === v || e.$$typeof === p || e.$$typeof === o || // This needs to include all possible module reference object
|
|
124
119
|
// types supported by any Flight configuration anywhere since
|
|
125
120
|
// we don't know which Flight build this will end up being used
|
|
126
121
|
// with.
|
|
@@ -146,7 +141,7 @@ function Cr() {
|
|
|
146
141
|
switch (e) {
|
|
147
142
|
case b:
|
|
148
143
|
return "Fragment";
|
|
149
|
-
case
|
|
144
|
+
case R:
|
|
150
145
|
return "Portal";
|
|
151
146
|
case T:
|
|
152
147
|
return "Profiler";
|
|
@@ -162,18 +157,18 @@ function Cr() {
|
|
|
162
157
|
case p:
|
|
163
158
|
var r = e;
|
|
164
159
|
return ee(r) + ".Consumer";
|
|
165
|
-
case
|
|
160
|
+
case v:
|
|
166
161
|
var t = e;
|
|
167
162
|
return ee(t._context) + ".Provider";
|
|
168
|
-
case
|
|
163
|
+
case o:
|
|
169
164
|
return Me(e, e.render, "ForwardRef");
|
|
170
165
|
case w:
|
|
171
166
|
var n = e.displayName || null;
|
|
172
167
|
return n !== null ? n : O(e.type) || "Memo";
|
|
173
168
|
case P: {
|
|
174
|
-
var u = e, s = u._payload,
|
|
169
|
+
var u = e, s = u._payload, i = u._init;
|
|
175
170
|
try {
|
|
176
|
-
return O(
|
|
171
|
+
return O(i(s));
|
|
177
172
|
} catch {
|
|
178
173
|
return null;
|
|
179
174
|
}
|
|
@@ -181,14 +176,14 @@ function Cr() {
|
|
|
181
176
|
}
|
|
182
177
|
return null;
|
|
183
178
|
}
|
|
184
|
-
var x = Object.assign, F = 0, re, te, ne, ae,
|
|
179
|
+
var x = Object.assign, F = 0, re, te, ne, ae, ie, oe, ue;
|
|
185
180
|
function se() {
|
|
186
181
|
}
|
|
187
182
|
se.__reactDisabledLog = !0;
|
|
188
183
|
function Ue() {
|
|
189
184
|
{
|
|
190
185
|
if (F === 0) {
|
|
191
|
-
re = console.log, te = console.info, ne = console.warn, ae = console.error,
|
|
186
|
+
re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
|
|
192
187
|
var e = {
|
|
193
188
|
configurable: !0,
|
|
194
189
|
enumerable: !0,
|
|
@@ -230,10 +225,10 @@ function Cr() {
|
|
|
230
225
|
value: ae
|
|
231
226
|
}),
|
|
232
227
|
group: x({}, e, {
|
|
233
|
-
value:
|
|
228
|
+
value: ie
|
|
234
229
|
}),
|
|
235
230
|
groupCollapsed: x({}, e, {
|
|
236
|
-
value:
|
|
231
|
+
value: oe
|
|
237
232
|
}),
|
|
238
233
|
groupEnd: x({}, e, {
|
|
239
234
|
value: ue
|
|
@@ -278,27 +273,27 @@ function Cr() {
|
|
|
278
273
|
s = N.current, N.current = null, Ue();
|
|
279
274
|
try {
|
|
280
275
|
if (r) {
|
|
281
|
-
var
|
|
276
|
+
var i = function() {
|
|
282
277
|
throw Error();
|
|
283
278
|
};
|
|
284
|
-
if (Object.defineProperty(
|
|
279
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
285
280
|
set: function() {
|
|
286
281
|
throw Error();
|
|
287
282
|
}
|
|
288
283
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
289
284
|
try {
|
|
290
|
-
Reflect.construct(
|
|
285
|
+
Reflect.construct(i, []);
|
|
291
286
|
} catch (m) {
|
|
292
287
|
n = m;
|
|
293
288
|
}
|
|
294
|
-
Reflect.construct(e, [],
|
|
289
|
+
Reflect.construct(e, [], i);
|
|
295
290
|
} else {
|
|
296
291
|
try {
|
|
297
|
-
|
|
292
|
+
i.call();
|
|
298
293
|
} catch (m) {
|
|
299
294
|
n = m;
|
|
300
295
|
}
|
|
301
|
-
e.call(
|
|
296
|
+
e.call(i.prototype);
|
|
302
297
|
}
|
|
303
298
|
} else {
|
|
304
299
|
try {
|
|
@@ -319,9 +314,9 @@ function Cr() {
|
|
|
319
314
|
if (l !== 1 || f !== 1)
|
|
320
315
|
do
|
|
321
316
|
if (l--, f--, f < 0 || a[l] !== h[f]) {
|
|
322
|
-
var
|
|
317
|
+
var _ = `
|
|
323
318
|
` + a[l].replace(" at new ", " at ");
|
|
324
|
-
return e.displayName &&
|
|
319
|
+
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, _), _;
|
|
325
320
|
}
|
|
326
321
|
while (l >= 1 && f >= 0);
|
|
327
322
|
break;
|
|
@@ -355,7 +350,7 @@ function Cr() {
|
|
|
355
350
|
}
|
|
356
351
|
if (typeof e == "object")
|
|
357
352
|
switch (e.$$typeof) {
|
|
358
|
-
case
|
|
353
|
+
case o:
|
|
359
354
|
return Ne(e.render);
|
|
360
355
|
case w:
|
|
361
356
|
return U(e.type, r, t);
|
|
@@ -380,19 +375,19 @@ function Cr() {
|
|
|
380
375
|
function Be(e, r, t, n, u) {
|
|
381
376
|
{
|
|
382
377
|
var s = Function.call.bind(D);
|
|
383
|
-
for (var
|
|
384
|
-
if (s(e,
|
|
378
|
+
for (var i in e)
|
|
379
|
+
if (s(e, i)) {
|
|
385
380
|
var a = void 0;
|
|
386
381
|
try {
|
|
387
|
-
if (typeof e[
|
|
388
|
-
var h = Error((n || "React class") + ": " + t + " type `" +
|
|
382
|
+
if (typeof e[i] != "function") {
|
|
383
|
+
var h = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
389
384
|
throw h.name = "Invariant Violation", h;
|
|
390
385
|
}
|
|
391
|
-
a = e[
|
|
386
|
+
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
392
387
|
} catch (l) {
|
|
393
388
|
a = l;
|
|
394
389
|
}
|
|
395
|
-
a && !(a instanceof Error) && (V(u), g("%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,
|
|
390
|
+
a && !(a instanceof Error) && (V(u), g("%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), g("Failed %s type: %s", t, a.message), V(null));
|
|
396
391
|
}
|
|
397
392
|
}
|
|
398
393
|
}
|
|
@@ -467,15 +462,15 @@ function Cr() {
|
|
|
467
462
|
});
|
|
468
463
|
}
|
|
469
464
|
}
|
|
470
|
-
var tr = function(e, r, t, n, u, s,
|
|
465
|
+
var tr = function(e, r, t, n, u, s, i) {
|
|
471
466
|
var a = {
|
|
472
467
|
// This tag allows us to uniquely identify this as a React Element
|
|
473
|
-
$$typeof:
|
|
468
|
+
$$typeof: d,
|
|
474
469
|
// Built-in properties that belong on the element
|
|
475
470
|
type: e,
|
|
476
471
|
key: r,
|
|
477
472
|
ref: t,
|
|
478
|
-
props:
|
|
473
|
+
props: i,
|
|
479
474
|
// Record the component responsible for creating this element.
|
|
480
475
|
_owner: s
|
|
481
476
|
};
|
|
@@ -498,20 +493,20 @@ function Cr() {
|
|
|
498
493
|
};
|
|
499
494
|
function nr(e, r, t, n, u) {
|
|
500
495
|
{
|
|
501
|
-
var s,
|
|
496
|
+
var s, i = {}, a = null, h = null;
|
|
502
497
|
t !== void 0 && (ve(t), a = "" + t), He(r) && (ve(r.key), a = "" + r.key), Xe(r) && (h = r.ref, Ze(r, u));
|
|
503
498
|
for (s in r)
|
|
504
|
-
D.call(r, s) && !Qe.hasOwnProperty(s) && (
|
|
499
|
+
D.call(r, s) && !Qe.hasOwnProperty(s) && (i[s] = r[s]);
|
|
505
500
|
if (e && e.defaultProps) {
|
|
506
501
|
var l = e.defaultProps;
|
|
507
502
|
for (s in l)
|
|
508
|
-
|
|
503
|
+
i[s] === void 0 && (i[s] = l[s]);
|
|
509
504
|
}
|
|
510
505
|
if (a || h) {
|
|
511
506
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
512
|
-
a && er(
|
|
507
|
+
a && er(i, f), h && rr(i, f);
|
|
513
508
|
}
|
|
514
|
-
return tr(e, a, h, u, n, pe.current,
|
|
509
|
+
return tr(e, a, h, u, n, pe.current, i);
|
|
515
510
|
}
|
|
516
511
|
}
|
|
517
512
|
var K = j.ReactCurrentOwner, he = j.ReactDebugCurrentFrame;
|
|
@@ -525,7 +520,7 @@ function Cr() {
|
|
|
525
520
|
var z;
|
|
526
521
|
z = !1;
|
|
527
522
|
function Q(e) {
|
|
528
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
523
|
+
return typeof e == "object" && e !== null && e.$$typeof === d;
|
|
529
524
|
}
|
|
530
525
|
function me() {
|
|
531
526
|
{
|
|
@@ -543,7 +538,7 @@ Check the render method of \`` + e + "`.";
|
|
|
543
538
|
return "";
|
|
544
539
|
}
|
|
545
540
|
var be = {};
|
|
546
|
-
function
|
|
541
|
+
function ir(e) {
|
|
547
542
|
{
|
|
548
543
|
var r = me();
|
|
549
544
|
if (!r) {
|
|
@@ -560,7 +555,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
560
555
|
if (!e._store || e._store.validated || e.key != null)
|
|
561
556
|
return;
|
|
562
557
|
e._store.validated = !0;
|
|
563
|
-
var t =
|
|
558
|
+
var t = ir(r);
|
|
564
559
|
if (be[t])
|
|
565
560
|
return;
|
|
566
561
|
be[t] = !0;
|
|
@@ -582,12 +577,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
582
577
|
else if (e) {
|
|
583
578
|
var u = Ae(e);
|
|
584
579
|
if (typeof u == "function" && u !== e.entries)
|
|
585
|
-
for (var s = u.call(e),
|
|
586
|
-
Q(
|
|
580
|
+
for (var s = u.call(e), i; !(i = s.next()).done; )
|
|
581
|
+
Q(i.value) && Ee(i.value, r);
|
|
587
582
|
}
|
|
588
583
|
}
|
|
589
584
|
}
|
|
590
|
-
function
|
|
585
|
+
function or(e) {
|
|
591
586
|
{
|
|
592
587
|
var r = e.type;
|
|
593
588
|
if (r == null || typeof r == "string")
|
|
@@ -595,7 +590,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
595
590
|
var t;
|
|
596
591
|
if (typeof r == "function")
|
|
597
592
|
t = r.propTypes;
|
|
598
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
593
|
+
else if (typeof r == "object" && (r.$$typeof === o || // Note: Memo only checks outer props here.
|
|
599
594
|
// Inner props are checked in the reconciler.
|
|
600
595
|
r.$$typeof === w))
|
|
601
596
|
t = r.propTypes;
|
|
@@ -627,30 +622,30 @@ Check the top-level render call using <` + t + ">.");
|
|
|
627
622
|
var Re = {};
|
|
628
623
|
function Ce(e, r, t, n, u, s) {
|
|
629
624
|
{
|
|
630
|
-
var
|
|
631
|
-
if (!
|
|
625
|
+
var i = Le(e);
|
|
626
|
+
if (!i) {
|
|
632
627
|
var a = "";
|
|
633
628
|
(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.");
|
|
634
629
|
var h = ar();
|
|
635
630
|
h ? a += h : a += me();
|
|
636
631
|
var l;
|
|
637
|
-
e === null ? l = "null" : G(e) ? l = "array" : e !== void 0 && e.$$typeof ===
|
|
632
|
+
e === null ? l = "null" : G(e) ? l = "array" : e !== void 0 && e.$$typeof === d ? (l = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, g("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);
|
|
638
633
|
}
|
|
639
634
|
var f = nr(e, r, t, u, s);
|
|
640
635
|
if (f == null)
|
|
641
636
|
return f;
|
|
642
|
-
if (
|
|
643
|
-
var
|
|
644
|
-
if (
|
|
637
|
+
if (i) {
|
|
638
|
+
var _ = r.children;
|
|
639
|
+
if (_ !== void 0)
|
|
645
640
|
if (n)
|
|
646
|
-
if (G(
|
|
647
|
-
for (var A = 0; A <
|
|
648
|
-
_e(
|
|
649
|
-
Object.freeze && Object.freeze(
|
|
641
|
+
if (G(_)) {
|
|
642
|
+
for (var A = 0; A < _.length; A++)
|
|
643
|
+
_e(_[A], e);
|
|
644
|
+
Object.freeze && Object.freeze(_);
|
|
650
645
|
} else
|
|
651
646
|
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
652
647
|
else
|
|
653
|
-
_e(
|
|
648
|
+
_e(_, e);
|
|
654
649
|
}
|
|
655
650
|
if (D.call(r, "key")) {
|
|
656
651
|
var S = O(e), m = Object.keys(r).filter(function(vr) {
|
|
@@ -666,7 +661,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
666
661
|
<%s key={someKey} {...props} />`, X, S, dr, S), Re[S + X] = !0;
|
|
667
662
|
}
|
|
668
663
|
}
|
|
669
|
-
return e === b ? ur(f) :
|
|
664
|
+
return e === b ? ur(f) : or(f), f;
|
|
670
665
|
}
|
|
671
666
|
}
|
|
672
667
|
function sr(e, r, t) {
|
|
@@ -686,34 +681,34 @@ function wr() {
|
|
|
686
681
|
var xe = wr();
|
|
687
682
|
function Tr({
|
|
688
683
|
baseURL: c,
|
|
689
|
-
getToken:
|
|
690
|
-
timeoutMs:
|
|
684
|
+
getToken: d,
|
|
685
|
+
timeoutMs: R = 15e3,
|
|
691
686
|
axiosInstance: b,
|
|
692
687
|
currency: E,
|
|
693
688
|
lng: T,
|
|
694
|
-
onError:
|
|
689
|
+
onError: v
|
|
695
690
|
} = {}) {
|
|
696
691
|
const p = b ?? br.create({
|
|
697
692
|
baseURL: c,
|
|
698
|
-
timeout:
|
|
693
|
+
timeout: R,
|
|
699
694
|
headers: { "Content-Type": "application/json" }
|
|
700
695
|
});
|
|
701
|
-
return p.interceptors.request.use(async (
|
|
702
|
-
if (
|
|
703
|
-
const C = await
|
|
704
|
-
C && (
|
|
705
|
-
}
|
|
706
|
-
return
|
|
707
|
-
}), p.interceptors.request.use((
|
|
708
|
-
|
|
696
|
+
return p.interceptors.request.use(async (o) => {
|
|
697
|
+
if (d) {
|
|
698
|
+
const C = await d();
|
|
699
|
+
C && (o.headers = o.headers || {}, o.headers.Authorization = `Bearer ${C}`);
|
|
700
|
+
}
|
|
701
|
+
return o;
|
|
702
|
+
}), p.interceptors.request.use((o) => {
|
|
703
|
+
o.headers.Currency = E, o.headers["currency-code"] = E, o.headers.lang = T;
|
|
709
704
|
}), p.interceptors.response.use(
|
|
710
|
-
(
|
|
711
|
-
(
|
|
705
|
+
(o) => o,
|
|
706
|
+
(o) => v ? v(o, { instance: p }) : Promise.reject(o)
|
|
712
707
|
), p;
|
|
713
708
|
}
|
|
714
|
-
function jr({ children: c, ...
|
|
715
|
-
console.log(
|
|
716
|
-
const
|
|
709
|
+
function jr({ children: c, ...d }) {
|
|
710
|
+
console.log(d);
|
|
711
|
+
const R = we(() => Tr(d), [d]), E = we(
|
|
717
712
|
() => new yr({
|
|
718
713
|
defaultOptions: {
|
|
719
714
|
queries: {
|
|
@@ -724,7 +719,7 @@ function jr({ children: c, ...v }) {
|
|
|
724
719
|
}),
|
|
725
720
|
[]
|
|
726
721
|
);
|
|
727
|
-
return /* @__PURE__ */ xe.jsx(gr, { client: E, children: /* @__PURE__ */ xe.jsx(je.Provider, { value: { client:
|
|
722
|
+
return /* @__PURE__ */ xe.jsx(gr, { client: E, children: /* @__PURE__ */ xe.jsx(je.Provider, { value: { client: R }, children: c }) });
|
|
728
723
|
}
|
|
729
724
|
export {
|
|
730
725
|
je as ApiCtx,
|