@articles-media/articles-dev-box 1.0.17 → 1.0.22
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/README.md +6 -5
- package/dist/Ad-Ck5UdTq3.js +387 -0
- package/dist/Ad-DYtftKNV.cjs +1 -0
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +2 -604
- package/dist/AdConfirmExitModal-CJ-HtcVC.js +56 -0
- package/dist/AdConfirmExitModal-CRCnzYQM.cjs +1 -0
- package/dist/AdDetailsModal-DRNRTL2W.js +108 -0
- package/dist/AdDetailsModal-g0n7LiV6.cjs +1 -0
- package/dist/ArticlesAd.cjs +1 -1
- package/dist/ArticlesAd.js +16 -15
- package/dist/Button-BlAdEbSd.js +30 -0
- package/dist/Button-CbpRj01E.cjs +1 -0
- package/dist/CreditsModal.cjs +1 -0
- package/dist/CreditsModal.js +56 -0
- package/dist/DarkModeHandler.cjs +1 -1
- package/dist/DarkModeHandler.js +17 -16
- package/dist/FriendsList.cjs +1 -1
- package/dist/FriendsList.js +77 -121
- package/dist/GameScoreboard-CBY3JsFa.js +165 -0
- package/dist/GameScoreboard-DdOCRxON.cjs +1 -0
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +2 -190
- package/dist/GlobalBody.cjs +33 -1
- package/dist/GlobalBody.js +36 -7
- package/dist/GlobalHead.cjs +1 -1
- package/dist/GlobalHead.js +10 -12
- package/dist/Link-MFZblBb4.js +17 -0
- package/dist/Link-c7exNCJ3.cjs +1 -0
- package/dist/Modal-BX1s6CCU.js +1631 -0
- package/dist/Modal-DP9CeAVD.cjs +3 -0
- package/dist/ReturnToLauncherButton.cjs +1 -1
- package/dist/ReturnToLauncherButton.js +39 -54
- package/dist/SettingsModal--sWLmLGp.cjs +1 -0
- package/dist/SettingsModal-XI2dMI09.js +247 -0
- package/dist/SettingsModal.cjs +1 -1
- package/dist/SettingsModal.js +2 -658
- package/dist/StatusModal-D7WDDR9P.cjs +1 -0
- package/dist/StatusModal-elrPJvX1.js +70 -0
- package/dist/ViewUserModal-DDjWLpyM.js +3094 -0
- package/dist/ViewUserModal-DPVcjXNU.cjs +1 -0
- package/dist/ViewUserModal.cjs +1 -1
- package/dist/ViewUserModal.js +3 -3149
- package/dist/articles-dev-box.css +2 -1
- package/dist/chunk-350yNsax.cjs +1 -0
- package/dist/classnames-DP6dWde5.js +31 -0
- package/dist/classnames-pS64X3rL.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +16 -28
- package/dist/jsx-runtime-VZk6y-ec.js +191 -0
- package/dist/jsx-runtime-hCcDh67y.cjs +6 -0
- package/dist/numberWithCommas-BSKBdR-e.js +18 -0
- package/dist/numberWithCommas-D9tgiUnq.cjs +1 -0
- package/dist/useAuthSiteStatus-1rHjYC4N.js +29 -0
- package/dist/useAuthSiteStatus-P5kHc_Bz.cjs +1 -0
- package/dist/useFullscreen.cjs +1 -0
- package/dist/useFullscreen.js +24 -0
- package/dist/useUserDetails.cjs +1 -1
- package/dist/useUserDetails.js +22 -32
- package/dist/useUserFriends.cjs +1 -1
- package/dist/useUserFriends.js +29 -51
- package/dist/useUserToken.cjs +1 -1
- package/dist/useUserToken.js +16 -21
- package/package.json +17 -10
- package/dist/AdConfirmExitModal-Bhz-lt9w.js +0 -72
- package/dist/AdConfirmExitModal-N3Lvhb4y.cjs +0 -1
- package/dist/AdDetailsModal-BMj8DjV0.cjs +0 -1
- package/dist/AdDetailsModal-DXvfmyKK.js +0 -83
- package/dist/Button-0ZK0NKiK.cjs +0 -1
- package/dist/Button-_Quon8UV.js +0 -54
- package/dist/ElementChildren-DN3RWY2E.js +0 -51
- package/dist/ElementChildren-eAwIENLl.cjs +0 -1
- package/dist/GlobalBody-BrrtfBBs.js +0 -123
- package/dist/GlobalBody-weON_TbJ.cjs +0 -33
- package/dist/Modal-Bdhkgkwr.cjs +0 -2
- package/dist/Modal-nux8R77F.js +0 -2087
- package/dist/StatusModal-B086BgSW.js +0 -71
- package/dist/StatusModal-CzPyqQQA.cjs +0 -1
- package/dist/index-BlP2-uOi.cjs +0 -1
- package/dist/index-C8MeSLnR.js +0 -2504
- package/dist/index-DWV8myok.cjs +0 -6
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/jsx-runtime-nZSsnGb7.cjs +0 -6
- package/dist/jsx-runtime-tc70JA_2.js +0 -264
- package/dist/numberWithCommas-CRgrb58X.cjs +0 -1
- package/dist/numberWithCommas-DnAkiOFL.js +0 -1256
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@articles-media/articles-dev-box",
|
|
3
3
|
"description": "Shared code, functions, and components for different Articles Media projects.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
7
7
|
"#root/src/*": "./src/*"
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
"import": "./dist/SettingsModal.js",
|
|
53
53
|
"require": "./dist/SettingsModal.cjs"
|
|
54
54
|
},
|
|
55
|
+
"./CreditsModal": {
|
|
56
|
+
"import": "./dist/CreditsModal.js",
|
|
57
|
+
"require": "./dist/CreditsModal.cjs"
|
|
58
|
+
},
|
|
55
59
|
"./DarkModeHandler": {
|
|
56
60
|
"import": "./dist/DarkModeHandler.js",
|
|
57
61
|
"require": "./dist/DarkModeHandler.cjs"
|
|
@@ -72,6 +76,10 @@
|
|
|
72
76
|
"import": "./dist/useUserFriends.js",
|
|
73
77
|
"require": "./dist/useUserFriends.cjs"
|
|
74
78
|
},
|
|
79
|
+
"./useFullscreen": {
|
|
80
|
+
"import": "./dist/useFullscreen.js",
|
|
81
|
+
"require": "./dist/useFullscreen.cjs"
|
|
82
|
+
},
|
|
75
83
|
"./dist/style.css": "./dist/articles-dev-box.css",
|
|
76
84
|
"./dist/articles-dev-box.css": "./dist/articles-dev-box.css"
|
|
77
85
|
},
|
|
@@ -87,20 +95,19 @@
|
|
|
87
95
|
"license": "ISC",
|
|
88
96
|
"peerDependencies": {
|
|
89
97
|
"react": ">=19.2.3",
|
|
90
|
-
"react-dom": ">=19.2.3"
|
|
98
|
+
"react-dom": ">=19.2.3",
|
|
99
|
+
"swr": "^2.0.0",
|
|
100
|
+
"date-fns": "^4.0.0",
|
|
101
|
+
"react-intersection-observer": "^10.0.0",
|
|
102
|
+
"react-bootstrap": "^2.0.0"
|
|
91
103
|
},
|
|
92
104
|
"devDependencies": {
|
|
93
|
-
"@vitejs/plugin-react": "^
|
|
105
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
94
106
|
"classnames": "^2.5.1",
|
|
95
107
|
"nodemon": "^3.1.11",
|
|
96
108
|
"react-bootstrap": "^2.10.10",
|
|
97
109
|
"sass": "^1.97.2",
|
|
98
|
-
"vite": "^
|
|
110
|
+
"vite": "^8.0.3"
|
|
99
111
|
},
|
|
100
|
-
"dependencies": {
|
|
101
|
-
"axios": "^1.13.2",
|
|
102
|
-
"date-fns": "^4.1.0",
|
|
103
|
-
"react-intersection-observer": "^10.0.0",
|
|
104
|
-
"swr": "^2.3.8"
|
|
105
|
-
}
|
|
112
|
+
"dependencies": {}
|
|
106
113
|
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { useEffect as l } from "react";
|
|
3
|
-
import { L as n } from "./numberWithCommas-DnAkiOFL.js";
|
|
4
|
-
import { M as s } from "./Modal-nux8R77F.js";
|
|
5
|
-
import { A as i } from "./Button-_Quon8UV.js";
|
|
6
|
-
function x(t) {
|
|
7
|
-
let { setModalShow: r, ad: o, previewData: d } = t;
|
|
8
|
-
l(() => {
|
|
9
|
-
console.log("Mounted");
|
|
10
|
-
}, []);
|
|
11
|
-
const a = () => {
|
|
12
|
-
r(!1);
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
15
|
-
s,
|
|
16
|
-
{
|
|
17
|
-
show: !0,
|
|
18
|
-
backdropClassName: "ad-details-modal-backdrop",
|
|
19
|
-
className: "articles-modal",
|
|
20
|
-
centered: !0,
|
|
21
|
-
onHide: a,
|
|
22
|
-
size: "md",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ e.jsx(s.Header, { className: "align-items-center", closeButton: !0, children: /* @__PURE__ */ e.jsx(s.Title, { children: "Confirm Exit" }) }),
|
|
25
|
-
/* @__PURE__ */ e.jsxs(
|
|
26
|
-
s.Body,
|
|
27
|
-
{
|
|
28
|
-
className: "",
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ e.jsx("div", { className: "ratio ratio-16x9 bg-black mb-2" }),
|
|
31
|
-
/* @__PURE__ */ e.jsx("p", { className: "mb-1", children: "This advertiser has been approved and verified to display ads but always be cautious when interacting with ads. Any offsite interactions are at your own risk and should be approached with caution. We can not be held responsible for any issues that may arise." })
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
),
|
|
35
|
-
/* @__PURE__ */ e.jsxs(s.Footer, { className: "d-flex justify-content-between", children: [
|
|
36
|
-
/* @__PURE__ */ e.jsxs(
|
|
37
|
-
i,
|
|
38
|
-
{
|
|
39
|
-
variant: "articles",
|
|
40
|
-
onClick: a,
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ e.jsx("i", { className: "fad fa-times" }),
|
|
43
|
-
"Close"
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ e.jsx(
|
|
48
|
-
n,
|
|
49
|
-
{
|
|
50
|
-
href: o?.website,
|
|
51
|
-
newPage: !0,
|
|
52
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
53
|
-
i,
|
|
54
|
-
{
|
|
55
|
-
variant: "articles",
|
|
56
|
-
onClick: a,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ e.jsx("i", { className: "fad fa-link" }),
|
|
59
|
-
"Proceed"
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
)
|
|
65
|
-
] })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
) });
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
x as default
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.cjs"),n=require("react"),l=require("./numberWithCommas-CRgrb58X.cjs"),s=require("./Modal-Bdhkgkwr.cjs"),i=require("./Button-0ZK0NKiK.cjs");function d(a){let{setModalShow:r,ad:o,previewData:c}=a;n.useEffect(()=>{console.log("Mounted")},[]);const t=()=>{r(!1)};return e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsxs(s.Modal,{show:!0,backdropClassName:"ad-details-modal-backdrop",className:"articles-modal",centered:!0,onHide:t,size:"md",children:[e.jsxRuntimeExports.jsx(s.Modal.Header,{className:"align-items-center",closeButton:!0,children:e.jsxRuntimeExports.jsx(s.Modal.Title,{children:"Confirm Exit"})}),e.jsxRuntimeExports.jsxs(s.Modal.Body,{className:"",children:[e.jsxRuntimeExports.jsx("div",{className:"ratio ratio-16x9 bg-black mb-2"}),e.jsxRuntimeExports.jsx("p",{className:"mb-1",children:"This advertiser has been approved and verified to display ads but always be cautious when interacting with ads. Any offsite interactions are at your own risk and should be approached with caution. We can not be held responsible for any issues that may arise."})]}),e.jsxRuntimeExports.jsxs(s.Modal.Footer,{className:"d-flex justify-content-between",children:[e.jsxRuntimeExports.jsxs(i.ArticlesButton,{variant:"articles",onClick:t,children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-times"}),"Close"]}),e.jsxRuntimeExports.jsx(l.Link,{href:o?.website,newPage:!0,children:e.jsxRuntimeExports.jsxs(i.ArticlesButton,{variant:"articles",onClick:t,children:[e.jsxRuntimeExports.jsx("i",{className:"fad fa-link"}),"Proceed"]})})]})]})})}exports.default=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.cjs"),o=require("react"),x=require("./numberWithCommas-CRgrb58X.cjs"),t=require("./Modal-Bdhkgkwr.cjs"),r=require("./Button-0ZK0NKiK.cjs");function d(n){let{setModalShow:a,ad:e,previewData:l}=n;o.useEffect(()=>{console.log("Mounted")},[]);const i=()=>{a(!1)};return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsxs(t.Modal,{show:!0,backdropClassName:"ad-details-modal-backdrop",className:"articles-modal",centered:!0,onHide:i,size:"md",children:[s.jsxRuntimeExports.jsx(t.Modal.Header,{className:"align-items-center",closeButton:!0,children:s.jsxRuntimeExports.jsx(t.Modal.Title,{children:"Ad Details"})}),s.jsxRuntimeExports.jsxs(t.Modal.Body,{className:"",children:[s.jsxRuntimeExports.jsxs("p",{className:"mb-1",children:["Advertiser: ",s.jsxRuntimeExports.jsx("b",{children:e?.business})]}),s.jsxRuntimeExports.jsxs("p",{className:"mb-0",children:["Ad ID: ",s.jsxRuntimeExports.jsx("b",{children:l?._id||e._id})]}),s.jsxRuntimeExports.jsx("hr",{}),s.jsxRuntimeExports.jsx("div",{className:"mb-1",children:"This ad is being shown to you for the following reasons"}),e.city?s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-1",children:e.business}),s.jsxRuntimeExports.jsx("div",{children:"Is advertising to all zip codes within a"}),s.jsxRuntimeExports.jsx("span",{children:s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles",children:"15 Mile Radius"})}),s.jsxRuntimeExports.jsx("div",{children:"of it's business"}),s.jsxRuntimeExports.jsx("hr",{className:"border w-50 border-white"}),s.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[s.jsxRuntimeExports.jsx("div",{children:"Your Zip code"}),s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles ms-2",children:"00000"}),s.jsxRuntimeExports.jsx("div",{className:"ms-2",children:"is"}),s.jsxRuntimeExports.jsx("div",{className:"badge bg-black shadow-articles ms-2",children:"4.2 miles away"})]})]}):s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("div",{className:"h4 mb-1",children:e.business}),s.jsxRuntimeExports.jsx("div",{children:"Is advertising to all users"})]}),s.jsxRuntimeExports.jsx("div",{className:"grow"}),s.jsxRuntimeExports.jsx("hr",{className:"w-100"}),s.jsxRuntimeExports.jsx("div",{className:"reason lh-sm mb-2",children:"Ads we display to you will always be transparent as to why you are seeing them."}),s.jsxRuntimeExports.jsx(x.Link,{href:"https://articles.media/settings/account",newPage:!0,className:"",children:s.jsxRuntimeExports.jsx(r.ArticlesButton,{small:!0,children:"Settings"})})]}),s.jsxRuntimeExports.jsx(t.Modal.Footer,{className:"d-flex justify-content-center",children:s.jsxRuntimeExports.jsx(r.ArticlesButton,{variant:"articles",onClick:i,children:"Close"})})]})})}exports.default=d;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { useEffect as t } from "react";
|
|
3
|
-
import { L as n } from "./numberWithCommas-DnAkiOFL.js";
|
|
4
|
-
import { M as i } from "./Modal-nux8R77F.js";
|
|
5
|
-
import { A as l } from "./Button-_Quon8UV.js";
|
|
6
|
-
function b(d) {
|
|
7
|
-
let { setModalShow: r, ad: e, previewData: c } = d;
|
|
8
|
-
t(() => {
|
|
9
|
-
console.log("Mounted");
|
|
10
|
-
}, []);
|
|
11
|
-
const a = () => {
|
|
12
|
-
r(!1);
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(
|
|
15
|
-
i,
|
|
16
|
-
{
|
|
17
|
-
show: !0,
|
|
18
|
-
backdropClassName: "ad-details-modal-backdrop",
|
|
19
|
-
className: "articles-modal",
|
|
20
|
-
centered: !0,
|
|
21
|
-
onHide: a,
|
|
22
|
-
size: "md",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ s.jsx(i.Header, { className: "align-items-center", closeButton: !0, children: /* @__PURE__ */ s.jsx(i.Title, { children: "Ad Details" }) }),
|
|
25
|
-
/* @__PURE__ */ s.jsxs(
|
|
26
|
-
i.Body,
|
|
27
|
-
{
|
|
28
|
-
className: "",
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ s.jsxs("p", { className: "mb-1", children: [
|
|
31
|
-
"Advertiser: ",
|
|
32
|
-
/* @__PURE__ */ s.jsx("b", { children: e?.business })
|
|
33
|
-
] }),
|
|
34
|
-
/* @__PURE__ */ s.jsxs("p", { className: "mb-0", children: [
|
|
35
|
-
"Ad ID: ",
|
|
36
|
-
/* @__PURE__ */ s.jsx("b", { children: c?._id || e._id })
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ s.jsx("hr", {}),
|
|
39
|
-
/* @__PURE__ */ s.jsx("div", { className: "mb-1", children: "This ad is being shown to you for the following reasons" }),
|
|
40
|
-
e.city ? /* @__PURE__ */ s.jsxs("div", { children: [
|
|
41
|
-
/* @__PURE__ */ s.jsx("div", { className: "h4 mb-1", children: e.business }),
|
|
42
|
-
/* @__PURE__ */ s.jsx("div", { children: "Is advertising to all zip codes within a" }),
|
|
43
|
-
/* @__PURE__ */ s.jsx("span", { children: /* @__PURE__ */ s.jsx("div", { className: "badge bg-black shadow-articles", children: "15 Mile Radius" }) }),
|
|
44
|
-
/* @__PURE__ */ s.jsx("div", { children: "of it's business" }),
|
|
45
|
-
/* @__PURE__ */ s.jsx("hr", { className: "border w-50 border-white" }),
|
|
46
|
-
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
47
|
-
/* @__PURE__ */ s.jsx("div", { children: "Your Zip code" }),
|
|
48
|
-
/* @__PURE__ */ s.jsx("div", { className: "badge bg-black shadow-articles ms-2", children: "00000" }),
|
|
49
|
-
/* @__PURE__ */ s.jsx("div", { className: "ms-2", children: "is" }),
|
|
50
|
-
/* @__PURE__ */ s.jsx("div", { className: "badge bg-black shadow-articles ms-2", children: "4.2 miles away" })
|
|
51
|
-
] })
|
|
52
|
-
] }) : /* @__PURE__ */ s.jsxs("div", { children: [
|
|
53
|
-
/* @__PURE__ */ s.jsx("div", { className: "h4 mb-1", children: e.business }),
|
|
54
|
-
/* @__PURE__ */ s.jsx("div", { children: "Is advertising to all users" })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ s.jsx("div", { className: "grow" }),
|
|
57
|
-
/* @__PURE__ */ s.jsx("hr", { className: "w-100" }),
|
|
58
|
-
/* @__PURE__ */ s.jsx("div", { className: "reason lh-sm mb-2", children: "Ads we display to you will always be transparent as to why you are seeing them." }),
|
|
59
|
-
/* @__PURE__ */ s.jsx(n, { href: "https://articles.media/settings/account", newPage: !0, className: "", children: /* @__PURE__ */ s.jsx(
|
|
60
|
-
l,
|
|
61
|
-
{
|
|
62
|
-
small: !0,
|
|
63
|
-
children: "Settings"
|
|
64
|
-
}
|
|
65
|
-
) })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
/* @__PURE__ */ s.jsx(i.Footer, { className: "d-flex justify-content-center", children: /* @__PURE__ */ s.jsx(
|
|
70
|
-
l,
|
|
71
|
-
{
|
|
72
|
-
variant: "articles",
|
|
73
|
-
onClick: a,
|
|
74
|
-
children: "Close"
|
|
75
|
-
}
|
|
76
|
-
) })
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
) });
|
|
80
|
-
}
|
|
81
|
-
export {
|
|
82
|
-
b as default
|
|
83
|
-
};
|
package/dist/Button-0ZK0NKiK.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const N=require("./jsx-runtime-nZSsnGb7.cjs"),R=require("react"),j=require("./index-BlP2-uOi.cjs"),o=R.forwardRef((t,c)=>{const{size:e,variant:s,style:i,small:r,large:a,onClick:l,className:n,disabled:u,active:b,type:m,onMouseDown:d,onMouseUp:x,onMouseLeave:h,onTouchStart:v,onTouchEnd:y,...p}=t;return N.jsxRuntimeExports.jsx("button",{ref:c,...m&&{type:"submit"},disabled:u,style:i,onMouseDown:d,onMouseUp:x,onMouseLeave:h,onTouchStart:v,onTouchEnd:y,className:j.classNames(`btn ${s?`btn-${s}`:"btn-articles"}`,{[n]:n,"btn-lg":a,"btn-sm":r,active:b,[`btn-${e}`]:e}),onClick:l,children:t.children})});o.displayName="ArticlesButton";exports.ArticlesButton=o;
|
package/dist/Button-_Quon8UV.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { j as v } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { forwardRef as x } from "react";
|
|
3
|
-
import { c as y } from "./index-YnD2EP-S.js";
|
|
4
|
-
const N = x((t, n) => {
|
|
5
|
-
const {
|
|
6
|
-
size: s,
|
|
7
|
-
variant: e,
|
|
8
|
-
style: a,
|
|
9
|
-
// Can just use small instead of size="sm"
|
|
10
|
-
small: r,
|
|
11
|
-
large: i,
|
|
12
|
-
onClick: c,
|
|
13
|
-
className: o,
|
|
14
|
-
disabled: l,
|
|
15
|
-
active: m,
|
|
16
|
-
type: u,
|
|
17
|
-
onMouseDown: b,
|
|
18
|
-
onMouseUp: d,
|
|
19
|
-
onMouseLeave: p,
|
|
20
|
-
onTouchStart: f,
|
|
21
|
-
onTouchEnd: h,
|
|
22
|
-
...j
|
|
23
|
-
} = t;
|
|
24
|
-
return /* @__PURE__ */ v.jsx(
|
|
25
|
-
"button",
|
|
26
|
-
{
|
|
27
|
-
ref: n,
|
|
28
|
-
...u && { type: "submit" },
|
|
29
|
-
disabled: l,
|
|
30
|
-
style: a,
|
|
31
|
-
onMouseDown: b,
|
|
32
|
-
onMouseUp: d,
|
|
33
|
-
onMouseLeave: p,
|
|
34
|
-
onTouchStart: f,
|
|
35
|
-
onTouchEnd: h,
|
|
36
|
-
className: y(
|
|
37
|
-
`btn ${e ? `btn-${e}` : "btn-articles"}`,
|
|
38
|
-
{
|
|
39
|
-
[o]: o,
|
|
40
|
-
"btn-lg": i,
|
|
41
|
-
"btn-sm": r,
|
|
42
|
-
active: m,
|
|
43
|
-
[`btn-${s}`]: s
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
onClick: c,
|
|
47
|
-
children: t.children
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
});
|
|
51
|
-
N.displayName = "ArticlesButton";
|
|
52
|
-
export {
|
|
53
|
-
N as A
|
|
54
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { g as l } from "./index-YnD2EP-S.js";
|
|
2
|
-
import * as s from "react";
|
|
3
|
-
var f, m;
|
|
4
|
-
function p() {
|
|
5
|
-
if (m) return f;
|
|
6
|
-
m = 1;
|
|
7
|
-
var o = process.env.NODE_ENV !== "production", a = function() {
|
|
8
|
-
};
|
|
9
|
-
if (o) {
|
|
10
|
-
var t = function(u, n) {
|
|
11
|
-
var e = arguments.length;
|
|
12
|
-
n = new Array(e > 1 ? e - 1 : 0);
|
|
13
|
-
for (var r = 1; r < e; r++)
|
|
14
|
-
n[r - 1] = arguments[r];
|
|
15
|
-
var c = 0, g = "Warning: " + u.replace(/%s/g, function() {
|
|
16
|
-
return n[c++];
|
|
17
|
-
});
|
|
18
|
-
typeof console < "u" && console.error(g);
|
|
19
|
-
try {
|
|
20
|
-
throw new Error(g);
|
|
21
|
-
} catch {
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
a = function(i, u, n) {
|
|
25
|
-
var e = arguments.length;
|
|
26
|
-
n = new Array(e > 2 ? e - 2 : 0);
|
|
27
|
-
for (var r = 2; r < e; r++)
|
|
28
|
-
n[r - 2] = arguments[r];
|
|
29
|
-
if (u === void 0)
|
|
30
|
-
throw new Error(
|
|
31
|
-
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
32
|
-
);
|
|
33
|
-
i || t.apply(null, [u].concat(n));
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return f = a, f;
|
|
37
|
-
}
|
|
38
|
-
var v = p();
|
|
39
|
-
const E = /* @__PURE__ */ l(v);
|
|
40
|
-
function h(o, a) {
|
|
41
|
-
let t = 0;
|
|
42
|
-
return s.Children.map(o, (i) => /* @__PURE__ */ s.isValidElement(i) ? a(i, t++) : i);
|
|
43
|
-
}
|
|
44
|
-
function x(o, a) {
|
|
45
|
-
return s.Children.toArray(o).some((t) => /* @__PURE__ */ s.isValidElement(t) && t.type === a);
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
x as h,
|
|
49
|
-
h as m,
|
|
50
|
-
E as w
|
|
51
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const p=require("./index-BlP2-uOi.cjs"),d=require("react");function m(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return e.default=n,Object.freeze(e)}const c=m(d);var s,l;function v(){if(l)return s;l=1;var n=process.env.NODE_ENV!=="production",e=function(){};if(n){var r=function(u,i){var o=arguments.length;i=new Array(o>1?o-1:0);for(var a=1;a<o;a++)i[a-1]=arguments[a];var g=0,f="Warning: "+u.replace(/%s/g,function(){return i[g++]});typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}};e=function(t,u,i){var o=arguments.length;i=new Array(o>2?o-2:0);for(var a=2;a<o;a++)i[a-2]=arguments[a];if(u===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||r.apply(null,[u].concat(i))}}return s=e,s}var w=v();const h=p.getDefaultExportFromCjs(w);function E(n,e){let r=0;return c.Children.map(n,t=>c.isValidElement(t)?e(t,r++):t)}function _(n,e){return c.Children.toArray(n).some(r=>c.isValidElement(r)&&r.type===e)}exports.hasChildOfType=_;exports.map=E;exports.warning=h;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { u as r, a as l } from "./index-C8MeSLnR.js";
|
|
3
|
-
import { c as i } from "./index-YnD2EP-S.js";
|
|
4
|
-
import { lazy as c, memo as d, useState as u, Suspense as m } from "react";
|
|
5
|
-
const p = (s) => l.get(s).then((t) => t.data), f = (s) => {
|
|
6
|
-
const { data: t, error: a, isLoading: o, mutate: n } = r(
|
|
7
|
-
// "http://localhost:3012/api/auth/session",
|
|
8
|
-
process.env.NODE_ENV === "development" && !s?.disable ? "http://localhost:3001/api/config" : null,
|
|
9
|
-
p,
|
|
10
|
-
{
|
|
11
|
-
revalidateOnFocus: !1,
|
|
12
|
-
revalidateOnReconnect: !1,
|
|
13
|
-
shouldRetryOnError: !1
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
return {
|
|
17
|
-
data: t,
|
|
18
|
-
error: a,
|
|
19
|
-
isLoading: o,
|
|
20
|
-
mutate: n
|
|
21
|
-
};
|
|
22
|
-
}, h = (s) => l.get(s).then((t) => t.data), b = (s) => {
|
|
23
|
-
const { data: t, error: a, isLoading: o, mutate: n } = r(
|
|
24
|
-
// "http://localhost:3012/api/auth/session",
|
|
25
|
-
process.env.NODE_ENV === "development" && !s?.disable ? "http://localhost:3012/api/status" : null,
|
|
26
|
-
h,
|
|
27
|
-
{
|
|
28
|
-
revalidateOnFocus: !1,
|
|
29
|
-
revalidateOnReconnect: !1,
|
|
30
|
-
shouldRetryOnError: !1
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
return {
|
|
34
|
-
data: t,
|
|
35
|
-
error: a,
|
|
36
|
-
isLoading: o,
|
|
37
|
-
mutate: n
|
|
38
|
-
};
|
|
39
|
-
}, x = c(() => import("./StatusModal-B086BgSW.js"));
|
|
40
|
-
function g(s) {
|
|
41
|
-
const [t, a] = u(!1), {
|
|
42
|
-
data: o
|
|
43
|
-
} = f({
|
|
44
|
-
disable: process.env.NODE_ENV !== "development"
|
|
45
|
-
}), {
|
|
46
|
-
data: n
|
|
47
|
-
} = b({
|
|
48
|
-
disable: process.env.NODE_ENV !== "development"
|
|
49
|
-
});
|
|
50
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
51
|
-
/* @__PURE__ */ e.jsx(
|
|
52
|
-
"link",
|
|
53
|
-
{
|
|
54
|
-
rel: "stylesheet",
|
|
55
|
-
href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
process.env.NODE_ENV === "development" && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
59
|
-
/* @__PURE__ */ e.jsx("style", { children: `
|
|
60
|
-
@keyframes grow-shrink {
|
|
61
|
-
0% { transform: translateY(-50px); }
|
|
62
|
-
50% { transform: translateY(0px); }
|
|
63
|
-
100% { transform: translateY(-50px); }
|
|
64
|
-
}
|
|
65
|
-
.articles-global-body {
|
|
66
|
-
transform: translateY(-40px);
|
|
67
|
-
z-index: 1055!important;
|
|
68
|
-
position: absolute;
|
|
69
|
-
top: 0;
|
|
70
|
-
left: 0;
|
|
71
|
-
display: flex;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
align-items: center;
|
|
74
|
-
width: 50px;
|
|
75
|
-
height: 50px;
|
|
76
|
-
margin: 0;
|
|
77
|
-
padding: 0;
|
|
78
|
-
background-color: yellow;
|
|
79
|
-
color: #FFFFFF;
|
|
80
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
81
|
-
animation: grow-shrink 2s ease-in;
|
|
82
|
-
border: 4px solid red;
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
}
|
|
85
|
-
.articles-global-body.main-connected {
|
|
86
|
-
background-color: green;
|
|
87
|
-
}
|
|
88
|
-
.articles-global-body.auth-connected {
|
|
89
|
-
border-color: blue;
|
|
90
|
-
}
|
|
91
|
-
` }),
|
|
92
|
-
/* @__PURE__ */ e.jsx(
|
|
93
|
-
"div",
|
|
94
|
-
{
|
|
95
|
-
onClick: () => {
|
|
96
|
-
a(!0);
|
|
97
|
-
},
|
|
98
|
-
className: i(
|
|
99
|
-
"articles-global-body",
|
|
100
|
-
{
|
|
101
|
-
"main-connected": o,
|
|
102
|
-
"auth-connected": n
|
|
103
|
-
}
|
|
104
|
-
),
|
|
105
|
-
children: /* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("i", { className: "fas fa-thumbs-up" }) })
|
|
106
|
-
}
|
|
107
|
-
),
|
|
108
|
-
t && /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(
|
|
109
|
-
x,
|
|
110
|
-
{
|
|
111
|
-
show: t,
|
|
112
|
-
setShow: a
|
|
113
|
-
}
|
|
114
|
-
) })
|
|
115
|
-
] })
|
|
116
|
-
] });
|
|
117
|
-
}
|
|
118
|
-
const E = d(g);
|
|
119
|
-
export {
|
|
120
|
-
E as G,
|
|
121
|
-
b as a,
|
|
122
|
-
f as u
|
|
123
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-nZSsnGb7.cjs"),l=require("./index-DWV8myok.cjs"),u=require("./index-BlP2-uOi.cjs"),r=require("react"),d=s=>l.axios.get(s).then(t=>t.data),i=s=>{const{data:t,error:n,isLoading:a,mutate:o}=l.useSWR(process.env.NODE_ENV==="development"&&!s?.disable?"http://localhost:3001/api/config":null,d,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:a,mutate:o}},m=s=>l.axios.get(s).then(t=>t.data),c=s=>{const{data:t,error:n,isLoading:a,mutate:o}=l.useSWR(process.env.NODE_ENV==="development"&&!s?.disable?"http://localhost:3012/api/status":null,m,{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{data:t,error:n,isLoading:a,mutate:o}},p=r.lazy(()=>Promise.resolve().then(()=>require("./StatusModal-CzPyqQQA.cjs")));function x(s){const[t,n]=r.useState(!1),{data:a}=i({disable:process.env.NODE_ENV!=="development"}),{data:o}=c({disable:process.env.NODE_ENV!=="development"});return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("link",{rel:"stylesheet",href:"https://cdn.articles.media/fonts/fontawesome/css/all.min.css"}),process.env.NODE_ENV==="development"&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("style",{children:`
|
|
2
|
-
@keyframes grow-shrink {
|
|
3
|
-
0% { transform: translateY(-50px); }
|
|
4
|
-
50% { transform: translateY(0px); }
|
|
5
|
-
100% { transform: translateY(-50px); }
|
|
6
|
-
}
|
|
7
|
-
.articles-global-body {
|
|
8
|
-
transform: translateY(-40px);
|
|
9
|
-
z-index: 1055!important;
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 0;
|
|
12
|
-
left: 0;
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
align-items: center;
|
|
16
|
-
width: 50px;
|
|
17
|
-
height: 50px;
|
|
18
|
-
margin: 0;
|
|
19
|
-
padding: 0;
|
|
20
|
-
background-color: yellow;
|
|
21
|
-
color: #FFFFFF;
|
|
22
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
23
|
-
animation: grow-shrink 2s ease-in;
|
|
24
|
-
border: 4px solid red;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
}
|
|
27
|
-
.articles-global-body.main-connected {
|
|
28
|
-
background-color: green;
|
|
29
|
-
}
|
|
30
|
-
.articles-global-body.auth-connected {
|
|
31
|
-
border-color: blue;
|
|
32
|
-
}
|
|
33
|
-
`}),e.jsxRuntimeExports.jsx("div",{onClick:()=>{n(!0)},className:u.classNames("articles-global-body",{"main-connected":a,"auth-connected":o}),children:e.jsxRuntimeExports.jsx("div",{className:"content",children:e.jsxRuntimeExports.jsx("i",{className:"fas fa-thumbs-up"})})}),t&&e.jsxRuntimeExports.jsx(r.Suspense,{children:e.jsxRuntimeExports.jsx(p,{show:t,setShow:n})})]})]})}const h=r.memo(x);exports.GlobalBody_default=h;exports.useAuthSiteStatus=c;exports.useMainSiteStatus=i;
|
package/dist/Modal-Bdhkgkwr.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const K=require("./index-BlP2-uOi.cjs"),c=require("react"),he=require("react-dom"),A=require("./jsx-runtime-nZSsnGb7.cjs");function Zt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z=Zt(c),ye=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ye=!1,ze=!1;try{var ke={get passive(){return Ye=!0},get once(){return ze=Ye=!0}};ye&&(window.addEventListener("test",ke,ke),window.removeEventListener("test",ke,!0))}catch{}function Tt(e,t,n,r){if(r&&typeof r!="boolean"&&!ze){var i=r.once,o=r.capture,a=n;!ze&&i&&(a=n.__once||function u(p){this.removeEventListener(t,u,o),n.call(this,p)},n.__once=a),e.addEventListener(t,a,Ye?r:o)}e.addEventListener(t,n,r)}function Re(e){return e&&e.ownerDocument||document}function He(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}var Se;function it(e){if((!Se&&Se!==0||e)&&ye){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Se=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Se}function Qt(){return c.useState(null)}function en(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function _e(e){const t=en(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const st=e=>!e||typeof e=="function"?e:t=>{e.current=t};function tn(e,t){const n=st(e),r=st(t);return i=>{n&&n(i),r&&r(i)}}function Je(e,t){return c.useMemo(()=>tn(e,t),[e,t])}function nn(e){const t=c.useRef(e);return t.current=e,t}function Ct(e){const t=nn(e);c.useEffect(()=>()=>t.current(),[])}function rn(e){var t=Re(e);return t&&t.defaultView||window}function on(e,t){return rn(e).getComputedStyle(e,t)}var sn=/([A-Z])/g;function an(e){return e.replace(sn,"-$1").toLowerCase()}var un=/^ms-/;function we(e){return an(e).replace(un,"-ms-")}var cn=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function ln(e){return!!(e&&cn.test(e))}function fe(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(we(t))||on(e).getPropertyValue(we(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(we(i)):ln(i)?r+=i+"("+o+") ":n+=we(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}function be(e,t,n,r){return Tt(e,t,n,r),function(){He(e,t,n,r)}}function fn(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function dn(e){var t=fe(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function pn(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||fn(e,"transitionend",!0)},t+n),o=be(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function Ot(e,t,n,r){n==null&&(n=dn(e)||0);var i=pn(e,n,r),o=be(e,"transitionend",t);return function(){i(),o()}}function Ae(e){e===void 0&&(e=Re());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Ve(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function St(){const e=c.useRef(!0),t=c.useRef(()=>e.current);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function mn(e){const t=c.useRef(e);return t.current=e,t}function vn(e){const t=mn(e);c.useEffect(()=>()=>t.current(),[])}function En(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e}),t.current}function hn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e},[e]),t}function ie(e){const t=hn(e);return c.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const yn="data-rr-ui-";function gn(e){return`${yn}${e}`}function xn(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const at=gn("modal-open");class Ze{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return xn(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(fe(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(at,""),fe(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(at),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const wt=c.createContext(ye?window:void 0);wt.Provider;function Qe(){return c.useContext(wt)}const De=(e,t)=>ye?e==null?(t||Re()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function jt(e,t){const n=Qe(),[r,i]=c.useState(()=>De(e,n?.document));if(!r){const o=De(e);o&&i(o)}return c.useEffect(()=>{},[t,r]),c.useEffect(()=>{const o=De(e);o!==r&&i(o)},[e,r]),r}const ut=e=>!e||typeof e=="function"?e:t=>{e.current=t};function bn(e,t){const n=ut(e),r=ut(t);return i=>{n&&n(i),r&&r(i)}}function Ne(e,t){return c.useMemo(()=>bn(e,t),[e,t])}const Rn=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Tn=typeof document<"u",ct=Tn||Rn?c.useLayoutEffect:c.useEffect;function Mt(e){return e.code==="Escape"||e.keyCode===27}function Cn(){const e=z.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Te(e){if(!e||typeof e=="function")return null;const{major:t}=Cn();return t>=19?e.props.ref:e.ref}function On({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=c.useRef(null),a=c.useRef(t),u=ie(n);c.useEffect(()=>{t?a.current=!0:u(o.current)},[t,u]);const p=Ne(o,Te(e)),m=c.cloneElement(e,{ref:p});return t?m:i||!a.current&&r?null:m}const Sn=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function wn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jn(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:u,children:p}=e,m=wn(e,Sn);const v=c.useRef(null),y=Ne(v,Te(p)),T=k=>l=>{k&&v.current&&k(v.current,l)},M=c.useCallback(T(t),[t]),D=c.useCallback(T(n),[n]),j=c.useCallback(T(r),[r]),$=c.useCallback(T(i),[i]),F=c.useCallback(T(o),[o]),V=c.useCallback(T(a),[a]),L=c.useCallback(T(u),[u]);return Object.assign({},m,{nodeRef:v},t&&{onEnter:M},n&&{onEntering:D},r&&{onEntered:j},i&&{onExit:$},o&&{onExiting:F},a&&{onExited:V},u&&{addEndListener:L},{children:typeof p=="function"?(k,l)=>p(k,Object.assign({},l,{ref:y})):c.cloneElement(p,{ref:y})})}const Mn=["component"];function _n(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Nn=z.forwardRef((e,t)=>{let{component:n}=e,r=_n(e,Mn);const i=jn(r);return A.jsxRuntimeExports.jsx(n,Object.assign({ref:t},i))});function Pn({in:e,onTransition:t}){const n=c.useRef(null),r=c.useRef(!0),i=ie(t);return ct(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),ct(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function kn({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=c.useState(!t);t&&o&&a(!1);const u=Pn({in:!!t,onTransition:m=>{const v=()=>{m.isStale()||(m.in?r?.(m.element,m.initial):(a(!0),n?.(m.element)))};Promise.resolve(i(m)).then(v,y=>{throw m.in||a(!0),y})}}),p=Ne(u,Te(e));return o&&!t?null:c.cloneElement(e,{ref:p})}function Ge(e,t,n){return e?A.jsxRuntimeExports.jsx(Nn,Object.assign({},n,{component:e})):t?A.jsxRuntimeExports.jsx(kn,Object.assign({},n,{transition:t})):A.jsxRuntimeExports.jsx(On,Object.assign({},n))}const An=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Dn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Ie;function In(e){return Ie||(Ie=new Ze({ownerDocument:e?.document})),Ie}function Ln(e){const t=Qe(),n=e||In(t),r=c.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:c.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:c.useCallback(i=>{r.current.backdrop=i},[])})}const _t=c.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:u=!0,keyboard:p=!0,onBackdropClick:m,onEscapeKeyDown:v,transition:y,runTransition:T,backdropTransition:M,runBackdropTransition:D,autoFocus:j=!0,enforceFocus:$=!0,restoreFocus:F=!0,restoreFocusOptions:V,renderDialog:L,renderBackdrop:k=I=>A.jsxRuntimeExports.jsx("div",Object.assign({},I)),manager:l,container:U,onShow:G,onHide:Z=()=>{},onExit:se,onExited:Q,onExiting:ee,onEnter:ne,onEntering:re,onEntered:X}=e,ae=Dn(e,An);const W=Qe(),H=jt(U),B=Ln(l),ue=St(),s=En(n),[d,g]=c.useState(!n),h=c.useRef(null);c.useImperativeHandle(t,()=>B,[B]),ye&&!s&&n&&(h.current=Ae(W?.document)),n&&d&&g(!1);const E=ie(()=>{if(B.add(),C.current=be(document,"keydown",S),w.current=be(document,"focus",()=>setTimeout(b),!0),G&&G(),j){var I,Oe;const ge=Ae((I=(Oe=B.dialog)==null?void 0:Oe.ownerDocument)!=null?I:W?.document);B.dialog&&ge&&!Ve(B.dialog,ge)&&(h.current=ge,B.dialog.focus())}}),O=ie(()=>{if(B.remove(),C.current==null||C.current(),w.current==null||w.current(),F){var I;(I=h.current)==null||I.focus==null||I.focus(V),h.current=null}});c.useEffect(()=>{!n||!H||E()},[n,H,E]),c.useEffect(()=>{d&&O()},[d,O]),vn(()=>{O()});const b=ie(()=>{if(!$||!ue()||!B.isTopModal())return;const I=Ae(W?.document);B.dialog&&I&&!Ve(B.dialog,I)&&B.dialog.focus()}),R=ie(I=>{I.target===I.currentTarget&&(m?.(I),u===!0&&Z())}),S=ie(I=>{p&&Mt(I)&&B.isTopModal()&&(v?.(I),I.defaultPrevented||Z())}),w=c.useRef(),C=c.useRef(),q=(...I)=>{g(!0),Q?.(...I)};if(!H)return null;const f=Object.assign({role:r,ref:B.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},ae,{style:o,className:i,tabIndex:-1});let Y=L?L(f):A.jsxRuntimeExports.jsx("div",Object.assign({},f,{children:z.cloneElement(a,{role:"document"})}));Y=Ge(y,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:se,onExiting:ee,onExited:q,onEnter:ne,onEntering:re,onEntered:X,children:Y});let J=null;return u&&(J=k({ref:B.setBackdropRef,onClick:R}),J=Ge(M,D,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),A.jsxRuntimeExports.jsx(A.jsxRuntimeExports.Fragment,{children:he.createPortal(A.jsxRuntimeExports.jsxs(A.jsxRuntimeExports.Fragment,{children:[J,Y]}),H)})});_t.displayName="Modal";const $n=Object.assign(_t,{Manager:Ze});function Nt(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Fn(e,t){e.classList?e.classList.add(t):Nt(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var Bn=Function.prototype.bind.call(Function.prototype.call,[].slice);function me(e,t){return Bn(e.querySelectorAll(t))}function lt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Wn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=lt(e.className,t):e.setAttribute("class",lt(e.className&&e.className.baseVal||"",t))}const ve={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class qn extends Ze{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,fe(n,{[t]:`${parseFloat(fe(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],fe(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Fn(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";me(n,ve.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),me(n,ve.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),me(n,ve.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Wn(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";me(n,ve.FIXED_CONTENT).forEach(o=>this.restore(r,o)),me(n,ve.STICKY_CONTENT).forEach(o=>this.restore(i,o)),me(n,ve.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Le;function Un(e){return Le||(Le=new qn(e)),Le}function Yn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ke(e,t)}function zn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ke(e,t)}var je={exports:{}},Me={exports:{}},N={};var ft;function Hn(){if(ft)return N;ft=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,M=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(l){if(typeof l=="object"&&l!==null){var U=l.$$typeof;switch(U){case t:switch(l=l.type,l){case p:case m:case r:case o:case i:case y:return l;default:switch(l=l&&l.$$typeof,l){case u:case v:case D:case M:case a:return l;default:return U}}case n:return U}}}function k(l){return L(l)===m}return N.AsyncMode=p,N.ConcurrentMode=m,N.ContextConsumer=u,N.ContextProvider=a,N.Element=t,N.ForwardRef=v,N.Fragment=r,N.Lazy=D,N.Memo=M,N.Portal=n,N.Profiler=o,N.StrictMode=i,N.Suspense=y,N.isAsyncMode=function(l){return k(l)||L(l)===p},N.isConcurrentMode=k,N.isContextConsumer=function(l){return L(l)===u},N.isContextProvider=function(l){return L(l)===a},N.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},N.isForwardRef=function(l){return L(l)===v},N.isFragment=function(l){return L(l)===r},N.isLazy=function(l){return L(l)===D},N.isMemo=function(l){return L(l)===M},N.isPortal=function(l){return L(l)===n},N.isProfiler=function(l){return L(l)===o},N.isStrictMode=function(l){return L(l)===i},N.isSuspense=function(l){return L(l)===y},N.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===m||l===o||l===i||l===y||l===T||typeof l=="object"&&l!==null&&(l.$$typeof===D||l.$$typeof===M||l.$$typeof===a||l.$$typeof===u||l.$$typeof===v||l.$$typeof===$||l.$$typeof===F||l.$$typeof===V||l.$$typeof===j)},N.typeOf=L,N}var P={};var dt;function Vn(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,M=e?Symbol.for("react.memo"):60115,D=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function L(f){return typeof f=="string"||typeof f=="function"||f===r||f===m||f===o||f===i||f===y||f===T||typeof f=="object"&&f!==null&&(f.$$typeof===D||f.$$typeof===M||f.$$typeof===a||f.$$typeof===u||f.$$typeof===v||f.$$typeof===$||f.$$typeof===F||f.$$typeof===V||f.$$typeof===j)}function k(f){if(typeof f=="object"&&f!==null){var Y=f.$$typeof;switch(Y){case t:var J=f.type;switch(J){case p:case m:case r:case o:case i:case y:return J;default:var I=J&&J.$$typeof;switch(I){case u:case v:case D:case M:case a:return I;default:return Y}}case n:return Y}}}var l=p,U=m,G=u,Z=a,se=t,Q=v,ee=r,ne=D,re=M,X=n,ae=o,W=i,H=y,B=!1;function ue(f){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),s(f)||k(f)===p}function s(f){return k(f)===m}function d(f){return k(f)===u}function g(f){return k(f)===a}function h(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function E(f){return k(f)===v}function O(f){return k(f)===r}function b(f){return k(f)===D}function R(f){return k(f)===M}function S(f){return k(f)===n}function w(f){return k(f)===o}function C(f){return k(f)===i}function q(f){return k(f)===y}P.AsyncMode=l,P.ConcurrentMode=U,P.ContextConsumer=G,P.ContextProvider=Z,P.Element=se,P.ForwardRef=Q,P.Fragment=ee,P.Lazy=ne,P.Memo=re,P.Portal=X,P.Profiler=ae,P.StrictMode=W,P.Suspense=H,P.isAsyncMode=ue,P.isConcurrentMode=s,P.isContextConsumer=d,P.isContextProvider=g,P.isElement=h,P.isForwardRef=E,P.isFragment=O,P.isLazy=b,P.isMemo=R,P.isPortal=S,P.isProfiler=w,P.isStrictMode=C,P.isSuspense=q,P.isValidElementType=L,P.typeOf=k})()),P}var pt;function Pt(){return pt||(pt=1,process.env.NODE_ENV==="production"?Me.exports=Hn():Me.exports=Vn()),Me.exports}var $e,mt;function Gn(){if(mt)return $e;mt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var p=Object.getOwnPropertyNames(a).map(function(v){return a[v]});if(p.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $e=i()?Object.assign:function(o,a){for(var u,p=r(o),m,v=1;v<arguments.length;v++){u=Object(arguments[v]);for(var y in u)t.call(u,y)&&(p[y]=u[y]);if(e){m=e(u);for(var T=0;T<m.length;T++)n.call(u,m[T])&&(p[m[T]]=u[m[T]])}}return p},$e}var Fe,vt;function et(){if(vt)return Fe;vt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fe=e,Fe}var Be,Et;function kt(){return Et||(Et=1,Be=Function.call.bind(Object.prototype.hasOwnProperty)),Be}var We,ht;function Kn(){if(ht)return We;ht=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=et(),n={},r=kt();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,p,m){if(process.env.NODE_ENV!=="production"){for(var v in o)if(r(o,v)){var y;try{if(typeof o[v]!="function"){var T=Error((p||"React class")+": "+u+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}y=o[v](a,v,p,u,null,t)}catch(D){y=D}if(y&&!(y instanceof Error)&&e((p||"React class")+": type specification of "+u+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in n)){n[y.message]=!0;var M=m?m():"";e("Failed "+u+" type: "+y.message+(M??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},We=i,We}var qe,yt;function Xn(){if(yt)return qe;yt=1;var e=Pt(),t=Gn(),n=et(),r=kt(),i=Kn(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var p="Warning: "+u;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function a(){return null}return qe=function(u,p){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function y(s){var d=s&&(m&&s[m]||s[v]);if(typeof d=="function")return d}var T="<<anonymous>>",M={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:V(),arrayOf:L,element:k(),elementType:l(),instanceOf:U,node:Q(),objectOf:Z,oneOf:G,oneOfType:se,shape:ne,exact:re};function D(s,d){return s===d?s!==0||1/s===1/d:s!==s&&d!==d}function j(s,d){this.message=s,this.data=d&&typeof d=="object"?d:{},this.stack=""}j.prototype=Error.prototype;function $(s){if(process.env.NODE_ENV!=="production")var d={},g=0;function h(O,b,R,S,w,C,q){if(S=S||T,C=C||R,q!==n){if(p){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Y=S+":"+R;!d[Y]&&g<3&&(o("You are manually calling a React.PropTypes validation function for the `"+C+"` prop on `"+S+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),d[Y]=!0,g++)}}return b[R]==null?O?b[R]===null?new j("The "+w+" `"+C+"` is marked as required "+("in `"+S+"`, but its value is `null`.")):new j("The "+w+" `"+C+"` is marked as required in "+("`"+S+"`, but its value is `undefined`.")):null:s(b,R,S,w,C)}var E=h.bind(null,!1);return E.isRequired=h.bind(null,!0),E}function F(s){function d(g,h,E,O,b,R){var S=g[h],w=W(S);if(w!==s){var C=H(S);return new j("Invalid "+O+" `"+b+"` of type "+("`"+C+"` supplied to `"+E+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return $(d)}function V(){return $(a)}function L(s){function d(g,h,E,O,b){if(typeof s!="function")return new j("Property `"+b+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var R=g[h];if(!Array.isArray(R)){var S=W(R);return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an array."))}for(var w=0;w<R.length;w++){var C=s(R,w,E,O,b+"["+w+"]",n);if(C instanceof Error)return C}return null}return $(d)}function k(){function s(d,g,h,E,O){var b=d[g];if(!u(b)){var R=W(b);return new j("Invalid "+E+" `"+O+"` of type "+("`"+R+"` supplied to `"+h+"`, expected a single ReactElement."))}return null}return $(s)}function l(){function s(d,g,h,E,O){var b=d[g];if(!e.isValidElementType(b)){var R=W(b);return new j("Invalid "+E+" `"+O+"` of type "+("`"+R+"` supplied to `"+h+"`, expected a single ReactElement type."))}return null}return $(s)}function U(s){function d(g,h,E,O,b){if(!(g[h]instanceof s)){var R=s.name||T,S=ue(g[h]);return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected ")+("instance of `"+R+"`."))}return null}return $(d)}function G(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function d(g,h,E,O,b){for(var R=g[h],S=0;S<s.length;S++)if(D(R,s[S]))return null;var w=JSON.stringify(s,function(q,f){var Y=H(f);return Y==="symbol"?String(f):f});return new j("Invalid "+O+" `"+b+"` of value `"+String(R)+"` "+("supplied to `"+E+"`, expected one of "+w+"."))}return $(d)}function Z(s){function d(g,h,E,O,b){if(typeof s!="function")return new j("Property `"+b+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var R=g[h],S=W(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type "+("`"+S+"` supplied to `"+E+"`, expected an object."));for(var w in R)if(r(R,w)){var C=s(R,w,E,O,b+"."+w,n);if(C instanceof Error)return C}return null}return $(d)}function se(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var d=0;d<s.length;d++){var g=s[d];if(typeof g!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(g)+" at index "+d+"."),a}function h(E,O,b,R,S){for(var w=[],C=0;C<s.length;C++){var q=s[C],f=q(E,O,b,R,S,n);if(f==null)return null;f.data&&r(f.data,"expectedType")&&w.push(f.data.expectedType)}var Y=w.length>0?", expected one of type ["+w.join(", ")+"]":"";return new j("Invalid "+R+" `"+S+"` supplied to "+("`"+b+"`"+Y+"."))}return $(h)}function Q(){function s(d,g,h,E,O){return X(d[g])?null:new j("Invalid "+E+" `"+O+"` supplied to "+("`"+h+"`, expected a ReactNode."))}return $(s)}function ee(s,d,g,h,E){return new j((s||"React class")+": "+d+" type `"+g+"."+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function ne(s){function d(g,h,E,O,b){var R=g[h],S=W(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));for(var w in s){var C=s[w];if(typeof C!="function")return ee(E,O,b,w,H(C));var q=C(R,w,E,O,b+"."+w,n);if(q)return q}return null}return $(d)}function re(s){function d(g,h,E,O,b){var R=g[h],S=W(R);if(S!=="object")return new j("Invalid "+O+" `"+b+"` of type `"+S+"` "+("supplied to `"+E+"`, expected `object`."));var w=t({},g[h],s);for(var C in w){var q=s[C];if(r(s,C)&&typeof q!="function")return ee(E,O,b,C,H(q));if(!q)return new j("Invalid "+O+" `"+b+"` key `"+C+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(g[h],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var f=q(R,C,E,O,b+"."+C,n);if(f)return f}return null}return $(d)}function X(s){switch(typeof s){case"number":case"string":case"undefined":return!0;case"boolean":return!s;case"object":if(Array.isArray(s))return s.every(X);if(s===null||u(s))return!0;var d=y(s);if(d){var g=d.call(s),h;if(d!==s.entries){for(;!(h=g.next()).done;)if(!X(h.value))return!1}else for(;!(h=g.next()).done;){var E=h.value;if(E&&!X(E[1]))return!1}}else return!1;return!0;default:return!1}}function ae(s,d){return s==="symbol"?!0:d?d["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&d instanceof Symbol:!1}function W(s){var d=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":ae(d,s)?"symbol":d}function H(s){if(typeof s>"u"||s===null)return""+s;var d=W(s);if(d==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return d}function B(s){var d=H(s);switch(d){case"array":case"object":return"an "+d;case"boolean":case"date":case"regexp":return"a "+d;default:return d}}function ue(s){return!s.constructor||!s.constructor.name?T:s.constructor.name}return M.checkPropTypes=i,M.resetWarningCache=i.resetWarningCache,M.PropTypes=M,M},qe}var Ue,gt;function Jn(){if(gt)return Ue;gt=1;var e=et();function t(){}function n(){}return n.resetWarningCache=t,Ue=function(){function r(a,u,p,m,v,y){if(y!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Ue}var xt;function Zn(){if(xt)return je.exports;if(xt=1,process.env.NODE_ENV!=="production"){var e=Pt(),t=!0;je.exports=Xn()(e.isElement,t)}else je.exports=Jn()();return je.exports}var Qn=Zn();const x=K.getDefaultExportFromCjs(Qn),bt={disabled:!1};var er=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.shape({enter:x.number,exit:x.number,appear:x.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&x.oneOfType([x.string,x.shape({enter:x.string,exit:x.string,active:x.string}),x.shape({enter:x.string,enterDone:x.string,enterActive:x.string,exit:x.string,exitDone:x.string,exitActive:x.string})]);const At=c.createContext(null);var tr=function(t){return t.scrollTop},xe="unmounted",ce="exited",oe="entering",le="entered",Xe="exiting",te=(function(e){zn(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,u=a&&!a.isMounting?r.enter:r.appear,p;return o.appearStatus=null,r.in?u?(p=ce,o.appearStatus=oe):p=le:r.unmountOnExit||r.mountOnEnter?p=xe:p=ce,o.state={status:p},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===xe?{status:ce}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==oe&&a!==le&&(o=oe):(a===oe||a===le)&&(o=Xe)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,u;return o=a=u=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,u=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:u}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===oe){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this);a&&tr(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ce&&this.setState({status:xe})},n.performEnter=function(i){var o=this,a=this.props.enter,u=this.context?this.context.isMounting:i,p=this.props.nodeRef?[u]:[he.findDOMNode(this),u],m=p[0],v=p[1],y=this.getTimeouts(),T=u?y.appear:y.enter;if(!i&&!a||bt.disabled){this.safeSetState({status:le},function(){o.props.onEntered(m)});return}this.props.onEnter(m,v),this.safeSetState({status:oe},function(){o.props.onEntering(m,v),o.onTransitionEnd(T,function(){o.safeSetState({status:le},function(){o.props.onEntered(m,v)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:he.findDOMNode(this);if(!o||bt.disabled){this.safeSetState({status:ce},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Xe},function(){i.props.onExiting(u),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ce},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,o.nextCallback=null,i(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],m=p[0],v=p[1];this.props.addEndListener(m,v)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===xe)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=Yn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return c.createElement(At.Provider,{value:null},typeof a=="function"?a(i,u):c.cloneElement(c.Children.only(a),u))},t})(c.Component);te.contextType=At;te.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:x.shape({current:typeof Element>"u"?x.any:function(e,t,n,r,i,o){var a=e[t];return x.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:x.oneOfType([x.func.isRequired,x.element.isRequired]).isRequired,in:x.bool,mountOnEnter:x.bool,unmountOnExit:x.bool,appear:x.bool,enter:x.bool,exit:x.bool,timeout:function(t){var n=er;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:x.func,onEnter:x.func,onEntering:x.func,onEntered:x.func,onExit:x.func,onExiting:x.func,onExited:x.func}:{};function Ee(){}te.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ee,onEntering:Ee,onEntered:Ee,onExit:Ee,onExiting:Ee,onExited:Ee};te.UNMOUNTED=xe;te.EXITED=ce;te.ENTERING=oe;te.ENTERED=le;te.EXITING=Xe;function Rt(e,t){const n=fe(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function nr(e,t){const n=Rt(e,"transitionDuration"),r=Rt(e,"transitionDelay"),i=Ot(e,o=>{o.target===e&&(i(),t(o))},n+r)}function rr(e){e.offsetHeight}function Dt(e){return e&&"setState"in e?he.findDOMNode(e):e??null}const It=c.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:u,childRef:p,...m},v)=>{const y=c.useRef(null),T=Je(y,p),M=U=>{T(Dt(U))},D=U=>G=>{U&&y.current&&U(y.current,G)},j=c.useCallback(D(e),[e]),$=c.useCallback(D(t),[t]),F=c.useCallback(D(n),[n]),V=c.useCallback(D(r),[r]),L=c.useCallback(D(i),[i]),k=c.useCallback(D(o),[o]),l=c.useCallback(D(a),[a]);return A.jsxRuntimeExports.jsx(te,{ref:v,...m,onEnter:j,onEntered:F,onEntering:$,onExit:V,onExited:k,onExiting:L,addEndListener:l,nodeRef:y,children:typeof u=="function"?(U,G)=>u(U,{...G,ref:M}):c.cloneElement(u,{ref:M})})});It.displayName="TransitionWrapper";const or={[oe]:"show",[le]:"show"},Pe=z.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},u=c.useCallback((p,m)=>{rr(p),r?.(p,m)},[r]);return A.jsxRuntimeExports.jsx(It,{ref:o,addEndListener:nr,...a,onEnter:u,childRef:Te(t),children:(p,m)=>z.cloneElement(t,{...m,className:K.classNames("fade",e,t.props.className,or[p],n[p])})})});Pe.displayName="Fade";const ir=["xxl","xl","lg","md","sm","xs"],sr="xs",Ce=z.createContext({prefixes:{},breakpoints:ir,minBreakpoint:sr}),{Consumer:vr,Provider:Er}=Ce;function de(e,t){const{prefixes:n}=c.useContext(Ce);return e||n[t]||t}function ar(){const{breakpoints:e}=c.useContext(Ce);return e}function ur(){const{minBreakpoint:e}=c.useContext(Ce);return e}function Lt(){const{dir:e}=c.useContext(Ce);return e==="rtl"}const $t=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=de(t,"modal-body"),A.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));$t.displayName="ModalBody";const Ft=z.createContext({onHide(){}}),tt=z.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:u,...p},m)=>{e=de(e,"modal");const v=`${e}-dialog`,y=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return A.jsxRuntimeExports.jsx("div",{...p,ref:m,className:K.classNames(v,t,i&&`${e}-${i}`,r&&`${v}-centered`,u&&`${v}-scrollable`,o&&y),children:A.jsxRuntimeExports.jsx("div",{className:K.classNames(`${e}-content`,n),children:a})})});tt.displayName="ModalDialog";const Bt=z.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=de(t,"modal-footer"),A.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Bt.displayName="ModalFooter";const cr={"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"])},nt=z.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>A.jsxRuntimeExports.jsx("button",{ref:i,type:"button",className:K.classNames("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));nt.displayName="CloseButton";nt.propTypes=cr;const Wt=z.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const u=c.useContext(Ft),p=_e(()=>{u?.onHide(),r?.()});return A.jsxRuntimeExports.jsxs("div",{ref:a,...o,children:[i,n&&A.jsxRuntimeExports.jsx(nt,{"aria-label":e,variant:t,onClick:p})]})});Wt.displayName="AbstractModalHeader";const qt=z.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=de(e,"modal-header"),A.jsxRuntimeExports.jsx(Wt,{ref:o,...i,className:K.classNames(t,e),closeLabel:n,closeButton:r})));qt.displayName="ModalHeader";const lr=(e=>z.forwardRef((t,n)=>A.jsxRuntimeExports.jsx("div",{...t,ref:n,className:K.classNames(t.className,e)}))),fr=lr("h4"),Ut=z.forwardRef(({className:e,bsPrefix:t,as:n=fr,...r},i)=>(t=de(t,"modal-title"),A.jsxRuntimeExports.jsx(n,{ref:i,className:K.classNames(e,t),...r})));Ut.displayName="ModalTitle";function dr(e){return A.jsxRuntimeExports.jsx(Pe,{...e,timeout:null})}function pr(e){return A.jsxRuntimeExports.jsx(Pe,{...e,timeout:null})}const Yt=z.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=tt,"data-bs-theme":u,"aria-labelledby":p,"aria-describedby":m,"aria-label":v,show:y=!1,animation:T=!0,backdrop:M=!0,keyboard:D=!0,onEscapeKeyDown:j,onShow:$,onHide:F,container:V,autoFocus:L=!0,enforceFocus:k=!0,restoreFocus:l=!0,restoreFocusOptions:U,onEntered:G,onExit:Z,onExiting:se,onEnter:Q,onEntering:ee,onExited:ne,backdropClassName:re,manager:X,...ae},W)=>{const[H,B]=c.useState({}),[ue,s]=c.useState(!1),d=c.useRef(!1),g=c.useRef(!1),h=c.useRef(null),[E,O]=Qt(),b=Je(W,O),R=_e(F),S=Lt();e=de(e,"modal");const w=c.useMemo(()=>({onHide:R}),[R]);function C(){return X||Un({isRTL:S})}function q(_){if(!ye)return;const pe=C().getScrollbarWidth()>0,ot=_.scrollHeight>Re(_).documentElement.clientHeight;B({paddingRight:pe&&!ot?it():void 0,paddingLeft:!pe&&ot?it():void 0})}const f=_e(()=>{E&&q(E.dialog)});Ct(()=>{He(window,"resize",f),h.current==null||h.current()});const Y=()=>{d.current=!0},J=_=>{d.current&&E&&_.target===E.dialog&&(g.current=!0),d.current=!1},I=()=>{s(!0),h.current=Ot(E.dialog,()=>{s(!1)})},Oe=_=>{_.target===_.currentTarget&&I()},ge=_=>{if(M==="static"){Oe(_);return}if(g.current||_.target!==_.currentTarget){g.current=!1;return}F?.()},zt=_=>{D?j?.(_):(_.preventDefault(),M==="static"&&I())},Ht=(_,pe)=>{_&&q(_),Q?.(_,pe)},Vt=_=>{h.current==null||h.current(),Z?.(_)},Gt=(_,pe)=>{ee?.(_,pe),Tt(window,"resize",f)},Kt=_=>{_&&(_.style.display=""),ne?.(_),He(window,"resize",f)},Xt=c.useCallback(_=>A.jsxRuntimeExports.jsx("div",{..._,className:K.classNames(`${e}-backdrop`,re,!T&&"show")}),[T,re,e]),rt={...n,...H};rt.display="block";const Jt=_=>A.jsxRuntimeExports.jsx("div",{role:"dialog",..._,style:rt,className:K.classNames(t,e,ue&&`${e}-static`,!T&&"show"),onClick:M?ge:void 0,onMouseUp:J,"data-bs-theme":u,"aria-label":v,"aria-labelledby":p,"aria-describedby":m,children:A.jsxRuntimeExports.jsx(a,{...ae,onMouseDown:Y,className:r,contentClassName:i,children:o})});return A.jsxRuntimeExports.jsx(Ft.Provider,{value:w,children:A.jsxRuntimeExports.jsx($n,{show:y,ref:b,backdrop:M,container:V,keyboard:!0,autoFocus:L,enforceFocus:k,restoreFocus:l,restoreFocusOptions:U,onEscapeKeyDown:zt,onShow:$,onHide:F,onEnter:Ht,onEntering:Gt,onEntered:G,onExit:Vt,onExiting:se,onExited:Kt,manager:C(),transition:T?dr:void 0,backdropTransition:T?pr:void 0,renderBackdrop:Xt,renderDialog:Jt})})});Yt.displayName="Modal";const mr=Object.assign(Yt,{Body:$t,Header:qt,Title:Ut,Footer:Bt,Dialog:tt,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});exports.Fade=Pe;exports.Modal=mr;exports.PropTypes=x;exports.contains=Ve;exports.getChildRef=Te;exports.hasClass=Nt;exports.isEscKey=Mt;exports.listen=be;exports.ownerDocument=Re;exports.renderTransition=Ge;exports.safeFindDOMNode=Dt;exports.useBootstrapBreakpoints=ar;exports.useBootstrapMinBreakpoint=ur;exports.useBootstrapPrefix=de;exports.useEventCallback=ie;exports.useEventCallback$1=_e;exports.useIsRTL=Lt;exports.useMergedRefs=Ne;exports.useMergedRefs$1=Je;exports.useMounted=St;exports.useWaitForDOMRef=jt;exports.useWillUnmount=Ct;
|