You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

outsideclick-react

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outsideclick-react - npm Package Compare versions

Comparing version
0.1.0
to
0.2.0
+1
dist/vite-env.d.ts
/// <reference types="vite/client" />
MIT License
Copyright (c) 2023 Rashed Iqbal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+9
-2

@@ -1,3 +0,10 @@

import { useOutsideClick, OutsideClick } from './ReactOutSideClick';
export { useOutsideClick, OutsideClick };
import React from 'react';
declare type OutSideClickType = {
onOutsideClick?: (v?: HTMLElement) => void;
ignoreElement?: IgnoreElementType;
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
declare type IgnoreElementType = (Element | string | HTMLElement)[] | string | HTMLCollectionOf<Element> | NodeList | Element | HTMLElement | Node;
export declare const OutsideClick: ({ onOutsideClick, ignoreElement, ...others }: OutSideClickType) => JSX.Element;
export declare const useOutsideClick: (outsideClick?: ((v: HTMLElement) => void) | undefined, ignoreElement?: IgnoreElementType) => React.MutableRefObject<any>;
export default OutsideClick;
//# sourceMappingURL=index.d.ts.map
+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,CAAA"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,aAAK,gBAAgB,GAAG;IACpB,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;IAC1C,aAAa,CAAC,EAAE,iBAAiB,CAAA;CACpC,GAAG,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,CAAA;AAEjF,aAAK,iBAAiB,GAChB,CAAC,OAAO,GAAG,MAAM,GAAG,WAAW,CAAC,EAAE,GAClC,MAAM,GACN,gBAAgB,CAAC,OAAO,CAAC,GACzB,QAAQ,GACR,OAAO,GACP,WAAW,GACX,IAAI,CAAA;AAEV,eAAO,MAAM,YAAY,iDAAkD,gBAAgB,gBAyB1F,CAAA;AAED,eAAO,MAAM,eAAe,uBACL,WAAW,KAAK,IAAI,+BACvB,iBAAiB,gCAoBpC,CAAA;AAuCD,eAAe,YAAY,CAAA"}

@@ -1,3 +0,3 @@

import Te, { useRef as Oe, useEffect as we } from "react";
var Ce = { exports: {} }, F = {};
import Oe, { useRef as Ce, useEffect as we } from "react";
var Se = { exports: {} }, A = {};
/**

@@ -12,21 +12,21 @@ * @license React

*/
var ye;
function sr() {
if (ye)
return F;
ye = 1;
var m = Te, v = Symbol.for("react.element"), E = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, w = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
function j(R, l, C) {
var p, b = {}, T = null, $ = null;
C !== void 0 && (T = "" + C), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && ($ = l.ref);
for (p in l)
h.call(l, p) && !I.hasOwnProperty(p) && (b[p] = l[p]);
if (R && R.defaultProps)
for (p in l = R.defaultProps, l)
b[p] === void 0 && (b[p] = l[p]);
return { $$typeof: v, type: R, key: T, ref: $, props: b, _owner: w.current };
var ge;
function fr() {
if (ge)
return A;
ge = 1;
var u = Oe, v = Symbol.for("react.element"), f = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, _ = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
function k(O, p, S) {
var b, R = {}, C = null, L = null;
S !== void 0 && (C = "" + S), p.key !== void 0 && (C = "" + p.key), p.ref !== void 0 && (L = p.ref);
for (b in p)
d.call(p, b) && !T.hasOwnProperty(b) && (R[b] = p[b]);
if (O && O.defaultProps)
for (b in p = O.defaultProps, p)
R[b] === void 0 && (R[b] = p[b]);
return { $$typeof: v, type: O, key: C, ref: L, props: R, _owner: _.current };
}
return F.Fragment = E, F.jsx = j, F.jsxs = j, F;
return A.Fragment = f, A.jsx = k, A.jsxs = k, A;
}
var A = {};
var I = {};
/**

@@ -41,34 +41,34 @@ * @license React

*/
var Re;
function fr() {
return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() {
var m = Te, v = Symbol.for("react.element"), E = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), R = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), H = Symbol.iterator, Pe = "@@iterator";
function Se(e) {
var Te;
function cr() {
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
var u = Oe, v = Symbol.for("react.element"), f = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), O = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), X = Symbol.iterator, Pe = "@@iterator";
function xe(e) {
if (e === null || typeof e != "object")
return null;
var r = H && e[H] || e[Pe];
var r = X && e[X] || e[Pe];
return typeof r == "function" ? r : null;
}
var P = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function c(e) {
var P = u.__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];
xe("error", e, t);
je("error", e, t);
}
}
function xe(e, r, t) {
function je(e, r, t) {
{
var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
i !== "" && (r += "%s", t = t.concat([i]));
var u = t.map(function(o) {
var s = t.map(function(o) {
return String(o);
});
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
}
}
var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, X;
X = Symbol.for("react.module.reference");
function Ie(e) {
return !!(typeof e == "string" || typeof e == "function" || e === h || e === I || Ae || e === w || e === C || e === p || Fe || e === $ || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === b || e.$$typeof === j || e.$$typeof === R || e.$$typeof === l || e.$$typeof === X || e.getModuleId !== void 0));
var ke = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, Z;
Z = Symbol.for("react.module.reference");
function Le(e) {
return !!(typeof e == "string" || typeof e == "function" || e === d || e === T || Ie || e === _ || e === S || e === b || Ae || e === L || ke || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === k || e.$$typeof === O || e.$$typeof === p || e.$$typeof === Z || e.getModuleId !== void 0));
}

@@ -82,9 +82,9 @@ function $e(e, r, t) {

}
function Z(e) {
function Q(e) {
return e.displayName || "Context";
}
function _(e) {
function E(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
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;

@@ -94,13 +94,13 @@ if (typeof e == "string")

switch (e) {
case h:
case d:
return "Fragment";
case E:
case f:
return "Portal";
case I:
case T:
return "Profiler";
case w:
case _:
return "StrictMode";
case C:
case S:
return "Suspense";
case p:
case b:
return "SuspenseList";

@@ -110,17 +110,17 @@ }

switch (e.$$typeof) {
case R:
case O:
var r = e;
return Z(r) + ".Consumer";
case j:
return Q(r) + ".Consumer";
case k:
var t = e;
return Z(t._context) + ".Provider";
case l:
return Q(t._context) + ".Provider";
case p:
return $e(e, e.render, "ForwardRef");
case b:
case R:
var n = e.displayName || null;
return n !== null ? n : _(e.type) || "Memo";
case T: {
var i = e, u = i._payload, o = i._init;
return n !== null ? n : E(e.type) || "Memo";
case C: {
var i = e, s = i._payload, o = i._init;
try {
return _(o(u));
return E(o(s));
} catch {

@@ -133,14 +133,14 @@ return null;

}
var O = Object.assign, k = 0, Q, ee, re, te, ne, ae, oe;
function ie() {
var w = Object.assign, D = 0, ee, re, te, ne, ae, oe, ie;
function ue() {
}
ie.__reactDisabledLog = !0;
ue.__reactDisabledLog = !0;
function We() {
{
if (k === 0) {
Q = console.log, ee = console.info, re = console.warn, te = console.error, ne = console.group, ae = console.groupCollapsed, oe = console.groupEnd;
if (D === 0) {
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: ie,
value: ue,
writable: !0

@@ -158,3 +158,3 @@ };

}
k++;
D++;
}

@@ -164,3 +164,3 @@ }

{
if (k--, k === 0) {
if (D--, D === 0) {
var e = {

@@ -172,32 +172,32 @@ configurable: !0,

Object.defineProperties(console, {
log: O({}, e, {
value: Q
}),
info: O({}, e, {
log: w({}, e, {
value: ee
}),
warn: O({}, e, {
info: w({}, e, {
value: re
}),
error: O({}, e, {
warn: w({}, e, {
value: te
}),
group: O({}, e, {
error: w({}, e, {
value: ne
}),
groupCollapsed: O({}, e, {
group: w({}, e, {
value: ae
}),
groupEnd: O({}, e, {
groupCollapsed: w({}, e, {
value: oe
}),
groupEnd: w({}, e, {
value: ie
})
});
}
k < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var M = P.ReactCurrentDispatcher, U;
function W(e, r, t) {
var U = P.ReactCurrentDispatcher, q;
function $(e, r, t) {
{
if (U === void 0)
if (q === void 0)
try {

@@ -207,18 +207,18 @@ throw Error();

var n = i.stack.trim().match(/\n( *(at )?)/);
U = n && n[1] || "";
q = n && n[1] || "";
}
return `
` + U + e;
` + q + e;
}
}
var B = !1, Y;
var B = !1, W;
{
var Le = typeof WeakMap == "function" ? WeakMap : Map;
Y = new Le();
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
W = new Ne();
}
function ue(e, r) {
function se(e, r) {
if (!e || B)
return "";
{
var t = Y.get(e);
var t = W.get(e);
if (t !== void 0)

@@ -231,4 +231,4 @@ return t;

Error.prepareStackTrace = void 0;
var u;
u = M.current, M.current = null, We();
var s;
s = U.current, U.current = null, We();
try {

@@ -246,4 +246,4 @@ if (r) {

Reflect.construct(o, []);
} catch (y) {
n = y;
} catch (g) {
n = g;
}

@@ -254,4 +254,4 @@ Reflect.construct(e, [], o);

o.call();
} catch (y) {
n = y;
} catch (g) {
n = g;
}

@@ -263,23 +263,23 @@ e.call(o.prototype);

throw Error();
} catch (y) {
n = y;
} catch (g) {
n = g;
}
e();
}
} catch (y) {
if (y && n && typeof y.stack == "string") {
for (var a = y.stack.split(`
`), d = n.stack.split(`
`), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
f--;
for (; s >= 1 && f >= 0; s--, f--)
if (a[s] !== d[f]) {
if (s !== 1 || f !== 1)
} catch (g) {
if (g && n && typeof g.stack == "string") {
for (var a = g.stack.split(`
`), y = n.stack.split(`
`), c = a.length - 1, l = y.length - 1; c >= 1 && l >= 0 && a[c] !== y[l]; )
l--;
for (; c >= 1 && l >= 0; c--, l--)
if (a[c] !== y[l]) {
if (c !== 1 || l !== 1)
do
if (s--, f--, f < 0 || a[s] !== d[f]) {
var g = `
` + a[s].replace(" at new ", " at ");
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, g), g;
if (c--, l--, l < 0 || a[c] !== y[l]) {
var m = `
` + a[c].replace(" at new ", " at ");
return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, m), m;
}
while (s >= 1 && f >= 0);
while (c >= 1 && l >= 0);
break;

@@ -289,9 +289,9 @@ }

} finally {
B = !1, M.current = u, Ye(), Error.prepareStackTrace = i;
B = !1, U.current = s, Ye(), Error.prepareStackTrace = i;
}
var x = e ? e.displayName || e.name : "", _e = x ? W(x) : "";
return typeof e == "function" && Y.set(e, _e), _e;
var j = e ? e.displayName || e.name : "", Ee = j ? $(j) : "";
return typeof e == "function" && W.set(e, Ee), Ee;
}
function Ne(e, r, t) {
return ue(e, !1);
function Me(e, r, t) {
return se(e, !1);
}

@@ -302,25 +302,25 @@ function Ve(e) {

}
function L(e, r, t) {
function Y(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return ue(e, Ve(e));
return se(e, Ve(e));
if (typeof e == "string")
return W(e);
return $(e);
switch (e) {
case C:
return W("Suspense");
case p:
return W("SuspenseList");
case S:
return $("Suspense");
case b:
return $("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case l:
return Ne(e.render);
case b:
return L(e.type, r, t);
case T: {
var n = e, i = n._payload, u = n._init;
case p:
return Me(e.render);
case R:
return Y(e.type, r, t);
case C: {
var n = e, i = n._payload, s = n._init;
try {
return L(u(i), r, t);
return Y(s(i), r, t);
} catch {

@@ -332,32 +332,32 @@ }

}
var N = Object.prototype.hasOwnProperty, se = {}, fe = P.ReactDebugCurrentFrame;
function V(e) {
var N = Object.prototype.hasOwnProperty, fe = {}, ce = P.ReactDebugCurrentFrame;
function M(e) {
if (e) {
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
fe.setExtraStackFrame(t);
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
ce.setExtraStackFrame(t);
} else
fe.setExtraStackFrame(null);
ce.setExtraStackFrame(null);
}
function Me(e, r, t, n, i) {
function Ue(e, r, t, n, i) {
{
var u = Function.call.bind(N);
var s = Function.call.bind(N);
for (var o in e)
if (u(e, o)) {
if (s(e, o)) {
var a = void 0;
try {
if (typeof e[o] != "function") {
var d = 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 d.name = "Invariant Violation", d;
var y = 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 y.name = "Invariant Violation", y;
}
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (s) {
a = s;
} catch (c) {
a = c;
}
a && !(a instanceof Error) && (V(i), c("%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), V(null)), a instanceof Error && !(a.message in se) && (se[a.message] = !0, V(i), c("Failed %s type: %s", t, a.message), V(null));
a && !(a instanceof Error) && (M(i), 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, o, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(i), h("Failed %s type: %s", t, a.message), M(null));
}
}
}
var Ue = Array.isArray;
function q(e) {
return Ue(e);
var qe = Array.isArray;
function J(e) {
return qe(e);
}

@@ -370,3 +370,3 @@ function Be(e) {

}
function qe(e) {
function Je(e) {
try {

@@ -381,7 +381,7 @@ return le(e), !1;

}
function ce(e) {
if (qe(e))
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), le(e);
function de(e) {
if (Je(e))
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), le(e);
}
var D = P.ReactCurrentOwner, Je = {
var F = P.ReactCurrentOwner, Ge = {
key: !0,

@@ -391,5 +391,5 @@ ref: !0,

__source: !0
}, de, ve, J;
J = {};
function Ge(e) {
}, ve, pe, G;
G = {};
function ze(e) {
if (N.call(e, "ref")) {

@@ -402,3 +402,3 @@ var r = Object.getOwnPropertyDescriptor(e, "ref").get;

}
function ze(e) {
function He(e) {
if (N.call(e, "key")) {

@@ -412,11 +412,11 @@ var r = Object.getOwnPropertyDescriptor(e, "key").get;

function Ke(e, r) {
if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) {
var t = _(D.current.type);
J[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', _(D.current.type), e.ref), J[t] = !0);
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
var t = E(F.current.type);
G[t] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(F.current.type), e.ref), G[t] = !0);
}
}
function He(e, r) {
function Xe(e, r) {
{
var t = function() {
de || (de = !0, c("%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));
ve || (ve = !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));
};

@@ -429,6 +429,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", {

}
function Xe(e, r) {
function Ze(e, r) {
{
var t = function() {
ve || (ve = !0, c("%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));
pe || (pe = !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));
};

@@ -441,3 +441,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var Ze = function(e, r, t, n, i, u, o) {
var Qe = function(e, r, t, n, i, s, o) {
var a = {

@@ -449,3 +449,3 @@ $$typeof: v,

props: o,
_owner: u
_owner: s
};

@@ -469,37 +469,37 @@ return a._store = {}, Object.defineProperty(a._store, "validated", {

};
function Qe(e, r, t, n, i) {
function er(e, r, t, n, i) {
{
var u, o = {}, a = null, d = null;
t !== void 0 && (ce(t), a = "" + t), ze(r) && (ce(r.key), a = "" + r.key), Ge(r) && (d = r.ref, Ke(r, i));
for (u in r)
N.call(r, u) && !Je.hasOwnProperty(u) && (o[u] = r[u]);
var s, o = {}, a = null, y = null;
t !== void 0 && (de(t), a = "" + t), He(r) && (de(r.key), a = "" + r.key), ze(r) && (y = r.ref, Ke(r, i));
for (s in r)
N.call(r, s) && !Ge.hasOwnProperty(s) && (o[s] = r[s]);
if (e && e.defaultProps) {
var s = e.defaultProps;
for (u in s)
o[u] === void 0 && (o[u] = s[u]);
var c = e.defaultProps;
for (s in c)
o[s] === void 0 && (o[s] = c[s]);
}
if (a || d) {
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && He(o, f), d && Xe(o, f);
if (a || y) {
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && Xe(o, l), y && Ze(o, l);
}
return Ze(e, a, d, i, n, D.current, o);
return Qe(e, a, y, i, n, F.current, o);
}
}
var G = P.ReactCurrentOwner, pe = P.ReactDebugCurrentFrame;
function S(e) {
var z = P.ReactCurrentOwner, he = P.ReactDebugCurrentFrame;
function x(e) {
if (e) {
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
pe.setExtraStackFrame(t);
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
he.setExtraStackFrame(t);
} else
pe.setExtraStackFrame(null);
he.setExtraStackFrame(null);
}
var z;
z = !1;
var H;
H = !1;
function K(e) {
return typeof e == "object" && e !== null && e.$$typeof === v;
}
function me() {
function ye() {
{
if (G.current) {
var e = _(G.current.type);
if (z.current) {
var e = E(z.current.type);
if (e)

@@ -513,3 +513,3 @@ return `

}
function er(e) {
function rr(e) {
{

@@ -525,6 +525,6 @@ if (e !== void 0) {

}
var Ee = {};
function rr(e) {
var be = {};
function tr(e) {
{
var r = me();
var r = ye();
if (!r) {

@@ -539,3 +539,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name;

}
function ge(e, r) {
function me(e, r) {
{

@@ -545,18 +545,18 @@ if (!e._store || e._store.validated || e.key != null)

e._store.validated = !0;
var t = rr(r);
if (Ee[t])
var t = tr(r);
if (be[t])
return;
Ee[t] = !0;
be[t] = !0;
var n = "";
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + _(e._owner.type) + "."), S(e), c('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), S(null);
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + E(e._owner.type) + "."), x(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), x(null);
}
}
function he(e, r) {
function _e(e, r) {
{
if (typeof e != "object")
return;
if (q(e))
if (J(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
K(n) && ge(n, r);
K(n) && me(n, r);
}

@@ -566,10 +566,10 @@ else if (K(e))

else if (e) {
var i = Se(e);
var i = xe(e);
if (typeof i == "function" && i !== e.entries)
for (var u = i.call(e), o; !(o = u.next()).done; )
K(o.value) && ge(o.value, r);
for (var s = i.call(e), o; !(o = s.next()).done; )
K(o.value) && me(o.value, r);
}
}
}
function tr(e) {
function nr(e) {
{

@@ -582,3 +582,3 @@ var r = e.type;

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === l || r.$$typeof === b))
else if (typeof r == "object" && (r.$$typeof === p || r.$$typeof === R))
t = r.propTypes;

@@ -588,13 +588,13 @@ else

if (t) {
var n = _(r);
Me(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !z) {
z = !0;
var i = _(r);
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
var n = E(r);
Ue(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !H) {
H = !0;
var i = E(r);
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 nr(e) {
function ar(e) {
{

@@ -604,83 +604,112 @@ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {

if (n !== "children" && n !== "key") {
S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
x(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), x(null);
break;
}
}
e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
e.ref !== null && (x(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
}
}
function be(e, r, t, n, i, u) {
function Re(e, r, t, n, i, s) {
{
var o = Ie(e);
var o = Le(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 d = er(i);
d ? a += d : a += me();
var s;
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === v ? (s = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
var y = rr(i);
y ? a += y : a += ye();
var c;
e === null ? c = "null" : J(e) ? c = "array" : e !== void 0 && e.$$typeof === v ? (c = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = 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", c, a);
}
var f = Qe(e, r, t, i, u);
if (f == null)
return f;
var l = er(e, r, t, i, s);
if (l == null)
return l;
if (o) {
var g = r.children;
if (g !== void 0)
var m = r.children;
if (m !== void 0)
if (n)
if (q(g)) {
for (var x = 0; x < g.length; x++)
he(g[x], e);
Object.freeze && Object.freeze(g);
if (J(m)) {
for (var j = 0; j < m.length; j++)
_e(m[j], e);
Object.freeze && Object.freeze(m);
} else
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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
he(g, e);
_e(m, e);
}
return e === h ? nr(f) : tr(f), f;
return e === d ? ar(l) : nr(l), l;
}
}
function ar(e, r, t) {
return be(e, r, t, !0);
}
function or(e, r, t) {
return be(e, r, t, !1);
return Re(e, r, t, !0);
}
var ir = or, ur = ar;
A.Fragment = h, A.jsx = ir, A.jsxs = ur;
}()), A;
function ir(e, r, t) {
return Re(e, r, t, !1);
}
var ur = ir, sr = or;
I.Fragment = d, I.jsx = ur, I.jsxs = sr;
}()), I;
}
(function(m) {
process.env.NODE_ENV === "production" ? m.exports = sr() : m.exports = fr();
})(Ce);
const lr = Ce.exports.jsx, dr = ({
onOutsideClick: m,
...v
(function(u) {
process.env.NODE_ENV === "production" ? u.exports = fr() : u.exports = cr();
})(Se);
const lr = Se.exports.jsx, vr = ({
onOutsideClick: u,
ignoreElement: v,
...f
}) => {
const E = Oe(null);
const d = Ce(null);
return we(() => {
const h = (w) => {
E.current && E.current.contains && !E.current.contains(w.target) && m && m(E.current);
const _ = (T) => {
d.current && d.current.contains && !d.current.contains(T.target) && !V(v, T.target) && u && u(d.current);
};
return document.addEventListener("mousedown", h), () => {
document.removeEventListener("mousedown", h);
return document.addEventListener("mousedown", _), () => {
document.removeEventListener("mousedown", _);
};
}, []), /* @__PURE__ */ lr("div", {
...v,
ref: E,
children: v.children
...f,
ref: d,
children: f.children
});
}, vr = (m) => {
const v = Oe(null);
}, pr = (u, v) => {
const f = Ce(null);
return we(() => {
const E = (h) => {
v.current && v.current.contains && !v.current.contains(h.target) && m && m(v.current);
const d = (_) => {
f.current && f.current.contains && !f.current.contains(_.target) && !V(v, _.target) && u && u(f.current);
};
return document.addEventListener("mousedown", E), () => {
document.removeEventListener("mousedown", E);
return document.addEventListener("mousedown", d), () => {
document.removeEventListener("mousedown", d);
};
}, []), v;
}, []), f;
};
function V(u, v) {
if (!u)
return !1;
if (Array.isArray(u)) {
for (const f of u)
if (V(f, v))
return !0;
return !1;
} else if (typeof u == "string") {
const f = document.querySelector(u);
return !!(f != null && f.contains(v));
} else if (u instanceof HTMLCollection || u instanceof NodeList) {
for (let f = 0; f < u.length; f++) {
const d = u[f];
if (V(d, v))
return !0;
}
return !1;
} else if (u instanceof HTMLElement || u instanceof Element || u instanceof Node) {
if (u instanceof Node) {
const f = u.parentElement;
return !!f && f.contains(v);
}
return u.contains(v);
} else
return !1;
}
export {
dr as OutsideClick,
vr as useOutsideClick
vr as OutsideClick,
vr as default,
pr as useOutsideClick
};

@@ -1,2 +0,2 @@

(function(T,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],_):(T=typeof globalThis<"u"?globalThis:T||self,_(T.OutSideClick={},T.require$$0))})(this,function(T,_){"use strict";const Z=(l=>l&&typeof l=="object"&&"default"in l?l:{default:l})(_);var Q={exports:{}},D={};/**
(function(R,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(R=typeof globalThis<"u"?globalThis:R||self,E(R.OutSideClick={},R.require$$0))})(this,function(R,E){"use strict";const Q=(i=>i&&typeof i=="object"&&"default"in i?i:{default:i})(E);var ee={exports:{}},F={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var ee;function Se(){if(ee)return D;ee=1;var l=Z.default,p=Symbol.for("react.element"),m=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,S=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W={key:!0,ref:!0,__self:!0,__source:!0};function A(O,c,P){var g,b={},C=null,Y=null;P!==void 0&&(C=""+P),c.key!==void 0&&(C=""+c.key),c.ref!==void 0&&(Y=c.ref);for(g in c)h.call(c,g)&&!W.hasOwnProperty(g)&&(b[g]=c[g]);if(O&&O.defaultProps)for(g in c=O.defaultProps,c)b[g]===void 0&&(b[g]=c[g]);return{$$typeof:p,type:O,key:C,ref:Y,props:b,_owner:S.current}}return D.Fragment=m,D.jsx=A,D.jsxs=A,D}var F={};/**
*/var re;function je(){if(re)return F;re=1;var i=Q.default,v=Symbol.for("react.element"),f=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C={key:!0,ref:!0,__self:!0,__source:!0};function I(S,p,j){var _,g={},w=null,N=null;j!==void 0&&(w=""+j),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(N=p.ref);for(_ in p)d.call(p,_)&&!C.hasOwnProperty(_)&&(g[_]=p[_]);if(S&&S.defaultProps)for(_ in p=S.defaultProps,p)g[_]===void 0&&(g[_]=p[_]);return{$$typeof:v,type:S,key:w,ref:N,props:g,_owner:m.current}}return F.Fragment=f,F.jsx=I,F.jsxs=I,F}var A={};/**
* @license React

@@ -18,12 +18,12 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var re;function Pe(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var l=Z.default,p=Symbol.for("react.element"),m=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),O=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),te=Symbol.iterator,De="@@iterator";function Fe(e){if(e===null||typeof e!="object")return null;var r=te&&e[te]||e[De];return typeof r=="function"?r:null}var j=l.__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];Ae("error",e,t)}}function Ae(e,r,t){{var n=j.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ie=!1,Le=!1,We=!1,Ye=!1,$e=!1,ne;ne=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===h||e===W||$e||e===S||e===P||e===g||Ye||e===Y||Ie||Le||We||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===b||e.$$typeof===A||e.$$typeof===O||e.$$typeof===c||e.$$typeof===ne||e.getModuleId!==void 0))}function Ne(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ae(e){return e.displayName||"Context"}function y(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 h:return"Fragment";case m:return"Portal";case W:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case O:var r=e;return ae(r)+".Consumer";case A:var t=e;return ae(t._context)+".Provider";case c:return Ne(e,e.render,"ForwardRef");case b:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case C:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var w=Object.assign,I=0,ie,oe,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Ve(){{if(I===0){ie=console.log,oe=console.info,ue=console.warn,se=console.error,fe=console.group,le=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}}function Ue(){{if(I--,I===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:ie}),info:w({},e,{value:oe}),warn:w({},e,{value:ue}),error:w({},e,{value:se}),group:w({},e,{value:fe}),groupCollapsed:w({},e,{value:le}),groupEnd:w({},e,{value:ce})})}I<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=j.ReactCurrentDispatcher,J;function $(e,r,t){{if(J===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
`+J+e}}var q=!1,M;{var Be=typeof WeakMap=="function"?WeakMap:Map;M=new Be}function ve(e,r){if(!e||q)return"";{var t=M.get(e);if(t!==void 0)return t}var n;q=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=B.current,B.current=null,Ve();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(R){n=R}Reflect.construct(e,[],i)}else{try{i.call()}catch(R){n=R}e.call(i.prototype)}}else{try{throw Error()}catch(R){n=R}e()}}catch(R){if(R&&n&&typeof R.stack=="string"){for(var a=R.stack.split(`
`),v=n.stack.split(`
`),s=a.length-1,f=v.length-1;s>=1&&f>=0&&a[s]!==v[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==v[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==v[f]){var E=`
`+a[s].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,E),E}while(s>=1&&f>=0);break}}}finally{q=!1,B.current=u,Ue(),Error.prepareStackTrace=o}var k=e?e.displayName||e.name:"",we=k?$(k):"";return typeof e=="function"&&M.set(e,we),we}function Je(e,r,t){return ve(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,qe(e));if(typeof e=="string")return $(e);switch(e){case P:return $("Suspense");case g:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Je(e.render);case b:return N(e.type,r,t);case C:{var n=e,o=n._payload,u=n._init;try{return N(u(o),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,pe={},ge=j.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Ge(e,r,t,n,o){{var u=Function.call.bind(V);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=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 v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(U(o),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,i,typeof a),U(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,U(o),d("Failed %s type: %s",t,a.message),U(null))}}}var ze=Array.isArray;function G(e){return ze(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function Ee(e){if(He(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)),me(e)}var L=j.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},he,_e,z;z={};function Ze(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){if(typeof e.ref=="string"&&L.current&&r&&L.current.stateNode!==r){var t=y(L.current.type);z[t]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',y(L.current.type),e.ref),z[t]=!0)}}function rr(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 tr(e,r){{var t=function(){_e||(_e=!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 nr=function(e,r,t,n,o,u,i){var a={$$typeof:p,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ar(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(Ee(t),a=""+t),Qe(r)&&(Ee(r.key),a=""+r.key),Ze(r)&&(v=r.ref,er(r,o));for(u in r)V.call(r,u)&&!Xe.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&rr(i,f),v&&tr(i,f)}return nr(e,a,v,o,n,L.current,i)}}var K=j.ReactCurrentOwner,be=j.ReactDebugCurrentFrame;function x(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var H;H=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function ye(){{if(K.current){var e=y(K.current.type);if(e)return`
*/var te;function xe(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var i=Q.default,v=Symbol.for("react.element"),f=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),S=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),ae=Symbol.iterator,Fe="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[Fe];return typeof r=="function"?r:null}var x=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=x.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(o){return String(o)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Le=!1,We=!1,Ye=!1,Ne=!1,Me=!1,ie;ie=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===d||e===C||Me||e===m||e===j||e===_||Ne||e===N||Le||We||Ye||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===g||e.$$typeof===I||e.$$typeof===S||e.$$typeof===p||e.$$typeof===ie||e.getModuleId!==void 0))}function Ve(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function oe(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&y("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 d:return"Fragment";case f:return"Portal";case C:return"Profiler";case m:return"StrictMode";case j:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return oe(r)+".Consumer";case I:var t=e;return oe(t._context)+".Provider";case p:return Ve(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case w:{var u=e,s=u._payload,o=u._init;try{return T(o(s))}catch{return null}}}return null}var P=Object.assign,L=0,ue,se,fe,ce,le,de,ve;function pe(){}pe.__reactDisabledLog=!0;function Ue(){{if(L===0){ue=console.log,se=console.info,fe=console.warn,ce=console.error,le=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function Be(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:ue}),info:P({},e,{value:se}),warn:P({},e,{value:fe}),error:P({},e,{value:ce}),group:P({},e,{value:le}),groupCollapsed:P({},e,{value:de}),groupEnd:P({},e,{value:ve})})}L<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=x.ReactCurrentDispatcher,J;function M(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`
`+J+e}}var G=!1,$;{var qe=typeof WeakMap=="function"?WeakMap:Map;$=new qe}function ye(e,r){if(!e||G)return"";{var t=$.get(e);if(t!==void 0)return t}var n;G=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=q.current,q.current=null,Ue();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(O){n=O}Reflect.construct(e,[],o)}else{try{o.call()}catch(O){n=O}e.call(o.prototype)}}else{try{throw Error()}catch(O){n=O}e()}}catch(O){if(O&&n&&typeof O.stack=="string"){for(var a=O.stack.split(`
`),h=n.stack.split(`
`),c=a.length-1,l=h.length-1;c>=1&&l>=0&&a[c]!==h[l];)l--;for(;c>=1&&l>=0;c--,l--)if(a[c]!==h[l]){if(c!==1||l!==1)do if(c--,l--,l<0||a[c]!==h[l]){var b=`
`+a[c].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,b),b}while(c>=1&&l>=0);break}}}finally{G=!1,q.current=s,Be(),Error.prepareStackTrace=u}var D=e?e.displayName||e.name:"",Pe=D?M(D):"";return typeof e=="function"&&$.set(e,Pe),Pe}function Je(e,r,t){return ye(e,!1)}function Ge(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Ge(e));if(typeof e=="string")return M(e);switch(e){case j:return M("Suspense");case _:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Je(e.render);case g:return V(e.type,r,t);case w:{var n=e,u=n._payload,s=n._init;try{return V(s(u),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,he={},_e=x.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}function ze(e,r,t,n,u){{var s=Function.call.bind(U);for(var o in e)if(s(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var h=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 h.name="Invariant Violation",h}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}a&&!(a instanceof Error)&&(B(u),y("%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),B(null)),a instanceof Error&&!(a.message in he)&&(he[a.message]=!0,B(u),y("Failed %s type: %s",t,a.message),B(null))}}}var He=Array.isArray;function z(e){return He(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function me(e){if(Xe(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),be(e)}var W=x.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Re,Ee,H;H={};function Qe(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function er(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function rr(e,r){if(typeof e.ref=="string"&&W.current&&r&&W.current.stateNode!==r){var t=T(W.current.type);H[t]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(W.current.type),e.ref),H[t]=!0)}}function tr(e,r){{var t=function(){Re||(Re=!0,y("%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 nr(e,r){{var t=function(){Ee||(Ee=!0,y("%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 ar=function(e,r,t,n,u,s,o){var a={$$typeof:v,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:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ir(e,r,t,n,u){{var s,o={},a=null,h=null;t!==void 0&&(me(t),a=""+t),er(r)&&(me(r.key),a=""+r.key),Qe(r)&&(h=r.ref,rr(r,u));for(s in r)U.call(r,s)&&!Ze.hasOwnProperty(s)&&(o[s]=r[s]);if(e&&e.defaultProps){var c=e.defaultProps;for(s in c)o[s]===void 0&&(o[s]=c[s])}if(a||h){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&tr(o,l),h&&nr(o,l)}return ar(e,a,h,u,n,W.current,o)}}var K=x.ReactCurrentOwner,ge=x.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function Te(){{if(K.current){var e=T(K.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check the render method of \``+e+"`."}return""}}function or(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check your code at `+r+":"+t+"."}return""}}var Re={};function or(e){{var r=ye();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check your code at `+r+":"+t+"."}return""}}var Oe={};function ur(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=or(r);if(Re[t])return;Re[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+y(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 Oe(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&Te(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var o=Fe(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)X(i.value)&&Te(i.value,r)}}}function ur(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===c||r.$$typeof===b))t=r.propTypes;else return;if(t){var n=y(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=y(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"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 sr(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))}}function Ce(e,r,t,n,o,u){{var i=Me(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 v=ir(o);v?a+=v:a+=ye();var s;e===null?s="null":G(e)?s="array":e!==void 0&&e.$$typeof===p?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=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",s,a)}var f=ar(e,r,t,o,u);if(f==null)return f;if(i){var E=r.children;if(E!==void 0)if(n)if(G(E)){for(var k=0;k<E.length;k++)Oe(E[k],e);Object.freeze&&Object.freeze(E)}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 Oe(E,e)}return e===h?sr(f):ur(f),f}}function fr(e,r,t){return Ce(e,r,t,!0)}function lr(e,r,t){return Ce(e,r,t,!1)}var cr=lr,dr=fr;F.Fragment=h,F.jsx=cr,F.jsxs=dr}()),F}(function(l){process.env.NODE_ENV==="production"?l.exports=Se():l.exports=Pe()})(Q);const je=Q.exports.jsx,xe=({onOutsideClick:l,...p})=>{const m=_.useRef(null);return _.useEffect(()=>{const h=S=>{m.current&&m.current.contains&&!m.current.contains(S.target)&&l&&l(m.current)};return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]),je("div",{...p,ref:m,children:p.children})},ke=l=>{const p=_.useRef(null);return _.useEffect(()=>{const m=h=>{p.current&&p.current.contains&&!p.current.contains(h.target)&&l&&l(p.current)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[]),p};T.OutsideClick=xe,T.useOutsideClick=ke,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),k(e),y('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)}}function Se(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&Ce(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),o;!(o=s.next()).done;)Z(o.value)&&Ce(o.value,r)}}}function sr(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===p||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=T(r);ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var u=T(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){k(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),k(null);break}}e.ref!==null&&(k(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}function we(e,r,t,n,u,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 h=or(u);h?a+=h:a+=Te();var c;e===null?c="null":z(e)?c="array":e!==void 0&&e.$$typeof===v?(c="<"+(T(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,a)}var l=ir(e,r,t,u,s);if(l==null)return l;if(o){var b=r.children;if(b!==void 0)if(n)if(z(b)){for(var D=0;D<b.length;D++)Se(b[D],e);Object.freeze&&Object.freeze(b)}else y("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 Se(b,e)}return e===d?fr(l):sr(l),l}}function cr(e,r,t){return we(e,r,t,!0)}function lr(e,r,t){return we(e,r,t,!1)}var dr=lr,vr=cr;A.Fragment=d,A.jsx=dr,A.jsxs=vr}()),A}(function(i){process.env.NODE_ENV==="production"?i.exports=je():i.exports=xe()})(ee);const ke=ee.exports.jsx,ne=({onOutsideClick:i,ignoreElement:v,...f})=>{const d=E.useRef(null);return E.useEffect(()=>{const m=C=>{d.current&&d.current.contains&&!d.current.contains(C.target)&&!Y(v,C.target)&&i&&i(d.current)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[]),ke("div",{...f,ref:d,children:f.children})},De=(i,v)=>{const f=E.useRef(null);return E.useEffect(()=>{const d=m=>{f.current&&f.current.contains&&!f.current.contains(m.target)&&!Y(v,m.target)&&i&&i(f.current)};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[]),f};function Y(i,v){if(!i)return!1;if(Array.isArray(i)){for(const f of i)if(Y(f,v))return!0;return!1}else if(typeof i=="string"){const f=document.querySelector(i);return!!(f!=null&&f.contains(v))}else if(i instanceof HTMLCollection||i instanceof NodeList){for(let f=0;f<i.length;f++){const d=i[f];if(Y(d,v))return!0}return!1}else if(i instanceof HTMLElement||i instanceof Element||i instanceof Node){if(i instanceof Node){const f=i.parentElement;return!!f&&f.contains(v)}return i.contains(v)}else return!1}R.OutsideClick=ne,R.default=ne,R.useOutsideClick=De,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});

@@ -5,3 +5,3 @@ {

"private": false,
"version": "0.1.0",
"version": "0.2.0",
"type": "module",

@@ -33,2 +33,3 @@ "scripts": {

".": {
"types": "./dist/index.d.ts",
"import": "./dist/outsideclick-react.es.js",

@@ -35,0 +36,0 @@ "require": "./dist/outsideclick-react.umd.js"

@@ -29,6 +29,7 @@ # OutSideClick React

function MyComponent() {
const handleOutsideClick = (e){
const handleOutsideClick = (e)=> {
// Handle outside click
}
const ref = useOutsideClick(handleOutsideClick)
/* const ref = useOutsideClick(handleOutsideClick,".hello-ignore") */
return(

@@ -55,4 +56,5 @@ <div ref={ref}>

onOutsideClick={() => {
// Handle outside click
/* Handle outside click */
}}
ignoreElement=".ignore"
>

@@ -59,0 +61,0 @@ <div>{/* Your component */}</div>

import React from 'react';
declare type OutSideClickType = {
onOutsideClick?: (v?: HTMLElement) => void;
} & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
export declare const OutsideClick: ({ onOutsideClick, ...others }: OutSideClickType) => JSX.Element;
export declare const useOutsideClick: (outsideClick?: ((v: HTMLElement) => void) | undefined) => React.MutableRefObject<any>;
export {};
//# sourceMappingURL=ReactOutSideClick.d.ts.map
{"version":3,"file":"ReactOutSideClick.d.ts","sourceRoot":"","sources":["ReactOutSideClick.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,aAAK,gBAAgB,GAAG;IACpB,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;CAC7C,GAAG,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,CAAA;AAEjF,eAAO,MAAM,YAAY,kCAAmC,gBAAgB,gBAwB3E,CAAA;AAED,eAAO,MAAM,eAAe,uBAAuB,WAAW,KAAK,IAAI,6CAkBtE,CAAA"}
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>