@qobo/banner 1.0.1 → 1.0.3
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 +67 -64
- package/package.json +1 -1
- package/src/QoboBanner.jsx +6 -1
package/dist/index.cjs
CHANGED
|
@@ -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 Se;function cr(){if(Se)return I;Se=1;var j=Y,
|
|
9
|
+
*/var Se;function cr(){if(Se)return I;Se=1;var j=Y,_=Symbol.for("react.element"),k=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,F=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0};function m(y,f,E){var c,b={},w=null,W=null;E!==void 0&&(w=""+E),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(W=f.ref);for(c in f)g.call(f,c)&&!T.hasOwnProperty(c)&&(b[c]=f[c]);if(y&&y.defaultProps)for(c in f=y.defaultProps,f)b[c]===void 0&&(b[c]=f[c]);return{$$typeof:_,type:y,key:w,ref:W,props:b,_owner:F.current}}return I.Fragment=k,I.jsx=m,I.jsxs=m,I}var $={};/**
|
|
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 Pe;function dr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){var j=Y,
|
|
18
|
-
`+N+e}}var K=!1,V;{var Ve=typeof WeakMap=="function"?WeakMap:Map;V=new Ve}function fe(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var
|
|
17
|
+
*/var Pe;function dr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){var j=Y,_=Symbol.for("react.element"),k=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),Z=Symbol.iterator,xe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var r=Z&&e[Z]||e[xe];return typeof r=="function"?r:null}var O=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=O.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var s=t.map(function(o){return String(o)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var ke=!1,Fe=!1,Ae=!1,De=!1,Ie=!1,ee;ee=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===T||Ie||e===F||e===E||e===c||De||e===W||ke||Fe||Ae||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===b||e.$$typeof===m||e.$$typeof===y||e.$$typeof===f||e.$$typeof===ee||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function re(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&d("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 g:return"Fragment";case k:return"Portal";case T:return"Profiler";case F:return"StrictMode";case E:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return re(r)+".Consumer";case m:var t=e;return re(t._context)+".Provider";case f:return Ye(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:R(e.type)||"Memo";case w:{var i=e,s=i._payload,o=i._init;try{return R(o(s))}catch{return null}}}return null}var S=Object.assign,A=0,te,ne,ae,oe,ie,se,ue;function le(){}le.__reactDisabledLog=!0;function We(){{if(A===0){te=console.log,ne=console.info,ae=console.warn,oe=console.error,ie=console.group,se=console.groupCollapsed,ue=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})}A++}}function Be(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:te}),info:S({},e,{value:ne}),warn:S({},e,{value:ae}),error:S({},e,{value:oe}),group:S({},e,{value:ie}),groupCollapsed:S({},e,{value:se}),groupEnd:S({},e,{value:ue})})}A<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=O.ReactCurrentDispatcher,N;function B(e,r,t){{if(N===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
|
|
18
|
+
`+N+e}}var K=!1,V;{var Ve=typeof WeakMap=="function"?WeakMap:Map;V=new Ve}function fe(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=U.current,U.current=null,We();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(p){n=p}Reflect.construct(e,[],o)}else{try{o.call()}catch(p){n=p}e.call(o.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
|
|
19
19
|
`),v=n.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`+a[
|
|
20
|
+
`),u=a.length-1,l=v.length-1;u>=1&&l>=0&&a[u]!==v[l];)l--;for(;u>=1&&l>=0;u--,l--)if(a[u]!==v[l]){if(u!==1||l!==1)do if(u--,l--,l<0||a[u]!==v[l]){var h=`
|
|
21
|
+
`+a[u].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,h),h}while(u>=1&&l>=0);break}}}finally{K=!1,U.current=s,Be(),Error.prepareStackTrace=i}var C=e?e.displayName||e.name:"",P=C?B(C):"";return typeof e=="function"&&V.set(e,P),P}function Le(e,r,t){return fe(e,!1)}function Me(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function L(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,Me(e));if(typeof e=="string")return B(e);switch(e){case E:return B("Suspense");case c:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Le(e.render);case b:return L(e.type,r,t);case w:{var n=e,i=n._payload,s=n._init;try{return L(s(i),r,t)}catch{}}}return""}var D=Object.prototype.hasOwnProperty,ce={},de=O.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Ue(e,r,t,n,i){{var s=Function.call.bind(D);for(var o in e)if(s(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var v=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){a=u}a&&!(a instanceof Error)&&(M(i),d("%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,o,typeof a),M(null)),a instanceof Error&&!(a.message in ce)&&(ce[a.message]=!0,M(i),d("Failed %s type: %s",t,a.message),M(null))}}}var Ne=Array.isArray;function q(e){return Ne(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 ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(qe(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),ve(e)}var be=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},he,ge;function ze(e){if(D.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(D.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){typeof e.ref=="string"&&be.current}function Xe(e,r){{var t=function(){he||(he=!0,d("%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 He(e,r){{var t=function(){ge||(ge=!0,d("%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 Ze=function(e,r,t,n,i,s,o){var a={$$typeof:_,type:e,key:r,ref:t,props:o,_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:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function er(e,r,t,n,i){{var s,o={},a=null,v=null;t!==void 0&&(pe(t),a=""+t),Ge(r)&&(pe(r.key),a=""+r.key),ze(r)&&(v=r.ref,Qe(r,i));for(s in r)D.call(r,s)&&!Je.hasOwnProperty(s)&&(o[s]=r[s]);if(e&&e.defaultProps){var u=e.defaultProps;for(s in u)o[s]===void 0&&(o[s]=u[s])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Xe(o,l),v&&He(o,l)}return Ze(e,a,v,i,n,be.current,o)}}var J=O.ReactCurrentOwner,ye=O.ReactDebugCurrentFrame;function x(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var z;z=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}function Ee(){{if(J.current){var e=R(J.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function rr(e){return""}var _e={};function tr(e){{var r=Ee();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 me(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),x(e),d('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),x(null)}}function Re(e,r){{if(typeof e!="object")return;if(q(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 me(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),x(e),d('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),x(null)}}function Re(e,r){{if(typeof e!="object")return;if(q(e))for(var t=0;t<e.length;t++){var n=e[t];G(n)&&me(n,r)}else if(G(e))e._store&&(e._store.validated=!0);else if(e){var i=Ce(e);if(typeof i=="function"&&i!==e.entries)for(var s=i.call(e),o;!(o=s.next()).done;)G(o.value)&&me(o.value,r)}}}function nr(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===f||r.$$typeof===b))t=r.propTypes;else return;if(t){var n=R(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!z){z=!0;var i=R(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){x(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),x(null);break}}e.ref!==null&&(x(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),x(null))}}var Te={};function we(e,r,t,n,i,s){{var o=$e(e);if(!o){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 v=rr();v?a+=v:a+=Ee();var u;e===null?u="null":q(e)?u="array":e!==void 0&&e.$$typeof===_?(u="<"+(R(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var l=er(e,r,t,i,s);if(l==null)return l;if(o){var h=r.children;if(h!==void 0)if(n)if(q(h)){for(var C=0;C<h.length;C++)Re(h[C],e);Object.freeze&&Object.freeze(h)}else d("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 Re(h,e)}if(D.call(r,"key")){var P=R(e),p=Object.keys(r).filter(function(fr){return fr!=="key"}),Q=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[P+Q]){var lr=p.length>0?"{"+p.join(": ..., ")+": ...}":"{}";d(`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} />`,Q,P,lr,P),Te[P+Q]=!0}}return e===g?ar(l):nr(l),l}}function or(e,r,t){return we(e,r,t,!0)}function ir(e,r,t){return we(e,r,t,!1)}var
|
|
30
|
+
<%s key={someKey} {...props} />`,Q,P,lr,P),Te[P+Q]=!0}}return e===g?ar(l):nr(l),l}}function or(e,r,t){return we(e,r,t,!0)}function ir(e,r,t){return we(e,r,t,!1)}var sr=ir,ur=or;$.Fragment=g,$.jsx=sr,$.jsxs=ur}()),$}process.env.NODE_ENV==="production"?H.exports=cr():H.exports=dr();var X=H.exports;function Oe(){const[j,_]=Y.useState(!0),[k,g]=Y.useState(!0);return Y.useEffect(()=>{(async()=>{var T;try{const y="https://api.qobo.dev";console.warn("[QoboBanner] VITE_API_KEY not set, defaulting to visible"),g(!1);return}catch(m){console.warn("[QoboBanner] Error fetching banner visibility, defaulting to visible:",m.message),_(!0)}finally{g(!1)}})()},[]),!j&&!k?null:X.jsxs("div",{className:"w-full bg-gradient-to-r from-cyan-400 to-blue-500 text-white py-2 px-4 text-center text-sm font-medium shadow-md",style:{position:"sticky",top:0,zIndex:9999,backgroundColor:"#06B6D4",color:"#FFFFFF",padding:"0.5rem 1rem",textAlign:"center",fontSize:"0.875rem",fontWeight:"500",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",transition:"all 0.3s ease"},children:["Made with"," ",X.jsx("span",{style:{color:"#FF1744",display:"inline-block",margin:"0 0.25rem"},children:"❤️"})," ","by"," ",X.jsx("a",{href:"https://qobo.dev",target:"_blank",rel:"noopener noreferrer",style:{color:"#FFFFFF",textDecoration:"underline",fontWeight:"600",cursor:"pointer"},className:"hover:text-cyan-100 transition-colors",children:"qobo.dev"})]})}exports.QoboBanner=Oe;exports.default=Oe;
|
package/dist/index.js
CHANGED
|
@@ -13,15 +13,15 @@ var Pe;
|
|
|
13
13
|
function dr() {
|
|
14
14
|
if (Pe) return I;
|
|
15
15
|
Pe = 1;
|
|
16
|
-
var j = Se,
|
|
17
|
-
function
|
|
18
|
-
var c,
|
|
19
|
-
|
|
20
|
-
for (c in f)
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
16
|
+
var j = Se, _ = Symbol.for("react.element"), k = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, F = j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function m(y, f, E) {
|
|
18
|
+
var c, b = {}, w = null, Y = null;
|
|
19
|
+
E !== void 0 && (w = "" + E), f.key !== void 0 && (w = "" + f.key), f.ref !== void 0 && (Y = f.ref);
|
|
20
|
+
for (c in f) g.call(f, c) && !T.hasOwnProperty(c) && (b[c] = f[c]);
|
|
21
|
+
if (y && y.defaultProps) for (c in f = y.defaultProps, f) b[c] === void 0 && (b[c] = f[c]);
|
|
22
|
+
return { $$typeof: _, type: y, key: w, ref: Y, props: b, _owner: F.current };
|
|
23
23
|
}
|
|
24
|
-
return I.Fragment =
|
|
24
|
+
return I.Fragment = k, I.jsx = m, I.jsxs = m, I;
|
|
25
25
|
}
|
|
26
26
|
var $ = {};
|
|
27
27
|
/**
|
|
@@ -36,7 +36,7 @@ var $ = {};
|
|
|
36
36
|
var Oe;
|
|
37
37
|
function vr() {
|
|
38
38
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var j = Se,
|
|
39
|
+
var j = Se, _ = Symbol.for("react.element"), k = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), H = Symbol.iterator, xe = "@@iterator";
|
|
40
40
|
function Ce(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
@@ -61,10 +61,10 @@ function vr() {
|
|
|
61
61
|
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
64
|
+
var ke = !1, Fe = !1, Ae = !1, De = !1, Ie = !1, Z;
|
|
65
65
|
Z = Symbol.for("react.module.reference");
|
|
66
66
|
function $e(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === g || e === T || Ie || e === F || e === E || e === c || De || e === Y || ke || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === b || e.$$typeof === m || e.$$typeof === y || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
@@ -88,30 +88,30 @@ function vr() {
|
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case g:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case k:
|
|
94
94
|
return "Portal";
|
|
95
95
|
case T:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case F:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case E:
|
|
100
100
|
return "Suspense";
|
|
101
101
|
case c:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case y:
|
|
107
107
|
var r = e;
|
|
108
108
|
return ee(r) + ".Consumer";
|
|
109
|
-
case
|
|
109
|
+
case m:
|
|
110
110
|
var t = e;
|
|
111
111
|
return ee(t._context) + ".Provider";
|
|
112
112
|
case f:
|
|
113
113
|
return Ye(e, e.render, "ForwardRef");
|
|
114
|
-
case
|
|
114
|
+
case b:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
116
|
return n !== null ? n : R(e.type) || "Memo";
|
|
117
117
|
case w: {
|
|
@@ -152,7 +152,7 @@ function vr() {
|
|
|
152
152
|
A++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Be() {
|
|
156
156
|
{
|
|
157
157
|
if (A--, A === 0) {
|
|
158
158
|
var e = {
|
|
@@ -201,16 +201,16 @@ function vr() {
|
|
|
201
201
|
` + U + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var N = !1,
|
|
204
|
+
var N = !1, B;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
B = new Ve();
|
|
208
208
|
}
|
|
209
209
|
function le(e, r) {
|
|
210
210
|
if (!e || N)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var t =
|
|
213
|
+
var t = B.get(e);
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
@@ -263,19 +263,19 @@ function vr() {
|
|
|
263
263
|
if (u !== 1 || l !== 1)
|
|
264
264
|
do
|
|
265
265
|
if (u--, l--, l < 0 || a[u] !== v[l]) {
|
|
266
|
-
var
|
|
266
|
+
var h = `
|
|
267
267
|
` + a[u].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName &&
|
|
268
|
+
return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, h), h;
|
|
269
269
|
}
|
|
270
270
|
while (u >= 1 && l >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
N = !1, M.current = s,
|
|
275
|
+
N = !1, M.current = s, Be(), Error.prepareStackTrace = i;
|
|
276
276
|
}
|
|
277
277
|
var C = e ? e.displayName || e.name : "", O = C ? W(C) : "";
|
|
278
|
-
return typeof e == "function" &&
|
|
278
|
+
return typeof e == "function" && B.set(e, O), O;
|
|
279
279
|
}
|
|
280
280
|
function Le(e, r, t) {
|
|
281
281
|
return le(e, !1);
|
|
@@ -284,7 +284,7 @@ function vr() {
|
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function V(e, r, t) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
@@ -292,7 +292,7 @@ function vr() {
|
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return W(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
295
|
+
case E:
|
|
296
296
|
return W("Suspense");
|
|
297
297
|
case c:
|
|
298
298
|
return W("SuspenseList");
|
|
@@ -301,12 +301,12 @@ function vr() {
|
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case f:
|
|
303
303
|
return Le(e.render);
|
|
304
|
-
case
|
|
305
|
-
return
|
|
304
|
+
case b:
|
|
305
|
+
return V(e.type, r, t);
|
|
306
306
|
case w: {
|
|
307
307
|
var n = e, i = n._payload, s = n._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return V(s(i), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -316,7 +316,7 @@ function vr() {
|
|
|
316
316
|
var D = Object.prototype.hasOwnProperty, fe = {}, ce = S.ReactDebugCurrentFrame;
|
|
317
317
|
function L(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner, t =
|
|
319
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
320
320
|
ce.setExtraStackFrame(t);
|
|
321
321
|
} else
|
|
322
322
|
ce.setExtraStackFrame(null);
|
|
@@ -370,7 +370,7 @@ function vr() {
|
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
372
|
}, be, he;
|
|
373
|
-
function
|
|
373
|
+
function ze(e) {
|
|
374
374
|
if (D.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (r && r.isReactWarning)
|
|
@@ -378,7 +378,7 @@ function vr() {
|
|
|
378
378
|
}
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Ge(e) {
|
|
382
382
|
if (D.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
@@ -414,7 +414,7 @@ function vr() {
|
|
|
414
414
|
var Ze = function(e, r, t, n, i, s, o) {
|
|
415
415
|
var a = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
417
|
+
$$typeof: _,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
@@ -443,7 +443,7 @@ function vr() {
|
|
|
443
443
|
function er(e, r, t, n, i) {
|
|
444
444
|
{
|
|
445
445
|
var s, o = {}, a = null, v = null;
|
|
446
|
-
t !== void 0 && (ve(t), a = "" + t),
|
|
446
|
+
t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), ze(r) && (v = r.ref, Xe(r, i));
|
|
447
447
|
for (s in r)
|
|
448
448
|
D.call(r, s) && !Je.hasOwnProperty(s) && (o[s] = r[s]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
@@ -461,15 +461,15 @@ function vr() {
|
|
|
461
461
|
var q = S.ReactCurrentOwner, ge = S.ReactDebugCurrentFrame;
|
|
462
462
|
function x(e) {
|
|
463
463
|
if (e) {
|
|
464
|
-
var r = e._owner, t =
|
|
464
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
465
465
|
ge.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
467
|
ge.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
469
|
var J;
|
|
470
470
|
J = !1;
|
|
471
|
-
function
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
471
|
+
function z(e) {
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
473
473
|
}
|
|
474
474
|
function ye() {
|
|
475
475
|
{
|
|
@@ -519,15 +519,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
519
519
|
if (K(e))
|
|
520
520
|
for (var t = 0; t < e.length; t++) {
|
|
521
521
|
var n = e[t];
|
|
522
|
-
|
|
522
|
+
z(n) && _e(n, r);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (z(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
527
|
var i = Ce(e);
|
|
528
528
|
if (typeof i == "function" && i !== e.entries)
|
|
529
529
|
for (var s = i.call(e), o; !(o = s.next()).done; )
|
|
530
|
-
|
|
530
|
+
z(o.value) && _e(o.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -541,7 +541,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
541
541
|
t = r.propTypes;
|
|
542
542
|
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
544
|
+
r.$$typeof === b))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
@@ -578,39 +578,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
578
578
|
var v = rr();
|
|
579
579
|
v ? a += v : a += ye();
|
|
580
580
|
var u;
|
|
581
|
-
e === null ? u = "null" : K(e) ? u = "array" : e !== void 0 && e.$$typeof ===
|
|
581
|
+
e === null ? u = "null" : K(e) ? u = "array" : e !== void 0 && e.$$typeof === _ ? (u = "<" + (R(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, a);
|
|
582
582
|
}
|
|
583
583
|
var l = er(e, r, t, i, s);
|
|
584
584
|
if (l == null)
|
|
585
585
|
return l;
|
|
586
586
|
if (o) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
587
|
+
var h = r.children;
|
|
588
|
+
if (h !== void 0)
|
|
589
589
|
if (n)
|
|
590
|
-
if (K(
|
|
591
|
-
for (var C = 0; C <
|
|
592
|
-
me(
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
590
|
+
if (K(h)) {
|
|
591
|
+
for (var C = 0; C < h.length; C++)
|
|
592
|
+
me(h[C], e);
|
|
593
|
+
Object.freeze && Object.freeze(h);
|
|
594
594
|
} else
|
|
595
595
|
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
me(
|
|
597
|
+
me(h, e);
|
|
598
598
|
}
|
|
599
599
|
if (D.call(r, "key")) {
|
|
600
600
|
var O = R(e), p = Object.keys(r).filter(function(fr) {
|
|
601
601
|
return fr !== "key";
|
|
602
|
-
}),
|
|
603
|
-
if (!Re[O +
|
|
602
|
+
}), G = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Re[O + G]) {
|
|
604
604
|
var lr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
|
|
605
605
|
d(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
610
|
+
<%s key={someKey} {...props} />`, G, O, lr, O), Re[O + G] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === g ? ar(l) : nr(l), l;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function or(e, r, t) {
|
|
@@ -620,31 +620,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
return Te(e, r, t, !1);
|
|
621
621
|
}
|
|
622
622
|
var sr = ir, ur = or;
|
|
623
|
-
$.Fragment =
|
|
623
|
+
$.Fragment = g, $.jsx = sr, $.jsxs = ur;
|
|
624
624
|
}()), $;
|
|
625
625
|
}
|
|
626
626
|
process.env.NODE_ENV === "production" ? Q.exports = dr() : Q.exports = vr();
|
|
627
627
|
var X = Q.exports;
|
|
628
628
|
function br() {
|
|
629
|
-
const [j,
|
|
629
|
+
const [j, _] = we(!0), [k, g] = we(!0);
|
|
630
630
|
return cr(() => {
|
|
631
631
|
(async () => {
|
|
632
632
|
var T;
|
|
633
633
|
try {
|
|
634
|
-
const
|
|
635
|
-
console.warn("[QoboBanner] VITE_API_KEY not set, defaulting to visible"),
|
|
634
|
+
const y = "https://api.qobo.dev";
|
|
635
|
+
console.warn("[QoboBanner] VITE_API_KEY not set, defaulting to visible"), g(!1);
|
|
636
636
|
return;
|
|
637
|
-
} catch (
|
|
638
|
-
console.warn("[QoboBanner] Error fetching banner visibility, defaulting to visible:",
|
|
637
|
+
} catch (m) {
|
|
638
|
+
console.warn("[QoboBanner] Error fetching banner visibility, defaulting to visible:", m.message), _(!0);
|
|
639
639
|
} finally {
|
|
640
|
-
|
|
640
|
+
g(!1);
|
|
641
641
|
}
|
|
642
642
|
})();
|
|
643
|
-
}, []), !j && !
|
|
643
|
+
}, []), !j && !k ? null : /* @__PURE__ */ X.jsxs(
|
|
644
644
|
"div",
|
|
645
645
|
{
|
|
646
646
|
className: "w-full bg-gradient-to-r from-cyan-400 to-blue-500 text-white py-2 px-4 text-center text-sm font-medium shadow-md",
|
|
647
647
|
style: {
|
|
648
|
+
position: "sticky",
|
|
649
|
+
top: 0,
|
|
650
|
+
zIndex: 9999,
|
|
648
651
|
backgroundColor: "#06B6D4",
|
|
649
652
|
color: "#FFFFFF",
|
|
650
653
|
padding: "0.5rem 1rem",
|
package/package.json
CHANGED
package/src/QoboBanner.jsx
CHANGED
|
@@ -37,6 +37,7 @@ export function QoboBanner() {
|
|
|
37
37
|
'Content-Type': 'application/json',
|
|
38
38
|
'X-API-Key': API_KEY,
|
|
39
39
|
},
|
|
40
|
+
cache: 'no-store',
|
|
40
41
|
});
|
|
41
42
|
|
|
42
43
|
if (!response.ok) {
|
|
@@ -46,7 +47,8 @@ export function QoboBanner() {
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
const data = await response.json();
|
|
49
|
-
const
|
|
50
|
+
const showBannerValue = data.showBanner ?? data.data?.showBanner ?? 'true';
|
|
51
|
+
const showBanner = showBannerValue === 'true';
|
|
50
52
|
setIsVisible(showBanner);
|
|
51
53
|
console.log(`[QoboBanner] Banner visibility: ${showBanner}`);
|
|
52
54
|
} catch (error) {
|
|
@@ -69,6 +71,9 @@ export function QoboBanner() {
|
|
|
69
71
|
<div
|
|
70
72
|
className="w-full bg-gradient-to-r from-cyan-400 to-blue-500 text-white py-2 px-4 text-center text-sm font-medium shadow-md"
|
|
71
73
|
style={{
|
|
74
|
+
position: 'sticky',
|
|
75
|
+
top: 0,
|
|
76
|
+
zIndex: 9999,
|
|
72
77
|
backgroundColor: '#06B6D4',
|
|
73
78
|
color: '#FFFFFF',
|
|
74
79
|
padding: '0.5rem 1rem',
|